{"version":3,"file":"ckeditor.js","sources":["webpack://InlineEditor/ckeditor.js"],"sourcesContent":["/*!\n * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md.\n */\n(function(e){const t=e[\"en\"]=e[\"en\"]||{};t.dictionary=Object.assign(t.dictionary||{},{\"%0 of %1\":\"%0 of %1\",\"Align center\":\"Align center\",\"Align left\":\"Align left\",\"Align right\":\"Align right\",Aquamarine:\"Aquamarine\",Big:\"Big\",Black:\"Black\",\"Block quote\":\"Block quote\",Blue:\"Blue\",\"Blue marker\":\"Blue marker\",Bold:\"Bold\",\"Bulleted List\":\"Bulleted List\",Cancel:\"Cancel\",\"Cannot upload file:\":\"Cannot upload file:\",\"Centered image\":\"Centered image\",\"Change image text alternative\":\"Change image text alternative\",\"Choose heading\":\"Choose heading\",Column:\"Column\",\"Could not insert image at the current position.\":\"Could not insert image at the current position.\",\"Could not obtain resized image URL.\":\"Could not obtain resized image URL.\",\"Decrease indent\":\"Decrease indent\",Default:\"Default\",\"Delete column\":\"Delete column\",\"Delete row\":\"Delete row\",\"Dim grey\":\"Dim grey\",\"Document colors\":\"Document colors\",Downloadable:\"Downloadable\",\"Dropdown toolbar\":\"Dropdown toolbar\",\"Edit link\":\"Edit link\",\"Editor toolbar\":\"Editor toolbar\",\"Enter image caption\":\"Enter image caption\",\"Font Background Color\":\"Font Background Color\",\"Font Family\":\"Font Family\",\"Font Size\":\"Font Size\",\"Full size image\":\"Full size image\",Green:\"Green\",\"Green marker\":\"Green marker\",\"Green pen\":\"Green pen\",Grey:\"Grey\",\"Header column\":\"Header column\",\"Header row\":\"Header row\",Heading:\"Heading\",\"Heading 1\":\"Heading 1\",\"Heading 2\":\"Heading 2\",\"Heading 3\":\"Heading 3\",\"Heading 4\":\"Heading 4\",\"Heading 5\":\"Heading 5\",\"Heading 6\":\"Heading 6\",Highlight:\"Highlight\",\"Horizontal line\":\"Horizontal line\",Huge:\"Huge\",\"Image toolbar\":\"Image toolbar\",\"image widget\":\"image widget\",\"Increase indent\":\"Increase indent\",\"Insert code block\":\"Insert code block\",\"Insert column left\":\"Insert column left\",\"Insert column right\":\"Insert column right\",\"Insert image\":\"Insert image\",\"Insert image or file\":\"Insert image or file\",\"Insert media\":\"Insert media\",\"Insert row above\":\"Insert row above\",\"Insert row below\":\"Insert row below\",\"Insert table\":\"Insert table\",\"Inserting image failed\":\"Inserting image failed\",Italic:\"Italic\",Justify:\"Justify\",\"Left aligned image\":\"Left aligned image\",\"Light blue\":\"Light blue\",\"Light green\":\"Light green\",\"Light grey\":\"Light grey\",Link:\"Link\",\"Link URL\":\"Link URL\",\"Media URL\":\"Media URL\",\"media widget\":\"media widget\",\"Merge cell down\":\"Merge cell down\",\"Merge cell left\":\"Merge cell left\",\"Merge cell right\":\"Merge cell right\",\"Merge cell up\":\"Merge cell up\",\"Merge cells\":\"Merge cells\",Next:\"Next\",\"Numbered List\":\"Numbered List\",\"Open in a new tab\":\"Open in a new tab\",\"Open link in new tab\":\"Open link in new tab\",Orange:\"Orange\",Paragraph:\"Paragraph\",\"Paste the media URL in the input.\":\"Paste the media URL in the input.\",\"Pink marker\":\"Pink marker\",\"Plain text\":\"Plain text\",Previous:\"Previous\",Purple:\"Purple\",Red:\"Red\",\"Red pen\":\"Red pen\",Redo:\"Redo\",\"Remove color\":\"Remove color\",\"Remove Format\":\"Remove Format\",\"Remove highlight\":\"Remove highlight\",\"Rich Text Editor, %0\":\"Rich Text Editor, %0\",\"Right aligned image\":\"Right aligned image\",Row:\"Row\",Save:\"Save\",\"Select column\":\"Select column\",\"Select row\":\"Select row\",\"Selecting resized image failed\":\"Selecting resized image failed\",\"Show more items\":\"Show more items\",\"Side image\":\"Side image\",Small:\"Small\",\"Split cell horizontally\":\"Split cell horizontally\",\"Split cell vertically\":\"Split cell vertically\",Strikethrough:\"Strikethrough\",\"Table toolbar\":\"Table toolbar\",\"Text alignment\":\"Text alignment\",\"Text alignment toolbar\":\"Text alignment toolbar\",\"Text alternative\":\"Text alternative\",\"Text highlight toolbar\":\"Text highlight toolbar\",\"The URL must not be empty.\":\"The URL must not be empty.\",\"This link has no URL\":\"This link has no URL\",\"This media URL is not supported.\":\"This media URL is not supported.\",Tiny:\"Tiny\",\"Tip: Paste the URL into the content to embed faster.\":\"Tip: Paste the URL into the content to embed faster.\",\"To-do List\":\"To-do List\",Turquoise:\"Turquoise\",Underline:\"Underline\",Undo:\"Undo\",Unlink:\"Unlink\",\"Upload failed\":\"Upload failed\",\"Upload in progress\":\"Upload in progress\",White:\"White\",\"Widget toolbar\":\"Widget toolbar\",Yellow:\"Yellow\",\"Yellow marker\":\"Yellow marker\"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));(function e(t,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[\"InlineEditor\"]=n();else t[\"InlineEditor\"]=n()})(window,(function(){return function(e){var t={};function n(i){if(t[i]){return t[i].exports}var o=t[i]={i:i,l:false,exports:{}};e[i].call(o.exports,o,o.exports,n);o.l=true;return o.exports}n.m=e;n.c=t;n.d=function(e,t,i){if(!n.o(e,t)){Object.defineProperty(e,t,{enumerable:true,get:i})}};n.r=function(e){if(typeof Symbol!==\"undefined\"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"})}Object.defineProperty(e,\"__esModule\",{value:true})};n.t=function(e,t){if(t&1)e=n(e);if(t&8)return e;if(t&4&&typeof e===\"object\"&&e&&e.__esModule)return e;var i=Object.create(null);n.r(i);Object.defineProperty(i,\"default\",{enumerable:true,value:e});if(t&2&&typeof e!=\"string\")for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i};n.n=function(e){var t=e&&e.__esModule?function t(){return e[\"default\"]}:function t(){return e};n.d(t,\"a\",t);return t};n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};n.p=\"\";return n(n.s=108)}([function(e,t,n){\"use strict\";n.d(t,\"b\",(function(){return o}));n.d(t,\"a\",(function(){return s}));const i=\"https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html\";class o extends Error{constructor(e,t,n){e=s(e);if(n){e+=\" \"+JSON.stringify(n)}super(e);this.name=\"CKEditorError\";this.context=t;this.data=n}is(e){return e===\"CKEditorError\"}static rethrowUnexpectedError(e,t){if(e.is&&e.is(\"CKEditorError\")){throw e}const n=new o(e.message,t);n.stack=e.stack;throw n}}function s(e){const t=e.match(/^([^:]+):/);if(!t){return e}return e+` Read more: ${i}#error-${t[1]}\\n`}},function(e,t,n){\"use strict\";var i=function e(){var t;return function e(){if(typeof t===\"undefined\"){t=Boolean(window&&document&&document.all&&!window.atob)}return t}}();var o=function e(){var t={};return function e(n){if(typeof t[n]===\"undefined\"){var i=document.querySelector(n);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement){try{i=i.contentDocument.head}catch(e){i=null}}t[n]=i}return t[n]}}();var s=[];function r(e){var t=-1;for(var n=0;n:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}\"},function(e,t,n){var i=n(1);var o=n(21);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:\"\";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:var(--ck-balloon-arrow-height);border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:0}.ck.ck-balloon-panel[class*=arrow_n]:before{border-bottom-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-color:transparent;border-right-color:transparent;border-top-color:transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background);margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:0;border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-top-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.ck.ck-balloon-panel[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background);margin-bottom:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{right:25%;margin-right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{left:25%;margin-left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{right:25%;margin-right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}'},function(e,t,n){var i=n(1);var o=n(23);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:var(--ck-z-modal);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{top:100%;bottom:auto}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}:root{--ck-dropdown-arrow-size:calc(0.5*var(--ck-icon-size))}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}\"},function(e,t,n){var i=n(1);var o=n(25);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:.8333350694em;will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}\"},function(e,t,n){var i=n(1);var o=n(27);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports='.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{position:absolute;pointer-events:none;-webkit-backface-visibility:hidden}.ck.ck-tooltip{visibility:hidden;opacity:0;display:none;z-index:var(--ck-z-modal)}.ck.ck-tooltip .ck-tooltip__text{display:inline-block}.ck.ck-tooltip .ck-tooltip__text:after{content:\"\";width:0;height:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{font-size:.9em;line-height:1.5;color:var(--ck-color-tooltip-text);padding:var(--ck-spacing-small) var(--ck-spacing-medium);background:var(--ck-color-tooltip-background);position:relative;left:-50%}.ck.ck-tooltip .ck-tooltip__text:after{transition:opacity .2s ease-in-out .2s;border-style:solid;left:50%}.ck.ck-tooltip.ck-tooltip_s{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:var(--ck-color-tooltip-background);border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:0}.ck.ck-tooltip.ck-tooltip_n{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--ck-color-tooltip-background);border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:0;border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}'},function(e,t,n){var i=n(1);var o=n(29);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{position:relative;display:inline-flex;align-items:center;justify-content:left}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{visibility:visible;opacity:1}.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;border:1px solid transparent;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;-webkit-appearance:none}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(-1*var(--ck-spacing-small));margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:calc(-1*var(--ck-spacing-small));margin-left:var(--ck-spacing-small)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}\"},function(e,t,n){var i=n(1);var o=n(31);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{list-style-type:none;background:var(--ck-color-list-background)}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{min-height:unset;width:100%;text-align:left;border-radius:0;padding:calc(0.2*var(--ck-line-height-base)*var(--ck-font-size-base)) calc(0.4*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(1.2*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{height:1px;width:100%;background:var(--ck-color-base-border)}\"},function(e,t,n){var i=n(1);var o=n(33);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2*var(--ck-switch-button-toggle-spacing))}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(2*var(--ck-spacing-large))}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(2*var(--ck-spacing-large))}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{transition:background .4s ease;width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(0.5*var(--ck-border-radius))}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{margin:var(--ck-switch-button-toggle-spacing);width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s ease}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var(--ck-switch-button-translation))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(-1*var(--ck-switch-button-translation)))}\"},function(e,t,n){var i=n(1);var o=n(35);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck.ck-toolbar-dropdown .ck.ck-toolbar .ck.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar-dropdown .ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}\"},function(e,t,n){var i=n(1);var o=n(37);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}\"},function(e,t,n){var i=n(1);var o=n(39);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck.ck-toolbar{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-flow:row nowrap;align-items:center}.ck.ck-toolbar>.ck-toolbar__items{display:flex;flex-flow:row wrap;align-items:center;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;width:1px;min-width:1px;margin-top:0;margin-bottom:0;background:var(--ck-color-toolbar-border)}.ck.ck-toolbar>.ck-toolbar__items>*{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>*,.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{width:100%;margin:0;border-radius:0;border:0}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-right:var(--ck-spacing-small)}\"},function(e,t,n){var i=n(1);var o=n(41);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:5px solid #ccc}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}\"},function(e,t,n){var i=n(1);var o=n(43);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}\"},function(e,t,n){var i=n(1);var o=n(45);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button .ck-tooltip{display:none}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-right-radius:unset;border-bottom-right-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-left-radius:unset;border-bottom-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-radius:0}.ck-rounded-corners [dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow,[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:unset;border-bottom-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-top-right-radius:unset;border-bottom-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-left-color:var(--ck-color-split-button-hover-border)}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-right-color:var(--ck-color-split-button-hover-border)}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}\"},function(e,t,n){var i=n(1);var o=n(47);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck-content pre{padding:1em;color:#353535;background:hsla(0,0%,78%,.3);border:1px solid #c4c4c4;border-radius:2px;text-align:left;direction:ltr;tab-size:4;white-space:pre-wrap;font-style:normal;min-width:200px}.ck-content pre code{background:unset;padding:0;border-radius:0}.ck.ck-editor__editable pre{position:relative}.ck.ck-editor__editable pre[data-language]:after{content:attr(data-language);position:absolute}:root{--ck-color-code-block-label-background:#757575}.ck.ck-editor__editable pre[data-language]:after{top:-1px;right:10px;background:var(--ck-color-code-block-label-background);font-size:10px;font-family:var(--ck-font-face);line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);color:#fff;white-space:nowrap}.ck.ck-code-block-dropdown .ck-dropdown__panel{max-height:250px;overflow-y:auto;overflow-x:hidden}\"},function(e,t,n){var i=n(1);var o=n(49);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#000}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{width:var(--ck-color-grid-tile-size);height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;border:0}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-table__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{display:none;color:var(--ck-color-color-grid-check-icon)}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}\"},function(e,t,n){var i=n(1);var o=n(51);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}\"},function(e,t,n){var i=n(1);var o=n(53);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck .ck-button.ck-color-table__remove-color{display:flex;align-items:center;width:100%}label.ck.ck-color-grid__label{font-weight:unset}.ck .ck-button.ck-color-table__remove-color{padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck .ck-button.ck-color-table__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-base-border)}[dir=ltr] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard)}\"},function(e,t,n){var i=n(1);var o=n(55);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck-content .text-tiny{font-size:.7em}.ck-content .text-small{font-size:.85em}.ck-content .text-big{font-size:1.4em}.ck-content .text-huge{font-size:1.8em}\"},function(e,t){e.exports=\".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}\"},function(e,t,n){var i=n(1);var o=n(58);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\":root{--ck-highlight-marker-yellow:#fdfd77;--ck-highlight-marker-green:#62f962;--ck-highlight-marker-pink:#fc7899;--ck-highlight-marker-blue:#72ccfd;--ck-highlight-pen-red:#e71313;--ck-highlight-pen-green:#128a00}.ck-content .marker-yellow{background-color:var(--ck-highlight-marker-yellow)}.ck-content .marker-green{background-color:var(--ck-highlight-marker-green)}.ck-content .marker-pink{background-color:var(--ck-highlight-marker-pink)}.ck-content .marker-blue{background-color:var(--ck-highlight-marker-blue)}.ck-content .pen-red{color:var(--ck-highlight-pen-red);background-color:transparent}.ck-content .pen-green{color:var(--ck-highlight-pen-green);background-color:transparent}\"},function(e,t,n){var i=n(1);var o=n(60);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck-editor__editable .ck-horizontal-line{overflow:hidden}.ck-content hr{border:solid #5e5e5e;border-width:1px 0 0;margin:0}.ck-editor__editable .ck-horizontal-line{padding:5px 0}\"},function(e,t,n){var i=n(1);var o=n(62);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-resizer-size:10px;--ck-resizer-border-width:1px;--ck-resizer-border-radius:2px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-tooltip-offset:10px;--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2}.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);color:var(--ck-color-resizer-tooltip-text);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);font-size:var(--ck-font-size-tiny);display:block;padding:var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{top:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{top:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);outline-style:solid;outline-color:transparent;transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;background-color:var(--ck-color-widget-editable-focus-background)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{padding:4px;box-sizing:border-box;background-color:transparent;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;transform:translateY(-100%);left:calc(0px - var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}\"},function(e,t,n){var i=n(1);var o=n(64);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view>.ck.ck-label{width:100%;text-overflow:ellipsis;overflow:hidden}\"},function(e,t,n){var i=n(1);var o=n(66);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\":root{--ck-input-text-width:18em}.ck.ck-input-text{border-radius:0}.ck-rounded-corners .ck.ck-input-text,.ck.ck-input-text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-text{box-shadow:var(--ck-inner-shadow),0 0;background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-text-width);min-height:var(--ck-ui-component-min-height);transition:box-shadow .2s ease-in-out,border .2s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input-text[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-text-input-shake .3s ease both}.ck.ck-input-text.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),var(--ck-inner-shadow)}@keyframes ck-text-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}\"},function(e,t,n){var i=n(1);var o=n(68);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}.ck.ck-text-alternative-form{padding:var(--ck-spacing-standard)}.ck.ck-text-alternative-form:focus{outline:none}[dir=ltr] .ck.ck-text-alternative-form>:not(:first-child),[dir=rtl] .ck.ck-text-alternative-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-text-alternative-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-text-alternative-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-text-alternative-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-text-alternative-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-text-alternative-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-text-alternative-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}\"},function(e,t,n){var i=n(1);var o=n(70);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck .ck-balloon-rotator__navigation{display:flex;align-items:center;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}\"},function(e,t,n){var i=n(1);var o=n(72);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}\"},function(e,t,n){var i=n(1);var o=n(74);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck-content .image{display:table;clear:both;text-align:center;margin:1em auto}.ck-content .image>img{display:block;margin:0 auto;max-width:100%;min-width:50px}\"},function(e,t,n){var i=n(1);var o=n(76);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}\"},function(e,t,n){var i=n(1);var o=n(78);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\":root{--ck-image-style-spacing:1.5em}.ck-content .image-style-align-center,.ck-content .image-style-align-left,.ck-content .image-style-align-right,.ck-content .image-style-side{max-width:50%}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}\"},function(e,t,n){var i=n(1);var o=n(80);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck.ck-editor__editable .image{position:relative}.ck.ck-editor__editable .image .ck-progress-bar{position:absolute;top:0;left:0}.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}\"},function(e,t,n){var i=n(1);var o=n(82);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports='.ck-image-upload-complete-icon{display:block;position:absolute;top:10px;right:10px;border-radius:50%}.ck-image-upload-complete-icon:after{content:\"\";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20px;--ck-image-upload-icon-width:2px}.ck-image-upload-complete-icon{width:var(--ck-image-upload-icon-size);height:var(--ck-image-upload-icon-size);opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;font-size:var(--ck-image-upload-icon-size);animation-delay:0ms,3s}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;box-sizing:border-box}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}'},function(e,t,n){var i=n(1);var o=n(84);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports='.ck .ck-upload-placeholder-loader{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0}.ck .ck-upload-placeholder-loader:before{content:\"\";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-upload-placeholder-loader{width:100%;height:100%}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-radius:50%;border-top:3px solid var(--ck-color-upload-placeholder-loader);border-right:2px solid transparent;animation:ck-upload-placeholder-loader 1s linear infinite}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}'},function(e,t,n){var i=n(1);var o=n(86);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form{padding:var(--ck-spacing-standard)}.ck.ck-link-form:focus{outline:none}[dir=ltr] .ck.ck-link-form>:not(:first-child),[dir=rtl] .ck.ck-link-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}.ck.ck-link-form_layout-vertical{padding:0;min-width:var(--ck-input-text-width)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{padding:var(--ck-spacing-standard);margin:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border);width:50%}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin-left:0}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}\"},function(e,t,n){var i=n(1);var o=n(88);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions{padding:var(--ck-spacing-standard)}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);text-overflow:ellipsis;cursor:pointer;max-width:var(--ck-input-text-width);min-width:3em;text-align:center}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}.ck.ck-link-actions:focus{outline:none}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{min-width:0;max-width:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):last-of-type{border-right:1px solid var(--ck-color-base-border)}}\"},function(module,__webpack_exports__,__webpack_require__){\"use strict\";var md5;var _unused_webpack_default_export=md5;(function(){var HxOverrides=function(){};HxOverrides.__name__=true;HxOverrides.dateStr=function(e){var t=e.getMonth()+1;var n=e.getDate();var i=e.getHours();var o=e.getMinutes();var s=e.getSeconds();return e.getFullYear()+\"-\"+(t<10?\"0\"+t:\"\"+t)+\"-\"+(n<10?\"0\"+n:\"\"+n)+\" \"+(i<10?\"0\"+i:\"\"+i)+\":\"+(o<10?\"0\"+o:\"\"+o)+\":\"+(s<10?\"0\"+s:\"\"+s)};HxOverrides.strDate=function(e){switch(e.length){case 8:var t=e.split(\":\");var n=new Date;n.setTime(0);n.setUTCHours(t[0]);n.setUTCMinutes(t[1]);n.setUTCSeconds(t[2]);return n;case 10:var t=e.split(\"-\");return new Date(t[0],t[1]-1,t[2],0,0,0);case 19:var t=e.split(\" \");var i=t[0].split(\"-\");var o=t[1].split(\":\");return new Date(i[0],i[1]-1,i[2],o[0],o[1],o[2]);default:throw\"Invalid date format : \"+e}};HxOverrides.cca=function(e,t){var n=e.charCodeAt(t);if(n!=n)return undefined;return n};HxOverrides.substr=function(e,t,n){if(t!=null&&t!=0&&n!=null&&n<0)return\"\";if(n==null)n=e.length;if(t<0){t=e.length+t;if(t<0)t=0}else if(n<0)n=e.length+n-t;return e.substr(t,n)};HxOverrides.remove=function(e,t){var n=0;var i=e.length;while(n>>32-t},str2blks:function(e){var t=(e.length+8>>6)+1;var n=new Array;var i=0,o=t*16;while(i>2]|=HxOverrides.cca(e,s)<<(e.length*8+s)%4*8;s++}n[s>>2]|=128<<(e.length*8+s)%4*8;var r=e.length*8;var a=t*16-2;n[a]=r&255;n[a]|=(r>>>8&255)<<8;n[a]|=(r>>>16&255)<<16;n[a]|=(r>>>24&255)<<24;return n},rhex:function(e){var t=\"\";var n=\"0123456789abcdef\";var i=0;while(i<4){var o=i++;t+=n.charAt(e>>o*8+4&15)+n.charAt(e>>o*8&15)}return t},addme:function(e,t){var n=(e&65535)+(t&65535);var i=(e>>16)+(t>>16)+(n>>16);return i<<16|n&65535},bitAND:function(e,t){var n=e&1&(t&1);var i=e>>>1&t>>>1;return i<<1|n},bitXOR:function(e,t){var n=e&1^t&1;var i=e>>>1^t>>>1;return i<<1|n},bitOR:function(e,t){var n=e&1|t&1;var i=e>>>1|t>>>1;return i<<1|n},__class__:haxe.Md5};haxe.Timer=function(e){var t=this;this.id=window.setInterval((function(){t.run()}),e)};haxe.Timer.__name__=true;haxe.Timer.delay=function(e,t){var n=new haxe.Timer(t);n.run=function(){n.stop();e()};return n};haxe.Timer.measure=function(e,t){var n=haxe.Timer.stamp();var i=e();haxe.Log.trace(haxe.Timer.stamp()-n+\"s\",t);return i};haxe.Timer.stamp=function(){return(new Date).getTime()/1e3};haxe.Timer.prototype={run:function(){},stop:function(){if(this.id==null)return;window.clearInterval(this.id);this.id=null},__class__:haxe.Timer};var js=js||{};js.Boot=function(){};js.Boot.__name__=true;js.Boot.__unhtml=function(e){return e.split(\"&\").join(\"&\").split(\"<\").join(\"<\").split(\">\").join(\">\")};js.Boot.__trace=function(e,t){var n=t!=null?t.fileName+\":\"+t.lineNumber+\": \":\"\";n+=js.Boot.__string_rec(e,\"\");var i;if(typeof document!=\"undefined\"&&(i=document.getElementById(\"haxe:trace\"))!=null)i.innerHTML+=js.Boot.__unhtml(n)+\"
\";else if(typeof console!=\"undefined\"&&console.log!=null)console.log(n)};js.Boot.__clear_trace=function(){var e=document.getElementById(\"haxe:trace\");if(e!=null)e.innerHTML=\"\"};js.Boot.isClass=function(e){return e.__name__};js.Boot.isEnum=function(e){return e.__ename__};js.Boot.getClass=function(e){return e.__class__};js.Boot.__string_rec=function(e,t){if(e==null)return\"null\";if(t.length>=5)return\"<...>\";var n=typeof e;if(n==\"function\"&&(e.__name__||e.__ename__))n=\"object\";switch(n){case\"object\":if(e instanceof Array){if(e.__enum__){if(e.length==2)return e[0];var i=e[0]+\"(\";t+=\"\\t\";var o=2,s=e.length;while(o0?\",\":\"\")+js.Boot.__string_rec(e[c],t)}i+=\"]\";return i}var l;try{l=e.toString}catch(e){return\"???\"}if(l!=null&&l!=Object.toString){var d=e.toString();if(d!=\"[object Object]\")return d}var u=null;var i=\"{\\n\";t+=\"\\t\";var h=e.hasOwnProperty!=null;for(var u in e){if(h&&!e.hasOwnProperty(u)){continue}if(u==\"prototype\"||u==\"__class__\"||u==\"__super__\"||u==\"__interfaces__\"||u==\"__properties__\"){continue}if(i.length!=2)i+=\", \\n\";i+=t+u+\" : \"+js.Boot.__string_rec(e[u],t)}t=t.substring(1);i+=\"\\n\"+t+\"}\";return i;case\"function\":return\"\";case\"string\":return e;default:return String(e)}};js.Boot.__interfLoop=function(e,t){if(e==null)return false;if(e==t)return true;var n=e.__interfaces__;if(n!=null){var i=0,o=n.length;while(i>>32-t},str2blks:function(e){var t=(e.length+8>>6)+1;var n=new Array;var i=0,o=t*16;while(i>2]|=HxOverrides.cca(e,s)<<(e.length*8+s)%4*8;s++}n[s>>2]|=128<<(e.length*8+s)%4*8;var r=e.length*8;var a=t*16-2;n[a]=r&255;n[a]|=(r>>>8&255)<<8;n[a]|=(r>>>16&255)<<16;n[a]|=(r>>>24&255)<<24;return n},rhex:function(e){var t=\"\";var n=\"0123456789abcdef\";var i=0;while(i<4){var o=i++;t+=n.charAt(e>>o*8+4&15)+n.charAt(e>>o*8&15)}return t},addme:function(e,t){var n=(e&65535)+(t&65535);var i=(e>>16)+(t>>16)+(n>>16);return i<<16|n&65535},bitAND:function(e,t){var n=e&1&(t&1);var i=e>>>1&t>>>1;return i<<1|n},bitXOR:function(e,t){var n=e&1^t&1;var i=e>>>1^t>>>1;return i<<1|n},bitOR:function(e,t){var n=e&1|t&1;var i=e>>>1|t>>>1;return i<<1|n},__class__:haxe.Md5};haxe.Timer=function(e){var t=this;this.id=window.setInterval((function(){t.run()}),e)};haxe.Timer.__name__=true;haxe.Timer.delay=function(e,t){var n=new haxe.Timer(t);n.run=function(){n.stop();e()};return n};haxe.Timer.measure=function(e,t){var n=haxe.Timer.stamp();var i=e();haxe.Log.trace(haxe.Timer.stamp()-n+\"s\",t);return i};haxe.Timer.stamp=function(){return(new Date).getTime()/1e3};haxe.Timer.prototype={run:function(){},stop:function(){if(this.id==null)return;window.clearInterval(this.id);this.id=null},__class__:haxe.Timer};var js=js||{};js.Boot=function(){};js.Boot.__name__=true;js.Boot.__unhtml=function(e){return e.split(\"&\").join(\"&\").split(\"<\").join(\"<\").split(\">\").join(\">\")};js.Boot.__trace=function(e,t){var n=t!=null?t.fileName+\":\"+t.lineNumber+\": \":\"\";n+=js.Boot.__string_rec(e,\"\");var i;if(typeof document!=\"undefined\"&&(i=document.getElementById(\"haxe:trace\"))!=null)i.innerHTML+=js.Boot.__unhtml(n)+\"
\";else if(typeof console!=\"undefined\"&&console.log!=null)console.log(n)};js.Boot.__clear_trace=function(){var e=document.getElementById(\"haxe:trace\");if(e!=null)e.innerHTML=\"\"};js.Boot.isClass=function(e){return e.__name__};js.Boot.isEnum=function(e){return e.__ename__};js.Boot.getClass=function(e){return e.__class__};js.Boot.__string_rec=function(e,t){if(e==null)return\"null\";if(t.length>=5)return\"<...>\";var n=typeof e;if(n==\"function\"&&(e.__name__||e.__ename__))n=\"object\";switch(n){case\"object\":if(e instanceof Array){if(e.__enum__){if(e.length==2)return e[0];var i=e[0]+\"(\";t+=\"\\t\";var o=2,s=e.length;while(o0?\",\":\"\")+js.Boot.__string_rec(e[c],t)}i+=\"]\";return i}var l;try{l=e.toString}catch(e){return\"???\"}if(l!=null&&l!=Object.toString){var d=e.toString();if(d!=\"[object Object]\")return d}var u=null;var i=\"{\\n\";t+=\"\\t\";var h=e.hasOwnProperty!=null;for(var u in e){if(h&&!e.hasOwnProperty(u)){continue}if(u==\"prototype\"||u==\"__class__\"||u==\"__super__\"||u==\"__interfaces__\"||u==\"__properties__\"){continue}if(i.length!=2)i+=\", \\n\";i+=t+u+\" : \"+js.Boot.__string_rec(e[u],t)}t=t.substring(1);i+=\"\\n\"+t+\"}\";return i;case\"function\":return\"\";case\"string\":return e;default:return String(e)}};js.Boot.__interfLoop=function(e,t){if(e==null)return false;if(e==t)return true;var n=e.__interfaces__;if(n!=null){var i=0,o=n.length;while(idiv:first-child,.wrs_content_container.wrs_modal_desktop>div:first-child,.wrs_content_container.wrs_modal_ios>div:first-child{flex-grow:1}.wrs_modal_wrapper.wrs_modal_android{margin:auto;display:flex;flex-direction:column;height:100%;width:100%}.wrs_content_container.wrs_modal_desktop,.wrs_content_container.wrs_modal_ios{width:100%;flex-grow:1;display:flex;flex-direction:column}.wrs_modal_wrapper.wrs_modal_ios{margin:auto;display:flex;flex-direction:column;height:100%;width:100%}.wrs_virtual_keyboard{height:100%;width:100%;top:0;left:50%;transform:translate(-50%)}@media (orientation:portrait){.wrs_modal_dialogContainer.wrs_modal_mobile{width:100vmin;height:100vmin;margin:auto;border-width:0}.wrs_modal_wrapper.wrs_modal_mobile{width:100vmin;height:100vmin;margin:auto}}@media (orientation:landscape){.wrs_modal_dialogContainer.wrs_modal_mobile{width:100vmin;height:100vmin;margin:auto;border-width:0}.wrs_modal_wrapper.wrs_modal_mobile{width:100vmin;height:100vmin;margin:auto}}.wrs_modal_dialogContainer.wrs_modal_badStock,.wrs_modal_wrapper.wrs_modal_badStock{width:100%;height:280px;margin:0 auto;border-width:0}.wrs_noselect{-khtml-user-select:none}.wrs_bottom_right_resizer,.wrs_noselect{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.wrs_bottom_right_resizer{width:10px;height:10px;color:#778e9a;position:absolute;right:4px;bottom:8px;cursor:se-resize}.wrs_bottom_left_resizer{width:15px;height:15px;color:#778e9a;position:absolute;left:0;top:0;cursor:se-resize}.wrs_modal_controls{height:42px;margin:3px 0;overflow:hidden;line-height:normal}.wrs_modal_links{margin:10px auto 0;font-family:arial,sans-serif;padding:6px;display:inline;float:right;text-align:right}.wrs_modal_links>a{text-decoration:none;color:#778e9a;font-size:16px}.wrs_modal_button_cancel,.wrs_modal_button_cancel:active,.wrs_modal_button_cancel:focus,.wrs_modal_button_cancel:hover,.wrs_modal_button_cancel:visited{min-width:80px;font-size:14px;border-radius:3px;border:1px solid #778e9a;padding:6px 8px;margin:10px auto 0 5px;cursor:pointer;font-family:arial,sans-serif;background-color:#ddd;height:32px}.wrs_modal_button_accept,.wrs_modal_button_accept:active,.wrs_modal_button_accept:focus,.wrs_modal_button_accept:hover,.wrs_modal_button_accept:visited{min-width:80px;font-size:14px;border-radius:3px;border:1px solid #778e9a;padding:6px 8px;margin:10px 5px 0 auto;color:#fff;background:#778e9a;cursor:pointer;font-family:arial,sans-serif;height:32px}.wrs_editor_vertical_bar{height:20px;float:right;background:none;width:20px;cursor:pointer}.wrs_modal_buttons_container{display:inline;float:left}.wrs_modal_buttons_container.wrs_modalAndroid{padding-left:6px}.wrs_modal_buttons_container.wrs_modalDesktop{padding-left:0}.wrs_modal_buttons_container>button{line-height:normal;background-image:none}.wrs_modal_wrapper{margin:6px;display:flex;flex-direction:column}.wrs_modal_wrapper.wrs_modal_desktop.wrs_minimized{display:none}@media only screen and (max-device-width:480px) and (orientation:portrait){#wrs_modal_wrapper{width:140%}}.wrs_popupmessage_overlay_envolture{display:none;width:100%}.wrs_popupmessage_overlay{position:absolute;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.5);z-index:4;cursor:pointer}.wrs_popupmessage_panel{top:50%;left:50%;transform:translate(-50%,-50%);position:absolute;background:#fff;max-width:500px;width:75%;border-radius:2px;padding:20px;font-family:sans-serif;font-size:15px;text-align:left;color:#2e2e2e;z-index:5;max-height:75%;overflow:auto}.wrs_popupmessage_button_area{margin:10px 0 0}.wrs_panelContainer *{border:0}.wrs_button_cancel,.wrs_button_cancel:active,.wrs_button_cancel:focus,.wrs_button_cancel:hover,.wrs_button_cancel:visited{min-width:80px;font-size:14px;border-radius:3px;border:1px solid #778e9a;padding:6px 8px;margin:10px auto 0 5px;cursor:pointer;font-family:arial,sans-serif;background-color:#ddd;background-image:none;height:32px}.wrs_button_accept,.wrs_button_accept:active,.wrs_button_accept:focus,.wrs_button_accept:hover,.wrs_button_accept:visited{min-width:80px;font-size:14px;border-radius:3px;border:1px solid #778e9a;padding:6px 8px;margin:10px 5px 0 auto;color:#fff;background:#778e9a;cursor:pointer;font-family:arial,sans-serif;height:32px}.wrs_editor button{box-shadow:none}.wrs_editor .wrs_header button{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.wrs_modal_overlay.wrs_modal_desktop.wrs_stack.wrs_overlay_active{display:block}.wrs_toolbar tr:focus,.wrs_toolbar tr:hover{background:none}.wrs_modal_rtl .wrs_modal_button_cancel{margin-right:5px;margin-left:0}.wrs_modal_rtl .wrs_modal_button_accept{margin-right:0;margin-left:5px}.wrs_modal_rtl .wrs_button_cancel{margin-right:5px;margin-left:0}.wrs_modal_rtl .wrs_button_accept{margin-right:0;margin-left:5px}\"},function(e,t,n){var i=n(1);var o=n(93);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports='.ck-media__wrapper .ck-media__placeholder{display:flex;flex-direction:column;align-items:center}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url:hover .ck-tooltip{visibility:visible;opacity:1}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{overflow:hidden;display:block}.ck-media__wrapper[data-oembed-url*=\"facebook.com\"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*=\"google.com/maps\"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*=\"instagram.com\"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*=\"twitter.com\"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{padding:calc(3*var(--ck-spacing-standard));background:var(--ck-color-base-foreground)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{min-width:var(--ck-media-embed-placeholder-icon-size);height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);background-position:50%;background-size:cover}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{width:100%;height:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);white-space:nowrap;text-align:center;font-style:italic;text-overflow:ellipsis}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*=\"open.spotify.com\"]{max-width:300px;max-height:380px}.ck-media__wrapper[data-oembed-url*=\"google.com/maps\"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMDAzLjc4IDEuNjFoNDkuNjIxYzEuNjk0IDAgMy4xOS0uNzk4IDQuMTQ2LTIuMDM3eiIgZmlsbD0iIzVjODhjNSIvPjxwYXRoIGQ9Ik0yMjYuNzQyIDIyMi45ODhjLTkuMjY2IDAtMTYuNzc3IDcuMTctMTYuNzc3IDE2LjAxNC4wMDcgMi43NjIuNjYzIDUuNDc0IDIuMDkzIDcuODc1LjQzLjcwMy44MyAxLjQwOCAxLjE5IDIuMTA3LjMzMy41MDIuNjUgMS4wMDUuOTUgMS41MDguMzQzLjQ3Ny42NzMuOTU3Ljk4OCAxLjQ0IDEuMzEgMS43NjkgMi41IDMuNTAyIDMuNjM3IDUuMTY4Ljc5MyAxLjI3NSAxLjY4MyAyLjY0IDIuNDY2IDMuOTkgMi4zNjMgNC4wOTQgNC4wMDcgOC4wOTIgNC42IDEzLjkxNHYuMDEyYy4xODIuNDEyLjUxNi42NjYuODc5LjY2Ny40MDMtLjAwMS43NjgtLjMxNC45My0uNzk5LjYwMy01Ljc1NiAyLjIzOC05LjcyOSA0LjU4NS0xMy43OTQuNzgyLTEuMzUgMS42NzMtMi43MTUgMi40NjUtMy45OSAxLjEzNy0xLjY2NiAyLjMyOC0zLjQgMy42MzgtNS4xNjkuMzE1LS40ODIuNjQ1LS45NjIuOTg4LTEuNDM5LjMtLjUwMy42MTctMS4wMDYuOTUtMS41MDguMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0eiIgZmlsbD0iI2RkNGIzZSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48ZWxsaXBzZSByeT0iNS41NjQiIHJ4PSI1LjgyOCIgY3k9IjIzOS4wMDIiIGN4PSIyMjYuNzQyIiBmaWxsPSIjODAyZDI3IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0xOTAuMzAxIDIzNy4yODNjLTQuNjcgMC04LjQ1NyAzLjg1My04LjQ1NyA4LjYwNnMzLjc4NiA4LjYwNyA4LjQ1NyA4LjYwN2MzLjA0MyAwIDQuODA2LS45NTggNi4zMzctMi41MTYgMS41My0xLjU1NyAyLjA4Ny0zLjkxMyAyLjA4Ny02LjI5IDAtLjM2Mi0uMDIzLS43MjItLjA2NC0xLjA3OWgtOC4yNTd2My4wNDNoNC44NWMtLjE5Ny43NTktLjUzMSAxLjQ1LTEuMDU4IDEuOTg2LS45NDIuOTU4LTIuMDI4IDEuNTQ4LTMuOTAxIDEuNTQ4LTIuODc2IDAtNS4yMDgtMi4zNzItNS4yMDgtNS4yOTkgMC0yLjkyNiAyLjMzMi01LjI5OSA1LjIwOC01LjI5OSAxLjM5OSAwIDIuNjE4LjQwNyAzLjU4NCAxLjI5M2wyLjM4MS0yLjM4YzAtLjAwMi0uMDAzLS4wMDQtLjAwNC0uMDA1LTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTV6bTQuNDMgNS42NmwuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxNS4xODQgMjUxLjkyOWwtNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMjMzIDUuMjMzIDAgMDAuNDQ5LTIuMTIzdi0zMS4xNjVjLS40NjkuNjc1LS45MzQgMS4zNDktMS4zODIgMi4wMDUtLjc5MiAxLjI3NS0xLjY4MiAyLjY0LTIuNDY1IDMuOTktMi4zNDcgNC4wNjUtMy45ODIgOC4wMzgtNC41ODUgMTMuNzk0LS4xNjIuNDg1LS41MjcuNzk4LS45My43OTktLjM2My0uMDAxLS42OTctLjI1NS0uODc5LS42Njd2LS4wMTJjLS41OTMtNS44MjItMi4yMzctOS44Mi00LjYtMTMuOTE0LS43ODMtMS4zNS0xLjY3My0yLjcxNS0yLjQ2Ni0zLjk5LTEuMTM3LTEuNjY2LTIuMzI3LTMuNC0zLjYzNy01LjE2OWwtLjAwMi0uMDAzeiIgZmlsbD0iI2MzYzNjMyIvPjxwYXRoIGQ9Ik0yMTIuOTgzIDI0OC40OTVsLTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAwNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYuMjc1IDEzNi4yNzUgMCAwMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAwLS45ODktMS40NCAzNS4xMjcgMzUuMTI3IDAgMDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OXoiIGZpbGw9IiNmZGRjNGYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxMS45OTggMjYxLjA4M2wtNi4xNTIgNi4xNTEgMjQuMjY0IDI0LjI2NGguNzgxYTUuMjI3IDUuMjI3IDAgMDA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*=\"facebook.com\"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*=\"facebook.com\"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*=\"facebook.com\"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*=\"facebook.com\"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*=\"instagram.com\"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*=\"instagram.com\"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1ek00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*=\"instagram.com\"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*=\"instagram.com\"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*=\"twitter.com\"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*=\"twitter.com\"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*=\"twitter.com\"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*=\"twitter.com\"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}'},function(e,t,n){var i=n(1);var o=n(95);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck.ck-media-form{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}.ck.ck-media-form{padding:var(--ck-spacing-standard)}.ck.ck-media-form:focus{outline:none}[dir=ltr] .ck.ck-media-form>:not(:first-child),[dir=rtl] .ck.ck-media-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-media-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-media-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-media-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-media-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-media-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-media-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-media-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-media-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-media-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}\"},function(e,t,n){var i=n(1);var o=n(97);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck-content .media{clear:both;margin:1em 0;display:block;min-width:15em}\"},function(e,t,n){var i=n(1);var o=n(99);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\":root{--ck-color-table-focused-cell-background:rgba(158,207,250,0.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}\"},function(e,t,n){var i=n(1);var o=n(101);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{width:var(--ck-insert-table-dropdown-box-width);height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-color-base-border);border-radius:1px}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-color-focus-border);background:var(--ck-color-focus-outer-shadow)}\"},function(e,t,n){var i=n(1);var o=n(103);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=':root{--ck-table-selected-cell-background:rgba(158,207,250,0.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{position:relative;caret-color:transparent;outline:unset;box-shadow:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{content:\"\";pointer-events:none;background-color:var(--ck-table-selected-cell-background);position:absolute;top:0;left:0;right:0;bottom:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget_selected{outline:unset}'},function(e,t,n){var i=n(1);var o=n(105);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=\".ck-content .table{margin:1em auto;display:table}.ck-content .table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.ck-content .table table td,.ck-content .table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.ck-content .table table th{font-weight:700;background:hsla(0,0%,0%,5%)}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}\"},function(e,t,n){var i=n(1);var o=n(107);o=o.__esModule?o.default:o;if(typeof o===\"string\"){o=[[e.i,o,\"\"]]}var s={injectType:\"singletonStyleTag\"};s.insert=\"head\";s.singleton=true;var r=i(o,s);e.exports=o.locals||{}},function(e,t){e.exports=':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;display:inline-block;position:relative;width:var(--ck-todo-list-checkmark-size);height:var(--ck-todo-list-checkmark-size);vertical-align:middle;border:0;left:-25px;margin-right:-15px;right:0;margin-left:0}.ck-content .todo-list .todo-list__label>input:before{display:block;position:absolute;box-sizing:border-box;content:\"\";width:100%;height:100%;border:1px solid #333;border-radius:2px;transition:box-shadow .25s ease-in-out,background .25s ease-in-out,border .25s ease-in-out}.ck-content .todo-list .todo-list__label>input:after{display:block;position:absolute;box-sizing:content-box;pointer-events:none;content:\"\";left:calc(var(--ck-todo-list-checkmark-size)/3);top:calc(var(--ck-todo-list-checkmark-size)/5.3);width:calc(var(--ck-todo-list-checkmark-size)/5.3);height:calc(var(--ck-todo-list-checkmark-size)/2.6);border-left:0 solid transparent;border-bottom:calc(var(--ck-todo-list-checkmark-size)/8) solid transparent;border-right:calc(var(--ck-todo-list-checkmark-size)/8) solid transparent;border-top:0 solid transparent;transform:rotate(45deg)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-right:0;right:-25px;margin-left:-15px}.ck-editor__editable .todo-list .todo-list__label>input{cursor:pointer}.ck-editor__editable .todo-list .todo-list__label>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}'},function(e,t,n){\"use strict\";n.r(t);var i=n(3);var o=i[\"a\"].Symbol;var s=o;var r=Object.prototype;var a=r.hasOwnProperty;var c=r.toString;var l=s?s.toStringTag:undefined;function d(e){var t=a.call(e,l),n=e[l];try{e[l]=undefined;var i=true}catch(e){}var o=c.call(e);if(i){if(t){e[l]=n}else{delete e[l]}}return o}var u=d;var h=Object.prototype;var f=h.toString;function m(e){return f.call(e)}var g=m;var p=\"[object Null]\",b=\"[object Undefined]\";var w=s?s.toStringTag:undefined;function _(e){if(e==null){return e===undefined?b:p}return w&&w in Object(e)?u(e):g(e)}var v=_;function k(e,t){return function(n){return e(t(n))}}var y=k;var x=y(Object.getPrototypeOf,Object);var A=x;function C(e){return e!=null&&typeof e==\"object\"}var T=C;var M=\"[object Object]\";var E=Function.prototype,P=Object.prototype;var S=E.toString;var I=P.hasOwnProperty;var O=S.call(Object);function N(e){if(!T(e)||v(e)!=M){return false}var t=A(e);if(t===null){return true}var n=I.call(t,\"constructor\")&&t.constructor;return typeof n==\"function\"&&n instanceof n&&S.call(n)==O}var L=N;function R(){this.__data__=[];this.size=0}var D=R;function j(e,t){return e===t||e!==e&&t!==t}var z=j;function B(e,t){var n=e.length;while(n--){if(z(e[n][0],t)){return n}}return-1}var V=B;var F=Array.prototype;var H=F.splice;function U(e){var t=this.__data__,n=V(t,e);if(n<0){return false}var i=t.length-1;if(n==i){t.pop()}else{H.call(t,n,1)}--this.size;return true}var W=U;function $(e){var t=this.__data__,n=V(t,e);return n<0?undefined:t[n][1]}var q=$;function Y(e){return V(this.__data__,e)>-1}var G=Y;function J(e,t){var n=this.__data__,i=V(n,e);if(i<0){++this.size;n.push([e,t])}else{n[i][1]=t}return this}var K=J;function Q(e){var t=-1,n=e==null?0:e.length;this.clear();while(++t-1&&e%1==0&&e-1&&e%1==0&&e<=tn}var on=nn;var sn=\"[object Arguments]\",rn=\"[object Array]\",an=\"[object Boolean]\",cn=\"[object Date]\",ln=\"[object Error]\",dn=\"[object Function]\",un=\"[object Map]\",hn=\"[object Number]\",fn=\"[object Object]\",mn=\"[object RegExp]\",gn=\"[object Set]\",pn=\"[object String]\",bn=\"[object WeakMap]\";var wn=\"[object ArrayBuffer]\",_n=\"[object DataView]\",vn=\"[object Float32Array]\",kn=\"[object Float64Array]\",yn=\"[object Int8Array]\",xn=\"[object Int16Array]\",An=\"[object Int32Array]\",Cn=\"[object Uint8Array]\",Tn=\"[object Uint8ClampedArray]\",Mn=\"[object Uint16Array]\",En=\"[object Uint32Array]\";var Pn={};Pn[vn]=Pn[kn]=Pn[yn]=Pn[xn]=Pn[An]=Pn[Cn]=Pn[Tn]=Pn[Mn]=Pn[En]=true;Pn[sn]=Pn[rn]=Pn[wn]=Pn[an]=Pn[_n]=Pn[cn]=Pn[ln]=Pn[dn]=Pn[un]=Pn[hn]=Pn[fn]=Pn[mn]=Pn[gn]=Pn[pn]=Pn[bn]=false;function Sn(e){return T(e)&&on(e.length)&&!!Pn[v(e)]}var In=Sn;function On(e){return function(t){return e(t)}}var Nn=On;var Ln=n(5);var Rn=Ln[\"a\"]&&Ln[\"a\"].isTypedArray;var Dn=Rn?Nn(Rn):In;var jn=Dn;var zn=Object.prototype;var Bn=zn.hasOwnProperty;function Vn(e,t){var n=Jt(e),i=!n&&Yt(e),o=!n&&!i&&Object(Kt[\"a\"])(e),s=!n&&!i&&!o&&jn(e),r=n||i||o||s,a=r?Bt(e.length,String):[],c=a.length;for(var l in e){if((t||Bn.call(e,l))&&!(r&&(l==\"length\"||o&&(l==\"offset\"||l==\"parent\")||s&&(l==\"buffer\"||l==\"byteLength\"||l==\"byteOffset\")||en(l,c)))){a.push(l)}}return a}var Fn=Vn;var Hn=Object.prototype;function Un(e){var t=e&&e.constructor,n=typeof t==\"function\"&&t.prototype||Hn;return e===n}var Wn=Un;var $n=y(Object.keys,Object);var qn=$n;var Yn=Object.prototype;var Gn=Yn.hasOwnProperty;function Jn(e){if(!Wn(e)){return qn(e)}var t=[];for(var n in Object(e)){if(Gn.call(e,n)&&n!=\"constructor\"){t.push(n)}}return t}var Kn=Jn;function Qn(e){return e!=null&&on(e.length)&&!me(e)}var Xn=Qn;function Zn(e){return Xn(e)?Fn(e):Kn(e)}var ei=Zn;function ti(e,t){return e&&jt(t,ei(t),e)}var ni=ti;function ii(e){var t=[];if(e!=null){for(var n in Object(e)){t.push(n)}}return t}var oi=ii;var si=Object.prototype;var ri=si.hasOwnProperty;function ai(e){if(!ce(e)){return oi(e)}var t=Wn(e),n=[];for(var i in e){if(!(i==\"constructor\"&&(t||!ri.call(e,i)))){n.push(i)}}return n}var ci=ai;function li(e){return Xn(e)?Fn(e,true):ci(e)}var di=li;function ui(e,t){return e&&jt(t,di(t),e)}var hi=ui;var fi=n(8);function mi(e,t){var n=-1,i=e.length;t||(t=Array(i));while(++n{this._setToTarget(e,i,t[i],n)})}}function Ks(e){return qs(e,Qs)}function Qs(e){return Gs(e)?e:undefined}function Xs(){return function e(){e.called=true}}var Zs=Xs;class er{constructor(e,t){this.source=e;this.name=t;this.path=[];this.stop=Zs();this.off=Zs()}}const tr=new Array(256).fill().map((e,t)=>(\"0\"+t.toString(16)).slice(-2));function nr(){const e=Math.random()*4294967296>>>0;const t=Math.random()*4294967296>>>0;const n=Math.random()*4294967296>>>0;const i=Math.random()*4294967296>>>0;return\"e\"+tr[e>>0&255]+tr[e>>8&255]+tr[e>>16&255]+tr[e>>24&255]+tr[t>>0&255]+tr[t>>8&255]+tr[t>>16&255]+tr[t>>24&255]+tr[n>>0&255]+tr[n>>8&255]+tr[n>>16&255]+tr[n>>24&255]+tr[i>>0&255]+tr[i>>8&255]+tr[i>>16&255]+tr[i>>24&255]}const ir={get(e){if(typeof e!=\"number\"){return this[e]||this.normal}else{return e}},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};var or=ir;var sr=n(6);var rr=n(0);const ar=Symbol(\"listeningTo\");const cr=Symbol(\"emitterId\");const lr={on(e,t,n={}){this.listenTo(this,e,t,n)},once(e,t,n){let i=false;const o=function(e,...n){if(!i){i=true;e.off();t.call(this,e,...n)}};this.listenTo(this,e,o,n)},off(e,t){this.stopListening(this,e,t)},listenTo(e,t,n,i={}){let o,s;if(!this[ar]){this[ar]={}}const r=this[ar];if(!fr(e)){hr(e)}const a=fr(e);if(!(o=r[a])){o=r[a]={emitter:e,callbacks:{}}}if(!(s=o.callbacks[t])){s=o.callbacks[t]=[]}s.push(n);pr(e,t);const c=br(e,t);const l=or.get(i.priority);const d={callback:n,priority:l};for(const e of c){let t=false;for(let n=0;n{if(!this._delegations){this._delegations=new Map}e.forEach(e=>{const i=this._delegations.get(e);if(!i){this._delegations.set(e,new Map([[t,n]]))}else{i.set(t,n)}})}}},stopDelegating(e,t){if(!this._delegations){return}if(!e){this._delegations.clear()}else if(!t){this._delegations.delete(e)}else{const n=this._delegations.get(e);if(n){n.delete(t)}}}};var dr=lr;function ur(e,t){if(e[ar]&&e[ar][t]){return e[ar][t].emitter}return null}function hr(e,t){if(!e[cr]){e[cr]=t||nr()}}function fr(e){return e[cr]}function mr(e){if(!e._events){Object.defineProperty(e,\"_events\",{value:{}})}return e._events}function gr(){return{callbacks:[],childEvents:[]}}function pr(e,t){const n=mr(e);if(n[t]){return}let i=t;let o=null;const s=[];while(i!==\"\"){if(n[i]){break}n[i]=gr();s.push(n[i]);if(o){n[i].childEvents.push(o)}o=i;i=i.substr(0,i.lastIndexOf(\":\"))}if(i!==\"\"){for(const e of s){e.callbacks=n[i].callbacks.slice()}n[i].childEvents.push(o)}}function br(e,t){const n=mr(e)[t];if(!n){return[]}let i=[n.callbacks];for(let t=0;t-1){return wr(e,t.substr(0,t.lastIndexOf(\":\")))}else{return null}}return n.callbacks}function _r(e,t,n){for(let[i,o]of e){if(!o){o=t.name}else if(typeof o==\"function\"){o=o(t.name)}const e=new er(t.source,o);e.path=[...t.path];i.fire(e,...n)}}function vr(e,t,n){const i=br(e,t);for(const e of i){for(let t=0;t{Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)).forEach(n=>{if(n in e.prototype){return}const i=Object.getOwnPropertyDescriptor(t,n);i.enumerable=false;Object.defineProperty(e.prototype,n,i)})})}class xr{constructor(e={},t={}){const n=kr(e);if(!n){t=e}this._items=[];this._itemMap=new Map;this._idProperty=t.idProperty||\"id\";this._bindToExternalToInternalMap=new WeakMap;this._bindToInternalToExternalMap=new WeakMap;this._skippedIndexesFromExternal=[];if(n){for(const t of e){this._items.push(t);this._itemMap.set(this._getItemIdBeforeAdding(t),t)}}}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(e,t){const n=this._getItemIdBeforeAdding(e);if(t===undefined){t=this._items.length}else if(t>this._items.length||t<0){throw new rr[\"b\"](\"collection-add-item-invalid-index\",this)}this._items.splice(t,0,e);this._itemMap.set(n,e);this.fire(\"add\",e,t);return this}get(e){let t;if(typeof e==\"string\"){t=this._itemMap.get(e)}else if(typeof e==\"number\"){t=this._items[e]}else{throw new rr[\"b\"](\"collection-get-invalid-arg: Index or id must be given.\",this)}return t||null}has(e){if(typeof e==\"string\"){return this._itemMap.has(e)}else{const t=this._idProperty;const n=e[t];return this._itemMap.has(n)}}getIndex(e){let t;if(typeof e==\"string\"){t=this._itemMap.get(e)}else{t=e}return this._items.indexOf(t)}remove(e){let t,n,i;let o=false;const s=this._idProperty;if(typeof e==\"string\"){n=e;i=this._itemMap.get(n);o=!i;if(i){t=this._items.indexOf(i)}}else if(typeof e==\"number\"){t=e;i=this._items[t];o=!i;if(i){n=i[s]}}else{i=e;n=i[s];t=this._items.indexOf(i);o=t==-1||!this._itemMap.get(n)}if(o){throw new rr[\"b\"](\"collection-remove-404: Item not found.\",this)}this._items.splice(t,1);this._itemMap.delete(n);const r=this._bindToInternalToExternalMap.get(i);this._bindToInternalToExternalMap.delete(i);this._bindToExternalToInternalMap.delete(r);this.fire(\"remove\",i,t);return i}map(e,t){return this._items.map(e,t)}find(e,t){return this._items.find(e,t)}filter(e,t){return this._items.filter(e,t)}clear(){if(this._bindToCollection){this.stopListening(this._bindToCollection);this._bindToCollection=null}while(this.length){this.remove(0)}}bindTo(e){if(this._bindToCollection){throw new rr[\"b\"](\"collection-bind-to-rebind: The collection cannot be bound more than once.\",this)}this._bindToCollection=e;return{as:e=>{this._setUpBindToBinding(t=>new e(t))},using:e=>{if(typeof e==\"function\"){this._setUpBindToBinding(t=>e(t))}else{this._setUpBindToBinding(t=>t[e])}}}}_setUpBindToBinding(e){const t=this._bindToCollection;const n=(n,i,o)=>{const s=t._bindToCollection==this;const r=t._bindToInternalToExternalMap.get(i);if(s&&r){this._bindToExternalToInternalMap.set(i,r);this._bindToInternalToExternalMap.set(r,i)}else{const n=e(i);if(!n){this._skippedIndexesFromExternal.push(o);return}let s=o;for(const e of this._skippedIndexesFromExternal){if(o>e){s--}}for(const e of t._skippedIndexesFromExternal){if(s>=e){s++}}this._bindToExternalToInternalMap.set(i,n);this._bindToInternalToExternalMap.set(n,i);this.add(n,s);for(let e=0;e{const i=this._bindToExternalToInternalMap.get(t);if(i){this.remove(i)}this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((e,t)=>{if(nt){e.push(t)}return e},[])})}_getItemIdBeforeAdding(e){const t=this._idProperty;let n;if(t in e){n=e[t];if(typeof n!=\"string\"){throw new rr[\"b\"](\"collection-add-invalid-id\",this)}if(this.get(n)){throw new rr[\"b\"](\"collection-add-item-already-exists\",this)}}else{e[t]=n=nr()}return n}[Symbol.iterator](){return this._items[Symbol.iterator]()}}yr(xr,dr);class Ar{constructor(e,t=[],n=[]){this._context=e;this._plugins=new Map;this._availablePlugins=new Map;for(const e of t){if(e.pluginName){this._availablePlugins.set(e.pluginName,e)}}this._contextPlugins=new Map;for(const[e,t]of n){this._contextPlugins.set(e,t);this._contextPlugins.set(t,e);if(e.pluginName){this._availablePlugins.set(e.pluginName,e)}}}*[Symbol.iterator](){for(const e of this._plugins){if(typeof e[0]==\"function\"){yield e}}}get(e){const t=this._plugins.get(e);if(!t){const t=\"plugincollection-plugin-not-loaded: The requested plugin is not loaded.\";let n=e;if(typeof e==\"function\"){n=e.pluginName||e.name}throw new rr[\"b\"](t,this._context,{plugin:n})}return t}has(e){return this._plugins.has(e)}init(e,t=[]){const n=this;const i=this._context;const o=new Set;const s=[];const r=m(e);const a=m(t);const c=f(e);if(c){const e=\"plugincollection-plugin-not-found: Some plugins are not available and could not be loaded.\";console.error(Object(rr[\"a\"])(e),{plugins:c});return Promise.reject(new rr[\"b\"](e,i,{plugins:c}))}return Promise.all(r.map(l)).then(()=>d(s,\"init\")).then(()=>d(s,\"afterInit\")).then(()=>s);function l(e){if(a.includes(e)){return}if(n._plugins.has(e)||o.has(e)){return}return u(e).catch(t=>{console.error(Object(rr[\"a\"])(\"plugincollection-load: It was not possible to load the plugin.\"),{plugin:e});throw t})}function d(e,t){return e.reduce((e,i)=>{if(!i[t]){return e}if(n._contextPlugins.has(i)){return e}return e.then(i[t].bind(i))},Promise.resolve())}function u(e){return new Promise(r=>{o.add(e);if(e.requires){e.requires.forEach(n=>{const o=h(n);if(e.isContextPlugin&&!o.isContextPlugin){throw new rr[\"b\"](\"plugincollection-context-required: Context plugin can not require plugin which is not a context plugin\",null,{plugin:o.name,requiredBy:e.name})}if(t.includes(o)){throw new rr[\"b\"](\"plugincollection-required: Cannot load a plugin because one of its dependencies is listed in\"+\"the `removePlugins` option.\",i,{plugin:o.name,requiredBy:e.name})}l(o)})}const a=n._contextPlugins.get(e)||new e(i);n._add(e,a);s.push(a);r()})}function h(e){if(typeof e==\"function\"){return e}return n._availablePlugins.get(e)}function f(e){const t=[];for(const n of e){if(!h(n)){t.push(n)}}return t.length?t:null}function m(e){return e.map(e=>h(e)).filter(e=>!!e)}}destroy(){const e=[];for(const[,t]of this){if(typeof t.destroy==\"function\"&&!this._contextPlugins.has(t)){e.push(t.destroy())}}return Promise.all(e)}_add(e,t){this._plugins.set(e,t);const n=e.pluginName;if(!n){return}if(this._plugins.has(n)){throw new rr[\"b\"](\"plugincollection-plugin-name-conflict: Two plugins with the same name were loaded.\",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:e})}this._plugins.set(n,t)}}yr(Ar,dr);if(!window.CKEDITOR_TRANSLATIONS){window.CKEDITOR_TRANSLATIONS={}}function Cr(e,t,n){if(!window.CKEDITOR_TRANSLATIONS[e]){window.CKEDITOR_TRANSLATIONS[e]={}}const i=window.CKEDITOR_TRANSLATIONS[e];i.dictionary=i.dictionary||{};i.getPluralForm=n||i.getPluralForm;Object.assign(i.dictionary,t)}function Tr(e,t,n=1){if(typeof n!==\"number\"){throw new rr[\"b\"](\"translation-service-quantity-not-a-number: Expecting `quantity` to be a number.\",null,{quantity:n})}const i=Pr();if(i===1){e=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]}const o=t.id||t.string;if(i===0||!Er(e,o)){if(n!==1){return t.plural}return t.string}const s=window.CKEDITOR_TRANSLATIONS[e].dictionary;const r=window.CKEDITOR_TRANSLATIONS[e].getPluralForm||(e=>e===1?0:1);if(typeof s[o]===\"string\"){return s[o]}const a=Number(r(n));return s[o][a]}function Mr(){window.CKEDITOR_TRANSLATIONS={}}function Er(e,t){return!!window.CKEDITOR_TRANSLATIONS[e]&&!!window.CKEDITOR_TRANSLATIONS[e].dictionary[t]}function Pr(){return Object.keys(window.CKEDITOR_TRANSLATIONS).length}const Sr=[\"ar\",\"fa\",\"he\",\"ku\",\"ug\"];class Ir{constructor(e={}){this.uiLanguage=e.uiLanguage||\"en\";this.contentLanguage=e.contentLanguage||this.uiLanguage;this.uiLanguageDirection=Nr(this.uiLanguage);this.contentLanguageDirection=Nr(this.contentLanguage);this.t=(e,t)=>this._t(e,t)}get language(){console.warn(\"locale-deprecated-language-property: \"+\"The Locale#language property has been deprecated and will be removed in the near future. \"+\"Please use #uiLanguage and #contentLanguage properties instead.\");return this.uiLanguage}_t(e,t=[]){if(!Array.isArray(t)){t=[t]}if(typeof e===\"string\"){e={string:e}}const n=!!e.plural;const i=n?t[0]:1;const o=Tr(this.uiLanguage,e,i);return Or(o,t)}}function Or(e,t){return e.replace(/%(\\d+)/g,(e,n)=>ne.destroy())).then(()=>this.plugins.destroy())}_addEditor(e,t){if(this._contextOwner){throw new rr[\"b\"](\"context-addEditor-private-context: Cannot add multiple editors to the context which is created by the editor.\")}this.editors.add(e);if(t){this._contextOwner=e}}_removeEditor(e){if(this.editors.has(e)){this.editors.remove(e)}if(this._contextOwner===e){return this.destroy()}return Promise.resolve()}_getEditorConfig(){const e={};for(const t of this.config.names()){if(![\"plugins\",\"removePlugins\",\"extraPlugins\"].includes(t)){e[t]=this.config.get(t)}}return e}static create(e){return new Promise(t=>{const n=new this(e);t(n.initPlugins().then(()=>n))})}}function Rr(e,t){const n=Math.min(e.length,t.length);for(let i=0;ie.data.length){throw new rr[\"b\"](\"view-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.\",this)}if(n<0||t+n>e.data.length){throw new rr[\"b\"](\"view-textproxy-wrong-length: Given length value is incorrect.\",this)}this.data=e.data.substring(t,t+n);this.offsetInText=t}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(e){return e===\"textProxy\"||e===\"view:textProxy\"}getAncestors(e={includeSelf:false,parentFirst:false}){const t=[];let n=e.includeSelf?this.textNode:this.parent;while(n!==null){t[e.parentFirst?\"push\":\"unshift\"](n);n=n.parent}return t}}function Hr(e){const t=new Map;for(const n in e){t.set(n,e[n])}return t}function Ur(e){if(kr(e)){return new Map(e)}else{return Hr(e)}}class Wr{constructor(...e){this._patterns=[];this.add(...e)}add(...e){for(let t of e){if(typeof t==\"string\"||t instanceof RegExp){t={name:t}}if(t.classes&&(typeof t.classes==\"string\"||t.classes instanceof RegExp)){t.classes=[t.classes]}this._patterns.push(t)}}match(...e){for(const t of e){for(const e of this._patterns){const n=$r(t,e);if(n){return{element:t,pattern:e,match:n}}}}return null}matchAll(...e){const t=[];for(const n of e){for(const e of this._patterns){const i=$r(n,e);if(i){t.push({element:n,pattern:e,match:i})}}}return t.length>0?t:null}getElementName(){if(this._patterns.length!==1){return null}const e=this._patterns[0];const t=e.name;return typeof e!=\"function\"&&t&&!(t instanceof RegExp)?t:null}}function $r(e,t){if(typeof t==\"function\"){return t(e)}const n={};if(t.name){n.name=qr(t.name,e.name);if(!n.name){return null}}if(t.attributes){n.attributes=Yr(t.attributes,e);if(!n.attributes){return null}}if(t.classes){n.classes=Gr(t.classes,e);if(!n.classes){return false}}if(t.styles){n.styles=Jr(t.styles,e);if(!n.styles){return false}}return n}function qr(e,t){if(e instanceof RegExp){return e.test(t)}return e===t}function Yr(e,t){const n=[];for(const i in e){const o=e[i];if(t.hasAttribute(i)){const e=t.getAttribute(i);if(o===true){n.push(i)}else if(o instanceof RegExp){if(o.test(e)){n.push(i)}else{return null}}else if(e===o){n.push(i)}else{return null}}else{return null}}return n}function Gr(e,t){const n=[];for(const i of e){if(i instanceof RegExp){const e=t.getClassNames();for(const t of e){if(i.test(t)){n.push(t)}}if(n.length===0){return null}}else if(t.hasClass(i)){n.push(i)}else{return null}}return n}function Jr(e,t){const n=[];for(const i in e){const o=e[i];if(t.hasStyle(i)){const e=t.getStyle(i);if(o instanceof RegExp){if(o.test(e)){n.push(i)}else{return null}}else if(e===o){n.push(i)}else{return null}}else{return null}}return n}var Kr=\"[object Symbol]\";function Qr(e){return typeof e==\"symbol\"||T(e)&&v(e)==Kr}var Xr=Qr;var Zr=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,ea=/^\\w*$/;function ta(e,t){if(Jt(e)){return false}var n=typeof e;if(n==\"number\"||n==\"symbol\"||n==\"boolean\"||e==null||Xr(e)){return true}return ea.test(e)||!Zr.test(e)||t!=null&&e in Object(t)}var na=ta;var ia=\"Expected a function\";function oa(e,t){if(typeof e!=\"function\"||t!=null&&typeof t!=\"function\"){throw new TypeError(ia)}var n=function(){var i=arguments,o=t?t.apply(this,i):i[0],s=n.cache;if(s.has(o)){return s.get(o)}var r=e.apply(this,i);n.cache=s.set(o,r)||s;return r};n.cache=new(oa.Cache||vt);return n}oa.Cache=vt;var sa=oa;var ra=500;function aa(e){var t=sa(e,(function(e){if(n.size===ra){n.clear()}return e}));var n=t.cache;return t}var ca=aa;var la=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;var da=/\\\\(\\\\)?/g;var ua=ca((function(e){var t=[];if(e.charCodeAt(0)===46){t.push(\"\")}e.replace(la,(function(e,n,i,o){t.push(i?o.replace(da,\"$1\"):n||e)}));return t}));var ha=ua;function fa(e,t){var n=-1,i=e==null?0:e.length,o=Array(i);while(++no?0:o+t}n=n>o?o:n;if(n<0){n+=o}o=t>n?0:n-t>>>0;t>>>=0;var s=Array(o);while(++i0){if(++t>=mc){return arguments[0]}}else{t=0}return e.apply(undefined,arguments)}}var wc=bc;var _c=wc(fc);var vc=_c;function kc(e,t){return vc(lc(e,t,oc),e+\"\")}var yc=kc;function xc(e,t,n){if(!ce(n)){return false}var i=typeof t;if(i==\"number\"?Xn(n)&&en(t,n.length):i==\"string\"&&t in n){return z(n[t],e)}return false}var Ac=xc;function Cc(e){return yc((function(t,n){var i=-1,o=n.length,s=o>1?n[o-1]:undefined,r=o>2?n[2]:undefined;s=e.length>3&&typeof s==\"function\"?(o--,s):undefined;if(r&&Ac(n[0],n[1],r)){s=o<3?undefined:s;o=1}t=Object(t);while(++it===e);return Array.isArray(n)}set(e,t){if(ce(e)){for(const[t,n]of Object.entries(e)){this._styleProcessor.toNormalizedForm(t,n,this._styles)}}else{this._styleProcessor.toNormalizedForm(e,t,this._styles)}}remove(e){const t=Dc(e);za(this._styles,t);delete this._styles[e];this._cleanEmptyObjectsOnPath(t)}getNormalized(e){return this._styleProcessor.getNormalized(e,this._styles)}toString(){if(this.isEmpty){return\"\"}return this._getStylesEntries().map(e=>e.join(\":\")).sort().join(\";\")+\";\"}getAsString(e){if(this.isEmpty){return}if(this._styles[e]&&!ce(this._styles[e])){return this._styles[e]}const t=this._styleProcessor.getReducedForm(e,this._styles);const n=t.find(([t])=>t===e);if(Array.isArray(n)){return n[1]}}getStyleNames(){if(this.isEmpty){return[]}const e=this._getStylesEntries();return e.map(([e])=>e)}clear(){this._styles={}}_getStylesEntries(){const e=[];const t=Object.keys(this._styles);for(const n of t){e.push(...this._styleProcessor.getReducedForm(n,this._styles))}return e}_cleanEmptyObjectsOnPath(e){const t=e.split(\".\");const n=t.length>1;if(!n){return}const i=t.splice(0,t.length-1).join(\".\");const o=Va(this._styles,i);if(!o){return}const s=!Array.from(Object.keys(o)).length;if(s){this.remove(i)}}}class Lc{constructor(){this._normalizers=new Map;this._extractors=new Map;this._reducers=new Map;this._consumables=new Map}toNormalizedForm(e,t,n){if(ce(t)){jc(n,Dc(e),t);return}if(this._normalizers.has(e)){const i=this._normalizers.get(e);const{path:o,value:s}=i(t);jc(n,o,s)}else{jc(n,e,t)}}getNormalized(e,t){if(!e){return Ec({},t)}if(t[e]!==undefined){return t[e]}if(this._extractors.has(e)){const n=this._extractors.get(e);if(typeof n===\"string\"){return Va(t,n)}const i=n(e,t);if(i){return i}}return Va(t,Dc(e))}getReducedForm(e,t){const n=this.getNormalized(e,t);if(n===undefined){return[]}if(this._reducers.has(e)){const t=this._reducers.get(e);return t(n)}return[[e,n]]}getRelatedStyles(e){return this._consumables.get(e)||[]}setNormalizer(e,t){this._normalizers.set(e,t)}setExtractor(e,t){this._extractors.set(e,t)}setReducer(e,t){this._reducers.set(e,t)}setStyleRelation(e,t){this._mapStyleNames(e,t);for(const n of t){this._mapStyleNames(n,[e])}}_mapStyleNames(e,t){if(!this._consumables.has(e)){this._consumables.set(e,[])}this._consumables.get(e).push(...t)}}function Rc(e){let t=null;let n=0;let i=0;let o=null;const s=new Map;if(e===\"\"){return s}if(e.charAt(e.length-1)!=\";\"){e=e+\";\"}for(let r=0;r0){yield\"class\"}if(!this._styles.isEmpty){yield\"style\"}yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries();if(this._classes.size>0){yield[\"class\",this.getAttribute(\"class\")]}if(!this._styles.isEmpty){yield[\"style\",this.getAttribute(\"style\")]}}getAttribute(e){if(e==\"class\"){if(this._classes.size>0){return[...this._classes].join(\" \")}return undefined}if(e==\"style\"){const e=this._styles.toString();return e==\"\"?undefined:e}return this._attrs.get(e)}hasAttribute(e){if(e==\"class\"){return this._classes.size>0}if(e==\"style\"){return!this._styles.isEmpty}return this._attrs.has(e)}isSimilar(e){if(!(e instanceof zc)){return false}if(this===e){return true}if(this.name!=e.name){return false}if(this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size){return false}for(const[t,n]of this._attrs){if(!e._attrs.has(t)||e._attrs.get(t)!==n){return false}}for(const t of this._classes){if(!e._classes.has(t)){return false}}for(const t of this._styles.getStyleNames()){if(!e._styles.has(t)||e._styles.getAsString(t)!==this._styles.getAsString(t)){return false}}return true}hasClass(...e){for(const t of e){if(!this._classes.has(t)){return false}}return true}getClassNames(){return this._classes.keys()}getStyle(e){return this._styles.getAsString(e)}getNormalizedStyle(e){return this._styles.getNormalized(e)}getStyleNames(){return this._styles.getStyleNames()}hasStyle(...e){for(const t of e){if(!this._styles.has(t)){return false}}return true}findAncestor(...e){const t=new Wr(...e);let n=this.parent;while(n){if(t.match(n)){return n}n=n.parent}return null}getCustomProperty(e){return this._customProperties.get(e)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const e=Array.from(this._classes).sort().join(\",\");const t=this._styles.toString();const n=Array.from(this._attrs).map(e=>`${e[0]}=\"${e[1]}\"`).sort().join(\" \");return this.name+(e==\"\"?\"\":` class=\"${e}\"`)+(!t?\"\":` style=\"${t}\"`)+(n==\"\"?\"\":` ${n}`)}_clone(e=false){const t=[];if(e){for(const n of this.getChildren()){t.push(n._clone(e))}}const n=new this.constructor(this.document,this.name,this._attrs,t);n._classes=new Set(this._classes);n._styles.set(this._styles.getNormalized());n._customProperties=new Map(this._customProperties);n.getFillerOffset=this.getFillerOffset;return n}_appendChild(e){return this._insertChild(this.childCount,e)}_insertChild(e,t){this._fireChange(\"children\",this);let n=0;const i=Fc(this.document,t);for(const t of i){if(t.parent!==null){t._remove()}t.parent=this;t.document=this.document;this._children.splice(e,0,t);e++;n++}return n}_removeChildren(e,t=1){this._fireChange(\"children\",this);for(let n=e;n0){this._classes.clear();return true}return false}if(e==\"style\"){if(!this._styles.isEmpty){this._styles.clear();return true}return false}return this._attrs.delete(e)}_addClass(e){this._fireChange(\"attributes\",this);e=Array.isArray(e)?e:[e];e.forEach(e=>this._classes.add(e))}_removeClass(e){this._fireChange(\"attributes\",this);e=Array.isArray(e)?e:[e];e.forEach(e=>this._classes.delete(e))}_setStyle(e,t){this._fireChange(\"attributes\",this);this._styles.set(e,t)}_removeStyle(e){this._fireChange(\"attributes\",this);e=Array.isArray(e)?e:[e];e.forEach(e=>this._styles.remove(e))}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}}function Bc(e){e=Ur(e);for(const[t,n]of e){if(n===null){e.delete(t)}else if(typeof n!=\"string\"){e.set(t,String(n))}}return e}function Vc(e,t){const n=t.split(/\\s+/);e.clear();n.forEach(t=>e.add(t))}function Fc(e,t){if(typeof t==\"string\"){return[new Vr(e,t)]}if(!kr(t)){t=[t]}return Array.from(t).map(t=>{if(typeof t==\"string\"){return new Vr(e,t)}if(t instanceof Fr){return new Vr(e,t.data)}return t})}class Hc extends zc{constructor(e,t,n,i){super(e,t,n,i);this.getFillerOffset=Uc}is(e,t=null){if(!t){return e===\"containerElement\"||e===\"view:containerElement\"||e===this.name||e===\"view:\"+this.name||e===\"element\"||e===\"view:element\"||e===\"node\"||e===\"view:node\"}else{return t===this.name&&(e===\"containerElement\"||e===\"view:containerElement\"||e===\"element\"||e===\"view:element\")}}}function Uc(){const e=[...this.getChildren()];const t=e[this.childCount-1];if(t&&t.is(\"element\",\"br\")){return this.childCount}for(const t of e){if(!t.is(\"uiElement\")){return null}}return this.childCount}var Wc=Tc((function(e,t){jt(t,di(t),e)}));var $c=Wc;const qc=Symbol(\"observableProperties\");const Yc=Symbol(\"boundObservables\");const Gc=Symbol(\"boundProperties\");const Jc={set(e,t){if(ce(e)){Object.keys(e).forEach(t=>{this.set(t,e[t])},this);return}Qc(this);const n=this[qc];if(e in this&&!n.has(e)){throw new rr[\"b\"](\"observable-set-cannot-override: Cannot override an existing property.\",this)}Object.defineProperty(this,e,{enumerable:true,configurable:true,get(){return n.get(e)},set(t){const i=n.get(e);let o=this.fire(\"set:\"+e,e,t,i);if(o===undefined){o=t}if(i!==o||!n.has(e)){n.set(e,o);this.fire(\"change:\"+e,e,o,i)}}});this[e]=t},bind(...e){if(!e.length||!tl(e)){throw new rr[\"b\"](\"observable-bind-wrong-properties: All properties must be strings.\",this)}if(new Set(e).size!==e.length){throw new rr[\"b\"](\"observable-bind-duplicate-properties: Properties must be unique.\",this)}Qc(this);const t=this[Gc];e.forEach(e=>{if(t.has(e)){throw new rr[\"b\"](\"observable-bind-rebind: Cannot bind the same property more than once.\",this)}});const n=new Map;e.forEach(e=>{const i={property:e,to:[]};t.set(e,i);n.set(e,i)});return{to:Xc,toMany:Zc,_observable:this,_bindProperties:e,_to:[],_bindings:n}},unbind(...e){if(!this[qc]){return}const t=this[Gc];const n=this[Yc];if(e.length){if(!tl(e)){throw new rr[\"b\"](\"observable-unbind-wrong-properties: Properties must be strings.\",this)}e.forEach(e=>{const i=t.get(e);if(!i){return}let o,s,r,a;i.to.forEach(e=>{o=e[0];s=e[1];r=n.get(o);a=r[s];a.delete(i);if(!a.size){delete r[s]}if(!Object.keys(r).length){n.delete(o);this.stopListening(o,\"change\")}});t.delete(e)})}else{n.forEach((e,t)=>{this.stopListening(t,\"change\")});n.clear();t.clear()}},decorate(e){const t=this[e];if(!t){throw new rr[\"b\"](\"observablemixin-cannot-decorate-undefined: Cannot decorate an undefined method.\",this,{object:this,methodName:e})}this.on(e,(e,n)=>{e.return=t.apply(this,n)});this[e]=function(...t){return this.fire(e,t)}}};$c(Jc,dr);var Kc=Jc;function Qc(e){if(e[qc]){return}Object.defineProperty(e,qc,{value:new Map});Object.defineProperty(e,Yc,{value:new Map});Object.defineProperty(e,Gc,{value:new Map})}function Xc(...e){const t=nl(...e);const n=Array.from(this._bindings.keys());const i=n.length;if(!t.callback&&t.to.length>1){throw new rr[\"b\"](\"observable-bind-to-no-callback: Binding multiple observables only possible with callback.\",this)}if(i>1&&t.callback){throw new rr[\"b\"](\"observable-bind-to-extra-callback: Cannot bind multiple properties and use a callback in one binding.\",this)}t.to.forEach(e=>{if(e.properties.length&&e.properties.length!==i){throw new rr[\"b\"](\"observable-bind-to-properties-length: The number of properties must match.\",this)}if(!e.properties.length){e.properties=this._bindProperties}});this._to=t.to;if(t.callback){this._bindings.get(n[0]).callback=t.callback}rl(this._observable,this._to);ol(this);this._bindProperties.forEach(e=>{sl(this._observable,e)})}function Zc(e,t,n){if(this._bindings.size>1){throw new rr[\"b\"](\"observable-bind-to-many-not-one-binding: Cannot bind multiple properties with toMany().\",this)}this.to(...el(e,t),n)}function el(e,t){const n=e.map(e=>[e,t]);return Array.prototype.concat.apply([],n)}function tl(e){return e.every(e=>typeof e==\"string\")}function nl(...e){if(!e.length){throw new rr[\"b\"](\"observable-bind-to-parse-error: Invalid argument syntax in `to()`.\",null)}const t={to:[]};let n;if(typeof e[e.length-1]==\"function\"){t.callback=e.pop()}e.forEach(e=>{if(typeof e==\"string\"){n.properties.push(e)}else if(typeof e==\"object\"){n={observable:e,properties:[]};t.to.push(n)}else{throw new rr[\"b\"](\"observable-bind-to-parse-error: Invalid argument syntax in `to()`.\",null)}});return t}function il(e,t,n,i){const o=e[Yc];const s=o.get(n);const r=s||{};if(!r[i]){r[i]=new Set}r[i].add(t);if(!s){o.set(n,r)}}function ol(e){let t;e._bindings.forEach((n,i)=>{e._to.forEach(o=>{t=o.properties[n.callback?0:e._bindProperties.indexOf(i)];n.to.push([o.observable,t]);il(e._observable,n,o.observable,t)})})}function sl(e,t){const n=e[Gc];const i=n.get(t);let o;if(i.callback){o=i.callback.apply(e,i.to.map(e=>e[0][e[1]]))}else{o=i.to[0];o=o[0][o[1]]}if(e.hasOwnProperty(t)){e[t]=o}else{e.set(t,o)}}function rl(e,t){t.forEach(t=>{const n=e[Yc];let i;if(!n.get(t.observable)){e.listenTo(t.observable,\"change\",(o,s)=>{i=n.get(t.observable)[s];if(i){i.forEach(t=>{sl(e,t.property)})}})}})}class al extends Hc{constructor(e,t,n,i){super(e,t,n,i);this.set(\"isReadOnly\",false);this.set(\"isFocused\",false);this.bind(\"isReadOnly\").to(e);this.bind(\"isFocused\").to(e,\"isFocused\",t=>t&&e.selection.editableElement==this);this.listenTo(e.selection,\"change\",()=>{this.isFocused=e.isFocused&&e.selection.editableElement==this})}is(e,t=null){if(!t){return e===\"editableElement\"||e===\"view:editableElement\"||e===\"containerElement\"||e===\"view:containerElement\"||e===this.name||e===\"view:\"+this.name||e===\"element\"||e===\"view:element\"||e===\"node\"||e===\"view:node\"}else{return t===this.name&&(e===\"editableElement\"||e===\"view:editableElement\"||e===\"containerElement\"||e===\"view:containerElement\"||e===\"element\"||e===\"view:element\")}}destroy(){this.stopListening()}}yr(al,Kc);const cl=Symbol(\"rootName\");class ll extends al{constructor(e,t){super(e,t);this.rootName=\"main\"}is(e,t=null){if(!t){return e===\"rootElement\"||e===\"view:rootElement\"||e===\"editableElement\"||e===\"view:editableElement\"||e===\"containerElement\"||e===\"view:containerElement\"||e===this.name||e===\"view:\"+this.name||e===\"element\"||e===\"view:element\"||e===\"node\"||e===\"view:node\"}else{return t===this.name&&(e===\"rootElement\"||e===\"view:rootElement\"||e===\"editableElement\"||e===\"view:editableElement\"||e===\"containerElement\"||e===\"view:containerElement\"||e===\"element\"||e===\"view:element\")}}get rootName(){return this.getCustomProperty(cl)}set rootName(e){this._setCustomProperty(cl,e)}set _name(e){this.name=e}}class dl{constructor(e={}){if(!e.boundaries&&!e.startPosition){throw new rr[\"b\"](\"view-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.\",null)}if(e.direction&&e.direction!=\"forward\"&&e.direction!=\"backward\"){throw new rr[\"b\"](\"view-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.\",e.startPosition,{direction:e.direction})}this.boundaries=e.boundaries||null;if(e.startPosition){this.position=ul._createAt(e.startPosition)}else{this.position=ul._createAt(e.boundaries[e.direction==\"backward\"?\"end\":\"start\"])}this.direction=e.direction||\"forward\";this.singleCharacters=!!e.singleCharacters;this.shallow=!!e.shallow;this.ignoreElementEnd=!!e.ignoreElementEnd;this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null;this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(e){let t,n,i;do{i=this.position;({done:t,value:n}=this.next())}while(!t&&e(n));if(!t){this.position=i}}next(){if(this.direction==\"forward\"){return this._next()}else{return this._previous()}}_next(){let e=this.position.clone();const t=this.position;const n=e.parent;if(n.parent===null&&e.offset===n.childCount){return{done:true}}if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset){return{done:true}}let i;if(n instanceof Vr){if(e.isAtEnd){this.position=ul._createAfter(n);return this._next()}i=n.data[e.offset]}else{i=n.getChild(e.offset)}if(i instanceof zc){if(!this.shallow){e=new ul(i,0)}else{e.offset++}this.position=e;return this._formatReturnValue(\"elementStart\",i,t,e,1)}else if(i instanceof Vr){if(this.singleCharacters){e=new ul(i,0);this.position=e;return this._next()}else{let n=i.data.length;let o;if(i==this._boundaryEndParent){n=this.boundaries.end.offset;o=new Fr(i,0,n);e=ul._createAfter(o)}else{o=new Fr(i,0,i.data.length);e.offset++}this.position=e;return this._formatReturnValue(\"text\",o,t,e,n)}}else if(typeof i==\"string\"){let i;if(this.singleCharacters){i=1}else{const t=n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length;i=t-e.offset}const o=new Fr(n,e.offset,i);e.offset+=i;this.position=e;return this._formatReturnValue(\"text\",o,t,e,i)}else{e=ul._createAfter(n);this.position=e;if(this.ignoreElementEnd){return this._next()}else{return this._formatReturnValue(\"elementEnd\",n,t,e)}}}_previous(){let e=this.position.clone();const t=this.position;const n=e.parent;if(n.parent===null&&e.offset===0){return{done:true}}if(n==this._boundaryStartParent&&e.offset==this.boundaries.start.offset){return{done:true}}let i;if(n instanceof Vr){if(e.isAtStart){this.position=ul._createBefore(n);return this._previous()}i=n.data[e.offset-1]}else{i=n.getChild(e.offset-1)}if(i instanceof zc){if(!this.shallow){e=new ul(i,i.childCount);this.position=e;if(this.ignoreElementEnd){return this._previous()}else{return this._formatReturnValue(\"elementEnd\",i,t,e)}}else{e.offset--;this.position=e;return this._formatReturnValue(\"elementStart\",i,t,e,1)}}else if(i instanceof Vr){if(this.singleCharacters){e=new ul(i,i.data.length);this.position=e;return this._previous()}else{let n=i.data.length;let o;if(i==this._boundaryStartParent){const t=this.boundaries.start.offset;o=new Fr(i,t,i.data.length-t);n=o.data.length;e=ul._createBefore(o)}else{o=new Fr(i,0,i.data.length);e.offset--}this.position=e;return this._formatReturnValue(\"text\",o,t,e,n)}}else if(typeof i==\"string\"){let i;if(!this.singleCharacters){const t=n===this._boundaryStartParent?this.boundaries.start.offset:0;i=e.offset-t}else{i=1}e.offset-=i;const o=new Fr(n,e.offset,i);this.position=e;return this._formatReturnValue(\"text\",o,t,e,i)}else{e=ul._createBefore(n);this.position=e;return this._formatReturnValue(\"elementStart\",n,t,e,1)}}_formatReturnValue(e,t,n,i,o){if(t instanceof Fr){if(t.offsetInText+t.data.length==t.textNode.data.length){if(this.direction==\"forward\"&&!(this.boundaries&&this.boundaries.end.isEqual(this.position))){i=ul._createAfter(t.textNode);this.position=i}else{n=ul._createAfter(t.textNode)}}if(t.offsetInText===0){if(this.direction==\"backward\"&&!(this.boundaries&&this.boundaries.start.isEqual(this.position))){i=ul._createBefore(t.textNode);this.position=i}else{n=ul._createBefore(t.textNode)}}}return{done:false,value:{type:e,item:t,previousPosition:n,nextPosition:i,length:o}}}}class ul{constructor(e,t){this.parent=e;this.offset=t}get nodeAfter(){if(this.parent.is(\"text\")){return null}return this.parent.getChild(this.offset)||null}get nodeBefore(){if(this.parent.is(\"text\")){return null}return this.parent.getChild(this.offset-1)||null}get isAtStart(){return this.offset===0}get isAtEnd(){const e=this.parent.is(\"text\")?this.parent.data.length:this.parent.childCount;return this.offset===e}get root(){return this.parent.root}get editableElement(){let e=this.parent;while(!(e instanceof al)){if(e.parent){e=e.parent}else{return null}}return e}getShiftedBy(e){const t=ul._createAt(this);const n=t.offset+e;t.offset=n<0?0:n;return t}getLastMatchingPosition(e,t={}){t.startPosition=this;const n=new dl(t);n.skip(e);return n.position}getAncestors(){if(this.parent.is(\"documentFragment\")){return[this.parent]}else{return this.parent.getAncestors({includeSelf:true})}}getCommonAncestor(e){const t=this.getAncestors();const n=e.getAncestors();let i=0;while(t[i]==n[i]&&t[i]){i++}return i===0?null:t[i-1]}is(e){return e===\"position\"||e===\"view:position\"}isEqual(e){return this.parent==e.parent&&this.offset==e.offset}isBefore(e){return this.compareWith(e)==\"before\"}isAfter(e){return this.compareWith(e)==\"after\"}compareWith(e){if(this.root!==e.root){return\"different\"}if(this.isEqual(e)){return\"same\"}const t=this.parent.is(\"node\")?this.parent.getPath():[];const n=e.parent.is(\"node\")?e.parent.getPath():[];t.push(this.offset);n.push(e.offset);const i=Rr(t,n);switch(i){case\"prefix\":return\"before\";case\"extension\":return\"after\";default:return t[i]0?new this(n,i):new this(i,n)}static _createIn(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}static _createOn(e){const t=e.is(\"textProxy\")?e.offsetSize:1;return this._createFromPositionAndShift(ul._createBefore(e),t)}}function fl(e){if(e.item.is(\"attributeElement\")||e.item.is(\"uiElement\")){return true}return false}function ml(e){let t=0;for(const n of e){t++}return t}class gl{constructor(e=null,t,n){this._ranges=[];this._lastRangeBackward=false;this._isFake=false;this._fakeSelectionLabel=\"\";this.setTo(e,t,n)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length){return null}const e=this._ranges[this._ranges.length-1];const t=this._lastRangeBackward?e.end:e.start;return t.clone()}get focus(){if(!this._ranges.length){return null}const e=this._ranges[this._ranges.length-1];const t=this._lastRangeBackward?e.start:e.end;return t.clone()}get isCollapsed(){return this.rangeCount===1&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){if(this.anchor){return this.anchor.editableElement}return null}*getRanges(){for(const e of this._ranges){yield e.clone()}}getFirstRange(){let e=null;for(const t of this._ranges){if(!e||t.start.isBefore(e.start)){e=t}}return e?e.clone():null}getLastRange(){let e=null;for(const t of this._ranges){if(!e||t.end.isAfter(e.end)){e=t}}return e?e.clone():null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}isEqual(e){if(this.isFake!=e.isFake){return false}if(this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel){return false}if(this.rangeCount!=e.rangeCount){return false}else if(this.rangeCount===0){return true}if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus)){return false}for(const t of this._ranges){let n=false;for(const i of e._ranges){if(t.isEqual(i)){n=true;break}}if(!n){return false}}return true}isSimilar(e){if(this.isBackward!=e.isBackward){return false}const t=ml(this.getRanges());const n=ml(e.getRanges());if(t!=n){return false}if(t==0){return true}for(let t of this.getRanges()){t=t.getTrimmed();let n=false;for(let i of e.getRanges()){i=i.getTrimmed();if(t.start.isEqual(i.start)&&t.end.isEqual(i.end)){n=true;break}}if(!n){return false}}return true}getSelectedElement(){if(this.rangeCount!==1){return null}return this.getFirstRange().getContainedElement()}setTo(e,t,n){if(e===null){this._setRanges([]);this._setFakeOptions(t)}else if(e instanceof gl||e instanceof pl){this._setRanges(e.getRanges(),e.isBackward);this._setFakeOptions({fake:e.isFake,label:e.fakeSelectionLabel})}else if(e instanceof hl){this._setRanges([e],t&&t.backward);this._setFakeOptions(t)}else if(e instanceof ul){this._setRanges([new hl(e)]);this._setFakeOptions(t)}else if(e instanceof Br){const i=!!n&&!!n.backward;let o;if(t===undefined){throw new rr[\"b\"](\"view-selection-setTo-required-second-parameter: \"+\"selection.setTo requires the second parameter when the first parameter is a node.\",this)}else if(t==\"in\"){o=hl._createIn(e)}else if(t==\"on\"){o=hl._createOn(e)}else{o=new hl(ul._createAt(e,t))}this._setRanges([o],i);this._setFakeOptions(n)}else if(kr(e)){this._setRanges(e,t&&t.backward);this._setFakeOptions(t)}else{throw new rr[\"b\"](\"view-selection-setTo-not-selectable: Cannot set selection to given place.\",this)}this.fire(\"change\")}setFocus(e,t){if(this.anchor===null){throw new rr[\"b\"](\"view-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.\",this)}const n=ul._createAt(e,t);if(n.compareWith(this.focus)==\"same\"){return}const i=this.anchor;this._ranges.pop();if(n.compareWith(i)==\"before\"){this._addRange(new hl(n,i),true)}else{this._addRange(new hl(i,n))}this.fire(\"change\")}is(e){return e===\"selection\"||e===\"view:selection\"}_setRanges(e,t=false){e=Array.from(e);this._ranges=[];for(const t of e){this._addRange(t)}this._lastRangeBackward=!!t}_setFakeOptions(e={}){this._isFake=!!e.fake;this._fakeSelectionLabel=e.fake?e.label||\"\":\"\"}_addRange(e,t=false){if(!(e instanceof hl)){throw new rr[\"b\"](\"view-selection-add-range-not-range: \"+\"Selection range set to an object that is not an instance of view.Range\",this)}this._pushRange(e);this._lastRangeBackward=!!t}_pushRange(e){for(const t of this._ranges){if(e.isIntersecting(t)){throw new rr[\"b\"](\"view-selection-range-intersects: Trying to add a range that intersects with another range from selection.\",this,{addedRange:e,intersectingRange:t})}}this._ranges.push(new hl(e.start,e.end))}}yr(gl,dr);class pl{constructor(e=null,t,n){this._selection=new gl;this._selection.delegate(\"change\").to(this);this._selection.setTo(e,t,n)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(e){return this._selection.isEqual(e)}isSimilar(e){return this._selection.isSimilar(e)}is(e){return e===\"selection\"||e==\"documentSelection\"||e==\"view:selection\"||e==\"view:documentSelection\"}_setTo(e,t,n){this._selection.setTo(e,t,n)}_setFocus(e,t){this._selection.setFocus(e,t)}}yr(pl,dr);class bl{constructor(e){this.selection=new pl;this.roots=new xr({idProperty:\"rootName\"});this.stylesProcessor=e;this.set(\"isReadOnly\",false);this.set(\"isFocused\",false);this.set(\"isComposing\",false);this._postFixers=new Set}getRoot(e=\"main\"){return this.roots.get(e)}registerPostFixer(e){this._postFixers.add(e)}destroy(){this.roots.map(e=>e.destroy());this.stopListening()}_callPostFixers(e){let t=false;do{for(const n of this._postFixers){t=n(e);if(t){break}}}while(t)}}yr(bl,Kc);const wl=10;class _l extends zc{constructor(e,t,n,i){super(e,t,n,i);this.getFillerOffset=vl;this._priority=wl;this._id=null;this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(this.id===null){throw new rr[\"b\"](\"attribute-element-get-elements-with-same-id-no-id: \"+\"Cannot get elements with the same id for an attribute element without id.\",this)}return new Set(this._clonesGroup)}is(e,t=null){if(!t){return e===\"attributeElement\"||e===\"view:attributeElement\"||e===this.name||e===\"view:\"+this.name||e===\"element\"||e===\"view:element\"||e===\"node\"||e===\"view:node\"}else{return t===this.name&&(e===\"attributeElement\"||e===\"view:attributeElement\"||e===\"element\"||e===\"view:element\")}}isSimilar(e){if(this.id!==null||e.id!==null){return this.id===e.id}return super.isSimilar(e)&&this.priority==e.priority}_clone(e){const t=super._clone(e);t._priority=this._priority;t._id=this._id;return t}}_l.DEFAULT_PRIORITY=wl;function vl(){if(kl(this)){return null}let e=this.parent;while(e&&e.is(\"attributeElement\")){if(kl(e)>1){return null}e=e.parent}if(!e||kl(e)>1){return null}return this.childCount}function kl(e){return Array.from(e.getChildren()).filter(e=>!e.is(\"uiElement\")).length}class yl extends zc{constructor(e,t,n,i){super(e,t,n,i);this.getFillerOffset=xl}is(e,t=null){if(!t){return e===\"emptyElement\"||e===\"view:emptyElement\"||e===this.name||e===\"view:\"+this.name||e===\"element\"||e===\"view:element\"||e===\"node\"||e===\"view:node\"}else{return t===this.name&&(e===\"emptyElement\"||e===\"view:emptyElement\"||e===\"element\"||e===\"view:element\")}}_insertChild(e,t){if(t&&(t instanceof Br||Array.from(t).length>0)){throw new rr[\"b\"](\"view-emptyelement-cannot-add: Cannot add child nodes to EmptyElement instance.\",[this,t])}}}function xl(){return null}const Al=navigator.userAgent.toLowerCase();const Cl={isMac:Ml(Al),isGecko:El(Al),isSafari:Pl(Al),isAndroid:Sl(Al),features:{isRegExpUnicodePropertySupported:Il()}};var Tl=Cl;function Ml(e){return e.indexOf(\"macintosh\")>-1}function El(e){return!!e.match(/gecko\\/\\d+/)}function Pl(e){return e.indexOf(\" applewebkit/\")>-1&&e.indexOf(\"chrome\")===-1}function Sl(e){return e.indexOf(\"android\")>-1}function Il(){let e=false;try{e=\"ć\".search(new RegExp(\"[\\\\p{L}]\",\"u\"))===0}catch(e){}return e}const Ol={\"⌘\":\"ctrl\",\"⇧\":\"shift\",\"⌥\":\"alt\"};const Nl={ctrl:\"⌘\",shift:\"⇧\",alt:\"⌥\"};const Ll=zl();function Rl(e){let t;if(typeof e==\"string\"){t=Ll[e.toLowerCase()];if(!t){throw new rr[\"b\"](\"keyboard-unknown-key: Unknown key name.\",null,{key:e})}}else{t=e.keyCode+(e.altKey?Ll.alt:0)+(e.ctrlKey?Ll.ctrl:0)+(e.shiftKey?Ll.shift:0)}return t}function Dl(e){if(typeof e==\"string\"){e=Bl(e)}return e.map(e=>typeof e==\"string\"?Rl(e):e).reduce((e,t)=>t+e,0)}function jl(e){if(!Tl.isMac){return e}return Bl(e).map(e=>Nl[e.toLowerCase()]||e).reduce((e,t)=>{if(e.slice(-1)in Ol){return e+t}else{return e+\"+\"+t}})}function zl(){const e={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,cmd:1114112,shift:2228224,alt:4456448};for(let t=65;t<=90;t++){const n=String.fromCharCode(t);e[n.toLowerCase()]=t}for(let t=48;t<=57;t++){e[t-48]=t}for(let t=112;t<=123;t++){e[\"f\"+(t-111)]=t}return e}function Bl(e){return e.split(/\\s*\\+\\s*/)}class Vl extends zc{constructor(e,t,n,i){super(e,t,n,i);this.getFillerOffset=Hl}is(e,t=null){if(!t){return e===\"uiElement\"||e===\"view:uiElement\"||e===this.name||e===\"view:\"+this.name||e===\"element\"||e===\"view:element\"||e===\"node\"||e===\"view:node\"}else{return t===this.name&&(e===\"uiElement\"||e===\"view:uiElement\"||e===\"element\"||e===\"view:element\")}}_insertChild(e,t){if(t&&(t instanceof Br||Array.from(t).length>0)){throw new rr[\"b\"](\"view-uielement-cannot-add: Cannot add child nodes to UIElement instance.\",this)}}render(e){return this.toDomElement(e)}toDomElement(e){const t=e.createElement(this.name);for(const e of this.getAttributeKeys()){t.setAttribute(e,this.getAttribute(e))}return t}}function Fl(e){e.document.on(\"keydown\",(t,n)=>Ul(t,n,e.domConverter))}function Hl(){return null}function Ul(e,t,n){if(t.keyCode==Ll.arrowright){const e=t.domTarget.ownerDocument.defaultView.getSelection();const i=e.rangeCount==1&&e.getRangeAt(0).collapsed;if(i||t.shiftKey){const t=e.focusNode;const o=e.focusOffset;const s=n.domPositionToView(t,o);if(s===null){return}let r=false;const a=s.getLastMatchingPosition(e=>{if(e.item.is(\"uiElement\")){r=true}if(e.item.is(\"uiElement\")||e.item.is(\"attributeElement\")){return true}return false});if(r){const t=n.viewPositionToDom(a);if(i){e.collapse(t.parent,t.offset)}else{e.extend(t.parent,t.offset)}}}}}class Wl{constructor(e,t){this.document=e;this._children=[];if(t){this._insertChild(0,t)}}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return this.childCount===0}get root(){return this}get parent(){return null}is(e){return e===\"documentFragment\"||e===\"view:documentFragment\"}_appendChild(e){return this._insertChild(this.childCount,e)}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(e,t){this._fireChange(\"children\",this);let n=0;const i=$l(this.document,t);for(const t of i){if(t.parent!==null){t._remove()}t.parent=this;this._children.splice(e,0,t);e++;n++}return n}_removeChildren(e,t=1){this._fireChange(\"children\",this);for(let n=e;n{if(typeof t==\"string\"){return new Vr(e,t)}if(t instanceof Fr){return new Vr(e,t.data)}return t})}class ql{constructor(e){this.document=e;this._cloneGroups=new Map}setSelection(e,t,n){this.document.selection._setTo(e,t,n)}setSelectionFocus(e,t){this.document.selection._setFocus(e,t)}createText(e){return new Vr(this.document,e)}createAttributeElement(e,t,n={}){const i=new _l(this.document,e,t);if(n.priority){i._priority=n.priority}if(n.id){i._id=n.id}return i}createContainerElement(e,t){return new Hc(this.document,e,t)}createEditableElement(e,t){const n=new al(this.document,e,t);n._document=this.document;return n}createEmptyElement(e,t){return new yl(this.document,e,t)}createUIElement(e,t,n){const i=new Vl(this.document,e,t);if(n){i.render=n}return i}setAttribute(e,t,n){n._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,n){if(L(e)&&n===undefined){n=t}n._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,n){n._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}breakAttributes(e){if(e instanceof ul){return this._breakAttributes(e)}else{return this._breakAttributesRange(e)}}breakContainer(e){const t=e.parent;if(!t.is(\"containerElement\")){throw new rr[\"b\"](\"view-writer-break-non-container-element: Trying to break an element which is not a container element.\",this.document)}if(!t.parent){throw new rr[\"b\"](\"view-writer-break-root: Trying to break root element.\",this.document)}if(e.isAtStart){return ul._createBefore(t)}else if(!e.isAtEnd){const n=t._clone(false);this.insert(ul._createAfter(t),n);const i=new hl(e,ul._createAt(t,\"end\"));const o=new ul(n,0);this.move(i,o)}return ul._createAfter(t)}mergeAttributes(e){const t=e.offset;const n=e.parent;if(n.is(\"text\")){return e}if(n.is(\"attributeElement\")&&n.childCount===0){const e=n.parent;const t=n.index;n._remove();this._removeFromClonedElementsGroup(n);return this.mergeAttributes(new ul(e,t))}const i=n.getChild(t-1);const o=n.getChild(t);if(!i||!o){return e}if(i.is(\"text\")&&o.is(\"text\")){return Xl(i,o)}else if(i.is(\"attributeElement\")&&o.is(\"attributeElement\")&&i.isSimilar(o)){const e=i.childCount;i._appendChild(o.getChildren());o._remove();this._removeFromClonedElementsGroup(o);return this.mergeAttributes(new ul(i,e))}return e}mergeContainers(e){const t=e.nodeBefore;const n=e.nodeAfter;if(!t||!n||!t.is(\"containerElement\")||!n.is(\"containerElement\")){throw new rr[\"b\"](\"view-writer-merge-containers-invalid-position: \"+\"Element before and after given position cannot be merged.\",this.document)}const i=t.getChild(t.childCount-1);const o=i instanceof Vr?ul._createAt(i,\"end\"):ul._createAt(t,\"end\");this.move(hl._createIn(n),ul._createAt(t,\"end\"));this.remove(hl._createOn(n));return o}insert(e,t){t=kr(t)?[...t]:[t];Zl(t,this.document);const n=Gl(e);if(!n){throw new rr[\"b\"](\"view-writer-invalid-position-container\",this.document)}const i=this._breakAttributes(e,true);const o=n._insertChild(i.offset,t);for(const e of t){this._addToClonedElementsGroup(e)}const s=i.getShiftedBy(o);const r=this.mergeAttributes(i);if(o===0){return new hl(r,r)}else{if(!r.isEqual(i)){s.offset--}const e=this.mergeAttributes(s);return new hl(r,e)}}remove(e){const t=e instanceof hl?e:hl._createOn(e);nd(t,this.document);if(t.isCollapsed){return new Wl(this.document)}const{start:n,end:i}=this._breakAttributesRange(t,true);const o=n.parent;const s=i.offset-n.offset;const r=o._removeChildren(n.offset,s);for(const e of r){this._removeFromClonedElementsGroup(e)}const a=this.mergeAttributes(n);t.start=a;t.end=a.clone();return new Wl(this.document,r)}clear(e,t){nd(e,this.document);const n=e.getWalker({direction:\"backward\",ignoreElementEnd:true});for(const i of n){const n=i.item;let o;if(n.is(\"element\")&&t.isSimilar(n)){o=hl._createOn(n)}else if(!i.nextPosition.isAfter(e.start)&&n.is(\"textProxy\")){const e=n.getAncestors().find(e=>e.is(\"element\")&&t.isSimilar(e));if(e){o=hl._createIn(e)}}if(o){if(o.end.isAfter(e.end)){o.end=e.end}if(o.start.isBefore(e.start)){o.start=e.start}this.remove(o)}}}move(e,t){let n;if(t.isAfter(e.end)){t=this._breakAttributes(t,true);const i=t.parent;const o=i.childCount;e=this._breakAttributesRange(e,true);n=this.remove(e);t.offset+=i.childCount-o}else{n=this.remove(e)}return this.insert(t,n)}wrap(e,t){if(!(t instanceof _l)){throw new rr[\"b\"](\"view-writer-wrap-invalid-attribute\",this.document)}nd(e,this.document);if(!e.isCollapsed){return this._wrapRange(e,t)}else{let n=e.start;if(n.parent.is(\"element\")&&!Yl(n.parent)){n=n.getLastMatchingPosition(e=>e.item.is(\"uiElement\"))}n=this._wrapPosition(n,t);const i=this.document.selection;if(i.isCollapsed&&i.getFirstPosition().isEqual(e.start)){this.setSelection(n)}return new hl(n)}}unwrap(e,t){if(!(t instanceof _l)){throw new rr[\"b\"](\"view-writer-unwrap-invalid-attribute\",this.document)}nd(e,this.document);if(e.isCollapsed){return e}const{start:n,end:i}=this._breakAttributesRange(e,true);const o=n.parent;const s=this._unwrapChildren(o,n.offset,i.offset,t);const r=this.mergeAttributes(s.start);if(!r.isEqual(s.start)){s.end.offset--}const a=this.mergeAttributes(s.end);return new hl(r,a)}rename(e,t){const n=new Hc(this.document,e,t.getAttributes());this.insert(ul._createAfter(t),n);this.move(hl._createIn(t),ul._createAt(n,0));this.remove(hl._createOn(t));return n}clearClonedElementsGroup(e){this._cloneGroups.delete(e)}createPositionAt(e,t){return ul._createAt(e,t)}createPositionAfter(e){return ul._createAfter(e)}createPositionBefore(e){return ul._createBefore(e)}createRange(e,t){return new hl(e,t)}createRangeOn(e){return hl._createOn(e)}createRangeIn(e){return hl._createIn(e)}createSelection(e,t,n){return new gl(e,t,n)}_wrapChildren(e,t,n,i){let o=t;const s=[];while(ofalse;e.parent._insertChild(e.offset,n);const i=new hl(e,e.getShiftedBy(1));this.wrap(i,t);const o=new ul(n.parent,n.index);n._remove();const s=o.nodeBefore;const r=o.nodeAfter;if(s instanceof Vr&&r instanceof Vr){return Xl(s,r)}return Kl(o)}_wrapAttributeElement(e,t){if(!id(e,t)){return false}if(e.name!==t.name||e.priority!==t.priority){return false}for(const n of e.getAttributeKeys()){if(n===\"class\"||n===\"style\"){continue}if(t.hasAttribute(n)&&t.getAttribute(n)!==e.getAttribute(n)){return false}}for(const n of e.getStyleNames()){if(t.hasStyle(n)&&t.getStyle(n)!==e.getStyle(n)){return false}}for(const n of e.getAttributeKeys()){if(n===\"class\"||n===\"style\"){continue}if(!t.hasAttribute(n)){this.setAttribute(n,e.getAttribute(n),t)}}for(const n of e.getStyleNames()){if(!t.hasStyle(n)){this.setStyle(n,e.getStyle(n),t)}}for(const n of e.getClassNames()){if(!t.hasClass(n)){this.addClass(n,t)}}return true}_unwrapAttributeElement(e,t){if(!id(e,t)){return false}if(e.name!==t.name||e.priority!==t.priority){return false}for(const n of e.getAttributeKeys()){if(n===\"class\"||n===\"style\"){continue}if(!t.hasAttribute(n)||t.getAttribute(n)!==e.getAttribute(n)){return false}}if(!t.hasClass(...e.getClassNames())){return false}for(const n of e.getStyleNames()){if(!t.hasStyle(n)||t.getStyle(n)!==e.getStyle(n)){return false}}for(const n of e.getAttributeKeys()){if(n===\"class\"||n===\"style\"){continue}this.removeAttribute(n,t)}this.removeClass(Array.from(e.getClassNames()),t);this.removeStyle(Array.from(e.getStyleNames()),t);return true}_breakAttributesRange(e,t=false){const n=e.start;const i=e.end;nd(e,this.document);if(e.isCollapsed){const n=this._breakAttributes(e.start,t);return new hl(n,n)}const o=this._breakAttributes(i,t);const s=o.parent.childCount;const r=this._breakAttributes(n,t);o.offset+=o.parent.childCount-s;return new hl(r,o)}_breakAttributes(e,t=false){const n=e.offset;const i=e.parent;if(e.parent.is(\"emptyElement\")){throw new rr[\"b\"](\"view-writer-cannot-break-empty-element\",this.document)}if(e.parent.is(\"uiElement\")){throw new rr[\"b\"](\"view-writer-cannot-break-ui-element\",this.document)}if(!t&&i.is(\"text\")&&td(i.parent)){return e.clone()}if(td(i)){return e.clone()}if(i.is(\"text\")){return this._breakAttributes(Ql(e),t)}const o=i.childCount;if(n==o){const e=new ul(i.parent,i.index+1);return this._breakAttributes(e,t)}else{if(n===0){const e=new ul(i.parent,i.index);return this._breakAttributes(e,t)}else{const e=i.index+1;const o=i._clone();i.parent._insertChild(e,o);this._addToClonedElementsGroup(o);const s=i.childCount-n;const r=i._removeChildren(n,s);o._appendChild(r);const a=new ul(i.parent,e);return this._breakAttributes(a,t)}}}_addToClonedElementsGroup(e){if(!e.root.is(\"rootElement\")){return}if(e.is(\"element\")){for(const t of e.getChildren()){this._addToClonedElementsGroup(t)}}const t=e.id;if(!t){return}let n=this._cloneGroups.get(t);if(!n){n=new Set;this._cloneGroups.set(t,n)}n.add(e);e._clonesGroup=n}_removeFromClonedElementsGroup(e){if(e.is(\"element\")){for(const t of e.getChildren()){this._removeFromClonedElementsGroup(t)}}const t=e.id;if(!t){return}const n=this._cloneGroups.get(t);if(!n){return}n.delete(e)}}function Yl(e){return Array.from(e.getChildren()).some(e=>!e.is(\"uiElement\"))}function Gl(e){let t=e.parent;while(!td(t)){if(!t){return undefined}t=t.parent}return t}function Jl(e,t){if(e.priorityt.priority){return false}return e.getIdentity()n instanceof e)){throw new rr[\"b\"](\"view-writer-insert-invalid-node\",t)}if(!n.is(\"text\")){Zl(n.getChildren(),t)}}}const ed=[Vr,_l,Hc,yl,Vl];function td(e){return e&&(e.is(\"containerElement\")||e.is(\"documentFragment\"))}function nd(e,t){const n=Gl(e.start);const i=Gl(e.end);if(!n||!i||n!==i){throw new rr[\"b\"](\"view-writer-invalid-range-container\",t)}}function id(e,t){return e.id===null&&t.id===null}function od(e){return Object.prototype.toString.call(e)==\"[object Text]\"}const sd=e=>e.createTextNode(\" \");const rd=e=>{const t=e.createElement(\"br\");t.dataset.ckeFiller=true;return t};const ad=7;const cd=(()=>{let e=\"\";for(let t=0;t0){n.push({index:i,type:\"insert\",values:e.slice(i,s)})}if(o-i>0){n.push({index:i+(s-i),type:\"delete\",howMany:o-i})}return n}function _d(e,t){const{firstIndex:n,lastIndexOld:i,lastIndexNew:o}=e;if(n===-1){return Array(t).fill(\"equal\")}let s=[];if(n>0){s=s.concat(Array(n).fill(\"equal\"))}if(o-n>0){s=s.concat(Array(o-n).fill(\"insert\"))}if(i-n>0){s=s.concat(Array(i-n).fill(\"delete\"))}if(o200||o>200||i+o>300){return vd.fastDiff(e,t,n,true)}let s,r;if(ol?-1:1;if(d[i+h]){d[i]=d[i+h].slice(0)}if(!d[i]){d[i]=[]}d[i].push(o>l?s:r);let f=Math.max(o,l);let m=f-i;while(ml;m--){u[m]=h(m)}u[l]=h(l);f++}while(u[l]!==c);return d[l].slice(1)}vd.fastDiff=md;function kd(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}function yd(e){const t=e.parentNode;if(t){t.removeChild(e)}}function xd(e){if(e){if(e.defaultView){return e instanceof e.defaultView.Document}else if(e.ownerDocument&&e.ownerDocument.defaultView){return e instanceof e.ownerDocument.defaultView.Node}}return false}class Ad{constructor(e,t){this.domDocuments=new Set;this.domConverter=e;this.markedAttributes=new Set;this.markedChildren=new Set;this.markedTexts=new Set;this.selection=t;this.isFocused=false;this._inlineFiller=null;this._fakeSelectionContainer=null}markToSync(e,t){if(e===\"text\"){if(this.domConverter.mapViewToDom(t.parent)){this.markedTexts.add(t)}}else{if(!this.domConverter.mapViewToDom(t)){return}if(e===\"attributes\"){this.markedAttributes.add(t)}else if(e===\"children\"){this.markedChildren.add(t)}else{throw new rr[\"b\"](\"view-renderer-unknown-type: Unknown type passed to Renderer.markToSync.\",this)}}}render(){let e;for(const e of this.markedChildren){this._updateChildrenMappings(e)}if(this._inlineFiller&&!this._isSelectionInInlineFiller()){this._removeInlineFiller()}if(this._inlineFiller){e=this._getInlineFillerPosition()}else if(this._needsInlineFillerAtSelection()){e=this.selection.getFirstPosition();this.markedChildren.add(e.parent)}for(const e of this.markedAttributes){this._updateAttrs(e)}for(const t of this.markedChildren){this._updateChildren(t,{inlineFillerPosition:e})}for(const t of this.markedTexts){if(!this.markedChildren.has(t.parent)&&this.domConverter.mapViewToDom(t.parent)){this._updateText(t,{inlineFillerPosition:e})}}if(e){const t=this.domConverter.viewPositionToDom(e);const n=t.parent.ownerDocument;if(!ld(t.parent)){this._inlineFiller=Td(n,t.parent,t.offset)}else{this._inlineFiller=t.parent}}else{this._inlineFiller=null}this._updateSelection();this._updateFocus();this.markedTexts.clear();this.markedAttributes.clear();this.markedChildren.clear()}_updateChildrenMappings(e){const t=this.domConverter.mapViewToDom(e);if(!t){return}const n=this.domConverter.mapViewToDom(e).childNodes;const i=Array.from(this.domConverter.viewChildrenToDom(e,t.ownerDocument,{withChildren:false}));const o=this._diffNodeLists(n,i);const s=this._findReplaceActions(o,n,i);if(s.indexOf(\"replace\")!==-1){const t={equal:0,insert:0,delete:0};for(const o of s){if(o===\"replace\"){const o=t.equal+t.insert;const s=t.equal+t.delete;const r=e.getChild(o);if(r&&!r.is(\"uiElement\")){this._updateElementMappings(r,n[s])}yd(i[o]);t.equal++}else{t[o]++}}}}_updateElementMappings(e,t){this.domConverter.unbindDomElement(t);this.domConverter.bindElements(t,e);this.markedChildren.add(e);this.markedAttributes.add(e)}_getInlineFillerPosition(){const e=this.selection.getFirstPosition();if(e.parent.is(\"text\")){return ul._createBefore(this.selection.getFirstPosition().parent)}else{return e}}_isSelectionInInlineFiller(){if(this.selection.rangeCount!=1||!this.selection.isCollapsed){return false}const e=this.selection.getFirstPosition();const t=this.domConverter.viewPositionToDom(e);if(t&&od(t.parent)&&ld(t.parent)){return true}return false}_removeInlineFiller(){const e=this._inlineFiller;if(!ld(e)){throw new rr[\"b\"](\"view-renderer-filler-was-lost: The inline filler node was lost.\",this)}if(dd(e)){e.parentNode.removeChild(e)}else{e.data=e.data.substr(ad)}this._inlineFiller=null}_needsInlineFillerAtSelection(){if(this.selection.rangeCount!=1||!this.selection.isCollapsed){return false}const e=this.selection.getFirstPosition();const t=e.parent;const n=e.offset;if(!this.domConverter.mapViewToDom(t.root)){return false}if(!t.is(\"element\")){return false}if(!Cd(t)){return false}if(n===t.getFillerOffset()){return false}const i=e.nodeBefore;const o=e.nodeAfter;if(i instanceof Vr||o instanceof Vr){return false}return true}_updateText(e,t){const n=this.domConverter.findCorrespondingDomText(e);const i=this.domConverter.viewToDom(e,n.ownerDocument);const o=n.data;let s=i.data;const r=t.inlineFillerPosition;if(r&&r.parent==e.parent&&r.offset==e.index){s=cd+s}if(o!=s){const e=md(o,s);for(const t of e){if(t.type===\"insert\"){n.insertData(t.index,t.values.join(\"\"))}else{n.deleteData(t.index,t.howMany)}}}}_updateAttrs(e){const t=this.domConverter.mapViewToDom(e);if(!t){return}const n=Array.from(t.attributes).map(e=>e.name);const i=e.getAttributeKeys();for(const n of i){t.setAttribute(n,e.getAttribute(n))}for(const i of n){if(!e.hasAttribute(i)){t.removeAttribute(i)}}}_updateChildren(e,t){const n=this.domConverter.mapViewToDom(e);if(!n){return}const i=t.inlineFillerPosition;const o=this.domConverter.mapViewToDom(e).childNodes;const s=Array.from(this.domConverter.viewChildrenToDom(e,n.ownerDocument,{bind:true,inlineFillerPosition:i}));if(i&&i.parent===e){Td(n.ownerDocument,s,i.offset)}const r=this._diffNodeLists(o,s);let a=0;const c=new Set;for(const e of r){if(e===\"delete\"){c.add(o[a]);yd(o[a])}else if(e===\"equal\"){a++}}a=0;for(const e of r){if(e===\"insert\"){kd(n,a,s[a]);a++}else if(e===\"equal\"){this._markDescendantTextToSync(this.domConverter.domToView(s[a]));a++}}for(const e of c){if(!e.parentNode){this.domConverter.unbindDomElement(e)}}}_diffNodeLists(e,t){e=Sd(e,this._fakeSelectionContainer);return vd(e,t,Ed.bind(null,this.domConverter))}_findReplaceActions(e,t,n){if(e.indexOf(\"insert\")===-1||e.indexOf(\"delete\")===-1){return e}let i=[];let o=[];let s=[];const r={equal:0,insert:0,delete:0};for(const a of e){if(a===\"insert\"){s.push(n[r.equal+r.insert])}else if(a===\"delete\"){o.push(t[r.equal+r.delete])}else{i=i.concat(vd(o,s,Md).map(e=>e===\"equal\"?\"replace\":e));i.push(\"equal\");o=[];s=[]}r[a]++}return i.concat(vd(o,s,Md).map(e=>e===\"equal\"?\"replace\":e))}_markDescendantTextToSync(e){if(!e){return}if(e.is(\"text\")){this.markedTexts.add(e)}else if(e.is(\"element\")){for(const t of e.getChildren()){this._markDescendantTextToSync(t)}}}_updateSelection(){if(this.selection.rangeCount===0){this._removeDomSelection();this._removeFakeSelection();return}const e=this.domConverter.mapViewToDom(this.selection.editableElement);if(!this.isFocused||!e){return}if(this.selection.isFake){this._updateFakeSelection(e)}else{this._removeFakeSelection();this._updateDomSelection(e)}}_updateFakeSelection(e){const t=e.ownerDocument;if(!this._fakeSelectionContainer){this._fakeSelectionContainer=Id(t)}const n=this._fakeSelectionContainer;this.domConverter.bindFakeSelection(n,this.selection);if(!this._fakeSelectionNeedsUpdate(e)){return}if(!n.parentElement||n.parentElement!=e){e.appendChild(n)}n.textContent=this.selection.fakeSelectionLabel||\" \";const i=t.getSelection();const o=t.createRange();i.removeAllRanges();o.selectNodeContents(n);i.addRange(o)}_updateDomSelection(e){const t=e.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(t)){return}const n=this.domConverter.viewPositionToDom(this.selection.anchor);const i=this.domConverter.viewPositionToDom(this.selection.focus);e.focus();t.collapse(n.parent,n.offset);t.extend(i.parent,i.offset);if(Tl.isGecko){Pd(i,t)}}_domSelectionNeedsUpdate(e){if(!this.domConverter.isDomSelectionCorrect(e)){return true}const t=e&&this.domConverter.domSelectionToView(e);if(t&&this.selection.isEqual(t)){return false}if(!this.selection.isCollapsed&&this.selection.isSimilar(t)){return false}return true}_fakeSelectionNeedsUpdate(e){const t=this._fakeSelectionContainer;const n=e.ownerDocument.getSelection();if(!t||t.parentElement!==e){return true}if(n.anchorNode!==t&&!t.contains(n.anchorNode)){return true}return t.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const e of this.domDocuments){const t=e.getSelection();if(t.rangeCount){const t=e.activeElement;const n=this.domConverter.mapDomToView(t);if(t&&n){e.getSelection().removeAllRanges()}}}}_removeFakeSelection(){const e=this._fakeSelectionContainer;if(e){e.remove()}}_updateFocus(){if(this.isFocused){const e=this.selection.editableElement;if(e){this.domConverter.focus(e)}}}}yr(Ad,Kc);function Cd(e){if(e.getAttribute(\"contenteditable\")==\"false\"){return false}const t=e.findAncestor(e=>e.hasAttribute(\"contenteditable\"));return!t||t.getAttribute(\"contenteditable\")==\"true\"}function Td(e,t,n){const i=t instanceof Array?t:t.childNodes;const o=i[n];if(od(o)){o.data=cd+o.data;return o}else{const o=e.createTextNode(cd);if(Array.isArray(t)){i.splice(n,0,o)}else{kd(t,n,o)}return o}}function Md(e,t){return xd(e)&&xd(t)&&!od(e)&&!od(t)&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function Ed(e,t,n){if(t===n){return true}else if(od(t)&&od(n)){return t.data===n.data}else if(e.isBlockFiller(t)&&e.isBlockFiller(n)){return true}return false}function Pd(e,t){const n=e.parent;if(n.nodeType!=Node.ELEMENT_NODE||e.offset!=n.childNodes.length-1){return}const i=n.childNodes[e.offset];if(i&&i.tagName==\"BR\"){t.addRange(t.getRangeAt(0))}}function Sd(e,t){const n=Array.from(e);if(n.length==0||!t){return n}const i=n[n.length-1];if(i==t){n.pop()}return n}function Id(e){const t=e.createElement(\"div\");Object.assign(t.style,{position:\"fixed\",top:0,left:\"-9999px\",width:\"42px\"});t.textContent=\" \";return t}var Od={window:window,document:document};function Nd(e){let t=0;while(e.previousSibling){e=e.previousSibling;t++}return t}function Ld(e){const t=[];while(e&&e.nodeType!=Node.DOCUMENT_NODE){t.unshift(e);e=e.parentNode}return t}function Rd(e,t){const n=Ld(e);const i=Ld(t);let o=0;while(n[o]==i[o]&&n[o]){o++}return o===0?null:n[o-1]}const Dd=rd(document);class jd{constructor(e,t={}){this.document=e;this.blockFillerMode=t.blockFillerMode||\"br\";this.preElements=[\"pre\"];this.blockElements=[\"p\",\"div\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"li\",\"dd\",\"dt\",\"figcaption\"];this._blockFiller=this.blockFillerMode==\"br\"?rd:sd;this._domToViewMapping=new WeakMap;this._viewToDomMapping=new WeakMap;this._fakeSelectionMapping=new WeakMap}bindFakeSelection(e,t){this._fakeSelectionMapping.set(e,new gl(t))}fakeSelectionToView(e){return this._fakeSelectionMapping.get(e)}bindElements(e,t){this._domToViewMapping.set(e,t);this._viewToDomMapping.set(t,e)}unbindDomElement(e){const t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e);this._viewToDomMapping.delete(t);for(const t of e.childNodes){this.unbindDomElement(t)}}}bindDocumentFragments(e,t){this._domToViewMapping.set(e,t);this._viewToDomMapping.set(t,e)}viewToDom(e,t,n={}){if(e.is(\"text\")){const n=this._processDataFromViewText(e);return t.createTextNode(n)}else{if(this.mapViewToDom(e)){return this.mapViewToDom(e)}let i;if(e.is(\"documentFragment\")){i=t.createDocumentFragment();if(n.bind){this.bindDocumentFragments(i,e)}}else if(e.is(\"uiElement\")){i=e.render(t);if(n.bind){this.bindElements(i,e)}return i}else{if(e.hasAttribute(\"xmlns\")){i=t.createElementNS(e.getAttribute(\"xmlns\"),e.name)}else{i=t.createElement(e.name)}if(n.bind){this.bindElements(i,e)}for(const t of e.getAttributeKeys()){i.setAttribute(t,e.getAttribute(t))}}if(n.withChildren||n.withChildren===undefined){for(const o of this.viewChildrenToDom(e,t,n)){i.appendChild(o)}}return i}}*viewChildrenToDom(e,t,n={}){const i=e.getFillerOffset&&e.getFillerOffset();let o=0;for(const s of e.getChildren()){if(i===o){yield this._blockFiller(t)}yield this.viewToDom(s,t,n);o++}if(i===o){yield this._blockFiller(t)}}viewRangeToDom(e){const t=this.viewPositionToDom(e.start);const n=this.viewPositionToDom(e.end);const i=document.createRange();i.setStart(t.parent,t.offset);i.setEnd(n.parent,n.offset);return i}viewPositionToDom(e){const t=e.parent;if(t.is(\"text\")){const n=this.findCorrespondingDomText(t);if(!n){return null}let i=e.offset;if(ld(n)){i+=ad}return{parent:n,offset:i}}else{let n,i,o;if(e.offset===0){n=this.mapViewToDom(t);if(!n){return null}o=n.childNodes[0]}else{const t=e.nodeBefore;i=t.is(\"text\")?this.findCorrespondingDomText(t):this.mapViewToDom(e.nodeBefore);if(!i){return null}n=i.parentNode;o=i.nextSibling}if(od(o)&&ld(o)){return{parent:o,offset:ad}}const s=i?Nd(i)+1:0;return{parent:n,offset:s}}}domToView(e,t={}){if(this.isBlockFiller(e,this.blockFillerMode)){return null}const n=this.getParentUIElement(e,this._domToViewMapping);if(n){return n}if(od(e)){if(dd(e)){return null}else{const t=this._processDataFromDomText(e);return t===\"\"?null:new Vr(this.document,t)}}else if(this.isComment(e)){return null}else{if(this.mapDomToView(e)){return this.mapDomToView(e)}let n;if(this.isDocumentFragment(e)){n=new Wl(this.document);if(t.bind){this.bindDocumentFragments(e,n)}}else{const i=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();n=new zc(this.document,i);if(t.bind){this.bindElements(e,n)}const o=e.attributes;for(let e=o.length-1;e>=0;e--){n._setAttribute(o[e].name,o[e].value)}}if(t.withChildren||t.withChildren===undefined){for(const i of this.domChildrenToView(e,t)){n._appendChild(i)}}return n}}*domChildrenToView(e,t={}){for(let n=0;n{const{scrollLeft:t,scrollTop:n}=e;i.push([t,n])});t.focus();Bd(t,e=>{const[t,n]=i.shift();e.scrollLeft=t;e.scrollTop=n});Od.window.scrollTo(e,n)}}isElement(e){return e&&e.nodeType==Node.ELEMENT_NODE}isDocumentFragment(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isComment(e){return e&&e.nodeType==Node.COMMENT_NODE}isBlockFiller(e){if(this.blockFillerMode==\"br\"){return e.isEqualNode(Dd)}if(e.tagName===\"BR\"&&Fd(e,this.blockElements)&&e.parentNode.childNodes.length===1){return true}return Vd(e,this.blockElements)}isDomSelectionBackward(e){if(e.isCollapsed){return false}const t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset);t.setEnd(e.focusNode,e.focusOffset);const n=t.collapsed;t.detach();return n}getParentUIElement(e){const t=Ld(e);t.pop();while(t.length){const e=t.pop();const n=this._domToViewMapping.get(e);if(n&&n.is(\"uiElement\")){return n}}return null}isDomSelectionCorrect(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}_isDomSelectionPositionCorrect(e,t){if(od(e)&&ld(e)&&tthis.preElements.includes(e.name))){return t}if(t.charAt(0)==\" \"){const n=this._getTouchingViewTextNode(e,false);const i=n&&this._nodeEndsWithSpace(n);if(i||!n){t=\" \"+t.substr(1)}}if(t.charAt(t.length-1)==\" \"){const n=this._getTouchingViewTextNode(e,true);if(t.charAt(t.length-2)==\" \"||!n||n.data.charAt(0)==\" \"){t=t.substr(0,t.length-1)+\" \"}}return t.replace(/ {2}/g,\"  \")}_nodeEndsWithSpace(e){if(e.getAncestors().some(e=>this.preElements.includes(e.name))){return false}const t=this._processDataFromViewText(e);return t.charAt(t.length-1)==\" \"}_processDataFromDomText(e){let t=e.data;if(zd(e,this.preElements)){return ud(e)}t=t.replace(/[ \\n\\t\\r]{1,}/g,\" \");const n=this._getTouchingInlineDomNode(e,false);const i=this._getTouchingInlineDomNode(e,true);const o=this._checkShouldLeftTrimDomText(n);const s=this._checkShouldRightTrimDomText(e,i);if(o){t=t.replace(/^ /,\"\")}if(s){t=t.replace(/ $/,\"\")}t=ud(new Text(t));t=t.replace(/ \\u00A0/g,\" \");if(/( |\\u00A0)\\u00A0$/.test(t)||!i||i.data&&i.data.charAt(0)==\" \"){t=t.replace(/\\u00A0$/,\" \")}if(o){t=t.replace(/^\\u00A0/,\" \")}return t}_checkShouldLeftTrimDomText(e){if(!e){return true}if(Gs(e)){return true}return/[^\\S\\u00A0]/.test(e.data.charAt(e.data.length-1))}_checkShouldRightTrimDomText(e,t){if(t){return false}return!ld(e)}_getTouchingViewTextNode(e,t){const n=new dl({startPosition:t?ul._createAfter(e):ul._createBefore(e),direction:t?\"forward\":\"backward\"});for(const e of n){if(e.item.is(\"containerElement\")){return null}else if(e.item.is(\"br\")){return null}else if(e.item.is(\"textProxy\")){return e.item}}return null}_getTouchingInlineDomNode(e,t){if(!e.parentNode){return null}const n=t?\"nextNode\":\"previousNode\";const i=e.ownerDocument;const o=Ld(e)[0];const s=i.createTreeWalker(o,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode(e){if(od(e)){return NodeFilter.FILTER_ACCEPT}if(e.tagName==\"BR\"){return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP}});s.currentNode=e;const r=s[n]();if(r!==null){const t=Rd(e,r);if(t&&!zd(e,this.blockElements,t)&&!zd(r,this.blockElements,t)){return r}}return null}}function zd(e,t,n){let i=Ld(e);if(n){i=i.slice(i.indexOf(n)+1)}return i.some(e=>e.tagName&&t.includes(e.tagName.toLowerCase()))}function Bd(e,t){while(e&&e!=Od.document){t(e);e=e.parentNode}}function Vd(e,t){const n=od(e)&&e.data==\" \";return n&&Fd(e,t)&&e.parentNode.childNodes.length===1}function Fd(e,t){const n=e.parentNode;return n&&n.tagName&&t.includes(n.tagName.toLowerCase())}function Hd(e){const t=Object.prototype.toString.apply(e);if(t==\"[object Window]\"){return true}if(t==\"[object global]\"){return true}return false}const Ud=$c({},dr,{listenTo(e,...t){if(xd(e)||Hd(e)){const n=this._getProxyEmitter(e)||new $d(e);n.attach(...t);e=n}dr.listenTo.call(this,e,...t)},stopListening(e,t,n){if(xd(e)||Hd(e)){const t=this._getProxyEmitter(e);if(!t){return}e=t}dr.stopListening.call(this,e,t,n);if(e instanceof $d){e.detach(t)}},_getProxyEmitter(e){return ur(this,qd(e))}});var Wd=Ud;class $d{constructor(e){hr(this,qd(e));this._domNode=e}}$c($d.prototype,dr,{attach(e,t,n={}){if(this._domListeners&&this._domListeners[e]){return}const i=this._createDomListener(e,!!n.useCapture);this._domNode.addEventListener(e,i,!!n.useCapture);if(!this._domListeners){this._domListeners={}}this._domListeners[e]=i},detach(e){let t;if(this._domListeners[e]&&(!(t=this._events[e])||!t.callbacks.length)){this._domListeners[e].removeListener()}},_createDomListener(e,t){const n=t=>{this.fire(e,t)};n.removeListener=()=>{this._domNode.removeEventListener(e,n,t);delete this._domListeners[e]};return n}});function qd(e){return e[\"data-ck-expando\"]||(e[\"data-ck-expando\"]=nr())}class Yd{constructor(e){this.view=e;this.document=e.document;this.isEnabled=false}enable(){this.isEnabled=true}disable(){this.isEnabled=false}destroy(){this.disable();this.stopListening()}}yr(Yd,Wd);var Gd=\"__lodash_hash_undefined__\";function Jd(e){this.__data__.set(e,Gd);return this}var Kd=Jd;function Qd(e){return this.__data__.has(e)}var Xd=Qd;function Zd(e){var t=-1,n=e==null?0:e.length;this.__data__=new vt;while(++ta)){return false}var l=s.get(e);if(l&&s.get(t)){return l==t}var d=-1,u=true,h=n&ru?new eu:undefined;s.set(e,t);s.set(t,e);while(++d{this.listenTo(e,t,(e,t)=>{if(this.isEnabled){this.onDomEvent(t)}},{useCapture:this.useCapture})})}fire(e,t,n){if(this.isEnabled){this.document.fire(e,new Gu(this.view,t,n))}}}class Ku extends Ju{constructor(e){super(e);this.domEventType=[\"keydown\",\"keyup\"]}onDomEvent(e){this.fire(e.type,e,{keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey||e.metaKey,shiftKey:e.shiftKey,get keystroke(){return Rl(this)}})}}var Qu=function(){return i[\"a\"].Date.now()};var Xu=Qu;var Zu=0/0;var eh=/^\\s+|\\s+$/g;var th=/^[-+]0x[0-9a-f]+$/i;var nh=/^0b[01]+$/i;var ih=/^0o[0-7]+$/i;var oh=parseInt;function sh(e){if(typeof e==\"number\"){return e}if(Xr(e)){return Zu}if(ce(e)){var t=typeof e.valueOf==\"function\"?e.valueOf():e;e=ce(t)?t+\"\":t}if(typeof e!=\"string\"){return e===0?e:+e}e=e.replace(eh,\"\");var n=nh.test(e);return n||ih.test(e)?oh(e.slice(2),n?2:8):th.test(e)?Zu:+e}var rh=sh;var ah=\"Expected a function\";var ch=Math.max,lh=Math.min;function dh(e,t,n){var i,o,s,r,a,c,l=0,d=false,u=false,h=true;if(typeof e!=\"function\"){throw new TypeError(ah)}t=rh(t)||0;if(ce(n)){d=!!n.leading;u=\"maxWait\"in n;s=u?ch(rh(n.maxWait)||0,t):s;h=\"trailing\"in n?!!n.trailing:h}function f(t){var n=i,s=o;i=o=undefined;l=t;r=e.apply(s,n);return r}function m(e){l=e;a=setTimeout(b,t);return d?f(e):r}function g(e){var n=e-c,i=e-l,o=t-n;return u?lh(o,s-i):o}function p(e){var n=e-c,i=e-l;return c===undefined||n>=t||n<0||u&&i>=s}function b(){var e=Xu();if(p(e)){return w(e)}a=setTimeout(b,g(e))}function w(e){a=undefined;if(h&&i){return f(e)}i=o=undefined;return r}function _(){if(a!==undefined){clearTimeout(a)}l=0;i=c=o=a=undefined}function v(){return a===undefined?r:w(Xu())}function k(){var e=Xu(),n=p(e);i=arguments;o=this;c=e;if(n){if(a===undefined){return m(c)}if(u){clearTimeout(a);a=setTimeout(b,t);return f(c)}}if(a===undefined){a=setTimeout(b,t)}return r}k.cancel=_;k.flush=v;return k}var uh=dh;class hh extends Yd{constructor(e){super(e);this._fireSelectionChangeDoneDebounced=uh(e=>this.document.fire(\"selectionChangeDone\",e),200)}observe(){const e=this.document;e.on(\"keydown\",(t,n)=>{const i=e.selection;if(i.isFake&&fh(n.keyCode)&&this.isEnabled){n.preventDefault();this._handleSelectionMove(n.keyCode)}},{priority:\"lowest\"})}destroy(){super.destroy();this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(e){const t=this.document.selection;const n=new gl(t.getRanges(),{backward:t.isBackward,fake:false});if(e==Ll.arrowleft||e==Ll.arrowup){n.setTo(n.getFirstPosition())}if(e==Ll.arrowright||e==Ll.arrowdown){n.setTo(n.getLastPosition())}const i={oldSelection:t,newSelection:n,domSelection:null};this.document.fire(\"selectionChange\",i);this._fireSelectionChangeDoneDebounced(i)}}function fh(e){return e==Ll.arrowright||e==Ll.arrowleft||e==Ll.arrowup||e==Ll.arrowdown}class mh extends Yd{constructor(e){super(e);this.mutationObserver=e.getObserver(Yu);this.selection=this.document.selection;this.domConverter=e.domConverter;this._documents=new WeakSet;this._fireSelectionChangeDoneDebounced=uh(e=>this.document.fire(\"selectionChangeDone\",e),200);this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3);this._loopbackCounter=0}observe(e){const t=e.ownerDocument;if(this._documents.has(t)){return}this.listenTo(t,\"selectionchange\",()=>{this._handleSelectionChange(t)});this._documents.add(t)}destroy(){super.destroy();clearInterval(this._clearInfiniteLoopInterval);this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionChange(e){if(!this.isEnabled){return}this.mutationObserver.flush();const t=e.defaultView.getSelection();const n=this.domConverter.domSelectionToView(t);if(n.rangeCount==0){this.view.hasDomSelection=false;return}this.view.hasDomSelection=true;if(this.selection.isEqual(n)&&this.domConverter.isDomSelectionCorrect(t)){return}if(++this._loopbackCounter>60){return}if(this.selection.isSimilar(n)){this.view.forceRender()}else{const e={oldSelection:this.selection,newSelection:n,domSelection:t};this.document.fire(\"selectionChange\",e);this._fireSelectionChangeDoneDebounced(e)}}_clearInfiniteLoop(){this._loopbackCounter=0}}class gh extends Ju{constructor(e){super(e);this.domEventType=[\"focus\",\"blur\"];this.useCapture=true;const t=this.document;t.on(\"focus\",()=>{t.isFocused=true;this._renderTimeoutId=setTimeout(()=>e.forceRender(),50)});t.on(\"blur\",(n,i)=>{const o=t.selection.editableElement;if(o===null||o===i.target){t.isFocused=false;e.forceRender()}})}onDomEvent(e){this.fire(e.type,e)}destroy(){if(this._renderTimeoutId){clearTimeout(this._renderTimeoutId)}super.destroy()}}class ph extends Ju{constructor(e){super(e);this.domEventType=[\"compositionstart\",\"compositionupdate\",\"compositionend\"];const t=this.document;t.on(\"compositionstart\",()=>{t.isComposing=true});t.on(\"compositionend\",()=>{t.isComposing=false})}onDomEvent(e){this.fire(e.type,e)}}class bh extends Ju{constructor(e){super(e);this.domEventType=[\"beforeinput\"]}onDomEvent(e){this.fire(e.type,e)}}function wh(e){return Object.prototype.toString.apply(e)==\"[object Range]\"}function _h(e){const t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}const vh=[\"top\",\"right\",\"bottom\",\"left\",\"width\",\"height\"];class kh{constructor(e){const t=wh(e);Object.defineProperty(this,\"_source\",{value:e._source||e,writable:true,enumerable:false});if(Gs(e)||t){if(t){yh(this,kh.getDomRangeRects(e)[0])}else{yh(this,e.getBoundingClientRect())}}else if(Hd(e)){const{innerWidth:t,innerHeight:n}=e;yh(this,{top:0,right:t,bottom:n,left:0,width:t,height:n})}else{yh(this,e)}}clone(){return new kh(this)}moveTo(e,t){this.top=t;this.right=e+this.width;this.bottom=t+this.height;this.left=e;return this}moveBy(e,t){this.top+=t;this.right+=e;this.left+=e;this.bottom+=t;return this}getIntersection(e){const t={top:Math.max(this.top,e.top),right:Math.min(this.right,e.right),bottom:Math.min(this.bottom,e.bottom),left:Math.max(this.left,e.left)};t.width=t.right-t.left;t.height=t.bottom-t.top;if(t.width<0||t.height<0){return null}else{return new kh(t)}}getIntersectionArea(e){const t=this.getIntersection(e);if(t){return t.getArea()}else{return 0}}getArea(){return this.width*this.height}getVisible(){const e=this._source;let t=this.clone();if(!xh(e)){let n=e.parentNode||e.commonAncestorContainer;while(n&&!xh(n)){const e=new kh(n);const i=t.getIntersection(e);if(i){if(i.getArea()Rh(e,i));const r=Rh(e,i);Mh(i,r,t);if(i.parent!=i){o=i.frameElement;i=i.parent;if(!o){return}}else{i=null}}}function Th(e){const t=Lh(e);Eh(t,()=>new kh(e))}Object.assign(Ah,{scrollViewportToShowTarget:Ch,scrollAncestorsToShowTarget:Th});function Mh(e,t,n){const i=t.clone().moveBy(0,n);const o=t.clone().moveBy(0,-n);const s=new kh(e).excludeScrollbarsAndBorders();const r=[o,i];if(!r.every(e=>s.contains(e))){let{scrollX:r,scrollY:a}=e;if(Sh(o,s)){a-=s.top-t.top+n}else if(Ph(i,s)){a+=t.bottom-s.bottom+n}if(Ih(t,s)){r-=s.left-t.left+n}else if(Oh(t,s)){r+=t.right-s.right+n}e.scrollTo(r,a)}}function Eh(e,t){const n=Nh(e);let i,o;while(e!=n.document.body){o=t();i=new kh(e).excludeScrollbarsAndBorders();if(!i.contains(o)){if(Sh(o,i)){e.scrollTop-=i.top-o.top}else if(Ph(o,i)){e.scrollTop+=o.bottom-i.bottom}if(Ih(o,i)){e.scrollLeft-=i.left-o.left}else if(Oh(o,i)){e.scrollLeft+=o.right-i.right}}e=e.parentNode}}function Ph(e,t){return e.bottom>t.bottom}function Sh(e,t){return e.topt.right}function Nh(e){if(wh(e)){return e.startContainer.ownerDocument.defaultView}else{return e.ownerDocument.defaultView}}function Lh(e){if(wh(e)){let t=e.commonAncestorContainer;if(od(t)){t=t.parentNode}return t}else{return e.parentNode}}function Rh(e,t){const n=Nh(e);const i=new kh(e);if(n===t){return i}else{let e=n;while(e!=t){const t=e.frameElement;const n=new kh(t).excludeScrollbarsAndBorders();i.moveBy(n.left,n.top);e=e.parent}}return i}class Dh{constructor(e){this.document=new bl(e);this.domConverter=new jd(this.document);this.domRoots=new Map;this.set(\"isRenderingInProgress\",false);this.set(\"hasDomSelection\",false);this._renderer=new Ad(this.domConverter,this.document.selection);this._renderer.bind(\"isFocused\").to(this.document);this._initialDomRootAttributes=new WeakMap;this._observers=new Map;this._ongoingChange=false;this._postFixersInProgress=false;this._renderingDisabled=false;this._hasChangedSinceTheLastRendering=false;this._writer=new ql(this.document);this.addObserver(Yu);this.addObserver(mh);this.addObserver(gh);this.addObserver(Ku);this.addObserver(hh);this.addObserver(ph);if(Tl.isAndroid){this.addObserver(bh)}hd(this);Fl(this);this.on(\"render\",()=>{this._render();this.document.fire(\"layoutChanged\");this._hasChangedSinceTheLastRendering=false});this.listenTo(this.document.selection,\"change\",()=>{this._hasChangedSinceTheLastRendering=true})}attachDomRoot(e,t=\"main\"){const n=this.document.getRoot(t);n._name=e.tagName.toLowerCase();const i={};for(const{name:t,value:o}of Array.from(e.attributes)){i[t]=o;if(t===\"class\"){this._writer.addClass(o.split(\" \"),n)}else{this._writer.setAttribute(t,o,n)}}this._initialDomRootAttributes.set(e,i);const o=()=>{this._writer.setAttribute(\"contenteditable\",!n.isReadOnly,n);if(n.isReadOnly){this._writer.addClass(\"ck-read-only\",n)}else{this._writer.removeClass(\"ck-read-only\",n)}};o();this.domRoots.set(t,e);this.domConverter.bindElements(e,n);this._renderer.markToSync(\"children\",n);this._renderer.markToSync(\"attributes\",n);this._renderer.domDocuments.add(e.ownerDocument);n.on(\"change:children\",(e,t)=>this._renderer.markToSync(\"children\",t));n.on(\"change:attributes\",(e,t)=>this._renderer.markToSync(\"attributes\",t));n.on(\"change:text\",(e,t)=>this._renderer.markToSync(\"text\",t));n.on(\"change:isReadOnly\",()=>this.change(o));n.on(\"change\",()=>{this._hasChangedSinceTheLastRendering=true});for(const n of this._observers.values()){n.observe(e,t)}}detachDomRoot(e){const t=this.domRoots.get(e);Array.from(t.attributes).forEach(({name:e})=>t.removeAttribute(e));const n=this._initialDomRootAttributes.get(t);for(const e in n){t.setAttribute(e,n[e])}this.domRoots.delete(e);this.domConverter.unbindDomElement(t)}getDomRoot(e=\"main\"){return this.domRoots.get(e)}addObserver(e){let t=this._observers.get(e);if(t){return t}t=new e(this);this._observers.set(e,t);for(const[e,n]of this.domRoots){t.observe(n,e)}t.enable();return t}getObserver(e){return this._observers.get(e)}disableObservers(){for(const e of this._observers.values()){e.disable()}}enableObservers(){for(const e of this._observers.values()){e.enable()}}scrollToTheSelection(){const e=this.document.selection.getFirstRange();if(e){Ch({target:this.domConverter.viewRangeToDom(e),viewportOffset:20})}}focus(){if(!this.document.isFocused){const e=this.document.selection.editableElement;if(e){this.domConverter.focus(e);this.forceRender()}else{}}}change(e){if(this.isRenderingInProgress||this._postFixersInProgress){throw new rr[\"b\"](\"cannot-change-view-tree: \"+\"Attempting to make changes to the view when it is in an incorrect state: rendering or post-fixers are in progress. \"+\"This may cause some unexpected behavior and inconsistency between the DOM and the view.\",this)}try{if(this._ongoingChange){return e(this._writer)}this._ongoingChange=true;const t=e(this._writer);this._ongoingChange=false;if(!this._renderingDisabled&&this._hasChangedSinceTheLastRendering){this._postFixersInProgress=true;this.document._callPostFixers(this._writer);this._postFixersInProgress=false;this.fire(\"render\")}return t}catch(e){rr[\"b\"].rethrowUnexpectedError(e,this)}}forceRender(){this._hasChangedSinceTheLastRendering=true;this.change(()=>{})}destroy(){for(const e of this._observers.values()){e.destroy()}this.document.destroy();this.stopListening()}createPositionAt(e,t){return ul._createAt(e,t)}createPositionAfter(e){return ul._createAfter(e)}createPositionBefore(e){return ul._createBefore(e)}createRange(e,t){return new hl(e,t)}createRangeOn(e){return hl._createOn(e)}createRangeIn(e){return hl._createIn(e)}createSelection(e,t,n){return new gl(e,t,n)}_disableRendering(e){this._renderingDisabled=e;if(e==false){this.change(()=>{})}}_render(){this.isRenderingInProgress=true;this.disableObservers();this._renderer.render();this.enableObservers();this.isRenderingInProgress=false}}yr(Dh,Kc);class jh{constructor(e){this.parent=null;this._attrs=Ur(e)}get index(){let e;if(!this.parent){return null}if((e=this.parent.getChildIndex(this))===null){throw new rr[\"b\"](\"model-node-not-found-in-parent: The node's parent does not contain this node.\",this)}return e}get startOffset(){let e;if(!this.parent){return null}if((e=this.parent.getChildStartOffset(this))===null){throw new rr[\"b\"](\"model-node-not-found-in-parent: The node's parent does not contain this node.\",this)}return e}get offsetSize(){return 1}get endOffset(){if(!this.parent){return null}return this.startOffset+this.offsetSize}get nextSibling(){const e=this.index;return e!==null&&this.parent.getChild(e+1)||null}get previousSibling(){const e=this.index;return e!==null&&this.parent.getChild(e-1)||null}get root(){let e=this;while(e.parent){e=e.parent}return e}isAttached(){return this.root.is(\"rootElement\")}getPath(){const e=[];let t=this;while(t.parent){e.unshift(t.startOffset);t=t.parent}return e}getAncestors(e={includeSelf:false,parentFirst:false}){const t=[];let n=e.includeSelf?this:this.parent;while(n){t[e.parentFirst?\"push\":\"unshift\"](n);n=n.parent}return t}getCommonAncestor(e,t={}){const n=this.getAncestors(t);const i=e.getAncestors(t);let o=0;while(n[o]==i[o]&&n[o]){o++}return o===0?null:n[o-1]}isBefore(e){if(this==e){return false}if(this.root!==e.root){return false}const t=this.getPath();const n=e.getPath();const i=Rr(t,n);switch(i){case\"prefix\":return true;case\"extension\":return false;default:return t[i]{e[t[0]]=t[1];return e},{})}return e}is(e){return e===\"node\"||e===\"model:node\"}_clone(){return new jh(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(e,t){this._attrs.set(e,t)}_setAttributesTo(e){this._attrs=Ur(e)}_removeAttribute(e){return this._attrs.delete(e)}_clearAttributes(){this._attrs.clear()}}class zh extends jh{constructor(e,t){super(t);this._data=e||\"\"}get offsetSize(){return this.data.length}get data(){return this._data}is(e){return e===\"text\"||e===\"model:text\"||e===\"node\"||e===\"model:node\"}toJSON(){const e=super.toJSON();e.data=this.data;return e}_clone(){return new zh(this.data,this.getAttributes())}static fromJSON(e){return new zh(e.data,e.attributes)}}class Bh{constructor(e,t,n){this.textNode=e;if(t<0||t>e.offsetSize){throw new rr[\"b\"](\"model-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.\",this)}if(n<0||t+n>e.offsetSize){throw new rr[\"b\"](\"model-textproxy-wrong-length: Given length value is incorrect.\",this)}this.data=e.data.substring(t,t+n);this.offsetInText=t}get startOffset(){return this.textNode.startOffset!==null?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return this.startOffset!==null?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}is(e){return e===\"textProxy\"||e===\"model:textProxy\"}getPath(){const e=this.textNode.getPath();if(e.length>0){e[e.length-1]+=this.offsetInText}return e}getAncestors(e={includeSelf:false,parentFirst:false}){const t=[];let n=e.includeSelf?this:this.parent;while(n){t[e.parentFirst?\"push\":\"unshift\"](n);n=n.parent}return t}hasAttribute(e){return this.textNode.hasAttribute(e)}getAttribute(e){return this.textNode.getAttribute(e)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}class Vh{constructor(e){this._nodes=[];if(e){this._insertNodes(0,e)}}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((e,t)=>e+t.offsetSize,0)}getNode(e){return this._nodes[e]||null}getNodeIndex(e){const t=this._nodes.indexOf(e);return t==-1?null:t}getNodeStartOffset(e){const t=this.getNodeIndex(e);return t===null?null:this._nodes.slice(0,t).reduce((e,t)=>e+t.offsetSize,0)}indexToOffset(e){if(e==this._nodes.length){return this.maxOffset}const t=this._nodes[e];if(!t){throw new rr[\"b\"](\"model-nodelist-index-out-of-bounds: Given index cannot be found in the node list.\",this)}return this.getNodeStartOffset(t)}offsetToIndex(e){let t=0;for(const n of this._nodes){if(e>=t&&ee.toJSON())}}class Fh extends jh{constructor(e,t,n){super(t);this.name=e;this._children=new Vh;if(n){this._insertChild(0,n)}}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return this.childCount===0}is(e,t=null){if(!t){return e===\"element\"||e===\"model:element\"||e===this.name||e===\"model:\"+this.name||e===\"node\"||e===\"model:node\"}return t===this.name&&(e===\"element\"||e===\"model:element\")}getChild(e){return this._children.getNode(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}offsetToIndex(e){return this._children.offsetToIndex(e)}getNodeByPath(e){let t=this;for(const n of e){t=t.getChild(t.offsetToIndex(n))}return t}toJSON(){const e=super.toJSON();e.name=this.name;if(this._children.length>0){e.children=[];for(const t of this._children){e.children.push(t.toJSON())}}return e}_clone(e=false){const t=e?Array.from(this._children).map(e=>e._clone(true)):null;return new Fh(this.name,this.getAttributes(),t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const n=Hh(t);for(const e of n){if(e.parent!==null){e._remove()}e.parent=this}this._children._insertNodes(e,n)}_removeChildren(e,t=1){const n=this._children._removeNodes(e,t);for(const e of n){e.parent=null}return n}static fromJSON(e){let t=null;if(e.children){t=[];for(const n of e.children){if(n.name){t.push(Fh.fromJSON(n))}else{t.push(zh.fromJSON(n))}}}return new Fh(e.name,e.attributes,t)}}function Hh(e){if(typeof e==\"string\"){return[new zh(e)]}if(!kr(e)){e=[e]}return Array.from(e).map(e=>{if(typeof e==\"string\"){return new zh(e)}if(e instanceof Bh){return new zh(e.data,e.getAttributes())}return e})}class Uh{constructor(e={}){if(!e.boundaries&&!e.startPosition){throw new rr[\"b\"](\"model-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.\",null)}const t=e.direction||\"forward\";if(t!=\"forward\"&&t!=\"backward\"){throw new rr[\"b\"](\"model-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.\",e,{direction:t})}this.direction=t;this.boundaries=e.boundaries||null;if(e.startPosition){this.position=e.startPosition.clone()}else{this.position=$h._createAt(this.boundaries[this.direction==\"backward\"?\"end\":\"start\"])}this.position.stickiness=\"toNone\";this.singleCharacters=!!e.singleCharacters;this.shallow=!!e.shallow;this.ignoreElementEnd=!!e.ignoreElementEnd;this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null;this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null;this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(e){let t,n,i,o;do{i=this.position;o=this._visitedParent;({done:t,value:n}=this.next())}while(!t&&e(n));if(!t){this.position=i;this._visitedParent=o}}next(){if(this.direction==\"forward\"){return this._next()}else{return this._previous()}}_next(){const e=this.position;const t=this.position.clone();const n=this._visitedParent;if(n.parent===null&&t.offset===n.maxOffset){return{done:true}}if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset){return{done:true}}const i=t.parent;const o=qh(t,i);const s=o?o:Yh(t,i,o);if(s instanceof Fh){if(!this.shallow){t.path.push(0);this._visitedParent=s}else{t.offset++}this.position=t;return Wh(\"elementStart\",s,e,t,1)}else if(s instanceof zh){let i;if(this.singleCharacters){i=1}else{let e=s.endOffset;if(this._boundaryEndParent==n&&this.boundaries.end.offsete){e=this.boundaries.start.offset}i=t.offset-e}const o=t.offset-s.startOffset;const r=new Bh(s,o-i,i);t.offset-=i;this.position=t;return Wh(\"text\",r,e,t,i)}else{t.path.pop();this.position=t;this._visitedParent=n.parent;return Wh(\"elementStart\",n,e,t,1)}}}function Wh(e,t,n,i,o){return{done:false,value:{type:e,item:t,previousPosition:n,nextPosition:i,length:o}}}class $h{constructor(e,t,n=\"toNone\"){if(!e.is(\"element\")&&!e.is(\"documentFragment\")){throw new rr[\"b\"](\"model-position-root-invalid: Position root invalid.\",e)}if(!(t instanceof Array)||t.length===0){throw new rr[\"b\"](\"model-position-path-incorrect-format: Position path must be an array with at least one item.\",e,{path:t})}if(e.is(\"rootElement\")){t=t.slice()}else{t=[...e.getPath(),...t];e=e.root}this.root=e;this.path=t;this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(e){this.path[this.path.length-1]=e}get parent(){let e=this.root;for(let t=0;tn.path.length){if(t.offset!==o.maxOffset){return false}t.path=t.path.slice(0,-1);o=o.parent;t.offset++}else{if(n.offset!==0){return false}n.path=n.path.slice(0,-1)}}}is(e){return e===\"position\"||e===\"model:position\"}hasSameParentAs(e){if(this.root!==e.root){return false}const t=this.getParentPath();const n=e.getParentPath();return Rr(t,n)==\"same\"}getTransformedByOperation(e){let t;switch(e.type){case\"insert\":t=this._getTransformedByInsertOperation(e);break;case\"move\":case\"remove\":case\"reinsert\":t=this._getTransformedByMoveOperation(e);break;case\"split\":t=this._getTransformedBySplitOperation(e);break;case\"merge\":t=this._getTransformedByMergeOperation(e);break;default:t=$h._createAt(this);break}return t}_getTransformedByInsertOperation(e){return this._getTransformedByInsertion(e.position,e.howMany)}_getTransformedByMoveOperation(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}_getTransformedBySplitOperation(e){const t=e.movedRange;const n=t.containsPosition(this)||t.start.isEqual(this)&&this.stickiness==\"toNext\";if(n){return this._getCombined(e.splitPosition,e.moveTargetPosition)}else{if(e.graveyardPosition){return this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1)}else{return this._getTransformedByInsertion(e.insertionPosition,1)}}}_getTransformedByMergeOperation(e){const t=e.movedRange;const n=t.containsPosition(this)||t.start.isEqual(this);let i;if(n){i=this._getCombined(e.sourcePosition,e.targetPosition);if(e.sourcePosition.isBefore(e.targetPosition)){i=i._getTransformedByDeletion(e.deletionPosition,1)}}else if(this.isEqual(e.deletionPosition)){i=$h._createAt(e.deletionPosition)}else{i=this._getTransformedByMove(e.deletionPosition,e.graveyardPosition,1)}return i}_getTransformedByDeletion(e,t){const n=$h._createAt(this);if(this.root!=e.root){return n}if(Rr(e.getParentPath(),this.getParentPath())==\"same\"){if(e.offsetthis.offset){return null}else{n.offset-=t}}}else if(Rr(e.getParentPath(),this.getParentPath())==\"prefix\"){const i=e.path.length-1;if(e.offset<=this.path[i]){if(e.offset+t>this.path[i]){return null}else{n.path[i]-=t}}}return n}_getTransformedByInsertion(e,t){const n=$h._createAt(this);if(this.root!=e.root){return n}if(Rr(e.getParentPath(),this.getParentPath())==\"same\"){if(e.offsett+1){const t=i.maxOffset-n.offset;if(t!==0){e.push(new Jh(n,n.getShiftedBy(t)))}n.path=n.path.slice(0,-1);n.offset++;i=i.parent}while(n.path.length<=this.end.path.length){const t=this.end.path[n.path.length-1];const i=t-n.offset;if(i!==0){e.push(new Jh(n,n.getShiftedBy(i)))}n.offset=t;n.path.push(0)}return e}getWalker(e={}){e.boundaries=this;return new Uh(e)}*getItems(e={}){e.boundaries=this;e.ignoreElementEnd=true;const t=new Uh(e);for(const e of t){yield e.item}}*getPositions(e={}){e.boundaries=this;const t=new Uh(e);yield t.position;for(const e of t){yield e.nextPosition}}getTransformedByOperation(e){switch(e.type){case\"insert\":return this._getTransformedByInsertOperation(e);case\"move\":case\"remove\":case\"reinsert\":return this._getTransformedByMoveOperation(e);case\"split\":return[this._getTransformedBySplitOperation(e)];case\"merge\":return[this._getTransformedByMergeOperation(e)]}return[new Jh(this.start,this.end)]}getTransformedByOperations(e){const t=[new Jh(this.start,this.end)];for(const n of e){for(let e=0;e0?new this(n,i):new this(i,n)}static _createIn(e){return new this($h._createAt(e,0),$h._createAt(e,e.maxOffset))}static _createOn(e){return this._createFromPositionAndShift($h._createBefore(e),e.offsetSize)}static _createFromRanges(e){if(e.length===0){throw new rr[\"b\"](\"range-create-from-ranges-empty-array: At least one range has to be passed.\",null)}else if(e.length==1){return e[0].clone()}const t=e[0];e.sort((e,t)=>e.start.isAfter(t.start)?1:-1);const n=e.indexOf(t);const i=new this(t.start,t.end);if(n>0){for(let t=n-1;true;t++){if(e[t].end.isEqual(i.start)){i.start=$h._createAt(e[t].start)}else{break}}}for(let t=n+1;t{if(t.viewPosition){return}const n=this._modelToViewMapping.get(t.modelPosition.parent);t.viewPosition=this._findPositionIn(n,t.modelPosition.offset)},{priority:\"low\"});this.on(\"viewToModelPosition\",(e,t)=>{if(t.modelPosition){return}const n=this.findMappedViewAncestor(t.viewPosition);const i=this._viewToModelMapping.get(n);const o=this._toModelOffset(t.viewPosition.parent,t.viewPosition.offset,n);t.modelPosition=$h._createAt(i,o)},{priority:\"low\"})}bindElements(e,t){this._modelToViewMapping.set(e,t);this._viewToModelMapping.set(t,e)}unbindViewElement(e){const t=this.toModelElement(e);this._viewToModelMapping.delete(e);if(this._elementToMarkerNames.has(e)){for(const t of this._elementToMarkerNames.get(e)){this._unboundMarkerNames.add(t)}}if(this._modelToViewMapping.get(t)==e){this._modelToViewMapping.delete(t)}}unbindModelElement(e){const t=this.toViewElement(e);this._modelToViewMapping.delete(e);if(this._viewToModelMapping.get(t)==e){this._viewToModelMapping.delete(t)}}bindElementToMarker(e,t){const n=this._markerNameToElements.get(t)||new Set;n.add(e);const i=this._elementToMarkerNames.get(e)||new Set;i.add(t);this._markerNameToElements.set(t,n);this._elementToMarkerNames.set(e,i)}unbindElementFromMarkerName(e,t){const n=this._markerNameToElements.get(t);if(n){n.delete(e);if(n.size==0){this._markerNameToElements.delete(t)}}const i=this._elementToMarkerNames.get(e);if(i){i.delete(t);if(i.size==0){this._elementToMarkerNames.delete(e)}}}flushUnboundMarkerNames(){const e=Array.from(this._unboundMarkerNames);this._unboundMarkerNames.clear();return e}clearBindings(){this._modelToViewMapping=new WeakMap;this._viewToModelMapping=new WeakMap;this._markerNameToElements=new Map;this._elementToMarkerNames=new Map;this._unboundMarkerNames=new Set}toModelElement(e){return this._viewToModelMapping.get(e)}toViewElement(e){return this._modelToViewMapping.get(e)}toModelRange(e){return new Jh(this.toModelPosition(e.start),this.toModelPosition(e.end))}toViewRange(e){return new hl(this.toViewPosition(e.start),this.toViewPosition(e.end))}toModelPosition(e){const t={viewPosition:e,mapper:this};this.fire(\"viewToModelPosition\",t);return t.modelPosition}toViewPosition(e,t={isPhantom:false}){const n={modelPosition:e,mapper:this,isPhantom:t.isPhantom};this.fire(\"modelToViewPosition\",n);return n.viewPosition}markerNameToElements(e){const t=this._markerNameToElements.get(e);if(!t){return null}const n=new Set;for(const e of t){if(e.is(\"attributeElement\")){for(const t of e.getElementsWithSameId()){n.add(t)}}else{n.add(e)}}return n}registerViewToModelLength(e,t){this._viewToModelLengthCallbacks.set(e,t)}findMappedViewAncestor(e){let t=e.parent;while(!this._viewToModelMapping.has(t)){t=t.parent}return t}_toModelOffset(e,t,n){if(n!=e){const i=this._toModelOffset(e.parent,e.index,n);const o=this._toModelOffset(e,t,e);return i+o}if(e.is(\"text\")){return t}let i=0;for(let n=0;n1?t[0]+\":\"+t[1]:t[0]}class Zh{constructor(e){this.conversionApi=$c({dispatcher:this},e)}convertChanges(e,t,n){for(const t of e.getMarkersToRemove()){this.convertMarkerRemove(t.name,t.range,n)}for(const t of e.getChanges()){if(t.type==\"insert\"){this.convertInsert(Jh._createFromPositionAndShift(t.position,t.length),n)}else if(t.type==\"remove\"){this.convertRemove(t.position,t.length,t.name,n)}else{this.convertAttribute(t.range,t.attributeKey,t.attributeOldValue,t.attributeNewValue,n)}}for(const e of this.conversionApi.mapper.flushUnboundMarkerNames()){const i=t.get(e).getRange();this.convertMarkerRemove(e,i,n);this.convertMarkerAdd(e,i,n)}for(const t of e.getMarkersToAdd()){this.convertMarkerAdd(t.name,t.range,n)}}convertInsert(e,t){this.conversionApi.writer=t;this.conversionApi.consumable=this._createInsertConsumable(e);for(const t of e){const e=t.item;const n=Jh._createFromPositionAndShift(t.previousPosition,t.length);const i={item:e,range:n};this._testAndFire(\"insert\",i);for(const t of e.getAttributeKeys()){i.attributeKey=t;i.attributeOldValue=null;i.attributeNewValue=e.getAttribute(t);this._testAndFire(`attribute:${t}`,i)}}this._clearConversionApi()}convertRemove(e,t,n,i){this.conversionApi.writer=i;this.fire(\"remove:\"+n,{position:e,length:t},this.conversionApi);this._clearConversionApi()}convertAttribute(e,t,n,i,o){this.conversionApi.writer=o;this.conversionApi.consumable=this._createConsumableForRange(e,`attribute:${t}`);for(const o of e){const e=o.item;const s=Jh._createFromPositionAndShift(o.previousPosition,o.length);const r={item:e,range:s,attributeKey:t,attributeOldValue:n,attributeNewValue:i};this._testAndFire(`attribute:${t}`,r)}this._clearConversionApi()}convertSelection(e,t,n){const i=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));this.conversionApi.writer=n;this.conversionApi.consumable=this._createSelectionConsumable(e,i);this.fire(\"selection\",{selection:e},this.conversionApi);if(!e.isCollapsed){return}for(const t of i){const n=t.getRange();if(!ef(e.getFirstPosition(),t,this.conversionApi.mapper)){continue}const i={item:e,markerName:t.name,markerRange:n};if(this.conversionApi.consumable.test(e,\"addMarker:\"+t.name)){this.fire(\"addMarker:\"+t.name,i,this.conversionApi)}}for(const t of e.getAttributeKeys()){const n={item:e,range:e.getFirstRange(),attributeKey:t,attributeOldValue:null,attributeNewValue:e.getAttribute(t)};if(this.conversionApi.consumable.test(e,\"attribute:\"+n.attributeKey)){this.fire(\"attribute:\"+n.attributeKey+\":$text\",n,this.conversionApi)}}this._clearConversionApi()}convertMarkerAdd(e,t,n){if(!t.root.document||t.root.rootName==\"$graveyard\"){return}this.conversionApi.writer=n;const i=\"addMarker:\"+e;const o=new Qh;o.add(t,i);this.conversionApi.consumable=o;this.fire(i,{markerName:e,markerRange:t},this.conversionApi);if(!o.test(t,i)){return}this.conversionApi.consumable=this._createConsumableForRange(t,i);for(const n of t.getItems()){if(!this.conversionApi.consumable.test(n,i)){continue}const o={item:n,range:Jh._createOn(n),markerName:e,markerRange:t};this.fire(i,o,this.conversionApi)}this._clearConversionApi()}convertMarkerRemove(e,t,n){if(!t.root.document||t.root.rootName==\"$graveyard\"){return}this.conversionApi.writer=n;this.fire(\"removeMarker:\"+e,{markerName:e,markerRange:t},this.conversionApi);this._clearConversionApi()}_createInsertConsumable(e){const t=new Qh;for(const n of e){const e=n.item;t.add(e,\"insert\");for(const n of e.getAttributeKeys()){t.add(e,\"attribute:\"+n)}}return t}_createConsumableForRange(e,t){const n=new Qh;for(const i of e.getItems()){n.add(i,t)}return n}_createSelectionConsumable(e,t){const n=new Qh;n.add(e,\"selection\");for(const i of t){n.add(e,\"addMarker:\"+i.name)}for(const t of e.getAttributeKeys()){n.add(e,\"attribute:\"+t)}return n}_testAndFire(e,t){if(!this.conversionApi.consumable.test(t.item,e)){return}const n=t.item.name||\"$text\";this.fire(e+\":\"+n,t,this.conversionApi)}_clearConversionApi(){delete this.conversionApi.writer;delete this.conversionApi.consumable}}yr(Zh,dr);function ef(e,t,n){const i=t.getRange();const o=Array.from(e.getAncestors());o.shift();o.reverse();const s=o.some(e=>{if(i.containsItem(e)){const t=n.toViewElement(e);return!!t.getCustomProperty(\"addHighlight\")}});return!s}class tf{constructor(e,t,n){this._lastRangeBackward=false;this._ranges=[];this._attrs=new Map;if(e){this.setTo(e,t,n)}}get anchor(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}get focus(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}get isCollapsed(){const e=this._ranges.length;if(e===1){return this._ranges[0].isCollapsed}else{return false}}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(e){if(this.rangeCount!=e.rangeCount){return false}else if(this.rangeCount===0){return true}if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus)){return false}for(const t of this._ranges){let n=false;for(const i of e._ranges){if(t.isEqual(i)){n=true;break}}if(!n){return false}}return true}*getRanges(){for(const e of this._ranges){yield new Jh(e.start,e.end)}}getFirstRange(){let e=null;for(const t of this._ranges){if(!e||t.start.isBefore(e.start)){e=t}}return e?new Jh(e.start,e.end):null}getLastRange(){let e=null;for(const t of this._ranges){if(!e||t.end.isAfter(e.end)){e=t}}return e?new Jh(e.start,e.end):null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}setTo(e,t,n){if(e===null){this._setRanges([])}else if(e instanceof tf){this._setRanges(e.getRanges(),e.isBackward)}else if(e&&typeof e.getRanges==\"function\"){this._setRanges(e.getRanges(),e.isBackward)}else if(e instanceof Jh){this._setRanges([e],!!t&&!!t.backward)}else if(e instanceof $h){this._setRanges([new Jh(e)])}else if(e instanceof jh){const i=!!n&&!!n.backward;let o;if(t==\"in\"){o=Jh._createIn(e)}else if(t==\"on\"){o=Jh._createOn(e)}else if(t!==undefined){o=new Jh($h._createAt(e,t))}else{throw new rr[\"b\"](\"model-selection-setTo-required-second-parameter: \"+\"selection.setTo requires the second parameter when the first parameter is a node.\",[this,e])}this._setRanges([o],i)}else if(kr(e)){this._setRanges(e,t&&!!t.backward)}else{throw new rr[\"b\"](\"model-selection-setTo-not-selectable: Cannot set the selection to the given place.\",[this,e])}}_setRanges(e,t=false){e=Array.from(e);const n=e.some(t=>{if(!(t instanceof Jh)){throw new rr[\"b\"](\"model-selection-set-ranges-not-range: \"+\"Selection range set to an object that is not an instance of model.Range.\",[this,e])}return this._ranges.every(e=>!e.isEqual(t))});if(e.length===this._ranges.length&&!n){return}this._removeAllRanges();for(const t of e){this._pushRange(t)}this._lastRangeBackward=!!t;this.fire(\"change:range\",{directChange:true})}setFocus(e,t){if(this.anchor===null){throw new rr[\"b\"](\"model-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.\",[this,e])}const n=$h._createAt(e,t);if(n.compareWith(this.focus)==\"same\"){return}const i=this.anchor;if(this._ranges.length){this._popRange()}if(n.compareWith(i)==\"before\"){this._pushRange(new Jh(n,i));this._lastRangeBackward=true}else{this._pushRange(new Jh(i,n));this._lastRangeBackward=false}this.fire(\"change:range\",{directChange:true})}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(e){return this._attrs.has(e)}removeAttribute(e){if(this.hasAttribute(e)){this._attrs.delete(e);this.fire(\"change:attribute\",{attributeKeys:[e],directChange:true})}}setAttribute(e,t){if(this.getAttribute(e)!==t){this._attrs.set(e,t);this.fire(\"change:attribute\",{attributeKeys:[e],directChange:true})}}getSelectedElement(){if(this.rangeCount!==1){return null}return this.getFirstRange().getContainedElement()}is(e){return e===\"selection\"||e===\"model:selection\"}*getSelectedBlocks(){const e=new WeakSet;for(const t of this.getRanges()){const n=sf(t.start,e);if(n&&rf(n,t)){yield n}for(const n of t.getWalker()){const i=n.item;if(n.type==\"elementEnd\"&&of(i,e,t)){yield i}}const i=sf(t.end,e);if(i&&!t.end.isTouching($h._createAt(i,0))&&rf(i,t)){yield i}}}containsEntireContent(e=this.anchor.root){const t=$h._createAt(e,0);const n=$h._createAt(e,\"end\");return t.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(e){this._checkRange(e);this._ranges.push(new Jh(e.start,e.end))}_checkRange(e){for(let t=0;t0){this._popRange()}}_popRange(){this._ranges.pop()}}yr(tf,dr);function nf(e,t){if(t.has(e)){return false}t.add(e);return e.root.document.model.schema.isBlock(e)&&e.parent}function of(e,t,n){return nf(e,t)&&rf(e,n)}function sf(e,t){const n=e.parent;const i=n.root.document.model.schema;const o=e.parent.getAncestors({parentFirst:true,includeSelf:true});let s=false;const r=o.find(e=>{if(s){return false}s=i.isLimit(e);return!s&&nf(e,t)});o.forEach(e=>t.add(e));return r}function rf(e,t){const n=af(e);if(!n){return true}const i=t.containsRange(Jh._createOn(n),true);return!i}function af(e){const t=e.root.document.model.schema;let n=e.parent;while(n){if(t.isBlock(n)){return n}n=n.parent}}class cf extends Jh{constructor(e,t){super(e,t);lf.call(this)}detach(){this.stopListening()}is(e){return e===\"liveRange\"||e===\"model:liveRange\"||e==\"range\"||e===\"model:range\"}toRange(){return new Jh(this.start,this.end)}static fromRange(e){return new cf(e.start,e.end)}}function lf(){this.listenTo(this.root.document.model,\"applyOperation\",(e,t)=>{const n=t[0];if(!n.isDocumentOperation){return}df.call(this,n)},{priority:\"low\"})}function df(e){const t=this.getTransformedByOperation(e);const n=Jh._createFromRanges(t);const i=!n.isEqual(this);const o=uf(this,e);let s=null;if(i){if(n.root.rootName==\"$graveyard\"){if(e.type==\"remove\"){s=e.sourcePosition}else{s=e.deletionPosition}}const t=this.toRange();this.start=n.start;this.end=n.end;this.fire(\"change:range\",t,{deletionPosition:s})}else if(o){this.fire(\"change:content\",this.toRange(),{deletionPosition:s})}}function uf(e,t){switch(t.type){case\"insert\":return e.containsPosition(t.position);case\"move\":case\"remove\":case\"reinsert\":case\"merge\":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case\"split\":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return false}yr(cf,dr);const hf=\"selection:\";class ff{constructor(e){this._selection=new mf(e);this._selection.delegate(\"change:range\").to(this);this._selection.delegate(\"change:attribute\").to(this);this._selection.delegate(\"change:marker\").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(e){return this._selection.containsEntireContent(e)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(e){return this._selection.getAttribute(e)}hasAttribute(e){return this._selection.hasAttribute(e)}refresh(){this._selection._updateMarkers();this._selection._updateAttributes(false)}is(e){return e===\"selection\"||e==\"model:selection\"||e==\"documentSelection\"||e==\"model:documentSelection\"}_setFocus(e,t){this._selection.setFocus(e,t)}_setTo(e,t,n){this._selection.setTo(e,t,n)}_setAttribute(e,t){this._selection.setAttribute(e,t)}_removeAttribute(e){this._selection.removeAttribute(e)}_getStoredAttributes(){return this._selection._getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(e){this._selection.restoreGravity(e)}static _getStoreAttributeKey(e){return hf+e}static _isStoreAttributeKey(e){return e.startsWith(hf)}}yr(ff,dr);class mf extends tf{constructor(e){super();this.markers=new xr({idProperty:\"name\"});this._model=e.model;this._document=e;this._attributePriority=new Map;this._fixGraveyardRangesData=[];this._hasChangedRange=false;this._overriddenGravityRegister=new Set;this.listenTo(this._model,\"applyOperation\",(e,t)=>{const n=t[0];if(!n.isDocumentOperation||n.type==\"marker\"||n.type==\"rename\"||n.type==\"noop\"){return}while(this._fixGraveyardRangesData.length){const{liveRange:e,sourcePosition:t}=this._fixGraveyardRangesData.shift();this._fixGraveyardSelection(e,t)}if(this._hasChangedRange){this._hasChangedRange=false;this.fire(\"change:range\",{directChange:false})}},{priority:\"lowest\"});this.on(\"change:range\",()=>{for(const e of this.getRanges()){if(!this._document._validateSelectionRange(e)){throw new rr[\"b\"](\"document-selection-wrong-position: Range from document selection starts or ends at incorrect position.\",this,{range:e})}}});this.listenTo(this._model.markers,\"update\",()=>this._updateMarkers());this.listenTo(this._document,\"change\",(e,t)=>{pf(this._model,t)})}get isCollapsed(){const e=this._ranges.length;return e===0?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let e=0;e{this._hasChangedRange=true;if(t.root==this._document.graveyard){this._fixGraveyardRangesData.push({liveRange:t,sourcePosition:i.deletionPosition})}});return t}_updateMarkers(){const e=[];let t=false;for(const t of this._model.markers){const n=t.getRange();for(const i of this.getRanges()){if(n.containsRange(i,!i.isCollapsed)){e.push(t)}}}const n=Array.from(this.markers);for(const n of e){if(!this.markers.has(n)){this.markers.add(n);t=true}}for(const n of Array.from(this.markers)){if(!e.includes(n)){this.markers.remove(n);t=true}}if(t){this.fire(\"change:marker\",{oldMarkers:n,directChange:false})}}_updateAttributes(e){const t=Ur(this._getSurroundingAttributes());const n=Ur(this.getAttributes());if(e){this._attributePriority=new Map;this._attrs=new Map}else{for(const[e,t]of this._attributePriority){if(t==\"low\"){this._attrs.delete(e);this._attributePriority.delete(e)}}}this._setAttributesTo(t);const i=[];for(const[e,t]of this.getAttributes()){if(!n.has(e)||n.get(e)!==t){i.push(e)}}for(const[e]of n){if(!this.hasAttribute(e)){i.push(e)}}if(i.length>0){this.fire(\"change:attribute\",{attributeKeys:i,directChange:false})}}_setAttribute(e,t,n=true){const i=n?\"normal\":\"low\";if(i==\"low\"&&this._attributePriority.get(e)==\"normal\"){return false}const o=super.getAttribute(e);if(o===t){return false}this._attrs.set(e,t);this._attributePriority.set(e,i);return true}_removeAttribute(e,t=true){const n=t?\"normal\":\"low\";if(n==\"low\"&&this._attributePriority.get(e)==\"normal\"){return false}this._attributePriority.set(e,n);if(!super.hasAttribute(e)){return false}this._attrs.delete(e);return true}_setAttributesTo(e){const t=new Set;for(const[t,n]of this.getAttributes()){if(e.get(t)===n){continue}this._removeAttribute(t,false)}for(const[n,i]of e){const e=this._setAttribute(n,i,false);if(e){t.add(n)}}return t}*_getStoredAttributes(){const e=this.getFirstPosition().parent;if(this.isCollapsed&&e.isEmpty){for(const t of e.getAttributeKeys()){if(t.startsWith(hf)){const n=t.substr(hf.length);yield[n,e.getAttribute(t)]}}}}_getSurroundingAttributes(){const e=this.getFirstPosition();const t=this._model.schema;let n=null;if(!this.isCollapsed){const e=this.getFirstRange();for(const i of e){if(i.item.is(\"element\")&&t.isObject(i.item)){break}if(i.type==\"text\"){n=i.item.getAttributes();break}}}else{const t=e.textNode?e.textNode:e.nodeBefore;const i=e.textNode?e.textNode:e.nodeAfter;if(!this.isGravityOverridden){n=gf(t)}if(!n){n=gf(i)}if(!this.isGravityOverridden&&!n){let e=t;while(e&&!n){e=e.previousSibling;n=gf(e)}}if(!n){let e=i;while(e&&!n){e=e.nextSibling;n=gf(e)}}if(!n){n=this._getStoredAttributes()}}return n}_fixGraveyardSelection(e,t){const n=t.clone();const i=this._model.schema.getNearestSelectionRange(n);const o=this._ranges.indexOf(e);this._ranges.splice(o,1);e.detach();if(i&&!bf(i,this)){const e=this._prepareRange(i);this._ranges.splice(o,0,e)}}}function gf(e){if(e instanceof Bh||e instanceof zh){return e.getAttributes()}return null}function pf(e,t){const n=e.document.differ;for(const i of n.getChanges()){if(i.type!=\"insert\"){continue}const n=i.position.parent;const o=i.length===n.maxOffset;if(o){e.enqueueChange(t,e=>{const t=Array.from(n.getAttributeKeys()).filter(e=>e.startsWith(hf));for(const i of t){e.removeAttribute(i,n)}})}}}function bf(e,t){return!t._ranges.every(t=>!e.isEqual(t))}class wf{constructor(e){this._dispatchers=e}add(e){for(const t of this._dispatchers){e(t)}return this}}var _f=1,vf=4;function kf(e){return Hs(e,_f|vf)}var yf=kf;class xf extends wf{elementToElement(e){return this.add(zf(e))}attributeToElement(e){return this.add(Bf(e))}attributeToAttribute(e){return this.add(Vf(e))}markerToElement(e){return this.add(Ff(e))}markerToHighlight(e){return this.add(Hf(e))}}function Af(){return(e,t,n)=>{if(!n.consumable.consume(t.item,\"insert\")){return}const i=n.writer;const o=n.mapper.toViewPosition(t.range.start);const s=i.createText(t.item.data);i.insert(o,s)}}function Cf(){return(e,t,n)=>{const i=n.mapper.toViewPosition(t.position);const o=t.position.getShiftedBy(t.length);const s=n.mapper.toViewPosition(o,{isPhantom:true});const r=n.writer.createRange(i,s);const a=n.writer.remove(r.getTrimmed());for(const e of n.writer.createRangeIn(a).getItems()){n.mapper.unbindViewElement(e)}}}function Tf(e,t){const n=e.createAttributeElement(\"span\",t.attributes);if(t.classes){n._addClass(t.classes)}if(t.priority){n._priority=t.priority}n._id=t.id;return n}function Mf(){return(e,t,n)=>{const i=t.selection;if(i.isCollapsed){return}if(!n.consumable.consume(i,\"selection\")){return}const o=[];for(const e of i.getRanges()){const t=n.mapper.toViewRange(e);o.push(t)}n.writer.setSelection(o,{backward:i.isBackward})}}function Ef(){return(e,t,n)=>{const i=t.selection;if(!i.isCollapsed){return}if(!n.consumable.consume(i,\"selection\")){return}const o=n.writer;const s=i.getFirstPosition();const r=n.mapper.toViewPosition(s);const a=o.breakAttributes(r);o.setSelection(a)}}function Pf(){return(e,t,n)=>{const i=n.writer;const o=i.document.selection;for(const e of o.getRanges()){if(e.isCollapsed){if(e.end.parent.isAttached()){n.writer.mergeAttributes(e.start)}}}i.setSelection(null)}}function Sf(e){return(t,n,i)=>{const o=e(n.attributeOldValue,i.writer);const s=e(n.attributeNewValue,i.writer);if(!o&&!s){return}if(!i.consumable.consume(n.item,t.name)){return}const r=i.writer;const a=r.document.selection;if(n.item instanceof tf||n.item instanceof ff){r.wrap(a.getFirstRange(),s)}else{let e=i.mapper.toViewRange(n.range);if(n.attributeOldValue!==null&&o){e=r.unwrap(e,o)}if(n.attributeNewValue!==null&&s){r.wrap(e,s)}}}}function If(e){return(t,n,i)=>{const o=e(n.item,i.writer);if(!o){return}if(!i.consumable.consume(n.item,\"insert\")){return}const s=i.mapper.toViewPosition(n.range.start);i.mapper.bindElements(n.item,o);i.writer.insert(s,o)}}function Of(e){return(t,n,i)=>{n.isOpening=true;const o=e(n,i.writer);n.isOpening=false;const s=e(n,i.writer);if(!o||!s){return}const r=n.markerRange;if(r.isCollapsed&&!i.consumable.consume(r,t.name)){return}for(const e of r){if(!i.consumable.consume(e.item,t.name)){return}}const a=i.mapper;const c=i.writer;c.insert(a.toViewPosition(r.start),o);i.mapper.bindElementToMarker(o,n.markerName);if(!r.isCollapsed){c.insert(a.toViewPosition(r.end),s);i.mapper.bindElementToMarker(s,n.markerName)}t.stop()}}function Nf(){return(e,t,n)=>{const i=n.mapper.markerNameToElements(t.markerName);if(!i){return}for(const e of i){n.mapper.unbindElementFromMarkerName(e,t.markerName);n.writer.clear(n.writer.createRangeOn(e),e)}n.writer.clearClonedElementsGroup(t.markerName);e.stop()}}function Lf(e){return(t,n,i)=>{const o=e(n.attributeOldValue,n);const s=e(n.attributeNewValue,n);if(!o&&!s){return}if(!i.consumable.consume(n.item,t.name)){return}const r=i.mapper.toViewElement(n.item);const a=i.writer;if(!r){throw new rr[\"b\"](\"conversion-attribute-to-attribute-on-text: \"+\"Trying to convert text node's attribute with attribute-to-attribute converter.\",[n,i])}if(n.attributeOldValue!==null&&o){if(o.key==\"class\"){const e=Array.isArray(o.value)?o.value:[o.value];for(const t of e){a.removeClass(t,r)}}else if(o.key==\"style\"){const e=Object.keys(o.value);for(const t of e){a.removeStyle(t,r)}}else{a.removeAttribute(o.key,r)}}if(n.attributeNewValue!==null&&s){if(s.key==\"class\"){const e=Array.isArray(s.value)?s.value:[s.value];for(const t of e){a.addClass(t,r)}}else if(s.key==\"style\"){const e=Object.keys(s.value);for(const t of e){a.setStyle(t,s.value[t],r)}}else{a.setAttribute(s.key,s.value,r)}}}}function Rf(e){return(t,n,i)=>{if(!n.item){return}if(!(n.item instanceof tf||n.item instanceof ff)&&!n.item.is(\"textProxy\")){return}const o=Yf(e,n,i);if(!o){return}if(!i.consumable.consume(n.item,t.name)){return}const s=i.writer;const r=Tf(s,o);const a=s.document.selection;if(n.item instanceof tf||n.item instanceof ff){s.wrap(a.getFirstRange(),r,a)}else{const e=i.mapper.toViewRange(n.range);const t=s.wrap(e,r);for(const e of t.getItems()){if(e.is(\"attributeElement\")&&e.isSimilar(r)){i.mapper.bindElementToMarker(e,n.markerName);break}}}}}function Df(e){return(t,n,i)=>{if(!n.item){return}if(!(n.item instanceof Fh)){return}const o=Yf(e,n,i);if(!o){return}if(!i.consumable.test(n.item,t.name)){return}const s=i.mapper.toViewElement(n.item);if(s&&s.getCustomProperty(\"addHighlight\")){i.consumable.consume(n.item,t.name);for(const e of Jh._createIn(n.item)){i.consumable.consume(e.item,t.name)}s.getCustomProperty(\"addHighlight\")(s,o,i.writer);i.mapper.bindElementToMarker(s,n.markerName)}}}function jf(e){return(t,n,i)=>{if(n.markerRange.isCollapsed){return}const o=Yf(e,n,i);if(!o){return}const s=Tf(i.writer,o);const r=i.mapper.markerNameToElements(n.markerName);if(!r){return}for(const e of r){i.mapper.unbindElementFromMarkerName(e,n.markerName);if(e.is(\"attributeElement\")){i.writer.unwrap(i.writer.createRangeOn(e),s)}else{e.getCustomProperty(\"removeHighlight\")(e,o.id,i.writer)}}i.writer.clearClonedElementsGroup(n.markerName);t.stop()}}function zf(e){e=yf(e);e.view=Uf(e.view,\"container\");return t=>{t.on(\"insert:\"+e.model,If(e.view),{priority:e.converterPriority||\"normal\"})}}function Bf(e){e=yf(e);const t=e.model.key?e.model.key:e.model;let n=\"attribute:\"+t;if(e.model.name){n+=\":\"+e.model.name}if(e.model.values){for(const t of e.model.values){e.view[t]=Uf(e.view[t],\"attribute\")}}else{e.view=Uf(e.view,\"attribute\")}const i=$f(e);return t=>{t.on(n,Sf(i),{priority:e.converterPriority||\"normal\"})}}function Vf(e){e=yf(e);const t=e.model.key?e.model.key:e.model;let n=\"attribute:\"+t;if(e.model.name){n+=\":\"+e.model.name}if(e.model.values){for(const t of e.model.values){e.view[t]=qf(e.view[t])}}else{e.view=qf(e.view)}const i=$f(e);return t=>{t.on(n,Lf(i),{priority:e.converterPriority||\"normal\"})}}function Ff(e){e=yf(e);e.view=Uf(e.view,\"ui\");return t=>{t.on(\"addMarker:\"+e.model,Of(e.view),{priority:e.converterPriority||\"normal\"});t.on(\"removeMarker:\"+e.model,Nf(e.view),{priority:e.converterPriority||\"normal\"})}}function Hf(e){return t=>{t.on(\"addMarker:\"+e.model,Rf(e.view),{priority:e.converterPriority||\"normal\"});t.on(\"addMarker:\"+e.model,Df(e.view),{priority:e.converterPriority||\"normal\"});t.on(\"removeMarker:\"+e.model,jf(e.view),{priority:e.converterPriority||\"normal\"})}}function Uf(e,t){if(typeof e==\"function\"){return e}return(n,i)=>Wf(e,i,t)}function Wf(e,t,n){if(typeof e==\"string\"){e={name:e}}let i;const o=Object.assign({},e.attributes);if(n==\"container\"){i=t.createContainerElement(e.name,o)}else if(n==\"attribute\"){const n={priority:e.priority||_l.DEFAULT_PRIORITY};i=t.createAttributeElement(e.name,o,n)}else{i=t.createUIElement(e.name,o)}if(e.styles){const n=Object.keys(e.styles);for(const o of n){t.setStyle(o,e.styles[o],i)}}if(e.classes){const n=e.classes;if(typeof n==\"string\"){t.addClass(n,i)}else{for(const e of n){t.addClass(e,i)}}}return i}function $f(e){if(e.model.values){return(t,n)=>{const i=e.view[t];if(i){return i(t,n)}return null}}else{return e.view}}function qf(e){if(typeof e==\"string\"){return t=>({key:e,value:t})}else if(typeof e==\"object\"){if(e.value){return()=>e}else{return t=>({key:e.key,value:t})}}else{return e}}function Yf(e,t,n){const i=typeof e==\"function\"?e(t,n):e;if(!i){return null}if(!i.priority){i.priority=10}if(!i.id){i.id=t.markerName}return i}class Gf extends wf{elementToElement(e){return this.add(Xf(e))}elementToAttribute(e){return this.add(Zf(e))}attributeToAttribute(e){return this.add(em(e))}elementToMarker(e){return this.add(tm(e))}}function Jf(){return(e,t,n)=>{if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:true})){const{modelRange:e,modelCursor:i}=n.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e;t.modelCursor=i}}}function Kf(){return(e,t,n)=>{if(n.schema.checkChild(t.modelCursor,\"$text\")){if(n.consumable.consume(t.viewItem)){const e=n.writer.createText(t.viewItem.data);n.writer.insert(e,t.modelCursor);t.modelRange=Jh._createFromPositionAndShift(t.modelCursor,e.offsetSize);t.modelCursor=t.modelRange.end}}}}function Qf(e,t){return(n,i)=>{const o=i.newSelection;const s=new tf;const r=[];for(const e of o.getRanges()){r.push(t.toModelRange(e))}s.setTo(r,{backward:o.isBackward});if(!s.isEqual(e.document.selection)){e.change(e=>{e.setSelection(s)})}}}function Xf(e){e=yf(e);const t=im(e);const n=nm(e.view);const i=n?\"element:\"+n:\"element\";return n=>{n.on(i,t,{priority:e.converterPriority||\"normal\"})}}function Zf(e){e=yf(e);rm(e);const t=am(e,false);const n=nm(e.view);const i=n?\"element:\"+n:\"element\";return n=>{n.on(i,t,{priority:e.converterPriority||\"low\"})}}function em(e){e=yf(e);let t=null;if(typeof e.view==\"string\"||e.view.key){t=sm(e)}rm(e,t);const n=am(e,true);return t=>{t.on(\"element\",n,{priority:e.converterPriority||\"low\"})}}function tm(e){e=yf(e);dm(e);return Xf(e)}function nm(e){if(typeof e==\"string\"){return e}if(typeof e==\"object\"&&typeof e.name==\"string\"){return e.name}return null}function im(e){const t=e.view?new Wr(e.view):null;return(n,i,o)=>{let s={};if(t){const e=t.match(i.viewItem);if(!e){return}s=e.match}s.name=true;const r=om(e.model,i.viewItem,o.writer);if(!r){return}if(!o.consumable.test(i.viewItem,s)){return}const a=o.splitToAllowedParent(r,i.modelCursor);if(!a){return}o.writer.insert(r,a.position);o.convertChildren(i.viewItem,o.writer.createPositionAt(r,0));o.consumable.consume(i.viewItem,s);const c=o.getSplitParts(r);i.modelRange=new Jh(o.writer.createPositionBefore(r),o.writer.createPositionAfter(c[c.length-1]));if(a.cursorParent){i.modelCursor=o.writer.createPositionAt(a.cursorParent,0)}else{i.modelCursor=i.modelRange.end}}}function om(e,t,n){if(e instanceof Function){return e(t,n)}else{return n.createElement(e)}}function sm(e){if(typeof e.view==\"string\"){e.view={key:e.view}}const t=e.view.key;let n;if(t==\"class\"||t==\"style\"){const i=t==\"class\"?\"classes\":\"styles\";n={[i]:e.view.value}}else{const i=typeof e.view.value==\"undefined\"?/[\\s\\S]*/:e.view.value;n={attributes:{[t]:i}}}if(e.view.name){n.name=e.view.name}e.view=n;return t}function rm(e,t=null){const n=t===null?true:e=>e.getAttribute(t);const i=typeof e.model!=\"object\"?e.model:e.model.key;const o=typeof e.model!=\"object\"||typeof e.model.value==\"undefined\"?n:e.model.value;e.model={key:i,value:o}}function am(e,t){const n=new Wr(e.view);return(i,o,s)=>{const r=n.match(o.viewItem);if(!r){return}const a=e.model.key;const c=typeof e.model.value==\"function\"?e.model.value(o.viewItem):e.model.value;if(c===null){return}if(cm(e.view,o.viewItem)){r.match.name=true}else{delete r.match.name}if(!s.consumable.test(o.viewItem,r.match)){return}if(!o.modelRange){o=Object.assign(o,s.convertChildren(o.viewItem,o.modelCursor))}const l=lm(o.modelRange,{key:a,value:c},t,s);if(l){s.consumable.consume(o.viewItem,r.match)}}}function cm(e,t){const n=typeof e==\"function\"?e(t):e;if(typeof n==\"object\"&&!nm(n)){return false}return!n.classes&&!n.attributes&&!n.styles}function lm(e,t,n,i){let o=false;for(const s of Array.from(e.getItems({shallow:n}))){if(i.schema.checkAttribute(s,t.key)){i.writer.setAttribute(t.key,t.value,s);o=true}}return o}function dm(e){const t=e.model;e.model=(e,n)=>{const i=typeof t==\"string\"?t:t(e);return n.createElement(\"$marker\",{\"data-name\":i})}}class um{constructor(e,t){this.model=e;this.view=new Dh(t);this.mapper=new Kh;this.downcastDispatcher=new Zh({mapper:this.mapper});const n=this.model.document;const i=n.selection;const o=this.model.markers;this.listenTo(this.model,\"_beforeChanges\",()=>{this.view._disableRendering(true)},{priority:\"highest\"});this.listenTo(this.model,\"_afterChanges\",()=>{this.view._disableRendering(false)},{priority:\"lowest\"});this.listenTo(n,\"change\",()=>{this.view.change(e=>{this.downcastDispatcher.convertChanges(n.differ,o,e);this.downcastDispatcher.convertSelection(i,o,e)})},{priority:\"low\"});this.listenTo(this.view.document,\"selectionChange\",Qf(this.model,this.mapper));this.downcastDispatcher.on(\"insert:$text\",Af(),{priority:\"lowest\"});this.downcastDispatcher.on(\"remove\",Cf(),{priority:\"low\"});this.downcastDispatcher.on(\"selection\",Pf(),{priority:\"low\"});this.downcastDispatcher.on(\"selection\",Mf(),{priority:\"low\"});this.downcastDispatcher.on(\"selection\",Ef(),{priority:\"low\"});this.view.document.roots.bindTo(this.model.document.roots).using(e=>{if(e.rootName==\"$graveyard\"){return null}const t=new ll(this.view.document,e.name);t.rootName=e.rootName;this.mapper.bindElements(e,t);return t})}destroy(){this.view.destroy();this.stopListening()}}yr(um,Kc);class hm{constructor(){this._commands=new Map}add(e,t){this._commands.set(e,t)}get(e){return this._commands.get(e)}execute(e,...t){const n=this.get(e);if(!n){throw new rr[\"b\"](\"commandcollection-command-not-found: Command does not exist.\",this,{commandName:e})}n.execute(...t)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const e of this.commands()){e.destroy()}}}class fm{constructor(){this._consumables=new Map}add(e,t){let n;if(e.is(\"text\")||e.is(\"documentFragment\")){this._consumables.set(e,true);return}if(!this._consumables.has(e)){n=new mm(e);this._consumables.set(e,n)}else{n=this._consumables.get(e)}n.add(t)}test(e,t){const n=this._consumables.get(e);if(n===undefined){return null}if(e.is(\"text\")||e.is(\"documentFragment\")){return n}return n.test(t)}consume(e,t){if(this.test(e,t)){if(e.is(\"text\")||e.is(\"documentFragment\")){this._consumables.set(e,false)}else{this._consumables.get(e).consume(t)}return true}return false}revert(e,t){const n=this._consumables.get(e);if(n!==undefined){if(e.is(\"text\")||e.is(\"documentFragment\")){this._consumables.set(e,true)}else{n.revert(t)}}}static consumablesFromElement(e){const t={element:e,name:true,attributes:[],classes:[],styles:[]};const n=e.getAttributeKeys();for(const e of n){if(e==\"style\"||e==\"class\"){continue}t.attributes.push(e)}const i=e.getClassNames();for(const e of i){t.classes.push(e)}const o=e.getStyleNames();for(const e of o){t.styles.push(e)}return t}static createFrom(e,t){if(!t){t=new fm(e)}if(e.is(\"text\")){t.add(e);return t}if(e.is(\"element\")){t.add(e,fm.consumablesFromElement(e))}if(e.is(\"documentFragment\")){t.add(e)}for(const n of e.getChildren()){t=fm.createFrom(n,t)}return t}}class mm{constructor(e){this.element=e;this._canConsumeName=null;this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(e){if(e.name){this._canConsumeName=true}for(const t in this._consumables){if(t in e){this._add(t,e[t])}}}test(e){if(e.name&&!this._canConsumeName){return this._canConsumeName}for(const t in this._consumables){if(t in e){const n=this._test(t,e[t]);if(n!==true){return n}}}return true}consume(e){if(e.name){this._canConsumeName=false}for(const t in this._consumables){if(t in e){this._consume(t,e[t])}}}revert(e){if(e.name){this._canConsumeName=true}for(const t in this._consumables){if(t in e){this._revert(t,e[t])}}}_add(e,t){const n=Jt(t)?t:[t];const i=this._consumables[e];for(const t of n){if(e===\"attributes\"&&(t===\"class\"||t===\"style\")){throw new rr[\"b\"](\"viewconsumable-invalid-attribute: Classes and styles should be handled separately.\",this)}i.set(t,true);if(e===\"styles\"){for(const e of this.element.document.stylesProcessor.getRelatedStyles(t)){i.set(e,true)}}}}_test(e,t){const n=Jt(t)?t:[t];const i=this._consumables[e];for(const t of n){if(e===\"attributes\"&&(t===\"class\"||t===\"style\")){const e=t==\"class\"?\"classes\":\"styles\";const n=this._test(e,[...this._consumables[e].keys()]);if(n!==true){return n}}else{const e=i.get(t);if(e===undefined){return null}if(!e){return false}}}return true}_consume(e,t){const n=Jt(t)?t:[t];const i=this._consumables[e];for(const t of n){if(e===\"attributes\"&&(t===\"class\"||t===\"style\")){const e=t==\"class\"?\"classes\":\"styles\";this._consume(e,[...this._consumables[e].keys()])}else{i.set(t,false);if(e==\"styles\"){for(const e of this.element.document.stylesProcessor.getRelatedStyles(t)){i.set(e,false)}}}}}_revert(e,t){const n=Jt(t)?t:[t];const i=this._consumables[e];for(const t of n){if(e===\"attributes\"&&(t===\"class\"||t===\"style\")){const e=t==\"class\"?\"classes\":\"styles\";this._revert(e,[...this._consumables[e].keys()])}else{const e=i.get(t);if(e===false){i.set(t,true)}}}}}class gm{constructor(){this._sourceDefinitions={};this._attributeProperties={};this.decorate(\"checkChild\");this.decorate(\"checkAttribute\");this.on(\"checkAttribute\",(e,t)=>{t[0]=new pm(t[0])},{priority:\"highest\"});this.on(\"checkChild\",(e,t)=>{t[0]=new pm(t[0]);t[1]=this.getDefinition(t[1])},{priority:\"highest\"})}register(e,t){if(this._sourceDefinitions[e]){throw new rr[\"b\"](\"schema-cannot-register-item-twice: A single item cannot be registered twice in the schema.\",this,{itemName:e})}this._sourceDefinitions[e]=[Object.assign({},t)];this._clearCache()}extend(e,t){if(!this._sourceDefinitions[e]){throw new rr[\"b\"](\"schema-cannot-extend-missing-item: Cannot extend an item which was not registered yet.\",this,{itemName:e})}this._sourceDefinitions[e].push(Object.assign({},t));this._clearCache()}getDefinitions(){if(!this._compiledDefinitions){this._compile()}return this._compiledDefinitions}getDefinition(e){let t;if(typeof e==\"string\"){t=e}else if(e.is&&(e.is(\"text\")||e.is(\"textProxy\"))){t=\"$text\"}else{t=e.name}return this.getDefinitions()[t]}isRegistered(e){return!!this.getDefinition(e)}isBlock(e){const t=this.getDefinition(e);return!!(t&&t.isBlock)}isLimit(e){const t=this.getDefinition(e);if(!t){return false}return!!(t.isLimit||t.isObject)}isObject(e){const t=this.getDefinition(e);return!!(t&&t.isObject)}isInline(e){const t=this.getDefinition(e);return!!(t&&t.isInline)}checkChild(e,t){if(!t){return false}return this._checkContextMatch(t,e)}checkAttribute(e,t){const n=this.getDefinition(e.last);if(!n){return false}return n.allowAttributes.includes(t)}checkMerge(e,t=null){if(e instanceof $h){const t=e.nodeBefore;const n=e.nodeAfter;if(!(t instanceof Fh)){throw new rr[\"b\"](\"schema-check-merge-no-element-before: The node before the merge position must be an element.\",this)}if(!(n instanceof Fh)){throw new rr[\"b\"](\"schema-check-merge-no-element-after: The node after the merge position must be an element.\",this)}return this.checkMerge(t,n)}for(const n of t.getChildren()){if(!this.checkChild(e,n)){return false}}return true}addChildCheck(e){this.on(\"checkChild\",(t,[n,i])=>{if(!i){return}const o=e(n,i);if(typeof o==\"boolean\"){t.stop();t.return=o}},{priority:\"high\"})}addAttributeCheck(e){this.on(\"checkAttribute\",(t,[n,i])=>{const o=e(n,i);if(typeof o==\"boolean\"){t.stop();t.return=o}},{priority:\"high\"})}setAttributeProperties(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}getAttributeProperties(e){return this._attributeProperties[e]||{}}getLimitElement(e){let t;if(e instanceof $h){t=e.parent}else{const n=e instanceof Jh?[e]:Array.from(e.getRanges());t=n.reduce((e,t)=>{const n=t.getCommonAncestor();if(!e){return n}return e.getCommonAncestor(n,{includeSelf:true})},null)}while(!this.isLimit(t)){if(t.parent){t=t.parent}else{break}}return t}checkAttributeInSelection(e,t){if(e.isCollapsed){const n=e.getFirstPosition();const i=[...n.getAncestors(),new zh(\"\",e.getAttributes())];return this.checkAttribute(i,t)}else{const n=e.getRanges();for(const e of n){for(const n of e){if(this.checkAttribute(n.item,t)){return true}}}}return false}*getValidRanges(e,t){e=Im(e);for(const n of e){yield*this._getValidRangesForRange(n,t)}}getNearestSelectionRange(e,t=\"both\"){if(this.checkChild(e,\"$text\")){return new Jh(e)}let n,i;const o=e.getAncestors().reverse().find(e=>this.isLimit(e))||e.root;if(t==\"both\"||t==\"backward\"){n=new Uh({boundaries:Jh._createIn(o),startPosition:e,direction:\"backward\"})}if(t==\"both\"||t==\"forward\"){i=new Uh({boundaries:Jh._createIn(o),startPosition:e})}for(const e of Sm(n,i)){const t=e.walker==n?\"elementEnd\":\"elementStart\";const i=e.value;if(i.type==t&&this.isObject(i.item)){return Jh._createOn(i.item)}if(this.checkChild(i.nextPosition,\"$text\")){return new Jh(i.nextPosition)}}return null}findAllowedParent(e,t){let n=e.parent;while(n){if(this.checkChild(n,t)){return n}if(this.isLimit(n)){return null}n=n.parent}return null}removeDisallowedAttributes(e,t){for(const n of e){if(n.is(\"text\")){Om(this,n,t)}else{const e=Jh._createIn(n);const i=e.getPositions();for(const e of i){const n=e.nodeBefore||e.parent;Om(this,n,t)}}}}createContext(e){return new pm(e)}_clearCache(){this._compiledDefinitions=null}_compile(){const e={};const t=this._sourceDefinitions;const n=Object.keys(t);for(const i of n){e[i]=bm(t[i],i)}for(const t of n){wm(e,t)}for(const t of n){_m(e,t)}for(const t of n){vm(e,t);km(e,t)}for(const t of n){ym(e,t);xm(e,t)}this._compiledDefinitions=e}_checkContextMatch(e,t,n=t.length-1){const i=t.getItem(n);if(e.allowIn.includes(i.name)){if(n==0){return true}else{const e=this.getDefinition(i);return this._checkContextMatch(e,t,n-1)}}else{return false}}*_getValidRangesForRange(e,t){let n=e.start;let i=e.start;for(const o of e.getItems({shallow:true})){if(o.is(\"element\")){yield*this._getValidRangesForRange(Jh._createIn(o),t)}if(!this.checkAttribute(o,t)){if(!n.isEqual(i)){yield new Jh(n,i)}n=$h._createAfter(o)}i=$h._createAfter(o)}if(!n.isEqual(i)){yield new Jh(n,i)}}}yr(gm,Kc);class pm{constructor(e){if(e instanceof pm){return e}if(typeof e==\"string\"){e=[e]}else if(!Array.isArray(e)){e=e.getAncestors({includeSelf:true})}if(e[0]&&typeof e[0]!=\"string\"&&e[0].is(\"documentFragment\")){e.shift()}this._items=e.map(Pm)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(e){const t=new pm([e]);t._items=[...this._items,...t._items];return t}getItem(e){return this._items[e]}*getNames(){yield*this._items.map(e=>e.name)}endsWith(e){return Array.from(this.getNames()).join(\" \").endsWith(e)}startsWith(e){return Array.from(this.getNames()).join(\" \").startsWith(e)}}function bm(e,t){const n={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],inheritTypesFrom:[]};Am(e,n);Cm(e,n,\"allowIn\");Cm(e,n,\"allowContentOf\");Cm(e,n,\"allowWhere\");Cm(e,n,\"allowAttributes\");Cm(e,n,\"allowAttributesOf\");Cm(e,n,\"inheritTypesFrom\");Tm(e,n);return n}function wm(e,t){for(const n of e[t].allowContentOf){if(e[n]){const i=Mm(e,n);i.forEach(e=>{e.allowIn.push(t)})}}delete e[t].allowContentOf}function _m(e,t){for(const n of e[t].allowWhere){const i=e[n];if(i){const n=i.allowIn;e[t].allowIn.push(...n)}}delete e[t].allowWhere}function vm(e,t){for(const n of e[t].allowAttributesOf){const i=e[n];if(i){const n=i.allowAttributes;e[t].allowAttributes.push(...n)}}delete e[t].allowAttributesOf}function km(e,t){const n=e[t];for(const t of n.inheritTypesFrom){const i=e[t];if(i){const e=Object.keys(i).filter(e=>e.startsWith(\"is\"));for(const t of e){if(!(t in n)){n[t]=i[t]}}}}delete n.inheritTypesFrom}function ym(e,t){const n=e[t];const i=n.allowIn.filter(t=>e[t]);n.allowIn=Array.from(new Set(i))}function xm(e,t){const n=e[t];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function Am(e,t){for(const n of e){const e=Object.keys(n).filter(e=>e.startsWith(\"is\"));for(const i of e){t[i]=n[i]}}}function Cm(e,t,n){for(const i of e){if(typeof i[n]==\"string\"){t[n].push(i[n])}else if(Array.isArray(i[n])){t[n].push(...i[n])}}}function Tm(e,t){for(const n of e){const e=n.inheritAllFrom;if(e){t.allowContentOf.push(e);t.allowWhere.push(e);t.allowAttributesOf.push(e);t.inheritTypesFrom.push(e)}}}function Mm(e,t){const n=e[t];return Em(e).filter(e=>e.allowIn.includes(n.name))}function Em(e){return Object.keys(e).map(t=>e[t])}function Pm(e){if(typeof e==\"string\"){return{name:e,*getAttributeKeys(){},getAttribute(){}}}else{return{name:e.is(\"element\")?e.name:\"$text\",*getAttributeKeys(){yield*e.getAttributeKeys()},getAttribute(t){return e.getAttribute(t)}}}}function*Sm(e,t){let n=false;while(!n){n=true;if(e){const t=e.next();if(!t.done){n=false;yield{walker:e,value:t.value}}}if(t){const e=t.next();if(!e.done){n=false;yield{walker:t,value:e.value}}}}}function*Im(e){for(const t of e){yield*t.getMinimalFlatRanges()}}function Om(e,t,n){for(const i of t.getAttributeKeys()){if(!e.checkAttribute(t,i)){n.removeAttribute(i,t)}}}class Nm{constructor(e={}){this._splitParts=new Map;this._modelCursor=null;this.conversionApi=Object.assign({},e);this.conversionApi.convertItem=this._convertItem.bind(this);this.conversionApi.convertChildren=this._convertChildren.bind(this);this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this);this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}convert(e,t,n=[\"$root\"]){this.fire(\"viewCleanup\",e);this._modelCursor=Rm(n,t);this.conversionApi.writer=t;this.conversionApi.consumable=fm.createFrom(e);this.conversionApi.store={};const{modelRange:i}=this._convertItem(e,this._modelCursor);const o=t.createDocumentFragment();if(i){this._removeEmptyElements();for(const e of Array.from(this._modelCursor.parent.getChildren())){t.append(e,o)}o.markers=Lm(o,t)}this._modelCursor=null;this._splitParts.clear();this.conversionApi.writer=null;this.conversionApi.store=null;return o}_convertItem(e,t){const n=Object.assign({viewItem:e,modelCursor:t,modelRange:null});if(e.is(\"element\")){this.fire(\"element:\"+e.name,n,this.conversionApi)}else if(e.is(\"text\")){this.fire(\"text\",n,this.conversionApi)}else{this.fire(\"documentFragment\",n,this.conversionApi)}if(n.modelRange&&!(n.modelRange instanceof Jh)){throw new rr[\"b\"](\"view-conversion-dispatcher-incorrect-result: Incorrect conversion result was dropped.\",this)}return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(e,t){const n=new Jh(t);let i=t;for(const t of Array.from(e.getChildren())){const e=this._convertItem(t,i);if(e.modelRange instanceof Jh){n.end=e.modelRange.end;i=e.modelCursor}}return{modelRange:n,modelCursor:i}}_splitToAllowedParent(e,t){const n=this.conversionApi.schema.findAllowedParent(t,e);if(!n){return null}if(n===t.parent){return{position:t}}if(this._modelCursor.parent.getAncestors().includes(n)){return null}const i=this.conversionApi.writer.split(t,n);const o=[];for(const e of i.range.getWalker()){if(e.type==\"elementEnd\"){o.push(e.item)}else{const t=o.pop();const n=e.item;this._registerSplitPair(t,n)}}return{position:i.position,cursorParent:i.range.end.parent}}_registerSplitPair(e,t){if(!this._splitParts.has(e)){this._splitParts.set(e,[e])}const n=this._splitParts.get(e);this._splitParts.set(t,n);n.push(t)}_getSplitParts(e){let t;if(!this._splitParts.has(e)){t=[e]}else{t=this._splitParts.get(e)}return t}_removeEmptyElements(){let e=false;for(const t of this._splitParts.keys()){if(t.isEmpty){this.conversionApi.writer.remove(t);this._splitParts.delete(t);e=true}}if(e){this._removeEmptyElements()}}}yr(Nm,dr);function Lm(e,t){const n=new Set;const i=new Map;const o=Jh._createIn(e).getItems();for(const e of o){if(e.name==\"$marker\"){n.add(e)}}for(const e of n){const n=e.getAttribute(\"data-name\");const o=t.createPositionBefore(e);if(!i.has(n)){i.set(n,new Jh(o.clone()))}else{i.get(n).end=o.clone()}t.remove(e)}return i}function Rm(e,t){let n;for(const i of new pm(e)){const e={};for(const t of i.getAttributeKeys()){e[t]=i.getAttribute(t)}const o=t.createElement(i.name,e);if(n){t.append(o,n)}n=$h._createAt(o,0)}return n}class Dm{constructor(e,t){this.model=e;this.stylesProcessor=t;this.processor;this.mapper=new Kh;this.downcastDispatcher=new Zh({mapper:this.mapper});this.downcastDispatcher.on(\"insert:$text\",Af(),{priority:\"lowest\"});this.upcastDispatcher=new Nm({schema:e.schema});this.viewDocument=new bl(t);this._viewWriter=new ql(this.viewDocument);this.upcastDispatcher.on(\"text\",Kf(),{priority:\"lowest\"});this.upcastDispatcher.on(\"element\",Jf(),{priority:\"lowest\"});this.upcastDispatcher.on(\"documentFragment\",Jf(),{priority:\"lowest\"});this.decorate(\"init\");this.on(\"init\",()=>{this.fire(\"ready\")},{priority:\"lowest\"})}get(e){const{rootName:t=\"main\",trim:n=\"empty\"}=e||{};if(!this._checkIfRootsExists([t])){throw new rr[\"b\"](\"datacontroller-get-non-existent-root: Attempting to get data from a non-existing root.\",this)}const i=this.model.document.getRoot(t);if(n===\"empty\"&&!this.model.hasContent(i,{ignoreWhitespaces:true})){return\"\"}return this.stringify(i)}stringify(e){const t=this.toView(e);return this.processor.toData(t)}toView(e){const t=this.viewDocument;const n=this._viewWriter;this.mapper.clearBindings();const i=Jh._createIn(e);const o=new Wl(t);this.mapper.bindElements(e,o);this.downcastDispatcher.convertInsert(i,n);if(!e.is(\"documentFragment\")){const t=jm(e);for(const[e,i]of t){this.downcastDispatcher.convertMarkerAdd(e,i,n)}}return o}init(e){if(this.model.document.version){throw new rr[\"b\"](\"datacontroller-init-document-not-empty: Trying to set initial data to not empty document.\",this)}let t={};if(typeof e===\"string\"){t.main=e}else{t=e}if(!this._checkIfRootsExists(Object.keys(t))){throw new rr[\"b\"](\"datacontroller-init-non-existent-root: Attempting to init data on a non-existing root.\",this)}this.model.enqueueChange(\"transparent\",e=>{for(const n of Object.keys(t)){const i=this.model.document.getRoot(n);e.insert(this.parse(t[n],i),i,0)}});return Promise.resolve()}set(e){let t={};if(typeof e===\"string\"){t.main=e}else{t=e}if(!this._checkIfRootsExists(Object.keys(t))){throw new rr[\"b\"](\"datacontroller-set-non-existent-root: Attempting to set data on a non-existing root.\",this)}this.model.enqueueChange(\"transparent\",e=>{e.setSelection(null);e.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const n of Object.keys(t)){const i=this.model.document.getRoot(n);e.remove(e.createRangeIn(i));e.insert(this.parse(t[n],i),i,0)}})}parse(e,t=\"$root\"){const n=this.processor.toView(e);return this.toModel(n,t)}toModel(e,t=\"$root\"){return this.model.change(n=>this.upcastDispatcher.convert(e,n,t))}addStyleProcessorRules(e){e(this.stylesProcessor)}destroy(){this.stopListening()}_checkIfRootsExists(e){for(const t of e){if(!this.model.document.getRootNames().includes(t)){return false}}return true}}yr(Dm,Kc);function jm(e){const t=[];const n=e.root.document;if(!n){return[]}const i=Jh._createIn(e);for(const e of n.model.markers){const n=i.getIntersection(e.getRange());if(n){t.push([e.name,n])}}return t}class zm{constructor(e,t){this._helpers=new Map;this._downcast=Array.isArray(e)?e:[e];this._createConversionHelpers({name:\"downcast\",dispatchers:this._downcast,isDowncast:true});this._upcast=Array.isArray(t)?t:[t];this._createConversionHelpers({name:\"upcast\",dispatchers:this._upcast,isDowncast:false})}addAlias(e,t){const n=this._downcast.includes(t);const i=this._upcast.includes(t);if(!i&&!n){throw new rr[\"b\"](\"conversion-add-alias-dispatcher-not-registered: \"+\"Trying to register and alias for a dispatcher that nas not been registered.\",this)}this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:n})}for(e){if(!this._helpers.has(e)){throw new rr[\"b\"](\"conversion-for-unknown-group: Trying to add a converter to an unknown dispatchers group.\",this)}return this._helpers.get(e)}elementToElement(e){this.for(\"downcast\").elementToElement(e);for(const{model:t,view:n}of Bm(e)){this.for(\"upcast\").elementToElement({model:t,view:n,converterPriority:e.converterPriority})}}attributeToElement(e){this.for(\"downcast\").attributeToElement(e);for(const{model:t,view:n}of Bm(e)){this.for(\"upcast\").elementToAttribute({view:n,model:t,converterPriority:e.converterPriority})}}attributeToAttribute(e){this.for(\"downcast\").attributeToAttribute(e);for(const{model:t,view:n}of Bm(e)){this.for(\"upcast\").attributeToAttribute({view:n,model:t})}}_createConversionHelpers({name:e,dispatchers:t,isDowncast:n}){if(this._helpers.has(e)){throw new rr[\"b\"](\"conversion-group-exists: Trying to register a group name that has already been registered.\",this)}const i=n?new xf(t):new Gf(t);this._helpers.set(e,i)}}function*Bm(e){if(e.model.values){for(const t of e.model.values){const n={key:e.model.key,value:t};const i=e.view[t];const o=e.upcastAlso?e.upcastAlso[t]:undefined;yield*Vm(n,i,o)}}else{yield*Vm(e.model,e.view,e.upcastAlso)}}function*Vm(e,t,n){yield{model:e,view:t};if(n){n=Array.isArray(n)?n:[n];for(const t of n){yield{model:e,view:t}}}}class Fm{constructor(e=\"default\"){this.operations=[];this.type=e}get baseVersion(){for(const e of this.operations){if(e.baseVersion!==null){return e.baseVersion}}return null}addOperation(e){e.batch=this;this.operations.push(e);return e}}class Hm{constructor(e){this.baseVersion=e;this.isDocumentOperation=this.baseVersion!==null;this.batch=null}_validate(){}toJSON(){const e=Object.assign({},this);e.__className=this.constructor.className;delete e.batch;delete e.isDocumentOperation;return e}static get className(){return\"Operation\"}static fromJSON(e){return new this(e.baseVersion)}}class Um{constructor(e){this.markers=new Map;this._children=new Vh;if(e){this._insertChild(0,e)}}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return this.childCount===0}get root(){return this}get parent(){return null}is(e){return e===\"documentFragment\"||e===\"model:documentFragment\"}getChild(e){return this._children.getNode(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}getPath(){return[]}getNodeByPath(e){let t=this;for(const n of e){t=t.getChild(t.offsetToIndex(n))}return t}offsetToIndex(e){return this._children.offsetToIndex(e)}toJSON(){const e=[];for(const t of this._children){e.push(t.toJSON())}return e}static fromJSON(e){const t=[];for(const n of e){if(n.name){t.push(Fh.fromJSON(n))}else{t.push(zh.fromJSON(n))}}return new Um(t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const n=Wm(t);for(const e of n){if(e.parent!==null){e._remove()}e.parent=this}this._children._insertNodes(e,n)}_removeChildren(e,t=1){const n=this._children._removeNodes(e,t);for(const e of n){e.parent=null}return n}}function Wm(e){if(typeof e==\"string\"){return[new zh(e)]}if(!kr(e)){e=[e]}return Array.from(e).map(e=>{if(typeof e==\"string\"){return new zh(e)}if(e instanceof Bh){return new zh(e.data,e.getAttributes())}return e})}function $m(e,t){t=Jm(t);const n=t.reduce((e,t)=>e+t.offsetSize,0);const i=e.parent;Qm(e);const o=e.index;i._insertChild(o,t);Km(i,o+t.length);Km(i,o);return new Jh(e,e.getShiftedBy(n))}function qm(e){if(!e.isFlat){throw new rr[\"b\"](\"operation-utils-remove-range-not-flat: \"+\"Trying to remove a range which starts and ends in different element.\",this)}const t=e.start.parent;Qm(e.start);Qm(e.end);const n=t._removeChildren(e.start.index,e.end.index-e.start.index);Km(t,e.start.index);return n}function Ym(e,t){if(!e.isFlat){throw new rr[\"b\"](\"operation-utils-move-range-not-flat: \"+\"Trying to move a range which starts and ends in different element.\",this)}const n=qm(e);t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset);return $m(t,n)}function Gm(e,t,n){Qm(e.start);Qm(e.end);for(const i of e.getItems({shallow:true})){const e=i.is(\"textProxy\")?i.textNode:i;if(n!==null){e._setAttribute(t,n)}else{e._removeAttribute(t)}Km(e.parent,e.index)}Km(e.end.parent,e.end.index)}function Jm(e){const t=[];if(!(e instanceof Array)){e=[e]}for(let n=0;ne.maxOffset){throw new rr[\"b\"](\"move-operation-nodes-do-not-exist: The nodes which should be moved do not exist.\",this)}else if(e===t&&n=n&&this.targetPosition.path[e]e._clone(true)));const t=new og(this.position,e,this.baseVersion);t.shouldReceiveAttributes=this.shouldReceiveAttributes;return t}getReversed(){const e=this.position.root.document.graveyard;const t=new $h(e,[0]);return new ig(this.position,this.nodes.maxOffset,t,this.baseVersion+1)}_validate(){const e=this.position.parent;if(!e||e.maxOffsete._clone(true)));$m(this.position,e)}toJSON(){const e=super.toJSON();e.position=this.position.toJSON();e.nodes=this.nodes.toJSON();return e}static get className(){return\"InsertOperation\"}static fromJSON(e,t){const n=[];for(const t of e.nodes){if(t.name){n.push(Fh.fromJSON(t))}else{n.push(zh.fromJSON(t))}}const i=new og($h.fromJSON(e.position,t),n,e.baseVersion);i.shouldReceiveAttributes=e.shouldReceiveAttributes;return i}}class sg extends Hm{constructor(e,t,n,i,o,s){super(s);this.name=e;this.oldRange=t?t.clone():null;this.newRange=n?n.clone():null;this.affectsData=o;this._markers=i}get type(){return\"marker\"}clone(){return new sg(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new sg(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){const e=this.newRange?\"_set\":\"_remove\";this._markers[e](this.name,this.newRange,true,this.affectsData)}toJSON(){const e=super.toJSON();if(this.oldRange){e.oldRange=this.oldRange.toJSON()}if(this.newRange){e.newRange=this.newRange.toJSON()}delete e._markers;return e}static get className(){return\"MarkerOperation\"}static fromJSON(e,t){return new sg(e.name,e.oldRange?Jh.fromJSON(e.oldRange,t):null,e.newRange?Jh.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}}class rg extends Hm{constructor(e,t,n,i){super(i);this.position=e;this.position.stickiness=\"toNext\";this.oldName=t;this.newName=n}get type(){return\"rename\"}clone(){return new rg(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new rg(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const e=this.position.nodeAfter;if(!(e instanceof Fh)){throw new rr[\"b\"](\"rename-operation-wrong-position: Given position is invalid or node after it is not an instance of Element.\",this)}else if(e.name!==this.oldName){throw new rr[\"b\"](\"rename-operation-wrong-name: Element to change has different name than operation's old name.\",this)}}_execute(){const e=this.position.nodeAfter;e.name=this.newName}toJSON(){const e=super.toJSON();e.position=this.position.toJSON();return e}static get className(){return\"RenameOperation\"}static fromJSON(e,t){return new rg($h.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}}class ag extends Hm{constructor(e,t,n,i,o){super(o);this.root=e;this.key=t;this.oldValue=n;this.newValue=i}get type(){if(this.oldValue===null){return\"addRootAttribute\"}else if(this.newValue===null){return\"removeRootAttribute\"}else{return\"changeRootAttribute\"}}clone(){return new ag(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new ag(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is(\"documentFragment\")){throw new rr[\"b\"](\"rootattribute-operation-not-a-root: The element to change is not a root element.\",this,{root:this.root,key:this.key})}if(this.oldValue!==null&&this.root.getAttribute(this.key)!==this.oldValue){throw new rr[\"b\"](\"rootattribute-operation-wrong-old-value: Changed node has different attribute value than operation's \"+\"old attribute value.\",this,{root:this.root,key:this.key})}if(this.oldValue===null&&this.newValue!==null&&this.root.hasAttribute(this.key)){throw new rr[\"b\"](\"rootattribute-operation-attribute-exists: The attribute with given key already exists.\",this,{root:this.root,key:this.key})}}_execute(){if(this.newValue!==null){this.root._setAttribute(this.key,this.newValue)}else{this.root._removeAttribute(this.key)}}toJSON(){const e=super.toJSON();e.root=this.root.toJSON();return e}static get className(){return\"RootAttributeOperation\"}static fromJSON(e,t){if(!t.getRoot(e.root)){throw new rr[\"b\"](\"rootattribute-operation-fromjson-no-root: Cannot create RootAttributeOperation. Root with specified name does not exist.\",this,{rootName:e.root})}return new ag(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}}class cg extends Hm{constructor(e,t,n,i,o){super(o);this.sourcePosition=e.clone();this.sourcePosition.stickiness=\"toPrevious\";this.howMany=t;this.targetPosition=n.clone();this.targetPosition.stickiness=\"toNext\";this.graveyardPosition=i.clone()}get type(){return\"merge\"}get deletionPosition(){return new $h(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const e=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Jh(this.sourcePosition,e)}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.targetPosition._getTransformedByMergeOperation(this);const t=this.sourcePosition.path.slice(0,-1);const n=new $h(this.sourcePosition.root,t)._getTransformedByMergeOperation(this);const i=new lg(e,this.howMany,this.graveyardPosition,this.baseVersion+1);i.insertionPosition=n;return i}_validate(){const e=this.sourcePosition.parent;const t=this.targetPosition.parent;if(!e.parent){throw new rr[\"b\"](\"merge-operation-source-position-invalid: Merge source position is invalid.\",this)}else if(!t.parent){throw new rr[\"b\"](\"merge-operation-target-position-invalid: Merge target position is invalid.\",this)}else if(this.howMany!=e.maxOffset){throw new rr[\"b\"](\"merge-operation-how-many-invalid: Merge operation specifies wrong number of nodes to move.\",this)}}_execute(){const e=this.sourcePosition.parent;const t=Jh._createIn(e);Ym(t,this.targetPosition);Ym(Jh._createOn(e),this.graveyardPosition)}toJSON(){const e=super.toJSON();e.sourcePosition=e.sourcePosition.toJSON();e.targetPosition=e.targetPosition.toJSON();e.graveyardPosition=e.graveyardPosition.toJSON();return e}static get className(){return\"MergeOperation\"}static fromJSON(e,t){const n=$h.fromJSON(e.sourcePosition,t);const i=$h.fromJSON(e.targetPosition,t);const o=$h.fromJSON(e.graveyardPosition,t);return new this(n,e.howMany,i,o,e.baseVersion)}}class lg extends Hm{constructor(e,t,n,i){super(i);this.splitPosition=e.clone();this.splitPosition.stickiness=\"toNext\";this.howMany=t;this.insertionPosition=lg.getInsertionPosition(e);this.insertionPosition.stickiness=\"toNone\";this.graveyardPosition=n?n.clone():null;if(this.graveyardPosition){this.graveyardPosition.stickiness=\"toNext\"}}get type(){return\"split\"}get moveTargetPosition(){const e=this.insertionPosition.path.slice();e.push(0);return new $h(this.insertionPosition.root,e)}get movedRange(){const e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Jh(this.splitPosition,e)}clone(){const e=new this.constructor(this.splitPosition,this.howMany,this.graveyardPosition,this.baseVersion);e.insertionPosition=this.insertionPosition;return e}getReversed(){const e=this.splitPosition.root.document.graveyard;const t=new $h(e,[0]);return new cg(this.moveTargetPosition,this.howMany,this.splitPosition,t,this.baseVersion+1)}_validate(){const e=this.splitPosition.parent;const t=this.splitPosition.offset;if(!e||e.maxOffset{for(const t of e.getAttributeKeys()){this.removeAttribute(t,e)}};if(!(e instanceof Jh)){t(e)}else{for(const n of e.getItems()){t(n)}}}move(e,t,n){this._assertWriterUsedCorrectly();if(!(e instanceof Jh)){throw new rr[\"b\"](\"writer-move-invalid-range: Invalid range to move.\",this)}if(!e.isFlat){throw new rr[\"b\"](\"writer-move-range-not-flat: Range to move is not flat.\",this)}const i=$h._createAt(t,n);if(i.isEqual(e.start)){return}this._addOperationForAffectedMarkers(\"move\",e);if(!pg(e.root,i.root)){throw new rr[\"b\"](\"writer-move-different-document: Range is going to be moved between different documents.\",this)}const o=e.root.document?e.root.document.version:null;const s=new ig(e.start,e.end.offset-e.start.offset,i,o);this.batch.addOperation(s);this.model.applyOperation(s)}remove(e){this._assertWriterUsedCorrectly();const t=e instanceof Jh?e:Jh._createOn(e);const n=t.getMinimalFlatRanges().reverse();for(const e of n){this._addOperationForAffectedMarkers(\"move\",e);gg(e.start,e.end.offset-e.start.offset,this.batch,this.model)}}merge(e){this._assertWriterUsedCorrectly();const t=e.nodeBefore;const n=e.nodeAfter;this._addOperationForAffectedMarkers(\"merge\",e);if(!(t instanceof Fh)){throw new rr[\"b\"](\"writer-merge-no-element-before: Node before merge position must be an element.\",this)}if(!(n instanceof Fh)){throw new rr[\"b\"](\"writer-merge-no-element-after: Node after merge position must be an element.\",this)}if(!e.root.document){this._mergeDetached(e)}else{this._merge(e)}}createPositionFromPath(e,t,n){return this.model.createPositionFromPath(e,t,n)}createPositionAt(e,t){return this.model.createPositionAt(e,t)}createPositionAfter(e){return this.model.createPositionAfter(e)}createPositionBefore(e){return this.model.createPositionBefore(e)}createRange(e,t){return this.model.createRange(e,t)}createRangeIn(e){return this.model.createRangeIn(e)}createRangeOn(e){return this.model.createRangeOn(e)}createSelection(e,t,n){return this.model.createSelection(e,t,n)}_mergeDetached(e){const t=e.nodeBefore;const n=e.nodeAfter;this.move(Jh._createIn(n),$h._createAt(t,\"end\"));this.remove(n)}_merge(e){const t=$h._createAt(e.nodeBefore,\"end\");const n=$h._createAt(e.nodeAfter,0);const i=e.root.document.graveyard;const o=new $h(i,[0]);const s=e.root.document.version;const r=new cg(n,e.nodeAfter.maxOffset,t,o,s);this.batch.addOperation(r);this.model.applyOperation(r)}rename(e,t){this._assertWriterUsedCorrectly();if(!(e instanceof Fh)){throw new rr[\"b\"](\"writer-rename-not-element-instance: Trying to rename an object which is not an instance of Element.\",this)}const n=e.root.document?e.root.document.version:null;const i=new rg($h._createBefore(e),e.name,t,n);this.batch.addOperation(i);this.model.applyOperation(i)}split(e,t){this._assertWriterUsedCorrectly();let n=e.parent;if(!n.parent){throw new rr[\"b\"](\"writer-split-element-no-parent: Element with no parent can not be split.\",this)}if(!t){t=n.parent}if(!e.parent.getAncestors({includeSelf:true}).includes(t)){throw new rr[\"b\"](\"writer-split-invalid-limit-element: Limit element is not a position ancestor.\",this)}let i,o;do{const t=n.root.document?n.root.document.version:null;const s=n.maxOffset-e.offset;const r=new lg(e,s,null,t);this.batch.addOperation(r);this.model.applyOperation(r);if(!i&&!o){i=n;o=e.parent.nextSibling}e=this.createPositionAfter(e.parent);n=e.parent}while(n!==t);return{position:e,range:new Jh($h._createAt(i,\"end\"),$h._createAt(o,0))}}wrap(e,t){this._assertWriterUsedCorrectly();if(!e.isFlat){throw new rr[\"b\"](\"writer-wrap-range-not-flat: Range to wrap is not flat.\",this)}const n=t instanceof Fh?t:new Fh(t);if(n.childCount>0){throw new rr[\"b\"](\"writer-wrap-element-not-empty: Element to wrap with is not empty.\",this)}if(n.parent!==null){throw new rr[\"b\"](\"writer-wrap-element-attached: Element to wrap with is already attached to tree model.\",this)}this.insert(n,e.start);const i=new Jh(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(i,$h._createAt(n,0))}unwrap(e){this._assertWriterUsedCorrectly();if(e.parent===null){throw new rr[\"b\"](\"writer-unwrap-element-no-parent: Trying to unwrap an element which has no parent.\",this)}this.move(Jh._createIn(e),this.createPositionAfter(e));this.remove(e)}addMarker(e,t){this._assertWriterUsedCorrectly();if(!t||typeof t.usingOperation!=\"boolean\"){throw new rr[\"b\"](\"writer-addMarker-no-usingOperation: The options.usingOperation parameter is required when adding a new marker.\",this)}const n=t.usingOperation;const i=t.range;const o=t.affectsData===undefined?false:t.affectsData;if(this.model.markers.has(e)){throw new rr[\"b\"](\"writer-addMarker-marker-exists: Marker with provided name already exists.\",this)}if(!i){throw new rr[\"b\"](\"writer-addMarker-no-range: Range parameter is required when adding a new marker.\",this)}if(!n){return this.model.markers._set(e,i,n,o)}mg(this,e,null,i,o);return this.model.markers.get(e)}updateMarker(e,t){this._assertWriterUsedCorrectly();const n=typeof e==\"string\"?e:e.name;const i=this.model.markers.get(n);if(!i){throw new rr[\"b\"](\"writer-updateMarker-marker-not-exists: Marker with provided name does not exists.\",this)}if(!t){this.model.markers._refresh(i);return}const o=typeof t.usingOperation==\"boolean\";const s=typeof t.affectsData==\"boolean\";const r=s?t.affectsData:i.affectsData;if(!o&&!t.range&&!s){throw new rr[\"b\"](\"writer-updateMarker-wrong-options: One of the options is required - provide range, usingOperations or affectsData.\",this)}const a=i.getRange();const c=t.range?t.range:a;if(o&&t.usingOperation!==i.managedUsingOperations){if(t.usingOperation){mg(this,n,null,c,r)}else{mg(this,n,a,null,r);this.model.markers._set(n,c,undefined,r)}return}if(i.managedUsingOperations){mg(this,n,a,c,r)}else{this.model.markers._set(n,c,undefined,r)}}removeMarker(e){this._assertWriterUsedCorrectly();const t=typeof e==\"string\"?e:e.name;if(!this.model.markers.has(t)){throw new rr[\"b\"](\"writer-removeMarker-no-marker: Trying to remove marker which does not exist.\",this)}const n=this.model.markers.get(t);if(!n.managedUsingOperations){this.model.markers._remove(t);return}const i=n.getRange();mg(this,t,i,null,n.affectsData)}setSelection(e,t,n){this._assertWriterUsedCorrectly();this.model.document.selection._setTo(e,t,n)}setSelectionFocus(e,t){this._assertWriterUsedCorrectly();this.model.document.selection._setFocus(e,t)}setSelectionAttribute(e,t){this._assertWriterUsedCorrectly();if(typeof e===\"string\"){this._setSelectionAttribute(e,t)}else{for(const[t,n]of Ur(e)){this._setSelectionAttribute(t,n)}}}removeSelectionAttribute(e){this._assertWriterUsedCorrectly();if(typeof e===\"string\"){this._removeSelectionAttribute(e)}else{for(const t of e){this._removeSelectionAttribute(t)}}}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(e){this.model.document.selection._restoreGravity(e)}_setSelectionAttribute(e,t){const n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){const i=ff._getStoreAttributeKey(e);this.setAttribute(i,t,n.anchor.parent)}n._setAttribute(e,t)}_removeSelectionAttribute(e){const t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){const n=ff._getStoreAttributeKey(e);this.removeAttribute(n,t.anchor.parent)}t._removeAttribute(e)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this){throw new rr[\"b\"](\"writer-incorrect-use: Trying to use a writer outside the change() block.\",this)}}_addOperationForAffectedMarkers(e,t){for(const n of this.model.markers){if(!n.managedUsingOperations){continue}const i=n.getRange();let o=false;if(e===\"move\"){o=t.containsPosition(i.start)||t.start.isEqual(i.start)||t.containsPosition(i.end)||t.end.isEqual(i.end)}else{const e=t.nodeBefore;const n=t.nodeAfter;const s=i.start.parent==e&&i.start.isAtEnd;const r=i.end.parent==n&&i.end.offset==0;const a=i.end.nodeAfter==n;const c=i.start.nodeAfter==n;o=s||r||a||c}if(o){this.updateMarker(n.name,{range:i})}}}}function hg(e,t,n,i){const o=e.model;const s=o.document;let r=i.start;let a;let c;let l;for(const e of i.getWalker({shallow:true})){l=e.item.getAttribute(t);if(a&&c!=l){if(c!=n){d()}r=a}a=e.nextPosition;c=l}if(a instanceof $h&&a!=r&&c!=n){d()}function d(){const i=new Jh(r,a);const l=i.root.document?s.version:null;const d=new tg(i,t,c,n,l);e.batch.addOperation(d);o.applyOperation(d)}}function fg(e,t,n,i){const o=e.model;const s=o.document;const r=i.getAttribute(t);let a,c;if(r!=n){const l=i.root===i;if(l){const e=i.document?s.version:null;c=new ag(i,t,r,n,e)}else{a=new Jh($h._createBefore(i),e.createPositionAfter(i));const o=a.root.document?s.version:null;c=new tg(a,t,r,n,o)}e.batch.addOperation(c);o.applyOperation(c)}}function mg(e,t,n,i,o){const s=e.model;const r=s.document;const a=new sg(t,n,i,s.markers,o,r.version);e.batch.addOperation(a);s.applyOperation(a)}function gg(e,t,n,i){let o;if(e.root.document){const n=i.document;const s=new $h(n.graveyard,[0]);o=new ig(e,t,s,n.version)}else{o=new ng(e,t)}n.addOperation(o);i.applyOperation(o)}function pg(e,t){if(e===t){return true}if(e instanceof dg&&t instanceof dg){return true}return false}class bg{constructor(e){this._markerCollection=e;this._changesInElement=new Map;this._elementSnapshots=new Map;this._changedMarkers=new Map;this._changeCount=0;this._cachedChanges=null;this._cachedChangesWithGraveyard=null}get isEmpty(){return this._changesInElement.size==0&&this._changedMarkers.size==0}refreshItem(e){if(this._isInInsertedElement(e.parent)){return}this._markRemove(e.parent,e.startOffset,e.offsetSize);this._markInsert(e.parent,e.startOffset,e.offsetSize);const t=Jh._createOn(e);for(const e of this._markerCollection.getMarkersIntersectingRange(t)){const t=e.getRange();this.bufferMarkerChange(e.name,t,t,e.affectsData)}this._cachedChanges=null}bufferOperation(e){switch(e.type){case\"insert\":{if(this._isInInsertedElement(e.position.parent)){return}this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break}case\"addAttribute\":case\"removeAttribute\":case\"changeAttribute\":{for(const t of e.range.getItems({shallow:true})){if(this._isInInsertedElement(t.parent)){continue}this._markAttribute(t)}break}case\"remove\":case\"move\":case\"reinsert\":{if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition)){return}const t=this._isInInsertedElement(e.sourcePosition.parent);const n=this._isInInsertedElement(e.targetPosition.parent);if(!t){this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany)}if(!n){this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany)}break}case\"rename\":{if(this._isInInsertedElement(e.position.parent)){return}this._markRemove(e.position.parent,e.position.offset,1);this._markInsert(e.position.parent,e.position.offset,1);const t=Jh._createFromPositionAndShift(e.position,1);for(const e of this._markerCollection.getMarkersIntersectingRange(t)){const t=e.getRange();this.bufferMarkerChange(e.name,t,t,e.affectsData)}break}case\"split\":{const t=e.splitPosition.parent;if(!this._isInInsertedElement(t)){this._markRemove(t,e.splitPosition.offset,e.howMany)}if(!this._isInInsertedElement(e.insertionPosition.parent)){this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1)}if(e.graveyardPosition){this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1)}break}case\"merge\":{const t=e.sourcePosition.parent;if(!this._isInInsertedElement(t.parent)){this._markRemove(t.parent,t.startOffset,1)}const n=e.graveyardPosition.parent;this._markInsert(n,e.graveyardPosition.offset,1);const i=e.targetPosition.parent;if(!this._isInInsertedElement(i)){this._markInsert(i,e.targetPosition.offset,t.maxOffset)}break}}this._cachedChanges=null}bufferMarkerChange(e,t,n,i){const o=this._changedMarkers.get(e);if(!o){this._changedMarkers.set(e,{oldRange:t,newRange:n,affectsData:i})}else{o.newRange=n;o.affectsData=i;if(o.oldRange==null&&o.newRange==null){this._changedMarkers.delete(e)}}}getMarkersToRemove(){const e=[];for(const[t,n]of this._changedMarkers){if(n.oldRange!=null){e.push({name:t,range:n.oldRange})}}return e}getMarkersToAdd(){const e=[];for(const[t,n]of this._changedMarkers){if(n.newRange!=null){e.push({name:t,range:n.newRange})}}return e}getChangedMarkers(){return Array.from(this._changedMarkers).map(e=>({name:e[0],data:{oldRange:e[1].oldRange,newRange:e[1].newRange}}))}hasDataChanges(){for(const[,e]of this._changedMarkers){if(e.affectsData){return true}}return this._changesInElement.size>0}getChanges(e={includeChangesInGraveyard:false}){if(this._cachedChanges){if(e.includeChangesInGraveyard){return this._cachedChangesWithGraveyard.slice()}else{return this._cachedChanges.slice()}}const t=[];for(const e of this._changesInElement.keys()){const n=this._changesInElement.get(e).sort((e,t)=>{if(e.offset===t.offset){if(e.type!=t.type){return e.type==\"remove\"?-1:1}return 0}return e.offset{if(e.position.root!=t.position.root){return e.position.root.rootNamen.offset){if(i>o){const e={type:\"attribute\",offset:o,howMany:i-o,count:this._changeCount++};this._handleChange(e,t);t.push(e)}e.nodesToHandle=n.offset-e.offset;e.howMany=e.nodesToHandle}else if(e.offset>=n.offset&&e.offseto){e.nodesToHandle=i-o;e.offset=o}else{e.nodesToHandle=0}}}if(n.type==\"remove\"){if(e.offsetn.offset){const o={type:\"attribute\",offset:n.offset,howMany:i-n.offset,count:this._changeCount++};this._handleChange(o,t);t.push(o);e.nodesToHandle=n.offset-e.offset;e.howMany=e.nodesToHandle}}if(n.type==\"attribute\"){if(e.offset>=n.offset&&i<=o){e.nodesToHandle=0;e.howMany=0;e.offset=0}else if(e.offset<=n.offset&&i>=o){n.howMany=0}}}}e.howMany=e.nodesToHandle;delete e.nodesToHandle}_getInsertDiff(e,t,n){return{type:\"insert\",position:$h._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}_getRemoveDiff(e,t,n){return{type:\"remove\",position:$h._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}_getAttributesDiff(e,t,n){const i=[];n=new Map(n);for(const[o,s]of t){const t=n.has(o)?n.get(o):null;if(t!==s){i.push({type:\"attribute\",position:e.start,range:e.clone(),length:1,attributeKey:o,attributeOldValue:s,attributeNewValue:t,changeCount:this._changeCount++})}n.delete(o)}for(const[t,o]of n){i.push({type:\"attribute\",position:e.start,range:e.clone(),length:1,attributeKey:t,attributeOldValue:null,attributeNewValue:o,changeCount:this._changeCount++})}return i}_isInInsertedElement(e){const t=e.parent;if(!t){return false}const n=this._changesInElement.get(t);const i=e.startOffset;if(n){for(const e of n){if(e.type==\"insert\"&&i>=e.offset&&ii){for(let t=0;t{const n=t[0];if(n.isDocumentOperation&&n.baseVersion!==this.version){throw new rr[\"b\"](\"model-document-applyOperation-wrong-version: Only operations with matching versions can be applied.\",this,{operation:n})}},{priority:\"highest\"});this.listenTo(e,\"applyOperation\",(e,t)=>{const n=t[0];if(n.isDocumentOperation){this.differ.bufferOperation(n)}},{priority:\"high\"});this.listenTo(e,\"applyOperation\",(e,t)=>{const n=t[0];if(n.isDocumentOperation){this.version++;this.history.addOperation(n)}},{priority:\"low\"});this.listenTo(this.selection,\"change\",()=>{this._hasSelectionChangedFromTheLastChangeBlock=true});this.listenTo(e.markers,\"update\",(e,t,n,i)=>{this.differ.bufferMarkerChange(t.name,n,i,t.affectsData);if(n===null){t.on(\"change\",(e,n)=>{this.differ.bufferMarkerChange(t.name,n,t.getRange(),t.affectsData)})}})}get graveyard(){return this.getRoot(Mg)}createRoot(e=\"$root\",t=\"main\"){if(this.roots.get(t)){throw new rr[\"b\"](\"model-document-createRoot-name-exists: Root with specified name already exists.\",this,{name:t})}const n=new dg(this,e,t);this.roots.add(n);return n}destroy(){this.selection.destroy();this.stopListening()}getRoot(e=\"main\"){return this.roots.get(e)}getRootNames(){return Array.from(this.roots,e=>e.rootName).filter(e=>e!=Mg)}registerPostFixer(e){this._postFixers.add(e)}toJSON(){const e=zr(this);e.selection=\"[engine.model.DocumentSelection]\";e.model=\"[engine.model.Model]\";return e}_handleChangeBlock(e){if(this._hasDocumentChangedFromTheLastChangeBlock()){this._callPostFixers(e);this.selection.refresh();if(this.differ.hasDataChanges()){this.fire(\"change:data\",e.batch)}else{this.fire(\"change\",e.batch)}this.selection.refresh();this.differ.reset()}this._hasSelectionChangedFromTheLastChangeBlock=false}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){for(const e of this.roots){if(e!==this.graveyard){return e}}return this.graveyard}_getDefaultRange(){const e=this._getDefaultRoot();const t=this.model;const n=t.schema;const i=t.createPositionFromPath(e,[0]);const o=n.getNearestSelectionRange(i);return o||t.createRange(i)}_validateSelectionRange(e){return Pg(e.start)&&Pg(e.end)}_callPostFixers(e){let t=false;do{for(const n of this._postFixers){this.selection.refresh();t=n(e);if(t){break}}}while(t)}}yr(Eg,dr);function Pg(e){const t=e.textNode;if(t){const n=t.data;const i=e.offset-t.startOffset;return!Cg(n,i)&&!Tg(n,i)}return true}class Sg{constructor(){this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(e){return this._markers.has(e)}get(e){return this._markers.get(e)||null}_set(e,t,n=false,i=false){const o=e instanceof Ig?e.name:e;const s=this._markers.get(o);if(s){const e=s.getRange();let r=false;if(!e.isEqual(t)){s._attachLiveRange(cf.fromRange(t));r=true}if(n!=s.managedUsingOperations){s._managedUsingOperations=n;r=true}if(typeof i===\"boolean\"&&i!=s.affectsData){s._affectsData=i;r=true}if(r){this.fire(\"update:\"+o,s,e,t)}return s}const r=cf.fromRange(t);const a=new Ig(o,r,n,i);this._markers.set(o,a);this.fire(\"update:\"+o,a,null,t);return a}_remove(e){const t=e instanceof Ig?e.name:e;const n=this._markers.get(t);if(n){this._markers.delete(t);this.fire(\"update:\"+t,n,n.getRange(),null);this._destroyMarker(n);return true}return false}_refresh(e){const t=e instanceof Ig?e.name:e;const n=this._markers.get(t);if(!n){throw new rr[\"b\"](\"markercollection-refresh-marker-not-exists: Marker with provided name does not exists.\",this)}const i=n.getRange();this.fire(\"update:\"+t,n,i,i,n.managedUsingOperations,n.affectsData)}*getMarkersAtPosition(e){for(const t of this){if(t.getRange().containsPosition(e)){yield t}}}*getMarkersIntersectingRange(e){for(const t of this){if(t.getRange().getIntersection(e)!==null){yield t}}}destroy(){for(const e of this._markers.values()){this._destroyMarker(e)}this._markers=null;this.stopListening()}*getMarkersGroup(e){for(const t of this._markers.values()){if(t.name.startsWith(e+\":\")){yield t}}}_destroyMarker(e){e.stopListening();e._detachLiveRange()}}yr(Sg,dr);class Ig{constructor(e,t,n,i){this.name=e;this._liveRange=this._attachLiveRange(t);this._managedUsingOperations=n;this._affectsData=i}get managedUsingOperations(){if(!this._liveRange){throw new rr[\"b\"](\"marker-destroyed: Cannot use a destroyed marker instance.\",this)}return this._managedUsingOperations}get affectsData(){if(!this._liveRange){throw new rr[\"b\"](\"marker-destroyed: Cannot use a destroyed marker instance.\",this)}return this._affectsData}getStart(){if(!this._liveRange){throw new rr[\"b\"](\"marker-destroyed: Cannot use a destroyed marker instance.\",this)}return this._liveRange.start.clone()}getEnd(){if(!this._liveRange){throw new rr[\"b\"](\"marker-destroyed: Cannot use a destroyed marker instance.\",this)}return this._liveRange.end.clone()}getRange(){if(!this._liveRange){throw new rr[\"b\"](\"marker-destroyed: Cannot use a destroyed marker instance.\",this)}return this._liveRange.toRange()}is(e){return e===\"marker\"||e===\"model:marker\"}_attachLiveRange(e){if(this._liveRange){this._detachLiveRange()}e.delegate(\"change:range\").to(this);e.delegate(\"change:content\").to(this);this._liveRange=e;return e}_detachLiveRange(){this._liveRange.stopDelegating(\"change:range\",this);this._liveRange.stopDelegating(\"change:content\",this);this._liveRange.detach();this._liveRange=null}}yr(Ig,dr);class Og extends Hm{get type(){return\"noop\"}clone(){return new Og(this.baseVersion)}getReversed(){return new Og(this.baseVersion+1)}_execute(){}static get className(){return\"NoOperation\"}}const Ng={};Ng[tg.className]=tg;Ng[og.className]=og;Ng[sg.className]=sg;Ng[ig.className]=ig;Ng[Og.className]=Og;Ng[Hm.className]=Hm;Ng[rg.className]=rg;Ng[ag.className]=ag;Ng[lg.className]=lg;Ng[cg.className]=cg;class Lg{static fromJSON(e,t){return Ng[e.__className].fromJSON(e,t)}}class Rg extends $h{constructor(e,t,n=\"toNone\"){super(e,t,n);if(!this.root.is(\"rootElement\")){throw new rr[\"b\"](\"model-liveposition-root-not-rootelement: LivePosition's root has to be an instance of RootElement.\",e)}Dg.call(this)}detach(){this.stopListening()}is(e){return e===\"livePosition\"||e===\"model:livePosition\"||e==\"position\"||e===\"model:position\"}toPosition(){return new $h(this.root,this.path.slice(),this.stickiness)}static fromPosition(e,t){return new this(e.root,e.path.slice(),t?t:e.stickiness)}}function Dg(){this.listenTo(this.root.document.model,\"applyOperation\",(e,t)=>{const n=t[0];if(!n.isDocumentOperation){return}jg.call(this,n)},{priority:\"low\"})}function jg(e){const t=this.getTransformedByOperation(e);if(!this.isEqual(t)){const e=this.toPosition();this.path=t.path;this.root=t.root;this.fire(\"change\",e)}}yr(Rg,dr);function zg(e,t,n,i){return e.change(o=>{let s;if(!n){s=e.document.selection}else if(n instanceof tf||n instanceof ff){s=n}else{s=o.createSelection(n,i)}if(!s.isCollapsed){e.deleteContent(s,{doNotAutoparagraph:true})}const r=new Bg(e,o,s.anchor);let a;if(t.is(\"documentFragment\")){a=t.getChildren()}else{a=[t]}r.handleNodes(a,{isFirst:true,isLast:true});const c=r.getSelectionRange();if(c){if(s instanceof ff){o.setSelection(c)}else{s.setTo(c)}}else{}const l=r.getAffectedRange()||e.createRange(s.anchor);r.destroy();return l})}class Bg{constructor(e,t,n){this.model=e;this.writer=t;this.position=n;this.canMergeWith=new Set([this.position.parent]);this.schema=e.schema;this._filterAttributesOf=[];this._affectedStart=null;this._affectedEnd=null}handleNodes(e,t){e=Array.from(e);for(let n=0;n{if(!n.doNotResetEntireContent&&qg(o,t)){$g(e,t,o);return}const s=i.start;const r=Rg.fromPosition(i.end,\"toNext\");if(!i.start.isTouching(i.end)){e.remove(i)}if(!n.leaveUnmerged){Fg(e,s,r);o.removeDisallowedAttributes(s.parent.getChildren(),e)}Yg(e,t,s);if(!n.doNotAutoparagraph&&Hg(o,s)){Wg(e,s,t)}r.detach()})}function Fg(e,t,n){const i=t.parent;const o=n.parent;if(i==o){return}if(e.model.schema.isLimit(i)||e.model.schema.isLimit(o)){return}if(!Ug(t,n,e.model.schema)){return}t=e.createPositionAfter(i);n=e.createPositionBefore(o);if(!n.isEqual(t)){e.insert(o,t)}e.merge(t);while(n.parent.isEmpty){const t=n.parent;n=e.createPositionBefore(t);e.remove(t)}Fg(e,t,n)}function Hg(e,t){const n=e.checkChild(t,\"$text\");const i=e.checkChild(t,\"paragraph\");return!n&&i}function Ug(e,t,n){const i=new Jh(e,t);for(const e of i.getWalker()){if(n.isLimit(e.item)){return false}}return true}function Wg(e,t,n){const i=e.createElement(\"paragraph\");e.insert(i,t);Yg(e,n,e.createPositionAt(i,0))}function $g(e,t){const n=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(n));Wg(e,e.createPositionAt(n,0),t)}function qg(e,t){const n=e.getLimitElement(t);if(!t.containsEntireContent(n)){return false}const i=t.getFirstRange();if(i.start.parent==i.end.parent){return false}return e.checkChild(n,\"paragraph\")}function Yg(e,t,n){if(t instanceof ff){e.setSelection(n)}else{t.setTo(n)}}const Gg=' ,.?!:;\"-()';function Jg(e,t,n={}){const i=e.schema;const o=n.direction!=\"backward\";const s=n.unit?n.unit:\"character\";const r=t.focus;const a=new Uh({boundaries:Zg(r,o),singleCharacters:true,direction:o?\"forward\":\"backward\"});const c={walker:a,schema:i,isForward:o,unit:s};let l;while(l=a.next()){if(l.done){return}const n=Kg(c,l.value);if(n){if(t instanceof ff){e.change(e=>{e.setSelectionFocus(n)})}else{t.setFocus(n)}return}}}function Kg(e,t){if(t.type==\"text\"){if(e.unit===\"word\"){return Xg(e.walker,e.isForward)}return Qg(e.walker,e.unit,e.isForward)}if(t.type==(e.isForward?\"elementStart\":\"elementEnd\")){if(e.schema.isObject(t.item)){return $h._createAt(t.item,e.isForward?\"after\":\"before\")}if(e.schema.checkChild(t.nextPosition,\"$text\")){return t.nextPosition}}else{if(e.schema.isLimit(t.item)){e.walker.skip(()=>true);return}if(e.schema.checkChild(t.nextPosition,\"$text\")){return t.nextPosition}}}function Qg(e,t){const n=e.position.textNode;if(n){const i=n.data;let o=e.position.offset-n.startOffset;while(Cg(i,o)||t==\"character\"&&Tg(i,o)){e.next();o=e.position.offset-n.startOffset}}return e.position}function Xg(e,t){let n=e.position.textNode;if(n){let i=e.position.offset-n.startOffset;while(!ep(n.data,i,t)&&!tp(n,i,t)){e.next();const o=t?e.position.nodeAfter:e.position.nodeBefore;if(o&&o.is(\"text\")){const i=o.data.charAt(t?0:o.data.length-1);if(!Gg.includes(i)){e.next();n=e.position.textNode}}i=e.position.offset-n.startOffset}}return e.position}function Zg(e,t){const n=e.root;const i=$h._createAt(n,t?\"end\":0);if(t){return new Jh(e,i)}else{return new Jh(i,e)}}function ep(e,t,n){const i=t+(n?0:-1);return Gg.includes(e.charAt(i))}function tp(e,t,n){return t===(n?e.endOffset:0)}function np(e,t){return e.change(e=>{const n=e.createDocumentFragment();const i=t.getFirstRange();if(!i||i.isCollapsed){return n}const o=i.start.root;const s=i.start.getCommonPath(i.end);const r=o.getNodeByPath(s);let a;if(i.start.parent==i.end.parent){a=i}else{a=e.createRange(e.createPositionAt(r,i.start.path[s.length]),e.createPositionAt(r,i.end.path[s.length]+1))}const c=a.end.offset-a.start.offset;for(const t of a.getItems({shallow:true})){if(t.is(\"textProxy\")){e.appendText(t.data,t.getAttributes(),n)}else{e.append(t._clone(true),n)}}if(a!=i){const t=i._getTransformedByMove(a.start,e.createPositionAt(n,0),c)[0];const o=e.createRange(e.createPositionAt(n,0),t.start);const s=e.createRange(t.end,e.createPositionAt(n,\"end\"));ip(s,e);ip(o,e)}return n})}function ip(e,t){const n=[];Array.from(e.getItems({direction:\"backward\"})).map(e=>t.createRangeOn(e)).filter(t=>{const n=(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end));return n}).forEach(e=>{n.push(e.start.parent);t.remove(e)});n.forEach(e=>{let n=e;while(n.parent&&n.isEmpty){const e=t.createRangeOn(n);n=n.parent;t.remove(e)}})}function op(e){e.document.registerPostFixer(t=>sp(t,e))}function sp(e,t){const n=t.document.selection;const i=t.schema;const o=[];let s=false;for(const e of n.getRanges()){const t=rp(e,i);if(t){o.push(t);s=true}else{o.push(e)}}if(s){e.setSelection(up(o),{backward:n.isBackward})}}function rp(e,t){if(e.isCollapsed){return ap(e,t)}return cp(e,t)}function ap(e,t){const n=e.start;const i=t.getNearestSelectionRange(n);if(!i){return null}if(!i.isCollapsed){return i}const o=i.start;if(n.isEqual(o)){return null}return new Jh(o)}function cp(e,t){const n=e.start;const i=e.end;const o=t.checkChild(n,\"$text\");const s=t.checkChild(i,\"$text\");const r=t.getLimitElement(n);const a=t.getLimitElement(i);if(r===a){if(o&&s){return null}if(dp(n,i,t)){const e=n.nodeAfter&&t.isObject(n.nodeAfter);const o=e?null:t.getNearestSelectionRange(n,\"forward\");const s=i.nodeBefore&&t.isObject(i.nodeBefore);const r=s?null:t.getNearestSelectionRange(i,\"backward\");const a=o?o.start:n;const c=r?r.start:i;return new Jh(a,c)}}const c=r&&!r.is(\"rootElement\");const l=a&&!a.is(\"rootElement\");if(c||l){const e=n.nodeAfter&&i.nodeBefore&&n.nodeAfter.parent===i.nodeBefore.parent;const o=c&&(!e||!hp(n.nodeAfter,t));const s=l&&(!e||!hp(i.nodeBefore,t));let d=n;let u=i;if(o){d=$h._createBefore(lp(r,t))}if(s){u=$h._createAfter(lp(a,t))}return new Jh(d,u)}return null}function lp(e,t){let n=e;let i=n;while(t.isLimit(i)&&i.parent){n=i;i=i.parent}return n}function dp(e,t,n){const i=e.nodeAfter&&!n.isLimit(e.nodeAfter)||n.checkChild(e,\"$text\");const o=t.nodeBefore&&!n.isLimit(t.nodeBefore)||n.checkChild(t,\"$text\");return i||o}function up(e){const t=[];t.push(e.shift());for(const n of e){const e=t.pop();if(n.isIntersecting(e)){const i=e.start.isAfter(n.start)?n.start:e.start;const o=e.end.isAfter(n.end)?e.end:n.end;const s=new Jh(i,o);t.push(s)}else{t.push(e);t.push(n)}}return t}function hp(e,t){return e&&t.isObject(e)}class fp{constructor(){this.markers=new Sg;this.document=new Eg(this);this.schema=new gm;this._pendingChanges=[];this._currentWriter=null;[\"insertContent\",\"deleteContent\",\"modifySelection\",\"getSelectedContent\",\"applyOperation\"].forEach(e=>this.decorate(e));this.on(\"applyOperation\",(e,t)=>{const n=t[0];n._validate()},{priority:\"highest\"});this.schema.register(\"$root\",{isLimit:true});this.schema.register(\"$block\",{allowIn:\"$root\",isBlock:true});this.schema.register(\"$text\",{allowIn:\"$block\",isInline:true});this.schema.register(\"$clipboardHolder\",{allowContentOf:\"$root\",isLimit:true});this.schema.extend(\"$text\",{allowIn:\"$clipboardHolder\"});this.schema.register(\"$marker\");this.schema.addChildCheck((e,t)=>{if(t.name===\"$marker\"){return true}});op(this)}change(e){try{if(this._pendingChanges.length===0){this._pendingChanges.push({batch:new Fm,callback:e});return this._runPendingChanges()[0]}else{return e(this._currentWriter)}}catch(e){rr[\"b\"].rethrowUnexpectedError(e,this)}}enqueueChange(e,t){try{if(typeof e===\"string\"){e=new Fm(e)}else if(typeof e==\"function\"){t=e;e=new Fm}this._pendingChanges.push({batch:e,callback:t});if(this._pendingChanges.length==1){this._runPendingChanges()}}catch(e){rr[\"b\"].rethrowUnexpectedError(e,this)}}applyOperation(e){e._execute()}insertContent(e,t,n){return zg(this,e,t,n)}deleteContent(e,t){Vg(this,e,t)}modifySelection(e,t){Jg(this,e,t)}getSelectedContent(e){return np(this,e)}hasContent(e,t){const n=e instanceof Fh?Jh._createIn(e):e;if(n.isCollapsed){return false}for(const e of this.markers.getMarkersIntersectingRange(n)){if(e.affectsData){return true}}const{ignoreWhitespaces:i=false}=t||{};for(const e of n.getItems()){if(e.is(\"textProxy\")){if(!i){return true}else if(e.data.search(/\\S/)!==-1){return true}}else if(this.schema.isObject(e)){return true}}return false}createPositionFromPath(e,t,n){return new $h(e,t,n)}createPositionAt(e,t){return $h._createAt(e,t)}createPositionAfter(e){return $h._createAfter(e)}createPositionBefore(e){return $h._createBefore(e)}createRange(e,t){return new Jh(e,t)}createRangeIn(e){return Jh._createIn(e)}createRangeOn(e){return Jh._createOn(e)}createSelection(e,t,n){return new tf(e,t,n)}createBatch(e){return new Fm(e)}createOperationFromJSON(e){return Lg.fromJSON(e,this.document)}destroy(){this.document.destroy();this.stopListening()}_runPendingChanges(){const e=[];this.fire(\"_beforeChanges\");while(this._pendingChanges.length){const t=this._pendingChanges[0].batch;this._currentWriter=new ug(this,t);const n=this._pendingChanges[0].callback(this._currentWriter);e.push(n);this.document._handleChangeBlock(this._currentWriter);this._pendingChanges.shift();this._currentWriter=null}this.fire(\"_afterChanges\");return e}}yr(fp,Kc);class mp{constructor(){this._listener=Object.create(Wd)}listenTo(e){this._listener.listenTo(e,\"keydown\",(e,t)=>{this._listener.fire(\"_keydown:\"+Rl(t),t)})}set(e,t,n={}){const i=Dl(e);const o=n.priority;this._listener.listenTo(this._listener,\"_keydown:\"+i,(e,n)=>{t(n,()=>{n.preventDefault();n.stopPropagation();e.stop()});e.return=true},{priority:o})}press(e){return!!this._listener.fire(\"_keydown:\"+Rl(e),e)}destroy(){this._listener.stopListening()}}class gp extends mp{constructor(e){super();this.editor=e}set(e,t,n={}){if(typeof t==\"string\"){const e=t;t=(t,n)=>{this.editor.execute(e);n()}}super.set(e,t,n)}}class pp{constructor(e={}){this._context=e.context||new Lr({language:e.language});this._context._addEditor(this,!e.context);const t=Array.from(this.constructor.builtinPlugins||[]);this.config=new Js(e,this.constructor.defaultConfig);this.config.define(\"plugins\",t);this.config.define(this._context._getEditorConfig());this.plugins=new Ar(this,t,this._context.plugins);this.locale=this._context.locale;this.t=this.locale.t;this.commands=new hm;this.set(\"state\",\"initializing\");this.once(\"ready\",()=>this.state=\"ready\",{priority:\"high\"});this.once(\"destroy\",()=>this.state=\"destroyed\",{priority:\"high\"});this.set(\"isReadOnly\",false);this.model=new fp;const n=new Lc;this.data=new Dm(this.model,n);this.editing=new um(this.model,n);this.editing.view.document.bind(\"isReadOnly\").to(this);this.conversion=new zm([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher);this.conversion.addAlias(\"dataDowncast\",this.data.downcastDispatcher);this.conversion.addAlias(\"editingDowncast\",this.editing.downcastDispatcher);this.keystrokes=new gp(this);this.keystrokes.listenTo(this.editing.view.document)}initPlugins(){const e=this.config;const t=e.get(\"plugins\");const n=e.get(\"removePlugins\")||[];const i=e.get(\"extraPlugins\")||[];return this.plugins.init(t.concat(i),n)}destroy(){let e=Promise.resolve();if(this.state==\"initializing\"){e=new Promise(e=>this.once(\"ready\",e))}return e.then(()=>{this.fire(\"destroy\");this.stopListening();this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy();this.data.destroy();this.editing.destroy();this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(...e){try{this.commands.execute(...e)}catch(e){rr[\"b\"].rethrowUnexpectedError(e,this)}}}yr(pp,Kc);const bp={setData(e){this.data.set(e)},getData(e){return this.data.get(e)}};var wp=bp;function _p(e,t){if(e instanceof HTMLTextAreaElement){e.value=t}e.innerHTML=t}const vp={updateSourceElement(){if(!this.sourceElement){throw new rr[\"b\"](\"editor-missing-sourceelement: Cannot update the source element of a detached editor.\",this)}_p(this.sourceElement,this.data.get())}};var kp=vp;function yp(e){if(!me(e.updateSourceElement)){throw new rr[\"b\"](\"attachtoform-missing-elementapi-interface: Editor passed to attachToForm() must implement ElementApi.\",e)}const t=e.sourceElement;if(t&&t.tagName.toLowerCase()===\"textarea\"&&t.form){let n;const i=t.form;const o=()=>e.updateSourceElement();if(me(i.submit)){n=i.submit;i.submit=()=>{o();n.apply(i)}}i.addEventListener(\"submit\",o);e.on(\"destroy\",()=>{i.removeEventListener(\"submit\",o);if(n){i.submit=n}})}}class xp{getHtml(e){const t=document.implementation.createHTMLDocument(\"\");const n=t.createElement(\"div\");n.appendChild(e);return n.innerHTML}}class Ap{constructor(e){this._domParser=new DOMParser;this._domConverter=new jd(e,{blockFillerMode:\"nbsp\"});this._htmlWriter=new xp}toData(e){const t=this._domConverter.viewToDom(e,document);return this._htmlWriter.getHtml(t)}toView(e){const t=this._toDom(e);return this._domConverter.domToView(t)}_toDom(e){const t=this._domParser.parseFromString(e,\"text/html\");const n=t.createDocumentFragment();const i=t.body.childNodes;while(i.length>0){n.appendChild(i[0])}return n}}class Cp{constructor(e){this.editor=e;this._components=new Map}*names(){for(const e of this._components.values()){yield e.originalName}}add(e,t){if(this.has(e)){throw new rr[\"b\"](\"componentfactory-item-exists: The item already exists in the component factory.\",this,{name:e})}this._components.set(Tp(e),{callback:t,originalName:e})}create(e){if(!this.has(e)){throw new rr[\"b\"](\"componentfactory-item-missing: The required component is not registered in the factory.\",this,{name:e})}return this._components.get(Tp(e)).callback(this.editor.locale)}has(e){return this._components.has(Tp(e))}}function Tp(e){return String(e).toLowerCase()}class Mp{constructor(){this.set(\"isFocused\",false);this.set(\"focusedElement\",null);this._elements=new Set;this._nextEventLoopTimeout=null}add(e){if(this._elements.has(e)){throw new rr[\"b\"](\"focusTracker-add-element-already-exist\",this)}this.listenTo(e,\"focus\",()=>this._focus(e),{useCapture:true});this.listenTo(e,\"blur\",()=>this._blur(),{useCapture:true});this._elements.add(e)}remove(e){if(e===this.focusedElement){this._blur(e)}if(this._elements.has(e)){this.stopListening(e);this._elements.delete(e)}}destroy(){this.stopListening()}_focus(e){clearTimeout(this._nextEventLoopTimeout);this.focusedElement=e;this.isFocused=true}_blur(){clearTimeout(this._nextEventLoopTimeout);this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null;this.isFocused=false},0)}}yr(Mp,Wd);yr(Mp,Kc);class Ep{constructor(e){this.editor=e;this.componentFactory=new Cp(e);this.focusTracker=new Mp;this._editableElementsMap=new Map;this.listenTo(e.editing.view.document,\"layoutChanged\",()=>this.update())}get element(){return null}update(){this.fire(\"update\")}destroy(){this.stopListening();this.focusTracker.destroy();for(const e of this._editableElementsMap.values()){e.ckeditorInstance=null}this._editableElementsMap=new Map}setEditableElement(e,t){this._editableElementsMap.set(e,t);if(!t.ckeditorInstance){t.ckeditorInstance=this.editor}}getEditableElement(e=\"main\"){return this._editableElementsMap.get(e)}getEditableElementsNames(){return this._editableElementsMap.keys()}get _editableElements(){console.warn(\"editor-ui-deprecated-editable-elements: \"+\"The EditorUI#_editableElements property has been deprecated and will be removed in the near future.\",{editorUI:this});return this._editableElementsMap}}yr(Ep,dr);function Pp({origin:e,originKeystrokeHandler:t,originFocusTracker:n,toolbar:i,beforeFocus:o,afterBlur:s}){n.add(i.element);t.set(\"Alt+F10\",(e,t)=>{if(n.isFocused&&!i.focusTracker.isFocused){if(o){o()}i.focus();t()}});i.keystrokes.set(\"Esc\",(t,n)=>{if(i.focusTracker.isFocused){e.focus();if(s){s()}n()}})}function Sp(e){if(Array.isArray(e)){return{items:e}}if(!e){return{items:[]}}return Object.assign({items:[]},e)}var Ip=n(14);const Op=new WeakMap;function Np(e){const{view:t,element:n,text:i,isDirectHost:o=true}=e;const s=t.document;if(!Op.has(s)){Op.set(s,new Map);s.registerPostFixer(e=>zp(s,e))}Op.get(s).set(n,{text:i,isDirectHost:o});t.change(e=>zp(s,e))}function Lp(e,t){const n=t.document;e.change(e=>{if(!Op.has(n)){return}const i=Op.get(n);const o=i.get(t);e.removeAttribute(\"data-placeholder\",o.hostElement);Dp(e,o.hostElement);i.delete(t)})}function Rp(e,t){if(!t.hasClass(\"ck-placeholder\")){e.addClass(\"ck-placeholder\",t);return true}return false}function Dp(e,t){if(t.hasClass(\"ck-placeholder\")){e.removeClass(\"ck-placeholder\",t);return true}return false}function jp(e){if(!e.isAttached()){return false}const t=!Array.from(e.getChildren()).some(e=>!e.is(\"uiElement\"));const n=e.document;if(!n.isFocused&&t){return true}const i=n.selection;const o=i.anchor;if(t&&o&&o.parent!==e){return true}return false}function zp(e,t){const n=Op.get(e);let i=false;for(const[e,o]of n){if(Bp(t,e,o)){i=true}}return i}function Bp(e,t,n){const{text:i,isDirectHost:o}=n;const s=o?t:Vp(t);let r=false;if(!s){return false}n.hostElement=s;if(s.getAttribute(\"data-placeholder\")!==i){e.setAttribute(\"data-placeholder\",i,s);r=true}if(jp(s)){if(Rp(e,s)){r=true}}else if(Dp(e,s)){r=true}return r}function Vp(e){if(e.childCount===1){const t=e.getChild(0);if(t.is(\"element\")&&!t.is(\"uiElement\")){return t}}return null}class Fp extends Ep{constructor(e,t){super(e);this.view=t;this._toolbarConfig=Sp(e.config.get(\"toolbar\"))}get element(){return this.view.editable.element}init(){const e=this.editor;const t=this.view;const n=e.editing.view;const i=t.editable;const o=n.document.getRoot();i.name=o.rootName;t.render();const s=i.element;this.setEditableElement(i.name,s);this.focusTracker.add(s);i.bind(\"isFocused\").to(this.focusTracker);n.attachDomRoot(s);this._initPlaceholder();this._initToolbar();this.fire(\"ready\")}destroy(){const e=this.view;const t=this.editor.editing.view;t.detachDomRoot(e.editable.name);e.destroy();super.destroy()}_initToolbar(){const e=this.editor;const t=this.view;const n=t.editable.element;const i=e.editing.view;const o=t.toolbar;t.panel.bind(\"isVisible\").to(this.focusTracker,\"isFocused\");if(this._toolbarConfig.viewportTopOffset){t.viewportTopOffset=this._toolbarConfig.viewportTopOffset}t.listenTo(e.ui,\"update\",()=>{if(t.panel.isVisible){t.panel.pin({target:n,positions:t.panelPositions})}});o.fillFromConfig(this._toolbarConfig.items,this.componentFactory);Pp({origin:i,originFocusTracker:this.focusTracker,originKeystrokeHandler:e.keystrokes,toolbar:o})}_initPlaceholder(){const e=this.editor;const t=e.editing.view;const n=t.document.getRoot();const i=e.sourceElement;const o=e.config.get(\"placeholder\")||i&&i.tagName.toLowerCase()===\"textarea\"&&i.getAttribute(\"placeholder\");if(o){Np({view:t,element:n,text:o,isDirectHost:false})}}}class Hp extends xr{constructor(e=[]){super(e,{idProperty:\"viewUid\"});this.on(\"add\",(e,t,n)=>{this._renderViewIntoCollectionParent(t,n)});this.on(\"remove\",(e,t)=>{if(t.element&&this._parentElement){t.element.remove()}});this._parentElement=null}destroy(){this.map(e=>e.destroy())}setParent(e){this._parentElement=e;for(const e of this){this._renderViewIntoCollectionParent(e)}}delegate(...e){if(!e.length||!Up(e)){throw new rr[\"b\"](\"ui-viewcollection-delegate-wrong-events: All event names must be strings.\",this)}return{to:t=>{for(const n of this){for(const i of e){n.delegate(i).to(t)}}this.on(\"add\",(n,i)=>{for(const n of e){i.delegate(n).to(t)}});this.on(\"remove\",(n,i)=>{for(const n of e){i.stopDelegating(n,t)}})}}}_renderViewIntoCollectionParent(e,t){if(!e.isRendered){e.render()}if(e.element&&this._parentElement){this._parentElement.insertBefore(e.element,this._parentElement.children[t])}}}function Up(e){return e.every(e=>typeof e==\"string\")}const Wp=\"http://www.w3.org/1999/xhtml\";class $p{constructor(e){Object.assign(this,nb(tb(e)));this._isRendered=false;this._revertData=null}render(){const e=this._renderNode({intoFragment:true});this._isRendered=true;return e}apply(e){this._revertData=gb();this._renderNode({node:e,isApplying:true,revertData:this._revertData});return e}revert(e){if(!this._revertData){throw new rr[\"b\"](\"ui-template-revert-not-applied: Attempting to revert a template which has not been applied yet.\",[this,e])}this._revertTemplateFromNode(e,this._revertData)}*getViews(){function*e(t){if(t.children){for(const n of t.children){if(hb(n)){yield n}else if(fb(n)){yield*e(n)}}}}yield*e(this)}static bind(e,t){return{to(n,i){return new Yp({eventNameOrFunction:n,attribute:n,observable:e,emitter:t,callback:i})},if(n,i,o){return new Gp({observable:e,emitter:t,attribute:n,valueIfTrue:i,callback:o})}}}static extend(e,t){if(e._isRendered){throw new rr[\"b\"](\"template-extend-render: Attempting to extend a template which has already been rendered.\",[this,e])}db(e,nb(tb(t)))}_renderNode(e){let t;if(e.node){t=this.tag&&this.text}else{t=this.tag?this.text:!this.text}if(t){throw new rr[\"b\"]('ui-template-wrong-syntax: Node definition must have either \"tag\" or \"text\" when rendering a new Node.',this)}if(this.text){return this._renderText(e)}else{return this._renderElement(e)}}_renderElement(e){let t=e.node;if(!t){t=e.node=document.createElementNS(this.ns||Wp,this.tag)}this._renderAttributes(e);this._renderElementChildren(e);this._setUpListeners(e);return t}_renderText(e){let t=e.node;if(t){e.revertData.text=t.textContent}else{t=e.node=document.createTextNode(\"\")}if(Jp(this.text)){this._bindToObservable({schema:this.text,updater:Xp(t),data:e})}else{t.textContent=this.text.join(\"\")}return t}_renderAttributes(e){let t,n,i,o;if(!this.attributes){return}const s=e.node;const r=e.revertData;for(t in this.attributes){i=s.getAttribute(t);n=this.attributes[t];if(r){r.attributes[t]=i}o=ce(n[0])&&n[0].ns?n[0].ns:null;if(Jp(n)){const a=o?n[0].value:n;if(r&&pb(t)){a.unshift(i)}this._bindToObservable({schema:a,updater:Zp(s,t,o),data:e})}else if(t==\"style\"&&typeof n[0]!==\"string\"){this._renderStyleAttribute(n[0],e)}else{if(r&&i&&pb(t)){n.unshift(i)}n=n.map(e=>e?e.value||e:e).reduce((e,t)=>e.concat(t),[]).reduce(cb,\"\");if(!ub(n)){s.setAttributeNS(o,t,n)}}}}_renderStyleAttribute(e,t){const n=t.node;for(const i in e){const o=e[i];if(Jp(o)){this._bindToObservable({schema:[o],updater:eb(n,i),data:t})}else{n.style[i]=o}}}_renderElementChildren(e){const t=e.node;const n=e.intoFragment?document.createDocumentFragment():t;const i=e.isApplying;let o=0;for(const s of this.children){if(mb(s)){if(!i){s.setParent(t);for(const e of s){n.appendChild(e.element)}}}else if(hb(s)){if(!i){if(!s.isRendered){s.render()}n.appendChild(s.element)}}else if(xd(s)){n.appendChild(s)}else{if(i){const t=e.revertData;const i=gb();t.children.push(i);s._renderNode({node:n.childNodes[o++],isApplying:true,revertData:i})}else{n.appendChild(s.render())}}}if(e.intoFragment){t.appendChild(n)}}_setUpListeners(e){if(!this.eventListeners){return}for(const t in this.eventListeners){const n=this.eventListeners[t].map(n=>{const[i,o]=t.split(\"@\");return n.activateDomEventListener(i,o,e)});if(e.revertData){e.revertData.bindings.push(n)}}}_bindToObservable({schema:e,updater:t,data:n}){const i=n.revertData;Qp(e,t,n);const o=e.filter(e=>!ub(e)).filter(e=>e.observable).map(i=>i.activateAttributeListener(e,t,n));if(i){i.bindings.push(o)}}_revertTemplateFromNode(e,t){for(const e of t.bindings){for(const t of e){t()}}if(t.text){e.textContent=t.text;return}for(const n in t.attributes){const i=t.attributes[n];if(i===null){e.removeAttribute(n)}else{e.setAttribute(n,i)}}for(let n=0;nQp(e,t,n);this.emitter.listenTo(this.observable,\"change:\"+this.attribute,i);return()=>{this.emitter.stopListening(this.observable,\"change:\"+this.attribute,i)}}}class Yp extends qp{activateDomEventListener(e,t,n){const i=(e,n)=>{if(!t||n.target.matches(t)){if(typeof this.eventNameOrFunction==\"function\"){this.eventNameOrFunction(n)}else{this.observable.fire(this.eventNameOrFunction,n)}}};this.emitter.listenTo(n.node,e,i);return()=>{this.emitter.stopListening(n.node,e,i)}}}class Gp extends qp{getValue(e){const t=super.getValue(e);return ub(t)?false:this.valueIfTrue||true}}function Jp(e){if(!e){return false}if(e.value){e=e.value}if(Array.isArray(e)){return e.some(Jp)}else if(e instanceof qp){return true}return false}function Kp(e,t){return e.map(e=>{if(e instanceof qp){return e.getValue(t)}return e})}function Qp(e,t,{node:n}){let i=Kp(e,n);if(e.length==1&&e[0]instanceof Gp){i=i[0]}else{i=i.reduce(cb,\"\")}if(ub(i)){t.remove()}else{t.set(i)}}function Xp(e){return{set(t){e.textContent=t},remove(){e.textContent=\"\"}}}function Zp(e,t,n){return{set(i){e.setAttributeNS(n,t,i)},remove(){e.removeAttributeNS(n,t)}}}function eb(e,t){return{set(n){e.style[t]=n},remove(){e.style[t]=null}}}function tb(e){const t=qs(e,e=>{if(e&&(e instanceof qp||fb(e)||hb(e)||mb(e))){return e}});return t}function nb(e){if(typeof e==\"string\"){e=sb(e)}else if(e.text){rb(e)}if(e.on){e.eventListeners=ob(e.on);delete e.on}if(!e.text){if(e.attributes){ib(e.attributes)}const t=[];if(e.children){if(mb(e.children)){t.push(e.children)}else{for(const n of e.children){if(fb(n)||hb(n)||xd(n)){t.push(n)}else{t.push(new $p(n))}}}}e.children=t}return e}function ib(e){for(const t in e){if(e[t].value){e[t].value=[].concat(e[t].value)}ab(e,t)}}function ob(e){for(const t in e){ab(e,t)}return e}function sb(e){return{text:[e]}}function rb(e){if(!Array.isArray(e.text)){e.text=[e.text]}}function ab(e,t){if(!Array.isArray(e[t])){e[t]=[e[t]]}}function cb(e,t){if(ub(t)){return e}else if(ub(e)){return t}else{return`${e} ${t}`}}function lb(e,t){for(const n in t){if(e[n]){e[n].push(...t[n])}else{e[n]=t[n]}}}function db(e,t){if(t.attributes){if(!e.attributes){e.attributes={}}lb(e.attributes,t.attributes)}if(t.eventListeners){if(!e.eventListeners){e.eventListeners={}}lb(e.eventListeners,t.eventListeners)}if(t.text){e.text.push(...t.text)}if(t.children&&t.children.length){if(e.children.length!=t.children.length){throw new rr[\"b\"](\"ui-template-extend-children-mismatch: The number of children in extended definition does not match.\",e)}let n=0;for(const i of t.children){db(e.children[n++],i)}}}function ub(e){return!e&&e!==0}function hb(e){return e instanceof wb}function fb(e){return e instanceof $p}function mb(e){return e instanceof Hp}function gb(){return{children:[],bindings:[],attributes:{}}}function pb(e){return e==\"class\"||e==\"style\"}var bb=n(16);class wb{constructor(e){this.element=null;this.isRendered=false;this.locale=e;this.t=e&&e.t;this._viewCollections=new xr;this._unboundChildren=this.createCollection();this._viewCollections.on(\"add\",(t,n)=>{n.locale=e});this.decorate(\"render\")}get bindTemplate(){if(this._bindTemplate){return this._bindTemplate}return this._bindTemplate=$p.bind(this,this)}createCollection(e){const t=new Hp(e);this._viewCollections.add(t);return t}registerChild(e){if(!kr(e)){e=[e]}for(const t of e){this._unboundChildren.add(t)}}deregisterChild(e){if(!kr(e)){e=[e]}for(const t of e){this._unboundChildren.remove(t)}}setTemplate(e){this.template=new $p(e)}extendTemplate(e){$p.extend(this.template,e)}render(){if(this.isRendered){throw new rr[\"b\"](\"ui-view-render-already-rendered: This View has already been rendered.\",this)}if(this.template){this.element=this.template.render();this.registerChild(this.template.getViews())}this.isRendered=true}destroy(){this.stopListening();this._viewCollections.map(e=>e.destroy());if(this.template&&this.template._revertData){this.template.revert(this.element)}}}yr(wb,Wd);yr(wb,Kc);var _b=\"[object String]\";function vb(e){return typeof e==\"string\"||!Jt(e)&&T(e)&&v(e)==_b}var kb=vb;function yb(e,t,n={},i=[]){const o=n&&n.xmlns;const s=o?e.createElementNS(o,t):e.createElement(t);for(const e in n){s.setAttribute(e,n[e])}if(kb(i)||!kr(i)){i=[i]}for(let t of i){if(kb(t)){t=e.createTextNode(t)}s.appendChild(t)}return s}class xb extends Hp{constructor(e,t=[]){super(t);this.locale=e}attachToDom(){this._bodyCollectionContainer=new $p({tag:\"div\",attributes:{class:[\"ck\",\"ck-reset_all\",\"ck-body\",\"ck-rounded-corners\"],dir:this.locale.uiLanguageDirection},children:this}).render();let e=document.querySelector(\".ck-body-wrapper\");if(!e){e=yb(document,\"div\",{class:\"ck-body-wrapper\"});document.body.appendChild(e)}e.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy();if(this._bodyCollectionContainer){this._bodyCollectionContainer.remove()}const e=document.querySelector(\".ck-body-wrapper\");if(e&&e.childElementCount==0){e.remove()}}}var Ab=n(18);class Cb extends wb{constructor(e){super(e);this.body=new xb(e)}render(){super.render();this.body.attachToDom()}destroy(){this.body.detachFromDom();return super.destroy()}}class Tb extends wb{constructor(e,t,n){super(e);this.setTemplate({tag:\"div\",attributes:{class:[\"ck\",\"ck-content\",\"ck-editor__editable\",\"ck-rounded-corners\"],lang:e.contentLanguage,dir:e.contentLanguageDirection}});this.name=null;this.set(\"isFocused\",false);this._editableElement=n;this._hasExternalElement=!!this._editableElement;this._editingView=t}render(){super.render();if(this._hasExternalElement){this.template.apply(this.element=this._editableElement)}else{this._editableElement=this.element}this.on(\"change:isFocused\",()=>this._updateIsFocusedClasses());this._updateIsFocusedClasses()}destroy(){if(this._hasExternalElement){this.template.revert(this._editableElement)}super.destroy()}_updateIsFocusedClasses(){const e=this._editingView;if(e.isRenderingInProgress){n(this)}else{t(this)}function t(t){e.change(n=>{const i=e.document.getRoot(t.name);n.addClass(t.isFocused?\"ck-focused\":\"ck-blurred\",i);n.removeClass(t.isFocused?\"ck-blurred\":\"ck-focused\",i)})}function n(i){e.once(\"change:isRenderingInProgress\",(e,o,s)=>{if(!s){t(i)}else{n(i)}})}}}class Mb extends Tb{constructor(e,t,n){super(e,t,n);this.extendTemplate({attributes:{role:\"textbox\",class:\"ck-editor__editable_inline\"}})}render(){super.render();const e=this._editingView;const t=this.t;e.change(n=>{const i=e.document.getRoot(this.name);n.setAttribute(\"aria-label\",t(\"Rich Text Editor, %0\",[this.name]),i)})}}function Eb(e){if(!e||!e.parentNode){return null}if(e.offsetParent===Od.document.body){return null}return e.offsetParent}function Pb({element:e,target:t,positions:n,limiter:i,fitInViewport:o}){if(me(t)){t=t()}if(me(i)){i=i()}const s=Eb(e);const r=new kh(e);const a=new kh(t);let c;let l;if(!i&&!o){[l,c]=Sb(n[0],a,r)}else{const e=i&&new kh(i).getVisible();const t=o&&new kh(Od.window);const s=Ib(n,{targetRect:a,elementRect:r,limiterRect:e,viewportRect:t});[l,c]=s||Sb(n[0],a,r)}let d=Rb(c);if(s){d=Lb(d,s)}return{left:d.left,top:d.top,name:l}}function Sb(e,t,n){const{left:i,top:o,name:s}=e(t,n);return[s,n.clone().moveTo(i,o)]}function Ib(e,t){const{elementRect:n,viewportRect:i}=t;const o=n.getArea();const s=Ob(e,t);if(i){const e=s.filter(({viewportIntersectArea:e})=>e===o);const t=Nb(e,o);if(t){return t}}return Nb(s,o)}function Ob(e,{targetRect:t,elementRect:n,limiterRect:i,viewportRect:o}){const s=[];const r=n.getArea();for(const a of e){const[e,c]=Sb(a,t,n);let l=0;let d=0;if(i){if(o){const e=i.getIntersection(o);if(e){l=e.getIntersectionArea(c)}}else{l=i.getIntersectionArea(c)}}if(o){d=o.getIntersectionArea(c)}const u={positionName:e,positionRect:c,limiterIntersectArea:l,viewportIntersectArea:d};if(l===r){return[u]}s.push(u)}return s}function Nb(e,t){let n=0;let i;let o;for(const{positionName:s,positionRect:r,limiterIntersectArea:a,viewportIntersectArea:c}of e){if(a===t){return[s,r]}const e=c**2+a**2;if(e>n){n=e;i=r;o=s}}return i?[o,i]:null}function Lb({left:e,top:t},n){const i=Rb(new kh(n));const o=_h(n);e-=i.left;t-=i.top;e+=n.scrollLeft;t+=n.scrollTop;e-=o.left;t-=o.top;return{left:e,top:t}}function Rb({left:e,top:t}){const{scrollX:n,scrollY:i}=Od.window;return{left:e+n,top:t+i}}function Db(e){return t=>t+e}var jb=n(20);const zb=Db(\"px\");const Bb=Od.document.body;class Vb extends wb{constructor(e){super(e);const t=this.bindTemplate;this.set(\"top\",0);this.set(\"left\",0);this.set(\"position\",\"arrow_nw\");this.set(\"isVisible\",false);this.set(\"withArrow\",true);this.set(\"class\");this.content=this.createCollection();this.setTemplate({tag:\"div\",attributes:{class:[\"ck\",\"ck-balloon-panel\",t.to(\"position\",e=>`ck-balloon-panel_${e}`),t.if(\"isVisible\",\"ck-balloon-panel_visible\"),t.if(\"withArrow\",\"ck-balloon-panel_with-arrow\"),t.to(\"class\")],style:{top:t.to(\"top\",zb),left:t.to(\"left\",zb)}},children:this.content})}show(){this.isVisible=true}hide(){this.isVisible=false}attachTo(e){this.show();const t=Vb.defaultPositions;const n=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast],limiter:Bb,fitInViewport:true},e);const i=Vb._getOptimalPosition(n);const o=parseInt(i.left);const s=parseInt(i.top);const r=i.name;Object.assign(this,{top:s,left:o,position:r})}pin(e){this.unpin();this._pinWhenIsVisibleCallback=()=>{if(this.isVisible){this._startPinning(e)}else{this._stopPinning()}};this._startPinning(e);this.listenTo(this,\"change:isVisible\",this._pinWhenIsVisibleCallback)}unpin(){if(this._pinWhenIsVisibleCallback){this._stopPinning();this.stopListening(this,\"change:isVisible\",this._pinWhenIsVisibleCallback);this._pinWhenIsVisibleCallback=null;this.hide()}}_startPinning(e){this.attachTo(e);const t=Fb(e.target);const n=e.limiter?Fb(e.limiter):Bb;this.listenTo(Od.document,\"scroll\",(i,o)=>{const s=o.target;const r=t&&s.contains(t);const a=n&&s.contains(n);if(r||a||!t||!n){this.attachTo(e)}},{useCapture:true});this.listenTo(Od.window,\"resize\",()=>{this.attachTo(e)})}_stopPinning(){this.stopListening(Od.document,\"scroll\");this.stopListening(Od.window,\"resize\")}}function Fb(e){if(Gs(e)){return e}if(wh(e)){return e.commonAncestorContainer}if(typeof e==\"function\"){return Fb(e())}return null}Vb.arrowHorizontalOffset=25;Vb.arrowVerticalOffset=10;Vb._getOptimalPosition=Pb;Vb.defaultPositions={northWestArrowSouthWest:(e,t)=>({top:Hb(e,t),left:e.left-Vb.arrowHorizontalOffset,name:\"arrow_sw\"}),northWestArrowSouthMiddleWest:(e,t)=>({top:Hb(e,t),left:e.left-t.width*.25-Vb.arrowHorizontalOffset,name:\"arrow_smw\"}),northWestArrowSouth:(e,t)=>({top:Hb(e,t),left:e.left-t.width/2,name:\"arrow_s\"}),northWestArrowSouthMiddleEast:(e,t)=>({top:Hb(e,t),left:e.left-t.width*.75+Vb.arrowHorizontalOffset,name:\"arrow_sme\"}),northWestArrowSouthEast:(e,t)=>({top:Hb(e,t),left:e.left-t.width+Vb.arrowHorizontalOffset,name:\"arrow_se\"}),northArrowSouthWest:(e,t)=>({top:Hb(e,t),left:e.left+e.width/2-Vb.arrowHorizontalOffset,name:\"arrow_sw\"}),northArrowSouthMiddleWest:(e,t)=>({top:Hb(e,t),left:e.left+e.width/2-t.width*.25-Vb.arrowHorizontalOffset,name:\"arrow_smw\"}),northArrowSouth:(e,t)=>({top:Hb(e,t),left:e.left+e.width/2-t.width/2,name:\"arrow_s\"}),northArrowSouthMiddleEast:(e,t)=>({top:Hb(e,t),left:e.left+e.width/2-t.width*.75+Vb.arrowHorizontalOffset,name:\"arrow_sme\"}),northArrowSouthEast:(e,t)=>({top:Hb(e,t),left:e.left+e.width/2-t.width+Vb.arrowHorizontalOffset,name:\"arrow_se\"}),northEastArrowSouthWest:(e,t)=>({top:Hb(e,t),left:e.right-Vb.arrowHorizontalOffset,name:\"arrow_sw\"}),northEastArrowSouthMiddleWest:(e,t)=>({top:Hb(e,t),left:e.right-t.width*.25-Vb.arrowHorizontalOffset,name:\"arrow_smw\"}),northEastArrowSouth:(e,t)=>({top:Hb(e,t),left:e.right-t.width/2,name:\"arrow_s\"}),northEastArrowSouthMiddleEast:(e,t)=>({top:Hb(e,t),left:e.right-t.width*.75+Vb.arrowHorizontalOffset,name:\"arrow_sme\"}),northEastArrowSouthEast:(e,t)=>({top:Hb(e,t),left:e.right-t.width+Vb.arrowHorizontalOffset,name:\"arrow_se\"}),southWestArrowNorthWest:(e,t)=>({top:Ub(e,t),left:e.left-Vb.arrowHorizontalOffset,name:\"arrow_nw\"}),southWestArrowNorthMiddleWest:(e,t)=>({top:Ub(e,t),left:e.left-t.width*.25-Vb.arrowHorizontalOffset,name:\"arrow_nmw\"}),southWestArrowNorth:(e,t)=>({top:Ub(e,t),left:e.left-t.width/2,name:\"arrow_n\"}),southWestArrowNorthMiddleEast:(e,t)=>({top:Ub(e,t),left:e.left-t.width*.75+Vb.arrowHorizontalOffset,name:\"arrow_nme\"}),southWestArrowNorthEast:(e,t)=>({top:Ub(e,t),left:e.left-t.width+Vb.arrowHorizontalOffset,name:\"arrow_ne\"}),southArrowNorthWest:(e,t)=>({top:Ub(e,t),left:e.left+e.width/2-Vb.arrowHorizontalOffset,name:\"arrow_nw\"}),southArrowNorthMiddleWest:(e,t)=>({top:Ub(e,t),left:e.left+e.width/2-t.width*.25-Vb.arrowHorizontalOffset,name:\"arrow_nmw\"}),southArrowNorth:(e,t)=>({top:Ub(e,t),left:e.left+e.width/2-t.width/2,name:\"arrow_n\"}),southArrowNorthMiddleEast:(e,t)=>({top:Ub(e,t),left:e.left+e.width/2-t.width*.75+Vb.arrowHorizontalOffset,name:\"arrow_nme\"}),southArrowNorthEast:(e,t)=>({top:Ub(e,t),left:e.left+e.width/2-t.width+Vb.arrowHorizontalOffset,name:\"arrow_ne\"}),southEastArrowNorthWest:(e,t)=>({top:Ub(e,t),left:e.right-Vb.arrowHorizontalOffset,name:\"arrow_nw\"}),southEastArrowNorthMiddleWest:(e,t)=>({top:Ub(e,t),left:e.right-t.width*.25-Vb.arrowHorizontalOffset,name:\"arrow_nmw\"}),southEastArrowNorth:(e,t)=>({top:Ub(e,t),left:e.right-t.width/2,name:\"arrow_n\"}),southEastArrowNorthMiddleEast:(e,t)=>({top:Ub(e,t),left:e.right-t.width*.75+Vb.arrowHorizontalOffset,name:\"arrow_nme\"}),southEastArrowNorthEast:(e,t)=>({top:Ub(e,t),left:e.right-t.width+Vb.arrowHorizontalOffset,name:\"arrow_ne\"})};function Hb(e,t){return e.top-t.height-Vb.arrowVerticalOffset}function Ub(e){return e.bottom+Vb.arrowVerticalOffset}class Wb{constructor(e){Object.assign(this,e);if(e.actions&&e.keystrokeHandler){for(const t in e.actions){let n=e.actions[t];if(typeof n==\"string\"){n=[n]}for(const i of n){e.keystrokeHandler.set(i,(e,n)=>{this[t]();n()})}}}}get first(){return this.focusables.find($b)||null}get last(){return this.focusables.filter($b).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let e=null;if(this.focusTracker.focusedElement===null){return null}this.focusables.find((t,n)=>{const i=t.element===this.focusTracker.focusedElement;if(i){e=n}return i});return e}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(e){if(e){e.focus()}}_getFocusableItem(e){const t=this.current;const n=this.focusables.length;if(!n){return null}if(t===null){return this[e===1?\"first\":\"last\"]}let i=(t+n+e)%n;do{const t=this.focusables.get(i);if($b(t)){return t}i=(i+n+e)%n}while(i!==t);return null}}function $b(e){return!!(e.focus&&Od.window.getComputedStyle(e.element).display!=\"none\")}class qb extends wb{constructor(e){super(e);this.setTemplate({tag:\"span\",attributes:{class:[\"ck\",\"ck-toolbar__separator\"]}})}}const Yb=100;class Gb{constructor(e,t){if(!Gb._observerInstance){Gb._createObserver()}this._element=e;this._callback=t;Gb._addElementCallback(e,t);Gb._observerInstance.observe(e)}destroy(){Gb._deleteElementCallback(this._element,this._callback)}static _addElementCallback(e,t){if(!Gb._elementCallbacks){Gb._elementCallbacks=new Map}let n=Gb._elementCallbacks.get(e);if(!n){n=new Set;Gb._elementCallbacks.set(e,n)}n.add(t)}static _deleteElementCallback(e,t){const n=Gb._getElementCallbacks(e);if(n){n.delete(t);if(!n.size){Gb._elementCallbacks.delete(e);Gb._observerInstance.unobserve(e)}}if(Gb._elementCallbacks&&!Gb._elementCallbacks.size){Gb._observerInstance=null;Gb._elementCallbacks=null}}static _getElementCallbacks(e){if(!Gb._elementCallbacks){return null}return Gb._elementCallbacks.get(e)}static _createObserver(){let e;if(typeof Od.window.ResizeObserver===\"function\"){e=Od.window.ResizeObserver}else{e=Jb}Gb._observerInstance=new e(e=>{for(const t of e){if(!t.target.offsetParent){continue}const e=Gb._getElementCallbacks(t.target);if(e){for(const n of e){n(t)}}}})}}Gb._observerInstance=null;Gb._elementCallbacks=null;class Jb{constructor(e){this._callback=e;this._elements=new Set;this._previousRects=new Map;this._periodicCheckTimeout=null}observe(e){this._elements.add(e);this._checkElementRectsAndExecuteCallback();if(this._elements.size===1){this._startPeriodicCheck()}}unobserve(e){this._elements.delete(e);this._previousRects.delete(e);if(!this._elements.size){this._stopPeriodicCheck()}}_startPeriodicCheck(){const e=()=>{this._checkElementRectsAndExecuteCallback();this._periodicCheckTimeout=setTimeout(e,Yb)};this.listenTo(Od.window,\"resize\",()=>{this._checkElementRectsAndExecuteCallback()});this._periodicCheckTimeout=setTimeout(e,Yb)}_stopPeriodicCheck(){clearTimeout(this._periodicCheckTimeout);this.stopListening();this._previousRects.clear()}_checkElementRectsAndExecuteCallback(){const e=[];for(const t of this._elements){if(this._hasRectChanged(t)){e.push({target:t,contentRect:this._previousRects.get(t)})}}if(e.length){this._callback(e)}}_hasRectChanged(e){if(!e.ownerDocument.body.contains(e)){return false}const t=new kh(e);const n=this._previousRects.get(e);const i=!n||!n.isEqual(t);this._previousRects.set(e,t);return i}}yr(Jb,Wd);function Kb(e){return e.bindTemplate.to(t=>{if(t.target===e.element){t.preventDefault()}})}class Qb extends wb{constructor(e){super(e);const t=this.bindTemplate;this.set(\"isVisible\",false);this.set(\"position\",\"se\");this.children=this.createCollection();this.setTemplate({tag:\"div\",attributes:{class:[\"ck\",\"ck-reset\",\"ck-dropdown__panel\",t.to(\"position\",e=>`ck-dropdown__panel_${e}`),t.if(\"isVisible\",\"ck-dropdown__panel-visible\")]},children:this.children,on:{selectstart:t.to(e=>e.preventDefault())}})}focus(){if(this.children.length){this.children.first.focus()}}focusLast(){if(this.children.length){const e=this.children.last;if(typeof e.focusLast===\"function\"){e.focusLast()}else{e.focus()}}}}var Xb=n(22);class Zb extends wb{constructor(e,t,n){super(e);const i=this.bindTemplate;this.buttonView=t;this.panelView=n;this.set(\"isOpen\",false);this.set(\"isEnabled\",true);this.set(\"class\");this.set(\"id\");this.set(\"panelPosition\",\"auto\");this.keystrokes=new mp;this.setTemplate({tag:\"div\",attributes:{class:[\"ck\",\"ck-dropdown\",i.to(\"class\"),i.if(\"isEnabled\",\"ck-disabled\",e=>!e)],id:i.to(\"id\"),\"aria-describedby\":i.to(\"ariaDescribedById\")},children:[t,n]});t.extendTemplate({attributes:{class:[\"ck-dropdown__button\"]}})}render(){super.render();this.listenTo(this.buttonView,\"open\",()=>{this.isOpen=!this.isOpen});this.panelView.bind(\"isVisible\").to(this,\"isOpen\");this.on(\"change:isOpen\",()=>{if(!this.isOpen){return}if(this.panelPosition===\"auto\"){this.panelView.position=Zb._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:true,positions:this._panelPositions}).name}else{this.panelView.position=this.panelPosition}});this.keystrokes.listenTo(this.element);const e=(e,t)=>{if(this.isOpen){this.buttonView.focus();this.isOpen=false;t()}};this.keystrokes.set(\"arrowdown\",(e,t)=>{if(this.buttonView.isEnabled&&!this.isOpen){this.isOpen=true;t()}});this.keystrokes.set(\"arrowright\",(e,t)=>{if(this.isOpen){t()}});this.keystrokes.set(\"arrowleft\",e);this.keystrokes.set(\"esc\",e)}focus(){this.buttonView.focus()}get _panelPositions(){const{southEast:e,southWest:t,northEast:n,northWest:i}=Zb.defaultPanelPositions;if(this.locale.uiLanguageDirection===\"ltr\"){return[e,t,n,i]}else{return[t,e,i,n]}}}Zb.defaultPanelPositions={southEast:e=>({top:e.bottom,left:e.left,name:\"se\"}),southWest:(e,t)=>({top:e.bottom,left:e.left-t.width+e.width,name:\"sw\"}),northEast:(e,t)=>({top:e.top-t.height,left:e.left,name:\"ne\"}),northWest:(e,t)=>({top:e.bottom-t.height,left:e.left-t.width+e.width,name:\"nw\"})};Zb._getOptimalPosition=Pb;var ew=n(24);class tw extends wb{constructor(){super();const e=this.bindTemplate;this.set(\"content\",\"\");this.set(\"viewBox\",\"0 0 20 20\");this.set(\"fillColor\",\"\");this.setTemplate({tag:\"svg\",ns:\"http://www.w3.org/2000/svg\",attributes:{class:[\"ck\",\"ck-icon\"],viewBox:e.to(\"viewBox\")}})}render(){super.render();this._updateXMLContent();this._colorFillPaths();this.on(\"change:content\",()=>{this._updateXMLContent();this._colorFillPaths()});this.on(\"change:fillColor\",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const e=(new DOMParser).parseFromString(this.content.trim(),\"image/svg+xml\");const t=e.querySelector(\"svg\");const n=t.getAttribute(\"viewBox\");if(n){this.viewBox=n}this.element.innerHTML=\"\";while(t.childNodes.length>0){this.element.appendChild(t.childNodes[0])}}}_colorFillPaths(){if(this.fillColor){this.element.querySelectorAll(\".ck-icon__fill\").forEach(e=>{e.style.fill=this.fillColor})}}}var nw=n(26);class iw extends wb{constructor(e){super(e);this.set(\"text\",\"\");this.set(\"position\",\"s\");const t=this.bindTemplate;this.setTemplate({tag:\"span\",attributes:{class:[\"ck\",\"ck-tooltip\",t.to(\"position\",e=>\"ck-tooltip_\"+e),t.if(\"text\",\"ck-hidden\",e=>!e.trim())]},children:[{tag:\"span\",attributes:{class:[\"ck\",\"ck-tooltip__text\"]},children:[{text:t.to(\"text\")}]}]})}}var ow=n(28);class sw extends wb{constructor(e){super(e);const t=this.bindTemplate;const n=nr();this.set(\"class\");this.set(\"labelStyle\");this.set(\"icon\");this.set(\"isEnabled\",true);this.set(\"isOn\",false);this.set(\"isVisible\",true);this.set(\"isToggleable\",false);this.set(\"keystroke\");this.set(\"label\");this.set(\"tabindex\",-1);this.set(\"tooltip\");this.set(\"tooltipPosition\",\"s\");this.set(\"type\",\"button\");this.set(\"withText\",false);this.set(\"withKeystroke\",false);this.children=this.createCollection();this.tooltipView=this._createTooltipView();this.labelView=this._createLabelView(n);this.iconView=new tw;this.iconView.extendTemplate({attributes:{class:\"ck-button__icon\"}});this.keystrokeView=this._createKeystrokeView();this.bind(\"_tooltipString\").to(this,\"tooltip\",this,\"label\",this,\"keystroke\",this._getTooltipString.bind(this));this.setTemplate({tag:\"button\",attributes:{class:[\"ck\",\"ck-button\",t.to(\"class\"),t.if(\"isEnabled\",\"ck-disabled\",e=>!e),t.if(\"isVisible\",\"ck-hidden\",e=>!e),t.to(\"isOn\",e=>e?\"ck-on\":\"ck-off\"),t.if(\"withText\",\"ck-button_with-text\"),t.if(\"withKeystroke\",\"ck-button_with-keystroke\")],type:t.to(\"type\",e=>e?e:\"button\"),tabindex:t.to(\"tabindex\"),\"aria-labelledby\":`ck-editor__aria-label_${n}`,\"aria-disabled\":t.if(\"isEnabled\",true,e=>!e),\"aria-pressed\":t.to(\"isOn\",e=>this.isToggleable?String(e):false)},children:this.children,on:{mousedown:t.to(e=>{e.preventDefault()}),click:t.to(e=>{if(this.isEnabled){this.fire(\"execute\")}else{e.preventDefault()}})}})}render(){super.render();if(this.icon){this.iconView.bind(\"content\").to(this,\"icon\");this.children.add(this.iconView)}this.children.add(this.tooltipView);this.children.add(this.labelView);if(this.withKeystroke){this.children.add(this.keystrokeView)}}focus(){this.element.focus()}_createTooltipView(){const e=new iw;e.bind(\"text\").to(this,\"_tooltipString\");e.bind(\"position\").to(this,\"tooltipPosition\");return e}_createLabelView(e){const t=new wb;const n=this.bindTemplate;t.setTemplate({tag:\"span\",attributes:{class:[\"ck\",\"ck-button__label\"],style:n.to(\"labelStyle\"),id:`ck-editor__aria-label_${e}`},children:[{text:this.bindTemplate.to(\"label\")}]});return t}_createKeystrokeView(){const e=new wb;e.setTemplate({tag:\"span\",attributes:{class:[\"ck\",\"ck-button__keystroke\"]},children:[{text:this.bindTemplate.to(\"keystroke\",e=>jl(e))}]});return e}_getTooltipString(e,t,n){if(e){if(typeof e==\"string\"){return e}else{if(n){n=jl(n)}if(e instanceof Function){return e(t,n)}else{return`${t}${n?` (${n})`:\"\"}`}}}return\"\"}}var rw='';class aw extends sw{constructor(e){super(e);this.arrowView=this._createArrowView();this.extendTemplate({attributes:{\"aria-haspopup\":true}});this.delegate(\"execute\").to(this,\"open\")}render(){super.render();this.children.add(this.arrowView)}_createArrowView(){const e=new tw;e.content=rw;e.extendTemplate({attributes:{class:\"ck-dropdown__arrow\"}});return e}}var cw=n(30);class lw extends wb{constructor(){super();this.items=this.createCollection();this.focusTracker=new Mp;this.keystrokes=new mp;this._focusCycler=new Wb({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:\"arrowup\",focusNext:\"arrowdown\"}});this.setTemplate({tag:\"ul\",attributes:{class:[\"ck\",\"ck-reset\",\"ck-list\"]},children:this.items})}render(){super.render();for(const e of this.items){this.focusTracker.add(e.element)}this.items.on(\"add\",(e,t)=>{this.focusTracker.add(t.element)});this.items.on(\"remove\",(e,t)=>{this.focusTracker.remove(t.element)});this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}class dw extends wb{constructor(e){super(e);this.children=this.createCollection();this.setTemplate({tag:\"li\",attributes:{class:[\"ck\",\"ck-list__item\"]},children:this.children})}focus(){this.children.first.focus()}}class uw extends wb{constructor(e){super(e);this.setTemplate({tag:\"li\",attributes:{class:[\"ck\",\"ck-list__separator\"]}})}}var hw=n(32);class fw extends sw{constructor(e){super(e);this.isToggleable=true;this.toggleSwitchView=this._createToggleView();this.extendTemplate({attributes:{class:\"ck-switchbutton\"}})}render(){super.render();this.children.add(this.toggleSwitchView)}_createToggleView(){const e=new wb;e.setTemplate({tag:\"span\",attributes:{class:[\"ck\",\"ck-button__toggle\"]},children:[{tag:\"span\",attributes:{class:[\"ck\",\"ck-button__toggle__inner\"]}}]});return e}}function mw({emitter:e,activator:t,callback:n,contextElements:i}){e.listenTo(document,\"mousedown\",(e,{target:o})=>{if(!t()){return}for(const e of i){if(e.contains(o)){return}}n()})}var gw=n(34);var pw=n(36);function bw(e,t=aw){const n=new t(e);const i=new Qb(e);const o=new Zb(e,n,i);n.bind(\"isEnabled\").to(o);if(n instanceof aw){n.bind(\"isOn\").to(o,\"isOpen\")}else{n.arrowView.bind(\"isOn\").to(o,\"isOpen\")}vw(o);return o}function ww(e,t){const n=e.locale;const i=n.t;const o=e.toolbarView=new Tw(n);o.set(\"ariaLabel\",i(\"Dropdown toolbar\"));e.extendTemplate({attributes:{class:[\"ck-toolbar-dropdown\"]}});t.map(e=>o.items.add(e));e.panelView.children.add(o);o.items.delegate(\"execute\").to(e)}function _w(e,t){const n=e.locale;const i=e.listView=new lw(n);i.items.bindTo(t).using(({type:e,model:t})=>{if(e===\"separator\"){return new uw(n)}else if(e===\"button\"||e===\"switchbutton\"){const i=new dw(n);let o;if(e===\"button\"){o=new sw(n)}else{o=new fw(n)}o.bind(...Object.keys(t)).to(t);o.delegate(\"execute\").to(i);i.children.add(o);return i}});e.panelView.children.add(i);i.items.delegate(\"execute\").to(e)}function vw(e){kw(e);yw(e);xw(e)}function kw(e){e.on(\"render\",()=>{mw({emitter:e,activator:()=>e.isOpen,callback:()=>{e.isOpen=false},contextElements:[e.element]})})}function yw(e){e.on(\"execute\",t=>{if(t.source instanceof fw){return}e.isOpen=false})}function xw(e){e.keystrokes.set(\"arrowdown\",(t,n)=>{if(e.isOpen){e.panelView.focus();n()}});e.keystrokes.set(\"arrowup\",(t,n)=>{if(e.isOpen){e.panelView.focusLast();n()}})}var Aw='';var Cw=n(38);class Tw extends wb{constructor(e,t){super(e);const n=this.bindTemplate;const i=this.t;this.options=t||{};this.set(\"ariaLabel\",i(\"Editor toolbar\"));this.set(\"maxWidth\",\"auto\");this.items=this.createCollection();this.focusTracker=new Mp;this.keystrokes=new mp;this.set(\"class\");this.set(\"isCompact\",false);this.itemsView=new Mw(e);this.children=this.createCollection();this.children.add(this.itemsView);this.focusables=this.createCollection();this._focusCycler=new Wb({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[\"arrowleft\",\"arrowup\"],focusNext:[\"arrowright\",\"arrowdown\"]}});this.setTemplate({tag:\"div\",attributes:{class:[\"ck\",\"ck-toolbar\",n.to(\"class\"),n.if(\"isCompact\",\"ck-toolbar_compact\")],role:\"toolbar\",\"aria-label\":n.to(\"ariaLabel\"),style:{maxWidth:n.to(\"maxWidth\")}},children:this.children,on:{mousedown:Kb(this)}});this._behavior=this.options.shouldGroupWhenFull?new Pw(this):new Ew(this)}render(){super.render();for(const e of this.items){this.focusTracker.add(e.element)}this.items.on(\"add\",(e,t)=>{this.focusTracker.add(t.element)});this.items.on(\"remove\",(e,t)=>{this.focusTracker.remove(t.element)});this.keystrokes.listenTo(this.element);this._behavior.render(this)}destroy(){this._behavior.destroy();return super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(e,t){e.map(e=>{if(e==\"|\"){this.items.add(new qb)}else if(t.has(e)){this.items.add(t.create(e))}else{console.warn(Object(rr[\"a\"])(\"toolbarview-item-unavailable: The requested toolbar item is unavailable.\"),{name:e})}})}}class Mw extends wb{constructor(e){super(e);this.children=this.createCollection();this.setTemplate({tag:\"div\",attributes:{class:[\"ck\",\"ck-toolbar__items\"]},children:this.children})}}class Ew{constructor(e){const t=e.bindTemplate;e.set(\"isVertical\",false);e.itemsView.children.bindTo(e.items).using(e=>e);e.focusables.bindTo(e.items).using(e=>e);e.extendTemplate({attributes:{class:[t.if(\"isVertical\",\"ck-toolbar_vertical\")]}})}render(){}destroy(){}}class Pw{constructor(e){this.viewChildren=e.children;this.viewFocusables=e.focusables;this.viewItemsView=e.itemsView;this.viewFocusTracker=e.focusTracker;this.viewLocale=e.locale;this.ungroupedItems=e.createCollection();this.groupedItems=e.createCollection();this.groupedItemsDropdown=this._createGroupedItemsDropdown();this.resizeObserver=null;this.cachedPadding=null;this.shouldUpdateGroupingOnNextResize=false;e.itemsView.children.bindTo(this.ungroupedItems).using(e=>e);this.ungroupedItems.on(\"add\",this._updateFocusCycleableItems.bind(this));this.ungroupedItems.on(\"remove\",this._updateFocusCycleableItems.bind(this));e.children.on(\"add\",this._updateFocusCycleableItems.bind(this));e.children.on(\"remove\",this._updateFocusCycleableItems.bind(this));e.items.on(\"add\",(e,t,n)=>{if(n>this.ungroupedItems.length){this.groupedItems.add(t,n-this.ungroupedItems.length)}else{this.ungroupedItems.add(t,n)}this._updateGrouping()});e.items.on(\"remove\",(e,t,n)=>{if(n>this.ungroupedItems.length){this.groupedItems.remove(t)}else{this.ungroupedItems.remove(t)}this._updateGrouping()});e.extendTemplate({attributes:{class:[\"ck-toolbar_grouping\"]}})}render(e){this.viewElement=e.element;this._enableGroupingOnResize();this._enableGroupingOnMaxWidthChange(e)}destroy(){this.groupedItemsDropdown.destroy();this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement)){return}if(!this.viewElement.offsetParent){this.shouldUpdateGroupingOnNextResize=true;return}let e;while(this._areItemsOverflowing){this._groupLastItem();e=true}if(!e&&this.groupedItems.length){while(this.groupedItems.length&&!this._areItemsOverflowing){this._ungroupFirstItem()}if(this._areItemsOverflowing){this._groupLastItem()}}}get _areItemsOverflowing(){if(!this.ungroupedItems.length){return false}const e=this.viewElement;const t=this.viewLocale.uiLanguageDirection;const n=new kh(e.lastChild);const i=new kh(e);if(!this.cachedPadding){const n=Od.window.getComputedStyle(e);const i=t===\"ltr\"?\"paddingRight\":\"paddingLeft\";this.cachedPadding=Number.parseInt(n[i])}if(t===\"ltr\"){return n.right>i.right-this.cachedPadding}else{return n.left{if(!e||e!==t.contentRect.width||this.shouldUpdateGroupingOnNextResize){this.shouldUpdateGroupingOnNextResize=false;this._updateGrouping();e=t.contentRect.width}});this._updateGrouping()}_enableGroupingOnMaxWidthChange(e){e.on(\"change:maxWidth\",()=>{this._updateGrouping()})}_groupLastItem(){if(!this.groupedItems.length){this.viewChildren.add(new qb);this.viewChildren.add(this.groupedItemsDropdown);this.viewFocusTracker.add(this.groupedItemsDropdown.element)}this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first));if(!this.groupedItems.length){this.viewChildren.remove(this.groupedItemsDropdown);this.viewChildren.remove(this.viewChildren.last);this.viewFocusTracker.remove(this.groupedItemsDropdown.element)}}_createGroupedItemsDropdown(){const e=this.viewLocale;const t=e.t;const n=bw(e);n.class=\"ck-toolbar__grouped-dropdown\";n.panelPosition=e.uiLanguageDirection===\"ltr\"?\"sw\":\"se\";ww(n,[]);n.buttonView.set({label:t(\"Show more items\"),tooltip:true,icon:Aw});n.toolbarView.items.bindTo(this.groupedItems).using(e=>e);return n}_updateFocusCycleableItems(){this.viewFocusables.clear();this.ungroupedItems.map(e=>{this.viewFocusables.add(e)});if(this.groupedItems.length){this.viewFocusables.add(this.groupedItemsDropdown)}}}const Sw=Db(\"px\");class Iw extends Cb{constructor(e,t,n,i={}){super(e);this.toolbar=new Tw(e,{shouldGroupWhenFull:i.shouldToolbarGroupWhenFull});this.set(\"viewportTopOffset\",0);this.toolbar.extendTemplate({attributes:{class:[\"ck-toolbar_floating\"]}});this.panel=new Vb(e);this.panel.withArrow=false;this.panelPositions=this._getPanelPositions();this.panel.extendTemplate({attributes:{class:\"ck-toolbar-container\"}});this.editable=new Mb(e,t,n);this._resizeObserver=null}render(){super.render();this.body.add(this.panel);this.registerChild(this.editable);this.panel.content.add(this.toolbar);const e=this.toolbar.options;if(e.shouldGroupWhenFull){const e=this.editable.element;this._resizeObserver=new Gb(e,()=>{this.toolbar.maxWidth=Sw(new kh(e).width)})}}destroy(){super.destroy();if(this._resizeObserver){this._resizeObserver.destroy()}}_getPanelPositionTop(e,t){let n;if(e.top>t.height+this.viewportTopOffset){n=e.top-t.height}else if(e.bottom>t.height+this.viewportTopOffset+50){n=this.viewportTopOffset}else{n=e.bottom}return n}_getPanelPositions(){const e=[(e,t)=>({top:this._getPanelPositionTop(e,t),left:e.left,name:\"toolbar_west\"}),(e,t)=>({top:this._getPanelPositionTop(e,t),left:e.left+e.width-t.width,name:\"toolbar_east\"})];if(this.locale.uiLanguageDirection===\"ltr\"){return e}else{return e.reverse()}}}function Ow(e){if(e instanceof HTMLTextAreaElement){return e.value}return e.innerHTML}function Nw(e){const t=e.sourceElement;if(!t){return}if(t.ckeditorInstance){throw new rr[\"b\"](\"editor-source-element-already-used: \"+\"The DOM element cannot be used to create multiple editor instances.\",e)}t.ckeditorInstance=e;e.once(\"destroy\",()=>{delete t.ckeditorInstance})}class Lw extends pp{constructor(e,t){super(t);this.data.processor=new Ap(this.data.viewDocument);this.model.document.createRoot();if(Gs(e)){this.sourceElement=e;Nw(this)}const n=!this.config.get(\"toolbar.shouldNotGroupWhenFull\");const i=new Iw(this.locale,this.editing.view,this.sourceElement,{shouldToolbarGroupWhenFull:n});this.ui=new Fp(this,i);yp(this)}destroy(){const e=this.getData();this.ui.destroy();return super.destroy().then(()=>{if(this.sourceElement){_p(this.sourceElement,e)}})}static create(e,t={}){return new Promise(n=>{const i=Gs(e);if(i&&e.tagName===\"TEXTAREA\"){throw new rr[\"b\"](\"editor-wrong-element: This type of editor cannot be initialized inside