(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-de64c4b4"],{"1ccb":function(e,t,n){},"448e":function(e,t,n){"use strict";var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"toolbar",attrs:{id:"toolbar-container"+e.id}}),n("div",{staticClass:"text",attrs:{id:"text-container"+e.id}})])},r=[],i=n("6fad"),a=n.n(i);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}n("d9e2");function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};u(this,e),this.init(t,n)}return c(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||S,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),o=1;o-1?e.replace(/###/g,"."):e}function r(){return!e||"string"===typeof e}var i="string"!==typeof t?[].concat(t):t.split(".");while(i.length>1){if(r())return{};var a=o(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return r()?{}:{obj:e,k:o(i.shift())}}function B(e,t,n){var o=R(e,t,Object),r=o.obj,i=o.k;r[i]=n}function O(e,t,n,o){var r=R(e,t,Object),i=r.obj,a=r.k;i[a]=i[a]||[],o&&(i[a]=i[a].concat(n)),o||i[a].push(n)}function P(e,t){var n=R(e,t),o=n.obj,r=n.k;if(o)return o[r]}function I(e,t,n){var o=P(e,n);return void 0!==o?o:P(t,n)}function L(e,t,n){for(var o in t)"__proto__"!==o&&"constructor"!==o&&(o in e?"string"===typeof e[o]||e[o]instanceof String||"string"===typeof t[o]||t[o]instanceof String?n&&(e[o]=t[o]):L(e[o],t[o],n):e[o]=t[o]);return e}function F(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var j={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function H(e){return"string"===typeof e?e.replace(/[&<>"'\/]/g,(function(e){return j[e]})):e}var U="undefined"!==typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Q=[" ",",","?","!",";"];function Y(e,t,n){t=t||"",n=n||"";var o=Q.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===o.length)return!0;var r=new RegExp("(".concat(o.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),i=!r.test(e);if(!i){var a=e.indexOf(n);a>0&&!r.test(e.substring(0,a))&&(i=!0)}return i}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function V(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var o=t.split(n),r=e,i=0;ii+a)a++,l=o.slice(i,i+a).join(n),u=r[l];if(void 0===u)return;if(t.endsWith(l)){if("string"===typeof u)return u;if(l&&"string"===typeof u[l])return u[l]}var s=o.slice(i+a).join(n);return s?J(u,s,n):void 0}r=r[o[i]]}return r}}var K=function(e){p(n,e);var t=$(n);function n(e){var o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return u(this,n),o=t.call(this),U&&N.call(f(o)),o.data=e||{},o.options=r,void 0===o.options.keySeparator&&(o.options.keySeparator="."),void 0===o.options.ignoreJSONStructure&&(o.options.ignoreJSONStructure=!0),o}return c(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,i=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!==typeof n&&(a=a.concat(n)),n&&"string"===typeof n&&(a=a.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(a=e.split("."));var l=P(this.data,a);return l||!i||"string"!==typeof n?l:J(this.data&&this.data[e]&&this.data[e][t],n,r)}},{key:"addResource",value:function(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),o=t,t=a[1]),this.addNamespaces(t),B(this.data,a,o),r.silent||this.emit("added",e,t,n,o)}},{key:"addResources",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)"string"!==typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});o.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),o=n,n=t,t=a[1]),this.addNamespaces(t);var l=P(this.data,a)||{};o?L(l,n,r):l=V(V({},l),n),B(this.data,a,l),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?V(V({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e),n=t&&Object.keys(t)||[];return!!n.find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(N),W={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,o,r){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,o,r))})),t}};function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function X(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return u(this,n),o=t.call(this),U&&N.call(f(o)),T(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,f(o)),o.options=r,void 0===o.options.keySeparator&&(o.options.keySeparator="."),o.logger=k.create("translator"),o}return c(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(void 0===e||null===e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Y(e,n,o);if(i&&!a){var l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:r};var u=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(u[0])>-1)&&(r=u.shift()),e=u.join(o)}return"string"===typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t,o){var r=this;if("object"!==l(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),void 0===e||null===e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],t),u=a.key,s=a.namespaces,c=s[s.length-1],f=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(d){var p=t.nsSeparator||this.options.nsSeparator;return c+p+u}return u}var v=this.resolve(e,t),h=v&&v.res,g=v&&v.usedKey||u,m=v&&v.exactUsedKey||u,A=Object.prototype.toString.apply(h),y=["[object Number]","[object Function]","[object RegExp]"],w=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!==typeof h&&"boolean"!==typeof h&&"number"!==typeof h;if(b&&h&&x&&y.indexOf(A)<0&&("string"!==typeof w||"[object Array]"!==A)){if(!t.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,X(X({},t),{},{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var E="[object Array]"===A,_=E?[]:{},S=E?m:g;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var k="".concat(S).concat(i).concat(C);_[C]=this.translate(k,X(X({},t),{joinArrays:!1,ns:s})),_[C]===k&&(_[C]=h[C])}h=_}}else if(b&&"string"===typeof w&&"[object Array]"===A)h=h.join(w),h&&(h=this.extendTranslation(h,e,t,o));else{var N=!1,D=!1,M=void 0!==t.count&&"string"!==typeof t.count,T=n.hasDefaultValue(t),R=M?this.pluralResolver.getSuffix(f,t.count,t):"",B=t["defaultValue".concat(R)]||t.defaultValue;!this.isValidLookup(h)&&T&&(N=!0,h=B),this.isValidLookup(h)||(D=!0,h=u);var O=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,P=O&&D?void 0:h,I=T&&B!==h&&this.options.updateMissing;if(D||N||I){if(this.logger.log(I?"updateKey":"missingKey",f,c,u,I?B:h),i){var L=this.resolve(u,X(X({},t),{},{keySeparator:!1}));L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var F=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&j&&j[0])for(var H=0;H1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,l),s=u.key;n=s;var c=u.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==l.count&&"string"!==typeof l.count,d=f&&!l.ordinal&&0===l.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==l.context&&("string"===typeof l.context||"number"===typeof l.context)&&""!==l.context,v=l.lngs?l.lngs:a.languageUtils.toResolveHierarchy(l.lng||a.language,l.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!te["".concat(v[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(te["".concat(v[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(v.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach((function(n){if(!a.isValidLookup(t)){r=n;var i,u=[s];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(u,s,n,e,l);else{var c;f&&(c=a.pluralResolver.getSuffix(n,l.count,l));var v="_zero";if(f&&(u.push(s+c),d&&u.push(s+v)),p){var h="".concat(s).concat(a.options.contextSeparator).concat(l.context);u.push(h),f&&(u.push(h+c),d&&u.push(h+v))}}while(i=u.pop())a.isValidLookup(t)||(o=i,t=a.getResource(n,e,i,l))}})))}))}})),{res:t,usedKey:n,exactUsedKey:o,usedLng:r,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),n}(N);function oe(e){return e.charAt(0).toUpperCase()+e.slice(1)}var re=function(){function e(t){u(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=k.create("languageUtils")}return c(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"===typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=oe(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=oe(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=oe(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var o=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(o)||(t=o)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var o=n.getLanguagePartFromCode(e);if(n.isSupportedCode(o))return t=o;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(o))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),"string"===typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e["default"]||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e["default"]),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,o=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(n.isSupportedCode(e)?r.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"===typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"===typeof e&&i(this.formatLanguageCode(e)),o.forEach((function(e){r.indexOf(e)<0&&i(n.formatLanguageCode(e))})),r}}]),e}(),ie=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ae={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},le=["v1","v2","v3"],ue={zero:0,one:1,two:2,few:3,many:4,other:5};function se(){var e={};return ie.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:ae[t.fc]}}))})),e}var ce=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,e),this.languageUtils=t,this.options=n,this.logger=k.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!==typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=se()}return c(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(n){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,n);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort((function(e,t){return ue[e]-ue[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):o.numbers.map((function(o){return t.getSuffix(e,o,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.getRule(e,n);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(t)):this.getSuffixRetroCompatible(o,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,o=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[o];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var i=function(){return n.options.prepend&&r.toString()?n.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"===typeof r?"_plural_".concat(r.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!le.includes(this.options.compatibilityJSON)}}]),e}();function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function de(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};u(this,e),this.logger=k.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return c(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:H,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?F(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?F(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?F(t.nestingPrefix):t.nestingPrefixEscaped||F("$t("),this.nestingSuffix=t.nestingSuffix?F(t.nestingSuffix):t.nestingSuffixEscaped||F(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,o){var r,i,a,l=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function s(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(l.formatSeparator)<0){var r=I(t,u,e);return l.alwaysFormat?l.format(r,void 0,n,de(de(de({},o),t),{},{interpolationkey:e})):r}var i=e.split(l.formatSeparator),a=i.shift().trim(),s=i.join(l.formatSeparator).trim();return l.format(I(t,u,a),s,n,de(de(de({},o),t),{},{interpolationkey:a}))};this.resetRegExp();var f=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:function(e){return s(e)}},{regex:this.regexp,safeValue:function(e){return l.escapeValue?s(l.escape(e)):s(e)}}];return p.forEach((function(t){a=0;while(r=t.regex.exec(e)){var n=r[1].trim();if(i=c(n),void 0===i)if("function"===typeof f){var u=f(e,r,o);i="string"===typeof u?u:""}else if(o&&o.hasOwnProperty(n))i="";else{if(d){i=r[0];continue}l.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),i=""}else"string"===typeof i||l.useRawValueToEscape||(i=M(i));var s=t.safeValue(i);if(e=e.replace(r[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,a++,a>=l.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,o,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=de({},i);function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var o=e.split(new RegExp("".concat(n,"[ ]*{"))),r="{".concat(o[1]);e=o[0],r=this.interpolate(r,a),r=r.replace(/'/g,'"');try{a=JSON.parse(r),t&&(a=de(de({},t),a))}catch(i){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),i),"".concat(e).concat(n).concat(r)}return delete a.defaultValue,e}a.applyPostProcessor=!1,delete a.defaultValue;while(n=this.nestingRegexp.exec(e)){var u=[],s=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),u=c,s=!0}if(o=t(l.call(this,n[1].trim(),a),a),o&&n[0]===e&&"string"!==typeof o)return o;"string"!==typeof o&&(o=M(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),s&&(o=u.reduce((function(e,t){return r.format(e,t,i.lng,de(de({},i),{},{interpolationkey:n[1].trim()}))}),o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}]),e}();function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function he(e){for(var t=1;t-1){var o=e.split("(");t=o[0].toLowerCase().trim();var r=o[1].substring(0,o[1].length-1);if("currency"===t&&r.indexOf(":")<0)n.currency||(n.currency=r.trim());else if("relativetime"===t&&r.indexOf(":")<0)n.range||(n.range=r.trim());else{var i=r.split(";");i.forEach((function(e){if(e){var t=e.split(":"),o=x(t),r=o[0],i=o.slice(1),a=i.join(":");n[r.trim()]||(n[r.trim()]=a.trim()),"false"===a.trim()&&(n[r.trim()]=!1),"true"===a.trim()&&(n[r.trim()]=!0),isNaN(a.trim())||(n[r.trim()]=parseInt(a.trim(),10))}}))}}return{formatName:t,formatOptions:n}}var me=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,e),this.logger=k.create("formatter"),this.options=t,this.formats={number:function(e,t,n){return new Intl.NumberFormat(t,n).format(e)},currency:function(e,t,n){return new Intl.NumberFormat(t,he(he({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,he({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,he({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,he({},n)).format(e)}},this.init(t)}return c(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"format",value:function(e,t,n,o){var r=this,i=t.split(this.formatSeparator),a=i.reduce((function(e,t){var i=ge(t),a=i.formatName,l=i.formatOptions;if(r.formats[a]){var u=e;try{var s=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},c=s.locale||s.lng||o.locale||o.lng||n;u=r.formats[a](e,c,he(he(he({},l),o),s))}catch(f){r.logger.warn(f)}return u}return r.logger.warn("there was no format function for ".concat(a)),e}),e);return a}}]),e}();function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ye(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return u(this,n),i=t.call(this),U&&N.call(f(i)),i.backend=e,i.store=o,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=k.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return c(n,[{key:"queueLoad",value:function(e,t,n,o){var r=this,i=[],a=[],l=[],u=[];return e.forEach((function(e){var o=!0;t.forEach((function(t){var l="".concat(e,"|").concat(t);!n.reload&&r.store.hasResourceBundle(e,t)?r.state[l]=2:r.state[l]<0||(1===r.state[l]?a.indexOf(l)<0&&a.push(l):(r.state[l]=1,o=!1,a.indexOf(l)<0&&a.push(l),i.indexOf(l)<0&&i.push(l),u.indexOf(t)<0&&u.push(t)))})),o||l.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:o}),{toLoad:i,pending:a,toLoadLanguages:l,toLoadNamespaces:u}}},{key:"loaded",value:function(e,t,n){var o=e.split("|"),r=o[0],i=o[1];t&&this.emit("failedLoading",r,i,t),n&&this.store.addResourceBundle(r,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){O(n.loaded,[r],i),xe(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(l,u){l&&u&&r<5?setTimeout((function(){o.read.call(o,e,t,n,r+1,2*i,a)}),i):a(l,u)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);var i=this.queueLoad(e,t,o,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),r=o[0],i=o[1];this.read(r,i,"read",void 0,void 0,(function(o,a){o&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(r," failed"),o),!o&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(r),a),t.loaded(e,o,a)}))}},{key:"saveMissing",value:function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):void 0!==n&&null!==n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,o,null,ye(ye({},i),{},{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,o))}}]),n}(N);function _e(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===l(e[1])&&(t=e[1]),"string"===typeof e[1]&&(t.defaultValue=e[1]),"string"===typeof e[2]&&(t.tDescription=e[2]),"object"===l(e[2])||"object"===l(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,o){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Se(e){return"string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ke(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(u(this,n),e=t.call(this),U&&N.call(f(e)),e.options=Se(o),e.services={},e.logger=k,e.modules={external:[]},Te(f(e)),r&&!e.isInitialized&&!o.isClone){if(!e.options.initImmediate)return e.init(o,r),v(e,f(e));setTimeout((function(){e.init(o,r)}),0)}return e}return c(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"===typeof t&&(n=t,t={}),!t.defaultNS&&t.ns&&("string"===typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var o=_e();function r(e){return e?"function"===typeof e?new e:e:null}if(this.options=ke(ke(ke({},o),this.options),Se(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=ke(ke({},o.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var i;this.modules.logger?k.init(r(this.modules.logger),this.options):k.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!==typeof Intl&&(i=me);var a=new re(this.options);this.store=new K(this.options.resources,this.options);var l=this.services;l.logger=k,l.resourceStore=this.store,l.languageUtils=a,l.pluralResolver=new ce(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!i||this.options.interpolation.format&&this.options.interpolation.format!==o.interpolation.format||(l.formatter=r(i),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new pe(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new Ee(r(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",(function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var f=D(),d=function(){var t=function(t,o){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),f.resolve(o),n(t,o)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me,o=n,r="string"===typeof e?e:this.language;if("function"===typeof e&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return o();var i=[],a=function(e){if(e){var n=t.services.languageUtils.toResolveHierarchy(e);n.forEach((function(e){i.indexOf(e)<0&&i.push(e)}))}};if(r)a(r);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),o(e)}))}else o(null)}},{key:"reloadResources",value:function(e,t,n){var o=D();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Me),this.services.backendConnector.reload(e,t,(function(e){o.resolve(),n(e)})),o}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&W.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var o=D();this.emit("languageChanging",e);var r=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},i=function(e,i){i?(r(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,o.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))},a=function(t){e||t||!n.services.languageDetector||(t=[]);var o="string"===typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);o&&(n.language||r(o),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){i(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(e,t,n){var o=this,r=function e(t,r){var i;if("object"!==l(r)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var o=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===o.toLowerCase())return!0;var a=function(e,n){var o=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===o||2===o};if(n.precheck){var l=n.precheck(this,a);if(void 0!==l)return l}return!!this.hasResourceBundle(o,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(o,e)||r&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,o=D();return this.options.ns?("string"===typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){o.resolve(),t&&t(e)})),o):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=D();"string"===typeof e&&(e=[e]);var o=this.options.preload||[],r=e.filter((function(e){return o.indexOf(e)<0}));return r.length?(this.options.preload=o.concat(r),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];return t.indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me,r=ke(ke(ke({},this.options),t),{isClone:!0}),i=new n(r),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=ke({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new ne(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Re(e,t)}));var Be=Re.createInstance();Be.createInstance=Re.createInstance;Be.createInstance,Be.init,Be.loadResources,Be.reloadResources,Be.use,Be.changeLanguage,Be.getFixedT,Be.t,Be.exists,Be.setDefaultNamespace,Be.hasLoadedNamespace,Be.loadNamespaces,Be.loadLanguages;var Oe=Be,Pe={name:"Wangeditor",props:{value:{type:String,default:""},id:{type:Number,default:null}},data(){return{editor:{}}},watch:{value:{handler(e){this.$nextTick(()=>{e!==this.editor.txt.html()&&this.editor.txt.html(e)})},immediate:!0,deep:!0}},mounted(){this.initWangeditor()},methods:{initWangeditor(){const e=new a.a("#toolbar-container"+this.id,"#text-container"+this.id);e.config.lang="en",e.config.zIndex=1,e.i18next=Oe,e.config.menus=["head","bold","fontSize","fontName","italic","underline","strikeThrough","foreColor","link","list","justify","quote","table","code","undo"],e.create(),this.editor=e,this.changeHtml(e.config)},changeHtml(e){e.onchange=e=>this.$emit("input",e)}}},Ie=Pe,Le=(n("eaf9"),n("2877")),Fe=Object(Le["a"])(Ie,o,r,!1,null,"39bc3875",null);t["a"]=Fe.exports},"6fad":function(e,t,n){(function(t,n){e.exports=n()})(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=141)}([function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},function(e,t,n){e.exports=n(142)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return r})),n.d(t,"__assign",(function(){return i})),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 v})),n.d(t,"__read",(function(){return h})),n.d(t,"__spread",(function(){return g})),n.d(t,"__spreadArrays",(function(){return m})),n.d(t,"__spreadArray",(function(){return A})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return w})),n.d(t,"__asyncDelegator",(function(){return b})),n.d(t,"__asyncValues",(function(){return x})),n.d(t,"__makeTemplateObject",(function(){return E})),n.d(t,"__importStar",(function(){return S})),n.d(t,"__importDefault",(function(){return C})),n.d(t,"__classPrivateFieldGet",(function(){return k})),n.d(t,"__classPrivateFieldSet",(function(){return N})); /*! ***************************************************************************** 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])},o(e,t)};function r(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 i=function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,o){t(n,o,e)}}function s(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(o.next(e))}catch(t){i(t)}}function l(e){try{u(o["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):r(e.value).then(a,l)}u((o=o.apply(e,t||[])).next())}))}function f(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,o&&(r=2&i[0]?o["return"]:i[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!(r=r.length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(o=i.next()).done)a.push(o.value)}catch(l){r={error:l}}finally{try{o&&!o.done&&(n=i["return"])&&n.call(i)}finally{if(r)throw r.error}}return a}function g(){for(var e=[],t=0;t1||l(e,t)}))})}function l(e,t){try{u(r[e](t))}catch(n){f(i[0][3],n)}}function u(e){e.value instanceof y?Promise.resolve(e.value.v).then(s,c):f(i[0][2],e)}function s(e){l("next",e)}function c(e){l("throw",e)}function f(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}}function b(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,r){t[o]=e[o]?function(t){return(n=!n)?{value:y(e[o](t)),done:"return"===o}:r?r(t):t}:r}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"===typeof v?v(e):e[Symbol.iterator](),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,i){t=e[n](t),r(o,i,t.done,t.value)}))}}function r(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var _=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t};function S(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 _(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function N(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),r=o(n(1)),i=o(n(89)),a=o(n(4)),l=o(n(26)),u=o(n(17)),s=o(n(121)),c=o(n(27)),f=o(n(91)),d=o(n(70)),p=o(n(28)),v=o(n(57));(0,r["default"])(t,"__esModule",{value:!0}),t.DomElement=void 0;var h=n(2),g=n(6),m=[];function A(e){var t=document.createElement("div");t.innerHTML=e;var n=t.children;return g.toArray(n)}function y(e){return!!e&&(e instanceof HTMLCollection||e instanceof NodeList)}function w(e){var t=document.querySelectorAll(e);return g.toArray(t)}function b(e){var t=[],n=[];return t=(0,i["default"])(e)?e:e.split(";"),(0,a["default"])(t).call(t,(function(e){var t,o=(0,l["default"])(t=e.split(":")).call(t,(function(e){return(0,u["default"])(e).call(e)}));2===o.length&&n.push(o[0]+":"+o[1])})),n}var x=function(){function e(t){if(this.elems=[],this.length=this.elems.length,this.dataSource=new s["default"],t){if(t instanceof e)return t;var n=[],o=t instanceof Node?t.nodeType:-1;if(this.selector=t,1===o||9===o)n=[t];else if(y(t))n=g.toArray(t);else if(t instanceof Array)n=t;else if("string"===typeof t){var r,i=(0,u["default"])(r=t.replace("/\n/mg","")).call(r);n=0===(0,c["default"])(i).call(i,"<")?A(i):w(i)}var a=n.length;if(!a)return this;for(var l=0;l=t&&(e%=t),E(this.elems[e])},e.prototype.first=function(){return this.get(0)},e.prototype.last=function(){var e=this.length;return this.get(e-1)},e.prototype.on=function(e,t,n){var o;return e?("function"===typeof t&&(n=t,t=""),(0,a["default"])(o=this).call(o,(function(o){if(t){var r=function(e){var o=e.target;o.matches(t)&&n.call(o,e)};o.addEventListener(e,r),m.push({elem:o,selector:t,fn:n,agentFn:r})}else o.addEventListener(e,n)}))):this},e.prototype.off=function(e,t,n){var o;return e?("function"===typeof t&&(n=t,t=""),(0,a["default"])(o=this).call(o,(function(o){if(t){for(var r=-1,i=0;i]+>/g,(function(){return""}))},e.prototype.html=function(e){var t=this.elems[0];return e?(t.innerHTML=e,this):t.innerHTML},e.prototype.val=function(){var e,t=this.elems[0];return(0,u["default"])(e=t.value).call(e)},e.prototype.focus=function(){var e;return(0,a["default"])(e=this).call(e,(function(e){e.focus()}))},e.prototype.prev=function(){var e=this.elems[0];return E(e.previousElementSibling)},e.prototype.next=function(){var e=this.elems[0];return E(e.nextElementSibling)},e.prototype.getNextSibling=function(){var e=this.elems[0];return E(e.nextSibling)},e.prototype.parent=function(){var e=this.elems[0];return E(e.parentElement)},e.prototype.parentUntil=function(e,t){var n=t||this.elems[0];if("BODY"===n.nodeName)return null;var o=n.parentElement;return null===o?null:o.matches(e)?E(o):this.parentUntil(e,o)},e.prototype.parentUntilEditor=function(e,t,n){var o=n||this.elems[0];if(E(o).equal(t.$textContainerElem)||E(o).equal(t.$toolbarElem))return null;var r=o.parentElement;return null===r?null:r.matches(e)?E(r):this.parentUntilEditor(e,t,r)},e.prototype.equal=function(t){return t instanceof e?this.elems[0]===t.elems[0]:t instanceof HTMLElement&&this.elems[0]===t},e.prototype.insertBefore=function(e){var t,n=E(e),o=n.elems[0];return o?(0,a["default"])(t=this).call(t,(function(e){var t=o.parentNode;null===t||void 0===t||t.insertBefore(e,o)})):this},e.prototype.insertAfter=function(e){var t,n=E(e),o=n.elems[0],r=o&&o.nextSibling;return o?(0,a["default"])(t=this).call(t,(function(e){var t=o.parentNode;r?t.insertBefore(e,r):t.appendChild(e)})):this},e.prototype.data=function(e,t){if(null==t)return this.dataSource.get(e);this.dataSource.set(e,t)},e.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))},e.prototype.getOffsetData=function(){var e=this.elems[0];return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight,parent:e.offsetParent}},e.prototype.scrollTop=function(e){var t=this.elems[0];t.scrollTo({top:e})},e}();function E(){for(var e=[],t=0;t/gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g,"
")}function h(e){return e.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,'"')}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=t(n,e[n]);if(!1===o)break}}function m(e,t){var n,o,r,i=e.length||0;for(n=0;n

',t.EMPTY_P_LAST_REGEX=/

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

/gim},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(145))},function(e,t){e.exports={}},function(e,t,n){var o=n(8),r=n(74),i=n(16),a=n(64),l=n(76),u=n(106),s=r("wks"),c=o.Symbol,f=u?c:c&&c.withoutSetter||a;e.exports=function(e){return i(s,e)||(l&&i(c,e)?s[e]=c[e]:s[e]=f("Symbol."+e)),s[e]}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var o=n(9),r=n(16),i=n(93),a=n(18).f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});r(t,e)||a(t,e,{value:i.f(e)})}},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=!o((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),r=n(100),i=n(25),a=n(60),l=Object.defineProperty;t.f=o?l:function(e,t,n){if(i(e),t=a(t,!0),i(n),r)try{return l(e,t,n)}catch(o){}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),r=n(18),i=n(48);e.exports=o?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var o=function(){var e;return function(){return"undefined"===typeof e&&(e=Boolean(window&&document&&document.all&&!window.atob)),e}}(),r=function(){var e={};return function(t){if("undefined"===typeof e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(o){n=null}e[t]=n}return e[t]}}(),i=[];function a(e){for(var t=-1,n=0;n0){var o=null===n||void 0===n?void 0:n.getNodeName();o&&"I"===o&&t.addClass(s)}}));var f=new c["default"](r,o);return r.dropList=f,t.on("click",(function(){var e;null!=n.selection.getRange()&&(t.css("z-index",n.zIndex.get("menu")),(0,i["default"])(e=n.txt.eventHooks.dropListMenuHoverEvents).call(e,(function(e){return e()})),f.show())})).on("mouseleave",(function(){t.css("z-index","auto"),f.hideTimeoutId=(0,a["default"])((function(){f.hide()}))})),r}return l.__extends(t,e),t}(s["default"]);t["default"]=f},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),r=n(49);e.exports=function(e){return o(r(e))}},function(e,t,n){var o=n(49);e.exports=function(e){return Object(o(e))}},function(e,t,n){var o=n(40),r=n(72),i=n(31),a=n(35),l=n(88),u=[].push,s=function(e){var t=1==e,n=2==e,s=3==e,c=4==e,f=6==e,d=5==e||f;return function(p,v,h,g){for(var m,A,y=i(p),w=r(y),b=o(v,h,3),x=a(w.length),E=0,_=g||l,S=t?_(p,x):n?_(p,0):void 0;x>E;E++)if((d||E in w)&&(m=w[E],A=b(m,E,y),e))if(t)S[E]=A;else if(A)switch(e){case 3:return!0;case 5:return m;case 6:return E;case 2:u.call(S,m)}else if(c)return!1;return f?-1:s||c?c:S}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(4)),a=o(n(29)),l=o(n(132));(0,r["default"])(t,"__esModule",{value:!0});var u=n(2),s=u.__importDefault(n(3)),c=n(7),f=function(){function e(t,n){this.menu=t,this.conf=n,this.$container=s["default"]('

');var o=t.editor;o.txt.eventHooks.clickEvents.push(e.hideCurAllPanels),o.txt.eventHooks.toolbarClickEvents.push(e.hideCurAllPanels),o.txt.eventHooks.dropListMenuHoverEvents.push(e.hideCurAllPanels)}return e.prototype.create=function(){var t=this,n=this.menu;if(!e.createdMenus.has(n)){var o=this.conf,r=this.$container,l=o.width||300,f=n.editor.$toolbarElem.getBoundingClientRect(),d=n.$elem.getBoundingClientRect(),p=f.height+f.top-d.top,v=(f.width-l)/2+f.left-d.left,h=300;Math.abs(v)>h&&(v=d.left');r.append(g),g.on("click",(function(){t.remove()}));var m=s["default"]('
    '),A=s["default"]('
    ');r.append(m).append(A);var y=o.height;y&&A.css("height",y+"px").css("overflow-y","auto");var w=o.tabs||[],b=[],x=[];(0,i["default"])(w).call(w,(function(e,t){if(e){var n=e.title||"",o=e.tpl||"",r=s["default"]('
  • '+n+"
  • ");m.append(r);var a=s["default"](o);A.append(a),b.push(r),x.push(a),0===t?(r.data("active",!0),r.addClass("w-e-active")):a.hide(),r.on("click",(function(){r.data("active")||((0,i["default"])(b).call(b,(function(e){e.data("active",!1),e.removeClass("w-e-active")})),(0,i["default"])(x).call(x,(function(e){e.hide()})),r.data("active",!0),r.addClass("w-e-active"),a.show())}))}})),r.on("click",(function(e){e.stopPropagation()})),n.$elem.append(r),o.setLinkValue&&o.setLinkValue(r,"text"),o.setLinkValue&&o.setLinkValue(r,"link"),(0,i["default"])(w).call(w,(function(e,n){if(e){var o=e.events||[];(0,i["default"])(o).call(o,(function(e){var o,r=e.selector,i=e.type,l=e.fn||c.EMPTY_FN,s=x[n],f=null!==(o=e.bindEnter)&&void 0!==o&&o,d=function(e){return u.__awaiter(t,void 0,void 0,(function(){var t;return u.__generator(this,(function(n){switch(n.label){case 0:return e.stopPropagation(),[4,l(e)];case 1:return t=n.sent(),t&&this.remove(),[2]}}))}))};(0,a["default"])(s).call(s,r).on(i,d),f&&"click"===i&&s.on("keyup",(function(e){13==e.keyCode&&d(e)}))}))}}));var E=(0,a["default"])(r).call(r,"input[type=text],textarea");E.length&&E.get(0).focus(),e.hideCurAllPanels(),n.setPanel(this),e.createdMenus.add(n)}},e.prototype.remove=function(){var t=this.menu,n=this.$container;n&&n.remove(),e.createdMenus["delete"](t)},e.hideCurAllPanels=function(){var t;0!==e.createdMenus.size&&(0,i["default"])(t=e.createdMenus).call(t,(function(e){var t=e.panel;t&&t.remove()}))},e.createdMenus=new l["default"],e}();t["default"]=f},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),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){var o=n(9),r=n(8),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(o[e])||i(r[e]):o[e]&&o[e][t]||r[e]&&r[e][t]}},function(e,t,n){var o=n(81),r=n(18).f,i=n(19),a=n(16),l=n(170),u=n(10),s=u("toStringTag");e.exports=function(e,t,n,u){if(e){var c=n?e:e.prototype;a(c,s)||r(c,s,{configurable:!0,value:t}),u&&!o&&i(c,"toString",l)}}},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0});var i=n(2),a=i.__importDefault(n(95)),l=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.setPanel=function(e){this.panel=e},t}(a["default"]);t["default"]=l},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(4)),a=o(n(57));(0,r["default"])(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(3)),s=function(){function e(e,t,n){this.editor=e,this.$targetElem=t,this.conf=n,this._show=!1,this._isInsertTextContainer=!1;var o=u["default"]("
    ");o.addClass("w-e-tooltip"),this.$container=o}return e.prototype.getPositionData=function(){var e=this.$container,t=0,n=0,o=20,r=document.documentElement.scrollTop,i=this.$targetElem.getBoundingClientRect(),a=this.editor.$textElem.getBoundingClientRect(),l=this.$targetElem.getOffsetData(),s=u["default"](l.parent),c=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=s.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var f=s.getBoundingClientRect().height,d=l.top,p=l.left,v=l.height,h=d-c;h>o+5?(t=h-o-15,e.addClass("w-e-tooltip-up")):h+v+o0?h:0)+o+10,e.addClass("w-e-tooltip-down")),n=p<0?0:p}else i.top");l.addClass("w-e-tooltip-item-wrapper "),l.append(a),r.append(l),a.on("click",(function(r){r.preventDefault();var i=t.onClick(n,o);i&&e.remove()}))}))},e.prototype.create=function(){var e,t,n=this.editor,o=this.$container;this.appendMenus();var r=this.getPositionData(),i=r.top,l=r.left;o.css("top",i+"px"),o.css("left",l+"px"),o.css("z-index",n.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(o):u["default"]("body").append(o),this._show=!0,n.beforeDestroy((0,a["default"])(e=this.remove).call(e,this)),n.txt.eventHooks.onBlurEvents.push((0,a["default"])(t=this.remove).call(t,this))},e.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,r["default"])(e.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),e}();t["default"]=s},function(e,t,n){var o=n(41);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,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,r,i,a=n(165),l=n(8),u=n(13),s=n(19),c=n(16),f=n(63),d=n(51),p=l.WeakMap,v=function(e){return i(e)?r(e):o(e,{})},h=function(e){return function(t){var n;if(!u(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(a){var g=new p,m=g.get,A=g.has,y=g.set;o=function(e,t){return y.call(g,e,t),t},r=function(e){return m.call(g,e)||{}},i=function(e){return A.call(g,e)}}else{var w=f("state");d[w]=!0,o=function(e,t){return s(e,w,t),t},r=function(e){return c(e,w)?e[w]:{}},i=function(e){return c(e,w)}}e.exports={set:o,get:r,has:i,enforce:v,getterFor:h}},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),r=o(n(1)),i=o(n(4));(0,r["default"])(t,"__esModule",{value:!0}),t.createElementFragment=t.createDocumentFragment=t.createElement=t.insertBefore=t.getEndPoint=t.getStartPoint=t.updateRange=t.filterSelectionNodes=void 0;var a=n(2),l=n(137),u=a.__importDefault(n(3));function s(e){var t=[];return(0,i["default"])(e).call(e,(function(e){var n=e.getNodeName();if(n!==l.ListType.OrderedList&&n!==l.ListType.UnorderedList)t.push(e);else if(e.prior)t.push(e.prior);else{var o=e.children();null===o||void 0===o||(0,i["default"])(o).call(o,(function(e){t.push(u["default"](e))}))}})),t}function c(e,t,n){var o=e.selection,r=document.createRange();t.length>1?(r.setStart(t.elems[0],0),r.setEnd(t.elems[t.length-1],t.elems[t.length-1].childNodes.length)):r.selectNodeContents(t.elems[0]),n&&r.collapse(!1),o.saveRange(r),o.restoreSelection()}function f(e){var t;return e.prior?e.prior:u["default"](null===(t=e.children())||void 0===t?void 0:t.elems[0])}function d(e){var t;return e.prior?e.prior:u["default"](null===(t=e.children())||void 0===t?void 0:t.last().elems[0])}function p(e,t,n){void 0===n&&(n=null),e.parent().elems[0].insertBefore(t,n)}function v(e){return document.createElement(e)}function h(){return document.createDocumentFragment()}function g(e,t,n){return void 0===n&&(n="li"),(0,i["default"])(e).call(e,(function(e){var o=v(n);o.innerHTML=e.html(),t.appendChild(o),e.remove()})),t}t.filterSelectionNodes=s,t.updateRange=c,t.getStartPoint=f,t.getEndPoint=d,t.insertBefore=p,t.createElement=v,t.createDocumentFragment=h,t.createElementFragment=g},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(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var o=n(164).charAt,r=n(42),i=n(75),a="String Iterator",l=r.set,u=r.getterFor(a);i(String,"String",(function(e){l(this,{type:a,string:String(e),index:0})}),(function(){var e,t=u(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=o(n,r),t.index+=e.length,{value:e,done:!1})}))},function(e,t){e.exports={}},function(e,t,n){var o=n(107),r=n(80);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t,n){var o=n(19);e.exports=function(e,t,n,r){r&&r.enumerable?e[t]=n:o(e,t,n)}},function(e,t,n){n(173);var o=n(174),r=n(8),i=n(65),a=n(19),l=n(44),u=n(10),s=u("toStringTag");for(var c in o){var f=r[c],d=f&&f.prototype;d&&i(d)!==s&&a(d,s,c),l[c]=l.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),r=n(10),i=n(86),a=r("species");e.exports=function(e){return i>=51||!o((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){e.exports=n(222)},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0}),t.ListHandle=void 0;var i=n(2),a=i.__importDefault(n(373)),l=function(){function e(e){this.options=e,this.selectionRangeElem=new a["default"]}return e}();t.ListHandle=l},function(e,t,n){"use strict";var o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!o.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:o},function(e,t,n){var o=n(13);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;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:(e>0?o:n)(e)}},function(e,t,n){var o=n(74),r=n(64),i=o("keys");e.exports=function(e){return i[e]||(i[e]=r(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),r=n(34),i=n(10),a=i("toStringTag"),l="Arguments"==r(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=o?r:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=Object(e),a))?n:l?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,n){var o=n(25),r=n(112),i=n(35),a=n(40),l=n(113),u=n(114),s=function(e,t){this.stopped=e,this.result=t},c=e.exports=function(e,t,n,c,f){var d,p,v,h,g,m,A,y=a(t,n,c?2:1);if(f)d=e;else{if(p=l(e),"function"!=typeof p)throw TypeError("Target is not iterable");if(r(p)){for(v=0,h=i(e.length);h>v;v++)if(g=c?y(o(A=e[v])[0],A[1]):y(e[v]),g&&g instanceof s)return g;return new s(!1)}d=p.call(e)}m=d.next;while(!(A=m.call(d)).done)if(g=u(d,y,A.value,c),"object"==typeof g&&g&&g instanceof s)return g;return new s(!1)};c.stop=function(e){return new s(!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),r=n(18),i=n(48);e.exports=function(e,t,n){var a=o(t);a in e?r.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){e.exports=n(209)},function(e,t,n){var o=n(14),r=n(59),i=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(n){}if(u(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var o=n(11),r=n(34),i="".split;e.exports=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?i.call(e,""):Object(e)}:Object},function(e,t,n){var o=n(8),r=n(13),i=o.document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var o=n(43),r=n(103);(e.exports=function(e,t){return r[e]||(r[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";var o=n(5),r=n(167),i=n(105),a=n(171),l=n(37),u=n(19),s=n(53),c=n(10),f=n(43),d=n(44),p=n(104),v=p.IteratorPrototype,h=p.BUGGY_SAFARI_ITERATORS,g=c("iterator"),m="keys",A="values",y="entries",w=function(){return this};e.exports=function(e,t,n,c,p,b,x){r(n,t,c);var E,_,S,C=function(e){if(e===p&&T)return T;if(!h&&e in D)return D[e];switch(e){case m:return function(){return new n(this,e)};case A:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",N=!1,D=e.prototype,M=D[g]||D["@@iterator"]||p&&D[p],T=!h&&M||C(p),R="Array"==t&&D.entries||M;if(R&&(E=i(R.call(new e)),v!==Object.prototype&&E.next&&(f||i(E)===v||(a?a(E,v):"function"!=typeof E[g]&&u(E,g,w)),l(E,k,!0,!0),f&&(d[k]=w))),p==A&&M&&M.name!==A&&(N=!0,T=function(){return M.call(this)}),f&&!x||D[g]===T||u(D,g,T),d[t]=T,p)if(_={values:C(A),keys:b?T:C(m),entries:C(y)},x)for(S in _)(h||N||!(S in D))&&s(D,S,_[S]);else o({target:t,proto:!0,forced:h||N},_);return _}},function(e,t,n){var o=n(11);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())}))},function(e,t,n){var o,r=n(25),i=n(169),a=n(80),l=n(51),u=n(108),s=n(73),c=n(63),f=">",d="<",p="prototype",v="script",h=c("IE_PROTO"),g=function(){},m=function(e){return d+v+f+e+d+"/"+v+f},A=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=s("iframe"),n="java"+v+":";return t.style.display="none",u.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},w=function(){try{o=document.domain&&new ActiveXObject("htmlfile")}catch(t){}w=o?A(o):y();var e=a.length;while(e--)delete w[p][a[e]];return w()};l[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[p]=r(e),n=new g,g[p]=null,n[h]=e):n=w(),void 0===t?n:i(n,t)}},function(e,t,n){var o=n(30),r=n(35),i=n(79),a=function(e){return function(t,n,a){var l,u=o(t),s=r(u.length),c=i(a,s);if(e&&n!=n){while(s>c)if(l=u[c++],l!=l)return!0}else for(;s>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var o=n(62),r=Math.max,i=Math.min;e.exports=function(e,t){var n=o(e);return n<0?r(n+t,0):i(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var o=n(10),r=o("toStringTag"),i={};i[r]="z",e.exports="[object z]"===String(i)},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){var o=n(36);e.exports=o("navigator","userAgent")||""},function(e,t,n){"use strict";var o=n(41),r=function(e){var t,n;this.promise=new e((function(e,o){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new r(e)}},function(e,t,n){var o,r,i=n(8),a=n(84),l=i.process,u=l&&l.versions,s=u&&u.v8;s?(o=s.split("."),r=o[0]+o[1]):a&&(o=a.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/),o&&(r=o[1]))),e.exports=r&&+r},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(4));(0,r["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)),v=a.__importStar(n(416)),h=a.__importDefault(n(417)),g=a.__importDefault(n(418)),m=a.__importDefault(n(419)),A=a.__importStar(n(420)),y=a.__importDefault(n(423)),w=a.__importDefault(n(424)),b=a.__importDefault(n(425)),x=a.__importDefault(n(427)),E=a.__importDefault(n(437)),_=a.__importDefault(n(440)),S=a.__importStar(n(441)),C=a.__importDefault(n(23)),k=a.__importDefault(n(134)),N=a.__importDefault(n(24)),D=a.__importDefault(n(33)),M=a.__importDefault(n(38)),T=a.__importDefault(n(39)),R=1,B=function(){function e(e,t){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+R++,this.toolbarSelector=e,this.textSelector=t,v.selectorValidator(this),this.config=u.deepClone(s["default"]),this.$toolbarElem=l["default"]("
    "),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 b["default"](this),this.history=new x["default"](this),this.onSelectionChange=new _["default"](this);var n=E["default"](this),o=n.disable,r=n.enable;this.disable=o,this.enable=r,this.isEnable=!0}return e.prototype.initSelection=function(e){h["default"](this,e)},e.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),m["default"](this),v["default"](this),this.txt.init(),this.menus.init(),A["default"](this),this.initSelection(!0),g["default"](this),this.change.observe(),this.history.observe(),S["default"](this)},e.prototype.beforeDestroy=function(e){return this.beforeDestroyHooks.push(e),this},e.prototype.destroy=function(){var e,t=this;(0,i["default"])(e=this.beforeDestroyHooks).call(e,(function(e){return e.call(t)})),this.$toolbarElem.remove(),this.$textContainerElem.remove()},e.prototype.fullScreen=function(){A.setFullScreen(this)},e.prototype.unFullScreen=function(){A.setUnFullScreen(this)},e.prototype.scrollToHead=function(e){y["default"](this,e)},e.registerMenu=function(t,n){n&&"function"===typeof n&&(e.globalCustomMenuConstructorList[t]=n)},e.prototype.registerPlugin=function(e,t){S.registerPlugin(e,t,this.pluginsFunctionList)},e.registerPlugin=function(t,n){S.registerPlugin(t,n,e.globalPluginsFunctionList)},e.$=l["default"],e.BtnMenu=C["default"],e.DropList=k["default"],e.DropListMenu=N["default"],e.Panel=D["default"],e.PanelMenu=M["default"],e.Tooltip=T["default"],e.globalCustomMenuConstructorList={},e.globalPluginsFunctionList={},e}();t["default"]=B},function(e,t,n){var o=n(13),r=n(55),i=n(10),a=i("species");e.exports=function(e,t){var n;return r(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!r(n.prototype)?o(n)&&(n=n[a],null===n&&(n=void 0)):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),r=n(68),i="["+r+"]",a=RegExp("^"+i+i+"*"),l=RegExp(i+i+"*$"),u=function(e){return function(t){var n=String(o(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(l,"")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},function(e,t,n){e.exports=n(205)},function(e,t,n){var o=n(227),r=n(230);function i(t){return e.exports=i="function"===typeof r&&"symbol"===typeof o?function(e){return typeof e}:function(e){return e&&"function"===typeof r&&e.constructor===r&&e!==r.prototype?"symbol":typeof e},i(t)}e.exports=i},function(e,t,n){var o=n(10);t.f=o},function(e,t,n){e.exports=n(306)},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(4));(0,r["default"])(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(33)),u=function(){function e(e,t){var n=this;this.$elem=e,this.editor=t,this._active=!1,e.on("click",(function(e){var o;l["default"].hideCurAllPanels(),(0,i["default"])(o=t.txt.eventHooks.menuClickEvents).call(o,(function(e){return e()})),e.stopPropagation(),null!=t.selection.getRange()&&n.clickHandler(e)}))}return e.prototype.clickHandler=function(e){},e.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},e.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,r["default"])(e.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),e}();t["default"]=u},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(28));function a(e){var n=e.elems[0];while(n&&(0,i["default"])(o=t.EXTRA_TAG).call(o,n.nodeName)){var o;if(n=n.parentElement,"A"===n.nodeName)return n}}function l(e){var t,n=e.selection.getSelectionContainerElem();if(!(null===(t=null===n||void 0===n?void 0:n.elems)||void 0===t?void 0:t.length))return!1;if("A"===n.getNodeName())return!0;var o=a(n);return!(!o||"A"!==o.nodeName)}(0,r["default"])(t,"__esModule",{value:!0}),t.getParentNodeA=t.EXTRA_TAG=void 0,t.EXTRA_TAG=["B","FONT","I","STRIKE"],t.getParentNodeA=a,t["default"]=l},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(57)),a=o(n(4)),l=o(n(27));(0,r["default"])(t,"__esModule",{value:!0});var u=n(2),s=n(6),c=u.__importDefault(n(135)),f=u.__importDefault(n(136)),d=function(){function e(e){this.editor=e}return e.prototype.insertImg=function(e,t,n){var o=this.editor,r=o.config,i="validate.",a=function(e,t){return void 0===t&&(t=i),o.i18next.t(t+e)},l=e.replace(//g,">");l=l.replace("'",'"');var u="";n&&(u=n.replace("'",'"'),u="data-href='"+encodeURIComponent(u)+"' ");var s="";t&&(s=t.replace(//g,">"),s=s.replace("'",'"'),s="alt='"+s+"' "),o.cmd["do"]("insertHTML","'),r.linkImgCallback(e,t,n);var c=document.createElement("img");c.onload=function(){c=null},c.onerror=function(){r.customAlert(a("插入图片错误"),"error","wangEditor: "+a("插入图片错误")+","+a("图片链接")+' "'+e+'",'+a("下载链接失败")),c=null},c.onabort=function(){return c=null},c.src=e},e.prototype.uploadImg=function(e){var t=this;if(e.length){var n=this.editor,o=n.config,r="validate.",u=function(e){return n.i18next.t(r+e)},d=o.uploadImgServer,p=o.uploadImgShowBase64,v=o.uploadImgMaxSize,h=v/1024/1024,g=o.uploadImgMaxLength,m=o.uploadFileName,A=o.uploadImgParams,y=o.uploadImgParamsWithUrl,w=o.uploadImgHeaders,b=o.uploadImgHooks,x=o.uploadImgTimeout,E=o.withCredentials,_=o.customUploadImg;if(_||d||p){var S=[],C=[];if(s.arrForEach(e,(function(e){if(e){var t=e.name||e.type.replace("/","."),o=e.size;if(t&&o){var r=n.config.uploadImgAccept.join("|"),i=".("+r+")$",a=new RegExp(i,"i");!1!==a.test(t)?vg)o.customAlert(u("一次最多上传")+g+u("张图片"),"warning");else if(_&&"function"===typeof _){var k;_(S,(0,i["default"])(k=this.insertImg).call(k,this))}else{var N=new FormData;if((0,a["default"])(S).call(S,(function(e,t){var n=m||e.name;S.length>1&&(n+=t+1),N.append(n,e)})),d){var D=d.split("#");d=D[0];var M=D[1]||"";(0,a["default"])(s).call(s,A,(function(e,t){y&&((0,l["default"])(d).call(d,"?")>0?d+="&":d+="?",d=d+e+"="+t),N.append(e,t)})),M&&(d+="#"+M);var T=c["default"](d,{timeout:x,formData:N,headers:w,withCredentials:!!E,beforeSend:function(e){if(b.before)return b.before(e,n,S)},onTimeout:function(e){o.customAlert(u("上传图片超时"),"error"),b.timeout&&b.timeout(e,n)},onProgress:function(e,t){var o=new f["default"](n);t.lengthComputable&&(e=t.loaded/t.total,o.show(e))},onError:function(e){o.customAlert(u("上传图片错误"),"error",u("上传图片错误")+","+u("服务器返回状态")+": "+e.status),b.error&&b.error(e,n)},onFail:function(e,t){o.customAlert(u("上传图片失败"),"error",u("上传图片返回结果错误")+","+u("返回结果")+": "+t),b.fail&&b.fail(e,n,t)},onSuccess:function(e,r){if(b.customInsert){var l;b.customInsert((0,i["default"])(l=t.insertImg).call(l,t),r,n)}else{if("0"!=r.errno)return o.customAlert(u("上传图片失败"),"error",u("上传图片返回结果错误")+","+u("返回结果")+" errno="+r.errno),void(b.fail&&b.fail(e,n,r));var s=r.data;(0,a["default"])(s).call(s,(function(e){"string"===typeof e?t.insertImg(e):t.insertImg(e.url,e.alt,e.href)})),b.success&&b.success(e,n,r)}}});"string"===typeof T&&o.customAlert(T,"error")}else p&&s.arrForEach(e,(function(e){var n=t,o=new FileReader;o.readAsDataURL(e),o.onload=function(){if(this.result){var e=this.result.toString();n.insertImg(e,e)}}}))}else o.customAlert(u("传入的文件不合法"),"warning")}}},e}();t["default"]=d},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(410)),a=o(n(4)),l=o(n(45));function u(e){return!!e.length&&"w-e-todo"===e.attr("class")}function s(e){var t=e.selection.getSelectionRangeTopNodes();if(0!==t.length)return(0,i["default"])(t).call(t,(function(e){return u(e)}))}function c(e,t,n){var o;if(e.hasChildNodes()){var r=e.cloneNode(),i=!1;""===t.nodeValue&&(i=!0);var l=[];return(0,a["default"])(o=e.childNodes).call(o,(function(e){if(!f(e,t)&&i&&(r.appendChild(e.cloneNode(!0)),"BR"!==e.nodeName&&l.push(e)),f(e,t)){if(1===e.nodeType){var o=c(e,t,n);o&&""!==o.textContent&&(null===r||void 0===r||r.appendChild(o))}if(3===e.nodeType&&t.isEqualNode(e)){var a=d(e,n);r.textContent=a}i=!0}})),(0,a["default"])(l).call(l,(function(e){var t=e;t.remove()})),r}}function f(e,t){return 3===e.nodeType?e.nodeValue===t.nodeValue:e.contains(t)}function d(e,t,n){void 0===n&&(n=!0);var o=e.nodeValue,r=null===o||void 0===o?void 0:(0,l["default"])(o).call(o,0,t);if(o=null===o||void 0===o?void 0:(0,l["default"])(o).call(o,t),!n){var i=o;o=r,r=i}return e.nodeValue=r,o}(0,r["default"])(t,"__esModule",{value:!0}),t.dealTextNode=t.isAllTodo=t.isTodo=t.getCursorNextNode=void 0,t.isTodo=u,t.isAllTodo=s,t.getCursorNextNode=c,t.dealTextNode=d},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0});var i=n(430),a=function(){function e(e){this.maxSize=e,this.isRe=!1,this.data=new i.CeilStack(e),this.revokeData=new i.CeilStack(e)}return(0,r["default"])(e.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),e.prototype.resetMaxSize=function(e){this.data.resetMax(e),this.revokeData.resetMax(e)},e.prototype.save=function(e){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(e),this},e.prototype.revoke=function(e){!this.isRe&&(this.isRe=!0);var t=this.data.outstack();return!!t&&(this.revokeData.instack(t),e(t),!0)},e.prototype.restore=function(e){!this.isRe&&(this.isRe=!0);var t=this.revokeData.outstack();return!!t&&(this.data.instack(t),e(t),!0)},e}();t["default"]=a},function(e,t,n){var o=n(14),r=n(11),i=n(73);e.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var o=n(11),r=/#|\.prototype\./,i=function(e,t){var n=l[a(e)];return n==s||n!=u&&("function"==typeof t?o(t):!!t)},a=i.normalize=function(e){return String(e).replace(r,".").toLowerCase()},l=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},function(e,t,n){var o=n(103),r=Function.toString;"function"!=typeof o.inspectSource&&(o.inspectSource=function(e){return r.call(e)}),e.exports=o.inspectSource},function(e,t,n){var o=n(8),r=n(166),i="__core-js_shared__",a=o[i]||r(i,{});e.exports=a},function(e,t,n){"use strict";var o,r,i,a=n(105),l=n(19),u=n(16),s=n(10),c=n(43),f=s("iterator"),d=!1,p=function(){return this};[].keys&&(i=[].keys(),"next"in i?(r=a(a(i)),r!==Object.prototype&&(o=r)):d=!0),void 0==o&&(o={}),c||u(o,f)||l(o,f,p),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){var o=n(16),r=n(31),i=n(63),a=n(168),l=i("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=r(e),o(e,l)?e[l]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,n){var o=n(76);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var o=n(16),r=n(30),i=n(78).indexOf,a=n(51);e.exports=function(e,t){var n,l=r(e),u=0,s=[];for(n in l)!o(a,n)&&o(l,n)&&s.push(n);while(t.length>u)o(l,n=t[u++])&&(~i(s,n)||s.push(n));return s}},function(e,t,n){var o=n(36);e.exports=o("document","documentElement")},function(e,t,n){var o=n(8);e.exports=o.Promise},function(e,t,n){var o=n(53);e.exports=function(e,t,n){for(var r in t)n&&n.unsafe&&e[r]?e[r]=t[r]:o(e,r,t[r],n);return e}},function(e,t,n){"use strict";var o=n(36),r=n(18),i=n(10),a=n(14),l=i("species");e.exports=function(e){var t=o(e),n=r.f;a&&t&&!t[l]&&n(t,l,{configurable:!0,get:function(){return this}})}},function(e,t,n){var o=n(10),r=n(44),i=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},function(e,t,n){var o=n(65),r=n(44),i=n(10),a=i("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||r[o(e)]}},function(e,t,n){var o=n(25);e.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(a){var i=e["return"];throw void 0!==i&&o(i.call(e)),a}}},function(e,t,n){var o=n(10),r=o("iterator"),i=!1;try{var a=0,l={next:function(){return{done:!!a++}},return:function(){i=!0}};l[r]=function(){return this},Array.from(l,(function(){throw 2}))}catch(u){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(u){}return n}},function(e,t,n){var o=n(25),r=n(41),i=n(10),a=i("species");e.exports=function(e,t){var n,i=o(e).constructor;return void 0===i||void 0==(n=o(i)[a])?t:r(n)}},function(e,t,n){var o,r,i,a=n(8),l=n(11),u=n(34),s=n(40),c=n(108),f=n(73),d=n(118),p=a.location,v=a.setImmediate,h=a.clearImmediate,g=a.process,m=a.MessageChannel,A=a.Dispatch,y=0,w={},b="onreadystatechange",x=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},E=function(e){return function(){x(e)}},_=function(e){x(e.data)},S=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};v&&h||(v=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return w[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},o(y),y},h=function(e){delete w[e]},"process"==u(g)?o=function(e){g.nextTick(E(e))}:A&&A.now?o=function(e){A.now(E(e))}:m&&!d?(r=new m,i=r.port2,r.port1.onmessage=_,o=s(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||l(S)||"file:"===p.protocol?o=b in f("script")?function(e){c.appendChild(f("script"))[b]=function(){c.removeChild(this),x(e)}}:function(e){setTimeout(E(e),0)}:(o=S,a.addEventListener("message",_,!1))),e.exports={set:v,clear:h}},function(e,t,n){var o=n(84);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(o)},function(e,t,n){var o=n(25),r=n(13),i=n(85);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=i.f(e),a=n.resolve;return a(t),n.promise}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,n){e.exports=n(197)},function(e,t,n){"use strict";var o=n(5),r=n(8),i=n(123),a=n(11),l=n(19),u=n(66),s=n(83),c=n(13),f=n(37),d=n(18).f,p=n(32).forEach,v=n(14),h=n(42),g=h.set,m=h.getterFor;e.exports=function(e,t,n){var h,A=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),w=A?"set":"add",b=r[e],x=b&&b.prototype,E={};if(v&&"function"==typeof b&&(y||x.forEach&&!a((function(){(new b).entries().next()})))){h=t((function(t,n){g(s(t,h,e),{type:e,collection:new b}),void 0!=n&&u(n,t[w],t,A)}));var _=m(e);p(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in x)||y&&"clear"==e||l(h.prototype,e,(function(n,o){var r=_(this).collection;if(!t&&y&&!c(n))return"get"==e&&void 0;var i=r[e](0===n?0:n,o);return t?this:i}))})),y||d(h.prototype,"size",{configurable:!0,get:function(){return _(this).collection.size}})}else h=n.getConstructor(t,e,A,w),i.REQUIRED=!0;return f(h,e,!1,!0),E[e]=h,o({global:!0,forced:!0},E),y||n.setStrong(h,e,A),h}},function(e,t,n){var o=n(51),r=n(13),i=n(16),a=n(18).f,l=n(64),u=n(200),s=l("meta"),c=0,f=Object.isExtensible||function(){return!0},d=function(e){a(e,s,{value:{objectID:"O"+ ++c,weakData:{}}})},p=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,s)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[s].objectID},v=function(e,t){if(!i(e,s)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[s].weakData},h=function(e){return u&&g.REQUIRED&&f(e)&&!i(e,s)&&d(e),e},g=e.exports={REQUIRED:!1,fastKey:p,getWeakData:v,onFreeze:h};o[s]=!0},function(e,t,n){"use strict";var o=n(18).f,r=n(77),i=n(110),a=n(40),l=n(83),u=n(66),s=n(75),c=n(111),f=n(14),d=n(123).fastKey,p=n(42),v=p.set,h=p.getterFor;e.exports={getConstructor:function(e,t,n,s){var c=e((function(e,o){l(e,c,t),v(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),f||(e.size=0),void 0!=o&&u(o,e[s],e,n)})),p=h(t),g=function(e,t,n){var o,r,i=p(e),a=m(e,t);return a?a.value=n:(i.last=a={index:r=d(t,!0),key:t,value:n,previous:o=i.last,next:void 0,removed:!1},i.first||(i.first=a),o&&(o.next=a),f?i.size++:e.size++,"F"!==r&&(i.index[r]=a)),e},m=function(e,t){var n,o=p(e),r=d(t);if("F"!==r)return o.index[r];for(n=o.first;n;n=n.next)if(n.key==t)return n};return i(c.prototype,{clear:function(){var e=this,t=p(e),n=t.index,o=t.first;while(o)o.removed=!0,o.previous&&(o.previous=o.previous.next=void 0),delete n[o.index],o=o.next;t.first=t.last=void 0,f?t.size=0:e.size=0},delete:function(e){var t=this,n=p(t),o=m(t,e);if(o){var r=o.next,i=o.previous;delete n.index[o.index],o.removed=!0,i&&(i.next=r),r&&(r.previous=i),n.first==o&&(n.first=r),n.last==o&&(n.last=i),f?n.size--:t.size--}return!!o},forEach:function(e){var t,n=p(this),o=a(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){o(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!m(this,e)}}),i(c.prototype,n?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),f&&o(c.prototype,"size",{get:function(){return p(this).size}}),c},setStrong:function(e,t,n){var o=t+" Iterator",r=h(t),i=h(o);s(e,t,(function(e,t){v(this,{type:o,target:e,state:r(e),kind:t,last:void 0})}),(function(){var e=i(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(t)}}},function(e,t,n){var o=n(12);o("iterator")},function(e,t,n){var o=n(107),r=n(80),i=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,i)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){e.exports=n(268)},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0}),t["default"]={zIndex:1e4}},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0}),t["default"]={focus:!0,height:300,placeholder:"请输入正文",zIndexFullScreen:10002,showFullScreen:!0}},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(4));(0,r["default"])(t,"__esModule",{value:!0}),t.getPasteImgs=t.getPasteHtml=t.getPasteText=void 0;var a=n(2),l=n(6),u=a.__importDefault(n(292));function s(e){var t=e.clipboardData,n="";return n=null==t?window.clipboardData&&window.clipboardData.getData("text"):t.getData("text/plain"),l.replaceHtmlSymbol(n)}function c(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var o=e.clipboardData,r="";if(o&&(r=o.getData("text/html")),!r){var i=s(e);if(!i)return"";r="

    "+i+"

    "}return r=r.replace(/<(\d)/gm,(function(e,t){return"<"+t})),r=r.replace(/<(\/?meta.*?)>/gim,""),r=u["default"](r,t,n),r}function f(e){var t,n=[],o=s(e);if(o)return n;var r=null===(t=e.clipboardData)||void 0===t?void 0:t.items;return r?((0,i["default"])(l).call(l,r,(function(e,t){var o=t.type;/image/i.test(o)&&n.push(t.getAsFile())})),n):n}t.getPasteText=s,t.getPasteHtml=c,t.getPasteImgs=f},function(e,t,n){e.exports=n(294)},function(e,t,n){e.exports=n(310)},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(4)),a=o(n(46));(0,r["default"])(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(3)),s=n(7),c=function(){function e(e,t){var n=this;this.hideTimeoutId=0,this.menu=e,this.conf=t;var o=u["default"]('
    '),r=u["default"]("

    "+t.title+"

    ");r.addClass("w-e-dp-title"),o.append(r);var l=t.list||[],c=t.type||"list",f=t.clickHandler||s.EMPTY_FN,d=u["default"]('
      ');(0,i["default"])(l).call(l,(function(e){var t=e.$elem,o=e.value,r=u["default"]('
    • ');t&&(r.append(t),d.append(r),r.on("click",(function(e){f(o),e.stopPropagation(),n.hideTimeoutId=(0,a["default"])((function(){n.hide()}))})))})),o.append(d),o.on("mouseleave",(function(){n.hideTimeoutId=(0,a["default"])((function(){n.hide()}))})),this.$container=o,this.rendered=!1,this._show=!1}return e.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var e=this.menu,t=e.$elem,n=this.$container;if(!this._show){if(this.rendered)n.show();else{var o=t.getBoundingClientRect().height||0,r=this.conf.width||100;n.css("margin-top",o+"px").css("width",r+"px"),t.append(n),this.rendered=!0}this._show=!0}},e.prototype.hide=function(){var e=this.$container;this._show&&(e.hide(),this._show=!1)},(0,r["default"])(e.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),e}();t["default"]=c},function(e,t,n){"use strict";var o=n(0),r=o(n(92)),i=o(n(1)),a=o(n(4));(0,i["default"])(t,"__esModule",{value:!0});var l=n(6);function u(e,t){var n=new XMLHttpRequest;if(n.open("POST",e),n.timeout=t.timeout||1e4,n.ontimeout=function(){console.error("wangEditor - 请求超时"),t.onTimeout&&t.onTimeout(n)},n.upload&&(n.upload.onprogress=function(e){var n=e.loaded/e.total;t.onProgress&&t.onProgress(n,e)}),t.headers&&(0,a["default"])(l).call(l,t.headers,(function(e,t){n.setRequestHeader(e,t)})),n.withCredentials=!!t.withCredentials,t.beforeSend){var o=t.beforeSend(n);if(o&&"object"===(0,r["default"])(o)&&o.prevent)return o.msg}return n.onreadystatechange=function(){if(4===n.readyState){var e=n.status;if(!(e<200)&&!(e>=300&&e<400)){if(e>=400)return console.error("wangEditor - XHR 报错,状态码 "+e),void(t.onError&&t.onError(n));var o,i=n.responseText;if("object"!==(0,r["default"])(i))try{o=JSON.parse(i)}catch(a){return console.error("wangEditor - 返回结果不是 JSON 格式",i),void(t.onFail&&t.onFail(n,i))}else o=i;t.onSuccess(n,o)}}},n.send(t.formData||null),n}t["default"]=u},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(342)),a=o(n(46));(0,r["default"])(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(3)),s=function(){function e(e){this.editor=e,this.$textContainer=e.$textContainerElem,this.$bar=u["default"]('
      '),this.isShow=!1,this.time=0,this.timeoutId=0}return e.prototype.show=function(e){var t=this;if(!this.isShow){this.isShow=!0;var n=this.$bar,o=this.$textContainer;o.append(n),(0,i["default"])()-this.time>100&&e<=1&&(n.css("width",100*e+"%"),this.time=(0,i["default"])());var r=this.timeoutId;r&&clearTimeout(r),this.timeoutId=(0,a["default"])((function(){t.hide()}),500)}},e.prototype.hide=function(){var e=this.$bar;e.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},e}();t["default"]=s},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0}),t.ListType=void 0;var i,a=n(2),l=a.__importDefault(n(3)),u=a.__importDefault(n(24)),s=n(47),c=a.__importStar(n(371));(function(e){e["OrderedList"]="OL",e["UnorderedList"]="UL"})(i=t.ListType||(t.ListType={}));var f=function(e){function t(t){var n=this,o=l["default"]('
      \n \n
      '),r={width:130,title:"序列",type:"list",list:[{$elem:l["default"]('\n

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

      "),value:i.UnorderedList},{$elem:l["default"]('

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

      "),value:i.OrderedList}],clickHandler:function(e){n.command(e)}};return n=e.call(this,o,t,r)||this,n}return a.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();void 0!==n&&(this.handleSelectionRangeNodes(e),this.tryChangeActive())},t.prototype.validator=function(e,t,n){return!(!e.length||!t.length||n.equal(e)||n.equal(t))},t.prototype.handleSelectionRangeNodes=function(e){var t=this.editor,n=t.selection,o=e.toLowerCase(),r=n.getSelectionContainerElem(),i=n.getSelectionStartElem().getNodeTop(t),a=n.getSelectionEndElem().getNodeTop(t);if(this.validator(i,a,t.$textElem)){var l=n.getRange(),u=null===l||void 0===l?void 0:l.collapsed;t.$textElem.equal(r)||(r=r.getNodeTop(t));var f,d={editor:t,listType:e,listTarget:o,$selectionElem:r,$startElem:i,$endElem:a};f=this.isOrderElem(r)?c.ClassType.Wrap:this.isOrderElem(i)&&this.isOrderElem(a)?c.ClassType.Join:this.isOrderElem(i)?c.ClassType.StartJoin:this.isOrderElem(a)?c.ClassType.EndJoin:c.ClassType.Other;var p=new c["default"](c.createListHandle(f,d,l));s.updateRange(t,p.getSelectionRangeElem(),!!u)}},t.prototype.isOrderElem=function(e){var t=e.getNodeName();return t===i.OrderedList||t===i.UnorderedList},t.prototype.tryChangeActive=function(){},t}(u["default"]);t["default"]=f},function(e,t,n){e.exports=n(395)},function(e,t,n){"use strict";var o=n(0),r=o(n(1));function i(e){var t=e.selection.getSelectionContainerElem();return!!(null===t||void 0===t?void 0:t.length)&&!("CODE"!=t.getNodeName()&&"PRE"!=t.getNodeName()&&"CODE"!=t.parent().getNodeName()&&"PRE"!=t.parent().getNodeName()&&!/hljs/.test(t.parent().attr("class")))}(0,r["default"])(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(29));(0,r["default"])(t,"__esModule",{value:!0}),t.todo=void 0;var a=n(2),l=a.__importDefault(n(3)),u=function(){function e(e){var t;this.template='

      ',this.checked=!1,this.$todo=l["default"](this.template),this.$child=null===(t=null===e||void 0===e?void 0:e.childNodes())||void 0===t?void 0:t.clone(!0)}return e.prototype.init=function(){var e=this.$child,t=this.getInputContainer();e&&e.insertAfter(t)},e.prototype.getInput=function(){var e=this.$todo,t=(0,i["default"])(e).call(e,"input");return t},e.prototype.getInputContainer=function(){var e=this.getInput().parent();return e},e.prototype.getTodo=function(){return this.$todo},e}();function s(e){var t=new u(e);return t.init(),t}t.todo=u,t["default"]=s},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0});var i=n(2);n(146),n(148),n(152),n(154),n(156),n(158),n(160);var a=i.__importDefault(n(87));i.__exportStar(n(442),t);try{document}catch(l){throw new Error("请在浏览器环境下运行")}t["default"]=a["default"]},function(e,t,n){var o=n(143);e.exports=o},function(e,t,n){n(144);var o=n(9),r=o.Object,i=e.exports=function(e,t,n){return r.defineProperty(e,t,n)};r.defineProperty.sham&&(i.sham=!0)},function(e,t,n){var o=n(5),r=n(14),i=n(18);o({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:i.f})},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(o){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){var o=n(20),r=n(147);r=r.__esModule?r.default:r,"string"===typeof r&&(r=[[e.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},function(e,t,n){var o=n(21);t=o(!1),t.push([e.i,'.w-e-toolbar,\n.w-e-text-container,\n.w-e-menu-panel {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n background-color: #fff;\n /*表情菜单样式*/\n /*分割线样式*/\n}\n.w-e-toolbar h1,\n.w-e-text-container h1,\n.w-e-menu-panel h1 {\n font-size: 32px !important;\n}\n.w-e-toolbar h2,\n.w-e-text-container h2,\n.w-e-menu-panel h2 {\n font-size: 24px !important;\n}\n.w-e-toolbar h3,\n.w-e-text-container h3,\n.w-e-menu-panel h3 {\n font-size: 18.72px !important;\n}\n.w-e-toolbar h4,\n.w-e-text-container h4,\n.w-e-menu-panel h4 {\n font-size: 16px !important;\n}\n.w-e-toolbar h5,\n.w-e-text-container h5,\n.w-e-menu-panel h5 {\n font-size: 13.28px !important;\n}\n.w-e-toolbar p,\n.w-e-text-container p,\n.w-e-menu-panel p {\n font-size: 16px !important;\n}\n.w-e-toolbar .eleImg,\n.w-e-text-container .eleImg,\n.w-e-menu-panel .eleImg {\n cursor: pointer;\n display: inline-block;\n font-size: 18px;\n padding: 0 3px;\n}\n.w-e-toolbar *,\n.w-e-text-container *,\n.w-e-menu-panel * {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n.w-e-toolbar hr,\n.w-e-text-container hr,\n.w-e-menu-panel hr {\n cursor: pointer;\n display: block;\n height: 0px;\n border: 0;\n border-top: 3px solid #ccc;\n margin: 20px 0;\n}\n.w-e-clear-fix:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-drop-list-item {\n position: relative;\n top: 1px;\n padding-right: 7px;\n color: #333 !important;\n}\n.w-e-drop-list-tl {\n padding-left: 10px;\n text-align: left;\n}\n',""]),e.exports=t},function(e,t,n){var o=n(20),r=n(149);r=r.__esModule?r.default:r,"string"===typeof r&&(r=[[e.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},function(e,t,n){var o=n(21),r=n(150),i=n(151);t=o(!1);var a=r(i);t.push([e.i,"@font-face {\n font-family: 'w-e-icon';\n src: url("+a+') 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={}),e=e&&e.__esModule?e.default:e,"string"!==typeof 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,d09GRgABAAAAABskAAsAAAAAGtgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPFWNtYXAAAAFoAAABHAAAARz2mfAgZ2FzcAAAAoQAAAAIAAAACAAAABBnbHlmAAACjAAAFXwAABV8IH7+mGhlYWQAABgIAAAANgAAADYb6gumaGhlYQAAGEAAAAAkAAAAJAkjBWlobXR4AAAYZAAAAKQAAACkmYcEbmxvY2EAABkIAAAAVAAAAFReAmKYbWF4cAAAGVwAAAAgAAAAIAA0ALZuYW1lAAAZfAAAAYYAAAGGmUoJ+3Bvc3QAABsEAAAAIAAAACAAAwAAAAMD7wGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAQAAAAA8ACAABAAcAAEAIOkB6QbpDekS6UfpZul36bnpu+m+6cbpy+nf6gvqDepS6lzqX+pl6nHqfPAN8BTxIPHc8fz//f//AAAAAAAg6QDpBukM6RLpR+ll6Xfpuem76b7pxunL6d/qC+oN6lLqXOpf6mLqcep38A3wFPEg8dzx/P/9//8AAf/jFwQXABb7FvcWwxamFpYWVRZUFlIWSxZHFjQWCRYIFcQVuxW5FbcVrBWnEBcQEQ8GDksOLAADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAAEAEEAAQO/A38ABQALABEAFwAAATMVIREzAxEhFSMVATUzESE1ETUhESM1Av/A/sJ+fgE+wP4Cfv7CAT5+Ar9+AT78ggE+fsACvsD+wn7+An7+wsAAAAAABABBAAEDvwN/AAUACwARABcAAAEhESM1IxM1MxEhNQERIRUjFREVMxUhEQKBAT5+wMB+/sL9wAE+wMD+wgN//sLA/X7A/sJ+AcIBPn7A/v7AfgE+AAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAAAgAA/8AEAAOAACkALQAAAREjNTQmIyEiBh0BFBYzITI2PQEzESEVIyIGFREUFjsBMjY1ETQmKwE1ASE1IQQAwCYa/UAaJiYaAsAaJoD9wCANExMNgA0TEw0gAUD9QALAAYABgEAaJiYawBomJhpA/wCAEw3+wA0TEw0BQA0TQAGAQAAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAADgAPAAAASYnLgEnJiMiBw4BBwYHBgcOAQcGFRQXHgEXFhcWFx4BFxYzMjc+ATc2NzY3PgE3NjU0Jy4BJyYnARENAQPVNjg5djw9Pz89PHY5ODYLBwgLAwMDAwsIBws2ODl2PD0/Pz08djk4NgsHCAsDAwMDCwgHC/2rAUD+wAMgCAYGCAICAgIIBgYIKSoqWS0uLy8uLVkqKikIBgYIAgICAggGBggpKipZLS4vLy4tWSoqKf3gAYDAwAAAAAACAMD/wANAA8AAGwAnAAABIgcOAQcGFRQXHgEXFjEwNz4BNzY1NCcuAScmAyImNTQ2MzIWFRQGAgBCOzpXGRkyMngyMjIyeDIyGRlXOjtCUHBwUFBwcAPAGRlXOjtCeH19zEFBQUHMfX14Qjs6VxkZ/gBwUFBwcFBQcAAAAQAAAAAEAAOAACsAAAEiBw4BBwYHJxEhJz4BMzIXHgEXFhUUBw4BBwYHFzY3PgE3NjU0Jy4BJyYjAgA1MjJcKSkjlgGAkDWLUFBFRmkeHgkJIhgYHlUoICAtDAwoKIteXWoDgAoLJxscI5b+gJA0PB4eaUZFUCsoKUkgIRpgIysrYjY2OWpdXosoKAABAAAAAAQAA4AAKgAAExQXHgEXFhc3JicuAScmNTQ3PgE3NjMyFhcHIREHJicuAScmIyIHDgEHBgAMDC0gIChVHhgYIgkJHh5pRkVQUIs1kAGAliMpKVwyMjVqXV6LKCgBgDk2NmIrKyNgGiEgSSkoK1BFRmkeHjw0kAGAliMcGycLCigoi15dAAAAAAIAAABABAEDAAAmAE0AABMyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+ASEyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+AeEuKSk9ERISET0pKS4uKSk9ERIBIyN6UlFdQHUtCRAHCBICSS4pKT0REhIRPSkpLi4pKT0REgEjI3pSUV1AdS0JEAcIEgIAEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBAAAGAED/wAQAA8AAAwAHAAsAEQAdACkAACUhFSERIRUhESEVIScRIzUjNRMVMxUjNTc1IzUzFRURIzUzNSM1MzUjNQGAAoD9gAKA/YACgP2AwEBAQIDAgIDAwICAgICAgAIAgAIAgMD/AMBA/fIyQJI8MkCS7v7AQEBAQEAABgAA/8AEAAPAAAMABwALABcAIwAvAAABIRUhESEVIREhFSEBNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYBgAKA/YACgP2AAoD9gP6ASzU1S0s1NUtLNTVLSzU1S0s1NUtLNTVLA4CA/wCA/wCAA0A1S0s1NUtL/rU1S0s1NUtL/rU1S0s1NUtLAAUAAABABWADAAADAAcACwAOABEAABMhFSEVIRUhFSEVIQEXNzUnBwADgPyAA4D8gAOA/IAD4MDAwMADAMBAwEDAAUDAwEDAwAAAAAADAAAAAAQAA6AAAwANABQAADchFSElFSE1EyEVITUhJQkBIxEjEQAEAPwABAD8AIABAAEAAQD9YAEgASDggEBAwEBAAQCAgMABIP7g/wABAAAAAAACAB7/zAPiA7QAMwBkAAABIiYnJicmNDc2PwE+ATMyFhcWFxYUBwYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJyYnJjQ3Nj8BNjIXFhQPAQYUFx4BMzI2PwE2NCcmNDc2MhcWFxYUBwYPAQ4BIwG4ChMIIxISEhIjwCNZMTFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PCBMKuDFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PDysQIxISEhIjwCNZMQFECAckLS1eLS0kwCIlJSIkLS1eLS0kVxAQDysPWCl0KRQVFRTAKXQpDysQBwj+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAEAAAFABAACQAAPAAATFRQWMyEyNj0BNCYjISIGABMNA8ANExMN/EANEwIgwA0TEw3ADRMTAAAAAwAA/8AEAAPAABsANwBDAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmAyInLgEnJjU0Nz4BNzYzMhceARcWFRQHDgEHBhMHJwcXBxc3FzcnNwIAal1eiygoKCiLXl1qal1eiygoKCiLXl1qVkxMcSAhISBxTExWVkxMcSAhISBxTExKoKBgoKBgoKBgoKADwCgoi15dampdXosoKCgoi15dampdXosoKPxgISBxTExWVkxMcSAhISBxTExWVkxMcSAhAqCgoGCgoGCgoGCgoAACAAD/wAQAA8AADwAVAAABISIGFREUFjMhMjY1ETQmASc3FwEXA4D9ADVLSzUDADVLS/4L7VqTATNaA8BLNf0ANUtLNQMANUv85e5akgEyWgAAAAABAGX/wAObA8AAKQAAASImIyIHDgEHBhUUFjMuATU0NjcwBwYCBwYHFSETMzcjNx4BMzI2Nw4BAyBEaEZxU1RtGhtJSAYNZUoQEEs8PFkBPWzGLNc0LVUmLlAYHT0DsBAeHWE+P0FNOwsmN5lvA31+/sWPkCMZAgCA9gkPN2sJBwAAAAACAAAAAAQAA4AACQAXAAAlMwcnMxEjNxcjJREnIxEzFSE1MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAMAwAAAA0ADgAAWAB8AKAAAAT4BNTQnLgEnJiMhESEyNz4BNzY1NCYBMzIWFRQGKwETIxEzMhYVFAYCxBwgFBRGLi81/sABgDUvLkYUFET+hGUqPDwpZp+fnyw+PgHbIlQvNS8uRhQU/IAUFEYuLzVGdAFGSzU1S/6AAQBLNTVLAAAAAAIAwAAAA0ADgAAfACMAAAEzERQHDgEHBiMiJy4BJyY1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgBkZVzo7QkI7OlcZGYAbGBxJKChJHBgb/gACgP2AA4D+YDw0NU4WFxcWTjU0PAGg/mAeOBcYGxsYFzge/qCAAAAAAAEAgAAAA4ADgAALAAABFSMBMxUhNTMBIzUDgID+wID+QIABQIADgED9AEBAAwBAAAEAAAAABAADgAA9AAABFSMeARUUBgcOASMiJicuATUzFBYzMjY1NCYjITUhLgEnLgE1NDY3PgEzMhYXHgEVIzQmIyIGFRQWMzIWFwQA6xUWNTAscT4+cSwwNYByTk5yck7+AAEsAgQBMDU1MCxxPj5xLDA1gHJOTnJyTjtuKwHAQB1BIjViJCEkJCEkYjU0TEw0NExAAQMBJGI1NWIkISQkISRiNTRMTDQ0TCEfAAAACgAAAAAEAAOAAAMABwALAA8AEwAXABsAHwAjACcAABMRIREBNSEVHQEhNQEVITUjFSE1ESEVISUhFSERNSEVASEVISE1IRUABAD9gAEA/wABAP8AQP8AAQD/AAKAAQD/AAEA/IABAP8AAoABAAOA/IADgP3AwMBAwMACAMDAwMD/AMDAwAEAwMD+wMDAwAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRUhFSERIRUhESEVIREhFSEABAD8AAKA/YACgP2ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFyEVIREhFSEDIRUhESEVIQAEAPwAwAKA/YACgP2AwAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEFIRUhESEVIQEhFSERIRUhAAQA/AABgAKA/YACgP2A/oAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhFSEVIRUhFSEVIRUhAAQA/AAEAPwABAD8AAQA/AAEAPwAA4CAQIBAgECAQIAAAAAGAAAAAAQAA4AAAwAHAAsADwATABYAABMhFSEFIRUhFSEVIRUhFSEFIRUhGQEFAAQA/AABgAKA/YACgP2AAoD9gP6ABAD8AAEAA4CAQIBAgECAQIABAAGAwAAAAAYAAAAABAADgAADAAcACwAPABMAFgAAEyEVIQUhFSEVIRUhFSEVIQUhFSEBESUABAD8AAGAAoD9gAKA/YACgP2A/oAEAPwAAQD/AAOAgECAQIBAgECAAoD+gMAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAAIWwaoFfDzz1AAsEAAAAAADbteOZAAAAANu145kAAP+3BWADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAFgAAA//8FYAABAAAAAAAAAAAAAAAAAAAAKQQAAAAAAAAAAAAAAAIAAAAEAABBBAAAQQQAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAFgAAABAAAAAQAAB4EAAAABAAAAAQAAAAEAAAABAAAZQQAAAAEAADABAAAwAQAAIAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBKAHYApADmAS4BkgHQAhYCXALQAw4DWAN+A6gEPgTeBPoFZAWOBdAF+AY6BnYGjgbmBy4HVgd+B6gHzgf8CCoIbgkmCXAKYgq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(e,t,n){var o=n(20),r=n(153);r=r.__esModule?r.default:r,"string"===typeof r&&(r=[[e.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},function(e,t,n){var o=n(21);t=o(!1),t.push([e.i,'.w-e-toolbar {\n display: flex;\n padding: 0 6px;\n flex-wrap: wrap;\n position: relative;\n /* 单个菜单 */\n}\n.w-e-toolbar .w-e-menu {\n position: relative;\n display: flex;\n width: 40px;\n height: 40px;\n align-items: center;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n}\n.w-e-toolbar .w-e-menu i {\n color: #999;\n}\n.w-e-toolbar .w-e-menu:hover {\n background-color: #F6F6F6;\n}\n.w-e-toolbar .w-e-menu:hover i {\n color: #333;\n}\n.w-e-toolbar .w-e-active i {\n color: #1e88e5;\n}\n.w-e-toolbar .w-e-active:hover i {\n color: #1e88e5;\n}\n.w-e-menu-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-menu-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-item-wrapper {\n font-size: 14px;\n margin: 0 5px;\n}\n',""]),e.exports=t},function(e,t,n){var o=n(20),r=n(155);r=r.__esModule?r.default:r,"string"===typeof r&&(r=[[e.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},function(e,t,n){var o=n(21);t=o(!1),t.push([e.i,'.w-e-text-container {\n position: relative;\n height: 100%;\n}\n.w-e-text-container .w-e-progress {\n position: absolute;\n background-color: #1e88e5;\n top: 0;\n left: 0;\n height: 1px;\n}\n.w-e-text-container .placeholder {\n color: #D4D4D4;\n position: absolute;\n font-size: 11pt;\n line-height: 22px;\n left: 10px;\n top: 10px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n z-index: -1;\n}\n.w-e-text {\n padding: 0 10px;\n overflow-y: auto;\n}\n.w-e-text p,\n.w-e-text h1,\n.w-e-text h2,\n.w-e-text h3,\n.w-e-text h4,\n.w-e-text h5,\n.w-e-text table,\n.w-e-text pre {\n margin: 10px 0;\n line-height: 1.5;\n}\n.w-e-text ul,\n.w-e-text ol {\n margin: 10px 0 10px 20px;\n}\n.w-e-text blockquote {\n display: block;\n border-left: 8px solid #d0e5f2;\n padding: 5px 10px;\n margin: 10px 0;\n line-height: 1.4;\n font-size: 100%;\n background-color: #f1f1f1;\n}\n.w-e-text code {\n display: inline-block;\n background-color: #f1f1f1;\n border-radius: 3px;\n padding: 3px 5px;\n margin: 0 3px;\n}\n.w-e-text pre code {\n display: block;\n}\n.w-e-text table {\n border-top: 1px solid #ccc;\n border-left: 1px solid #ccc;\n}\n.w-e-text table td,\n.w-e-text table th {\n border-bottom: 1px solid #ccc;\n border-right: 1px solid #ccc;\n padding: 3px 5px;\n min-height: 30px;\n height: 30px;\n}\n.w-e-text table th {\n border-bottom: 2px solid #ccc;\n text-align: center;\n background-color: #f1f1f1;\n}\n.w-e-text:focus {\n outline: none;\n}\n.w-e-text img {\n cursor: pointer;\n}\n.w-e-text img:hover {\n box-shadow: 0 0 5px #333;\n}\n.w-e-text .w-e-todo {\n margin: 0 0 0 20px;\n}\n.w-e-text .w-e-todo li {\n list-style: none;\n font-size: 1em;\n}\n.w-e-text .w-e-todo li span:nth-child(1) {\n position: relative;\n left: -18px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input {\n position: absolute;\n margin-right: 3px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {\n top: 50%;\n margin-top: -6px;\n}\n.w-e-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-item-wrapper {\n cursor: pointer;\n font-size: 14px;\n margin: 0 5px;\n}\n.w-e-tooltip-item-wrapper:hover {\n color: #ccc;\n text-decoration: underline;\n}\n',""]),e.exports=t},function(e,t,n){var o=n(20),r=n(157);r=r.__esModule?r.default:r,"string"===typeof r&&(r=[[e.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},function(e,t,n){var o=n(21);t=o(!1),t.push([e.i,'.w-e-menu .w-e-panel-container {\n position: absolute;\n top: 0;\n left: 50%;\n border: 1px solid #ccc;\n border-top: 0;\n box-shadow: 1px 1px 2px #ccc;\n color: #333;\n background-color: #fff;\n text-align: left;\n /* 为 emotion panel 定制的样式 */\n /* 上传图片、上传视频的 panel 定制样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close {\n position: absolute;\n right: 0;\n top: 0;\n padding: 5px;\n margin: 2px 5px 0 0;\n cursor: pointer;\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close:hover {\n color: #333;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title {\n list-style: none;\n display: flex;\n font-size: 14px;\n margin: 2px 10px 0 10px;\n border-bottom: 1px solid #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {\n padding: 3px 5px;\n color: #999;\n cursor: pointer;\n margin: 0 3px;\n position: relative;\n top: 1px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {\n color: #333;\n border-bottom: 1px solid #333;\n cursor: default;\n font-weight: 700;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content {\n padding: 10px 15px 10px 15px;\n font-size: 16px;\n /* 输入框的样式 */\n /* 按钮的样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {\n outline: none;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {\n width: 100%;\n border: 1px solid #ccc;\n padding: 5px;\n margin-top: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {\n border-color: #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {\n border: none;\n border-bottom: 1px solid #ccc;\n font-size: 14px;\n height: 20px;\n color: #333;\n text-align: left;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {\n width: 30px;\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {\n display: block;\n width: 100%;\n margin: 10px 0;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {\n border-bottom: 2px solid #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {\n font-size: 14px;\n color: #1e88e5;\n border: none;\n padding: 5px 10px;\n background-color: #fff;\n cursor: pointer;\n border-radius: 3px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {\n float: left;\n margin-right: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {\n float: right;\n margin-left: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {\n color: #c24f4a;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {\n background-color: #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {\n cursor: pointer;\n font-size: 18px;\n padding: 0 3px;\n display: inline-block;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container,\n.w-e-menu .w-e-panel-container .w-e-up-video-container {\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {\n display: inline-block;\n color: #999;\n cursor: pointer;\n font-size: 60px;\n line-height: 1;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {\n color: #333;\n}\n',""]),e.exports=t},function(e,t,n){var o=n(20),r=n(159);r=r.__esModule?r.default:r,"string"===typeof r&&(r=[[e.i,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},function(e,t,n){var o=n(21);t=o(!1),t.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";var o=n(0),r=o(n(161));Element.prototype.matches||(Element.prototype.matches=function(e){var t=this.ownerDocument.querySelectorAll(e),n=t.length;for(n;n>=0;n--)if(t.item(n)===this)break;return n>-1}),r["default"]||(window.Promise=r["default"])},function(e,t,n){e.exports=n(162)},function(e,t,n){var o=n(163);e.exports=o},function(e,t,n){n(61),n(50),n(54),n(175),n(178),n(179);var o=n(9);e.exports=o.Promise},function(e,t,n){var o=n(62),r=n(49),i=function(e){return function(t,n){var i,a,l=String(r(t)),u=o(n),s=l.length;return u<0||u>=s?e?"":void 0:(i=l.charCodeAt(u),i<55296||i>56319||u+1===s||(a=l.charCodeAt(u+1))<56320||a>57343?e?l.charAt(u):i:e?l.slice(u,u+2):a-56320+(i-55296<<10)+65536)}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,n){var o=n(8),r=n(102),i=o.WeakMap;e.exports="function"===typeof i&&/native code/.test(r(i))},function(e,t,n){var o=n(8),r=n(19);e.exports=function(e,t){try{r(o,e,t)}catch(n){o[e]=t}return t}},function(e,t,n){"use strict";var o=n(104).IteratorPrototype,r=n(77),i=n(48),a=n(37),l=n(44),u=function(){return this};e.exports=function(e,t,n){var s=t+" Iterator";return e.prototype=r(o,{next:i(1,n)}),a(e,s,!1,!0),l[s]=u,e}},function(e,t,n){var o=n(11);e.exports=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var o=n(14),r=n(18),i=n(25),a=n(52);e.exports=o?Object.defineProperties:function(e,t){i(e);var n,o=a(t),l=o.length,u=0;while(l>u)r.f(e,n=o[u++],t[n]);return e}},function(e,t,n){"use strict";var o=n(81),r=n(65);e.exports=o?{}.toString:function(){return"[object "+r(this)+"]"}},function(e,t,n){var o=n(25),r=n(172);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return o(n),r(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},function(e,t,n){var o=n(13);e.exports=function(e){if(!o(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var o=n(30),r=n(82),i=n(44),a=n(42),l=n(75),u="Array Iterator",s=a.set,c=a.getterFor(u);e.exports=l(Array,"Array",(function(e,t){s(this,{type:u,target:o(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,o=e.index++;return!t||o>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:o,done:!1}:"values"==n?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var o,r,i,a,l=n(5),u=n(43),s=n(8),c=n(36),f=n(109),d=n(53),p=n(110),v=n(37),h=n(111),g=n(13),m=n(41),A=n(83),y=n(34),w=n(102),b=n(66),x=n(115),E=n(116),_=n(117).set,S=n(176),C=n(119),k=n(177),N=n(85),D=n(120),M=n(42),T=n(101),R=n(10),B=n(86),O=R("species"),P="Promise",I=M.get,L=M.set,F=M.getterFor(P),j=f,H=s.TypeError,U=s.document,Q=s.process,Y=c("fetch"),z=N.f,V=z,$="process"==y(Q),G=!!(U&&U.createEvent&&s.dispatchEvent),J="unhandledrejection",K="rejectionhandled",W=0,q=1,X=2,Z=1,ee=2,te=T(P,(function(){var e=w(j)!==String(j);if(!e){if(66===B)return!0;if(!$&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!j.prototype["finally"])return!0;if(B>=51&&/native code/.test(j))return!1;var t=j.resolve(1),n=function(e){e((function(){}),(function(){}))},o=t.constructor={};return o[O]=n,!(t.then((function(){}))instanceof n)})),ne=te||!x((function(e){j.all(e)["catch"]((function(){}))})),oe=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},re=function(e,t,n){if(!t.notified){t.notified=!0;var o=t.reactions;S((function(){var r=t.value,i=t.state==q,a=0;while(o.length>a){var l,u,s,c=o[a++],f=i?c.ok:c.fail,d=c.resolve,p=c.reject,v=c.domain;try{f?(i||(t.rejection===ee&&ue(e,t),t.rejection=Z),!0===f?l=r:(v&&v.enter(),l=f(r),v&&(v.exit(),s=!0)),l===c.promise?p(H("Promise-chain cycle")):(u=oe(l))?u.call(l,d,p):d(l)):p(r)}catch(h){v&&!s&&v.exit(),p(h)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ae(e,t)}))}},ie=function(e,t,n){var o,r;G?(o=U.createEvent("Event"),o.promise=t,o.reason=n,o.initEvent(e,!1,!0),s.dispatchEvent(o)):o={promise:t,reason:n},(r=s["on"+e])?r(o):e===J&&k("Unhandled promise rejection",n)},ae=function(e,t){_.call(s,(function(){var n,o=t.value,r=le(t);if(r&&(n=D((function(){$?Q.emit("unhandledRejection",o,e):ie(J,e,o)})),t.rejection=$||le(t)?ee:Z,n.error))throw n.value}))},le=function(e){return e.rejection!==Z&&!e.parent},ue=function(e,t){_.call(s,(function(){$?Q.emit("rejectionHandled",e):ie(K,e,t.value)}))},se=function(e,t,n,o){return function(r){e(t,n,r,o)}},ce=function(e,t,n,o){t.done||(t.done=!0,o&&(t=o),t.value=n,t.state=X,re(e,t,!0))},fe=function(e,t,n,o){if(!t.done){t.done=!0,o&&(t=o);try{if(e===n)throw H("Promise can't be resolved itself");var r=oe(n);r?S((function(){var o={done:!1};try{r.call(n,se(fe,e,o,t),se(ce,e,o,t))}catch(i){ce(e,o,i,t)}})):(t.value=n,t.state=q,re(e,t,!1))}catch(i){ce(e,{done:!1},i,t)}}};te&&(j=function(e){A(this,j,P),m(e),o.call(this);var t=I(this);try{e(se(fe,this,t),se(ce,this,t))}catch(n){ce(this,t,n)}},o=function(e){L(this,{type:P,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:W,value:void 0})},o.prototype=p(j.prototype,{then:function(e,t){var n=F(this),o=z(E(this,j));return o.ok="function"!=typeof e||e,o.fail="function"==typeof t&&t,o.domain=$?Q.domain:void 0,n.parent=!0,n.reactions.push(o),n.state!=W&&re(this,n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new o,t=I(e);this.promise=e,this.resolve=se(fe,e,t),this.reject=se(ce,e,t)},N.f=z=function(e){return e===j||e===i?new r(e):V(e)},u||"function"!=typeof f||(a=f.prototype.then,d(f.prototype,"then",(function(e,t){var n=this;return new j((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Y&&l({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return C(j,Y.apply(s,arguments))}}))),l({global:!0,wrap:!0,forced:te},{Promise:j}),v(j,P,!1,!0),h(P),i=c(P),l({target:P,stat:!0,forced:te},{reject:function(e){var t=z(this);return t.reject.call(void 0,e),t.promise}}),l({target:P,stat:!0,forced:u||te},{resolve:function(e){return C(u&&this===i?j:this,e)}}),l({target:P,stat:!0,forced:ne},{all:function(e){var t=this,n=z(t),o=n.resolve,r=n.reject,i=D((function(){var n=m(t.resolve),i=[],a=0,l=1;b(e,(function(e){var u=a++,s=!1;i.push(void 0),l++,n.call(t,e).then((function(e){s||(s=!0,i[u]=e,--l||o(i))}),r)})),--l||o(i)}));return i.error&&r(i.value),n.promise},race:function(e){var t=this,n=z(t),o=n.reject,r=D((function(){var r=m(t.resolve);b(e,(function(e){r.call(t,e).then(n.resolve,o)}))}));return r.error&&o(r.value),n.promise}})},function(e,t,n){var o,r,i,a,l,u,s,c,f=n(8),d=n(71).f,p=n(34),v=n(117).set,h=n(118),g=f.MutationObserver||f.WebKitMutationObserver,m=f.process,A=f.Promise,y="process"==p(m),w=d(f,"queueMicrotask"),b=w&&w.value;b||(o=function(){var e,t;y&&(e=m.domain)&&e.exit();while(r){t=r.fn,r=r.next;try{t()}catch(n){throw r?a():i=void 0,n}}i=void 0,e&&e.enter()},y?a=function(){m.nextTick(o)}:g&&!h?(l=!0,u=document.createTextNode(""),new g(o).observe(u,{characterData:!0}),a=function(){u.data=l=!l}):A&&A.resolve?(s=A.resolve(void 0),c=s.then,a=function(){c.call(s,o)}):a=function(){v.call(f,o)}),e.exports=b||function(e){var t={fn:e,next:void 0};i&&(i.next=t),r||(r=t,a()),i=t}},function(e,t,n){var o=n(8);e.exports=function(e,t){var n=o.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){"use strict";var o=n(5),r=n(41),i=n(85),a=n(120),l=n(66);o({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=i.f(t),o=n.resolve,u=n.reject,s=a((function(){var n=r(t.resolve),i=[],a=0,u=1;l(e,(function(e){var r=a++,l=!1;i.push(void 0),u++,n.call(t,e).then((function(e){l||(l=!0,i[r]={status:"fulfilled",value:e},--u||o(i))}),(function(e){l||(l=!0,i[r]={status:"rejected",reason:e},--u||o(i))}))})),--u||o(i)}));return s.error&&u(s.value),n.promise}})},function(e,t,n){"use strict";var o=n(5),r=n(43),i=n(109),a=n(11),l=n(36),u=n(116),s=n(119),c=n(53),f=!!i&&a((function(){i.prototype["finally"].call({then:function(){}},(function(){}))}));o({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(e){var t=u(this,l("Promise")),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}}),r||"function"!=typeof i||i.prototype["finally"]||c(i.prototype,"finally",l("Promise").prototype["finally"])},function(e,t,n){n(54);var o=n(181),r=n(65),i=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===i||e instanceof Array&&t===i.forEach||a.hasOwnProperty(r(e))?o:t}},function(e,t,n){var o=n(182);e.exports=o},function(e,t,n){n(183);var o=n(15);e.exports=o("Array").forEach},function(e,t,n){"use strict";var o=n(5),r=n(184);o({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(e,t,n){"use strict";var o=n(32).forEach,r=n(67),i=n(22),a=r("forEach"),l=i("forEach");e.exports=a&&l?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var o=n(186);e.exports=o},function(e,t,n){n(187);var o=n(9);e.exports=o.Array.isArray},function(e,t,n){var o=n(5),r=n(55);o({target:"Array",stat:!0},{isArray:r})},function(e,t,n){var o=n(189);e.exports=o},function(e,t,n){var o=n(190),r=Array.prototype;e.exports=function(e){var t=e.map;return e===r||e instanceof Array&&t===r.map?o:t}},function(e,t,n){n(191);var o=n(15);e.exports=o("Array").map},function(e,t,n){"use strict";var o=n(5),r=n(32).map,i=n(56),a=n(22),l=i("map"),u=a("map");o({target:"Array",proto:!0,forced:!l||!u},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var o=n(193);e.exports=o},function(e,t,n){var o=n(194),r=String.prototype;e.exports=function(e){var t=e.trim;return"string"===typeof e||e===r||e instanceof String&&t===r.trim?o:t}},function(e,t,n){n(195);var o=n(15);e.exports=o("String").trim},function(e,t,n){"use strict";var o=n(5),r=n(90).trim,i=n(196);o({target:"String",proto:!0,forced:i("trim")},{trim:function(){return r(this)}})},function(e,t,n){var o=n(11),r=n(68),i="​…᠎";e.exports=function(e){return o((function(){return!!r[e]()||i[e]()!=i||r[e].name!==e}))}},function(e,t,n){var o=n(198);e.exports=o},function(e,t,n){n(199),n(61),n(50),n(54);var o=n(9);e.exports=o.Map},function(e,t,n){"use strict";var o=n(122),r=n(124);e.exports=o("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},function(e,t,n){var o=n(11);e.exports=!o((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var o=n(202);e.exports=o},function(e,t,n){var o=n(203),r=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===r||e instanceof Array&&t===r.indexOf?o:t}},function(e,t,n){n(204);var o=n(15);e.exports=o("Array").indexOf},function(e,t,n){"use strict";var o=n(5),r=n(78).indexOf,i=n(67),a=n(22),l=[].indexOf,u=!!l&&1/[1].indexOf(1,-0)<0,s=i("indexOf"),c=a("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:u||!s||!c},{indexOf:function(e){return u?l.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var o=n(206);e.exports=o},function(e,t,n){var o=n(207),r=Array.prototype;e.exports=function(e){var t=e.splice;return e===r||e instanceof Array&&t===r.splice?o:t}},function(e,t,n){n(208);var o=n(15);e.exports=o("Array").splice},function(e,t,n){"use strict";var o=n(5),r=n(79),i=n(62),a=n(35),l=n(31),u=n(88),s=n(69),c=n(56),f=n(22),d=c("splice"),p=f("splice",{ACCESSORS:!0,0:0,1:2}),v=Math.max,h=Math.min,g=9007199254740991,m="Maximum allowed length exceeded";o({target:"Array",proto:!0,forced:!d||!p},{splice:function(e,t){var n,o,c,f,d,p,A=l(this),y=a(A.length),w=r(e,y),b=arguments.length;if(0===b?n=o=0:1===b?(n=0,o=y-w):(n=b-2,o=h(v(i(t),0),y-w)),y+n-o>g)throw TypeError(m);for(c=u(A,o),f=0;fy-o+n;f--)delete A[f-1]}else if(n>o)for(f=y-o;f>w;f--)d=f+o-1,p=f+n-1,d in A?A[p]=A[d]:delete A[p];for(f=0;f1?arguments[1]:void 0)}})},function(e,t,n){var o=n(214);e.exports=o},function(e,t,n){var o=n(215),r=n(217),i=Array.prototype,a=String.prototype;e.exports=function(e){var t=e.includes;return e===i||e instanceof Array&&t===i.includes?o:"string"===typeof e||e===a||e instanceof String&&t===a.includes?r:t}},function(e,t,n){n(216);var o=n(15);e.exports=o("Array").includes},function(e,t,n){"use strict";var o=n(5),r=n(78).includes,i=n(82),a=n(22),l=a("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:!l},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(e,t,n){n(218);var o=n(15);e.exports=o("String").includes},function(e,t,n){"use strict";var o=n(5),r=n(219),i=n(49),a=n(221);o({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~String(i(this)).indexOf(r(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var o=n(220);e.exports=function(e){if(o(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var o=n(13),r=n(34),i=n(10),a=i("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==r(e))}},function(e,t,n){var o=n(10),r=o("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(o){}}return!1}},function(e,t,n){var o=n(223);e.exports=o},function(e,t,n){var o=n(224),r=Function.prototype;e.exports=function(e){var t=e.bind;return e===r||e instanceof Function&&t===r.bind?o:t}},function(e,t,n){n(225);var o=n(15);e.exports=o("Function").bind},function(e,t,n){var o=n(5),r=n(226);o({target:"Function",proto:!0},{bind:r})},function(e,t,n){"use strict";var o=n(41),r=n(13),i=[].slice,a={},l=function(e,t,n){if(!(t in a)){for(var o=[],r=0;r=51||!r((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),A=f("concat"),y=function(e){if(!a(e))return!1;var t=e[v];return void 0!==t?!!t:i(e)},w=!m||!A;o({target:"Array",proto:!0,forced:w},{concat:function(e){var t,n,o,r,i,a=l(this),f=c(a,0),d=0;for(t=-1,o=arguments.length;th)throw TypeError(g);for(n=0;n=h)throw TypeError(g);s(f,d++,i)}return f.length=d,f}})},function(e,t,n){"use strict";var o=n(5),r=n(8),i=n(36),a=n(43),l=n(14),u=n(76),s=n(106),c=n(11),f=n(16),d=n(55),p=n(13),v=n(25),h=n(31),g=n(30),m=n(60),A=n(48),y=n(77),w=n(52),b=n(126),x=n(235),E=n(127),_=n(71),S=n(18),C=n(59),k=n(19),N=n(53),D=n(74),M=n(63),T=n(51),R=n(64),B=n(10),O=n(93),P=n(12),I=n(37),L=n(42),F=n(32).forEach,j=M("hidden"),H="Symbol",U="prototype",Q=B("toPrimitive"),Y=L.set,z=L.getterFor(H),V=Object[U],$=r.Symbol,G=i("JSON","stringify"),J=_.f,K=S.f,W=x.f,q=C.f,X=D("symbols"),Z=D("op-symbols"),ee=D("string-to-symbol-registry"),te=D("symbol-to-string-registry"),ne=D("wks"),oe=r.QObject,re=!oe||!oe[U]||!oe[U].findChild,ie=l&&c((function(){return 7!=y(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,n){var o=J(V,t);o&&delete V[t],K(e,t,n),o&&e!==V&&K(V,t,o)}:K,ae=function(e,t){var n=X[e]=y($[U]);return Y(n,{type:H,tag:e,description:t}),l||(n.description=t),n},le=s?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof $},ue=function(e,t,n){e===V&&ue(Z,t,n),v(e);var o=m(t,!0);return v(n),f(X,o)?(n.enumerable?(f(e,j)&&e[j][o]&&(e[j][o]=!1),n=y(n,{enumerable:A(0,!1)})):(f(e,j)||K(e,j,A(1,{})),e[j][o]=!0),ie(e,o,n)):K(e,o,n)},se=function(e,t){v(e);var n=g(t),o=w(n).concat(ve(n));return F(o,(function(t){l&&!fe.call(n,t)||ue(e,t,n[t])})),e},ce=function(e,t){return void 0===t?y(e):se(y(e),t)},fe=function(e){var t=m(e,!0),n=q.call(this,t);return!(this===V&&f(X,t)&&!f(Z,t))&&(!(n||!f(this,t)||!f(X,t)||f(this,j)&&this[j][t])||n)},de=function(e,t){var n=g(e),o=m(t,!0);if(n!==V||!f(X,o)||f(Z,o)){var r=J(n,o);return!r||!f(X,o)||f(n,j)&&n[j][o]||(r.enumerable=!0),r}},pe=function(e){var t=W(g(e)),n=[];return F(t,(function(e){f(X,e)||f(T,e)||n.push(e)})),n},ve=function(e){var t=e===V,n=W(t?Z:g(e)),o=[];return F(n,(function(e){!f(X,e)||t&&!f(V,e)||o.push(X[e])})),o};if(u||($=function(){if(this instanceof $)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=R(e),n=function(e){this===V&&n.call(Z,e),f(this,j)&&f(this[j],t)&&(this[j][t]=!1),ie(this,t,A(1,e))};return l&&re&&ie(V,t,{configurable:!0,set:n}),ae(t,e)},N($[U],"toString",(function(){return z(this).tag})),N($,"withoutSetter",(function(e){return ae(R(e),e)})),C.f=fe,S.f=ue,_.f=de,b.f=x.f=pe,E.f=ve,O.f=function(e){return ae(B(e),e)},l&&(K($[U],"description",{configurable:!0,get:function(){return z(this).description}}),a||N(V,"propertyIsEnumerable",fe,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:$}),F(w(ne),(function(e){P(e)})),o({target:H,stat:!0,forced:!u},{for:function(e){var t=String(e);if(f(ee,t))return ee[t];var n=$(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!le(e))throw TypeError(e+" is not a symbol");if(f(te,e))return te[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),o({target:"Object",stat:!0,forced:!u,sham:!l},{create:ce,defineProperty:ue,defineProperties:se,getOwnPropertyDescriptor:de}),o({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pe,getOwnPropertySymbols:ve}),o({target:"Object",stat:!0,forced:c((function(){E.f(1)}))},{getOwnPropertySymbols:function(e){return E.f(h(e))}}),G){var he=!u||c((function(){var e=$();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}));o({target:"JSON",stat:!0,forced:he},{stringify:function(e,t,n){var o,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(o=t,(p(t)||void 0!==e)&&!le(e))return d(t)||(t=function(e,t){if("function"==typeof o&&(t=o.call(this,e,t)),!le(t))return t}),r[1]=t,G.apply(null,r)}})}$[U][Q]||k($[U],Q,$[U].valueOf),I($,H),T[j]=!0},function(e,t,n){var o=n(30),r=n(126).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):r(o(e))}},function(e,t,n){var o=n(12);o("asyncIterator")},function(e,t){},function(e,t,n){var o=n(12);o("hasInstance")},function(e,t,n){var o=n(12);o("isConcatSpreadable")},function(e,t,n){var o=n(12);o("match")},function(e,t,n){var o=n(12);o("matchAll")},function(e,t,n){var o=n(12);o("replace")},function(e,t,n){var o=n(12);o("search")},function(e,t,n){var o=n(12);o("species")},function(e,t,n){var o=n(12);o("split")},function(e,t,n){var o=n(12);o("toPrimitive")},function(e,t,n){var o=n(12);o("toStringTag")},function(e,t,n){var o=n(12);o("unscopables")},function(e,t,n){var o=n(37);o(Math,"Math",!0)},function(e,t,n){var o=n(8),r=n(37);r(o.JSON,"JSON",!0)},function(e,t,n){var o=n(12);o("asyncDispose")},function(e,t,n){var o=n(12);o("dispose")},function(e,t,n){var o=n(12);o("observable")},function(e,t,n){var o=n(12);o("patternMatch")},function(e,t,n){var o=n(12);o("replaceAll")},function(e,t,n){e.exports=n(257)},function(e,t,n){var o=n(258);e.exports=o},function(e,t,n){n(259);var o=n(9);e.exports=o.parseInt},function(e,t,n){var o=n(5),r=n(260);o({global:!0,forced:parseInt!=r},{parseInt:r})},function(e,t,n){var o=n(8),r=n(90).trim,i=n(68),a=o.parseInt,l=/^[+-]?0[Xx]/,u=8!==a(i+"08")||22!==a(i+"0x16");e.exports=u?function(e,t){var n=r(String(e));return a(n,t>>>0||(l.test(n)?16:10))}:a},function(e,t,n){var o=n(262);e.exports=o},function(e,t,n){var o=n(263),r=Array.prototype;e.exports=function(e){var t=e.slice;return e===r||e instanceof Array&&t===r.slice?o:t}},function(e,t,n){n(264);var o=n(15);e.exports=o("Array").slice},function(e,t,n){"use strict";var o=n(5),r=n(13),i=n(55),a=n(79),l=n(35),u=n(30),s=n(69),c=n(10),f=n(56),d=n(22),p=f("slice"),v=d("slice",{ACCESSORS:!0,0:0,1:2}),h=c("species"),g=[].slice,m=Math.max;o({target:"Array",proto:!0,forced:!p||!v},{slice:function(e,t){var n,o,c,f=u(this),d=l(f.length),p=a(e,d),v=a(void 0===t?d:t,d);if(i(f)&&(n=f.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[h],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return g.call(f,p,v);for(o=new(void 0===n?Array:n)(m(v-p,0)),c=0;p2,r=o?a.call(arguments,2):void 0;return e(o?function(){("function"==typeof t?t:Function(t)).apply(this,r)}:t,n)}};o({global:!0,bind:!0,forced:l},{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(128));(0,r["default"])(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(272)),u=a.__importDefault(n(273)),s=a.__importDefault(n(129)),c=a.__importDefault(n(274)),f=a.__importDefault(n(275)),d=a.__importDefault(n(276)),p=a.__importDefault(n(130)),v=a.__importDefault(n(277)),h=a.__importDefault(n(278)),g=a.__importDefault(n(279)),m=(0,i["default"])({},l["default"],u["default"],s["default"],f["default"],c["default"],d["default"],p["default"],v["default"],h["default"],g["default"],{linkCheck:function(e,t){return!0}});t["default"]=m},function(e,t,n){var o=n(269);e.exports=o},function(e,t,n){n(270);var o=n(9);e.exports=o.Object.assign},function(e,t,n){var o=n(5),r=n(271);o({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(e,t,n){"use strict";var o=n(14),r=n(11),i=n(52),a=n(127),l=n(59),u=n(31),s=n(72),c=Object.assign,f=Object.defineProperty;e.exports=!c||r((function(){if(o&&1!==c({b:1},c(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||i(c({},t)).join("")!=r}))?function(e,t){var n=u(e),r=arguments.length,c=1,f=a.f,d=l.f;while(r>c){var p,v=s(arguments[c++]),h=f?i(v).concat(f(v)):i(v),g=h.length,m=0;while(g>m)p=h[m++],o&&!d.call(v,p)||(n[p]=v[p])}return n}:c},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0}),t["default"]={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","todo","justify","quote","emoticon","image","video","table","code","splitLine","undo","redo"],fontNames:["黑体","仿宋","楷体","标楷体","华文仿宋","华文楷体","宋体","微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"],fontSizes:{"x-small":{name:"10px",value:"1"},small:{name:"13px",value:"2"},normal:{name:"16px",value:"3"},large:{name:"18px",value:"4"},"x-large":{name:"24px",value:"5"},"xx-large":{name:"32px",value:"6"},"xxx-large":{name:"48px",value:"7"}},colors:["#000000","#ffffff","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b"],languageType:["Bash","C","C#","C++","CSS","Java","JavaScript","JSON","TypeScript","Plain text","Html","XML","SQL","Go","Kotlin","Lua","Markdown","PHP","Python","Shell Session","Ruby"],languageTab:"    ",emotions:[{title:"表情",type:"emoji",content:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣".split(/\s/)},{title:"手势",type:"emoji",content:"👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(/\s/)}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em",showMenuTooltips:!0,menuTooltipPosition:"up"}},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0});var i=n(7);function a(e,t,n){window.alert(e),n&&console.error("wangEditor: "+n)}t["default"]={onchangeTimeout:200,onchange:null,onfocus:i.EMPTY_FN,onblur:i.EMPTY_FN,onCatalogChange:null,customAlert:a}},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0}),t["default"]={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(e){return e}}},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0}),t["default"]={styleWithCSS:!1}},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0});var i=n(7);t["default"]={linkImgCheck:function(e,t,n){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:i.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5242880,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:1e4,withCredentials:!1,customUploadImg:null,uploadImgFromMedia:null}},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0}),t["default"]={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{"重置":"重置","插入":"插入","默认":"默认","创建":"创建","修改":"修改","如":"如","请输入正文":"请输入正文",menus:{title:{"标题":"标题","加粗":"加粗","字号":"字号","字体":"字体","斜体":"斜体","下划线":"下划线","删除线":"删除线","缩进":"缩进","行高":"行高","文字颜色":"文字颜色","背景色":"背景色","链接":"链接","序列":"序列","对齐":"对齐","引用":"引用","表情":"表情","图片":"图片","视频":"视频","表格":"表格","代码":"代码","分割线":"分割线","恢复":"恢复","撤销":"撤销","全屏":"全屏","取消全屏":"取消全屏","待办事项":"待办事项"},dropListMenu:{"设置标题":"设置标题","背景颜色":"背景颜色","文字颜色":"文字颜色","设置字号":"设置字号","设置字体":"设置字体","设置缩进":"设置缩进","对齐方式":"对齐方式","设置行高":"设置行高","序列":"序列",head:{"正文":"正文"},indent:{"增加缩进":"增加缩进","减少缩进":"减少缩进"},justify:{"靠左":"靠左","居中":"居中","靠右":"靠右","两端":"两端"},list:{"无序列表":"无序列表","有序列表":"有序列表"}},panelMenus:{emoticon:{"默认":"默认","新浪":"新浪",emoji:"emoji","手势":"手势"},image:{"上传图片":"上传图片","网络图片":"网络图片","图片地址":"图片地址","图片文字说明":"图片文字说明","跳转链接":"跳转链接"},link:{"链接":"链接","链接文字":"链接文字","取消链接":"取消链接","查看链接":"查看链接"},video:{"插入视频":"插入视频","上传视频":"上传视频"},table:{"行":"行","列":"列","的":"的","表格":"表格","添加行":"添加行","删除行":"删除行","添加列":"添加列","删除列":"删除列","设置表头":"设置表头","取消表头":"取消表头","插入表格":"插入表格","删除表格":"删除表格"},code:{"删除代码":"删除代码","修改代码":"修改代码","插入代码":"插入代码"}}},validate:{"张图片":"张图片","大于":"大于","图片链接":"图片链接","不是图片":"不是图片","返回结果":"返回结果","上传图片超时":"上传图片超时","上传图片错误":"上传图片错误","上传图片失败":"上传图片失败","插入图片错误":"插入图片错误","一次最多上传":"一次最多上传","下载链接失败":"下载链接失败","图片验证未通过":"图片验证未通过","服务器返回状态":"服务器返回状态","上传图片返回结果错误":"上传图片返回结果错误","请替换为支持的图片类型":"请替换为支持的图片类型","您插入的网络图片无法识别":"您插入的网络图片无法识别","您刚才插入的图片链接未通过编辑器校验":"您刚才插入的图片链接未通过编辑器校验","插入视频错误":"插入视频错误","视频链接":"视频链接","不是视频":"不是视频","视频验证未通过":"视频验证未通过","个视频":"个视频","上传视频超时":"上传视频超时","上传视频错误":"上传视频错误","上传视频失败":"上传视频失败","上传视频返回结果错误":"上传视频返回结果错误"}}},en:{wangEditor:{"重置":"reset","插入":"insert","默认":"default","创建":"create","修改":"edit","如":"like","请输入正文":"please enter the text",menus:{title:{"标题":"head","加粗":"bold","字号":"font size","字体":"font family","斜体":"italic","下划线":"underline","删除线":"strikethrough","缩进":"indent","行高":"line heihgt","文字颜色":"font color","背景色":"background","链接":"link","序列":"numbered list","对齐":"align","引用":"quote","表情":"emoticons","图片":"image","视频":"media","表格":"table","代码":"code","分割线":"split line","恢复":"redo","撤销":"undo","全屏":"fullscreen","取消全屏":"cancel fullscreen","待办事项":"todo"},dropListMenu:{"设置标题":"title","背景颜色":"background","文字颜色":"font color","设置字号":"font size","设置字体":"font family","设置缩进":"indent","对齐方式":"align","设置行高":"line heihgt","序列":"list",head:{"正文":"text"},indent:{"增加缩进":"indent","减少缩进":"outdent"},justify:{"靠左":"left","居中":"center","靠右":"right","两端":"justify"},list:{"无序列表":"unordered","有序列表":"ordered"}},panelMenus:{emoticon:{"表情":"emoji","手势":"gesture"},image:{"上传图片":"upload image","网络图片":"network image","图片地址":"image link","图片文字说明":"image alt","跳转链接":"hyperlink"},link:{"链接":"link","链接文字":"link text","取消链接":"unlink","查看链接":"view links"},video:{"插入视频":"insert video","上传视频":"upload local video"},table:{"行":"rows","列":"columns","的":" ","表格":"table","添加行":"insert row","删除行":"delete row","添加列":"insert column","删除列":"delete column","设置表头":"set header","取消表头":"cancel header","插入表格":"insert table","删除表格":"delete table"},code:{"删除代码":"delete code","修改代码":"edit code","插入代码":"insert code"}}},validate:{"张图片":"images","大于":"greater than","图片链接":"image link","不是图片":"is not image","返回结果":"return results","上传图片超时":"upload image timeout","上传图片错误":"upload image error","上传图片失败":"upload image failed","插入图片错误":"insert image error","一次最多上传":"once most at upload","下载链接失败":"download link failed","图片验证未通过":"image validate failed","服务器返回状态":"server return status","上传图片返回结果错误":"upload image return results error","请替换为支持的图片类型":"please replace with a supported image type","您插入的网络图片无法识别":"the network picture you inserted is not recognized","您刚才插入的图片链接未通过编辑器校验":"the image link you just inserted did not pass the editor verification","插入视频错误":"insert video error","视频链接":"video link","不是视频":"is not video","视频验证未通过":"video validate failed","个视频":"videos","上传视频超时":"upload video timeout","上传视频错误":"upload video error","上传视频失败":"upload video failed","上传视频返回结果错误":"upload video return results error"}}}}}},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0});var i=n(6);function a(){return!(!i.UA.isIE()&&!i.UA.isOldEdge)}t["default"]={compatibleMode:a,historyMaxSize:30}},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0});var i=n(7);t["default"]={onlineVideoCheck:function(e){return!0},onlineVideoCallback:i.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1073741824,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:72e5,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(17));(0,r["default"])(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=n(6),s=n(7),c=function(){function e(e){this._currentRange=null,this.editor=e}return e.prototype.getRange=function(){return this._currentRange},e.prototype.saveRange=function(e){if(e)this._currentRange=e;else{var t=window.getSelection();if(0!==t.rangeCount){var n=t.getRangeAt(0),o=this.getSelectionContainerElem(n);if((null===o||void 0===o?void 0:o.length)&&"false"!==o.attr("contenteditable")&&!o.parentUntil("[contenteditable=false]")){var r=this.editor,a=r.$textElem;if(a.isContain(o)){var l;if(a.elems[0]===o.elems[0])if((0,i["default"])(l=a.html()).call(l)===s.EMPTY_P){var u=a.children(),c=null===u||void 0===u?void 0:u.last();r.selection.createRangeByElem(c,!0,!0),r.selection.restoreSelection()}this._currentRange=n}}}}},e.prototype.collapseRange=function(e){void 0===e&&(e=!1);var t=this._currentRange;t&&t.collapse(e)},e.prototype.getSelectionText=function(){var e=this._currentRange;return e?e.toString():""},e.prototype.getSelectionContainerElem=function(e){var t,n;if(t=e||this._currentRange,t)return n=t.commonAncestorContainer,l["default"](1===n.nodeType?n:n.parentNode)},e.prototype.getSelectionStartElem=function(e){var t,n;if(t=e||this._currentRange,t)return n=t.startContainer,l["default"](1===n.nodeType?n:n.parentNode)},e.prototype.getSelectionEndElem=function(e){var t,n;if(t=e||this._currentRange,t)return n=t.endContainer,l["default"](1===n.nodeType?n:n.parentNode)},e.prototype.isSelectionEmpty=function(){var e=this._currentRange;return!(!e||!e.startContainer||e.startContainer!==e.endContainer||e.startOffset!==e.endOffset)},e.prototype.restoreSelection=function(){var e=window.getSelection(),t=this._currentRange;e&&t&&(e.removeAllRanges(),e.addRange(t))},e.prototype.createEmptyRange=function(){var e,t=this.editor,n=this.getRange();if(n&&this.isSelectionEmpty())try{u.UA.isWebkit()?(t.cmd["do"]("insertHTML","​"),n.setEnd(n.endContainer,n.endOffset+1),this.saveRange(n)):(e=l["default"](""),t.cmd["do"]("insertElem",e),this.createRangeByElem(e,!0))}catch(o){}},e.prototype.createRangeByElems=function(e,t){var n=window.getSelection?window.getSelection():document.getSelection();null===n||void 0===n||n.removeAllRanges();var o=document.createRange();o.setStart(e,0),o.setEnd(t,t.childNodes.length||1),this.saveRange(o),this.restoreSelection()},e.prototype.createRangeByElem=function(e,t,n){if(e.length){var o=e.elems[0],r=document.createRange();n?r.selectNodeContents(o):r.selectNode(o),null!=t&&(r.collapse(t),t||(this.saveRange(r),this.editor.selection.moveCursor(o))),this.saveRange(r)}},e.prototype.getSelectionRangeTopNodes=function(){var e,t,n,o=null===(e=this.getSelectionStartElem())||void 0===e?void 0:e.getNodeTop(this.editor),r=null===(t=this.getSelectionEndElem())||void 0===t?void 0:t.getNodeTop(this.editor);return n=this.recordSelectionNodes(l["default"](o),l["default"](r)),n},e.prototype.moveCursor=function(e,t){var n,o=this.getRange(),r=3===e.nodeType?null===(n=e.nodeValue)||void 0===n?void 0:n.length:e.childNodes.length;(u.UA.isFirefox||u.UA.isIE())&&0!==r&&(3!==e.nodeType&&"BR"!==e.childNodes[r-1].nodeName||(r-=1));var i=null!==t&&void 0!==t?t:r;o&&e&&(o.setStart(e,i),o.setEnd(e,i),this.restoreSelection())},e.prototype.getCursorPos=function(){var e=window.getSelection();return null===e||void 0===e?void 0:e.anchorOffset},e.prototype.clearWindowSelectionRange=function(){var e=window.getSelection();e&&e.removeAllRanges()},e.prototype.recordSelectionNodes=function(e,t){var n=[],o=!0;try{var r=e,i=this.editor.$textElem;while(o){var a=null===r||void 0===r?void 0:r.getNodeTop(this.editor);"BODY"===a.getNodeName()&&(o=!1),a.length>0&&(n.push(l["default"](r)),(null===t||void 0===t?void 0:t.equal(a))||i.equal(a)?o=!1:r=a.getNextSibling())}}catch(u){o=!1}return n},e.prototype.setRangeToElem=function(e){var t=this.getRange();null===t||void 0===t||t.setStart(e,0),null===t||void 0===t||t.setEnd(e,0)},e}();t["default"]=c},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0});var i=n(2),a=i.__importDefault(n(3)),l=function(){function e(e){this.editor=e}return e.prototype["do"]=function(e,t){var n=this.editor;n.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var o=n.selection;if(o.getRange()){switch(o.restoreSelection(),e){case"insertHTML":this.insertHTML(t);break;case"insertElem":this.insertElem(t);break;default:this.execCommand(e,t);break}n.menus.changeActive(),o.saveRange(),o.restoreSelection()}},e.prototype.insertHTML=function(e){var t=this.editor,n=t.selection.getRange();if(null!=n)if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",e);else if(n.insertNode){if(n.deleteContents(),a["default"](e).elems.length>0)n.insertNode(a["default"](e).elems[0]);else{var o=document.createElement("p");o.appendChild(document.createTextNode(e)),n.insertNode(o)}t.selection.collapseRange()}},e.prototype.insertElem=function(e){var t=this.editor,n=t.selection.getRange();null!=n&&n.insertNode&&(n.deleteContents(),n.insertNode(e.elems[0]))},e.prototype.execCommand=function(e,t){document.execCommand(e,!1,t)},e.prototype.queryCommandValue=function(e){return document.queryCommandValue(e)},e.prototype.queryCommandState=function(e){return document.queryCommandState(e)},e.prototype.queryCommandSupported=function(e){return document.queryCommandSupported(e)},e}();t["default"]=l},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(29)),a=o(n(4)),l=o(n(17)),u=o(n(27)),s=o(n(46));(0,r["default"])(t,"__esModule",{value:!0});var c=n(2),f=c.__importDefault(n(3)),d=c.__importDefault(n(287)),p=n(6),v=c.__importDefault(n(299)),h=c.__importDefault(n(300)),g=n(7),m=function(){function e(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:[]}}return e.prototype.init=function(){this._saveRange(),this._bindEventHooks(),d["default"](this)},e.prototype.togglePlaceholder=function(){var e,t=this.html(),n=(0,i["default"])(e=this.editor.$textContainerElem).call(e,".placeholder");n.hide(),this.editor.isComposing||t&&" "!==t||n.show()},e.prototype.clear=function(){this.html(g.EMPTY_P)},e.prototype.html=function(e){var t=this.editor,n=t.$textElem;if(null==e){var o=n.html();o=o.replace(/\u200b/gm,""),o=o.replace(/

      <\/p>/gim,""),o=o.replace(g.EMPTY_P_LAST_REGEX,""),o=o.replace(g.EMPTY_P_REGEX,"

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

      "+e+"

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

      "+e+"

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

      "+e+"

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


      "))}t.push(r),n.push(a)}t["default"]=s},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(17)),a=o(n(28));(0,r["default"])(t,"__esModule",{value:!0}),t.cutToKeepP=void 0;var l=n(2),u=n(7),s=l.__importDefault(n(3));function c(e,t,n){function o(){var t=e.$textElem,n=e.$textElem.html(),o=e.$textElem.text(),r=(0,i["default"])(n).call(n),l=["


      ","
      ",'

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

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

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

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

      \n
      \n
      \n
      ');r.css("visibility","hidden"),t.append(r),r.css("z-index",e.zIndex.get("tooltip"));var i=0;function a(){i&&clearTimeout(i)}function l(){a(),r.css("visibility","hidden")}t.on("mouseover",(function(n){var u,s,c=n.target,f=m["default"](c);if(f.isContain(t))l();else{if(null!=f.parentUntil(".w-e-droplist"))l();else if(f.attr("data-title"))u=f.attr("data-title"),s=f;else{var p=f.parentUntil(".w-e-menu");null!=p&&(u=p.attr("data-title"),s=p)}if(u&&s){a();var v=s.getOffsetData();r.text(e.i18next.t("menus.title."+u));var h=r.getOffsetData(),g=v.left+v.width/2-h.width/2;r.css("left",g+"px"),"up"===o?r.css("top",v.top-h.height-8+"px"):"down"===o&&r.css("top",v.top+v.height+8+"px"),i=(0,d["default"])((function(){r.css("visibility","visible")}),200)}else l()}})).on("mouseleave",(function(){l()}))},e.prototype._addToToolbar=function(){var e,t=this.editor,n=t.$toolbarElem;(0,s["default"])(e=this.menuList).call(e,(function(e){var t=e.$elem;t&&n.append(t)}))},e.prototype.menuFind=function(e){for(var t=this.menuList,n=0,o=t.length;nc)n=u[c++],o&&!a.call(l,n)||f.push(e?[n,l[n]]:l[n]);return f}};e.exports={entries:l(!0),values:l(!1)}},function(e,t,n){var o=n(311);e.exports=o},function(e,t,n){var o=n(312),r=Array.prototype;e.exports=function(e){var t=e.some;return e===r||e instanceof Array&&t===r.some?o:t}},function(e,t,n){n(313);var o=n(15);e.exports=o("Array").some},function(e,t,n){"use strict";var o=n(5),r=n(32).some,i=n(67),a=n(22),l=i("some"),u=a("some");o({target:"Array",proto:!0,forced:!l||!u},{some:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0});var i=n(2),a=i.__importDefault(n(315)),l=i.__importDefault(n(316)),u=i.__importDefault(n(321)),s=i.__importDefault(n(326)),c=i.__importDefault(n(327)),f=i.__importDefault(n(328)),d=i.__importDefault(n(329)),p=i.__importDefault(n(331)),v=i.__importDefault(n(333)),h=i.__importDefault(n(334)),g=i.__importDefault(n(337)),m=i.__importDefault(n(338)),A=i.__importDefault(n(339)),y=i.__importDefault(n(350)),w=i.__importDefault(n(365)),b=i.__importDefault(n(369)),x=i.__importDefault(n(137)),E=i.__importDefault(n(378)),_=i.__importDefault(n(380)),S=i.__importDefault(n(381)),C=i.__importDefault(n(382)),k=i.__importDefault(n(401)),N=i.__importDefault(n(406)),D=i.__importDefault(n(409));t["default"]={bold:a["default"],head:l["default"],italic:s["default"],link:u["default"],underline:c["default"],strikeThrough:f["default"],fontName:d["default"],fontSize:p["default"],justify:v["default"],quote:h["default"],backColor:g["default"],foreColor:m["default"],video:A["default"],image:y["default"],indent:w["default"],emoticon:b["default"],list:x["default"],lineHeight:E["default"],undo:_["default"],redo:S["default"],table:C["default"],code:k["default"],splitLine:N["default"],todo:D["default"]}},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0});var i=n(2),a=i.__importDefault(n(23)),l=i.__importDefault(n(3)),u=function(e){function t(t){var n=this,o=l["default"]('
      \n \n
      ');return n=e.call(this,o,t)||this,n}return i.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd["do"]("bold"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){var e=this.editor;e.cmd.queryCommandState("bold")?this.active():this.unActive()},t}(a["default"]);t["default"]=u},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(27)),a=o(n(29)),l=o(n(4)),u=o(n(317)),s=o(n(28));(0,r["default"])(t,"__esModule",{value:!0});var c=n(2),f=c.__importDefault(n(24)),d=c.__importDefault(n(3)),p=n(6),v=n(7),h=function(e){function t(t){var n=this,o=d["default"]('
      '),r={width:100,title:"设置标题",type:"list",list:[{$elem:d["default"]("

      H1

      "),value:"

      "},{$elem:d["default"]("

      H2

      "),value:"

      "},{$elem:d["default"]("

      H3

      "),value:"

      "},{$elem:d["default"]("

      H4

      "),value:"

      "},{$elem:d["default"]("

      H5
      "),value:"
      "},{$elem:d["default"]("

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

      "),value:"

      "}],clickHandler:function(e){n.command(e)}};n=e.call(this,o,t,r)||this;var i=t.config.onCatalogChange;return i&&(n.oldCatalogs=[],n.addListenerCatalog(),n.getCatalogs()),n}return c.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();if(n&&t.$textElem.equal(n))this.setMultilineHead(e);else{var o;if((0,i["default"])(o=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(o,d["default"](n).getNodeName())>-1)return;t.cmd["do"]("formatBlock",e)}"

      "!==e&&this.addUidForSelectionElem()},t.prototype.addUidForSelectionElem=function(){var e=this.editor,t=e.selection.getSelectionContainerElem(),n=p.getRandomCode();d["default"](t).attr("id",n)},t.prototype.addListenerCatalog=function(){var e=this,t=this.editor;t.txt.eventHooks.changeEvents.push((function(){e.getCatalogs()}))},t.prototype.getCatalogs=function(){var e=this.editor,t=this.editor.$textElem,n=e.config.onCatalogChange,o=(0,a["default"])(t).call(t,"h1,h2,h3,h4,h5"),r=[];(0,l["default"])(o).call(o,(function(e,t){var n=d["default"](e),o=n.attr("id"),i=n.getNodeName(),a=n.text();o||(o=p.getRandomCode(),n.attr("id",o)),a&&r.push({tag:i,id:o,text:a})})),(0,u["default"])(this.oldCatalogs)!==(0,u["default"])(r)&&(this.oldCatalogs=r,n&&n(r))},t.prototype.setMultilineHead=function(e){var t,n,o=this,r=this.editor,i=r.selection,a=null===(t=i.getSelectionContainerElem())||void 0===t?void 0:t.elems[0],u=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],s=d["default"](i.getSelectionStartElem()),c=d["default"](i.getSelectionEndElem());c.elems[0].outerHTML!==d["default"](v.EMPTY_P).elems[0].outerHTML||c.elems[0].nextSibling||(c=c.prev());var f=[];f.push(s.getNodeTop(r));var p=[],h=null===(n=i.getRange())||void 0===n?void 0:n.commonAncestorContainer.childNodes;null===h||void 0===h||(0,l["default"])(h).call(h,(function(e,t){e===f[0].getNode()&&p.push(t),e===c.getNodeTop(r).getNode()&&p.push(t)}));var g=0;while(f[g].getNode()!==c.getNodeTop(r).getNode()){if(!f[g].elems[0])return;var m=d["default"](f[g].next().getNode());f.push(m),g++}null===f||void 0===f||(0,l["default"])(f).call(f,(function(t,n){if(!o.hasTag(t,u)){var r=d["default"](e),i=t.parent().getNode();r.html(""+t.html()),i.insertBefore(r.getNode(),t.getNode()),t.remove()}})),i.createRangeByElems(a.children[p[0]],a.children[p[1]])},t.prototype.hasTag=function(e,t){var n,o=this;if(!e)return!1;if((0,s["default"])(t).call(t,null===e||void 0===e?void 0:e.getNodeName()))return!0;var r=!1;return null===(n=e.children())||void 0===n||(0,l["default"])(n).call(n,(function(e){r=o.hasTag(d["default"](e),t)})),r},t.prototype.tryChangeActive=function(){var e=this.editor,t=/^h/i,n=e.cmd.queryCommandValue("formatBlock");t.test(n)?this.active():this.unActive()},t}(f["default"]);t["default"]=h},function(e,t,n){e.exports=n(318)},function(e,t,n){var o=n(319);e.exports=o},function(e,t,n){n(320);var o=n(9);o.JSON||(o.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return o.JSON.stringify.apply(null,arguments)}},function(e,t,n){var o=n(5),r=n(36),i=n(11),a=r("JSON","stringify"),l=/[\uD800-\uDFFF]/g,u=/^[\uD800-\uDBFF]$/,s=/^[\uDC00-\uDFFF]$/,c=function(e,t,n){var o=n.charAt(t-1),r=n.charAt(t+1);return u.test(e)&&!s.test(r)||s.test(e)&&!u.test(o)?"\\u"+e.charCodeAt(0).toString(16):e},f=i((function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")}));a&&o({target:"JSON",stat:!0,forced:f},{stringify:function(e,t,n){var o=a.apply(null,arguments);return"string"==typeof o?o.replace(l,c):o}})},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(17));(0,r["default"])(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(38)),u=a.__importDefault(n(3)),s=a.__importDefault(n(322)),c=a.__importStar(n(96)),f=a.__importDefault(n(33)),d=a.__importDefault(n(324)),p=n(7),v=function(e){function t(t){var n=this,o=u["default"]('

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

      "+o+"

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

      '+n.name+"

      "),value:n.value})}}return e.prototype.getItemList=function(){return this.itemList},e}();t["default"]=l},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(4)),a=o(n(27));(0,r["default"])(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(24)),s=l.__importDefault(n(3)),c=["LI"],f=["BLOCKQUOTE"],d=function(e){function t(t){var n=this,o=s["default"]('
      '),r={width:100,title:"对齐方式",type:"list",list:[{$elem:s["default"]('

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

      "),value:"left"},{$elem:s["default"]('

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

      "),value:"center"},{$elem:s["default"]('

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

      "),value:"right"},{$elem:s["default"]('

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

      "),value:"justify"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,o,t,r)||this,n}return l.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection,o=n.getSelectionContainerElem();n.saveRange();var r=t.selection.getSelectionRangeTopNodes();if(null===o||void 0===o?void 0:o.length)if(this.isSpecialNode(o,r[0])||this.isSpecialTopNode(r[0])){var a=this.getSpecialNodeUntilTop(o,r[0]);if(null==a)return;s["default"](a).css("text-align",e)}else(0,i["default"])(r).call(r,(function(t){t.css("text-align",e)}));n.restoreSelection()},t.prototype.getSpecialNodeUntilTop=function(e,t){var n=e.elems[0],o=t.elems[0];while(null!=n){if(-1!==(0,a["default"])(c).call(c,null===n||void 0===n?void 0:n.nodeName))return n;if(n.parentNode===o)return n;n=n.parentNode}return n},t.prototype.isSpecialNode=function(e,t){var n=this.getSpecialNodeUntilTop(e,t);return null!=n&&-1!==(0,a["default"])(c).call(c,n.nodeName)},t.prototype.isSpecialTopNode=function(e){var t;return null!=e&&-1!==(0,a["default"])(f).call(f,null===(t=e.elems[0])||void 0===t?void 0:t.nodeName)},t.prototype.tryChangeActive=function(){},t}(u["default"]);t["default"]=d},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(4));(0,r["default"])(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=a.__importDefault(n(23)),s=a.__importDefault(n(335)),c=a.__importDefault(n(336)),f=n(7),d=function(e){function t(t){var n=this,o=l["default"]('
      \n \n
      ');return n=e.call(this,o,t)||this,s["default"](t),n}return a.__extends(t,e),t.prototype.clickHandler=function(){var e,t,n=this.editor,o=n.selection.isSelectionEmpty(),r=n.selection.getSelectionRangeTopNodes(),a=r[r.length-1],u=this.getTopNodeName();if("BLOCKQUOTE"!==u){var s=c["default"](r);if(n.$textElem.equal(a)){var d=null===(e=n.selection.getSelectionContainerElem())||void 0===e?void 0:e.elems[0];n.selection.createRangeByElems(d.children[0],d.children[0]),r=n.selection.getSelectionRangeTopNodes(),s=c["default"](r),a.append(s)}else s.insertAfter(a);this.delSelectNode(r);var p=null===(t=s.childNodes())||void 0===t?void 0:t.last().getNode();if(null==p)return;return p.textContent?n.selection.moveCursor(p):n.selection.moveCursor(p,0),this.tryChangeActive(),void l["default"](f.EMPTY_P).insertAfter(s)}var v=l["default"](a.childNodes()),h=v.length,g=a;(0,i["default"])(v).call(v,(function(e){var t=l["default"](e);t.insertAfter(g),g=t})),a.remove(),n.selection.moveCursor(v.elems[h-1]),this.tryChangeActive(),o&&(n.selection.collapseRange(),n.selection.restoreSelection())},t.prototype.tryChangeActive=function(){var e,t=this.editor,n=null===(e=t.selection.getSelectionRangeTopNodes()[0])||void 0===e?void 0:e.getNodeName();"BLOCKQUOTE"===n?this.active():this.unActive()},t.prototype.getTopNodeName=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes()[0],n=null===t||void 0===t?void 0:t.getNodeName();return n},t.prototype.delSelectNode=function(e){(0,i["default"])(e).call(e,(function(e){e.remove()}))},t}(u["default"]);t["default"]=d},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0});var i=n(2),a=n(7),l=i.__importDefault(n(3));function u(e){function t(t){var n,o=e.selection.getSelectionContainerElem(),r=e.selection.getSelectionRangeTopNodes()[0];if("BLOCKQUOTE"===(null===r||void 0===r?void 0:r.getNodeName())){if("BLOCKQUOTE"===o.getNodeName()){var i=null===(n=o.childNodes())||void 0===n?void 0:n.getNode();e.selection.moveCursor(i)}if(""===o.text()){t.preventDefault(),o.remove();var u=l["default"](a.EMPTY_P);u.insertAfter(r),e.selection.moveCursor(u.getNode(),0)}""===r.text()&&r.remove()}}e.txt.eventHooks.enterDownEvents.push(t)}t["default"]=u},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(4));(0,r["default"])(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3));function u(e){var t=l["default"]("
      ");return(0,i["default"])(e).call(e,(function(e){t.append(e.clone(!0))})),t}t["default"]=u},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(26));(0,r["default"])(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(24)),u=a.__importDefault(n(3)),s=n(6),c=function(e){function t(t){var n,o=this,r=u["default"]('
      \n \n
      '),a={width:120,title:"背景颜色",type:"inline-block",list:(0,i["default"])(n=t.config.colors).call(n,(function(e){return{$elem:u["default"](''),value:e}})),clickHandler:function(e){o.command(e)}};return o=e.call(this,r,t,a)||this,o}return a.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,o=n.selection.isSelectionEmpty(),r=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=r){var i="p"!==(null===r||void 0===r?void 0:r.nodeName.toLowerCase()),a=null===r||void 0===r?void 0:r.style.backgroundColor,l=s.hexToRgb(e)===a;if(o){if(i&&!l){var u=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(u[0]),n.selection.moveCursor(u[0].elems[0])}n.selection.createEmptyRange()}n.cmd["do"]("backColor",e),o&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(l["default"]);t["default"]=c},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(26));(0,r["default"])(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(24)),u=a.__importDefault(n(3)),s=function(e){function t(t){var n,o=this,r=u["default"]('
      \n \n
      '),a={width:120,title:"文字颜色",type:"inline-block",list:(0,i["default"])(n=t.config.colors).call(n,(function(e){return{$elem:u["default"](''),value:e}})),clickHandler:function(e){o.command(e)}};return o=e.call(this,r,t,a)||this,o}return a.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,o=n.selection.isSelectionEmpty(),r=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=r){var i=n.selection.getSelectionText();if("A"===r.nodeName&&r.textContent===i){var a=u["default"]("").getNode();r.appendChild(a)}n.cmd["do"]("foreColor",e),o&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(l["default"]);t["default"]=s},function(e,t,n){"use strict";var o=n(0),r=o(n(1));(0,r["default"])(t,"__esModule",{value:!0});var i=n(2),a=i.__importDefault(n(3)),l=i.__importDefault(n(33)),u=i.__importDefault(n(38)),s=i.__importDefault(n(340)),c=i.__importDefault(n(346)),f=function(e){function t(t){var n=this,o=a["default"]('
      \n \n
      ');return n=e.call(this,o,t)||this,c["default"](t),n}return i.__extends(t,e),t.prototype.clickHandler=function(){this.createPanel("")},t.prototype.createPanel=function(e){var t=s["default"](this.editor,e),n=new l["default"](this,t);n.create()},t.prototype.tryChangeActive=function(){},t}(u["default"]);t["default"]=f},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(17));(0,r["default"])(t,"__esModule",{value:!0});var a=n(2),l=n(6),u=a.__importDefault(n(3)),s=a.__importDefault(n(341)),c=n(7);function f(e,t){var n=e.config,o=new s["default"](e),r=l.getRandom("input-iframe"),a=l.getRandom("btn-ok"),f=l.getRandom("input-upload"),d=l.getRandom("btn-local-ok");function p(t){e.cmd["do"]("insertHTML",t+c.EMPTY_P),e.config.onlineVideoCallback(t)}function v(t){var n=e.config.onlineVideoCheck(t);return!0===n||("string"===typeof n&&e.config.customAlert(n,"error"),!1)}var h=[{title:e.i18next.t("menus.panelMenus.video.上传视频"),tpl:'
      \n
      \n \n
      \n
      \n \n
      \n
      ',events:[{selector:"#"+d,type:"click",fn:function(){var e=u["default"]("#"+f),t=e.elems[0];if(!t)return!0;t.click()}},{selector:"#"+f,type:"change",fn:function(){var e=u["default"]("#"+f),t=e.elems[0];if(!t)return!0;var n=t.files;return n.length&&o.uploadVideo(n),!0}}]},{title:e.i18next.t("menus.panelMenus.video.插入视频"),tpl:'
      \n "/>\n \n
      \n \n
      \n
      ",events:[{selector:"#"+a,type:"click",fn:function(){var e,t=u["default"]("#"+r),n=(0,i["default"])(e=t.val()).call(e);if(n&&v(n))return p(n),!0},bindEnter:!0}]}],g={width:300,height:0,tabs:[]};return window.FileReader&&(n.uploadVideoServer||n.customUploadVideo)&&g.tabs.push(h[0]),n.showLinkVideo&&g.tabs.push(h[1]),g}t["default"]=f},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(133)),a=o(n(57)),l=o(n(4)),u=o(n(27));(0,r["default"])(t,"__esModule",{value:!0});var s=n(2),c=n(6),f=s.__importDefault(n(135)),d=s.__importDefault(n(136)),p=n(7),v=n(6),h=function(){function e(e){this.editor=e}return e.prototype.uploadVideo=function(e){var t=this;if(e.length){var n=this.editor,o=n.config,r="validate.",s=function(e){return n.i18next.t(r+e)},p=o.uploadVideoServer,v=o.uploadVideoMaxSize,h=v/1024,g=o.uploadVideoName,m=o.uploadVideoParams,A=o.uploadVideoParamsWithUrl,y=o.uploadVideoHeaders,w=o.uploadVideoHooks,b=o.uploadVideoTimeout,x=o.withVideoCredentials,E=o.customUploadVideo,_=o.uploadVideoAccept,S=[],C=[];if(c.arrForEach(e,(function(e){var t=e.name,n=e.size/1024/1024;t&&n&&(_ instanceof Array?(0,i["default"])(_).call(_,(function(e){return e===t.split(".")[t.split(".").length-1]}))?h1&&(n+=t+1),N.append(n,e)})),p){var D=p.split("#");p=D[0];var M=D[1]||"";(0,l["default"])(c).call(c,m,(function(e,t){A&&((0,u["default"])(p).call(p,"?")>0?p+="&":p+="?",p=p+e+"="+t),N.append(e,t)})),M&&(p+="#"+M);var T=f["default"](p,{timeout:b,formData:N,headers:y,withCredentials:!!x,beforeSend:function(e){if(w.before)return w.before(e,n,S)},onTimeout:function(e){o.customAlert(s("上传视频超时"),"error"),w.timeout&&w.timeout(e,n)},onProgress:function(e,t){var o=new d["default"](n);t.lengthComputable&&(e=t.loaded/t.total,o.show(e))},onError:function(e){o.customAlert(s("上传视频错误"),"error",s("上传视频错误")+","+s("服务器返回状态")+": "+e.status),w.error&&w.error(e,n)},onFail:function(e,t){o.customAlert(s("上传视频失败"),"error",s("上传视频返回结果错误")+","+s("返回结果")+": "+t),w.fail&&w.fail(e,n,t)},onSuccess:function(e,r){if(w.customInsert){var i;w.customInsert((0,a["default"])(i=t.insertVideo).call(i,t),r,n)}else{if("0"!=r.errno)return o.customAlert(s("上传视频失败"),"error",s("上传视频返回结果错误")+","+s("返回结果")+" errno="+r.errno),void(w.fail&&w.fail(e,n,r));var l=r.data;t.insertVideo(l.url),w.success&&w.success(e,n,r)}}});"string"===typeof T&&o.customAlert(T,"error")}}else o.customAlert(s("传入的文件不合法"),"warning")}},e.prototype.insertVideo=function(e){var t=this.editor,n=t.config,o="validate.",r=function(e,n){return void 0===n&&(n=o),t.i18next.t(n+e)};if(n.customInsertVideo)n.customInsertVideo(e);else{v.UA.isFirefox?t.cmd["do"]("insertHTML",'

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

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

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

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

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

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

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

      ");a.append(i),a.insertAfter(t),null===(r=a.childNodes())||void 0===r||r.get(0).remove(),e.selection.moveCursor(a.getNode()),t.remove()}))},t}(u["default"]);t["default"]=d},function(e,t,n){e.exports=n(411)},function(e,t,n){var o=n(412);e.exports=o},function(e,t,n){var o=n(413),r=Array.prototype;e.exports=function(e){var t=e.every;return e===r||e instanceof Array&&t===r.every?o:t}},function(e,t,n){n(414);var o=n(15);e.exports=o("Array").every},function(e,t,n){"use strict";var o=n(5),r=n(32).every,i=n(67),a=n(22),l=i("every"),u=a("every");o({target:"Array",proto:!0,forced:!l||!u},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var o=n(0),r=o(n(1)),i=o(n(4));(0,r["default"])(t,"__esModule",{value:!0});var a=n(2),l=a.__importDefault(n(3)),u=n(98),s=a.__importDefault(n(140)),c=n(98),f=n(7);function d(e){function t(t){var n,o;if(u.isAllTodo(e)){t.preventDefault();var r=e.selection,a=r.getSelectionRangeTopNodes()[0],d=null===(n=a.childNodes())||void 0===n?void 0:n.get(0),p=null===(o=window.getSelection())||void 0===o?void 0:o.anchorNode,v=r.getRange();if(!(null===v||void 0===v?void 0:v.collapsed)){var h=null===v||void 0===v?void 0:v.commonAncestorContainer.childNodes,g=null===v||void 0===v?void 0:v.startContainer,m=null===v||void 0===v?void 0:v.endContainer,A=null===v||void 0===v?void 0:v.startOffset,y=null===v||void 0===v?void 0:v.endOffset,w=0,b=0,x=[];null===h||void 0===h||(0,i["default"])(h).call(h,(function(e,t){e.contains(g)&&(w=t),e.contains(m)&&(b=t)})),b-w>1&&(null===h||void 0===h||(0,i["default"])(h).call(h,(function(e,t){t<=w||t>=b||x.push(e)})),(0,i["default"])(x).call(x,(function(e){e.remove()}))),c.dealTextNode(g,A),c.dealTextNode(m,y,!1),e.selection.moveCursor(m,0)}if(""===a.text()){var E=l["default"](f.EMPTY_P);return E.insertAfter(a),r.moveCursor(E.getNode()),void a.remove()}var _=r.getCursorPos(),S=u.getCursorNextNode(null===d||void 0===d?void 0:d.getNode(),p,_),C=s["default"](l["default"](S)),k=C.getInputContainer(),N=k.parent().getNode(),D=C.getTodo(),M=k.getNode().nextSibling;if(""===(null===d||void 0===d?void 0:d.text())&&(null===d||void 0===d||d.append(l["default"]("
      "))),D.insertAfter(a),M&&""!==(null===M||void 0===M?void 0:M.textContent))r.moveCursor(N);else{if("BR"!==(null===M||void 0===M?void 0:M.nodeName)){var T=l["default"]("
      ");T.insertAfter(k)}r.moveCursor(N,1)}}}function n(t){var n,o;if(u.isAllTodo(e)){var r,a=e.selection,s=a.getSelectionRangeTopNodes()[0],c=null===(n=s.childNodes())||void 0===n?void 0:n.getNode(),d=l["default"]("

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