UNPKG

wangeditor

Version:

wangEditor - 轻量级 web 富文本编辑器,配置方便,使用简单,开源免费

16 lines (14 loc) 262 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.wangEditor=t():e.wangEditor=t()}(window,function(){return o={},i.m=n=[function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){e.exports=n(142)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return i}),n.d(t,"__assign",function(){return r}),n.d(t,"__rest",function(){return a}),n.d(t,"__decorate",function(){return l}),n.d(t,"__param",function(){return u}),n.d(t,"__metadata",function(){return s}),n.d(t,"__awaiter",function(){return c}),n.d(t,"__generator",function(){return f}),n.d(t,"__createBinding",function(){return d}),n.d(t,"__exportStar",function(){return p}),n.d(t,"__values",function(){return h}),n.d(t,"__read",function(){return A}),n.d(t,"__spread",function(){return v}),n.d(t,"__spreadArrays",function(){return m}),n.d(t,"__spreadArray",function(){return g}),n.d(t,"__await",function(){return y}),n.d(t,"__asyncGenerator",function(){return w}),n.d(t,"__asyncDelegator",function(){return x}),n.d(t,"__asyncValues",function(){return _}),n.d(t,"__makeTemplateObject",function(){return E}),n.d(t,"__importStar",function(){return C}),n.d(t,"__importDefault",function(){return S}),n.d(t,"__classPrivateFieldGet",function(){return M}),n.d(t,"__classPrivateFieldSet",function(){return D}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n}function l(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;0<=l;l--)(i=e[l])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}function u(n,o){return function(e,t){o(e,t,n)}}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,a,l,u){return new(l=l||Promise)(function(n,t){function o(e){try{r(u.next(e))}catch(e){t(e)}}function i(e){try{r(u.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof l?t:new l(function(e){e(t)})).then(o,i)}r((u=u.apply(e,a||[])).next())})}function f(n,o){var i,r,a,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,r&&(a=2&t[0]?r.return:t[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,t[1])).done)return a;switch(r=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return l.label++,{value:t[1],done:!1};case 5:l.label++,r=t[1],t=[0];continue;case 7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){l.label=t[1];break}if(6===t[0]&&l.label<a[1]){l.label=a[1],a=t;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(t);break}a[2]&&l.ops.pop(),l.trys.pop();continue}t=o.call(n,l)}catch(e){t=[6,e],r=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}}var d=Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]};function p(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||d(t,e,n)}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function A(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(A(arguments[t]));return e}function m(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var o=Array(e),i=0,t=0;t<n;t++)for(var r=arguments[t],a=0,l=r.length;a<l;a++,i++)o[i]=r[a];return o}function g(e,t){for(var n=0,o=t.length,i=e.length;n<o;n++,i++)e[i]=t[n];return e}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),r=[],a={};return o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a;function o(o){i[o]&&(a[o]=function(n){return new Promise(function(e,t){1<r.push([o,n,e,t])||l(o,n)})})}function l(e,t){try{(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(u,s):c(r[0][2],n)}catch(e){c(r[0][3],e)}var n}function u(e){l("next",e)}function s(e){l("throw",e)}function c(e,t){e(t),r.shift(),r.length&&l(r[0][0],r[0][1])}}function x(o){var i,e={};return t("next"),t("throw",function(e){throw e}),t("return"),e[Symbol.iterator]=function(){return this},e;function t(t,n){e[t]=o[t]?function(e){return(i=!i)?{value:y(o[t](e)),done:"return"===t}:n?n(e):e}:n}}function _(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=a[Symbol.asyncIterator];return t?t.call(a):(a=h(a),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=a[r]&&function(i){return new Promise(function(e,t){var n,o;i=a[r](i),n=e,e=t,o=i.done,t=i.value,Promise.resolve(t).then(function(e){n({value:e,done:o})},e)})}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var b=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&d(t,e,n);return b(t,e),t}function S(e){return e&&e.__esModule?e:{default:e}}function M(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function D(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(89)),u=o(n(4)),a=o(n(26)),l=o(n(17)),s=o(n(121)),c=o(n(27)),f=o(n(91)),d=o(n(70)),p=o(n(28)),h=o(n(57));(0,i.default)(t,"__esModule",{value:!0}),t.DomElement=void 0;var A=n(2),v=n(6),m=[];function g(e){var t=[],n=[],t=(0,r.default)(e)?e:e.split(";");return(0,u.default)(t).call(t,function(e){e=(0,a.default)(e=e.split(":")).call(e,function(e){return(0,l.default)(e).call(e)});2===e.length&&n.push(e[0]+":"+e[1])}),n}var y=((0,i.default)(w.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),w.prototype.forEach=function(e){for(var t=0;t<this.length;t++){var n=this.elems[t];if(!1===e.call(n,n,t))break}return this},w.prototype.clone=function(t){var e;void 0===t&&(t=!1);var n=[];return(0,u.default)(e=this.elems).call(e,function(e){n.push(e.cloneNode(!!t))}),x(n)},w.prototype.get=function(e){void 0===e&&(e=0);var t=this.length;return t<=e&&(e%=t),x(this.elems[e])},w.prototype.first=function(){return this.get(0)},w.prototype.last=function(){var e=this.length;return this.get(e-1)},w.prototype.on=function(n,o,i){return n?("function"==typeof o&&(i=o,o=""),(0,u.default)(this).call(this,function(e){var t;o?(t=function(e){var t=e.target;t.matches(o)&&i.call(t,e)},e.addEventListener(n,t),m.push({elem:e,selector:o,fn:i,agentFn:t})):e.addEventListener(n,i)})):this},w.prototype.off=function(r,a,l){return r?("function"==typeof a&&(l=a,a=""),(0,u.default)(this).call(this,function(e){if(a){for(var t,n=-1,o=0;o<m.length;o++){var i=m[o];if(i.selector===a&&i.fn===l&&i.elem===e){n=o;break}}-1!==n&&(t=(0,f.default)(m).call(m,n,1)[0].agentFn,e.removeEventListener(r,t))}else e.removeEventListener(r,l)})):this},w.prototype.attr=function(t,n){return null==n?this.elems[0].getAttribute(t)||"":(0,u.default)(this).call(this,function(e){e.setAttribute(t,n)})},w.prototype.removeAttr=function(t){(0,u.default)(this).call(this,function(e){e.removeAttribute(t)})},w.prototype.addClass=function(n){return n?(0,u.default)(this).call(this,function(e){var t;e.className?(t=e.className.split(/\s/),t=(0,d.default)(t).call(t,function(e){return!!(0,l.default)(e).call(e)}),(0,c.default)(t).call(t,n)<0&&t.push(n),e.className=t.join(" ")):e.className=n}):this},w.prototype.removeClass=function(n){return n?(0,u.default)(this).call(this,function(e){var t;e.className&&(t=e.className.split(/\s/),t=(0,d.default)(t).call(t,function(e){return!(!(e=(0,l.default)(e).call(e))||e===n)}),e.className=t.join(" "))}):this},w.prototype.hasClass=function(e){if(!e)return!1;var t=this.elems[0];if(!t.className)return!1;t=t.className.split(/\s/);return(0,p.default)(t).call(t,e)},w.prototype.css=function(n,e){var o=""==e?"":n+":"+e+";";return(0,u.default)(this).call(this,function(e){var t=(0,l.default)(t=e.getAttribute("style")||"").call(t);t?(t=g(t),t=(0,a.default)(t).call(t,function(e){return 0===(0,c.default)(e).call(e,n)?o:e}),""!=o&&(0,c.default)(t).call(t,o)<0&&t.push(o),""==o&&(t=g(t)),e.setAttribute("style",t.join("; "))):e.setAttribute("style",o)})},w.prototype.getBoundingClientRect=function(){return this.elems[0].getBoundingClientRect()},w.prototype.show=function(){return this.css("display","block")},w.prototype.hide=function(){return this.css("display","none")},w.prototype.children=function(){var e=this.elems[0];return e?x(e.children):null},w.prototype.childNodes=function(){var e=this.elems[0];return e?x(e.childNodes):null},w.prototype.replaceChildAll=function(e){for(var t=this.getNode(),n=this.elems[0];n.hasChildNodes();)t.firstChild&&n.removeChild(t.firstChild);this.append(e)},w.prototype.append=function(e){return(0,u.default)(this).call(this,function(t){(0,u.default)(e).call(e,function(e){t.appendChild(e)})})},w.prototype.remove=function(){return(0,u.default)(this).call(this,function(e){var t;e.remove?e.remove():(t=e.parentElement)&&t.removeChild(e)})},w.prototype.isContain=function(e){var t=this.elems[0],e=e.elems[0];return t.contains(e)},w.prototype.getNodeName=function(){return this.elems[0].nodeName},w.prototype.getNode=function(e){return void 0===e&&(e=0),this.elems[e]},w.prototype.find=function(e){return x(this.elems[0].querySelectorAll(e))},w.prototype.text=function(t){return t?(0,u.default)(this).call(this,function(e){e.innerHTML=t}):this.elems[0].innerHTML.replace(/<[^>]+>/g,function(){return""})},w.prototype.html=function(e){var t=this.elems[0];return e?(t.innerHTML=e,this):t.innerHTML},w.prototype.val=function(){var e=this.elems[0];return(0,l.default)(e=e.value).call(e)},w.prototype.focus=function(){return(0,u.default)(this).call(this,function(e){e.focus()})},w.prototype.prev=function(){return x(this.elems[0].previousElementSibling)},w.prototype.next=function(){return x(this.elems[0].nextElementSibling)},w.prototype.getNextSibling=function(){return x(this.elems[0].nextSibling)},w.prototype.parent=function(){return x(this.elems[0].parentElement)},w.prototype.parentUntil=function(e,t){t=t||this.elems[0];if("BODY"===t.nodeName)return null;t=t.parentElement;return null===t?null:t.matches(e)?x(t):this.parentUntil(e,t)},w.prototype.parentUntilEditor=function(e,t,n){n=n||this.elems[0];if(x(n).equal(t.$textContainerElem)||x(n).equal(t.$toolbarElem))return null;n=n.parentElement;return null===n?null:n.matches(e)?x(n):this.parentUntilEditor(e,t,n)},w.prototype.equal=function(e){return e instanceof w?this.elems[0]===e.elems[0]:e instanceof HTMLElement&&this.elems[0]===e},w.prototype.insertBefore=function(e){var n=x(e).elems[0];return n?(0,u.default)(this).call(this,function(e){var t=n.parentNode;null!=t&&t.insertBefore(e,n)}):this},w.prototype.insertAfter=function(e){var n=x(e).elems[0],o=n&&n.nextSibling;return n?(0,u.default)(this).call(this,function(e){var t=n.parentNode;o?t.insertBefore(e,o):t.appendChild(e)}):this},w.prototype.data=function(e,t){if(null==t)return this.dataSource.get(e);this.dataSource.set(e,t)},w.prototype.getNodeTop=function(e){if(this.length<1)return this;var t=this.parent();return e.$textElem.equal(this)||e.$textElem.equal(t)?this:(t.prior=this,t.getNodeTop(e))},w.prototype.getOffsetData=function(){var e=this.elems[0];return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight,parent:e.offsetParent}},w.prototype.scrollTop=function(e){this.elems[0].scrollTo({top:e})},w);function w(e){if(this.elems=[],this.length=this.elems.length,this.dataSource=new s.default,e){if(e instanceof w)return e;var t,n=[],o=e instanceof Node?e.nodeType:-1;this.selector=e,1===o||9===o?n=[e]:(t=e)&&(t instanceof HTMLCollection||t instanceof NodeList)?n=v.toArray(e):e instanceof Array?n=e:"string"==typeof e&&(t=(0,l.default)(o=e.replace("/\n/mg","")).call(o),n=0===(0,c.default)(t).call(t,"<")?(e=t,(o=document.createElement("div")).innerHTML=e,o=o.children,v.toArray(o)):(t=t,t=document.querySelectorAll(t),v.toArray(t)));var i=n.length;if(!i)return this;for(var r=0;r<i;r++)this.elems.push(n[r]);this.length=i}}function x(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new((0,h.default)(y).apply(y,A.__spreadArrays([void 0],e)))}t.DomElement=y,t.default=x},function(e,t,n){e.exports=n(180)},function(e,t,n){"use strict";function h(o){function e(e,t,n){if(this instanceof o){switch(arguments.length){case 0:return new o;case 1:return new o(e);case 2:return new o(e,t)}return new o(e,t,n)}return o.apply(this,arguments)}return e.prototype=o.prototype,e}var A=n(8),v=n(71).f,m=n(101),g=n(9),y=n(40),w=n(19),x=n(16);e.exports=function(e,t){var n,o,i,r,a,l=e.target,u=e.global,s=e.stat,c=e.proto,f=u?A:s?A[l]:(A[l]||{}).prototype,d=u?g:g[l]||(g[l]={}),p=d.prototype;for(n in t)r=!m(u?n:l+(s?".":"#")+n,e.forced)&&f&&x(f,n),o=d[n],r&&(i=e.noTargetGet?(a=v(f,n))&&a.value:f[n]),a=r&&i?i:t[n],r&&typeof o==typeof a||(r=e.bind&&r?y(a,A):e.wrap&&r?h(a):c&&"function"==typeof a?y(Function.call,a):a,(e.sham||a&&a.sham||o&&o.sham)&&w(r,"sham",!0),d[n]=r,c&&(x(g,r=l+"Prototype")||w(g,r,{}),g[r][n]=a,e.real&&p&&!p[n]&&w(p,n,a)))}},function(e,t,n){"use strict";var o=n(0),i=o(n(92)),r=o(n(1)),a=o(n(256)),l=o(n(45)),u=o(n(46)),s=o(n(89)),c=o(n(26));(0,r.default)(t,"__esModule",{value:!0}),t.hexToRgb=t.getRandomCode=t.toArray=t.deepClone=t.isFunction=t.debounce=t.throttle=t.arrForEach=t.forEach=t.replaceSpecialSymbol=t.replaceHtmlSymbol=t.getRandom=t.UA=void 0;var f=n(2),n=(d.prototype.isIE=function(){return"ActiveXObject"in window},d.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},d);function d(){this._ua=navigator.userAgent;var e=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(e&&"Edge"==e[1]&&(0,a.default)(e[2])<19),this.isFirefox=!(!/Firefox\/\d+/.test(this._ua)||/Seamonkey\/\d+/.test(this._ua))}t.UA=new n,t.getRandom=function(e){return void 0===e&&(e=""),e+(0,l.default)(e=Math.random().toString()).call(e,2)},t.replaceHtmlSymbol=function(e){return e.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/(\r\n|\r|\n)/g,"<br/>")},t.replaceSpecialSymbol=function(e){return e.replace(/&lt;/gm,"<").replace(/&gt;/gm,">").replace(/&quot;/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<o&&(n=e[i],!1!==t.call(e,n,i));i++);},t.throttle=function(o,i){void 0===i&&(i=200);var r=!1;return function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r||(r=!0,(0,u.default)(function(){r=!1,o.call.apply(o,f.__spreadArrays([e],t))},i))}},t.debounce=function(o,i){void 0===i&&(i=200);var r=0;return function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r&&window.clearTimeout(r),r=(0,u.default)(function(){r=0,o.call.apply(o,f.__spreadArrays([e],t))},i)}},t.isFunction=function(e){return"function"==typeof e},t.deepClone=function e(t){if("object"!==(0,i.default)(t)||"function"==typeof t||null===t)return t;var n,o;for(o in(0,s.default)(t)&&(n=[]),(0,s.default)(t)||(n={}),t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=e(t[o]));return n},t.toArray=function(e){return(0,l.default)(Array.prototype).call(e)},t.getRandomCode=function(){var e;return(0,l.default)(e=Math.random().toString(36)).call(e,-5)},t.hexToRgb=function(e){return null==(e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?null:"rgb("+(e=(0,c.default)(e).call(e,function(e){return(0,a.default)(e,16)}))[1]+", "+e[2]+", "+e[3]+")"}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.EMPTY_P_REGEX=t.EMPTY_P_LAST_REGEX=t.EMPTY_P=t.urlRegex=t.EMPTY_FN=void 0,t.EMPTY_FN=function(){},t.urlRegex=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/g,t.EMPTY_P='<p data-we-empty-p=""><br></p>',t.EMPTY_P_LAST_REGEX=/<p data-we-empty-p=""><br\/?><\/p>$/gim,t.EMPTY_P_REGEX=/<p data-we-empty-p="">/gim},function(n,e,t){(function(e){function t(e){return e&&e.Math==Math&&e}n.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||Function("return this")()}).call(this,t(145))},function(e,t){e.exports={}},function(e,t,n){var o=n(8),i=n(74),r=n(16),a=n(64),l=n(76),n=n(106),u=i("wks"),s=o.Symbol,c=n?s:s&&s.withoutSetter||a;e.exports=function(e){return r(u,e)||(l&&r(s,e)?u[e]=s[e]:u[e]=c("Symbol."+e)),u[e]}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var o=n(9),i=n(16),r=n(93),a=n(18).f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});i(t,e)||a(t,e,{value:r.f(e)})}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){n=n(11);e.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){var o=n(9);e.exports=function(e){return o[e+"Prototype"]}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=n(192)},function(e,t,n){var o=n(14),i=n(100),r=n(25),a=n(60),l=Object.defineProperty;t.f=o?l:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var o=n(14),i=n(18),r=n(48);e.exports=o?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,i){"use strict";var n,o,l=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=(o={},function(e){if(void 0===o[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}o[e]=t}return o[e]}),s=[];function c(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},o=[],i=0;i<e.length;i++){var r=e[i],a=t.base?r[0]+t.base:r[0],l=n[a]||0,u="".concat(a," ").concat(l);n[a]=l+1;l=c(u),r={css:r[1],media:r[2],sourceMap:r[3]};-1!==l?(s[l].references++,s[l].updater(r)):s.push({identifier:u,updater:function(t,e){var n,o,i;{var r;i=e.singleton?(r=A++,n=h=h||f(e),o=p.bind(null,n,r,!1),p.bind(null,n,r,!0)):(n=f(e),o=function(e,t,n){var o=n.css,i=n.media,n=n.sourceMap;i?e.setAttribute("media",i):e.removeAttribute("media");n&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */"));if(e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}.bind(null,n,e),function(){!function(e){if(null===e.parentNode)return;e.parentNode.removeChild(e)}(n)})}return o(t),function(e){e?e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap||o(t=e):i()}}(r,t),references:1}),o.push(u)}return o}function f(e){var t,n=document.createElement("style"),o=e.attributes||{};if(void 0!==o.nonce||(t=i.nc)&&(o.nonce=t),Object.keys(o).forEach(function(e){n.setAttribute(e,o[e])}),"function"==typeof e.insert)e.insert(n);else{e=r(e.insert||"head");if(!e)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");e.appendChild(n)}return n}var a,d=(a=[],function(e,t){return a[e]=t,a.filter(Boolean).join("\n")});function p(e,t,n,o){n=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;e.styleSheet?e.styleSheet.cssText=d(t,n):(o=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(o,n[t]):e.appendChild(o))}var h=null,A=0;e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=l());var a=u(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<a.length;t++){var n=c(a[t]);s[n].references--}for(var e=u(e,r),o=0;o<a.length;o++){var i=c(a[o]);0===s[i].references&&(s[i].updater(),s.splice(i,1))}a=e}}}},function(e,t,n){"use strict";e.exports=function(n){var u=[];return u.toString=function(){return this.map(function(e){var t=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){e=function(e){e=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),e="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(e," */")}(o),t=o.sources.map(function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")});return[n].concat(t).concat([e]).join("\n")}return[n].join("\n")}(e,n);return e[2]?"@media ".concat(e[2]," {").concat(t,"}"):t}).join("")},u.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var r=this[i][0];null!=r&&(o[r]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);n&&o[l[0]]||(t&&(l[2]?l[2]="".concat(t," and ").concat(l[2]):l[2]=t),u.push(l))}},u}},function(e,t,n){function a(e){throw e}var l=n(14),u=n(11),s=n(16),c=Object.defineProperty,f={};e.exports=function(e,t){if(s(f,e))return f[e];var n=[][e],o=!!s(t=t||{},"ACCESSORS")&&t.ACCESSORS,i=s(t,0)?t[0]:a,r=s(t,1)?t[1]:void 0;return f[e]=!!n&&!u(function(){if(o&&!l)return!0;var e={length:-1};o?c(e,1,{enumerable:!0,get:a}):e[1]=1,n.call(e,i,r)})}},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(95)),i=(o=n.default,i.__extends(r,o),r);function r(e,t){return o.call(this,e,t)||this}t.default=i},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),l=o(n(4)),u=o(n(46));(0,i.default)(t,"__esModule",{value:!0});var s,o=n(2),c=o.__importDefault(n(3)),i=o.__importDefault(n(95)),f=o.__importDefault(n(134)),o=(s=i.default,o.__extends(r,s),r);function r(t,n,e){var o=s.call(this,t,n)||this;e.title=n.i18next.t("menus.dropListMenu."+e.title);var i,r="zh-CN"===n.config.lang?"":"w-e-drop-list-tl";r&&"list"===e.type&&(0,l.default)(i=e.list).call(i,function(e){var t=e.$elem,e=c.default(t.children());0<e.length&&((e=null==e?void 0:e.getNodeName())&&"I"===e&&t.addClass(r))});var a=new f.default(o,e);return o.dropList=a,t.on("click",function(){var e;null!=n.selection.getRange()&&(t.css("z-index",n.zIndex.get("menu")),(0,l.default)(e=n.txt.eventHooks.dropListMenuHoverEvents).call(e,function(e){return e()}),a.show())}).on("mouseleave",function(){t.css("z-index","auto"),a.hideTimeoutId=(0,u.default)(function(){a.hide()})}),o}t.default=o},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,n){e.exports=n(188)},function(e,t,n){e.exports=n(201)},function(e,t,n){e.exports=n(213)},function(e,t,n){e.exports=n(283)},function(e,t,n){var o=n(72),i=n(49);e.exports=function(e){return o(i(e))}},function(e,t,n){var o=n(49);e.exports=function(e){return Object(o(e))}},function(e,t,n){var y=n(40),w=n(72),x=n(31),_=n(35),E=n(88),b=[].push,n=function(d){var p=1==d,h=2==d,A=3==d,v=4==d,m=6==d,g=5==d||m;return function(e,t,n,o){for(var i,r,a=x(e),l=w(a),u=y(t,n,3),s=_(l.length),c=0,o=o||E,f=p?o(e,s):h?o(e,0):void 0;c<s;c++)if((g||c in l)&&(r=u(i=l[c],c,a),d))if(p)f[c]=r;else if(r)switch(d){case 3:return!0;case 5:return i;case 6:return c;case 2:b.call(f,i)}else if(v)return!1;return m?-1:A||v?v:f}};e.exports={forEach:n(0),map:n(1),filter:n(2),some:n(3),every:n(4),find:n(5),findIndex:n(6)}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),d=o(n(4)),p=o(n(29)),o=o(n(132));(0,i.default)(t,"__esModule",{value:!0});var h=n(2),A=h.__importDefault(n(3)),v=n(7),o=(m.prototype.create=function(){var e,t,n,o,r,a,i,l,u,s,c=this,f=this.menu;m.createdMenus.has(f)||(e=this.conf,s=this.$container,t=e.width||300,i=f.editor.$toolbarElem.getBoundingClientRect(),n=f.$elem.getBoundingClientRect(),o=i.height+i.top-n.top,i=(i.width-t)/2+i.left-n.left,300<Math.abs(i)&&(i=n.left<document.documentElement.clientWidth/2?-n.width/2:-t+n.width/2),s.css("width",t+"px").css("margin-top",o+"px").css("margin-left",i+"px").css("z-index",f.editor.zIndex.get("panel")),i=A.default('<i class="w-e-icon-close w-e-panel-close"></i>'),s.append(i),i.on("click",function(){c.remove()}),r=A.default('<ul class="w-e-panel-tab-title"></ul>'),a=A.default('<div class="w-e-panel-tab-content"></div>'),s.append(r).append(a),(i=e.height)&&a.css("height",i+"px").css("overflow-y","auto"),i=e.tabs||[],l=[],u=[],(0,d.default)(i).call(i,function(e,t){var n,o,i;e&&(n=e.title||"",e=e.tpl||"",o=A.default('<li class="w-e-item">'+n+"</li>"),r.append(o),i=A.default(e),a.append(i),l.push(o),u.push(i),0===t?(o.data("active",!0),o.addClass("w-e-active")):i.hide(),o.on("click",function(){o.data("active")||((0,d.default)(l).call(l,function(e){e.data("active",!1),e.removeClass("w-e-active")}),(0,d.default)(u).call(u,function(e){e.hide()}),o.data("active",!0),o.addClass("w-e-active"),i.show())}))}),s.on("click",function(e){e.stopPropagation()}),f.$elem.append(s),e.setLinkValue&&e.setLinkValue(s,"text"),e.setLinkValue&&e.setLinkValue(s,"link"),(0,d.default)(i).call(i,function(e,a){e&&(e=e.events||[],(0,d.default)(e).call(e,function(e){function t(t){return h.__awaiter(c,void 0,void 0,function(){return h.__generator(this,function(e){switch(e.label){case 0:return t.stopPropagation(),[4,i(t)];case 1:return e.sent()&&this.remove(),[2]}})})}var n=e.selector,o=e.type,i=e.fn||v.EMPTY_FN,r=u[a],e=null!==(e=e.bindEnter)&&void 0!==e&&e;(0,p.default)(r).call(r,n).on(o,t),e&&"click"===o&&r.on("keyup",function(e){13==e.keyCode&&t(e)})}))}),(s=(0,p.default)(s).call(s,"input[type=text],textarea")).length&&s.get(0).focus(),m.hideCurAllPanels(),f.setPanel(this),m.createdMenus.add(f))},m.prototype.remove=function(){var e=this.menu,t=this.$container;t&&t.remove(),m.createdMenus.delete(e)},m.hideCurAllPanels=function(){var e;0!==m.createdMenus.size&&(0,d.default)(e=m.createdMenus).call(e,function(e){e=e.panel;e&&e.remove()})},m.createdMenus=new o.default,m);function m(e,t){this.menu=e,this.conf=t,this.$container=A.default('<div class="w-e-panel-container"></div>');e=e.editor;e.txt.eventHooks.clickEvents.push(m.hideCurAllPanels),e.txt.eventHooks.toolbarClickEvents.push(m.hideCurAllPanels),e.txt.eventHooks.dropListMenuHoverEvents.push(m.hideCurAllPanels)}t.default=o},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(62),i=Math.min;e.exports=function(e){return 0<e?i(o(e),9007199254740991):0}},function(e,t,n){function o(e){return"function"==typeof e?e:void 0}var i=n(9),r=n(8);e.exports=function(e,t){return arguments.length<2?o(i[e])||o(r[e]):i[e]&&i[e][t]||r[e]&&r[e][t]}},function(e,t,n){var i=n(81),r=n(18).f,a=n(19),l=n(16),u=n(170),s=n(10)("toStringTag");e.exports=function(e,t,n,o){e&&(e=n?e:e.prototype,l(e,s)||r(e,s,{configurable:!0,value:t}),o&&!i&&a(e,"toString",u))}},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(95)),i=(o=n.default,i.__extends(r,o),r.prototype.setPanel=function(e){this.panel=e},r);function r(e,t){return o.call(this,e,t)||this}t.default=i},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),u=o(n(4)),r=o(n(57));(0,i.default)(t,"__esModule",{value:!0});var f=n(2).__importDefault(n(3)),i=(a.prototype.getPositionData=function(){var e,t,n=this.$container,o=0,i=0,r=document.documentElement.scrollTop,a=this.$targetElem.getBoundingClientRect(),l=this.editor.$textElem.getBoundingClientRect(),u=this.$targetElem.getOffsetData(),s=f.default(u.parent),c=this.editor.$textElem.elems[0].scrollTop;return this._isInsertTextContainer=s.equal(this.editor.$textContainerElem),i=this._isInsertTextContainer?(e=s.getBoundingClientRect().height,t=u.top,s=u.left,u=u.height,25<(c=t-c)?(o=c-20-15,n.addClass("w-e-tooltip-up")):(o=c+u+20<e?c+u+10:20+(0<c?c:0)+10,n.addClass("w-e-tooltip-down")),s<0?0:s):(a.top<20||a.top-l.top<20?(o=a.bottom+r+5,n.addClass("w-e-tooltip-down")):(o=a.top+r-20-15,n.addClass("w-e-tooltip-up")),a.left<0?0:a.left),{top:o,left:i}},a.prototype.appendMenus=function(){var i=this,e=this.conf,r=this.editor,a=this.$targetElem,l=this.$container;(0,u.default)(e).call(e,function(t,e){var n=t.$elem,o=f.default("<div></div>");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("<div></div>");n.addClass("w-e-tooltip"),this.$container=n}t.default=i},function(e,t,n){var r=n(41);e.exports=function(o,i,e){if(r(o),void 0===i)return o;switch(e){case 0:return function(){return o.call(i)};case 1:return function(e){return o.call(i,e)};case 2:return function(e,t){return o.call(i,e,t)};case 3:return function(e,t,n){return o.call(i,e,t,n)}}return function(){return o.apply(i,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var o,i,r,a,l,u,s,c,f=n(165),d=n(8),p=n(13),h=n(19),A=n(16),v=n(63),n=n(51),d=d.WeakMap;s=f?(o=new d,i=o.get,r=o.has,a=o.set,l=function(e,t){return a.call(o,e,t),t},u=function(e){return i.call(o,e)||{}},function(e){return r.call(o,e)}):(n[c=v("state")]=!0,l=function(e,t){return h(e,c,t),t},u=function(e){return A(e,c)?e[c]:{}},function(e){return A(e,c)}),e.exports={set:l,get:u,has:s,enforce:function(e){return s(e)?u(e):l(e,{})},getterFor:function(n){return function(e){var t;if(!p(e)||(t=u(e)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return t}}}},function(e,t){e.exports=!0},function(e,t){e.exports={}},function(e,t,n){e.exports=n(261)},function(e,t,n){e.exports=n(265)},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0}),t.createElementFragment=t.createDocumentFragment=t.createElement=t.insertBefore=t.getEndPoint=t.getStartPoint=t.updateRange=t.filterSelectionNodes=void 0;var i=n(2),a=n(137),l=i.__importDefault(n(3));function u(e){return document.createElement(e)}t.filterSelectionNodes=function(e){var n=[];return(0,r.default)(e).call(e,function(e){var t=e.getNodeName();t!==a.ListType.OrderedList&&t!==a.ListType.UnorderedList?n.push(e):e.prior?n.push(e.prior):null!=(e=e.children())&&(0,r.default)(e).call(e,function(e){n.push(l.default(e))})}),n},t.updateRange=function(e,t,n){var o=e.selection,e=document.createRange();1<t.length?(e.setStart(t.elems[0],0),e.setEnd(t.elems[t.length-1],t.elems[t.length-1].childNodes.length)):e.selectNodeContents(t.elems[0]),n&&e.collapse(!1),o.saveRange(e),o.restoreSelection()},t.getStartPoint=function(e){return e.prior||l.default(null===(e=e.children())||void 0===e?void 0:e.elems[0])},t.getEndPoint=function(e){return e.prior||l.default(null===(e=e.children())||void 0===e?void 0:e.last().elems[0])},t.insertBefore=function(e,t,n){void 0===n&&(n=null),e.parent().elems[0].insertBefore(t,n)},t.createElement=u,t.createDocumentFragment=function(){return document.createDocumentFragment()},t.createElementFragment=function(e,n,o){return void 0===o&&(o="li"),(0,r.default)(e).call(e,function(e){var t=u(o);t.innerHTML=e.html(),n.appendChild(t),e.remove()}),n}},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=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var o=n(164).charAt,i=n(42),n=n(75),r="String Iterator",a=i.set,l=i.getterFor(r);n(String,"String",function(e){a(this,{type:r,string:String(e),index:0})},function(){var e=l(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){e.exports={}},function(e,t,n){var o=n(107),i=n(80);e.exports=Object.keys||function(e){return o(e,i)}},function(e,t,n){var i=n(19);e.exports=function(e,t,n,o){o&&o.enumerable?e[t]=n:i(e,t,n)}},function(e,t,n){n(173);var o,i=n(174),r=n(8),a=n(65),l=n(19),u=n(44),s=n(10)("toStringTag");for(o in i){var c=r[o],c=c&&c.prototype;c&&a(c)!==s&&l(c,s,o),u[o]=u.Array}},function(e,t,n){var o=n(34);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){var o=n(11),i=n(10),r=n(86),a=i("species");e.exports=function(t){return 51<=r||!o(function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},function(e,t,n){e.exports=n(222)},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListHandle=void 0;var o=n(2).__importDefault(n(373)),n=function(e){this.options=e,this.selectionRangeElem=new o.default};t.ListHandle=n},function(e,t,n){"use strict";var o={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!o.call({1:2},1);t.f=r?function(e){e=i(this,e);return!!e&&e.enumerable}:o},function(e,t,n){var i=n(13);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?o:n)(e)}},function(e,t,n){var o=n(74),i=n(64),r=o("keys");e.exports=function(e){return r[e]||(r[e]=i(e))}},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(81),i=n(34),r=n(10)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=o?i:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(e=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?e:a?i(t):"Object"==(e=i(t))&&"function"==typeof t.callee?"Arguments":e}},function(e,t,n){function d(e,t){this.stopped=e,this.result=t}var p=n(25),h=n(112),A=n(35),v=n(40),m=n(113),g=n(114);(e.exports=function(e,t,n,o,i){var r,a,l,u,s,c,f=v(t,n,o?2:1);if(i)r=e;else{if("function"!=typeof(i=m(e)))throw TypeError("Target is not iterable");if(h(i)){for(a=0,l=A(e.length);a<l;a++)if((u=o?f(p(c=e[a])[0],c[1]):f(e[a]))&&u instanceof d)return u;return new d(!1)}r=i.call(e)}for(s=r.next;!(c=s.call(r)).done;)if("object"==typeof(u=g(r,f,c.value,o))&&u&&u instanceof d)return u;return new d(!1)}).stop=function(e){return new d(!0,e)}},function(e,t,n){"use strict";var o=n(11);e.exports=function(e,t){var n=[][e];return!!n&&o(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){"use strict";var o=n(60),i=n(18),r=n(48);e.exports=function(e,t,n){t=o(t);t in e?i.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){e.exports=n(209)},function(e,t,n){var o=n(14),i=n(59),r=n(48),a=n(30),l=n(60),u=n(16),s=n(100),c=Object.getOwnPropertyDescriptor;t.f=o?c:function(e,t){if(e=a(e),t=l(t,!0),s)try{return c(e,t)}catch(e){}if(u(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t,n){var o=n(11),i=n(34),r="".split;e.exports=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?r.call(e,""):Object(e)}:Object},function(e,t,n){var o=n(8),n=n(13),i=o.document,r=n(i)&&n(i.createElement);e.exports=function(e){return r?i.createElement(e):{}}},function(e,t,n){var o=n(43),i=n(103);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:o?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){"use strict";function A(){return this}var v=n(5),m=n(167),g=n(105),y=n(171),w=n(37),x=n(19),_=n(53),o=n(10),E=n(43),b=n(44),n=n(104),C=n.IteratorPrototype,S=n.BUGGY_SAFARI_ITERATORS,M=o("iterator"),D="values",k="entries";e.exports=function(e,t,n,o,i,r,a){m(n,t,o);function l(e){if(e===i&&h)return h;if(!S&&e in d)return d[e];switch(e){case"keys":case D:case k:return function(){return new n(this,e)}}return function(){return new n(this)}}var u,s,c=t+" Iterator",f=!1,d=e.prototype,p=d[M]||d["@@iterator"]||i&&d[i],h=!S&&p||l(i),o="Array"==t&&d.entries||p;if(o&&(e=g(o.call(new e)),C!==Object.prototype&&e.next&&(E||g(e)===C||(y?y(e,C):"function"!=typeof e[M]&&x(e,M,A)),w(e,c,!0,!0),E&&(b[c]=A))),i==D&&p&&p.name!==D&&(f=!0,h=function(){return p.call(this)}),E&&!a||d[M]===h||x(d,M,h),b[t]=h,i)if(u={values:l(D),keys:r?h:l("keys"),entries:l(k)},a)for(s in u)!S&&!f&&s in d||_(d,s,u[s]);else v({target:t,proto:!0,forced:S||f},u);return u}},function(e,t,n){n=n(11);e.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},function(e,t,n){function o(){}function i(e){return"<script>"+e+"</"+p+">"}var r,a=n(25),l=n(169),u=n(80),s=n(51),c=n(108),f=n(73),n=n(63),d="prototype",p="script",h=n("IE_PROTO"),A=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e;A=r?function(e){e.write(i("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((e=f("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(e=e.contentWindow.document).open(),e.write(i("document.F=Object")),e.close(),e.F);for(var t=u.length;t--;)delete A[d][u[t]];return A()};s[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(o[d]=a(e),n=new o,o[d]=null,n[h]=e):n=A(),void 0===t?n:l(n,t)}},function(e,t,n){var u=n(30),s=n(35),c=n(79),n=function(l){return function(e,t,n){var o,i=u(e),r=s(i.length),a=c(n,r);if(l&&t!=t){for(;a<r;)if((o=i[a++])!=o)return!0}else for(;a<r;a++)if((l||a in i)&&i[a]===t)return l||a||0;return!l&&-1}};e.exports={includes:n(!0),indexOf:n(!1)}},function(e,t,n){var o=n(62),i=Math.max,r=Math.min;e.exports=function(e,t){e=o(e);return e<0?i(e+t,0):r(e,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var o={};o[n(10)("toStringTag")]="z",e.exports="[object z]"===String(o)},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){n=n(36);e.exports=n("navigator","userAgent")||""},function(e,t,n){"use strict";function o(e){var n,o;this.promise=new e(function(e,t){if(void 0!==n||void 0!==o)throw TypeError("Bad Promise constructor");n=e,o=t}),this.resolve=i(n),this.reject=i(o)}var i=n(41);e.exports.f=function(e){return new o(e)}},function(e,t,n){var o,i,r=n(8),n=n(84),r=r.process,r=r&&r.versions,r=r&&r.v8;r?i=(o=r.split("."))[0]+o[1]:n&&(!(o=n.match(/Edge\/(\d+)/))||74<=o[1])&&(o=n.match(/Chrome\/(\d+)/))&&(i=o[1]),e.exports=i&&+i},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),l=a.__importDefault(n(3)),u=n(6),s=a.__importDefault(n(267)),c=a.__importDefault(n(280)),f=a.__importDefault(n(281)),d=a.__importDefault(n(282)),p=a.__importDefault(n(301)),h=a.__importStar(n(416)),A=a.__importDefault(n(417)),v=a.__importDefault(n(418)),m=a.__importDefault(n(419)),g=a.__importStar(n(420)),y=a.__importDefault(n(423)),w=a.__importDefault(n(424)),x=a.__importDefault(n(425)),_=a.__importDefault(n(427)),E=a.__importDefault(n(437)),b=a.__importDefault(n(440)),C=a.__importStar(n(441)),S=a.__importDefault(n(23)),M=a.__importDefault(n(134)),D=a.__importDefault(n(24)),o=a.__importDefault(n(33)),i=a.__importDefault(n(38)),n=a.__importDefault(n(39)),k=1,n=(N.prototype.initSelection=function(e){A.default(this,e)},N.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),m.default(this),h.default(this),this.txt.init(),this.menus.init(),g.default(this),this.initSelection(!0),v.default(this),this.change.observe(),this.history.observe(),C.default(this)},N.prototype.beforeDestroy=function(e){return this.beforeDestroyHooks.push(e),this},N.prototype.destroy=function(){var e,t=this;(0,r.default)(e=this.beforeDestroyHooks).call(e,function(e){return e.call(t)}),this.$toolbarElem.remove(),this.$textContainerElem.remove()},N.prototype.fullScreen=function(){g.setFullScreen(this)},N.prototype.unFullScreen=function(){g.setUnFullScreen(this)},N.prototype.scrollToHead=function(e){y.default(this,e)},N.registerMenu=function(e,t){t&&"function"==typeof t&&(N.globalCustomMenuConstructorList[e]=t)},N.prototype.registerPlugin=function(e,t){C.registerPlugin(e,t,this.pluginsFunctionList)},N.registerPlugin=function(e,t){C.registerPlugin(e,t,N.globalPluginsFunctionList)},N.$=l.default,N.BtnMenu=S.default,N.DropList=M.default,N.DropListMenu=D.default,N.Panel=o.default,N.PanelMenu=i.default,N.Tooltip=n.default,N.globalCustomMenuConstructorList={},N.globalPluginsFunctionList={},N);function N(e,t){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+k++,this.toolbarSelector=e,this.textSelector=t,h.selectorValidator(this),this.config=u.deepClone(s.default),this.$toolbarElem=l.default("<div></div>"),this.$textContainerElem=l.default("<div></div>"),this.$textElem=l.default("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new c.default(this),this.cmd=new f.default(this),this.txt=new d.default(this),this.menus=new p.default(this),this.zIndex=new w.default,this.change=new x.default(this),this.history=new _.default(this),this.onSelectionChange=new b.default(this);e=E.default(this),t=e.disable,e=e.enable;this.disable=t,this.enable=e,this.isEnable=!0}t.default=n},function(e,t,n){var o=n(13),i=n(55),r=n(10)("species");e.exports=function(e,t){var n;return i(e)&&("function"==typeof(n=e.constructor)&&(n===Array||i(n.prototype))||o(n)&&null===(n=n[r]))&&(n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){e.exports=n(185)},function(e,t,n){var o=n(49),n="["+n(68)+"]",i=RegExp("^"+n+n+"*"),r=RegExp(n+n+"*$"),n=function(t){return function(e){e=String(o(e));return 1&t&&(e=e.replace(i,"")),2&t&&(e=e.replace(r,"")),e}};e.exports={start:n(1),end:n(2),trim:n(3)}},function(e,t,n){e.exports=n(205)},function(t,e,n){var o=n(227),i=n(230);function r(e){return t.exports=r="function"==typeof i&&"symbol"==typeof o?function(e){return typeof e}:function(e){return e&&"function"==typeof i&&e.constructor===i&&e!==i.prototype?"symbol":typeof e},r(e)}t.exports=r},function(e,t,n){n=n(10);t.f=n},function(e,t,n){e.exports=n(306)},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),r=o(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(33)),i=(l.prototype.clickHandler=function(e){},l.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},l.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,i.default)(l.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),l);function l(e,n){var o=this;this.$elem=e,this.editor=n,this._active=!1,e.on("click",function(e){var t;a.default.hideCurAllPanels(),(0,r.default)(t=n.txt.eventHooks.menuClickEvents).call(t,function(e){return e()}),e.stopPropagation(),null!=n.selection.getRange()&&o.clickHandler(e)})}t.default=i},function(e,o,t){"use strict";var n=t(0),i=n(t(1)),r=n(t(28));function a(e){for(var t,n=e.elems[0];n&&(0,r.default)(t=o.EXTRA_TAG).call(t,n.nodeName);)if("A"===(n=n.parentElement).nodeName)return n}(0,i.default)(o,"__esModule",{value:!0}),o.getParentNodeA=o.EXTRA_TAG=void 0,o.EXTRA_TAG=["B","FONT","I","STRIKE"],o.getParentNodeA=a,o.default=function(e){var t=e.selection.getSelectionContainerElem();return!(null===(e=null==t?void 0:t.elems)||void 0===e||!e.length)&&("A"===t.getNodeName()||!(!(t=a(t))||"A"!==t.nodeName))}},function(e,t,n){"use strict";var o=n(0),i=o(n(1)),_=o(n(57)),E=o(n(4)),b=o(n(27));(0,i.default)(t,"__esModule",{value:!0});var i=n(2),C=n(6),S=i.__importDefault(n(135)),M=i.__importDefault(n(136)),n=(r.prototype.insertImg=function(e,t,n){function o(e,t){return void 0===t&&(t="validate."),i.i18next.t(t+e)}var i=this.editor,r=i.config,a=(a=e.replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace("'",'"'),l="";n&&(l=n.replace("'",'"'),l="data-href='"+encodeURIComponent(l)+"' ");var u="";t&&(u="alt='"+(u=(u=t.replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace("'",'"'))+"' "),i.cmd.do("insertHTML","<img src='"+a+"' "+u+l+'style="max-width:100%;" contenteditable="false"/>'),r.linkImgCallback(e,t,n);var s=document.createElement("img");s.onload=function(){s=null},s.onerror=function(){r.customAlert(o("插入图片错误"),"error","wangEditor: "+o("插入图片错误")+","+o("图片链接")+' "'+e+'",'+o("下载链接失败")),s=null},s.onabort=function(){return s=null},s.src=e},r.prototype.uploadImg=function(e){var i,o,r,t,a,l,n,u,s,c,f,d,p,h,A,v,m,g,y,w,x=this;e.length&&(i=this.editor,o=i.config,r=function(e){return i.i18next.t("validate."+e)},g=o.uploadImgServer,t=o.uploadImgShowBase64,a=o.uploadImgMaxSize,l=a/1024/1024,n=o.uploadImgMaxLength,u=o.uploadFileName,s=o.uploadImgParams,c=o.uploadImgParamsWithUrl,f=o.uploadImgHeaders,d=o.uploadImgHooks,p=o.uploadImgTimeout,w=o.withCredentials,((h=o.customUploadImg)||g||t)&&(A=[],v=[],C.arrForEach(e,function(e){var t,n,o;e&&(t=e.name||e.type.replace("/","."),n=e.size,t&&n&&(o=i.config.uploadImgAccept.join("|"),!1!==new RegExp(".("+o+")$","i").test(t)?a<n?v.push("【"+t+"】"+r("大于")+" "+l+"M"):A.push(e):v.push("【"+t+"】"+r("不是图片"))))}),v.length?o.customAlert(r("图片验证未通过")+": \n"+v.join("\n"),"warning"):0!==A.length?A.length>n?o.customAlert(r("一次最多上传")+n+r("张图片"),"warning"):h&&"function"==typeof h?h(A,(0,_.default)(y=this.insertImg).call(y,this)):(m=new FormData,(0,E.default)(A).call(A,function(e,t){var n=u||e.name;1<A.length&&(n+=t+1),m.append(n,e)}),g?(g=(y=g.split("#"))[0],y=y[1]||"",(0,E.default)(C).call(C,s,function(e,t){c&&(0<(0,b.default)(g).call(g,"?")?g+="&":g+="?",g=g+e+"="+t),m.append(e,t)}),y&&(g+="#"+y),"string"==typeof(w=S.default(g,{timeout:p,formData:m,headers:f,withCredentials:!!w,beforeSend:function(e){if(d.before)return d.before(e,i,A)},onTimeout:function(e){o.customAlert(r("上传图片超时"),"error"),d.timeout&&d.timeout(e,i)},onProgress:function(e,t){var n=new M.default(i);t.lengthComputable&&(e=t.loaded/t.total,n.show(e))},onError:function(e){o.customAlert(r("上传图片错误"),"error",r("上传图片错误")+","+r("服务器返回状态")+": "+e.status),d.error&&d.error(e,i)},onFail:function(e,t){o.customAlert(r("上传图片失败"),"error",r("上传图片返回结果错误")+(","+r("返回结果"))+": "+t),d.fail&&d.fail(e,i,t)},onSuccess:function(e,t){if(d.customInsert)d.customInsert((0,_.default)(n=x.insertImg).call(n,x),t,i);else{if("0"!=t.errno)return o.customAlert(r("上传图片失败"),"error",r("上传图片返回结果错误")+","+r("返回结果")+" errno="+t.errno),void(d.fail