deepsky 1.105.9 → 1.105.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.css CHANGED
@@ -4611,7 +4611,7 @@ div{
4611
4611
 
4612
4612
 
4613
4613
  .float-rt {
4614
- &[data-v-ae9330f0] {
4614
+ &[data-v-88935e0c] {
4615
4615
  display: flex;
4616
4616
  flex-flow: row nowrap;
4617
4617
  align-items: center;
@@ -4622,11 +4622,11 @@ div{
4622
4622
  background: var(--float-rt-bg);
4623
4623
  box-shadow: var(--float-shadow);
4624
4624
  }
4625
- .iconfont[data-v-ae9330f0] {
4625
+ .iconfont[data-v-88935e0c] {
4626
4626
  font-size: 20px;
4627
4627
  margin: 0px 4px;
4628
4628
  }
4629
- input[data-v-ae9330f0] {
4629
+ input[data-v-88935e0c] {
4630
4630
  padding: 6px;
4631
4631
  background: transparent;
4632
4632
  border: 1px dashed #ccc;
@@ -4635,7 +4635,7 @@ input[data-v-ae9330f0] {
4635
4635
  font-size: 16px;
4636
4636
  color: var(--float-color);
4637
4637
  }
4638
- .submit[data-v-ae9330f0] {
4638
+ .submit[data-v-88935e0c] {
4639
4639
  border: 1px dashed #ccc;
4640
4640
  padding: 4px;
4641
4641
  cursor: pointer;
package/dist/index.d.ts CHANGED
@@ -84,7 +84,8 @@ export declare enum _UIHotkeyTypes {
84
84
  "float-fomula" = "\u516C\u5F0F\u9762\u677F",
85
85
  "float-cubelist" = "\u5143\u7D20\u9762\u677F",
86
86
  "text-add-link" = "\u6DFB\u52A0\u8D85\u94FE\u63A5",
87
- "paste-md" = "\u7C98\u8D34markdown"
87
+ "paste-md" = "\u7C98\u8D34markdown",
88
+ "text-rt" = "\u6DFB\u52A0\u6587\u5B57\u6807\u6CE8"
88
89
  }
89
90
  export interface _StatusHotkeys {
90
91
  mode: _UIHotkeyMode;
@@ -258,6 +259,7 @@ export declare class UIHotkeys extends UIBase {
258
259
  show_fomula_editor(e: KeyboardEvent): false | undefined;
259
260
  show_cubelist(e: KeyboardEvent): void;
260
261
  paste_md(e: KeyboardEvent): void;
262
+ text_rt(e: KeyboardEvent): void;
261
263
  static get default_hotkeys(): Record<_UIHotkeyTypes, _HotKeyInfo>;
262
264
  static get meta(): {
263
265
  type: _UIPart;
package/dist/index.js CHANGED
@@ -61,4 +61,4 @@ a & b & S \\
61
61
  1&2&3\\
62
62
  4&5&6
63
63
  \end{array}
64
- \right]`]}),kz={[r.UF.preset]:"预设",[r.UF.symbol]:"符号",[r.UF.bracket]:"括号",[r.UF.relation]:"关系",[r.UF.sup]:"上下标",[r.UF.arrow]:"箭头",[r.UF.operator]:"运算符",[r.UF.matrix]:"矩阵",[r.UF.expression]:"函数式"};var Rz=n(4110);const Cz={class:"fomula-toolbar"},Sz={class:"fomula-editor"},Ez={class:"fomula-input-area"},Mz=["innerHTML"],Tz={class:"fomula-candidate"},Lz={class:"fomula-candidate-nav"},Iz=["onClick"],Oz={class:"fomula-candidate-values"},Az={key:0,class:"fomula-type"},Bz=["onClick","innerHTML"],Nz=(0,l.pM)({__name:"float-fomula",props:{editor:{}},setup(e){const{tips:t}=e.editor,n=Rz.$,a=(0,i.KR)(),c=(0,i.KR)(),u=(0,i.Kh)({tab:r.UF.preset,block:!1,latex:"",size:o._FomulaSize.h4});(0,l.sV)(()=>{PN.wF.dom=a.value});const d=(0,l.EW)(()=>o.CubeFomula.render(u.size+u.latex,{displayMode:u.block}));function p(){if(!u.latex.trim())return t.tip_warning("输入公式为空,已放弃");const{anchor:e,cube:n}=PN.wF;if(e){const{courier:t,history:n,pcube:r,index:i,pid:s,id:a}=e,l=PN.wF.pos,c=t.get_recorder();l>0&&l<e.len&&c.tell(e,o.CommandCube.partition(a,a,a,l,l));const d=o.CubeFomula.get_default(u.latex,{},{block:u.block,size:u.size});c.tell(r,o.CommandCube.insert_child(s,[d],i+1)),n.record(c)}else if(n){const{courier:e,history:t,pcube:r,index:i,pid:s,id:a}=n,l=e.get_recorder();l.tell(n,o.CommandFomula.update(a,u.latex,u.size,u.block)),t.record(l)}PN.wF.show=!1}function h(e){e.stopPropagation(),e.ctrlKey&&"Enter"===e.key&&p()}function f(e){c.value&&(u.size=e)}function v(e){e.stopPropagation(),e.preventDefault();const t=e.currentTarget;e.deltaY>0?fN.DomAnimation.scroll_element(t,20,"horizental"):fN.DomAnimation.scroll_element(t,-20,"horizental")}function g(){u.latex=""}function b(){const e=u.latex;wz[r.UF.preset].push(e),PN.QI.saved=!1}return(0,l.nT)(()=>{if(PN.wF.show){const e=c.value;u.latex=PN.wF.latex,u.size=PN.wF.scale,e&&e.focus()}}),(e,t)=>(0,l.bo)(((0,l.uX)(),(0,l.CE)("div",{class:"float-fomula",style:(0,m.Tr)((0,i.R1)(PN.wF).css),ref_key:"box",ref:a},[(0,l.Lk)("div",Cz,[(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",(0,i.R1)(n).icons.success]),title:"确认",onClick:p},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",(0,i.R1)(n).icons.cube]),title:"添加预设",onClick:b},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont","icon-twoblocks",u.block?"active":""]),title:"作为独立块显示",onClick:t[0]||(t[0]=()=>u.block=!u.block)},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont","icon-eraser"]),title:"清空",onClick:g}),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",(0,i.R1)(n).icons.close]),title:"关闭",onClick:t[1]||(t[1]=()=>(0,i.R1)(PN.wF).show=!1)},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h1?"active":"","icon-formatheader1"]),title:"超大",onClick:t[2]||(t[2]=()=>f((0,i.R1)(o._FomulaSize).h1))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h2?"active":"","icon-formatheader2"]),title:"很大",onClick:t[3]||(t[3]=()=>f((0,i.R1)(o._FomulaSize).h2))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h3?"active":"","icon-formatheader3"]),title:"大",onClick:t[4]||(t[4]=()=>f((0,i.R1)(o._FomulaSize).h3))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h4?"active":"","icon-formatheader4"]),title:"中",onClick:t[5]||(t[5]=()=>f((0,i.R1)(o._FomulaSize).h4))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h5?"active":"","icon-format-header-"]),title:"小",onClick:t[6]||(t[6]=()=>f((0,i.R1)(o._FomulaSize).h5))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h6?"active":"","icon-formatheader6"]),title:"很小",onClick:t[7]||(t[7]=()=>f((0,i.R1)(o._FomulaSize).h6))},null,2)]),(0,l.Lk)("div",Sz,[(0,l.Lk)("div",Ez,[(0,l.bo)((0,l.Lk)("textarea",{spellcheck:"false",class:"fomula-latex-input",ref_key:"textarea",ref:c,"onUpdate:modelValue":t[8]||(t[8]=e=>u.latex=e),onKeydown:h,placeholder:"latex 输入区 . . .\n快速提交Ctrl + Enter\n快速关闭ESC"},null,544),[[s.Jo,u.latex]]),(0,l.Lk)("div",{class:"fomula-mathml-input",innerHTML:d.value},null,8,Mz)]),(0,l.Lk)("div",Tz,[(0,l.Lk)("div",Lz,[(0,l.Lk)("div",{class:"fomula-nav-type",onWheel:v},[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(Object.keys((0,i.R1)(wz)),e=>((0,l.uX)(),(0,l.CE)("span",{key:e,onClick:()=>u.tab=e,class:(0,m.C4)({active:u.tab===e})},(0,m.v_)((0,i.R1)(kz)[e]),11,Iz))),128))],32)]),(0,l.Lk)("div",Oz,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,i.R1)(wz),(e,t)=>((0,l.uX)(),(0,l.CE)(l.FK,{key:t},[u.tab===t?((0,l.uX)(),(0,l.CE)("div",Az,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e,(e,t)=>((0,l.uX)(),(0,l.CE)("span",{key:t,onClick:()=>function(e){const t=c.value;if(!t)return;const n=t.value,o=n.slice(0,t.selectionStart),r=n.slice(t.selectionEnd);u.latex=o+e+r}(e),innerHTML:(0,i.R1)(o.CubeFomula).render(e)},null,8,Bz))),128))])):(0,l.Q3)("v-if",!0)],64))),128))])])])],4)),[[s.aG,(0,i.R1)(PN.wF).show]])}}),Wz=(0,pN.A)(Nz,[["__scopeId","data-v-613f025b"]]),$z=(0,l.pM)({__name:"float-link-ask",props:{editor:{}},setup(e){const{root:t,tips:n}=e.editor,r=(0,l.EW)(()=>({top:PN.yg.top,left:PN.yg.left}));function s(){PN.yg.show=!1}function a(){const{cursor:e}=t,{cube:r,offset_end:i,offset_start:s}=PN.yg;if(!r)return;if(!PN.yg.url)return n.tip_warning("链接不能为空");PN.yg.show=!1;const a=t.courier.get_recorder();i!==s&&a.tell(r,o.CommandCube.partition(r.id,r.id,r.id,s,i));const l={url:PN.yg.url,title:PN.yg.title},c=o.CubeTextLink.get_default(l.url,l.title);let u=null;const d=r.next_cube;i===s||0===s?u=r:s>0&&d&&(u=d),u&&(a.tell(u,o.CommandCube.postil_add(u.id,[c])),n.tip_success("已添加超链接")),t.history.record(a)}return(e,t)=>(0,i.R1)(PN.yg).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"text-link-ask",style:(0,m.Tr)(r.value)},[(0,l.Lk)("div",{class:"iconbox"},[(0,l.Q3)(' <div class="iconfont icon-icon_window_close_new-copy" @click="close"></div> '),(0,l.Lk)("div",{class:"close-corner",onClick:s})]),(0,l.bF)(LN,{tabindex:"1",modelValue:(0,i.R1)(PN.yg).title,"onUpdate:modelValue":t[0]||(t[0]=e=>(0,i.R1)(PN.yg).title=e),name:"链接标题"},null,8,["modelValue"]),(0,l.bF)(LN,{tabindex:"2",modelValue:(0,i.R1)(PN.yg).url,"onUpdate:modelValue":t[1]||(t[1]=e=>(0,i.R1)(PN.yg).url=e),name:"超链接",onSubmit:a},null,8,["modelValue"]),(0,l.Lk)("div",{class:"confirm",onClick:a},"确认")],4)):(0,l.Q3)("v-if",!0)}}),zz=(0,pN.A)($z,[["__scopeId","data-v-7353d96b"]]),Pz=(0,l.pM)({__name:"float-link-edit",props:{editor:{}},setup(e){const{root:t}=e.editor,n=(0,l.EW)(()=>({top:PN.$q.top,left:PN.$q.left}));function r(){PN.$q.show=!1}function s(){const{cursor:e,courier:n,history:r}=t,{cube:i}=PN.$q;if(!i)return;PN.$q.show=!1;const s=n.get_recorder();s.tell(i,o.CommandTextLink.update(i.id,PN.$q.title,PN.$q.url)),r.record(s)}return(e,t)=>(0,i.R1)(PN.$q).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"text-link-ask",style:(0,m.Tr)(n.value)},[(0,l.Lk)("div",{class:"iconbox"},[(0,l.Q3)(' <div class="iconfont icon-icon_window_close_new-copy" @click="close"></div> '),(0,l.Lk)("div",{class:"close-corner",onClick:r})]),(0,l.bF)(LN,{modelValue:(0,i.R1)(PN.$q).title,"onUpdate:modelValue":t[0]||(t[0]=e=>(0,i.R1)(PN.$q).title=e),name:"链接标题"},null,8,["modelValue"]),(0,l.bF)(LN,{modelValue:(0,i.R1)(PN.$q).url,"onUpdate:modelValue":t[1]||(t[1]=e=>(0,i.R1)(PN.$q).url=e),name:"超链接",onSubmit:s},null,8,["modelValue"]),(0,l.Lk)("div",{class:"confirm",onClick:s},"确认")],4)):(0,l.Q3)("v-if",!0)}}),Fz=(0,pN.A)(Pz,[["__scopeId","data-v-3e87c757"]]),Dz={class:"float-table-grid"},Vz=["onMouseover"],Kz={class:"float-table-footer"},jz=(0,l.pM)({__name:"float-table",props:{editor:{}},setup(e){const{root:t}=e.editor,n=(0,i.Kh)({row:0,col:0});function r(e,t){return{active:e<=n.row&&t<=n.col}}function s(e){const{cursor:r,courier:i,history:s}=t,a=o.CubeTable.get_default(n.row,n.col);o.NoteTools.insert_cubes(t,[a]),PN.ud.show=!1}return(e,t)=>(0,i.R1)(PN.ud).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"float-table",style:(0,m.Tr)((0,i.R1)(PN.ud).css)},[(0,l.Lk)("div",Dz,[((0,l.uX)(),(0,l.CE)(l.FK,null,(0,l.pI)(9,e=>((0,l.uX)(),(0,l.CE)(l.FK,{key:e},[((0,l.uX)(),(0,l.CE)(l.FK,null,(0,l.pI)(9,t=>(0,l.Lk)("div",{key:t,class:(0,m.C4)(r(e,t)),onMouseover:o=>function(e,t,o){n.row=t,n.col=o}(0,e,t),onPointerdown:s},null,42,Vz)),64))],64))),64))]),(0,l.Lk)("div",Kz,[(0,l.Lk)("div",null,(0,m.v_)(n.row),1),t[0]||(t[0]=(0,l.eW)(" × ",-1)),(0,l.Lk)("div",null,(0,m.v_)(n.col),1)])],4)):(0,l.Q3)("v-if",!0)}}),Xz=(0,l.pM)({__name:"float-rt",props:{editor:{}},setup(e){const t=(0,i.Kh)({exp:""});function n(){const{root:n,tips:s}=e.editor,{cursor:a,courier:l,history:c}=n,u=PN.Sg.scope;if(!u)return;const{cube_selection:d,cube_start:p,offset_start:h,offset_end:f,cube_end:m,selection_text:v}=u,g=l.get_recorder(),b=PN.Sg.cube;if(b instanceof o.CubeChild){const e=o.CommandRt.reset(b.id,t.exp);g.tell(b,e)}else if(v){const e=p.id,n=m.id,r=o.CommandCube.delete(d.id,"backward",e,n,h,f,!0);g.tell(d,r);const s=o.CubeRt.get_default();s.info.text=v,s.info.explanation=t.exp,p instanceof o.CubeText&&(s.css=structuredClone((0,i.ux)(p.css))),g.tell(p,o.CommandCube.insert(e,[s],e,n,h,h))}c.record(g),r()}function r(){PN.Sg.cube=void 0,PN.Sg.show=!1}return(0,l.wB)(()=>PN.Sg.show,()=>{t.exp=""}),(e,o)=>(0,i.R1)(PN.Sg).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"float-rt",style:(0,m.Tr)((0,i.R1)(PN.Sg).css)},[o[1]||(o[1]=(0,l.Lk)("div",{class:"iconfont icon-biaozhu"},null,-1)),(0,l.bo)((0,l.Lk)("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>t.exp=e),onChange:n},null,544),[[s.Jo,t.exp]]),(0,l.Lk)("div",{class:"submit",onClick:n},"标注"),(0,l.Lk)("div",{class:"close-corner",onClick:r})],4)):(0,l.Q3)("v-if",!0)}}),Hz=(0,pN.A)(Xz,[["__scopeId","data-v-ae9330f0"]]),Gz={class:"note-tips"},qz={class:"msgs"},Uz=["onClick"],Qz=(0,l.pM)({__name:"ui-tips",props:{editor:{}},setup(e){const{tips:t}=e.editor;return(e,n)=>((0,l.uX)(),(0,l.CE)("div",Gz,[(0,l.Lk)("div",qz,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,i.R1)(t).msgs,e=>((0,l.uX)(),(0,l.CE)("div",{key:e.id,class:(0,m.C4)(["msg-item iconfont",e.icon]),style:(0,m.Tr)(e.css),onClick:t=>e.click&&e.click(t)},(0,m.v_)(e.msg),15,Uz))),128))])]))}}),Yz=(0,pN.A)(Qz,[["__scopeId","data-v-5b66db9c"]]),Zz=(0,l.pM)({__name:"float-node-layout",props:{editor:{}},setup(e){const{root:t,tips:n}=e.editor,{courier:r,history:s}=t;function a(e){const{node:t}=PN.p;if(!t)return n.tip_error("未发现目标节点");const i=r.get_recorder(),a=o.CommandNode.layout_change(t.id,{layout:e});i.tell(t,a),s.record(i),PN.p.show=!1}return(e,t)=>(0,i.R1)(PN.p).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"float-node-layout",style:(0,m.Tr)((0,i.R1)(PN.p).css)},[(0,l.Lk)("div",{class:"iconfont icon-clear",onClick:t[0]||(t[0]=e=>a(null))}),(0,l.Lk)("div",{class:"iconfont icon-right",onClick:t[1]||(t[1]=e=>a("right"))}),(0,l.Lk)("div",{class:"iconfont icon-left",onClick:t[2]||(t[2]=e=>a("left"))}),(0,l.Lk)("div",{class:"iconfont icon-up",onClick:t[3]||(t[3]=e=>a("up"))}),(0,l.Lk)("div",{class:"iconfont icon-down",onClick:t[4]||(t[4]=e=>a("down"))}),(0,l.Lk)("div",{class:"iconfont icon-time-right",onClick:t[5]||(t[5]=e=>a("time-right"))}),(0,l.Lk)("div",{class:"iconfont icon-time-down",onClick:t[6]||(t[6]=e=>a("time-down"))})],4)):(0,l.Q3)("v-if",!0)}}),Jz=(0,pN.A)(Zz,[["__scopeId","data-v-3b673ff8"]]),eP={class:"deepsky-note"},tP={class:"deepsky-editor-box"},nP=(0,l.pM)({__name:"ui-editor",props:{editor:{}},setup(e){const t=(0,i.KR)(),{config:n}=e.editor;function o(e){e.preventDefault();const t=e.currentTarget,o=Math.sign(e.deltaY)*n.data.scroll_distance;e.shiftKey?fN.DomAnimation.scroll_element(t,o,"horizental"):fN.DomAnimation.scroll_element(t,o,"vertical")}return(0,l.sV)(()=>{const n=t.value;n&&e.editor.root.render(n)}),(e,n)=>((0,l.uX)(),(0,l.CE)("div",eP,[(0,l.Lk)("div",{class:"deepsky-note-bg",style:(0,m.Tr)(e.editor.theme.background_css)},null,4),(0,l.bF)(hN,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",tP,[(0,l.bF)(v$,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",{class:"note-box",onWheel:o},[(0,l.bF)(M$,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",{ref_key:"note",ref:t},null,512)],32)]),(0,l.bF)(x$,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 提示 "),(0,l.bF)(Yz,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 浮动面板 "),(0,l.bF)(hz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(_z,{editor:e.editor},null,8,["editor"]),(0,l.bF)(xz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(Wz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(zz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(Fz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(jz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(Jz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(Hz,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 弹窗 "),(0,l.bF)(O$,{editor:e.editor},null,8,["editor"]),(0,l.bF)(H$,{editor:e.editor},null,8,["editor"]),(0,l.bF)(J$,{editor:e.editor},null,8,["editor"])]))}}),oP=(0,pN.A)(nP,[["__scopeId","data-v-b8749a66"]]),rP={class:"doc-title-box"},iP={class:"doc-title"},sP={class:"doc-date"},aP=(0,l.pM)({__name:"ui-export-title",props:{editor:{}},setup(e){let t;const n=FN.z.api_get_noteinfo;return n&&(t=n()),(e,n)=>((0,l.uX)(),(0,l.CE)("div",rP,[(0,l.Lk)("div",iP,(0,m.v_)((0,i.R1)(t)?.name),1),(0,l.Lk)("div",sP,(0,m.v_)((0,i.R1)(fN.DateTime).get_date_string(new Date)),1)]))}}),lP=(0,pN.A)(aP,[["__scopeId","data-v-640820d4"]]),cP={class:"box-catalogue"},uP={class:"box-groups"},dP={class:"group-title-box"},pP=["href"],hP=["data-id"],fP=["href"],mP=(0,l.pM)({__name:"ui-exporrt-catalogue",props:{editor:{}},setup(e){const t=e.editor.catalogue.group;function n(e){return{background:e.bg}}return(e,o)=>((0,l.uX)(),(0,l.CE)("div",cP,[o[1]||(o[1]=(0,l.Lk)("div",{class:"catalogue-title"},"catalogue",-1)),(0,l.Lk)("div",uP,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,i.R1)(t),e=>((0,l.uX)(),(0,l.CE)("div",{key:e.uid,class:"group",style:(0,m.Tr)(n(e))},[(0,l.Lk)("div",dP,[(0,l.Lk)("a",{class:"group-title",href:`#${e.cubeid}`},(0,m.v_)(e.name),9,pP),o[0]||(o[0]=(0,l.Lk)("div",{class:"group-tool iconfont icon-10Colors"},null,-1))]),(0,l.Lk)("div",{ref_for:!0,ref:"links","data-id":e.uid},[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.items,e=>((0,l.uX)(),(0,l.CE)("a",{key:e.uid,class:"group-item",href:`#${e.cubeid}`},(0,m.v_)(e.name),9,fP))),128))],8,hP)],4))),128))])]))}}),vP=(0,pN.A)(mP,[["__scopeId","data-v-dfeb6bd0"]]),gP={class:"deepsky-note"},bP={class:"deepsky-editor-box"},_P=(0,l.pM)({__name:"ui-export-pdf",props:{editor:{}},setup(e){const t=(0,i.KR)();return(0,l.sV)(()=>{const n=t.value;n&&e.editor.root.render(n)}),(e,n)=>((0,l.uX)(),(0,l.CE)("div",gP,[(0,l.bF)(lP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(vP,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",bP,[(0,l.Lk)("div",{ref_key:"note",ref:t},null,512)])]))}}),yP=(0,pN.A)(_P,[["__scopeId","data-v-5bcba3ac"]]);var xP=n(7925),wP=n(193),kP=n(4809),RP=n(9029),CP=n(1778),SP=n(9562),EP=n(7333),MP=n(9444),TP=n(1050),LP=n(6219),IP=n(2176),OP=n(3539),AP=n(7999),BP=n(5450),NP=n(81),WP=n(1276),$P=n(28),zP=n(6393),PP=n(4860),FP=n(5037);const DP=new o.Waiter,VP={class:"deepsky-note"},KP={class:"deepsky-editor-box"},jP=(0,l.pM)({__name:"ui-editor-map",props:{editor:{}},setup(e){const t=(0,i.KR)(),{config:n}=e.editor;function o(e){e.preventDefault();const t=e.currentTarget,o=Math.sign(e.deltaY)*n.data.scroll_distance;e.shiftKey?fN.DomAnimation.scroll_element(t,o,"horizental"):fN.DomAnimation.scroll_element(t,o,"vertical")}return(0,l.sV)(async()=>{const n=t.value;n&&(await e.editor.root.render(n),DP.resolve(),console.log("渲染完成"))}),(e,n)=>((0,l.uX)(),(0,l.CE)("div",VP,[(0,l.Lk)("div",{class:"deepsky-note-bg",style:(0,m.Tr)(e.editor.theme.background_css)},null,4),(0,l.bF)(hN,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",KP,[(0,l.bF)(v$,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",{class:"note-box",onWheel:o},[(0,l.bF)(M$,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",{class:"note",ref_key:"note",ref:t},null,512),(0,l.Q3)(' <MapStatus :editor="editor"></MapStatus> ')],32)]),(0,l.bF)(x$,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 提示 "),(0,l.bF)(Yz,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 浮动面板 "),(0,l.bF)(hz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(_z,{editor:e.editor},null,8,["editor"]),(0,l.bF)(xz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(Wz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(zz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(Fz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(jz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(Jz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(Hz,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 弹窗 "),(0,l.bF)(O$,{editor:e.editor},null,8,["editor"]),(0,l.bF)(H$,{editor:e.editor},null,8,["editor"]),(0,l.bF)(J$,{editor:e.editor},null,8,["editor"])]))}}),XP=(0,pN.A)(jP,[["__scopeId","data-v-0044fba7"]]);class HP{_root;_menubar;_sidebar;_toolbar;_statusbar;_presets;_hotkeys;_config;_dict;_fomula;_ai;_catalogue;_theme;_search;_convertors;_float;_event;_tips;_listener;_memory;_uidata;_editor_dom;get uidata(){return this._uidata}get tips(){return this._tips}get memory(){return this._memory}get listener(){return this._listener}get root(){return this._root}get float(){return this._float}get event(){return this._event}get convertors(){return this._convertors}get search(){return this._search}get ai(){return this._ai}get catalogue(){return this._catalogue}get theme(){return this._theme}get config(){return this._config}get dict(){return this._dict}get fomula(){return this._fomula}get hotkeys(){return this._hotkeys}get presets(){return this._presets}get menubar(){return this._menubar}get sidebar(){return this._sidebar}get toolbar(){return this._toolbar}get statusbar(){return this._statusbar}get editor_dom(){return this._editor_dom}constructor(e,t=$P.U.uidata){this._root=e,this._uidata=this.update_data(structuredClone((0,i.ux)(t))),this._tips=new zP.L(this),this._config=new CP.X(this),this._event=new WP.D(this),this._memory=new FP.U(this),this._statusbar=new LP.m(this),this._presets=new kP.n(this),this._hotkeys=new RP.w(this),this._dict=new SP.J(this),this._fomula=new IP.t(this),this._ai=new EP.b(this),this._theme=new OP._(this),this._catalogue=new MP.a(this),this._search=new AP.F(this),this._convertors=new BP.i(this),this._float=new NP.z(this),this._sidebar=new wP.H(this),this._toolbar=new TP.q(this),this._menubar=new xP.Z(this),this._listener=new PP.d(this),o.NoteManager.init(),window.editor=this}init(e){o.NoteApi.register_asset_url(e.api_asset_url),o.NoteApi.register_tip(this.tips)}export(){return{versions:$P.U.versions,config:this.config.export(),catalogue:this.catalogue.export(),dict:this.dict.export(),fomula:this.fomula.export(),hotkeys:this.hotkeys.export(),presets:this.presets.export(),theme:this.theme.export(),memory:this.memory.export()}}update_data(e){return e.versions.editor||(e.catalogue=e.sidebar?.catalogue,e.theme=e.sidebar?.theme),e}async render(e){if(this._editor_dom=e,this.root instanceof o.CubeDoc){const t=(0,s.Ef)(oP,{editor:this});t.use(lN),t.mount(e)}else{const t=(0,s.Ef)(XP,{editor:this});t.use(lN),t.mount(e),await DP.ps}Promise.resolve().then(()=>{this.event.emit_render_end()})}render_pdf(e){const t=this.root.cubes.get_types_cube(o._NoteCubeTypes.box_folder);for(let e of this.root.children)e.attrs.fold=!1;for(let e of t.values())e.attrs.fold=!1;(0,s.Ef)(yP,{editor:this}).mount(e),Promise.resolve().then(()=>{this.event.emit_render_end()})}get_editor_version(){return HP.get_editor_version()}static get_editor_version(){return{version:"1.105.9",time_publish:1763898303510}}static get meta(){return{type:r.d2.editor,version:1}}}},2808:(e,t,n)=>{"use strict";n.d(t,{a:()=>h});var o=n(2083),r=n(4984),i=n(8018),s=n(7633),a=n(7020),l=n(5024),c=n(5481),u=n(6424),d=n(4089),p=n(5483);class h extends i.e{data;get meta(){return h.meta}get group(){return this.data.group}constructor(e){super(e);const t=this.update_data(this.uidata.catalogue||a.U.catalogue);this.data=(0,s.Kh)(t)}export(){return structuredClone((0,s.ux)(this.data))}update_data(e){return e}show_bookmark(){const{tips:e}=this,t=this.root,{cursor:n}=t,r=n.cube_end;if(t.scope.size,!r)return e.tip_error("未发现激活的文本块,无法添加书签");p.jm.show_bookmark=!0;const i=r||null;l.c.cube=i,i instanceof o.CubeText&&(l.c.tagname=i.text),l.c.group||(l.c.group=this.group[0]||null)}close_bookmark(){p.jm.show_bookmark=!1}add_bookmark(){const{tagname:e,cube:t,group:n,group_bg:o}=l.c;if(t){if("bookmark"===l.c.type){if(!n)return l.c.tip="请选择书签组",void setTimeout(()=>{l.c.tip=""},5e3);const o={type:"bookmark",uid:(0,c.Ak)(),cubeid:t.id,name:e};n.items.push(o)}else{const n={type:"group",uid:(0,c.Ak)(),name:e,cubeid:t.id,bg:o,items:[]};this.data.group.push(n)}p.jm.show_bookmark=!1,this.sidebar.root.clear_scope(),u.Q.saved=!1}}update_anchor(e,t){if(this.group)for(let n of this.group){n.cubeid===e&&(this.root.find_cube(n.cubeid)||(n.cubeid=t));for(let o of n.items)o.cubeid===e&&(this.root.find_cube(o.cubeid)||(o.cubeid=t))}}async locate(e,t=!0){const{courier:n,history:r}=this.root,i=this.editor.tips,s=this.root.find_cube(e);if(s instanceof o.CubeChild){let e=s.pcube;const t=n.get_recorder();for(;!(e instanceof o.CubeRoot);)e.attrs.fold&&(console.log("展开折叠",e),t.tell(e,o.CommandCube.fold(e.id,!1)),r.record(t)),e=e.pcube;r.record(t)}const a=s?.host_node;a&&(console.log("移动节点"),a.move_to_center(),a.pcube.check_show(),a.pcube.set_graph_visible(a,!0)),await(0,d.dY)();const l=document.getElementById(e);if(!l)return i.tip_error("未发现书签锚点");let c=l.style.backgroundColor;l.style.backgroundColor="var(--locate-anchor-bg)",setTimeout(()=>{"var(--locate-anchor-bg)"===l.style.backgroundColor&&(l.style.backgroundColor=c)},3e3),t&&l.scrollIntoView({block:"center",behavior:"instant"})}click(e,t){const{stats:n}=this.root,i=this.editor.tips,{mode:s}=l.c;if(s===r.U_.std)this.locate(e.cubeid);else if(s===r.U_.delete){if(n.mode===o._NoteMode.read)return i.tip_warning("只读模式不可操作");if("bookmark"===e.type){const n=t.items.indexOf(e);n>=0&&t.items.splice(n,1),u.Q.saved=!1}else if("group"===e.type){const e=this.group.indexOf(t);e>=0&&this.group.splice(e,1),u.Q.saved=!1}}}static get meta(){return{type:r.d2.catalogue,version:1}}}},3179:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,o,r){var i=o.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var o=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=r(this).startOf(t).add(1,t).date(o),s=r(this).endOf(e);if(i.isBefore(s))return 1}var a=r(this).startOf(t).date(o).startOf(e).subtract(1,"millisecond"),l=this.diff(a,e,!0);return l<0?r(this).startOf("week").week():Math.ceil(l)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},3281:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.dayOfYear=function(e){var t=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day")}}}()},3363:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}()},3539:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var o=n(7633),r=n(4984),i=n(8018),s=n(5483),a=n(28);class l extends i.e{_link=null;data;list_theme=(0,o.Gc)([]);list_bg=(0,o.Gc)([]);defaut_theme;default_bg;constructor(e){super(e);const t=this.update_data(this.uidata.theme||a.U.theme);this.data=(0,o.Kh)(t),this.data.theme?.path&&this.use(this.data.theme)}get background(){return this.data.background}get background_filter(){const e=this.background.active;let t=this.background.filters[e];return t||(t=this.get_default_filter(),this.background.filters[e]=t),t}get background_url(){const e=this.data.background.active||this.default_bg?.name;for(let t of this.list_bg)if(t.name===e)return t.path;return""}get background_css(){const e=this.background.active;return{background:`url(${this.background_url}) center/cover no-repeat`,filter:this.get_css_filter(e)}}get meta(){return l.meta}load_themes(e){this.list_theme.length=0,this.list_theme.push(...e)}load_background(e){this.list_bg.length=0,this.list_bg.push(...e)}set_default_bg(e){this.default_bg=e,this.data.background.active||(this.data.background.active=e.name)}set_default_theme(e){this.defaut_theme=e,this.data.theme||this.use(e)}get_css_filter(e){let t=this.background.filters[e];return t||(t=this.get_default_filter(),this.background.filters[e]=t),`blur(${t.blur}px) \n brightness(${t.brightness}) \n contrast(${t.contrast}) \n hue-rotate(${t.hue}deg) \n saturate(${t.saturate})\n opacity(${t.opacity})\n invert(${t.invert})\n sepia(${t.sepia})\n `}set_background(e){this.data.background.active=e}export(){return structuredClone((0,o.ux)(this.data))}update_data(e){return(this.versions.theme||1)<2&&(e.background=a.U.theme.background),e}use(e){const{tips:t}=this.editor,n=e||this.defaut_theme;if(!n)return;const{name:o,path:r}=n;this._link||(this._link=document.createElement("link"),document.head.appendChild(this._link)),this._link.setAttribute("rel","stylesheet"),this._link.href=r,this.data.theme=e,s.QI.saved=!1,t.tip_info(`已更新主题:${o}`)}clear(){this._link&&(this._link.href=""),this.data.theme=void 0}reset_background(){this.data.background.active=""}get_default_filter(){return{blur:0,brightness:1,contrast:1,hue:0,saturate:1,opacity:.8,invert:0,sepia:0}}static get meta(){return{type:r.d2.theme,version:2}}}},3709:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});const o=(0,n(7633).Kh)({open:!1,active:void 0})},3890:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(7633),r=n(4984),i=n(2083),s=n(8018),a=n(6424),l=n(4110);class c extends s.e{_record_docdata_base;_record_history_base=0;_record_tip_stop;data;get items(){return(0,o.tB)(this.data.items)}get meta(){return c.meta}get init_data(){const{menubar:e,root:t,tips:n,config:o,statusbar:s}=this;return{items:[{id:r.zX["fold-sidebar"],tooltip:"折叠侧边栏",get class(){return["iconfont icon-cc-arrow-left-square",a.Q.fold_sidebar?"active":""]},click:(e,t)=>{a.Q.fold_sidebar=!a.Q.fold_sidebar}},{id:r.zX["fold-toolbar"],tooltip:"折叠工具栏",get class(){return["iconfont icon-cc-arrow-up-square",a.Q.fold_toolbar?"active":""]},click:(e,t)=>{a.Q.fold_toolbar=!a.Q.fold_toolbar}},{id:r.zX["import-md"],tooltip:"导入markdown",class:["iconfont","icon-MARKDOWN"],click:(e,t)=>{this.note_import_markdown()}},{id:r.zX["mode-reading"],tooltip:"阅读模式",get class(){const e=["iconfont","icon-ReadingMode"];return a.Q.mode===i._NoteMode.read&&e.push("active"),e},click:(e,o)=>{t.stats.mode=t.stats.mode===i._NoteMode.read?i._NoteMode.edit:i._NoteMode.read,n.tip_info(`当前为${s.doc_mode_name}`)}},{id:r.zX.record,get tooltip(){return t.stats.is_recording?"录制中...":"录制演示文件"},get class(){const e=["iconfont","icon-Metting"];return a.Q.note_recording&&e.push("active"),e},click:(e,t)=>{this.note_record()}},{id:r.zX["dict-candidator"],get class(){const e=["iconfont","icon-honeycomb-fill"];return a.Q.dict_open&&e.push("active"),e},tooltip:"候选词提示",click:(e,t)=>{o.data.dict_candidate_open=!o.data.dict_candidate_open,o.data.dict_candidate_open?n.tip_green("已开启候选词提示"):n.tip_green("已关闭候选词提示")}}]}}constructor(e){super(e),this.data=(0,o.Kh)(this.init_data)}update_data(){}export(){}register(e,t=-1){t>0?this.data.items.splice(t,0,e):this.data.items.push(e)}note_import_markdown(){const{convertors:e,root:t}=this,{stats:n,courier:o,history:r}=t,{tips:s}=this.editor,a=document.createElement("input");a.type="file",a.accept=".md",a.click(),a.onchange=function(l){const c=a.files?.[0];if(!c)return s.tip_warning("未选择文件");c.text().then(a=>{const l=e.import_md(a);if(t instanceof i.CubeDoc){const e=n.anchor_root||t.child_last;if(!(e&&e instanceof i.CubeBoxRoot))return;const a=o.get_recorder();a.tell(e,i.CommandCube.insert_child(e.id,l.cubedata,e.child_count)),r.record(a),s.tip_success("导入markdown完成")}else if(t instanceof i.CubeMap){const e=n.anchor_root,a=o.get_recorder();if(e)a.tell(e,i.CommandCube.insert_child(e.id,l.cubedata,e.child_count));else{const e=t.get_view_center(),n=i.CubeNode.get_default(e),o=i.CubeBoxRoot.get_default(l.cubedata);n.info=[o],a.tell(t,i.CommandMap.node_add(t.id,[n]))}r.record(a),s.tip_success("导入markdown完成")}})}}note_record(){const e=this.root,{history:t,stats:n}=e,{tips:o}=this.editor;if(e.stats.is_recording)e.stats.is_recording=!1,this.event.emit_export_show({docdata:this._record_docdata_base,uidata:this.editor.export(),record:t.export(this._record_history_base)}),this._record_tip_stop&&this._record_tip_stop();else{if(n.is_read_mode)return o.tip_red("阅读模式不可录制");this._record_history_base=t.len_undo,n.is_recording=!0;const r=o.tip_aloud("准备录制...",1/0);this._record_docdata_base=e.export(),r(),this._record_tip_stop=o.tip({msg:"录制中...",duration:1/0,icon:l.$.icons.record})}}static get meta(){return{type:r.d2.menubar,version:1}}}},3972:(e,t,n)=>{"use strict";function o(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}n.d(t,{$3:()=>h,$H:()=>$,$P:()=>g,BH:()=>j,BX:()=>ee,Bm:()=>x,C4:()=>Q,CE:()=>m,CP:()=>c,DY:()=>z,Gv:()=>w,J$:()=>Z,Kg:()=>y,MZ:()=>r,Mp:()=>l,NO:()=>a,Oj:()=>i,PT:()=>O,Qd:()=>E,Ro:()=>D,SU:()=>T,TF:()=>d,Tg:()=>B,Tn:()=>_,Tr:()=>X,We:()=>K,X$:()=>u,Y2:()=>J,ZH:()=>N,Zf:()=>S,_B:()=>Y,bB:()=>F,cy:()=>f,gd:()=>b,pD:()=>o,rU:()=>W,tE:()=>s,u3:()=>te,vM:()=>v,v_:()=>oe,yI:()=>M,yL:()=>k,yQ:()=>P});const r={},i=[],s=()=>{},a=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),u=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p=Object.prototype.hasOwnProperty,h=(e,t)=>p.call(e,t),f=Array.isArray,m=e=>"[object Map]"===C(e),v=e=>"[object Set]"===C(e),g=e=>"[object Date]"===C(e),b=e=>"[object RegExp]"===C(e),_=e=>"function"==typeof e,y=e=>"string"==typeof e,x=e=>"symbol"==typeof e,w=e=>null!==e&&"object"==typeof e,k=e=>(w(e)||_(e))&&_(e.then)&&_(e.catch),R=Object.prototype.toString,C=e=>R.call(e),S=e=>C(e).slice(8,-1),E=e=>"[object Object]"===C(e),M=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,T=o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),L=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-\w/g,O=L(e=>e.replace(I,e=>e.slice(1).toUpperCase())),A=/\B([A-Z])/g,B=L(e=>e.replace(A,"-$1").toLowerCase()),N=L(e=>e.charAt(0).toUpperCase()+e.slice(1)),W=L(e=>e?`on${N(e)}`:""),$=(e,t)=>!Object.is(e,t),z=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},P=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},F=e=>{const t=parseFloat(e);return isNaN(t)?e:t},D=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let V;const K=()=>V||(V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),j=o("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function X(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=y(o)?U(o):X(o);if(r)for(const e in r)t[e]=r[e]}return t}if(y(e)||w(e))return e}const H=/;(?![^(]*\))/g,G=/:([^]+)/,q=/\/\*[^]*?\*\//g;function U(e){const t={};return e.replace(q,"").split(H).forEach(e=>{if(e){const n=e.split(G);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Q(e){let t="";if(y(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const o=Q(e[n]);o&&(t+=o+" ")}else if(w(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Y(e){if(!e)return null;let{class:t,style:n}=e;return t&&!y(t)&&(e.class=Q(t)),n&&(e.style=X(n)),e}const Z=o("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function J(e){return!!e||""===e}function ee(e,t){if(e===t)return!0;let n=g(e),o=g(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=x(e),o=x(t),n||o)return e===t;if(n=f(e),o=f(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=ee(e[o],t[o]);return n}(e,t);if(n=w(e),o=w(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(o&&!r||!o&&r||!ee(e[n],t[n]))return!1}}return String(e)===String(t)}function te(e,t){return e.findIndex(e=>ee(e,t))}const ne=e=>!(!e||!0!==e.__v_isRef),oe=e=>y(e)?e:null==e?"":f(e)||w(e)&&(e.toString===R||!_(e.toString))?ne(e)?oe(e.value):JSON.stringify(e,re,2):String(e),re=(e,t)=>ne(t)?re(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],o)=>(e[ie(t,o)+" =>"]=n,e),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>ie(e))}:x(t)?ie(t):!w(t)||f(t)||E(t)?t:String(t),ie=(e,t="")=>{var n;return x(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}},4089:(e,t,n)=>{"use strict";n.d(t,{$u:()=>ve,$y:()=>Ee,CE:()=>sn,Df:()=>J,E3:()=>mn,EW:()=>Fn,EY:()=>Qt,FK:()=>Ut,Gt:()=>st,Gy:()=>V,Ht:()=>Fe,Ic:()=>me,Im:()=>$,K9:()=>Ct,KC:()=>he,Lk:()=>pn,MZ:()=>Z,Mw:()=>Yt,Ng:()=>fn,OA:()=>De,OW:()=>U,Q3:()=>gn,QP:()=>j,R8:()=>Kn,RG:()=>Ae,Tb:()=>Ne,WQ:()=>at,Wv:()=>an,Y4:()=>le,bF:()=>hn,bo:()=>S,dY:()=>m,eW:()=>vn,eX:()=>Oe,fn:()=>zt,g2:()=>Ce,gN:()=>Me,h:()=>Dn,hi:()=>be,k6:()=>C,n:()=>ae,nI:()=>Sn,nT:()=>At,pI:()=>Ie,pM:()=>ee,pR:()=>G,qL:()=>s,sV:()=>fe,uX:()=>tn,v6:()=>xn,vv:()=>ln,wB:()=>Bt,xo:()=>ge,zz:()=>je});var o=n(7633),r=n(3972);function i(e,t,n,o){try{return o?e(...o):e()}catch(e){a(e,t,n)}}function s(e,t,n,o){if((0,r.Tn)(e)){const s=i(e,t,n,o);return s&&(0,r.yL)(s)&&s.catch(e=>{a(e,t,n)}),s}if((0,r.cy)(e)){const r=[];for(let i=0;i<e.length;i++)r.push(s(e[i],t,n,o));return r}}function a(e,t,n,s=!0){t&&t.vnode;const{errorHandler:a,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||r.MZ;if(t){let r=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,s,l))return;r=r.parent}if(a)return(0,o.C4)(),i(a,null,10,[e,s,l]),void(0,o.bl)()}!function(e,t,n,o=!0,r=!1){if(r)throw e;console.error(e)}(e,0,0,s,l)}const l=[];let c=-1;const u=[];let d=null,p=0;const h=Promise.resolve();let f=null;function m(e){const t=f||h;return e?t.then(this?e.bind(this):e):t}function v(e){if(!(1&e.flags)){const t=y(e),n=l[l.length-1];!n||!(2&e.flags)&&t>=y(n)?l.push(e):l.splice(function(e){let t=c+1,n=l.length;for(;t<n;){const o=t+n>>>1,r=l[o],i=y(r);i<e||i===e&&2&r.flags?t=o+1:n=o}return t}(t),0,e),e.flags|=1,g()}}function g(){f||(f=h.then(x))}function b(e,t,n=c+1){for(;n<l.length;n++){const t=l[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;l.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function _(e){if(u.length){const e=[...new Set(u)].sort((e,t)=>y(e)-y(t));if(u.length=0,d)return void d.push(...e);for(d=e,p=0;p<d.length;p++){const e=d[p];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}d=null,p=0}}const y=e=>null==e.id?2&e.flags?-1:1/0:e.id;function x(e){r.tE;try{for(c=0;c<l.length;c++){const e=l[c];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),i(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;c<l.length;c++){const e=l[c];e&&(e.flags&=-2)}c=-1,l.length=0,_(),f=null,(l.length||u.length)&&x(e)}}let w=null,k=null;function R(e){const t=w;return w=e,k=e&&e.type.__scopeId||null,t}function C(e,t=w,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&on(-1);const r=R(t);let i;try{i=e(...n)}finally{R(r),o._d&&on(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function S(e,t){if(null===w)return e;const n=Pn(w),i=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[s,a,l,c=r.MZ]=t[e];s&&((0,r.Tn)(s)&&(s={mounted:s,updated:s}),s.deep&&(0,o.hV)(a),i.push({dir:s,instance:n,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function E(e,t,n,r){const i=e.dirs,a=t&&t.dirs;for(let l=0;l<i.length;l++){const c=i[l];a&&(c.oldValue=a[l].value);let u=c.dir[r];u&&((0,o.C4)(),s(u,n,8,[e.el,c,e,t]),(0,o.bl)())}}const M=Symbol("_vte"),T=e=>e.__isTeleport,L=e=>e&&(e.disabled||""===e.disabled),I=e=>e&&(e.defer||""===e.defer),O=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,A=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,B=(e,t)=>{const n=e&&e.to;return(0,r.Kg)(n)?t?t(n):null:n},N={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,i,s,a,l,c){const{mc:u,pc:d,pbc:p,o:{insert:h,querySelector:f,createText:m,createComment:v}}=c,g=L(t.props);let{shapeFlag:b,children:_,dynamicChildren:y}=t;if(null==e){const e=t.el=m(""),c=t.anchor=m("");h(e,n,o),h(c,n,o);const d=(e,t)=>{16&b&&(r&&r.isCE&&(r.ce._teleportTarget=e),u(_,e,t,r,i,s,a,l))},p=()=>{const e=t.target=B(t.props,f),n=P(e,t,m,h);e&&("svg"!==s&&O(e)?s="svg":"mathml"!==s&&A(e)&&(s="mathml"),g||(d(e,n),z(t,!1)))};g&&(d(n,c),z(t,!0)),I(t.props)?(t.el.__isMounted=!1,Rt(()=>{p(),delete t.el.__isMounted},i)):p()}else{if(I(t.props)&&!1===e.el.__isMounted)return void Rt(()=>{N.process(e,t,n,o,r,i,s,a,l,c)},i);t.el=e.el,t.targetStart=e.targetStart;const u=t.anchor=e.anchor,h=t.target=e.target,m=t.targetAnchor=e.targetAnchor,v=L(e.props),b=v?n:h,_=v?u:m;if("svg"===s||O(h)?s="svg":("mathml"===s||A(h))&&(s="mathml"),y?(p(e.dynamicChildren,y,b,r,i,s,a),Mt(e,t,!0)):l||d(e,t,b,_,r,i,s,a,!1),g)v?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):W(t,n,u,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=B(t.props,f);e&&W(t,e,null,c,0)}else v&&W(t,h,m,c,1);z(t,g)}},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:s,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:p}=e;if(d&&(r(c),r(u)),i&&r(l),16&s){const e=i||!L(p);for(let r=0;r<a.length;r++){const i=a[r];o(i,t,n,e,!!i.dynamicChildren)}}},move:W,hydrate:function(e,t,n,o,r,i,{o:{nextSibling:s,parentNode:a,querySelector:l,insert:c,createText:u}},d){function p(e,t,l,c){t.anchor=d(s(e),t,a(e),n,o,r,i),t.targetStart=l,t.targetAnchor=c}const h=t.target=B(t.props,l),f=L(t.props);if(h){const a=h._lpa||h.firstChild;if(16&t.shapeFlag)if(f)p(e,t,a,a&&s(a));else{t.anchor=s(e);let l=a;for(;l;){if(l&&8===l.nodeType)if("teleport start anchor"===l.data)t.targetStart=l;else if("teleport anchor"===l.data){t.targetAnchor=l,h._lpa=t.targetAnchor&&s(t.targetAnchor);break}l=s(l)}t.targetAnchor||P(h,t,u,c),d(a&&s(a),t,h,n,o,r,i)}z(t,f)}else f&&16&t.shapeFlag&&p(e,t,e,s(e));return t.anchor&&s(t.anchor)}};function W(e,t,n,{o:{insert:o},m:r},i=2){0===i&&o(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:l,children:c,props:u}=e,d=2===i;if(d&&o(s,t,n),(!d||L(u))&&16&l)for(let e=0;e<c.length;e++)r(c[e],t,n,2);d&&o(a,t,n)}const $=N;function z(e,t){const n=e.ctx;if(n&&n.ut){let o,r;for(t?(o=e.el,r=e.anchor):(o=e.targetStart,r=e.targetAnchor);o&&o!==r;)1===o.nodeType&&o.setAttribute("data-v-owner",n.uid),o=o.nextSibling;n.ut()}}function P(e,t,n,o){const r=t.targetStart=n(""),i=t.targetAnchor=n("");return r[M]=i,e&&(o(r,e),o(i,e)),i}const F=Symbol("_leaveCb"),D=Symbol("_enterCb");function V(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return fe(()=>{e.isMounted=!0}),ge(()=>{e.isUnmounting=!0}),e}const K=[Function,Array],j={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:K,onEnter:K,onAfterEnter:K,onEnterCancelled:K,onBeforeLeave:K,onLeave:K,onAfterLeave:K,onLeaveCancelled:K,onBeforeAppear:K,onAppear:K,onAfterAppear:K,onAppearCancelled:K},X=e=>{const t=e.subTree;return t.component?X(t.component):t};function H(e){let t=e[0];if(e.length>1){let n=!1;for(const o of e)if(o.type!==Yt){t=o,n=!0;break}}return t}const G={name:"BaseTransition",props:j,setup(e,{slots:t}){const n=Sn(),r=V();return()=>{const i=t.default&&J(t.default(),!0);if(!i||!i.length)return;const s=H(i),a=(0,o.ux)(e),{mode:l}=a;if(r.isLeaving)return Q(s);const c=Y(s);if(!c)return Q(s);let u=U(c,a,r,n,e=>u=e);c.type!==Yt&&Z(c,u);let d=n.subTree&&Y(n.subTree);if(d&&d.type!==Yt&&!cn(d,c)&&X(n).type!==Yt){let e=U(d,a,r,n);if(Z(d,e),"out-in"===l&&c.type!==Yt)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,d=void 0},Q(s);"in-out"===l&&c.type!==Yt?e.delayLeave=(e,t,n)=>{q(r,d)[String(d.key)]=d,e[F]=()=>{t(),e[F]=void 0,delete u.delayedLeave,d=void 0},u.delayedLeave=()=>{n(),delete u.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return s}}};function q(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function U(e,t,n,o,i){const{appear:a,mode:l,persisted:c=!1,onBeforeEnter:u,onEnter:d,onAfterEnter:p,onEnterCancelled:h,onBeforeLeave:f,onLeave:m,onAfterLeave:v,onLeaveCancelled:g,onBeforeAppear:b,onAppear:_,onAfterAppear:y,onAppearCancelled:x}=t,w=String(e.key),k=q(n,e),R=(e,t)=>{e&&s(e,o,9,t)},C=(e,t)=>{const n=t[1];R(e,t),(0,r.cy)(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},S={mode:l,persisted:c,beforeEnter(t){let o=u;if(!n.isMounted){if(!a)return;o=b||u}t[F]&&t[F](!0);const r=k[w];r&&cn(e,r)&&r.el[F]&&r.el[F](),R(o,[t])},enter(e){let t=d,o=p,r=h;if(!n.isMounted){if(!a)return;t=_||d,o=y||p,r=x||h}let i=!1;const s=e[D]=t=>{i||(i=!0,R(t?r:o,[e]),S.delayedLeave&&S.delayedLeave(),e[D]=void 0)};t?C(t,[e,s]):s()},leave(t,o){const r=String(e.key);if(t[D]&&t[D](!0),n.isUnmounting)return o();R(f,[t]);let i=!1;const s=t[F]=n=>{i||(i=!0,o(),R(n?g:v,[t]),t[F]=void 0,k[r]===e&&delete k[r])};k[r]=e,m?C(m,[t,s]):s()},clone(e){const r=U(e,t,n,o,i);return i&&i(r),r}};return S}function Q(e){if(se(e))return(e=mn(e)).children=null,e}function Y(e){if(!se(e))return T(e.type)&&e.children?H(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&(0,r.Tn)(n.default))return n.default()}}function Z(e,t){6&e.shapeFlag&&e.component?(e.transition=t,Z(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function J(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let s=e[i];const a=null==n?s.key:String(n)+String(null!=s.key?s.key:i);s.type===Ut?(128&s.patchFlag&&r++,o=o.concat(J(s.children,t,a))):(t||s.type!==Yt)&&o.push(null!=a?mn(s,{key:a}):s)}if(r>1)for(let e=0;e<o.length;e++)o[e].patchFlag=-2;return o}function ee(e,t){return(0,r.Tn)(e)?(()=>(0,r.X$)({name:e.name},t,{setup:e}))():e}function te(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const ne=new WeakMap;function oe(e,t,n,s,a=!1){if((0,r.cy)(e))return void e.forEach((e,o)=>oe(e,t&&((0,r.cy)(t)?t[o]:t),n,s,a));if(ie(s)&&!a)return void(512&s.shapeFlag&&s.type.__asyncResolved&&s.component.subTree.component&&oe(e,t,n,s.component.subTree));const l=4&s.shapeFlag?Pn(s.component):s.el,c=a?null:l,{i:u,r:d}=e,p=t&&t.r,h=u.refs===r.MZ?u.refs={}:u.refs,f=u.setupState,m=(0,o.ux)(f),v=f===r.MZ?r.NO:e=>(0,r.$3)(m,e);if(null!=p&&p!==d)if(re(t),(0,r.Kg)(p))h[p]=null,v(p)&&(f[p]=null);else if((0,o.i9)(p)){p.value=null;const e=t;e.k&&(h[e.k]=null)}if((0,r.Tn)(d))i(d,u,12,[c,h]);else{const t=(0,r.Kg)(d),i=(0,o.i9)(d);if(t||i){const o=()=>{if(e.f){const n=t?v(d)?f[d]:h[d]:d.value;if(a)(0,r.cy)(n)&&(0,r.TF)(n,l);else if((0,r.cy)(n))n.includes(l)||n.push(l);else if(t)h[d]=[l],v(d)&&(f[d]=h[d]);else{const t=[l];d.value=t,e.k&&(h[e.k]=t)}}else t?(h[d]=c,v(d)&&(f[d]=c)):i&&(d.value=c,e.k&&(h[e.k]=c))};if(c){const t=()=>{o(),ne.delete(e)};t.id=-1,ne.set(e,t),Rt(t,n)}else re(e),o()}}}function re(e){const t=ne.get(e);t&&(t.flags|=8,ne.delete(e))}(0,r.We)().requestIdleCallback,(0,r.We)().cancelIdleCallback;const ie=e=>!!e.type.__asyncLoader,se=e=>e.type.__isKeepAlive;function ae(e,t){ce(e,"a",t)}function le(e,t){ce(e,"da",t)}function ce(e,t,n=Cn){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(de(t,o,n),n){let e=n.parent;for(;e&&e.parent;)se(e.parent.vnode)&&ue(o,t,n,e),e=e.parent}}function ue(e,t,n,o){const i=de(t,e,o,!0);be(()=>{(0,r.TF)(o[t],i)},n)}function de(e,t,n=Cn,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...r)=>{(0,o.C4)();const i=Tn(n),a=s(t,n,e,r);return i(),(0,o.bl)(),a});return r?i.unshift(a):i.push(a),a}}RegExp,RegExp;const pe=e=>(t,n=Cn)=>{Bn&&"sp"!==e||de(e,(...e)=>t(...e),n)},he=pe("bm"),fe=pe("m"),me=pe("bu"),ve=pe("u"),ge=pe("bum"),be=pe("um"),_e=pe("sp"),ye=pe("rtg"),xe=pe("rtc");function we(e,t=Cn){de("ec",e,t)}const ke="components",Re="directives";function Ce(e,t){return Te(ke,e,!0,t)||e}const Se=Symbol.for("v-ndc");function Ee(e){return(0,r.Kg)(e)?Te(ke,e,!1)||e:e||Se}function Me(e){return Te(Re,e)}function Te(e,t,n=!0,o=!1){const i=w||Cn;if(i){const n=i.type;if(e===ke){const e=function(e,t=!0){return(0,r.Tn)(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===(0,r.PT)(t)||e===(0,r.ZH)((0,r.PT)(t))))return n}const s=Le(i[e]||n[e],t)||Le(i.appContext[e],t);return!s&&o?n:s}}function Le(e,t){return e&&(e[t]||e[(0,r.PT)(t)]||e[(0,r.ZH)((0,r.PT)(t))])}function Ie(e,t,n,i){let s;const a=n&&n[i],l=(0,r.cy)(e);if(l||(0,r.Kg)(e)){let n=!1,r=!1;l&&(0,o.g8)(e)&&(n=!(0,o.fE)(e),r=(0,o.Tm)(e),e=(0,o.qA)(e)),s=new Array(e.length);for(let i=0,l=e.length;i<l;i++)s[i]=t(n?r?(0,o.a1)((0,o.lJ)(e[i])):(0,o.lJ)(e[i]):e[i],i,void 0,a&&a[i])}else if("number"==typeof e){s=new Array(e);for(let n=0;n<e;n++)s[n]=t(n+1,n,void 0,a&&a[n])}else if((0,r.Gv)(e))if(e[Symbol.iterator])s=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{const n=Object.keys(e);s=new Array(n.length);for(let o=0,r=n.length;o<r;o++){const r=n[o];s[o]=t(e[r],r,o,a&&a[o])}}else s=[];return n&&(n[i]=s),s}function Oe(e,t){for(let n=0;n<t.length;n++){const o=t[n];if((0,r.cy)(o))for(let t=0;t<o.length;t++)e[o[t].name]=o[t].fn;else o&&(e[o.name]=o.key?(...e)=>{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function Ae(e,t,n={},o,i){if(w.ce||w.parent&&ie(w.parent)&&w.parent.ce)return"default"!==t&&(n.name=t),tn(),an(Ut,null,[hn("slot",n,o&&o())],64);let s=e[t];s&&s._c&&(s._d=!1),tn();const a=s&&Be(s(n)),l=n.key||a&&a.key,c=an(Ut,{key:(l&&!(0,r.Bm)(l)?l:`_${t}`)+(!a&&o?"_fb":"")},a||(o?o():[]),a&&1===e._?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),s&&s._c&&(s._d=!0),c}function Be(e){return e.some(e=>!ln(e)||e.type!==Yt&&!(e.type===Ut&&!Be(e.children)))?e:null}function Ne(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:(0,r.rU)(o)]=e[o];return n}const We=e=>e?In(e)?Pn(e):We(e.parent):null,$e=(0,r.X$)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>We(e.parent),$root:e=>We(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>qe(e),$forceUpdate:e=>e.f||(e.f=()=>{v(e.update)}),$nextTick:e=>e.n||(e.n=m.bind(e.proxy)),$watch:e=>Wt.bind(e)}),ze=(e,t)=>e!==r.MZ&&!e.__isScriptSetup&&(0,r.$3)(e,t),Pe={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:i,data:s,props:a,accessCache:l,type:c,appContext:u}=e;let d;if("$"!==t[0]){const o=l[t];if(void 0!==o)switch(o){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return a[t]}else{if(ze(i,t))return l[t]=1,i[t];if(s!==r.MZ&&(0,r.$3)(s,t))return l[t]=2,s[t];if((d=e.propsOptions[0])&&(0,r.$3)(d,t))return l[t]=3,a[t];if(n!==r.MZ&&(0,r.$3)(n,t))return l[t]=4,n[t];Xe&&(l[t]=0)}}const p=$e[t];let h,f;return p?("$attrs"===t&&(0,o.u4)(e.attrs,"get",""),p(e)):(h=c.__cssModules)&&(h=h[t])?h:n!==r.MZ&&(0,r.$3)(n,t)?(l[t]=4,n[t]):(f=u.config.globalProperties,(0,r.$3)(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:o,setupState:i,ctx:s}=e;return ze(i,t)?(i[t]=n,!0):o!==r.MZ&&(0,r.$3)(o,t)?(o[t]=n,!0):!((0,r.$3)(e.props,t)||"$"===t[0]&&t.slice(1)in e||(s[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:s,type:a}},l){let c,u;return!!(n[l]||e!==r.MZ&&"$"!==l[0]&&(0,r.$3)(e,l)||ze(t,l)||(c=s[0])&&(0,r.$3)(c,l)||(0,r.$3)(o,l)||(0,r.$3)($e,l)||(0,r.$3)(i.config.globalProperties,l)||(u=a.__cssModules)&&u[l])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,r.$3)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Fe(){return Ve().slots}function De(){return Ve().attrs}function Ve(e){const t=Sn();return t.setupContext||(t.setupContext=zn(t))}function Ke(e){return(0,r.cy)(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function je(e,t){return e&&t?(0,r.cy)(e)&&(0,r.cy)(t)?e.concat(t):(0,r.X$)({},Ke(e),Ke(t)):e||t}let Xe=!0;function He(e,t,n){s((0,r.cy)(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ge(e,t,n,o){let i=o.includes(".")?$t(n,o):()=>n[o];if((0,r.Kg)(e)){const n=t[e];(0,r.Tn)(n)&&Bt(i,n)}else if((0,r.Tn)(e))Bt(i,e.bind(n));else if((0,r.Gv)(e))if((0,r.cy)(e))e.forEach(e=>Ge(e,t,n,o));else{const o=(0,r.Tn)(e.handler)?e.handler.bind(n):t[e.handler];(0,r.Tn)(o)&&Bt(i,o,e)}}function qe(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,l=s.get(t);let c;return l?c=l:i.length||n||o?(c={},i.length&&i.forEach(e=>Ue(c,e,a,!0)),Ue(c,t,a)):c=t,(0,r.Gv)(t)&&s.set(t,c),c}function Ue(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Ue(e,i,n,!0),r&&r.forEach(t=>Ue(e,t,n,!0));for(const r in t)if(o&&"expose"===r);else{const o=Qe[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const Qe={data:Ye,props:tt,emits:tt,methods:et,computed:et,beforeCreate:Je,created:Je,beforeMount:Je,mounted:Je,beforeUpdate:Je,updated:Je,beforeDestroy:Je,beforeUnmount:Je,destroyed:Je,unmounted:Je,activated:Je,deactivated:Je,errorCaptured:Je,serverPrefetch:Je,components:et,directives:et,watch:function(e,t){if(!e)return t;if(!t)return e;const n=(0,r.X$)(Object.create(null),e);for(const o in t)n[o]=Je(e[o],t[o]);return n},provide:Ye,inject:function(e,t){return et(Ze(e),Ze(t))}};function Ye(e,t){return t?e?function(){return(0,r.X$)((0,r.Tn)(e)?e.call(this,this):e,(0,r.Tn)(t)?t.call(this,this):t)}:t:e}function Ze(e){if((0,r.cy)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Je(e,t){return e?[...new Set([].concat(e,t))]:t}function et(e,t){return e?(0,r.X$)(Object.create(null),e,t):t}function tt(e,t){return e?(0,r.cy)(e)&&(0,r.cy)(t)?[...new Set([...e,...t])]:(0,r.X$)(Object.create(null),Ke(e),Ke(null!=t?t:{})):t}function nt(){return{app:null,config:{isNativeTag:r.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ot=0;function rt(e,t){return function(n,o=null){(0,r.Tn)(n)||(n=(0,r.X$)({},n)),null==o||(0,r.Gv)(o)||(o=null);const i=nt(),a=new WeakSet,l=[];let c=!1;const u=i.app={_uid:ot++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:Vn,get config(){return i.config},set config(e){},use:(e,...t)=>(a.has(e)||(e&&(0,r.Tn)(e.install)?(a.add(e),e.install(u,...t)):(0,r.Tn)(e)&&(a.add(e),e(u,...t))),u),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),u),component:(e,t)=>t?(i.components[e]=t,u):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,u):i.directives[e],mount(r,s,a){if(!c){const l=u._ceVNode||hn(n,o);return l.appContext=i,!0===a?a="svg":!1===a&&(a=void 0),s&&t?t(l,r):e(l,r,a),c=!0,u._container=r,r.__vue_app__=u,Pn(l.component)}},onUnmount(e){l.push(e)},unmount(){c&&(s(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,u),runWithContext(e){const t=it;it=u;try{return e()}finally{it=t}}};return u}}let it=null;function st(e,t){if(Cn){let n=Cn.provides;const o=Cn.parent&&Cn.parent.provides;o===n&&(n=Cn.provides=Object.create(o)),n[e]=t}}function at(e,t,n=!1){const o=Sn();if(o||it){let i=it?it._context.provides:o?null==o.parent||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&(0,r.Tn)(t)?t.call(o&&o.proxy):t}}const lt={},ct=()=>Object.create(lt),ut=e=>Object.getPrototypeOf(e)===lt;function dt(e,t,n,i){const[s,a]=e.propsOptions;let l,c=!1;if(t)for(let o in t){if((0,r.SU)(o))continue;const u=t[o];let d;s&&(0,r.$3)(s,d=(0,r.PT)(o))?a&&a.includes(d)?(l||(l={}))[d]=u:n[d]=u:Kt(e.emitsOptions,o)||o in i&&u===i[o]||(i[o]=u,c=!0)}if(a){const t=(0,o.ux)(n),i=l||r.MZ;for(let o=0;o<a.length;o++){const l=a[o];n[l]=pt(s,t,l,i[l],e,!(0,r.$3)(i,l))}}return c}function pt(e,t,n,o,i,s){const a=e[n];if(null!=a){const e=(0,r.$3)(a,"default");if(e&&void 0===o){const e=a.default;if(a.type!==Function&&!a.skipFactory&&(0,r.Tn)(e)){const{propsDefaults:r}=i;if(n in r)o=r[n];else{const s=Tn(i);o=r[n]=e.call(null,t),s()}}else o=e;i.ce&&i.ce._setProp(n,o)}a[0]&&(s&&!e?o=!1:!a[1]||""!==o&&o!==(0,r.Tg)(n)||(o=!0))}return o}const ht=new WeakMap;function ft(e,t,n=!1){const o=n?ht:t.propsCache,i=o.get(e);if(i)return i;const s=e.props,a={},l=[];let c=!1;if(!(0,r.Tn)(e)){const o=e=>{c=!0;const[n,o]=ft(e,t,!0);(0,r.X$)(a,n),o&&l.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!s&&!c)return(0,r.Gv)(e)&&o.set(e,r.Oj),r.Oj;if((0,r.cy)(s))for(let e=0;e<s.length;e++){const t=(0,r.PT)(s[e]);mt(t)&&(a[t]=r.MZ)}else if(s)for(const e in s){const t=(0,r.PT)(e);if(mt(t)){const n=s[e],o=a[t]=(0,r.cy)(n)||(0,r.Tn)(n)?{type:n}:(0,r.X$)({},n),i=o.type;let c=!1,u=!0;if((0,r.cy)(i))for(let e=0;e<i.length;++e){const t=i[e],n=(0,r.Tn)(t)&&t.name;if("Boolean"===n){c=!0;break}"String"===n&&(u=!1)}else c=(0,r.Tn)(i)&&"Boolean"===i.name;o[0]=c,o[1]=u,(c||(0,r.$3)(o,"default"))&&l.push(t)}}const u=[a,l];return(0,r.Gv)(e)&&o.set(e,u),u}function mt(e){return"$"!==e[0]&&!(0,r.SU)(e)}const vt=e=>"_"===e||"_ctx"===e||"$stable"===e,gt=e=>(0,r.cy)(e)?e.map(bn):[bn(e)],bt=(e,t,n)=>{if(t._n)return t;const o=C((...e)=>gt(t(...e)),n);return o._c=!1,o},_t=(e,t,n)=>{const o=e._ctx;for(const n in e){if(vt(n))continue;const i=e[n];if((0,r.Tn)(i))t[n]=bt(0,i,o);else if(null!=i){const e=gt(i);t[n]=()=>e}}},yt=(e,t)=>{const n=gt(t);e.slots.default=()=>n},xt=(e,t,n)=>{for(const o in t)!n&&vt(o)||(e[o]=t[o])},wt=(e,t,n)=>{const o=e.slots=ct();if(32&e.vnode.shapeFlag){const e=t._;e?(xt(o,t,n),n&&(0,r.yQ)(o,"_",e,!0)):_t(t,o)}else t&&yt(e,t)},kt=(e,t,n)=>{const{vnode:o,slots:i}=e;let s=!0,a=r.MZ;if(32&o.shapeFlag){const e=t._;e?n&&1===e?s=!1:xt(i,t,n):(s=!t.$stable,_t(t,i)),a=t}else t&&(yt(e,t),a={default:1});if(s)for(const e in i)vt(e)||null!=a[e]||delete i[e]},Rt=function(e,t){t&&t.pendingBranch?(0,r.cy)(e)?t.effects.push(...e):t.effects.push(e):(n=e,(0,r.cy)(n)?u.push(...n):d&&-1===n.id?d.splice(p+1,0,n):1&n.flags||(u.push(n),n.flags|=1),g());var n};function Ct(e){return function(e,t){(0,r.We)().__VUE__=!0;const{insert:n,remove:s,patchProp:l,createElement:c,createText:u,createComment:d,setText:p,setElementText:h,parentNode:f,nextSibling:m,setScopeId:g=r.tE,insertStaticContent:y}=e,x=(e,t,n,o=null,r=null,i=null,s=void 0,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!cn(e,t)&&(o=Y(e),H(e,r,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Qt:w(e,t,n,o);break;case Yt:k(e,t,n,o);break;case Zt:null==e&&R(t,n,o,s);break;case Ut:N(e,t,n,o,r,i,s,a,l);break;default:1&d?S(e,t,n,o,r,i,s,a,l):6&d?W(e,t,n,o,r,i,s,a,l):(64&d||128&d)&&c.process(e,t,n,o,r,i,s,a,l,ee)}null!=u&&r?oe(u,e&&e.ref,i,t||e,!t):null==u&&e&&null!=e.ref&&oe(e.ref,null,i,e,!0)},w=(e,t,o,r)=>{if(null==e)n(t.el=u(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&p(n,t.children)}},k=(e,t,o,r)=>{null==e?n(t.el=d(t.children||""),o,r):t.el=e.el},R=(e,t,n,o)=>{[e.el,e.anchor]=y(e.children,t,n,o,e.el,e.anchor)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),s(e),e=n;s(t)},S=(e,t,n,o,r,i,s,a,l)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?T(t,n,o,r,i,s,a,l):O(e,t,r,i,s,a,l)},T=(e,t,o,i,s,a,u,d)=>{let p,f;const{props:m,shapeFlag:v,transition:g,dirs:b}=e;if(p=e.el=c(e.type,a,m&&m.is,m),8&v?h(p,e.children):16&v&&I(e.children,p,null,i,s,St(e,a),u,d),b&&E(e,null,i,"created"),L(p,e,e.scopeId,u,i),m){for(const e in m)"value"===e||(0,r.SU)(e)||l(p,e,null,m[e],a,i);"value"in m&&l(p,"value",null,m.value,a),(f=m.onVnodeBeforeMount)&&wn(f,i,e)}b&&E(e,null,i,"beforeMount");const _=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(s,g);_&&g.beforeEnter(p),n(p,t,o),((f=m&&m.onVnodeMounted)||_||b)&&Rt(()=>{f&&wn(f,i,e),_&&g.enter(p),b&&E(e,null,i,"mounted")},s)},L=(e,t,n,o,r)=>{if(n&&g(e,n),o)for(let t=0;t<o.length;t++)g(e,o[t]);if(r){let n=r.subTree;if(t===n||qt(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=r.vnode;L(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},I=(e,t,n,o,r,i,s,a,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=a?_n(e[c]):bn(e[c]);x(null,l,t,n,o,r,i,s,a)}},O=(e,t,n,o,i,s,a)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const f=e.props||r.MZ,m=t.props||r.MZ;let v;if(n&&Et(n,!1),(v=m.onVnodeBeforeUpdate)&&wn(v,n,t,e),p&&E(t,e,n,"beforeUpdate"),n&&Et(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&h(c,""),d?A(e.dynamicChildren,d,c,n,o,St(t,i),s):a||V(e,t,c,null,n,o,St(t,i),s,!1),u>0){if(16&u)B(c,f,m,n,i);else if(2&u&&f.class!==m.class&&l(c,"class",null,m.class,i),4&u&&l(c,"style",f.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const o=e[t],r=f[o],s=m[o];s===r&&"value"!==o||l(c,o,r,s,i,n)}}1&u&&e.children!==t.children&&h(c,t.children)}else a||null!=d||B(c,f,m,n,i);((v=m.onVnodeUpdated)||p)&&Rt(()=>{v&&wn(v,n,t,e),p&&E(t,e,n,"updated")},o)},A=(e,t,n,o,r,i,s)=>{for(let a=0;a<t.length;a++){const l=e[a],c=t[a],u=l.el&&(l.type===Ut||!cn(l,c)||198&l.shapeFlag)?f(l.el):n;x(l,c,u,null,o,r,i,s,!0)}},B=(e,t,n,o,i)=>{if(t!==n){if(t!==r.MZ)for(const s in t)(0,r.SU)(s)||s in n||l(e,s,t[s],null,i,o);for(const s in n){if((0,r.SU)(s))continue;const a=n[s],c=t[s];a!==c&&"value"!==s&&l(e,s,c,a,i,o)}"value"in n&&l(e,"value",t.value,n.value,i)}},N=(e,t,o,r,i,s,a,l,c)=>{const d=t.el=e?e.el:u(""),p=t.anchor=e?e.anchor:u("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(d,o,r),n(p,o,r),I(t.children||[],o,p,i,s,a,l,c)):h>0&&64&h&&f&&e.dynamicChildren?(A(e.dynamicChildren,f,o,i,s,a,l),(null!=t.key||i&&t===i.subTree)&&Mt(e,t,!0)):V(e,t,o,p,i,s,a,l,c)},W=(e,t,n,o,r,i,s,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,l):$(t,n,o,r,i,s,l):z(e,t,l)},$=(e,t,n,s,l,c,u)=>{const d=e.component=function(e,t,n){const i=e.type,s=(t?t.appContext:e.appContext)||kn,a={uid:Rn++,vnode:e,type:i,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new o.yC(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ft(i,s),emitsOptions:Vt(i,s),emit:null,emitted:null,propsDefaults:r.MZ,inheritAttrs:i.inheritAttrs,ctx:r.MZ,data:r.MZ,props:r.MZ,attrs:r.MZ,slots:r.MZ,refs:r.MZ,setupState:r.MZ,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Ft.bind(null,a),e.ce&&e.ce(a),a}(e,s,l);if(se(e)&&(d.ctx.renderer=ee),function(e,t=!1,n=!1){t&&Mn(t);const{props:s,children:l}=e.vnode,c=In(e);!function(e,t,n,r=!1){const i={},s=ct();e.propsDefaults=Object.create(null),dt(e,t,i,s);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:(0,o.Gc)(i):e.type.props?e.props=i:e.props=s,e.attrs=s}(e,s,c,t),wt(e,l,n||t);const u=c?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Pe);const{setup:s}=n;if(s){(0,o.C4)();const n=e.setupContext=s.length>1?zn(e):null,l=Tn(e),c=i(s,e,0,[e.props,n]),u=(0,r.yL)(c);if((0,o.bl)(),l(),!u&&!e.sp||ie(e)||te(e),u){if(c.then(Ln,Ln),t)return c.then(n=>{Nn(e,n,t)}).catch(t=>{a(t,e,0)});e.asyncDep=c}else Nn(e,c,t)}else Wn(e,t)}(e,t):void 0;t&&Mn(!1)}(d,!1,u),d.asyncDep){if(l&&l.registerDep(d,P,u),!e.el){const o=d.subTree=hn(Yt);k(null,o,t,n),e.placeholder=o.el}}else P(d,e,t,n,l,c,u)},z=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!a||a&&a.$stable)||o!==s&&(o?!s||Gt(o,s,c):!!s);if(1024&l)return!0;if(16&l)return o?Gt(o,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(s[n]!==o[n]&&!Kt(c,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void D(o,t,n);o.next=t,o.update()}else t.el=e.el,o.vnode=t},P=(e,t,n,i,s,a,l)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:i,vnode:u}=e;{const n=Tt(e);if(n)return t&&(t.el=u.el,D(e,t,l)),void n.asyncDep.then(()=>{e.isUnmounted||c()})}let d,p=t;Et(e,!1),t?(t.el=u.el,D(e,t,l)):t=u,n&&(0,r.DY)(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&wn(d,i,t,u),Et(e,!0);const h=jt(e),m=e.subTree;e.subTree=h,x(m,h,f(m.el),Y(m),e,s,a),t.el=h.el,null===p&&function({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,h.el),o&&Rt(o,s),(d=t.props&&t.props.onVnodeUpdated)&&Rt(()=>wn(d,i,t,u),s)}else{let o;const{el:l,props:c}=t,{bm:u,m:d,parent:p,root:h,type:f}=e,m=ie(t);if(Et(e,!1),u&&(0,r.DY)(u),!m&&(o=c&&c.onVnodeBeforeMount)&&wn(o,p,t),Et(e,!0),l&&re){const t=()=>{e.subTree=jt(e),re(l,e.subTree,e,s,null)};m&&f.__asyncHydrate?f.__asyncHydrate(l,e,t):t()}else{h.ce&&!1!==h.ce._def.shadowRoot&&h.ce._injectChildStyle(f);const o=e.subTree=jt(e);x(null,o,n,i,e,s,a),t.el=o.el}if(d&&Rt(d,s),!m&&(o=c&&c.onVnodeMounted)){const e=t;Rt(()=>wn(o,p,e),s)}(256&t.shapeFlag||p&&ie(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&Rt(e.a,s),e.isMounted=!0,t=n=i=null}};e.scope.on();const u=e.effect=new o.X2(c);e.scope.off();const d=e.update=u.run.bind(u),p=e.job=u.runIfDirty.bind(u);p.i=e,p.id=e.uid,u.scheduler=()=>v(p),Et(e,!0),d()},D=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:s,attrs:a,vnode:{patchFlag:l}}=e,c=(0,o.ux)(s),[u]=e.propsOptions;let d=!1;if(!(i||l>0)||16&l){let o;dt(e,t,s,a)&&(d=!0);for(const i in c)t&&((0,r.$3)(t,i)||(o=(0,r.Tg)(i))!==i&&(0,r.$3)(t,o))||(u?!n||void 0===n[i]&&void 0===n[o]||(s[i]=pt(u,c,i,void 0,e,!0)):delete s[i]);if(a!==c)for(const e in a)t&&(0,r.$3)(t,e)||(delete a[e],d=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let i=n[o];if(Kt(e.emitsOptions,i))continue;const l=t[i];if(u)if((0,r.$3)(a,i))l!==a[i]&&(a[i]=l,d=!0);else{const t=(0,r.PT)(i);s[t]=pt(u,c,t,l,e,!1)}else l!==a[i]&&(a[i]=l,d=!0)}}d&&(0,o.hZ)(e.attrs,"set","")}(e,t.props,i,n),kt(e,t.children,n),(0,o.C4)(),b(e),(0,o.bl)()},V=(e,t,n,o,r,i,s,a,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void j(c,d,n,o,r,i,s,a,l);if(256&p)return void K(c,d,n,o,r,i,s,a,l)}8&f?(16&u&&Q(c,r,i),d!==c&&h(n,d)):16&u?16&f?j(c,d,n,o,r,i,s,a,l):Q(c,r,i,!0):(8&u&&h(n,""),16&f&&I(d,n,o,r,i,s,a,l))},K=(e,t,n,o,i,s,a,l,c)=>{e=e||r.Oj,t=t||r.Oj;const u=e.length,d=t.length,p=Math.min(u,d);let h;for(h=0;h<p;h++){const o=t[h]=c?_n(t[h]):bn(t[h]);x(e[h],o,n,null,i,s,a,l,c)}u>d?Q(e,i,s,!0,!1,p):I(t,n,o,i,s,a,l,c,p)},j=(e,t,n,o,i,s,a,l,c)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const o=e[u],r=t[u]=c?_n(t[u]):bn(t[u]);if(!cn(o,r))break;x(o,r,n,null,i,s,a,l,c),u++}for(;u<=p&&u<=h;){const o=e[p],r=t[h]=c?_n(t[h]):bn(t[h]);if(!cn(o,r))break;x(o,r,n,null,i,s,a,l,c),p--,h--}if(u>p){if(u<=h){const e=h+1,r=e<d?t[e].el:o;for(;u<=h;)x(null,t[u]=c?_n(t[u]):bn(t[u]),n,r,i,s,a,l,c),u++}}else if(u>h)for(;u<=p;)H(e[u],i,s,!0),u++;else{const f=u,m=u,v=new Map;for(u=m;u<=h;u++){const e=t[u]=c?_n(t[u]):bn(t[u]);null!=e.key&&v.set(e.key,u)}let g,b=0;const _=h-m+1;let y=!1,w=0;const k=new Array(_);for(u=0;u<_;u++)k[u]=0;for(u=f;u<=p;u++){const o=e[u];if(b>=_){H(o,i,s,!0);continue}let r;if(null!=o.key)r=v.get(o.key);else for(g=m;g<=h;g++)if(0===k[g-m]&&cn(o,t[g])){r=g;break}void 0===r?H(o,i,s,!0):(k[r-m]=u+1,r>=w?w=r:y=!0,x(o,t[r],n,null,i,s,a,l,c),b++)}const R=y?function(e){const t=e.slice(),n=[0];let o,r,i,s,a;const l=e.length;for(o=0;o<l;o++){const l=e[o];if(0!==l){if(r=n[n.length-1],e[r]<l){t[o]=r,n.push(o);continue}for(i=0,s=n.length-1;i<s;)a=i+s>>1,e[n[a]]<l?i=a+1:s=a;l<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}(k):r.Oj;for(g=R.length-1,u=_-1;u>=0;u--){const e=m+u,r=t[e],p=t[e+1],h=e+1<d?p.el||p.placeholder:o;0===k[u]?x(null,r,n,h,i,s,a,l,c):y&&(g<0||u!==R[g]?X(r,n,h,2):g--)}}},X=(e,t,o,r,i=null)=>{const{el:a,type:l,transition:c,children:u,shapeFlag:d}=e;if(6&d)X(e.component.subTree,t,o,r);else if(128&d)e.suspense.move(t,o,r);else if(64&d)l.move(e,t,o,ee);else if(l!==Ut)if(l!==Zt)if(2!==r&&1&d&&c)if(0===r)c.beforeEnter(a),n(a,t,o),Rt(()=>c.enter(a),i);else{const{leave:r,delayLeave:i,afterLeave:l}=c,u=()=>{e.ctx.isUnmounted?s(a):n(a,t,o)},d=()=>{a._isLeaving&&a[F](!0),r(a,()=>{u(),l&&l()})};i?i(a,u,d):d()}else n(a,t,o);else(({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=m(e),n(e,o,r),e=i;n(t,o,r)})(e,t,o);else{n(a,t,o);for(let e=0;e<u.length;e++)X(u[e],t,o,r);n(e.anchor,t,o)}},H=(e,t,n,r=!1,i=!1)=>{const{type:s,props:a,ref:l,children:c,dynamicChildren:u,shapeFlag:d,patchFlag:p,dirs:h,cacheIndex:f}=e;if(-2===p&&(i=!1),null!=l&&((0,o.C4)(),oe(l,null,n,e,!0),(0,o.bl)()),null!=f&&(t.renderCache[f]=void 0),256&d)return void t.ctx.deactivate(e);const m=1&d&&h,v=!ie(e);let g;if(v&&(g=a&&a.onVnodeBeforeUnmount)&&wn(g,t,e),6&d)U(e.component,n,r);else{if(128&d)return void e.suspense.unmount(n,r);m&&E(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,n,ee,r):u&&!u.hasOnce&&(s!==Ut||p>0&&64&p)?Q(u,t,n,!1,!0):(s===Ut&&384&p||!i&&16&d)&&Q(c,t,n),r&&G(e)}(v&&(g=a&&a.onVnodeUnmounted)||m)&&Rt(()=>{g&&wn(g,t,e),m&&E(e,null,t,"unmounted")},n)},G=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===Ut)return void q(n,o);if(t===Zt)return void C(e);const i=()=>{s(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,s=()=>t(n,i);o?o(e.el,i,s):s()}else i()},q=(e,t)=>{let n;for(;e!==t;)n=m(e),s(e),e=n;s(t)},U=(e,t,n)=>{const{bum:o,scope:i,job:s,subTree:a,um:l,m:c,a:u}=e;Lt(c),Lt(u),o&&(0,r.DY)(o),i.stop(),s&&(s.flags|=8,H(a,e,t,n)),l&&Rt(l,t),Rt(()=>{e.isUnmounted=!0},t)},Q=(e,t,n,o=!1,r=!1,i=0)=>{for(let s=i;s<e.length;s++)H(e[s],t,n,o,r)},Y=e=>{if(6&e.shapeFlag)return Y(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[M];return n?m(n):t};let Z=!1;const J=(e,t,n)=>{null==e?t._vnode&&H(t._vnode,null,null,!0):x(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Z||(Z=!0,b(),_(),Z=!1)},ee={p:x,um:H,m:X,r:G,mt:$,mc:I,pc:V,pbc:A,n:Y,o:e};let ne,re;return t&&([ne,re]=t(ee)),{render:J,hydrate:ne,createApp:rt(J,ne)}}(e)}function St({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Et({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Mt(e,t,n=!1){const o=e.children,i=t.children;if((0,r.cy)(o)&&(0,r.cy)(i))for(let e=0;e<o.length;e++){const t=o[e];let r=i[e];1&r.shapeFlag&&!r.dynamicChildren&&((r.patchFlag<=0||32===r.patchFlag)&&(r=i[e]=_n(i[e]),r.el=t.el),n||-2===r.patchFlag||Mt(t,r)),r.type===Qt&&-1!==r.patchFlag&&(r.el=t.el),r.type!==Yt||r.el||(r.el=t.el)}}function Tt(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Tt(t)}function Lt(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const It=Symbol.for("v-scx"),Ot=()=>at(It);function At(e,t){return Nt(e,null,t)}function Bt(e,t,n){return Nt(e,t,n)}function Nt(e,t,n=r.MZ){const{immediate:i,deep:a,flush:l,once:c}=n,u=(0,r.X$)({},n),d=t&&i||!t&&"post"!==l;let p;if(Bn)if("sync"===l){const e=Ot();p=e.__watcherHandles||(e.__watcherHandles=[])}else if(!d){const e=()=>{};return e.stop=r.tE,e.resume=r.tE,e.pause=r.tE,e}const h=Cn;u.call=(e,t,n)=>s(e,h,t,n);let f=!1;"post"===l?u.scheduler=e=>{Rt(e,h&&h.suspense)}:"sync"!==l&&(f=!0,u.scheduler=(e,t)=>{t?e():v(e)}),u.augmentJob=e=>{t&&(e.flags|=4),f&&(e.flags|=2,h&&(e.id=h.uid,e.i=h))};const m=(0,o.wB)(e,t,u);return Bn&&(p?p.push(m):d&&m()),m}function Wt(e,t,n){const o=this.proxy,i=(0,r.Kg)(e)?e.includes(".")?$t(o,e):()=>o[e]:e.bind(o,o);let s;(0,r.Tn)(t)?s=t:(s=t.handler,n=t);const a=Tn(this),l=Nt(i,s.bind(o),n);return a(),l}function $t(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function zt(e,t,n=r.MZ){const i=Sn(),s=(0,r.PT)(t),a=(0,r.Tg)(t),l=Pt(e,s),c=(0,o.rY)((o,l)=>{let c,u,d=r.MZ;return Nt(()=>{const t=e[s];(0,r.$H)(c,t)&&(c=t,l())},null,{flush:"sync"}),{get:()=>(o(),n.get?n.get(c):c),set(e){const o=n.set?n.set(e):e;if(!((0,r.$H)(o,c)||d!==r.MZ&&(0,r.$H)(e,d)))return;const p=i.vnode.props;p&&(t in p||s in p||a in p)&&(`onUpdate:${t}`in p||`onUpdate:${s}`in p||`onUpdate:${a}`in p)||(c=e,l()),i.emit(`update:${t}`,o),(0,r.$H)(e,o)&&(0,r.$H)(e,d)&&!(0,r.$H)(o,u)&&l(),d=e,u=o}}});return c[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?l||r.MZ:c,done:!1}:{done:!0}}},c}const Pt=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${(0,r.PT)(t)}Modifiers`]||e[`${(0,r.Tg)(t)}Modifiers`];function Ft(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||r.MZ;let i=n;const a=t.startsWith("update:"),l=a&&Pt(o,t.slice(7));let c;l&&(l.trim&&(i=n.map(e=>(0,r.Kg)(e)?e.trim():e)),l.number&&(i=n.map(r.bB)));let u=o[c=(0,r.rU)(t)]||o[c=(0,r.rU)((0,r.PT)(t))];!u&&a&&(u=o[c=(0,r.rU)((0,r.Tg)(t))]),u&&s(u,e,6,i);const d=o[c+"Once"];if(d){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,s(d,e,6,i)}}const Dt=new WeakMap;function Vt(e,t,n=!1){const o=n?Dt:t.emitsCache,i=o.get(e);if(void 0!==i)return i;const s=e.emits;let a={},l=!1;if(!(0,r.Tn)(e)){const o=e=>{const n=Vt(e,t,!0);n&&(l=!0,(0,r.X$)(a,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return s||l?((0,r.cy)(s)?s.forEach(e=>a[e]=null):(0,r.X$)(a,s),(0,r.Gv)(e)&&o.set(e,a),a):((0,r.Gv)(e)&&o.set(e,null),null)}function Kt(e,t){return!(!e||!(0,r.Mp)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,r.$3)(e,t[0].toLowerCase()+t.slice(1))||(0,r.$3)(e,(0,r.Tg)(t))||(0,r.$3)(e,t))}function jt(e){const{type:t,vnode:n,proxy:o,withProxy:i,propsOptions:[s],slots:l,attrs:c,emit:u,render:d,renderCache:p,props:h,data:f,setupState:m,ctx:v,inheritAttrs:g}=e,b=R(e);let _,y;try{if(4&n.shapeFlag){const e=i||o,t=e;_=bn(d.call(t,e,p,h,m,f,v)),y=c}else{const e=t;_=bn(e.length>1?e(h,{attrs:c,slots:l,emit:u}):e(h,null)),y=t.props?c:Xt(c)}}catch(t){Jt.length=0,a(t,e,1),_=hn(Yt)}let x=_;if(y&&!1!==g){const e=Object.keys(y),{shapeFlag:t}=x;e.length&&7&t&&(s&&e.some(r.CP)&&(y=Ht(y,s)),x=mn(x,y,!1,!0))}return n.dirs&&(x=mn(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&Z(x,n.transition),_=x,R(b),_}const Xt=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,r.Mp)(n))&&((t||(t={}))[n]=e[n]);return t},Ht=(e,t)=>{const n={};for(const o in e)(0,r.CP)(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Gt(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!Kt(n,i))return!0}return!1}const qt=e=>e.__isSuspense;const Ut=Symbol.for("v-fgt"),Qt=Symbol.for("v-txt"),Yt=Symbol.for("v-cmt"),Zt=Symbol.for("v-stc"),Jt=[];let en=null;function tn(e=!1){Jt.push(en=e?null:[])}let nn=1;function on(e,t=!1){nn+=e,e<0&&en&&t&&(en.hasOnce=!0)}function rn(e){return e.dynamicChildren=nn>0?en||r.Oj:null,Jt.pop(),en=Jt[Jt.length-1]||null,nn>0&&en&&en.push(e),e}function sn(e,t,n,o,r,i){return rn(pn(e,t,n,o,r,i,!0))}function an(e,t,n,o,r){return rn(hn(e,t,n,o,r,!0))}function ln(e){return!!e&&!0===e.__v_isVNode}function cn(e,t){return e.type===t.type&&e.key===t.key}const un=({key:e})=>null!=e?e:null,dn=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?(0,r.Kg)(e)||(0,o.i9)(e)||(0,r.Tn)(e)?{i:w,r:e,k:t,f:!!n}:e:null);function pn(e,t=null,n=null,o=0,i=null,s=(e===Ut?0:1),a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&un(t),ref:t&&dn(t),scopeId:k,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:w};return l?(yn(c,n),128&s&&e.normalize(c)):n&&(c.shapeFlag|=(0,r.Kg)(n)?8:16),nn>0&&!a&&en&&(c.patchFlag>0||6&s)&&32!==c.patchFlag&&en.push(c),c}const hn=function(e,t=null,n=null,i=0,s=null,a=!1){if(e&&e!==Se||(e=Yt),ln(e)){const o=mn(e,t,!0);return n&&yn(o,n),nn>0&&!a&&en&&(6&o.shapeFlag?en[en.indexOf(e)]=o:en.push(o)),o.patchFlag=-2,o}if(l=e,(0,r.Tn)(l)&&"__vccOpts"in l&&(e=e.__vccOpts),t){t=fn(t);let{class:e,style:n}=t;e&&!(0,r.Kg)(e)&&(t.class=(0,r.C4)(e)),(0,r.Gv)(n)&&((0,o.ju)(n)&&!(0,r.cy)(n)&&(n=(0,r.X$)({},n)),t.style=(0,r.Tr)(n))}var l;return pn(e,t,n,i,s,(0,r.Kg)(e)?1:qt(e)?128:T(e)?64:(0,r.Gv)(e)?4:(0,r.Tn)(e)?2:0,a,!0)};function fn(e){return e?(0,o.ju)(e)||ut(e)?(0,r.X$)({},e):e:null}function mn(e,t,n=!1,o=!1){const{props:i,ref:s,patchFlag:a,children:l,transition:c}=e,u=t?xn(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&un(u),ref:t&&t.ref?n&&s?(0,r.cy)(s)?s.concat(dn(t)):[s,dn(t)]:dn(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ut?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&mn(e.ssContent),ssFallback:e.ssFallback&&mn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&Z(d,c.clone(d)),d}function vn(e=" ",t=0){return hn(Qt,null,e,t)}function gn(e="",t=!1){return t?(tn(),an(Yt,null,e)):hn(Yt,null,e)}function bn(e){return null==e||"boolean"==typeof e?hn(Yt):(0,r.cy)(e)?hn(Ut,null,e.slice()):ln(e)?_n(e):hn(Qt,null,String(e))}function _n(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:mn(e)}function yn(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if((0,r.cy)(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),yn(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||ut(t)?3===o&&w&&(1===w.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=w}}else(0,r.Tn)(t)?(t={default:t,_ctx:w},n=32):(t=String(t),64&o?(n=16,t=[vn(t)]):n=8);e.children=t,e.shapeFlag|=n}function xn(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=(0,r.C4)([t.class,o.class]));else if("style"===e)t.style=(0,r.Tr)([t.style,o.style]);else if((0,r.Mp)(e)){const n=t[e],i=o[e];!i||n===i||(0,r.cy)(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=o[e])}return t}function wn(e,t,n,o=null){s(e,t,7,[n,o])}const kn=nt();let Rn=0;let Cn=null;const Sn=()=>Cn||w;let En,Mn;{const e=(0,r.We)(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach(t=>t(e)):o[0](e)}};En=t("__VUE_INSTANCE_SETTERS__",e=>Cn=e),Mn=t("__VUE_SSR_SETTERS__",e=>Bn=e)}const Tn=e=>{const t=Cn;return En(e),e.scope.on(),()=>{e.scope.off(),En(t)}},Ln=()=>{Cn&&Cn.scope.off(),En(null)};function In(e){return 4&e.vnode.shapeFlag}let On,An,Bn=!1;function Nn(e,t,n){(0,r.Tn)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,r.Gv)(t)&&(e.setupState=(0,o.Pr)(t)),Wn(e,n)}function Wn(e,t,n){const i=e.type;if(!e.render){if(!t&&On&&!i.render){const t=i.template||qe(e).template;if(t){const{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:a}=i,l=(0,r.X$)((0,r.X$)({isCustomElement:n,delimiters:s},o),a);i.render=On(t,l)}}e.render=i.render||r.tE,An&&An(e)}{const t=Tn(e);(0,o.C4)();try{!function(e){const t=qe(e),n=e.proxy,i=e.ctx;Xe=!1,t.beforeCreate&&He(t.beforeCreate,e,"bc");const{data:s,computed:a,methods:l,watch:c,provide:u,inject:d,created:p,beforeMount:h,mounted:f,beforeUpdate:m,updated:v,activated:g,deactivated:b,beforeDestroy:_,beforeUnmount:y,destroyed:x,unmounted:w,render:k,renderTracked:R,renderTriggered:C,errorCaptured:S,serverPrefetch:E,expose:M,inheritAttrs:T,components:L,directives:I,filters:O}=t;if(d&&function(e,t){(0,r.cy)(e)&&(e=Ze(e));for(const n in e){const i=e[n];let s;s=(0,r.Gv)(i)?"default"in i?at(i.from||n,i.default,!0):at(i.from||n):at(i),(0,o.i9)(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(d,i),l)for(const e in l){const t=l[e];(0,r.Tn)(t)&&(i[e]=t.bind(n))}if(s){const t=s.call(n,n);(0,r.Gv)(t)&&(e.data=(0,o.Kh)(t))}if(Xe=!0,a)for(const e in a){const t=a[e],o=(0,r.Tn)(t)?t.bind(n,n):(0,r.Tn)(t.get)?t.get.bind(n,n):r.tE,s=!(0,r.Tn)(t)&&(0,r.Tn)(t.set)?t.set.bind(n):r.tE,l=Fn({get:o,set:s});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(c)for(const e in c)Ge(c[e],i,n,e);if(u){const e=(0,r.Tn)(u)?u.call(n):u;Reflect.ownKeys(e).forEach(t=>{st(t,e[t])})}function A(e,t){(0,r.cy)(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(p&&He(p,e,"c"),A(he,h),A(fe,f),A(me,m),A(ve,v),A(ae,g),A(le,b),A(we,S),A(xe,R),A(ye,C),A(ge,y),A(be,w),A(_e,E),(0,r.cy)(M))if(M.length){const t=e.exposed||(e.exposed={});M.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});k&&e.render===r.tE&&(e.render=k),null!=T&&(e.inheritAttrs=T),L&&(e.components=L),I&&(e.directives=I),E&&te(e)}(e)}finally{(0,o.bl)(),t()}}}const $n={get:(e,t)=>((0,o.u4)(e,"get",""),e[t])};function zn(e){return{attrs:new Proxy(e.attrs,$n),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Pn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy((0,o.Pr)((0,o.IG)(e.exposed)),{get:(t,n)=>n in t?t[n]:n in $e?$e[n](e):void 0,has:(e,t)=>t in e||t in $e})):e.proxy}const Fn=(e,t)=>(0,o.EW)(e,t,Bn);function Dn(e,t,n){const o=(e,t,n)=>{on(-1);try{return hn(e,t,n)}finally{on(1)}},i=arguments.length;return 2===i?(0,r.Gv)(t)&&!(0,r.cy)(t)?ln(t)?o(e,null,[t]):o(e,t):o(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&ln(n)&&(n=[n]),o(e,t,n))}const Vn="3.5.21",Kn=r.tE},4110:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});class o{static get icons(){return{hat:"icon-Hat",cloth:"icon-cloth",skate:"icon-clothes-skates",success:"icon-success-filling",info:"icon-Annotation",info2:"icon-info",aloud:"icon-info1",bug:"icon-Bug",coffee:"icon-coffee",key:"icon-icons-",potion:"icon-entertainment_life-potion",potion2:"icon-items-01",sword:"icon-Sword",warn:"icon-error",close:"icon-clear",search:"icon-Search",search2:"icon-search2",map:"icon-mind_map",share:"icon-planeo",download:"icon-download1f",scatter:"icon-scatter",dot:"icon-dot",size:"icon-Sizeguide",color:"icon-a-line-colorwheel",tag:"icon-memorandum",cube:"icon-cube",return:"icon-arrowleftcircle1187576easyiconnet",brush:"icon-paintbrush-1--brush-color-colors-design-paint-pain",redo:"icon-redo1",undo:"icon-undo1-copy",cut:"icon-jianqie",delete:"icon-Delete",setting:"icon-setting",fresh:"icon-reset_defalut",hammer:"icon-bold-sledgehammer",honeycomb:"icon-honeycomb-fill",sound:"icon-Sound-wave",wave:"icon-wave",help:"icon-Annotation1",save:"icon-igw-f-save",link:"icon-link1",fold:"icon-icon_Folding_solid-copy",theme:"icon-ic_theme",book:"icon-ReadingMode",location:"icon-locate",pdf:"icon-PDF-copy",catalogue:"icon-reader-catalogue",shadow:"icon-shadow-fill",bookmark:"icon-bookmark",fomula:"icon-a-Property1fomula",vortex:"icon-force_vortex-copy",copy:"icon-copy",font:"icon-FontFamily",fontsize:"icon-font-size",items:"icon-Items",play:"icon-playcircle",record:"icon-Metting",pause:"icon-pause",computer:"icon-screen",cards:"icon-yichuzhizonge",apple:"icon-fruits",grape:"icon-a-3244992_fruits_fruit_grape",banana:"icon-banana",orange:"icon-orange",cherry:"icon-cherry",carrot:"icon-sterwberry",berry:"icon-blueberry-01",eggplant:"icon-eggplant",melon:"icon-fi-sr-watermelon",fish:"icon-icon-dada-v2-fruits",cursor:"icon-cursor3",arrow_left:"icon-cc-arrow-left-square",arrow_right:"icon-cc-arrow-right-square",arrow_up:"icon-cc-arrow-up-square",arrow_down:"icon-cc-arrow-down-square",delete_row:"icon-shanchuhang",delete_col:"icon-shanchulie",merge_cell:"icon-hebingdanyuange",unmerge_cell:"icon-quxiaohebingdanyuange",stop:"icon-stop",dict:"icon-books",star:"icon-clean",dir:"icon-FolderOpen"}}}},4809:(e,t,n)=>{"use strict";n.d(t,{n:()=>o.n});var o=n(6234)},4860:(e,t,n)=>{"use strict";n.d(t,{d:()=>c});var o=n(4089),r=n(5483),i=n(4984),s=n(8018),a=n(2083),l=n(1931);class c extends s.e{constructor(e){super(e),this.init()}init(){this.listen_status(),this.listen_enter_before(),this.listen_input_before(),this.listen_composition_end(),this.listen_replace_id(),this.watch_config(),this.listen_node_status_click(),this.listen_esc(),this.listen_float()}listen_esc(){this.event.on_esc(()=>{const{config:e,float:t}=this,{map_node_exit_by_esc:n}=e.data,o=t.has_float;if(r.yg.show=!1,r.$q.show=!1,r.p.show=!1,t.close_fomula(),t.close_cubelist(),t.close_dict(),t.close_table(),t.close_rt(),!n||o)return;this.root instanceof a.CubeMap&&this.root.clear_node_editing();const i=this.root.cubes.get_types_cube(a._NoteCubeTypes.submap);for(let[e,t]of i)t.clear_node_editing()})}listen_float(){const{root:e,float:t}=this.editor,{event:n}=e;n.on_show_cube_editor(e=>{e instanceof a.CubeFomula?t.edit_fomula(e):e instanceof a.CubeRt&&t.edit_rt(e)}),n.on_text_link_edit(e=>{t.edit_text_link(e)}),n.on_selection_change(()=>{const{cursor:e}=this.root,{cube_end:n,offset_end:o}=e;n instanceof a.CubeText&&(t.update_float_pos(r.wF,e),t.update_float_pos(r.bK,e),t.update_float_pos(r.ks,e),t.update_float_pos(r.ud,e))}),n.on_fig_click(()=>{r.p.show=!1})}listen_composition_end(){const{config:e,dict:t,float:n,root:o}=this.editor;o.event.on_doc_input_compositionend(e=>{if(!r.QI.dict_open)return;const t=e.data;n.update_float_dict_candidate(t)})}watch_config(){const{config:e}=this.root;let t=!0;(0,o.wB)(this.config.data,(n,o)=>{t?t=!1:r.QI.saved=!1,r.QI.dict_open=n.dict_candidate_open,Object.assign(e.data,n)},{immediate:!0})}listen_status(){const{event:e}=this.root;let t=this.root.history.len_undo;e.on_status_update(e=>{Object.assign(r.QI,e),e.count_stack_undo!==t&&(r.QI.saved=!1),t=e.count_stack_undo}),(0,o.wB)(r.QI,e=>{this.event.emit_status_update()})}listen_input_before(){const{root:e}=this.editor,{event:t,courier:n,history:o,cursor:s}=e,c=[..."123456789"];t.on_doc_input_before(t=>{t.preventDefault();const{inputType:u}=t,{cube_end:d,cube_start:p,cube_selection:h,offset_start:f,offset_end:m,has_selection:v}=s;if(!h||!d||!p)return"stop";const g=t.data||"",b=p.id,_=d.id,y=h.id;if("insertText"===u)if(h instanceof a.CubeText&&g)if(r.ks.show&&r.ks.words.length>0&&c.includes(g)){const e=r.ks.items[Number(g)-1];if(e&&e.word){e.count++;const t=n.get_recorder();e.type===i.oE.keyword?this.ins_quick(t,e.word,h,f,m):this.ins(t,e.word,h,f,m),o.record(t)}}else if(r.ks.show&&" "===g){const e=r.ks.items[r.ks.active-1];if(e){e.count++;const t=n.get_recorder();e.type===i.oE.keyword?this.ins_quick(t,e.word,h,f,m):this.ins(t,e.word,h,f,m),o.record(t)}}else if(" "===g&&!v&&p instanceof a.CubeText){const e=n.get_recorder(),t=p.text.slice(0,f).trim(),r=(p.text.slice(f).trim(),p.pcube),i=l.E.check_input_hit(this.editor,t),{index:s,id:c}=p;if(i.hit){const n=i.text,l=a.CommandCube.partition(c,c,c,f,f),u=a.CommandText.reset(c,n,t.length,n.length),d=a.CommandCube.insert_child(r.id,i.cubedata,s+1);f<p.len&&e.tell(p,l),e.tell(p,u),e.tell(r,d),o.record(e)}else{const e=n.get_recorder();this.ins(e,g,h,f,m),o.record(e)}}else{const e=n.get_recorder();this.ins(e,g,h,f,m),o.record(e)}else{const e=n.get_recorder(),t=a.CubeText.get_default(g||"​"),r=a.CommandCube.insert(y,[t],b,_,f,m);e.tell(h,r),o.record(e)}else if("deleteContentBackward"===t.inputType||"deleteContentForward"===t.inputType){r.ks.show=!1;const i=n.get_recorder();if(this.root.scope_count_normal){const t=e.clipboard.delete_scope();t&&e.history.record(t)}else{let e="deleteContentBackward"===t.inputType?"backward":"forward";const n=a.CommandCube.delete(y,e,b,_,f,m);i.tell(h,n),o.record(i)}}return"stop"})}listen_enter_before(){const{root:e}=this.editor,{event:t,cursor:n,courier:o,history:s}=e;t.on_enter_before(e=>{if(!n.get_focus_line())return"continue";if(e.preventDefault(),r.ks.show){const{cube_selection:e,offset_start:t,offset_end:l}=n,c=r.ks.items[r.ks.active-1];if(c&&e&&e instanceof a.CubeText){const n=o.get_recorder();return c.count++,c.type===i.oE.keyword?this.ins_quick(n,c.word,e,t,l):this.ins(n,c.word,e,t,l),s.record(n),"stop"}}const{cube_end:t,cube_start:c,cube_selection:u,offset_end:d,offset_start:p}=n;if(!u||!t||!c)return"continue";const h=new a.Recorder(o),f=c.id,m=t.id;if(n.has_selection&&h.tell(u,a.CommandCube.delete(u.id,"backward",f,m,p,d,!0)),c instanceof a.CubeText){const e=c.text.slice(0,p).trim(),t=(c.text.slice(p).trim(),c.pcube),n=l.E.check_input_hit(this.editor,e),{index:o,id:r}=c;if(n.hit){const i=n.text,l=a.CommandCube.partition(r,r,r,p,p),u=a.CommandText.reset(r,i,e.length,i.length),d=a.CommandCube.insert_child(t.id,n.cubedata,o+1);return p<c.len&&h.tell(c,l),h.tell(c,u),h.tell(t,d),s.record(h),"stop"}}return h.tell(c,a.CommandText.break(c.id,p)),s.record(h),"stop"})}listen_replace_id(){const e=this.catalogue.update_anchor.bind(this.catalogue);this.event.on_replace_id(e),this.sidebar.event.on_text_merge(e)}ins(e,t,n,o,i){const{dict:s,float:l}=this.editor,c=n.text,u=c.slice(0,o)+t+c.slice(i),d=o+t.length,p=a.CommandText.reset(n.id,u,o,o+t.length);e.tell(n,p);const h=a.CommandCube.merge(n.id,"both",n.id,d);if(e.tell(n,h),r.QI.dict_open){const e=s.find_quick(n.text);l.update_float_dict_candidate(e||t)}return e}ins_quick(e,t,n,o,i){const{dict:s,float:l}=this.editor,c=n.text,u=c.slice(0,o),d=s.remove_quick(u)+t,p=d+c.slice(i);return e.tell(n,a.CommandText.reset(n.id,p,o,d.length)),r.QI.dict_open&&l.update_float_dict_candidate(t),e}listen_node_status_click(){const{root:e,float:t}=this,{courier:n,history:o,event:r}=e;r.on_node_status_click((e,r)=>{const{node:i,click:s}=r,l=n.get_recorder();if("root"===s){const e=a.CommandNode.layout_change(i.id,{root:!i.attrs.root});l.tell(i,e)}else if("layout"===s){const n={x:e.clientX,y:e.clientY};t.show_node_layout(n,i)}o.record(l)})}get meta(){return c.meta}export(){}update_data(e){return e}static get meta(){return{type:i.d2.listener,version:1}}}},4953:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});class o{static funcs=new Map;static get api_ask_ai(){return this.funcs.get("ask-ai")}static get api_parse_keyword(){return this.funcs.get("parse-keyword")}static get api_parse_association(){return this.funcs.get("parse-association")}static get api_get_noteinfo(){return this.funcs.get("noteinfo")}static get api_get_themes(){return this.funcs.get("get-themes")}static get api_get_bg(){return this.funcs.get("get-bg")}static register_ask_ai(e){this.funcs.set("ask-ai",e)}static register_parse_keyword(e){this.funcs.set("parse-keyword",e)}static register_parse_association(e){this.funcs.set("parse-association",e)}static register_noteinfo(e){this.funcs.set("noteinfo",e)}static register_get_themes(e){this.funcs.set("get-themes",e)}static register_get_bg(e){this.funcs.set("get-bg",e)}}},4984:(e,t,n)=>{"use strict";n.d(t,{oE:()=>a,I7:()=>u,UF:()=>s,zX:()=>r,lb:()=>c,U_:()=>l,GC:()=>d,l1:()=>i,d2:()=>o});var o=function(e){return e.ai="ai",e.api="api",e.catalogue="catalogue",e.convertors="convertors",e.dict="dict",e.dialog="dialog",e.event="event",e.editor="editor",e.fomula="fomula",e.float="float",e.listener="listener",e.sidebar="sidebar",e.menubar="menubar",e.memory="memory",e.toolbar="toolbar",e.statusbar="statusbar",e.presets="presets",e.hotkeys="hotkeys",e.config="config",e.search="search",e.theme="theme",e.tips="tips",e}({}),r=function(e){return e["fold-sidebar"]="fold-sidebar",e["fold-toolbar"]="fold-toolbar",e["import-md"]="import-md",e["mode-reading"]="mode-reading",e.record="record",e["dict-candidator"]="dict-candidator",e}({}),i=function(e){return e["bookmark-add"]="添加书签",e["fontsize-up"]="增加字号",e["fontsize-down"]="减小字号",e["search-doc"]="搜索",e["float-fomula"]="公式面板",e["float-cubelist"]="元素面板",e["text-add-link"]="添加超链接",e["paste-md"]="粘贴markdown",e}({}),s=function(e){return e.preset="preset",e.symbol="symbol",e.bracket="bracket",e.relation="relation",e.sup="sup",e.arrow="arrow",e.operator="operator",e.matrix="matrix",e.expression="expression",e}({}),a=function(e){return e.keyword="keyword",e.associate="associate",e}({}),l=function(e){return e.std="标准模式",e.edit="编辑模式",e.delete="删除模式",e}({}),c=function(e){return e.align="align",e.annotation="annotation",e.border="border",e.bookmark="bookmark",e.bold_italic="bold_italic",e.color="color",e.compose="compose",e.emphasis="emphasis",e.fomula="fomula",e.font="font",e.format_brush="format_brush",e.history="history",e.indent="indent",e.node_layout="node_layout",e.node_style="node_style",e.paste="paste",e.speak="speak",e.scope="scope",e.spacing="spacing",e.underline="underline",e.write_mode="write_mode",e.rt="rt",e}({}),u=function(e){return e.cubelist="cubelist",e.fomula="fomula",e.dict="dict",e.line_edit="line_edit",e.link_ask="link_ask",e.add_dict="add_dict",e.table="table",e.node_layout="node_layout",e.rt="rt",e}({}),d=function(e){return e["status-update"]="status-update",e["export-show"]="export-show",e["render-end"]="render-end",e}({})},5024:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var o=n(7633),r=n(4984);const i=(0,o.Kh)({cube:null,group:null,type:"bookmark",tagname:"",group_bg:"transparent",tip:"",mode:r.U_.std})},5037:(e,t,n)=>{"use strict";n.d(t,{U:()=>l});var o=n(7633),r=n(4984),i=n(8018),s=n(28),a=n(2083);class l extends i.e{data;constructor(e){super(e),this.data=(0,o.Kh)(this.uidata.memory||s.U.memory),this.init()}init(){this.event.on_render_end(()=>{this.recover_cursor()}),this.root.event.on_edit_after((e,t)=>{(t.name===a._CursorCommandName.cursor_in_head||t.name===a._CursorCommandName.cursor_in_tail)&&(this.data.location=t)})}recover_cursor(){const e=this.data.location;e&&(this.root.courier.pass(e),this.tips.tip_violet("已为您恢复上次编辑位置"))}get meta(){return l.meta}export(){return structuredClone((0,o.ux)(this.data))}update_data(e){return e}static get meta(){return{type:r.d2.memory,version:1}}}},5347:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var o=n(4984),r=n(8018);class i extends r.e{get meta(){return i.meta}constructor(e){super(e)}export(){}update_data(e){return e}static get meta(){return{type:o.d2.dialog,version:1}}}},5450:(e,t,n)=>{"use strict";n.d(t,{i:()=>we});var o=n(4984),r=n(8018);var i={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function s(e){i=e}var a={exec:()=>null};function l(e,t=""){let n="string"==typeof e?e:e.source;const o={replace:(e,t)=>{let r="string"==typeof t?t:t.source;return r=r.replace(c.caret,"$1"),n=n.replace(e,r),o},getRegex:()=>new RegExp(n,t)};return o}var c={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,d=/(?:[*+-]|\d{1,9}[.)])/,p=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,h=l(p).replace(/bull/g,d).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),f=l(p).replace(/bull/g,d).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),m=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,v=/(?!\s*\])(?:\\.|[^\[\]\\])+/,g=l(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",v).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),b=l(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,d).getRegex(),_="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",y=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,x=l("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",y).replace("tag",_).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),w=l(m).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),k={blockquote:l(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",w).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:g,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:u,html:x,lheading:h,list:b,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:w,table:a,text:/^[^\n]+/},R=l("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),C={...k,lheading:f,table:R,paragraph:l(m).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",R).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex()},S={...k,html:l("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",y).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:a,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:l(m).replace("hr",u).replace("heading"," *#{1,6} *[^\n]").replace("lheading",h).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},E=/^( {2,}|\\)\n(?!\s*$)/,M=/[\p{P}\p{S}]/u,T=/[\s\p{P}\p{S}]/u,L=/[^\s\p{P}\p{S}]/u,I=l(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,T).getRegex(),O=/(?!~)[\p{P}\p{S}]/u,A=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,B=l(A,"u").replace(/punct/g,M).getRegex(),N=l(A,"u").replace(/punct/g,O).getRegex(),W="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$=l(W,"gu").replace(/notPunctSpace/g,L).replace(/punctSpace/g,T).replace(/punct/g,M).getRegex(),z=l(W,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,O).getRegex(),P=l("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,L).replace(/punctSpace/g,T).replace(/punct/g,M).getRegex(),F=l(/\\(punct)/,"gu").replace(/punct/g,M).getRegex(),D=l(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),V=l(y).replace("(?:--\x3e|$)","--\x3e").getRegex(),K=l("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",V).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),j=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,X=l(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",j).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),H=l(/^!?\[(label)\]\[(ref)\]/).replace("label",j).replace("ref",v).getRegex(),G=l(/^!?\[(ref)\](?:\[\])?/).replace("ref",v).getRegex(),q={_backpedal:a,anyPunctuation:F,autolink:D,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:E,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:a,emStrongLDelim:B,emStrongRDelimAst:$,emStrongRDelimUnd:P,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:X,nolink:G,punctuation:I,reflink:H,reflinkSearch:l("reflink|nolink(?!\\()","g").replace("reflink",H).replace("nolink",G).getRegex(),tag:K,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:a},U={...q,link:l(/^!?\[(label)\]\((.*?)\)/).replace("label",j).getRegex(),reflink:l(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",j).getRegex()},Q={...q,emStrongRDelimAst:z,emStrongLDelim:N,url:l(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Y={...Q,br:l(E).replace("{2,}","*").getRegex(),text:l(Q.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Z={normal:k,gfm:C,pedantic:S},J={normal:q,gfm:Q,breaks:Y,pedantic:U},ee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},te=e=>ee[e];function ne(e,t){if(t){if(c.escapeTest.test(e))return e.replace(c.escapeReplace,te)}else if(c.escapeTestNoEncode.test(e))return e.replace(c.escapeReplaceNoEncode,te);return e}function oe(e){try{e=encodeURI(e).replace(c.percentDecode,"%")}catch{return null}return e}function re(e,t){const n=e.replace(c.findPipe,(e,t,n)=>{let o=!1,r=t;for(;--r>=0&&"\\"===n[r];)o=!o;return o?"|":" |"}).split(c.splitPipe);let o=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(c.slashPipe,"|");return n}function ie(e,t,n){const o=e.length;if(0===o)return"";let r=0;for(;r<o;){const i=e.charAt(o-r-1);if(i!==t||n){if(i===t||!n)break;r++}else r++}return e.slice(0,o-r)}function se(e,t,n,o,r){const i=t.href,s=t.title||null,a=e[1].replace(r.other.outputLinkReplace,"$1");o.state.inLink=!0;const l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:i,title:s,text:a,tokens:o.inlineTokens(a)};return o.state.inLink=!1,l}var ae=class{options;rules;lexer;constructor(e){this.options=e||i}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ie(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t,n){const o=e.match(n.other.indentCodeCompensation);if(null===o)return t;const r=o[1];return t.split("\n").map(e=>{const t=e.match(n.other.beginningSpace);if(null===t)return e;const[o]=t;return o.length>=r.length?e.slice(r.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){const t=ie(e,"#");this.options.pedantic?e=t.trim():t&&!this.rules.other.endingSpaceChar.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ie(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=ie(t[0],"\n").split("\n"),n="",o="";const r=[];for(;e.length>0;){let t=!1;const i=[];let s;for(s=0;s<e.length;s++)if(this.rules.other.blockquoteStart.test(e[s]))i.push(e[s]),t=!0;else{if(t)break;i.push(e[s])}e=e.slice(s);const a=i.join("\n"),l=a.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${a}`:a,o=o?`${o}\n${l}`:l;const c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,r,!0),this.lexer.state.top=c,0===e.length)break;const u=r.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){const t=u,i=t.raw+"\n"+e.join("\n"),s=this.blockquote(i);r[r.length-1]=s,n=n.substring(0,n.length-t.raw.length)+s.raw,o=o.substring(0,o.length-t.text.length)+s.text;break}if("list"===u?.type){const t=u,i=t.raw+"\n"+e.join("\n"),s=this.list(i);r[r.length-1]=s,n=n.substring(0,n.length-u.raw.length)+s.raw,o=o.substring(0,o.length-t.raw.length)+s.raw,e=i.substring(r.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:r,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const o=n.length>1,r={type:"list",raw:"",ordered:o,start:o?+n.slice(0,-1):"",loose:!1,items:[]};n=o?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=o?n:"[*+-]");const i=this.rules.other.listItemRegex(n);let s=!1;for(;e;){let n=!1,o="",a="";if(!(t=i.exec(e)))break;if(this.rules.block.hr.test(e))break;o=t[0],e=e.substring(o.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],u=!l.trim(),d=0;if(this.options.pedantic?(d=2,a=l.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,a=l.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(o+=c+"\n",e=e.substring(c.length+1),n=!0),!n){const t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),r=this.rules.other.fencesBeginRegex(d),i=this.rules.other.headingBeginRegex(d),s=this.rules.other.htmlBeginRegex(d);for(;e;){const p=e.split("\n",1)[0];let h;if(c=p,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),h=c):h=c.replace(this.rules.other.tabCharGlobal," "),r.test(c))break;if(i.test(c))break;if(s.test(c))break;if(t.test(c))break;if(n.test(c))break;if(h.search(this.rules.other.nonSpaceChar)>=d||!c.trim())a+="\n"+h.slice(d);else{if(u)break;if(l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4)break;if(r.test(l))break;if(i.test(l))break;if(n.test(l))break;a+="\n"+c}u||c.trim()||(u=!0),o+=p+"\n",e=e.substring(p.length+1),l=h.slice(d)}}r.loose||(s?r.loose=!0:this.rules.other.doubleBlankLine.test(o)&&(s=!0));let p,h=null;this.options.gfm&&(h=this.rules.other.listIsTask.exec(a),h&&(p="[ ] "!==h[0],a=a.replace(this.rules.other.listReplaceTask,""))),r.items.push({type:"list_item",raw:o,task:!!h,checked:p,loose:!1,text:a,tokens:[]}),r.raw+=o}const a=r.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),r.raw=r.raw.trimEnd();for(let e=0;e<r.items.length;e++)if(this.lexer.state.top=!1,r.items[e].tokens=this.lexer.blockTokens(r.items[e].text,[]),!r.loose){const t=r.items[e].tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));r.loose=n}if(r.loose)for(let e=0;e<r.items.length;e++)r.items[e].loose=!0;return r}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:o}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!this.rules.other.tableDelimiter.test(t[2]))return;const n=re(t[1]),o=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===o.length){for(const e of o)this.rules.other.tableAlignRight.test(e)?i.align.push("right"):this.rules.other.tableAlignCenter.test(e)?i.align.push("center"):this.rules.other.tableAlignLeft.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<n.length;e++)i.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:i.align[e]});for(const e of r)i.rows.push(re(e,i.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]})));return i}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;const t=ie(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let o=0;o<e.length;o++)if("\\"===e[o])o++;else if(e[o]===t[0])n++;else if(e[o]===t[1]&&(n--,n<0))return o;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],o="";if(this.options.pedantic){const e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],o=e[3])}else o=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),se(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:o?o.replace(this.rules.inline.anyPunctuation,"$1"):o},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return se(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let o=this.rules.inline.emStrongLDelim.exec(e);if(o&&(!o[3]||!n.match(this.rules.other.unicodeAlphaNumeric))&&(!o[1]&&!o[2]||!n||this.rules.inline.punctuation.exec(n))){const n=[...o[0]].length-1;let r,i,s=n,a=0;const l="*"===o[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(o=l.exec(t));){if(r=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!r)continue;if(i=[...r].length,o[3]||o[4]){s+=i;continue}if((o[5]||o[6])&&n%3&&!((n+i)%3)){a+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s+a);const t=[...o[0]][0].length,l=e.slice(0,n+o.index+t+i);if(Math.min(n,i)%2){const e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}const c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," ");const n=this.rules.other.nonSpaceChar.test(e),o=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&o&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let o;do{o=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(o!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},le=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||i,this.options.tokenizer=this.options.tokenizer||new ae,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={other:c,block:Z.normal,inline:J.normal};this.options.pedantic?(t.block=Z.pedantic,t.inline=J.pedantic):this.options.gfm&&(t.block=Z.gfm,this.options.breaks?t.inline=J.breaks:t.inline=J.gfm),this.tokenizer.rules=t}static get rules(){return{block:Z,inline:J}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(c.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(c.tabCharGlobal," ").replace(c.spaceLine,""));e;){let o;if(this.options.extensions?.block?.some(n=>!!(o=n.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);const n=t.at(-1);1===o.raw.length&&void 0!==n?n.raw+="\n":t.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);const n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+o.raw,n.text+="\n"+o.text,this.inlineQueue.at(-1).src=n.text):t.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);const n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+o.raw,n.text+="\n"+o.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),t.push(o);continue}let r=e;if(this.options.extensions?.startBlock){let t=1/0;const n=e.slice(1);let o;this.options.extensions.startBlock.forEach(e=>{o=e.call({lexer:this},n),"number"==typeof o&&o>=0&&(t=Math.min(t,o))}),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(o=this.tokenizer.paragraph(r))){const i=t.at(-1);n&&"paragraph"===i?.type?(i.raw+="\n"+o.raw,i.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(o),n=r.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);const n=t.at(-1);"text"===n?.type?(n.raw+="\n"+o.raw,n.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(o);continue}if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,o=null;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,o.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let r=!1,i="";for(;e;){let o;if(r||(i=""),r=!1,this.options.extensions?.inline?.some(n=>!!(o=n.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);const n=t.at(-1);"text"===o.type&&"text"===n?.type?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0;const n=e.slice(1);let o;this.options.extensions.startInline.forEach(e=>{o=e.call({lexer:this},n),"number"==typeof o&&o>=0&&(t=Math.min(t,o))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),"_"!==o.raw.slice(-1)&&(i=o.raw.slice(-1)),r=!0;const n=t.at(-1);"text"===n?.type?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},ce=class{options;parser;constructor(e){this.options=e||i}space(e){return""}code({text:e,lang:t,escaped:n}){const o=(t||"").match(c.notSpaceStart)?.[0],r=e.replace(c.endingNewline,"")+"\n";return o?'<pre><code class="language-'+ne(o)+'">'+(n?r:ne(r,!0))+"</code></pre>\n":"<pre><code>"+(n?r:ne(r,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,n=e.start;let o="";for(let t=0;t<e.items.length;t++){const n=e.items[t];o+=this.listitem(n)}const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+o+"</"+r+">\n"}listitem(e){let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===e.tokens[0]?.type?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+ne(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let o="";for(let t=0;t<e.rows.length;t++){const r=e.rows[t];n="";for(let e=0;e<r.length;e++)n+=this.tablecell(r[e]);o+=this.tablerow({text:n})}return o&&(o=`<tbody>${o}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+o+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ne(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const o=this.parser.parseInline(n),r=oe(e);if(null===r)return o;let i='<a href="'+(e=r)+'"';return t&&(i+=' title="'+ne(t)+'"'),i+=">"+o+"</a>",i}image({href:e,title:t,text:n,tokens:o}){o&&(n=this.parser.parseInline(o,this.parser.textRenderer));const r=oe(e);if(null===r)return ne(n);let i=`<img src="${e=r}" alt="${n}"`;return t&&(i+=` title="${ne(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ne(e.text)}},ue=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},de=class e{options;renderer;textRenderer;constructor(e){this.options=e||i,this.options.renderer=this.options.renderer||new ce,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ue}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let o=0;o<e.length;o++){const r=e[o];if(this.options.extensions?.renderers?.[r.type]){const e=r,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){n+=t||"";continue}}const i=r;switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let r=i,s=this.renderer.text(r);for(;o+1<e.length&&"text"===e[o+1].type;)r=e[++o],s+="\n"+this.renderer.text(r);n+=t?this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s,escaped:!0}]}):s;continue}default:{const e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let o=0;o<e.length;o++){const r=e[o];if(this.options.extensions?.renderers?.[r.type]){const e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){n+=e||"";continue}}const i=r;switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{const e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}},pe=class{options;block;constructor(e){this.options=e||i}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?le.lex:le.lexInline}provideParser(){return this.block?de.parse:de.parseInline}},he=class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=de;Renderer=ce;TextRenderer=ue;Lexer=le;Tokenizer=ae;Hooks=pe;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(const o of e)switch(n=n.concat(t.call(this,o)),o.type){case"table":{const e=o;for(const o of e.header)n=n.concat(this.walkTokens(o.tokens,t));for(const o of e.rows)for(const e of o)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=o;n=n.concat(this.walkTokens(e.items,t));break}default:{const e=o;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(o=>{const r=e[o].flat(1/0);n=n.concat(this.walkTokens(r,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{const n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let o=e.renderer.apply(this,t);return!1===o&&(o=n.apply(this,t)),o}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){const t=this.defaults.renderer||new ce(this.defaults);for(const n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;const o=n,r=e.renderer[o],i=t[o];t[o]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new ae(this.defaults);for(const n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const o=n,r=e.tokenizer[o],i=t[o];t[o]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new pe;for(const n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;const o=n,r=e.hooks[o],i=t[o];pe.passThroughHooks.has(n)?t[o]=e=>{if(this.defaults.async)return Promise.resolve(r.call(t,e)).then(e=>i.call(t,e));const n=r.call(t,e);return i.call(t,n)}:t[o]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,o=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(o.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return le.lex(e,t??this.defaults)}parser(e,t){return de.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{const o={...n},r={...this.defaults,...o},i=this.onError(!!r.silent,!!r.async);if(!0===this.defaults.async&&!1===o.async)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(null==t)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));r.hooks&&(r.hooks.options=r,r.hooks.block=e);const s=r.hooks?r.hooks.provideLexer():e?le.lex:le.lexInline,a=r.hooks?r.hooks.provideParser():e?de.parse:de.parseInline;if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(t):t).then(e=>s(e,r)).then(e=>r.hooks?r.hooks.processAllTokens(e):e).then(e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then(()=>e):e).then(e=>a(e,r)).then(e=>r.hooks?r.hooks.postprocess(e):e).catch(i);try{r.hooks&&(t=r.hooks.preprocess(t));let e=s(t,r);r.hooks&&(e=r.hooks.processAllTokens(e)),r.walkTokens&&this.walkTokens(e,r.walkTokens);let n=a(e,r);return r.hooks&&(n=r.hooks.postprocess(n)),n}catch(e){return i(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+ne(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},fe=new he;function me(e,t){return fe.parse(e,t)}me.options=me.setOptions=function(e){return fe.setOptions(e),me.defaults=fe.defaults,s(me.defaults),me},me.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},me.defaults=i,me.use=function(...e){return fe.use(...e),me.defaults=fe.defaults,s(me.defaults),me},me.walkTokens=function(e,t){return fe.walkTokens(e,t)},me.parseInline=fe.parseInline,me.Parser=de,me.parser=de.parse,me.Renderer=ce,me.TextRenderer=ue,me.Lexer=le,me.lexer=le.lex,me.Tokenizer=ae,me.Hooks=pe,me.parse=me,me.options,me.setOptions,me.use,me.walkTokens,me.parseInline,de.parse,le.lex;var ve=n(2083);function ge(e){const t=[];for(let n of e){if("space"===n.type)continue;const e=ye.get(n.type);if(e){const o=e(n);Array.isArray(o)?t.push(...o):t.push(o)}else t.push(be(n))}return t}function be(e){return"space"===e.type?ve.CubeLine.get_default():ve.CubeLine.get_default_by_string(e.raw)}function _e(e){const t=[];for(let n of e){const{task:e,checked:o,text:r,tokens:i}=n;let s=ge(i);if(e){const e=ve.CubeTodo.get_default();e.info.length=0;const t=ve.CubeTodo.get_todo_item(s,o);e.info.push(t)}else t.push(ve.CubeList.get_list_item(s))}return t}const ye=new Map,xe=[["blockquote",function(e){const{tokens:t,text:n}=e,o=ge(t);return ve.CubeTip.get_default(o)}],["code",function(e){const{lang:t,text:n}=e;if("latex"===t){const e=ve.CubeFomula.get_default(n);return e.attrs.block=!0,e.attrs.size=ve._FomulaSize.h3,e}{const e=Object.values(ve.CodeLanguageMap).includes(t)?t:"typescript",o=ve.CubeCode.get_default_by_string(e,n);return o.info.active_tab_id=o.info.tabs[0].id,o.attrs.codebg="rgba(35, 38, 46, 0.85)",o}}],["codespan",function(e){return ve.CubeText.get_default(e.text)}],["table",function(e){const{align:t,header:n,rows:o}=e,r=[o.length+1,n.length],i=[];for(let e=0;e<n.length;e++){const{tokens:t}=n[e],o=ve.CubeBox.get_default(ge(t)),r={row:0,col:e,rowspan:1,colspan:1,data:o};o.css={background:"rgba(211, 211, 211, 0.5)",padding:"0px 5px"},i.push(r)}for(let e=0;e<o.length;e++){const t=o[e];for(let n=0;n<t.length;n++){const{tokens:o}=t[n],r={row:e+1,col:n,rowspan:1,colspan:1,data:ve.CubeBox.get_default(ge(o))};i.push(r)}}return ve.CubeTable.get_default_by_data(r,i)}],["del",function(e){const t=ve.CubeText.get_default(e.text);return t.css={"text-decoration":"line-through"},t}],["em",function(e){const t=ve.CubeText.get_default(e.text);return t.css={"font-style":"italic"},t}],["escape",function(e){return ve.CubeText.get_default(e.text)}],["heading",function(e){const{tokens:t}=e,n=ge(t);for(let t of n)t.css["font-weight"]="bold",t.css["font-size"]=16+2*(6-e.depth)+"px";return ve.CubeLine.get_default(n)}],["hr",function(e){const t=ve.CubeText.get_default();return t.css={display:"block","border-top":"1px dashed"},ve.CubeLine.get_default([t])}],["html",function(e){const{block:t,text:n}=e;if(t)return ve.CubeCode.get_default_by_string("html",n);{const e=ve.CubeText.get_default(n);return e.css={color:"turquoise"},e}}],["image",function(e){const{href:t}=e;return ve.CubeImg.get_default(t)}],["link",function(e){const{href:t,title:n,text:o}=e,r=ve.CubeText.get_default(o),i=ve.CubePostil.get_default(),s=ve.CubeTextLink.get_default(t,n||"");return i.info.push(s),r.attrs={mark:i},r}],["list",function(e){const{ordered:t,items:n}=e,o=t?ve.CubeListOrdered.get_default():ve.CubeList.get_default();o.info.length=0;const r=_e(n);return o.info.push(...r),o}],["listitem",_e],["paragraph",function(e){const{text:t,tokens:n}=e,o=ge(n);return ve.CubeLine.get_default(o)}],["strong",function(e){const t=ve.CubeText.get_default(e.text);return t.css={"font-weight":"bold"},t}],["text",function(e){const{text:t,tokens:n}=e,o=[...t.matchAll(/\$\$?(.+?)\$\$?/g)];if(o.length>0){const e=[],n=o[0];let r=0;if(n.index>=0){const o=t.slice(0,n.index);if(o){const t=me.lexer(o);e.push(...ge(t))}const i=ve.CubeFomula.get_default(n[1]);n[0].startsWith("$$")&&(i.attrs.block=!0,i.attrs.size=ve._FomulaSize.h3),e.push(i),r=n[0].length+n.index}for(let n of o.slice(1)){const o=n.index;if(o>r){const n=t.slice(r,o),i=me.lexer(n);e.push(...ge(i))}const i=ve.CubeFomula.get_default(n[1]);n[0].startsWith("$$")&&(i.attrs.block=!0,i.attrs.size=ve._FomulaSize.h3),e.push(i),r=n.index+n[0].length}if(r<t.length){const n=t.slice(r),o=me.lexer(n);e.push(...ge(o))}return e}return n?ge(n):[ve.CubeText.get_default(t)]}]];for(let[e,t]of xe)ye.set(e,t);class we extends r.e{_marked=new he;get meta(){return we.meta}get marked(){return this._marked}constructor(e){super(e)}import_md(e){const t=[],n=this.marked.lexer(e);for(let e of n){const n=ye.get(e.type);n?t.push(n(e)):t.push(be(e))}return{cubedata:t,tokens:n}}export(){}update_data(e){return e}static get meta(){return{type:o.d2.convertors,version:1}}}},5481:(e,t,n)=>{"use strict";n.d(t,{Ak:()=>o});let o=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t}},5483:(e,t,n)=>{"use strict";n.d(t,{c1:()=>a.c,jm:()=>d,QI:()=>o.Q,I_:()=>u,bl:()=>l,pw:()=>c.p,A0:()=>s,SH:()=>i,bK:()=>b,ks:()=>v,$3:()=>m,wF:()=>g,yg:()=>_,$q:()=>y,p:()=>x,Sg:()=>w,ud:()=>f});var o=n(6424),r=n(7633);const i=(0,r.Kh)({display:"none",opacity:0,pointer_events:"none",x:0,y:0,active_key:"",cube:void 0,has_update_font_list:!1,cssitems:[]}),s=(0,r.Kh)({saved:!0});var a=n(5024);const l=(0,r.Kh)({});var c=n(3709);const u=(0,r.Kh)({mode:"std",keyinfo:null,temp:{meta:!1,ctrl:!1,shift:!1,alt:!1,key:""}}),d=(0,r.Kh)({show_presets:!1,show_bookmark:!1,show_css:!1});var p=n(4984),h=n(2083);const f=(0,r.Kh)({type:p.I7.table,show:!1,dom:null,css:{},size:{x:0,y:0,width:160,height:160}}),m=(0,r.Kh)({type:p.I7.add_dict,tab:p.oE.keyword,show:!1,dom:null,size:{x:0,y:0,width:0,height:0},css:{}}),v=(0,r.Kh)({_page:1,_active:1,type:p.I7.dict,show:!1,size:{x:0,y:0,width:750,height:43},get page(){return this._page},set page(e){const t=Math.ceil(this.words.length/9);e<1||e>t||(this._page=e)},get active(){return this._active},set active(e){e<1||e>this.items.length||(this._active=e)},dom:null,words:[],get items(){return this.words.slice(9*(this.page-1),9*this.page)},css:{}}),g=(0,r.Kh)({type:p.I7.fomula,size:{x:0,y:0,width:800,height:250},show:!1,dom:void 0,scale:h._FomulaSize.h4,anchor:void 0,pos:0,cube:void 0,latex:"",css:{}}),b=(0,r.Kh)({show:!1,type:p.I7.cubelist,dom:void 0,size:{width:560,height:284,x:0,y:0},cubelist:[],search:"",tab:"cubes",css:{}}),_=(0,r.Kh)({type:p.I7.link_ask,dom:void 0,cube:null,title:"",url:"",offset_start:0,offset_end:0,show:!1,left:"0px",top:"0px",size:{x:0,y:0,width:270,height:183},css:{}}),y=(0,r.Kh)({type:p.I7.line_edit,dom:void 0,cube:null,show:!1,url:"",title:"",left:"0px",top:"0px",size:{x:0,y:0,width:270,height:183},css:{}}),x=(0,r.Kh)({type:p.I7.node_layout,show:!1,dom:null,node:void 0,css:{},size:{x:0,y:0,width:160,height:25}}),w=(0,r.Kh)({type:p.I7.rt,show:!1,dom:null,cube:null,css:{},size:{x:0,y:0,width:160,height:25}})},5623:(e,t,n)=>{"use strict";n.d(t,{T:()=>r,y:()=>o});const o=[{name:"墨黑",value:"#062726"},{name:"深灰",value:"#696969"},{name:"中灰",value:"#A9A9A9"},{name:"浅灰",value:"#D3D3D3"},{name:"纯白",value:"#ffffff"},{name:"正红",value:"#ff0054"},{name:"橘红",value:"#fe6d73"},{name:"粉红",value:"#fb6f92"},{name:"砖红",value:"#ef8354"},{name:"桃红",value:"#ffc2d1"},{name:"正黄",value:"#f8f362"},{name:"橙黄",value:"#FFA500"},{name:"橘黄",value:"#ffca3a"},{name:"米黄",value:"#f4e285"},{name:"淡黄",value:"#ffef9f"},{name:"正绿",value:"#00FF00"},{name:"蓝绿",value:"#00B8B8"},{name:"草绿",value:"#5dd39e"},{name:"棕绿",value:"#bce784"},{name:"浅绿",value:"#caffbf"},{name:"正蓝",value:"#2176ff"},{name:"蔚蓝",value:"#33a1fd"},{name:"碧蓝",value:"#008E97"},{name:"水蓝",value:"#06bee1"},{name:"浅蓝",value:"#bee9e8"},{name:"正紫",value:"#6a00f4"},{name:"绛紫",value:"#a100f2"},{name:"绯紫",value:"#d100d1"},{name:"青紫",value:"#9370DB"},{name:"淡紫",value:"#e0c3fc"}],r=[{name:"墨黑",value:"#062726"},{name:"深灰",value:"#696969"},{name:"中灰",value:"#A9A9A9"},{name:"浅灰",value:"#D3D3D3"},{name:"纯白",value:"#ffffff"},{name:"正红",value:"#ff0054"},{name:"橘红",value:"#fe6d73"},{name:"粉红",value:"#fb6f92"},{name:"砖红",value:"#ef8354"},{name:"桃红",value:"#ffc2d1"},{name:"正黄",value:"#f8f362"},{name:"橙黄",value:"#FFA500"},{name:"橘黄",value:"#ffca3a"},{name:"米黄",value:"#f4e285"},{name:"淡黄",value:"#ffef9f"},{name:"正绿",value:"#00FF00"},{name:"蓝绿",value:"#00B8B8"},{name:"草绿",value:"#5dd39e"},{name:"棕绿",value:"#bce784"},{name:"浅绿",value:"#caffbf"},{name:"正蓝",value:"#2176ff"},{name:"蔚蓝",value:"#33a1fd"},{name:"碧蓝",value:"#008E97"},{name:"水蓝",value:"#06bee1"},{name:"浅蓝",value:"#bee9e8"},{name:"正紫",value:"#6a00f4"},{name:"绛紫",value:"#a100f2"},{name:"绯紫",value:"#d100d1"},{name:"青紫",value:"#9370DB"},{name:"淡紫",value:"#e0c3fc"}]},6219:(e,t,n)=>{"use strict";n.d(t,{m:()=>c});var o=n(5481),r=n(4984),i=n(8018),s=n(2083),a=n(7633),l=n(5483);class c extends i.e{data;get doc_mode_name(){return this.root.stats.mode_name}get meta(){return c.meta}get items(){return[...this.data.items]}get init_data(){const e=this,{root:t,tips:n}=e,{stats:r}=t;return{items:[{id:(0,o.Ak)(),class:["iconfont","icon-locate"],tooltip:"当前根•根级块总量",get text(){return`${l.QI.active_root_index}•${l.QI.count_root}`},click:(e,t)=>{}},{id:(0,o.Ak)(),class:["iconfont","icon-word"],tooltip:"字符数量",get text(){return l.QI.count_word+""},click:(e,t)=>{this.check_dom()}},{id:(0,o.Ak)(),tooltip:"正常块选区•块选区总量",get class(){const e=["iconfont","icon-scope-copy"];return l.QI.count_scope_normal>0&&e.push("has-scope"),e},get text(){return`${l.QI.count_scope_normal}•${l.QI.count_scope_all}`},click:(e,t)=>{}},{id:(0,o.Ak)(),tooltip:"撤销步数•重做步数",get class(){return["iconfont","icon-Stack"]},get text(){return`${l.QI.count_stack_undo}•${l.QI.count_stack_redo}`},click:(e,t)=>{}},{id:(0,o.Ak)(),tooltip:"文档模式",get class(){const e=["iconfont","icon-ReadingMode"];return l.QI.mode===s._NoteMode.read&&e.push("mode-reading"),e},get text(){return e.doc_mode_name},click:(t,o)=>{r.mode=r.mode===s._NoteMode.read?s._NoteMode.edit:s._NoteMode.read,n.tip_info(`当前为${e.doc_mode_name}`)}},{id:(0,o.Ak)(),tooltip:"保存状态",get class(){const e=["iconfont","icon-saved"];return l.QI.saved||e.push("notsave"),e},get text(){return l.QI.saved?"已保存":"未保存"},click:(e,t)=>{}}]}}constructor(e){super(e),this.data=(0,a.Kh)(this.init_data)}export(){}update_data(e){return e}register(e,t=-1){t>0?this.data.items.splice(t,0,e):this.data.items.push(e)}remove_item(e){const t=this.data.items.find(t=>t.id===e);if(!t)return;const n=this.data.items.indexOf(t);n>=0&&this.data.items.splice(n,1)}check_dom(){const e=document.querySelectorAll("*").length;let t=`当前dom总数${e}•${["性能优秀","性能良好","性能较好","性能一般","性能较弱","性能较差","性能堪忧"][Math.floor(e/5e3)]||""}`;this.tips.tip_red(t)}static get meta(){return{type:r.d2.statusbar,version:1}}}},6234:(e,t,n)=>{"use strict";n.d(t,{n:()=>l});var o=n(4984),r=n(8018),i=n(7633),s=n(6424),a=n(5483);class l extends r.e{data;get meta(){return l.meta}get items(){return this.data.items}constructor(e){super(e),this.data=(0,i.Kh)(this.uidata.presets)}export(){return structuredClone((0,i.ux)(this.data))}update_data(e){return e}add_item(e){this.data.items.push(e)}show_preset(){this.root.scope_count_normal>0?a.jm.show_presets=!0:this.tips.tip_warning("当前无块选区")}add_scope(e,t){if(0===this.root.scope_count_normal)return;a.jm.show_presets=!1;const n={name1:e,name2:t,data:this.root.get_scope_cubes_data()};this.add_item(n),this.root.clear_scope(),s.Q.saved=!1}static get meta(){return{type:o.d2.presets,version:1}}}},6393:(e,t,n)=>{"use strict";n.d(t,{L:()=>d});var o=n(7633),r=n(4984),i=n(8018),s=n(4110);const a=n.p+"audio/info1.mp3",l=n.p+"audio/info2.mp3",c=n.p+"audio/info3.mp3",u=n.p+"audio/warn.mp3";class d extends i.e{msgs=(0,o.Kh)(new Set);get meta(){return d.meta}constructor(e){super(e)}export(){}update_data(e){return e}add_tip(e){return this.msgs.add(e)}remove_tip(e){return this.msgs.delete(e)}tip(e){const t={msg:e.msg,id:e.id||Date.now()+this.msgs.size+"",duration:e.duration,icon:e.icon||s.$.icons.aloud,click:e.click,css:e.css||{background:"var(--statusbar-tip-default-bg)",color:"black"}};return this.add_tip(t),t.duration!==Number.POSITIVE_INFINITY&&setTimeout(()=>{this.remove_tip(t)},t.duration),()=>this.remove_tip(t)}tip_error(e,t=9e3,n){try{new Audio(u).play()}catch{}return this.tip({msg:e,duration:t,icon:s.$.icons.close,css:{background:"var(--statusbar-tip-error-bg)",color:"snow"},click:n})}tip_warning(e,t=9e3,n){try{new Audio(u).play()}catch{}return this.tip({msg:e,duration:t,icon:s.$.icons.warn,css:{background:"var(--statusbar-tip-warning-bg)",color:"black"},click:n})}tip_success(e,t=9e3,n){try{new Audio(l).play()}catch{}return this.tip({msg:e,duration:t,icon:s.$.icons.success,css:{background:"var(--statusbar-tip-success-bg)",color:"black"},click:n})}tip_info(e,t=9e3,n){try{new Audio(a).play()}catch{}return this.tip({msg:e,duration:t,icon:s.$.icons.info,click:n})}tip_bug(e,t=9e3,n){try{new Audio(u).play()}catch{}return this.tip({msg:e,duration:t,icon:s.$.icons.bug,css:{background:"var(--statusbar-tip-bug-bg)",color:"snow"},click:n})}tip_aloud(e,t=9e3,n){try{new Audio(c).play()}catch{}return this.tip({msg:e,duration:t,icon:s.$.icons.aloud,css:{background:"var(--statusbar-tip-aloud-bg)",color:"black"},click:n})}tip_red(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||s.$.icons.cherry,css:{background:"var(--statusbar-tip-red-bg)",color:"snow"},click:o})}tip_orange(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||s.$.icons.orange,css:{background:"var(--statusbar-tip-orange-bg)",color:"black"},click:o})}tip_yellow(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||s.$.icons.banana,css:{background:"var(--statusbar-tip-yellow-bg)",color:"black"},click:o})}tip_green(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||s.$.icons.melon,css:{background:"var(--statusbar-tip-green-bg)",color:"black"},click:o})}tip_blue(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||s.$.icons.berry,css:{background:"var(--statusbar-tip-blue-bg)",color:"black"},click:o})}tip_indigo(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||s.$.icons.eggplant,css:{background:"var(--statusbar-tip-indigo-bg)",color:"snow"},click:o})}tip_violet(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||s.$.icons.grape,css:{background:"var(--statusbar-tip-violet-bg)",color:"snow"},click:o})}static get meta(){return{type:r.d2.tips,version:1}}}},6424:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var o=n(7633),r=n(2083);const i=(0,o.Kh)({mode:r._NoteMode.read,count_root:1,count_word:0,count_scope_normal:0,count_scope_all:0,count_stack_undo:0,count_stack_redo:0,active_root_index:1,anchor_root_id:"",note_recording:!1,note_showing:!1,note_composition_input:!1,fold_sidebar:!1,fold_toolbar:!1,saved:!0,dict_open:!1})},6941:function(e){e.exports=function(){"use strict";return function(e,t,n){var o=t.prototype,r=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,o,i){var s=e.name?e:e.$locale(),a=r(s[t]),l=r(s[n]),c=a||l.map(function(e){return e.slice(0,o)});if(!i)return c;var u=s.weekStart;return c.map(function(e,t){return c[(t+(u||0))%7]})},s=function(){return n.Ls[n.locale()]},a=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return a(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=s();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return a(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(s(),"months")},n.monthsShort=function(){return i(s(),"monthsShort","months",3)},n.weekdays=function(e){return i(s(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(s(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(s(),"weekdaysMin","weekdays",2,e)}}}()},6960:(e,t)=>{"use strict";t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n}},7020:(e,t,n)=>{"use strict";n.d(t,{U:()=>R});var o=n(4984),r=n(1778),i=n(2808),s=n(9562),a=n(2176),l=n(3890),c=n(6234),u=n(7850),d=n(1050),p=n(6219),h=n(7333),f=n(3539),m=n(5450),v=n(5347),g=n(7999),b=n(1276),_=n(1685),y=n(9029),x=n(2459),w=n(5037),k=n(2083);class R{static get uidata(){return{versions:this.versions,config:this.config,catalogue:this.catalogue,dict:this.dict,fomula:this.fomula,hotkeys:this.hotkeys,presets:this.presets,theme:this.theme,memory:this.memory}}static get versions(){return{ai:h.b.meta.version,config:r.X.meta.version,catalogue:i.a.meta.version,convertors:m.i.meta.version,dict:s.J.meta.version,dialog:v.b.meta.version,event:b.D.meta.version,editor:x.O.meta.version,fomula:a.t.meta.version,hotkeys:y.w.meta.version,menubar:l.Z.meta.version,memory:w.U.meta.version,presets:c.n.meta.version,statusbar:p.m.meta.version,sidebar:u.H.meta.version,search:g.F.meta.version,toolbar:d.q.meta.version,theme:f._.meta.version,tips:_.L.meta.version}}static get memory(){return{location:void 0}}static get theme(){return{background:{active:"",filters:{}},theme:{name:"",path:""}}}static get catalogue(){return{group:[]}}static get dict(){return{keywords:[],maps:[]}}static get config(){return{text_transition:!0,text_fontsize:16,text_family:'"Comic Sans MS"',history_length:-1,line_indent:40,player_speed:100,input_quick_prefix:"/",dict_candidate_open:!1,dict_export_candidate_len:9,dict_tip_association:!0,dict_tip_keywords:!1,sidebar_panel_width:400,revert_scope:!1,code_theme:"dracula",scroll_distance:20,toolbar_blacklist:[o.lb.compose,o.lb.speak,o.lb.format_brush,o.lb.fomula,o.lb.bookmark,o.lb.emphasis,o.lb.indent,o.lb.history,o.lb.align,o.lb.write_mode,o.lb.border,o.lb.annotation,o.lb.bold_italic,o.lb.paste,o.lb.spacing,o.lb.underline,o.lb.rt],map_node_hgap:40,map_node_vgap:40,map_node_padding:4,map_node_max_width:800,map_node_exit_by_esc:!0,map_scale_max:5,map_scale_min:.1,map_scale_step:.1,map_linker_anchor_left:k._LinkerAnchor.point,map_linker_anchor_right:k._LinkerAnchor.arrow,map_linker_line:"line",map_linker_stroke:"black",map_linker_stroke_width:2,map_perf:!0}}static get fomula(){return{}}static get hotkeys(){return k.NoteHotkeys.default_hotkeys}static get presets(){return{items:[]}}}},7333:(e,t,n)=>{"use strict";n.d(t,{b:()=>l});var o=n(7633),r=n(8418),i=n(4984),s=n(8018),a=n(4953);class l extends s.e{_going=(0,o.KR)(!1);dialogs=(0,o.Gc)([]);get component(){return r.A}get going(){return this._going.value}set going(e){this._going.value=e}ask(e){const t=a.z.api_ask_ai;if(!t)return this.tips.tip_red("未注册API-多轮对话");t(e)}get separators(){return["table","code","heading","hr","html","image","list"]}get meta(){return l.meta}constructor(e){super(e)}export(){return{}}update_data(){return{}}static get meta(){return{type:i.d2.ai,version:1}}}},7633:(e,t,n)=>{"use strict";n.d(t,{C4:()=>S,EW:()=>Ke,Gc:()=>me,IG:()=>ke,IJ:()=>Me,KR:()=>Ee,Kh:()=>fe,Pr:()=>Be,QW:()=>$e,R1:()=>Oe,Tm:()=>_e,X2:()=>d,a1:()=>Ce,bl:()=>E,fE:()=>ye,g8:()=>be,hV:()=>qe,hZ:()=>z,i9:()=>Se,jr:()=>c,ju:()=>xe,lJ:()=>Re,lW:()=>Fe,mu:()=>Ie,o5:()=>l,qA:()=>F,rY:()=>We,tB:()=>ve,u4:()=>$,uY:()=>a,ux:()=>we,wB:()=>Ge,yC:()=>s});var o=n(3972);let r,i;class s{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=r,!e&&r&&(this.index=(r.scopes||(r.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=r;try{return r=this,e()}finally{r=t}}}on(){1===++this._on&&(this.prevScope=r,r=this)}off(){this._on>0&&0===--this._on&&(r=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function a(e){return new s(e)}function l(){return r}function c(e,t=!1){r&&r.cleanups.push(e)}const u=new WeakSet;class d{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,r&&r.active&&r.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,u.has(this)&&(u.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||m(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,M(this),b(this);const e=i,t=R;i=this,R=!0;try{return this.fn()}finally{_(this),i=e,R=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)w(e);this.deps=this.depsTail=void 0,M(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?u.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){y(this)&&this.run()}get dirty(){return y(this)}}let p,h,f=0;function m(e,t=!1){if(e.flags|=8,t)return e.next=h,void(h=e);e.next=p,p=e}function v(){f++}function g(){if(--f>0)return;if(h){let e=h;for(h=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;p;){let t=p;for(p=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function b(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function _(e){let t,n=e.depsTail,o=n;for(;o;){const e=o.prevDep;-1===o.version?(o===n&&(n=e),w(o),k(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=e}e.deps=t,e.depsTail=n}function y(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(x(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function x(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===T)return;if(e.globalVersion=T,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!y(e)))return;e.flags|=2;const t=e.dep,n=i,r=R;i=e,R=!0;try{b(e);const n=e.fn(e._value);(0===t.version||(0,o.$H)(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{i=n,R=r,_(e),e.flags&=-3}}function w(e,t=!1){const{dep:n,prevSub:o,nextSub:r}=e;if(o&&(o.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)w(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function k(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let R=!0;const C=[];function S(){C.push(R),R=!1}function E(){const e=C.pop();R=void 0===e||e}function M(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=i;i=void 0;try{t()}finally{i=e}}}let T=0;class L{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class I{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!i||!R||i===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==i)t=this.activeLink=new L(i,this),i.deps?(t.prevDep=i.depsTail,i.depsTail.nextDep=t,i.depsTail=t):i.deps=i.depsTail=t,O(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=i.depsTail,t.nextDep=void 0,i.depsTail.nextDep=t,i.depsTail=t,i.deps===t&&(i.deps=e)}return t}trigger(e){this.version++,T++,this.notify(e)}notify(e){v();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{g()}}}function O(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)O(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const A=new WeakMap,B=Symbol(""),N=Symbol(""),W=Symbol("");function $(e,t,n){if(R&&i){let t=A.get(e);t||A.set(e,t=new Map);let o=t.get(n);o||(t.set(n,o=new I),o.map=t,o.key=n),o.track()}}function z(e,t,n,r,i,s){const a=A.get(e);if(!a)return void T++;const l=e=>{e&&e.trigger()};if(v(),"clear"===t)a.forEach(l);else{const i=(0,o.cy)(e),s=i&&(0,o.yI)(n);if(i&&"length"===n){const e=Number(r);a.forEach((t,n)=>{("length"===n||n===W||!(0,o.Bm)(n)&&n>=e)&&l(t)})}else switch((void 0!==n||a.has(void 0))&&l(a.get(n)),s&&l(a.get(W)),t){case"add":i?s&&l(a.get("length")):(l(a.get(B)),(0,o.CE)(e)&&l(a.get(N)));break;case"delete":i||(l(a.get(B)),(0,o.CE)(e)&&l(a.get(N)));break;case"set":(0,o.CE)(e)&&l(a.get(B))}}g()}function P(e){const t=we(e);return t===e?t:($(t,0,W),ye(e)?t:t.map(Re))}function F(e){return $(e=we(e),0,W),e}const D={__proto__:null,[Symbol.iterator](){return V(this,Symbol.iterator,Re)},concat(...e){return P(this).concat(...e.map(e=>(0,o.cy)(e)?P(e):e))},entries(){return V(this,"entries",e=>(e[1]=Re(e[1]),e))},every(e,t){return j(this,"every",e,t,void 0,arguments)},filter(e,t){return j(this,"filter",e,t,e=>e.map(Re),arguments)},find(e,t){return j(this,"find",e,t,Re,arguments)},findIndex(e,t){return j(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return j(this,"findLast",e,t,Re,arguments)},findLastIndex(e,t){return j(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return j(this,"forEach",e,t,void 0,arguments)},includes(...e){return H(this,"includes",e)},indexOf(...e){return H(this,"indexOf",e)},join(e){return P(this).join(e)},lastIndexOf(...e){return H(this,"lastIndexOf",e)},map(e,t){return j(this,"map",e,t,void 0,arguments)},pop(){return G(this,"pop")},push(...e){return G(this,"push",e)},reduce(e,...t){return X(this,"reduce",e,t)},reduceRight(e,...t){return X(this,"reduceRight",e,t)},shift(){return G(this,"shift")},some(e,t){return j(this,"some",e,t,void 0,arguments)},splice(...e){return G(this,"splice",e)},toReversed(){return P(this).toReversed()},toSorted(e){return P(this).toSorted(e)},toSpliced(...e){return P(this).toSpliced(...e)},unshift(...e){return G(this,"unshift",e)},values(){return V(this,"values",Re)}};function V(e,t,n){const o=F(e),r=o[t]();return o===e||ye(e)||(r._next=r.next,r.next=()=>{const e=r._next();return e.value&&(e.value=n(e.value)),e}),r}const K=Array.prototype;function j(e,t,n,o,r,i){const s=F(e),a=s!==e&&!ye(e),l=s[t];if(l!==K[t]){const t=l.apply(e,i);return a?Re(t):t}let c=n;s!==e&&(a?c=function(t,o){return n.call(this,Re(t),o,e)}:n.length>2&&(c=function(t,o){return n.call(this,t,o,e)}));const u=l.call(s,c,o);return a&&r?r(u):u}function X(e,t,n,o){const r=F(e);let i=n;return r!==e&&(ye(e)?n.length>3&&(i=function(t,o,r){return n.call(this,t,o,r,e)}):i=function(t,o,r){return n.call(this,t,Re(o),r,e)}),r[t](i,...o)}function H(e,t,n){const o=we(e);$(o,0,W);const r=o[t](...n);return-1!==r&&!1!==r||!xe(n[0])?r:(n[0]=we(n[0]),o[t](...n))}function G(e,t,n=[]){S(),v();const o=we(e)[t].apply(e,n);return g(),E(),o}const q=(0,o.pD)("__proto__,__v_isRef,__isVue"),U=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(o.Bm));function Q(e){(0,o.Bm)(e)||(e=String(e));const t=we(this);return $(t,0,e),t.hasOwnProperty(e)}class Y{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const r=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(r?i?he:pe:i?de:ue).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=(0,o.cy)(e);if(!r){let e;if(s&&(e=D[t]))return e;if("hasOwnProperty"===t)return Q}const a=Reflect.get(e,t,Se(e)?e:n);return((0,o.Bm)(t)?U.has(t):q(t))?a:(r||$(e,0,t),i?a:Se(a)?s&&(0,o.yI)(t)?a:a.value:(0,o.Gv)(a)?r?ve(a):fe(a):a)}}class Z extends Y{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];if(!this._isShallow){const t=_e(i);if(ye(n)||_e(n)||(i=we(i),n=we(n)),!(0,o.cy)(e)&&Se(i)&&!Se(n))return t||(i.value=n),!0}const s=(0,o.cy)(e)&&(0,o.yI)(t)?Number(t)<e.length:(0,o.$3)(e,t),a=Reflect.set(e,t,n,Se(e)?e:r);return e===we(r)&&(s?(0,o.$H)(n,i)&&z(e,"set",t,n):z(e,"add",t,n)),a}deleteProperty(e,t){const n=(0,o.$3)(e,t),r=(e[t],Reflect.deleteProperty(e,t));return r&&n&&z(e,"delete",t,void 0),r}has(e,t){const n=Reflect.has(e,t);return(0,o.Bm)(t)&&U.has(t)||$(e,0,t),n}ownKeys(e){return $(e,0,(0,o.cy)(e)?"length":B),Reflect.ownKeys(e)}}class J extends Y{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const ee=new Z,te=new J,ne=new Z(!0),oe=e=>e,re=e=>Reflect.getPrototypeOf(e);function ie(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function se(e,t){const n=function(e,t){const n={get(n){const r=this.__v_raw,i=we(r),s=we(n);e||((0,o.$H)(n,s)&&$(i,0,n),$(i,0,s));const{has:a}=re(i),l=t?oe:e?Ce:Re;return a.call(i,n)?l(r.get(n)):a.call(i,s)?l(r.get(s)):void(r!==i&&r.get(n))},get size(){const t=this.__v_raw;return!e&&$(we(t),0,B),t.size},has(t){const n=this.__v_raw,r=we(n),i=we(t);return e||((0,o.$H)(t,i)&&$(r,0,t),$(r,0,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,o){const r=this,i=r.__v_raw,s=we(i),a=t?oe:e?Ce:Re;return!e&&$(s,0,B),i.forEach((e,t)=>n.call(o,a(e),a(t),r))}};return(0,o.X$)(n,e?{add:ie("add"),set:ie("set"),delete:ie("delete"),clear:ie("clear")}:{add(e){t||ye(e)||_e(e)||(e=we(e));const n=we(this);return re(n).has.call(n,e)||(n.add(e),z(n,"add",e,e)),this},set(e,n){t||ye(n)||_e(n)||(n=we(n));const r=we(this),{has:i,get:s}=re(r);let a=i.call(r,e);a||(e=we(e),a=i.call(r,e));const l=s.call(r,e);return r.set(e,n),a?(0,o.$H)(n,l)&&z(r,"set",e,n):z(r,"add",e,n),this},delete(e){const t=we(this),{has:n,get:o}=re(t);let r=n.call(t,e);r||(e=we(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&z(t,"delete",e,void 0),i},clear(){const e=we(this),t=0!==e.size,n=e.clear();return t&&z(e,"clear",void 0,void 0),n}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=function(e,t,n){return function(...r){const i=this.__v_raw,s=we(i),a=(0,o.CE)(s),l="entries"===e||e===Symbol.iterator&&a,c="keys"===e&&a,u=i[e](...r),d=n?oe:t?Ce:Re;return!t&&$(s,0,c?N:B),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}(r,e,t)}),n}(e,t);return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get((0,o.$3)(n,r)&&r in t?n:t,r,i)}const ae={get:se(!1,!1)},le={get:se(!1,!0)},ce={get:se(!0,!1)},ue=new WeakMap,de=new WeakMap,pe=new WeakMap,he=new WeakMap;function fe(e){return _e(e)?e:ge(e,!1,ee,ae,ue)}function me(e){return ge(e,!1,ne,le,de)}function ve(e){return ge(e,!0,te,ce,pe)}function ge(e,t,n,r,i){if(!(0,o.Gv)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((0,o.Zf)(a));var a;if(0===s)return e;const l=i.get(e);if(l)return l;const c=new Proxy(e,2===s?r:n);return i.set(e,c),c}function be(e){return _e(e)?be(e.__v_raw):!(!e||!e.__v_isReactive)}function _e(e){return!(!e||!e.__v_isReadonly)}function ye(e){return!(!e||!e.__v_isShallow)}function xe(e){return!!e&&!!e.__v_raw}function we(e){const t=e&&e.__v_raw;return t?we(t):e}function ke(e){return!(0,o.$3)(e,"__v_skip")&&Object.isExtensible(e)&&(0,o.yQ)(e,"__v_skip",!0),e}const Re=e=>(0,o.Gv)(e)?fe(e):e,Ce=e=>(0,o.Gv)(e)?ve(e):e;function Se(e){return!!e&&!0===e.__v_isRef}function Ee(e){return Te(e,!1)}function Me(e){return Te(e,!0)}function Te(e,t){return Se(e)?e:new Le(e,t)}class Le{constructor(e,t){this.dep=new I,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:we(e),this._value=t?e:Re(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||ye(e)||_e(e);e=n?e:we(e),(0,o.$H)(e,t)&&(this._rawValue=e,this._value=n?e:Re(e),this.dep.trigger())}}function Ie(e){e.dep&&e.dep.trigger()}function Oe(e){return Se(e)?e.value:e}const Ae={get:(e,t,n)=>"__v_raw"===t?e:Oe(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Se(r)&&!Se(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Be(e){return be(e)?e:new Proxy(e,Ae)}class Ne{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new I,{get:n,set:o}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=o}get value(){return this._value=this._get()}set value(e){this._set(e)}}function We(e){return new Ne(e)}function $e(e){const t=(0,o.cy)(e)?new Array(e.length):{};for(const n in e)t[n]=De(e,n);return t}class ze{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=A.get(e);return n&&n.get(t)}(we(this._object),this._key)}}class Pe{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Fe(e,t,n){return Se(e)?e:(0,o.Tn)(e)?new Pe(e):(0,o.Gv)(e)&&arguments.length>1?De(e,t,n):Ee(e)}function De(e,t,n){const o=e[t];return Se(o)?o:new ze(e,t,n)}class Ve{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new I(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=T-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||i===this))return m(this,!0),!0}get value(){const e=this.dep.track();return x(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ke(e,t,n=!1){let r,i;return(0,o.Tn)(e)?r=e:(r=e.get,i=e.set),new Ve(r,i,n)}const je={},Xe=new WeakMap;let He;function Ge(e,t,n=o.MZ){const{immediate:r,deep:i,once:s,scheduler:a,augmentJob:c,call:u}=n,p=e=>i?e:ye(e)||!1===i||0===i?qe(e,1):qe(e);let h,f,m,v,g=!1,b=!1;if(Se(e)?(f=()=>e.value,g=ye(e)):be(e)?(f=()=>p(e),g=!0):(0,o.cy)(e)?(b=!0,g=e.some(e=>be(e)||ye(e)),f=()=>e.map(e=>Se(e)?e.value:be(e)?p(e):(0,o.Tn)(e)?u?u(e,2):e():void 0)):f=(0,o.Tn)(e)?t?u?()=>u(e,2):e:()=>{if(m){S();try{m()}finally{E()}}const t=He;He=h;try{return u?u(e,3,[v]):e(v)}finally{He=t}}:o.tE,t&&i){const e=f,t=!0===i?1/0:i;f=()=>qe(e(),t)}const _=l(),y=()=>{h.stop(),_&&_.active&&(0,o.TF)(_.effects,h)};if(s&&t){const e=t;t=(...t)=>{e(...t),y()}}let x=b?new Array(e.length).fill(je):je;const w=e=>{if(1&h.flags&&(h.dirty||e))if(t){const e=h.run();if(i||g||(b?e.some((e,t)=>(0,o.$H)(e,x[t])):(0,o.$H)(e,x))){m&&m();const n=He;He=h;try{const n=[e,x===je?void 0:b&&x[0]===je?[]:x,v];x=e,u?u(t,3,n):t(...n)}finally{He=n}}}else h.run()};return c&&c(w),h=new d(f),h.scheduler=a?()=>a(w,!1):w,v=e=>function(e,t=!1,n=He){if(n){let t=Xe.get(n);t||Xe.set(n,t=[]),t.push(e)}}(e,!1,h),m=h.onStop=()=>{const e=Xe.get(h);if(e){if(u)u(e,4);else for(const t of e)t();Xe.delete(h)}},t?r?w(!0):x=h.run():a?a(w.bind(null,!0),!0):h.run(),y.pause=h.pause.bind(h),y.resume=h.resume.bind(h),y.stop=y,y}function qe(e,t=1/0,n){if(t<=0||!(0,o.Gv)(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,Se(e))qe(e.value,t,n);else if((0,o.cy)(e))for(let o=0;o<e.length;o++)qe(e[o],t,n);else if((0,o.vM)(e)||(0,o.CE)(e))e.forEach(e=>{qe(e,t,n)});else if((0,o.Qd)(e)){for(const o in e)qe(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&qe(e[o],t,n)}return e}},7850:(e,t,n)=>{"use strict";n.d(t,{H:()=>s});var o=n(8018),r=n(4984),i=n(3709);class s extends o.e{get meta(){return s.meta}constructor(e){super(e)}export(){return{}}update_data(e){return e}shrink(){i.p.open=!1}show_item(e){i.p.open=!0,i.p.active=e}static get meta(){return{type:r.d2.sidebar,version:1}}}},7925:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o.Z});var o=n(3890)},7999:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var o=n(2083),r=n(4984),i=n(8018);class s extends i.e{get meta(){return s.meta}constructor(e){super(e)}update_data(e){return e}find_text(e){if(!e)return this.tips.tip_warning("搜索词不可为空"),[];const t=[],n=this.root.cubes.get_types_cube(o._NoteCubeTypes.text);for(let r of n.values())r instanceof o.CubeText&&r.text.includes(e)&&t.push(r);return 0===t.length&&this.tips.tip_aloud("搜索结果为空"),t}export(){}static get meta(){return{type:r.d2.search,version:1}}}},8018:(e,t,n)=>{"use strict";n.d(t,{e:()=>o});class o{_editor;get editor(){return this._editor}get root(){return this._editor.root}get uidata(){return this.editor.uidata}get ai(){return this.editor.ai}get catalogue(){return this.editor.catalogue}get theme(){return this.editor.theme}get listener(){return this.editor.listener}get tips(){return this.editor.tips}get float(){return this.editor.float}get search(){return this.editor.search}get event(){return this.editor.event}get config(){return this.editor.config}get dict(){return this.editor.dict}get fomula(){return this.editor.fomula}get hotkeys(){return this.editor.hotkeys}get presets(){return this.editor.presets}get menubar(){return this.editor.menubar}get sidebar(){return this.editor.sidebar}get toolbar(){return this.editor.toolbar}get statusbar(){return this.editor.statusbar}get convertors(){return this.editor.convertors}get versions(){return this.uidata.versions}constructor(e){this._editor=e}}},8162:function(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,o=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return o.bind(this)(e);var r=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return r.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return r.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return r.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return o.bind(this)(i)}}}()},8205:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});class o{_editor;_env;get editor(){return this._editor}get root(){return this.editor.root}get env(){return this._env}constructor(e,t){this._env=t,this._editor=e}}},8418:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var o=n(4089),r=n(7633),i=n(3972),s=n(1690);const a={class:"ui-ai"},l={class:"sidebar-panel-toolbox"},c={class:"tools-icon"},u={class:"ai-dialogs-box"},d={class:"dialog-content"},p={key:0,class:"question"},h={class:"content"},f={key:1,class:"reply"},m={class:"content"},v={class:"send-box"},g={class:"input-box"},b=["placeholder"],_=(0,o.pM)({__name:"ui-ai",props:{editor:{}},setup(e){const{ai:t,root:n,tips:_}=e.editor,{sidebar:y,dialogs:x,statusbar:w}=t,k=(0,r.Kh)({question:""}),R=(0,r.KR)();async function C(){if(t.going)return _.tip_aloud("请等待回复完成");if(!k.question)return;const e=k.question;k.question="",await t.ask(e)}async function S(){t.dialogs.length=0}function E(e){"Enter"===e.key&&C()}function M(){const e=R.value;e&&(e.value="")}return(e,n)=>((0,o.uX)(),(0,o.CE)("div",a,[(0,o.Lk)("div",l,[n[2]||(n[2]=(0,o.Lk)("div",null,null,-1)),(0,o.Lk)("div",c,[(0,o.Lk)("div",{class:"iconfont icon-reset_defalut",title:"重置对话",onClick:S}),(0,o.Lk)("div",{class:"iconfont icon-arrowleftcircle1187576easyiconnet",title:"折叠侧边栏",onClick:n[0]||(n[0]=(...e)=>(0,r.R1)(y).shrink&&(0,r.R1)(y).shrink(...e))})])]),(0,o.Lk)("div",u,[(0,o.Lk)("div",d,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)((0,r.R1)(x),e=>((0,o.uX)(),(0,o.CE)(o.FK,{key:e.content},["user"===e.role?((0,o.uX)(),(0,o.CE)("div",p,[(0,o.Lk)("div",h,(0,i.v_)(e.content),1),n[3]||(n[3]=(0,o.Lk)("div",{class:"iconfont icon-Bug"},null,-1))])):((0,o.uX)(),(0,o.CE)("div",f,[n[4]||(n[4]=(0,o.Lk)("div",{class:"iconfont icon-scatter"},null,-1)),(0,o.Lk)("div",m,"已回复:"+(0,i.v_)(e.content.length)+"字",1)]))],64))),128))]),(0,o.Lk)("div",v,[(0,o.Lk)("div",g,[(0,o.Lk)("div",{class:"tools"},[(0,o.Lk)("div",{class:"iconfont icon-Delete",title:"清空",onClick:M}),(0,o.Lk)("div",{class:"iconfont icon-planeo",title:"发送",onClick:C})]),(0,o.bo)((0,o.Lk)("textarea",{ref_key:"textarea",ref:R,type:"text","onUpdate:modelValue":n[1]||(n[1]=e=>k.question=e),placeholder:(0,r.R1)(t).going?"回复中...":"请输入问题",onKeydown:E},null,40,b),[[s.Jo,k.question]])])])])]))}}),y=(0,n(6960).A)(_,[["__scopeId","data-v-375bcd28"]])},8736:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}()},9029:(e,t,n)=>{"use strict";n.d(t,{w:()=>d});var o=n(4984),r=n(8018),i=n(5483),s=n(2083),a=n(1068);function l(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}const c=new Map;function u(e){return(t,n)=>{let o=t[n];c.set(e,o)}}class d extends r.e{get meta(){return d.meta}constructor(e){super(e),this.init(),this.reset()}reset(e){const t=d.default_hotkeys,n=s.NoteHotkeys.default_hotkeys,o=Object.assign({},n,t);if(e){const t=Object.assign({},o,e);this.root.hotkeys.reset(t)}else this.root.hotkeys.reset(o)}update_data(e){if(this.versions.hotkeys<2){const t=s.NoteHotkeys.default_hotkeys;for(let n in t){const o=t[n];if(o)for(let t in e){const n=e[t];n&&n.name===o.name&&(n.cursor=o.cursor)}}}return e}init(){const e=d.default_hotkeys;for(let[t,n]of c){const o=e[t];if(!o)continue;const r=n.bind(this);this.root.hotkeys.register(r,o)}}register(e,t){this.root.hotkeys.register(e,t)}export(){return this.root.hotkeys.export()}validate(e,t){return t.meta===e.metaKey&&t.alt===e.altKey&&t.shift===e.shiftKey&&t.ctrl===e.ctrlKey&&(0===t.key.length||t.key.includes(e.key.toLocaleLowerCase()))}which(e){const t=this.root.hotkeys.data;for(let n of Object.values(t))if(this.validate(e,n))return n}validate_hotkeys(e){const t=this.root.hotkeys.data;for(let n of Object.values(t))if(this.validate(e,n))return!0;return!1}get_hotkey_str(e){return this.root.hotkeys.get_hotkey_str(e)}add_bookmark(e){e.preventDefault(),this.catalogue.show_bookmark()}fontsize_up(e){e.preventDefault(),this.toolbar.fontsize_change("up")}fontsize_down(e){e.preventDefault(),this.toolbar.fontsize_change("down")}link(e){e.preventDefault(),this.float.add_text_link()}search_doc(e){e.preventDefault(),this.sidebar.show_item("search")}show_fomula_editor(e){e.preventDefault();const{cursor:t}=this.root;if(t.has_selection)this.float.convert_latex_text();else{if(i.wF.show)return i.wF.show=!1;this.float.show_fomula()}}show_cubelist(e){e.preventDefault();const{cursor:t}=this.root;i.bK.show=!i.bK.show;const n=s.NoteManager.metas_cube.values();i.bK.cubelist=[...n].filter(e=>e.show),i.bK.search="";const o=t.client_rect,r={x:0,y:0,width:window.innerWidth,height:window.innerHeight},l=i.bK.size;if(o){const e=a.MathRect.move_rect_to_other(r,l,o);i.bK.css={left:e.x+"px",top:e.y+"px"}}}paste_md(e){e.preventDefault(),this.editor.toolbar.paste_md()}static get default_hotkeys(){return{[o.l1["bookmark-add"]]:{name:o.l1["bookmark-add"],show:!0,meta:!1,shift:!1,alt:!0,ctrl:!1,key:["a"],cursor:!0,group:s._HotKeysGroup.bookmark},[o.l1["float-cubelist"]]:{name:o.l1["float-cubelist"],show:!0,meta:!1,shift:!1,alt:!0,ctrl:!1,key:["q"],cursor:!0,group:s._HotKeysGroup.float},[o.l1["float-fomula"]]:{name:o.l1["float-fomula"],show:!0,meta:!1,shift:!1,alt:!0,ctrl:!1,key:["f"],cursor:!0,group:s._HotKeysGroup.float},[o.l1["fontsize-down"]]:{name:o.l1["fontsize-down"],show:!0,meta:!1,shift:!0,alt:!1,ctrl:!0,key:["<"],cursor:!0,group:s._HotKeysGroup.text},[o.l1["fontsize-up"]]:{name:o.l1["fontsize-up"],show:!0,meta:!1,shift:!0,alt:!1,ctrl:!0,key:[">"],cursor:!0,group:s._HotKeysGroup.text},[o.l1["search-doc"]]:{name:o.l1["search-doc"],show:!0,meta:!1,shift:!1,alt:!1,ctrl:!0,key:["f"],group:s._HotKeysGroup.search},[o.l1["text-add-link"]]:{name:o.l1["text-add-link"],show:!0,meta:!1,shift:!0,alt:!1,ctrl:!0,key:["l"],cursor:!0,group:s._HotKeysGroup.text},[o.l1["paste-md"]]:{name:o.l1["paste-md"],show:!0,meta:!1,shift:!1,alt:!1,ctrl:!0,key:["-"],cursor:!0,group:s._HotKeysGroup.other}}}static get meta(){return{type:o.d2.hotkeys,version:2}}}l([u(o.l1["bookmark-add"])],d.prototype,"add_bookmark",null),l([u(o.l1["fontsize-up"])],d.prototype,"fontsize_up",null),l([u(o.l1["fontsize-down"])],d.prototype,"fontsize_down",null),l([u(o.l1["text-add-link"])],d.prototype,"link",null),l([u(o.l1["search-doc"])],d.prototype,"search_doc",null),l([u(o.l1["float-fomula"])],d.prototype,"show_fomula_editor",null),l([u(o.l1["float-cubelist"])],d.prototype,"show_cubelist",null),l([u(o.l1["paste-md"])],d.prototype,"paste_md",null)},9166:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,o=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},a=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,o=s.meridiem;if(o){for(var r=1;r<=24;r+=1)if(e.indexOf(o(r,0,t))>-1){n=r>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[o,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[o,l("day")],Do:[i,function(e){var t=s.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var o=1;o<=31;o+=1)t(o).replace(/\[|\]/g,"")===e&&(this.day=o)}],w:[r,l("week")],ww:[o,l("week")],M:[r,l("month")],MM:[o,l("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[o,function(e){this.year=a(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function h(n){var o,r;o=n,r=s&&s.formats;for(var i=(n=o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,o){var i=o&&o.toUpperCase();return n||r[o]||e[o]||r[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),a=i.length,l=0;l<a;l+=1){var c=i[l],u=p[c],d=u&&u[0],h=u&&u[1];i[l]=h?{regex:d,parser:h}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,o=0;n<a;n+=1){var r=i[n];if("string"==typeof r)o+=r.length;else{var s=r.regex,l=r.parser,c=e.slice(o),u=s.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var o=t.prototype,r=o.parse;o.parse=function(e){var t=e.date,o=e.utc,i=e.args;this.$u=o;var a=i[1];if("string"==typeof a){var l=!0===i[2],c=!0===i[3],u=l||c,d=i[2];c&&(d=i[2]),s=this.$locale(),!l&&d&&(s=n.Ls[d]),this.$d=function(e,t,n,o){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=h(t)(e),i=r.year,s=r.month,a=r.day,l=r.hours,c=r.minutes,u=r.seconds,d=r.milliseconds,p=r.zone,f=r.week,m=new Date,v=a||(i||s?1:m.getDate()),g=i||m.getFullYear(),b=0;i&&!s||(b=s>0?s-1:m.getMonth());var _,y=l||0,x=c||0,w=u||0,k=d||0;return p?new Date(Date.UTC(g,b,v,y,x,w,k+60*p.offset*1e3)):n?new Date(Date.UTC(g,b,v,y,x,w,k)):(_=new Date(g,b,v,y,x,w,k),f&&(_=o(_).week(f).toDate()),_)}catch(e){return new Date("")}}(t,a,o,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),s={}}else if(a instanceof Array)for(var p=a.length,f=1;f<=p;f+=1){i[1]=a[f-1];var m=n.apply(this,i);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}f===p&&(this.$d=new Date(""))}else r.call(this,e)}}}()},9444:(e,t,n)=>{"use strict";n.d(t,{a:()=>o.a});var o=n(2808)},9562:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});var o=n(4984),r=n(4953),i=n(8018),s=n(5483);class a extends i.e{_count=0;_regexp_quick=/\w+\d*$/;keywords=new Map;maps=new Map;get meta(){return a.meta}constructor(e){super(e),this.load(this.uidata.dict),this._count=this.maps.size+this.keywords.size}async parse_keyword(e){const t=r.z.api_parse_keyword;return t?await t(e)||"":this.tips.tip_error("未注册API-关键词分析")}async parse_associations(e){const t=r.z.api_parse_association;return t?await t(e)||[]:this.tips.tip_error("未注册API-关联词分析")}get_candidate(e){if(!this.config.data.dict_candidate_open)return s.ks.show=!1,[];const t=[];if(this.config.data.dict_tip_keywords)for(let[n,o]of this.keywords)n.startsWith(e)&&t.push(...o);if(this.config.data.dict_tip_association){const n=this.maps.get(e);n&&t.push(...n)}return this.sort_words(t),t}load(e){const t=this.editor.tips;t.tip_green("正在加载字典...");const n=this.update_data(e);for(let e of n.keywords){const t=this.keywords.get(e.code);t?t.push(e):this.keywords.set(e.code,[e])}for(let e of n.maps)this.maps.set(e.word,e.list);t.tip_success("字典加载完成")}export(){const{config:e}=this,t=[];for(let[n,o]of this.maps)t.push({word:n,list:o.slice(0,e.data.dict_export_candidate_len)});const n=[];for(let[e,t]of this.keywords)n.push(...t);return{keywords:n,maps:t}}update_data(e){let t=e;if(!this.uidata.versions||this.uidata.versions.dict<2){t.keywords||(t.keywords=[]);for(let e of t.maps)for(let t of e.list)t.type=o.oE.associate}return t}add_association(e,t){const n=e.trim(),r=t,i=this.maps.get(n);if(i){const e=i.find(e=>e.word===r);e?e.count++:(i.push({type:o.oE.associate,word:r,count:1}),this.sort_words(i))}else this.maps.set(n,[{type:o.oE.associate,word:r,count:1}])}add_associations(e){if(e.length<2)return;const t=[];let n="",o=[" ",".","-"];for(let r of e)o.includes(r)?n=r:(t.push(n+r),n="");for(let e=0;e<t.length-1;e++)this.add_association(t[e],t[e+1])}add_keyword(e,t){if(!this._regexp_quick.test(t))return;const n=this.keywords.get(t),r=n?.find(t=>t.word===e);if(r)r.count++;else{const r={type:o.oE.keyword,word:e,count:1,code:t};n?n.push(r):this.keywords.set(t,[r])}}sort_words(e){return e.sort((e,t)=>t.count-e.count)}find_quick(e){const t=e.trimEnd();return t.match(this._regexp_quick)?.[0]}remove_quick(e){const t=this.find_quick(e);return t?e.slice(0,e.length-t.length):e}static get meta(){return{type:o.d2.dict,version:1}}}},9899:(e,t,n)=>{"use strict";n.d(t,{$:()=>o.$});var o=n(4110)}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();var o={};return(()=>{"use strict";n.r(o),n.d(o,{StatusCatalogue:()=>L.c1,StatusDialog:()=>L.jm,StatusEditor:()=>L.QI,StatusHotkeys:()=>L.I_,StatusPresets:()=>L.bl,StatusSidebar:()=>L.pw,StatusStatusbar:()=>L.A0,StatusToolbar:()=>L.SH,ToolBase:()=>M.Y,UIAi:()=>a.b,UIApi:()=>l.z,UIBase:()=>s.e,UICatalogue:()=>c.a,UIConfig:()=>u.X,UIConvertors:()=>d.i,UIDefault:()=>i.U,UIDialog:()=>p.b,UIDict:()=>h.J,UIEditor:()=>R.O,UIEvent:()=>f.D,UIFloat:()=>m.z,UIFomula:()=>v.t,UIHotkeys:()=>g.w,UIIcons:()=>b.$,UIListener:()=>I.d,UIMenubar:()=>C.Z,UIMod:()=>k.J,UIPresets:()=>_.n,UISearch:()=>y.F,UISidebar:()=>S.H,UIStatusbar:()=>E.m,UITheme:()=>x._,UITips:()=>w.L,UIToolbar:()=>M.q,UITools:()=>T.E,_DictWordType:()=>r.oE,_FloatType:()=>r.I7,_FomulaType:()=>r.UF,_MenubarItemType:()=>r.zX,_ToolName:()=>r.lb,_UICatalogueMode:()=>r.U_,_UIEventType:()=>r.GC,_UIHotkeyTypes:()=>r.l1,_UIPart:()=>r.d2,float_cubelist:()=>L.bK,float_dict:()=>L.ks,float_dict_adder:()=>L.$3,float_fomula:()=>L.wF,float_link_ask:()=>L.yg,float_link_edit:()=>L.$q,float_node_layout:()=>L.p,float_rt:()=>L.Sg,float_table:()=>L.ud});var e=n(2083),t={};for(const n in e)"default"!==n&&(t[n]=()=>e[n]);n.d(o,t);var r=n(4984),i=n(28),s=n(2158),a=n(7333),l=n(4953),c=n(9444),u=n(1778),d=n(5450),p=n(5347),h=n(9562),f=n(1276),m=n(81),v=n(2176),g=n(9029),b=n(9899),_=n(4809),y=n(7999),x=n(3539),w=n(1685),k=n(8205),R=n(2459),C=n(7925),S=n(193),E=n(6219),M=n(1050),T=n(1931),L=n(5483),I=n(4860)})(),o})());
64
+ \right]`]}),kz={[r.UF.preset]:"预设",[r.UF.symbol]:"符号",[r.UF.bracket]:"括号",[r.UF.relation]:"关系",[r.UF.sup]:"上下标",[r.UF.arrow]:"箭头",[r.UF.operator]:"运算符",[r.UF.matrix]:"矩阵",[r.UF.expression]:"函数式"};var Rz=n(4110);const Cz={class:"fomula-toolbar"},Sz={class:"fomula-editor"},Ez={class:"fomula-input-area"},Mz=["innerHTML"],Tz={class:"fomula-candidate"},Lz={class:"fomula-candidate-nav"},Iz=["onClick"],Oz={class:"fomula-candidate-values"},Az={key:0,class:"fomula-type"},Bz=["onClick","innerHTML"],Nz=(0,l.pM)({__name:"float-fomula",props:{editor:{}},setup(e){const{tips:t}=e.editor,n=Rz.$,a=(0,i.KR)(),c=(0,i.KR)(),u=(0,i.Kh)({tab:r.UF.preset,block:!1,latex:"",size:o._FomulaSize.h4});(0,l.sV)(()=>{PN.wF.dom=a.value});const d=(0,l.EW)(()=>o.CubeFomula.render(u.size+u.latex,{displayMode:u.block}));function p(){if(!u.latex.trim())return t.tip_warning("输入公式为空,已放弃");const{anchor:e,cube:n}=PN.wF;if(e){const{courier:t,history:n,pcube:r,index:i,pid:s,id:a}=e,l=PN.wF.pos,c=t.get_recorder();l>0&&l<e.len&&c.tell(e,o.CommandCube.partition(a,a,a,l,l));const d=o.CubeFomula.get_default(u.latex,{},{block:u.block,size:u.size});c.tell(r,o.CommandCube.insert_child(s,[d],i+1)),n.record(c)}else if(n){const{courier:e,history:t,pcube:r,index:i,pid:s,id:a}=n,l=e.get_recorder();l.tell(n,o.CommandFomula.update(a,u.latex,u.size,u.block)),t.record(l)}PN.wF.show=!1}function h(e){e.stopPropagation(),e.ctrlKey&&"Enter"===e.key&&p()}function f(e){c.value&&(u.size=e)}function v(e){e.stopPropagation(),e.preventDefault();const t=e.currentTarget;e.deltaY>0?fN.DomAnimation.scroll_element(t,20,"horizental"):fN.DomAnimation.scroll_element(t,-20,"horizental")}function g(){u.latex=""}function b(){const e=u.latex;wz[r.UF.preset].push(e),PN.QI.saved=!1}return(0,l.nT)(()=>{if(PN.wF.show){const e=c.value;u.latex=PN.wF.latex,u.size=PN.wF.scale,e&&e.focus()}}),(e,t)=>(0,l.bo)(((0,l.uX)(),(0,l.CE)("div",{class:"float-fomula",style:(0,m.Tr)((0,i.R1)(PN.wF).css),ref_key:"box",ref:a},[(0,l.Lk)("div",Cz,[(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",(0,i.R1)(n).icons.success]),title:"确认",onClick:p},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",(0,i.R1)(n).icons.cube]),title:"添加预设",onClick:b},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont","icon-twoblocks",u.block?"active":""]),title:"作为独立块显示",onClick:t[0]||(t[0]=()=>u.block=!u.block)},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont","icon-eraser"]),title:"清空",onClick:g}),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",(0,i.R1)(n).icons.close]),title:"关闭",onClick:t[1]||(t[1]=()=>(0,i.R1)(PN.wF).show=!1)},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h1?"active":"","icon-formatheader1"]),title:"超大",onClick:t[2]||(t[2]=()=>f((0,i.R1)(o._FomulaSize).h1))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h2?"active":"","icon-formatheader2"]),title:"很大",onClick:t[3]||(t[3]=()=>f((0,i.R1)(o._FomulaSize).h2))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h3?"active":"","icon-formatheader3"]),title:"大",onClick:t[4]||(t[4]=()=>f((0,i.R1)(o._FomulaSize).h3))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h4?"active":"","icon-formatheader4"]),title:"中",onClick:t[5]||(t[5]=()=>f((0,i.R1)(o._FomulaSize).h4))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h5?"active":"","icon-format-header-"]),title:"小",onClick:t[6]||(t[6]=()=>f((0,i.R1)(o._FomulaSize).h5))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h6?"active":"","icon-formatheader6"]),title:"很小",onClick:t[7]||(t[7]=()=>f((0,i.R1)(o._FomulaSize).h6))},null,2)]),(0,l.Lk)("div",Sz,[(0,l.Lk)("div",Ez,[(0,l.bo)((0,l.Lk)("textarea",{spellcheck:"false",class:"fomula-latex-input",ref_key:"textarea",ref:c,"onUpdate:modelValue":t[8]||(t[8]=e=>u.latex=e),onKeydown:h,placeholder:"latex 输入区 . . .\n快速提交Ctrl + Enter\n快速关闭ESC"},null,544),[[s.Jo,u.latex]]),(0,l.Lk)("div",{class:"fomula-mathml-input",innerHTML:d.value},null,8,Mz)]),(0,l.Lk)("div",Tz,[(0,l.Lk)("div",Lz,[(0,l.Lk)("div",{class:"fomula-nav-type",onWheel:v},[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(Object.keys((0,i.R1)(wz)),e=>((0,l.uX)(),(0,l.CE)("span",{key:e,onClick:()=>u.tab=e,class:(0,m.C4)({active:u.tab===e})},(0,m.v_)((0,i.R1)(kz)[e]),11,Iz))),128))],32)]),(0,l.Lk)("div",Oz,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,i.R1)(wz),(e,t)=>((0,l.uX)(),(0,l.CE)(l.FK,{key:t},[u.tab===t?((0,l.uX)(),(0,l.CE)("div",Az,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e,(e,t)=>((0,l.uX)(),(0,l.CE)("span",{key:t,onClick:()=>function(e){const t=c.value;if(!t)return;const n=t.value,o=n.slice(0,t.selectionStart),r=n.slice(t.selectionEnd);u.latex=o+e+r}(e),innerHTML:(0,i.R1)(o.CubeFomula).render(e)},null,8,Bz))),128))])):(0,l.Q3)("v-if",!0)],64))),128))])])])],4)),[[s.aG,(0,i.R1)(PN.wF).show]])}}),Wz=(0,pN.A)(Nz,[["__scopeId","data-v-613f025b"]]),$z=(0,l.pM)({__name:"float-link-ask",props:{editor:{}},setup(e){const{root:t,tips:n}=e.editor,r=(0,l.EW)(()=>({top:PN.yg.top,left:PN.yg.left}));function s(){PN.yg.show=!1}function a(){const{cursor:e}=t,{cube:r,offset_end:i,offset_start:s}=PN.yg;if(!r)return;if(!PN.yg.url)return n.tip_warning("链接不能为空");PN.yg.show=!1;const a=t.courier.get_recorder();i!==s&&a.tell(r,o.CommandCube.partition(r.id,r.id,r.id,s,i));const l={url:PN.yg.url,title:PN.yg.title},c=o.CubeTextLink.get_default(l.url,l.title);let u=null;const d=r.next_cube;i===s||0===s?u=r:s>0&&d&&(u=d),u&&(a.tell(u,o.CommandCube.postil_add(u.id,[c])),n.tip_success("已添加超链接")),t.history.record(a)}return(e,t)=>(0,i.R1)(PN.yg).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"text-link-ask",style:(0,m.Tr)(r.value)},[(0,l.Lk)("div",{class:"iconbox"},[(0,l.Q3)(' <div class="iconfont icon-icon_window_close_new-copy" @click="close"></div> '),(0,l.Lk)("div",{class:"close-corner",onClick:s})]),(0,l.bF)(LN,{tabindex:"1",modelValue:(0,i.R1)(PN.yg).title,"onUpdate:modelValue":t[0]||(t[0]=e=>(0,i.R1)(PN.yg).title=e),name:"链接标题"},null,8,["modelValue"]),(0,l.bF)(LN,{tabindex:"2",modelValue:(0,i.R1)(PN.yg).url,"onUpdate:modelValue":t[1]||(t[1]=e=>(0,i.R1)(PN.yg).url=e),name:"超链接",onSubmit:a},null,8,["modelValue"]),(0,l.Lk)("div",{class:"confirm",onClick:a},"确认")],4)):(0,l.Q3)("v-if",!0)}}),zz=(0,pN.A)($z,[["__scopeId","data-v-7353d96b"]]),Pz=(0,l.pM)({__name:"float-link-edit",props:{editor:{}},setup(e){const{root:t}=e.editor,n=(0,l.EW)(()=>({top:PN.$q.top,left:PN.$q.left}));function r(){PN.$q.show=!1}function s(){const{cursor:e,courier:n,history:r}=t,{cube:i}=PN.$q;if(!i)return;PN.$q.show=!1;const s=n.get_recorder();s.tell(i,o.CommandTextLink.update(i.id,PN.$q.title,PN.$q.url)),r.record(s)}return(e,t)=>(0,i.R1)(PN.$q).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"text-link-ask",style:(0,m.Tr)(n.value)},[(0,l.Lk)("div",{class:"iconbox"},[(0,l.Q3)(' <div class="iconfont icon-icon_window_close_new-copy" @click="close"></div> '),(0,l.Lk)("div",{class:"close-corner",onClick:r})]),(0,l.bF)(LN,{modelValue:(0,i.R1)(PN.$q).title,"onUpdate:modelValue":t[0]||(t[0]=e=>(0,i.R1)(PN.$q).title=e),name:"链接标题"},null,8,["modelValue"]),(0,l.bF)(LN,{modelValue:(0,i.R1)(PN.$q).url,"onUpdate:modelValue":t[1]||(t[1]=e=>(0,i.R1)(PN.$q).url=e),name:"超链接",onSubmit:s},null,8,["modelValue"]),(0,l.Lk)("div",{class:"confirm",onClick:s},"确认")],4)):(0,l.Q3)("v-if",!0)}}),Fz=(0,pN.A)(Pz,[["__scopeId","data-v-3e87c757"]]),Dz={class:"float-table-grid"},Vz=["onMouseover"],Kz={class:"float-table-footer"},jz=(0,l.pM)({__name:"float-table",props:{editor:{}},setup(e){const{root:t}=e.editor,n=(0,i.Kh)({row:0,col:0});function r(e,t){return{active:e<=n.row&&t<=n.col}}function s(e){const{cursor:r,courier:i,history:s}=t,a=o.CubeTable.get_default(n.row,n.col);o.NoteTools.insert_cubes(t,[a]),PN.ud.show=!1}return(e,t)=>(0,i.R1)(PN.ud).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"float-table",style:(0,m.Tr)((0,i.R1)(PN.ud).css)},[(0,l.Lk)("div",Dz,[((0,l.uX)(),(0,l.CE)(l.FK,null,(0,l.pI)(9,e=>((0,l.uX)(),(0,l.CE)(l.FK,{key:e},[((0,l.uX)(),(0,l.CE)(l.FK,null,(0,l.pI)(9,t=>(0,l.Lk)("div",{key:t,class:(0,m.C4)(r(e,t)),onMouseover:o=>function(e,t,o){n.row=t,n.col=o}(0,e,t),onPointerdown:s},null,42,Vz)),64))],64))),64))]),(0,l.Lk)("div",Kz,[(0,l.Lk)("div",null,(0,m.v_)(n.row),1),t[0]||(t[0]=(0,l.eW)(" × ",-1)),(0,l.Lk)("div",null,(0,m.v_)(n.col),1)])],4)):(0,l.Q3)("v-if",!0)}}),Xz=(0,l.pM)({__name:"float-rt",props:{editor:{}},setup(e){const t=(0,i.Kh)({exp:""});function n(){const{root:n,tips:s}=e.editor,{cursor:a,courier:l,history:c}=n,u=l.get_recorder(),d=PN.Sg.cube;if(d instanceof o.CubeChild){const e=o.CommandRt.reset(d.id,t.exp);u.tell(d,e)}else if(PN.Sg?.scope?.selection_text){const{cube_selection:e,cube_start:n,offset_start:r,offset_end:s,cube_end:a,selection_text:l}=PN.Sg.scope,c=n.id,d=a.id,p=o.CommandCube.delete(e.id,"backward",c,d,r,s,!0);u.tell(e,p);const h=o.CubeRt.get_default();h.info.text=l,h.info.explanation=t.exp,n instanceof o.CubeText&&(h.css=structuredClone((0,i.ux)(n.css))),u.tell(n,o.CommandCube.insert(c,[h],c,d,r,r))}c.record(u),r()}function r(){PN.Sg.cube=void 0,PN.Sg.show=!1}return(0,l.wB)(()=>PN.Sg.show,()=>{t.exp=""}),(e,o)=>(0,i.R1)(PN.Sg).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"float-rt",style:(0,m.Tr)((0,i.R1)(PN.Sg).css)},[o[1]||(o[1]=(0,l.Lk)("div",{class:"iconfont icon-biaozhu"},null,-1)),(0,l.bo)((0,l.Lk)("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>t.exp=e),onChange:n},null,544),[[s.Jo,t.exp]]),(0,l.Lk)("div",{class:"submit",onClick:n},"标注"),(0,l.Lk)("div",{class:"close-corner",onClick:r})],4)):(0,l.Q3)("v-if",!0)}}),Hz=(0,pN.A)(Xz,[["__scopeId","data-v-88935e0c"]]),Gz={class:"note-tips"},qz={class:"msgs"},Uz=["onClick"],Qz=(0,l.pM)({__name:"ui-tips",props:{editor:{}},setup(e){const{tips:t}=e.editor;return(e,n)=>((0,l.uX)(),(0,l.CE)("div",Gz,[(0,l.Lk)("div",qz,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,i.R1)(t).msgs,e=>((0,l.uX)(),(0,l.CE)("div",{key:e.id,class:(0,m.C4)(["msg-item iconfont",e.icon]),style:(0,m.Tr)(e.css),onClick:t=>e.click&&e.click(t)},(0,m.v_)(e.msg),15,Uz))),128))])]))}}),Yz=(0,pN.A)(Qz,[["__scopeId","data-v-5b66db9c"]]),Zz=(0,l.pM)({__name:"float-node-layout",props:{editor:{}},setup(e){const{root:t,tips:n}=e.editor,{courier:r,history:s}=t;function a(e){const{node:t}=PN.p;if(!t)return n.tip_error("未发现目标节点");const i=r.get_recorder(),a=o.CommandNode.layout_change(t.id,{layout:e});i.tell(t,a),s.record(i),PN.p.show=!1}return(e,t)=>(0,i.R1)(PN.p).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"float-node-layout",style:(0,m.Tr)((0,i.R1)(PN.p).css)},[(0,l.Lk)("div",{class:"iconfont icon-clear",onClick:t[0]||(t[0]=e=>a(null))}),(0,l.Lk)("div",{class:"iconfont icon-right",onClick:t[1]||(t[1]=e=>a("right"))}),(0,l.Lk)("div",{class:"iconfont icon-left",onClick:t[2]||(t[2]=e=>a("left"))}),(0,l.Lk)("div",{class:"iconfont icon-up",onClick:t[3]||(t[3]=e=>a("up"))}),(0,l.Lk)("div",{class:"iconfont icon-down",onClick:t[4]||(t[4]=e=>a("down"))}),(0,l.Lk)("div",{class:"iconfont icon-time-right",onClick:t[5]||(t[5]=e=>a("time-right"))}),(0,l.Lk)("div",{class:"iconfont icon-time-down",onClick:t[6]||(t[6]=e=>a("time-down"))})],4)):(0,l.Q3)("v-if",!0)}}),Jz=(0,pN.A)(Zz,[["__scopeId","data-v-3b673ff8"]]),eP={class:"deepsky-note"},tP={class:"deepsky-editor-box"},nP=(0,l.pM)({__name:"ui-editor",props:{editor:{}},setup(e){const t=(0,i.KR)(),{config:n}=e.editor;function o(e){e.preventDefault();const t=e.currentTarget,o=Math.sign(e.deltaY)*n.data.scroll_distance;e.shiftKey?fN.DomAnimation.scroll_element(t,o,"horizental"):fN.DomAnimation.scroll_element(t,o,"vertical")}return(0,l.sV)(()=>{const n=t.value;n&&e.editor.root.render(n)}),(e,n)=>((0,l.uX)(),(0,l.CE)("div",eP,[(0,l.Lk)("div",{class:"deepsky-note-bg",style:(0,m.Tr)(e.editor.theme.background_css)},null,4),(0,l.bF)(hN,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",tP,[(0,l.bF)(v$,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",{class:"note-box",onWheel:o},[(0,l.bF)(M$,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",{ref_key:"note",ref:t},null,512)],32)]),(0,l.bF)(x$,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 提示 "),(0,l.bF)(Yz,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 浮动面板 "),(0,l.bF)(hz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(_z,{editor:e.editor},null,8,["editor"]),(0,l.bF)(xz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(Wz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(zz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(Fz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(jz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(Jz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(Hz,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 弹窗 "),(0,l.bF)(O$,{editor:e.editor},null,8,["editor"]),(0,l.bF)(H$,{editor:e.editor},null,8,["editor"]),(0,l.bF)(J$,{editor:e.editor},null,8,["editor"])]))}}),oP=(0,pN.A)(nP,[["__scopeId","data-v-b8749a66"]]),rP={class:"doc-title-box"},iP={class:"doc-title"},sP={class:"doc-date"},aP=(0,l.pM)({__name:"ui-export-title",props:{editor:{}},setup(e){let t;const n=FN.z.api_get_noteinfo;return n&&(t=n()),(e,n)=>((0,l.uX)(),(0,l.CE)("div",rP,[(0,l.Lk)("div",iP,(0,m.v_)((0,i.R1)(t)?.name),1),(0,l.Lk)("div",sP,(0,m.v_)((0,i.R1)(fN.DateTime).get_date_string(new Date)),1)]))}}),lP=(0,pN.A)(aP,[["__scopeId","data-v-640820d4"]]),cP={class:"box-catalogue"},uP={class:"box-groups"},dP={class:"group-title-box"},pP=["href"],hP=["data-id"],fP=["href"],mP=(0,l.pM)({__name:"ui-exporrt-catalogue",props:{editor:{}},setup(e){const t=e.editor.catalogue.group;function n(e){return{background:e.bg}}return(e,o)=>((0,l.uX)(),(0,l.CE)("div",cP,[o[1]||(o[1]=(0,l.Lk)("div",{class:"catalogue-title"},"catalogue",-1)),(0,l.Lk)("div",uP,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,i.R1)(t),e=>((0,l.uX)(),(0,l.CE)("div",{key:e.uid,class:"group",style:(0,m.Tr)(n(e))},[(0,l.Lk)("div",dP,[(0,l.Lk)("a",{class:"group-title",href:`#${e.cubeid}`},(0,m.v_)(e.name),9,pP),o[0]||(o[0]=(0,l.Lk)("div",{class:"group-tool iconfont icon-10Colors"},null,-1))]),(0,l.Lk)("div",{ref_for:!0,ref:"links","data-id":e.uid},[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.items,e=>((0,l.uX)(),(0,l.CE)("a",{key:e.uid,class:"group-item",href:`#${e.cubeid}`},(0,m.v_)(e.name),9,fP))),128))],8,hP)],4))),128))])]))}}),vP=(0,pN.A)(mP,[["__scopeId","data-v-dfeb6bd0"]]),gP={class:"deepsky-note"},bP={class:"deepsky-editor-box"},_P=(0,l.pM)({__name:"ui-export-pdf",props:{editor:{}},setup(e){const t=(0,i.KR)();return(0,l.sV)(()=>{const n=t.value;n&&e.editor.root.render(n)}),(e,n)=>((0,l.uX)(),(0,l.CE)("div",gP,[(0,l.bF)(lP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(vP,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",bP,[(0,l.Lk)("div",{ref_key:"note",ref:t},null,512)])]))}}),yP=(0,pN.A)(_P,[["__scopeId","data-v-5bcba3ac"]]);var xP=n(7925),wP=n(193),kP=n(4809),RP=n(9029),CP=n(1778),SP=n(9562),EP=n(7333),MP=n(9444),TP=n(1050),LP=n(6219),IP=n(2176),OP=n(3539),AP=n(7999),BP=n(5450),NP=n(81),WP=n(1276),$P=n(28),zP=n(6393),PP=n(4860),FP=n(5037);const DP=new o.Waiter,VP={class:"deepsky-note"},KP={class:"deepsky-editor-box"},jP=(0,l.pM)({__name:"ui-editor-map",props:{editor:{}},setup(e){const t=(0,i.KR)(),{config:n}=e.editor;function o(e){e.preventDefault();const t=e.currentTarget,o=Math.sign(e.deltaY)*n.data.scroll_distance;e.shiftKey?fN.DomAnimation.scroll_element(t,o,"horizental"):fN.DomAnimation.scroll_element(t,o,"vertical")}return(0,l.sV)(async()=>{const n=t.value;n&&(await e.editor.root.render(n),DP.resolve(),console.log("渲染完成"))}),(e,n)=>((0,l.uX)(),(0,l.CE)("div",VP,[(0,l.Lk)("div",{class:"deepsky-note-bg",style:(0,m.Tr)(e.editor.theme.background_css)},null,4),(0,l.bF)(hN,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",KP,[(0,l.bF)(v$,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",{class:"note-box",onWheel:o},[(0,l.bF)(M$,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",{class:"note",ref_key:"note",ref:t},null,512),(0,l.Q3)(' <MapStatus :editor="editor"></MapStatus> ')],32)]),(0,l.bF)(x$,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 提示 "),(0,l.bF)(Yz,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 浮动面板 "),(0,l.bF)(hz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(_z,{editor:e.editor},null,8,["editor"]),(0,l.bF)(xz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(Wz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(zz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(Fz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(jz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(Jz,{editor:e.editor},null,8,["editor"]),(0,l.bF)(Hz,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 弹窗 "),(0,l.bF)(O$,{editor:e.editor},null,8,["editor"]),(0,l.bF)(H$,{editor:e.editor},null,8,["editor"]),(0,l.bF)(J$,{editor:e.editor},null,8,["editor"])]))}}),XP=(0,pN.A)(jP,[["__scopeId","data-v-0044fba7"]]);class HP{_root;_menubar;_sidebar;_toolbar;_statusbar;_presets;_hotkeys;_config;_dict;_fomula;_ai;_catalogue;_theme;_search;_convertors;_float;_event;_tips;_listener;_memory;_uidata;_editor_dom;get uidata(){return this._uidata}get tips(){return this._tips}get memory(){return this._memory}get listener(){return this._listener}get root(){return this._root}get float(){return this._float}get event(){return this._event}get convertors(){return this._convertors}get search(){return this._search}get ai(){return this._ai}get catalogue(){return this._catalogue}get theme(){return this._theme}get config(){return this._config}get dict(){return this._dict}get fomula(){return this._fomula}get hotkeys(){return this._hotkeys}get presets(){return this._presets}get menubar(){return this._menubar}get sidebar(){return this._sidebar}get toolbar(){return this._toolbar}get statusbar(){return this._statusbar}get editor_dom(){return this._editor_dom}constructor(e,t=$P.U.uidata){this._root=e,this._uidata=this.update_data(structuredClone((0,i.ux)(t))),this._tips=new zP.L(this),this._config=new CP.X(this),this._event=new WP.D(this),this._memory=new FP.U(this),this._statusbar=new LP.m(this),this._presets=new kP.n(this),this._hotkeys=new RP.w(this),this._dict=new SP.J(this),this._fomula=new IP.t(this),this._ai=new EP.b(this),this._theme=new OP._(this),this._catalogue=new MP.a(this),this._search=new AP.F(this),this._convertors=new BP.i(this),this._float=new NP.z(this),this._sidebar=new wP.H(this),this._toolbar=new TP.q(this),this._menubar=new xP.Z(this),this._listener=new PP.d(this),o.NoteManager.init(),window.editor=this}init(e){o.NoteApi.register_asset_url(e.api_asset_url),o.NoteApi.register_tip(this.tips)}export(){return{versions:$P.U.versions,config:this.config.export(),catalogue:this.catalogue.export(),dict:this.dict.export(),fomula:this.fomula.export(),hotkeys:this.hotkeys.export(),presets:this.presets.export(),theme:this.theme.export(),memory:this.memory.export()}}update_data(e){return e.versions.editor||(e.catalogue=e.sidebar?.catalogue,e.theme=e.sidebar?.theme),e}async render(e){if(this._editor_dom=e,this.root instanceof o.CubeDoc){const t=(0,s.Ef)(oP,{editor:this});t.use(lN),t.mount(e)}else{const t=(0,s.Ef)(XP,{editor:this});t.use(lN),t.mount(e),await DP.ps}Promise.resolve().then(()=>{this.event.emit_render_end()})}render_pdf(e){const t=this.root.cubes.get_types_cube(o._NoteCubeTypes.box_folder);for(let e of this.root.children)e.attrs.fold=!1;for(let e of t.values())e.attrs.fold=!1;(0,s.Ef)(yP,{editor:this}).mount(e),Promise.resolve().then(()=>{this.event.emit_render_end()})}get_editor_version(){return HP.get_editor_version()}static get_editor_version(){return{version:"1.105.10",time_publish:1763985908335}}static get meta(){return{type:r.d2.editor,version:1}}}},2808:(e,t,n)=>{"use strict";n.d(t,{a:()=>h});var o=n(2083),r=n(4984),i=n(8018),s=n(7633),a=n(7020),l=n(5024),c=n(5481),u=n(6424),d=n(4089),p=n(5483);class h extends i.e{data;get meta(){return h.meta}get group(){return this.data.group}constructor(e){super(e);const t=this.update_data(this.uidata.catalogue||a.U.catalogue);this.data=(0,s.Kh)(t)}export(){return structuredClone((0,s.ux)(this.data))}update_data(e){return e}show_bookmark(){const{tips:e}=this,t=this.root,{cursor:n}=t,r=n.cube_end;if(t.scope.size,!r)return e.tip_error("未发现激活的文本块,无法添加书签");p.jm.show_bookmark=!0;const i=r||null;l.c.cube=i,i instanceof o.CubeText&&(l.c.tagname=i.text),l.c.group||(l.c.group=this.group[0]||null)}close_bookmark(){p.jm.show_bookmark=!1}add_bookmark(){const{tagname:e,cube:t,group:n,group_bg:o}=l.c;if(t){if("bookmark"===l.c.type){if(!n)return l.c.tip="请选择书签组",void setTimeout(()=>{l.c.tip=""},5e3);const o={type:"bookmark",uid:(0,c.Ak)(),cubeid:t.id,name:e};n.items.push(o)}else{const n={type:"group",uid:(0,c.Ak)(),name:e,cubeid:t.id,bg:o,items:[]};this.data.group.push(n)}p.jm.show_bookmark=!1,this.sidebar.root.clear_scope(),u.Q.saved=!1}}update_anchor(e,t){if(this.group)for(let n of this.group){n.cubeid===e&&(this.root.find_cube(n.cubeid)||(n.cubeid=t));for(let o of n.items)o.cubeid===e&&(this.root.find_cube(o.cubeid)||(o.cubeid=t))}}async locate(e,t=!0){const{courier:n,history:r}=this.root,i=this.editor.tips,s=this.root.find_cube(e);if(s instanceof o.CubeChild){let e=s.pcube;const t=n.get_recorder();for(;!(e instanceof o.CubeRoot);)e.attrs.fold&&(console.log("展开折叠",e),t.tell(e,o.CommandCube.fold(e.id,!1)),r.record(t)),e=e.pcube;r.record(t)}const a=s?.host_node;a&&(console.log("移动节点"),a.move_to_center(),a.pcube.check_show(),a.pcube.set_graph_visible(a,!0)),await(0,d.dY)();const l=document.getElementById(e);if(!l)return i.tip_error("未发现书签锚点");let c=l.style.backgroundColor;l.style.backgroundColor="var(--locate-anchor-bg)",setTimeout(()=>{"var(--locate-anchor-bg)"===l.style.backgroundColor&&(l.style.backgroundColor=c)},3e3),t&&l.scrollIntoView({block:"center",behavior:"instant"})}click(e,t){const{stats:n}=this.root,i=this.editor.tips,{mode:s}=l.c;if(s===r.U_.std)this.locate(e.cubeid);else if(s===r.U_.delete){if(n.mode===o._NoteMode.read)return i.tip_warning("只读模式不可操作");if("bookmark"===e.type){const n=t.items.indexOf(e);n>=0&&t.items.splice(n,1),u.Q.saved=!1}else if("group"===e.type){const e=this.group.indexOf(t);e>=0&&this.group.splice(e,1),u.Q.saved=!1}}}static get meta(){return{type:r.d2.catalogue,version:1}}}},3179:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,o,r){var i=o.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var o=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=r(this).startOf(t).add(1,t).date(o),s=r(this).endOf(e);if(i.isBefore(s))return 1}var a=r(this).startOf(t).date(o).startOf(e).subtract(1,"millisecond"),l=this.diff(a,e,!0);return l<0?r(this).startOf("week").week():Math.ceil(l)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},3281:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.dayOfYear=function(e){var t=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day")}}}()},3363:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}()},3539:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var o=n(7633),r=n(4984),i=n(8018),s=n(5483),a=n(28);class l extends i.e{_link=null;data;list_theme=(0,o.Gc)([]);list_bg=(0,o.Gc)([]);defaut_theme;default_bg;constructor(e){super(e);const t=this.update_data(this.uidata.theme||a.U.theme);this.data=(0,o.Kh)(t),this.data.theme?.path&&this.use(this.data.theme)}get background(){return this.data.background}get background_filter(){const e=this.background.active;let t=this.background.filters[e];return t||(t=this.get_default_filter(),this.background.filters[e]=t),t}get background_url(){const e=this.data.background.active||this.default_bg?.name;for(let t of this.list_bg)if(t.name===e)return t.path;return""}get background_css(){const e=this.background.active;return{background:`url(${this.background_url}) center/cover no-repeat`,filter:this.get_css_filter(e)}}get meta(){return l.meta}load_themes(e){this.list_theme.length=0,this.list_theme.push(...e)}load_background(e){this.list_bg.length=0,this.list_bg.push(...e)}set_default_bg(e){this.default_bg=e,this.data.background.active||(this.data.background.active=e.name)}set_default_theme(e){this.defaut_theme=e,this.data.theme||this.use(e)}get_css_filter(e){let t=this.background.filters[e];return t||(t=this.get_default_filter(),this.background.filters[e]=t),`blur(${t.blur}px) \n brightness(${t.brightness}) \n contrast(${t.contrast}) \n hue-rotate(${t.hue}deg) \n saturate(${t.saturate})\n opacity(${t.opacity})\n invert(${t.invert})\n sepia(${t.sepia})\n `}set_background(e){this.data.background.active=e}export(){return structuredClone((0,o.ux)(this.data))}update_data(e){return(this.versions.theme||1)<2&&(e.background=a.U.theme.background),e}use(e){const{tips:t}=this.editor,n=e||this.defaut_theme;if(!n)return;const{name:o,path:r}=n;this._link||(this._link=document.createElement("link"),document.head.appendChild(this._link)),this._link.setAttribute("rel","stylesheet"),this._link.href=r,this.data.theme=e,s.QI.saved=!1,t.tip_info(`已更新主题:${o}`)}clear(){this._link&&(this._link.href=""),this.data.theme=void 0}reset_background(){this.data.background.active=""}get_default_filter(){return{blur:0,brightness:1,contrast:1,hue:0,saturate:1,opacity:.8,invert:0,sepia:0}}static get meta(){return{type:r.d2.theme,version:2}}}},3709:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});const o=(0,n(7633).Kh)({open:!1,active:void 0})},3890:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(7633),r=n(4984),i=n(2083),s=n(8018),a=n(6424),l=n(4110);class c extends s.e{_record_docdata_base;_record_history_base=0;_record_tip_stop;data;get items(){return(0,o.tB)(this.data.items)}get meta(){return c.meta}get init_data(){const{menubar:e,root:t,tips:n,config:o,statusbar:s}=this;return{items:[{id:r.zX["fold-sidebar"],tooltip:"折叠侧边栏",get class(){return["iconfont icon-cc-arrow-left-square",a.Q.fold_sidebar?"active":""]},click:(e,t)=>{a.Q.fold_sidebar=!a.Q.fold_sidebar}},{id:r.zX["fold-toolbar"],tooltip:"折叠工具栏",get class(){return["iconfont icon-cc-arrow-up-square",a.Q.fold_toolbar?"active":""]},click:(e,t)=>{a.Q.fold_toolbar=!a.Q.fold_toolbar}},{id:r.zX["import-md"],tooltip:"导入markdown",class:["iconfont","icon-MARKDOWN"],click:(e,t)=>{this.note_import_markdown()}},{id:r.zX["mode-reading"],tooltip:"阅读模式",get class(){const e=["iconfont","icon-ReadingMode"];return a.Q.mode===i._NoteMode.read&&e.push("active"),e},click:(e,o)=>{t.stats.mode=t.stats.mode===i._NoteMode.read?i._NoteMode.edit:i._NoteMode.read,n.tip_info(`当前为${s.doc_mode_name}`)}},{id:r.zX.record,get tooltip(){return t.stats.is_recording?"录制中...":"录制演示文件"},get class(){const e=["iconfont","icon-Metting"];return a.Q.note_recording&&e.push("active"),e},click:(e,t)=>{this.note_record()}},{id:r.zX["dict-candidator"],get class(){const e=["iconfont","icon-honeycomb-fill"];return a.Q.dict_open&&e.push("active"),e},tooltip:"候选词提示",click:(e,t)=>{o.data.dict_candidate_open=!o.data.dict_candidate_open,o.data.dict_candidate_open?n.tip_green("已开启候选词提示"):n.tip_green("已关闭候选词提示")}}]}}constructor(e){super(e),this.data=(0,o.Kh)(this.init_data)}update_data(){}export(){}register(e,t=-1){t>0?this.data.items.splice(t,0,e):this.data.items.push(e)}note_import_markdown(){const{convertors:e,root:t}=this,{stats:n,courier:o,history:r}=t,{tips:s}=this.editor,a=document.createElement("input");a.type="file",a.accept=".md",a.click(),a.onchange=function(l){const c=a.files?.[0];if(!c)return s.tip_warning("未选择文件");c.text().then(a=>{const l=e.import_md(a);if(t instanceof i.CubeDoc){const e=n.anchor_root||t.child_last;if(!(e&&e instanceof i.CubeBoxRoot))return;const a=o.get_recorder();a.tell(e,i.CommandCube.insert_child(e.id,l.cubedata,e.child_count)),r.record(a),s.tip_success("导入markdown完成")}else if(t instanceof i.CubeMap){const e=n.anchor_root,a=o.get_recorder();if(e)a.tell(e,i.CommandCube.insert_child(e.id,l.cubedata,e.child_count));else{const e=t.get_view_center(),n=i.CubeNode.get_default(e),o=i.CubeBoxRoot.get_default(l.cubedata);n.info=[o],a.tell(t,i.CommandMap.node_add(t.id,[n]))}r.record(a),s.tip_success("导入markdown完成")}})}}note_record(){const e=this.root,{history:t,stats:n}=e,{tips:o}=this.editor;if(e.stats.is_recording)e.stats.is_recording=!1,this.event.emit_export_show({docdata:this._record_docdata_base,uidata:this.editor.export(),record:t.export(this._record_history_base)}),this._record_tip_stop&&this._record_tip_stop();else{if(n.is_read_mode)return o.tip_red("阅读模式不可录制");this._record_history_base=t.len_undo,n.is_recording=!0;const r=o.tip_aloud("准备录制...",1/0);this._record_docdata_base=e.export(),r(),this._record_tip_stop=o.tip({msg:"录制中...",duration:1/0,icon:l.$.icons.record})}}static get meta(){return{type:r.d2.menubar,version:1}}}},3972:(e,t,n)=>{"use strict";function o(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}n.d(t,{$3:()=>h,$H:()=>$,$P:()=>g,BH:()=>j,BX:()=>ee,Bm:()=>x,C4:()=>Q,CE:()=>m,CP:()=>c,DY:()=>z,Gv:()=>w,J$:()=>Z,Kg:()=>y,MZ:()=>r,Mp:()=>l,NO:()=>a,Oj:()=>i,PT:()=>O,Qd:()=>E,Ro:()=>D,SU:()=>T,TF:()=>d,Tg:()=>B,Tn:()=>_,Tr:()=>X,We:()=>K,X$:()=>u,Y2:()=>J,ZH:()=>N,Zf:()=>S,_B:()=>Y,bB:()=>F,cy:()=>f,gd:()=>b,pD:()=>o,rU:()=>W,tE:()=>s,u3:()=>te,vM:()=>v,v_:()=>oe,yI:()=>M,yL:()=>k,yQ:()=>P});const r={},i=[],s=()=>{},a=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),u=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p=Object.prototype.hasOwnProperty,h=(e,t)=>p.call(e,t),f=Array.isArray,m=e=>"[object Map]"===C(e),v=e=>"[object Set]"===C(e),g=e=>"[object Date]"===C(e),b=e=>"[object RegExp]"===C(e),_=e=>"function"==typeof e,y=e=>"string"==typeof e,x=e=>"symbol"==typeof e,w=e=>null!==e&&"object"==typeof e,k=e=>(w(e)||_(e))&&_(e.then)&&_(e.catch),R=Object.prototype.toString,C=e=>R.call(e),S=e=>C(e).slice(8,-1),E=e=>"[object Object]"===C(e),M=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,T=o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),L=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-\w/g,O=L(e=>e.replace(I,e=>e.slice(1).toUpperCase())),A=/\B([A-Z])/g,B=L(e=>e.replace(A,"-$1").toLowerCase()),N=L(e=>e.charAt(0).toUpperCase()+e.slice(1)),W=L(e=>e?`on${N(e)}`:""),$=(e,t)=>!Object.is(e,t),z=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},P=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},F=e=>{const t=parseFloat(e);return isNaN(t)?e:t},D=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let V;const K=()=>V||(V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),j=o("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function X(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=y(o)?U(o):X(o);if(r)for(const e in r)t[e]=r[e]}return t}if(y(e)||w(e))return e}const H=/;(?![^(]*\))/g,G=/:([^]+)/,q=/\/\*[^]*?\*\//g;function U(e){const t={};return e.replace(q,"").split(H).forEach(e=>{if(e){const n=e.split(G);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Q(e){let t="";if(y(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const o=Q(e[n]);o&&(t+=o+" ")}else if(w(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Y(e){if(!e)return null;let{class:t,style:n}=e;return t&&!y(t)&&(e.class=Q(t)),n&&(e.style=X(n)),e}const Z=o("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function J(e){return!!e||""===e}function ee(e,t){if(e===t)return!0;let n=g(e),o=g(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=x(e),o=x(t),n||o)return e===t;if(n=f(e),o=f(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=ee(e[o],t[o]);return n}(e,t);if(n=w(e),o=w(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(o&&!r||!o&&r||!ee(e[n],t[n]))return!1}}return String(e)===String(t)}function te(e,t){return e.findIndex(e=>ee(e,t))}const ne=e=>!(!e||!0!==e.__v_isRef),oe=e=>y(e)?e:null==e?"":f(e)||w(e)&&(e.toString===R||!_(e.toString))?ne(e)?oe(e.value):JSON.stringify(e,re,2):String(e),re=(e,t)=>ne(t)?re(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],o)=>(e[ie(t,o)+" =>"]=n,e),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>ie(e))}:x(t)?ie(t):!w(t)||f(t)||E(t)?t:String(t),ie=(e,t="")=>{var n;return x(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}},4089:(e,t,n)=>{"use strict";n.d(t,{$u:()=>ve,$y:()=>Ee,CE:()=>sn,Df:()=>J,E3:()=>mn,EW:()=>Fn,EY:()=>Qt,FK:()=>Ut,Gt:()=>st,Gy:()=>V,Ht:()=>Fe,Ic:()=>me,Im:()=>$,K9:()=>Ct,KC:()=>he,Lk:()=>pn,MZ:()=>Z,Mw:()=>Yt,Ng:()=>fn,OA:()=>De,OW:()=>U,Q3:()=>gn,QP:()=>j,R8:()=>Kn,RG:()=>Ae,Tb:()=>Ne,WQ:()=>at,Wv:()=>an,Y4:()=>le,bF:()=>hn,bo:()=>S,dY:()=>m,eW:()=>vn,eX:()=>Oe,fn:()=>zt,g2:()=>Ce,gN:()=>Me,h:()=>Dn,hi:()=>be,k6:()=>C,n:()=>ae,nI:()=>Sn,nT:()=>At,pI:()=>Ie,pM:()=>ee,pR:()=>G,qL:()=>s,sV:()=>fe,uX:()=>tn,v6:()=>xn,vv:()=>ln,wB:()=>Bt,xo:()=>ge,zz:()=>je});var o=n(7633),r=n(3972);function i(e,t,n,o){try{return o?e(...o):e()}catch(e){a(e,t,n)}}function s(e,t,n,o){if((0,r.Tn)(e)){const s=i(e,t,n,o);return s&&(0,r.yL)(s)&&s.catch(e=>{a(e,t,n)}),s}if((0,r.cy)(e)){const r=[];for(let i=0;i<e.length;i++)r.push(s(e[i],t,n,o));return r}}function a(e,t,n,s=!0){t&&t.vnode;const{errorHandler:a,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||r.MZ;if(t){let r=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,s,l))return;r=r.parent}if(a)return(0,o.C4)(),i(a,null,10,[e,s,l]),void(0,o.bl)()}!function(e,t,n,o=!0,r=!1){if(r)throw e;console.error(e)}(e,0,0,s,l)}const l=[];let c=-1;const u=[];let d=null,p=0;const h=Promise.resolve();let f=null;function m(e){const t=f||h;return e?t.then(this?e.bind(this):e):t}function v(e){if(!(1&e.flags)){const t=y(e),n=l[l.length-1];!n||!(2&e.flags)&&t>=y(n)?l.push(e):l.splice(function(e){let t=c+1,n=l.length;for(;t<n;){const o=t+n>>>1,r=l[o],i=y(r);i<e||i===e&&2&r.flags?t=o+1:n=o}return t}(t),0,e),e.flags|=1,g()}}function g(){f||(f=h.then(x))}function b(e,t,n=c+1){for(;n<l.length;n++){const t=l[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;l.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function _(e){if(u.length){const e=[...new Set(u)].sort((e,t)=>y(e)-y(t));if(u.length=0,d)return void d.push(...e);for(d=e,p=0;p<d.length;p++){const e=d[p];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}d=null,p=0}}const y=e=>null==e.id?2&e.flags?-1:1/0:e.id;function x(e){r.tE;try{for(c=0;c<l.length;c++){const e=l[c];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),i(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;c<l.length;c++){const e=l[c];e&&(e.flags&=-2)}c=-1,l.length=0,_(),f=null,(l.length||u.length)&&x(e)}}let w=null,k=null;function R(e){const t=w;return w=e,k=e&&e.type.__scopeId||null,t}function C(e,t=w,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&on(-1);const r=R(t);let i;try{i=e(...n)}finally{R(r),o._d&&on(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function S(e,t){if(null===w)return e;const n=Pn(w),i=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[s,a,l,c=r.MZ]=t[e];s&&((0,r.Tn)(s)&&(s={mounted:s,updated:s}),s.deep&&(0,o.hV)(a),i.push({dir:s,instance:n,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function E(e,t,n,r){const i=e.dirs,a=t&&t.dirs;for(let l=0;l<i.length;l++){const c=i[l];a&&(c.oldValue=a[l].value);let u=c.dir[r];u&&((0,o.C4)(),s(u,n,8,[e.el,c,e,t]),(0,o.bl)())}}const M=Symbol("_vte"),T=e=>e.__isTeleport,L=e=>e&&(e.disabled||""===e.disabled),I=e=>e&&(e.defer||""===e.defer),O=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,A=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,B=(e,t)=>{const n=e&&e.to;return(0,r.Kg)(n)?t?t(n):null:n},N={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,i,s,a,l,c){const{mc:u,pc:d,pbc:p,o:{insert:h,querySelector:f,createText:m,createComment:v}}=c,g=L(t.props);let{shapeFlag:b,children:_,dynamicChildren:y}=t;if(null==e){const e=t.el=m(""),c=t.anchor=m("");h(e,n,o),h(c,n,o);const d=(e,t)=>{16&b&&(r&&r.isCE&&(r.ce._teleportTarget=e),u(_,e,t,r,i,s,a,l))},p=()=>{const e=t.target=B(t.props,f),n=P(e,t,m,h);e&&("svg"!==s&&O(e)?s="svg":"mathml"!==s&&A(e)&&(s="mathml"),g||(d(e,n),z(t,!1)))};g&&(d(n,c),z(t,!0)),I(t.props)?(t.el.__isMounted=!1,Rt(()=>{p(),delete t.el.__isMounted},i)):p()}else{if(I(t.props)&&!1===e.el.__isMounted)return void Rt(()=>{N.process(e,t,n,o,r,i,s,a,l,c)},i);t.el=e.el,t.targetStart=e.targetStart;const u=t.anchor=e.anchor,h=t.target=e.target,m=t.targetAnchor=e.targetAnchor,v=L(e.props),b=v?n:h,_=v?u:m;if("svg"===s||O(h)?s="svg":("mathml"===s||A(h))&&(s="mathml"),y?(p(e.dynamicChildren,y,b,r,i,s,a),Mt(e,t,!0)):l||d(e,t,b,_,r,i,s,a,!1),g)v?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):W(t,n,u,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=B(t.props,f);e&&W(t,e,null,c,0)}else v&&W(t,h,m,c,1);z(t,g)}},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:s,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:p}=e;if(d&&(r(c),r(u)),i&&r(l),16&s){const e=i||!L(p);for(let r=0;r<a.length;r++){const i=a[r];o(i,t,n,e,!!i.dynamicChildren)}}},move:W,hydrate:function(e,t,n,o,r,i,{o:{nextSibling:s,parentNode:a,querySelector:l,insert:c,createText:u}},d){function p(e,t,l,c){t.anchor=d(s(e),t,a(e),n,o,r,i),t.targetStart=l,t.targetAnchor=c}const h=t.target=B(t.props,l),f=L(t.props);if(h){const a=h._lpa||h.firstChild;if(16&t.shapeFlag)if(f)p(e,t,a,a&&s(a));else{t.anchor=s(e);let l=a;for(;l;){if(l&&8===l.nodeType)if("teleport start anchor"===l.data)t.targetStart=l;else if("teleport anchor"===l.data){t.targetAnchor=l,h._lpa=t.targetAnchor&&s(t.targetAnchor);break}l=s(l)}t.targetAnchor||P(h,t,u,c),d(a&&s(a),t,h,n,o,r,i)}z(t,f)}else f&&16&t.shapeFlag&&p(e,t,e,s(e));return t.anchor&&s(t.anchor)}};function W(e,t,n,{o:{insert:o},m:r},i=2){0===i&&o(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:l,children:c,props:u}=e,d=2===i;if(d&&o(s,t,n),(!d||L(u))&&16&l)for(let e=0;e<c.length;e++)r(c[e],t,n,2);d&&o(a,t,n)}const $=N;function z(e,t){const n=e.ctx;if(n&&n.ut){let o,r;for(t?(o=e.el,r=e.anchor):(o=e.targetStart,r=e.targetAnchor);o&&o!==r;)1===o.nodeType&&o.setAttribute("data-v-owner",n.uid),o=o.nextSibling;n.ut()}}function P(e,t,n,o){const r=t.targetStart=n(""),i=t.targetAnchor=n("");return r[M]=i,e&&(o(r,e),o(i,e)),i}const F=Symbol("_leaveCb"),D=Symbol("_enterCb");function V(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return fe(()=>{e.isMounted=!0}),ge(()=>{e.isUnmounting=!0}),e}const K=[Function,Array],j={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:K,onEnter:K,onAfterEnter:K,onEnterCancelled:K,onBeforeLeave:K,onLeave:K,onAfterLeave:K,onLeaveCancelled:K,onBeforeAppear:K,onAppear:K,onAfterAppear:K,onAppearCancelled:K},X=e=>{const t=e.subTree;return t.component?X(t.component):t};function H(e){let t=e[0];if(e.length>1){let n=!1;for(const o of e)if(o.type!==Yt){t=o,n=!0;break}}return t}const G={name:"BaseTransition",props:j,setup(e,{slots:t}){const n=Sn(),r=V();return()=>{const i=t.default&&J(t.default(),!0);if(!i||!i.length)return;const s=H(i),a=(0,o.ux)(e),{mode:l}=a;if(r.isLeaving)return Q(s);const c=Y(s);if(!c)return Q(s);let u=U(c,a,r,n,e=>u=e);c.type!==Yt&&Z(c,u);let d=n.subTree&&Y(n.subTree);if(d&&d.type!==Yt&&!cn(d,c)&&X(n).type!==Yt){let e=U(d,a,r,n);if(Z(d,e),"out-in"===l&&c.type!==Yt)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,d=void 0},Q(s);"in-out"===l&&c.type!==Yt?e.delayLeave=(e,t,n)=>{q(r,d)[String(d.key)]=d,e[F]=()=>{t(),e[F]=void 0,delete u.delayedLeave,d=void 0},u.delayedLeave=()=>{n(),delete u.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return s}}};function q(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function U(e,t,n,o,i){const{appear:a,mode:l,persisted:c=!1,onBeforeEnter:u,onEnter:d,onAfterEnter:p,onEnterCancelled:h,onBeforeLeave:f,onLeave:m,onAfterLeave:v,onLeaveCancelled:g,onBeforeAppear:b,onAppear:_,onAfterAppear:y,onAppearCancelled:x}=t,w=String(e.key),k=q(n,e),R=(e,t)=>{e&&s(e,o,9,t)},C=(e,t)=>{const n=t[1];R(e,t),(0,r.cy)(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},S={mode:l,persisted:c,beforeEnter(t){let o=u;if(!n.isMounted){if(!a)return;o=b||u}t[F]&&t[F](!0);const r=k[w];r&&cn(e,r)&&r.el[F]&&r.el[F](),R(o,[t])},enter(e){let t=d,o=p,r=h;if(!n.isMounted){if(!a)return;t=_||d,o=y||p,r=x||h}let i=!1;const s=e[D]=t=>{i||(i=!0,R(t?r:o,[e]),S.delayedLeave&&S.delayedLeave(),e[D]=void 0)};t?C(t,[e,s]):s()},leave(t,o){const r=String(e.key);if(t[D]&&t[D](!0),n.isUnmounting)return o();R(f,[t]);let i=!1;const s=t[F]=n=>{i||(i=!0,o(),R(n?g:v,[t]),t[F]=void 0,k[r]===e&&delete k[r])};k[r]=e,m?C(m,[t,s]):s()},clone(e){const r=U(e,t,n,o,i);return i&&i(r),r}};return S}function Q(e){if(se(e))return(e=mn(e)).children=null,e}function Y(e){if(!se(e))return T(e.type)&&e.children?H(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&(0,r.Tn)(n.default))return n.default()}}function Z(e,t){6&e.shapeFlag&&e.component?(e.transition=t,Z(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function J(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let s=e[i];const a=null==n?s.key:String(n)+String(null!=s.key?s.key:i);s.type===Ut?(128&s.patchFlag&&r++,o=o.concat(J(s.children,t,a))):(t||s.type!==Yt)&&o.push(null!=a?mn(s,{key:a}):s)}if(r>1)for(let e=0;e<o.length;e++)o[e].patchFlag=-2;return o}function ee(e,t){return(0,r.Tn)(e)?(()=>(0,r.X$)({name:e.name},t,{setup:e}))():e}function te(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const ne=new WeakMap;function oe(e,t,n,s,a=!1){if((0,r.cy)(e))return void e.forEach((e,o)=>oe(e,t&&((0,r.cy)(t)?t[o]:t),n,s,a));if(ie(s)&&!a)return void(512&s.shapeFlag&&s.type.__asyncResolved&&s.component.subTree.component&&oe(e,t,n,s.component.subTree));const l=4&s.shapeFlag?Pn(s.component):s.el,c=a?null:l,{i:u,r:d}=e,p=t&&t.r,h=u.refs===r.MZ?u.refs={}:u.refs,f=u.setupState,m=(0,o.ux)(f),v=f===r.MZ?r.NO:e=>(0,r.$3)(m,e);if(null!=p&&p!==d)if(re(t),(0,r.Kg)(p))h[p]=null,v(p)&&(f[p]=null);else if((0,o.i9)(p)){p.value=null;const e=t;e.k&&(h[e.k]=null)}if((0,r.Tn)(d))i(d,u,12,[c,h]);else{const t=(0,r.Kg)(d),i=(0,o.i9)(d);if(t||i){const o=()=>{if(e.f){const n=t?v(d)?f[d]:h[d]:d.value;if(a)(0,r.cy)(n)&&(0,r.TF)(n,l);else if((0,r.cy)(n))n.includes(l)||n.push(l);else if(t)h[d]=[l],v(d)&&(f[d]=h[d]);else{const t=[l];d.value=t,e.k&&(h[e.k]=t)}}else t?(h[d]=c,v(d)&&(f[d]=c)):i&&(d.value=c,e.k&&(h[e.k]=c))};if(c){const t=()=>{o(),ne.delete(e)};t.id=-1,ne.set(e,t),Rt(t,n)}else re(e),o()}}}function re(e){const t=ne.get(e);t&&(t.flags|=8,ne.delete(e))}(0,r.We)().requestIdleCallback,(0,r.We)().cancelIdleCallback;const ie=e=>!!e.type.__asyncLoader,se=e=>e.type.__isKeepAlive;function ae(e,t){ce(e,"a",t)}function le(e,t){ce(e,"da",t)}function ce(e,t,n=Cn){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(de(t,o,n),n){let e=n.parent;for(;e&&e.parent;)se(e.parent.vnode)&&ue(o,t,n,e),e=e.parent}}function ue(e,t,n,o){const i=de(t,e,o,!0);be(()=>{(0,r.TF)(o[t],i)},n)}function de(e,t,n=Cn,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...r)=>{(0,o.C4)();const i=Tn(n),a=s(t,n,e,r);return i(),(0,o.bl)(),a});return r?i.unshift(a):i.push(a),a}}RegExp,RegExp;const pe=e=>(t,n=Cn)=>{Bn&&"sp"!==e||de(e,(...e)=>t(...e),n)},he=pe("bm"),fe=pe("m"),me=pe("bu"),ve=pe("u"),ge=pe("bum"),be=pe("um"),_e=pe("sp"),ye=pe("rtg"),xe=pe("rtc");function we(e,t=Cn){de("ec",e,t)}const ke="components",Re="directives";function Ce(e,t){return Te(ke,e,!0,t)||e}const Se=Symbol.for("v-ndc");function Ee(e){return(0,r.Kg)(e)?Te(ke,e,!1)||e:e||Se}function Me(e){return Te(Re,e)}function Te(e,t,n=!0,o=!1){const i=w||Cn;if(i){const n=i.type;if(e===ke){const e=function(e,t=!0){return(0,r.Tn)(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===(0,r.PT)(t)||e===(0,r.ZH)((0,r.PT)(t))))return n}const s=Le(i[e]||n[e],t)||Le(i.appContext[e],t);return!s&&o?n:s}}function Le(e,t){return e&&(e[t]||e[(0,r.PT)(t)]||e[(0,r.ZH)((0,r.PT)(t))])}function Ie(e,t,n,i){let s;const a=n&&n[i],l=(0,r.cy)(e);if(l||(0,r.Kg)(e)){let n=!1,r=!1;l&&(0,o.g8)(e)&&(n=!(0,o.fE)(e),r=(0,o.Tm)(e),e=(0,o.qA)(e)),s=new Array(e.length);for(let i=0,l=e.length;i<l;i++)s[i]=t(n?r?(0,o.a1)((0,o.lJ)(e[i])):(0,o.lJ)(e[i]):e[i],i,void 0,a&&a[i])}else if("number"==typeof e){s=new Array(e);for(let n=0;n<e;n++)s[n]=t(n+1,n,void 0,a&&a[n])}else if((0,r.Gv)(e))if(e[Symbol.iterator])s=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{const n=Object.keys(e);s=new Array(n.length);for(let o=0,r=n.length;o<r;o++){const r=n[o];s[o]=t(e[r],r,o,a&&a[o])}}else s=[];return n&&(n[i]=s),s}function Oe(e,t){for(let n=0;n<t.length;n++){const o=t[n];if((0,r.cy)(o))for(let t=0;t<o.length;t++)e[o[t].name]=o[t].fn;else o&&(e[o.name]=o.key?(...e)=>{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function Ae(e,t,n={},o,i){if(w.ce||w.parent&&ie(w.parent)&&w.parent.ce)return"default"!==t&&(n.name=t),tn(),an(Ut,null,[hn("slot",n,o&&o())],64);let s=e[t];s&&s._c&&(s._d=!1),tn();const a=s&&Be(s(n)),l=n.key||a&&a.key,c=an(Ut,{key:(l&&!(0,r.Bm)(l)?l:`_${t}`)+(!a&&o?"_fb":"")},a||(o?o():[]),a&&1===e._?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),s&&s._c&&(s._d=!0),c}function Be(e){return e.some(e=>!ln(e)||e.type!==Yt&&!(e.type===Ut&&!Be(e.children)))?e:null}function Ne(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:(0,r.rU)(o)]=e[o];return n}const We=e=>e?In(e)?Pn(e):We(e.parent):null,$e=(0,r.X$)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>We(e.parent),$root:e=>We(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>qe(e),$forceUpdate:e=>e.f||(e.f=()=>{v(e.update)}),$nextTick:e=>e.n||(e.n=m.bind(e.proxy)),$watch:e=>Wt.bind(e)}),ze=(e,t)=>e!==r.MZ&&!e.__isScriptSetup&&(0,r.$3)(e,t),Pe={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:i,data:s,props:a,accessCache:l,type:c,appContext:u}=e;let d;if("$"!==t[0]){const o=l[t];if(void 0!==o)switch(o){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return a[t]}else{if(ze(i,t))return l[t]=1,i[t];if(s!==r.MZ&&(0,r.$3)(s,t))return l[t]=2,s[t];if((d=e.propsOptions[0])&&(0,r.$3)(d,t))return l[t]=3,a[t];if(n!==r.MZ&&(0,r.$3)(n,t))return l[t]=4,n[t];Xe&&(l[t]=0)}}const p=$e[t];let h,f;return p?("$attrs"===t&&(0,o.u4)(e.attrs,"get",""),p(e)):(h=c.__cssModules)&&(h=h[t])?h:n!==r.MZ&&(0,r.$3)(n,t)?(l[t]=4,n[t]):(f=u.config.globalProperties,(0,r.$3)(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:o,setupState:i,ctx:s}=e;return ze(i,t)?(i[t]=n,!0):o!==r.MZ&&(0,r.$3)(o,t)?(o[t]=n,!0):!((0,r.$3)(e.props,t)||"$"===t[0]&&t.slice(1)in e||(s[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:s,type:a}},l){let c,u;return!!(n[l]||e!==r.MZ&&"$"!==l[0]&&(0,r.$3)(e,l)||ze(t,l)||(c=s[0])&&(0,r.$3)(c,l)||(0,r.$3)(o,l)||(0,r.$3)($e,l)||(0,r.$3)(i.config.globalProperties,l)||(u=a.__cssModules)&&u[l])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,r.$3)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Fe(){return Ve().slots}function De(){return Ve().attrs}function Ve(e){const t=Sn();return t.setupContext||(t.setupContext=zn(t))}function Ke(e){return(0,r.cy)(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function je(e,t){return e&&t?(0,r.cy)(e)&&(0,r.cy)(t)?e.concat(t):(0,r.X$)({},Ke(e),Ke(t)):e||t}let Xe=!0;function He(e,t,n){s((0,r.cy)(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ge(e,t,n,o){let i=o.includes(".")?$t(n,o):()=>n[o];if((0,r.Kg)(e)){const n=t[e];(0,r.Tn)(n)&&Bt(i,n)}else if((0,r.Tn)(e))Bt(i,e.bind(n));else if((0,r.Gv)(e))if((0,r.cy)(e))e.forEach(e=>Ge(e,t,n,o));else{const o=(0,r.Tn)(e.handler)?e.handler.bind(n):t[e.handler];(0,r.Tn)(o)&&Bt(i,o,e)}}function qe(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,l=s.get(t);let c;return l?c=l:i.length||n||o?(c={},i.length&&i.forEach(e=>Ue(c,e,a,!0)),Ue(c,t,a)):c=t,(0,r.Gv)(t)&&s.set(t,c),c}function Ue(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Ue(e,i,n,!0),r&&r.forEach(t=>Ue(e,t,n,!0));for(const r in t)if(o&&"expose"===r);else{const o=Qe[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const Qe={data:Ye,props:tt,emits:tt,methods:et,computed:et,beforeCreate:Je,created:Je,beforeMount:Je,mounted:Je,beforeUpdate:Je,updated:Je,beforeDestroy:Je,beforeUnmount:Je,destroyed:Je,unmounted:Je,activated:Je,deactivated:Je,errorCaptured:Je,serverPrefetch:Je,components:et,directives:et,watch:function(e,t){if(!e)return t;if(!t)return e;const n=(0,r.X$)(Object.create(null),e);for(const o in t)n[o]=Je(e[o],t[o]);return n},provide:Ye,inject:function(e,t){return et(Ze(e),Ze(t))}};function Ye(e,t){return t?e?function(){return(0,r.X$)((0,r.Tn)(e)?e.call(this,this):e,(0,r.Tn)(t)?t.call(this,this):t)}:t:e}function Ze(e){if((0,r.cy)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Je(e,t){return e?[...new Set([].concat(e,t))]:t}function et(e,t){return e?(0,r.X$)(Object.create(null),e,t):t}function tt(e,t){return e?(0,r.cy)(e)&&(0,r.cy)(t)?[...new Set([...e,...t])]:(0,r.X$)(Object.create(null),Ke(e),Ke(null!=t?t:{})):t}function nt(){return{app:null,config:{isNativeTag:r.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ot=0;function rt(e,t){return function(n,o=null){(0,r.Tn)(n)||(n=(0,r.X$)({},n)),null==o||(0,r.Gv)(o)||(o=null);const i=nt(),a=new WeakSet,l=[];let c=!1;const u=i.app={_uid:ot++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:Vn,get config(){return i.config},set config(e){},use:(e,...t)=>(a.has(e)||(e&&(0,r.Tn)(e.install)?(a.add(e),e.install(u,...t)):(0,r.Tn)(e)&&(a.add(e),e(u,...t))),u),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),u),component:(e,t)=>t?(i.components[e]=t,u):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,u):i.directives[e],mount(r,s,a){if(!c){const l=u._ceVNode||hn(n,o);return l.appContext=i,!0===a?a="svg":!1===a&&(a=void 0),s&&t?t(l,r):e(l,r,a),c=!0,u._container=r,r.__vue_app__=u,Pn(l.component)}},onUnmount(e){l.push(e)},unmount(){c&&(s(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,u),runWithContext(e){const t=it;it=u;try{return e()}finally{it=t}}};return u}}let it=null;function st(e,t){if(Cn){let n=Cn.provides;const o=Cn.parent&&Cn.parent.provides;o===n&&(n=Cn.provides=Object.create(o)),n[e]=t}}function at(e,t,n=!1){const o=Sn();if(o||it){let i=it?it._context.provides:o?null==o.parent||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&(0,r.Tn)(t)?t.call(o&&o.proxy):t}}const lt={},ct=()=>Object.create(lt),ut=e=>Object.getPrototypeOf(e)===lt;function dt(e,t,n,i){const[s,a]=e.propsOptions;let l,c=!1;if(t)for(let o in t){if((0,r.SU)(o))continue;const u=t[o];let d;s&&(0,r.$3)(s,d=(0,r.PT)(o))?a&&a.includes(d)?(l||(l={}))[d]=u:n[d]=u:Kt(e.emitsOptions,o)||o in i&&u===i[o]||(i[o]=u,c=!0)}if(a){const t=(0,o.ux)(n),i=l||r.MZ;for(let o=0;o<a.length;o++){const l=a[o];n[l]=pt(s,t,l,i[l],e,!(0,r.$3)(i,l))}}return c}function pt(e,t,n,o,i,s){const a=e[n];if(null!=a){const e=(0,r.$3)(a,"default");if(e&&void 0===o){const e=a.default;if(a.type!==Function&&!a.skipFactory&&(0,r.Tn)(e)){const{propsDefaults:r}=i;if(n in r)o=r[n];else{const s=Tn(i);o=r[n]=e.call(null,t),s()}}else o=e;i.ce&&i.ce._setProp(n,o)}a[0]&&(s&&!e?o=!1:!a[1]||""!==o&&o!==(0,r.Tg)(n)||(o=!0))}return o}const ht=new WeakMap;function ft(e,t,n=!1){const o=n?ht:t.propsCache,i=o.get(e);if(i)return i;const s=e.props,a={},l=[];let c=!1;if(!(0,r.Tn)(e)){const o=e=>{c=!0;const[n,o]=ft(e,t,!0);(0,r.X$)(a,n),o&&l.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!s&&!c)return(0,r.Gv)(e)&&o.set(e,r.Oj),r.Oj;if((0,r.cy)(s))for(let e=0;e<s.length;e++){const t=(0,r.PT)(s[e]);mt(t)&&(a[t]=r.MZ)}else if(s)for(const e in s){const t=(0,r.PT)(e);if(mt(t)){const n=s[e],o=a[t]=(0,r.cy)(n)||(0,r.Tn)(n)?{type:n}:(0,r.X$)({},n),i=o.type;let c=!1,u=!0;if((0,r.cy)(i))for(let e=0;e<i.length;++e){const t=i[e],n=(0,r.Tn)(t)&&t.name;if("Boolean"===n){c=!0;break}"String"===n&&(u=!1)}else c=(0,r.Tn)(i)&&"Boolean"===i.name;o[0]=c,o[1]=u,(c||(0,r.$3)(o,"default"))&&l.push(t)}}const u=[a,l];return(0,r.Gv)(e)&&o.set(e,u),u}function mt(e){return"$"!==e[0]&&!(0,r.SU)(e)}const vt=e=>"_"===e||"_ctx"===e||"$stable"===e,gt=e=>(0,r.cy)(e)?e.map(bn):[bn(e)],bt=(e,t,n)=>{if(t._n)return t;const o=C((...e)=>gt(t(...e)),n);return o._c=!1,o},_t=(e,t,n)=>{const o=e._ctx;for(const n in e){if(vt(n))continue;const i=e[n];if((0,r.Tn)(i))t[n]=bt(0,i,o);else if(null!=i){const e=gt(i);t[n]=()=>e}}},yt=(e,t)=>{const n=gt(t);e.slots.default=()=>n},xt=(e,t,n)=>{for(const o in t)!n&&vt(o)||(e[o]=t[o])},wt=(e,t,n)=>{const o=e.slots=ct();if(32&e.vnode.shapeFlag){const e=t._;e?(xt(o,t,n),n&&(0,r.yQ)(o,"_",e,!0)):_t(t,o)}else t&&yt(e,t)},kt=(e,t,n)=>{const{vnode:o,slots:i}=e;let s=!0,a=r.MZ;if(32&o.shapeFlag){const e=t._;e?n&&1===e?s=!1:xt(i,t,n):(s=!t.$stable,_t(t,i)),a=t}else t&&(yt(e,t),a={default:1});if(s)for(const e in i)vt(e)||null!=a[e]||delete i[e]},Rt=function(e,t){t&&t.pendingBranch?(0,r.cy)(e)?t.effects.push(...e):t.effects.push(e):(n=e,(0,r.cy)(n)?u.push(...n):d&&-1===n.id?d.splice(p+1,0,n):1&n.flags||(u.push(n),n.flags|=1),g());var n};function Ct(e){return function(e,t){(0,r.We)().__VUE__=!0;const{insert:n,remove:s,patchProp:l,createElement:c,createText:u,createComment:d,setText:p,setElementText:h,parentNode:f,nextSibling:m,setScopeId:g=r.tE,insertStaticContent:y}=e,x=(e,t,n,o=null,r=null,i=null,s=void 0,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!cn(e,t)&&(o=Y(e),H(e,r,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Qt:w(e,t,n,o);break;case Yt:k(e,t,n,o);break;case Zt:null==e&&R(t,n,o,s);break;case Ut:N(e,t,n,o,r,i,s,a,l);break;default:1&d?S(e,t,n,o,r,i,s,a,l):6&d?W(e,t,n,o,r,i,s,a,l):(64&d||128&d)&&c.process(e,t,n,o,r,i,s,a,l,ee)}null!=u&&r?oe(u,e&&e.ref,i,t||e,!t):null==u&&e&&null!=e.ref&&oe(e.ref,null,i,e,!0)},w=(e,t,o,r)=>{if(null==e)n(t.el=u(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&p(n,t.children)}},k=(e,t,o,r)=>{null==e?n(t.el=d(t.children||""),o,r):t.el=e.el},R=(e,t,n,o)=>{[e.el,e.anchor]=y(e.children,t,n,o,e.el,e.anchor)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),s(e),e=n;s(t)},S=(e,t,n,o,r,i,s,a,l)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?T(t,n,o,r,i,s,a,l):O(e,t,r,i,s,a,l)},T=(e,t,o,i,s,a,u,d)=>{let p,f;const{props:m,shapeFlag:v,transition:g,dirs:b}=e;if(p=e.el=c(e.type,a,m&&m.is,m),8&v?h(p,e.children):16&v&&I(e.children,p,null,i,s,St(e,a),u,d),b&&E(e,null,i,"created"),L(p,e,e.scopeId,u,i),m){for(const e in m)"value"===e||(0,r.SU)(e)||l(p,e,null,m[e],a,i);"value"in m&&l(p,"value",null,m.value,a),(f=m.onVnodeBeforeMount)&&wn(f,i,e)}b&&E(e,null,i,"beforeMount");const _=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(s,g);_&&g.beforeEnter(p),n(p,t,o),((f=m&&m.onVnodeMounted)||_||b)&&Rt(()=>{f&&wn(f,i,e),_&&g.enter(p),b&&E(e,null,i,"mounted")},s)},L=(e,t,n,o,r)=>{if(n&&g(e,n),o)for(let t=0;t<o.length;t++)g(e,o[t]);if(r){let n=r.subTree;if(t===n||qt(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=r.vnode;L(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},I=(e,t,n,o,r,i,s,a,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=a?_n(e[c]):bn(e[c]);x(null,l,t,n,o,r,i,s,a)}},O=(e,t,n,o,i,s,a)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const f=e.props||r.MZ,m=t.props||r.MZ;let v;if(n&&Et(n,!1),(v=m.onVnodeBeforeUpdate)&&wn(v,n,t,e),p&&E(t,e,n,"beforeUpdate"),n&&Et(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&h(c,""),d?A(e.dynamicChildren,d,c,n,o,St(t,i),s):a||V(e,t,c,null,n,o,St(t,i),s,!1),u>0){if(16&u)B(c,f,m,n,i);else if(2&u&&f.class!==m.class&&l(c,"class",null,m.class,i),4&u&&l(c,"style",f.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const o=e[t],r=f[o],s=m[o];s===r&&"value"!==o||l(c,o,r,s,i,n)}}1&u&&e.children!==t.children&&h(c,t.children)}else a||null!=d||B(c,f,m,n,i);((v=m.onVnodeUpdated)||p)&&Rt(()=>{v&&wn(v,n,t,e),p&&E(t,e,n,"updated")},o)},A=(e,t,n,o,r,i,s)=>{for(let a=0;a<t.length;a++){const l=e[a],c=t[a],u=l.el&&(l.type===Ut||!cn(l,c)||198&l.shapeFlag)?f(l.el):n;x(l,c,u,null,o,r,i,s,!0)}},B=(e,t,n,o,i)=>{if(t!==n){if(t!==r.MZ)for(const s in t)(0,r.SU)(s)||s in n||l(e,s,t[s],null,i,o);for(const s in n){if((0,r.SU)(s))continue;const a=n[s],c=t[s];a!==c&&"value"!==s&&l(e,s,c,a,i,o)}"value"in n&&l(e,"value",t.value,n.value,i)}},N=(e,t,o,r,i,s,a,l,c)=>{const d=t.el=e?e.el:u(""),p=t.anchor=e?e.anchor:u("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(d,o,r),n(p,o,r),I(t.children||[],o,p,i,s,a,l,c)):h>0&&64&h&&f&&e.dynamicChildren?(A(e.dynamicChildren,f,o,i,s,a,l),(null!=t.key||i&&t===i.subTree)&&Mt(e,t,!0)):V(e,t,o,p,i,s,a,l,c)},W=(e,t,n,o,r,i,s,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,l):$(t,n,o,r,i,s,l):z(e,t,l)},$=(e,t,n,s,l,c,u)=>{const d=e.component=function(e,t,n){const i=e.type,s=(t?t.appContext:e.appContext)||kn,a={uid:Rn++,vnode:e,type:i,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new o.yC(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ft(i,s),emitsOptions:Vt(i,s),emit:null,emitted:null,propsDefaults:r.MZ,inheritAttrs:i.inheritAttrs,ctx:r.MZ,data:r.MZ,props:r.MZ,attrs:r.MZ,slots:r.MZ,refs:r.MZ,setupState:r.MZ,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Ft.bind(null,a),e.ce&&e.ce(a),a}(e,s,l);if(se(e)&&(d.ctx.renderer=ee),function(e,t=!1,n=!1){t&&Mn(t);const{props:s,children:l}=e.vnode,c=In(e);!function(e,t,n,r=!1){const i={},s=ct();e.propsDefaults=Object.create(null),dt(e,t,i,s);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:(0,o.Gc)(i):e.type.props?e.props=i:e.props=s,e.attrs=s}(e,s,c,t),wt(e,l,n||t);const u=c?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Pe);const{setup:s}=n;if(s){(0,o.C4)();const n=e.setupContext=s.length>1?zn(e):null,l=Tn(e),c=i(s,e,0,[e.props,n]),u=(0,r.yL)(c);if((0,o.bl)(),l(),!u&&!e.sp||ie(e)||te(e),u){if(c.then(Ln,Ln),t)return c.then(n=>{Nn(e,n,t)}).catch(t=>{a(t,e,0)});e.asyncDep=c}else Nn(e,c,t)}else Wn(e,t)}(e,t):void 0;t&&Mn(!1)}(d,!1,u),d.asyncDep){if(l&&l.registerDep(d,P,u),!e.el){const o=d.subTree=hn(Yt);k(null,o,t,n),e.placeholder=o.el}}else P(d,e,t,n,l,c,u)},z=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!a||a&&a.$stable)||o!==s&&(o?!s||Gt(o,s,c):!!s);if(1024&l)return!0;if(16&l)return o?Gt(o,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(s[n]!==o[n]&&!Kt(c,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void D(o,t,n);o.next=t,o.update()}else t.el=e.el,o.vnode=t},P=(e,t,n,i,s,a,l)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:i,vnode:u}=e;{const n=Tt(e);if(n)return t&&(t.el=u.el,D(e,t,l)),void n.asyncDep.then(()=>{e.isUnmounted||c()})}let d,p=t;Et(e,!1),t?(t.el=u.el,D(e,t,l)):t=u,n&&(0,r.DY)(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&wn(d,i,t,u),Et(e,!0);const h=jt(e),m=e.subTree;e.subTree=h,x(m,h,f(m.el),Y(m),e,s,a),t.el=h.el,null===p&&function({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,h.el),o&&Rt(o,s),(d=t.props&&t.props.onVnodeUpdated)&&Rt(()=>wn(d,i,t,u),s)}else{let o;const{el:l,props:c}=t,{bm:u,m:d,parent:p,root:h,type:f}=e,m=ie(t);if(Et(e,!1),u&&(0,r.DY)(u),!m&&(o=c&&c.onVnodeBeforeMount)&&wn(o,p,t),Et(e,!0),l&&re){const t=()=>{e.subTree=jt(e),re(l,e.subTree,e,s,null)};m&&f.__asyncHydrate?f.__asyncHydrate(l,e,t):t()}else{h.ce&&!1!==h.ce._def.shadowRoot&&h.ce._injectChildStyle(f);const o=e.subTree=jt(e);x(null,o,n,i,e,s,a),t.el=o.el}if(d&&Rt(d,s),!m&&(o=c&&c.onVnodeMounted)){const e=t;Rt(()=>wn(o,p,e),s)}(256&t.shapeFlag||p&&ie(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&Rt(e.a,s),e.isMounted=!0,t=n=i=null}};e.scope.on();const u=e.effect=new o.X2(c);e.scope.off();const d=e.update=u.run.bind(u),p=e.job=u.runIfDirty.bind(u);p.i=e,p.id=e.uid,u.scheduler=()=>v(p),Et(e,!0),d()},D=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:s,attrs:a,vnode:{patchFlag:l}}=e,c=(0,o.ux)(s),[u]=e.propsOptions;let d=!1;if(!(i||l>0)||16&l){let o;dt(e,t,s,a)&&(d=!0);for(const i in c)t&&((0,r.$3)(t,i)||(o=(0,r.Tg)(i))!==i&&(0,r.$3)(t,o))||(u?!n||void 0===n[i]&&void 0===n[o]||(s[i]=pt(u,c,i,void 0,e,!0)):delete s[i]);if(a!==c)for(const e in a)t&&(0,r.$3)(t,e)||(delete a[e],d=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let i=n[o];if(Kt(e.emitsOptions,i))continue;const l=t[i];if(u)if((0,r.$3)(a,i))l!==a[i]&&(a[i]=l,d=!0);else{const t=(0,r.PT)(i);s[t]=pt(u,c,t,l,e,!1)}else l!==a[i]&&(a[i]=l,d=!0)}}d&&(0,o.hZ)(e.attrs,"set","")}(e,t.props,i,n),kt(e,t.children,n),(0,o.C4)(),b(e),(0,o.bl)()},V=(e,t,n,o,r,i,s,a,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void j(c,d,n,o,r,i,s,a,l);if(256&p)return void K(c,d,n,o,r,i,s,a,l)}8&f?(16&u&&Q(c,r,i),d!==c&&h(n,d)):16&u?16&f?j(c,d,n,o,r,i,s,a,l):Q(c,r,i,!0):(8&u&&h(n,""),16&f&&I(d,n,o,r,i,s,a,l))},K=(e,t,n,o,i,s,a,l,c)=>{e=e||r.Oj,t=t||r.Oj;const u=e.length,d=t.length,p=Math.min(u,d);let h;for(h=0;h<p;h++){const o=t[h]=c?_n(t[h]):bn(t[h]);x(e[h],o,n,null,i,s,a,l,c)}u>d?Q(e,i,s,!0,!1,p):I(t,n,o,i,s,a,l,c,p)},j=(e,t,n,o,i,s,a,l,c)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const o=e[u],r=t[u]=c?_n(t[u]):bn(t[u]);if(!cn(o,r))break;x(o,r,n,null,i,s,a,l,c),u++}for(;u<=p&&u<=h;){const o=e[p],r=t[h]=c?_n(t[h]):bn(t[h]);if(!cn(o,r))break;x(o,r,n,null,i,s,a,l,c),p--,h--}if(u>p){if(u<=h){const e=h+1,r=e<d?t[e].el:o;for(;u<=h;)x(null,t[u]=c?_n(t[u]):bn(t[u]),n,r,i,s,a,l,c),u++}}else if(u>h)for(;u<=p;)H(e[u],i,s,!0),u++;else{const f=u,m=u,v=new Map;for(u=m;u<=h;u++){const e=t[u]=c?_n(t[u]):bn(t[u]);null!=e.key&&v.set(e.key,u)}let g,b=0;const _=h-m+1;let y=!1,w=0;const k=new Array(_);for(u=0;u<_;u++)k[u]=0;for(u=f;u<=p;u++){const o=e[u];if(b>=_){H(o,i,s,!0);continue}let r;if(null!=o.key)r=v.get(o.key);else for(g=m;g<=h;g++)if(0===k[g-m]&&cn(o,t[g])){r=g;break}void 0===r?H(o,i,s,!0):(k[r-m]=u+1,r>=w?w=r:y=!0,x(o,t[r],n,null,i,s,a,l,c),b++)}const R=y?function(e){const t=e.slice(),n=[0];let o,r,i,s,a;const l=e.length;for(o=0;o<l;o++){const l=e[o];if(0!==l){if(r=n[n.length-1],e[r]<l){t[o]=r,n.push(o);continue}for(i=0,s=n.length-1;i<s;)a=i+s>>1,e[n[a]]<l?i=a+1:s=a;l<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}(k):r.Oj;for(g=R.length-1,u=_-1;u>=0;u--){const e=m+u,r=t[e],p=t[e+1],h=e+1<d?p.el||p.placeholder:o;0===k[u]?x(null,r,n,h,i,s,a,l,c):y&&(g<0||u!==R[g]?X(r,n,h,2):g--)}}},X=(e,t,o,r,i=null)=>{const{el:a,type:l,transition:c,children:u,shapeFlag:d}=e;if(6&d)X(e.component.subTree,t,o,r);else if(128&d)e.suspense.move(t,o,r);else if(64&d)l.move(e,t,o,ee);else if(l!==Ut)if(l!==Zt)if(2!==r&&1&d&&c)if(0===r)c.beforeEnter(a),n(a,t,o),Rt(()=>c.enter(a),i);else{const{leave:r,delayLeave:i,afterLeave:l}=c,u=()=>{e.ctx.isUnmounted?s(a):n(a,t,o)},d=()=>{a._isLeaving&&a[F](!0),r(a,()=>{u(),l&&l()})};i?i(a,u,d):d()}else n(a,t,o);else(({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=m(e),n(e,o,r),e=i;n(t,o,r)})(e,t,o);else{n(a,t,o);for(let e=0;e<u.length;e++)X(u[e],t,o,r);n(e.anchor,t,o)}},H=(e,t,n,r=!1,i=!1)=>{const{type:s,props:a,ref:l,children:c,dynamicChildren:u,shapeFlag:d,patchFlag:p,dirs:h,cacheIndex:f}=e;if(-2===p&&(i=!1),null!=l&&((0,o.C4)(),oe(l,null,n,e,!0),(0,o.bl)()),null!=f&&(t.renderCache[f]=void 0),256&d)return void t.ctx.deactivate(e);const m=1&d&&h,v=!ie(e);let g;if(v&&(g=a&&a.onVnodeBeforeUnmount)&&wn(g,t,e),6&d)U(e.component,n,r);else{if(128&d)return void e.suspense.unmount(n,r);m&&E(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,n,ee,r):u&&!u.hasOnce&&(s!==Ut||p>0&&64&p)?Q(u,t,n,!1,!0):(s===Ut&&384&p||!i&&16&d)&&Q(c,t,n),r&&G(e)}(v&&(g=a&&a.onVnodeUnmounted)||m)&&Rt(()=>{g&&wn(g,t,e),m&&E(e,null,t,"unmounted")},n)},G=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===Ut)return void q(n,o);if(t===Zt)return void C(e);const i=()=>{s(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,s=()=>t(n,i);o?o(e.el,i,s):s()}else i()},q=(e,t)=>{let n;for(;e!==t;)n=m(e),s(e),e=n;s(t)},U=(e,t,n)=>{const{bum:o,scope:i,job:s,subTree:a,um:l,m:c,a:u}=e;Lt(c),Lt(u),o&&(0,r.DY)(o),i.stop(),s&&(s.flags|=8,H(a,e,t,n)),l&&Rt(l,t),Rt(()=>{e.isUnmounted=!0},t)},Q=(e,t,n,o=!1,r=!1,i=0)=>{for(let s=i;s<e.length;s++)H(e[s],t,n,o,r)},Y=e=>{if(6&e.shapeFlag)return Y(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[M];return n?m(n):t};let Z=!1;const J=(e,t,n)=>{null==e?t._vnode&&H(t._vnode,null,null,!0):x(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Z||(Z=!0,b(),_(),Z=!1)},ee={p:x,um:H,m:X,r:G,mt:$,mc:I,pc:V,pbc:A,n:Y,o:e};let ne,re;return t&&([ne,re]=t(ee)),{render:J,hydrate:ne,createApp:rt(J,ne)}}(e)}function St({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Et({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Mt(e,t,n=!1){const o=e.children,i=t.children;if((0,r.cy)(o)&&(0,r.cy)(i))for(let e=0;e<o.length;e++){const t=o[e];let r=i[e];1&r.shapeFlag&&!r.dynamicChildren&&((r.patchFlag<=0||32===r.patchFlag)&&(r=i[e]=_n(i[e]),r.el=t.el),n||-2===r.patchFlag||Mt(t,r)),r.type===Qt&&-1!==r.patchFlag&&(r.el=t.el),r.type!==Yt||r.el||(r.el=t.el)}}function Tt(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Tt(t)}function Lt(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const It=Symbol.for("v-scx"),Ot=()=>at(It);function At(e,t){return Nt(e,null,t)}function Bt(e,t,n){return Nt(e,t,n)}function Nt(e,t,n=r.MZ){const{immediate:i,deep:a,flush:l,once:c}=n,u=(0,r.X$)({},n),d=t&&i||!t&&"post"!==l;let p;if(Bn)if("sync"===l){const e=Ot();p=e.__watcherHandles||(e.__watcherHandles=[])}else if(!d){const e=()=>{};return e.stop=r.tE,e.resume=r.tE,e.pause=r.tE,e}const h=Cn;u.call=(e,t,n)=>s(e,h,t,n);let f=!1;"post"===l?u.scheduler=e=>{Rt(e,h&&h.suspense)}:"sync"!==l&&(f=!0,u.scheduler=(e,t)=>{t?e():v(e)}),u.augmentJob=e=>{t&&(e.flags|=4),f&&(e.flags|=2,h&&(e.id=h.uid,e.i=h))};const m=(0,o.wB)(e,t,u);return Bn&&(p?p.push(m):d&&m()),m}function Wt(e,t,n){const o=this.proxy,i=(0,r.Kg)(e)?e.includes(".")?$t(o,e):()=>o[e]:e.bind(o,o);let s;(0,r.Tn)(t)?s=t:(s=t.handler,n=t);const a=Tn(this),l=Nt(i,s.bind(o),n);return a(),l}function $t(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function zt(e,t,n=r.MZ){const i=Sn(),s=(0,r.PT)(t),a=(0,r.Tg)(t),l=Pt(e,s),c=(0,o.rY)((o,l)=>{let c,u,d=r.MZ;return Nt(()=>{const t=e[s];(0,r.$H)(c,t)&&(c=t,l())},null,{flush:"sync"}),{get:()=>(o(),n.get?n.get(c):c),set(e){const o=n.set?n.set(e):e;if(!((0,r.$H)(o,c)||d!==r.MZ&&(0,r.$H)(e,d)))return;const p=i.vnode.props;p&&(t in p||s in p||a in p)&&(`onUpdate:${t}`in p||`onUpdate:${s}`in p||`onUpdate:${a}`in p)||(c=e,l()),i.emit(`update:${t}`,o),(0,r.$H)(e,o)&&(0,r.$H)(e,d)&&!(0,r.$H)(o,u)&&l(),d=e,u=o}}});return c[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?l||r.MZ:c,done:!1}:{done:!0}}},c}const Pt=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${(0,r.PT)(t)}Modifiers`]||e[`${(0,r.Tg)(t)}Modifiers`];function Ft(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||r.MZ;let i=n;const a=t.startsWith("update:"),l=a&&Pt(o,t.slice(7));let c;l&&(l.trim&&(i=n.map(e=>(0,r.Kg)(e)?e.trim():e)),l.number&&(i=n.map(r.bB)));let u=o[c=(0,r.rU)(t)]||o[c=(0,r.rU)((0,r.PT)(t))];!u&&a&&(u=o[c=(0,r.rU)((0,r.Tg)(t))]),u&&s(u,e,6,i);const d=o[c+"Once"];if(d){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,s(d,e,6,i)}}const Dt=new WeakMap;function Vt(e,t,n=!1){const o=n?Dt:t.emitsCache,i=o.get(e);if(void 0!==i)return i;const s=e.emits;let a={},l=!1;if(!(0,r.Tn)(e)){const o=e=>{const n=Vt(e,t,!0);n&&(l=!0,(0,r.X$)(a,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return s||l?((0,r.cy)(s)?s.forEach(e=>a[e]=null):(0,r.X$)(a,s),(0,r.Gv)(e)&&o.set(e,a),a):((0,r.Gv)(e)&&o.set(e,null),null)}function Kt(e,t){return!(!e||!(0,r.Mp)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,r.$3)(e,t[0].toLowerCase()+t.slice(1))||(0,r.$3)(e,(0,r.Tg)(t))||(0,r.$3)(e,t))}function jt(e){const{type:t,vnode:n,proxy:o,withProxy:i,propsOptions:[s],slots:l,attrs:c,emit:u,render:d,renderCache:p,props:h,data:f,setupState:m,ctx:v,inheritAttrs:g}=e,b=R(e);let _,y;try{if(4&n.shapeFlag){const e=i||o,t=e;_=bn(d.call(t,e,p,h,m,f,v)),y=c}else{const e=t;_=bn(e.length>1?e(h,{attrs:c,slots:l,emit:u}):e(h,null)),y=t.props?c:Xt(c)}}catch(t){Jt.length=0,a(t,e,1),_=hn(Yt)}let x=_;if(y&&!1!==g){const e=Object.keys(y),{shapeFlag:t}=x;e.length&&7&t&&(s&&e.some(r.CP)&&(y=Ht(y,s)),x=mn(x,y,!1,!0))}return n.dirs&&(x=mn(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&Z(x,n.transition),_=x,R(b),_}const Xt=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,r.Mp)(n))&&((t||(t={}))[n]=e[n]);return t},Ht=(e,t)=>{const n={};for(const o in e)(0,r.CP)(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Gt(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!Kt(n,i))return!0}return!1}const qt=e=>e.__isSuspense;const Ut=Symbol.for("v-fgt"),Qt=Symbol.for("v-txt"),Yt=Symbol.for("v-cmt"),Zt=Symbol.for("v-stc"),Jt=[];let en=null;function tn(e=!1){Jt.push(en=e?null:[])}let nn=1;function on(e,t=!1){nn+=e,e<0&&en&&t&&(en.hasOnce=!0)}function rn(e){return e.dynamicChildren=nn>0?en||r.Oj:null,Jt.pop(),en=Jt[Jt.length-1]||null,nn>0&&en&&en.push(e),e}function sn(e,t,n,o,r,i){return rn(pn(e,t,n,o,r,i,!0))}function an(e,t,n,o,r){return rn(hn(e,t,n,o,r,!0))}function ln(e){return!!e&&!0===e.__v_isVNode}function cn(e,t){return e.type===t.type&&e.key===t.key}const un=({key:e})=>null!=e?e:null,dn=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?(0,r.Kg)(e)||(0,o.i9)(e)||(0,r.Tn)(e)?{i:w,r:e,k:t,f:!!n}:e:null);function pn(e,t=null,n=null,o=0,i=null,s=(e===Ut?0:1),a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&un(t),ref:t&&dn(t),scopeId:k,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:w};return l?(yn(c,n),128&s&&e.normalize(c)):n&&(c.shapeFlag|=(0,r.Kg)(n)?8:16),nn>0&&!a&&en&&(c.patchFlag>0||6&s)&&32!==c.patchFlag&&en.push(c),c}const hn=function(e,t=null,n=null,i=0,s=null,a=!1){if(e&&e!==Se||(e=Yt),ln(e)){const o=mn(e,t,!0);return n&&yn(o,n),nn>0&&!a&&en&&(6&o.shapeFlag?en[en.indexOf(e)]=o:en.push(o)),o.patchFlag=-2,o}if(l=e,(0,r.Tn)(l)&&"__vccOpts"in l&&(e=e.__vccOpts),t){t=fn(t);let{class:e,style:n}=t;e&&!(0,r.Kg)(e)&&(t.class=(0,r.C4)(e)),(0,r.Gv)(n)&&((0,o.ju)(n)&&!(0,r.cy)(n)&&(n=(0,r.X$)({},n)),t.style=(0,r.Tr)(n))}var l;return pn(e,t,n,i,s,(0,r.Kg)(e)?1:qt(e)?128:T(e)?64:(0,r.Gv)(e)?4:(0,r.Tn)(e)?2:0,a,!0)};function fn(e){return e?(0,o.ju)(e)||ut(e)?(0,r.X$)({},e):e:null}function mn(e,t,n=!1,o=!1){const{props:i,ref:s,patchFlag:a,children:l,transition:c}=e,u=t?xn(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&un(u),ref:t&&t.ref?n&&s?(0,r.cy)(s)?s.concat(dn(t)):[s,dn(t)]:dn(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ut?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&mn(e.ssContent),ssFallback:e.ssFallback&&mn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&Z(d,c.clone(d)),d}function vn(e=" ",t=0){return hn(Qt,null,e,t)}function gn(e="",t=!1){return t?(tn(),an(Yt,null,e)):hn(Yt,null,e)}function bn(e){return null==e||"boolean"==typeof e?hn(Yt):(0,r.cy)(e)?hn(Ut,null,e.slice()):ln(e)?_n(e):hn(Qt,null,String(e))}function _n(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:mn(e)}function yn(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if((0,r.cy)(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),yn(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||ut(t)?3===o&&w&&(1===w.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=w}}else(0,r.Tn)(t)?(t={default:t,_ctx:w},n=32):(t=String(t),64&o?(n=16,t=[vn(t)]):n=8);e.children=t,e.shapeFlag|=n}function xn(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=(0,r.C4)([t.class,o.class]));else if("style"===e)t.style=(0,r.Tr)([t.style,o.style]);else if((0,r.Mp)(e)){const n=t[e],i=o[e];!i||n===i||(0,r.cy)(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=o[e])}return t}function wn(e,t,n,o=null){s(e,t,7,[n,o])}const kn=nt();let Rn=0;let Cn=null;const Sn=()=>Cn||w;let En,Mn;{const e=(0,r.We)(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach(t=>t(e)):o[0](e)}};En=t("__VUE_INSTANCE_SETTERS__",e=>Cn=e),Mn=t("__VUE_SSR_SETTERS__",e=>Bn=e)}const Tn=e=>{const t=Cn;return En(e),e.scope.on(),()=>{e.scope.off(),En(t)}},Ln=()=>{Cn&&Cn.scope.off(),En(null)};function In(e){return 4&e.vnode.shapeFlag}let On,An,Bn=!1;function Nn(e,t,n){(0,r.Tn)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,r.Gv)(t)&&(e.setupState=(0,o.Pr)(t)),Wn(e,n)}function Wn(e,t,n){const i=e.type;if(!e.render){if(!t&&On&&!i.render){const t=i.template||qe(e).template;if(t){const{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:a}=i,l=(0,r.X$)((0,r.X$)({isCustomElement:n,delimiters:s},o),a);i.render=On(t,l)}}e.render=i.render||r.tE,An&&An(e)}{const t=Tn(e);(0,o.C4)();try{!function(e){const t=qe(e),n=e.proxy,i=e.ctx;Xe=!1,t.beforeCreate&&He(t.beforeCreate,e,"bc");const{data:s,computed:a,methods:l,watch:c,provide:u,inject:d,created:p,beforeMount:h,mounted:f,beforeUpdate:m,updated:v,activated:g,deactivated:b,beforeDestroy:_,beforeUnmount:y,destroyed:x,unmounted:w,render:k,renderTracked:R,renderTriggered:C,errorCaptured:S,serverPrefetch:E,expose:M,inheritAttrs:T,components:L,directives:I,filters:O}=t;if(d&&function(e,t){(0,r.cy)(e)&&(e=Ze(e));for(const n in e){const i=e[n];let s;s=(0,r.Gv)(i)?"default"in i?at(i.from||n,i.default,!0):at(i.from||n):at(i),(0,o.i9)(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(d,i),l)for(const e in l){const t=l[e];(0,r.Tn)(t)&&(i[e]=t.bind(n))}if(s){const t=s.call(n,n);(0,r.Gv)(t)&&(e.data=(0,o.Kh)(t))}if(Xe=!0,a)for(const e in a){const t=a[e],o=(0,r.Tn)(t)?t.bind(n,n):(0,r.Tn)(t.get)?t.get.bind(n,n):r.tE,s=!(0,r.Tn)(t)&&(0,r.Tn)(t.set)?t.set.bind(n):r.tE,l=Fn({get:o,set:s});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(c)for(const e in c)Ge(c[e],i,n,e);if(u){const e=(0,r.Tn)(u)?u.call(n):u;Reflect.ownKeys(e).forEach(t=>{st(t,e[t])})}function A(e,t){(0,r.cy)(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(p&&He(p,e,"c"),A(he,h),A(fe,f),A(me,m),A(ve,v),A(ae,g),A(le,b),A(we,S),A(xe,R),A(ye,C),A(ge,y),A(be,w),A(_e,E),(0,r.cy)(M))if(M.length){const t=e.exposed||(e.exposed={});M.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});k&&e.render===r.tE&&(e.render=k),null!=T&&(e.inheritAttrs=T),L&&(e.components=L),I&&(e.directives=I),E&&te(e)}(e)}finally{(0,o.bl)(),t()}}}const $n={get:(e,t)=>((0,o.u4)(e,"get",""),e[t])};function zn(e){return{attrs:new Proxy(e.attrs,$n),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Pn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy((0,o.Pr)((0,o.IG)(e.exposed)),{get:(t,n)=>n in t?t[n]:n in $e?$e[n](e):void 0,has:(e,t)=>t in e||t in $e})):e.proxy}const Fn=(e,t)=>(0,o.EW)(e,t,Bn);function Dn(e,t,n){const o=(e,t,n)=>{on(-1);try{return hn(e,t,n)}finally{on(1)}},i=arguments.length;return 2===i?(0,r.Gv)(t)&&!(0,r.cy)(t)?ln(t)?o(e,null,[t]):o(e,t):o(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&ln(n)&&(n=[n]),o(e,t,n))}const Vn="3.5.21",Kn=r.tE},4110:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});class o{static get icons(){return{hat:"icon-Hat",cloth:"icon-cloth",skate:"icon-clothes-skates",success:"icon-success-filling",info:"icon-Annotation",info2:"icon-info",aloud:"icon-info1",bug:"icon-Bug",coffee:"icon-coffee",key:"icon-icons-",potion:"icon-entertainment_life-potion",potion2:"icon-items-01",sword:"icon-Sword",warn:"icon-error",close:"icon-clear",search:"icon-Search",search2:"icon-search2",map:"icon-mind_map",share:"icon-planeo",download:"icon-download1f",scatter:"icon-scatter",dot:"icon-dot",size:"icon-Sizeguide",color:"icon-a-line-colorwheel",tag:"icon-memorandum",cube:"icon-cube",return:"icon-arrowleftcircle1187576easyiconnet",brush:"icon-paintbrush-1--brush-color-colors-design-paint-pain",redo:"icon-redo1",undo:"icon-undo1-copy",cut:"icon-jianqie",delete:"icon-Delete",setting:"icon-setting",fresh:"icon-reset_defalut",hammer:"icon-bold-sledgehammer",honeycomb:"icon-honeycomb-fill",sound:"icon-Sound-wave",wave:"icon-wave",help:"icon-Annotation1",save:"icon-igw-f-save",link:"icon-link1",fold:"icon-icon_Folding_solid-copy",theme:"icon-ic_theme",book:"icon-ReadingMode",location:"icon-locate",pdf:"icon-PDF-copy",catalogue:"icon-reader-catalogue",shadow:"icon-shadow-fill",bookmark:"icon-bookmark",fomula:"icon-a-Property1fomula",vortex:"icon-force_vortex-copy",copy:"icon-copy",font:"icon-FontFamily",fontsize:"icon-font-size",items:"icon-Items",play:"icon-playcircle",record:"icon-Metting",pause:"icon-pause",computer:"icon-screen",cards:"icon-yichuzhizonge",apple:"icon-fruits",grape:"icon-a-3244992_fruits_fruit_grape",banana:"icon-banana",orange:"icon-orange",cherry:"icon-cherry",carrot:"icon-sterwberry",berry:"icon-blueberry-01",eggplant:"icon-eggplant",melon:"icon-fi-sr-watermelon",fish:"icon-icon-dada-v2-fruits",cursor:"icon-cursor3",arrow_left:"icon-cc-arrow-left-square",arrow_right:"icon-cc-arrow-right-square",arrow_up:"icon-cc-arrow-up-square",arrow_down:"icon-cc-arrow-down-square",delete_row:"icon-shanchuhang",delete_col:"icon-shanchulie",merge_cell:"icon-hebingdanyuange",unmerge_cell:"icon-quxiaohebingdanyuange",stop:"icon-stop",dict:"icon-books",star:"icon-clean",dir:"icon-FolderOpen"}}}},4809:(e,t,n)=>{"use strict";n.d(t,{n:()=>o.n});var o=n(6234)},4860:(e,t,n)=>{"use strict";n.d(t,{d:()=>c});var o=n(4089),r=n(5483),i=n(4984),s=n(8018),a=n(2083),l=n(1931);class c extends s.e{constructor(e){super(e),this.init()}init(){this.listen_status(),this.listen_enter_before(),this.listen_input_before(),this.listen_composition_end(),this.listen_replace_id(),this.watch_config(),this.listen_node_status_click(),this.listen_esc(),this.listen_float()}listen_esc(){this.event.on_esc(()=>{const{config:e,float:t}=this,{map_node_exit_by_esc:n}=e.data,o=t.has_float;if(r.yg.show=!1,r.$q.show=!1,r.p.show=!1,t.close_fomula(),t.close_cubelist(),t.close_dict(),t.close_table(),t.close_rt(),!n||o)return;this.root instanceof a.CubeMap&&this.root.clear_node_editing();const i=this.root.cubes.get_types_cube(a._NoteCubeTypes.submap);for(let[e,t]of i)t.clear_node_editing()})}listen_float(){const{root:e,float:t}=this.editor,{event:n}=e;n.on_show_cube_editor(e=>{e instanceof a.CubeFomula?t.edit_fomula(e):e instanceof a.CubeRt&&t.edit_rt(e)}),n.on_text_link_edit(e=>{t.edit_text_link(e)}),n.on_selection_change(()=>{const{cursor:e}=this.root,{cube_end:n,offset_end:o}=e;n instanceof a.CubeText&&(t.update_float_pos(r.wF,e),t.update_float_pos(r.bK,e),t.update_float_pos(r.ks,e),t.update_float_pos(r.ud,e))}),n.on_fig_click(()=>{r.p.show=!1})}listen_composition_end(){const{config:e,dict:t,float:n,root:o}=this.editor;o.event.on_doc_input_compositionend(e=>{if(!r.QI.dict_open)return;const t=e.data;n.update_float_dict_candidate(t)})}watch_config(){const{config:e}=this.root;let t=!0;(0,o.wB)(this.config.data,(n,o)=>{t?t=!1:r.QI.saved=!1,r.QI.dict_open=n.dict_candidate_open,Object.assign(e.data,n)},{immediate:!0})}listen_status(){const{event:e}=this.root;let t=this.root.history.len_undo;e.on_status_update(e=>{Object.assign(r.QI,e),e.count_stack_undo!==t&&(r.QI.saved=!1),t=e.count_stack_undo}),(0,o.wB)(r.QI,e=>{this.event.emit_status_update()})}listen_input_before(){const{root:e}=this.editor,{event:t,courier:n,history:o,cursor:s}=e,c=[..."123456789"];t.on_doc_input_before(t=>{t.preventDefault();const{inputType:u}=t,{cube_end:d,cube_start:p,cube_selection:h,offset_start:f,offset_end:m,has_selection:v}=s;if(!h||!d||!p)return"stop";const g=t.data||"",b=p.id,_=d.id,y=h.id;if("insertText"===u)if(h instanceof a.CubeText&&g)if(r.ks.show&&r.ks.words.length>0&&c.includes(g)){const e=r.ks.items[Number(g)-1];if(e&&e.word){e.count++;const t=n.get_recorder();e.type===i.oE.keyword?this.ins_quick(t,e.word,h,f,m):this.ins(t,e.word,h,f,m),o.record(t)}}else if(r.ks.show&&" "===g){const e=r.ks.items[r.ks.active-1];if(e){e.count++;const t=n.get_recorder();e.type===i.oE.keyword?this.ins_quick(t,e.word,h,f,m):this.ins(t,e.word,h,f,m),o.record(t)}}else if(" "===g&&!v&&p instanceof a.CubeText){const e=n.get_recorder(),t=p.text.slice(0,f).trim(),r=(p.text.slice(f).trim(),p.pcube),i=l.E.check_input_hit(this.editor,t),{index:s,id:c}=p;if(i.hit){const n=i.text,l=a.CommandCube.partition(c,c,c,f,f),u=a.CommandText.reset(c,n,t.length,n.length),d=a.CommandCube.insert_child(r.id,i.cubedata,s+1);f<p.len&&e.tell(p,l),e.tell(p,u),e.tell(r,d),o.record(e)}else{const e=n.get_recorder();this.ins(e,g,h,f,m),o.record(e)}}else{const e=n.get_recorder();this.ins(e,g,h,f,m),o.record(e)}else{const e=n.get_recorder(),t=a.CubeText.get_default(g||"​"),r=a.CommandCube.insert(y,[t],b,_,f,m);e.tell(h,r),o.record(e)}else if("deleteContentBackward"===t.inputType||"deleteContentForward"===t.inputType){r.ks.show=!1;const i=n.get_recorder();if(this.root.scope_count_normal){const t=e.clipboard.delete_scope();t&&e.history.record(t)}else{let e="deleteContentBackward"===t.inputType?"backward":"forward";const n=a.CommandCube.delete(y,e,b,_,f,m);i.tell(h,n),o.record(i)}}return"stop"})}listen_enter_before(){const{root:e}=this.editor,{event:t,cursor:n,courier:o,history:s}=e;t.on_enter_before(e=>{if(!n.get_focus_line())return"continue";if(e.preventDefault(),r.ks.show){const{cube_selection:e,offset_start:t,offset_end:l}=n,c=r.ks.items[r.ks.active-1];if(c&&e&&e instanceof a.CubeText){const n=o.get_recorder();return c.count++,c.type===i.oE.keyword?this.ins_quick(n,c.word,e,t,l):this.ins(n,c.word,e,t,l),s.record(n),"stop"}}const{cube_end:t,cube_start:c,cube_selection:u,offset_end:d,offset_start:p}=n;if(!u||!t||!c)return"continue";const h=new a.Recorder(o),f=c.id,m=t.id;if(n.has_selection&&h.tell(u,a.CommandCube.delete(u.id,"backward",f,m,p,d,!0)),c instanceof a.CubeText){const e=c.text.slice(0,p).trim(),t=(c.text.slice(p).trim(),c.pcube),n=l.E.check_input_hit(this.editor,e),{index:o,id:r}=c;if(n.hit){const i=n.text,l=a.CommandCube.partition(r,r,r,p,p),u=a.CommandText.reset(r,i,e.length,i.length),d=a.CommandCube.insert_child(t.id,n.cubedata,o+1);return p<c.len&&h.tell(c,l),h.tell(c,u),h.tell(t,d),s.record(h),"stop"}}return h.tell(c,a.CommandText.break(c.id,p)),s.record(h),"stop"})}listen_replace_id(){const e=this.catalogue.update_anchor.bind(this.catalogue);this.event.on_replace_id(e),this.sidebar.event.on_text_merge(e)}ins(e,t,n,o,i){const{dict:s,float:l}=this.editor,c=n.text,u=c.slice(0,o)+t+c.slice(i),d=o+t.length,p=a.CommandText.reset(n.id,u,o,o+t.length);e.tell(n,p);const h=a.CommandCube.merge(n.id,"both",n.id,d);if(e.tell(n,h),r.QI.dict_open){const e=s.find_quick(n.text);l.update_float_dict_candidate(e||t)}return e}ins_quick(e,t,n,o,i){const{dict:s,float:l}=this.editor,c=n.text,u=c.slice(0,o),d=s.remove_quick(u)+t,p=d+c.slice(i);return e.tell(n,a.CommandText.reset(n.id,p,o,d.length)),r.QI.dict_open&&l.update_float_dict_candidate(t),e}listen_node_status_click(){const{root:e,float:t}=this,{courier:n,history:o,event:r}=e;r.on_node_status_click((e,r)=>{const{node:i,click:s}=r,l=n.get_recorder();if("root"===s){const e=a.CommandNode.layout_change(i.id,{root:!i.attrs.root});l.tell(i,e)}else if("layout"===s){const n={x:e.clientX,y:e.clientY};t.show_node_layout(n,i)}o.record(l)})}get meta(){return c.meta}export(){}update_data(e){return e}static get meta(){return{type:i.d2.listener,version:1}}}},4953:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});class o{static funcs=new Map;static get api_ask_ai(){return this.funcs.get("ask-ai")}static get api_parse_keyword(){return this.funcs.get("parse-keyword")}static get api_parse_association(){return this.funcs.get("parse-association")}static get api_get_noteinfo(){return this.funcs.get("noteinfo")}static get api_get_themes(){return this.funcs.get("get-themes")}static get api_get_bg(){return this.funcs.get("get-bg")}static register_ask_ai(e){this.funcs.set("ask-ai",e)}static register_parse_keyword(e){this.funcs.set("parse-keyword",e)}static register_parse_association(e){this.funcs.set("parse-association",e)}static register_noteinfo(e){this.funcs.set("noteinfo",e)}static register_get_themes(e){this.funcs.set("get-themes",e)}static register_get_bg(e){this.funcs.set("get-bg",e)}}},4984:(e,t,n)=>{"use strict";n.d(t,{oE:()=>a,I7:()=>u,UF:()=>s,zX:()=>r,lb:()=>c,U_:()=>l,GC:()=>d,l1:()=>i,d2:()=>o});var o=function(e){return e.ai="ai",e.api="api",e.catalogue="catalogue",e.convertors="convertors",e.dict="dict",e.dialog="dialog",e.event="event",e.editor="editor",e.fomula="fomula",e.float="float",e.listener="listener",e.sidebar="sidebar",e.menubar="menubar",e.memory="memory",e.toolbar="toolbar",e.statusbar="statusbar",e.presets="presets",e.hotkeys="hotkeys",e.config="config",e.search="search",e.theme="theme",e.tips="tips",e}({}),r=function(e){return e["fold-sidebar"]="fold-sidebar",e["fold-toolbar"]="fold-toolbar",e["import-md"]="import-md",e["mode-reading"]="mode-reading",e.record="record",e["dict-candidator"]="dict-candidator",e}({}),i=function(e){return e["bookmark-add"]="添加书签",e["fontsize-up"]="增加字号",e["fontsize-down"]="减小字号",e["search-doc"]="搜索",e["float-fomula"]="公式面板",e["float-cubelist"]="元素面板",e["text-add-link"]="添加超链接",e["paste-md"]="粘贴markdown",e["text-rt"]="添加文字标注",e}({}),s=function(e){return e.preset="preset",e.symbol="symbol",e.bracket="bracket",e.relation="relation",e.sup="sup",e.arrow="arrow",e.operator="operator",e.matrix="matrix",e.expression="expression",e}({}),a=function(e){return e.keyword="keyword",e.associate="associate",e}({}),l=function(e){return e.std="标准模式",e.edit="编辑模式",e.delete="删除模式",e}({}),c=function(e){return e.align="align",e.annotation="annotation",e.border="border",e.bookmark="bookmark",e.bold_italic="bold_italic",e.color="color",e.compose="compose",e.emphasis="emphasis",e.fomula="fomula",e.font="font",e.format_brush="format_brush",e.history="history",e.indent="indent",e.node_layout="node_layout",e.node_style="node_style",e.paste="paste",e.speak="speak",e.scope="scope",e.spacing="spacing",e.underline="underline",e.write_mode="write_mode",e.rt="rt",e}({}),u=function(e){return e.cubelist="cubelist",e.fomula="fomula",e.dict="dict",e.line_edit="line_edit",e.link_ask="link_ask",e.add_dict="add_dict",e.table="table",e.node_layout="node_layout",e.rt="rt",e}({}),d=function(e){return e["status-update"]="status-update",e["export-show"]="export-show",e["render-end"]="render-end",e}({})},5024:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var o=n(7633),r=n(4984);const i=(0,o.Kh)({cube:null,group:null,type:"bookmark",tagname:"",group_bg:"transparent",tip:"",mode:r.U_.std})},5037:(e,t,n)=>{"use strict";n.d(t,{U:()=>l});var o=n(7633),r=n(4984),i=n(8018),s=n(28),a=n(2083);class l extends i.e{data;constructor(e){super(e),this.data=(0,o.Kh)(this.uidata.memory||s.U.memory),this.init()}init(){this.event.on_render_end(()=>{this.recover_cursor()}),this.root.event.on_edit_after((e,t)=>{(t.name===a._CursorCommandName.cursor_in_head||t.name===a._CursorCommandName.cursor_in_tail)&&(this.data.location=t)})}recover_cursor(){const e=this.data.location;e&&(this.root.courier.pass(e),this.tips.tip_violet("已为您恢复上次编辑位置"))}get meta(){return l.meta}export(){return structuredClone((0,o.ux)(this.data))}update_data(e){return e}static get meta(){return{type:r.d2.memory,version:1}}}},5347:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var o=n(4984),r=n(8018);class i extends r.e{get meta(){return i.meta}constructor(e){super(e)}export(){}update_data(e){return e}static get meta(){return{type:o.d2.dialog,version:1}}}},5450:(e,t,n)=>{"use strict";n.d(t,{i:()=>we});var o=n(4984),r=n(8018);var i={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function s(e){i=e}var a={exec:()=>null};function l(e,t=""){let n="string"==typeof e?e:e.source;const o={replace:(e,t)=>{let r="string"==typeof t?t:t.source;return r=r.replace(c.caret,"$1"),n=n.replace(e,r),o},getRegex:()=>new RegExp(n,t)};return o}var c={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,d=/(?:[*+-]|\d{1,9}[.)])/,p=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,h=l(p).replace(/bull/g,d).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),f=l(p).replace(/bull/g,d).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),m=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,v=/(?!\s*\])(?:\\.|[^\[\]\\])+/,g=l(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",v).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),b=l(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,d).getRegex(),_="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",y=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,x=l("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",y).replace("tag",_).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),w=l(m).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),k={blockquote:l(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",w).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:g,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:u,html:x,lheading:h,list:b,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:w,table:a,text:/^[^\n]+/},R=l("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),C={...k,lheading:f,table:R,paragraph:l(m).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",R).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex()},S={...k,html:l("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",y).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:a,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:l(m).replace("hr",u).replace("heading"," *#{1,6} *[^\n]").replace("lheading",h).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},E=/^( {2,}|\\)\n(?!\s*$)/,M=/[\p{P}\p{S}]/u,T=/[\s\p{P}\p{S}]/u,L=/[^\s\p{P}\p{S}]/u,I=l(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,T).getRegex(),O=/(?!~)[\p{P}\p{S}]/u,A=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,B=l(A,"u").replace(/punct/g,M).getRegex(),N=l(A,"u").replace(/punct/g,O).getRegex(),W="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$=l(W,"gu").replace(/notPunctSpace/g,L).replace(/punctSpace/g,T).replace(/punct/g,M).getRegex(),z=l(W,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,O).getRegex(),P=l("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,L).replace(/punctSpace/g,T).replace(/punct/g,M).getRegex(),F=l(/\\(punct)/,"gu").replace(/punct/g,M).getRegex(),D=l(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),V=l(y).replace("(?:--\x3e|$)","--\x3e").getRegex(),K=l("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",V).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),j=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,X=l(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",j).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),H=l(/^!?\[(label)\]\[(ref)\]/).replace("label",j).replace("ref",v).getRegex(),G=l(/^!?\[(ref)\](?:\[\])?/).replace("ref",v).getRegex(),q={_backpedal:a,anyPunctuation:F,autolink:D,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:E,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:a,emStrongLDelim:B,emStrongRDelimAst:$,emStrongRDelimUnd:P,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:X,nolink:G,punctuation:I,reflink:H,reflinkSearch:l("reflink|nolink(?!\\()","g").replace("reflink",H).replace("nolink",G).getRegex(),tag:K,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:a},U={...q,link:l(/^!?\[(label)\]\((.*?)\)/).replace("label",j).getRegex(),reflink:l(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",j).getRegex()},Q={...q,emStrongRDelimAst:z,emStrongLDelim:N,url:l(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Y={...Q,br:l(E).replace("{2,}","*").getRegex(),text:l(Q.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Z={normal:k,gfm:C,pedantic:S},J={normal:q,gfm:Q,breaks:Y,pedantic:U},ee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},te=e=>ee[e];function ne(e,t){if(t){if(c.escapeTest.test(e))return e.replace(c.escapeReplace,te)}else if(c.escapeTestNoEncode.test(e))return e.replace(c.escapeReplaceNoEncode,te);return e}function oe(e){try{e=encodeURI(e).replace(c.percentDecode,"%")}catch{return null}return e}function re(e,t){const n=e.replace(c.findPipe,(e,t,n)=>{let o=!1,r=t;for(;--r>=0&&"\\"===n[r];)o=!o;return o?"|":" |"}).split(c.splitPipe);let o=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(c.slashPipe,"|");return n}function ie(e,t,n){const o=e.length;if(0===o)return"";let r=0;for(;r<o;){const i=e.charAt(o-r-1);if(i!==t||n){if(i===t||!n)break;r++}else r++}return e.slice(0,o-r)}function se(e,t,n,o,r){const i=t.href,s=t.title||null,a=e[1].replace(r.other.outputLinkReplace,"$1");o.state.inLink=!0;const l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:i,title:s,text:a,tokens:o.inlineTokens(a)};return o.state.inLink=!1,l}var ae=class{options;rules;lexer;constructor(e){this.options=e||i}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ie(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t,n){const o=e.match(n.other.indentCodeCompensation);if(null===o)return t;const r=o[1];return t.split("\n").map(e=>{const t=e.match(n.other.beginningSpace);if(null===t)return e;const[o]=t;return o.length>=r.length?e.slice(r.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){const t=ie(e,"#");this.options.pedantic?e=t.trim():t&&!this.rules.other.endingSpaceChar.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ie(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=ie(t[0],"\n").split("\n"),n="",o="";const r=[];for(;e.length>0;){let t=!1;const i=[];let s;for(s=0;s<e.length;s++)if(this.rules.other.blockquoteStart.test(e[s]))i.push(e[s]),t=!0;else{if(t)break;i.push(e[s])}e=e.slice(s);const a=i.join("\n"),l=a.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${a}`:a,o=o?`${o}\n${l}`:l;const c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,r,!0),this.lexer.state.top=c,0===e.length)break;const u=r.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){const t=u,i=t.raw+"\n"+e.join("\n"),s=this.blockquote(i);r[r.length-1]=s,n=n.substring(0,n.length-t.raw.length)+s.raw,o=o.substring(0,o.length-t.text.length)+s.text;break}if("list"===u?.type){const t=u,i=t.raw+"\n"+e.join("\n"),s=this.list(i);r[r.length-1]=s,n=n.substring(0,n.length-u.raw.length)+s.raw,o=o.substring(0,o.length-t.raw.length)+s.raw,e=i.substring(r.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:r,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const o=n.length>1,r={type:"list",raw:"",ordered:o,start:o?+n.slice(0,-1):"",loose:!1,items:[]};n=o?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=o?n:"[*+-]");const i=this.rules.other.listItemRegex(n);let s=!1;for(;e;){let n=!1,o="",a="";if(!(t=i.exec(e)))break;if(this.rules.block.hr.test(e))break;o=t[0],e=e.substring(o.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],u=!l.trim(),d=0;if(this.options.pedantic?(d=2,a=l.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,a=l.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(o+=c+"\n",e=e.substring(c.length+1),n=!0),!n){const t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),r=this.rules.other.fencesBeginRegex(d),i=this.rules.other.headingBeginRegex(d),s=this.rules.other.htmlBeginRegex(d);for(;e;){const p=e.split("\n",1)[0];let h;if(c=p,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),h=c):h=c.replace(this.rules.other.tabCharGlobal," "),r.test(c))break;if(i.test(c))break;if(s.test(c))break;if(t.test(c))break;if(n.test(c))break;if(h.search(this.rules.other.nonSpaceChar)>=d||!c.trim())a+="\n"+h.slice(d);else{if(u)break;if(l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4)break;if(r.test(l))break;if(i.test(l))break;if(n.test(l))break;a+="\n"+c}u||c.trim()||(u=!0),o+=p+"\n",e=e.substring(p.length+1),l=h.slice(d)}}r.loose||(s?r.loose=!0:this.rules.other.doubleBlankLine.test(o)&&(s=!0));let p,h=null;this.options.gfm&&(h=this.rules.other.listIsTask.exec(a),h&&(p="[ ] "!==h[0],a=a.replace(this.rules.other.listReplaceTask,""))),r.items.push({type:"list_item",raw:o,task:!!h,checked:p,loose:!1,text:a,tokens:[]}),r.raw+=o}const a=r.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),r.raw=r.raw.trimEnd();for(let e=0;e<r.items.length;e++)if(this.lexer.state.top=!1,r.items[e].tokens=this.lexer.blockTokens(r.items[e].text,[]),!r.loose){const t=r.items[e].tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));r.loose=n}if(r.loose)for(let e=0;e<r.items.length;e++)r.items[e].loose=!0;return r}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:o}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!this.rules.other.tableDelimiter.test(t[2]))return;const n=re(t[1]),o=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===o.length){for(const e of o)this.rules.other.tableAlignRight.test(e)?i.align.push("right"):this.rules.other.tableAlignCenter.test(e)?i.align.push("center"):this.rules.other.tableAlignLeft.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<n.length;e++)i.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:i.align[e]});for(const e of r)i.rows.push(re(e,i.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]})));return i}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;const t=ie(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let o=0;o<e.length;o++)if("\\"===e[o])o++;else if(e[o]===t[0])n++;else if(e[o]===t[1]&&(n--,n<0))return o;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],o="";if(this.options.pedantic){const e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],o=e[3])}else o=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),se(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:o?o.replace(this.rules.inline.anyPunctuation,"$1"):o},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return se(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let o=this.rules.inline.emStrongLDelim.exec(e);if(o&&(!o[3]||!n.match(this.rules.other.unicodeAlphaNumeric))&&(!o[1]&&!o[2]||!n||this.rules.inline.punctuation.exec(n))){const n=[...o[0]].length-1;let r,i,s=n,a=0;const l="*"===o[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(o=l.exec(t));){if(r=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!r)continue;if(i=[...r].length,o[3]||o[4]){s+=i;continue}if((o[5]||o[6])&&n%3&&!((n+i)%3)){a+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s+a);const t=[...o[0]][0].length,l=e.slice(0,n+o.index+t+i);if(Math.min(n,i)%2){const e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}const c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," ");const n=this.rules.other.nonSpaceChar.test(e),o=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&o&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let o;do{o=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(o!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},le=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||i,this.options.tokenizer=this.options.tokenizer||new ae,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={other:c,block:Z.normal,inline:J.normal};this.options.pedantic?(t.block=Z.pedantic,t.inline=J.pedantic):this.options.gfm&&(t.block=Z.gfm,this.options.breaks?t.inline=J.breaks:t.inline=J.gfm),this.tokenizer.rules=t}static get rules(){return{block:Z,inline:J}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(c.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(c.tabCharGlobal," ").replace(c.spaceLine,""));e;){let o;if(this.options.extensions?.block?.some(n=>!!(o=n.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);const n=t.at(-1);1===o.raw.length&&void 0!==n?n.raw+="\n":t.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);const n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+o.raw,n.text+="\n"+o.text,this.inlineQueue.at(-1).src=n.text):t.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);const n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+o.raw,n.text+="\n"+o.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),t.push(o);continue}let r=e;if(this.options.extensions?.startBlock){let t=1/0;const n=e.slice(1);let o;this.options.extensions.startBlock.forEach(e=>{o=e.call({lexer:this},n),"number"==typeof o&&o>=0&&(t=Math.min(t,o))}),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(o=this.tokenizer.paragraph(r))){const i=t.at(-1);n&&"paragraph"===i?.type?(i.raw+="\n"+o.raw,i.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(o),n=r.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);const n=t.at(-1);"text"===n?.type?(n.raw+="\n"+o.raw,n.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(o);continue}if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,o=null;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,o.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let r=!1,i="";for(;e;){let o;if(r||(i=""),r=!1,this.options.extensions?.inline?.some(n=>!!(o=n.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);const n=t.at(-1);"text"===o.type&&"text"===n?.type?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0;const n=e.slice(1);let o;this.options.extensions.startInline.forEach(e=>{o=e.call({lexer:this},n),"number"==typeof o&&o>=0&&(t=Math.min(t,o))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),"_"!==o.raw.slice(-1)&&(i=o.raw.slice(-1)),r=!0;const n=t.at(-1);"text"===n?.type?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},ce=class{options;parser;constructor(e){this.options=e||i}space(e){return""}code({text:e,lang:t,escaped:n}){const o=(t||"").match(c.notSpaceStart)?.[0],r=e.replace(c.endingNewline,"")+"\n";return o?'<pre><code class="language-'+ne(o)+'">'+(n?r:ne(r,!0))+"</code></pre>\n":"<pre><code>"+(n?r:ne(r,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,n=e.start;let o="";for(let t=0;t<e.items.length;t++){const n=e.items[t];o+=this.listitem(n)}const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+o+"</"+r+">\n"}listitem(e){let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===e.tokens[0]?.type?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+ne(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let o="";for(let t=0;t<e.rows.length;t++){const r=e.rows[t];n="";for(let e=0;e<r.length;e++)n+=this.tablecell(r[e]);o+=this.tablerow({text:n})}return o&&(o=`<tbody>${o}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+o+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ne(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const o=this.parser.parseInline(n),r=oe(e);if(null===r)return o;let i='<a href="'+(e=r)+'"';return t&&(i+=' title="'+ne(t)+'"'),i+=">"+o+"</a>",i}image({href:e,title:t,text:n,tokens:o}){o&&(n=this.parser.parseInline(o,this.parser.textRenderer));const r=oe(e);if(null===r)return ne(n);let i=`<img src="${e=r}" alt="${n}"`;return t&&(i+=` title="${ne(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ne(e.text)}},ue=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},de=class e{options;renderer;textRenderer;constructor(e){this.options=e||i,this.options.renderer=this.options.renderer||new ce,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ue}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let o=0;o<e.length;o++){const r=e[o];if(this.options.extensions?.renderers?.[r.type]){const e=r,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){n+=t||"";continue}}const i=r;switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let r=i,s=this.renderer.text(r);for(;o+1<e.length&&"text"===e[o+1].type;)r=e[++o],s+="\n"+this.renderer.text(r);n+=t?this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s,escaped:!0}]}):s;continue}default:{const e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let o=0;o<e.length;o++){const r=e[o];if(this.options.extensions?.renderers?.[r.type]){const e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){n+=e||"";continue}}const i=r;switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{const e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}},pe=class{options;block;constructor(e){this.options=e||i}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?le.lex:le.lexInline}provideParser(){return this.block?de.parse:de.parseInline}},he=class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=de;Renderer=ce;TextRenderer=ue;Lexer=le;Tokenizer=ae;Hooks=pe;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(const o of e)switch(n=n.concat(t.call(this,o)),o.type){case"table":{const e=o;for(const o of e.header)n=n.concat(this.walkTokens(o.tokens,t));for(const o of e.rows)for(const e of o)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=o;n=n.concat(this.walkTokens(e.items,t));break}default:{const e=o;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(o=>{const r=e[o].flat(1/0);n=n.concat(this.walkTokens(r,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{const n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let o=e.renderer.apply(this,t);return!1===o&&(o=n.apply(this,t)),o}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){const t=this.defaults.renderer||new ce(this.defaults);for(const n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;const o=n,r=e.renderer[o],i=t[o];t[o]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new ae(this.defaults);for(const n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const o=n,r=e.tokenizer[o],i=t[o];t[o]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new pe;for(const n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;const o=n,r=e.hooks[o],i=t[o];pe.passThroughHooks.has(n)?t[o]=e=>{if(this.defaults.async)return Promise.resolve(r.call(t,e)).then(e=>i.call(t,e));const n=r.call(t,e);return i.call(t,n)}:t[o]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,o=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(o.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return le.lex(e,t??this.defaults)}parser(e,t){return de.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{const o={...n},r={...this.defaults,...o},i=this.onError(!!r.silent,!!r.async);if(!0===this.defaults.async&&!1===o.async)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(null==t)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));r.hooks&&(r.hooks.options=r,r.hooks.block=e);const s=r.hooks?r.hooks.provideLexer():e?le.lex:le.lexInline,a=r.hooks?r.hooks.provideParser():e?de.parse:de.parseInline;if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(t):t).then(e=>s(e,r)).then(e=>r.hooks?r.hooks.processAllTokens(e):e).then(e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then(()=>e):e).then(e=>a(e,r)).then(e=>r.hooks?r.hooks.postprocess(e):e).catch(i);try{r.hooks&&(t=r.hooks.preprocess(t));let e=s(t,r);r.hooks&&(e=r.hooks.processAllTokens(e)),r.walkTokens&&this.walkTokens(e,r.walkTokens);let n=a(e,r);return r.hooks&&(n=r.hooks.postprocess(n)),n}catch(e){return i(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+ne(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},fe=new he;function me(e,t){return fe.parse(e,t)}me.options=me.setOptions=function(e){return fe.setOptions(e),me.defaults=fe.defaults,s(me.defaults),me},me.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},me.defaults=i,me.use=function(...e){return fe.use(...e),me.defaults=fe.defaults,s(me.defaults),me},me.walkTokens=function(e,t){return fe.walkTokens(e,t)},me.parseInline=fe.parseInline,me.Parser=de,me.parser=de.parse,me.Renderer=ce,me.TextRenderer=ue,me.Lexer=le,me.lexer=le.lex,me.Tokenizer=ae,me.Hooks=pe,me.parse=me,me.options,me.setOptions,me.use,me.walkTokens,me.parseInline,de.parse,le.lex;var ve=n(2083);function ge(e){const t=[];for(let n of e){if("space"===n.type)continue;const e=ye.get(n.type);if(e){const o=e(n);Array.isArray(o)?t.push(...o):t.push(o)}else t.push(be(n))}return t}function be(e){return"space"===e.type?ve.CubeLine.get_default():ve.CubeLine.get_default_by_string(e.raw)}function _e(e){const t=[];for(let n of e){const{task:e,checked:o,text:r,tokens:i}=n;let s=ge(i);if(e){const e=ve.CubeTodo.get_default();e.info.length=0;const t=ve.CubeTodo.get_todo_item(s,o);e.info.push(t)}else t.push(ve.CubeList.get_list_item(s))}return t}const ye=new Map,xe=[["blockquote",function(e){const{tokens:t,text:n}=e,o=ge(t);return ve.CubeTip.get_default(o)}],["code",function(e){const{lang:t,text:n}=e;if("latex"===t){const e=ve.CubeFomula.get_default(n);return e.attrs.block=!0,e.attrs.size=ve._FomulaSize.h3,e}{const e=Object.values(ve.CodeLanguageMap).includes(t)?t:"typescript",o=ve.CubeCode.get_default_by_string(e,n);return o.info.active_tab_id=o.info.tabs[0].id,o.attrs.codebg="rgba(35, 38, 46, 0.85)",o}}],["codespan",function(e){return ve.CubeText.get_default(e.text)}],["table",function(e){const{align:t,header:n,rows:o}=e,r=[o.length+1,n.length],i=[];for(let e=0;e<n.length;e++){const{tokens:t}=n[e],o=ve.CubeBox.get_default(ge(t)),r={row:0,col:e,rowspan:1,colspan:1,data:o};o.css={background:"rgba(211, 211, 211, 0.5)",padding:"0px 5px"},i.push(r)}for(let e=0;e<o.length;e++){const t=o[e];for(let n=0;n<t.length;n++){const{tokens:o}=t[n],r={row:e+1,col:n,rowspan:1,colspan:1,data:ve.CubeBox.get_default(ge(o))};i.push(r)}}return ve.CubeTable.get_default_by_data(r,i)}],["del",function(e){const t=ve.CubeText.get_default(e.text);return t.css={"text-decoration":"line-through"},t}],["em",function(e){const t=ve.CubeText.get_default(e.text);return t.css={"font-style":"italic"},t}],["escape",function(e){return ve.CubeText.get_default(e.text)}],["heading",function(e){const{tokens:t}=e,n=ge(t);for(let t of n)t.css["font-weight"]="bold",t.css["font-size"]=16+2*(6-e.depth)+"px";return ve.CubeLine.get_default(n)}],["hr",function(e){const t=ve.CubeText.get_default();return t.css={display:"block","border-top":"1px dashed"},ve.CubeLine.get_default([t])}],["html",function(e){const{block:t,text:n}=e;if(t)return ve.CubeCode.get_default_by_string("html",n);{const e=ve.CubeText.get_default(n);return e.css={color:"turquoise"},e}}],["image",function(e){const{href:t}=e;return ve.CubeImg.get_default(t)}],["link",function(e){const{href:t,title:n,text:o}=e,r=ve.CubeText.get_default(o),i=ve.CubePostil.get_default(),s=ve.CubeTextLink.get_default(t,n||"");return i.info.push(s),r.attrs={mark:i},r}],["list",function(e){const{ordered:t,items:n}=e,o=t?ve.CubeListOrdered.get_default():ve.CubeList.get_default();o.info.length=0;const r=_e(n);return o.info.push(...r),o}],["listitem",_e],["paragraph",function(e){const{text:t,tokens:n}=e,o=ge(n);return ve.CubeLine.get_default(o)}],["strong",function(e){const t=ve.CubeText.get_default(e.text);return t.css={"font-weight":"bold"},t}],["text",function(e){const{text:t,tokens:n}=e,o=[...t.matchAll(/\$\$?(.+?)\$\$?/g)];if(o.length>0){const e=[],n=o[0];let r=0;if(n.index>=0){const o=t.slice(0,n.index);if(o){const t=me.lexer(o);e.push(...ge(t))}const i=ve.CubeFomula.get_default(n[1]);n[0].startsWith("$$")&&(i.attrs.block=!0,i.attrs.size=ve._FomulaSize.h3),e.push(i),r=n[0].length+n.index}for(let n of o.slice(1)){const o=n.index;if(o>r){const n=t.slice(r,o),i=me.lexer(n);e.push(...ge(i))}const i=ve.CubeFomula.get_default(n[1]);n[0].startsWith("$$")&&(i.attrs.block=!0,i.attrs.size=ve._FomulaSize.h3),e.push(i),r=n.index+n[0].length}if(r<t.length){const n=t.slice(r),o=me.lexer(n);e.push(...ge(o))}return e}return n?ge(n):[ve.CubeText.get_default(t)]}]];for(let[e,t]of xe)ye.set(e,t);class we extends r.e{_marked=new he;get meta(){return we.meta}get marked(){return this._marked}constructor(e){super(e)}import_md(e){const t=[],n=this.marked.lexer(e);for(let e of n){const n=ye.get(e.type);n?t.push(n(e)):t.push(be(e))}return{cubedata:t,tokens:n}}export(){}update_data(e){return e}static get meta(){return{type:o.d2.convertors,version:1}}}},5481:(e,t,n)=>{"use strict";n.d(t,{Ak:()=>o});let o=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t}},5483:(e,t,n)=>{"use strict";n.d(t,{c1:()=>a.c,jm:()=>d,QI:()=>o.Q,I_:()=>u,bl:()=>l,pw:()=>c.p,A0:()=>s,SH:()=>i,bK:()=>b,ks:()=>v,$3:()=>m,wF:()=>g,yg:()=>_,$q:()=>y,p:()=>x,Sg:()=>w,ud:()=>f});var o=n(6424),r=n(7633);const i=(0,r.Kh)({display:"none",opacity:0,pointer_events:"none",x:0,y:0,active_key:"",cube:void 0,has_update_font_list:!1,cssitems:[]}),s=(0,r.Kh)({saved:!0});var a=n(5024);const l=(0,r.Kh)({});var c=n(3709);const u=(0,r.Kh)({mode:"std",keyinfo:null,temp:{meta:!1,ctrl:!1,shift:!1,alt:!1,key:""}}),d=(0,r.Kh)({show_presets:!1,show_bookmark:!1,show_css:!1});var p=n(4984),h=n(2083);const f=(0,r.Kh)({type:p.I7.table,show:!1,dom:null,css:{},size:{x:0,y:0,width:160,height:160}}),m=(0,r.Kh)({type:p.I7.add_dict,tab:p.oE.keyword,show:!1,dom:null,size:{x:0,y:0,width:0,height:0},css:{}}),v=(0,r.Kh)({_page:1,_active:1,type:p.I7.dict,show:!1,size:{x:0,y:0,width:750,height:43},get page(){return this._page},set page(e){const t=Math.ceil(this.words.length/9);e<1||e>t||(this._page=e)},get active(){return this._active},set active(e){e<1||e>this.items.length||(this._active=e)},dom:null,words:[],get items(){return this.words.slice(9*(this.page-1),9*this.page)},css:{}}),g=(0,r.Kh)({type:p.I7.fomula,size:{x:0,y:0,width:800,height:250},show:!1,dom:void 0,scale:h._FomulaSize.h4,anchor:void 0,pos:0,cube:void 0,latex:"",css:{}}),b=(0,r.Kh)({show:!1,type:p.I7.cubelist,dom:void 0,size:{width:560,height:284,x:0,y:0},cubelist:[],search:"",tab:"cubes",css:{}}),_=(0,r.Kh)({type:p.I7.link_ask,dom:void 0,cube:null,title:"",url:"",offset_start:0,offset_end:0,show:!1,left:"0px",top:"0px",size:{x:0,y:0,width:270,height:183},css:{}}),y=(0,r.Kh)({type:p.I7.line_edit,dom:void 0,cube:null,show:!1,url:"",title:"",left:"0px",top:"0px",size:{x:0,y:0,width:270,height:183},css:{}}),x=(0,r.Kh)({type:p.I7.node_layout,show:!1,dom:null,node:void 0,css:{},size:{x:0,y:0,width:160,height:25}}),w=(0,r.Kh)({type:p.I7.rt,show:!1,dom:null,cube:null,css:{},size:{x:0,y:0,width:160,height:25}})},5623:(e,t,n)=>{"use strict";n.d(t,{T:()=>r,y:()=>o});const o=[{name:"墨黑",value:"#062726"},{name:"深灰",value:"#696969"},{name:"中灰",value:"#A9A9A9"},{name:"浅灰",value:"#D3D3D3"},{name:"纯白",value:"#ffffff"},{name:"正红",value:"#ff0054"},{name:"橘红",value:"#fe6d73"},{name:"粉红",value:"#fb6f92"},{name:"砖红",value:"#ef8354"},{name:"桃红",value:"#ffc2d1"},{name:"正黄",value:"#f8f362"},{name:"橙黄",value:"#FFA500"},{name:"橘黄",value:"#ffca3a"},{name:"米黄",value:"#f4e285"},{name:"淡黄",value:"#ffef9f"},{name:"正绿",value:"#00FF00"},{name:"蓝绿",value:"#00B8B8"},{name:"草绿",value:"#5dd39e"},{name:"棕绿",value:"#bce784"},{name:"浅绿",value:"#caffbf"},{name:"正蓝",value:"#2176ff"},{name:"蔚蓝",value:"#33a1fd"},{name:"碧蓝",value:"#008E97"},{name:"水蓝",value:"#06bee1"},{name:"浅蓝",value:"#bee9e8"},{name:"正紫",value:"#6a00f4"},{name:"绛紫",value:"#a100f2"},{name:"绯紫",value:"#d100d1"},{name:"青紫",value:"#9370DB"},{name:"淡紫",value:"#e0c3fc"}],r=[{name:"墨黑",value:"#062726"},{name:"深灰",value:"#696969"},{name:"中灰",value:"#A9A9A9"},{name:"浅灰",value:"#D3D3D3"},{name:"纯白",value:"#ffffff"},{name:"正红",value:"#ff0054"},{name:"橘红",value:"#fe6d73"},{name:"粉红",value:"#fb6f92"},{name:"砖红",value:"#ef8354"},{name:"桃红",value:"#ffc2d1"},{name:"正黄",value:"#f8f362"},{name:"橙黄",value:"#FFA500"},{name:"橘黄",value:"#ffca3a"},{name:"米黄",value:"#f4e285"},{name:"淡黄",value:"#ffef9f"},{name:"正绿",value:"#00FF00"},{name:"蓝绿",value:"#00B8B8"},{name:"草绿",value:"#5dd39e"},{name:"棕绿",value:"#bce784"},{name:"浅绿",value:"#caffbf"},{name:"正蓝",value:"#2176ff"},{name:"蔚蓝",value:"#33a1fd"},{name:"碧蓝",value:"#008E97"},{name:"水蓝",value:"#06bee1"},{name:"浅蓝",value:"#bee9e8"},{name:"正紫",value:"#6a00f4"},{name:"绛紫",value:"#a100f2"},{name:"绯紫",value:"#d100d1"},{name:"青紫",value:"#9370DB"},{name:"淡紫",value:"#e0c3fc"}]},6219:(e,t,n)=>{"use strict";n.d(t,{m:()=>c});var o=n(5481),r=n(4984),i=n(8018),s=n(2083),a=n(7633),l=n(5483);class c extends i.e{data;get doc_mode_name(){return this.root.stats.mode_name}get meta(){return c.meta}get items(){return[...this.data.items]}get init_data(){const e=this,{root:t,tips:n}=e,{stats:r}=t;return{items:[{id:(0,o.Ak)(),class:["iconfont","icon-locate"],tooltip:"当前根•根级块总量",get text(){return`${l.QI.active_root_index}•${l.QI.count_root}`},click:(e,t)=>{}},{id:(0,o.Ak)(),class:["iconfont","icon-word"],tooltip:"字符数量",get text(){return l.QI.count_word+""},click:(e,t)=>{this.check_dom()}},{id:(0,o.Ak)(),tooltip:"正常块选区•块选区总量",get class(){const e=["iconfont","icon-scope-copy"];return l.QI.count_scope_normal>0&&e.push("has-scope"),e},get text(){return`${l.QI.count_scope_normal}•${l.QI.count_scope_all}`},click:(e,t)=>{}},{id:(0,o.Ak)(),tooltip:"撤销步数•重做步数",get class(){return["iconfont","icon-Stack"]},get text(){return`${l.QI.count_stack_undo}•${l.QI.count_stack_redo}`},click:(e,t)=>{}},{id:(0,o.Ak)(),tooltip:"文档模式",get class(){const e=["iconfont","icon-ReadingMode"];return l.QI.mode===s._NoteMode.read&&e.push("mode-reading"),e},get text(){return e.doc_mode_name},click:(t,o)=>{r.mode=r.mode===s._NoteMode.read?s._NoteMode.edit:s._NoteMode.read,n.tip_info(`当前为${e.doc_mode_name}`)}},{id:(0,o.Ak)(),tooltip:"保存状态",get class(){const e=["iconfont","icon-saved"];return l.QI.saved||e.push("notsave"),e},get text(){return l.QI.saved?"已保存":"未保存"},click:(e,t)=>{}}]}}constructor(e){super(e),this.data=(0,a.Kh)(this.init_data)}export(){}update_data(e){return e}register(e,t=-1){t>0?this.data.items.splice(t,0,e):this.data.items.push(e)}remove_item(e){const t=this.data.items.find(t=>t.id===e);if(!t)return;const n=this.data.items.indexOf(t);n>=0&&this.data.items.splice(n,1)}check_dom(){const e=document.querySelectorAll("*").length;let t=`当前dom总数${e}•${["性能优秀","性能良好","性能较好","性能一般","性能较弱","性能较差","性能堪忧"][Math.floor(e/5e3)]||""}`;this.tips.tip_red(t)}static get meta(){return{type:r.d2.statusbar,version:1}}}},6234:(e,t,n)=>{"use strict";n.d(t,{n:()=>l});var o=n(4984),r=n(8018),i=n(7633),s=n(6424),a=n(5483);class l extends r.e{data;get meta(){return l.meta}get items(){return this.data.items}constructor(e){super(e),this.data=(0,i.Kh)(this.uidata.presets)}export(){return structuredClone((0,i.ux)(this.data))}update_data(e){return e}add_item(e){this.data.items.push(e)}show_preset(){this.root.scope_count_normal>0?a.jm.show_presets=!0:this.tips.tip_warning("当前无块选区")}add_scope(e,t){if(0===this.root.scope_count_normal)return;a.jm.show_presets=!1;const n={name1:e,name2:t,data:this.root.get_scope_cubes_data()};this.add_item(n),this.root.clear_scope(),s.Q.saved=!1}static get meta(){return{type:o.d2.presets,version:1}}}},6393:(e,t,n)=>{"use strict";n.d(t,{L:()=>d});var o=n(7633),r=n(4984),i=n(8018),s=n(4110);const a=n.p+"audio/info1.mp3",l=n.p+"audio/info2.mp3",c=n.p+"audio/info3.mp3",u=n.p+"audio/warn.mp3";class d extends i.e{msgs=(0,o.Kh)(new Set);get meta(){return d.meta}constructor(e){super(e)}export(){}update_data(e){return e}add_tip(e){return this.msgs.add(e)}remove_tip(e){return this.msgs.delete(e)}tip(e){const t={msg:e.msg,id:e.id||Date.now()+this.msgs.size+"",duration:e.duration,icon:e.icon||s.$.icons.aloud,click:e.click,css:e.css||{background:"var(--statusbar-tip-default-bg)",color:"black"}};return this.add_tip(t),t.duration!==Number.POSITIVE_INFINITY&&setTimeout(()=>{this.remove_tip(t)},t.duration),()=>this.remove_tip(t)}tip_error(e,t=9e3,n){try{new Audio(u).play()}catch{}return this.tip({msg:e,duration:t,icon:s.$.icons.close,css:{background:"var(--statusbar-tip-error-bg)",color:"snow"},click:n})}tip_warning(e,t=9e3,n){try{new Audio(u).play()}catch{}return this.tip({msg:e,duration:t,icon:s.$.icons.warn,css:{background:"var(--statusbar-tip-warning-bg)",color:"black"},click:n})}tip_success(e,t=9e3,n){try{new Audio(l).play()}catch{}return this.tip({msg:e,duration:t,icon:s.$.icons.success,css:{background:"var(--statusbar-tip-success-bg)",color:"black"},click:n})}tip_info(e,t=9e3,n){try{new Audio(a).play()}catch{}return this.tip({msg:e,duration:t,icon:s.$.icons.info,click:n})}tip_bug(e,t=9e3,n){try{new Audio(u).play()}catch{}return this.tip({msg:e,duration:t,icon:s.$.icons.bug,css:{background:"var(--statusbar-tip-bug-bg)",color:"snow"},click:n})}tip_aloud(e,t=9e3,n){try{new Audio(c).play()}catch{}return this.tip({msg:e,duration:t,icon:s.$.icons.aloud,css:{background:"var(--statusbar-tip-aloud-bg)",color:"black"},click:n})}tip_red(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||s.$.icons.cherry,css:{background:"var(--statusbar-tip-red-bg)",color:"snow"},click:o})}tip_orange(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||s.$.icons.orange,css:{background:"var(--statusbar-tip-orange-bg)",color:"black"},click:o})}tip_yellow(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||s.$.icons.banana,css:{background:"var(--statusbar-tip-yellow-bg)",color:"black"},click:o})}tip_green(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||s.$.icons.melon,css:{background:"var(--statusbar-tip-green-bg)",color:"black"},click:o})}tip_blue(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||s.$.icons.berry,css:{background:"var(--statusbar-tip-blue-bg)",color:"black"},click:o})}tip_indigo(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||s.$.icons.eggplant,css:{background:"var(--statusbar-tip-indigo-bg)",color:"snow"},click:o})}tip_violet(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||s.$.icons.grape,css:{background:"var(--statusbar-tip-violet-bg)",color:"snow"},click:o})}static get meta(){return{type:r.d2.tips,version:1}}}},6424:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var o=n(7633),r=n(2083);const i=(0,o.Kh)({mode:r._NoteMode.read,count_root:1,count_word:0,count_scope_normal:0,count_scope_all:0,count_stack_undo:0,count_stack_redo:0,active_root_index:1,anchor_root_id:"",note_recording:!1,note_showing:!1,note_composition_input:!1,fold_sidebar:!1,fold_toolbar:!1,saved:!0,dict_open:!1})},6941:function(e){e.exports=function(){"use strict";return function(e,t,n){var o=t.prototype,r=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,o,i){var s=e.name?e:e.$locale(),a=r(s[t]),l=r(s[n]),c=a||l.map(function(e){return e.slice(0,o)});if(!i)return c;var u=s.weekStart;return c.map(function(e,t){return c[(t+(u||0))%7]})},s=function(){return n.Ls[n.locale()]},a=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return a(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=s();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return a(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(s(),"months")},n.monthsShort=function(){return i(s(),"monthsShort","months",3)},n.weekdays=function(e){return i(s(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(s(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(s(),"weekdaysMin","weekdays",2,e)}}}()},6960:(e,t)=>{"use strict";t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n}},7020:(e,t,n)=>{"use strict";n.d(t,{U:()=>R});var o=n(4984),r=n(1778),i=n(2808),s=n(9562),a=n(2176),l=n(3890),c=n(6234),u=n(7850),d=n(1050),p=n(6219),h=n(7333),f=n(3539),m=n(5450),v=n(5347),g=n(7999),b=n(1276),_=n(1685),y=n(9029),x=n(2459),w=n(5037),k=n(2083);class R{static get uidata(){return{versions:this.versions,config:this.config,catalogue:this.catalogue,dict:this.dict,fomula:this.fomula,hotkeys:this.hotkeys,presets:this.presets,theme:this.theme,memory:this.memory}}static get versions(){return{ai:h.b.meta.version,config:r.X.meta.version,catalogue:i.a.meta.version,convertors:m.i.meta.version,dict:s.J.meta.version,dialog:v.b.meta.version,event:b.D.meta.version,editor:x.O.meta.version,fomula:a.t.meta.version,hotkeys:y.w.meta.version,menubar:l.Z.meta.version,memory:w.U.meta.version,presets:c.n.meta.version,statusbar:p.m.meta.version,sidebar:u.H.meta.version,search:g.F.meta.version,toolbar:d.q.meta.version,theme:f._.meta.version,tips:_.L.meta.version}}static get memory(){return{location:void 0}}static get theme(){return{background:{active:"",filters:{}},theme:{name:"",path:""}}}static get catalogue(){return{group:[]}}static get dict(){return{keywords:[],maps:[]}}static get config(){return{text_transition:!0,text_fontsize:16,text_family:'"Comic Sans MS"',history_length:-1,line_indent:40,player_speed:100,input_quick_prefix:"/",dict_candidate_open:!1,dict_export_candidate_len:9,dict_tip_association:!0,dict_tip_keywords:!1,sidebar_panel_width:400,revert_scope:!1,code_theme:"dracula",scroll_distance:20,toolbar_blacklist:[o.lb.compose,o.lb.speak,o.lb.format_brush,o.lb.fomula,o.lb.bookmark,o.lb.emphasis,o.lb.indent,o.lb.history,o.lb.align,o.lb.write_mode,o.lb.border,o.lb.annotation,o.lb.bold_italic,o.lb.paste,o.lb.spacing,o.lb.underline,o.lb.rt],map_node_hgap:40,map_node_vgap:40,map_node_padding:4,map_node_max_width:800,map_node_exit_by_esc:!0,map_scale_max:5,map_scale_min:.1,map_scale_step:.1,map_linker_anchor_left:k._LinkerAnchor.point,map_linker_anchor_right:k._LinkerAnchor.arrow,map_linker_line:"line",map_linker_stroke:"black",map_linker_stroke_width:2,map_perf:!0}}static get fomula(){return{}}static get hotkeys(){return k.NoteHotkeys.default_hotkeys}static get presets(){return{items:[]}}}},7333:(e,t,n)=>{"use strict";n.d(t,{b:()=>l});var o=n(7633),r=n(8418),i=n(4984),s=n(8018),a=n(4953);class l extends s.e{_going=(0,o.KR)(!1);dialogs=(0,o.Gc)([]);get component(){return r.A}get going(){return this._going.value}set going(e){this._going.value=e}ask(e){const t=a.z.api_ask_ai;if(!t)return this.tips.tip_red("未注册API-多轮对话");t(e)}get separators(){return["table","code","heading","hr","html","image","list"]}get meta(){return l.meta}constructor(e){super(e)}export(){return{}}update_data(){return{}}static get meta(){return{type:i.d2.ai,version:1}}}},7633:(e,t,n)=>{"use strict";n.d(t,{C4:()=>S,EW:()=>Ke,Gc:()=>me,IG:()=>ke,IJ:()=>Me,KR:()=>Ee,Kh:()=>fe,Pr:()=>Be,QW:()=>$e,R1:()=>Oe,Tm:()=>_e,X2:()=>d,a1:()=>Ce,bl:()=>E,fE:()=>ye,g8:()=>be,hV:()=>qe,hZ:()=>z,i9:()=>Se,jr:()=>c,ju:()=>xe,lJ:()=>Re,lW:()=>Fe,mu:()=>Ie,o5:()=>l,qA:()=>F,rY:()=>We,tB:()=>ve,u4:()=>$,uY:()=>a,ux:()=>we,wB:()=>Ge,yC:()=>s});var o=n(3972);let r,i;class s{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=r,!e&&r&&(this.index=(r.scopes||(r.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=r;try{return r=this,e()}finally{r=t}}}on(){1===++this._on&&(this.prevScope=r,r=this)}off(){this._on>0&&0===--this._on&&(r=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function a(e){return new s(e)}function l(){return r}function c(e,t=!1){r&&r.cleanups.push(e)}const u=new WeakSet;class d{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,r&&r.active&&r.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,u.has(this)&&(u.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||m(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,M(this),b(this);const e=i,t=R;i=this,R=!0;try{return this.fn()}finally{_(this),i=e,R=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)w(e);this.deps=this.depsTail=void 0,M(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?u.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){y(this)&&this.run()}get dirty(){return y(this)}}let p,h,f=0;function m(e,t=!1){if(e.flags|=8,t)return e.next=h,void(h=e);e.next=p,p=e}function v(){f++}function g(){if(--f>0)return;if(h){let e=h;for(h=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;p;){let t=p;for(p=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function b(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function _(e){let t,n=e.depsTail,o=n;for(;o;){const e=o.prevDep;-1===o.version?(o===n&&(n=e),w(o),k(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=e}e.deps=t,e.depsTail=n}function y(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(x(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function x(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===T)return;if(e.globalVersion=T,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!y(e)))return;e.flags|=2;const t=e.dep,n=i,r=R;i=e,R=!0;try{b(e);const n=e.fn(e._value);(0===t.version||(0,o.$H)(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{i=n,R=r,_(e),e.flags&=-3}}function w(e,t=!1){const{dep:n,prevSub:o,nextSub:r}=e;if(o&&(o.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)w(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function k(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let R=!0;const C=[];function S(){C.push(R),R=!1}function E(){const e=C.pop();R=void 0===e||e}function M(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=i;i=void 0;try{t()}finally{i=e}}}let T=0;class L{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class I{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!i||!R||i===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==i)t=this.activeLink=new L(i,this),i.deps?(t.prevDep=i.depsTail,i.depsTail.nextDep=t,i.depsTail=t):i.deps=i.depsTail=t,O(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=i.depsTail,t.nextDep=void 0,i.depsTail.nextDep=t,i.depsTail=t,i.deps===t&&(i.deps=e)}return t}trigger(e){this.version++,T++,this.notify(e)}notify(e){v();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{g()}}}function O(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)O(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const A=new WeakMap,B=Symbol(""),N=Symbol(""),W=Symbol("");function $(e,t,n){if(R&&i){let t=A.get(e);t||A.set(e,t=new Map);let o=t.get(n);o||(t.set(n,o=new I),o.map=t,o.key=n),o.track()}}function z(e,t,n,r,i,s){const a=A.get(e);if(!a)return void T++;const l=e=>{e&&e.trigger()};if(v(),"clear"===t)a.forEach(l);else{const i=(0,o.cy)(e),s=i&&(0,o.yI)(n);if(i&&"length"===n){const e=Number(r);a.forEach((t,n)=>{("length"===n||n===W||!(0,o.Bm)(n)&&n>=e)&&l(t)})}else switch((void 0!==n||a.has(void 0))&&l(a.get(n)),s&&l(a.get(W)),t){case"add":i?s&&l(a.get("length")):(l(a.get(B)),(0,o.CE)(e)&&l(a.get(N)));break;case"delete":i||(l(a.get(B)),(0,o.CE)(e)&&l(a.get(N)));break;case"set":(0,o.CE)(e)&&l(a.get(B))}}g()}function P(e){const t=we(e);return t===e?t:($(t,0,W),ye(e)?t:t.map(Re))}function F(e){return $(e=we(e),0,W),e}const D={__proto__:null,[Symbol.iterator](){return V(this,Symbol.iterator,Re)},concat(...e){return P(this).concat(...e.map(e=>(0,o.cy)(e)?P(e):e))},entries(){return V(this,"entries",e=>(e[1]=Re(e[1]),e))},every(e,t){return j(this,"every",e,t,void 0,arguments)},filter(e,t){return j(this,"filter",e,t,e=>e.map(Re),arguments)},find(e,t){return j(this,"find",e,t,Re,arguments)},findIndex(e,t){return j(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return j(this,"findLast",e,t,Re,arguments)},findLastIndex(e,t){return j(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return j(this,"forEach",e,t,void 0,arguments)},includes(...e){return H(this,"includes",e)},indexOf(...e){return H(this,"indexOf",e)},join(e){return P(this).join(e)},lastIndexOf(...e){return H(this,"lastIndexOf",e)},map(e,t){return j(this,"map",e,t,void 0,arguments)},pop(){return G(this,"pop")},push(...e){return G(this,"push",e)},reduce(e,...t){return X(this,"reduce",e,t)},reduceRight(e,...t){return X(this,"reduceRight",e,t)},shift(){return G(this,"shift")},some(e,t){return j(this,"some",e,t,void 0,arguments)},splice(...e){return G(this,"splice",e)},toReversed(){return P(this).toReversed()},toSorted(e){return P(this).toSorted(e)},toSpliced(...e){return P(this).toSpliced(...e)},unshift(...e){return G(this,"unshift",e)},values(){return V(this,"values",Re)}};function V(e,t,n){const o=F(e),r=o[t]();return o===e||ye(e)||(r._next=r.next,r.next=()=>{const e=r._next();return e.value&&(e.value=n(e.value)),e}),r}const K=Array.prototype;function j(e,t,n,o,r,i){const s=F(e),a=s!==e&&!ye(e),l=s[t];if(l!==K[t]){const t=l.apply(e,i);return a?Re(t):t}let c=n;s!==e&&(a?c=function(t,o){return n.call(this,Re(t),o,e)}:n.length>2&&(c=function(t,o){return n.call(this,t,o,e)}));const u=l.call(s,c,o);return a&&r?r(u):u}function X(e,t,n,o){const r=F(e);let i=n;return r!==e&&(ye(e)?n.length>3&&(i=function(t,o,r){return n.call(this,t,o,r,e)}):i=function(t,o,r){return n.call(this,t,Re(o),r,e)}),r[t](i,...o)}function H(e,t,n){const o=we(e);$(o,0,W);const r=o[t](...n);return-1!==r&&!1!==r||!xe(n[0])?r:(n[0]=we(n[0]),o[t](...n))}function G(e,t,n=[]){S(),v();const o=we(e)[t].apply(e,n);return g(),E(),o}const q=(0,o.pD)("__proto__,__v_isRef,__isVue"),U=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(o.Bm));function Q(e){(0,o.Bm)(e)||(e=String(e));const t=we(this);return $(t,0,e),t.hasOwnProperty(e)}class Y{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const r=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(r?i?he:pe:i?de:ue).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=(0,o.cy)(e);if(!r){let e;if(s&&(e=D[t]))return e;if("hasOwnProperty"===t)return Q}const a=Reflect.get(e,t,Se(e)?e:n);return((0,o.Bm)(t)?U.has(t):q(t))?a:(r||$(e,0,t),i?a:Se(a)?s&&(0,o.yI)(t)?a:a.value:(0,o.Gv)(a)?r?ve(a):fe(a):a)}}class Z extends Y{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];if(!this._isShallow){const t=_e(i);if(ye(n)||_e(n)||(i=we(i),n=we(n)),!(0,o.cy)(e)&&Se(i)&&!Se(n))return t||(i.value=n),!0}const s=(0,o.cy)(e)&&(0,o.yI)(t)?Number(t)<e.length:(0,o.$3)(e,t),a=Reflect.set(e,t,n,Se(e)?e:r);return e===we(r)&&(s?(0,o.$H)(n,i)&&z(e,"set",t,n):z(e,"add",t,n)),a}deleteProperty(e,t){const n=(0,o.$3)(e,t),r=(e[t],Reflect.deleteProperty(e,t));return r&&n&&z(e,"delete",t,void 0),r}has(e,t){const n=Reflect.has(e,t);return(0,o.Bm)(t)&&U.has(t)||$(e,0,t),n}ownKeys(e){return $(e,0,(0,o.cy)(e)?"length":B),Reflect.ownKeys(e)}}class J extends Y{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const ee=new Z,te=new J,ne=new Z(!0),oe=e=>e,re=e=>Reflect.getPrototypeOf(e);function ie(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function se(e,t){const n=function(e,t){const n={get(n){const r=this.__v_raw,i=we(r),s=we(n);e||((0,o.$H)(n,s)&&$(i,0,n),$(i,0,s));const{has:a}=re(i),l=t?oe:e?Ce:Re;return a.call(i,n)?l(r.get(n)):a.call(i,s)?l(r.get(s)):void(r!==i&&r.get(n))},get size(){const t=this.__v_raw;return!e&&$(we(t),0,B),t.size},has(t){const n=this.__v_raw,r=we(n),i=we(t);return e||((0,o.$H)(t,i)&&$(r,0,t),$(r,0,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,o){const r=this,i=r.__v_raw,s=we(i),a=t?oe:e?Ce:Re;return!e&&$(s,0,B),i.forEach((e,t)=>n.call(o,a(e),a(t),r))}};return(0,o.X$)(n,e?{add:ie("add"),set:ie("set"),delete:ie("delete"),clear:ie("clear")}:{add(e){t||ye(e)||_e(e)||(e=we(e));const n=we(this);return re(n).has.call(n,e)||(n.add(e),z(n,"add",e,e)),this},set(e,n){t||ye(n)||_e(n)||(n=we(n));const r=we(this),{has:i,get:s}=re(r);let a=i.call(r,e);a||(e=we(e),a=i.call(r,e));const l=s.call(r,e);return r.set(e,n),a?(0,o.$H)(n,l)&&z(r,"set",e,n):z(r,"add",e,n),this},delete(e){const t=we(this),{has:n,get:o}=re(t);let r=n.call(t,e);r||(e=we(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&z(t,"delete",e,void 0),i},clear(){const e=we(this),t=0!==e.size,n=e.clear();return t&&z(e,"clear",void 0,void 0),n}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=function(e,t,n){return function(...r){const i=this.__v_raw,s=we(i),a=(0,o.CE)(s),l="entries"===e||e===Symbol.iterator&&a,c="keys"===e&&a,u=i[e](...r),d=n?oe:t?Ce:Re;return!t&&$(s,0,c?N:B),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}(r,e,t)}),n}(e,t);return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get((0,o.$3)(n,r)&&r in t?n:t,r,i)}const ae={get:se(!1,!1)},le={get:se(!1,!0)},ce={get:se(!0,!1)},ue=new WeakMap,de=new WeakMap,pe=new WeakMap,he=new WeakMap;function fe(e){return _e(e)?e:ge(e,!1,ee,ae,ue)}function me(e){return ge(e,!1,ne,le,de)}function ve(e){return ge(e,!0,te,ce,pe)}function ge(e,t,n,r,i){if(!(0,o.Gv)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((0,o.Zf)(a));var a;if(0===s)return e;const l=i.get(e);if(l)return l;const c=new Proxy(e,2===s?r:n);return i.set(e,c),c}function be(e){return _e(e)?be(e.__v_raw):!(!e||!e.__v_isReactive)}function _e(e){return!(!e||!e.__v_isReadonly)}function ye(e){return!(!e||!e.__v_isShallow)}function xe(e){return!!e&&!!e.__v_raw}function we(e){const t=e&&e.__v_raw;return t?we(t):e}function ke(e){return!(0,o.$3)(e,"__v_skip")&&Object.isExtensible(e)&&(0,o.yQ)(e,"__v_skip",!0),e}const Re=e=>(0,o.Gv)(e)?fe(e):e,Ce=e=>(0,o.Gv)(e)?ve(e):e;function Se(e){return!!e&&!0===e.__v_isRef}function Ee(e){return Te(e,!1)}function Me(e){return Te(e,!0)}function Te(e,t){return Se(e)?e:new Le(e,t)}class Le{constructor(e,t){this.dep=new I,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:we(e),this._value=t?e:Re(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||ye(e)||_e(e);e=n?e:we(e),(0,o.$H)(e,t)&&(this._rawValue=e,this._value=n?e:Re(e),this.dep.trigger())}}function Ie(e){e.dep&&e.dep.trigger()}function Oe(e){return Se(e)?e.value:e}const Ae={get:(e,t,n)=>"__v_raw"===t?e:Oe(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Se(r)&&!Se(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Be(e){return be(e)?e:new Proxy(e,Ae)}class Ne{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new I,{get:n,set:o}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=o}get value(){return this._value=this._get()}set value(e){this._set(e)}}function We(e){return new Ne(e)}function $e(e){const t=(0,o.cy)(e)?new Array(e.length):{};for(const n in e)t[n]=De(e,n);return t}class ze{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=A.get(e);return n&&n.get(t)}(we(this._object),this._key)}}class Pe{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Fe(e,t,n){return Se(e)?e:(0,o.Tn)(e)?new Pe(e):(0,o.Gv)(e)&&arguments.length>1?De(e,t,n):Ee(e)}function De(e,t,n){const o=e[t];return Se(o)?o:new ze(e,t,n)}class Ve{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new I(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=T-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||i===this))return m(this,!0),!0}get value(){const e=this.dep.track();return x(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ke(e,t,n=!1){let r,i;return(0,o.Tn)(e)?r=e:(r=e.get,i=e.set),new Ve(r,i,n)}const je={},Xe=new WeakMap;let He;function Ge(e,t,n=o.MZ){const{immediate:r,deep:i,once:s,scheduler:a,augmentJob:c,call:u}=n,p=e=>i?e:ye(e)||!1===i||0===i?qe(e,1):qe(e);let h,f,m,v,g=!1,b=!1;if(Se(e)?(f=()=>e.value,g=ye(e)):be(e)?(f=()=>p(e),g=!0):(0,o.cy)(e)?(b=!0,g=e.some(e=>be(e)||ye(e)),f=()=>e.map(e=>Se(e)?e.value:be(e)?p(e):(0,o.Tn)(e)?u?u(e,2):e():void 0)):f=(0,o.Tn)(e)?t?u?()=>u(e,2):e:()=>{if(m){S();try{m()}finally{E()}}const t=He;He=h;try{return u?u(e,3,[v]):e(v)}finally{He=t}}:o.tE,t&&i){const e=f,t=!0===i?1/0:i;f=()=>qe(e(),t)}const _=l(),y=()=>{h.stop(),_&&_.active&&(0,o.TF)(_.effects,h)};if(s&&t){const e=t;t=(...t)=>{e(...t),y()}}let x=b?new Array(e.length).fill(je):je;const w=e=>{if(1&h.flags&&(h.dirty||e))if(t){const e=h.run();if(i||g||(b?e.some((e,t)=>(0,o.$H)(e,x[t])):(0,o.$H)(e,x))){m&&m();const n=He;He=h;try{const n=[e,x===je?void 0:b&&x[0]===je?[]:x,v];x=e,u?u(t,3,n):t(...n)}finally{He=n}}}else h.run()};return c&&c(w),h=new d(f),h.scheduler=a?()=>a(w,!1):w,v=e=>function(e,t=!1,n=He){if(n){let t=Xe.get(n);t||Xe.set(n,t=[]),t.push(e)}}(e,!1,h),m=h.onStop=()=>{const e=Xe.get(h);if(e){if(u)u(e,4);else for(const t of e)t();Xe.delete(h)}},t?r?w(!0):x=h.run():a?a(w.bind(null,!0),!0):h.run(),y.pause=h.pause.bind(h),y.resume=h.resume.bind(h),y.stop=y,y}function qe(e,t=1/0,n){if(t<=0||!(0,o.Gv)(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,Se(e))qe(e.value,t,n);else if((0,o.cy)(e))for(let o=0;o<e.length;o++)qe(e[o],t,n);else if((0,o.vM)(e)||(0,o.CE)(e))e.forEach(e=>{qe(e,t,n)});else if((0,o.Qd)(e)){for(const o in e)qe(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&qe(e[o],t,n)}return e}},7850:(e,t,n)=>{"use strict";n.d(t,{H:()=>s});var o=n(8018),r=n(4984),i=n(3709);class s extends o.e{get meta(){return s.meta}constructor(e){super(e)}export(){return{}}update_data(e){return e}shrink(){i.p.open=!1}show_item(e){i.p.open=!0,i.p.active=e}static get meta(){return{type:r.d2.sidebar,version:1}}}},7925:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o.Z});var o=n(3890)},7999:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var o=n(2083),r=n(4984),i=n(8018);class s extends i.e{get meta(){return s.meta}constructor(e){super(e)}update_data(e){return e}find_text(e){if(!e)return this.tips.tip_warning("搜索词不可为空"),[];const t=[],n=this.root.cubes.get_types_cube(o._NoteCubeTypes.text);for(let r of n.values())r instanceof o.CubeText&&r.text.includes(e)&&t.push(r);return 0===t.length&&this.tips.tip_aloud("搜索结果为空"),t}export(){}static get meta(){return{type:r.d2.search,version:1}}}},8018:(e,t,n)=>{"use strict";n.d(t,{e:()=>o});class o{_editor;get editor(){return this._editor}get root(){return this._editor.root}get uidata(){return this.editor.uidata}get ai(){return this.editor.ai}get catalogue(){return this.editor.catalogue}get theme(){return this.editor.theme}get listener(){return this.editor.listener}get tips(){return this.editor.tips}get float(){return this.editor.float}get search(){return this.editor.search}get event(){return this.editor.event}get config(){return this.editor.config}get dict(){return this.editor.dict}get fomula(){return this.editor.fomula}get hotkeys(){return this.editor.hotkeys}get presets(){return this.editor.presets}get menubar(){return this.editor.menubar}get sidebar(){return this.editor.sidebar}get toolbar(){return this.editor.toolbar}get statusbar(){return this.editor.statusbar}get convertors(){return this.editor.convertors}get versions(){return this.uidata.versions}constructor(e){this._editor=e}}},8162:function(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,o=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return o.bind(this)(e);var r=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return r.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return r.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return r.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return o.bind(this)(i)}}}()},8205:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});class o{_editor;_env;get editor(){return this._editor}get root(){return this.editor.root}get env(){return this._env}constructor(e,t){this._env=t,this._editor=e}}},8418:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var o=n(4089),r=n(7633),i=n(3972),s=n(1690);const a={class:"ui-ai"},l={class:"sidebar-panel-toolbox"},c={class:"tools-icon"},u={class:"ai-dialogs-box"},d={class:"dialog-content"},p={key:0,class:"question"},h={class:"content"},f={key:1,class:"reply"},m={class:"content"},v={class:"send-box"},g={class:"input-box"},b=["placeholder"],_=(0,o.pM)({__name:"ui-ai",props:{editor:{}},setup(e){const{ai:t,root:n,tips:_}=e.editor,{sidebar:y,dialogs:x,statusbar:w}=t,k=(0,r.Kh)({question:""}),R=(0,r.KR)();async function C(){if(t.going)return _.tip_aloud("请等待回复完成");if(!k.question)return;const e=k.question;k.question="",await t.ask(e)}async function S(){t.dialogs.length=0}function E(e){"Enter"===e.key&&C()}function M(){const e=R.value;e&&(e.value="")}return(e,n)=>((0,o.uX)(),(0,o.CE)("div",a,[(0,o.Lk)("div",l,[n[2]||(n[2]=(0,o.Lk)("div",null,null,-1)),(0,o.Lk)("div",c,[(0,o.Lk)("div",{class:"iconfont icon-reset_defalut",title:"重置对话",onClick:S}),(0,o.Lk)("div",{class:"iconfont icon-arrowleftcircle1187576easyiconnet",title:"折叠侧边栏",onClick:n[0]||(n[0]=(...e)=>(0,r.R1)(y).shrink&&(0,r.R1)(y).shrink(...e))})])]),(0,o.Lk)("div",u,[(0,o.Lk)("div",d,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)((0,r.R1)(x),e=>((0,o.uX)(),(0,o.CE)(o.FK,{key:e.content},["user"===e.role?((0,o.uX)(),(0,o.CE)("div",p,[(0,o.Lk)("div",h,(0,i.v_)(e.content),1),n[3]||(n[3]=(0,o.Lk)("div",{class:"iconfont icon-Bug"},null,-1))])):((0,o.uX)(),(0,o.CE)("div",f,[n[4]||(n[4]=(0,o.Lk)("div",{class:"iconfont icon-scatter"},null,-1)),(0,o.Lk)("div",m,"已回复:"+(0,i.v_)(e.content.length)+"字",1)]))],64))),128))]),(0,o.Lk)("div",v,[(0,o.Lk)("div",g,[(0,o.Lk)("div",{class:"tools"},[(0,o.Lk)("div",{class:"iconfont icon-Delete",title:"清空",onClick:M}),(0,o.Lk)("div",{class:"iconfont icon-planeo",title:"发送",onClick:C})]),(0,o.bo)((0,o.Lk)("textarea",{ref_key:"textarea",ref:R,type:"text","onUpdate:modelValue":n[1]||(n[1]=e=>k.question=e),placeholder:(0,r.R1)(t).going?"回复中...":"请输入问题",onKeydown:E},null,40,b),[[s.Jo,k.question]])])])])]))}}),y=(0,n(6960).A)(_,[["__scopeId","data-v-375bcd28"]])},8736:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}()},9029:(e,t,n)=>{"use strict";n.d(t,{w:()=>d});var o=n(4984),r=n(8018),i=n(5483),s=n(2083),a=n(1068);function l(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}const c=new Map;function u(e){return(t,n)=>{let o=t[n];c.set(e,o)}}class d extends r.e{get meta(){return d.meta}constructor(e){super(e),this.init(),this.reset()}reset(e){const t=d.default_hotkeys,n=s.NoteHotkeys.default_hotkeys,o=Object.assign({},n,t);if(e){const t=Object.assign({},o,e);this.root.hotkeys.reset(t)}else this.root.hotkeys.reset(o)}update_data(e){if(this.versions.hotkeys<2){const t=s.NoteHotkeys.default_hotkeys;for(let n in t){const o=t[n];if(o)for(let t in e){const n=e[t];n&&n.name===o.name&&(n.cursor=o.cursor)}}}return e}init(){const e=d.default_hotkeys;for(let[t,n]of c){const o=e[t];if(!o)continue;const r=n.bind(this);this.root.hotkeys.register(r,o)}}register(e,t){this.root.hotkeys.register(e,t)}export(){return this.root.hotkeys.export()}validate(e,t){return t.meta===e.metaKey&&t.alt===e.altKey&&t.shift===e.shiftKey&&t.ctrl===e.ctrlKey&&(0===t.key.length||t.key.includes(e.key.toLocaleLowerCase()))}which(e){const t=this.root.hotkeys.data;for(let n of Object.values(t))if(this.validate(e,n))return n}validate_hotkeys(e){const t=this.root.hotkeys.data;for(let n of Object.values(t))if(this.validate(e,n))return!0;return!1}get_hotkey_str(e){return this.root.hotkeys.get_hotkey_str(e)}add_bookmark(e){e.preventDefault(),this.catalogue.show_bookmark()}fontsize_up(e){e.preventDefault(),this.toolbar.fontsize_change("up")}fontsize_down(e){e.preventDefault(),this.toolbar.fontsize_change("down")}link(e){e.preventDefault(),this.float.add_text_link()}search_doc(e){e.preventDefault(),this.sidebar.show_item("search")}show_fomula_editor(e){e.preventDefault();const{cursor:t}=this.root;if(t.has_selection)this.float.convert_latex_text();else{if(i.wF.show)return i.wF.show=!1;this.float.show_fomula()}}show_cubelist(e){e.preventDefault();const{cursor:t}=this.root;i.bK.show=!i.bK.show;const n=s.NoteManager.metas_cube.values();i.bK.cubelist=[...n].filter(e=>e.show),i.bK.search="";const o=t.client_rect,r={x:0,y:0,width:window.innerWidth,height:window.innerHeight},l=i.bK.size;if(o){const e=a.MathRect.move_rect_to_other(r,l,o);i.bK.css={left:e.x+"px",top:e.y+"px"}}}paste_md(e){e.preventDefault(),this.editor.toolbar.paste_md()}text_rt(e){e.preventDefault(),this.float.show_rt()}static get default_hotkeys(){return{[o.l1["text-rt"]]:{name:o.l1["text-rt"],show:!0,meta:!1,shift:!1,alt:!1,ctrl:!0,key:["p"],cursor:!0,group:s._HotKeysGroup.text},[o.l1["bookmark-add"]]:{name:o.l1["bookmark-add"],show:!0,meta:!1,shift:!1,alt:!0,ctrl:!1,key:["a"],cursor:!0,group:s._HotKeysGroup.bookmark},[o.l1["float-cubelist"]]:{name:o.l1["float-cubelist"],show:!0,meta:!1,shift:!1,alt:!0,ctrl:!1,key:["q"],cursor:!0,group:s._HotKeysGroup.float},[o.l1["float-fomula"]]:{name:o.l1["float-fomula"],show:!0,meta:!1,shift:!1,alt:!0,ctrl:!1,key:["f"],cursor:!0,group:s._HotKeysGroup.float},[o.l1["fontsize-down"]]:{name:o.l1["fontsize-down"],show:!0,meta:!1,shift:!0,alt:!1,ctrl:!0,key:["<"],cursor:!0,group:s._HotKeysGroup.text},[o.l1["fontsize-up"]]:{name:o.l1["fontsize-up"],show:!0,meta:!1,shift:!0,alt:!1,ctrl:!0,key:[">"],cursor:!0,group:s._HotKeysGroup.text},[o.l1["search-doc"]]:{name:o.l1["search-doc"],show:!0,meta:!1,shift:!1,alt:!1,ctrl:!0,key:["f"],group:s._HotKeysGroup.search},[o.l1["text-add-link"]]:{name:o.l1["text-add-link"],show:!0,meta:!1,shift:!0,alt:!1,ctrl:!0,key:["l"],cursor:!0,group:s._HotKeysGroup.text},[o.l1["paste-md"]]:{name:o.l1["paste-md"],show:!0,meta:!1,shift:!1,alt:!1,ctrl:!0,key:["-"],cursor:!0,group:s._HotKeysGroup.other}}}static get meta(){return{type:o.d2.hotkeys,version:2}}}l([u(o.l1["bookmark-add"])],d.prototype,"add_bookmark",null),l([u(o.l1["fontsize-up"])],d.prototype,"fontsize_up",null),l([u(o.l1["fontsize-down"])],d.prototype,"fontsize_down",null),l([u(o.l1["text-add-link"])],d.prototype,"link",null),l([u(o.l1["search-doc"])],d.prototype,"search_doc",null),l([u(o.l1["float-fomula"])],d.prototype,"show_fomula_editor",null),l([u(o.l1["float-cubelist"])],d.prototype,"show_cubelist",null),l([u(o.l1["paste-md"])],d.prototype,"paste_md",null),l([u(o.l1["text-rt"])],d.prototype,"text_rt",null)},9166:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,o=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},a=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,o=s.meridiem;if(o){for(var r=1;r<=24;r+=1)if(e.indexOf(o(r,0,t))>-1){n=r>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[o,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[o,l("day")],Do:[i,function(e){var t=s.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var o=1;o<=31;o+=1)t(o).replace(/\[|\]/g,"")===e&&(this.day=o)}],w:[r,l("week")],ww:[o,l("week")],M:[r,l("month")],MM:[o,l("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[o,function(e){this.year=a(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function h(n){var o,r;o=n,r=s&&s.formats;for(var i=(n=o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,o){var i=o&&o.toUpperCase();return n||r[o]||e[o]||r[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),a=i.length,l=0;l<a;l+=1){var c=i[l],u=p[c],d=u&&u[0],h=u&&u[1];i[l]=h?{regex:d,parser:h}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,o=0;n<a;n+=1){var r=i[n];if("string"==typeof r)o+=r.length;else{var s=r.regex,l=r.parser,c=e.slice(o),u=s.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var o=t.prototype,r=o.parse;o.parse=function(e){var t=e.date,o=e.utc,i=e.args;this.$u=o;var a=i[1];if("string"==typeof a){var l=!0===i[2],c=!0===i[3],u=l||c,d=i[2];c&&(d=i[2]),s=this.$locale(),!l&&d&&(s=n.Ls[d]),this.$d=function(e,t,n,o){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=h(t)(e),i=r.year,s=r.month,a=r.day,l=r.hours,c=r.minutes,u=r.seconds,d=r.milliseconds,p=r.zone,f=r.week,m=new Date,v=a||(i||s?1:m.getDate()),g=i||m.getFullYear(),b=0;i&&!s||(b=s>0?s-1:m.getMonth());var _,y=l||0,x=c||0,w=u||0,k=d||0;return p?new Date(Date.UTC(g,b,v,y,x,w,k+60*p.offset*1e3)):n?new Date(Date.UTC(g,b,v,y,x,w,k)):(_=new Date(g,b,v,y,x,w,k),f&&(_=o(_).week(f).toDate()),_)}catch(e){return new Date("")}}(t,a,o,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),s={}}else if(a instanceof Array)for(var p=a.length,f=1;f<=p;f+=1){i[1]=a[f-1];var m=n.apply(this,i);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}f===p&&(this.$d=new Date(""))}else r.call(this,e)}}}()},9444:(e,t,n)=>{"use strict";n.d(t,{a:()=>o.a});var o=n(2808)},9562:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});var o=n(4984),r=n(4953),i=n(8018),s=n(5483);class a extends i.e{_count=0;_regexp_quick=/\w+\d*$/;keywords=new Map;maps=new Map;get meta(){return a.meta}constructor(e){super(e),this.load(this.uidata.dict),this._count=this.maps.size+this.keywords.size}async parse_keyword(e){const t=r.z.api_parse_keyword;return t?await t(e)||"":this.tips.tip_error("未注册API-关键词分析")}async parse_associations(e){const t=r.z.api_parse_association;return t?await t(e)||[]:this.tips.tip_error("未注册API-关联词分析")}get_candidate(e){if(!this.config.data.dict_candidate_open)return s.ks.show=!1,[];const t=[];if(this.config.data.dict_tip_keywords)for(let[n,o]of this.keywords)n.startsWith(e)&&t.push(...o);if(this.config.data.dict_tip_association){const n=this.maps.get(e);n&&t.push(...n)}return this.sort_words(t),t}load(e){const t=this.editor.tips;t.tip_green("正在加载字典...");const n=this.update_data(e);for(let e of n.keywords){const t=this.keywords.get(e.code);t?t.push(e):this.keywords.set(e.code,[e])}for(let e of n.maps)this.maps.set(e.word,e.list);t.tip_success("字典加载完成")}export(){const{config:e}=this,t=[];for(let[n,o]of this.maps)t.push({word:n,list:o.slice(0,e.data.dict_export_candidate_len)});const n=[];for(let[e,t]of this.keywords)n.push(...t);return{keywords:n,maps:t}}update_data(e){let t=e;if(!this.uidata.versions||this.uidata.versions.dict<2){t.keywords||(t.keywords=[]);for(let e of t.maps)for(let t of e.list)t.type=o.oE.associate}return t}add_association(e,t){const n=e.trim(),r=t,i=this.maps.get(n);if(i){const e=i.find(e=>e.word===r);e?e.count++:(i.push({type:o.oE.associate,word:r,count:1}),this.sort_words(i))}else this.maps.set(n,[{type:o.oE.associate,word:r,count:1}])}add_associations(e){if(e.length<2)return;const t=[];let n="",o=[" ",".","-"];for(let r of e)o.includes(r)?n=r:(t.push(n+r),n="");for(let e=0;e<t.length-1;e++)this.add_association(t[e],t[e+1])}add_keyword(e,t){if(!this._regexp_quick.test(t))return;const n=this.keywords.get(t),r=n?.find(t=>t.word===e);if(r)r.count++;else{const r={type:o.oE.keyword,word:e,count:1,code:t};n?n.push(r):this.keywords.set(t,[r])}}sort_words(e){return e.sort((e,t)=>t.count-e.count)}find_quick(e){const t=e.trimEnd();return t.match(this._regexp_quick)?.[0]}remove_quick(e){const t=this.find_quick(e);return t?e.slice(0,e.length-t.length):e}static get meta(){return{type:o.d2.dict,version:1}}}},9899:(e,t,n)=>{"use strict";n.d(t,{$:()=>o.$});var o=n(4110)}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();var o={};return(()=>{"use strict";n.r(o),n.d(o,{StatusCatalogue:()=>L.c1,StatusDialog:()=>L.jm,StatusEditor:()=>L.QI,StatusHotkeys:()=>L.I_,StatusPresets:()=>L.bl,StatusSidebar:()=>L.pw,StatusStatusbar:()=>L.A0,StatusToolbar:()=>L.SH,ToolBase:()=>M.Y,UIAi:()=>a.b,UIApi:()=>l.z,UIBase:()=>s.e,UICatalogue:()=>c.a,UIConfig:()=>u.X,UIConvertors:()=>d.i,UIDefault:()=>i.U,UIDialog:()=>p.b,UIDict:()=>h.J,UIEditor:()=>R.O,UIEvent:()=>f.D,UIFloat:()=>m.z,UIFomula:()=>v.t,UIHotkeys:()=>g.w,UIIcons:()=>b.$,UIListener:()=>I.d,UIMenubar:()=>C.Z,UIMod:()=>k.J,UIPresets:()=>_.n,UISearch:()=>y.F,UISidebar:()=>S.H,UIStatusbar:()=>E.m,UITheme:()=>x._,UITips:()=>w.L,UIToolbar:()=>M.q,UITools:()=>T.E,_DictWordType:()=>r.oE,_FloatType:()=>r.I7,_FomulaType:()=>r.UF,_MenubarItemType:()=>r.zX,_ToolName:()=>r.lb,_UICatalogueMode:()=>r.U_,_UIEventType:()=>r.GC,_UIHotkeyTypes:()=>r.l1,_UIPart:()=>r.d2,float_cubelist:()=>L.bK,float_dict:()=>L.ks,float_dict_adder:()=>L.$3,float_fomula:()=>L.wF,float_link_ask:()=>L.yg,float_link_edit:()=>L.$q,float_node_layout:()=>L.p,float_rt:()=>L.Sg,float_table:()=>L.ud});var e=n(2083),t={};for(const n in e)"default"!==n&&(t[n]=()=>e[n]);n.d(o,t);var r=n(4984),i=n(28),s=n(2158),a=n(7333),l=n(4953),c=n(9444),u=n(1778),d=n(5450),p=n(5347),h=n(9562),f=n(1276),m=n(81),v=n(2176),g=n(9029),b=n(9899),_=n(4809),y=n(7999),x=n(3539),w=n(1685),k=n(8205),R=n(2459),C=n(7925),S=n(193),E=n(6219),M=n(1050),T=n(1931),L=n(5483),I=n(4860)})(),o})());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepsky",
3
- "version": "1.105.9",
3
+ "version": "1.105.10",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",