@ylzcc/editor 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editor.es.js +21 -9
- package/dist/editor.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/editor.es.js
CHANGED
|
@@ -84537,9 +84537,11 @@ const CodeBlockView = ({ editor: Ff, node: kh, updateAttributes: x_, extension:
|
|
|
84537
84537
|
kh && clearTimeout(kh);
|
|
84538
84538
|
const { editor: nme, tip: rme } = Ff;
|
|
84539
84539
|
nme.isEditable && (kh = setTimeout(() => {
|
|
84540
|
-
var
|
|
84541
|
-
|
|
84542
|
-
|
|
84540
|
+
var ume, sme;
|
|
84541
|
+
if (document.querySelectorAll(".ant-modal-content").length > 0)
|
|
84542
|
+
return !1;
|
|
84543
|
+
const ome = (sme = (ume = nme == null ? void 0 : nme.view) == null ? void 0 : ume.state) == null ? void 0 : sme.selection, { from: ame, to: cme } = ome;
|
|
84544
|
+
if (ame != cme)
|
|
84543
84545
|
return !1;
|
|
84544
84546
|
rme == null || rme.move(eme, tme);
|
|
84545
84547
|
}, 0));
|
|
@@ -86115,7 +86117,7 @@ const upload = async (Ff) => {
|
|
|
86115
86117
|
x_.attrs = { src: Ff == null ? void 0 : Ff.url, alt: Ff == null ? void 0 : Ff.alt, title: Ff == null ? void 0 : Ff.title }, B_ != null && B_.length && (x_.marks = B_);
|
|
86116
86118
|
break;
|
|
86117
86119
|
case "html":
|
|
86118
|
-
x_.type = "text", x_.text =
|
|
86120
|
+
x_.type = "text", x_.text = " ";
|
|
86119
86121
|
break;
|
|
86120
86122
|
case "code":
|
|
86121
86123
|
(Ff == null ? void 0 : Ff.props) === "active" ? (x_.type = "active", x_.attrs = { language: Ff == null ? void 0 : Ff.lang, id: Ff == null ? void 0 : Ff.value }) : (Ff == null ? void 0 : Ff.props) === "exec" ? (x_.type = "codeBlock", x_.attrs = { language: Ff == null ? void 0 : Ff.lang, exec: !0 }, x_.content = Ff != null && Ff.value ? [{ type: "text", text: Ff == null ? void 0 : Ff.value }] : []) : (x_.type = "codeBlock", x_.attrs = { language: Ff == null ? void 0 : Ff.lang }, x_.content = Ff != null && Ff.value ? [{ type: "text", text: Ff == null ? void 0 : Ff.value }] : []);
|
|
@@ -87073,15 +87075,15 @@ const normalClass = "tiptap-menu-item-menus-item", lighClass = "tiptap-menu-item
|
|
|
87073
87075
|
var kh, x_, B_, $_;
|
|
87074
87076
|
console.log((kh = Ff == null ? void 0 : Ff.clientRect) == null ? void 0 : kh.call(Ff)), (x_ = this.options.tip) == null || x_.setProps({
|
|
87075
87077
|
getReferenceClientRect: Ff.clientRect
|
|
87076
|
-
}), (B_ = this.options.emitter) == null || B_.emit("show", { node: { type: { name: "paragraph" } }, range: Ff.range }), ($_ = this.options.tip) == null || $_.show();
|
|
87078
|
+
}), (B_ = this.options.emitter) == null || B_.emit("show", { node: { type: { name: "paragraph" } }, range: Ff.range }), this.editor.chain().hideTip().changeTip(!0).run(), ($_ = this.options.tip) == null || $_.show();
|
|
87077
87079
|
},
|
|
87078
87080
|
onExit: (Ff) => {
|
|
87079
87081
|
var kh;
|
|
87080
|
-
(kh = this.options.tip) == null || kh.destroy(), this.options.tip = null;
|
|
87082
|
+
this.editor.chain().changeTip(!1).run(), (kh = this.options.tip) == null || kh.destroy(), this.options.tip = null;
|
|
87081
87083
|
},
|
|
87082
87084
|
onUpdate: (Ff) => {
|
|
87083
87085
|
var kh;
|
|
87084
|
-
(kh = this.options.tip) == null || kh.destroy(), this.options.tip = null;
|
|
87086
|
+
this.editor.chain().changeTip(!1).run(), (kh = this.options.tip) == null || kh.destroy(), this.options.tip = null;
|
|
87085
87087
|
}
|
|
87086
87088
|
});
|
|
87087
87089
|
},
|
|
@@ -87089,11 +87091,11 @@ const normalClass = "tiptap-menu-item-menus-item", lighClass = "tiptap-menu-item
|
|
|
87089
87091
|
return {
|
|
87090
87092
|
showMenu: () => () => {
|
|
87091
87093
|
var Ff, kh;
|
|
87092
|
-
return (kh = (Ff = this.options) == null ? void 0 : Ff.tip) == null || kh.show(), !0;
|
|
87094
|
+
return this.editor.chain().hideTip().changeTip(!0).run(), (kh = (Ff = this.options) == null ? void 0 : Ff.tip) == null || kh.show(), !0;
|
|
87093
87095
|
},
|
|
87094
87096
|
hideMenu: () => () => {
|
|
87095
87097
|
var Ff, kh;
|
|
87096
|
-
return (kh = (Ff = this.options) == null ? void 0 : Ff.tip) == null || kh.destroy(), this.options.tip = null, !0;
|
|
87098
|
+
return this.editor.chain().changeTip(!1).run(), (kh = (Ff = this.options) == null ? void 0 : Ff.tip) == null || kh.destroy(), this.options.tip = null, !0;
|
|
87097
87099
|
}
|
|
87098
87100
|
};
|
|
87099
87101
|
},
|
|
@@ -87102,6 +87104,16 @@ const normalClass = "tiptap-menu-item-menus-item", lighClass = "tiptap-menu-item
|
|
|
87102
87104
|
Suggestion({
|
|
87103
87105
|
editor: this.editor,
|
|
87104
87106
|
...this.options
|
|
87107
|
+
}),
|
|
87108
|
+
new Plugin({
|
|
87109
|
+
key: new PluginKey("slash-whell"),
|
|
87110
|
+
props: {
|
|
87111
|
+
handleDOMEvents: {
|
|
87112
|
+
wheel: () => {
|
|
87113
|
+
this.editor.commands.hideMenu();
|
|
87114
|
+
}
|
|
87115
|
+
}
|
|
87116
|
+
}
|
|
87105
87117
|
})
|
|
87106
87118
|
];
|
|
87107
87119
|
}
|
package/dist/editor.umd.js
CHANGED
|
@@ -403,12 +403,12 @@ html body {
|
|
|
403
403
|
`,SIZING_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],computedStyleCache={},hiddenTextarea;function calculateNodeStyling(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x_=Ff.getAttribute("id")||Ff.getAttribute("data-reactid")||Ff.getAttribute("name");if(kh&&computedStyleCache[x_])return computedStyleCache[x_];var B_=window.getComputedStyle(Ff),$_=B_.getPropertyValue("box-sizing")||B_.getPropertyValue("-moz-box-sizing")||B_.getPropertyValue("-webkit-box-sizing"),$P=parseFloat(B_.getPropertyValue("padding-bottom"))+parseFloat(B_.getPropertyValue("padding-top")),zP=parseFloat(B_.getPropertyValue("border-bottom-width"))+parseFloat(B_.getPropertyValue("border-top-width")),eme=SIZING_STYLE.map(function(nme){return"".concat(nme,":").concat(B_.getPropertyValue(nme))}).join(";"),tme={sizingStyle:eme,paddingSize:$P,borderSize:zP,boxSizing:$_};return kh&&x_&&(computedStyleCache[x_]=tme),tme}function calculateAutoSizeStyle(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,B_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),hiddenTextarea.setAttribute("tab-index","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),document.body.appendChild(hiddenTextarea)),Ff.getAttribute("wrap")?hiddenTextarea.setAttribute("wrap",Ff.getAttribute("wrap")):hiddenTextarea.removeAttribute("wrap");var $_=calculateNodeStyling(Ff,kh),$P=$_.paddingSize,zP=$_.borderSize,eme=$_.boxSizing,tme=$_.sizingStyle;hiddenTextarea.setAttribute("style","".concat(tme,";").concat(HIDDEN_TEXTAREA_STYLE)),hiddenTextarea.value=Ff.value||Ff.placeholder||"";var nme=void 0,rme=void 0,ime,ome=hiddenTextarea.scrollHeight;if(eme==="border-box"?ome+=zP:eme==="content-box"&&(ome-=$P),x_!==null||B_!==null){hiddenTextarea.value=" ";var ame=hiddenTextarea.scrollHeight-$P;x_!==null&&(nme=ame*x_,eme==="border-box"&&(nme=nme+$P+zP),ome=Math.max(nme,ome)),B_!==null&&(rme=ame*B_,eme==="border-box"&&(rme=rme+$P+zP),ime=ome>rme?"":"hidden",ome=Math.min(rme,ome))}var cme={height:ome,overflowY:ime,resize:"none"};return nme&&(cme.minHeight=nme),rme&&(cme.maxHeight=rme),cme}var _excluded$1=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],RESIZE_START=0,RESIZE_MEASURING=1,RESIZE_STABLE=2,ResizableTextArea=React__namespace.forwardRef(function(Ff,kh){var x_=Ff,B_=x_.prefixCls;x_.onPressEnter;var $_=x_.defaultValue,$P=x_.value,zP=x_.autoSize,eme=x_.onResize,tme=x_.className,nme=x_.style,rme=x_.disabled,ime=x_.onChange,ome=x_.onInternalAutoSize,ame=_objectWithoutProperties(x_,_excluded$1),cme=useMergedState($_,{value:$P,postState:function(xme){return xme??""}}),ume=_slicedToArray(cme,2),sme=ume[0],lme=ume[1],dme=function(xme){lme(xme.target.value),ime==null||ime(xme)},fme=React__namespace.useRef();React__namespace.useImperativeHandle(kh,function(){return{textArea:fme.current}});var pme=React__namespace.useMemo(function(){return zP&&_typeof(zP)==="object"?[zP.minRows,zP.maxRows]:[]},[zP]),hme=_slicedToArray(pme,2),mme=hme[0],_me=hme[1],gme=!!zP,vme=function(){try{if(document.activeElement===fme.current){var xme=fme.current,Nme=xme.selectionStart,Cme=xme.selectionEnd,Ime=xme.scrollTop;fme.current.setSelectionRange(Nme,Cme),fme.current.scrollTop=Ime}}catch{}},Sme=React__namespace.useState(RESIZE_STABLE),Eme=_slicedToArray(Sme,2),bme=Eme[0],Rme=Eme[1],Ome=React__namespace.useState(),Pme=_slicedToArray(Ome,2),Lme=Pme[0],Mme=Pme[1],yme=function(){Rme(RESIZE_START),process.env.NODE_ENV==="test"&&(ome==null||ome())};useLayoutEffect$1(function(){gme&&yme()},[$P,mme,_me,gme]),useLayoutEffect$1(function(){if(bme===RESIZE_START)Rme(RESIZE_MEASURING);else if(bme===RESIZE_MEASURING){var wme=calculateAutoSizeStyle(fme.current,!1,mme,_me);Rme(RESIZE_STABLE),Mme(wme)}else vme()},[bme]);var kme=React__namespace.useRef(),Tme=function(){wrapperRaf.cancel(kme.current)},Dme=function(xme){bme===RESIZE_STABLE&&(eme==null||eme(xme),zP&&(Tme(),kme.current=wrapperRaf(function(){yme()})))};React__namespace.useEffect(function(){return Tme},[]);var Fme=gme?Lme:null,Ame=_objectSpread2(_objectSpread2({},nme),Fme);return(bme===RESIZE_START||bme===RESIZE_MEASURING)&&(Ame.overflowY="hidden",Ame.overflowX="hidden"),React__namespace.createElement(RefResizeObserver,{onResize:Dme,disabled:!(zP||eme)},React__namespace.createElement("textarea",_extends$1({},ame,{ref:fme,style:Ame,className:classNames(B_,tme,_defineProperty({},"".concat(B_,"-disabled"),rme)),disabled:rme,value:sme,onChange:dme})))}),_excluded=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],TextArea$2=React.forwardRef(function(Ff,kh){var x_,B_,$_=Ff.defaultValue,$P=Ff.value,zP=Ff.onFocus,eme=Ff.onBlur,tme=Ff.onChange,nme=Ff.allowClear,rme=Ff.maxLength,ime=Ff.onCompositionStart,ome=Ff.onCompositionEnd,ame=Ff.suffix,cme=Ff.prefixCls,ume=cme===void 0?"rc-textarea":cme,sme=Ff.showCount,lme=Ff.count,dme=Ff.className,fme=Ff.style,pme=Ff.disabled,hme=Ff.hidden,mme=Ff.classNames,_me=Ff.styles,gme=Ff.onResize,vme=_objectWithoutProperties(Ff,_excluded),Sme=useMergedState($_,{value:$P,defaultValue:$_}),Eme=_slicedToArray(Sme,2),bme=Eme[0],Rme=Eme[1],Ome=bme==null?"":String(bme),Pme=React.useState(!1),Lme=_slicedToArray(Pme,2),Mme=Lme[0],yme=Lme[1],kme=React.useRef(!1),Tme=React.useState(null),Dme=_slicedToArray(Tme,2),Fme=Dme[0],Ame=Dme[1],wme=React.useRef(null),xme=function(){var y_e;return(y_e=wme.current)===null||y_e===void 0?void 0:y_e.textArea},Nme=function(){xme().focus()};React.useImperativeHandle(kh,function(){return{resizableTextArea:wme.current,focus:Nme,blur:function(){xme().blur()}}}),React.useEffect(function(){yme(function(o_e){return!pme&&o_e})},[pme]);var Cme=React.useState(null),Ime=_slicedToArray(Cme,2),Bme=Ime[0],$me=Ime[1];React.useEffect(function(){if(Bme){var o_e;(o_e=xme()).setSelectionRange.apply(o_e,_toConsumableArray(Bme))}},[Bme]);var Ume=useCount(lme,sme),Vme=(x_=Ume.max)!==null&&x_!==void 0?x_:rme,Wme=Number(Vme)>0,zme=Ume.strategy(Ome),Kme=!!Vme&&zme>Vme,u_e=function(y_e,A_e){var N_e=A_e;!kme.current&&Ume.exceedFormatter&&Ume.max&&Ume.strategy(A_e)>Ume.max&&(N_e=Ume.exceedFormatter(A_e,{max:Ume.max}),A_e!==N_e&&$me([xme().selectionStart||0,xme().selectionEnd||0])),Rme(N_e),resolveOnChange(y_e.currentTarget,y_e,tme,N_e)},Zme=function(y_e){kme.current=!0,ime==null||ime(y_e)},T_e=function(y_e){kme.current=!1,u_e(y_e,y_e.currentTarget.value),ome==null||ome(y_e)},l_e=function(y_e){u_e(y_e,y_e.target.value)},g_e=function(y_e){var A_e=vme.onPressEnter,N_e=vme.onKeyDown;y_e.key==="Enter"&&A_e&&A_e(y_e),N_e==null||N_e(y_e)},E_e=function(y_e){yme(!0),zP==null||zP(y_e)},p_e=function(y_e){yme(!1),eme==null||eme(y_e)},t_e=function(y_e){Rme(""),Nme(),resolveOnChange(xme(),y_e,tme)},i_e=ame,b_e;Ume.show&&(Ume.showFormatter?b_e=Ume.showFormatter({value:Ome,count:zme,maxLength:Vme}):b_e="".concat(zme).concat(Wme?" / ".concat(Vme):""),i_e=React.createElement(React.Fragment,null,i_e,React.createElement("span",{className:classNames("".concat(ume,"-data-count"),mme==null?void 0:mme.count),style:_me==null?void 0:_me.count},b_e)));var x_e=function(y_e){var A_e;gme==null||gme(y_e),(A_e=xme())!==null&&A_e!==void 0&&A_e.style.height&&Ame(!0)},qme=!vme.autoSize&&!sme&&!nme;return React.createElement(BaseInput,{value:Ome,allowClear:nme,handleReset:t_e,suffix:i_e,prefixCls:ume,classNames:_objectSpread2(_objectSpread2({},mme),{},{affixWrapper:classNames(mme==null?void 0:mme.affixWrapper,(B_={},_defineProperty(B_,"".concat(ume,"-show-count"),sme),_defineProperty(B_,"".concat(ume,"-textarea-allow-clear"),nme),B_))}),disabled:pme,focused:Mme,className:classNames(dme,Kme&&"".concat(ume,"-out-of-range")),style:_objectSpread2(_objectSpread2({},fme),Fme&&!qme?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof b_e=="string"?b_e:void 0}},hidden:hme},React.createElement(ResizableTextArea,_extends$1({},vme,{maxLength:rme,onKeyDown:g_e,onChange:l_e,onFocus:E_e,onBlur:p_e,onCompositionStart:Zme,onCompositionEnd:T_e,className:classNames(mme==null?void 0:mme.textarea),style:_objectSpread2(_objectSpread2({},_me==null?void 0:_me.textarea),{},{resize:fme==null?void 0:fme.resize}),disabled:pme,prefixCls:ume,onResize:x_e,ref:wme})))}),__rest$4=function(Ff,kh){var x_={};for(var B_ in Ff)Object.prototype.hasOwnProperty.call(Ff,B_)&&kh.indexOf(B_)<0&&(x_[B_]=Ff[B_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $_=0,B_=Object.getOwnPropertySymbols(Ff);$_<B_.length;$_++)kh.indexOf(B_[$_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,B_[$_])&&(x_[B_[$_]]=Ff[B_[$_]]);return x_};const TextArea=React.forwardRef((Ff,kh)=>{var x_,B_;const{prefixCls:$_,bordered:$P=!0,size:zP,disabled:eme,status:tme,allowClear:nme,classNames:rme,rootClassName:ime,className:ome,style:ame,styles:cme,variant:ume}=Ff,sme=__rest$4(Ff,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:Tme}=devUseWarning("TextArea");Tme(!("bordered"in Ff),"bordered","variant")}const{getPrefixCls:lme,direction:dme,textArea:fme}=React__namespace.useContext(ConfigContext),pme=useSize(zP),hme=React__namespace.useContext(DisabledContext$1),mme=eme??hme,{status:_me,hasFeedback:gme,feedbackIcon:vme}=React__namespace.useContext(FormItemInputContext),Sme=getMergedStatus(_me,tme),Eme=React__namespace.useRef(null);React__namespace.useImperativeHandle(kh,()=>{var Tme;return{resizableTextArea:(Tme=Eme.current)===null||Tme===void 0?void 0:Tme.resizableTextArea,focus:Dme=>{var Fme,Ame;triggerFocus((Ame=(Fme=Eme.current)===null||Fme===void 0?void 0:Fme.resizableTextArea)===null||Ame===void 0?void 0:Ame.textArea,Dme)},blur:()=>{var Dme;return(Dme=Eme.current)===null||Dme===void 0?void 0:Dme.blur()}}});const bme=lme("input",$_),Rme=useCSSVarCls(bme),[Ome,Pme,Lme]=useStyle$1(bme,Rme),[Mme,yme]=useVariant(ume,$P),kme=getAllowClear$1(nme??(fme==null?void 0:fme.allowClear));return Ome(React__namespace.createElement(TextArea$2,Object.assign({autoComplete:fme==null?void 0:fme.autoComplete},sme,{style:Object.assign(Object.assign({},fme==null?void 0:fme.style),ame),styles:Object.assign(Object.assign({},fme==null?void 0:fme.styles),cme),disabled:mme,allowClear:kme,className:classNames(Lme,Rme,ome,ime,fme==null?void 0:fme.className),classNames:Object.assign(Object.assign(Object.assign({},rme),fme==null?void 0:fme.classNames),{textarea:classNames({[`${bme}-sm`]:pme==="small",[`${bme}-lg`]:pme==="large"},Pme,rme==null?void 0:rme.textarea,(x_=fme==null?void 0:fme.classNames)===null||x_===void 0?void 0:x_.textarea),variant:classNames({[`${bme}-${Mme}`]:yme},getStatusClassNames(bme,Sme)),affixWrapper:classNames(`${bme}-textarea-affix-wrapper`,{[`${bme}-affix-wrapper-rtl`]:dme==="rtl",[`${bme}-affix-wrapper-sm`]:pme==="small",[`${bme}-affix-wrapper-lg`]:pme==="large",[`${bme}-textarea-show-count`]:Ff.showCount||((B_=Ff.count)===null||B_===void 0?void 0:B_.show)},Pme)}),prefixCls:bme,suffix:gme&&React__namespace.createElement("span",{className:`${bme}-textarea-suffix`},vme),ref:Eme})))}),TextArea$1=TextArea,Input=InternalInput;process.env.NODE_ENV!=="production"&&(Input.displayName="Input"),Input.Group=Group$1,Input.Search=Search$1,Input.TextArea=TextArea$1,Input.Password=Password$1;const Input$1=Input;function isPresetSize(Ff){return["small","middle","large"].includes(Ff)}function isValidGapNumber(Ff){return Ff?typeof Ff=="number"&&!Number.isNaN(Ff):!1}const SpaceContext=React.createContext({latestIndex:0}),SpaceContextProvider=SpaceContext.Provider,Item=Ff=>{let{className:kh,index:x_,children:B_,split:$_,style:$P}=Ff;const{latestIndex:zP}=React__namespace.useContext(SpaceContext);return B_==null?null:React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("div",{className:kh,style:$P},B_),x_<zP&&$_&&React__namespace.createElement("span",{className:`${kh}-split`},$_))},Item$1=Item;var __rest$3=function(Ff,kh){var x_={};for(var B_ in Ff)Object.prototype.hasOwnProperty.call(Ff,B_)&&kh.indexOf(B_)<0&&(x_[B_]=Ff[B_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $_=0,B_=Object.getOwnPropertySymbols(Ff);$_<B_.length;$_++)kh.indexOf(B_[$_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,B_[$_])&&(x_[B_[$_]]=Ff[B_[$_]]);return x_};const Space=React__namespace.forwardRef((Ff,kh)=>{var x_,B_;const{getPrefixCls:$_,space:$P,direction:zP}=React__namespace.useContext(ConfigContext),{size:eme=($P==null?void 0:$P.size)||"small",align:tme,className:nme,rootClassName:rme,children:ime,direction:ome="horizontal",prefixCls:ame,split:cme,style:ume,wrap:sme=!1,classNames:lme,styles:dme}=Ff,fme=__rest$3(Ff,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[pme,hme]=Array.isArray(eme)?eme:[eme,eme],mme=isPresetSize(hme),_me=isPresetSize(pme),gme=isValidGapNumber(hme),vme=isValidGapNumber(pme),Sme=toArray$4(ime,{keepEmpty:!0}),Eme=tme===void 0&&ome==="horizontal"?"center":tme,bme=$_("space",ame),[Rme,Ome,Pme]=useStyle$7(bme),Lme=classNames(bme,$P==null?void 0:$P.className,Ome,`${bme}-${ome}`,{[`${bme}-rtl`]:zP==="rtl",[`${bme}-align-${Eme}`]:Eme,[`${bme}-gap-row-${hme}`]:mme,[`${bme}-gap-col-${pme}`]:_me},nme,rme,Pme),Mme=classNames(`${bme}-item`,(x_=lme==null?void 0:lme.item)!==null&&x_!==void 0?x_:(B_=$P==null?void 0:$P.classNames)===null||B_===void 0?void 0:B_.item);let yme=0;const kme=Sme.map((Fme,Ame)=>{var wme,xme;Fme!=null&&(yme=Ame);const Nme=Fme&&Fme.key||`${Mme}-${Ame}`;return React__namespace.createElement(Item$1,{className:Mme,key:Nme,index:Ame,split:cme,style:(wme=dme==null?void 0:dme.item)!==null&&wme!==void 0?wme:(xme=$P==null?void 0:$P.styles)===null||xme===void 0?void 0:xme.item},Fme)}),Tme=React__namespace.useMemo(()=>({latestIndex:yme}),[yme]);if(Sme.length===0)return null;const Dme={};return sme&&(Dme.flexWrap="wrap"),!_me&&vme&&(Dme.columnGap=pme),!mme&&gme&&(Dme.rowGap=hme),Rme(React__namespace.createElement("div",Object.assign({ref:kh,className:Lme,style:Object.assign(Object.assign(Object.assign({},Dme),$P==null?void 0:$P.style),ume)},fme),React__namespace.createElement(SpaceContextProvider,{value:Tme},kme)))});process.env.NODE_ENV!=="production"&&(Space.displayName="Space");const CompoundedSpace=Space;CompoundedSpace.Compact=Compact;const Space$1=CompoundedSpace;var __rest$2=function(Ff,kh){var x_={};for(var B_ in Ff)Object.prototype.hasOwnProperty.call(Ff,B_)&&kh.indexOf(B_)<0&&(x_[B_]=Ff[B_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $_=0,B_=Object.getOwnPropertySymbols(Ff);$_<B_.length;$_++)kh.indexOf(B_[$_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,B_[$_])&&(x_[B_[$_]]=Ff[B_[$_]]);return x_};const DropdownButton=Ff=>{const{getPopupContainer:kh,getPrefixCls:x_,direction:B_}=React__namespace.useContext(ConfigContext),{prefixCls:$_,type:$P="default",danger:zP,disabled:eme,loading:tme,onClick:nme,htmlType:rme,children:ime,className:ome,menu:ame,arrow:cme,autoFocus:ume,overlay:sme,trigger:lme,align:dme,open:fme,onOpenChange:pme,placement:hme,getPopupContainer:mme,href:_me,icon:gme=React__namespace.createElement(EllipsisOutlined$1,null),title:vme,buttonsRender:Sme=Ime=>Ime,mouseEnterDelay:Eme,mouseLeaveDelay:bme,overlayClassName:Rme,overlayStyle:Ome,destroyPopupOnHide:Pme,dropdownRender:Lme}=Ff,Mme=__rest$2(Ff,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),yme=x_("dropdown",$_),kme=`${yme}-button`,Tme={menu:ame,arrow:cme,autoFocus:ume,align:dme,disabled:eme,trigger:eme?[]:lme,onOpenChange:pme,getPopupContainer:mme||kh,mouseEnterDelay:Eme,mouseLeaveDelay:bme,overlayClassName:Rme,overlayStyle:Ome,destroyPopupOnHide:Pme,dropdownRender:Lme},{compactSize:Dme,compactItemClassnames:Fme}=useCompactItemContext(yme,B_),Ame=classNames(kme,Fme,ome);"overlay"in Ff&&(Tme.overlay=sme),"open"in Ff&&(Tme.open=fme),"placement"in Ff?Tme.placement=hme:Tme.placement=B_==="rtl"?"bottomLeft":"bottomRight";const wme=React__namespace.createElement(Button$1,{type:$P,danger:zP,disabled:eme,loading:tme,onClick:nme,htmlType:rme,href:_me,title:vme},ime),xme=React__namespace.createElement(Button$1,{type:$P,danger:zP,icon:gme}),[Nme,Cme]=Sme([wme,xme]);return React__namespace.createElement(Space$1.Compact,Object.assign({className:Ame,size:Dme,block:!0},Mme),Nme,React__namespace.createElement(InternalDropdown,Object.assign({},Tme),Cme))};DropdownButton.__ANT_BUTTON=!0;const DropdownButton$1=DropdownButton,Dropdown=InternalDropdown;Dropdown.Button=DropdownButton$1;const Dropdown$1=Dropdown;let message=null,act=Ff=>Ff(),taskQueue=[],defaultGlobalConfig={};function getGlobalContext(){const{getContainer:Ff,duration:kh,rtl:x_,maxCount:B_,top:$_}=defaultGlobalConfig,$P=(Ff==null?void 0:Ff())||document.body;return{getContainer:()=>$P,duration:kh,rtl:x_,maxCount:B_,top:$_}}const GlobalHolder=React.forwardRef((Ff,kh)=>{const{messageConfig:x_,sync:B_}=Ff,{getPrefixCls:$_}=React.useContext(ConfigContext),$P=defaultGlobalConfig.prefixCls||$_("message"),zP=React.useContext(AppConfigContext),[eme,tme]=useInternalMessage(Object.assign(Object.assign(Object.assign({},x_),{prefixCls:$P}),zP.message));return React.useImperativeHandle(kh,()=>{const nme=Object.assign({},eme);return Object.keys(nme).forEach(rme=>{nme[rme]=function(){return B_(),eme[rme].apply(eme,arguments)}}),{instance:nme,sync:B_}}),tme}),GlobalHolderWrapper=React.forwardRef((Ff,kh)=>{const[x_,B_]=React.useState(getGlobalContext),$_=()=>{B_(getGlobalContext)};React.useEffect($_,[]);const $P=globalConfig(),zP=$P.getRootPrefixCls(),eme=$P.getIconPrefixCls(),tme=$P.getTheme(),nme=React.createElement(GlobalHolder,{ref:kh,sync:$_,messageConfig:x_});return React.createElement(ConfigProvider,{prefixCls:zP,iconPrefixCls:eme,theme:tme},$P.holderRender?$P.holderRender(nme):nme)});function flushNotice(){if(!message){const Ff=document.createDocumentFragment(),kh={fragment:Ff};message=kh,act(()=>{render(React.createElement(GlobalHolderWrapper,{ref:x_=>{const{instance:B_,sync:$_}=x_||{};Promise.resolve().then(()=>{!kh.instance&&B_&&(kh.instance=B_,kh.sync=$_,flushNotice())})}}),Ff)});return}message.instance&&(taskQueue.forEach(Ff=>{const{type:kh,skipped:x_}=Ff;if(!x_)switch(kh){case"open":{act(()=>{const B_=message.instance.open(Object.assign(Object.assign({},defaultGlobalConfig),Ff.config));B_==null||B_.then(Ff.resolve),Ff.setCloseFn(B_)});break}case"destroy":act(()=>{message==null||message.instance.destroy(Ff.key)});break;default:act(()=>{var B_;const $_=(B_=message.instance)[kh].apply(B_,_toConsumableArray(Ff.args));$_==null||$_.then(Ff.resolve),Ff.setCloseFn($_)})}}),taskQueue=[])}function setMessageGlobalConfig(Ff){defaultGlobalConfig=Object.assign(Object.assign({},defaultGlobalConfig),Ff),act(()=>{var kh;(kh=message==null?void 0:message.sync)===null||kh===void 0||kh.call(message)})}function open(Ff){const kh=wrapPromiseFn(x_=>{let B_;const $_={type:"open",config:Ff,resolve:x_,setCloseFn:$P=>{B_=$P}};return taskQueue.push($_),()=>{B_?act(()=>{B_()}):$_.skipped=!0}});return flushNotice(),kh}function typeOpen(Ff,kh){const x_=globalConfig();process.env.NODE_ENV!=="production"&&!x_.holderRender&&warnContext("message");const B_=wrapPromiseFn($_=>{let $P;const zP={type:Ff,args:kh,resolve:$_,setCloseFn:eme=>{$P=eme}};return taskQueue.push(zP),()=>{$P?act(()=>{$P()}):zP.skipped=!0}});return flushNotice(),B_}function destroy(Ff){taskQueue.push({type:"destroy",key:Ff}),flushNotice()}const methods=["success","info","warning","error","loading"],baseStaticMethods={open,destroy,config:setMessageGlobalConfig,useMessage,_InternalPanelDoNotUseOrYouWillBeFired:PurePanel$5},staticMethods=baseStaticMethods;methods.forEach(Ff=>{staticMethods[Ff]=function(){for(var kh=arguments.length,x_=new Array(kh),B_=0;B_<kh;B_++)x_[B_]=arguments[B_];return typeOpen(Ff,x_)}}),process.env.NODE_ENV,process.env.NODE_ENV;const setAlign=Ff=>{if(Ff!=null&&Ff.isActive({textAlign:"left"}))return"left";if(Ff!=null&&Ff.isActive({textAlign:"center"}))return"center";if(Ff!=null&&Ff.isActive({textAlign:"right"}))return"right"},textDropDown=Ff=>[{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:Ff!=null&&Ff.isActive("paragraph")?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:Ff!=null&&Ff.isActive("paragraph")?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 4.00033V14.0003H7.33398V4.00033H3.33398V2.66699H12.6673V4.00033H8.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:Ff!=null&&Ff.isActive("paragraph")?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:Ff!=null&&Ff.isActive("paragraph")?"#1677FF":"#666666"},children:"文本"})]}),(Ff==null?void 0:Ff.isActive("paragraph"))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"paragraph",onClick:()=>{var x_,B_,$_,$P;const kh=setAlign(Ff)??"left";($P=($_=(B_=(x_=Ff==null?void 0:Ff.chain())==null?void 0:x_.focus())==null?void 0:B_.setParagraph())==null?void 0:$_.setTextAlign(kh))==null||$P.run()}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:Ff!=null&&Ff.isActive("heading",{level:1})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:Ff!=null&&Ff.isActive("heading",{level:1})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732V7.33366H7.33398V2.66699H8.66732V13.3337ZM14.001 5.33366V13.3337H12.6677L12.6673 6.80299L11.334 7.16033V5.78033L13.001 5.33366H14.001Z"})})}),jsxRuntimeExports.jsx("div",{className:Ff!=null&&Ff.isActive("heading",{level:1})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:Ff!=null&&Ff.isActive("heading",{level:1})?"#1677FF":"#666666"},children:"一级标题"})]}),(Ff==null?void 0:Ff.isActive("heading",{level:1}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading1",onClick:()=>{var x_,B_,$_,$P;const kh=setAlign(Ff)??"left";($P=($_=(B_=(x_=Ff==null?void 0:Ff.chain())==null?void 0:x_.focus())==null?void 0:B_.toggleHeading({level:1}))==null?void 0:$_.setTextAlign(kh))==null||$P.run()}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:Ff!=null&&Ff.isActive("heading",{level:2})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:Ff!=null&&Ff.isActive("heading",{level:2})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2.66732 2.66699V7.33366H7.33398V2.66699H8.66732V13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732ZM12.334 5.33366C13.7147 5.33366 14.834 6.45295 14.834 7.83366C14.834 8.40526 14.6422 8.93206 14.3194 9.35312L14.2208 9.47379L12.0235 12.0003H14.6673V13.3337H10.0007L10.0002 12.2963L13.2145 8.59906C13.3927 8.39419 13.5007 8.12653 13.5007 7.83366C13.5007 7.18933 12.9783 6.66699 12.334 6.66699C11.7219 6.66699 11.2199 7.13839 11.1712 7.73799L11.1673 7.83366H9.83398C9.83398 6.45295 10.9533 5.33366 12.334 5.33366Z"})})}),jsxRuntimeExports.jsx("div",{className:Ff!=null&&Ff.isActive("heading",{level:2})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:Ff!=null&&Ff.isActive("heading",{level:2})?"#1677FF":"#666666"},children:"二级标题"})]}),(Ff==null?void 0:Ff.isActive("heading",{level:2}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading2",onClick:()=>{var x_,B_,$_,$P;const kh=setAlign(Ff)??"left";($P=($_=(B_=(x_=Ff==null?void 0:Ff.chain())==null?void 0:x_.focus())==null?void 0:B_.toggleHeading({level:2}))==null?void 0:$_.setTextAlign(kh))==null||$P.run()}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:Ff!=null&&Ff.isActive("heading",{level:3})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:Ff!=null&&Ff.isActive("heading",{level:3})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33366L14.6663 6.66699L12.9963 8.58899C14.0555 8.87926 14.834 9.84886 14.834 11.0003C14.834 12.3811 13.7147 13.5003 12.334 13.5003C11.1167 13.5003 10.1025 12.6303 9.87958 11.4781L11.1887 11.2238C11.2929 11.7612 11.7661 12.167 12.334 12.167C12.9783 12.167 13.5007 11.6447 13.5007 11.0003C13.5007 10.356 12.9783 9.83366 12.334 9.83366C12.1433 9.83366 11.9633 9.87939 11.8044 9.96053L10.9335 8.92913L12.8996 6.66699H10.0007V5.33366H14.6673ZM2.66732 2.66699V7.33366H7.33398V2.66699H8.66732V13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:Ff!=null&&Ff.isActive("heading",{level:3})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:Ff!=null&&Ff.isActive("heading",{level:3})?"#1677FF":"#666666"},children:"三级标题"})]}),(Ff==null?void 0:Ff.isActive("heading",{level:3}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading3",onClick:()=>{var x_,B_,$_,$P;const kh=setAlign(Ff)??"left";($P=($_=(B_=(x_=Ff==null?void 0:Ff.chain())==null?void 0:x_.focus())==null?void 0:B_.toggleHeading({level:3}))==null?void 0:$_.setTextAlign(kh))==null||$P.run()}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:Ff!=null&&Ff.isActive("heading",{level:4})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:Ff!=null&&Ff.isActive("heading",{level:4})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732V7.33366H7.33398V2.66699H8.66732V13.3337ZM14.6673 5.33366V10.667H15.6673V12.0003H14.6673V13.3337H13.334V12.0003H9.66732V11.107L13.0007 5.33366H14.6673ZM13.334 7.42233L11.4607 10.667H13.334V7.42233Z"})})}),jsxRuntimeExports.jsx("div",{className:Ff!=null&&Ff.isActive("heading",{level:4})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:Ff!=null&&Ff.isActive("heading",{level:4})?"#1677FF":"#666666"},children:"四级标题"})]}),(Ff==null?void 0:Ff.isActive("heading",{level:4}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading4",onClick:()=>{var x_,B_,$_,$P;const kh=setAlign(Ff)??"left";($P=($_=(B_=(x_=Ff==null?void 0:Ff.chain())==null?void 0:x_.focus())==null?void 0:B_.toggleHeading({level:4}))==null?void 0:$_.setTextAlign(kh))==null||$P.run()}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:Ff!=null&&Ff.isActive("heading",{level:5})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:Ff!=null&&Ff.isActive("heading",{level:5})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33366V6.66699H11.7853L11.4757 8.42419C11.6963 8.36513 11.9281 8.33366 12.1673 8.33366C13.6401 8.33366 14.834 9.52759 14.834 11.0003C14.834 12.4731 13.6401 13.667 12.1673 13.667C10.9495 13.667 9.92245 12.8507 9.60325 11.7355L10.8854 11.3683C11.0451 11.9257 11.5586 12.3337 12.1673 12.3337C12.9037 12.3337 13.5007 11.7367 13.5007 11.0003C13.5007 10.2639 12.9037 9.66699 12.1673 9.66699C11.7469 9.66699 11.372 9.86153 11.1276 10.1655L9.92085 9.56293L10.6673 5.33366H14.6673ZM2.66732 2.66699V7.33366H7.33398V2.66699H8.66732V13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:Ff!=null&&Ff.isActive("heading",{level:5})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:Ff!=null&&Ff.isActive("heading",{level:5})?"#1677FF":"#666666"},children:"五级标题"})]}),(Ff==null?void 0:Ff.isActive("heading",{level:5}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading5",onClick:()=>{var x_,B_,$_,$P;const kh=setAlign(Ff)??"left";($P=($_=(B_=(x_=Ff==null?void 0:Ff.chain())==null?void 0:x_.focus())==null?void 0:B_.toggleHeading({level:5}))==null?void 0:$_.setTextAlign(kh))==null||$P.run()}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:Ff!=null&&Ff.isActive("heading",{level:6})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:Ff!=null&&Ff.isActive("heading",{level:6})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0653 5.33366L12.3333 8.33366C13.8067 8.33366 15.0007 9.52759 15.0007 11.0003C15.0007 12.4731 13.8067 13.667 12.334 13.667C10.8613 13.667 9.66732 12.4731 9.66732 11.0003C9.66732 10.5094 9.79998 10.0495 10.0314 9.65439L12.526 5.33366H14.0653ZM2.66732 2.66699V7.33366H7.33398V2.66699H8.66732V13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732ZM12.334 9.66699C11.5976 9.66699 11.0007 10.2639 11.0007 11.0003C11.0007 11.7367 11.5976 12.3337 12.334 12.3337C13.0704 12.3337 13.6673 11.7367 13.6673 11.0003C13.6673 10.2639 13.0704 9.66699 12.334 9.66699Z"})})}),jsxRuntimeExports.jsx("div",{className:Ff!=null&&Ff.isActive("heading",{level:6})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:Ff!=null&&Ff.isActive("heading",{level:6})?"#1677FF":"#666666"},children:"六级标题"})]}),(Ff==null?void 0:Ff.isActive("heading",{level:6}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading6",onClick:()=>{var x_,B_,$_,$P;const kh=setAlign(Ff)??"left";($P=($_=(B_=(x_=Ff==null?void 0:Ff.chain())==null?void 0:x_.focus())==null?void 0:B_.toggleHeading({level:6}))==null?void 0:$_.setTextAlign(kh))==null||$P.run()}}],alignDropDown=Ff=>[{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:Ff!=null&&Ff.isActive({textAlign:"left"})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:Ff!=null&&Ff.isActive({textAlign:"left"})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2 2.66699H14V4.00033H2V2.66699ZM2 12.667H11.3333V14.0003H2V12.667ZM2 9.33366H14V10.667H2V9.33366ZM2 6.00033H11.3333V7.33366H2V6.00033Z"})})}),jsxRuntimeExports.jsx("div",{className:Ff!=null&&Ff.isActive({textAlign:"left"})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:Ff!=null&&Ff.isActive({textAlign:"left"})?"#1677FF":"#666666"},children:"左对齐"})]}),(Ff==null?void 0:Ff.isActive({textAlign:"left"}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"left",onClick:()=>{var kh,x_,B_;(B_=(x_=(kh=Ff==null?void 0:Ff.chain())==null?void 0:kh.focus())==null?void 0:x_.setTextAlign("left"))==null||B_.run()}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:Ff!=null&&Ff.isActive({textAlign:"center"})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:Ff!=null&&Ff.isActive({textAlign:"center"})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2 2.66699H14V4.00033H2V2.66699ZM3.33333 12.667H12.6667V14.0003H3.33333V12.667ZM2 9.33366H14V10.667H2V9.33366ZM3.33333 6.00033H12.6667V7.33366H3.33333V6.00033Z"})})}),jsxRuntimeExports.jsx("div",{className:Ff!=null&&Ff.isActive({textAlign:"center"})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:Ff!=null&&Ff.isActive({textAlign:"center"})?"#1677FF":"#666666"},children:"居中对齐"})]}),(Ff==null?void 0:Ff.isActive({textAlign:"center"}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"center",onClick:()=>{var kh,x_,B_;(B_=(x_=(kh=Ff==null?void 0:Ff.chain())==null?void 0:kh.focus())==null?void 0:x_.setTextAlign("center"))==null||B_.run()}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:Ff!=null&&Ff.isActive({textAlign:"right"})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:Ff!=null&&Ff.isActive({textAlign:"right"})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2 2.66699H14V4.00033H2V2.66699ZM4.66667 12.667H14V14.0003H4.66667V12.667ZM2 9.33366H14V10.667H2V9.33366ZM4.66667 6.00033H14V7.33366H4.66667V6.00033Z"})})}),jsxRuntimeExports.jsx("div",{className:Ff!=null&&Ff.isActive({textAlign:"right"})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:Ff!=null&&Ff.isActive({textAlign:"right"})?"#1677FF":"#666666"},children:"右对齐"})]}),(Ff==null?void 0:Ff.isActive({textAlign:"right"}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"right",onClick:()=>{var kh,x_,B_;(B_=(x_=(kh=Ff==null?void 0:Ff.chain())==null?void 0:kh.focus())==null?void 0:x_.setTextAlign("right"))==null||B_.run()}}],HyperlinkContent=Ff=>{const{editor:kh,from:x_,to:B_,changeLink:$_}=Ff,[$P,zP]=React.useState(),[eme,tme]=React.useState(),[nme,rme]=React.useState(!1),ime=()=>{$_&&$_()},ome=()=>{var cme,ume,sme,lme,dme,fme;if(eme&&ame(eme)){const pme=kh==null?void 0:kh.view,hme=pme==null?void 0:pme.state.tr;hme&&(hme==null||hme.deleteRange(x_,B_),$P?hme==null||hme.insertText($P,x_):hme==null||hme.insertText(eme,x_),pme==null||pme.dispatch(hme));const mme=(cme=pme==null?void 0:pme.state)==null?void 0:cme.selection.to;console.log(pme,mme),(ume=kh==null?void 0:kh.commands)==null||ume.setTextSelection({from:x_,to:mme??x_}),(sme=kh==null?void 0:kh.view)==null||sme.focus(),(fme=(dme=(lme=kh==null?void 0:kh.chain())==null?void 0:lme.focus())==null?void 0:dme.setLink({href:eme,target:"_blank"}))==null||fme.run(),$_&&$_()}},ame=cme=>/^https?:\/\//.test(cme);return React.useEffect(()=>{var fme,pme;if(!kh)return;const cme=kh.state.doc,ume=(pme=(fme=kh==null?void 0:kh.view)==null?void 0:fme.state)==null?void 0:pme.selection,{$from:sme,$to:lme}=ume,dme=cme.textBetween(sme.pos,lme.pos," ");if(zP(dme??""),kh!=null&&kh.isActive("link")){const hme=sme.node();hme==null||hme.forEach(mme=>{var _me;mme!=null&&mme.marks&&((_me=mme==null?void 0:mme.marks)==null||_me.forEach(gme=>{var vme,Sme;tme(((vme=gme==null?void 0:gme.attrs)==null?void 0:vme.href)??""),ame((Sme=gme==null?void 0:gme.attrs)==null?void 0:Sme.href)}))})}},[kh,x_,B_]),jsxRuntimeExports.jsxs("div",{className:"h-link",onClick:()=>{},children:[jsxRuntimeExports.jsxs("div",{className:"h-link-line",children:[jsxRuntimeExports.jsx("div",{className:"text",children:"文本"}),jsxRuntimeExports.jsx(Input$1,{placeholder:"请输入文本",value:$P,onChange:cme=>{zP(cme.target.value)}})]}),jsxRuntimeExports.jsxs("div",{className:"h-link-line",children:[jsxRuntimeExports.jsx("div",{className:"text",children:"链接"}),jsxRuntimeExports.jsx(Input$1,{placeholder:"请粘贴或输入链接",onBlur:()=>{ame(eme)||!eme?rme(!1):rme(!0)},onFocus:()=>{rme(!1)},value:eme,onChange:cme=>{ame(cme.target.value),tme(cme.target.value)}}),nme&&jsxRuntimeExports.jsx("div",{className:"h-link-line-tip",children:"请输入链接"})]}),jsxRuntimeExports.jsxs("div",{className:"h-link-bottoms",children:[jsxRuntimeExports.jsx("div",{className:"cancleBtn",onClick:ime,children:"取消"}),jsxRuntimeExports.jsx("div",{className:"conBtn",style:{background:eme&&ame(eme)?"#1677FF":"#cccccc",cursor:eme&&ame(eme)?"pointer":"not-allowed"},onClick:()=>{ome()},children:"确定"})]})]})},BubbleMenuView$1=Ff=>{var ome,ame,cme,ume,sme,lme,dme,fme,pme,hme,mme,_me,gme,vme,Sme,Eme,bme,Rme,Ome,Pme,Lme,Mme,yme,kme,Tme,Dme,Fme,Ame;const{editor:kh,from:x_,to:B_,tipShow:$_=!1}=Ff,[$P,zP]=React.useState(!1);React.useState(!1);const[eme,tme]=React.useState($_),nme=wme=>{let xme;return wme==="text"?xme=textDropDown(kh):wme==="align"&&(xme=alignDropDown(kh)),{items:xme}},rme=nme("text");nme("align");const ime=wme=>{zP(wme)};return jsxRuntimeExports.jsx("div",{className:"bubble-new",style:{display:kh!=null&&kh.isEditable?"flex":"none"},children:eme?jsxRuntimeExports.jsx(Space$1,{children:jsxRuntimeExports.jsx(HyperlinkContent,{editor:kh,from:x_,to:B_,changeLink:()=>{var wme;tme(!1),(wme=kh==null?void 0:kh.view)==null||wme.focus()}})}):jsxRuntimeExports.jsxs(Space$1,{className:"bubble-menu",children:[jsxRuntimeExports.jsx(Dropdown$1,{overlayClassName:"bubbleMenuDropdown",menu:rme,onOpenChange:ime,children:jsxRuntimeExports.jsxs("div",{className:"bubble-menu-other-item",children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 4.00033V14.0003H7.33398V4.00033H3.33398V2.66699H12.6673V4.00033H8.66732Z",fill:"#666666"})}),jsxRuntimeExports.jsx("div",{style:{width:"2px"}}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-other-item-icon",style:{transform:$P?"rotate(180deg)":"rotate(0deg)"},children:jsxRuntimeExports.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("rect",{opacity:"0.01",width:"10",height:"10",fill:"#666666"}),jsxRuntimeExports.jsx("path",{d:"M7.36526 3.29136L4.88867 5.97454L2.41185 3.29136C2.28414 3.15298 2.06842 3.14433 1.93003 3.27204C1.79165 3.39976 1.783 3.61548 1.91072 3.75386L4.63799 6.70841C4.70253 6.77837 4.79338 6.81816 4.88856 6.81816C4.98374 6.81816 5.07459 6.77837 5.13913 6.70841L7.8664 3.75386C7.99411 3.61548 7.98547 3.39976 7.84708 3.27204C7.7087 3.14433 7.49298 3.15298 7.36526 3.29136",fill:"#999"})]})})]})}),jsxRuntimeExports.jsx("div",{className:"dropdownLine"}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-item",style:{background:kh!=null&&kh.isActive("bold")?"rgba(22,119,255,0.10)":"",cursor:(ume=(cme=(ame=(ome=kh==null?void 0:kh.can())==null?void 0:ome.chain())==null?void 0:ame.focus())==null?void 0:cme.toggleBold())!=null&&ume.run()?"pointer":"not-allowed"},onClick:()=>{var wme,xme,Nme,Cme,Ime,Bme,$me;(Cme=(Nme=(xme=(wme=kh==null?void 0:kh.can())==null?void 0:wme.chain())==null?void 0:xme.focus())==null?void 0:Nme.toggleBold())!=null&&Cme.run()&&(($me=(Bme=(Ime=kh==null?void 0:kh.chain())==null?void 0:Ime.focus())==null?void 0:Bme.toggleBold())==null||$me.run())},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 7.33366H8.33333C9.2538 7.33366 10 6.58747 10 5.66699C10 4.74652 9.2538 4.00033 8.33333 4.00033H5.33333V7.33366ZM12 10.3337C12 11.9905 10.6569 13.3337 9 13.3337H4V2.66699H8.33333C9.9902 2.66699 11.3333 4.01014 11.3333 5.66699C11.3333 6.46987 11.0179 7.19906 10.5043 7.73753C11.3986 8.25679 12 9.22499 12 10.3337ZM5.33333 8.66699V12.0003H9C9.92047 12.0003 10.6667 11.2541 10.6667 10.3337C10.6667 9.41319 9.92047 8.66699 9 8.66699H5.33333Z",fill:kh!=null&&kh.isActive("bold")?"#1677FF":"#666666"})})}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-item",style:{background:kh!=null&&kh.isActive("strike")?"rgba(22,119,255,0.10)":"",cursor:(fme=(dme=(lme=(sme=kh==null?void 0:kh.can())==null?void 0:sme.chain())==null?void 0:lme.focus())==null?void 0:dme.toggleStrike())!=null&&fme.run()?"pointer":"not-allowed"},onClick:()=>{var wme,xme,Nme,Cme,Ime,Bme,$me;(Cme=(Nme=(xme=(wme=kh==null?void 0:kh.can())==null?void 0:wme.chain())==null?void 0:xme.focus())==null?void 0:Nme.toggleStrike())!=null&&Cme.run()&&(($me=(Bme=(Ime=kh==null?void 0:kh.chain())==null?void 0:Ime.focus())==null?void 0:Bme.toggleStrike())==null||$me.run())},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M11.4359 9.33366C11.5897 9.67773 11.6667 10.0599 11.6667 10.4801C11.6667 11.3753 11.3175 12.0747 10.6191 12.5783C9.9206 13.0819 8.95567 13.3337 7.72413 13.3337C6.63116 13.3337 5.5489 13.0793 4.47728 12.5707V11.0676C5.49025 11.6525 6.5272 11.945 7.58813 11.945C9.28887 11.945 10.1419 11.4567 10.1472 10.4801C10.1472 10.0629 10.0033 9.70686 9.7154 9.41186C9.68927 9.38513 9.6626 9.35906 9.6354 9.33366H2V8.00033H14V9.33366H11.4359ZM8.71733 7.33366H5.08605C4.97107 7.22919 4.86411 7.11313 4.76517 6.98553C4.47728 6.61422 4.33333 6.16405 4.33333 5.63504C4.33333 4.81101 4.64389 4.11033 5.26499 3.53299C5.88611 2.95565 6.84707 2.66699 8.14793 2.66699C9.12893 2.66699 10.0673 2.88571 10.9629 3.32317V4.7576C10.1632 4.2998 9.2862 4.07091 8.33187 4.07091C6.67913 4.07091 5.85278 4.59228 5.85278 5.63504C5.85278 5.91481 5.99806 6.15897 6.28862 6.36752C6.57919 6.57607 6.93773 6.74266 7.3642 6.86726C7.77767 6.98806 8.22873 7.14353 8.71733 7.33366Z",fill:kh!=null&&kh.isActive("strike")?"#1677FF":"#666666"})})}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-item",style:{background:kh!=null&&kh.isActive("italic")?"rgba(22,119,255,0.10)":"",cursor:(_me=(mme=(hme=(pme=kh==null?void 0:kh.can())==null?void 0:pme.chain())==null?void 0:hme.focus())==null?void 0:mme.toggleItalic())!=null&&_me.run()?"pointer":"not-allowed"},onClick:()=>{var wme,xme,Nme,Cme,Ime,Bme,$me;(Cme=(Nme=(xme=(wme=kh==null?void 0:kh.can())==null?void 0:wme.chain())==null?void 0:xme.focus())==null?void 0:Nme.toggleItalic())!=null&&Cme.run()&&(($me=(Bme=(Ime=kh==null?void 0:kh.chain())==null?void 0:Ime.focus())==null?void 0:Bme.toggleItalic())==null||$me.run())},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M9.99935 13.3337H4.66602V12.0003H6.61709L8.02768 4.00033H5.99935V2.66699H11.3327V4.00033H9.38162L7.97102 12.0003H9.99935V13.3337Z",fill:kh!=null&&kh.isActive("italic")?"#1677FF":"#666666"})})}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-item",style:{background:kh!=null&&kh.isActive("underline")?"rgba(22,119,255,0.10)":"",cursor:(Eme=(Sme=(vme=(gme=kh==null?void 0:kh.can())==null?void 0:gme.chain())==null?void 0:vme.focus())==null?void 0:Sme.toggleUnderline())!=null&&Eme.run()?"pointer":"not-allowed"},onClick:()=>{var wme,xme,Nme,Cme,Ime,Bme,$me;(Cme=(Nme=(xme=(wme=kh==null?void 0:kh.can())==null?void 0:wme.chain())==null?void 0:xme.focus())==null?void 0:Nme.toggleUnderline())!=null&&Cme.run()&&(($me=(Bme=(Ime=kh==null?void 0:kh.chain())==null?void 0:Ime.focus())==null?void 0:Bme.toggleUnderline())==null||$me.run())},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33268 2V8C5.33268 9.47273 6.52659 10.6667 7.99935 10.6667C9.47208 10.6667 10.666 9.47273 10.666 8V2H11.9993V8C11.9993 10.2091 10.2085 12 7.99935 12C5.79021 12 3.99935 10.2091 3.99935 8V2H5.33268ZM2.66602 13.3333H13.3327V14.6667H2.66602V13.3333Z",fill:kh!=null&&kh.isActive("underline")?"#1677FF":"#666666"})})}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-item",style:{background:kh!=null&&kh.isActive("link")?"rgba(22,119,255,0.10)":"",cursor:(Pme=(Ome=(Rme=(bme=kh==null?void 0:kh.can())==null?void 0:bme.chain())==null?void 0:Rme.focus())==null?void 0:Ome.toggleLink())!=null&&Pme.run()?"pointer":"not-allowed"},onClick:()=>{var wme,xme,Nme,Cme;(Cme=(Nme=(xme=(wme=kh==null?void 0:kh.can())==null?void 0:wme.chain())==null?void 0:xme.focus())==null?void 0:Nme.toggleLink())!=null&&Cme.run()&&(tme(!0),setTimeout(()=>{var Ime;(Ime=kh==null?void 0:kh.view)==null||Ime.focus()},100))},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M12.2422 10.3565L11.2993 9.41374L12.2422 8.47094C13.5439 7.16921 13.5439 5.05865 12.2422 3.75691C10.9404 2.45516 8.82988 2.45516 7.52815 3.75691L6.58533 4.69972L5.64253 3.75691L6.58533 2.8141C8.40781 0.991654 11.3625 0.991654 13.185 2.8141C15.0074 4.63655 15.0074 7.59134 13.185 9.41374L12.2422 10.3565ZM10.3565 12.2422L9.41375 13.185C7.59135 15.0075 4.63655 15.0075 2.8141 13.185C0.991654 11.3625 0.991654 8.40781 2.8141 6.58533L3.75691 5.64253L4.69971 6.58533L3.75691 7.52814C2.45516 8.82987 2.45516 10.9405 3.75691 12.2422C5.05865 13.5439 7.16921 13.5439 8.47095 12.2422L9.41375 11.2994L10.3565 12.2422ZM9.88515 5.17112L10.8279 6.11393L6.11393 10.828L5.17112 9.88514L9.88515 5.17112Z",fill:kh!=null&&kh.isActive("link")?"#1677FF":"#666666"})})}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-item",style:{background:kh!=null&&kh.isActive("superscript")?"rgba(22,119,255,0.10)":"",cursor:(kme=(yme=(Mme=(Lme=kh==null?void 0:kh.can())==null?void 0:Lme.chain())==null?void 0:Mme.focus())==null?void 0:yme.toggleSuperscript())!=null&&kme.run()?"pointer":"not-allowed"},onClick:()=>{var wme,xme,Nme,Cme,Ime,Bme,$me;(Cme=(Nme=(xme=(wme=kh==null?void 0:kh.can())==null?void 0:wme.chain())==null?void 0:xme.focus())==null?void 0:Nme.toggleSuperscript())!=null&&Cme.run()&&(($me=(Bme=(Ime=kh==null?void 0:kh.chain())==null?void 0:Ime.focus())==null?void 0:Bme.toggleSuperscript())==null||$me.run())},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M3.73045 3.33366L7 7.28586L10.2695 3.33366H12L7.8652 8.33173L12 13.3299V13.3337H10.2727L7 9.37759L3.72728 13.3337H2V13.3299L6.13477 8.33173L2 3.33366H3.73045ZM14.3671 4.38719C14.4695 4.29001 14.5333 4.15263 14.5333 4.00033C14.5333 3.70577 14.2945 3.46699 14 3.46699C13.7055 3.46699 13.4667 3.70577 13.4667 4.00033C13.4667 4.05115 13.4738 4.10032 13.4871 4.14688L12.7177 4.36671C12.6845 4.25031 12.6667 4.12739 12.6667 4.00033C12.6667 3.26395 13.2636 2.66699 14 2.66699C14.7364 2.66699 15.3333 3.26395 15.3333 4.00033C15.3333 4.38215 15.1729 4.72648 14.9157 4.96955L13.8294 6.00033H15.3333V6.66699H12.6667V6.00033L14.3671 4.38719Z",fill:kh!=null&&kh.isActive("superscript")?"#1677FF":"#666666"})})}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-item",style:{background:kh!=null&&kh.isActive("subscript")?"rgba(22,119,255,0.10)":"",cursor:(Ame=(Fme=(Dme=(Tme=kh==null?void 0:kh.can())==null?void 0:Tme.chain())==null?void 0:Dme.focus())==null?void 0:Fme.toggleSubscript())!=null&&Ame.run()?"pointer":"not-allowed"},onClick:()=>{var wme,xme,Nme,Cme,Ime,Bme,$me;(Cme=(Nme=(xme=(wme=kh==null?void 0:kh.can())==null?void 0:wme.chain())==null?void 0:xme.focus())==null?void 0:Nme.toggleSubscript())!=null&&Cme.run()&&(($me=(Bme=(Ime=kh==null?void 0:kh.chain())==null?void 0:Ime.focus())==null?void 0:Bme.toggleSubscript())==null||$me.run())},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M3.73045 2.66699L7 6.6192L10.2695 2.66699H12L7.8652 7.66506L12 12.6632V12.667H10.2727L7 8.71093L3.72728 12.667H2V12.6632L6.13477 7.66506L2 2.66699H3.73045ZM14.5333 10.667C14.5333 10.3725 14.2945 10.1337 14 10.1337C13.7055 10.1337 13.4667 10.3725 13.4667 10.667C13.4667 10.7178 13.4738 10.767 13.4871 10.8135L12.7177 11.0334C12.6845 10.917 12.6667 10.7941 12.6667 10.667C12.6667 9.93059 13.2636 9.33366 14 9.33366C14.7364 9.33366 15.3333 9.93059 15.3333 10.667C15.3333 11.0488 15.1729 11.3931 14.9157 11.6362L13.8294 12.667H15.3333V13.3337H12.6667V12.667L14.3671 11.0539C14.4695 10.9567 14.5333 10.8193 14.5333 10.667Z",fill:kh!=null&&kh.isActive("subscript")?"#1677FF":"#666666"})})})]})})},bubbleModules={BubbleMenu:BubbleMenu$1,BubbleMenuView:BubbleMenuView$1},Catalogue=Ff=>{const{editor:kh,canOpenCatalogue:x_=!0,isUpdate:B_=!1,onChangeVisible:$_}=Ff,$P=React.useRef(!1),[zP,eme]=React.useState([]),[tme,nme]=React.useState([]),[rme,ime]=React.useState([]),[ome,ame]=React.useState(),[cme,ume]=React.useState(!0),[sme,lme]=React.useState(!1),dme=()=>{ume(!1),$_==null||$_(!1)},fme=()=>{lme(!1),ume(!0),$_==null||$_(!0)},pme=()=>{lme(!0),ume(!0)},hme=()=>{sme&&(lme(!1),ume(!1))},mme=(bme,Rme)=>{const Ome=bme==null?void 0:bme.target;(Ome==null?void 0:Ome.scrollWidth)>(Ome==null?void 0:Ome.clientWidth)&&(zP[Rme].showTooltip=!0,eme([...zP]))},_me=(bme,Rme)=>{zP[Rme].showTooltip=!1,eme([...zP])},gme=bme=>{rme.includes(bme)?rme.splice(rme.indexOf(bme),1):rme.push(bme),ime([...rme]),vme(zP,rme)},vme=(bme,Rme)=>{bme==null||bme.forEach(Ome=>Ome.hidden=!1),Rme!=null&&Rme.length&&(Rme==null||Rme.forEach(Ome=>{var Lme;const Pme=(Lme=bme[Ome])==null?void 0:Lme.level;for(let Mme=Ome+1;Mme<(bme==null?void 0:bme.length);Mme++){const yme=bme[Mme];if((yme==null?void 0:yme.level)>Pme)yme.hidden=!0;else break}})),eme([...bme])},Sme=bme=>{var Rme,Ome;$P.current=!0,ame(bme==null?void 0:bme.id),(Ome=kh==null?void 0:kh.chain())==null||Ome.focus((bme==null?void 0:bme.from)+((Rme=bme==null?void 0:bme.text)==null?void 0:Rme.length)).run()},Eme=()=>{var Pme,Lme,Mme,yme,kme;const bme=(Lme=(Pme=kh==null?void 0:kh.view)==null?void 0:Pme.docView)==null?void 0:Lme.children;if(!bme)return;const Rme=(Mme=bme==null?void 0:bme.filter(Tme=>{var Dme,Fme;return((Fme=(Dme=Tme==null?void 0:Tme.node)==null?void 0:Dme.type)==null?void 0:Fme.name)==="heading"}))==null?void 0:Mme.map(Tme=>{var Dme,Fme,Ame,wme;return{from:Tme==null?void 0:Tme.posAtStart,to:Tme==null?void 0:Tme.posAtEnd,text:(Dme=Tme==null?void 0:Tme.node)==null?void 0:Dme.textContent,level:(Ame=(Fme=Tme==null?void 0:Tme.node)==null?void 0:Fme.attrs)==null?void 0:Ame.level,id:(wme=Tme==null?void 0:Tme.nodeDOM)==null?void 0:wme.id}});vme(Rme,rme);const Ome=(kme=(yme=Rme==null?void 0:Rme.map(Tme=>Tme==null?void 0:Tme.level))==null?void 0:yme.filter((Tme,Dme,Fme)=>Fme.indexOf(Tme)===Dme))==null?void 0:kme.sort((Tme,Dme)=>Tme-Dme);nme(Ome)};return React.useEffect(()=>(kh&&(kh==null||kh.on("update",Eme)),()=>{kh&&(kh==null||kh.off("update",Eme))}),[kh,rme]),React.useEffect(()=>{const bme=()=>{if($P!=null&&$P.current){$P.current=!1;return}const Ome=document.getElementById("ylz-editor-container"),Pme=(Ome==null?void 0:Ome.querySelectorAll("h1, h2, h3, h4, h5, h6"))||[],Lme=(Ome==null?void 0:Ome.scrollTop)||0;let Mme=null;for(let yme=0;yme<(Pme==null?void 0:Pme.length);yme++){const kme=Pme[yme];if(((kme==null?void 0:kme.offsetTop)||0)>Lme){Mme=kme;break}}ame((Mme==null?void 0:Mme.id)||"")},Rme=document.getElementById("ylz-editor-container");return Rme==null||Rme.addEventListener("scroll",bme),()=>{Rme==null||Rme.removeEventListener("scroll",bme)}},[]),React.useEffect(()=>{x_===!1&&ume(!1)},[x_]),React.useEffect(()=>{B_&&Eme()},[B_]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:cme?jsxRuntimeExports.jsxs("div",{className:`catalogue${sme?" catalogue-hover":""}`,onMouseLeave:hme,children:[jsxRuntimeExports.jsxs("div",{className:"catalogue-header",children:[jsxRuntimeExports.jsx("span",{children:"目录"}),x_===!1?jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"not-allowed"},children:jsxRuntimeExports.jsx("path",{d:"M8.0015 2C11.5962 2 14.5869 4.58651 15.2139 8C14.5869 11.4135 11.5962 14 8.0015 14C4.40672 14 1.41607 11.4135 0.789062 8C1.41607 4.58651 4.40672 2 8.0015 2ZM8.0015 12.6667C10.8252 12.6667 13.2415 10.7013 13.8531 8C13.2415 5.29869 10.8252 3.33333 8.0015 3.33333C5.1777 3.33333 2.76145 5.29869 2.14982 8C2.76145 10.7013 5.1777 12.6667 8.0015 12.6667ZM8.0015 11C6.34462 11 5.00148 9.65687 5.00148 8C5.00148 6.34315 6.34462 5 8.0015 5C9.6583 5 11.0015 6.34315 11.0015 8C11.0015 9.65687 9.6583 11 8.0015 11ZM8.0015 9.66667C8.92197 9.66667 9.66817 8.92047 9.66817 8C9.66817 7.07953 8.92197 6.33333 8.0015 6.33333C7.08104 6.33333 6.33481 7.07953 6.33481 8C6.33481 8.92047 7.08104 9.66667 8.0015 9.66667Z",fill:"#CCCCCC"})}):jsxRuntimeExports.jsx(Tooltip$1,{placement:"bottomLeft",arrow:!1,title:sme?"显示目录":"隐藏目录",color:"white",overlayClassName:"ylz-editor-tooltip",children:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:sme?jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:fme,children:jsxRuntimeExports.jsx("path",{d:"M8.0015 2C11.5962 2 14.5869 4.58651 15.2139 8C14.5869 11.4135 11.5962 14 8.0015 14C4.40672 14 1.41607 11.4135 0.789062 8C1.41607 4.58651 4.40672 2 8.0015 2ZM8.0015 12.6667C10.8252 12.6667 13.2415 10.7013 13.8531 8C13.2415 5.29869 10.8252 3.33333 8.0015 3.33333C5.1777 3.33333 2.76145 5.29869 2.14982 8C2.76145 10.7013 5.1777 12.6667 8.0015 12.6667ZM8.0015 11C6.34462 11 5.00148 9.65687 5.00148 8C5.00148 6.34315 6.34462 5 8.0015 5C9.6583 5 11.0015 6.34315 11.0015 8C11.0015 9.65687 9.6583 11 8.0015 11ZM8.0015 9.66667C8.92197 9.66667 9.66817 8.92047 9.66817 8C9.66817 7.07953 8.92197 6.33333 8.0015 6.33333C7.08104 6.33333 6.33481 7.07953 6.33481 8C6.33481 8.92047 7.08104 9.66667 8.0015 9.66667Z",fill:"#666666"})}):jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:()=>dme(),children:[jsxRuntimeExports.jsx("g",{clipPath:"url(#clip0_3702_1182)",children:jsxRuntimeExports.jsx("path",{d:"M11.9211 12.8647C10.7869 13.5838 9.44188 14.0003 7.99955 14.0003C4.40476 14.0003 1.41412 11.4138 0.787109 8.0003C1.07823 6.41538 1.8789 5.00877 3.013 3.95655L0.928456 1.87201L1.87127 0.929199L15.0706 14.1285L14.1278 15.0714L11.9211 12.8647ZM3.95642 4.89997C3.0705 5.70693 2.42455 6.7783 2.14787 8.0003C2.7595 10.7016 5.17575 12.667 7.99955 12.667C9.06582 12.667 10.074 12.3867 10.9489 11.8924L9.59668 10.5402C9.13422 10.8316 8.58655 11.0003 7.99955 11.0003C6.34267 11.0003 4.99952 9.6571 4.99952 8.0003C4.99952 7.41323 5.16813 6.86557 5.45956 6.40311L3.95642 4.89997ZM8.60862 9.55217L6.44766 7.39123C6.37355 7.5799 6.33286 7.7853 6.33286 8.0003C6.33286 8.92077 7.07908 9.66697 7.99955 9.66697C8.21448 9.66697 8.41995 9.62623 8.60862 9.55217ZM13.8705 11.0618L12.9167 10.108C13.3539 9.4847 13.6763 8.77257 13.8511 8.0003C13.2395 5.29895 10.8233 3.33361 7.99955 3.33361C7.43562 3.33361 6.88795 3.41199 6.36768 3.55895L5.31566 2.50693C6.14686 2.17989 7.05222 2.00027 7.99955 2.00027C11.5943 2.00027 14.5849 4.58678 15.2119 8.0003C15.0038 9.13337 14.5352 10.1754 13.8705 11.0618ZM7.81462 5.00588C7.87575 5.00216 7.93742 5.00027 7.99955 5.00027C9.65635 5.00027 10.9995 6.34342 10.9995 8.0003C10.9995 8.06237 10.9976 8.12403 10.9939 8.18517L7.81462 5.00588Z",fill:"#666666"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"clip0_3702_1182",children:jsxRuntimeExports.jsx("rect",{width:"16",height:"16",fill:"white"})})})]})})})]}),jsxRuntimeExports.jsx("div",{className:"catalogue-main",children:zP==null?void 0:zP.map((bme,Rme)=>{var Ome;return jsxRuntimeExports.jsx(React.Fragment,{children:bme!=null&&bme.hidden?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsxs("div",{className:`indent-level-${(tme==null?void 0:tme.indexOf(bme==null?void 0:bme.level))+1} ${ome===(bme==null?void 0:bme.id)?"active":""}`,children:[jsxRuntimeExports.jsx("span",{className:`catalogue-collapse ${rme!=null&&rme.includes(Rme)?"collapsed":""}`,children:(bme==null?void 0:bme.level)<((Ome=zP[Rme+1])==null?void 0:Ome.level)?jsxRuntimeExports.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",onClick:()=>gme(Rme),children:[jsxRuntimeExports.jsx("rect",{opacity:"0.01",width:"14",height:"14"}),jsxRuntimeExports.jsx("path",{d:"M10.3079 4.60869L6.84062 8.36514L3.37308 4.60869C3.19428 4.41495 2.89227 4.40284 2.69853 4.58164C2.50479 4.76045 2.49269 5.06245 2.67149 5.25619L6.48967 9.39255C6.58002 9.49049 6.70721 9.5462 6.84046 9.5462C6.97372 9.5462 7.10091 9.49049 7.19126 9.39255L11.0094 5.25619C11.1882 5.06245 11.1761 4.76045 10.9824 4.58164C10.7887 4.40284 10.4867 4.41495 10.3079 4.60869"}),jsxRuntimeExports.jsx("path",{d:"M7.38411 9.53907C7.18421 9.77894 6.81579 9.77894 6.61589 9.53907L2.68341 4.82009C2.41202 4.49443 2.6436 4 3.06752 4L10.9325 4C11.3564 4 11.588 4.49443 11.3166 4.82009L7.38411 9.53907Z"})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}),jsxRuntimeExports.jsx(Tooltip$1,{open:!!(bme!=null&&bme.showTooltip),placement:"bottomLeft",arrow:!1,title:bme==null?void 0:bme.text,color:"white",overlayClassName:"ylz-editor-tooltip",children:jsxRuntimeExports.jsx("span",{className:"catalogue-text",onMouseEnter:Pme=>mme(Pme,Rme),onMouseLeave:Pme=>_me(Pme,Rme),onClick:()=>Sme(bme),children:bme==null?void 0:bme.text})},bme==null?void 0:bme.form)]})},(bme==null?void 0:bme.id)||(bme==null?void 0:bme.form))})})]}):jsxRuntimeExports.jsx("div",{className:"catalogue-folded",children:jsxRuntimeExports.jsx("div",{onMouseEnter:pme,children:"目录"})})})},backtickInputRegex$1=/^```([a-z]+)?[\s\n]$/,tildeInputRegex=/^~~~([a-z]+)?[\s\n]$/,CodeBlock=Node$1.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:Ff=>{var $P;const{languageClassPrefix:kh}=this.options,$_=[...(($P=Ff.firstElementChild)==null?void 0:$P.classList)||[]].filter(zP=>zP.startsWith(kh)).map(zP=>zP.replace(kh,""))[0];return $_||null},rendered:!1},exec:{default:!1,rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:Ff,HTMLAttributes:kh}){return["pre",mergeAttributes(this.options.HTMLAttributes,kh),["code",{class:Ff.attrs.language?this.options.languageClassPrefix+Ff.attrs.language:null},0]]},addCommands(){return{setCodeBlock:Ff=>({commands:kh})=>kh.setNode(this.name,Ff),toggleCodeBlock:Ff=>({commands:kh})=>kh.toggleNode(this.name,"paragraph",Ff)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:Ff,$anchor:kh}=this.editor.state.selection,x_=kh.pos===1;return!Ff||kh.parent.type.name!==this.name?!1:x_||!kh.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:Ff})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:kh}=Ff,{selection:x_}=kh,{$from:B_,empty:$_}=x_;if(!$_||B_.parent.type!==this.type)return!1;const $P=B_.parentOffset===B_.parent.nodeSize-2,zP=B_.parent.textContent.endsWith(`
|
|
404
404
|
|
|
405
405
|
`);return!$P||!zP?!1:Ff.chain().command(({tr:eme})=>(eme.delete(B_.pos-2,B_.pos),!0)).exitCode().run()},ArrowDown:({editor:Ff})=>{if(!this.options.exitOnArrowDown)return!1;const{state:kh}=Ff,{selection:x_,doc:B_}=kh,{$from:$_,empty:$P}=x_;if(!$P||$_.parent.type!==this.type||!($_.parentOffset===$_.parent.nodeSize-2))return!1;const eme=$_.after();return eme===void 0||B_.nodeAt(eme)?!1:Ff.commands.exitCode()}}},addInputRules(){return[textblockTypeInputRule({find:backtickInputRegex$1,type:this.type,getAttributes:Ff=>({language:Ff[1]})}),textblockTypeInputRule({find:tildeInputRegex,type:this.type,getAttributes:Ff=>({language:Ff[1]})})]},addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("codeBlockVSCodeHandler"),props:{handlePaste:(Ff,kh)=>{if(!kh.clipboardData||this.editor.isActive(this.type.name))return!1;const x_=kh.clipboardData.getData("text/plain"),B_=kh.clipboardData.getData("vscode-editor-data"),$_=B_?JSON.parse(B_):void 0,$P=$_==null?void 0:$_.mode;if(!x_||!$P)return!1;const{tr:zP}=Ff.state;return zP.replaceSelectionWith(this.type.create({language:$P})),zP.setSelection(TextSelection.near(zP.doc.resolve(Math.max(0,zP.selection.from-1)))),zP.insertText(x_.replace(/\r\n?/g,`
|
|
406
|
-
`)),zP.setMeta("paste",!0),Ff.dispatch(zP),!0}}})]}});function parseNodes(Ff,kh=[]){return Ff.map(x_=>{const B_=[...kh,...x_.properties?x_.properties.className:[]];return x_.children?parseNodes(x_.children,B_):{text:x_.value,classes:B_}}).flat()}function getHighlightNodes(Ff){return Ff.value||Ff.children||[]}function registered(Ff){return!!HighlightJS.getLanguage(Ff)}function getDecorations({doc:Ff,name:kh,lowlight:x_,defaultLanguage:B_}){const $_=[];return findChildren(Ff,$P=>$P.type.name===kh).forEach($P=>{let zP=$P.pos+1;const eme=$P.node.attrs.language||B_,tme=x_.listLanguages(),nme=eme&&(tme.includes(eme)||registered(eme))?getHighlightNodes(x_.highlight(eme,$P.node.textContent)):getHighlightNodes(x_.highlightAuto($P.node.textContent));parseNodes(nme).forEach(rme=>{const ime=zP+rme.text.length;if(rme.classes.length){const ome=Decoration.inline(zP,ime,{class:rme.classes.join(" ")});$_.push(ome)}zP=ime})}),DecorationSet.create(Ff,$_)}function isFunction$1(Ff){return typeof Ff=="function"}function LowlightPlugin({name:Ff,lowlight:kh,defaultLanguage:x_}){if(!["highlight","highlightAuto","listLanguages"].every($_=>isFunction$1(kh[$_])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const B_=new Plugin({key:new PluginKey("lowlight"),state:{init:($_,{doc:$P})=>getDecorations({doc:$P,name:Ff,lowlight:kh,defaultLanguage:x_}),apply:($_,$P,zP,eme)=>{const tme=zP.selection.$head.parent.type.name,nme=eme.selection.$head.parent.type.name,rme=findChildren(zP.doc,ome=>ome.type.name===Ff),ime=findChildren(eme.doc,ome=>ome.type.name===Ff);return $_.docChanged&&([tme,nme].includes(Ff)||ime.length!==rme.length||$_.steps.some(ome=>ome.from!==void 0&&ome.to!==void 0&&rme.some(ame=>ame.pos>=ome.from&&ame.pos+ame.node.nodeSize<=ome.to)))?getDecorations({doc:$_.doc,name:Ff,lowlight:kh,defaultLanguage:x_}):$P.map($_.mapping,$_.doc)}},props:{decorations($_){return B_.getState($_)}}});return B_}const CodeBlockView=({editor:Ff,node:kh,updateAttributes:x_,extension:B_})=>{var lme,dme,fme,pme,hme,mme;const $_=React.useContext(shareData),[$P,zP]=React.useState("light"),[eme,tme]=React.useState(((lme=kh==null?void 0:kh.attrs)==null?void 0:lme.exec)||!1),[nme,rme]=React.useState(!1),[ime,ome]=React.useState(!1),ame=_me=>{x_({language:_me})},cme=_me=>{var vme;const gme=(vme=_me==null?void 0:_me.target)==null?void 0:vme.checked;tme(gme),x_({exec:gme})},ume=()=>{var _me;(_me=navigator==null?void 0:navigator.clipboard)==null||_me.writeText(kh==null?void 0:kh.textContent).then(()=>{rme(!0);const gme=setTimeout(()=>{rme(!1),clearTimeout(gme)},2e3)})},sme=()=>{var _me;(_me=B_==null?void 0:B_.options)==null||_me.onExec(kh==null?void 0:kh.textContent)};return React.useEffect(()=>{eme&&($_!=null&&$_.template)?zP("dark"):zP("light")},[eme,$_==null?void 0:$_.template]),jsxRuntimeExports.jsx(NodeViewWrapper,{children:jsxRuntimeExports.jsxs("div",{className:`code-block code-block-${$P}`,onMouseEnter:()=>ome(!0),onMouseLeave:()=>ome(!1),children:[jsxRuntimeExports.jsxs("div",{className:"code-block-header",contentEditable:!1,style:{display:ime?"flex":"none"},children:[jsxRuntimeExports.jsxs("div",{className:"code-block-header-left",children:[jsxRuntimeExports.jsx(Select$1,{disabled:!(Ff!=null&&Ff.isEditable),placeholder:"选择语言",defaultValue:((dme=kh==null?void 0:kh.attrs)==null?void 0:dme.language)??"",style:{width:90},onChange:ame,options:[{value:"",label:"atuo"},...(hme=(pme=(fme=B_==null?void 0:B_.options)==null?void 0:fme.lowlight)==null?void 0:pme.listLanguages())==null?void 0:hme.map(_me=>({value:_me,label:_me}))]}),($_==null?void 0:$_.template)&&jsxRuntimeExports.jsx(Select$1,{disabled:!0,defaultValue:(mme=$_==null?void 0:$_.template)==null?void 0:mme.name})]}),($_==null?void 0:$_.template)&&(Ff==null?void 0:Ff.isEditable)&&jsxRuntimeExports.jsx("div",{className:"code-block-header-right",children:jsxRuntimeExports.jsx(Checkbox$1,{checked:eme,onChange:cme,children:"执行"})})]}),jsxRuntimeExports.jsx("pre",{className:"code-block-body",children:jsxRuntimeExports.jsx(NodeViewContent,{as:"code"})}),jsxRuntimeExports.jsxs("div",{className:"code-block-action",contentEditable:!1,children:[eme&&($_==null?void 0:$_.template)&&jsxRuntimeExports.jsx(Button$1,{type:"primary",onClick:sme,children:"执行"}),jsxRuntimeExports.jsxs("div",{className:"code-block-action-copy",children:[nme&&jsxRuntimeExports.jsxs("div",{className:"copy-tip",children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("rect",{opacity:"0.01",width:"16",height:"16",fill:"black"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 1C4.13438 1 1 4.13438 1 8C1 11.8656 4.13438 15 8 15C11.8656 15 15 11.8656 15 8C15 4.13438 11.8656 1 8 1Z",fill:"#30C213"}),jsxRuntimeExports.jsx("path",{d:"M3.75391 8.76556C3.75391 8.76556 5.94801 10.5554 6.16596 12.0777C6.16596 12.0777 9.04299 7.38086 12.2397 6.96062C12.2397 6.96062 11.2662 6.25307 11.5858 5.13477C11.5858 5.13477 9.81311 5.31117 6.4711 10.4844L4.9048 7.8329L3.75391 8.76556Z",fill:"white"})]}),jsxRuntimeExports.jsx("span",{children:"复制成功"})]}),jsxRuntimeExports.jsx(Button$1,{type:"primary",onClick:ume,children:"复制"})]})]})]})})},CodeBlockLowlight=CodeBlock.extend({addOptions(){var Ff;return{...(Ff=this.parent)==null?void 0:Ff.call(this),lowlight:{},defaultLanguage:null}},addNodeView(){return ReactNodeViewRenderer(CodeBlockView)},addProseMirrorPlugins(){var Ff;return[...((Ff=this.parent)==null?void 0:Ff.call(this))||[],LowlightPlugin({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}}),FloatingMenuPlugin=Ff=>{var $P,zP;let kh,x_={},B_=!1;return($P=Ff.tip)==null||$P.emitter.on("hover",({node:eme,pos:tme,range:nme})=>{x_={node:eme,pos:tme,range:nme}}),(zP=Ff.tip)==null||zP.emitter.on("show",eme=>{B_=eme.show}),new Plugin({key:new PluginKey(Ff.pluginKey),view:eme=>({update(tme,nme){var cme,ume,sme;const{anchor:rme}=tme.state.selection,{anchor:ime}=nme.selection,{node:ome,pos:ame}=x_;(cme=Ff.tip)!=null&&cme.isShow&&rme>=ame&&rme<ame+ome.nodeSize&&(ime<ame||ime>=ame+ome.nodeSize)||rme!==ime&&((ume=Ff.tip)!=null&&ume.isShow)&&((sme=Ff.tip.tippy)==null||sme.hide())},destroy(){var tme;(tme=Ff.tip)==null||tme.destroy()}}),props:{handleDOMEvents:{mousemove:(eme,tme)=>{kh&&clearTimeout(kh);const{editor:nme,tip:rme}=Ff;nme.isEditable&&(kh=setTimeout(()=>{var cme,ume;const ime=(ume=(cme=nme==null?void 0:nme.view)==null?void 0:cme.state)==null?void 0:ume.selection,{from:ome,to:ame}=ime;if(ome!=ame)return!1;rme==null||rme.move(eme,tme)},0))},wheel:()=>{var eme;(eme=Ff.tip)==null||eme.hide()}},decorations(eme){if(B_&&x_.node){const tme=Decoration.node(x_.range.from,x_.range.to,{style:"background: rgba(22,119,255,0.10); border-radius: 4px;"});return DecorationSet.create(eme.doc,[tme])}return null}}})},TableSelect=Ff=>{const{onClick:kh}=Ff,[x_,B_]=React.useState({row:0,col:0}),[$_,$P]=React.useState([]);React.useEffect(()=>{const rme=[];for(let ime=0;ime<9;ime++){rme[ime]=[];for(let ome=0;ome<9;ome++)ime<x_.row&&ome<x_.col?rme[ime][ome]=!0:rme[ime][ome]=!1}$P(rme)},[x_]);const zP=nme=>{const{dataset:rme}=nme.target;if(rme.row){const{row:ime,col:ome}=rme;B_({row:parseInt(ime),col:parseInt(ome)})}else{const ime=nme.target.getBoundingClientRect(),ome=nme.clientX-ime.left-nme.target.clientLeft-10,ame=nme.clientY-ime.top-nme.target.clientTop-10;let cme,ume;ome<0?ume=0:(ume=Math.ceil(ome/26),ume=Math.min(ume,9)),ame<0?cme=0:(cme=Math.ceil(ame/26),cme=Math.min(cme,9)),B_(cme===0||ume===0?{row:0,col:0}:{row:cme,col:ume})}},eme=nme=>{B_({row:0,col:0})},tme=()=>{x_.row&&(kh==null||kh(x_))};return jsxRuntimeExports.jsxs("div",{className:"tiptap-table-select",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-table-select-title",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-table-select-title-left",children:"表格行列"}),jsxRuntimeExports.jsx("div",{className:"tiptap-table-select-title-right",children:x_.row?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:x_.row}),jsxRuntimeExports.jsx("span",{children:"x"}),jsxRuntimeExports.jsx("span",{children:x_.col})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})})]}),jsxRuntimeExports.jsx("div",{className:"tiptap-table-select-content",onMouseMove:zP,onClick:tme,onMouseLeave:eme,children:$_.map((nme,rme)=>jsxRuntimeExports.jsx(React.Fragment,{children:nme.map((ime,ome)=>jsxRuntimeExports.jsx("div",{className:ime?"light":"","data-row":rme+1,"data-col":ome+1},`${rme}-${ome}`))},rme))})]})};function bind(Ff,kh){return function(){return Ff.apply(kh,arguments)}}const{toString:toString$1}=Object.prototype,{getPrototypeOf}=Object,kindOf=(Ff=>kh=>{const x_=toString$1.call(kh);return Ff[x_]||(Ff[x_]=x_.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=Ff=>(Ff=Ff.toLowerCase(),kh=>kindOf(kh)===Ff),typeOfTest=Ff=>kh=>typeof kh===Ff,{isArray:isArray$1}=Array,isUndefined=typeOfTest("undefined");function isBuffer$2(Ff){return Ff!==null&&!isUndefined(Ff)&&Ff.constructor!==null&&!isUndefined(Ff.constructor)&&isFunction(Ff.constructor.isBuffer)&&Ff.constructor.isBuffer(Ff)}const isArrayBuffer$1=kindOfTest("ArrayBuffer");function isArrayBufferView(Ff){let kh;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?kh=ArrayBuffer.isView(Ff):kh=Ff&&Ff.buffer&&isArrayBuffer$1(Ff.buffer),kh}const isString$1=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=Ff=>Ff!==null&&typeof Ff=="object",isBoolean=Ff=>Ff===!0||Ff===!1,isPlainObject$2=Ff=>{if(kindOf(Ff)!=="object")return!1;const kh=getPrototypeOf(Ff);return(kh===null||kh===Object.prototype||Object.getPrototypeOf(kh)===null)&&!(Symbol.toStringTag in Ff)&&!(Symbol.iterator in Ff)},isDate=kindOfTest("Date"),isFile$1=kindOfTest("File"),isBlob$1=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=Ff=>isObject(Ff)&&isFunction(Ff.pipe),isFormData=Ff=>{let kh;return Ff&&(typeof FormData=="function"&&Ff instanceof FormData||isFunction(Ff.append)&&((kh=kindOf(Ff))==="formdata"||kh==="object"&&isFunction(Ff.toString)&&Ff.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim=Ff=>Ff.trim?Ff.trim():Ff.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(Ff,kh,{allOwnKeys:x_=!1}={}){if(Ff===null||typeof Ff>"u")return;let B_,$_;if(typeof Ff!="object"&&(Ff=[Ff]),isArray$1(Ff))for(B_=0,$_=Ff.length;B_<$_;B_++)kh.call(null,Ff[B_],B_,Ff);else{const $P=x_?Object.getOwnPropertyNames(Ff):Object.keys(Ff),zP=$P.length;let eme;for(B_=0;B_<zP;B_++)eme=$P[B_],kh.call(null,Ff[eme],eme,Ff)}}function findKey(Ff,kh){kh=kh.toLowerCase();const x_=Object.keys(Ff);let B_=x_.length,$_;for(;B_-- >0;)if($_=x_[B_],kh===$_.toLowerCase())return $_;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=Ff=>!isUndefined(Ff)&&Ff!==_global;function merge(){const{caseless:Ff}=isContextDefined(this)&&this||{},kh={},x_=(B_,$_)=>{const $P=Ff&&findKey(kh,$_)||$_;isPlainObject$2(kh[$P])&&isPlainObject$2(B_)?kh[$P]=merge(kh[$P],B_):isPlainObject$2(B_)?kh[$P]=merge({},B_):isArray$1(B_)?kh[$P]=B_.slice():kh[$P]=B_};for(let B_=0,$_=arguments.length;B_<$_;B_++)arguments[B_]&&forEach(arguments[B_],x_);return kh}const extend$2=(Ff,kh,x_,{allOwnKeys:B_}={})=>(forEach(kh,($_,$P)=>{x_&&isFunction($_)?Ff[$P]=bind($_,x_):Ff[$P]=$_},{allOwnKeys:B_}),Ff),stripBOM=Ff=>(Ff.charCodeAt(0)===65279&&(Ff=Ff.slice(1)),Ff),inherits=(Ff,kh,x_,B_)=>{Ff.prototype=Object.create(kh.prototype,B_),Ff.prototype.constructor=Ff,Object.defineProperty(Ff,"super",{value:kh.prototype}),x_&&Object.assign(Ff.prototype,x_)},toFlatObject=(Ff,kh,x_,B_)=>{let $_,$P,zP;const eme={};if(kh=kh||{},Ff==null)return kh;do{for($_=Object.getOwnPropertyNames(Ff),$P=$_.length;$P-- >0;)zP=$_[$P],(!B_||B_(zP,Ff,kh))&&!eme[zP]&&(kh[zP]=Ff[zP],eme[zP]=!0);Ff=x_!==!1&&getPrototypeOf(Ff)}while(Ff&&(!x_||x_(Ff,kh))&&Ff!==Object.prototype);return kh},endsWith=(Ff,kh,x_)=>{Ff=String(Ff),(x_===void 0||x_>Ff.length)&&(x_=Ff.length),x_-=kh.length;const B_=Ff.indexOf(kh,x_);return B_!==-1&&B_===x_},toArray=Ff=>{if(!Ff)return null;if(isArray$1(Ff))return Ff;let kh=Ff.length;if(!isNumber(kh))return null;const x_=new Array(kh);for(;kh-- >0;)x_[kh]=Ff[kh];return x_},isTypedArray$1=(Ff=>kh=>Ff&&kh instanceof Ff)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(Ff,kh)=>{const B_=(Ff&&Ff[Symbol.iterator]).call(Ff);let $_;for(;($_=B_.next())&&!$_.done;){const $P=$_.value;kh.call(Ff,$P[0],$P[1])}},matchAll=(Ff,kh)=>{let x_;const B_=[];for(;(x_=Ff.exec(kh))!==null;)B_.push(x_);return B_},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=Ff=>Ff.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(x_,B_,$_){return B_.toUpperCase()+$_}),hasOwnProperty$2=(({hasOwnProperty:Ff})=>(kh,x_)=>Ff.call(kh,x_))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(Ff,kh)=>{const x_=Object.getOwnPropertyDescriptors(Ff),B_={};forEach(x_,($_,$P)=>{let zP;(zP=kh($_,$P,Ff))!==!1&&(B_[$P]=zP||$_)}),Object.defineProperties(Ff,B_)},freezeMethods=Ff=>{reduceDescriptors(Ff,(kh,x_)=>{if(isFunction(Ff)&&["arguments","caller","callee"].indexOf(x_)!==-1)return!1;const B_=Ff[x_];if(isFunction(B_)){if(kh.enumerable=!1,"writable"in kh){kh.writable=!1;return}kh.set||(kh.set=()=>{throw Error("Can not rewrite read-only method '"+x_+"'")})}})},toObjectSet=(Ff,kh)=>{const x_={},B_=$_=>{$_.forEach($P=>{x_[$P]=!0})};return isArray$1(Ff)?B_(Ff):B_(String(Ff).split(kh)),x_},noop$1=()=>{},toFiniteNumber=(Ff,kh)=>(Ff=+Ff,Number.isFinite(Ff)?Ff:kh),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT$1="0123456789",ALPHABET={DIGIT:DIGIT$1,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT$1},generateString=(Ff=16,kh=ALPHABET.ALPHA_DIGIT)=>{let x_="";const{length:B_}=kh;for(;Ff--;)x_+=kh[Math.random()*B_|0];return x_};function isSpecCompliantForm(Ff){return!!(Ff&&isFunction(Ff.append)&&Ff[Symbol.toStringTag]==="FormData"&&Ff[Symbol.iterator])}const toJSONObject=Ff=>{const kh=new Array(10),x_=(B_,$_)=>{if(isObject(B_)){if(kh.indexOf(B_)>=0)return;if(!("toJSON"in B_)){kh[$_]=B_;const $P=isArray$1(B_)?[]:{};return forEach(B_,(zP,eme)=>{const tme=x_(zP,$_+1);!isUndefined(tme)&&($P[eme]=tme)}),kh[$_]=void 0,$P}}return B_};return x_(Ff,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=Ff=>Ff&&(isObject(Ff)||isFunction(Ff))&&isFunction(Ff.then)&&isFunction(Ff.catch),utils$1={isArray:isArray$1,isArrayBuffer:isArrayBuffer$1,isBuffer:isBuffer$2,isFormData,isArrayBufferView,isString:isString$1,isNumber,isBoolean,isObject,isPlainObject:isPlainObject$2,isUndefined,isDate,isFile:isFile$1,isBlob:isBlob$1,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray:isTypedArray$1,isFileList,forEach,merge,extend:extend$2,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$2,hasOwnProp:hasOwnProperty$2,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$1,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(Ff,kh,x_,B_,$_){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=Ff,this.name="AxiosError",kh&&(this.code=kh),x_&&(this.config=x_),B_&&(this.request=B_),$_&&(this.response=$_)}utils$1.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(Ff=>{descriptors[Ff]={value:Ff}}),Object.defineProperties(AxiosError,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError.from=(Ff,kh,x_,B_,$_,$P)=>{const zP=Object.create(prototype$1);return utils$1.toFlatObject(Ff,zP,function(tme){return tme!==Error.prototype},eme=>eme!=="isAxiosError"),AxiosError.call(zP,Ff.message,kh,x_,B_,$_),zP.cause=Ff,zP.name=Ff.name,$P&&Object.assign(zP,$P),zP};const httpAdapter=null;function isVisitable(Ff){return utils$1.isPlainObject(Ff)||utils$1.isArray(Ff)}function removeBrackets(Ff){return utils$1.endsWith(Ff,"[]")?Ff.slice(0,-2):Ff}function renderKey(Ff,kh,x_){return Ff?Ff.concat(kh).map(function($_,$P){return $_=removeBrackets($_),!x_&&$P?"["+$_+"]":$_}).join(x_?".":""):kh}function isFlatArray(Ff){return utils$1.isArray(Ff)&&!Ff.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(kh){return/^is[A-Z]/.test(kh)});function toFormData(Ff,kh,x_){if(!utils$1.isObject(Ff))throw new TypeError("target must be an object");kh=kh||new FormData,x_=utils$1.toFlatObject(x_,{metaTokens:!0,dots:!1,indexes:!1},!1,function(ume,sme){return!utils$1.isUndefined(sme[ume])});const B_=x_.metaTokens,$_=x_.visitor||rme,$P=x_.dots,zP=x_.indexes,tme=(x_.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(kh);if(!utils$1.isFunction($_))throw new TypeError("visitor must be a function");function nme(cme){if(cme===null)return"";if(utils$1.isDate(cme))return cme.toISOString();if(!tme&&utils$1.isBlob(cme))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(cme)||utils$1.isTypedArray(cme)?tme&&typeof Blob=="function"?new Blob([cme]):Buffer.from(cme):cme}function rme(cme,ume,sme){let lme=cme;if(cme&&!sme&&typeof cme=="object"){if(utils$1.endsWith(ume,"{}"))ume=B_?ume:ume.slice(0,-2),cme=JSON.stringify(cme);else if(utils$1.isArray(cme)&&isFlatArray(cme)||(utils$1.isFileList(cme)||utils$1.endsWith(ume,"[]"))&&(lme=utils$1.toArray(cme)))return ume=removeBrackets(ume),lme.forEach(function(fme,pme){!(utils$1.isUndefined(fme)||fme===null)&&kh.append(zP===!0?renderKey([ume],pme,$P):zP===null?ume:ume+"[]",nme(fme))}),!1}return isVisitable(cme)?!0:(kh.append(renderKey(sme,ume,$P),nme(cme)),!1)}const ime=[],ome=Object.assign(predicates,{defaultVisitor:rme,convertValue:nme,isVisitable});function ame(cme,ume){if(!utils$1.isUndefined(cme)){if(ime.indexOf(cme)!==-1)throw Error("Circular reference detected in "+ume.join("."));ime.push(cme),utils$1.forEach(cme,function(lme,dme){(!(utils$1.isUndefined(lme)||lme===null)&&$_.call(kh,lme,utils$1.isString(dme)?dme.trim():dme,ume,ome))===!0&&ame(lme,ume?ume.concat(dme):[dme])}),ime.pop()}}if(!utils$1.isObject(Ff))throw new TypeError("data must be an object");return ame(Ff),kh}function encode$1(Ff){const kh={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(Ff).replace(/[!'()~]|%20|%00/g,function(B_){return kh[B_]})}function AxiosURLSearchParams(Ff,kh){this._pairs=[],Ff&&toFormData(Ff,this,kh)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(kh,x_){this._pairs.push([kh,x_])},prototype.toString=function(kh){const x_=kh?function(B_){return kh.call(this,B_,encode$1)}:encode$1;return this._pairs.map(function($_){return x_($_[0])+"="+x_($_[1])},"").join("&")};function encode(Ff){return encodeURIComponent(Ff).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(Ff,kh,x_){if(!kh)return Ff;const B_=x_&&x_.encode||encode,$_=x_&&x_.serialize;let $P;if($_?$P=$_(kh,x_):$P=utils$1.isURLSearchParams(kh)?kh.toString():new AxiosURLSearchParams(kh,x_).toString(B_),$P){const zP=Ff.indexOf("#");zP!==-1&&(Ff=Ff.slice(0,zP)),Ff+=(Ff.indexOf("?")===-1?"?":"&")+$P}return Ff}class InterceptorManager{constructor(){this.handlers=[]}use(kh,x_,B_){return this.handlers.push({fulfilled:kh,rejected:x_,synchronous:B_?B_.synchronous:!1,runWhen:B_?B_.runWhen:null}),this.handlers.length-1}eject(kh){this.handlers[kh]&&(this.handlers[kh]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(kh){utils$1.forEach(this.handlers,function(B_){B_!==null&&kh(B_)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",hasStandardBrowserEnv=(Ff=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(Ff)<0)(typeof navigator<"u"&&navigator.product),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(Ff,kh){return toFormData(Ff,new platform.classes.URLSearchParams,Object.assign({visitor:function(x_,B_,$_,$P){return platform.isNode&&utils$1.isBuffer(x_)?(this.append(B_,x_.toString("base64")),!1):$P.defaultVisitor.apply(this,arguments)}},kh))}function parsePropPath(Ff){return utils$1.matchAll(/\w+|\[(\w*)]/g,Ff).map(kh=>kh[0]==="[]"?"":kh[1]||kh[0])}function arrayToObject(Ff){const kh={},x_=Object.keys(Ff);let B_;const $_=x_.length;let $P;for(B_=0;B_<$_;B_++)$P=x_[B_],kh[$P]=Ff[$P];return kh}function formDataToJSON(Ff){function kh(x_,B_,$_,$P){let zP=x_[$P++];if(zP==="__proto__")return!0;const eme=Number.isFinite(+zP),tme=$P>=x_.length;return zP=!zP&&utils$1.isArray($_)?$_.length:zP,tme?(utils$1.hasOwnProp($_,zP)?$_[zP]=[$_[zP],B_]:$_[zP]=B_,!eme):((!$_[zP]||!utils$1.isObject($_[zP]))&&($_[zP]=[]),kh(x_,B_,$_[zP],$P)&&utils$1.isArray($_[zP])&&($_[zP]=arrayToObject($_[zP])),!eme)}if(utils$1.isFormData(Ff)&&utils$1.isFunction(Ff.entries)){const x_={};return utils$1.forEachEntry(Ff,(B_,$_)=>{kh(parsePropPath(B_),$_,x_,0)}),x_}return null}function stringifySafely(Ff,kh,x_){if(utils$1.isString(Ff))try{return(kh||JSON.parse)(Ff),utils$1.trim(Ff)}catch(B_){if(B_.name!=="SyntaxError")throw B_}return(x_||JSON.stringify)(Ff)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(kh,x_){const B_=x_.getContentType()||"",$_=B_.indexOf("application/json")>-1,$P=utils$1.isObject(kh);if($P&&utils$1.isHTMLForm(kh)&&(kh=new FormData(kh)),utils$1.isFormData(kh))return $_?JSON.stringify(formDataToJSON(kh)):kh;if(utils$1.isArrayBuffer(kh)||utils$1.isBuffer(kh)||utils$1.isStream(kh)||utils$1.isFile(kh)||utils$1.isBlob(kh))return kh;if(utils$1.isArrayBufferView(kh))return kh.buffer;if(utils$1.isURLSearchParams(kh))return x_.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),kh.toString();let eme;if($P){if(B_.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(kh,this.formSerializer).toString();if((eme=utils$1.isFileList(kh))||B_.indexOf("multipart/form-data")>-1){const tme=this.env&&this.env.FormData;return toFormData(eme?{"files[]":kh}:kh,tme&&new tme,this.formSerializer)}}return $P||$_?(x_.setContentType("application/json",!1),stringifySafely(kh)):kh}],transformResponse:[function(kh){const x_=this.transitional||defaults$1.transitional,B_=x_&&x_.forcedJSONParsing,$_=this.responseType==="json";if(kh&&utils$1.isString(kh)&&(B_&&!this.responseType||$_)){const zP=!(x_&&x_.silentJSONParsing)&&$_;try{return JSON.parse(kh)}catch(eme){if(zP)throw eme.name==="SyntaxError"?AxiosError.from(eme,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):eme}}return kh}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(kh){return kh>=200&&kh<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],Ff=>{defaults$1.headers[Ff]={}});const defaults$2=defaults$1,ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=Ff=>{const kh={};let x_,B_,$_;return Ff&&Ff.split(`
|
|
406
|
+
`)),zP.setMeta("paste",!0),Ff.dispatch(zP),!0}}})]}});function parseNodes(Ff,kh=[]){return Ff.map(x_=>{const B_=[...kh,...x_.properties?x_.properties.className:[]];return x_.children?parseNodes(x_.children,B_):{text:x_.value,classes:B_}}).flat()}function getHighlightNodes(Ff){return Ff.value||Ff.children||[]}function registered(Ff){return!!HighlightJS.getLanguage(Ff)}function getDecorations({doc:Ff,name:kh,lowlight:x_,defaultLanguage:B_}){const $_=[];return findChildren(Ff,$P=>$P.type.name===kh).forEach($P=>{let zP=$P.pos+1;const eme=$P.node.attrs.language||B_,tme=x_.listLanguages(),nme=eme&&(tme.includes(eme)||registered(eme))?getHighlightNodes(x_.highlight(eme,$P.node.textContent)):getHighlightNodes(x_.highlightAuto($P.node.textContent));parseNodes(nme).forEach(rme=>{const ime=zP+rme.text.length;if(rme.classes.length){const ome=Decoration.inline(zP,ime,{class:rme.classes.join(" ")});$_.push(ome)}zP=ime})}),DecorationSet.create(Ff,$_)}function isFunction$1(Ff){return typeof Ff=="function"}function LowlightPlugin({name:Ff,lowlight:kh,defaultLanguage:x_}){if(!["highlight","highlightAuto","listLanguages"].every($_=>isFunction$1(kh[$_])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const B_=new Plugin({key:new PluginKey("lowlight"),state:{init:($_,{doc:$P})=>getDecorations({doc:$P,name:Ff,lowlight:kh,defaultLanguage:x_}),apply:($_,$P,zP,eme)=>{const tme=zP.selection.$head.parent.type.name,nme=eme.selection.$head.parent.type.name,rme=findChildren(zP.doc,ome=>ome.type.name===Ff),ime=findChildren(eme.doc,ome=>ome.type.name===Ff);return $_.docChanged&&([tme,nme].includes(Ff)||ime.length!==rme.length||$_.steps.some(ome=>ome.from!==void 0&&ome.to!==void 0&&rme.some(ame=>ame.pos>=ome.from&&ame.pos+ame.node.nodeSize<=ome.to)))?getDecorations({doc:$_.doc,name:Ff,lowlight:kh,defaultLanguage:x_}):$P.map($_.mapping,$_.doc)}},props:{decorations($_){return B_.getState($_)}}});return B_}const CodeBlockView=({editor:Ff,node:kh,updateAttributes:x_,extension:B_})=>{var lme,dme,fme,pme,hme,mme;const $_=React.useContext(shareData),[$P,zP]=React.useState("light"),[eme,tme]=React.useState(((lme=kh==null?void 0:kh.attrs)==null?void 0:lme.exec)||!1),[nme,rme]=React.useState(!1),[ime,ome]=React.useState(!1),ame=_me=>{x_({language:_me})},cme=_me=>{var vme;const gme=(vme=_me==null?void 0:_me.target)==null?void 0:vme.checked;tme(gme),x_({exec:gme})},ume=()=>{var _me;(_me=navigator==null?void 0:navigator.clipboard)==null||_me.writeText(kh==null?void 0:kh.textContent).then(()=>{rme(!0);const gme=setTimeout(()=>{rme(!1),clearTimeout(gme)},2e3)})},sme=()=>{var _me;(_me=B_==null?void 0:B_.options)==null||_me.onExec(kh==null?void 0:kh.textContent)};return React.useEffect(()=>{eme&&($_!=null&&$_.template)?zP("dark"):zP("light")},[eme,$_==null?void 0:$_.template]),jsxRuntimeExports.jsx(NodeViewWrapper,{children:jsxRuntimeExports.jsxs("div",{className:`code-block code-block-${$P}`,onMouseEnter:()=>ome(!0),onMouseLeave:()=>ome(!1),children:[jsxRuntimeExports.jsxs("div",{className:"code-block-header",contentEditable:!1,style:{display:ime?"flex":"none"},children:[jsxRuntimeExports.jsxs("div",{className:"code-block-header-left",children:[jsxRuntimeExports.jsx(Select$1,{disabled:!(Ff!=null&&Ff.isEditable),placeholder:"选择语言",defaultValue:((dme=kh==null?void 0:kh.attrs)==null?void 0:dme.language)??"",style:{width:90},onChange:ame,options:[{value:"",label:"atuo"},...(hme=(pme=(fme=B_==null?void 0:B_.options)==null?void 0:fme.lowlight)==null?void 0:pme.listLanguages())==null?void 0:hme.map(_me=>({value:_me,label:_me}))]}),($_==null?void 0:$_.template)&&jsxRuntimeExports.jsx(Select$1,{disabled:!0,defaultValue:(mme=$_==null?void 0:$_.template)==null?void 0:mme.name})]}),($_==null?void 0:$_.template)&&(Ff==null?void 0:Ff.isEditable)&&jsxRuntimeExports.jsx("div",{className:"code-block-header-right",children:jsxRuntimeExports.jsx(Checkbox$1,{checked:eme,onChange:cme,children:"执行"})})]}),jsxRuntimeExports.jsx("pre",{className:"code-block-body",children:jsxRuntimeExports.jsx(NodeViewContent,{as:"code"})}),jsxRuntimeExports.jsxs("div",{className:"code-block-action",contentEditable:!1,children:[eme&&($_==null?void 0:$_.template)&&jsxRuntimeExports.jsx(Button$1,{type:"primary",onClick:sme,children:"执行"}),jsxRuntimeExports.jsxs("div",{className:"code-block-action-copy",children:[nme&&jsxRuntimeExports.jsxs("div",{className:"copy-tip",children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("rect",{opacity:"0.01",width:"16",height:"16",fill:"black"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 1C4.13438 1 1 4.13438 1 8C1 11.8656 4.13438 15 8 15C11.8656 15 15 11.8656 15 8C15 4.13438 11.8656 1 8 1Z",fill:"#30C213"}),jsxRuntimeExports.jsx("path",{d:"M3.75391 8.76556C3.75391 8.76556 5.94801 10.5554 6.16596 12.0777C6.16596 12.0777 9.04299 7.38086 12.2397 6.96062C12.2397 6.96062 11.2662 6.25307 11.5858 5.13477C11.5858 5.13477 9.81311 5.31117 6.4711 10.4844L4.9048 7.8329L3.75391 8.76556Z",fill:"white"})]}),jsxRuntimeExports.jsx("span",{children:"复制成功"})]}),jsxRuntimeExports.jsx(Button$1,{type:"primary",onClick:ume,children:"复制"})]})]})]})})},CodeBlockLowlight=CodeBlock.extend({addOptions(){var Ff;return{...(Ff=this.parent)==null?void 0:Ff.call(this),lowlight:{},defaultLanguage:null}},addNodeView(){return ReactNodeViewRenderer(CodeBlockView)},addProseMirrorPlugins(){var Ff;return[...((Ff=this.parent)==null?void 0:Ff.call(this))||[],LowlightPlugin({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}}),FloatingMenuPlugin=Ff=>{var $P,zP;let kh,x_={},B_=!1;return($P=Ff.tip)==null||$P.emitter.on("hover",({node:eme,pos:tme,range:nme})=>{x_={node:eme,pos:tme,range:nme}}),(zP=Ff.tip)==null||zP.emitter.on("show",eme=>{B_=eme.show}),new Plugin({key:new PluginKey(Ff.pluginKey),view:eme=>({update(tme,nme){var cme,ume,sme;const{anchor:rme}=tme.state.selection,{anchor:ime}=nme.selection,{node:ome,pos:ame}=x_;(cme=Ff.tip)!=null&&cme.isShow&&rme>=ame&&rme<ame+ome.nodeSize&&(ime<ame||ime>=ame+ome.nodeSize)||rme!==ime&&((ume=Ff.tip)!=null&&ume.isShow)&&((sme=Ff.tip.tippy)==null||sme.hide())},destroy(){var tme;(tme=Ff.tip)==null||tme.destroy()}}),props:{handleDOMEvents:{mousemove:(eme,tme)=>{kh&&clearTimeout(kh);const{editor:nme,tip:rme}=Ff;nme.isEditable&&(kh=setTimeout(()=>{var ume,sme;if(document.querySelectorAll(".ant-modal-content").length>0)return!1;const ome=(sme=(ume=nme==null?void 0:nme.view)==null?void 0:ume.state)==null?void 0:sme.selection,{from:ame,to:cme}=ome;if(ame!=cme)return!1;rme==null||rme.move(eme,tme)},0))},wheel:()=>{var eme;(eme=Ff.tip)==null||eme.hide()}},decorations(eme){if(B_&&x_.node){const tme=Decoration.node(x_.range.from,x_.range.to,{style:"background: rgba(22,119,255,0.10); border-radius: 4px;"});return DecorationSet.create(eme.doc,[tme])}return null}}})},TableSelect=Ff=>{const{onClick:kh}=Ff,[x_,B_]=React.useState({row:0,col:0}),[$_,$P]=React.useState([]);React.useEffect(()=>{const rme=[];for(let ime=0;ime<9;ime++){rme[ime]=[];for(let ome=0;ome<9;ome++)ime<x_.row&&ome<x_.col?rme[ime][ome]=!0:rme[ime][ome]=!1}$P(rme)},[x_]);const zP=nme=>{const{dataset:rme}=nme.target;if(rme.row){const{row:ime,col:ome}=rme;B_({row:parseInt(ime),col:parseInt(ome)})}else{const ime=nme.target.getBoundingClientRect(),ome=nme.clientX-ime.left-nme.target.clientLeft-10,ame=nme.clientY-ime.top-nme.target.clientTop-10;let cme,ume;ome<0?ume=0:(ume=Math.ceil(ome/26),ume=Math.min(ume,9)),ame<0?cme=0:(cme=Math.ceil(ame/26),cme=Math.min(cme,9)),B_(cme===0||ume===0?{row:0,col:0}:{row:cme,col:ume})}},eme=nme=>{B_({row:0,col:0})},tme=()=>{x_.row&&(kh==null||kh(x_))};return jsxRuntimeExports.jsxs("div",{className:"tiptap-table-select",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-table-select-title",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-table-select-title-left",children:"表格行列"}),jsxRuntimeExports.jsx("div",{className:"tiptap-table-select-title-right",children:x_.row?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:x_.row}),jsxRuntimeExports.jsx("span",{children:"x"}),jsxRuntimeExports.jsx("span",{children:x_.col})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})})]}),jsxRuntimeExports.jsx("div",{className:"tiptap-table-select-content",onMouseMove:zP,onClick:tme,onMouseLeave:eme,children:$_.map((nme,rme)=>jsxRuntimeExports.jsx(React.Fragment,{children:nme.map((ime,ome)=>jsxRuntimeExports.jsx("div",{className:ime?"light":"","data-row":rme+1,"data-col":ome+1},`${rme}-${ome}`))},rme))})]})};function bind(Ff,kh){return function(){return Ff.apply(kh,arguments)}}const{toString:toString$1}=Object.prototype,{getPrototypeOf}=Object,kindOf=(Ff=>kh=>{const x_=toString$1.call(kh);return Ff[x_]||(Ff[x_]=x_.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=Ff=>(Ff=Ff.toLowerCase(),kh=>kindOf(kh)===Ff),typeOfTest=Ff=>kh=>typeof kh===Ff,{isArray:isArray$1}=Array,isUndefined=typeOfTest("undefined");function isBuffer$2(Ff){return Ff!==null&&!isUndefined(Ff)&&Ff.constructor!==null&&!isUndefined(Ff.constructor)&&isFunction(Ff.constructor.isBuffer)&&Ff.constructor.isBuffer(Ff)}const isArrayBuffer$1=kindOfTest("ArrayBuffer");function isArrayBufferView(Ff){let kh;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?kh=ArrayBuffer.isView(Ff):kh=Ff&&Ff.buffer&&isArrayBuffer$1(Ff.buffer),kh}const isString$1=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=Ff=>Ff!==null&&typeof Ff=="object",isBoolean=Ff=>Ff===!0||Ff===!1,isPlainObject$2=Ff=>{if(kindOf(Ff)!=="object")return!1;const kh=getPrototypeOf(Ff);return(kh===null||kh===Object.prototype||Object.getPrototypeOf(kh)===null)&&!(Symbol.toStringTag in Ff)&&!(Symbol.iterator in Ff)},isDate=kindOfTest("Date"),isFile$1=kindOfTest("File"),isBlob$1=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=Ff=>isObject(Ff)&&isFunction(Ff.pipe),isFormData=Ff=>{let kh;return Ff&&(typeof FormData=="function"&&Ff instanceof FormData||isFunction(Ff.append)&&((kh=kindOf(Ff))==="formdata"||kh==="object"&&isFunction(Ff.toString)&&Ff.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim=Ff=>Ff.trim?Ff.trim():Ff.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(Ff,kh,{allOwnKeys:x_=!1}={}){if(Ff===null||typeof Ff>"u")return;let B_,$_;if(typeof Ff!="object"&&(Ff=[Ff]),isArray$1(Ff))for(B_=0,$_=Ff.length;B_<$_;B_++)kh.call(null,Ff[B_],B_,Ff);else{const $P=x_?Object.getOwnPropertyNames(Ff):Object.keys(Ff),zP=$P.length;let eme;for(B_=0;B_<zP;B_++)eme=$P[B_],kh.call(null,Ff[eme],eme,Ff)}}function findKey(Ff,kh){kh=kh.toLowerCase();const x_=Object.keys(Ff);let B_=x_.length,$_;for(;B_-- >0;)if($_=x_[B_],kh===$_.toLowerCase())return $_;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=Ff=>!isUndefined(Ff)&&Ff!==_global;function merge(){const{caseless:Ff}=isContextDefined(this)&&this||{},kh={},x_=(B_,$_)=>{const $P=Ff&&findKey(kh,$_)||$_;isPlainObject$2(kh[$P])&&isPlainObject$2(B_)?kh[$P]=merge(kh[$P],B_):isPlainObject$2(B_)?kh[$P]=merge({},B_):isArray$1(B_)?kh[$P]=B_.slice():kh[$P]=B_};for(let B_=0,$_=arguments.length;B_<$_;B_++)arguments[B_]&&forEach(arguments[B_],x_);return kh}const extend$2=(Ff,kh,x_,{allOwnKeys:B_}={})=>(forEach(kh,($_,$P)=>{x_&&isFunction($_)?Ff[$P]=bind($_,x_):Ff[$P]=$_},{allOwnKeys:B_}),Ff),stripBOM=Ff=>(Ff.charCodeAt(0)===65279&&(Ff=Ff.slice(1)),Ff),inherits=(Ff,kh,x_,B_)=>{Ff.prototype=Object.create(kh.prototype,B_),Ff.prototype.constructor=Ff,Object.defineProperty(Ff,"super",{value:kh.prototype}),x_&&Object.assign(Ff.prototype,x_)},toFlatObject=(Ff,kh,x_,B_)=>{let $_,$P,zP;const eme={};if(kh=kh||{},Ff==null)return kh;do{for($_=Object.getOwnPropertyNames(Ff),$P=$_.length;$P-- >0;)zP=$_[$P],(!B_||B_(zP,Ff,kh))&&!eme[zP]&&(kh[zP]=Ff[zP],eme[zP]=!0);Ff=x_!==!1&&getPrototypeOf(Ff)}while(Ff&&(!x_||x_(Ff,kh))&&Ff!==Object.prototype);return kh},endsWith=(Ff,kh,x_)=>{Ff=String(Ff),(x_===void 0||x_>Ff.length)&&(x_=Ff.length),x_-=kh.length;const B_=Ff.indexOf(kh,x_);return B_!==-1&&B_===x_},toArray=Ff=>{if(!Ff)return null;if(isArray$1(Ff))return Ff;let kh=Ff.length;if(!isNumber(kh))return null;const x_=new Array(kh);for(;kh-- >0;)x_[kh]=Ff[kh];return x_},isTypedArray$1=(Ff=>kh=>Ff&&kh instanceof Ff)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(Ff,kh)=>{const B_=(Ff&&Ff[Symbol.iterator]).call(Ff);let $_;for(;($_=B_.next())&&!$_.done;){const $P=$_.value;kh.call(Ff,$P[0],$P[1])}},matchAll=(Ff,kh)=>{let x_;const B_=[];for(;(x_=Ff.exec(kh))!==null;)B_.push(x_);return B_},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=Ff=>Ff.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(x_,B_,$_){return B_.toUpperCase()+$_}),hasOwnProperty$2=(({hasOwnProperty:Ff})=>(kh,x_)=>Ff.call(kh,x_))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(Ff,kh)=>{const x_=Object.getOwnPropertyDescriptors(Ff),B_={};forEach(x_,($_,$P)=>{let zP;(zP=kh($_,$P,Ff))!==!1&&(B_[$P]=zP||$_)}),Object.defineProperties(Ff,B_)},freezeMethods=Ff=>{reduceDescriptors(Ff,(kh,x_)=>{if(isFunction(Ff)&&["arguments","caller","callee"].indexOf(x_)!==-1)return!1;const B_=Ff[x_];if(isFunction(B_)){if(kh.enumerable=!1,"writable"in kh){kh.writable=!1;return}kh.set||(kh.set=()=>{throw Error("Can not rewrite read-only method '"+x_+"'")})}})},toObjectSet=(Ff,kh)=>{const x_={},B_=$_=>{$_.forEach($P=>{x_[$P]=!0})};return isArray$1(Ff)?B_(Ff):B_(String(Ff).split(kh)),x_},noop$1=()=>{},toFiniteNumber=(Ff,kh)=>(Ff=+Ff,Number.isFinite(Ff)?Ff:kh),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT$1="0123456789",ALPHABET={DIGIT:DIGIT$1,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT$1},generateString=(Ff=16,kh=ALPHABET.ALPHA_DIGIT)=>{let x_="";const{length:B_}=kh;for(;Ff--;)x_+=kh[Math.random()*B_|0];return x_};function isSpecCompliantForm(Ff){return!!(Ff&&isFunction(Ff.append)&&Ff[Symbol.toStringTag]==="FormData"&&Ff[Symbol.iterator])}const toJSONObject=Ff=>{const kh=new Array(10),x_=(B_,$_)=>{if(isObject(B_)){if(kh.indexOf(B_)>=0)return;if(!("toJSON"in B_)){kh[$_]=B_;const $P=isArray$1(B_)?[]:{};return forEach(B_,(zP,eme)=>{const tme=x_(zP,$_+1);!isUndefined(tme)&&($P[eme]=tme)}),kh[$_]=void 0,$P}}return B_};return x_(Ff,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=Ff=>Ff&&(isObject(Ff)||isFunction(Ff))&&isFunction(Ff.then)&&isFunction(Ff.catch),utils$1={isArray:isArray$1,isArrayBuffer:isArrayBuffer$1,isBuffer:isBuffer$2,isFormData,isArrayBufferView,isString:isString$1,isNumber,isBoolean,isObject,isPlainObject:isPlainObject$2,isUndefined,isDate,isFile:isFile$1,isBlob:isBlob$1,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray:isTypedArray$1,isFileList,forEach,merge,extend:extend$2,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$2,hasOwnProp:hasOwnProperty$2,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$1,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(Ff,kh,x_,B_,$_){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=Ff,this.name="AxiosError",kh&&(this.code=kh),x_&&(this.config=x_),B_&&(this.request=B_),$_&&(this.response=$_)}utils$1.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(Ff=>{descriptors[Ff]={value:Ff}}),Object.defineProperties(AxiosError,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError.from=(Ff,kh,x_,B_,$_,$P)=>{const zP=Object.create(prototype$1);return utils$1.toFlatObject(Ff,zP,function(tme){return tme!==Error.prototype},eme=>eme!=="isAxiosError"),AxiosError.call(zP,Ff.message,kh,x_,B_,$_),zP.cause=Ff,zP.name=Ff.name,$P&&Object.assign(zP,$P),zP};const httpAdapter=null;function isVisitable(Ff){return utils$1.isPlainObject(Ff)||utils$1.isArray(Ff)}function removeBrackets(Ff){return utils$1.endsWith(Ff,"[]")?Ff.slice(0,-2):Ff}function renderKey(Ff,kh,x_){return Ff?Ff.concat(kh).map(function($_,$P){return $_=removeBrackets($_),!x_&&$P?"["+$_+"]":$_}).join(x_?".":""):kh}function isFlatArray(Ff){return utils$1.isArray(Ff)&&!Ff.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(kh){return/^is[A-Z]/.test(kh)});function toFormData(Ff,kh,x_){if(!utils$1.isObject(Ff))throw new TypeError("target must be an object");kh=kh||new FormData,x_=utils$1.toFlatObject(x_,{metaTokens:!0,dots:!1,indexes:!1},!1,function(ume,sme){return!utils$1.isUndefined(sme[ume])});const B_=x_.metaTokens,$_=x_.visitor||rme,$P=x_.dots,zP=x_.indexes,tme=(x_.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(kh);if(!utils$1.isFunction($_))throw new TypeError("visitor must be a function");function nme(cme){if(cme===null)return"";if(utils$1.isDate(cme))return cme.toISOString();if(!tme&&utils$1.isBlob(cme))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(cme)||utils$1.isTypedArray(cme)?tme&&typeof Blob=="function"?new Blob([cme]):Buffer.from(cme):cme}function rme(cme,ume,sme){let lme=cme;if(cme&&!sme&&typeof cme=="object"){if(utils$1.endsWith(ume,"{}"))ume=B_?ume:ume.slice(0,-2),cme=JSON.stringify(cme);else if(utils$1.isArray(cme)&&isFlatArray(cme)||(utils$1.isFileList(cme)||utils$1.endsWith(ume,"[]"))&&(lme=utils$1.toArray(cme)))return ume=removeBrackets(ume),lme.forEach(function(fme,pme){!(utils$1.isUndefined(fme)||fme===null)&&kh.append(zP===!0?renderKey([ume],pme,$P):zP===null?ume:ume+"[]",nme(fme))}),!1}return isVisitable(cme)?!0:(kh.append(renderKey(sme,ume,$P),nme(cme)),!1)}const ime=[],ome=Object.assign(predicates,{defaultVisitor:rme,convertValue:nme,isVisitable});function ame(cme,ume){if(!utils$1.isUndefined(cme)){if(ime.indexOf(cme)!==-1)throw Error("Circular reference detected in "+ume.join("."));ime.push(cme),utils$1.forEach(cme,function(lme,dme){(!(utils$1.isUndefined(lme)||lme===null)&&$_.call(kh,lme,utils$1.isString(dme)?dme.trim():dme,ume,ome))===!0&&ame(lme,ume?ume.concat(dme):[dme])}),ime.pop()}}if(!utils$1.isObject(Ff))throw new TypeError("data must be an object");return ame(Ff),kh}function encode$1(Ff){const kh={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(Ff).replace(/[!'()~]|%20|%00/g,function(B_){return kh[B_]})}function AxiosURLSearchParams(Ff,kh){this._pairs=[],Ff&&toFormData(Ff,this,kh)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(kh,x_){this._pairs.push([kh,x_])},prototype.toString=function(kh){const x_=kh?function(B_){return kh.call(this,B_,encode$1)}:encode$1;return this._pairs.map(function($_){return x_($_[0])+"="+x_($_[1])},"").join("&")};function encode(Ff){return encodeURIComponent(Ff).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(Ff,kh,x_){if(!kh)return Ff;const B_=x_&&x_.encode||encode,$_=x_&&x_.serialize;let $P;if($_?$P=$_(kh,x_):$P=utils$1.isURLSearchParams(kh)?kh.toString():new AxiosURLSearchParams(kh,x_).toString(B_),$P){const zP=Ff.indexOf("#");zP!==-1&&(Ff=Ff.slice(0,zP)),Ff+=(Ff.indexOf("?")===-1?"?":"&")+$P}return Ff}class InterceptorManager{constructor(){this.handlers=[]}use(kh,x_,B_){return this.handlers.push({fulfilled:kh,rejected:x_,synchronous:B_?B_.synchronous:!1,runWhen:B_?B_.runWhen:null}),this.handlers.length-1}eject(kh){this.handlers[kh]&&(this.handlers[kh]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(kh){utils$1.forEach(this.handlers,function(B_){B_!==null&&kh(B_)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",hasStandardBrowserEnv=(Ff=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(Ff)<0)(typeof navigator<"u"&&navigator.product),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(Ff,kh){return toFormData(Ff,new platform.classes.URLSearchParams,Object.assign({visitor:function(x_,B_,$_,$P){return platform.isNode&&utils$1.isBuffer(x_)?(this.append(B_,x_.toString("base64")),!1):$P.defaultVisitor.apply(this,arguments)}},kh))}function parsePropPath(Ff){return utils$1.matchAll(/\w+|\[(\w*)]/g,Ff).map(kh=>kh[0]==="[]"?"":kh[1]||kh[0])}function arrayToObject(Ff){const kh={},x_=Object.keys(Ff);let B_;const $_=x_.length;let $P;for(B_=0;B_<$_;B_++)$P=x_[B_],kh[$P]=Ff[$P];return kh}function formDataToJSON(Ff){function kh(x_,B_,$_,$P){let zP=x_[$P++];if(zP==="__proto__")return!0;const eme=Number.isFinite(+zP),tme=$P>=x_.length;return zP=!zP&&utils$1.isArray($_)?$_.length:zP,tme?(utils$1.hasOwnProp($_,zP)?$_[zP]=[$_[zP],B_]:$_[zP]=B_,!eme):((!$_[zP]||!utils$1.isObject($_[zP]))&&($_[zP]=[]),kh(x_,B_,$_[zP],$P)&&utils$1.isArray($_[zP])&&($_[zP]=arrayToObject($_[zP])),!eme)}if(utils$1.isFormData(Ff)&&utils$1.isFunction(Ff.entries)){const x_={};return utils$1.forEachEntry(Ff,(B_,$_)=>{kh(parsePropPath(B_),$_,x_,0)}),x_}return null}function stringifySafely(Ff,kh,x_){if(utils$1.isString(Ff))try{return(kh||JSON.parse)(Ff),utils$1.trim(Ff)}catch(B_){if(B_.name!=="SyntaxError")throw B_}return(x_||JSON.stringify)(Ff)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(kh,x_){const B_=x_.getContentType()||"",$_=B_.indexOf("application/json")>-1,$P=utils$1.isObject(kh);if($P&&utils$1.isHTMLForm(kh)&&(kh=new FormData(kh)),utils$1.isFormData(kh))return $_?JSON.stringify(formDataToJSON(kh)):kh;if(utils$1.isArrayBuffer(kh)||utils$1.isBuffer(kh)||utils$1.isStream(kh)||utils$1.isFile(kh)||utils$1.isBlob(kh))return kh;if(utils$1.isArrayBufferView(kh))return kh.buffer;if(utils$1.isURLSearchParams(kh))return x_.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),kh.toString();let eme;if($P){if(B_.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(kh,this.formSerializer).toString();if((eme=utils$1.isFileList(kh))||B_.indexOf("multipart/form-data")>-1){const tme=this.env&&this.env.FormData;return toFormData(eme?{"files[]":kh}:kh,tme&&new tme,this.formSerializer)}}return $P||$_?(x_.setContentType("application/json",!1),stringifySafely(kh)):kh}],transformResponse:[function(kh){const x_=this.transitional||defaults$1.transitional,B_=x_&&x_.forcedJSONParsing,$_=this.responseType==="json";if(kh&&utils$1.isString(kh)&&(B_&&!this.responseType||$_)){const zP=!(x_&&x_.silentJSONParsing)&&$_;try{return JSON.parse(kh)}catch(eme){if(zP)throw eme.name==="SyntaxError"?AxiosError.from(eme,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):eme}}return kh}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(kh){return kh>=200&&kh<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],Ff=>{defaults$1.headers[Ff]={}});const defaults$2=defaults$1,ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=Ff=>{const kh={};let x_,B_,$_;return Ff&&Ff.split(`
|
|
407
407
|
`).forEach(function(zP){$_=zP.indexOf(":"),x_=zP.substring(0,$_).trim().toLowerCase(),B_=zP.substring($_+1).trim(),!(!x_||kh[x_]&&ignoreDuplicateOf[x_])&&(x_==="set-cookie"?kh[x_]?kh[x_].push(B_):kh[x_]=[B_]:kh[x_]=kh[x_]?kh[x_]+", "+B_:B_)}),kh},$internals=Symbol("internals");function normalizeHeader(Ff){return Ff&&String(Ff).trim().toLowerCase()}function normalizeValue(Ff){return Ff===!1||Ff==null?Ff:utils$1.isArray(Ff)?Ff.map(normalizeValue):String(Ff)}function parseTokens(Ff){const kh=Object.create(null),x_=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B_;for(;B_=x_.exec(Ff);)kh[B_[1]]=B_[2];return kh}const isValidHeaderName=Ff=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(Ff.trim());function matchHeaderValue(Ff,kh,x_,B_,$_){if(utils$1.isFunction(B_))return B_.call(this,kh,x_);if($_&&(kh=x_),!!utils$1.isString(kh)){if(utils$1.isString(B_))return kh.indexOf(B_)!==-1;if(utils$1.isRegExp(B_))return B_.test(kh)}}function formatHeader(Ff){return Ff.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(kh,x_,B_)=>x_.toUpperCase()+B_)}function buildAccessors(Ff,kh){const x_=utils$1.toCamelCase(" "+kh);["get","set","has"].forEach(B_=>{Object.defineProperty(Ff,B_+x_,{value:function($_,$P,zP){return this[B_].call(this,kh,$_,$P,zP)},configurable:!0})})}class AxiosHeaders{constructor(kh){kh&&this.set(kh)}set(kh,x_,B_){const $_=this;function $P(eme,tme,nme){const rme=normalizeHeader(tme);if(!rme)throw new Error("header name must be a non-empty string");const ime=utils$1.findKey($_,rme);(!ime||$_[ime]===void 0||nme===!0||nme===void 0&&$_[ime]!==!1)&&($_[ime||tme]=normalizeValue(eme))}const zP=(eme,tme)=>utils$1.forEach(eme,(nme,rme)=>$P(nme,rme,tme));return utils$1.isPlainObject(kh)||kh instanceof this.constructor?zP(kh,x_):utils$1.isString(kh)&&(kh=kh.trim())&&!isValidHeaderName(kh)?zP(parseHeaders(kh),x_):kh!=null&&$P(x_,kh,B_),this}get(kh,x_){if(kh=normalizeHeader(kh),kh){const B_=utils$1.findKey(this,kh);if(B_){const $_=this[B_];if(!x_)return $_;if(x_===!0)return parseTokens($_);if(utils$1.isFunction(x_))return x_.call(this,$_,B_);if(utils$1.isRegExp(x_))return x_.exec($_);throw new TypeError("parser must be boolean|regexp|function")}}}has(kh,x_){if(kh=normalizeHeader(kh),kh){const B_=utils$1.findKey(this,kh);return!!(B_&&this[B_]!==void 0&&(!x_||matchHeaderValue(this,this[B_],B_,x_)))}return!1}delete(kh,x_){const B_=this;let $_=!1;function $P(zP){if(zP=normalizeHeader(zP),zP){const eme=utils$1.findKey(B_,zP);eme&&(!x_||matchHeaderValue(B_,B_[eme],eme,x_))&&(delete B_[eme],$_=!0)}}return utils$1.isArray(kh)?kh.forEach($P):$P(kh),$_}clear(kh){const x_=Object.keys(this);let B_=x_.length,$_=!1;for(;B_--;){const $P=x_[B_];(!kh||matchHeaderValue(this,this[$P],$P,kh,!0))&&(delete this[$P],$_=!0)}return $_}normalize(kh){const x_=this,B_={};return utils$1.forEach(this,($_,$P)=>{const zP=utils$1.findKey(B_,$P);if(zP){x_[zP]=normalizeValue($_),delete x_[$P];return}const eme=kh?formatHeader($P):String($P).trim();eme!==$P&&delete x_[$P],x_[eme]=normalizeValue($_),B_[eme]=!0}),this}concat(...kh){return this.constructor.concat(this,...kh)}toJSON(kh){const x_=Object.create(null);return utils$1.forEach(this,(B_,$_)=>{B_!=null&&B_!==!1&&(x_[$_]=kh&&utils$1.isArray(B_)?B_.join(", "):B_)}),x_}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([kh,x_])=>kh+": "+x_).join(`
|
|
408
408
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(kh){return kh instanceof this?kh:new this(kh)}static concat(kh,...x_){const B_=new this(kh);return x_.forEach($_=>B_.set($_)),B_}static accessor(kh){const B_=(this[$internals]=this[$internals]={accessors:{}}).accessors,$_=this.prototype;function $P(zP){const eme=normalizeHeader(zP);B_[eme]||(buildAccessors($_,zP),B_[eme]=!0)}return utils$1.isArray(kh)?kh.forEach($P):$P(kh),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:Ff},kh)=>{let x_=kh[0].toUpperCase()+kh.slice(1);return{get:()=>Ff,set(B_){this[x_]=B_}}}),utils$1.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(Ff,kh){const x_=this||defaults$2,B_=kh||x_,$_=AxiosHeaders$1.from(B_.headers);let $P=B_.data;return utils$1.forEach(Ff,function(eme){$P=eme.call(x_,$P,$_.normalize(),kh?kh.status:void 0)}),$_.normalize(),$P}function isCancel(Ff){return!!(Ff&&Ff.__CANCEL__)}function CanceledError(Ff,kh,x_){AxiosError.call(this,Ff??"canceled",AxiosError.ERR_CANCELED,kh,x_),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(Ff,kh,x_){const B_=x_.config.validateStatus;!x_.status||!B_||B_(x_.status)?Ff(x_):kh(new AxiosError("Request failed with status code "+x_.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(x_.status/100)-4],x_.config,x_.request,x_))}const cookies=platform.hasStandardBrowserEnv?{write(Ff,kh,x_,B_,$_,$P){const zP=[Ff+"="+encodeURIComponent(kh)];utils$1.isNumber(x_)&&zP.push("expires="+new Date(x_).toGMTString()),utils$1.isString(B_)&&zP.push("path="+B_),utils$1.isString($_)&&zP.push("domain="+$_),$P===!0&&zP.push("secure"),document.cookie=zP.join("; ")},read(Ff){const kh=document.cookie.match(new RegExp("(^|;\\s*)("+Ff+")=([^;]*)"));return kh?decodeURIComponent(kh[3]):null},remove(Ff){this.write(Ff,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(Ff){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(Ff)}function combineURLs(Ff,kh){return kh?Ff.replace(/\/?\/$/,"")+"/"+kh.replace(/^\/+/,""):Ff}function buildFullPath(Ff,kh){return Ff&&!isAbsoluteURL(kh)?combineURLs(Ff,kh):kh}const isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const kh=/(msie|trident)/i.test(navigator.userAgent),x_=document.createElement("a");let B_;function $_($P){let zP=$P;return kh&&(x_.setAttribute("href",zP),zP=x_.href),x_.setAttribute("href",zP),{href:x_.href,protocol:x_.protocol?x_.protocol.replace(/:$/,""):"",host:x_.host,search:x_.search?x_.search.replace(/^\?/,""):"",hash:x_.hash?x_.hash.replace(/^#/,""):"",hostname:x_.hostname,port:x_.port,pathname:x_.pathname.charAt(0)==="/"?x_.pathname:"/"+x_.pathname}}return B_=$_(window.location.href),function(zP){const eme=utils$1.isString(zP)?$_(zP):zP;return eme.protocol===B_.protocol&&eme.host===B_.host}}():function(){return function(){return!0}}();function parseProtocol(Ff){const kh=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Ff);return kh&&kh[1]||""}function speedometer(Ff,kh){Ff=Ff||10;const x_=new Array(Ff),B_=new Array(Ff);let $_=0,$P=0,zP;return kh=kh!==void 0?kh:1e3,function(tme){const nme=Date.now(),rme=B_[$P];zP||(zP=nme),x_[$_]=tme,B_[$_]=nme;let ime=$P,ome=0;for(;ime!==$_;)ome+=x_[ime++],ime=ime%Ff;if($_=($_+1)%Ff,$_===$P&&($P=($P+1)%Ff),nme-zP<kh)return;const ame=rme&&nme-rme;return ame?Math.round(ome*1e3/ame):void 0}}function progressEventReducer(Ff,kh){let x_=0;const B_=speedometer(50,250);return $_=>{const $P=$_.loaded,zP=$_.lengthComputable?$_.total:void 0,eme=$P-x_,tme=B_(eme),nme=$P<=zP;x_=$P;const rme={loaded:$P,total:zP,progress:zP?$P/zP:void 0,bytes:eme,rate:tme||void 0,estimated:tme&&zP&&nme?(zP-$P)/tme:void 0,event:$_};rme[kh?"download":"upload"]=!0,Ff(rme)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(Ff){return new Promise(function(x_,B_){let $_=Ff.data;const $P=AxiosHeaders$1.from(Ff.headers).normalize();let{responseType:zP,withXSRFToken:eme}=Ff,tme;function nme(){Ff.cancelToken&&Ff.cancelToken.unsubscribe(tme),Ff.signal&&Ff.signal.removeEventListener("abort",tme)}let rme;if(utils$1.isFormData($_)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)$P.setContentType(!1);else if((rme=$P.getContentType())!==!1){const[ume,...sme]=rme?rme.split(";").map(lme=>lme.trim()).filter(Boolean):[];$P.setContentType([ume||"multipart/form-data",...sme].join("; "))}}let ime=new XMLHttpRequest;if(Ff.auth){const ume=Ff.auth.username||"",sme=Ff.auth.password?unescape(encodeURIComponent(Ff.auth.password)):"";$P.set("Authorization","Basic "+btoa(ume+":"+sme))}const ome=buildFullPath(Ff.baseURL,Ff.url);ime.open(Ff.method.toUpperCase(),buildURL(ome,Ff.params,Ff.paramsSerializer),!0),ime.timeout=Ff.timeout;function ame(){if(!ime)return;const ume=AxiosHeaders$1.from("getAllResponseHeaders"in ime&&ime.getAllResponseHeaders()),lme={data:!zP||zP==="text"||zP==="json"?ime.responseText:ime.response,status:ime.status,statusText:ime.statusText,headers:ume,config:Ff,request:ime};settle(function(fme){x_(fme),nme()},function(fme){B_(fme),nme()},lme),ime=null}if("onloadend"in ime?ime.onloadend=ame:ime.onreadystatechange=function(){!ime||ime.readyState!==4||ime.status===0&&!(ime.responseURL&&ime.responseURL.indexOf("file:")===0)||setTimeout(ame)},ime.onabort=function(){ime&&(B_(new AxiosError("Request aborted",AxiosError.ECONNABORTED,Ff,ime)),ime=null)},ime.onerror=function(){B_(new AxiosError("Network Error",AxiosError.ERR_NETWORK,Ff,ime)),ime=null},ime.ontimeout=function(){let sme=Ff.timeout?"timeout of "+Ff.timeout+"ms exceeded":"timeout exceeded";const lme=Ff.transitional||transitionalDefaults;Ff.timeoutErrorMessage&&(sme=Ff.timeoutErrorMessage),B_(new AxiosError(sme,lme.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,Ff,ime)),ime=null},platform.hasStandardBrowserEnv&&(eme&&utils$1.isFunction(eme)&&(eme=eme(Ff)),eme||eme!==!1&&isURLSameOrigin(ome))){const ume=Ff.xsrfHeaderName&&Ff.xsrfCookieName&&cookies.read(Ff.xsrfCookieName);ume&&$P.set(Ff.xsrfHeaderName,ume)}$_===void 0&&$P.setContentType(null),"setRequestHeader"in ime&&utils$1.forEach($P.toJSON(),function(sme,lme){ime.setRequestHeader(lme,sme)}),utils$1.isUndefined(Ff.withCredentials)||(ime.withCredentials=!!Ff.withCredentials),zP&&zP!=="json"&&(ime.responseType=Ff.responseType),typeof Ff.onDownloadProgress=="function"&&ime.addEventListener("progress",progressEventReducer(Ff.onDownloadProgress,!0)),typeof Ff.onUploadProgress=="function"&&ime.upload&&ime.upload.addEventListener("progress",progressEventReducer(Ff.onUploadProgress)),(Ff.cancelToken||Ff.signal)&&(tme=ume=>{ime&&(B_(!ume||ume.type?new CanceledError(null,Ff,ime):ume),ime.abort(),ime=null)},Ff.cancelToken&&Ff.cancelToken.subscribe(tme),Ff.signal&&(Ff.signal.aborted?tme():Ff.signal.addEventListener("abort",tme)));const cme=parseProtocol(ome);if(cme&&platform.protocols.indexOf(cme)===-1){B_(new AxiosError("Unsupported protocol "+cme+":",AxiosError.ERR_BAD_REQUEST,Ff));return}ime.send($_||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$1.forEach(knownAdapters,(Ff,kh)=>{if(Ff){try{Object.defineProperty(Ff,"name",{value:kh})}catch{}Object.defineProperty(Ff,"adapterName",{value:kh})}});const renderReason=Ff=>`- ${Ff}`,isResolvedHandle=Ff=>utils$1.isFunction(Ff)||Ff===null||Ff===!1,adapters={getAdapter:Ff=>{Ff=utils$1.isArray(Ff)?Ff:[Ff];const{length:kh}=Ff;let x_,B_;const $_={};for(let $P=0;$P<kh;$P++){x_=Ff[$P];let zP;if(B_=x_,!isResolvedHandle(x_)&&(B_=knownAdapters[(zP=String(x_)).toLowerCase()],B_===void 0))throw new AxiosError(`Unknown adapter '${zP}'`);if(B_)break;$_[zP||"#"+$P]=B_}if(!B_){const $P=Object.entries($_).map(([eme,tme])=>`adapter ${eme} `+(tme===!1?"is not supported by the environment":"is not available in the build"));let zP=kh?$P.length>1?`since :
|
|
409
409
|
`+$P.map(renderReason).join(`
|
|
410
410
|
`):" "+renderReason($P[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+zP,"ERR_NOT_SUPPORT")}return B_},adapters:knownAdapters};function throwIfCancellationRequested(Ff){if(Ff.cancelToken&&Ff.cancelToken.throwIfRequested(),Ff.signal&&Ff.signal.aborted)throw new CanceledError(null,Ff)}function dispatchRequest(Ff){return throwIfCancellationRequested(Ff),Ff.headers=AxiosHeaders$1.from(Ff.headers),Ff.data=transformData.call(Ff,Ff.transformRequest),["post","put","patch"].indexOf(Ff.method)!==-1&&Ff.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(Ff.adapter||defaults$2.adapter)(Ff).then(function(B_){return throwIfCancellationRequested(Ff),B_.data=transformData.call(Ff,Ff.transformResponse,B_),B_.headers=AxiosHeaders$1.from(B_.headers),B_},function(B_){return isCancel(B_)||(throwIfCancellationRequested(Ff),B_&&B_.response&&(B_.response.data=transformData.call(Ff,Ff.transformResponse,B_.response),B_.response.headers=AxiosHeaders$1.from(B_.response.headers))),Promise.reject(B_)})}const headersToObject=Ff=>Ff instanceof AxiosHeaders$1?Ff.toJSON():Ff;function mergeConfig(Ff,kh){kh=kh||{};const x_={};function B_(nme,rme,ime){return utils$1.isPlainObject(nme)&&utils$1.isPlainObject(rme)?utils$1.merge.call({caseless:ime},nme,rme):utils$1.isPlainObject(rme)?utils$1.merge({},rme):utils$1.isArray(rme)?rme.slice():rme}function $_(nme,rme,ime){if(utils$1.isUndefined(rme)){if(!utils$1.isUndefined(nme))return B_(void 0,nme,ime)}else return B_(nme,rme,ime)}function $P(nme,rme){if(!utils$1.isUndefined(rme))return B_(void 0,rme)}function zP(nme,rme){if(utils$1.isUndefined(rme)){if(!utils$1.isUndefined(nme))return B_(void 0,nme)}else return B_(void 0,rme)}function eme(nme,rme,ime){if(ime in kh)return B_(nme,rme);if(ime in Ff)return B_(void 0,nme)}const tme={url:$P,method:$P,data:$P,baseURL:zP,transformRequest:zP,transformResponse:zP,paramsSerializer:zP,timeout:zP,timeoutMessage:zP,withCredentials:zP,withXSRFToken:zP,adapter:zP,responseType:zP,xsrfCookieName:zP,xsrfHeaderName:zP,onUploadProgress:zP,onDownloadProgress:zP,decompress:zP,maxContentLength:zP,maxBodyLength:zP,beforeRedirect:zP,transport:zP,httpAgent:zP,httpsAgent:zP,cancelToken:zP,socketPath:zP,responseEncoding:zP,validateStatus:eme,headers:(nme,rme)=>$_(headersToObject(nme),headersToObject(rme),!0)};return utils$1.forEach(Object.keys(Object.assign({},Ff,kh)),function(rme){const ime=tme[rme]||$_,ome=ime(Ff[rme],kh[rme],rme);utils$1.isUndefined(ome)&&ime!==eme||(x_[rme]=ome)}),x_}const VERSION="1.6.7",validators$1={};["object","boolean","number","function","string","symbol"].forEach((Ff,kh)=>{validators$1[Ff]=function(B_){return typeof B_===Ff||"a"+(kh<1?"n ":" ")+Ff}});const deprecatedWarnings={};validators$1.transitional=function(kh,x_,B_){function $_($P,zP){return"[Axios v"+VERSION+"] Transitional option '"+$P+"'"+zP+(B_?". "+B_:"")}return($P,zP,eme)=>{if(kh===!1)throw new AxiosError($_(zP," has been removed"+(x_?" in "+x_:"")),AxiosError.ERR_DEPRECATED);return x_&&!deprecatedWarnings[zP]&&(deprecatedWarnings[zP]=!0,console.warn($_(zP," has been deprecated since v"+x_+" and will be removed in the near future"))),kh?kh($P,zP,eme):!0}};function assertOptions(Ff,kh,x_){if(typeof Ff!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const B_=Object.keys(Ff);let $_=B_.length;for(;$_-- >0;){const $P=B_[$_],zP=kh[$P];if(zP){const eme=Ff[$P],tme=eme===void 0||zP(eme,$P,Ff);if(tme!==!0)throw new AxiosError("option "+$P+" must be "+tme,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(x_!==!0)throw new AxiosError("Unknown option "+$P,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(kh){this.defaults=kh,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(kh,x_){try{return await this._request(kh,x_)}catch(B_){if(B_ instanceof Error){let $_;Error.captureStackTrace?Error.captureStackTrace($_={}):$_=new Error;const $P=$_.stack?$_.stack.replace(/^.+\n/,""):"";B_.stack?$P&&!String(B_.stack).endsWith($P.replace(/^.+\n.+\n/,""))&&(B_.stack+=`
|
|
411
|
-
`+$P):B_.stack=$P}throw B_}}_request(kh,x_){typeof kh=="string"?(x_=x_||{},x_.url=kh):x_=kh||{},x_=mergeConfig(this.defaults,x_);const{transitional:B_,paramsSerializer:$_,headers:$P}=x_;B_!==void 0&&validator.assertOptions(B_,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),$_!=null&&(utils$1.isFunction($_)?x_.paramsSerializer={serialize:$_}:validator.assertOptions($_,{encode:validators.function,serialize:validators.function},!0)),x_.method=(x_.method||this.defaults.method||"get").toLowerCase();let zP=$P&&utils$1.merge($P.common,$P[x_.method]);$P&&utils$1.forEach(["delete","get","head","post","put","patch","common"],cme=>{delete $P[cme]}),x_.headers=AxiosHeaders$1.concat(zP,$P);const eme=[];let tme=!0;this.interceptors.request.forEach(function(ume){typeof ume.runWhen=="function"&&ume.runWhen(x_)===!1||(tme=tme&&ume.synchronous,eme.unshift(ume.fulfilled,ume.rejected))});const nme=[];this.interceptors.response.forEach(function(ume){nme.push(ume.fulfilled,ume.rejected)});let rme,ime=0,ome;if(!tme){const cme=[dispatchRequest.bind(this),void 0];for(cme.unshift.apply(cme,eme),cme.push.apply(cme,nme),ome=cme.length,rme=Promise.resolve(x_);ime<ome;)rme=rme.then(cme[ime++],cme[ime++]);return rme}ome=eme.length;let ame=x_;for(ime=0;ime<ome;){const cme=eme[ime++],ume=eme[ime++];try{ame=cme(ame)}catch(sme){ume.call(this,sme);break}}try{rme=dispatchRequest.call(this,ame)}catch(cme){return Promise.reject(cme)}for(ime=0,ome=nme.length;ime<ome;)rme=rme.then(nme[ime++],nme[ime++]);return rme}getUri(kh){kh=mergeConfig(this.defaults,kh);const x_=buildFullPath(kh.baseURL,kh.url);return buildURL(x_,kh.params,kh.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(kh){Axios.prototype[kh]=function(x_,B_){return this.request(mergeConfig(B_||{},{method:kh,url:x_,data:(B_||{}).data}))}}),utils$1.forEach(["post","put","patch"],function(kh){function x_(B_){return function($P,zP,eme){return this.request(mergeConfig(eme||{},{method:kh,headers:B_?{"Content-Type":"multipart/form-data"}:{},url:$P,data:zP}))}}Axios.prototype[kh]=x_(),Axios.prototype[kh+"Form"]=x_(!0)});const Axios$1=Axios;class CancelToken{constructor(kh){if(typeof kh!="function")throw new TypeError("executor must be a function.");let x_;this.promise=new Promise(function($P){x_=$P});const B_=this;this.promise.then($_=>{if(!B_._listeners)return;let $P=B_._listeners.length;for(;$P-- >0;)B_._listeners[$P]($_);B_._listeners=null}),this.promise.then=$_=>{let $P;const zP=new Promise(eme=>{B_.subscribe(eme),$P=eme}).then($_);return zP.cancel=function(){B_.unsubscribe($P)},zP},kh(function($P,zP,eme){B_.reason||(B_.reason=new CanceledError($P,zP,eme),x_(B_.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(kh){if(this.reason){kh(this.reason);return}this._listeners?this._listeners.push(kh):this._listeners=[kh]}unsubscribe(kh){if(!this._listeners)return;const x_=this._listeners.indexOf(kh);x_!==-1&&this._listeners.splice(x_,1)}static source(){let kh;return{token:new CancelToken(function($_){kh=$_}),cancel:kh}}}const CancelToken$1=CancelToken;function spread(Ff){return function(x_){return Ff.apply(null,x_)}}function isAxiosError(Ff){return utils$1.isObject(Ff)&&Ff.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([Ff,kh])=>{HttpStatusCode[kh]=Ff});const HttpStatusCode$1=HttpStatusCode;function createInstance(Ff){const kh=new Axios$1(Ff),x_=bind(Axios$1.prototype.request,kh);return utils$1.extend(x_,Axios$1.prototype,kh,{allOwnKeys:!0}),utils$1.extend(x_,kh,null,{allOwnKeys:!0}),x_.create=function($_){return createInstance(mergeConfig(Ff,$_))},x_}const axios=createInstance(defaults$2);axios.Axios=Axios$1,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function(kh){return Promise.all(kh)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=Ff=>formDataToJSON(utils$1.isHTMLForm(Ff)?new FormData(Ff):Ff),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const upload=async Ff=>{try{return(await axios.post(`${Ff==null?void 0:Ff.url}/oss/upload?ext=${Ff==null?void 0:Ff.ext}`,Ff==null?void 0:Ff.file,{headers:{"Content-Type":"multipart/form-data"}})).data}catch(kh){return kh}},base64ToText$1=Ff=>{try{const kh=atob(Ff),x_=new Uint8Array(kh.length);for(let $_=0;$_<kh.length;$_++)x_[$_]=kh.charCodeAt($_);return new TextDecoder().decode(x_)}catch{return""}},textToBase64=Ff=>{const x_=new TextEncoder().encode(Ff),B_=String.fromCharCode(...x_);return btoa(B_)},getFileSuffix=Ff=>{const kh=Ff.indexOf(".")>-1?Ff.split("."):[];return kh.length>0?kh[kh.length-1]:""},marks={strong:"bold",emphasis:"italic",delete:"strike",link:"link"},toNodeObj=(Ff,kh)=>{var $_,$P,zP,eme,tme;const x_={};x_.type=Ff==null?void 0:Ff.type;const B_=kh?[...kh]:[];switch(Ff==null?void 0:Ff.type){case"linkReference":x_.type="paragraph";break;case"text":x_.text=Ff==null?void 0:Ff.value,B_!=null&&B_.length&&(x_.marks=B_);break;case"heading":x_.attrs={level:Ff==null?void 0:Ff.depth};break;case"list":x_.type=Ff!=null&&Ff.ordered?"orderedList":"bulletList";break;case"listItem":($_=Ff.children)!=null&&$_.length||(x_.content=[{type:"paragraph"}]);break;case"thematicBreak":x_.type="horizontalRule";break;case"image":x_.attrs={src:Ff==null?void 0:Ff.url,alt:Ff==null?void 0:Ff.alt,title:Ff==null?void 0:Ff.title},B_!=null&&B_.length&&(x_.marks=B_);break;case"html":x_.type="text",x_.text=Ff==null?void 0:Ff.value;break;case"code":(Ff==null?void 0:Ff.props)==="active"?(x_.type="active",x_.attrs={language:Ff==null?void 0:Ff.lang,id:Ff==null?void 0:Ff.value}):(Ff==null?void 0:Ff.props)==="exec"?(x_.type="codeBlock",x_.attrs={language:Ff==null?void 0:Ff.lang,exec:!0},x_.content=Ff!=null&&Ff.value?[{type:"text",text:Ff==null?void 0:Ff.value}]:[]):(x_.type="codeBlock",x_.attrs={language:Ff==null?void 0:Ff.lang},x_.content=Ff!=null&&Ff.value?[{type:"text",text:Ff==null?void 0:Ff.value}]:[]);break;case"inlineCode":x_.type="text",x_.text=Ff==null?void 0:Ff.value,x_.marks=[{type:"code"}];break;default:{const nme=Object.keys(marks);if(nme!=null&&nme.includes(Ff==null?void 0:Ff.type))if(Ff.type==="link"&&/\.pdf$/i.test(Ff.url))x_.type="pdf",x_.attrs={pdfUrl:Ff==null?void 0:Ff.url};else{const rme={type:marks[Ff==null?void 0:Ff.type]};Ff.type==="link"&&(rme.attrs={href:Ff==null?void 0:Ff.url,target:"_blank"});const ime=Ff==null?void 0:Ff.children;(ime==null?void 0:ime.length)===1&&ime[0].type==="text"?(x_.type="text",x_.text=ime[0].value,x_.marks=[...B_,rme]):(x_.type="fragment",B_.push(rme))}}break}if(($P=Ff==null?void 0:Ff.children)!=null&&$P.length)if((Ff==null?void 0:Ff.type)==="paragraph"&&((zP=Ff==null?void 0:Ff.children)==null?void 0:zP.length)===1&&((eme=Ff==null?void 0:Ff.children[0])==null?void 0:eme.type)==="image"){x_.type="image";const nme=Ff==null?void 0:Ff.children[0];x_.attrs={src:nme==null?void 0:nme.url,alt:nme==null?void 0:nme.alt,title:nme==null?void 0:nme.title}}else x_.content=(tme=Ff==null?void 0:Ff.children)==null?void 0:tme.map(nme=>toNodeObj(nme,B_));return x_.type==="text"&&(x_!=null&&x_.content)&&(x_==null||delete x_.content),x_},toEditorJSON=Ff=>{var x_,B_,$_;const kh={};return kh.type="document",(x_=Ff==null?void 0:Ff.children)!=null&&x_.length&&(kh.content=($_=(B_=Ff==null?void 0:Ff.children)==null?void 0:B_.filter($P=>($P==null?void 0:$P.type)!=="definition"))==null?void 0:$_.map($P=>toNodeObj($P))),kh},marksMD={bold:"strong",italic:"emphasis",strike:"delete",link:"link"},toMDNodeObj=(Ff,kh)=>{var $_,$P,zP,eme,tme,nme,rme,ime,ome,ame,cme,ume,sme,lme,dme,fme,pme,hme,mme,_me,gme,vme,Sme,Eme;const x_={};x_.type=Ff==null?void 0:Ff.type;const B_=kh?[...kh]:[];switch(Ff==null?void 0:Ff.type){case"text":{const bme=($_=Ff==null?void 0:Ff.marks)==null?void 0:$_.length;if(!bme)x_.value=Ff==null?void 0:Ff.text;else if(bme===1){const Rme=Ff==null?void 0:Ff.marks[0];(Rme==null?void 0:Rme.type)==="code"?(x_.type="inlineCode",x_.value=Ff==null?void 0:Ff.text):(Rme==null?void 0:Rme.type)==="link"?(x_.type="link",x_.url=($P=Rme==null?void 0:Rme.attrs)==null?void 0:$P.href,x_.children=[{type:"text",value:Ff==null?void 0:Ff.text}]):(B_==null?void 0:B_.length)===0&&marksMD[Rme==null?void 0:Rme.type]?(x_.type=marksMD[Rme==null?void 0:Rme.type],x_.children=[{type:"text",value:Ff==null?void 0:Ff.text}]):x_.value=Ff==null?void 0:Ff.text}else(zP=Ff==null?void 0:Ff.marks)==null||zP.forEach(Rme=>{!B_.includes(Rme==null?void 0:Rme.type)&&marksMD[Rme==null?void 0:Rme.type]?(x_.type=marksMD[Rme==null?void 0:Rme.type],x_.children=[{type:"text",value:Ff==null?void 0:Ff.text}]):x_.value=Ff==null?void 0:Ff.text})}break;case"fragment":if((eme=Ff==null?void 0:Ff.content)!=null&&eme.length&&((nme=(tme=Ff==null?void 0:Ff.content[0])==null?void 0:tme.marks)!=null&&nme.length)){const bme=(rme=Ff==null?void 0:Ff.content[0])==null?void 0:rme.marks,Rme=bme==null?void 0:bme.find(Pme=>!(B_!=null&&B_.includes(Pme==null?void 0:Pme.type))),Ome=Rme==null?void 0:Rme.type;x_.type=marksMD[Ome],Ome==="link"&&(x_.url=(ime=Rme==null?void 0:Rme.attrs)==null?void 0:ime.href),B_.push(Ome)}else x_.type="paragraph";break;case"heading":x_.depth=(ome=Ff==null?void 0:Ff.attrs)==null?void 0:ome.level;break;case"bulletList":x_.type="list",x_.ordered=!1;break;case"orderedList":x_.type="list",x_.ordered=!0;break;case"horizontalRule":x_.type="thematicBreak";break;case"image":B_!=null&&B_.length?(x_.url=(ame=Ff==null?void 0:Ff.attrs)==null?void 0:ame.src,x_.alt=(cme=Ff==null?void 0:Ff.attrs)==null?void 0:cme.alt,x_.title=(ume=Ff==null?void 0:Ff.attrs)==null?void 0:ume.title):(x_.type="paragraph",x_.children=[{type:"image",url:(sme=Ff==null?void 0:Ff.attrs)==null?void 0:sme.src,alt:(lme=Ff==null?void 0:Ff.attrs)==null?void 0:lme.alt,title:(dme=Ff==null?void 0:Ff.attrs)==null?void 0:dme.title}]);break;case"codeBlock":x_.type="code",x_.lang=(fme=Ff==null?void 0:Ff.attrs)==null?void 0:fme.language,x_.value=(pme=Ff==null?void 0:Ff.content)!=null&&pme.length?(hme=Ff==null?void 0:Ff.content[0])==null?void 0:hme.text:"",(mme=Ff==null?void 0:Ff.attrs)!=null&&mme.exec&&(x_.props="exec");break;case"active":x_.type="code",x_.lang=(_me=Ff==null?void 0:Ff.attrs)==null?void 0:_me.language,x_.value=(gme=Ff==null?void 0:Ff.attrs)==null?void 0:gme.id,x_.props="active";break;case"pdf":x_.type="link",x_.url=(vme=Ff==null?void 0:Ff.attrs)==null?void 0:vme.pdfUrl;break}return(Sme=Ff==null?void 0:Ff.content)!=null&&Sme.length&&(x_.children=(Eme=Ff==null?void 0:Ff.content)==null?void 0:Eme.map(bme=>toMDNodeObj(bme,B_))),x_.type==="code"&&(x_!=null&&x_.children)&&(x_==null||delete x_.children),x_},toMarkdownJson=Ff=>{var x_,B_;const kh={};return kh.type="root",(x_=Ff==null?void 0:Ff.content)!=null&&x_.length&&(kh.children=(B_=Ff==null?void 0:Ff.content)==null?void 0:B_.map($_=>toMDNodeObj($_))),kh},normalClass$1="tiptap-menu-item-menus-item",lighClass$1="tiptap-menu-item-menus-item tiptap-menu-item-menus-light",Menu=Ff=>{const kh=React.useContext(shareData),{editor:x_,data:B_}=Ff,[$_,$P]=React.useState(null),[zP,eme]=React.useState(null),tme=(B_==null?void 0:B_.pos)+1||0,nme=()=>{x_==null||x_.chain().focus(tme).setParagraph().hideTip().run()},rme=gme=>{x_==null||x_.chain().focus(tme).setHeading({level:gme}).hideTip().run()},ime=()=>{x_==null||x_.chain().focus(tme).setCodeBlock().hideTip().run()},ome=()=>{const gme=document.createElement("input");gme.type="file",gme.accept="image/*",gme.addEventListener("change",vme=>{const Sme=vme.target.files[0],Eme=Sme.size,bme=512*1024;if(Eme>bme)staticMethods.warning("图片大小不能超过512kb!");else{const Rme=new FormData;Rme.append("file",Sme),upload({url:kh==null?void 0:kh.apiUrl,file:Rme,ext:Sme==null?void 0:Sme.name}).then(Ome=>{Ome!=null&&Ome.url&&(x_==null||x_.chain().focus(tme).setImage({src:Ome==null?void 0:Ome.url}).hideTip().run())}).catch(()=>{staticMethods.destroy(),staticMethods.error("图片上传失败")})}}),gme.click()},ame=gme=>{x_==null||x_.chain().focus(tme).insertTable({rows:gme.row,cols:gme.col,withHeaderRow:!0}).hideTip().run()},cme=(gme=!1)=>{gme?x_==null||x_.chain().focus(tme).toggleOrderedList().hideTip().run():x_==null||x_.chain().focus(tme).toggleBulletList().hideTip().run()},ume=()=>{x_==null||x_.chain().focus(tme).showBubbleMenu({from:tme,to:tme}).hideTip().run()},sme=gme=>{window.postMessage({type:gme,value:{pos:tme}}),x_==null||x_.commands.hideTip()},lme=()=>{hme()},dme=()=>{x_==null||x_.chain().focus(tme).setHorizontalRule().hideTip().run()},fme=()=>{x_==null||x_.chain().focus(tme).setBlockquote().hideTip().run()},pme=gme=>{var vme,Sme;return((Sme=(vme=B_==null?void 0:B_.node)==null?void 0:vme.type)==null?void 0:Sme.name)===gme},hme=()=>{const gme=document.createElement("input");gme.type="file",gme.accept=".pdf",gme.addEventListener("change",vme=>{const Sme=vme.target.files[0];if((Sme==null?void 0:Sme.type)!=="application/pdf"){staticMethods.destroy(),staticMethods.error("仅支持上传.pdf结尾的文件");return}if((Sme==null?void 0:Sme.size)>200*1024*1024){staticMethods.destroy(),staticMethods.error("上传文件不可超过200MB");return}const Eme=new FormData;Eme.append("file",Sme),upload({url:kh==null?void 0:kh.apiUrl,file:Eme,ext:getFileSuffix(Sme==null?void 0:Sme.name)}).then(bme=>{var Rme,Ome;(Ome=(Rme=x_==null?void 0:x_.chain().focus(tme))==null?void 0:Rme.setPdf({pdfUrl:bme==null?void 0:bme.url}))==null||Ome.hideTip().run()}).catch(()=>{staticMethods.destroy(),staticMethods.error("文件上传失败")})}),gme.click()},mme=gme=>{var vme,Sme,Eme,bme;return pme((Sme=(vme=B_==null?void 0:B_.node)==null?void 0:vme.type)==null?void 0:Sme.name)&&((bme=(Eme=B_==null?void 0:B_.node)==null?void 0:Eme.attrs)==null?void 0:bme.level)===gme};React.useEffect(()=>{!$_||!zP||tippy($_,{placement:"right",content:zP,interactive:!0,duration:[300,300],interactiveBorder:10,interactiveDebounce:75,maxWidth:500})},[$_,zP]);const _me=window.innerHeight/2-30;return jsxRuntimeExports.jsxs("div",{className:"tiptap-menu tiptap-scroll",style:{maxHeight:_me,overflowY:"auto"},children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"基础"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-menus",children:[jsxRuntimeExports.jsx("div",{className:pme("paragraph")?lighClass$1:normalClass$1,"data-tip":"正文",onClick:nme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 3.99984V13.9998H7.33398V3.99984H3.33398V2.6665H12.6673V3.99984H8.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(1)?lighClass$1:normalClass$1,"data-tip":"一级标题",onClick:()=>{rme(1)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732V7.33317H7.33398V2.6665H8.66732V13.3332ZM14.001 5.33317V13.3332H12.6677L12.6673 6.8025L11.334 7.15984V5.77984L13.001 5.33317H14.001Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(2)?lighClass$1:normalClass$1,"data-tip":"二级标题",onClick:()=>{rme(2)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2.66536 2.6665V7.33317H7.33203V2.6665H8.66536V13.3332H7.33203V8.6665H2.66536V13.3332H1.33203V2.6665H2.66536ZM12.332 5.33317C13.7128 5.33317 14.832 6.45246 14.832 7.83317C14.832 8.40477 14.6402 8.93157 14.3174 9.35264L14.2188 9.4733L12.0216 11.9998H14.6654V13.3332H9.9987L9.99823 12.2958L13.2125 8.59857C13.3908 8.3937 13.4987 8.12604 13.4987 7.83317C13.4987 7.18884 12.9764 6.6665 12.332 6.6665C11.7199 6.6665 11.2179 7.1379 11.1692 7.7375L11.1654 7.83317H9.83203C9.83203 6.45246 10.9513 5.33317 12.332 5.33317Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(3)?lighClass$1:normalClass$1,"data-tip":"三级标题",onClick:()=>{rme(3)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33317L14.6663 6.6665L12.9963 8.5885C14.0555 8.87877 14.834 9.84837 14.834 10.9998C14.834 12.3806 13.7147 13.4998 12.334 13.4998C11.1167 13.4998 10.1025 12.6298 9.87959 11.4776L11.1887 11.2233C11.2929 11.7607 11.7661 12.1665 12.334 12.1665C12.9783 12.1665 13.5007 11.6442 13.5007 10.9998C13.5007 10.3555 12.9783 9.83317 12.334 9.83317C12.1433 9.83317 11.9633 9.8789 11.8044 9.96004L10.9335 8.92864L12.8996 6.6665H10.0007V5.33317H14.6673ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(4)?lighClass$1:normalClass$1,"data-tip":"四级标题",onClick:()=>{rme(4)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732V7.33317H7.33398V2.6665H8.66732V13.3332ZM14.6673 5.33317V10.6665H15.6673V11.9998H14.6673V13.3332H13.334V11.9998H9.66732V11.1065L13.0007 5.33317H14.6673ZM13.334 7.42184L11.4607 10.6665H13.334V7.42184Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(5)?lighClass$1:normalClass$1,"data-tip":"五级标题",onClick:()=>{rme(5)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33317V6.6665H11.7853L11.4757 8.4237C11.6963 8.36464 11.9281 8.33317 12.1673 8.33317C13.6401 8.33317 14.834 9.5271 14.834 10.9998C14.834 12.4726 13.6401 13.6665 12.1673 13.6665C10.9495 13.6665 9.92245 12.8502 9.60325 11.735L10.8854 11.3678C11.0451 11.9252 11.5586 12.3332 12.1673 12.3332C12.9037 12.3332 13.5007 11.7362 13.5007 10.9998C13.5007 10.2634 12.9037 9.6665 12.1673 9.6665C11.7469 9.6665 11.372 9.86104 11.1276 10.165L9.92085 9.56244L10.6673 5.33317H14.6673ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(6)?lighClass$1:normalClass$1,"data-tip":"六级标题",onClick:()=>{rme(6)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0653 5.33317L12.3333 8.33317C13.8067 8.33317 15.0007 9.5271 15.0007 10.9998C15.0007 12.4726 13.8067 13.6665 12.334 13.6665C10.8613 13.6665 9.66732 12.4726 9.66732 10.9998C9.66732 10.5089 9.79998 10.049 10.0314 9.6539L12.526 5.33317H14.0653ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732ZM12.334 9.6665C11.5976 9.6665 11.0007 10.2634 11.0007 10.9998C11.0007 11.7362 11.5976 12.3332 12.334 12.3332C13.0704 12.3332 13.6673 11.7362 13.6673 10.9998C13.6673 10.2634 13.0704 9.6665 12.334 9.6665Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("bulletList")?lighClass$1:normalClass$1,"data-tip":"无序列表",onClick:()=>{cme(!1)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 2.66683H14V4.00016H5.33333V2.66683ZM3 4.3335C2.44771 4.3335 2 3.88578 2 3.3335C2 2.78121 2.44771 2.3335 3 2.3335C3.55229 2.3335 4 2.78121 4 3.3335C4 3.88578 3.55229 4.3335 3 4.3335ZM3 9.00016C2.44771 9.00016 2 8.55243 2 8.00016C2 7.4479 2.44771 7.00016 3 7.00016C3.55229 7.00016 4 7.4479 4 8.00016C4 8.55243 3.55229 9.00016 3 9.00016ZM3 13.6002C2.44771 13.6002 2 13.1524 2 12.6002C2 12.0479 2.44771 11.6002 3 11.6002C3.55229 11.6002 4 12.0479 4 12.6002C4 13.1524 3.55229 13.6002 3 13.6002ZM5.33333 7.3335H14V8.66683H5.33333V7.3335ZM5.33333 12.0002H14V13.3335H5.33333V12.0002Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("orderedList")?lighClass$1:normalClass$1,"data-tip":"有序列表",onClick:()=>{cme(!0)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 2.66667H14V4H5.33333V2.66667ZM3.33333 2V4H4V4.66667H2V4H2.66667V2.66667H2V2H3.33333ZM2 9.33333V7.66667H3.33333V7.33333H2V6.66667H4V8.33333H2.66667V8.66667H4V9.33333H2ZM3.33333 13H2V12.3333H3.33333V12H2V11.3333H4V14H2V13.3333H3.33333V13ZM5.33333 7.33333H14V8.66667H5.33333V7.33333ZM5.33333 12H14V13.3333H5.33333V12Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("link")?lighClass$1:normalClass$1,"data-tip":"链接",onClick:ume,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M12.2422 10.357L11.2993 9.41423L12.2422 8.47143C13.5439 7.1697 13.5439 5.05914 12.2422 3.7574C10.9404 2.45565 8.82988 2.45565 7.52815 3.7574L6.58533 4.70021L5.64253 3.7574L6.58533 2.81459C8.40781 0.992142 11.3625 0.992142 13.185 2.81459C15.0074 4.63704 15.0074 7.59183 13.185 9.41423L12.2422 10.357ZM10.3565 12.2427L9.41375 13.1855C7.59135 15.008 4.63655 15.008 2.8141 13.1855C0.991654 11.363 0.991654 8.4083 2.8141 6.58582L3.75691 5.64302L4.69971 6.58582L3.75691 7.52863C2.45516 8.83036 2.45516 10.941 3.75691 12.2427C5.05865 13.5444 7.16921 13.5444 8.47095 12.2427L9.41375 11.2999L10.3565 12.2427ZM9.88515 5.17161L10.8279 6.11442L6.11393 10.8285L5.17112 9.88563L9.88515 5.17161Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("orderedList")?lighClass$1:normalClass$1,"data-tip":"分割线",onClick:dme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M1.33398 7.3335H2.66732V8.66683H1.33398V7.3335ZM4.00065 7.3335H12.0007V8.66683H4.00065V7.3335ZM13.334 7.3335H14.6673V8.66683H13.334V7.3335Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("orderedList")?lighClass$1:normalClass$1,"data-tip":"引用",onClick:fme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0007 2.00049C14.3689 2.00049 14.6673 2.29897 14.6673 2.66715V12.0005C14.6673 12.3687 14.3689 12.6672 14.0007 12.6672H4.30398L1.33398 15.0005V2.66715C1.33398 2.29897 1.63246 2.00049 2.00065 2.00049H14.0007ZM13.334 3.33382H2.66732V12.2572L3.84287 11.3338H13.334V3.33382ZM7.01085 4.94156L7.30838 5.40075C6.19666 6.00229 6.2161 6.96842 6.2161 7.17682C6.3195 7.16255 6.42803 7.16069 6.53556 7.17069C7.13698 7.22642 7.61105 7.72016 7.61105 8.33382C7.61105 8.97816 7.08872 9.50049 6.44437 9.50049C6.08668 9.50049 5.74464 9.33702 5.52846 9.10749C5.18504 8.74295 5.00065 8.33382 5.00065 7.67062C5.00065 6.50411 5.81948 5.45838 7.01085 4.94156ZM10.3442 4.94156L10.6417 5.40075C9.52998 6.00229 9.54945 6.96842 9.54945 7.17682C9.65285 7.16255 9.76138 7.16069 9.86892 7.17069C10.4703 7.22642 10.9444 7.72016 10.9444 8.33382C10.9444 8.97816 10.4221 9.50049 9.77772 9.50049C9.42005 9.50049 9.07798 9.33702 8.86178 9.10749C8.51838 8.74295 8.33398 8.33382 8.33398 7.67062C8.33398 6.50411 9.15285 5.45838 10.3442 4.94156Z"})})})]})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"常用"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:ime,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M16 8L12.2287 11.7713L11.2859 10.8284L14.1144 8L11.2859 5.17157L12.2287 4.22877L16 8ZM1.88562 8L4.71405 10.8284L3.77123 11.7713L0 8L3.77123 4.22877L4.71405 5.17157L1.88562 8ZM6.52563 14H5.10673L9.4744 2H10.8933L6.52563 14Z",fill:"#14C3FA"})}),jsxRuntimeExports.jsx("span",{children:"可执行代码块"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:ome,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M1.99518 14C1.63002 14 1.33398 13.7034 1.33398 13.3377V2.66227C1.33398 2.29651 1.63752 2 1.99518 2H14.0061C14.3713 2 14.6673 2.29663 14.6673 2.66227V13.3377C14.6673 13.7035 14.3638 14 14.0061 14H1.99518ZM13.334 10V3.33333H2.66732V12.6667L9.33398 6L13.334 10ZM13.334 11.8856L9.33398 7.8856L4.55294 12.6667H13.334V11.8856ZM5.33398 7.33333C4.5976 7.33333 4.00065 6.7364 4.00065 6C4.00065 5.26362 4.5976 4.66667 5.33398 4.66667C6.07036 4.66667 6.66732 5.26362 6.66732 6C6.66732 6.7364 6.07036 7.33333 5.33398 7.33333Z",fill:"#FBC12D"})}),jsxRuntimeExports.jsx("span",{children:"图片"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",ref:$P,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M9.33333 6.66667H6.66667V9.33333H9.33333V6.66667ZM10.6667 6.66667V9.33333H12.6667V6.66667H10.6667ZM9.33333 12.6667V10.6667H6.66667V12.6667H9.33333ZM10.6667 12.6667H12.6667V10.6667H10.6667V12.6667ZM9.33333 3.33333H6.66667V5.33333H9.33333V3.33333ZM10.6667 3.33333V5.33333H12.6667V3.33333H10.6667ZM5.33333 6.66667H3.33333V9.33333H5.33333V6.66667ZM5.33333 12.6667V10.6667H3.33333V12.6667H5.33333ZM5.33333 3.33333H3.33333V5.33333H5.33333V3.33333ZM2.66667 2H13.3333C13.7015 2 14 2.29848 14 2.66667V13.3333C14 13.7015 13.7015 14 13.3333 14H2.66667C2.29848 14 2 13.7015 2 13.3333V2.66667C2 2.29848 2.29848 2 2.66667 2Z",fill:"#2DDA9C"})}),jsxRuntimeExports.jsx("span",{children:"表格"}),jsxRuntimeExports.jsx("div",{ref:eme,children:jsxRuntimeExports.jsx(TableSelect,{onClick:ame})})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:lme,children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M2.66667 2.6H7.4V5C7.4 5.68856 7.9781 6.26667 8.66667 6.26667H11.0667V6.76667C11.0667 7.08855 11.3448 7.36667 11.6667 7.36667C11.9886 7.36667 12.2667 7.08855 12.2667 6.76667V4.66667C12.2667 4.50327 12.1865 4.34951 12.1165 4.24453L12.111 4.23629L12.104 4.22929L9.43738 1.56262C9.31201 1.43725 9.14874 1.4 9 1.4H2.66667C1.9781 1.4 1.4 1.9781 1.4 2.66667V13.3333C1.4 14.0219 1.9781 14.6 2.66667 14.6H9.1C9.4219 14.6 9.7 14.3219 9.7 14C9.7 13.6781 9.4219 13.4 9.1 13.4H2.66667C2.6394 13.4 2.62444 13.3913 2.61655 13.3835C2.60866 13.3756 2.6 13.3606 2.6 13.3333V2.66667C2.6 2.6394 2.60866 2.62444 2.61655 2.61655C2.62444 2.60866 2.6394 2.6 2.66667 2.6ZM8.75817 2.6L11.0667 4.94101V5.06667H8.66667C8.6394 5.06667 8.62444 5.05802 8.61655 5.05013C8.60866 5.04223 8.6 5.02727 8.6 5V2.6H8.75817Z",fill:"#3D79EE",stroke:"#3D79EE",strokeWidth:"0.2"}),jsxRuntimeExports.jsx("path",{d:"M5.19934 8.33301C4.99934 8.33301 4.89934 8.36635 4.79934 8.43301C4.69934 8.49968 4.66602 8.63301 4.66602 8.79968V12.033C4.66602 12.133 4.69934 12.233 4.76602 12.333C4.83267 12.3997 4.93267 12.4664 5.09934 12.4664C5.26602 12.4664 5.36602 12.3997 5.43267 12.333C5.49934 12.2664 5.53267 12.1664 5.53267 12.033V11.033H6.03267C6.93267 11.033 7.43267 10.5664 7.43267 9.66635C7.43267 9.23301 7.29934 8.86635 7.06602 8.66635C6.83267 8.43301 6.49934 8.33301 6.03267 8.33301H5.19934ZM6.56602 9.66635C6.56602 9.86635 6.53267 10.033 6.43267 10.0997C6.36602 10.1664 6.19934 10.233 5.99934 10.233H5.49934V9.13301H5.99934C6.19934 9.13301 6.33267 9.16635 6.43267 9.26635C6.53267 9.33301 6.56602 9.46635 6.56602 9.66635ZM10.4327 8.93301C10.2993 8.73301 10.0993 8.59968 9.89934 8.46635C9.66602 8.39968 9.39934 8.33301 9.09934 8.33301H8.13267C7.99934 8.33301 7.86602 8.33301 7.76602 8.46635C7.73267 8.53301 7.69934 8.63301 7.69934 8.76635V11.9997C7.69934 12.133 7.73267 12.233 7.76602 12.2997C7.86602 12.433 7.99934 12.433 8.13267 12.433H9.13267C9.43267 12.433 9.66602 12.3664 9.89934 12.2664C10.0993 12.1664 10.2993 11.9997 10.4327 11.7997C10.566 11.5997 10.666 11.3997 10.7327 11.133C10.7993 10.8997 10.8327 10.633 10.8327 10.3664C10.8327 10.0997 10.7993 9.83301 10.7327 9.59968C10.666 9.36635 10.566 9.13301 10.4327 8.93301ZM9.76602 11.333C9.63267 11.533 9.43267 11.633 9.16602 11.633H8.56602V9.13301H8.99934C9.33267 9.13301 9.59934 9.23301 9.73267 9.43301C9.89934 9.63301 9.96602 9.96635 9.96602 10.3664C9.99934 10.7997 9.89934 11.0997 9.76602 11.333ZM13.2993 8.33301H11.6327C11.4993 8.33301 11.366 8.36635 11.2993 8.43301C11.1993 8.49968 11.166 8.63301 11.166 8.76635V12.033C11.166 12.133 11.1993 12.233 11.266 12.2997C11.3327 12.3997 11.4327 12.433 11.5993 12.433C11.7327 12.433 11.866 12.3997 11.9327 12.2997C11.966 12.233 12.0327 12.1664 12.0327 11.9997V10.6664H13.166C13.366 10.6664 13.5327 10.5664 13.566 10.3997C13.5993 10.2664 13.5993 10.1664 13.566 10.133C13.5327 10.0664 13.466 9.86635 13.166 9.86635H11.9993V9.09968H13.266C13.3993 9.09968 13.4993 9.06635 13.566 9.03301C13.6327 8.99968 13.6993 8.89968 13.6993 8.69968C13.7327 8.49968 13.566 8.33301 13.2993 8.33301Z",fill:"#3D79EE"})]}),jsxRuntimeExports.jsx("span",{children:"PDF"})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"实验活动"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{sme("choiceQuestion")},children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.11099 7.65258H3.02108C2.20928 7.65258 1.54883 6.99213 1.54883 6.18033V3.09042C1.54883 2.27861 2.20928 1.61816 3.02108 1.61816H6.11099C6.92279 1.61816 7.58324 2.27861 7.58324 3.09042V6.18033C7.58324 6.99213 6.92279 7.65258 6.11099 7.65258ZM3.02108 2.50274C2.69703 2.50274 2.4334 2.76637 2.4334 3.09042V6.18033C2.4334 6.50437 2.69703 6.76801 3.02108 6.76801H6.11099C6.43504 6.76801 6.69867 6.50437 6.69867 6.18033V3.09042C6.69867 2.76637 6.43504 2.50274 6.11099 2.50274H3.02108ZM6.11099 14.3808H3.02108C2.20928 14.3808 1.54883 13.7204 1.54883 12.9086V9.81867C1.54883 9.00687 2.20928 8.34642 3.02108 8.34642H6.11099C6.92279 8.34642 7.58324 9.00687 7.58324 9.81867V12.9086C7.58324 13.7204 6.92279 14.3808 6.11099 14.3808ZM3.02108 9.23099C2.69703 9.23099 2.4334 9.49463 2.4334 9.81867V12.9086C2.4334 13.2326 2.69703 13.4963 3.02108 13.4963H6.11099C6.43504 13.4963 6.69867 13.2326 6.69867 12.9086V9.81867C6.69867 9.49463 6.43504 9.23099 6.11099 9.23099H3.02108ZM9.88078 7.65259H12.9707C13.7825 7.65259 14.443 6.99214 14.4429 6.18033V3.09042C14.4429 2.27862 13.7825 1.61817 12.9707 1.61817H9.88078C9.069 1.61817 8.40853 2.27862 8.40853 3.09042V6.18033C8.40853 6.99214 9.069 7.65259 9.88078 7.65259ZM9.2931 3.09042C9.2931 2.76637 9.55675 2.50274 9.88078 2.50274H12.9707C13.2947 2.50274 13.5584 2.76637 13.5584 3.09042V6.18033C13.5584 6.50438 13.2947 6.76801 12.9707 6.76801H9.88078C9.55675 6.76801 9.2931 6.50438 9.2931 6.18033V3.09042ZM12.9756 14.3812H9.88572C9.07392 14.3812 8.41347 13.7208 8.41347 12.909V9.81911C8.41347 9.00731 9.07392 8.34685 9.88572 8.34685H12.9756C13.3836 8.34685 13.7592 8.50129 14.0332 8.78173C14.3006 9.05546 14.4479 9.4239 14.4479 9.81911V12.909C14.4479 13.7208 13.7874 14.3812 12.9756 14.3812ZM10.515 13.0828C10.7097 13.2726 11.026 13.2726 11.2207 13.0828H11.2207L13.9558 10.4037C14.1505 10.2139 14.1505 9.9024 13.9558 9.7126C13.7611 9.5228 13.4448 9.5228 13.2501 9.7126L10.8679 12.0462L9.63169 10.8368C9.43699 10.647 9.12068 10.647 8.92599 10.8368C8.73129 11.0266 8.73129 11.3381 8.92599 11.5279L10.515 13.0828Z",fill:"#15DAC2"}),jsxRuntimeExports.jsx("path",{d:"M14.4429 6.18033L14.3429 6.18033L14.3429 6.18034L14.4429 6.18033ZM14.0332 8.78173L13.9616 8.85161L13.9616 8.85161L14.0332 8.78173ZM14.4479 12.909L14.3479 12.909L14.3479 12.909L14.4479 12.909ZM11.2207 13.0828V12.9828H11.18L11.1509 13.0112L11.2207 13.0828ZM10.515 13.0828L10.4451 13.1543L10.4452 13.1544L10.515 13.0828ZM11.2207 13.0828V13.1828H11.2616L11.2907 13.1542L11.2207 13.0828ZM13.9558 10.4037L13.886 10.332L13.8859 10.3322L13.9558 10.4037ZM13.9558 9.7126L14.0256 9.64099L14.0256 9.64099L13.9558 9.7126ZM13.2501 9.7126L13.1803 9.64099L13.1802 9.64116L13.2501 9.7126ZM10.8679 12.0462L10.7979 12.1177L10.8679 12.1861L10.9378 12.1176L10.8679 12.0462ZM9.63169 10.8368L9.70162 10.7653L9.70149 10.7652L9.63169 10.8368ZM8.92599 10.8368L8.85619 10.7652L8.85619 10.7652L8.92599 10.8368ZM8.92599 11.5279L8.99593 11.4564L8.99579 11.4563L8.92599 11.5279ZM3.02108 7.75258H6.11099V7.55258H3.02108V7.75258ZM1.44883 6.18033C1.44883 7.04736 2.15405 7.75258 3.02108 7.75258V7.55258C2.26451 7.55258 1.64883 6.9369 1.64883 6.18033H1.44883ZM1.44883 3.09042V6.18033H1.64883V3.09042H1.44883ZM3.02108 1.51816C2.15405 1.51816 1.44883 2.22339 1.44883 3.09042H1.64883C1.64883 2.33384 2.26451 1.71816 3.02108 1.71816V1.51816ZM6.11099 1.51816H3.02108V1.71816H6.11099V1.51816ZM7.68324 3.09042C7.68324 2.22339 6.97802 1.51816 6.11099 1.51816V1.71816C6.86756 1.71816 7.48324 2.33384 7.48324 3.09042H7.68324ZM7.68324 6.18033V3.09042H7.48324V6.18033H7.68324ZM6.11099 7.75258C6.97802 7.75258 7.68324 7.04736 7.68324 6.18033H7.48324C7.48324 6.9369 6.86756 7.55258 6.11099 7.55258V7.75258ZM2.5334 3.09042C2.5334 2.8216 2.75226 2.60274 3.02108 2.60274V2.40274C2.6418 2.40274 2.3334 2.71114 2.3334 3.09042H2.5334ZM2.5334 6.18033V3.09042H2.3334V6.18033H2.5334ZM3.02108 6.66801C2.75226 6.66801 2.5334 6.44915 2.5334 6.18033H2.3334C2.3334 6.5596 2.6418 6.86801 3.02108 6.86801V6.66801ZM6.11099 6.66801H3.02108V6.86801H6.11099V6.66801ZM6.59867 6.18033C6.59867 6.44915 6.37981 6.66801 6.11099 6.66801V6.86801C6.49027 6.86801 6.79867 6.5596 6.79867 6.18033H6.59867ZM6.59867 3.09042V6.18033H6.79867V3.09042H6.59867ZM6.11099 2.60274C6.37981 2.60274 6.59867 2.8216 6.59867 3.09042H6.79867C6.79867 2.71114 6.49027 2.40274 6.11099 2.40274V2.60274ZM3.02108 2.60274H6.11099V2.40274H3.02108V2.60274ZM3.02108 14.4808H6.11099V14.2808H3.02108V14.4808ZM1.44883 12.9086C1.44883 13.7756 2.15405 14.4808 3.02108 14.4808V14.2808C2.26451 14.2808 1.64883 13.6652 1.64883 12.9086H1.44883ZM1.44883 9.81867V12.9086H1.64883V9.81867H1.44883ZM3.02108 8.24642C2.15405 8.24642 1.44883 8.95164 1.44883 9.81867H1.64883C1.64883 9.0621 2.26451 8.44642 3.02108 8.44642V8.24642ZM6.11099 8.24642H3.02108V8.44642H6.11099V8.24642ZM7.68324 9.81867C7.68324 8.95164 6.97802 8.24642 6.11099 8.24642V8.44642C6.86756 8.44642 7.48324 9.0621 7.48324 9.81867H7.68324ZM7.68324 12.9086V9.81867H7.48324V12.9086H7.68324ZM6.11099 14.4808C6.97802 14.4808 7.68324 13.7756 7.68324 12.9086H7.48324C7.48324 13.6652 6.86756 14.2808 6.11099 14.2808V14.4808ZM2.5334 9.81867C2.5334 9.54985 2.75226 9.33099 3.02108 9.33099V9.13099C2.6418 9.13099 2.3334 9.4394 2.3334 9.81867H2.5334ZM2.5334 12.9086V9.81867H2.3334V12.9086H2.5334ZM3.02108 13.3963C2.75226 13.3963 2.5334 13.1774 2.5334 12.9086H2.3334C2.3334 13.2879 2.6418 13.5963 3.02108 13.5963V13.3963ZM6.11099 13.3963H3.02108V13.5963H6.11099V13.3963ZM6.59867 12.9086C6.59867 13.1774 6.37981 13.3963 6.11099 13.3963V13.5963C6.49027 13.5963 6.79867 13.2879 6.79867 12.9086H6.59867ZM6.59867 9.81867V12.9086H6.79867V9.81867H6.59867ZM6.11099 9.33099C6.37981 9.33099 6.59867 9.54985 6.59867 9.81867H6.79867C6.79867 9.4394 6.49027 9.13099 6.11099 9.13099V9.33099ZM3.02108 9.33099H6.11099V9.13099H3.02108V9.33099ZM12.9707 7.55259H9.88078V7.75259H12.9707V7.55259ZM14.3429 6.18034C14.343 6.93691 13.7273 7.55259 12.9707 7.55259V7.75259C13.8377 7.75259 14.543 7.04736 14.5429 6.18033L14.3429 6.18034ZM14.3429 3.09042V6.18033H14.5429V3.09042H14.3429ZM12.9707 1.71817C13.7273 1.71817 14.3429 2.33385 14.3429 3.09042H14.5429C14.5429 2.22339 13.8377 1.51817 12.9707 1.51817V1.71817ZM9.88078 1.71817H12.9707V1.51817H9.88078V1.71817ZM8.50853 3.09042C8.50853 2.33385 9.12423 1.71817 9.88078 1.71817V1.51817C9.01377 1.51817 8.30853 2.22339 8.30853 3.09042H8.50853ZM8.50853 6.18033V3.09042H8.30853V6.18033H8.50853ZM9.88078 7.55259C9.12423 7.55259 8.50853 6.93691 8.50853 6.18033H8.30853C8.30853 7.04736 9.01377 7.75259 9.88078 7.75259V7.55259ZM9.88078 2.40274C9.50152 2.40274 9.1931 2.71114 9.1931 3.09042H9.3931C9.3931 2.82161 9.61198 2.60274 9.88078 2.60274V2.40274ZM12.9707 2.40274H9.88078V2.60274H12.9707V2.40274ZM13.6584 3.09042C13.6584 2.71115 13.35 2.40274 12.9707 2.40274V2.60274C13.2395 2.60274 13.4584 2.8216 13.4584 3.09042H13.6584ZM13.6584 6.18033V3.09042H13.4584V6.18033H13.6584ZM12.9707 6.86801C13.35 6.86801 13.6584 6.55961 13.6584 6.18033H13.4584C13.4584 6.44916 13.2395 6.66801 12.9707 6.66801V6.86801ZM9.88078 6.86801H12.9707V6.66801H9.88078V6.86801ZM9.1931 6.18033C9.1931 6.55961 9.50152 6.86801 9.88078 6.86801V6.66801C9.61198 6.66801 9.3931 6.44915 9.3931 6.18033H9.1931ZM9.1931 3.09042V6.18033H9.3931V3.09042H9.1931ZM9.88572 14.4812H12.9756V14.2812H9.88572V14.4812ZM8.31347 12.909C8.31347 13.776 9.01869 14.4812 9.88572 14.4812V14.2812C9.12915 14.2812 8.51347 13.6656 8.51347 12.909H8.31347ZM8.31347 9.81911V12.909H8.51347V9.81911H8.31347ZM9.88572 8.24685C9.01869 8.24685 8.31347 8.95208 8.31347 9.81911H8.51347C8.51347 9.06254 9.12915 8.44685 9.88572 8.44685V8.24685ZM12.9756 8.24685H9.88572V8.44685H12.9756V8.24685ZM14.1047 8.71185C13.8111 8.41129 13.4093 8.24685 12.9756 8.24685V8.44685C13.3579 8.44685 13.7073 8.59129 13.9616 8.85161L14.1047 8.71185ZM14.5479 9.81911C14.5479 9.39874 14.391 9.00493 14.1047 8.71185L13.9616 8.85161C14.2102 9.10599 14.3479 9.44906 14.3479 9.81911H14.5479ZM14.5479 12.909V9.81911H14.3479V12.909H14.5479ZM12.9756 14.4812C13.8427 14.4812 14.5479 13.776 14.5479 12.909L14.3479 12.909C14.3479 13.6656 13.7322 14.2812 12.9756 14.2812V14.4812ZM11.1509 13.0112C10.995 13.1631 10.7407 13.1631 10.5848 13.0112L10.4452 13.1544C10.6787 13.3821 11.057 13.3821 11.2905 13.1544L11.1509 13.0112ZM11.2207 12.9828H11.2207V13.1828H11.2207V12.9828ZM13.8859 10.3322L11.1508 13.0114L11.2907 13.1542L14.0258 10.4751L13.8859 10.3322ZM13.886 9.7842C14.0405 9.93476 14.0405 10.1815 13.886 10.332L14.0256 10.4753C14.2606 10.2462 14.2606 9.87004 14.0256 9.64099L13.886 9.7842ZM13.3199 9.7842C13.4758 9.63226 13.7302 9.63226 13.886 9.7842L14.0256 9.64099C13.7921 9.41333 13.4139 9.41333 13.1803 9.64099L13.3199 9.7842ZM10.9378 12.1176L13.3201 9.78404L13.1802 9.64116L10.7979 11.9748L10.9378 12.1176ZM9.56176 10.9083L10.7979 12.1177L10.9378 11.9747L9.70162 10.7653L9.56176 10.9083ZM8.99579 10.9084C9.15165 10.7565 9.40603 10.7565 9.56188 10.9084L9.70149 10.7652C9.46795 10.5375 9.08971 10.5376 8.85619 10.7652L8.99579 10.9084ZM8.99579 11.4563C8.84135 11.3057 8.84136 11.059 8.99579 10.9084L8.85619 10.7652C8.62122 10.9942 8.62123 11.3704 8.85618 11.5995L8.99579 11.4563ZM10.5849 13.0113L8.99593 11.4564L8.85605 11.5993L10.4451 13.1543L10.5849 13.0113Z",fill:"#15DAC2"})]}),jsxRuntimeExports.jsx("span",{children:"选择题"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{sme("demo")},children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M13.334 6V3.33333H2.66732V6H13.334ZM13.334 7.33333H2.66732V12.6667H13.334V7.33333ZM2.00065 2H14.0007C14.3689 2 14.6673 2.29848 14.6673 2.66667V13.3333C14.6673 13.7015 14.3689 14 14.0007 14H2.00065C1.63246 14 1.33398 13.7015 1.33398 13.3333V2.66667C1.33398 2.29848 1.63246 2 2.00065 2ZM3.33398 8H5.33398V11.3333H3.33398V8ZM3.33398 4H4.66732V5.33333H3.33398V4ZM6.00065 4H7.33398V5.33333H6.00065V4Z",fill:"#7251F7"})}),jsxRuntimeExports.jsx("span",{children:"示例演示"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{sme("codingTest")},children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M10 2.66634H3.33333V13.333H12.6667V5.33301H10V2.66634ZM2 1.99421C2 1.62904 2.29833 1.33301 2.66567 1.33301H10.6667L13.9998 4.66634L14 13.9947C14 14.3656 13.7034 14.6663 13.3377 14.6663H2.66227C2.29651 14.6663 2 14.3628 2 14.0051V1.99421ZM11.7713 7.99967L9.4142 10.3567L8.4714 9.41387L9.8856 7.99967L8.4714 6.58546L9.4142 5.64265L11.7713 7.99967ZM4.22877 7.99967L6.58579 5.64265L7.5286 6.58546L6.11438 7.99967L7.5286 9.41387L6.58579 10.3567L4.22877 7.99967Z",fill:"#FB973C"})}),jsxRuntimeExports.jsx("span",{children:"活动编码"})]})]})]})]})},ChangeMenu=Ff=>{const{editor:kh,data:x_}=Ff;x_.pos+1;const B_=()=>{const{range:$P}=x_;kh==null||kh.chain().deleteRange($P).hideTip().run()},$_=()=>{const $P=kh==null?void 0:kh.view.nodeDOM(x_.pos),zP="text/html",eme=new Blob([$P==null?void 0:$P.outerHTML],{type:zP}),tme=[new ClipboardItem({[zP]:eme})];navigator.clipboard.write(tme),kh==null||kh.commands.hideTip()};return jsxRuntimeExports.jsxs("div",{className:"tiptap-changemenu",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-changemenu-item tiptap-changemenu-item-del",onClick:B_,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M11.332 3.99967H14.6654V5.33301H13.332V13.9997C13.332 14.3679 13.0336 14.6663 12.6654 14.6663H3.33203C2.96384 14.6663 2.66536 14.3679 2.66536 13.9997V5.33301H1.33203V3.99967H4.66536V1.99967C4.66536 1.63149 4.96384 1.33301 5.33203 1.33301H10.6654C11.0336 1.33301 11.332 1.63149 11.332 1.99967V3.99967ZM11.9987 5.33301H3.9987V13.333H11.9987V5.33301ZM5.9987 7.33301H7.33203V11.333H5.9987V7.33301ZM8.66537 7.33301H9.9987V11.333H8.66537V7.33301ZM5.9987 2.66634V3.99967H9.9987V2.66634H5.9987Z"})}),jsxRuntimeExports.jsx("span",{children:"删除"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-changemenu-item",onClick:$_,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M4.66653 3.99967V1.99967C4.66653 1.63149 4.96501 1.33301 5.3332 1.33301H13.3332C13.7014 1.33301 13.9999 1.63149 13.9999 1.99967V11.333C13.9999 11.7012 13.7014 11.9997 13.3332 11.9997H11.3332V13.9991C11.3332 14.3676 11.0333 14.6663 10.662 14.6663H2.67111C2.30039 14.6663 2 14.3699 2 13.9991L2.00173 4.66692C2.0018 4.29841 2.30176 3.99967 2.67295 3.99967H4.66653ZM3.33495 5.33301L3.33346 13.333H9.99987V5.33301H3.33495ZM5.99987 3.99967H11.3332V10.6663H12.6665V2.66634H5.99987V3.99967Z",fill:"#999999"})}),jsxRuntimeExports.jsx("span",{children:"复制"})]})]})},Tip=Ff=>{const{editor:kh,emitter:x_}=Ff,[B_,$_]=React.useState(null),[$P,zP]=React.useState(null),[eme,tme]=React.useState(null),[nme,rme]=React.useState(null),[ime,ome]=React.useState({}),[ame,cme]=React.useState("add");return React.useEffect(()=>{if(!B_||!$P)return;const ume=tippy(B_,{placement:"bottom-start",content:$P,interactive:!0,trigger:"mouseenter focus click focusin",onTrigger(sme,lme){kh==null||kh.commands.changeTip(!0)},onHide(sme){kh==null||kh.commands.changeTip(!1)}});return()=>{ume.unmount(),ume.destroy()}},[B_,$P]),React.useEffect(()=>{if(!eme||!nme)return;const ume=tippy(eme,{placement:"bottom-start",content:nme,interactive:!0,duration:[300,300],onTrigger(sme,lme){kh==null||kh.commands.changeTip(!0)},onHide(sme){kh==null||kh.commands.changeTip(!1)}});return()=>{ume.unmount(),ume.destroy()}},[eme,nme]),React.useEffect(()=>{x_==null||x_.on("hover",ume=>{ome({...ume})}),x_==null||x_.on("type",({type:ume})=>{ume==="add"?cme("add"):ume==="content"&&cme("content")})},[]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ame==="add"?jsxRuntimeExports.jsxs("div",{className:"floatingmenu-tip",ref:$_,children:[jsxRuntimeExports.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M6.5625 6.5625V9.9375C6.5625 10.0867 6.50324 10.2298 6.39775 10.3352C6.29226 10.4407 6.14918 10.5 6 10.5C5.85082 10.5 5.70774 10.4407 5.60225 10.3352C5.49676 10.2298 5.4375 10.0867 5.4375 9.9375V6.5625H2.0625C1.91332 6.5625 1.77024 6.50324 1.66475 6.39775C1.55926 6.29226 1.5 6.14918 1.5 6C1.5 5.85082 1.55926 5.70774 1.66475 5.60225C1.77024 5.49676 1.91332 5.4375 2.0625 5.4375H5.4375V2.0625C5.4375 1.91332 5.49676 1.77024 5.60225 1.66475C5.70774 1.55926 5.85082 1.5 6 1.5C6.14918 1.5 6.29226 1.55926 6.39775 1.66475C6.50324 1.77024 6.5625 1.91332 6.5625 2.0625V5.4375H9.9375C10.0867 5.4375 10.2298 5.49676 10.3352 5.60225C10.4407 5.70774 10.5 5.85082 10.5 6C10.5 6.14918 10.4407 6.29226 10.3352 6.39775C10.2298 6.50324 10.0867 6.5625 9.9375 6.5625H6.5625Z",fill:"#999999"})}),jsxRuntimeExports.jsx("div",{ref:zP,children:jsxRuntimeExports.jsx(Menu,{editor:kh,data:ime})})]}):jsxRuntimeExports.jsxs("div",{className:"floatingmenu-tip",ref:tme,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.07432 2.59277C5.40059 2.59277 5.72366 2.65704 6.02509 2.78189C6.32652 2.90675 6.60041 3.08975 6.83111 3.32046C7.06181 3.55116 7.24482 3.82505 7.36968 4.12648C7.49453 4.42791 7.5588 4.75098 7.5588 5.07725V7.56173H5.07432C4.74805 7.56173 4.42498 7.49746 4.12355 7.37261C3.82212 7.24775 3.54824 7.06474 3.31753 6.83404C3.08683 6.60333 2.90382 6.32945 2.77896 6.02802C2.65411 5.72659 2.58984 5.40352 2.58984 5.07725C2.58984 4.75098 2.65411 4.42791 2.77896 4.12648C2.90382 3.82505 3.08683 3.55116 3.31753 3.32046C3.54824 3.08975 3.82212 2.90675 4.12355 2.78189C4.42498 2.65704 4.74805 2.59277 5.07432 2.59277ZM6.68192 6.68485V5.07725C6.68192 4.7593 6.58764 4.44848 6.41099 4.18411C6.23435 3.91974 5.98327 3.71369 5.68952 3.59202C5.39577 3.47034 5.07254 3.43851 4.76069 3.50054C4.44885 3.56257 4.1624 3.71568 3.93757 3.9405C3.71275 4.16533 3.55964 4.45178 3.49761 4.76362C3.43558 5.07547 3.46741 5.3987 3.58909 5.69245C3.71076 5.9862 3.91682 6.23728 4.18118 6.41392C4.44555 6.59057 4.75637 6.68485 5.07432 6.68485H6.68192ZM10.9201 2.59277C11.2464 2.59277 11.5695 2.65704 11.8709 2.78189C12.1723 2.90675 12.4462 3.08975 12.6769 3.32046C12.9076 3.55116 13.0906 3.82505 13.2155 4.12648C13.3404 4.42791 13.4046 4.75098 13.4046 5.07725C13.4046 5.40352 13.3404 5.72659 13.2155 6.02802C13.0906 6.32945 12.9076 6.60333 12.6769 6.83404C12.4462 7.06474 12.1723 7.24775 11.8709 7.37261C11.5695 7.49746 11.2464 7.56173 10.9201 7.56173H8.43567V5.07725C8.43567 4.75098 8.49993 4.42791 8.62479 4.12648C8.74965 3.82505 8.93265 3.55116 9.16336 3.32046C9.39406 3.08975 9.66795 2.90675 9.96938 2.78189C10.2708 2.65704 10.5939 2.59277 10.9201 2.59277ZM9.31254 6.68485H10.9201C11.2381 6.68485 11.5489 6.59057 11.8133 6.41392C12.0777 6.23728 12.2837 5.9862 12.4054 5.69245C12.5271 5.3987 12.5589 5.07547 12.4969 4.76362C12.4348 4.45178 12.2817 4.16533 12.0569 3.9405C11.8321 3.71568 11.5456 3.56257 11.2338 3.50054C10.9219 3.43851 10.5987 3.47034 10.3049 3.59202C10.0112 3.71369 9.76012 3.91974 9.58347 4.18411C9.40683 4.44848 9.31254 4.7593 9.31254 5.07725V6.68485ZM5.07432 13.4076C4.4154 13.4076 3.78346 13.1458 3.31753 12.6799C2.8516 12.2139 2.58984 11.582 2.58984 10.9231C2.58984 10.2642 2.8516 9.63222 3.31753 9.16629C3.78346 8.70036 4.4154 8.4386 5.07432 8.4386H7.5588V10.9231C7.5588 11.2493 7.49453 11.5724 7.36968 11.8738C7.24482 12.1753 7.06181 12.4492 6.83111 12.6799C6.60041 12.9106 6.32652 13.0936 6.02509 13.2184C5.72366 13.3433 5.40059 13.4076 5.07432 13.4076ZM6.68192 9.31547H5.07432C4.75637 9.31547 4.44555 9.40976 4.18118 9.5864C3.91682 9.76305 3.71076 10.0141 3.58909 10.3079C3.46741 10.6016 3.43558 10.9249 3.49761 11.2367C3.55964 11.5485 3.71275 11.835 3.93757 12.0598C4.1624 12.2847 4.44885 12.4378 4.76069 12.4998C5.07254 12.5618 5.39577 12.53 5.68952 12.4083C5.98327 12.2866 6.23435 12.0806 6.41099 11.8162C6.58764 11.5518 6.68192 11.241 6.68192 10.9231V9.31547ZM10.9201 13.4076C10.5939 13.4076 10.2708 13.3433 9.96938 13.2184C9.66795 13.0936 9.39406 12.9106 9.16336 12.6799C8.93265 12.4492 8.74965 12.1753 8.62479 11.8738C8.49993 11.5724 8.43567 11.2493 8.43567 10.9231V8.4386H10.9201C11.5791 8.4386 12.211 8.70036 12.6769 9.16629C13.1429 9.63222 13.4046 10.2642 13.4046 10.9231C13.4046 11.582 13.1429 12.2139 12.6769 12.6799C12.211 13.1458 11.5791 13.4076 10.9201 13.4076ZM9.31254 9.31547V10.9231C9.31254 11.241 9.40683 11.5518 9.58347 11.8162C9.76012 12.0806 10.0112 12.2866 10.3049 12.4083C10.5987 12.53 10.9219 12.5618 11.2338 12.4998C11.5456 12.4378 11.8321 12.2847 12.0569 12.0598C12.2817 11.835 12.4348 11.5485 12.4969 11.2367C12.5589 10.9249 12.5271 10.6016 12.4054 10.3079C12.2837 10.0141 12.0777 9.76305 11.8133 9.5864C11.5489 9.40976 11.2381 9.31547 10.9201 9.31547H9.31254Z",fill:"#999999"})}),jsxRuntimeExports.jsx("div",{ref:rme,children:jsxRuntimeExports.jsx(ChangeMenu,{editor:kh,data:ime})})]})})};class EventEmitter{constructor(){p0e(this,"callbacks",{})}on(kh,x_){return this.callbacks[kh]||(this.callbacks[kh]=[]),this.callbacks[kh].push(x_),this}emit(kh,...x_){const B_=this.callbacks[kh];return B_&&B_.forEach($_=>$_.apply(this,x_)),this}off(kh,x_){const B_=this.callbacks[kh];return B_&&(x_?this.callbacks[kh]=B_.filter($_=>$_!==x_):delete this.callbacks[kh]),this}removeAllListeners(){this.callbacks={}}}const allowTypes=["paragraph","heading","horizontalRule","blockquote","codeBlock","image"];class Handle{constructor(kh,x_,B_,$_=[]){p0e(this,"editor");p0e(this,"tippy");p0e(this,"component");p0e(this,"tippyOptions");p0e(this,"ignoreType");p0e(this,"isShow");p0e(this,"emitter");p0e(this,"lastPos",null);p0e(this,"prevent",!1);this.editor=kh,this.tippy=null,this.component=x_,this.tippyOptions=B_,this.ignoreType=$_,this.isShow=!1,this.emitter=new EventEmitter}build(){return new ReactRenderer(this.component,{editor:this.editor,props:{editor:this.editor,emitter:this.emitter}}).element}createTippy(kh=!1){var B_,$_,$P;if(!kh&&this.tippy)return;const x_=this.build();this.tippy=tippy(document.body,{duration:0,getReferenceClientRect:null,content:x_,interactive:!0,trigger:"manual",placement:"left-start",hideOnClick:"toggle",...this.tippyOptions}),($P=($_=(B_=this.editor)==null?void 0:B_.view)==null?void 0:$_.dom.parentElement)==null||$P.addEventListener("mouseleave",this.mouseLeave.bind(this))}mouseLeave(){setTimeout(()=>{this.hide()},10)}show(){var kh;this.prevent||((kh=this.tippy)==null||kh.show(),this.isShow=!0)}hide(){var kh;this.prevent||((kh=this.tippy)==null||kh.hide(),this.lastPos=null,this.isShow=!1)}setProps(kh){var x_;(x_=this.tippy)==null||x_.setProps(kh)}setPrevent(kh){this.prevent=kh}move(kh,x_){var ome;if(this.prevent)return;this.createTippy();const{state:B_}=kh,{doc:$_,selection:$P}=B_,zP=kh==null?void 0:kh.posAtCoords({left:x_==null?void 0:x_.clientX,top:x_==null?void 0:x_.clientY});if(!zP)return!1;const{pos:eme,inside:tme}=zP;let nme=!1,rme=!0;const ime=(ome=document.getElementById("ylz-editor-container"))==null?void 0:ome.getBoundingClientRect();$_.descendants((ame,cme,ume,sme)=>{if(eme>=cme&&eme<cme+ame.nodeSize){if(eme!==this.lastPos){this.lastPos=eme,this.emitter.emit("hover",{node:ame,pos:cme,range:{from:cme,to:cme+ame.nodeSize}});const lme=posToDOMRect(kh,cme,cme+ame.nodeSize);ame.type.name==="horizontalRule"?((lme.top-10<((ime==null?void 0:ime.top)||0)||lme.top+6>((ime==null?void 0:ime.bottom)||0))&&(nme=!0),this.setProps({getReferenceClientRect:()=>({...lme,top:lme.top-10})})):((lme.top+6<((ime==null?void 0:ime.top)||0)||lme.top+22>((ime==null?void 0:ime.bottom)||0))&&(nme=!0),this.setProps({getReferenceClientRect:()=>({...lme,top:lme.top+6})}))}else rme=!1;ame.type.name!=="paragraph"?this.emitter.emit("type",{type:"content"}):this.emitter.emit("type",{type:"add"}),allowTypes.includes(ame.type.name)||(nme=!0),this.ignoreType.includes(ame.type.name)&&(nme=!0)}return!1}),rme&&(nme?this.hide():this.show())}destroy(){var kh,x_,B_,$_;(kh=this.tippy)==null||kh.destroy(),($_=(B_=(x_=this.editor)==null?void 0:x_.view)==null?void 0:B_.dom.parentElement)==null||$_.removeEventListener("mouseleave",this.mouseLeave),this.tippy=null,this.isShow=!1,this.lastPos=null}}const FloatingMenu=Extension.create({name:"floatingMenu",addOptions(){return{pluginKey:this.name,tip:null}},onBeforeCreate(){this.options.tip=new Handle(this.editor,Tip,{},["title","pdf","active"])},addCommands(){return{showTip:()=>()=>{var Ff,kh,x_;return(x_=(kh=(Ff=this.options)==null?void 0:Ff.tip)==null?void 0:kh.tippy)==null||x_.show(),!0},hideTip:()=>()=>{var Ff,kh,x_;return(x_=(kh=(Ff=this.options)==null?void 0:Ff.tip)==null?void 0:kh.tippy)==null||x_.hide(),!0},changeTip:(Ff=!0)=>()=>{var kh;return(kh=this.options.tip)==null||kh.setPrevent(Ff),!0}}},addProseMirrorPlugins(){return[FloatingMenuPlugin({editor:this.editor,...this.options})]}}),inputRegex=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,Image$1=Node$1.create({name:"image",addOptions(){return{oss:"",inline:!1,allowBase64:!1,HTMLAttributes:{class:"tiptap-image"}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:Ff}){return["img",mergeAttributes(this.options.HTMLAttributes,Ff)]},addCommands(){return{setImage:Ff=>({commands:kh})=>kh.insertContent({type:this.name,attrs:Ff})}},addKeyboardShortcuts(){return{"Mod-v":()=>{var kh,x_;const Ff=this;(x_=(kh=navigator==null?void 0:navigator.clipboard)==null?void 0:kh.read())==null||x_.then(async B_=>{var $_;for(const $P of B_)for(const zP of $P==null?void 0:$P.types)if(zP!=null&&zP.includes("image")){const eme=await $P.getType(zP),tme=new Date().getTime(),nme=new File([eme],tme.toString().substring(0,4)),rme=new FormData;rme.append("file",nme),upload({url:($_=Ff.options)==null?void 0:$_.oss,file:rme,ext:"png"}).then(ime=>{if(ime!=null&&ime.url)return Ff.editor.commands.setImage({src:ime==null?void 0:ime.url})})}}).catch(B_=>{console.error("获取剪切板内容失败:",B_)})}}},addInputRules(){return[nodeInputRule({find:inputRegex,type:this.type,getAttributes:Ff=>{const[,,kh,x_,B_]=Ff;return{src:x_,alt:kh,title:B_}}})]}});function findSuggestionMatch(Ff){var kh;const{char:x_,allowSpaces:B_,allowedPrefixes:$_,startOfLine:$P,$position:zP}=Ff,eme=escapeForRegEx(x_),tme=new RegExp(`\\s${eme}$`),nme=$P?"^":"",rme=B_?new RegExp(`${nme}${eme}.*?(?=\\s${eme}|$)`,"gm"):new RegExp(`${nme}(?:^)?${eme}[^\\s${eme}]*`,"gm"),ime=((kh=zP.nodeBefore)===null||kh===void 0?void 0:kh.isText)&&zP.nodeBefore.text;if(!ime)return null;const ome=zP.pos-ime.length,ame=Array.from(ime.matchAll(rme)).pop();if(!ame||ame.input===void 0||ame.index===void 0)return null;const cme=ame.input.slice(Math.max(0,ame.index-1),ame.index),ume=new RegExp(`^[${$_==null?void 0:$_.join("")}\0]?$`).test(cme);if($_!==null&&!ume)return null;const sme=ome+ame.index;let lme=sme+ame[0].length;return B_&&tme.test(ime.slice(lme-1,lme+1))&&(ame[0]+=" ",lme+=1),sme<zP.pos&&lme>=zP.pos?{range:{from:sme,to:lme},query:ame[0].slice(x_.length),text:ame[0]}:null}const SuggestionPluginKey=new PluginKey("suggestion");function Suggestion({pluginKey:Ff=SuggestionPluginKey,editor:kh,char:x_="@",allowSpaces:B_=!1,allowedPrefixes:$_=[" "],startOfLine:$P=!1,decorationTag:zP="span",decorationClass:eme="suggestion",command:tme=()=>null,items:nme=()=>[],render:rme=()=>({}),allow:ime=()=>!0,findSuggestionMatch:ome=findSuggestionMatch}){let ame;const cme=rme==null?void 0:rme(),ume=new Plugin({key:Ff,view(){return{update:async(sme,lme)=>{var dme,fme,pme,hme,mme,_me,gme;const vme=(dme=this.key)===null||dme===void 0?void 0:dme.getState(lme),Sme=(fme=this.key)===null||fme===void 0?void 0:fme.getState(sme.state),Eme=vme.active&&Sme.active&&vme.range.from!==Sme.range.from,bme=!vme.active&&Sme.active,Rme=vme.active&&!Sme.active,Ome=!bme&&!Rme&&vme.query!==Sme.query,Pme=bme||Eme,Lme=Ome&&!Eme,Mme=Rme||Eme;if(!Pme&&!Lme&&!Mme)return;const yme=Mme&&!Pme?vme:Sme,kme=sme.dom.querySelector(`[data-decoration-id="${yme.decorationId}"]`);ame={editor:kh,range:yme.range,query:yme.query,text:yme.text,items:[],command:Tme=>{tme({editor:kh,range:yme.range,props:Tme})},decorationNode:kme,clientRect:kme?()=>{var Tme;const{decorationId:Dme}=(Tme=this.key)===null||Tme===void 0?void 0:Tme.getState(kh.state),Fme=sme.dom.querySelector(`[data-decoration-id="${Dme}"]`);return(Fme==null?void 0:Fme.getBoundingClientRect())||null}:null},Pme&&((pme=cme==null?void 0:cme.onBeforeStart)===null||pme===void 0||pme.call(cme,ame)),Lme&&((hme=cme==null?void 0:cme.onBeforeUpdate)===null||hme===void 0||hme.call(cme,ame)),(Lme||Pme)&&(ame.items=await nme({editor:kh,query:yme.query})),Mme&&((mme=cme==null?void 0:cme.onExit)===null||mme===void 0||mme.call(cme,ame)),Lme&&((_me=cme==null?void 0:cme.onUpdate)===null||_me===void 0||_me.call(cme,ame)),Pme&&((gme=cme==null?void 0:cme.onStart)===null||gme===void 0||gme.call(cme,ame))},destroy:()=>{var sme;ame&&((sme=cme==null?void 0:cme.onExit)===null||sme===void 0||sme.call(cme,ame))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(sme,lme,dme,fme){const{isEditable:pme}=kh,{composing:hme}=kh.view,{selection:mme}=sme,{empty:_me,from:gme}=mme,vme={...lme};if(vme.composing=hme,pme&&(_me||kh.view.composing)){(gme<lme.range.from||gme>lme.range.to)&&!hme&&!lme.composing&&(vme.active=!1);const Sme=ome({char:x_,allowSpaces:B_,allowedPrefixes:$_,startOfLine:$P,$position:mme.$from}),Eme=`id_${Math.floor(Math.random()*4294967295)}`;Sme&&ime({editor:kh,state:fme,range:Sme.range})?(vme.active=!0,vme.decorationId=lme.decorationId?lme.decorationId:Eme,vme.range=Sme.range,vme.query=Sme.query,vme.text=Sme.text):vme.active=!1}else vme.active=!1;return vme.active||(vme.decorationId=null,vme.range={from:0,to:0},vme.query=null,vme.text=null),vme}},props:{handleKeyDown(sme,lme){var dme;const{active:fme,range:pme}=ume.getState(sme.state);return fme&&((dme=cme==null?void 0:cme.onKeyDown)===null||dme===void 0?void 0:dme.call(cme,{view:sme,event:lme,range:pme}))||!1},decorations(sme){const{active:lme,range:dme,decorationId:fme}=ume.getState(sme);return lme?DecorationSet.create(sme.doc,[Decoration.inline(dme.from,dme.to,{nodeName:zP,class:eme,"data-decoration-id":fme})]):null}}});return ume}const normalClass="tiptap-menu-item-menus-item",lighClass="tiptap-menu-item-menus-item tiptap-menu-item-menus-light",SlashMenu=Ff=>{var vme;const kh=React.useContext(shareData),{editor:x_,emitter:B_}=Ff,[$_,$P]=React.useState(null),[zP,eme]=React.useState(null),[tme,nme]=React.useState({}),rme=React.useRef(null);React.useEffect(()=>{B_==null||B_.on("show",Sme=>{nme({...Sme})})},[]);const ime=((vme=tme==null?void 0:tme.range)==null?void 0:vme.from)+1||0,ome=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setParagraph().hideMenu().run()},ame=Sme=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setHeading({level:Sme}).hideMenu().run()},cme=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setCodeBlock().hideMenu().run()},ume=()=>{const Sme=document.createElement("input");Sme.type="file",Sme.accept="image/*",Sme.addEventListener("change",Eme=>{const bme=Eme.target.files[0],Rme=bme.size,Ome=512*1024;if(Rme>Ome)staticMethods.warning("图片大小不能超过512kb!");else{const Pme=new FormData;Pme.append("file",bme),upload({url:kh==null?void 0:kh.apiUrl,file:Pme,ext:bme==null?void 0:bme.name}).then(Lme=>{Lme!=null&&Lme.url&&(x_==null||x_.chain().focus(ime).deleteRange(tme.range).setImage({src:Lme==null?void 0:Lme.url}).hideMenu().run())}).catch(()=>{staticMethods.destroy(),staticMethods.error("图片上传失败")})}}),Sme.click()},sme=Sme=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).insertTable({rows:Sme.row,cols:Sme.col,withHeaderRow:!0}).hideMenu().run()},lme=(Sme=!1)=>{Sme?x_==null||x_.chain().focus(ime).deleteRange(tme.range).toggleOrderedList().hideMenu().run():x_==null||x_.chain().focus(ime).deleteRange(tme.range).toggleBulletList().hideMenu().run()},dme=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).showBubbleMenu({from:ime,to:ime}).hideMenu().run()},fme=Sme=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).hideMenu().run(),window.postMessage({type:Sme,value:{pos:ime}})},pme=()=>{hme()},hme=()=>{const Sme=document.createElement("input");Sme.type="file",Sme.accept=".pdf",Sme.addEventListener("change",Eme=>{const bme=Eme.target.files[0];if((bme==null?void 0:bme.type)!=="application/pdf"){staticMethods.destroy(),staticMethods.error("仅支持上传.pdf结尾的文件");return}if((bme==null?void 0:bme.size)>200*1024*1024){staticMethods.destroy(),staticMethods.error("上传文件不可超过200MB");return}const Rme=new FormData;Rme.append("file",bme),upload({url:kh==null?void 0:kh.apiUrl,file:Rme,ext:getFileSuffix(bme==null?void 0:bme.name)}).then(Ome=>{var Pme,Lme;(Lme=(Pme=x_==null?void 0:x_.chain().focus(ime))==null?void 0:Pme.deleteRange(tme.range).setPdf({pdfUrl:Ome==null?void 0:Ome.url}))==null||Lme.hideMenu().run()}).catch(()=>{staticMethods.destroy(),staticMethods.error("文件上传失败")})}),Sme.click()},mme=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setHorizontalRule().hideMenu().run()},_me=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setBlockquote().hideMenu().run()};React.useEffect(()=>{!$_||!zP||tippy($_,{placement:"right",content:zP,interactive:!0,duration:[300,300],interactiveBorder:10,interactiveDebounce:75,maxWidth:500})},[$_,zP]);const gme=window.innerHeight/2-30;return jsxRuntimeExports.jsxs("div",{className:"tiptap-menu tiptap-scroll",style:{maxHeight:gme,overflowY:"auto"},ref:rme,children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"基础"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-menus",children:[jsxRuntimeExports.jsx("div",{className:lighClass,"data-tip":"正文",onClick:ome,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 3.99984V13.9998H7.33398V3.99984H3.33398V2.6665H12.6673V3.99984H8.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"一级标题",onClick:()=>{ame(1)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732V7.33317H7.33398V2.6665H8.66732V13.3332ZM14.001 5.33317V13.3332H12.6677L12.6673 6.8025L11.334 7.15984V5.77984L13.001 5.33317H14.001Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"二级标题",onClick:()=>{ame(2)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2.66536 2.6665V7.33317H7.33203V2.6665H8.66536V13.3332H7.33203V8.6665H2.66536V13.3332H1.33203V2.6665H2.66536ZM12.332 5.33317C13.7128 5.33317 14.832 6.45246 14.832 7.83317C14.832 8.40477 14.6402 8.93157 14.3174 9.35264L14.2188 9.4733L12.0216 11.9998H14.6654V13.3332H9.9987L9.99823 12.2958L13.2125 8.59857C13.3908 8.3937 13.4987 8.12604 13.4987 7.83317C13.4987 7.18884 12.9764 6.6665 12.332 6.6665C11.7199 6.6665 11.2179 7.1379 11.1692 7.7375L11.1654 7.83317H9.83203C9.83203 6.45246 10.9513 5.33317 12.332 5.33317Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"三级标题",onClick:()=>{ame(3)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33317L14.6663 6.6665L12.9963 8.5885C14.0555 8.87877 14.834 9.84837 14.834 10.9998C14.834 12.3806 13.7147 13.4998 12.334 13.4998C11.1167 13.4998 10.1025 12.6298 9.87959 11.4776L11.1887 11.2233C11.2929 11.7607 11.7661 12.1665 12.334 12.1665C12.9783 12.1665 13.5007 11.6442 13.5007 10.9998C13.5007 10.3555 12.9783 9.83317 12.334 9.83317C12.1433 9.83317 11.9633 9.8789 11.8044 9.96004L10.9335 8.92864L12.8996 6.6665H10.0007V5.33317H14.6673ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"四级标题",onClick:()=>{ame(4)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732V7.33317H7.33398V2.6665H8.66732V13.3332ZM14.6673 5.33317V10.6665H15.6673V11.9998H14.6673V13.3332H13.334V11.9998H9.66732V11.1065L13.0007 5.33317H14.6673ZM13.334 7.42184L11.4607 10.6665H13.334V7.42184Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"五级标题",onClick:()=>{ame(5)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33317V6.6665H11.7853L11.4757 8.4237C11.6963 8.36464 11.9281 8.33317 12.1673 8.33317C13.6401 8.33317 14.834 9.5271 14.834 10.9998C14.834 12.4726 13.6401 13.6665 12.1673 13.6665C10.9495 13.6665 9.92245 12.8502 9.60325 11.735L10.8854 11.3678C11.0451 11.9252 11.5586 12.3332 12.1673 12.3332C12.9037 12.3332 13.5007 11.7362 13.5007 10.9998C13.5007 10.2634 12.9037 9.6665 12.1673 9.6665C11.7469 9.6665 11.372 9.86104 11.1276 10.165L9.92085 9.56244L10.6673 5.33317H14.6673ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"六级标题",onClick:()=>{ame(6)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0653 5.33317L12.3333 8.33317C13.8067 8.33317 15.0007 9.5271 15.0007 10.9998C15.0007 12.4726 13.8067 13.6665 12.334 13.6665C10.8613 13.6665 9.66732 12.4726 9.66732 10.9998C9.66732 10.5089 9.79998 10.049 10.0314 9.6539L12.526 5.33317H14.0653ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732ZM12.334 9.6665C11.5976 9.6665 11.0007 10.2634 11.0007 10.9998C11.0007 11.7362 11.5976 12.3332 12.334 12.3332C13.0704 12.3332 13.6673 11.7362 13.6673 10.9998C13.6673 10.2634 13.0704 9.6665 12.334 9.6665Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"无序列表",onClick:()=>{lme(!1)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 2.66683H14V4.00016H5.33333V2.66683ZM3 4.3335C2.44771 4.3335 2 3.88578 2 3.3335C2 2.78121 2.44771 2.3335 3 2.3335C3.55229 2.3335 4 2.78121 4 3.3335C4 3.88578 3.55229 4.3335 3 4.3335ZM3 9.00016C2.44771 9.00016 2 8.55243 2 8.00016C2 7.4479 2.44771 7.00016 3 7.00016C3.55229 7.00016 4 7.4479 4 8.00016C4 8.55243 3.55229 9.00016 3 9.00016ZM3 13.6002C2.44771 13.6002 2 13.1524 2 12.6002C2 12.0479 2.44771 11.6002 3 11.6002C3.55229 11.6002 4 12.0479 4 12.6002C4 13.1524 3.55229 13.6002 3 13.6002ZM5.33333 7.3335H14V8.66683H5.33333V7.3335ZM5.33333 12.0002H14V13.3335H5.33333V12.0002Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"有序列表",onClick:()=>{lme(!0)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 2.66667H14V4H5.33333V2.66667ZM3.33333 2V4H4V4.66667H2V4H2.66667V2.66667H2V2H3.33333ZM2 9.33333V7.66667H3.33333V7.33333H2V6.66667H4V8.33333H2.66667V8.66667H4V9.33333H2ZM3.33333 13H2V12.3333H3.33333V12H2V11.3333H4V14H2V13.3333H3.33333V13ZM5.33333 7.33333H14V8.66667H5.33333V7.33333ZM5.33333 12H14V13.3333H5.33333V12Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"链接",onClick:dme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M12.2422 10.357L11.2993 9.41423L12.2422 8.47143C13.5439 7.1697 13.5439 5.05914 12.2422 3.7574C10.9404 2.45565 8.82988 2.45565 7.52815 3.7574L6.58533 4.70021L5.64253 3.7574L6.58533 2.81459C8.40781 0.992142 11.3625 0.992142 13.185 2.81459C15.0074 4.63704 15.0074 7.59183 13.185 9.41423L12.2422 10.357ZM10.3565 12.2427L9.41375 13.1855C7.59135 15.008 4.63655 15.008 2.8141 13.1855C0.991654 11.363 0.991654 8.4083 2.8141 6.58582L3.75691 5.64302L4.69971 6.58582L3.75691 7.52863C2.45516 8.83036 2.45516 10.941 3.75691 12.2427C5.05865 13.5444 7.16921 13.5444 8.47095 12.2427L9.41375 11.2999L10.3565 12.2427ZM9.88515 5.17161L10.8279 6.11442L6.11393 10.8285L5.17112 9.88563L9.88515 5.17161Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"分割线",onClick:mme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M1.33398 7.3335H2.66732V8.66683H1.33398V7.3335ZM4.00065 7.3335H12.0007V8.66683H4.00065V7.3335ZM13.334 7.3335H14.6673V8.66683H13.334V7.3335Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"引用",onClick:_me,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0007 2.00049C14.3689 2.00049 14.6673 2.29897 14.6673 2.66715V12.0005C14.6673 12.3687 14.3689 12.6672 14.0007 12.6672H4.30398L1.33398 15.0005V2.66715C1.33398 2.29897 1.63246 2.00049 2.00065 2.00049H14.0007ZM13.334 3.33382H2.66732V12.2572L3.84287 11.3338H13.334V3.33382ZM7.01085 4.94156L7.30838 5.40075C6.19666 6.00229 6.2161 6.96842 6.2161 7.17682C6.3195 7.16255 6.42803 7.16069 6.53556 7.17069C7.13698 7.22642 7.61105 7.72016 7.61105 8.33382C7.61105 8.97816 7.08872 9.50049 6.44437 9.50049C6.08668 9.50049 5.74464 9.33702 5.52846 9.10749C5.18504 8.74295 5.00065 8.33382 5.00065 7.67062C5.00065 6.50411 5.81948 5.45838 7.01085 4.94156ZM10.3442 4.94156L10.6417 5.40075C9.52998 6.00229 9.54945 6.96842 9.54945 7.17682C9.65285 7.16255 9.76138 7.16069 9.86892 7.17069C10.4703 7.22642 10.9444 7.72016 10.9444 8.33382C10.9444 8.97816 10.4221 9.50049 9.77772 9.50049C9.42005 9.50049 9.07798 9.33702 8.86178 9.10749C8.51838 8.74295 8.33398 8.33382 8.33398 7.67062C8.33398 6.50411 9.15285 5.45838 10.3442 4.94156Z"})})})]})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"常用"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:cme,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M16 8L12.2287 11.7713L11.2859 10.8284L14.1144 8L11.2859 5.17157L12.2287 4.22877L16 8ZM1.88562 8L4.71405 10.8284L3.77123 11.7713L0 8L3.77123 4.22877L4.71405 5.17157L1.88562 8ZM6.52563 14H5.10673L9.4744 2H10.8933L6.52563 14Z",fill:"#14C3FA"})}),jsxRuntimeExports.jsx("span",{children:"可执行代码块"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:ume,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M1.99518 14C1.63002 14 1.33398 13.7034 1.33398 13.3377V2.66227C1.33398 2.29651 1.63752 2 1.99518 2H14.0061C14.3713 2 14.6673 2.29663 14.6673 2.66227V13.3377C14.6673 13.7035 14.3638 14 14.0061 14H1.99518ZM13.334 10V3.33333H2.66732V12.6667L9.33398 6L13.334 10ZM13.334 11.8856L9.33398 7.8856L4.55294 12.6667H13.334V11.8856ZM5.33398 7.33333C4.5976 7.33333 4.00065 6.7364 4.00065 6C4.00065 5.26362 4.5976 4.66667 5.33398 4.66667C6.07036 4.66667 6.66732 5.26362 6.66732 6C6.66732 6.7364 6.07036 7.33333 5.33398 7.33333Z",fill:"#FBC12D"})}),jsxRuntimeExports.jsx("span",{children:"图片"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",ref:$P,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M9.33333 6.66667H6.66667V9.33333H9.33333V6.66667ZM10.6667 6.66667V9.33333H12.6667V6.66667H10.6667ZM9.33333 12.6667V10.6667H6.66667V12.6667H9.33333ZM10.6667 12.6667H12.6667V10.6667H10.6667V12.6667ZM9.33333 3.33333H6.66667V5.33333H9.33333V3.33333ZM10.6667 3.33333V5.33333H12.6667V3.33333H10.6667ZM5.33333 6.66667H3.33333V9.33333H5.33333V6.66667ZM5.33333 12.6667V10.6667H3.33333V12.6667H5.33333ZM5.33333 3.33333H3.33333V5.33333H5.33333V3.33333ZM2.66667 2H13.3333C13.7015 2 14 2.29848 14 2.66667V13.3333C14 13.7015 13.7015 14 13.3333 14H2.66667C2.29848 14 2 13.7015 2 13.3333V2.66667C2 2.29848 2.29848 2 2.66667 2Z",fill:"#2DDA9C"})}),jsxRuntimeExports.jsx("span",{children:"表格"}),jsxRuntimeExports.jsx("div",{ref:eme,children:jsxRuntimeExports.jsx(TableSelect,{onClick:sme})})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:pme,children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M2.66667 2.6H7.4V5C7.4 5.68856 7.9781 6.26667 8.66667 6.26667H11.0667V6.76667C11.0667 7.08855 11.3448 7.36667 11.6667 7.36667C11.9886 7.36667 12.2667 7.08855 12.2667 6.76667V4.66667C12.2667 4.50327 12.1865 4.34951 12.1165 4.24453L12.111 4.23629L12.104 4.22929L9.43738 1.56262C9.31201 1.43725 9.14874 1.4 9 1.4H2.66667C1.9781 1.4 1.4 1.9781 1.4 2.66667V13.3333C1.4 14.0219 1.9781 14.6 2.66667 14.6H9.1C9.4219 14.6 9.7 14.3219 9.7 14C9.7 13.6781 9.4219 13.4 9.1 13.4H2.66667C2.6394 13.4 2.62444 13.3913 2.61655 13.3835C2.60866 13.3756 2.6 13.3606 2.6 13.3333V2.66667C2.6 2.6394 2.60866 2.62444 2.61655 2.61655C2.62444 2.60866 2.6394 2.6 2.66667 2.6ZM8.75817 2.6L11.0667 4.94101V5.06667H8.66667C8.6394 5.06667 8.62444 5.05802 8.61655 5.05013C8.60866 5.04223 8.6 5.02727 8.6 5V2.6H8.75817Z",fill:"#3D79EE",stroke:"#3D79EE",strokeWidth:"0.2"}),jsxRuntimeExports.jsx("path",{d:"M5.19934 8.33301C4.99934 8.33301 4.89934 8.36635 4.79934 8.43301C4.69934 8.49968 4.66602 8.63301 4.66602 8.79968V12.033C4.66602 12.133 4.69934 12.233 4.76602 12.333C4.83267 12.3997 4.93267 12.4664 5.09934 12.4664C5.26602 12.4664 5.36602 12.3997 5.43267 12.333C5.49934 12.2664 5.53267 12.1664 5.53267 12.033V11.033H6.03267C6.93267 11.033 7.43267 10.5664 7.43267 9.66635C7.43267 9.23301 7.29934 8.86635 7.06602 8.66635C6.83267 8.43301 6.49934 8.33301 6.03267 8.33301H5.19934ZM6.56602 9.66635C6.56602 9.86635 6.53267 10.033 6.43267 10.0997C6.36602 10.1664 6.19934 10.233 5.99934 10.233H5.49934V9.13301H5.99934C6.19934 9.13301 6.33267 9.16635 6.43267 9.26635C6.53267 9.33301 6.56602 9.46635 6.56602 9.66635ZM10.4327 8.93301C10.2993 8.73301 10.0993 8.59968 9.89934 8.46635C9.66602 8.39968 9.39934 8.33301 9.09934 8.33301H8.13267C7.99934 8.33301 7.86602 8.33301 7.76602 8.46635C7.73267 8.53301 7.69934 8.63301 7.69934 8.76635V11.9997C7.69934 12.133 7.73267 12.233 7.76602 12.2997C7.86602 12.433 7.99934 12.433 8.13267 12.433H9.13267C9.43267 12.433 9.66602 12.3664 9.89934 12.2664C10.0993 12.1664 10.2993 11.9997 10.4327 11.7997C10.566 11.5997 10.666 11.3997 10.7327 11.133C10.7993 10.8997 10.8327 10.633 10.8327 10.3664C10.8327 10.0997 10.7993 9.83301 10.7327 9.59968C10.666 9.36635 10.566 9.13301 10.4327 8.93301ZM9.76602 11.333C9.63267 11.533 9.43267 11.633 9.16602 11.633H8.56602V9.13301H8.99934C9.33267 9.13301 9.59934 9.23301 9.73267 9.43301C9.89934 9.63301 9.96602 9.96635 9.96602 10.3664C9.99934 10.7997 9.89934 11.0997 9.76602 11.333ZM13.2993 8.33301H11.6327C11.4993 8.33301 11.366 8.36635 11.2993 8.43301C11.1993 8.49968 11.166 8.63301 11.166 8.76635V12.033C11.166 12.133 11.1993 12.233 11.266 12.2997C11.3327 12.3997 11.4327 12.433 11.5993 12.433C11.7327 12.433 11.866 12.3997 11.9327 12.2997C11.966 12.233 12.0327 12.1664 12.0327 11.9997V10.6664H13.166C13.366 10.6664 13.5327 10.5664 13.566 10.3997C13.5993 10.2664 13.5993 10.1664 13.566 10.133C13.5327 10.0664 13.466 9.86635 13.166 9.86635H11.9993V9.09968H13.266C13.3993 9.09968 13.4993 9.06635 13.566 9.03301C13.6327 8.99968 13.6993 8.89968 13.6993 8.69968C13.7327 8.49968 13.566 8.33301 13.2993 8.33301Z",fill:"#3D79EE"})]}),jsxRuntimeExports.jsx("span",{children:"PDF"})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"实验活动"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{fme("choiceQuestion")},children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.11099 7.65258H3.02108C2.20928 7.65258 1.54883 6.99213 1.54883 6.18033V3.09042C1.54883 2.27861 2.20928 1.61816 3.02108 1.61816H6.11099C6.92279 1.61816 7.58324 2.27861 7.58324 3.09042V6.18033C7.58324 6.99213 6.92279 7.65258 6.11099 7.65258ZM3.02108 2.50274C2.69703 2.50274 2.4334 2.76637 2.4334 3.09042V6.18033C2.4334 6.50437 2.69703 6.76801 3.02108 6.76801H6.11099C6.43504 6.76801 6.69867 6.50437 6.69867 6.18033V3.09042C6.69867 2.76637 6.43504 2.50274 6.11099 2.50274H3.02108ZM6.11099 14.3808H3.02108C2.20928 14.3808 1.54883 13.7204 1.54883 12.9086V9.81867C1.54883 9.00687 2.20928 8.34642 3.02108 8.34642H6.11099C6.92279 8.34642 7.58324 9.00687 7.58324 9.81867V12.9086C7.58324 13.7204 6.92279 14.3808 6.11099 14.3808ZM3.02108 9.23099C2.69703 9.23099 2.4334 9.49463 2.4334 9.81867V12.9086C2.4334 13.2326 2.69703 13.4963 3.02108 13.4963H6.11099C6.43504 13.4963 6.69867 13.2326 6.69867 12.9086V9.81867C6.69867 9.49463 6.43504 9.23099 6.11099 9.23099H3.02108ZM9.88078 7.65259H12.9707C13.7825 7.65259 14.443 6.99214 14.4429 6.18033V3.09042C14.4429 2.27862 13.7825 1.61817 12.9707 1.61817H9.88078C9.069 1.61817 8.40853 2.27862 8.40853 3.09042V6.18033C8.40853 6.99214 9.069 7.65259 9.88078 7.65259ZM9.2931 3.09042C9.2931 2.76637 9.55675 2.50274 9.88078 2.50274H12.9707C13.2947 2.50274 13.5584 2.76637 13.5584 3.09042V6.18033C13.5584 6.50438 13.2947 6.76801 12.9707 6.76801H9.88078C9.55675 6.76801 9.2931 6.50438 9.2931 6.18033V3.09042ZM12.9756 14.3812H9.88572C9.07392 14.3812 8.41347 13.7208 8.41347 12.909V9.81911C8.41347 9.00731 9.07392 8.34685 9.88572 8.34685H12.9756C13.3836 8.34685 13.7592 8.50129 14.0332 8.78173C14.3006 9.05546 14.4479 9.4239 14.4479 9.81911V12.909C14.4479 13.7208 13.7874 14.3812 12.9756 14.3812ZM10.515 13.0828C10.7097 13.2726 11.026 13.2726 11.2207 13.0828H11.2207L13.9558 10.4037C14.1505 10.2139 14.1505 9.9024 13.9558 9.7126C13.7611 9.5228 13.4448 9.5228 13.2501 9.7126L10.8679 12.0462L9.63169 10.8368C9.43699 10.647 9.12068 10.647 8.92599 10.8368C8.73129 11.0266 8.73129 11.3381 8.92599 11.5279L10.515 13.0828Z",fill:"#15DAC2"}),jsxRuntimeExports.jsx("path",{d:"M14.4429 6.18033L14.3429 6.18033L14.3429 6.18034L14.4429 6.18033ZM14.0332 8.78173L13.9616 8.85161L13.9616 8.85161L14.0332 8.78173ZM14.4479 12.909L14.3479 12.909L14.3479 12.909L14.4479 12.909ZM11.2207 13.0828V12.9828H11.18L11.1509 13.0112L11.2207 13.0828ZM10.515 13.0828L10.4451 13.1543L10.4452 13.1544L10.515 13.0828ZM11.2207 13.0828V13.1828H11.2616L11.2907 13.1542L11.2207 13.0828ZM13.9558 10.4037L13.886 10.332L13.8859 10.3322L13.9558 10.4037ZM13.9558 9.7126L14.0256 9.64099L14.0256 9.64099L13.9558 9.7126ZM13.2501 9.7126L13.1803 9.64099L13.1802 9.64116L13.2501 9.7126ZM10.8679 12.0462L10.7979 12.1177L10.8679 12.1861L10.9378 12.1176L10.8679 12.0462ZM9.63169 10.8368L9.70162 10.7653L9.70149 10.7652L9.63169 10.8368ZM8.92599 10.8368L8.85619 10.7652L8.85619 10.7652L8.92599 10.8368ZM8.92599 11.5279L8.99593 11.4564L8.99579 11.4563L8.92599 11.5279ZM3.02108 7.75258H6.11099V7.55258H3.02108V7.75258ZM1.44883 6.18033C1.44883 7.04736 2.15405 7.75258 3.02108 7.75258V7.55258C2.26451 7.55258 1.64883 6.9369 1.64883 6.18033H1.44883ZM1.44883 3.09042V6.18033H1.64883V3.09042H1.44883ZM3.02108 1.51816C2.15405 1.51816 1.44883 2.22339 1.44883 3.09042H1.64883C1.64883 2.33384 2.26451 1.71816 3.02108 1.71816V1.51816ZM6.11099 1.51816H3.02108V1.71816H6.11099V1.51816ZM7.68324 3.09042C7.68324 2.22339 6.97802 1.51816 6.11099 1.51816V1.71816C6.86756 1.71816 7.48324 2.33384 7.48324 3.09042H7.68324ZM7.68324 6.18033V3.09042H7.48324V6.18033H7.68324ZM6.11099 7.75258C6.97802 7.75258 7.68324 7.04736 7.68324 6.18033H7.48324C7.48324 6.9369 6.86756 7.55258 6.11099 7.55258V7.75258ZM2.5334 3.09042C2.5334 2.8216 2.75226 2.60274 3.02108 2.60274V2.40274C2.6418 2.40274 2.3334 2.71114 2.3334 3.09042H2.5334ZM2.5334 6.18033V3.09042H2.3334V6.18033H2.5334ZM3.02108 6.66801C2.75226 6.66801 2.5334 6.44915 2.5334 6.18033H2.3334C2.3334 6.5596 2.6418 6.86801 3.02108 6.86801V6.66801ZM6.11099 6.66801H3.02108V6.86801H6.11099V6.66801ZM6.59867 6.18033C6.59867 6.44915 6.37981 6.66801 6.11099 6.66801V6.86801C6.49027 6.86801 6.79867 6.5596 6.79867 6.18033H6.59867ZM6.59867 3.09042V6.18033H6.79867V3.09042H6.59867ZM6.11099 2.60274C6.37981 2.60274 6.59867 2.8216 6.59867 3.09042H6.79867C6.79867 2.71114 6.49027 2.40274 6.11099 2.40274V2.60274ZM3.02108 2.60274H6.11099V2.40274H3.02108V2.60274ZM3.02108 14.4808H6.11099V14.2808H3.02108V14.4808ZM1.44883 12.9086C1.44883 13.7756 2.15405 14.4808 3.02108 14.4808V14.2808C2.26451 14.2808 1.64883 13.6652 1.64883 12.9086H1.44883ZM1.44883 9.81867V12.9086H1.64883V9.81867H1.44883ZM3.02108 8.24642C2.15405 8.24642 1.44883 8.95164 1.44883 9.81867H1.64883C1.64883 9.0621 2.26451 8.44642 3.02108 8.44642V8.24642ZM6.11099 8.24642H3.02108V8.44642H6.11099V8.24642ZM7.68324 9.81867C7.68324 8.95164 6.97802 8.24642 6.11099 8.24642V8.44642C6.86756 8.44642 7.48324 9.0621 7.48324 9.81867H7.68324ZM7.68324 12.9086V9.81867H7.48324V12.9086H7.68324ZM6.11099 14.4808C6.97802 14.4808 7.68324 13.7756 7.68324 12.9086H7.48324C7.48324 13.6652 6.86756 14.2808 6.11099 14.2808V14.4808ZM2.5334 9.81867C2.5334 9.54985 2.75226 9.33099 3.02108 9.33099V9.13099C2.6418 9.13099 2.3334 9.4394 2.3334 9.81867H2.5334ZM2.5334 12.9086V9.81867H2.3334V12.9086H2.5334ZM3.02108 13.3963C2.75226 13.3963 2.5334 13.1774 2.5334 12.9086H2.3334C2.3334 13.2879 2.6418 13.5963 3.02108 13.5963V13.3963ZM6.11099 13.3963H3.02108V13.5963H6.11099V13.3963ZM6.59867 12.9086C6.59867 13.1774 6.37981 13.3963 6.11099 13.3963V13.5963C6.49027 13.5963 6.79867 13.2879 6.79867 12.9086H6.59867ZM6.59867 9.81867V12.9086H6.79867V9.81867H6.59867ZM6.11099 9.33099C6.37981 9.33099 6.59867 9.54985 6.59867 9.81867H6.79867C6.79867 9.4394 6.49027 9.13099 6.11099 9.13099V9.33099ZM3.02108 9.33099H6.11099V9.13099H3.02108V9.33099ZM12.9707 7.55259H9.88078V7.75259H12.9707V7.55259ZM14.3429 6.18034C14.343 6.93691 13.7273 7.55259 12.9707 7.55259V7.75259C13.8377 7.75259 14.543 7.04736 14.5429 6.18033L14.3429 6.18034ZM14.3429 3.09042V6.18033H14.5429V3.09042H14.3429ZM12.9707 1.71817C13.7273 1.71817 14.3429 2.33385 14.3429 3.09042H14.5429C14.5429 2.22339 13.8377 1.51817 12.9707 1.51817V1.71817ZM9.88078 1.71817H12.9707V1.51817H9.88078V1.71817ZM8.50853 3.09042C8.50853 2.33385 9.12423 1.71817 9.88078 1.71817V1.51817C9.01377 1.51817 8.30853 2.22339 8.30853 3.09042H8.50853ZM8.50853 6.18033V3.09042H8.30853V6.18033H8.50853ZM9.88078 7.55259C9.12423 7.55259 8.50853 6.93691 8.50853 6.18033H8.30853C8.30853 7.04736 9.01377 7.75259 9.88078 7.75259V7.55259ZM9.88078 2.40274C9.50152 2.40274 9.1931 2.71114 9.1931 3.09042H9.3931C9.3931 2.82161 9.61198 2.60274 9.88078 2.60274V2.40274ZM12.9707 2.40274H9.88078V2.60274H12.9707V2.40274ZM13.6584 3.09042C13.6584 2.71115 13.35 2.40274 12.9707 2.40274V2.60274C13.2395 2.60274 13.4584 2.8216 13.4584 3.09042H13.6584ZM13.6584 6.18033V3.09042H13.4584V6.18033H13.6584ZM12.9707 6.86801C13.35 6.86801 13.6584 6.55961 13.6584 6.18033H13.4584C13.4584 6.44916 13.2395 6.66801 12.9707 6.66801V6.86801ZM9.88078 6.86801H12.9707V6.66801H9.88078V6.86801ZM9.1931 6.18033C9.1931 6.55961 9.50152 6.86801 9.88078 6.86801V6.66801C9.61198 6.66801 9.3931 6.44915 9.3931 6.18033H9.1931ZM9.1931 3.09042V6.18033H9.3931V3.09042H9.1931ZM9.88572 14.4812H12.9756V14.2812H9.88572V14.4812ZM8.31347 12.909C8.31347 13.776 9.01869 14.4812 9.88572 14.4812V14.2812C9.12915 14.2812 8.51347 13.6656 8.51347 12.909H8.31347ZM8.31347 9.81911V12.909H8.51347V9.81911H8.31347ZM9.88572 8.24685C9.01869 8.24685 8.31347 8.95208 8.31347 9.81911H8.51347C8.51347 9.06254 9.12915 8.44685 9.88572 8.44685V8.24685ZM12.9756 8.24685H9.88572V8.44685H12.9756V8.24685ZM14.1047 8.71185C13.8111 8.41129 13.4093 8.24685 12.9756 8.24685V8.44685C13.3579 8.44685 13.7073 8.59129 13.9616 8.85161L14.1047 8.71185ZM14.5479 9.81911C14.5479 9.39874 14.391 9.00493 14.1047 8.71185L13.9616 8.85161C14.2102 9.10599 14.3479 9.44906 14.3479 9.81911H14.5479ZM14.5479 12.909V9.81911H14.3479V12.909H14.5479ZM12.9756 14.4812C13.8427 14.4812 14.5479 13.776 14.5479 12.909L14.3479 12.909C14.3479 13.6656 13.7322 14.2812 12.9756 14.2812V14.4812ZM11.1509 13.0112C10.995 13.1631 10.7407 13.1631 10.5848 13.0112L10.4452 13.1544C10.6787 13.3821 11.057 13.3821 11.2905 13.1544L11.1509 13.0112ZM11.2207 12.9828H11.2207V13.1828H11.2207V12.9828ZM13.8859 10.3322L11.1508 13.0114L11.2907 13.1542L14.0258 10.4751L13.8859 10.3322ZM13.886 9.7842C14.0405 9.93476 14.0405 10.1815 13.886 10.332L14.0256 10.4753C14.2606 10.2462 14.2606 9.87004 14.0256 9.64099L13.886 9.7842ZM13.3199 9.7842C13.4758 9.63226 13.7302 9.63226 13.886 9.7842L14.0256 9.64099C13.7921 9.41333 13.4139 9.41333 13.1803 9.64099L13.3199 9.7842ZM10.9378 12.1176L13.3201 9.78404L13.1802 9.64116L10.7979 11.9748L10.9378 12.1176ZM9.56176 10.9083L10.7979 12.1177L10.9378 11.9747L9.70162 10.7653L9.56176 10.9083ZM8.99579 10.9084C9.15165 10.7565 9.40603 10.7565 9.56188 10.9084L9.70149 10.7652C9.46795 10.5375 9.08971 10.5376 8.85619 10.7652L8.99579 10.9084ZM8.99579 11.4563C8.84135 11.3057 8.84136 11.059 8.99579 10.9084L8.85619 10.7652C8.62122 10.9942 8.62123 11.3704 8.85618 11.5995L8.99579 11.4563ZM10.5849 13.0113L8.99593 11.4564L8.85605 11.5993L10.4451 13.1543L10.5849 13.0113Z",fill:"#15DAC2"})]}),jsxRuntimeExports.jsx("span",{children:"选择题"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{fme("demo")},children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M13.334 6V3.33333H2.66732V6H13.334ZM13.334 7.33333H2.66732V12.6667H13.334V7.33333ZM2.00065 2H14.0007C14.3689 2 14.6673 2.29848 14.6673 2.66667V13.3333C14.6673 13.7015 14.3689 14 14.0007 14H2.00065C1.63246 14 1.33398 13.7015 1.33398 13.3333V2.66667C1.33398 2.29848 1.63246 2 2.00065 2ZM3.33398 8H5.33398V11.3333H3.33398V8ZM3.33398 4H4.66732V5.33333H3.33398V4ZM6.00065 4H7.33398V5.33333H6.00065V4Z",fill:"#7251F7"})}),jsxRuntimeExports.jsx("span",{children:"示例演示"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{fme("codingTest")},children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M10 2.66634H3.33333V13.333H12.6667V5.33301H10V2.66634ZM2 1.99421C2 1.62904 2.29833 1.33301 2.66567 1.33301H10.6667L13.9998 4.66634L14 13.9947C14 14.3656 13.7034 14.6663 13.3377 14.6663H2.66227C2.29651 14.6663 2 14.3628 2 14.0051V1.99421ZM11.7713 7.99967L9.4142 10.3567L8.4714 9.41387L9.8856 7.99967L8.4714 6.58546L9.4142 5.64265L11.7713 7.99967ZM4.22877 7.99967L6.58579 5.64265L7.5286 6.58546L6.11438 7.99967L7.5286 9.41387L6.58579 10.3567L4.22877 7.99967Z",fill:"#FB973C"})}),jsxRuntimeExports.jsx("span",{children:"活动编码"})]})]})]})]})},build=(Ff,kh,x_)=>new ReactRenderer(Ff,{editor:kh,props:{editor:kh,emitter:x_}}).element,char="/",ignoreChar=["title"],Slash=Extension.create({name:"Slash",addOptions(){return{char,allowSpaces:!1,startOfLine:!0,render:void 0,tip:null,emitter:null,allow:Ff=>{const kh=Ff.editor.state.doc;let x_=!0;return Ff.editor.isFocused&&kh.nodesBetween(Ff.range.from,Ff.range.to,(B_,$_,$P)=>(ignoreChar.includes(B_.type.name)&&(x_=!1),!1)),x_}}},onBeforeCreate(){this.options.emitter=new EventEmitter,this.options.render=()=>({onBeforeStart:Ff=>{if(this.options.tip)return;const kh=build(SlashMenu,this.editor,this.options.emitter);this.options.tip=tippy(document.body,{getReferenceClientRect:null,content:kh,interactive:!0,trigger:"manual",placement:"bottom",offset:[85,10],duration:[300,300]})},onStart:Ff=>{var kh,x_,B_,$_;console.log((kh=Ff==null?void 0:Ff.clientRect)==null?void 0:kh.call(Ff)),(x_=this.options.tip)==null||x_.setProps({getReferenceClientRect:Ff.clientRect}),(B_=this.options.emitter)==null||B_.emit("show",{node:{type:{name:"paragraph"}},range:Ff.range}),($_=this.options.tip)==null||$_.show()},onExit:Ff=>{var kh;(kh=this.options.tip)==null||kh.destroy(),this.options.tip=null},onUpdate:Ff=>{var kh;(kh=this.options.tip)==null||kh.destroy(),this.options.tip=null}})},addCommands(){return{showMenu:()=>()=>{var Ff,kh;return(kh=(Ff=this.options)==null?void 0:Ff.tip)==null||kh.show(),!0},hideMenu:()=>()=>{var Ff,kh;return(kh=(Ff=this.options)==null?void 0:Ff.tip)==null||kh.destroy(),this.options.tip=null,!0}}},addProseMirrorPlugins(){return[Suggestion({editor:this.editor,...this.options})]}});function bail(Ff){if(Ff)throw Ff}/*!
|
|
411
|
+
`+$P):B_.stack=$P}throw B_}}_request(kh,x_){typeof kh=="string"?(x_=x_||{},x_.url=kh):x_=kh||{},x_=mergeConfig(this.defaults,x_);const{transitional:B_,paramsSerializer:$_,headers:$P}=x_;B_!==void 0&&validator.assertOptions(B_,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),$_!=null&&(utils$1.isFunction($_)?x_.paramsSerializer={serialize:$_}:validator.assertOptions($_,{encode:validators.function,serialize:validators.function},!0)),x_.method=(x_.method||this.defaults.method||"get").toLowerCase();let zP=$P&&utils$1.merge($P.common,$P[x_.method]);$P&&utils$1.forEach(["delete","get","head","post","put","patch","common"],cme=>{delete $P[cme]}),x_.headers=AxiosHeaders$1.concat(zP,$P);const eme=[];let tme=!0;this.interceptors.request.forEach(function(ume){typeof ume.runWhen=="function"&&ume.runWhen(x_)===!1||(tme=tme&&ume.synchronous,eme.unshift(ume.fulfilled,ume.rejected))});const nme=[];this.interceptors.response.forEach(function(ume){nme.push(ume.fulfilled,ume.rejected)});let rme,ime=0,ome;if(!tme){const cme=[dispatchRequest.bind(this),void 0];for(cme.unshift.apply(cme,eme),cme.push.apply(cme,nme),ome=cme.length,rme=Promise.resolve(x_);ime<ome;)rme=rme.then(cme[ime++],cme[ime++]);return rme}ome=eme.length;let ame=x_;for(ime=0;ime<ome;){const cme=eme[ime++],ume=eme[ime++];try{ame=cme(ame)}catch(sme){ume.call(this,sme);break}}try{rme=dispatchRequest.call(this,ame)}catch(cme){return Promise.reject(cme)}for(ime=0,ome=nme.length;ime<ome;)rme=rme.then(nme[ime++],nme[ime++]);return rme}getUri(kh){kh=mergeConfig(this.defaults,kh);const x_=buildFullPath(kh.baseURL,kh.url);return buildURL(x_,kh.params,kh.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(kh){Axios.prototype[kh]=function(x_,B_){return this.request(mergeConfig(B_||{},{method:kh,url:x_,data:(B_||{}).data}))}}),utils$1.forEach(["post","put","patch"],function(kh){function x_(B_){return function($P,zP,eme){return this.request(mergeConfig(eme||{},{method:kh,headers:B_?{"Content-Type":"multipart/form-data"}:{},url:$P,data:zP}))}}Axios.prototype[kh]=x_(),Axios.prototype[kh+"Form"]=x_(!0)});const Axios$1=Axios;class CancelToken{constructor(kh){if(typeof kh!="function")throw new TypeError("executor must be a function.");let x_;this.promise=new Promise(function($P){x_=$P});const B_=this;this.promise.then($_=>{if(!B_._listeners)return;let $P=B_._listeners.length;for(;$P-- >0;)B_._listeners[$P]($_);B_._listeners=null}),this.promise.then=$_=>{let $P;const zP=new Promise(eme=>{B_.subscribe(eme),$P=eme}).then($_);return zP.cancel=function(){B_.unsubscribe($P)},zP},kh(function($P,zP,eme){B_.reason||(B_.reason=new CanceledError($P,zP,eme),x_(B_.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(kh){if(this.reason){kh(this.reason);return}this._listeners?this._listeners.push(kh):this._listeners=[kh]}unsubscribe(kh){if(!this._listeners)return;const x_=this._listeners.indexOf(kh);x_!==-1&&this._listeners.splice(x_,1)}static source(){let kh;return{token:new CancelToken(function($_){kh=$_}),cancel:kh}}}const CancelToken$1=CancelToken;function spread(Ff){return function(x_){return Ff.apply(null,x_)}}function isAxiosError(Ff){return utils$1.isObject(Ff)&&Ff.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([Ff,kh])=>{HttpStatusCode[kh]=Ff});const HttpStatusCode$1=HttpStatusCode;function createInstance(Ff){const kh=new Axios$1(Ff),x_=bind(Axios$1.prototype.request,kh);return utils$1.extend(x_,Axios$1.prototype,kh,{allOwnKeys:!0}),utils$1.extend(x_,kh,null,{allOwnKeys:!0}),x_.create=function($_){return createInstance(mergeConfig(Ff,$_))},x_}const axios=createInstance(defaults$2);axios.Axios=Axios$1,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function(kh){return Promise.all(kh)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=Ff=>formDataToJSON(utils$1.isHTMLForm(Ff)?new FormData(Ff):Ff),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const upload=async Ff=>{try{return(await axios.post(`${Ff==null?void 0:Ff.url}/oss/upload?ext=${Ff==null?void 0:Ff.ext}`,Ff==null?void 0:Ff.file,{headers:{"Content-Type":"multipart/form-data"}})).data}catch(kh){return kh}},base64ToText$1=Ff=>{try{const kh=atob(Ff),x_=new Uint8Array(kh.length);for(let $_=0;$_<kh.length;$_++)x_[$_]=kh.charCodeAt($_);return new TextDecoder().decode(x_)}catch{return""}},textToBase64=Ff=>{const x_=new TextEncoder().encode(Ff),B_=String.fromCharCode(...x_);return btoa(B_)},getFileSuffix=Ff=>{const kh=Ff.indexOf(".")>-1?Ff.split("."):[];return kh.length>0?kh[kh.length-1]:""},marks={strong:"bold",emphasis:"italic",delete:"strike",link:"link"},toNodeObj=(Ff,kh)=>{var $_,$P,zP,eme,tme;const x_={};x_.type=Ff==null?void 0:Ff.type;const B_=kh?[...kh]:[];switch(Ff==null?void 0:Ff.type){case"linkReference":x_.type="paragraph";break;case"text":x_.text=Ff==null?void 0:Ff.value,B_!=null&&B_.length&&(x_.marks=B_);break;case"heading":x_.attrs={level:Ff==null?void 0:Ff.depth};break;case"list":x_.type=Ff!=null&&Ff.ordered?"orderedList":"bulletList";break;case"listItem":($_=Ff.children)!=null&&$_.length||(x_.content=[{type:"paragraph"}]);break;case"thematicBreak":x_.type="horizontalRule";break;case"image":x_.attrs={src:Ff==null?void 0:Ff.url,alt:Ff==null?void 0:Ff.alt,title:Ff==null?void 0:Ff.title},B_!=null&&B_.length&&(x_.marks=B_);break;case"html":x_.type="text",x_.text=" ";break;case"code":(Ff==null?void 0:Ff.props)==="active"?(x_.type="active",x_.attrs={language:Ff==null?void 0:Ff.lang,id:Ff==null?void 0:Ff.value}):(Ff==null?void 0:Ff.props)==="exec"?(x_.type="codeBlock",x_.attrs={language:Ff==null?void 0:Ff.lang,exec:!0},x_.content=Ff!=null&&Ff.value?[{type:"text",text:Ff==null?void 0:Ff.value}]:[]):(x_.type="codeBlock",x_.attrs={language:Ff==null?void 0:Ff.lang},x_.content=Ff!=null&&Ff.value?[{type:"text",text:Ff==null?void 0:Ff.value}]:[]);break;case"inlineCode":x_.type="text",x_.text=Ff==null?void 0:Ff.value,x_.marks=[{type:"code"}];break;default:{const nme=Object.keys(marks);if(nme!=null&&nme.includes(Ff==null?void 0:Ff.type))if(Ff.type==="link"&&/\.pdf$/i.test(Ff.url))x_.type="pdf",x_.attrs={pdfUrl:Ff==null?void 0:Ff.url};else{const rme={type:marks[Ff==null?void 0:Ff.type]};Ff.type==="link"&&(rme.attrs={href:Ff==null?void 0:Ff.url,target:"_blank"});const ime=Ff==null?void 0:Ff.children;(ime==null?void 0:ime.length)===1&&ime[0].type==="text"?(x_.type="text",x_.text=ime[0].value,x_.marks=[...B_,rme]):(x_.type="fragment",B_.push(rme))}}break}if(($P=Ff==null?void 0:Ff.children)!=null&&$P.length)if((Ff==null?void 0:Ff.type)==="paragraph"&&((zP=Ff==null?void 0:Ff.children)==null?void 0:zP.length)===1&&((eme=Ff==null?void 0:Ff.children[0])==null?void 0:eme.type)==="image"){x_.type="image";const nme=Ff==null?void 0:Ff.children[0];x_.attrs={src:nme==null?void 0:nme.url,alt:nme==null?void 0:nme.alt,title:nme==null?void 0:nme.title}}else x_.content=(tme=Ff==null?void 0:Ff.children)==null?void 0:tme.map(nme=>toNodeObj(nme,B_));return x_.type==="text"&&(x_!=null&&x_.content)&&(x_==null||delete x_.content),x_},toEditorJSON=Ff=>{var x_,B_,$_;const kh={};return kh.type="document",(x_=Ff==null?void 0:Ff.children)!=null&&x_.length&&(kh.content=($_=(B_=Ff==null?void 0:Ff.children)==null?void 0:B_.filter($P=>($P==null?void 0:$P.type)!=="definition"))==null?void 0:$_.map($P=>toNodeObj($P))),kh},marksMD={bold:"strong",italic:"emphasis",strike:"delete",link:"link"},toMDNodeObj=(Ff,kh)=>{var $_,$P,zP,eme,tme,nme,rme,ime,ome,ame,cme,ume,sme,lme,dme,fme,pme,hme,mme,_me,gme,vme,Sme,Eme;const x_={};x_.type=Ff==null?void 0:Ff.type;const B_=kh?[...kh]:[];switch(Ff==null?void 0:Ff.type){case"text":{const bme=($_=Ff==null?void 0:Ff.marks)==null?void 0:$_.length;if(!bme)x_.value=Ff==null?void 0:Ff.text;else if(bme===1){const Rme=Ff==null?void 0:Ff.marks[0];(Rme==null?void 0:Rme.type)==="code"?(x_.type="inlineCode",x_.value=Ff==null?void 0:Ff.text):(Rme==null?void 0:Rme.type)==="link"?(x_.type="link",x_.url=($P=Rme==null?void 0:Rme.attrs)==null?void 0:$P.href,x_.children=[{type:"text",value:Ff==null?void 0:Ff.text}]):(B_==null?void 0:B_.length)===0&&marksMD[Rme==null?void 0:Rme.type]?(x_.type=marksMD[Rme==null?void 0:Rme.type],x_.children=[{type:"text",value:Ff==null?void 0:Ff.text}]):x_.value=Ff==null?void 0:Ff.text}else(zP=Ff==null?void 0:Ff.marks)==null||zP.forEach(Rme=>{!B_.includes(Rme==null?void 0:Rme.type)&&marksMD[Rme==null?void 0:Rme.type]?(x_.type=marksMD[Rme==null?void 0:Rme.type],x_.children=[{type:"text",value:Ff==null?void 0:Ff.text}]):x_.value=Ff==null?void 0:Ff.text})}break;case"fragment":if((eme=Ff==null?void 0:Ff.content)!=null&&eme.length&&((nme=(tme=Ff==null?void 0:Ff.content[0])==null?void 0:tme.marks)!=null&&nme.length)){const bme=(rme=Ff==null?void 0:Ff.content[0])==null?void 0:rme.marks,Rme=bme==null?void 0:bme.find(Pme=>!(B_!=null&&B_.includes(Pme==null?void 0:Pme.type))),Ome=Rme==null?void 0:Rme.type;x_.type=marksMD[Ome],Ome==="link"&&(x_.url=(ime=Rme==null?void 0:Rme.attrs)==null?void 0:ime.href),B_.push(Ome)}else x_.type="paragraph";break;case"heading":x_.depth=(ome=Ff==null?void 0:Ff.attrs)==null?void 0:ome.level;break;case"bulletList":x_.type="list",x_.ordered=!1;break;case"orderedList":x_.type="list",x_.ordered=!0;break;case"horizontalRule":x_.type="thematicBreak";break;case"image":B_!=null&&B_.length?(x_.url=(ame=Ff==null?void 0:Ff.attrs)==null?void 0:ame.src,x_.alt=(cme=Ff==null?void 0:Ff.attrs)==null?void 0:cme.alt,x_.title=(ume=Ff==null?void 0:Ff.attrs)==null?void 0:ume.title):(x_.type="paragraph",x_.children=[{type:"image",url:(sme=Ff==null?void 0:Ff.attrs)==null?void 0:sme.src,alt:(lme=Ff==null?void 0:Ff.attrs)==null?void 0:lme.alt,title:(dme=Ff==null?void 0:Ff.attrs)==null?void 0:dme.title}]);break;case"codeBlock":x_.type="code",x_.lang=(fme=Ff==null?void 0:Ff.attrs)==null?void 0:fme.language,x_.value=(pme=Ff==null?void 0:Ff.content)!=null&&pme.length?(hme=Ff==null?void 0:Ff.content[0])==null?void 0:hme.text:"",(mme=Ff==null?void 0:Ff.attrs)!=null&&mme.exec&&(x_.props="exec");break;case"active":x_.type="code",x_.lang=(_me=Ff==null?void 0:Ff.attrs)==null?void 0:_me.language,x_.value=(gme=Ff==null?void 0:Ff.attrs)==null?void 0:gme.id,x_.props="active";break;case"pdf":x_.type="link",x_.url=(vme=Ff==null?void 0:Ff.attrs)==null?void 0:vme.pdfUrl;break}return(Sme=Ff==null?void 0:Ff.content)!=null&&Sme.length&&(x_.children=(Eme=Ff==null?void 0:Ff.content)==null?void 0:Eme.map(bme=>toMDNodeObj(bme,B_))),x_.type==="code"&&(x_!=null&&x_.children)&&(x_==null||delete x_.children),x_},toMarkdownJson=Ff=>{var x_,B_;const kh={};return kh.type="root",(x_=Ff==null?void 0:Ff.content)!=null&&x_.length&&(kh.children=(B_=Ff==null?void 0:Ff.content)==null?void 0:B_.map($_=>toMDNodeObj($_))),kh},normalClass$1="tiptap-menu-item-menus-item",lighClass$1="tiptap-menu-item-menus-item tiptap-menu-item-menus-light",Menu=Ff=>{const kh=React.useContext(shareData),{editor:x_,data:B_}=Ff,[$_,$P]=React.useState(null),[zP,eme]=React.useState(null),tme=(B_==null?void 0:B_.pos)+1||0,nme=()=>{x_==null||x_.chain().focus(tme).setParagraph().hideTip().run()},rme=gme=>{x_==null||x_.chain().focus(tme).setHeading({level:gme}).hideTip().run()},ime=()=>{x_==null||x_.chain().focus(tme).setCodeBlock().hideTip().run()},ome=()=>{const gme=document.createElement("input");gme.type="file",gme.accept="image/*",gme.addEventListener("change",vme=>{const Sme=vme.target.files[0],Eme=Sme.size,bme=512*1024;if(Eme>bme)staticMethods.warning("图片大小不能超过512kb!");else{const Rme=new FormData;Rme.append("file",Sme),upload({url:kh==null?void 0:kh.apiUrl,file:Rme,ext:Sme==null?void 0:Sme.name}).then(Ome=>{Ome!=null&&Ome.url&&(x_==null||x_.chain().focus(tme).setImage({src:Ome==null?void 0:Ome.url}).hideTip().run())}).catch(()=>{staticMethods.destroy(),staticMethods.error("图片上传失败")})}}),gme.click()},ame=gme=>{x_==null||x_.chain().focus(tme).insertTable({rows:gme.row,cols:gme.col,withHeaderRow:!0}).hideTip().run()},cme=(gme=!1)=>{gme?x_==null||x_.chain().focus(tme).toggleOrderedList().hideTip().run():x_==null||x_.chain().focus(tme).toggleBulletList().hideTip().run()},ume=()=>{x_==null||x_.chain().focus(tme).showBubbleMenu({from:tme,to:tme}).hideTip().run()},sme=gme=>{window.postMessage({type:gme,value:{pos:tme}}),x_==null||x_.commands.hideTip()},lme=()=>{hme()},dme=()=>{x_==null||x_.chain().focus(tme).setHorizontalRule().hideTip().run()},fme=()=>{x_==null||x_.chain().focus(tme).setBlockquote().hideTip().run()},pme=gme=>{var vme,Sme;return((Sme=(vme=B_==null?void 0:B_.node)==null?void 0:vme.type)==null?void 0:Sme.name)===gme},hme=()=>{const gme=document.createElement("input");gme.type="file",gme.accept=".pdf",gme.addEventListener("change",vme=>{const Sme=vme.target.files[0];if((Sme==null?void 0:Sme.type)!=="application/pdf"){staticMethods.destroy(),staticMethods.error("仅支持上传.pdf结尾的文件");return}if((Sme==null?void 0:Sme.size)>200*1024*1024){staticMethods.destroy(),staticMethods.error("上传文件不可超过200MB");return}const Eme=new FormData;Eme.append("file",Sme),upload({url:kh==null?void 0:kh.apiUrl,file:Eme,ext:getFileSuffix(Sme==null?void 0:Sme.name)}).then(bme=>{var Rme,Ome;(Ome=(Rme=x_==null?void 0:x_.chain().focus(tme))==null?void 0:Rme.setPdf({pdfUrl:bme==null?void 0:bme.url}))==null||Ome.hideTip().run()}).catch(()=>{staticMethods.destroy(),staticMethods.error("文件上传失败")})}),gme.click()},mme=gme=>{var vme,Sme,Eme,bme;return pme((Sme=(vme=B_==null?void 0:B_.node)==null?void 0:vme.type)==null?void 0:Sme.name)&&((bme=(Eme=B_==null?void 0:B_.node)==null?void 0:Eme.attrs)==null?void 0:bme.level)===gme};React.useEffect(()=>{!$_||!zP||tippy($_,{placement:"right",content:zP,interactive:!0,duration:[300,300],interactiveBorder:10,interactiveDebounce:75,maxWidth:500})},[$_,zP]);const _me=window.innerHeight/2-30;return jsxRuntimeExports.jsxs("div",{className:"tiptap-menu tiptap-scroll",style:{maxHeight:_me,overflowY:"auto"},children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"基础"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-menus",children:[jsxRuntimeExports.jsx("div",{className:pme("paragraph")?lighClass$1:normalClass$1,"data-tip":"正文",onClick:nme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 3.99984V13.9998H7.33398V3.99984H3.33398V2.6665H12.6673V3.99984H8.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(1)?lighClass$1:normalClass$1,"data-tip":"一级标题",onClick:()=>{rme(1)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732V7.33317H7.33398V2.6665H8.66732V13.3332ZM14.001 5.33317V13.3332H12.6677L12.6673 6.8025L11.334 7.15984V5.77984L13.001 5.33317H14.001Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(2)?lighClass$1:normalClass$1,"data-tip":"二级标题",onClick:()=>{rme(2)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2.66536 2.6665V7.33317H7.33203V2.6665H8.66536V13.3332H7.33203V8.6665H2.66536V13.3332H1.33203V2.6665H2.66536ZM12.332 5.33317C13.7128 5.33317 14.832 6.45246 14.832 7.83317C14.832 8.40477 14.6402 8.93157 14.3174 9.35264L14.2188 9.4733L12.0216 11.9998H14.6654V13.3332H9.9987L9.99823 12.2958L13.2125 8.59857C13.3908 8.3937 13.4987 8.12604 13.4987 7.83317C13.4987 7.18884 12.9764 6.6665 12.332 6.6665C11.7199 6.6665 11.2179 7.1379 11.1692 7.7375L11.1654 7.83317H9.83203C9.83203 6.45246 10.9513 5.33317 12.332 5.33317Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(3)?lighClass$1:normalClass$1,"data-tip":"三级标题",onClick:()=>{rme(3)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33317L14.6663 6.6665L12.9963 8.5885C14.0555 8.87877 14.834 9.84837 14.834 10.9998C14.834 12.3806 13.7147 13.4998 12.334 13.4998C11.1167 13.4998 10.1025 12.6298 9.87959 11.4776L11.1887 11.2233C11.2929 11.7607 11.7661 12.1665 12.334 12.1665C12.9783 12.1665 13.5007 11.6442 13.5007 10.9998C13.5007 10.3555 12.9783 9.83317 12.334 9.83317C12.1433 9.83317 11.9633 9.8789 11.8044 9.96004L10.9335 8.92864L12.8996 6.6665H10.0007V5.33317H14.6673ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(4)?lighClass$1:normalClass$1,"data-tip":"四级标题",onClick:()=>{rme(4)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732V7.33317H7.33398V2.6665H8.66732V13.3332ZM14.6673 5.33317V10.6665H15.6673V11.9998H14.6673V13.3332H13.334V11.9998H9.66732V11.1065L13.0007 5.33317H14.6673ZM13.334 7.42184L11.4607 10.6665H13.334V7.42184Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(5)?lighClass$1:normalClass$1,"data-tip":"五级标题",onClick:()=>{rme(5)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33317V6.6665H11.7853L11.4757 8.4237C11.6963 8.36464 11.9281 8.33317 12.1673 8.33317C13.6401 8.33317 14.834 9.5271 14.834 10.9998C14.834 12.4726 13.6401 13.6665 12.1673 13.6665C10.9495 13.6665 9.92245 12.8502 9.60325 11.735L10.8854 11.3678C11.0451 11.9252 11.5586 12.3332 12.1673 12.3332C12.9037 12.3332 13.5007 11.7362 13.5007 10.9998C13.5007 10.2634 12.9037 9.6665 12.1673 9.6665C11.7469 9.6665 11.372 9.86104 11.1276 10.165L9.92085 9.56244L10.6673 5.33317H14.6673ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(6)?lighClass$1:normalClass$1,"data-tip":"六级标题",onClick:()=>{rme(6)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0653 5.33317L12.3333 8.33317C13.8067 8.33317 15.0007 9.5271 15.0007 10.9998C15.0007 12.4726 13.8067 13.6665 12.334 13.6665C10.8613 13.6665 9.66732 12.4726 9.66732 10.9998C9.66732 10.5089 9.79998 10.049 10.0314 9.6539L12.526 5.33317H14.0653ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732ZM12.334 9.6665C11.5976 9.6665 11.0007 10.2634 11.0007 10.9998C11.0007 11.7362 11.5976 12.3332 12.334 12.3332C13.0704 12.3332 13.6673 11.7362 13.6673 10.9998C13.6673 10.2634 13.0704 9.6665 12.334 9.6665Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("bulletList")?lighClass$1:normalClass$1,"data-tip":"无序列表",onClick:()=>{cme(!1)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 2.66683H14V4.00016H5.33333V2.66683ZM3 4.3335C2.44771 4.3335 2 3.88578 2 3.3335C2 2.78121 2.44771 2.3335 3 2.3335C3.55229 2.3335 4 2.78121 4 3.3335C4 3.88578 3.55229 4.3335 3 4.3335ZM3 9.00016C2.44771 9.00016 2 8.55243 2 8.00016C2 7.4479 2.44771 7.00016 3 7.00016C3.55229 7.00016 4 7.4479 4 8.00016C4 8.55243 3.55229 9.00016 3 9.00016ZM3 13.6002C2.44771 13.6002 2 13.1524 2 12.6002C2 12.0479 2.44771 11.6002 3 11.6002C3.55229 11.6002 4 12.0479 4 12.6002C4 13.1524 3.55229 13.6002 3 13.6002ZM5.33333 7.3335H14V8.66683H5.33333V7.3335ZM5.33333 12.0002H14V13.3335H5.33333V12.0002Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("orderedList")?lighClass$1:normalClass$1,"data-tip":"有序列表",onClick:()=>{cme(!0)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 2.66667H14V4H5.33333V2.66667ZM3.33333 2V4H4V4.66667H2V4H2.66667V2.66667H2V2H3.33333ZM2 9.33333V7.66667H3.33333V7.33333H2V6.66667H4V8.33333H2.66667V8.66667H4V9.33333H2ZM3.33333 13H2V12.3333H3.33333V12H2V11.3333H4V14H2V13.3333H3.33333V13ZM5.33333 7.33333H14V8.66667H5.33333V7.33333ZM5.33333 12H14V13.3333H5.33333V12Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("link")?lighClass$1:normalClass$1,"data-tip":"链接",onClick:ume,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M12.2422 10.357L11.2993 9.41423L12.2422 8.47143C13.5439 7.1697 13.5439 5.05914 12.2422 3.7574C10.9404 2.45565 8.82988 2.45565 7.52815 3.7574L6.58533 4.70021L5.64253 3.7574L6.58533 2.81459C8.40781 0.992142 11.3625 0.992142 13.185 2.81459C15.0074 4.63704 15.0074 7.59183 13.185 9.41423L12.2422 10.357ZM10.3565 12.2427L9.41375 13.1855C7.59135 15.008 4.63655 15.008 2.8141 13.1855C0.991654 11.363 0.991654 8.4083 2.8141 6.58582L3.75691 5.64302L4.69971 6.58582L3.75691 7.52863C2.45516 8.83036 2.45516 10.941 3.75691 12.2427C5.05865 13.5444 7.16921 13.5444 8.47095 12.2427L9.41375 11.2999L10.3565 12.2427ZM9.88515 5.17161L10.8279 6.11442L6.11393 10.8285L5.17112 9.88563L9.88515 5.17161Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("orderedList")?lighClass$1:normalClass$1,"data-tip":"分割线",onClick:dme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M1.33398 7.3335H2.66732V8.66683H1.33398V7.3335ZM4.00065 7.3335H12.0007V8.66683H4.00065V7.3335ZM13.334 7.3335H14.6673V8.66683H13.334V7.3335Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("orderedList")?lighClass$1:normalClass$1,"data-tip":"引用",onClick:fme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0007 2.00049C14.3689 2.00049 14.6673 2.29897 14.6673 2.66715V12.0005C14.6673 12.3687 14.3689 12.6672 14.0007 12.6672H4.30398L1.33398 15.0005V2.66715C1.33398 2.29897 1.63246 2.00049 2.00065 2.00049H14.0007ZM13.334 3.33382H2.66732V12.2572L3.84287 11.3338H13.334V3.33382ZM7.01085 4.94156L7.30838 5.40075C6.19666 6.00229 6.2161 6.96842 6.2161 7.17682C6.3195 7.16255 6.42803 7.16069 6.53556 7.17069C7.13698 7.22642 7.61105 7.72016 7.61105 8.33382C7.61105 8.97816 7.08872 9.50049 6.44437 9.50049C6.08668 9.50049 5.74464 9.33702 5.52846 9.10749C5.18504 8.74295 5.00065 8.33382 5.00065 7.67062C5.00065 6.50411 5.81948 5.45838 7.01085 4.94156ZM10.3442 4.94156L10.6417 5.40075C9.52998 6.00229 9.54945 6.96842 9.54945 7.17682C9.65285 7.16255 9.76138 7.16069 9.86892 7.17069C10.4703 7.22642 10.9444 7.72016 10.9444 8.33382C10.9444 8.97816 10.4221 9.50049 9.77772 9.50049C9.42005 9.50049 9.07798 9.33702 8.86178 9.10749C8.51838 8.74295 8.33398 8.33382 8.33398 7.67062C8.33398 6.50411 9.15285 5.45838 10.3442 4.94156Z"})})})]})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"常用"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:ime,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M16 8L12.2287 11.7713L11.2859 10.8284L14.1144 8L11.2859 5.17157L12.2287 4.22877L16 8ZM1.88562 8L4.71405 10.8284L3.77123 11.7713L0 8L3.77123 4.22877L4.71405 5.17157L1.88562 8ZM6.52563 14H5.10673L9.4744 2H10.8933L6.52563 14Z",fill:"#14C3FA"})}),jsxRuntimeExports.jsx("span",{children:"可执行代码块"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:ome,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M1.99518 14C1.63002 14 1.33398 13.7034 1.33398 13.3377V2.66227C1.33398 2.29651 1.63752 2 1.99518 2H14.0061C14.3713 2 14.6673 2.29663 14.6673 2.66227V13.3377C14.6673 13.7035 14.3638 14 14.0061 14H1.99518ZM13.334 10V3.33333H2.66732V12.6667L9.33398 6L13.334 10ZM13.334 11.8856L9.33398 7.8856L4.55294 12.6667H13.334V11.8856ZM5.33398 7.33333C4.5976 7.33333 4.00065 6.7364 4.00065 6C4.00065 5.26362 4.5976 4.66667 5.33398 4.66667C6.07036 4.66667 6.66732 5.26362 6.66732 6C6.66732 6.7364 6.07036 7.33333 5.33398 7.33333Z",fill:"#FBC12D"})}),jsxRuntimeExports.jsx("span",{children:"图片"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",ref:$P,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M9.33333 6.66667H6.66667V9.33333H9.33333V6.66667ZM10.6667 6.66667V9.33333H12.6667V6.66667H10.6667ZM9.33333 12.6667V10.6667H6.66667V12.6667H9.33333ZM10.6667 12.6667H12.6667V10.6667H10.6667V12.6667ZM9.33333 3.33333H6.66667V5.33333H9.33333V3.33333ZM10.6667 3.33333V5.33333H12.6667V3.33333H10.6667ZM5.33333 6.66667H3.33333V9.33333H5.33333V6.66667ZM5.33333 12.6667V10.6667H3.33333V12.6667H5.33333ZM5.33333 3.33333H3.33333V5.33333H5.33333V3.33333ZM2.66667 2H13.3333C13.7015 2 14 2.29848 14 2.66667V13.3333C14 13.7015 13.7015 14 13.3333 14H2.66667C2.29848 14 2 13.7015 2 13.3333V2.66667C2 2.29848 2.29848 2 2.66667 2Z",fill:"#2DDA9C"})}),jsxRuntimeExports.jsx("span",{children:"表格"}),jsxRuntimeExports.jsx("div",{ref:eme,children:jsxRuntimeExports.jsx(TableSelect,{onClick:ame})})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:lme,children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M2.66667 2.6H7.4V5C7.4 5.68856 7.9781 6.26667 8.66667 6.26667H11.0667V6.76667C11.0667 7.08855 11.3448 7.36667 11.6667 7.36667C11.9886 7.36667 12.2667 7.08855 12.2667 6.76667V4.66667C12.2667 4.50327 12.1865 4.34951 12.1165 4.24453L12.111 4.23629L12.104 4.22929L9.43738 1.56262C9.31201 1.43725 9.14874 1.4 9 1.4H2.66667C1.9781 1.4 1.4 1.9781 1.4 2.66667V13.3333C1.4 14.0219 1.9781 14.6 2.66667 14.6H9.1C9.4219 14.6 9.7 14.3219 9.7 14C9.7 13.6781 9.4219 13.4 9.1 13.4H2.66667C2.6394 13.4 2.62444 13.3913 2.61655 13.3835C2.60866 13.3756 2.6 13.3606 2.6 13.3333V2.66667C2.6 2.6394 2.60866 2.62444 2.61655 2.61655C2.62444 2.60866 2.6394 2.6 2.66667 2.6ZM8.75817 2.6L11.0667 4.94101V5.06667H8.66667C8.6394 5.06667 8.62444 5.05802 8.61655 5.05013C8.60866 5.04223 8.6 5.02727 8.6 5V2.6H8.75817Z",fill:"#3D79EE",stroke:"#3D79EE",strokeWidth:"0.2"}),jsxRuntimeExports.jsx("path",{d:"M5.19934 8.33301C4.99934 8.33301 4.89934 8.36635 4.79934 8.43301C4.69934 8.49968 4.66602 8.63301 4.66602 8.79968V12.033C4.66602 12.133 4.69934 12.233 4.76602 12.333C4.83267 12.3997 4.93267 12.4664 5.09934 12.4664C5.26602 12.4664 5.36602 12.3997 5.43267 12.333C5.49934 12.2664 5.53267 12.1664 5.53267 12.033V11.033H6.03267C6.93267 11.033 7.43267 10.5664 7.43267 9.66635C7.43267 9.23301 7.29934 8.86635 7.06602 8.66635C6.83267 8.43301 6.49934 8.33301 6.03267 8.33301H5.19934ZM6.56602 9.66635C6.56602 9.86635 6.53267 10.033 6.43267 10.0997C6.36602 10.1664 6.19934 10.233 5.99934 10.233H5.49934V9.13301H5.99934C6.19934 9.13301 6.33267 9.16635 6.43267 9.26635C6.53267 9.33301 6.56602 9.46635 6.56602 9.66635ZM10.4327 8.93301C10.2993 8.73301 10.0993 8.59968 9.89934 8.46635C9.66602 8.39968 9.39934 8.33301 9.09934 8.33301H8.13267C7.99934 8.33301 7.86602 8.33301 7.76602 8.46635C7.73267 8.53301 7.69934 8.63301 7.69934 8.76635V11.9997C7.69934 12.133 7.73267 12.233 7.76602 12.2997C7.86602 12.433 7.99934 12.433 8.13267 12.433H9.13267C9.43267 12.433 9.66602 12.3664 9.89934 12.2664C10.0993 12.1664 10.2993 11.9997 10.4327 11.7997C10.566 11.5997 10.666 11.3997 10.7327 11.133C10.7993 10.8997 10.8327 10.633 10.8327 10.3664C10.8327 10.0997 10.7993 9.83301 10.7327 9.59968C10.666 9.36635 10.566 9.13301 10.4327 8.93301ZM9.76602 11.333C9.63267 11.533 9.43267 11.633 9.16602 11.633H8.56602V9.13301H8.99934C9.33267 9.13301 9.59934 9.23301 9.73267 9.43301C9.89934 9.63301 9.96602 9.96635 9.96602 10.3664C9.99934 10.7997 9.89934 11.0997 9.76602 11.333ZM13.2993 8.33301H11.6327C11.4993 8.33301 11.366 8.36635 11.2993 8.43301C11.1993 8.49968 11.166 8.63301 11.166 8.76635V12.033C11.166 12.133 11.1993 12.233 11.266 12.2997C11.3327 12.3997 11.4327 12.433 11.5993 12.433C11.7327 12.433 11.866 12.3997 11.9327 12.2997C11.966 12.233 12.0327 12.1664 12.0327 11.9997V10.6664H13.166C13.366 10.6664 13.5327 10.5664 13.566 10.3997C13.5993 10.2664 13.5993 10.1664 13.566 10.133C13.5327 10.0664 13.466 9.86635 13.166 9.86635H11.9993V9.09968H13.266C13.3993 9.09968 13.4993 9.06635 13.566 9.03301C13.6327 8.99968 13.6993 8.89968 13.6993 8.69968C13.7327 8.49968 13.566 8.33301 13.2993 8.33301Z",fill:"#3D79EE"})]}),jsxRuntimeExports.jsx("span",{children:"PDF"})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"实验活动"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{sme("choiceQuestion")},children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.11099 7.65258H3.02108C2.20928 7.65258 1.54883 6.99213 1.54883 6.18033V3.09042C1.54883 2.27861 2.20928 1.61816 3.02108 1.61816H6.11099C6.92279 1.61816 7.58324 2.27861 7.58324 3.09042V6.18033C7.58324 6.99213 6.92279 7.65258 6.11099 7.65258ZM3.02108 2.50274C2.69703 2.50274 2.4334 2.76637 2.4334 3.09042V6.18033C2.4334 6.50437 2.69703 6.76801 3.02108 6.76801H6.11099C6.43504 6.76801 6.69867 6.50437 6.69867 6.18033V3.09042C6.69867 2.76637 6.43504 2.50274 6.11099 2.50274H3.02108ZM6.11099 14.3808H3.02108C2.20928 14.3808 1.54883 13.7204 1.54883 12.9086V9.81867C1.54883 9.00687 2.20928 8.34642 3.02108 8.34642H6.11099C6.92279 8.34642 7.58324 9.00687 7.58324 9.81867V12.9086C7.58324 13.7204 6.92279 14.3808 6.11099 14.3808ZM3.02108 9.23099C2.69703 9.23099 2.4334 9.49463 2.4334 9.81867V12.9086C2.4334 13.2326 2.69703 13.4963 3.02108 13.4963H6.11099C6.43504 13.4963 6.69867 13.2326 6.69867 12.9086V9.81867C6.69867 9.49463 6.43504 9.23099 6.11099 9.23099H3.02108ZM9.88078 7.65259H12.9707C13.7825 7.65259 14.443 6.99214 14.4429 6.18033V3.09042C14.4429 2.27862 13.7825 1.61817 12.9707 1.61817H9.88078C9.069 1.61817 8.40853 2.27862 8.40853 3.09042V6.18033C8.40853 6.99214 9.069 7.65259 9.88078 7.65259ZM9.2931 3.09042C9.2931 2.76637 9.55675 2.50274 9.88078 2.50274H12.9707C13.2947 2.50274 13.5584 2.76637 13.5584 3.09042V6.18033C13.5584 6.50438 13.2947 6.76801 12.9707 6.76801H9.88078C9.55675 6.76801 9.2931 6.50438 9.2931 6.18033V3.09042ZM12.9756 14.3812H9.88572C9.07392 14.3812 8.41347 13.7208 8.41347 12.909V9.81911C8.41347 9.00731 9.07392 8.34685 9.88572 8.34685H12.9756C13.3836 8.34685 13.7592 8.50129 14.0332 8.78173C14.3006 9.05546 14.4479 9.4239 14.4479 9.81911V12.909C14.4479 13.7208 13.7874 14.3812 12.9756 14.3812ZM10.515 13.0828C10.7097 13.2726 11.026 13.2726 11.2207 13.0828H11.2207L13.9558 10.4037C14.1505 10.2139 14.1505 9.9024 13.9558 9.7126C13.7611 9.5228 13.4448 9.5228 13.2501 9.7126L10.8679 12.0462L9.63169 10.8368C9.43699 10.647 9.12068 10.647 8.92599 10.8368C8.73129 11.0266 8.73129 11.3381 8.92599 11.5279L10.515 13.0828Z",fill:"#15DAC2"}),jsxRuntimeExports.jsx("path",{d:"M14.4429 6.18033L14.3429 6.18033L14.3429 6.18034L14.4429 6.18033ZM14.0332 8.78173L13.9616 8.85161L13.9616 8.85161L14.0332 8.78173ZM14.4479 12.909L14.3479 12.909L14.3479 12.909L14.4479 12.909ZM11.2207 13.0828V12.9828H11.18L11.1509 13.0112L11.2207 13.0828ZM10.515 13.0828L10.4451 13.1543L10.4452 13.1544L10.515 13.0828ZM11.2207 13.0828V13.1828H11.2616L11.2907 13.1542L11.2207 13.0828ZM13.9558 10.4037L13.886 10.332L13.8859 10.3322L13.9558 10.4037ZM13.9558 9.7126L14.0256 9.64099L14.0256 9.64099L13.9558 9.7126ZM13.2501 9.7126L13.1803 9.64099L13.1802 9.64116L13.2501 9.7126ZM10.8679 12.0462L10.7979 12.1177L10.8679 12.1861L10.9378 12.1176L10.8679 12.0462ZM9.63169 10.8368L9.70162 10.7653L9.70149 10.7652L9.63169 10.8368ZM8.92599 10.8368L8.85619 10.7652L8.85619 10.7652L8.92599 10.8368ZM8.92599 11.5279L8.99593 11.4564L8.99579 11.4563L8.92599 11.5279ZM3.02108 7.75258H6.11099V7.55258H3.02108V7.75258ZM1.44883 6.18033C1.44883 7.04736 2.15405 7.75258 3.02108 7.75258V7.55258C2.26451 7.55258 1.64883 6.9369 1.64883 6.18033H1.44883ZM1.44883 3.09042V6.18033H1.64883V3.09042H1.44883ZM3.02108 1.51816C2.15405 1.51816 1.44883 2.22339 1.44883 3.09042H1.64883C1.64883 2.33384 2.26451 1.71816 3.02108 1.71816V1.51816ZM6.11099 1.51816H3.02108V1.71816H6.11099V1.51816ZM7.68324 3.09042C7.68324 2.22339 6.97802 1.51816 6.11099 1.51816V1.71816C6.86756 1.71816 7.48324 2.33384 7.48324 3.09042H7.68324ZM7.68324 6.18033V3.09042H7.48324V6.18033H7.68324ZM6.11099 7.75258C6.97802 7.75258 7.68324 7.04736 7.68324 6.18033H7.48324C7.48324 6.9369 6.86756 7.55258 6.11099 7.55258V7.75258ZM2.5334 3.09042C2.5334 2.8216 2.75226 2.60274 3.02108 2.60274V2.40274C2.6418 2.40274 2.3334 2.71114 2.3334 3.09042H2.5334ZM2.5334 6.18033V3.09042H2.3334V6.18033H2.5334ZM3.02108 6.66801C2.75226 6.66801 2.5334 6.44915 2.5334 6.18033H2.3334C2.3334 6.5596 2.6418 6.86801 3.02108 6.86801V6.66801ZM6.11099 6.66801H3.02108V6.86801H6.11099V6.66801ZM6.59867 6.18033C6.59867 6.44915 6.37981 6.66801 6.11099 6.66801V6.86801C6.49027 6.86801 6.79867 6.5596 6.79867 6.18033H6.59867ZM6.59867 3.09042V6.18033H6.79867V3.09042H6.59867ZM6.11099 2.60274C6.37981 2.60274 6.59867 2.8216 6.59867 3.09042H6.79867C6.79867 2.71114 6.49027 2.40274 6.11099 2.40274V2.60274ZM3.02108 2.60274H6.11099V2.40274H3.02108V2.60274ZM3.02108 14.4808H6.11099V14.2808H3.02108V14.4808ZM1.44883 12.9086C1.44883 13.7756 2.15405 14.4808 3.02108 14.4808V14.2808C2.26451 14.2808 1.64883 13.6652 1.64883 12.9086H1.44883ZM1.44883 9.81867V12.9086H1.64883V9.81867H1.44883ZM3.02108 8.24642C2.15405 8.24642 1.44883 8.95164 1.44883 9.81867H1.64883C1.64883 9.0621 2.26451 8.44642 3.02108 8.44642V8.24642ZM6.11099 8.24642H3.02108V8.44642H6.11099V8.24642ZM7.68324 9.81867C7.68324 8.95164 6.97802 8.24642 6.11099 8.24642V8.44642C6.86756 8.44642 7.48324 9.0621 7.48324 9.81867H7.68324ZM7.68324 12.9086V9.81867H7.48324V12.9086H7.68324ZM6.11099 14.4808C6.97802 14.4808 7.68324 13.7756 7.68324 12.9086H7.48324C7.48324 13.6652 6.86756 14.2808 6.11099 14.2808V14.4808ZM2.5334 9.81867C2.5334 9.54985 2.75226 9.33099 3.02108 9.33099V9.13099C2.6418 9.13099 2.3334 9.4394 2.3334 9.81867H2.5334ZM2.5334 12.9086V9.81867H2.3334V12.9086H2.5334ZM3.02108 13.3963C2.75226 13.3963 2.5334 13.1774 2.5334 12.9086H2.3334C2.3334 13.2879 2.6418 13.5963 3.02108 13.5963V13.3963ZM6.11099 13.3963H3.02108V13.5963H6.11099V13.3963ZM6.59867 12.9086C6.59867 13.1774 6.37981 13.3963 6.11099 13.3963V13.5963C6.49027 13.5963 6.79867 13.2879 6.79867 12.9086H6.59867ZM6.59867 9.81867V12.9086H6.79867V9.81867H6.59867ZM6.11099 9.33099C6.37981 9.33099 6.59867 9.54985 6.59867 9.81867H6.79867C6.79867 9.4394 6.49027 9.13099 6.11099 9.13099V9.33099ZM3.02108 9.33099H6.11099V9.13099H3.02108V9.33099ZM12.9707 7.55259H9.88078V7.75259H12.9707V7.55259ZM14.3429 6.18034C14.343 6.93691 13.7273 7.55259 12.9707 7.55259V7.75259C13.8377 7.75259 14.543 7.04736 14.5429 6.18033L14.3429 6.18034ZM14.3429 3.09042V6.18033H14.5429V3.09042H14.3429ZM12.9707 1.71817C13.7273 1.71817 14.3429 2.33385 14.3429 3.09042H14.5429C14.5429 2.22339 13.8377 1.51817 12.9707 1.51817V1.71817ZM9.88078 1.71817H12.9707V1.51817H9.88078V1.71817ZM8.50853 3.09042C8.50853 2.33385 9.12423 1.71817 9.88078 1.71817V1.51817C9.01377 1.51817 8.30853 2.22339 8.30853 3.09042H8.50853ZM8.50853 6.18033V3.09042H8.30853V6.18033H8.50853ZM9.88078 7.55259C9.12423 7.55259 8.50853 6.93691 8.50853 6.18033H8.30853C8.30853 7.04736 9.01377 7.75259 9.88078 7.75259V7.55259ZM9.88078 2.40274C9.50152 2.40274 9.1931 2.71114 9.1931 3.09042H9.3931C9.3931 2.82161 9.61198 2.60274 9.88078 2.60274V2.40274ZM12.9707 2.40274H9.88078V2.60274H12.9707V2.40274ZM13.6584 3.09042C13.6584 2.71115 13.35 2.40274 12.9707 2.40274V2.60274C13.2395 2.60274 13.4584 2.8216 13.4584 3.09042H13.6584ZM13.6584 6.18033V3.09042H13.4584V6.18033H13.6584ZM12.9707 6.86801C13.35 6.86801 13.6584 6.55961 13.6584 6.18033H13.4584C13.4584 6.44916 13.2395 6.66801 12.9707 6.66801V6.86801ZM9.88078 6.86801H12.9707V6.66801H9.88078V6.86801ZM9.1931 6.18033C9.1931 6.55961 9.50152 6.86801 9.88078 6.86801V6.66801C9.61198 6.66801 9.3931 6.44915 9.3931 6.18033H9.1931ZM9.1931 3.09042V6.18033H9.3931V3.09042H9.1931ZM9.88572 14.4812H12.9756V14.2812H9.88572V14.4812ZM8.31347 12.909C8.31347 13.776 9.01869 14.4812 9.88572 14.4812V14.2812C9.12915 14.2812 8.51347 13.6656 8.51347 12.909H8.31347ZM8.31347 9.81911V12.909H8.51347V9.81911H8.31347ZM9.88572 8.24685C9.01869 8.24685 8.31347 8.95208 8.31347 9.81911H8.51347C8.51347 9.06254 9.12915 8.44685 9.88572 8.44685V8.24685ZM12.9756 8.24685H9.88572V8.44685H12.9756V8.24685ZM14.1047 8.71185C13.8111 8.41129 13.4093 8.24685 12.9756 8.24685V8.44685C13.3579 8.44685 13.7073 8.59129 13.9616 8.85161L14.1047 8.71185ZM14.5479 9.81911C14.5479 9.39874 14.391 9.00493 14.1047 8.71185L13.9616 8.85161C14.2102 9.10599 14.3479 9.44906 14.3479 9.81911H14.5479ZM14.5479 12.909V9.81911H14.3479V12.909H14.5479ZM12.9756 14.4812C13.8427 14.4812 14.5479 13.776 14.5479 12.909L14.3479 12.909C14.3479 13.6656 13.7322 14.2812 12.9756 14.2812V14.4812ZM11.1509 13.0112C10.995 13.1631 10.7407 13.1631 10.5848 13.0112L10.4452 13.1544C10.6787 13.3821 11.057 13.3821 11.2905 13.1544L11.1509 13.0112ZM11.2207 12.9828H11.2207V13.1828H11.2207V12.9828ZM13.8859 10.3322L11.1508 13.0114L11.2907 13.1542L14.0258 10.4751L13.8859 10.3322ZM13.886 9.7842C14.0405 9.93476 14.0405 10.1815 13.886 10.332L14.0256 10.4753C14.2606 10.2462 14.2606 9.87004 14.0256 9.64099L13.886 9.7842ZM13.3199 9.7842C13.4758 9.63226 13.7302 9.63226 13.886 9.7842L14.0256 9.64099C13.7921 9.41333 13.4139 9.41333 13.1803 9.64099L13.3199 9.7842ZM10.9378 12.1176L13.3201 9.78404L13.1802 9.64116L10.7979 11.9748L10.9378 12.1176ZM9.56176 10.9083L10.7979 12.1177L10.9378 11.9747L9.70162 10.7653L9.56176 10.9083ZM8.99579 10.9084C9.15165 10.7565 9.40603 10.7565 9.56188 10.9084L9.70149 10.7652C9.46795 10.5375 9.08971 10.5376 8.85619 10.7652L8.99579 10.9084ZM8.99579 11.4563C8.84135 11.3057 8.84136 11.059 8.99579 10.9084L8.85619 10.7652C8.62122 10.9942 8.62123 11.3704 8.85618 11.5995L8.99579 11.4563ZM10.5849 13.0113L8.99593 11.4564L8.85605 11.5993L10.4451 13.1543L10.5849 13.0113Z",fill:"#15DAC2"})]}),jsxRuntimeExports.jsx("span",{children:"选择题"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{sme("demo")},children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M13.334 6V3.33333H2.66732V6H13.334ZM13.334 7.33333H2.66732V12.6667H13.334V7.33333ZM2.00065 2H14.0007C14.3689 2 14.6673 2.29848 14.6673 2.66667V13.3333C14.6673 13.7015 14.3689 14 14.0007 14H2.00065C1.63246 14 1.33398 13.7015 1.33398 13.3333V2.66667C1.33398 2.29848 1.63246 2 2.00065 2ZM3.33398 8H5.33398V11.3333H3.33398V8ZM3.33398 4H4.66732V5.33333H3.33398V4ZM6.00065 4H7.33398V5.33333H6.00065V4Z",fill:"#7251F7"})}),jsxRuntimeExports.jsx("span",{children:"示例演示"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{sme("codingTest")},children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M10 2.66634H3.33333V13.333H12.6667V5.33301H10V2.66634ZM2 1.99421C2 1.62904 2.29833 1.33301 2.66567 1.33301H10.6667L13.9998 4.66634L14 13.9947C14 14.3656 13.7034 14.6663 13.3377 14.6663H2.66227C2.29651 14.6663 2 14.3628 2 14.0051V1.99421ZM11.7713 7.99967L9.4142 10.3567L8.4714 9.41387L9.8856 7.99967L8.4714 6.58546L9.4142 5.64265L11.7713 7.99967ZM4.22877 7.99967L6.58579 5.64265L7.5286 6.58546L6.11438 7.99967L7.5286 9.41387L6.58579 10.3567L4.22877 7.99967Z",fill:"#FB973C"})}),jsxRuntimeExports.jsx("span",{children:"活动编码"})]})]})]})]})},ChangeMenu=Ff=>{const{editor:kh,data:x_}=Ff;x_.pos+1;const B_=()=>{const{range:$P}=x_;kh==null||kh.chain().deleteRange($P).hideTip().run()},$_=()=>{const $P=kh==null?void 0:kh.view.nodeDOM(x_.pos),zP="text/html",eme=new Blob([$P==null?void 0:$P.outerHTML],{type:zP}),tme=[new ClipboardItem({[zP]:eme})];navigator.clipboard.write(tme),kh==null||kh.commands.hideTip()};return jsxRuntimeExports.jsxs("div",{className:"tiptap-changemenu",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-changemenu-item tiptap-changemenu-item-del",onClick:B_,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M11.332 3.99967H14.6654V5.33301H13.332V13.9997C13.332 14.3679 13.0336 14.6663 12.6654 14.6663H3.33203C2.96384 14.6663 2.66536 14.3679 2.66536 13.9997V5.33301H1.33203V3.99967H4.66536V1.99967C4.66536 1.63149 4.96384 1.33301 5.33203 1.33301H10.6654C11.0336 1.33301 11.332 1.63149 11.332 1.99967V3.99967ZM11.9987 5.33301H3.9987V13.333H11.9987V5.33301ZM5.9987 7.33301H7.33203V11.333H5.9987V7.33301ZM8.66537 7.33301H9.9987V11.333H8.66537V7.33301ZM5.9987 2.66634V3.99967H9.9987V2.66634H5.9987Z"})}),jsxRuntimeExports.jsx("span",{children:"删除"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-changemenu-item",onClick:$_,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M4.66653 3.99967V1.99967C4.66653 1.63149 4.96501 1.33301 5.3332 1.33301H13.3332C13.7014 1.33301 13.9999 1.63149 13.9999 1.99967V11.333C13.9999 11.7012 13.7014 11.9997 13.3332 11.9997H11.3332V13.9991C11.3332 14.3676 11.0333 14.6663 10.662 14.6663H2.67111C2.30039 14.6663 2 14.3699 2 13.9991L2.00173 4.66692C2.0018 4.29841 2.30176 3.99967 2.67295 3.99967H4.66653ZM3.33495 5.33301L3.33346 13.333H9.99987V5.33301H3.33495ZM5.99987 3.99967H11.3332V10.6663H12.6665V2.66634H5.99987V3.99967Z",fill:"#999999"})}),jsxRuntimeExports.jsx("span",{children:"复制"})]})]})},Tip=Ff=>{const{editor:kh,emitter:x_}=Ff,[B_,$_]=React.useState(null),[$P,zP]=React.useState(null),[eme,tme]=React.useState(null),[nme,rme]=React.useState(null),[ime,ome]=React.useState({}),[ame,cme]=React.useState("add");return React.useEffect(()=>{if(!B_||!$P)return;const ume=tippy(B_,{placement:"bottom-start",content:$P,interactive:!0,trigger:"mouseenter focus click focusin",onTrigger(sme,lme){kh==null||kh.commands.changeTip(!0)},onHide(sme){kh==null||kh.commands.changeTip(!1)}});return()=>{ume.unmount(),ume.destroy()}},[B_,$P]),React.useEffect(()=>{if(!eme||!nme)return;const ume=tippy(eme,{placement:"bottom-start",content:nme,interactive:!0,duration:[300,300],onTrigger(sme,lme){kh==null||kh.commands.changeTip(!0)},onHide(sme){kh==null||kh.commands.changeTip(!1)}});return()=>{ume.unmount(),ume.destroy()}},[eme,nme]),React.useEffect(()=>{x_==null||x_.on("hover",ume=>{ome({...ume})}),x_==null||x_.on("type",({type:ume})=>{ume==="add"?cme("add"):ume==="content"&&cme("content")})},[]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ame==="add"?jsxRuntimeExports.jsxs("div",{className:"floatingmenu-tip",ref:$_,children:[jsxRuntimeExports.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M6.5625 6.5625V9.9375C6.5625 10.0867 6.50324 10.2298 6.39775 10.3352C6.29226 10.4407 6.14918 10.5 6 10.5C5.85082 10.5 5.70774 10.4407 5.60225 10.3352C5.49676 10.2298 5.4375 10.0867 5.4375 9.9375V6.5625H2.0625C1.91332 6.5625 1.77024 6.50324 1.66475 6.39775C1.55926 6.29226 1.5 6.14918 1.5 6C1.5 5.85082 1.55926 5.70774 1.66475 5.60225C1.77024 5.49676 1.91332 5.4375 2.0625 5.4375H5.4375V2.0625C5.4375 1.91332 5.49676 1.77024 5.60225 1.66475C5.70774 1.55926 5.85082 1.5 6 1.5C6.14918 1.5 6.29226 1.55926 6.39775 1.66475C6.50324 1.77024 6.5625 1.91332 6.5625 2.0625V5.4375H9.9375C10.0867 5.4375 10.2298 5.49676 10.3352 5.60225C10.4407 5.70774 10.5 5.85082 10.5 6C10.5 6.14918 10.4407 6.29226 10.3352 6.39775C10.2298 6.50324 10.0867 6.5625 9.9375 6.5625H6.5625Z",fill:"#999999"})}),jsxRuntimeExports.jsx("div",{ref:zP,children:jsxRuntimeExports.jsx(Menu,{editor:kh,data:ime})})]}):jsxRuntimeExports.jsxs("div",{className:"floatingmenu-tip",ref:tme,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.07432 2.59277C5.40059 2.59277 5.72366 2.65704 6.02509 2.78189C6.32652 2.90675 6.60041 3.08975 6.83111 3.32046C7.06181 3.55116 7.24482 3.82505 7.36968 4.12648C7.49453 4.42791 7.5588 4.75098 7.5588 5.07725V7.56173H5.07432C4.74805 7.56173 4.42498 7.49746 4.12355 7.37261C3.82212 7.24775 3.54824 7.06474 3.31753 6.83404C3.08683 6.60333 2.90382 6.32945 2.77896 6.02802C2.65411 5.72659 2.58984 5.40352 2.58984 5.07725C2.58984 4.75098 2.65411 4.42791 2.77896 4.12648C2.90382 3.82505 3.08683 3.55116 3.31753 3.32046C3.54824 3.08975 3.82212 2.90675 4.12355 2.78189C4.42498 2.65704 4.74805 2.59277 5.07432 2.59277ZM6.68192 6.68485V5.07725C6.68192 4.7593 6.58764 4.44848 6.41099 4.18411C6.23435 3.91974 5.98327 3.71369 5.68952 3.59202C5.39577 3.47034 5.07254 3.43851 4.76069 3.50054C4.44885 3.56257 4.1624 3.71568 3.93757 3.9405C3.71275 4.16533 3.55964 4.45178 3.49761 4.76362C3.43558 5.07547 3.46741 5.3987 3.58909 5.69245C3.71076 5.9862 3.91682 6.23728 4.18118 6.41392C4.44555 6.59057 4.75637 6.68485 5.07432 6.68485H6.68192ZM10.9201 2.59277C11.2464 2.59277 11.5695 2.65704 11.8709 2.78189C12.1723 2.90675 12.4462 3.08975 12.6769 3.32046C12.9076 3.55116 13.0906 3.82505 13.2155 4.12648C13.3404 4.42791 13.4046 4.75098 13.4046 5.07725C13.4046 5.40352 13.3404 5.72659 13.2155 6.02802C13.0906 6.32945 12.9076 6.60333 12.6769 6.83404C12.4462 7.06474 12.1723 7.24775 11.8709 7.37261C11.5695 7.49746 11.2464 7.56173 10.9201 7.56173H8.43567V5.07725C8.43567 4.75098 8.49993 4.42791 8.62479 4.12648C8.74965 3.82505 8.93265 3.55116 9.16336 3.32046C9.39406 3.08975 9.66795 2.90675 9.96938 2.78189C10.2708 2.65704 10.5939 2.59277 10.9201 2.59277ZM9.31254 6.68485H10.9201C11.2381 6.68485 11.5489 6.59057 11.8133 6.41392C12.0777 6.23728 12.2837 5.9862 12.4054 5.69245C12.5271 5.3987 12.5589 5.07547 12.4969 4.76362C12.4348 4.45178 12.2817 4.16533 12.0569 3.9405C11.8321 3.71568 11.5456 3.56257 11.2338 3.50054C10.9219 3.43851 10.5987 3.47034 10.3049 3.59202C10.0112 3.71369 9.76012 3.91974 9.58347 4.18411C9.40683 4.44848 9.31254 4.7593 9.31254 5.07725V6.68485ZM5.07432 13.4076C4.4154 13.4076 3.78346 13.1458 3.31753 12.6799C2.8516 12.2139 2.58984 11.582 2.58984 10.9231C2.58984 10.2642 2.8516 9.63222 3.31753 9.16629C3.78346 8.70036 4.4154 8.4386 5.07432 8.4386H7.5588V10.9231C7.5588 11.2493 7.49453 11.5724 7.36968 11.8738C7.24482 12.1753 7.06181 12.4492 6.83111 12.6799C6.60041 12.9106 6.32652 13.0936 6.02509 13.2184C5.72366 13.3433 5.40059 13.4076 5.07432 13.4076ZM6.68192 9.31547H5.07432C4.75637 9.31547 4.44555 9.40976 4.18118 9.5864C3.91682 9.76305 3.71076 10.0141 3.58909 10.3079C3.46741 10.6016 3.43558 10.9249 3.49761 11.2367C3.55964 11.5485 3.71275 11.835 3.93757 12.0598C4.1624 12.2847 4.44885 12.4378 4.76069 12.4998C5.07254 12.5618 5.39577 12.53 5.68952 12.4083C5.98327 12.2866 6.23435 12.0806 6.41099 11.8162C6.58764 11.5518 6.68192 11.241 6.68192 10.9231V9.31547ZM10.9201 13.4076C10.5939 13.4076 10.2708 13.3433 9.96938 13.2184C9.66795 13.0936 9.39406 12.9106 9.16336 12.6799C8.93265 12.4492 8.74965 12.1753 8.62479 11.8738C8.49993 11.5724 8.43567 11.2493 8.43567 10.9231V8.4386H10.9201C11.5791 8.4386 12.211 8.70036 12.6769 9.16629C13.1429 9.63222 13.4046 10.2642 13.4046 10.9231C13.4046 11.582 13.1429 12.2139 12.6769 12.6799C12.211 13.1458 11.5791 13.4076 10.9201 13.4076ZM9.31254 9.31547V10.9231C9.31254 11.241 9.40683 11.5518 9.58347 11.8162C9.76012 12.0806 10.0112 12.2866 10.3049 12.4083C10.5987 12.53 10.9219 12.5618 11.2338 12.4998C11.5456 12.4378 11.8321 12.2847 12.0569 12.0598C12.2817 11.835 12.4348 11.5485 12.4969 11.2367C12.5589 10.9249 12.5271 10.6016 12.4054 10.3079C12.2837 10.0141 12.0777 9.76305 11.8133 9.5864C11.5489 9.40976 11.2381 9.31547 10.9201 9.31547H9.31254Z",fill:"#999999"})}),jsxRuntimeExports.jsx("div",{ref:rme,children:jsxRuntimeExports.jsx(ChangeMenu,{editor:kh,data:ime})})]})})};class EventEmitter{constructor(){p0e(this,"callbacks",{})}on(kh,x_){return this.callbacks[kh]||(this.callbacks[kh]=[]),this.callbacks[kh].push(x_),this}emit(kh,...x_){const B_=this.callbacks[kh];return B_&&B_.forEach($_=>$_.apply(this,x_)),this}off(kh,x_){const B_=this.callbacks[kh];return B_&&(x_?this.callbacks[kh]=B_.filter($_=>$_!==x_):delete this.callbacks[kh]),this}removeAllListeners(){this.callbacks={}}}const allowTypes=["paragraph","heading","horizontalRule","blockquote","codeBlock","image"];class Handle{constructor(kh,x_,B_,$_=[]){p0e(this,"editor");p0e(this,"tippy");p0e(this,"component");p0e(this,"tippyOptions");p0e(this,"ignoreType");p0e(this,"isShow");p0e(this,"emitter");p0e(this,"lastPos",null);p0e(this,"prevent",!1);this.editor=kh,this.tippy=null,this.component=x_,this.tippyOptions=B_,this.ignoreType=$_,this.isShow=!1,this.emitter=new EventEmitter}build(){return new ReactRenderer(this.component,{editor:this.editor,props:{editor:this.editor,emitter:this.emitter}}).element}createTippy(kh=!1){var B_,$_,$P;if(!kh&&this.tippy)return;const x_=this.build();this.tippy=tippy(document.body,{duration:0,getReferenceClientRect:null,content:x_,interactive:!0,trigger:"manual",placement:"left-start",hideOnClick:"toggle",...this.tippyOptions}),($P=($_=(B_=this.editor)==null?void 0:B_.view)==null?void 0:$_.dom.parentElement)==null||$P.addEventListener("mouseleave",this.mouseLeave.bind(this))}mouseLeave(){setTimeout(()=>{this.hide()},10)}show(){var kh;this.prevent||((kh=this.tippy)==null||kh.show(),this.isShow=!0)}hide(){var kh;this.prevent||((kh=this.tippy)==null||kh.hide(),this.lastPos=null,this.isShow=!1)}setProps(kh){var x_;(x_=this.tippy)==null||x_.setProps(kh)}setPrevent(kh){this.prevent=kh}move(kh,x_){var ome;if(this.prevent)return;this.createTippy();const{state:B_}=kh,{doc:$_,selection:$P}=B_,zP=kh==null?void 0:kh.posAtCoords({left:x_==null?void 0:x_.clientX,top:x_==null?void 0:x_.clientY});if(!zP)return!1;const{pos:eme,inside:tme}=zP;let nme=!1,rme=!0;const ime=(ome=document.getElementById("ylz-editor-container"))==null?void 0:ome.getBoundingClientRect();$_.descendants((ame,cme,ume,sme)=>{if(eme>=cme&&eme<cme+ame.nodeSize){if(eme!==this.lastPos){this.lastPos=eme,this.emitter.emit("hover",{node:ame,pos:cme,range:{from:cme,to:cme+ame.nodeSize}});const lme=posToDOMRect(kh,cme,cme+ame.nodeSize);ame.type.name==="horizontalRule"?((lme.top-10<((ime==null?void 0:ime.top)||0)||lme.top+6>((ime==null?void 0:ime.bottom)||0))&&(nme=!0),this.setProps({getReferenceClientRect:()=>({...lme,top:lme.top-10})})):((lme.top+6<((ime==null?void 0:ime.top)||0)||lme.top+22>((ime==null?void 0:ime.bottom)||0))&&(nme=!0),this.setProps({getReferenceClientRect:()=>({...lme,top:lme.top+6})}))}else rme=!1;ame.type.name!=="paragraph"?this.emitter.emit("type",{type:"content"}):this.emitter.emit("type",{type:"add"}),allowTypes.includes(ame.type.name)||(nme=!0),this.ignoreType.includes(ame.type.name)&&(nme=!0)}return!1}),rme&&(nme?this.hide():this.show())}destroy(){var kh,x_,B_,$_;(kh=this.tippy)==null||kh.destroy(),($_=(B_=(x_=this.editor)==null?void 0:x_.view)==null?void 0:B_.dom.parentElement)==null||$_.removeEventListener("mouseleave",this.mouseLeave),this.tippy=null,this.isShow=!1,this.lastPos=null}}const FloatingMenu=Extension.create({name:"floatingMenu",addOptions(){return{pluginKey:this.name,tip:null}},onBeforeCreate(){this.options.tip=new Handle(this.editor,Tip,{},["title","pdf","active"])},addCommands(){return{showTip:()=>()=>{var Ff,kh,x_;return(x_=(kh=(Ff=this.options)==null?void 0:Ff.tip)==null?void 0:kh.tippy)==null||x_.show(),!0},hideTip:()=>()=>{var Ff,kh,x_;return(x_=(kh=(Ff=this.options)==null?void 0:Ff.tip)==null?void 0:kh.tippy)==null||x_.hide(),!0},changeTip:(Ff=!0)=>()=>{var kh;return(kh=this.options.tip)==null||kh.setPrevent(Ff),!0}}},addProseMirrorPlugins(){return[FloatingMenuPlugin({editor:this.editor,...this.options})]}}),inputRegex=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,Image$1=Node$1.create({name:"image",addOptions(){return{oss:"",inline:!1,allowBase64:!1,HTMLAttributes:{class:"tiptap-image"}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:Ff}){return["img",mergeAttributes(this.options.HTMLAttributes,Ff)]},addCommands(){return{setImage:Ff=>({commands:kh})=>kh.insertContent({type:this.name,attrs:Ff})}},addKeyboardShortcuts(){return{"Mod-v":()=>{var kh,x_;const Ff=this;(x_=(kh=navigator==null?void 0:navigator.clipboard)==null?void 0:kh.read())==null||x_.then(async B_=>{var $_;for(const $P of B_)for(const zP of $P==null?void 0:$P.types)if(zP!=null&&zP.includes("image")){const eme=await $P.getType(zP),tme=new Date().getTime(),nme=new File([eme],tme.toString().substring(0,4)),rme=new FormData;rme.append("file",nme),upload({url:($_=Ff.options)==null?void 0:$_.oss,file:rme,ext:"png"}).then(ime=>{if(ime!=null&&ime.url)return Ff.editor.commands.setImage({src:ime==null?void 0:ime.url})})}}).catch(B_=>{console.error("获取剪切板内容失败:",B_)})}}},addInputRules(){return[nodeInputRule({find:inputRegex,type:this.type,getAttributes:Ff=>{const[,,kh,x_,B_]=Ff;return{src:x_,alt:kh,title:B_}}})]}});function findSuggestionMatch(Ff){var kh;const{char:x_,allowSpaces:B_,allowedPrefixes:$_,startOfLine:$P,$position:zP}=Ff,eme=escapeForRegEx(x_),tme=new RegExp(`\\s${eme}$`),nme=$P?"^":"",rme=B_?new RegExp(`${nme}${eme}.*?(?=\\s${eme}|$)`,"gm"):new RegExp(`${nme}(?:^)?${eme}[^\\s${eme}]*`,"gm"),ime=((kh=zP.nodeBefore)===null||kh===void 0?void 0:kh.isText)&&zP.nodeBefore.text;if(!ime)return null;const ome=zP.pos-ime.length,ame=Array.from(ime.matchAll(rme)).pop();if(!ame||ame.input===void 0||ame.index===void 0)return null;const cme=ame.input.slice(Math.max(0,ame.index-1),ame.index),ume=new RegExp(`^[${$_==null?void 0:$_.join("")}\0]?$`).test(cme);if($_!==null&&!ume)return null;const sme=ome+ame.index;let lme=sme+ame[0].length;return B_&&tme.test(ime.slice(lme-1,lme+1))&&(ame[0]+=" ",lme+=1),sme<zP.pos&&lme>=zP.pos?{range:{from:sme,to:lme},query:ame[0].slice(x_.length),text:ame[0]}:null}const SuggestionPluginKey=new PluginKey("suggestion");function Suggestion({pluginKey:Ff=SuggestionPluginKey,editor:kh,char:x_="@",allowSpaces:B_=!1,allowedPrefixes:$_=[" "],startOfLine:$P=!1,decorationTag:zP="span",decorationClass:eme="suggestion",command:tme=()=>null,items:nme=()=>[],render:rme=()=>({}),allow:ime=()=>!0,findSuggestionMatch:ome=findSuggestionMatch}){let ame;const cme=rme==null?void 0:rme(),ume=new Plugin({key:Ff,view(){return{update:async(sme,lme)=>{var dme,fme,pme,hme,mme,_me,gme;const vme=(dme=this.key)===null||dme===void 0?void 0:dme.getState(lme),Sme=(fme=this.key)===null||fme===void 0?void 0:fme.getState(sme.state),Eme=vme.active&&Sme.active&&vme.range.from!==Sme.range.from,bme=!vme.active&&Sme.active,Rme=vme.active&&!Sme.active,Ome=!bme&&!Rme&&vme.query!==Sme.query,Pme=bme||Eme,Lme=Ome&&!Eme,Mme=Rme||Eme;if(!Pme&&!Lme&&!Mme)return;const yme=Mme&&!Pme?vme:Sme,kme=sme.dom.querySelector(`[data-decoration-id="${yme.decorationId}"]`);ame={editor:kh,range:yme.range,query:yme.query,text:yme.text,items:[],command:Tme=>{tme({editor:kh,range:yme.range,props:Tme})},decorationNode:kme,clientRect:kme?()=>{var Tme;const{decorationId:Dme}=(Tme=this.key)===null||Tme===void 0?void 0:Tme.getState(kh.state),Fme=sme.dom.querySelector(`[data-decoration-id="${Dme}"]`);return(Fme==null?void 0:Fme.getBoundingClientRect())||null}:null},Pme&&((pme=cme==null?void 0:cme.onBeforeStart)===null||pme===void 0||pme.call(cme,ame)),Lme&&((hme=cme==null?void 0:cme.onBeforeUpdate)===null||hme===void 0||hme.call(cme,ame)),(Lme||Pme)&&(ame.items=await nme({editor:kh,query:yme.query})),Mme&&((mme=cme==null?void 0:cme.onExit)===null||mme===void 0||mme.call(cme,ame)),Lme&&((_me=cme==null?void 0:cme.onUpdate)===null||_me===void 0||_me.call(cme,ame)),Pme&&((gme=cme==null?void 0:cme.onStart)===null||gme===void 0||gme.call(cme,ame))},destroy:()=>{var sme;ame&&((sme=cme==null?void 0:cme.onExit)===null||sme===void 0||sme.call(cme,ame))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(sme,lme,dme,fme){const{isEditable:pme}=kh,{composing:hme}=kh.view,{selection:mme}=sme,{empty:_me,from:gme}=mme,vme={...lme};if(vme.composing=hme,pme&&(_me||kh.view.composing)){(gme<lme.range.from||gme>lme.range.to)&&!hme&&!lme.composing&&(vme.active=!1);const Sme=ome({char:x_,allowSpaces:B_,allowedPrefixes:$_,startOfLine:$P,$position:mme.$from}),Eme=`id_${Math.floor(Math.random()*4294967295)}`;Sme&&ime({editor:kh,state:fme,range:Sme.range})?(vme.active=!0,vme.decorationId=lme.decorationId?lme.decorationId:Eme,vme.range=Sme.range,vme.query=Sme.query,vme.text=Sme.text):vme.active=!1}else vme.active=!1;return vme.active||(vme.decorationId=null,vme.range={from:0,to:0},vme.query=null,vme.text=null),vme}},props:{handleKeyDown(sme,lme){var dme;const{active:fme,range:pme}=ume.getState(sme.state);return fme&&((dme=cme==null?void 0:cme.onKeyDown)===null||dme===void 0?void 0:dme.call(cme,{view:sme,event:lme,range:pme}))||!1},decorations(sme){const{active:lme,range:dme,decorationId:fme}=ume.getState(sme);return lme?DecorationSet.create(sme.doc,[Decoration.inline(dme.from,dme.to,{nodeName:zP,class:eme,"data-decoration-id":fme})]):null}}});return ume}const normalClass="tiptap-menu-item-menus-item",lighClass="tiptap-menu-item-menus-item tiptap-menu-item-menus-light",SlashMenu=Ff=>{var vme;const kh=React.useContext(shareData),{editor:x_,emitter:B_}=Ff,[$_,$P]=React.useState(null),[zP,eme]=React.useState(null),[tme,nme]=React.useState({}),rme=React.useRef(null);React.useEffect(()=>{B_==null||B_.on("show",Sme=>{nme({...Sme})})},[]);const ime=((vme=tme==null?void 0:tme.range)==null?void 0:vme.from)+1||0,ome=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setParagraph().hideMenu().run()},ame=Sme=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setHeading({level:Sme}).hideMenu().run()},cme=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setCodeBlock().hideMenu().run()},ume=()=>{const Sme=document.createElement("input");Sme.type="file",Sme.accept="image/*",Sme.addEventListener("change",Eme=>{const bme=Eme.target.files[0],Rme=bme.size,Ome=512*1024;if(Rme>Ome)staticMethods.warning("图片大小不能超过512kb!");else{const Pme=new FormData;Pme.append("file",bme),upload({url:kh==null?void 0:kh.apiUrl,file:Pme,ext:bme==null?void 0:bme.name}).then(Lme=>{Lme!=null&&Lme.url&&(x_==null||x_.chain().focus(ime).deleteRange(tme.range).setImage({src:Lme==null?void 0:Lme.url}).hideMenu().run())}).catch(()=>{staticMethods.destroy(),staticMethods.error("图片上传失败")})}}),Sme.click()},sme=Sme=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).insertTable({rows:Sme.row,cols:Sme.col,withHeaderRow:!0}).hideMenu().run()},lme=(Sme=!1)=>{Sme?x_==null||x_.chain().focus(ime).deleteRange(tme.range).toggleOrderedList().hideMenu().run():x_==null||x_.chain().focus(ime).deleteRange(tme.range).toggleBulletList().hideMenu().run()},dme=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).showBubbleMenu({from:ime,to:ime}).hideMenu().run()},fme=Sme=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).hideMenu().run(),window.postMessage({type:Sme,value:{pos:ime}})},pme=()=>{hme()},hme=()=>{const Sme=document.createElement("input");Sme.type="file",Sme.accept=".pdf",Sme.addEventListener("change",Eme=>{const bme=Eme.target.files[0];if((bme==null?void 0:bme.type)!=="application/pdf"){staticMethods.destroy(),staticMethods.error("仅支持上传.pdf结尾的文件");return}if((bme==null?void 0:bme.size)>200*1024*1024){staticMethods.destroy(),staticMethods.error("上传文件不可超过200MB");return}const Rme=new FormData;Rme.append("file",bme),upload({url:kh==null?void 0:kh.apiUrl,file:Rme,ext:getFileSuffix(bme==null?void 0:bme.name)}).then(Ome=>{var Pme,Lme;(Lme=(Pme=x_==null?void 0:x_.chain().focus(ime))==null?void 0:Pme.deleteRange(tme.range).setPdf({pdfUrl:Ome==null?void 0:Ome.url}))==null||Lme.hideMenu().run()}).catch(()=>{staticMethods.destroy(),staticMethods.error("文件上传失败")})}),Sme.click()},mme=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setHorizontalRule().hideMenu().run()},_me=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setBlockquote().hideMenu().run()};React.useEffect(()=>{!$_||!zP||tippy($_,{placement:"right",content:zP,interactive:!0,duration:[300,300],interactiveBorder:10,interactiveDebounce:75,maxWidth:500})},[$_,zP]);const gme=window.innerHeight/2-30;return jsxRuntimeExports.jsxs("div",{className:"tiptap-menu tiptap-scroll",style:{maxHeight:gme,overflowY:"auto"},ref:rme,children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"基础"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-menus",children:[jsxRuntimeExports.jsx("div",{className:lighClass,"data-tip":"正文",onClick:ome,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 3.99984V13.9998H7.33398V3.99984H3.33398V2.6665H12.6673V3.99984H8.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"一级标题",onClick:()=>{ame(1)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732V7.33317H7.33398V2.6665H8.66732V13.3332ZM14.001 5.33317V13.3332H12.6677L12.6673 6.8025L11.334 7.15984V5.77984L13.001 5.33317H14.001Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"二级标题",onClick:()=>{ame(2)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2.66536 2.6665V7.33317H7.33203V2.6665H8.66536V13.3332H7.33203V8.6665H2.66536V13.3332H1.33203V2.6665H2.66536ZM12.332 5.33317C13.7128 5.33317 14.832 6.45246 14.832 7.83317C14.832 8.40477 14.6402 8.93157 14.3174 9.35264L14.2188 9.4733L12.0216 11.9998H14.6654V13.3332H9.9987L9.99823 12.2958L13.2125 8.59857C13.3908 8.3937 13.4987 8.12604 13.4987 7.83317C13.4987 7.18884 12.9764 6.6665 12.332 6.6665C11.7199 6.6665 11.2179 7.1379 11.1692 7.7375L11.1654 7.83317H9.83203C9.83203 6.45246 10.9513 5.33317 12.332 5.33317Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"三级标题",onClick:()=>{ame(3)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33317L14.6663 6.6665L12.9963 8.5885C14.0555 8.87877 14.834 9.84837 14.834 10.9998C14.834 12.3806 13.7147 13.4998 12.334 13.4998C11.1167 13.4998 10.1025 12.6298 9.87959 11.4776L11.1887 11.2233C11.2929 11.7607 11.7661 12.1665 12.334 12.1665C12.9783 12.1665 13.5007 11.6442 13.5007 10.9998C13.5007 10.3555 12.9783 9.83317 12.334 9.83317C12.1433 9.83317 11.9633 9.8789 11.8044 9.96004L10.9335 8.92864L12.8996 6.6665H10.0007V5.33317H14.6673ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"四级标题",onClick:()=>{ame(4)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732V7.33317H7.33398V2.6665H8.66732V13.3332ZM14.6673 5.33317V10.6665H15.6673V11.9998H14.6673V13.3332H13.334V11.9998H9.66732V11.1065L13.0007 5.33317H14.6673ZM13.334 7.42184L11.4607 10.6665H13.334V7.42184Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"五级标题",onClick:()=>{ame(5)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33317V6.6665H11.7853L11.4757 8.4237C11.6963 8.36464 11.9281 8.33317 12.1673 8.33317C13.6401 8.33317 14.834 9.5271 14.834 10.9998C14.834 12.4726 13.6401 13.6665 12.1673 13.6665C10.9495 13.6665 9.92245 12.8502 9.60325 11.735L10.8854 11.3678C11.0451 11.9252 11.5586 12.3332 12.1673 12.3332C12.9037 12.3332 13.5007 11.7362 13.5007 10.9998C13.5007 10.2634 12.9037 9.6665 12.1673 9.6665C11.7469 9.6665 11.372 9.86104 11.1276 10.165L9.92085 9.56244L10.6673 5.33317H14.6673ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"六级标题",onClick:()=>{ame(6)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0653 5.33317L12.3333 8.33317C13.8067 8.33317 15.0007 9.5271 15.0007 10.9998C15.0007 12.4726 13.8067 13.6665 12.334 13.6665C10.8613 13.6665 9.66732 12.4726 9.66732 10.9998C9.66732 10.5089 9.79998 10.049 10.0314 9.6539L12.526 5.33317H14.0653ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732ZM12.334 9.6665C11.5976 9.6665 11.0007 10.2634 11.0007 10.9998C11.0007 11.7362 11.5976 12.3332 12.334 12.3332C13.0704 12.3332 13.6673 11.7362 13.6673 10.9998C13.6673 10.2634 13.0704 9.6665 12.334 9.6665Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"无序列表",onClick:()=>{lme(!1)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 2.66683H14V4.00016H5.33333V2.66683ZM3 4.3335C2.44771 4.3335 2 3.88578 2 3.3335C2 2.78121 2.44771 2.3335 3 2.3335C3.55229 2.3335 4 2.78121 4 3.3335C4 3.88578 3.55229 4.3335 3 4.3335ZM3 9.00016C2.44771 9.00016 2 8.55243 2 8.00016C2 7.4479 2.44771 7.00016 3 7.00016C3.55229 7.00016 4 7.4479 4 8.00016C4 8.55243 3.55229 9.00016 3 9.00016ZM3 13.6002C2.44771 13.6002 2 13.1524 2 12.6002C2 12.0479 2.44771 11.6002 3 11.6002C3.55229 11.6002 4 12.0479 4 12.6002C4 13.1524 3.55229 13.6002 3 13.6002ZM5.33333 7.3335H14V8.66683H5.33333V7.3335ZM5.33333 12.0002H14V13.3335H5.33333V12.0002Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"有序列表",onClick:()=>{lme(!0)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 2.66667H14V4H5.33333V2.66667ZM3.33333 2V4H4V4.66667H2V4H2.66667V2.66667H2V2H3.33333ZM2 9.33333V7.66667H3.33333V7.33333H2V6.66667H4V8.33333H2.66667V8.66667H4V9.33333H2ZM3.33333 13H2V12.3333H3.33333V12H2V11.3333H4V14H2V13.3333H3.33333V13ZM5.33333 7.33333H14V8.66667H5.33333V7.33333ZM5.33333 12H14V13.3333H5.33333V12Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"链接",onClick:dme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M12.2422 10.357L11.2993 9.41423L12.2422 8.47143C13.5439 7.1697 13.5439 5.05914 12.2422 3.7574C10.9404 2.45565 8.82988 2.45565 7.52815 3.7574L6.58533 4.70021L5.64253 3.7574L6.58533 2.81459C8.40781 0.992142 11.3625 0.992142 13.185 2.81459C15.0074 4.63704 15.0074 7.59183 13.185 9.41423L12.2422 10.357ZM10.3565 12.2427L9.41375 13.1855C7.59135 15.008 4.63655 15.008 2.8141 13.1855C0.991654 11.363 0.991654 8.4083 2.8141 6.58582L3.75691 5.64302L4.69971 6.58582L3.75691 7.52863C2.45516 8.83036 2.45516 10.941 3.75691 12.2427C5.05865 13.5444 7.16921 13.5444 8.47095 12.2427L9.41375 11.2999L10.3565 12.2427ZM9.88515 5.17161L10.8279 6.11442L6.11393 10.8285L5.17112 9.88563L9.88515 5.17161Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"分割线",onClick:mme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M1.33398 7.3335H2.66732V8.66683H1.33398V7.3335ZM4.00065 7.3335H12.0007V8.66683H4.00065V7.3335ZM13.334 7.3335H14.6673V8.66683H13.334V7.3335Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"引用",onClick:_me,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0007 2.00049C14.3689 2.00049 14.6673 2.29897 14.6673 2.66715V12.0005C14.6673 12.3687 14.3689 12.6672 14.0007 12.6672H4.30398L1.33398 15.0005V2.66715C1.33398 2.29897 1.63246 2.00049 2.00065 2.00049H14.0007ZM13.334 3.33382H2.66732V12.2572L3.84287 11.3338H13.334V3.33382ZM7.01085 4.94156L7.30838 5.40075C6.19666 6.00229 6.2161 6.96842 6.2161 7.17682C6.3195 7.16255 6.42803 7.16069 6.53556 7.17069C7.13698 7.22642 7.61105 7.72016 7.61105 8.33382C7.61105 8.97816 7.08872 9.50049 6.44437 9.50049C6.08668 9.50049 5.74464 9.33702 5.52846 9.10749C5.18504 8.74295 5.00065 8.33382 5.00065 7.67062C5.00065 6.50411 5.81948 5.45838 7.01085 4.94156ZM10.3442 4.94156L10.6417 5.40075C9.52998 6.00229 9.54945 6.96842 9.54945 7.17682C9.65285 7.16255 9.76138 7.16069 9.86892 7.17069C10.4703 7.22642 10.9444 7.72016 10.9444 8.33382C10.9444 8.97816 10.4221 9.50049 9.77772 9.50049C9.42005 9.50049 9.07798 9.33702 8.86178 9.10749C8.51838 8.74295 8.33398 8.33382 8.33398 7.67062C8.33398 6.50411 9.15285 5.45838 10.3442 4.94156Z"})})})]})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"常用"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:cme,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M16 8L12.2287 11.7713L11.2859 10.8284L14.1144 8L11.2859 5.17157L12.2287 4.22877L16 8ZM1.88562 8L4.71405 10.8284L3.77123 11.7713L0 8L3.77123 4.22877L4.71405 5.17157L1.88562 8ZM6.52563 14H5.10673L9.4744 2H10.8933L6.52563 14Z",fill:"#14C3FA"})}),jsxRuntimeExports.jsx("span",{children:"可执行代码块"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:ume,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M1.99518 14C1.63002 14 1.33398 13.7034 1.33398 13.3377V2.66227C1.33398 2.29651 1.63752 2 1.99518 2H14.0061C14.3713 2 14.6673 2.29663 14.6673 2.66227V13.3377C14.6673 13.7035 14.3638 14 14.0061 14H1.99518ZM13.334 10V3.33333H2.66732V12.6667L9.33398 6L13.334 10ZM13.334 11.8856L9.33398 7.8856L4.55294 12.6667H13.334V11.8856ZM5.33398 7.33333C4.5976 7.33333 4.00065 6.7364 4.00065 6C4.00065 5.26362 4.5976 4.66667 5.33398 4.66667C6.07036 4.66667 6.66732 5.26362 6.66732 6C6.66732 6.7364 6.07036 7.33333 5.33398 7.33333Z",fill:"#FBC12D"})}),jsxRuntimeExports.jsx("span",{children:"图片"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",ref:$P,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M9.33333 6.66667H6.66667V9.33333H9.33333V6.66667ZM10.6667 6.66667V9.33333H12.6667V6.66667H10.6667ZM9.33333 12.6667V10.6667H6.66667V12.6667H9.33333ZM10.6667 12.6667H12.6667V10.6667H10.6667V12.6667ZM9.33333 3.33333H6.66667V5.33333H9.33333V3.33333ZM10.6667 3.33333V5.33333H12.6667V3.33333H10.6667ZM5.33333 6.66667H3.33333V9.33333H5.33333V6.66667ZM5.33333 12.6667V10.6667H3.33333V12.6667H5.33333ZM5.33333 3.33333H3.33333V5.33333H5.33333V3.33333ZM2.66667 2H13.3333C13.7015 2 14 2.29848 14 2.66667V13.3333C14 13.7015 13.7015 14 13.3333 14H2.66667C2.29848 14 2 13.7015 2 13.3333V2.66667C2 2.29848 2.29848 2 2.66667 2Z",fill:"#2DDA9C"})}),jsxRuntimeExports.jsx("span",{children:"表格"}),jsxRuntimeExports.jsx("div",{ref:eme,children:jsxRuntimeExports.jsx(TableSelect,{onClick:sme})})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:pme,children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M2.66667 2.6H7.4V5C7.4 5.68856 7.9781 6.26667 8.66667 6.26667H11.0667V6.76667C11.0667 7.08855 11.3448 7.36667 11.6667 7.36667C11.9886 7.36667 12.2667 7.08855 12.2667 6.76667V4.66667C12.2667 4.50327 12.1865 4.34951 12.1165 4.24453L12.111 4.23629L12.104 4.22929L9.43738 1.56262C9.31201 1.43725 9.14874 1.4 9 1.4H2.66667C1.9781 1.4 1.4 1.9781 1.4 2.66667V13.3333C1.4 14.0219 1.9781 14.6 2.66667 14.6H9.1C9.4219 14.6 9.7 14.3219 9.7 14C9.7 13.6781 9.4219 13.4 9.1 13.4H2.66667C2.6394 13.4 2.62444 13.3913 2.61655 13.3835C2.60866 13.3756 2.6 13.3606 2.6 13.3333V2.66667C2.6 2.6394 2.60866 2.62444 2.61655 2.61655C2.62444 2.60866 2.6394 2.6 2.66667 2.6ZM8.75817 2.6L11.0667 4.94101V5.06667H8.66667C8.6394 5.06667 8.62444 5.05802 8.61655 5.05013C8.60866 5.04223 8.6 5.02727 8.6 5V2.6H8.75817Z",fill:"#3D79EE",stroke:"#3D79EE",strokeWidth:"0.2"}),jsxRuntimeExports.jsx("path",{d:"M5.19934 8.33301C4.99934 8.33301 4.89934 8.36635 4.79934 8.43301C4.69934 8.49968 4.66602 8.63301 4.66602 8.79968V12.033C4.66602 12.133 4.69934 12.233 4.76602 12.333C4.83267 12.3997 4.93267 12.4664 5.09934 12.4664C5.26602 12.4664 5.36602 12.3997 5.43267 12.333C5.49934 12.2664 5.53267 12.1664 5.53267 12.033V11.033H6.03267C6.93267 11.033 7.43267 10.5664 7.43267 9.66635C7.43267 9.23301 7.29934 8.86635 7.06602 8.66635C6.83267 8.43301 6.49934 8.33301 6.03267 8.33301H5.19934ZM6.56602 9.66635C6.56602 9.86635 6.53267 10.033 6.43267 10.0997C6.36602 10.1664 6.19934 10.233 5.99934 10.233H5.49934V9.13301H5.99934C6.19934 9.13301 6.33267 9.16635 6.43267 9.26635C6.53267 9.33301 6.56602 9.46635 6.56602 9.66635ZM10.4327 8.93301C10.2993 8.73301 10.0993 8.59968 9.89934 8.46635C9.66602 8.39968 9.39934 8.33301 9.09934 8.33301H8.13267C7.99934 8.33301 7.86602 8.33301 7.76602 8.46635C7.73267 8.53301 7.69934 8.63301 7.69934 8.76635V11.9997C7.69934 12.133 7.73267 12.233 7.76602 12.2997C7.86602 12.433 7.99934 12.433 8.13267 12.433H9.13267C9.43267 12.433 9.66602 12.3664 9.89934 12.2664C10.0993 12.1664 10.2993 11.9997 10.4327 11.7997C10.566 11.5997 10.666 11.3997 10.7327 11.133C10.7993 10.8997 10.8327 10.633 10.8327 10.3664C10.8327 10.0997 10.7993 9.83301 10.7327 9.59968C10.666 9.36635 10.566 9.13301 10.4327 8.93301ZM9.76602 11.333C9.63267 11.533 9.43267 11.633 9.16602 11.633H8.56602V9.13301H8.99934C9.33267 9.13301 9.59934 9.23301 9.73267 9.43301C9.89934 9.63301 9.96602 9.96635 9.96602 10.3664C9.99934 10.7997 9.89934 11.0997 9.76602 11.333ZM13.2993 8.33301H11.6327C11.4993 8.33301 11.366 8.36635 11.2993 8.43301C11.1993 8.49968 11.166 8.63301 11.166 8.76635V12.033C11.166 12.133 11.1993 12.233 11.266 12.2997C11.3327 12.3997 11.4327 12.433 11.5993 12.433C11.7327 12.433 11.866 12.3997 11.9327 12.2997C11.966 12.233 12.0327 12.1664 12.0327 11.9997V10.6664H13.166C13.366 10.6664 13.5327 10.5664 13.566 10.3997C13.5993 10.2664 13.5993 10.1664 13.566 10.133C13.5327 10.0664 13.466 9.86635 13.166 9.86635H11.9993V9.09968H13.266C13.3993 9.09968 13.4993 9.06635 13.566 9.03301C13.6327 8.99968 13.6993 8.89968 13.6993 8.69968C13.7327 8.49968 13.566 8.33301 13.2993 8.33301Z",fill:"#3D79EE"})]}),jsxRuntimeExports.jsx("span",{children:"PDF"})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"实验活动"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{fme("choiceQuestion")},children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.11099 7.65258H3.02108C2.20928 7.65258 1.54883 6.99213 1.54883 6.18033V3.09042C1.54883 2.27861 2.20928 1.61816 3.02108 1.61816H6.11099C6.92279 1.61816 7.58324 2.27861 7.58324 3.09042V6.18033C7.58324 6.99213 6.92279 7.65258 6.11099 7.65258ZM3.02108 2.50274C2.69703 2.50274 2.4334 2.76637 2.4334 3.09042V6.18033C2.4334 6.50437 2.69703 6.76801 3.02108 6.76801H6.11099C6.43504 6.76801 6.69867 6.50437 6.69867 6.18033V3.09042C6.69867 2.76637 6.43504 2.50274 6.11099 2.50274H3.02108ZM6.11099 14.3808H3.02108C2.20928 14.3808 1.54883 13.7204 1.54883 12.9086V9.81867C1.54883 9.00687 2.20928 8.34642 3.02108 8.34642H6.11099C6.92279 8.34642 7.58324 9.00687 7.58324 9.81867V12.9086C7.58324 13.7204 6.92279 14.3808 6.11099 14.3808ZM3.02108 9.23099C2.69703 9.23099 2.4334 9.49463 2.4334 9.81867V12.9086C2.4334 13.2326 2.69703 13.4963 3.02108 13.4963H6.11099C6.43504 13.4963 6.69867 13.2326 6.69867 12.9086V9.81867C6.69867 9.49463 6.43504 9.23099 6.11099 9.23099H3.02108ZM9.88078 7.65259H12.9707C13.7825 7.65259 14.443 6.99214 14.4429 6.18033V3.09042C14.4429 2.27862 13.7825 1.61817 12.9707 1.61817H9.88078C9.069 1.61817 8.40853 2.27862 8.40853 3.09042V6.18033C8.40853 6.99214 9.069 7.65259 9.88078 7.65259ZM9.2931 3.09042C9.2931 2.76637 9.55675 2.50274 9.88078 2.50274H12.9707C13.2947 2.50274 13.5584 2.76637 13.5584 3.09042V6.18033C13.5584 6.50438 13.2947 6.76801 12.9707 6.76801H9.88078C9.55675 6.76801 9.2931 6.50438 9.2931 6.18033V3.09042ZM12.9756 14.3812H9.88572C9.07392 14.3812 8.41347 13.7208 8.41347 12.909V9.81911C8.41347 9.00731 9.07392 8.34685 9.88572 8.34685H12.9756C13.3836 8.34685 13.7592 8.50129 14.0332 8.78173C14.3006 9.05546 14.4479 9.4239 14.4479 9.81911V12.909C14.4479 13.7208 13.7874 14.3812 12.9756 14.3812ZM10.515 13.0828C10.7097 13.2726 11.026 13.2726 11.2207 13.0828H11.2207L13.9558 10.4037C14.1505 10.2139 14.1505 9.9024 13.9558 9.7126C13.7611 9.5228 13.4448 9.5228 13.2501 9.7126L10.8679 12.0462L9.63169 10.8368C9.43699 10.647 9.12068 10.647 8.92599 10.8368C8.73129 11.0266 8.73129 11.3381 8.92599 11.5279L10.515 13.0828Z",fill:"#15DAC2"}),jsxRuntimeExports.jsx("path",{d:"M14.4429 6.18033L14.3429 6.18033L14.3429 6.18034L14.4429 6.18033ZM14.0332 8.78173L13.9616 8.85161L13.9616 8.85161L14.0332 8.78173ZM14.4479 12.909L14.3479 12.909L14.3479 12.909L14.4479 12.909ZM11.2207 13.0828V12.9828H11.18L11.1509 13.0112L11.2207 13.0828ZM10.515 13.0828L10.4451 13.1543L10.4452 13.1544L10.515 13.0828ZM11.2207 13.0828V13.1828H11.2616L11.2907 13.1542L11.2207 13.0828ZM13.9558 10.4037L13.886 10.332L13.8859 10.3322L13.9558 10.4037ZM13.9558 9.7126L14.0256 9.64099L14.0256 9.64099L13.9558 9.7126ZM13.2501 9.7126L13.1803 9.64099L13.1802 9.64116L13.2501 9.7126ZM10.8679 12.0462L10.7979 12.1177L10.8679 12.1861L10.9378 12.1176L10.8679 12.0462ZM9.63169 10.8368L9.70162 10.7653L9.70149 10.7652L9.63169 10.8368ZM8.92599 10.8368L8.85619 10.7652L8.85619 10.7652L8.92599 10.8368ZM8.92599 11.5279L8.99593 11.4564L8.99579 11.4563L8.92599 11.5279ZM3.02108 7.75258H6.11099V7.55258H3.02108V7.75258ZM1.44883 6.18033C1.44883 7.04736 2.15405 7.75258 3.02108 7.75258V7.55258C2.26451 7.55258 1.64883 6.9369 1.64883 6.18033H1.44883ZM1.44883 3.09042V6.18033H1.64883V3.09042H1.44883ZM3.02108 1.51816C2.15405 1.51816 1.44883 2.22339 1.44883 3.09042H1.64883C1.64883 2.33384 2.26451 1.71816 3.02108 1.71816V1.51816ZM6.11099 1.51816H3.02108V1.71816H6.11099V1.51816ZM7.68324 3.09042C7.68324 2.22339 6.97802 1.51816 6.11099 1.51816V1.71816C6.86756 1.71816 7.48324 2.33384 7.48324 3.09042H7.68324ZM7.68324 6.18033V3.09042H7.48324V6.18033H7.68324ZM6.11099 7.75258C6.97802 7.75258 7.68324 7.04736 7.68324 6.18033H7.48324C7.48324 6.9369 6.86756 7.55258 6.11099 7.55258V7.75258ZM2.5334 3.09042C2.5334 2.8216 2.75226 2.60274 3.02108 2.60274V2.40274C2.6418 2.40274 2.3334 2.71114 2.3334 3.09042H2.5334ZM2.5334 6.18033V3.09042H2.3334V6.18033H2.5334ZM3.02108 6.66801C2.75226 6.66801 2.5334 6.44915 2.5334 6.18033H2.3334C2.3334 6.5596 2.6418 6.86801 3.02108 6.86801V6.66801ZM6.11099 6.66801H3.02108V6.86801H6.11099V6.66801ZM6.59867 6.18033C6.59867 6.44915 6.37981 6.66801 6.11099 6.66801V6.86801C6.49027 6.86801 6.79867 6.5596 6.79867 6.18033H6.59867ZM6.59867 3.09042V6.18033H6.79867V3.09042H6.59867ZM6.11099 2.60274C6.37981 2.60274 6.59867 2.8216 6.59867 3.09042H6.79867C6.79867 2.71114 6.49027 2.40274 6.11099 2.40274V2.60274ZM3.02108 2.60274H6.11099V2.40274H3.02108V2.60274ZM3.02108 14.4808H6.11099V14.2808H3.02108V14.4808ZM1.44883 12.9086C1.44883 13.7756 2.15405 14.4808 3.02108 14.4808V14.2808C2.26451 14.2808 1.64883 13.6652 1.64883 12.9086H1.44883ZM1.44883 9.81867V12.9086H1.64883V9.81867H1.44883ZM3.02108 8.24642C2.15405 8.24642 1.44883 8.95164 1.44883 9.81867H1.64883C1.64883 9.0621 2.26451 8.44642 3.02108 8.44642V8.24642ZM6.11099 8.24642H3.02108V8.44642H6.11099V8.24642ZM7.68324 9.81867C7.68324 8.95164 6.97802 8.24642 6.11099 8.24642V8.44642C6.86756 8.44642 7.48324 9.0621 7.48324 9.81867H7.68324ZM7.68324 12.9086V9.81867H7.48324V12.9086H7.68324ZM6.11099 14.4808C6.97802 14.4808 7.68324 13.7756 7.68324 12.9086H7.48324C7.48324 13.6652 6.86756 14.2808 6.11099 14.2808V14.4808ZM2.5334 9.81867C2.5334 9.54985 2.75226 9.33099 3.02108 9.33099V9.13099C2.6418 9.13099 2.3334 9.4394 2.3334 9.81867H2.5334ZM2.5334 12.9086V9.81867H2.3334V12.9086H2.5334ZM3.02108 13.3963C2.75226 13.3963 2.5334 13.1774 2.5334 12.9086H2.3334C2.3334 13.2879 2.6418 13.5963 3.02108 13.5963V13.3963ZM6.11099 13.3963H3.02108V13.5963H6.11099V13.3963ZM6.59867 12.9086C6.59867 13.1774 6.37981 13.3963 6.11099 13.3963V13.5963C6.49027 13.5963 6.79867 13.2879 6.79867 12.9086H6.59867ZM6.59867 9.81867V12.9086H6.79867V9.81867H6.59867ZM6.11099 9.33099C6.37981 9.33099 6.59867 9.54985 6.59867 9.81867H6.79867C6.79867 9.4394 6.49027 9.13099 6.11099 9.13099V9.33099ZM3.02108 9.33099H6.11099V9.13099H3.02108V9.33099ZM12.9707 7.55259H9.88078V7.75259H12.9707V7.55259ZM14.3429 6.18034C14.343 6.93691 13.7273 7.55259 12.9707 7.55259V7.75259C13.8377 7.75259 14.543 7.04736 14.5429 6.18033L14.3429 6.18034ZM14.3429 3.09042V6.18033H14.5429V3.09042H14.3429ZM12.9707 1.71817C13.7273 1.71817 14.3429 2.33385 14.3429 3.09042H14.5429C14.5429 2.22339 13.8377 1.51817 12.9707 1.51817V1.71817ZM9.88078 1.71817H12.9707V1.51817H9.88078V1.71817ZM8.50853 3.09042C8.50853 2.33385 9.12423 1.71817 9.88078 1.71817V1.51817C9.01377 1.51817 8.30853 2.22339 8.30853 3.09042H8.50853ZM8.50853 6.18033V3.09042H8.30853V6.18033H8.50853ZM9.88078 7.55259C9.12423 7.55259 8.50853 6.93691 8.50853 6.18033H8.30853C8.30853 7.04736 9.01377 7.75259 9.88078 7.75259V7.55259ZM9.88078 2.40274C9.50152 2.40274 9.1931 2.71114 9.1931 3.09042H9.3931C9.3931 2.82161 9.61198 2.60274 9.88078 2.60274V2.40274ZM12.9707 2.40274H9.88078V2.60274H12.9707V2.40274ZM13.6584 3.09042C13.6584 2.71115 13.35 2.40274 12.9707 2.40274V2.60274C13.2395 2.60274 13.4584 2.8216 13.4584 3.09042H13.6584ZM13.6584 6.18033V3.09042H13.4584V6.18033H13.6584ZM12.9707 6.86801C13.35 6.86801 13.6584 6.55961 13.6584 6.18033H13.4584C13.4584 6.44916 13.2395 6.66801 12.9707 6.66801V6.86801ZM9.88078 6.86801H12.9707V6.66801H9.88078V6.86801ZM9.1931 6.18033C9.1931 6.55961 9.50152 6.86801 9.88078 6.86801V6.66801C9.61198 6.66801 9.3931 6.44915 9.3931 6.18033H9.1931ZM9.1931 3.09042V6.18033H9.3931V3.09042H9.1931ZM9.88572 14.4812H12.9756V14.2812H9.88572V14.4812ZM8.31347 12.909C8.31347 13.776 9.01869 14.4812 9.88572 14.4812V14.2812C9.12915 14.2812 8.51347 13.6656 8.51347 12.909H8.31347ZM8.31347 9.81911V12.909H8.51347V9.81911H8.31347ZM9.88572 8.24685C9.01869 8.24685 8.31347 8.95208 8.31347 9.81911H8.51347C8.51347 9.06254 9.12915 8.44685 9.88572 8.44685V8.24685ZM12.9756 8.24685H9.88572V8.44685H12.9756V8.24685ZM14.1047 8.71185C13.8111 8.41129 13.4093 8.24685 12.9756 8.24685V8.44685C13.3579 8.44685 13.7073 8.59129 13.9616 8.85161L14.1047 8.71185ZM14.5479 9.81911C14.5479 9.39874 14.391 9.00493 14.1047 8.71185L13.9616 8.85161C14.2102 9.10599 14.3479 9.44906 14.3479 9.81911H14.5479ZM14.5479 12.909V9.81911H14.3479V12.909H14.5479ZM12.9756 14.4812C13.8427 14.4812 14.5479 13.776 14.5479 12.909L14.3479 12.909C14.3479 13.6656 13.7322 14.2812 12.9756 14.2812V14.4812ZM11.1509 13.0112C10.995 13.1631 10.7407 13.1631 10.5848 13.0112L10.4452 13.1544C10.6787 13.3821 11.057 13.3821 11.2905 13.1544L11.1509 13.0112ZM11.2207 12.9828H11.2207V13.1828H11.2207V12.9828ZM13.8859 10.3322L11.1508 13.0114L11.2907 13.1542L14.0258 10.4751L13.8859 10.3322ZM13.886 9.7842C14.0405 9.93476 14.0405 10.1815 13.886 10.332L14.0256 10.4753C14.2606 10.2462 14.2606 9.87004 14.0256 9.64099L13.886 9.7842ZM13.3199 9.7842C13.4758 9.63226 13.7302 9.63226 13.886 9.7842L14.0256 9.64099C13.7921 9.41333 13.4139 9.41333 13.1803 9.64099L13.3199 9.7842ZM10.9378 12.1176L13.3201 9.78404L13.1802 9.64116L10.7979 11.9748L10.9378 12.1176ZM9.56176 10.9083L10.7979 12.1177L10.9378 11.9747L9.70162 10.7653L9.56176 10.9083ZM8.99579 10.9084C9.15165 10.7565 9.40603 10.7565 9.56188 10.9084L9.70149 10.7652C9.46795 10.5375 9.08971 10.5376 8.85619 10.7652L8.99579 10.9084ZM8.99579 11.4563C8.84135 11.3057 8.84136 11.059 8.99579 10.9084L8.85619 10.7652C8.62122 10.9942 8.62123 11.3704 8.85618 11.5995L8.99579 11.4563ZM10.5849 13.0113L8.99593 11.4564L8.85605 11.5993L10.4451 13.1543L10.5849 13.0113Z",fill:"#15DAC2"})]}),jsxRuntimeExports.jsx("span",{children:"选择题"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{fme("demo")},children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M13.334 6V3.33333H2.66732V6H13.334ZM13.334 7.33333H2.66732V12.6667H13.334V7.33333ZM2.00065 2H14.0007C14.3689 2 14.6673 2.29848 14.6673 2.66667V13.3333C14.6673 13.7015 14.3689 14 14.0007 14H2.00065C1.63246 14 1.33398 13.7015 1.33398 13.3333V2.66667C1.33398 2.29848 1.63246 2 2.00065 2ZM3.33398 8H5.33398V11.3333H3.33398V8ZM3.33398 4H4.66732V5.33333H3.33398V4ZM6.00065 4H7.33398V5.33333H6.00065V4Z",fill:"#7251F7"})}),jsxRuntimeExports.jsx("span",{children:"示例演示"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{fme("codingTest")},children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M10 2.66634H3.33333V13.333H12.6667V5.33301H10V2.66634ZM2 1.99421C2 1.62904 2.29833 1.33301 2.66567 1.33301H10.6667L13.9998 4.66634L14 13.9947C14 14.3656 13.7034 14.6663 13.3377 14.6663H2.66227C2.29651 14.6663 2 14.3628 2 14.0051V1.99421ZM11.7713 7.99967L9.4142 10.3567L8.4714 9.41387L9.8856 7.99967L8.4714 6.58546L9.4142 5.64265L11.7713 7.99967ZM4.22877 7.99967L6.58579 5.64265L7.5286 6.58546L6.11438 7.99967L7.5286 9.41387L6.58579 10.3567L4.22877 7.99967Z",fill:"#FB973C"})}),jsxRuntimeExports.jsx("span",{children:"活动编码"})]})]})]})]})},build=(Ff,kh,x_)=>new ReactRenderer(Ff,{editor:kh,props:{editor:kh,emitter:x_}}).element,char="/",ignoreChar=["title"],Slash=Extension.create({name:"Slash",addOptions(){return{char,allowSpaces:!1,startOfLine:!0,render:void 0,tip:null,emitter:null,allow:Ff=>{const kh=Ff.editor.state.doc;let x_=!0;return Ff.editor.isFocused&&kh.nodesBetween(Ff.range.from,Ff.range.to,(B_,$_,$P)=>(ignoreChar.includes(B_.type.name)&&(x_=!1),!1)),x_}}},onBeforeCreate(){this.options.emitter=new EventEmitter,this.options.render=()=>({onBeforeStart:Ff=>{if(this.options.tip)return;const kh=build(SlashMenu,this.editor,this.options.emitter);this.options.tip=tippy(document.body,{getReferenceClientRect:null,content:kh,interactive:!0,trigger:"manual",placement:"bottom",offset:[85,10],duration:[300,300]})},onStart:Ff=>{var kh,x_,B_,$_;console.log((kh=Ff==null?void 0:Ff.clientRect)==null?void 0:kh.call(Ff)),(x_=this.options.tip)==null||x_.setProps({getReferenceClientRect:Ff.clientRect}),(B_=this.options.emitter)==null||B_.emit("show",{node:{type:{name:"paragraph"}},range:Ff.range}),this.editor.chain().hideTip().changeTip(!0).run(),($_=this.options.tip)==null||$_.show()},onExit:Ff=>{var kh;this.editor.chain().changeTip(!1).run(),(kh=this.options.tip)==null||kh.destroy(),this.options.tip=null},onUpdate:Ff=>{var kh;this.editor.chain().changeTip(!1).run(),(kh=this.options.tip)==null||kh.destroy(),this.options.tip=null}})},addCommands(){return{showMenu:()=>()=>{var Ff,kh;return this.editor.chain().hideTip().changeTip(!0).run(),(kh=(Ff=this.options)==null?void 0:Ff.tip)==null||kh.show(),!0},hideMenu:()=>()=>{var Ff,kh;return this.editor.chain().changeTip(!1).run(),(kh=(Ff=this.options)==null?void 0:Ff.tip)==null||kh.destroy(),this.options.tip=null,!0}}},addProseMirrorPlugins(){return[Suggestion({editor:this.editor,...this.options}),new Plugin({key:new PluginKey("slash-whell"),props:{handleDOMEvents:{wheel:()=>{this.editor.commands.hideMenu()}}}})]}});function bail(Ff){if(Ff)throw Ff}/*!
|
|
412
412
|
* Determine if an object is a Buffer
|
|
413
413
|
*
|
|
414
414
|
* @author Feross Aboukhadijeh <https://feross.org>
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tiptap{padding:30px 40px;max-width:1000px;box-sizing:border-box;margin:0 auto}.tiptap:focus{outline:none}.tiptap *{padding:0;margin:0}.tiptap .ant-btn{padding:0 16px;height:24px;background:#1677ff;border-radius:2px;font-size:12px;line-height:24px}.tiptap>.tiptap-image{margin:20px 0}.tiptap img.ProseMirror-selectednode{outline:2px solid #1677ff}.tiptap .inline-code{padding:2px 8px;background:#fff5ec;color:#f0861d;border-radius:2px}.tiptap .node-codeBlock{margin:20px 0}.tiptap blockquote{margin:20px 0;margin-inline-start:0!important;padding:8px 10px 8px 16px;background:#f0f2f5;color:#888;position:relative}.tiptap blockquote:after{position:absolute;left:0;bottom:0;width:4px;height:100%;background:#dcdee0;content:""}.tiptap .tableWrapper{margin:20px 0;max-width:100%;overflow-x:auto}.tiptap .tableWrapper::-webkit-scrollbar{width:0px;height:0px;cursor:default}.tiptap .tableWrapper:hover::-webkit-scrollbar{height:8px}.tiptap .tableWrapper::-webkit-scrollbar-track{background-color:transparent}.tiptap .tableWrapper::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tiptap .tableWrapper::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.tiptap .tableWrapper table{max-width:100%}.tiptap table{border-collapse:collapse;text-align:left}.tiptap table th{background:#f0f2f5}.tiptap table th p{font-weight:700;color:#333!important}.tiptap table th,.tiptap table td{border:.5px solid #d9d9d9!important;padding:8px 20px!important;color:#666!important}.tiptap>ul{margin:20px 0!important;padding-left:18px!important}.tiptap ul{padding-left:14px;margin:0}.tiptap ul li p{line-height:28px}.tiptap ul li::marker{color:#1677ff}.tiptap ul ul ul ul{list-style-type:disc}.tiptap ul ul ul ul ul{list-style-type:circle}.tiptap ul ul ul ul ul ul{list-style-type:square}.tiptap ul ul ul ul ul ul ul{list-style-type:disc}.tiptap ul ul ul ul ul ul ul ul{list-style-type:circle}.tiptap ul ul ul ul ul ul ul ul ul{list-style-type:square}.tiptap>ol{margin:20px 0!important;padding-left:18px!important}.tiptap ol{padding-left:14px;margin:0}.tiptap ol li{margin:0}.tiptap ol li p{line-height:28px}.tiptap ol li::marker{color:#1677ff}.tiptap ol ol{list-style-type:lower-alpha}.tiptap ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol{list-style-type:decimal}.tiptap ol ol ol ol ol{list-style-type:lower-alpha}.tiptap ol ol ol ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol ol ol ol{list-style-type:decimal}.tiptap ol ol ol ol ol ol ol ol{list-style-type:lower-alpha}.tiptap ol ol ol ol ol ol ol ol ol{list-style-type:lower-roman}.tiptap hr{margin:20px 0;border-top:.5px solid #d9d9d9}.ylz-editor{position:relative;height:100%;max-height:100%;min-height:100%;background:#fafcff;display:flex}.ylz-editor-container{margin:0;flex:1;overflow-y:auto}.ylz-editor-container>div{width:calc(100% - 268px)}.ylz-editor-container::-webkit-scrollbar{width:6px}.ylz-editor-container::-webkit-scrollbar-track{background-color:transparent}.ylz-editor-container::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:10px}.ylz-editor-container::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.ylz-editor-container-max>div{width:100%}.ylz-editor-container-read img.ProseMirror-selectednode{outline:none!important}.ylz-editor-tooltip{background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 2px #5c75991a;overflow:hidden}.ylz-editor-tooltip .ant-tooltip-inner{min-height:24px!important;padding:4px 8px;font-size:12px;font-weight:400;text-align:LEFT;color:#666;line-height:16px;border-radius:2px;text-align:justify}.tiptap-scroll::-webkit-scrollbar{width:8px;height:0px}.tiptap-scroll::-webkit-scrollbar-track{background-color:transparent}.tiptap-scroll::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tiptap-scroll::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.tiptap-scroll-row::-webkit-scrollbar{width:0px;height:8px}.tiptap-scroll-row::-webkit-scrollbar-track{background-color:transparent}.tiptap-scroll-row::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tiptap-scroll-row::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.tiptap h1,.tiptap h2,.tiptap h3,.tiptap h4,.tiptap h5,.tiptap h6{margin:20px 0!important;color:#333;font-weight:600}.tiptap h1{font-size:28px;line-height:38px}.tiptap h2{font-size:24px;line-height:34px}.tiptap h3{font-size:20px;line-height:30px}.tiptap h4{font-size:18px;line-height:28px}.tiptap h5{font-size:16px;line-height:26px}.tiptap h6{font-size:15px;line-height:24px}.tiptap-paragraph{font-size:14px;font-weight:400;color:#666;line-height:26px}.tiptap-title{font-size:28px;font-weight:600;color:block;line-height:38px;padding-bottom:20px;border-bottom:.5px solid #d9d9d9;margin-bottom:20px}.tiptap .tiptap-editor-nofocus-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:14px;font-weight:400;color:#ccc;line-height:26px}.tiptap .tiptap-title-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:28px;font-weight:600;color:#ccc;line-height:38px}.tiptap .tiptap-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:14px;font-weight:400;color:#ccc;line-height:26px}.bubble-menu{display:flex;justify-content:center;align-items:center;position:relative;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;height:28px;z-index:1;padding:0 4px}.bubble-menu .dropdownLine{height:14px;border-left:.5px solid #d9d9d9}.bubble-menu .bubble-menu-item{display:flex;justify-content:center;align-items:center;width:20px;height:20px;border-radius:2px}.bubble-menu .bubble-menu-item:hover{background:#f0f2f5}.bubble-menu .bubble-menu-other-item{display:flex;justify-content:center;align-items:center;width:30px;height:20px;border-radius:2px;cursor:pointer}.bubble-menu .bubble-menu-other-item .bubble-menu-other-item-icon{transition:transform .5s ease-in-out}.bubble-menu .bubble-menu-other-item:hover{background:#f0f2f5}.floating-menu{width:16px;height:16px;display:flex;justify-content:center;align-items:center;border-radius:4px;border:1px solid #e0e0e0;background:#fff;padding:4px;z-index:1}.floating-menu button{width:14px;height:14px;display:flex;align-items:center;justify-content:center}.tom{margin-top:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}.bubbleMenuDropdown{margin-top:10px}.bubbleMenuDropdown .ant-dropdown-menu{border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926}.bubbleMenuDropdown .ant-dropdown-menu-item{width:180px;height:28px;border-radius:2px}.bubbleMenuDropdown .ant-dropdown-menu-item:hover .MenuProps-item-left .MenuProps-item-left-text{color:#333!important}.bubbleMenuDropdown .ant-dropdown-menu-item:hover .MenuProps-item-left .MenuProps-item-left-svg svg{fill:#333}.bubbleMenuDropdown .MenuProps-item{display:flex;align-items:center;justify-content:space-between}.bubbleMenuDropdown .MenuProps-item .MenuProps-item-left{display:flex;align-items:center}.h-link{width:400px;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:24px;box-sizing:border-box}.h-link .h-link-bottoms{display:flex;justify-content:end;align-items:center;margin-top:10px}.h-link .h-link-bottoms .cancleBtn{display:flex;align-items:center;justify-content:center;width:64px;height:32px;background:#fff;border:1px solid #d9d9d9;border-radius:2px;color:#666;font-size:14px;cursor:pointer}.h-link .h-link-bottoms .conBtn{cursor:pointer;display:flex;align-items:center;justify-content:center;width:64px;height:32px;background:#1677ff;border-radius:2px;font-size:14px;color:#fff;margin-left:10px}.h-link .h-link-line{position:relative;display:flex;align-items:center;font-size:14px;color:#333;margin-bottom:20px}.h-link .h-link-line .h-link-line-tip{position:absolute;bottom:-22px;color:#ff4d4f;font-size:14px;left:45px}.h-link .h-link-line .text{text-wrap:nowrap;margin-right:16px}.h-link .h-link-line .ant-input{border:1px solid #e5e5e5;border-radius:2px;color:#666;font-size:14px}.h-link .h-link-line .ant-input-outlined:focus{border:1px solid #1677ff}.tippy-box[data-animation=scale-extreme][data-placement^=top]{transform-origin:bottom}.tippy-box[data-animation=scale-extreme][data-placement^=bottom]{transform-origin:top}.tippy-box[data-animation=scale-extreme][data-placement^=left]{transform-origin:right}.tippy-box[data-animation=scale-extreme][data-placement^=right]{transform-origin:left}.tippy-box[data-animation=scale-extreme][data-state=hidden]{transform:scale(0);opacity:.25}.catalogue{position:absolute;top:0;right:6px;bottom:0;width:262px}.catalogue-header{padding:40px 30px 20px;display:flex;align-items:center}.catalogue-header>span{font-size:16px;font-weight:500;color:#333;line-height:16px}.catalogue-header svg{margin-left:12px;cursor:pointer}.catalogue-main{max-height:calc(100% - 76px);padding-right:10px;border-left:1px solid #d9d9d9;overflow-y:auto}.catalogue-main::-webkit-scrollbar{width:6px}.catalogue-main::-webkit-scrollbar-track{background-color:transparent}.catalogue-main::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px}.catalogue-main::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.catalogue-main>div{padding-right:8px;height:28px;display:flex;align-items:center;cursor:pointer;position:relative}.catalogue-main>div .catalogue-collapse{margin-right:8px;width:14px;height:14px;display:flex}.catalogue-main>div .catalogue-collapse svg{fill:#999;transform:rotate(0);transition:all .5s}.catalogue-main>div .catalogue-collapse svg:hover{fill:#1677ff}.catalogue-main>div .collapsed svg{transform:rotate(-90deg)}.catalogue-main>div .catalogue-text{flex:1;font-size:13px;color:#666;line-height:initial;white-space:nowrap;word-break:break-all;text-overflow:ellipsis;overflow:hidden}.catalogue-main>div .catalogue-text:hover{color:#1677ff}.catalogue-main .active .catalogue-text{color:#1677ff!important}.catalogue-main .indent-level-1{padding-left:8px}.catalogue-main .indent-level-2{padding-left:16px}.catalogue-main .indent-level-3{padding-left:24px}.catalogue-main .indent-level-4{padding-left:32px}.catalogue-main .indent-level-5{padding-left:40px}.catalogue-main .indent-level-6{padding-left:48px}.catalogue-hover{right:0;width:268px;background:#fafcff;box-shadow:-4px 0 10px #0000000d;z-index:999}.catalogue-folded{position:absolute;top:calc(50% - 24px);right:0;display:flex;align-items:center;justify-content:center}.catalogue-folded div{width:27px;height:47px;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 2px #5c75991a;font-size:14px;font-weight:400;color:#666;line-height:16px;writing-mode:vertical-lr;letter-spacing:2px;display:flex;align-items:center;justify-content:center;cursor:pointer}.tiptap .code-block{position:relative;padding:32px 10px 0;border-radius:4px}.tiptap .code-block-header{position:absolute;left:10px;top:4px;right:10px;padding:0;width:auto;box-shadow:none;justify-content:space-between;display:flex}.tiptap .code-block-header-left .ant-select{margin-right:10px}.tiptap .code-block-header .ant-select-single{height:24px}.tiptap .code-block-header .ant-select .ant-select-selector{padding:0 10px;border-radius:2px;font-size:12px}.tiptap .code-block-header .ant-select .ant-select-selector .ant-select-selection-item{line-height:24px}.tiptap .code-block-header .ant-select .ant-select-selector .ant-select-selection-search-input{height:24px}.tiptap .code-block-header .ant-checkbox-wrapper{align-items:center}.tiptap .code-block-header .ant-checkbox .ant-checkbox-inner{border-radius:2px}.tiptap .code-block-header .ant-checkbox+span{padding-inline-start:4px;padding-inline-end:4px;font-size:12px}.tiptap .code-block-body{font-size:14px;box-shadow:none;max-height:500px;overflow-y:auto}.tiptap .code-block-body::-webkit-scrollbar{width:6px}.tiptap .code-block-body::-webkit-scrollbar-track{background-color:transparent}.tiptap .code-block-body::-webkit-scrollbar-thumb{border-radius:10px}.tiptap .code-block-action{padding:10px 0;display:flex;justify-content:flex-end}.tiptap .code-block-action .ant-btn{margin-left:10px}.tiptap .code-block-action-copy{position:relative}.tiptap .code-block-action-copy .copy-tip{position:absolute;left:10px;top:-28px;width:88px;height:24px;background:#fff;border-radius:2px;box-shadow:4px 4px 10px #615c9926;display:flex;align-items:center;justify-content:center}.tiptap .code-block-action-copy .copy-tip span{margin-left:4px;color:#666;font-size:12px}.tiptap .code-block-light,.tiptap .code-block-light .code-block-header{background:#f0f2f5}.tiptap .code-block-light .code-block-header .ant-select .ant-select-selector{background:#fff;border:.5px solid #d9d9d9}.tiptap .code-block-light .code-block-header .ant-select .ant-select-selection-item{color:#333}.tiptap .code-block-light .code-block-header .ant-checkbox .ant-checkbox-inner{border:1px solid #999999}.tiptap .code-block-light .code-block-header .ant-checkbox+span{color:#666}.tiptap .code-block-light .code-block-body{background:#f0f2f5;color:#666}.tiptap .code-block-light .code-block-body::-webkit-scrollbar-thumb{background-color:#e0e0e0}.tiptap .code-block-light .code-block-body::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.tiptap .code-block-dark,.tiptap .code-block-dark .code-block-header{background:#252525}.tiptap .code-block-dark .code-block-header .ant-select .ant-select-selector{background:#333;border:.5px solid #454545}.tiptap .code-block-dark .code-block-header .ant-select .ant-select-selection-item,.tiptap .code-block-dark .code-block-header .ant-select .ant-select-arrow{color:#ccc}.tiptap .code-block-dark .code-block-header .ant-checkbox .ant-checkbox-inner{border:1px solid #cccccc}.tiptap .code-block-dark .code-block-header .ant-checkbox+span{color:#ccc}.tiptap .code-block-dark .code-block-header .ant-checkbox-checked .ant-checkbox-inner{background-color:#1677ff;border-color:#1677ff}.tiptap .code-block-dark .code-block-body{background:#252525;color:#ccc}.tiptap .code-block-dark .code-block-body::-webkit-scrollbar-thumb{background-color:#444}.tiptap .code-block-dark .code-block-body::-webkit-scrollbar-thumb:hover{background-color:#666}.floatingmenu-tip{width:16px;height:16px;border:.5px solid #d9d9d9;border-radius:2px;display:flex;align-items:center;justify-content:center;cursor:pointer}.floatingmenu-tip:hover{background:#f0f2f5}.tiptap-menu{width:182px;box-sizing:border-box;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:10px 4px 4px}.tiptap-menu-item:not(:last-child){margin-bottom:20px}.tiptap-menu-item-title{font-size:12px;font-weight:400;text-align:LEFT;color:#999;line-height:12px;padding-bottom:10px;padding-left:16px;margin:0!important}.tiptap-menu-item-menus{display:flex;flex-wrap:wrap;gap:10px;padding:0 16px}.tiptap-menu-item-menus-light{background:#f0f2f5!important}.tiptap-menu-item-menus-item{width:20px;height:20px;border-radius:2px;cursor:pointer;display:flex;align-items:center;justify-content:center;--color: #666666;position:relative}.tiptap-menu-item-menus-item svg{fill:var(--color)}.tiptap-menu-item-menus-item:hover{background:#f0f2f5}.tiptap-menu-item-menus-item:hover:before{box-sizing:border-box;position:absolute;content:attr(data-tip);width:fit-content;left:50%;transform:translate(-50%);top:100%;white-space:nowrap;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;font-size:12px;font-weight:400;color:#666;line-height:12px;padding:4px;box-shadow:1px 1px 2px #5c75991a;z-index:100}.tiptap-menu-item-list-item{height:28px;border-radius:2px;cursor:pointer;display:flex;align-items:center}.tiptap-menu-item-list-item:hover{background:#f0f2f5}.tiptap-menu-item-list-item svg{margin:0 18px}.tiptap-menu-item-list-item span{font-size:13px;font-weight:400;text-align:LEFT;color:#666;line-height:13px}.tiptap-table-select{background-color:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:10px 15px;box-sizing:border-box;width:282px;position:relative;left:6px}.tiptap-table-select-title{padding-bottom:10px;display:flex;align-items:center;justify-content:space-between}.tiptap-table-select-title-left{font-size:12px}.tiptap-table-select-title-right{font-size:12px;color:#8a8a8a;letter-spacing:2px}.tiptap-table-select-content{border:1px solid #e5e5e5;display:flex;flex-wrap:wrap;padding:10px;gap:6px;cursor:pointer}.tiptap-table-select-content div{width:20px;height:20px;background-color:#e9e9e9;box-sizing:border-box;border:1px solid #e1e1e1}.tiptap-table-select-content div.light{background-color:#d0e4ff;border-color:#d0e4ff}.tiptap-changemenu{background:#fff;border:.5px solid #e5e5e5;border-radius:4px;padding:4px;box-shadow:0 2px 8px #615c9926}.tiptap-changemenu-item{width:72px;height:28px;border-radius:2px;display:flex;align-items:center;justify-content:left;font-size:13px;font-weight:400;text-align:LEFT;color:#666;line-height:13px;cursor:pointer}.tiptap-changemenu-item:hover{background:#f0f2f5}.tiptap-changemenu-item svg{margin-left:10px;margin-right:8px}.tiptap-changemenu-item-del svg{fill:#999!important}.tiptap-changemenu-item-del:hover{color:#f5222d!important}.tiptap-changemenu-item-del:hover svg{fill:#f5222d!important}.tiptap .tiptap-image{display:block;object-fit:contain;max-width:100%;max-height:100%;height:auto}.tiptap-paragraph a{position:relative;display:inline-block;color:#1677ff;text-decoration:none;cursor:pointer}.tiptap-paragraph a:hover{color:#1677ff;text-decoration:underline}.hoveValue{background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:0 2px 8px #615c9926;height:20px;box-sizing:border-box;padding:0 4px;color:#666;font-size:12px;display:flex;align-items:center}.lintView{height:28px;display:flex;align-items:center;padding:0 10px;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:0 2px 8px #615c9926;cursor:pointer}.lintView .lineValue{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#999;font-size:14px;box-sizing:border-box}.lintView .lineIcon{display:flex;justify-content:center;align-items:center;width:20px!important;height:20px!important;box-sizing:border-box;border-radius:2px}.lintView .lineIcon:hover{background:#f0f2f5}.link-tooltip{background:#f5f6fa!important;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 1px #5c75991a;overflow:hidden}.link-tooltip .ant-tooltip-inner{min-height:16px!important;padding:2px 4px;font-size:12px;font-weight:400;text-align:LEFT;color:#999;line-height:20px;border-radius:2px}.activeMd{box-shadow:0 2px 8px #615c9926;width:100%;padding:24px 30px;box-sizing:border-box;white-space:break-spaces;min-height:180px;display:flex;flex-direction:column;justify-content:center;max-width:600px;min-width:380px;font-family:none!important;line-height:26px;font-size:14px;color:#666;background:#fff}.activeMd img{margin:0!important}.node-active{margin:10px 0}.EditorClass{position:relative;width:100%}*:focus{outline:none;box-shadow:none}.EditorMark{position:absolute;width:100%;height:100%;z-index:999}.validateTitle img{max-width:100%}.questionTitle{width:100%;display:flex;align-items:center}.validateTitle{width:100%;margin-bottom:14px;position:relative}.validate-prompt{position:absolute;bottom:-20px}.validate-prompt-success{display:flex;align-items:center;color:#30c213;font-size:12px}.question-title-rigth{flex:1;font-size:15px;color:#333;line-height:21px;display:flex;align-items:center}.question-value{background:#fff;border:.5px solid #faad14;border-radius:2px;margin-bottom:-1px;margin-left:4px;font-size:11px;color:#faad14;box-sizing:border-box;padding:0 4px;background:#faad140d;line-height:16px}.question-type{background:#fff;border:.5px solid #1677ff;background:#1677ff0d;border-radius:2px;margin-bottom:-1px;margin-left:4px;font-size:11px;color:#1677ff;box-sizing:border-box;padding:0 4px;display:flex;justify-content:center;align-items:center;line-height:16px}.questSelect{width:100%;margin-top:20px;position:relative}.questSelectitem{width:100%;display:flex;margin-bottom:16px;align-items:center}.questSelectitem-left{width:16px;height:16px;border:1px solid #666;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;align-items:center;min-width:16px}.questSelectitem-left:hover{border:1px solid #1677FF!important}.questSelectitem-click{background:#1677ff;width:10px;height:10px;border-radius:50%}.questSelectitem-rigth{color:#666;font-size:14px;margin-left:10px;line-height:20px}.qusetion-prompt{position:absolute;bottom:-20px}.qusetion-prompt-success{display:flex;align-items:center;color:#30c213;font-size:12px}.qusetion-prompt-error{display:flex;align-items:center;color:#f5222d;font-size:12px}.questionSumbit{width:100%;padding-top:14px;display:flex;justify-content:center}.questionSumbit-btn{display:flex;color:#fff;font-size:14px;justify-content:center;align-items:center;padding:5px 30px;background:#1677ff;border-radius:2px;box-sizing:border-box;cursor:pointer}.novalue-btn{display:flex;color:#00000040;font-size:14px;justify-content:center;align-items:center;padding:4px 29px;background:#0000000a;box-sizing:border-box;border:1px solid #d9d9d9;border-radius:2px;cursor:pointer}.exec-btn{display:flex;color:#fff;font-size:14px;justify-content:center;align-items:center;padding:5px 30px;background:#1677ff;border-radius:2px;box-sizing:border-box;cursor:pointer}.last-btn{border:1px solid #d9d9d9;border-radius:2px;box-sizing:border-box;padding:5px 23px;color:#333;font-size:14px;cursor:pointer}.last-btn:hover{border:1px solid #1677FF;color:#1677ff}.questionSumbit-btn:hover{background:#4592ff}.tipContent{margin-top:40px;margin-bottom:14px}.tipValue{position:relative;width:100%;padding:10px 16px;border:.5px solid;border-image:linear-gradient(90deg,#faad141a,#faad1480 100%,#faad141a) .5 .5;border-radius:2px;box-shadow:0 2px 8px #faad141a;box-sizing:border-box;color:#666;font-size:14px;margin-top:8px}.tipIcon{position:absolute;right:0;top:0}.instructTip{margin-top:15px;margin-bottom:14px}.instructValue{background:#f5f6fa;border-radius:2px;padding:10px 16px;box-sizing:border-box;font-size:14px;color:#666;line-height:20px;margin-top:8px}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#abb2bf;background:#282c34}.hljs-comment,.hljs-quote{color:#5c6370;font-style:italic}.hljs-doctag,.hljs-keyword,.hljs-formula{color:#c678dd}.hljs-section,.hljs-name,.hljs-selector-tag,.hljs-deletion,.hljs-subst{color:#e06c75}.hljs-literal{color:#56b6c2}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string{color:#98c379}.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-type,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-number{color:#d19a66}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#61aeee}.hljs-built_in,.hljs-title.class_,.hljs-class .hljs-title{color:#e6c07b}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}.pdfShow{position:relative}.pdfShow .annotationLayer{display:none}.pdfShow .react-pdf__Page__canvas{max-width:100%!important;height:100%!important}.pdfShow .react-pdf__Page__annotations{display:none}.pagechange{display:flex;align-items:center;font-size:12px;color:#666;justify-content:center;width:100%;background:#fff;cursor:pointer}.react-pdf__Page{display:flex;justify-content:center}.nowPage{width:24px;height:24px;background:#fff;border:1px solid #d9d9d9;border-radius:2px;display:flex;justify-content:center;align-items:center;margin:0 6px}.nowPageInput{border:none;background:transparent;width:100%;text-align:center;font-size:12px;color:#666}.rpv-toolbar__pagination{display:none}
|
|
1
|
+
.tiptap{padding:30px 40px;max-width:1000px;box-sizing:border-box;margin:0 auto}.tiptap:focus{outline:none}.tiptap *{padding:0;margin:0}.tiptap .ant-btn{padding:0 16px;height:24px;background:#1677ff;border-radius:2px;font-size:12px;line-height:24px}.tiptap>.tiptap-image{margin:20px 0}.tiptap img.ProseMirror-selectednode{outline:2px solid #1677ff}.tiptap .inline-code{padding:2px 8px;background:#fff5ec;color:#f0861d;border-radius:2px}.tiptap .node-codeBlock{margin:20px 0}.tiptap blockquote{margin:20px 0;margin-inline-start:0!important;padding:8px 10px 8px 16px;background:#f0f2f5;color:#888;position:relative}.tiptap blockquote:after{position:absolute;left:0;bottom:0;width:4px;height:100%;background:#dcdee0;content:""}.tiptap .tableWrapper{margin:20px 0;max-width:100%;overflow-x:auto}.tiptap .tableWrapper::-webkit-scrollbar{width:0px;height:0px;cursor:default}.tiptap .tableWrapper:hover::-webkit-scrollbar{height:8px}.tiptap .tableWrapper::-webkit-scrollbar-track{background-color:transparent}.tiptap .tableWrapper::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tiptap .tableWrapper::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.tiptap .tableWrapper table{max-width:100%}.tiptap table{border-collapse:collapse;text-align:left}.tiptap table th{background:#f0f2f5}.tiptap table th p{font-weight:700;color:#333!important}.tiptap table th,.tiptap table td{border:.5px solid #d9d9d9!important;padding:8px 20px!important;color:#666!important}.tiptap>ul{margin:20px 0!important;padding-left:18px!important}.tiptap ul{padding-left:14px;margin:0}.tiptap ul li p{line-height:28px}.tiptap ul li::marker{color:#1677ff}.tiptap ul ul ul ul{list-style-type:disc}.tiptap ul ul ul ul ul{list-style-type:circle}.tiptap ul ul ul ul ul ul{list-style-type:square}.tiptap ul ul ul ul ul ul ul{list-style-type:disc}.tiptap ul ul ul ul ul ul ul ul{list-style-type:circle}.tiptap ul ul ul ul ul ul ul ul ul{list-style-type:square}.tiptap>ol{margin:20px 0!important;padding-left:18px!important}.tiptap ol{padding-left:14px;margin:0}.tiptap ol li{margin:0}.tiptap ol li p{line-height:28px}.tiptap ol li::marker{color:#1677ff}.tiptap ol ol{list-style-type:lower-alpha}.tiptap ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol{list-style-type:decimal}.tiptap ol ol ol ol ol{list-style-type:lower-alpha}.tiptap ol ol ol ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol ol ol ol{list-style-type:decimal}.tiptap ol ol ol ol ol ol ol ol{list-style-type:lower-alpha}.tiptap ol ol ol ol ol ol ol ol ol{list-style-type:lower-roman}.tiptap hr{margin:20px 0;border-top:.5px solid #d9d9d9}.ylz-editor{position:relative;height:100%;max-height:100%;min-height:100%;background:#fafcff;display:flex}.ylz-editor-container{margin:0;flex:1;overflow-y:auto}.ylz-editor-container>div{width:calc(100% - 268px)}.ylz-editor-container::-webkit-scrollbar{width:6px}.ylz-editor-container::-webkit-scrollbar-track{background-color:transparent}.ylz-editor-container::-webkit-scrollbar-thumb{background-color:#cfcfcf;border-radius:10px}.ylz-editor-container::-webkit-scrollbar-thumb:hover{background-color:#b3b3b3}.ylz-editor-container-max>div{width:100%}.ylz-editor-container-read img.ProseMirror-selectednode{outline:none!important}.ylz-editor-tooltip{background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 2px #5c75991a;overflow:hidden}.ylz-editor-tooltip .ant-tooltip-inner{min-height:24px!important;padding:4px 8px;font-size:12px;font-weight:400;text-align:LEFT;color:#666;line-height:16px;border-radius:2px;text-align:justify}.tiptap-scroll::-webkit-scrollbar{width:8px;height:0px}.tiptap-scroll::-webkit-scrollbar-track{background-color:transparent}.tiptap-scroll::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tiptap-scroll::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.tiptap-scroll-row::-webkit-scrollbar{width:0px;height:8px}.tiptap-scroll-row::-webkit-scrollbar-track{background-color:transparent}.tiptap-scroll-row::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tiptap-scroll-row::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.tiptap h1,.tiptap h2,.tiptap h3,.tiptap h4,.tiptap h5,.tiptap h6{margin:20px 0!important;color:#333;font-weight:600}.tiptap h1{font-size:28px;line-height:38px}.tiptap h2{font-size:24px;line-height:34px}.tiptap h3{font-size:20px;line-height:30px}.tiptap h4{font-size:18px;line-height:28px}.tiptap h5{font-size:16px;line-height:26px}.tiptap h6{font-size:15px;line-height:24px}.tiptap-paragraph{font-size:14px;font-weight:400;color:#666;line-height:26px}.tiptap-title{font-size:28px;font-weight:600;color:block;line-height:38px;padding-bottom:20px;border-bottom:.5px solid #d9d9d9;margin-bottom:20px}.tiptap .tiptap-editor-nofocus-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:14px;font-weight:400;color:#ccc;line-height:26px}.tiptap .tiptap-title-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:28px;font-weight:600;color:#ccc;line-height:38px}.tiptap .tiptap-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:14px;font-weight:400;color:#ccc;line-height:26px}.bubble-menu{display:flex;justify-content:center;align-items:center;position:relative;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;height:28px;z-index:1;padding:0 4px}.bubble-menu .dropdownLine{height:14px;border-left:.5px solid #d9d9d9}.bubble-menu .bubble-menu-item{display:flex;justify-content:center;align-items:center;width:20px;height:20px;border-radius:2px}.bubble-menu .bubble-menu-item:hover{background:#f0f2f5}.bubble-menu .bubble-menu-other-item{display:flex;justify-content:center;align-items:center;width:30px;height:20px;border-radius:2px;cursor:pointer}.bubble-menu .bubble-menu-other-item .bubble-menu-other-item-icon{transition:transform .5s ease-in-out}.bubble-menu .bubble-menu-other-item:hover{background:#f0f2f5}.floating-menu{width:16px;height:16px;display:flex;justify-content:center;align-items:center;border-radius:4px;border:1px solid #e0e0e0;background:#fff;padding:4px;z-index:1}.floating-menu button{width:14px;height:14px;display:flex;align-items:center;justify-content:center}.tom{margin-top:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}.bubbleMenuDropdown{margin-top:10px}.bubbleMenuDropdown .ant-dropdown-menu{border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926}.bubbleMenuDropdown .ant-dropdown-menu-item{width:180px;height:28px;border-radius:2px}.bubbleMenuDropdown .ant-dropdown-menu-item:hover .MenuProps-item-left .MenuProps-item-left-text{color:#333!important}.bubbleMenuDropdown .ant-dropdown-menu-item:hover .MenuProps-item-left .MenuProps-item-left-svg svg{fill:#333}.bubbleMenuDropdown .MenuProps-item{display:flex;align-items:center;justify-content:space-between}.bubbleMenuDropdown .MenuProps-item .MenuProps-item-left{display:flex;align-items:center}.h-link{width:400px;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:24px;box-sizing:border-box}.h-link .h-link-bottoms{display:flex;justify-content:end;align-items:center;margin-top:10px}.h-link .h-link-bottoms .cancleBtn{display:flex;align-items:center;justify-content:center;width:64px;height:32px;background:#fff;border:1px solid #d9d9d9;border-radius:2px;color:#666;font-size:14px;cursor:pointer}.h-link .h-link-bottoms .conBtn{cursor:pointer;display:flex;align-items:center;justify-content:center;width:64px;height:32px;background:#1677ff;border-radius:2px;font-size:14px;color:#fff;margin-left:10px}.h-link .h-link-line{position:relative;display:flex;align-items:center;font-size:14px;color:#333;margin-bottom:20px}.h-link .h-link-line .h-link-line-tip{position:absolute;bottom:-22px;color:#ff4d4f;font-size:14px;left:45px}.h-link .h-link-line .text{text-wrap:nowrap;margin-right:16px}.h-link .h-link-line .ant-input{border:1px solid #e5e5e5;border-radius:2px;color:#666;font-size:14px}.h-link .h-link-line .ant-input-outlined:focus{border:1px solid #1677ff}.tippy-box[data-animation=scale-extreme][data-placement^=top]{transform-origin:bottom}.tippy-box[data-animation=scale-extreme][data-placement^=bottom]{transform-origin:top}.tippy-box[data-animation=scale-extreme][data-placement^=left]{transform-origin:right}.tippy-box[data-animation=scale-extreme][data-placement^=right]{transform-origin:left}.tippy-box[data-animation=scale-extreme][data-state=hidden]{transform:scale(0);opacity:.25}.catalogue{position:absolute;top:0;right:6px;bottom:0;width:262px}.catalogue-header{padding:40px 30px 20px;display:flex;align-items:center}.catalogue-header>span{font-size:16px;font-weight:500;color:#333;line-height:16px}.catalogue-header svg{margin-left:12px;cursor:pointer}.catalogue-main{max-height:calc(100% - 76px);margin-right:2px;padding-right:10px;border-left:1px solid #d9d9d9;overflow-y:auto}.catalogue-main::-webkit-scrollbar{width:6px}.catalogue-main::-webkit-scrollbar-track{background-color:transparent}.catalogue-main::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px}.catalogue-main::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.catalogue-main>div{padding-right:8px;height:28px;display:flex;align-items:center;cursor:pointer;position:relative}.catalogue-main>div .catalogue-collapse{margin-right:8px;width:14px;height:14px;display:flex}.catalogue-main>div .catalogue-collapse svg{fill:#999;transform:rotate(0);transition:all .5s}.catalogue-main>div .catalogue-collapse svg:hover{fill:#1677ff}.catalogue-main>div .collapsed svg{transform:rotate(-90deg)}.catalogue-main>div .catalogue-text{flex:1;font-size:13px;color:#666;line-height:initial;white-space:nowrap;word-break:break-all;text-overflow:ellipsis;overflow:hidden}.catalogue-main>div .catalogue-text:hover{color:#1677ff}.catalogue-main .active .catalogue-text{color:#1677ff!important}.catalogue-main .indent-level-1{padding-left:8px}.catalogue-main .indent-level-2{padding-left:16px}.catalogue-main .indent-level-3{padding-left:24px}.catalogue-main .indent-level-4{padding-left:32px}.catalogue-main .indent-level-5{padding-left:40px}.catalogue-main .indent-level-6{padding-left:48px}.catalogue-hover{right:0;width:268px;background:#fafcff;box-shadow:-4px 0 10px #0000000d;z-index:999}.catalogue-folded{position:absolute;top:calc(50% - 24px);right:0;display:flex;align-items:center;justify-content:center}.catalogue-folded div{width:27px;height:47px;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 2px #5c75991a;font-size:14px;font-weight:400;color:#666;line-height:16px;writing-mode:vertical-lr;letter-spacing:2px;display:flex;align-items:center;justify-content:center;cursor:pointer}.tiptap .code-block{position:relative;padding:32px 10px 0;border-radius:4px}.tiptap .code-block-header{position:absolute;left:10px;top:4px;right:10px;padding:0;width:auto;box-shadow:none;justify-content:space-between;display:flex}.tiptap .code-block-header-left .ant-select{margin-right:10px}.tiptap .code-block-header .ant-select-single{height:24px}.tiptap .code-block-header .ant-select .ant-select-selector{padding:0 10px;border-radius:2px;font-size:12px}.tiptap .code-block-header .ant-select .ant-select-selector .ant-select-selection-item{line-height:24px}.tiptap .code-block-header .ant-select .ant-select-selector .ant-select-selection-search-input{height:24px}.tiptap .code-block-header .ant-checkbox-wrapper{align-items:center}.tiptap .code-block-header .ant-checkbox .ant-checkbox-inner{border-radius:2px}.tiptap .code-block-header .ant-checkbox+span{padding-inline-start:4px;padding-inline-end:4px;font-size:12px}.tiptap .code-block-body{font-size:14px;box-shadow:none;max-height:500px;overflow-y:auto}.tiptap .code-block-body::-webkit-scrollbar{width:6px}.tiptap .code-block-body::-webkit-scrollbar-track{background-color:transparent}.tiptap .code-block-body::-webkit-scrollbar-thumb{border-radius:10px}.tiptap .code-block-action{padding:10px 0;display:flex;justify-content:flex-end}.tiptap .code-block-action .ant-btn{margin-left:10px}.tiptap .code-block-action-copy{position:relative}.tiptap .code-block-action-copy .copy-tip{position:absolute;left:10px;top:-28px;width:88px;height:24px;background:#fff;border-radius:2px;box-shadow:4px 4px 10px #615c9926;display:flex;align-items:center;justify-content:center}.tiptap .code-block-action-copy .copy-tip span{margin-left:4px;color:#666;font-size:12px}.tiptap .code-block-light,.tiptap .code-block-light .code-block-header{background:#f0f2f5}.tiptap .code-block-light .code-block-header .ant-select .ant-select-selector{background:#fff;border:.5px solid #d9d9d9}.tiptap .code-block-light .code-block-header .ant-select .ant-select-selection-item{color:#333}.tiptap .code-block-light .code-block-header .ant-checkbox .ant-checkbox-inner{border:1px solid #999999}.tiptap .code-block-light .code-block-header .ant-checkbox+span{color:#666}.tiptap .code-block-light .code-block-body{background:#f0f2f5;color:#666}.tiptap .code-block-light .code-block-body::-webkit-scrollbar-thumb{background-color:#e0e0e0}.tiptap .code-block-light .code-block-body::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.tiptap .code-block-dark,.tiptap .code-block-dark .code-block-header{background:#252525}.tiptap .code-block-dark .code-block-header .ant-select .ant-select-selector{background:#333;border:.5px solid #454545}.tiptap .code-block-dark .code-block-header .ant-select .ant-select-selection-item,.tiptap .code-block-dark .code-block-header .ant-select .ant-select-arrow{color:#ccc}.tiptap .code-block-dark .code-block-header .ant-checkbox .ant-checkbox-inner{border:1px solid #cccccc}.tiptap .code-block-dark .code-block-header .ant-checkbox+span{color:#ccc}.tiptap .code-block-dark .code-block-header .ant-checkbox-checked .ant-checkbox-inner{background-color:#1677ff;border-color:#1677ff}.tiptap .code-block-dark .code-block-body{background:#252525;color:#ccc}.tiptap .code-block-dark .code-block-body::-webkit-scrollbar-thumb{background-color:#444}.tiptap .code-block-dark .code-block-body::-webkit-scrollbar-thumb:hover{background-color:#666}.floatingmenu-tip{width:16px;height:16px;border:.5px solid #d9d9d9;border-radius:2px;display:flex;align-items:center;justify-content:center;cursor:pointer}.floatingmenu-tip:hover{background:#f0f2f5}.tiptap-menu{width:182px;box-sizing:border-box;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:10px 4px 4px}.tiptap-menu-item:not(:last-child){margin-bottom:20px}.tiptap-menu-item-title{font-size:12px;font-weight:400;text-align:LEFT;color:#999;line-height:12px;padding-bottom:10px;padding-left:16px;margin:0!important}.tiptap-menu-item-menus{display:flex;flex-wrap:wrap;gap:10px;padding:0 16px}.tiptap-menu-item-menus-light{background:#f0f2f5!important}.tiptap-menu-item-menus-item{width:20px;height:20px;border-radius:2px;cursor:pointer;display:flex;align-items:center;justify-content:center;--color: #666666;position:relative}.tiptap-menu-item-menus-item svg{fill:var(--color)}.tiptap-menu-item-menus-item:hover{background:#f0f2f5}.tiptap-menu-item-menus-item:hover:before{box-sizing:border-box;position:absolute;content:attr(data-tip);width:fit-content;left:50%;transform:translate(-50%);top:100%;white-space:nowrap;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;font-size:12px;font-weight:400;color:#666;line-height:12px;padding:4px;box-shadow:1px 1px 2px #5c75991a;z-index:100}.tiptap-menu-item-list-item{height:28px;border-radius:2px;cursor:pointer;display:flex;align-items:center}.tiptap-menu-item-list-item:hover{background:#f0f2f5}.tiptap-menu-item-list-item svg{margin:0 18px}.tiptap-menu-item-list-item span{font-size:13px;font-weight:400;text-align:LEFT;color:#666;line-height:13px}.tiptap-table-select{background-color:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:10px 15px;box-sizing:border-box;width:282px;position:relative;left:6px}.tiptap-table-select-title{padding-bottom:10px;display:flex;align-items:center;justify-content:space-between}.tiptap-table-select-title-left{font-size:12px}.tiptap-table-select-title-right{font-size:12px;color:#8a8a8a;letter-spacing:2px}.tiptap-table-select-content{border:1px solid #e5e5e5;display:flex;flex-wrap:wrap;padding:10px;gap:6px;cursor:pointer}.tiptap-table-select-content div{width:20px;height:20px;background-color:#e9e9e9;box-sizing:border-box;border:1px solid #e1e1e1}.tiptap-table-select-content div.light{background-color:#d0e4ff;border-color:#d0e4ff}.tiptap-changemenu{background:#fff;border:.5px solid #e5e5e5;border-radius:4px;padding:4px;box-shadow:0 2px 8px #615c9926}.tiptap-changemenu-item{width:72px;height:28px;border-radius:2px;display:flex;align-items:center;justify-content:left;font-size:13px;font-weight:400;text-align:LEFT;color:#666;line-height:13px;cursor:pointer}.tiptap-changemenu-item:hover{background:#f0f2f5}.tiptap-changemenu-item svg{margin-left:10px;margin-right:8px}.tiptap-changemenu-item-del svg{fill:#999!important}.tiptap-changemenu-item-del:hover{color:#f5222d!important}.tiptap-changemenu-item-del:hover svg{fill:#f5222d!important}.tiptap .tiptap-image{display:block;object-fit:contain;max-width:100%;max-height:100%;height:auto}.tiptap-paragraph a{position:relative;display:inline-block;color:#1677ff;text-decoration:none;cursor:pointer}.tiptap-paragraph a:hover{color:#1677ff;text-decoration:underline}.hoveValue{background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:0 2px 8px #615c9926;height:20px;box-sizing:border-box;padding:0 4px;color:#666;font-size:12px;display:flex;align-items:center}.lintView{height:28px;display:flex;align-items:center;padding:0 10px;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:0 2px 8px #615c9926;cursor:pointer}.lintView .lineValue{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#999;font-size:14px;box-sizing:border-box}.lintView .lineIcon{display:flex;justify-content:center;align-items:center;width:20px!important;height:20px!important;box-sizing:border-box;border-radius:2px}.lintView .lineIcon:hover{background:#f0f2f5}.link-tooltip{background:#f5f6fa!important;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 1px #5c75991a;overflow:hidden}.link-tooltip .ant-tooltip-inner{min-height:16px!important;padding:2px 4px;font-size:12px;font-weight:400;text-align:LEFT;color:#999;line-height:20px;border-radius:2px}.activeMd{box-shadow:0 2px 8px #615c9926;width:100%;padding:24px 30px;box-sizing:border-box;white-space:break-spaces;min-height:180px;display:flex;flex-direction:column;justify-content:center;max-width:600px;min-width:380px;font-family:none!important;line-height:26px;font-size:14px;color:#666;background:#fff}.activeMd img{margin:0!important}.node-active{margin:10px 0}.EditorClass{position:relative;width:100%}*:focus{outline:none;box-shadow:none}.EditorMark{position:absolute;width:100%;height:100%;z-index:999}.validateTitle img{max-width:100%}.questionTitle{width:100%;display:flex;align-items:center}.validateTitle{width:100%;margin-bottom:14px;position:relative}.validate-prompt{position:absolute;bottom:-20px}.validate-prompt-success{display:flex;align-items:center;color:#30c213;font-size:12px}.question-title-rigth{flex:1;font-size:15px;color:#333;line-height:21px;display:flex;align-items:center}.question-value{background:#fff;border:.5px solid #faad14;border-radius:2px;margin-bottom:-1px;margin-left:4px;font-size:11px;color:#faad14;box-sizing:border-box;padding:0 4px;background:#faad140d;line-height:16px}.question-type{background:#fff;border:.5px solid #1677ff;background:#1677ff0d;border-radius:2px;margin-bottom:-1px;margin-left:4px;font-size:11px;color:#1677ff;box-sizing:border-box;padding:0 4px;display:flex;justify-content:center;align-items:center;line-height:16px}.questSelect{width:100%;margin-top:20px;position:relative}.questSelectitem{width:100%;display:flex;margin-bottom:16px;align-items:center}.questSelectitem-left{width:16px;height:16px;border:1px solid #666;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;align-items:center;min-width:16px}.questSelectitem-left:hover{border:1px solid #1677FF!important}.questSelectitem-click{background:#1677ff;width:10px;height:10px;border-radius:50%}.questSelectitem-rigth{color:#666;font-size:14px;margin-left:10px;line-height:20px}.qusetion-prompt{position:absolute;bottom:-20px}.qusetion-prompt-success{display:flex;align-items:center;color:#30c213;font-size:12px}.qusetion-prompt-error{display:flex;align-items:center;color:#f5222d;font-size:12px}.questionSumbit{width:100%;padding-top:14px;display:flex;justify-content:center}.questionSumbit-btn{display:flex;color:#fff;font-size:14px;justify-content:center;align-items:center;padding:5px 30px;background:#1677ff;border-radius:2px;box-sizing:border-box;cursor:pointer}.novalue-btn{display:flex;color:#00000040;font-size:14px;justify-content:center;align-items:center;padding:4px 29px;background:#0000000a;box-sizing:border-box;border:1px solid #d9d9d9;border-radius:2px;cursor:pointer}.exec-btn{display:flex;color:#fff;font-size:14px;justify-content:center;align-items:center;padding:5px 30px;background:#1677ff;border-radius:2px;box-sizing:border-box;cursor:pointer}.last-btn{border:1px solid #d9d9d9;border-radius:2px;box-sizing:border-box;padding:5px 23px;color:#333;font-size:14px;cursor:pointer}.last-btn:hover{border:1px solid #1677FF;color:#1677ff}.questionSumbit-btn:hover{background:#4592ff}.tipContent{margin-top:40px;margin-bottom:14px}.tipValue{position:relative;width:100%;padding:10px 16px;border:.5px solid;border-image:linear-gradient(90deg,#faad141a,#faad1480 100%,#faad141a) .5 .5;border-radius:2px;box-shadow:0 2px 8px #faad141a;box-sizing:border-box;color:#666;font-size:14px;margin-top:8px}.tipIcon{position:absolute;right:0;top:0}.instructTip{margin-top:15px;margin-bottom:14px}.instructValue{background:#f5f6fa;border-radius:2px;padding:10px 16px;box-sizing:border-box;font-size:14px;color:#666;line-height:20px;margin-top:8px}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#abb2bf;background:#282c34}.hljs-comment,.hljs-quote{color:#5c6370;font-style:italic}.hljs-doctag,.hljs-keyword,.hljs-formula{color:#c678dd}.hljs-section,.hljs-name,.hljs-selector-tag,.hljs-deletion,.hljs-subst{color:#e06c75}.hljs-literal{color:#56b6c2}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string{color:#98c379}.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-type,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-number{color:#d19a66}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#61aeee}.hljs-built_in,.hljs-title.class_,.hljs-class .hljs-title{color:#e6c07b}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}.pdfShow{position:relative}.pdfShow .annotationLayer{display:none}.pdfShow .react-pdf__Page__canvas{max-width:100%!important;height:100%!important}.pdfShow .react-pdf__Page__annotations{display:none}.pagechange{display:flex;align-items:center;font-size:12px;color:#666;justify-content:center;width:100%;background:#fff;cursor:pointer}.react-pdf__Page{display:flex;justify-content:center}.nowPage{width:24px;height:24px;background:#fff;border:1px solid #d9d9d9;border-radius:2px;display:flex;justify-content:center;align-items:center;margin:0 6px}.nowPageInput{border:none;background:transparent;width:100%;text-align:center;font-size:12px;color:#666}.rpv-toolbar__pagination{display:none}
|