e.model.getSelectedContent(e.model.document.selection)){return this.editor.model.change((s=>{const i=s.model.document.selection;s.setSelection(t);const n=this._insertFakeMarkersIntoSelection(s,s.model.document.selection,e),r=o(s),a=this._removeFakeMarkersInsideElement(s,r);for(const[e,t]of Object.entries(n)){a[e]||=s.createRangeIn(r);for(const e of t)s.remove(e)}r.markers.clear();for(const[e,t]of Object.entries(a))r.markers.set(e,t);return s.setSelection(i),r}))}_pasteMarkersIntoTransformedElement(e,t){const o=this._getPasteMarkersFromRangeMap(e);return this.editor.model.change((e=>{const s=this._insertFakeMarkersElements(e,o),i=t(e),n=this._removeFakeMarkersInsideElement(e,i);for(const t of Object.values(s).flat())e.remove(t);for(const[t,o]of Object.entries(n))e.model.markers.has(t)||e.addMarker(t,{usingOperation:!0,affectsData:!0,range:o});return i}))}_pasteFragmentWithMarkers(e){const t=this._getPasteMarkersFromRangeMap(e.markers);e.markers.clear();for(const o of t)e.markers.set(o.name,o.range);return this.editor.model.insertContent(e)}_forceMarkersCopy(e,t,o={allowedActions:"all",copyPartiallySelected:!0,duplicateOnPaste:!0}){const s=this._markersToCopy.get(e);this._markersToCopy.set(e,o),t(),s?this._markersToCopy.set(e,s):this._markersToCopy.delete(e)}_isMarkerCopyable(e,t){const o=this._getMarkerClipboardConfig(e);if(!o)return!1;if(!t)return!0;const{allowedActions:s}=o;return"all"===s||s.includes(t)}_hasMarkerConfiguration(e){return!!this._getMarkerClipboardConfig(e)}_getMarkerClipboardConfig(e){const[t]=e.split(":");return this._markersToCopy.get(t)||null}_insertFakeMarkersIntoSelection(e,t,o){const s=this._getCopyableMarkersFromSelection(e,t,o);return this._insertFakeMarkersElements(e,s)}_getCopyableMarkersFromSelection(e,t,o){const s=Array.from(t.getRanges()),i=new Set(s.flatMap((t=>Array.from(e.model.markers.getMarkersIntersectingRange(t)))));return Array.from(i).filter((e=>{if(!this._isMarkerCopyable(e.name,o))return!1;const{copyPartiallySelected:t}=this._getMarkerClipboardConfig(e.name);if(!t){const t=e.getRange();return s.some((e=>e.containsRange(t,!0)))}return!0})).map((e=>({name:"dragstart"===o?this._getUniqueMarkerName(e.name):e.name,range:e.getRange()})))}_getPasteMarkersFromRangeMap(e,t=null){const{model:o}=this.editor;return(e instanceof Map?Array.from(e.entries()):Object.entries(e)).flatMap((([e,s])=>{if(!this._hasMarkerConfiguration(e))return[{name:e,range:s}];if(this._isMarkerCopyable(e,t)){const t=this._getMarkerClipboardConfig(e),i=o.markers.has(e)&&"$graveyard"===o.markers.get(e).getRange().root.rootName;return(t.duplicateOnPaste||i)&&(e=this._getUniqueMarkerName(e)),[{name:e,range:s}]}return[]}))}_insertFakeMarkersElements(e,t){const o={},s=t.flatMap((e=>{const{start:t,end:o}=e.range;return[{position:t,marker:e,type:"start"},{position:o,marker:e,type:"end"}]})).sort((({position:e},{position:t})=>e.isBefore(t)?1:-1));for(const{position:t,marker:i,type:n}of s){const s=e.createElement("$marker",{"data-name":i.name,"data-type":n});o[i.name]||(o[i.name]=[]),o[i.name].push(s),e.insert(s,t)}return o}_removeFakeMarkersInsideElement(e,t){const o=this._getAllFakeMarkersFromElement(e,t).reduce(((t,o)=>{const s=o.markerElement&&e.createPositionBefore(o.markerElement);let i=t[o.name],n=!1;if(i&&i.start&&i.end){this._getMarkerClipboardConfig(o.name).duplicateOnPaste?t[this._getUniqueMarkerName(o.name)]=t[o.name]:n=!0,i=null}return n||(t[o.name]={...i,[o.type]:s}),o.markerElement&&e.remove(o.markerElement),t}),{});return z(o,(o=>new n.Q6(o.start||e.createPositionFromPath(t,[0]),o.end||e.createPositionAt(t,"end"))))}_getAllFakeMarkersFromElement(e,t){const o=Array.from(e.createRangeIn(t)).flatMap((({item:e})=>{if(!e.is("element","$marker"))return[];const t=e.getAttribute("data-name"),o=e.getAttribute("data-type");return[{markerElement:e,name:t,type:o}]})),s=[],i=[];for(const e of o){if("end"===e.type){o.some((t=>t.name===e.name&&"start"===t.type))||s.push({markerElement:null,name:e.name,type:"start"})}if("start"===e.type){o.some((t=>t.name===e.name&&"end"===t.type))||i.unshift({markerElement:null,name:e.name,type:"end"})}}return[...s,...o,...i]}_getUniqueMarkerName(e){const t=e.split(":"),o=(0,i.Ld)().substring(1,6);return 3===t.length?`${t.slice(0,2).join(":")}:${o}`:`${t.join(":")}:${o}`}}class $ extends s.k_{static get pluginName(){return"ClipboardPipeline"}static get requires(){return[H]}init(){this.editor.editing.view.addObserver(r),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(e,t,o){const s=this.editor.plugins.get("ClipboardMarkersUtils");this.editor.model.enqueueChange({isUndoable:"cut"===o},(()=>{const i=s._copySelectedFragmentWithMarkers(o,t);this.fire("outputTransformation",{dataTransfer:e,content:i,method:o})}))}_setupPasteDrop(){const e=this.editor,t=e.model,o=e.editing.view,s=o.document,n=this.editor.plugins.get("ClipboardMarkersUtils");this.listenTo(s,"clipboardInput",((t,o)=>{"paste"!=o.method||e.model.canEditAt(e.model.document.selection)||t.stop()}),{priority:"highest"}),this.listenTo(s,"clipboardInput",((e,t)=>{const s=t.dataTransfer;let n;if(t.content)n=t.content;else{let e="";s.getData("text/html")?e=function(e){return e.replace(/(\s+)<\/span>/g,((e,t)=>1==t.length?" ":t)).replace(//g,"")}(s.getData("text/html")):s.getData("text/plain")&&(((r=(r=s.getData("text/plain")).replace(/&/g,"&").replace(//g,">").replace(/\r?\n\r?\n/g,"").replace(/\r?\n/g,"
").replace(/\t/g," ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g," ")).includes("
")||r.includes("
"))&&(r=`
${r}
`),e=r),n=this.editor.data.htmlProcessor.toView(e)}var r;const a=new i.vY(this,"inputTransformation");this.fire(a,{content:n,dataTransfer:s,targetRanges:t.targetRanges,method:t.method}),a.stop.called&&e.stop(),o.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",((e,o)=>{if(o.content.isEmpty)return;const s=this.editor.data.toModel(o.content,"$clipboardHolder");0!=s.childCount&&(e.stop(),t.change((()=>{this.fire("contentInsertion",{content:s,method:o.method,dataTransfer:o.dataTransfer,targetRanges:o.targetRanges})})))}),{priority:"low"}),this.listenTo(this,"contentInsertion",((e,t)=>{t.resultRange=n._pasteFragmentWithMarkers(t.content)}),{priority:"low"})}_setupCopyCut(){const e=this.editor,t=e.model.document,o=e.editing.view.document,s=(e,o)=>{const s=o.dataTransfer;o.preventDefault(),this._fireOutputTransformationEvent(s,t.selection,e.name)};this.listenTo(o,"copy",s,{priority:"low"}),this.listenTo(o,"cut",((t,o)=>{e.model.canEditAt(e.model.document.selection)?s(t,o):o.preventDefault()}),{priority:"low"}),this.listenTo(this,"outputTransformation",((t,s)=>{const i=e.data.toView(s.content);o.fire("clipboardOutput",{dataTransfer:s.dataTransfer,content:i,method:s.method})}),{priority:"low"}),this.listenTo(o,"clipboardOutput",((o,s)=>{s.content.isEmpty||(s.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(s.content)),s.dataTransfer.setData("text/plain",l(s.content))),"cut"==s.method&&e.model.deleteContent(t.selection)}),{priority:"low"})}}var W=o("./packages/ckeditor5-widget/src/index.ts"),q=o("./packages/ckeditor5-ui/src/index.ts");const U=(0,i.To)("px");class K extends q.Ss{constructor(){super();const e=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",e.if("isVisible","ck-hidden",(e=>!e))],style:{left:e.to("left",(e=>U(e))),top:e.to("top",(e=>U(e))),width:e.to("width",(e=>U(e)))}}})}}var Y=o("./node_modules/lodash-es/throttle.js");class G extends s.k_{removeDropMarkerDelayed=(0,i.cb)((()=>this.removeDropMarker()),40);_updateDropMarkerThrottled=(0,Y.A)((e=>this._updateDropMarker(e)),40);_reconvertMarkerThrottled=(0,Y.A)((()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")}),0);_dropTargetLineView=new K;_domEmitter=new((0,i.c5)());_scrollables=new Map;static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:e}of this._scrollables.values())e.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(e,t,o,s,i,n){this.removeDropMarkerDelayed.cancel();const r=Z(this.editor,e,t,o,s,i,n);if(r)return n&&n.containsRange(r)?this.removeDropMarker():void this._updateDropMarkerThrottled(r)}getFinalDropRange(e,t,o,s,i,n){const r=Z(this.editor,e,t,o,s,i,n);return this.removeDropMarker(),r}removeDropMarker(){const e=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,e.markers.has("drop-target")&&e.change((e=>{e.removeMarker("drop-target")}))}_setupDropMarker(){const e=this.editor;e.ui.view.body.add(this._dropTargetLineView),e.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),e.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(t,{writer:o})=>{if(e.model.schema.checkChild(t.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(o);t.markerRange.isCollapsed?this._updateDropTargetLine(t.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(e){const t=this.editor,o=t.model.markers;t.model.change((t=>{o.has("drop-target")?o.get("drop-target").getRange().isEqual(e)||t.updateMarker("drop-target",{range:e}):t.addMarker("drop-target",{range:e,usingOperation:!1,affectsData:!1})}))}_createDropTargetPosition(e){return e.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(e){const t=this.toDomElement(e);return t.append("",e.createElement("span"),""),t}))}_updateDropTargetLine(e){const t=this.editor.editing,o=e.start.nodeBefore,s=e.start.nodeAfter,n=e.start.parent,r=o?t.mapper.toViewElement(o):null,a=r?t.view.domConverter.mapViewToDom(r):null,c=s?t.mapper.toViewElement(s):null,l=c?t.view.domConverter.mapViewToDom(c):null,d=t.mapper.toViewElement(n);if(!d)return;const h=t.view.domConverter.mapViewToDom(d),u=this._getScrollableRect(d),{scrollX:p,scrollY:m}=i.Sf.window,f=a?new i.rw(a):null,g=l?new i.rw(l):null,_=new i.rw(h).excludeScrollbarsAndBorders(),b=f?f.bottom:_.top,k=g?g.top:_.bottom,w=i.Sf.window.getComputedStyle(h),v=b<=k?(b+k)/2:k;if(u.topa.schema.checkChild(n,e)))){if(a.schema.checkChild(n,"$text"))return a.createRange(n);if(t)return X(e,ee(e,t.parent),s,i)}}}else if(a.schema.isInline(l))return X(e,l,s,i);if(a.schema.isBlock(l))return X(e,l,s,i);if(a.schema.checkChild(l,"$block")){const t=Array.from(l.getChildren()).filter((t=>t.is("element")&&!J(e,t)));let o=0,n=t.length;if(0==n)return a.createRange(a.createPositionAt(l,"end"));for(;o{o?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")})),i._K.isAndroid&&this.forceDisabled("noAndroidSupport"),e.plugins.has("BlockToolbar")){const t=e.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(t,"dragstart",((e,t)=>this._handleBlockDragStart(t))),this._domEmitter.listenTo(i.Sf.document,"dragover",((e,t)=>this._handleBlockDragging(t))),this._domEmitter.listenTo(i.Sf.document,"drop",((e,t)=>this._handleBlockDragging(t))),this._domEmitter.listenTo(i.Sf.document,"dragend",(()=>this._handleBlockDragEnd()),{useCapture:!0}),this.isEnabled&&t.setAttribute("draggable","true"),this.on("change:isEnabled",((e,o,s)=>{t.setAttribute("draggable",s?"true":"false")}))}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(e){if(!this.isEnabled)return;const t=this.editor.model,o=t.document.selection,s=this.editor.editing.view,i=Array.from(o.getSelectedBlocks()),n=t.createRange(t.createPositionBefore(i[0]),t.createPositionAfter(i[i.length-1]));t.change((e=>e.setSelection(n))),this._isBlockDragging=!0,s.focus(),s.getObserver(r).onDomEvent(e)}_handleBlockDragging(e){if(!this.isEnabled||!this._isBlockDragging)return;const t=e.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),o=e.clientY,s=document.elementFromPoint(t,o),i=this.editor.editing.view;s&&s.closest(".ck-editor__editable")&&i.getObserver(r).onDomEvent({...e,type:e.type,dataTransfer:e.dataTransfer,target:s,clientX:t,clientY:o,preventDefault:()=>e.preventDefault(),stopPropagation:()=>e.stopPropagation()})}_handleBlockDragEnd(){this._isBlockDragging=!1}}var oe=o("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),se=o.n(oe),ie=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-clipboard/theme/clipboard.css"),ne={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};se()(ie.A,ne);ie.A.locals;class re extends s.k_{_draggedRange;_draggingUid;_draggableElement;_clearDraggableAttributesDelayed=(0,i.cb)((()=>this._clearDraggableAttributes()),40);_blockMode=!1;_domEmitter=new((0,i.c5)());_previewContainer;static get pluginName(){return"DragDrop"}static get requires(){return[$,W.x0,G,te]}init(){const e=this.editor,t=e.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,t.addObserver(r),t.addObserver(n.q$),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(e,"change:isReadOnly",((e,t,o)=>{o?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",((e,t,o)=>{o||this._finalizeDragging(!1)})),i._K.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const e=this.editor,t=e.model,o=e.editing.view,s=o.document,n=e.plugins.get(G);this.listenTo(s,"dragstart",((e,o)=>{if(o.target&&o.target.is("editableElement"))return void o.preventDefault();if(this._prepareDraggedRange(o.target),!this._draggedRange)return void o.preventDefault();this._draggingUid=(0,i.Ld)(),o.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",o.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const s=t.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(o.dataTransfer,s,"dragstart");const{dataTransfer:n,domTarget:r,domEvent:a}=o,{clientX:c}=a;this._updatePreview({dataTransfer:n,domTarget:r,clientX:c}),o.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")}),{priority:"low"}),this.listenTo(s,"dragend",((e,t)=>{this._finalizeDragging(!t.dataTransfer.isCanceled&&"move"==t.dataTransfer.dropEffect)}),{priority:"low"}),this._domEmitter.listenTo(i.Sf.document,"dragend",(()=>{this._blockMode=!1}),{useCapture:!0}),this.listenTo(s,"dragenter",(()=>{this.isEnabled&&o.focus()})),this.listenTo(s,"dragleave",(()=>{n.removeDropMarkerDelayed()})),this.listenTo(s,"dragging",((e,t)=>{if(!this.isEnabled)return void(t.dataTransfer.dropEffect="none");const{clientX:o,clientY:s}=t.domEvent;n.updateDropMarker(t.target,t.targetRanges,o,s,this._blockMode,this._draggedRange),this._draggedRange||(t.dataTransfer.dropEffect="copy"),i._K.isGecko||("copy"==t.dataTransfer.effectAllowed?t.dataTransfer.dropEffect="copy":["all","copyMove"].includes(t.dataTransfer.effectAllowed)&&(t.dataTransfer.dropEffect="move")),e.stop()}),{priority:"low"})}_setupClipboardInputIntegration(){const e=this.editor,t=e.editing.view.document,o=e.plugins.get(G);this.listenTo(t,"clipboardInput",((t,s)=>{if("drop"!=s.method)return;const{clientX:i,clientY:n}=s.domEvent,r=o.getFinalDropRange(s.target,s.targetRanges,i,n,this._blockMode,this._draggedRange);if(!r)return this._finalizeDragging(!1),void t.stop();this._draggedRange&&this._draggingUid!=s.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="");if("move"==ae(s.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(r,!0))return this._finalizeDragging(!1),void t.stop();s.targetRanges=[e.editing.mapper.toViewRange(r)]}),{priority:"high"})}_setupContentInsertionIntegration(){const e=this.editor.plugins.get($);e.on("contentInsertion",((e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const o=t.targetRanges.map((e=>this.editor.editing.mapper.toModelRange(e)));this.editor.model.change((e=>e.setSelection(o)))}),{priority:"high"}),e.on("contentInsertion",((e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const o="move"==ae(t.dataTransfer),s=!t.resultRange||!t.resultRange.isCollapsed;this._finalizeDragging(s&&o)}),{priority:"lowest"})}_setupDraggableAttributeHandling(){const e=this.editor,t=e.editing.view,o=t.document;this.listenTo(o,"mousedown",((s,n)=>{if(i._K.isAndroid||!n)return;this._clearDraggableAttributesDelayed.cancel();let r=ce(n.target);if(i._K.isBlink&&!e.isReadOnly&&!r&&!o.selection.isCollapsed){const e=o.selection.getSelectedElement();e&&(0,W.p4)(e)||(r=o.selection.editableElement)}r&&(t.change((e=>{e.setAttribute("draggable","true",r)})),this._draggableElement=e.editing.mapper.toModelElement(r))})),this.listenTo(o,"mouseup",(()=>{i._K.isAndroid||this._clearDraggableAttributesDelayed()}))}_clearDraggableAttributes(){const e=this.editor.editing;e.view.change((t=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&t.removeAttribute("draggable",e.mapper.toViewElement(this._draggableElement)),this._draggableElement=null}))}_finalizeDragging(e){const t=this.editor,o=t.model;if(t.plugins.get(G).removeDropMarker(),this._clearDraggableAttributes(),t.plugins.has("WidgetToolbarRepository")){t.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop")}this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(e&&this.isEnabled&&o.change((e=>{const t=o.createSelection(this._draggedRange);o.deleteContent(t,{doNotAutoparagraph:!0});const s=t.getFirstPosition().parent;s.isEmpty&&!o.schema.checkChild(s,"$text")&&o.schema.checkChild(s,"paragraph")&&e.insertElement("paragraph",s,0)})),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(e){const t=this.editor,o=t.model,s=o.document.selection,i=e?ce(e):null;if(i){const e=t.editing.mapper.toModelElement(i);if(this._draggedRange=n.Oo.fromRange(o.createRangeOn(e)),this._blockMode=o.schema.isBlock(e),t.plugins.has("WidgetToolbarRepository")){t.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}return}if(s.isCollapsed&&!s.getFirstPosition().parent.isEmpty)return;const r=Array.from(s.getSelectedBlocks()),a=s.getFirstRange();if(0==r.length)return void(this._draggedRange=n.Oo.fromRange(a));const c=le(o,r);if(r.length>1)this._draggedRange=n.Oo.fromRange(c),this._blockMode=!0;else if(1==r.length){const e=a.start.isTouching(c.start)&&a.end.isTouching(c.end);this._draggedRange=n.Oo.fromRange(e?c:a),this._blockMode=e}o.change((e=>e.setSelection(this._draggedRange.toRange())))}_updatePreview({dataTransfer:e,domTarget:t,clientX:o}){const s=this.editor.editing.view,n=s.document.selection.editableElement,r=s.domConverter.mapViewToDom(n),a=i.Sf.window.getComputedStyle(r);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=(0,i.n)(i.Sf.document,"div",{style:"position: fixed; left: -999999px;"}),i.Sf.document.body.appendChild(this._previewContainer));const c=new i.rw(r);if(r.contains(t))return;const l=parseFloat(a.paddingLeft),d=(0,i.n)(i.Sf.document,"div");d.className="ck ck-content",d.style.width=a.width,d.style.paddingLeft=`${c.left-o+l}px`,i._K.isiOS&&(d.style.backgroundColor="white"),d.innerHTML=e.getData("text/html"),e.setDragImage(d,0,0),this._previewContainer.appendChild(d)}}function ae(e){return i._K.isGecko?e.dropEffect:["all","copyMove"].includes(e.effectAllowed)?"move":"copy"}function ce(e){if(e.is("editableElement"))return null;if(e.hasClass("ck-widget__selection-handle"))return e.findAncestor(W.p4);if((0,W.p4)(e))return e;const t=e.findAncestor((e=>(0,W.p4)(e)||e.is("editableElement")));return(0,W.p4)(t)?t:null}function le(e,t){const o=t[0],s=t[t.length-1],i=o.getCommonAncestor(s),n=e.createPositionBefore(o),r=e.createPositionAfter(s);if(i&&i.is("element")&&!e.schema.isLimit(i)){const t=e.createRangeOn(i),o=n.isTouching(t.start),s=r.isTouching(t.end);if(o&&s)return le(e,[i])}return e.createRange(n,r)}class de extends s.k_{static get pluginName(){return"PastePlainText"}static get requires(){return[$]}init(){const e=this.editor,t=e.model,o=e.editing.view,s=o.document,i=t.document.selection;let n=!1;o.addObserver(r),this.listenTo(s,"keydown",((e,t)=>{n=t.shiftKey})),e.plugins.get($).on("contentInsertion",((e,o)=>{(n||function(e,t){if(e.childCount>1)return!1;const o=e.getChild(0);if(t.isObject(o))return!1;return 0==Array.from(o.getAttributeKeys()).length}(o.content,t.schema))&&t.change((e=>{const s=Array.from(i.getAttributes()).filter((([e])=>t.schema.getAttributeProperties(e).isFormatting));i.isCollapsed||t.deleteContent(i,{doNotAutoparagraph:!0}),s.push(...i.getAttributes());const n=e.createRangeIn(o.content);for(const t of n.getItems())t.is("$textProxy")&&e.setAttributes(s,t)}))}))}}class he extends s.k_{static get pluginName(){return"Clipboard"}static get requires(){return[H,$,re,de]}init(){const e=this.editor,t=this.editor.t;e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Copy selected content"),keystroke:"CTRL+C"},{label:t("Paste content"),keystroke:"CTRL+V"},{label:t("Paste content as plain text"),keystroke:"CTRL+SHIFT+V"}]})}}},"./src/core.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Command:()=>s.uB,Context:()=>s.ob,ContextPlugin:()=>s.HY,DataApiMixin:()=>s.CC,Editor:()=>s.KE,ElementApiMixin:()=>s.mJ,MultiCommand:()=>s.fE,PendingActions:()=>s.TS,Plugin:()=>s.k_,attachToForm:()=>s.JF,icons:()=>s.Pt,secureSourceElement:()=>s.Jl});var s=o("./packages/ckeditor5-core/src/index.ts")},"./src/engine.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{AttributeElement:()=>s.Zq,AttributeOperation:()=>s.ML,BubblingEventInfo:()=>s.cJ,ClickObserver:()=>s.Re,Conversion:()=>s.dY,DataController:()=>s.P3,DataTransfer:()=>s._v,DocumentFragment:()=>s.kB,DocumentSelection:()=>s.oi,DomConverter:()=>s.P$,DomEventData:()=>s.FY,DomEventObserver:()=>s.$A,DowncastWriter:()=>s.zN,EditingController:()=>s.L_,EditingView:()=>s.gK,Element:()=>s.Hg,FocusObserver:()=>s.vp,History:()=>s.BZ,HtmlDataProcessor:()=>s.q6,InsertOperation:()=>s.ZG,LivePosition:()=>s.m8,LiveRange:()=>s.Oo,MarkerOperation:()=>s.m4,Matcher:()=>s.PN,MergeOperation:()=>s.GY,Model:()=>s.Kx,MouseObserver:()=>s.q$,MoveOperation:()=>s.hW,NoOperation:()=>s.fS,Observer:()=>s.nu,OperationFactory:()=>s.cr,Position:()=>s.yX,Range:()=>s.Q6,RenameOperation:()=>s.EZ,Renderer:()=>s.A4,RootAttributeOperation:()=>s.gf,RootOperation:()=>s.at,SplitOperation:()=>s._A,StylesMap:()=>s.DG,StylesProcessor:()=>s.tG,TabObserver:()=>s.Yi,Text:()=>s.EY,TextProxy:()=>s.Qo,TreeWalker:()=>s.rU,UpcastWriter:()=>s.Wq,ViewAttributeElement:()=>s.UJ,ViewContainerElement:()=>s.xQ,ViewDocument:()=>s.Vg,ViewDocumentFragment:()=>s.f5,ViewEditableElement:()=>s.OQ,ViewElement:()=>s.m2,ViewEmptyElement:()=>s.Vt,ViewRawElement:()=>s.aZ,ViewRootEditableElement:()=>s.Un,ViewText:()=>s.HQ,ViewTreeWalker:()=>s.u$,ViewUIElement:()=>s.cw,XmlDataProcessor:()=>s.ib,_getModelData:()=>s.XI,_getViewData:()=>s.vQ,_parseModel:()=>s.IG,_parseView:()=>s.kF,_setModelData:()=>s.je,_setViewData:()=>s.JV,_stringifyModel:()=>s.aU,_stringifyView:()=>s._$,addBackgroundRules:()=>s.D0,addBorderRules:()=>s.v7,addMarginRules:()=>s.vt,addPaddingRules:()=>s.mC,disablePlaceholder:()=>s.Kc,enablePlaceholder:()=>s.JT,getBoxSidesShorthandValue:()=>s.qE,getBoxSidesValueReducer:()=>s.rC,getBoxSidesValues:()=>s.QS,getFillerOffset:()=>s.SH,getPositionShorthandNormalizer:()=>s.gz,getShorthandValues:()=>s.M1,hidePlaceholder:()=>s.YU,isAttachment:()=>s.s5,isColor:()=>s._o,isLength:()=>s.Vq,isLineStyle:()=>s.ew,isPercentage:()=>s.fp,isPosition:()=>s.E,isRepeat:()=>s.Cd,isURL:()=>s.mv,needsPlaceholder:()=>s.$0,showPlaceholder:()=>s.Zu,transformSets:()=>s._j});var s=o("./packages/ckeditor5-engine/src/index.ts")},"./src/enter.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Enter:()=>s.x,ShiftEnter:()=>s.D});var s=o("./packages/ckeditor5-enter/src/index.ts")},"./src/paragraph.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Paragraph:()=>c,ParagraphButtonUI:()=>d});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-utils/src/index.ts");class n extends s.uB{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}refresh(){const e=this.editor.model,t=e.document,o=(0,i.$1)(t.selection.getSelectedBlocks());this.value=!!o&&o.is("element","paragraph"),this.isEnabled=!!o&&r(o,e.schema)}execute(e={}){const t=this.editor.model,o=t.document,s=e.selection||o.selection;t.canEditAt(s)&&t.change((e=>{const o=s.getSelectedBlocks();for(const s of o)!s.is("element","paragraph")&&r(s,t.schema)&&e.rename(s,"paragraph")}))}}function r(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}class a extends s.uB{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}execute(e){const t=this.editor.model,o=e.attributes;let s=e.position;t.canEditAt(s)&&t.change((e=>{if(s=this._findPositionToInsertParagraph(s,e),!s)return;const i=e.createElement("paragraph");o&&t.schema.setAllowedAttributes(i,o,e),t.insertContent(i,s),e.setSelection(i,"in")}))}_findPositionToInsertParagraph(e,t){const o=this.editor.model;if(o.schema.checkChild(e,"paragraph"))return e;const s=o.schema.findAllowedParent(e,"paragraph");if(!s)return null;const i=e.parent,n=o.schema.checkChild(i,"$text");return i.isEmpty||n&&e.isAtEnd?o.createPositionAfter(i):!i.isEmpty&&n&&e.isAtStart?o.createPositionBefore(i):t.split(e,s).position}}class c extends s.k_{static get pluginName(){return"Paragraph"}init(){const e=this.editor,t=e.model;e.commands.add("paragraph",new n(e)),e.commands.add("insertParagraph",new a(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:(e,{writer:t})=>c.paragraphLikeElements.has(e.name)?e.isEmpty?null:t.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}static paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"])}var l=o("./packages/ckeditor5-ui/src/index.ts");class d extends s.k_{static get requires(){return[c]}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("paragraph",(o=>{const i=new l._(o),n=e.commands.get("paragraph");return i.label=t("Paragraph"),i.icon=s.Pt.paragraph,i.tooltip=!0,i.isToggleable=!0,i.bind("isEnabled").to(n),i.bind("isOn").to(n,"value"),i.on("execute",(()=>{e.execute("paragraph")})),i}))}}},"./src/select-all.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{SelectAll:()=>h,SelectAllEditing:()=>c,SelectAllUI:()=>d});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-utils/src/index.ts");class n extends s.uB{constructor(e){super(e),this.affectsData=!1}execute(){const e=this.editor.model,t=e.document.selection;let o=e.schema.getLimitElement(t);if(t.containsEntireContent(o)||!r(e.schema,o))do{if(o=o.parent,!o)return}while(!r(e.schema,o));e.change((e=>{e.setSelection(o,"in")}))}}function r(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}const a=(0,i.ZX)("Ctrl+A");class c extends s.k_{static get pluginName(){return"SelectAllEditing"}init(){const e=this.editor,t=e.t,o=e.editing.view.document;e.commands.add("selectAll",new n(e)),this.listenTo(o,"keydown",((t,o)=>{(0,i.QC)(o)===a&&(e.execute("selectAll"),o.preventDefault())})),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Select all"),keystroke:"CTRL+A"}]})}}var l=o("./packages/ckeditor5-ui/src/index.ts");class d extends s.k_{static get pluginName(){return"SelectAllUI"}init(){const e=this.editor;e.ui.componentFactory.add("selectAll",(()=>{const e=this._createButton(l._);return e.set({tooltip:!0}),e})),e.ui.componentFactory.add("menuBar:selectAll",(()=>this._createButton(l.kS)))}_createButton(e){const t=this.editor,o=t.locale,s=t.commands.get("selectAll"),i=new e(t.locale),n=o.t;return i.set({label:n("Select all"),icon:'',keystroke:"Ctrl+A"}),i.bind("isEnabled").to(s,"isEnabled"),this.listenTo(i,"execute",(()=>{t.execute("selectAll"),t.editing.view.focus()})),i}}class h extends s.k_{static get requires(){return[c,d]}static get pluginName(){return"SelectAll"}}},"./src/typing.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Delete:()=>s.ep,Input:()=>s.pd,InsertTextCommand:()=>s.Ki,TextTransformation:()=>s.De,TextWatcher:()=>s.qV,TwoStepCaretMovement:()=>s.Vp,Typing:()=>s.IG,findAttributeRange:()=>s.Py,findAttributeRangeBound:()=>s.lO,getLastTextLine:()=>s.ex,inlineHighlight:()=>s.Il});var s=o("./packages/ckeditor5-typing/src/index.ts")},"./src/ui.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{AccessibilityHelp:()=>s.KO,AutocompleteView:()=>s.uI,BalloonPanelView:()=>s.Jr,BalloonToolbar:()=>s.bQ,BlockToolbar:()=>s.Lz,BodyCollection:()=>s.v1,BoxedEditorUIView:()=>s.Xt,ButtonLabelView:()=>s.e0,ButtonView:()=>s._,CollapsibleView:()=>s.Kn,ColorGridView:()=>s.pQ,ColorPickerView:()=>s.ph,ColorSelectorView:()=>s.oB,ColorTileView:()=>s.vF,ComponentFactory:()=>s.eH,ContextualBalloon:()=>s.pU,CssTransitionDisablerMixin:()=>s.wi,DefaultMenuBarItems:()=>s.ep,Dialog:()=>s.lG,DialogView:()=>s._m,DialogViewPosition:()=>s.nu,DropdownButtonView:()=>s.lU,DropdownPanelView:()=>s.Vz,DropdownView:()=>s.BO,EditorUI:()=>s.Gn,EditorUIView:()=>s.nc,FileDialogButtonView:()=>s.eF,FocusCycler:()=>s.H,FormHeaderView:()=>s.Dy,HighlightedTextView:()=>s.MZ,IconView:()=>s.Ln,IframeView:()=>s.WU,InlineEditableUIView:()=>s.LU,InputNumberView:()=>s.Zz,InputTextView:()=>s.hK,InputView:()=>s.E6,LabelView:()=>s.y0,LabeledFieldView:()=>s.xE,ListItemGroupView:()=>s.m_,ListItemView:()=>s.BD,ListSeparatorView:()=>s.Je,ListView:()=>s.uO,MenuBarMenuListItemButtonView:()=>s.kS,MenuBarMenuListItemFileDialogButtonView:()=>s.GG,MenuBarMenuListItemView:()=>s.I8,MenuBarMenuListView:()=>s.BY,MenuBarMenuView:()=>s.zj,MenuBarView:()=>s.yJ,Notification:()=>s.Eg,SearchInfoView:()=>s.wD,SearchTextView:()=>s.b8,SpinnerView:()=>s.XE,SplitButtonView:()=>s.AO,StickyPanelView:()=>s.xw,SwitchButtonView:()=>s.Wm,Template:()=>s.Bj,TextareaView:()=>s.OB,ToolbarLineBreakView:()=>s.Cy,ToolbarSeparatorView:()=>s.IY,ToolbarView:()=>s.X3,TooltipManager:()=>s.JV,View:()=>s.Ss,ViewCollection:()=>s.s3,ViewModel:()=>s.Jc,_initMenuBar:()=>s.G6,addKeyboardHandlingForGrid:()=>s.l1,addListToDropdown:()=>s.O,addToolbarToDropdown:()=>s.fM,clickOutsideHandler:()=>s.wy,createDropdown:()=>s.yu,createLabeledDropdown:()=>s.By,createLabeledInputNumber:()=>s.F_,createLabeledInputText:()=>s.Vr,createLabeledTextarea:()=>s.GR,focusChildOnDropdownOpen:()=>s.Zn,getLocalizedColorOptions:()=>s.b2,injectCssTransitionDisabler:()=>s.I0,isFocusable:()=>s.tp,isViewWithFocusCycler:()=>s.eG,normalizeColorOptions:()=>s.lF,normalizeMenuBarConfig:()=>s.mB,normalizeSingleColorDefinition:()=>s.iv,normalizeToolbarConfig:()=>s.fl,submitHandler:()=>s.Z5});var s=o("./packages/ckeditor5-ui/src/index.ts")},"./src/undo.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Undo:()=>p,UndoEditing:()=>d,UndoUI:()=>u});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-engine/src/index.ts");class n extends s.uB{_stack=[];_createdBatches=new WeakSet;constructor(e){super(e),this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(e.data,"set",((e,t)=>{t[1]={...t[1]};const o=t[1];o.batchType||(o.batchType={isUndoable:!1})}),{priority:"high"}),this.listenTo(e.data,"set",((e,t)=>{t[1].batchType.isUndoable||this.clearStack()}))}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(e){const t=this.editor.model.document.selection,o={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:o}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(e,t,o){const s=this.editor.model,i=s.document,n=[],c=e.map((e=>e.getTransformedByOperations(o))),l=c.flat();for(const e of c){const t=e.filter((e=>e.root!=i.graveyard)).filter((e=>!a(e,l)));t.length&&(r(t),n.push(t[0]))}n.length&&s.change((e=>{e.setSelection(n,{backward:t})}))}_undo(e,t){const o=this.editor.model,s=o.document;this._createdBatches.add(t);const n=e.operations.slice().filter((e=>e.isDocumentOperation));n.reverse();for(const e of n){const n=e.baseVersion+1,r=Array.from(s.history.getOperations(n)),a=(0,i._j)([e.getReversed()],r,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let n of a){const r=n.affectedSelectable;r&&!o.canEditAt(r)&&(n=new i.fS(n.baseVersion)),t.addOperation(n),o.applyOperation(n),s.history.setOperationAsUndone(e,n)}}}}function r(e){e.sort(((e,t)=>e.start.isBefore(t.start)?-1:1));for(let t=1;tt!==e&&t.containsRange(e,!0)))}class c extends n{execute(e=null){const t=e?this._stack.findIndex((t=>t.batch==e)):this._stack.length-1,o=this._stack.splice(t,1)[0],s=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(s,(()=>{this._undo(o.batch,s);const e=this.editor.model.document.history.getOperations(o.batch.baseVersion);this._restoreSelection(o.selection.ranges,o.selection.isBackward,e)})),this.fire("revert",o.batch,s),this.refresh()}}class l extends n{execute(){const e=this._stack.pop(),t=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(t,(()=>{const o=e.batch.operations[e.batch.operations.length-1].baseVersion+1,s=this.editor.model.document.history.getOperations(o);this._restoreSelection(e.selection.ranges,e.selection.isBackward,s),this._undo(e.batch,t)})),this.refresh()}}class d extends s.k_{_undoCommand;_redoCommand;_batchRegistry=new WeakSet;static get pluginName(){return"UndoEditing"}init(){const e=this.editor,t=e.t;this._undoCommand=new c(e),this._redoCommand=new l(e),e.commands.add("undo",this._undoCommand),e.commands.add("redo",this._redoCommand),this.listenTo(e.model,"applyOperation",((e,t)=>{const o=t[0];if(!o.isDocumentOperation)return;const s=o.batch,i=this._redoCommand.createdBatches.has(s),n=this._undoCommand.createdBatches.has(s);this._batchRegistry.has(s)||(this._batchRegistry.add(s),s.isUndoable&&(i?this._undoCommand.addBatch(s):n||(this._undoCommand.addBatch(s),this._redoCommand.clearStack())))}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",((e,t,o)=>{this._redoCommand.addBatch(o)})),e.keystrokes.set("CTRL+Z","undo"),e.keystrokes.set("CTRL+Y","redo"),e.keystrokes.set("CTRL+SHIFT+Z","redo"),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Undo"),keystroke:"CTRL+Z"},{label:t("Redo"),keystroke:[["CTRL+Y"],["CTRL+SHIFT+Z"]]}]})}}var h=o("./packages/ckeditor5-ui/src/index.ts");class u extends s.k_{static get pluginName(){return"UndoUI"}init(){const e=this.editor,t=e.locale,o=e.t,i="ltr"==t.uiLanguageDirection?s.Pt.undo:s.Pt.redo,n="ltr"==t.uiLanguageDirection?s.Pt.redo:s.Pt.undo;this._addButtonsToFactory("undo",o("Undo"),"CTRL+Z",i),this._addButtonsToFactory("redo",o("Redo"),"CTRL+Y",n)}_addButtonsToFactory(e,t,o,s){const i=this.editor;i.ui.componentFactory.add(e,(()=>{const i=this._createButton(h._,e,t,o,s);return i.set({tooltip:!0}),i})),i.ui.componentFactory.add("menuBar:"+e,(()=>this._createButton(h.kS,e,t,o,s)))}_createButton(e,t,o,s,i){const n=this.editor,r=n.locale,a=n.commands.get(t),c=new e(r);return c.set({label:o,icon:i,keystroke:s}),c.bind("isEnabled").to(a,"isEnabled"),this.listenTo(c,"execute",(()=>{n.execute(t),n.editing.view.focus()})),c}}class p extends s.k_{static get requires(){return[d,u]}static get pluginName(){return"Undo"}}},"./src/upload.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Base64UploadAdapter:()=>c,FileRepository:()=>r,SimpleUploadAdapter:()=>d});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-utils/src/index.ts");class n extends((0,i.VM)()){total;_reader;_data;constructor(){super();const e=new window.FileReader;this._reader=e,this._data=void 0,this.set("loaded",0),e.onprogress=e=>{this.loaded=e.loaded}}get error(){return this._reader.error}get data(){return this._data}read(e){const t=this._reader;return this.total=e.size,new Promise(((o,s)=>{t.onload=()=>{const e=t.result;this._data=e,o(e)},t.onerror=()=>{s("error")},t.onabort=()=>{s("aborted")},this._reader.readAsDataURL(e)}))}abort(){this._reader.abort()}}class r extends s.k_{loaders=new i.pM;_loadersMap=new Map;_pendingAction=null;static get pluginName(){return"FileRepository"}static get requires(){return[s.TS]}init(){this.loaders.on("change",(()=>this._updatePendingAction())),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((e,t)=>t?e/t*100:0))}getLoader(e){return this._loadersMap.get(e)||null}createLoader(e){if(!this.createUploadAdapter)return(0,i.FF)("filerepository-no-upload-adapter"),null;const t=new a(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(t),this._loadersMap.set(e,t),e instanceof Promise&&t.file.then((e=>{this._loadersMap.set(e,t)})).catch((()=>{})),t.on("change:uploaded",(()=>{let e=0;for(const t of this.loaders)e+=t.uploaded;this.uploaded=e})),t.on("change:uploadTotal",(()=>{let e=0;for(const t of this.loaders)t.uploadTotal&&(e+=t.uploadTotal);this.uploadTotal=e})),t}destroyLoader(e){const t=e instanceof a?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach(((e,o)=>{e===t&&this._loadersMap.delete(o)}))}_updatePendingAction(){const e=this.editor.plugins.get(s.TS);if(this.loaders.length){if(!this._pendingAction){const t=this.editor.t,o=e=>`${t("Upload in progress")} ${parseInt(e)}%.`;this._pendingAction=e.add(o(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",o)}}else e.remove(this._pendingAction),this._pendingAction=null}}class a extends((0,i.VM)()){id;_filePromiseWrapper;_adapter;_reader;constructor(e,t){super(),this.id=(0,i.Ld)(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new n,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((e,t)=>t?e/t*100:0)),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((e=>this._filePromiseWrapper?e:null)):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new i.Yb("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((e=>this._reader.read(e))).then((e=>{if("reading"!==this.status)throw this.status;return this.status="idle",e})).catch((e=>{if("aborted"===e)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:e}))}upload(){if("idle"!=this.status)throw new i.Yb("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((()=>this._adapter.upload())).then((e=>(this.uploadResponse=e,this.status="idle",e))).catch((e=>{if("aborted"===this.status)throw"aborted";throw this.status="error",e}))}abort(){const e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((()=>{})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(e){const t={};return t.promise=new Promise(((o,s)=>{t.rejecter=s,t.isFulfilled=!1,e.then((e=>{t.isFulfilled=!0,o(e)})).catch((e=>{t.isFulfilled=!0,s(e)}))})),t}}class c extends s.k_{static get requires(){return[r]}static get pluginName(){return"Base64UploadAdapter"}init(){this.editor.plugins.get(r).createUploadAdapter=e=>new l(e)}}class l{loader;reader;constructor(e){this.loader=e}upload(){return new Promise(((e,t)=>{const o=this.reader=new window.FileReader;o.addEventListener("load",(()=>{e({default:o.result})})),o.addEventListener("error",(e=>{t(e)})),o.addEventListener("abort",(()=>{t()})),this.loader.file.then((e=>{o.readAsDataURL(e)}))}))}abort(){this.reader.abort()}}class d extends s.k_{static get requires(){return[r]}static get pluginName(){return"SimpleUploadAdapter"}init(){const e=this.editor.config.get("simpleUpload");e&&(e.uploadUrl?this.editor.plugins.get(r).createUploadAdapter=t=>new h(t,e):(0,i.FF)("simple-upload-adapter-missing-uploadurl"))}}class h{loader;options;xhr;constructor(e,t){this.loader=e,this.options=t}upload(){return this.loader.file.then((e=>new Promise(((t,o)=>{this._initRequest(),this._initListeners(t,o,e),this._sendRequest(e)}))))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const e=this.xhr=new XMLHttpRequest;e.open("POST",this.options.uploadUrl,!0),e.responseType="json"}_initListeners(e,t,o){const s=this.xhr,i=this.loader,n=`Couldn't upload file: ${o.name}.`;s.addEventListener("error",(()=>t(n))),s.addEventListener("abort",(()=>t())),s.addEventListener("load",(()=>{const o=s.response;if(!o||o.error)return t(o&&o.error&&o.error.message?o.error.message:n);const i=o.url?{default:o.url}:o.urls;e({...o,urls:i})})),s.upload&&s.upload.addEventListener("progress",(e=>{e.lengthComputable&&(i.uploadTotal=e.total,i.uploaded=e.loaded)}))}_sendRequest(e){const t=this.options.headers||{},o=this.options.withCredentials||!1;for(const e of Object.keys(t))this.xhr.setRequestHeader(e,t[e]);this.xhr.withCredentials=o;const s=new FormData;s.append("upload",e),this.xhr.send(s)}}},"./src/utils.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{CKEditorError:()=>s.Yb,Collection:()=>s.pM,Config:()=>s.TS,DomEmitterMixin:()=>s.c5,ElementReplacer:()=>s.PZ,EmitterMixin:()=>s.Mm,EventInfo:()=>s.vY,FocusTracker:()=>s.$x,KeystrokeHandler:()=>s.EP,Locale:()=>s.hT,ObservableMixin:()=>s.VM,Rect:()=>s.rw,ResizeObserver:()=>s.tb,abortableDebounce:()=>s.KL,compareArrays:()=>s.ww,count:()=>s.U9,createElement:()=>s.n,delay:()=>s.cb,diff:()=>s.Ui,diffToChanges:()=>s.q8,env:()=>s._K,exponentialDelay:()=>s.Nv,fastDiff:()=>s.Mr,findClosestScrollableAncestor:()=>s.j3,first:()=>s.$1,getAncestors:()=>s.DS,getBorderWidths:()=>s.Md,getCode:()=>s.QC,getDataFromElement:()=>s.pG,getEnvKeystrokeText:()=>s.YA,getLanguageDirection:()=>s.iJ,getLocalizedArrowKeyCodeDirection:()=>s.Kf,getOptimalPosition:()=>s.W,global:()=>s.Sf,indexOf:()=>s.qh,insertAt:()=>s.PT,insertToPriorityArray:()=>s.Yy,isArrowKeyCode:()=>s.Yt,isCombiningMark:()=>s.mY,isComment:()=>s.Cn,isForwardArrowKeyCode:()=>s.HK,isHighSurrogateHalf:()=>s.kv,isInsideCombinedSymbol:()=>s.Iw,isInsideEmojiSequence:()=>s.SQ,isInsideSurrogatePair:()=>s.P5,isIterable:()=>s.xZ,isLowSurrogateHalf:()=>s.k$,isNode:()=>s.Ll,isRange:()=>s._Z,isText:()=>s.KH,isValidAttributeName:()=>s.i8,isVisible:()=>s.zN,keyCodes:()=>s.uP,logError:()=>s.vV,logWarning:()=>s.FF,mix:()=>s.jh,parseKeystroke:()=>s.ZX,priorities:()=>s.vx,releaseDate:()=>s.kM,remove:()=>s.TF,retry:()=>s.L5,scrollAncestorsToShowTarget:()=>s.bi,scrollViewportToShowTarget:()=>s.vK,setDataInElement:()=>s.C_,spliceArray:()=>s.eL,toArray:()=>s.$r,toMap:()=>s.av,toUnit:()=>s.To,uid:()=>s.Ld,verifyLicense:()=>s.rQ,version:()=>s.rE,wait:()=>s.uk});var s=o("./packages/ckeditor5-utils/src/index.ts")},"./src/watchdog.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{ContextWatchdog:()=>s.Zd,EditorWatchdog:()=>s.VJ,Watchdog:()=>s.Io});var s=o("./packages/ckeditor5-watchdog/src/index.ts")},"./src/widget.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{WIDGET_CLASS_NAME:()=>s.iW,WIDGET_SELECTED_CLASS_NAME:()=>s.w_,Widget:()=>s.x0,WidgetResize:()=>s.VE,WidgetToolbarRepository:()=>s.oP,WidgetTypeAround:()=>s.oT,calculateResizeHostAncestorWidth:()=>s.Wu,calculateResizeHostPercentageWidth:()=>s.Hq,findOptimalInsertionRange:()=>s.iB,getLabel:()=>s.p9,isWidget:()=>s.p4,setHighlightHandling:()=>s._s,setLabel:()=>s.je,toWidget:()=>s.Ex,toWidgetEditable:()=>s.YN,viewToModelPositionOutsideModelElement:()=>s.$u});var s=o("./packages/ckeditor5-widget/src/index.ts")},"?7cdd":(e,t,o)=>{e.exports=o},"./node_modules/lodash-es/_ListCache.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>u});const s=function(){this.__data__=[],this.size=0};var i=o("./node_modules/lodash-es/eq.js");const n=function(e,t){for(var o=e.length;o--;)if((0,i.A)(e[o][0],t))return o;return-1};var r=Array.prototype.splice;const a=function(e){var t=this.__data__,o=n(t,e);return!(o<0)&&(o==t.length-1?t.pop():r.call(t,o,1),--this.size,!0)};const c=function(e){var t=this.__data__,o=n(t,e);return o<0?void 0:t[o][1]};const l=function(e){return n(this.__data__,e)>-1};const d=function(e,t){var o=this.__data__,s=n(o,e);return s<0?(++this.size,o.push([e,t])):o[s][1]=t,this};function h(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t{"use strict";o.d(t,{A:()=>n});var s=o("./node_modules/lodash-es/_getNative.js"),i=o("./node_modules/lodash-es/_root.js");const n=(0,s.A)(i.A,"Map")},"./node_modules/lodash-es/_MapCache.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>x});const s=(0,o("./node_modules/lodash-es/_getNative.js").A)(Object,"create");const i=function(){this.__data__=s?s(null):{},this.size=0};const n=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var r=Object.prototype.hasOwnProperty;const a=function(e){var t=this.__data__;if(s){var o=t[e];return"__lodash_hash_undefined__"===o?void 0:o}return r.call(t,e)?t[e]:void 0};var c=Object.prototype.hasOwnProperty;const l=function(e){var t=this.__data__;return s?void 0!==t[e]:c.call(t,e)};const d=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this};function h(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t{"use strict";o.d(t,{A:()=>u});var s=o("./node_modules/lodash-es/_ListCache.js");const i=function(){this.__data__=new s.A,this.size=0};const n=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o};const r=function(e){return this.__data__.get(e)};const a=function(e){return this.__data__.has(e)};var c=o("./node_modules/lodash-es/_Map.js"),l=o("./node_modules/lodash-es/_MapCache.js");const d=function(e,t){var o=this.__data__;if(o instanceof s.A){var i=o.__data__;if(!c.A||i.length<199)return i.push([e,t]),this.size=++o.size,this;o=this.__data__=new l.A(i)}return o.set(e,t),this.size=o.size,this};function h(e){var t=this.__data__=new s.A(e);this.size=t.size}h.prototype.clear=i,h.prototype.delete=n,h.prototype.get=r,h.prototype.has=a,h.prototype.set=d;const u=h},"./node_modules/lodash-es/_Symbol.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s=o("./node_modules/lodash-es/_root.js").A.Symbol},"./node_modules/lodash-es/_Uint8Array.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s=o("./node_modules/lodash-es/_root.js").A.Uint8Array},"./node_modules/lodash-es/_arrayLikeKeys.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>d});const s=function(e,t){for(var o=-1,s=Array(e);++o{"use strict";o.d(t,{A:()=>s});const s=function(e,t){for(var o=-1,s=t.length,i=e.length;++o{"use strict";o.d(t,{A:()=>r});var s=o("./node_modules/lodash-es/_baseAssignValue.js"),i=o("./node_modules/lodash-es/eq.js"),n=Object.prototype.hasOwnProperty;const r=function(e,t,o){var r=e[t];n.call(e,t)&&(0,i.A)(r,o)&&(void 0!==o||t in e)||(0,s.A)(e,t,o)}},"./node_modules/lodash-es/_baseAssignValue.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var s=o("./node_modules/lodash-es/_defineProperty.js");const i=function(e,t,o){"__proto__"==t&&s.A?(0,s.A)(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}},"./node_modules/lodash-es/_baseClone.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>Q});var s=o("./node_modules/lodash-es/_Stack.js");const i=function(e,t){for(var o=-1,s=null==e?0:e.length;++o{"use strict";o.d(t,{A:()=>s});const s=function(e){return function(t,o,s){for(var i=-1,n=Object(t),r=s(t),a=r.length;a--;){var c=r[e?a:++i];if(!1===o(n[c],c,n))break}return t}}()},"./node_modules/lodash-es/_baseGet.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>n});var s=o("./node_modules/lodash-es/_castPath.js"),i=o("./node_modules/lodash-es/_toKey.js");const n=function(e,t){for(var o=0,n=(t=(0,s.A)(t,e)).length;null!=e&&o{"use strict";o.d(t,{A:()=>n});var s=o("./node_modules/lodash-es/_arrayPush.js"),i=o("./node_modules/lodash-es/isArray.js");const n=function(e,t,o){var n=t(e);return(0,i.A)(e)?n:(0,s.A)(n,o(e))}},"./node_modules/lodash-es/_baseGetTag.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>u});var s=o("./node_modules/lodash-es/_Symbol.js"),i=Object.prototype,n=i.hasOwnProperty,r=i.toString,a=s.A?s.A.toStringTag:void 0;const c=function(e){var t=n.call(e,a),o=e[a];try{e[a]=void 0;var s=!0}catch(e){}var i=r.call(e);return s&&(t?e[a]=o:delete e[a]),i};var l=Object.prototype.toString;const d=function(e){return l.call(e)};var h=s.A?s.A.toStringTag:void 0;const u=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":h&&h in Object(e)?c(e):d(e)}},"./node_modules/lodash-es/_baseIsEqual.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>R});var s=o("./node_modules/lodash-es/_Stack.js"),i=o("./node_modules/lodash-es/_MapCache.js");const n=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const r=function(e){return this.__data__.has(e)};function a(e){var t=-1,o=null==e?0:e.length;for(this.__data__=new i.A;++ta))return!1;var u=n.get(e),p=n.get(t);if(u&&p)return u==t&&p==e;var m=-1,f=!0,g=2&o?new c:void 0;for(n.set(e,t),n.set(t,e);++m{"use strict";o.d(t,{A:()=>s});const s=function(e){return function(t){return e(t)}}},"./node_modules/lodash-es/_castPath.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>u});var s=o("./node_modules/lodash-es/isArray.js"),i=o("./node_modules/lodash-es/_isKey.js"),n=o("./node_modules/lodash-es/_MapCache.js");function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var o=function(){var s=arguments,i=t?t.apply(this,s):s[0],n=o.cache;if(n.has(i))return n.get(i);var r=e.apply(this,s);return o.cache=n.set(i,r)||n,r};return o.cache=new(r.Cache||n.A),o}r.Cache=n.A;const a=r;var c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g;const d=function(e){var t=a(e,(function(e){return 500===o.size&&o.clear(),e})),o=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(c,(function(e,o,s,i){t.push(s?i.replace(l,"$1"):o||e)})),t}));var h=o("./node_modules/lodash-es/toString.js");const u=function(e,t){return(0,s.A)(e)?e:(0,i.A)(e,t)?[e]:d((0,h.A)(e))}},"./node_modules/lodash-es/_cloneArrayBuffer.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var s=o("./node_modules/lodash-es/_Uint8Array.js");const i=function(e){var t=new e.constructor(e.byteLength);return new s.A(t).set(new s.A(e)),t}},"./node_modules/lodash-es/_cloneBuffer.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var s=o("./node_modules/lodash-es/_root.js"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,n=i&&"object"==typeof module&&module&&!module.nodeType&&module,r=n&&n.exports===i?s.A.Buffer:void 0,a=r?r.allocUnsafe:void 0;const c=function(e,t){if(t)return e.slice();var o=e.length,s=a?a(o):new e.constructor(o);return e.copy(s),s}},"./node_modules/lodash-es/_cloneTypedArray.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var s=o("./node_modules/lodash-es/_cloneArrayBuffer.js");const i=function(e,t){var o=t?(0,s.A)(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}},"./node_modules/lodash-es/_copyArray.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s=function(e,t){var o=-1,s=e.length;for(t||(t=Array(s));++o{"use strict";o.d(t,{A:()=>n});var s=o("./node_modules/lodash-es/_assignValue.js"),i=o("./node_modules/lodash-es/_baseAssignValue.js");const n=function(e,t,o,n){var r=!o;o||(o={});for(var a=-1,c=t.length;++a{"use strict";o.d(t,{A:()=>b});var s=o("./node_modules/lodash-es/identity.js");const i=function(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)};var n=Math.max;const r=function(e,t,o){return t=n(void 0===t?e.length-1:t,0),function(){for(var s=arguments,r=-1,a=n(s.length-t,0),c=Array(a);++r0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(l);const u=function(e,t){return h(r(e,t,s.A),e+"")};var p=o("./node_modules/lodash-es/eq.js"),m=o("./node_modules/lodash-es/isArrayLike.js"),f=o("./node_modules/lodash-es/_isIndex.js"),g=o("./node_modules/lodash-es/isObject.js");const _=function(e,t,o){if(!(0,g.A)(o))return!1;var s=typeof t;return!!("number"==s?(0,m.A)(o)&&(0,f.A)(t,o.length):"string"==s&&t in o)&&(0,p.A)(o[t],e)};const b=function(e){return u((function(t,o){var s=-1,i=o.length,n=i>1?o[i-1]:void 0,r=i>2?o[2]:void 0;for(n=e.length>3&&"function"==typeof n?(i--,n):void 0,r&&_(o[0],o[1],r)&&(n=i<3?void 0:n,i=1),t=Object(t);++s{"use strict";o.d(t,{A:()=>i});var s=o("./node_modules/lodash-es/_getNative.js");const i=function(){try{var e=(0,s.A)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},"./node_modules/lodash-es/_freeGlobal.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s="object"==typeof global&&global&&global.Object===Object&&global},"./node_modules/lodash-es/_getAllKeys.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var s=o("./node_modules/lodash-es/_baseGetAllKeys.js"),i=o("./node_modules/lodash-es/_getSymbols.js"),n=o("./node_modules/lodash-es/keys.js");const r=function(e){return(0,s.A)(e,n.A,i.A)}},"./node_modules/lodash-es/_getNative.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>b});var s=o("./node_modules/lodash-es/isFunction.js");const i=o("./node_modules/lodash-es/_root.js").A["__core-js_shared__"];var n,r=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";const a=function(e){return!!r&&r in e};var c=o("./node_modules/lodash-es/isObject.js"),l=o("./node_modules/lodash-es/_toSource.js"),d=/^\[object .+?Constructor\]$/,h=Function.prototype,u=Object.prototype,p=h.toString,m=u.hasOwnProperty,f=RegExp("^"+p.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const g=function(e){return!(!(0,c.A)(e)||a(e))&&((0,s.A)(e)?f:d).test((0,l.A)(e))};const _=function(e,t){return null==e?void 0:e[t]};const b=function(e,t){var o=_(e,t);return g(o)?o:void 0}},"./node_modules/lodash-es/_getPrototype.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s=(0,o("./node_modules/lodash-es/_overArg.js").A)(Object.getPrototypeOf,Object)},"./node_modules/lodash-es/_getSymbols.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});const s=function(e,t){for(var o=-1,s=null==e?0:e.length,i=0,n=[];++o{"use strict";o.d(t,{A:()=>x});var s=o("./node_modules/lodash-es/_getNative.js"),i=o("./node_modules/lodash-es/_root.js");const n=(0,s.A)(i.A,"DataView");var r=o("./node_modules/lodash-es/_Map.js");const a=(0,s.A)(i.A,"Promise");const c=(0,s.A)(i.A,"Set");const l=(0,s.A)(i.A,"WeakMap");var d=o("./node_modules/lodash-es/_baseGetTag.js"),h=o("./node_modules/lodash-es/_toSource.js"),u="[object Map]",p="[object Promise]",m="[object Set]",f="[object WeakMap]",g="[object DataView]",_=(0,h.A)(n),b=(0,h.A)(r.A),k=(0,h.A)(a),w=(0,h.A)(c),v=(0,h.A)(l),y=d.A;(n&&y(new n(new ArrayBuffer(1)))!=g||r.A&&y(new r.A)!=u||a&&y(a.resolve())!=p||c&&y(new c)!=m||l&&y(new l)!=f)&&(y=function(e){var t=(0,d.A)(e),o="[object Object]"==t?e.constructor:void 0,s=o?(0,h.A)(o):"";if(s)switch(s){case _:return g;case b:return u;case k:return p;case w:return m;case v:return f}return t});const x=y},"./node_modules/lodash-es/_initCloneObject.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var s=o("./node_modules/lodash-es/isObject.js"),i=Object.create;const n=function(){function e(){}return function(t){if(!(0,s.A)(t))return{};if(i)return i(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}();var r=o("./node_modules/lodash-es/_getPrototype.js"),a=o("./node_modules/lodash-es/_isPrototype.js");const c=function(e){return"function"!=typeof e.constructor||(0,a.A)(e)?{}:n((0,r.A)(e))}},"./node_modules/lodash-es/_isIndex.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var s=/^(?:0|[1-9]\d*)$/;const i=function(e,t){var o=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&s.test(e))&&e>-1&&e%1==0&&e{"use strict";o.d(t,{A:()=>a});var s=o("./node_modules/lodash-es/isArray.js"),i=o("./node_modules/lodash-es/isSymbol.js"),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;const a=function(e,t){if((0,s.A)(e))return!1;var o=typeof e;return!("number"!=o&&"symbol"!=o&&"boolean"!=o&&null!=e&&!(0,i.A)(e))||(r.test(e)||!n.test(e)||null!=t&&e in Object(t))}},"./node_modules/lodash-es/_isPrototype.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var s=Object.prototype;const i=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||s)}},"./node_modules/lodash-es/_nodeUtil.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("./node_modules/lodash-es/_freeGlobal.js"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,n=i&&"object"==typeof module&&module&&!module.nodeType&&module,r=n&&n.exports===i&&s.A.process;const a=function(){try{var e=n&&n.require&&n.require("util").types;return e||r&&r.binding&&r.binding("util")}catch(e){}}()},"./node_modules/lodash-es/_overArg.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s=function(e,t){return function(o){return e(t(o))}}},"./node_modules/lodash-es/_root.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>n});var s=o("./node_modules/lodash-es/_freeGlobal.js"),i="object"==typeof self&&self&&self.Object===Object&&self;const n=s.A||i||Function("return this")()},"./node_modules/lodash-es/_toKey.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var s=o("./node_modules/lodash-es/isSymbol.js");const i=function(e){if("string"==typeof e||(0,s.A)(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},"./node_modules/lodash-es/_toSource.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var s=Function.prototype.toString;const i=function(e){if(null!=e){try{return s.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},"./node_modules/lodash-es/assignIn.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var s=o("./node_modules/lodash-es/_copyObject.js"),i=o("./node_modules/lodash-es/_createAssigner.js"),n=o("./node_modules/lodash-es/keysIn.js");const r=(0,i.A)((function(e,t){(0,s.A)(t,(0,n.A)(t),e)}))},"./node_modules/lodash-es/cloneDeep.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var s=o("./node_modules/lodash-es/_baseClone.js");const i=function(e){return(0,s.A)(e,5)}},"./node_modules/lodash-es/cloneDeepWith.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var s=o("./node_modules/lodash-es/_baseClone.js");const i=function(e,t){return t="function"==typeof t?t:void 0,(0,s.A)(e,5,t)}},"./node_modules/lodash-es/debounce.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>b});var s=o("./node_modules/lodash-es/isObject.js"),i=o("./node_modules/lodash-es/_root.js");const n=function(){return i.A.Date.now()};var r=/\s/;const a=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t};var c=/^\s+/;const l=function(e){return e?e.slice(0,a(e)+1).replace(c,""):e};var d=o("./node_modules/lodash-es/isSymbol.js"),h=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,p=/^0o[0-7]+$/i,m=parseInt;const f=function(e){if("number"==typeof e)return e;if((0,d.A)(e))return NaN;if((0,s.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,s.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=l(e);var o=u.test(e);return o||p.test(e)?m(e.slice(2),o?2:8):h.test(e)?NaN:+e};var g=Math.max,_=Math.min;const b=function(e,t,o){var i,r,a,c,l,d,h=0,u=!1,p=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var o=i,s=r;return i=r=void 0,h=t,c=e.apply(s,o)}function k(e){var o=e-d;return void 0===d||o>=t||o<0||p&&e-h>=a}function w(){var e=n();if(k(e))return v(e);l=setTimeout(w,function(e){var o=t-(e-d);return p?_(o,a-(e-h)):o}(e))}function v(e){return l=void 0,m&&i?b(e):(i=r=void 0,c)}function y(){var e=n(),o=k(e);if(i=arguments,r=this,d=e,o){if(void 0===l)return function(e){return h=e,l=setTimeout(w,t),u?b(e):c}(d);if(p)return clearTimeout(l),l=setTimeout(w,t),b(d)}return void 0===l&&(l=setTimeout(w,t)),c}return t=f(t)||0,(0,s.A)(o)&&(u=!!o.leading,a=(p="maxWait"in o)?g(f(o.maxWait)||0,t):a,m="trailing"in o?!!o.trailing:m),y.cancel=function(){void 0!==l&&clearTimeout(l),h=0,i=d=r=l=void 0},y.flush=function(){return void 0===l?c:v(n())},y}},"./node_modules/lodash-es/eq.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s=function(e,t){return e===t||e!=e&&t!=t}},"./node_modules/lodash-es/escapeRegExp.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var s=o("./node_modules/lodash-es/toString.js"),i=/[\\^$.*+?()[\]{}|]/g,n=RegExp(i.source);const r=function(e){return(e=(0,s.A)(e))&&n.test(e)?e.replace(i,"\\$&"):e}},"./node_modules/lodash-es/get.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var s=o("./node_modules/lodash-es/_baseGet.js");const i=function(e,t,o){var i=null==e?void 0:(0,s.A)(e,t);return void 0===i?o:i}},"./node_modules/lodash-es/identity.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s=function(e){return e}},"./node_modules/lodash-es/isArguments.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>l});var s=o("./node_modules/lodash-es/_baseGetTag.js"),i=o("./node_modules/lodash-es/isObjectLike.js");const n=function(e){return(0,i.A)(e)&&"[object Arguments]"==(0,s.A)(e)};var r=Object.prototype,a=r.hasOwnProperty,c=r.propertyIsEnumerable;const l=n(function(){return arguments}())?n:function(e){return(0,i.A)(e)&&a.call(e,"callee")&&!c.call(e,"callee")}},"./node_modules/lodash-es/isArray.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s=Array.isArray},"./node_modules/lodash-es/isArrayLike.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>n});var s=o("./node_modules/lodash-es/isFunction.js"),i=o("./node_modules/lodash-es/isLength.js");const n=function(e){return null!=e&&(0,i.A)(e.length)&&!(0,s.A)(e)}},"./node_modules/lodash-es/isBuffer.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var s=o("./node_modules/lodash-es/_root.js");const i=function(){return!1};var n="object"==typeof exports&&exports&&!exports.nodeType&&exports,r=n&&"object"==typeof module&&module&&!module.nodeType&&module,a=r&&r.exports===n?s.A.Buffer:void 0;const c=(a?a.isBuffer:void 0)||i},"./node_modules/lodash-es/isElement.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>n});var s=o("./node_modules/lodash-es/isObjectLike.js"),i=o("./node_modules/lodash-es/isPlainObject.js");const n=function(e){return(0,s.A)(e)&&1===e.nodeType&&!(0,i.A)(e)}},"./node_modules/lodash-es/isFunction.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>n});var s=o("./node_modules/lodash-es/_baseGetTag.js"),i=o("./node_modules/lodash-es/isObject.js");const n=function(e){if(!(0,i.A)(e))return!1;var t=(0,s.A)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"./node_modules/lodash-es/isLength.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},"./node_modules/lodash-es/isObject.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"./node_modules/lodash-es/isObjectLike.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s=function(e){return null!=e&&"object"==typeof e}},"./node_modules/lodash-es/isPlainObject.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>h});var s=o("./node_modules/lodash-es/_baseGetTag.js"),i=o("./node_modules/lodash-es/_getPrototype.js"),n=o("./node_modules/lodash-es/isObjectLike.js"),r=Function.prototype,a=Object.prototype,c=r.toString,l=a.hasOwnProperty,d=c.call(Object);const h=function(e){if(!(0,n.A)(e)||"[object Object]"!=(0,s.A)(e))return!1;var t=(0,i.A)(e);if(null===t)return!0;var o=l.call(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&c.call(o)==d}},"./node_modules/lodash-es/isSymbol.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>n});var s=o("./node_modules/lodash-es/_baseGetTag.js"),i=o("./node_modules/lodash-es/isObjectLike.js");const n=function(e){return"symbol"==typeof e||(0,i.A)(e)&&"[object Symbol]"==(0,s.A)(e)}},"./node_modules/lodash-es/isTypedArray.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>h});var s=o("./node_modules/lodash-es/_baseGetTag.js"),i=o("./node_modules/lodash-es/isLength.js"),n=o("./node_modules/lodash-es/isObjectLike.js"),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1;const a=function(e){return(0,n.A)(e)&&(0,i.A)(e.length)&&!!r[(0,s.A)(e)]};var c=o("./node_modules/lodash-es/_baseUnary.js"),l=o("./node_modules/lodash-es/_nodeUtil.js"),d=l.A&&l.A.isTypedArray;const h=d?(0,c.A)(d):a},"./node_modules/lodash-es/keys.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>l});var s=o("./node_modules/lodash-es/_arrayLikeKeys.js"),i=o("./node_modules/lodash-es/_isPrototype.js");const n=(0,o("./node_modules/lodash-es/_overArg.js").A)(Object.keys,Object);var r=Object.prototype.hasOwnProperty;const a=function(e){if(!(0,i.A)(e))return n(e);var t=[];for(var o in Object(e))r.call(e,o)&&"constructor"!=o&&t.push(o);return t};var c=o("./node_modules/lodash-es/isArrayLike.js");const l=function(e){return(0,c.A)(e)?(0,s.A)(e):a(e)}},"./node_modules/lodash-es/keysIn.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var s=o("./node_modules/lodash-es/_arrayLikeKeys.js"),i=o("./node_modules/lodash-es/isObject.js"),n=o("./node_modules/lodash-es/_isPrototype.js");const r=function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t};var a=Object.prototype.hasOwnProperty;const c=function(e){if(!(0,i.A)(e))return r(e);var t=(0,n.A)(e),o=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&o.push(s);return o};var l=o("./node_modules/lodash-es/isArrayLike.js");const d=function(e){return(0,l.A)(e)?(0,s.A)(e,!0):c(e)}},"./node_modules/lodash-es/merge.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>P});var s=o("./node_modules/lodash-es/_Stack.js"),i=o("./node_modules/lodash-es/_baseAssignValue.js"),n=o("./node_modules/lodash-es/eq.js");const r=function(e,t,o){(void 0!==o&&!(0,n.A)(e[t],o)||void 0===o&&!(t in e))&&(0,i.A)(e,t,o)};var a=o("./node_modules/lodash-es/_baseFor.js"),c=o("./node_modules/lodash-es/_cloneBuffer.js"),l=o("./node_modules/lodash-es/_cloneTypedArray.js"),d=o("./node_modules/lodash-es/_copyArray.js"),h=o("./node_modules/lodash-es/_initCloneObject.js"),u=o("./node_modules/lodash-es/isArguments.js"),p=o("./node_modules/lodash-es/isArray.js"),m=o("./node_modules/lodash-es/isArrayLike.js"),f=o("./node_modules/lodash-es/isObjectLike.js");const g=function(e){return(0,f.A)(e)&&(0,m.A)(e)};var _=o("./node_modules/lodash-es/isBuffer.js"),b=o("./node_modules/lodash-es/isFunction.js"),k=o("./node_modules/lodash-es/isObject.js"),w=o("./node_modules/lodash-es/isPlainObject.js"),v=o("./node_modules/lodash-es/isTypedArray.js");const y=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var x=o("./node_modules/lodash-es/_copyObject.js"),A=o("./node_modules/lodash-es/keysIn.js");const C=function(e){return(0,x.A)(e,(0,A.A)(e))};const T=function(e,t,o,s,i,n,a){var m=y(e,o),f=y(t,o),x=a.get(f);if(x)r(e,o,x);else{var A=n?n(m,f,o+"",e,t,a):void 0,T=void 0===A;if(T){var E=(0,p.A)(f),P=!E&&(0,_.A)(f),S=!E&&!P&&(0,v.A)(f);A=f,E||P||S?(0,p.A)(m)?A=m:g(m)?A=(0,d.A)(m):P?(T=!1,A=(0,c.A)(f,!0)):S?(T=!1,A=(0,l.A)(f,!0)):A=[]:(0,w.A)(f)||(0,u.A)(f)?(A=m,(0,u.A)(m)?A=C(m):(0,k.A)(m)&&!(0,b.A)(m)||(A=(0,h.A)(f))):T=!1}T&&(a.set(f,A),i(A,f,s,n,a),a.delete(f)),r(e,o,A)}};const E=function e(t,o,i,n,c){t!==o&&(0,a.A)(o,(function(a,l){if(c||(c=new s.A),(0,k.A)(a))T(t,o,l,i,e,n,c);else{var d=n?n(y(t,l),a,l+"",t,o,c):void 0;void 0===d&&(d=a),r(t,l,d)}}),A.A)};const P=(0,o("./node_modules/lodash-es/_createAssigner.js").A)((function(e,t,o){E(e,t,o)}))},"./node_modules/lodash-es/stubArray.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s=function(){return[]}},"./node_modules/lodash-es/throttle.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>n});var s=o("./node_modules/lodash-es/debounce.js"),i=o("./node_modules/lodash-es/isObject.js");const n=function(e,t,o){var n=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return(0,i.A)(o)&&(n="leading"in o?!!o.leading:n,r="trailing"in o?!!o.trailing:r),(0,s.A)(e,t,{leading:n,maxWait:t,trailing:r})}},"./node_modules/lodash-es/toString.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var s=o("./node_modules/lodash-es/_Symbol.js");const i=function(e,t){for(var o=-1,s=null==e?0:e.length,i=Array(s);++o{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var s=o("?7cdd");(window.CKEditor5=window.CKEditor5||{}).dll=s})(),function(e){e.CKEditor5=e.CKEditor5||{};const t=["utils","core","engine","ui","clipboard","enter","paragraph","select-all","typing","undo","upload","widget","watchdog"];for(const o of t){const t=o.replace(/-([a-z])/g,((e,t)=>t.toUpperCase()));e.CKEditor5[t]=e.CKEditor5.dll(`./src/${o}.js`)}}(window);
\ No newline at end of file
diff --git a/core/assets/vendor/ckeditor5/table/table.js b/core/assets/vendor/ckeditor5/table/table.js
index f6d3bb2968c..691d346bcbe 100644
--- a/core/assets/vendor/ckeditor5/table/table.js
+++ b/core/assets/vendor/ckeditor5/table/table.js
@@ -2,4 +2,4 @@
/*!
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
- */(()=>{var e={770:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}",""]);const r=i},67:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}",""]);const r=i},839:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}",""]);const r=i},712:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,".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{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;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)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}@media (prefers-reduced-motion:reduce){.ck .ck-insert-table-dropdown-grid-box{transition:none}}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}",""]);const r=i},25:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}",""]);const r=i},175:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}@media (forced-colors:active){.ck-content .table>figcaption{background-color:unset;color:unset}}@media (forced-colors:none){.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}",""]);const r=i},266:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}",""]);const r=i},363:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,":root{--ck-color-selector-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word;position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:0;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:0;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-selector-column-resizer-hover);bottom:-999999px;opacity:.25;top:-999999px}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}",""]);const r=i},817:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.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-selector-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}",""]);const r=i},911:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}@media (prefers-reduced-motion:reduce){.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:none}}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',""]);const r=i},218:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}",""]);const r=i},719:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top: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,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',""]);const r=i},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o=e(t);return t[2]?"@media ".concat(t[2]," {").concat(o,"}"):o})).join("")},t.i=function(e,o,n){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(n)for(var r=0;r{"use strict";var n,i=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var e={};return function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[t]=o}return e[t]}}(),l=[];function s(e){for(var t=-1,o=0;o{e.exports=o(237)("./src/clipboard.js")},782:(e,t,o)=>{e.exports=o(237)("./src/core.js")},783:(e,t,o)=>{e.exports=o(237)("./src/engine.js")},311:(e,t,o)=>{e.exports=o(237)("./src/ui.js")},584:(e,t,o)=>{e.exports=o(237)("./src/utils.js")},901:(e,t,o)=>{e.exports=o(237)("./src/widget.js")},237:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={id:n,exports:{}};return e[n](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var n={};(()=>{"use strict";o.r(n),o.d(n,{PlainTableOutput:()=>Ze,Table:()=>Qe,TableCaption:()=>cn,TableCaptionEditing:()=>rn,TableCaptionUI:()=>ln,TableCellProperties:()=>zo,TableCellPropertiesEditing:()=>Eo,TableCellPropertiesUI:()=>wo,TableCellWidthEditing:()=>vo,TableClipboard:()=>Me,TableColumnResize:()=>jr,TableColumnResizeEditing:()=>Wr,TableEditing:()=>Re,TableKeyboard:()=>$e,TableMouse:()=>qe,TableProperties:()=>Qo,TablePropertiesEditing:()=>Uo,TablePropertiesUI:()=>Yo,TableSelection:()=>Oe,TableToolbar:()=>rt,TableUI:()=>Le,TableUtils:()=>ie});var e=o(782),t=o(901);function i(e,t){const{modelAttribute:o,styleName:n,viewElement:i,defaultValue:r,reduceBoxSides:l=!1,shouldUpcast:s=(()=>!0)}=t;e.for("upcast").attributeToAttribute({view:{name:i,styles:{[n]:/[\s\S]+/}},model:{key:o,value:e=>{if(!s(e))return;const t=e.getNormalizedStyle(n),o=l?a(t):t;return r!==o?o:void 0}}})}function r(e,t,o,n){e.for("upcast").add((e=>e.on("element:"+t,((e,t,i)=>{if(!t.modelRange)return;const r=["border-top-width","border-top-color","border-top-style","border-bottom-width","border-bottom-color","border-bottom-style","border-right-width","border-right-color","border-right-style","border-left-width","border-left-color","border-left-style"].filter((e=>t.viewItem.hasStyle(e)));if(!r.length)return;const l={styles:r};if(!i.consumable.test(t.viewItem,l))return;const s=[...t.modelRange.getItems({shallow:!0})].pop();i.consumable.consume(t.viewItem,l);const c={style:t.viewItem.getNormalizedStyle("border-style"),color:t.viewItem.getNormalizedStyle("border-color"),width:t.viewItem.getNormalizedStyle("border-width")},d={style:a(c.style),color:a(c.color),width:a(c.width)};d.style!==n.style&&i.writer.setAttribute(o.style,d.style,s),d.color!==n.color&&i.writer.setAttribute(o.color,d.color,s),d.width!==n.width&&i.writer.setAttribute(o.width,d.width,s)}))))}function l(e,t){const{modelElement:o,modelAttribute:n,styleName:i}=t;e.for("downcast").attributeToAttribute({model:{name:o,key:n},view:e=>({key:"style",value:{[i]:e}})})}function s(e,t){const{modelAttribute:o,styleName:n}=t;e.for("downcast").add((e=>e.on(`attribute:${o}:table`,((e,t,o)=>{const{item:i,attributeNewValue:r}=t,{mapper:l,writer:s}=o;if(!o.consumable.consume(t.item,e.name))return;const a=[...l.toViewElement(i).getChildren()].find((e=>e.is("element","table")));r?s.setStyle(n,r,a):s.removeStyle(n,a)}))))}function a(e){if(!e)return;const t=["top","right","bottom","left"];if(!t.every((t=>e[t])))return e;const o=e.top;return t.every((t=>e[t]===o))?o:e}function c(e,t,o,n,i=1){null!=t&&null!=i&&t>i?n.setAttribute(e,t,o):n.removeAttribute(e,o)}function d(e,t,o={}){const n=e.createElement("tableCell",o);return e.insertElement("paragraph",n),e.insert(n,t),n}function u(e,t){const o=t.parent.parent,n=parseInt(o.getAttribute("headingColumns")||"0"),{column:i}=e.getCellLocation(t);return!!n&&i{e.on("element:table",((e,t,o)=>{const n=t.viewItem;if(!o.consumable.test(n,{name:!0}))return;const{rows:i,headingRows:r,headingColumns:l}=function(e){let t,o=0;const n=[],i=[];let r;for(const l of Array.from(e.getChildren())){if("tbody"!==l.name&&"thead"!==l.name&&"tfoot"!==l.name)continue;"thead"!==l.name||r||(r=l);const e=Array.from(l.getChildren()).filter((e=>e.is("element","tr")));for(const s of e)if(r&&l===r||"tbody"===l.name&&Array.from(s.getChildren()).length&&Array.from(s.getChildren()).every((e=>e.is("element","th"))))o++,n.push(s);else{i.push(s);const e=f(s);(!t||eo.convertItem(e,o.writer.createPositionAt(a,"end")))),o.convertChildren(n,o.writer.createPositionAt(a,"end")),a.isEmpty){const e=o.writer.createElement("tableRow");o.writer.insert(e,o.writer.createPositionAt(a,"end")),d(o.writer,o.writer.createPositionAt(e,"end"))}o.updateConversionResult(a,t)}}))}}function p(e){return t=>{t.on(`element:${e}`,((e,t,{writer:o})=>{if(!t.modelRange)return;const n=t.modelRange.start.nodeAfter,i=o.createPositionAt(n,0);if(t.viewItem.isEmpty)return void o.insertElement("paragraph",i);const r=Array.from(n.getChildren());if(r.every((e=>e.is("element","$marker")))){const e=o.createElement("paragraph");o.insert(e,o.createPositionAt(n,0));for(const t of r)o.move(o.createRangeOn(t),o.createPositionAt(e,"end"))}}),{priority:"low"})}}function f(e){let t=0,o=0;const n=Array.from(e.getChildren()).filter((e=>"th"===e.name||"td"===e.name));for(;o1||i>1)&&this._recordSpans(o,i,n),this._shouldSkipSlot()||(t=this._formatOutValue(o)),this._nextCellAtColumn=this._column+n}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,t||this.next()}skipRow(e){this._skipRows.add(e)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(e,t=this._row,o=this._column){return{done:!1,value:new _(this,e,t,o)}}_shouldSkipSlot(){const e=this._skipRows.has(this._row),t=this._rowthis._endColumn;return e||t||o||n}_getSpanned(){const e=this._spannedCells.get(this._row);return e&&e.get(this._column)||null}_recordSpans(e,t,o){const n={cell:e,row:this._row,column:this._column};for(let e=this._row;e0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const e=this._getRowLength(0);for(let t=this._startRow;!this._jumpedToStartRow;t--)e===this._getRowLength(t)&&(this._row=t,this._rowIndex=t,this._jumpedToStartRow=!0)}_getRowLength(e){return[...this._table.getChild(e).getChildren()].reduce(((e,t)=>e+parseInt(t.getAttribute("colspan")||"1")),0)}}class _{constructor(e,t,o,n){this.cell=t,this.row=e._row,this.column=e._column,this.cellAnchorRow=o,this.cellAnchorColumn=n,this._cellIndex=e._cellIndex,this._rowIndex=e._rowIndex,this._table=e._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function k(e,o){return(n,{writer:i})=>{const r=n.getAttribute("headingRows")||0,l=i.createContainerElement("table",null,[]),s=i.createContainerElement("figure",{class:"table"},l);r>0&&i.insert(i.createPositionAt(l,"end"),i.createContainerElement("thead",null,i.createSlot((e=>e.is("element","tableRow")&&e.indexe.is("element","tableRow")&&e.index>=r))));for(const{positionOffset:e,filter:t}of o.additionalSlots)i.insert(i.createPositionAt(l,e),i.createSlot(t));return i.insert(i.createPositionAt(l,"after"),i.createSlot((e=>!e.is("element","tableRow")&&!o.additionalSlots.some((({filter:t})=>t(e)))))),o.asWidget?function(e,o){return o.setCustomProperty("table",!0,e),(0,t.toWidget)(e,o,{hasSelectionHandle:!0})}(s,i):s}}function v(e={}){return(o,{writer:n})=>{const i=o.parent,r=i.parent,l=r.getChildIndex(i),s=new w(r,{row:l}),a=r.getAttribute("headingRows")||0,c=r.getAttribute("headingColumns")||0;let d=null;for(const i of s)if(i.cell==o){const o=i.row{if(!t.parent.is("element","tableCell"))return null;if(!y(t))return null;if(e.asWidget)return o.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const e=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,e),e}}}function y(e){return 1==e.parent.childCount&&!!e.getAttributeKeys().next().done}class A extends e.Command{refresh(){const e=this.editor.model,t=e.document.selection,o=e.schema;this.isEnabled=function(e,t){const o=e.getFirstPosition().parent,n=o===o.root?o:o.parent;return t.checkChild(n,"table")}(t,o)}execute(e={}){const t=this.editor,o=t.model,n=t.plugins.get("TableUtils"),i=t.config.get("table.defaultHeadings.rows"),r=t.config.get("table.defaultHeadings.columns");void 0===e.headingRows&&i&&(e.headingRows=i),void 0===e.headingColumns&&r&&(e.headingColumns=r),o.change((t=>{const i=n.createTable(t,e);o.insertObject(i,null,null,{findOptimalPosition:"auto"}),t.setSelection(t.createPositionAt(i.getNodeByPath([0,0,0]),0))}))}}class T extends e.Command{constructor(e,t={}){super(e),this.order=t.order||"below"}refresh(){const e=this.editor.model.document.selection,t=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e).length;this.isEnabled=t}execute(){const e=this.editor,t=e.model.document.selection,o=e.plugins.get("TableUtils"),n="above"===this.order,i=o.getSelectionAffectedTableCells(t),r=o.getRowIndexes(i),l=n?r.first:r.last,s=i[0].findAncestor("table");o.insertRows(s,{at:n?l:l+1,copyStructureFromAbove:!n})}}class x extends e.Command{constructor(e,t={}){super(e),this.order=t.order||"right"}refresh(){const e=this.editor.model.document.selection,t=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e).length;this.isEnabled=t}execute(){const e=this.editor,t=e.model.document.selection,o=e.plugins.get("TableUtils"),n="left"===this.order,i=o.getSelectionAffectedTableCells(t),r=o.getColumnIndexes(i),l=n?r.first:r.last,s=i[0].findAncestor("table");o.insertColumns(s,{columns:1,at:n?l:l+1})}}class S extends e.Command{constructor(e,t={}){super(e),this.direction=t.direction||"horizontally"}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===e.length}execute(){const e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?e.splitCellHorizontally(t,2):e.splitCellVertically(t,2)}}function V(e,t,o){const{startRow:n,startColumn:i,endRow:r,endColumn:l}=t,s=o.createElement("table"),a=r-n+1;for(let e=0;e0){c("headingRows",r-o,e,i,0)}const l=parseInt(t.getAttribute("headingColumns")||"0");if(l>0){c("headingColumns",l-n,e,i,0)}}(s,e,n,i,o),s}function R(e,t,o=0){const n=[],i=new w(e,{startRow:o,endRow:t-1});for(const e of i){const{row:o,cellHeight:i}=e;o1&&(s.rowspan=a);const u=parseInt(e.getAttribute("colspan")||"1");u>1&&(s.colspan=u);const h=r+l,b=[...new w(i,{startRow:r,endRow:h,includeAllSlots:!0})];let m,g=null;for(const t of b){const{row:n,column:i,cell:r}=t;r===e&&void 0===m&&(m=i),void 0!==m&&m===i&&n===h&&(g=d(o,t.getPositionBefore(),s))}return c("rowspan",l,e,o),g}function P(e,t){const o=[],n=new w(e);for(const e of n){const{column:n,cellWidth:i}=e;n1&&(r.colspan=l);const s=parseInt(e.getAttribute("rowspan")||"1");s>1&&(r.rowspan=s);const a=d(n,n.createPositionAfter(e),r);return c("colspan",i,e,n),a}function z(e,t,o,n,i,r){const l=parseInt(e.getAttribute("colspan")||"1"),s=parseInt(e.getAttribute("rowspan")||"1");if(o+l-1>i){c("colspan",i-o+1,e,r,1)}if(t+s-1>n){c("rowspan",n-t+1,e,r,1)}}function B(e,t){const o=t.getColumns(e),n=new Array(o).fill(0);for(const{column:t}of new w(e))n[t]++;const i=n.reduce(((e,t,o)=>t?e:[...e,o]),[]);if(i.length>0){const o=i[i.length-1];return t.removeColumns(e,{at:o}),!0}return!1}function L(e,t){const o=[],n=t.getRows(e);for(let t=0;t0){const n=o[o.length-1];return t.removeRows(e,{at:n}),!0}return!1}function F(e,t){B(e,t)||L(e,t)}function W(e,t){const o=Array.from(new w(e,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));if(o.every((({cellHeight:e})=>1===e)))return t.lastRow;const n=o[0].cellHeight-1;return t.lastRow+n}function N(e,t){const o=Array.from(new w(e,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));if(o.every((({cellWidth:e})=>1===e)))return t.lastColumn;const n=o[0].cellWidth-1;return t.lastColumn+n}class O extends e.Command{constructor(e,t){super(e),this.direction=t.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const e=this._getMergeableCell();this.value=e,this.isEnabled=!!e}execute(){const e=this.editor.model,t=e.document,o=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(t.selection)[0],n=this.value,i=this.direction;e.change((e=>{const t="right"==i||"down"==i,r=t?o:n,l=t?n:o,s=l.parent;!function(e,t,o){j(e)||(j(t)&&o.remove(o.createRangeIn(t)),o.move(o.createRangeIn(e),o.createPositionAt(t,"end")));o.remove(e)}(l,r,e);const a=this.isHorizontal?"colspan":"rowspan",c=parseInt(o.getAttribute(a)||"1"),d=parseInt(n.getAttribute(a)||"1");e.setAttribute(a,c+d,r),e.setSelection(e.createRangeIn(r));const u=this.editor.plugins.get("TableUtils");F(s.findAncestor("table"),u)}))}_getMergeableCell(){const e=this.editor.model.document,t=this.editor.plugins.get("TableUtils"),o=t.getTableCellsContainingSelection(e.selection)[0];if(!o)return;const n=this.isHorizontal?function(e,t,o){const n=e.parent,i=n.parent,r="right"==t?e.nextSibling:e.previousSibling,l=(i.getAttribute("headingColumns")||0)>0;if(!r)return;const s="right"==t?e:r,a="right"==t?r:e,{column:c}=o.getCellLocation(s),{column:d}=o.getCellLocation(a),h=parseInt(s.getAttribute("colspan")||"1"),b=u(o,s),m=u(o,a);if(l&&b!=m)return;return c+h===d?r:void 0}(o,this.direction,t):function(e,t,o){const n=e.parent,i=n.parent,r=i.getChildIndex(n);if("down"==t&&r===o.getRows(i)-1||"up"==t&&0===r)return null;const l=parseInt(e.getAttribute("rowspan")||"1"),s=i.getAttribute("headingRows")||0,a="down"==t&&r+l===s,c="up"==t&&r===s;if(s&&(a||c))return null;const d=parseInt(e.getAttribute("rowspan")||"1"),u="down"==t?r+d:r,h=[...new w(i,{endRow:u})],b=h.find((t=>t.cell===e)),m=b.column,g=h.find((({row:e,cellHeight:o,column:n})=>n===m&&("down"==t?e===u:u===e+o)));return g&&g.cell?g.cell:null}(o,this.direction,t);if(!n)return;const i=this.isHorizontal?"rowspan":"colspan",r=parseInt(o.getAttribute(i)||"1");return parseInt(n.getAttribute(i)||"1")===r?n:void 0}}function j(e){const t=e.getChild(0);return 1==e.childCount&&t.is("element","paragraph")&&t.isEmpty}class M extends e.Command{refresh(){const e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection),o=t[0];if(o){const n=o.findAncestor("table"),i=e.getRows(n)-1,r=e.getRowIndexes(t),l=0===r.first&&r.last===i;this.isEnabled=!l}else this.isEnabled=!1}execute(){const e=this.editor.model,t=this.editor.plugins.get("TableUtils"),o=t.getSelectionAffectedTableCells(e.document.selection),n=t.getRowIndexes(o),i=o[0],r=i.findAncestor("table"),l=t.getCellLocation(i).column;e.change((e=>{const o=n.last-n.first+1;t.removeRows(r,{at:n.first,rows:o});const i=function(e,t,o,n){const i=e.getChild(Math.min(t,n-1));let r=i.getChild(0),l=0;for(const e of i.getChildren()){if(l>o)return r;r=e,l+=parseInt(e.getAttribute("colspan")||"1")}return r}(r,n.first,l,t.getRows(r));e.setSelection(e.createPositionAt(i,0))}))}}class D extends e.Command{refresh(){const e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection),o=t[0];if(o){const n=o.findAncestor("table"),i=e.getColumns(n),{first:r,last:l}=e.getColumnIndexes(t);this.isEnabled=l-re.cell===t)).column,last:i.find((e=>e.cell===o)).column},l=function(e,t,o,n){const i=parseInt(o.getAttribute("colspan")||"1");return i>1?o:t.previousSibling||o.nextSibling?o.nextSibling||t.previousSibling:n.first?e.reverse().find((({column:e})=>ee>n.last)).cell}(i,t,o,r);this.editor.model.change((t=>{const o=r.last-r.first+1;e.removeColumns(n,{at:r.first,columns:o}),t.setSelection(t.createPositionAt(l,0))}))}}class H extends e.Command{refresh(){const e=this.editor.plugins.get("TableUtils"),t=this.editor.model,o=e.getSelectionAffectedTableCells(t.document.selection),n=o.length>0;this.isEnabled=n,this.value=n&&o.every((e=>this._isInHeading(e,e.parent.parent)))}execute(e={}){if(e.forceValue===this.value)return;const t=this.editor.plugins.get("TableUtils"),o=this.editor.model,n=t.getSelectionAffectedTableCells(o.document.selection),i=n[0].findAncestor("table"),{first:r,last:l}=t.getRowIndexes(n),s=this.value?r:l+1,a=i.getAttribute("headingRows")||0;o.change((e=>{if(s){const t=R(i,s,s>a?a:0);for(const{cell:o}of t)I(o,s,e)}c("headingRows",s,i,e,0)}))}_isInHeading(e,t){const o=parseInt(t.getAttribute("headingRows")||"0");return!!o&&e.parent.index0;this.isEnabled=n,this.value=n&&o.every((e=>u(t,e)))}execute(e={}){if(e.forceValue===this.value)return;const t=this.editor.plugins.get("TableUtils"),o=this.editor.model,n=t.getSelectionAffectedTableCells(o.document.selection),i=n[0].findAncestor("table"),{first:r,last:l}=t.getColumnIndexes(n),s=this.value?r:l+1;o.change((e=>{if(s){const t=P(i,s);for(const{cell:o,column:n}of t)E(o,n,s,e)}c("headingColumns",s,i,e,0)}))}}const $=5,K=2;function G(e,t){return 4e3/q(e,t)}function q(e,t){const o=J(e,"tbody",t)||J(e,"thead",t);return X(t.editing.view.domConverter.mapViewToDom(o))}function J(e,t,o){return[...[...o.editing.mapper.toViewElement(e).getChildren()].find((e=>e.is("element","table"))).getChildren()].find((e=>e.is("element",t)))}function X(e){const t=m.global.window.getComputedStyle(e);return"border-box"===t.boxSizing?parseFloat(t.width)-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth):parseFloat(t.width)}function Y(e){const t=Math.pow(10,K),o="number"==typeof e?e:parseFloat(e);return Math.round(o*t)/t}function Q(e){return e.map((e=>"number"==typeof e?e:parseFloat(e))).filter((e=>!Number.isNaN(e))).reduce(((e,t)=>e+t),0)}function Z(e){let t=function(e){const t=e.filter((e=>"auto"===e)).length;if(0===t)return e.map((e=>Y(e)));const o=Q(e),n=Math.max((100-o)/t,$);return e.map((e=>"auto"===e?n:e)).map((e=>Y(e)))}(e.map((e=>"auto"===e?e:parseFloat(e.replace("%","")))));const o=Q(t);return 100!==o&&(t=t.map((e=>Y(100*e/o))).map(((e,t,o)=>{if(!(t===o.length-1))return e;return Y(e+100-Q(o))}))),t.map((e=>e+"%"))}function ee(e){const t=m.global.window.getComputedStyle(e);return"border-box"===t.boxSizing?parseInt(t.width):parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)+parseFloat(t.borderWidth)}function te(e,t,o,n){for(let i=0;ie.is("element","tableColumnGroup")))}function ne(e){const t=oe(e);return t?Array.from(t.getChildren()):[]}class ie extends e.Plugin{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(e){const t=e.parent,o=t.parent,n=o.getChildIndex(t),i=new w(o,{row:n});for(const{cell:t,row:o,column:n}of i)if(t===e)return{row:o,column:n}}createTable(e,t){const o=e.createElement("table"),n=t.rows||2,i=t.columns||2;return re(e,o,0,n,i),t.headingRows&&c("headingRows",Math.min(t.headingRows,n),o,e,0),t.headingColumns&&c("headingColumns",Math.min(t.headingColumns,i),o,e,0),o}insertRows(e,t={}){const o=this.editor.model,n=t.at||0,i=t.rows||1,r=void 0!==t.copyStructureFromAbove,l=t.copyStructureFromAbove?n-1:n,s=this.getRows(e),a=this.getColumns(e);if(n>s)throw new m.CKEditorError("tableutils-insertrows-insert-out-of-range",this,{options:t});o.change((t=>{const o=e.getAttribute("headingRows")||0;if(o>n&&c("headingRows",o+i,e,t,0),!r&&(0===n||n===s))return void re(t,e,n,i,a);const u=r?Math.max(n,l):n,h=new w(e,{endRow:u}),b=new Array(a).fill(1);for(const{row:e,column:o,cellHeight:s,cellWidth:a,cell:c}of h){const d=e+s-1,u=e<=l&&l<=d;e0&&d(t,i,n>1?{colspan:n}:void 0),e+=Math.abs(n)-1}}}))}insertColumns(e,t={}){const o=this.editor.model,n=t.at||0,i=t.columns||1;o.change((t=>{const o=e.getAttribute("headingColumns");ni-1)throw new m.CKEditorError("tableutils-removerows-row-index-out-of-range",this,{table:e,options:t});o.change((t=>{const o={first:r,last:l},{cellsToMove:n,cellsToTrim:i}=function(e,{first:t,last:o}){const n=new Map,i=[];for(const{row:r,column:l,cellHeight:s,cell:a}of new w(e,{endRow:o})){const e=r+s-1;if(r>=t&&r<=o&&e>o){const e=s-(o-r+1);n.set(l,{cell:a,rowspan:e})}if(r=t){let n;n=e>=o?o-t+1:e-t+1,i.push({cell:a,rowspan:s-n})}}return{cellsToMove:n,cellsToTrim:i}}(e,o);if(n.size){!function(e,t,o,n){const i=new w(e,{includeAllSlots:!0,row:t}),r=[...i],l=e.getChild(t);let s;for(const{column:e,cell:t,isAnchor:i}of r)if(o.has(e)){const{cell:t,rowspan:i}=o.get(e),r=s?n.createPositionAfter(s):n.createPositionAt(l,0);n.move(n.createRangeOn(t),r),c("rowspan",i,t,n),s=t}else i&&(s=t)}(e,l+1,n,t)}for(let o=l;o>=r;o--)t.remove(e.getChild(o));for(const{rowspan:e,cell:o}of i)c("rowspan",e,o,t);!function(e,{first:t,last:o},n){const i=e.getAttribute("headingRows")||0;if(t{!function(e,t,o){const n=e.getAttribute("headingColumns")||0;if(n&&t.first=n;i--){for(const{cell:o,column:n,cellWidth:r}of[...new w(e)])n<=i&&r>1&&n+r>i?c("colspan",r-1,o,t):n===i&&t.remove(o);if(o[i]){const e=0===i?o[1]:o[i-1],n=parseFloat(o[i].getAttribute("columnWidth")),r=parseFloat(e.getAttribute("columnWidth"));t.remove(o[i]),t.setAttribute("columnWidth",n+r+"%",e)}}L(e,this)||B(e,this)}))}splitCellVertically(e,t=2){const o=this.editor.model,n=e.parent.parent,i=parseInt(e.getAttribute("rowspan")||"1"),r=parseInt(e.getAttribute("colspan")||"1");o.change((o=>{if(r>1){const{newCellsSpan:n,updatedSpan:l}=se(r,t);c("colspan",l,e,o);const s={};n>1&&(s.colspan=n),i>1&&(s.rowspan=i);le(r>t?t-1:r-1,o,o.createPositionAfter(e),s)}if(rt===e)),d=s.filter((({cell:t,cellWidth:o,column:n})=>t!==e&&n===a||na));for(const{cell:e,cellWidth:t}of d)o.setAttribute("colspan",t+l,e);const u={};i>1&&(u.rowspan=i),le(l,o,o.createPositionAfter(e),u);const h=n.getAttribute("headingColumns")||0;h>a&&c("headingColumns",h+l,n,o)}}))}splitCellHorizontally(e,t=2){const o=this.editor.model,n=e.parent,i=n.parent,r=i.getChildIndex(n),l=parseInt(e.getAttribute("rowspan")||"1"),s=parseInt(e.getAttribute("colspan")||"1");o.change((o=>{if(l>1){const n=[...new w(i,{startRow:r,endRow:r+l-1,includeAllSlots:!0})],{newCellsSpan:a,updatedSpan:d}=se(l,t);c("rowspan",d,e,o);const{column:u}=n.find((({cell:t})=>t===e)),h={};a>1&&(h.rowspan=a),s>1&&(h.colspan=s);for(const e of n){const{column:t,row:n}=e;n>=r+d&&t===u&&(n+r+d)%a==0&&le(1,o,e.getPositionBefore(),h)}}if(lr){const e=i+n;o.setAttribute("rowspan",e,t)}const d={};s>1&&(d.colspan=s),re(o,i,r+1,n,1,d);const u=i.getAttribute("headingRows")||0;u>r&&c("headingRows",u+n,i,o)}}))}getColumns(e){return[...e.getChild(0).getChildren()].filter((e=>e.is("element","tableCell"))).reduce(((e,t)=>e+parseInt(t.getAttribute("colspan")||"1")),0)}getRows(e){return Array.from(e.getChildren()).reduce(((e,t)=>t.is("element","tableRow")?e+1:e),0)}createTableWalker(e,t={}){return new w(e,t)}getSelectedTableCells(e){const t=[];for(const o of this.sortRanges(e.getRanges())){const e=o.getContainedElement();e&&e.is("element","tableCell")&&t.push(e)}return t}getTableCellsContainingSelection(e){const t=[];for(const o of e.getRanges()){const e=o.start.findAncestor("tableCell");e&&t.push(e)}return t}getSelectionAffectedTableCells(e){const t=this.getSelectedTableCells(e);return t.length?t:this.getTableCellsContainingSelection(e)}getRowIndexes(e){const t=e.map((e=>e.parent.index));return this._getFirstLastIndexesObject(t)}getColumnIndexes(e){const t=e[0].findAncestor("table"),o=[...new w(t)].filter((t=>e.includes(t.cell))).map((e=>e.column));return this._getFirstLastIndexesObject(o)}isSelectionRectangular(e){if(e.length<2||!this._areCellInTheSameTableSection(e))return!1;const t=new Set,o=new Set;let n=0;for(const i of e){const{row:e,column:r}=this.getCellLocation(i),l=parseInt(i.getAttribute("rowspan"))||1,s=parseInt(i.getAttribute("colspan"))||1;t.add(e),o.add(r),l>1&&t.add(e+l-1),s>1&&o.add(r+s-1),n+=l*s}const i=function(e,t){const o=Array.from(e.values()),n=Array.from(t.values()),i=Math.max(...o),r=Math.min(...o),l=Math.max(...n),s=Math.min(...n);return(i-r+1)*(l-s+1)}(t,o);return i==n}sortRanges(e){return Array.from(e).sort(ae)}_getFirstLastIndexesObject(e){const t=e.sort(((e,t)=>e-t));return{first:t[0],last:t[t.length-1]}}_areCellInTheSameTableSection(e){const t=e[0].findAncestor("table"),o=this.getRowIndexes(e),n=parseInt(t.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(o,n))return!1;const i=this.getColumnIndexes(e),r=parseInt(t.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(i,r)}_areIndexesInSameSection({first:e,last:t},o){return e{const n=t.getSelectedTableCells(e.document.selection),i=n.shift(),{mergeWidth:r,mergeHeight:l}=function(e,t,o){let n=0,i=0;for(const e of t){const{row:t,column:r}=o.getCellLocation(e);n=he(e,r,n,"colspan"),i=he(e,t,i,"rowspan")}const{row:r,column:l}=o.getCellLocation(e),s=n-l,a=i-r;return{mergeWidth:s,mergeHeight:a}}(i,n,t);c("colspan",r,i,o),c("rowspan",l,i,o);for(const e of n)de(e,i,o);F(i.findAncestor("table"),t),o.setSelection(i,"in")}))}}function de(e,t,o){ue(e)||(ue(t)&&o.remove(o.createRangeIn(t)),o.move(o.createRangeIn(e),o.createPositionAt(t,"end"))),o.remove(e)}function ue(e){const t=e.getChild(0);return 1==e.childCount&&t.is("element","paragraph")&&t.isEmpty}function he(e,t,o,n){const i=parseInt(e.getAttribute(n)||"1");return Math.max(o,t+i)}class be extends e.Command{constructor(e){super(e),this.affectsData=!1}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){const e=this.editor.model,t=this.editor.plugins.get("TableUtils"),o=t.getSelectionAffectedTableCells(e.document.selection),n=t.getRowIndexes(o),i=o[0].findAncestor("table"),r=[];for(let t=n.first;t<=n.last;t++)for(const o of i.getChild(t).getChildren())r.push(e.createRangeOn(o));e.change((e=>{e.setSelection(r)}))}}class me extends e.Command{constructor(e){super(e),this.affectsData=!1}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){const e=this.editor.plugins.get("TableUtils"),t=this.editor.model,o=e.getSelectionAffectedTableCells(t.document.selection),n=o[0],i=o.pop(),r=n.findAncestor("table"),l=e.getCellLocation(n),s=e.getCellLocation(i),a=Math.min(l.column,s.column),c=Math.max(l.column,s.column),d=[];for(const e of new w(r,{startColumn:a,endColumn:c}))d.push(t.createRangeOn(e.cell));t.change((e=>{e.setSelection(d)}))}}function ge(e){e.document.registerPostFixer((t=>function(e,t){const o=t.document.differ.getChanges();let n=!1;const i=new Set;for(const t of o){let o=null;"insert"==t.type&&"table"==t.name&&(o=t.position.nodeAfter),"insert"!=t.type&&"remove"!=t.type||"tableRow"!=t.name&&"tableCell"!=t.name||(o=t.position.findAncestor("table")),we(t)&&(o=t.range.start.findAncestor("table")),o&&!i.has(o)&&(n=pe(o,e)||n,n=fe(o,e)||n,i.add(o))}return n}(t,e)))}function pe(e,t){let o=!1;const n=function(e){const t=parseInt(e.getAttribute("headingRows")||"0"),o=Array.from(e.getChildren()).reduce(((e,t)=>t.is("element","tableRow")?e+1:e),0),n=[];for(const{row:i,cell:r,cellHeight:l}of new w(e)){if(l<2)continue;const e=ie){const t=e-i;n.push({cell:r,rowspan:t})}}return n}(e);if(n.length){o=!0;for(const e of n)c("rowspan",e.rowspan,e.cell,t,1)}return o}function fe(e,t){let o=!1;const n=function(e){const t=new Array(e.childCount).fill(0);for(const{rowIndex:o}of new w(e,{includeAllSlots:!0}))t[o]++;return t}(e),i=[];for(const[t,o]of n.entries())!o&&e.getChild(t).is("element","tableRow")&&i.push(t);if(i.length){o=!0;for(const o of i.reverse())t.remove(e.getChild(o)),n.splice(o,1)}const r=n.filter(((t,o)=>e.getChild(o).is("element","tableRow"))),l=r[0];if(!r.every((e=>e===l))){const n=r.reduce(((e,t)=>t>e?t:e),0);for(const[i,l]of r.entries()){const r=n-l;if(r){for(let o=0;ofunction(e,t){const o=t.document.differ.getChanges();let n=!1;for(const t of o)"insert"==t.type&&"table"==t.name&&(n=ke(t.position.nodeAfter,e)||n),"insert"==t.type&&"tableRow"==t.name&&(n=ve(t.position.nodeAfter,e)||n),"insert"==t.type&&"tableCell"==t.name&&(n=Ce(t.position.nodeAfter,e)||n),"remove"!=t.type&&"insert"!=t.type||!ye(t)||(n=Ce(t.position.parent,e)||n);return n}(t,e)))}function ke(e,t){let o=!1;for(const n of e.getChildren())n.is("element","tableRow")&&(o=ve(n,t)||o);return o}function ve(e,t){let o=!1;for(const n of e.getChildren())o=Ce(n,t)||o;return o}function Ce(e,t){if(0==e.childCount)return t.insertElement("paragraph",e),!0;const o=Array.from(e.getChildren()).filter((e=>e.is("$text")));for(const e of o)t.wrap(t.createRangeOn(e),"paragraph");return!!o.length}function ye(e){return!!e.position.parent.is("element","tableCell")&&("insert"==e.type&&"$text"==e.name||"remove"==e.type)}function Ae(e,t){if(!e.is("element","paragraph"))return!1;const o=t.toViewElement(e);return!!o&&y(e)!==o.is("element","span")}var Te=o(591),xe=o.n(Te),Se=o(817),Ve={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(Se.A,Ve);Se.A.locals;class Re extends e.Plugin{static get pluginName(){return"TableEditing"}static get requires(){return[ie]}constructor(e){super(e),this._additionalSlots=[]}init(){const e=this.editor,t=e.model,o=t.schema,n=e.conversion,i=e.plugins.get(ie);o.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),o.register("tableRow",{allowIn:"table",isLimit:!0}),o.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),n.for("upcast").add((e=>{e.on("element:figure",((e,t,o)=>{if(!o.consumable.test(t.viewItem,{name:!0,classes:"table"}))return;const n=function(e){for(const t of e.getChildren())if(t.is("element","table"))return t}(t.viewItem);if(!n||!o.consumable.test(n,{name:!0}))return;o.consumable.consume(t.viewItem,{name:!0,classes:"table"});const i=o.convertItem(n,t.modelCursor),r=(0,m.first)(i.modelRange.getItems());r?(o.convertChildren(t.viewItem,o.writer.createPositionAt(r,"end")),o.updateConversionResult(r,t)):o.consumable.revert(t.viewItem,{name:!0,classes:"table"})}))})),n.for("upcast").add(g()),n.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:k(i,{asWidget:!0,additionalSlots:this._additionalSlots})}),n.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:k(i,{additionalSlots:this._additionalSlots})}),n.for("upcast").elementToElement({model:"tableRow",view:"tr"}),n.for("upcast").add((e=>{e.on("element:tr",((e,t)=>{t.viewItem.isEmpty&&0==t.modelCursor.index&&e.stop()}),{priority:"high"})})),n.for("downcast").elementToElement({model:"tableRow",view:(e,{writer:t})=>e.isEmpty?t.createEmptyElement("tr"):t.createContainerElement("tr")}),n.for("upcast").elementToElement({model:"tableCell",view:"td"}),n.for("upcast").elementToElement({model:"tableCell",view:"th"}),n.for("upcast").add(p("td")),n.for("upcast").add(p("th")),n.for("editingDowncast").elementToElement({model:"tableCell",view:v({asWidget:!0})}),n.for("dataDowncast").elementToElement({model:"tableCell",view:v()}),n.for("editingDowncast").elementToElement({model:"paragraph",view:C({asWidget:!0}),converterPriority:"high"}),n.for("dataDowncast").elementToElement({model:"paragraph",view:C(),converterPriority:"high"}),n.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),n.for("upcast").attributeToAttribute({model:{key:"colspan",value:Ie("colspan")},view:"colspan"}),n.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),n.for("upcast").attributeToAttribute({model:{key:"rowspan",value:Ie("rowspan")},view:"rowspan"}),e.config.define("table.defaultHeadings.rows",0),e.config.define("table.defaultHeadings.columns",0),e.commands.add("insertTable",new A(e)),e.commands.add("insertTableRowAbove",new T(e,{order:"above"})),e.commands.add("insertTableRowBelow",new T(e,{order:"below"})),e.commands.add("insertTableColumnLeft",new x(e,{order:"left"})),e.commands.add("insertTableColumnRight",new x(e,{order:"right"})),e.commands.add("removeTableRow",new M(e)),e.commands.add("removeTableColumn",new D(e)),e.commands.add("splitTableCellVertically",new S(e,{direction:"vertically"})),e.commands.add("splitTableCellHorizontally",new S(e,{direction:"horizontally"})),e.commands.add("mergeTableCells",new ce(e)),e.commands.add("mergeTableCellRight",new O(e,{direction:"right"})),e.commands.add("mergeTableCellLeft",new O(e,{direction:"left"})),e.commands.add("mergeTableCellDown",new O(e,{direction:"down"})),e.commands.add("mergeTableCellUp",new O(e,{direction:"up"})),e.commands.add("setTableColumnHeader",new U(e)),e.commands.add("setTableRowHeader",new H(e)),e.commands.add("selectTableRow",new be(e)),e.commands.add("selectTableColumn",new me(e)),ge(t),_e(t),this.listenTo(t.document,"change:data",(()=>{!function(e,t){const o=e.document.differ;for(const e of o.getChanges()){let o,n=!1;if("attribute"==e.type){const t=e.range.start.nodeAfter;if(!t||!t.is("element","table"))continue;if("headingRows"!=e.attributeKey&&"headingColumns"!=e.attributeKey)continue;o=t,n="headingRows"==e.attributeKey}else"tableRow"!=e.name&&"tableCell"!=e.name||(o=e.position.findAncestor("table"),n="tableRow"==e.name);if(!o)continue;const i=o.getAttribute("headingRows")||0,r=o.getAttribute("headingColumns")||0,l=new w(o);for(const e of l){const o=e.rowAe(e,t.mapper)));for(const e of o)t.reconvertItem(e)}}(t,e.editing)}))}registerAdditionalSlot(e){this._additionalSlots.push(e)}}function Ie(e){return t=>{const o=parseInt(t.getAttribute(e));return Number.isNaN(o)||o<=0?null:o}}var Pe=o(311),Ee=o(712),ze={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(Ee.A,ze);Ee.A.locals;class Be extends Pe.View{constructor(e){super(e);const t=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new m.KeystrokeHandler,this.focusTracker=new m.FocusTracker,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",((e,t)=>`${t} × ${e}`)),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":t.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:t.to("label")}]}],on:{mousedown:t.to((e=>{e.preventDefault()})),click:t.to((()=>{this.fire("execute")}))}}),this.on("boxover",((e,t)=>{const{row:o,column:n}=t.target.dataset;this.items.get(10*(parseInt(o,10)-1)+(parseInt(n,10)-1)).focus()})),this.focusTracker.on("change:focusedElement",((e,t,o)=>{if(!o)return;const{row:n,column:i}=o.dataset;this.set({rows:parseInt(n),columns:parseInt(i)})})),this.on("change:columns",(()=>this._highlightGridBoxes())),this.on("change:rows",(()=>this._highlightGridBoxes()))}render(){super.render(),(0,Pe.addKeyboardHandlingForGrid)({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const e of this.items)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element)}reset(){this.set({rows:1,columns:1})}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const e=this.rows,t=this.columns;this.items.map(((o,n)=>{const i=Math.floor(n/10){const i=t.commands.get("insertTable"),r=(0,Pe.createDropdown)(n);let l;return r.bind("isEnabled").to(i),r.buttonView.set({icon:e.icons.table,label:o("Insert table"),tooltip:!0}),r.on("change:isOpen",(()=>{l||(l=new Be(n),r.panelView.children.add(l),l.delegate("execute").to(r),r.on("execute",(()=>{t.execute("insertTable",{rows:l.rows,columns:l.columns}),t.editing.view.focus()})))})),r})),t.ui.componentFactory.add("menuBar:insertTable",(n=>{const i=t.commands.get("insertTable"),r=new Pe.MenuBarMenuView(n),l=new Be(n);return l.delegate("execute").to(r),r.on("change:isOpen",((e,t,o)=>{o||l.reset()})),l.on("execute",(()=>{t.execute("insertTable",{rows:l.rows,columns:l.columns}),t.editing.view.focus()})),r.buttonView.set({label:o("Table"),icon:e.icons.table}),r.panelView.children.add(l),r.bind("isEnabled").to(i),r})),t.ui.componentFactory.add("tableColumn",(e=>{const t=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:o("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:n?"insertTableColumnLeft":"insertTableColumnRight",label:o("Insert column left")}},{type:"button",model:{commandName:n?"insertTableColumnRight":"insertTableColumnLeft",label:o("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:o("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:o("Select column")}}];return this._prepareDropdown(o("Column"),'',t,e)})),t.ui.componentFactory.add("tableRow",(e=>{const t=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:o("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:o("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:o("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:o("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:o("Select row")}}];return this._prepareDropdown(o("Row"),'',t,e)})),t.ui.componentFactory.add("mergeTableCells",(e=>{const t=[{type:"button",model:{commandName:"mergeTableCellUp",label:o("Merge cell up")}},{type:"button",model:{commandName:n?"mergeTableCellRight":"mergeTableCellLeft",label:o("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:o("Merge cell down")}},{type:"button",model:{commandName:n?"mergeTableCellLeft":"mergeTableCellRight",label:o("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:o("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:o("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(o("Merge cells"),'',t,e)}))}_prepareDropdown(e,t,o,n){const i=this.editor,r=(0,Pe.createDropdown)(n),l=this._fillDropdownWithListOptions(r,o);return r.buttonView.set({label:e,icon:t,tooltip:!0}),r.bind("isEnabled").toMany(l,"isEnabled",((...e)=>e.some((e=>e)))),this.listenTo(r,"execute",(e=>{i.execute(e.source.commandName),e.source instanceof Pe.SwitchButtonView||i.editing.view.focus()})),r}_prepareMergeSplitButtonDropdown(e,t,o,n){const i=this.editor,r=(0,Pe.createDropdown)(n,Pe.SplitButtonView),l="mergeTableCells",s=i.commands.get(l),a=this._fillDropdownWithListOptions(r,o);return r.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),r.bind("isEnabled").toMany([s,...a],"isEnabled",((...e)=>e.some((e=>e)))),this.listenTo(r.buttonView,"execute",(()=>{i.execute(l),i.editing.view.focus()})),this.listenTo(r,"execute",(e=>{i.execute(e.source.commandName),i.editing.view.focus()})),r}_fillDropdownWithListOptions(e,t){const o=this.editor,n=[],i=new m.Collection;for(const e of t)Fe(e,o,n,i);return(0,Pe.addListToDropdown)(e,i),n}}function Fe(e,t,o,n){if("button"===e.type||"switchbutton"===e.type){const n=e.model=new Pe.ViewModel(e.model),{commandName:i,bindIsOn:r}=e.model,l=t.commands.get(i);o.push(l),n.set({commandName:i}),n.bind("isEnabled").to(l),r&&n.bind("isOn").to(l,"value"),n.set({withText:!0})}n.add(e)}var We=o(719),Ne={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(We.A,Ne);We.A.locals;class Oe extends e.Plugin{static get pluginName(){return"TableSelection"}static get requires(){return[ie,ie]}init(){const e=this.editor,t=e.model,o=e.editing.view;this.listenTo(t,"deleteContent",((e,t)=>this._handleDeleteContent(e,t)),{priority:"high"}),this.listenTo(o.document,"insertText",((e,t)=>this._handleInsertTextEvent(e,t)),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const e=this.editor.plugins.get(ie),t=this.editor.model.document.selection,o=e.getSelectedTableCells(t);return 0==o.length?null:o}getSelectionAsFragment(){const e=this.editor.plugins.get(ie),t=this.getSelectedTableCells();return t?this.editor.model.change((o=>{const n=o.createDocumentFragment(),{first:i,last:r}=e.getColumnIndexes(t),{first:l,last:s}=e.getRowIndexes(t),a=t[0].findAncestor("table");let c=s,d=r;if(e.isSelectionRectangular(t)){const e={firstColumn:i,lastColumn:r,firstRow:l,lastRow:s};c=W(a,e),d=N(a,e)}const u=V(a,{startRow:l,startColumn:i,endRow:c,endColumn:d},o);return o.insert(u,n,0),n})):null}setCellSelection(e,t){const o=this._getCellsToSelect(e,t);this.editor.model.change((e=>{e.setSelection(o.cells.map((t=>e.createRangeOn(t))),{backward:o.backward})}))}getFocusCell(){const e=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return e&&e.is("element","tableCell")?e:null}getAnchorCell(){const e=this.editor.model.document.selection,t=(0,m.first)(e.getRanges()).getContainedElement();return t&&t.is("element","tableCell")?t:null}_defineSelectionConverter(){const e=this.editor,t=new Set;e.conversion.for("editingDowncast").add((e=>e.on("selection",((e,o,n)=>{const i=n.writer;!function(e){for(const o of t)e.removeClass("ck-editor__editable_selected",o);t.clear()}(i);const r=this.getSelectedTableCells();if(!r)return;for(const e of r){const o=n.mapper.toViewElement(e);i.addClass("ck-editor__editable_selected",o),t.add(o)}const l=n.mapper.toViewElement(r[r.length-1]);i.setSelection(l,0)}),{priority:"lowest"})))}_enablePluginDisabling(){const e=this.editor;this.on("change:isEnabled",(()=>{if(!this.isEnabled){const t=this.getSelectedTableCells();if(!t)return;e.model.change((o=>{const n=o.createPositionAt(t[0],0),i=e.model.schema.getNearestSelectionRange(n);o.setSelection(i)}))}}))}_handleDeleteContent(e,t){const o=this.editor.plugins.get(ie),n=t[0],i=t[1],r=this.editor.model,l=!i||"backward"==i.direction,s=o.getSelectedTableCells(n);s.length&&(e.stop(),r.change((e=>{const t=s[l?s.length-1:0];r.change((e=>{for(const t of s)r.deleteContent(e.createSelection(t,"in"))}));const o=r.schema.getNearestSelectionRange(e.createPositionAt(t,0));n.is("documentSelection")?e.setSelection(o):n.setTo(o)})))}_handleInsertTextEvent(e,t){const o=this.editor,n=this.getSelectedTableCells();if(!n)return;const i=o.editing.view,r=o.editing.mapper,l=n.map((e=>i.createRangeOn(r.toViewElement(e))));t.selection=i.createSelection(l)}_getCellsToSelect(e,t){const o=this.editor.plugins.get("TableUtils"),n=o.getCellLocation(e),i=o.getCellLocation(t),r=Math.min(n.row,i.row),l=Math.max(n.row,i.row),s=Math.min(n.column,i.column),a=Math.max(n.column,i.column),c=new Array(l-r+1).fill(null).map((()=>[])),d={startRow:r,endRow:l,startColumn:s,endColumn:a};for(const{row:t,cell:o}of new w(e.findAncestor("table"),d))c[t-r].push(o);const u=i.rowe.reverse())),{cells:c.flat(),backward:u||h}}}var je=o(331);class Me extends e.Plugin{static get pluginName(){return"TableClipboard"}static get requires(){return[je.ClipboardMarkersUtils,je.ClipboardPipeline,Oe,ie]}init(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"copy",((e,t)=>this._onCopyCut(e,t))),this.listenTo(t,"cut",((e,t)=>this._onCopyCut(e,t))),this.listenTo(e.model,"insertContent",((e,[t,o])=>this._onInsertContent(e,t,o)),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(e,t){const o=this.editor.editing.view,n=this.editor.plugins.get(Oe),i=this.editor.plugins.get(je.ClipboardMarkersUtils);n.getSelectedTableCells()&&("cut"!=e.name||this.editor.model.canEditAt(this.editor.model.document.selection))&&(t.preventDefault(),e.stop(),this.editor.model.enqueueChange({isUndoable:"cut"===e.name},(()=>{const r=i._copySelectedFragmentWithMarkers(e.name,this.editor.model.document.selection,(()=>n.getSelectionAsFragment()));o.document.fire("clipboardOutput",{dataTransfer:t.dataTransfer,content:this.editor.data.toView(r),method:e.name})})))}_onInsertContent(e,t,o){if(o&&!o.is("documentSelection"))return;const n=this.editor.model,i=this.editor.plugins.get(ie),r=this.editor.plugins.get(je.ClipboardMarkersUtils),l=this.getTableIfOnlyTableInContent(t,n);if(!l)return;const s=i.getSelectionAffectedTableCells(n.document.selection);s.length?(e.stop(),t.is("documentFragment")?r._pasteMarkersIntoTransformedElement(t.markers,(e=>this._replaceSelectedCells(l,s,e))):this.editor.model.change((e=>{this._replaceSelectedCells(l,s,e)}))):F(l,i)}_replaceSelectedCells(e,t,o){const n=this.editor.plugins.get(ie),i={width:n.getColumns(e),height:n.getRows(e)},r=function(e,t,o,n){const i=e[0].findAncestor("table"),r=n.getColumnIndexes(e),l=n.getRowIndexes(e),s={firstColumn:r.first,lastColumn:r.last,firstRow:l.first,lastRow:l.last},a=1===e.length;a&&(s.lastRow+=t.height-1,s.lastColumn+=t.width-1,function(e,t,o,n){const i=n.getColumns(e),r=n.getRows(e);o>i&&n.insertColumns(e,{at:i,columns:o-i});t>r&&n.insertRows(e,{at:r,rows:t-r})}(i,s.lastRow+1,s.lastColumn+1,n));a||!n.isSelectionRectangular(e)?function(e,t,o){const{firstRow:n,lastRow:i,firstColumn:r,lastColumn:l}=t,s={first:n,last:i},a={first:r,last:l};He(e,r,s,o),He(e,l+1,s,o),De(e,n,a,o),De(e,i+1,a,o,n)}(i,s,o):(s.lastRow=W(i,s),s.lastColumn=N(i,s));return s}(t,i,o,n),l=r.lastRow-r.firstRow+1,s=r.lastColumn-r.firstColumn+1;e=V(e,{startRow:0,startColumn:0,endRow:Math.min(l,i.height)-1,endColumn:Math.min(s,i.width)-1},o);const a=t[0].findAncestor("table"),c=this._replaceSelectedCellsWithPasted(e,i,a,r,o);if(this.editor.plugins.get("TableSelection").isEnabled){const e=n.sortRanges(c.map((e=>o.createRangeOn(e))));o.setSelection(e)}else o.setSelection(c[0],0);return a}_replaceSelectedCellsWithPasted(e,t,o,n,i){const{width:r,height:l}=t,s=function(e,t,o){const n=new Array(o).fill(null).map((()=>new Array(t).fill(null)));for(const{column:t,row:o,cell:i}of new w(e))n[o][t]=i;return n}(e,r,l),a=[...new w(o,{startRow:n.firstRow,endRow:n.lastRow,startColumn:n.firstColumn,endColumn:n.lastColumn,includeAllSlots:!0})],c=[];let d;for(const e of a){const{row:t,column:o}=e;o===n.firstColumn&&(d=e.getPositionBefore());const a=t-n.firstRow,u=o-n.firstColumn,h=s[a%l][u%r],b=h?i.cloneElement(h):null,m=this._replaceTableSlotCell(e,b,d,i);m&&(z(m,t,o,n.lastRow,n.lastColumn,i),c.push(m),d=i.createPositionAfter(m))}const u=parseInt(o.getAttribute("headingRows")||"0"),h=parseInt(o.getAttribute("headingColumns")||"0"),b=n.firstRowUe(e,t,o))).map((({cell:e})=>I(e,t,n)))}function He(e,t,o,n){if(t<1)return;return P(e,t).filter((({row:e,cellHeight:t})=>Ue(e,t,o))).map((({cell:e,column:o})=>E(e,o,t,n)))}function Ue(e,t,o){const n=e+t-1,{first:i,last:r}=o;return e>=i&&e<=r||e=i}class $e extends e.Plugin{static get pluginName(){return"TableKeyboard"}static get requires(){return[Oe,ie]}init(){const e=this.editor,t=e.editing.view.document,o=e.t;this.listenTo(t,"arrowKey",((...e)=>this._onArrowKey(...e)),{context:"table"}),this.listenTo(t,"tab",((...e)=>this._handleTabOnSelectedTable(...e)),{context:"figure"}),this.listenTo(t,"tab",((...e)=>this._handleTab(...e)),{context:["th","td"]}),e.accessibility.addKeystrokeInfoGroup({id:"table",label:o("Keystrokes that can be used in a table cell"),keystrokes:[{label:o("Move the selection to the next cell"),keystroke:"Tab"},{label:o("Move the selection to the previous cell"),keystroke:"Shift+Tab"},{label:o("Insert a new table row (when in the last cell of a table)"),keystroke:"Tab"},{label:o("Navigate through the table"),keystroke:[["arrowup"],["arrowright"],["arrowdown"],["arrowleft"]]}]})}_handleTabOnSelectedTable(e,t){const o=this.editor,n=o.model.document.selection.getSelectedElement();n&&n.is("element","table")&&(t.preventDefault(),t.stopPropagation(),e.stop(),o.model.change((e=>{e.setSelection(e.createRangeIn(n.getChild(0).getChild(0)))})))}_handleTab(e,t){const o=this.editor,n=this.editor.plugins.get(ie),i=this.editor.plugins.get("TableSelection"),r=o.model.document.selection,l=!t.shiftKey;let s=n.getTableCellsContainingSelection(r)[0];if(s||(s=i.getFocusCell()),!s)return;t.preventDefault(),t.stopPropagation(),e.stop();const a=s.parent,c=a.parent,d=c.getChildIndex(a),u=a.getChildIndex(s),h=0===u;if(!l&&h&&0===d)return void o.model.change((e=>{e.setSelection(e.createRangeOn(c))}));const b=u===a.childCount-1,m=d===n.getRows(c)-1;if(l&&m&&b&&(o.execute("insertTableRowBelow"),d===n.getRows(c)-1))return void o.model.change((e=>{e.setSelection(e.createRangeOn(c))}));let g;if(l&&b){const e=c.getChild(d+1);g=e.getChild(0)}else if(!l&&h){const e=c.getChild(d-1);g=e.getChild(e.childCount-1)}else g=a.getChild(u+(l?1:-1));o.model.change((e=>{e.setSelection(e.createRangeIn(g))}))}_onArrowKey(e,t){const o=this.editor,n=t.keyCode,i=(0,m.getLocalizedArrowKeyCodeDirection)(n,o.locale.contentLanguageDirection);this._handleArrowKeys(i,t.shiftKey)&&(t.preventDefault(),t.stopPropagation(),e.stop())}_handleArrowKeys(e,t){const o=this.editor.plugins.get(ie),n=this.editor.plugins.get("TableSelection"),i=this.editor.model,r=i.document.selection,l=["right","down"].includes(e),s=o.getSelectedTableCells(r);if(s.length){let o;return o=t?n.getFocusCell():l?s[s.length-1]:s[0],this._navigateFromCellInDirection(o,e,t),!0}const a=r.focus.findAncestor("tableCell");if(!a)return!1;if(!r.isCollapsed)if(t){if(r.isBackward==l&&!r.containsEntireContent(a))return!1}else{const e=r.getSelectedElement();if(!e||!i.schema.isObject(e))return!1}return!!this._isSelectionAtCellEdge(r,a,l)&&(this._navigateFromCellInDirection(a,e,t),!0)}_isSelectionAtCellEdge(e,t,o){const n=this.editor.model,i=this.editor.model.schema,r=o?e.getLastPosition():e.getFirstPosition();if(!i.getLimitElement(r).is("element","tableCell")){return n.createPositionAt(t,o?"end":0).isTouching(r)}const l=n.createSelection(r);return n.modifySelection(l,{direction:o?"forward":"backward"}),r.isEqual(l.focus)}_navigateFromCellInDirection(e,t,o=!1){const n=this.editor.model,i=e.findAncestor("table"),r=[...new w(i,{includeAllSlots:!0})],{row:l,column:s}=r[r.length-1],a=r.find((({cell:t})=>t==e));let{row:c,column:d}=a;switch(t){case"left":d--;break;case"up":c--;break;case"right":d+=a.cellWidth;break;case"down":c+=a.cellHeight}if(c<0||c>l||d<0&&c<=0||d>s&&c>=l)return void n.change((e=>{e.setSelection(e.createRangeOn(i))}));d<0?(d=o?0:s,c--):d>s&&(d=o?s:0,c++);const u=r.find((e=>e.row==c&&e.column==d)).cell,h=["right","down"].includes(t),b=this.editor.plugins.get("TableSelection");if(o&&b.isEnabled){const t=b.getAnchorCell()||e;b.setCellSelection(t,u)}else{const e=n.createPositionAt(u,h?0:"end");n.change((t=>{t.setSelection(e)}))}}}var Ke=o(783);class Ge extends Ke.DomEventObserver{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(e){this.fire(e.type,e)}}class qe extends e.Plugin{static get pluginName(){return"TableMouse"}static get requires(){return[Oe,ie]}init(){this.editor.editing.view.addObserver(Ge),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const e=this.editor,t=e.plugins.get(ie);let o=!1;const n=e.plugins.get(Oe);this.listenTo(e.editing.view.document,"mousedown",((i,r)=>{const l=e.model.document.selection;if(!this.isEnabled||!n.isEnabled)return;if(!r.domEvent.shiftKey)return;const s=n.getAnchorCell()||t.getTableCellsContainingSelection(l)[0];if(!s)return;const a=this._getModelTableCellFromDomEvent(r);a&&Je(s,a)&&(o=!0,n.setCellSelection(s,a),r.preventDefault())})),this.listenTo(e.editing.view.document,"mouseup",(()=>{o=!1})),this.listenTo(e.editing.view.document,"selectionChange",(e=>{o&&e.stop()}),{priority:"highest"})}_enableMouseDragSelection(){const e=this.editor;let t,o,n=!1,i=!1;const r=e.plugins.get(Oe);this.listenTo(e.editing.view.document,"mousedown",((e,o)=>{this.isEnabled&&r.isEnabled&&(o.domEvent.shiftKey||o.domEvent.ctrlKey||o.domEvent.altKey||(t=this._getModelTableCellFromDomEvent(o)))})),this.listenTo(e.editing.view.document,"mousemove",((e,l)=>{if(!l.domEvent.buttons)return;if(!t)return;const s=this._getModelTableCellFromDomEvent(l);s&&Je(t,s)&&(o=s,n||o==t||(n=!0)),n&&(i=!0,r.setCellSelection(t,o),l.preventDefault())})),this.listenTo(e.editing.view.document,"mouseup",(()=>{n=!1,i=!1,t=null,o=null})),this.listenTo(e.editing.view.document,"selectionChange",(e=>{i&&e.stop()}),{priority:"highest"})}_getModelTableCellFromDomEvent(e){const t=e.target,o=this.editor.editing.view.createPositionAt(t,0);return this.editor.editing.mapper.toModelPosition(o).parent.findAncestor("tableCell",{includeSelf:!0})}}function Je(e,t){return e.parent.parent==t.parent.parent}var Xe=o(25),Ye={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(Xe.A,Ye);Xe.A.locals;class Qe extends e.Plugin{static get requires(){return[Re,Le,Oe,qe,$e,Me,t.Widget]}static get pluginName(){return"Table"}}class Ze extends e.Plugin{static get pluginName(){return"PlainTableOutput"}static get requires(){return[Qe]}init(){const e=this.editor;e.conversion.for("dataDowncast").elementToStructure({model:"table",view:et,converterPriority:"high"}),e.plugins.has("TableCaption")&&e.conversion.for("dataDowncast").elementToElement({model:"caption",view:(e,{writer:t})=>{if("table"===e.parent.name)return t.createContainerElement("caption")},converterPriority:"high"}),e.plugins.has("TableProperties")&&function(e){const t={"border-width":"tableBorderWidth","border-color":"tableBorderColor","border-style":"tableBorderStyle","background-color":"tableBackgroundColor"};for(const[o,n]of Object.entries(t))e.conversion.for("dataDowncast").add((e=>e.on(`attribute:${n}:table`,((e,t,n)=>{const{item:i,attributeNewValue:r}=t,{mapper:l,writer:s}=n;if(!n.consumable.consume(i,e.name))return;const a=l.toViewElement(i);r?s.setStyle(o,r,a):s.removeStyle(o,a)}),{priority:"high"})))}(e)}}function et(e,{writer:t}){const o=e.getAttribute("headingRows")||0,n=t.createSlot((e=>e.is("element","tableRow")&&e.indexe.is("element","tableRow")&&e.index>=o)),r=t.createSlot((e=>!e.is("element","tableRow"))),l=t.createContainerElement("thead",null,n),s=t.createContainerElement("tbody",null,i),a=[];return o&&a.push(l),othis._setInputValue(o)))}render(){super.render(),[this.inputView,this.dropdownView.buttonView].forEach((e=>{this.focusTracker.add(e.element),this._focusables.add(e)})),this.keystrokes.listenTo(this.element)}focus(e){-1===e?this.focusCycler.focusLast():this.focusCycler.focusFirst()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createDropdownView(){const e=this.locale,t=e.t,o=this.bindTemplate,n=this._createColorSelector(e),i=(0,Pe.createDropdown)(e),r=new Pe.View;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-input-color__button__preview"],style:{backgroundColor:o.to("value")}},children:[{tag:"span",attributes:{class:["ck","ck-input-color__button__preview__no-color-indicator",o.if("value","ck-hidden",(e=>""!=e))]}}]}),i.buttonView.extendTemplate({attributes:{class:"ck-input-color__button"}}),i.buttonView.children.add(r),i.buttonView.label=t("Color picker"),i.buttonView.tooltip=!0,i.panelPosition="rtl"===e.uiLanguageDirection?"se":"sw",i.panelView.children.add(n),i.bind("isEnabled").to(this,"isReadOnly",(e=>!e)),i.on("change:isOpen",((e,t,o)=>{o&&(n.updateSelectedColors(),n.showColorGridsFragment())})),i}_createInputTextView(){const e=this.locale,t=new Pe.InputTextView(e);return t.extendTemplate({on:{blur:t.bindTemplate.to("blur")}}),t.value=this.value,t.bind("isReadOnly","hasError").to(this),this.bind("isFocused","isEmpty").to(t),t.on("input",(()=>{const e=t.element.value,o=this.options.colorDefinitions.find((t=>e===t.label));this._stillTyping=!0,this.value=o&&o.color||e})),t.on("blur",(()=>{this._stillTyping=!1,this._setInputValue(t.element.value)})),t.delegate("input").to(this),t}_createColorSelector(e){const t=e.t,o=this.options.defaultColorValue||"",n=t(o?"Restore default":"Remove color"),i=new Pe.ColorSelectorView(e,{colors:this.options.colorDefinitions,columns:this.options.columns,removeButtonLabel:n,colorPickerLabel:t("Color picker"),colorPickerViewConfig:!1!==this.options.colorPickerConfig&&{...this.options.colorPickerConfig,hideInput:!0}});i.appendUI(),i.on("execute",((e,t)=>{"colorPickerSaveButton"!==t.source?(this.value=t.value||o,this.fire("input"),"colorPicker"!==t.source&&(this.dropdownView.isOpen=!1)):this.dropdownView.isOpen=!1}));let r=this.value;return i.on("colorPicker:cancel",(()=>{this.value=r,this.fire("input"),this.dropdownView.isOpen=!1})),i.colorGridsFragmentView.colorPickerButtonView.on("execute",(()=>{r=this.value})),i.bind("selectedColor").to(this,"value"),i}_setInputValue(e){if(!this._stillTyping){const t=ct(e),o=this.options.colorDefinitions.find((e=>t===ct(e.color)));this.inputView.value=o?o.label:e||""}}}function ct(e){return e.replace(/([(,])\s+/g,"$1").replace(/^\s+|\s+(?=[),\s]|$)/g,"").replace(/,|\s/g," ")}const dt=e=>""===e;function ut(e){return{none:e("None"),solid:e("Solid"),dotted:e("Dotted"),dashed:e("Dashed"),double:e("Double"),groove:e("Groove"),ridge:e("Ridge"),inset:e("Inset"),outset:e("Outset")}}function ht(e){return e('The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".')}function bt(e){return e('The value is invalid. Try "10px" or "2em" or simply "2".')}function mt(e){return e=e.trim().toLowerCase(),dt(e)||(0,Ke.isColor)(e)}function gt(e){return e=e.trim(),dt(e)||vt(e)||(0,Ke.isLength)(e)||(0,Ke.isPercentage)(e)}function pt(e){return e=e.trim(),dt(e)||vt(e)||(0,Ke.isLength)(e)}function ft(e,t){const o=new m.Collection,n=ut(e.t);for(const i in n){const r={type:"button",model:new Pe.ViewModel({_borderStyleValue:i,label:n[i],role:"menuitemradio",withText:!0})};"none"===i?r.model.bind("isOn").to(e,"borderStyle",(e=>"none"===t?!e:e===i)):r.model.bind("isOn").to(e,"borderStyle",(e=>e===i)),o.add(r)}return o}function wt(e){const{view:t,icons:o,toolbar:n,labels:i,propertyName:r,nameToValue:l,defaultValue:s}=e;for(const e in i){const a=new Pe.ButtonView(t.locale);a.set({label:i[e],icon:o[e],tooltip:i[e]});const c=l?l(e):e;a.bind("isOn").to(t,r,(e=>{let t=e;return""===e&&s&&(t=s),c===t})),a.on("execute",(()=>{t[r]=c})),n.items.add(a)}}const _t=[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}];function kt(e){return(t,o,n)=>{const i=new at(t.locale,{colorDefinitions:(r=e.colorConfig,r.map((e=>({color:e.model,label:e.label,options:{hasBorder:e.hasBorder}})))),columns:e.columns,defaultColorValue:e.defaultColorValue,colorPickerConfig:e.colorPickerConfig});var r;return i.inputView.set({id:o,ariaDescribedById:n}),i.bind("isReadOnly").to(t,"isEnabled",(e=>!e)),i.bind("hasError").to(t,"errorText",(e=>!!e)),i.on("input",(()=>{t.errorText=null})),t.bind("isEmpty","isFocused").to(i),i}}function vt(e){const t=parseFloat(e);return!Number.isNaN(t)&&e===String(t)}var Ct=o(839),yt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(Ct.A,yt);Ct.A.locals;class At extends Pe.View{constructor(e,t={}){super(e);const o=this.bindTemplate;this.set("class",t.class||null),this.children=this.createCollection(),t.children&&t.children.forEach((e=>this.children.add(e))),this.set("_role",null),this.set("_ariaLabelledBy",null),t.labelView&&this.set({_role:"group",_ariaLabelledBy:t.labelView.id}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",o.to("class")],role:o.to("_role"),"aria-labelledby":o.to("_ariaLabelledBy")},children:this.children})}}var Tt=o(67),xt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(Tt.A,xt);Tt.A.locals;var St=o(911),Vt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(St.A,Vt);St.A.locals;var Rt=o(266),It={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(Rt.A,It);Rt.A.locals;class Pt extends Pe.View{constructor(e,t){super(e),this.set({borderStyle:"",borderWidth:"",borderColor:"",padding:"",backgroundColor:"",width:"",height:"",horizontalAlignment:"",verticalAlignment:""}),this.options=t;const{borderStyleDropdown:o,borderWidthInput:n,borderColorInput:i,borderRowLabel:r}=this._createBorderFields(),{backgroundRowLabel:l,backgroundInput:s}=this._createBackgroundFields(),{widthInput:a,operatorLabel:c,heightInput:d,dimensionsLabel:u}=this._createDimensionFields(),{horizontalAlignmentToolbar:h,verticalAlignmentToolbar:b,alignmentLabel:g}=this._createAlignmentFields();this.focusTracker=new m.FocusTracker,this.keystrokes=new m.KeystrokeHandler,this.children=this.createCollection(),this.borderStyleDropdown=o,this.borderWidthInput=n,this.borderColorInput=i,this.backgroundInput=s,this.paddingInput=this._createPaddingField(),this.widthInput=a,this.heightInput=d,this.horizontalAlignmentToolbar=h,this.verticalAlignmentToolbar=b;const{saveButtonView:p,cancelButtonView:f}=this._createActionButtons();this.saveButtonView=p,this.cancelButtonView=f,this._focusables=new Pe.ViewCollection,this._focusCycler=new Pe.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new Pe.FormHeaderView(e,{label:this.t("Cell properties")})),this.children.add(new At(e,{labelView:r,children:[r,o,i,n],class:"ck-table-form__border-row"})),this.children.add(new At(e,{labelView:l,children:[l,s],class:"ck-table-form__background-row"})),this.children.add(new At(e,{children:[new At(e,{labelView:u,children:[u,a,c,d],class:"ck-table-form__dimensions-row"}),new At(e,{children:[this.paddingInput],class:"ck-table-cell-properties-form__padding-row"})]})),this.children.add(new At(e,{labelView:g,children:[g,h,b],class:"ck-table-cell-properties-form__alignment-row"})),this.children.add(new At(e,{children:[this.saveButtonView,this.cancelButtonView],class:"ck-table-form__action-row"})),this.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-cell-properties-form"],tabindex:"-1"},children:this.children})}render(){super.render(),(0,Pe.submitHandler)({view:this}),[this.borderColorInput,this.backgroundInput].forEach((e=>{e.fieldView.focusCycler.on("forwardCycle",(e=>{this._focusCycler.focusNext(),e.stop()})),e.fieldView.focusCycler.on("backwardCycle",(e=>{this._focusCycler.focusPrevious(),e.stop()}))})),[this.borderStyleDropdown,this.borderColorInput,this.borderWidthInput,this.backgroundInput,this.widthInput,this.heightInput,this.paddingInput,this.horizontalAlignmentToolbar,this.verticalAlignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach((e=>{this._focusables.add(e),this.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createBorderFields(){const e=this.options.defaultTableCellProperties,t={style:e.borderStyle,width:e.borderWidth,color:e.borderColor},o=kt({colorConfig:this.options.borderColors,columns:5,defaultColorValue:t.color,colorPickerConfig:this.options.colorPickerConfig}),n=this.locale,i=this.t,r=i("Style"),l=new Pe.LabelView(n);l.text=i("Border");const s=ut(i),a=new Pe.LabeledFieldView(n,Pe.createLabeledDropdown);a.set({label:r,class:"ck-table-form__border-style"}),a.fieldView.buttonView.set({ariaLabel:r,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:r}),a.fieldView.buttonView.bind("label").to(this,"borderStyle",(e=>s[e||"none"])),a.fieldView.on("execute",(e=>{this.borderStyle=e.source._borderStyleValue})),a.bind("isEmpty").to(this,"borderStyle",(e=>!e)),(0,Pe.addListToDropdown)(a.fieldView,ft(this,t.style),{role:"menu",ariaLabel:r});const c=new Pe.LabeledFieldView(n,Pe.createLabeledInputText);c.set({label:i("Width"),class:"ck-table-form__border-width"}),c.fieldView.bind("value").to(this,"borderWidth"),c.bind("isEnabled").to(this,"borderStyle",Et),c.fieldView.on("input",(()=>{this.borderWidth=c.fieldView.element.value}));const d=new Pe.LabeledFieldView(n,o);return d.set({label:i("Color"),class:"ck-table-form__border-color"}),d.fieldView.bind("value").to(this,"borderColor"),d.bind("isEnabled").to(this,"borderStyle",Et),d.fieldView.on("input",(()=>{this.borderColor=d.fieldView.value})),this.on("change:borderStyle",((e,o,n,i)=>{Et(n)||(this.borderColor="",this.borderWidth=""),Et(i)||(this.borderColor=t.color,this.borderWidth=t.width)})),{borderRowLabel:l,borderStyleDropdown:a,borderColorInput:d,borderWidthInput:c}}_createBackgroundFields(){const e=this.locale,t=this.t,o=new Pe.LabelView(e);o.text=t("Background");const n=kt({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableCellProperties.backgroundColor,colorPickerConfig:this.options.colorPickerConfig}),i=new Pe.LabeledFieldView(e,n);return i.set({label:t("Color"),class:"ck-table-cell-properties-form__background"}),i.fieldView.bind("value").to(this,"backgroundColor"),i.fieldView.on("input",(()=>{this.backgroundColor=i.fieldView.value})),{backgroundRowLabel:o,backgroundInput:i}}_createDimensionFields(){const e=this.locale,t=this.t,o=new Pe.LabelView(e);o.text=t("Dimensions");const n=new Pe.LabeledFieldView(e,Pe.createLabeledInputText);n.set({label:t("Width"),class:"ck-table-form__dimensions-row__width"}),n.fieldView.bind("value").to(this,"width"),n.fieldView.on("input",(()=>{this.width=n.fieldView.element.value}));const i=new Pe.View(e);i.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});const r=new Pe.LabeledFieldView(e,Pe.createLabeledInputText);return r.set({label:t("Height"),class:"ck-table-form__dimensions-row__height"}),r.fieldView.bind("value").to(this,"height"),r.fieldView.on("input",(()=>{this.height=r.fieldView.element.value})),{dimensionsLabel:o,widthInput:n,operatorLabel:i,heightInput:r}}_createPaddingField(){const e=this.locale,t=this.t,o=new Pe.LabeledFieldView(e,Pe.createLabeledInputText);return o.set({label:t("Padding"),class:"ck-table-cell-properties-form__padding"}),o.fieldView.bind("value").to(this,"padding"),o.fieldView.on("input",(()=>{this.padding=o.fieldView.element.value})),o}_createAlignmentFields(){const t=this.locale,o=this.t,n=new Pe.LabelView(t),i={left:e.icons.alignLeft,center:e.icons.alignCenter,right:e.icons.alignRight,justify:e.icons.alignJustify,top:e.icons.alignTop,middle:e.icons.alignMiddle,bottom:e.icons.alignBottom};n.text=o("Table cell text alignment");const r=new Pe.ToolbarView(t),l="rtl"===t.contentLanguageDirection;r.set({isCompact:!0,ariaLabel:o("Horizontal text alignment toolbar")}),wt({view:this,icons:i,toolbar:r,labels:this._horizontalAlignmentLabels,propertyName:"horizontalAlignment",nameToValue:e=>{if(l){if("left"===e)return"right";if("right"===e)return"left"}return e},defaultValue:this.options.defaultTableCellProperties.horizontalAlignment});const s=new Pe.ToolbarView(t);return s.set({isCompact:!0,ariaLabel:o("Vertical text alignment toolbar")}),wt({view:this,icons:i,toolbar:s,labels:this._verticalAlignmentLabels,propertyName:"verticalAlignment",defaultValue:this.options.defaultTableCellProperties.verticalAlignment}),{horizontalAlignmentToolbar:r,verticalAlignmentToolbar:s,alignmentLabel:n}}_createActionButtons(){const t=this.locale,o=this.t,n=new Pe.ButtonView(t),i=new Pe.ButtonView(t),r=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.paddingInput];return n.set({label:o("Save"),icon:e.icons.check,class:"ck-button-save",type:"submit",withText:!0}),n.bind("isEnabled").toMany(r,"errorText",((...e)=>e.every((e=>!e)))),i.set({label:o("Cancel"),icon:e.icons.cancel,class:"ck-button-cancel",withText:!0}),i.delegate("execute").to(this,"cancel"),{saveButtonView:n,cancelButtonView:i}}get _horizontalAlignmentLabels(){const e=this.locale,t=this.t,o=t("Align cell text to the left"),n=t("Align cell text to the center"),i=t("Align cell text to the right"),r=t("Justify cell text");return"rtl"===e.uiLanguageDirection?{right:i,center:n,left:o,justify:r}:{left:o,center:n,right:i,justify:r}}get _verticalAlignmentLabels(){const e=this.t;return{top:e("Align cell text to the top"),middle:e("Align cell text to the middle"),bottom:e("Align cell text to the bottom")}}}function Et(e){return"none"!==e}const zt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const Bt="object"==typeof global&&global&&global.Object===Object&&global;var Lt="object"==typeof self&&self&&self.Object===Object&&self;const Ft=Bt||Lt||Function("return this")();const Wt=function(){return Ft.Date.now()};var Nt=/\s/;const Ot=function(e){for(var t=e.length;t--&&Nt.test(e.charAt(t)););return t};var jt=/^\s+/;const Mt=function(e){return e?e.slice(0,Ot(e)+1).replace(jt,""):e};const Dt=Ft.Symbol;var Ht=Object.prototype,Ut=Ht.hasOwnProperty,$t=Ht.toString,Kt=Dt?Dt.toStringTag:void 0;const Gt=function(e){var t=Ut.call(e,Kt),o=e[Kt];try{e[Kt]=void 0;var n=!0}catch(e){}var i=$t.call(e);return n&&(t?e[Kt]=o:delete e[Kt]),i};var qt=Object.prototype.toString;const Jt=function(e){return qt.call(e)};var Xt=Dt?Dt.toStringTag:void 0;const Yt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Xt&&Xt in Object(e)?Gt(e):Jt(e)};const Qt=function(e){return null!=e&&"object"==typeof e};const Zt=function(e){return"symbol"==typeof e||Qt(e)&&"[object Symbol]"==Yt(e)};var eo=/^[-+]0x[0-9a-f]+$/i,to=/^0b[01]+$/i,oo=/^0o[0-7]+$/i,no=parseInt;const io=function(e){if("number"==typeof e)return e;if(Zt(e))return NaN;if(zt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=zt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Mt(e);var o=to.test(e);return o||oo.test(e)?no(e.slice(2),o?2:8):eo.test(e)?NaN:+e};var ro=Math.max,lo=Math.min;const so=function(e,t,o){var n,i,r,l,s,a,c=0,d=!1,u=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var o=n,r=i;return n=i=void 0,c=t,l=e.apply(r,o)}function m(e){var o=e-a;return void 0===a||o>=t||o<0||u&&e-c>=r}function g(){var e=Wt();if(m(e))return p(e);s=setTimeout(g,function(e){var o=t-(e-a);return u?lo(o,r-(e-c)):o}(e))}function p(e){return s=void 0,h&&n?b(e):(n=i=void 0,l)}function f(){var e=Wt(),o=m(e);if(n=arguments,i=this,a=e,o){if(void 0===s)return function(e){return c=e,s=setTimeout(g,t),d?b(e):l}(a);if(u)return clearTimeout(s),s=setTimeout(g,t),b(a)}return void 0===s&&(s=setTimeout(g,t)),l}return t=io(t)||0,zt(o)&&(d=!!o.leading,r=(u="maxWait"in o)?ro(io(o.maxWait)||0,t):r,h="trailing"in o?!!o.trailing:h),f.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=a=i=s=void 0},f.flush=function(){return void 0===s?l:p(Wt())},f},ao=(()=>[Pe.BalloonPanelView.defaultPositions.northArrowSouth,Pe.BalloonPanelView.defaultPositions.northArrowSouthWest,Pe.BalloonPanelView.defaultPositions.northArrowSouthEast,Pe.BalloonPanelView.defaultPositions.southArrowNorth,Pe.BalloonPanelView.defaultPositions.southArrowNorthWest,Pe.BalloonPanelView.defaultPositions.southArrowNorthEast,Pe.BalloonPanelView.defaultPositions.viewportStickyNorth])();function co(e,t){const o=e.plugins.get("ContextualBalloon"),n=e.editing.view.document.selection;let i;"cell"===t?nt(n)&&(i=ho(e)):tt(n)&&(i=uo(e)),i&&o.updatePosition(i)}function uo(e){const t=b(e.model.document.selection),o=e.editing.mapper.toViewElement(t);return{target:e.editing.view.domConverter.mapViewToDom(o),positions:ao}}function ho(e){const t=e.editing.mapper,o=e.editing.view.domConverter,n=e.model.document.selection;if(n.rangeCount>1)return{target:()=>function(e,t){const o=t.editing.mapper,n=t.editing.view.domConverter,i=Array.from(e).map((e=>{const t=bo(e.start),i=o.toViewElement(t);return new m.Rect(n.mapViewToDom(i))}));return m.Rect.getBoundingRect(i)}(n.getRanges(),e),positions:ao};const i=bo(n.getFirstPosition()),r=t.toViewElement(i);return{target:o.mapViewToDom(r),positions:ao}}function bo(e){return e.nodeAfter&&e.nodeAfter.is("element","tableCell")?e.nodeAfter:e.findAncestor("tableCell")}function mo(e){if(!e||!zt(e))return e;const{top:t,right:o,bottom:n,left:i}=e;return t==o&&o==n&&n==i?t:void 0}function go(e,t){const o=parseFloat(e);return Number.isNaN(o)||String(o)!==String(e)?e:`${o}${t}`}function po(e,t={}){const o={borderStyle:"none",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:"",...e};return t.includeAlignmentProperty&&!o.alignment&&(o.alignment="center"),t.includePaddingProperty&&!o.padding&&(o.padding=""),t.includeVerticalAlignmentProperty&&!o.verticalAlignment&&(o.verticalAlignment="middle"),t.includeHorizontalAlignmentProperty&&!o.horizontalAlignment&&(o.horizontalAlignment=t.isRightToLeftContent?"right":"left"),o}const fo={borderStyle:"tableCellBorderStyle",borderColor:"tableCellBorderColor",borderWidth:"tableCellBorderWidth",height:"tableCellHeight",width:"tableCellWidth",padding:"tableCellPadding",backgroundColor:"tableCellBackgroundColor",horizontalAlignment:"tableCellHorizontalAlignment",verticalAlignment:"tableCellVerticalAlignment"};class wo extends e.Plugin{static get requires(){return[Pe.ContextualBalloon]}static get pluginName(){return"TableCellPropertiesUI"}constructor(e){super(e),e.config.define("table.tableCellProperties",{borderColors:_t,backgroundColors:_t})}init(){const e=this.editor,t=e.t;this._defaultTableCellProperties=po(e.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:"rtl"===e.locale.contentLanguageDirection}),this._balloon=e.plugins.get(Pe.ContextualBalloon),this.view=null,this._isReady=!1,e.ui.componentFactory.add("tableCellProperties",(o=>{const n=new Pe.ButtonView(o);n.set({label:t("Cell properties"),icon:'',tooltip:!0}),this.listenTo(n,"execute",(()=>this._showView()));const i=Object.values(fo).map((t=>e.commands.get(t)));return n.bind("isEnabled").toMany(i,"isEnabled",((...e)=>e.some((e=>e)))),n}))}destroy(){super.destroy(),this.view&&this.view.destroy()}_createPropertiesView(){const e=this.editor,t=e.config.get("table.tableCellProperties"),o=(0,Pe.normalizeColorOptions)(t.borderColors),n=(0,Pe.getLocalizedColorOptions)(e.locale,o),i=(0,Pe.normalizeColorOptions)(t.backgroundColors),r=(0,Pe.getLocalizedColorOptions)(e.locale,i),l=!1!==t.colorPicker,s=new Pt(e.locale,{borderColors:n,backgroundColors:r,defaultTableCellProperties:this._defaultTableCellProperties,colorPickerConfig:!!l&&(t.colorPicker||{})}),a=e.t;s.render(),this.listenTo(s,"submit",(()=>{this._hideView()})),this.listenTo(s,"cancel",(()=>{this._undoStepBatch.operations.length&&e.execute("undo",this._undoStepBatch),this._hideView()})),s.keystrokes.set("Esc",((e,t)=>{this._hideView(),t()})),(0,Pe.clickOutsideHandler)({emitter:s,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const c=ht(a),d=bt(a);return s.on("change:borderStyle",this._getPropertyChangeCallback("tableCellBorderStyle")),s.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:s.borderColorInput,commandName:"tableCellBorderColor",errorText:c,validator:mt})),s.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:s.borderWidthInput,commandName:"tableCellBorderWidth",errorText:d,validator:pt})),s.on("change:padding",this._getValidatedPropertyChangeCallback({viewField:s.paddingInput,commandName:"tableCellPadding",errorText:d,validator:gt})),s.on("change:width",this._getValidatedPropertyChangeCallback({viewField:s.widthInput,commandName:"tableCellWidth",errorText:d,validator:gt})),s.on("change:height",this._getValidatedPropertyChangeCallback({viewField:s.heightInput,commandName:"tableCellHeight",errorText:d,validator:gt})),s.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:s.backgroundInput,commandName:"tableCellBackgroundColor",errorText:c,validator:mt})),s.on("change:horizontalAlignment",this._getPropertyChangeCallback("tableCellHorizontalAlignment")),s.on("change:verticalAlignment",this._getPropertyChangeCallback("tableCellVerticalAlignment")),s}_fillViewFormFromCommandValues(){const e=this.editor.commands,t=e.get("tableCellBorderStyle");Object.entries(fo).map((([t,o])=>{const n=this._defaultTableCellProperties[t]||"";return[t,e.get(o).value||n]})).forEach((([e,o])=>{("borderColor"!==e&&"borderWidth"!==e||"none"!==t.value)&&this.view.set(e,o)})),this._isReady=!0}_showView(){const e=this.editor;this.view||(this.view=this._createPropertiesView()),this.listenTo(e.ui,"update",(()=>{this._updateView()})),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:ho(e)}),this._undoStepBatch=e.model.createBatch(),this.view.focus()}_hideView(){const e=this.editor;this.stopListening(e.ui,"update"),this._isReady=!1,this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}_updateView(){const e=this.editor;nt(e.editing.view.document.selection)?this._isViewVisible&&co(e,"cell"):this._hideView()}get _isViewVisible(){return!!this.view&&this._balloon.visibleView===this.view}get _isViewInBalloon(){return!!this.view&&this._balloon.hasView(this.view)}_getPropertyChangeCallback(e){return(t,o,n)=>{this._isReady&&this.editor.execute(e,{value:n,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback(e){const{commandName:t,viewField:o,validator:n,errorText:i}=e,r=so((()=>{o.errorText=i}),500);return(e,i,l)=>{r.cancel(),this._isReady&&(n(l)?(this.editor.execute(t,{value:l,batch:this._undoStepBatch}),o.errorText=null):r())}}}class _o extends e.Command{constructor(e,t,o){super(e),this.attributeName=t,this._defaultValue=o}refresh(){const e=this.editor,t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e.model.document.selection);this.isEnabled=!!t.length,this.value=this._getSingleValue(t)}execute(e={}){const{value:t,batch:o}=e,n=this.editor.model,i=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(n.document.selection),r=this._getValueToSet(t);n.enqueueChange(o,(e=>{r?i.forEach((t=>e.setAttribute(this.attributeName,r,t))):i.forEach((t=>e.removeAttribute(this.attributeName,t)))}))}_getAttribute(e){if(!e)return;const t=e.getAttribute(this.attributeName);return t!==this._defaultValue?t:void 0}_getValueToSet(e){if(e!==this._defaultValue)return e}_getSingleValue(e){const t=this._getAttribute(e[0]);return e.every((e=>this._getAttribute(e)===t))?t:void 0}}class ko extends _o{constructor(e,t){super(e,"tableCellWidth",t)}_getValueToSet(e){if((e=go(e,"px"))!==this._defaultValue)return e}}class vo extends e.Plugin{static get pluginName(){return"TableCellWidthEditing"}static get requires(){return[Re]}init(){const e=this.editor,t=po(e.config.get("table.tableCellProperties.defaultProperties"));h(e.model.schema,e.conversion,{modelAttribute:"tableCellWidth",styleName:"width",defaultValue:t.width}),e.commands.add("tableCellWidth",new ko(e,t.width))}}class Co extends _o{constructor(e,t){super(e,"tableCellPadding",t)}_getAttribute(e){if(!e)return;const t=mo(e.getAttribute(this.attributeName));return t!==this._defaultValue?t:void 0}_getValueToSet(e){const t=go(e,"px");if(t!==this._defaultValue)return t}}class yo extends _o{constructor(e,t){super(e,"tableCellHeight",t)}_getValueToSet(e){const t=go(e,"px");if(t!==this._defaultValue)return t}}class Ao extends _o{constructor(e,t){super(e,"tableCellBackgroundColor",t)}}class To extends _o{constructor(e,t){super(e,"tableCellVerticalAlignment",t)}}class xo extends _o{constructor(e,t){super(e,"tableCellHorizontalAlignment",t)}}class So extends _o{constructor(e,t){super(e,"tableCellBorderStyle",t)}_getAttribute(e){if(!e)return;const t=mo(e.getAttribute(this.attributeName));return t!==this._defaultValue?t:void 0}}class Vo extends _o{constructor(e,t){super(e,"tableCellBorderColor",t)}_getAttribute(e){if(!e)return;const t=mo(e.getAttribute(this.attributeName));return t!==this._defaultValue?t:void 0}}class Ro extends _o{constructor(e,t){super(e,"tableCellBorderWidth",t)}_getAttribute(e){if(!e)return;const t=mo(e.getAttribute(this.attributeName));return t!==this._defaultValue?t:void 0}_getValueToSet(e){const t=go(e,"px");if(t!==this._defaultValue)return t}}const Io=/^(top|middle|bottom)$/,Po=/^(left|center|right|justify)$/;class Eo extends e.Plugin{static get pluginName(){return"TableCellPropertiesEditing"}static get requires(){return[Re,vo]}init(){const e=this.editor,t=e.model.schema,o=e.conversion;e.config.define("table.tableCellProperties.defaultProperties",{});const n=po(e.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:"rtl"===e.locale.contentLanguageDirection});e.data.addStyleProcessorRules(Ke.addBorderRules),function(e,t,o){const n={width:"tableCellBorderWidth",color:"tableCellBorderColor",style:"tableCellBorderStyle"};e.extend("tableCell",{allowAttributes:Object.values(n)}),r(t,"td",n,o),r(t,"th",n,o),l(t,{modelElement:"tableCell",modelAttribute:n.style,styleName:"border-style"}),l(t,{modelElement:"tableCell",modelAttribute:n.color,styleName:"border-color"}),l(t,{modelElement:"tableCell",modelAttribute:n.width,styleName:"border-width"})}(t,o,{color:n.borderColor,style:n.borderStyle,width:n.borderWidth}),e.commands.add("tableCellBorderStyle",new So(e,n.borderStyle)),e.commands.add("tableCellBorderColor",new Vo(e,n.borderColor)),e.commands.add("tableCellBorderWidth",new Ro(e,n.borderWidth)),h(t,o,{modelAttribute:"tableCellHeight",styleName:"height",defaultValue:n.height}),e.commands.add("tableCellHeight",new yo(e,n.height)),e.data.addStyleProcessorRules(Ke.addPaddingRules),h(t,o,{modelAttribute:"tableCellPadding",styleName:"padding",reduceBoxSides:!0,defaultValue:n.padding}),e.commands.add("tableCellPadding",new Co(e,n.padding)),e.data.addStyleProcessorRules(Ke.addBackgroundRules),h(t,o,{modelAttribute:"tableCellBackgroundColor",styleName:"background-color",defaultValue:n.backgroundColor}),e.commands.add("tableCellBackgroundColor",new Ao(e,n.backgroundColor)),function(e,t,o){e.extend("tableCell",{allowAttributes:["tableCellHorizontalAlignment"]}),t.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellHorizontalAlignment"},view:e=>({key:"style",value:{"text-align":e}})}),t.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"text-align":Po}},model:{key:"tableCellHorizontalAlignment",value:e=>{const t=e.getStyle("text-align");return t===o?null:t}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{align:Po}},model:{key:"tableCellHorizontalAlignment",value:e=>{const t=e.getAttribute("align");return t===o?null:t}}})}(t,o,n.horizontalAlignment),e.commands.add("tableCellHorizontalAlignment",new xo(e,n.horizontalAlignment)),function(e,t,o){e.extend("tableCell",{allowAttributes:["tableCellVerticalAlignment"]}),t.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellVerticalAlignment"},view:e=>({key:"style",value:{"vertical-align":e}})}),t.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"vertical-align":Io}},model:{key:"tableCellVerticalAlignment",value:e=>{const t=e.getStyle("vertical-align");return t===o?null:t}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{valign:Io}},model:{key:"tableCellVerticalAlignment",value:e=>{const t=e.getAttribute("valign");return t===o?null:t}}})}(t,o,n.verticalAlignment),e.commands.add("tableCellVerticalAlignment",new To(e,n.verticalAlignment))}}class zo extends e.Plugin{static get pluginName(){return"TableCellProperties"}static get requires(){return[Eo,wo]}}class Bo extends e.Command{constructor(e,t,o){super(e),this.attributeName=t,this._defaultValue=o}refresh(){const e=b(this.editor.model.document.selection);this.isEnabled=!!e,this.value=this._getValue(e)}execute(e={}){const t=this.editor.model,o=t.document.selection,{value:n,batch:i}=e,r=b(o),l=this._getValueToSet(n);t.enqueueChange(i,(e=>{l?e.setAttribute(this.attributeName,l,r):e.removeAttribute(this.attributeName,r)}))}_getValue(e){if(!e)return;const t=e.getAttribute(this.attributeName);return t!==this._defaultValue?t:void 0}_getValueToSet(e){if(e!==this._defaultValue)return e}}class Lo extends Bo{constructor(e,t){super(e,"tableBackgroundColor",t)}}class Fo extends Bo{constructor(e,t){super(e,"tableBorderColor",t)}_getValue(e){if(!e)return;const t=mo(e.getAttribute(this.attributeName));return t!==this._defaultValue?t:void 0}}class Wo extends Bo{constructor(e,t){super(e,"tableBorderStyle",t)}_getValue(e){if(!e)return;const t=mo(e.getAttribute(this.attributeName));return t!==this._defaultValue?t:void 0}}class No extends Bo{constructor(e,t){super(e,"tableBorderWidth",t)}_getValue(e){if(!e)return;const t=mo(e.getAttribute(this.attributeName));return t!==this._defaultValue?t:void 0}_getValueToSet(e){const t=go(e,"px");if(t!==this._defaultValue)return t}}class Oo extends Bo{constructor(e,t){super(e,"tableWidth",t)}_getValueToSet(e){if((e=go(e,"px"))!==this._defaultValue)return e}}class jo extends Bo{constructor(e,t){super(e,"tableHeight",t)}_getValueToSet(e){if((e=go(e,"px"))!==this._defaultValue)return e}}class Mo extends Bo{constructor(e,t){super(e,"tableAlignment",t)}}const Do=/^(left|center|right)$/,Ho=/^(left|none|right)$/;class Uo extends e.Plugin{static get pluginName(){return"TablePropertiesEditing"}static get requires(){return[Re]}init(){const e=this.editor,t=e.model.schema,o=e.conversion;e.config.define("table.tableProperties.defaultProperties",{});const n=po(e.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0});e.data.addStyleProcessorRules(Ke.addBorderRules),function(e,t,o){const n={width:"tableBorderWidth",color:"tableBorderColor",style:"tableBorderStyle"};e.extend("table",{allowAttributes:Object.values(n)}),r(t,"table",n,o),s(t,{modelAttribute:n.color,styleName:"border-color"}),s(t,{modelAttribute:n.style,styleName:"border-style"}),s(t,{modelAttribute:n.width,styleName:"border-width"})}(t,o,{color:n.borderColor,style:n.borderStyle,width:n.borderWidth}),e.commands.add("tableBorderColor",new Fo(e,n.borderColor)),e.commands.add("tableBorderStyle",new Wo(e,n.borderStyle)),e.commands.add("tableBorderWidth",new No(e,n.borderWidth)),function(e,t,o){e.extend("table",{allowAttributes:["tableAlignment"]}),t.for("downcast").attributeToAttribute({model:{name:"table",key:"tableAlignment"},view:e=>({key:"style",value:{float:"center"===e?"none":e}}),converterPriority:"high"}),t.for("upcast").attributeToAttribute({view:{name:/^(table|figure)$/,styles:{float:Ho}},model:{key:"tableAlignment",value:e=>{let t=e.getStyle("float");return"none"===t&&(t="center"),t===o?null:t}}}).attributeToAttribute({view:{attributes:{align:Do}},model:{name:"table",key:"tableAlignment",value:e=>{const t=e.getAttribute("align");return t===o?null:t}}})}(t,o,n.alignment),e.commands.add("tableAlignment",new Mo(e,n.alignment)),$o(t,o,{modelAttribute:"tableWidth",styleName:"width",defaultValue:n.width}),e.commands.add("tableWidth",new Oo(e,n.width)),$o(t,o,{modelAttribute:"tableHeight",styleName:"height",defaultValue:n.height}),e.commands.add("tableHeight",new jo(e,n.height)),e.data.addStyleProcessorRules(Ke.addBackgroundRules),function(e,t,o){const{modelAttribute:n}=o;e.extend("table",{allowAttributes:[n]}),i(t,{viewElement:"table",...o}),s(t,o)}(t,o,{modelAttribute:"tableBackgroundColor",styleName:"background-color",defaultValue:n.backgroundColor}),e.commands.add("tableBackgroundColor",new Lo(e,n.backgroundColor))}}function $o(e,t,o){const{modelAttribute:n}=o;e.extend("table",{allowAttributes:[n]}),i(t,{viewElement:/^(table|figure)$/,shouldUpcast:e=>!("table"==e.name&&"figure"==e.parent.name),...o}),l(t,{modelElement:"table",...o})}var Ko=o(218),Go={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(Ko.A,Go);Ko.A.locals;class qo extends Pe.View{constructor(e,t){super(e),this.set({borderStyle:"",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:"",alignment:""}),this.options=t;const{borderStyleDropdown:o,borderWidthInput:n,borderColorInput:i,borderRowLabel:r}=this._createBorderFields(),{backgroundRowLabel:l,backgroundInput:s}=this._createBackgroundFields(),{widthInput:a,operatorLabel:c,heightInput:d,dimensionsLabel:u}=this._createDimensionFields(),{alignmentToolbar:h,alignmentLabel:b}=this._createAlignmentFields();this.focusTracker=new m.FocusTracker,this.keystrokes=new m.KeystrokeHandler,this.children=this.createCollection(),this.borderStyleDropdown=o,this.borderWidthInput=n,this.borderColorInput=i,this.backgroundInput=s,this.widthInput=a,this.heightInput=d,this.alignmentToolbar=h;const{saveButtonView:g,cancelButtonView:p}=this._createActionButtons();this.saveButtonView=g,this.cancelButtonView=p,this._focusables=new Pe.ViewCollection,this._focusCycler=new Pe.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new Pe.FormHeaderView(e,{label:this.t("Table properties")})),this.children.add(new At(e,{labelView:r,children:[r,o,i,n],class:"ck-table-form__border-row"})),this.children.add(new At(e,{labelView:l,children:[l,s],class:"ck-table-form__background-row"})),this.children.add(new At(e,{children:[new At(e,{labelView:u,children:[u,a,c,d],class:"ck-table-form__dimensions-row"}),new At(e,{labelView:b,children:[b,h],class:"ck-table-properties-form__alignment-row"})]})),this.children.add(new At(e,{children:[this.saveButtonView,this.cancelButtonView],class:"ck-table-form__action-row"})),this.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-properties-form"],tabindex:"-1"},children:this.children})}render(){super.render(),(0,Pe.submitHandler)({view:this}),[this.borderColorInput,this.backgroundInput].forEach((e=>{e.fieldView.focusCycler.on("forwardCycle",(e=>{this._focusCycler.focusNext(),e.stop()})),e.fieldView.focusCycler.on("backwardCycle",(e=>{this._focusCycler.focusPrevious(),e.stop()}))})),[this.borderStyleDropdown,this.borderColorInput,this.borderWidthInput,this.backgroundInput,this.widthInput,this.heightInput,this.alignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach((e=>{this._focusables.add(e),this.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createBorderFields(){const e=this.options.defaultTableProperties,t={style:e.borderStyle,width:e.borderWidth,color:e.borderColor},o=kt({colorConfig:this.options.borderColors,columns:5,defaultColorValue:t.color,colorPickerConfig:this.options.colorPickerConfig}),n=this.locale,i=this.t,r=i("Style"),l=new Pe.LabelView(n);l.text=i("Border");const s=ut(i),a=new Pe.LabeledFieldView(n,Pe.createLabeledDropdown);a.set({label:r,class:"ck-table-form__border-style"}),a.fieldView.buttonView.set({ariaLabel:r,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:r}),a.fieldView.buttonView.bind("label").to(this,"borderStyle",(e=>s[e||"none"])),a.fieldView.on("execute",(e=>{this.borderStyle=e.source._borderStyleValue})),a.bind("isEmpty").to(this,"borderStyle",(e=>!e)),(0,Pe.addListToDropdown)(a.fieldView,ft(this,t.style),{role:"menu",ariaLabel:r});const c=new Pe.LabeledFieldView(n,Pe.createLabeledInputText);c.set({label:i("Width"),class:"ck-table-form__border-width"}),c.fieldView.bind("value").to(this,"borderWidth"),c.bind("isEnabled").to(this,"borderStyle",Jo),c.fieldView.on("input",(()=>{this.borderWidth=c.fieldView.element.value}));const d=new Pe.LabeledFieldView(n,o);return d.set({label:i("Color"),class:"ck-table-form__border-color"}),d.fieldView.bind("value").to(this,"borderColor"),d.bind("isEnabled").to(this,"borderStyle",Jo),d.fieldView.on("input",(()=>{this.borderColor=d.fieldView.value})),this.on("change:borderStyle",((e,o,n,i)=>{Jo(n)||(this.borderColor="",this.borderWidth=""),Jo(i)||(this.borderColor=t.color,this.borderWidth=t.width)})),{borderRowLabel:l,borderStyleDropdown:a,borderColorInput:d,borderWidthInput:c}}_createBackgroundFields(){const e=this.locale,t=this.t,o=new Pe.LabelView(e);o.text=t("Background");const n=kt({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableProperties.backgroundColor,colorPickerConfig:this.options.colorPickerConfig}),i=new Pe.LabeledFieldView(e,n);return i.set({label:t("Color"),class:"ck-table-properties-form__background"}),i.fieldView.bind("value").to(this,"backgroundColor"),i.fieldView.on("input",(()=>{this.backgroundColor=i.fieldView.value})),{backgroundRowLabel:o,backgroundInput:i}}_createDimensionFields(){const e=this.locale,t=this.t,o=new Pe.LabelView(e);o.text=t("Dimensions");const n=new Pe.LabeledFieldView(e,Pe.createLabeledInputText);n.set({label:t("Width"),class:"ck-table-form__dimensions-row__width"}),n.fieldView.bind("value").to(this,"width"),n.fieldView.on("input",(()=>{this.width=n.fieldView.element.value}));const i=new Pe.View(e);i.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});const r=new Pe.LabeledFieldView(e,Pe.createLabeledInputText);return r.set({label:t("Height"),class:"ck-table-form__dimensions-row__height"}),r.fieldView.bind("value").to(this,"height"),r.fieldView.on("input",(()=>{this.height=r.fieldView.element.value})),{dimensionsLabel:o,widthInput:n,operatorLabel:i,heightInput:r}}_createAlignmentFields(){const t=this.locale,o=this.t,n=new Pe.LabelView(t);n.text=o("Alignment");const i=new Pe.ToolbarView(t);return i.set({isCompact:!0,ariaLabel:o("Table alignment toolbar")}),wt({view:this,icons:{left:e.icons.objectLeft,center:e.icons.objectCenter,right:e.icons.objectRight},toolbar:i,labels:this._alignmentLabels,propertyName:"alignment",defaultValue:this.options.defaultTableProperties.alignment}),{alignmentLabel:n,alignmentToolbar:i}}_createActionButtons(){const t=this.locale,o=this.t,n=new Pe.ButtonView(t),i=new Pe.ButtonView(t),r=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.widthInput,this.heightInput];return n.set({label:o("Save"),icon:e.icons.check,class:"ck-button-save",type:"submit",withText:!0}),n.bind("isEnabled").toMany(r,"errorText",((...e)=>e.every((e=>!e)))),i.set({label:o("Cancel"),icon:e.icons.cancel,class:"ck-button-cancel",withText:!0}),i.delegate("execute").to(this,"cancel"),{saveButtonView:n,cancelButtonView:i}}get _alignmentLabels(){const e=this.locale,t=this.t,o=t("Align table to the left"),n=t("Center table"),i=t("Align table to the right");return"rtl"===e.uiLanguageDirection?{right:i,center:n,left:o}:{left:o,center:n,right:i}}}function Jo(e){return"none"!==e}const Xo={borderStyle:"tableBorderStyle",borderColor:"tableBorderColor",borderWidth:"tableBorderWidth",backgroundColor:"tableBackgroundColor",width:"tableWidth",height:"tableHeight",alignment:"tableAlignment"};class Yo extends e.Plugin{static get requires(){return[Pe.ContextualBalloon]}static get pluginName(){return"TablePropertiesUI"}constructor(e){super(e),this.view=null,e.config.define("table.tableProperties",{borderColors:_t,backgroundColors:_t})}init(){const e=this.editor,t=e.t;this._defaultTableProperties=po(e.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0}),this._balloon=e.plugins.get(Pe.ContextualBalloon),e.ui.componentFactory.add("tableProperties",(o=>{const n=new Pe.ButtonView(o);n.set({label:t("Table properties"),icon:'',tooltip:!0}),this.listenTo(n,"execute",(()=>this._showView()));const i=Object.values(Xo).map((t=>e.commands.get(t)));return n.bind("isEnabled").toMany(i,"isEnabled",((...e)=>e.some((e=>e)))),n}))}destroy(){super.destroy(),this.view&&this.view.destroy()}_createPropertiesView(){const e=this.editor,t=e.config.get("table.tableProperties"),o=(0,Pe.normalizeColorOptions)(t.borderColors),n=(0,Pe.getLocalizedColorOptions)(e.locale,o),i=(0,Pe.normalizeColorOptions)(t.backgroundColors),r=(0,Pe.getLocalizedColorOptions)(e.locale,i),l=!1!==t.colorPicker,s=new qo(e.locale,{borderColors:n,backgroundColors:r,defaultTableProperties:this._defaultTableProperties,colorPickerConfig:!!l&&(t.colorPicker||{})}),a=e.t;s.render(),this.listenTo(s,"submit",(()=>{this._hideView()})),this.listenTo(s,"cancel",(()=>{this._undoStepBatch.operations.length&&e.execute("undo",this._undoStepBatch),this._hideView()})),s.keystrokes.set("Esc",((e,t)=>{this._hideView(),t()})),(0,Pe.clickOutsideHandler)({emitter:s,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const c=ht(a),d=bt(a);return s.on("change:borderStyle",this._getPropertyChangeCallback("tableBorderStyle")),s.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:s.borderColorInput,commandName:"tableBorderColor",errorText:c,validator:mt})),s.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:s.borderWidthInput,commandName:"tableBorderWidth",errorText:d,validator:pt})),s.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:s.backgroundInput,commandName:"tableBackgroundColor",errorText:c,validator:mt})),s.on("change:width",this._getValidatedPropertyChangeCallback({viewField:s.widthInput,commandName:"tableWidth",errorText:d,validator:gt})),s.on("change:height",this._getValidatedPropertyChangeCallback({viewField:s.heightInput,commandName:"tableHeight",errorText:d,validator:gt})),s.on("change:alignment",this._getPropertyChangeCallback("tableAlignment")),s}_fillViewFormFromCommandValues(){const e=this.editor.commands,t=e.get("tableBorderStyle");Object.entries(Xo).map((([t,o])=>{const n=t,i=this._defaultTableProperties[n]||"";return[n,e.get(o).value||i]})).forEach((([e,o])=>{("borderColor"!==e&&"borderWidth"!==e||"none"!==t.value)&&this.view.set(e,o)})),this._isReady=!0}_showView(){const e=this.editor;this.view||(this.view=this._createPropertiesView()),this.listenTo(e.ui,"update",(()=>{this._updateView()})),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:uo(e)}),this._undoStepBatch=e.model.createBatch(),this.view.focus()}_hideView(){const e=this.editor;this.stopListening(e.ui,"update"),this._isReady=!1,this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}_updateView(){const e=this.editor;tt(e.editing.view.document.selection)?this._isViewVisible&&co(e,"table"):this._hideView()}get _isViewVisible(){return!!this.view&&this._balloon.visibleView===this.view}get _isViewInBalloon(){return!!this.view&&this._balloon.hasView(this.view)}_getPropertyChangeCallback(e){return(t,o,n)=>{this._isReady&&this.editor.execute(e,{value:n,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback(e){const{commandName:t,viewField:o,validator:n,errorText:i}=e,r=so((()=>{o.errorText=i}),500);return(e,i,l)=>{r.cancel(),this._isReady&&(n(l)?(this.editor.execute(t,{value:l,batch:this._undoStepBatch}),o.errorText=null):r())}}}class Qo extends e.Plugin{static get pluginName(){return"TableProperties"}static get requires(){return[Uo,Yo]}}function Zo(e){e.document.registerPostFixer((t=>function(e,t){const o=t.document.differ.getChanges();let n=!1;for(const t of o){if("insert"!=t.type)continue;const o=t.position.parent;if(o.is("element","table")||"table"==t.name){const i="table"==t.name?t.position.nodeAfter:o,r=Array.from(i.getChildren()).filter((e=>e.is("element","caption"))),l=r.shift();if(!l)continue;for(const t of r)e.move(e.createRangeIn(t),l,"end"),e.remove(t);l.nextSibling&&(e.move(e.createRangeOn(l),i,"end"),n=!0),n=!!r.length||n}}return n}(t,e)))}function en(e){return!!e&&e.is("element","table")}function tn(e){for(const t of e.getChildren())if(t.is("element","caption"))return t;return null}function on(e){const t=e.parent;return"figcaption"==e.name&&t&&t.is("element","figure")&&t.hasClass("table")||"caption"==e.name&&t&&t.is("element","table")?{name:!0}:null}class nn extends e.Command{refresh(){const e=b(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled?this.value=!!tn(e):this.value=!1}execute({focusCaptionOnShow:e=!1}={}){this.editor.model.change((t=>{this.value?this._hideTableCaption(t):this._showTableCaption(t,e)}))}_showTableCaption(e,t){const o=this.editor.model,n=b(o.document.selection),i=this.editor.plugins.get("TableCaptionEditing")._getSavedCaption(n)||e.createElement("caption");o.insertContent(i,n,"end"),t&&e.setSelection(i,"in")}_hideTableCaption(e){const t=this.editor.model,o=b(t.document.selection),n=this.editor.plugins.get("TableCaptionEditing"),i=tn(o);n._saveCaption(o,i),t.deleteContent(e.createSelection(i,"on"))}}class rn extends e.Plugin{static get pluginName(){return"TableCaptionEditing"}constructor(e){super(e),this._savedCaptionsMap=new WeakMap}init(){const e=this.editor,o=e.model.schema,n=e.editing.view,i=e.t;o.isRegistered("caption")?o.extend("caption",{allowIn:"table"}):o.register("caption",{allowIn:"table",allowContentOf:"$block",isLimit:!0}),e.commands.add("toggleTableCaption",new nn(this.editor)),e.conversion.for("upcast").elementToElement({view:on,model:"caption"}),e.conversion.for("dataDowncast").elementToElement({model:"caption",view:(e,{writer:t})=>en(e.parent)?t.createContainerElement("figcaption"):null}),e.conversion.for("editingDowncast").elementToElement({model:"caption",view:(e,{writer:o})=>{if(!en(e.parent))return null;const r=o.createEditableElement("figcaption");return o.setCustomProperty("tableCaption",!0,r),r.placeholder=i("Enter table caption"),(0,Ke.enablePlaceholder)({view:n,element:r,keepOnFocus:!0}),(0,t.toWidgetEditable)(r,o)}}),Zo(e.model)}_getSavedCaption(e){const t=this._savedCaptionsMap.get(e);return t?Ke.Element.fromJSON(t):null}_saveCaption(e,t){this._savedCaptionsMap.set(e,t.toJSON())}}class ln extends e.Plugin{static get pluginName(){return"TableCaptionUI"}init(){const t=this.editor,o=t.editing.view,n=t.t;t.ui.componentFactory.add("toggleTableCaption",(i=>{const r=t.commands.get("toggleTableCaption"),l=new Pe.ButtonView(i);return l.set({icon:e.icons.caption,tooltip:!0,isToggleable:!0}),l.bind("isOn","isEnabled").to(r,"value","isEnabled"),l.bind("label").to(r,"value",(e=>n(e?"Toggle caption off":"Toggle caption on"))),this.listenTo(l,"execute",(()=>{if(t.execute("toggleTableCaption",{focusCaptionOnShow:!0}),r.value){const e=function(e){const t=b(e);return t?tn(t):null}(t.model.document.selection),n=t.editing.mapper.toViewElement(e);if(!n)return;o.scrollToTheSelection(),o.change((e=>{e.addClass("table__caption_highlighted",n)}))}t.editing.view.focus()})),l}))}}var sn=o(175),an={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(sn.A,an);sn.A.locals;class cn extends e.Plugin{static get pluginName(){return"TableCaption"}static get requires(){return[rn,ln]}}const dn=function(){this.__data__=[],this.size=0};const un=function(e,t){return e===t||e!=e&&t!=t};const hn=function(e,t){for(var o=e.length;o--;)if(un(e[o][0],t))return o;return-1};var bn=Array.prototype.splice;const mn=function(e){var t=this.__data__,o=hn(t,e);return!(o<0)&&(o==t.length-1?t.pop():bn.call(t,o,1),--this.size,!0)};const gn=function(e){var t=this.__data__,o=hn(t,e);return o<0?void 0:t[o][1]};const pn=function(e){return hn(this.__data__,e)>-1};const fn=function(e,t){var o=this.__data__,n=hn(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this};function wn(e){var t=-1,o=null==e?0:e.length;for(this.clear();++ts))return!1;var c=r.get(e),d=r.get(t);if(c&&d)return c==t&&d==e;var u=-1,h=!0,b=2&o?new hi:void 0;for(r.set(e,t),r.set(t,e);++u-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991};var Ui={};Ui["[object Float32Array]"]=Ui["[object Float64Array]"]=Ui["[object Int8Array]"]=Ui["[object Int16Array]"]=Ui["[object Int32Array]"]=Ui["[object Uint8Array]"]=Ui["[object Uint8ClampedArray]"]=Ui["[object Uint16Array]"]=Ui["[object Uint32Array]"]=!0,Ui["[object Arguments]"]=Ui["[object Array]"]=Ui["[object ArrayBuffer]"]=Ui["[object Boolean]"]=Ui["[object DataView]"]=Ui["[object Date]"]=Ui["[object Error]"]=Ui["[object Function]"]=Ui["[object Map]"]=Ui["[object Number]"]=Ui["[object Object]"]=Ui["[object RegExp]"]=Ui["[object Set]"]=Ui["[object String]"]=Ui["[object WeakMap]"]=!1;const $i=function(e){return Qt(e)&&Hi(e.length)&&!!Ui[Yt(e)]};const Ki=function(e){return function(t){return e(t)}};var Gi="object"==typeof exports&&exports&&!exports.nodeType&&exports,qi=Gi&&"object"==typeof module&&module&&!module.nodeType&&module,Ji=qi&&qi.exports===Gi&&Bt.process,Xi=function(){try{var e=qi&&qi.require&&qi.require("util").types;return e||Ji&&Ji.binding&&Ji.binding("util")}catch(e){}}();var Yi=Xi&&Xi.isTypedArray;const Qi=Yi?Ki(Yi):$i;var Zi=Object.prototype.hasOwnProperty;const er=function(e,t){var o=yi(e),n=!o&&Li(e),i=!o&&!n&&ji(e),r=!o&&!n&&!i&&Qi(e),l=o||n||i||r,s=l?Ii(e.length,String):[],a=s.length;for(var c in e)!t&&!Zi.call(e,c)||l&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Di(c,a))||s.push(c);return s};var tr=Object.prototype;const or=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||tr)};const nr=function(e,t){return function(o){return e(t(o))}}(Object.keys,Object);var ir=Object.prototype.hasOwnProperty;const rr=function(e){if(!or(e))return nr(e);var t=[];for(var o in Object(e))ir.call(e,o)&&"constructor"!=o&&t.push(o);return t};const lr=function(e){return null!=e&&Hi(e.length)&&!An(e)};const sr=function(e){return lr(e)?er(e):rr(e)};const ar=function(e){return Ai(e,sr,Ri)};var cr=Object.prototype.hasOwnProperty;const dr=function(e,t,o,n,i,r){var l=1&o,s=ar(e),a=s.length;if(a!=ar(t).length&&!l)return!1;for(var c=a;c--;){var d=s[c];if(!(l?d in t:cr.call(t,d)))return!1}var u=r.get(e),h=r.get(t);if(u&&h)return u==t&&h==e;var b=!0;r.set(e,t),r.set(t,e);for(var m=l;++c{r?e.setAttribute("tableWidth",r,n):e.removeAttribute("tableWidth",n);const t=o.get("TableColumnResizeEditing").getColumnGroupElement(n);if(!i&&!t)return;if(!i)return e.remove(t);const l=Z(i);if(t)Array.from(t.getChildren()).forEach(((t,o)=>e.setAttribute("columnWidth",l[o],t)));else{const t=e.createElement("tableColumnGroup");l.forEach((o=>e.appendElement("tableColumn",{columnWidth:o},t))),e.append(t,n)}}))}}function Fr(e){return t=>t.on("element:colgroup",((t,o,n)=>{const i=o.modelCursor.findAncestor("table"),r=oe(i);if(!r)return;const l=ne(r),s=e.getColumns(i);let a=(c=r,d=n.writer,ne(c).reduce(((e,t)=>{const o=t.getAttribute("columnWidth"),n=t.getAttribute("colSpan");if(!n)return e.push(o),e;for(let t=0;ta[t]||"auto")),(a.length!=l.length||a.includes("auto"))&&te(l,r,Z(a),n.writer)}),{priority:"low"})}class Wr extends e.Plugin{static get requires(){return[Re,ie]}static get pluginName(){return"TableColumnResizeEditing"}constructor(e){super(e),this._isResizingActive=!1,this.set("_isResizingAllowed",!0),this._resizingData=null,this._domEmitter=new((0,m.DomEmitterMixin)()),this._tableUtilsPlugin=e.plugins.get("TableUtils"),this.on("change:_isResizingAllowed",((t,o,n)=>{const i=n?"removeClass":"addClass";e.editing.view.change((t=>{for(const o of e.editing.view.document.roots)t[i]("ck-column-resize_disabled",e.editing.view.document.getRoot(o.rootName))}))}))}init(){this._extendSchema(),this._registerPostFixer(),this._registerConverters(),this._registerResizingListeners(),this._registerResizerInserter();const e=this.editor,t=e.plugins.get("TableColumnResize");e.plugins.get("TableEditing").registerAdditionalSlot({filter:e=>e.is("element","tableColumnGroup"),positionOffset:0});const o=new Lr(e);e.commands.add("resizeTableWidth",o),e.commands.add("resizeColumnWidths",o),this.bind("_isResizingAllowed").to(e,"isReadOnly",t,"isEnabled",o,"isEnabled",((e,t,o)=>!e&&t&&o))}destroy(){this._domEmitter.stopListening(),super.destroy()}getColumnGroupElement(e){return oe(e)}getTableColumnElements(e){return ne(e)}getTableColumnsWidths(e){return function(e){return ne(e).map((e=>e.getAttribute("columnWidth")))}(e)}_extendSchema(){this.editor.model.schema.extend("table",{allowAttributes:["tableWidth"]}),this.editor.model.schema.register("tableColumnGroup",{allowIn:"table",isLimit:!0}),this.editor.model.schema.register("tableColumn",{allowIn:"tableColumnGroup",allowAttributes:["columnWidth","colSpan"],isLimit:!0})}_registerPostFixer(){const e=this.editor.model;function t(e,t,o){const n=o._tableUtilsPlugin.getColumns(t);if(0===n-e.length)return e;const i=e.map((e=>Number(e.replace("%","")))),r=function(e,t){const o=new Set;for(const n of e.getChanges())if("insert"==n.type&&n.position.nodeAfter&&"tableCell"==n.position.nodeAfter.name&&n.position.nodeAfter.getAncestors().includes(t))o.add(n.position.nodeAfter);else if("remove"==n.type){const e=n.position.nodeBefore||n.position.nodeAfter;"tableCell"==e.name&&e.getAncestors().includes(t)&&o.add(e)}return o}(o.editor.model.document.differ,t);for(const e of r){const r=n-i.length;if(0===r)continue;const s=r>0,a=o._tableUtilsPlugin.getCellLocation(e).column;if(s){const e=G(t,o.editor),n=(l=e,Array(r).fill(l));i.splice(a,0,...n)}else{const e=i.splice(a,Math.abs(r));i[a]+=Q(e)}}var l;return i.map((e=>e+"%"))}e.document.registerPostFixer((o=>{let n=!1;for(const i of function(e){const t=new Set;for(const o of e.document.differ.getChanges()){let n=null;switch(o.type){case"insert":n=["table","tableRow","tableCell"].includes(o.name)?o.position:null;break;case"remove":n=["tableRow","tableCell"].includes(o.name)?o.position:null;break;case"attribute":o.range.start.nodeAfter&&(n=["table","tableRow","tableCell"].includes(o.range.start.nodeAfter.name)?o.range.start:null)}if(!n)continue;const i=n.nodeAfter&&n.nodeAfter.is("element","table")?n.nodeAfter:n.findAncestor("table");for(const o of e.createRangeOn(i).getItems())o.is("element","table")&&oe(o)&&t.add(o)}return t}(e)){const e=this.getColumnGroupElement(i),r=this.getTableColumnElements(e),l=this.getTableColumnsWidths(e);let s=Z(l);s=t(s,i,this),zr(l,s)||(te(r,e,s,o),n=!0)}return n}))}_registerConverters(){const e=this.editor.conversion;e.for("upcast").attributeToAttribute({view:{name:"figure",key:"style",value:{width:/[\s\S]+/}},model:{name:"table",key:"tableWidth",value:e=>e.getStyle("width")}}),e.for("downcast").attributeToAttribute({model:{name:"table",key:"tableWidth"},view:e=>({name:"figure",key:"style",value:{width:e}})}),e.elementToElement({model:"tableColumnGroup",view:"colgroup"}),e.elementToElement({model:"tableColumn",view:"col"}),e.for("downcast").add((e=>e.on("insert:table",((e,t,o)=>{const n=o.writer,i=t.item,r=o.mapper.toViewElement(i),l=r.is("element","table")?r:Array.from(r.getChildren()).find((e=>e.is("element","table")));oe(i)?n.addClass("ck-table-resized",l):n.removeClass("ck-table-resized",l)}),{priority:"low"}))),e.for("upcast").add(Fr(this._tableUtilsPlugin)),e.for("upcast").attributeToAttribute({view:{name:"col",styles:{width:/.*/}},model:{key:"columnWidth",value:e=>{const t=e.getStyle("width");return t&&(t.endsWith("%")||t.endsWith("pt"))?t:"auto"}}}),e.for("upcast").attributeToAttribute({view:{name:"col",key:"span"},model:"colSpan"}),e.for("downcast").attributeToAttribute({model:{name:"tableColumn",key:"columnWidth"},view:e=>({key:"style",value:{width:e}})})}_registerResizingListeners(){const e=this.editor.editing.view;e.addObserver(Ge),e.document.on("mousedown",this._onMouseDownHandler.bind(this),{priority:"high"}),this._domEmitter.listenTo(m.global.window.document,"mousemove",Br(this._onMouseMoveHandler.bind(this),50)),this._domEmitter.listenTo(m.global.window.document,"mouseup",this._onMouseUpHandler.bind(this))}_onMouseDownHandler(e,t){const o=t.target;if(!o.hasClass("ck-table-column-resizer"))return;if(!this._isResizingAllowed)return;const n=this.editor,i=n.editing.mapper.toModelElement(o.findAncestor("figure"));if(!n.model.canEditAt(i))return;t.preventDefault(),e.stop();const r=function(e,t,o){const n=Array(t.getColumns(e)),i=new w(e);for(const e of i){const t=o.editing.mapper.toViewElement(e.cell),i=ee(o.editing.view.domConverter.mapViewToDom(t));(!n[e.column]||ie.is("element","colgroup")))||s.change((e=>{!function(e,t,o){const n=e.createContainerElement("colgroup");for(let o=0;ofunction(e,t,o){const n=o.widths.viewFigureWidth/o.widths.viewFigureParentWidth;e.addClass("ck-table-resized",t),e.addClass("ck-table-column-resizer__active",o.elements.viewResizer),e.setStyle("width",`${Y(100*n)}%`,t.findAncestor("figure"))}(e,l,this._resizingData)))}_onMouseMoveHandler(e,t){if(!this._isResizingActive)return;if(!this._isResizingAllowed)return void this._onMouseUpHandler();const{columnPosition:o,flags:{isRightEdge:n,isTableCentered:i,isLtrContent:r},elements:{viewFigure:l,viewLeftColumn:s,viewRightColumn:a},widths:{viewFigureParentWidth:c,tableWidth:d,leftColumnWidth:u,rightColumnWidth:h}}=this._resizingData,b=40-u,m=n?c-d:h-40,g=(r?1:-1)*(n&&i?2:1),p=(f=(t.clientX-o)*g,w=Math.min(b,0),_=Math.max(m,0),Y(f<=w?w:f>=_?_:f));var f,w,_;0!==p&&this.editor.editing.view.change((e=>{const t=Y(100*(u+p)/d);if(e.setStyle("width",`${t}%`,s),n){const t=Y(100*(d+p)/c);e.setStyle("width",`${t}%`,l)}else{const t=Y(100*(h-p)/d);e.setStyle("width",`${t}%`,a)}}))}_onMouseUpHandler(){if(!this._isResizingActive)return;const{viewResizer:e,modelTable:t,viewFigure:o,viewColgroup:n}=this._resizingData.elements,i=this.editor,r=i.editing.view,l=this.getColumnGroupElement(t),s=Array.from(n.getChildren()).filter((e=>e.is("view:element"))),a=l?this.getTableColumnsWidths(l):null,c=s.map((e=>e.getStyle("width"))),d=!zr(a,c),u=t.getAttribute("tableWidth"),h=o.getStyle("width"),b=u!==h;(d||b)&&(this._isResizingAllowed?i.execute("resizeTableWidth",{table:t,tableWidth:`${Y(h)}%`,columnWidths:c}):r.change((e=>{if(a)for(const t of s)e.setStyle("width",a.shift(),t);else e.remove(n);b&&(u?e.setStyle("width",u,o):e.removeStyle("width",o)),a||u||e.removeClass("ck-table-resized",[...o.getChildren()].find((e=>"table"===e.name)))}))),r.change((t=>{t.removeClass("ck-table-column-resizer__active",e)})),this._isResizingActive=!1,this._resizingData=null}_getResizingData(e,t){const o=this.editor,n=e.domEvent.clientX,i=e.target,r=i.findAncestor("td")||i.findAncestor("th"),l=o.editing.mapper.toModelElement(r),s=l.findAncestor("table"),a=function(e,t){const o=t.getCellLocation(e).column;return{leftEdge:o,rightEdge:o+(e.getAttribute("colspan")||1)-1}}(l,this._tableUtilsPlugin).rightEdge,c=a===this._tableUtilsPlugin.getColumns(s)-1,d=!s.hasAttribute("tableAlignment"),u="rtl"!==o.locale.contentLanguageDirection,h=r.findAncestor("table"),b=h.findAncestor("figure"),m=[...h.getChildren()].find((e=>e.is("element","colgroup"))),g=m.getChild(a),p=c?void 0:m.getChild(a+1);return{columnPosition:n,flags:{isRightEdge:c,isTableCentered:d,isLtrContent:u},elements:{viewResizer:i,modelTable:s,viewFigure:b,viewColgroup:m,viewLeftColumn:g,viewRightColumn:p},widths:{viewFigureParentWidth:X(o.editing.view.domConverter.mapViewToDom(b.parent)),viewFigureWidth:X(o.editing.view.domConverter.mapViewToDom(b)),tableWidth:q(s,o),leftColumnWidth:t[a],rightColumnWidth:c?void 0:t[a+1]}}}_registerResizerInserter(){this.editor.conversion.for("editingDowncast").add((e=>{e.on("insert:tableCell",((e,t,o)=>{const n=t.item,i=o.mapper.toViewElement(n),r=o.writer;r.insert(r.createPositionAt(i,"end"),r.createUIElement("div",{class:"ck-table-column-resizer"}))}),{priority:"lowest"})}))}}var Nr=o(363),Or={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(Nr.A,Or);Nr.A.locals;class jr extends e.Plugin{static get requires(){return[Wr,vo]}static get pluginName(){return"TableColumnResize"}}})(),(window.CKEditor5=window.CKEditor5||{}).table=n})();
\ No newline at end of file
+ */(()=>{var e={770:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}",""]);const r=i},67:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}",""]);const r=i},839:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}",""]);const r=i},712:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,".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{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;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)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}@media (prefers-reduced-motion:reduce){.ck .ck-insert-table-dropdown-grid-box{transition:none}}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}",""]);const r=i},25:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}",""]);const r=i},175:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}@media (forced-colors:active){.ck-content .table>figcaption{background-color:unset;color:unset}}@media (forced-colors:none){.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}",""]);const r=i},266:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}",""]);const r=i},363:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,":root{--ck-color-selector-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word;position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:0;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:0;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-selector-column-resizer-hover);bottom:-999999px;opacity:.25;top:-999999px}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}",""]);const r=i},817:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.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-selector-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}",""]);const r=i},911:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}@media (prefers-reduced-motion:reduce){.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:none}}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',""]);const r=i},218:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}",""]);const r=i},719:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(935),i=o.n(n)()((function(e){return e[1]}));i.push([e.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top: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,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',""]);const r=i},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o=e(t);return t[2]?"@media ".concat(t[2]," {").concat(o,"}"):o})).join("")},t.i=function(e,o,n){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(n)for(var r=0;r{"use strict";var n,i=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var e={};return function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[t]=o}return e[t]}}(),l=[];function s(e){for(var t=-1,o=0;o{e.exports=o(237)("./src/clipboard.js")},782:(e,t,o)=>{e.exports=o(237)("./src/core.js")},783:(e,t,o)=>{e.exports=o(237)("./src/engine.js")},311:(e,t,o)=>{e.exports=o(237)("./src/ui.js")},584:(e,t,o)=>{e.exports=o(237)("./src/utils.js")},901:(e,t,o)=>{e.exports=o(237)("./src/widget.js")},237:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={id:n,exports:{}};return e[n](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var n={};(()=>{"use strict";o.r(n),o.d(n,{PlainTableOutput:()=>Ze,Table:()=>Qe,TableCaption:()=>cn,TableCaptionEditing:()=>rn,TableCaptionUI:()=>ln,TableCellProperties:()=>zo,TableCellPropertiesEditing:()=>Eo,TableCellPropertiesUI:()=>wo,TableCellWidthEditing:()=>vo,TableClipboard:()=>Me,TableColumnResize:()=>jr,TableColumnResizeEditing:()=>Wr,TableEditing:()=>Re,TableKeyboard:()=>$e,TableMouse:()=>qe,TableProperties:()=>Qo,TablePropertiesEditing:()=>Uo,TablePropertiesUI:()=>Yo,TableSelection:()=>Oe,TableToolbar:()=>rt,TableUI:()=>Le,TableUtils:()=>ie});var e=o(782),t=o(901);function i(e,t){const{modelAttribute:o,styleName:n,viewElement:i,defaultValue:r,reduceBoxSides:l=!1,shouldUpcast:s=()=>!0}=t;e.for("upcast").attributeToAttribute({view:{name:i,styles:{[n]:/[\s\S]+/}},model:{key:o,value:e=>{if(!s(e))return;const t=e.getNormalizedStyle(n),o=l?a(t):t;return r!==o?o:void 0}}})}function r(e,t,o,n){e.for("upcast").add((e=>e.on("element:"+t,((e,t,i)=>{if(!t.modelRange)return;const r=["border-top-width","border-top-color","border-top-style","border-bottom-width","border-bottom-color","border-bottom-style","border-right-width","border-right-color","border-right-style","border-left-width","border-left-color","border-left-style"].filter((e=>t.viewItem.hasStyle(e)));if(!r.length)return;const l={styles:r};if(!i.consumable.test(t.viewItem,l))return;const s=[...t.modelRange.getItems({shallow:!0})].pop();i.consumable.consume(t.viewItem,l);const c={style:t.viewItem.getNormalizedStyle("border-style"),color:t.viewItem.getNormalizedStyle("border-color"),width:t.viewItem.getNormalizedStyle("border-width")},d={style:a(c.style),color:a(c.color),width:a(c.width)};d.style!==n.style&&i.writer.setAttribute(o.style,d.style,s),d.color!==n.color&&i.writer.setAttribute(o.color,d.color,s),d.width!==n.width&&i.writer.setAttribute(o.width,d.width,s)}))))}function l(e,t){const{modelElement:o,modelAttribute:n,styleName:i}=t;e.for("downcast").attributeToAttribute({model:{name:o,key:n},view:e=>({key:"style",value:{[i]:e}})})}function s(e,t){const{modelAttribute:o,styleName:n}=t;e.for("downcast").add((e=>e.on(`attribute:${o}:table`,((e,t,o)=>{const{item:i,attributeNewValue:r}=t,{mapper:l,writer:s}=o;if(!o.consumable.consume(t.item,e.name))return;const a=[...l.toViewElement(i).getChildren()].find((e=>e.is("element","table")));r?s.setStyle(n,r,a):s.removeStyle(n,a)}))))}function a(e){if(!e)return;const t=["top","right","bottom","left"];if(!t.every((t=>e[t])))return e;const o=e.top;return t.every((t=>e[t]===o))?o:e}function c(e,t,o,n,i=1){null!=t&&null!=i&&t>i?n.setAttribute(e,t,o):n.removeAttribute(e,o)}function d(e,t,o={}){const n=e.createElement("tableCell",o);return e.insertElement("paragraph",n),e.insert(n,t),n}function u(e,t){const o=t.parent.parent,n=parseInt(o.getAttribute("headingColumns")||"0"),{column:i}=e.getCellLocation(t);return!!n&&i{e.on("element:table",((e,t,o)=>{const n=t.viewItem;if(!o.consumable.test(n,{name:!0}))return;const{rows:i,headingRows:r,headingColumns:l}=function(e){let t,o=0;const n=[],i=[];let r;for(const l of Array.from(e.getChildren())){if("tbody"!==l.name&&"thead"!==l.name&&"tfoot"!==l.name)continue;"thead"!==l.name||r||(r=l);const e=Array.from(l.getChildren()).filter((e=>e.is("element","tr")));for(const s of e)if(r&&l===r||"tbody"===l.name&&Array.from(s.getChildren()).length&&Array.from(s.getChildren()).every((e=>e.is("element","th"))))o++,n.push(s);else{i.push(s);const e=f(s);(!t||eo.convertItem(e,o.writer.createPositionAt(a,"end")))),o.convertChildren(n,o.writer.createPositionAt(a,"end")),a.isEmpty){const e=o.writer.createElement("tableRow");o.writer.insert(e,o.writer.createPositionAt(a,"end")),d(o.writer,o.writer.createPositionAt(e,"end"))}o.updateConversionResult(a,t)}}))}}function p(e){return t=>{t.on(`element:${e}`,((e,t,{writer:o})=>{if(!t.modelRange)return;const n=t.modelRange.start.nodeAfter,i=o.createPositionAt(n,0);if(t.viewItem.isEmpty)return void o.insertElement("paragraph",i);const r=Array.from(n.getChildren());if(r.every((e=>e.is("element","$marker")))){const e=o.createElement("paragraph");o.insert(e,o.createPositionAt(n,0));for(const t of r)o.move(o.createRangeOn(t),o.createPositionAt(e,"end"))}}),{priority:"low"})}}function f(e){let t=0,o=0;const n=Array.from(e.getChildren()).filter((e=>"th"===e.name||"td"===e.name));for(;o1||i>1)&&this._recordSpans(o,i,n),this._shouldSkipSlot()||(t=this._formatOutValue(o)),this._nextCellAtColumn=this._column+n}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,t||this.next()}skipRow(e){this._skipRows.add(e)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(e,t=this._row,o=this._column){return{done:!1,value:new _(this,e,t,o)}}_shouldSkipSlot(){const e=this._skipRows.has(this._row),t=this._rowthis._endColumn;return e||t||o||n}_getSpanned(){const e=this._spannedCells.get(this._row);return e&&e.get(this._column)||null}_recordSpans(e,t,o){const n={cell:e,row:this._row,column:this._column};for(let e=this._row;e0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const e=this._getRowLength(0);for(let t=this._startRow;!this._jumpedToStartRow;t--)e===this._getRowLength(t)&&(this._row=t,this._rowIndex=t,this._jumpedToStartRow=!0)}_getRowLength(e){return[...this._table.getChild(e).getChildren()].reduce(((e,t)=>e+parseInt(t.getAttribute("colspan")||"1")),0)}}class _{constructor(e,t,o,n){this.cell=t,this.row=e._row,this.column=e._column,this.cellAnchorRow=o,this.cellAnchorColumn=n,this._cellIndex=e._cellIndex,this._rowIndex=e._rowIndex,this._table=e._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function k(e,o){return(n,{writer:i})=>{const r=n.getAttribute("headingRows")||0,l=i.createContainerElement("table",null,[]),s=i.createContainerElement("figure",{class:"table"},l);r>0&&i.insert(i.createPositionAt(l,"end"),i.createContainerElement("thead",null,i.createSlot((e=>e.is("element","tableRow")&&e.indexe.is("element","tableRow")&&e.index>=r))));for(const{positionOffset:e,filter:t}of o.additionalSlots)i.insert(i.createPositionAt(l,e),i.createSlot(t));return i.insert(i.createPositionAt(l,"after"),i.createSlot((e=>!e.is("element","tableRow")&&!o.additionalSlots.some((({filter:t})=>t(e)))))),o.asWidget?function(e,o){return o.setCustomProperty("table",!0,e),(0,t.toWidget)(e,o,{hasSelectionHandle:!0})}(s,i):s}}function v(e={}){return(o,{writer:n})=>{const i=o.parent,r=i.parent,l=r.getChildIndex(i),s=new w(r,{row:l}),a=r.getAttribute("headingRows")||0,c=r.getAttribute("headingColumns")||0;let d=null;for(const i of s)if(i.cell==o){const o=i.row{if(!t.parent.is("element","tableCell"))return null;if(!y(t))return null;if(e.asWidget)return o.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const e=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,e),e}}}function y(e){return 1==e.parent.childCount&&!!e.getAttributeKeys().next().done}class A extends e.Command{refresh(){const e=this.editor.model,t=e.document.selection,o=e.schema;this.isEnabled=function(e,t){const o=e.getFirstPosition().parent,n=o===o.root?o:o.parent;return t.checkChild(n,"table")}(t,o)}execute(e={}){const t=this.editor,o=t.model,n=t.plugins.get("TableUtils"),i=t.config.get("table.defaultHeadings.rows"),r=t.config.get("table.defaultHeadings.columns");void 0===e.headingRows&&i&&(e.headingRows=i),void 0===e.headingColumns&&r&&(e.headingColumns=r),o.change((t=>{const i=n.createTable(t,e);o.insertObject(i,null,null,{findOptimalPosition:"auto"}),t.setSelection(t.createPositionAt(i.getNodeByPath([0,0,0]),0))}))}}class T extends e.Command{constructor(e,t={}){super(e),this.order=t.order||"below"}refresh(){const e=this.editor.model.document.selection,t=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e).length;this.isEnabled=t}execute(){const e=this.editor,t=e.model.document.selection,o=e.plugins.get("TableUtils"),n="above"===this.order,i=o.getSelectionAffectedTableCells(t),r=o.getRowIndexes(i),l=n?r.first:r.last,s=i[0].findAncestor("table");o.insertRows(s,{at:n?l:l+1,copyStructureFromAbove:!n})}}class x extends e.Command{constructor(e,t={}){super(e),this.order=t.order||"right"}refresh(){const e=this.editor.model.document.selection,t=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e).length;this.isEnabled=t}execute(){const e=this.editor,t=e.model.document.selection,o=e.plugins.get("TableUtils"),n="left"===this.order,i=o.getSelectionAffectedTableCells(t),r=o.getColumnIndexes(i),l=n?r.first:r.last,s=i[0].findAncestor("table");o.insertColumns(s,{columns:1,at:n?l:l+1})}}class S extends e.Command{constructor(e,t={}){super(e),this.direction=t.direction||"horizontally"}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===e.length}execute(){const e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?e.splitCellHorizontally(t,2):e.splitCellVertically(t,2)}}function V(e,t,o){const{startRow:n,startColumn:i,endRow:r,endColumn:l}=t,s=o.createElement("table"),a=r-n+1;for(let e=0;e0){c("headingRows",r-o,e,i,0)}const l=parseInt(t.getAttribute("headingColumns")||"0");if(l>0){c("headingColumns",l-n,e,i,0)}}(s,e,n,i,o),s}function R(e,t,o=0){const n=[],i=new w(e,{startRow:o,endRow:t-1});for(const e of i){const{row:o,cellHeight:i}=e;o1&&(s.rowspan=a);const u=parseInt(e.getAttribute("colspan")||"1");u>1&&(s.colspan=u);const h=r+l,b=[...new w(i,{startRow:r,endRow:h,includeAllSlots:!0})];let m,g=null;for(const t of b){const{row:n,column:i,cell:r}=t;r===e&&void 0===m&&(m=i),void 0!==m&&m===i&&n===h&&(g=d(o,t.getPositionBefore(),s))}return c("rowspan",l,e,o),g}function P(e,t){const o=[],n=new w(e);for(const e of n){const{column:n,cellWidth:i}=e;n1&&(r.colspan=l);const s=parseInt(e.getAttribute("rowspan")||"1");s>1&&(r.rowspan=s);const a=d(n,n.createPositionAfter(e),r);return c("colspan",i,e,n),a}function z(e,t,o,n,i,r){const l=parseInt(e.getAttribute("colspan")||"1"),s=parseInt(e.getAttribute("rowspan")||"1");if(o+l-1>i){c("colspan",i-o+1,e,r,1)}if(t+s-1>n){c("rowspan",n-t+1,e,r,1)}}function B(e,t){const o=t.getColumns(e),n=new Array(o).fill(0);for(const{column:t}of new w(e))n[t]++;const i=n.reduce(((e,t,o)=>t?e:[...e,o]),[]);if(i.length>0){const o=i[i.length-1];return t.removeColumns(e,{at:o}),!0}return!1}function L(e,t){const o=[],n=t.getRows(e);for(let t=0;t0){const n=o[o.length-1];return t.removeRows(e,{at:n}),!0}return!1}function F(e,t){B(e,t)||L(e,t)}function W(e,t){const o=Array.from(new w(e,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));if(o.every((({cellHeight:e})=>1===e)))return t.lastRow;const n=o[0].cellHeight-1;return t.lastRow+n}function N(e,t){const o=Array.from(new w(e,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));if(o.every((({cellWidth:e})=>1===e)))return t.lastColumn;const n=o[0].cellWidth-1;return t.lastColumn+n}class O extends e.Command{constructor(e,t){super(e),this.direction=t.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const e=this._getMergeableCell();this.value=e,this.isEnabled=!!e}execute(){const e=this.editor.model,t=e.document,o=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(t.selection)[0],n=this.value,i=this.direction;e.change((e=>{const t="right"==i||"down"==i,r=t?o:n,l=t?n:o,s=l.parent;!function(e,t,o){j(e)||(j(t)&&o.remove(o.createRangeIn(t)),o.move(o.createRangeIn(e),o.createPositionAt(t,"end")));o.remove(e)}(l,r,e);const a=this.isHorizontal?"colspan":"rowspan",c=parseInt(o.getAttribute(a)||"1"),d=parseInt(n.getAttribute(a)||"1");e.setAttribute(a,c+d,r),e.setSelection(e.createRangeIn(r));const u=this.editor.plugins.get("TableUtils");F(s.findAncestor("table"),u)}))}_getMergeableCell(){const e=this.editor.model.document,t=this.editor.plugins.get("TableUtils"),o=t.getTableCellsContainingSelection(e.selection)[0];if(!o)return;const n=this.isHorizontal?function(e,t,o){const n=e.parent,i=n.parent,r="right"==t?e.nextSibling:e.previousSibling,l=(i.getAttribute("headingColumns")||0)>0;if(!r)return;const s="right"==t?e:r,a="right"==t?r:e,{column:c}=o.getCellLocation(s),{column:d}=o.getCellLocation(a),h=parseInt(s.getAttribute("colspan")||"1"),b=u(o,s),m=u(o,a);if(l&&b!=m)return;return c+h===d?r:void 0}(o,this.direction,t):function(e,t,o){const n=e.parent,i=n.parent,r=i.getChildIndex(n);if("down"==t&&r===o.getRows(i)-1||"up"==t&&0===r)return null;const l=parseInt(e.getAttribute("rowspan")||"1"),s=i.getAttribute("headingRows")||0,a="down"==t&&r+l===s,c="up"==t&&r===s;if(s&&(a||c))return null;const d=parseInt(e.getAttribute("rowspan")||"1"),u="down"==t?r+d:r,h=[...new w(i,{endRow:u})],b=h.find((t=>t.cell===e)),m=b.column,g=h.find((({row:e,cellHeight:o,column:n})=>n===m&&("down"==t?e===u:u===e+o)));return g&&g.cell?g.cell:null}(o,this.direction,t);if(!n)return;const i=this.isHorizontal?"rowspan":"colspan",r=parseInt(o.getAttribute(i)||"1");return parseInt(n.getAttribute(i)||"1")===r?n:void 0}}function j(e){const t=e.getChild(0);return 1==e.childCount&&t.is("element","paragraph")&&t.isEmpty}class M extends e.Command{refresh(){const e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection),o=t[0];if(o){const n=o.findAncestor("table"),i=e.getRows(n)-1,r=e.getRowIndexes(t),l=0===r.first&&r.last===i;this.isEnabled=!l}else this.isEnabled=!1}execute(){const e=this.editor.model,t=this.editor.plugins.get("TableUtils"),o=t.getSelectionAffectedTableCells(e.document.selection),n=t.getRowIndexes(o),i=o[0],r=i.findAncestor("table"),l=t.getCellLocation(i).column;e.change((e=>{const o=n.last-n.first+1;t.removeRows(r,{at:n.first,rows:o});const i=function(e,t,o,n){const i=e.getChild(Math.min(t,n-1));let r=i.getChild(0),l=0;for(const e of i.getChildren()){if(l>o)return r;r=e,l+=parseInt(e.getAttribute("colspan")||"1")}return r}(r,n.first,l,t.getRows(r));e.setSelection(e.createPositionAt(i,0))}))}}class D extends e.Command{refresh(){const e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection),o=t[0];if(o){const n=o.findAncestor("table"),i=e.getColumns(n),{first:r,last:l}=e.getColumnIndexes(t);this.isEnabled=l-re.cell===t)).column,last:i.find((e=>e.cell===o)).column},l=function(e,t,o,n){const i=parseInt(o.getAttribute("colspan")||"1");return i>1?o:t.previousSibling||o.nextSibling?o.nextSibling||t.previousSibling:n.first?e.reverse().find((({column:e})=>ee>n.last)).cell}(i,t,o,r);this.editor.model.change((t=>{const o=r.last-r.first+1;e.removeColumns(n,{at:r.first,columns:o}),t.setSelection(t.createPositionAt(l,0))}))}}class H extends e.Command{refresh(){const e=this.editor.plugins.get("TableUtils"),t=this.editor.model,o=e.getSelectionAffectedTableCells(t.document.selection),n=o.length>0;this.isEnabled=n,this.value=n&&o.every((e=>this._isInHeading(e,e.parent.parent)))}execute(e={}){if(e.forceValue===this.value)return;const t=this.editor.plugins.get("TableUtils"),o=this.editor.model,n=t.getSelectionAffectedTableCells(o.document.selection),i=n[0].findAncestor("table"),{first:r,last:l}=t.getRowIndexes(n),s=this.value?r:l+1,a=i.getAttribute("headingRows")||0;o.change((e=>{if(s){const t=R(i,s,s>a?a:0);for(const{cell:o}of t)I(o,s,e)}c("headingRows",s,i,e,0)}))}_isInHeading(e,t){const o=parseInt(t.getAttribute("headingRows")||"0");return!!o&&e.parent.index0;this.isEnabled=n,this.value=n&&o.every((e=>u(t,e)))}execute(e={}){if(e.forceValue===this.value)return;const t=this.editor.plugins.get("TableUtils"),o=this.editor.model,n=t.getSelectionAffectedTableCells(o.document.selection),i=n[0].findAncestor("table"),{first:r,last:l}=t.getColumnIndexes(n),s=this.value?r:l+1;o.change((e=>{if(s){const t=P(i,s);for(const{cell:o,column:n}of t)E(o,n,s,e)}c("headingColumns",s,i,e,0)}))}}const $=5,K=2;function G(e,t){return 4e3/q(e,t)}function q(e,t){const o=J(e,"tbody",t)||J(e,"thead",t);return X(t.editing.view.domConverter.mapViewToDom(o))}function J(e,t,o){return[...[...o.editing.mapper.toViewElement(e).getChildren()].find((e=>e.is("element","table"))).getChildren()].find((e=>e.is("element",t)))}function X(e){const t=m.global.window.getComputedStyle(e);return"border-box"===t.boxSizing?parseFloat(t.width)-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth):parseFloat(t.width)}function Y(e){const t=Math.pow(10,K),o="number"==typeof e?e:parseFloat(e);return Math.round(o*t)/t}function Q(e){return e.map((e=>"number"==typeof e?e:parseFloat(e))).filter((e=>!Number.isNaN(e))).reduce(((e,t)=>e+t),0)}function Z(e){let t=function(e){const t=e.filter((e=>"auto"===e)).length;if(0===t)return e.map((e=>Y(e)));const o=Q(e),n=Math.max((100-o)/t,$);return e.map((e=>"auto"===e?n:e)).map((e=>Y(e)))}(e.map((e=>"auto"===e?e:parseFloat(e.replace("%","")))));const o=Q(t);return 100!==o&&(t=t.map((e=>Y(100*e/o))).map(((e,t,o)=>{if(!(t===o.length-1))return e;return Y(e+100-Q(o))}))),t.map((e=>e+"%"))}function ee(e){const t=m.global.window.getComputedStyle(e);return"border-box"===t.boxSizing?parseInt(t.width):parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)+parseFloat(t.borderWidth)}function te(e,t,o,n){for(let i=0;ie.is("element","tableColumnGroup")))}function ne(e){const t=oe(e);return t?Array.from(t.getChildren()):[]}class ie extends e.Plugin{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(e){const t=e.parent,o=t.parent,n=o.getChildIndex(t),i=new w(o,{row:n});for(const{cell:t,row:o,column:n}of i)if(t===e)return{row:o,column:n}}createTable(e,t){const o=e.createElement("table"),n=t.rows||2,i=t.columns||2;return re(e,o,0,n,i),t.headingRows&&c("headingRows",Math.min(t.headingRows,n),o,e,0),t.headingColumns&&c("headingColumns",Math.min(t.headingColumns,i),o,e,0),o}insertRows(e,t={}){const o=this.editor.model,n=t.at||0,i=t.rows||1,r=void 0!==t.copyStructureFromAbove,l=t.copyStructureFromAbove?n-1:n,s=this.getRows(e),a=this.getColumns(e);if(n>s)throw new m.CKEditorError("tableutils-insertrows-insert-out-of-range",this,{options:t});o.change((t=>{const o=e.getAttribute("headingRows")||0;if(o>n&&c("headingRows",o+i,e,t,0),!r&&(0===n||n===s))return void re(t,e,n,i,a);const u=r?Math.max(n,l):n,h=new w(e,{endRow:u}),b=new Array(a).fill(1);for(const{row:e,column:o,cellHeight:s,cellWidth:a,cell:c}of h){const d=e+s-1,u=e<=l&&l<=d;e0&&d(t,i,n>1?{colspan:n}:void 0),e+=Math.abs(n)-1}}}))}insertColumns(e,t={}){const o=this.editor.model,n=t.at||0,i=t.columns||1;o.change((t=>{const o=e.getAttribute("headingColumns");ni-1)throw new m.CKEditorError("tableutils-removerows-row-index-out-of-range",this,{table:e,options:t});o.change((t=>{const o={first:r,last:l},{cellsToMove:n,cellsToTrim:i}=function(e,{first:t,last:o}){const n=new Map,i=[];for(const{row:r,column:l,cellHeight:s,cell:a}of new w(e,{endRow:o})){const e=r+s-1;if(r>=t&&r<=o&&e>o){const e=s-(o-r+1);n.set(l,{cell:a,rowspan:e})}if(r=t){let n;n=e>=o?o-t+1:e-t+1,i.push({cell:a,rowspan:s-n})}}return{cellsToMove:n,cellsToTrim:i}}(e,o);if(n.size){!function(e,t,o,n){const i=new w(e,{includeAllSlots:!0,row:t}),r=[...i],l=e.getChild(t);let s;for(const{column:e,cell:t,isAnchor:i}of r)if(o.has(e)){const{cell:t,rowspan:i}=o.get(e),r=s?n.createPositionAfter(s):n.createPositionAt(l,0);n.move(n.createRangeOn(t),r),c("rowspan",i,t,n),s=t}else i&&(s=t)}(e,l+1,n,t)}for(let o=l;o>=r;o--)t.remove(e.getChild(o));for(const{rowspan:e,cell:o}of i)c("rowspan",e,o,t);!function(e,{first:t,last:o},n){const i=e.getAttribute("headingRows")||0;if(t{!function(e,t,o){const n=e.getAttribute("headingColumns")||0;if(n&&t.first=n;i--){for(const{cell:o,column:n,cellWidth:r}of[...new w(e)])n<=i&&r>1&&n+r>i?c("colspan",r-1,o,t):n===i&&t.remove(o);if(o[i]){const e=0===i?o[1]:o[i-1],n=parseFloat(o[i].getAttribute("columnWidth")),r=parseFloat(e.getAttribute("columnWidth"));t.remove(o[i]),t.setAttribute("columnWidth",n+r+"%",e)}}L(e,this)||B(e,this)}))}splitCellVertically(e,t=2){const o=this.editor.model,n=e.parent.parent,i=parseInt(e.getAttribute("rowspan")||"1"),r=parseInt(e.getAttribute("colspan")||"1");o.change((o=>{if(r>1){const{newCellsSpan:n,updatedSpan:l}=se(r,t);c("colspan",l,e,o);const s={};n>1&&(s.colspan=n),i>1&&(s.rowspan=i);le(r>t?t-1:r-1,o,o.createPositionAfter(e),s)}if(rt===e)),d=s.filter((({cell:t,cellWidth:o,column:n})=>t!==e&&n===a||na));for(const{cell:e,cellWidth:t}of d)o.setAttribute("colspan",t+l,e);const u={};i>1&&(u.rowspan=i),le(l,o,o.createPositionAfter(e),u);const h=n.getAttribute("headingColumns")||0;h>a&&c("headingColumns",h+l,n,o)}}))}splitCellHorizontally(e,t=2){const o=this.editor.model,n=e.parent,i=n.parent,r=i.getChildIndex(n),l=parseInt(e.getAttribute("rowspan")||"1"),s=parseInt(e.getAttribute("colspan")||"1");o.change((o=>{if(l>1){const n=[...new w(i,{startRow:r,endRow:r+l-1,includeAllSlots:!0})],{newCellsSpan:a,updatedSpan:d}=se(l,t);c("rowspan",d,e,o);const{column:u}=n.find((({cell:t})=>t===e)),h={};a>1&&(h.rowspan=a),s>1&&(h.colspan=s);for(const e of n){const{column:t,row:n}=e;n>=r+d&&t===u&&(n+r+d)%a==0&&le(1,o,e.getPositionBefore(),h)}}if(lr){const e=i+n;o.setAttribute("rowspan",e,t)}const d={};s>1&&(d.colspan=s),re(o,i,r+1,n,1,d);const u=i.getAttribute("headingRows")||0;u>r&&c("headingRows",u+n,i,o)}}))}getColumns(e){return[...e.getChild(0).getChildren()].filter((e=>e.is("element","tableCell"))).reduce(((e,t)=>e+parseInt(t.getAttribute("colspan")||"1")),0)}getRows(e){return Array.from(e.getChildren()).reduce(((e,t)=>t.is("element","tableRow")?e+1:e),0)}createTableWalker(e,t={}){return new w(e,t)}getSelectedTableCells(e){const t=[];for(const o of this.sortRanges(e.getRanges())){const e=o.getContainedElement();e&&e.is("element","tableCell")&&t.push(e)}return t}getTableCellsContainingSelection(e){const t=[];for(const o of e.getRanges()){const e=o.start.findAncestor("tableCell");e&&t.push(e)}return t}getSelectionAffectedTableCells(e){const t=this.getSelectedTableCells(e);return t.length?t:this.getTableCellsContainingSelection(e)}getRowIndexes(e){const t=e.map((e=>e.parent.index));return this._getFirstLastIndexesObject(t)}getColumnIndexes(e){const t=e[0].findAncestor("table"),o=[...new w(t)].filter((t=>e.includes(t.cell))).map((e=>e.column));return this._getFirstLastIndexesObject(o)}isSelectionRectangular(e){if(e.length<2||!this._areCellInTheSameTableSection(e))return!1;const t=new Set,o=new Set;let n=0;for(const i of e){const{row:e,column:r}=this.getCellLocation(i),l=parseInt(i.getAttribute("rowspan"))||1,s=parseInt(i.getAttribute("colspan"))||1;t.add(e),o.add(r),l>1&&t.add(e+l-1),s>1&&o.add(r+s-1),n+=l*s}const i=function(e,t){const o=Array.from(e.values()),n=Array.from(t.values()),i=Math.max(...o),r=Math.min(...o),l=Math.max(...n),s=Math.min(...n);return(i-r+1)*(l-s+1)}(t,o);return i==n}sortRanges(e){return Array.from(e).sort(ae)}_getFirstLastIndexesObject(e){const t=e.sort(((e,t)=>e-t));return{first:t[0],last:t[t.length-1]}}_areCellInTheSameTableSection(e){const t=e[0].findAncestor("table"),o=this.getRowIndexes(e),n=parseInt(t.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(o,n))return!1;const i=this.getColumnIndexes(e),r=parseInt(t.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(i,r)}_areIndexesInSameSection({first:e,last:t},o){return e{const n=t.getSelectedTableCells(e.document.selection),i=n.shift(),{mergeWidth:r,mergeHeight:l}=function(e,t,o){let n=0,i=0;for(const e of t){const{row:t,column:r}=o.getCellLocation(e);n=he(e,r,n,"colspan"),i=he(e,t,i,"rowspan")}const{row:r,column:l}=o.getCellLocation(e),s=n-l,a=i-r;return{mergeWidth:s,mergeHeight:a}}(i,n,t);c("colspan",r,i,o),c("rowspan",l,i,o);for(const e of n)de(e,i,o);F(i.findAncestor("table"),t),o.setSelection(i,"in")}))}}function de(e,t,o){ue(e)||(ue(t)&&o.remove(o.createRangeIn(t)),o.move(o.createRangeIn(e),o.createPositionAt(t,"end"))),o.remove(e)}function ue(e){const t=e.getChild(0);return 1==e.childCount&&t.is("element","paragraph")&&t.isEmpty}function he(e,t,o,n){const i=parseInt(e.getAttribute(n)||"1");return Math.max(o,t+i)}class be extends e.Command{constructor(e){super(e),this.affectsData=!1}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){const e=this.editor.model,t=this.editor.plugins.get("TableUtils"),o=t.getSelectionAffectedTableCells(e.document.selection),n=t.getRowIndexes(o),i=o[0].findAncestor("table"),r=[];for(let t=n.first;t<=n.last;t++)for(const o of i.getChild(t).getChildren())r.push(e.createRangeOn(o));e.change((e=>{e.setSelection(r)}))}}class me extends e.Command{constructor(e){super(e),this.affectsData=!1}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){const e=this.editor.plugins.get("TableUtils"),t=this.editor.model,o=e.getSelectionAffectedTableCells(t.document.selection),n=o[0],i=o.pop(),r=n.findAncestor("table"),l=e.getCellLocation(n),s=e.getCellLocation(i),a=Math.min(l.column,s.column),c=Math.max(l.column,s.column),d=[];for(const e of new w(r,{startColumn:a,endColumn:c}))d.push(t.createRangeOn(e.cell));t.change((e=>{e.setSelection(d)}))}}function ge(e){e.document.registerPostFixer((t=>function(e,t){const o=t.document.differ.getChanges();let n=!1;const i=new Set;for(const t of o){let o=null;"insert"==t.type&&"table"==t.name&&(o=t.position.nodeAfter),"insert"!=t.type&&"remove"!=t.type||"tableRow"!=t.name&&"tableCell"!=t.name||(o=t.position.findAncestor("table")),we(t)&&(o=t.range.start.findAncestor("table")),o&&!i.has(o)&&(n=pe(o,e)||n,n=fe(o,e)||n,i.add(o))}return n}(t,e)))}function pe(e,t){let o=!1;const n=function(e){const t=parseInt(e.getAttribute("headingRows")||"0"),o=Array.from(e.getChildren()).reduce(((e,t)=>t.is("element","tableRow")?e+1:e),0),n=[];for(const{row:i,cell:r,cellHeight:l}of new w(e)){if(l<2)continue;const e=ie){const t=e-i;n.push({cell:r,rowspan:t})}}return n}(e);if(n.length){o=!0;for(const e of n)c("rowspan",e.rowspan,e.cell,t,1)}return o}function fe(e,t){let o=!1;const n=function(e){const t=new Array(e.childCount).fill(0);for(const{rowIndex:o}of new w(e,{includeAllSlots:!0}))t[o]++;return t}(e),i=[];for(const[t,o]of n.entries())!o&&e.getChild(t).is("element","tableRow")&&i.push(t);if(i.length){o=!0;for(const o of i.reverse())t.remove(e.getChild(o)),n.splice(o,1)}const r=n.filter(((t,o)=>e.getChild(o).is("element","tableRow"))),l=r[0];if(!r.every((e=>e===l))){const n=r.reduce(((e,t)=>t>e?t:e),0);for(const[i,l]of r.entries()){const r=n-l;if(r){for(let o=0;ofunction(e,t){const o=t.document.differ.getChanges();let n=!1;for(const t of o)"insert"==t.type&&"table"==t.name&&(n=ke(t.position.nodeAfter,e)||n),"insert"==t.type&&"tableRow"==t.name&&(n=ve(t.position.nodeAfter,e)||n),"insert"==t.type&&"tableCell"==t.name&&(n=Ce(t.position.nodeAfter,e)||n),"remove"!=t.type&&"insert"!=t.type||!ye(t)||(n=Ce(t.position.parent,e)||n);return n}(t,e)))}function ke(e,t){let o=!1;for(const n of e.getChildren())n.is("element","tableRow")&&(o=ve(n,t)||o);return o}function ve(e,t){let o=!1;for(const n of e.getChildren())o=Ce(n,t)||o;return o}function Ce(e,t){if(0==e.childCount)return t.insertElement("paragraph",e),!0;const o=Array.from(e.getChildren()).filter((e=>e.is("$text")));for(const e of o)t.wrap(t.createRangeOn(e),"paragraph");return!!o.length}function ye(e){return!!e.position.parent.is("element","tableCell")&&("insert"==e.type&&"$text"==e.name||"remove"==e.type)}function Ae(e,t){if(!e.is("element","paragraph"))return!1;const o=t.toViewElement(e);return!!o&&y(e)!==o.is("element","span")}var Te=o(591),xe=o.n(Te),Se=o(817),Ve={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(Se.A,Ve);Se.A.locals;class Re extends e.Plugin{static get pluginName(){return"TableEditing"}static get requires(){return[ie]}constructor(e){super(e),this._additionalSlots=[]}init(){const e=this.editor,t=e.model,o=t.schema,n=e.conversion,i=e.plugins.get(ie);o.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),o.register("tableRow",{allowIn:"table",isLimit:!0}),o.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),n.for("upcast").add((e=>{e.on("element:figure",((e,t,o)=>{if(!o.consumable.test(t.viewItem,{name:!0,classes:"table"}))return;const n=function(e){for(const t of e.getChildren())if(t.is("element","table"))return t}(t.viewItem);if(!n||!o.consumable.test(n,{name:!0}))return;o.consumable.consume(t.viewItem,{name:!0,classes:"table"});const i=o.convertItem(n,t.modelCursor),r=(0,m.first)(i.modelRange.getItems());r?(o.convertChildren(t.viewItem,o.writer.createPositionAt(r,"end")),o.updateConversionResult(r,t)):o.consumable.revert(t.viewItem,{name:!0,classes:"table"})}))})),n.for("upcast").add(g()),n.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:k(i,{asWidget:!0,additionalSlots:this._additionalSlots})}),n.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:k(i,{additionalSlots:this._additionalSlots})}),n.for("upcast").elementToElement({model:"tableRow",view:"tr"}),n.for("upcast").add((e=>{e.on("element:tr",((e,t)=>{t.viewItem.isEmpty&&0==t.modelCursor.index&&e.stop()}),{priority:"high"})})),n.for("downcast").elementToElement({model:"tableRow",view:(e,{writer:t})=>e.isEmpty?t.createEmptyElement("tr"):t.createContainerElement("tr")}),n.for("upcast").elementToElement({model:"tableCell",view:"td"}),n.for("upcast").elementToElement({model:"tableCell",view:"th"}),n.for("upcast").add(p("td")),n.for("upcast").add(p("th")),n.for("editingDowncast").elementToElement({model:"tableCell",view:v({asWidget:!0})}),n.for("dataDowncast").elementToElement({model:"tableCell",view:v()}),n.for("editingDowncast").elementToElement({model:"paragraph",view:C({asWidget:!0}),converterPriority:"high"}),n.for("dataDowncast").elementToElement({model:"paragraph",view:C(),converterPriority:"high"}),n.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),n.for("upcast").attributeToAttribute({model:{key:"colspan",value:Ie("colspan")},view:"colspan"}),n.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),n.for("upcast").attributeToAttribute({model:{key:"rowspan",value:Ie("rowspan")},view:"rowspan"}),e.config.define("table.defaultHeadings.rows",0),e.config.define("table.defaultHeadings.columns",0),e.commands.add("insertTable",new A(e)),e.commands.add("insertTableRowAbove",new T(e,{order:"above"})),e.commands.add("insertTableRowBelow",new T(e,{order:"below"})),e.commands.add("insertTableColumnLeft",new x(e,{order:"left"})),e.commands.add("insertTableColumnRight",new x(e,{order:"right"})),e.commands.add("removeTableRow",new M(e)),e.commands.add("removeTableColumn",new D(e)),e.commands.add("splitTableCellVertically",new S(e,{direction:"vertically"})),e.commands.add("splitTableCellHorizontally",new S(e,{direction:"horizontally"})),e.commands.add("mergeTableCells",new ce(e)),e.commands.add("mergeTableCellRight",new O(e,{direction:"right"})),e.commands.add("mergeTableCellLeft",new O(e,{direction:"left"})),e.commands.add("mergeTableCellDown",new O(e,{direction:"down"})),e.commands.add("mergeTableCellUp",new O(e,{direction:"up"})),e.commands.add("setTableColumnHeader",new U(e)),e.commands.add("setTableRowHeader",new H(e)),e.commands.add("selectTableRow",new be(e)),e.commands.add("selectTableColumn",new me(e)),ge(t),_e(t),this.listenTo(t.document,"change:data",(()=>{!function(e,t){const o=e.document.differ;for(const e of o.getChanges()){let o,n=!1;if("attribute"==e.type){const t=e.range.start.nodeAfter;if(!t||!t.is("element","table"))continue;if("headingRows"!=e.attributeKey&&"headingColumns"!=e.attributeKey)continue;o=t,n="headingRows"==e.attributeKey}else"tableRow"!=e.name&&"tableCell"!=e.name||(o=e.position.findAncestor("table"),n="tableRow"==e.name);if(!o)continue;const i=o.getAttribute("headingRows")||0,r=o.getAttribute("headingColumns")||0,l=new w(o);for(const e of l){const o=e.rowAe(e,t.mapper)));for(const e of o)t.reconvertItem(e)}}(t,e.editing)}))}registerAdditionalSlot(e){this._additionalSlots.push(e)}}function Ie(e){return t=>{const o=parseInt(t.getAttribute(e));return Number.isNaN(o)||o<=0?null:o}}var Pe=o(311),Ee=o(712),ze={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(Ee.A,ze);Ee.A.locals;class Be extends Pe.View{constructor(e){super(e);const t=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new m.KeystrokeHandler,this.focusTracker=new m.FocusTracker,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",((e,t)=>`${t} × ${e}`)),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":t.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:t.to("label")}]}],on:{mousedown:t.to((e=>{e.preventDefault()})),click:t.to((()=>{this.fire("execute")}))}}),this.on("boxover",((e,t)=>{const{row:o,column:n}=t.target.dataset;this.items.get(10*(parseInt(o,10)-1)+(parseInt(n,10)-1)).focus()})),this.focusTracker.on("change:focusedElement",((e,t,o)=>{if(!o)return;const{row:n,column:i}=o.dataset;this.set({rows:parseInt(n),columns:parseInt(i)})})),this.on("change:columns",(()=>this._highlightGridBoxes())),this.on("change:rows",(()=>this._highlightGridBoxes()))}render(){super.render(),(0,Pe.addKeyboardHandlingForGrid)({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const e of this.items)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element)}reset(){this.set({rows:1,columns:1})}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const e=this.rows,t=this.columns;this.items.map(((o,n)=>{const i=Math.floor(n/10){const i=t.commands.get("insertTable"),r=(0,Pe.createDropdown)(n);let l;return r.bind("isEnabled").to(i),r.buttonView.set({icon:e.icons.table,label:o("Insert table"),tooltip:!0}),r.on("change:isOpen",(()=>{l||(l=new Be(n),r.panelView.children.add(l),l.delegate("execute").to(r),r.on("execute",(()=>{t.execute("insertTable",{rows:l.rows,columns:l.columns}),t.editing.view.focus()})))})),r})),t.ui.componentFactory.add("menuBar:insertTable",(n=>{const i=t.commands.get("insertTable"),r=new Pe.MenuBarMenuView(n),l=new Be(n);return l.delegate("execute").to(r),r.on("change:isOpen",((e,t,o)=>{o||l.reset()})),l.on("execute",(()=>{t.execute("insertTable",{rows:l.rows,columns:l.columns}),t.editing.view.focus()})),r.buttonView.set({label:o("Table"),icon:e.icons.table}),r.panelView.children.add(l),r.bind("isEnabled").to(i),r})),t.ui.componentFactory.add("tableColumn",(e=>{const t=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:o("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:n?"insertTableColumnLeft":"insertTableColumnRight",label:o("Insert column left")}},{type:"button",model:{commandName:n?"insertTableColumnRight":"insertTableColumnLeft",label:o("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:o("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:o("Select column")}}];return this._prepareDropdown(o("Column"),'',t,e)})),t.ui.componentFactory.add("tableRow",(e=>{const t=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:o("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:o("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:o("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:o("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:o("Select row")}}];return this._prepareDropdown(o("Row"),'',t,e)})),t.ui.componentFactory.add("mergeTableCells",(e=>{const t=[{type:"button",model:{commandName:"mergeTableCellUp",label:o("Merge cell up")}},{type:"button",model:{commandName:n?"mergeTableCellRight":"mergeTableCellLeft",label:o("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:o("Merge cell down")}},{type:"button",model:{commandName:n?"mergeTableCellLeft":"mergeTableCellRight",label:o("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:o("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:o("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(o("Merge cells"),'',t,e)}))}_prepareDropdown(e,t,o,n){const i=this.editor,r=(0,Pe.createDropdown)(n),l=this._fillDropdownWithListOptions(r,o);return r.buttonView.set({label:e,icon:t,tooltip:!0}),r.bind("isEnabled").toMany(l,"isEnabled",((...e)=>e.some((e=>e)))),this.listenTo(r,"execute",(e=>{i.execute(e.source.commandName),e.source instanceof Pe.SwitchButtonView||i.editing.view.focus()})),r}_prepareMergeSplitButtonDropdown(e,t,o,n){const i=this.editor,r=(0,Pe.createDropdown)(n,Pe.SplitButtonView),l="mergeTableCells",s=i.commands.get(l),a=this._fillDropdownWithListOptions(r,o);return r.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),r.bind("isEnabled").toMany([s,...a],"isEnabled",((...e)=>e.some((e=>e)))),this.listenTo(r.buttonView,"execute",(()=>{i.execute(l),i.editing.view.focus()})),this.listenTo(r,"execute",(e=>{i.execute(e.source.commandName),i.editing.view.focus()})),r}_fillDropdownWithListOptions(e,t){const o=this.editor,n=[],i=new m.Collection;for(const e of t)Fe(e,o,n,i);return(0,Pe.addListToDropdown)(e,i),n}}function Fe(e,t,o,n){if("button"===e.type||"switchbutton"===e.type){const n=e.model=new Pe.ViewModel(e.model),{commandName:i,bindIsOn:r}=e.model,l=t.commands.get(i);o.push(l),n.set({commandName:i}),n.bind("isEnabled").to(l),r&&n.bind("isOn").to(l,"value"),n.set({withText:!0})}n.add(e)}var We=o(719),Ne={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(We.A,Ne);We.A.locals;class Oe extends e.Plugin{static get pluginName(){return"TableSelection"}static get requires(){return[ie,ie]}init(){const e=this.editor,t=e.model,o=e.editing.view;this.listenTo(t,"deleteContent",((e,t)=>this._handleDeleteContent(e,t)),{priority:"high"}),this.listenTo(o.document,"insertText",((e,t)=>this._handleInsertTextEvent(e,t)),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const e=this.editor.plugins.get(ie),t=this.editor.model.document.selection,o=e.getSelectedTableCells(t);return 0==o.length?null:o}getSelectionAsFragment(){const e=this.editor.plugins.get(ie),t=this.getSelectedTableCells();return t?this.editor.model.change((o=>{const n=o.createDocumentFragment(),{first:i,last:r}=e.getColumnIndexes(t),{first:l,last:s}=e.getRowIndexes(t),a=t[0].findAncestor("table");let c=s,d=r;if(e.isSelectionRectangular(t)){const e={firstColumn:i,lastColumn:r,firstRow:l,lastRow:s};c=W(a,e),d=N(a,e)}const u=V(a,{startRow:l,startColumn:i,endRow:c,endColumn:d},o);return o.insert(u,n,0),n})):null}setCellSelection(e,t){const o=this._getCellsToSelect(e,t);this.editor.model.change((e=>{e.setSelection(o.cells.map((t=>e.createRangeOn(t))),{backward:o.backward})}))}getFocusCell(){const e=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return e&&e.is("element","tableCell")?e:null}getAnchorCell(){const e=this.editor.model.document.selection,t=(0,m.first)(e.getRanges()).getContainedElement();return t&&t.is("element","tableCell")?t:null}_defineSelectionConverter(){const e=this.editor,t=new Set;e.conversion.for("editingDowncast").add((e=>e.on("selection",((e,o,n)=>{const i=n.writer;!function(e){for(const o of t)e.removeClass("ck-editor__editable_selected",o);t.clear()}(i);const r=this.getSelectedTableCells();if(!r)return;for(const e of r){const o=n.mapper.toViewElement(e);i.addClass("ck-editor__editable_selected",o),t.add(o)}const l=n.mapper.toViewElement(r[r.length-1]);i.setSelection(l,0)}),{priority:"lowest"})))}_enablePluginDisabling(){const e=this.editor;this.on("change:isEnabled",(()=>{if(!this.isEnabled){const t=this.getSelectedTableCells();if(!t)return;e.model.change((o=>{const n=o.createPositionAt(t[0],0),i=e.model.schema.getNearestSelectionRange(n);o.setSelection(i)}))}}))}_handleDeleteContent(e,t){const o=this.editor.plugins.get(ie),n=t[0],i=t[1],r=this.editor.model,l=!i||"backward"==i.direction,s=o.getSelectedTableCells(n);s.length&&(e.stop(),r.change((e=>{const t=s[l?s.length-1:0];r.change((e=>{for(const t of s)r.deleteContent(e.createSelection(t,"in"))}));const o=r.schema.getNearestSelectionRange(e.createPositionAt(t,0));n.is("documentSelection")?e.setSelection(o):n.setTo(o)})))}_handleInsertTextEvent(e,t){const o=this.editor,n=this.getSelectedTableCells();if(!n)return;const i=o.editing.view,r=o.editing.mapper,l=n.map((e=>i.createRangeOn(r.toViewElement(e))));t.selection=i.createSelection(l)}_getCellsToSelect(e,t){const o=this.editor.plugins.get("TableUtils"),n=o.getCellLocation(e),i=o.getCellLocation(t),r=Math.min(n.row,i.row),l=Math.max(n.row,i.row),s=Math.min(n.column,i.column),a=Math.max(n.column,i.column),c=new Array(l-r+1).fill(null).map((()=>[])),d={startRow:r,endRow:l,startColumn:s,endColumn:a};for(const{row:t,cell:o}of new w(e.findAncestor("table"),d))c[t-r].push(o);const u=i.rowe.reverse())),{cells:c.flat(),backward:u||h}}}var je=o(331);class Me extends e.Plugin{static get pluginName(){return"TableClipboard"}static get requires(){return[je.ClipboardMarkersUtils,je.ClipboardPipeline,Oe,ie]}init(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"copy",((e,t)=>this._onCopyCut(e,t))),this.listenTo(t,"cut",((e,t)=>this._onCopyCut(e,t))),this.listenTo(e.model,"insertContent",((e,[t,o])=>this._onInsertContent(e,t,o)),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(e,t){const o=this.editor.editing.view,n=this.editor.plugins.get(Oe),i=this.editor.plugins.get(je.ClipboardMarkersUtils);n.getSelectedTableCells()&&("cut"!=e.name||this.editor.model.canEditAt(this.editor.model.document.selection))&&(t.preventDefault(),e.stop(),this.editor.model.enqueueChange({isUndoable:"cut"===e.name},(()=>{const r=i._copySelectedFragmentWithMarkers(e.name,this.editor.model.document.selection,(()=>n.getSelectionAsFragment()));o.document.fire("clipboardOutput",{dataTransfer:t.dataTransfer,content:this.editor.data.toView(r),method:e.name})})))}_onInsertContent(e,t,o){if(o&&!o.is("documentSelection"))return;const n=this.editor.model,i=this.editor.plugins.get(ie),r=this.editor.plugins.get(je.ClipboardMarkersUtils),l=this.getTableIfOnlyTableInContent(t,n);if(!l)return;const s=i.getSelectionAffectedTableCells(n.document.selection);s.length?(e.stop(),t.is("documentFragment")?r._pasteMarkersIntoTransformedElement(t.markers,(e=>this._replaceSelectedCells(l,s,e))):this.editor.model.change((e=>{this._replaceSelectedCells(l,s,e)}))):F(l,i)}_replaceSelectedCells(e,t,o){const n=this.editor.plugins.get(ie),i={width:n.getColumns(e),height:n.getRows(e)},r=function(e,t,o,n){const i=e[0].findAncestor("table"),r=n.getColumnIndexes(e),l=n.getRowIndexes(e),s={firstColumn:r.first,lastColumn:r.last,firstRow:l.first,lastRow:l.last},a=1===e.length;a&&(s.lastRow+=t.height-1,s.lastColumn+=t.width-1,function(e,t,o,n){const i=n.getColumns(e),r=n.getRows(e);o>i&&n.insertColumns(e,{at:i,columns:o-i});t>r&&n.insertRows(e,{at:r,rows:t-r})}(i,s.lastRow+1,s.lastColumn+1,n));a||!n.isSelectionRectangular(e)?function(e,t,o){const{firstRow:n,lastRow:i,firstColumn:r,lastColumn:l}=t,s={first:n,last:i},a={first:r,last:l};He(e,r,s,o),He(e,l+1,s,o),De(e,n,a,o),De(e,i+1,a,o,n)}(i,s,o):(s.lastRow=W(i,s),s.lastColumn=N(i,s));return s}(t,i,o,n),l=r.lastRow-r.firstRow+1,s=r.lastColumn-r.firstColumn+1;e=V(e,{startRow:0,startColumn:0,endRow:Math.min(l,i.height)-1,endColumn:Math.min(s,i.width)-1},o);const a=t[0].findAncestor("table"),c=this._replaceSelectedCellsWithPasted(e,i,a,r,o);if(this.editor.plugins.get("TableSelection").isEnabled){const e=n.sortRanges(c.map((e=>o.createRangeOn(e))));o.setSelection(e)}else o.setSelection(c[0],0);return a}_replaceSelectedCellsWithPasted(e,t,o,n,i){const{width:r,height:l}=t,s=function(e,t,o){const n=new Array(o).fill(null).map((()=>new Array(t).fill(null)));for(const{column:t,row:o,cell:i}of new w(e))n[o][t]=i;return n}(e,r,l),a=[...new w(o,{startRow:n.firstRow,endRow:n.lastRow,startColumn:n.firstColumn,endColumn:n.lastColumn,includeAllSlots:!0})],c=[];let d;for(const e of a){const{row:t,column:o}=e;o===n.firstColumn&&(d=e.getPositionBefore());const a=t-n.firstRow,u=o-n.firstColumn,h=s[a%l][u%r],b=h?i.cloneElement(h):null,m=this._replaceTableSlotCell(e,b,d,i);m&&(z(m,t,o,n.lastRow,n.lastColumn,i),c.push(m),d=i.createPositionAfter(m))}const u=parseInt(o.getAttribute("headingRows")||"0"),h=parseInt(o.getAttribute("headingColumns")||"0"),b=n.firstRowUe(e,t,o))).map((({cell:e})=>I(e,t,n)))}function He(e,t,o,n){if(t<1)return;return P(e,t).filter((({row:e,cellHeight:t})=>Ue(e,t,o))).map((({cell:e,column:o})=>E(e,o,t,n)))}function Ue(e,t,o){const n=e+t-1,{first:i,last:r}=o;return e>=i&&e<=r||e=i}class $e extends e.Plugin{static get pluginName(){return"TableKeyboard"}static get requires(){return[Oe,ie]}init(){const e=this.editor,t=e.editing.view.document,o=e.t;this.listenTo(t,"arrowKey",((...e)=>this._onArrowKey(...e)),{context:"table"}),this.listenTo(t,"tab",((...e)=>this._handleTabOnSelectedTable(...e)),{context:"figure"}),this.listenTo(t,"tab",((...e)=>this._handleTab(...e)),{context:["th","td"]}),e.accessibility.addKeystrokeInfoGroup({id:"table",label:o("Keystrokes that can be used in a table cell"),keystrokes:[{label:o("Move the selection to the next cell"),keystroke:"Tab"},{label:o("Move the selection to the previous cell"),keystroke:"Shift+Tab"},{label:o("Insert a new table row (when in the last cell of a table)"),keystroke:"Tab"},{label:o("Navigate through the table"),keystroke:[["arrowup"],["arrowright"],["arrowdown"],["arrowleft"]]}]})}_handleTabOnSelectedTable(e,t){const o=this.editor,n=o.model.document.selection.getSelectedElement();n&&n.is("element","table")&&(t.preventDefault(),t.stopPropagation(),e.stop(),o.model.change((e=>{e.setSelection(e.createRangeIn(n.getChild(0).getChild(0)))})))}_handleTab(e,t){const o=this.editor,n=this.editor.plugins.get(ie),i=this.editor.plugins.get("TableSelection"),r=o.model.document.selection,l=!t.shiftKey;let s=n.getTableCellsContainingSelection(r)[0];if(s||(s=i.getFocusCell()),!s)return;t.preventDefault(),t.stopPropagation(),e.stop();const a=s.parent,c=a.parent,d=c.getChildIndex(a),u=a.getChildIndex(s),h=0===u;if(!l&&h&&0===d)return void o.model.change((e=>{e.setSelection(e.createRangeOn(c))}));const b=u===a.childCount-1,m=d===n.getRows(c)-1;if(l&&m&&b&&(o.execute("insertTableRowBelow"),d===n.getRows(c)-1))return void o.model.change((e=>{e.setSelection(e.createRangeOn(c))}));let g;if(l&&b){const e=c.getChild(d+1);g=e.getChild(0)}else if(!l&&h){const e=c.getChild(d-1);g=e.getChild(e.childCount-1)}else g=a.getChild(u+(l?1:-1));o.model.change((e=>{e.setSelection(e.createRangeIn(g))}))}_onArrowKey(e,t){const o=this.editor,n=t.keyCode,i=(0,m.getLocalizedArrowKeyCodeDirection)(n,o.locale.contentLanguageDirection);this._handleArrowKeys(i,t.shiftKey)&&(t.preventDefault(),t.stopPropagation(),e.stop())}_handleArrowKeys(e,t){const o=this.editor.plugins.get(ie),n=this.editor.plugins.get("TableSelection"),i=this.editor.model,r=i.document.selection,l=["right","down"].includes(e),s=o.getSelectedTableCells(r);if(s.length){let o;return o=t?n.getFocusCell():l?s[s.length-1]:s[0],this._navigateFromCellInDirection(o,e,t),!0}const a=r.focus.findAncestor("tableCell");if(!a)return!1;if(!r.isCollapsed)if(t){if(r.isBackward==l&&!r.containsEntireContent(a))return!1}else{const e=r.getSelectedElement();if(!e||!i.schema.isObject(e))return!1}return!!this._isSelectionAtCellEdge(r,a,l)&&(this._navigateFromCellInDirection(a,e,t),!0)}_isSelectionAtCellEdge(e,t,o){const n=this.editor.model,i=this.editor.model.schema,r=o?e.getLastPosition():e.getFirstPosition();if(!i.getLimitElement(r).is("element","tableCell")){return n.createPositionAt(t,o?"end":0).isTouching(r)}const l=n.createSelection(r);return n.modifySelection(l,{direction:o?"forward":"backward"}),r.isEqual(l.focus)}_navigateFromCellInDirection(e,t,o=!1){const n=this.editor.model,i=e.findAncestor("table"),r=[...new w(i,{includeAllSlots:!0})],{row:l,column:s}=r[r.length-1],a=r.find((({cell:t})=>t==e));let{row:c,column:d}=a;switch(t){case"left":d--;break;case"up":c--;break;case"right":d+=a.cellWidth;break;case"down":c+=a.cellHeight}if(c<0||c>l||d<0&&c<=0||d>s&&c>=l)return void n.change((e=>{e.setSelection(e.createRangeOn(i))}));d<0?(d=o?0:s,c--):d>s&&(d=o?s:0,c++);const u=r.find((e=>e.row==c&&e.column==d)).cell,h=["right","down"].includes(t),b=this.editor.plugins.get("TableSelection");if(o&&b.isEnabled){const t=b.getAnchorCell()||e;b.setCellSelection(t,u)}else{const e=n.createPositionAt(u,h?0:"end");n.change((t=>{t.setSelection(e)}))}}}var Ke=o(783);class Ge extends Ke.DomEventObserver{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(e){this.fire(e.type,e)}}class qe extends e.Plugin{static get pluginName(){return"TableMouse"}static get requires(){return[Oe,ie]}init(){this.editor.editing.view.addObserver(Ge),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const e=this.editor,t=e.plugins.get(ie);let o=!1;const n=e.plugins.get(Oe);this.listenTo(e.editing.view.document,"mousedown",((i,r)=>{const l=e.model.document.selection;if(!this.isEnabled||!n.isEnabled)return;if(!r.domEvent.shiftKey)return;const s=n.getAnchorCell()||t.getTableCellsContainingSelection(l)[0];if(!s)return;const a=this._getModelTableCellFromDomEvent(r);a&&Je(s,a)&&(o=!0,n.setCellSelection(s,a),r.preventDefault())})),this.listenTo(e.editing.view.document,"mouseup",(()=>{o=!1})),this.listenTo(e.editing.view.document,"selectionChange",(e=>{o&&e.stop()}),{priority:"highest"})}_enableMouseDragSelection(){const e=this.editor;let t,o,n=!1,i=!1;const r=e.plugins.get(Oe);this.listenTo(e.editing.view.document,"mousedown",((e,o)=>{this.isEnabled&&r.isEnabled&&(o.domEvent.shiftKey||o.domEvent.ctrlKey||o.domEvent.altKey||(t=this._getModelTableCellFromDomEvent(o)))})),this.listenTo(e.editing.view.document,"mousemove",((e,l)=>{if(!l.domEvent.buttons)return;if(!t)return;const s=this._getModelTableCellFromDomEvent(l);s&&Je(t,s)&&(o=s,n||o==t||(n=!0)),n&&(i=!0,r.setCellSelection(t,o),l.preventDefault())})),this.listenTo(e.editing.view.document,"mouseup",(()=>{n=!1,i=!1,t=null,o=null})),this.listenTo(e.editing.view.document,"selectionChange",(e=>{i&&e.stop()}),{priority:"highest"})}_getModelTableCellFromDomEvent(e){const t=e.target,o=this.editor.editing.view.createPositionAt(t,0);return this.editor.editing.mapper.toModelPosition(o).parent.findAncestor("tableCell",{includeSelf:!0})}}function Je(e,t){return e.parent.parent==t.parent.parent}var Xe=o(25),Ye={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(Xe.A,Ye);Xe.A.locals;class Qe extends e.Plugin{static get requires(){return[Re,Le,Oe,qe,$e,Me,t.Widget]}static get pluginName(){return"Table"}}class Ze extends e.Plugin{static get pluginName(){return"PlainTableOutput"}static get requires(){return[Qe]}init(){const e=this.editor;e.conversion.for("dataDowncast").elementToStructure({model:"table",view:et,converterPriority:"high"}),e.plugins.has("TableCaption")&&e.conversion.for("dataDowncast").elementToElement({model:"caption",view:(e,{writer:t})=>{if("table"===e.parent.name)return t.createContainerElement("caption")},converterPriority:"high"}),e.plugins.has("TableProperties")&&function(e){const t={"border-width":"tableBorderWidth","border-color":"tableBorderColor","border-style":"tableBorderStyle","background-color":"tableBackgroundColor"};for(const[o,n]of Object.entries(t))e.conversion.for("dataDowncast").add((e=>e.on(`attribute:${n}:table`,((e,t,n)=>{const{item:i,attributeNewValue:r}=t,{mapper:l,writer:s}=n;if(!n.consumable.consume(i,e.name))return;const a=l.toViewElement(i);r?s.setStyle(o,r,a):s.removeStyle(o,a)}),{priority:"high"})))}(e)}}function et(e,{writer:t}){const o=e.getAttribute("headingRows")||0,n=t.createSlot((e=>e.is("element","tableRow")&&e.indexe.is("element","tableRow")&&e.index>=o)),r=t.createSlot((e=>!e.is("element","tableRow"))),l=t.createContainerElement("thead",null,n),s=t.createContainerElement("tbody",null,i),a=[];return o&&a.push(l),othis._setInputValue(o)))}render(){super.render(),[this.inputView,this.dropdownView.buttonView].forEach((e=>{this.focusTracker.add(e.element),this._focusables.add(e)})),this.keystrokes.listenTo(this.element)}focus(e){-1===e?this.focusCycler.focusLast():this.focusCycler.focusFirst()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createDropdownView(){const e=this.locale,t=e.t,o=this.bindTemplate,n=this._createColorSelector(e),i=(0,Pe.createDropdown)(e),r=new Pe.View;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-input-color__button__preview"],style:{backgroundColor:o.to("value")}},children:[{tag:"span",attributes:{class:["ck","ck-input-color__button__preview__no-color-indicator",o.if("value","ck-hidden",(e=>""!=e))]}}]}),i.buttonView.extendTemplate({attributes:{class:"ck-input-color__button"}}),i.buttonView.children.add(r),i.buttonView.label=t("Color picker"),i.buttonView.tooltip=!0,i.panelPosition="rtl"===e.uiLanguageDirection?"se":"sw",i.panelView.children.add(n),i.bind("isEnabled").to(this,"isReadOnly",(e=>!e)),i.on("change:isOpen",((e,t,o)=>{o&&(n.updateSelectedColors(),n.showColorGridsFragment())})),i}_createInputTextView(){const e=this.locale,t=new Pe.InputTextView(e);return t.extendTemplate({on:{blur:t.bindTemplate.to("blur")}}),t.value=this.value,t.bind("isReadOnly","hasError").to(this),this.bind("isFocused","isEmpty").to(t),t.on("input",(()=>{const e=t.element.value,o=this.options.colorDefinitions.find((t=>e===t.label));this._stillTyping=!0,this.value=o&&o.color||e})),t.on("blur",(()=>{this._stillTyping=!1,this._setInputValue(t.element.value)})),t.delegate("input").to(this),t}_createColorSelector(e){const t=e.t,o=this.options.defaultColorValue||"",n=t(o?"Restore default":"Remove color"),i=new Pe.ColorSelectorView(e,{colors:this.options.colorDefinitions,columns:this.options.columns,removeButtonLabel:n,colorPickerLabel:t("Color picker"),colorPickerViewConfig:!1!==this.options.colorPickerConfig&&{...this.options.colorPickerConfig,hideInput:!0}});i.appendUI(),i.on("execute",((e,t)=>{"colorPickerSaveButton"!==t.source?(this.value=t.value||o,this.fire("input"),"colorPicker"!==t.source&&(this.dropdownView.isOpen=!1)):this.dropdownView.isOpen=!1}));let r=this.value;return i.on("colorPicker:cancel",(()=>{this.value=r,this.fire("input"),this.dropdownView.isOpen=!1})),i.colorGridsFragmentView.colorPickerButtonView.on("execute",(()=>{r=this.value})),i.bind("selectedColor").to(this,"value"),i}_setInputValue(e){if(!this._stillTyping){const t=ct(e),o=this.options.colorDefinitions.find((e=>t===ct(e.color)));this.inputView.value=o?o.label:e||""}}}function ct(e){return e.replace(/([(,])\s+/g,"$1").replace(/^\s+|\s+(?=[),\s]|$)/g,"").replace(/,|\s/g," ")}const dt=e=>""===e;function ut(e){return{none:e("None"),solid:e("Solid"),dotted:e("Dotted"),dashed:e("Dashed"),double:e("Double"),groove:e("Groove"),ridge:e("Ridge"),inset:e("Inset"),outset:e("Outset")}}function ht(e){return e('The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".')}function bt(e){return e('The value is invalid. Try "10px" or "2em" or simply "2".')}function mt(e){return e=e.trim().toLowerCase(),dt(e)||(0,Ke.isColor)(e)}function gt(e){return e=e.trim(),dt(e)||vt(e)||(0,Ke.isLength)(e)||(0,Ke.isPercentage)(e)}function pt(e){return e=e.trim(),dt(e)||vt(e)||(0,Ke.isLength)(e)}function ft(e,t){const o=new m.Collection,n=ut(e.t);for(const i in n){const r={type:"button",model:new Pe.ViewModel({_borderStyleValue:i,label:n[i],role:"menuitemradio",withText:!0})};"none"===i?r.model.bind("isOn").to(e,"borderStyle",(e=>"none"===t?!e:e===i)):r.model.bind("isOn").to(e,"borderStyle",(e=>e===i)),o.add(r)}return o}function wt(e){const{view:t,icons:o,toolbar:n,labels:i,propertyName:r,nameToValue:l,defaultValue:s}=e;for(const e in i){const a=new Pe.ButtonView(t.locale);a.set({label:i[e],icon:o[e],tooltip:i[e]});const c=l?l(e):e;a.bind("isOn").to(t,r,(e=>{let t=e;return""===e&&s&&(t=s),c===t})),a.on("execute",(()=>{t[r]=c})),n.items.add(a)}}const _t=[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}];function kt(e){return(t,o,n)=>{const i=new at(t.locale,{colorDefinitions:(r=e.colorConfig,r.map((e=>({color:e.model,label:e.label,options:{hasBorder:e.hasBorder}})))),columns:e.columns,defaultColorValue:e.defaultColorValue,colorPickerConfig:e.colorPickerConfig});var r;return i.inputView.set({id:o,ariaDescribedById:n}),i.bind("isReadOnly").to(t,"isEnabled",(e=>!e)),i.bind("hasError").to(t,"errorText",(e=>!!e)),i.on("input",(()=>{t.errorText=null})),t.bind("isEmpty","isFocused").to(i),i}}function vt(e){const t=parseFloat(e);return!Number.isNaN(t)&&e===String(t)}var Ct=o(839),yt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(Ct.A,yt);Ct.A.locals;class At extends Pe.View{constructor(e,t={}){super(e);const o=this.bindTemplate;this.set("class",t.class||null),this.children=this.createCollection(),t.children&&t.children.forEach((e=>this.children.add(e))),this.set("_role",null),this.set("_ariaLabelledBy",null),t.labelView&&this.set({_role:"group",_ariaLabelledBy:t.labelView.id}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",o.to("class")],role:o.to("_role"),"aria-labelledby":o.to("_ariaLabelledBy")},children:this.children})}}var Tt=o(67),xt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(Tt.A,xt);Tt.A.locals;var St=o(911),Vt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(St.A,Vt);St.A.locals;var Rt=o(266),It={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(Rt.A,It);Rt.A.locals;class Pt extends Pe.View{constructor(e,t){super(e),this.set({borderStyle:"",borderWidth:"",borderColor:"",padding:"",backgroundColor:"",width:"",height:"",horizontalAlignment:"",verticalAlignment:""}),this.options=t;const{borderStyleDropdown:o,borderWidthInput:n,borderColorInput:i,borderRowLabel:r}=this._createBorderFields(),{backgroundRowLabel:l,backgroundInput:s}=this._createBackgroundFields(),{widthInput:a,operatorLabel:c,heightInput:d,dimensionsLabel:u}=this._createDimensionFields(),{horizontalAlignmentToolbar:h,verticalAlignmentToolbar:b,alignmentLabel:g}=this._createAlignmentFields();this.focusTracker=new m.FocusTracker,this.keystrokes=new m.KeystrokeHandler,this.children=this.createCollection(),this.borderStyleDropdown=o,this.borderWidthInput=n,this.borderColorInput=i,this.backgroundInput=s,this.paddingInput=this._createPaddingField(),this.widthInput=a,this.heightInput=d,this.horizontalAlignmentToolbar=h,this.verticalAlignmentToolbar=b;const{saveButtonView:p,cancelButtonView:f}=this._createActionButtons();this.saveButtonView=p,this.cancelButtonView=f,this._focusables=new Pe.ViewCollection,this._focusCycler=new Pe.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new Pe.FormHeaderView(e,{label:this.t("Cell properties")})),this.children.add(new At(e,{labelView:r,children:[r,o,i,n],class:"ck-table-form__border-row"})),this.children.add(new At(e,{labelView:l,children:[l,s],class:"ck-table-form__background-row"})),this.children.add(new At(e,{children:[new At(e,{labelView:u,children:[u,a,c,d],class:"ck-table-form__dimensions-row"}),new At(e,{children:[this.paddingInput],class:"ck-table-cell-properties-form__padding-row"})]})),this.children.add(new At(e,{labelView:g,children:[g,h,b],class:"ck-table-cell-properties-form__alignment-row"})),this.children.add(new At(e,{children:[this.saveButtonView,this.cancelButtonView],class:"ck-table-form__action-row"})),this.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-cell-properties-form"],tabindex:"-1"},children:this.children})}render(){super.render(),(0,Pe.submitHandler)({view:this}),[this.borderColorInput,this.backgroundInput].forEach((e=>{e.fieldView.focusCycler.on("forwardCycle",(e=>{this._focusCycler.focusNext(),e.stop()})),e.fieldView.focusCycler.on("backwardCycle",(e=>{this._focusCycler.focusPrevious(),e.stop()}))})),[this.borderStyleDropdown,this.borderColorInput,this.borderWidthInput,this.backgroundInput,this.widthInput,this.heightInput,this.paddingInput,this.horizontalAlignmentToolbar,this.verticalAlignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach((e=>{this._focusables.add(e),this.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createBorderFields(){const e=this.options.defaultTableCellProperties,t={style:e.borderStyle,width:e.borderWidth,color:e.borderColor},o=kt({colorConfig:this.options.borderColors,columns:5,defaultColorValue:t.color,colorPickerConfig:this.options.colorPickerConfig}),n=this.locale,i=this.t,r=i("Style"),l=new Pe.LabelView(n);l.text=i("Border");const s=ut(i),a=new Pe.LabeledFieldView(n,Pe.createLabeledDropdown);a.set({label:r,class:"ck-table-form__border-style"}),a.fieldView.buttonView.set({ariaLabel:r,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:r}),a.fieldView.buttonView.bind("label").to(this,"borderStyle",(e=>s[e||"none"])),a.fieldView.on("execute",(e=>{this.borderStyle=e.source._borderStyleValue})),a.bind("isEmpty").to(this,"borderStyle",(e=>!e)),(0,Pe.addListToDropdown)(a.fieldView,ft(this,t.style),{role:"menu",ariaLabel:r});const c=new Pe.LabeledFieldView(n,Pe.createLabeledInputText);c.set({label:i("Width"),class:"ck-table-form__border-width"}),c.fieldView.bind("value").to(this,"borderWidth"),c.bind("isEnabled").to(this,"borderStyle",Et),c.fieldView.on("input",(()=>{this.borderWidth=c.fieldView.element.value}));const d=new Pe.LabeledFieldView(n,o);return d.set({label:i("Color"),class:"ck-table-form__border-color"}),d.fieldView.bind("value").to(this,"borderColor"),d.bind("isEnabled").to(this,"borderStyle",Et),d.fieldView.on("input",(()=>{this.borderColor=d.fieldView.value})),this.on("change:borderStyle",((e,o,n,i)=>{Et(n)||(this.borderColor="",this.borderWidth=""),Et(i)||(this.borderColor=t.color,this.borderWidth=t.width)})),{borderRowLabel:l,borderStyleDropdown:a,borderColorInput:d,borderWidthInput:c}}_createBackgroundFields(){const e=this.locale,t=this.t,o=new Pe.LabelView(e);o.text=t("Background");const n=kt({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableCellProperties.backgroundColor,colorPickerConfig:this.options.colorPickerConfig}),i=new Pe.LabeledFieldView(e,n);return i.set({label:t("Color"),class:"ck-table-cell-properties-form__background"}),i.fieldView.bind("value").to(this,"backgroundColor"),i.fieldView.on("input",(()=>{this.backgroundColor=i.fieldView.value})),{backgroundRowLabel:o,backgroundInput:i}}_createDimensionFields(){const e=this.locale,t=this.t,o=new Pe.LabelView(e);o.text=t("Dimensions");const n=new Pe.LabeledFieldView(e,Pe.createLabeledInputText);n.set({label:t("Width"),class:"ck-table-form__dimensions-row__width"}),n.fieldView.bind("value").to(this,"width"),n.fieldView.on("input",(()=>{this.width=n.fieldView.element.value}));const i=new Pe.View(e);i.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});const r=new Pe.LabeledFieldView(e,Pe.createLabeledInputText);return r.set({label:t("Height"),class:"ck-table-form__dimensions-row__height"}),r.fieldView.bind("value").to(this,"height"),r.fieldView.on("input",(()=>{this.height=r.fieldView.element.value})),{dimensionsLabel:o,widthInput:n,operatorLabel:i,heightInput:r}}_createPaddingField(){const e=this.locale,t=this.t,o=new Pe.LabeledFieldView(e,Pe.createLabeledInputText);return o.set({label:t("Padding"),class:"ck-table-cell-properties-form__padding"}),o.fieldView.bind("value").to(this,"padding"),o.fieldView.on("input",(()=>{this.padding=o.fieldView.element.value})),o}_createAlignmentFields(){const t=this.locale,o=this.t,n=new Pe.LabelView(t),i={left:e.icons.alignLeft,center:e.icons.alignCenter,right:e.icons.alignRight,justify:e.icons.alignJustify,top:e.icons.alignTop,middle:e.icons.alignMiddle,bottom:e.icons.alignBottom};n.text=o("Table cell text alignment");const r=new Pe.ToolbarView(t),l="rtl"===t.contentLanguageDirection;r.set({isCompact:!0,ariaLabel:o("Horizontal text alignment toolbar")}),wt({view:this,icons:i,toolbar:r,labels:this._horizontalAlignmentLabels,propertyName:"horizontalAlignment",nameToValue:e=>{if(l){if("left"===e)return"right";if("right"===e)return"left"}return e},defaultValue:this.options.defaultTableCellProperties.horizontalAlignment});const s=new Pe.ToolbarView(t);return s.set({isCompact:!0,ariaLabel:o("Vertical text alignment toolbar")}),wt({view:this,icons:i,toolbar:s,labels:this._verticalAlignmentLabels,propertyName:"verticalAlignment",defaultValue:this.options.defaultTableCellProperties.verticalAlignment}),{horizontalAlignmentToolbar:r,verticalAlignmentToolbar:s,alignmentLabel:n}}_createActionButtons(){const t=this.locale,o=this.t,n=new Pe.ButtonView(t),i=new Pe.ButtonView(t),r=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.paddingInput];return n.set({label:o("Save"),icon:e.icons.check,class:"ck-button-save",type:"submit",withText:!0}),n.bind("isEnabled").toMany(r,"errorText",((...e)=>e.every((e=>!e)))),i.set({label:o("Cancel"),icon:e.icons.cancel,class:"ck-button-cancel",withText:!0}),i.delegate("execute").to(this,"cancel"),{saveButtonView:n,cancelButtonView:i}}get _horizontalAlignmentLabels(){const e=this.locale,t=this.t,o=t("Align cell text to the left"),n=t("Align cell text to the center"),i=t("Align cell text to the right"),r=t("Justify cell text");return"rtl"===e.uiLanguageDirection?{right:i,center:n,left:o,justify:r}:{left:o,center:n,right:i,justify:r}}get _verticalAlignmentLabels(){const e=this.t;return{top:e("Align cell text to the top"),middle:e("Align cell text to the middle"),bottom:e("Align cell text to the bottom")}}}function Et(e){return"none"!==e}const zt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const Bt="object"==typeof global&&global&&global.Object===Object&&global;var Lt="object"==typeof self&&self&&self.Object===Object&&self;const Ft=Bt||Lt||Function("return this")();const Wt=function(){return Ft.Date.now()};var Nt=/\s/;const Ot=function(e){for(var t=e.length;t--&&Nt.test(e.charAt(t)););return t};var jt=/^\s+/;const Mt=function(e){return e?e.slice(0,Ot(e)+1).replace(jt,""):e};const Dt=Ft.Symbol;var Ht=Object.prototype,Ut=Ht.hasOwnProperty,$t=Ht.toString,Kt=Dt?Dt.toStringTag:void 0;const Gt=function(e){var t=Ut.call(e,Kt),o=e[Kt];try{e[Kt]=void 0;var n=!0}catch(e){}var i=$t.call(e);return n&&(t?e[Kt]=o:delete e[Kt]),i};var qt=Object.prototype.toString;const Jt=function(e){return qt.call(e)};var Xt=Dt?Dt.toStringTag:void 0;const Yt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Xt&&Xt in Object(e)?Gt(e):Jt(e)};const Qt=function(e){return null!=e&&"object"==typeof e};const Zt=function(e){return"symbol"==typeof e||Qt(e)&&"[object Symbol]"==Yt(e)};var eo=/^[-+]0x[0-9a-f]+$/i,to=/^0b[01]+$/i,oo=/^0o[0-7]+$/i,no=parseInt;const io=function(e){if("number"==typeof e)return e;if(Zt(e))return NaN;if(zt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=zt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Mt(e);var o=to.test(e);return o||oo.test(e)?no(e.slice(2),o?2:8):eo.test(e)?NaN:+e};var ro=Math.max,lo=Math.min;const so=function(e,t,o){var n,i,r,l,s,a,c=0,d=!1,u=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var o=n,r=i;return n=i=void 0,c=t,l=e.apply(r,o)}function m(e){var o=e-a;return void 0===a||o>=t||o<0||u&&e-c>=r}function g(){var e=Wt();if(m(e))return p(e);s=setTimeout(g,function(e){var o=t-(e-a);return u?lo(o,r-(e-c)):o}(e))}function p(e){return s=void 0,h&&n?b(e):(n=i=void 0,l)}function f(){var e=Wt(),o=m(e);if(n=arguments,i=this,a=e,o){if(void 0===s)return function(e){return c=e,s=setTimeout(g,t),d?b(e):l}(a);if(u)return clearTimeout(s),s=setTimeout(g,t),b(a)}return void 0===s&&(s=setTimeout(g,t)),l}return t=io(t)||0,zt(o)&&(d=!!o.leading,r=(u="maxWait"in o)?ro(io(o.maxWait)||0,t):r,h="trailing"in o?!!o.trailing:h),f.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=a=i=s=void 0},f.flush=function(){return void 0===s?l:p(Wt())},f},ao=(()=>[Pe.BalloonPanelView.defaultPositions.northArrowSouth,Pe.BalloonPanelView.defaultPositions.northArrowSouthWest,Pe.BalloonPanelView.defaultPositions.northArrowSouthEast,Pe.BalloonPanelView.defaultPositions.southArrowNorth,Pe.BalloonPanelView.defaultPositions.southArrowNorthWest,Pe.BalloonPanelView.defaultPositions.southArrowNorthEast,Pe.BalloonPanelView.defaultPositions.viewportStickyNorth])();function co(e,t){const o=e.plugins.get("ContextualBalloon"),n=e.editing.view.document.selection;let i;"cell"===t?nt(n)&&(i=ho(e)):tt(n)&&(i=uo(e)),i&&o.updatePosition(i)}function uo(e){const t=b(e.model.document.selection),o=e.editing.mapper.toViewElement(t);return{target:e.editing.view.domConverter.mapViewToDom(o),positions:ao}}function ho(e){const t=e.editing.mapper,o=e.editing.view.domConverter,n=e.model.document.selection;if(n.rangeCount>1)return{target:()=>function(e,t){const o=t.editing.mapper,n=t.editing.view.domConverter,i=Array.from(e).map((e=>{const t=bo(e.start),i=o.toViewElement(t);return new m.Rect(n.mapViewToDom(i))}));return m.Rect.getBoundingRect(i)}(n.getRanges(),e),positions:ao};const i=bo(n.getFirstPosition()),r=t.toViewElement(i);return{target:o.mapViewToDom(r),positions:ao}}function bo(e){return e.nodeAfter&&e.nodeAfter.is("element","tableCell")?e.nodeAfter:e.findAncestor("tableCell")}function mo(e){if(!e||!zt(e))return e;const{top:t,right:o,bottom:n,left:i}=e;return t==o&&o==n&&n==i?t:void 0}function go(e,t){const o=parseFloat(e);return Number.isNaN(o)||String(o)!==String(e)?e:`${o}${t}`}function po(e,t={}){const o={borderStyle:"none",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:"",...e};return t.includeAlignmentProperty&&!o.alignment&&(o.alignment="center"),t.includePaddingProperty&&!o.padding&&(o.padding=""),t.includeVerticalAlignmentProperty&&!o.verticalAlignment&&(o.verticalAlignment="middle"),t.includeHorizontalAlignmentProperty&&!o.horizontalAlignment&&(o.horizontalAlignment=t.isRightToLeftContent?"right":"left"),o}const fo={borderStyle:"tableCellBorderStyle",borderColor:"tableCellBorderColor",borderWidth:"tableCellBorderWidth",height:"tableCellHeight",width:"tableCellWidth",padding:"tableCellPadding",backgroundColor:"tableCellBackgroundColor",horizontalAlignment:"tableCellHorizontalAlignment",verticalAlignment:"tableCellVerticalAlignment"};class wo extends e.Plugin{static get requires(){return[Pe.ContextualBalloon]}static get pluginName(){return"TableCellPropertiesUI"}constructor(e){super(e),e.config.define("table.tableCellProperties",{borderColors:_t,backgroundColors:_t})}init(){const e=this.editor,t=e.t;this._defaultTableCellProperties=po(e.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:"rtl"===e.locale.contentLanguageDirection}),this._balloon=e.plugins.get(Pe.ContextualBalloon),this.view=null,this._isReady=!1,e.ui.componentFactory.add("tableCellProperties",(o=>{const n=new Pe.ButtonView(o);n.set({label:t("Cell properties"),icon:'',tooltip:!0}),this.listenTo(n,"execute",(()=>this._showView()));const i=Object.values(fo).map((t=>e.commands.get(t)));return n.bind("isEnabled").toMany(i,"isEnabled",((...e)=>e.some((e=>e)))),n}))}destroy(){super.destroy(),this.view&&this.view.destroy()}_createPropertiesView(){const e=this.editor,t=e.config.get("table.tableCellProperties"),o=(0,Pe.normalizeColorOptions)(t.borderColors),n=(0,Pe.getLocalizedColorOptions)(e.locale,o),i=(0,Pe.normalizeColorOptions)(t.backgroundColors),r=(0,Pe.getLocalizedColorOptions)(e.locale,i),l=!1!==t.colorPicker,s=new Pt(e.locale,{borderColors:n,backgroundColors:r,defaultTableCellProperties:this._defaultTableCellProperties,colorPickerConfig:!!l&&(t.colorPicker||{})}),a=e.t;s.render(),this.listenTo(s,"submit",(()=>{this._hideView()})),this.listenTo(s,"cancel",(()=>{this._undoStepBatch.operations.length&&e.execute("undo",this._undoStepBatch),this._hideView()})),s.keystrokes.set("Esc",((e,t)=>{this._hideView(),t()})),(0,Pe.clickOutsideHandler)({emitter:s,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const c=ht(a),d=bt(a);return s.on("change:borderStyle",this._getPropertyChangeCallback("tableCellBorderStyle")),s.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:s.borderColorInput,commandName:"tableCellBorderColor",errorText:c,validator:mt})),s.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:s.borderWidthInput,commandName:"tableCellBorderWidth",errorText:d,validator:pt})),s.on("change:padding",this._getValidatedPropertyChangeCallback({viewField:s.paddingInput,commandName:"tableCellPadding",errorText:d,validator:gt})),s.on("change:width",this._getValidatedPropertyChangeCallback({viewField:s.widthInput,commandName:"tableCellWidth",errorText:d,validator:gt})),s.on("change:height",this._getValidatedPropertyChangeCallback({viewField:s.heightInput,commandName:"tableCellHeight",errorText:d,validator:gt})),s.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:s.backgroundInput,commandName:"tableCellBackgroundColor",errorText:c,validator:mt})),s.on("change:horizontalAlignment",this._getPropertyChangeCallback("tableCellHorizontalAlignment")),s.on("change:verticalAlignment",this._getPropertyChangeCallback("tableCellVerticalAlignment")),s}_fillViewFormFromCommandValues(){const e=this.editor.commands,t=e.get("tableCellBorderStyle");Object.entries(fo).map((([t,o])=>{const n=this._defaultTableCellProperties[t]||"";return[t,e.get(o).value||n]})).forEach((([e,o])=>{("borderColor"!==e&&"borderWidth"!==e||"none"!==t.value)&&this.view.set(e,o)})),this._isReady=!0}_showView(){const e=this.editor;this.view||(this.view=this._createPropertiesView()),this.listenTo(e.ui,"update",(()=>{this._updateView()})),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:ho(e)}),this._undoStepBatch=e.model.createBatch(),this.view.focus()}_hideView(){const e=this.editor;this.stopListening(e.ui,"update"),this._isReady=!1,this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}_updateView(){const e=this.editor;nt(e.editing.view.document.selection)?this._isViewVisible&&co(e,"cell"):this._hideView()}get _isViewVisible(){return!!this.view&&this._balloon.visibleView===this.view}get _isViewInBalloon(){return!!this.view&&this._balloon.hasView(this.view)}_getPropertyChangeCallback(e){return(t,o,n)=>{this._isReady&&this.editor.execute(e,{value:n,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback(e){const{commandName:t,viewField:o,validator:n,errorText:i}=e,r=so((()=>{o.errorText=i}),500);return(e,i,l)=>{r.cancel(),this._isReady&&(n(l)?(this.editor.execute(t,{value:l,batch:this._undoStepBatch}),o.errorText=null):r())}}}class _o extends e.Command{constructor(e,t,o){super(e),this.attributeName=t,this._defaultValue=o}refresh(){const e=this.editor,t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e.model.document.selection);this.isEnabled=!!t.length,this.value=this._getSingleValue(t)}execute(e={}){const{value:t,batch:o}=e,n=this.editor.model,i=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(n.document.selection),r=this._getValueToSet(t);n.enqueueChange(o,(e=>{r?i.forEach((t=>e.setAttribute(this.attributeName,r,t))):i.forEach((t=>e.removeAttribute(this.attributeName,t)))}))}_getAttribute(e){if(!e)return;const t=e.getAttribute(this.attributeName);return t!==this._defaultValue?t:void 0}_getValueToSet(e){if(e!==this._defaultValue)return e}_getSingleValue(e){const t=this._getAttribute(e[0]);return e.every((e=>this._getAttribute(e)===t))?t:void 0}}class ko extends _o{constructor(e,t){super(e,"tableCellWidth",t)}_getValueToSet(e){if((e=go(e,"px"))!==this._defaultValue)return e}}class vo extends e.Plugin{static get pluginName(){return"TableCellWidthEditing"}static get requires(){return[Re]}init(){const e=this.editor,t=po(e.config.get("table.tableCellProperties.defaultProperties"));h(e.model.schema,e.conversion,{modelAttribute:"tableCellWidth",styleName:"width",defaultValue:t.width}),e.commands.add("tableCellWidth",new ko(e,t.width))}}class Co extends _o{constructor(e,t){super(e,"tableCellPadding",t)}_getAttribute(e){if(!e)return;const t=mo(e.getAttribute(this.attributeName));return t!==this._defaultValue?t:void 0}_getValueToSet(e){const t=go(e,"px");if(t!==this._defaultValue)return t}}class yo extends _o{constructor(e,t){super(e,"tableCellHeight",t)}_getValueToSet(e){const t=go(e,"px");if(t!==this._defaultValue)return t}}class Ao extends _o{constructor(e,t){super(e,"tableCellBackgroundColor",t)}}class To extends _o{constructor(e,t){super(e,"tableCellVerticalAlignment",t)}}class xo extends _o{constructor(e,t){super(e,"tableCellHorizontalAlignment",t)}}class So extends _o{constructor(e,t){super(e,"tableCellBorderStyle",t)}_getAttribute(e){if(!e)return;const t=mo(e.getAttribute(this.attributeName));return t!==this._defaultValue?t:void 0}}class Vo extends _o{constructor(e,t){super(e,"tableCellBorderColor",t)}_getAttribute(e){if(!e)return;const t=mo(e.getAttribute(this.attributeName));return t!==this._defaultValue?t:void 0}}class Ro extends _o{constructor(e,t){super(e,"tableCellBorderWidth",t)}_getAttribute(e){if(!e)return;const t=mo(e.getAttribute(this.attributeName));return t!==this._defaultValue?t:void 0}_getValueToSet(e){const t=go(e,"px");if(t!==this._defaultValue)return t}}const Io=/^(top|middle|bottom)$/,Po=/^(left|center|right|justify)$/;class Eo extends e.Plugin{static get pluginName(){return"TableCellPropertiesEditing"}static get requires(){return[Re,vo]}init(){const e=this.editor,t=e.model.schema,o=e.conversion;e.config.define("table.tableCellProperties.defaultProperties",{});const n=po(e.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:"rtl"===e.locale.contentLanguageDirection});e.data.addStyleProcessorRules(Ke.addBorderRules),function(e,t,o){const n={width:"tableCellBorderWidth",color:"tableCellBorderColor",style:"tableCellBorderStyle"};e.extend("tableCell",{allowAttributes:Object.values(n)}),r(t,"td",n,o),r(t,"th",n,o),l(t,{modelElement:"tableCell",modelAttribute:n.style,styleName:"border-style"}),l(t,{modelElement:"tableCell",modelAttribute:n.color,styleName:"border-color"}),l(t,{modelElement:"tableCell",modelAttribute:n.width,styleName:"border-width"})}(t,o,{color:n.borderColor,style:n.borderStyle,width:n.borderWidth}),e.commands.add("tableCellBorderStyle",new So(e,n.borderStyle)),e.commands.add("tableCellBorderColor",new Vo(e,n.borderColor)),e.commands.add("tableCellBorderWidth",new Ro(e,n.borderWidth)),h(t,o,{modelAttribute:"tableCellHeight",styleName:"height",defaultValue:n.height}),e.commands.add("tableCellHeight",new yo(e,n.height)),e.data.addStyleProcessorRules(Ke.addPaddingRules),h(t,o,{modelAttribute:"tableCellPadding",styleName:"padding",reduceBoxSides:!0,defaultValue:n.padding}),e.commands.add("tableCellPadding",new Co(e,n.padding)),e.data.addStyleProcessorRules(Ke.addBackgroundRules),h(t,o,{modelAttribute:"tableCellBackgroundColor",styleName:"background-color",defaultValue:n.backgroundColor}),e.commands.add("tableCellBackgroundColor",new Ao(e,n.backgroundColor)),function(e,t,o){e.extend("tableCell",{allowAttributes:["tableCellHorizontalAlignment"]}),t.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellHorizontalAlignment"},view:e=>({key:"style",value:{"text-align":e}})}),t.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"text-align":Po}},model:{key:"tableCellHorizontalAlignment",value:e=>{const t=e.getStyle("text-align");return t===o?null:t}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{align:Po}},model:{key:"tableCellHorizontalAlignment",value:e=>{const t=e.getAttribute("align");return t===o?null:t}}})}(t,o,n.horizontalAlignment),e.commands.add("tableCellHorizontalAlignment",new xo(e,n.horizontalAlignment)),function(e,t,o){e.extend("tableCell",{allowAttributes:["tableCellVerticalAlignment"]}),t.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellVerticalAlignment"},view:e=>({key:"style",value:{"vertical-align":e}})}),t.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"vertical-align":Io}},model:{key:"tableCellVerticalAlignment",value:e=>{const t=e.getStyle("vertical-align");return t===o?null:t}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{valign:Io}},model:{key:"tableCellVerticalAlignment",value:e=>{const t=e.getAttribute("valign");return t===o?null:t}}})}(t,o,n.verticalAlignment),e.commands.add("tableCellVerticalAlignment",new To(e,n.verticalAlignment))}}class zo extends e.Plugin{static get pluginName(){return"TableCellProperties"}static get requires(){return[Eo,wo]}}class Bo extends e.Command{constructor(e,t,o){super(e),this.attributeName=t,this._defaultValue=o}refresh(){const e=b(this.editor.model.document.selection);this.isEnabled=!!e,this.value=this._getValue(e)}execute(e={}){const t=this.editor.model,o=t.document.selection,{value:n,batch:i}=e,r=b(o),l=this._getValueToSet(n);t.enqueueChange(i,(e=>{l?e.setAttribute(this.attributeName,l,r):e.removeAttribute(this.attributeName,r)}))}_getValue(e){if(!e)return;const t=e.getAttribute(this.attributeName);return t!==this._defaultValue?t:void 0}_getValueToSet(e){if(e!==this._defaultValue)return e}}class Lo extends Bo{constructor(e,t){super(e,"tableBackgroundColor",t)}}class Fo extends Bo{constructor(e,t){super(e,"tableBorderColor",t)}_getValue(e){if(!e)return;const t=mo(e.getAttribute(this.attributeName));return t!==this._defaultValue?t:void 0}}class Wo extends Bo{constructor(e,t){super(e,"tableBorderStyle",t)}_getValue(e){if(!e)return;const t=mo(e.getAttribute(this.attributeName));return t!==this._defaultValue?t:void 0}}class No extends Bo{constructor(e,t){super(e,"tableBorderWidth",t)}_getValue(e){if(!e)return;const t=mo(e.getAttribute(this.attributeName));return t!==this._defaultValue?t:void 0}_getValueToSet(e){const t=go(e,"px");if(t!==this._defaultValue)return t}}class Oo extends Bo{constructor(e,t){super(e,"tableWidth",t)}_getValueToSet(e){if((e=go(e,"px"))!==this._defaultValue)return e}}class jo extends Bo{constructor(e,t){super(e,"tableHeight",t)}_getValueToSet(e){if((e=go(e,"px"))!==this._defaultValue)return e}}class Mo extends Bo{constructor(e,t){super(e,"tableAlignment",t)}}const Do=/^(left|center|right)$/,Ho=/^(left|none|right)$/;class Uo extends e.Plugin{static get pluginName(){return"TablePropertiesEditing"}static get requires(){return[Re]}init(){const e=this.editor,t=e.model.schema,o=e.conversion;e.config.define("table.tableProperties.defaultProperties",{});const n=po(e.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0});e.data.addStyleProcessorRules(Ke.addBorderRules),function(e,t,o){const n={width:"tableBorderWidth",color:"tableBorderColor",style:"tableBorderStyle"};e.extend("table",{allowAttributes:Object.values(n)}),r(t,"table",n,o),s(t,{modelAttribute:n.color,styleName:"border-color"}),s(t,{modelAttribute:n.style,styleName:"border-style"}),s(t,{modelAttribute:n.width,styleName:"border-width"})}(t,o,{color:n.borderColor,style:n.borderStyle,width:n.borderWidth}),e.commands.add("tableBorderColor",new Fo(e,n.borderColor)),e.commands.add("tableBorderStyle",new Wo(e,n.borderStyle)),e.commands.add("tableBorderWidth",new No(e,n.borderWidth)),function(e,t,o){e.extend("table",{allowAttributes:["tableAlignment"]}),t.for("downcast").attributeToAttribute({model:{name:"table",key:"tableAlignment"},view:e=>({key:"style",value:{float:"center"===e?"none":e}}),converterPriority:"high"}),t.for("upcast").attributeToAttribute({view:{name:/^(table|figure)$/,styles:{float:Ho}},model:{key:"tableAlignment",value:e=>{let t=e.getStyle("float");return"none"===t&&(t="center"),t===o?null:t}}}).attributeToAttribute({view:{attributes:{align:Do}},model:{name:"table",key:"tableAlignment",value:e=>{const t=e.getAttribute("align");return t===o?null:t}}})}(t,o,n.alignment),e.commands.add("tableAlignment",new Mo(e,n.alignment)),$o(t,o,{modelAttribute:"tableWidth",styleName:"width",defaultValue:n.width}),e.commands.add("tableWidth",new Oo(e,n.width)),$o(t,o,{modelAttribute:"tableHeight",styleName:"height",defaultValue:n.height}),e.commands.add("tableHeight",new jo(e,n.height)),e.data.addStyleProcessorRules(Ke.addBackgroundRules),function(e,t,o){const{modelAttribute:n}=o;e.extend("table",{allowAttributes:[n]}),i(t,{viewElement:"table",...o}),s(t,o)}(t,o,{modelAttribute:"tableBackgroundColor",styleName:"background-color",defaultValue:n.backgroundColor}),e.commands.add("tableBackgroundColor",new Lo(e,n.backgroundColor))}}function $o(e,t,o){const{modelAttribute:n}=o;e.extend("table",{allowAttributes:[n]}),i(t,{viewElement:/^(table|figure)$/,shouldUpcast:e=>!("table"==e.name&&"figure"==e.parent.name),...o}),l(t,{modelElement:"table",...o})}var Ko=o(218),Go={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(Ko.A,Go);Ko.A.locals;class qo extends Pe.View{constructor(e,t){super(e),this.set({borderStyle:"",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:"",alignment:""}),this.options=t;const{borderStyleDropdown:o,borderWidthInput:n,borderColorInput:i,borderRowLabel:r}=this._createBorderFields(),{backgroundRowLabel:l,backgroundInput:s}=this._createBackgroundFields(),{widthInput:a,operatorLabel:c,heightInput:d,dimensionsLabel:u}=this._createDimensionFields(),{alignmentToolbar:h,alignmentLabel:b}=this._createAlignmentFields();this.focusTracker=new m.FocusTracker,this.keystrokes=new m.KeystrokeHandler,this.children=this.createCollection(),this.borderStyleDropdown=o,this.borderWidthInput=n,this.borderColorInput=i,this.backgroundInput=s,this.widthInput=a,this.heightInput=d,this.alignmentToolbar=h;const{saveButtonView:g,cancelButtonView:p}=this._createActionButtons();this.saveButtonView=g,this.cancelButtonView=p,this._focusables=new Pe.ViewCollection,this._focusCycler=new Pe.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new Pe.FormHeaderView(e,{label:this.t("Table properties")})),this.children.add(new At(e,{labelView:r,children:[r,o,i,n],class:"ck-table-form__border-row"})),this.children.add(new At(e,{labelView:l,children:[l,s],class:"ck-table-form__background-row"})),this.children.add(new At(e,{children:[new At(e,{labelView:u,children:[u,a,c,d],class:"ck-table-form__dimensions-row"}),new At(e,{labelView:b,children:[b,h],class:"ck-table-properties-form__alignment-row"})]})),this.children.add(new At(e,{children:[this.saveButtonView,this.cancelButtonView],class:"ck-table-form__action-row"})),this.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-properties-form"],tabindex:"-1"},children:this.children})}render(){super.render(),(0,Pe.submitHandler)({view:this}),[this.borderColorInput,this.backgroundInput].forEach((e=>{e.fieldView.focusCycler.on("forwardCycle",(e=>{this._focusCycler.focusNext(),e.stop()})),e.fieldView.focusCycler.on("backwardCycle",(e=>{this._focusCycler.focusPrevious(),e.stop()}))})),[this.borderStyleDropdown,this.borderColorInput,this.borderWidthInput,this.backgroundInput,this.widthInput,this.heightInput,this.alignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach((e=>{this._focusables.add(e),this.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createBorderFields(){const e=this.options.defaultTableProperties,t={style:e.borderStyle,width:e.borderWidth,color:e.borderColor},o=kt({colorConfig:this.options.borderColors,columns:5,defaultColorValue:t.color,colorPickerConfig:this.options.colorPickerConfig}),n=this.locale,i=this.t,r=i("Style"),l=new Pe.LabelView(n);l.text=i("Border");const s=ut(i),a=new Pe.LabeledFieldView(n,Pe.createLabeledDropdown);a.set({label:r,class:"ck-table-form__border-style"}),a.fieldView.buttonView.set({ariaLabel:r,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:r}),a.fieldView.buttonView.bind("label").to(this,"borderStyle",(e=>s[e||"none"])),a.fieldView.on("execute",(e=>{this.borderStyle=e.source._borderStyleValue})),a.bind("isEmpty").to(this,"borderStyle",(e=>!e)),(0,Pe.addListToDropdown)(a.fieldView,ft(this,t.style),{role:"menu",ariaLabel:r});const c=new Pe.LabeledFieldView(n,Pe.createLabeledInputText);c.set({label:i("Width"),class:"ck-table-form__border-width"}),c.fieldView.bind("value").to(this,"borderWidth"),c.bind("isEnabled").to(this,"borderStyle",Jo),c.fieldView.on("input",(()=>{this.borderWidth=c.fieldView.element.value}));const d=new Pe.LabeledFieldView(n,o);return d.set({label:i("Color"),class:"ck-table-form__border-color"}),d.fieldView.bind("value").to(this,"borderColor"),d.bind("isEnabled").to(this,"borderStyle",Jo),d.fieldView.on("input",(()=>{this.borderColor=d.fieldView.value})),this.on("change:borderStyle",((e,o,n,i)=>{Jo(n)||(this.borderColor="",this.borderWidth=""),Jo(i)||(this.borderColor=t.color,this.borderWidth=t.width)})),{borderRowLabel:l,borderStyleDropdown:a,borderColorInput:d,borderWidthInput:c}}_createBackgroundFields(){const e=this.locale,t=this.t,o=new Pe.LabelView(e);o.text=t("Background");const n=kt({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableProperties.backgroundColor,colorPickerConfig:this.options.colorPickerConfig}),i=new Pe.LabeledFieldView(e,n);return i.set({label:t("Color"),class:"ck-table-properties-form__background"}),i.fieldView.bind("value").to(this,"backgroundColor"),i.fieldView.on("input",(()=>{this.backgroundColor=i.fieldView.value})),{backgroundRowLabel:o,backgroundInput:i}}_createDimensionFields(){const e=this.locale,t=this.t,o=new Pe.LabelView(e);o.text=t("Dimensions");const n=new Pe.LabeledFieldView(e,Pe.createLabeledInputText);n.set({label:t("Width"),class:"ck-table-form__dimensions-row__width"}),n.fieldView.bind("value").to(this,"width"),n.fieldView.on("input",(()=>{this.width=n.fieldView.element.value}));const i=new Pe.View(e);i.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});const r=new Pe.LabeledFieldView(e,Pe.createLabeledInputText);return r.set({label:t("Height"),class:"ck-table-form__dimensions-row__height"}),r.fieldView.bind("value").to(this,"height"),r.fieldView.on("input",(()=>{this.height=r.fieldView.element.value})),{dimensionsLabel:o,widthInput:n,operatorLabel:i,heightInput:r}}_createAlignmentFields(){const t=this.locale,o=this.t,n=new Pe.LabelView(t);n.text=o("Alignment");const i=new Pe.ToolbarView(t);return i.set({isCompact:!0,ariaLabel:o("Table alignment toolbar")}),wt({view:this,icons:{left:e.icons.objectLeft,center:e.icons.objectCenter,right:e.icons.objectRight},toolbar:i,labels:this._alignmentLabels,propertyName:"alignment",defaultValue:this.options.defaultTableProperties.alignment}),{alignmentLabel:n,alignmentToolbar:i}}_createActionButtons(){const t=this.locale,o=this.t,n=new Pe.ButtonView(t),i=new Pe.ButtonView(t),r=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.widthInput,this.heightInput];return n.set({label:o("Save"),icon:e.icons.check,class:"ck-button-save",type:"submit",withText:!0}),n.bind("isEnabled").toMany(r,"errorText",((...e)=>e.every((e=>!e)))),i.set({label:o("Cancel"),icon:e.icons.cancel,class:"ck-button-cancel",withText:!0}),i.delegate("execute").to(this,"cancel"),{saveButtonView:n,cancelButtonView:i}}get _alignmentLabels(){const e=this.locale,t=this.t,o=t("Align table to the left"),n=t("Center table"),i=t("Align table to the right");return"rtl"===e.uiLanguageDirection?{right:i,center:n,left:o}:{left:o,center:n,right:i}}}function Jo(e){return"none"!==e}const Xo={borderStyle:"tableBorderStyle",borderColor:"tableBorderColor",borderWidth:"tableBorderWidth",backgroundColor:"tableBackgroundColor",width:"tableWidth",height:"tableHeight",alignment:"tableAlignment"};class Yo extends e.Plugin{static get requires(){return[Pe.ContextualBalloon]}static get pluginName(){return"TablePropertiesUI"}constructor(e){super(e),this.view=null,e.config.define("table.tableProperties",{borderColors:_t,backgroundColors:_t})}init(){const e=this.editor,t=e.t;this._defaultTableProperties=po(e.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0}),this._balloon=e.plugins.get(Pe.ContextualBalloon),e.ui.componentFactory.add("tableProperties",(o=>{const n=new Pe.ButtonView(o);n.set({label:t("Table properties"),icon:'',tooltip:!0}),this.listenTo(n,"execute",(()=>this._showView()));const i=Object.values(Xo).map((t=>e.commands.get(t)));return n.bind("isEnabled").toMany(i,"isEnabled",((...e)=>e.some((e=>e)))),n}))}destroy(){super.destroy(),this.view&&this.view.destroy()}_createPropertiesView(){const e=this.editor,t=e.config.get("table.tableProperties"),o=(0,Pe.normalizeColorOptions)(t.borderColors),n=(0,Pe.getLocalizedColorOptions)(e.locale,o),i=(0,Pe.normalizeColorOptions)(t.backgroundColors),r=(0,Pe.getLocalizedColorOptions)(e.locale,i),l=!1!==t.colorPicker,s=new qo(e.locale,{borderColors:n,backgroundColors:r,defaultTableProperties:this._defaultTableProperties,colorPickerConfig:!!l&&(t.colorPicker||{})}),a=e.t;s.render(),this.listenTo(s,"submit",(()=>{this._hideView()})),this.listenTo(s,"cancel",(()=>{this._undoStepBatch.operations.length&&e.execute("undo",this._undoStepBatch),this._hideView()})),s.keystrokes.set("Esc",((e,t)=>{this._hideView(),t()})),(0,Pe.clickOutsideHandler)({emitter:s,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const c=ht(a),d=bt(a);return s.on("change:borderStyle",this._getPropertyChangeCallback("tableBorderStyle")),s.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:s.borderColorInput,commandName:"tableBorderColor",errorText:c,validator:mt})),s.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:s.borderWidthInput,commandName:"tableBorderWidth",errorText:d,validator:pt})),s.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:s.backgroundInput,commandName:"tableBackgroundColor",errorText:c,validator:mt})),s.on("change:width",this._getValidatedPropertyChangeCallback({viewField:s.widthInput,commandName:"tableWidth",errorText:d,validator:gt})),s.on("change:height",this._getValidatedPropertyChangeCallback({viewField:s.heightInput,commandName:"tableHeight",errorText:d,validator:gt})),s.on("change:alignment",this._getPropertyChangeCallback("tableAlignment")),s}_fillViewFormFromCommandValues(){const e=this.editor.commands,t=e.get("tableBorderStyle");Object.entries(Xo).map((([t,o])=>{const n=t,i=this._defaultTableProperties[n]||"";return[n,e.get(o).value||i]})).forEach((([e,o])=>{("borderColor"!==e&&"borderWidth"!==e||"none"!==t.value)&&this.view.set(e,o)})),this._isReady=!0}_showView(){const e=this.editor;this.view||(this.view=this._createPropertiesView()),this.listenTo(e.ui,"update",(()=>{this._updateView()})),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:uo(e)}),this._undoStepBatch=e.model.createBatch(),this.view.focus()}_hideView(){const e=this.editor;this.stopListening(e.ui,"update"),this._isReady=!1,this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}_updateView(){const e=this.editor;tt(e.editing.view.document.selection)?this._isViewVisible&&co(e,"table"):this._hideView()}get _isViewVisible(){return!!this.view&&this._balloon.visibleView===this.view}get _isViewInBalloon(){return!!this.view&&this._balloon.hasView(this.view)}_getPropertyChangeCallback(e){return(t,o,n)=>{this._isReady&&this.editor.execute(e,{value:n,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback(e){const{commandName:t,viewField:o,validator:n,errorText:i}=e,r=so((()=>{o.errorText=i}),500);return(e,i,l)=>{r.cancel(),this._isReady&&(n(l)?(this.editor.execute(t,{value:l,batch:this._undoStepBatch}),o.errorText=null):r())}}}class Qo extends e.Plugin{static get pluginName(){return"TableProperties"}static get requires(){return[Uo,Yo]}}function Zo(e){e.document.registerPostFixer((t=>function(e,t){const o=t.document.differ.getChanges();let n=!1;for(const t of o){if("insert"!=t.type)continue;const o=t.position.parent;if(o.is("element","table")||"table"==t.name){const i="table"==t.name?t.position.nodeAfter:o,r=Array.from(i.getChildren()).filter((e=>e.is("element","caption"))),l=r.shift();if(!l)continue;for(const t of r)e.move(e.createRangeIn(t),l,"end"),e.remove(t);l.nextSibling&&(e.move(e.createRangeOn(l),i,"end"),n=!0),n=!!r.length||n}}return n}(t,e)))}function en(e){return!!e&&e.is("element","table")}function tn(e){for(const t of e.getChildren())if(t.is("element","caption"))return t;return null}function on(e){const t=e.parent;return"figcaption"==e.name&&t&&t.is("element","figure")&&t.hasClass("table")||"caption"==e.name&&t&&t.is("element","table")?{name:!0}:null}class nn extends e.Command{refresh(){const e=b(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled?this.value=!!tn(e):this.value=!1}execute({focusCaptionOnShow:e=!1}={}){this.editor.model.change((t=>{this.value?this._hideTableCaption(t):this._showTableCaption(t,e)}))}_showTableCaption(e,t){const o=this.editor.model,n=b(o.document.selection),i=this.editor.plugins.get("TableCaptionEditing")._getSavedCaption(n)||e.createElement("caption");o.insertContent(i,n,"end"),t&&e.setSelection(i,"in")}_hideTableCaption(e){const t=this.editor.model,o=b(t.document.selection),n=this.editor.plugins.get("TableCaptionEditing"),i=tn(o);n._saveCaption(o,i),t.deleteContent(e.createSelection(i,"on"))}}class rn extends e.Plugin{static get pluginName(){return"TableCaptionEditing"}constructor(e){super(e),this._savedCaptionsMap=new WeakMap}init(){const e=this.editor,o=e.model.schema,n=e.editing.view,i=e.t;o.isRegistered("caption")?o.extend("caption",{allowIn:"table"}):o.register("caption",{allowIn:"table",allowContentOf:"$block",isLimit:!0}),e.commands.add("toggleTableCaption",new nn(this.editor)),e.conversion.for("upcast").elementToElement({view:on,model:"caption"}),e.conversion.for("dataDowncast").elementToElement({model:"caption",view:(e,{writer:t})=>en(e.parent)?t.createContainerElement("figcaption"):null}),e.conversion.for("editingDowncast").elementToElement({model:"caption",view:(e,{writer:o})=>{if(!en(e.parent))return null;const r=o.createEditableElement("figcaption");return o.setCustomProperty("tableCaption",!0,r),r.placeholder=i("Enter table caption"),(0,Ke.enablePlaceholder)({view:n,element:r,keepOnFocus:!0}),(0,t.toWidgetEditable)(r,o)}}),Zo(e.model)}_getSavedCaption(e){const t=this._savedCaptionsMap.get(e);return t?Ke.Element.fromJSON(t):null}_saveCaption(e,t){this._savedCaptionsMap.set(e,t.toJSON())}}class ln extends e.Plugin{static get pluginName(){return"TableCaptionUI"}init(){const t=this.editor,o=t.editing.view,n=t.t;t.ui.componentFactory.add("toggleTableCaption",(i=>{const r=t.commands.get("toggleTableCaption"),l=new Pe.ButtonView(i);return l.set({icon:e.icons.caption,tooltip:!0,isToggleable:!0}),l.bind("isOn","isEnabled").to(r,"value","isEnabled"),l.bind("label").to(r,"value",(e=>n(e?"Toggle caption off":"Toggle caption on"))),this.listenTo(l,"execute",(()=>{if(t.execute("toggleTableCaption",{focusCaptionOnShow:!0}),r.value){const e=function(e){const t=b(e);return t?tn(t):null}(t.model.document.selection),n=t.editing.mapper.toViewElement(e);if(!n)return;o.scrollToTheSelection(),o.change((e=>{e.addClass("table__caption_highlighted",n)}))}t.editing.view.focus()})),l}))}}var sn=o(175),an={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(sn.A,an);sn.A.locals;class cn extends e.Plugin{static get pluginName(){return"TableCaption"}static get requires(){return[rn,ln]}}const dn=function(){this.__data__=[],this.size=0};const un=function(e,t){return e===t||e!=e&&t!=t};const hn=function(e,t){for(var o=e.length;o--;)if(un(e[o][0],t))return o;return-1};var bn=Array.prototype.splice;const mn=function(e){var t=this.__data__,o=hn(t,e);return!(o<0)&&(o==t.length-1?t.pop():bn.call(t,o,1),--this.size,!0)};const gn=function(e){var t=this.__data__,o=hn(t,e);return o<0?void 0:t[o][1]};const pn=function(e){return hn(this.__data__,e)>-1};const fn=function(e,t){var o=this.__data__,n=hn(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this};function wn(e){var t=-1,o=null==e?0:e.length;for(this.clear();++ts))return!1;var c=r.get(e),d=r.get(t);if(c&&d)return c==t&&d==e;var u=-1,h=!0,b=2&o?new hi:void 0;for(r.set(e,t),r.set(t,e);++u-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991};var Ui={};Ui["[object Float32Array]"]=Ui["[object Float64Array]"]=Ui["[object Int8Array]"]=Ui["[object Int16Array]"]=Ui["[object Int32Array]"]=Ui["[object Uint8Array]"]=Ui["[object Uint8ClampedArray]"]=Ui["[object Uint16Array]"]=Ui["[object Uint32Array]"]=!0,Ui["[object Arguments]"]=Ui["[object Array]"]=Ui["[object ArrayBuffer]"]=Ui["[object Boolean]"]=Ui["[object DataView]"]=Ui["[object Date]"]=Ui["[object Error]"]=Ui["[object Function]"]=Ui["[object Map]"]=Ui["[object Number]"]=Ui["[object Object]"]=Ui["[object RegExp]"]=Ui["[object Set]"]=Ui["[object String]"]=Ui["[object WeakMap]"]=!1;const $i=function(e){return Qt(e)&&Hi(e.length)&&!!Ui[Yt(e)]};const Ki=function(e){return function(t){return e(t)}};var Gi="object"==typeof exports&&exports&&!exports.nodeType&&exports,qi=Gi&&"object"==typeof module&&module&&!module.nodeType&&module,Ji=qi&&qi.exports===Gi&&Bt.process,Xi=function(){try{var e=qi&&qi.require&&qi.require("util").types;return e||Ji&&Ji.binding&&Ji.binding("util")}catch(e){}}();var Yi=Xi&&Xi.isTypedArray;const Qi=Yi?Ki(Yi):$i;var Zi=Object.prototype.hasOwnProperty;const er=function(e,t){var o=yi(e),n=!o&&Li(e),i=!o&&!n&&ji(e),r=!o&&!n&&!i&&Qi(e),l=o||n||i||r,s=l?Ii(e.length,String):[],a=s.length;for(var c in e)!t&&!Zi.call(e,c)||l&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Di(c,a))||s.push(c);return s};var tr=Object.prototype;const or=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||tr)};const nr=function(e,t){return function(o){return e(t(o))}}(Object.keys,Object);var ir=Object.prototype.hasOwnProperty;const rr=function(e){if(!or(e))return nr(e);var t=[];for(var o in Object(e))ir.call(e,o)&&"constructor"!=o&&t.push(o);return t};const lr=function(e){return null!=e&&Hi(e.length)&&!An(e)};const sr=function(e){return lr(e)?er(e):rr(e)};const ar=function(e){return Ai(e,sr,Ri)};var cr=Object.prototype.hasOwnProperty;const dr=function(e,t,o,n,i,r){var l=1&o,s=ar(e),a=s.length;if(a!=ar(t).length&&!l)return!1;for(var c=a;c--;){var d=s[c];if(!(l?d in t:cr.call(t,d)))return!1}var u=r.get(e),h=r.get(t);if(u&&h)return u==t&&h==e;var b=!0;r.set(e,t),r.set(t,e);for(var m=l;++c{r?e.setAttribute("tableWidth",r,n):e.removeAttribute("tableWidth",n);const t=o.get("TableColumnResizeEditing").getColumnGroupElement(n);if(!i&&!t)return;if(!i)return e.remove(t);const l=Z(i);if(t)Array.from(t.getChildren()).forEach(((t,o)=>e.setAttribute("columnWidth",l[o],t)));else{const t=e.createElement("tableColumnGroup");l.forEach((o=>e.appendElement("tableColumn",{columnWidth:o},t))),e.append(t,n)}}))}}function Fr(e){return t=>t.on("element:colgroup",((t,o,n)=>{const i=o.modelCursor.findAncestor("table"),r=oe(i);if(!r)return;const l=ne(r),s=e.getColumns(i);let a=(c=r,d=n.writer,ne(c).reduce(((e,t)=>{const o=t.getAttribute("columnWidth"),n=t.getAttribute("colSpan");if(!n)return e.push(o),e;for(let t=0;ta[t]||"auto")),(a.length!=l.length||a.includes("auto"))&&te(l,r,Z(a),n.writer)}),{priority:"low"})}class Wr extends e.Plugin{static get requires(){return[Re,ie]}static get pluginName(){return"TableColumnResizeEditing"}constructor(e){super(e),this._isResizingActive=!1,this.set("_isResizingAllowed",!0),this._resizingData=null,this._domEmitter=new((0,m.DomEmitterMixin)()),this._tableUtilsPlugin=e.plugins.get("TableUtils"),this.on("change:_isResizingAllowed",((t,o,n)=>{const i=n?"removeClass":"addClass";e.editing.view.change((t=>{for(const o of e.editing.view.document.roots)t[i]("ck-column-resize_disabled",e.editing.view.document.getRoot(o.rootName))}))}))}init(){this._extendSchema(),this._registerPostFixer(),this._registerConverters(),this._registerResizingListeners(),this._registerResizerInserter();const e=this.editor,t=e.plugins.get("TableColumnResize");e.plugins.get("TableEditing").registerAdditionalSlot({filter:e=>e.is("element","tableColumnGroup"),positionOffset:0});const o=new Lr(e);e.commands.add("resizeTableWidth",o),e.commands.add("resizeColumnWidths",o),this.bind("_isResizingAllowed").to(e,"isReadOnly",t,"isEnabled",o,"isEnabled",((e,t,o)=>!e&&t&&o))}destroy(){this._domEmitter.stopListening(),super.destroy()}getColumnGroupElement(e){return oe(e)}getTableColumnElements(e){return ne(e)}getTableColumnsWidths(e){return function(e){return ne(e).map((e=>e.getAttribute("columnWidth")))}(e)}_extendSchema(){this.editor.model.schema.extend("table",{allowAttributes:["tableWidth"]}),this.editor.model.schema.register("tableColumnGroup",{allowIn:"table",isLimit:!0}),this.editor.model.schema.register("tableColumn",{allowIn:"tableColumnGroup",allowAttributes:["columnWidth","colSpan"],isLimit:!0})}_registerPostFixer(){const e=this.editor.model;function t(e,t,o){const n=o._tableUtilsPlugin.getColumns(t);if(0===n-e.length)return e;const i=e.map((e=>Number(e.replace("%","")))),r=function(e,t){const o=new Set;for(const n of e.getChanges())if("insert"==n.type&&n.position.nodeAfter&&"tableCell"==n.position.nodeAfter.name&&n.position.nodeAfter.getAncestors().includes(t))o.add(n.position.nodeAfter);else if("remove"==n.type){const e=n.position.nodeBefore||n.position.nodeAfter;"tableCell"==e.name&&e.getAncestors().includes(t)&&o.add(e)}return o}(o.editor.model.document.differ,t);for(const e of r){const r=n-i.length;if(0===r)continue;const s=r>0,a=o._tableUtilsPlugin.getCellLocation(e).column;if(s){const e=G(t,o.editor),n=(l=e,Array(r).fill(l));i.splice(a,0,...n)}else{const e=i.splice(a,Math.abs(r));i[a]+=Q(e)}}var l;return i.map((e=>e+"%"))}e.document.registerPostFixer((o=>{let n=!1;for(const i of function(e){const t=new Set;for(const o of e.document.differ.getChanges()){let n=null;switch(o.type){case"insert":n=["table","tableRow","tableCell"].includes(o.name)?o.position:null;break;case"remove":n=["tableRow","tableCell"].includes(o.name)?o.position:null;break;case"attribute":o.range.start.nodeAfter&&(n=["table","tableRow","tableCell"].includes(o.range.start.nodeAfter.name)?o.range.start:null)}if(!n)continue;const i=n.nodeAfter&&n.nodeAfter.is("element","table")?n.nodeAfter:n.findAncestor("table");for(const o of e.createRangeOn(i).getItems())o.is("element","table")&&oe(o)&&t.add(o)}return t}(e)){const e=this.getColumnGroupElement(i),r=this.getTableColumnElements(e),l=this.getTableColumnsWidths(e);let s=Z(l);s=t(s,i,this),zr(l,s)||(te(r,e,s,o),n=!0)}return n}))}_registerConverters(){const e=this.editor.conversion;e.for("upcast").attributeToAttribute({view:{name:"figure",key:"style",value:{width:/[\s\S]+/}},model:{name:"table",key:"tableWidth",value:e=>e.getStyle("width")}}),e.for("downcast").attributeToAttribute({model:{name:"table",key:"tableWidth"},view:e=>({name:"figure",key:"style",value:{width:e}})}),e.elementToElement({model:"tableColumnGroup",view:"colgroup"}),e.elementToElement({model:"tableColumn",view:"col"}),e.for("downcast").add((e=>e.on("insert:table",((e,t,o)=>{const n=o.writer,i=t.item,r=o.mapper.toViewElement(i),l=r.is("element","table")?r:Array.from(r.getChildren()).find((e=>e.is("element","table")));oe(i)?n.addClass("ck-table-resized",l):n.removeClass("ck-table-resized",l)}),{priority:"low"}))),e.for("upcast").add(Fr(this._tableUtilsPlugin)),e.for("upcast").attributeToAttribute({view:{name:"col",styles:{width:/.*/}},model:{key:"columnWidth",value:e=>{const t=e.getStyle("width");return t&&(t.endsWith("%")||t.endsWith("pt"))?t:"auto"}}}),e.for("upcast").attributeToAttribute({view:{name:"col",key:"span"},model:"colSpan"}),e.for("downcast").attributeToAttribute({model:{name:"tableColumn",key:"columnWidth"},view:e=>({key:"style",value:{width:e}})})}_registerResizingListeners(){const e=this.editor.editing.view;e.addObserver(Ge),e.document.on("mousedown",this._onMouseDownHandler.bind(this),{priority:"high"}),this._domEmitter.listenTo(m.global.window.document,"mousemove",Br(this._onMouseMoveHandler.bind(this),50)),this._domEmitter.listenTo(m.global.window.document,"mouseup",this._onMouseUpHandler.bind(this))}_onMouseDownHandler(e,t){const o=t.target;if(!o.hasClass("ck-table-column-resizer"))return;if(!this._isResizingAllowed)return;const n=this.editor,i=n.editing.mapper.toModelElement(o.findAncestor("figure"));if(!n.model.canEditAt(i))return;t.preventDefault(),e.stop();const r=function(e,t,o){const n=Array(t.getColumns(e)),i=new w(e);for(const e of i){const t=o.editing.mapper.toViewElement(e.cell),i=ee(o.editing.view.domConverter.mapViewToDom(t));(!n[e.column]||ie.is("element","colgroup")))||s.change((e=>{!function(e,t,o){const n=e.createContainerElement("colgroup");for(let o=0;ofunction(e,t,o){const n=o.widths.viewFigureWidth/o.widths.viewFigureParentWidth;e.addClass("ck-table-resized",t),e.addClass("ck-table-column-resizer__active",o.elements.viewResizer),e.setStyle("width",`${Y(100*n)}%`,t.findAncestor("figure"))}(e,l,this._resizingData)))}_onMouseMoveHandler(e,t){if(!this._isResizingActive)return;if(!this._isResizingAllowed)return void this._onMouseUpHandler();const{columnPosition:o,flags:{isRightEdge:n,isTableCentered:i,isLtrContent:r},elements:{viewFigure:l,viewLeftColumn:s,viewRightColumn:a},widths:{viewFigureParentWidth:c,tableWidth:d,leftColumnWidth:u,rightColumnWidth:h}}=this._resizingData,b=40-u,m=n?c-d:h-40,g=(r?1:-1)*(n&&i?2:1),p=(f=(t.clientX-o)*g,w=Math.min(b,0),_=Math.max(m,0),Y(f<=w?w:f>=_?_:f));var f,w,_;0!==p&&this.editor.editing.view.change((e=>{const t=Y(100*(u+p)/d);if(e.setStyle("width",`${t}%`,s),n){const t=Y(100*(d+p)/c);e.setStyle("width",`${t}%`,l)}else{const t=Y(100*(h-p)/d);e.setStyle("width",`${t}%`,a)}}))}_onMouseUpHandler(){if(!this._isResizingActive)return;const{viewResizer:e,modelTable:t,viewFigure:o,viewColgroup:n}=this._resizingData.elements,i=this.editor,r=i.editing.view,l=this.getColumnGroupElement(t),s=Array.from(n.getChildren()).filter((e=>e.is("view:element"))),a=l?this.getTableColumnsWidths(l):null,c=s.map((e=>e.getStyle("width"))),d=!zr(a,c),u=t.getAttribute("tableWidth"),h=o.getStyle("width"),b=u!==h;(d||b)&&(this._isResizingAllowed?i.execute("resizeTableWidth",{table:t,tableWidth:`${Y(h)}%`,columnWidths:c}):r.change((e=>{if(a)for(const t of s)e.setStyle("width",a.shift(),t);else e.remove(n);b&&(u?e.setStyle("width",u,o):e.removeStyle("width",o)),a||u||e.removeClass("ck-table-resized",[...o.getChildren()].find((e=>"table"===e.name)))}))),r.change((t=>{t.removeClass("ck-table-column-resizer__active",e)})),this._isResizingActive=!1,this._resizingData=null}_getResizingData(e,t){const o=this.editor,n=e.domEvent.clientX,i=e.target,r=i.findAncestor("td")||i.findAncestor("th"),l=o.editing.mapper.toModelElement(r),s=l.findAncestor("table"),a=function(e,t){const o=t.getCellLocation(e).column;return{leftEdge:o,rightEdge:o+(e.getAttribute("colspan")||1)-1}}(l,this._tableUtilsPlugin).rightEdge,c=a===this._tableUtilsPlugin.getColumns(s)-1,d=!s.hasAttribute("tableAlignment"),u="rtl"!==o.locale.contentLanguageDirection,h=r.findAncestor("table"),b=h.findAncestor("figure"),m=[...h.getChildren()].find((e=>e.is("element","colgroup"))),g=m.getChild(a),p=c?void 0:m.getChild(a+1);return{columnPosition:n,flags:{isRightEdge:c,isTableCentered:d,isLtrContent:u},elements:{viewResizer:i,modelTable:s,viewFigure:b,viewColgroup:m,viewLeftColumn:g,viewRightColumn:p},widths:{viewFigureParentWidth:X(o.editing.view.domConverter.mapViewToDom(b.parent)),viewFigureWidth:X(o.editing.view.domConverter.mapViewToDom(b)),tableWidth:q(s,o),leftColumnWidth:t[a],rightColumnWidth:c?void 0:t[a+1]}}}_registerResizerInserter(){this.editor.conversion.for("editingDowncast").add((e=>{e.on("insert:tableCell",((e,t,o)=>{const n=t.item,i=o.mapper.toViewElement(n),r=o.writer;r.insert(r.createPositionAt(i,"end"),r.createUIElement("div",{class:"ck-table-column-resizer"}))}),{priority:"lowest"})}))}}var Nr=o(363),Or={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xe()(Nr.A,Or);Nr.A.locals;class jr extends e.Plugin{static get requires(){return[Wr,vo]}static get pluginName(){return"TableColumnResize"}}})(),(window.CKEditor5=window.CKEditor5||{}).table=n})();
\ No newline at end of file
diff --git a/core/core.libraries.yml b/core/core.libraries.yml
index a422013f4cd..88aa25dc50e 100644
--- a/core/core.libraries.yml
+++ b/core/core.libraries.yml
@@ -19,10 +19,10 @@ internal.backbone:
ckeditor5:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
# This file is not aggregated to force the creation of a new aggregate file
@@ -36,10 +36,10 @@ ckeditor5:
ckeditor5.editorClassic:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/editor-classic/editor-classic.js: { minified: true }
@@ -48,10 +48,10 @@ ckeditor5.editorClassic:
ckeditor5.editorDecoupled:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/editor-decoupled/editor-decoupled.js: { minified: true }
@@ -74,10 +74,10 @@ ckeditor5.essentials:
ckeditor5.heading:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/heading/heading.js: { minified: true }
@@ -87,10 +87,10 @@ ckeditor5.heading:
ckeditor5.basic:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/basic-styles/basic-styles.js: { minified: true }
@@ -100,10 +100,10 @@ ckeditor5.basic:
ckeditor5.specialCharacters:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/special-characters/special-characters.js: { minified: true }
@@ -113,10 +113,10 @@ ckeditor5.specialCharacters:
ckeditor5.blockquote:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/block-quote/block-quote.js: { minified: true }
@@ -126,10 +126,10 @@ ckeditor5.blockquote:
ckeditor5.image:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/image/image.js: { minified: true }
@@ -139,10 +139,10 @@ ckeditor5.image:
ckeditor5.link:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/link/link.js: { minified: true }
@@ -152,10 +152,10 @@ ckeditor5.link:
ckeditor5.list:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/list/list.js: { minified: true }
@@ -165,10 +165,10 @@ ckeditor5.list:
ckeditor5.horizontalLine:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/horizontal-line/horizontal-line.js: { minified: true }
@@ -178,10 +178,10 @@ ckeditor5.horizontalLine:
ckeditor5.htmlSupport:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/html-support/html-support.js: { minified: true }
@@ -191,10 +191,10 @@ ckeditor5.htmlSupport:
ckeditor5.alignment:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/alignment/alignment.js: { minified: true }
@@ -204,10 +204,10 @@ ckeditor5.alignment:
ckeditor5.removeFormat:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/remove-format/remove-format.js: { minified: true }
@@ -217,10 +217,10 @@ ckeditor5.removeFormat:
ckeditor5.pasteFromOffice:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/paste-from-office/paste-from-office.js: { minified: true }
@@ -229,10 +229,10 @@ ckeditor5.pasteFromOffice:
ckeditor5.indent:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/indent/indent.js: { minified: true }
@@ -242,10 +242,10 @@ ckeditor5.indent:
ckeditor5.sourceEditing:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/source-editing/source-editing.js: { minified: true }
@@ -255,10 +255,10 @@ ckeditor5.sourceEditing:
ckeditor5.table:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/table/table.js: { minified: true }
@@ -268,10 +268,10 @@ ckeditor5.table:
ckeditor5.language:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/language/language.js: { minified: true }
@@ -281,10 +281,10 @@ ckeditor5.language:
ckeditor5.codeBlock:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/code-block/code-block.js: { minified: true }
@@ -294,7 +294,7 @@ ckeditor5.codeBlock:
ckeditor5.showBlocks:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v37.1.0/LICENSE.md
@@ -306,10 +306,10 @@ ckeditor5.showBlocks:
ckeditor5.style:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/style/style.js: { minified: true }
@@ -328,10 +328,10 @@ ckeditor5.translations:
ckeditor5.autoformat:
remote: https://github.com/ckeditor/ckeditor5
- version: "42.0.0"
+ version: "42.0.2"
license:
name: GPL-2.0-or-later
- url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.0/LICENSE.md
+ url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v42.0.2/LICENSE.md
gpl-compatible: true
js:
assets/vendor/ckeditor5/autoformat/autoformat.js: { minified: true }
diff --git a/core/package.json b/core/package.json
index 33e7ebf10ac..5566a4f8f25 100644
--- a/core/package.json
+++ b/core/package.json
@@ -33,34 +33,34 @@
"watch:ckeditor5-dev": "yarn watch:ckeditor5 --mode=development"
},
"devDependencies": {
- "@ckeditor/ckeditor5-alignment": "~42.0.0",
- "@ckeditor/ckeditor5-autoformat": "~42.0.0",
- "@ckeditor/ckeditor5-basic-styles": "~42.0.0",
- "@ckeditor/ckeditor5-block-quote": "~42.0.0",
- "@ckeditor/ckeditor5-code-block": "~42.0.0",
- "@ckeditor/ckeditor5-editor-classic": "~42.0.0",
- "@ckeditor/ckeditor5-editor-decoupled": "~42.0.0",
- "@ckeditor/ckeditor5-essentials": "~42.0.0",
- "@ckeditor/ckeditor5-heading": "~42.0.0",
- "@ckeditor/ckeditor5-horizontal-line": "~42.0.0",
- "@ckeditor/ckeditor5-html-support": "~42.0.0",
- "@ckeditor/ckeditor5-image": "~42.0.0",
- "@ckeditor/ckeditor5-indent": "~42.0.0",
- "@ckeditor/ckeditor5-language": "~42.0.0",
- "@ckeditor/ckeditor5-link": "~42.0.0",
- "@ckeditor/ckeditor5-list": "~42.0.0",
- "@ckeditor/ckeditor5-paste-from-office": "~42.0.0",
- "@ckeditor/ckeditor5-remove-format": "~42.0.0",
- "@ckeditor/ckeditor5-show-blocks": "~42.0.0",
- "@ckeditor/ckeditor5-source-editing": "~42.0.0",
- "@ckeditor/ckeditor5-special-characters": "~42.0.0",
- "@ckeditor/ckeditor5-style": "~42.0.0",
- "@ckeditor/ckeditor5-table": "~42.0.0",
+ "@ckeditor/ckeditor5-alignment": "~42.0.2",
+ "@ckeditor/ckeditor5-autoformat": "~42.0.2",
+ "@ckeditor/ckeditor5-basic-styles": "~42.0.2",
+ "@ckeditor/ckeditor5-block-quote": "~42.0.2",
+ "@ckeditor/ckeditor5-code-block": "~42.0.2",
+ "@ckeditor/ckeditor5-editor-classic": "~42.0.2",
+ "@ckeditor/ckeditor5-editor-decoupled": "~42.0.2",
+ "@ckeditor/ckeditor5-essentials": "~42.0.2",
+ "@ckeditor/ckeditor5-heading": "~42.0.2",
+ "@ckeditor/ckeditor5-horizontal-line": "~42.0.2",
+ "@ckeditor/ckeditor5-html-support": "~42.0.2",
+ "@ckeditor/ckeditor5-image": "~42.0.2",
+ "@ckeditor/ckeditor5-indent": "~42.0.2",
+ "@ckeditor/ckeditor5-language": "~42.0.2",
+ "@ckeditor/ckeditor5-link": "~42.0.2",
+ "@ckeditor/ckeditor5-list": "~42.0.2",
+ "@ckeditor/ckeditor5-paste-from-office": "~42.0.2",
+ "@ckeditor/ckeditor5-remove-format": "~42.0.2",
+ "@ckeditor/ckeditor5-show-blocks": "~42.0.2",
+ "@ckeditor/ckeditor5-source-editing": "~42.0.2",
+ "@ckeditor/ckeditor5-special-characters": "~42.0.2",
+ "@ckeditor/ckeditor5-style": "~42.0.2",
+ "@ckeditor/ckeditor5-table": "~42.0.2",
"@drupal/once": "^1.0.1",
"@floating-ui/dom": "^1.6.7",
"backbone": "^1.6.0",
"chokidar": "^3.6.0",
- "ckeditor5": "~42.0.0",
+ "ckeditor5": "~42.0.2",
"cspell": "^8.10.4",
"dotenv": "^16.4.5",
"dotenv-safe": "^9.1.0",
diff --git a/core/yarn.lock b/core/yarn.lock
index cd325a706ee..75a0a17f734 100644
--- a/core/yarn.lock
+++ b/core/yarn.lock
@@ -40,575 +40,743 @@ __metadata:
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-adapter-ckfinder@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-adapter-ckfinder@npm:42.0.0"
+"@ckeditor/ckeditor5-adapter-ckfinder@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-adapter-ckfinder@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/c1dc9c39a7f1f2f31a928513abc6269aa382f6e0d0575316168e81f87313b15cb0d041bd6c9ad1a9088ed889b50afd9a3afd999d4d3a7aa4dbb83a8dd1410444
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-upload": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/92b1623365519ba8ae501562fba7d3969c333f2d10f83f7ba5c99cfdff4f19f323918c4e3627a6542afc025d51640689bbad7aef01a9fb9986301d3366c2bc96
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-alignment@npm:42.0.0, @ckeditor/ckeditor5-alignment@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-alignment@npm:42.0.0"
+"@ckeditor/ckeditor5-alignment@npm:42.0.2, @ckeditor/ckeditor5-alignment@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-alignment@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/8396268b60511b3ba47617c07e9b33728185228e74819264461e8b1edb63951558e272efc203ff06529203eda31c2a1800ed19a818e12cc7d74f7a6d6e374583
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/5f679d43b16b049c5fbf6e8dbbdc7601ab6d132e845e23f111ebd22f5df63381d22f324e1aaaa0fb370deb1a07374ba25b439924cd0f3fa4ca76938bc4c643f3
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-autoformat@npm:42.0.0, @ckeditor/ckeditor5-autoformat@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-autoformat@npm:42.0.0"
+"@ckeditor/ckeditor5-autoformat@npm:42.0.2, @ckeditor/ckeditor5-autoformat@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-autoformat@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/2f9bfb30a7ffaecea8b568e1aca0e3c57450ed7bf0a31f9285156f4051f66740e78756a7adec0083043dd99a4368741ba402af9fb3e70c31c7ffb787ea2fd762
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-typing": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/af67645511ff595be30cbb64b2d8ab90201890353827236f1b9a7c7aadf858ddf19fc4ace559f78d8168b726d811e1fe30fcf72bb20ffd581fa69b9087af2c2e
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-autosave@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-autosave@npm:42.0.0"
+"@ckeditor/ckeditor5-autosave@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-autosave@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/2e0b280280f0a67f06145b32b425396e3698b49fc7325c6e76a3b53359cbcc2e22180c55c06bc56185427d49d0ff374f41aee37d6e3629db7ebaaa084577df64
+ checksum: 10c0/8e1afc80150fe43ce98d87f2e831b292028923aa6f613d21f64cebc1a7b81b13b376f5ed6d8e7717a589809740e5f5e88de8c02f6604bd45cca13a395a6560df
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-basic-styles@npm:42.0.0, @ckeditor/ckeditor5-basic-styles@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-basic-styles@npm:42.0.0"
+"@ckeditor/ckeditor5-basic-styles@npm:42.0.2, @ckeditor/ckeditor5-basic-styles@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-basic-styles@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/f5f826f1edeca57d969fb94326aca6567cd2addc094a90f8771789bdc1363025077e957815968ce13ea3ce30388c1506e62dad07500936e80491e8cd9ff3c086
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-typing": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/7c0af0efb6e18a44b5094618de04495d2d35b4c0bd70de1b5d3c8c10ec1710eecf30808c19b3c7f88a54f5ac869f31e8906394da68ae5bb07364221fcecae077
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-block-quote@npm:42.0.0, @ckeditor/ckeditor5-block-quote@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-block-quote@npm:42.0.0"
+"@ckeditor/ckeditor5-block-quote@npm:42.0.2, @ckeditor/ckeditor5-block-quote@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-block-quote@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/2693360d2dd923817e406f32e37f153f76dc2f861f3613dadbcc26853cbc0c05cd879c62e928cce5171eb4743881463824414940c44efe51e897c11325157596
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-enter": "npm:42.0.2"
+ "@ckeditor/ckeditor5-typing": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/47d7d62fca2b68e25384e3985fda55d2f44126ffbf73b18393c343b7d20c2d9f657b200136cf37eb310b6c69713985fc33dee93d5aef0182e7891dc7fc9359d1
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-ckbox@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-ckbox@npm:42.0.0"
+"@ckeditor/ckeditor5-ckbox@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-ckbox@npm:42.0.2"
dependencies:
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-upload": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
blurhash: "npm:2.0.5"
- ckeditor5: "npm:42.0.0"
+ ckeditor5: "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/9a9f5e8e9eb1523a6eaf1bbe05090b0ea0248232847ec0fb1693ec78996df213934d9bccaa848ee6187d492fd86cc91ce017e85ece3b1d0aec6a5d974b42a7f8
+ checksum: 10c0/5c89374078ee9ff88dce5e27a9d4760690fcaeb64e728fd37fef09da8499031dac42729130988aa226e81f1d25eb9f2e4653c9a82a8a8547f609e59be9de9b30
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-ckfinder@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-ckfinder@npm:42.0.0"
+"@ckeditor/ckeditor5-ckfinder@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-ckfinder@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/e28371daceb7d8c111de15278d53b7a66aafdb1956f10f11cbae20ffe0b339de8637816ffb569537e34166fc86e72a67bc4b30998f508e5dd0619958d5f9f45c
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/5f0e33df3c47a9a659f4876563c1c85bc914132a1827a5a7df436399135e192714cbab8793954ea468e6d4f6f06c22614f0e5abd37dd82ad9e420d33d5878d35
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-clipboard@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-clipboard@npm:42.0.0"
+"@ckeditor/ckeditor5-clipboard@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-clipboard@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-core": "npm:42.0.0"
- "@ckeditor/ckeditor5-engine": "npm:42.0.0"
- "@ckeditor/ckeditor5-ui": "npm:42.0.0"
- "@ckeditor/ckeditor5-utils": "npm:42.0.0"
- "@ckeditor/ckeditor5-widget": "npm:42.0.0"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ "@ckeditor/ckeditor5-widget": "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/5d2c2706afd115a1279e0981602a753c195108b934009aece7987d9fac0a36b00ebfe2e68fdfc404dbdf82751d1838386a82105480c0c9c39236fe5e4d227ae1
+ checksum: 10c0/3bbea17805619067eb31b840b9f4185c5820a101519a6f604ec9a991e32b2e35afa3b0a8336be959efc4a624de4f2f7e088d4cece1f56c7551d79feea92d1799
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-cloud-services@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-cloud-services@npm:42.0.0"
+"@ckeditor/ckeditor5-cloud-services@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-cloud-services@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/a50deba49524213bd2b36e33f94308509c509a4c250302df759dda4932f74301f34714543b0762e2ee8297bcbac6f7273df3b31a36f08a3df631cfe6cca794ce
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/6da76ef8a1c7d33ff759bc193fd937fe7f7a61a0ef8c2d4a32d5850447bfd1bb0f3c6c7d9958cf167d5d5d810ed7bad7f9e452b4f406e9ddf75b4158cf53d1e7
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-code-block@npm:42.0.0, @ckeditor/ckeditor5-code-block@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-code-block@npm:42.0.0"
+"@ckeditor/ckeditor5-code-block@npm:42.0.2, @ckeditor/ckeditor5-code-block@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-code-block@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-enter": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/cf3b6de53f8300ee6d00f22f26b0cf83d5126f9d5cfaeaa7ace069471e67be06d77f2a5bfa617c4a9c8e1995888013c50785bb7f2ede5e0debebdbd4b3b43e1e
+ checksum: 10c0/266725710a9f03f317f90f96e4c8950a0141f1e5cc8bbb9ee37440852f7f4da0228b4dd469ca0fa5fe07d992e09582f7980da533b7c4cbdb29737b26f2dd3809
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-core@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-core@npm:42.0.0"
+"@ckeditor/ckeditor5-core@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-core@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-engine": "npm:42.0.0"
- "@ckeditor/ckeditor5-utils": "npm:42.0.0"
- "@ckeditor/ckeditor5-watchdog": "npm:42.0.0"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ "@ckeditor/ckeditor5-watchdog": "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/aa14f45cebf1cacb616d48319541e460e3569dac9b4be1e51883fb4c55d22f771813fdc20010d72b3d2b111901ddf56c9991cee2268edeab7f83792f7d2868bc
+ checksum: 10c0/e704b8a8c4b8a290dcc4d2d4b0cecc10cd14761942595b4ca7ecc42a561e593f3b4e07a8e2ff6c8920ced6ae2cb6952bcfaf51c59aa391755037b465b2a75c7f
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-easy-image@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-easy-image@npm:42.0.0"
+"@ckeditor/ckeditor5-easy-image@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-easy-image@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/09ad4f9602a9c56dc04454c375a477effcec830950dea40499d5c17353582f49e09a1746ca2e355e316a160846f259d6f2658b8f942219cb3e0a802ade1c8b78
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-upload": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/db6a4bf5ac39690e4bbc41dadf2e353746e0710d239e71db38613f482acfcf905986341d7f249baabf6af13ef4c6b49447173ed5f13675f23e14d031a9cb4c01
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-editor-balloon@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-editor-balloon@npm:42.0.0"
+"@ckeditor/ckeditor5-editor-balloon@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-editor-balloon@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/0034b266e107a76d6a66fa85905de75f64d34853896508d76aa8382a0faae2b92392055892703ce8340ee6cde1f6c754053cdd79c2f17615bca93abe83760e86
+ checksum: 10c0/67b56e4378009127f1a1c151da1f93a0aea668b1eef086d6ce741dfce7c97a23f354604dc3bb1d9b581c98be050baf36347a2819f0f4b2408457ad2197c936b6
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-editor-classic@npm:42.0.0, @ckeditor/ckeditor5-editor-classic@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-editor-classic@npm:42.0.0"
+"@ckeditor/ckeditor5-editor-classic@npm:42.0.2, @ckeditor/ckeditor5-editor-classic@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-editor-classic@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/0e109758a82068b5c153104d3618649e742bd78aa05186748cc8be8c8e6346e0c57ac9f6313531572c23127beed7e1bfdbfbb744444e90be859ea52679c19b0d
+ checksum: 10c0/502092f651504724c73cf03cc001660fef662938238f3caa62e6ba5386d53d9d37da50b3d07df94bc418afb39a11630e08f83b6872eb6917c210975043278462
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-editor-decoupled@npm:42.0.0, @ckeditor/ckeditor5-editor-decoupled@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-editor-decoupled@npm:42.0.0"
+"@ckeditor/ckeditor5-editor-decoupled@npm:42.0.2, @ckeditor/ckeditor5-editor-decoupled@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-editor-decoupled@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/087c9f383e5f56b554c75faa0813b12dfad97cf85f403570f40e6d777a7e171af11d8b82b59cc3d475044f70259b5290732be45fc76ae6d935142d3124806945
+ checksum: 10c0/341d2dc14796ba02c6d3a6a3cbb6ec02fcc5c02f7d47eccb580169b4d9e7a8fd277735db04695a63b2e7b7c9b93dd1d93e675d8f4b82f6a9be986a100aaed788
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-editor-inline@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-editor-inline@npm:42.0.0"
+"@ckeditor/ckeditor5-editor-inline@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-editor-inline@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/f0c5478f17bdc33ba09f2b8f3f0c0c84b72535297c36d3eb4a9dcb992905034355779215db3406b9417bc4b33fbbac1d1ac53cb3dcff31939b7f23ff4586d6ec
+ checksum: 10c0/be131dbf9b166673ea7d2a55325aa6efd4df42f5f8d9efcd781965ed1a8a94221f024d1f5fa0c8eeaf0403c66009557181929620e3b32150d75ff5e62559ab9b
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-editor-multi-root@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-editor-multi-root@npm:42.0.0"
+"@ckeditor/ckeditor5-editor-multi-root@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-editor-multi-root@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/294f14412f2714b27f410cb74e54b69acf6b2230a2a13436ffb6aa570bd279268ceb72e66ef52c040a7be1dfa85a0188954c026e70bc3023264ad1ffcc3ee6a1
+ checksum: 10c0/6c66e5aab86668fd92cfb8cea20ad39160b22e647da253e57aa8eb26b1aac26b5bc9bf9230cd89696f6f8bfad5df879c08f03ecabb7e56c91aa34e60dd5a0c7c
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-engine@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-engine@npm:42.0.0"
+"@ckeditor/ckeditor5-engine@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-engine@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-utils": "npm:42.0.0"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/cef11cc95bcbd72dd8f45f995120190cbc809599dcc09b5dce111d9ae7eaaa01d6457caa815162c6d09b7ed5d6719502e8d85a41a0dabffccf526fe36be66a4f
+ checksum: 10c0/035d6bcf581c92ef660bb3ac176c6807968384626a9523e244564b98507d635771ccaa17d3a3514639c06e57a92f3e3415e6c81c0ae5acbbe4e6b5208422608f
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-enter@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-enter@npm:42.0.0"
+"@ckeditor/ckeditor5-enter@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-enter@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-core": "npm:42.0.0"
- "@ckeditor/ckeditor5-engine": "npm:42.0.0"
- "@ckeditor/ckeditor5-utils": "npm:42.0.0"
- checksum: 10c0/d34960645ee48c8d712d6fed5bb4908c03ad99d9e8d131dc27e923204424c5f139a245a0500950558e424189d7f315597ef547a2b9c14816e62cd5d8f1b20a2c
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ checksum: 10c0/3616efe1f4143af314272a7b3337c98331b102ab8485a4b69928fdb722ee04f2f2c8267f15d39222cfd634eda85a456dcac4386ac8d03fd0b7ea14c89b46dde7
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-essentials@npm:42.0.0, @ckeditor/ckeditor5-essentials@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-essentials@npm:42.0.0"
+"@ckeditor/ckeditor5-essentials@npm:42.0.2, @ckeditor/ckeditor5-essentials@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-essentials@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/6a3de433f5636dfdfeb963ba41ade7f9e1e33285d925496ecc7de88a93be0d25a3437b1c233abd9d19eb0e577739eab87880afe794d29c0e93feb005a244e4ae
+ "@ckeditor/ckeditor5-clipboard": "npm:42.0.2"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-enter": "npm:42.0.2"
+ "@ckeditor/ckeditor5-select-all": "npm:42.0.2"
+ "@ckeditor/ckeditor5-typing": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-undo": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/5f22a5a4cda6d962a9f69f7da64c0a5848903ca9dfe937325a5c0b6634c446988c1d31711f3325d500af9ec21d9e9846a75f3ebdfd4978c57c73dd69455666c1
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-find-and-replace@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-find-and-replace@npm:42.0.0"
+"@ckeditor/ckeditor5-find-and-replace@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-find-and-replace@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-ui": "npm:42.0.0"
- ckeditor5: "npm:42.0.0"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/078b795d9f2d1630c3949c15586df0f55294e0933b5ce92b5404def380e71935f27ccf34321d7ce8847ea415a8e86cb1a959ee076939c80aa86794c22d45c0cb
+ checksum: 10c0/d8dc6b8e05d3f1b75069d5c805bc2719da4f34dc2e8fe166e518c2a736fb55ce5c6146cbb9b42de833cd0ddcb8bd1629263263a87fb234d70d57f628df2e36c9
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-font@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-font@npm:42.0.0"
+"@ckeditor/ckeditor5-font@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-font@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/e5d918f37e0e2d6c7999e7714a2802b69c78f9b04940e55db218d6a16b66d2e1edf9e2c481ecdc7877cab45380267cb980d931c62dd8068b3c93298cabd126e9
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/a69c96f5034a74ed01bd92b8d5eba04e935e1eded64d99c2b408d5f6d6bdb707d2ccfecce9db11450c7b70c4f3948c1720854f9d097543202246e72625ec6400
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-heading@npm:42.0.0, @ckeditor/ckeditor5-heading@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-heading@npm:42.0.0"
+"@ckeditor/ckeditor5-heading@npm:42.0.2, @ckeditor/ckeditor5-heading@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-heading@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/6db946b0d7cc5f4cd3754484e7edd81454a0d8a4f36c63b225e710c5854770a57c062a39714d487c46728b2b4a2554393ce9cc5264574b24e6b081b476c74845
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-paragraph": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/74de97d9d2a7baca03c787f0d1dffa1d32beda782133f0645812133fac4bd75cdffa4a404dad7385c404fd564843b7d88ab75f782f2d233865ec652d6778e153
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-highlight@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-highlight@npm:42.0.0"
+"@ckeditor/ckeditor5-highlight@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-highlight@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/cc95b3c6bae1d5871ac71dbd3a979e30586af95ea8df9ce9b1ea6757485761a3dbe626a239f6a649af5b0734d1bfca82a6969539e71e97605a7c5cf6e6b3567a
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/dcd6d6621bad61903338cdb0a61e9e77c3a97f4349c0a01b862f7f1ed80d44a9e8136a9a37f31ab235dcda8d6f75be81157932663198b2cffceb3c3400866355
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-horizontal-line@npm:42.0.0, @ckeditor/ckeditor5-horizontal-line@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-horizontal-line@npm:42.0.0"
+"@ckeditor/ckeditor5-horizontal-line@npm:42.0.2, @ckeditor/ckeditor5-horizontal-line@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-horizontal-line@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/d4ae0e4fa07c335bcbe43553dfba3d5af5af4046a95819c1c2a38789f8132a7c11d09ee1277bbe18d19fe4c4f898eeaecfb49614edc05c0f01fac45e380023fb
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-widget": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/afca9eb4800ab57c86deb4d43e3577b84a9d1ad87122d69de6328b392f60dc72d2698b19c0d06b9ef1f9d3a9457012f2f6ed3c1039773911cb6797e39394580d
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-html-embed@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-html-embed@npm:42.0.0"
+"@ckeditor/ckeditor5-html-embed@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-html-embed@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/6b571d56edd2b790da89dd6755aaa2f64fca61761aaa8f76c8c03974b8f55ede20487c7df6865a0b23eb7dd7e0cec36f2ba5ae3c847cd107237344b70ab784f3
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ "@ckeditor/ckeditor5-widget": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/4ec48bc8d7669a7299b84c2077d6ca62d45284998c4714761dd9b57ccc202c09defb0b934ac8d7a74be018aa6236daa6d008cfbc427723e32f83c6da7a949bf3
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-html-support@npm:42.0.0, @ckeditor/ckeditor5-html-support@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-html-support@npm:42.0.0"
+"@ckeditor/ckeditor5-html-support@npm:42.0.2, @ckeditor/ckeditor5-html-support@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-html-support@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-enter": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ "@ckeditor/ckeditor5-widget": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/33c73a7cf30c94d62e1ba457c1f4f512a22c4c43440ecf997be5c8ba8c34ddc9811a66221b827eb3621bbd2837badecf7f94dc544c377086bfdfdd225e68fa91
+ checksum: 10c0/8d0d5a9c31ab07582268c824996f14f6db6f55bb1926c5169907f0c071c2aa033f8fb315b45c4a38170052d5aae750e4e170eb3b69211ee66f03a3440ff115d6
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-image@npm:42.0.0, @ckeditor/ckeditor5-image@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-image@npm:42.0.0"
+"@ckeditor/ckeditor5-image@npm:42.0.2, @ckeditor/ckeditor5-image@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-image@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-ui": "npm:42.0.0"
- ckeditor5: "npm:42.0.0"
+ "@ckeditor/ckeditor5-clipboard": "npm:42.0.2"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-typing": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-undo": "npm:42.0.2"
+ "@ckeditor/ckeditor5-upload": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ "@ckeditor/ckeditor5-widget": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/f58e70124844c39f6c9375698c7ae7bbb0617c3c9d276d3dde21fddf1e813df558908a0e0fdef59f48f6df4b7b32dac3b57ee513141ec152ff9b8a732450381d
+ checksum: 10c0/5351f6626fe5362465e39ed6eec920c0fc61a1e2ad8450680ee9fd1211d65e4459af4d59495bbbd1e43ad3d3bf48782339d778aa27fd52e079b1a05158a4144b
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-indent@npm:42.0.0, @ckeditor/ckeditor5-indent@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-indent@npm:42.0.0"
+"@ckeditor/ckeditor5-indent@npm:42.0.2, @ckeditor/ckeditor5-indent@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-indent@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/a535104ce5880205d4f365aa5aeca3dc45295263673614bcf2c04b9c1ea51eb836f5dd865c5e977ba9984140c02f1b9ff7968362eb638434e54944e14ef7dc8d
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/4c2661ab3e51c02a40fbb453f3d9efb6d582ec1e64ab99d49200665c5aaad1b78b74e46c3bf83fb61c280c56830f828a35ba01a48a4ea8256f60bd267c912baa
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-language@npm:42.0.0, @ckeditor/ckeditor5-language@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-language@npm:42.0.0"
+"@ckeditor/ckeditor5-language@npm:42.0.2, @ckeditor/ckeditor5-language@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-language@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/a8c2285e290c4e8ed5a45299244bda89fedea662133f4dd507effa88312755357f087bddfe332cdbdb3e2e63925da2a0797e7817ce5877e76fb3ff0d43160607
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/74ba9e4cfa3d9c7ebea828810cb4480717a05b8aaf89c78a3659aaaec2e266d1726ed24933efc1f3dc44a24436d677115a6975f052aeba88ed74be0158ba8bf9
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-link@npm:42.0.0, @ckeditor/ckeditor5-link@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-link@npm:42.0.0"
+"@ckeditor/ckeditor5-link@npm:42.0.2, @ckeditor/ckeditor5-link@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-link@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-ui": "npm:42.0.0"
- ckeditor5: "npm:42.0.0"
+ "@ckeditor/ckeditor5-clipboard": "npm:42.0.2"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-typing": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ "@ckeditor/ckeditor5-widget": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/7c4bf3618e97eabcd41ab47d8918c6315a7bfb83e25752773e7072aaf2583026486cb8fa15a2953c97c59d7e41cfdd9737b9840f7568a71a4334cb51d63a166c
+ checksum: 10c0/8b6e3b3ef338034579af6b0fa98e536c4ea31f805a6ee38d18c71a71ab06e5c9ceca4cffe143c1138503eeb0eb87a32acd5e758d58501aa4a4d18042cb1abe33
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-list@npm:42.0.0, @ckeditor/ckeditor5-list@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-list@npm:42.0.0"
+"@ckeditor/ckeditor5-list@npm:42.0.2, @ckeditor/ckeditor5-list@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-list@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/7841aa9fce11f2882c87e04c4f5db1a86e1407f9419212023a4139188290573e813ee8addd9b50c3cf711b6e8b72f91d77fc7958663baa63823e8d493c9d2e54
+ "@ckeditor/ckeditor5-clipboard": "npm:42.0.2"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-enter": "npm:42.0.2"
+ "@ckeditor/ckeditor5-typing": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/5944663e86c762cdf3e9da187be6cf3dcfe3223119496ba5d5582a48a1fcc4e477771935aacdd8bf6899d0f1c8dd6d9b0d19552eb93d139725a0621cc142855c
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-markdown-gfm@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-markdown-gfm@npm:42.0.0"
+"@ckeditor/ckeditor5-markdown-gfm@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-markdown-gfm@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
+ "@ckeditor/ckeditor5-clipboard": "npm:42.0.2"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
marked: "npm:4.0.12"
turndown: "npm:7.2.0"
turndown-plugin-gfm: "npm:1.0.2"
- checksum: 10c0/1ad07ecaf7034eeb9947c1c7a88fc8812b4ba0dd761224d6661a9355fbadb945515878052e6668fe8c99a1a677a199bed49cc4dd240bd4b3523d7f29844b2862
+ checksum: 10c0/e5990f11a2bb5ef11581e344cb5704514ce10aba42e1a0a31af3591d41601bde9336fdf578f630717645427ed1ecf418f360fd5d7334c7783fe38c3e9d7f6389
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-media-embed@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-media-embed@npm:42.0.0"
+"@ckeditor/ckeditor5-media-embed@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-media-embed@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-ui": "npm:42.0.0"
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/9ef0fa93da348b01930432b7ee81f4c2252c472b64892b988fc5a9cef6c68d6acd15a900263cfb908e95fc42072b4b8417725fe18666ec34482d36bfd2b2b1f8
+ "@ckeditor/ckeditor5-clipboard": "npm:42.0.2"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-typing": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-undo": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ "@ckeditor/ckeditor5-widget": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/b4a96c197dceb517f1a45acd0e77920d11e6f330e48dca127dce05129f3912330c753259d6e6b8c6cb1c700facfdc14e6edaef4933d793f77dc379c58b39f10e
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-mention@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-mention@npm:42.0.0"
+"@ckeditor/ckeditor5-mention@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-mention@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-typing": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/fa3929463ec2258f5e3dae4125e385db3e561f068316f111a88c820823fa73d16a35425b5eb8f06130cb3145dcaa89725bd504f47edd7878de176a572fdc4b35
+ checksum: 10c0/e4c6e3bcd096d288553ea2c3afd5a1f206f0be3e8850223908642b6dec27b9a3fc316ab3529b6280d91701a011d2e3d07b1238b525219bdca9d768936c29acc2
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-minimap@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-minimap@npm:42.0.0"
+"@ckeditor/ckeditor5-minimap@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-minimap@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/9766408bda6c27147af78dad3d2fea60d64c939a0100e2a633c8fa1a6d6957bfc54ea1dd18eef709ec08896d4788345b9150a695e014b41886bfca2a65305f81
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/41fd44a02aeb24120b9a3db0b5b6ec670bb00a6fa9911ef1233b3385b95b90f664de5ad8747ae6b84affe7d9e636c810a305c7c3a02ef68cd9c72644da3254d3
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-page-break@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-page-break@npm:42.0.0"
+"@ckeditor/ckeditor5-page-break@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-page-break@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/9de4bfab68974a9beec22541ab5d18b613d1dc8bc0e5437ae3a83b4522456ce8cdd7193e95511821e92a663eb8a96a561af8078e97c9027bf3538c7a39aefc58
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-widget": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/e2be07890e34a699230a97ad6d6fe61274b2561188c31699e4e6961093ebe93b9c2c3b13db157e97fbbf3ab9215c62ecc92c615613402cc6f1590e1bc2eb6b73
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-paragraph@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-paragraph@npm:42.0.0"
+"@ckeditor/ckeditor5-paragraph@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-paragraph@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-core": "npm:42.0.0"
- "@ckeditor/ckeditor5-ui": "npm:42.0.0"
- "@ckeditor/ckeditor5-utils": "npm:42.0.0"
- checksum: 10c0/d76c55e6b88278384c6e869da5b16ed616f535611e3c3af72611150f2be272ec163a818af9eae56978a4f0a692e2abdb32e45f85d6e6002c0cb1d536dcb59d15
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ checksum: 10c0/2d8c08690b9e4e1ff222d6f64dfa78f94903d37119b3fd2f8ae5c8e87c8e578c79be4e0c576a5765b2c31172a91cb1950cd24ea8256acb10226879416b7b112a
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-paste-from-office@npm:42.0.0, @ckeditor/ckeditor5-paste-from-office@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-paste-from-office@npm:42.0.0"
+"@ckeditor/ckeditor5-paste-from-office@npm:42.0.2, @ckeditor/ckeditor5-paste-from-office@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-paste-from-office@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/f5b4f01f1a36e7dc091347633a6059019abdcd1388036d56a35a4cb202f5ba26a95078061253a68ee494dbf4d5d0ab9f1270062c24e1b959c5ed7375ddb55160
+ "@ckeditor/ckeditor5-clipboard": "npm:42.0.2"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/dde3774a1d40c39962617142bdf0c2fa62089e8c877c5b508e8dc96bb93272ec292400ecdfbbeaae09d03447cf9ce7434fe2b0d5be9f454910fa7639270490f8
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-remove-format@npm:42.0.0, @ckeditor/ckeditor5-remove-format@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-remove-format@npm:42.0.0"
+"@ckeditor/ckeditor5-remove-format@npm:42.0.2, @ckeditor/ckeditor5-remove-format@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-remove-format@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/d92bc412d169c3c4f71bac0854a30b04ccd3291602bcaea02e83dcbac3575c06ea3ad56528031b0cc887d87c10d1cbc8dcdd4baec9bc220f052a247fcfa36a63
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/f9a347a3c245dd1ca1d51ae9e97af52a2a401fcdd026383f7a0a2638f21da498ebde95905ed53bf5805476eab40fa6af423f85b0b3df79d9f3b8e3f4535a327c
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-restricted-editing@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-restricted-editing@npm:42.0.0"
+"@ckeditor/ckeditor5-restricted-editing@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-restricted-editing@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/f2a9f3534014720a1e024eeaf729ab19837c2cfeefba8dfb4a397fe61c5f7926415976d7e53673f4639ca1032c7ae1bea4921cc069a1ab5db0a1a296df239c66
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/7cd823eb1be174d29db5c16d93e3a4c25b6f3c92322a673d12d82d50f6178adba0d8d7b7f00cd4211456ed2e233beb577f5e9edc89daa1ed3fd84c1049952991
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-select-all@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-select-all@npm:42.0.0"
+"@ckeditor/ckeditor5-select-all@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-select-all@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-core": "npm:42.0.0"
- "@ckeditor/ckeditor5-ui": "npm:42.0.0"
- "@ckeditor/ckeditor5-utils": "npm:42.0.0"
- checksum: 10c0/a734463e86f263600b8086e664872b5648cc7c7879966731b3609824fce36bf7ed5a177785f17a0cb6e1f0539c0d10b7ed193240f814854bfd3a4fdcc45d6144
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ checksum: 10c0/7c75199d5b8841482b1ee2e84ac84b4509f60ae735a0e9a934ed3eef6ba3248f77bbaa80699f6e5a8e37b3982dd81c7782cb667739d949419240c5f04f52cc95
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-show-blocks@npm:42.0.0, @ckeditor/ckeditor5-show-blocks@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-show-blocks@npm:42.0.0"
+"@ckeditor/ckeditor5-show-blocks@npm:42.0.2, @ckeditor/ckeditor5-show-blocks@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-show-blocks@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-ui": "npm:42.0.0"
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/bce05eb16dbb8d3830bc37f8762c4490f625c92294ea3402593f58d82254b7b90d96a8ea18f7df01b66dfd591d187dd2936b7b5b9569a9719e17dbd27d7b5c41
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/26c739bda80b11317a294d3206937a936b7603981c32d57fa4792182fd8b26c259cfad17c9dfeab33098d2e126a800643cc00c5adb1e4221f43a7d237b0fc0c0
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-source-editing@npm:42.0.0, @ckeditor/ckeditor5-source-editing@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-source-editing@npm:42.0.0"
+"@ckeditor/ckeditor5-source-editing@npm:42.0.2, @ckeditor/ckeditor5-source-editing@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-source-editing@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-theme-lark": "npm:42.0.0"
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/871c428e97cbc50e80bbfd799896daaaee622002657403c41cd6bf217e67f068da5f6a203a07a08ac2baa690cc6bd8535a068b899bb3d9199296c920b7c17ebd
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-theme-lark": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/a92691962bcd5e262234f346783fee178d4f5f0e585fcbfc13fa49159d9666a3b4c19b107e1e91e9bcaa343797894a5bb86e6048eae018985c74aaceb7b69542
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-special-characters@npm:42.0.0, @ckeditor/ckeditor5-special-characters@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-special-characters@npm:42.0.0"
+"@ckeditor/ckeditor5-special-characters@npm:42.0.2, @ckeditor/ckeditor5-special-characters@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-special-characters@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
- checksum: 10c0/d86da58a3c058eaadc95643ba607d13262f4a47d4db1c73eda517c66d1ac978fc41ec2b5cb0a72c6aaec4be722478cd92f7bb6d82798e58d8efdadfd10e81dc2
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-typing": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
+ checksum: 10c0/5d1a70a457dddbd25d2e55aea2b8d3e489baf119e0b2f5ba8797b991fc440d8619d9a6c8259ec93311eebf412e4a9b1c23167b181cafeb6ec4c93f0acd473aee
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-style@npm:42.0.0, @ckeditor/ckeditor5-style@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-style@npm:42.0.0"
+"@ckeditor/ckeditor5-style@npm:42.0.2, @ckeditor/ckeditor5-style@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-style@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-typing": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/7bfb75bf8ea78ae8ec8fd06d71c6cf7cbd82886dc4024b7272950634b3a35f15debc4bc211996e919922a077895ebb478f9beb39a014e365a9c65dffe60668e9
+ checksum: 10c0/ae45379ececcce53d6f7d12ffecc2b6d07c07bd9a3293fd2c54ee7274c5c6e1366f4ceb53a2aa48336affdb52f3a6af0dad4360e73e25f0228b39b3606296b71
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-table@npm:42.0.0, @ckeditor/ckeditor5-table@npm:~42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-table@npm:42.0.0"
+"@ckeditor/ckeditor5-table@npm:42.0.2, @ckeditor/ckeditor5-table@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-table@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-ui": "npm:42.0.0"
- ckeditor5: "npm:42.0.0"
+ "@ckeditor/ckeditor5-clipboard": "npm:42.0.2"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ "@ckeditor/ckeditor5-widget": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/3d7761ada1e211dbba325037a18af2f81a055330a814e392c0c96717475e4c2af13b955ad3888d9ff5a1182d18e87a6fd76800c1fe11a0df92e20ff19586892e
+ checksum: 10c0/8ce51427894b774598706523d617398826d8bb22738fc5b2309a92dd35aefa91f1ddcc47371446d9f2b826de02bba9705ddb97f8b16e4f56d9057cf4c519875e
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-theme-lark@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-theme-lark@npm:42.0.0"
+"@ckeditor/ckeditor5-theme-lark@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-theme-lark@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-ui": "npm:42.0.0"
- checksum: 10c0/ebf4916554eb9430dbfdf1891f3cd22dbf065f3de1a533d22ccbe0a7471ad023ba4ac561987101ffdf153d9463df1d7f76d7d9d96e30871e3e5f14135c33eab3
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ checksum: 10c0/c20317a37cc4904dd24b7e2736eb0a0ebfd83cba56f4467b269ae7d0fde4698c73cd6571622087ecedfd867bdca81da3c1871a5c9237fec132679c70958dc72f
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-typing@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-typing@npm:42.0.0"
+"@ckeditor/ckeditor5-typing@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-typing@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-core": "npm:42.0.0"
- "@ckeditor/ckeditor5-engine": "npm:42.0.0"
- "@ckeditor/ckeditor5-utils": "npm:42.0.0"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/6e10e9177ad3e74137bec323fb58c139f3a37bc1d4f2448f9d209a95c2b7842eaac49fd1036cebc1af6ec53e14c581c2fd7dfa69f40f7df5ccd1067dfd77fc9f
+ checksum: 10c0/991022f28b25f45db62446e308e0a8e0a1e926d2a27c3927789092b44dedd38b14919245ee70bf039e4e5de0d7bd8a3ed207f779ba70ee96603a2b23126f9eaf
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-ui@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-ui@npm:42.0.0"
+"@ckeditor/ckeditor5-ui@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-ui@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-core": "npm:42.0.0"
- "@ckeditor/ckeditor5-utils": "npm:42.0.0"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
color-convert: "npm:2.0.1"
color-parse: "npm:1.4.2"
lodash-es: "npm:4.17.21"
vanilla-colorful: "npm:0.7.2"
- checksum: 10c0/62c8d9c446230c268bc6441a6c51d3fc3aa605907b585161f7c54e7d0f7da410f52df38414178d4d9dc659ffcaba810a62f2ddd282143e4112c33fe783646f7a
+ checksum: 10c0/64a256658cd674140a5ce07fcf1afc281a816f0ea677cc52a0e79507615013a1cd75009c491c422f4312f85de1e7070214eb45f985ae8a51d5c20936b07bd2d8
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-undo@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-undo@npm:42.0.0"
+"@ckeditor/ckeditor5-undo@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-undo@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-core": "npm:42.0.0"
- "@ckeditor/ckeditor5-engine": "npm:42.0.0"
- "@ckeditor/ckeditor5-ui": "npm:42.0.0"
- checksum: 10c0/6fb6130e7641369e81046d20f40ba17edfa26bba6c1788dde9c35f93504ee78409233530d7563610e6a6a44e37e57206864a04af3230d7ae805576832f42227d
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ checksum: 10c0/10d5cfe549f43296c5179081ec9c43ce535a90eaba3aa69d9da3387cd10a37cc66f508302b9de453d25ded4b7d903788634bad007f9a876c813ef4c90045493c
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-upload@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-upload@npm:42.0.0"
+"@ckeditor/ckeditor5-upload@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-upload@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-core": "npm:42.0.0"
- "@ckeditor/ckeditor5-utils": "npm:42.0.0"
- checksum: 10c0/f1f355ef2d650a71a3aeea66f6ed09e81223cd0bb66ce111af9b1bf07dca34a26e0174eb32eccbf55b0254f195bfcb362c67a81c5354bc94b9830679f3b4f9b0
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ checksum: 10c0/705bff0b64eb36b7b2a8eb617bb0359ae3ef46df2bf7336c5c2a9e3801dfc80b2740fce5e9840f9515e3c5fd31ba911535d52398333224486f38df8ab523268d
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-utils@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-utils@npm:42.0.0"
+"@ckeditor/ckeditor5-utils@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-utils@npm:42.0.2"
dependencies:
lodash-es: "npm:4.17.21"
- checksum: 10c0/aa50823e27ce17b6a47f272b40d6bad629fc88124d1f62b9a3b986d18c6cb56a1c3483dabcc9b1ce7fa5b7fcf01e616e26cce4122d0624b12efa5b63929c0206
+ checksum: 10c0/5c13fe2d53fe27b43acc29486add44a8588bbc82c2adb58f1b3f1ab19cadbebc80013550912c2192a0e4e98873fb2cd60dcbcb680777062290315c098809cc35
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-watchdog@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-watchdog@npm:42.0.0"
+"@ckeditor/ckeditor5-watchdog@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-watchdog@npm:42.0.2"
dependencies:
lodash-es: "npm:4.17.21"
- checksum: 10c0/de8da9d82957a2edae12be6ee5fa0797f7f2b5e5a320bf295f3893a9f3fe35f5a0e18e243a46b1405d1e83a2e7b34c418b669946568b5341455fd343fcb1c600
+ checksum: 10c0/09cf1679895e474ebda74efdfe2fcd995256833111f84dd9e74150c979779d37433f19f354a3024ceb954aeadaeea12842368e785629bb14c2e65a2dec6b45de
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-widget@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-widget@npm:42.0.0"
+"@ckeditor/ckeditor5-widget@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-widget@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-core": "npm:42.0.0"
- "@ckeditor/ckeditor5-engine": "npm:42.0.0"
- "@ckeditor/ckeditor5-enter": "npm:42.0.0"
- "@ckeditor/ckeditor5-typing": "npm:42.0.0"
- "@ckeditor/ckeditor5-ui": "npm:42.0.0"
- "@ckeditor/ckeditor5-utils": "npm:42.0.0"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-enter": "npm:42.0.2"
+ "@ckeditor/ckeditor5-typing": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/6e272dd5f0dddb721f32f19d8af0909080cc951f7ea94a7dc34ee471e66cab7f20ac35a684cc2b3a1a13791a4b00766df3395bd29f5f6b2186d2e5a7b84ba659
+ checksum: 10c0/6cb4a2f3737eba72ffbe814078e6ce67c825e43ca8d079208b0e51d6c4e413677cff4603a331e97fba75b5c286f8cee70445001e50cfe8a766f8efdd5605faf1
languageName: node
linkType: hard
-"@ckeditor/ckeditor5-word-count@npm:42.0.0":
- version: 42.0.0
- resolution: "@ckeditor/ckeditor5-word-count@npm:42.0.0"
+"@ckeditor/ckeditor5-word-count@npm:42.0.2":
+ version: 42.0.2
+ resolution: "@ckeditor/ckeditor5-word-count@npm:42.0.2"
dependencies:
- ckeditor5: "npm:42.0.0"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ ckeditor5: "npm:42.0.2"
lodash-es: "npm:4.17.21"
- checksum: 10c0/eb8099038dac8c59c8b706f8dbacfa3e0d1c0b2982c7e1ae2b585971c9e783430a050360c1d29fd0caf8bc82bab99554e44e68ab46f1810d2b2e19e6d710f17f
+ checksum: 10c0/6eb8db06e44830a02d72244606c8b3ea0c2eeaf49eaafd6259389c7a954a06ed275d31fc41d585309a00dca2d52573511c0a21ef9462bc8fef4721790ed1fb29
languageName: node
linkType: hard
@@ -2146,34 +2314,34 @@ __metadata:
version: 0.0.0-use.local
resolution: "Drupal@workspace:."
dependencies:
- "@ckeditor/ckeditor5-alignment": "npm:~42.0.0"
- "@ckeditor/ckeditor5-autoformat": "npm:~42.0.0"
- "@ckeditor/ckeditor5-basic-styles": "npm:~42.0.0"
- "@ckeditor/ckeditor5-block-quote": "npm:~42.0.0"
- "@ckeditor/ckeditor5-code-block": "npm:~42.0.0"
- "@ckeditor/ckeditor5-editor-classic": "npm:~42.0.0"
- "@ckeditor/ckeditor5-editor-decoupled": "npm:~42.0.0"
- "@ckeditor/ckeditor5-essentials": "npm:~42.0.0"
- "@ckeditor/ckeditor5-heading": "npm:~42.0.0"
- "@ckeditor/ckeditor5-horizontal-line": "npm:~42.0.0"
- "@ckeditor/ckeditor5-html-support": "npm:~42.0.0"
- "@ckeditor/ckeditor5-image": "npm:~42.0.0"
- "@ckeditor/ckeditor5-indent": "npm:~42.0.0"
- "@ckeditor/ckeditor5-language": "npm:~42.0.0"
- "@ckeditor/ckeditor5-link": "npm:~42.0.0"
- "@ckeditor/ckeditor5-list": "npm:~42.0.0"
- "@ckeditor/ckeditor5-paste-from-office": "npm:~42.0.0"
- "@ckeditor/ckeditor5-remove-format": "npm:~42.0.0"
- "@ckeditor/ckeditor5-show-blocks": "npm:~42.0.0"
- "@ckeditor/ckeditor5-source-editing": "npm:~42.0.0"
- "@ckeditor/ckeditor5-special-characters": "npm:~42.0.0"
- "@ckeditor/ckeditor5-style": "npm:~42.0.0"
- "@ckeditor/ckeditor5-table": "npm:~42.0.0"
+ "@ckeditor/ckeditor5-alignment": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-autoformat": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-basic-styles": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-block-quote": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-code-block": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-editor-classic": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-editor-decoupled": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-essentials": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-heading": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-horizontal-line": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-html-support": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-image": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-indent": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-language": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-link": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-list": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-paste-from-office": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-remove-format": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-show-blocks": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-source-editing": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-special-characters": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-style": "npm:~42.0.2"
+ "@ckeditor/ckeditor5-table": "npm:~42.0.2"
"@drupal/once": "npm:^1.0.1"
"@floating-ui/dom": "npm:^1.6.7"
backbone: "npm:^1.6.0"
chokidar: "npm:^3.6.0"
- ckeditor5: "npm:~42.0.0"
+ ckeditor5: "npm:~42.0.2"
cspell: "npm:^8.10.4"
dotenv: "npm:^16.4.5"
dotenv-safe: "npm:^9.1.0"
@@ -2911,68 +3079,68 @@ __metadata:
languageName: node
linkType: hard
-"ckeditor5@npm:42.0.0, ckeditor5@npm:~42.0.0":
- version: 42.0.0
- resolution: "ckeditor5@npm:42.0.0"
+"ckeditor5@npm:42.0.2, ckeditor5@npm:~42.0.2":
+ version: 42.0.2
+ resolution: "ckeditor5@npm:42.0.2"
dependencies:
- "@ckeditor/ckeditor5-adapter-ckfinder": "npm:42.0.0"
- "@ckeditor/ckeditor5-alignment": "npm:42.0.0"
- "@ckeditor/ckeditor5-autoformat": "npm:42.0.0"
- "@ckeditor/ckeditor5-autosave": "npm:42.0.0"
- "@ckeditor/ckeditor5-basic-styles": "npm:42.0.0"
- "@ckeditor/ckeditor5-block-quote": "npm:42.0.0"
- "@ckeditor/ckeditor5-ckbox": "npm:42.0.0"
- "@ckeditor/ckeditor5-ckfinder": "npm:42.0.0"
- "@ckeditor/ckeditor5-clipboard": "npm:42.0.0"
- "@ckeditor/ckeditor5-cloud-services": "npm:42.0.0"
- "@ckeditor/ckeditor5-code-block": "npm:42.0.0"
- "@ckeditor/ckeditor5-core": "npm:42.0.0"
- "@ckeditor/ckeditor5-easy-image": "npm:42.0.0"
- "@ckeditor/ckeditor5-editor-balloon": "npm:42.0.0"
- "@ckeditor/ckeditor5-editor-classic": "npm:42.0.0"
- "@ckeditor/ckeditor5-editor-decoupled": "npm:42.0.0"
- "@ckeditor/ckeditor5-editor-inline": "npm:42.0.0"
- "@ckeditor/ckeditor5-editor-multi-root": "npm:42.0.0"
- "@ckeditor/ckeditor5-engine": "npm:42.0.0"
- "@ckeditor/ckeditor5-enter": "npm:42.0.0"
- "@ckeditor/ckeditor5-essentials": "npm:42.0.0"
- "@ckeditor/ckeditor5-find-and-replace": "npm:42.0.0"
- "@ckeditor/ckeditor5-font": "npm:42.0.0"
- "@ckeditor/ckeditor5-heading": "npm:42.0.0"
- "@ckeditor/ckeditor5-highlight": "npm:42.0.0"
- "@ckeditor/ckeditor5-horizontal-line": "npm:42.0.0"
- "@ckeditor/ckeditor5-html-embed": "npm:42.0.0"
- "@ckeditor/ckeditor5-html-support": "npm:42.0.0"
- "@ckeditor/ckeditor5-image": "npm:42.0.0"
- "@ckeditor/ckeditor5-indent": "npm:42.0.0"
- "@ckeditor/ckeditor5-language": "npm:42.0.0"
- "@ckeditor/ckeditor5-link": "npm:42.0.0"
- "@ckeditor/ckeditor5-list": "npm:42.0.0"
- "@ckeditor/ckeditor5-markdown-gfm": "npm:42.0.0"
- "@ckeditor/ckeditor5-media-embed": "npm:42.0.0"
- "@ckeditor/ckeditor5-mention": "npm:42.0.0"
- "@ckeditor/ckeditor5-minimap": "npm:42.0.0"
- "@ckeditor/ckeditor5-page-break": "npm:42.0.0"
- "@ckeditor/ckeditor5-paragraph": "npm:42.0.0"
- "@ckeditor/ckeditor5-paste-from-office": "npm:42.0.0"
- "@ckeditor/ckeditor5-remove-format": "npm:42.0.0"
- "@ckeditor/ckeditor5-restricted-editing": "npm:42.0.0"
- "@ckeditor/ckeditor5-select-all": "npm:42.0.0"
- "@ckeditor/ckeditor5-show-blocks": "npm:42.0.0"
- "@ckeditor/ckeditor5-source-editing": "npm:42.0.0"
- "@ckeditor/ckeditor5-special-characters": "npm:42.0.0"
- "@ckeditor/ckeditor5-style": "npm:42.0.0"
- "@ckeditor/ckeditor5-table": "npm:42.0.0"
- "@ckeditor/ckeditor5-theme-lark": "npm:42.0.0"
- "@ckeditor/ckeditor5-typing": "npm:42.0.0"
- "@ckeditor/ckeditor5-ui": "npm:42.0.0"
- "@ckeditor/ckeditor5-undo": "npm:42.0.0"
- "@ckeditor/ckeditor5-upload": "npm:42.0.0"
- "@ckeditor/ckeditor5-utils": "npm:42.0.0"
- "@ckeditor/ckeditor5-watchdog": "npm:42.0.0"
- "@ckeditor/ckeditor5-widget": "npm:42.0.0"
- "@ckeditor/ckeditor5-word-count": "npm:42.0.0"
- checksum: 10c0/f58368a7b8cf8c7c791d2e150d981e937fb5b8c8b03d0a4b3cda98a728643971dfbfdf025168f4bddcad5ad279a75b90acdc58b9328c45d3b78213290b565d7a
+ "@ckeditor/ckeditor5-adapter-ckfinder": "npm:42.0.2"
+ "@ckeditor/ckeditor5-alignment": "npm:42.0.2"
+ "@ckeditor/ckeditor5-autoformat": "npm:42.0.2"
+ "@ckeditor/ckeditor5-autosave": "npm:42.0.2"
+ "@ckeditor/ckeditor5-basic-styles": "npm:42.0.2"
+ "@ckeditor/ckeditor5-block-quote": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ckbox": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ckfinder": "npm:42.0.2"
+ "@ckeditor/ckeditor5-clipboard": "npm:42.0.2"
+ "@ckeditor/ckeditor5-cloud-services": "npm:42.0.2"
+ "@ckeditor/ckeditor5-code-block": "npm:42.0.2"
+ "@ckeditor/ckeditor5-core": "npm:42.0.2"
+ "@ckeditor/ckeditor5-easy-image": "npm:42.0.2"
+ "@ckeditor/ckeditor5-editor-balloon": "npm:42.0.2"
+ "@ckeditor/ckeditor5-editor-classic": "npm:42.0.2"
+ "@ckeditor/ckeditor5-editor-decoupled": "npm:42.0.2"
+ "@ckeditor/ckeditor5-editor-inline": "npm:42.0.2"
+ "@ckeditor/ckeditor5-editor-multi-root": "npm:42.0.2"
+ "@ckeditor/ckeditor5-engine": "npm:42.0.2"
+ "@ckeditor/ckeditor5-enter": "npm:42.0.2"
+ "@ckeditor/ckeditor5-essentials": "npm:42.0.2"
+ "@ckeditor/ckeditor5-find-and-replace": "npm:42.0.2"
+ "@ckeditor/ckeditor5-font": "npm:42.0.2"
+ "@ckeditor/ckeditor5-heading": "npm:42.0.2"
+ "@ckeditor/ckeditor5-highlight": "npm:42.0.2"
+ "@ckeditor/ckeditor5-horizontal-line": "npm:42.0.2"
+ "@ckeditor/ckeditor5-html-embed": "npm:42.0.2"
+ "@ckeditor/ckeditor5-html-support": "npm:42.0.2"
+ "@ckeditor/ckeditor5-image": "npm:42.0.2"
+ "@ckeditor/ckeditor5-indent": "npm:42.0.2"
+ "@ckeditor/ckeditor5-language": "npm:42.0.2"
+ "@ckeditor/ckeditor5-link": "npm:42.0.2"
+ "@ckeditor/ckeditor5-list": "npm:42.0.2"
+ "@ckeditor/ckeditor5-markdown-gfm": "npm:42.0.2"
+ "@ckeditor/ckeditor5-media-embed": "npm:42.0.2"
+ "@ckeditor/ckeditor5-mention": "npm:42.0.2"
+ "@ckeditor/ckeditor5-minimap": "npm:42.0.2"
+ "@ckeditor/ckeditor5-page-break": "npm:42.0.2"
+ "@ckeditor/ckeditor5-paragraph": "npm:42.0.2"
+ "@ckeditor/ckeditor5-paste-from-office": "npm:42.0.2"
+ "@ckeditor/ckeditor5-remove-format": "npm:42.0.2"
+ "@ckeditor/ckeditor5-restricted-editing": "npm:42.0.2"
+ "@ckeditor/ckeditor5-select-all": "npm:42.0.2"
+ "@ckeditor/ckeditor5-show-blocks": "npm:42.0.2"
+ "@ckeditor/ckeditor5-source-editing": "npm:42.0.2"
+ "@ckeditor/ckeditor5-special-characters": "npm:42.0.2"
+ "@ckeditor/ckeditor5-style": "npm:42.0.2"
+ "@ckeditor/ckeditor5-table": "npm:42.0.2"
+ "@ckeditor/ckeditor5-theme-lark": "npm:42.0.2"
+ "@ckeditor/ckeditor5-typing": "npm:42.0.2"
+ "@ckeditor/ckeditor5-ui": "npm:42.0.2"
+ "@ckeditor/ckeditor5-undo": "npm:42.0.2"
+ "@ckeditor/ckeditor5-upload": "npm:42.0.2"
+ "@ckeditor/ckeditor5-utils": "npm:42.0.2"
+ "@ckeditor/ckeditor5-watchdog": "npm:42.0.2"
+ "@ckeditor/ckeditor5-widget": "npm:42.0.2"
+ "@ckeditor/ckeditor5-word-count": "npm:42.0.2"
+ checksum: 10c0/94825de6af639819d77447ebb42bf5890aeab0a768a02440f794f0c6af341ec74702637ddf43d2324d3ade91a7d12ec6ba1307ad5729968d9521733210588899
languageName: node
linkType: hard