!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 n=[function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){e.exports=n(147)},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 v}),n.d(t,"__spread",function(){return A}),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?void 0:e)&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(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]:(o=e)&&(o instanceof HTMLCollection||o instanceof NodeList)?n=A.toArray(e):e instanceof Array?n=e:"string"==typeof e&&(e=(0,l.default)(o=e.replace("/\n/mg","")).call(o),n=0===(0,c.default)(e).call(e,"<")?(o=e,(t=document.createElement("div")).innerHTML=o,t=t.children,A.toArray(t)):(t=e,t=document.querySelectorAll(e),A.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}()||Function("return this")()}.call(this,t(150))},function(e,t,n){var o=n(8),i=n(80),r=n(17),a=n(67),l=n(79),n=n(107),u=i("wks"),s=o.Symbol,c=n?s:s&&s.withoutSetter||a;e.exports=function(e){return r(u,e)&&(l||"string"==typeof u[e])||(l&&r(s,e)?u[e]=s[e]:u[e]=c("Symbol."+e)),u[e]}},function(e,t,n){var o=n(11),i=n(17),r=n(101),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,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var o=n(11);e.exports=function(e){return o[e+"Prototype"]}},function(e,t,n){n=n(12);e.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){e.exports=n(203)},function(e,t,n){var o=n(26),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(o(e),t)}},function(e,t,n){var o=n(15),i=n(108),r=n(20),a=n(64),l=Object.defineProperty;t.f=o?l:function(e,t,n){if(r(e),t=a(t),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(15),i=n(18),r=n(38);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,n){var o=n(13);e.exports=function(e){if(!o(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,i){"use strict";var n,o,l=function(){return n=void 0===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(o),o.on("click",function(){c.remove()}),r=v.default('

    '),a=v.default('
    '),s.append(r).append(a),(o=i.height)&&a.css("height",o+"px").css("overflow-y","auto"),i=i.tabs||[],l=[],u=[],(0,d.default)(i).call(i,function(e,t){var n,o,i;e&&(n=e.title||"",e=e.tpl||"",o=v.default('
  • '+n+"
  • "),r.append(o),i=v.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),(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||A.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=v.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){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var o=n(70),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){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=!0},function(e,t,n){var r=n(34);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,n){function A(e,t){this.stopped=e,this.result=t}var m=n(20),g=n(112),y=n(35),w=n(40),x=n(113),_=n(114);e.exports=function(e,t,n){function o(e){return r&&_(r),new A(!0,e)}function i(e){return d?(m(e),h?v(e[0],e[1],o):v(e[0],e[1])):h?v(e,o):v(e)}var r,a,l,u,s,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=w(t,f,1+d+h);if(p)r=e;else{if("function"!=typeof(p=x(e)))throw TypeError("Target is not iterable");if(g(p)){for(a=0,l=y(e.length);a=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,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){},function(e,t,n){"use strict";var o=n(188).charAt,i=n(30),r=n(43),n=n(90),a="String Iterator",l=r.set,u=r.getterFor(a);n(String,"String",function(e){l(this,{type:a,string:i(e),index:0})},function(){var e=u(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(n=o(t,n),e.index+=n.length,{value:n,done:!1})})},function(e,t,n){var o=n(50);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){var o=n(12),i=n(9),r=n(66),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(233)},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(388)),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 o=n(151),i=n(65);e.exports=function(e){e=o(e,"string");return i(e)?e:String(e)}},function(e,t,n){var o=n(25),n=n(107);e.exports=n?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return"function"==typeof t&&Object(e)instanceof t}},function(e,t,n){var o,i,r=n(8),a=n(52),n=r.process,r=r.Deno,r=n&&n.versions||r&&r.version,r=r&&r.v8;r?i=(o=r.split("."))[0]<4?1:o[0]+o[1]:a&&(!(o=a.match(/Edge\/(\d+)/))||74<=o[1])&&(o=a.match(/Chrome\/(\d+)/))&&(i=o[1]),e.exports=i&&+i},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+o).toString(36)}},function(e,t,n){var o=n(80),i=n(67),r=o("keys");e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){function o(){}function i(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t}var r,a=n(20),l=n(175),u=n(87),s=n(54),c=n(111),f=n(82),n=n(68),d="prototype",p="script",h=n("IE_PROTO"),v=function(e){return"<"+p+">"+e+""},A=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;A="undefined"==typeof document||document.domain&&r?i(r):(e=f("iframe"),t="java"+p+":",e.style.display="none",c.appendChild(e),e.src=String(t),(e=e.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F);for(var n=u.length;n--;)delete A[d][u[n]];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){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0"),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(195);e.exports=function(e,t){return new(o(e))(0===t?0:t)}},function(e,t,n){e.exports=n(196)},function(e,t,n){var o=n(51),i=n(30),n="["+n(74)+"]",r=RegExp("^"+n+n+"*"),a=RegExp(n+n+"*$"),n=function(t){return function(e){e=i(o(e));return 1&t&&(e=e.replace(r,"")),e=2&t?e.replace(a,""):e}};e.exports={start:n(1),end:n(2),trim:n(3)}},function(e,t,n){var o=n(110),i=n(87).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,i)}},function(e,t,n){e.exports=n(216)},function(t,e,n){var o=n(238),i=n(267);function r(e){return t.exports=r="function"==typeof o&&"symbol"==typeof i?function(e){return typeof e}:function(e){return e&&"function"==typeof o&&e.constructor===o&&e!==o.prototype?"symbol":typeof e},t.exports.default=t.exports,t.exports.__esModule=!0,r(e)}t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},function(e,t,n){n=n(9);t.f=n},function(e,t,n){e.exports=n(321)},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,t,n){"use strict";var o=n(0),i=o(n(1)),_=o(n(61)),E=o(n(4)),b=o(n(28));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),C=n(6),S=i.__importDefault(n(140)),M=i.__importDefault(n(141)),n=(r.prototype.insertImg=function(e,t,n){function o(e,t){return i.i18next.t((t=void 0===t?a:t)+e)}var i=this.editor,r=i.config,a="validate.",l=t?'alt="'+t+'" ':"",u=n?'data-href="'+encodeURIComponent(n)+'" ':"";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,v,A,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)&&(v=[],A=[],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(v,(0,_.default)(y=this.insertImg).call(y,this)):(m=new FormData,(0,E.default)(v).call(v,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(25);e.exports=n("document","documentElement")},function(e,t,n){var o=n(9),i=n(42),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(71),i=n(42),r=n(9)("iterator");e.exports=function(e){if(null!=e)return e[r]||e["@@iterator"]||i[o(e)]}},function(e,t,n){var o=n(20);e.exports=function(e){var t=e.return;if(void 0!==t)return o(t.call(e)).value}},function(e,t,n){var n=n(81),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return o.call(e)}),e.exports=n.inspectSource},function(e,t,n){"use strict";var o,i=n(12),r=n(83),a=n(19),l=n(17),u=n(9),s=n(39),c=u("iterator"),n=!1;[].keys&&("next"in(u=[].keys())?(u=r(r(u)))!==Object.prototype&&(o=u):n=!0);i=null==o||i(function(){var e={};return o[c].call(e)!==e});i&&(o={}),s&&!i||l(o,c)||a(o,c,function(){return this}),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:n}},function(e,t,n){n=n(8);e.exports=n.Promise},function(e,t,n){var i=n(56);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(25),i=n(18),r=n(9),a=n(15),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 i=n(9)("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(20),i=n(34),r=n(9)("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){var o,i,r=n(8),a=n(12),l=n(40),u=n(111),s=n(82),c=n(123),f=n(92),d=r.setImmediate,p=r.clearImmediate,h=r.process,v=r.MessageChannel,A=r.Dispatch,m=0,g={},y="onreadystatechange";try{o=r.location}catch(e){}function w(e){return function(){_(e)}}function x(e){_(e.data)}var _=function(e){var t;g.hasOwnProperty(e)&&(t=g[e],delete g[e],t())},n=function(e){r.postMessage(String(e),o.protocol+"//"+o.host)};d&&p||(d=function(e){for(var t=[],n=arguments.length,o=1;o"+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(309)},function(e,t,n){e.exports=n(325)},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),l=o(n(4)),u=o(n(48));(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";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){return!(null==(e=e.selection.getSelectionContainerElem())||!e.length)&&"A"===e.getNodeName()}},function(e,t,n){"use strict";var o=n(0),i=o(n(100)),r=o(n(1)),a=o(n(4));(0,r.default)(t,"__esModule",{value:!0});var l=n(6);t.default=function(e,n){var o=new XMLHttpRequest;if(o.open("POST",e),o.timeout=n.timeout||1e4,o.ontimeout=function(){console.error("wangEditor - 请求超时"),n.onTimeout&&n.onTimeout(o)},o.upload&&(o.upload.onprogress=function(e){var t=e.loaded/e.total;n.onProgress&&n.onProgress(t,e)}),n.headers&&(0,a.default)(l).call(l,n.headers,function(e,t){o.setRequestHeader(e,t)}),o.withCredentials=!!n.withCredentials,n.beforeSend){e=n.beforeSend(o);if(e&&"object"===(0,i.default)(e)&&e.prevent)return e.msg}return o.onreadystatechange=function(){if(4===o.readyState){var t=o.status;if(!(t<200||300<=t&&t<400)){if(400<=t)return console.error("wangEditor - XHR 报错,状态码 "+t),void(n.onError&&n.onError(o));var e,t=o.responseText;if("object"!==(0,i.default)(t))try{e=JSON.parse(t)}catch(e){return console.error("wangEditor - 返回结果不是 JSON 格式",t),void(n.onFail&&n.onFail(o,t))}else e=t;n.onSuccess(o,e)}}},o.send(n.formData||null),o}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(357)),a=o(n(48));(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(49),s=o.__importStar(n(386));(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(410)},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(32));(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(154),n(156),n(160),n(162),n(164),n(166),n(168);var i=o.__importDefault(n(94));o.__exportStar(n(458),t);try{document}catch(e){throw new Error("请在浏览器环境下运行")}t.default=i.default},function(e,t,n){n=n(148);e.exports=n},function(e,t,n){n(149);var o=n(11).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(15);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(13),i=n(65),r=n(152),a=n(9)("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n=e[a];if(void 0===n)return r(e,t=void 0===t?"number":t);if(t=n.call(e,t=void 0===t?"default":t),!o(t)||i(t))return t;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var i=n(13);e.exports=function(e,t){var n,o;if("string"===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("string"!==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,n){var o=n(8);e.exports=function(t,n){try{Object.defineProperty(o,t,{value:n,configurable:!0,writable:!0})}catch(e){o[t]=n}return n}},function(e,t,n){var o=n(21),i=n(155),n={insert:"head",singleton:!1};o(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!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(21),i=n(157),n={insert:"head",singleton:!1};o(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i,n);e.exports=i.locals||{}},function(e,t,n){var o=n(22),i=n(158),n=n(159);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(21),i=n(161),n={insert:"head",singleton:!1};o(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!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(21),i=n(163),n={insert:"head",singleton:!1};o(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!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}\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(21),i=n(165),n={insert:"head",singleton:!1};o(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!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(21),i=n(167),n={insert:"head",singleton:!1};o(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!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(169));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-1n;){var o,r,a,l=h[n++],u=t?l.ok:l.fail,s=l.resolve,c=l.reject,f=l.domain;try{u?(t||(d.rejection===te&&function(t){b.call(v,function(){var e=t.facade;if(R)$.emit("rejectionHandled",e);else re(q,e,t.value)})}(d),d.rejection=ee),!0===u?o=e:(f&&f.enter(),o=u(e),f&&(f.exit(),a=!0)),o===l.promise?c(Y("Promise-chain cycle")):(r=oe(o))?r.call(o,s,c):s(o)):c(e)}catch(e){f&&!a&&f.exit(),c(e)}}d.reactions=[],d.notified=!1,p&&!d.rejection&&(i=d,b.call(v,function(){var e,t=i.facade,n=i.value,o=ae(i);if(o&&(e=N(function(){R?$.emit("unhandledRejection",n,t):re(W,t,n)}),i.rejection=R||ae(i)?te:ee,e.error))throw e.value}))}))},re=function(e,t,n){var o,i;J?((o=z.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),v.dispatchEvent(o)):o={promise:t,reason:n},!K&&(i=v["on"+e])?i(o):e===W&&M("Unhandled promise rejection",n)},ae=function(e){return e.rejection!==ee&&!e.parent},le=function(t,n,o){return function(e){t(n,e,o)}},ue=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=Z,ie(e,!0))},se=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw Y("Promise can't be resolved itself");var o=oe(e);o?C(function(){var t={done:!1};try{o.call(e,le(se,t,n),le(ue,t,n))}catch(e){ue(t,e,n)}}):(n.value=e,n.state=X,ie(n,!1))}catch(e){ue({done:!1},e,n)}}};if(T&&(U=(j=function(e){y(this,j,F),g(e),o.call(this);var t=L(this);try{e(le(se,t),le(ue,t))}catch(e){ue(t,e)}}).prototype,(o=function(e){O(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(U,{then:function(e,t){var n=Q(this),o=V(E(this,j));return o.ok="function"!=typeof e||e,o.fail="function"==typeof t&&t,o.domain=R?$.domain:void 0,n.parent=!0,n.reactions.push(o),0!=n.state&&ie(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new o,t=L(e);this.promise=e,this.resolve=le(se,t),this.reject=le(ue,t)},D.f=V=function(e){return e===j||e===r?new i:G(e)},!u&&"function"==typeof c&&k!==Object.prototype)){a=k.then,ne||(f(k,"then",function(e,t){var n=this;return new j(function(e,t){a.call(n,e,t)}).then(e,t)},{unsafe:!0}),f(k,"catch",U.catch,{unsafe:!0}));try{delete k.constructor}catch(e){}p&&p(k,U)}l({global:!0,wrap:!0,forced:T},{Promise:j}),h(j,F,!1,!0),A(F),r=s(F),l({target:F,stat:!0,forced:T},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),l({target:F,stat:!0,forced:u||T},{resolve:function(e){return S(u&&this===r?j:this,e)}}),l({target:F,stat:!0,forced:_},{all:function(e){var l=this,t=V(l),u=t.resolve,s=t.reject,n=N(function(){var o=g(l.resolve),i=[],r=0,a=1;x(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=V(n),i=o.reject,t=N(function(){var t=g(n.resolve);x(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(77).f,p=n(122).set,h=n(123),v=n(181),A=n(182),m=n(92),g=f.MutationObserver||f.WebKitMutationObserver,y=f.document,w=f.process,n=f.Promise,d=d(f,"queueMicrotask"),d=d&&d.value;d||(o=function(){var e,t;for(m&&(e=w.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=h||m||A||!g||!y?!v&&n&&n.resolve?((s=n.resolve(void 0)).constructor=n,c=s.then,function(){c.call(s,o)}):m?function(){w.nextTick(o)}:function(){p.call(f,o)}:(l=!0,u=y.createTextNode(""),new g(o).observe(u,{characterData:!0}),function(){u.data=l=!l})),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(52),n=n(8);e.exports=/ipad|iphone|ipod/i.test(o)&&void 0!==n.Pebble},function(e,t,n){n=n(52);e.exports=/web0s(?!.*chrome)/i.test(n)},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){e.exports="object"==typeof window},function(e,t,n){"use strict";var o=n(5),s=n(34),i=n(72),r=n(93),c=n(41);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),f=n(34),d=n(25),i=n(72),r=n(93),p=n(41),h="No one promise resolved";o({target:"Promise",stat:!0},{any:function(e){var u=this,t=i.f(u),s=t.resolve,c=t.reject,n=r(function(){var o=f(u.resolve),i=[],r=0,a=1,l=!1;p(e,function(e){var t=r++,n=!1;i.push(void 0),a++,o.call(u,e).then(function(e){n||l||(l=!0,s(e))},function(e){n||l||(n=!0,i[t]=e,--a||c(new(d("AggregateError"))(i,h)))})}),--a||c(new(d("AggregateError"))(i,h))});return n.error&&c(n.value),t.promise}})},function(e,t,n){"use strict";var o=n(5),i=n(39),r=n(117),a=n(12),l=n(25),u=n(121),s=n(124),n=n(56);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||(i=l("Promise").prototype.finally,r.prototype.finally!==i&&n(r.prototype,"finally",i,{unsafe:!0}))},function(e,t,n){var a=n(70),l=n(30),u=n(51),n=function(r){return function(e,t){var n,o=l(u(e)),i=a(t),e=o.length;return i<0||e<=i?r?"":void 0:(t=o.charCodeAt(i))<55296||56319>>0||(l.test(e)?16:10))}:a},function(e,t,n){n=n(277);e.exports=n},function(e,t,n){var o=n(278),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(279);n=n(14);e.exports=n("Array").slice},function(e,t,n){"use strict";var o=n(5),s=n(13),c=n(59),f=n(86),d=n(35),p=n(29),h=n(75),i=n(9),n=n(60)("slice"),v=i("species"),A=[].slice,m=Math.max;o({target:"Array",proto:!0,forced:!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)&&((n="function"==typeof(n=r.constructor)&&(n===Array||c(n.prototype))||s(n)&&null===(n=n[v])?void 0:n)===Array||void 0===n))return A.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-=1));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(v.EMPTY_P_LAST_REGEX,"")).replace(v.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=v.EMPTY_P),0!==(0,u.default)(e).call(e,"<")&&(e="

      "+e+"

      "),n.html(e),t.initSelection()},A.prototype.setJSON=function(e){var t=h.default(e).children(),e=this.editor.$textElem;t&&e.replaceChildAll(t)},A.prototype.getJSON=function(){var e=this.editor.$textElem;return p.default(e)},A.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()},A.prototype.append=function(e){var t=this.editor;0!==(0,u.default)(e).call(e,"<")&&(e="

      "+e+"

      "),this.html(this.html()+e),t.initSelection()},A.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)})},A.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);(t="HR"===e.getNodeName()?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)}))})},A);function A(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(299);e.exports=n},function(e,t,n){var o=n(300),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(301);n=n(14);e.exports=n("Array").find},function(e,t,n){"use strict";var o=n(5),i=n(31).find,n=n(89),r=!0;"find"in[]&&Array(1).find(function(){r=!1}),o({target:"Array",proto:!0,forced:r},{find:function(e){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(16)),a=o(n(46));(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),i.selection.createRangeByElem(e,!1,!0),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(16));(0,i.default)(t,"__esModule",{value:!0});var f=n(135),d=n(6),p=n(7);function h(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(c,e){e.push(function(e){var t=c.config,n=t.pasteFilterStyle,o=t.pasteIgnoreImg,i=t.pasteTextHandle,r=f.getPasteHtml(e,n,o),a=(a=f.getPasteText(e)).replace(/\n/gm,"
      "),l=c.selection.getSelectionContainerElem();if(l){t=null==l?void 0:l.getNodeName(),o=null==l?void 0:l.getNodeTop(c),e="";if(o.elems[0]&&(e=null==o?void 0:o.getNodeName()),"CODE"===t||"PRE"===e)return i&&d.isFunction(i)&&(a=""+(i(a)||"")),void c.cmd.do("insertHTML",a.replace(/
      |/gm,"\n").replace(/<[^>]+>/gm,""));if(p.urlRegex.test(a)&&n){i&&d.isFunction(i)&&(a=""+(i(a)||""));t=p.urlRegex.exec(a)[0],e=a.replace(p.urlRegex,"");return c.cmd.do("insertHTML",''+t+""+e)}if(r)try{if(i&&d.isFunction(i)&&(r=""+(i(r)||"")),/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(r)&&n)c.cmd.do("insertHTML",""+h(a));else{var u=h(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)}}(u)){var s=c.$textElem;if(c.cmd.do("insertHTML",u),s.equal(l))return void c.selection.createEmptyRange();!function(e){if(null!=e&&e.length){e=e.elems[0];return"P"===e.nodeName&&"
      "===e.innerHTML}}(o)||o.remove()}else/^]*src=['"]([^'"]+)[^>]*>$/g.test(u)||c.cmd.do("insertHTML",u)}}catch(e){i&&d.isFunction(i)&&(a=""+(i(a)||"")),c.cmd.do("insertHTML",""+h(a))}}})}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(16)),c=o(n(4)),f=o(n(46));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),d=n(308),p=i.__importDefault(n(312));function h(e,t){var n;return e=(0,r.default)(n=e.toLowerCase()).call(n),d.IGNORE_TAGS.has(e)||!(!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+'"')}),t=t=(t=0",u.push(t))},characters:function(e){e&&(h(t,l)||u.push(e))},endElement:function(e){h(e,l)||(u.push(""),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(136)),n=o(n(125));(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){var o=n(310);n(45),e.exports=o},function(e,t,n){n(55),n(57),n(311),n(58);n=n(11);e.exports=n.Set},function(e,t,n){"use strict";var o=n(126),n=n(129);e.exports=o("Set",function(e){return function(){return e(this,arguments.length?arguments[0]: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=A.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(28)),a=o(n(32)),d=o(n(4)),l=o(n(332)),u=o(n(46));(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(333)},function(e,t,n){n=n(334);e.exports=n},function(e,t,n){n(335);var o=n(11);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(25),n=n(12),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(16));(0,i.default)(t,"__esModule",{value:!0});var a,o=n(2),i=o.__importDefault(n(36)),l=o.__importDefault(n(3)),u=o.__importDefault(n(337)),s=o.__importDefault(n(139)),c=o.__importDefault(n(33)),f=o.__importDefault(n(339)),d=n(7),o=(a=i.default,o.__extends(p,a),p.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getSelectionContainerElem(),n=e.$textElem,o=n.html();(0,r.default)(o).call(o)===d.EMPTY_P&&(n=n.children(),e.selection.createRangeByElem(n,!0,!0),t=e.selection.getSelectionContainerElem()),t&&e.$textElem.equal(t)||(this.isActive?(t=e.selection.getSelectionContainerElem())&&this.createPanel(t.text(),t.attr("href")):e.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(e.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)),f=o(n(16));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),a=n(6),d=i.__importDefault(n(3)),p=i.__importDefault(n(139)),h=n(338);t.default=function(l,e,t){var n,u=a.getRandom("input-link"),s=a.getRandom("input-text"),o=a.getRandom("btn-ok"),i=a.getRandom("btn-del"),r=p.default(l)?"inline-block":"none";function c(){var e;!p.default(l)||(e=l.selection.getSelectionContainerElem())&&(l.selection.createRangeByElem(e),l.selection.restoreSelection(),n=e)}return{width:300,height:0,tabs:[{title:l.i18next.t("menus.panelMenus.link.链接"),tpl:'
      \n \n \n \n \n
      \n \n \n
      \n
      ",events:[{selector:"#"+o,type:"click",fn:function(){l.selection.restoreSelection();var e=l.selection.getSelectionRangeTopNodes()[0].getNode(),t=window.getSelection(),n=d.default("#"+u),o=d.default("#"+s),n=(0,f.default)(i=n.val()).call(i),o=(0,f.default)(i=o.val()).call(i),i="",t=null==(i=t&&(null==t||!t.isCollapsed)?null===(r=h.insertHtml(t,e))||void 0===r?void 0:(0,f.default)(r).call(r):i)?void 0:i.replace(/<.*?>/g,""),r=null!==(e=null==t?void 0:t.length)&&void 0!==e?e:0;if(r<=o.length&&(e=o.substring(0,r),a=o.substring(r),t===e&&(o=i+a)),n){var a,o=o||n;if(function(e,t){if(void 0!==(t=l.config.linkCheck(e,t))){if(!0===t)return 1;l.config.customAlert(t,"warning")}}(o,n))return a=o,o=n,n=new RegExp(/(<\/*ul>)|(<\/*li>)|(<\/*ol>)/g),a=a.replace(n,""),p.default(l)&&c(),l.cmd.do("insertHTML",''+a+""),!0}},bindEnter:!0},{selector:"#"+i,type:"click",fn:function(){var e;return p.default(l)&&(c(),e=n.text(),l.cmd.do("insertHTML",""+e+"")),!0}}]}]}}},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&&"P"!==(null==(n=(o=n).parentNode?null==n?void 0:n.parentNode: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 v(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.textContent!==e;);return l}function A(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=v,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&&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 A(l,v(a,n,i,r));for(n&&(e=v(a,n,null!=i?i:0)),o&&(s=v(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 A(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(340));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(37));function a(n){var o;return{showLinkTooltip:function(e){var t=[{$elem:i.default(""+n.i18next.t("menus.panelMenus.link.查看链接")+""),onClick:function(e,t){t=t.attr("href");return window.open(t,"_target"),!0}},{$elem:i.default(""+n.i18next.t("menus.panelMenus.link.取消链接")+""),onClick:function(e,t){e.selection.createRangeByElem(t),e.selection.restoreSelection();var n=t.childNodes();return"IMG"===(null==n?void 0:n.getNodeName())?(n=null===(n=null===(n=e.selection.getSelectionContainerElem())||void 0===n?void 0:n.children())||void 0===n?void 0:n.elems[0].children[0],e.cmd.do("insertHTML","")):(t=t.text(),e.cmd.do("insertHTML",""+t+"")),!0}}];(o=new r.default(n,e,t)).create()},hideLinkTooltip:function(){o&&(o.remove(),o=null)}}}t.default=function(e){var t=(n=a(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(345)),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(347)),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(28));(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=["UL","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(350)),s=o.__importDefault(n(351)),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(27));(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(27));(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(36)),u=i.__importDefault(n(355)),s=i.__importDefault(n(361)),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(16));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),s=n(6),c=i.__importDefault(n(3)),f=i.__importDefault(n(356)),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(137)),x=o(n(61)),_=o(n(4)),E=o(n(28));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),b=n(6),C=i.__importDefault(n(140)),S=i.__importDefault(n(141)),a=n(7),l=n(6),n=(r.prototype.uploadVideo=function(e){var o,i,r,a,l,t,n,u,s,c,f,d,p,h,v,A,m,g,y=this;e.length&&(o=this.editor,i=o.config,r=function(e){return o.i18next.t("validate."+e)},A=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",''+a.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)},r);function r(e){this.editor=e}t.default=n},function(e,t,n){e.exports=n(358)},function(e,t,n){n=n(359);e.exports=n},function(e,t,n){n(360);n=n(11);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(362)),r=o.__importDefault(n(364));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(37)),l=o.__importDefault(n(363));function i(n){function o(e,t){return n.i18next.t((t=void 0===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(46));(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(27));(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(36)),c=o.__importDefault(n(366)),f=o.__importDefault(n(379)),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(367)),r=o.__importDefault(n(368)),a=o.__importDefault(n(369)),l=o.__importDefault(n(377)),u=o.__importDefault(n(378));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(135),a=o.__importDefault(n(104));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,(A=a).on("click",function(e){e.stopPropagation()}),A.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)(A).call(A,".w-e-img-drag-show-size").text(s.toFixed(2).replace(".00","")+"px * "+c.toFixed(2).replace(".00","")+"px"),x(A,s,c,a,l)}function h(){v.attr("width",s+""),v.attr("height",c+"");var e=v.getBoundingClientRect();x(A,s,c,e.left-o.left,e.top-o.top),d()}e.preventDefault(),v&&(t=e.clientX,n=e.clientY,o=m.getBoundingClientRect(),e=v.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=v=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(371)},function(e,t,n){n=n(372);e.exports=n},function(e,t,n){n(373);n=n(11);e.exports=n.parseFloat},function(e,t,n){var o=n(5),n=n(374);o({global:!0,forced:parseFloat!=n},{parseFloat:n})},function(e,t,n){var o=n(8),i=n(30),r=n(97).trim,n=n(74),a=o.parseFloat,n=1/a(n+"-0")!=-1/0;e.exports=n?function(e){var t=r(i(e)),e=a(t);return 0===e&&"-"==t.charAt(0)?-0:e}:a},function(e,t,n){var o=n(21),i=n(376),n={insert:"head",singleton:!1};o(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!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(37));function i(n){function o(e,t){return n.i18next.t((t=void 0===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)),v=o(n(27)),A=o(n(16));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),m=i.__importDefault(n(3)),g=n(6),y=i.__importDefault(n(104));t.default=function(n){function e(e,t){return n.i18next.t((t=void 0===t?"menus.panelMenus.image.":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,v.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,A.default)(n=n.val()).call(n);if(n&&(o.showLinkImgAlt&&(e=(0,A.default)(e=m.default("#"+u).val()).call(e)),o.showLinkImgHref&&(t=(0,A.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(381)),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(47)),a=o(n(16));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),l=i.__importDefault(n(382)),u=i.__importDefault(n(383)),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(47));(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(47));(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(36)),l=i.__importDefault(n(33)),u=i.__importDefault(n(385)),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(27)),a=o(n(76)),l=o(n(16));(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(387)),l=i.__importDefault(n(389)),u=i.__importDefault(n(390)),s=i.__importDefault(n(391)),i=i.__importDefault(n(392));(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)),v=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var r,o=n(2),A=o.__importDefault(n(3)),i=n(62),m=n(49),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)?A.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,v.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,v.default)(d).call(d,function(e){h.append(e.elems[0])}),A.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,v.default)(p=null==i?void 0:i.children()).call(p,function(e){l.push(A.default(e))}),u===n?t=m.createElementFragment(l,m.createDocumentFragment(),"p"):(t=m.createElement(o),(0,v.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(62),y=n(49),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'+e.innerHTML+""}),r&&this.action(r,i),u=l.elems[0],void this.setRange(u.children[p[0]],u.children[p[1]])}u=this.getDom(u),-1!==(0,E.default)(o).call(o,b.default(u).getNodeName())&&(s=u.getAttribute("style"),c=s?s.split(";"):[],null!=e&&e.selectAllChildren(u),i.selection.saveRange(),t?(f=s?this.styleProcessing(c)+"line-height:"+t+";":"line-height:"+t+";",r="<"+b.default(u).getNodeName().toLowerCase()+' style="'+f+'">'+u.innerHTML+"","BLOCKQUOTE"===b.default(u).getNodeName()||C.UA.isIE()?b.default(u).css("line-height",t):this.action(r,i)):s&&(f=this.styleProcessing(c),r=""===f?"<"+b.default(u).getNodeName().toLowerCase()+">"+u.innerHTML+"":"<"+b.default(u).getNodeName().toLowerCase()+' style="'+f+'">'+u.innerHTML+"",this.action(r,i)))}},l.prototype.getDom=function(e){e=b.default(e).elems[0];return e.parentNode?e=function e(t,n){var o=b.default(t.parentNode);return n.$textElem.equal(o)?t:e(o.elems[0],n)}(e,this.editor):e},l.prototype.action=function(e,t){t.cmd.do("insertHTML",e)},l.prototype.styleProcessing=function(e){var t="";return(0,_.default)(e).call(e,function(e){""!==e&&-1===(0,E.default)(e).call(e,"line-height")&&(t=t+e+";")}),t},l.prototype.setRange=function(e,t){var n=this.editor,o=(window.getSelection?window:document).getSelection();null!=o&&o.removeAllRanges();var i=document.createRange(),t=t;i.setStart(e,0),i.setEnd(t,1),null!=o&&o.addRange(i),n.selection.saveRange(),null!=o&&o.removeAllRanges(),n.selection.restoreSelection()},l.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionContainerElem();t&&e.$textElem.equal(t)||0!==(e=b.default(e.selection.getSelectionStartElem())).length&&((e=(e=this.getDom(e.elems[0])).getAttribute("style")?e.getAttribute("style"):"")&&-1!==(0,E.default)(e).call(e,"line-height")?this.active():this.unActive())},l);function l(t){var n=this,e=b.default('
      \n \n
      '),o={width:100,title:"设置行高",type:"list",list:new a.default(t,t.config.lineHeights).getItemList(),clickHandler:function(e){t.selection.saveRange(),n.command(e)}};return n=r.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(36)),a=i.__importDefault(n(3)),l=i.__importDefault(n(398)),u=i.__importDefault(n(33)),s=i.__importDefault(n(407)),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(399));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),l=n(6),u=i.__importDefault(n(3));n(404);var s=i.__importDefault(n(406));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(400)},function(e,t,n){n=n(401);e.exports=n},function(e,t,n){n(402);n=n(11);e.exports=n.Number.isInteger},function(e,t,n){n(5)({target:"Number",stat:!0},{isInteger:n(403)})},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(21),i=n(405),n={insert:"head",singleton:!1};o(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!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(408)),i=n(416);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(37)),u=o.__importDefault(n(409)),r=o.__importDefault(n(415)),s=n(7);function a(n){var o;return{showTableTooltip:function(e){var a=new r.default(n),t=function(e,t){return n.i18next.t((t=void 0===t?"menus.panelMenus.table.":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(47)),u=o(n(99)),s=o(n(4)),c=o(n(143));(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(27));(0,i.default)(t,"__esModule",{value:!0}),t.formatCodeHtml=void 0;var o=n(2),i=o.__importDefault(n(36)),r=o.__importDefault(n(3)),l=n(6),u=o.__importDefault(n(418)),s=o.__importDefault(n(144)),c=o.__importDefault(n(33)),f=o.__importDefault(n(419));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(27));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),c=n(6),f=i.__importDefault(n(3)),d=i.__importDefault(n(144)),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){var t;d.default(o)&&d.default(o)&&((t=null==(t=o.selection.getSelectionStartElem())?void 0:t.getNodeTop(o))&&(o.selection.createRangeByElem(t),o.selection.restoreSelection())),(null===(t=o.selection.getSelectionStartElem())||void 0===t?void 0:t.elems[0].innerHTML)&&o.cmd.do("insertHTML",p.EMPTY_P),o.cmd.do("insertHTML",e);e=o.selection.getSelectionStartElem(),e=null==e?void 0:e.getNodeTop(o);0===(null==e?void 0:e.getNextSibling().elems.length)&&f.default(p.EMPTY_P).insertAfter(e)}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(),n=e.value,e=o.highlight?o.highlight.highlightAuto(n).value:""+n+"";if(n)return!d.default(o)&&(l('
      '+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(420)),r=o.__importDefault(n(421));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(37));function i(o){var i;return{showCodeTooltip:function(e){var t,n=[{$elem:r.default(""+(n="删除代码",o.i18next.t((t=void 0===t?"menus.panelMenus.code.":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(423)),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(424));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(37));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(105),s=o.__importDefault(n(431)),c=o.__importDefault(n(145)),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(427)},function(e,t,n){n=n(428);e.exports=n},function(e,t,n){var o=n(429),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(430);n=n(14);e.exports=n("Array").every},function(e,t,n){"use strict";var o=n(5),i=n(31).every;o({target:"Array",proto:!0,forced:!n(73)("every")},{every:function(e){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)&&A.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()&&(A.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=A.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=A.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,v.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(134)),p="1px solid #c9d8db",h="#FFF",v="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",v),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=(n=e.config).lang,n=n.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:t,defaultNS:"wangEditor",resources:n})}catch(e){throw new Error("i18next:"+e)}}},function(e,o,t){"use strict";var n=t(0),i=n(t(1)),r=n(t(32));(0,i.default)(o,"__esModule",{value:!0}),o.setUnFullScreen=o.setFullScreen=void 0;var a=t(2).__importDefault(t(3));t(437);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(21),i=n(438),n={insert:"head",singleton:!1};o(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!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(32));(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(133)),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(76)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var o=n(2),i=o.__importDefault(n(442)),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(444)),a=i.__importDefault(n(451)),l=i.__importDefault(n(452)),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(445)),r=o.__importDefault(n(449)),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(106)),a=i.__importDefault(n(447)),l=n(448),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(28));(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 v=["UL","OL","H1","H2","H3","H4","H5","H6"];function A(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(106)),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(106)),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(32));(0,i.default)(t,"__esModule",{value:!0});var l=n(2).__importDefault(n(3));n(454),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(21),i=n(455),n={insert:"head",singleton:!1};o(i="string"==typeof(i=i.__esModule?i.default:i)?[[e.i,i,""]]:i,n);e.exports=i.locals||{}},function(e,t,n){(t=n(22)(!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(132)),a=o(n(102)),l=o(n(4));(0,i.default)(t,"__esModule",{value:!0}),t.registerPlugin=void 0;var u=n(2).__importDefault(n(94)),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})}],o={},i.m=n,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=146).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});