@nocobase/plugin-field-markdown-vditor 2.1.0-alpha.10 → 2.1.0-alpha.11

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.
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ "use strict";(self.webpackChunk_nocobase_plugin_field_markdown_vditor=self.webpackChunk_nocobase_plugin_field_markdown_vditor||[]).push([["715"],{590:function(e,t,r){r.r(t),r.d(t,{default:function(){return R},MarkdownVditor:function(){return O}});var n=r(230),o=r(342),l=r(59),a=r(155),i=r.n(a),u=r(597),c=r.n(u),s=r(303),d=function(){var e=(0,o.usePlugin)(s.PluginFieldMarkdownVditorClient);return e.dependencyLoaded||(e.initVditorDependency(),e.dependencyLoaded=!0),e.getCDN()},f=(0,o.genStyleHook)("nb-field-markdown-vditor",function(e){var t,r,n;return t={},r=e.componentCls,n={".vditor-reset":{fontSize:"".concat(e.fontSize,"px !important"),color:"unset",padding:"10px !important"},".vditor":{borderRadius:8},".vditor .vditor-content":{borderRadius:"0 0 8px 8px",overflow:"hidden"},".vditor .vditor-toolbar":{paddingLeft:" 16px !important",borderRadius:"8px 8px 0 0"},".vditor .vditor-content .vditor-ir .vditor-reset":{paddingLeft:" 16px !important"},".vditor-ir pre.vditor-reset":{backgroundColor:"".concat(e.colorBgContainer,"!important")}},r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t});function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var l=[],a=!0,i=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(l.push(r.value),!t||l.length!==t);a=!0);}catch(e){i=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(i)throw n}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var m=function(e){if(e){var t=document.createRange();return t.selectNodeContents(e),t.getBoundingClientRect().width}};function y(e){var t,r=(0,a.useRef)(null),n=f(),o=n.wrapSSR,l=n.componentCls,u=n.hashId,s=d();return(0,a.useEffect)(function(){var t;c().preview(r.current,null!=(t=e.value)?t:"",{mode:"light",cdn:s}),setTimeout(function(){var e;null==(e=r.current)||e.querySelectorAll("img").forEach(function(e){e.style.cursor="zoom-in",e.addEventListener("click",function(){var t=e.src;if(!document.getElementById("custom-image-preview")){var r=document.createElement("span");r.id="custom-image-preview",Object.assign(r.style,{position:"fixed",inset:"0",backgroundColor:"rgba(0,0,0,0.85)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:"9999",cursor:"zoom-out"});var n=document.createElement("img");n.src=t,Object.assign(n.style,{maxWidth:"90%",maxHeight:"90%",borderRadius:"8px",boxShadow:"0 0 20px rgba(0,0,0,0.5)",transition:"transform 0.2s",cursor:"zoom-out"}),r.addEventListener("click",function(){document.body.removeChild(r)}),r.appendChild(n),document.body.appendChild(r)}})})},0)},[e.value]),o(i().createElement("span",{className:"".concat(u," ").concat(l)},i().createElement("span",{ref:r,style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({border:"none"},null!=(t=null==e?void 0:e.style)?t:{})})))}var b=(0,o.withDynamicSchemaProps)(function(e){var t,r=(0,n.useField)(),o=null!=(t=e.value)?t:null==r?void 0:r.value,u=d(),s=(0,a.useRef)(),f=p((0,a.useState)(!1),2),v=f[0],b=f[1],h=p((0,a.useState)(!1),2),g=h[0],w=h[1],S=p((0,a.useState)(""),2),x=S[0],E=S[1],C=(0,a.useRef)();(0,a.useEffect)(function(){if(e.value&&(!r||(null==r?void 0:r.value)))if(e.ellipsis)c().md2html(e.value,{mode:"light",cdn:u}).then(function(e){var t,r;E(((t=document.createElement("div")).innerHTML=e,r=t.innerText,t=null,(null==r?void 0:r.replace(/[\n\r]/g,""))||""))}).catch(function(){return E("")});else{var t;c().preview(s.current,null!=(t=e.value)?t:null==r?void 0:r.value,{mode:"light",cdn:u})}},[e.value,e.ellipsis,null==r?void 0:r.value]);var O=(0,a.useCallback)(function(){var e;return!!C.current&&m(C.current)>(null==(e=C.current)?void 0:e.offsetWidth)},[C]);return e.ellipsis?i().createElement(l.Popover,{open:v,onOpenChange:function(e){b(g&&e)},content:i().createElement(y,{value:o,style:{maxWidth:500,maxHeight:400,overflowY:"auto"}})},i().createElement("div",{ref:C,style:{overflow:"hidden",overflowWrap:"break-word",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-all"},onMouseEnter:function(e){var t=e.target;O()&&w(t.scrollWidth>=t.clientWidth)}},x)):i().createElement(y,{value:o})}),h=r(953),g=r(280),w=r(872);function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function x(e,t,r,n,o,l,a){try{var i=e[l](a),u=i.value}catch(e){r(e);return}i.done?t(u):Promise.resolve(u).then(n,o)}var E=["en_US","fr_FR","pt_BR","ja_JP","ko_KR","ru_RU","sv_SE","zh_CN","zh_TW"],C=(0,o.withDynamicSchemaProps)(function(e){var t,r=e.disabled,n=e.onChange,l=e.value,u=e.fileCollection,s=e.toolbar,v=e.editMode,p=void 0===v?"ir":v,m=function(e){if(Array.isArray(e))return e}(t=(0,a.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(t=n.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return o}}(t)||function(e){if(e){if("string"==typeof e)return S(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return S(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=m[0],b=m[1],C=(0,a.useRef)(),O=(0,a.useRef)(!1),R=(0,a.useRef)(null),k=(0,a.useRef)(null),_=(0,o.useAPIClient)(),j=d(),A=f(),I=A.wrapSSR,P=A.hashId,T=A.componentCls,L=_.auth.locale||"en-US",M=(0,o.usePlugin)("@nocobase/plugin-file-manager"),N=(0,o.useCompile)(),z=(0,a.useRef)(N);z.current=N;var F=(0,h.useTranslation)().t,V=(0,o.useZIndexContext)(),W=(0,o.getZIndex)("drawer",V+1e3,0),q=(0,a.useMemo)(function(){var e=L.replace(/-/g,"_");return E.includes(e)?e:"en_US"},[L]);return(0,a.useEffect)(function(){if(R.current){var e=null!=s?s:g.r,t=new(c())(R.current,{value:null!=l?l:"",lang:q,cache:{enable:!1},undoDelay:0,preview:{math:{engine:"KaTeX"}},toolbar:e,fullscreen:{index:1200},cdn:j,minHeight:200,mode:p,after:function(){C.current=t,b(!0);var e=window.scrollX||window.pageXOffset,n=window.scrollY||window.pageYOffset;t.setValue(null!=l?l:""),requestAnimationFrame(function(){window.scrollTo(e,n)}),r?t.disabled():t.enable()},input:function(e){n(e)},upload:{multiple:!1,fieldName:"file",handler:function(e){var r;return(r=function(){var r,n,o,l,a,i,c,s,d,f,v,p,m,y,b;return function(e,t){var r,n,o,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),i=Object.defineProperty;return i(a,"next",{value:u(0)}),i(a,"throw",{value:u(1)}),i(a,"return",{value:u(2)}),"function"==typeof Symbol&&i(a,Symbol.iterator,{value:function(){return this}}),a;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(l=0)),l;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return l.label++,{value:c[1],done:!1};case 5:l.label++,n=c[1],c=[0];continue;case 7:c=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){l=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){l.label=c[1];break}if(6===c[0]&&l.label<o[1]){l.label=o[1],o=c;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(c);break}o[2]&&l.ops.pop(),l.trys.pop();continue}c=t.call(e,l)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(h){switch(h.label){case 0:return s=e[0],t.focus(),[4,_.resource("vditor").check({fileCollectionName:u})];case 1:if(!(null==(d=h.sent().data)||null==(r=d.data)?void 0:r.isSupportToUploadFiles))return t.tip(F("vditor.uploadError.message",{ns:w.C,storageTitle:null==(f=d.data.storage)?void 0:f.title}),0),[2];return t.tip(F("uploading"),0),[4,M.uploadFile({file:s,fileCollectionName:u,storageId:null==d||null==(o=d.data)||null==(n=o.storage)?void 0:n.id,storageType:null==d||null==(a=d.data)||null==(l=a.storage)?void 0:l.type,storageRules:null==d||null==(c=d.data)||null==(i=c.storage)?void 0:i.rules})];case 2:if(p=(v=h.sent()).data,m=v.errorMessage)return t.tip(z.current(m),3e3),[2];if(!p)return t.tip(F("Response data is empty",{ns:w.C}),3e3),[2];return y=p.filename,b=p.url,s.type.startsWith("image/")?t.insertValue("![".concat(y,"](").concat(b,")")):t.insertValue("[".concat(y,"](").concat(b,")")),t.tip(F(""),10),[2,null]}})},function(){var e=this,t=arguments;return new Promise(function(n,o){var l=r.apply(e,t);function a(e){x(l,n,o,a,i,"next",e)}function i(e){x(l,n,o,a,i,"throw",e)}a(void 0)})})()}}}),o=R.current;if(o){var a=new MutationObserver(function(){var e=o.classList.contains("vditor--fullscreen"),t=o.querySelectorAll(".vditor-reset"),r=o.querySelectorAll(".vditor-toolbar");t.forEach(function(t){t.style.padding=e?"10px 200px":""}),r.forEach(function(t){t.style.paddingLeft=e?"200px":""})});return a.observe(o,{attributes:!0,attributeFilter:["class"]}),function(){var e;null==(e=C.current)||e.destroy(),C.current=void 0,a.disconnect()}}}},[null==s?void 0:s.join(","),p]),(0,a.useEffect)(function(){if(y&&C.current){var e=C.current;if(l!==e.getValue()){var t,r,n,o,a=window.scrollX||window.pageXOffset,i=window.scrollY||window.pageYOffset;e.setValue(null!=l?l:"");var u=null==(t=R.current)?void 0:t.querySelector("div.vditor-content > div.vditor-ir > pre"),c=null==(r=R.current)?void 0:r.querySelector(".vditor-content"),s=u&&(document.activeElement===u||u.contains(document.activeElement)||(null==(o=document.activeElement)||null==(n=o.closest)?void 0:n.call(o,".vditor-content"))===c);if(u&&s){var d=document.createRange(),f=window.getSelection();f&&(d.selectNodeContents(u),d.collapse(!1),f.removeAllRanges(),f.addRange(d))}s||requestAnimationFrame(function(){window.scrollTo(a,i)})}}},[l,y]),(0,a.useEffect)(function(){y&&C.current&&(r?C.current.disabled():C.current.enable())},[r,y]),(0,a.useEffect)(function(){if(k.current){var e=new MutationObserver(function(e){var t=!0,r=!1,n=void 0;try{for(var o,l=e[Symbol.iterator]();!(t=(o=l.next()).done);t=!0){var a=o.value,i=!0,u=!1,c=void 0;try{for(var s,d=Array.from(a.addedNodes)[Symbol.iterator]();!(i=(s=d.next()).done);i=!0){var f,v=s.value;f=HTMLElement,(null!=f&&"u">typeof Symbol&&f[Symbol.hasInstance]?!!f[Symbol.hasInstance](v):v instanceof f)&&v.classList.contains("vditor-img")&&(k.current.appendChild(v),v.style.zIndex=String(W))}}catch(e){u=!0,c=e}finally{try{i||null==d.return||d.return()}finally{if(u)throw c}}}}catch(e){r=!0,n=e}finally{try{t||null==l.return||l.return()}finally{if(r)throw n}}});return e.observe(document.body,{childList:!0}),function(){e.disconnect()}}},[W]),(0,a.useLayoutEffect)(function(){if(R.current){var e=new ResizeObserver(function(e){var t=!0,r=!1,n=void 0;try{for(var o,l=e[Symbol.iterator]();!(t=(o=l.next()).done);t=!0){var a,i=o.value.target;i.className.includes("vditor--fullscreen")?(document.body.appendChild(i),O.current=!0):O.current&&(null==(a=k.current)||a.appendChild(i),O.current=!1)}}catch(e){r=!0,n=e}finally{try{t||null==l.return||l.return()}finally{if(r)throw n}}});return e.observe(R.current),function(){e.unobserve(R.current)}}},[]),I(i().createElement("div",{ref:k,className:"".concat(P," ").concat(T)},i().createElement("div",{ref:R})))}),O=(0,o.withDynamicSchemaProps)((0,n.connect)(C,(0,n.mapReadPretty)(b))),R=O}}]);
@@ -7,4 +7,4 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
 
10
- !function(n,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("react-i18next"),require("@formily/react"),require("@nocobase/flow-engine"),require("react"),require("antd"),require("@nocobase/client"),require("@nocobase/utils/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-field-markdown-vditor",["react-i18next","@formily/react","@nocobase/flow-engine","react","antd","@nocobase/client","@nocobase/utils/client"],o):"object"==typeof exports?exports["@nocobase/plugin-field-markdown-vditor"]=o(require("react-i18next"),require("@formily/react"),require("@nocobase/flow-engine"),require("react"),require("antd"),require("@nocobase/client"),require("@nocobase/utils/client")):n["@nocobase/plugin-field-markdown-vditor"]=o(n["react-i18next"],n["@formily/react"],n["@nocobase/flow-engine"],n.react,n.antd,n["@nocobase/client"],n["@nocobase/utils/client"])}(self,function(n,o,e,t,r,i,a){return function(){var l,d,c,s={303:function(n,o,e){"use strict";e.r(o),e.d(o,{default:function(){return $},PluginFieldMarkdownVditorClient:function(){return J}});var t=e(342),r=e(673),i=e.n(r),a=e(598),l=e.n(a),d=e(262),c=e.n(d),s=e(657),p=e.n(s),u=e(357),v=e.n(u),f=e(626),b=e.n(f),h=e(925),g={};g.styleTagTransform=b(),g.setAttributes=p(),g.insert=c().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=v(),i()(h.A,g),h.A&&h.A.locals&&h.A.locals;var m=e(694),y=e(155),x=e.n(y);function w(n,o){(null==o||o>n.length)&&(o=n.length);for(var e=0,t=Array(o);e<o;e++)t[e]=n[e];return t}function k(n,o,e,t,r,i,a){try{var l=n[i](a),d=l.value}catch(n){e(n);return}l.done?o(d):Promise.resolve(d).then(t,r)}function _(n){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function j(n,o){return(j=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n})(n,o)}function O(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(O=function(){return!!n})()}var z=function(n){var o,e=n.value,t=n.markdown,r=n.liquid,i=n.t,a=n.textOnly,l=n.ctx,d=n.overflowMode,c=n.parseLiquid,s=void 0!==c&&c,p=function(n){if(Array.isArray(n))return n}(o=(0,y.useState)(null))||function(n){var o,e,t=null==n?null:"u">typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r=[],i=!0,a=!1;try{for(t=t.call(n);!(i=(o=t.next()).done)&&(r.push(o.value),2!==r.length);i=!0);}catch(n){a=!0,e=n}finally{try{i||null==t.return||t.return()}finally{if(a)throw e}}return r}}(o)||function(n){if(n){if("string"==typeof n)return w(n,2);var o=Object.prototype.toString.call(n).slice(8,-1);if("Object"===o&&n.constructor&&(o=n.constructor.name),"Map"===o||"Set"===o)return Array.from(o);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return w(n,2)}}(o)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),u=p[0],v=p[1];return(0,y.useEffect)(function(){if(e){var n;(n=function(){var n,o,c;return function(n,o){var e,t,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:d(0)}),l(a,"throw",{value:d(1)}),l(a,"return",{value:d(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function d(l){return function(d){var c=[l,d];if(e)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(e=1,t&&(r=2&c[0]?t.return:c[0]?t.throw||((r=t.return)&&r.call(t),0):t.next)&&!(r=r.call(t,c[1])).done)return r;switch(t=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,t=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(6===c[0]&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=o.call(n,i)}catch(n){c=[6,n],t=0}finally{e=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(p){switch(p.label){case 0:if(p.trys.push([0,4,,5]),!s)return[3,2];return[4,r.renderWithFullContext(e,l)];case 1:return o=p.sent(),[3,3];case 2:o=e,p.label=3;case 3:return n=o,v(t.render(i(n),{ellipsis:"ellipsis"===d,textOnly:a})),[3,5];case 4:return c=p.sent(),v('<pre style="color:red;"> 渲染错误: '.concat(c.message,"</pre>")),[3,5];case 5:return[2]}})},function(){var o=this,e=arguments;return new Promise(function(t,r){var i=n.apply(o,e);function a(n){k(i,t,r,a,l,"next",n)}function l(n){k(i,t,r,a,l,"throw",n)}a(void 0)})})()}},[e,a,d]),u},S=function(n){var o;if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");function e(){var n,o;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");return n=e,o=arguments,n=_(n),function(n,o){var e;if(o&&("object"==((e=o)&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof o))return o;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,O()?Reflect.construct(n,o||[],_(this).constructor):n.apply(this,o))}return e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&j(e,n),o=[{key:"renderComponent",value:function(n){if(!n)return null;var o=this.context,e=o.markdown,t=o.liquid,r=o.t,i=this.props,a=i.textOnly,l=i.overflowMode;return x().createElement(z,{value:n,markdown:e,liquid:t,t:r,textOnly:a,ctx:this.context,overflowMode:l})}}],function(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}(e.prototype,o),e}(t.DisplayTitleFieldModel);S.define({label:(0,m.escapeT)("MarkdownVditor")}),S.registerFlow({key:"markdownVditorSettings",title:(0,t.tval)("Content settings"),sort:200,steps:{renderMode:{use:"renderMode"}}}),m.DisplayItemModel.bindModelToInterface("DisplayVditorFieldModel",["vditor","markdown"],{isDefault:!0});function E(n){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function A(n,o){return(A=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n})(n,o)}function P(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(P=function(){return!!n})()}var T=function(n){var o;if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");function e(){var n,o;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");return n=e,o=arguments,n=E(n),function(n,o){var e;if(o&&("object"==((e=o)&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof o))return o;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,P()?Reflect.construct(n,o||[],E(this).constructor):n.apply(this,o))}return e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&A(e,n),o=[{key:"render",value:function(){var n,o;return this.context.markdown.edit((n=function(n){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{},t=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e).filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.forEach(function(o){var t;t=e[o],o in n?Object.defineProperty(n,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[o]=t})}return n}({},this.props),o=o={enableContextSelect:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(n){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);o.push.apply(o,e)}return o})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n))}}],function(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}(e.prototype,o),e}(t.FieldModel);T=function(n,o,e,t){var r,i=arguments.length,a=i<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,e):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,o,e,t);else for(var l=n.length-1;l>=0;l--)(r=n[l])&&(a=(i<3?r(a):i>3?r(o,e,a):r(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a}([(0,m.largeField)()],T),m.EditableItemModel.bindModelToInterface("VditorFieldModel",["vditor","markdown"],{isDefault:!0});var C=e(230),I=e(953),M=e(404),R={name:"editMode",type:"select",useComponentProps:function(){var n,o=(0,I.useTranslation)().t,e=(0,t.useDesignable)().dn,r=(0,C.useField)(),i=(0,C.useFieldSchema)();return{title:o("Default Edit Mode",{ns:M.C}),options:[{label:o("What You See Is What You Get",{ns:M.C}),value:"wysiwyg"},{label:o("Instant Rendering",{ns:M.C}),value:"ir"},{label:o("Split View",{ns:M.C}),value:"sv"}],value:(null==(n=i["x-component-props"])?void 0:n.editMode)||"ir",onChange:function(n){var o,t,a,l=(o={},t="x-uid",a=i["x-uid"],t in o?Object.defineProperty(o,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[t]=a,o);i["x-component-props"]=i["x-component-props"]||{},i["x-component-props"].editMode=n,l["x-component-props"]=i["x-component-props"],r.componentProps=r.componentProps||{},r.componentProps.editMode=n,e.emit("patch",{schema:l}),e.refresh()}}}},N=e(704),D=e(631);function H(n,o,e,t,r,i,a){try{var l=n[i](a),d=l.value}catch(n){e(n);return}l.done?o(d):Promise.resolve(d).then(t,r)}function q(n){return function(){var o=this,e=arguments;return new Promise(function(t,r){var i=n.apply(o,e);function a(n){H(i,t,r,a,l,"next",n)}function l(n){H(i,t,r,a,l,"throw",n)}a(void 0)})}}function F(n,o,e){return(F=W()?Reflect.construct:function(n,o,e){var t=[null];t.push.apply(t,o);var r=new(Function.bind.apply(n,t));return e&&B(r,e.prototype),r}).apply(null,arguments)}function L(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function U(n){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function B(n,o){return(B=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n})(n,o)}function V(n){var o="function"==typeof Map?new Map:void 0;return(V=function(n){if(null===n||-1===Function.toString.call(n).indexOf("[native code]"))return n;if("function"!=typeof n)throw TypeError("Super expression must either be null or a function");if(void 0!==o){if(o.has(n))return o.get(n);o.set(n,e)}function e(){return F(n,arguments,U(this).constructor)}return e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),B(e,n)})(n)}function W(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(W=function(){return!!n})()}function G(n,o){var e,t,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:d(0)}),l(a,"throw",{value:d(1)}),l(a,"return",{value:d(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function d(l){return function(d){var c=[l,d];if(e)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(e=1,t&&(r=2&c[0]?t.return:c[0]?t.throw||((r=t.return)&&r.call(t),0):t.next)&&!(r=r.call(t,c[1])).done)return r;switch(t=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,t=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(6===c[0]&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=o.call(n,i)}catch(n){c=[6,n],t=0}finally{e=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var Y=(0,t.lazy)(function(){return D("imported_-1bo1vdq_component",Promise.all([e.e("742"),e.e("59")]).then(e.bind(e,182)))},"MarkdownVditor").MarkdownVditor,J=function(n){var o;if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");function e(){var n,o,t;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");return o=e,t=arguments,o=U(o),L(n=function(n,o){var e;if(o&&("object"==((e=o)&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof o))return o;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,W()?Reflect.construct(o,t||[],U(this).constructor):o.apply(this,t)),"dependencyLoaded",!1),n}return e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&B(e,n),o=[{key:"afterAdd",value:function(){return q(function(){return G(this,function(n){return[2]})})()}},{key:"beforeLoad",value:function(){return q(function(){return G(this,function(n){return[2]})})()}},{key:"load",value:function(){return q(function(){return G(this,function(n){return this.app.addComponents({MarkdownVditor:Y}),this.app.dataSourceManager.addFieldInterfaces([N.H]),this.flowEngine.registerModels({VditorFieldModel:T,DisplayVditorFieldModel:S}),this.app.schemaSettingsManager.addItem("fieldSettings:component:MarkdownVditor","editMode",R),[2]})}).call(this)}},{key:"getCDN",value:function(){return this.app.getPublicPath()+"static/plugins/@nocobase/plugin-block-markdown/dist/client/vditor"}},{key:"initVditorDependency",value:function(){var n=this,o=this.getCDN();try{var e,t="plugin-field-markdown-vditor-dep",r=(e={},L(e,"".concat(t,".katex"),"".concat(o,"/dist/js/katex/katex.min.js?v=0.16.9")),L(e,"".concat(t,".ABCJS"),"".concat(o,"/dist/js/abcjs/abcjs_basic.min")),L(e,"".concat(t,".plantumlEncoder"),"".concat(o,"/dist/js/plantuml/plantuml-encoder.min")),L(e,"".concat(t,".echarts"),"".concat(o,"/dist/js/echarts/echarts.min")),L(e,"".concat(t,".flowchart"),"".concat(o,"/dist/js/flowchart.js/flowchart.min")),L(e,"".concat(t,".Viz"),"".concat(o,"/dist/js/graphviz/viz")),L(e,"".concat(t,".mermaid"),"".concat(o,"/dist/js/mermaid/mermaid.min")),e);this.app.requirejs.require.config({waitSeconds:120,paths:r}),Object.keys(r).forEach(function(o){n.app.requirejs.require([o],function(n){window[o.split(".")[1]]=n})})}catch(n){console.log("initVditorDependency failed",n)}}}],function(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}(e.prototype,o),e}(V(t.Plugin)),$=J},704:function(n,o,e){"use strict";e.d(o,{H:function(){return u},r:function(){return p}});var t=e(342),r=e(404);function i(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function a(n){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function l(n,o){return(l=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n})(n,o)}function d(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(d=function(){return!!n})()}var c=t.interfacesProperties.defaultProps,s=t.interfacesProperties.operators,p=["headings","bold","italic","strike","link","list","ordered-list","check","quote","line","code","inline-code","upload","fullscreen"],u=function(n){var o;if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");function e(){var n,o,t,l,u;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");return o=e,t=arguments,o=a(o),i(n=function(n,o){var e;if(o&&("object"==((e=o)&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof o))return o;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,d()?Reflect.construct(o,t||[],a(this).constructor):o.apply(this,t)),"name","vditor"),i(n,"type","object"),i(n,"group","media"),i(n,"order",1),i(n,"title",(0,r.j)("Vditor")),i(n,"sortable",!0),i(n,"default",{type:"text",length:"long",uiSchema:{type:"string","x-component":"MarkdownVditor"}}),i(n,"availableTypes",["text","json","string"]),i(n,"properties",(l=function(n){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{},t=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e).filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.forEach(function(o){i(n,o,e[o])})}return n}({},c),u=u={"uiSchema.x-component-props.fileCollection":{type:"string",title:(0,r.j)("File collection"),"x-component":"CollectionSelect","x-component-props":{filter:function(n){var o;return(null==n||null==(o=n.options)?void 0:o.template)==="file"}},"x-decorator":"FormItem",default:"","x-reactions":{fulfill:{schema:{description:(0,r.j)("Used to store files uploaded in the Markdown editor (default: attachments)")}}}},"uiSchema.x-component-props.toolbar":{type:"array",title:(0,r.j)("Toolbar"),"x-component":"Select","x-component-props":{mode:"multiple"},"x-decorator":"FormItem",default:p,enum:[{value:"emoji",label:(0,r.j)("Emoji")},{value:"headings",label:(0,r.j)("Headings")},{value:"bold",label:(0,r.j)("Bold")},{value:"italic",label:(0,r.j)("Italic")},{value:"strike",label:(0,r.j)("Strike")},{value:"line",label:(0,r.j)("Line")},{value:"quote",label:(0,r.j)("Quote")},{value:"list",label:(0,r.j)("List")},{value:"ordered-list",label:(0,r.j)("OrderedList")},{value:"check",label:(0,r.j)("Check")},{value:"outdent",label:(0,r.j)("Outdent")},{value:"indent",label:(0,r.j)("Indent")},{value:"code",label:(0,r.j)("Code")},{value:"inline-code",label:(0,r.j)("InlineCode")},{value:"insert-after",label:(0,r.j)("InsertAfter")},{value:"insert-before",label:(0,r.j)("InsertBefore")},{value:"undo",label:(0,r.j)("Undo")},{value:"redo",label:(0,r.j)("Redo")},{value:"upload",label:(0,r.j)("Upload")},{value:"link",label:(0,r.j)("Link")},{value:"record",label:(0,r.j)("Record")},{value:"table",label:(0,r.j)("Table")},{value:"edit-mode",label:(0,r.j)("EditMode")},{value:"both",label:(0,r.j)("Both")},{value:"preview",label:(0,r.j)("Preview")},{value:"fullscreen",label:(0,r.j)("Fullscreen")},{value:"outline",label:(0,r.j)("Outline")}]}},Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):(function(n){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);o.push.apply(o,e)}return o})(Object(u)).forEach(function(n){Object.defineProperty(l,n,Object.getOwnPropertyDescriptor(u,n))}),l)),i(n,"filterable",{operators:s.bigField}),i(n,"titleUsable",!0),n}return e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&l(e,n),o=[{key:"schemaInitialize",value:function(n,o){["Table","Kanban"].includes(o.block)&&(n["x-component-props"]=n["x-component-props"]||{},n["x-component-props"].ellipsis=!0)}}],function(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}(e.prototype,o),e}(t.CollectionFieldInterface)},404:function(n,o,e){"use strict";e.d(o,{C:function(){return r},j:function(){return i}});var t=e(768),r="field-markdown-vditor";function i(n){return(0,t.tval)(n,{ns:r})}},925:function(n,o,e){"use strict";var t=e(168),r=e.n(t),i=e(433),a=e.n(i),l=e(220),d=e.n(l),c=new URL(e(573),e.b),s=a()(r()),p=d()(c);s.push([n.id,'/*!\n * Vditor v3.10.4 - A markdown editor written in TypeScript.\n *\n * MIT License\n *\n * Copyright (c) 2018-present B3log 开源, b3log.org\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\n.vditor {\n --border-color: #d1d5da;\n --second-color: rgba(88, 96, 105, 0.36);\n --panel-background-color: #fff;\n --panel-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\n --toolbar-background-color: #f6f8fa;\n --toolbar-icon-color: #586069;\n --toolbar-icon-hover-color: #4285f4;\n --toolbar-height: 35px;\n --toolbar-divider-margin-top: 8px;\n --textarea-background-color: #fafbfc;\n --textarea-text-color: #24292e;\n --resize-icon-color: var(--toolbar-icon-color);\n --resize-background-color: var(--toolbar-background-color);\n --resize-hover-icon-color: var(--panel-background-color);\n --resize-hover-background-color: var(--toolbar-icon-hover-color);\n --count-background-color: rgba(27, 31, 35, 0.05);\n --heading-border-color: #eaecef;\n --blockquote-color: #6a737d;\n --ir-heading-color: #660e7a;\n --ir-title-color: #808080;\n --ir-bi-color: #0033b3;\n --ir-link-color: #008000;\n --ir-bracket-color: #0000ff;\n --ir-paren-color: #008000;\n}\n.vditor--dark {\n --border-color: #141414;\n --second-color: rgba(185, 185, 185, 0.36);\n --panel-background-color: #24292e;\n --panel-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);\n --toolbar-background-color: #1d2125;\n --toolbar-icon-color: #b9b9b9;\n --toolbar-icon-hover-color: #fff;\n --textarea-background-color: #2f363d;\n --textarea-text-color: #d1d5da;\n --resize-icon-color: var(--border-color);\n --resize-background-color: var(--second-color);\n --resize-hover-icon-color: var(--toolbar-icon-hover-color);\n --resize-hover-background-color: rgba(185, 185, 185, 0.86);\n --count-background-color: rgba(66, 133, 244, 0.36);\n --heading-border-color: var(--textarea-text-color);\n --blockquote-color: var(--toolbar-icon-color);\n --ir-heading-color: #9876aa;\n --ir-title-color: #808080;\n --ir-bi-color: #cc7832;\n --ir-link-color: #ffc66d;\n --ir-bracket-color: #287bde;\n --ir-paren-color: #6a8759;\n}\n/**\n * tool tip.\n *\n * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>\n * @version 0.1.0.0, Jan 25, 2019\n */\n@keyframes tooltip-appear {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.vditor-tooltipped {\n position: relative;\n cursor: pointer;\n}\n.vditor-tooltipped::after {\n position: absolute;\n z-index: 1000000;\n display: none;\n padding: 5px 8px;\n font-size: 11px;\n font-weight: normal;\n -webkit-font-smoothing: subpixel-antialiased;\n color: #fff;\n text-align: center;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n letter-spacing: normal;\n word-wrap: break-word;\n white-space: pre;\n pointer-events: none;\n content: attr(aria-label);\n background: #3b3e43;\n border-radius: 3px;\n line-height: 16px;\n opacity: 0;\n}\n.vditor-tooltipped::before {\n position: absolute;\n z-index: 1000001;\n display: none;\n width: 0;\n height: 0;\n color: #3b3e43;\n pointer-events: none;\n content: "";\n border: 5px solid transparent;\n opacity: 0;\n}\n.vditor-tooltipped--hover::before,\n.vditor-tooltipped--hover::after,\n.vditor-tooltipped:hover::before,\n.vditor-tooltipped:hover::after,\n.vditor-tooltipped:active::before,\n.vditor-tooltipped:active::after,\n.vditor-tooltipped:focus::before,\n.vditor-tooltipped:focus::after {\n display: inline-block;\n text-decoration: none;\nanimation-name: tooltip-appear;\nanimation-duration: 0.15s;\nanimation-fill-mode: forwards;\nanimation-timing-function: ease-in;\n}\n.vditor-tooltipped__s::after,\n.vditor-tooltipped__se::after,\n.vditor-tooltipped__sw::after {\n top: 100%;\n right: 50%;\n margin-top: 5px;\n}\n.vditor-tooltipped__s::before,\n.vditor-tooltipped__se::before,\n.vditor-tooltipped__sw::before {\n top: auto;\n right: 50%;\n bottom: -5px;\n margin-right: -5px;\n border-bottom-color: #3b3e43;\n}\n.vditor-tooltipped__se::after {\n right: auto;\n left: 50%;\n margin-left: -15px;\n}\n.vditor-tooltipped__sw::after {\n margin-right: -15px;\n}\n.vditor-tooltipped__n::after,\n.vditor-tooltipped__ne::after,\n.vditor-tooltipped__nw::after {\n right: 50%;\n bottom: 100%;\n margin-bottom: 5px;\n}\n.vditor-tooltipped__n::before,\n.vditor-tooltipped__ne::before,\n.vditor-tooltipped__nw::before {\n top: -5px;\n right: 50%;\n bottom: auto;\n margin-right: -5px;\n border-top-color: #3b3e43;\n}\n.vditor-tooltipped__ne::after {\n right: auto;\n left: 50%;\n margin-left: -15px;\n}\n.vditor-tooltipped__nw::after {\n margin-right: -15px;\n}\n.vditor-tooltipped__s::after,\n.vditor-tooltipped__n::after {\n transform: translateX(50%);\n}\n.vditor-tooltipped__w::after {\n right: 100%;\n bottom: 50%;\n margin-right: 5px;\n transform: translateY(50%);\n}\n.vditor-tooltipped__w::before {\n top: 50%;\n bottom: 50%;\n left: -5px;\n margin-top: -5px;\n border-left-color: #3b3e43;\n}\n.vditor-tooltipped__e::after {\n bottom: 50%;\n left: 100%;\n margin-left: 5px;\n transform: translateY(50%);\n}\n.vditor-tooltipped__e::before {\n top: 50%;\n right: -5px;\n bottom: 50%;\n margin-top: -5px;\n border-right-color: #3b3e43;\n}\n@media screen and (max-width: 520px) {\n .vditor-tooltipped:before,\n .vditor-tooltipped:after {\n content: none;\n }\n}\n/**\n * panel.\n *\n * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>\n * @version 1.0.0.0, Jan 22, 2020\n */\n@keyframes scale-in {\n 0% {\n opacity: 0;\n transform: scale(0.5);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n.vditor-panel {\n background-color: var(--panel-background-color);\n position: absolute;\n box-shadow: var(--panel-shadow);\n border-radius: 3px;\n padding: 5px;\n z-index: 3;\n font-size: 14px;\n display: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n max-width: 320px;\n min-width: 80px;\nanimation-duration: 0.15s;\nanimation-name: scale-in;\nanimation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);\n color: var(--toolbar-icon-color);\n}\n.vditor-panel--none {\n padding: 0;\nanimation: none;\n min-width: auto;\n max-width: none;\n white-space: nowrap;\n opacity: 0.86;\n}\n.vditor-panel--arrow:before {\n position: absolute;\n width: 0;\n height: 0;\n pointer-events: none;\n content: " ";\n border: 7px solid transparent;\n top: -14px;\n left: 5px;\n border-bottom-color: var(--panel-background-color);\n}\n.vditor-panel--left {\n right: 0;\n}\n.vditor-panel--left.vditor-panel--arrow:before {\n right: 5px;\n left: auto;\n}\n.vditor-input {\n border: 0;\n padding: 3px 5px;\n background-color: var(--panel-background-color);\n font-size: 12px;\n color: var(--textarea-text-color);\n}\n.vditor-input:focus {\n background-color: var(--toolbar-background-color);\n outline: none;\n}\n.vditor-icon {\n color: var(--toolbar-icon-color);\n cursor: pointer;\n float: left;\n padding: 4px 5px;\n height: 21px;\n width: 23px;\n background-color: transparent;\n border: 0;\n box-sizing: border-box;\n}\n.vditor-icon:hover,\n.vditor-icon--current {\n color: var(--toolbar-icon-hover-color);\n background-color: transparent;\n}\n.vditor-icon:focus {\n outline: none;\n}\n.vditor-icon svg {\n height: 13px !important;\n width: 13px !important;\n float: left;\n fill: currentColor;\n pointer-events: none;\n}\n.vditor-toolbar {\n background-color: var(--toolbar-background-color);\n border-bottom: 1px solid var(--border-color);\n padding: 0 5px;\n line-height: 1;\n}\n.vditor-toolbar--pin {\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n z-index: 1;\n}\n.vditor-toolbar--hide {\n transition: all 0.15s ease-in-out;\n height: 5px;\n overflow: hidden;\n}\n.vditor-toolbar--hide:hover {\n background-color: var(--toolbar-background-color);\n height: auto;\n overflow: visible;\n}\n.vditor-toolbar__item {\n float: left;\n position: relative;\n}\n.vditor-toolbar__item .vditor-tooltipped {\n color: var(--toolbar-icon-color);\n border: 0;\n padding: 10px 5px;\n background-color: transparent;\n height: var(--toolbar-height);\n width: 25px;\n box-sizing: border-box;\n font-size: 0;\n}\n.vditor-toolbar__item .vditor-tooltipped:focus {\n outline: none;\n}\n.vditor-toolbar__item .vditor-tooltipped:focus {\n cursor: pointer;\n color: var(--toolbar-icon-hover-color);\n}\n.vditor-toolbar__item svg {\n fill: currentColor;\n display: inline-block;\n stroke-width: 0;\n stroke: currentColor;\n width: 15px;\n height: 15px;\n}\n.vditor-toolbar__item input {\n position: absolute;\n width: 25px;\n height: var(--toolbar-height);\n top: 0;\n left: 0;\n cursor: pointer;\n opacity: 0.001;\n overflow: hidden;\n}\n.vditor-toolbar__divider {\n float: left;\n height: -webkit-calc(var(--toolbar-height) - (var(--toolbar-divider-margin-top) * 2));\n height: -moz-calc(var(--toolbar-height) - (var(--toolbar-divider-margin-top) * 2));\n height: calc(var(--toolbar-height) - (var(--toolbar-divider-margin-top) * 2));\n border-left: 1px solid var(--second-color);\n margin: var(--toolbar-divider-margin-top) 8px;\n}\n.vditor-toolbar__br {\n width: 100%;\n padding: 0 !important;\n height: 0 !important;\n}\n.vditor-menu--current {\n color: var(--toolbar-icon-hover-color) !important;\n}\n.vditor-menu--disabled {\n color: var(--second-color) !important;\n cursor: not-allowed !important;\n}\n.vditor-emojis {\n display: inline-block;\n overflow: auto;\n}\n.vditor-emojis::-webkit-scrollbar {\n display: none;\n}\n.vditor-emojis__tip {\n flex: 1;\n min-width: 1px;\n width: 200px;\n margin-right: 10px;\n color: var(--toolbar-icon-color);\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.vditor-emojis__tail {\n margin-top: 5px;\n font-size: 12px;\n color: var(--toolbar-icon-color);\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n}\n.vditor-emojis__tail a {\n text-decoration: none;\n color: var(--toolbar-icon-color);\n}\n.vditor-emojis__tail a:hover {\n color: var(--toolbar-icon-hover-color);\n}\n.vditor-emojis button {\n cursor: pointer;\n border-radius: 3px;\n float: left;\n height: 30px;\n width: 30px;\n text-align: center;\n line-height: 26px;\n padding: 3px;\n box-sizing: border-box;\n font-size: 16px;\n transition: all 0.15s ease-in-out;\n border: 0;\n margin: 0;\n background-color: transparent;\n overflow: hidden;\n}\n.vditor-emojis button:focus {\n outline: none;\n}\n.vditor-emojis button:hover .vditor-emojis__icon {\n display: inline-block;\n transform: scale(1.2);\n}\n.vditor-emojis img {\n height: 20px;\n width: 20px;\n float: left;\n margin: 3px 0 0 3px;\n}\n@media screen and (max-width: 520px) {\n .vditor-toolbar__item {\n padding: 0 12px;\n }\n .vditor-panel--left.vditor-panel--arrow:before {\n right: 17px;\n }\n}\n@media (hover: hover) and (pointer: fine) {\n .vditor-toolbar__item .vditor-tooltipped:hover {\n color: var(--toolbar-icon-hover-color);\n }\n}\n@keyframes slideInDown {\n from {\n transform: translate3d(0, -100%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n.vditor {\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n flex-direction: column;\n border: 1px solid var(--border-color);\n border-radius: 3px;\n box-sizing: border-box;\n font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";\n}\n.vditor--fullscreen {\n position: fixed;\n top: 0;\n width: 100% !important;\n left: 0;\n height: 100vh !important;\n z-index: 90;\n border-radius: 0;\n}\n.vditor-content {\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n min-height: 60px;\n flex: 1;\n min-width: 1px;\n position: relative;\n}\n.vditor-preview {\n flex: 1;\n min-width: 1px;\n overflow: auto;\n margin-left: -1px;\n border-left: 1px solid var(--border-color);\n box-sizing: border-box;\n border-radius: 0 0 3px 0;\n background-color: var(--textarea-background-color);\n}\n.vditor-preview::-webkit-scrollbar {\n display: none;\n}\n.vditor-preview__action {\n text-align: center;\n padding: 10px;\n background-color: var(--toolbar-background-color);\n}\n.vditor-preview__action button {\n background-color: var(--toolbar-background-color);\n color: var(--toolbar-icon-color);\n line-height: 20px;\n border: 0;\n margin: 0 10px;\n cursor: pointer;\n padding: 0 7px;\n font-size: 12px;\n}\n.vditor-preview__action button.vditor-preview__action--current,\n.vditor-preview__action button:hover {\n color: var(--toolbar-icon-hover-color);\n background-color: var(--toolbar-background-color);\n}\n.vditor-preview__action button:focus {\n outline: none;\n}\n.vditor-preview__action button svg {\n fill: currentColor;\n height: 15px;\n width: 15px;\n vertical-align: middle;\n}\n.vditor-preview > .vditor-reset {\n padding: 10px;\n margin: 0 auto;\n}\n.vditor-preview img:not(.emoji) {\n cursor: pointer;\n}\n.vditor-devtools {\n display: none;\n background-color: var(--textarea-background-color);\n overflow: auto;\n flex: 1;\n min-width: 1px;\n box-shadow: inset 1px 0 var(--border-color);\n box-sizing: border-box;\n border-radius: 0 0 3px 0;\n padding: 10px;\n}\n.vditor-counter {\n padding: 3px;\n color: var(--toolbar-icon-color);\n background-color: var(--count-background-color);\n border-radius: 3px;\n font-size: 12px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n float: right;\n margin: 8px 3px 0 0;\n}\n.vditor-counter--error {\n color: #d23f31;\n background-color: rgba(210, 63, 49, 0.1);\n}\n.vditor-resize {\n padding: 3px 0;\n cursor: row-resize;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n position: absolute;\n width: 100%;\n}\n.vditor-resize--top {\n top: -3px;\n}\n.vditor-resize--bottom {\n bottom: -3px;\n}\n.vditor-resize > div {\n height: 3px;\n background-color: var(--resize-background-color);\n transition: all 0.15s ease-in-out;\n}\n.vditor-resize:hover > div,\n.vditor-resize--selected > div {\n background-color: var(--resize-hover-background-color);\n}\n.vditor-resize:hover svg,\n.vditor-resize--selected svg {\n color: var(--resize-hover-icon-color);\n}\n.vditor-resize svg {\n fill: currentColor;\n stroke-width: 0;\n stroke: currentColor;\n width: 13px;\n height: 3px;\n display: block;\n margin: 0 auto;\n color: var(--resize-icon-color);\n}\n.vditor-upload {\n position: absolute;\n height: 3px;\n left: 0;\n top: -2px;\n transition: all 0.15s ease-in-out;\n background-color: #4285f4;\n}\n.vditor-tip {\n position: absolute;\n font-size: 12px;\n top: 10px;\nanimation-duration: 0.15s;\nanimation-fill-mode: both;\n left: 50%;\n z-index: 5;\n}\n.vditor-tip--show {\n display: block;\nanimation-name: slideInDown;\n}\n.vditor-tip__content {\n text-align: left;\n display: inline-block;\n line-height: 16px;\n padding: 3px 10px;\n border-radius: 3px;\n background: var(--toolbar-background-color);\n position: relative;\n margin-left: -50%;\n color: var(--toolbar-icon-color);\n max-width: 100%;\n box-shadow: var(--panel-shadow);\n}\n.vditor-tip__content ul {\n margin: 2px 0;\n padding: 0 0 0 18px;\n}\n.vditor-tip__content a {\n color: #4285f4;\n}\n.vditor-tip__close {\n position: absolute;\n color: var(--toolbar-icon-color);\n top: -7px;\n right: -15px;\n font-weight: bold;\n cursor: pointer;\n}\n.vditor-tip__close:hover {\n color: var(--toolbar-icon-hover-color);\n}\n.vditor-img {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n flex-direction: column;\n z-index: 100;\n}\n.vditor-img__bar {\n border-bottom: 1px solid var(--border-color);\n background-color: var(--toolbar-background-color);\n text-align: center;\n height: 36px;\n box-sizing: border-box;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.vditor-img__btn {\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n align-items: center;\n cursor: pointer;\n margin-left: 24px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n color: var(--toolbar-icon-color);\n}\n.vditor-img__btn:hover {\n color: var(--toolbar-icon-hover-color);\n}\n.vditor-img__btn svg {\n height: 14px;\n width: 14px;\n margin-right: 8px;\n fill: currentColor;\n}\n.vditor-img__img {\n flex: 1;\n background-color: var(--textarea-background-color);\n overflow: auto;\n cursor: -webkit-zoom-out;\n cursor: -moz-zoom-out;\n cursor: zoom-out;\n}\n.vditor-img__img img {\n max-width: none;\n}\n.vditor-hint {\n background-color: var(--panel-background-color);\n position: absolute;\n box-shadow: var(--panel-shadow);\n border-radius: 3px;\n padding: 5px 0;\n z-index: 4;\n line-height: 20px;\n list-style: none;\n font-size: 12px;\n margin: 0;\n max-width: 250px;\n min-width: 80px;\n display: none;\n}\n.vditor-hint .vditor-hint {\n margin-top: -31px;\n left: 100%;\n right: auto;\n}\n.vditor-hint .vditor-hint.vditor-panel--left {\n right: 100%;\n left: auto;\n}\n.vditor-hint button {\n color: var(--toolbar-icon-color);\n display: block;\n padding: 3px 10px;\n border: 0;\n border-radius: 0;\n line-height: 20px;\n width: 100%;\n box-sizing: border-box;\n text-align: left;\n margin: 0;\n background-color: transparent;\n cursor: pointer;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.vditor-hint button:focus {\n outline: none;\n}\n.vditor-hint--current,\n.vditor-hint button:not(.vditor-menu--disabled):hover {\n background-color: var(--toolbar-background-color) !important;\n color: var(--toolbar-icon-hover-color) !important;\n}\n.vditor-hint__emoji {\n font-size: 16px;\n float: left;\n margin-right: 3px;\n}\n.vditor-hint img {\n height: 20px;\n width: 20px;\n float: left;\n margin-right: 3px;\n}\n.vditor-reset {\n color: #24292e;\n font-feature-settings: "liga", "clig off";\n font-variant-ligatures: no-common-ligatures;\n font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";\n word-wrap: break-word;\n overflow: auto;\n line-height: 1.5;\n font-size: 16px;\n word-break: break-word;\n}\n.vditor-reset--anchor {\n padding-left: 20px;\n}\n.vditor-reset--error {\n color: #d23f31;\n font-size: 12px;\n display: block;\n line-height: 16px;\n}\n.vditor-reset ul ul ul {\n list-style-type: square;\n}\n.vditor-reset ul ul {\n list-style-type: circle;\n}\n.vditor-reset ul {\n list-style-type: disc;\n}\n.vditor-reset ul,\n.vditor-reset ol {\n padding-left: 2em;\n margin-top: 0;\n margin-bottom: 16px;\n}\n.vditor-reset li + li {\n margin-top: 0.25em;\n}\n.vditor-reset li p {\n margin-top: 16px;\n}\n.vditor-reset audio {\n max-width: 100%;\n}\n.vditor-reset audio:focus {\n outline: none;\n}\n.vditor-reset video {\n max-height: 90vh;\n max-width: 100%;\n}\n.vditor-reset img {\n max-width: 100%;\n}\n.vditor-reset img.emoji {\n cursor: auto;\n max-width: 20px;\n vertical-align: sub;\n}\n.vditor-reset h1,\n.vditor-reset h2,\n.vditor-reset h3,\n.vditor-reset h4,\n.vditor-reset h5,\n.vditor-reset h6 {\n margin-top: 24px;\n margin-bottom: 16px;\n font-weight: 600;\n line-height: 1.25;\n}\n.vditor-reset h1:hover .vditor-anchor svg,\n.vditor-reset h2:hover .vditor-anchor svg,\n.vditor-reset h3:hover .vditor-anchor svg,\n.vditor-reset h4:hover .vditor-anchor svg,\n.vditor-reset h5:hover .vditor-anchor svg,\n.vditor-reset h6:hover .vditor-anchor svg {\n visibility: visible;\n}\n.vditor-reset h1 {\n font-size: 1.75em;\n}\n.vditor-reset h2 {\n font-size: 1.55em;\n}\n.vditor-reset h3 {\n font-size: 1.38em;\n}\n.vditor-reset h4 {\n font-size: 1.25em;\n}\n.vditor-reset h5 {\n font-size: 1.13em;\n}\n.vditor-reset h6 {\n font-size: 1em;\n}\n.vditor-reset hr {\n height: 2px;\n padding: 0;\n margin: 24px 0;\n background-color: #eaecef;\n border: 0;\n}\n.vditor-reset p {\n margin-top: 0;\n margin-bottom: 16px;\n}\n.vditor-reset blockquote {\n padding: 0 1em;\n color: #6a737d;\n border-left: 0.25em solid #eaecef;\n margin: 0 0 16px 0;\n}\n.vditor-reset blockquote > :first-child {\n margin-top: 0;\n}\n.vditor-reset blockquote > :last-child {\n margin-bottom: 0;\n}\n.vditor-reset ins > iframe {\n border: 0;\n}\n.vditor-reset iframe {\n border: 1px solid #d1d5da;\n max-width: 100%;\n box-sizing: border-box;\n}\n.vditor-reset iframe.iframe__video {\n min-width: 80%;\n min-height: 36vh;\n}\n.vditor-reset table {\n border-collapse: collapse;\n empty-cells: show;\n margin-bottom: 16px;\n overflow: auto;\n border-spacing: 0;\n display: block;\n word-break: keep-all;\n width: 100%;\n}\n.vditor-reset table tr {\n background-color: #fafbfc;\n border-top: 1px solid #c6cbd1;\n}\n.vditor-reset table td,\n.vditor-reset table th {\n padding: 6px 13px;\n border: 1px solid #dfe2e5;\n word-break: normal;\n white-space: nowrap;\n}\n.vditor-reset table td:first-child::after,\n.vditor-reset table th:first-child::after {\n content: "";\n display: inline-block;\n vertical-align: top;\n min-height: 24px;\n}\n.vditor-reset table th {\n font-weight: 600;\n}\n.vditor-reset table tbody tr:nth-child(2n) {\n background-color: #fff;\n}\n.vditor-reset code:not(.hljs):not(.highlight-chroma) {\n padding: 0.2em 0.4em;\n margin: 0;\n font-size: 85%;\n border-radius: 3px;\n font-family: mononoki, Consolas, "Liberation Mono", Menlo, Courier, monospace, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";\n word-break: break-word;\n background-size: 20px 20px;\n white-space: pre-wrap;\n}\n.vditor-reset pre {\n margin: 1em 0;\n}\n.vditor-reset pre > code {\n margin: 0;\n font-size: 85%;\n padding: 0.5em;\n border-radius: 5px;\n display: block;\n overflow: auto;\n white-space: pre;\n font-family: mononoki, Consolas, "Liberation Mono", Menlo, Courier, monospace, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";\n background-size: 20px 20px;\n background-image: url('+p+');\n word-break: initial;\n word-wrap: normal;\n}\n.vditor-reset pre:hover div.vditor-copy {\n display: block;\n}\n.vditor-reset .language-math,\n.vditor-reset .language-echarts,\n.vditor-reset .language-mindmap,\n.vditor-reset .language-plantuml,\n.vditor-reset .language-mermaid,\n.vditor-reset .language-markmap,\n.vditor-reset .language-abc,\n.vditor-reset .language-flowchart,\n.vditor-reset .language-graphviz {\n margin-bottom: 16px;\n}\n.vditor-reset .language-math mjx-container:focus {\n outline: none;\n cursor: context-menu;\n}\n.vditor-reset .language-echarts,\n.vditor-reset .language-mindmap {\n overflow: hidden;\n height: 420px;\n}\n.vditor-reset .language-mermaid,\n.vditor-reset .language-markmap,\n.vditor-reset .language-flowchart,\n.vditor-reset .language-graphviz {\n text-align: center;\n}\n.vditor-reset .language-graphviz parsererror {\n overflow: auto;\n}\n.vditor-reset kbd {\n display: inline-block;\n padding: 3px 5px;\n font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;\n line-height: 10px;\n color: #24292e;\n vertical-align: middle;\n background-color: #fafbfc;\n border: solid 1px #d1d5da;\n border-radius: 3px;\n box-shadow: inset 0 -1px 0 #d1d5da;\n}\n.vditor-reset summary {\n cursor: pointer;\n}\n.vditor-reset summary:focus {\n outline: none;\n}\n.vditor-reset svg {\n height: auto;\n width: auto;\n stroke-width: initial;\n}\n.vditor-reset p:last-child,\n.vditor-reset blockquote:last-child,\n.vditor-reset pre:last-child,\n.vditor-reset ul:last-child,\n.vditor-reset ol:last-child,\n.vditor-reset hr:last-child {\n margin-bottom: 0;\n}\n.vditor-comment {\n border-bottom: 2px solid #f8e6ab;\n}\n.vditor-comment--focus,\n.vditor-comment--hover {\n background-color: #faf1d1;\n border-bottom: 2px solid #ffc60a;\n}\n.vditor-comment--focus .vditor-comment,\n.vditor-comment--hover .vditor-comment {\n border-bottom: 2px solid #ffc60a;\n}\n.vditor-task {\n list-style: none !important;\n word-break: break-all;\n}\n.vditor-task input {\n margin: 0 0.2em 0.25em -1.6em;\n font-size: 12px;\n vertical-align: middle;\n}\n.vditor-copy {\n position: relative;\n display: none;\n z-index: 1;\n}\n.vditor-copy textarea {\n position: absolute;\n left: -100000px;\n height: 10px;\n}\n.vditor-copy span {\n cursor: pointer;\n position: absolute;\n right: 15px;\n top: 0.5em;\n}\n.vditor-copy svg {\n color: #586069;\n height: 14px;\n width: 14px !important;\n display: block;\n fill: currentColor;\n}\n.vditor-linenumber {\n padding-left: 4em !important;\n position: relative;\n}\n.vditor-linenumber__rows {\n position: absolute;\n pointer-events: none;\n top: 0.5em;\n left: 0;\n width: 3em;\n /* works for line-numbers below 1000 lines */\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n counter-reset: linenumber;\n}\n.vditor-linenumber__rows > span {\n pointer-events: none;\n display: block;\n}\n.vditor-linenumber__rows > span::before {\n counter-increment: linenumber;\n content: counter(linenumber);\n color: rgba(158, 150, 150, 0.38);\n display: block;\n padding-right: 1em;\n text-align: right;\n}\n.vditor-speech {\n position: absolute;\n display: none;\n background-color: #f6f8fa;\n border: 1px solid #d1d5da;\n border-radius: 3px;\n padding: 3px;\n cursor: pointer;\n color: #586069;\n}\n.vditor-speech:hover,\n.vditor-speech--current {\n color: #4285f4;\n}\n.vditor-speech svg {\n height: 14px;\n width: 14px;\n fill: currentColor;\n display: block;\n stroke-width: 0;\n stroke: currentColor;\n}\n.vditor-anchor {\n margin-left: 5px;\n}\n.vditor-anchor--left {\n float: left;\n padding-right: 4px;\n margin-left: -20px;\n}\n.vditor-anchor svg {\n visibility: hidden;\n}\n.vditor-anchor:hover svg {\n visibility: visible;\n}\n.vditor-anchor:focus {\n outline: none;\n}\n.vditor-linkcard {\n margin: 31px auto 16px;\n transition: all 0.15s ease-in-out;\n cursor: pointer;\n max-width: 768px;\n padding: 0 10px;\n}\n.vditor-linkcard a {\n border-radius: 3px;\n background-color: #f6f8fa;\n overflow: hidden;\n max-height: 250px;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n text-decoration: none;\n flex-wrap: wrap-reverse;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\n}\n.vditor-linkcard a:hover {\n box-shadow: 0 0 3px rgba(0, 0, 0, 0.13), 0 3px 6px rgba(0, 0, 0, 0.26);\n text-decoration: none;\n}\n.vditor-linkcard a:visited .vditor-linkcard__abstract {\n color: rgba(88, 96, 105, 0.36);\n}\n.vditor-linkcard__info {\n padding: 10px;\n min-width: 200px;\n box-sizing: border-box;\n flex: 1;\n}\n.vditor-linkcard__title {\n font-size: 14px;\n font-weight: 400;\n color: #24292e;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n align-items: center;\n}\n.vditor-linkcard__title img {\n cursor: pointer;\n height: 20px;\n width: 20px;\n border-radius: 3px;\n flex-shrink: 0;\n margin-right: 5px;\n}\n.vditor-linkcard__abstract {\n word-wrap: break-word;\n word-break: break-all;\n -webkit-line-clamp: 2;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-box-orient: vertical;\n display: -webkit-box;\n font-size: 13px;\n color: #586069;\n margin: 5px 0;\n}\n.vditor-linkcard__site {\n font-size: 12px;\n color: #4285f4;\n}\n.vditor-linkcard__image {\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center center;\n max-width: 250px;\n min-width: 126px;\n cursor: pointer;\n background-color: rgba(88, 96, 105, 0.36);\n}\n.vditor-footnotes__goto-ref {\n text-decoration: none;\n}\n.vditor-toc {\n margin-bottom: 16px;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n color: #4285f4;\n}\n.vditor-toc .vditor-outline__action {\n display: none;\n}\n.vditor-toc ul {\n list-style: none !important;\n padding-left: 1em;\n}\n.vditor-toc > ul {\n padding-left: 0;\n}\n.vditor-toc span {\n cursor: pointer;\n}\n.vditor-toc li > span > svg {\n width: 0;\n height: 0;\n}\n.vditor-outline {\n width: 250px;\n border-right: 1px solid var(--border-color);\n background-color: var(--panel-background-color);\n display: none;\n overflow: auto;\n}\n.vditor-outline--right {\n border-right: 0;\n border-left: 1px solid var(--border-color);\n}\n.vditor-outline::-webkit-scrollbar {\n display: none;\n}\n.vditor-outline ul {\n list-style: none !important;\n padding-left: 1em;\n margin: 0;\n}\n.vditor-outline__content > ul {\n padding-left: 0;\n}\n.vditor-outline li > span {\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n align-items: center;\n padding: 5px 10px;\n cursor: pointer;\n color: var(--textarea-text-color);\n}\n.vditor-outline li > span > svg {\n height: 10px;\n width: 10px;\n flex-shrink: 0;\n}\n.vditor-outline li > span:hover {\n color: var(--toolbar-icon-hover-color);\n}\n.vditor-outline li > span > span {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.vditor-outline__title {\n border-bottom: 1px dashed var(--border-color);\n padding: 5px 10px;\n color: var(--toolbar-icon-color);\n font-size: 12px;\n}\n.vditor-outline__action {\n transition: all 0.15s ease-in-out;\n fill: currentColor;\n margin-right: 5px;\n flex-shrink: 0;\n}\n.vditor-outline__action--close {\n transform: rotate(-90deg);\n}\n.vditor-wysiwyg {\n box-sizing: border-box;\n flex: 1;\n position: relative;\n width: 100%;\n min-width: 1px;\n}\n.vditor-wysiwyg pre.vditor-reset {\n background-color: var(--panel-background-color);\n margin: 0;\n white-space: pre-wrap;\n height: 100%;\n box-sizing: border-box;\n}\n.vditor-wysiwyg pre.vditor-reset[contenteditable="false"] {\n opacity: 0.3;\n cursor: not-allowed;\n}\n.vditor-wysiwyg pre.vditor-reset:empty::before {\n content: attr(placeholder);\n color: var(--second-color);\n}\n.vditor-wysiwyg pre.vditor-reset:focus {\n outline: none;\n background-color: var(--textarea-background-color);\n}\n.vditor-wysiwyg pre.vditor-reset:after {\n content: "";\n height: var(--editor-bottom);\n display: block;\n}\n.vditor-wysiwyg blockquote:empty::before,\n.vditor-wysiwyg pre > code:empty::before,\n.vditor-wysiwyg p:empty::before,\n.vditor-wysiwyg h1:empty::after,\n.vditor-wysiwyg h2:empty::after,\n.vditor-wysiwyg h3:empty::after,\n.vditor-wysiwyg h4:empty::after,\n.vditor-wysiwyg h5:empty::after,\n.vditor-wysiwyg h6:empty::after {\n content: \' \';\n}\n.vditor-wysiwyg code[data-marker="`"] {\n padding-left: 0 !important;\n padding-right: 0 !important;\n}\n.vditor-wysiwyg__block pre:first-child {\n margin-bottom: -1em;\n}\n.vditor-wysiwyg__block pre:first-child code {\n color: var(--textarea-text-color);\n height: auto;\n text-align: left;\n}\n.vditor-wysiwyg__block pre:last-child {\n margin-bottom: 1em;\n}\n.vditor-wysiwyg__preview {\n cursor: pointer;\n white-space: normal;\n white-space: initial;\n min-height: 27px;\n}\n.vditor-wysiwyg > .vditor-reset > h1:before,\n.vditor-wysiwyg > .vditor-reset > h2:before,\n.vditor-wysiwyg > .vditor-reset > h3:before,\n.vditor-wysiwyg > .vditor-reset > h4:before,\n.vditor-wysiwyg > .vditor-reset > h5:before,\n.vditor-wysiwyg > .vditor-reset > h6:before,\n.vditor-wysiwyg div.vditor-wysiwyg__block:before,\n.vditor-wysiwyg div[data-type="link-ref-defs-block"]:before,\n.vditor-wysiwyg div[data-type="footnotes-block"]:before,\n.vditor-wysiwyg .vditor-toc:before {\n float: left;\n padding-right: 4px;\n margin-left: -29px;\n content: \'H1\';\n font-size: 0.85rem;\n font-weight: normal;\n color: var(--second-color);\n}\n.vditor-wysiwyg > .vditor-reset > h2:before {\n content: \'H2\';\n}\n.vditor-wysiwyg > .vditor-reset > h3:before {\n content: \'H3\';\n}\n.vditor-wysiwyg > .vditor-reset > h4:before {\n content: \'H4\';\n}\n.vditor-wysiwyg > .vditor-reset > h5:before {\n content: \'H5\';\n}\n.vditor-wysiwyg > .vditor-reset > h6:before {\n content: \'H6\';\n}\n.vditor-wysiwyg div[data-type="link-ref-defs-block"]:before {\n content: \'"A"\';\n}\n.vditor-wysiwyg div[data-type="footnotes-block"]:before {\n content: \'^F\';\n}\n.vditor-wysiwyg div.vditor-wysiwyg__block:before {\n content: "</>";\n}\n.vditor-wysiwyg div.vditor-wysiwyg__block[data-type="yaml-front-matter"]:before {\n content: "F";\n}\n.vditor-wysiwyg div.vditor-wysiwyg__block[data-type="math-block"]:before {\n content: "$$";\n}\n.vditor-wysiwyg .vditor-toc:before {\n content: "ToC";\n}\n.vditor-wysiwyg hr {\n display: inline-block;\n margin: 12px 0;\n width: 100%;\n}\n.vditor-wysiwyg details {\n white-space: normal;\n white-space: initial;\n}\n.vditor-wysiwyg a {\n cursor: pointer;\n}\n.vditor-wysiwyg span[data-type="backslash"] > span {\n display: none;\n color: var(--second-color);\n}\n.vditor-wysiwyg span[data-type="link-ref"],\n.vditor-wysiwyg sup[data-type="footnotes-ref"] {\n color: #4285f4;\n}\n.vditor-wysiwyg span[data-type="toc-h"] {\n color: #4285f4;\n text-decoration: underline;\n}\n.vditor-wysiwyg div[data-type="footnotes-block"] {\n border-top: 2px solid var(--heading-border-color);\n padding-top: 24px;\n margin-top: 24px;\n}\n.vditor-wysiwyg div[data-type="link-ref-defs-block"] {\n color: var(--blockquote-color);\n}\n@media screen and (max-width: 520px) {\n .vditor-wysiwyg h1:before,\n .vditor-wysiwyg h2:before,\n .vditor-wysiwyg h3:before,\n .vditor-wysiwyg h4:before,\n .vditor-wysiwyg h5:before,\n .vditor-wysiwyg h6:before,\n .vditor-wysiwyg div.vditor-wysiwyg__block:before,\n .vditor-wysiwyg div[data-type="link-ref-defs-block"]:before,\n .vditor-wysiwyg div[data-type="footnotes-block"]:before,\n .vditor-wysiwyg .vditor-toc:before {\n content: none;\n }\n}\n.vditor-ir {\n box-sizing: border-box;\n flex: 1;\n min-width: 1px;\n position: relative;\n width: 100%;\n}\n.vditor-ir__node[data-type="code-block"]:before,\n.vditor-ir__node[data-type="code-block"]:after,\n.vditor-ir__node[data-type="yaml-front-matter"]:before,\n.vditor-ir__node[data-type="yaml-front-matter"]:after,\n.vditor-ir__node[data-type="math-block"]:before,\n.vditor-ir__node[data-type="math-block"]:after {\n content: \' \';\n color: var(--second-color);\n}\n.vditor-ir__node:not(.vditor-ir__node--expand) .vditor-ir__marker {\n padding: 0 !important;\n}\n.vditor-ir__node:not(.vditor-ir__node--expand)[data-type="a"] {\n cursor: pointer;\n}\n.vditor-ir__node[data-type="link-ref"],\n.vditor-ir__node[data-type="footnotes-ref"] {\n color: #4285f4;\n}\n.vditor-ir__node[data-type="html-block"] {\n margin-bottom: 1em;\n}\n.vditor-ir__node .vditor-ir__marker {\n width: 0;\n overflow: hidden;\n display: inline-block;\n height: 0;\n transition: all 0.15s ease-in-out;\n}\n.vditor-ir__node--hidden .vditor-ir__marker {\n visibility: hidden;\n}\n.vditor-ir__node--expand .vditor-ir__marker {\n color: var(--second-color);\n display: inline;\n height: auto;\n width: auto;\n}\n.vditor-ir__node--expand .vditor-ir__marker--hide {\n display: none;\n}\n.vditor-ir__node--expand .vditor-ir__marker--heading {\n color: var(--ir-heading-color);\n}\n.vditor-ir__node--expand .vditor-ir__marker--bi {\n color: var(--ir-bi-color);\n}\n.vditor-ir__node--expand .vditor-ir__marker--link {\n color: var(--ir-link-color);\n}\n.vditor-ir__node--expand .vditor-ir__marker--title {\n color: var(--ir-title-color);\n}\n.vditor-ir__node--expand .vditor-ir__marker--bracket {\n color: var(--ir-bracket-color);\n text-decoration: underline;\n}\n.vditor-ir__node--expand .vditor-ir__marker--paren {\n color: var(--ir-paren-color);\n}\n.vditor-ir__node--expand .vditor-ir__marker--info {\n color: var(--ir-heading-color);\n}\n.vditor-ir__node--expand .vditor-ir__marker--pre code {\n color: var(--textarea-text-color);\n height: auto;\n text-align: left;\n}\n.vditor-ir__node--expand[data-type="code-block"]:before,\n.vditor-ir__node--expand[data-type="code-block"]:after {\n content: \'```\';\n}\n.vditor-ir__node--expand[data-type="yaml-front-matter"]:before,\n.vditor-ir__node--expand[data-type="yaml-front-matter"]:after {\n content: \'---\';\n}\n.vditor-ir__node--expand[data-type="math-block"]:before,\n.vditor-ir__node--expand[data-type="math-block"]:after {\n content: \'$$\';\n}\n.vditor-ir__node span[data-type="code-block-open-marker"],\n.vditor-ir__node span[data-type="code-block-close-marker"],\n.vditor-ir__node span[data-type="yaml-front-matter-open-marker"],\n.vditor-ir__node span[data-type="yaml-front-matter-close-marker"],\n.vditor-ir__node span[data-type="math-block-open-marker"],\n.vditor-ir__node span[data-type="math-block-close-marker"] {\n display: none;\n}\n.vditor-ir__preview {\n cursor: pointer;\n white-space: normal;\n white-space: initial;\n min-height: 27px;\n}\n.vditor-ir__link {\n color: var(--ir-bracket-color);\n text-decoration: underline;\n}\n.vditor-ir pre.vditor-reset {\n background-color: var(--panel-background-color);\n margin: 0;\n white-space: pre-wrap;\n height: 100%;\n box-sizing: border-box;\n}\n.vditor-ir pre.vditor-reset[contenteditable="false"] {\n opacity: 0.3;\n cursor: not-allowed;\n}\n.vditor-ir pre.vditor-reset:empty::before {\n content: attr(placeholder);\n color: var(--second-color);\n}\n.vditor-ir pre.vditor-reset:focus {\n outline: none;\n background-color: var(--textarea-background-color);\n}\n.vditor-ir pre.vditor-reset:after {\n content: "";\n height: var(--editor-bottom);\n display: block;\n}\n.vditor-ir pre.vditor-reset pre {\n margin: 0;\n}\n.vditor-ir hr {\n display: inline-block;\n margin: 12px 0;\n width: 100%;\n}\n.vditor-ir blockquote:empty::before,\n.vditor-ir pre > code:empty::before,\n.vditor-ir p:empty::before,\n.vditor-ir h1:empty::after,\n.vditor-ir h2:empty::after,\n.vditor-ir h3:empty::after,\n.vditor-ir h4:empty::after,\n.vditor-ir h5:empty::after,\n.vditor-ir h6:empty::after {\n content: \' \';\n}\n.vditor-ir .vditor-reset > h1:before,\n.vditor-ir .vditor-reset > h2:before,\n.vditor-ir .vditor-reset > h3:before,\n.vditor-ir .vditor-reset > h4:before,\n.vditor-ir .vditor-reset > h5:before,\n.vditor-ir .vditor-reset > h6:before,\n.vditor-ir div[data-type="link-ref-defs-block"]:before,\n.vditor-ir div[data-type="footnotes-block"]:before,\n.vditor-ir .vditor-toc:before {\n float: left;\n padding-right: 4px;\n margin-left: -29px;\n content: \'H1\';\n font-size: 0.85rem;\n font-weight: normal;\n color: var(--second-color);\n}\n.vditor-ir .vditor-reset > h2:before {\n content: \'H2\';\n}\n.vditor-ir .vditor-reset > h3:before {\n content: \'H3\';\n}\n.vditor-ir .vditor-reset > h4:before {\n content: \'H4\';\n}\n.vditor-ir .vditor-reset > h5:before {\n content: \'H5\';\n}\n.vditor-ir .vditor-reset > h6:before {\n content: \'H6\';\n}\n.vditor-ir div[data-type="link-ref-defs-block"] {\n color: var(--blockquote-color);\n}\n.vditor-ir div[data-type="link-ref-defs-block"]:before {\n content: \'"A"\';\n}\n.vditor-ir div[data-type="footnotes-block"] {\n border-top: 2px solid var(--heading-border-color);\n padding-top: 24px;\n margin-top: 24px;\n}\n.vditor-ir div[data-type="footnotes-block"]:before {\n content: \'^F\';\n}\n.vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > ul,\n.vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > ol,\n.vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > p,\n.vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > blockquote,\n.vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > pre,\n.vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > table,\n.vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > hr {\n margin-left: 8px;\n}\n.vditor-ir .vditor-toc:before {\n content: "ToC";\n}\n.vditor-ir .vditor-toc span[data-type="toc-h"] {\n color: #4285f4;\n text-decoration: underline;\n}\n@media screen and (max-width: 520px) {\n .vditor-ir h1:before,\n .vditor-ir h2:before,\n .vditor-ir h3:before,\n .vditor-ir h4:before,\n .vditor-ir h5:before,\n .vditor-ir h6:before,\n .vditor-ir div[data-type="link-ref-defs-block"]:before,\n .vditor-ir div[data-type="footnotes-block"]:before,\n .vditor-ir .vditor-toc:before {\n content: none;\n }\n}\n.vditor-sv {\n font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";\n margin: 0 1px 0 0;\n overflow: auto;\n width: 100%;\n flex: 1;\n min-width: 1px;\n border: 0;\n resize: none;\n padding: 10px 9px 10px 10px;\n box-sizing: border-box;\n background-color: var(--panel-background-color);\n outline: 0 none;\n font-size: 16px;\n line-height: 22px;\n color: var(--textarea-text-color);\n border-radius: 0 0 3px 3px;\n font-feature-settings: "liga", "clig off";\n font-variant-ligatures: no-common-ligatures;\n white-space: pre-wrap;\n word-break: break-word;\n word-wrap: break-word;\n}\n.vditor-sv[contenteditable="false"] {\n opacity: 0.3;\n cursor: not-allowed;\n}\n.vditor-sv:empty::before {\n content: attr(placeholder);\n color: var(--second-color);\n}\n.vditor-sv:focus {\n background-color: var(--textarea-background-color);\n}\n.vditor-sv:after {\n content: "";\n height: var(--editor-bottom);\n display: block;\n}\n.vditor-sv span[data-type="newline"] + span[data-type="text"]:empty {\n display: inherit;\n}\n.vditor-sv .sup {\n vertical-align: super;\n font-size: smaller;\n}\n.vditor-sv .strong {\n font-weight: bold;\n}\n.vditor-sv .em {\n font-style: italic;\n}\n.vditor-sv .s {\n text-decoration: line-through;\n}\n.vditor-sv .mark:not(.vditor-sv__marker) {\n background-color: yellow;\n color: black;\n}\n.vditor-sv .h1 {\n font-size: 1.75em;\n line-height: 44px;\n}\n.vditor-sv .h2 {\n font-size: 1.55em;\n line-height: 38px;\n}\n.vditor-sv .h3 {\n font-size: 1.38em;\n line-height: 27px;\n}\n.vditor-sv .h4 {\n font-size: 1.25em;\n line-height: 25px;\n}\n.vditor-sv .h5 {\n font-size: 1.13em;\n}\n.vditor-sv .h6 {\n font-size: 1em;\n}\n.vditor-sv__marker {\n color: var(--second-color);\n}\n.vditor-sv__marker--heading {\n color: var(--ir-heading-color);\n}\n.vditor-sv__marker--bi {\n color: var(--ir-bi-color);\n}\n.vditor-sv__marker--link {\n color: var(--ir-link-color);\n}\n.vditor-sv__marker--title {\n color: var(--ir-title-color);\n}\n.vditor-sv__marker--bracket {\n color: var(--ir-bracket-color);\n}\n.vditor-sv__marker--paren {\n color: var(--ir-paren-color);\n}\n.vditor-sv__marker--info {\n color: var(--ir-heading-color);\n}\n.vditor-sv__marker--strong {\n font-weight: bold;\n}\n\n',""]),o.A=s},433:function(n){"use strict";n.exports=function(n){var o=[];return o.toString=function(){return this.map(function(o){var e="",t=void 0!==o[5];return o[4]&&(e+="@supports (".concat(o[4],") {")),o[2]&&(e+="@media ".concat(o[2]," {")),t&&(e+="@layer".concat(o[5].length>0?" ".concat(o[5]):""," {")),e+=n(o),t&&(e+="}"),o[2]&&(e+="}"),o[4]&&(e+="}"),e}).join("")},o.i=function(n,e,t,r,i){"string"==typeof n&&(n=[[null,n,void 0]]);var a={};if(t)for(var l=0;l<this.length;l++){var d=this[l][0];null!=d&&(a[d]=!0)}for(var c=0;c<n.length;c++){var s=[].concat(n[c]);t&&a[s[0]]||(void 0!==i&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=i),e&&(s[2]&&(s[1]="@media ".concat(s[2]," {").concat(s[1],"}")),s[2]=e),r&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=r):s[4]="".concat(r)),o.push(s))}},o}},220:function(n){"use strict";n.exports=function(n,o){return(o||(o={}),n&&(n=String(n.__esModule?n.default:n),/^['"].*['"]$/.test(n)&&(n=n.slice(1,-1)),o.hash&&(n+=o.hash),/["'() \t\n]|(%20)/.test(n)||o.needQuotes))?'"'.concat(n.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):n}},168:function(n){"use strict";n.exports=function(n){return n[1]}},631:function(n){n.exports=function(n,o){return"u">typeof __deoptimization_sideEffect__&&__deoptimization_sideEffect__(n,o),o}},673:function(n){"use strict";var o=[];function e(n){for(var e=-1,t=0;t<o.length;t++)if(o[t].identifier===n){e=t;break}return e}function t(n,t){for(var r={},i=[],a=0;a<n.length;a++){var l=n[a],d=t.base?l[0]+t.base:l[0],c=r[d]||0,s="".concat(d," ").concat(c);r[d]=c+1;var p=e(s),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)o[p].references++,o[p].updater(u);else{var v=function(n,o){var e=o.domAPI(o);return e.update(n),function(o){o?(o.css!==n.css||o.media!==n.media||o.sourceMap!==n.sourceMap||o.supports!==n.supports||o.layer!==n.layer)&&e.update(n=o):e.remove()}}(u,t);t.byIndex=a,o.splice(a,0,{identifier:s,updater:v,references:1})}i.push(s)}return i}n.exports=function(n,r){var i=t(n=n||[],r=r||{});return function(n){n=n||[];for(var a=0;a<i.length;a++){var l=e(i[a]);o[l].references--}for(var d=t(n,r),c=0;c<i.length;c++){var s=e(i[c]);0===o[s].references&&(o[s].updater(),o.splice(s,1))}i=d}}},262:function(n){"use strict";var o={};n.exports=function(n,e){var t=function(n){if(void 0===o[n]){var e=document.querySelector(n);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(n){e=null}o[n]=e}return o[n]}(n);if(!t)throw Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(e)}},357:function(n){"use strict";n.exports=function(n){var o=document.createElement("style");return n.setAttributes(o,n.attributes),n.insert(o,n.options),o}},657:function(n,o,e){"use strict";n.exports=function(n){var o=e.nc;o&&n.setAttribute("nonce",o)}},598:function(n){"use strict";n.exports=function(n){if("u"<typeof document)return{update:function(){},remove:function(){}};var o=n.insertStyleElement(n);return{update:function(e){var t,r,i;t="",e.supports&&(t+="@supports (".concat(e.supports,") {")),e.media&&(t+="@media ".concat(e.media," {")),(r=void 0!==e.layer)&&(t+="@layer".concat(e.layer.length>0?" ".concat(e.layer):""," {")),t+=e.css,r&&(t+="}"),e.media&&(t+="}"),e.supports&&(t+="}"),(i=e.sourceMap)&&"u">typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),n.styleTagTransform(t,o,n.options)},remove:function(){var n;null===(n=o).parentNode||n.parentNode.removeChild(n)}}}},626:function(n){"use strict";n.exports=function(n,o){if(o.styleSheet)o.styleSheet.cssText=n;else{for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(document.createTextNode(n))}}},573:function(n){"use strict";n.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8AgMAAABHkjHhAAAACVBMVEWAgIBaWlo+Pj7rTFvWAAAAA3RSTlMHCAw+VhR4AAAA+klEQVQoz4WSMW7EQAhFPxKWNh2FCx+HkaZI6RRb5DYbyVfIJXLKDCFoMbaTKSw/8ZnPAPjaH2xgZcUNUDADD7D9LtDBCLZ45fbkvo/30K8yeI64pPwl6znd/3n/Oe93P3ho9qeh72btTFzqkz0rsJle8Zr81OLEwZ1dv/713uWqvu2pl+k0fy7MWtj9r/tN5q/02z89qa/L4Dc2LvM93kezPfXlME/O86EbY/V9GB9ePX8G1/6W+/9h1dq/HGfTfzT3j/xNo7522Bfnqe5jO/fvhVthlfk434v3iO9zG/UOphyPeinPl1J8Gtaa7xPTa/Dk+RIs4deMvwGvcGsmsCvJ0AAAAABJRU5ErkJggg=="},230:function(n){"use strict";n.exports=o},342:function(n){"use strict";n.exports=i},694:function(n){"use strict";n.exports=e},768:function(n){"use strict";n.exports=a},59:function(n){"use strict";n.exports=r},155:function(n){"use strict";n.exports=t},953:function(o){"use strict";o.exports=n},968:function(n,o,e){"use strict";var t=window.__webpack_public_path__||"/";"/"!==t.charAt(t.length-1)&&(t+="/"),e.p=t+"static/plugins/@nocobase/plugin-field-markdown-vditor/dist/client/"}},p={};function u(n){var o=p[n];if(void 0!==o)return o.exports;var e=p[n]={id:n,exports:{}};return s[n].call(e.exports,e,e.exports,u),e.exports}u.m=s,u.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return u.d(o,{a:o}),o},u.d=function(n,o){for(var e in o)u.o(o,e)&&!u.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:o[e]})},u.f={},u.e=function(n){return Promise.all(Object.keys(u.f).reduce(function(o,e){return u.f[e](n,o),o},[]))},u.u=function(n){return""+({59:"75d9db7497e71eb4",742:"6ff7819dc2796056"})[n]+".js"},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(n){if("object"==typeof window)return window}}(),u.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},v={},u.l=function(n,o,e,t){if(v[n])return void v[n].push(o);if(void 0!==e)for(var r,i,a=document.getElementsByTagName("script"),l=0;l<a.length;l++){var d=a[l];if(d.getAttribute("src")==n||d.getAttribute("data-rspack")=="@nocobase/plugin-field-markdown-vditor:"+e){r=d;break}}r||(i=!0,(r=document.createElement("script")).timeout=120,u.nc&&r.setAttribute("nonce",u.nc),r.setAttribute("data-rspack","@nocobase/plugin-field-markdown-vditor:"+e),r.src=n),v[n]=[o];var c=function(o,e){r.onerror=r.onload=null,clearTimeout(s);var t=v[n];if(delete v[n],r.parentNode&&r.parentNode.removeChild(r),t&&t.forEach(function(n){return n(e)}),o)return o(e)},s=setTimeout(c.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=c.bind(null,r.onerror),r.onload=c.bind(null,r.onload),i&&document.head.appendChild(r)},u.r=function(n){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},u.nc=void 0,u.g.importScripts&&(f=u.g.location+"");var v,f,b=u.g.document;if(!f&&b&&(b.currentScript&&"SCRIPT"===b.currentScript.tagName.toUpperCase()&&(f=b.currentScript.src),!f)){var h=b.getElementsByTagName("script");if(h.length)for(var g=h.length-1;g>-1&&(!f||!/^http(s?):/.test(f));)f=h[g--].src}if(!f)throw Error("Automatic publicPath is not supported in this browser");return u.p=f.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),u.b=document.baseURI||self.location.href,l={889:0},u.f.j=function(n,o){var e=u.o(l,n)?l[n]:void 0;if(0!==e)if(e)o.push(e[2]);else{var t=new Promise(function(o,t){e=l[n]=[o,t]});o.push(e[2]=t);var r=u.p+u.u(n),i=Error();u.l(r,function(o){if(u.o(l,n)&&(0!==(e=l[n])&&(l[n]=void 0),e)){var t=o&&("load"===o.type?"missing":o.type),r=o&&o.target&&o.target.src;i.message="Loading chunk "+n+" failed.\n("+t+": "+r+")",i.name="ChunkLoadError",i.type=t,i.request=r,e[1](i)}},"chunk-"+n,n)}},d=function(n,o){var e,t,r=o[0],i=o[1],a=o[2],d=0;if(r.some(function(n){return 0!==l[n]})){for(e in i)u.o(i,e)&&(u.m[e]=i[e]);a&&a(u)}for(n&&n(o);d<r.length;d++)t=r[d],u.o(l,t)&&l[t]&&l[t][0](),l[t]=0},(c=self.webpackChunk_nocobase_plugin_field_markdown_vditor=self.webpackChunk_nocobase_plugin_field_markdown_vditor||[]).forEach(d.bind(null,0)),c.push=d.bind(null,c.push.bind(c)),u(968),u(303)}()});
10
+ !function(n,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("react-i18next"),require("@formily/react"),require("@nocobase/flow-engine"),require("react"),require("antd"),require("@nocobase/client"),require("@nocobase/utils/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-field-markdown-vditor",["react-i18next","@formily/react","@nocobase/flow-engine","react","antd","@nocobase/client","@nocobase/utils/client"],o):"object"==typeof exports?exports["@nocobase/plugin-field-markdown-vditor"]=o(require("react-i18next"),require("@formily/react"),require("@nocobase/flow-engine"),require("react"),require("antd"),require("@nocobase/client"),require("@nocobase/utils/client")):n["@nocobase/plugin-field-markdown-vditor"]=o(n["react-i18next"],n["@formily/react"],n["@nocobase/flow-engine"],n.react,n.antd,n["@nocobase/client"],n["@nocobase/utils/client"])}(self,function(n,o,e,t,r,i,a){return function(){"use strict";var l,d,c,s={925:function(n,o,e){var t=e(168),r=e.n(t),i=e(433),a=e.n(i),l=e(220),d=e.n(l),c=new URL(e(573),e.b),s=a()(r()),p=d()(c);s.push([n.id,'/*!\n * Vditor v3.10.4 - A markdown editor written in TypeScript.\n *\n * MIT License\n *\n * Copyright (c) 2018-present B3log 开源, b3log.org\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\n.vditor {\n --border-color: #d1d5da;\n --second-color: rgba(88, 96, 105, 0.36);\n --panel-background-color: #fff;\n --panel-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\n --toolbar-background-color: #f6f8fa;\n --toolbar-icon-color: #586069;\n --toolbar-icon-hover-color: #4285f4;\n --toolbar-height: 35px;\n --toolbar-divider-margin-top: 8px;\n --textarea-background-color: #fafbfc;\n --textarea-text-color: #24292e;\n --resize-icon-color: var(--toolbar-icon-color);\n --resize-background-color: var(--toolbar-background-color);\n --resize-hover-icon-color: var(--panel-background-color);\n --resize-hover-background-color: var(--toolbar-icon-hover-color);\n --count-background-color: rgba(27, 31, 35, 0.05);\n --heading-border-color: #eaecef;\n --blockquote-color: #6a737d;\n --ir-heading-color: #660e7a;\n --ir-title-color: #808080;\n --ir-bi-color: #0033b3;\n --ir-link-color: #008000;\n --ir-bracket-color: #0000ff;\n --ir-paren-color: #008000;\n}\n.vditor--dark {\n --border-color: #141414;\n --second-color: rgba(185, 185, 185, 0.36);\n --panel-background-color: #24292e;\n --panel-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);\n --toolbar-background-color: #1d2125;\n --toolbar-icon-color: #b9b9b9;\n --toolbar-icon-hover-color: #fff;\n --textarea-background-color: #2f363d;\n --textarea-text-color: #d1d5da;\n --resize-icon-color: var(--border-color);\n --resize-background-color: var(--second-color);\n --resize-hover-icon-color: var(--toolbar-icon-hover-color);\n --resize-hover-background-color: rgba(185, 185, 185, 0.86);\n --count-background-color: rgba(66, 133, 244, 0.36);\n --heading-border-color: var(--textarea-text-color);\n --blockquote-color: var(--toolbar-icon-color);\n --ir-heading-color: #9876aa;\n --ir-title-color: #808080;\n --ir-bi-color: #cc7832;\n --ir-link-color: #ffc66d;\n --ir-bracket-color: #287bde;\n --ir-paren-color: #6a8759;\n}\n/**\n * tool tip.\n *\n * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>\n * @version 0.1.0.0, Jan 25, 2019\n */\n@keyframes tooltip-appear {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.vditor-tooltipped {\n position: relative;\n cursor: pointer;\n}\n.vditor-tooltipped::after {\n position: absolute;\n z-index: 1000000;\n display: none;\n padding: 5px 8px;\n font-size: 11px;\n font-weight: normal;\n -webkit-font-smoothing: subpixel-antialiased;\n color: #fff;\n text-align: center;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n letter-spacing: normal;\n word-wrap: break-word;\n white-space: pre;\n pointer-events: none;\n content: attr(aria-label);\n background: #3b3e43;\n border-radius: 3px;\n line-height: 16px;\n opacity: 0;\n}\n.vditor-tooltipped::before {\n position: absolute;\n z-index: 1000001;\n display: none;\n width: 0;\n height: 0;\n color: #3b3e43;\n pointer-events: none;\n content: "";\n border: 5px solid transparent;\n opacity: 0;\n}\n.vditor-tooltipped--hover::before,\n.vditor-tooltipped--hover::after,\n.vditor-tooltipped:hover::before,\n.vditor-tooltipped:hover::after,\n.vditor-tooltipped:active::before,\n.vditor-tooltipped:active::after,\n.vditor-tooltipped:focus::before,\n.vditor-tooltipped:focus::after {\n display: inline-block;\n text-decoration: none;\nanimation-name: tooltip-appear;\nanimation-duration: 0.15s;\nanimation-fill-mode: forwards;\nanimation-timing-function: ease-in;\n}\n.vditor-tooltipped__s::after,\n.vditor-tooltipped__se::after,\n.vditor-tooltipped__sw::after {\n top: 100%;\n right: 50%;\n margin-top: 5px;\n}\n.vditor-tooltipped__s::before,\n.vditor-tooltipped__se::before,\n.vditor-tooltipped__sw::before {\n top: auto;\n right: 50%;\n bottom: -5px;\n margin-right: -5px;\n border-bottom-color: #3b3e43;\n}\n.vditor-tooltipped__se::after {\n right: auto;\n left: 50%;\n margin-left: -15px;\n}\n.vditor-tooltipped__sw::after {\n margin-right: -15px;\n}\n.vditor-tooltipped__n::after,\n.vditor-tooltipped__ne::after,\n.vditor-tooltipped__nw::after {\n right: 50%;\n bottom: 100%;\n margin-bottom: 5px;\n}\n.vditor-tooltipped__n::before,\n.vditor-tooltipped__ne::before,\n.vditor-tooltipped__nw::before {\n top: -5px;\n right: 50%;\n bottom: auto;\n margin-right: -5px;\n border-top-color: #3b3e43;\n}\n.vditor-tooltipped__ne::after {\n right: auto;\n left: 50%;\n margin-left: -15px;\n}\n.vditor-tooltipped__nw::after {\n margin-right: -15px;\n}\n.vditor-tooltipped__s::after,\n.vditor-tooltipped__n::after {\n transform: translateX(50%);\n}\n.vditor-tooltipped__w::after {\n right: 100%;\n bottom: 50%;\n margin-right: 5px;\n transform: translateY(50%);\n}\n.vditor-tooltipped__w::before {\n top: 50%;\n bottom: 50%;\n left: -5px;\n margin-top: -5px;\n border-left-color: #3b3e43;\n}\n.vditor-tooltipped__e::after {\n bottom: 50%;\n left: 100%;\n margin-left: 5px;\n transform: translateY(50%);\n}\n.vditor-tooltipped__e::before {\n top: 50%;\n right: -5px;\n bottom: 50%;\n margin-top: -5px;\n border-right-color: #3b3e43;\n}\n@media screen and (max-width: 520px) {\n .vditor-tooltipped:before,\n .vditor-tooltipped:after {\n content: none;\n }\n}\n/**\n * panel.\n *\n * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>\n * @version 1.0.0.0, Jan 22, 2020\n */\n@keyframes scale-in {\n 0% {\n opacity: 0;\n transform: scale(0.5);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n.vditor-panel {\n background-color: var(--panel-background-color);\n position: absolute;\n box-shadow: var(--panel-shadow);\n border-radius: 3px;\n padding: 5px;\n z-index: 3;\n font-size: 14px;\n display: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n max-width: 320px;\n min-width: 80px;\nanimation-duration: 0.15s;\nanimation-name: scale-in;\nanimation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);\n color: var(--toolbar-icon-color);\n}\n.vditor-panel--none {\n padding: 0;\nanimation: none;\n min-width: auto;\n max-width: none;\n white-space: nowrap;\n opacity: 0.86;\n}\n.vditor-panel--arrow:before {\n position: absolute;\n width: 0;\n height: 0;\n pointer-events: none;\n content: " ";\n border: 7px solid transparent;\n top: -14px;\n left: 5px;\n border-bottom-color: var(--panel-background-color);\n}\n.vditor-panel--left {\n right: 0;\n}\n.vditor-panel--left.vditor-panel--arrow:before {\n right: 5px;\n left: auto;\n}\n.vditor-input {\n border: 0;\n padding: 3px 5px;\n background-color: var(--panel-background-color);\n font-size: 12px;\n color: var(--textarea-text-color);\n}\n.vditor-input:focus {\n background-color: var(--toolbar-background-color);\n outline: none;\n}\n.vditor-icon {\n color: var(--toolbar-icon-color);\n cursor: pointer;\n float: left;\n padding: 4px 5px;\n height: 21px;\n width: 23px;\n background-color: transparent;\n border: 0;\n box-sizing: border-box;\n}\n.vditor-icon:hover,\n.vditor-icon--current {\n color: var(--toolbar-icon-hover-color);\n background-color: transparent;\n}\n.vditor-icon:focus {\n outline: none;\n}\n.vditor-icon svg {\n height: 13px !important;\n width: 13px !important;\n float: left;\n fill: currentColor;\n pointer-events: none;\n}\n.vditor-toolbar {\n background-color: var(--toolbar-background-color);\n border-bottom: 1px solid var(--border-color);\n padding: 0 5px;\n line-height: 1;\n}\n.vditor-toolbar--pin {\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n z-index: 1;\n}\n.vditor-toolbar--hide {\n transition: all 0.15s ease-in-out;\n height: 5px;\n overflow: hidden;\n}\n.vditor-toolbar--hide:hover {\n background-color: var(--toolbar-background-color);\n height: auto;\n overflow: visible;\n}\n.vditor-toolbar__item {\n float: left;\n position: relative;\n}\n.vditor-toolbar__item .vditor-tooltipped {\n color: var(--toolbar-icon-color);\n border: 0;\n padding: 10px 5px;\n background-color: transparent;\n height: var(--toolbar-height);\n width: 25px;\n box-sizing: border-box;\n font-size: 0;\n}\n.vditor-toolbar__item .vditor-tooltipped:focus {\n outline: none;\n}\n.vditor-toolbar__item .vditor-tooltipped:focus {\n cursor: pointer;\n color: var(--toolbar-icon-hover-color);\n}\n.vditor-toolbar__item svg {\n fill: currentColor;\n display: inline-block;\n stroke-width: 0;\n stroke: currentColor;\n width: 15px;\n height: 15px;\n}\n.vditor-toolbar__item input {\n position: absolute;\n width: 25px;\n height: var(--toolbar-height);\n top: 0;\n left: 0;\n cursor: pointer;\n opacity: 0.001;\n overflow: hidden;\n}\n.vditor-toolbar__divider {\n float: left;\n height: -webkit-calc(var(--toolbar-height) - (var(--toolbar-divider-margin-top) * 2));\n height: -moz-calc(var(--toolbar-height) - (var(--toolbar-divider-margin-top) * 2));\n height: calc(var(--toolbar-height) - (var(--toolbar-divider-margin-top) * 2));\n border-left: 1px solid var(--second-color);\n margin: var(--toolbar-divider-margin-top) 8px;\n}\n.vditor-toolbar__br {\n width: 100%;\n padding: 0 !important;\n height: 0 !important;\n}\n.vditor-menu--current {\n color: var(--toolbar-icon-hover-color) !important;\n}\n.vditor-menu--disabled {\n color: var(--second-color) !important;\n cursor: not-allowed !important;\n}\n.vditor-emojis {\n display: inline-block;\n overflow: auto;\n}\n.vditor-emojis::-webkit-scrollbar {\n display: none;\n}\n.vditor-emojis__tip {\n flex: 1;\n min-width: 1px;\n width: 200px;\n margin-right: 10px;\n color: var(--toolbar-icon-color);\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.vditor-emojis__tail {\n margin-top: 5px;\n font-size: 12px;\n color: var(--toolbar-icon-color);\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n}\n.vditor-emojis__tail a {\n text-decoration: none;\n color: var(--toolbar-icon-color);\n}\n.vditor-emojis__tail a:hover {\n color: var(--toolbar-icon-hover-color);\n}\n.vditor-emojis button {\n cursor: pointer;\n border-radius: 3px;\n float: left;\n height: 30px;\n width: 30px;\n text-align: center;\n line-height: 26px;\n padding: 3px;\n box-sizing: border-box;\n font-size: 16px;\n transition: all 0.15s ease-in-out;\n border: 0;\n margin: 0;\n background-color: transparent;\n overflow: hidden;\n}\n.vditor-emojis button:focus {\n outline: none;\n}\n.vditor-emojis button:hover .vditor-emojis__icon {\n display: inline-block;\n transform: scale(1.2);\n}\n.vditor-emojis img {\n height: 20px;\n width: 20px;\n float: left;\n margin: 3px 0 0 3px;\n}\n@media screen and (max-width: 520px) {\n .vditor-toolbar__item {\n padding: 0 12px;\n }\n .vditor-panel--left.vditor-panel--arrow:before {\n right: 17px;\n }\n}\n@media (hover: hover) and (pointer: fine) {\n .vditor-toolbar__item .vditor-tooltipped:hover {\n color: var(--toolbar-icon-hover-color);\n }\n}\n@keyframes slideInDown {\n from {\n transform: translate3d(0, -100%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n.vditor {\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n flex-direction: column;\n border: 1px solid var(--border-color);\n border-radius: 3px;\n box-sizing: border-box;\n font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";\n}\n.vditor--fullscreen {\n position: fixed;\n top: 0;\n width: 100% !important;\n left: 0;\n height: 100vh !important;\n z-index: 90;\n border-radius: 0;\n}\n.vditor-content {\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n min-height: 60px;\n flex: 1;\n min-width: 1px;\n position: relative;\n}\n.vditor-preview {\n flex: 1;\n min-width: 1px;\n overflow: auto;\n margin-left: -1px;\n border-left: 1px solid var(--border-color);\n box-sizing: border-box;\n border-radius: 0 0 3px 0;\n background-color: var(--textarea-background-color);\n}\n.vditor-preview::-webkit-scrollbar {\n display: none;\n}\n.vditor-preview__action {\n text-align: center;\n padding: 10px;\n background-color: var(--toolbar-background-color);\n}\n.vditor-preview__action button {\n background-color: var(--toolbar-background-color);\n color: var(--toolbar-icon-color);\n line-height: 20px;\n border: 0;\n margin: 0 10px;\n cursor: pointer;\n padding: 0 7px;\n font-size: 12px;\n}\n.vditor-preview__action button.vditor-preview__action--current,\n.vditor-preview__action button:hover {\n color: var(--toolbar-icon-hover-color);\n background-color: var(--toolbar-background-color);\n}\n.vditor-preview__action button:focus {\n outline: none;\n}\n.vditor-preview__action button svg {\n fill: currentColor;\n height: 15px;\n width: 15px;\n vertical-align: middle;\n}\n.vditor-preview > .vditor-reset {\n padding: 10px;\n margin: 0 auto;\n}\n.vditor-preview img:not(.emoji) {\n cursor: pointer;\n}\n.vditor-devtools {\n display: none;\n background-color: var(--textarea-background-color);\n overflow: auto;\n flex: 1;\n min-width: 1px;\n box-shadow: inset 1px 0 var(--border-color);\n box-sizing: border-box;\n border-radius: 0 0 3px 0;\n padding: 10px;\n}\n.vditor-counter {\n padding: 3px;\n color: var(--toolbar-icon-color);\n background-color: var(--count-background-color);\n border-radius: 3px;\n font-size: 12px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n float: right;\n margin: 8px 3px 0 0;\n}\n.vditor-counter--error {\n color: #d23f31;\n background-color: rgba(210, 63, 49, 0.1);\n}\n.vditor-resize {\n padding: 3px 0;\n cursor: row-resize;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n position: absolute;\n width: 100%;\n}\n.vditor-resize--top {\n top: -3px;\n}\n.vditor-resize--bottom {\n bottom: -3px;\n}\n.vditor-resize > div {\n height: 3px;\n background-color: var(--resize-background-color);\n transition: all 0.15s ease-in-out;\n}\n.vditor-resize:hover > div,\n.vditor-resize--selected > div {\n background-color: var(--resize-hover-background-color);\n}\n.vditor-resize:hover svg,\n.vditor-resize--selected svg {\n color: var(--resize-hover-icon-color);\n}\n.vditor-resize svg {\n fill: currentColor;\n stroke-width: 0;\n stroke: currentColor;\n width: 13px;\n height: 3px;\n display: block;\n margin: 0 auto;\n color: var(--resize-icon-color);\n}\n.vditor-upload {\n position: absolute;\n height: 3px;\n left: 0;\n top: -2px;\n transition: all 0.15s ease-in-out;\n background-color: #4285f4;\n}\n.vditor-tip {\n position: absolute;\n font-size: 12px;\n top: 10px;\nanimation-duration: 0.15s;\nanimation-fill-mode: both;\n left: 50%;\n z-index: 5;\n}\n.vditor-tip--show {\n display: block;\nanimation-name: slideInDown;\n}\n.vditor-tip__content {\n text-align: left;\n display: inline-block;\n line-height: 16px;\n padding: 3px 10px;\n border-radius: 3px;\n background: var(--toolbar-background-color);\n position: relative;\n margin-left: -50%;\n color: var(--toolbar-icon-color);\n max-width: 100%;\n box-shadow: var(--panel-shadow);\n}\n.vditor-tip__content ul {\n margin: 2px 0;\n padding: 0 0 0 18px;\n}\n.vditor-tip__content a {\n color: #4285f4;\n}\n.vditor-tip__close {\n position: absolute;\n color: var(--toolbar-icon-color);\n top: -7px;\n right: -15px;\n font-weight: bold;\n cursor: pointer;\n}\n.vditor-tip__close:hover {\n color: var(--toolbar-icon-hover-color);\n}\n.vditor-img {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n flex-direction: column;\n z-index: 100;\n}\n.vditor-img__bar {\n border-bottom: 1px solid var(--border-color);\n background-color: var(--toolbar-background-color);\n text-align: center;\n height: 36px;\n box-sizing: border-box;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.vditor-img__btn {\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n align-items: center;\n cursor: pointer;\n margin-left: 24px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n color: var(--toolbar-icon-color);\n}\n.vditor-img__btn:hover {\n color: var(--toolbar-icon-hover-color);\n}\n.vditor-img__btn svg {\n height: 14px;\n width: 14px;\n margin-right: 8px;\n fill: currentColor;\n}\n.vditor-img__img {\n flex: 1;\n background-color: var(--textarea-background-color);\n overflow: auto;\n cursor: -webkit-zoom-out;\n cursor: -moz-zoom-out;\n cursor: zoom-out;\n}\n.vditor-img__img img {\n max-width: none;\n}\n.vditor-hint {\n background-color: var(--panel-background-color);\n position: absolute;\n box-shadow: var(--panel-shadow);\n border-radius: 3px;\n padding: 5px 0;\n z-index: 4;\n line-height: 20px;\n list-style: none;\n font-size: 12px;\n margin: 0;\n max-width: 250px;\n min-width: 80px;\n display: none;\n}\n.vditor-hint .vditor-hint {\n margin-top: -31px;\n left: 100%;\n right: auto;\n}\n.vditor-hint .vditor-hint.vditor-panel--left {\n right: 100%;\n left: auto;\n}\n.vditor-hint button {\n color: var(--toolbar-icon-color);\n display: block;\n padding: 3px 10px;\n border: 0;\n border-radius: 0;\n line-height: 20px;\n width: 100%;\n box-sizing: border-box;\n text-align: left;\n margin: 0;\n background-color: transparent;\n cursor: pointer;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.vditor-hint button:focus {\n outline: none;\n}\n.vditor-hint--current,\n.vditor-hint button:not(.vditor-menu--disabled):hover {\n background-color: var(--toolbar-background-color) !important;\n color: var(--toolbar-icon-hover-color) !important;\n}\n.vditor-hint__emoji {\n font-size: 16px;\n float: left;\n margin-right: 3px;\n}\n.vditor-hint img {\n height: 20px;\n width: 20px;\n float: left;\n margin-right: 3px;\n}\n.vditor-reset {\n color: #24292e;\n font-feature-settings: "liga", "clig off";\n font-variant-ligatures: no-common-ligatures;\n font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";\n word-wrap: break-word;\n overflow: auto;\n line-height: 1.5;\n font-size: 16px;\n word-break: break-word;\n}\n.vditor-reset--anchor {\n padding-left: 20px;\n}\n.vditor-reset--error {\n color: #d23f31;\n font-size: 12px;\n display: block;\n line-height: 16px;\n}\n.vditor-reset ul ul ul {\n list-style-type: square;\n}\n.vditor-reset ul ul {\n list-style-type: circle;\n}\n.vditor-reset ul {\n list-style-type: disc;\n}\n.vditor-reset ul,\n.vditor-reset ol {\n padding-left: 2em;\n margin-top: 0;\n margin-bottom: 16px;\n}\n.vditor-reset li + li {\n margin-top: 0.25em;\n}\n.vditor-reset li p {\n margin-top: 16px;\n}\n.vditor-reset audio {\n max-width: 100%;\n}\n.vditor-reset audio:focus {\n outline: none;\n}\n.vditor-reset video {\n max-height: 90vh;\n max-width: 100%;\n}\n.vditor-reset img {\n max-width: 100%;\n}\n.vditor-reset img.emoji {\n cursor: auto;\n max-width: 20px;\n vertical-align: sub;\n}\n.vditor-reset h1,\n.vditor-reset h2,\n.vditor-reset h3,\n.vditor-reset h4,\n.vditor-reset h5,\n.vditor-reset h6 {\n margin-top: 24px;\n margin-bottom: 16px;\n font-weight: 600;\n line-height: 1.25;\n}\n.vditor-reset h1:hover .vditor-anchor svg,\n.vditor-reset h2:hover .vditor-anchor svg,\n.vditor-reset h3:hover .vditor-anchor svg,\n.vditor-reset h4:hover .vditor-anchor svg,\n.vditor-reset h5:hover .vditor-anchor svg,\n.vditor-reset h6:hover .vditor-anchor svg {\n visibility: visible;\n}\n.vditor-reset h1 {\n font-size: 1.75em;\n}\n.vditor-reset h2 {\n font-size: 1.55em;\n}\n.vditor-reset h3 {\n font-size: 1.38em;\n}\n.vditor-reset h4 {\n font-size: 1.25em;\n}\n.vditor-reset h5 {\n font-size: 1.13em;\n}\n.vditor-reset h6 {\n font-size: 1em;\n}\n.vditor-reset hr {\n height: 2px;\n padding: 0;\n margin: 24px 0;\n background-color: #eaecef;\n border: 0;\n}\n.vditor-reset p {\n margin-top: 0;\n margin-bottom: 16px;\n}\n.vditor-reset blockquote {\n padding: 0 1em;\n color: #6a737d;\n border-left: 0.25em solid #eaecef;\n margin: 0 0 16px 0;\n}\n.vditor-reset blockquote > :first-child {\n margin-top: 0;\n}\n.vditor-reset blockquote > :last-child {\n margin-bottom: 0;\n}\n.vditor-reset ins > iframe {\n border: 0;\n}\n.vditor-reset iframe {\n border: 1px solid #d1d5da;\n max-width: 100%;\n box-sizing: border-box;\n}\n.vditor-reset iframe.iframe__video {\n min-width: 80%;\n min-height: 36vh;\n}\n.vditor-reset table {\n border-collapse: collapse;\n empty-cells: show;\n margin-bottom: 16px;\n overflow: auto;\n border-spacing: 0;\n display: block;\n word-break: keep-all;\n width: 100%;\n}\n.vditor-reset table tr {\n background-color: #fafbfc;\n border-top: 1px solid #c6cbd1;\n}\n.vditor-reset table td,\n.vditor-reset table th {\n padding: 6px 13px;\n border: 1px solid #dfe2e5;\n word-break: normal;\n white-space: nowrap;\n}\n.vditor-reset table td:first-child::after,\n.vditor-reset table th:first-child::after {\n content: "";\n display: inline-block;\n vertical-align: top;\n min-height: 24px;\n}\n.vditor-reset table th {\n font-weight: 600;\n}\n.vditor-reset table tbody tr:nth-child(2n) {\n background-color: #fff;\n}\n.vditor-reset code:not(.hljs):not(.highlight-chroma) {\n padding: 0.2em 0.4em;\n margin: 0;\n font-size: 85%;\n border-radius: 3px;\n font-family: mononoki, Consolas, "Liberation Mono", Menlo, Courier, monospace, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";\n word-break: break-word;\n background-size: 20px 20px;\n white-space: pre-wrap;\n}\n.vditor-reset pre {\n margin: 1em 0;\n}\n.vditor-reset pre > code {\n margin: 0;\n font-size: 85%;\n padding: 0.5em;\n border-radius: 5px;\n display: block;\n overflow: auto;\n white-space: pre;\n font-family: mononoki, Consolas, "Liberation Mono", Menlo, Courier, monospace, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";\n background-size: 20px 20px;\n background-image: url('+p+');\n word-break: initial;\n word-wrap: normal;\n}\n.vditor-reset pre:hover div.vditor-copy {\n display: block;\n}\n.vditor-reset .language-math,\n.vditor-reset .language-echarts,\n.vditor-reset .language-mindmap,\n.vditor-reset .language-plantuml,\n.vditor-reset .language-mermaid,\n.vditor-reset .language-markmap,\n.vditor-reset .language-abc,\n.vditor-reset .language-flowchart,\n.vditor-reset .language-graphviz {\n margin-bottom: 16px;\n}\n.vditor-reset .language-math mjx-container:focus {\n outline: none;\n cursor: context-menu;\n}\n.vditor-reset .language-echarts,\n.vditor-reset .language-mindmap {\n overflow: hidden;\n height: 420px;\n}\n.vditor-reset .language-mermaid,\n.vditor-reset .language-markmap,\n.vditor-reset .language-flowchart,\n.vditor-reset .language-graphviz {\n text-align: center;\n}\n.vditor-reset .language-graphviz parsererror {\n overflow: auto;\n}\n.vditor-reset kbd {\n display: inline-block;\n padding: 3px 5px;\n font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;\n line-height: 10px;\n color: #24292e;\n vertical-align: middle;\n background-color: #fafbfc;\n border: solid 1px #d1d5da;\n border-radius: 3px;\n box-shadow: inset 0 -1px 0 #d1d5da;\n}\n.vditor-reset summary {\n cursor: pointer;\n}\n.vditor-reset summary:focus {\n outline: none;\n}\n.vditor-reset svg {\n height: auto;\n width: auto;\n stroke-width: initial;\n}\n.vditor-reset p:last-child,\n.vditor-reset blockquote:last-child,\n.vditor-reset pre:last-child,\n.vditor-reset ul:last-child,\n.vditor-reset ol:last-child,\n.vditor-reset hr:last-child {\n margin-bottom: 0;\n}\n.vditor-comment {\n border-bottom: 2px solid #f8e6ab;\n}\n.vditor-comment--focus,\n.vditor-comment--hover {\n background-color: #faf1d1;\n border-bottom: 2px solid #ffc60a;\n}\n.vditor-comment--focus .vditor-comment,\n.vditor-comment--hover .vditor-comment {\n border-bottom: 2px solid #ffc60a;\n}\n.vditor-task {\n list-style: none !important;\n word-break: break-all;\n}\n.vditor-task input {\n margin: 0 0.2em 0.25em -1.6em;\n font-size: 12px;\n vertical-align: middle;\n}\n.vditor-copy {\n position: relative;\n display: none;\n z-index: 1;\n}\n.vditor-copy textarea {\n position: absolute;\n left: -100000px;\n height: 10px;\n}\n.vditor-copy span {\n cursor: pointer;\n position: absolute;\n right: 15px;\n top: 0.5em;\n}\n.vditor-copy svg {\n color: #586069;\n height: 14px;\n width: 14px !important;\n display: block;\n fill: currentColor;\n}\n.vditor-linenumber {\n padding-left: 4em !important;\n position: relative;\n}\n.vditor-linenumber__rows {\n position: absolute;\n pointer-events: none;\n top: 0.5em;\n left: 0;\n width: 3em;\n /* works for line-numbers below 1000 lines */\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n counter-reset: linenumber;\n}\n.vditor-linenumber__rows > span {\n pointer-events: none;\n display: block;\n}\n.vditor-linenumber__rows > span::before {\n counter-increment: linenumber;\n content: counter(linenumber);\n color: rgba(158, 150, 150, 0.38);\n display: block;\n padding-right: 1em;\n text-align: right;\n}\n.vditor-speech {\n position: absolute;\n display: none;\n background-color: #f6f8fa;\n border: 1px solid #d1d5da;\n border-radius: 3px;\n padding: 3px;\n cursor: pointer;\n color: #586069;\n}\n.vditor-speech:hover,\n.vditor-speech--current {\n color: #4285f4;\n}\n.vditor-speech svg {\n height: 14px;\n width: 14px;\n fill: currentColor;\n display: block;\n stroke-width: 0;\n stroke: currentColor;\n}\n.vditor-anchor {\n margin-left: 5px;\n}\n.vditor-anchor--left {\n float: left;\n padding-right: 4px;\n margin-left: -20px;\n}\n.vditor-anchor svg {\n visibility: hidden;\n}\n.vditor-anchor:hover svg {\n visibility: visible;\n}\n.vditor-anchor:focus {\n outline: none;\n}\n.vditor-linkcard {\n margin: 31px auto 16px;\n transition: all 0.15s ease-in-out;\n cursor: pointer;\n max-width: 768px;\n padding: 0 10px;\n}\n.vditor-linkcard a {\n border-radius: 3px;\n background-color: #f6f8fa;\n overflow: hidden;\n max-height: 250px;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n text-decoration: none;\n flex-wrap: wrap-reverse;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\n}\n.vditor-linkcard a:hover {\n box-shadow: 0 0 3px rgba(0, 0, 0, 0.13), 0 3px 6px rgba(0, 0, 0, 0.26);\n text-decoration: none;\n}\n.vditor-linkcard a:visited .vditor-linkcard__abstract {\n color: rgba(88, 96, 105, 0.36);\n}\n.vditor-linkcard__info {\n padding: 10px;\n min-width: 200px;\n box-sizing: border-box;\n flex: 1;\n}\n.vditor-linkcard__title {\n font-size: 14px;\n font-weight: 400;\n color: #24292e;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n align-items: center;\n}\n.vditor-linkcard__title img {\n cursor: pointer;\n height: 20px;\n width: 20px;\n border-radius: 3px;\n flex-shrink: 0;\n margin-right: 5px;\n}\n.vditor-linkcard__abstract {\n word-wrap: break-word;\n word-break: break-all;\n -webkit-line-clamp: 2;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-box-orient: vertical;\n display: -webkit-box;\n font-size: 13px;\n color: #586069;\n margin: 5px 0;\n}\n.vditor-linkcard__site {\n font-size: 12px;\n color: #4285f4;\n}\n.vditor-linkcard__image {\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center center;\n max-width: 250px;\n min-width: 126px;\n cursor: pointer;\n background-color: rgba(88, 96, 105, 0.36);\n}\n.vditor-footnotes__goto-ref {\n text-decoration: none;\n}\n.vditor-toc {\n margin-bottom: 16px;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n color: #4285f4;\n}\n.vditor-toc .vditor-outline__action {\n display: none;\n}\n.vditor-toc ul {\n list-style: none !important;\n padding-left: 1em;\n}\n.vditor-toc > ul {\n padding-left: 0;\n}\n.vditor-toc span {\n cursor: pointer;\n}\n.vditor-toc li > span > svg {\n width: 0;\n height: 0;\n}\n.vditor-outline {\n width: 250px;\n border-right: 1px solid var(--border-color);\n background-color: var(--panel-background-color);\n display: none;\n overflow: auto;\n}\n.vditor-outline--right {\n border-right: 0;\n border-left: 1px solid var(--border-color);\n}\n.vditor-outline::-webkit-scrollbar {\n display: none;\n}\n.vditor-outline ul {\n list-style: none !important;\n padding-left: 1em;\n margin: 0;\n}\n.vditor-outline__content > ul {\n padding-left: 0;\n}\n.vditor-outline li > span {\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: flex;\n align-items: center;\n padding: 5px 10px;\n cursor: pointer;\n color: var(--textarea-text-color);\n}\n.vditor-outline li > span > svg {\n height: 10px;\n width: 10px;\n flex-shrink: 0;\n}\n.vditor-outline li > span:hover {\n color: var(--toolbar-icon-hover-color);\n}\n.vditor-outline li > span > span {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.vditor-outline__title {\n border-bottom: 1px dashed var(--border-color);\n padding: 5px 10px;\n color: var(--toolbar-icon-color);\n font-size: 12px;\n}\n.vditor-outline__action {\n transition: all 0.15s ease-in-out;\n fill: currentColor;\n margin-right: 5px;\n flex-shrink: 0;\n}\n.vditor-outline__action--close {\n transform: rotate(-90deg);\n}\n.vditor-wysiwyg {\n box-sizing: border-box;\n flex: 1;\n position: relative;\n width: 100%;\n min-width: 1px;\n}\n.vditor-wysiwyg pre.vditor-reset {\n background-color: var(--panel-background-color);\n margin: 0;\n white-space: pre-wrap;\n height: 100%;\n box-sizing: border-box;\n}\n.vditor-wysiwyg pre.vditor-reset[contenteditable="false"] {\n opacity: 0.3;\n cursor: not-allowed;\n}\n.vditor-wysiwyg pre.vditor-reset:empty::before {\n content: attr(placeholder);\n color: var(--second-color);\n}\n.vditor-wysiwyg pre.vditor-reset:focus {\n outline: none;\n background-color: var(--textarea-background-color);\n}\n.vditor-wysiwyg pre.vditor-reset:after {\n content: "";\n height: var(--editor-bottom);\n display: block;\n}\n.vditor-wysiwyg blockquote:empty::before,\n.vditor-wysiwyg pre > code:empty::before,\n.vditor-wysiwyg p:empty::before,\n.vditor-wysiwyg h1:empty::after,\n.vditor-wysiwyg h2:empty::after,\n.vditor-wysiwyg h3:empty::after,\n.vditor-wysiwyg h4:empty::after,\n.vditor-wysiwyg h5:empty::after,\n.vditor-wysiwyg h6:empty::after {\n content: \' \';\n}\n.vditor-wysiwyg code[data-marker="`"] {\n padding-left: 0 !important;\n padding-right: 0 !important;\n}\n.vditor-wysiwyg__block pre:first-child {\n margin-bottom: -1em;\n}\n.vditor-wysiwyg__block pre:first-child code {\n color: var(--textarea-text-color);\n height: auto;\n text-align: left;\n}\n.vditor-wysiwyg__block pre:last-child {\n margin-bottom: 1em;\n}\n.vditor-wysiwyg__preview {\n cursor: pointer;\n white-space: normal;\n white-space: initial;\n min-height: 27px;\n}\n.vditor-wysiwyg > .vditor-reset > h1:before,\n.vditor-wysiwyg > .vditor-reset > h2:before,\n.vditor-wysiwyg > .vditor-reset > h3:before,\n.vditor-wysiwyg > .vditor-reset > h4:before,\n.vditor-wysiwyg > .vditor-reset > h5:before,\n.vditor-wysiwyg > .vditor-reset > h6:before,\n.vditor-wysiwyg div.vditor-wysiwyg__block:before,\n.vditor-wysiwyg div[data-type="link-ref-defs-block"]:before,\n.vditor-wysiwyg div[data-type="footnotes-block"]:before,\n.vditor-wysiwyg .vditor-toc:before {\n float: left;\n padding-right: 4px;\n margin-left: -29px;\n content: \'H1\';\n font-size: 0.85rem;\n font-weight: normal;\n color: var(--second-color);\n}\n.vditor-wysiwyg > .vditor-reset > h2:before {\n content: \'H2\';\n}\n.vditor-wysiwyg > .vditor-reset > h3:before {\n content: \'H3\';\n}\n.vditor-wysiwyg > .vditor-reset > h4:before {\n content: \'H4\';\n}\n.vditor-wysiwyg > .vditor-reset > h5:before {\n content: \'H5\';\n}\n.vditor-wysiwyg > .vditor-reset > h6:before {\n content: \'H6\';\n}\n.vditor-wysiwyg div[data-type="link-ref-defs-block"]:before {\n content: \'"A"\';\n}\n.vditor-wysiwyg div[data-type="footnotes-block"]:before {\n content: \'^F\';\n}\n.vditor-wysiwyg div.vditor-wysiwyg__block:before {\n content: "</>";\n}\n.vditor-wysiwyg div.vditor-wysiwyg__block[data-type="yaml-front-matter"]:before {\n content: "F";\n}\n.vditor-wysiwyg div.vditor-wysiwyg__block[data-type="math-block"]:before {\n content: "$$";\n}\n.vditor-wysiwyg .vditor-toc:before {\n content: "ToC";\n}\n.vditor-wysiwyg hr {\n display: inline-block;\n margin: 12px 0;\n width: 100%;\n}\n.vditor-wysiwyg details {\n white-space: normal;\n white-space: initial;\n}\n.vditor-wysiwyg a {\n cursor: pointer;\n}\n.vditor-wysiwyg span[data-type="backslash"] > span {\n display: none;\n color: var(--second-color);\n}\n.vditor-wysiwyg span[data-type="link-ref"],\n.vditor-wysiwyg sup[data-type="footnotes-ref"] {\n color: #4285f4;\n}\n.vditor-wysiwyg span[data-type="toc-h"] {\n color: #4285f4;\n text-decoration: underline;\n}\n.vditor-wysiwyg div[data-type="footnotes-block"] {\n border-top: 2px solid var(--heading-border-color);\n padding-top: 24px;\n margin-top: 24px;\n}\n.vditor-wysiwyg div[data-type="link-ref-defs-block"] {\n color: var(--blockquote-color);\n}\n@media screen and (max-width: 520px) {\n .vditor-wysiwyg h1:before,\n .vditor-wysiwyg h2:before,\n .vditor-wysiwyg h3:before,\n .vditor-wysiwyg h4:before,\n .vditor-wysiwyg h5:before,\n .vditor-wysiwyg h6:before,\n .vditor-wysiwyg div.vditor-wysiwyg__block:before,\n .vditor-wysiwyg div[data-type="link-ref-defs-block"]:before,\n .vditor-wysiwyg div[data-type="footnotes-block"]:before,\n .vditor-wysiwyg .vditor-toc:before {\n content: none;\n }\n}\n.vditor-ir {\n box-sizing: border-box;\n flex: 1;\n min-width: 1px;\n position: relative;\n width: 100%;\n}\n.vditor-ir__node[data-type="code-block"]:before,\n.vditor-ir__node[data-type="code-block"]:after,\n.vditor-ir__node[data-type="yaml-front-matter"]:before,\n.vditor-ir__node[data-type="yaml-front-matter"]:after,\n.vditor-ir__node[data-type="math-block"]:before,\n.vditor-ir__node[data-type="math-block"]:after {\n content: \' \';\n color: var(--second-color);\n}\n.vditor-ir__node:not(.vditor-ir__node--expand) .vditor-ir__marker {\n padding: 0 !important;\n}\n.vditor-ir__node:not(.vditor-ir__node--expand)[data-type="a"] {\n cursor: pointer;\n}\n.vditor-ir__node[data-type="link-ref"],\n.vditor-ir__node[data-type="footnotes-ref"] {\n color: #4285f4;\n}\n.vditor-ir__node[data-type="html-block"] {\n margin-bottom: 1em;\n}\n.vditor-ir__node .vditor-ir__marker {\n width: 0;\n overflow: hidden;\n display: inline-block;\n height: 0;\n transition: all 0.15s ease-in-out;\n}\n.vditor-ir__node--hidden .vditor-ir__marker {\n visibility: hidden;\n}\n.vditor-ir__node--expand .vditor-ir__marker {\n color: var(--second-color);\n display: inline;\n height: auto;\n width: auto;\n}\n.vditor-ir__node--expand .vditor-ir__marker--hide {\n display: none;\n}\n.vditor-ir__node--expand .vditor-ir__marker--heading {\n color: var(--ir-heading-color);\n}\n.vditor-ir__node--expand .vditor-ir__marker--bi {\n color: var(--ir-bi-color);\n}\n.vditor-ir__node--expand .vditor-ir__marker--link {\n color: var(--ir-link-color);\n}\n.vditor-ir__node--expand .vditor-ir__marker--title {\n color: var(--ir-title-color);\n}\n.vditor-ir__node--expand .vditor-ir__marker--bracket {\n color: var(--ir-bracket-color);\n text-decoration: underline;\n}\n.vditor-ir__node--expand .vditor-ir__marker--paren {\n color: var(--ir-paren-color);\n}\n.vditor-ir__node--expand .vditor-ir__marker--info {\n color: var(--ir-heading-color);\n}\n.vditor-ir__node--expand .vditor-ir__marker--pre code {\n color: var(--textarea-text-color);\n height: auto;\n text-align: left;\n}\n.vditor-ir__node--expand[data-type="code-block"]:before,\n.vditor-ir__node--expand[data-type="code-block"]:after {\n content: \'```\';\n}\n.vditor-ir__node--expand[data-type="yaml-front-matter"]:before,\n.vditor-ir__node--expand[data-type="yaml-front-matter"]:after {\n content: \'---\';\n}\n.vditor-ir__node--expand[data-type="math-block"]:before,\n.vditor-ir__node--expand[data-type="math-block"]:after {\n content: \'$$\';\n}\n.vditor-ir__node span[data-type="code-block-open-marker"],\n.vditor-ir__node span[data-type="code-block-close-marker"],\n.vditor-ir__node span[data-type="yaml-front-matter-open-marker"],\n.vditor-ir__node span[data-type="yaml-front-matter-close-marker"],\n.vditor-ir__node span[data-type="math-block-open-marker"],\n.vditor-ir__node span[data-type="math-block-close-marker"] {\n display: none;\n}\n.vditor-ir__preview {\n cursor: pointer;\n white-space: normal;\n white-space: initial;\n min-height: 27px;\n}\n.vditor-ir__link {\n color: var(--ir-bracket-color);\n text-decoration: underline;\n}\n.vditor-ir pre.vditor-reset {\n background-color: var(--panel-background-color);\n margin: 0;\n white-space: pre-wrap;\n height: 100%;\n box-sizing: border-box;\n}\n.vditor-ir pre.vditor-reset[contenteditable="false"] {\n opacity: 0.3;\n cursor: not-allowed;\n}\n.vditor-ir pre.vditor-reset:empty::before {\n content: attr(placeholder);\n color: var(--second-color);\n}\n.vditor-ir pre.vditor-reset:focus {\n outline: none;\n background-color: var(--textarea-background-color);\n}\n.vditor-ir pre.vditor-reset:after {\n content: "";\n height: var(--editor-bottom);\n display: block;\n}\n.vditor-ir pre.vditor-reset pre {\n margin: 0;\n}\n.vditor-ir hr {\n display: inline-block;\n margin: 12px 0;\n width: 100%;\n}\n.vditor-ir blockquote:empty::before,\n.vditor-ir pre > code:empty::before,\n.vditor-ir p:empty::before,\n.vditor-ir h1:empty::after,\n.vditor-ir h2:empty::after,\n.vditor-ir h3:empty::after,\n.vditor-ir h4:empty::after,\n.vditor-ir h5:empty::after,\n.vditor-ir h6:empty::after {\n content: \' \';\n}\n.vditor-ir .vditor-reset > h1:before,\n.vditor-ir .vditor-reset > h2:before,\n.vditor-ir .vditor-reset > h3:before,\n.vditor-ir .vditor-reset > h4:before,\n.vditor-ir .vditor-reset > h5:before,\n.vditor-ir .vditor-reset > h6:before,\n.vditor-ir div[data-type="link-ref-defs-block"]:before,\n.vditor-ir div[data-type="footnotes-block"]:before,\n.vditor-ir .vditor-toc:before {\n float: left;\n padding-right: 4px;\n margin-left: -29px;\n content: \'H1\';\n font-size: 0.85rem;\n font-weight: normal;\n color: var(--second-color);\n}\n.vditor-ir .vditor-reset > h2:before {\n content: \'H2\';\n}\n.vditor-ir .vditor-reset > h3:before {\n content: \'H3\';\n}\n.vditor-ir .vditor-reset > h4:before {\n content: \'H4\';\n}\n.vditor-ir .vditor-reset > h5:before {\n content: \'H5\';\n}\n.vditor-ir .vditor-reset > h6:before {\n content: \'H6\';\n}\n.vditor-ir div[data-type="link-ref-defs-block"] {\n color: var(--blockquote-color);\n}\n.vditor-ir div[data-type="link-ref-defs-block"]:before {\n content: \'"A"\';\n}\n.vditor-ir div[data-type="footnotes-block"] {\n border-top: 2px solid var(--heading-border-color);\n padding-top: 24px;\n margin-top: 24px;\n}\n.vditor-ir div[data-type="footnotes-block"]:before {\n content: \'^F\';\n}\n.vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > ul,\n.vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > ol,\n.vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > p,\n.vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > blockquote,\n.vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > pre,\n.vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > table,\n.vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > hr {\n margin-left: 8px;\n}\n.vditor-ir .vditor-toc:before {\n content: "ToC";\n}\n.vditor-ir .vditor-toc span[data-type="toc-h"] {\n color: #4285f4;\n text-decoration: underline;\n}\n@media screen and (max-width: 520px) {\n .vditor-ir h1:before,\n .vditor-ir h2:before,\n .vditor-ir h3:before,\n .vditor-ir h4:before,\n .vditor-ir h5:before,\n .vditor-ir h6:before,\n .vditor-ir div[data-type="link-ref-defs-block"]:before,\n .vditor-ir div[data-type="footnotes-block"]:before,\n .vditor-ir .vditor-toc:before {\n content: none;\n }\n}\n.vditor-sv {\n font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";\n margin: 0 1px 0 0;\n overflow: auto;\n width: 100%;\n flex: 1;\n min-width: 1px;\n border: 0;\n resize: none;\n padding: 10px 9px 10px 10px;\n box-sizing: border-box;\n background-color: var(--panel-background-color);\n outline: 0 none;\n font-size: 16px;\n line-height: 22px;\n color: var(--textarea-text-color);\n border-radius: 0 0 3px 3px;\n font-feature-settings: "liga", "clig off";\n font-variant-ligatures: no-common-ligatures;\n white-space: pre-wrap;\n word-break: break-word;\n word-wrap: break-word;\n}\n.vditor-sv[contenteditable="false"] {\n opacity: 0.3;\n cursor: not-allowed;\n}\n.vditor-sv:empty::before {\n content: attr(placeholder);\n color: var(--second-color);\n}\n.vditor-sv:focus {\n background-color: var(--textarea-background-color);\n}\n.vditor-sv:after {\n content: "";\n height: var(--editor-bottom);\n display: block;\n}\n.vditor-sv span[data-type="newline"] + span[data-type="text"]:empty {\n display: inherit;\n}\n.vditor-sv .sup {\n vertical-align: super;\n font-size: smaller;\n}\n.vditor-sv .strong {\n font-weight: bold;\n}\n.vditor-sv .em {\n font-style: italic;\n}\n.vditor-sv .s {\n text-decoration: line-through;\n}\n.vditor-sv .mark:not(.vditor-sv__marker) {\n background-color: yellow;\n color: black;\n}\n.vditor-sv .h1 {\n font-size: 1.75em;\n line-height: 44px;\n}\n.vditor-sv .h2 {\n font-size: 1.55em;\n line-height: 38px;\n}\n.vditor-sv .h3 {\n font-size: 1.38em;\n line-height: 27px;\n}\n.vditor-sv .h4 {\n font-size: 1.25em;\n line-height: 25px;\n}\n.vditor-sv .h5 {\n font-size: 1.13em;\n}\n.vditor-sv .h6 {\n font-size: 1em;\n}\n.vditor-sv__marker {\n color: var(--second-color);\n}\n.vditor-sv__marker--heading {\n color: var(--ir-heading-color);\n}\n.vditor-sv__marker--bi {\n color: var(--ir-bi-color);\n}\n.vditor-sv__marker--link {\n color: var(--ir-link-color);\n}\n.vditor-sv__marker--title {\n color: var(--ir-title-color);\n}\n.vditor-sv__marker--bracket {\n color: var(--ir-bracket-color);\n}\n.vditor-sv__marker--paren {\n color: var(--ir-paren-color);\n}\n.vditor-sv__marker--info {\n color: var(--ir-heading-color);\n}\n.vditor-sv__marker--strong {\n font-weight: bold;\n}\n\n',""]),o.A=s},433:function(n){n.exports=function(n){var o=[];return o.toString=function(){return this.map(function(o){var e="",t=void 0!==o[5];return o[4]&&(e+="@supports (".concat(o[4],") {")),o[2]&&(e+="@media ".concat(o[2]," {")),t&&(e+="@layer".concat(o[5].length>0?" ".concat(o[5]):""," {")),e+=n(o),t&&(e+="}"),o[2]&&(e+="}"),o[4]&&(e+="}"),e}).join("")},o.i=function(n,e,t,r,i){"string"==typeof n&&(n=[[null,n,void 0]]);var a={};if(t)for(var l=0;l<this.length;l++){var d=this[l][0];null!=d&&(a[d]=!0)}for(var c=0;c<n.length;c++){var s=[].concat(n[c]);t&&a[s[0]]||(void 0!==i&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=i),e&&(s[2]&&(s[1]="@media ".concat(s[2]," {").concat(s[1],"}")),s[2]=e),r&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=r):s[4]="".concat(r)),o.push(s))}},o}},220:function(n){n.exports=function(n,o){return(o||(o={}),n&&(n=String(n.__esModule?n.default:n),/^['"].*['"]$/.test(n)&&(n=n.slice(1,-1)),o.hash&&(n+=o.hash),/["'() \t\n]|(%20)/.test(n)||o.needQuotes))?'"'.concat(n.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):n}},168:function(n){n.exports=function(n){return n[1]}},673:function(n){var o=[];function e(n){for(var e=-1,t=0;t<o.length;t++)if(o[t].identifier===n){e=t;break}return e}function t(n,t){for(var r={},i=[],a=0;a<n.length;a++){var l=n[a],d=t.base?l[0]+t.base:l[0],c=r[d]||0,s="".concat(d," ").concat(c);r[d]=c+1;var p=e(s),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)o[p].references++,o[p].updater(u);else{var v=function(n,o){var e=o.domAPI(o);return e.update(n),function(o){o?(o.css!==n.css||o.media!==n.media||o.sourceMap!==n.sourceMap||o.supports!==n.supports||o.layer!==n.layer)&&e.update(n=o):e.remove()}}(u,t);t.byIndex=a,o.splice(a,0,{identifier:s,updater:v,references:1})}i.push(s)}return i}n.exports=function(n,r){var i=t(n=n||[],r=r||{});return function(n){n=n||[];for(var a=0;a<i.length;a++){var l=e(i[a]);o[l].references--}for(var d=t(n,r),c=0;c<i.length;c++){var s=e(i[c]);0===o[s].references&&(o[s].updater(),o.splice(s,1))}i=d}}},262:function(n){var o={};n.exports=function(n,e){var t=function(n){if(void 0===o[n]){var e=document.querySelector(n);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(n){e=null}o[n]=e}return o[n]}(n);if(!t)throw Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(e)}},357:function(n){n.exports=function(n){var o=document.createElement("style");return n.setAttributes(o,n.attributes),n.insert(o,n.options),o}},657:function(n,o,e){n.exports=function(n){var o=e.nc;o&&n.setAttribute("nonce",o)}},598:function(n){n.exports=function(n){if("u"<typeof document)return{update:function(){},remove:function(){}};var o=n.insertStyleElement(n);return{update:function(e){var t,r,i;t="",e.supports&&(t+="@supports (".concat(e.supports,") {")),e.media&&(t+="@media ".concat(e.media," {")),(r=void 0!==e.layer)&&(t+="@layer".concat(e.layer.length>0?" ".concat(e.layer):""," {")),t+=e.css,r&&(t+="}"),e.media&&(t+="}"),e.supports&&(t+="}"),(i=e.sourceMap)&&"u">typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),n.styleTagTransform(t,o,n.options)},remove:function(){var n;null===(n=o).parentNode||n.parentNode.removeChild(n)}}}},626:function(n){n.exports=function(n,o){if(o.styleSheet)o.styleSheet.cssText=n;else{for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(document.createTextNode(n))}}},573:function(n){n.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8AgMAAABHkjHhAAAACVBMVEWAgIBaWlo+Pj7rTFvWAAAAA3RSTlMHCAw+VhR4AAAA+klEQVQoz4WSMW7EQAhFPxKWNh2FCx+HkaZI6RRb5DYbyVfIJXLKDCFoMbaTKSw/8ZnPAPjaH2xgZcUNUDADD7D9LtDBCLZ45fbkvo/30K8yeI64pPwl6znd/3n/Oe93P3ho9qeh72btTFzqkz0rsJle8Zr81OLEwZ1dv/713uWqvu2pl+k0fy7MWtj9r/tN5q/02z89qa/L4Dc2LvM93kezPfXlME/O86EbY/V9GB9ePX8G1/6W+/9h1dq/HGfTfzT3j/xNo7522Bfnqe5jO/fvhVthlfk434v3iO9zG/UOphyPeinPl1J8Gtaa7xPTa/Dk+RIs4deMvwGvcGsmsCvJ0AAAAABJRU5ErkJggg=="},303:function(n,o,e){e.r(o),e.d(o,{default:function(){return J},PluginFieldMarkdownVditorClient:function(){return Y}});var t=e(342),r=e(673),i=e.n(r),a=e(598),l=e.n(a),d=e(262),c=e.n(d),s=e(657),p=e.n(s),u=e(357),v=e.n(u),f=e(626),b=e.n(f),h=e(925),g={};g.styleTagTransform=b(),g.setAttributes=p(),g.insert=c().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=v(),i()(h.A,g),h.A&&h.A.locals&&h.A.locals;var m=e(694),y=e(155),x=e.n(y);function w(n,o){(null==o||o>n.length)&&(o=n.length);for(var e=0,t=Array(o);e<o;e++)t[e]=n[e];return t}function k(n,o,e,t,r,i,a){try{var l=n[i](a),d=l.value}catch(n){e(n);return}l.done?o(d):Promise.resolve(d).then(t,r)}function _(n){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function j(n,o){return(j=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n})(n,o)}function O(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(O=function(){return!!n})()}var S=function(n){var o,e=n.value,t=n.markdown,r=n.liquid,i=n.t,a=n.textOnly,l=n.ctx,d=n.overflowMode,c=n.parseLiquid,s=void 0!==c&&c,p=function(n){if(Array.isArray(n))return n}(o=(0,y.useState)(null))||function(n){var o,e,t=null==n?null:"u">typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r=[],i=!0,a=!1;try{for(t=t.call(n);!(i=(o=t.next()).done)&&(r.push(o.value),2!==r.length);i=!0);}catch(n){a=!0,e=n}finally{try{i||null==t.return||t.return()}finally{if(a)throw e}}return r}}(o)||function(n){if(n){if("string"==typeof n)return w(n,2);var o=Object.prototype.toString.call(n).slice(8,-1);if("Object"===o&&n.constructor&&(o=n.constructor.name),"Map"===o||"Set"===o)return Array.from(o);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return w(n,2)}}(o)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),u=p[0],v=p[1];return(0,y.useEffect)(function(){if(e){var n;(n=function(){var n,o,c;return function(n,o){var e,t,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:d(0)}),l(a,"throw",{value:d(1)}),l(a,"return",{value:d(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function d(l){return function(d){var c=[l,d];if(e)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(e=1,t&&(r=2&c[0]?t.return:c[0]?t.throw||((r=t.return)&&r.call(t),0):t.next)&&!(r=r.call(t,c[1])).done)return r;switch(t=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,t=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(6===c[0]&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=o.call(n,i)}catch(n){c=[6,n],t=0}finally{e=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(p){switch(p.label){case 0:if(p.trys.push([0,4,,5]),!s)return[3,2];return[4,r.renderWithFullContext(e,l)];case 1:return o=p.sent(),[3,3];case 2:o=e,p.label=3;case 3:return n=o,v(t.render(i(n),{ellipsis:"ellipsis"===d,textOnly:a})),[3,5];case 4:return c=p.sent(),v('<pre style="color:red;"> 渲染错误: '.concat(c.message,"</pre>")),[3,5];case 5:return[2]}})},function(){var o=this,e=arguments;return new Promise(function(t,r){var i=n.apply(o,e);function a(n){k(i,t,r,a,l,"next",n)}function l(n){k(i,t,r,a,l,"throw",n)}a(void 0)})})()}},[e,a,d]),u},z=function(n){var o;if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");function e(){var n,o;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");return n=e,o=arguments,n=_(n),function(n,o){var e;if(o&&("object"==((e=o)&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof o))return o;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,O()?Reflect.construct(n,o||[],_(this).constructor):n.apply(this,o))}return e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&j(e,n),o=[{key:"renderComponent",value:function(n){if(!n)return null;var o=this.context,e=o.markdown,t=o.liquid,r=o.t,i=this.props,a=i.textOnly,l=i.overflowMode;return x().createElement(S,{value:n,markdown:e,liquid:t,t:r,textOnly:a,ctx:this.context,overflowMode:l})}}],function(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}(e.prototype,o),e}(t.DisplayTitleFieldModel);z.define({label:(0,m.escapeT)("MarkdownVditor")}),z.registerFlow({key:"markdownVditorSettings",title:(0,t.tval)("Content settings"),sort:200,steps:{renderMode:{use:"renderMode"}}}),m.DisplayItemModel.bindModelToInterface("DisplayVditorFieldModel",["vditor","markdown"],{isDefault:!0});function E(n){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function A(n,o){return(A=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n})(n,o)}function P(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(P=function(){return!!n})()}var T=function(n){var o;if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");function e(){var n,o;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");return n=e,o=arguments,n=E(n),function(n,o){var e;if(o&&("object"==((e=o)&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof o))return o;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,P()?Reflect.construct(n,o||[],E(this).constructor):n.apply(this,o))}return e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&A(e,n),o=[{key:"render",value:function(){var n,o;return this.context.markdown.edit((n=function(n){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{},t=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e).filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.forEach(function(o){var t;t=e[o],o in n?Object.defineProperty(n,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[o]=t})}return n}({},this.props),o=o={enableContextSelect:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(n){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);o.push.apply(o,e)}return o})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n))}}],function(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}(e.prototype,o),e}(t.FieldModel);T=function(n,o,e,t){var r,i=arguments.length,a=i<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,e):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,o,e,t);else for(var l=n.length-1;l>=0;l--)(r=n[l])&&(a=(i<3?r(a):i>3?r(o,e,a):r(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a}([(0,m.largeField)()],T),m.EditableItemModel.bindModelToInterface("VditorFieldModel",["vditor","markdown"],{isDefault:!0});var C=e(230),I=e(953),M=e(872),R={name:"editMode",type:"select",useComponentProps:function(){var n,o=(0,I.useTranslation)().t,e=(0,t.useDesignable)().dn,r=(0,C.useField)(),i=(0,C.useFieldSchema)();return{title:o("Default Edit Mode",{ns:M.C}),options:[{label:o("What You See Is What You Get",{ns:M.C}),value:"wysiwyg"},{label:o("Instant Rendering",{ns:M.C}),value:"ir"},{label:o("Split View",{ns:M.C}),value:"sv"}],value:(null==(n=i["x-component-props"])?void 0:n.editMode)||"ir",onChange:function(n){var o,t,a,l=(o={},t="x-uid",a=i["x-uid"],t in o?Object.defineProperty(o,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[t]=a,o);i["x-component-props"]=i["x-component-props"]||{},i["x-component-props"].editMode=n,l["x-component-props"]=i["x-component-props"],r.componentProps=r.componentProps||{},r.componentProps.editMode=n,e.emit("patch",{schema:l}),e.refresh()}}}},N=e(280);function D(n,o,e,t,r,i,a){try{var l=n[i](a),d=l.value}catch(n){e(n);return}l.done?o(d):Promise.resolve(d).then(t,r)}function H(n){return function(){var o=this,e=arguments;return new Promise(function(t,r){var i=n.apply(o,e);function a(n){D(i,t,r,a,l,"next",n)}function l(n){D(i,t,r,a,l,"throw",n)}a(void 0)})}}function q(n,o,e){return(q=V()?Reflect.construct:function(n,o,e){var t=[null];t.push.apply(t,o);var r=new(Function.bind.apply(n,t));return e&&U(r,e.prototype),r}).apply(null,arguments)}function F(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function L(n){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function U(n,o){return(U=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n})(n,o)}function B(n){var o="function"==typeof Map?new Map:void 0;return(B=function(n){if(null===n||-1===Function.toString.call(n).indexOf("[native code]"))return n;if("function"!=typeof n)throw TypeError("Super expression must either be null or a function");if(void 0!==o){if(o.has(n))return o.get(n);o.set(n,e)}function e(){return q(n,arguments,L(this).constructor)}return e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),U(e,n)})(n)}function V(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(V=function(){return!!n})()}function W(n,o){var e,t,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:d(0)}),l(a,"throw",{value:d(1)}),l(a,"return",{value:d(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function d(l){return function(d){var c=[l,d];if(e)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(e=1,t&&(r=2&c[0]?t.return:c[0]?t.throw||((r=t.return)&&r.call(t),0):t.next)&&!(r=r.call(t,c[1])).done)return r;switch(t=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,t=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(6===c[0]&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=o.call(n,i)}catch(n){c=[6,n],t=0}finally{e=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var G=(0,t.lazy)(function(){return Promise.all([e.e("742"),e.e("715")]).then(e.bind(e,590))},"MarkdownVditor").MarkdownVditor,Y=function(n){var o;if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");function e(){var n,o,t;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");return o=e,t=arguments,o=L(o),F(n=function(n,o){var e;if(o&&("object"==((e=o)&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof o))return o;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,V()?Reflect.construct(o,t||[],L(this).constructor):o.apply(this,t)),"dependencyLoaded",!1),n}return e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&U(e,n),o=[{key:"afterAdd",value:function(){return H(function(){return W(this,function(n){return[2]})})()}},{key:"beforeLoad",value:function(){return H(function(){return W(this,function(n){return[2]})})()}},{key:"load",value:function(){return H(function(){return W(this,function(n){return this.app.addComponents({MarkdownVditor:G}),this.app.dataSourceManager.addFieldInterfaces([N.H]),this.flowEngine.registerModels({VditorFieldModel:T,DisplayVditorFieldModel:z}),this.app.schemaSettingsManager.addItem("fieldSettings:component:MarkdownVditor","editMode",R),[2]})}).call(this)}},{key:"getCDN",value:function(){return this.app.getPublicPath()+"static/plugins/@nocobase/plugin-block-markdown/dist/client/vditor"}},{key:"initVditorDependency",value:function(){var n=this,o=this.getCDN();try{var e,t="plugin-field-markdown-vditor-dep",r=(e={},F(e,"".concat(t,".katex"),"".concat(o,"/dist/js/katex/katex.min.js?v=0.16.9")),F(e,"".concat(t,".ABCJS"),"".concat(o,"/dist/js/abcjs/abcjs_basic.min")),F(e,"".concat(t,".plantumlEncoder"),"".concat(o,"/dist/js/plantuml/plantuml-encoder.min")),F(e,"".concat(t,".echarts"),"".concat(o,"/dist/js/echarts/echarts.min")),F(e,"".concat(t,".flowchart"),"".concat(o,"/dist/js/flowchart.js/flowchart.min")),F(e,"".concat(t,".Viz"),"".concat(o,"/dist/js/graphviz/viz")),F(e,"".concat(t,".mermaid"),"".concat(o,"/dist/js/mermaid/mermaid.min")),e);this.app.requirejs.require.config({waitSeconds:120,paths:r}),Object.keys(r).forEach(function(o){n.app.requirejs.require([o],function(n){window[o.split(".")[1]]=n})})}catch(n){console.log("initVditorDependency failed",n)}}}],function(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}(e.prototype,o),e}(B(t.Plugin)),J=Y},280:function(n,o,e){e.d(o,{H:function(){return u},r:function(){return p}});var t=e(342),r=e(872);function i(n,o,e){return o in n?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e,n}function a(n){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function l(n,o){return(l=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n})(n,o)}function d(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(d=function(){return!!n})()}var c=t.interfacesProperties.defaultProps,s=t.interfacesProperties.operators,p=["headings","bold","italic","strike","link","list","ordered-list","check","quote","line","code","inline-code","upload","fullscreen"],u=function(n){var o;if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");function e(){var n,o,t,l,u;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");return o=e,t=arguments,o=a(o),i(n=function(n,o){var e;if(o&&("object"==((e=o)&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof o))return o;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,d()?Reflect.construct(o,t||[],a(this).constructor):o.apply(this,t)),"name","vditor"),i(n,"type","object"),i(n,"group","media"),i(n,"order",1),i(n,"title",(0,r.j)("Vditor")),i(n,"sortable",!0),i(n,"default",{type:"text",length:"long",uiSchema:{type:"string","x-component":"MarkdownVditor"}}),i(n,"availableTypes",["text","json","string"]),i(n,"properties",(l=function(n){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{},t=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e).filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.forEach(function(o){i(n,o,e[o])})}return n}({},c),u=u={"uiSchema.x-component-props.fileCollection":{type:"string",title:(0,r.j)("File collection"),"x-component":"CollectionSelect","x-component-props":{filter:function(n){var o;return(null==n||null==(o=n.options)?void 0:o.template)==="file"}},"x-decorator":"FormItem",default:"","x-reactions":{fulfill:{schema:{description:(0,r.j)("Used to store files uploaded in the Markdown editor (default: attachments)")}}}},"uiSchema.x-component-props.toolbar":{type:"array",title:(0,r.j)("Toolbar"),"x-component":"Select","x-component-props":{mode:"multiple"},"x-decorator":"FormItem",default:p,enum:[{value:"emoji",label:(0,r.j)("Emoji")},{value:"headings",label:(0,r.j)("Headings")},{value:"bold",label:(0,r.j)("Bold")},{value:"italic",label:(0,r.j)("Italic")},{value:"strike",label:(0,r.j)("Strike")},{value:"line",label:(0,r.j)("Line")},{value:"quote",label:(0,r.j)("Quote")},{value:"list",label:(0,r.j)("List")},{value:"ordered-list",label:(0,r.j)("OrderedList")},{value:"check",label:(0,r.j)("Check")},{value:"outdent",label:(0,r.j)("Outdent")},{value:"indent",label:(0,r.j)("Indent")},{value:"code",label:(0,r.j)("Code")},{value:"inline-code",label:(0,r.j)("InlineCode")},{value:"insert-after",label:(0,r.j)("InsertAfter")},{value:"insert-before",label:(0,r.j)("InsertBefore")},{value:"undo",label:(0,r.j)("Undo")},{value:"redo",label:(0,r.j)("Redo")},{value:"upload",label:(0,r.j)("Upload")},{value:"link",label:(0,r.j)("Link")},{value:"record",label:(0,r.j)("Record")},{value:"table",label:(0,r.j)("Table")},{value:"edit-mode",label:(0,r.j)("EditMode")},{value:"both",label:(0,r.j)("Both")},{value:"preview",label:(0,r.j)("Preview")},{value:"fullscreen",label:(0,r.j)("Fullscreen")},{value:"outline",label:(0,r.j)("Outline")}]}},Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):(function(n){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);o.push.apply(o,e)}return o})(Object(u)).forEach(function(n){Object.defineProperty(l,n,Object.getOwnPropertyDescriptor(u,n))}),l)),i(n,"filterable",{operators:s.bigField}),i(n,"titleUsable",!0),n}return e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&l(e,n),o=[{key:"schemaInitialize",value:function(n,o){["Table","Kanban"].includes(o.block)&&(n["x-component-props"]=n["x-component-props"]||{},n["x-component-props"].ellipsis=!0)}}],function(n,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}(e.prototype,o),e}(t.CollectionFieldInterface)},872:function(n,o,e){e.d(o,{C:function(){return r},j:function(){return i}});var t=e(768),r="field-markdown-vditor";function i(n){return(0,t.tval)(n,{ns:r})}},230:function(n){n.exports=o},342:function(n){n.exports=i},694:function(n){n.exports=e},768:function(n){n.exports=a},59:function(n){n.exports=r},155:function(n){n.exports=t},953:function(o){o.exports=n},182:function(n,o,e){var t=window.__nocobase_public_path__||"";if(!t&&window.location&&window.location.pathname){var r=window.location.pathname||"/",i=r.indexOf("/v2/");t=i>=0?r.slice(0,i+1):"/"}t&&(t=t.replace(/\/v2\/?$/,"/")),t||(t="/"),"/"!==t.charAt(t.length-1)&&(t+="/"),e.p=t+"static/plugins/@nocobase/plugin-field-markdown-vditor/dist/client/"}},p={};function u(n){var o=p[n];if(void 0!==o)return o.exports;var e=p[n]={id:n,exports:{}};return s[n].call(e.exports,e,e.exports,u),e.exports}u.m=s,u.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return u.d(o,{a:o}),o},u.d=function(n,o){for(var e in o)u.o(o,e)&&!u.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:o[e]})},u.f={},u.e=function(n){return Promise.all(Object.keys(u.f).reduce(function(o,e){return u.f[e](n,o),o},[]))},u.u=function(n){return""+({715:"5b8941979051710a",742:"6ff7819dc2796056"})[n]+".js"},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(n){if("object"==typeof window)return window}}(),u.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},v={},u.l=function(n,o,e,t){if(v[n])return void v[n].push(o);if(void 0!==e)for(var r,i,a=document.getElementsByTagName("script"),l=0;l<a.length;l++){var d=a[l];if(d.getAttribute("src")==n||d.getAttribute("data-rspack")=="@nocobase/plugin-field-markdown-vditor:"+e){r=d;break}}r||(i=!0,(r=document.createElement("script")).timeout=120,u.nc&&r.setAttribute("nonce",u.nc),r.setAttribute("data-rspack","@nocobase/plugin-field-markdown-vditor:"+e),r.src=n),v[n]=[o];var c=function(o,e){r.onerror=r.onload=null,clearTimeout(s);var t=v[n];if(delete v[n],r.parentNode&&r.parentNode.removeChild(r),t&&t.forEach(function(n){return n(e)}),o)return o(e)},s=setTimeout(c.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=c.bind(null,r.onerror),r.onload=c.bind(null,r.onload),i&&document.head.appendChild(r)},u.r=function(n){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},u.nc=void 0,u.g.importScripts&&(f=u.g.location+"");var v,f,b=u.g.document;if(!f&&b&&(b.currentScript&&"SCRIPT"===b.currentScript.tagName.toUpperCase()&&(f=b.currentScript.src),!f)){var h=b.getElementsByTagName("script");if(h.length)for(var g=h.length-1;g>-1&&(!f||!/^http(s?):/.test(f));)f=h[g--].src}if(!f)throw Error("Automatic publicPath is not supported in this browser");return u.p=f.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),u.b=document.baseURI||self.location.href,l={889:0},u.f.j=function(n,o){var e=u.o(l,n)?l[n]:void 0;if(0!==e)if(e)o.push(e[2]);else{var t=new Promise(function(o,t){e=l[n]=[o,t]});o.push(e[2]=t);var r=u.p+u.u(n),i=Error();u.l(r,function(o){if(u.o(l,n)&&(0!==(e=l[n])&&(l[n]=void 0),e)){var t=o&&("load"===o.type?"missing":o.type),r=o&&o.target&&o.target.src;i.message="Loading chunk "+n+" failed.\n("+t+": "+r+")",i.name="ChunkLoadError",i.type=t,i.request=r,e[1](i)}},"chunk-"+n,n)}},d=function(n,o){var e,t,r=o[0],i=o[1],a=o[2],d=0;if(r.some(function(n){return 0!==l[n]})){for(e in i)u.o(i,e)&&(u.m[e]=i[e]);a&&a(u)}for(n&&n(o);d<r.length;d++)t=r[d],u.o(l,t)&&l[t]&&l[t][0](),l[t]=0},(c=self.webpackChunk_nocobase_plugin_field_markdown_vditor=self.webpackChunk_nocobase_plugin_field_markdown_vditor||[]).forEach(d.bind(null,0)),c.push=d.bind(null,c.push.bind(c)),u(182),u(303)}()});
@@ -8,14 +8,14 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.1.0-alpha.10",
12
- "@nocobase/database": "2.1.0-alpha.10",
13
- "@nocobase/server": "2.1.0-alpha.10",
11
+ "@nocobase/client": "2.1.0-alpha.11",
12
+ "@nocobase/database": "2.1.0-alpha.11",
13
+ "@nocobase/flow-engine": "2.1.0-alpha.11",
14
+ "@nocobase/server": "2.1.0-alpha.11",
14
15
  "@formily/core": "2.3.7",
