/*! ** Unobtrusive Ajax support library for jQuery ** Copyright (C) Microsoft Corporation. All rights reserved. */ /*jslint white: true, browser: true, onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: false */ /*global window: false, jQuery: false */ (function ($) { var data_click = "unobtrusiveAjaxClick", data_target = "unobtrusiveAjaxClickTarget", data_validation = "unobtrusiveValidation"; function getFunction(code, argNames) { var fn = window, parts = (code || "").split("."); while (fn && parts.length) { fn = fn[parts.shift()]; } if (typeof (fn) === "function") { return fn; } argNames.push(code); return Function.constructor.apply(null, argNames); } function isMethodProxySafe(method) { return method === "GET" || method === "POST"; } function asyncOnBeforeSend(xhr, method) { if (!isMethodProxySafe(method)) { xhr.setRequestHeader("X-HTTP-Method-Override", method); } } function asyncOnSuccess(element, data, contentType) { var mode; if (contentType.indexOf("application/x-javascript") !== -1) { // jQuery already executes JavaScript for us return; } mode = (element.getAttribute("data-ajax-mode") || "").toUpperCase(); $(element.getAttribute("data-ajax-update")).each(function (i, update) { var top; switch (mode) { case "BEFORE": top = update.firstChild; $("
").html(data).contents().each(function () { update.insertBefore(this, top); }); break; case "AFTER": $("
").html(data).contents().each(function () { update.appendChild(this); }); break; case "REPLACE-WITH": $(update).replaceWith(data); break; default: $(update).html(data); break; } }); } function asyncRequest(element, options) { var confirm, loading, method, duration; confirm = element.getAttribute("data-ajax-confirm"); if (confirm && !window.confirm(confirm)) { return; } loading = $(element.getAttribute("data-ajax-loading")); duration = parseInt(element.getAttribute("data-ajax-loading-duration"), 10) || 0; $.extend(options, { type: element.getAttribute("data-ajax-method") || undefined, url: element.getAttribute("data-ajax-url") || undefined, cache: !!element.getAttribute("data-ajax-cache"), beforeSend: function (xhr) { var result; asyncOnBeforeSend(xhr, method); result = getFunction(element.getAttribute("data-ajax-begin"), ["xhr"]).apply(element, arguments); if (result !== false) { loading.show(duration); } return result; }, complete: function () { loading.hide(duration); getFunction(element.getAttribute("data-ajax-complete"), ["xhr", "status"]).apply(element, arguments); }, success: function (data, status, xhr) { asyncOnSuccess(element, data, xhr.getResponseHeader("Content-Type") || "text/html"); getFunction(element.getAttribute("data-ajax-success"), ["data", "status", "xhr"]).apply(element, arguments); }, error: function () { getFunction(element.getAttribute("data-ajax-failure"), ["xhr", "status", "error"]).apply(element, arguments); } }); options.data.push({ name: "X-Requested-With", value: "XMLHttpRequest" }); method = options.type.toUpperCase(); if (!isMethodProxySafe(method)) { options.type = "POST"; options.data.push({ name: "X-HTTP-Method-Override", value: method }); } $.ajax(options); } function validate(form) { var validationInfo = $(form).data(data_validation); return !validationInfo || !validationInfo.validate || validationInfo.validate(); } $(document).on("click", "a[data-ajax=true]", function (evt) { evt.preventDefault(); asyncRequest(this, { url: this.href, type: "GET", data: [] }); }); $(document).on("click", "form[data-ajax=true] input[type=image]", function (evt) { var name = evt.target.name, target = $(evt.target), form = $(target.parents("form")[0]), offset = target.offset(); form.data(data_click, [ { name: name + ".x", value: Math.round(evt.pageX - offset.left) }, { name: name + ".y", value: Math.round(evt.pageY - offset.top) } ]); setTimeout(function () { form.removeData(data_click); }, 0); }); $(document).on("click", "form[data-ajax=true] :submit", function (evt) { var name = evt.currentTarget.name, target = $(evt.target), form = $(target.parents("form")[0]); form.data(data_click, name ? [{ name: name, value: evt.currentTarget.value }] : []); form.data(data_target, target); setTimeout(function () { form.removeData(data_click); form.removeData(data_target); }, 0); }); $(document).on("submit", "form[data-ajax=true]", function (evt) { var clickInfo = $(this).data(data_click) || [], clickTarget = $(this).data(data_target), isCancel = clickTarget && clickTarget.hasClass("cancel"); evt.preventDefault(); if (!isCancel && !validate(this)) { return; } asyncRequest(this, { url: this.action, type: this.method || "GET", data: clickInfo.concat($(this).serializeArray()) }); }); }(jQuery));;/*! * jQuery Validation Plugin v1.16.0 * * http://jqueryvalidation.org/ * * Copyright (c) 2016 Jörn Zaefferer * Released under the MIT license */ (function( factory ) { if ( typeof define === "function" && define.amd ) { define( ["jquery"], factory ); } else if (typeof module === "object" && module.exports) { module.exports = factory( require( "jquery" ) ); } else { factory( jQuery ); } }(function( $ ) { $.extend( $.fn, { // http://jqueryvalidation.org/validate/ validate: function( options ) { // If nothing is selected, return nothing; can't chain anyway if ( !this.length ) { if ( options && options.debug && window.console ) { console.warn( "Nothing selected, can't validate, returning nothing." ); } return; } // Check if a validator for this form was already created var validator = $.data( this[ 0 ], "validator" ); if ( validator ) { return validator; } // Add novalidate tag if HTML5. this.attr( "novalidate", "novalidate" ); validator = new $.validator( options, this[ 0 ] ); $.data( this[ 0 ], "validator", validator ); if ( validator.settings.onsubmit ) { this.on( "click.validate", ":submit", function( event ) { if ( validator.settings.submitHandler ) { validator.submitButton = event.target; } // Allow suppressing validation by adding a cancel class to the submit button if ( $( this ).hasClass( "cancel" ) ) { validator.cancelSubmit = true; } // Allow suppressing validation by adding the html5 formnovalidate attribute to the submit button if ( $( this ).attr( "formnovalidate" ) !== undefined ) { validator.cancelSubmit = true; } } ); // Validate the form on submit this.on( "submit.validate", function( event ) { if ( validator.settings.debug ) { // Prevent form submit to be able to see console output event.preventDefault(); } function handle() { var hidden, result; if ( validator.settings.submitHandler ) { if ( validator.submitButton ) { // Insert a hidden input as a replacement for the missing submit button hidden = $( "" ) .attr( "name", validator.submitButton.name ) .val( $( validator.submitButton ).val() ) .appendTo( validator.currentForm ); } result = validator.settings.submitHandler.call( validator, validator.currentForm, event ); if ( validator.submitButton ) { // And clean up afterwards; thanks to no-block-scope, hidden can be referenced hidden.remove(); } if ( result !== undefined ) { return result; } return false; } return true; } // Prevent submit for invalid forms or custom submit handlers if ( validator.cancelSubmit ) { validator.cancelSubmit = false; return handle(); } if ( validator.form() ) { if ( validator.pendingRequest ) { validator.formSubmitted = true; return false; } return handle(); } else { validator.focusInvalid(); return false; } } ); } return validator; }, // http://jqueryvalidation.org/valid/ valid: function() { var valid, validator, errorList; if ( $( this[ 0 ] ).is( "form" ) ) { valid = this.validate().form(); } else { errorList = []; valid = true; validator = $( this[ 0 ].form ).validate(); this.each( function() { valid = validator.element( this ) && valid; if ( !valid ) { errorList = errorList.concat( validator.errorList ); } } ); validator.errorList = errorList; } return valid; }, // http://jqueryvalidation.org/rules/ rules: function( command, argument ) { var element = this[ 0 ], settings, staticRules, existingRules, data, param, filtered; // If nothing is selected, return empty object; can't chain anyway if ( element == null || element.form == null ) { return; } if ( command ) { settings = $.data( element.form, "validator" ).settings; staticRules = settings.rules; existingRules = $.validator.staticRules( element ); switch ( command ) { case "add": $.extend( existingRules, $.validator.normalizeRule( argument ) ); // Remove messages from rules, but allow them to be set separately delete existingRules.messages; staticRules[ element.name ] = existingRules; if ( argument.messages ) { settings.messages[ element.name ] = $.extend( settings.messages[ element.name ], argument.messages ); } break; case "remove": if ( !argument ) { delete staticRules[ element.name ]; return existingRules; } filtered = {}; $.each( argument.split( /\s/ ), function( index, method ) { filtered[ method ] = existingRules[ method ]; delete existingRules[ method ]; if ( method === "required" ) { $( element ).removeAttr( "aria-required" ); } } ); return filtered; } } data = $.validator.normalizeRules( $.extend( {}, $.validator.classRules( element ), $.validator.attributeRules( element ), $.validator.dataRules( element ), $.validator.staticRules( element ) ), element ); // Make sure required is at front if ( data.required ) { param = data.required; delete data.required; data = $.extend( { required: param }, data ); $( element ).attr( "aria-required", "true" ); } // Make sure remote is at back if ( data.remote ) { param = data.remote; delete data.remote; data = $.extend( data, { remote: param } ); } return data; } } ); // Custom selectors $.extend( $.expr.pseudos || $.expr[ ":" ], { // '|| $.expr[ ":" ]' here enables backwards compatibility to jQuery 1.7. Can be removed when dropping jQ 1.7.x support // http://jqueryvalidation.org/blank-selector/ blank: function( a ) { return !$.trim( "" + $( a ).val() ); }, // http://jqueryvalidation.org/filled-selector/ filled: function( a ) { var val = $( a ).val(); return val !== null && !!$.trim( "" + val ); }, // http://jqueryvalidation.org/unchecked-selector/ unchecked: function( a ) { return !$( a ).prop( "checked" ); } } ); // Constructor for validator $.validator = function( options, form ) { this.settings = $.extend( true, {}, $.validator.defaults, options ); this.currentForm = form; this.init(); }; // http://jqueryvalidation.org/jQuery.validator.format/ $.validator.format = function( source, params ) { if ( arguments.length === 1 ) { return function() { var args = $.makeArray( arguments ); args.unshift( source ); return $.validator.format.apply( this, args ); }; } if ( params === undefined ) { return source; } if ( arguments.length > 2 && params.constructor !== Array ) { params = $.makeArray( arguments ).slice( 1 ); } if ( params.constructor !== Array ) { params = [ params ]; } $.each( params, function( i, n ) { source = source.replace( new RegExp( "\\{" + i + "\\}", "g" ), function() { return n; } ); } ); return source; }; $.extend( $.validator, { defaults: { messages: {}, groups: {}, rules: {}, errorClass: "error", pendingClass: "pending", validClass: "valid", errorElement: "label", focusCleanup: false, focusInvalid: true, errorContainer: $( [] ), errorLabelContainer: $( [] ), onsubmit: true, ignore: ":hidden", ignoreTitle: false, onfocusin: function( element ) { this.lastActive = element; // Hide error label and remove error class on focus if enabled if ( this.settings.focusCleanup ) { if ( this.settings.unhighlight ) { this.settings.unhighlight.call( this, element, this.settings.errorClass, this.settings.validClass ); } this.hideThese( this.errorsFor( element ) ); } }, onfocusout: function( element ) { if ( !this.checkable( element ) && ( element.name in this.submitted || !this.optional( element ) ) ) { this.element( element ); } }, onkeyup: function( element, event ) { // Avoid revalidate the field when pressing one of the following keys // Shift => 16 // Ctrl => 17 // Alt => 18 // Caps lock => 20 // End => 35 // Home => 36 // Left arrow => 37 // Up arrow => 38 // Right arrow => 39 // Down arrow => 40 // Insert => 45 // Num lock => 144 // AltGr key => 225 var excludedKeys = [ 16, 17, 18, 20, 35, 36, 37, 38, 39, 40, 45, 144, 225 ]; if ( event.which === 9 && this.elementValue( element ) === "" || $.inArray( event.keyCode, excludedKeys ) !== -1 ) { return; } else if ( element.name in this.submitted || element.name in this.invalid ) { this.element( element ); } }, onclick: function( element ) { // Click on selects, radiobuttons and checkboxes if ( element.name in this.submitted ) { this.element( element ); // Or option elements, check parent select in that case } else if ( element.parentNode.name in this.submitted ) { this.element( element.parentNode ); } }, highlight: function( element, errorClass, validClass ) { if ( element.type === "radio" ) { this.findByName( element.name ).addClass( errorClass ).removeClass( validClass ); } else { $( element ).addClass( errorClass ).removeClass( validClass ); } }, unhighlight: function( element, errorClass, validClass ) { if ( element.type === "radio" ) { this.findByName( element.name ).removeClass( errorClass ).addClass( validClass ); } else { $( element ).removeClass( errorClass ).addClass( validClass ); } } }, // http://jqueryvalidation.org/jQuery.validator.setDefaults/ setDefaults: function( settings ) { $.extend( $.validator.defaults, settings ); }, messages: { required: "This field is required.", remote: "Please fix this field.", email: "Please enter a valid email address.", url: "Please enter a valid URL.", date: "Please enter a valid date.", dateISO: "Please enter a valid date (ISO).", number: "Please enter a valid number.", digits: "Please enter only digits.", equalTo: "Please enter the same value again.", maxlength: $.validator.format( "Please enter no more than {0} characters." ), minlength: $.validator.format( "Please enter at least {0} characters." ), rangelength: $.validator.format( "Please enter a value between {0} and {1} characters long." ), range: $.validator.format( "Please enter a value between {0} and {1}." ), max: $.validator.format( "Please enter a value less than or equal to {0}." ), min: $.validator.format( "Please enter a value greater than or equal to {0}." ), step: $.validator.format( "Please enter a multiple of {0}." ) }, autoCreateRanges: false, prototype: { init: function() { this.labelContainer = $( this.settings.errorLabelContainer ); this.errorContext = this.labelContainer.length && this.labelContainer || $( this.currentForm ); this.containers = $( this.settings.errorContainer ).add( this.settings.errorLabelContainer ); this.submitted = {}; this.valueCache = {}; this.pendingRequest = 0; this.pending = {}; this.invalid = {}; this.reset(); var groups = ( this.groups = {} ), rules; $.each( this.settings.groups, function( key, value ) { if ( typeof value === "string" ) { value = value.split( /\s/ ); } $.each( value, function( index, name ) { groups[ name ] = key; } ); } ); rules = this.settings.rules; $.each( rules, function( key, value ) { rules[ key ] = $.validator.normalizeRule( value ); } ); function delegate( event ) { // Set form expando on contenteditable if ( !this.form && this.hasAttribute( "contenteditable" ) ) { this.form = $( this ).closest( "form" )[ 0 ]; } var validator = $.data( this.form, "validator" ), eventType = "on" + event.type.replace( /^validate/, "" ), settings = validator.settings; if ( settings[ eventType ] && !$( this ).is( settings.ignore ) ) { settings[ eventType ].call( validator, this, event ); } } $( this.currentForm ) .on( "focusin.validate focusout.validate keyup.validate", ":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], " + "[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], " + "[type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], " + "[type='radio'], [type='checkbox'], [contenteditable], [type='button']", delegate ) // Support: Chrome, oldIE // "select" is provided as event.target when clicking a option .on( "click.validate", "select, option, [type='radio'], [type='checkbox']", delegate ); if ( this.settings.invalidHandler ) { $( this.currentForm ).on( "invalid-form.validate", this.settings.invalidHandler ); } // Add aria-required to any Static/Data/Class required fields before first validation // Screen readers require this attribute to be present before the initial submission http://www.w3.org/TR/WCAG-TECHS/ARIA2.html $( this.currentForm ).find( "[required], [data-rule-required], .required" ).attr( "aria-required", "true" ); }, // http://jqueryvalidation.org/Validator.form/ form: function() { this.checkForm(); $.extend( this.submitted, this.errorMap ); this.invalid = $.extend( {}, this.errorMap ); if ( !this.valid() ) { $( this.currentForm ).triggerHandler( "invalid-form", [ this ] ); } this.showErrors(); return this.valid(); }, checkForm: function() { this.prepareForm(); for ( var i = 0, elements = ( this.currentElements = this.elements() ); elements[ i ]; i++ ) { this.check( elements[ i ] ); } return this.valid(); }, // http://jqueryvalidation.org/Validator.element/ element: function( element ) { var cleanElement = this.clean( element ), checkElement = this.validationTargetFor( cleanElement ), v = this, result = true, rs, group; if ( checkElement === undefined ) { delete this.invalid[ cleanElement.name ]; } else { this.prepareElement( checkElement ); this.currentElements = $( checkElement ); // If this element is grouped, then validate all group elements already // containing a value group = this.groups[ checkElement.name ]; if ( group ) { $.each( this.groups, function( name, testgroup ) { if ( testgroup === group && name !== checkElement.name ) { cleanElement = v.validationTargetFor( v.clean( v.findByName( name ) ) ); if ( cleanElement && cleanElement.name in v.invalid ) { v.currentElements.push( cleanElement ); result = v.check( cleanElement ) && result; } } } ); } rs = this.check( checkElement ) !== false; result = result && rs; if ( rs ) { this.invalid[ checkElement.name ] = false; } else { this.invalid[ checkElement.name ] = true; } if ( !this.numberOfInvalids() ) { // Hide error containers on last error this.toHide = this.toHide.add( this.containers ); } this.showErrors(); // Add aria-invalid status for screen readers $( element ).attr( "aria-invalid", !rs ); } return result; }, // http://jqueryvalidation.org/Validator.showErrors/ showErrors: function( errors ) { if ( errors ) { var validator = this; // Add items to error list and map $.extend( this.errorMap, errors ); this.errorList = $.map( this.errorMap, function( message, name ) { return { message: message, element: validator.findByName( name )[ 0 ] }; } ); // Remove items from success list this.successList = $.grep( this.successList, function( element ) { return !( element.name in errors ); } ); } if ( this.settings.showErrors ) { this.settings.showErrors.call( this, this.errorMap, this.errorList ); } else { this.defaultShowErrors(); } }, // http://jqueryvalidation.org/Validator.resetForm/ resetForm: function() { if ( $.fn.resetForm ) { $( this.currentForm ).resetForm(); } this.invalid = {}; this.submitted = {}; this.prepareForm(); this.hideErrors(); var elements = this.elements() .removeData( "previousValue" ) .removeAttr( "aria-invalid" ); this.resetElements( elements ); }, resetElements: function( elements ) { var i; if ( this.settings.unhighlight ) { for ( i = 0; elements[ i ]; i++ ) { this.settings.unhighlight.call( this, elements[ i ], this.settings.errorClass, "" ); this.findByName( elements[ i ].name ).removeClass( this.settings.validClass ); } } else { elements .removeClass( this.settings.errorClass ) .removeClass( this.settings.validClass ); } }, numberOfInvalids: function() { return this.objectLength( this.invalid ); }, objectLength: function( obj ) { /* jshint unused: false */ var count = 0, i; for ( i in obj ) { if ( obj[ i ] ) { count++; } } return count; }, hideErrors: function() { this.hideThese( this.toHide ); }, hideThese: function( errors ) { errors.not( this.containers ).text( "" ); this.addWrapper( errors ).hide(); }, valid: function() { return this.size() === 0; }, size: function() { return this.errorList.length; }, focusInvalid: function() { if ( this.settings.focusInvalid ) { try { $( this.findLastActive() || this.errorList.length && this.errorList[ 0 ].element || [] ) .filter( ":visible" ) .focus() // Manually trigger focusin event; without it, focusin handler isn't called, findLastActive won't have anything to find .trigger( "focusin" ); } catch ( e ) { // Ignore IE throwing errors when focusing hidden elements } } }, findLastActive: function() { var lastActive = this.lastActive; return lastActive && $.grep( this.errorList, function( n ) { return n.element.name === lastActive.name; } ).length === 1 && lastActive; }, elements: function() { var validator = this, rulesCache = {}; // Select all valid inputs inside the form (no submit or reset buttons) return $( this.currentForm ) .find( "input, select, textarea, [contenteditable]" ) .not( ":submit, :reset, :image, :disabled" ) .not( this.settings.ignore ) .filter( function() { var name = this.name || $( this ).attr( "name" ); // For contenteditable if ( !name && validator.settings.debug && window.console ) { console.error( "%o has no name assigned", this ); } // Set form expando on contenteditable if ( this.hasAttribute( "contenteditable" ) ) { this.form = $( this ).closest( "form" )[ 0 ]; } // Select only the first element for each name, and only those with rules specified if ( name in rulesCache || !validator.objectLength( $( this ).rules() ) ) { return false; } rulesCache[ name ] = true; return true; } ); }, clean: function( selector ) { return $( selector )[ 0 ]; }, errors: function() { var errorClass = this.settings.errorClass.split( " " ).join( "." ); return $( this.settings.errorElement + "." + errorClass, this.errorContext ); }, resetInternals: function() { this.successList = []; this.errorList = []; this.errorMap = {}; this.toShow = $( [] ); this.toHide = $( [] ); }, reset: function() { this.resetInternals(); this.currentElements = $( [] ); }, prepareForm: function() { this.reset(); this.toHide = this.errors().add( this.containers ); }, prepareElement: function( element ) { this.reset(); this.toHide = this.errorsFor( element ); }, elementValue: function( element ) { var $element = $( element ), type = element.type, val, idx; if ( type === "radio" || type === "checkbox" ) { return this.findByName( element.name ).filter( ":checked" ).val(); } else if ( type === "number" && typeof element.validity !== "undefined" ) { return element.validity.badInput ? "NaN" : $element.val(); } if ( element.hasAttribute( "contenteditable" ) ) { val = $element.text(); } else { val = $element.val(); } if ( type === "file" ) { // Modern browser (chrome & safari) if ( val.substr( 0, 12 ) === "C:\\fakepath\\" ) { return val.substr( 12 ); } // Legacy browsers // Unix-based path idx = val.lastIndexOf( "/" ); if ( idx >= 0 ) { return val.substr( idx + 1 ); } // Windows-based path idx = val.lastIndexOf( "\\" ); if ( idx >= 0 ) { return val.substr( idx + 1 ); } // Just the file name return val; } if ( typeof val === "string" ) { return val.replace( /\r/g, "" ); } return val; }, check: function( element ) { element = this.validationTargetFor( this.clean( element ) ); var rules = $( element ).rules(), rulesCount = $.map( rules, function( n, i ) { return i; } ).length, dependencyMismatch = false, val = this.elementValue( element ), result, method, rule; // If a normalizer is defined for this element, then // call it to retreive the changed value instead // of using the real one. // Note that `this` in the normalizer is `element`. if ( typeof rules.normalizer === "function" ) { val = rules.normalizer.call( element, val ); if ( typeof val !== "string" ) { throw new TypeError( "The normalizer should return a string value." ); } // Delete the normalizer from rules to avoid treating // it as a pre-defined method. delete rules.normalizer; } for ( method in rules ) { rule = { method: method, parameters: rules[ method ] }; try { result = $.validator.methods[ method ].call( this, val, element, rule.parameters ); // If a method indicates that the field is optional and therefore valid, // don't mark it as valid when there are no other rules if ( result === "dependency-mismatch" && rulesCount === 1 ) { dependencyMismatch = true; continue; } dependencyMismatch = false; if ( result === "pending" ) { this.toHide = this.toHide.not( this.errorsFor( element ) ); return; } if ( !result ) { this.formatAndAdd( element, rule ); return false; } } catch ( e ) { if ( this.settings.debug && window.console ) { console.log( "Exception occurred when checking element " + element.id + ", check the '" + rule.method + "' method.", e ); } if ( e instanceof TypeError ) { e.message += ". Exception occurred when checking element " + element.id + ", check the '" + rule.method + "' method."; } throw e; } } if ( dependencyMismatch ) { return; } if ( this.objectLength( rules ) ) { this.successList.push( element ); } return true; }, // Return the custom message for the given element and validation method // specified in the element's HTML5 data attribute // return the generic message if present and no method specific message is present customDataMessage: function( element, method ) { return $( element ).data( "msg" + method.charAt( 0 ).toUpperCase() + method.substring( 1 ).toLowerCase() ) || $( element ).data( "msg" ); }, // Return the custom message for the given element name and validation method customMessage: function( name, method ) { var m = this.settings.messages[ name ]; return m && ( m.constructor === String ? m : m[ method ] ); }, // Return the first defined argument, allowing empty strings findDefined: function() { for ( var i = 0; i < arguments.length; i++ ) { if ( arguments[ i ] !== undefined ) { return arguments[ i ]; } } return undefined; }, // The second parameter 'rule' used to be a string, and extended to an object literal // of the following form: // rule = { // method: "method name", // parameters: "the given method parameters" // } // // The old behavior still supported, kept to maintain backward compatibility with // old code, and will be removed in the next major release. defaultMessage: function( element, rule ) { if ( typeof rule === "string" ) { rule = { method: rule }; } var message = this.findDefined( this.customMessage( element.name, rule.method ), this.customDataMessage( element, rule.method ), // 'title' is never undefined, so handle empty string as undefined !this.settings.ignoreTitle && element.title || undefined, $.validator.messages[ rule.method ], "Warning: No message defined for " + element.name + "" ), theregex = /\$?\{(\d+)\}/g; if ( typeof message === "function" ) { message = message.call( this, rule.parameters, element ); } else if ( theregex.test( message ) ) { message = $.validator.format( message.replace( theregex, "{$1}" ), rule.parameters ); } return message; }, formatAndAdd: function( element, rule ) { var message = this.defaultMessage( element, rule ); this.errorList.push( { message: message, element: element, method: rule.method } ); this.errorMap[ element.name ] = message; this.submitted[ element.name ] = message; }, addWrapper: function( toToggle ) { if ( this.settings.wrapper ) { toToggle = toToggle.add( toToggle.parent( this.settings.wrapper ) ); } return toToggle; }, defaultShowErrors: function() { var i, elements, error; for ( i = 0; this.errorList[ i ]; i++ ) { error = this.errorList[ i ]; if ( this.settings.highlight ) { this.settings.highlight.call( this, error.element, this.settings.errorClass, this.settings.validClass ); } this.showLabel( error.element, error.message ); } if ( this.errorList.length ) { this.toShow = this.toShow.add( this.containers ); } if ( this.settings.success ) { for ( i = 0; this.successList[ i ]; i++ ) { this.showLabel( this.successList[ i ] ); } } if ( this.settings.unhighlight ) { for ( i = 0, elements = this.validElements(); elements[ i ]; i++ ) { this.settings.unhighlight.call( this, elements[ i ], this.settings.errorClass, this.settings.validClass ); } } this.toHide = this.toHide.not( this.toShow ); this.hideErrors(); this.addWrapper( this.toShow ).show(); }, validElements: function() { return this.currentElements.not( this.invalidElements() ); }, invalidElements: function() { return $( this.errorList ).map( function() { return this.element; } ); }, showLabel: function( element, message ) { var place, group, errorID, v, error = this.errorsFor( element ), elementID = this.idOrName( element ), describedBy = $( element ).attr( "aria-describedby" ); if ( error.length ) { // Refresh error/success class error.removeClass( this.settings.validClass ).addClass( this.settings.errorClass ); // Replace message on existing label error.html( message ); } else { // Create error element error = $( "<" + this.settings.errorElement + ">" ) .attr( "id", elementID + "-error" ) .addClass( this.settings.errorClass ) .html( message || "" ); // Maintain reference to the element to be placed into the DOM place = error; if ( this.settings.wrapper ) { // Make sure the element is visible, even in IE // actually showing the wrapped element is handled elsewhere place = error.hide().show().wrap( "<" + this.settings.wrapper + "/>" ).parent(); } if ( this.labelContainer.length ) { this.labelContainer.append( place ); } else if ( this.settings.errorPlacement ) { this.settings.errorPlacement.call( this, place, $( element ) ); } else { place.insertAfter( element ); } // Link error back to the element if ( error.is( "label" ) ) { // If the error is a label, then associate using 'for' error.attr( "for", elementID ); // If the element is not a child of an associated label, then it's necessary // to explicitly apply aria-describedby } else if ( error.parents( "label[for='" + this.escapeCssMeta( elementID ) + "']" ).length === 0 ) { errorID = error.attr( "id" ); // Respect existing non-error aria-describedby if ( !describedBy ) { describedBy = errorID; } else if ( !describedBy.match( new RegExp( "\\b" + this.escapeCssMeta( errorID ) + "\\b" ) ) ) { // Add to end of list if not already present describedBy += " " + errorID; } $( element ).attr( "aria-describedby", describedBy ); // If this element is grouped, then assign to all elements in the same group group = this.groups[ element.name ]; if ( group ) { v = this; $.each( v.groups, function( name, testgroup ) { if ( testgroup === group ) { $( "[name='" + v.escapeCssMeta( name ) + "']", v.currentForm ) .attr( "aria-describedby", error.attr( "id" ) ); } } ); } } } if ( !message && this.settings.success ) { error.text( "" ); if ( typeof this.settings.success === "string" ) { error.addClass( this.settings.success ); } else { this.settings.success( error, element ); } } this.toShow = this.toShow.add( error ); }, errorsFor: function( element ) { var name = this.escapeCssMeta( this.idOrName( element ) ), describer = $( element ).attr( "aria-describedby" ), selector = "label[for='" + name + "'], label[for='" + name + "'] *"; // 'aria-describedby' should directly reference the error element if ( describer ) { selector = selector + ", #" + this.escapeCssMeta( describer ) .replace( /\s+/g, ", #" ); } return this .errors() .filter( selector ); }, // See https://api.jquery.com/category/selectors/, for CSS // meta-characters that should be escaped in order to be used with JQuery // as a literal part of a name/id or any selector. escapeCssMeta: function( string ) { return string.replace( /([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g, "\\$1" ); }, idOrName: function( element ) { return this.groups[ element.name ] || ( this.checkable( element ) ? element.name : element.id || element.name ); }, validationTargetFor: function( element ) { // If radio/checkbox, validate first element in group instead if ( this.checkable( element ) ) { element = this.findByName( element.name ); } // Always apply ignore filter return $( element ).not( this.settings.ignore )[ 0 ]; }, checkable: function( element ) { return ( /radio|checkbox/i ).test( element.type ); }, findByName: function( name ) { return $( this.currentForm ).find( "[name='" + this.escapeCssMeta( name ) + "']" ); }, getLength: function( value, element ) { switch ( element.nodeName.toLowerCase() ) { case "select": return $( "option:selected", element ).length; case "input": if ( this.checkable( element ) ) { return this.findByName( element.name ).filter( ":checked" ).length; } } return value.length; }, depend: function( param, element ) { return this.dependTypes[ typeof param ] ? this.dependTypes[ typeof param ]( param, element ) : true; }, dependTypes: { "boolean": function( param ) { return param; }, "string": function( param, element ) { return !!$( param, element.form ).length; }, "function": function( param, element ) { return param( element ); } }, optional: function( element ) { var val = this.elementValue( element ); return !$.validator.methods.required.call( this, val, element ) && "dependency-mismatch"; }, startRequest: function( element ) { if ( !this.pending[ element.name ] ) { this.pendingRequest++; $( element ).addClass( this.settings.pendingClass ); this.pending[ element.name ] = true; } }, stopRequest: function( element, valid ) { this.pendingRequest--; // Sometimes synchronization fails, make sure pendingRequest is never < 0 if ( this.pendingRequest < 0 ) { this.pendingRequest = 0; } delete this.pending[ element.name ]; $( element ).removeClass( this.settings.pendingClass ); if ( valid && this.pendingRequest === 0 && this.formSubmitted && this.form() ) { $( this.currentForm ).submit(); this.formSubmitted = false; } else if ( !valid && this.pendingRequest === 0 && this.formSubmitted ) { $( this.currentForm ).triggerHandler( "invalid-form", [ this ] ); this.formSubmitted = false; } }, previousValue: function( element, method ) { method = typeof method === "string" && method || "remote"; return $.data( element, "previousValue" ) || $.data( element, "previousValue", { old: null, valid: true, message: this.defaultMessage( element, { method: method } ) } ); }, // Cleans up all forms and elements, removes validator-specific events destroy: function() { this.resetForm(); $( this.currentForm ) .off( ".validate" ) .removeData( "validator" ) .find( ".validate-equalTo-blur" ) .off( ".validate-equalTo" ) .removeClass( "validate-equalTo-blur" ); } }, classRuleSettings: { required: { required: true }, email: { email: true }, url: { url: true }, date: { date: true }, dateISO: { dateISO: true }, number: { number: true }, digits: { digits: true }, creditcard: { creditcard: true } }, addClassRules: function( className, rules ) { if ( className.constructor === String ) { this.classRuleSettings[ className ] = rules; } else { $.extend( this.classRuleSettings, className ); } }, classRules: function( element ) { var rules = {}, classes = $( element ).attr( "class" ); if ( classes ) { $.each( classes.split( " " ), function() { if ( this in $.validator.classRuleSettings ) { $.extend( rules, $.validator.classRuleSettings[ this ] ); } } ); } return rules; }, normalizeAttributeRule: function( rules, type, method, value ) { // Convert the value to a number for number inputs, and for text for backwards compability // allows type="date" and others to be compared as strings if ( /min|max|step/.test( method ) && ( type === null || /number|range|text/.test( type ) ) ) { value = Number( value ); // Support Opera Mini, which returns NaN for undefined minlength if ( isNaN( value ) ) { value = undefined; } } if ( value || value === 0 ) { rules[ method ] = value; } else if ( type === method && type !== "range" ) { // Exception: the jquery validate 'range' method // does not test for the html5 'range' type rules[ method ] = true; } }, attributeRules: function( element ) { var rules = {}, $element = $( element ), type = element.getAttribute( "type" ), method, value; for ( method in $.validator.methods ) { // Support for in both html5 and older browsers if ( method === "required" ) { value = element.getAttribute( method ); // Some browsers return an empty string for the required attribute // and non-HTML5 browsers might have required="" markup if ( value === "" ) { value = true; } // Force non-HTML5 browsers to return bool value = !!value; } else { value = $element.attr( method ); } this.normalizeAttributeRule( rules, type, method, value ); } // 'maxlength' may be returned as -1, 2147483647 ( IE ) and 524288 ( safari ) for text inputs if ( rules.maxlength && /-1|2147483647|524288/.test( rules.maxlength ) ) { delete rules.maxlength; } return rules; }, dataRules: function( element ) { var rules = {}, $element = $( element ), type = element.getAttribute( "type" ), method, value; for ( method in $.validator.methods ) { value = $element.data( "rule" + method.charAt( 0 ).toUpperCase() + method.substring( 1 ).toLowerCase() ); this.normalizeAttributeRule( rules, type, method, value ); } return rules; }, staticRules: function( element ) { var rules = {}, validator = $.data( element.form, "validator" ); if ( validator.settings.rules ) { rules = $.validator.normalizeRule( validator.settings.rules[ element.name ] ) || {}; } return rules; }, normalizeRules: function( rules, element ) { // Handle dependency check $.each( rules, function( prop, val ) { // Ignore rule when param is explicitly false, eg. required:false if ( val === false ) { delete rules[ prop ]; return; } if ( val.param || val.depends ) { var keepRule = true; switch ( typeof val.depends ) { case "string": keepRule = !!$( val.depends, element.form ).length; break; case "function": keepRule = val.depends.call( element, element ); break; } if ( keepRule ) { rules[ prop ] = val.param !== undefined ? val.param : true; } else { $.data( element.form, "validator" ).resetElements( $( element ) ); delete rules[ prop ]; } } } ); // Evaluate parameters $.each( rules, function( rule, parameter ) { rules[ rule ] = $.isFunction( parameter ) && rule !== "normalizer" ? parameter( element ) : parameter; } ); // Clean number parameters $.each( [ "minlength", "maxlength" ], function() { if ( rules[ this ] ) { rules[ this ] = Number( rules[ this ] ); } } ); $.each( [ "rangelength", "range" ], function() { var parts; if ( rules[ this ] ) { if ( $.isArray( rules[ this ] ) ) { rules[ this ] = [ Number( rules[ this ][ 0 ] ), Number( rules[ this ][ 1 ] ) ]; } else if ( typeof rules[ this ] === "string" ) { parts = rules[ this ].replace( /[\[\]]/g, "" ).split( /[\s,]+/ ); rules[ this ] = [ Number( parts[ 0 ] ), Number( parts[ 1 ] ) ]; } } } ); if ( $.validator.autoCreateRanges ) { // Auto-create ranges if ( rules.min != null && rules.max != null ) { rules.range = [ rules.min, rules.max ]; delete rules.min; delete rules.max; } if ( rules.minlength != null && rules.maxlength != null ) { rules.rangelength = [ rules.minlength, rules.maxlength ]; delete rules.minlength; delete rules.maxlength; } } return rules; }, // Converts a simple string to a {string: true} rule, e.g., "required" to {required:true} normalizeRule: function( data ) { if ( typeof data === "string" ) { var transformed = {}; $.each( data.split( /\s/ ), function() { transformed[ this ] = true; } ); data = transformed; } return data; }, // http://jqueryvalidation.org/jQuery.validator.addMethod/ addMethod: function( name, method, message ) { $.validator.methods[ name ] = method; $.validator.messages[ name ] = message !== undefined ? message : $.validator.messages[ name ]; if ( method.length < 3 ) { $.validator.addClassRules( name, $.validator.normalizeRule( name ) ); } }, // http://jqueryvalidation.org/jQuery.validator.methods/ methods: { // http://jqueryvalidation.org/required-method/ required: function( value, element, param ) { // Check if dependency is met if ( !this.depend( param, element ) ) { return "dependency-mismatch"; } if ( element.nodeName.toLowerCase() === "select" ) { // Could be an array for select-multiple or a string, both are fine this way var val = $( element ).val(); return val && val.length > 0; } if ( this.checkable( element ) ) { return this.getLength( value, element ) > 0; } return value.length > 0; }, // http://jqueryvalidation.org/email-method/ email: function( value, element ) { // From https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address // Retrieved 2014-01-14 // If you have a problem with this implementation, report a bug against the above spec // Or use custom methods to implement your own email validation return this.optional( element ) || /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test( value ); }, // http://jqueryvalidation.org/url-method/ url: function( value, element ) { // Copyright (c) 2010-2013 Diego Perini, MIT licensed // https://gist.github.com/dperini/729294 // see also https://mathiasbynens.be/demo/url-regex // modified to allow protocol-relative URLs return this.optional( element ) || /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test( value ); }, // http://jqueryvalidation.org/date-method/ date: function( value, element ) { return this.optional( element ) || !/Invalid|NaN/.test( new Date( value ).toString() ); }, // http://jqueryvalidation.org/dateISO-method/ dateISO: function( value, element ) { return this.optional( element ) || /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test( value ); }, // http://jqueryvalidation.org/number-method/ number: function( value, element ) { return this.optional( element ) || /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test( value ); }, // http://jqueryvalidation.org/digits-method/ digits: function( value, element ) { return this.optional( element ) || /^\d+$/.test( value ); }, // http://jqueryvalidation.org/minlength-method/ minlength: function( value, element, param ) { var length = $.isArray( value ) ? value.length : this.getLength( value, element ); return this.optional( element ) || length >= param; }, // http://jqueryvalidation.org/maxlength-method/ maxlength: function( value, element, param ) { var length = $.isArray( value ) ? value.length : this.getLength( value, element ); return this.optional( element ) || length <= param; }, // http://jqueryvalidation.org/rangelength-method/ rangelength: function( value, element, param ) { var length = $.isArray( value ) ? value.length : this.getLength( value, element ); return this.optional( element ) || ( length >= param[ 0 ] && length <= param[ 1 ] ); }, // http://jqueryvalidation.org/min-method/ min: function( value, element, param ) { return this.optional( element ) || value >= param; }, // http://jqueryvalidation.org/max-method/ max: function( value, element, param ) { return this.optional( element ) || value <= param; }, // http://jqueryvalidation.org/range-method/ range: function( value, element, param ) { return this.optional( element ) || ( value >= param[ 0 ] && value <= param[ 1 ] ); }, // http://jqueryvalidation.org/step-method/ step: function( value, element, param ) { var type = $( element ).attr( "type" ), errorMessage = "Step attribute on input type " + type + " is not supported.", supportedTypes = [ "text", "number", "range" ], re = new RegExp( "\\b" + type + "\\b" ), notSupported = type && !re.test( supportedTypes.join() ), decimalPlaces = function( num ) { var match = ( "" + num ).match( /(?:\.(\d+))?$/ ); if ( !match ) { return 0; } // Number of digits right of decimal point. return match[ 1 ] ? match[ 1 ].length : 0; }, toInt = function( num ) { return Math.round( num * Math.pow( 10, decimals ) ); }, valid = true, decimals; // Works only for text, number and range input types // TODO find a way to support input types date, datetime, datetime-local, month, time and week if ( notSupported ) { throw new Error( errorMessage ); } decimals = decimalPlaces( param ); // Value can't have too many decimals if ( decimalPlaces( value ) > decimals || toInt( value ) % toInt( param ) !== 0 ) { valid = false; } return this.optional( element ) || valid; }, // http://jqueryvalidation.org/equalTo-method/ equalTo: function( value, element, param ) { // Bind to the blur event of the target in order to revalidate whenever the target field is updated var target = $( param ); if ( this.settings.onfocusout && target.not( ".validate-equalTo-blur" ).length ) { target.addClass( "validate-equalTo-blur" ).on( "blur.validate-equalTo", function() { $( element ).valid(); } ); } return value === target.val(); }, // http://jqueryvalidation.org/remote-method/ remote: function( value, element, param, method ) { if ( this.optional( element ) ) { return "dependency-mismatch"; } method = typeof method === "string" && method || "remote"; var previous = this.previousValue( element, method ), validator, data, optionDataString; if ( !this.settings.messages[ element.name ] ) { this.settings.messages[ element.name ] = {}; } previous.originalMessage = previous.originalMessage || this.settings.messages[ element.name ][ method ]; this.settings.messages[ element.name ][ method ] = previous.message; param = typeof param === "string" && { url: param } || param; optionDataString = $.param( $.extend( { data: value }, param.data ) ); if ( previous.old === optionDataString ) { return previous.valid; } previous.old = optionDataString; validator = this; this.startRequest( element ); data = {}; data[ element.name ] = value; $.ajax( $.extend( true, { mode: "abort", port: "validate" + element.name, dataType: "json", data: data, context: validator.currentForm, success: function( response ) { var valid = response === true || response === "true", errors, message, submitted; validator.settings.messages[ element.name ][ method ] = previous.originalMessage; if ( valid ) { submitted = validator.formSubmitted; validator.resetInternals(); validator.toHide = validator.errorsFor( element ); validator.formSubmitted = submitted; validator.successList.push( element ); validator.invalid[ element.name ] = false; validator.showErrors(); } else { errors = {}; message = response || validator.defaultMessage( element, { method: method, parameters: value } ); errors[ element.name ] = previous.message = message; validator.invalid[ element.name ] = true; validator.showErrors( errors ); } previous.valid = valid; validator.stopRequest( element, valid ); } }, param ) ); return "pending"; } } } ); // Ajax mode: abort // usage: $.ajax({ mode: "abort"[, port: "uniqueport"]}); // if mode:"abort" is used, the previous request on that port (port can be undefined) is aborted via XMLHttpRequest.abort() var pendingRequests = {}, ajax; // Use a prefilter if available (1.5+) if ( $.ajaxPrefilter ) { $.ajaxPrefilter( function( settings, _, xhr ) { var port = settings.port; if ( settings.mode === "abort" ) { if ( pendingRequests[ port ] ) { pendingRequests[ port ].abort(); } pendingRequests[ port ] = xhr; } } ); } else { // Proxy ajax ajax = $.ajax; $.ajax = function( settings ) { var mode = ( "mode" in settings ? settings : $.ajaxSettings ).mode, port = ( "port" in settings ? settings : $.ajaxSettings ).port; if ( mode === "abort" ) { if ( pendingRequests[ port ] ) { pendingRequests[ port ].abort(); } pendingRequests[ port ] = ajax.apply( this, arguments ); return pendingRequests[ port ]; } return ajax.apply( this, arguments ); }; } return $; }));;/*! * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser * Author: Chupurnov (https://xdsoft.net/) * Version: v3.6.1 * Url: https://xdsoft.net/jodit/ * License(s): MIT */ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,(function(){return(()=>{var e=[,(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o(3),o(4),Array.from||(Array.from=function(e){if(e instanceof Set){var t=[];return e.forEach((function(e){return t.push(e)})),t}return[].slice.call(e)}),Array.prototype.includes||(Array.prototype.includes=function(e){return this.indexOf(e)>-1}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(e),r=1;arguments.length>r;r++){var n=arguments[r];if(null!=n)for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},writable:!0,configurable:!0}),Array.prototype.find||(Array.prototype.find=function(e){return this.indexOf(e)>-1?e:void 0})},()=>{"use strict";"document"in window.self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(e){if("Element"in e){var t="classList",o=e.Element.prototype,r=Object,n=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},i=Array.prototype.indexOf||function(e){for(var t=0,o=this.length;o>t;t++)if(t in this&&this[t]===e)return t;return-1},a=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},s=function(e,t){if(""===t)throw new a("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new a("INVALID_CHARACTER_ERR","String contains an invalid character");return i.call(e,t)},l=function(e){for(var t=n.call(e.getAttribute("class")||""),o=t?t.split(/\s+/):[],r=0,i=o.length;i>r;r++)this.push(o[r]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},c=l.prototype=[],u=function(){return new l(this)};if(a.prototype=Error.prototype,c.item=function(e){return this[e]||null},c.contains=function(e){return-1!==s(this,e+="")},c.add=function(){var e,t=arguments,o=0,r=t.length,n=!1;do{-1===s(this,e=t[o]+"")&&(this.push(e),n=!0)}while(++oo;o++)t.call(this,e=arguments[o])}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:o.call(this,e)}}e=null}())},(e,t,o)=>{"use strict";e.exports=o(5).polyfill()},function(e,t,o){"use strict";e.exports=function(){function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,n=void 0,i=void 0,a=function(e,t){f[r]=e,f[r+1]=t,2===(r+=2)&&(i?i(h):b())},s="undefined"!=typeof window?window:void 0,l=s||{},c=l.MutationObserver||l.WebKitMutationObserver,u="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var e=setTimeout;return function(){return e(h,1)}}var f=new Array(1e3);function h(){for(var e=0;r>e;e+=2)(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0;r=0}var m,v,g,y,b=void 0;function _(e,t){var o=this,r=new this.constructor(C);void 0===r[S]&&M(r);var n=o._state;if(n){var i=arguments[n-1];a((function(){return z(n,r,i,o._result)}))}else P(o,r,e,t);return r}function w(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(C);return E(t,e),t}b=u?function(){return process.nextTick(h)}:c?(v=0,g=new c(h),y=document.createTextNode(""),g.observe(y,{characterData:!0}),function(){y.data=v=++v%2}):d?((m=new MessageChannel).port1.onmessage=h,function(){return m.port2.postMessage(0)}):void 0===s?function(){try{var e=Function("return this")().require("vertx");return void 0!==(n=e.runOnLoop||e.runOnContext)?function(){n(h)}:p()}catch(e){return p()}}():p();var S=Math.random().toString(36).substring(2);function C(){}var k=void 0;function j(t,o,r){o.constructor===t.constructor&&r===_&&o.constructor.resolve===w?function(e,t){1===t._state?x(e,t._result):2===t._state?T(e,t._result):P(t,void 0,(function(t){return E(e,t)}),(function(t){return T(e,t)}))}(t,o):void 0===r?x(t,o):e(r)?function(e,t,o){a((function(e){var r=!1,n=function(o,n,i,a){try{o.call(n,(function(o){r||(r=!0,t!==o?E(e,o):x(e,o))}),(function(t){r||(r=!0,T(e,t))}))}catch(e){return e}}(o,t);!r&&n&&(r=!0,T(e,n))}),e)}(t,o,r):x(t,o)}function E(e,t){if(e===t)T(e,new TypeError("You cannot resolve a promise with itself"));else if(n=typeof(r=t),null===r||"object"!==n&&"function"!==n)x(e,t);else{var o=void 0;try{o=t.then}catch(t){return void T(e,t)}j(e,t,o)}var r,n}function I(e){e._onerror&&e._onerror(e._result),D(e)}function x(e,t){e._state===k&&(e._result=t,e._state=1,0!==e._subscribers.length&&a(D,e))}function T(e,t){e._state===k&&(e._state=2,e._result=t,a(I,e))}function P(e,t,o,r){var n=e._subscribers,i=n.length;e._onerror=null,n[i]=t,n[i+1]=o,n[i+2]=r,0===i&&e._state&&a(D,e)}function D(e){var t=e._subscribers,o=e._state;if(0!==t.length){for(var r=void 0,n=void 0,i=e._result,a=0;t.length>a;a+=3)n=t[a+o],(r=t[a])?z(o,r,n,i):n(i);e._subscribers.length=0}}function z(t,o,r,n){var i=e(r),a=void 0,s=void 0,l=!0;if(i){try{a=r(n)}catch(e){l=!1,s=e}if(o===a)return void T(o,new TypeError("A promises callback cannot return that same promise."))}else a=n;o._state!==k||(i&&l?E(o,a):!1===l?T(o,s):1===t?x(o,a):2===t&&T(o,a))}var A=0;function M(e){e[S]=A++,e._state=void 0,e._result=void 0,e._subscribers=[]}var L=function(){function e(e,o){this._instanceConstructor=e,this.promise=new e(C),this.promise[S]||M(this.promise),t(o)?(this.length=o.length,this._remaining=o.length,this._result=new Array(this.length),0===this.length?x(this.promise,this._result):(this.length=this.length||0,this._enumerate(o),0===this._remaining&&x(this.promise,this._result))):T(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===k&&e.length>t;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var o=this._instanceConstructor,r=o.resolve;if(r===w){var n=void 0,i=void 0,a=!1;try{n=e.then}catch(e){a=!0,i=e}if(n===_&&e._state!==k)this._settledAt(e._state,t,e._result);else if("function"!=typeof n)this._remaining--,this._result[t]=e;else if(o===O){var s=new o(C);a?T(s,i):j(s,e,n),this._willSettleAt(s,t)}else this._willSettleAt(new o((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,o){var r=this.promise;r._state===k&&(this._remaining--,2===e?T(r,o):this._result[t]=o),0===this._remaining&&x(r,this._result)},e.prototype._willSettleAt=function(e,t){var o=this;P(e,void 0,(function(e){return o._settledAt(1,t,e)}),(function(e){return o._settledAt(2,t,e)}))},e}(),O=function(){function t(e){this[S]=A++,this._result=this._state=void 0,this._subscribers=[],C!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){E(e,t)}),(function(t){T(e,t)}))}catch(t){T(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var o=this,r=o.constructor;return e(t)?o.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):o.then(t,t)},t}();return O.prototype.then=_,O.all=function(e){return new L(this,e).promise},O.race=function(e){var o=this;return t(e)?new o((function(t,r){for(var n=e.length,i=0;n>i;i++)o.resolve(e[i]).then(t,r)})):new o((function(e,t){return t(new TypeError("You must pass an array to race."))}))},O.resolve=w,O.reject=function(e){var t=new this(C);return T(t,e),t},O._setScheduler=function(e){i=e},O._setAsap=function(e){a=e},O._asap=a,O.polyfill=function(){var e=void 0;if(void 0!==o.g)e=o.g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=O},O.Promise=O,O}()},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Jodit=void 0;var r=o(7),n=o(8),i=o(9),a=o(10),s=o(22),l=o(170),c=o(167),u=o(33),d=o(100),Jodit=function(e){function Jodit(t,o){var r=e.call(this,o,!0)||this;r.isJodit=!0,r.__defaultStyleDisplayKey="data-jodit-default-style-display",r.__defaultClassesKey="data-jodit-default-classes",r.commands={},r.__selectionLocked=null,r.__wasReadOnly=!1,r.createInside=new a.Create((function(){return r.ed}),r.o.createAttributes),r.editorIsActive=!1,r.__mode=i.MODE_WYSIWYG,r.__callChangeCount=0,r.elementToPlace=new Map;try{s.resolveElement(t,r.o.shadowRoot||r.od)}catch(e){throw r.destruct(),e}r.setStatus(a.STATUSES.beforeInit),r.id=s.attr(s.resolveElement(t,r.o.shadowRoot||r.od),"id")||(new Date).getTime().toString(),u.instances[r.id]=r,r.storage=l.Storage.makeStorage(!0,r.id),r.attachEvents(r.o),r.e.on(r.ow,"resize",(function(){r.e&&r.e.fire("resize")})),r.e.on("prepareWYSIWYGEditor",r.prepareWYSIWYGEditor),r.selection=new a.Select(r);var n=r.beforeInitHook();return s.callPromise(n,(function(){r.e.fire("beforeInit",r);var e=u.pluginSystem.init(r);s.callPromise(e,(function(){r.e.fire("afterPluginSystemInit",r),r.e.on("changePlace",(function(){r.setReadOnly(r.o.readonly),r.setDisabled(r.o.disabled)})),r.places.length=0;var e=r.addPlace(t,o);u.instances[r.id]=r,s.callPromise(e,(function(){r.e&&r.e.fire("afterInit",r),r.afterInitHook(),r.setStatus(a.STATUSES.ready),r.e.fire("afterConstructor",r)}))}))})),r}return r.__extends(Jodit,e),Jodit.prototype.className=function(){return"Jodit"},Object.defineProperty(Jodit.prototype,"text",{get:function(){if(this.editor)return this.editor.innerText||"";var e=this.createInside.div();return e.innerHTML=this.getElementValue(),e.innerText||""},enumerable:!1,configurable:!0}),Object.defineProperty(Jodit.prototype,"value",{get:function(){return this.getEditorValue()},set:function(e){this.setEditorValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(Jodit.prototype,"defaultTimeout",{get:function(){return this.options&&this.o.observer?this.o.observer.timeout:n.Config.defaultOptions.observer.timeout},enumerable:!1,configurable:!0}),Jodit.Array=function(e){return s.JoditArray(e)},Jodit.Object=function(e){return s.JoditObject(e)},Jodit.atom=function(e){return s.markAsAtomic(e)},Jodit.make=function(e,t){return new Jodit(e,t)},Object.defineProperty(Jodit,"defaultOptions",{get:function(){return n.Config.defaultOptions},enumerable:!1,configurable:!0}),Jodit.prototype.setPlaceField=function(e,t){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[e]=t},Object.defineProperty(Jodit.prototype,"element",{get:function(){return this.currentPlace.element},enumerable:!1,configurable:!0}),Object.defineProperty(Jodit.prototype,"editor",{get:function(){return this.currentPlace.editor},set:function(e){this.setPlaceField("editor",e)},enumerable:!1,configurable:!0}),Object.defineProperty(Jodit.prototype,"container",{get:function(){return this.currentPlace.container},set:function(e){this.setPlaceField("container",e)},enumerable:!1,configurable:!0}),Object.defineProperty(Jodit.prototype,"workplace",{get:function(){return this.currentPlace.workplace},enumerable:!1,configurable:!0}),Object.defineProperty(Jodit.prototype,"statusbar",{get:function(){return this.currentPlace.statusbar},enumerable:!1,configurable:!0}),Object.defineProperty(Jodit.prototype,"iframe",{get:function(){return this.currentPlace.iframe},set:function(e){this.setPlaceField("iframe",e)},enumerable:!1,configurable:!0}),Object.defineProperty(Jodit.prototype,"observer",{get:function(){return this.currentPlace.observer},enumerable:!1,configurable:!0}),Object.defineProperty(Jodit.prototype,"editorWindow",{get:function(){return this.currentPlace.editorWindow},set:function(e){this.setPlaceField("editorWindow",e)},enumerable:!1,configurable:!0}),Object.defineProperty(Jodit.prototype,"ew",{get:function(){return this.editorWindow},enumerable:!1,configurable:!0}),Object.defineProperty(Jodit.prototype,"editorDocument",{get:function(){return this.currentPlace.editorWindow.document},enumerable:!1,configurable:!0}),Object.defineProperty(Jodit.prototype,"ed",{get:function(){return this.editorDocument},enumerable:!1,configurable:!0}),Object.defineProperty(Jodit.prototype,"options",{get:function(){return this.currentPlace.options},set:function(e){this.setPlaceField("options",e)},enumerable:!1,configurable:!0}),Object.defineProperty(Jodit.prototype,"s",{get:function(){return this.selection},enumerable:!1,configurable:!0}),Object.defineProperty(Jodit.prototype,"uploader",{get:function(){return this.getInstance("Uploader",this.o.uploader)},enumerable:!1,configurable:!0}),Object.defineProperty(Jodit.prototype,"filebrowser",{get:function(){var e=this,t=s.ConfigProto({defaultTimeout:e.defaultTimeout,uploader:e.o.uploader,language:e.o.language,license:e.o.license,theme:e.o.theme,defaultCallback:function(t){t.files&&t.files.length&&t.files.forEach((function(o,r){var n=t.baseurl+o;t.isImages&&t.isImages[r]?e.s.insertImage(n,null,e.o.imageDefaultWidth):e.s.insertNode(e.createInside.fromHTML(""+n+""))}))}},this.o.filebrowser);return e.getInstance("FileBrowser",t)},enumerable:!1,configurable:!0}),Object.defineProperty(Jodit.prototype,"mode",{get:function(){return this.__mode},set:function(e){this.setMode(e)},enumerable:!1,configurable:!0}),Jodit.prototype.getNativeEditorValue=function(){var e=this.e.fire("beforeGetNativeEditorValue");return s.isString(e)?e:this.editor?this.editor.innerHTML:this.getElementValue()},Jodit.prototype.setNativeEditorValue=function(e){this.e.fire("beforeSetNativeEditorValue",e)||this.editor&&(this.editor.innerHTML=e)},Jodit.prototype.getEditorValue=function(e){var t;if(void 0===e&&(e=!0),void 0!==(t=this.e.fire("beforeGetValueFromEditor")))return t;t=this.getNativeEditorValue().replace(i.INVISIBLE_SPACE_REG_EXP(),""),e&&(t=t.replace(/]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"
"===t&&(t="");var o={value:t};return this.e.fire("afterGetValueFromEditor",o),o.value},Jodit.prototype.setEditorValue=function(e){var t=this.e.fire("beforeSetValueToEditor",e);if(!1!==t)if(s.isString(t)&&(e=t),this.editor){if(!s.isString(e)&&!s.isVoid(e))throw s.error("value must be string");void 0!==e&&this.getNativeEditorValue()!==e&&this.setNativeEditorValue(e),this.e.fire("postProcessSetEditorValue");var o=this.getElementValue(),r=this.getEditorValue();if(o!==r&&i.SAFE_COUNT_CHANGE_CALL>this.__callChangeCount){this.setElementValue(r),this.__callChangeCount+=1;try{this.observer.upTick(),this.e.fire("change",r,o),this.e.fire(this.observer,"change",r,o)}finally{this.__callChangeCount=0}}}else void 0!==e&&this.setElementValue(e)},Jodit.prototype.getElementValue=function(){return void 0!==this.element.value?this.element.value:this.element.innerHTML},Jodit.prototype.setElementValue=function(e){if(!s.isString(e)&&void 0!==e)throw s.error("value must be string");void 0!==e?this.element!==this.container&&(void 0!==this.element.value?this.element.value=e:this.element.innerHTML=e):e=this.getElementValue(),e!==this.getEditorValue()&&this.setEditorValue(e)},Jodit.prototype.registerCommand=function(e,t,o){var r=e.toLowerCase();if(void 0===this.commands[r]&&(this.commands[r]=[]),this.commands[r].push(t),!s.isFunction(t)){var n=this.o.commandToHotkeys[r]||this.o.commandToHotkeys[e]||t.hotkeys;n&&this.registerHotkeyToCommand(n,r,null==o?void 0:o.stopPropagation)}return this},Jodit.prototype.registerHotkeyToCommand=function(e,t,o){var r=this;void 0===o&&(o=!0);var n=s.asArray(e).map(s.normalizeKeyAliases).map((function(e){return e+".hotkey"})).join(" ");this.e.off(n).on(n,(function(e,n){return n.shouldStop=null==o||o,r.execCommand(t)}))},Jodit.prototype.execCommand=function(e,t,o){if(void 0===t&&(t=!1),void 0===o&&(o=null),!this.o.readonly||"selectall"===e){var r;if(e=e.toLowerCase(),!1!==(r=this.e.fire("beforeCommand",e,t,o))&&(r=this.execCustomCommands(e,t,o)),!1!==r)if(this.s.focus(),"selectall"===e)this.s.select(this.editor,!0);else try{r=this.ed.execCommand(e,t,o)}catch(e){}return this.e.fire("afterCommand",e,t,o),this.setEditorValue(),r}},Jodit.prototype.execCustomCommands=function(e,t,o){var r,n;if(void 0===t&&(t=!1),void 0===o&&(o=null),e=e.toLowerCase(),void 0!==this.commands[e]){for(var i,a=0;this.commands[e].length>a;a+=1)void 0!==(n=(s.isFunction(r=this.commands[e][a])?r:r.exec).call(this,e,t,o))&&(i=n);return i}},Jodit.prototype.lock=function(t){return void 0===t&&(t="any"),!!e.prototype.lock.call(this,t)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.editor.classList.add("jodit_disabled"),this.e.fire("lock",!0),!0)},Jodit.prototype.unlock=function(){return!!e.prototype.unlock.call(this)&&(this.editor.classList.remove("jodit_disabled"),this.__selectionLocked&&this.s.restore(this.__selectionLocked),this.e.fire("lock",!1),!0)},Jodit.prototype.getMode=function(){return this.mode},Jodit.prototype.isEditorMode=function(){return this.getRealMode()===i.MODE_WYSIWYG},Jodit.prototype.getRealMode=function(){if(this.getMode()!==i.MODE_SPLIT)return this.getMode();var e=this.od.activeElement;return e&&(e===this.iframe||a.Dom.isOrContains(this.editor,e)||a.Dom.isOrContains(this.toolbar.container,e))?i.MODE_WYSIWYG:i.MODE_SOURCE},Jodit.prototype.setMode=function(e){var t=this,o=this.getMode(),r={mode:parseInt(e.toString(),10)},n=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",r)&&(this.__mode=[i.MODE_SOURCE,i.MODE_WYSIWYG,i.MODE_SPLIT].includes(r.mode)?r.mode:i.MODE_WYSIWYG,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),n.forEach((function(e){t.container.classList.remove(e)})),this.container.classList.add(n[this.mode-1]),o!==this.getMode()&&this.e.fire("afterSetMode"))},Jodit.prototype.toggleMode=function(){var e=this.getMode();[i.MODE_SOURCE,i.MODE_WYSIWYG,this.o.useSplitMode?i.MODE_SPLIT:9].includes(e+1)?e+=1:e=i.MODE_WYSIWYG,this.setMode(e)},Jodit.prototype.setDisabled=function(e){this.o.disabled=e;var t=this.__wasReadOnly;this.setReadOnly(e||t),this.__wasReadOnly=t,this.editor&&(this.editor.setAttribute("aria-disabled",e.toString()),this.container.classList.toggle("jodit_disabled",e),this.e.fire("disabled",e))},Jodit.prototype.getDisabled=function(){return this.o.disabled},Jodit.prototype.setReadOnly=function(e){this.__wasReadOnly!==e&&(this.__wasReadOnly=e,this.o.readonly=e,e?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.e&&this.e.fire("readonly",e))},Jodit.prototype.getReadOnly=function(){return this.o.readonly},Jodit.prototype.beforeInitHook=function(){},Jodit.prototype.afterInitHook=function(){},Jodit.prototype.initOptions=function(e){this.options=s.ConfigProto(e||{},n.Config.defaultOptions)},Jodit.prototype.initOwners=function(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow},Jodit.prototype.addPlace=function(e,t){var o=this,r=s.resolveElement(e,this.o.shadowRoot||this.od);this.attachEvents(t),r.attributes&&s.toArray(r.attributes).forEach((function(e){var r=e.name,i=e.value;void 0===n.Config.defaultOptions[r]||t&&void 0!==t[r]||(-1!==["readonly","disabled"].indexOf(r)&&(i=""===i||"true"===i),/^[0-9]+(\.)?([0-9]+)?$/.test(i.toString())&&(i=Number(i)),o.options[r]=i)}));var i=this.c.div("jodit-container");i.classList.add("jodit"),i.classList.add("jodit-container"),i.classList.add("jodit_theme_"+(this.o.theme||"default")),i.setAttribute("contenteditable","false");var l=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(r.nodeName)&&(i=r,r.setAttribute(this.__defaultClassesKey,r.className.toString()),l=i.innerHTML,i.innerHTML=""),i.classList.add("jodit_inline"),i.classList.add("jodit-container")),r!==i&&(r.style.display&&r.setAttribute(this.__defaultStyleDisplayKey,r.style.display),r.style.display="none");var c=this.c.div("jodit-workplace",{contenteditable:!1});i.appendChild(c);var u=new a.StatusBar(this,i);r.parentNode&&r!==i&&r.parentNode.insertBefore(i,r);var d=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});c.appendChild(d);var p={editor:d,element:r,container:i,workplace:c,statusbar:u,options:this.isReady?s.ConfigProto(t||{},n.Config.defaultOptions):this.options,observer:new a.Observer(this),editorWindow:this.ow};this.elementToPlace.set(d,p),this.setCurrentPlace(p),this.places.push(p),this.setNativeEditorValue(this.getElementValue());var f=this.initEditor(l),h=this.options;return s.callPromise(f,(function(){h.enableDragAndDropFileToEditor&&h.uploader&&(h.uploader.url||h.uploader.insertImageAsBase64URI)&&o.uploader.bind(o.editor),o.elementToPlace.get(o.editor)||o.elementToPlace.set(o.editor,p),o.e.fire("afterAddPlace",p)}))},Jodit.prototype.addDisclaimer=function(e){this.workplace.appendChild(e)},Jodit.prototype.setCurrentPlace=function(e){this.currentPlace!==e&&(this.isEditorMode()||this.setMode(i.MODE_WYSIWYG),this.currentPlace=e,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",e))},Jodit.prototype.initEditor=function(e){var t=this,o=this.createEditor();return s.callPromise(o,(function(){if(!t.isInDestruct){t.element!==t.container?t.setElementValue():null!=e&&t.setEditorValue(e);var o=t.o.defaultMode;if(t.o.saveModeInStorage){var r=t.storage.get("jodit_default_mode");"string"==typeof r&&(o=parseInt(r,10))}t.setMode(o),t.o.readonly&&(t.__wasReadOnly=!1,t.setReadOnly(!0)),t.o.disabled&&t.setDisabled(!0);try{t.ed.execCommand("defaultParagraphSeparator",!1,t.o.enter.toLowerCase())}catch(e){}try{t.ed.execCommand("enableObjectResizing",!1,"false")}catch(e){}try{t.ed.execCommand("enableInlineTableEditing",!1,"false")}catch(e){}}}))},Jodit.prototype.createEditor=function(){var e=this,t=this.editor,o=this.e.fire("createEditor",this);return s.callPromise(o,(function(){if(!e.isInDestruct){if((!1===o||s.isPromise(o))&&a.Dom.safeRemove(t),e.o.editorCssClass&&e.editor.classList.add(e.o.editorCssClass),e.o.style&&s.css(e.editor,e.o.style),e.e.on("synchro",(function(){e.setEditorValue()})).on("focus",(function(){e.editorIsActive=!0})).on("blur",(function(){return e.editorIsActive=!1})),e.prepareWYSIWYGEditor(),e.o.direction){var r="rtl"===e.o.direction.toLowerCase()?"rtl":"ltr";e.container.style.direction=r,e.container.setAttribute("dir",r),e.toolbar.setDirection(r)}e.o.triggerChangeEvent&&e.e.on("change",e.async.debounce((function(){e.e&&e.e.fire(e.element,"change")}),e.defaultTimeout))}}))},Jodit.prototype.attachEvents=function(e){var t=this,o=null==e?void 0:e.events;o&&Object.keys(o).forEach((function(e){return t.e.on(e,o[e])}))},Jodit.prototype.prepareWYSIWYGEditor=function(){var e=this,t=this.editor;if(this.o.spellcheck&&this.editor.setAttribute("spellcheck","true"),this.o.direction){var o="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=o,this.editor.setAttribute("dir",o)}this.e.on(t,"mousedown touchstart focus",(function(){var o=e.elementToPlace.get(t);o&&e.setCurrentPlace(o)})).on(t,"compositionend",(function(){e.setEditorValue()})).on(t,"selectionchange selectionstart keydown keyup keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",(function(t){if(!e.o.readonly&&!(t instanceof e.ew.KeyboardEvent&&t.isComposing)&&e.e&&e.e.fire){if(!1===e.e.fire(t.type,t))return!1;e.setEditorValue()}}))},Jodit.prototype.destruct=function(){var t=this;if(!this.isInDestruct&&(this.setStatus(a.STATUSES.beforeDestruct),this.elementToPlace.clear(),this.editor)){var o=this.getEditorValue();this.storage.clear(),this.buffer.clear(),this.commands={},this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body),this.places.forEach((function(e){var r=e.container,n=e.workplace,i=e.statusbar,l=e.element,c=e.iframe,u=e.editor,d=e.observer;if(l!==r)if(l.hasAttribute(t.__defaultStyleDisplayKey)){var p=s.attr(l,t.__defaultStyleDisplayKey);p&&(l.style.display=p,l.removeAttribute(t.__defaultStyleDisplayKey))}else l.style.display="";else l.hasAttribute(t.__defaultClassesKey)&&(l.className=s.attr(l,t.__defaultClassesKey)||"",l.removeAttribute(t.__defaultClassesKey));l.hasAttribute("style")&&!s.attr(l,"style")&&l.removeAttribute("style"),!i.isInDestruct&&i.destruct(),t.e.off(r),t.e.off(l),t.e.off(u),a.Dom.safeRemove(n),a.Dom.safeRemove(u),r!==l&&a.Dom.safeRemove(r),a.Dom.safeRemove(c),r===l&&(l.innerHTML=o),!d.isInDestruct&&d.destruct()})),this.places.length=0,this.currentPlace={},delete u.instances[this.id],e.prototype.destruct.call(this)}},Jodit.plugins=u.pluginSystem,Jodit.modules=u.modules,Jodit.ns=u.modules,Jodit.decorators={},Jodit.instances=u.instances,Jodit.lang=u.lang,Jodit.core={Plugin:a.Plugin},r.__decorate([d.cache],Jodit.prototype,"uploader",null),r.__decorate([d.cache],Jodit.prototype,"filebrowser",null),r.__decorate([d.autobind],Jodit.prototype,"prepareWYSIWYGEditor",null),Jodit}(c.ViewWithToolbar);t.Jodit=Jodit},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__classPrivateFieldSet=t.__classPrivateFieldGet=t.__importDefault=t.__importStar=t.__makeTemplateObject=t.__asyncValues=t.__asyncDelegator=t.__asyncGenerator=t.__await=t.__spreadArray=t.__spreadArrays=t.__spread=t.__read=t.__values=t.__exportStar=t.__createBinding=t.__generator=t.__awaiter=t.__metadata=t.__param=t.__decorate=t.__rest=t.__assign=t.__extends=void 0;var o=function(e,t){return(o=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){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function n(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return a}function i(e){return this instanceof i?(this.v=e,this):new i(e)}t.__extends=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},t.__assign=function(){return t.__assign=Object.assign||function(e){for(var t,o=1,r=arguments.length;r>o;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},t.__assign.apply(this,arguments)},t.__rest=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);r.length>n;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]])}return o},t.__decorate=function(e,t,o,r){var n,i=arguments.length,a=3>i?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(3>i?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},t.__param=function(e,t){return function(o,r){t(o,r,e)}},t.__metadata=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},t.__awaiter=function(e,t,o,r){return new(o||(o=Promise))((function(n,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},t.__generator=function(e,t){var o,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&n[3]>i[1])){a.label=i[1];break}if(6===i[0]&&n[1]>a.label){a.label=n[1],n=i;break}if(n&&n[2]>a.label){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{o=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},t.__createBinding=Object.create?function(e,t,o,r){void 0===r&&(r=o),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,r){void 0===r&&(r=o),e[r]=t[o]},t.__exportStar=function(e,o){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(o,r)||t.__createBinding(o,e,r)},t.__values=r,t.__read=n,t.__spread=function(){for(var e=[],t=0;arguments.length>t;t++)e=e.concat(n(arguments[t]));return e},t.__spreadArrays=function(){for(var e=0,t=0,o=arguments.length;o>t;t++)e+=arguments[t].length;var r=Array(e),n=0;for(t=0;o>t;t++)for(var i=arguments[t],a=0,s=i.length;s>a;a++,n++)r[n]=i[a];return r},t.__spreadArray=function(e,t){for(var o=0,r=t.length,n=e.length;r>o;o++,n++)e[n]=t[o];return e},t.__await=i,t.__asyncGenerator=function(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=o.apply(e,t||[]),a=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){n[e]&&(r[e]=function(t){return new Promise((function(o,r){a.push([e,t,o,r])>1||l(e,t)}))})}function l(e,t){try{(o=n[e](t)).value instanceof i?Promise.resolve(o.value.v).then(c,u):d(a[0][2],o)}catch(e){d(a[0][3],e)}var o}function c(e){l("next",e)}function u(e){l("throw",e)}function d(e,t){e(t),a.shift(),a.length&&l(a[0][0],a[0][1])}},t.__asyncDelegator=function(e){var t,o;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,n){t[r]=e[r]?function(t){return(o=!o)?{value:i(e[r](t)),done:"return"===r}:n?n(t):t}:n}},t.__asyncValues=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,o=e[Symbol.asyncIterator];return o?o.call(e):(e=r(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(o){t[o]=e[o]&&function(t){return new Promise((function(r,n){!function(e,t,o,r){Promise.resolve(r).then((function(t){e({value:t,done:o})}),t)}(r,n,(t=e[o](t)).done,t.value)}))}}},t.__makeTemplateObject=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};var a=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};t.__importStar=function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&t.__createBinding(o,e,r);return a(o,e),o},t.__importDefault=function(e){return e&&e.__esModule?e:{default:e}},t.__classPrivateFieldGet=function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},t.__classPrivateFieldSet=function(e,t,o){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,o),o}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Config=void 0;var r=o(9),n=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.statusbar=!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.extraIcons={},this.createAttributes={},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"source",buttons:[]},{group:"font-style",buttons:[]},{group:"script",buttons:[]},{group:"list",buttons:["ul","ol"]},{group:"indent",buttons:[]},{group:"font",buttons:[]},{group:"color",buttons:[]},{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],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=n,n.prototype.controls={}},(e,t)=>{"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_SPACE=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|STYLE|OBJECT|FOOTER|HEADER|NAV|SECTION|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_SPACE="Space",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}()},(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.Observer=t.ImageEditor=t.Helpers=t.FileBrowser=t.ViewWithToolbar=t.View=t.Icon=t.ProgressBar=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 r=o(7);r.__exportStar(o(11),t);var n=o(160);Object.defineProperty(t,"Async",{enumerable:!0,get:function(){return n.Async}});var i=o(161);Object.defineProperty(t,"Ajax",{enumerable:!0,get:function(){return i.Ajax}});var a=o(30);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(162);Object.defineProperty(t,"ContextMenu",{enumerable:!0,get:function(){return s.ContextMenu}});var l=o(164);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 c=o(35);Object.defineProperty(t,"Dom",{enumerable:!0,get:function(){return c.Dom}});var u=o(185);Object.defineProperty(t,"Plugin",{enumerable:!0,get:function(){return u.Plugin}});var d=o(186);Object.defineProperty(t,"Create",{enumerable:!0,get:function(){return d.Create}});var p=o(76);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,"ProgressBar",{enumerable:!0,get:function(){return p.ProgressBar}}),Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return p.Icon}});var f=o(169);Object.defineProperty(t,"View",{enumerable:!0,get:function(){return f.View}});var h=o(167);Object.defineProperty(t,"ViewWithToolbar",{enumerable:!0,get:function(){return h.ViewWithToolbar}});var m=o(187);Object.defineProperty(t,"FileBrowser",{enumerable:!0,get:function(){return m.FileBrowser}});var v=o(22);t.Helpers=v;var g=o(197);Object.defineProperty(t,"ImageEditor",{enumerable:!0,get:function(){return g.ImageEditor}});var y=o(201);Object.defineProperty(t,"Observer",{enumerable:!0,get:function(){return y.Observer}});var b=o(205);Object.defineProperty(t,"Select",{enumerable:!0,get:function(){return b.Select}}),Object.defineProperty(t,"Style",{enumerable:!0,get:function(){return b.Style}});var _=o(202);Object.defineProperty(t,"Snapshot",{enumerable:!0,get:function(){return _.Snapshot}});var w=o(209);Object.defineProperty(t,"StatusBar",{enumerable:!0,get:function(){return w.StatusBar}});var S=o(211);Object.defineProperty(t,"Table",{enumerable:!0,get:function(){return S.Table}});var C=o(177);Object.defineProperty(t,"ToolbarEditorCollection",{enumerable:!0,get:function(){return C.ToolbarEditorCollection}});var k=o(175);Object.defineProperty(t,"ToolbarCollection",{enumerable:!0,get:function(){return k.ToolbarCollection}}),r.__exportStar(o(212),t);var j=o(213);Object.defineProperty(t,"Uploader",{enumerable:!0,get:function(){return j.Uploader}});var E=o(34);Object.defineProperty(t,"PluginSystem",{enumerable:!0,get:function(){return E.PluginSystem}})},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(7);r.__exportStar(o(12),t),r.__exportStar(o(21),t),r.__exportStar(o(13),t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventsNative=void 0;var r=o(7),n=o(13),i=o(14),a=o(15),s=o(16),l=o(20),c=function(){function e(e){var t=this;this.__key="__JoditEventsNativeNamespaces",this.doc=document,this.prepareEvent=function(e){e.cancelBubble||(e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach((function(t){Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})})),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&t.doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:function(){return t.doc.defaultView.clipboardData},configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.isDestructed=!1,e&&(this.doc=e),this.__key+=(new Date).getTime()}return e.prototype.eachEvent=function(e,t){var o=this;e.split(/[\s,]+/).forEach((function(e){var r=e.split(".");t.call(o,r[0],r[1]||n.defaultNameSpace)}))},e.prototype.getStore=function(e){if(!e)throw l.error("Need subject");if(void 0===e[this.__key]){var t=new n.EventHandlersStore;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,value:t})}return e[this.__key]},e.prototype.clearStore=function(e){void 0!==e[this.__key]&&delete e[this.__key]},e.prototype.triggerNativeEvent=function(e,t){var o=this.doc.createEvent("HTMLEvents");"string"==typeof t?o.initEvent(t,!0,!0):(o.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach((function(e){Object.defineProperty(o,e,{value:t[e],enumerable:!0})})),Object.defineProperty(o,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(o)},Object.defineProperty(e.prototype,"current",{get:function(){return this.currents[this.currents.length-1]},enumerable:!1,configurable:!0}),e.prototype.on=function(e,t,o,n){var c=this;void 0===n&&(n=!1);var u=i.isString(e)?this:e,d=i.isString(t)?t:e,p=o;void 0===p&&a.isFunction(t)&&(p=t);var f=this.getStore(u);if(!i.isString(d)||""===d)throw l.error("Need events names");if(!a.isFunction(p))throw l.error("Need event handler");if(s.isArray(u))return u.forEach((function(e){c.on(e,d,p,n)})),this;var h=a.isFunction(u.addEventListener),m=this,v=function(e){for(var t=[],o=1;arguments.length>o;o++)t[o-1]=arguments[o];return p&&p.call.apply(p,r.__spreadArrays([this,e],t))};return h&&(v=function(e){if(m.prepareEvent(e),p&&!1===p.call(this,e))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.eachEvent(d,(function(e,t){if(""===e)throw l.error("Need event name");if(!1===f.indexOf(e,t,p)&&(f.set(e,t,{event:e,originalCallback:p,syntheticCallback:v},n),h)){var o=!!["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"].includes(e)&&{passive:!0};u.addEventListener(e,v,o)}})),this},e.prototype.one=function(e,t,o,r){var n=this;void 0===r&&(r=!1);var s=i.isString(e)?this:e,l=i.isString(t)?t:e,c=o;void 0===c&&a.isFunction(t)&&(c=t);var u=function(){for(var e=[],t=0;arguments.length>t;t++)e[t]=arguments[t];n.off(s,l,u),c.apply(void 0,e)};return this.on(s,l,u,r),this},e.prototype.off=function(e,t,o){var r=this,s=i.isString(e)?this:e,l=i.isString(t)?t:e,c=this.getStore(s),u=o;if(!i.isString(l)||!l)return c.namespaces().forEach((function(e){r.off(s,"."+e)})),this.clearStore(s),this;void 0===u&&a.isFunction(t)&&(u=t);var d=a.isFunction(s.removeEventListener),p=function(e){d&&s.removeEventListener(e.event,e.syntheticCallback,!1)},f=function(e,t){if(""!==e){var o=c.get(e,t);if(o&&o.length)if(a.isFunction(u)){var r=c.indexOf(e,t,u);!1!==r&&(p(o[r]),o.splice(r,1))}else o.forEach(p),o.length=0}else c.events(t).forEach((function(e){""!==e&&f(e,t)}))};return this.eachEvent(l,(function(e,t){t===n.defaultNameSpace?c.namespaces().forEach((function(t){f(e,t)})):f(e,t)})),this},e.prototype.stopPropagation=function(e,t){var o=this,r=i.isString(e)?this:e,a=i.isString(e)?e:t;if("string"!=typeof a)throw l.error("Need event names");var s=this.getStore(r);this.eachEvent(a,(function(e,t){var i=s.get(e,t);i&&o.__stopped.push(i),t===n.defaultNameSpace&&s.namespaces(!0).forEach((function(t){return o.stopPropagation(r,e+"."+t)}))}))},e.prototype.removeStop=function(e){if(e){var t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}},e.prototype.isStopped=function(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)},e.prototype.fire=function(e,t){for(var o,s,c=this,u=[],d=2;arguments.length>d;d++)u[d-2]=arguments[d];var p=i.isString(e)?this:e,f=i.isString(e)?e:t,h=i.isString(e)?r.__spreadArrays([t],u):u,m=a.isFunction(p.dispatchEvent);if(!m&&!i.isString(f))throw l.error("Need events names");var v=this.getStore(p);return!i.isString(f)&&m?this.triggerNativeEvent(p,t):this.eachEvent(f,(function(e,t){if(m)c.triggerNativeEvent(p,e);else{var i=v.get(e,t);if(i)try{r.__spreadArrays(i).every((function(t){return!c.isStopped(i)&&(c.currents.push(e),s=t.syntheticCallback.apply(p,h),c.currents.pop(),void 0!==s&&(o=s),!0)}))}finally{c.removeStop(i)}t!==n.defaultNameSpace||m||v.namespaces().filter((function(e){return e!==t})).forEach((function(t){var n=c.fire.apply(c,r.__spreadArrays([p,e+"."+t],h));void 0!==n&&(o=n)}))}})),o},e.prototype.destruct=function(){this.isDestructed&&(this.isDestructed=!0,this.off(this),this.getStore(this).clear(),delete this[this.__key])},e}();t.EventsNative=c},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventHandlersStore=t.defaultNameSpace=void 0,t.defaultNameSpace="JoditEventDefaultNamespace";var o=function(){function e(){this.__store={}}return e.prototype.get=function(e,t){if(void 0!==this.__store[t])return this.__store[t][e]},e.prototype.indexOf=function(e,t,o){var r=this.get(e,t);if(r)for(var n=0;r.length>n;n+=1)if(r[n].originalCallback===o)return n;return!1},e.prototype.namespaces=function(e){void 0===e&&(e=!1);var o=Object.keys(this.__store);return e?o.filter((function(e){return e!==t.defaultNameSpace})):o},e.prototype.events=function(e){return this.__store[e]?Object.keys(this.__store[e]):[]},e.prototype.set=function(e,t,o,r){void 0===r&&(r=!1),void 0===this.__store[t]&&(this.__store[t]={}),void 0===this.__store[t][e]&&(this.__store[t][e]=[]),r?this.__store[t][e].unshift(o):this.__store[t][e].push(o)},e.prototype.clear=function(){this.__store={}},e}();t.EventHandlersStore=o},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=void 0,t.isString=function(e){return"string"==typeof e}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=void 0;var r=o(17);t.isArray=function(e){return Array.isArray(e)||e instanceof r.JoditArray}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JoditArray=void 0;var r=o(18);o(20),t.JoditArray=function(e){return r.markAsAtomic(e),e}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fastClone=t.markAsAtomic=t.isAtom=void 0;var r=o(19);t.isAtom=function(e){return e&&e.isAtom},t.markAsAtomic=function(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e},t.fastClone=function(e){return JSON.parse(r.stringify(e))}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=void 0,t.stringify=function(e,t){if(void 0===t&&(t={}),"object"!=typeof e)return e.toString?e.toString():e;var o=new Set(t.excludeKeys),r=new WeakMap;return JSON.stringify(e,(function(e,t){if(!o.has(e)){if("object"==typeof t&&null!=t){if(r.get(t))return"[refObject]";r.set(t,!0)}return t}}),t.prettify)}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.error=t.type=t.hasOwn=void 0;var o={},r=o.toString;t.hasOwn=o.hasOwnProperty,["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error","Symbol","HTMLDocument","Window","HTMLElement","HTMLBodyElement","Text","DocumentFragment","DOMStringList","HTMLCollection"].forEach((function(e){o["[object "+e+"]"]=e.toLowerCase()})),t.type=function(e){return null===e?"null":"object"==typeof e||"function"==typeof e?o[r.call(e)]||"object":typeof e},t.error=function(e){return new TypeError(e)}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObserveObject=void 0;var r=o(7),n=o(22),i=o(100),a=function(){function e(t,o,i){var a=this;void 0===o&&(o=[]),void 0===i&&(i={}),this.__lockEvent={},this.__data=t,this.__prefix=o,this.__onEvents=i,Object.keys(t).forEach((function(o){var i=a.__prefix.concat(o).filter((function(e){return e.length}));Object.defineProperty(a,o,{set:function(s){var l,c=t[o];if(!n.isFastEqual(c,s)){a.fire(["beforeChange","beforeChange."+i.join(".")],o,s),n.isPlainObject(s)&&(s=new e(s,i,a.__onEvents)),t[o]=s;var u=[];a.fire(r.__spreadArrays(["change"],i.reduce((function(e,t){return u.push(t),e.push("change."+u.join(".")),e}),[])),i.join("."),c,(null===(l=s)||void 0===l?void 0:l.valueOf)?s.valueOf():s)}},get:function(){return t[o]},enumerable:!0,configurable:!0}),n.isPlainObject(t[o])&&(t[o]=new e(t[o],i,a.__onEvents))}))}return e.prototype.valueOf=function(){return this.__data},e.prototype.toString=function(){return JSON.stringify(this.valueOf())},e.prototype.on=function(e,t){var o=this;return n.isArray(e)?(e.map((function(e){return o.on(e,t)})),this):(this.__onEvents[e]||(this.__onEvents[e]=[]),this.__onEvents[e].push(t),this)},e.prototype.fire=function(e){for(var t=this,o=[],i=1;arguments.length>i;i++)o[i-1]=arguments[i];if(n.isArray(e))e.map((function(e){return t.fire.apply(t,r.__spreadArrays([e],o))}));else try{!this.__lockEvent[e]&&this.__onEvents[e]&&(this.__lockEvent[e]=!0,this.__onEvents[e].forEach((function(e){return e.call.apply(e,r.__spreadArrays([t],o))})))}finally{this.__lockEvent[e]=!1}},e.create=function(t,o){return void 0===o&&(o=[]),t instanceof e?t:new e(t,o)},r.__decorate([i.nonenumerable],e.prototype,"__data",void 0),r.__decorate([i.nonenumerable],e.prototype,"__prefix",void 0),r.__decorate([i.nonenumerable],e.prototype,"__onEvents",void 0),r.__decorate([i.nonenumerable],e.prototype,"__lockEvent",void 0),e}();t.ObserveObject=a},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(7);r.__exportStar(o(23),t),r.__exportStar(o(57),t),r.__exportStar(o(61),t),r.__exportStar(o(18),t),r.__exportStar(o(37),t),r.__exportStar(o(63),t),r.__exportStar(o(65),t),r.__exportStar(o(66),t),r.__exportStar(o(83),t),r.__exportStar(o(143),t),r.__exportStar(o(69),t),r.__exportStar(o(148),t),r.__exportStar(o(150),t),r.__exportStar(o(151),t),r.__exportStar(o(82),t),r.__exportStar(o(153),t),r.__exportStar(o(29),t),r.__exportStar(o(75),t),r.__exportStar(o(154),t),r.__exportStar(o(149),t),r.__exportStar(o(155),t),r.__exportStar(o(17),t),r.__exportStar(o(156),t),r.__exportStar(o(152),t),r.__exportStar(o(157),t),r.__exportStar(o(158),t),r.__exportStar(o(68),t),r.__exportStar(o(20),t),r.__exportStar(o(159),t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(7);r.__exportStar(o(24),t),r.__exportStar(o(25),t),r.__exportStar(o(27),t),r.__exportStar(o(54),t),r.__exportStar(o(55),t),r.__exportStar(o(56),t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markDeprecated=t.cns=void 0;var r=o(7);t.cns=console,t.markDeprecated=function(e,o,n){return void 0===o&&(o=[""]),void 0===n&&(n=null),function(){for(var i=[],a=0;arguments.length>a;a++)i[a]=arguments[a];return t.cns.warn('Method "'+o[0]+'" deprecated.'+(o[1]?' Use "'+o[1]+'" instead':"")),e.call.apply(e,r.__spreadArrays([n],i))}}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memorizeExec=t.keys=t.loadImage=t.reset=t.callPromise=t.markOwner=t.attr=t.call=void 0;var r=o(15),n=o(26),i=o(27),a=o(29),s=o(37);function l(e,t,o){if(!e||!r.isFunction(e.getAttribute))return null;if(/^-/.test(t)){var n=l(e,"data"+t);if(n)return n;t=t.substr(1)}if(void 0!==o){if(null!=o)return e.setAttribute(t,o.toString()),o.toString();e.hasAttribute(t)&&e.removeAttribute(t)}return e.getAttribute(t)}t.call=function(e){for(var t=[],o=1;arguments.length>o;o++)t[o-1]=arguments[o];return e.apply(void 0,t)},t.attr=l,t.markOwner=function(e,t){l(t,"data-editor_id",e.id),!t.component&&Object.defineProperty(t,"jodit",{value:e})},t.callPromise=function(e,t){return n.isPromise(e)?e.finally(t):t()};var c={};t.reset=function(e){var t,o;if(!(e in c)){var n=document.createElement("iframe");try{if(n.src="about:blank",document.body.appendChild(n),!n.contentWindow)return null;var a=i.get(e,n.contentWindow),s=i.get(e.split(".").slice(0,-1).join("."),n.contentWindow);r.isFunction(a)&&(c[e]=a.bind(s))}catch(e){}finally{null===(t=n.parentNode)||void 0===t||t.removeChild(n)}}return null!==(o=c[e])&&void 0!==o?o:null},t.loadImage=function(e,t){return t.async.promise((function(o,r){var n=new Image,i=function(){t.e.off(n),null==r||r()},a=function(){t.e.off(n),o(n)};t.e.one(n,"load",a).one(n,"error",i).one(n,"abort",i),n.src=e,n.complete&&a()}))},t.keys=function(e,t){if(void 0===t&&(t=!0),t)return Object.keys(e);var o=[];for(var r in e)o.push(r);return o},t.memorizeExec=function(e,t,o,r){var n=o.control,i="button"+n.command,l=n.args&&n.args[0]||a.dataBind(e,i);if(s.isVoid(l))return!1;a.dataBind(e,i,l),r&&(l=r(l)),e.execCommand(n.command,!1,l||void 0)}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0,t.isPromise=function(e){return e&&"function"==typeof e.then}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.get=void 0;var r=o(14),n=o(28);t.get=function(e,t){if(!r.isString(e)||!e.length)return null;for(var o=t,i=0,a=e.split(".");a.length>i;i++){var s=a[i];if(n.isVoid(o[s]))return null;o=o[s]}return n.isVoid(o)?null:o}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isVoid=void 0,t.isVoid=function(e){return null==e}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dataBind=void 0;var r=o(30),n=o(37),i=new WeakMap;t.dataBind=function(e,t,o){var a=i.get(e);if(!a){i.set(e,a={});var s=null;e instanceof r.ViewComponent&&(s=e.j.e),n.isViewObject(e)&&(s=e.e),s&&s.on("beforeDestruct",(function(){i.delete(e)}))}return void 0===o?a[t]:(a[t]=o,o)}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(7);r.__exportStar(o(31),t),r.__exportStar(o(32),t),r.__exportStar(o(36),t)},(e,t)=>{"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.STATUSES=void 0,(o=t.STATUSES||(t.STATUSES={})).beforeInit="beforeInit",o.ready="ready",o.beforeDestruct="beforeDestruct",o.destructed="destructed"},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var r=o(22),n=o(33),i=o(31),a=new Map,s=function(){function e(){this.ownerWindow=window,this.__componentStatus=i.STATUSES.beforeInit,this.componentName="jodit-"+r.kebabCase(this.className()||r.getClassName(this)),this.uid="jodit-uid-"+n.uniqueUid()}return e.prototype.getFullElName=function(e,t,o){var n=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),n.push("__"+e)),t&&(n.push("_",t),n.push("_",r.isVoid(o)?"true":o.toString())),n.join("")},Object.defineProperty(e.prototype,"ownerDocument",{get:function(){return this.ow.document},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"od",{get:function(){return this.ownerDocument},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ow",{get:function(){return this.ownerWindow},enumerable:!1,configurable:!0}),e.prototype.get=function(e,t){return r.get(e,t||this)},Object.defineProperty(e.prototype,"isReady",{get:function(){return this.componentStatus===i.STATUSES.ready},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDestructed",{get:function(){return this.componentStatus===i.STATUSES.destructed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInDestruct",{get:function(){return i.STATUSES.beforeDestruct===this.componentStatus||i.STATUSES.destructed===this.componentStatus},enumerable:!1,configurable:!0}),e.prototype.bindDestruct=function(e){var t=this,o=function(){!t.isInDestruct&&t.destruct()};return e.e&&e.e.on(i.STATUSES.beforeDestruct,o),this.hookStatus(i.STATUSES.beforeDestruct,(function(){e.e&&e.e.off(i.STATUSES.beforeDestruct,o)})),this},e.prototype.destruct=function(){this.setStatus(i.STATUSES.destructed),a.get(this)&&a.delete(this)},Object.defineProperty(e.prototype,"componentStatus",{get:function(){return this.__componentStatus},set:function(e){this.setStatus(e)},enumerable:!1,configurable:!0}),e.prototype.setStatus=function(e){return this.setStatusComponent(e,this)},e.prototype.setStatusComponent=function(e,t){if(e!==this.__componentStatus){var o=Object.getPrototypeOf(this);o&&r.isFunction(o.setStatusComponent)&&o.setStatusComponent(e,t);var n=a.get(this),i=null==n?void 0:n[e];i&&i.length&&i.forEach((function(e){return e(t)})),t===this&&(this.__componentStatus=e)}},e.prototype.hookStatus=function(e,t){var o=a.get(this);o||a.set(this,o={}),o[e]||(o[e]=[]),o[e].push(t)},e.STATUSES=i.STATUSES,e}();t.Component=s},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventEmitter=t.getContainer=t.extendLang=t.lang=t.modules=t.pluginSystem=t.uniqueUid=t.instances=void 0;var r=o(34),n=o(35),i=o(22),a=o(11);t.instances={};var s=1;t.uniqueUid=function(){return s+=10*(Math.random()+1),Math.round(s).toString(16)},t.pluginSystem=new r.PluginSystem,t.modules={},t.lang={},t.extendLang=function(e){Object.keys(e).forEach((function(o){t.lang[o]?Object.assign(t.lang[o],e[o]):t.lang[o]=e[o]}))};var l=new WeakMap;t.getContainer=function(e,t,o,r){void 0===o&&(o="div"),void 0===r&&(r=!1);var a=i.getClassName(t.prototype),s=l.get(e)||{},c=a+o,u=i.isViewObject(e)?e:e.j;if(!s[c]){var d=u.c,p=e.od.body;r&&i.isJoditObject(e)&&e.od!==e.ed&&(d=e.createInside,p="style"===o?e.ed.head:e.ed.body);var f=d.element(o,{className:"jodit jodit-"+i.kebabCase(a)+"-container jodit-box"});f.classList.add("jodit_theme_"+(u.o.theme||"default")),p.appendChild(f),s[c]=f,e.hookStatus("beforeDestruct",(function(){n.Dom.safeRemove(f),delete s[c],Object.keys(s).length&&l.delete(e)})),l.set(e,s)}return s[c].classList.remove("jodit_theme_default","jodit_theme_dark"),s[c].classList.add("jodit_theme_"+(u.o.theme||"default")),s[c]},t.eventEmitter=new a.EventsNative},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PluginSystem=void 0;var r=o(7),n=o(22),i=function(){function e(){this.items=new Map}return e.prototype.normalizeName=function(e){return n.kebabCase(e).toLowerCase()},e.prototype.add=function(e,t){this.items.set(this.normalizeName(e),t)},e.prototype.get=function(e){return this.items.get(this.normalizeName(e))},e.prototype.remove=function(e){this.items.delete(this.normalizeName(e))},e.prototype.init=function(t){var o=this,r=t.o.extraPlugins.map((function(e){return n.isString(e)?{name:e}:e})),i=n.splitArray(t.o.disablePlugins).map((function(e){return o.normalizeName(e)})),a=[],s={},l=[],c={},u=function(r,u){var d;if(!(i.includes(u)||a.includes(u)||s[u])){var p=null===(d=r)||void 0===d?void 0:d.requires;if(!(p&&n.isArray(p)&&o.hasDisabledRequires(i,p))){var f=e.makePluginInstance(t,r);o.initOrWait(t,u,f,a,s),l.push(f),c[u]=f}}},d=this.loadExtras(t,r);return n.callPromise(d,(function(){t.isInDestruct||(o.items.forEach(u),o.addListenerOnBeforeDestruct(t,l),t.__plugins=c)}))},e.prototype.hasDisabledRequires=function(e,t){return Boolean((null==t?void 0:t.length)&&e.some((function(e){return t.includes(e)})))},e.makePluginInstance=function(e,t){return n.isFunction(t)?new t(e):t},e.prototype.initOrWait=function(t,o,r,i,a){var s=function(o,r){if(n.isInitable(r)){var s=r.requires;if((null==s?void 0:s.length)&&!s.every((function(e){return i.includes(e)})))return a[o]=r,!1;r.init(t),i.push(o)}else i.push(o);return r.hasStyle&&e.loadStyle(t,o),!0};s(o,r),Object.keys(a).forEach((function(e){var t=a[e];t&&s(e,t)&&(a[e]=void 0,delete a[e])}))},e.prototype.addListenerOnBeforeDestruct=function(e,t){e.e.on("beforeDestruct",(function(){t.forEach((function(t){n.isDestructable(t)&&t.destruct(e)})),t.length=0,delete e.__plugins}))},e.prototype.load=function(t,o){return Promise.all(o.map((function(o){var r=o.url||e.getFullUrl(t,o.name,!0);return n.appendScriptAsync(t,r).then((function(e){return{v:e,status:"fulfilled"}}),(function(e){return{e:e,status:"rejected"}}))})))},e.loadStyle=function(t,o){return r.__awaiter(this,void 0,Promise,(function(){var i;return r.__generator(this,(function(r){return i=e.getFullUrl(t,o,!1),this.styles.has(i)?[2]:(this.styles.add(i),[2,n.appendStyleAsync(t,i)])}))}))},e.getFullUrl=function(e,t,o){return t=n.kebabCase(t),e.basePath+"plugins/"+t+"/"+t+"."+(o?"js":"css")},e.prototype.loadExtras=function(e,t){var o=this;if(t&&t.length)try{var r=t.filter((function(e){return!o.items.has(o.normalizeName(e.name))}));if(r.length)return this.load(e,r)}catch(e){}},e.styles=new Set,e}();t.PluginSystem=i},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dom=void 0;var r=o(9),n=o(22),i=function(){function e(){}return e.detach=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},e.wrapInline=function(t,o,r){var i,a=t,s=t,l=r.s.save(),c=!1;do{c=!1,(i=a.previousSibling)&&!e.isBlock(i,r.ew)&&(c=!0,a=i)}while(c);do{c=!1,(i=s.nextSibling)&&!e.isBlock(i,r.ew)&&(c=!0,s=i)}while(c);var u=n.isString(o)?r.createInside.element(o):o;a.parentNode&&a.parentNode.insertBefore(u,a);for(var d=a;d&&(d=a.nextSibling,u.appendChild(a),a!==s&&d);)a=d;return r.s.restore(l),u},e.wrap=function(e,t,o){var r=o.s.save(),i=n.isString(t)?o.createInside.element(t):t;return e.parentNode?(e.parentNode.insertBefore(i,e),i.appendChild(e),o.s.restore(r),i):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 r=t.firstChild;if(r)for(;r;){var n=e.next(r,Boolean,t);if(!1===o(r))return!1;if(r.parentNode&&!e.each(r,o))return!1;r=n}return!0},e.between=function(e,t,o){for(var r=e;r&&r!==t&&(e===r||!o(r));){var n=r.firstChild||r.nextSibling;if(!n){for(;r&&!r.nextSibling;)r=r.parentNode;n=null==r?void 0:r.nextSibling}r=n}},e.replace=function(e,t,o,r,i){void 0===r&&(r=!1),void 0===i&&(i=!1);var a=n.isString(t)?o.element(t):t;if(!i)for(;e.firstChild;)a.appendChild(e.firstChild);return r&&n.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(r.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===n.trim(t.nodeValue).length:!o.test(t.nodeName.toLowerCase())&&e.each(t,(function(t){if(e.isText(t)&&null!=t.nodeValue&&0!==n.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!n.isVoid(t)&&"object"==typeof t&&e.isNode(t,o)&&r.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(n.css(t,"display").toString())},e.canSplitBlock=function(t,o){return!n.isVoid(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,r,n){return void 0===n&&(n=!0),e.find(t,o,r,!1,"previousSibling",!!n&&"lastChild")},e.next=function(t,o,r,n){return void 0===n&&(n=!0),e.find(t,o,r,void 0,void 0,!!n&&"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,r,n,i,a){if(void 0===n&&(n=!1),void 0===i&&(i="nextSibling"),void 0===a&&(a="firstChild"),n&&o(t))return t;var s,l=t;do{if(o(s=l[i]))return s||null;if(a&&s&&s[a]){var c=e.find(s[a],o,s,!0,i,a);if(c)return c}s||(s=l.parentNode),l=s}while(l&&l!==r);return null},e.findWithCurrent=function(t,o,r,n,i){void 0===n&&(n="nextSibling"),void 0===i&&(i="firstChild");var a=t;do{if(o(a))return a||null;if(i&&a&&a[i]){var s=e.findWithCurrent(a[i],o,a,n,i);if(s)return s}for(;a&&!a[n]&&a!==r;)a=a.parentNode;a&&a[n]&&a!==r&&(a=a[n])}while(a&&a!==r);return null},e.findSibling=function(t,o,r){void 0===o&&(o=!0),void 0===r&&(r=function(t){return!e.isEmptyTextNode(t)});for(var n=function(e){return o?e.previousSibling:e.nextSibling},i=n(t);i&&!r(i);)i=n(i);return i&&r(i)?i:null},e.up=function(e,t,o,r){void 0===r&&(r=!1);var n=e;if(!n)return null;do{if(t(n))return n;if(n===o||!n.parentNode)break;n=n.parentNode}while(n&&n!==o);return n===o&&r&&t(n)?n:null},e.closest=function(t,o,r){var i;return i=n.isFunction(o)?o:n.isArray(o)?function(e){return e&&o.includes(e.nodeName.toLowerCase())}:function(e){return e&&o===e.nodeName.toLowerCase()},e.up(t,i,r)},e.furthest=function(e,t,o){for(var r=null,n=null==e?void 0:e.parentElement;n&&n!==o&&t(n);)r=n,n=null==n?void 0:n.parentElement;return r},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){var o=this;n.isArray(t)?t.forEach((function(t){o.append(e,t)})):e.appendChild(t)},e.moveContent=function(e,t,o){void 0===o&&(o=!1);var r=(e.ownerDocument||document).createDocumentFragment();n.toArray(e.childNodes).forEach((function(e){r.appendChild(e)})),o&&t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r)},e.all=function(t,o,r){void 0===r&&(r=!1);var i=t.childNodes?n.toArray(t.childNodes):[];return o(t)?t:(r&&(i=i.reverse()),i.forEach((function(t){e.all(t,o,r)})),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&&(n.dataBind(e,"__old_display",e.style.display),e.style.display="none")},e.show=function(e){if(e){var t=n.dataBind(e,"__old_display");"none"===e.style.display&&(e.style.display=t||"")}},e.isTag=function(e,t){for(var o=n.asArray(t).map(String),r=0;o.length>r;r+=1)if(this.isElement(e)&&e.tagName.toLowerCase()===o[r].toLowerCase())return!0;return!1},e}();t.Dom=i},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewComponent=void 0;var r=o(7),n=function(e){function t(t){var o=e.call(this)||this;return o.setParentView(t),o}return r.__extends(t,e),Object.defineProperty(t.prototype,"defaultTimeout",{get:function(){return this.j.defaultTimeout},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"j",{get:function(){return this.jodit},enumerable:!1,configurable:!0}),t.prototype.i18n=function(e){for(var t,o=[],n=1;arguments.length>n;n++)o[n-1]=arguments[n];return(t=this.j).i18n.apply(t,r.__spreadArrays([e],o))},t.prototype.setParentView=function(e){return this.jodit=e,e.components.add(this),this},t.prototype.destruct=function(){return this.j.components.delete(this),e.prototype.destruct.call(this)},t}(o(32).Component);t.ViewComponent=n},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(7);r.__exportStar(o(38),t),r.__exportStar(o(16),t),r.__exportStar(o(39),t),r.__exportStar(o(40),t),r.__exportStar(o(15),t),r.__exportStar(o(41),t),r.__exportStar(o(42),t),r.__exportStar(o(43),t),r.__exportStar(o(44),t),r.__exportStar(o(46),t),r.__exportStar(o(47),t),r.__exportStar(o(48),t),r.__exportStar(o(49),t),r.__exportStar(o(45),t),r.__exportStar(o(50),t),r.__exportStar(o(26),t),r.__exportStar(o(14),t),r.__exportStar(o(52),t),r.__exportStar(o(53),t),r.__exportStar(o(28),t),r.__exportStar(o(51),t)},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasBrowserColorPicker=void 0,t.hasBrowserColorPicker=function(){var e=!0;try{var t=document.createElement("input");t.type="color",e="color"===t.type&&"number"!=typeof t.selectionStart}catch(t){e=!1}return e}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBoolean=void 0,t.isBoolean=function(e){return"boolean"==typeof e}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFastEqual=t.isEqual=void 0;var r=o(19);t.isEqual=function(e,t){return e===t||r.stringify(e)===r.stringify(t)},t.isFastEqual=function(e,t){return e===t}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHTML=void 0;var r=o(14);t.isHTML=function(e){return r.isString(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e)}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHtmlFromWord=void 0,t.isHtmlFromWord=function(e){return-1!==e.search(//)||-1!==e.search(//)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasContainer=t.isDestructable=t.isInitable=void 0;var r=o(15),n=o(35),i=o(28);t.isInitable=function(e){return!i.isVoid(e)&&r.isFunction(e.init)},t.isDestructable=function(e){return!i.isVoid(e)&&r.isFunction(e.destruct)},t.hasContainer=function(e){return!i.isVoid(e)&&n.Dom.isElement(e.container)}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInt=void 0;var r=o(45),n=o(14);t.isInt=function(e){return n.isString(e)&&r.isNumeric(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNumeric=void 0;var r=o(14);t.isNumeric=function(e){if(r.isString(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isViewObject=t.isJoditObject=void 0;var r=o(15),n=o(33);t.isJoditObject=function(e){return Boolean(e&&e instanceof Object&&r.isFunction(e.constructor)&&("undefined"!=typeof Jodit&&e instanceof Jodit||e.isJodit))},t.isViewObject=function(e){return Boolean(e&&e instanceof Object&&r.isFunction(e.constructor)&&(e instanceof n.modules.View||e.isView))}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLicense=void 0;var r=o(14);t.isLicense=function(e){return r.isString(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNativeFunction=void 0,t.isNativeFunction=function(e){return Boolean(e)&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(e)))}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNumber=void 0,t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=void 0;var r=o(51),n=o(20);t.isPlainObject=function(e){return!(!e||"object"!=typeof e||e.nodeType||r.isWindow(e)||e.constructor&&!n.hasOwn.call(e.constructor.prototype,"isPrototypeOf"))}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWindow=void 0,t.isWindow=function(e){return null!=e&&e===e.window}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isURL=void 0,t.isURL=function(e){return new RegExp("^(https?:\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidName=void 0,t.isValidName=function(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_.]/.test(e)}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.set=void 0;var r=o(14),n=o(45),i=o(16),a=o(37);t.set=function(e,t,o){if(r.isString(e)&&e.length){for(var s=e.split("."),l=o,c=s[0],u=0;s.length-1>u;u+=1)i.isArray(l[c=s[u]])||a.isPlainObject(l[c])||(l[c]=n.isNumeric(s[u+1])?[]:{}),l=l[c];l&&(l[s[s.length-1]]=t)}}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClassName=t.keepNames=void 0;var r=o(15);t.keepNames=new Map,t.getClassName=function(e){var o;if(r.isFunction(e.className))return e.className();var n=(null===(o=e.constructor)||void 0===o?void 0:o.originalConstructor)||e.constructor;if(t.keepNames.has(n))return t.keepNames.get(n);if(n.name)return n.name;var i=new RegExp(/^\s*function\s*(\S*)\s*\(/),a=n.toString().match(i);return a?a[1]:""}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LimitedStack=void 0;var o=function(){function e(e){this.limit=e,this.stack=[]}return e.prototype.push=function(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this},e.prototype.pop=function(){return this.stack.pop()},e.prototype.find=function(e){return this.stack.find(e)},e}();t.LimitedStack=o},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=t.splitArray=t.asArray=void 0;var r=o(58);Object.defineProperty(t,"asArray",{enumerable:!0,get:function(){return r.asArray}});var n=o(59);Object.defineProperty(t,"splitArray",{enumerable:!0,get:function(){return n.splitArray}});var i=o(60);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return i.toArray}})},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asArray=void 0;var r=o(16);t.asArray=function(e){return r.isArray(e)?e:[e]}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitArray=void 0;var r=o(14);t.splitArray=function(e){return r.isString(e)?e.split(/[,\s]+/):e}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;var r=o(23),n=o(48);t.toArray=function(){for(var e,t=[],o=0;arguments.length>o;o++)t[o]=arguments[o];var i=n.isNativeFunction(Array.from)?Array.from:null!==(e=r.reset("Array.from"))&&void 0!==e?e:Array.from;return i.apply(Array,t)}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o(7).__exportStar(o(62),t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearTimeout=t.setTimeout=void 0;var r=o(7);t.setTimeout=function(e,t){for(var o=[],n=2;arguments.length>n;n++)o[n-2]=arguments[n];return t?window.setTimeout.apply(window,r.__spreadArrays([e,t],o)):(e.call.apply(e,r.__spreadArrays([null],o)),0)},t.clearTimeout=function(e){window.clearTimeout(e)}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o(7).__exportStar(o(64),t)},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.colorToHex=void 0,t.colorToHex=function(e){if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;var t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";for(var o=parseInt(t[2],10),r=parseInt(t[3],10),n=(parseInt(t[4],10)|r<<8|o<<16).toString(16).toUpperCase();6>n.length;)n="0"+n;return t[1]+"#"+n}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigFlatten=t.ConfigProto=void 0;var r=o(7),n=o(18),i=o(37),a=o(8),s=o(23);t.ConfigProto=function e(t,o,s){if(void 0===s&&(s=0),Object.getPrototypeOf(t)!==Object.prototype)return t;var l=a.Config.defaultOptions;if(i.isString(t.preset)){if(void 0!==l.presets[t.preset]){var c=l.presets[t.preset];Object.keys(c).forEach((function(e){i.isVoid(t[e])&&(t[e]=c[e])}))}delete t.preset}var u={};return Object.keys(t).forEach((function(a){var l=t[a],c=o?o[a]:null;u[a]=i.isPlainObject(l)&&i.isPlainObject(c)&&!n.isAtom(l)?e(l,c,s+1):0!==s&&i.isArray(l)&&!n.isAtom(l)&&i.isArray(c)?r.__spreadArrays(l,c.slice(l.length)):l})),Object.setPrototypeOf(u,o),u},t.ConfigFlatten=function(e){return s.keys(e,!1).reduce((function(t,o){return t[o]=e[o],t}),{})}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(7);r.__exportStar(o(67),t),r.__exportStar(o(139),t),r.__exportStar(o(140),t),r.__exportStar(o(141),t),r.__exportStar(o(142),t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyStyles=void 0;var r=o(35),n=o(68),i=o(69);function a(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";]+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(function(e,t,o){switch(o.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e}))}t.applyStyles=function(e){if(-1===e.indexOf("")+"".length);var t=document.createElement("iframe");t.style.display="none",document.body.appendChild(t);var o="",s=[];try{var l=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(l){l.open(),l.write(e),l.close(),l.styleSheets.length&&(s=l.styleSheets[l.styleSheets.length-1].cssRules);for(var c=function(e){if(""===s[e].selectorText)return"continue";n.$$(s[e].selectorText,l.body).forEach((function(t){t.style.cssText=a(s[e].style.cssText+";"+t.style.cssText)}))},u=0;s.length>u;u+=1)c(u);r.Dom.each(l.body,(function(e){if(r.Dom.isElement(e)){var t=e,o=t.style.cssText;o&&(t.style.cssText=a(o)),t.hasAttribute("lang")&&t.removeAttribute("lang")}})),o=l.firstChild?i.trim(l.body.innerHTML):""}}catch(e){}finally{r.Dom.safeRemove(t)}return o&&(e=o),i.trim(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(//i);-1!==t&&(e=e.substr(t+20));var o=e.search(//i);return-1!==o&&(e=e.substr(0,o)),e}(o)),t.s.insertHTML(o)}},t.getAllTypes=function(e){var t=e.types,o="";if(r.isArray(t)||"domstringlist"===r.type(t))for(var n=0;t.length>n;n+=1)o+=t[n]+";";else o=(t||i.TEXT_PLAIN).toString()+";";return o}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clipboard=t.pluginKey=void 0;var r=o(9),n=o(22),i=o(250);t.pluginKey="clipboard";var a=function(){function e(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}return e.prototype.init=function(e){var o;null===(o=this.buttons)||void 0===o||o.forEach((function(t){return e.registerButton(t)})),e.e.off("copy."+t.pluginKey+" cut."+t.pluginKey).on("copy."+t.pluginKey+" cut."+t.pluginKey,(function(o){var a,s=e.s.html,l=i.getDataTransfer(o)||i.getDataTransfer(e.ew)||i.getDataTransfer(o.originalEvent);l&&(l.setData(r.TEXT_PLAIN,n.stripTags(s)),l.setData(r.TEXT_HTML,s)),e.buffer.set(t.pluginKey,s),e.e.fire("pasteStack",{html:s,action:e.o.defaultActionOnPaste}),"cut"===o.type&&(e.s.remove(),e.s.focus()),o.preventDefault(),null===(a=null==e?void 0:e.events)||void 0===a||a.fire("afterCopy",s)}))},e.prototype.destruct=function(e){var o,r;null===(o=null==e?void 0:e.buffer)||void 0===o||o.set(t.pluginKey,""),null===(r=null==e?void 0:e.events)||void 0===r||r.off("."+t.pluginKey)},e}();t.clipboard=a},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.paste=void 0;var r=o(7),n=o(185),i=o(250),a=o(9),s=o(22),l=o(251),c=o(35),u=o(164),d=o(93),p=o(100),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pasteStack=new s.LimitedStack(20),t}return r.__extends(t,e),t.prototype.afterInit=function(e){var t=this;e.e.on("paste.paste",this.onPaste).on("pasteStack.paste",(function(e){return t.pasteStack.push(e)})),e.o.nl2brInPlainText&&this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)},t.prototype.onPaste=function(e){try{if(!1===this.j.e.fire("beforePaste",e)||!1===this.customPasteProcess(e))return e.preventDefault(),!1;this.defaultPasteProcess(e)}finally{this.j.e.fire("afterPaste",e)}},t.prototype.customPasteProcess=function(e){if(this.j.o.processPasteHTML)for(var t=i.getDataTransfer(e),o=0,r=[null==t?void 0:t.getData(a.TEXT_HTML),null==t?void 0:t.getData(a.TEXT_PLAIN)];r.length>o;o++){var n=r[o];if(s.isHTML(n)&&(this.processWordHTML(e,n)||this.processHTML(e,n)))return!1}},t.prototype.defaultPasteProcess=function(e){var t=i.getDataTransfer(e),o=(null==t?void 0:t.getData(a.TEXT_HTML))||(null==t?void 0:t.getData(a.TEXT_PLAIN));if(t&&o&&""!==s.trim(o)){var r=this.j.e.fire("processPaste",e,o,i.getAllTypes(t));void 0!==r&&(o=r),(s.isString(o)||c.Dom.isNode(o,this.j.ew))&&this.insertByType(e,o,this.j.o.defaultActionOnPaste),e.preventDefault(),e.stopPropagation()}},t.prototype.processWordHTML=function(e,t){var o=this;return!(!this.j.o.processPasteFromWord||!s.isHtmlFromWord(t)||(this.j.o.askBeforePasteFromWord?this.askInsertTypeDialog("The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",(function(r){o.insertFromWordByType(e,t,r)})):this.insertFromWordByType(e,t,this.j.o.defaultActionOnPasteFromWord||this.j.o.defaultActionOnPaste),0))},t.prototype.processHTML=function(e,t){var o=this;if(this.j.o.askBeforePasteHTML){var r=this.pasteStack.find((function(e){return e.html===t}));return r?(this.insertByType(e,t,r.action||this.j.o.defaultActionOnPaste),!0):(this.askInsertTypeDialog("Your code is similar to HTML. Keep as HTML?","Paste as HTML",(function(r){o.insertByType(e,t,r)}),"Insert as Text"),!0)}return!1},t.prototype.insertFromWordByType=function(e,t,o){var r;switch(o){case a.INSERT_AS_HTML:if(t=s.applyStyles(t),this.j.o.beautifyHTML){var n=null===(r=this.j.events)||void 0===r?void 0:r.fire("beautifyHTML",t);s.isString(n)&&(t=n)}break;case a.INSERT_AS_TEXT:t=s.cleanFromWord(t);break;case a.INSERT_ONLY_TEXT:t=s.stripTags(s.cleanFromWord(t))}i.pasteInsertHtml(e,this.j,t)},t.prototype.insertByType=function(e,t,o){if(this.pasteStack.push({html:t,action:o}),s.isString(t))switch(this.j.buffer.set(l.pluginKey,t),o){case a.INSERT_CLEAR_HTML:t=s.cleanFromWord(t);break;case a.INSERT_ONLY_TEXT:t=s.stripTags(t);break;case a.INSERT_AS_TEXT:t=s.htmlspecialchars(t)}i.pasteInsertHtml(e,this.j,t)},t.prototype.askInsertTypeDialog=function(e,t,o,r,n){var i,l,c,p;if(void 0===r&&(r="Clean"),void 0===n&&(n="Insert only Text"),!1!==(null===(l=null===(i=this.j)||void 0===i?void 0:i.e)||void 0===l?void 0:l.fire("beforeOpenPasteDialog",e,t,o,r,n))){var f=u.Confirm('
'+this.j.i18n(e)+"
",this.j.i18n(t));f.bindDestruct(this.j),s.markOwner(this.j,f.container);var h=d.Button(this.j,{text:"Keep",name:"keep",status:"primary",tabIndex:0}),m=d.Button(this.j,{text:r,tabIndex:0}),v=d.Button(this.j,{text:n,tabIndex:0}),g=d.Button(this.j,{text:"Cancel",tabIndex:0});return h.onAction((function(){f.close(),o&&o(a.INSERT_AS_HTML)})),m.onAction((function(){f.close(),o&&o(a.INSERT_AS_TEXT)})),v.onAction((function(){f.close(),o&&o(a.INSERT_ONLY_TEXT)})),g.onAction((function(){f.close()})),f.setFooter([h,m,n?v:"",g]),h.focus(),null===(p=null===(c=this.j)||void 0===c?void 0:c.e)||void 0===p||p.fire("afterOpenPasteDialog",f,e,t,o,r,n),f}},t.prototype.onProcessPasteReplaceNl2Br=function(e,t,o){if(o===a.TEXT_PLAIN+";"&&!s.isHTML(t))return s.nl2br(t)},t.prototype.useFakeDivBox=function(e){var t=this,o=this.j.c.div("",{tabindex:-1,contenteditable:!0,style:{left:-9999,top:0,width:0,height:"100%",lineHeight:"140%",overflow:"hidden",position:"fixed",zIndex:2147483647,wordBreak:"break-all"}});this.j.container.appendChild(o);var r=this.j.s.save();o.focus();var n=0,i=function(){c.Dom.safeRemove(o),t.j.selection&&t.j.s.restore(r)},a=function(){if(n+=1,o.childNodes&&o.childNodes.length>0){var r=o.innerHTML;return i(),void t.processHTML(e,r)}5>n?t.j.async.setTimeout(a,20):i()};a()},t.prototype.beforeDestruct=function(e){e.e.off("paste.paste",this.onPaste)},r.__decorate([p.autobind],t.prototype,"onPaste",null),r.__decorate([p.autobind],t.prototype,"onProcessPasteReplaceNl2Br",null),t}(n.Plugin);t.paste=f},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pasteStorage=void 0;var r=o(7);o(254);var n=o(9),i=o(164),a=o(185),s=o(35),l=o(22),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentIndex=0,t.list=[],t.container=null,t.listBox=null,t.previewBox=null,t.dialog=null,t.paste=function(){if(t.j.s.focus(),t.j.s.insertHTML(t.list[t.currentIndex]),0!==t.currentIndex){var e=t.list[0];t.list[0]=t.list[t.currentIndex],t.list[t.currentIndex]=e}t.dialog&&t.dialog.close(),t.j.setEditorValue(),t.j.e.fire("afterPaste")},t.onKeyDown=function(e){var o=t.currentIndex;-1!==[n.KEY_UP,n.KEY_DOWN,n.KEY_ENTER].indexOf(e.key)&&(e.key===n.KEY_UP&&(0===o?o=t.list.length-1:o-=1),e.key===n.KEY_DOWN&&(o===t.list.length-1?o=0:o+=1),e.key!==n.KEY_ENTER?(o!==t.currentIndex&&t.selectIndex(o),e.stopImmediatePropagation(),e.preventDefault()):t.paste())},t.selectIndex=function(e){t.listBox&&l.toArray(t.listBox.childNodes).forEach((function(o,r){o.classList.remove("jodit_active"),e===r&&t.previewBox&&(o.classList.add("jodit_active"),t.previewBox.innerHTML=t.list[e],o.focus())})),t.currentIndex=e},t.showDialog=function(){2>t.list.length||(t.dialog||t.createDialog(),t.listBox&&(t.listBox.innerHTML=""),t.previewBox&&(t.previewBox.innerHTML=""),t.list.forEach((function(e,o){var r=t.j.c.element("a");r.textContent=o+1+". "+e.replace(n.SPACE_REG_EXP(),""),t.j.e.on(r,"keydown",t.onKeyDown),l.attr(r,"href","javascript:void(0)"),l.attr(r,"data-index",o.toString()),l.attr(r,"tab-index","-1"),t.listBox&&t.listBox.appendChild(r)})),t.dialog&&t.dialog.open(),t.j.async.setTimeout((function(){t.selectIndex(0)}),100))},t}return r.__extends(t,e),t.prototype.createDialog=function(){var e=this;this.dialog=new i.Dialog({language:this.j.o.language});var t=this.j.c.fromHTML(''+this.j.i18n("Paste")+"");this.j.e.on(t,"click",this.paste);var o=this.j.c.fromHTML(''+this.j.i18n("Cancel")+"");this.j.e.on(o,"click",this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([t,o]),this.j.e.on(this.listBox,"click dblclick",(function(t){var o=t.target;return s.Dom.isTag(o,"a")&&o.hasAttribute("data-index")&&e.selectIndex(parseInt(l.attr(o,"-index")||"0",10)),"dblclick"===t.type&&e.paste(),!1}))},t.prototype.afterInit=function(){var e=this;this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",(function(){return e.list.length})).on("afterCopy.paste-storage",(function(t){-1!==e.list.indexOf(t)&&e.list.splice(e.list.indexOf(t),1),e.list.unshift(t),e.list.length>5&&(e.list.length=5)})),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})},t.prototype.beforeDestruct=function(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),s.Dom.safeRemove(this.previewBox),s.Dom.safeRemove(this.listBox),s.Dom.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]},t}(a.Plugin);t.pasteStorage=c},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.copyFormat=void 0;var r=o(8),n=o(35),i=o(22),a="copyformat",s=["fontWeight","fontStyle","fontSize","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine","fontFamily"],l=function(e,t,o,r){var n=i.css(o,t);return n===r[t]&&(n=o.parentNode&&o!==e.editor&&o.parentNode!==e.editor?l(e,t,o.parentNode,r):void 0),n};r.Config.prototype.controls.copyformat={exec:function(e,t,o){var r=o.button;if(t){if(e.buffer.exists(a))e.buffer.delete(a),e.e.off(e.editor,"mouseup.copyformat");else{var c={},u=n.Dom.up(t,(function(e){return e&&!n.Dom.isText(e)}),e.editor)||e.editor,d=e.createInside.span();e.editor.appendChild(d),s.forEach((function(e){c[e]=i.css(d,e)})),d!==e.editor&&n.Dom.safeRemove(d);var p=function(e,t,o){var r={};return t&&s.forEach((function(n){r[n]=l(e,n,t,o),n.match(/border(Style|Color)/)&&!r.borderWidth&&(r[n]=void 0)})),r}(e,u,c);e.e.on(e.editor,"mouseup.copyformat",(function(){e.buffer.delete(a);var t=e.s.current();t&&(n.Dom.isTag(t,"img")?i.css(t,p):e.s.applyStyle(p)),e.e.off(e.editor,"mouseup.copyformat")})),e.buffer.set(a,!0)}r.update()}},isActive:function(e){return e.buffer.exists(a)},tooltip:"Paint format"},t.copyFormat=function(e){e.registerButton({name:"copyformat",group:"clipboard"})}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.color=void 0;var r=o(8),n=o(10),i=o(22),a=o(257);r.Config.prototype.controls.brush={update:function(e){var t=i.dataBind(e,"color"),o=e.j,r=function(t,r){r&&r!==i.css(o.editor,t).toString()&&(e.state.icon.fill=r)};if(t){var a=i.dataBind(e,"color");r("color"===a?a:"background-color",t)}else{var s=o.s.current();if(s&&!e.state.disabled){var l=n.Dom.closest(s,(function(e){return n.Dom.isBlock(e,o.ew)||e&&n.Dom.isElement(e)}),o.editor)||o.editor;r("color",i.css(l,"color").toString()),r("background-color",i.css(l,"background-color").toString())}e.state.icon.fill="",e.state.activated=!1}},popup:function(e,t,o,r,s){var l="",c="",u=[],d=null;return t&&t!==e.editor&&n.Dom.isNode(t,e.ew)&&(n.Dom.isElement(t)&&e.s.isCollapsed()&&!n.Dom.isTag(t,["br","hr"])&&(d=t),n.Dom.up(t,(function(t){if(n.Dom.isHTMLElement(t,e.ew)){var o=i.css(t,"color",void 0,!0),r=i.css(t,"background-color",void 0,!0);if(o)return l=o.toString(),!0;if(r)return c=r.toString(),!0}}),e.editor)),u=[{name:"Background",content:a.ColorPickerWidget(e,(function(t){d?d.style.backgroundColor=t:e.execCommand("background",!1,t),i.dataBind(s,"color",t),i.dataBind(s,"color-mode","background"),r()}),c)},{name:"Text",content:a.ColorPickerWidget(e,(function(t){d?d.style.color=t:e.execCommand("forecolor",!1,t),i.dataBind(s,"color",t),i.dataBind(s,"color-mode","color"),r()}),l)}],"background"!==e.o.colorPickerDefaultTab&&(u=u.reverse()),a.TabsWidget(e,u,d)},exec:function(e,t,o){var r=o.button,a=i.dataBind(r,"color-mode"),s=i.dataBind(r,"color");if(!a)return!1;if(t&&t!==e.editor&&n.Dom.isNode(t,e.ew)&&n.Dom.isElement(t))switch(a){case"color":t.style.color=s;break;case"background":t.style.backgroundColor=s}else e.execCommand("background"===a?a:"forecolor",!1,s)},tooltip:"Fill color or set the text color"},t.color=function(e){e.registerButton({name:"brush",group:"color"});var t=function(t,o,r){var n=i.normalizeColor(r);switch(t){case"background":e.s.applyStyle({backgroundColor:n||""});break;case"forecolor":e.s.applyStyle({color:n||""})}return e.setEditorValue(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(7);r.__exportStar(o(258),t),r.__exportStar(o(260),t),r.__exportStar(o(262),t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPickerWidget=void 0,o(259);var r=o(22),n=o(76),i=o(35);t.ColorPickerWidget=function(e,t,o){var a=r.normalizeColor(o),s=e.c.div("jodit-color-picker"),l=e.o.textIcons?""+e.i18n("palette")+"":n.Icon.get("palette"),c=function(e){var t=[];return r.isPlainObject(e)?Object.keys(e).forEach((function(o){t.push('
'),t.push(c(e[o])),t.push("
")})):r.isArray(e)&&e.forEach((function(e){t.push("')})),t.join("")};s.appendChild(e.c.fromHTML('
'+c(e.o.colors)+"
")),s.appendChild(e.c.fromHTML('
'));var u=r.refs(s).extra;return e.o.showBrowserColorPicker&&r.hasBrowserColorPicker()&&(u.appendChild(e.c.fromHTML('
'+l+'
')),e.e.on(s,"change",(function(e){e.stopPropagation();var o=e.target;if(o&&o.tagName&&i.Dom.isTag(o,"input")){var n=o.value||"";r.isFunction(t)&&t(n),e.preventDefault()}}))),e.e.on(s,"mousedown touchend",(function(o){o.stopPropagation();var n=o.target;if(n&&n.tagName&&!i.Dom.isTag(n,"svg")&&!i.Dom.isTag(n,"path")||!n.parentNode||(n=i.Dom.closest(n.parentNode,"a",e.editor)),i.Dom.isTag(n,"a")){var a=r.attr(n,"-color")||"";t&&"function"==typeof t&&t(a),o.preventDefault()}})),e.e.fire("afterGenerateColorPicker",s,u,t,a),s}},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabsWidget=void 0,o(261);var r=o(22),n=o(76);t.TabsWidget=function(e,t,o){var i=e.c.div("jodit-tabs"),a=e.c.div("jodit-tabs__wrapper"),s=e.c.div("jodit-tabs__buttons"),l={},c=[],u="",d=0;if(i.appendChild(s),i.appendChild(a),t.forEach((function(i){var p=i.icon,f=i.name,h=i.content,m=e.c.div("jodit-tab"),v=n.Button(e,p||f,f);u||(u=f),s.appendChild(v.container),c.push(v),v.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+t.length),r.isFunction(h)?m.appendChild(e.c.div("jodit-tab_empty")):m.appendChild(h),a.appendChild(m),v.onAction((function(){return c.forEach((function(e){e.state.activated=!1})),r.$$(".jodit-tab",a).forEach((function(e){e.classList.remove("jodit-tab_active")})),v.state.activated=!0,m.classList.add("jodit-tab_active"),r.isFunction(h)&&h.call(e),o&&(o.__activeTab=f),!1})),l[f]={button:v,tab:m},d+=1})),!d)return i;r.$$("a",s).forEach((function(e){e.style.width=(100/d).toFixed(10)+"%"}));var p=o&&o.__activeTab&&l[o.__activeTab]?o.__activeTab:u;return l[p].button.state.activated=!0,l[p].tab.classList.add("jodit-tab_active"),i}},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileSelectorWidget=void 0;var r=o(22),n=o(35),i=o(260),a=o(76);t.FileSelectorWidget=function(e,t,o,s,l){var c;void 0===l&&(l=!0);var u=[];if(t.upload&&e.o.uploader&&(e.o.uploader.url||e.o.uploader.insertImageAsBase64URI)){var d=e.c.fromHTML('
'+e.i18n(l?"Drop image":"Drop file")+"
"+e.i18n("or click")+'
');e.uploader.bind(d,(function(o){var n=r.isFunction(t.upload)?t.upload:e.o.uploader.defaultHandlerSuccess;r.isFunction(n)&&n.call(e,o),e.e.fire("closeAllPopups")}),(function(t){e.e.fire("errorMessage",t.message),e.e.fire("closeAllPopups")})),u.push({icon:"upload",name:"Upload",content:d})}if(t.filebrowser&&(e.o.filebrowser.ajax.url||e.o.filebrowser.items.url)&&u.push({icon:"folder",name:"Browse",content:function(){s&&s(),t.filebrowser&&e.filebrowser.open(t.filebrowser,l)}}),t.url){var p=new a.UIButton(e,{type:"submit",status:"primary",text:"Insert"}),f=new a.UIForm(e,[new a.UIInput(e,{required:!0,label:"URL",name:"url",type:"url",placeholder:"https://"}),new a.UIInput(e,{name:"text",label:"Alternative text"}),new a.UIBlock(e,[p])]);c=null,o&&!n.Dom.isText(o)&&(n.Dom.isTag(o,"img")||r.$$("img",o).length)&&(c="IMG"===o.tagName?o:r.$$("img",o)[0],r.val(f.container,"input[name=url]",r.attr(c,"src")),r.val(f.container,"input[name=text]",r.attr(c,"alt")),p.state.text="Update"),o&&n.Dom.isTag(o,"a")&&(r.val(f.container,"input[name=url]",r.attr(o,"href")),r.val(f.container,"input[name=text]",r.attr(o,"title")),p.state.text="Update"),f.onSubmit((function(o){r.isFunction(t.url)&&t.url.call(e,o.url,o.text)})),u.push({icon:"link",name:"URL",content:f.container})}return i.TabsWidget(e,u)}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DragAndDrop=void 0;var r=o(7),n=o(9),i=o(35),a=o(22),s=o(185),l=o(250),c=o(100),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isFragmentFromEditor=!1,t.isCopyMode=!1,t.startDragPoint={x:0,y:0},t.draggable=null,t.bufferRange=null,t.getText=function(e){var t=l.getDataTransfer(e);return t?t.getData(n.TEXT_HTML)||t.getData(n.TEXT_PLAIN):null},t}return r.__extends(t,e),t.prototype.afterInit=function(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)},t.prototype.onDragStart=function(e){var t=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=i.Dom.isOrContains(this.j.editor,t,!0),this.isCopyMode=!this.isFragmentFromEditor||a.ctrlKey(e),this.isFragmentFromEditor){var o=this.j.s.sel,r=o&&o.rangeCount?o.getRangeAt(0):null;r&&(this.bufferRange=r.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,i.Dom.isElement(t)&&t.classList.contains("jodit-filebrowser__files-item")&&(t=t.querySelector("img")),i.Dom.isTag(t,"img")&&(this.draggable=t.cloneNode(!0),a.dataBind(this.draggable,"target",t)),this.addDragListeners()},t.prototype.addDragListeners=function(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)},t.prototype.removeDragListeners=function(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)},t.prototype.onDrag=function(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())},t.prototype.onDragEnd=function(){this.draggable&&(i.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()},t.prototype.onDrop=function(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;var t=this.j.s.sel,o=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null),r=null;if(!this.draggable&&o)r=this.isCopyMode?o.cloneContents():o.extractContents();else if(this.draggable)if(this.isCopyMode){var n="1"===a.attr(this.draggable,"-is-file")?["a","href"]:["img","src"],s=n[0],l=n[1];(r=this.j.createInside.element(s)).setAttribute(l,a.attr(this.draggable,"data-src")||a.attr(this.draggable,"src")||""),"a"===s&&(r.textContent=a.attr(r,l)||"")}else r=a.dataBind(this.draggable,"target");else this.getText(e)&&(r=this.j.createInside.fromHTML(this.getText(e)));t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),r&&(this.j.s.insertNode(r,!1,!1),o&&r.firstChild&&r.lastChild&&(o.setStartBefore(r.firstChild),o.setEndAfter(r.lastChild),this.j.s.selectRange(o),this.j.e.fire("synchro")),i.Dom.isTag(r,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",r)),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()},t.prototype.beforeDestruct=function(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)},r.__decorate([c.autobind],t.prototype,"onDragStart",null),r.__decorate([c.throttle((function(e){return e.j.defaultTimeout/10}))],t.prototype,"onDrag",null),r.__decorate([c.autobind],t.prototype,"onDragEnd",null),r.__decorate([c.autobind],t.prototype,"onDrop",null),t}(s.Plugin);t.DragAndDrop=u},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DragAndDropElement=void 0;var r=o(7),n=o(22),i=o(185),a=o(35),s=o(33),l=o(100),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragList=[],t.draggable=null,t.wasMoved=!1,t.isCopyMode=!1,t.diffStep=10,t.startX=0,t.startY=0,t}return r.__extends(t,e),t.prototype.afterInit=function(){this.dragList=this.j.o.draggableTags?n.splitArray(this.j.o.draggableTags).filter(Boolean).map((function(e){return e.toLowerCase()})):[],this.dragList.length&&this.j.e.on("mousedown touchstart dragstart",this.onDragStart)},t.prototype.onDragStart=function(e){var t=this;if("dragstart"===e.type&&this.draggable)return!1;var o=e.target;if(this.dragList.length&&o){var r=function(e){return e&&t.dragList.includes(e.nodeName.toLowerCase())},i=a.Dom.furthest(o,r,this.j.editor)||(r(o)?o:null);i&&(this.startX=e.clientX,this.startY=e.clientY,this.isCopyMode=n.ctrlKey(e),this.onDragEnd(),this.draggable=i.cloneNode(!0),n.dataBind(this.draggable,"target",i),this.addDragListeners())}},t.prototype.onDrag=function(e){var o,r;if(this.draggable){var i=e.clientY;if(Math.sqrt(Math.pow(e.clientX-this.startX,2)+Math.pow(i-this.startY,2))>=this.diffStep){if(this.wasMoved=!0,this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){var a=n.dataBind(this.draggable,"target");n.css(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",display:"inline-block",left:e.clientX,top:e.clientY,width:null!==(o=null==a?void 0:a.offsetWidth)&&void 0!==o?o:100,height:null!==(r=null==a?void 0:a.offsetHeight)&&void 0!==r?r:100}),s.getContainer(this.j,t).appendChild(this.draggable)}n.css(this.draggable,{left:e.clientX,top:e.clientY}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}}},t.prototype.onDragEnd=function(){this.isInDestruct||this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null,this.wasMoved=!1,this.removeDragListeners())},t.prototype.onDrop=function(){if(this.draggable&&this.wasMoved){var e=n.dataBind(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));var t=e.parentElement;this.j.s.insertNode(e,!0,!1),t&&a.Dom.isEmpty(t)&&a.Dom.safeRemove(t),a.Dom.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),this.j.e.fire("synchro")}else this.onDragEnd()},t.prototype.addDragListeners=function(){this.j.e.on(this.j.editor,"mousemove touchmove",this.onDrag).on("mouseup touchend",this.onDrop).on([this.j.ew,this.ow],"mouseup touchend",this.onDragEnd)},t.prototype.removeDragListeners=function(){this.j.e.off(this.j.editor,"mousemove touchmove",this.onDrag).off("mouseup touchend",this.onDrop).off([this.j.ew,this.ow],"mouseup touchend",this.onDragEnd)},t.prototype.beforeDestruct=function(){this.onDragEnd(),this.j.e.off("mousedown touchstart dragstart",this.onDragStart),this.removeDragListeners()},r.__decorate([l.autobind],t.prototype,"onDragStart",null),r.__decorate([l.throttle((function(e){return e.j.defaultTimeout/10}))],t.prototype,"onDrag",null),r.__decorate([l.autobind],t.prototype,"onDragEnd",null),r.__decorate([l.autobind],t.prototype,"onDrop",null),t}(i.Plugin);t.DragAndDropElement=c},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.enter=t.insertParagraph=void 0;var r=o(7),n=o(9),i=o(35),a=o(22),s=o(185),l=o(9);t.insertParagraph=function(e,t,o,r){var n,s=e.createInside.element(o),l=e.createInside.element("br");s.appendChild(l),r&&r.cssText&&s.setAttribute("style",r.cssText),e.s.insertNode(s,!1,!1),e.s.setCursorBefore(l);var c=e.s.createRange();return c.setStartBefore("br"!==o.toLowerCase()?l:s),c.collapse(!0),e.s.selectRange(c),i.Dom.safeRemove(t),a.scrollIntoViewIfNeeded(s,e.editor,e.ed),null===(n=e.events)||void 0===n||n.fire("synchro"),s};var c=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.brMode=!1,t.defaultTag=n.PARAGRAPH,t}return r.__extends(o,e),o.prototype.afterInit=function(e){var t=this;this.defaultTag=e.o.enter.toLowerCase(),this.brMode=this.defaultTag===n.BR.toLowerCase(),e.o.enterBlock||(e.o.enterBlock=this.brMode?n.PARAGRAPH:this.defaultTag),e.e.off(".enter").on("keydown.enter",(function(o){if(o.key===n.KEY_ENTER){var r=e.e.fire("beforeEnter",o);return void 0!==r?r:(e.s.isCollapsed()||e.execCommand("Delete"),e.s.focus(),t.onEnter(o),!1)}}))},o.prototype.onEnter=function(e){var o=this.j,r=o.selection,n=this.defaultTag,a=r.current(!1);a&&a!==o.editor||(a=o.createInside.text(l.INVISIBLE_SPACE),r.insertNode(a),r.select(a));var s=this.getBlockWrapper(a),c=i.Dom.isTag(s,"li");if((!c||e.shiftKey)&&!this.checkBR(a,e.shiftKey))return!1;if(s||this.hasPreviousBlock(a)||(s=this.wrapText(a)),!s||s===a)return t.insertParagraph(o,null,c?"li":n),!1;if(!this.checkUnsplittableBox(s))return!1;if(c&&i.Dom.isEmpty(s))return this.enterInsideEmptyLIelement(s),!1;var u,d=s.tagName.toLowerCase()===this.defaultTag||c,p=r.cursorOnTheRight(s),f=r.cursorOnTheLeft(s);if(!d&&(p||f))return u=p?r.setCursorAfter(s):r.setCursorBefore(s),t.insertParagraph(o,u,this.defaultTag),void(f&&!p&&r.setCursorIn(s,!0));r.splitSelection(s)},o.prototype.getBlockWrapper=function(e,t){void 0===t&&(t=n.IS_BLOCK);var o=e,r=this.j.editor;do{if(!o||o===r)break;if(t.test(o.nodeName))return i.Dom.isTag(o,"li")?o:this.getBlockWrapper(o.parentNode,/^li$/i)||o;o=o.parentNode}while(o&&o!==r);return null},o.prototype.checkBR=function(e,t){var o=i.Dom.closest(e,["pre","blockquote"],this.j.editor);if(this.brMode||t&&!o||!t&&o){var r=this.j.createInside.element("br");return this.j.s.insertNode(r,!0),a.scrollIntoViewIfNeeded(r,this.j.editor,this.j.ed),!1}return!0},o.prototype.wrapText=function(e){var t=this,o=e;i.Dom.up(o,(function(e){e&&e.hasChildNodes()&&e!==t.j.editor&&(o=e)}),this.j.editor);var r=i.Dom.wrapInline(o,this.j.o.enter,this.j);if(i.Dom.isEmpty(r)){var n=this.j.createInside.element("br");r.appendChild(n),this.j.s.setCursorBefore(n)}return r},o.prototype.hasPreviousBlock=function(e){var t=this.j;return Boolean(i.Dom.prev(e,(function(e){return i.Dom.isBlock(e,t.ew)||i.Dom.isImage(e,t.ew)}),t.editor))},o.prototype.checkUnsplittableBox=function(e){var t=this.j,o=t.selection;if(!i.Dom.canSplitBlock(e,t.ew)){var r=t.createInside.element("br");return o.insertNode(r,!1),o.setCursorAfter(r),!1}return!0},o.prototype.enterInsideEmptyLIelement=function(e){var o=null,r=i.Dom.closest(e,["ol","ul"],this.j.editor);if(r){if(i.Dom.prev(e,(function(e){return i.Dom.isTag(e,"li")}),r))if(i.Dom.next(e,(function(e){return i.Dom.isTag(e,"li")}),r)){var n=this.j.s.createRange();n.setStartBefore(r),n.setEndAfter(e);var s=n.extractContents();r.parentNode&&r.parentNode.insertBefore(s,r),o=this.j.s.setCursorBefore(r)}else o=this.j.s.setCursorAfter(r);else o=this.j.s.setCursorBefore(r);i.Dom.safeRemove(e),t.insertParagraph(this.j,o,this.defaultTag),a.$$("li",r).length||i.Dom.safeRemove(r)}},o.prototype.beforeDestruct=function(e){e.e.off("keydown.enter")},o}(s.Plugin);t.enter=c},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=void 0,o(267);var r=o(8),n=o(35),i=o(22);r.Config.prototype.showMessageErrors=!0,r.Config.prototype.showMessageErrorTime=3e3,r.Config.prototype.showMessageErrorOffsetPx=3,t.errorMessages=function(e){if(e.o.showMessageErrors){var t,o=e.c.div("jodit_error_box_for_messages"),r=function(){t=5,i.toArray(o.childNodes).forEach((function(r){i.css(o,"bottom",t+"px"),t+=r.offsetWidth+e.o.showMessageErrorOffsetPx}))};e.e.on("beforeDestruct",(function(){n.Dom.safeRemove(o)})).on("errorMessage",(function(t,i,a){e.workplace.appendChild(o);var s=e.c.div("active "+(i||""),t);o.appendChild(s),r(),e.async.setTimeout((function(){s.classList.remove("active"),e.async.setTimeout((function(){n.Dom.safeRemove(s),r()}),300)}),a||e.o.showMessageErrorTime)}))}}},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.font=void 0;var r=o(7),n=o(8),i=o(35),a=o(22);n.Config.prototype.defaultFontSizePoints="px",n.Config.prototype.controls.fontsize={command:"fontSize",data:{cssRule:"font-size"},list:["8","9","10","11","12","14","16","18","24","30","36","48","60","72","96"],exec:function(e,t,o){var r=o.control;return a.memorizeExec(e,t,{control:r},(function(t){var o;return"fontsize"===(null===(o=r.command)||void 0===o?void 0:o.toLowerCase())?""+t+e.o.defaultFontSizePoints:t}))},childTemplate:function(e,t,o){return""+o+e.o.defaultFontSizePoints},tooltip:"Font size",isChildActive:function(e,t){var o,r,n=e.s.current(),s=(null===(o=t.data)||void 0===o?void 0:o.cssRule)||"font-size",l=(null===(r=t.data)||void 0===r?void 0:r.normalize)||function(t){return/pt$/i.test(t)&&"pt"===e.o.defaultFontSizePoints?t.replace(/pt$/i,""):t};if(n){var c=i.Dom.closest(n,(function(t){return i.Dom.isBlock(t,e.ew)||t&&i.Dom.isElement(t)}),e.editor)||e.editor,u=a.css(c,s);return Boolean(u&&t.args&&l(t.args[0].toString())===l(u.toString()))}return!1}},n.Config.prototype.controls.font=r.__assign(r.__assign({},n.Config.prototype.controls.fontsize),{command:"fontname",list:{"":"Default","Helvetica,sans-serif":"Helvetica","Arial,Helvetica,sans-serif":"Arial","Georgia,serif":"Georgia","Impact,Charcoal,sans-serif":"Impact","Tahoma,Geneva,sans-serif":"Tahoma","'Times New Roman',Times,serif":"Times New Roman","Verdana,Geneva,sans-serif":"Verdana"},childTemplate:function(e,t,o){return''+o+""},data:{cssRule:"font-family",normalize:function(e){return e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9]+/g,",")}},tooltip:"Font family"}),t.font=function(e){e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});var t=function(t,o,r){switch(t){case"fontsize":e.s.applyStyle({fontSize:a.normalizeSize(r)});break;case"fontname":e.s.applyStyle({fontFamily:r})}return e.e.fire("synchro"),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatBlock=void 0;var r=o(8),n=o(10),i=o(22);r.Config.prototype.controls.paragraph={command:"formatBlock",update:function(e){var t=e.j,o=e.control,r=t.s.current();if(r&&t.o.textIcons){var i=(n.Dom.closest(r,(function(e){return n.Dom.isBlock(e,t.ew)}),t.editor)||t.editor).nodeName.toLowerCase(),a=o.list;e&&o.data&&o.data.currentValue!==i&&a&&a[i]&&(t.o.textIcons?e.state.text=i:e.state.icon.name=i,o.data.currentValue=i)}return!1},exec:i.memorizeExec,data:{currentValue:"left"},list:{p:"Normal",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote"},isChildActive:function(e,t){var o=e.s.current();if(o){var r=n.Dom.closest(o,(function(t){return n.Dom.isBlock(t,e.ew)}),e.editor);return Boolean(r&&r!==e.editor&&void 0!==t.args&&r.nodeName.toLowerCase()===t.args[0])}return!1},isActive:function(e,t){var o=e.s.current();if(o){var r=n.Dom.closest(o,(function(t){return n.Dom.isBlock(t,e.ew)}),e.editor);return Boolean(r&&r!==e.editor&&void 0!==t.list&&!n.Dom.isTag(r,"p")&&void 0!==t.list[r.nodeName.toLowerCase()])}return!1},childTemplate:function(e,t,o){return"<"+t+' style="margin:0;padding:0">'+e.i18n(o)+""},tooltip:"Insert format block"},t.formatBlock=function(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",(function(t,o,r){return e.s.applyStyle(void 0,{element:r}),e.setEditorValue(),!1}))}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fullsize=void 0,o(271);var r=o(8),n=o(9),i=o(22);r.Config.prototype.fullsize=!1,r.Config.prototype.globalFullSize=!0,r.Config.prototype.controls.fullsize={exec:function(e){e.toggleFullSize()},update:function(e){var t=e.j,o=t.isFullSize?"shrink":"fullsize";e.state.activated=t.isFullSize,t.o.textIcons?e.state.text=o:e.state.icon.name=o},tooltip:"Open editor in fullsize",mode:n.MODE_SOURCE+n.MODE_WYSIWYG},t.fullsize=function(e){e.registerButton({name:"fullsize"});var t=!1,o=0,r=0,n=!1,a=function(){e.events&&(t?(o=i.css(e.container,"height",void 0,!0),r=i.css(e.container,"width",void 0,!0),i.css(e.container,{height:e.ow.innerHeight,width:e.ow.innerWidth}),n=!0):n&&i.css(e.container,{height:o||"auto",width:r||"auto"}))},s=function(o){var r;if(e.container){if(void 0===o&&(o=!e.container.classList.contains("jodit_fullsize")),e.setMod("fullsize",o),e.o.fullsize=o,t=o,e.container.classList.toggle("jodit_fullsize",o),e.toolbar&&(i.isJoditObject(e)&&e.toolbarContainer.appendChild(e.toolbar.container),i.css(e.toolbar.container,"width","auto")),e.o.globalFullSize){for(var n=e.container.parentNode;n&&n.nodeType!==Node.DOCUMENT_NODE;)n.classList.toggle("jodit_fullsize-box_true",o),n=n.parentNode;a()}null===(r=e.events)||void 0===r||r.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",a),e.e.on("afterInit afterOpen",(function(){var t;e.toggleFullSize(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.fullsize)})).on("toggleFullSize",s).on("beforeDestruct",(function(){t&&s(!1)})).on("beforeDestruct",(function(){e.events&&e.e.off(e.ow,"resize",a)}))}},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hotkeys=void 0;var r=o(7),n=o(8),i=o(185),a=o(22),s=o(9);n.Config.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8, cmd+shift+8"],selectall:["ctrl+a","cmd+a"]};var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onKeyPress=function(e){var o=t.specialKeys[e.which],r=(e.key||String.fromCharCode(e.which)).toLowerCase(),n=[o||r];return["alt","ctrl","shift","meta"].forEach((function(t){e[t+"Key"]&&o!==t&&n.push(t)})),a.normalizeKeyAliases(n.join("+"))},t.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},t}return r.__extends(t,e),t.prototype.afterInit=function(e){var t=this;a.keys(e.o.commandToHotkeys,!1).forEach((function(t){var o=e.o.commandToHotkeys[t];o&&(a.isArray(o)||a.isString(o))&&e.registerHotkeyToCommand(o,t)}));var o=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",(function(e){if(e.key===s.KEY_ESC)return t.j.e.fire("escape",e)})).on("keydown.hotkeys",(function(r){var n=t.onKeyPress(r),i={shouldStop:!0};if(!1===t.j.e.fire(n+".hotkey",r.type,i)){if(i.shouldStop)return o=!0,e.e.stopPropagation("keydown"),!1;r.preventDefault()}}),void 0,!0).on("keyup.hotkeys",(function(){if(o)return o=!1,e.e.stopPropagation("keyup"),!1}),void 0,!0)},t.prototype.beforeDestruct=function(e){e.events&&e.e.off(".hotkeys")},t}(i.Plugin);t.hotkeys=l},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iframe=void 0;var r=o(8),n=o(22),i=o(22),a=o(9);r.Config.prototype.iframeBaseUrl="",r.Config.prototype.iframeTitle="Jodit Editor",r.Config.prototype.iframeDoctype="",r.Config.prototype.iframeDefaultSrc="about:blank",r.Config.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',r.Config.prototype.iframeCSSLinks=[],r.Config.prototype.editHTMLDocumentMode=!1,t.iframe=function(e){var t=e.options;e.e.on("afterSetMode",(function(){e.isEditorMode()&&e.s.focus()})).on("generateDocumentStructure.iframe",(function(e,o){var r=e||o.iframe.contentWindow.document;if(r.open(),r.write(t.iframeDoctype+''+t.iframeTitle+""+(t.iframeBaseUrl?'':"")+''),r.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach((function(e){var t=r.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),r.head&&r.head.appendChild(t)})),t.iframeStyle){var i=r.createElement("style");i.innerHTML=t.iframeStyle,r.head&&r.head.appendChild(i)}})).on("createEditor",(function(){if(t.iframe){var o=e.c.element("iframe");o.style.display="block",o.src="about:blank",o.className="jodit-wysiwyg_iframe",o.setAttribute("allowtransparency","true"),o.setAttribute("tabindex",t.tabIndex.toString()),o.setAttribute("frameborder","0"),e.workplace.appendChild(o),e.iframe=o;var r=e.e.fire("generateDocumentStructure.iframe",null,e);return n.callPromise(r,(function(){if(e.iframe){var o=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;var r=function(){n.attr(o.body,"contenteditable",e.getMode()!==a.MODE_SOURCE&&!e.getReadOnly()||null)},s=function(e){var t=//im,o="{%%BODY%%}",r=t.exec(e);return r&&(e=e.replace(t,o).replace(/]*?)>(.*?)<\/span>/gim,"").replace(/<span([^&]*?)>(.*?)<\/span>/gim,"").replace(o,r[0].replace(/(]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),e};if(t.editHTMLDocumentMode){var l=e.element.tagName;if("TEXTAREA"!==l&&"INPUT"!==l)throw i.error("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",(function(){return s(e.o.iframeDoctype+o.documentElement.outerHTML)})).on("beforeSetNativeEditorValue",(function(t){return!e.isLocked&&(/<(html|body)/i.test(t)?s(o.documentElement.outerHTML)!==s(t)&&(o.open(),o.write(e.o.iframeDoctype+s(t)),o.close(),e.editor=o.body,r(),e.e.fire("prepareWYSIWYGEditor")):o.body.innerHTML=t,!0)}))}if(e.editor=o.body,e.e.on("afterSetMode afterInit afterAddPlace",r),"auto"===t.height){o.documentElement&&(o.documentElement.style.overflowY="hidden");var c=e.async.throttle((function(){e.editor&&e.iframe&&"auto"===t.height&&n.css(e.iframe,"height",e.editor.offsetHeight)}),e.defaultTimeout/2);e.e.on("change afterInit afterSetMode resize",c).on([e.iframe,e.ew,o.documentElement],"load",c).on(o,"readystatechange DOMContentLoaded",c)}return o.documentElement&&e.e.on(o.documentElement,"mousedown touchend",(function(){e.s.isFocused()||(e.s.focus(),e.editor===o.body&&e.s.setCursorIn(o.body))})).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",(function(t){var o;null===(o=e.events)||void 0===o||o.fire(e.ow,t)})),!1}}))}}))}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(7);r.__exportStar(o(275),t),r.__exportStar(o(281),t),r.__exportStar(o(282),t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imageProperties=void 0;var r=o(7);o(276);var n=o(8),i=o(10),a=o(22),s=o(257),l=o(93),c=o(277),u=o(100),d=o(197);n.Config.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0};var p=function(e){return e=a.trim(e),/^[0-9]+$/.test(e)?e+"px":e},f=function(e){return/^[-+]?[0-9.]+px$/.test(e.toString())?parseFloat(e.toString()):e},h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={image:new Image,get ratio(){return this.image.naturalWidth/this.image.naturalHeight||1},sizeIsLocked:!0,marginIsLocked:!0},t}return r.__extends(t,e),t.prototype.onChangeMarginIsLocked=function(){var e=this;if(this.form){var t=a.refs(this.form),o=t.lockMargin;[t.marginRight,t.marginBottom,t.marginLeft].forEach((function(t){a.attr(t,"disabled",e.state.marginIsLocked||null)})),o.innerHTML=i.Icon.get(this.state.marginIsLocked?"lock":"unlock")}},t.prototype.onChangeSizeIsLocked=function(){if(this.form){var e=a.refs(this.form),t=e.lockSize,o=e.imageWidth;t.innerHTML=i.Icon.get(this.state.sizeIsLocked?"lock":"unlock"),t.classList.remove("jodit-properties__lock"),t.classList.remove("jodit-properties__unlock"),t.classList.add(this.state.sizeIsLocked?"jodit-properties__lock":"jodit-properties__unlock"),this.j.e.fire(o,"change")}},t.prototype.open=function(){return this.makeForm(),this.j.e.fire("hidePopup"),a.markOwner(this.j,this.dialog.container),this.state.marginIsLocked=!0,this.state.sizeIsLocked=!0,this.updateValues(),this.dialog.open().setModal(!0).setPosition(),!1},t.prototype.makeForm=function(){var e=this;if(!this.dialog){this.dialog=new i.Dialog({fullsize:this.j.o.fullsize,globalFullSize:this.j.o.globalFullSize,theme:this.j.o.theme,language:this.j.o.language,minWidth:Math.min(400,screen.width),minHeight:400,buttons:["fullsize","dialog.close"]});var t=this.j,o=t.o,r=t.i18n.bind(t),n={check:l.Button(t,"ok","Apply"),remove:l.Button(t,"bin","Delete")};t.e.on(this.dialog,"afterClose",(function(){e.state.image.parentNode&&o.image.selectImageAfterClose&&t.s.select(e.state.image)})),n.remove.onAction((function(){t.s.removeNode(e.state.image),e.dialog.close()}));var u=this.dialog;u.setHeader(r("Image properties"));var d=c.form(t);this.form=d,u.setContent(d);var p=a.refs(this.form).tabsBox;p&&p.appendChild(s.TabsWidget(t,[{name:"Image",content:c.mainTab(t)},{name:"Advanced",content:c.positionTab(t)}])),n.check.onAction(this.onApply);var f=a.refs(this.form),h=f.editImage;t.e.on(f.changeImage,"click",this.openImagePopup),o.image.useImageEditor&&t.e.on(h,"click",this.openImageEditor);var m=a.refs(d),v=m.lockSize,g=m.lockMargin,y=m.imageWidth,b=m.imageHeight;v&&t.e.on(v,"click",(function(){e.state.sizeIsLocked=!e.state.sizeIsLocked})),t.e.on(g,"click",(function(t){e.state.marginIsLocked=!e.state.marginIsLocked,t.preventDefault()}));var _=function(t){if(a.isNumeric(y.value)&&a.isNumeric(b.value)){var o=parseFloat(y.value),r=parseFloat(b.value);t.target===y?b.value=Math.round(o/e.state.ratio).toString():y.value=Math.round(r*e.state.ratio).toString()}};t.e.on([y,b],"change keydown mousedown paste",(function(o){e.state.sizeIsLocked&&t.async.setTimeout(_.bind(e,o),{timeout:t.defaultTimeout,label:"image-properties-changeSize"})})),u.setFooter([n.remove,n.check]),u.setSize(this.j.o.image.dialogWidth)}},t.prototype.updateValues=function(){var e,t,o=this,r=this.j.o,n=this.state.image,s=a.refs(this.form),l=s.marginTop,c=s.marginRight,u=s.marginBottom,d=s.marginLeft,p=s.imageSrc,h=s.id,m=s.classes,v=s.align,g=s.style,y=s.imageTitle,b=s.imageAlt,_=s.borderRadius,w=s.imageLink,S=s.imageWidth,C=s.imageHeight,k=s.imageLinkOpenInNewTab,j=s.imageViewSrc,E=s.lockSize;s.lockMargin.checked=o.state.marginIsLocked,E.checked=o.state.sizeIsLocked,p.value=a.attr(n,"src")||"",j&&a.attr(j,"src",a.attr(n,"src")||""),function(){y.value=a.attr(n,"title")||"",b.value=a.attr(n,"alt")||"";var e=i.Dom.closest(n,"a",o.j.editor);e?(w.value=a.attr(e,"href")||"",k.checked="_blank"===a.attr(e,"target")):(w.value="",k.checked=!1)}(),e=a.attr(n,"width")||a.css(n,"width",void 0,!0)||!1,t=a.attr(n,"height")||a.css(n,"height",void 0,!0)||!1,S.value=!1!==e?f(e).toString():n.offsetWidth.toString(),C.value=!1!==t?f(t).toString():n.offsetHeight.toString(),o.state.sizeIsLocked=function(){if(!a.isNumeric(S.value)||!a.isNumeric(C.value))return!1;var e=parseFloat(S.value),t=parseFloat(C.value);return 1>Math.abs(e-t*o.state.ratio)}(),function(){if(r.image.editMargins){var e=!0,t=!1;[l,c,u,d].forEach((function(o){var r=a.attr(o,"data-ref")||"",i=n.style.getPropertyValue(a.kebabCase(r));if(!i)return t=!0,void(o.value="");/^[0-9]+(px)?$/.test(i)&&(i=parseInt(i,10)),o.value=i.toString()||"",(t&&o.value||e&&"marginTop"!==r&&o.value!==l.value)&&(e=!1)})),o.state.marginIsLocked=e}}(),m.value=(a.attr(n,"class")||"").replace(/jodit_focused_image[\s]*/,""),h.value=a.attr(n,"id")||"",_.value=(parseInt(n.style.borderRadius||"0",10)||"0").toString(),n.style.cssFloat&&-1!==["left","right"].indexOf(n.style.cssFloat.toLowerCase())?v.value=a.css(n,"float"):"block"===a.css(n,"display")&&"auto"===n.style.marginLeft&&"auto"===n.style.marginRight&&(v.value="center"),g.value=a.attr(n,"style")||""},t.prototype.onApply=function(){var e=a.refs(this.form),t=e.imageSrc,o=e.borderRadius,r=e.imageTitle,n=e.imageAlt,s=e.imageLink,l=e.imageWidth,c=e.imageHeight,u=e.marginTop,d=e.marginRight,f=e.marginBottom,h=e.marginLeft,m=e.imageLinkOpenInNewTab,v=e.align,g=e.classes,y=e.id,b=this.j.o,_=this.state.image;if(b.image.editStyle&&a.attr(_,"style",e.style.value||null),!t.value)return i.Dom.safeRemove(_),void this.dialog.close();a.attr(_,"src",t.value),_.style.borderRadius="0"!==o.value&&/^[0-9]+$/.test(o.value)?o.value+"px":"",a.attr(_,"title",r.value||null),a.attr(_,"alt",n.value||null);var w=i.Dom.closest(_,"a",this.j.editor);s.value?(w||(w=i.Dom.wrap(_,"a",this.j)),a.attr(w,"href",s.value),a.attr(w,"target",m.checked?"_blank":null)):w&&w.parentNode&&w.parentNode.replaceChild(_,w),l.value===_.offsetWidth.toString()&&c.value===_.offsetHeight.toString()||(a.css(_,{width:a.trim(l.value)?p(l.value):null,height:a.trim(c.value)?p(c.value):null}),a.attr(_,"width",null),a.attr(_,"height",null));var S=[u,d,f,h];b.image.editMargins&&(this.state.marginIsLocked?a.css(_,"margin",p(u.value)):S.forEach((function(e){var t=a.attr(e,"data-ref")||"";a.css(_,t,p(e.value))}))),b.image.editClass&&a.attr(_,"class",g.value||null),b.image.editId&&a.attr(_,"id",y.value||null),b.image.editAlign&&(v.value?["right","left"].includes(v.value.toLowerCase())?(a.css(_,"float",v.value),a.clearCenterAlign(_)):a.css(_,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):(a.css(_,"float")&&-1!==["right","left"].indexOf(a.css(_,"float").toString().toLowerCase())&&a.css(_,"float",""),a.clearCenterAlign(_))),this.j.setEditorValue(),this.dialog.close()},t.prototype.openImageEditor=function(){var e=this,t=a.attr(this.state.image,"src")||"",o=this.j.c.element("a"),r=function(){o.host===location.host||i.Confirm(e.j.i18n("You can only edit your own images. Download this image on the host?"),(function(t){t&&e.j.uploader&&e.j.uploader.uploadRemoteImage(o.href.toString(),(function(t){i.Alert(e.j.i18n("The image has been successfully uploaded to the host!"),(function(){a.isString(t.newfilename)&&(a.attr(e.state.image,"src",t.baseurl+t.newfilename),e.updateValues())})).bindDestruct(e.j)}),(function(t){i.Alert(e.j.i18n("There was an error loading %s",t.message)).bindDestruct(e.j)}))})).bindDestruct(e.j)};o.href=t,this.j.filebrowser.dataProvider.getPathByUrl(o.href.toString()).then((function(r){d.openImageEditor.call(e.j.filebrowser,o.href,r.name,r.path,r.source,(function(){var o=(new Date).getTime();a.attr(e.state.image,"src",t+(-1!==t.indexOf("?")?"":"?")+"&_tmp="+o.toString()),e.updateValues()}),(function(t){i.Alert(t.message).bindDestruct(e.j)}))})).catch((function(t){i.Alert(t.message,r).bindDestruct(e.j)}))},t.prototype.openImagePopup=function(e){var t=this,o=new i.Popup(this.j),r=a.refs(this.form).changeImage;o.setZIndex(this.dialog.getZIndex()+1),o.setContent(s.FileSelectorWidget(this.j,{upload:function(e){e.files&&e.files.length&&a.attr(t.state.image,"src",e.baseurl+e.files[0]),t.updateValues(),o.close()},filebrowser:function(e){e&&a.isArray(e.files)&&e.files.length&&(a.attr(t.state.image,"src",e.files[0]),o.close(),t.updateValues())}},this.state.image,o.close)).open((function(){return a.position(r)})),e.stopPropagation()},t.prototype.afterInit=function(e){var t=this,o=this;e.e.on("afterConstructor changePlace",(function(){e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",(function(t){var r=t.target;i.Dom.isTag(r,"img")&&(e.o.image.openOnDblClick?(o.state.image=r,e.o.readonly||(t.stopImmediatePropagation(),t.preventDefault(),o.open())):(t.stopImmediatePropagation(),e.s.select(r)))}))})).on("openImageProperties.imageproperties",(function(e){t.state.image=e,t.open()}))},t.prototype.beforeDestruct=function(e){this.dialog&&this.dialog.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")},r.__decorate([u.watch("state.marginIsLocked")],t.prototype,"onChangeMarginIsLocked",null),r.__decorate([u.watch("state.sizeIsLocked")],t.prototype,"onChangeSizeIsLocked",null),r.__decorate([u.autobind],t.prototype,"onApply",null),r.__decorate([u.autobind],t.prototype,"openImageEditor",null),r.__decorate([u.autobind],t.prototype,"openImagePopup",null),t}(i.Plugin);t.imageProperties=h},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(7);r.__exportStar(o(278),t),r.__exportStar(o(279),t),r.__exportStar(o(280),t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.form=void 0;var r=o(76);t.form=function(e){var t=e.o.image,o=t.showPreview,n=t.editSize,i=r.Icon.get.bind(r.Icon);return e.c.fromHTML('
\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t'+i("lock")+'\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t
\n\t
')}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mainTab=void 0;var r=o(76);t.mainTab=function(e){var t=e.o,o=e.i18n.bind(e),n=r.Icon.get.bind(r.Icon),i=t.filebrowser.ajax.url||t.uploader.url,a=t.image.useImageEditor;return e.c.fromHTML('
\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t'+n("image")+'\n\t\t\t\t\t\t'+n("crop")+'\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t\t
\n\t\t\t\n\t\t\t\n\t\t
\n\t\t
\n\t\t\t\n\t\t\t\n\t\t
\n\t\t
\n\t\t\t\n\t\t\t\n\t\t
\n\t\t
\n\t\t\t\n\t\t
")}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.positionTab=void 0;var r=o(76);t.positionTab=function(e){var t=e.o,o=e.i18n.bind(e),n=r.Icon.get.bind(r.Icon);return e.c.fromHTML('
\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t'+n("lock")+'\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t\t
\n\t\t\t\n\t\t\t\n\t\t
\n\t\t
\n\t\t\t\n\t\t\t\n\t\t
\n\t\t
\n\t\t\t\n\t\t\t\n\t\t
\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t
\n\t\t\n\t\t\t\n\t\t\t\n\t\t")}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imageProcessor=void 0;var r=o(22);t.imageProcessor=function(e){e.e.on("change afterInit changePlace",e.async.debounce((function(){e.editor&&r.$$("img",e.editor).forEach((function(t){t.__jodit_imageprocessor_binded||(t.__jodit_imageprocessor_binded=!0,t.complete||t.addEventListener("load",(function o(){var r;!e.isInDestruct&&(null===(r=e.e)||void 0===r||r.fire("resize")),t.removeEventListener("load",o)})),e.e.on(t,"mousedown touchstart",(function(){e.s.select(t)})))}))}),e.defaultTimeout))}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.image=void 0;var r=o(7),n=o(35),i=o(22),a=o(257);o(8).Config.prototype.controls.image={popup:function(e,t,o,s){var l=null;t&&!n.Dom.isText(t)&&n.Dom.isHTMLElement(t,e.ew)&&(n.Dom.isTag(t,"img")||i.$$("img",t).length)&&(l=n.Dom.isTag(t,"img")?t:i.$$("img",t)[0]);var c=e.s.save();return a.FileSelectorWidget(e,{filebrowser:function(t){e.s.restore(c),t.files&&t.files.forEach((function(o){return e.s.insertImage(t.baseurl+o,null,e.o.imageDefaultWidth)})),s()},upload:!0,url:function(t,o){return r.__awaiter(void 0,void 0,void 0,(function(){var n;return r.__generator(this,(function(r){switch(r.label){case 0:return e.s.restore(c),(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:r.sent(),r.label=2;case 2:return s(),[2]}}))}))}},l,s)},tags:["img"],tooltip:"Insert Image"},t.image=function(e){e.registerButton({name:"image",group:"media"})}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.indent=void 0;var r=o(8),n=o(9),i=o(35),a=o(22);r.Config.prototype.controls.indent={tooltip:"Increase Indent"};var s=function(e){return"rtl"===e?"marginRight":"marginLeft"};r.Config.prototype.controls.outdent={isDisabled:function(e){var t=e.s.current();if(t){var o=i.Dom.closest(t,(function(t){return i.Dom.isBlock(t,e.ew)}),e.editor),r=s(e.o.direction);if(o&&o.style&&o.style[r])return 0>=parseInt(o.style[r],10)}return!0},tooltip:"Decrease Indent"},r.Config.prototype.indentMargin=10,t.indent=function(e){var t=s(e.o.direction);e.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});var o=function(o){var r=[];return e.s.eachSelection((function(s){var l=e.s.save(),c=!!s&&i.Dom.up(s,(function(t){return i.Dom.isBlock(t,e.ew)}),e.editor),u=e.o.enter;if(!c&&s&&(c=i.Dom.wrapInline(s,u!==n.BR?u:n.PARAGRAPH,e)),!c)return e.s.restore(l),!1;var d=-1!==r.indexOf(c);if(c&&c.style&&!d){r.push(c);var p=c.style[t]?parseInt(c.style[t],10):0;c.style[t]=(p+=e.o.indentMargin*("outdent"===o?-1:1))>0?p+"px":"",a.attr(c,"style")||c.removeAttribute("style")}e.s.restore(l)})),e.setEditorValue(),!1};e.registerCommand("indent",{exec:o,hotkeys:["ctrl+]","cmd+]"]}),e.registerCommand("outdent",{exec:o,hotkeys:["ctrl+[","cmd+["]})}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o(7).__exportStar(o(285),t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hr=void 0;var r=o(8),n=o(35);r.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},t.hr=function(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",(function(){var t=e.createInside.element("hr");e.s.insertNode(t,!1,!1);var o=n.Dom.closest(t.parentElement,(function(t){return n.Dom.isBlock(t,e.ew)}),e.editor);o&&n.Dom.isEmpty(o)&&o!==e.editor&&(n.Dom.after(o,t),n.Dom.safeRemove(o));var r=n.Dom.next(t,(function(t){return n.Dom.isBlock(t,e.ew)}),e.editor,!1);return r||(r=e.createInside.element(e.o.enter),n.Dom.after(t,r)),e.s.setCursorIn(r),!1}))}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inlinePopup=void 0;var r=o(7);o(287),o(288);var n=o(185),i=o(174),a=o(116),s=o(22),l=o(10),c=o(100),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=null,t.popup=new a.Popup(t.jodit),t.toolbar=i.makeCollection(t.jodit,t.popup),t.snapRange=null,t}return r.__extends(t,e),t.prototype.onClick=function(e){var t=this,o=e.target,r=s.keys(this.j.o.popup,!1),n=l.Dom.isTag(o,"img")?o:l.Dom.closest(o,r,this.j.editor);n&&this.canShowPopupForType(n.nodeName.toLowerCase())&&this.showPopup((function(){return s.position(n,t.j)}),n.nodeName.toLowerCase(),n)},t.prototype.showPopup=function(e,t,o){if(t=t.toLowerCase(),!this.canShowPopupForType(t))return!1;if(this.type!==t||o!==this.previousTarget){this.previousTarget=o;var r=this.j.o.popup[t],n=void 0;n=s.isFunction(r)?r(this.j,o,this.popup.close):r,s.isArray(n)&&(this.toolbar.build(n,o),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,n=this.toolbar.container),this.popup.setContent(n),this.type=t}return this.popup.open(e),!0},t.prototype.hidePopup=function(e){e&&e!==this.type||this.popup.close()},t.prototype.canShowPopupForType=function(e){var t=this.j.o.popup[e.toLowerCase()];return!(this.j.o.readonly||!this.j.o.toolbarInline||!t||this.isExcludedTarget(e))},t.prototype.isExcludedTarget=function(e){return s.splitArray(this.j.o.toolbarInlineDisableFor).map((function(e){return e.toLowerCase()})).includes(e.toLowerCase())},t.prototype.afterInit=function(e){var t=this;this.j.e.on("getDiffButtons.mobile",(function(o){if(t.toolbar===o){var r=t.toolbar.getButtonsNames();return s.toArray(e.registeredButtons).filter((function(e){return!t.j.o.toolbarInlineDisabledButtons.includes(e.name)})).filter((function(e){var t=s.isString(e)?e:e.name;return t&&"|"!==t&&"\n"!==t&&!r.includes(t)}))}})).on("hidePopup",this.hidePopup).on("showPopup",(function(e,o,r){t.showPopup(o,r||(s.isString(e)?e:e.nodeName),s.isString(e)?void 0:e)})).on("click",this.onClick).on("mousedown keydown",this.onSelectionStart).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd)},t.prototype.onSelectionStart=function(){this.snapRange=this.j.s.range.cloneRange()},t.prototype.onSelectionEnd=function(e){if(!(e&&e.target&&l.UIElement.closestElement(e.target,a.Popup))){var t=this.snapRange,o=this.j.s.range;t&&!o.collapsed&&o.startContainer===t.startContainer&&o.startOffset===t.startOffset&&o.endContainer===t.endContainer&&o.endOffset===t.endOffset||this.onSelectionChange()}},t.prototype.onSelectionChange=function(){if(this.j.o.toolbarInlineForSelection){var e="selection",t=this.j.s.sel,o=this.j.s.range;(null==t?void 0:t.isCollapsed)||this.isSelectedTarget(o)||this.tableModule.getAllSelectedCells().length?this.type===e&&this.popup.isOpened&&this.hidePopup():this.j.s.current()&&this.showPopup((function(){return o.getBoundingClientRect()}),e)}},t.prototype.isSelectedTarget=function(e){var t=e.startContainer;return l.Dom.isElement(t)&&t===e.endContainer&&l.Dom.isTag(t.childNodes[e.startOffset],s.keys(this.j.o.popup,!1))&&e.startOffset===e.endOffset-1},Object.defineProperty(t.prototype,"tableModule",{get:function(){return this.j.getInstance("Table",this.j.o)},enumerable:!1,configurable:!0}),t.prototype.beforeDestruct=function(e){e.e.off("showPopup").off("click",this.onClick).off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd)},r.__decorate([c.autobind],t.prototype,"onClick",null),r.__decorate([c.wait((function(e){return!e.j.isLocked}))],t.prototype,"showPopup",null),r.__decorate([c.autobind],t.prototype,"hidePopup",null),r.__decorate([c.autobind],t.prototype,"onSelectionStart",null),r.__decorate([c.autobind],t.prototype,"onSelectionEnd",null),r.__decorate([c.debounce((function(e){return e.defaultTimeout}))],t.prototype,"onSelectionChange",null),t}(n.Plugin);t.inlinePopup=u},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(8);r.Config.prototype.toolbarInline=!0,r.Config.prototype.toolbarInlineForSelection=!1,r.Config.prototype.toolbarInlineDisableFor=[],r.Config.prototype.toolbarInlineDisabledButtons=["source"],r.Config.prototype.popup={a:o(289).Z,img:o(290).Z,cells:o(291).Z,jodit:[{name:"bin",tooltip:"Delete",exec:function(e,t){t&&e.s.removeNode(t)}}],"jodit-media":[{name:"bin",tooltip:"Delete",exec:function(e,t){t&&e.s.removeNode(t)}}],selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]}},(e,t,o)=>{"use strict";var r=o(23);t.Z=[{name:"eye",tooltip:"Open link",exec:function(e,t){var o=r.attr(t,"href");t&&o&&e.ow.open(o)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},(e,t,o)=>{"use strict";var r=o(35),n=o(37),i=o(22);t.Z=[{name:"delete",icon:"bin",tooltip:"Delete",exec:function(e,t){t&&e.s.removeNode(t)}},{name:"pencil",exec:function(e,t){"img"===t.tagName.toLowerCase()&&e.e.fire("openImageProperties",t)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec:function(e,t,o){var a=o.control;if(r.Dom.isTag(t,"img")){var s=a.args&&n.isString(a.args[0])?a.args[0].toLowerCase():"";if(!s)return!1;i.css(t,"vertical-align","normal"===s?"":s),e.e.fire("recalcPositionPopup")}}},{name:"left",childTemplate:function(e,t,o){return o},list:["Left","Right","Center","Normal"],exec:function(e,t,o){var a=o.control;if(r.Dom.isTag(t,"img")){var s=a.args&&n.isString(a.args[0])?a.args[0].toLowerCase():"";if(!s)return!1;"normal"!==s?-1!==["right","left"].indexOf(s)?(i.css(t,"float",s),i.clearCenterAlign(t)):(i.css(t,"float",""),i.css(t,{display:"block","margin-left":"auto","margin-right":"auto"})):(i.css(t,"float")&&-1!==["right","left"].indexOf(i.css(t,"float").toLowerCase())&&i.css(t,"float",""),i.clearCenterAlign(t)),e.setEditorValue(),e.e.fire("recalcPositionPopup")}},tooltip:"Horizontal align"}]},(e,t,o)=>{"use strict";var r=o(37),n=o(22),i=o(257),a=function(e){return e.args&&r.isString(e.args[0])?e.args[0].toLowerCase():""};t.Z=[{name:"brush",popup:function(e){if(r.isJoditObject(e)){var t=e.getInstance("Table",e.o).getAllSelectedCells();if(!t.length)return!1;var o=n.css(t[0],"color"),a=n.css(t[0],"background-color"),s=n.css(t[0],"border-color"),l=i.ColorPickerWidget(e,(function(o){t.forEach((function(e){n.css(e,"background-color",o)})),e.setEditorValue()}),a),c=i.ColorPickerWidget(e,(function(o){t.forEach((function(e){n.css(e,"color",o)})),e.setEditorValue()}),o),u=i.ColorPickerWidget(e,(function(o){t.forEach((function(e){n.css(e,"border-color",o)})),e.setEditorValue()}),s);return i.TabsWidget(e,[{name:"Background",content:l},{name:"Text",content:c},{name:"Border",content:u}])}},tooltip:"Background"},{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:function(e,t,o){return o},exec:function(e,t,o){var r=a(o.control);e.getInstance("Table",e.o).getAllSelectedCells().forEach((function(e){n.css(e,"vertical-align","normal"===r?"":r)}))},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},"\n",{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec:function(e,t,o){var n=o.control;if(r.isJoditObject(e)){var i=a(n);e.execCommand(i,!1,t)}},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec:function(e,t,o){var n=o.control;if(r.isJoditObject(e)){var i=a(n);e.execCommand(i,!1,t)}},tooltip:"Add row"},{name:"delete",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec:function(e,t,o){var n=o.control;if(r.isJoditObject(e)){var i=a(n);e.execCommand(i,!1,t),e.e.fire("hidePopup")}},tooltip:"Delete"}]},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.justify=t.alignElement=t.clearAlign=void 0;var r=o(8),n=o(10),i=o(22);r.Config.prototype.controls.align={name:"left",tooltip:"Align",update:function(e){var t=e.j,o=e.control,r=t.s.current();if(r){var a=n.Dom.closest(r,(function(e){return n.Dom.isBlock(e,t.ew)}),t.editor)||t.editor,s=i.css(a,"text-align").toString();o.defaultValue&&-1!==o.defaultValue.indexOf(s)&&(s="left"),o.data&&o.data.currentValue!==s&&o.list&&-1!==o.list.indexOf(s)&&(t.o.textIcons?e.state.text=s:e.state.icon.name=s,o.data.currentValue=s)}},isActive:function(e,t){var o=e.s.current();if(o&&t.defaultValue){var r=n.Dom.closest(o,(function(t){return n.Dom.isBlock(t,e.ew)}),e.editor)||e.editor;return-1===t.defaultValue.indexOf(i.css(r,"text-align").toString())}return!1},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},r.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},r.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},r.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},r.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},t.clearAlign=function(e,t){n.Dom.each(e,(function(e){n.Dom.isHTMLElement(e,t.ew)&&e.style.textAlign&&(e.style.textAlign="",e.style.cssText.trim().length||e.removeAttribute("style"))}))},t.alignElement=function(e,o,r){if(n.Dom.isNode(o,r.ew)&&n.Dom.isElement(o))switch(t.clearAlign(o,r),e.toLowerCase()){case"justifyfull":o.style.textAlign="justify";break;case"justifyright":o.style.textAlign="right";break;case"justifyleft":o.style.textAlign="left";break;case"justifycenter":o.style.textAlign="center"}},t.justify=function(e){e.registerButton({name:"align",group:"indent"});var o=function(o){return e.s.focus(),e.s.eachSelection((function(r){if(r){var i=n.Dom.up(r,(function(t){return n.Dom.isBlock(t,e.ew)}),e.editor);i||(i=n.Dom.wrapInline(r,e.o.enterBlock,e)),t.alignElement(o,i,e)}})),!1};e.registerCommand("justifyfull",o),e.registerCommand("justifyright",o),e.registerCommand("justifyleft",o),e.registerCommand("justifycenter",o)}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.limit=void 0;var r=o(7),n=o(8),i=o(185),a=o(9),s=o(22),l=o(100);n.Config.prototype.limitWords=!1,n.Config.prototype.limitChars=!1,n.Config.prototype.limitHTML=!1;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.afterInit=function(e){var t=this,o=e.o;if(e&&(o.limitWords||o.limitChars)){var r=null;e.e.off(".limit").on("beforePaste.limit",(function(){r=e.observer.snapshot.make()})).on("keydown.limit keyup.limit beforeEnter.limit beforePaste.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",(function(){if(t.shouldPreventInsertHTML()&&r)return e.observer.snapshot.restore(r),!1}))}},t.prototype.shouldPreventInsertHTML=function(e,t){if(void 0===e&&(e=null),void 0===t&&(t=""),e&&a.COMMAND_KEYS.includes(e.key))return!1;var o=this.jodit,r=o.o,n=r.limitWords,i=r.limitChars,s=this.splitWords(t||(o.o.limitHTML?o.value:o.text));return!(!n||n>s.length)||Boolean(i)&&s.join("").length>=i},t.prototype.checkPreventKeyPressOrPaste=function(e){if(this.shouldPreventInsertHTML(e))return!1},t.prototype.checkPreventChanging=function(e,t){var o=this.jodit,r=o.o,n=r.limitWords,i=r.limitChars,a=o.o.limitHTML?e:s.stripTags(e),l=this.splitWords(a);(n&&l.length>n||Boolean(i)&&l.join("").length>i)&&(o.value=t)},t.prototype.splitWords=function(e){return e.replace(a.INVISIBLE_SPACE_REG_EXP(),"").split(a.SPACE_REG_EXP()).filter((function(e){return e.length}))},t.prototype.beforeDestruct=function(e){e.e.off(".limit")},r.__decorate([l.autobind],t.prototype,"checkPreventKeyPressOrPaste",null),r.__decorate([l.autobind],t.prototype,"checkPreventChanging",null),t}(i.Plugin);t.limit=c},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.link=void 0;var r=o(7),n=o(8),i=o(35),a=o(22),s=o(295),l=o(185),c=o(100),u=o(10);n.Config.prototype.link={formTemplate:s.formTemplate,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},n.Config.prototype.controls.unlink={exec:function(e,t){var o=i.Dom.closest(t,"a",e.editor);o&&i.Dom.unwrap(o),e.setEditorValue(),e.e.fire("hidePopup")},tooltip:"Unlink"},n.Config.prototype.controls.link={isActive:function(e){var t=e.s.current();return Boolean(t&&i.Dom.closest(t,"a",e.editor))},popup:function(e,t,o,r){return e.e.fire("generateLinkForm.link",t,r)},tags:["a"],tooltip:"Insert link"};var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttons=[{name:"link",group:"insert"}],t}return r.__extends(t,e),t.prototype.afterInit=function(e){var t=this;e.o.link.followOnDblClick&&e.e.on("dblclick.link",this.onDblClickOnLink),e.o.link.processPastedLink&&e.e.on("processPaste.link",this.onProcessPasteLink),e.e.on("generateLinkForm.link",this.generateForm),e.registerCommand("openLinkDialog",{exec:function(){var o=new u.Dialog({resizable:!1}),r=t.generateForm(e.s.current(),(function(){o.close()}));r.container.classList.add("jodit-dialog_alert"),o.setContent(r),o.open(),e.async.requestIdleCallback((function(){var e=a.refs(r.container).url_input;null==e||e.focus()}))},hotkeys:e.o.link.hotkeys})},t.prototype.onDblClickOnLink=function(e){if(i.Dom.isTag(e.target,"a")){var t=a.attr(e.target,"href");t&&(location.href=t,e.preventDefault())}},t.prototype.onProcessPasteLink=function(e,t){var o=this.jodit;if(a.isURL(t)){if(o.o.link.processVideoLink){var r=a.convertMediaUrlToVideoEmbed(t);if(r!==t)return o.createInside.fromHTML(r)}var n=o.createInside.element("a");return n.setAttribute("href",t),n.textContent=t,o.e.stopPropagation("processPaste"),n}},t.prototype.generateForm=function(e,t){var o,r=this.jodit,n=r.i18n.bind(r),s=r.o.link,l=s.openInNewTabCheckbox,c=s.noFollowCheckbox,u=s.formClassName,d=s.modeClassName,p=(0,s.formTemplate)(r),f=a.isString(p)?r.c.fromHTML(p,{target_checkbox_box:l,nofollow_checkbox_box:c}):p,h=i.Dom.isElement(f)?f:f.container,m=a.refs(h),v=m.insert,g=m.unlink,y=m.content_input_box,b=m.target_checkbox,_=m.nofollow_checkbox,w=m.url_input,S=i.Dom.isImage(e,r.ew),C=m.content_input,k=m.className_input,j=m.className_select;C||(C=r.c.element("input",{type:"hidden",ref:"content_input"})),u&&h.classList.add(u),S&&i.Dom.hide(y);var E=function(){return o?o.innerText:a.stripTags(r.s.range.cloneContents(),r.ed)};if(o=!(!e||!i.Dom.closest(e,"a",r.editor))&&i.Dom.closest(e,"a",r.editor),!S&&e&&(C.value=E()),o){if(w.value=a.attr(o,"href")||"",d)switch(d){case"input":k&&(k.value=a.attr(o,"class")||"");break;case"select":if(j){for(var I=0;j.selectedOptions.length>I;I++){var x=j.options.item(I);x&&(x.selected=!1)}(a.attr(o,"class")||"").split(" ").forEach((function(e){if(e)for(var t=0;j.options.length>t;t++){var o=j.options.item(t);(null==o?void 0:o.value)&&o.value===e&&(o.selected=!0)}}))}}l&&b&&(b.checked="_blank"===a.attr(o,"target")),c&&_&&(_.checked="nofollow"===a.attr(o,"rel")),v.textContent=n("Update")}else i.Dom.hide(g);var T=r.observer.snapshot.make();g&&r.e.on(g,"click",(function(e){r.observer.snapshot.restore(T),o&&i.Dom.unwrap(o),r.setEditorValue(),t(),e.preventDefault()}));var P=function(){if(!w.value.trim().length)return w.focus(),w.classList.add("jodit_error"),!1;var e;r.observer.snapshot.restore(T);var n=E()!==C.value.trim();if(o)e=[o];else if(r.s.isCollapsed()){var i=r.createInside.element("a");r.s.insertNode(i),e=[i]}else e=r.s.wrapInTag("a");return e.forEach((function(e){var t;if(a.attr(e,"href",w.value),d&&(null!=k?k:j))if("input"===d)""===k.value&&e.hasAttribute("class")&&a.attr(e,"class",null),""!==k.value&&a.attr(e,"class",k.value);else if("select"===d){e.hasAttribute("class")&&a.attr(e,"class",null);for(var o=0;j.selectedOptions.length>o;o++){var r=null===(t=j.selectedOptions.item(o))||void 0===t?void 0:t.value;r&&e.classList.add(r)}}S||(C.value.trim().length?n&&(e.textContent=C.value):e.textContent=w.value),l&&b&&a.attr(e,"target",b.checked?"_blank":null),c&&_&&a.attr(e,"rel",_.checked?"nofollow":null)})),r.setEditorValue(),t(),!1};return i.Dom.isElement(f)?r.e.on(f,"submit",(function(e){return e.preventDefault(),e.stopImmediatePropagation(),P(),!1})):f.onSubmit(P),f},t.prototype.beforeDestruct=function(e){e.e.off("generateLinkForm.link",this.generateForm).off("dblclick.link",this.onDblClickOnLink).off("processPaste.link",this.onProcessPasteLink)},r.__decorate([c.autobind],t.prototype,"onDblClickOnLink",null),r.__decorate([c.autobind],t.prototype,"onProcessPasteLink",null),r.__decorate([c.autobind],t.prototype,"generateForm",null),t}(l.Plugin);t.link=d},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formTemplate=void 0;var r=o(119),n=o(93);t.formTemplate=function(e){var t=e.o.link,o=t.openInNewTabCheckbox,i=t.noFollowCheckbox,a=t.modeClassName,s=t.selectSizeClassName,l=t.selectMultipleClassName,c=t.selectOptionsClassName;return new r.UIForm(e,[new r.UIBlock(e,[new r.UIInput(e,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new r.UIBlock(e,[new r.UIInput(e,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),a?new r.UIBlock(e,["input"===a?new r.UIInput(e,{name:"className",ref:"className_input",label:"Class name"}):"select"===a?new r.UISelect(e,{name:"className",ref:"className_select",label:"Class name",size:s,multiple:l,options:c}):null]):null,o?new r.UICheckbox(e,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,i?new r.UICheckbox(e,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new r.UIBlock(e,[new n.UIButton(e,{name:"unlink",status:"default",text:"Unlink"}),new n.UIButton(e,{name:"insert",type:"submit",status:"primary",text:"Insert"})],{align:"full"})])}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(7);r.__exportStar(o(297),t),r.__exportStar(o(298),t),r.__exportStar(o(300),t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.media=void 0;var r=o(8),n=o(9),i=o(22);r.Config.prototype.mediaFakeTag="jodit-media",r.Config.prototype.mediaInFakeBlock=!0,r.Config.prototype.mediaBlocks=["video","audio"],t.media=function(e){var t="jodit_fake_wrapper",o=e.options,r=o.mediaFakeTag,a=o.mediaBlocks;o.mediaInFakeBlock&&e.e.on("afterGetValueFromEditor",(function(e){var o=new RegExp("<"+r+"[^>]+data-"+t+"[^>]+>(.+?)","ig");o.test(e.value)&&(e.value=e.value.replace(o,"$1"))})).on("change afterInit afterSetMode changePlace",e.async.debounce((function(){e.isDestructed||e.getMode()===n.MODE_SOURCE||i.$$(a.join(","),e.editor).forEach((function(o){i.dataBind(o,t)||(i.dataBind(o,t,!0),function(o){if(o.parentNode&&i.attr(o.parentNode,"data-jodit_iframe_wrapper"))o=o.parentNode;else{var n=e.createInside.fromHTML("<"+r+' data-jodit-temp="1" contenteditable="false" draggable="true" data-'+t+'="1">");n.style.display="inline-block"===o.style.display?"inline-block":"block",n.style.width=o.offsetWidth+"px",n.style.height=o.offsetHeight+"px",o.parentNode&&o.parentNode.insertBefore(n,o),n.appendChild(o),o=n}e.e.off(o,"mousedown.select touchstart.select").on(o,"mousedown.select touchstart.select",(function(){e.s.setCursorAfter(o)}))}(o))}))}),e.defaultTimeout))}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.video=void 0,o(299),t.video=function(e){e.registerButton({name:"video",group:"media"})}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(8),n=o(257),i=o(22),a=o(119),s=o(93);r.Config.prototype.controls.video={popup:function(e,t,o,r){var l=new a.UIForm(e,[new a.UIBlock(e,[new a.UIInput(e,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new a.UIBlock(e,[s.Button(e,"","Insert","primary").onAction((function(){return l.submit()}))])]),c=new a.UIForm(e,[new a.UIBlock(e,[new a.UITextArea(e,{name:"code",required:!0,label:"Embed code"})]),new a.UIBlock(e,[s.Button(e,"","Insert","primary").onAction((function(){return c.submit()}))])]),u=[],d=e.s.save(),p=function(t){e.s.restore(d),e.s.insertHTML(t),r()};return u.push({icon:"link",name:"Link",content:l.container},{icon:"source",name:"Code",content:c.container}),l.onSubmit((function(e){p(i.convertMediaUrlToVideoEmbed(e.url))})),c.onSubmit((function(e){p(e.code)})),n.TabsWidget(e,u)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.file=void 0;var r=o(8),n=o(35),i=o(257);r.Config.prototype.controls.file={popup:function(e,t,o,r){var a=function(t,o){void 0===o&&(o=""),e.s.insertNode(e.createInside.fromHTML(''+(o||t)+""))},s=null;return t&&(n.Dom.isTag(t,"a")||n.Dom.closest(t,"a",e.editor))&&(s=n.Dom.isTag(t,"a")?t:n.Dom.closest(t,"a",e.editor)),i.FileSelectorWidget(e,{filebrowser:function(e){e.files&&e.files.forEach((function(t){return a(e.baseurl+t)})),r()},upload:!0,url:function(e,t){s?(s.setAttribute("href",e),s.setAttribute("title",t)):a(e,t),r()}},s,r,!1)},tags:["a"],tooltip:"Insert file"},t.file=function(e){e.registerButton({name:"file",group:"media"})}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mobile=void 0;var r=o(7),n=o(8),i=o(9),a=o(22),s=o(174),l=o(76),c=o(113);n.Config.prototype.mobileTapTimeout=300,n.Config.prototype.toolbarAdaptive=!0,n.Config.prototype.controls.dots={mode:i.MODE_SOURCE+i.MODE_WYSIWYG,popup:function(e,t,o,r,n){var i=o.data;return void 0===i&&(i={toolbar:s.makeCollection(e),rebuild:function(){var t;if(n){var o=e.e.fire("getDiffButtons.mobile",n.closest(l.UIList));if(o&&i){i.toolbar.build(a.splitArray(o));var r=(null===(t=e.toolbar.firstButton)||void 0===t?void 0:t.container.offsetWidth)||36;i.toolbar.container.style.width=3*(r+4)+"px"}}}},o.data=i),i.rebuild(),i.toolbar},tooltip:"Show all"},t.mobile=function(e){var t=0,o=a.splitArray(e.o.buttons);e.e.on("touchend",(function(o){if(o.changedTouches&&o.changedTouches.length){var r=(new Date).getTime();r-t>e.o.mobileTapTimeout&&(t=r,e.s.insertCursorAtPoint(o.changedTouches[0].clientX,o.changedTouches[0].clientY))}})).on("getDiffButtons.mobile",(function(t){if(t===e.toolbar){var n=a.splitArray(e.o.buttons),i=c.flatButtonsSet(o);return n.reduce((function(e,t){return c.isButtonGroup(t)?e.push(r.__assign(r.__assign({},t),{buttons:t.buttons.filter((function(e){return!i.has(e)}))})):i.has(t)||e.push(t),e}),[])}})),e.o.toolbarAdaptive&&e.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",(function(){if(e.o.toolbar){var t=e.container.offsetWidth,r=a.splitArray(e.o.sizeLG>t?e.o.sizeMD>t?e.o.sizeSM>t?e.o.buttonsXS:e.o.buttonsSM:e.o.buttonsMD:e.o.buttons);r.toString()!==o.toString()&&(o=r,e.e.fire("closeAllPopups"),e.toolbar.setRemoveButtons(e.o.removeButtons).build(o.concat(e.o.extraButtons)))}})).on(e.ow,"load",(function(){return e.e.fire("recalcAdaptive")}))}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.orderedList=void 0;var r=o(8),n=o(35),i=o(22),a=function(e,t,o){var r=o.control,n="button"+r.command,a=r.args&&r.args[0]||i.dataBind(e,n);i.dataBind(e,n,a),e.execCommand(r.command,!1,a)};r.Config.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:a},r.Config.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:a},t.orderedList=function(e){var t=function(e){return/insert(un)?orderedlist/i.test(e)},o=function(){return n.Dom.up(e.s.current(),(function(e){return e&&/^UL|OL$/i.test(e.nodeName)}),e.editor)},r=function(e,t){"default"!==t&&t?e.style.setProperty("list-style-type",t):e.style.removeProperty("list-style-type")};e.e.on("beforeCommand",(function(e,i,a){if(t(e)&&a){var s=o();if(s&&!function(e,t){var o=e.style.listStyleType;return o===t||!o&&"default"===t}(s,a)&&(n.Dom.isTag(s,"ul")&&/unordered/i.test(e)||n.Dom.isTag(s,"ol")&&!/unordered/i.test(e)))return r(s,a),!1}})).on("afterCommand",(function(a,s,l){if(t(a)){var c=o();c&&(r(c,l),e.createInside.applyCreateAttributes(c),c.querySelectorAll("li").forEach((function(t){e.createInside.applyCreateAttributes(t)})));var u=[],d=function(e){n.Dom.isTag(e,["p","h1","h2","h3","h4","h5","h6"])&&u.push(e)};if(c&&(d(c.parentNode),c.querySelectorAll("li").forEach((function(e){return d(e.firstChild)})),u.length)){var p=e.s.save();i.toArray(c.childNodes).forEach((function(e){n.Dom.isTag(e.lastChild,"br")&&n.Dom.safeRemove(e.lastChild)})),u.forEach((function(e){return n.Dom.unwrap(e)})),e.s.restore(p)}e.setEditorValue()}}))}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placeholder=t.isEditorEmpty=void 0;var r=o(7);o(304);var n=o(8),i=o(9),a=o(22),s=o(35),l=o(185),c=o(9),u=o(100);function d(e){if(!e.firstChild)return!0;var t=e.firstChild;if(c.MAY_BE_REMOVED_WITH_KEY.test(t.nodeName)||/^(TABLE)$/i.test(t.nodeName))return!1;var o=s.Dom.next(t,(function(e){return e&&!s.Dom.isEmptyTextNode(e)}),e);return s.Dom.isText(t)&&!o?s.Dom.isEmptyTextNode(t):!o&&s.Dom.each(t,(function(e){return!s.Dom.isTag(e,["ul","li","ol"])&&(s.Dom.isEmpty(e)||s.Dom.isTag(e,"br"))}))}n.Config.prototype.showPlaceholder=!0,n.Config.prototype.useInputsPlaceholder=!0,n.Config.prototype.placeholder="Type something",t.isEditorEmpty=d;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.addNativeListeners=function(){t.j.e.off(t.j.editor,"input.placeholder keydown.placeholder").on(t.j.editor,"input.placeholder keydown.placeholder",t.toggle)},t.addEvents=function(){var e=t.j;e.o.useInputsPlaceholder&&e.element.hasAttribute("placeholder")&&(t.placeholderElm.innerHTML=a.attr(e.element,"placeholder")||""),e.e.fire("placeholder",t.placeholderElm.innerHTML),e.e.off(".placeholder").on("changePlace.placeholder",t.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",t.toggle).on(window,"load",t.toggle),t.addNativeListeners(),t.toggle()},t}return r.__extends(t,e),t.prototype.afterInit=function(e){var t=this;e.o.showPlaceholder&&(this.placeholderElm=e.c.fromHTML('"),"rtl"===e.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),e.e.on("readonly",(function(e){e?t.hide():t.toggle()})).on("changePlace",this.addEvents),this.addEvents())},t.prototype.show=function(){var e=this.j;if(!e.o.readonly){var t=0,o=0,r=e.s.current(),n=r&&s.Dom.closest(r,(function(t){return s.Dom.isBlock(t,e.ew)}),e.editor)||e.editor,i=e.ew.getComputedStyle(n);if(e.workplace.appendChild(this.placeholderElm),s.Dom.isElement(e.editor.firstChild)){var l=e.ew.getComputedStyle(e.editor.firstChild);t=parseInt(l.getPropertyValue("margin-top"),10),o=parseInt(l.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(l.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=l.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(i.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=i.getPropertyValue("line-height");a.css(this.placeholderElm,{display:"block",textAlign:i.getPropertyValue("text-align"),marginTop:Math.max(parseInt(i.getPropertyValue("margin-top"),10),t),marginLeft:Math.max(parseInt(i.getPropertyValue("margin-left"),10),o)})}},t.prototype.hide=function(){s.Dom.safeRemove(this.placeholderElm)},t.prototype.toggle=function(){var e=this.j;e.editor&&!e.isInDestruct&&(e.getRealMode()===i.MODE_WYSIWYG&&d(e.editor)?this.show():this.hide())},t.prototype.beforeDestruct=function(e){this.hide(),e.e.off(".placeholder").off(window,"load",this.toggle)},r.__decorate([u.debounce((function(e){return e.defaultTimeout/10}),!0)],t.prototype,"toggle",null),t}(l.Plugin);t.placeholder=p},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.redoUndo=void 0;var r=o(7),n=o(8),i=o(9),a=o(185);n.Config.prototype.controls.redo={mode:i.MODE_SPLIT,isDisabled:function(e){return!e.observer.stack.canRedo()},tooltip:"Redo"},n.Config.prototype.controls.undo={mode:i.MODE_SPLIT,isDisabled:function(e){return!e.observer.stack.canUndo()},tooltip:"Undo"};var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttons=[{name:"undo",group:"history"},{name:"redo",group:"history"}],t}return r.__extends(t,e),t.prototype.beforeDestruct=function(){},t.prototype.afterInit=function(e){var t=function(t){return e.observer[t](),!1};e.registerCommand("redo",{exec:t,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),e.registerCommand("undo",{exec:t,hotkeys:["ctrl+z","cmd+z"]})},t}(a.Plugin);t.redoUndo=s},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resizer=void 0;var r=o(7);o(307);var n=o(8),i=o(9),a=o(9),s=o(35),l=o(22),c=o(185),u=o(33),d=o(100);n.Config.prototype.useIframeResizer=!0,n.Config.prototype.useTableResizer=!0,n.Config.prototype.useImageResizer=!0,n.Config.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,min_width:10,min_height:10};var p="__jodit-resizer_binded",f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.LOCK_KEY="resizer",t.element=null,t.isResized=!1,t.isShown=!1,t.start_x=0,t.start_y=0,t.width=0,t.height=0,t.ratio=0,t.rect=t.j.c.fromHTML('
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t100x100\n\t\t\t
'),t.sizeViewer=t.rect.getElementsByTagName("span")[0],t.onResize=function(e){if(t.isResized){var o=e.clientX-t.start_x,r=e.clientY-t.start_y;if(!t.element)return;var n=t.handle.className,i=0,a=0;s.Dom.isTag(t.element,"img")?(o?(i=t.width+(n.match(/left/)?-1:1)*o,a=Math.round(i/t.ratio)):(a=t.height+(n.match(/top/)?-1:1)*r,i=Math.round(a*t.ratio)),i>l.innerWidth(t.j.editor,t.j.ow)&&(i=l.innerWidth(t.j.editor,t.j.ow),a=Math.round(i/t.ratio))):(i=t.width+(n.match(/left/)?-1:1)*o,a=t.height+(n.match(/top/)?-1:1)*r),i>t.j.o.resizer.min_width&&l.css(t.element,"width",t.rect.parentNode.offsetWidth>i?i:"100%"),a>t.j.o.resizer.min_height&&l.css(t.element,"height",a),t.updateSize(),t.showSizeViewer(t.element.offsetWidth,t.element.offsetHeight),e.stopImmediatePropagation()}},t.onClickOutside=function(e){t.isShown&&(t.isResized?(t.j.unlock(),t.isResized=!1,t.j.setEditorValue(),e.stopImmediatePropagation(),t.j.e.off(t.j.ow,"mousemove.resizer touchmove.resizer",t.onResize)):t.hide())},t.onClickElement=function(e){t.element===e&&t.isShown||(t.element=e,t.show(),s.Dom.isTag(t.element,"img")&&!t.element.complete&&t.j.e.on(t.element,"load",t.updateSize))},t.updateSize=function(){if(!t.isInDestruct&&t.isShown&&t.element&&t.rect){var e=l.offset(t.rect.parentNode||t.j.od.documentElement,t.j,t.j.od,!0),o=l.offset(t.element,t.j,t.j.ed),r=parseInt(t.rect.style.left||"0",10),n=parseInt(t.rect.style.top||"0",10),i=o.top-1-e.top,a=o.left-1-e.left;n===i&&r===a&&t.rect.offsetWidth===t.element.offsetWidth&&t.rect.offsetHeight===t.element.offsetHeight||(l.css(t.rect,{top:i,left:a,width:t.element.offsetWidth,height:t.element.offsetHeight}),t.j.events&&(t.j.e.fire(t.element,"changesize"),isNaN(r)||t.j.e.fire("resize")))}},t.hideSizeViewer=function(){t.sizeViewer.style.opacity="0"},t}return r.__extends(t,e),t.prototype.afterInit=function(e){var t=this;l.$$("i",this.rect).forEach((function(o){e.e.on(o,"mousedown.resizer touchstart.resizer",t.onClickHandle.bind(t,o))})),u.eventEmitter.on("hideHelpers",this.hide),e.e.on("readonly",(function(e){e&&t.hide()})).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",(function(e){var t=/]+data-jodit_iframe_wrapper[^>]+>(.*?]+>.*?<\/iframe>.*?)<\/jodit>/gi;t.test(e.value)&&(e.value=e.value.replace(t,"$1"))})).on("hideResizer",this.hide).on("change afterInit afterSetMode",e.async.debounce(this.onChangeEditor.bind(this),e.defaultTimeout)),this.addEventListeners(),this.onChangeEditor()},t.prototype.addEventListeners=function(){var e=this,t=this.j;t.e.off(t.editor,".resizer").off(t.ow,".resizer").on(t.editor,"keydown.resizer",(function(t){e.isShown&&t.key===i.KEY_DELETE&&e.element&&!s.Dom.isTag(e.element,"table")&&e.onDelete(t)})).on(t.ow,"resize.resizer",this.updateSize).on(t.ow,"mouseup.resizer keydown.resizer touchend.resizer",this.onClickOutside).on([t.ow,t.editor],"scroll.resizer",(function(){e.isShown&&!e.isResized&&e.hide()}))},t.prototype.onClickHandle=function(e,t){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=e,t.preventDefault(),t.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResized=!0,this.start_x=t.clientX,this.start_y=t.clientY,this.j.e.fire("hidePopup"),this.j.lock(this.LOCK_KEY),this.j.e.on(this.j.ow,"mousemove.resizer touchmove.resizer",this.onResize)},t.prototype.onDelete=function(e){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(s.Dom.safeRemove(this.element),this.hide(),e.preventDefault()))},t.prototype.onChangeEditor=function(){var e=this,t=this.j;this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),t.isDestructed||l.$$("img, table, iframe",t.editor).forEach((function(o){t.getMode()!==i.MODE_SOURCE&&!o[p]&&(s.Dom.isTag(o,"iframe")&&t.o.useIframeResizer||s.Dom.isTag(o,"img")&&t.o.useImageResizer||s.Dom.isTag(o,"table")&&t.o.useTableResizer)&&(o[p]=!0,e.bind(o))}))},t.prototype.bind=function(e){var t,o=this;if(s.Dom.isTag(e,"iframe")){var r=e;l.attr(e.parentNode,"-jodit_iframe_wrapper")?e=e.parentNode:(t=this.j.createInside.fromHTML(''),l.css(t,{display:"inline-block"===e.style.display?"inline-block":"block",width:e.offsetWidth,height:e.offsetHeight}),e.parentNode&&e.parentNode.insertBefore(t,e),t.appendChild(e),e=t),this.j.e.off(e,"mousedown.select touchstart.select").on(e,"mousedown.select touchstart.select",(function(){o.j.s.select(e)})).off(e,"changesize").on(e,"changesize",(function(){r.setAttribute("width",e.offsetWidth+"px"),r.setAttribute("height",e.offsetHeight+"px")}))}this.j.e.on(e,"dragstart",this.hide).on(e,"mousedown",(function(t){a.IS_IE&&s.Dom.isTag(e,"img")&&t.preventDefault()})).on(e,"click",(function(){return o.onClickElement(e)}))},t.prototype.showSizeViewer=function(e,t){this.j.o.resizer.showSize&&(this.sizeViewer.offsetWidth>e||this.sizeViewer.offsetHeight>t?this.hideSizeViewer():(this.sizeViewer.style.opacity="1",this.sizeViewer.textContent=e+" x "+t,this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})))},t.prototype.show=function(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||(l.markOwner(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=l.css(this.j.container,"zIndex").toString()),this.updateSize())},t.prototype.hide=function(){this.isResized=!1,this.isShown=!1,this.element=null,s.Dom.safeRemove(this.rect)},t.prototype.beforeDestruct=function(e){this.hide(),u.eventEmitter.off("hideHelpers",this.hide),e.e.off(this.j.ow,".resizer").off(".resizer")},r.__decorate([d.autobind],t.prototype,"hide",null),t}(c.Plugin);t.resizer=f},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.search=void 0;var r=o(7);o(309);var n=o(8),i=o(9),a=o(9),s=o(35),l=o(185),c=o(76),u=o(22),d=o(100);n.Config.prototype.useSearch=!0,n.Config.prototype.controls.find={tooltip:"Find",icon:"search",exec:function(e,t,o){var r=o.control;switch(r.args&&r.args[0]){case"findPrevious":e.e.fire("searchPrevious");break;case"findNext":e.e.fire("searchNext");break;case"replace":e.execCommand("openReplaceDialog");break;default:e.execCommand("openSearchDialog")}},list:{search:"Find",findNext:"Find Next",findPrevious:"Find Previous",replace:"Replace"},childTemplate:function(e,t,o){return o}};var p=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o.buttons=[{name:"find",group:"search"}],o.template='",o.isOpened=!1,o.selInfo=null,o.current=null,o.eachMap=function(e,t,r){s.Dom.findWithCurrent(e,(function(e){return Boolean(e&&t(e))}),o.j.editor,r?"nextSibling":"previousSibling",r?"firstChild":"lastChild")},o.updateCounters=function(){if(o.isOpened){o.counterBox.style.display=o.queryInput.value.length?"inline-block":"none";var e=o.calcCounts(o.queryInput.value,o.j.s.range);o.counterBox.textContent=e.join("/")}},o.calcCounts=function(e,t){void 0===t&&(t=!1);for(var r=[],n=0,i=0,a=!1,s=o.j.editor.firstChild;s&&e.length;)if(a=o.find(s,e,!0,0,a||o.j.ed.createRange())){if(o.boundAlreadyWas(a,r))break;r.push(a),s=a.startContainer,i+=1,t&&o.boundAlreadyWas(t,[a])&&(n=i)}else s=null;return[n,i]},o.findAndReplace=function(e,t){var r=o.find(e,t,!0,0,o.j.s.range);if(r&&r.startContainer&&r.endContainer){var n=o.j.ed.createRange();try{if(r&&r.startContainer&&r.endContainer){n.setStart(r.startContainer,r.startOffset),n.setEnd(r.endContainer,r.endOffset),n.deleteContents();var i=o.j.createInside.text(o.replaceInput.value);n.insertNode(i),o.j.s.select(i),o.tryScrollToElement(i)}}catch(e){}return!0}return!1},o.findAndSelect=function(e,t,r){var n=o.find(e,t,r,0,o.j.s.range);if(n&&n.startContainer&&n.endContainer){var i=o.j.ed.createRange();try{i.setStart(n.startContainer,n.startOffset),i.setEnd(n.endContainer,n.endOffset),o.j.s.selectRange(i)}catch(e){}return o.tryScrollToElement(n.startContainer),o.current=n.startContainer,o.updateCounters(),!0}return!1},o.find=function(e,r,n,i,a){if(e&&r.length){var l="",c={startContainer:null,startOffset:null,endContainer:null,endOffset:null};if(o.eachMap(e,(function(e){if(s.Dom.isText(e)&&null!=e.nodeValue&&e.nodeValue.length){var d=e.nodeValue;n||e!==a.startContainer?n&&e===a.endContainer&&(d=i?d.substr(0,a.startOffset):d.substr(a.endOffset)):d=i?d.substr(a.endOffset):d.substr(0,a.startOffset);var p=n?l+d:d+l,f=t.findSomePartOfString(r,p,n);if(!1!==f){var h=t.findSomePartOfString(r,d,n);!0===h?h=u.trim(r):!1===h&&!0===(h=t.findSomePartOfString(d,r,n))&&(h=u.trim(d));var m=t.getSomePartOfStringIndex(r,d,n)||0;if((n&&!i||!n&&i)&&e.nodeValue.length-d.length>0&&(m+=e.nodeValue.length-d.length),null==c.startContainer&&(c.startContainer=e,c.startOffset=m),!0===f)return c.endContainer=e,c.endOffset=m,c.endOffset+=h.length,!0;l=p}else l="",c={startContainer:null,startOffset:null,endContainer:null,endOffset:null}}else s.Dom.isBlock(e,o.j.ew)&&""!==l&&(l=n?l+" ":" "+l);return!1}),n),c.startContainer&&c.endContainer)return c;if(!i)return o.current=n?o.j.editor.firstChild:o.j.editor.lastChild,o.find(o.current,r,n,i+1,a)}return!1},o.open=function(e){void 0===e&&(e=!1),o.isOpened||(o.searchBox.classList.add("jodit-search_active"),o.isOpened=!0),o.calcSticky(o.j.e.fire("getStickyState.sticky")||!1),o.j.e.fire("hidePopup"),o.searchBox.classList.toggle("jodit-search_replace",e),o.current=o.j.s.current(),o.selInfo=o.j.s.save();var t=(o.j.s.sel||"").toString();t&&(o.queryInput.value=t),o.updateCounters(),t?o.queryInput.select():o.queryInput.focus()},o.close=function(){o.isOpened&&(o.selInfo&&(o.j.s.restore(o.selInfo),o.selInfo=null),o.searchBox.classList.remove("jodit-search_active"),o.isOpened=!1)},o}return r.__extends(t,e),t.getSomePartOfStringIndex=function(e,t,o){return void 0===o&&(o=!0),this.findSomePartOfString(e,t,o,!0)},t.findSomePartOfString=function(e,t,o,r){void 0===o&&(o=!0),void 0===r&&(r=!1),e=u.trim(e.toLowerCase().replace(i.SPACE_REG_EXP()," ")),t=t.toLowerCase();for(var n=o?0:t.length-1,a=o?0:e.length-1,s=0,l=null,c=o?1:-1,d=[];void 0!==t[n];n+=c){var p=e[a]===t[n];if(p||null!=l&&i.SPACE_REG_EXP().test(t[n])?(null!=l&&o||(l=n),d.push(t[n]),p&&(s+=1,a+=c)):(l=null,d.length=0,s=0,a=o?0:e.length-1),s===e.length)return!r||l}return r?null!=l&&l:!!d.length&&(o?d.join(""):d.reverse().join(""))},t.prototype.boundAlreadyWas=function(e,t){return t.some((function(t){return t.startContainer===e.startContainer&&t.endContainer===e.endContainer&&t.startOffset===e.startOffset&&t.endOffset===e.endOffset}),!1)},t.prototype.tryScrollToElement=function(e){var t=s.Dom.closest(e,s.Dom.isElement,this.j.editor);t||(t=s.Dom.prev(e,s.Dom.isElement,this.j.editor)),t&&t!==this.j.editor&&t.scrollIntoView()},t.prototype.afterInit=function(e){var t=this;if(e.o.useSearch){var o=this;o.searchBox=e.c.fromHTML(o.template);var r=u.refs(o.searchBox),n=r.replace,s=r.cancel,l=r.next,c=r.prev,d=r.replaceBtn,p=r.counterBox;o.queryInput=r.query,o.replaceInput=n,o.closeButton=s,o.nextButton=l,o.prevButton=c,o.replaceButton=d,o.counterBox=p;var f=function(){e.workplace.appendChild(t.searchBox),e.e.off(t.j.container,"keydown.search").on(t.j.container,"keydown.search",(function(r){if(e.getRealMode()===a.MODE_WYSIWYG)switch(r.key){case i.KEY_ESC:t.close();break;case i.KEY_F3:o.queryInput.value&&(e.e.fire(r.shiftKey?"searchPrevious":"searchNext"),r.preventDefault())}}))};f(),e.e.on("changePlace",f).on(o.closeButton,"click",this.close).on(o.queryInput,"mousedown",(function(){e.s.isFocused()&&(e.s.removeMarkers(),o.selInfo=e.s.save())})).on(o.replaceButton,"click",(function(r){o.findAndReplace(e.s.current()||e.editor.firstChild,o.queryInput.value),t.updateCounters(),r.preventDefault(),r.stopImmediatePropagation()})).on([o.nextButton,o.prevButton],"click",(function(t){e.e.fire(o.nextButton===this?"searchNext":"searchPrevious"),t.preventDefault(),t.stopImmediatePropagation()})).on(this.queryInput,"keydown",this.j.async.debounce((function(o){switch(o.key){case i.KEY_ENTER:o.preventDefault(),o.stopImmediatePropagation(),e.e.fire("searchNext")&&t.close();break;default:t.updateCounters()}}),this.j.defaultTimeout)).on("beforeSetMode.search",(function(){t.close()})).on("keydown.search mousedown.search",(function(){t.selInfo&&(e.s.removeMarkers(),t.selInfo=null),t.isOpened&&(t.current=t.j.s.current(),t.updateCounters())})).on("searchNext.search searchPrevious.search",(function(){return o.isOpened?o.findAndSelect(e.s.current()||e.editor.firstChild,o.queryInput.value,"searchNext"===e.e.current):o.open()})).on("search.search",(function(t,o){void 0===o&&(o=!0),e.execCommand("search",t,o)})).on("toggleSticky.search",this.calcSticky),e.registerCommand("search",{exec:function(t,r,n){return void 0===n&&(n=!0),o.findAndSelect(e.s.current()||e.editor.firstChild,r||"",n),!1}}).registerCommand("openSearchDialog",{exec:function(){return o.open(),!1},hotkeys:["ctrl+f","cmd+f"]}).registerCommand("openReplaceDialog",{exec:function(){return e.o.readonly||o.open(!0),!1},hotkeys:["ctrl+h","cmd+h"]})}},t.prototype.beforeDestruct=function(e){var t;s.Dom.safeRemove(this.searchBox),null===(t=e.events)||void 0===t||t.off(".search")},t.prototype.calcSticky=function(e){if(this.isOpened)if(this.searchBox.classList.toggle("jodit-search_sticky",e),e){var t=u.position(this.j.toolbarContainer);u.css(this.searchBox,{top:t.top+t.height,left:t.left+t.width})}else u.css(this.searchBox,{top:null,left:null})},r.__decorate([d.autobind],t.prototype,"calcSticky",null),t}(l.Plugin);t.search=p},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(7);o(311),r.__exportStar(o(312),t),r.__exportStar(o(313),t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(8);r.Config.prototype.width="auto",r.Config.prototype.minWidth=200,r.Config.prototype.maxWidth="100%",r.Config.prototype.allowResizeX=!1,r.Config.prototype.allowResizeY=!0,r.Config.prototype.height="auto",r.Config.prototype.minHeight=200,r.Config.prototype.maxHeight="auto",r.Config.prototype.saveHeightInStorage=!1},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resizeHandler=void 0;var r=o(7),n=o(185),i=o(35),a=o(100),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isResized=!1,t.start={x:0,y:0,w:0,h:0},t.handle=t.j.c.div("jodit-editor__resize",''),t}return r.__extends(t,e),t.prototype.afterInit=function(e){var t=this;"auto"!==e.o.height&&(e.o.allowResizeX||e.o.allowResizeY)&&(e.e.on("toggleFullSize.resizeHandler",(function(){t.handle.style.display=e.isFullSize?"none":"block"})).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(e.ow,"mouseup touchsend",this.onHandleResizeEnd),e.container.appendChild(this.handle))},t.prototype.onHandleResizeStart=function(e){this.isResized=!0,this.start.x=e.clientX,this.start.y=e.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,"mousemove touchmove",this.onHandleResize),e.preventDefault()},t.prototype.onHandleResize=function(e){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+e.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+e.clientX-this.start.x),this.j.e.fire("resize"))},t.prototype.onHandleResizeEnd=function(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,"mousemove touchmove",this.onHandleResize),this.j.unlock())},t.prototype.beforeDestruct=function(e){i.Dom.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)},t.requires=["size"],r.__decorate([a.autobind],t)}(n.Plugin);t.resizeHandler=s},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.size=void 0;var r=o(7);o(314);var n=o(22),i=o(185),a=o(100),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.resizeWorkspaces=t.j.async.debounce(t.resizeWorkspaceImd,t.j.defaultTimeout,!0),t}return r.__extends(t,e),t.prototype.afterInit=function(e){e.e.on("setHeight.size",this.setHeight).on("setWidth.size",this.setWidth).on("afterInit.size changePlace.size",this.initialize,void 0,!0).on(e.ow,"load.size",this.resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size toggleFullSize.size",this.resizeWorkspaces),this.initialize()},t.prototype.initialize=function(){var e=this.j;if(!e.o.inline){var t=e.o.height;if(e.o.saveHeightInStorage&&"auto"!==t){var o=e.storage.get("height");o&&(t=o)}n.css(e.editor,{minHeight:"100%"}),n.css(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),this.setHeight(t),this.setWidth(e.o.width)}},t.prototype.setHeight=function(e){if(n.isNumber(e)){var t=this.j.o,o=t.minHeight,r=t.maxHeight;n.isNumber(o)&&o>e&&(e=o),n.isNumber(r)&&e>r&&(e=r)}n.css(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.resizeWorkspaceImd()},t.prototype.setWidth=function(e){if(n.isNumber(e)){var t=this.j.o,o=t.minWidth,r=t.maxWidth;n.isNumber(o)&&o>e&&(e=o),n.isNumber(r)&&e>r&&(e=r)}n.css(this.j.container,"width",e),this.resizeWorkspaceImd()},t.prototype.getNotWorkHeight=function(){var e,t;return((null===(e=this.j.toolbarContainer)||void 0===e?void 0:e.offsetHeight)||0)+((null===(t=this.j.statusbar)||void 0===t?void 0:t.getHeight())||0)+2},t.prototype.resizeWorkspaceImd=function(){if(this.j&&!this.j.isDestructed&&this.j.o&&!this.j.o.inline&&this.j.container&&this.j.container.parentNode){var e=(n.css(this.j.container,"minHeight")||0)-this.getNotWorkHeight();if(n.isNumber(e)&&e>0&&([this.j.workplace,this.j.iframe,this.j.editor].map((function(t){t&&n.css(t,"minHeight",e)})),this.j.e.fire("setMinHeight",e)),n.isNumber(this.j.o.maxHeight)){var t=this.j.o.maxHeight-this.getNotWorkHeight();[this.j.workplace,this.j.iframe,this.j.editor].map((function(e){e&&n.css(e,"maxHeight",t)})),this.j.e.fire("setMaxHeight",t)}this.j.container&&n.css(this.j.workplace,"height","auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.getNotWorkHeight():"auto")}},t.prototype.beforeDestruct=function(e){this.j.e.off(this.j.ow,"load.size",this.resizeWorkspaces).off(".size")},r.__decorate([a.autobind],t)}(i.Plugin);t.size=s},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(7);o(316),r.__exportStar(o(317),t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(8),n=o(9),i=o(9);r.Config.prototype.beautifyHTML=!i.IS_IE,r.Config.prototype.sourceEditor="ace",r.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},r.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12/ace.js"],r.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.0/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.0/beautify-html.min.js"],r.Config.prototype.controls.source={mode:n.MODE_SPLIT,exec:function(e){e.toggleMode()},isActive:function(e){return e.getRealMode()===n.MODE_SOURCE},tooltip:"Change mode"}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.source=void 0;var r=o(7);o(318);var n=o(9),i=o(9),a=o(185),s=o(35),l=o(22),c=o(319),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttons=[{name:"source",group:"source"}],t.__lock=!1,t.__oldMirrorValue="",t.tempMarkerStart="{start-jodit-selection}",t.tempMarkerStartReg=/{start-jodit-selection}/g,t.tempMarkerEnd="{end-jodit-selection}",t.tempMarkerEndReg=/{end-jodit-selection}/g,t.selInfo=[],t.insertHTML=function(e){var o;null===(o=t.sourceEditor)||void 0===o||o.insertRaw(e),t.toWYSIWYG()},t.fromWYSIWYG=function(e){if(void 0===e&&(e=!1),!t.__lock||!0===e){t.__lock=!0;var o=t.j.getEditorValue(!1);o!==t.getMirrorValue()&&t.setMirrorValue(o),t.__lock=!1}},t.toWYSIWYG=function(){if(!t.__lock){var e=t.getMirrorValue();e!==t.__oldMirrorValue&&(t.__lock=!0,t.j.setEditorValue(e),t.__lock=!1,t.__oldMirrorValue=e)}},t.getNormalPosition=function(e,t){for(var o=e;o>0;){if("<"===t[--o]&&void 0!==t[o+1]&&t[o+1].match(/[\w/]+/i))return o;if(">"===t[o])return e}return e},t.__clear=function(e){return e.replace(n.INVISIBLE_SPACE_REG_EXP(),"")},t.selectAll=function(){var e;null===(e=t.sourceEditor)||void 0===e||e.selectAll()},t.onSelectAll=function(e){if("selectall"===e.toLowerCase()&&t.j.getRealMode()===i.MODE_SOURCE)return t.selectAll(),!1},t.getSelectionStart=function(){var e,o;return null!==(o=null===(e=t.sourceEditor)||void 0===e?void 0:e.getSelectionStart())&&void 0!==o?o:0},t.getSelectionEnd=function(){var e,o;return null!==(o=null===(e=t.sourceEditor)||void 0===e?void 0:e.getSelectionEnd())&&void 0!==o?o:0},t.saveSelection=function(){if(t.j.getRealMode()===n.MODE_WYSIWYG)t.selInfo=t.j.s.save()||[],t.j.setEditorValue(),t.fromWYSIWYG(!0);else{if(t.selInfo.length=0,t.j.o.editHTMLDocumentMode)return;var e=t.getMirrorValue();if(t.getSelectionStart()===t.getSelectionEnd()){var o=t.j.s.marker(!0);t.selInfo[0]={startId:o.id,collapsed:!0,startMarker:o.outerHTML};var r=t.getNormalPosition(t.getSelectionStart(),t.getMirrorValue());t.setMirrorValue(e.substr(0,r)+t.__clear(t.selInfo[0].startMarker)+e.substr(r))}else{var i=t.j.s.marker(!0),a=t.j.s.marker(!1);t.selInfo[0]={startId:i.id,endId:a.id,collapsed:!1,startMarker:t.__clear(i.outerHTML),endMarker:t.__clear(a.outerHTML)},r=t.getNormalPosition(t.getSelectionStart(),e);var s=t.getNormalPosition(t.getSelectionEnd(),e);t.setMirrorValue(e.substr(0,r)+t.selInfo[0].startMarker+e.substr(r,s-r)+t.selInfo[0].endMarker+e.substr(s))}t.toWYSIWYG()}},t.removeSelection=function(){if(t.selInfo.length){if(t.j.getRealMode()===n.MODE_WYSIWYG)return t.__lock=!0,t.j.s.restore(t.selInfo),void(t.__lock=!1);var e=t.getMirrorValue(),o=0,r=0;try{if(t.selInfo[0].startMarker&&(e=e.replace(/]+data-jodit-selection_marker="start"[^>]*>[<>]*?<\/span>/gim,t.tempMarkerStart)),t.selInfo[0].endMarker&&(e=e.replace(/]+data-jodit-selection_marker="end"[^>]*>[<>]*?<\/span>/gim,t.tempMarkerEnd)),!t.j.o.editHTMLDocumentMode&&t.j.o.beautifyHTML){var i=t.j.e.fire("beautifyHTML",e);l.isString(i)&&(e=i)}r=o=e.indexOf(t.tempMarkerStart),e=e.replace(t.tempMarkerStartReg,""),t.selInfo[0].collapsed&&-1!==o||(r=e.indexOf(t.tempMarkerEnd),-1===o&&(o=r)),e=e.replace(t.tempMarkerEndReg,"")}finally{e=e.replace(t.tempMarkerEndReg,"").replace(t.tempMarkerStartReg,"")}t.setMirrorValue(e),t.setMirrorSelectionRange(o,r),t.toWYSIWYG(),t.setFocusToMirror()}},t.setMirrorSelectionRange=function(e,o){var r;null===(r=t.sourceEditor)||void 0===r||r.setSelectionRange(e,o)},t.onReadonlyReact=function(){var e;null===(e=t.sourceEditor)||void 0===e||e.setReadOnly(t.j.o.readonly)},t}return r.__extends(t,e),t.prototype.getMirrorValue=function(){var e;return(null===(e=this.sourceEditor)||void 0===e?void 0:e.getValue())||""},t.prototype.setMirrorValue=function(e){var t;null===(t=this.sourceEditor)||void 0===t||t.setValue(e)},t.prototype.setFocusToMirror=function(){var e;null===(e=this.sourceEditor)||void 0===e||e.focus()},t.prototype.initSourceEditor=function(e){var t,o=this;if("area"!==e.o.sourceEditor){var r=c.createSourceEditor(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);r.onReadyAlways((function(){var t,n;null===(t=o.sourceEditor)||void 0===t||t.destruct(),o.sourceEditor=r,o.fromWYSIWYG(!0),null===(n=e.events)||void 0===n||n.fire("sourceEditorReady",e)}))}else null===(t=this.sourceEditor)||void 0===t||t.onReadyAlways((function(){var t;o.fromWYSIWYG(!0),null===(t=e.events)||void 0===t||t.fire("sourceEditorReady",e)}))},t.prototype.afterInit=function(e){var t=this;if(this.mirrorContainer=e.c.div("jodit-source"),e.workplace.appendChild(this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",(function(){e.workplace.appendChild(t.mirrorContainer)})),this.sourceEditor=c.createSourceEditor("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.e.off("beforeSetMode.source afterSetMode.source").on("beforeSetMode.source",t.saveSelection).on("afterSetMode.source",t.removeSelection),this.onReadonlyReact(),e.e.on("insertHTML.source",(function(o){if(!e.o.readonly&&!t.j.isEditorMode())return t.insertHTML(o),!1})).on("readonly.source",this.onReadonlyReact).on("placeholder.source",(function(e){var o;null===(o=t.sourceEditor)||void 0===o||o.setPlaceHolder(e)})).on("beforeCommand.source",this.onSelectAll).on("change.source",this.fromWYSIWYG),e.e.on("beautifyHTML",(function(e){return e})),e.o.beautifyHTML){var o=function(){var t,o,r=e.ow.html_beautify;return!(!r||e.isInDestruct||(null===(o=null===(t=e.events)||void 0===t?void 0:t.off("beautifyHTML"))||void 0===o||o.on("beautifyHTML",(function(e){return r(e)})),0))};o()||l.loadNext(e,e.o.beautifyHTMLCDNUrlsJS).then(o)}this.fromWYSIWYG(),this.initSourceEditor(e)},t.prototype.beforeDestruct=function(e){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),s.Dom.safeRemove(this.mirrorContainer)},t}(a.Plugin);t.source=u},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSourceEditor=void 0;var r=o(320);t.createSourceEditor=function(e,t,o,n,i){var a;switch(e){case"ace":if(!t.o.shadowRoot){a=new r.AceEditor(t,o,n,i);break}default:a=new r.TextAreaEditor(t,o,n,i)}return a.init(t),a.onReadyAlways((function(){a.setReadOnly(t.o.readonly)})),a}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(7);r.__exportStar(o(321),t),r.__exportStar(o(323),t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextAreaEditor=void 0;var r=o(7),n=o(22),i=o(10),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autosize=t.j.async.debounce((function(){t.instance.style.height="auto",t.instance.style.height=t.instance.scrollHeight+"px"}),t.j.defaultTimeout),t}return r.__extends(t,e),t.prototype.init=function(e){var t=this;this.instance=e.c.element("textarea",{class:"jodit-source__mirror"}),this.container.appendChild(this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",(function(e){n.css(t.instance,"minHeight",e)})).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",(function(t){e.e.fire(t.type,t)})),this.autosize(),this.onReady()},t.prototype.destruct=function(){i.Dom.safeRemove(this.instance)},t.prototype.getValue=function(){return this.instance.value},t.prototype.setValue=function(e){this.instance.value=e},t.prototype.insertRaw=function(e){var t=this.getValue();if(0>this.getSelectionStart())this.setValue(t+e);else{var o=this.getSelectionStart(),r=this.getSelectionEnd();this.setValue(t.substring(0,o)+e+t.substring(r,t.length))}},t.prototype.getSelectionStart=function(){return this.instance.selectionStart},t.prototype.getSelectionEnd=function(){return this.instance.selectionEnd},t.prototype.setSelectionRange=function(e,t){void 0===t&&(t=e),this.instance.setSelectionRange(e,t)},t.prototype.focus=function(){this.instance.focus()},t.prototype.setPlaceHolder=function(e){this.instance.setAttribute("placeholder",e)},t.prototype.setReadOnly=function(e){e?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")},t.prototype.selectAll=function(){this.instance.select()},t.prototype.replaceUndoManager=function(){var e=this,t=this.jodit.observer;this.j.e.on(this.instance,"keydown",(function(o){if((o.ctrlKey||o.metaKey)&&"z"===o.key)return o.shiftKey?t.redo():t.undo(),e.setSelectionRange(e.getValue().length),!1}))},t}(o(322).SourceEditor);t.TextAreaEditor=a},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceEditor=void 0;var o=function(){function e(e,t,o,r){this.jodit=e,this.container=t,this.toWYSIWYG=o,this.fromWYSIWYG=r,this.className="",this.isReady=!1}return Object.defineProperty(e.prototype,"j",{get:function(){return this.jodit},enumerable:!1,configurable:!0}),e.prototype.onReady=function(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")},e.prototype.onReadyAlways=function(e){var t;this.isReady?e():null===(t=this.j.events)||void 0===t||t.on(this,"ready",e)},e}();t.SourceEditor=o},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AceEditor=void 0;var r=o(7),n=o(9),i=o(22),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="jodit_ace_editor",t.proxyOnFocus=function(e){t.j.e.fire("focus",e)},t.proxyOnMouseDown=function(e){t.j.e.fire("mousedown",e)},t}return r.__extends(t,e),t.prototype.aceExists=function(){return void 0!==this.j.ow.ace},t.prototype.getLastColumnIndex=function(e){return this.instance.session.getLine(e).length},t.prototype.getLastColumnIndices=function(){for(var e=this.instance.session.getLength(),t=[],o=0,r=0;e>r;r++)o+=this.getLastColumnIndex(r),r>0&&(o+=1),t[r]=o;return t},t.prototype.getRowColumnIndices=function(e){var t=this.getLastColumnIndices();if(t[0]>=e)return{row:0,column:e};for(var o=1,r=1;t.length>r;r++)e>t[r]&&(o=r+1);return{row:o,column:e-t[o-1]-1}},t.prototype.setSelectionRangeIndices=function(e,t){var o=this.getRowColumnIndices(e),r=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:o,end:r})},t.prototype.getIndexByRowColumn=function(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t},t.prototype.init=function(e){var t=this,o=function(){if(void 0===t.instance&&t.aceExists()){var o=t.j.c.div("jodit-source__mirror-fake");t.container.appendChild(o),t.instance=e.ow.ace.edit(o),t.instance.setTheme(e.o.sourceEditorNativeOptions.theme),t.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),t.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),t.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),t.instance.getSession().setUseWrapMode(!0),t.instance.setOption("indentedSoftWrap",!1),t.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),t.instance.getSession().setUseWorker(!1),t.instance.$blockScrolling=1/0,t.instance.on("change",t.toWYSIWYG),t.instance.on("focus",t.proxyOnFocus),t.instance.on("mousedown",t.proxyOnMouseDown),e.getRealMode()!==n.MODE_WYSIWYG&&t.setValue(t.getValue());var r=t.j.async.debounce((function(){e.isInDestruct||(t.instance.setOption("maxLines","auto"!==e.o.height?e.workplace.offsetHeight/t.instance.renderer.lineHeight:1/0),t.instance.resize())}),2*t.j.defaultTimeout);e.e.on("afterResize afterSetMode",r),r(),t.onReady()}};e.e.on("afterSetMode",(function(){e.getRealMode()!==n.MODE_SOURCE&&e.getMode()!==n.MODE_SPLIT||(t.fromWYSIWYG(),o())})),o(),this.aceExists()||i.loadNext(e,e.o.sourceEditorCDNUrlsJS).then((function(){e.isInDestruct||o()}))},t.prototype.destruct=function(){var e,t;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null===(t=null===(e=this.j)||void 0===e?void 0:e.events)||void 0===t||t.off("aceInited.source")},t.prototype.setValue=function(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){var t=this.j.e.fire("beautifyHTML",e);i.isString(t)&&(e=t)}this.instance.setValue(e),this.instance.clearSelection()},t.prototype.getValue=function(){return this.instance.getValue()},t.prototype.setReadOnly=function(e){this.instance.setReadOnly(e)},t.prototype.focus=function(){this.instance.focus()},t.prototype.getSelectionStart=function(){var e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)},t.prototype.getSelectionEnd=function(){var e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)},t.prototype.selectAll=function(){this.instance.selection.selectAll()},t.prototype.insertRaw=function(e){var t=this.instance.selection.getCursor(),o=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:o},!1)},t.prototype.setSelectionRange=function(e,t){this.setSelectionRangeIndices(e,t)},t.prototype.setPlaceHolder=function(e){},t.prototype.replaceUndoManager=function(){var e=this.jodit.observer;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:function(){e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:function(){e.redo()}})},t}(o(322).SourceEditor);t.AceEditor=a},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stat=void 0;var r=o(7),n=o(8),i=o(9),a=o(185),s=o(35);n.Config.prototype.showCharsCounter=!0,n.Config.prototype.countHTMLChars=!1,n.Config.prototype.showWordsCounter=!0;var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.charCounter=null,t.wordCounter=null,t.reInit=function(){t.j.o.showCharsCounter&&t.charCounter&&t.j.statusbar.append(t.charCounter,!0),t.j.o.showWordsCounter&&t.wordCounter&&t.j.statusbar.append(t.wordCounter,!0),t.j.e.off("change keyup",t.calc).on("change keyup",t.calc),t.calc()},t.calc=t.j.async.throttle((function(){var e=t.j.text;if(t.j.o.showCharsCounter&&t.charCounter){var o=t.j.o.countHTMLChars?t.j.value:e.replace(i.SPACE_REG_EXP(),"");t.charCounter.textContent=t.j.i18n("Chars: %d",o.length)}t.j.o.showWordsCounter&&t.wordCounter&&(t.wordCounter.textContent=t.j.i18n("Words: %d",e.replace(i.INVISIBLE_SPACE_REG_EXP(),"").split(i.SPACE_REG_EXP()).filter((function(e){return e.length})).length))}),t.j.defaultTimeout),t}return r.__extends(t,e),t.prototype.afterInit=function(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()},t.prototype.beforeDestruct=function(){s.Dom.safeRemove(this.charCounter),s.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null},t}(a.Plugin);t.stat=l},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sticky=void 0;var r=o(7);o(326);var n=o(8),i=o(9),a=o(10),s=o(22),l=o(100);n.Config.prototype.toolbarSticky=!0,n.Config.prototype.toolbarDisableStickyForMobile=!0,n.Config.prototype.toolbarStickyOffset=0;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isToolbarSticked=!1,t.createDummy=function(e){i.IS_IE&&!t.dummyBox&&(t.dummyBox=t.j.c.div(),t.dummyBox.classList.add("jodit_sticky-dummy_toolbar"),t.j.container.insertBefore(t.dummyBox,e))},t.addSticky=function(e){t.isToolbarSticked||(t.createDummy(e),t.j.container.classList.add("jodit_sticky"),t.isToolbarSticked=!0),s.css(e,{top:t.j.o.toolbarStickyOffset||null,width:t.j.container.offsetWidth-2}),i.IS_IE&&t.dummyBox&&s.css(t.dummyBox,{height:e.offsetHeight})},t.removeSticky=function(e){t.isToolbarSticked&&(s.css(e,{width:"",top:""}),t.j.container.classList.remove("jodit_sticky"),t.isToolbarSticked=!1)},t}return r.__extends(t,e),t.prototype.afterInit=function(e){var t=this;e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.onScroll).on("getStickyState.sticky",(function(){return t.isToolbarSticked}))},t.prototype.onScroll=function(){var e=this.jodit,t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,o=s.offset(e.container,e,e.od,!0),r=e.getMode()===i.MODE_WYSIWYG&&t+e.o.toolbarStickyOffset>o.top&&o.top+o.height>t+e.o.toolbarStickyOffset&&!(e.o.toolbarDisableStickyForMobile&&this.isMobile());if(e.o.toolbarSticky&&!0===e.o.toolbar&&this.isToolbarSticked!==r){var n=e.toolbarContainer;n&&(r?this.addSticky(n):this.removeSticky(n)),e.e.fire("toggleSticky",r)}},t.prototype.isMobile=function(){return this.j&&this.j.options&&this.j.container&&this.j.o.sizeSM>=this.j.container.offsetWidth},t.prototype.beforeDestruct=function(e){this.dummyBox&&a.Dom.safeRemove(this.dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.onScroll).off(".sticky")},r.__decorate([l.throttle()],t.prototype,"onScroll",null),t}(a.Plugin);t.sticky=c},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.symbols=void 0;var r=o(7);o(328),o(329);var n=o(9),i=o(10),a=o(23),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttons=[{name:"symbol",group:"insert"}],t.countInRow=17,t}return r.__extends(t,e),t.prototype.afterInit=function(e){var t=this;e.e.on("generateSpecialCharactersTable.symbols",(function(){for(var o=e.c.fromHTML('
'),r=o.querySelector(".jodit-symbols__preview"),s=o.querySelector("table").tBodies[0],l=[],c=0;e.o.specialCharacters.length>c;){for(var u=e.c.element("tr"),d=0;t.countInRow>d&&e.o.specialCharacters.length>c;d+=1,c+=1){var p=e.c.element("td"),f=e.c.fromHTML(''+e.o.specialCharacters[c]+"");l.push(f),p.appendChild(f),u.appendChild(p)}s.appendChild(u)}var h=t;return e.e.on(l,"focus",(function(){r.innerHTML=this.innerHTML})).on(l,"mousedown",(function(t){i.Dom.isTag(this,"a")&&(e.s.focus(),e.s.insertHTML(this.innerHTML),e.e.fire(this,"close_dialog"),t&&t.preventDefault(),t&&t.stopImmediatePropagation())})).on(l,"mouseenter",(function(){i.Dom.isTag(this,"a")&&this.focus()})).on(l,"keydown",(function(t){var o=t.target;if(i.Dom.isTag(o,"a")){var r=parseInt(a.attr(o,"-index")||"0",10),s=parseInt(a.attr(o,"data-index-j")||"0",10),c=void 0;switch(t.key){case n.KEY_UP:case n.KEY_DOWN:void 0===l[c=t.key===n.KEY_UP?r-h.countInRow:r+h.countInRow]&&(c=t.key===n.KEY_UP?Math.floor(l.length/h.countInRow)*h.countInRow+s:s)>l.length-1&&(c-=h.countInRow),l[c]&&l[c].focus();break;case n.KEY_RIGHT:case n.KEY_LEFT:void 0===l[c=t.key===n.KEY_LEFT?r-1:r+1]&&(c=t.key===n.KEY_LEFT?l.length-1:0),l[c]&&l[c].focus();break;case n.KEY_ENTER:e.e.fire(o,"mousedown"),t.stopImmediatePropagation(),t.preventDefault()}}})),o}))},t.prototype.beforeDestruct=function(e){e.e.off("generateSpecialCharactersTable.symbols")},t}(i.Plugin);t.symbols=s},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(8),n=o(164);r.Config.prototype.usePopupForSpecialCharacters=!1,r.Config.prototype.specialCharacters=["!",""","#","$","%","&","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","€","‘","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","»","¬","®","¯","°","²","³","´","µ","¶","·","¸","¹","º","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ý","þ","ÿ","Œ","œ","Ŵ","Ŷ","ŵ","ŷ","‚","‛","„","…","™","►","•","→","⇒","⇔","♦","≈"],r.Config.prototype.controls.symbol={icon:"omega",hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:function(e,t,o,r){var i=e.e.fire("generateSpecialCharactersTable.symbols");if(i){if(e.o.usePopupForSpecialCharacters){var a=e.c.div();return a.classList.add("jodit-symbols"),a.appendChild(i),e.e.on(i,"close_dialog",r),a}n.Alert(i,e.i18n("Select Special Character"),void 0,"jodit-symbols").bindDestruct(e);var s=i.querySelector("a");s&&s.focus()}}}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(7);o(331),r.__exportStar(o(332),t),r.__exportStar(o(334),t),r.__exportStar(o(335),t),r.__exportStar(o(336),t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(8),n=o(35),i=o(23),a=o(22);r.Config.prototype.table={allowCellSelection:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",allowCellResize:!0,useExtraClassesOptions:!1},r.Config.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup:function(e,t,o,r,s){for(var l=o.data&&o.data.rows?o.data.rows:10,c=o.data&&o.data.cols?o.data.cols:10,u=e.c.fromHTML('
'+function(){if(!e.o.table.useExtraClassesOptions)return"";var t=[];if(o.data){var r=o.data.classList;Object.keys(r).forEach((function(e){t.push('")}))}return t.join("")}()+'
'),d=u.querySelectorAll("span")[0],p=u.querySelectorAll("span")[1],f=u.querySelector(".jodit-form__container"),h=u.querySelector(".jodit-form__options"),m=[],v=l*c,g=0;v>g;g+=1)m[g]||m.push(e.c.element("span",{dataIndex:g}));if(e.e.on(f,"mousemove",(function(e,t){var o=e.target;if(n.Dom.isTag(o,"span")){for(var r=void 0===t||isNaN(t)?parseInt(i.attr(o,"-index")||"0",10):t||0,a=Math.ceil((r+1)/c),s=r%c+1,l=0;m.length>l;l+=1)m[l].className=l%c+1>s||a=y;y+=1){m=d.element("tr");for(var b=1;u>=b;b+=1)v=d.element("td"),g||(g=v),v.appendChild(d.element("br")),m.appendChild(d.text("\n")),m.appendChild(d.text("\t")),m.appendChild(v);p.appendChild(d.text("\n")),p.appendChild(m)}var _=e.s.current();if(_&&e.s.isCollapsed()){var w=n.Dom.closest(_,(function(t){return n.Dom.isBlock(t,e.ew)}),e.editor);w&&w!==e.editor&&!w.nodeName.match(/^TD|TH|TBODY|TABLE|THEADER|TFOOTER$/)&&e.s.setCursorAfter(w)}a.$$("input[type=checkbox]:checked",h).forEach((function(e){e.value.split(/[\s]+/).forEach((function(e){f.classList.add(e)}))})),e.s.insertNode(d.text("\n")),e.s.insertNode(f,!1),g&&(e.s.setCursorIn(g),a.scrollIntoViewIfNeeded(g,e.editor,e.ed)),r()}})),s&&s.parentElement){for(g=0;l>g;g+=1){for(var y=e.c.div(),b=0;c>b;b+=1)y.appendChild(m[g*c+b]);f.appendChild(y)}m[0]&&(m[0].className="hovered")}return u},tooltip:"Insert table"}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resizeCells=void 0;var r=o(7);o(333);var n=o(9),i=o(10),a=o(22),s=o(100),l="table_processor_observer-resize",c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selectMode=!1,t.resizeDelta=0,t.createResizeHandle=function(){t.resizeHandler||(t.resizeHandler=t.j.c.div("jodit-table-resizer"),t.j.e.on(t.resizeHandler,"mousedown.table touchstart.table",t.onHandleMouseDown).on(t.resizeHandler,"mouseenter.table",(function(){t.j.async.clearTimeout(t.hideTimeout)})))},t.hideTimeout=0,t.drag=!1,t.minX=0,t.maxX=0,t.startX=0,t}return r.__extends(t,e),Object.defineProperty(t.prototype,"module",{get:function(){return this.j.getInstance("Table",this.j.o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRTL",{get:function(){return"rtl"===this.j.o.direction},enumerable:!1,configurable:!0}),t.prototype.showResizeHandle=function(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)},t.prototype.hideResizeHandle=function(){var e=this;this.hideTimeout=this.j.async.setTimeout((function(){i.Dom.safeRemove(e.resizeHandler)}),{timeout:this.j.defaultTimeout,label:"hideResizer"})},t.prototype.onHandleMouseDown=function(e){var t=this;if(!this.j.isLocked){this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=e.clientX,this.j.lock(l),this.resizeHandler.classList.add("jodit-table-resizer_moved");var o,r=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)r=this.workTable.parentNode.getBoundingClientRect(),this.minX=r.left,this.maxX=this.minX+r.width;else{var a=i.Table.formalCoordinate(this.workTable,this.workCell,!0);i.Table.formalMatrix(this.workTable,(function(e,r,i){a[1]===i&&(o=e.getBoundingClientRect(),t.minX=Math.max(o.left+n.NEARBY/2,t.minX)),a[1]+(t.isRTL?-1:1)===i&&(o=e.getBoundingClientRect(),t.maxX=Math.min(o.left+o.width-n.NEARBY/2,t.maxX))}))}return!1}},t.prototype.onMouseMove=function(e){if(this.drag){this.j.e.fire("closeAllPopups");var t=e.clientX,o=a.offset(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);this.minX>t&&(t=this.minX),t>this.maxX&&(t=this.maxX),this.resizeDelta=t-this.startX+(this.j.o.iframe?o.left:0),this.resizeHandler.style.left=t-(this.j.o.iframe?0:o.left)+"px";var r=this.j.s.sel;r&&r.removeAllRanges()}},t.prototype.onMouseUp=function(e){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==e.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.setEditorValue(),this.j.s.focus())},t.prototype.resizeColumns=function(){var e=this,t=this.resizeDelta,o=[];i.Table.setColumnWidthByDelta(this.workTable,i.Table.formalCoordinate(this.workTable,this.workCell,!0)[1],t,!0,o);var r=a.call(this.isRTL?i.Dom.prev:i.Dom.next,this.workCell,(function(t){return i.Dom.isCell(t,e.j.ew)}),this.workCell.parentNode);i.Table.setColumnWidthByDelta(this.workTable,i.Table.formalCoordinate(this.workTable,r)[1],-t,!1,o)},t.prototype.resizeTable=function(){var e=this.resizeDelta*(this.isRTL?-1:1),t=this.workTable.offsetWidth,o=a.getContentWidth(this.workTable.parentNode,this.j.ew),r=!this.wholeTable;if(this.isRTL?!r:r)this.workTable.style.width=(t+e)/o*100+"%";else{var n=this.isRTL?"marginRight":"marginLeft",i=parseInt(this.j.ew.getComputedStyle(this.workTable)[n]||"0",10);this.workTable.style.width=(t-e)/o*100+"%",this.workTable.style[n]=(i+e)/o*100+"%"}},t.prototype.setWorkCell=function(e,t){void 0===t&&(t=null),this.wholeTable=t,this.workCell=e,this.workTable=i.Dom.up(e,(function(e){return i.Dom.isTag(e,"table")}),this.j.editor)},t.prototype.calcHandlePosition=function(e,t,o,r){var s=this;void 0===o&&(o=0),void 0===r&&(r=0);var l=a.offset(t,this.j,this.j.ed);if(o>n.NEARBY&&l.width-n.NEARBY>o)this.hideResizeHandle();else{var c=a.offset(this.j.workplace,this.j,this.j.od,!0),u=a.offset(e,this.j,this.j.ed);if(this.resizeHandler.style.left=(o>n.NEARBY?l.left+l.width:l.left)-c.left+r+"px",Object.assign(this.resizeHandler.style,{height:u.height+"px",top:u.top-c.top+"px"}),this.showResizeHandle(),o>n.NEARBY){var d=a.call(this.isRTL?i.Dom.prev:i.Dom.next,t,(function(e){return i.Dom.isCell(e,s.j.ew)}),t.parentNode);this.setWorkCell(t,!!d&&null)}else{var p=a.call(this.isRTL?i.Dom.next:i.Dom.prev,t,(function(e){return i.Dom.isCell(e,s.j.ew)}),t.parentNode);this.setWorkCell(p||t,!p||null)}}},t.prototype.afterInit=function(e){var t=this;e.o.table.allowCellResize&&e.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",(function(){a.$$("table",e.editor).forEach(t.observe)})).on(this.j.ow,"scroll.resize-cells",(function(){if(t.drag){var o=i.Dom.up(t.workCell,(function(e){return i.Dom.isTag(e,"table")}),e.editor);if(o){var r=o.getBoundingClientRect();t.resizeHandler.style.top=r.top+"px"}}})).on("beforeSetMode.resize-cells",(function(){t.module.getAllSelectedCells().forEach((function(o){t.module.removeSelection(o),i.Table.normalizeTable(i.Dom.closest(o,"table",e.editor))}))}))},t.prototype.observe=function(e){var t=this;a.dataBind(e,l)||(a.dataBind(e,l,!0),this.j.e.on(e,"mouseleave.resize-cells",(function(e){t.resizeHandler&&t.resizeHandler!==e.relatedTarget&&t.hideResizeHandle()})).on(e,"mousemove.resize-cells touchmove.resize-cells",(function(o){if(!t.j.isLocked){var r=i.Dom.up(o.target,(function(e){return i.Dom.isCell(e,t.j.ew)}),e);r&&t.calcHandlePosition(e,r,o.offsetX)}})),this.createResizeHandle())},t.prototype.beforeDestruct=function(e){e.events&&(e.e.off(this.j.ow,".resize-cells"),e.e.off(".resize-cells"))},r.__decorate([s.autobind],t.prototype,"onHandleMouseDown",null),r.__decorate([s.autobind],t.prototype,"onMouseMove",null),r.__decorate([s.autobind],t.prototype,"onMouseUp",null),r.__decorate([s.autobind],t.prototype,"observe",null),t}(i.Plugin);t.resizeCells=c},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectCells=void 0;var r=o(7),n=o(185),i=o(10),a=o(22),s=o(292),l=o(9),c=o(100),u="table_processor_observer",d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selectedCell=null,t}return r.__extends(t,e),Object.defineProperty(t.prototype,"module",{get:function(){return this.j.getInstance("Table",this.j.o)},enumerable:!1,configurable:!0}),t.prototype.afterInit=function(e){var t=this;e.o.table.allowCellSelection&&e.e.on(this.j.ow,"click.select-cells",this.onRemoveSelection).on("keydown.select-cells",(function(e){e.key===l.KEY_TAB&&t.unselectCells()})).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on("change afterCommand afterSetMode click afterInit".split(" ").map((function(e){return e+".select-cells"})).join(" "),(function(){a.$$("table",e.editor).forEach(t.observe)}))},t.prototype.observe=function(e){a.dataBind(e,u)||(this.onRemoveSelection(),a.dataBind(e,u,!0),this.j.e.on(e,"mousedown.select-cells touchstart.select-cells",this.onStartSelection.bind(this,e)))},t.prototype.onStartSelection=function(e,t){var o=this;if(!this.j.o.readonly){this.unselectCells();var r=i.Dom.closest(t.target,["td","th"],e);r&&(r.firstChild||r.appendChild(this.j.createInside.element("br")),this.selectedCell=r,this.module.addSelection(r),this.j.e.on(e,"mousemove.select-cells touchmove.select-cells",this.onMove.bind(this,e)).on(e,"mouseup.select-cells touchend.select-cells",this.onStopSelection.bind(this,e)),this.j.e.fire("showPopup",e,(function(){return a.position(r,o.j)}),"cells"))}},t.prototype.onMove=function(e,t){var o=this;if(!this.j.o.readonly&&!this.j.isLockedNotBy(u)){var r=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(r){var n=i.Dom.closest(r,["td","th"],e);if(n&&this.selectedCell){n!==this.selectedCell&&this.j.lock(u),this.unselectCells(e);for(var a,s=i.Table.getSelectedBound(e,[n,this.selectedCell]),l=i.Table.formalMatrix(e),c=s[0][0];s[1][0]>=c;c+=1)for(var d=s[0][1];s[1][1]>=d;d+=1)this.module.addSelection(l[c][d]);this.j.e.fire("hidePopup"),t.stopPropagation(),a=o.j.createInside.fromHTML('
 
'),n.appendChild(a),o.j.async.setTimeout((function(){var e;null===(e=a.parentNode)||void 0===e||e.removeChild(a)}),o.j.defaultTimeout/5)}}}},t.prototype.onRemoveSelection=function(e){var t;if(!(null===(t=null==e?void 0:e.buffer)||void 0===t?void 0:t.actionTrigger)&&!this.selectedCell&&this.module.getAllSelectedCells().length)return this.j.unlock(),this.unselectCells(),void this.j.e.fire("hidePopup","cells");this.selectedCell=null},t.prototype.onStopSelection=function(e,t){var o=this;if(this.selectedCell){this.j.unlock();var r=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(r){var n=i.Dom.closest(r,["td","th"],e);if(n){var s=i.Dom.closest(n,"table",e);if(!s||s===e){var l=i.Table.getSelectedBound(e,[n,this.selectedCell]),c=i.Table.formalMatrix(e),u=c[l[1][0]][l[1][1]],d=c[l[0][0]][l[0][1]];this.j.e.fire("showPopup",e,(function(){var e=a.position(d,o.j),t=a.position(u,o.j);return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}}),"cells"),a.$$("table",this.j.editor).forEach((function(e){o.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}))}}}}},t.prototype.unselectCells=function(e,t){var o=this.module,r=o.getAllSelectedCells();r.length&&r.forEach((function(e){t&&t===e||o.removeSelection(e)}))},t.prototype.onExecCommand=function(e){if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(e)){e=e.replace("table","");var t=this.module.getAllSelectedCells();if(t.length){var o=t.shift();if(!o)return;var r=i.Dom.closest(o,"table",this.j.editor);if(!r)return;switch(e){case"splitv":i.Table.splitVertical(r,this.j);break;case"splitg":i.Table.splitHorizontal(r,this.j);break;case"merge":i.Table.mergeSelected(r,this.j);break;case"empty":t.forEach((function(e){return e.innerHTML=""}));break;case"bin":i.Dom.safeRemove(r);break;case"binrow":i.Table.removeRow(r,o.parentNode.rowIndex);break;case"bincolumn":i.Table.removeColumn(r,o.cellIndex);break;case"addcolumnafter":case"addcolumnbefore":i.Table.appendColumn(r,o.cellIndex,"addcolumnafter"===e,this.j.createInside);break;case"addrowafter":case"addrowbefore":i.Table.appendRow(r,o.parentNode,"addrowafter"===e,this.j.createInside)}}return!1}},t.prototype.onAfterCommand=function(e){var t=this;/^justify/.test(e)&&this.module.getAllSelectedCells().forEach((function(o){return s.alignElement(e,o,t.j)}))},t.prototype.beforeDestruct=function(e){this.onRemoveSelection(),e.e.off(".select-cells")},r.__decorate([c.autobind],t.prototype,"observe",null),r.__decorate([c.autobind],t.prototype,"onRemoveSelection",null),r.__decorate([c.autobind],t.prototype,"onStopSelection",null),r.__decorate([c.autobind],t.prototype,"onExecCommand",null),r.__decorate([c.autobind],t.prototype,"onAfterCommand",null),t}(n.Plugin);t.selectCells=d},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableKeyboardNavigation=void 0;var r=o(9),n=o(35),i=o(10);t.tableKeyboardNavigation=function(e){e.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",(function(t){var o,a;if((t.key===r.KEY_TAB||t.key===r.KEY_LEFT||t.key===r.KEY_RIGHT||t.key===r.KEY_UP||t.key===r.KEY_DOWN)&&(o=e.s.current(),a=n.Dom.up(o,(function(e){return e&&e.nodeName&&/^td|th$/i.test(e.nodeName)}),e.editor))){var s=e.s.range;if(t.key===r.KEY_TAB||o===a||(t.key!==r.KEY_LEFT&&t.key!==r.KEY_UP||!(n.Dom.prev(o,(function(e){return t.key===r.KEY_UP?n.Dom.isTag(e,"br"):Boolean(e)}),a)||t.key!==r.KEY_UP&&n.Dom.isText(o)&&0!==s.startOffset))&&(t.key!==r.KEY_RIGHT&&t.key!==r.KEY_DOWN||!(n.Dom.next(o,(function(e){return t.key===r.KEY_DOWN?n.Dom.isTag(e,"br"):Boolean(e)}),a)||t.key!==r.KEY_DOWN&&n.Dom.isText(o)&&o.nodeValue&&s.startOffset!==o.nodeValue.length))){var l=n.Dom.up(a,(function(e){return e&&/^table$/i.test(e.nodeName)}),e.editor),c=null;switch(t.key){case r.KEY_TAB:case r.KEY_LEFT:var u=t.key===r.KEY_LEFT||t.shiftKey?"prev":"next";(c=n.Dom[u](a,(function(e){return e&&/^td|th$/i.test(e.tagName)}),l))||(i.Table.appendRow(l,"next"!==u&&l.querySelector("tr"),"next"===u,e.createInside),c=n.Dom[u](a,(function(t){return t&&n.Dom.isCell(t,e.ew)}),l));break;case r.KEY_UP:case r.KEY_DOWN:var d=0,p=0,f=i.Table.formalMatrix(l,(function(e,t,o){e===a&&(d=t,p=o)}));t.key===r.KEY_UP?void 0!==f[d-1]&&(c=f[d-1][p]):void 0!==f[d+1]&&(c=f[d+1][p])}if(c){if(c.firstChild)t.key===r.KEY_TAB?e.s.select(c,!0):e.s.setCursorIn(c,t.key===r.KEY_RIGHT||t.key===r.KEY_DOWN);else{var h=e.createInside.element("br");c.appendChild(h),e.s.setCursorBefore(h)}return!1}}}}))}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.table=void 0,t.table=function(e){e.registerButton({name:"table",group:"insert"})}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tooltip=void 0;var r=o(7);o(338);var n=o(22),i=o(185),a=o(35),s=o(33),l=o(100),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isOpened=!1,t.delayShowTimeout=0,t}return r.__extends(t,e),t.prototype.afterInit=function(e){var o=this;this.container=e.c.div("jodit-tooltip"),s.getContainer(this.j,t).appendChild(this.container);var r=0;e.e.off(".tooltip").on("showTooltip.tooltip",(function(t,n){e.async.clearTimeout(r),o.open(t,n)})).on("delayShowTooltip.tooltip",this.delayOpen).on("escape.tooltip",this.close).on("hideTooltip.tooltip change.tooltip scroll.tooltip changePlace.tooltip hidePopup.tooltip closeAllPopups.tooltip",(function(){o.j.async.clearTimeout(o.delayShowTimeout),r=e.async.setTimeout(o.close,o.j.defaultTimeout)}))},t.prototype.delayOpen=function(e,t){var o=this,r=this.j.o.showTooltipDelay||this.j.defaultTimeout;this.j.async.clearTimeout(this.delayShowTimeout),this.delayShowTimeout=this.j.async.setTimeout((function(){return o.open(e,t)}),{timeout:r,label:"tooltip"})},t.prototype.open=function(e,t){this.container.classList.add("jodit-tooltip_visible"),this.container.innerHTML=t,this.isOpened=!0,this.setPosition(e)},t.prototype.setPosition=function(e){var t=e();n.css(this.container,{left:t.x,top:t.y})},t.prototype.close=function(){this.j.async.clearTimeout(this.delayShowTimeout),this.isOpened&&(this.isOpened=!1,this.container.classList.remove("jodit-tooltip_visible"),n.css(this.container,{left:-5e3}))},t.prototype.beforeDestruct=function(e){null==e||e.e.off(".tooltip"),this.close(),a.Dom.safeRemove(this.container)},r.__decorate([l.autobind],t.prototype,"delayOpen",null),r.__decorate([l.autobind],t.prototype,"close",null),t}(i.Plugin);t.tooltip=c},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(7);r.__exportStar(o(340),t),r.__exportStar(o(341),t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preview=void 0;var r=o(8),n=o(22),i=o(9);r.Config.prototype.controls.preview={icon:"eye",exec:function(e){var t=e.getInstance("Dialog",{language:e.o.language,theme:e.o.theme}),o=e.c.div();if(n.css(o,{padding:16}),e.iframe){var r=e.create.element("iframe");n.css(r,{minWidth:800,minHeight:600,border:0}),o.appendChild(r),t.open(o,e.i18n("Preview"));var i=r.contentWindow;i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),i.document.body.innerHTML=e.value)}else n.css(o,{minWidth:1024,minHeight:600,border:0}),o.innerHTML=e.value,t.open(o,e.i18n("Preview"));t.setModal(!0)},mode:i.MODE_SOURCE+i.MODE_WYSIWYG,tooltip:"Preview"},t.preview=function(e){e.registerButton({name:"preview"})}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=void 0;var r=o(8),n=o(33),i=o(35),a=o(22),s=o(9);r.Config.prototype.controls.print={exec:function(e){var t=e.create.element("iframe");Object.assign(t.style,{position:"fixed",right:0,bottom:0,width:0,height:0,border:0}),n.getContainer(e,r.Config).appendChild(t);var o=function(){e.e.off(e.ow,"mousemove",o),i.Dom.safeRemove(t)},s=t.contentWindow;s&&(e.e.on(s,"onbeforeunload onafterprint",o).on(e.ow,"mousemove",o),e.o.iframe?(e.e.fire("generateDocumentStructure.iframe",s.document,e),s.document.body.innerHTML=e.value):(s.document.write(''+e.value+""),s.document.close()),s.focus(),s.print())},mode:s.MODE_SOURCE+s.MODE_WYSIWYG,tooltip:"Print"},t.print=function(e){e.registerButton({name:"print"})}},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xpath=void 0;var r=o(7);o(343);var n=o(8),i=o(9),a=o(162),s=o(35),l=o(22),c=o(185),u=o(174);n.Config.prototype.showXPathInStatusbar=!0;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onContext=function(e,o){return t.menu||(t.menu=new a.ContextMenu(t.j)),t.menu.show(o.clientX,o.clientY,[{icon:"bin",title:e===t.j.editor?"Clear":"Remove",exec:function(){e!==t.j.editor?s.Dom.safeRemove(e):t.j.value="",t.j.setEditorValue()}},{icon:"select-all",title:"Select",exec:function(){t.j.s.select(e)}}]),!1},t.onSelectPath=function(e,o){t.j.s.focus();var r=l.attr(o.target,"-path")||"/";if("/"===r)return t.j.execCommand("selectall"),!1;try{var n=t.j.ed.evaluate(r,t.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(n)return t.j.s.select(n),!1}catch(e){}return t.j.s.select(e),!1},t.tpl=function(e,o,r,n){var i=t.j.c.fromHTML(''+l.trim(r)+""),a=i.firstChild;return t.j.e.on(a,"click",t.onSelectPath.bind(t,e)).on(a,"contextmenu",t.onContext.bind(t,e)),i},t.removeSelectAll=function(){t.selectAllButton&&(t.selectAllButton.destruct(),delete t.selectAllButton)},t.appendSelectAll=function(){t.removeSelectAll(),t.selectAllButton=u.makeButton(t.j,r.__assign({name:"selectall"},t.j.o.controls.selectall)),t.selectAllButton.state.size="tiny",t.container&&t.container.insertBefore(t.selectAllButton.container,t.container.firstChild)},t.calcPathImd=function(){if(!t.isDestructed){var e,o,r,n=t.j.s.current();t.container&&(t.container.innerHTML=i.INVISIBLE_SPACE),n&&s.Dom.up(n,(function(n){n&&t.j.editor!==n&&!s.Dom.isText(n)&&(e=n.nodeName.toLowerCase(),o=l.getXPathByElement(n,t.j.editor).replace(/^\//,""),r=t.tpl(n,o,e,t.j.i18n("Select %s",e)),t.container&&t.container.insertBefore(r,t.container.firstChild))}),t.j.editor),t.appendSelectAll()}},t.calcPath=t.j.async.debounce(t.calcPathImd,2*t.j.defaultTimeout),t}return r.__extends(t,e),t.prototype.afterInit=function(){var e=this;this.j.o.showXPathInStatusbar&&(this.container=this.j.c.div("jodit-xpath"),this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",(function(){e.j.o.showXPathInStatusbar&&e.container&&(e.j.statusbar.append(e.container),e.j.getRealMode()===i.MODE_WYSIWYG?e.calcPath():(e.container&&(e.container.innerHTML=i.INVISIBLE_SPACE),e.appendSelectAll()))})),this.calcPath())},t.prototype.beforeDestruct=function(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),s.Dom.safeRemove(this.container),delete this.menu,delete this.container},t}(c.Plugin);t.xpath=d},(e,t,o)=>{"use strict";o.r(t)},(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.paragraph=t.palette=t.outdent=t.omega=t.ol=t.ok=t.merge=t.menu=t.lock=t.link=t.left=t.justify=t.italic=t.info_circle=t.indent=t.image=t.hr=t.fullsize=t.fontsize=t.font=t.folder=t.file=t.eye=t.eraser=t.enter=t.chevron=t.dots=t.dedent=t.cut=t.crop=t.copy=t.copyformat=t.check_square=t.check=t.chain_broken=t.center=t.cancel=t.brush=t.bold=t.bin=t.attachment=t.arrows_h=t.arrows_alt=t.angle_up=t.angle_right=t.angle_left=t.angle_down=t.addrow=t.addcolumn=t.about=void 0,t.video=t.valign=t.upload=t.update=t.unlock=t.unlink=t.undo=t.underline=t.ul=t.th_list=t.th=t.table=t.superscript=t.subscript=t.strikethrough=t.splitv=t.splitg=t.source=t.shrink=t.settings=t.select_all=t.search=t.save=t.right=t.resizer=t.resize=t.redo=t.print=t.plus=t.pencil=t.paste=void 0;var r=o(345);t.about=r;var n=o(346);t.addcolumn=n;var i=o(347);t.addrow=i;var a=o(348);t.angle_down=a;var s=o(349);t.angle_left=s;var l=o(350);t.angle_right=l;var c=o(351);t.angle_up=c;var u=o(352);t.arrows_alt=u;var d=o(353);t.arrows_h=d;var p=o(354);t.attachment=p;var f=o(355);t.bin=f;var h=o(356);t.bold=h;var m=o(357);t.brush=m;var v=o(358);t.cancel=v;var g=o(359);t.center=g;var y=o(360);t.chain_broken=y;var b=o(361);t.check=b;var _=o(362);t.check_square=_;var w=o(363);t.chevron=w;var S=o(364);t.copyformat=S;var C=o(365);t.crop=C;var k=o(366);t.copy=k;var j=o(367);t.cut=j;var E=o(368);t.dedent=E;var I=o(369);t.dots=I;var x=o(370);t.enter=x;var T=o(371);t.eraser=T;var P=o(372);t.eye=P;var D=o(373);t.file=D;var z=o(374);t.folder=z;var A=o(375);t.font=A;var M=o(376);t.fontsize=M;var L=o(377);t.fullsize=L;var O=o(378);t.hr=O;var B=o(379);t.image=B;var N=o(380);t.indent=N;var R=o(381);t.info_circle=R;var q=o(382);t.italic=q;var H=o(383);t.justify=H;var F=o(384);t.left=F;var U=o(385);t.link=U;var V=o(386);t.lock=V;var W=o(387);t.menu=W;var Y=o(388);t.merge=Y;var K=o(389);t.ok=K;var G=o(390);t.ol=G;var J=o(391);t.omega=J;var X=o(392);t.outdent=X;var $=o(393);t.palette=$;var Z=o(394);t.paragraph=Z;var Q=o(395);t.paste=Q;var ee=o(396);t.pencil=ee;var te=o(397);t.plus=te;var oe=o(398);t.print=oe;var re=o(399);t.redo=re;var ne=o(400);t.resize=ne;var ie=o(401);t.resizer=ie;var ae=o(402);t.right=ae;var se=o(403);t.save=se;var le=o(404);t.search=le;var ce=o(405);t.settings=ce;var ue=o(406);t.select_all=ue;var de=o(407);t.shrink=de;var pe=o(408);t.source=pe;var fe=o(409);t.splitg=fe;var he=o(410);t.splitv=he;var me=o(411);t.strikethrough=me;var ve=o(412);t.subscript=ve;var ge=o(413);t.superscript=ge;var ye=o(414);t.table=ye;var be=o(415);t.th=be;var _e=o(416);t.th_list=_e;var we=o(417);t.ul=we;var Se=o(418);t.underline=Se;var Ce=o(419);t.undo=Ce;var ke=o(420);t.unlink=ke;var je=o(421);t.unlock=je;var Ee=o(422);t.update=Ee;var Ie=o(423);t.upload=Ie;var xe=o(424);t.valign=xe;var Te=o(425);t.video=Te},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=''},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=''},e=>{e.exports=''},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=''},e=>{e.exports=' '},e=>{e.exports=''},e=>{e.exports=''},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '},e=>{e.exports=' '}],t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={exports:{}};return e[r].call(n.exports,n,n.exports,o),n.exports}o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.Jodit=void 0,o(1),"undefined"!=typeof window&&o(2);var t=o(6),n=o(215),i=o(100),a=o(9),s=o(10),l=o(235),c=o(344);Object.keys(a).forEach((function(e){t.Jodit[e]=a[e]}));var u=function(e){return"__esModule"!==e};Object.keys(c).filter(u).forEach((function(e){s.Icon.set(e.replace("_","-"),c[e])})),Object.keys(s).filter(u).forEach((function(e){t.Jodit.modules[e]=s[e]})),Object.keys(i).filter(u).forEach((function(e){t.Jodit.decorators[e]=i[e]})),["Confirm","Alert","Prompt"].forEach((function(e){t.Jodit[e]=s[e]})),Object.keys(l).filter(u).forEach((function(e){t.Jodit.plugins.add(e,l[e])})),Object.keys(n.default).filter(u).forEach((function(e){t.Jodit.lang[e]=n.default[e]})),e.Jodit=t.Jodit})(),r})()}));