diff --git a/Blog.Web/App_Start/BundleConfig.cs b/Blog.Web/App_Start/BundleConfig.cs index 56876f8ee81c1454abda2c9d6b3005d3decbdff1..54f88d6350c97243d8b1c5a5476379dcb2171786 100644 --- a/Blog.Web/App_Start/BundleConfig.cs +++ b/Blog.Web/App_Start/BundleConfig.cs @@ -11,9 +11,9 @@ namespace Blog.Web bundles.Add(new StyleBundle("~/css").Include("~/Content/css/bootstrap.min.css", "~/Content/css/font-awesome.min.css")); bundles.Add(new ScriptBundle("~/jquery").Include("~/Content/js/jquery-3.4.1.min.js", "~/Content/js/jquery-3.4.1.slim.min.js", - "~/Content/js/jquery.validate.min.js", "~/Content/js/jquery.validate.unobtrusive.js", "~/Content/js/bootstrap.min.js")); - + "~/Content/js/jquery.validate.min.js", "~/Content/js/jquery.validate.unobtrusive.js", "~/Content/js/bootstrap.min.js", "~/Content/js/wangEditor.min.js")); + bundles.Add(new ScriptBundle("~/wangEditor").Include("~/Content/js/wangEditor.min.js")); } } } diff --git a/Blog.Web/Blog.Web.csproj b/Blog.Web/Blog.Web.csproj index 69a975af42fdd64e25d8183ba9d790ade4c04b81..7f850ba6abc68734e47c4d9f3e487d2971c0051a 100644 --- a/Blog.Web/Blog.Web.csproj +++ b/Blog.Web/Blog.Web.csproj @@ -201,6 +201,7 @@ + diff --git a/Blog.Web/Content/js/wangEditor.min.js b/Blog.Web/Content/js/wangEditor.min.js new file mode 100644 index 0000000000000000000000000000000000000000..1763b603ab066ff35fd16da388eb854d1eaf6aa4 --- /dev/null +++ b/Blog.Web/Content/js/wangEditor.min.js @@ -0,0 +1,16 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.wangEditor=t():e.wangEditor=t()}(window,function(){return o={},i.m=n=[function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){e.exports=n(142)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return i}),n.d(t,"__assign",function(){return r}),n.d(t,"__rest",function(){return a}),n.d(t,"__decorate",function(){return l}),n.d(t,"__param",function(){return u}),n.d(t,"__metadata",function(){return s}),n.d(t,"__awaiter",function(){return c}),n.d(t,"__generator",function(){return f}),n.d(t,"__createBinding",function(){return d}),n.d(t,"__exportStar",function(){return p}),n.d(t,"__values",function(){return h}),n.d(t,"__read",function(){return A}),n.d(t,"__spread",function(){return v}),n.d(t,"__spreadArrays",function(){return m}),n.d(t,"__spreadArray",function(){return g}),n.d(t,"__await",function(){return y}),n.d(t,"__asyncGenerator",function(){return w}),n.d(t,"__asyncDelegator",function(){return x}),n.d(t,"__asyncValues",function(){return _}),n.d(t,"__makeTemplateObject",function(){return E}),n.d(t,"__importStar",function(){return C}),n.d(t,"__importDefault",function(){return S}),n.d(t,"__classPrivateFieldGet",function(){return M}),n.d(t,"__classPrivateFieldSet",function(){return D}); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,o=arguments.length;na[0]&&t[1]=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function A(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||0]+>/g,function(){return""})},w.prototype.html=function(e){var t=this.elems[0];return e?(t.innerHTML=e,this):t.innerHTML},w.prototype.val=function(){var e=this.elems[0];return(0,l.default)(e=e.value).call(e)},w.prototype.focus=function(){return(0,u.default)(this).call(this,function(e){e.focus()})},w.prototype.prev=function(){return x(this.elems[0].previousElementSibling)},w.prototype.next=function(){return x(this.elems[0].nextElementSibling)},w.prototype.getNextSibling=function(){return x(this.elems[0].nextSibling)},w.prototype.parent=function(){return x(this.elems[0].parentElement)},w.prototype.parentUntil=function(e,t){t=t||this.elems[0];if("BODY"===t.nodeName)return null;t=t.parentElement;return null===t?null:t.matches(e)?x(t):this.parentUntil(e,t)},w.prototype.parentUntilEditor=function(e,t,n){n=n||this.elems[0];if(x(n).equal(t.$textContainerElem)||x(n).equal(t.$toolbarElem))return null;n=n.parentElement;return null===n?null:n.matches(e)?x(n):this.parentUntilEditor(e,t,n)},w.prototype.equal=function(e){return e instanceof w?this.elems[0]===e.elems[0]:e instanceof HTMLElement&&this.elems[0]===e},w.prototype.insertBefore=function(e){var n=x(e).elems[0];return n?(0,u.default)(this).call(this,function(e){var t=n.parentNode;null!=t&&t.insertBefore(e,n)}):this},w.prototype.insertAfter=function(e){var n=x(e).elems[0],o=n&&n.nextSibling;return n?(0,u.default)(this).call(this,function(e){var t=n.parentNode;o?t.insertBefore(e,o):t.appendChild(e)}):this},w.prototype.data=function(e,t){if(null==t)return this.dataSource.get(e);this.dataSource.set(e,t)},w.prototype.getNodeTop=function(e){if(this.length<1)return this;var t=this.parent();return e.$textElem.equal(this)||e.$textElem.equal(t)?this:(t.prior=this,t.getNodeTop(e))},w.prototype.getOffsetData=function(){var e=this.elems[0];return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight,parent:e.offsetParent}},w.prototype.scrollTop=function(e){this.elems[0].scrollTo({top:e})},w);function w(e){if(this.elems=[],this.length=this.elems.length,this.dataSource=new s.default,e){if(e instanceof w)return e;var t,n=[],o=e instanceof Node?e.nodeType:-1;this.selector=e,1===o||9===o?n=[e]:(t=e)&&(t instanceof HTMLCollection||t instanceof NodeList)?n=v.toArray(e):e instanceof Array?n=e:"string"==typeof e&&(t=(0,l.default)(o=e.replace("/\n/mg","")).call(o),n=0===(0,c.default)(t).call(t,"<")?(e=t,(o=document.createElement("div")).innerHTML=e,o=o.children,v.toArray(o)):(t=t,t=document.querySelectorAll(t),v.toArray(t)));var i=n.length;if(!i)return this;for(var r=0;r/gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g,"
")},t.replaceSpecialSymbol=function(e){return e.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,'"')},t.forEach=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))if(!1===t(n,e[n]))break},t.arrForEach=function(e,t){for(var n,o=e.length||0,i=0;i

',t.EMPTY_P_LAST_REGEX=/

<\/p>$/gim,t.EMPTY_P_REGEX=/

/gim},function(n,e,t){(function(e){function t(e){return e&&e.Math==Math&&e}n.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||Function("return this")()}).call(this,t(145))},function(e,t){e.exports={}},function(e,t,n){var o=n(8),i=n(74),r=n(16),a=n(64),l=n(76),n=n(106),u=i("wks"),s=o.Symbol,c=n?s:s&&s.withoutSetter||a;e.exports=function(e){return r(u,e)||(l&&r(s,e)?u[e]=s[e]:u[e]=c("Symbol."+e)),u[e]}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var o=n(9),i=n(16),r=n(93),a=n(18).f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});i(t,e)||a(t,e,{value:r.f(e)})}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){n=n(11);e.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){var o=n(9);e.exports=function(e){return o[e+"Prototype"]}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=n(192)},function(e,t,n){var o=n(14),i=n(100),r=n(25),a=n(60),l=Object.defineProperty;t.f=o?l:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var o=n(14),i=n(18),r=n(48);e.exports=o?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,i){"use strict";var n,o,l=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=(o={},function(e){if(void 0===o[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}o[e]=t}return o[e]}),s=[];function c(e){for(var t=-1,n=0;n'),s.append(i),i.on("click",function(){c.remove()}),r=A.default('

    '),a=A.default('
    '),s.append(r).append(a),(i=e.height)&&a.css("height",i+"px").css("overflow-y","auto"),i=e.tabs||[],l=[],u=[],(0,d.default)(i).call(i,function(e,t){var n,o,i;e&&(n=e.title||"",e=e.tpl||"",o=A.default('
  • '+n+"
  • "),r.append(o),i=A.default(e),a.append(i),l.push(o),u.push(i),0===t?(o.data("active",!0),o.addClass("w-e-active")):i.hide(),o.on("click",function(){o.data("active")||((0,d.default)(l).call(l,function(e){e.data("active",!1),e.removeClass("w-e-active")}),(0,d.default)(u).call(u,function(e){e.hide()}),o.data("active",!0),o.addClass("w-e-active"),i.show())}))}),s.on("click",function(e){e.stopPropagation()}),f.$elem.append(s),e.setLinkValue&&e.setLinkValue(s,"text"),e.setLinkValue&&e.setLinkValue(s,"link"),(0,d.default)(i).call(i,function(e,a){e&&(e=e.events||[],(0,d.default)(e).call(e,function(e){function t(t){return h.__awaiter(c,void 0,void 0,function(){return h.__generator(this,function(e){switch(e.label){case 0:return t.stopPropagation(),[4,i(t)];case 1:return e.sent()&&this.remove(),[2]}})})}var n=e.selector,o=e.type,i=e.fn||v.EMPTY_FN,r=u[a],e=null!==(e=e.bindEnter)&&void 0!==e&&e;(0,p.default)(r).call(r,n).on(o,t),e&&"click"===o&&r.on("keyup",function(e){13==e.keyCode&&t(e)})}))}),(s=(0,p.default)(s).call(s,"input[type=text],textarea")).length&&s.get(0).focus(),m.hideCurAllPanels(),f.setPanel(this),m.createdMenus.add(f))},m.prototype.remove=function(){var e=this.menu,t=this.$container;t&&t.remove(),m.createdMenus.delete(e)},m.hideCurAllPanels=function(){var e;0!==m.createdMenus.size&&(0,d.default)(e=m.createdMenus).call(e,function(e){e=e.panel;e&&e.remove()})},m.createdMenus=new o.default,m);function m(e,t){this.menu=e,this.conf=t,this.$container=A.default('
    ');e=e.editor;e.txt.eventHooks.clickEvents.push(m.hideCurAllPanels),e.txt.eventHooks.toolbarClickEvents.push(m.hideCurAllPanels),e.txt.eventHooks.dropListMenuHoverEvents.push(m.hideCurAllPanels)}t.default=o},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(62),i=Math.min;e.exports=function(e){return 0");o.addClass("w-e-tooltip-item-wrapper "),o.append(n),l.append(o),n.on("click",function(e){e.preventDefault(),t.onClick(r,a)&&i.remove()})})},a.prototype.create=function(){var e=this.editor,t=this.$container;this.appendMenus();var n=this.getPositionData(),o=n.top,n=n.left;t.css("top",o+"px"),t.css("left",n+"px"),t.css("z-index",e.zIndex.get("tooltip")),(this._isInsertTextContainer?this.editor.$textContainerElem:f.default("body")).append(t),this._show=!0,e.beforeDestroy((0,r.default)(t=this.remove).call(t,this)),e.txt.eventHooks.onBlurEvents.push((0,r.default)(e=this.remove).call(e,this))},a.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,i.default)(a.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),a);function a(e,t,n){this.editor=e,this.$targetElem=t,this.conf=n,this._show=!1,this._isInsertTextContainer=!1;n=f.default("
    ");n.addClass("w-e-tooltip"),this.$container=n}t.default=i},function(e,t,n){var r=n(41);e.exports=function(o,i,e){if(r(o),void 0===i)return o;switch(e){case 0:return function(){return o.call(i)};case 1:return function(e){return o.call(i,e)};case 2:return function(e,t){return o.call(i,e,t)};case 3:return function(e,t,n){return o.call(i,e,t,n)}}return function(){return o.apply(i,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var o,i,r,a,l,u,s,c,f=n(165),d=n(8),p=n(13),h=n(19),A=n(16),v=n(63),n=n(51),d=d.WeakMap;s=f?(o=new d,i=o.get,r=o.has,a=o.set,l=function(e,t){return a.call(o,e,t),t},u=function(e){return i.call(o,e)||{}},function(e){return r.call(o,e)}):(n[c=v("state")]=!0,l=function(e,t){return h(e,c,t),t},u=function(e){return A(e,c)?e[c]:{}},function(e){return A(e,c)}),e.exports={set:l,get:u,has:s,enforce:function(e){return s(e)?u(e):l(e,{})},getterFor:function(n){return function(e){var t;if(!p(e)||(t=u(e)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return t}}}},function(e,t){e.exports=!0},function(e,t){e.exports={}},function(e,t,n){e.exports=n(261)},function(e,t,n){e.exports=n(265)},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0}),t.createElementFragment=t.createDocumentFragment=t.createElement=t.insertBefore=t.getEndPoint=t.getStartPoint=t.updateRange=t.filterSelectionNodes=void 0;var i=n(2),a=n(137),l=i.__importDefault(n(3));function u(e){return document.createElement(e)}t.filterSelectionNodes=function(e){var n=[];return(0,r.default)(e).call(e,function(e){var t=e.getNodeName();t!==a.ListType.OrderedList&&t!==a.ListType.UnorderedList?n.push(e):e.prior?n.push(e.prior):null!=(e=e.children())&&(0,r.default)(e).call(e,function(e){n.push(l.default(e))})}),n},t.updateRange=function(e,t,n){var o=e.selection,e=document.createRange();1=t.length?{value:void 0,done:!0}:(n=o(t,n),e.index+=n.length,{value:n,done:!1})})},function(e,t){e.exports={}},function(e,t,n){var o=n(107),i=n(80);e.exports=Object.keys||function(e){return o(e,i)}},function(e,t,n){var i=n(19);e.exports=function(e,t,n,o){o&&o.enumerable?e[t]=n:i(e,t,n)}},function(e,t,n){n(173);var o,i=n(174),r=n(8),a=n(65),l=n(19),u=n(44),s=n(10)("toStringTag");for(o in i){var c=r[o],c=c&&c.prototype;c&&a(c)!==s&&l(c,s,o),u[o]=u.Array}},function(e,t,n){var o=n(34);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){var o=n(11),i=n(10),r=n(86),a=i("species");e.exports=function(t){return 51<=r||!o(function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},function(e,t,n){e.exports=n(222)},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListHandle=void 0;var o=n(2).__importDefault(n(373)),n=function(e){this.options=e,this.selectionRangeElem=new o.default};t.ListHandle=n},function(e,t,n){"use strict";var o={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!o.call({1:2},1);t.f=r?function(e){e=i(this,e);return!!e&&e.enumerable}:o},function(e,t,n){var i=n(13);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0"+e+""}var r,a=n(25),l=n(169),u=n(80),s=n(51),c=n(108),f=n(73),n=n(63),d="prototype",p="script",h=n("IE_PROTO"),A=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e;A=r?function(e){e.write(i("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((e=f("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(e=e.contentWindow.document).open(),e.write(i("document.F=Object")),e.close(),e.F);for(var t=u.length;t--;)delete A[d][u[t]];return A()};s[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(o[d]=a(e),n=new o,o[d]=null,n[h]=e):n=A(),void 0===t?n:l(n,t)}},function(e,t,n){var u=n(30),s=n(35),c=n(79),n=function(l){return function(e,t,n){var o,i=u(e),r=s(i.length),a=c(n,r);if(l&&t!=t){for(;a"),this.$textContainerElem=l.default("
    "),this.$textElem=l.default("
    "),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new c.default(this),this.cmd=new f.default(this),this.txt=new d.default(this),this.menus=new p.default(this),this.zIndex=new w.default,this.change=new x.default(this),this.history=new _.default(this),this.onSelectionChange=new b.default(this);e=E.default(this),t=e.disable,e=e.enable;this.disable=t,this.enable=e,this.isEnable=!0}t.default=n},function(e,t,n){var o=n(13),i=n(55),r=n(10)("species");e.exports=function(e,t){var n;return i(e)&&("function"==typeof(n=e.constructor)&&(n===Array||i(n.prototype))||o(n)&&null===(n=n[r]))&&(n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){e.exports=n(185)},function(e,t,n){var o=n(49),n="["+n(68)+"]",i=RegExp("^"+n+n+"*"),r=RegExp(n+n+"*$"),n=function(t){return function(e){e=String(o(e));return 1&t&&(e=e.replace(i,"")),2&t&&(e=e.replace(r,"")),e}};e.exports={start:n(1),end:n(2),trim:n(3)}},function(e,t,n){e.exports=n(205)},function(t,e,n){var o=n(227),i=n(230);function r(e){return t.exports=r="function"==typeof i&&"symbol"==typeof o?function(e){return typeof e}:function(e){return e&&"function"==typeof i&&e.constructor===i&&e!==i.prototype?"symbol":typeof e},r(e)}t.exports=r},function(e,t,n){n=n(10);t.f=n},function(e,t,n){e.exports=n(306)},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(33)),i=(l.prototype.clickHandler=function(e){},l.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},l.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,i.default)(l.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),l);function l(e,n){var o=this;this.$elem=e,this.editor=n,this._active=!1,e.on("click",function(e){var t;a.default.hideCurAllPanels(),(0,r.default)(t=n.txt.eventHooks.menuClickEvents).call(t,function(e){return e()}),e.stopPropagation(),null!=n.selection.getRange()&&o.clickHandler(e)})}t.default=i},function(e,o,t){"use strict";var n=t(0),i=n(t(1)),r=n(t(28));function a(e){for(var t,n=e.elems[0];n&&(0,r.default)(t=o.EXTRA_TAG).call(t,n.nodeName);)if("A"===(n=n.parentElement).nodeName)return n}(0,i.default)(o,"__esModule",{value:!0}),o.getParentNodeA=o.EXTRA_TAG=void 0,o.EXTRA_TAG=["B","FONT","I","STRIKE"],o.getParentNodeA=a,o.default=function(e){var t=e.selection.getSelectionContainerElem();return!(null===(e=null==t?void 0:t.elems)||void 0===e||!e.length)&&("A"===t.getNodeName()||!(!(t=a(t))||"A"!==t.nodeName))}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),_=o(n(57)),E=o(n(4)),b=o(n(27));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),C=n(6),S=i.__importDefault(n(135)),M=i.__importDefault(n(136)),n=(r.prototype.insertImg=function(e,t,n){function o(e,t){return void 0===t&&(t="validate."),i.i18next.t(t+e)}var i=this.editor,r=i.config,a=(a=e.replace(//g,">")).replace("'",'"'),l="";n&&(l=n.replace("'",'"'),l="data-href='"+encodeURIComponent(l)+"' ");var u="";t&&(u="alt='"+(u=(u=t.replace(//g,">")).replace("'",'"'))+"' "),i.cmd.do("insertHTML","'),r.linkImgCallback(e,t,n);var s=document.createElement("img");s.onload=function(){s=null},s.onerror=function(){r.customAlert(o("插入图片错误"),"error","wangEditor: "+o("插入图片错误")+","+o("图片链接")+' "'+e+'",'+o("下载链接失败")),s=null},s.onabort=function(){return s=null},s.src=e},r.prototype.uploadImg=function(e){var i,o,r,t,a,l,n,u,s,c,f,d,p,h,A,v,m,g,y,w,x=this;e.length&&(i=this.editor,o=i.config,r=function(e){return i.i18next.t("validate."+e)},g=o.uploadImgServer,t=o.uploadImgShowBase64,a=o.uploadImgMaxSize,l=a/1024/1024,n=o.uploadImgMaxLength,u=o.uploadFileName,s=o.uploadImgParams,c=o.uploadImgParamsWithUrl,f=o.uploadImgHeaders,d=o.uploadImgHooks,p=o.uploadImgTimeout,w=o.withCredentials,((h=o.customUploadImg)||g||t)&&(A=[],v=[],C.arrForEach(e,function(e){var t,n,o;e&&(t=e.name||e.type.replace("/","."),n=e.size,t&&n&&(o=i.config.uploadImgAccept.join("|"),!1!==new RegExp(".("+o+")$","i").test(t)?an?o.customAlert(r("一次最多上传")+n+r("张图片"),"warning"):h&&"function"==typeof h?h(A,(0,_.default)(y=this.insertImg).call(y,this)):(m=new FormData,(0,E.default)(A).call(A,function(e,t){var n=u||e.name;1i;)a(o,n=t[i++])&&(~u(r,n)||r.push(n));return r}},function(e,t,n){n=n(36);e.exports=n("document","documentElement")},function(e,t,n){n=n(8);e.exports=n.Promise},function(e,t,n){var i=n(53);e.exports=function(e,t,n){for(var o in t)n&&n.unsafe&&e[o]?e[o]=t[o]:i(e,o,t[o],n);return e}},function(e,t,n){"use strict";var o=n(36),i=n(18),r=n(10),a=n(14),l=r("species");e.exports=function(e){var t=o(e),e=i.f;a&&t&&!t[l]&&e(t,l,{configurable:!0,get:function(){return this}})}},function(e,t,n){var o=n(10),i=n(44),r=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[r]===e)}},function(e,t,n){var o=n(65),i=n(44),r=n(10)("iterator");e.exports=function(e){if(null!=e)return e[r]||e["@@iterator"]||i[o(e)]}},function(e,t,n){var r=n(25);e.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(e,t,n){var i=n(10)("iterator"),r=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){r=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var o={};o[i]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){var o=n(25),i=n(41),r=n(10)("species");e.exports=function(e,t){var n,e=o(e).constructor;return void 0===e||null==(n=o(e)[r])?t:i(n)}},function(e,t,n){function o(e){var t;x.hasOwnProperty(e)&&(t=x[e],delete x[e],t())}function i(e){return function(){o(e)}}function r(e){o(e.data)}var a,l=n(8),u=n(11),s=n(34),c=n(40),f=n(108),d=n(73),p=n(118),h=l.location,A=l.setImmediate,v=l.clearImmediate,m=l.process,g=l.MessageChannel,y=l.Dispatch,w=0,x={},_="onreadystatechange",n=function(e){l.postMessage(e+"",h.protocol+"//"+h.host)};A&&v||(A=function(e){for(var t=[],n=1;n"+e+"

    "}return i=(i=i.replace(/<(\d)/gm,function(e,t){return"<"+t})).replace(/<(\/?meta.*?)>/gim,""),i=l.default(i,t,n)},t.getPasteImgs=function(e){var o=[];return u(e)||(e=null===(e=e.clipboardData)||void 0===e?void 0:e.items)&&(0,r.default)(a).call(a,e,function(e,t){var n=t.type;/image/i.test(n)&&o.push(t.getAsFile())}),o}},function(e,t,n){e.exports=n(294)},function(e,t,n){e.exports=n(310)},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),l=o(n(4)),u=o(n(46));(0,i.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3)),c=n(7),i=(r.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var e,t,n=this.menu.$elem,o=this.$container;this._show||(this.rendered?o.show():(e=n.getBoundingClientRect().height||0,t=this.conf.width||100,o.css("margin-top",e+"px").css("width",t+"px"),n.append(o),this.rendered=!0),this._show=!0)},r.prototype.hide=function(){var e=this.$container;this._show&&(e.hide(),this._show=!1)},(0,i.default)(r.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),r);function r(e,t){var o=this;this.hideTimeoutId=0,this.menu=e,this.conf=t;var n=s.default('
    '),i=s.default("

    "+t.title+"

    ");i.addClass("w-e-dp-title"),n.append(i);var e=t.list||[],i=t.type||"list",r=t.clickHandler||c.EMPTY_FN,a=s.default('
      ');(0,l.default)(e).call(e,function(e){var t=e.$elem,n=e.value,e=s.default('
    • ');t&&(e.append(t),a.append(e),e.on("click",function(e){r(n),e.stopPropagation(),o.hideTimeoutId=(0,u.default)(function(){o.hide()})}))}),n.append(a),n.on("mouseleave",function(){o.hideTimeoutId=(0,u.default)(function(){o.hide()})}),this.$container=n,this.rendered=!1,this._show=!1}t.default=i},function(e,t,n){"use strict";var o=n(0),r=o(n(92)),i=o(n(1)),a=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var l=n(6);t.default=function(e,o){var i=new XMLHttpRequest;if(i.open("POST",e),i.timeout=o.timeout||1e4,i.ontimeout=function(){console.error("wangEditor - 请求超时"),o.onTimeout&&o.onTimeout(i)},i.upload&&(i.upload.onprogress=function(e){var t=e.loaded/e.total;o.onProgress&&o.onProgress(t,e)}),o.headers&&(0,a.default)(l).call(l,o.headers,function(e,t){i.setRequestHeader(e,t)}),i.withCredentials=!!o.withCredentials,o.beforeSend){e=o.beforeSend(i);if(e&&"object"===(0,r.default)(e)&&e.prevent)return e.msg}return i.onreadystatechange=function(){if(4===i.readyState){var e=i.status;if(!(e<200||300<=e&&e<400)){if(400<=e)return console.error("wangEditor - XHR 报错,状态码 "+e),void(o.onError&&o.onError(i));var t,n=i.responseText;if("object"!==(0,r.default)(n))try{t=JSON.parse(n)}catch(e){return console.error("wangEditor - 返回结果不是 JSON 格式",n),void(o.onFail&&o.onFail(i,n))}else t=n;o.onSuccess(i,t)}}},i.send(o.formData||null),i}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(342)),a=o(n(46));(0,i.default)(t,"__esModule",{value:!0});var l=n(2).__importDefault(n(3)),n=(u.prototype.show=function(e){var t,n=this;this.isShow||(this.isShow=!0,t=this.$bar,this.$textContainer.append(t),100<(0,r.default)()-this.time&&e<=1&&(t.css("width",100*e+"%"),this.time=(0,r.default)()),(e=this.timeoutId)&&clearTimeout(e),this.timeoutId=(0,a.default)(function(){n.hide()},500))},u.prototype.hide=function(){this.$bar.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},u);function u(e){this.editor=e,this.$textContainer=e.$textContainerElem,this.$bar=l.default('
      '),this.isShow=!1,this.time=0,this.timeoutId=0}t.default=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListType=void 0;var i,o=n(2),r=o.__importDefault(n(3)),a=o.__importDefault(n(24)),u=n(47),s=o.__importStar(n(371));(n=i=t.ListType||(t.ListType={})).OrderedList="OL",n.UnorderedList="UL";var l,o=(l=a.default,o.__extends(c,l),c.prototype.command=function(e){void 0!==this.editor.selection.getSelectionContainerElem()&&(this.handleSelectionRangeNodes(e),this.tryChangeActive())},c.prototype.validator=function(e,t,n){return!(!e.length||!t.length||n.equal(e)||n.equal(t))},c.prototype.handleSelectionRangeNodes=function(e){var t,n=this.editor,o=n.selection,i=e.toLowerCase(),r=o.getSelectionContainerElem(),a=o.getSelectionStartElem().getNodeTop(n),l=o.getSelectionEndElem().getNodeTop(n);this.validator(a,l,n.$textElem)&&(o=null==(t=o.getRange())?void 0:t.collapsed,n.$textElem.equal(r)||(r=r.getNodeTop(n)),i={editor:n,listType:e,listTarget:i,$selectionElem:r,$startElem:a,$endElem:l},l=this.isOrderElem(r)?s.ClassType.Wrap:this.isOrderElem(a)&&this.isOrderElem(l)?s.ClassType.Join:this.isOrderElem(a)?s.ClassType.StartJoin:this.isOrderElem(l)?s.ClassType.EndJoin:s.ClassType.Other,t=new s.default(s.createListHandle(l,i,t)),u.updateRange(n,t.getSelectionRangeElem(),!!o))},c.prototype.isOrderElem=function(e){e=e.getNodeName();return e===i.OrderedList||e===i.UnorderedList},c.prototype.tryChangeActive=function(){},c);function c(e){var t=this,n=r.default('
      \n \n
      '),o={width:130,title:"序列",type:"list",list:[{$elem:r.default('\n

      \n \n '+e.i18next.t("menus.dropListMenu.list.无序列表")+"\n

      "),value:i.UnorderedList},{$elem:r.default('

      \n \n '+e.i18next.t("menus.dropListMenu.list.有序列表")+"\n

      "),value:i.OrderedList}],clickHandler:function(e){t.command(e)}};return t=l.call(this,n,e,o)||this}t.default=o},function(e,t,n){e.exports=n(395)},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){return!(null==(e=e.selection.getSelectionContainerElem())||!e.length)&&!("CODE"!=e.getNodeName()&&"PRE"!=e.getNodeName()&&"CODE"!=e.parent().getNodeName()&&"PRE"!=e.parent().getNodeName()&&!/hljs/.test(e.parent().attr("class")))}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(29));(0,i.default)(t,"__esModule",{value:!0}),t.todo=void 0;var a=n(2).__importDefault(n(3)),l=(u.prototype.init=function(){var e=this.$child,t=this.getInputContainer();e&&e.insertAfter(t)},u.prototype.getInput=function(){var e=this.$todo;return(0,r.default)(e).call(e,"input")},u.prototype.getInputContainer=function(){return this.getInput().parent()},u.prototype.getTodo=function(){return this.$todo},u);function u(e){this.template='

      ',this.checked=!1,this.$todo=a.default(this.template),this.$child=null===(e=null==e?void 0:e.childNodes())||void 0===e?void 0:e.clone(!0)}t.todo=l,t.default=function(e){return(e=new l(e)).init(),e}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2);n(146),n(148),n(152),n(154),n(156),n(158),n(160);var i=o.__importDefault(n(87));o.__exportStar(n(442),t);try{document}catch(e){throw new Error("请在浏览器环境下运行")}t.default=i.default},function(e,t,n){n=n(143);e.exports=n},function(e,t,n){n(144);var o=n(9).Object,e=e.exports=function(e,t,n){return o.defineProperty(e,t,n)};o.defineProperty.sham&&(e.sham=!0)},function(e,t,n){var o=n(5),i=n(14);o({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:n(18).f})},function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var o=n(20),i=n(147);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);n={insert:"head",singleton:!1},o(i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-toolbar,\n.w-e-text-container,\n.w-e-menu-panel {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n background-color: #fff;\n /*表情菜单样式*/\n /*分割线样式*/\n}\n.w-e-toolbar h1,\n.w-e-text-container h1,\n.w-e-menu-panel h1 {\n font-size: 32px !important;\n}\n.w-e-toolbar h2,\n.w-e-text-container h2,\n.w-e-menu-panel h2 {\n font-size: 24px !important;\n}\n.w-e-toolbar h3,\n.w-e-text-container h3,\n.w-e-menu-panel h3 {\n font-size: 18.72px !important;\n}\n.w-e-toolbar h4,\n.w-e-text-container h4,\n.w-e-menu-panel h4 {\n font-size: 16px !important;\n}\n.w-e-toolbar h5,\n.w-e-text-container h5,\n.w-e-menu-panel h5 {\n font-size: 13.28px !important;\n}\n.w-e-toolbar p,\n.w-e-text-container p,\n.w-e-menu-panel p {\n font-size: 16px !important;\n}\n.w-e-toolbar .eleImg,\n.w-e-text-container .eleImg,\n.w-e-menu-panel .eleImg {\n cursor: pointer;\n display: inline-block;\n font-size: 18px;\n padding: 0 3px;\n}\n.w-e-toolbar *,\n.w-e-text-container *,\n.w-e-menu-panel * {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n.w-e-toolbar hr,\n.w-e-text-container hr,\n.w-e-menu-panel hr {\n cursor: pointer;\n display: block;\n height: 0px;\n border: 0;\n border-top: 3px solid #ccc;\n margin: 20px 0;\n}\n.w-e-clear-fix:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-drop-list-item {\n position: relative;\n top: 1px;\n padding-right: 7px;\n color: #333 !important;\n}\n.w-e-drop-list-tl {\n padding-left: 10px;\n text-align: left;\n}\n',""]),e.exports=t},function(e,t,n){var o=n(20),i=n(149);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);n={insert:"head",singleton:!1},o(i,n);e.exports=i.locals||{}},function(e,t,n){var o=n(21),i=n(150),n=n(151);t=o(!1);n=i(n);t.push([e.i,"@font-face {\n font-family: 'w-e-icon';\n src: url("+n+') format(\'truetype\');\n font-weight: normal;\n font-style: normal;\n}\n[class^="w-e-icon-"],\n[class*=" w-e-icon-"] {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'w-e-icon\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.w-e-icon-close:before {\n content: "\\f00d";\n}\n.w-e-icon-upload2:before {\n content: "\\e9c6";\n}\n.w-e-icon-trash-o:before {\n content: "\\f014";\n}\n.w-e-icon-header:before {\n content: "\\f1dc";\n}\n.w-e-icon-pencil2:before {\n content: "\\e906";\n}\n.w-e-icon-paint-brush:before {\n content: "\\f1fc";\n}\n.w-e-icon-image:before {\n content: "\\e90d";\n}\n.w-e-icon-play:before {\n content: "\\e912";\n}\n.w-e-icon-location:before {\n content: "\\e947";\n}\n.w-e-icon-undo:before {\n content: "\\e965";\n}\n.w-e-icon-redo:before {\n content: "\\e966";\n}\n.w-e-icon-quotes-left:before {\n content: "\\e977";\n}\n.w-e-icon-list-numbered:before {\n content: "\\e9b9";\n}\n.w-e-icon-list2:before {\n content: "\\e9bb";\n}\n.w-e-icon-link:before {\n content: "\\e9cb";\n}\n.w-e-icon-happy:before {\n content: "\\e9df";\n}\n.w-e-icon-bold:before {\n content: "\\ea62";\n}\n.w-e-icon-underline:before {\n content: "\\ea63";\n}\n.w-e-icon-italic:before {\n content: "\\ea64";\n}\n.w-e-icon-strikethrough:before {\n content: "\\ea65";\n}\n.w-e-icon-table2:before {\n content: "\\ea71";\n}\n.w-e-icon-paragraph-left:before {\n content: "\\ea77";\n}\n.w-e-icon-paragraph-center:before {\n content: "\\ea78";\n}\n.w-e-icon-paragraph-right:before {\n content: "\\ea79";\n}\n.w-e-icon-paragraph-justify:before {\n content: "\\ea7a";\n}\n.w-e-icon-terminal:before {\n content: "\\f120";\n}\n.w-e-icon-page-break:before {\n content: "\\ea68";\n}\n.w-e-icon-cancel-circle:before {\n content: "\\ea0d";\n}\n.w-e-icon-font:before {\n content: "\\ea5c";\n}\n.w-e-icon-text-heigh:before {\n content: "\\ea5f";\n}\n.w-e-icon-paint-format:before {\n content: "\\e90c";\n}\n.w-e-icon-indent-increase:before {\n content: "\\ea7b";\n}\n.w-e-icon-indent-decrease:before {\n content: "\\ea7c";\n}\n.w-e-icon-row-height:before {\n content: "\\e9be";\n}\n.w-e-icon-fullscreen_exit:before {\n content: "\\e900";\n}\n.w-e-icon-fullscreen:before {\n content: "\\e901";\n}\n.w-e-icon-split-line:before {\n content: "\\ea0b";\n}\n.w-e-icon-checkbox-checked:before {\n content: "\\ea52";\n}\n',""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e,t){return t=t||{},"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t,n){"use strict";n.r(t),t.default="data:font/woff;base64,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"},function(e,t,n){var o=n(20),i=n(153);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);n={insert:"head",singleton:!1},o(i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-toolbar {\n display: flex;\n padding: 0 6px;\n flex-wrap: wrap;\n position: relative;\n /* 单个菜单 */\n}\n.w-e-toolbar .w-e-menu {\n position: relative;\n display: flex;\n width: 40px;\n height: 40px;\n align-items: center;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n}\n.w-e-toolbar .w-e-menu i {\n color: #999;\n}\n.w-e-toolbar .w-e-menu:hover {\n background-color: #F6F6F6;\n}\n.w-e-toolbar .w-e-menu:hover i {\n color: #333;\n}\n.w-e-toolbar .w-e-active i {\n color: #1e88e5;\n}\n.w-e-toolbar .w-e-active:hover i {\n color: #1e88e5;\n}\n.w-e-menu-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-menu-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-item-wrapper {\n font-size: 14px;\n margin: 0 5px;\n}\n',""]),e.exports=t},function(e,t,n){var o=n(20),i=n(155);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);n={insert:"head",singleton:!1},o(i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-text-container {\n position: relative;\n height: 100%;\n}\n.w-e-text-container .w-e-progress {\n position: absolute;\n background-color: #1e88e5;\n top: 0;\n left: 0;\n height: 1px;\n}\n.w-e-text-container .placeholder {\n color: #D4D4D4;\n position: absolute;\n font-size: 11pt;\n line-height: 22px;\n left: 10px;\n top: 10px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n z-index: -1;\n}\n.w-e-text {\n padding: 0 10px;\n overflow-y: auto;\n}\n.w-e-text p,\n.w-e-text h1,\n.w-e-text h2,\n.w-e-text h3,\n.w-e-text h4,\n.w-e-text h5,\n.w-e-text table,\n.w-e-text pre {\n margin: 10px 0;\n line-height: 1.5;\n}\n.w-e-text ul,\n.w-e-text ol {\n margin: 10px 0 10px 20px;\n}\n.w-e-text blockquote {\n display: block;\n border-left: 8px solid #d0e5f2;\n padding: 5px 10px;\n margin: 10px 0;\n line-height: 1.4;\n font-size: 100%;\n background-color: #f1f1f1;\n}\n.w-e-text code {\n display: inline-block;\n background-color: #f1f1f1;\n border-radius: 3px;\n padding: 3px 5px;\n margin: 0 3px;\n}\n.w-e-text pre code {\n display: block;\n}\n.w-e-text table {\n border-top: 1px solid #ccc;\n border-left: 1px solid #ccc;\n}\n.w-e-text table td,\n.w-e-text table th {\n border-bottom: 1px solid #ccc;\n border-right: 1px solid #ccc;\n padding: 3px 5px;\n min-height: 30px;\n height: 30px;\n}\n.w-e-text table th {\n border-bottom: 2px solid #ccc;\n text-align: center;\n background-color: #f1f1f1;\n}\n.w-e-text:focus {\n outline: none;\n}\n.w-e-text img {\n cursor: pointer;\n}\n.w-e-text img:hover {\n box-shadow: 0 0 5px #333;\n}\n.w-e-text .w-e-todo {\n margin: 0 0 0 20px;\n}\n.w-e-text .w-e-todo li {\n list-style: none;\n font-size: 1em;\n}\n.w-e-text .w-e-todo li span:nth-child(1) {\n position: relative;\n left: -18px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input {\n position: absolute;\n margin-right: 3px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {\n top: 50%;\n margin-top: -6px;\n}\n.w-e-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-item-wrapper {\n cursor: pointer;\n font-size: 14px;\n margin: 0 5px;\n}\n.w-e-tooltip-item-wrapper:hover {\n color: #ccc;\n text-decoration: underline;\n}\n',""]),e.exports=t},function(e,t,n){var o=n(20),i=n(157);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);n={insert:"head",singleton:!1},o(i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-menu .w-e-panel-container {\n position: absolute;\n top: 0;\n left: 50%;\n border: 1px solid #ccc;\n border-top: 0;\n box-shadow: 1px 1px 2px #ccc;\n color: #333;\n background-color: #fff;\n text-align: left;\n /* 为 emotion panel 定制的样式 */\n /* 上传图片、上传视频的 panel 定制样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close {\n position: absolute;\n right: 0;\n top: 0;\n padding: 5px;\n margin: 2px 5px 0 0;\n cursor: pointer;\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close:hover {\n color: #333;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title {\n list-style: none;\n display: flex;\n font-size: 14px;\n margin: 2px 10px 0 10px;\n border-bottom: 1px solid #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {\n padding: 3px 5px;\n color: #999;\n cursor: pointer;\n margin: 0 3px;\n position: relative;\n top: 1px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {\n color: #333;\n border-bottom: 1px solid #333;\n cursor: default;\n font-weight: 700;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content {\n padding: 10px 15px 10px 15px;\n font-size: 16px;\n /* 输入框的样式 */\n /* 按钮的样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {\n outline: none;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {\n width: 100%;\n border: 1px solid #ccc;\n padding: 5px;\n margin-top: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {\n border-color: #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {\n border: none;\n border-bottom: 1px solid #ccc;\n font-size: 14px;\n height: 20px;\n color: #333;\n text-align: left;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {\n width: 30px;\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {\n display: block;\n width: 100%;\n margin: 10px 0;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {\n border-bottom: 2px solid #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {\n font-size: 14px;\n color: #1e88e5;\n border: none;\n padding: 5px 10px;\n background-color: #fff;\n cursor: pointer;\n border-radius: 3px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {\n float: left;\n margin-right: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {\n float: right;\n margin-left: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {\n color: #c24f4a;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {\n background-color: #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {\n cursor: pointer;\n font-size: 18px;\n padding: 0 3px;\n display: inline-block;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container,\n.w-e-menu .w-e-panel-container .w-e-up-video-container {\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {\n display: inline-block;\n color: #999;\n cursor: pointer;\n font-size: 60px;\n line-height: 1;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {\n color: #333;\n}\n',""]),e.exports=t},function(e,t,n){var o=n(20),i=n(159);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);n={insert:"head",singleton:!1},o(i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-toolbar .w-e-droplist {\n position: absolute;\n left: 0;\n top: 0;\n background-color: #fff;\n border: 1px solid #f1f1f1;\n border-right-color: #ccc;\n border-bottom-color: #ccc;\n}\n.w-e-toolbar .w-e-droplist .w-e-dp-title {\n text-align: center;\n color: #999;\n line-height: 2;\n border-bottom: 1px solid #f1f1f1;\n font-size: 13px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list {\n list-style: none;\n line-height: 1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {\n color: #333;\n padding: 5px 0;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {\n background-color: #f1f1f1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block {\n list-style: none;\n text-align: left;\n padding: 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {\n display: inline-block;\n padding: 3px 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {\n background-color: #f1f1f1;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";n=n(0)(n(161));Element.prototype.matches||(Element.prototype.matches=function(e){for(var t=this.ownerDocument.querySelectorAll(e),n=t.length;0<=n&&t.item(n)!==this;n--);return-1=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:o,done:!1}:"values"==n?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";function A(e){var t;return!(!x(e)||"function"!=typeof(t=e.then))&&t}function r(f,d,p){var h;d.notified||(d.notified=!0,h=d.reactions,N(function(){for(var e=d.value,t=1==d.state,n=0;h.length>n;){var o,i,r,a=h[n++],l=t?a.ok:a.fail,u=a.resolve,s=a.reject,c=a.domain;try{l?(t||(2===d.rejection&&ne(f,d),d.rejection=1),!0===l?o=e:(c&&c.enter(),o=l(e),c&&(c.exit(),r=!0)),o===a.promise?s($("Promise-chain cycle")):(i=A(o))?i.call(o,u,s):u(o)):s(e)}catch(e){c&&!r&&c.exit(),s(e)}}d.reactions=[],d.notified=!1,p&&!d.rejection&&ee(f,d)}))}function a(e,t,n){var o;X?((o=V.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),p.dispatchEvent(o)):o={promise:t,reason:n},(t=p["on"+e])?t(o):e===Z&&B("Unhandled promise rejection",n)}function l(t,n,o,i){return function(e){t(n,o,e,i)}}function u(e,t,n,o){t.done||(t.done=!0,o&&(t=o),t.value=n,t.state=2,r(e,t,!0))}var o,i,s,c,f=n(5),d=n(43),p=n(8),h=n(36),v=n(109),m=n(53),g=n(110),y=n(37),w=n(111),x=n(13),_=n(41),E=n(83),b=n(34),C=n(102),S=n(66),M=n(115),D=n(116),k=n(117).set,N=n(176),T=n(119),B=n(177),I=n(85),R=n(120),P=n(42),H=n(101),F=n(10),L=n(86),Q=F("species"),O="Promise",U=P.get,j=P.set,Y=P.getterFor(O),z=v,$=p.TypeError,V=p.document,G=p.process,J=h("fetch"),K=I.f,W=K,q="process"==b(G),X=!!(V&&V.createEvent&&p.dispatchEvent),Z="unhandledrejection",H=H(O,function(){if(!(C(z)!==String(z))){if(66===L)return!0;if(!q&&"function"!=typeof PromiseRejectionEvent)return!0}if(d&&!z.prototype.finally)return!0;if(51<=L&&/native code/.test(z))return!1;function e(e){e(function(){},function(){})}var t=z.resolve(1);return(t.constructor={})[Q]=e,!(t.then(function(){})instanceof e)}),M=H||!M(function(e){z.all(e).catch(function(){})}),ee=function(o,i){k.call(p,function(){var e,t=i.value,n=te(i);if(n&&(e=R(function(){q?G.emit("unhandledRejection",t,o):a(Z,o,t)}),i.rejection=q||te(i)?2:1,e.error))throw e.value})},te=function(e){return 1!==e.rejection&&!e.parent},ne=function(e,t){k.call(p,function(){q?G.emit("rejectionHandled",e):a("rejectionhandled",e,t.value)})},oe=function(n,o,e,t){if(!o.done){o.done=!0,t&&(o=t);try{if(n===e)throw $("Promise can't be resolved itself");var i=A(e);i?N(function(){var t={done:!1};try{i.call(e,l(oe,n,t,o),l(u,n,t,o))}catch(e){u(n,t,e,o)}}):(o.value=e,o.state=1,r(n,o,!1))}catch(e){u(n,{done:!1},e,o)}}};H&&(z=function(e){E(this,z,O),_(e),o.call(this);var t=U(this);try{e(l(oe,this,t),l(u,this,t))}catch(e){u(this,t,e)}},(o=function(){j(this,{type:O,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=g(z.prototype,{then:function(e,t){var n=Y(this),o=K(D(this,z));return o.ok="function"!=typeof e||e,o.fail="function"==typeof t&&t,o.domain=q?G.domain:void 0,n.parent=!0,n.reactions.push(o),0!=n.state&&r(this,n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new o,t=U(e);this.promise=e,this.resolve=l(oe,e,t),this.reject=l(u,e,t)},I.f=K=function(e){return e===z||e===s?new i:W(e)},d||"function"!=typeof v||(c=v.prototype.then,m(v.prototype,"then",function(e,t){var n=this;return new z(function(e,t){c.call(n,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof J&&f({global:!0,enumerable:!0,forced:!0},{fetch:function(){return T(z,J.apply(p,arguments))}}))),f({global:!0,wrap:!0,forced:H},{Promise:z}),y(z,O,!1,!0),w(O),s=h(O),f({target:O,stat:!0,forced:H},{reject:function(e){var t=K(this);return t.reject.call(void 0,e),t.promise}}),f({target:O,stat:!0,forced:d||H},{resolve:function(e){return T(d&&this===s?z:this,e)}}),f({target:O,stat:!0,forced:M},{all:function(e){var l=this,t=K(l),u=t.resolve,s=t.reject,n=R(function(){var o=_(l.resolve),i=[],r=0,a=1;S(e,function(e){var t=r++,n=!1;i.push(void 0),a++,o.call(l,e).then(function(e){n||(n=!0,i[t]=e,--a||u(i))},s)}),--a||u(i)});return n.error&&s(n.value),t.promise},race:function(e){var n=this,o=K(n),i=o.reject,t=R(function(){var t=_(n.resolve);S(e,function(e){t.call(n,e).then(o.resolve,i)})});return t.error&&i(t.value),o.promise}})},function(e,t,n){var o,i,r,a,l,u,s,c,f=n(8),d=n(71).f,p=n(34),h=n(117).set,A=n(118),v=f.MutationObserver||f.WebKitMutationObserver,m=f.process,n=f.Promise,g="process"==p(m),d=d(f,"queueMicrotask"),d=d&&d.value;d||(o=function(){var e,t;for(g&&(e=m.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():r=void 0,e}}r=void 0,e&&e.enter()},a=g?function(){m.nextTick(o)}:v&&!A?(l=!0,u=document.createTextNode(""),new v(o).observe(u,{characterData:!0}),function(){u.data=l=!l}):n&&n.resolve?(s=n.resolve(void 0),c=s.then,function(){c.call(s,o)}):function(){h.call(f,o)}),e.exports=d||function(e){e={fn:e,next:void 0};r&&(r.next=e),i||(i=e,a()),r=e}},function(e,t,n){var o=n(8);e.exports=function(e,t){var n=o.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){"use strict";var o=n(5),s=n(41),i=n(85),r=n(120),c=n(66);o({target:"Promise",stat:!0},{allSettled:function(e){var l=this,t=i.f(l),u=t.resolve,n=t.reject,o=r(function(){var o=s(l.resolve),i=[],r=0,a=1;c(e,function(e){var t=r++,n=!1;i.push(void 0),a++,o.call(l,e).then(function(e){n||(n=!0,i[t]={status:"fulfilled",value:e},--a||u(i))},function(e){n||(n=!0,i[t]={status:"rejected",reason:e},--a||u(i))})}),--a||u(i)});return o.error&&n(o.value),t.promise}})},function(e,t,n){"use strict";var o=n(5),i=n(43),r=n(109),a=n(11),l=n(36),u=n(116),s=n(119),n=n(53);o({target:"Promise",proto:!0,real:!0,forced:!!r&&a(function(){r.prototype.finally.call({then:function(){}},function(){})})},{finally:function(t){var n=u(this,l("Promise")),e="function"==typeof t;return this.then(e?function(e){return s(n,t()).then(function(){return e})}:t,e?function(e){return s(n,t()).then(function(){throw e})}:t)}}),i||"function"!=typeof r||r.prototype.finally||n(r.prototype,"finally",l("Promise").prototype.finally)},function(e,t,n){n(54);var o=n(181),i=n(65),r=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===r||e instanceof Array&&t===r.forEach||a.hasOwnProperty(i(e))?o:t}},function(e,t,n){n=n(182);e.exports=n},function(e,t,n){n(183);n=n(15);e.exports=n("Array").forEach},function(e,t,n){"use strict";var o=n(5),n=n(184);o({target:"Array",proto:!0,forced:[].forEach!=n},{forEach:n})},function(e,t,n){"use strict";var o=n(32).forEach,i=n(67),n=n(22),i=i("forEach"),n=n("forEach");e.exports=i&&n?[].forEach:function(e,t){return o(this,e,1>>0||(a.test(e)?16:10))}:r},function(e,t,n){n=n(262);e.exports=n},function(e,t,n){var o=n(263),i=Array.prototype;e.exports=function(e){var t=e.slice;return e===i||e instanceof Array&&t===i.slice?o:t}},function(e,t,n){n(264);n=n(15);e.exports=n("Array").slice},function(e,t,n){"use strict";var o=n(5),s=n(13),c=n(55),f=n(79),d=n(35),p=n(30),h=n(69),i=n(10),r=n(56),n=n(22),r=r("slice"),n=n("slice",{ACCESSORS:!0,0:0,1:2}),A=i("species"),v=[].slice,m=Math.max;o({target:"Array",proto:!0,forced:!r||!n},{slice:function(e,t){var n,o,i,r=p(this),a=d(r.length),l=f(e,a),u=f(void 0===t?a:t,a);if(c(r)&&(("function"==typeof(n=r.constructor)&&(n===Array||c(n.prototype))||s(n)&&null===(n=n[A]))&&(n=void 0),n===Array||void 0===n))return v.call(r,l,u);for(o=new(void 0===n?Array:n)(m(u-l,0)),i=0;l​"),t.cmd.do("insertElem",e),this.createRangeByElem(e,!0))}catch(e){}},s.prototype.createRangeByElems=function(e,t){var n=(window.getSelection?window:document).getSelection();null!=n&&n.removeAllRanges();n=document.createRange();n.setStart(e,0),n.setEnd(t,t.childNodes.length||1),this.saveRange(n),this.restoreSelection()},s.prototype.createRangeByElem=function(e,t,n){var o;e.length&&(o=e.elems[0],e=document.createRange(),n?e.selectNodeContents(o):e.selectNode(o),null!=t&&(e.collapse(t),t||(this.saveRange(e),this.editor.selection.moveCursor(o))),this.saveRange(e))},s.prototype.getSelectionRangeTopNodes=function(){var e=null===(t=this.getSelectionStartElem())||void 0===t?void 0:t.getNodeTop(this.editor),t=null===(t=this.getSelectionEndElem())||void 0===t?void 0:t.getNodeTop(this.editor);return this.recordSelectionNodes(l.default(e),l.default(t))},s.prototype.moveCursor=function(e,t){var n=this.getRange(),o=3===e.nodeType?null===(o=e.nodeValue)||void 0===o?void 0:o.length:e.childNodes.length;(a.UA.isFirefox||a.UA.isIE())&&0!==o&&(3!==e.nodeType&&"BR"!==e.childNodes[o-1].nodeName||--o);o=null!=t?t:o;n&&e&&(n.setStart(e,o),n.setEnd(e,o),this.restoreSelection())},s.prototype.getCursorPos=function(){var e=window.getSelection();return null==e?void 0:e.anchorOffset},s.prototype.clearWindowSelectionRange=function(){var e=window.getSelection();e&&e.removeAllRanges()},s.prototype.recordSelectionNodes=function(e,t){var n=[],o=!0;try{for(var i=e,r=this.editor.$textElem;o;){var a=null==i?void 0:i.getNodeTop(this.editor);"BODY"===a.getNodeName()&&(o=!1),0<\/p>/gim,"")).replace(A.EMPTY_P_LAST_REGEX,"")).replace(A.EMPTY_P_REGEX,"

      ")).match(/<(img|br|hr|input)[^>]*>/gi);return null!==i&&(0,a.default)(i).call(i,function(e){e.match(/\/>/)||(o=o.replace(e,e.substring(0,e.length-1)+"/>"))}),o}""===(e=(0,l.default)(e).call(e))&&(e=A.EMPTY_P),0!==(0,u.default)(e).call(e,"<")&&(e="

      "+e+"

      "),n.html(e),t.initSelection()},v.prototype.setJSON=function(e){var t=h.default(e).children(),e=this.editor.$textElem;t&&e.replaceChildAll(t)},v.prototype.getJSON=function(){var e=this.editor.$textElem;return p.default(e)},v.prototype.text=function(e){var t=this.editor,n=t.$textElem;if(null==e)return n.text().replace(/\u200b/gm,"");n.text("

      "+e+"

      "),t.initSelection()},v.prototype.append=function(e){var t=this.editor;0!==(0,u.default)(e).call(e,"<")&&(e="

      "+e+"

      "),this.html(this.html()+e),t.initSelection()},v.prototype._saveRange=function(){var t=this.editor,n=t.$textElem,e=c.default(document);function o(){t.selection.saveRange(),t.menus.changeActive()}function i(){o(),e.off("mouseup",i)}function r(){e.on("mouseup",i),n.off("mouseleave",r)}n.on("keyup",o),n.on("click",function e(){o(),n.off("click",e)}),n.on("mousedown",function(){n.on("mouseleave",r)}),n.on("mouseup",function(e){n.off("mouseleave",r),(0,s.default)(function(){null!==t.selection.getRange()&&o()},0)})},v.prototype._bindEventHooks=function(){var o=this.editor,e=o.$textElem,i=this.eventHooks;function t(e){e.preventDefault()}e.on("click",function(t){var e=i.clickEvents;(0,a.default)(e).call(e,function(e){return e(t)})}),e.on("keyup",function(t){var e;13===t.keyCode&&(e=i.enterUpEvents,(0,a.default)(e).call(e,function(e){return e(t)}))}),e.on("keyup",function(t){var e=i.keyupEvents;(0,a.default)(e).call(e,function(e){return e(t)})}),e.on("keydown",function(t){var e=i.keydownEvents;(0,a.default)(e).call(e,function(e){return e(t)})}),e.on("keyup",function(t){var e;8!==t.keyCode&&46!==t.keyCode||(e=i.deleteUpEvents,(0,a.default)(e).call(e,function(e){return e(t)}))}),e.on("keydown",function(t){var e;8!==t.keyCode&&46!==t.keyCode||(e=i.deleteDownEvents,(0,a.default)(e).call(e,function(e){return e(t)}))}),e.on("paste",function(t){var e;d.UA.isIE()||(t.preventDefault(),e=i.pasteEvents,(0,a.default)(e).call(e,function(e){return e(t)}))}),e.on("keydown",function(e){(o.isFocus||o.isCompatibleMode)&&(e.ctrlKey||e.metaKey)&&90===e.keyCode&&(e.preventDefault(),e.shiftKey?o.history.restore():o.history.revoke())}),e.on("keyup",function(t){var e;9===t.keyCode&&(t.preventDefault(),e=i.tabUpEvents,(0,a.default)(e).call(e,function(e){return e(t)}))}),e.on("keydown",function(t){var e;9===t.keyCode&&(t.preventDefault(),e=i.tabDownEvents,(0,a.default)(e).call(e,function(e){return e(t)}))}),e.on("scroll",d.throttle(function(t){var e=i.textScrollEvents;(0,a.default)(e).call(e,function(e){return e(t)})},100)),c.default(document).on("dragleave",t).on("drop",t).on("dragenter",t).on("dragover",t),o.beforeDestroy(function(){c.default(document).off("dragleave",t).off("drop",t).off("dragenter",t).off("dragover",t)}),e.on("drop",function(t){t.preventDefault();var e=i.dropEvents;(0,a.default)(e).call(e,function(e){return e(t)})}),e.on("click",function(e){var t,n=null,e=e.target,e=c.default(e);"A"===e.getNodeName()?n=e:null!=(t=e.parentUntil("a"))&&(n=t),n&&(t=i.linkClickEvents,(0,a.default)(t).call(t,function(e){return e(n)}))}),e.on("click",function(e){var t=null,n=e.target,n=c.default(n);"IMG"!==n.getNodeName()||n.elems[0].getAttribute("data-emoji")||(e.stopPropagation(),t=n),t&&(n=i.imgClickEvents,(0,a.default)(n).call(n,function(e){return e(t)}))}),e.on("click",function(e){var t,n=null,e=e.target,e=c.default(e);"PRE"===e.getNodeName()?n=e:null!==(t=e.parentUntil("pre"))&&(n=t),n&&(t=i.codeClickEvents,(0,a.default)(t).call(t,function(e){return e(n)}))}),e.on("click",function(e){var t=null,e=e.target,e=c.default(e);"HR"===e.getNodeName()&&(t=e),t&&(o.selection.createRangeByElem(t),o.selection.restoreSelection(),e=i.splitLineEvents,(0,a.default)(e).call(e,function(e){return e(t)}))}),o.$toolbarElem.on("click",function(t){var e=i.toolbarClickEvents;(0,a.default)(e).call(e,function(e){return e(t)})}),o.$textContainerElem.on("mousedown",function(e){e=e.target;c.default(e).hasClass("w-e-img-drag-rb")&&(e=i.imgDragBarMouseDownEvents,(0,a.default)(e).call(e,function(e){return e()}))}),e.on("click",function(t){var n=null,e=t.target;(n=c.default(e).parentUntilEditor("TABLE",o,e))&&(e=i.tableClickEvents,(0,a.default)(e).call(e,function(e){return e(n,t)}))}),e.on("keydown",function(t){var e;13===t.keyCode&&(e=i.enterDownEvents,(0,a.default)(e).call(e,function(e){return e(t)}))}),e.on("click",function(e){var t=null,n=e.target,n=c.default(n);"VIDEO"===n.getNodeName()&&(e.stopPropagation(),t=n),t&&(n=i.videoClickEvents,(0,a.default)(n).call(n,function(e){return e(t)}))})},v);function v(e){this.editor=e,this.eventHooks={onBlurEvents:[],changeEvents:[],dropEvents:[],clickEvents:[],keydownEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[],videoClickEvents:[]}}t.default=n},function(e,t,n){n=n(284);e.exports=n},function(e,t,n){var o=n(285),i=Array.prototype;e.exports=function(e){var t=e.find;return e===i||e instanceof Array&&t===i.find?o:t}},function(e,t,n){n(286);n=n(15);e.exports=n("Array").find},function(e,t,n){"use strict";var o=n(5),i=n(32).find,r=n(82),a=n(22),n="find",l=!0,a=a(n);n in[]&&Array(1).find(function(){l=!1}),o({target:"Array",proto:!0,forced:l||!a},{find:function(e,t){return i(this,e,1
      "!==n.html()&&("FONT"!==t.getNodeName()||""!==t.text()||"monospace"!==t.attr("face"))?n.equal(e)&&("P"===t.getNodeName()&&null===t.attr("data-we-empty-p")||t.text()||i(t)):i(n)}),t.push(function(e){var t;o.selection.saveRange(null===(t=getSelection())||void 0===t?void 0:t.getRangeAt(0)),o.selection.getSelectionContainerElem().id===o.textElemId&&(e.preventDefault(),o.cmd.do("insertHTML","


      "))})}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(17)),a=o(n(28));(0,i.default)(t,"__esModule",{value:!0}),t.cutToKeepP=void 0;var i=n(2),l=n(7),u=i.__importDefault(n(3));t.cutToKeepP=function(n,e){e.push(function(e){var t;88===e.keyCode&&(t=n.$textElem,(e=(0,r.default)(e=t.html().toLowerCase()).call(e))&&"
      "!==e||(e=u.default(l.EMPTY_P),t.html(" "),t.append(e),n.selection.createRangeByElem(e,!1,!0),n.selection.restoreSelection(),n.selection.moveCursor(e.getNode(),0)))})},t.default=function(i,e,t){e.push(function(){var e=i.$textElem,t=i.$textElem.html(),n=i.$textElem.text(),o=(0,r.default)(t).call(t),t=["


      ","
      ",'

      ',l.EMPTY_P];!/^\s*$/.test(n)||o&&!(0,a.default)(t).call(t,o)||(e.html(l.EMPTY_P),e=e.getNode(),i.selection.createRangeByElems(e.childNodes[0],e.childNodes[0]),e=i.selection.getSelectionContainerElem(),i.selection.restoreSelection(),i.selection.moveCursor(e.getNode(),0))}),t.push(function(e){var t=i.$textElem;(0,r.default)(t=t.html().toLowerCase()).call(t)===l.EMPTY_P&&e.preventDefault()})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(n,e){e.push(function(){var e,t;!n.cmd.queryCommandSupported("insertHTML")||(e=n.selection.getSelectionContainerElem())&&(t=e.parent(),e=e.getNodeName(),t=t.getNodeName(),"CODE"==e||"CODE"===t||"PRE"===t||/hljs/.test(t)?n.cmd.do("insertHTML",n.config.languageTab):n.cmd.do("insertHTML","    "))})}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(17)),h=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var A=n(131),v=n(6),m=n(7);function g(e){var e=(0,r.default)(t=e.replace(/
      /gim,"

      ").replace(/<\/div>/gim,"

      ")).call(t),t=document.createElement("div");return t.innerHTML=e,t.innerHTML.replace(/

      <\/p>/gim,"")}t.default=function(p,e){e.push(function(e){var t=p.config,n=t.pasteFilterStyle,o=t.pasteIgnoreImg,i=t.pasteTextHandle,r=A.getPasteHtml(e,n,o),a=(a=A.getPasteText(e)).replace(/\n/gm,"
      "),l=p.selection.getSelectionContainerElem();if(l){var o=null==l?void 0:l.getNodeName(),u=null==l?void 0:l.getNodeTop(p),e="";if(u.elems[0]&&(e=null==u?void 0:u.getNodeName()),"CODE"===o||"PRE"===e)return i&&v.isFunction(i)&&(a=""+(i(a)||"")),void p.cmd.do("insertHTML",a.replace(/
      |/gm,"\n").replace(/<[^>]+>/gm,""));if(m.urlRegex.test(a)&&n){i&&v.isFunction(i)&&(a=""+(i(a)||""));var o=a.replace(m.urlRegex,function(e){return''+e+""}),e=p.selection.getRange(),s=document.createElement("div"),c=document.createDocumentFragment();if(s.innerHTML=o,null==e)return;for(;s.childNodes.length;)c.append(s.childNodes[0]);o=c.querySelectorAll("a");return(0,h.default)(o).call(o,function(e){e.innerText=e.href}),e.insertNode&&(e.deleteContents(),e.insertNode(c)),void p.selection.clearWindowSelectionRange()}if(r)try{if(i&&v.isFunction(i)&&(r=""+(i(r)||"")),/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(r)&&n)p.cmd.do("insertHTML",""+g(a));else{var f=g(r);if(function(e){if(""!==e){var t=document.createElement("div");return t.innerHTML=e,"P"===(null===(t=t.firstChild)||void 0===t?void 0:t.nodeName)}}(f)){var d=p.$textElem;if(p.cmd.do("insertHTML",f),d.equal(l))return void p.selection.createEmptyRange();!function(e){if(null!=e&&e.length){e=e.elems[0];return"P"===e.nodeName&&"
      "===e.innerHTML}}(u)||u.remove()}else p.cmd.do("insertHTML",f)}}catch(e){i&&v.isFunction(i)&&(a=""+(i(a)||"")),p.cmd.do("insertHTML",""+g(a))}}})}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(17)),c=o(n(4)),f=o(n(28));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),d=n(293),p=i.__importDefault(n(297));function h(e,t){var n;return e=(0,r.default)(n=e.toLowerCase()).call(n),d.IGNORE_TAGS.has(e)?1:!(!t||"img"!==e)}t.default=function(e,a,l){void 0===a&&(a=!0),void 0===l&&(l=!1);var u=[],t="";function s(e){(e=(0,r.default)(e).call(e))&&(d.EMPTY_TAGS.has(e)||(t=e))}(new p.default).parse(e,{startElement:function(e,t){var n,o,i,r;s(e),h(e,l)||(n=d.NECESSARY_ATTRS.get(e)||[],o=[],(0,c.default)(t).call(t,function(e){var t=e.name;"style"!==t?!1!==(0,f.default)(n).call(n,t)&&o.push(e):a||o.push(e)}),i=o,t="",t="<"+(e=e),r=[],(0,c.default)(i).call(i,function(e){r.push(e.name+'="'+e.value+'"')}),0",u.push(t))},characters:function(e){e&&(h(t,l)||u.push(e))},endElement:function(e){h(e,l)||(e="",u.push(e),t="")},comment:function(e){s(e)}});var n,e=u.join("");return n=/(.*?)<\/span>/,e=e.replace(/.*?<\/span>/gi,function(e){e=e.match(n);return null==e?"":e[1]})}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(132)),n=o(n(121));(0,i.default)(t,"__esModule",{value:!0}),t.TOP_LEVEL_TAGS=t.EMPTY_TAGS=t.NECESSARY_ATTRS=t.IGNORE_TAGS=void 0,t.IGNORE_TAGS=new r.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),t.NECESSARY_ATTRS=new n.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),t.EMPTY_TAGS=new r.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),t.TOP_LEVEL_TAGS=new r.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(e,t,n){n=n(295);e.exports=n},function(e,t,n){n(296),n(61),n(50),n(54);n=n(9);e.exports=n.Set},function(e,t,n){"use strict";var o=n(122),n=n(124);e.exports=o("Set",function(t){return function(e){return t(this,arguments.length?e:void 0)}},n)},function(e,t){function n(){}n.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(e,t){t&&(this.contentHandler=t);for(var n,o,i,r=!1,a=this;0\n

      \n
      \n
      \n
      ');l.css("visibility","hidden"),r.append(l),l.css("z-index",i.zIndex.get("tooltip"));var u=0;function s(){u&&clearTimeout(u)}function c(){s(),l.css("visibility","hidden")}r.on("mouseover",function(e){var t,n,o,e=e.target,e=v.default(e);e.isContain(r)?c():(null!=e.parentUntil(".w-e-droplist")?c():e.attr("data-title")?(o=e.attr("data-title"),n=e):null!=(t=e.parentUntil(".w-e-menu"))&&(o=t.attr("data-title"),n=t),o&&n?(s(),t=n.getOffsetData(),l.text(i.i18next.t("menus.title."+o)),n=l.getOffsetData(),o=t.left+t.width/2-n.width/2,l.css("left",o+"px"),"up"===a?l.css("top",t.top-n.height-8+"px"):"down"===a&&l.css("top",t.top+t.height+8+"px"),u=(0,h.default)(function(){l.css("visibility","visible")},200)):c())}).on("mouseleave",function(){c()})},m.prototype._addToToolbar=function(){var e,t=this.editor.$toolbarElem;(0,d.default)(e=this.menuList).call(e,function(e){e=e.$elem;e&&t.append(e)})},m.prototype.menuFind=function(e){for(var t=this.menuList,n=0,o=t.length;n\n \n ');return o.call(this,t,e)||this}t.default=i},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(27)),a=o(n(29)),d=o(n(4)),l=o(n(317)),u=o(n(28));(0,i.default)(t,"__esModule",{value:!0});var s,o=n(2),i=o.__importDefault(n(24)),p=o.__importDefault(n(3)),c=n(6),h=n(7),o=(s=i.default,o.__extends(f,s),f.prototype.command=function(e){var t,n=this.editor,o=n.selection.getSelectionContainerElem();if(o&&n.$textElem.equal(o))this.setMultilineHead(e);else{if(-1<(0,r.default)(t=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(t,p.default(o).getNodeName()))return;n.cmd.do("formatBlock",e)}"

      "!==e&&this.addUidForSelectionElem()},f.prototype.addUidForSelectionElem=function(){var e=this.editor.selection.getSelectionContainerElem(),t=c.getRandomCode();p.default(e).attr("id",t)},f.prototype.addListenerCatalog=function(){var e=this;this.editor.txt.eventHooks.changeEvents.push(function(){e.getCatalogs()})},f.prototype.getCatalogs=function(){var e=this.editor,t=this.editor.$textElem,e=e.config.onCatalogChange,t=(0,a.default)(t).call(t,"h1,h2,h3,h4,h5"),r=[];(0,d.default)(t).call(t,function(e,t){var n=p.default(e),o=n.attr("id"),i=n.getNodeName(),e=n.text();o||(o=c.getRandomCode(),n.attr("id",o)),e&&r.push({tag:i,id:o,text:e})}),(0,l.default)(this.oldCatalogs)!==(0,l.default)(r)&&(this.oldCatalogs=r,e&&e(r))},f.prototype.setMultilineHead=function(i){var r=this,n=this.editor,e=n.selection,t=null===(o=e.getSelectionContainerElem())||void 0===o?void 0:o.elems[0],a=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],o=p.default(e.getSelectionStartElem()),l=p.default(e.getSelectionEndElem());l.elems[0].outerHTML!==p.default(h.EMPTY_P).elems[0].outerHTML||l.elems[0].nextSibling||(l=l.prev());var u=[];u.push(o.getNodeTop(n));var s=[],o=null===(o=e.getRange())||void 0===o?void 0:o.commonAncestorContainer.childNodes;null!=o&&(0,d.default)(o).call(o,function(e,t){e===u[0].getNode()&&s.push(t),e===l.getNodeTop(n).getNode()&&s.push(t)});for(var c=0;u[c].getNode()!==l.getNodeTop(n).getNode();){if(!u[c].elems[0])return;var f=p.default(u[c].next().getNode());u.push(f),c++}null!=u&&(0,d.default)(u).call(u,function(e,t){var n,o;r.hasTag(e,a)||(n=p.default(i),o=e.parent().getNode(),n.html(""+e.html()),o.insertBefore(n.getNode(),e.getNode()),e.remove())}),e.createRangeByElems(t.children[s[0]],t.children[s[1]])},f.prototype.hasTag=function(e,t){var n=this;if(!e)return!1;if((0,u.default)(t).call(t,null==e?void 0:e.getNodeName()))return!0;var o=!1;return null!==(e=e.children())&&void 0!==e&&(0,d.default)(e).call(e,function(e){o=n.hasTag(p.default(e),t)}),o},f.prototype.tryChangeActive=function(){var e=this.editor.cmd.queryCommandValue("formatBlock");/^h/i.test(e)?this.active():this.unActive()},f);function f(e){var t=this,n=p.default('

      '),o={width:100,title:"设置标题",type:"list",list:[{$elem:p.default("

      H1

      "),value:"

      "},{$elem:p.default("

      H2

      "),value:"

      "},{$elem:p.default("

      H3

      "),value:"

      "},{$elem:p.default("

      H4

      "),value:"

      "},{$elem:p.default("

      H5
      "),value:"
      "},{$elem:p.default("

      "+e.i18next.t("menus.dropListMenu.head.正文")+"

      "),value:"

      "}],clickHandler:function(e){t.command(e)}},t=s.call(this,n,e,o)||this;return e.config.onCatalogChange&&(t.oldCatalogs=[],t.addListenerCatalog(),t.getCatalogs()),t}t.default=o},function(e,t,n){e.exports=n(318)},function(e,t,n){n=n(319);e.exports=n},function(e,t,n){n(320);var o=n(9);o.JSON||(o.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return o.JSON.stringify.apply(null,arguments)}},function(e,t,n){function i(e,t,n){var o=n.charAt(t-1),t=n.charAt(t+1);return u.test(e)&&!s.test(t)||s.test(e)&&!u.test(o)?"\\u"+e.charCodeAt(0).toString(16):e}var o=n(5),r=n(36),n=n(11),a=r("JSON","stringify"),l=/[\uD800-\uDFFF]/g,u=/^[\uD800-\uDBFF]$/,s=/^[\uDC00-\uDFFF]$/,n=n(function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")});a&&o({target:"JSON",stat:!0,forced:n},{stringify:function(e,t,n){var o=a.apply(null,arguments);return"string"==typeof o?o.replace(l,i):o}})},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(17));(0,i.default)(t,"__esModule",{value:!0});var a,o=n(2),i=o.__importDefault(n(38)),l=o.__importDefault(n(3)),u=o.__importDefault(n(322)),s=o.__importStar(n(96)),c=o.__importDefault(n(33)),f=o.__importDefault(n(324)),d=n(7),o=(a=i.default,o.__extends(p,a),p.prototype.clickHandler=function(){var e,t=this.editor,n=t.selection.getSelectionContainerElem(),o=t.$textElem,i=o.html();(0,r.default)(i).call(i)===d.EMPTY_P&&(e=o.children(),t.selection.createRangeByElem(e,!0,!0),n=t.selection.getSelectionContainerElem()),n&&t.$textElem.equal(n)||(this.isActive?(o=i="",(e=t.selection.getSelectionContainerElem())&&("A"!==e.getNodeName()&&(n=s.getParentNodeA(e),e=l.default(n)),i=e.elems[0].innerText,o=e.attr("href"),this.createPanel(i,o))):t.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(t.selection.getSelectionText(),""))},p.prototype.createPanel=function(e,t){t=u.default(this.editor,e,t);new c.default(this,t).create()},p.prototype.tryChangeActive=function(){var e=this.editor;s.default(e)?this.active():this.unActive()},p);function p(e){var t=l.default('

      '),n=a.call(this,t,e)||this;return f.default(e),n}t.default=o},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),h=o(n(28)),A=o(n(17)),a=o(n(29));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),l=n(6),v=i.__importDefault(n(3)),m=i.__importStar(n(96)),g=n(323);t.default=function(c,i,r){var o,f=l.getRandom("input-link"),d=l.getRandom("input-text"),e=l.getRandom("btn-ok"),t=l.getRandom("btn-del"),n=m.default(c)?"inline-block":"none";function p(){var e;!m.default(c)||(e=c.selection.getSelectionContainerElem())&&(c.selection.createRangeByElem(e),c.selection.restoreSelection(),o=e)}return{width:300,height:0,tabs:[{title:c.i18next.t("menus.panelMenus.link.链接"),tpl:'
      \n \n \n \n \n
      \n \n \n
      \n
      ",events:[{selector:"#"+e,type:"click",fn:function(){var e=c.selection.getSelectionContainerElem(),t=null==e?void 0:e.elems[0];c.selection.restoreSelection();var n=c.selection.getSelectionRangeTopNodes()[0].getNode(),o=window.getSelection(),i=v.default("#"+f),r=v.default("#"+d),i=(0,A.default)(a=i.val()).call(a),r=(0,A.default)(a=r.val()).call(a),a="";!o||null!=o&&o.isCollapsed||(a=null===(l=g.insertHtml(o,n))||void 0===l?void 0:(0,A.default)(l).call(l));var l,u,n=null==a?void 0:a.replace(/<.*?>/g,""),a=null!==(l=null==n?void 0:n.length)&&void 0!==l?l:0;if(a<=r.length&&(l=r.substring(0,a),u=r.substring(a),n===l&&(r=n+u)),i&&function(e,t){if(t=c.config.linkCheck(e,t),void 0!==t){if(!0===t)return 1;c.config.customAlert(t,"warning")}}(r=r||i,i)){if("A"===(null==t?void 0:t.nodeName))return t.setAttribute("href",i),t.innerText=r,!0;if("A"!==(null==t?void 0:t.nodeName)&&(0,h.default)(u=m.EXTRA_TAG).call(u,t.nodeName)){var s=m.getParentNodeA(e);if(s)return s.setAttribute("href",i),t.innerText=r,!0}return s=i,i=(t=r).replace(//g,">"),r=v.default(''+i+""),(i=r.elems[0]).innerText=t,i.href=s,m.default(c)&&p(),c.cmd.do("insertElem",r),!0}},bindEnter:!0},{selector:"#"+t,type:"click",fn:function(){var e,t,n;return m.default(c)&&(p(),"A"===o.getNodeName()?(t=(n=o.elems[0]).parentElement)&&(0,h.default)(e=m.EXTRA_TAG).call(e,t.nodeName)?t.innerHTML=n.innerHTML:c.cmd.do("insertHTML",""+n.innerHTML+""):(n=m.getParentNodeA(o).innerHTML,c.cmd.do("insertHTML",""+n+""))),!0}}]}],setLinkValue:function(e,t){var n="",o="";"text"===t&&(n="#"+d,o=i),"link"===t&&(n="#"+f,o=r),(0,a.default)(e).call(e,n).elems[0].value=o}}}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(4));function p(e,t){for(var n=e,o=e;n.textContent!==t&&((o=n).parentNode&&(n=null==n?void 0:n.parentNode),"P"!==(null==n?void 0:n.nodeName)););return o}function h(e,t){var n,o=e.nodeName,i="";return 3===e.nodeType||/^(h|H)[1-6]$/.test(o)?t:(1===e.nodeType&&((n=e.getAttribute("style"))&&(i=i+' style="'+n+'"'),(n=e.getAttribute("face"))&&(i=i+' face="'+n+'"'),(e=e.getAttribute("color"))&&(i=i+' color="'+e+'"')),"<"+(o=o.toLowerCase())+i+">"+t+"")}function A(e,t,n,o){for(var i,r=null===(i=t.textContent)||void 0===i?void 0:i.substring(n,o),a=t,l="";r=l=h(a,null!=r?r:""),a=null==a?void 0:a.parentElement,a&&a.textContent!==e;);return l}function v(e,t){return(0,r.default)(e).call(e,function(e){t=h(e,t)}),t}(0,i.default)(t,"__esModule",{value:!0}),t.insertHtml=t.createPartHtml=t.makeHtmlString=t.getTopNode=void 0,t.getTopNode=p,t.makeHtmlString=h,t.createPartHtml=A,t.insertHtml=function(e,t){var n=e.anchorNode,o=e.focusNode,i=e.anchorOffset,r=e.focusOffset,a=null!==(s=t.textContent)&&void 0!==s?s:"",l=function(e){var t,n=null!==(t=e.textContent)&&void 0!==t?t:"",o=[];for(;(null==e?void 0:e.textContent)===n;)"P"!==e.nodeName&&"TABLE"!==e.nodeName&&o.push(e),e=e.childNodes[0];return o}(t),e="",u="",s="",t=n,c=o,f=n;if(null!=n&&n.isEqualNode(null!=o?o:null))return v(l,A(a,n,i,r));for(n&&(e=A(a,n,null!=i?i:0)),o&&(s=A(a,o,0,r)),n&&(t=p(n,a)),o&&(c=p(o,a)),f=null!==(t=null==t?void 0:t.nextSibling)&&void 0!==t?t:n;null==f||!f.isEqualNode(null!=c?c:null);){"#text"===(null==f?void 0:f.nodeName)?u+=null==f?void 0:f.textContent:(d=null===(d=null===(d=null==f?void 0:f.firstChild)||void 0===d?void 0:d.parentElement)||void 0===d?void 0:d.innerHTML,f&&(u+=h(f,null!=d?d:"")));var d=null!==(d=null==f?void 0:f.nextSibling)&&void 0!==d?d:f;if(d===f)break;f=d}return v(l,""+e+u+s)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(325));t.default=function(e){o.default(e)}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(28));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),a=i.__importDefault(n(3)),l=i.__importDefault(n(39)),u=n(96);function s(n){var o;return{showLinkTooltip:function(e){var t=[{$elem:a.default(""+n.i18next.t("menus.panelMenus.link.查看链接")+""),onClick:function(e,t){t=t.attr("href");return window.open(t,"_target"),!0}},{$elem:a.default(""+n.i18next.t("menus.panelMenus.link.取消链接")+""),onClick:function(e,t){e.selection.createRangeByElem(t),e.selection.restoreSelection();var n,o,i=t.childNodes();return"IMG"===(null==i?void 0:i.getNodeName())?(o=null===(n=null===(o=e.selection.getSelectionContainerElem())||void 0===o?void 0:o.children())||void 0===n?void 0:n.elems[0].children[0],e.cmd.do("insertHTML","")):(o=(n=t.elems[0]).innerHTML,(t=n.parentElement)&&(0,r.default)(n=u.EXTRA_TAG).call(n,t.nodeName)?t.innerHTML=o:e.cmd.do("insertHTML",""+o+"")),!0}}];(o=new l.default(n,e,t)).create()},hideLinkTooltip:function(){o&&(o.remove(),o=null)}}}t.default=function(e){var t=(n=s(e)).showLinkTooltip,n=n.hideLinkTooltip;e.txt.eventHooks.linkClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(23)),a=i.__importDefault(n(3)),i=(o=r.default,i.__extends(l,o),l.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("italic"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},l.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("italic")?this.active():this.unActive()},l);function l(e){var t=a.default('
      \n \n
      ');return o.call(this,t,e)||this}t.default=i},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(23)),a=i.__importDefault(n(3)),i=(o=r.default,i.__extends(l,o),l.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("underline"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},l.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("underline")?this.active():this.unActive()},l);function l(e){var t=a.default('
      \n \n
      ');return o.call(this,t,e)||this}t.default=i},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(23)),a=i.__importDefault(n(3)),i=(o=r.default,i.__extends(l,o),l.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("strikeThrough"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},l.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},l);function l(e){var t=a.default('
      \n \n
      ');return o.call(this,t,e)||this}t.default=i},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i,o=n(2),r=o.__importDefault(n(24)),a=o.__importDefault(n(3)),l=o.__importDefault(n(330)),o=(i=r.default,o.__extends(u,i),u.prototype.command=function(e){var t,n,o=this.editor,i=o.selection.isSelectionEmpty(),r=null===(n=o.selection.getSelectionContainerElem())||void 0===n?void 0:n.elems[0];null!=r&&(t="p"!==(null==r?void 0:r.nodeName.toLowerCase()),n=(null==r?void 0:r.getAttribute("face"))===e,i&&(t&&!n&&(n=o.selection.getSelectionRangeTopNodes(),o.selection.createRangeByElem(n[0]),o.selection.moveCursor(n[0].elems[0])),o.selection.setRangeToElem(r),o.selection.createEmptyRange()),o.cmd.do("fontName",e),i&&(o.selection.collapseRange(),o.selection.restoreSelection()))},u.prototype.tryChangeActive=function(){},u);function u(e){var t=this,n=a.default('
      \n \n
      '),o={width:100,title:"设置字体",type:"list",list:new l.default(e.config.fontNames).getItemList(),clickHandler:function(e){t.command(e)}};return t=i.call(this,n,e,o)||this}t.default=o},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3)),n=(l.prototype.getItemList=function(){return this.itemList},l);function l(e){var n=this;this.itemList=[],(0,r.default)(e).call(e,function(e){var t="string"==typeof e?e:e.value,e="string"==typeof e?e:e.name;n.itemList.push({$elem:a.default("

      "+e+"

      "),value:e})})}t.default=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i,o=n(2),r=o.__importDefault(n(24)),a=o.__importDefault(n(3)),l=o.__importDefault(n(332)),o=(i=r.default,o.__extends(u,i),u.prototype.command=function(e){var t,n=this.editor,o=n.selection.isSelectionEmpty();null!=(null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0])&&(n.cmd.do("fontSize",e),o&&(n.selection.collapseRange(),n.selection.restoreSelection()))},u.prototype.tryChangeActive=function(){},u);function u(e){var t=this,n=a.default('
      \n \n
      '),o={width:160,title:"设置字号",type:"list",list:new l.default(e.config.fontSizes).getItemList(),clickHandler:function(e){t.command(e)}};return t=i.call(this,n,e,o)||this}t.default=o},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(3)),n=(i.prototype.getItemList=function(){return this.itemList},i);function i(e){for(var t in this.itemList=[],e){var n=e[t];this.itemList.push({$elem:o.default('

      '+n.name+"

      "),value:n.value})}}t.default=n},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(4)),a=o(n(27));(0,i.default)(t,"__esModule",{value:!0});var l,o=n(2),i=o.__importDefault(n(24)),u=o.__importDefault(n(3)),s=["LI"],c=["BLOCKQUOTE"],o=(l=i.default,o.__extends(f,l),f.prototype.command=function(t){var e=this.editor,n=e.selection,o=n.getSelectionContainerElem();n.saveRange();e=e.selection.getSelectionRangeTopNodes();if(null!=o&&o.length)if(this.isSpecialNode(o,e[0])||this.isSpecialTopNode(e[0])){o=this.getSpecialNodeUntilTop(o,e[0]);if(null==o)return;u.default(o).css("text-align",t)}else(0,r.default)(e).call(e,function(e){e.css("text-align",t)});n.restoreSelection()},f.prototype.getSpecialNodeUntilTop=function(e,t){for(var n=e.elems[0],o=t.elems[0];null!=n;){if(-1!==(0,a.default)(s).call(s,null==n?void 0:n.nodeName))return n;if(n.parentNode===o)return n;n=n.parentNode}return n},f.prototype.isSpecialNode=function(e,t){t=this.getSpecialNodeUntilTop(e,t);return null!=t&&-1!==(0,a.default)(s).call(s,t.nodeName)},f.prototype.isSpecialTopNode=function(e){return null!=e&&-1!==(0,a.default)(c).call(c,null===(e=e.elems[0])||void 0===e?void 0:e.nodeName)},f.prototype.tryChangeActive=function(){},f);function f(e){var t=this,n=u.default('
      '),o={width:100,title:"对齐方式",type:"list",list:[{$elem:u.default('

      \n \n '+e.i18next.t("menus.dropListMenu.justify.靠左")+"\n

      "),value:"left"},{$elem:u.default('

      \n \n '+e.i18next.t("menus.dropListMenu.justify.居中")+"\n

      "),value:"center"},{$elem:u.default('

      \n \n '+e.i18next.t("menus.dropListMenu.justify.靠右")+"\n

      "),value:"right"},{$elem:u.default('

      \n \n '+e.i18next.t("menus.dropListMenu.justify.两端")+"\n

      "),value:"justify"}],clickHandler:function(e){t.command(e)}};return t=l.call(this,n,e,o)||this}t.default=o},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),l=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var r,o=n(2),u=o.__importDefault(n(3)),i=o.__importDefault(n(23)),a=o.__importDefault(n(335)),s=o.__importDefault(n(336)),c=n(7),o=(r=i.default,o.__extends(f,r),f.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty(),n=e.selection.getSelectionRangeTopNodes(),o=n[n.length-1];if("BLOCKQUOTE"!==this.getTopNodeName()){var i=s.default(n);e.$textElem.equal(o)?(r=null===(r=e.selection.getSelectionContainerElem())||void 0===r?void 0:r.elems[0],e.selection.createRangeByElems(r.children[0],r.children[0]),n=e.selection.getSelectionRangeTopNodes(),i=s.default(n),o.append(i)):i.insertAfter(o),this.delSelectNode(n);var r=null===(r=i.childNodes())||void 0===r?void 0:r.last().getNode();return null==r?void 0:(r.textContent?e.selection.moveCursor(r):e.selection.moveCursor(r,0),this.tryChangeActive(),void u.default(c.EMPTY_P).insertAfter(i))}var r=u.default(o.childNodes()),i=r.length,a=o;(0,l.default)(r).call(r,function(e){e=u.default(e);e.insertAfter(a),a=e}),o.remove(),e.selection.moveCursor(r.elems[i-1]),this.tryChangeActive(),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},f.prototype.tryChangeActive=function(){var e;"BLOCKQUOTE"===(null===(e=this.editor.selection.getSelectionRangeTopNodes()[0])||void 0===e?void 0:e.getNodeName())?this.active():this.unActive()},f.prototype.getTopNodeName=function(){var e=this.editor.selection.getSelectionRangeTopNodes()[0];return null==e?void 0:e.getNodeName()},f.prototype.delSelectNode=function(e){(0,l.default)(e).call(e,function(e){e.remove()})},f);function f(e){var t=u.default('
      \n \n
      '),n=r.call(this,t,e)||this;return a.default(e),n}t.default=o},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),r=n(7),a=o.__importDefault(n(3));t.default=function(i){i.txt.eventHooks.enterDownEvents.push(function(e){var t,n=i.selection.getSelectionContainerElem(),o=i.selection.getSelectionRangeTopNodes()[0];"BLOCKQUOTE"===(null==o?void 0:o.getNodeName())&&("BLOCKQUOTE"===n.getNodeName()&&(t=null===(t=n.childNodes())||void 0===t?void 0:t.getNode(),i.selection.moveCursor(t)),""===n.text()&&(e.preventDefault(),n.remove(),(n=a.default(r.EMPTY_P)).insertAfter(o),i.selection.moveCursor(n.getNode(),0)),""===o.text()&&o.remove())})}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));t.default=function(e){var t=a.default("
      ");return(0,r.default)(e).call(e,function(e){t.append(e.clone(!0))}),t}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(26));(0,i.default)(t,"__esModule",{value:!0});var a,o=n(2),i=o.__importDefault(n(24)),l=o.__importDefault(n(3)),u=n(6),o=(a=i.default,o.__extends(s,a),s.prototype.command=function(e){var t,n=this.editor,o=n.selection.isSelectionEmpty(),i=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];null!=i&&(t="p"!==(null==i?void 0:i.nodeName.toLowerCase()),i=null==i?void 0:i.style.backgroundColor,i=u.hexToRgb(e)===i,o&&(t&&!i&&(i=n.selection.getSelectionRangeTopNodes(),n.selection.createRangeByElem(i[0]),n.selection.moveCursor(i[0].elems[0])),n.selection.createEmptyRange()),n.cmd.do("backColor",e),o&&(n.selection.collapseRange(),n.selection.restoreSelection()))},s.prototype.tryChangeActive=function(){},s);function s(e){var t=this,n=l.default('
      \n \n
      '),o={width:120,title:"背景颜色",type:"inline-block",list:(0,r.default)(o=e.config.colors).call(o,function(e){return{$elem:l.default(''),value:e}}),clickHandler:function(e){t.command(e)}};return t=a.call(this,n,e,o)||this}t.default=o},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(26));(0,i.default)(t,"__esModule",{value:!0});var a,o=n(2),i=o.__importDefault(n(24)),l=o.__importDefault(n(3)),o=(a=i.default,o.__extends(u,a),u.prototype.command=function(e){var t,n=this.editor,o=n.selection.isSelectionEmpty(),i=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];null!=i&&(t=n.selection.getSelectionText(),"A"===i.nodeName&&i.textContent===t&&(t=l.default("").getNode(),i.appendChild(t)),n.cmd.do("foreColor",e),o&&(n.selection.collapseRange(),n.selection.restoreSelection()))},u.prototype.tryChangeActive=function(){},u);function u(e){var t=this,n=l.default('
      \n \n
      '),o={width:120,title:"文字颜色",type:"inline-block",list:(0,r.default)(o=e.config.colors).call(o,function(e){return{$elem:l.default(''),value:e}}),clickHandler:function(e){t.command(e)}};return t=a.call(this,n,e,o)||this}t.default=o},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(3)),a=i.__importDefault(n(33)),l=i.__importDefault(n(38)),u=i.__importDefault(n(340)),s=i.__importDefault(n(346)),i=(o=l.default,i.__extends(c,o),c.prototype.clickHandler=function(){this.createPanel("")},c.prototype.createPanel=function(e){e=u.default(this.editor,e);new a.default(this,e).create()},c.prototype.tryChangeActive=function(){},c);function c(e){var t=r.default('
      \n \n
      '),n=o.call(this,t,e)||this;return s.default(e),n}t.default=i},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),u=o(n(17));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),s=n(6),c=i.__importDefault(n(3)),f=i.__importDefault(n(341)),d=n(7);t.default=function(t,e){var n=t.config,o=new f.default(t),i=s.getRandom("input-iframe"),r=s.getRandom("btn-ok"),a=s.getRandom("input-upload"),l=s.getRandom("btn-local-ok");return l=[{title:t.i18next.t("menus.panelMenus.video.上传视频"),tpl:'
      \n
      \n \n
      \n
      \n \n
      \n
      ',events:[{selector:"#"+l,type:"click",fn:function(){var e=c.default("#"+a).elems[0];if(!e)return!0;e.click()}},{selector:"#"+a,type:"change",fn:function(){var e=c.default("#"+a).elems[0];if(!e)return!0;e=e.files;return e.length&&o.uploadVideo(e),!0}}]},{title:t.i18next.t("menus.panelMenus.video.插入视频"),tpl:'
      \n "/>\n \n
      \n \n
      \n
      ",events:[{selector:"#"+r,type:"click",fn:function(){var e=c.default("#"+i),e=(0,u.default)(e=e.val()).call(e);if(e&&function(e){if(!0===(e=t.config.onlineVideoCheck(e)))return 1;"string"==typeof e&&t.config.customAlert(e,"error")}(e))return e=e,t.cmd.do("insertHTML",e+d.EMPTY_P),t.config.onlineVideoCallback(e),!0},bindEnter:!0}]}],r={width:300,height:0,tabs:[]},window.FileReader&&(n.uploadVideoServer||n.customUploadVideo)&&r.tabs.push(l[0]),n.showLinkVideo&&r.tabs.push(l[1]),r}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),w=o(n(133)),x=o(n(57)),_=o(n(4)),E=o(n(27));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),b=n(6),C=i.__importDefault(n(135)),S=i.__importDefault(n(136)),r=n(7),a=n(6),n=(l.prototype.uploadVideo=function(e){var o,i,r,a,l,t,n,u,s,c,f,d,p,h,A,v,m,g,y=this;e.length&&(o=this.editor,i=o.config,r=function(e){return o.i18next.t("validate."+e)},v=i.uploadVideoServer,a=i.uploadVideoMaxSize/1024,l=i.uploadVideoName,t=i.uploadVideoParams,n=i.uploadVideoParamsWithUrl,u=i.uploadVideoHeaders,s=i.uploadVideoHooks,c=i.uploadVideoTimeout,g=i.withVideoCredentials,f=i.customUploadVideo,d=i.uploadVideoAccept,p=[],h=[],b.arrForEach(e,function(e){var t=e.name,n=e.size/1024/1024;t&&n&&(d instanceof Array?(0,w.default)(d).call(d,function(e){return e===t.split(".")[t.split(".").length-1]})?a

      '):o.cmd.do("insertHTML",''+r.EMPTY_P),(n=document.createElement("video")).onload=function(){n=null},n.onerror=function(){i.customAlert(t("插入视频错误"),"error","wangEditor: "+t("插入视频错误")+","+t("视频链接")+' "'+e+'",'+t("下载链接失败")),n=null},n.onabort=function(){return n=null},n.src=e)},l);function l(e){this.editor=e}t.default=n},function(e,t,n){e.exports=n(343)},function(e,t,n){n=n(344);e.exports=n},function(e,t,n){n(345);n=n(9);e.exports=n.Date.now},function(e,t,n){n(5)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(347)),r=o.__importDefault(n(349));t.default=function(e){i.default(e),r.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var o=n(2),r=o.__importDefault(n(3)),a=o.__importDefault(n(39)),l=o.__importDefault(n(348));function i(n){function o(e,t){return void 0===t&&(t=""),n.i18next.t(t+e)}var i;return{showVideoTooltip:function(e){var t=[{$elem:r.default(""),onClick:function(e,t){return t.remove(),!0}},{$elem:r.default("100%"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}},{$elem:r.default("50%"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:r.default("30%"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:r.default(""+o("重置")+""),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}},{$elem:r.default(""+o("menus.justify.靠左")+""),onClick:function(e,t){return l.default(t,"left"),!0}},{$elem:r.default(""+o("menus.justify.居中")+""),onClick:function(e,t){return l.default(t,"center"),!0}},{$elem:r.default(""+o("menus.justify.靠右")+""),onClick:function(e,t){return l.default(t,"right"),!0}}];(i=new a.default(n,e,t)).create()},hideVideoTooltip:function(){i&&(i.remove(),i=null)}}}t.createShowHideFn=i,t.default=function(e){var t=(n=i(e)).showVideoTooltip,n=n.hideVideoTooltip;e.txt.eventHooks.videoClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n),e.txt.eventHooks.changeEvents.push(n)}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(28));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));t.default=function(e,t){(e=function(e,t){var n,o=e.elems[0];for(;null!=o;){if((0,r.default)(t).call(t,null==o?void 0:o.nodeName))return o;if("BODY"===(null===(n=null==o?void 0:o.parentNode)||void 0===n?void 0:n.nodeName))return null;o=o.parentNode}return o}(e,["P"]))&&a.default(e).css("text-align",t)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(6);t.default=function(n){var e,o;i.UA.isFirefox&&(e=n.txt,o=n.selection,e.eventHooks.keydownEvents.push(function(e){var t=o.getSelectionContainerElem();!t||(t=(t=t.getNodeTop(n)).length&&t.prev().length?t.prev():null)&&t.attr("data-we-video-p")&&0===o.getCursorPos()&&8===e.keyCode&&t.remove()}))}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(26));(0,i.default)(t,"__esModule",{value:!0});var a,o=n(2),l=n(7),u=o.__importDefault(n(3)),s=o.__importDefault(n(33)),i=o.__importDefault(n(38)),c=o.__importDefault(n(351)),f=o.__importDefault(n(364)),o=(a=i.default,o.__extends(d,a),d.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},d.prototype.createPanel=function(){var e=this.imgPanelConfig,e=new s.default(this,e);this.setPanel(e),e.create()},d.prototype.tryChangeActive=function(){},d);function d(e){var t,n=this,o=u.default('
      '),i=f.default(e);return i.onlyUploadConf&&(o=i.onlyUploadConf.$elem,(0,r.default)(t=i.onlyUploadConf.events).call(t,function(e){var t=e.type,n=e.fn||l.EMPTY_FN;o.on(t,function(e){e.stopPropagation(),n(e)})})),(n=a.call(this,o,e)||this).imgPanelConfig=i,c.default(e),n}t.default=o},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(352)),r=o.__importDefault(n(353)),a=o.__importDefault(n(354)),l=o.__importDefault(n(362)),u=o.__importDefault(n(363));t.default=function(e){i.default(e),r.default(e),a.default(e),l.default(e),u.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),r=n(131),a=o.__importDefault(n(97));function i(e,t){var n,o,i;!function(e){for(var t=(null===(e=e.clipboardData)||void 0===e?void 0:e.types)||[],n=0;n\n
      \n
      \n ')).hide(),t.append(n),n);function o(){(0,g.default)(r).call(r,".w-e-img-drag-mask").hide()}return m=r,(v=a).on("click",function(e){e.stopPropagation()}),v.on("mousedown",".w-e-img-drag-rb",function(e){var t,n,o,i,r,a,l,u,s,c,f;function d(){f.off("mousemove",p),f.off("mouseup",h)}function p(e){e.stopPropagation(),e.preventDefault(),s=i+(e.clientX-t),c=r+(e.clientY-n),s/c!=u&&(c=s/u),s=(0,y.default)(s.toFixed(2)),c=(0,y.default)(c.toFixed(2)),(0,g.default)(v).call(v,".w-e-img-drag-show-size").text(s.toFixed(2).replace(".00","")+"px * "+c.toFixed(2).replace(".00","")+"px"),x(v,s,c,a,l)}function h(){A.attr("width",s+""),A.attr("height",c+"");var e=A.getBoundingClientRect();x(v,s,c,e.left-o.left,e.top-o.top),d()}e.preventDefault(),A&&(t=e.clientX,n=e.clientY,o=m.getBoundingClientRect(),e=A.getBoundingClientRect(),i=e.width,r=e.height,a=e.left-o.left,l=e.top-o.top,u=i/r,s=i,c=r,(f=w.default(document)).on("mousemove",p),f.on("mouseup",h),f.on("mouseleave",d))}),w.default(document).on("click",o),e.beforeDestroy(function(){w.default(document).off("click",o)}),{showDrag:function(e){if(l.UA.isIE())return!1;var t,n,o,i;e&&(n=a,o=A=e,i=(t=r).getBoundingClientRect(),e=o.getBoundingClientRect(),t=e.width.toFixed(2),o=e.height.toFixed(2),(0,g.default)(n).call(n,".w-e-img-drag-show-size").text(t+"px * "+o+"px"),x(n,(0,y.default)(t),(0,y.default)(o),e.left-i.left,e.top-i.top),n.show())},hideDrag:o}}t.createShowHideFn=r,t.default=function(e){var t=(n=r(e)).showDrag,n=n.hideDrag;e.txt.eventHooks.imgClickEvents.push(t),e.txt.eventHooks.textScrollEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.changeEvents.push(n)}},function(e,t,n){e.exports=n(356)},function(e,t,n){n=n(357);e.exports=n},function(e,t,n){n(358);n=n(9);e.exports=n.parseFloat},function(e,t,n){var o=n(5),n=n(359);o({global:!0,forced:parseFloat!=n},{parseFloat:n})},function(e,t,n){var o=n(8),i=n(90).trim,n=n(68),r=o.parseFloat,n=1/r(n+"-0")!=-1/0;e.exports=n?function(e){var t=i(String(e)),e=r(t);return 0===e&&"-"==t.charAt(0)?-0:e}:r},function(e,t,n){var o=n(20),i=n(361);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);n={insert:"head",singleton:!1},o(i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-text-container {\n overflow: hidden;\n}\n.w-e-img-drag-mask {\n position: absolute;\n z-index: 1;\n border: 1px dashed #ccc;\n box-sizing: border-box;\n}\n.w-e-img-drag-mask .w-e-img-drag-rb {\n position: absolute;\n right: -5px;\n bottom: -5px;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: #ccc;\n cursor: se-resize;\n}\n.w-e-img-drag-mask .w-e-img-drag-show-size {\n min-width: 110px;\n height: 22px;\n line-height: 22px;\n font-size: 14px;\n color: #999;\n position: absolute;\n left: 0;\n top: 0;\n background-color: #999;\n color: #fff;\n border-radius: 2px;\n padding: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var o=n(2),r=o.__importDefault(n(3)),a=o.__importDefault(n(39));function i(n){function o(e,t){return void 0===t&&(t=""),n.i18next.t(t+e)}var i;return{showImgTooltip:function(e){var t=[{$elem:r.default(""),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}},{$elem:r.default("30%"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:r.default("50%"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:r.default("100%"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}}];t.push({$elem:r.default(""+o("重置")+""),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}}),e.attr("data-href")&&t.push({$elem:r.default(""+o("查看链接")+""),onClick:function(e,t){t=t.attr("data-href");return t&&(t=decodeURIComponent(t),window.open(t,"_target")),!0}}),(i=new a.default(n,e,t)).create()},hideImgTooltip:function(){i&&(i.remove(),i=null)}}}t.createShowHideFn=i,t.default=function(e){var t=(n=i(e)).showImgTooltip,n=n.hideImgTooltip;e.txt.eventHooks.imgClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n),e.txt.eventHooks.imgDragBarMouseDownEvents.push(n),e.txt.eventHooks.changeEvents.push(n)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.txt,a=e.selection;t.eventHooks.keydownEvents.push(function(e){var t=a.getSelectionContainerElem(),n=a.getRange();if(n&&t&&8===e.keyCode&&a.isSelectionEmpty()){var o=n.startContainer,n=n.startOffset,i=null;if(0===n)for(;o!==t.elems[0]&&t.elems[0].contains(o)&&o.parentNode&&!i;){if(o.previousSibling){i=o.previousSibling;break}o=o.parentNode}else 3!==o.nodeType&&(i=o.childNodes[n-1]);if(i){for(var r=i;r.childNodes.length;)r=r.childNodes[r.childNodes.length-1];r instanceof HTMLElement&&"IMG"===r.tagName&&(r.remove(),e.preventDefault())}}})}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),A=o(n(26)),v=o(n(17));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),m=i.__importDefault(n(3)),g=n(6),y=i.__importDefault(n(97));t.default=function(n){function e(e,t){return void 0===t&&(t="menus.panelMenus.image."),n.i18next.t(t+e)}var o=n.config,i=new y.default(n),r=g.getRandom("up-trigger-id"),a=g.getRandom("up-file-id"),l=g.getRandom("input-link-url"),u=g.getRandom("input-link-url-alt"),s=g.getRandom("input-link-url-href"),t=g.getRandom("btn-link");function c(e,t,n){return'
      \n
      \n \n
      \n
      \n \n
      \n
      '}var f=1===o.uploadImgMaxLength?"":'multiple="multiple"',d=(0,A.default)(h=o.uploadImgAccept).call(h,function(e){return"image/"+e}).join(","),p=[{selector:"#"+r,type:"click",fn:function(){var e=o.uploadImgFromMedia;if(e&&"function"==typeof e)return e(),!0;e=m.default("#"+a).elems[0];if(!e)return!0;e.click()}},{selector:"#"+a,type:"change",fn:function(){var e=m.default("#"+a).elems[0];if(!e)return!0;var t=e.files;return null!=t&&t.length&&i.uploadImg(t),e&&(e.value=""),!0}}],h=[''];return o.showLinkImgAlt&&h.push('\n '),o.showLinkImgHref&&h.push('\n '),t=[{title:e("上传图片"),tpl:c("w-e-up-img-container","w-e-icon-upload2",""),events:p},{title:e("网络图片"),tpl:"
      \n "+h.join("")+'\n
      \n \n
      \n
      ",events:[{selector:"#"+t,type:"click",fn:function(){var e,t,n=m.default("#"+l),n=(0,v.default)(n=n.val()).call(n);if(n&&(o.showLinkImgAlt&&(e=(0,v.default)(e=m.default("#"+u).val()).call(e)),o.showLinkImgHref&&(t=(0,v.default)(t=m.default("#"+s).val()).call(t)),function(e){if(!0===(e=o.linkImgCheck(e)))return 1;"string"==typeof e&&o.customAlert(e,"error")}(n)))return i.insertImg(n,e,t),!0},bindEnter:!0}]}],p={width:300,height:0,tabs:[],onlyUploadConf:{$elem:m.default(c("w-e-menu","w-e-icon-image","图片")),events:p}},window.FileReader&&(o.uploadImgShowBase64||o.uploadImgServer||o.customUploadImg||o.uploadImgFromMedia)&&p.tabs.push(t[0]),o.showLinkImg&&(p.tabs.push(t[1]),p.onlyUploadConf=void 0),p}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a,o=n(2),l=o.__importDefault(n(3)),i=o.__importDefault(n(24)),u=o.__importDefault(n(366)),o=(a=i.default,o.__extends(s,a),s.prototype.command=function(t){var e,n=this.editor,o=n.selection.getSelectionContainerElem();o&&n.$textElem.equal(o)?0<(e=n.selection.getSelectionRangeTopNodes()).length&&(0,r.default)(e).call(e,function(e){u.default(l.default(e),t,n)}):o&&0\n \n '),o={width:130,title:"设置缩进",type:"list",list:[{$elem:l.default('

      \n \n '+e.i18next.t("menus.dropListMenu.indent.增加缩进")+"\n

      "),value:"increase"},{$elem:l.default('

      \n \n '+e.i18next.t("menus.dropListMenu.indent.减少缩进")+"\n

      "),value:"decrease"}],clickHandler:function(e){t.command(e)}};return t=a.call(this,n,e,o)||this}t.default=o},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(45)),a=o(n(17));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),l=i.__importDefault(n(367)),u=i.__importDefault(n(368)),s=/^(\d+)(\w+)$/,c=/^(\d+)%$/;function f(e){var t=e.config.indentation;if("string"==typeof t){if(s.test(t)){var e=(0,r.default)(n=(0,a.default)(t).call(t).match(s)).call(n,1,3),n=e[0],e=e[1];return{value:Number(n),unit:e}}if(c.test(t))return{value:Number((0,a.default)(t).call(t).match(c)[1]),unit:"%"}}else if(void 0!==t.value&&t.unit)return t;return{value:2,unit:"em"}}t.default=function(e,t,n){e=e.getNodeTop(n),/^(P|H[0-9]*)$/.test(e.getNodeName())&&("increase"===t?l.default(e,f(n)):"decrease"===t&&u.default(e,f(n)))}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(45));(0,i.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.elems[0];""===n.style.paddingLeft?e.css("padding-left",t.value+t.unit):(n=n.style.paddingLeft,n=(0,r.default)(n).call(n,0,n.length-t.unit.length),n=Number(n)+t.value,e.css("padding-left",""+n+t.unit))}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(45));(0,i.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.elems[0];""!==n.style.paddingLeft&&(n=n.style.paddingLeft,n=(0,r.default)(n).call(n,0,n.length-t.unit.length),0<(n=Number(n)-t.value)?e.css("padding-left",""+n+t.unit):e.css("padding-left",""))}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(3)),a=i.__importDefault(n(38)),l=i.__importDefault(n(33)),u=i.__importDefault(n(370)),i=(o=a.default,i.__extends(s,o),s.prototype.createPanel=function(){var e=u.default(this.editor);new l.default(this,e).create()},s.prototype.clickHandler=function(){this.createPanel()},s.prototype.tryChangeActive=function(){},s);function s(e){var t=r.default('

      \n \n
      ');return o.call(this,t,e)||this}t.default=i},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(26)),a=o(n(70)),l=o(n(17));(0,i.default)(t,"__esModule",{value:!0});var u=n(2).__importDefault(n(3));t.default=function(o){var e=o.config.emotions;return{width:300,height:230,tabs:(0,r.default)(e).call(e,function(e){return{title:o.i18next.t("menus.panelMenus.emoticon."+e.title),tpl:"
      "+(n=[],(n="image"==(t=e).type?(n=(0,r.default)(e=t.content).call(e,function(e){return"string"==typeof e?"":'\n ['+e.alt+']\n '}),(0,a.default)(n).call(n,function(e){return""!==e})):(0,r.default)(t=t.content).call(t,function(e){return''+e+""})).join("").replace(/ /g,""))+"
      ",events:[{selector:".eleImg",type:"click",fn:function(e){var t=u.default(e.target);return t="IMG"===t.getNodeName()?(0,l.default)(e=t.parent().html()).call(e):""+t.html()+"",o.cmd.do("insertHTML",t),!0}}]};var t,n})}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createListHandle=t.ClassType=void 0;var o,i=n(2),r=i.__importDefault(n(3)),a=i.__importDefault(n(372)),l=i.__importDefault(n(374)),u=i.__importDefault(n(375)),s=i.__importDefault(n(376)),i=i.__importDefault(n(377));(n=o=t.ClassType||(t.ClassType={})).Wrap="WrapListHandle",n.Join="JoinListHandle",n.StartJoin="StartJoinListHandle",n.EndJoin="EndJoinListHandle",n.Other="OtherListHandle";var c={WrapListHandle:a.default,JoinListHandle:l.default,StartJoinListHandle:u.default,EndJoinListHandle:s.default,OtherListHandle:i.default};t.createListHandle=function(e,t,n){if(e===o.Other&&void 0===n)throw new Error("other 类需要传入 range");return e!==o.Other?new c[e](t):new c[e](t,n)};f.prototype.getSelectionRangeElem=function(){return r.default(this.handle.selectionRangeElem.get())},i=f;function f(e){this.handle=e,this.handle.exec()}t.default=i},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),A=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var r,o=n(2),v=o.__importDefault(n(3)),i=n(58),m=n(47),o=(r=i.ListHandle,o.__extends(a,r),a.prototype.exec=function(){var t,e=this.options,n=e.listType,o=e.listTarget,i=e.$selectionElem,r=e.$startElem,a=e.$endElem,l=[],u=null==i?void 0:i.getNodeName(),e=r.prior,s=a.prior;if((r.prior||a.prior)&&(null!=e&&e.prev().length||null!=s&&s.next().length)){for(var c=e;c.length;)l.push(c),c=null!=s&&s.equal(c)?v.default(void 0):c.next();var e=e.prev(),f=s.next();if(u===n?t=m.createElementFragment(l,m.createDocumentFragment(),"p"):(t=m.createElement(o),(0,A.default)(l).call(l,function(e){t.append(e.elems[0])})),e.length&&f.length){for(var d=[];f.length;)d.push(f),f=f.next();var p,h=m.createElement(u);(0,A.default)(d).call(d,function(e){h.append(e.elems[0])}),v.default(h).insertAfter(i),this.selectionRangeElem.set(t),(p=i.next()).length?m.insertBefore(i,t,p.elems[0]):i.parent().elems[0].append(t)}else e.length?(this.selectionRangeElem.set(t),(p=i.next()).length?m.insertBefore(i,t,p.elems[0]):i.parent().elems[0].append(t)):(this.selectionRangeElem.set(t),m.insertBefore(i,t,i.elems[0]))}else(0,A.default)(p=null==i?void 0:i.children()).call(p,function(e){l.push(v.default(e))}),u===n?t=m.createElementFragment(l,m.createDocumentFragment(),"p"):(t=m.createElement(o),(0,A.default)(l).call(l,function(e){t.appendChild(e.elems[0])})),this.selectionRangeElem.set(t),m.insertBefore(i,t,i.elems[0]),i.remove()},a);function a(e){return r.call(this,e)||this}t.default=o},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});a.prototype.set=function(e){var t,n;e instanceof DocumentFragment&&(n=[],(0,r.default)(t=e.childNodes).call(t,function(e){n.push(e)}),e=n),this._element=e},a.prototype.get=function(){return this._element},a.prototype.clear=function(){this._element=null},i=a;function a(){this._element=null}t.default=i},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),m=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var r,o=n(2),g=o.__importDefault(n(3)),i=n(58),y=n(47),o=(r=i.ListHandle,o.__extends(a,r),a.prototype.exec=function(){var t,e=this.options,n=e.editor,o=e.listType,i=e.listTarget,r=e.$startElem,e=e.$endElem,a=n.selection.getSelectionRangeTopNodes(),n=null==r?void 0:r.getNodeName();if(n===(null==e?void 0:e.getNodeName()))if(2\n \n '),o={width:100,title:"设置行高",type:"list",list:new u.default(t,t.config.lineHeights).getItemList(),clickHandler:function(e){t.selection.saveRange(),n.command(e)}};return n=l.call(this,e,t,o)||this}t.default=o},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3)),n=(l.prototype.getItemList=function(){return this.itemList},l);function l(e,t){var n=this;this.itemList=[{$elem:a.default(""+e.i18next.t("默认")+""),value:""}],(0,r.default)(t).call(t,function(e){n.itemList.push({$elem:a.default(""+e+""),value:e})})}t.default=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(3)),n=i.__importDefault(n(23)),i=(o=n.default,i.__extends(a,o),a.prototype.clickHandler=function(){var e=this.editor;e.history.revoke();var t=e.$textElem.children();null!=t&&t.length&&(t=t.last(),e.selection.createRangeByElem(t,!1,!0),e.selection.restoreSelection())},a.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},a);function a(e){var t=r.default('
      \n \n
      ');return o.call(this,t,e)||this}t.default=i},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(3)),n=i.__importDefault(n(23)),i=(o=n.default,i.__extends(a,o),a.prototype.clickHandler=function(){var e=this.editor;e.history.restore();var t=e.$textElem.children();null!=t&&t.length&&(t=t.last(),e.selection.createRangeByElem(t,!1,!0),e.selection.restoreSelection())},a.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},a);function a(e){var t=r.default('
      \n \n
      ');return o.call(this,t,e)||this}t.default=i},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(38)),a=i.__importDefault(n(3)),l=i.__importDefault(n(383)),u=i.__importDefault(n(33)),s=i.__importDefault(n(392)),i=(o=r.default,i.__extends(c,o),c.prototype.clickHandler=function(){this.createPanel()},c.prototype.createPanel=function(){var e=l.default(this.editor);new u.default(this,e).create()},c.prototype.tryChangeActive=function(){},c);function c(e){var t=a.default('
      '),n=o.call(this,t,e)||this;return s.default(e),n}t.default=i},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(384));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),l=n(6),u=i.__importDefault(n(3));n(389);var s=i.__importDefault(n(391));function c(e){return 0\n
      \n '+a("创建")+'\n \n '+a(t+"行")+'\n \n '+(a(t+"列")+a(t+"的")+a(t+"表格"))+'\n
      \n
      \n \n
      \n ",events:[{selector:"#"+e,type:"click",fn:function(){var e=Number(u.default("#"+i).val()),t=Number(u.default("#"+r).val());return c(t)&&c(e)?(o.createAction(t,e),!0):(n.config.customAlert("表格行列请输入正整数","warning"),!1)},bindEnter:!0}]}];return(e={width:330,height:0,tabs:[]}).tabs.push(a[0]),e}},function(e,t,n){e.exports=n(385)},function(e,t,n){n=n(386);e.exports=n},function(e,t,n){n(387);n=n(9);e.exports=n.Number.isInteger},function(e,t,n){n(5)({target:"Number",stat:!0},{isInteger:n(388)})},function(e,t,n){var o=n(13),i=Math.floor;e.exports=function(e){return!o(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var o=n(20),i=n(390);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);n={insert:"head",singleton:!1},o(i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-table {\n display: flex;\n}\n.w-e-table .w-e-table-input {\n width: 40px;\n text-align: center!important;\n margin: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),a=n(7),r=o.__importDefault(n(3)),n=(i.prototype.createAction=function(e,t){var n=this.editor,o=r.default(n.selection.getSelectionContainerElem()),i=r.default(o.elems[0]).parentUntilEditor("UL",n),o=r.default(o.elems[0]).parentUntilEditor("OL",n);i||o||(t=this.createTableHtml(e,t),n.cmd.do("insertHTML",t))},i.prototype.createTableHtml=function(e,t){for(var n="",o="",i=0;i":"";n=n+""+o+""}return''+n+"
      "+a.EMPTY_P},i);function i(e){this.editor=e}t.default=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(393)),i=n(400);t.default=function(e){o.default(e),i.bindEventKeyboardEvent(e),i.bindClickEvent(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),l=o.__importDefault(n(3)),i=o.__importDefault(n(39)),u=o.__importDefault(n(394)),r=o.__importDefault(n(399)),s=n(7);function a(n){var o;return{showTableTooltip:function(e){var a=new r.default(n),t=function(e,t){return void 0===t&&(t="menus.panelMenus.table."),n.i18next.t(t+e)},t=[{$elem:l.default(""+t("删除表格")+""),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",s.EMPTY_P),!0}},{$elem:l.default(""+t("添加行")+""),onClick:function(e,t){if(c(e))return!0;var n=l.default(e.selection.getSelectionStartElem()),o=a.getRowNode(n.elems[0]);if(!o)return!0;n=Number(a.getCurrentRowIndex(t.elems[0],o)),o=a.getTableHtml(t.elems[0]),n=f(t,n=a.getTableHtml(u.default.ProcessingRow(l.default(o),n).elems[0]));return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",n),!0}},{$elem:l.default(""+t("删除行")+""),onClick:function(e,t){if(c(e))return!0;var n=l.default(e.selection.getSelectionStartElem()),o=a.getRowNode(n.elems[0]);if(!o)return!0;var i=Number(a.getCurrentRowIndex(t.elems[0],o)),r=a.getTableHtml(t.elems[0]),n=u.default.DeleteRow(l.default(r),i).elems[0].children[0].children.length,o="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),o=f(t,o=0===n?s.EMPTY_P:a.getTableHtml(u.default.DeleteRow(l.default(r),i).elems[0])),e.cmd.do("insertHTML",o),!0}},{$elem:l.default(""+t("添加列")+""),onClick:function(e,t){if(c(e))return!0;var n=l.default(e.selection.getSelectionStartElem()),o=a.getCurrentColIndex(n.elems[0]),n=a.getTableHtml(t.elems[0]),o=f(t,o=a.getTableHtml(u.default.ProcessingCol(l.default(n),o).elems[0]));return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",o),!0}},{$elem:l.default(""+t("删除列")+""),onClick:function(e,t){if(c(e))return!0;var n=l.default(e.selection.getSelectionStartElem()),o=a.getCurrentColIndex(n.elems[0]),i=a.getTableHtml(t.elems[0]),n=u.default.DeleteCol(l.default(i),o),i=n.elems[0].children[0].children[0].children.length,o="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),o=f(t,o=0===i?s.EMPTY_P:a.getTableHtml(n.elems[0])),e.cmd.do("insertHTML",o),!0}},{$elem:l.default(""+t("设置表头")+""),onClick:function(e,t){if(c(e))return!0;var n=l.default(e.selection.getSelectionStartElem()),o=a.getRowNode(n.elems[0]);if(!o)return!0;n=Number(a.getCurrentRowIndex(t.elems[0],o));0!==n&&(n=0);o=a.getTableHtml(t.elems[0]),n=f(t,n=a.getTableHtml(u.default.setTheHeader(l.default(o),n,"th").elems[0]));return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",n),!0}},{$elem:l.default(""+t("取消表头")+""),onClick:function(e,t){var n=l.default(e.selection.getSelectionStartElem()),o=a.getRowNode(n.elems[0]);if(!o)return!0;n=Number(a.getCurrentRowIndex(t.elems[0],o));0!==n&&(n=0);o=a.getTableHtml(t.elems[0]),n=f(t,n=a.getTableHtml(u.default.setTheHeader(l.default(o),n,"td").elems[0]));return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",n),!0}}];(o=new i.default(n,e,t)).create()},hideTableTooltip:function(){o&&(o.remove(),o=null)}}}function c(e){var t=e.selection.getSelectionStartElem(),e=e.selection.getSelectionEndElem();return(null==t?void 0:t.elems[0])!==(null==e?void 0:e.elems[0])}function f(e,t){e=e.elems[0].nextSibling;return e&&"
      "!==e.innerHTML||(t+=""+s.EMPTY_P),t}t.default=function(e){var t=(n=a(e)).showTableTooltip,n=n.hideTableTooltip;e.txt.eventHooks.tableClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n)}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),l=o(n(45)),u=o(n(91)),s=o(n(4)),c=o(n(138));(0,i.default)(t,"__esModule",{value:!0});var f=n(2).__importDefault(n(3));function d(e,t){for(;0!==e.children.length;)e.removeChild(e.children[0]);for(var n=0;n'+l.default(e).html()+""},u);function u(e){this.editor=e}t.default=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.bindEventKeyboardEvent=t.bindClickEvent=void 0;var i=n(2).__importDefault(n(3));t.bindClickEvent=function(o){o.txt.eventHooks.tableClickEvents.push(function(e,t){var n;3<=t.detail&&((n=window.getSelection())&&(t=n.focusNode,n=n.anchorNode,n=i.default(null==n?void 0:n.parentElement),e.isContain(i.default(t))||(t="TD"===n.elems[0].tagName?n:n.parentUntilEditor("td",o))&&(null!=(n=o.selection.getRange())&&n.setEnd(t.elems[0],t.elems[0].childNodes.length),o.selection.restoreSelection())))})},t.bindEventKeyboardEvent=function(o){var e=o.txt,i=o.selection;e.eventHooks.keydownEvents.push(function(e){o.selection.saveRange();var t,n=i.getSelectionContainerElem();!n||(n=(t=n.getNodeTop(o)).length&&t.prev().length?t.prev():null)&&"TABLE"===n.getNodeName()&&i.isSelectionEmpty()&&0===i.getCursorPos()&&8===e.keyCode&&(!!(n=t.next()).length&&function(e){if(e.length){e=e.elems[0];return"P"===e.nodeName&&"
      "===e.innerHTML}}(t)&&(t.remove(),o.selection.setRangeToElem(n.elems[0])),e.preventDefault())})}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),a=o(n(26));(0,i.default)(t,"__esModule",{value:!0}),t.formatCodeHtml=void 0;var o=n(2),i=o.__importDefault(n(38)),r=o.__importDefault(n(3)),l=n(6),u=o.__importDefault(n(402)),s=o.__importDefault(n(139)),c=o.__importDefault(n(33)),f=o.__importDefault(n(403));t.formatCodeHtml=function(e,t){return t&&(t=function e(t){var n;var o=t.match(//gm);if(!o||!o.length)return t;var i=(0,a.default)(n=l.deepClone(o)).call(n,function(e){return(e=e.replace(/]+>/,"")).replace(/<\/span>/,"")});for(var r=0;r/g))||(0,a.default)(o).call(o,function(e){n=n.replace(e,e.replace(/<\/code>/g,"\n").replace(/
      /g,""))}),t=n,t=l.replaceSpecialSymbol(t));var n,o};var d,o=(d=i.default,o.__extends(p,d),p.prototype.insertLineCode=function(e){var t=this.editor,e=r.default(""+e+"");t.cmd.do("insertElem",e),t.selection.createRangeByElem(e,!1),t.selection.restoreSelection()},p.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getSelectionText();this.isActive||(e.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(t))},p.prototype.createPanel=function(e,t){t=u.default(this.editor,e,t);new c.default(this,t).create()},p.prototype.tryChangeActive=function(){var e=this.editor;s.default(e)?this.active():this.unActive()},p);function p(e){var t=r.default('
      '),n=d.call(this,t,e)||this;return f.default(e),n}t.default=o},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),s=o(n(26));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),c=n(6),f=i.__importDefault(n(3)),d=i.__importDefault(n(139)),p=n(7);t.default=function(o,e,t){var n,i=c.getRandom("input-iframe"),r=c.getRandom("select"),a=c.getRandom("btn-ok");function l(e,t){var n;d.default(o)&&function(){if(!d.default(o))return;var e=o.selection.getSelectionStartElem(),e=null==e?void 0:e.getNodeTop(o);if(!e)return;o.selection.createRangeByElem(e),o.selection.restoreSelection(),0}(),(null===(n=o.selection.getSelectionStartElem())||void 0===n?void 0:n.elems[0].innerHTML)&&o.cmd.do("insertHTML",p.EMPTY_P);t=t.replace(//g,">");o.highlight&&(t=o.highlight.highlightAuto(t).value),o.cmd.do("insertHTML",'
      '+t+"
      ");t=o.selection.getSelectionStartElem(),t=null==t?void 0:t.getNodeTop(o);0===(null==t?void 0:t.getNextSibling().elems.length)&&f.default(p.EMPTY_P).insertAfter(t)}function u(e){return o.i18next.t(e)}return{width:500,height:0,tabs:[{title:u("menus.panelMenus.code.插入代码"),tpl:'
      \n \n \n
      \n \n
      \n
      ",events:[{selector:"#"+a,type:"click",fn:function(){var e=document.getElementById(i),t=f.default("#"+r).val(),e=e.value;if(e)return!d.default(o)&&(l(t,e),!0)}}]}]}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(404)),r=o.__importDefault(n(405));t.default=function(e){i.default(e),r.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var o=n(2),r=o.__importDefault(n(3)),a=o.__importDefault(n(39));function i(o){var i;return{showCodeTooltip:function(e){var t,n=[{$elem:r.default(""+(n="删除代码",void 0===t&&(t="menus.panelMenus.code."),o.i18next.t(t+n))+""),onClick:function(e,t){return t.remove(),!0}}];(i=new a.default(o,e,n)).create()},hideCodeTooltip:function(){i&&(i.remove(),i=null)}}}t.createShowHideFn=i,t.default=function(e){var t=(n=i(e)).showCodeTooltip,n=n.hideCodeTooltip;e.txt.eventHooks.codeClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),a=n(7),l=o.__importDefault(n(3));t.default=function(o){var i=o.$textElem,r=o.selection,e=o.txt.eventHooks.keydownEvents;e.push(function(e){var t;40===e.keyCode&&(t=r.getSelectionContainerElem(),e=null===(e=i.children())||void 0===e?void 0:e.last(),"XMP"===(null==t?void 0:t.elems[0].tagName)&&"PRE"===(null==e?void 0:e.elems[0].tagName)&&(e=l.default(a.EMPTY_P),i.append(e)))}),e.push(function(e){o.selection.saveRange();var t,n=r.getSelectionContainerElem();n&&(n=null==(t=n.getNodeTop(o))?void 0:t.prev(),t=null==t?void 0:t.getNextSibling(),n.length&&"PRE"===(null==n?void 0:n.getNodeName())&&0===t.length&&0===r.getCursorPos()&&8===e.keyCode&&(e=l.default(a.EMPTY_P),i.append(e)))})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(23)),a=i.__importDefault(n(3)),l=i.__importDefault(n(407)),u=n(6),s=n(7),i=(o=r.default,i.__extends(c,o),c.prototype.clickHandler=function(){var e,t=this.editor,n=t.selection.getRange(),o=t.selection.getSelectionContainerElem();null!=o&&o.length&&(t=(e=a.default(o.elems[0])).parentUntil("TABLE",o.elems[0]),o=e.children(),"CODE"!==e.getNodeName()&&(t&&"TABLE"===a.default(t.elems[0]).getNodeName()||(!o||0===o.length||"IMG"!==a.default(o.elems[0]).getNodeName()||null!=n&&n.collapsed)&&this.createSplitLine()))},c.prototype.createSplitLine=function(){var e="
      "+s.EMPTY_P;u.UA.isFirefox&&(e="

      "),this.editor.cmd.do("insertHTML",e)},c.prototype.tryChangeActive=function(){},c);function c(e){var t=a.default('
      '),n=o.call(this,t,e)||this;return l.default(e),n}t.default=i},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(408));t.default=function(e){o.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(3)),r=o.__importDefault(n(39));function a(n){var o;return{showSplitLineTooltip:function(e){var t=[{$elem:i.default(""+n.i18next.t("menus.panelMenus.删除")+""),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}}];(o=new r.default(n,e,t)).create()},hideSplitLineTooltip:function(){o&&(o.remove(),o=null)}}}t.default=function(e){var t=(n=a(e)).showSplitLineTooltip,n=n.hideSplitLineTooltip;e.txt.eventHooks.splitLineEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n)}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a,o=n(2),l=o.__importDefault(n(3)),i=o.__importDefault(n(23)),u=n(98),s=o.__importDefault(n(415)),c=o.__importDefault(n(140)),o=(a=i.default,o.__extends(f,a),f.prototype.clickHandler=function(){var e=this.editor;u.isAllTodo(e)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},f.prototype.tryChangeActive=function(){u.isAllTodo(this.editor)?this.active():this.unActive()},f.prototype.setTodo=function(){var o=this.editor,e=o.selection.getSelectionRangeTopNodes();(0,r.default)(e).call(e,function(e){var t,n;"P"===(null==e?void 0:e.getNodeName())&&(n=null===(n=(t=c.default(e).getTodo()).children())||void 0===n?void 0:n.getNode(),t.insertAfter(e),o.selection.moveCursor(n),e.remove())}),this.tryChangeActive()},f.prototype.cancelTodo=function(){var o=this.editor,e=o.selection.getSelectionRangeTopNodes();(0,r.default)(e).call(e,function(e){var t=null===(n=null===(t=e.childNodes())||void 0===t?void 0:t.childNodes())||void 0===n?void 0:n.clone(!0),n=l.default("

      ");n.append(t),n.insertAfter(e),null!==(t=n.childNodes())&&void 0!==t&&t.get(0).remove(),o.selection.moveCursor(n.getNode()),e.remove()})},f);function f(e){var t=l.default('
      \n \n
      '),n=a.call(this,t,e)||this;return s.default(e),n}t.default=o},function(e,t,n){e.exports=n(411)},function(e,t,n){n=n(412);e.exports=n},function(e,t,n){var o=n(413),i=Array.prototype;e.exports=function(e){var t=e.every;return e===i||e instanceof Array&&t===i.every?o:t}},function(e,t,n){n(414);n=n(15);e.exports=n("Array").every},function(e,t,n){"use strict";var o=n(5),i=n(32).every,r=n(67),n=n(22),r=r("every"),n=n("every");o({target:"Array",proto:!0,forced:!r||!n},{every:function(e,t){return i(this,e,1")),p.insertAfter(u),f&&""!==(null==f?void 0:f.textContent)?l.moveCursor(d):("BR"!==(null==f?void 0:f.nodeName)&&v.default("
      ").insertAfter(e),l.moveCursor(d,1))}}),h.txt.eventHooks.deleteUpEvents.push(function(){var e=h.selection.getSelectionRangeTopNodes()[0];e&&y.isTodo(e)&&""===e.text()&&(v.default(w.EMPTY_P).insertAfter(e),e.remove())}),h.txt.eventHooks.deleteDownEvents.push(function(e){if(m.isAllTodo(h)){var t=h.selection,n=t.getSelectionRangeTopNodes()[0],o=null===(l=n.childNodes())||void 0===l?void 0:l.getNode(),i=v.default("

      "),r=i.getNode(),a=null===(u=window.getSelection())||void 0===u?void 0:u.anchorNode,l=t.getCursorPos(),u=a.previousSibling;if(""===n.text()){e.preventDefault();a=v.default(w.EMPTY_P);return a.insertAfter(n),n.remove(),void t.moveCursor(a.getNode(),0)}"SPAN"===(null==u?void 0:u.nodeName)&&"INPUT"===u.childNodes[0].nodeName&&0===l&&(e.preventDefault(),null!=o&&(0,A.default)(o=o.childNodes).call(o,function(e,t){0!==t&&r.appendChild(e.cloneNode(!0))}),i.insertAfter(n),n.remove())}}),h.txt.eventHooks.clickEvents.push(function(e){e&&e.target instanceof HTMLInputElement&&"checkbox"===e.target.type&&(e.target.checked?e.target.setAttribute("checked","true"):e.target.removeAttribute("checked"))})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.selectorValidator=void 0;var o=n(2),s=o.__importDefault(n(3)),c=n(6),f=n(7),d=o.__importDefault(n(130)),p="1px solid #c9d8db",h="#FFF",A="1px solid #EEE";t.default=function(e){var t=e.toolbarSelector,n=s.default(t),o=e.textSelector,i=e.config.height,r=e.i18next,a=s.default("
      "),l=s.default("
      "),t=null;null==o?(u=n.children(),n.append(a).append(l),a.css("background-color",h).css("border",p).css("border-bottom",A),l.css("border",p).css("border-top","none").css("height",i+"px")):(n.append(a),t=s.default(o).children(),s.default(o).append(l),u=l.children()),(n=s.default("
      ")).attr("contenteditable","true").css("width","100%").css("height","100%"),(o=(o=e.config.placeholder)!==d.default.placeholder?s.default("
      "+o+"
      "):s.default("
      "+r.t(o)+"
      ")).addClass("placeholder"),u&&u.length?(n.append(u),o.hide()):n.append(s.default(f.EMPTY_P)),t&&t.length&&(n.append(t),o.hide()),l.append(n),l.append(o),a.addClass("w-e-toolbar").css("z-index",e.zIndex.get("toolbar")),l.addClass("w-e-text-container"),l.css("z-index",e.zIndex.get()),n.addClass("w-e-text");var u=c.getRandom("toolbar-elem");a.attr("id",u),t=c.getRandom("text-elem"),n.attr("id",t),(o=l.getBoundingClientRect().height)!==n.getBoundingClientRect().height&&n.css("min-height",o+"px"),e.$toolbarElem=a,e.$textContainerElem=l,e.$textElem=n,e.toolbarElemId=u,e.textElemId=t},t.selectorValidator=function(e){var t="data-we-id",n=/^wangEditor-\d+$/,o=e.textSelector,i=e.toolbarSelector,r={bar:s.default("
      "),text:s.default("
      ")};if(null==i)throw new Error("错误:初始化编辑器时候未传入任何参数,请查阅文档");if(r.bar=s.default(i),!r.bar.elems.length)throw new Error("无效的节点选择器:"+i);if(n.test(r.bar.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器");if(o){if(r.text=s.default(o),!r.text.elems.length)throw new Error("无效的节点选择器:"+o);if(n.test(r.text.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器")}r.bar.attr(t,e.id),r.text.attr(t,e.id),e.beforeDestroy(function(){r.bar.removeAttr(t),r.text.removeAttr(t)})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3)),l=n(7);t.default=function e(t,n){var o=t.$textElem,i=o.children();if(!i||!i.length)return o.append(a.default(l.EMPTY_P)),void e(t);var r=i.last();if(n&&(i=r.html().toLowerCase(),n=r.getNodeName(),"
      "!==i&&"
      "!==i||"P"!==n))return o.append(a.default(l.EMPTY_P)),void e(t);t.selection.createRangeByElem(r,!1,!0),t.config.focus?t.selection.restoreSelection():t.selection.clearWindowSelectionRange()}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));function l(e){(0,e.config.onfocus)(e.txt.html()||"")}t.default=function(e){var n,t;(n=e).txt.eventHooks.changeEvents.push(function(){var e,t=n.config.onchange;t&&(e=n.txt.html()||"",n.isFocus=!0,t(e)),n.txt.togglePlaceholder()}),function(i){function e(e){var t=e.target,n=a.default(t),o=i.$textElem,t=i.$toolbarElem,o=o.isContain(n),n=t.isContain(n),e=t.elems[0]==e.target;o?(i.isFocus||l(i),i.isFocus=!0):n&&!e||!i.isFocus||(n=(o=i).config.onblur,e=o.txt.html()||"",(0,r.default)(o=o.txt.eventHooks.onBlurEvents).call(o,function(e){return e()}),n(e),i.isFocus=!1)}i.isFocus=!1,document.activeElement===i.$textElem.elems[0]&&i.config.focus&&(l(i),i.isFocus=!0);a.default(document).on("click",e),i.beforeDestroy(function(){a.default(document).off("click",e)})}(e),(t=e).$textElem.on("compositionstart",function(){t.isComposing=!0,t.txt.togglePlaceholder()}).on("compositionend",function(){t.isComposing=!1,t.txt.togglePlaceholder()})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.config,n=t.lang,o=t.languages;if(null==e.i18next)e.i18next={t:function(e){e=e.split(".");return e[e.length-1]}};else try{e.i18next.init({ns:"wangEditor",lng:n,defaultNS:"wangEditor",resources:o})}catch(e){throw new Error("i18next:"+e)}}},function(e,o,t){"use strict";var n=t(0),i=n(t(1)),r=n(t(29));(0,i.default)(o,"__esModule",{value:!0}),o.setUnFullScreen=o.setFullScreen=void 0;var a=t(2).__importDefault(t(3));t(421);var l="w-e-icon-fullscreen",u="w-e-icon-fullscreen_exit",s="w-e-full-screen-editor";o.setFullScreen=function(e){var t=a.default(e.toolbarSelector),n=e.$textContainerElem,o=e.$toolbarElem,i=(0,r.default)(o).call(o,"i."+l),e=e.config;i.removeClass(l),i.addClass(u),t.addClass(s),t.css("z-index",e.zIndexFullScreen);o=o.getBoundingClientRect();n.css("height","calc(100% - "+o.height+"px)")},o.setUnFullScreen=function(e){var t=a.default(e.toolbarSelector),n=e.$textContainerElem,o=e.$toolbarElem,o=(0,r.default)(o).call(o,"i."+u),e=e.config;o.removeClass(u),o.addClass(l),t.removeClass(s),t.css("z-index","auto"),n.css("height",e.height+"px")};o.default=function(t){var e,n;t.textSelector||t.config.showFullScreen&&(e=t.$toolbarElem,(n=a.default('
      \n \n
      ')).on("click",function(e){(0,r.default)(e=a.default(e.currentTarget)).call(e,"i").hasClass(l)?(n.attr("data-title","取消全屏"),o.setFullScreen(t)):(n.attr("data-title","全屏"),o.setUnFullScreen(t))}),e.append(n))}},function(e,t,n){var o=n(20),i=n(422);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);n={insert:"head",singleton:!1},o(i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-full-screen-editor {\n position: fixed;\n width: 100%!important;\n height: 100%!important;\n left: 0;\n top: 0;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(29));(0,i.default)(t,"__esModule",{value:!0});t.default=function(e,t){var n=e.isEnable?e.$textElem:(0,r.default)(n=e.$textContainerElem).call(n,".w-e-content-mantle"),t=(0,r.default)(n).call(n,"[id='"+t+"']").getOffsetData().top;n.scrollTop(t)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(129)),i={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},n=(r.prototype.get=function(e){return e&&this.tier[e]?this.baseZIndex+this.tier[e]:this.baseZIndex},r.prototype.init=function(e){this.baseZIndex==o.default.zIndex&&(this.baseZIndex=e.config.zIndex)},r);function r(){this.tier=i,this.baseZIndex=o.default.zIndex}t.default=n},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),a=o(n(70)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(426)),l=n(6),u=n(7);var s,o=(s=i.default,o.__extends(c,s),c.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},c.prototype.emit=function(){var e;(0,r.default)(e=this.editor.txt.eventHooks.changeEvents).call(e,function(e){return e()})},c.prototype.observe=function(){var e=this;s.prototype.observe.call(this,this.editor.$textElem.elems[0]);var t=this.editor.config.onchangeTimeout;this.asyncSave=l.debounce(function(){e.save()},t),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",function(){e.asyncSave()})},c);function c(i){var r=s.call(this,function(e,t){var n,o;if(n=e,o=t.target,e=(0,a.default)(n).call(n,function(e){var t=e.type,n=e.target,e=e.attributeName;return"attributes"!=t||"attributes"==t&&("contenteditable"==e||n!=o)}),(n=r.data).push.apply(n,e),i.isCompatibleMode)r.asyncSave();else if(!i.isComposing)return r.asyncSave()})||this;return r.editor=i,r.data=[],r.asyncSave=u.EMPTY_FN,r}t.default=o},function(e,t,n){"use strict";n=n(0)(n(1));(0,n.default)(t,"__esModule",{value:!0});(0,n.default)(o.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),o.prototype.observe=function(e){this.node instanceof Node||(this.node=e,this.connect())},o.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("还未初始化绑定,请您先绑定有效的 Node 节点")},o.prototype.disconnect=function(){var e=this.observer.takeRecords();e.length&&this.callback(e),this.observer.disconnect()},n=o;function o(t,e){var n=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(e){t(e,n)},this.observer=new MutationObserver(this.callback),e&&(this.options=e)}t.default=n},function(e,t,n){"use strict";var o=n(0)(n(1));(0,o.default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(428)),a=i.__importDefault(n(435)),l=i.__importDefault(n(436)),o=((0,o.default)(u.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),u.prototype.observe=function(){this.content.observe(),this.scroll.observe(),this.editor.isCompatibleMode||this.range.observe()},u.prototype.save=function(e){e.length&&(this.content.save(e),this.scroll.save(),this.editor.isCompatibleMode||this.range.save())},u.prototype.revoke=function(){this.editor.change.disconnect();var e=this.content.revoke();e&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},u.prototype.restore=function(){this.editor.change.disconnect();var e=this.content.restore();e&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},u);function u(e){this.editor=e,this.content=new r.default(e),this.scroll=new a.default(e),this.range=new l.default(e)}t.default=o},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(429)),r=o.__importDefault(n(433)),n=(a.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new r.default(this.editor):this.cache=new i.default(this.editor),this.cache.observe()},a.prototype.save=function(e){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(e)},a.prototype.revoke=function(){var e;return null===(e=this.cache)||void 0===e?void 0:e.revoke()},a.prototype.restore=function(){var e;return null===(e=this.cache)||void 0===e?void 0:e.restore()},a);function a(e){this.editor=e}t.default=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),r=i.__importDefault(n(99)),a=i.__importDefault(n(431)),l=n(432),i=(o=r.default,i.__extends(u,o),u.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},u.prototype.compile=function(e){return this.save(a.default(e)),this},u.prototype.revoke=function(){return o.prototype.revoke.call(this,function(e){l.revoke(e)})},u.prototype.restore=function(){return o.prototype.restore.call(this,function(e){l.restore(e)})},u);function u(e){var t=o.call(this,e.config.historyMaxSize)||this;return t.editor=e,t}t.default=i},function(e,t,n){"use strict";n=n(0)(n(1));(0,n.default)(t,"__esModule",{value:!0}),t.CeilStack=void 0;o.prototype.resetMax=function(e){e=Math.abs(e),this.reset||isNaN(e)||(this.max=e,this.reset=!0)},(0,n.default)(o.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),o.prototype.instack=function(e){return this.data.unshift(e),this.max&&this.size>this.max&&(this.data.length=this.max),this},o.prototype.outstack=function(){return this.data.shift()},o.prototype.clear=function(){return this.data.length=0,this},n=o;function o(e){void 0===e&&(e=0),this.data=[],this.max=0,this.reset=!1,(e=Math.abs(e))&&(this.max=e)}t.CeilStack=n},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),u=o(n(4)),s=o(n(27));(0,i.default)(t,"__esModule",{value:!0}),t.compliePosition=t.complieNodes=t.compileValue=t.compileType=void 0;var c=n(6);function f(e){switch(e){case"childList":return"node";case"attributes":return"attr";default:return"text"}}function d(e){switch(e.type){case"attributes":return e.target.getAttribute(e.attributeName)||"";case"characterData":return e.target.textContent;default:return""}}function p(e){var t={};return e.addedNodes.length&&(t.add=c.toArray(e.addedNodes)),e.removedNodes.length&&(t.remove=c.toArray(e.removedNodes)),t}function h(e){e=e.previousSibling?{type:"before",target:e.previousSibling}:e.nextSibling?{type:"after",target:e.nextSibling}:{type:"parent",target:e.target};return e}t.compileType=f,t.compileValue=d,t.complieNodes=p,t.compliePosition=h;var A=["UL","OL","H1","H2","H3","H4","H5","H6"];function v(e,t){for(var n=0,o=t.length-1;0this.max;)this.data.shift();return this.point=this.size-1,this},a.prototype.current=function(){return this.data[this.point]},a.prototype.prev=function(){if(this.isRe||(this.isRe=!0),this.point--,!(this.point<0))return this.current();this.point=0},a.prototype.next=function(){if(this.isRe||(this.isRe=!0),this.point++,!(this.point>=this.size))return this.current();this.point=this.size-1},i=a;function a(){this.data=[],this.max=0,this.point=0,this.isRe=!1}t.TailChain=i},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=n(2),n=i.__importDefault(n(99)),i=(o=n.default,i.__extends(r,o),r.prototype.observe=function(){var e=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",function(){e.last=e.target.scrollTop}),this.resetMaxSize(this.editor.config.historyMaxSize)},r.prototype.save=function(){return o.prototype.save.call(this,[this.last,this.target.scrollTop]),this},r.prototype.revoke=function(){var t=this;return o.prototype.revoke.call(this,function(e){t.target.scrollTop=e[0]})},r.prototype.restore=function(){var t=this;return o.prototype.restore.call(this,function(e){t.target.scrollTop=e[1]})},r);function r(e){var t=o.call(this,e.config.historyMaxSize)||this;return t.editor=e,t.last=0,t.target=e.$textElem.elems[0],t}t.default=i},function(e,t,n){"use strict";var o=n(0)(n(1));(0,o.default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(99)),a=i.__importDefault(n(3)),l=n(6);function u(e){return{start:[e.startContainer,e.startOffset],end:[e.endContainer,e.endOffset],root:e.commonAncestorContainer,collapsed:e.collapsed}}var s,o=(s=r.default,i.__extends(c,s),(0,o.default)(c.prototype,"rangeHandle",{get:function(){var e=document.getSelection();return e&&e.rangeCount?e.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),c.prototype.observe=function(){var t=this;function e(){var e=t.rangeHandle;t.root!==e.commonAncestorContainer&&!t.root.contains(e.commonAncestorContainer)||t.editor.isComposing||t.updateLastRange()}this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize),a.default(document).on("selectionchange",e),this.editor.beforeDestroy(function(){a.default(document).off("selectionchange",e)}),t.editor.$textElem.on("keydown",function(e){"Backspace"!=e.key&&"Delete"!=e.key||t.updateLastRange()})},c.prototype.save=function(){var e=u(this.rangeHandle);return s.prototype.save.call(this,[this.lastRange,e]),this.lastRange=e,this},c.prototype.set=function(e){try{if(e){var t=this.rangeHandle;return t.setStart.apply(t,e.start),t.setEnd.apply(t,e.end),this.editor.menus.changeActive(),!0}}catch(e){return!1}return!1},c.prototype.revoke=function(){var t=this;return s.prototype.revoke.call(this,function(e){t.set(e[0])})},c.prototype.restore=function(){var t=this;return s.prototype.restore.call(this,function(e){t.set(e[1])})},c);function c(e){var t=s.call(this,e.config.historyMaxSize)||this;return t.editor=e,t.lastRange=u(document.createRange()),t.root=e.$textElem.elems[0],t.updateLastRange=l.debounce(function(){t.lastRange=u(t.rangeHandle)},e.config.onchangeTimeout),t}t.default=o},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),a=o(n(29));(0,i.default)(t,"__esModule",{value:!0});var l=n(2).__importDefault(n(3));n(438),t.default=function(n){var o,i,r=!1;return n.txt.eventHooks.changeEvents.push(function(){r&&(0,a.default)(o).call(o,".w-e-content-preview").html(n.$textElem.html())}),{disable:function(){var e,t;r||(n.$textElem.hide(),e=n.zIndex.get("textContainer"),t=n.txt.html(),o=l.default('
      \n
      '+t+"
      \n
      "),n.$textContainerElem.append(o),t=n.zIndex.get("menu"),i=l.default('
      '),n.$toolbarElem.append(i),r=!0,n.isEnable=!1)},enable:function(){r&&(o.remove(),i.remove(),n.$textElem.show(),r=!1,n.isEnable=!0)}}}},function(e,t,n){var o=n(20),i=n(439);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);n={insert:"head",singleton:!1},o(i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-content-mantle {\n width: 100%;\n height: 100%;\n overflow-y: auto;\n}\n.w-e-content-mantle .w-e-content-preview {\n width: 100%;\n min-height: 100%;\n padding: 0 10px;\n line-height: 1.5;\n}\n.w-e-content-mantle .w-e-content-preview img {\n cursor: default;\n}\n.w-e-content-mantle .w-e-content-preview img:hover {\n box-shadow: none;\n}\n.w-e-menue-mantle {\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});o.prototype.emit=function(){var e,t=this.editor.config.onSelectionChange;t&&((e=this.editor.selection).saveRange(),e.isSelectionEmpty()||t({text:e.getSelectionText(),html:null===(t=e.getSelectionContainerElem())||void 0===t?void 0:t.elems[0].innerHTML,selection:e}))},n=o;function o(e){var t=this;this.editor=e;function n(){document.activeElement===e.$textElem.elems[0]&&t.emit()}window.document.addEventListener("selectionchange",n),this.editor.beforeDestroy(function(){window.document.removeEventListener("selectionchange",n)})}t.default=n},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(128)),a=o(n(94)),l=o(n(4));(0,i.default)(t,"__esModule",{value:!0}),t.registerPlugin=void 0;var u=n(2).__importDefault(n(87)),s=n(6);t.registerPlugin=function(e,t,n){if(!e)throw new TypeError("name is not define");if(!t)throw new TypeError("options is not define");if(!t.intention)throw new TypeError("options.intention is not define");if(t.intention&&"function"!=typeof t.intention)throw new TypeError("options.intention is not function");n[e]&&console.warn("plugin "+e+" 已存在,已覆盖。"),n[e]=t},t.default=function(o){var e=(0,r.default)({},s.deepClone(u.default.globalPluginsFunctionList),s.deepClone(o.pluginsFunctionList)),e=(0,a.default)(e);(0,l.default)(e).call(e,function(e){var t=e[0],n=e[1];console.info("plugin "+t+" initializing");e=n.intention,n=n.config;e(o,n),console.info("plugin "+t+" initialization complete")})}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0})}],i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=141).default;function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var n,o}); \ No newline at end of file diff --git a/Blog.Web/Web.config b/Blog.Web/Web.config index e184fe14a4945940407c7b3051b86b7e46145d46..bfef4564b6f10abf1909561368b4d452b1b03763 100644 --- a/Blog.Web/Web.config +++ b/Blog.Web/Web.config @@ -9,9 +9,9 @@ - - - + + +