UNPKG

react-jodit-editor

Version:

React WYSIWYG Editor Which Uses Jodit & Jodit-React In A Simplified Component

9 lines 707 kB
module.exports=function(e){var t={};function o(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(i,r,function(t){return e[t]}.bind(null,r));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=3)}([function(e,t){e.exports=require("react")},function(e,t,o){ /*! * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/) * Version: v3.4.27 * Url: https://xdsoft.net/jodit/ * License(s): MIT */ window,e.exports=function(e){var t={};function o(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(i,r,function(t){return e[t]}.bind(null,r));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/build/",o(o.s=72)}([function(e,t,o){"use strict";o.r(t),o.d(t,"__extends",(function(){return r})),o.d(t,"__assign",(function(){return n})),o.d(t,"__rest",(function(){return a})),o.d(t,"__decorate",(function(){return s})),o.d(t,"__param",(function(){return l})),o.d(t,"__metadata",(function(){return d})),o.d(t,"__awaiter",(function(){return c})),o.d(t,"__generator",(function(){return u})),o.d(t,"__createBinding",(function(){return p})),o.d(t,"__exportStar",(function(){return f})),o.d(t,"__values",(function(){return h})),o.d(t,"__read",(function(){return m})),o.d(t,"__spread",(function(){return g})),o.d(t,"__spreadArrays",(function(){return v})),o.d(t,"__await",(function(){return b})),o.d(t,"__asyncGenerator",(function(){return y})),o.d(t,"__asyncDelegator",(function(){return _})),o.d(t,"__asyncValues",(function(){return j})),o.d(t,"__makeTemplateObject",(function(){return w})),o.d(t,"__importStar",(function(){return S})),o.d(t,"__importDefault",(function(){return k})),o.d(t,"__classPrivateFieldGet",(function(){return C})),o.d(t,"__classPrivateFieldSet",(function(){return E}));var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)};function r(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var n=function(){return(n=Object.assign||function(e){for(var t,o=1,i=arguments.length;i>o;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function a(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);i.length>r;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(o[i[r]]=e[i[r]])}return o}function s(e,t,o,i){var r,n=arguments.length,a=3>n?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(3>n?r(a):n>3?r(t,o,a):r(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a}function l(e,t){return function(o,i){t(o,i,e)}}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,o,i){return new(o||(o=Promise))((function(r,n){function a(e){try{l(i.next(e))}catch(e){n(e)}}function s(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function u(e,t){var o,i,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&r[3]>n[1])){a.label=n[1];break}if(6===n[0]&&r[1]>a.label){a.label=r[1],r=n;break}if(r&&r[2]>a.label){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}}var p=Object.create?function(e,t,o,i){void 0===i&&(i=o),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,i){void 0===i&&(i=o),e[i]=t[o]};function f(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||p(t,e,o)}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],i=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,r,n=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return a}function g(){for(var e=[],t=0;arguments.length>t;t++)e=e.concat(m(arguments[t]));return e}function v(){for(var e=0,t=0,o=arguments.length;o>t;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;o>t;t++)for(var n=arguments[t],a=0,s=n.length;s>a;a++,r++)i[r]=n[a];return i}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function y(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=o.apply(e,t||[]),n=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){r[e]&&(i[e]=function(t){return new Promise((function(o,i){n.push([e,t,o,i])>1||s(e,t)}))})}function s(e,t){try{(o=r[e](t)).value instanceof b?Promise.resolve(o.value.v).then(l,d):c(n[0][2],o)}catch(e){c(n[0][3],e)}var o}function l(e){s("next",e)}function d(e){s("throw",e)}function c(e,t){e(t),n.shift(),n.length&&s(n[0][0],n[0][1])}}function _(e){var t,o;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,r){t[i]=e[i]?function(t){return(o=!o)?{value:b(e[i](t)),done:"return"===i}:r?r(t):t}:r}}function j(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,o=e[Symbol.asyncIterator];return o?o.call(e):(e=h(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=e[o]&&function(t){return new Promise((function(i,r){!function(e,t,o,i){Promise.resolve(i).then((function(t){e({value:t,done:o})}),t)}(i,r,(t=e[o](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var x=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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&p(t,e,o);return x(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function C(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function E(e,t,o){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,o),o}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(12),t),i.__exportStar(o(23),t),i.__exportStar(o(119),t),i.__exportStar(o(30),t),i.__exportStar(o(5),t),i.__exportStar(o(33),t),i.__exportStar(o(122),t),i.__exportStar(o(35),t),i.__exportStar(o(137),t),i.__exportStar(o(13),t),i.__exportStar(o(142),t),i.__exportStar(o(143),t),i.__exportStar(o(144),t),i.__exportStar(o(145),t),i.__exportStar(o(146),t),i.__exportStar(o(147),t),i.__exportStar(o(43),t),i.__exportStar(o(148),t),i.__exportStar(o(52),t),i.__exportStar(o(149),t),i.__exportStar(o(29),t),i.__exportStar(o(42),t),i.__exportStar(o(53),t),i.__exportStar(o(150),t),i.__exportStar(o(151),t),i.__exportStar(o(34),t),i.__exportStar(o(32),t),i.__exportStar(o(152),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dom=void 0;var i=o(3),r=o(1),n=o(54),a=function(){function e(){}return e.detach=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},e.wrapInline=function(t,o,i){var n,a=t,s=t,l=i.s.save(),d=!1;do{d=!1,(n=a.previousSibling)&&!e.isBlock(n,i.ew)&&(d=!0,a=n)}while(d);do{d=!1,(n=s.nextSibling)&&!e.isBlock(n,i.ew)&&(d=!0,s=n)}while(d);var c=r.isString(o)?i.createInside.element(o):o;a.parentNode&&a.parentNode.insertBefore(c,a);for(var u=a;u&&(u=a.nextSibling,c.appendChild(a),a!==s&&u);)a=u;return i.s.restore(l),c},e.wrap=function(e,t,o){var i=o.s.save(),n=r.isString(t)?o.createInside.element(t):t;return e.parentNode?(e.parentNode.insertBefore(n,e),n.appendChild(e),o.s.restore(i),n):null},e.unwrap=function(t){var o=t.parentNode;if(o){for(;t.firstChild;)o.insertBefore(t.firstChild,t);e.safeRemove(t)}},e.each=function(t,o){var i=t.firstChild;if(i)for(;i;){var r=e.next(i,Boolean,t);if(!1===o(i))return!1;if(i.parentNode&&!e.each(i,o))return!1;i=r}return!0},e.replace=function(e,t,o,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1);var a=r.isString(t)?o.element(t):t;if(!n)for(;e.firstChild;)a.appendChild(e.firstChild);return i&&r.toArray(e.attributes).forEach((function(e){a.setAttribute(e.name,e.value)})),e.parentNode&&e.parentNode.replaceChild(a,e),a},e.isEmptyTextNode=function(t){return e.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(i.INVISIBLE_SPACE_REG_EXP(),"").length)},e.isEmpty=function(t,o){return void 0===o&&(o=/^(img|svg|canvas|input|textarea|form)$/),!t||(e.isText(t)?null===t.nodeValue||0===r.trim(t.nodeValue).length:!o.test(t.nodeName.toLowerCase())&&e.each(t,(function(t){if(e.isText(t)&&null!==t.nodeValue&&0!==r.trim(t.nodeValue).length||e.isElement(t)&&o.test(t.nodeName.toLowerCase()))return!1})))},e.isNode=function(e,t){return!!e&&!("object"!=typeof t||!t||"function"!=typeof t.Node&&"object"!=typeof t.Node)&&e instanceof t.Node},e.isCell=function(t,o){return e.isNode(t,o)&&/^(td|th)$/i.test(t.nodeName)},e.isImage=function(t,o){return e.isNode(t,o)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)},e.isBlock=function(t,o){return t&&"object"==typeof t&&e.isNode(t,o)&&i.IS_BLOCK.test(t.nodeName)},e.isText=function(e){return Boolean(e&&e.nodeType===Node.TEXT_NODE)},e.isElement=function(e){return Boolean(e&&e.nodeType===Node.ELEMENT_NODE)},e.isHTMLElement=function(t,o){return e.isNode(t,o)&&t instanceof o.HTMLElement},e.isInlineBlock=function(t){return e.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf(r.css(t,"display").toString())},e.canSplitBlock=function(t,o){return t&&t instanceof o.HTMLElement&&e.isBlock(t,o)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)},e.prev=function(t,o,i,r){return void 0===r&&(r=!0),e.find(t,o,i,!1,"previousSibling",!!r&&"lastChild")},e.next=function(t,o,i,r){return void 0===r&&(r=!0),e.find(t,o,i,void 0,void 0,!!r&&"firstChild")},e.prevWithClass=function(t,o){return e.prev(t,(function(t){return e.isElement(t)&&t.classList.contains(o)}),t.parentNode)},e.nextWithClass=function(t,o){return e.next(t,(function(t){return e.isElement(t)&&t.classList.contains(o)}),t.parentNode)},e.find=function(t,o,i,r,n,a){if(void 0===r&&(r=!1),void 0===n&&(n="nextSibling"),void 0===a&&(a="firstChild"),r&&o(t))return t;var s,l=t;do{if(o(s=l[n]))return s||null;if(a&&s&&s[a]){var d=e.find(s[a],o,s,!0,n,a);if(d)return d}s||(s=l.parentNode),l=s}while(l&&l!==i);return null},e.findWithCurrent=function(t,o,i,r,n){void 0===r&&(r="nextSibling"),void 0===n&&(n="firstChild");var a=t;do{if(o(a))return a||null;if(n&&a&&a[n]){var s=e.findWithCurrent(a[n],o,a,r,n);if(s)return s}for(;a&&!a[r]&&a!==i;)a=a.parentNode;a&&a[r]&&a!==i&&(a=a[r])}while(a&&a!==i);return null},e.getNormalSibling=function(t,o,i){void 0===o&&(o=!0),void 0===i&&(i=function(t){return!e.isEmptyTextNode(t)});for(var r=n.getSibling(t,o);r&&!i(r);)r=n.getSibling(r,o);return r&&i(r)?r:null},e.up=function(e,t,o,i){void 0===i&&(i=!1);var r=e;if(!r)return null;do{if(t(r))return r;if(r===o||!r.parentNode)break;r=r.parentNode}while(r&&r!==o);return r===o&&i&&t(r)?r:null},e.closest=function(t,o,i){var n;return n=r.isFunction(o)?o:r.isArray(o)?function(e){return e&&o.includes(e.nodeName.toLowerCase())}:function(e){return e&&o===e.nodeName.toLowerCase()},e.up(t,n,i)},e.appendChildFirst=function(e,t){var o=e.firstChild;o?o!==t&&e.insertBefore(t,o):e.appendChild(t)},e.after=function(e,t){var o=e.parentNode;o&&(o.lastChild===e?o.appendChild(t):o.insertBefore(t,e.nextSibling))},e.before=function(e,t){var o=e.parentNode;o&&o.insertBefore(t,e)},e.prepend=function(e,t){e.insertBefore(t,e.firstChild)},e.append=function(e,t){e.appendChild(t)},e.moveContent=function(e,t,o){void 0===o&&(o=!1);var i=(e.ownerDocument||document).createDocumentFragment();r.toArray(e.childNodes).forEach((function(e){i.appendChild(e)})),o&&t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i)},e.all=function(t,o,i){void 0===i&&(i=!1);var n=t.childNodes?r.toArray(t.childNodes):[];return o(t)?t:(i&&(n=n.reverse()),n.forEach((function(t){e.all(t,o,i)})),null)},e.isOrContains=function(e,t,o){return void 0===o&&(o=!1),e===t?!o:Boolean(t&&e&&this.up(t,(function(t){return t===e}),e,!0))},e.safeRemove=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},e.hide=function(e){e&&(r.dataBind(e,"__old_display",e.style.display),e.style.display="none")},e.show=function(e){if(e){var t=r.dataBind(e,"__old_display");"none"===e.style.display&&(e.style.display=t||"")}},e.isTag=function(e,t){for(var o=r.asArray(t).map(String),i=0;o.length>i;i+=1)if(this.isElement(e)&&e.tagName.toLowerCase()===o[i].toLowerCase())return!0;return!1},e.findInline=function(t,o,i){var r=t,n=null;do{if(!r)break;if((n=o?r.previousSibling:r.nextSibling)||!r.parentNode||r.parentNode===i||!e.isInlineBlock(r.parentNode))break;r=r.parentNode}while(!n);for(;n&&e.isInlineBlock(n)&&(o?n.lastChild:n.firstChild);)n=o?n.lastChild:n.firstChild;return n},e}();t.Dom=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BASE_PATH=t.KEY_ALIASES=t.IS_MAC=t.SAFE_COUNT_CHANGE_CALL=t.INSERT_ONLY_TEXT=t.INSERT_AS_TEXT=t.INSERT_CLEAR_HTML=t.INSERT_AS_HTML=t.EMULATE_DBLCLICK_TIMEOUT=t.MARKER_CLASS=t.TEXT_HTML=t.TEXT_PLAIN=t.IS_IE=t.MODE_SPLIT=t.MODE_SOURCE=t.MODE_WYSIWYG=t.PARAGRAPH=t.BR=t.COMMAND_KEYS=t.ACCURACY=t.NEARBY=t.KEY_F3=t.KEY_DELETE=t.KEY_DOWN=t.KEY_RIGHT=t.KEY_UP=t.KEY_LEFT=t.KEY_ESC=t.KEY_ENTER=t.KEY_TAB=t.KEY_BACKSPACE=t.MAY_BE_REMOVED_WITH_KEY=t.INSEPARABLE_TAGS=t.IS_INLINE=t.IS_BLOCK=t.SPACE_REG_EXP_END=t.SPACE_REG_EXP_START=t.SPACE_REG_EXP=t.INVISIBLE_SPACE_REG_EXP_START=t.INVISIBLE_SPACE_REG_EXP_END=t.INVISIBLE_SPACE_REG_EXP=t.NBSP_SPACE=t.INVISIBLE_SPACE=void 0,t.INVISIBLE_SPACE="\ufeff",t.NBSP_SPACE=" ",t.INVISIBLE_SPACE_REG_EXP=function(){return/[\uFEFF]/g},t.INVISIBLE_SPACE_REG_EXP_END=function(){return/[\uFEFF]+$/g},t.INVISIBLE_SPACE_REG_EXP_START=function(){return/^[\uFEFF]+/g},t.SPACE_REG_EXP=function(){return/[\s\n\t\r\uFEFF\u200b]+/g},t.SPACE_REG_EXP_START=function(){return/^[\s\n\t\r\uFEFF\u200b]+/g},t.SPACE_REG_EXP_END=function(){return/[\s\n\t\r\uFEFF\u200b]+$/g},t.IS_BLOCK=/^(ARTICLE|SCRIPT|IFRAME|JODIT|JODIT-MEDIA|PRE|DIV|P|LI|UL|OL|H[1-6]|BLOCKQUOTE|TR|TD|TH|TBODY|THEAD|TABLE|BODY|HTML|FIGCAPTION|FIGURE|DT|DD|DL|DFN)$/i,t.IS_INLINE=/^(STRONG|SPAN|I|EM|B|SUP|SUB)$/i,t.INSEPARABLE_TAGS=["img","br","video","iframe","script","input","textarea","hr","link","jodit","jodit-media"],t.MAY_BE_REMOVED_WITH_KEY=RegExp("^"+t.INSEPARABLE_TAGS.join("|")+"$","i"),t.KEY_BACKSPACE="Backspace",t.KEY_TAB="Tab",t.KEY_ENTER="Enter",t.KEY_ESC="Escape",t.KEY_LEFT="ArrowLeft",t.KEY_UP="ArrowUp",t.KEY_RIGHT="ArrowRight",t.KEY_DOWN="ArrowDown",t.KEY_DELETE="Delete",t.KEY_F3="F3",t.NEARBY=5,t.ACCURACY=10,t.COMMAND_KEYS=[t.KEY_BACKSPACE,t.KEY_DELETE,t.KEY_UP,t.KEY_DOWN,t.KEY_RIGHT,t.KEY_LEFT,t.KEY_ENTER,t.KEY_ESC,t.KEY_F3,t.KEY_TAB],t.BR="br",t.PARAGRAPH="p",t.MODE_WYSIWYG=1,t.MODE_SOURCE=2,t.MODE_SPLIT=3,t.IS_IE="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),t.TEXT_PLAIN=t.IS_IE?"text":"text/plain",t.TEXT_HTML=t.IS_IE?"html":"text/html",t.MARKER_CLASS="jodit-selection_marker",t.EMULATE_DBLCLICK_TIMEOUT=300,t.INSERT_AS_HTML="insert_as_html",t.INSERT_CLEAR_HTML="insert_clear_html",t.INSERT_AS_TEXT="insert_as_text",t.INSERT_ONLY_TEXT="insert_only_text",t.SAFE_COUNT_CHANGE_CALL=10,t.IS_MAC="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),t.KEY_ALIASES={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:t.IS_MAC?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},t.BASE_PATH=function(){if("undefined"==typeof document)return"";var e=document.currentScript,t=function(e){return e.replace(/\/[^/]+.js$/,"/")};if(e)return t(e.src);var o=document.querySelectorAll("script[src]");return o&&o.length?t(o[o.length-1].src):window.location.href}()},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.configFactory=t.OptionsDefault=t.Config=void 0;var i=o(0),r=o(3),n=o(2),a=o(1),s=o(17),l=function(){function e(){this.iframe=!1,this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument="undefined"!=typeof document?document:null,this.ownerWindow="undefined"!=typeof window?window:null,this.shadowRoot=null,this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.spellcheck=!0,this.editorCssClass=!1,this.style=!1,this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.showTooltip=!0,this.showTooltipDelay=1e3,this.useNativeTooltip=!1,this.enter=r.PARAGRAPH,this.enterBlock="br"!==this.enter?this.enter:r.PARAGRAPH,this.defaultMode=r.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.createAttributes={},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=["source","|","bold","strikethrough","underline","italic","eraser","|","superscript","subscript","|","ul","ol","|","outdent","indent","|","font","fontsize","brush","paragraph","|","image","file","video","table","link","|","align","undo","redo","\n","selectall","cut","copy","paste","copyformat","|","hr","symbol","fullsize","print","preview","find","about"],this.buttonsMD=["source","|","bold","italic","|","ul","ol","eraser","|","font","fontsize","brush","paragraph","|","image","table","link","|","align","\n","undo","redo","|","hr","copyformat","fullsize","dots"],this.buttonsSM=["source","|","bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","|","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","dots"],this.buttonsXS=["bold","image","|","brush","paragraph","eraser","\n","align","|","undo","redo","|","dots"],this.events={},this.textIcons=!1,this.showBrowserColorPicker=!0}return Object.defineProperty(e,"defaultOptions",{get:function(){return e.__defaultOptions||(e.__defaultOptions=new e),e.__defaultOptions},enumerable:!1,configurable:!0}),e}();t.Config=l,t.OptionsDefault=function(e,t){var o=this;void 0===t&&(t=l.defaultOptions);var i=this;if(i.plainOptions=e,void 0!==e&&"object"==typeof e){var r=function(e,n){if("preset"===n&&void 0!==t.presets[e.preset]){var s=t.presets[e.preset];Object.keys(s).forEach(r.bind(o,s))}var l=t[n];i[n]="object"!=typeof l||null===l||["ownerWindow","ownerDocument"].includes(n)||a.isArray(l)?e[n]:a.extend(!0,{},l,e[n])};Object.keys(e).forEach(r.bind(this,e))}},l.prototype.controls={image:{popup:function(e,t,o,r){var l=null;t&&!n.Dom.isText(t)&&n.Dom.isHTMLElement(t,e.ew)&&(n.Dom.isTag(t,"img")||a.$$("img",t).length)&&(l=n.Dom.isTag(t,"img")?t:a.$$("img",t)[0]);var d=e.s.save();return s.FileSelectorWidget(e,{filebrowser:function(t){e.s.restore(d),t.files&&t.files.forEach((function(o){return e.s.insertImage(t.baseurl+o,null,e.o.imageDefaultWidth)})),r()},upload:!0,url:function(t,o){return i.__awaiter(void 0,void 0,void 0,(function(){var n;return i.__generator(this,(function(i){switch(i.label){case 0:return e.s.restore(d),(n=l||e.createInside.element("img")).setAttribute("src",t),n.setAttribute("alt",o),l?[3,2]:[4,e.s.insertImage(n,null,e.o.imageDefaultWidth)];case 1:i.sent(),i.label=2;case 2:return r(),[2]}}))}))}},l,r)},tags:["img"],tooltip:"Insert Image"},file:{popup:function(e,t,o,i){var r=function(t,o){void 0===o&&(o=""),e.s.insertNode(e.createInside.fromHTML('<a href="'+t+'" title="'+o+'">'+(o||t)+"</a>"))},a=null;return t&&(n.Dom.isTag(t,"a")||n.Dom.closest(t,"a",e.editor))&&(a=n.Dom.isTag(t,"a")?t:n.Dom.closest(t,"a",e.editor)),s.FileSelectorWidget(e,{filebrowser:function(e){e.files&&e.files.forEach((function(t){return r(e.baseurl+t)})),i()},upload:!0,url:function(e,t){a?(a.setAttribute("href",e),a.setAttribute("title",t)):r(e,t),i()}},a,i,!1)},tags:["a"],tooltip:"Insert file"}},t.configFactory=function(e){return new t.OptionsDefault(e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(84),t),i.__exportStar(o(85),t),i.__exportStar(o(86),t),i.__exportStar(o(101),t),i.__exportStar(o(31),t),i.__exportStar(o(102),t),i.__exportStar(o(103),t),i.__exportStar(o(104),t),i.__exportStar(o(105),t),i.__exportStar(o(106),t),i.__exportStar(o(107),t),i.__exportStar(o(108),t),i.__exportStar(o(49),t),i.__exportStar(o(109),t),i.__exportStar(o(19),t),i.__exportStar(o(110),t),i.__exportStar(o(111),t),i.__exportStar(o(112),t),i.__exportStar(o(50),t),i.__exportStar(o(113),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Plugin=void 0;var i=o(0),r=o(8),n=o(9),a=function(e){function t(t){var o=e.call(this,t)||this;return t.e.on("afterInit",(function(){o.setStatus(n.STATUSES.ready),o.afterInit(t)})).on("beforeDestruct",o.destruct),o}return i.__extends(t,e),t.prototype.init=function(e){},t.prototype.destruct=function(){var t,o;this.isInDestruct||(this.setStatus(n.STATUSES.beforeDestruct),null===(o=null===(t=this.j)||void 0===t?void 0:t.events)||void 0===o||o.off("beforeDestruct",this.destruct),this.beforeDestruct(this.j),e.prototype.destruct.call(this))},i.__decorate([r.default],t.prototype,"destruct",null),t}(n.ViewComponent);t.Plugin=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(20),t),i.__exportStar(o(15),t),i.__exportStar(o(24),t),i.__exportStar(o(56),t),i.__exportStar(o(57),t),i.__exportStar(o(160),t),i.__exportStar(o(36),t),i.__exportStar(o(55),t)},function(e,t,o){"use strict";function i(e){return(i="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})(e)}function r(e,t,o){var r=o.value;if("function"!=typeof r)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(i(r)));var n=!1;return{configurable:!0,get:function(){if(n||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof r)return r;var o=r.bind(this);return n=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return o},set:function(e){r=e,delete this[t]}}),n=!1,o},set:function(e){r=e}}}function n(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var o=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof o.value&&Object.defineProperty(e.prototype,t,r(e,t,o))}})),e}function a(){return 1===arguments.length?n.apply(void 0,arguments):r.apply(void 0,arguments)}o.r(t),o.d(t,"boundMethod",(function(){return r})),o.d(t,"boundClass",(function(){return n})),o.d(t,"default",(function(){return a}))},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(47),t),i.__exportStar(o(48),t),i.__exportStar(o(95),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PluginSystem=t.Uploader=t.ToolbarCollection=t.ToolbarEditorCollection=t.Table=t.StatusBar=t.Snapshot=t.Style=t.Select=t.ProgressBar=t.Observer=t.ImageEditor=t.Helpers=t.FileBrowser=t.ViewWithToolbar=t.View=t.Icon=t.UIBlock=t.UICheckbox=t.UITextArea=t.UIInput=t.UIForm=t.UIList=t.UIGroup=t.UISeparator=t.Popup=t.UIButton=t.UIElement=t.Create=t.Plugin=t.Dom=t.Dialog=t.Prompt=t.Confirm=t.Alert=t.ContextMenu=t.STATUSES=t.ViewComponent=t.Component=t.Ajax=t.Async=void 0;var i=o(0);i.__exportStar(o(22),t);var r=o(58);Object.defineProperty(t,"Async",{enumerable:!0,get:function(){return r.Async}});var n=o(37);Object.defineProperty(t,"Ajax",{enumerable:!0,get:function(){return n.Ajax}});var a=o(9);Object.defineProperty(t,"Component",{enumerable:!0,get:function(){return a.Component}}),Object.defineProperty(t,"ViewComponent",{enumerable:!0,get:function(){return a.ViewComponent}}),Object.defineProperty(t,"STATUSES",{enumerable:!0,get:function(){return a.STATUSES}});var s=o(59);Object.defineProperty(t,"ContextMenu",{enumerable:!0,get:function(){return s.ContextMenu}});var l=o(16);Object.defineProperty(t,"Alert",{enumerable:!0,get:function(){return l.Alert}}),Object.defineProperty(t,"Confirm",{enumerable:!0,get:function(){return l.Confirm}}),Object.defineProperty(t,"Prompt",{enumerable:!0,get:function(){return l.Prompt}}),Object.defineProperty(t,"Dialog",{enumerable:!0,get:function(){return l.Dialog}});var d=o(2);Object.defineProperty(t,"Dom",{enumerable:!0,get:function(){return d.Dom}});var c=o(6);Object.defineProperty(t,"Plugin",{enumerable:!0,get:function(){return c.Plugin}});var u=o(187);Object.defineProperty(t,"Create",{enumerable:!0,get:function(){return u.Create}});var p=o(7);Object.defineProperty(t,"UIElement",{enumerable:!0,get:function(){return p.UIElement}}),Object.defineProperty(t,"UIButton",{enumerable:!0,get:function(){return p.UIButton}}),Object.defineProperty(t,"Popup",{enumerable:!0,get:function(){return p.Popup}}),Object.defineProperty(t,"UISeparator",{enumerable:!0,get:function(){return p.UISeparator}}),Object.defineProperty(t,"UIGroup",{enumerable:!0,get:function(){return p.UIGroup}}),Object.defineProperty(t,"UIList",{enumerable:!0,get:function(){return p.UIList}}),Object.defineProperty(t,"UIForm",{enumerable:!0,get:function(){return p.UIForm}}),Object.defineProperty(t,"UIInput",{enumerable:!0,get:function(){return p.UIInput}}),Object.defineProperty(t,"UITextArea",{enumerable:!0,get:function(){return p.UITextArea}}),Object.defineProperty(t,"UICheckbox",{enumerable:!0,get:function(){return p.UICheckbox}}),Object.defineProperty(t,"UIBlock",{enumerable:!0,get:function(){return p.UIBlock}}),Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return p.Icon}});var f=o(60);Object.defineProperty(t,"View",{enumerable:!0,get:function(){return f.View}});var h=o(27);Object.defineProperty(t,"ViewWithToolbar",{enumerable:!0,get:function(){return h.ViewWithToolbar}});var m=o(188);Object.defineProperty(t,"FileBrowser",{enumerable:!0,get:function(){return m.FileBrowser}});var g=o(1);t.Helpers=g;var v=o(195);Object.defineProperty(t,"ImageEditor",{enumerable:!0,get:function(){return v.ImageEditor}});var b=o(198);Object.defineProperty(t,"Observer",{enumerable:!0,get:function(){return b.Observer}});var y=o(201);Object.defineProperty(t,"ProgressBar",{enumerable:!0,get:function(){return y.ProgressBar}});var _=o(203);Object.defineProperty(t,"Select",{enumerable:!0,get:function(){return _.Select}}),Object.defineProperty(t,"Style",{enumerable:!0,get:function(){return _.Style}});var j=o(68);Object.defineProperty(t,"Snapshot",{enumerable:!0,get:function(){return j.Snapshot}});var w=o(206);Object.defineProperty(t,"StatusBar",{enumerable:!0,get:function(){return w.StatusBar}});var x=o(208);Object.defineProperty(t,"Table",{enumerable:!0,get:function(){return x.Table}});var S=o(63);Object.defineProperty(t,"ToolbarEditorCollection",{enumerable:!0,get:function(){return S.ToolbarEditorCollection}});var k=o(39);Object.defineProperty(t,"ToolbarCollection",{enumerable:!0,get:function(){return k.ToolbarCollection}}),i.__exportStar(o(209),t);var C=o(210);Object.defineProperty(t,"Uploader",{enumerable:!0,get:function(){return C.Uploader}});var E=o(44);Object.defineProperty(t,"PluginSystem",{enumerable:!0,get:function(){return E.PluginSystem}})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventEmitter=t.getContainer=t.lang=t.modules=t.pluginSystem=t.uniqueUid=t.instances=void 0;var i=o(44),r=o(2),n=o(1),a=o(22);t.instances={};var s=1;t.uniqueUid=function(){return s+=10*(Math.random()+1),Math.round(s).toString(16)},t.pluginSystem=new i.PluginSystem,t.modules={},t.lang={};var l=new WeakMap;t.getContainer=function(e,t,o,i){void 0===o&&(o="div"),void 0===i&&(i=!1);var a=n.getClassName(t.prototype),s=l.get(e)||{};if(!s[a]){var d=n.isViewObject(e)?e:e.j,c=d.c,u=e.od.body;i&&n.isJoditObject(e)&&e.od!==e.ed&&(c=e.createInside,u="style"===o?e.ed.head:e.ed.body);var p=c.element(o,{className:"jodit jodit-"+n.kebabCase(a)+"-container jodit-box"});p.classList.add("jodit_theme_"+(d.o.theme||"default")),u.appendChild(p),s[a]=p,e.hookStatus("beforeDestruct",(function(){r.Dom.safeRemove(p),delete s[a],Object.keys(s).length&&l.delete(e)})),l.set(e,s)}return s[a]},t.eventEmitter=new a.EventsNative},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(82),t),i.__exportStar(o(83),t),i.__exportStar(o(51),t),i.__exportStar(o(114),t),i.__exportStar(o(115),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(87),t),i.__exportStar(o(88),t),i.__exportStar(o(89),t),i.__exportStar(o(90),t),i.__exportStar(o(91),t),i.__exportStar(o(92),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(46),t),i.__exportStar(o(96),t),i.__exportStar(o(97),t),i.__exportStar(o(98),t),i.__exportStar(o(99),t),i.__exportStar(o(100),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o(0).__exportStar(o(155),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Confirm=t.Prompt=t.Alert=t.Dialog=void 0;var i=o(26);Object.defineProperty(t,"Dialog",{enumerable:!0,get:function(){return i.Dialog}});var r=o(184);Object.defineProperty(t,"Alert",{enumerable:!0,get:function(){return r.Alert}});var n=o(185);Object.defineProperty(t,"Prompt",{enumerable:!0,get:function(){return n.Prompt}});var a=o(186);Object.defineProperty(t,"Confirm",{enumerable:!0,get:function(){return a.Confirm}})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(153),t),i.__exportStar(o(174),t),i.__exportStar(o(176),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeButton=t.makeCollection=void 0;var i=o(1),r=o(39),n=o(63),a=o(64),s=o(65);t.makeCollection=function(e,t){var o=i.isJoditObject(e)?new n.ToolbarEditorCollection(e):new r.ToolbarCollection(e);return e.o.textIcons&&o.container.classList.add("jodit_text_icons"),t&&(o.parentElement=t),e.o.toolbarButtonSize&&(o.buttonSize=e.o.toolbarButtonSize),o},t.makeButton=function(e,t,o){if(void 0===o&&(o=null),i.isFunction(t.getContent))return new s.ToolbarContent(e,t,o);var r=new a.ToolbarButton(e,t,o);return r.state.tabIndex=e.o.allowTabNavigation?0:-1,r}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=void 0,t.isString=function(e){return"string"==typeof e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UIElement=void 0;var i=o(0),r=o(9),n=o(2),a=o(12),s=o(23),l=function(e){function t(o,i){var n=e.call(this,o)||this;return n.__parentElement=null,n.mods={},n.container=n.createContainer(i),Object.defineProperty(n.container,"component",{value:n}),a.getClassName(n)===a.getClassName(t.prototype)&&n.setStatus(r.STATUSES.ready),n}return i.__extends(t,e),Object.defineProperty(t.prototype,"parentElement",{get:function(){return this.__parentElement},set:function(e){var t=this;this.__parentElement=e,e&&e.hookStatus("beforeDestruct",(function(){return t.destruct()})),this.updateParentElement(this)},enumerable:!1,configurable:!0}),t.prototype.updateParentElement=function(e){var t;return null===(t=this.__parentElement)||void 0===t||t.updateParentElement(e),this},t.prototype.closest=function(e){for(var t="object"==typeof e?function(t){return t===e}:function(t){return t instanceof e},o=this.__parentElement;o;){if(t(o))return o;o=o.parentElement}return null},t.closestElement=function(e,t){var o=n.Dom.up(e,(function(e){if(e){var o=e.component;return o&&o instanceof t}return!1}));return o?null==o?void 0:o.component:null},t.prototype.setMod=function(e,t,o){if(void 0===o&&(o=this.container),e=e.toLowerCase(),this.mods[e]===t)return this;var i=this.componentName+"_"+e,r=o.classList;return s.toArray(r).forEach((function(e){0===e.indexOf(i)&&r.remove(e)})),null!==t&&""!==t&&r.add(i+"_"+t.toString().toLowerCase()),this.mods[e]=t,this},t.prototype.getClassName=function(e){return this.componentName+"__"+e},t.prototype.update=function(){},t.prototype.appendTo=function(e){return e.appendChild(this.container),this},t.prototype.clearName=function(e){return e.replace(/[^a-zA-Z0-9]/g,"_")},t.prototype.makeContainer=function(e){return this.j.c.div(this.componentName)},t.prototype.createContainer=function(e){return this.makeContainer(e)},t.prototype.destruct=function(){return n.Dom.safeRemove(this.container),this.parentElement=null,e.prototype.destruct.call(this)},t}(r.ViewComponent);t.UIElement=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ICON_LOADER=t.ITEM_CLASS=t.F_CLASS=void 0,t.F_CLASS="jodit-filebrowser",t.ITEM_CLASS=t.F_CLASS+"__files-item",t.ICON_LOADER='<i class="jodit-icon_loader"></i>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(93),t),i.__exportStar(o(94),t),i.__exportStar(o(45),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=t.splitArray=t.asArray=void 0;var i=o(116);Object.defineProperty(t,"asArray",{enumerable:!0,get:function(){return i.asArray}});var r=o(117);Object.defineProperty(t,"splitArray",{enumerable:!0,get:function(){return r.splitArray}});var n=o(118);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return n.toArray}})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o(0).__exportStar(o(157),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UIInput=void 0;var i=o(0);o(165);var r=o(20),n=o(1),a=o(2),s=o(166),l=function(e){function t(t,o){var i,r=e.call(this,t,o)||this;return r.options=o,r.__errorBox=r.j.c.span(r.getClassName("error")),r.validators=[],r.options.required&&(n.attr(r.nativeInput,"required",!0),r.validators.push(s.required)),r.options.placeholder&&n.attr(r.nativeInput,"placeholder",r.options.placeholder),null===(i=o.validators)||void 0===i||i.forEach((function(e){var t=s[e];t&&r.validators.push(t)})),r}return i.__extends(t,e),Object.defineProperty(t.prototype,"error",{set:function(e){this.setMod("has-error",!!e),e?(this.__errorBox.innerText=this.j.i18n(e,this.j.i18n(this.options.label||"")),this.container.appendChild(this.__errorBox)):a.Dom.safeRemove(this.__errorBox)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.nativeInput.value},enumerable:!1,configurable:!0}),t.prototype.validate=function(){var e=this;return this.error="",this.validators.every((function(t){return t(e)}))},t.prototype.createContainer=function(t){var o=e.prototype.createContainer.call(this);if(this.nativeInput||(this.nativeInput=this.j.create.element("input")),this.nativeInput.classList.add(this.getClassName("input")),t.label){var i=this.j.c.span(this.getClassName("label"));o.appendChild(i),i.innerText=this.j.i18n(t.label)}return o.appendChild(this.nativeInput),n.attr(this.nativeInput,"name",t.name),n.attr(this.nativeInput,"dir",this.j.o.direction||"auto"),n.attr(this.nativeInput,"type",t.type),n.attr(this.nativeInput,"data-ref",t.ref||t.name),n.attr(this.nativeInput,"ref",t.ref||t.name),o},t.prototype.focus=function(){this.nativeInput.focus()},t}(r.UIElement);t.UIInput=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dialog=void 0;var i=o(0);o(178);var r=o(8),n=o(4),a=o(3),s=o(1),l=o(27),d=o(2),c=o(9),u=o(11);n.Config.prototype.dialog={extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[]},n.Config.prototype.controls.dialog={close:{icon:"cancel",exec:function(e){e.close()}}};var p=function(e){function t(t){var o=e.call(this,t)||this;o.destination=document.body,o.destroyAfterClose=!1,o.moved=!1,o.iSetMaximization=!1,o.resizable=!1,o.draggable=!1,o.startX=0,o.startY=0,o.startPoint={x:0,y:0,w:0,h:0},o.lockSelect=function(){o.container.classList.add("jodit-dialog__box-moved")},o.unlockSelect=function(){o.container.classList.remove("jodit-dialog__box-moved")},o.onResize=function(){o.options&&o.o.resizable&&!o.moved&&o.isOpened&&!o.offsetX&&!o.offsetY&&o.setPosition()},o.isOpened=!1;var i=o;i.options=new n.OptionsDefault(s.extend(!0,{toolbarButtonSize:"middle"},n.Config.prototype.dialog,t)),d.Dom.safeRemove(i.container),i.container=o.c.fromHTML('<div style="z-index:'+i.o.zIndex+'" class="jodit jodit-dialog__box"><div class="jodit-dialog__overlay"></div><div class="jodit-dialog"><div class="jodit-dialog__header non-selected"><div class="jodit-dialog__header-title"></div><div class="jodit-dialog__header-toolbar"></div></div><div class="jodit-dialog__content"></div><div class="jodit-dialog__footer"></div>'+(i.o.resizable?'<div class="jodit-dialog__resizer"></div>':"")+"</div></div>"),s.attr(i.container,"role","dialog"),Object.defineProperty(i.container,"component",{value:o}),i.container.classList.add("jodit_theme_"+(o.o.theme||"default")),i.dialog=i.container.querySelector(".jodit-dialog"),i.resizer=i.container.querySelector(".jodit-dialog__resizer"),i.dialogbox_header=i.container.querySelector(".jodit-dialog__header>.jodit-dialog__header-title"),i.dialogbox_content=i.container.querySelector(".jodit-dialog__content"),i.dialogbox_footer=i.container.querySelector(".jodit-dialog__footer"),i.dialogbox_toolbar=i.container.querySelector(".jodit-dialog__header>.jodit-dialog__header-toolbar"),i.o.buttons&&i.toolbar.build(s.splitArray(i.o.buttons)).appendTo(i.dialogbox_toolbar);var r=i.container.querySelector(".jodit-dialog__header");r&&i.e.on(r,"mousedown",i.onHeaderMouseDown),i.o.resizable&&i.e.on(i.resizer,"mousedown",i.onResizerMouseDown);var a=u.pluginSystem.get("fullsize");return s.isFunction(a)&&a(i),i.setStatus(c.STATUSES.ready),o.e.on(i.container,"close_dialog",i.close).on(o.ow,"keydown",o.onEsc).on(o.ow,"resize",o.onResize),o}return i.__extends(t,e),t.prototype.setElements=function(e,t){var o=this,i=[];s.asArray(t).forEach((function(t){if(s.isArray(t)){var r=o.c.div("jodit-dialog__column");return i.push(r),e.appendChild(r),o.setElements(r,t)}var n;n=s.isString(t)?o.c.fromHTML(t):s.hasContainer(t)?t.container:t,i.push(n),n.parentNode!==e&&e.appendChild(n)})),s.toArray(e.childNodes).forEach((function(t){-1===i.indexOf(t)&&e.removeChild(t)}))},t.prototype.onMouseUp=function(){(this.draggable||this.resizable)&&(this.e.off(this.ow,"mousemove",this.onMouseMove),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.removeGlobalListeners(),this.e.fire(this,"endResize endMove")))},t.prototype.onHeaderMouseDown=function(e){var t=e.target;!this.o.draggable||t&&t.nodeName.match(/^(INPUT|SELECT)$/)||(this.draggable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.x=s.css(this.dialog,"left"),this.startPoint.y=s.css(this.dialog,"top"),this.setMaxZIndex(),e.preventDefault(),this.lockSelect(),this.addGlobalListeners(),this.e&&this.e.fire(this,"startMove"))},t.prototype.onMouseMove=function(e){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+e.clientX-this.startX,this.startPoint.y+e.clientY-this.startY),this.e&&this.e.fire(this,"move",e.clientX-this.startX,e.clientY-this.startY),e.stopImmediatePropagation(),e.preventDefault()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+e.clientX-this.startX,this.startPoint.h+e.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",e.clientX-this.startX,e.clientY-this.startY),e.stopImmediatePropagation(),e.preventDefault())},t.prototype.onEsc=function(e){if(this.isOpened&&e.key===a.KEY_ESC){var t=this.getMaxZIndexDialog();t?t.close():this.close(),e.stopImmediatePropagation()}},t.prototype.onResizerMouseDown=function(e){this.resizable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.addGlobalListeners(),this.e&&this.e.fire(this,"startResize")},t.prototype.addGlobalListeners=function(){var e=this;e.e.on(e.ow,"mousemove",e.onMouseMove).on(e.ow,"mouseup",e.onMouseUp)},t.prototype.removeGlobalListeners=function(){var e=this;e.e.off(e.ow,"mousemove",e.onMouseMove).off(e.ow,"mouseup",e.onMouseUp)},t.prototype.setSize=function(e,t){return e&&s.css(this.dialog,"width",e),t&&s.css(this.dialog,"height",t),this},t.prototype.setPosition=function(e,t){var o=this.ow.innerWidth/2-this.dialog.offsetWidth/2,i=this.ow.innerHeight/2-this.dialog.offsetHeight/2;return 0>o&&(o=0),0>i&&(i=0),void 0!==e&&void 0!==t&&(this.offsetX=e,this.offsetY=t,this.moved=Math.abs(e-o)>100||Math.abs(t-i)>100),this.dialog.style.left=(e||o)+"px",this.dialog.style.top=(t||i)+"px",this},t.prototype.setHeader=function(e){return this.setElements(this.dialogbox_header,e),this},t.prototype.setContent=function(e){return this.setElements(this.dialogbox_content,e),this},t.prototype.setFooter=function(e){return this.setElements(this.dialogbox_footer,e),this.dialog.classList.toggle("jodit-dialog_footer_true",!!e),this},t.prototype.getZIndex=function(){return parseInt(s.css(this.container,"zIndex"),10)||0},t.prototype.getMaxZIndexDialog=function(){var e,t,o=0,i=this;return s.$$(".jodit-dialog__box",this.destination).forEach((function(r){e=r.component,t=parseInt(s.css(r,"zIndex"),10),e.isOpened&&!isNaN(t)&&t>o&&(i=e,o=t)})),i},t.prototype.setMaxZIndex=function(){var e=20000004,t=0;s.$$(".jodit-dialog__box",this.destination).forEach((function(o){t=parseInt(s.css(o,"zIndex"),10),e=Math.max(isNaN(t)?0:t,e)})),this.container.style.zIndex=(e+1).toString()},t.prototype.maximization=function(e){return"boolean"!=typeof e&&(e=!this.container.classList.contains("jodit-dialog__box_fullsize")),this.container.classList.toggle("jodit-dialog__box_fullsize",e),[this.destination,this.destination.parentNode].forEach((function(t){t&&t.classList&&t.classList.toggle("jodit_fullsize-box_true",e)})),this.iSetMaximization=e,e},t.prototype.open=function(e,t,o,i){if(u.eventEmitter.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;s.isBoolean(e)&&(o=e),s.isBoolean(t)&&(i=t),this.destroyAfterClose=!0===o;var r=s.isBoolean(e)?void 0:e,n=s.isBoolean(t)?void 0:t;return void 0!==n&&this.setHeader(n),r&&this.setContent(r),this.container.classList.add("jodit-dialog_active"),this.isOpened=!0,this.setModal(i),this.destination.appendChild(this.container),this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex(),this.o.fullsize&&this.maximization(!0),this.e.fire("afterOpen",this),this},t.prototype.setModal=function(e){return this.container.classList.toggle("jodit-modal",Boolean(e)),this},t.prototype.close=function(e){var t,o,i;return this.isDestructed||!this.isOpened||(e&&(e.stopImmediatePropagation(),e.preventDefault()),this.e&&this.e.fire("beforeClose",this),d.Dom.safeRemove(this.container),null===(t=null==this?void 0:this.container)||void 0===t||t.classList.remove("jodit-dialog_active"),this.isOpened=!1,this.iSetMaximization&&this.maximization(!1),this.removeGlobalListeners(),this.destroyAfterClose&&this.destruct(),null===(o=this.e)||void 0===o||o.fire(this,"afterClose"),null===(i=this.e)||void 0===i||i.fire(this.ow,"joditCloseDialog")),this},t.prototype.destruct=function(){this.isInDestruct||(this.setStatus(c.STATUSES.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.removeGlobalListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.onEsc).off(this.ow,"resize",this.onResize)),e.prototype.destruct.call(this))},i.__decorate([r.default],t.prototype,"onMouseUp",null),i.__decorate([r.default],t.prototype,"onHeaderMouseDown",null),i.__decorate([r.default],t.prototype,"onMouseMove",null),i.__decorate([r.default],t.prototype,"onEsc",null),i.__decorate([r.default],t.prototype,"onResizerMouseDown",null),i.__decorate([r.default],t.prototype,"close",null),t}(l.ViewWithToolbar);t.Dialog=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewWithToolbar=void 0;var i=o(0);o(179);var r=o(60),n=o(1),a=o(2),s=o(18),l=o(9),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.toolbar=s.makeCollection(t),t.defaultToolbarContainer=t.c.div("jodit-toolbar__box"),t}return i.__extends(t,e),Object.defineProperty(t.prototype,"toolbarContainer",{get:function(){return this.o.fullsize||!n.isString(this.o.toolbar)&&!a.Dom.isHTMLElement(this.o.toolbar,this.ow)?(this.o.toolbar&&a.Dom.appendChildFirst(this.container,this.defaultToolbarContainer),this.defaultToolbarContainer):n.resolveElement(this.o.toolbar,this.o.shadowRoot||this.od)},enumerable:!1,configurable:!0}),t.prototype.setPanel=function(e){this.o.toolbar=e,this.buildToolbar()},t.prototype.buildToolbar=function(){if(this.o.toolbar){var e=this.o.buttons?n.splitArray(this.o.buttons):[];this.toolbar.setRemoveButtons(this.o.removeButtons).build(e.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}},t.prototype.destruct=function(){this.isDestructed||(this.setStatus(l.STATUSES.beforeDestruct),this.toolbar.destruct(),e.prototype.destruct.call(this))},t}(r.View);t.ViewWithToolbar=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllTypes=t.pasteInsertHtml=t.getDataTransfer=void 0;var i=o(1),r=o(2),n=o(3);t.getDataTransfer=function(e){if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}},t.pasteInsertHtml=function(e,t,o){if(!t.isInDestruct){"drop"===(null==e?void 0:e.type)&&t.s.insertCursorAtPoint(e.clientX,e.clientY);var n=t.e.fire("beforePasteInsert",o);!i.isVoid(n)&&(i.isString(n)||i.isNumber(n)||r.Do