{"version":3,"file":"ckeditor.js","sources":["webpack://ClassicEditor/ckeditor.js"],"sourcesContent":["/*!\n * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md.\n */\n(function(t){const e=t[\"ru\"]=t[\"ru\"]||{};e.dictionary=Object.assign(e.dictionary||{},{\"%0 of %1\":\"%0 из %1\",\"Align cell text to the bottom\":\"Выровнять текст ячейки по нижнему краю\",\"Align cell text to the center\":\"Выровнять текст по центру\",\"Align cell text to the left\":\"Выровнять текст по левому краю\",\"Align cell text to the middle\":\"Выровнять текст ячейки по центру\",\"Align cell text to the right\":\"Выровнять текст по правому краю\",\"Align cell text to the top\":\"Выровнять текст ячейки по верхнему краю\",\"Align center\":\"Выравнивание по центру\",\"Align left\":\"Выравнивание по левому краю\",\"Align right\":\"Выравнивание по правому краю\",\"Align table to the left\":\"Выровнять таблицу по левому краю\",\"Align table to the right\":\"Выровнять таблицу по правому краю\",Alignment:\"Выравнивание\",\"Almost equal to\":\"\",Angle:\"\",\"Approximately equal to\":\"\",Aquamarine:\"Аквамариновый\",\"Asterisk operator\":\"\",\"Austral sign\":\"\",\"back with leftwards arrow above\":\"\",Background:\"Фон\",Big:\"Крупный\",\"Bitcoin sign\":\"\",Black:\"Чёрный\",\"Block quote\":\"Цитата\",Blue:\"Синий\",\"Blue marker\":\"Выделение синим маркером\",Bold:\"Жирный\",Border:\"Граница\",\"Break text\":\"Разрывать текст\",\"Bulleted List\":\"Маркированный список\",\"Bulleted list styles toolbar\":\"Стили маркированного списка\",Cancel:\"Отмена\",\"Cedi sign\":\"\",\"Cell properties\":\"Свойства ячейки\",\"Cent sign\":\"\",\"Center table\":\"Выровнять таблицу по центру\",\"Centered image\":\"Выравнивание по центру\",\"Change image text alternative\":\"Редактировать альтернативный текст\",\"Character categories\":\"Категории\",\"Characters: %0\":\"Символов: %0\",\"Choose heading\":\"Выбор стиля\",Circle:\"Окружность\",Code:\"Исходный код\",\"Colon sign\":\"\",Color:\"Цвет\",\"Color picker\":\"Выбор цвета\",Column:\"Столбец\",\"Contains as member\":\"\",\"Copyright sign\":\"\",\"Cruzeiro sign\":\"\",\"Currency sign\":\"\",Dashed:\"Пунктирная\",Decimal:\"Десятичный\",\"Decimal with leading zero\":\"Десятичный с ведущим нулем\",\"Decrease indent\":\"Уменьшить отступ\",Default:\"По умолчанию\",\"Degree sign\":\"\",\"Delete column\":\"Удалить столбец\",\"Delete row\":\"Удалить строку\",\"Dim grey\":\"Тёмно-серый\",Dimensions:\"Размеры\",Disc:\"Диск\",\"Division sign\":\"\",\"Document colors\":\"Цвет страницы\",\"Dollar sign\":\"\",\"Dong sign\":\"\",Dotted:\"Точечная\",Double:\"Двойная\",\"Double dagger\":\"\",\"Double exclamation mark\":\"\",\"Double low-9 quotation mark\":\"\",\"Double question mark\":\"\",Downloadable:\"Загружаемые\",\"downwards arrow to bar\":\"\",\"downwards dashed arrow\":\"\",\"downwards double arrow\":\"\",\"Drachma sign\":\"\",\"Dropdown toolbar\":\"Выпадающая панель инструментов\",\"Edit block\":\"Редактировать блок\",\"Edit link\":\"Редактировать ссылку\",\"Edit source\":\"Изменить код\",\"Editor toolbar\":\"Панель инструментов редактора\",\"Element of\":\"\",\"Em dash\":\"\",\"Empty set\":\"\",\"Empty snippet content\":\"Нет контента\",\"En dash\":\"\",\"end with leftwards arrow above\":\"\",\"Enter image caption\":\"Подпись к изображению\",\"Enter table caption\":\"Подпись таблицы\",\"Euro sign\":\"\",\"Euro-currency sign\":\"\",\"Exclamation question mark\":\"\",Find:\"Найти\",\"Find and replace\":\"Найти и заменить\",\"Find in text…\":\"Найти в тексте\",\"Font Background Color\":\"Цвет фона\",\"Font Color\":\"Цвет шрифта\",\"Font Family\":\"Семейство шрифтов\",\"Font Size\":\"Размер шрифта\",\"For all\":\"\",\"Fraction slash\":\"\",\"French franc sign\":\"\",\"Full size image\":\"Оригинальный размер изображения\",\"German penny sign\":\"\",\"Greater-than or equal to\":\"\",\"Greater-than sign\":\"\",Green:\"Зелёный\",\"Green marker\":\"Выделение зелёным маркером\",\"Green pen\":\"Зеленый цвет текста\",Grey:\"Серый\",Groove:\"Желобчатая\",\"Guarani sign\":\"\",\"Header column\":\"Столбец заголовков\",\"Header row\":\"Строка заголовков\",Heading:\"Стиль\",\"Heading 1\":\"Заголовок 1\",\"Heading 2\":\"Заголовок 2\",\"Heading 3\":\"Заголовок 3\",\"Heading 4\":\"Заголовок 4\",\"Heading 5\":\"Заголовок 5\",\"Heading 6\":\"Заголовок 6\",Height:\"Высота\",Highlight:\"Выделить\",\"Horizontal ellipsis\":\"\",\"Horizontal line\":\"Горизонтальная линия\",\"Horizontal text alignment toolbar\":\"Панель инструментов горизонтального выравнивания текста\",\"Hryvnia sign\":\"\",\"HTML object\":\"HTML объект\",\"HTML snippet\":\"HTML сниппет\",Huge:\"Очень крупный\",\"Identical to\":\"\",\"Image resize list\":\"Список размеров\",\"Image toolbar\":\"Панель инструментов изображения\",\"image widget\":\"Виджет изображений\",\"In line\":\"В тексте\",\"Increase indent\":\"Увеличить отступ\",\"Indian rupee sign\":\"\",Infinity:\"\",Insert:\"Вставить\",\"Insert code block\":\"Вставить код\",\"Insert column left\":\"Вставить столбец слева\",\"Insert column right\":\"Вставить столбец справа\",\"Insert HTML\":\"Вставить HTML\",\"Insert image\":\"Вставить изображение\",\"Insert image via URL\":\"Вставить изображение по URL\",\"Insert media\":\"Вставить медиа\",\"Insert paragraph after block\":\"Вставить параграф после блока\",\"Insert paragraph before block\":\"Вставить параграф перед блоком\",\"Insert row above\":\"Вставить строку выше\",\"Insert row below\":\"Вставить строку ниже\",\"Insert table\":\"Вставить таблицу\",Inset:\"Вдавленная\",Integral:\"\",Intersection:\"\",\"Inverted exclamation mark\":\"\",\"Inverted question mark\":\"\",Italic:\"Курсив\",Justify:\"Выравнивание по ширине\",\"Justify cell text\":\"Выровнять текст по ширине\",\"Kip sign\":\"\",\"Latin capital letter a with breve\":\"\",\"Latin capital letter a with macron\":\"\",\"Latin capital letter a with ogonek\":\"\",\"Latin capital letter c with acute\":\"\",\"Latin capital letter c with caron\":\"\",\"Latin capital letter c with circumflex\":\"\",\"Latin capital letter c with dot above\":\"\",\"Latin capital letter d with caron\":\"\",\"Latin capital letter d with stroke\":\"\",\"Latin capital letter e with breve\":\"\",\"Latin capital letter e with caron\":\"\",\"Latin capital letter e with dot above\":\"\",\"Latin capital letter e with macron\":\"\",\"Latin capital letter e with ogonek\":\"\",\"Latin capital letter eng\":\"\",\"Latin capital letter g with breve\":\"\",\"Latin capital letter g with cedilla\":\"\",\"Latin capital letter g with circumflex\":\"\",\"Latin capital letter g with dot above\":\"\",\"Latin capital letter h with circumflex\":\"\",\"Latin capital letter h with stroke\":\"\",\"Latin capital letter i with breve\":\"\",\"Latin capital letter i with dot above\":\"\",\"Latin capital letter i with macron\":\"\",\"Latin capital letter i with ogonek\":\"\",\"Latin capital letter i with tilde\":\"\",\"Latin capital letter j with circumflex\":\"\",\"Latin capital letter k with cedilla\":\"\",\"Latin capital letter l with acute\":\"\",\"Latin capital letter l with caron\":\"\",\"Latin capital letter l with cedilla\":\"\",\"Latin capital letter l with middle dot\":\"\",\"Latin capital letter l with stroke\":\"\",\"Latin capital letter n with acute\":\"\",\"Latin capital letter n with caron\":\"\",\"Latin capital letter n with cedilla\":\"\",\"Latin capital letter o with breve\":\"\",\"Latin capital letter o with double acute\":\"\",\"Latin capital letter o with macron\":\"\",\"Latin capital letter r with acute\":\"\",\"Latin capital letter r with caron\":\"\",\"Latin capital letter r with cedilla\":\"\",\"Latin capital letter s with acute\":\"\",\"Latin capital letter s with caron\":\"\",\"Latin capital letter s with cedilla\":\"\",\"Latin capital letter s with circumflex\":\"\",\"Latin capital letter t with caron\":\"\",\"Latin capital letter t with cedilla\":\"\",\"Latin capital letter t with stroke\":\"\",\"Latin capital letter u with breve\":\"\",\"Latin capital letter u with double acute\":\"\",\"Latin capital letter u with macron\":\"\",\"Latin capital letter u with ogonek\":\"\",\"Latin capital letter u with ring above\":\"\",\"Latin capital letter u with tilde\":\"\",\"Latin capital letter w with circumflex\":\"\",\"Latin capital letter y with circumflex\":\"\",\"Latin capital letter y with diaeresis\":\"\",\"Latin capital letter z with acute\":\"\",\"Latin capital letter z with caron\":\"\",\"Latin capital letter z with dot above\":\"\",\"Latin capital ligature ij\":\"\",\"Latin capital ligature oe\":\"\",\"Latin small letter a with breve\":\"\",\"Latin small letter a with macron\":\"\",\"Latin small letter a with ogonek\":\"\",\"Latin small letter c with acute\":\"\",\"Latin small letter c with caron\":\"\",\"Latin small letter c with circumflex\":\"\",\"Latin small letter c with dot above\":\"\",\"Latin small letter d with caron\":\"\",\"Latin small letter d with stroke\":\"\",\"Latin small letter dotless i\":\"\",\"Latin small letter e with breve\":\"\",\"Latin small letter e with caron\":\"\",\"Latin small letter e with dot above\":\"\",\"Latin small letter e with macron\":\"\",\"Latin small letter e with ogonek\":\"\",\"Latin small letter eng\":\"\",\"Latin small letter f with hook\":\"\",\"Latin small letter g with breve\":\"\",\"Latin small letter g with cedilla\":\"\",\"Latin small letter g with circumflex\":\"\",\"Latin small letter g with dot above\":\"\",\"Latin small letter h with circumflex\":\"\",\"Latin small letter h with stroke\":\"\",\"Latin small letter i with breve\":\"\",\"Latin small letter i with macron\":\"\",\"Latin small letter i with ogonek\":\"\",\"Latin small letter i with tilde\":\"\",\"Latin small letter j with circumflex\":\"\",\"Latin small letter k with cedilla\":\"\",\"Latin small letter kra\":\"\",\"Latin small letter l with acute\":\"\",\"Latin small letter l with caron\":\"\",\"Latin small letter l with cedilla\":\"\",\"Latin small letter l with middle dot\":\"\",\"Latin small letter l with stroke\":\"\",\"Latin small letter long s\":\"\",\"Latin small letter n preceded by apostrophe\":\"\",\"Latin small letter n with acute\":\"\",\"Latin small letter n with caron\":\"\",\"Latin small letter n with cedilla\":\"\",\"Latin small letter o with breve\":\"\",\"Latin small letter o with double acute\":\"\",\"Latin small letter o with macron\":\"\",\"Latin small letter r with acute\":\"\",\"Latin small letter r with caron\":\"\",\"Latin small letter r with cedilla\":\"\",\"Latin small letter s with acute\":\"\",\"Latin small letter s with caron\":\"\",\"Latin small letter s with cedilla\":\"\",\"Latin small letter s with circumflex\":\"\",\"Latin small letter t with caron\":\"\",\"Latin small letter t with cedilla\":\"\",\"Latin small letter t with stroke\":\"\",\"Latin small letter u with breve\":\"\",\"Latin small letter u with double acute\":\"\",\"Latin small letter u with macron\":\"\",\"Latin small letter u with ogonek\":\"\",\"Latin small letter u with ring above\":\"\",\"Latin small letter u with tilde\":\"\",\"Latin small letter w with circumflex\":\"\",\"Latin small letter y with circumflex\":\"\",\"Latin small letter z with acute\":\"\",\"Latin small letter z with caron\":\"\",\"Latin small letter z with dot above\":\"\",\"Latin small ligature ij\":\"\",\"Latin small ligature oe\":\"\",\"Left aligned image\":\"Выравнивание по левому краю\",\"Left double quotation mark\":\"\",\"Left single quotation mark\":\"\",\"Left-pointing double angle quotation mark\":\"\",\"leftwards arrow to bar\":\"\",\"leftwards dashed arrow\":\"\",\"leftwards double arrow\":\"\",\"Less-than or equal to\":\"\",\"Less-than sign\":\"\",\"Light blue\":\"Голубой\",\"Light green\":\"Салатовый\",\"Light grey\":\"Светло-серый\",Link:\"Ссылка\",\"Link image\":\"Ссылка на изображение\",\"Link URL\":\"Ссылка URL\",\"Lira sign\":\"\",\"Livre tournois sign\":\"\",\"Logical and\":\"\",\"Logical or\":\"\",\"Lower-latin\":\"Малые латинские\",\"Lower–roman\":\"Малые римские\",Macron:\"\",\"Manat sign\":\"\",\"Match case\":\"С учетом регистра\",\"Media toolbar\":\"Панель инструментов медиа\",\"Media URL\":\"URL медиа\",\"media widget\":\"медиа-виджет\",\"Merge cell down\":\"Объединить с ячейкой снизу\",\"Merge cell left\":\"Объединить с ячейкой слева\",\"Merge cell right\":\"Объединить с ячейкой справа\",\"Merge cell up\":\"Объединить с ячейкой сверху\",\"Merge cells\":\"Объединить ячейки\",\"Mill sign\":\"\",\"Minus sign\":\"\",\"Multiplication sign\":\"\",\"N-ary product\":\"\",\"N-ary summation\":\"\",Nabla:\"\",\"Naira sign\":\"\",\"New sheqel sign\":\"\",Next:\"Следующий\",\"Next result\":\"Следующий результат\",\"No preview available\":\"Предпросмотр недоступен\",None:\"Нет\",\"Nordic mark sign\":\"\",\"Not an element of\":\"\",\"Not equal to\":\"\",\"Not sign\":\"\",\"Numbered List\":\"Нумерованный список\",\"Numbered list styles toolbar\":\"Стили нумерованного списка\",\"on with exclamation mark with left right arrow above\":\"\",\"Open in a new tab\":\"Открыть в новой вкладке\",\"Open link in new tab\":\"Открыть ссылку в новой вкладке\",Orange:\"Оранжевый\",Original:\"Оригинальный\",Outset:\"Выпуклая\",Overline:\"\",Padding:\"Отступ\",\"Page break\":\"Разрыв страницы\",Paragraph:\"Параграф\",\"Paragraph sign\":\"\",\"Partial differential\":\"\",\"Paste raw HTML here...\":\"Вставьте HTML код сюда...\",\"Paste the media URL in the input.\":\"Вставьте URL медиа в поле ввода.\",\"Per mille sign\":\"\",\"Per ten thousand sign\":\"\",\"Peseta sign\":\"\",\"Peso sign\":\"\",\"Pink marker\":\"Выделение розовым маркером\",\"Plain text\":\"Простой текст\",\"Plus-minus sign\":\"\",\"Pound sign\":\"\",Previous:\"Предыдущий\",\"Previous result\":\"Предыдущий результат\",\"Proportional to\":\"\",Purple:\"Фиолетовый\",\"Question exclamation mark\":\"\",Red:\"Красный\",\"Red pen\":\"Красный цвет текста\",Redo:\"Повторить\",\"Registered sign\":\"\",\"Remove color\":\"Убрать цвет\",\"Remove Format\":\"Убрать форматирование\",\"Remove highlight\":\"Убрать выделение\",Replace:\"Заменить\",\"Replace all\":\"Заменить всё\",\"Replace with…\":\"Заменить на...\",\"Resize image\":\"Изменить размер изображения\",\"Resize image to %0\":\"Изменить размер изображения до %0\",\"Resize image to the original size\":\"Вернуть размер изображения к оригинальному\",\"Restore default\":\"По умолчанию\",\"Reversed paragraph sign\":\"\",\"Rich Text Editor\":\"Редактор\",\"Rich Text Editor, %0\":\"Редактор, %0\",Ridge:\"Ребристая\",\"Right aligned image\":\"Выравнивание по правому краю\",\"Right double quotation mark\":\"\",\"Right single quotation mark\":\"\",\"Right-pointing double angle quotation mark\":\"\",\"rightwards arrow to bar\":\"\",\"rightwards dashed arrow\":\"\",\"rightwards double arrow\":\"\",Row:\"Строка\",\"Ruble sign\":\"\",\"Rupee sign\":\"\",Save:\"Сохранить\",\"Save changes\":\"Сохранить изменения\",\"Section sign\":\"\",\"Select all\":\"Выбрать все\",\"Select column\":\"Выбрать столбец\",\"Select row\":\"Выбрать строку\",\"Show more items\":\"Другие инструменты\",\"Show options\":\"\",\"Side image\":\"Боковое изображение\",\"Single left-pointing angle quotation mark\":\"\",\"Single low-9 quotation mark\":\"\",\"Single right-pointing angle quotation mark\":\"\",Small:\"Мелкий\",Solid:\"Сплошная\",\"soon with rightwards arrow above\":\"\",Source:\"HTML редактор\",\"Special characters\":\"Спецсимволы\",\"Spesmilo sign\":\"\",\"Split cell horizontally\":\"Разделить ячейку горизонтально\",\"Split cell vertically\":\"Разделить ячейку вертикально\",Square:\"Квадрат\",\"Square root\":\"\",Strikethrough:\"Зачеркнутый\",Style:\"Стиль\",Subscript:\"Подстрочный\",Superscript:\"Надстрочный\",\"Table alignment toolbar\":\"Панель инструментов выравнивания таблицы\",\"Table cell text alignment\":\"Выравнивание текста в ячейке таблицы\",\"Table properties\":\"Свойства таблицы\",\"Table toolbar\":\"Панель инструментов таблицы\",\"Tenge sign\":\"\",\"Text alignment\":\"Выравнивание текста\",\"Text alignment toolbar\":\"Выравнивание\",\"Text alternative\":\"Альтернативный текст\",\"Text highlight toolbar\":\"Панель инструментов выделения текста\",\"Text to find must not be empty.\":\"\",'The color is invalid. Try \"#FF0000\" or \"rgb(255,0,0)\" or \"red\".':'Неверный цвет. Попробуйте \"#FF0000\" или \"rgb(255,0,0)\" или \"red\".',\"The URL must not be empty.\":\"URL не должен быть пустым.\",'The value is invalid. Try \"10px\" or \"2em\" or simply \"2\".':'Неверное значение. Попробуйте \"10px\" или \"2em\" или просто \"2\".',\"There exists\":\"\",\"This link has no URL\":\"Для этой ссылки не установлен адрес URL\",\"This media URL is not supported.\":\"Этот URL медиа не поддерживается.\",\"Tilde operator\":\"\",Tiny:\"Очень мелкий\",\"Tip: Find some text first in order to replace it.\":\"\",\"Tip: Paste the URL into the content to embed faster.\":\"Подсказка: Вставьте URL в контент для быстрого включения.\",\"To-do List\":\"Список задач\",\"Toggle caption off\":\"Выключить описание\",\"Toggle caption on\":\"Включить описание\",\"Toggle the circle list style\":\"\",\"Toggle the decimal list style\":\"\",\"Toggle the decimal with leading zero list style\":\"\",\"Toggle the disc list style\":\"\",\"Toggle the lower–latin list style\":\"\",\"Toggle the lower–roman list style\":\"\",\"Toggle the square list style\":\"\",\"Toggle the upper–latin list style\":\"\",\"Toggle the upper–roman list style\":\"\",\"top with upwards arrow above\":\"\",\"Trade mark sign\":\"\",\"Tugrik sign\":\"\",\"Turkish lira sign\":\"\",Turquoise:\"Бирюзовый\",\"Two dot leader\":\"\",Underline:\"Подчеркнутый\",Undo:\"Отменить\",Union:\"\",Unlink:\"Убрать ссылку\",\"up down arrow with base\":\"\",Update:\"Изменить\",\"Update image URL\":\"Изменить URL изображения\",\"Upload failed\":\"Загрузка не выполнена\",\"Upload in progress\":\"Идёт загрузка\",\"Upper-latin\":\"Большие латинские\",\"Upper-roman\":\"Большие римские\",\"upwards arrow to bar\":\"\",\"upwards dashed arrow\":\"\",\"upwards double arrow\":\"\",\"Vertical text alignment toolbar\":\"Панель инструментов вертикального выравнивания текста\",\"Vulgar fraction one half\":\"\",\"Vulgar fraction one quarter\":\"\",\"Vulgar fraction three quarters\":\"\",White:\"Белый\",\"Whole words only\":\"Только слова целиком\",\"Widget toolbar\":\"Панель инструментов виджета\",Width:\"Ширина\",\"Won sign\":\"\",\"Words: %0\":\"Слов: %0\",\"Wrap text\":\"Обтекать текст\",Yellow:\"Жёлтый\",\"Yellow marker\":\"Выделение жёлтым маркером\",\"Yen sign\":\"\"});e.getPluralForm=function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<12||t%100>14)?1:t%10==0||t%10>=5&&t%10<=9||t%100>=11&&t%100<=14?2:3}})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));(function t(e,n){if(typeof exports===\"object\"&&typeof module===\"object\")module.exports=n();else if(typeof define===\"function\"&&define.amd)define([],n);else if(typeof exports===\"object\")exports[\"ClassicEditor\"]=n();else e[\"ClassicEditor\"]=n()})(window,(function(){return function(t){var e={};function n(i){if(e[i]){return e[i].exports}var o=e[i]={i:i,l:false,exports:{}};t[i].call(o.exports,o,o.exports,n);o.l=true;return o.exports}n.m=t;n.c=e;n.d=function(t,e,i){if(!n.o(t,e)){Object.defineProperty(t,e,{enumerable:true,get:i})}};n.r=function(t){if(typeof Symbol!==\"undefined\"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"})}Object.defineProperty(t,\"__esModule\",{value:true})};n.t=function(t,e){if(e&1)t=n(t);if(e&8)return t;if(e&4&&typeof t===\"object\"&&t&&t.__esModule)return t;var i=Object.create(null);n.r(i);Object.defineProperty(i,\"default\",{enumerable:true,value:t});if(e&2&&typeof t!=\"string\")for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i};n.n=function(t){var e=t&&t.__esModule?function e(){return t[\"default\"]}:function e(){return t};n.d(e,\"a\",e);return e};n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};n.p=\"\";return n(n.s=92)}([function(t,e,n){\"use strict\";n.d(e,\"a\",(function(){return o}));n.d(e,\"b\",(function(){return r}));const i=\"https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html\";class o extends Error{constructor(t,e,n){const i=`${t}${n?` ${JSON.stringify(n)}`:\"\"}${a(t)}`;super(i);this.name=\"CKEditorError\";this.context=e;this.data=n}is(t){return t===\"CKEditorError\"}static rethrowUnexpectedError(t,e){if(t.is&&t.is(\"CKEditorError\")){throw t}const n=new o(t.message,e);n.stack=t.stack;throw n}}function r(t,e){console.warn(...c(t,e))}function s(t,e){console.error(...c(t,e))}function a(t){return`\\nRead more: ${i}#error-${t}`}function c(t,e){const n=a(t);return e?[t,e,n]:[t,n]}},function(t,e,n){\"use strict\";var i=function t(){var e;return function t(){if(typeof e===\"undefined\"){e=Boolean(window&&document&&document.all&&!window.atob)}return e}}();var o=function t(){var e={};return function t(n){if(typeof e[n]===\"undefined\"){var i=document.querySelector(n);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement){try{i=i.contentDocument.head}catch(t){i=null}}e[n]=i}return e[n]}}();var r=[];function s(t){var e=-1;for(var n=0;n
\").replace(/\\r?\\n/g,\"
\").replace(/^\\s/,\" \").replace(/\\s$/,\" \").replace(/\\s\\s/g,\" \");if(t.includes(\"
\")||t.includes(\"
\")){t=`
${t}
`}return t}function uy(t){return t.replace(/(\\s+)<\\/span>/g,((t,e)=>{if(e.length==1){return\" \"}return e})).replace(//g,\"\")}const hy=[\"figcaption\",\"li\"];function my(t){let e=\"\";if(t.is(\"$text\")||t.is(\"$textProxy\")){e=t.data}else if(t.is(\"element\",\"img\")&&t.hasAttribute(\"alt\")){e=t.getAttribute(\"alt\")}else if(t.is(\"element\",\"br\")){e=\"\\n\"}else{let n=null;for(const i of t.getChildren()){const t=my(i);if(n&&(n.is(\"containerElement\")||i.is(\"containerElement\"))){if(hy.includes(n.name)||hy.includes(i.name)){e+=\"\\n\"}else{e+=\"\\n\\n\"}}e+=t;n=i}}return e}class gy extends Hn{static get pluginName(){return\"ClipboardPipeline\"}init(){const t=this.editor;const e=t.editing.view;e.addObserver(cy);this._setupPasteDrop();this._setupCopyCut()}_setupPasteDrop(){const t=this.editor;const e=t.model;const n=t.editing.view;const i=n.document;this.listenTo(i,\"clipboardInput\",(e=>{if(t.isReadOnly){e.stop()}}),{priority:\"highest\"});this.listenTo(i,\"clipboardInput\",((t,e)=>{const i=e.dataTransfer;let o=e.content||\"\";if(!o){if(i.getData(\"text/html\")){o=uy(i.getData(\"text/html\"))}else if(i.getData(\"text/plain\")){o=dy(i.getData(\"text/plain\"))}o=this.editor.data.htmlProcessor.toView(o)}const s=new r(this,\"inputTransformation\");this.fire(s,{content:o,dataTransfer:i,targetRanges:e.targetRanges,method:e.method});if(s.stop.called){t.stop()}n.scrollToTheSelection()}),{priority:\"low\"});this.listenTo(this,\"inputTransformation\",((t,n)=>{if(n.content.isEmpty){return}const i=this.editor.data;const o=i.toModel(n.content,\"$clipboardHolder\");if(o.childCount==0){return}t.stop();e.change((()=>{this.fire(\"contentInsertion\",{content:o,method:n.method,dataTransfer:n.dataTransfer,targetRanges:n.targetRanges})}))}),{priority:\"low\"});this.listenTo(this,\"contentInsertion\",((t,n)=>{n.resultRange=e.insertContent(n.content)}),{priority:\"low\"})}_setupCopyCut(){const t=this.editor;const e=t.model.document;const n=t.editing.view;const i=n.document;function o(n,o){const r=o.dataTransfer;o.preventDefault();const s=t.data.toView(t.model.getSelectedContent(e.selection));i.fire(\"clipboardOutput\",{dataTransfer:r,content:s,method:n.name})}this.listenTo(i,\"copy\",o,{priority:\"low\"});this.listenTo(i,\"cut\",((e,n)=>{if(t.isReadOnly){n.preventDefault()}else{o(e,n)}}),{priority:\"low\"});this.listenTo(i,\"clipboardOutput\",((n,i)=>{if(!i.content.isEmpty){i.dataTransfer.setData(\"text/html\",this.editor.data.htmlProcessor.toData(i.content));i.dataTransfer.setData(\"text/plain\",my(i.content))}if(i.method==\"cut\"){t.model.deleteContent(e.selection)}}),{priority:\"low\"})}}function*fy(t,e){for(const n of e){if(n&&t.getAttributeProperties(n[0]).copyOnEnter){yield n}}}class py extends qn{execute(){const t=this.editor.model;const e=t.document;t.change((n=>{by(this.editor.model,n,e.selection,t.schema);this.fire(\"afterExecute\",{writer:n})}))}}function by(t,e,n,i){const o=n.isCollapsed;const r=n.getFirstRange();const s=r.start.parent;const a=r.end.parent;if(i.isLimit(s)||i.isLimit(a)){if(!o&&s==a){t.deleteContent(n)}return}if(o){const t=fy(e.model.schema,n.getAttributes());ky(e,r.start);e.setSelectionAttribute(t)}else{const i=!(r.start.isAtStart&&r.end.isAtEnd);const o=s==a;t.deleteContent(n,{leaveUnmerged:i});if(i){if(o){ky(e,n.focus)}else{e.setSelection(a,0)}}}}function ky(t,e){t.split(e);t.setSelection(e.parent.nextSibling,0)}class wy extends Eu{constructor(t){super(t);const e=this.document;e.on(\"keydown\",((t,n)=>{if(this.isEnabled&&n.keyCode==od.enter){const i=new Bl(e,\"enter\",e.selection.getFirstRange());e.fire(i,new Dh(e,n.domEvent,{isSoft:n.shiftKey}));if(i.stop.called){t.stop()}}}))}observe(){}}class Cy extends Hn{static get pluginName(){return\"Enter\"}init(){const t=this.editor;const e=t.editing.view;const n=e.document;e.addObserver(wy);t.commands.add(\"enter\",new py(t));this.listenTo(n,\"enter\",((n,i)=>{i.preventDefault();if(i.isSoft){return}t.execute(\"enter\");e.scrollToTheSelection()}),{priority:\"low\"})}}class Ay{constructor(t,e=20){this.model=t;this.size=0;this.limit=e;this.isLocked=false;this._changeCallback=(t,e)=>{if(e.type!=\"transparent\"&&e!==this._batch){this._reset(true)}};this._selectionChangeCallback=()=>{this._reset()};this.model.document.on(\"change\",this._changeCallback);this.model.document.selection.on(\"change:range\",this._selectionChangeCallback);this.model.document.selection.on(\"change:attribute\",this._selectionChangeCallback)}get batch(){if(!this._batch){this._batch=this.model.createBatch()}return this._batch}input(t){this.size+=t;if(this.size>=this.limit){this._reset(true)}}lock(){this.isLocked=true}unlock(){this.isLocked=false}destroy(){this.model.document.off(\"change\",this._changeCallback);this.model.document.selection.off(\"change:range\",this._selectionChangeCallback);this.model.document.selection.off(\"change:attribute\",this._selectionChangeCallback)}_reset(t){if(!this.isLocked||t){this._batch=null;this.size=0}}}class vy extends qn{constructor(t,e){super(t);this.direction=e;this._buffer=new Ay(t.model,t.config.get(\"typing.undoStep\"))}get buffer(){return this._buffer}execute(t={}){const e=this.editor.model;const n=e.document;e.enqueueChange(this._buffer.batch,(i=>{this._buffer.lock();const o=i.createSelection(t.selection||n.selection);const r=t.sequence||1;const s=o.isCollapsed;if(o.isCollapsed){e.modifySelection(o,{direction:this.direction,unit:t.unit})}if(this._shouldEntireContentBeReplacedWithParagraph(r)){this._replaceEntireContentWithParagraph(i);return}if(this._shouldReplaceFirstBlockWithParagraph(o,r)){this.editor.execute(\"paragraph\",{selection:o});return}if(o.isCollapsed){return}let a=0;o.getFirstRange().getMinimalFlatRanges().forEach((t=>{a+=Sl(t.getWalker({singleCharacters:true,ignoreElementEnd:true,shallow:true}))}));e.deleteContent(o,{doNotResetEntireContent:s,direction:this.direction});this._buffer.input(a);i.setSelection(o);this._buffer.unlock()}))}_shouldEntireContentBeReplacedWithParagraph(t){if(t>1){return false}const e=this.editor.model;const n=e.document;const i=n.selection;const o=e.schema.getLimitElement(i);const r=i.isCollapsed&&i.containsEntireContent(o);if(!r){return false}if(!e.schema.checkChild(o,\"paragraph\")){return false}const s=o.getChild(0);if(s&&s.name===\"paragraph\"){return false}return true}_replaceEntireContentWithParagraph(t){const e=this.editor.model;const n=e.document;const i=n.selection;const o=e.schema.getLimitElement(i);const r=t.createElement(\"paragraph\");t.remove(t.createRangeIn(o));t.insert(r,o);t.setSelection(r,0)}_shouldReplaceFirstBlockWithParagraph(t,e){const n=this.editor.model;if(e>1||this.direction!=\"backward\"){return false}if(!t.isCollapsed){return false}const i=t.getFirstPosition();const o=n.schema.getLimitElement(i);const r=o.getChild(0);if(i.parent!=r){return false}if(!t.containsEntireContent(r)){return false}if(!n.schema.checkChild(o,\"paragraph\")){return false}if(r.name==\"paragraph\"){return false}return true}}class _y extends Eu{constructor(t){super(t);const e=t.document;let n=0;e.on(\"keyup\",((t,e)=>{if(e.keyCode==od.delete||e.keyCode==od.backspace){n=0}}));e.on(\"keydown\",((t,e)=>{const o={};if(e.keyCode==od.delete){o.direction=\"forward\";o.unit=\"character\"}else if(e.keyCode==od.backspace){o.direction=\"backward\";o.unit=\"codePoint\"}else{return}const r=Yl.isMac?e.altKey:e.ctrlKey;o.unit=r?\"word\":o.unit;o.sequence=++n;i(t,e.domEvent,o)}));if(Yl.isAndroid){e.on(\"beforeinput\",((e,n)=>{if(n.domEvent.inputType!=\"deleteContentBackward\"){return}const o={unit:\"codepoint\",direction:\"backward\",sequence:1};const r=n.domTarget.ownerDocument.defaultView.getSelection();if(r.anchorNode==r.focusNode&&r.anchorOffset+1!=r.focusOffset){o.selectionToRemove=t.domConverter.domSelectionToView(r)}i(e,n.domEvent,o)}))}function i(t,n,i){const o=new Bl(e,\"delete\",e.selection.getFirstRange());e.fire(o,new Dh(e,n,i));if(o.stop.called){t.stop()}}}observe(){}}class yy extends Hn{static get pluginName(){return\"Delete\"}init(){const t=this.editor;const e=t.editing.view;const n=e.document;e.addObserver(_y);const i=new vy(t,\"forward\");t.commands.add(\"deleteForward\",i);t.commands.add(\"forwardDelete\",i);t.commands.add(\"delete\",new vy(t,\"backward\"));this.listenTo(n,\"delete\",((n,i)=>{const o={unit:i.unit,sequence:i.sequence};if(i.selectionToRemove){const e=t.model.createSelection();const n=[];for(const e of i.selectionToRemove.getRanges()){n.push(t.editing.mapper.toModelRange(e))}e.setTo(n);o.selection=e}t.execute(i.direction==\"forward\"?\"deleteForward\":\"delete\",o);i.preventDefault();e.scrollToTheSelection()}),{priority:\"low\"});if(Yl.isAndroid){let t=null;this.listenTo(n,\"delete\",((e,n)=>{const i=n.domTarget.ownerDocument.defaultView.getSelection();t={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}}),{priority:\"lowest\"});this.listenTo(n,\"keyup\",((e,n)=>{if(t){const e=n.domTarget.ownerDocument.defaultView.getSelection();e.collapse(t.anchorNode,t.anchorOffset);e.extend(t.focusNode,t.focusOffset);t=null}}))}}}class xy{constructor(){this._stack=[]}add(t,e){const n=this._stack;const i=n[0];this._insertDescriptor(t);const o=n[0];if(i!==o&&!Ey(i,o)){this.fire(\"change:top\",{oldDescriptor:i,newDescriptor:o,writer:e})}}remove(t,e){const n=this._stack;const i=n[0];this._removeDescriptor(t);const o=n[0];if(i!==o&&!Ey(i,o)){this.fire(\"change:top\",{oldDescriptor:i,newDescriptor:o,writer:e})}}_insertDescriptor(t){const e=this._stack;const n=e.findIndex((e=>e.id===t.id));if(Ey(t,e[n])){return}if(n>-1){e.splice(n,1)}let i=0;while(e[i]&&Dy(e[i],t)){i++}e.splice(i,0,t)}_removeDescriptor(t){const e=this._stack;const n=e.findIndex((e=>e.id===t));if(n>-1){e.splice(n,1)}}}jn(xy,f);function Ey(t,e){return t&&e&&t.priority==e.priority&&Sy(t.classes)==Sy(e.classes)}function Dy(t,e){if(t.priority>e.priority){return true}else if(t.priority