15
16
  "@formily/react": "2.3.7",
16
17
  "antd": "5.24.2",
17
18
  "react": "18.2.0",
18
19
  "react-i18next": "11.18.6",
19
- "@nocobase/utils": "2.1.0-alpha.10",
20
- "@nocobase/flow-engine": "2.1.0-alpha.10"
20
+ "@nocobase/utils": "2.1.0-alpha.11"
21
21
  };
@@ -1 +1 @@
1
- {"name":"fs-extra","version":"9.1.0","description":"fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove.","engines":{"node":">=10"},"homepage":"https://github.com/jprichardson/node-fs-extra","repository":{"type":"git","url":"https://github.com/jprichardson/node-fs-extra"},"keywords":["fs","file","file system","copy","directory","extra","mkdirp","mkdir","mkdirs","recursive","json","read","write","extra","delete","remove","touch","create","text","output","move","promise"],"author":"JP Richardson <jprichardson@gmail.com>","license":"MIT","dependencies":{"at-least-node":"^1.0.0","graceful-fs":"^4.2.0","jsonfile":"^6.0.1","universalify":"^2.0.0"},"devDependencies":{"coveralls":"^3.0.0","klaw":"^2.1.1","klaw-sync":"^3.0.2","minimist":"^1.1.1","mocha":"^5.0.5","nyc":"^15.0.0","proxyquire":"^2.0.1","read-dir-files":"^0.1.1","standard":"^14.1.0"},"main":"./lib/index.js","files":["lib/","!lib/**/__tests__/"],"scripts":{"full-ci":"npm run lint && npm run coverage","coverage":"nyc -r lcovonly npm run unit","coveralls":"coveralls < coverage/lcov.info","lint":"standard","test-find":"find ./lib/**/__tests__ -name *.test.js | xargs mocha","test":"npm run lint && npm run unit","unit":"node test.js"},"_lastModified":"2026-03-20T09:04:14.447Z"}
1
+ {"name":"fs-extra","version":"9.1.0","description":"fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove.","engines":{"node":">=10"},"homepage":"https://github.com/jprichardson/node-fs-extra","repository":{"type":"git","url":"https://github.com/jprichardson/node-fs-extra"},"keywords":["fs","file","file system","copy","directory","extra","mkdirp","mkdir","mkdirs","recursive","json","read","write","extra","delete","remove","touch","create","text","output","move","promise"],"author":"JP Richardson <jprichardson@gmail.com>","license":"MIT","dependencies":{"at-least-node":"^1.0.0","graceful-fs":"^4.2.0","jsonfile":"^6.0.1","universalify":"^2.0.0"},"devDependencies":{"coveralls":"^3.0.0","klaw":"^2.1.1","klaw-sync":"^3.0.2","minimist":"^1.1.1","mocha":"^5.0.5","nyc":"^15.0.0","proxyquire":"^2.0.1","read-dir-files":"^0.1.1","standard":"^14.1.0"},"main":"./lib/index.js","files":["lib/","!lib/**/__tests__/"],"scripts":{"full-ci":"npm run lint && npm run coverage","coverage":"nyc -r lcovonly npm run unit","coveralls":"coveralls < coverage/lcov.info","lint":"standard","test-find":"find ./lib/**/__tests__ -name *.test.js | xargs mocha","test":"npm run lint && npm run unit","unit":"node test.js"},"_lastModified":"2026-03-25T08:50:29.721Z"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import type { FlowSchemaContribution } from '@nocobase/flow-engine';
10
+ export declare const flowSchemaContribution: FlowSchemaContribution;
@@ -0,0 +1,92 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var flow_schema_contributions_exports = {};
28
+ __export(flow_schema_contributions_exports, {
29
+ flowSchemaContribution: () => flowSchemaContribution
30
+ });
31
+ module.exports = __toCommonJS(flow_schema_contributions_exports);
32
+ function createFieldContribution(use, title) {
33
+ return {
34
+ use,
35
+ title,
36
+ source: "plugin",
37
+ strict: false,
38
+ exposure: "internal",
39
+ stepParamsSchema: {
40
+ type: "object",
41
+ properties: {
42
+ fieldSettings: {
43
+ type: "object",
44
+ properties: {
45
+ init: {
46
+ type: "object",
47
+ properties: {
48
+ dataSourceKey: { type: "string" },
49
+ collectionName: { type: "string" },
50
+ fieldPath: { type: "string" }
51
+ },
52
+ additionalProperties: true
53
+ }
54
+ },
55
+ additionalProperties: true
56
+ }
57
+ },
58
+ additionalProperties: true
59
+ },
60
+ skeleton: {
61
+ uid: `todo-${use}`.replace(/[^a-zA-Z0-9]+/g, "-").toLowerCase(),
62
+ use
63
+ }
64
+ };
65
+ }
66
+ const flowSchemaContribution = {
67
+ models: [
68
+ createFieldContribution("VditorFieldModel", "Vditor"),
69
+ createFieldContribution("DisplayVditorFieldModel", "Display vditor")
70
+ ],
71
+ fieldBindings: [
72
+ {
73
+ context: "editable-field",
74
+ use: "VditorFieldModel",
75
+ interfaces: ["vditor", "markdown"],
76
+ isDefault: true
77
+ },
78
+ {
79
+ context: "display-field",
80
+ use: "DisplayVditorFieldModel",
81
+ interfaces: ["vditor", "markdown"],
82
+ isDefault: true
83
+ }
84
+ ],
85
+ defaults: {
86
+ source: "plugin"
87
+ }
88
+ };
89
+ // Annotate the CommonJS export names for ESM import in node:
90
+ 0 && (module.exports = {
91
+ flowSchemaContribution
92
+ });
@@ -6,9 +6,11 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
+ import type { FlowSchemaContribution } from '@nocobase/flow-engine';
9
10
  import { Plugin } from '@nocobase/server';
10
11
  export declare class PluginFieldMarkdownVditorServer extends Plugin {
11
12
  afterAdd(): Promise<void>;
13
+ getFlowSchemaContributions(): FlowSchemaContribution;
12
14
  beforeLoad(): Promise<void>;
13
15
  load(): Promise<void>;
14
16
  setResource(): void;
@@ -43,11 +43,15 @@ module.exports = __toCommonJS(plugin_exports);
43
43
  var import_server = require("@nocobase/server");
44
44
  var import_fs_extra = __toESM(require("fs-extra"));
45
45
  var import_path = __toESM(require("path"));
46
+ var import_flow_schema_contributions = require("./flow-schema-contributions");
46
47
  var import_package = __toESM(require("../../package.json"));
47
48
  const namespace = import_package.default.name;
48
49
  class PluginFieldMarkdownVditorServer extends import_server.Plugin {
49
50
  async afterAdd() {
50
51
  }
52
+ getFlowSchemaContributions() {
53
+ return import_flow_schema_contributions.flowSchemaContribution;
54
+ }
51
55
  async beforeLoad() {
52
56
  }
53
57
  async load() {
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Used to store Markdown and render it using Vditor editor, supports common Markdown syntax such as list, code, quote, etc., and supports uploading images, recordings, etc.It also allows for instant rendering, where what you see is what you get.",
7
7
  "description.ru-RU": "Используется для хранения Markdown и его отображения с помощью редактора Vditor, поддерживает общие синтаксисы Markdown: списки, код, цитаты и т.д., а также загрузку изображений и аудиозаписей. Обеспечивает мгновенный рендеринг «что видишь — то получаешь».",
8
8
  "description.zh-CN": "用于存储 Markdown,并使用 Vditor 编辑器渲染,支持常见 Markdown 语法,如列表,代码,引用等,并支持上传图片,录音等。同时可以做到即时渲染,所见即所得。",
9
- "version": "2.1.0-alpha.10",
9
+ "version": "2.1.0-alpha.11",
10
10
  "license": "Apache-2.0",
11
11
  "main": "dist/server/index.js",
12
12
  "homepage": "https://docs.nocobase.com/handbook/field-markdown-vditor",
@@ -30,5 +30,5 @@
30
30
  "keywords": [
31
31
  "Collection fields"
32
32
  ],
33
- "gitHead": "ce790d46c0a5768ca9618c7d0d77ab8300de75c8"
33
+ "gitHead": "bb96d633a6371afb586072ff516bd0613c757db0"
34
34
  }
@@ -1,10 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
-
10
- "use strict";(self.webpackChunk_nocobase_plugin_field_markdown_vditor=self.webpackChunk_nocobase_plugin_field_markdown_vditor||[]).push([["59"],{182:function(e,t,r){r.r(t),r.d(t,{default:function(){return R},MarkdownVditor:function(){return O}});var n=r(230),o=r(342),l=r(59),a=r(155),i=r.n(a),u=r(597),c=r.n(u),s=r(303),d=function(){var e=(0,o.usePlugin)(s.PluginFieldMarkdownVditorClient);return e.dependencyLoaded||(e.initVditorDependency(),e.dependencyLoaded=!0),e.getCDN()},f=(0,o.genStyleHook)("nb-field-markdown-vditor",function(e){var t,r,n;return t={},r=e.componentCls,n={".vditor-reset":{fontSize:"".concat(e.fontSize,"px !important"),color:"unset",padding:"10px !important"},".vditor":{borderRadius:8},".vditor .vditor-content":{borderRadius:"0 0 8px 8px",overflow:"hidden"},".vditor .vditor-toolbar":{paddingLeft:" 16px !important",borderRadius:"8px 8px 0 0"},".vditor .vditor-content .vditor-ir .vditor-reset":{paddingLeft:" 16px !important"},".vditor-ir pre.vditor-reset":{backgroundColor:"".concat(e.colorBgContainer,"!important")}},r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t});function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var l=[],a=!0,i=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(l.push(r.value),!t||l.length!==t);a=!0);}catch(e){i=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(i)throw n}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var m=function(e){if(e){var t=document.createRange();return t.selectNodeContents(e),t.getBoundingClientRect().width}};function y(e){var t,r=(0,a.useRef)(null),n=f(),o=n.wrapSSR,l=n.componentCls,u=n.hashId,s=d();return(0,a.useEffect)(function(){var t;c().preview(r.current,null!=(t=e.value)?t:"",{mode:"light",cdn:s}),setTimeout(function(){var e;null==(e=r.current)||e.querySelectorAll("img").forEach(function(e){e.style.cursor="zoom-in",e.addEventListener("click",function(){var t=e.src;if(!document.getElementById("custom-image-preview")){var r=document.createElement("span");r.id="custom-image-preview",Object.assign(r.style,{position:"fixed",inset:"0",backgroundColor:"rgba(0,0,0,0.85)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:"9999",cursor:"zoom-out"});var n=document.createElement("img");n.src=t,Object.assign(n.style,{maxWidth:"90%",maxHeight:"90%",borderRadius:"8px",boxShadow:"0 0 20px rgba(0,0,0,0.5)",transition:"transform 0.2s",cursor:"zoom-out"}),r.addEventListener("click",function(){document.body.removeChild(r)}),r.appendChild(n),document.body.appendChild(r)}})})},0)},[e.value]),o(i().createElement("span",{className:"".concat(u," ").concat(l)},i().createElement("span",{ref:r,style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({border:"none"},null!=(t=null==e?void 0:e.style)?t:{})})))}var b=(0,o.withDynamicSchemaProps)(function(e){var t,r=(0,n.useField)(),o=null!=(t=e.value)?t:null==r?void 0:r.value,u=d(),s=(0,a.useRef)(),f=p((0,a.useState)(!1),2),v=f[0],b=f[1],h=p((0,a.useState)(!1),2),g=h[0],w=h[1],S=p((0,a.useState)(""),2),x=S[0],E=S[1],C=(0,a.useRef)();(0,a.useEffect)(function(){if(e.value&&(!r||(null==r?void 0:r.value)))if(e.ellipsis)c().md2html(e.value,{mode:"light",cdn:u}).then(function(e){var t,r;E(((t=document.createElement("div")).innerHTML=e,r=t.innerText,t=null,(null==r?void 0:r.replace(/[\n\r]/g,""))||""))}).catch(function(){return E("")});else{var t;c().preview(s.current,null!=(t=e.value)?t:null==r?void 0:r.value,{mode:"light",cdn:u})}},[e.value,e.ellipsis,null==r?void 0:r.value]);var O=(0,a.useCallback)(function(){var e;return!!C.current&&m(C.current)>(null==(e=C.current)?void 0:e.offsetWidth)},[C]);return e.ellipsis?i().createElement(l.Popover,{open:v,onOpenChange:function(e){b(g&&e)},content:i().createElement(y,{value:o,style:{maxWidth:500,maxHeight:400,overflowY:"auto"}})},i().createElement("div",{ref:C,style:{overflow:"hidden",overflowWrap:"break-word",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-all"},onMouseEnter:function(e){var t=e.target;O()&&w(t.scrollWidth>=t.clientWidth)}},x)):i().createElement(y,{value:o})}),h=r(953),g=r(704),w=r(404);function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function x(e,t,r,n,o,l,a){try{var i=e[l](a),u=i.value}catch(e){r(e);return}i.done?t(u):Promise.resolve(u).then(n,o)}var E=["en_US","fr_FR","pt_BR","ja_JP","ko_KR","ru_RU","sv_SE","zh_CN","zh_TW"],C=(0,o.withDynamicSchemaProps)(function(e){var t,r=e.disabled,n=e.onChange,l=e.value,u=e.fileCollection,s=e.toolbar,v=e.editMode,p=void 0===v?"ir":v,m=function(e){if(Array.isArray(e))return e}(t=(0,a.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(t=n.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return o}}(t)||function(e){if(e){if("string"==typeof e)return S(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return S(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=m[0],b=m[1],C=(0,a.useRef)(),O=(0,a.useRef)(!1),R=(0,a.useRef)(null),k=(0,a.useRef)(null),_=(0,o.useAPIClient)(),j=d(),A=f(),I=A.wrapSSR,P=A.hashId,T=A.componentCls,L=_.auth.locale||"en-US",M=(0,o.usePlugin)("@nocobase/plugin-file-manager"),N=(0,o.useCompile)(),z=(0,a.useRef)(N);z.current=N;var F=(0,h.useTranslation)().t,V=(0,o.useZIndexContext)(),W=(0,o.getZIndex)("drawer",V+1e3,0),q=(0,a.useMemo)(function(){var e=L.replace(/-/g,"_");return E.includes(e)?e:"en_US"},[L]);return(0,a.useEffect)(function(){if(R.current){var e=null!=s?s:g.r,t=new(c())(R.current,{value:null!=l?l:"",lang:q,cache:{enable:!1},undoDelay:0,preview:{math:{engine:"KaTeX"}},toolbar:e,fullscreen:{index:1200},cdn:j,minHeight:200,mode:p,after:function(){C.current=t,b(!0);var e=window.scrollX||window.pageXOffset,n=window.scrollY||window.pageYOffset;t.setValue(null!=l?l:""),requestAnimationFrame(function(){window.scrollTo(e,n)}),r?t.disabled():t.enable()},input:function(e){n(e)},upload:{multiple:!1,fieldName:"file",handler:function(e){var r;return(r=function(){var r,n,o,l,a,i,c,s,d,f,v,p,m,y,b;return function(e,t){var r,n,o,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),i=Object.defineProperty;return i(a,"next",{value:u(0)}),i(a,"throw",{value:u(1)}),i(a,"return",{value:u(2)}),"function"==typeof Symbol&&i(a,Symbol.iterator,{value:function(){return this}}),a;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(l=0)),l;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return l.label++,{value:c[1],done:!1};case 5:l.label++,n=c[1],c=[0];continue;case 7:c=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){l=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){l.label=c[1];break}if(6===c[0]&&l.label<o[1]){l.label=o[1],o=c;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(c);break}o[2]&&l.ops.pop(),l.trys.pop();continue}c=t.call(e,l)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(h){switch(h.label){case 0:return s=e[0],t.focus(),[4,_.resource("vditor").check({fileCollectionName:u})];case 1:if(!(null==(d=h.sent().data)||null==(r=d.data)?void 0:r.isSupportToUploadFiles))return t.tip(F("vditor.uploadError.message",{ns:w.C,storageTitle:null==(f=d.data.storage)?void 0:f.title}),0),[2];return t.tip(F("uploading"),0),[4,M.uploadFile({file:s,fileCollectionName:u,storageId:null==d||null==(o=d.data)||null==(n=o.storage)?void 0:n.id,storageType:null==d||null==(a=d.data)||null==(l=a.storage)?void 0:l.type,storageRules:null==d||null==(c=d.data)||null==(i=c.storage)?void 0:i.rules})];case 2:if(p=(v=h.sent()).data,m=v.errorMessage)return t.tip(z.current(m),3e3),[2];if(!p)return t.tip(F("Response data is empty",{ns:w.C}),3e3),[2];return y=p.filename,b=p.url,s.type.startsWith("image/")?t.insertValue("![".concat(y,"](").concat(b,")")):t.insertValue("[".concat(y,"](").concat(b,")")),t.tip(F(""),10),[2,null]}})},function(){var e=this,t=arguments;return new Promise(function(n,o){var l=r.apply(e,t);function a(e){x(l,n,o,a,i,"next",e)}function i(e){x(l,n,o,a,i,"throw",e)}a(void 0)})})()}}}),o=R.current;if(o){var a=new MutationObserver(function(){var e=o.classList.contains("vditor--fullscreen"),t=o.querySelectorAll(".vditor-reset"),r=o.querySelectorAll(".vditor-toolbar");t.forEach(function(t){t.style.padding=e?"10px 200px":""}),r.forEach(function(t){t.style.paddingLeft=e?"200px":""})});return a.observe(o,{attributes:!0,attributeFilter:["class"]}),function(){var e;null==(e=C.current)||e.destroy(),C.current=void 0,a.disconnect()}}}},[null==s?void 0:s.join(","),p]),(0,a.useEffect)(function(){if(y&&C.current){var e=C.current;if(l!==e.getValue()){var t,r,n,o,a=window.scrollX||window.pageXOffset,i=window.scrollY||window.pageYOffset;e.setValue(null!=l?l:"");var u=null==(t=R.current)?void 0:t.querySelector("div.vditor-content > div.vditor-ir > pre"),c=null==(r=R.current)?void 0:r.querySelector(".vditor-content"),s=u&&(document.activeElement===u||u.contains(document.activeElement)||(null==(o=document.activeElement)||null==(n=o.closest)?void 0:n.call(o,".vditor-content"))===c);if(u&&s){var d=document.createRange(),f=window.getSelection();f&&(d.selectNodeContents(u),d.collapse(!1),f.removeAllRanges(),f.addRange(d))}s||requestAnimationFrame(function(){window.scrollTo(a,i)})}}},[l,y]),(0,a.useEffect)(function(){y&&C.current&&(r?C.current.disabled():C.current.enable())},[r,y]),(0,a.useEffect)(function(){if(k.current){var e=new MutationObserver(function(e){var t=!0,r=!1,n=void 0;try{for(var o,l=e[Symbol.iterator]();!(t=(o=l.next()).done);t=!0){var a=o.value,i=!0,u=!1,c=void 0;try{for(var s,d=Array.from(a.addedNodes)[Symbol.iterator]();!(i=(s=d.next()).done);i=!0){var f,v=s.value;f=HTMLElement,(null!=f&&"u">typeof Symbol&&f[Symbol.hasInstance]?!!f[Symbol.hasInstance](v):v instanceof f)&&v.classList.contains("vditor-img")&&(k.current.appendChild(v),v.style.zIndex=String(W))}}catch(e){u=!0,c=e}finally{try{i||null==d.return||d.return()}finally{if(u)throw c}}}}catch(e){r=!0,n=e}finally{try{t||null==l.return||l.return()}finally{if(r)throw n}}});return e.observe(document.body,{childList:!0}),function(){e.disconnect()}}},[W]),(0,a.useLayoutEffect)(function(){if(R.current){var e=new ResizeObserver(function(e){var t=!0,r=!1,n=void 0;try{for(var o,l=e[Symbol.iterator]();!(t=(o=l.next()).done);t=!0){var a,i=o.value.target;i.className.includes("vditor--fullscreen")?(document.body.appendChild(i),O.current=!0):O.current&&(null==(a=k.current)||a.appendChild(i),O.current=!1)}}catch(e){r=!0,n=e}finally{try{t||null==l.return||l.return()}finally{if(r)throw n}}});return e.observe(R.current),function(){e.unobserve(R.current)}}},[]),I(i().createElement("div",{ref:k,className:"".concat(P," ").concat(T)},i().createElement("div",{ref:R})))}),O=(0,o.withDynamicSchemaProps)((0,n.connect)(C,(0,n.mapReadPretty)(b))),R=O}}]);