@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230902.0 → 0.0.0-nightly-20230903.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/track-changes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
!function(
|
|
1
|
+
!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* change table cell properties":"*Format:* change table cell properties","*Format:* change table properties":"*Format:* change table properties","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Format:* replace image URL":"*Format:* replace image URL","*Format:* resize table":"*Format:* resize table","*Format:* set order to regular":"*Format:* set order to regular","*Format:* set order to reversed":"*Format:* set order to reversed","*Format:* set start index to %0":"*Format:* set start index to %0","*Indent:* %0":"*Indent:* %0","*Insert:* %0":"*Insert:* %0","*Merge cells*":"*Merge cells*","*Merge:* %0":"*Merge:* %0","*Outdent:* %0":"*Outdent:* %0","*Remove all formatting*":"*Remove all formatting*","*Remove format:* %0":"*Remove format:* %0","*Remove highlight*":"*Remove highlight*","*Remove image text alternative*":"*Remove image text alternative*","*Remove link*":"*Remove link*","*Remove:* %0":"*Remove:* %0","*Replace table cells*":"*Replace table cells*","*Reset font background color*":"*Reset font background color*","*Reset font color*":"*Reset font color*","*Reset font family*":"*Reset font family*","*Reset font size*":"*Reset font size*","*Reset image width*":"*Reset image width*","*Set font background color:* %0":"*Set font background color:* %0","*Set font color:* %0":"*Set font color:* %0","*Set font family:* %0":"*Set font family:* %0","*Set font size:* %0":"*Set font size:* %0","*Set format to:* %0":"*Set format to:* %0","*Set highlight:* %0":"*Set highlight:* %0","*Set image text alternative:* %0":"*Set image text alternative:* %0","*Set image width:* %0":"*Set image width:* %0","*Set link:* %0":"*Set link:* %0","*Split cell:* horizontally":"*Split cell:* horizontally","*Split cell:* vertically":"*Split cell:* vertically","*Split:* %0":"*Split:* %0","*Uncheck item*":"*Uncheck item*","Accept all selected suggestions":"Accept all selected suggestions","Accept all suggestions":"Accept all suggestions","Accept suggestion":"Accept suggestion","Discard all selected suggestions":"Discard all selected suggestions","Discard all suggestions":"Discard all suggestions","Discard suggestion":"Discard suggestion",ELEMENT_BLOCK_QUOTE:"block quote",ELEMENT_BULLETED_LIST:"bulleted list",ELEMENT_BULLETED_LIST_CIRCLE:"bulleted list (circle)",ELEMENT_BULLETED_LIST_DISC:"bulleted list (disc)",ELEMENT_BULLETED_LIST_SQUARE:"bulleted list (square)",ELEMENT_CAPTION:"caption",ELEMENT_CODE_BLOCK:["code block","%0 code blocks"],ELEMENT_HEADING:["heading (level %1)","%0 headings (level %1)"],ELEMENT_HEADING_CUSTOM:["heading (%1)","%0 headings (%1)"],ELEMENT_HORIZONTAL_LINE:["horizontal line","%0 horizontal lines"],ELEMENT_HTML_EMBED:["HTML embed","%0 HTML embeds"],ELEMENT_IMAGE:["image","%0 images"],ELEMENT_INLINE_IMAGE:["image","%0 images"],ELEMENT_LINE_BREAK:["line break","%0 line breaks"],ELEMENT_LIST_ITEM:["list item","%0 list items"],ELEMENT_MEDIA:["media item","%0 media items"],ELEMENT_NUMBERED_LIST:"numbered list",ELEMENT_NUMBERED_LIST_DECIMAL:"numbered list (decimal)",ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO:"numbered list (decimal with leading zero)",ELEMENT_NUMBERED_LIST_LOWER_LATIN:"numbered list (lower-latin)",ELEMENT_NUMBERED_LIST_LOWER_ROMAN:"numbered list (lower-roman)",ELEMENT_NUMBERED_LIST_UPPER_LATIN:"numbered list (upper-latin)",ELEMENT_NUMBERED_LIST_UPPER_ROMAN:"numbered list (upper-roman)",ELEMENT_PAGE_BREAK:["page break","%0 page breaks"],ELEMENT_PARAGRAPH:["paragraph","%0 paragraphs"],ELEMENT_SPACE:["space","%0 spaces"],ELEMENT_TABLE:["table","%0 tables"],ELEMENT_TABLE_COLUMN:["table column","%0 table columns"],ELEMENT_TABLE_COLUMN_WITH_TEXT:["table column *with text* %1","%0 table columns *with text* %1"],ELEMENT_TABLE_OF_CONTENTS:["table of contents","%0 tables of contents"],ELEMENT_TABLE_ROW:["table row","%0 table rows"],ELEMENT_TABLE_ROW_WITH_TEXT:["table row *with text* %1","%0 table rows *with text* %1"],ELEMENT_TABLE_WITH_TEXT:"table *with text* %0",ELEMENT_TITLE:"title",ELEMENT_TODO_LIST:"to-do list",EXTERNAL_IMPORT_WORD_SUGGESTION:"This suggestion comes from an imported Word file.",EXTERNAL_SUGGESTION:"This suggestion comes from an external source.",FORMAT_ALIGN_TO_CENTER:"align to center",FORMAT_ALIGN_TO_LEFT:"align to left",FORMAT_ALIGN_TO_RIGHT:"align to right",FORMAT_BOLD:"bold",FORMAT_CODE:"code",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",FORMAT_REGULAR_COLUMN:"regular column",FORMAT_REGULAR_ROW:"regular row",FORMAT_RESTRICTED_DISABLED:"*Disable in restricted editing mode*",FORMAT_RESTRICTED_ENABLED:"*Enable in restricted editing mode*",FORMAT_SIDE_IMAGE:"side image",FORMAT_STRIKETHROUGH:"strikethrough",FORMAT_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",PENDING_ACTION_SUGGESTION:"Unsaved change in suggestion.",REPLACE_TEXT:"*Replace:* %0 *with* %1","Track changes":"Track changes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var e={417:(e,t,n)=>{e.exports=n(720)("./src/collaboration-core.js")},704:(e,t,n)=>{e.exports=n(79)("./src/core.js")},492:(e,t,n)=>{e.exports=n(79)("./src/engine.js")},331:(e,t,n)=>{e.exports=n(79)("./src/enter.js")},181:(e,t,n)=>{e.exports=n(79)("./src/typing.js")},273:(e,t,n)=>{e.exports=n(79)("./src/ui.js")},209:(e,t,n)=>{e.exports=n(79)("./src/utils.js")},995:(e,t,n)=>{e.exports=n(79)("./src/widget.js")},720:e=>{"use strict";e.exports=CKEditor5.collaborationDll},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>dc,TrackChanges:()=>Ic,TrackChangesData:()=>Oc,TrackChangesEditing:()=>Wa});var e=n(704),t=n(209),r=n(273),s=n(417),i=n(492),x=n(995);const a=["affectsData","_enabledCommands","isEnabled","TrackChangesCommand","editor","value","refresh","_disableUnsupportedCommands","commands","clearForceDisabled","_isEnabledBasedOnSelection","_enableCommands","has","forceDisabled"];var c,l;c=a,l=120,function(e){for(;--e;)c.push(c.shift())}(++l);const d=function(e,t){return a[e-=0]};class u extends e.Command{constructor(e,t){super(e),this[d("0x7")]=t,this[d("0xb")]=!1,this[d("0xc")](),this[d("0x2")]=!1}refresh(){this[d("0x8")]=!0}execute(){this.value=!this[d("0xb")],this[d("0xb")]?this[d("0xd")]():this._enableCommands()}[d("0xd")](){for(const e of this[d("0xa")][d("0x0")][d("0x0")]())e[d("0x6")]&&!this._enabledCommands[d("0x4")](e)&&e[d("0x5")](d("0x9"))}[d("0x3")](){for(const e of this[d("0xa")].commands[d("0x0")]())e.affectsData&&!this[d("0x7")][d("0x4")](e)&&e[d("0x1")]("TrackChangesCommand")}}const g=["get","acceptSuggestion","_suggestions","track-changes-accept-suggestion-not-found","plugins","isEnabled","editor","canEditAt","refresh","getRanges","execute","TrackChangesEditing"];var m,f;m=g,f=378,function(e){for(;--e;)m.push(m.shift())}(++f);const h=function(e,t){return g[e-=0]};class b extends e.Command{constructor(e,t){super(e),this[h("0x8")]=t,this[h("0x2")](),this._isEnabledBasedOnSelection=!1}[h("0x2")](){this[h("0xb")]=!0}[h("0x4")](e){const n=this._suggestions[h("0x6")](e);if(!n)throw new t.CKEditorError(h("0x9"),this);const o=n[h("0x3")]();this[h("0x0")].model[h("0x1")](o)&&this.editor[h("0xa")][h("0x6")](h("0x5"))[h("0x7")](n)}}const p=["get","editor","plugins","discardSuggestion","execute","track-changes-discard-suggestion-not-found","_isEnabledBasedOnSelection","canEditAt","TrackChangesEditing","getRanges","refresh","model","_suggestions"];var E,_;E=p,_=293,function(e){for(;--e;)E.push(E.shift())}(++_);const T=function(e,t){return p[e-=0]};class C extends e.Command{constructor(e,t){super(e),this[T("0x5")]=t,this[T("0x3")](),this[T("0xc")]=!1}[T("0x3")](){this.isEnabled=!0}[T("0xa")](e){const n=this[T("0x5")][T("0x6")](e);if(!n)throw new t.CKEditorError(T("0xb"),this);const o=n[T("0x2")]();this.editor[T("0x4")][T("0x0")](o)&&this[T("0x7")][T("0x8")][T("0x6")](T("0x1"))[T("0x9")](n)}}const y=["isCollapsed","createPositionAt","isTouching","join","add","replace","end","length","push","isMultiRange","createPositionAfter","createPositionBefore","from","content","isInContent"," [color ","deletion","color","map","change","isIntersecting","type","execute","schema","splice","next","getRanges","isObject","sort","isArray","value"];var k,A;k=y,A=140,function(e){for(;--e;)k.push(k.shift())}(++A);const v=function(e,t){return y[e-=0]};function R(e){return e[v("0xc")](((e,t)=>v("0x0")==e[v("0x5")]&&v("0x0")!=t[v("0x5")]?-1:v("0x0")!=e[v("0x5")]&&v("0x0")==t[v("0x5")]?1:0))}function I(e,t){let n,o=0;const r=[],s=t[v("0x7")];for(;o<e[v("0x16")];){const i=e[o],x=e[o+1];n||(n=t[v("0x1a")](i)),S(t,i,x)||(r[v("0x17")](t.createRange(n,s[v("0xb")](i)?t[v("0x19")](i):t[v("0x10")](i,v("0x15")))),n=null),o++}return r}function S(e,t,n){if(!n)return!1;const o=e[v("0x19")](t),r=e[v("0x1a")](n);return o.isTouching(r)}function L(e,t,n){for(;n[v("0x16")];){const o=n[v("0x8")](0,100);e[v("0x3")]((()=>{for(const e of o)e[v("0x1d")]&&t[v("0x6")](e.id)}))}}const N=["canEditAt","_isEnabledBasedOnSelection","_suggestions","editor","from","model","execute","isInContent","getRanges","refresh","isEnabled","values"];var M,w;M=N,w=412,function(e){for(;--e;)M.push(M.shift())}(++w);const O=function(e,t){return N[e-=0]};class F extends e.Command{constructor(e,t,n){super(e),this._command=t,this[O("0xa")]=n,this[O("0x5")](),this[O("0x9")]=!1}refresh(){const e=Array.from(this[O("0xa")][O("0x7")]()).some((e=>e[O("0x3")]));this[O("0x6")]=this._command[O("0x6")]&&e}[O("0x2")](){const e=R(Array[O("0x0")](this[O("0xa")][O("0x7")]()));for(const t of e){const e=t[O("0x4")]();if(!this.editor[O("0x1")][O("0x8")](e))return}L(this[O("0xb")].model,this._command,e)}}const P=["editor","from","document","_command","selection","_selectedSuggestions","execute","model","isEnabled","canEditAt","refresh","values","_isEnabledBasedOnSelection","size","_suggestions"];var D,B;D=P,B=498,function(e){for(;--e;)D.push(D.shift())}(++B);const j=function(e,t){return P[e-=0]};class U extends e.Command{constructor(e,t,n){super(e),this[j("0x0")]=t,this[j("0xb")]=n,this[j("0x2")]=new Set,this.refresh(),this[j("0x9")]=!1}[j("0x7")](){const e=this[j("0xc")][j("0x4")][j("0xe")][j("0x1")],t=Array[j("0xd")](this[j("0xb")][j("0x8")]());this[j("0x2")]=function(e,t){const n=Array[v("0x1b")](e[v("0xa")]()),o=new Set;for(const r of t)if(r.isInContent)for(const t of n)for(const n of r.getRanges())(t[v("0x4")](n)||e[v("0xf")]&&!r[v("0x18")]&&r[v("0x9")]&&n[v("0x15")][v("0x11")](t.start))&&o[v("0x13")](r);return o}(e,t),this[j("0x5")]=this[j("0x0")][j("0x5")]&&!!this[j("0x2")][j("0xa")]}[j("0x3")](){const e=R(Array.from(this[j("0x2")]));for(const t of e){const e=t.getRanges();if(!this[j("0xc")].model[j("0x6")](e))return}L(this[j("0xc")][j("0x4")],this._command,e)}}const G=function(){this.__data__=[],this.size=0};const H=function(e,t){return e===t||e!=e&&t!=t};const z=function(e,t){for(var n=e.length;n--;)if(H(e[n][0],t))return n;return-1};var W=Array.prototype.splice;const V=function(e){var t=this.__data__,n=z(t,e);return!(n<0)&&(n==t.length-1?t.pop():W.call(t,n,1),--this.size,!0)};const K=function(e){var t=this.__data__,n=z(t,e);return n<0?void 0:t[n][1]};const q=function(e){return z(this.__data__,e)>-1};const X=function(e,t){var n=this.__data__,o=z(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function $(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Q=$;const J=function(){this.__data__=new Q,this.size=0};const Z=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const Y=function(e){return this.__data__.get(e)};const ee=function(e){return this.__data__.has(e)};const te="object"==typeof global&&global&&global.Object===Object&&global;var ne="object"==typeof self&&self&&self.Object===Object&&self;const oe=te||ne||Function("return this")();const re=oe.Symbol;var se=Object.prototype,ie=se.hasOwnProperty,xe=se.toString,ae=re?re.toStringTag:void 0;const ce=function(e){var t=ie.call(e,ae),n=e[ae];try{e[ae]=void 0;var o=!0}catch(e){}var r=xe.call(e);return o&&(t?e[ae]=n:delete e[ae]),r};var le=Object.prototype.toString;const de=function(e){return le.call(e)};var ue=re?re.toStringTag:void 0;const ge=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ue&&ue in Object(e)?ce(e):de(e)};const me=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const fe=function(e){if(!me(e))return!1;var t=ge(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const he=oe["__core-js_shared__"];var be,pe=(be=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||""))?"Symbol(src)_1."+be:"";const Ee=function(e){return!!pe&&pe in e};var _e=Function.prototype.toString;const Te=function(e){if(null!=e){try{return _e.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Ce=/^\[object .+?Constructor\]$/,ye=Function.prototype,ke=Object.prototype,Ae=ye.toString,ve=ke.hasOwnProperty,Re=RegExp("^"+Ae.call(ve).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ie=function(e){return!(!me(e)||Ee(e))&&(fe(e)?Re:Ce).test(Te(e))};const Se=function(e,t){return null==e?void 0:e[t]};const Le=function(e,t){var n=Se(e,t);return Ie(n)?n:void 0};const Ne=Le(oe,"Map");const Me=Le(Object,"create");const we=function(){this.__data__=Me?Me(null):{},this.size=0};const Oe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Fe=Object.prototype.hasOwnProperty;const Pe=function(e){var t=this.__data__;if(Me){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Fe.call(t,e)?t[e]:void 0};var De=Object.prototype.hasOwnProperty;const Be=function(e){var t=this.__data__;return Me?void 0!==t[e]:De.call(t,e)};const je=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Me&&void 0===t?"__lodash_hash_undefined__":t,this};function Ue(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ue.prototype.clear=we,Ue.prototype.delete=Oe,Ue.prototype.get=Pe,Ue.prototype.has=Be,Ue.prototype.set=je;const Ge=Ue;const He=function(){this.size=0,this.__data__={hash:new Ge,map:new(Ne||Q),string:new Ge}};const ze=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const We=function(e,t){var n=e.__data__;return ze(t)?n["string"==typeof t?"string":"hash"]:n.map};const Ve=function(e){var t=We(this,e).delete(e);return this.size-=t?1:0,t};const Ke=function(e){return We(this,e).get(e)};const qe=function(e){return We(this,e).has(e)};const Xe=function(e,t){var n=We(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};function $e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}$e.prototype.clear=He,$e.prototype.delete=Ve,$e.prototype.get=Ke,$e.prototype.has=qe,$e.prototype.set=Xe;const Qe=$e;const Je=function(e,t){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Ne||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qe(o)}return n.set(e,t),this.size=n.size,this};function Ze(e){var t=this.__data__=new Q(e);this.size=t.size}Ze.prototype.clear=J,Ze.prototype.delete=Z,Ze.prototype.get=Y,Ze.prototype.has=ee,Ze.prototype.set=Je;const Ye=Ze;const et=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e};const tt=function(){try{var e=Le(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const nt=function(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var ot=Object.prototype.hasOwnProperty;const rt=function(e,t,n){var o=e[t];ot.call(e,t)&&H(o,n)&&(void 0!==n||t in e)||nt(e,t,n)};const st=function(e,t,n,o){var r=!n;n||(n={});for(var s=-1,i=t.length;++s<i;){var x=t[s],a=o?o(n[x],e[x],x,n,e):void 0;void 0===a&&(a=e[x]),r?nt(n,x,a):rt(n,x,a)}return n};const it=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};const xt=function(e){return null!=e&&"object"==typeof e};const at=function(e){return xt(e)&&"[object Arguments]"==ge(e)};var ct=Object.prototype,lt=ct.hasOwnProperty,dt=ct.propertyIsEnumerable;const ut=at(function(){return arguments}())?at:function(e){return xt(e)&<.call(e,"callee")&&!dt.call(e,"callee")};const gt=Array.isArray;const mt=function(){return!1};var ft="object"==typeof exports&&exports&&!exports.nodeType&&exports,ht=ft&&"object"==typeof module&&module&&!module.nodeType&&module,bt=ht&&ht.exports===ft?oe.Buffer:void 0;const pt=(bt?bt.isBuffer:void 0)||mt;var Et=/^(?:0|[1-9]\d*)$/;const _t=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Et.test(e))&&e>-1&&e%1==0&&e<t};const Tt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Ct={};Ct["[object Float32Array]"]=Ct["[object Float64Array]"]=Ct["[object Int8Array]"]=Ct["[object Int16Array]"]=Ct["[object Int32Array]"]=Ct["[object Uint8Array]"]=Ct["[object Uint8ClampedArray]"]=Ct["[object Uint16Array]"]=Ct["[object Uint32Array]"]=!0,Ct["[object Arguments]"]=Ct["[object Array]"]=Ct["[object ArrayBuffer]"]=Ct["[object Boolean]"]=Ct["[object DataView]"]=Ct["[object Date]"]=Ct["[object Error]"]=Ct["[object Function]"]=Ct["[object Map]"]=Ct["[object Number]"]=Ct["[object Object]"]=Ct["[object RegExp]"]=Ct["[object Set]"]=Ct["[object String]"]=Ct["[object WeakMap]"]=!1;const yt=function(e){return xt(e)&&Tt(e.length)&&!!Ct[ge(e)]};const kt=function(e){return function(t){return e(t)}};var At="object"==typeof exports&&exports&&!exports.nodeType&&exports,vt=At&&"object"==typeof module&&module&&!module.nodeType&&module,Rt=vt&&vt.exports===At&&te.process;const It=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||Rt&&Rt.binding&&Rt.binding("util")}catch(e){}}();var St=It&&It.isTypedArray;const Lt=St?kt(St):yt;var Nt=Object.prototype.hasOwnProperty;const Mt=function(e,t){var n=gt(e),o=!n&&ut(e),r=!n&&!o&&pt(e),s=!n&&!o&&!r&&Lt(e),i=n||o||r||s,x=i?it(e.length,String):[],a=x.length;for(var c in e)!t&&!Nt.call(e,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_t(c,a))||x.push(c);return x};var wt=Object.prototype;const Ot=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||wt)};const Ft=function(e,t){return function(n){return e(t(n))}};const Pt=Ft(Object.keys,Object);var Dt=Object.prototype.hasOwnProperty;const Bt=function(e){if(!Ot(e))return Pt(e);var t=[];for(var n in Object(e))Dt.call(e,n)&&"constructor"!=n&&t.push(n);return t};const jt=function(e){return null!=e&&Tt(e.length)&&!fe(e)};const Ut=function(e){return jt(e)?Mt(e):Bt(e)};const Gt=function(e,t){return e&&st(t,Ut(t),e)};const Ht=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var zt=Object.prototype.hasOwnProperty;const Wt=function(e){if(!me(e))return Ht(e);var t=Ot(e),n=[];for(var o in e)("constructor"!=o||!t&&zt.call(e,o))&&n.push(o);return n};const Vt=function(e){return jt(e)?Mt(e,!0):Wt(e)};const Kt=function(e,t){return e&&st(t,Vt(t),e)};var qt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xt=qt&&"object"==typeof module&&module&&!module.nodeType&&module,$t=Xt&&Xt.exports===qt?oe.Buffer:void 0,Qt=$t?$t.allocUnsafe:void 0;const Jt=function(e,t){if(t)return e.slice();var n=e.length,o=Qt?Qt(n):new e.constructor(n);return e.copy(o),o};const Zt=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t};const Yt=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,s=[];++n<o;){var i=e[n];t(i,n,e)&&(s[r++]=i)}return s};const en=function(){return[]};var tn=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(e){return null==e?[]:(e=Object(e),Yt(nn(e),(function(t){return tn.call(e,t)})))}:en;const rn=function(e,t){return st(e,on(e),t)};const sn=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e};const xn=Ft(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)sn(t,on(e)),e=xn(e);return t}:en;const cn=function(e,t){return st(e,an(e),t)};const ln=function(e,t,n){var o=t(e);return gt(e)?o:sn(o,n(e))};const dn=function(e){return ln(e,Ut,on)};const un=function(e){return ln(e,Vt,an)};const gn=Le(oe,"DataView");const mn=Le(oe,"Promise");const fn=Le(oe,"Set");const hn=Le(oe,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Te(gn),yn=Te(Ne),kn=Te(mn),An=Te(fn),vn=Te(hn),Rn=ge;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Ne&&Rn(new Ne)!=bn||mn&&Rn(mn.resolve())!=pn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(e){var t=ge(e),n="[object Object]"==t?e.constructor:void 0,o=n?Te(n):"";if(o)switch(o){case Cn:return Tn;case yn:return bn;case kn:return pn;case An:return En;case vn:return _n}return t});const In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Sn.call(e,"index")&&(n.index=e.index,n.input=e.input),n};const Nn=oe.Uint8Array;const Mn=function(e){var t=new e.constructor(e.byteLength);return new Nn(t).set(new Nn(e)),t};const wn=function(e,t){var n=t?Mn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var On=/\w*$/;const Fn=function(e){var t=new e.constructor(e.source,On.exec(e));return t.lastIndex=e.lastIndex,t};var Pn=re?re.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(e){return Dn?Object(Dn.call(e)):{}};const jn=function(e,t){var n=t?Mn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const Un=function(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return Mn(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return wn(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return Fn(e);case"[object Symbol]":return Bn(e)}};var Gn=Object.create;const Hn=function(){function e(){}return function(t){if(!me(t))return{};if(Gn)return Gn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const zn=function(e){return"function"!=typeof e.constructor||Ot(e)?{}:Hn(xn(e))};const Wn=function(e){return xt(e)&&"[object Map]"==In(e)};var Vn=It&&It.isMap;const Kn=Vn?kt(Vn):Wn;const qn=function(e){return xt(e)&&"[object Set]"==In(e)};var Xn=It&&It.isSet;const $n=Xn?kt(Xn):qn;var Qn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Yn={};Yn[Qn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Jn]=Yn["[object WeakMap]"]=!1;const eo=function e(t,n,o,r,s,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=s?o(t,r,s,i):o(t)),void 0!==x)return x;if(!me(t))return t;var d=gt(t);if(d){if(x=Ln(t),!a)return Zt(t,x)}else{var u=In(t),g=u==Jn||"[object GeneratorFunction]"==u;if(pt(t))return Jt(t,a);if(u==Zn||u==Qn||g&&!s){if(x=c||g?{}:zn(t),!a)return c?cn(t,Kt(x,t)):rn(t,Gt(x,t))}else{if(!Yn[u])return s?t:{};x=Un(t,u,a)}}i||(i=new Ye);var m=i.get(t);if(m)return m;i.set(t,x),$n(t)?t.forEach((function(r){x.add(e(r,n,o,r,t,i))})):Kn(t)&&t.forEach((function(r,s){x.set(s,e(r,n,o,s,t,i))}));var f=d?void 0:(l?c?un:dn:c?Vt:Ut)(t);return et(f||t,(function(r,s){f&&(r=t[s=r]),rt(x,s,e(r,n,o,s,t,i))})),x};const to=function(e){return eo(e,5)};const no=function(e){return"symbol"==typeof e||xt(e)&&"[object Symbol]"==ge(e)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ro=/^\w*$/;const so=function(e,t){if(gt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!no(e))||(ro.test(e)||!oo.test(e)||null!=t&&e in Object(t))};function io(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=e.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new(io.Cache||Qe),n}io.Cache=Qe;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(e){var t=xo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ao,(function(e,n,o,r){t.push(o?r.replace(co,"$1"):n||e)})),t}));const uo=function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r};var go=re?re.prototype:void 0,mo=go?go.toString:void 0;const fo=function e(t){if("string"==typeof t)return t;if(gt(t))return uo(t,e)+"";if(no(t))return mo?mo.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};const ho=function(e){return null==e?"":fo(e)};const bo=function(e,t){return gt(e)?e:so(e,t)?[e]:lo(ho(e))};const po=function(e){if("string"==typeof e||no(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};const Eo=function(e,t,n,o){if(!me(e))return e;for(var r=-1,s=(t=bo(t,e)).length,i=s-1,x=e;null!=x&&++r<s;){var a=po(t[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return e;if(r!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=me(l)?l:_t(t[r+1])?[]:{})}rt(x,a,c),x=x[a]}return e};const _o=function(e,t,n){return null==e?e:Eo(e,t,n)};const To=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const Co=function(e){return this.__data__.has(e)};function yo(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Qe;++t<n;)this.add(e[t])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};const vo=function(e,t){return e.has(t)};const Ro=function(e,t,n,o,r,s){var i=1&n,x=e.length,a=t.length;if(x!=a&&!(i&&a>x))return!1;var c=s.get(e),l=s.get(t);if(c&&l)return c==t&&l==e;var d=-1,u=!0,g=2&n?new ko:void 0;for(s.set(e,t),s.set(t,e);++d<x;){var m=e[d],f=t[d];if(o)var h=i?o(f,m,d,t,e,s):o(m,f,d,e,t,s);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(t,(function(e,t){if(!vo(g,t)&&(m===e||r(m,e,n,o,s)))return g.push(t)}))){u=!1;break}}else if(m!==f&&!r(m,f,n,o,s)){u=!1;break}}return s.delete(e),s.delete(t),u};const Io=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};const So=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var Lo=re?re.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(e,t,n,o,r,s,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new Nn(e),new Nn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=So),e.size!=t.size&&!a)return!1;var c=i.get(e);if(c)return c==t;o|=2,i.set(e,t);var l=Ro(x(e),x(t),o,r,s,i);return i.delete(e),l;case"[object Symbol]":if(No)return No.call(e)==No.call(t)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(e,t,n,o,r,s){var i=1&n,x=dn(e),a=x.length;if(a!=dn(t).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in t:wo.call(t,l)))return!1}var d=s.get(e),u=s.get(t);if(d&&u)return d==t&&u==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=i;++c<a;){var f=e[l=x[c]],h=t[l];if(o)var b=i?o(h,f,l,t,e,s):o(f,h,l,e,t,s);if(!(void 0===b?f===h||r(f,h,n,o,s):b)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var p=e.constructor,E=t.constructor;p==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof p&&p instanceof p&&"function"==typeof E&&E instanceof E||(g=!1)}return s.delete(e),s.delete(t),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(e,t,n,o,r,s){var i=gt(e),x=gt(t),a=i?Po:In(e),c=x?Po:In(t),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&pt(e)){if(!pt(t))return!1;i=!0,l=!1}if(u&&!l)return s||(s=new Ye),i||Lt(e)?Ro(e,t,n,o,r,s):Mo(e,t,a,n,o,r,s);if(!(1&n)){var g=l&&Bo.call(e,"__wrapped__"),m=d&&Bo.call(t,"__wrapped__");if(g||m){var f=g?e.value():e,h=m?t.value():t;return s||(s=new Ye),r(f,h,n,o,s)}}return!!u&&(s||(s=new Ye),Oo(e,t,n,o,r,s))};const Uo=function e(t,n,o,r,s){return t===n||(null==t||null==n||!xt(t)&&!xt(n)?t!=t&&n!=n:jo(t,n,o,r,e,s))};const Go=function(e,t){return Uo(e,t)};const Ho=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};const zo=function(e,t){for(var n=0,o=(t=bo(t,e)).length;null!=e&&n<o;)e=e[po(t[n++])];return n&&n==o?e:void 0};const Wo=function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(r);++o<r;)s[o]=e[o+t];return s};const Vo=function(e,t){return t.length<2?e:zo(e,Wo(t,0,-1))};const Ko=function(e,t){return t=bo(t,e),null==(e=Vo(e,t))||delete e[po(Ho(t))]};const qo=function(e,t){return null==e||Ko(e,t)},Xo=["_saved","suggestion:","_markerNames","@external","subType","getFirstMarker","head","_onDiscard","addRange","attributes","previous","removeMarker","substr","size","removeAttribute","_isDataLoaded","getMultiRangeId","accept","type","toJSON","removeMarkers","getRange","decorate","getMarkers","length","addMarkerName","commentThread","getMarkerNames","split","start","isIntersectingWithRange","change","_model","getItems","createdAt","getRanges","from","nodeAfter","hasComments","data","author","next","addMarker","authoredAt","_onAttributesChange","_onAccept","getContainedElement","set","discard","creator","getFirstRange","setAttribute","end","push","markers","nodeBefore","isIntersecting","getAllAdjacentSuggestions","delete","onAttributesChange"];var $o,Qo;$o=Xo,Qo=409,function(e){for(;--e;)$o.push($o.shift())}(++Qo);const Jo=function(e,t){return Xo[e-=0]};class Zo extends((0,t.ObservableMixin)()){constructor(e,t){super(),this[Jo("0x1a")]=!1,this.id=t.id,this[Jo("0x1d")]=t[Jo("0x1d")],this[Jo("0xf")]=t[Jo("0xf")]||null,this[Jo("0x33")]=t[Jo("0x33")],this[Jo("0x0")]=t[Jo("0x0")]||t[Jo("0x33")],this.isExternal=Boolean(t.attributes&&t[Jo("0x14")][Jo("0xe")]),this[Jo("0x32")]=null,this._model=e,this[Jo("0x38")]=t.onAccept,this[Jo("0x12")]=t.onDiscard,this[Jo("0x37")]=t[Jo("0xa")],this[Jo("0xd")]=new Set,this[Jo("0x2d")]=null,this[Jo("0x3a")](Jo("0x36"),null),this.set(Jo("0x14"),t.attributes||{}),this.set("previous",null),this[Jo("0x3a")]("next",null),this.set("commentThread",null),this[Jo("0x3a")](Jo("0xb"),!1),this[Jo("0x21")](Jo("0x1c")),this[Jo("0x21")](Jo("0x3b"))}get[Jo("0x11")](){let e=this;for(;e[Jo("0x15")];)e=e.previous;return e}get[Jo("0x31")](){return!!this.commentThread&&this[Jo("0x25")][Jo("0x23")]>0}get isMultiRange(){return 0!=this[Jo("0xd")][Jo("0x18")]&&6==Array[Jo("0x2f")](this[Jo("0xd")])[0][Jo("0x27")](":")[Jo("0x23")]}get isInContent(){return null!==this.getFirstMarker()}addMarkerName(e){this[Jo("0xd")].add(e)}[Jo("0x26")](){return Array.from(this._markerNames)}[Jo("0x22")](){return this[Jo("0x26")]().map((e=>this._model[Jo("0x5")].get(e))).filter((e=>e))}[Jo("0x10")](){return this[Jo("0x22")]()[0]||null}removeMarkers(){this[Jo("0x2b")][Jo("0x2a")]((e=>{for(const t of this[Jo("0x22")]())e[Jo("0x16")](t)})),this._markerNames.clear()}[Jo("0x16")](e){this[Jo("0x2b")][Jo("0x2a")]((t=>{t[Jo("0x16")](e)})),this[Jo("0xd")][Jo("0x9")](e)}[Jo("0x13")](e){const t=Jo("0xc")+this[Jo("0x1d")]+":"+this[Jo("0xf")]+":"+this.id+":"+this.creator.id+":"+Zo[Jo("0x1b")]();this[Jo("0x24")](t),this._model[Jo("0x2a")]((n=>{n[Jo("0x35")](t,{range:e,usingOperation:!0,affectsData:!0})}))}[Jo("0x29")](e){for(const t of this[Jo("0x2e")]())if(t[Jo("0x7")](e))return!0;return!1}[Jo("0x2e")](){return this[Jo("0x22")]().map((e=>e[Jo("0x20")]()))}getItems(){return this.getRanges().reduce(((e,t)=>[...e,...t[Jo("0x2c")]()]),[])}[Jo("0x1")](){var e;return(null===(e=this.getFirstMarker())||void 0===e?void 0:e.getRange())||null}[Jo("0x39")](){const e=this[Jo("0x2e")]();if(1!=e.length)return null;const t=e[0],n=t[Jo("0x28")][Jo("0x30")],o=t[Jo("0x3")][Jo("0x6")];return n instanceof i.Element?n!=o?null:n:null}[Jo("0x1c")](){this._onAccept(this[Jo("0x2e")](),this[Jo("0x32")],this[Jo("0x14")]),this[Jo("0x1f")]()}[Jo("0x3b")](){this._onDiscard(this.getRanges(),this[Jo("0x32")],this.attributes),this[Jo("0x1f")]()}[Jo("0x8")](){const e=[];let t=this[Jo("0x11")];for(;t;)e[Jo("0x4")](t),t=t[Jo("0x34")];return e}[Jo("0x2")](e,t){const n=to(this[Jo("0x14")]);_o(n,e,t),Go(n,this.attributes)||(this[Jo("0x14")]=n,this[Jo("0x37")](n))}[Jo("0x19")](e){const t=to(this[Jo("0x14")]);qo(t,e),Go(t,this[Jo("0x14")])||(this[Jo("0x14")]=t,this[Jo("0x37")](this[Jo("0x14")]))}[Jo("0x1e")](){return{id:this.id,type:this.subType?this[Jo("0x1d")]+":"+this[Jo("0xf")]:this[Jo("0x1d")],authorId:this[Jo("0x0")].id,createdAt:this[Jo("0x2d")],hasComments:this.hasComments,data:this[Jo("0x32")],attributes:this[Jo("0x14")]}}static[Jo("0x1b")](){return(0,t.uid)()[Jo("0x17")](1,5)}}function Yo(e,t,n){const o=e.t;switch(t){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return t}}const er=["_schema","add","getWalker","softBreak","deletion","quantity","isEmpty","item","pop","REPLACE_TEXT","registerDescriptionCallback","type","function","push","get","_customCallbacks","matchingCallback","removeContainer","_resolveDescriptionItems","getItemLabel","insertion","_itemLabels","name","end","nextSibling","checkChild","addContainer","start","removeObject","element","replace","ELEMENT_SPACE","*Remove:* %0","elementEnd","*Split:* %0","indexOf","addEmptyContainer","*Merge:* %0","isInContent","previousSibling","data","*Insert:* %0","text","isObject","EmptyContainer","$text","elementStart","match","Object","addObject","Container","label","getFirstRange","$1 $2","getDescriptions","_itemLabelsCallbacks","_locale","length","remove","removeEmptyContainer","normal"];var tr,nr;tr=er,nr=309,function(e){for(;--e;)tr.push(tr.shift())}(++nr);const or=function(e,t){return er[e-=0]};class rr{constructor(e,t){this._customCallbacks=[],this[or("0x11")]=new Map,this[or("0x33")]=[],this[or("0x39")]=e,this[or("0x34")]=t}[or("0x32")](e){const t=[];for(let n=0;n<e[or("0x35")];n++){const o=e[n];if(!o[or("0x22")])continue;let r=!1;for(const e of this[or("0xb")]){const n=e(o);if(n){or("0x7")in n&&t.push(n),r=!0;break}}if(!r){this._addDescriptionItems(t,o);const r=e[n+1];if(r&&!o[or("0x30")]()[or("0x13")].isEqual(r.getFirstRange()[or("0x17")])){const e=t[t[or("0x35")]-1],n=or("0x10")==o[or("0x7")]?or("0x3a"):or("0x36");e&&or("0x26")==e.type&&(e[n]+="\n")}}}return this[or("0xe")](t)}[or("0x6")](e){this[or("0xb")][or("0x9")](e)}registerElementLabel(e,n,o=t.priorities[or("0x38")]){or("0x8")==typeof e?(0,t.insertToPriorityArray)(this[or("0x33")],{matchingCallback:e,label:n,priority:o}):this[or("0x11")].set(e,n)}[or("0xf")](e,t=1){let n;for(const t of this._itemLabelsCallbacks)if(t[or("0xc")](e)){n=t[or("0x2f")];break}return n||(n=this._itemLabels[or("0xa")](e[or("0x12")])),n?n(t):1!==t?t+" "+e.name+"s":""+e.name}_addDescriptionItems(e,t){const n=t[or("0x30")]()[or("0x3b")](),o=or("0x10")==t.type?"add":or("0x36");for(const t of n){const r=t.item,s=e[e[or("0x35")]-1];if(r.is("$textProxy"))s&&s[or("0x7")][or("0x1f")]("Container")>-1&&e[or("0x4")](),s&&or("0x26")==s.type?s[o]+=r.data:e[or("0x9")]({type:or("0x26"),add:or("0x3a")==o?r.data:"",remove:"remove"==o?r[or("0x24")]:""});else if(this[or("0x39")][or("0x27")](r)){const i=r;if(s&&s[or("0x7")][or("0x1f")]("Container")>-1&&e.pop(),or("0x1d")==t.type)continue;s&&s[or("0x7")]==o+or("0x2c")&&s.element[or("0x12")]==i[or("0x12")]?s.quantity++:e[or("0x9")]({type:o+or("0x2c"),element:i,quantity:1}),n.skip((e=>!("elementEnd"==e[or("0x7")]&&e[or("0x3")]==r)))}else if(this[or("0x39")][or("0x15")](r,or("0x29"))||r.is(or("0x19"),or("0x3c"))){const n=r;if("add"==o&&or("0x2a")==t[or("0x7")]||"remove"==o&&or("0x1d")==t.type)continue;if(s&&-1==s[or("0x7")][or("0x1f")](or("0x2e"))){"text"==s[or("0x7")]&&(s[o]+="\n");continue}let i;if(i=or("0x3a")==o?n[or("0x14")]&&!this[or("0x39")][or("0x27")](n[or("0x14")])?n[or("0x14")]:null:n.previousSibling&&!this._schema[or("0x27")](n.previousSibling)?n[or("0x23")]:null,n.isEmpty||i&&i[or("0x2")]){const t=i&&i[or("0x2")]?i:n;s&&s[or("0x7")]==o+or("0x28")&&s[or("0x19")].name==t[or("0x12")]?s[or("0x1")]++:e[or("0x9")]({type:o+"EmptyContainer",element:t,quantity:1})}else e[or("0x9")]({type:o+"Container",element:n})}}}[or("0xe")](e){const t=this._locale,n=[];for(const o of e){switch(o[or("0x7")]){case or("0x26"):if(o[or("0x3a")]=o.add[or("0x1a")](/(\S)\u000A+(\S)/g,or("0x31"))[or("0x1a")](/\u000A/g,""),o.remove=o[or("0x36")][or("0x1a")](/(\S)\u000A+(\S)/g,"$1 $2")[or("0x1a")](/\u000A/g,""),""!=o[or("0x3a")]&&""!=o.remove){n.push({type:or("0x1a"),content:Yo(t,or("0x5"),['"'+o.remove+'"','"'+o[or("0x3a")]+'"'])});continue}if(null!=o[or("0x3a")][or("0x2b")](/^ +$/)){n[or("0x9")]({type:or("0x10"),content:Yo(t,or("0x25"),Yo(t,or("0x1b"),o.add.length))});continue}if(null!=o[or("0x36")][or("0x2b")](/^ +$/)){n[or("0x9")]({type:"deletion",content:Yo(t,or("0x1c"),Yo(t,or("0x1b"),o[or("0x36")][or("0x35")]))});continue}if(""!=o[or("0x3a")]){n[or("0x9")]({type:or("0x10"),content:Yo(t,"*Insert:* %0",'"'+o[or("0x3a")]+'"')});continue}n[or("0x9")]({type:or("0x0"),content:Yo(t,or("0x1c"),'"'+o[or("0x36")]+'"')});continue;case or("0x20"):case or("0x2d"):n.push({type:or("0x10"),content:Yo(t,or("0x25"),this[or("0xf")](o.element,o[or("0x1")]))});continue;case or("0x37"):case or("0x18"):n[or("0x9")]({type:"deletion",content:Yo(t,or("0x1c"),this.getItemLabel(o[or("0x19")],o[or("0x1")]))});continue;case or("0x16"):n.push({type:"insertion",content:Yo(t,or("0x1e"),this[or("0xf")](o[or("0x19")],o[or("0x1")]))});continue;case or("0xd"):n[or("0x9")]({type:"deletion",content:Yo(t,or("0x21"),this[or("0xf")](o[or("0x19")],o[or("0x1")]))});continue}n.push(o)}return n}}const sr=["*Format:* %0","value","AlignmentEditing","justify","from","afterInit","right","getSelectedBlocks","locale","alignment","TrackChangesEditing","editor","enableCommand","schema","change","contentLanguageDirection","left","format","plugins","markBlockFormat","get","getAttribute","model","FORMAT_ALIGN_TO_LEFT"];var ir,xr;ir=sr,xr=373,function(e){for(;--e;)ir.push(ir.shift())}(++xr);const ar=function(e,t){return sr[e-=0]};class cr extends e.Plugin{[ar("0x10")](){const e=this[ar("0x16")],t=e[ar("0x13")];if(!e[ar("0x5")].has(ar("0xd")))return;const n=e[ar("0x5")][ar("0x7")](ar("0x15"));n[ar("0x17")](ar("0x14"),((t,o={})=>{let r=o[ar("0xc")];o[ar("0xc")]||(r="ltr"===e[ar("0x13")][ar("0x2")]?"left":ar("0x11"));const s=Array[ar("0xf")](this[ar("0x16")][ar("0x9")].document.selection[ar("0x12")]()).filter((e=>function(e,t,n){const o=e[ar("0x8")](ar("0x14"))||null;return t.checkAttribute(e,ar("0x14"))&&n!=o}(e,this[ar("0x16")].model[ar("0x0")],r)));e[ar("0x9")][ar("0x1")]((()=>{for(const e of s)n[ar("0x6")](e,{commandName:ar("0x14"),commandParams:[{value:r}]})}))})),n._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e;if(n&&ar("0x14")==n.commandName){const e=n.commandParams[0][ar("0xc")];return{type:ar("0x4"),content:Yo(t,ar("0xb"),function(e){switch(e){case ar("0x3"):return Yo(t,ar("0xa"));case ar("0x11"):return Yo(t,"FORMAT_ALIGN_TO_RIGHT");case"center":return Yo(t,"FORMAT_ALIGN_TO_CENTER");case ar("0xe"):return Yo(t,"FORMAT_JUSTIFY_TEXT")}}(e))}}}))}}const lr=["createRangeOn","hasAttribute","mapper","getCustomProperty","markerName","isAtEnd","item","span","name","writer","getItems","insert","toViewElement","start","ck-suggestion-marker-","includes","push","isBlock","consumable","element","previousPosition","listIndent","addHighlight","markerRange","toViewPosition","nextSibling","createUIElement","ck-suggestion-marker--active","bindElementToMarker","isContent","listItem","test","model","type","parent","elementEnd"];var dr,ur;dr=lr,ur=374,function(e){for(;--e;)dr.push(dr.shift())}(++ur);const gr=function(e,t){return lr[e-=0]};function mr(e,t,n){const o=[];for(const r of t[gr("0x20")]())r[gr("0x17")](e)&&o[gr("0x2")](n[gr("0x16")](r));return o}function fr(e){const t=[];if(e.is("element",gr("0x10"))){let n=e[gr("0xb")];for(;n&&n.is(gr("0x5"),gr("0x10"))&&n.getAttribute(gr("0x7"))>0;)t.push(n),n=n[gr("0xb")]}return t}function hr(e,t,{showActiveMarker:n=!0}={}){const o=e.plugins.get("TrackChangesEditing");return(r,s,i)=>{if(!i[gr("0x4")][gr("0x11")](s.markerRange,r[gr("0x1e")]))return;const x=s[gr("0x9")].getWalker(),a=s[gr("0x9")][gr("0x23")],c=e[gr("0x12")].schema;let l=null,d=null,u=!1,g=!1;for(const e of x){const t=e[gr("0x1c")];u=u||c[gr("0xf")](t);const n=i[gr("0x18")][gr("0x22")](t);if(n&&n[gr("0x19")](gr("0x8")))return;gr("0x15")==e[gr("0x13")]&&c[gr("0x3")](t)&&!c.isLimit(t)&&(t.nextSibling||a[gr("0x1b")]?l&&l[gr("0x14")]==t||(l=t,m(e[gr("0x6")]),g=!0):d=d||e.previousPosition)}function m(e){const r=i[gr("0x1f")][gr("0xc")](gr("0x1d"),{class:gr("0x0")+t}),x=i.mapper[gr("0xa")](e);n&&o.activeMarkers[gr("0x1")](s[gr("0x1a")])&&i.writer.addClass(gr("0xd"),r),i[gr("0x1f")][gr("0x21")](x,r),i.mapper[gr("0xe")](r,s.markerName)}u||g||!d||m(d)}}const br=["FORMAT_UNDERLINE","*Format:* %0","superscript","slice","bold","format","toLowerCase","commands","_descriptionFactory","*Remove format:* %0","locale","value","underline","get","CodeEditing","document","BoldEditing","forceValue","has","getRanges","isCollapsed","commandName","FORMAT_SUPERSCRIPT","afterInit","plugins","enableCommand","strikethrough","FORMAT_SUBSCRIPT","from","code","FORMAT_CODE","subscript","UnderlineEditing","markInlineFormat","FORMAT_STRIKETHROUGH","FORMAT_BOLD"];var pr,Er;pr=br,Er=492,function(e){for(;--e;)pr.push(pr.shift())}(++Er);const _r=function(e,t){return br[e-=0]},Tr=[_r("0x1c"),"ItalicEditing",_r("0x8"),_r("0x1a"),"StrikethroughEditing","SubscriptEditing","SuperscriptEditing"];class Cr extends e.Plugin{[_r("0x23")](){const e=this.editor,t=e.model,n=e[_r("0x0")].get("TrackChangesEditing"),o=e[_r("0x16")];for(const o of Tr){if(!e[_r("0x0")][_r("0x1e")](o))continue;const r=o[_r("0xf")](0,-7)[_r("0x12")](),s=e[_r("0x13")][_r("0x19")](r);n[_r("0x1")](r,((e,o={})=>{const i=t[_r("0x1b")].selection;if(i[_r("0x20")])return void e(o);const x=void 0!==o[_r("0x1d")]?o.forceValue:!s[_r("0x17")];t.change((()=>{const e=Array[_r("0x4")](i[_r("0x1f")]());for(const o of e){const e=x?[o]:mr(r,o,t);for(const t of e)n[_r("0x9")](t,{commandName:r,commandParams:[{forceValue:x}]})}}))}))}function r(e,t){n[_r("0x14")].registerDescriptionCallback((n=>{const{data:r}=n;if(r&&r[_r("0x21")]===e)return r.commandParams[0][_r("0x1d")]?{type:_r("0x11"),content:Yo(o,_r("0xd"),t)}:{type:_r("0x11"),content:Yo(o,_r("0x15"),t)}}))}r(_r("0x10"),Yo(o,_r("0xb"))),r("italic",Yo(o,"FORMAT_ITALIC")),r(_r("0x18"),Yo(o,_r("0xc"))),r(_r("0x5"),Yo(o,_r("0x6"))),r(_r("0x2"),Yo(o,_r("0xa"))),r(_r("0x7"),Yo(o,_r("0x3"))),r(_r("0xe"),Yo(o,_r("0x22")))}}const yr=["name","filter","model","enableCommand","TrackChangesEditing","commandName","format","editor","*Format:* %0","from","parent","schema","value","plugins","forceValue","$root","getSelectedBlocks","ELEMENT_BLOCK_QUOTE","BlockQuoteEditing","locale","commandParams","checkChild","change","registerDescriptionCallback","get","blockQuote","afterInit","selection","*Remove format:* %0"];var kr,Ar;kr=yr,Ar=239,function(e){for(;--e;)kr.push(kr.shift())}(++Ar);const vr=function(e,t){return yr[e-=0]};class Rr extends e.Plugin{[vr("0x13")](){const e=this.editor,t=e[vr("0xc")];if(!e[vr("0x6")].has(vr("0xb")))return;const n=e[vr("0x6")][vr("0x11")](vr("0x1a")),o=this[vr("0x0")].commands[vr("0x11")](vr("0x12"));n[vr("0x19")](vr("0x12"),((t,r={})=>{const s=this[vr("0x0")][vr("0x18")].document[vr("0x14")],i=r&&void 0!==r.forceValue?r[vr("0x7")]:!o[vr("0x5")];let x=[];if(i){const t=Array.from(s[vr("0x9")]())[vr("0x17")]((e=>Ir(e)||function(e,t){const n=t.checkChild(e[vr("0x3")],"blockQuote"),o=t[vr("0xe")]([vr("0x8"),vr("0x12")],e);return n&&o}(e,this.editor[vr("0x18")][vr("0x4")])));x=I(t,e[vr("0x18")])}else{const t=Array[vr("0x2")](s.getSelectedBlocks())[vr("0x17")]((e=>Ir(e)));x=I(t,e[vr("0x18")])}e.model[vr("0xf")]((()=>{for(const e of x)n.markBlockFormat(e,{commandName:vr("0x12"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vr("0x10")]((e=>{const{data:n}=e;if(n&&"blockQuote"==n[vr("0x1b")]){const e=Yo(t,vr("0xa"));return n[vr("0xd")][0][vr("0x7")]?{type:vr("0x1c"),content:Yo(t,vr("0x1"),e)}:{type:"format",content:Yo(t,vr("0x15"),e)}}}))}}function Ir(e){return"blockQuote"==e.parent[vr("0x16")]}const Sr=["editor","afterInit","enableCommand","get","ckbox","TrackChangesEditing","plugins"];var Lr,Nr;Lr=Sr,Nr=324,function(e){for(;--e;)Lr.push(Lr.shift())}(++Nr);const Mr=function(e,t){return Sr[e-=0]};class wr extends e.Plugin{[Mr("0x6")](){const e=this[Mr("0x5")];e.commands.get(Mr("0x2"))&&e[Mr("0x4")][Mr("0x1")](Mr("0x3"))[Mr("0x0")](Mr("0x2"))}}const Or=["document","outdentCodeBlock","selection","rootElement","afterInit","markBlockFormat","commandName","indentCodeBlock","filter","parent","plugins","model","_descriptionFactory","forceValue","enableCommand","formatBlock","blockName","registerDescriptionCallback","getSelectedBlocks","format","codeBlock","editor","name","*Format:* %0","value","language","label","schema","config","commands","checkChild","TrackChangesEditing","locale","from","CodeBlock","*Remove format:* %0","isLimit","find","commandParams","ELEMENT_CODE_BLOCK"];var Fr,Pr;Fr=Or,Pr=167,function(e){for(;--e;)Fr.push(Fr.shift())}(++Pr);const Dr=function(e,t){return Or[e-=0]};class Br extends e.Plugin{[Dr("0x25")](){const e=this[Dr("0xe")];if(!e[Dr("0x3")].has(Dr("0x1b")))return;const t=e.plugins.get(Dr("0x18")),n=e[Dr("0x19")],o=e[Dr("0x15")].get("codeBlock").languages,r=e[Dr("0x16")].get(Dr("0xd"));t[Dr("0x7")](Dr("0x0")),t[Dr("0x7")](Dr("0x22")),t[Dr("0x7")](Dr("0xd"),((n,s={})=>{const i=e.model,x=e[Dr("0x4")][Dr("0x21")][Dr("0x23")],a=s&&void 0!==s[Dr("0x6")]?s[Dr("0x6")]:!r[Dr("0x11")];let c;s[Dr("0x12")]||(s[Dr("0x12")]=o[0].language),c=a?Array.from(x[Dr("0xb")]())[Dr("0x1")]((e=>{return jr(e)||(t=e,n=i[Dr("0x14")],!t.is(Dr("0x24"))&&!n[Dr("0x1d")](t)&&n[Dr("0x17")](t[Dr("0x2")],Dr("0xd")));var t,n})):Array[Dr("0x1a")](x[Dr("0xb")]()).filter((e=>jr(e)));const l=I(c,i);i.change((()=>{for(const e of l)t[Dr("0x26")](e,{commandName:Dr("0xd"),commandParams:[{...s,forceValue:a}],formatGroupId:Dr("0x9")})}))})),t._descriptionFactory.registerElementLabel(Dr("0xd"),(e=>Yo(n,Dr("0x20"),e))),t[Dr("0x5")][Dr("0xa")]((e=>{const t=n.t,{type:r,data:s}=e;if(Dr("0x8")==r&&s&&Dr("0xd")==s[Dr("0x27")]){const e=s[Dr("0x1f")][0].language,r=t(o[Dr("0x1e")]((t=>t.language===e))[Dr("0x13")]);return s.commandParams[0][Dr("0x6")]?{type:"format",content:Yo(n,Dr("0x10"),Yo(n,Dr("0x20"),1)+" ("+r+")")}:{type:Dr("0xc"),content:Yo(n,Dr("0x1c"),Yo(n,Dr("0x20"),1))}}}))}}function jr(e){return Dr("0xd")==e[Dr("0xf")]}const Ur=["plugins","addCommentThread","enableCommand","CommentsEditing","has","editor","get"];var Gr,Hr;Gr=Ur,Hr=175,function(e){for(;--e;)Gr.push(Gr.shift())}(++Hr);const zr=function(e,t){return Ur[e-=0]};class Wr extends e.Plugin{afterInit(){const e=this[zr("0x5")];e[zr("0x0")][zr("0x4")](zr("0x3"))&&e[zr("0x0")][zr("0x6")]("TrackChangesEditing")[zr("0x2")](zr("0x1"))}}var Vr=n(181);const Kr=["bind","end","setSelection","data","lock","requires","createRange","mapper","removeMarker:suggestion:deletion","high","rootName","enqueueChange","showSuggestionHighlights","isCollapsed","options","writer","root","modifySelection","$graveyard","merge","model","downcastDispatcher","fromRange","batch","document","createSelection","plugins","uiElement","editing","buffer","enableCommand","markerName","getFirstRange","commands","deleteForward","start","forward","detach","addMarker:suggestion:deletion","get","remove","init"];var qr,Xr;qr=Kr,Xr=329,function(e){for(;--e;)qr.push(qr.shift())}(++Xr);const $r=function(e,t){return Kr[e-=0]};class Qr extends e.Plugin{static get[$r("0xc")](){return[Vr.Delete]}[$r("0x6")](){const e=this.editor,t=e[$r("0x21")].get("TrackChangesEditing");t[$r("0x25")]("delete");const n=e[$r("0x28")][$r("0x4")]("deleteForward");t[$r("0x25")]($r("0x29"),((t,o={})=>{const r=e[$r("0x1b")][$r("0x20")](e[$r("0x1b")][$r("0x1f")].selection);r[$r("0x14")]&&e[$r("0x1b")][$r("0x18")](r,{direction:$r("0x1"),unit:o.unit});const s=r[$r("0x27")](),x=i.LiveRange[$r("0x1d")](s);let a;t(o),a=$r("0x19")==x[$r("0x17")][$r("0x11")]?e.model[$r("0xd")](s[$r("0x0")]):e[$r("0x1b")][$r("0xd")](x.start,x.end),x[$r("0x2")](),e[$r("0x1b")][$r("0x12")](n.buffer[$r("0x1e")],(e=>{n[$r("0x24")][$r("0xb")](),e[$r("0x9")](e[$r("0xd")](a[$r("0x8")])),n[$r("0x24")].unlock()}))})),e[$r("0x23")][$r("0x1c")].on($r("0x3"),hr(e,"merge"),{priority:$r("0x10")}),e[$r("0xa")].downcastDispatcher.on($r("0x3"),((t,n,o)=>{o[$r("0x15")][$r("0x13")]&&hr(e,$r("0x1a"),{showActiveMarker:!1})[$r("0x7")](this)(t,n,o)}),{priority:$r("0x10")}),e.editing[$r("0x1c")].on($r("0xf"),((e,t,n)=>{const o=n[$r("0xe")].markerNameToElements(t.markerName);if(o)for(const e of o)e.is($r("0x22"))&&(n.mapper.unbindElementFromMarkerName(e,t[$r("0x26")]),n[$r("0x16")][$r("0x5")](e))}),{priority:"high"})}}const Jr=["from","plugins","end","slice","ELEMENT_LIST_ITEM","model","ELEMENT_BULLETED_LIST","detach","documentList","getAttribute","createPositionAt","commandName","*Change to:* %0","listIndent","value","accept","createRange","listItemId","getRanges","execute","formatBlock","afterInit","listType","registerElementLabel","map","refresh","DocumentListEditing","forceValue","before","isObject","DocumentListUtils","fromRange","TrackChangesEditing","has","push","expandListBlocksToCompleteList","getSelectedBlocks","deletion","*Merge:* %0","ELEMENT_NUMBERED_LIST","ELEMENT_","mergeListItemBackward","*Outdent:* %0","indentList","commands","schema","previousSibling","_descriptionFactory","isFirstBlockOfListItem","bulletedList","after","start","splitListItemAfter","numberedList","setSelection","next","markMultiRangeBlockFormat","multipleBlocks","*Indent:* %0","change","nextSibling","*Format:* insert into %0","parent","getFirstRange","outdentList","_suggestionFactory","document","length","nodeAfter","markBlockFormat","commandParams","splitListItemBefore","enableCommand","format","selection","mergeListItemForward","get"];var Zr,Yr;Zr=Jr,Yr=374,function(e){for(;--e;)Zr.push(Zr.shift())}(++Yr);const es=function(e,t){return Jr[e-=0]};class ts extends e.Plugin{[es("0x20")](){const e=this.editor;if(!e.plugins[es("0x2c")](es("0x25")))return;const t=e.locale,n=e[es("0xc")][es("0xa")](es("0x2b")),o=e[es("0xc")][es("0xa")](es("0x29"));function r(t){return()=>{const r=e.commands[es("0xa")](t);let s=Array.from(e.model[es("0x0")].selection[es("0x2f")]());if(a(t)){s=o[es("0x2e")](s);const e=[];for(const t of s)o[es("0x3b")](t)&&e[es("0x2d")](t);s=e}e[es("0x10")][es("0x46")]((()=>{n[es("0x43")](s,{commandName:t,commandParams:[{forceValue:!r[es("0x19")]}],formatGroupId:es("0x21")},[],es("0x13"))}))}}function s(t){return()=>{const o=function(e){let t=Array[es("0xb")](e);const n=t.findIndex((e=>!e.hasAttribute(es("0x1c"))));return n>-1&&(t=t[es("0xe")](0,n)),t}(e[es("0x10")].document[es("0x8")][es("0x2f")]()),r=o[o[es("0x1")]-1],s=e[es("0x10")][es("0x38")][es("0x28")](r)?es("0x3d"):es("0xd"),i=e.model[es("0x1b")](e[es("0x10")][es("0x15")](o[0],es("0x27")),e[es("0x10")][es("0x15")](r,s));e[es("0x10")][es("0x46")]((()=>{n[es("0x3")](i,{commandName:t,commandParams:[],formatGroupId:es("0x21")},function(e){const t=new Set;for(const n of e){let e=n[es("0x47")];for(;e&&e[es("0x14")](es("0x18"))>n[es("0x14")](es("0x18"));)t.add(e),e=e[es("0x47")]}return Array[es("0xb")](t)}(o))}))}}function x(t){return()=>{const o=e[es("0x10")][es("0x0")][es("0x8")][es("0x2f")]()[es("0x42")]()[es("0x19")],r=e[es("0x10")].createPositionAt(o,"before"),s=e.model[es("0x15")](o,0),i=e[es("0x10")].createRange(r,s);e[es("0x10")][es("0x46")]((()=>{n[es("0x3")](i,{commandName:t,commandParams:[],formatGroupId:"listType"})}))}}function a(t){const n=e.commands.get("bulletedList")[es("0x19")],o=e[es("0x37")].get(es("0x40")).value;return es("0x40")===t?n:o}n.enableCommand(es("0x40"),r(es("0x40"))),n.enableCommand(es("0x3c"),r(es("0x3c"))),n[es("0x6")](es("0x36"),s(es("0x36"))),n.enableCommand(es("0x4b"),s(es("0x4b"))),n[es("0x6")](es("0x3f"),x(es("0x3f"))),n[es("0x6")](es("0x5"),x(es("0x5"))),n[es("0x3a")][es("0x22")]((function(t){const n=!e[es("0x10")][es("0x38")][es("0x28")](t),o=t[es("0x39")],r=t[es("0x47")],s=t.getAttribute(es("0x1c")),i=!o||o[es("0x14")](es("0x1c"))!==s,x=!r||r[es("0x14")](es("0x1c"))!==s;return n&&Boolean(s)&&i&&x}),(e=>Yo(t,es("0xf"),e))),n[es("0x3a")].registerDescriptionCallback((function(e){const{data:n}=e;if(!n)return;let o,r,s,i;switch(n[es("0x16")]){case es("0x3c"):s=n.commandParams[0][es("0x26")],i=a(n[es("0x16")]),o=s?es("0x48"):"*Format:* remove from %0",i&&(o="*Change to:* %0"),r={type:es("0x7"),content:Yo(t,o,Yo(t,es("0x11")))};break;case es("0x40"):s=n[es("0x4")][0].forceValue,i=a(n[es("0x16")]),o=s?"*Format:* insert into %0":"*Format:* remove from %0",i&&(o=es("0x17")),r={type:es("0x7"),content:Yo(t,o,Yo(t,es("0x32")))};break;case"indentList":o=es("0x45"),r={type:"format",content:Yo(t,o,Yo(t,es("0xf")))};break;case es("0x4b"):o=function(e){const t=e[es("0x4a")]();let n=t[es("0x3e")].nodeAfter;for(;n&&t.containsItem(n);){if(n.getAttribute("listIndent")>0)return!1;n=n[es("0x47")]}return!0}(e)?Yo(t,"*Format:* remove from %0",Yo(t,function(e){const t=e.getFirstRange().start[es("0x2")];return es("0x33")+t[es("0x14")](es("0x21")).toUpperCase()+"_LIST"}(e))):Yo(t,es("0x35"),Yo(t,es("0xf"))),r={type:es("0x7"),content:o};break;case es("0x34"):case es("0x9"):!1===n[es("0x44")]&&(o=es("0x31"),r={type:es("0x30"),content:Yo(t,o,Yo(t,es("0xf")))})}return r})),n[es("0x4c")].registerCustomCallback(es("0x1f"),"documentList",es("0x1a"),(function(t,n){const o=[];for(let n of t)n[es("0x3e")][es("0x2")]===n[es("0xd")][es("0x49")]&&(n=e[es("0x10")][es("0x1b")](e[es("0x10")][es("0x15")](n[es("0x3e")][es("0x2")],0))),o[es("0x2d")](n);e[es("0x10")][es("0x46")]((t=>{const r=e[es("0x10")][es("0x0")][es("0x8")],s=Array.from(r[es("0x1d")]())[es("0x23")]((e=>i.LiveRange[es("0x2a")](e)));t.setSelection(o),e[es("0x37")][es("0xa")](n[es("0x16")])[es("0x24")](),n[es("0x4")].push({forceDefaultExecution:!0}),e[es("0x1e")](n[es("0x16")],...n.commandParams),t[es("0x41")](s);for(const e of s)e[es("0x12")]()}))}))}}var ns=n(331);const os=["remove","split","addMarker:suggestion:insertion","writer","requires","removeMarker:suggestion:insertion","nextSibling","unbindElementFromMarkerName","model","data","mapper","bind","fire","ck-suggestion-marker-split","setSelection","hasClass","fromRange","options","commands","end","get","selection","markerNameToElements","document","downcastDispatcher","high","afterExecute","showSuggestionHighlights","getFirstPosition","createRange","enableCommand","editing","editor","enter","plugins","createPositionAt","parent"];var rs,ss;rs=os,ss=408,function(e){for(;--e;)rs.push(rs.shift())}(++ss);const is=function(e,t){return os[e-=0]};class xs extends e.Plugin{static get[is("0x3")](){return[ns.Enter]}init(){const e=this[is("0x1f")],t=e[is("0x21")][is("0x13")]("TrackChangesEditing"),n=e[is("0x11")][is("0x13")](is("0x20"));t[is("0x1d")](is("0x20"),(()=>{e.model.change((o=>{const r=e.model[is("0x16")][is("0x14")],s=r[is("0x1b")](),x=i.LiveRange[is("0xf")](r.getFirstRange());if(n.enterBlock(o)){const n=e[is("0x7")][is("0x22")](s[is("0x23")][is("0x5")],0),r=o[is("0x1c")](s,n);t.markInsertion(r)}else o[is("0xd")](o[is("0x1c")](x[is("0x12")]));x.detach(),n[is("0xb")](is("0x19"),{writer:o})}))})),e.editing[is("0x17")].on(is("0x1"),hr(e,"split"),{priority:is("0x18")}),e[is("0x1e")][is("0x17")].on(is("0x4"),((e,t,n)=>{const o=n[is("0x9")][is("0x15")](t.markerName);if(o)for(const e of o)e[is("0xe")](is("0xc"))&&(n[is("0x9")][is("0x6")](e,t.markerName),n[is("0x2")][is("0x24")](e))}),{priority:is("0x18")}),e[is("0x8")].downcastDispatcher.on(is("0x1"),((t,n,o)=>{o[is("0x10")][is("0x1a")]&&hr(e,is("0x0"),{showActiveMarker:!1})[is("0xa")](this)(t,n,o)}),{priority:is("0x18")})}}const as=["filter","enableCommand","FindAndReplaceUtils","findPrevious","handleFindCommand","model","editor","start","TrackChangesEditing","has","end","getMarkersGroup","createRange","replace","replaceAll","suggestion:deletion","_isInDeletionRange","createPositionAt","findNext","getRange","afterInit","FindAndReplaceEditing","find","get","bind","plugins"];var cs,ls;cs=as,ls=194,function(e){for(;--e;)cs.push(cs.shift())}(++ls);const ds=function(e,t){return as[e-=0]};class us extends e.Plugin{[ds("0x8")](){if(!this.editor[ds("0xd")][ds("0x17")](ds("0x9")))return;const e=this[ds("0x14")][ds("0xd")][ds("0xb")](ds("0x16"));e[ds("0xf")](ds("0xa"),this[ds("0x12")][ds("0xc")](this)),e[ds("0xf")](ds("0x6")),e[ds("0xf")](ds("0x11")),e[ds("0xf")](ds("0x1")),e[ds("0xf")](ds("0x2"))}handleFindCommand(e,t,n={}){const o=this.editor[ds("0xd")][ds("0xb")](ds("0x10"));void 0!==n&&e((e=>("string"==typeof t?o.findByTextCallback(t,n):t)(e)[ds("0xe")]((t=>!1===this._isInDeletionRange(t,e.item)))),n)}[ds("0x4")](e,t){const n=this[ds("0x14")].model[ds("0x0")](this[ds("0x14")][ds("0x13")][ds("0x5")](t,e[ds("0x15")]),this[ds("0x14")][ds("0x13")][ds("0x5")](t,e[ds("0x18")]));for(const e of this.editor[ds("0x13")].markers[ds("0x19")](ds("0x3")))if(null!==n.getIntersection(e[ds("0x7")]()))return!0;return!1}}const gs=["editor","value","model","fontFamily","title","config","get","trim","_descriptionFactory","selection","fontSize.options","fontBackgroundColor","getRanges","FontSizeEditing","*Reset font color*","markInlineFormat","TrackChangesEditing","find","*Set font color:* %0","has","_enableCommand","isCollapsed","*Reset font background color*","plugins","fontBackgroundColor.colors","afterInit","fontColor","*Reset font size*","locale","label","format","fontColor.colors","document","*Set font background color:* %0","toLowerCase","commandName","commandParams","registerDescriptionCallback","normalizeSizeOptions","FontFamilyEditing","from","fontSize","*Reset font family*","FontColorEditing"];var ms,fs;ms=gs,fs=250,function(e){for(;--e;)ms.push(ms.shift())}(++fs);const hs=function(e,t){return gs[e-=0]},bs=[{pluginName:hs("0x1b"),commandName:hs("0xb")},{pluginName:hs("0x9"),commandName:"fontFamily"},{pluginName:hs("0xd"),commandName:hs("0x28")},{pluginName:"FontBackgroundColorEditing",commandName:hs("0x19")}];class ps extends e.Plugin{[hs("0x27")](){const e=this[hs("0xe")][hs("0x2a")];for(const{pluginName:e,commandName:t}of bs)this[hs("0xe")][hs("0x25")][hs("0x21")](e)&&this._enableCommand(t);this[hs("0xe")][hs("0x25")][hs("0x14")](hs("0x1e"))[hs("0x16")][hs("0x7")]((t=>{const n=e.t,{data:o}=t;if(null!=o){if("fontSize"==o[hs("0x5")]){const t=o[hs("0x6")][0].value;if(t){const o=n(this[hs("0xe")][hs("0x25")][hs("0x14")]("FontSize")[hs("0x8")](this[hs("0xe")].config.get(hs("0x18"))).find((e=>e[hs("0x10")]==t))[hs("0x12")])[hs("0x4")]();return{type:hs("0x0"),content:Yo(e,"*Set font size:* %0",o)}}return{type:hs("0x0"),content:Yo(e,hs("0x29"))}}if(hs("0x11")==o.commandName){const t=o[hs("0x6")][0][hs("0xf")];return t?{type:"format",content:Yo(e,"*Set font family:* %0",t)}:{type:hs("0x0"),content:Yo(e,hs("0xc"))}}if(hs("0x28")==o.commandName){const t=o[hs("0x6")][0][hs("0xf")];if(t){const o=(0,r.normalizeColorOptions)(this[hs("0xe")][hs("0x13")][hs("0x14")](hs("0x1")))[hs("0x1f")]((e=>e.model==t));let s=t,i="";return o&&(s=o[hs("0x2b")],i=n(s)[hs("0x4")]()),{type:hs("0x0"),content:Yo(e,hs("0x20"),i).trim(),color:{value:t,title:i||s}}}return{type:"format",content:Yo(e,hs("0x1c"))}}if(hs("0x19")==o[hs("0x5")]){const t=o[hs("0x6")][0][hs("0xf")];if(t){const o=(0,r.normalizeColorOptions)(this[hs("0xe")].config[hs("0x14")](hs("0x26"))).find((e=>e[hs("0x10")]==t));let s=t,i="";return o&&(s=o[hs("0x2b")],i=n(s)[hs("0x4")]()),{type:hs("0x0"),content:Yo(e,hs("0x3"),i)[hs("0x15")](),color:{value:t,title:i||s}}}return{type:hs("0x0"),content:Yo(e,hs("0x24"))}}}}))}[hs("0x22")](e){const t=this[hs("0xe")];t[hs("0x25")][hs("0x14")](hs("0x1e")).enableCommand(e,((n,o={})=>{const r=t[hs("0x10")][hs("0x2")][hs("0x17")],s=o[hs("0xf")];r[hs("0x23")]?n(o):t[hs("0x10")].change((()=>{const n=Array[hs("0xa")](r[hs("0x1a")]());for(const o of n){const n=s?[o]:mr(e,o,t[hs("0x10")]);for(const o of n)t[hs("0x25")][hs("0x14")](hs("0x1e"))[hs("0x1d")](o,{commandName:e,commandParams:[{value:s}]})}}))}))}}const Es=["forward","getSelectedBlocks","label","schema","fontBackgroundColor","isBlock","isFormatting","*Remove all formatting*","fontSize","FontSize","commands","markInlineFormat","change","split","TrackChangesEditing","fontSize.options","selection","getFirstPosition","join","model","get","entries","length","locale","fontColor.colors","title","commandName","getItems","boolean","getAttributes","registerDescriptionCallback","toLowerCase","pasteFormat","from","enableCommand","find","charAt","word","*Set format to:* %0","backward","getRanges","getLastPosition","format","_descriptionFactory","config","plugins","modifySelection","commandParams"];var _s,Ts;_s=Es,Ts=381,function(e){for(;--e;)_s.push(_s.shift())}(++Ts);const Cs=function(e,t){return Es[e-=0]};class ys extends e.Plugin{afterInit(){const e=this.editor,n=e[Cs("0x16")],o=n.document[Cs("0x13")],r=e[Cs("0x0")].get(Cs("0x11")),s=e.locale,i=e[Cs("0xd")].get("copyFormat"),x=e[Cs("0xd")][Cs("0x17")](Cs("0x23"));i&&x&&(r[Cs("0x25")](Cs("0x23"),((e,s={})=>{const i=s;n[Cs("0xf")]((()=>{const e=Array[Cs("0x24")](o[Cs("0x2b")]()),s=o.isCollapsed?[ks(n,o)]:e;if(!!(0,t.first)(function*(e,n){const o=e=>!!(0,t.first)(function*(e,t){for(const[n]of e[Cs("0x20")]()){const e=t.getAttributeProperties(n);e&&e[Cs("0x9")]&&(yield n)}}(e,n));for(const t of e[Cs("0x2b")]())for(const e of t[Cs("0x1e")]())!n[Cs("0x8")](e)&&o(e)&&(yield e);for(const t of e[Cs("0x4")]())o(t)&&(yield t);o(e)&&(yield e)}(o,n[Cs("0x6")]))||0!==Object.keys(i)[Cs("0x19")])for(const e of s)r[Cs("0xe")](e,{commandName:Cs("0x23"),commandParams:[i]})}))})),r[Cs("0x2e")][Cs("0x21")]((t=>{const{data:n}=t;if(n&&Cs("0x23")===n[Cs("0x1d")]){const t=[],o=n[Cs("0x2")][0];for(const[n,r]of Object[Cs("0x18")](o))t.push(As(e,n,r));return t[Cs("0x19")]?{type:Cs("0x2d"),content:Yo(s,Cs("0x29"),t[Cs("0x15")](", "))}:{type:Cs("0x2d"),content:Yo(s,Cs("0xa"))}}})),e[Cs("0x0")][Cs("0x17")](Cs("0x11"))[Cs("0x25")]("copyFormat"))}}function ks(e,t){const n=e.createSelection(t);e.modifySelection(n,{unit:"word",direction:Cs("0x2a")});const o=n[Cs("0x14")]();e[Cs("0x1")](n,{unit:Cs("0x28"),direction:Cs("0x3")});const r=n[Cs("0x2c")]();return e.createRange(o,r)}function As(e,t,n){const o=e[Cs("0x1a")].t,s=t[Cs("0x10")](/(?=[A-Z])/).join(" "),i=o(s[Cs("0x27")](0).toUpperCase()+s.slice(1))[Cs("0x22")]();if(Cs("0x1f")==typeof n)return i;if("fontColor"===t||Cs("0x7")===t){const t=(0,r.normalizeColorOptions)(e[Cs("0x2f")][Cs("0x17")](Cs("0x1b")))[Cs("0x26")]((e=>e[Cs("0x16")]==n));return i+" ("+(t?o(t[Cs("0x5")])[Cs("0x22")]():n)+")"}if(Cs("0xb")===t&&isNaN(parseFloat(n))){const t=e.plugins[Cs("0x17")](Cs("0xc")).normalizeSizeOptions(e.config[Cs("0x17")](Cs("0x12")))[Cs("0x26")]((e=>e.model==n));return i+" ("+(t?o(t[Cs("0x1c")])[Cs("0x22")]():n)+")"}return i+" ("+n+")"}const vs=["markBlockFormat","config","value","*Change to:* %0","ELEMENT_HEADING_CUSTOM","has","blockName","TrackChangesEditing","isObject","document","match","registerElementLabel","model","selection","from","schema","_descriptionFactory","HeadingEditing","name","format","plugins","title","find","heading","enableCommand","parent","commandName","locale","ELEMENT_HEADING","editor","get","getSelectedBlocks","formatBlock","paragraph"];var Rs,Is;Rs=vs,Is=158,function(e){for(;--e;)Rs.push(Rs.shift())}(++Is);const Ss=function(e,t){return vs[e-=0]};class Ls extends e.Plugin{afterInit(){const e=this[Ss("0x7")],t=e[Ss("0x5")],n=e[Ss("0xd")][Ss("0x8")]("heading.options");if(!e[Ss("0x20")][Ss("0x11")](Ss("0x1d")))return;const o=e[Ss("0x20")][Ss("0x8")](Ss("0x13"));o[Ss("0x2")](Ss("0x1"),((t,n)=>{const r=n[Ss("0xe")],s=Array[Ss("0x1a")](this[Ss("0x7")].model[Ss("0x15")][Ss("0x19")][Ss("0x9")]()).filter((e=>{return t=e,n=r,(o=this[Ss("0x7")][Ss("0x18")][Ss("0x1b")]).checkChild(t[Ss("0x3")],n)&&!o[Ss("0x14")](t)&&t[Ss("0x1e")]!=n;var t,n,o}));e.model.change((()=>{for(const e of s)o[Ss("0xc")](e,{commandName:Ss("0x1"),commandParams:[n],formatGroupId:Ss("0x12")},fr(e))}))}));for(const e of n)Ss("0xb")!=e[Ss("0x18")]&&o[Ss("0x1c")][Ss("0x17")](e[Ss("0x18")],(t=>{const n=Ns(e[Ss("0x18")]);return null!==n?r(t,n):s(t,e[Ss("0x21")])}));function r(e,n){return Yo(t,Ss("0x6"),[e,n])}function s(e,n){return Yo(t,Ss("0x10"),[e,n])}o[Ss("0x1c")].registerDescriptionCallback((e=>{const{type:o,data:i}=e;if(Ss("0xa")==o&&i&&Ss("0x1")==i[Ss("0x4")]){const e=i.commandParams[0][Ss("0xe")],o=Ns(e);if(null!==o)return{type:Ss("0x1f"),content:Yo(t,Ss("0xf"),r(1,o))};const x=n[Ss("0x0")]((t=>t[Ss("0x18")]===e)).title;return{type:"format",content:Yo(t,Ss("0xf"),s(1,x))}}}))}}function Ns(e){const t=e[Ss("0x16")](/^heading(\d+)$/);return t?t[1]:null}const Ms=["get","getLastMatchingPosition","push","HighlightEditing","value","title","formatInline","hasAttribute","model","config","getRanges","createRange","afterInit","plugins","item","_descriptionFactory","FORMAT_HIGHLIGHT","format","markInlineFormat","getAttribute","change","editor","document","getFirstPosition","highlight.options","*Set highlight:* %0","color","find","*Remove highlight*","highlight","backward","TrackChangesEditing","enableCommand","toLowerCase"];var ws,Os;ws=Ms,Os=343,function(e){for(;--e;)ws.push(ws.shift())}(++Os);const Fs=function(e,t){return Ms[e-=0]};class Ps extends e.Plugin{[Fs("0x9")](){const e=this[Fs("0x12")];if(!e[Fs("0xa")].has(Fs("0x0")))return;const t=e[Fs("0xa")][Fs("0x1f")](Fs("0x1c"));t[Fs("0x1d")]("highlight",((n,o={})=>{const r=e[Fs("0x5")][Fs("0x13")].selection,s=r[Fs("0x10")](Fs("0x1a"));let i=o[Fs("0x1")],x=[];if(r.isCollapsed){const t=r[Fs("0x14")]();if(!r[Fs("0x4")]("highlight"))return void n(o);{const n=e=>e[Fs("0xb")][Fs("0x10")]("highlight")===s,o=t.getLastMatchingPosition(n,{direction:Fs("0x1b")}),r=t[Fs("0x20")](n);x=[e[Fs("0x5")][Fs("0x8")](o,r)],i==s&&(i=null)}}else for(const t of r[Fs("0x7")]())i?x[Fs("0x21")](t):x[Fs("0x21")](...mr(Fs("0x1a"),t,e[Fs("0x5")]));e[Fs("0x5")][Fs("0x11")]((()=>{for(const e of x)t[Fs("0xf")](e,{commandName:Fs("0x1a"),commandParams:[{value:i}]})}))}));const n=e.locale;t[Fs("0xc")].registerDescriptionCallback((t=>{const{type:o,data:r}=t;if(Fs("0x3")==o&&r&&Fs("0x1a")==r.commandName){const t=n.t,o=r.commandParams[0][Fs("0x1")];if(o){const r=e[Fs("0x6")][Fs("0x1f")](Fs("0x15"))[Fs("0x18")]((e=>e[Fs("0x5")]==o)),s=t(r[Fs("0x2")])[Fs("0x1e")]();return{type:Fs("0xe"),content:Yo(n,Fs("0x16"),s),color:{value:r[Fs("0x17")],title:r[Fs("0x2")]}}}return{type:Fs("0xe"),content:Yo(n,Fs("0x19"),Yo(n,Fs("0xd")))}}}))}}const Ds=["createContainerElement","editor","createPositionAt","has","HorizontalLineEditing","dataDowncast","addClass","insert","plugins","afterInit","ELEMENT_HORIZONTAL_LINE","TrackChangesEditing","showSuggestionHighlights","horizontalLine","enableCommand","registerElementLabel","elementToStructure","get","high"];var Bs,js;Bs=Ds,js=101,function(e){for(;--e;)Bs.push(Bs.shift())}(++js);const Us=function(e,t){return Ds[e-=0]};class Gs extends e.Plugin{[Us("0x3")](){const e=this[Us("0xe")];if(!e[Us("0x2")][Us("0x10")](Us("0x11")))return;e.plugins[Us("0xb")](Us("0x5"))[Us("0x8")](Us("0x7"));const t=e[Us("0x2")][Us("0xb")](Us("0x5")),n=e.locale;t._descriptionFactory[Us("0x9")](Us("0x7"),(e=>Yo(n,Us("0x4"),e))),e.conversion.for(Us("0x12"))[Us("0xa")]({model:"horizontalLine",view:(e,{writer:t,options:n})=>{if(!n[Us("0x6")])return null;const o=t[Us("0xd")]("div"),r=t.createEmptyElement("hr");return t[Us("0x0")]("ck-horizontal-line",o),t[Us("0x1")](t[Us("0xf")](o,0),r),o},converterPriority:Us("0xc")})}}const Hs=["ELEMENT_HTML_EMBED","_descriptionFactory","TrackChangesEditing","commandName","view","markBlockFormat","selection","getCustomProperty","get","rawHtmlApi","model","element","HtmlEmbed","getSelectedElement","editing","htmlEmbed","document","editor","*Change %0 content*","locale","registerElementLabel","change","format","plugins","value","rawHtml"];var zs,Ws;zs=Hs,Ws=203,function(e){for(;--e;)zs.push(zs.shift())}(++Ws);const Vs=function(e,t){return Hs[e-=0]};class Ks extends e.Plugin{afterInit(){const e=this[Vs("0x16")];if(!e[Vs("0x2")].has(Vs("0x11")))return;const t=e[Vs("0x2")][Vs("0xd")](Vs("0x7")),n=e[Vs("0x18")],o=e[Vs("0x13")][Vs("0x9")].document[Vs("0xb")];t[Vs("0x6")][Vs("0x19")](Vs("0x4"),(e=>Yo(n,Vs("0x5"),e))),e[Vs("0x2")][Vs("0xd")](Vs("0x7")).enableCommand("htmlEmbed",((n,r)=>{const s=e[Vs("0xf")],i=s[Vs("0x15")][Vs("0xb")];s[Vs("0x0")]((()=>{const e=function(e){const t=e[Vs("0x12")]();return t&&t.is(Vs("0x10"),Vs("0x4"))?e[Vs("0x12")]():null}(i);if(!e)return void n(null);const s=e.getAttribute(Vs("0x3"))||"";void 0!==r&&r!==s&&(t[Vs("0xa")](e,{commandName:Vs("0x14"),commandParams:[r]}),o[Vs("0x12")]()[Vs("0xc")](Vs("0xe")).cancel())}))})),t[Vs("0x6")].registerDescriptionCallback((e=>{const{data:t}=e;if(t&&Vs("0x14")==t[Vs("0x8")]){const e=Yo(n,Vs("0x5"));return{type:Vs("0x1"),content:Yo(n,Vs("0x17"),e)}}}))}}const qs=["imageStyle","imageBlock","refresh","end","width","ImageEditing","locale","from","addObject","commandReversedParams","ImageInlineEditing","imageTextAlternative","formatBlock","chain","registerCustomCallback","type","alt","getClosestSelectedImageElement","createRangeOn","toLowerCase","Block image to inline image","commands","Inline image to block image","previous","isEqual","find","registerElementLabel","schema","plugins","author","imageTypeBlock","ELEMENT_CAPTION","has","getCaptionFromImageModelElement","fromPosition","insertImage","ImageUploadEditing","isInContent","uploadImage","isCollapsed","enableCommand","*Reset image width*","get","hasAttribute","convertInlineImageToBlock","deletion","toPrevious","accept","ImageBlockEditing","subType","discard","createRange","isBlockImage","ImageUtils","forceDefaultExecution","imageCaption","document","forward","_suggestionFactory","_descriptionFactory","getFirstRange","ImageCaptionUtils","getChangedMarkers","getContainedElement","*Set image width:* %0","name","ImageCaptionEditing","commandName","registerDescriptionCallback","backward","registerPostFixer","model","afterInit","getSuggestions","newRange","suggestion","ImageStyleEditing","getNearestSelectionRange","value","resizeImage","_splitMarkerName","change","markInlineFormat","head","start","isOwn","getAttribute","*Format:* %0","newValue","toNext","isBefore","Users","formatInline","imageStylePostApply","format","join","discardSuggestion","selection","isIntersecting","commandParams","*Set image text alternative:* %0","insertion","imageStylePreApply","findIndex","imageTypeInline","ELEMENT_INLINE_IMAGE","markInsertion","markBlockFormat","markDeletion","convertBlockImageToInline","getSuggestion","TrackChangesEditing","differ","FORMAT_SIDE_IMAGE","length","detach"];var Xs,$s;Xs=qs,$s=444,function(e){for(;--e;)Xs.push(Xs.shift())}(++$s);const Qs=function(e,t){return qs[e-=0]};class Js extends e.Plugin{[Qs("0x5c")](){const e=this.editor;if(!e.plugins.has(Qs("0x19")))return;const n=e[Qs("0x30")][Qs("0x3e")](Qs("0xf")),o=e.plugins[Qs("0x3e")](Qs("0x49")),r={},s=e[Qs("0x1a")];if(n[Qs("0x3c")](Qs("0x37")),n[Qs("0x4f")].registerElementLabel(Qs("0x15"),(e=>Yo(s,"ELEMENT_IMAGE",e))),n[Qs("0x4f")][Qs("0x2e")]("imageInline",(e=>Yo(s,Qs("0x9"),e))),n[Qs("0x4f")][Qs("0x2e")]("caption",(()=>Yo(s,Qs("0x33")))),e[Qs("0x30")][Qs("0x34")](Qs("0x38"))&&n[Qs("0x3c")](Qs("0x3a")),e[Qs("0x30")][Qs("0x34")](Qs("0x44"))&&e[Qs("0x30")][Qs("0x34")](Qs("0x1e"))&&(n[Qs("0x3c")](Qs("0x8"),((t,r)=>{const s=o[Qs("0x25")](e[Qs("0x5b")][Qs("0x4c")].selection);e.model[Qs("0x65")]((()=>{n[Qs("0xb")](s,{commandName:Qs("0x8"),commandParams:[r]},[],"convertBlockImageToInline")}))})),n[Qs("0x3c")](Qs("0x32"),((t,r)=>{e[Qs("0x5b")].change((s=>{let x=o.getClosestSelectedImageElement(e[Qs("0x5b")][Qs("0x4c")].selection),a=s[Qs("0x26")](x);const c=i.LivePosition[Qs("0x36")](a[Qs("0x68")],Qs("0x42")),l=i.LivePosition[Qs("0x36")](a[Qs("0x17")],Qs("0x6d"));n[Qs("0x4a")]((()=>t(r))),x=o.getClosestSelectedImageElement(e[Qs("0x5b")][Qs("0x4c")][Qs("0x1")]),a=s.createRangeOn(x);const d=s[Qs("0x47")](c,l);c[Qs("0x13")](),l[Qs("0x13")](),n[Qs("0xb")](x,{commandName:Qs("0x8"),commandParams:[]},[],Qs("0x40")),d[Qs("0x68")][Qs("0x6e")](a[Qs("0x68")])&&n[Qs("0xa")](s[Qs("0x47")](d.start,a[Qs("0x68")]),"convertInlineImageToBlock"),a[Qs("0x17")][Qs("0x6e")](d.end)&&n[Qs("0xa")](s[Qs("0x47")](a[Qs("0x17")],d[Qs("0x17")]),Qs("0x40"))}))})),n[Qs("0x4e")][Qs("0x22")](Qs("0x20"),"convertInlineImageToBlock",Qs("0x73"),(()=>!1)),n[Qs("0x4e")][Qs("0x22")]("formatBlock","convertInlineImageToBlock",Qs("0x43"),(()=>!1)),n[Qs("0x4e")][Qs("0x22")]("formatBlock",Qs("0x40"),Qs("0x46"),n[Qs("0x4e")].getSuggestionCallback("formatBlock","",Qs("0x43"))),n[Qs("0x4e")][Qs("0x22")](Qs("0x5"),"convertInlineImageToBlock",Qs("0x73"),(()=>!1)),n[Qs("0x4e")][Qs("0x22")]("insertion",Qs("0x40"),Qs("0x46"),(([t])=>{const o=n[Qs("0x4e")].getSuggestionCallback(Qs("0x5"),"",Qs("0x46"));let r=t[Qs("0x68")],s=t[Qs("0x17")];const i=e[Qs("0x5b")].schema[Qs("0x61")](r,Qs("0x59")),x=e[Qs("0x5b")][Qs("0x2f")].getNearestSelectionRange(s,Qs("0x4d"));i[Qs("0x3b")]&&(r=i[Qs("0x68")]),x.isCollapsed&&(s=x.end),o([e.model.createRange(r,s)])})),n[Qs("0x4e")][Qs("0x22")](Qs("0x20"),Qs("0x40"),"chain",c),n[Qs("0x4e")][Qs("0x22")](Qs("0x5"),Qs("0x40"),Qs("0x21"),c)),e[Qs("0x30")][Qs("0x34")](Qs("0x56"))&&(n[Qs("0x3c")]("toggleImageCaption",((t,r)=>{const s=e.plugins[Qs("0x3e")](Qs("0x51"));let i=o[Qs("0x25")](e.model[Qs("0x4c")][Qs("0x1")]),x=s[Qs("0x35")](i);e[Qs("0x5b")][Qs("0x65")]((()=>{if(x)return void n[Qs("0xc")](e[Qs("0x5b")][Qs("0x26")](x));const a=o[Qs("0x48")](i);t(r),i=o[Qs("0x25")](e[Qs("0x5b")][Qs("0x4c")][Qs("0x1")]),x=s[Qs("0x35")](i),n[Qs("0xa")](e[Qs("0x5b")][Qs("0x26")](x),a?null:Qs("0x4b"))}))})),n[Qs("0x4e")].registerCustomCallback("insertion",Qs("0x4b"),Qs("0x21"),c)),e[Qs("0x30")][Qs("0x34")](Qs("0x60"))){n.enableCommand(Qs("0x14"),((r,s)=>{const i=e[Qs("0x30")][Qs("0x3e")](Qs("0x6f")).me,x=e[Qs("0x29")][Qs("0x3e")](Qs("0x14"));let a=o[Qs("0x25")](e[Qs("0x5b")][Qs("0x4c")][Qs("0x1")]),c=e[Qs("0x5b")][Qs("0x26")](a),l=x[Qs("0x62")];if(l==s[Qs("0x62")])return;const d={commandName:Qs("0x14"),commandParams:[s],formatGroupId:(0,t.uid)()};e[Qs("0x5b")][Qs("0x65")]((()=>{if(n[Qs("0x5d")]().filter((e=>e[Qs("0x39")]&&i==e[Qs("0x31")]&&("formatBlock"==e[Qs("0x23")]||"formatInline"==e[Qs("0x23")])&&(Qs("0x6")==e[Qs("0x45")]||"imageStylePostApply"==e[Qs("0x45")])&&e[Qs("0x50")]()[Qs("0x2c")](c))).forEach((e=>n.discardSuggestion(e[Qs("0x67")]))),a=o[Qs("0x25")](e[Qs("0x5b")][Qs("0x4c")][Qs("0x1")]),c=e[Qs("0x5b")][Qs("0x26")](a),x[Qs("0x16")](),e[Qs("0x29")].get(Qs("0x8")).refresh(),e[Qs("0x29")][Qs("0x3e")]("imageTypeBlock")[Qs("0x16")](),l=x[Qs("0x62")],l!=s.value)return o.isInlineImage(a)&&x.shouldConvertImageType(s[Qs("0x62")],a)?(r(s),a=o.getClosestSelectedImageElement(e[Qs("0x5b")][Qs("0x4c")][Qs("0x1")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null}]},[],Qs("0x6"))):void(o[Qs("0x48")](a)?n[Qs("0xb")](a,d,[],Qs("0x71")):n[Qs("0x66")](c,d,Qs("0x71")))}))}));for(const t of e[Qs("0x30")][Qs("0x3e")](Qs("0x60")).normalizedStyles)r[t[Qs("0x55")]]=t.title[Qs("0x27")]();n[Qs("0x4e")].registerCustomCallback(Qs("0x20"),"imageStylePreApply",Qs("0x73"),(()=>!1)),n[Qs("0x4e")][Qs("0x22")]("formatBlock",Qs("0x71"),Qs("0x73"),(()=>!1)),n[Qs("0x4e")][Qs("0x22")](Qs("0x70"),"imageStylePostApply",Qs("0x73"),(()=>!1)),n._suggestionFactory[Qs("0x22")]("formatBlock",Qs("0x6"),Qs("0x43"),(()=>!1)),n[Qs("0x4e")][Qs("0x22")](Qs("0x20"),Qs("0x6"),Qs("0x46"),((e,t)=>{n[Qs("0x4e")].getSuggestionCallback(Qs("0x20"),"",Qs("0x43"))(e,{commandName:t[Qs("0x57")],commandParams:t[Qs("0x1d")]})})),n[Qs("0x4e")][Qs("0x22")]("formatBlock",Qs("0x6"),Qs("0x21"),c)}const x=[{type:"formatBlock",subType:Qs("0x6")},{type:Qs("0x5"),subType:Qs("0x4b")},{type:Qs("0x20"),subType:Qs("0x40")},{type:"insertion",subType:Qs("0x40")}];function a(e,t){const r=x[Qs("0x7")]((({type:t,subType:n})=>e[Qs("0x23")]==t&&e.subType==n)),s=x[Qs("0x7")]((({type:e,subType:n})=>t[Qs("0x23")]==e&&t[Qs("0x45")]==n));if(r<0||s<0)return!1;const i=e.getFirstRange(),a=t.getFirstRange();if((0==r||1==r)&&2==s&&i[Qs("0x2")](a))return!0;if(2==r&&3==s){const e=n._findSuggestions(i,Qs("0x5")).filter((({suggestion:e,meta:t})=>t[Qs("0x69")]&&Qs("0x40")==e.subType));if(e[Qs("0x12")]>1&&a[Qs("0x17")][Qs("0x2c")](i[Qs("0x68")]))return!0;if(1==e[Qs("0x12")]&&(i[Qs("0x68")][Qs("0x2c")](a.end)||i[Qs("0x17")][Qs("0x2c")](a[Qs("0x68")])))return!0}if(3==r&&3==s&&i[Qs("0x68")][Qs("0x6e")](a[Qs("0x68")])){const e=i[Qs("0x17")].nodeAfter,t=a[Qs("0x68")].nodeBefore;return o.isBlockImage(e)&&e===t}return!1}function c(e,t){return a(e,t)?[e,t]:a(t,e)?[t,e]:null}e[Qs("0x5b")][Qs("0x4c")][Qs("0x5a")]((()=>{let t=!1;const r=Array[Qs("0x1b")](e[Qs("0x5b")][Qs("0x4c")][Qs("0x10")][Qs("0x52")]());for(const{name:e,data:s}of r){const{group:r,type:i,subType:x,id:a}=n[Qs("0x64")](e);if(Qs("0x5f")==r&&n.hasSuggestion(a)){if("formatBlock"==i&&("imageStylePreApply"==x||Qs("0x71")==x)){const e=n.getSuggestion(a);if(s[Qs("0x5e")]){const r=e[Qs("0x50")]()[Qs("0x53")]();if(o[Qs("0x48")](r))continue;n[Qs("0x0")](e),t=!0}}if("insertion"==i&&"imageCaption"==x&&!s[Qs("0x5e")]){const e=n[Qs("0xe")](a);e.next&&e.next.isInContent&&(n.discardSuggestion(e.next),t=!0)}}}return t})),e[Qs("0x30")].has("ImageResize")&&n[Qs("0x3c")](Qs("0x63"),((t,r)=>{const s=o[Qs("0x25")](e[Qs("0x5b")].document[Qs("0x1")]);s[Qs("0x6a")](Qs("0x18"))!=r[Qs("0x18")]&&e[Qs("0x5b")].change((()=>{n[Qs("0xb")](s,{commandName:Qs("0x63"),commandParams:[r]})}))})),e.plugins[Qs("0x34")]("ImageTextAlternativeEditing")&&n[Qs("0x3c")](Qs("0x1f"),((t,r)=>{const s=o.getClosestSelectedImageElement(e[Qs("0x5b")][Qs("0x4c")][Qs("0x1")]);(s[Qs("0x3f")](Qs("0x24"))?s[Qs("0x6a")](Qs("0x24")):"")!=r[Qs("0x6c")]&&e[Qs("0x5b")][Qs("0x65")]((()=>{n[Qs("0xb")](s,{commandName:Qs("0x1f"),commandParams:[r]})}))})),n._descriptionFactory[Qs("0x58")]((e=>{if(x[Qs("0x2d")]((({type:t,subType:n})=>e[Qs("0x23")]==t&&e[Qs("0x45")]==n)))return e[Qs("0x2b")]?{}:void 0})),n[Qs("0x4f")][Qs("0x58")]((e=>{if(Qs("0x5")==e.type||Qs("0x41")==e[Qs("0x23")]){const t=e[Qs("0x53")]();if(t&&t.is("element","caption"))return{type:Qs("0x5")==e[Qs("0x23")]?Qs("0x1c"):"removeObject",element:t,quantity:1}}})),n[Qs("0x4f")].registerDescriptionCallback((e=>Qs("0x20")==e[Qs("0x23")]&&Qs("0x40")==e.subType?{type:"format",content:Qs("0x2a")}:Qs("0x20")==e.type&&Qs("0xd")==e.subType?{type:Qs("0x72"),content:Qs("0x28")}:void 0)),n[Qs("0x4f")].registerDescriptionCallback((e=>{const{data:t}=e;if(t){if(Qs("0x14")==t[Qs("0x57")]){const e=t[Qs("0x3")][0][Qs("0x62")];return n="side"===e?Yo(s,Qs("0x11")):r[e]||e,{type:Qs("0x72"),content:Yo(s,Qs("0x6b"),n)}}if(Qs("0x1f")==t[Qs("0x57")]){const e=t[Qs("0x3")][0][Qs("0x6c")];return e?{type:"format",content:Yo(s,Qs("0x4"),'"'+e+'"')}:{type:Qs("0x72"),content:Yo(s,"*Remove image text alternative*")}}if(Qs("0x63")==t[Qs("0x57")]){const e=t.commandParams[0][Qs("0x18")];return e?{type:Qs("0x72"),content:Yo(s,Qs("0x54"),e)}:{type:"format",content:Yo(s,Qs("0x3d"))}}}var n}))}}const Zs=["discard","enableCommand","*Format:* replace image URL","_descriptionFactory","author","getContainedElement","formatBlock","afterInit","plugins","_suggestionFactory","commandName","getSuggestionCallback","ImageEditing","change","getAttribute","handleSuggestionDescription","handleReplaceImageCommand","locale","src","format","data","registerCustomCallback","replaceImageSource","model","editor","get","getSuggestions","has","registerDescriptionCallback","markBlockFormat","selection"];var Ys,ei;Ys=Zs,ei=114,function(e){for(;--e;)Ys.push(Ys.shift())}(++ei);const ti=function(e,t){return Zs[e-=0]};class ni extends e.Plugin{[ti("0x11")](){if(!this.editor[ti("0x12")][ti("0x6")](ti("0x16")))return;const e=this[ti("0x3")][ti("0x12")][ti("0x4")]("TrackChangesEditing");e[ti("0xb")](ti("0x1"),((e,t)=>this[ti("0x1a")](e,t))),e[ti("0x13")][ti("0x0")](ti("0x10"),ti("0x1"),"accept",e._suggestionFactory[ti("0x15")]("formatBlock",null,ti("0xa"))),e[ti("0x13")].registerCustomCallback("formatBlock",ti("0x1"),ti("0xa"),e[ti("0x13")].getSuggestionCallback(ti("0x10"),null,"accept")),e[ti("0xd")][ti("0x7")]((e=>this[ti("0x19")](e)))}[ti("0x1a")](e,t){const n=this[ti("0x3")][ti("0x12")][ti("0x4")]("TrackChangesEditing"),o=this[ti("0x3")][ti("0x2")].document[ti("0x9")].getSelectedElement();this[ti("0x3")][ti("0x2")][ti("0x17")]((()=>{let r=o[ti("0x18")](ti("0x1c"));const s=this.editor.plugins[ti("0x4")]("Users").me;for(const e of n[ti("0x5")]({skipNotAttached:!0})){const t=e[ti("0xf")]();if(ti("0x1")===e.subType&&t===o){e[ti("0xe")]!==s&&e[ti("0xa")](),r=e[ti("0x1e")].commandParams[0].source;break}}e(t),n[ti("0x8")](o,{commandName:"replaceImageSource",commandParams:[{source:r}]},[],"replaceImageSource")}))}[ti("0x19")](e){const{data:t}=e;if(t&&"replaceImageSource"===t[ti("0x14")]){const e=ti("0xc");return{type:ti("0x1d"),content:Yo(this.editor[ti("0x1b")],e)}}}}const oi=["collaboration_features","importWord","afterInit","get","track_changes","commands","listenTo","TrackChangesEditing","_trackChangesValueDuringImport","dataInsert","high","value","Users","bind","forEach","trackChanges","_handleImportedData","enableCommand","execute","_trackChangesExecuted","editor","plugins"];var ri,si;ri=oi,si=415,function(e){for(;--e;)ri.push(ri.shift())}(++si);const ii=function(e,t){return oi[e-=0]};class xi extends e.Plugin{constructor(e){super(e),this._trackChangesValueDuringImport=!1,this[ii("0x0")]=!1}[ii("0x5")](){const e=this[ii("0x1")],t=e.commands[ii("0x6")](ii("0x4")),n=e[ii("0x8")][ii("0x6")](ii("0x12"));t&&(t.on(ii("0x15"),((e,[,t])=>{this._trackChangesValueDuringImport=n[ii("0xe")],t[ii("0x3")][ii("0x7")]=!this[ii("0xb")]}),{priority:ii("0xd")}),this[ii("0x9")](t,ii("0xc"),this[ii("0x13")][ii("0x10")](this)),this.listenTo(t,ii("0xc"),(()=>{this[ii("0x0")]&&(n[ii("0x15")](),this[ii("0x0")]=!1)}),{priority:"lowest"}),e[ii("0x2")][ii("0x6")](ii("0xa"))[ii("0x14")](ii("0x4")))}[ii("0x13")](e,t){const{suggestions:n}=t,o=this[ii("0x1")].commands[ii("0x6")]("trackChanges"),r=o[ii("0xe")];this[ii("0xb")]!==r&&(o[ii("0x15")](),this[ii("0x0")]=!0),n&&n[ii("0x11")]((({id:e,type:t,author:n,created_at:o})=>{const r={id:e,type:t,authorId:this[ii("0x1")].plugins[ii("0x6")](ii("0xf")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x4")}}};this.editor[ii("0x2")][ii("0x6")]("TrackChangesEditing")._setSuggestionData(r)}))}}const ai=["afterInit","_descriptionFactory","format","commandName","get","outdentBlock","markBlockFormat","enableCommand","indent","change","schema","plugins","IndentBlock","*Outdent:* %0","has","filter","document","indentBlock","locale","getSelectedBlocks","from","*Indent:* %0","getItems","model","registerDescriptionCallback","checkAttribute"];var ci,li;ci=ai,li=170,function(e){for(;--e;)ci.push(ci.shift())}(++li);const di=function(e,t){return ai[e-=0]};class ui extends e.Plugin{[di("0xc")](){const e=this.editor,t=e[di("0x17")][di("0x10")]("TrackChangesEditing");e[di("0x17")].has("IndentEditing")&&(t.enableCommand(di("0x14")),t.enableCommand("outdent"));const n=e[di("0x4")];if(e.plugins[di("0x0")](di("0x18"))){for(const n of[di("0x3"),"outdentBlock"])t[di("0x13")](n,(()=>{const o=Array[di("0x6")](this.editor[di("0x9")][di("0x2")].selection[di("0x5")]())[di("0x1")]((e=>this.editor.model[di("0x16")][di("0xb")](e,"blockIndent")));e[di("0x9")][di("0x15")]((()=>{for(const e of o)t[di("0x12")](e,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));t[di("0xd")][di("0xa")]((e=>{const{data:o}=e;if(!o)return;if(di("0x3")!=o[di("0xf")]&&di("0x11")!=o[di("0xf")])return;const r=e[di("0x8")]()[0],s=t[di("0xd")].getItemLabel(r);return di("0x3")==o.commandName?{type:di("0xe"),content:Yo(n,di("0x7"),s)}:"outdentBlock"==o.commandName?{type:"format",content:Yo(n,di("0x19"),s)}:void 0}))}}}var gi,mi,fi=["editor","plugins","init","enableCommand","input","get"];gi=fi,mi=226,function(e){for(;--e;)gi.push(gi.shift())}(++mi);var hi=function(e,t){return fi[e-=0]};class bi extends e.Plugin{static get requires(){return[Vr.Input]}[hi("0x4")](){this[hi("0x2")][hi("0x3")][hi("0x1")]("TrackChangesEditing")[hi("0x5")](hi("0x0"))}}const pi=["afterInit","unlink","getRanges","LinkEditing","format","TrackChangesEditing","link","change","plugins","markInlineFormat","*Set link:* %0","getFirstRange","enableCommand","*Remove link*","from","selection","hasAttribute","linkHref","locale","editor","model","isCollapsed","getAttribute","document","registerDescriptionCallback"];var Ei,_i;Ei=pi,_i=408,function(e){for(;--e;)Ei.push(Ei.shift())}(++_i);const Ti=function(e,t){return pi[e-=0]};class Ci extends e.Plugin{[Ti("0x11")](){const e=this[Ti("0xb")];if(!e[Ti("0x0")].has(Ti("0x14")))return;const t=e[Ti("0x0")].get(Ti("0x16"));t[Ti("0x4")](Ti("0x17"),((n,o)=>{const r=e[Ti("0xc")][Ti("0xf")][Ti("0x7")];let s=[];if(r[Ti("0xd")]){if(!r[Ti("0x8")](Ti("0x9")))return void n(o);{const t=(0,Vr.findAttributeRange)(r.getFirstPosition(),Ti("0x9"),r.getAttribute(Ti("0x9")),e[Ti("0xc")]);s=[t]}}else s=Array[Ti("0x6")](r[Ti("0x13")]());e[Ti("0xc")][Ti("0x18")]((()=>{for(const e of s)t[Ti("0x1")](e,{commandName:Ti("0x17"),commandParams:[o]})}))})),t[Ti("0x4")](Ti("0x12"),(()=>{const n=this[Ti("0xb")][Ti("0xc")],o=n[Ti("0xf")][Ti("0x7")];n[Ti("0x18")]((()=>{let n=[];n=o[Ti("0xd")]?[(0,Vr.findAttributeRange)(o.getFirstPosition(),"linkHref",o[Ti("0xe")]("linkHref"),e.model)]:mr("linkHref",o[Ti("0x3")](),e.model);for(const e of n)t.markInlineFormat(e,{commandName:Ti("0x12"),commandParams:[]})}))})),t._descriptionFactory[Ti("0x10")]((t=>{const{data:n}=t,o=e[Ti("0xa")];if(n){if(Ti("0x17")==n.commandName){const e=n.commandParams[0];return{type:Ti("0x15"),content:Yo(o,Ti("0x2"),'"'+e+'"')}}return Ti("0x12")==n.commandName?{type:Ti("0x15"),content:Yo(o,Ti("0x5"))}:void 0}}))}}const yi=["ListEditing","enableCommand","ELEMENT_LIST_ITEM","blockName","getAttribute","model","todoList","*Outdent:* %0","element","ELEMENT_BULLETED_LIST","*Indent:* %0","numbered","filter","editor","push","end","locale","add","commandName","getSelectedBlocks","nextSibling","createPositionAt","execute","registerDescriptionCallback","*Change to:* %0","todoListChecked","bulleted","name","listItem","value","TrackChangesEditing","get","from","*Check item*","_descriptionFactory","plugins","format","numberedList","replace","listIndent","commands","ELEMENT_NUMBERED_LIST","todo","findIndex","previousSibling","commandParams","document","paragraph","checkChild","checkTodoList","listType","has","forceValue","markBlockFormat","TodoListEditing","schema","change","parent","bulletedList","List","indentList","selection","afterInit","length","outdentList","ELEMENT_TODO_LIST","createRange"];var ki,Ai;ki=yi,Ai=290,function(e){for(;--e;)ki.push(ki.shift())}(++Ai);const vi=function(e,t){return yi[e-=0]};class Ri extends e.Plugin{[vi("0x28")](){const e=this[vi("0x3a")],t=e[vi("0x3d")];if(!e[vi("0xd")][vi("0x1d")](vi("0x2d")))return;const n=e[vi("0xd")][vi("0x9")](vi("0x8")),o=e[vi("0xd")][vi("0x1d")](vi("0x20"));function r(t){return()=>{const o=e[vi("0x32")][vi("0x18")][vi("0x27")],r=e[vi("0x12")][vi("0x9")](t);if(r[vi("0x7")])return void e[vi("0x0")](vi("0x19"),{});const s=t.slice(0,-4),i=function(e,t,n){let o=Array.from(e).filter((e=>{return t=e,(o=n)[vi("0x1a")](t[vi("0x23")],"listItem")&&!o.isObject(t);var t,o}));o=o[vi("0x39")]((e=>!e.is("element",vi("0x6"))||e[vi("0x31")](vi("0x1c"))!=t));const r=new Set;for(const e of o)e.is(vi("0x35"),vi("0x6"))?r[vi("0x3e")](Ii(e)):r.add(e);return Array.from(r)}(o[vi("0x40")](),s,e[vi("0x32")][vi("0x21")]);e[vi("0x32")][vi("0x22")]((()=>{for(const e of i)n[vi("0x1f")](e,{commandName:t,commandParams:[{forceValue:!r[vi("0x7")]}],formatGroupId:vi("0x30")},Si(e))}))}}function s(t){return()=>{const o=function(e){let t=Array[vi("0xa")](e);const n=t[vi("0x15")]((e=>vi("0x6")!=e.name));return n>-1&&(t=t.slice(0,n)),t}(e[vi("0x32")][vi("0x18")][vi("0x27")][vi("0x40")]()),r=e.model[vi("0x2c")](e.model[vi("0x42")](o[0],"before"),e[vi("0x32")][vi("0x42")](o[o[vi("0x29")]-1],vi("0x3c")));e[vi("0x32")][vi("0x22")]((()=>{n[vi("0x1f")](r,{commandName:t,commandParams:[],formatGroupId:"listIndent"},function(e){const t=new Set;for(const n of e){let e=n[vi("0x41")];for(;e&&e[vi("0x31")]("listIndent")>n[vi("0x31")](vi("0x11"));)t[vi("0x3e")](e),e=e.nextSibling}return Array.from(t)}(o))}))}}n[vi("0x2e")](vi("0xf"),r(vi("0xf"))),n[vi("0x2e")](vi("0x24"),r(vi("0x24"))),o&&n[vi("0x2e")](vi("0x33"),r("todoList")),n[vi("0x2e")](vi("0x26"),s(vi("0x26"))),n[vi("0x2e")](vi("0x2a"),s(vi("0x2a"))),o&&n.enableCommand("checkTodoList",(()=>{const t=e.commands.get(vi("0x1b")),o=Array[vi("0xa")](t._selectedElements);o[vi("0x39")]((e=>e[vi("0x31")](vi("0x3"))!=t.value)),e[vi("0x32")][vi("0x22")]((()=>{for(const e of o)n[vi("0x1f")](e,{commandName:vi("0x1b"),commandParams:[{forceValue:!t.value}]})}))})),n[vi("0xc")].registerElementLabel(vi("0x6"),(e=>Yo(t,vi("0x2f"),e))),n[vi("0xc")][vi("0x1")]((e=>{const{data:n}=e;if(n){if(vi("0xf")==n[vi("0x3f")]||vi("0x24")==n.commandName||"todoList"==n.commandName)switch(n[vi("0x3f")][vi("0x10")](vi("0x25"),"")){case vi("0x4"):return o(Yo(t,vi("0x36")));case vi("0x38"):return o(Yo(t,vi("0x13")));case vi("0x14"):return o(Yo(t,vi("0x2b")))}if(vi("0x26")==n[vi("0x3f")])return{type:vi("0xe"),content:Yo(t,vi("0x37"),Yo(t,vi("0x2f")))};if(vi("0x2a")==n[vi("0x3f")])return{type:vi("0xe"),content:Yo(t,vi("0x34"),Yo(t,vi("0x2f")))};if(vi("0x1b")==n[vi("0x3f")])return n[vi("0x17")][0][vi("0x1e")]?{type:vi("0xe"),content:Yo(t,vi("0xb"))}:{type:"format",content:Yo(t,"*Uncheck item*")}}function o(e){return{type:"format",content:Yo(t,vi("0x2"),e)}}}))}}function Ii(e){const t=e.getAttribute(vi("0x11"));if(0==t)return e;let n=e;for(;e[vi("0x16")]&&e[vi("0x16")].is(vi("0x35"),"listItem");){const o=e.previousSibling[vi("0x31")](vi("0x11"));if(o==t)n=e[vi("0x16")];else if(o<t)break;e=e.previousSibling}return n}function Si(e){const t=[];if(e.is(vi("0x35"),vi("0x6"))&&e.getAttribute("listIndent")>0){let n=e[vi("0x41")];for(;n&&"listItem"==n[vi("0x5")]&&n[vi("0x31")](vi("0x11"))==e[vi("0x31")](vi("0x11"));)t[vi("0x3b")](n),n=n[vi("0x41")]}return t}const Li=["locale","getFirstPosition","handleListStyleCommand","forward","has","get","*Format:* set order to regular","ListPropertiesEditing","type","plugins","length","TrackChangesEditing","listType","_getSuggestionBlocksForListStyle","change","*Format:* set start index to %0","parent","*Format:* set order to reversed","filter","listStyle","enableCommand","styles","listStart","registerDescriptionCallback","handleDescriptions","backward","handleListReversedCommand","_LIST_","flat","markMultiRangeBlockFormat","bind","startIndex","selection","map","_getSuggestionBlocks","createRange","getSelectedBlocks","_getTranslationKeyForListStyle","listItem","commandName","getSiblingNodes","handleListStartCommand","model","commandParams","_descriptionFactory","*Change to:* %0","toUpperCase","listReversed","getAttribute","numbered","list.properties","format","before","afterInit","reversed","editor","createPositionAt","element","document","ListUtils","push","from"];var Ni,Mi;Ni=Li,Mi=296,function(e){for(;--e;)Ni.push(Ni.shift())}(++Mi);const wi=function(e,t){return Li[e-=0]};class Oi extends e.Plugin{[wi("0x5")](){if(!this[wi("0x7")][wi("0x17")][wi("0x12")](wi("0x15")))return;const e=this[wi("0x7")].config[wi("0x13")](wi("0x2")),t=this[wi("0x7")][wi("0x17")][wi("0x13")](wi("0x19"));e[wi("0x23")]&&t[wi("0x22")](wi("0x21"),this[wi("0x10")][wi("0x2c")](this)),e[wi("0x6")]&&t.enableCommand(wi("0x3d"),this[wi("0x28")][wi("0x2c")](this)),e[wi("0x2d")]&&t[wi("0x22")](wi("0x24"),this[wi("0x37")][wi("0x2c")](this)),t[wi("0x3a")][wi("0x25")](this[wi("0x26")].bind(this))}[wi("0x10")](e,t={}){const n=this.editor[wi("0x17")][wi("0x13")](wi("0x19")),o=this[wi("0x1b")]();this.editor[wi("0x38")][wi("0x1c")]((()=>{n[wi("0x2b")](o,{commandName:"listStyle",commandParams:[{type:t.type}],formatGroupId:wi("0x21")})}))}[wi("0x28")](e,t={}){const n=this[wi("0x7")][wi("0x17")].get(wi("0x19")),o=this._getSuggestionBlocks((e=>e.is("element",wi("0x34"))&&wi("0x1")===e[wi("0x0")](wi("0x1a"))));if(o[wi("0x18")]<1)return;const r=o[wi("0x2f")]((e=>this[wi("0x7")][wi("0x38")].createRange(this[wi("0x7")][wi("0x38")][wi("0x8")](e,"before"),this[wi("0x7")].model[wi("0x8")](e,0))));this[wi("0x7")][wi("0x38")].change((()=>{n.markMultiRangeBlockFormat(r,{commandName:wi("0x3d"),commandParams:[{reversed:t[wi("0x6")]}],formatGroupId:"listReversed"})}))}[wi("0x37")](e,t={}){const n=this[wi("0x7")][wi("0x17")][wi("0x13")]("TrackChangesEditing"),o=this[wi("0x30")]((e=>e.is(wi("0x9"),wi("0x34"))&&"numbered"===e[wi("0x0")]("listType")));if(o[wi("0x18")]<1)return;const r=o[wi("0x2f")]((e=>this[wi("0x7")][wi("0x38")][wi("0x31")](this[wi("0x7")].model[wi("0x8")](e,wi("0x4")),this[wi("0x7")][wi("0x38")].createPositionAt(e,0))));this[wi("0x7")].model[wi("0x1c")]((()=>{n[wi("0x2b")](r,{commandName:wi("0x24"),commandParams:[{startIndex:t[wi("0x2d")]}],formatGroupId:wi("0x24")})}))}[wi("0x26")](e){const t=this[wi("0x7")][wi("0xe")],{data:n}=e;if(!n)return;let o,r;switch(n[wi("0x35")]){case wi("0x21"):o=wi("0x3b"),r={type:wi("0x3"),content:Yo(t,o,Yo(t,this[wi("0x33")](n.commandParams[0][wi("0x16")])))};break;case"listReversed":o=n[wi("0x39")][0].reversed?wi("0x1f"):wi("0x14"),r={type:wi("0x3"),content:Yo(t,o)};break;case wi("0x24"):o=wi("0x1d"),r={type:wi("0x3"),content:Yo(t,o,n[wi("0x39")][0][wi("0x2d")])}}return r}[wi("0x1b")](){var e,t,n,o;const r=this[wi("0x7")][wi("0x17")][wi("0x13")](wi("0xb"));let s=Array[wi("0xd")](this[wi("0x7")][wi("0x38")][wi("0xa")][wi("0x2e")][wi("0x32")]());return(null===(e=s[0])||void 0===e?void 0:e.is(wi("0x9"),wi("0x34")))&&s.unshift(...r.getSiblingNodes(this[wi("0x7")][wi("0x38")][wi("0xa")][wi("0x2e")][wi("0xf")](),wi("0x27"))),(null===(t=s[s.length-1])||void 0===t?void 0:t.is(wi("0x9"),wi("0x34")))&&s[wi("0xc")](...r[wi("0x36")](this[wi("0x7")][wi("0x38")].document.selection.getLastPosition(),"forward")),s=[...new Set(s)],(null===(o=null===(n=this.editor[wi("0x38")].document[wi("0x2e")].getFirstPosition())||void 0===n?void 0:n[wi("0x1e")])||void 0===o?void 0:o.is(wi("0x9"),wi("0x34")))&&(s=s[wi("0x20")]((e=>e.is(wi("0x9"),wi("0x34"))))),s}_getSuggestionBlocks(e){const t=this[wi("0x7")][wi("0x17")][wi("0x13")](wi("0xb"));let n=Array[wi("0xd")](this[wi("0x7")].model[wi("0xa")].selection.getSelectedBlocks())[wi("0x20")](e)[wi("0x2f")]((e=>{const n=this[wi("0x7")].model[wi("0x8")](e,0);return[...t[wi("0x36")](n,wi("0x27")),...t.getSiblingNodes(n,wi("0x11"))]}))[wi("0x2a")]();return n=[...new Set(n)],n}[wi("0x33")](e){return"ELEMENT_"+this[wi("0x7")][wi("0x17")][wi("0x13")]("ListUtils").getListTypeFromListStyleType(e)[wi("0x3c")]()+wi("0x29")+e.toUpperCase().replace(/-/g,"_")}}const Fi=["div","data","showSuggestionHighlights","get","enableCommand","conversion","ELEMENT_MEDIA","high","downcastDispatcher","MediaEmbedEditing","has","_descriptionFactory","dataDowncast","for","locale","TrackChangesEditing","plugins","media","attribute:url:media","createEmptyElement","stop"];var Pi,Di;Pi=Fi,Di=439,function(e){for(;--e;)Pi.push(Pi.shift())}(++Di);const Bi=function(e,t){return Fi[e-=0]};class ji extends e.Plugin{afterInit(){const e=this.editor;if(!e[Bi("0x12")][Bi("0xc")](Bi("0xb")))return;const t=e[Bi("0x12")][Bi("0x5")](Bi("0x11")),n=e[Bi("0x10")];t[Bi("0x6")]("mediaEmbed"),t[Bi("0xd")].registerElementLabel(Bi("0x13"),(e=>Yo(n,Bi("0x8"),e))),e[Bi("0x7")][Bi("0xf")](Bi("0xe")).elementToElement({model:Bi("0x13"),view:(e,{writer:t,options:n})=>{if(n[Bi("0x4")])return t[Bi("0x0")](Bi("0x2"))},converterPriority:"high"}),e[Bi("0x3")][Bi("0xa")].on(Bi("0x14"),((e,t,n)=>{n.options[Bi("0x4")]&&e[Bi("0x1")]()}),{priority:Bi("0x9")})}}const Ui=["editor","plugins","mention","enableCommand","get","has","afterInit"];var Gi,Hi;Gi=Ui,Hi=198,function(e){for(;--e;)Gi.push(Gi.shift())}(++Hi);const zi=function(e,t){return Ui[e-=0]};class Wi extends e.Plugin{[zi("0x4")](){const e=this[zi("0x5")];e[zi("0x6")][zi("0x3")]("MentionEditing")&&e[zi("0x6")][zi("0x2")]("TrackChangesEditing")[zi("0x1")](zi("0x0"))}}const Vi=["plugins","locale","has","PageBreakEditing","pageBreak","ELEMENT_PAGE_BREAK","TrackChangesEditing","enableCommand","get","registerElementLabel","afterInit"];var Ki,qi;Ki=Vi,qi=171,function(e){for(;--e;)Ki.push(Ki.shift())}(++qi);const Xi=function(e,t){return Vi[e-=0]};class $i extends e.Plugin{[Xi("0x4")](){const e=this.editor;if(!e[Xi("0x5")][Xi("0x7")](Xi("0x8")))return;e[Xi("0x5")][Xi("0x2")](Xi("0x0"))[Xi("0x1")](Xi("0x9"));const t=e[Xi("0x5")][Xi("0x2")](Xi("0x0")),n=e[Xi("0x6")];t._descriptionFactory[Xi("0x3")]("pageBreak",(e=>Yo(n,Xi("0xa"),e)))}}const Qi=["isBlock","editing","includes","TrackChangesEditing","registerDescriptionCallback","insertion","change","Paragraph","options","nodeAfter","filter","blockName","span","addClass","afterInit","mapper","getSelectedBlocks","end","highest","format","insert","markerName","has","checkChild","start","bindElementToMarker","commandName","model","locale","_descriptionFactory","ck-suggestion-marker--active","$text","isLimit","markerRange","type","editor","isObject","activeMarkers","schema","getItemLabel","plugins","get","writer","document","parent","createUIElement","selection","toViewPosition","paragraph","*Insert:* %0","addMarker:suggestion:insertion","downcastDispatcher","name","registerElementLabel","ck-suggestion-marker-split","isTouching","ELEMENT_PARAGRAPH"];var Ji,Zi;Ji=Qi,Zi=114,function(e){for(;--e;)Ji.push(Ji.shift())}(++Zi);const Yi=function(e,t){return Qi[e-=0]};class ex extends e.Plugin{[Yi("0xe")](){const e=this[Yi("0x23")];if(!e[Yi("0x28")][Yi("0x16")](Yi("0x7")))return;const t=e[Yi("0x1c")],n=e[Yi("0x28")][Yi("0x29")](Yi("0x3"));n[Yi("0x1d")][Yi("0x35")](Yi("0x30"),(e=>Yo(t,Yi("0x38"),e))),n.enableCommand("paragraph",((t,o={})=>{const r=e[Yi("0x1b")][Yi("0x2b")],s=o[Yi("0x2e")]||r.selection,i=Array.from(s[Yi("0x10")]())[Yi("0xa")]((e=>{return t=e,(n=this[Yi("0x23")][Yi("0x1b")][Yi("0x26")])[Yi("0x17")](t[Yi("0x2c")],"paragraph")&&!n[Yi("0x24")](t)&&"paragraph"!=t[Yi("0x34")];var t,n}));e[Yi("0x1b")][Yi("0x6")]((()=>{for(const e of i)n.markBlockFormat(e,{commandName:Yi("0x30"),commandParams:[],formatGroupId:Yi("0xb")},fr(e))}))})),n[Yi("0x1d")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&Yi("0x30")==n[Yi("0x1a")])return{type:Yi("0x13"),content:Yo(t,"*Change to:* %0",Yo(t,Yi("0x38")))}})),n.enableCommand("insertParagraph"),e[Yi("0x1")][Yi("0x33")].on(Yi("0x32"),tx(e),{priority:"highest"}),e.data[Yi("0x33")].on(Yi("0x32"),((t,n,o)=>{o[Yi("0x8")].showSuggestionHighlights&&tx(e,{showActiveMarker:!1})(t,n,o)}),{priority:Yi("0x12")});const o=n._descriptionFactory;o[Yi("0x4")]((n=>{if(Yi("0x5")!==n[Yi("0x22")])return;const{start:r,end:s}=n.getFirstRange();if(!r[Yi("0x37")](s)||!r[Yi("0x9")])return;const i=e[Yi("0x1b")][Yi("0x26")],x=r.nodeAfter;return i[Yi("0x0")](x)&&!i[Yi("0x20")](x)&&i[Yi("0x17")](x,Yi("0x1f"))?{type:"insertion",content:Yo(t,Yi("0x31"),o[Yi("0x27")](x,1))}:void 0}))}}function tx(e,{showActiveMarker:t=!0}={}){return(n,o,r)=>{const s=e.plugins.get("TrackChangesEditing"),i=o[Yi("0x21")][Yi("0x18")],x=o[Yi("0x21")][Yi("0x11")],a=e[Yi("0x1b")].schema;if(!i[Yi("0x37")](x)||!i.nodeAfter)return;const c=i.nodeAfter;if(a[Yi("0x0")](c)&&!a[Yi("0x20")](c)&&a[Yi("0x17")](c,Yi("0x1f"))){if(!r.consumable.consume(o[Yi("0x21")],n[Yi("0x34")]))return;const e=r[Yi("0x2a")][Yi("0x2d")](Yi("0xc"),{class:Yi("0x36")}),i=r[Yi("0xf")][Yi("0x2f")](x);t&&s[Yi("0x25")][Yi("0x2")](o.markerName)&&r[Yi("0x2a")][Yi("0xd")](Yi("0x1e"),e),r[Yi("0x2a")][Yi("0x14")](i,e),r[Yi("0xf")][Yi("0x19")](e,o[Yi("0x15")])}}}const nx=["model","RemoveFormatEditing","has","createRangeOn","from","TrackChangesEditing","getAttributeProperties","getAttributes","plugins","isFormatting","afterInit","markInlineFormat","removeFormat","isCollapsed","_descriptionFactory","commandName","getRanges","selection","document","enableCommand","change","schema"];var ox,rx;ox=nx,rx=103,function(e){for(;--e;)ox.push(ox.shift())}(++rx);const sx=function(e,t){return nx[e-=0]};class ix extends e.Plugin{[sx("0x11")](){const e=this.editor;if(!e[sx("0xf")][sx("0x9")](sx("0x8")))return;const t=e[sx("0xf")].get(sx("0xc"));t[sx("0x4")]("removeFormat",(n=>{const o=e[sx("0x7")][sx("0x3")][sx("0x2")];o[sx("0x14")]?n():e[sx("0x7")][sx("0x5")]((()=>{const n=Array[sx("0xb")](o[sx("0x1")]());for(const o of n)for(const n of o.getItems())xx(n,e[sx("0x7")][sx("0x6")])&&t[sx("0x12")](e.model[sx("0xa")](n),{commandName:"removeFormat",commandParams:[]})}))})),t[sx("0x15")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&sx("0x13")==n[sx("0x0")])return{type:"format",content:Yo(e.locale,"*Remove all formatting*")}}))}}function xx(e,t){for(const[n]of e[sx("0xe")]()){const e=t[sx("0xd")](n);if(e&&e[sx("0x10")])return!0}return!1}const ax=["get","discardAllSuggestions","acceptSuggestion","TrackChangesEditing","discardSuggestion","enableCommand","editor","plugins","afterInit","RestrictedEditingModeEditing","discardSelectedSuggestions","goToPreviousRestrictedEditingException","has"];var cx,lx;cx=ax,lx=376,function(e){for(;--e;)cx.push(cx.shift())}(++lx);const dx=function(e,t){return ax[e-=0]};class ux extends e.Plugin{[dx("0x9")](){const e=this[dx("0x7")];if(!e.plugins[dx("0x0")](dx("0xa")))return;const t=e.plugins[dx("0x1")](dx("0x4"));t.enableCommand(dx("0xc")),t[dx("0x6")]("goToNextRestrictedEditingException");const n=e[dx("0x8")][dx("0x1")](dx("0xa"));n[dx("0x6")]("trackChanges"),n[dx("0x6")](dx("0x3")),n.enableCommand(dx("0x5")),n[dx("0x6")]("acceptAllSuggestions"),n[dx("0x6")](dx("0x2")),n[dx("0x6")]("acceptSelectedSuggestions"),n[dx("0x6")](dx("0xb"))}}const gx=["test","createPositionBefore","consumable","downcastDispatcher","softBreak","enableCommand","bindElementToMarker","plugins","options","editor","locale","getItems","writer","ck-suggestion-marker--active","editing","split","data","toViewPosition","high","showSuggestionHighlights","addMarker:suggestion:deletion","insert","markerName","span","model","element","name","addMarker:suggestion","_descriptionFactory","markerRange","shiftEnter","TrackChangesEditing","ck-suggestion-marker-","requires","ELEMENT_LINE_BREAK","addMarker:suggestion:insertion"];var mx,fx;mx=gx,fx=273,function(e){for(;--e;)mx.push(mx.shift())}(++fx);const hx=function(e,t){return gx[e-=0]};class bx extends e.Plugin{static get[hx("0xc")](){return[ns.ShiftEnter]}init(){const e=this[hx("0x18")],t=e[hx("0x16")].get(hx("0xa"));t[hx("0x14")](hx("0x9")),e[hx("0x1d")][hx("0x12")].on(hx("0xe"),px(e),{priority:hx("0x21")}),e.editing[hx("0x12")].on(hx("0x23"),px(e),{priority:hx("0x21")}),e[hx("0x1f")][hx("0x12")].on(hx("0x6"),((t,n,o)=>{o[hx("0x17")][hx("0x22")]&&px(e,{showActiveMarker:!1})(t,n,o)})),t[hx("0x7")].registerElementLabel(hx("0x13"),(t=>Yo(e[hx("0x19")],hx("0xd"),t)))}}function px(e,{showActiveMarker:t=!0}={}){return(n,o,r)=>{const s=e[hx("0x16")].get(hx("0xa"));if(!r[hx("0x11")][hx("0xf")](o.markerRange,n[hx("0x5")]))return;const i=e[hx("0x3")];for(const e of o[hx("0x8")][hx("0x1a")]()){if(!e.is(hx("0x4"),hx("0x13")))continue;const n="deletion"==o[hx("0x1")][hx("0x1e")](":")[1]?"merge":hx("0x1e"),x=r[hx("0x1b")].createUIElement(hx("0x2"),{class:hx("0xb")+n}),a=r.mapper[hx("0x20")](i[hx("0x10")](e));t&&s.activeMarkers.includes(o.markerName)&&r.writer.addClass(hx("0x1c"),x),r.writer[hx("0x0")](a,x),r.mapper[hx("0x15")](x,o[hx("0x1")])}}}const Ex=["editor","FORMAT_RESTRICTED_ENABLED","document","format","commandParams","StandardEditingModeEditing","markInlineFormat","commands","plugins","TrackChangesEditing","restrictedEditingException","from","enableCommand","selection","change","get","afterInit","commandName","forceValue","isCollapsed","model"];var _x,Tx;_x=Ex,Tx=265,function(e){for(;--e;)_x.push(_x.shift())}(++Tx);const Cx=function(e,t){return Ex[e-=0]};class yx extends e.Plugin{[Cx("0x3")](){const e=this[Cx("0x8")],t=e[Cx("0x7")],n=e.locale;if(!e.plugins.has(Cx("0xd")))return;const o=e[Cx("0x10")][Cx("0x2")](Cx("0x11")),r=Cx("0x12"),s=e[Cx("0xf")][Cx("0x2")](r);o[Cx("0x14")](r,((e,n={})=>{const i=t[Cx("0xa")][Cx("0x0")];if(i[Cx("0x6")])return void e(n);const x=void 0!==n[Cx("0x5")]?n.forceValue:!s.value;t[Cx("0x1")]((()=>{const e=Array[Cx("0x13")](i.getRanges());for(const n of e){const e=x?[n]:mr(r,n,t);for(const t of e)o[Cx("0xe")](t,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory.registerDescriptionCallback((e=>{const{data:t}=e;if(t&&t[Cx("0x4")]==r)return t[Cx("0xc")][0].forceValue?{type:Cx("0xb"),content:Yo(n,Cx("0x9"))}:{type:Cx("0xb"),content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const kx=["locale","includes","has","*Format:* %0","commandName","registerDescriptionCallback","getSelectedBlocks","document","_getRangesWithClasses","StyleUtils","inline","find","value","commands","DataSchema","plugins","add","name","getAncestors","TrackChangesEditing","_descriptionFactory","_getStyleDefinition","config","enableCommand","classes","markInlineFormat","push","toLowerCase","getItems","style","from","getDefinitionsForView","get","isBlock","element","getRanges","editor","styleName","forceValue","style.definitions","format","isCollapsed","markBlockFormat","commandParams","model","change","every","createRangeOn"];var Ax,vx;Ax=kx,vx=457,function(e){for(;--e;)Ax.push(Ax.shift())}(++vx);const Rx=function(e,t){return kx[e-=0]};class Ix extends e.Plugin{afterInit(){const e=this[Rx("0xb")];if(!e[Rx("0x26")][Rx("0x19")]("Style"))return;const t=e[Rx("0x24")].get("style"),n=e.plugins.get(Rx("0x2a")),o=e[Rx("0x17")],r=e[Rx("0x26")][Rx("0x7")](Rx("0x25")),s=e[Rx("0x26")][Rx("0x7")](Rx("0x20")).normalizeConfig(r,e[Rx("0x2d")][Rx("0x7")](Rx("0xe")));n[Rx("0x2e")](Rx("0x4"),((o,{styleName:i})=>{const x=e[Rx("0x13")][Rx("0x1e")].selection,a=this[Rx("0x2c")](i,s);if(!a)return;if(!t.enabledStyles.includes(i))return;if(x[Rx("0x10")]&&!a[Rx("0x8")])return void o({styleName:i});const c=!t[Rx("0x23")][Rx("0x18")](a[Rx("0x28")]);if(a.isBlock){const t=function(e,t){const n=new Set;for(const o of e){const e=o[Rx("0x29")]({includeSelf:!0,parentFirst:!0});for(const o of e)if(t[Rx("0x18")](o[Rx("0x28")])){n[Rx("0x27")](o);break}}return n}(x[Rx("0x1d")](),a.modelElements);e[Rx("0x13")][Rx("0x14")]((()=>{for(const e of t)n[Rx("0x11")](e,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let t=Array[Rx("0x5")](x[Rx("0xa")]());if(!c){const n=Array[Rx("0x5")](r[Rx("0x6")](a[Rx("0x9")],!1))[0].model,o=[];for(const r of t){const t=this[Rx("0x1f")](e[Rx("0x13")],r,a[Rx("0x2f")],n);o[Rx("0x1")](...t)}t=o}e.model[Rx("0x14")]((()=>{for(const e of t)n[Rx("0x0")](e,{commandName:Rx("0x4"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x2b")][Rx("0x1c")]((e=>{const{data:t}=e;if(t&&"style"===t[Rx("0x1b")])return t[Rx("0x12")][0][Rx("0xd")]?{type:Rx("0xf"),content:Yo(o,Rx("0x1a"),t.commandParams[0][Rx("0xc")][Rx("0x2")]())}:{type:Rx("0xf"),content:Yo(o,"*Remove format:* %0",t[Rx("0x12")][0][Rx("0xc")][Rx("0x2")]())}}))}[Rx("0x2c")](e,t){let n=t.block[Rx("0x22")]((t=>t.name===e));return n||(n=t[Rx("0x21")][Rx("0x22")]((t=>t[Rx("0x28")]===e))),n}[Rx("0x1f")](e,t,n,o){const r=[];for(const s of t[Rx("0x3")]()){const t=s.getAttribute(o);t&&n[Rx("0x15")]((e=>t.classes[Rx("0x18")](e)))&&r[Rx("0x1")](e[Rx("0x16")](s))}return r}}const Sx=["_getCoordsForCells","ELEMENT_TABLE_WITH_TEXT","isInContent","hasAttribute","createTableWalker","options","ELEMENT_TABLE","item","values","ELEMENT_TABLE_ROW_WITH_TEXT","discard","end","_getSuggestionCoords","setSelection","*Insert:* %0","_suggestionFactory","element","_descriptionFactory","map","minRow","root","oldRange","removeClass","createRangeIn","registerElementLabel","MAX_SAFE_INTEGER","ELEMENT_TABLE_ROW","some","afterInit","maxRow","cell","ELEMENT_TABLE_COLUMN","toLowerCase","enqueueChange","_splitMarkerName","markMultiRangeInsertion","isArray","isEqual","selectTableColumn","colspan","getCellLocation","nodeAfter","addRange","subType","MIN_SAFE_INTEGER","left","tablePaste","span","selection","addClass","document","getSuggestion","insertTableColumnLeft","_acceptFormatSuggestionCallbackFactory","getAttribute","$graveyard","removeTableRow","change","push","type","accept","registerPostFixer","getSelectionAffectedTableCells","findAncestor","first","insertion","includes","length","rowspan","last","*Remove:* %0","substr","registerCustomCallback","rootName","join","editor","commands","enableCommand","classes","fromRange","getChildren","above","has","$textProxy","getRowIndexes","createPositionAt","startsWith","get","min","getContainedElement","addMarker:suggestion","every","execute","from","tableCell","_tablePostFixingSubtypes","insertTableRowBelow","table","getItems","tableColumn","refresh","ELEMENT_TABLE_COLUMN_WITH_TEXT","suggestion","removeTableColumn","tableRow","_tableSuggestions","plugins","selectTableRow","insertTableRowAbove","markMultiRangeDeletion","deletion","order","differ","TableUtils","name","isIntersectingWithRange","detach","nodeBefore","model","getRanges","insertTableColumnRight","data","filter","writer","_setupColumnsRowsFixing","isTouching","showSuggestionHighlights","registerDescriptionCallback","getChangedMarkers","getColumnIndexes","createRangeOn","start","max","change:data"];var Lx,Nx;Lx=Sx,Nx=119,function(e){for(;--e;)Lx.push(Lx.shift())}(++Nx);const Mx=function(e,t){return Sx[e-=0]};class wx extends e.Plugin{constructor(e){super(e),this[Mx("0x6e")]=[Mx("0x77"),Mx("0x72")],this[Mx("0x78")]=new Set}[Mx("0x2b")](){const e=this[Mx("0x5a")],t=e[Mx("0x85")][Mx("0x41")].selection;if(!e[Mx("0x79")][Mx("0x61")]("TableEditing"))return;const n=e.locale,o=e[Mx("0x79")].get("TrackChangesEditing"),r=e[Mx("0x79")].get(Mx("0x80"));o._descriptionFactory[Mx("0x27")]("table",(e=>Yo(n,Mx("0x15"),e))),this._setupColumnsRowsFixing(),o.enableCommand("insertTable"),o[Mx("0x5c")](Mx("0x7a")),o[Mx("0x5c")](Mx("0x35"));for(const n of[Mx("0x7b"),Mx("0x6f")]){const s=e[Mx("0x5b")].get(n);o[Mx("0x5c")](n,(n=>{e.model.change((e=>{n();const i=Mx("0x60")===s[Mx("0x7e")],x=r[Mx("0x4d")](t),a=r[Mx("0x63")](x),c=i?a[Mx("0x4f")]-1:a.last+1,l=x[0][Mx("0x4e")](Mx("0x70")),d=r[Mx("0x13")](l,{startRow:c,endRow:c}),u=Array[Mx("0x6c")](d)[Mx("0x21")]((t=>e[Mx("0xb")](t[Mx("0x2d")])));o.markMultiRangeInsertion(u,"tableRow")}))}))}for(const n of[Mx("0x43"),Mx("0x1")]){const s=e[Mx("0x5b")][Mx("0x66")](n);o[Mx("0x5c")](n,(n=>{e.model[Mx("0x48")]((e=>{n();const i=Mx("0x3c")===s[Mx("0x7e")],x=r[Mx("0x4d")](t),a=r[Mx("0xa")](x),c=i?a[Mx("0x4f")]-1:a.last+1,l=x[0][Mx("0x4e")](Mx("0x70")),d=r.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x6c")](d)[Mx("0x21")]((t=>e[Mx("0xb")](t.cell)));o[Mx("0x32")](u,Mx("0x72"))}))}))}for(const n of[Mx("0x47"),"removeTableColumn"]){const s=n.substr(11),i=s[Mx("0x2f")](),x=i[Mx("0x56")](0,3)+Mx("0x3e"),a=Mx("0x70")+s,c="min"+s,l=Mx("0xd")+s;o[Mx("0x5c")](n,(()=>{e.model[Mx("0x48")]((e=>{const s=r[Mx("0x4d")](t),d=s[0][Mx("0x4e")](Mx("0x70"));let u;if("removeTableRow"==n){const e=r[Mx("0x63")](s);u={startRow:e[Mx("0x4f")],endRow:e[Mx("0x54")],includeAllSlots:!0}}else{const e=r[Mx("0xa")](s);u={startColumn:e[Mx("0x4f")],endColumn:e[Mx("0x54")],includeAllSlots:!0}}const g=r.createTableWalker(d,u),m=Array[Mx("0x6c")](g)[Mx("0x21")]((({cell:e})=>e)),f=Ox(m.filter((e=>e.hasAttribute(x)))),h=Ox(m.filter((e=>!e[Mx("0x12")](x))))[Mx("0x21")]((t=>e[Mx("0xb")](t))),b=o[Mx("0x7c")](h,a);if(b&&(Mx("0x77")==b[Mx("0x3a")]||Mx("0x72")==b[Mx("0x3a")])){const t=this[Mx("0x1b")](b);for(const n of f){const o=e[Mx("0xb")](n),s=r[Mx("0x37")](n),a=n[Mx("0x45")](x)-1,d=t[c],u=t[l];d<=s[i]&&s[i]+a<=u&&b[Mx("0x39")](o)}}}))}))}function s(n){const o=Array[Mx("0x6c")](t[Mx("0x0")]()).map((e=>i.LiveRange.fromRange(e)));e[Mx("0x85")].change((t=>{const r=t.batch;n=n[Mx("0x3")]((e=>Mx("0x46")!=e[Mx("0x23")][Mx("0x58")])),t[Mx("0x1c")](n),e[Mx("0x5b")][Mx("0x66")](Mx("0x47"))[Mx("0x73")](),e.execute("removeTableRow",{forceDefaultExecution:!0}),e[Mx("0x85")][Mx("0x30")]((()=>{e.model.enqueueChange(r,(e=>{const t=o.filter((e=>Mx("0x46")!=e[Mx("0x23")][Mx("0x58")]));t.length>0&&e[Mx("0x1c")](t);for(const e of o)e[Mx("0x83")]()}))}))}))}function a(n){e[Mx("0x85")][Mx("0x48")]((o=>{const r=Array[Mx("0x6c")](t[Mx("0x0")]())[Mx("0x21")]((e=>i.LiveRange[Mx("0x5e")](e))),s=[];for(const e of n)for(const t of e.getItems({shallow:!0}))s[Mx("0x49")](t);for(const t of s)Mx("0x46")!=t[Mx("0x23")][Mx("0x58")]&&(o[Mx("0x1c")](o[Mx("0x64")](t,0)),e[Mx("0x5b")].get("removeTableColumn")[Mx("0x73")](),e.execute(Mx("0x76"),{forceDefaultExecution:!0}));const x=r[Mx("0x3")]((e=>"$graveyard"!=e[Mx("0x23")][Mx("0x58")]));x[Mx("0x52")]>0&&o[Mx("0x1c")](x);for(const e of r)e[Mx("0x83")]()}))}function c(e,t){return t[Mx("0x6a")]((t=>e[Mx("0x2a")]((e=>e[Mx("0x1a")][Mx("0x34")](t[Mx("0xc")])||t[Mx("0x1a")][Mx("0x34")](e[Mx("0xc")])))))}function l(e,t){return e.some((e=>t[Mx("0x2a")]((t=>e[Mx("0x1a")][Mx("0x6")](t[Mx("0xc")])))))}e.data.downcastDispatcher.on(Mx("0x69"),((e,t,n)=>{if(!n[Mx("0x14")][Mx("0x7")])return;const o=t[Mx("0x16")];if(!o)return;const r=n.mapper.toViewElement(o);function s(e){return Array[Mx("0x33")](e)?e:[e]}r&&Mx("0x6d")===o.name&&(0,x.setHighlightHandling)(r,n[Mx("0x4")],((e,t,n)=>n[Mx("0x40")](s(t[Mx("0x5d")]),e)),((e,t,n)=>n[Mx("0x25")](s(t[Mx("0x5d")]),e)))}),{priority:"highest"}),o[Mx("0x20")][Mx("0x8")]((e=>{if(Mx("0x50")!=e.type&&"deletion"!=e.type)return;const t=e[Mx("0x68")]();if(null!=t&&t.is(Mx("0x1f"),Mx("0x70"))){if(Mx("0x50")==e[Mx("0x4a")]){const t=e.getItems()[Mx("0x3")]((e=>e.is(Mx("0x62"))))[Mx("0x21")]((e=>e.data));if(t[Mx("0x52")])return{type:"insertion",content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x10"),'"'+t[Mx("0x59")](" ")+'"'))}}if("deletion"==e[Mx("0x4a")]){const t=e[Mx("0x71")]()[Mx("0x3")]((e=>e.is(Mx("0x62"))))[Mx("0x21")]((e=>e[Mx("0x2")]));if(t.length)return{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+t[Mx("0x59")](" ")+'"'))}}}})),o[Mx("0x20")][Mx("0x8")]((e=>{if("tableRow"==e.subType){const t=e[Mx("0x71")]()[Mx("0x3")]((e=>e.is(Mx("0x62"))))[Mx("0x21")]((e=>e[Mx("0x2")])),o=this[Mx("0x1b")](e),r=o[Mx("0x2c")]-o[Mx("0x22")]+1;if("insertion"==e[Mx("0x4a")])return t.length?{type:"insertion",content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x18"),[r,'"'+t[Mx("0x59")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x29"),r))};if(Mx("0x7d")==e[Mx("0x4a")])return t[Mx("0x52")]?{type:"deletion",content:Yo(n,Mx("0x55"),Yo(n,Mx("0x18"),[r,'"'+t[Mx("0x59")](" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0x55"),Yo(n,"ELEMENT_TABLE_ROW",r))}}if(Mx("0x72")==e.subType){const t=e[Mx("0x71")]()[Mx("0x3")]((e=>e.is(Mx("0x62"))))[Mx("0x21")]((e=>e[Mx("0x2")])),o=this[Mx("0x1b")](e),r=o.maxColumn-o.minColumn+1;if(Mx("0x50")==e.type)return t[Mx("0x52")]?{type:Mx("0x50"),content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x74"),[r,'"'+t[Mx("0x59")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x2e"),r))};if(Mx("0x7d")==e.type)return t[Mx("0x52")]?{type:Mx("0x7d"),content:Yo(n,Mx("0x55"),Yo(n,Mx("0x74"),[r,'"'+t[Mx("0x59")](" ")+'"']))}:{type:Mx("0x7d"),content:Yo(n,Mx("0x55"),Yo(n,Mx("0x2e"),r))}}})),o[Mx("0x1e")][Mx("0x57")](Mx("0x50"),Mx("0x77"),Mx("0x19"),s),o[Mx("0x1e")][Mx("0x57")](Mx("0x7d"),Mx("0x77"),Mx("0x4b"),s),o[Mx("0x1e")][Mx("0x57")](Mx("0x50"),Mx("0x72"),Mx("0x19"),a),o[Mx("0x1e")][Mx("0x57")](Mx("0x7d"),Mx("0x72"),Mx("0x4b"),a),o[Mx("0x1e")][Mx("0x57")](Mx("0x50"),Mx("0x72"),Mx("0x59"),c),o[Mx("0x1e")][Mx("0x57")](Mx("0x7d"),"tableColumn","join",c),o[Mx("0x1e")].registerCustomCallback(Mx("0x50"),Mx("0x77"),Mx("0x59"),l),o[Mx("0x1e")][Mx("0x57")](Mx("0x7d"),"tableRow",Mx("0x59"),l)}[Mx("0x44")](){const e=this.editor,t=e[Mx("0x85")][Mx("0x41")][Mx("0x3f")];return(n,o)=>{e.model[Mx("0x48")]((r=>{const{commandName:s,commandParams:x}=o;let a=n[0][Mx("0x1a")][Mx("0x84")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start.nodeAfter);const c=r[Mx("0x26")](a);if(Mx("0x46")==c[Mx("0x23")][Mx("0x58")])return;const l=Array.from(t[Mx("0x0")]())[Mx("0x21")]((e=>i.LiveRange[Mx("0x5e")](e)));r.setSelection(c),e[Mx("0x5b")][Mx("0x66")](s)[Mx("0x73")](),x[Mx("0x49")]({forceDefaultExecution:!0}),e[Mx("0x6b")](s,...x);const d=l[Mx("0x3")]((e=>"$graveyard"!=e[Mx("0x23")][Mx("0x58")]));d[Mx("0x52")]>0&&r.setSelection(d);for(const e of l)e.detach()}))}}[Mx("0xf")](e){const t=this[Mx("0x5a")][Mx("0x79")].get(Mx("0x80"));let n=Number[Mx("0x28")],o=Number[Mx("0x3b")],r=Number[Mx("0x28")],s=Number[Mx("0x3b")];for(const i of e){if(Mx("0x46")==i[Mx("0x23")].rootName)continue;const{row:e,column:x}=t[Mx("0x37")](i),a=i[Mx("0x12")](Mx("0x53"))?i[Mx("0x45")]("rowspan")-1:0,c=i[Mx("0x12")](Mx("0x36"))?i[Mx("0x45")](Mx("0x36"))-1:0;n=e<n?e:n,o=e+a>o?e+a:o,r=x<r?x:r,s=x+c>s?x+c:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}[Mx("0x5")](){const e=this[Mx("0x5a")],t=e[Mx("0x79")][Mx("0x66")]("TrackChangesEditing"),n=e[Mx("0x79")][Mx("0x66")]("TableUtils");e.model[Mx("0x41")].on(Mx("0xe"),(()=>{const n=Array.from(e[Mx("0x85")].document[Mx("0x7f")][Mx("0x9")]());for(const{name:e,data:o}of n){const{group:n,id:r,subType:s}=t[Mx("0x31")](e);if(Mx("0x75")!=n)continue;if(null!=o[Mx("0x24")])continue;const i=t[Mx("0x42")](r);this[Mx("0x6e")][Mx("0x51")](s)&&this[Mx("0x78")].add(i)}}),{priority:"low"});const o=(e,t)=>{let o=!1;const r=t.createRangeOn(e),s=e[Mx("0x4e")]("table"),i=n[Mx("0x37")](e);for(const t of this[Mx("0x78")]){const n=t[Mx("0x3a")],x=n[Mx("0x65")](Mx("0x3d")),a=n.substr(x?10:5),c=a[Mx("0x2f")](),l=c[Mx("0x56")](0,3)+Mx("0x3e"),d=Mx("0x67")+a,u="max"+a;if(!t[Mx("0x11")])continue;if(s!=t.getFirstRange()[Mx("0xc")][Mx("0x4e")](Mx("0x70")))continue;if(t[Mx("0x82")](r))continue;const g=e[Mx("0x12")](l)?e[Mx("0x45")](l)-1:0,m=this[Mx("0x1b")](t),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(t[Mx("0x39")](r),o=!0)}return o};e[Mx("0x85")][Mx("0x41")][Mx("0x4c")]((t=>{let n=!1;for(const r of e.model[Mx("0x41")][Mx("0x7f")].getChanges())if("insert"==r[Mx("0x4a")])if(Mx("0x77")==r[Mx("0x81")])for(const e of r.position[Mx("0x38")][Mx("0x5f")]())n=n||o(e,t);else Mx("0x6d")==r[Mx("0x81")]&&(n=n||o(r.position.nodeAfter,t));return n}))}_getSuggestionCoords(e){return this[Mx("0xf")](e[Mx("0x0")]()[Mx("0x21")]((e=>e[Mx("0xc")].nodeAfter)))}}function Ox(e){return Array[Mx("0x6c")](new Set(e)[Mx("0x17")]())}const Fx=["element","createTableWalker","stop","table","$graveyard","format","requires","_descriptionFactory","accept","mergeTableCellUp","selection","mergeTableCellLeft","mergeTableCellRight","get","formatBlock","fromRange","getSelectionAffectedTableCells","execute","return","author","push","commandName","_tablePostFixingSubtypes","*Split cell:* vertically","length","find","set:isEnabled","refresh","containsRange","commands","locale","markBlockFormat","afterInit","has","insertion","from","enableCommand","createRangeOn","change","getCellLocation","_areMergableCells","TableUtils","forceDefaultExecution","tableCell","low","add","direction","_areSelectedCellsMergable","_suggestionFactory","highest","rootName","registerCustomCallback","document","mergeTableCellDown","getAncestors","deletion","model","plugins","*Merge cells*","detach","mergeTableCells","findAncestor","markMultiRangeBlockFormat","isEnabled","editor","splitTableCellVertically","cell","splitTableCellHorizontally","getRanges","TrackChangesEditing","getFirstPosition","map","value","_acceptFormatSuggestionCallbackFactory","setSelection","root","type"];var Px,Dx;Px=Fx,Dx=100,function(e){for(;--e;)Px.push(Px.shift())}(++Dx);const Bx=function(e,t){return Fx[e-=0]};class jx extends e.Plugin{static get[Bx("0x3c")](){return[wx]}[Bx("0x9")](){const e=this.editor,t=e.model[Bx("0x1d")][Bx("0x40")],n=e[Bx("0x7")];if(!e[Bx("0x22")][Bx("0xa")]("TableEditing"))return;const o=e[Bx("0x22")][Bx("0x43")](Bx("0x2e")),r=e[Bx("0x22")].get(Bx("0x12")),s=e[Bx("0x22")][Bx("0x43")](wx);s[Bx("0x4c")][Bx("0x4a")](Bx("0x25")),o[Bx("0xd")](Bx("0x25"),(()=>{const t=r[Bx("0x46")](e[Bx("0x21")][Bx("0x1d")][Bx("0x40")]);e[Bx("0x21")][Bx("0xf")]((()=>{o[Bx("0x27")](t,{commandName:Bx("0x25"),commandParams:[]},[],Bx("0x25"))}))})),e[Bx("0x6")].get("mergeTableCells").on(Bx("0x47"),((t,n)=>{e[Bx("0x6")][Bx("0x43")]("trackChanges").value&&(n[Bx("0x1")]>0&&n[n[Bx("0x1")]-1]&&n[n[Bx("0x1")]-1][Bx("0x13")]||o._isForcedDefaultExecutionBlock||this[Bx("0x18")]()||t[Bx("0x38")]())}),{priority:Bx("0x1a")});for(const t of[Bx("0x3f"),Bx("0x42"),"mergeTableCellDown",Bx("0x41")]){const n=e[Bx("0x6")].get(t);o.enableCommand(t,(()=>{const t=e.model.document.selection[Bx("0x2f")]().getAncestors()[Bx("0x2")]((e=>e.is("element","tableCell"))),r=n[Bx("0x31")];e[Bx("0x21")][Bx("0xf")]((()=>{o[Bx("0x27")]([t,r],{commandName:Bx("0x25"),commandParams:[]},[],Bx("0x25"))}))}))}for(const t of[Bx("0x2a"),Bx("0x2c")]){const n=e.commands.get(t);o[Bx("0xd")](t,(()=>{const s=r.getSelectionAffectedTableCells(e[Bx("0x21")][Bx("0x1d")].selection)[0],i=s[Bx("0x26")](Bx("0x39")),{column:x,row:a}=r[Bx("0x10")](s);let c=[];if("horizontally"==n[Bx("0x17")]){const e=r[Bx("0x37")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0xc")](e)[Bx("0x30")]((e=>e[Bx("0x2b")]))}else{const e=r.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Bx("0xc")](e)[Bx("0x30")]((e=>e[Bx("0x2b")]))}e.model[Bx("0xf")]((e=>{o[Bx("0x8")](e[Bx("0xe")](s),{commandName:t,commandParams:[]},c,t)}))}))}o[Bx("0x3d")].registerDescriptionCallback((e=>{const{data:t}=e;if(t)return Bx("0x25")==t.commandName?{type:Bx("0x3b"),content:Yo(n,Bx("0x23"))}:void 0})),o[Bx("0x3d")].registerDescriptionCallback((e=>{const{data:t}=e;if(t)return Bx("0x2a")==t[Bx("0x4b")]?{type:"format",content:Yo(n,Bx("0x0"))}:Bx("0x2c")==t[Bx("0x4b")]?{type:"format",content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=s[Bx("0x32")]();for(const e of["mergeTableCellUp","mergeTableCellRight",Bx("0x1e"),"mergeTableCellLeft"])o[Bx("0x19")][Bx("0x1c")](Bx("0x44"),e,Bx("0x3e"),x);for(const e of[Bx("0x2a"),"splitTableCellHorizontally"])o[Bx("0x19")][Bx("0x1c")](Bx("0x44"),e,"accept",x);o[Bx("0x19")][Bx("0x1c")](Bx("0x44"),"mergeTableCells",Bx("0x3e"),(n=>{e.model.change((o=>{const r=Array[Bx("0xc")](t[Bx("0x2d")]()).map((e=>i.LiveRange[Bx("0x45")](e)));o[Bx("0x33")](n),e[Bx("0x6")].get(Bx("0x25"))[Bx("0x4")](),e[Bx("0x47")]("mergeTableCells",{forceDefaultExecution:!0});const s=r.filter((e=>Bx("0x3a")!=e[Bx("0x34")][Bx("0x1b")]));s[Bx("0x1")]>0&&o[Bx("0x33")](s);for(const e of r)e[Bx("0x24")]()}))}));for(const t of[Bx("0x3f"),Bx("0x1e"),Bx("0x41"),"mergeTableCellRight"]){const n=e[Bx("0x6")][Bx("0x43")](t);n.on(Bx("0x3"),((t,o,r)=>{if(r){const o=e[Bx("0x21")].document[Bx("0x40")][Bx("0x2f")]()[Bx("0x1f")]()[Bx("0x2")]((e=>e.is(Bx("0x36"),Bx("0x14"))));this._areMergableCells(n[Bx("0x31")],o)||(t[Bx("0x48")]=!1,t[Bx("0x38")]())}}),{priority:Bx("0x15")})}}_areSelectedCellsMergable(){const e=this[Bx("0x29")][Bx("0x6")].get(Bx("0x25")),t=this.editor[Bx("0x22")][Bx("0x43")](Bx("0x12"));if(!e[Bx("0x28")])return!1;const n=t[Bx("0x46")](this.editor[Bx("0x21")][Bx("0x1d")].selection);for(const e of n)for(const t of n)if(e!=t&&!this[Bx("0x11")](e,t))return!1;return!0}[Bx("0x11")](e,t){const n=this[Bx("0x29")].plugins[Bx("0x43")](Bx("0x2e")),o=this[Bx("0x29")][Bx("0x21")][Bx("0xe")](e),r=this[Bx("0x29")][Bx("0x21")].createRangeOn(t),s=new Set,i=new Set;for(const e of n.getSuggestions())if((Bx("0xb")==e[Bx("0x35")]||Bx("0x20")==e[Bx("0x35")]||Bx("0x25")==e.subType)&&e.isInContent)for(const t of e[Bx("0x2d")]())t[Bx("0x5")](o,!0)&&s[Bx("0x16")](e[Bx("0x35")]+":"+e.author.id),t.containsRange(r,!0)&&i[Bx("0x16")](e[Bx("0x35")]+":"+e[Bx("0x49")].id);if(s.size!=i.size)return!1;for(const e of s)if(!i[Bx("0xa")](e))return!1;return!0}}const Ux=["editing","document","createPositionAfter","_suggestionFactory","FORMAT_HEADER_ROW","from","mapper","getRowIndexes","table","_descriptionFactory","getChild","format","first","formatBlock","index","name","unbindElementFromMarkerName","removeAttribute","parent","*Format:* %0","writer","editor","headingRows","createRange","consumable","forceValue","FORMAT_REGULAR_COLUMN","commands","ck-suggestion-marker-","getSelectionAffectedTableCells","item","ck-suggestion-marker--active","registerCustomCallback","_acceptFormatSuggestionCallbackFactory","findAncestor","removeClass","last","addMarker:suggestion","_splitMarkerName","createPositionBefore","options","start","markerRange","selection","nodeAfter","addClass","change","getAttribute","locale","removeMarker:suggestion","model","headingColumns","childCount","markerName","registerDescriptionCallback","plugins","createTableWalker","setTableRowHeader","commandName","isBefore","includes","enableCommand","get","markBlockFormat","accept","consume","commandParams","showSuggestionHighlights","setTableColumnHeader","data","TableUtils","value","requires","end","cell","downcastDispatcher","FORMAT_HEADER_COLUMN","getColumnIndexes","getCellLocation","highest","toViewElement"];var Gx,Hx;Gx=Ux,Hx=460,function(e){for(;--e;)Gx.push(Gx.shift())}(++Hx);const zx=function(e,t){return Ux[e-=0]};class Wx extends e.Plugin{static get[zx("0x11")](){return[wx]}afterInit(){const e=this[zx("0x2f")];if(!e[zx("0x0")].has("TableEditing"))return;const t=e[zx("0x4a")],n=e[zx("0x0")][zx("0x7")]("TrackChangesEditing"),o=e[zx("0x0")][zx("0x7")](zx("0xf")),r=e.plugins[zx("0x7")](wx);function s({showActiveMarker:e=!0,setDataAttribute:t=!0}={}){return(r,s,i)=>{const{type:x,id:a}=n[zx("0x40")](s[zx("0x4f")]),c=n.getSuggestion(a);if(!c[zx("0xe")]||zx("0xd")!=c[zx("0xe")].commandName)return;if(s[zx("0x38")])return void r.stop();if(!i[zx("0x32")][zx("0xa")](s[zx("0x44")],r[zx("0x29")]))return;const l=s.markerRange[zx("0x43")][zx("0x46")],d=s[zx("0x44")][zx("0x12")].nodeBefore,u=l[zx("0x2c")][zx("0x2c")],{column:g}=o[zx("0x17")](l),{column:m}=o.getCellLocation(d);for(let r=g;r<=m;r++){const c=o[zx("0x1")](u,{column:r,includeAllSlots:!1});for(const o of c){const r=o[zx("0x13")],c=i[zx("0x20")][zx("0x19")](r);i[zx("0x2e")][zx("0x47")](zx("0x36")+x,c),t&&i[zx("0x2e")].setAttribute("data-suggestion",a,c),i[zx("0x20")].bindElementToMarker(c,s[zx("0x4f")]),e&&(n.activeMarkers[zx("0x5")](s[zx("0x4f")])?i[zx("0x2e")][zx("0x47")](zx("0x39"),c):i.writer[zx("0x3d")](zx("0x39"),c))}}}}n[zx("0x6")](zx("0x2"),((t,r)=>{const s=o[zx("0x37")](e[zx("0x4c")][zx("0x1b")][zx("0x45")]),i=o[zx("0x21")](s),x=s[0].findAncestor(zx("0x22")),a=x[zx("0x49")](zx("0x30"))||0,c=r&&null!==r[zx("0x33")]?r[zx("0x33")]:!e[zx("0x35")][zx("0x7")](zx("0x2"))[zx("0x10")],l=c?i[zx("0x3e")]:i[zx("0x26")],d=x[zx("0x24")](l);let u;if(c){const t=x.getChild(a);if(d[zx("0x28")]<t.index)return;u=e[zx("0x4c")][zx("0x31")](e.model[zx("0x41")](t[zx("0x24")](0)),e[zx("0x4c")][zx("0x1c")](d.getChild(d[zx("0x4e")]-1)))}else{const t=x[zx("0x24")](a-1);if(!t)return;u=e.model.createRange(e[zx("0x4c")][zx("0x41")](d[zx("0x24")](0)),e[zx("0x4c")].createPositionAfter(t[zx("0x24")](t[zx("0x4e")]-1)))}e[zx("0x4c")].change((()=>{n[zx("0x8")](u,{commandName:zx("0x2"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n.enableCommand("setTableColumnHeader",((t,o)=>{const r=e[zx("0x0")].get(zx("0xf")),s=r[zx("0x37")](e[zx("0x4c")][zx("0x1b")][zx("0x45")]),i=r[zx("0x16")](s),x=s[0][zx("0x3c")]("table"),a=x[zx("0x49")](zx("0x4d"))||0,c=o&&null!==o[zx("0x33")]?o[zx("0x33")]:!e[zx("0x35")].get(zx("0xd"))[zx("0x10")];let l;const d=x[zx("0x24")](0),u=c?i.last:i[zx("0x26")],g=r[zx("0x1")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x1f")](g)[0][zx("0x13")];if(c){const t=d[zx("0x24")](a);if(m[zx("0x4")](t))return;l=e.model[zx("0x31")](e.model.createPositionBefore(t),e.model[zx("0x1c")](m))}else{const t=d[zx("0x24")](a-1);if(!t)return;l=e[zx("0x4c")][zx("0x31")](e[zx("0x4c")][zx("0x41")](m),e[zx("0x4c")].createPositionAfter(t))}e[zx("0x4c")][zx("0x48")]((()=>{n[zx("0x8")](l,{commandName:zx("0xd"),commandParams:[{forceValue:c}]},[],zx("0xd"))}))})),e[zx("0x1a")][zx("0x14")].on(zx("0x3f"),s(),{priority:zx("0x18")}),e[zx("0xe")][zx("0x14")].on("addMarker:suggestion",((e,t,n)=>{n[zx("0x42")][zx("0xc")]&&s({showActiveMarker:!1,setDataAttribute:!1})(e,t,n)}),{priority:zx("0x18")}),e[zx("0x1a")][zx("0x14")].on(zx("0x4b"),((e,t,o)=>{const{type:r,id:s}=n._splitMarkerName(t[zx("0x4f")]),i=n.getSuggestion(s);if(!i[zx("0xe")]||zx("0xd")!=i[zx("0xe")][zx("0x3")])return;const x=o[zx("0x20")].markerNameToElements(t[zx("0x4f")]);if(x)for(const e of x)o.writer.removeClass(zx("0x36")+r,e),o[zx("0x2e")][zx("0x3d")](zx("0x39"),e),o.writer[zx("0x2b")]("data-suggestion",e),o[zx("0x20")][zx("0x2a")](e,t[zx("0x4f")])}),{priority:zx("0x18")}),n[zx("0x23")][zx("0x50")]((e=>{const{data:n}=e;if(n){if(zx("0x2")==n.commandName){const e=n.commandParams[0][zx("0x33")];return o(Yo(t,e?zx("0x1e"):"FORMAT_REGULAR_ROW"))}if(zx("0xd")==n.commandName){const e=n[zx("0xb")][0][zx("0x33")];return o(Yo(t,zx(e?"0x15":"0x34")))}}function o(e){return{type:zx("0x25"),content:Yo(t,zx("0x2d"),e)}}}));const i=r[zx("0x3b")]();n._suggestionFactory.registerCustomCallback(zx("0x27"),"setTableRowHeader",zx("0x9"),i),n[zx("0x1d")][zx("0x3a")](zx("0x27"),zx("0xd"),zx("0x9"),i)}}const Vx=["getChanges","markerToHighlight","insert","TableClipboard","updateMarker","newRange","tablePasteRow","view","document","column","move","oldRange","entries","wrap","join","getMarkers","paragraph","includes","tableCellBackgroundColor","unwrap","activeMarkers","stop","$graveyard","name","content","getChild","push","documentSelection","registerDescriptionCallback","removeRows","markMultiRangeBlockFormat","showSuggestionHighlights","position","previousSibling","plugins","containsRange","low","cell","map","endColumn","fill","row","tableCellVerticalAlignment","endRow","discard","_descriptionFactory","table","accept","registerPostFixer","suggestionLoaded","tableCellHorizontalAlignment","editingDowncast","markMultiRangeInsertion","editor","forceDefaultExecution","listenTo","_splitMarkerName","_createdBatches","nextSibling","_getCoordsForCells","reduce","attributes","tablePasteColumn","formatBlock","markerName","tableCell","schema","tablePasteChainId","some","getShiftedBy","isInContent","getSuggestionCallback","ck-suggestion-marker-insertion","last","from","tablePasteCell","removeColumns","has","options","rows","elementToElement","subType","tableCellBorderWidth","change","insertion","createRangeIn","columns","add","startsWith","Users","insertColumns","trackChanges","conversion","createRangeOn","isEmpty","markMultiRangeDeletion","insertionRanges","dataDowncast","high","createElement","nodeAfter","columnInsertionIndexes","find","get","markerAttributes","suggestion:formatBlock:tablePasteCell","getChangedMarkers","deletion","set","filter","findAncestor","batch","getAllAdjacentSuggestions","markers","first","TableUtils","getSuggestion","getRanges","element","tableCellSuggestion","model","createPositionBefore","end","tablePaste","author","setAttributes","_isForcedDefaultExecutionBlock","afterInit","commands","register","getAttributes","value","createTableWalker","type","getColumns","getSuggestions","ck-suggestion-marker--active","registerCustomCallback","suggestionUnloaded","_suggestionFactory","getItems","getRange","hasSuggestion","getContainedElement","suggestion","getChildren","length","rootName","for","fromEntries","remove","requires","removeMarker","cells","insertContent","differ","createRange","redo","suggestion-td","isEqual"];var Kx,qx;Kx=Vx,qx=468,function(e){for(;--e;)Kx.push(Kx.shift())}(++qx);const Xx=function(e,t){return Vx[e-=0]},$x=[Xx("0x5e"),"tableCellBorderColor","tableCellBorderStyle",Xx("0x3e"),Xx("0x36"),Xx("0x1e"),"tableCellPadding"],Qx=Object[Xx("0x1")]($x[Xx("0x32")]((e=>[e,null])));class Jx extends e.Plugin{static get[Xx("0x3")](){return[wx]}[Xx("0x8b")](){const e=this[Xx("0x41")];if(!e[Xx("0x2e")][Xx("0x59")]("TableClipboard"))return;const n=e[Xx("0x2e")][Xx("0x73")]("TrackChangesEditing"),o=e.plugins[Xx("0x73")](Xx("0x7f")),r=e.plugins.get(wx),s=e[Xx("0x2e")][Xx("0x73")](Xx("0xf"));r._tablePostFixingSubtypes.push(Xx("0x12"),Xx("0x4a")),e.model[Xx("0x4e")][Xx("0x8d")](Xx("0x83"),{allowIn:Xx("0x4d"),allowContentOf:"tableCell",isLimit:!0}),e[Xx("0x68")][Xx("0x5c")]({model:"tableCellSuggestion",view:Xx("0xa")});let i=null;e[Xx("0x84")].on(Xx("0x6"),((r,x)=>{const[a,c]=x,l=x[x[Xx("0x9e")]-1];l&&l[Xx("0x42")]||n[Xx("0x8a")]||this[Xx("0x41")][Xx("0x8c")][Xx("0x73")](Xx("0x67"))[Xx("0x8f")]&&function(e,t,n,o,r){if(t&&!t.is(Xx("0x27")))return!1;const s=r.getTableIfOnlyTableInContent(e,n);if(!s||!Yx(s,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Xx("0x14")].selection);if(!i[Xx("0x9e")])return!1;const x=i[0][Xx("0x7a")](Xx("0x3a")),a=o.getRowIndexes(i),c=o.getColumnIndexes(i),l={startRow:a.first,endRow:a.last,startColumn:c[Xx("0x7e")],endColumn:c[Xx("0x55")]};return 1==i.length&&(l[Xx("0x37")]+=o.getRows(s)-1,l[Xx("0x33")]+=o[Xx("0x92")](s)-1),Yx(x,l,o)}(a,c,e[Xx("0x84")],o,s)&&(r[Xx("0x21")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},e.model.change((()=>{e[Xx("0x84")][Xx("0x6")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,t.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:a,deletionRanges:c,cells:l}=i;r[Xx("0x9e")]&&n.markMultiRangeInsertion(r,Xx("0x12"),{tablePasteChainId:o}),s[Xx("0x9e")]&&n[Xx("0x40")](s,Xx("0x4a"),{tablePasteChainId:o}),a[Xx("0x9e")]&&n[Xx("0x40")](a,Xx("0x87"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x9e")]&&n[Xx("0x6b")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x2a")](l[Xx("0x32")]((({element:e})=>e)),{formatGroupId:(0,t.uid)()},[],Xx("0x57"),{tablePasteChainId:o});if(d){const t=d[Xx("0x1b")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=e[Xx("0x84")][Xx("0x69")](o),i=t[Xx("0x72")]((e=>e[Xx("0x99")]()[Xx("0xb")](s)));i&&n[Xx("0x26")]([i[Xx("0x23")],r])}n[Xx("0x9e")]&&d.setAttribute(Xx("0x74"),Object[Xx("0x1")](n))}i=null})))}),{priority:t.priorities[Xx("0x6e")]+10}),e[Xx("0x2e")][Xx("0x73")](Xx("0xf")).on("_replaceTableSlotCell",((e,t)=>{const[n,o,,r]=t;if(!i)return;e.stop();const s=n[Xx("0x31")],x=o,a=Zx(s),c=Zx(x);e.return=s;let l=null,d=null;if(c||a)if(a&&!c){r[Xx("0x2")](s[Xx("0x25")](0));for(const e of Array[Xx("0x56")](x.getChildren()))r[Xx("0xe")](e,s,"end");const e=i.rowInsertionIndexes[Xx("0x1d")](n[Xx("0x35")]),t=i[Xx("0x71")][Xx("0x1d")](n[Xx("0x15")]);e||t||(l=r[Xx("0x61")](s))}else c&&!a&&(d=r.createRangeIn(s));else{const e=r[Xx("0x6f")](Xx("0x83")),t=r[Xx("0x6f")]("tableCellSuggestion");r[Xx("0x19")](r[Xx("0x61")](s),t),r.insert(e,s,0);for(const t of Array[Xx("0x56")](x[Xx("0x9d")]()))r[Xx("0xe")](t,e,Xx("0x86"));l=r[Xx("0x69")](e),d=r[Xx("0x69")](t)}const u=Array[Xx("0x56")](x[Xx("0x8e")]()).filter((([e])=>$x.includes(e)));i[Xx("0x5")].push({element:s,attributes:u[Xx("0x9e")]?Object[Xx("0x1")](u):null}),l&&i[Xx("0x6c")].push(l),d&&i.deletionRanges[Xx("0x26")](d)}),{priority:Xx("0x6e")}),o.on(Xx("0x66"),((t,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Xx("0x62")]||1;i[Xx("0x71")]=new Array(a).fill(x)[Xx("0x32")](((e,t)=>e+t));for(const{cell:t}of o[Xx("0x90")](r,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges.push(e[Xx("0x84")][Xx("0x69")](t))}),{priority:Xx("0x30")}),o.on("insertRows",((t,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Xx("0x5b")]||1;i.rowInsertionIndexes=new Array(a)[Xx("0x34")](x)[Xx("0x32")](((e,t)=>e+t));for(const{cell:t}of o.createTableWalker(r,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[Xx("0x26")](e[Xx("0x84")][Xx("0x69")](t))}),{priority:"low"}),n[Xx("0x39")][Xx("0x28")]((t=>{if(t[Xx("0x5d")]&&t[Xx("0x5d")][Xx("0x64")](Xx("0x87")))return t.previous?{}:{type:Xx("0x60"),content:Yo(e.locale,"*Replace table cells*")}}));const x=()=>!1;for(const e of[Xx("0x87"),Xx("0x4a"),Xx("0x12"),Xx("0x57")])n[Xx("0x97")][Xx("0x95")](Xx("0x60"),e,Xx("0x1a"),x),n._suggestionFactory.registerCustomCallback(Xx("0x77"),e,Xx("0x1a"),x),n[Xx("0x97")][Xx("0x95")](Xx("0x4b"),e,Xx("0x1a"),x);n[Xx("0x97")][Xx("0x95")]("formatBlock",Xx("0x57"),Xx("0x38"),x),n._suggestionFactory[Xx("0x95")](Xx("0x4b"),"tablePasteCell",Xx("0x3b"),((t,n,o)=>{const r=t.map((e=>e.getContainedElement()))[Xx("0x79")]((e=>e)),s=new Map(r[Xx("0x32")]((e=>[e,null])));if(i)for(const{element:e,attributes:t}of i[Xx("0x5")])t&&s.set(e,t);else if(o&&o[Xx("0x74")])for(const[t,n]of Object[Xx("0x18")](o[Xx("0x74")])){const o=e[Xx("0x84")][Xx("0x7d")].get(t),r=o?o[Xx("0x99")]().getContainedElement():null;r&&s[Xx("0x78")](r,n)}e.model[Xx("0x5f")]((e=>{for(const[t,n]of s)e[Xx("0x89")]({...Qx,...n},t)}))}));const a=(t,o)=>{n[Xx("0x97")][Xx("0x95")](t,Xx("0x87"),o,((r,s,i)=>{e.model[Xx("0x5f")]((e=>{const x=[];for(const e of r){const t=e.start[Xx("0x70")];t.is("element",Xx("0x83"))&&x[Xx("0x26")](t)}n[Xx("0x97")][Xx("0x53")](t,null,o)(r,s,i);for(const t of x)Xx("0x22")!=t.root[Xx("0x9f")]&&e[Xx("0x1f")](t)}))}))};a("insertion",Xx("0x3b")),a(Xx("0x60"),Xx("0x38")),a(Xx("0x77"),Xx("0x3b")),a(Xx("0x77"),Xx("0x38")),n[Xx("0x97")].registerCustomCallback(Xx("0x60"),Xx("0x12"),Xx("0x38"),(e=>{const t=e[Xx("0x32")]((e=>e.getContainedElement())),n=t[0][Xx("0x7a")](Xx("0x3a")),{minRow:s,maxRow:i}=r[Xx("0x47")](t);o[Xx("0x29")](n,{at:s,rows:i-s+1})})),n._suggestionFactory[Xx("0x95")](Xx("0x60"),"tablePasteColumn",Xx("0x38"),(e=>{const t=e[Xx("0x32")]((e=>e[Xx("0x9b")]())),n=t[0][Xx("0x7a")](Xx("0x3a")),{minColumn:s,maxColumn:i}=r._getCoordsForCells(t);o[Xx("0x58")](n,{at:s,columns:i-s+1})}));const c=(e,t)=>{if(!t.subType||!t.subType[Xx("0x64")](Xx("0x87")))return;const o=t[Xx("0x49")][Xx("0x4f")],r=n.getSuggestions()[Xx("0x79")]((e=>e.isInContent&&e[Xx("0x49")]&&e[Xx("0x49")].tablePasteChainId==o));r[Xx("0x9e")]&&t[Xx("0x7c")]()[Xx("0x9e")]!=r.length&&r[Xx("0x48")](((e,t)=>(e.next=t,t.previous=e,t)))};function l(e,t=!0){const{id:o}=n._splitMarkerName(e[Xx("0x4c")]),r=["ck-suggestion-marker",Xx("0x54")],s=n[Xx("0x20")][Xx("0x1d")](e.markerName);return s&&r[Xx("0x26")](Xx("0x94")),{classes:r,attributes:{"data-suggestion":o},priority:s&&t?3010:3e3}}n.on(Xx("0x3d"),c,{priority:Xx("0x6e")}),n.on(Xx("0x96"),c,{priority:Xx("0x6e")}),e.model.document[Xx("0x3c")]((()=>{let t=!1;const o=Array.from(e[Xx("0x84")][Xx("0x14")].differ[Xx("0x76")]());for(const{name:r,data:s}of o){const{group:o,type:i,id:x}=n._splitMarkerName(r);if("suggestion"!=o||Xx("0x77")!=i||s[Xx("0x17")])continue;if(!n[Xx("0x9a")](x))continue;const a=n[Xx("0x80")](x)[Xx("0x81")](),c=e[Xx("0x2e")][Xx("0x73")](Xx("0x65")).me;for(const e of n[Xx("0x93")]())if(e[Xx("0x52")]&&e[Xx("0x88")]==c&&Xx("0x4b")==e.type&&"tablePasteCell"==e.subType&&e[Xx("0x81")]().every((e=>a[Xx("0x50")]((t=>t[Xx("0x2f")](e,!0))))))for(const n of e[Xx("0x7c")]())n[Xx("0x52")]&&(n[Xx("0x38")](),t=!0)}return t})),e[Xx("0x84")][Xx("0x14")][Xx("0x3c")]((t=>{const o=e[Xx("0x8c")][Xx("0x73")](Xx("0x9"));if(!o||!o[Xx("0x45")][Xx("0x59")](t[Xx("0x7b")]))return!1;let r=!1;const s=e[Xx("0x2e")].get("Users").me,i=e[Xx("0x84")].document.differ[Xx("0xc")](),x=Array[Xx("0x56")](e[Xx("0x84")][Xx("0x14")][Xx("0x7")][Xx("0x76")]())[Xx("0x79")]((({name:e,data:t})=>{const{group:o,subType:r,authorId:i}=n[Xx("0x44")](e);return Xx("0x9c")==o&&Xx("0x87")==r&&i==s.id&&!t.oldRange}));for(const e of i){if(Xx("0xe")!=e[Xx("0x91")]||Xx("0x83")!=e[Xx("0x23")]||1!=e[Xx("0x9e")])continue;const n=t[Xx("0x8")](e[Xx("0x2c")],e.position[Xx("0x51")](1));if(!x.find((({data:e})=>e[Xx("0x11")].isEqual(n))))for(const{name:e,data:o}of x)if(n[Xx("0x2f")](o[Xx("0x11")])){t[Xx("0x10")](e,{range:n}),r=!0;break}}return r})),e.model[Xx("0x14")][Xx("0x3c")]((t=>{let o=!1;const r=e[Xx("0x2e")].get(Xx("0x65")).me,s=n.getSuggestions().filter((e=>e[Xx("0x52")]&&e[Xx("0x88")]==r)),i=new Set,x=new Set;for(const e of s)if(Xx("0x87")==e.subType)for(const t of e[Xx("0x1b")]()){const n=t.getRange()[Xx("0x9b")]();if(n)if(n.is("element","tableCellSuggestion")&&Zx(n)){e[Xx("0x4")](t.name),i[Xx("0x63")](n),o=!0;const r=n[Xx("0x46")],s=n[Xx("0x2d")],a=r&&r.is("element",Xx("0x83")),c=s&&s.is(Xx("0x82"),Xx("0x83"));a&&!i[Xx("0x59")](r)&&x[Xx("0x63")](r),c&&!i[Xx("0x59")](s)&&x[Xx("0x63")](s)}else n.is(Xx("0x82"),Xx("0x1c"))&&n[Xx("0x6a")]&&(e[Xx("0x4")](t[Xx("0x23")]),o=!0)}else if(Xx("0x57")==e[Xx("0x5d")]){if(!e.attributes||!e[Xx("0x49")].tablePasteChainId)continue;const t=e[Xx("0x49")][Xx("0x74")];if(t&&Object.keys(t)[Xx("0x9e")])continue;const n=e[Xx("0x49")][Xx("0x4f")];let r=!0,i=!0;for(const t of s)if(t[Xx("0x5d")]&&t[Xx("0x5d")].startsWith("tablePaste")){if(!t.attributes[Xx("0x4f")]){i=!1;break}if(t.id!=e.id&&t[Xx("0x49")][Xx("0x4f")]==n){r=!1;break}}i&&r&&(e.removeMarkers(),o=!0)}for(const e of i)t[Xx("0x2")](e);for(const e of x)t.unwrap(e);return o})),e.conversion.for(Xx("0x3f"))[Xx("0xd")]({model:"suggestion:formatBlock:tablePasteCell",view:(e,t)=>l(e),converterPriority:Xx("0x6e")}),e.conversion[Xx("0x0")](Xx("0x6d"))[Xx("0xd")]({model:Xx("0x75"),view:(e,t)=>t[Xx("0x5a")][Xx("0x2b")]?l(e,!1):null,converterPriority:Xx("0x6e")});const d=e.editing[Xx("0x13")];this[Xx("0x43")](d[Xx("0x14")],"clipboardOutput",((e,t)=>{const n=[];for(const e of d[Xx("0x61")](t[Xx("0x24")])[Xx("0x98")]())e.is(Xx("0x82"),Xx("0xa"))&&n[Xx("0x26")](e);d[Xx("0x5f")]((e=>{for(const t of n)e[Xx("0x16")](e[Xx("0x61")](t),e[Xx("0x85")](t)),e[Xx("0x2")](t)}))}))}}function Zx(e){if(e[Xx("0x6a")])return!0;const t=e[Xx("0x25")](0);return t.is(Xx("0x82"),Xx("0x1c"))&&t[Xx("0x6a")]}function Yx(e,t={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n.createTableWalker(e,{includeAllSlots:!0,...t}))if(!o||1!=r||1!=s)return!1;return!0}const ea=["columnWidths","commandParams","model","resizeColumnWidths","registerCustomCallback","*Format:* resize table","_suggestionFactory","get","editor","change","getAttribute","locale","registerDescriptionCallback","TrackChangesEditing","afterInit","formatGroupId","handleSuggestionDescription","formatBlock","Users","data","_descriptionFactory","tableWidth","resizeTable","TableColumnResizeEditing","handleResizeTableWidthCommand","accept","discard","markBlockFormat","bind","getSuggestionCallback","getSelectedElement","enableCommand","document","resizeTableWidth","plugins","selection"];var ta,na;ta=ea,na=289,function(e){for(;--e;)ta.push(ta.shift())}(++na);const oa=function(e,t){return ea[e-=0]};class ra extends e.Plugin{[oa("0xd")](){if(!this[oa("0x7")][oa("0x21")].has(oa("0x16")))return;const e=this[oa("0x7")].plugins.get("TrackChangesEditing");e[oa("0x1e")](oa("0x20"),this[oa("0x17")][oa("0x1b")](this)),e[oa("0x1e")](oa("0x2"),this.handleResizeTableWidthCommand[oa("0x1b")](this)),e[oa("0x5")][oa("0x3")]("formatBlock",oa("0x15"),oa("0x18"),e._suggestionFactory[oa("0x1c")](oa("0x10"),null,"discard")),e[oa("0x5")][oa("0x3")](oa("0x10"),oa("0x15"),oa("0x19"),e[oa("0x5")][oa("0x1c")](oa("0x10"),null,oa("0x18"))),e[oa("0x13")][oa("0xb")](this[oa("0xf")].bind(this))}handleResizeTableWidthCommand(e,t){const n=this[oa("0x7")][oa("0x21")].get(oa("0xc")),o=this.editor[oa("0x21")][oa("0x6")](oa("0x16")),r=t.table||this[oa("0x7")].model[oa("0x1f")][oa("0x22")][oa("0x1d")]();this[oa("0x7")][oa("0x1")][oa("0x8")]((()=>{const s=o.getColumnGroupElement(r);let i=s?o.getTableColumnsWidths(s):null,x=r[oa("0x9")]("tableWidth")||null;const a=t[oa("0x14")]||x,c=t[oa("0x23")]||i,l=this[oa("0x7")].plugins[oa("0x6")](oa("0x11")).me;for(const e of n.getSuggestions()){const t=e.getContainedElement();if(oa("0x15")===e.subType&&t===r){e.author!==l&&e[oa("0x19")]();const t=e[oa("0x12")][oa("0x0")];x=t[0].tableWidth,i=t[0][oa("0x23")];break}}e({table:r,tableWidth:a,columnWidths:c}),n[oa("0x1a")](r,{commandName:oa("0x20"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],oa("0x15"))}))}handleSuggestionDescription(e){const{data:t}=e;if(t&&"resizeTable"===t[oa("0xe")]){const e=oa("0x4");return{type:"format",content:Yo(this.editor[oa("0xa")],e)}}}}const sa=["Template","afterInit","insertTemplate","plugins","has","editor","enableCommand"];var ia,xa;ia=sa,xa=148,function(e){for(;--e;)ia.push(ia.shift())}(++xa);const aa=function(e,t){return sa[e-=0]};class ca extends e.Plugin{[aa("0x0")](){const e=this[aa("0x4")];e.plugins[aa("0x3")](aa("0x6"))&&e[aa("0x2")].get("TrackChangesEditing")[aa("0x5")](aa("0x1"))}}const la=["get","insertTableOfContents","enableCommand","locale","TrackChangesEditing","commands","_descriptionFactory","afterInit","plugins","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS"];var da,ua;da=la,ua=385,function(e){for(;--e;)da.push(da.shift())}(++ua);const ga=function(e,t){return la[e-=0]};class ma extends e.Plugin{[ga("0x7")](){const e=this.editor;if(!e[ga("0x5")][ga("0x0")](ga("0x1")))return;e[ga("0x8")][ga("0x0")](ga("0x4"))[ga("0x2")](ga("0x1"));const t=e[ga("0x8")][ga("0x0")]("TrackChangesEditing"),n=e[ga("0x3")];t[ga("0x6")][ga("0x9")]("tableOfContents",(e=>Yo(n,ga("0xa"),e)))}}const fa=["isTouching","has","updateMarker","afterInit","from","forward","document","differ","TrackChangesEditing","isEqual","registerPostFixer","plugins","suggestion","createRange","start","title-content","schema","newRange","model","editor","end","nodeBefore","removeMarker","registerElementLabel","_descriptionFactory","ELEMENT_TITLE","element","get"];var ha,ba;ha=fa,ba=320,function(e){for(;--e;)ha.push(ha.shift())}(++ba);const pa=function(e,t){return fa[e-=0]};class Ea extends e.Plugin{[pa("0x13")](){const e=this[pa("0x7")];if(!e[pa("0x1b")][pa("0x11")]("Title"))return;const t=e[pa("0x1b")][pa("0xf")](pa("0x18"));t[pa("0xc")][pa("0xb")](pa("0x3"),(()=>Yo(e.locale,pa("0xd")))),e[pa("0x6")][pa("0x16")][pa("0x1a")]((n=>{let o=!1;const r=Array[pa("0x14")](e[pa("0x6")][pa("0x16")][pa("0x17")].getChangedMarkers());for(const{name:s,data:i}of r){const{group:r}=t._splitMarkerName(s);if(pa("0x0")!==r||!i[pa("0x5")])continue;const x=i[pa("0x5")],a=x[pa("0x8")][pa("0x9")];if(!a||!a.is(pa("0xe"),pa("0x3")))continue;if(!x.start[pa("0x10")](x[pa("0x8")]))continue;const c=e[pa("0x6")][pa("0x4")].getNearestSelectionRange(x[pa("0x8")],pa("0x15"));if(c&&c.isCollapsed){const e=n[pa("0x1")](x.start,c[pa("0x2")]);e[pa("0x19")](x)||(n[pa("0x12")](s,{range:e}),o=!0)}o||(n[pa("0xa")](s),o=!0)}return o}))}}const _a=["editor","enableCommand","afterInit","undo","has","plugins","TrackChangesEditing","UndoEditing"];var Ta,Ca;Ta=_a,Ca=430,function(e){for(;--e;)Ta.push(Ta.shift())}(++Ca);const ya=function(e,t){return _a[e-=0]};class ka extends e.Plugin{[ya("0x4")](){const e=this[ya("0x2")],t=e[ya("0x7")].get(ya("0x0"));e[ya("0x7")][ya("0x6")](ya("0x1"))&&(t[ya("0x3")](ya("0x5")),t.enableCommand("redo"))}}const Aa=["TableCaptionEditing","get","requires","plugins","TrackChangesEditing","has","toggleTableCaption","enableCommand","afterInit"];var va,Ra;va=Aa,Ra=405,function(e){for(;--e;)va.push(va.shift())}(++Ra);const Ia=function(e,t){return Aa[e-=0]};class Sa extends e.Plugin{static get[Ia("0x2")](){return[wx]}[Ia("0x8")](){const e=this.editor;e.plugins[Ia("0x5")](Ia("0x0"))&&e[Ia("0x3")][Ia("0x1")](Ia("0x4"))[Ia("0x7")](Ia("0x6"))}}const La=["isFirstBlockOfListItem","_getTranslationKeyForListStyle","*Format:* set order to reversed","listType","TrackChangesEditing","handleListStyleCommand","editor","replace","has","_getSuggestionBlocksForListStyle","plugins","commandName","get","startIndex","getSelectedBlocks","DocumentListPropertiesUtils","listReversed","getAttribute","toUpperCase","_getSuggestionBlocks","afterInit","*Format:* set start index to %0","isListItemBlock","_LIST_","styles","change","document","from","handleDescriptions","bind","type","config","commandParams","listStart","DocumentListPropertiesEditing","markMultiRangeBlockFormat","enableCommand","push","locale","_descriptionFactory","handleListReversedCommand","format","reversed","*Change to:* %0","numbered","length","model","listStyle","list.properties","selection","filter","DocumentListUtils","registerDescriptionCallback","expandListBlocksToCompleteList"];var Na,Ma;Na=La,Ma=206,function(e){for(;--e;)Na.push(Na.shift())}(++Ma);const wa=function(e,t){return La[e-=0]};class Oa extends e.Plugin{[wa("0x1e")](){if(!this[wa("0x10")][wa("0x14")][wa("0x12")](wa("0x2c")))return;const e=this[wa("0x10")][wa("0x29")][wa("0x16")](wa("0x4")),t=this[wa("0x10")][wa("0x14")][wa("0x16")]("TrackChangesEditing");e[wa("0x22")]&&t[wa("0x2e")](wa("0x3"),this[wa("0xf")][wa("0x27")](this)),e[wa("0x34")]&&t[wa("0x2e")](wa("0x1a"),this[wa("0x32")][wa("0x27")](this)),e.startIndex&&t[wa("0x2e")](wa("0x2b"),this.handleListStartCommand[wa("0x27")](this)),t[wa("0x31")][wa("0x8")](this[wa("0x26")][wa("0x27")](this))}handleListStyleCommand(e,t={}){const n=this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0xe")),o=this[wa("0x13")]();this[wa("0x10")][wa("0x2")].change((()=>{n[wa("0x2d")](o,{commandName:wa("0x3"),commandParams:[{type:t[wa("0x28")]}],formatGroupId:wa("0x3")})}))}handleListReversedCommand(e,t={}){const n=this.editor[wa("0x14")][wa("0x16")](wa("0xe")),o=this[wa("0x10")][wa("0x14")][wa("0x16")]("DocumentListUtils"),r=this[wa("0x1d")]((e=>o[wa("0x20")](e)&&wa("0x0")===e[wa("0x1b")](wa("0xd"))));null!==r&&this[wa("0x10")][wa("0x2")][wa("0x23")]((()=>{n[wa("0x2d")](r,{commandName:wa("0x1a"),commandParams:[{reversed:t[wa("0x34")]}],formatGroupId:"listReversed"})}))}handleListStartCommand(e,t={}){const n=this.editor[wa("0x14")].get(wa("0xe")),o=this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0x7")),r=this[wa("0x1d")]((e=>o[wa("0x20")](e)&&wa("0x0")===e[wa("0x1b")](wa("0xd"))));null!==r&&this[wa("0x10")][wa("0x2")][wa("0x23")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:wa("0x2b"),commandParams:[{startIndex:t[wa("0x17")]}],formatGroupId:"listStart"})}))}[wa("0x26")](e){const t=this[wa("0x10")][wa("0x30")],{data:n}=e;if(!n)return;let o,r;switch(n[wa("0x15")]){case wa("0x3"):o=wa("0x35"),r={type:"format",content:Yo(t,o,Yo(t,this[wa("0xb")](n[wa("0x2a")][0][wa("0x28")])))};break;case wa("0x1a"):o=n[wa("0x2a")][0][wa("0x34")]?wa("0xc"):"*Format:* set order to regular",r={type:"format",content:Yo(t,o)};break;case"listStart":o=wa("0x1f"),r={type:wa("0x33"),content:Yo(t,o,n[wa("0x2a")][0][wa("0x17")])}}return r}[wa("0x13")](){const e=this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0x7"));let t=Array.from(this[wa("0x10")][wa("0x2")][wa("0x24")][wa("0x5")][wa("0x18")]());return t.push(...e.expandListBlocksToCompleteList(t)),t=[...new Set(t)],t}_getSuggestionBlocks(e){const t=this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0x7"));let n=Array[wa("0x25")](this[wa("0x10")].model.document[wa("0x5")].getSelectedBlocks())[wa("0x6")](e);if(!n[wa("0x1")])return null;n=t[wa("0x9")](n);const o=[];for(const e of n)t[wa("0xa")](e)&&o[wa("0x2f")](e);return o}[wa("0xb")](e){return"ELEMENT_"+this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0x19")).getListTypeFromListStyleType(e)[wa("0x1c")]()+wa("0x21")+e[wa("0x1c")]()[wa("0x11")](/-/g,"_")}}const Fa=["_suggestionFactory","getSuggestions","discard","document","data","tableCellWidth","getAttribute","getFirstPosition","selection","tableAlignment","registerCustomCallback","tableCellPadding","tableCellVerticalAlignment","formatBlock","handleSuggestionDescription","join","removeAttribute","tableCellHorizontalAlignment","tableProperties","markBlockFormat","tableCellHeight","model","locale","TableCellPropertiesEditing","*Format:* change table properties","get","tableCellBorderColor","getSuggestionCallback","has","tableBorderStyle","*Format:* change table cell properties","findAncestor","_handlePropertyChange","start","subType","_getSuggestion","tableBorderWidth","TrackChangesEditing","getSelectionAffectedTableCells","enqueueChange","accept","tableCellProperties","plugins","TableUtils","format","TrackChangesTableProperties","editor","enableCommand","registerDescriptionCallback","_descriptionFactory","tableCellBorderWidth","tableCellBorderStyle","handleDiscardAction","tableBackgroundColor"];var Pa,Da;Pa=Fa,Da=376,function(e){for(;--e;)Pa.push(Pa.shift())}(++Da);const Ba=function(e,t){return Fa[e-=0]};class ja extends e.Plugin{constructor(e){super(e),this[Ba("0x14")]=["tableBorderColor",Ba("0x1f"),Ba("0x26"),Ba("0xb"),"tableWidth","tableHeight",Ba("0x1")],this[Ba("0x2b")]=[Ba("0x1c"),Ba("0x35"),Ba("0x34"),Ba("0xd"),Ba("0x7"),Ba("0x16"),"tableCellBackgroundColor",Ba("0x13"),Ba("0xe")]}static get pluginName(){return Ba("0x2f")}afterInit(){const e=this[Ba("0x30")][Ba("0x2c")][Ba("0x1b")]("TrackChangesEditing");if(this[Ba("0x30")][Ba("0x2c")].has("TablePropertiesEditing")){for(const t of this.tableProperties)e.enableCommand(t,((e,n)=>{const o=this[Ba("0x30")][Ba("0x17")][Ba("0x5")].selection[Ba("0x9")]()[Ba("0x21")]("table");this[Ba("0x22")](t,[o],this[Ba("0x14")],Ba("0x14"),e,n)}));e._suggestionFactory[Ba("0xc")](Ba("0xf"),Ba("0x14"),"accept",e[Ba("0x2")][Ba("0x1d")](Ba("0xf"),null,Ba("0x4"))),e[Ba("0x2")][Ba("0xc")](Ba("0xf"),"tableProperties","discard",((e,t)=>this.handleDiscardAction(this[Ba("0x14")],e,t))),e[Ba("0x2")].registerCustomCallback("formatBlock",Ba("0x14"),Ba("0x11"),(()=>!1))}if(this[Ba("0x30")][Ba("0x2c")][Ba("0x1e")](Ba("0x19"))){for(const t of this[Ba("0x2b")])e[Ba("0x31")](t,((e,n)=>{const o=this[Ba("0x30")].plugins.get(Ba("0x2d"))[Ba("0x28")](this[Ba("0x30")][Ba("0x17")][Ba("0x5")][Ba("0xa")]);this[Ba("0x22")](t,o,this[Ba("0x2b")],"tableCellProperties",e,n)}));e[Ba("0x2")].registerCustomCallback("formatBlock",Ba("0x2b"),Ba("0x2a"),e._suggestionFactory.getSuggestionCallback(Ba("0xf"),null,Ba("0x4"))),e._suggestionFactory.registerCustomCallback(Ba("0xf"),Ba("0x2b"),Ba("0x4"),((e,t)=>this[Ba("0x0")](this[Ba("0x2b")],e,t))),e[Ba("0x2")][Ba("0xc")](Ba("0xf"),Ba("0x2b"),"join",(()=>!1))}e[Ba("0x33")][Ba("0x32")]((e=>this[Ba("0x10")](e)))}[Ba("0x22")](e,t,n,o,r,s){const i=this[Ba("0x30")][Ba("0x2c")][Ba("0x1b")](Ba("0x27"));this[Ba("0x30")][Ba("0x17")][Ba("0x29")](s.batch,(()=>{for(const e of t)if(this[Ba("0x25")](e,o))r(s);else{const t={};for(const o of n){const n=e[Ba("0x8")](o);void 0!==n&&(t[o]=n)}r(s),i[Ba("0x15")](e,{commandParams:[t]},[],o)}}))}handleDiscardAction(e,t,n){const o=t[0][Ba("0x23")].nodeAfter,r=n.commandParams[0];this[Ba("0x30")][Ba("0x17")].change((t=>{for(const n of e)void 0!==r[n]?t.setAttribute(n,r[n],o):t[Ba("0x12")](n,o)}))}[Ba("0x10")](e){if(e[Ba("0x6")])switch(e[Ba("0x24")]){case Ba("0x14"):return{type:Ba("0x2e"),content:Yo(this[Ba("0x30")][Ba("0x18")],Ba("0x1a"))};case Ba("0x2b"):return{type:Ba("0x2e"),content:Yo(this[Ba("0x30")].locale,Ba("0x20"))}}}[Ba("0x25")](e,t){const n=this[Ba("0x30")][Ba("0x2c")][Ba("0x1b")](Ba("0x27"));for(const o of n[Ba("0x3")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===t&&n===e)return o}return null}}const Ua=["createPositionBefore","move","widget","rethrowUnexpectedError","addMarker:suggestion:formatBlock","_saved","ck-suggestion-marker","formatBlock:","_setSuggestionRange","assign","locale","add","Users","collaboration.channelId","addRange","return","discard","isAtStart","getAncestors","never","getItems","nodeBefore","parent","name","markDeletion","start","consumable","schema","enableReadOnlyMode","clear","_setSuggestionData","getAllAdjacentSuggestions","track-changes-user-not-found","formatInline:accept","type","isNextTo","_commentsRepository","_getAuthorFromId","_defaultCallbacks","acceptSelectedSuggestions","oldRange","_getExternalAuthor","getMultiRangeId","markMultiRangeInsertion","substr","document","lowest","toViewElement","isEqual","batch","sort","track-changes-adapter-missing-getsuggestion","highest","change:activeMarkers","formatInline:chain","_refreshSuggestionsChain","removed","getAttribute","writer","isBefore","init","createRange","_rangeIsInLocalUserInsertion","updateSuggestion","registerCustomCallback","CommentsRepository","splice","_joinWithAdjacentSuggestions","createRangeIn","filter","change","_trackFormatChanges","createdAt","plugins","@external","group","open","join","stop","_checkSuggestionCorrectness","markerReady","multi","editing","_addThreadToSuggestion","documentSelection","isAfter","formatInline","author","_onDiscard","deleteContent","deletion:","isSelectable","accept","removeMarker:suggestion:formatBlock","keys","_handleNewSuggestionMarker","ck-suggestion-marker-","dataReady","map","insertion:","has","registerPostFixer","buildSuggestion","markerNameToElements","change:data","isArray","_editor","addSuggestion","options","set","trackChangesCommand","deletion","deletion:join","insert","listenTo","execute","consume","getWalker","isObject","createSelection","suggestionLoaded","activeMarkers","track-changes-suggestion-data-mismatch","fromCharCode","getChangedMarkers","containsRangeInObject","containerElement","getIntersection","formatInline:join","conversion","values","unbind","createPositionAfter","range","detach","isUndo","showSuggestionHighlights","discardAllSuggestions","removeMarker","removeMarkers","discardSelectedSuggestions","updateMarker","elementToElement","ready","setAttribute","_joinSuggestions","track-changes-adapter-already-set","suggestion:","_removeSuggestion","notReady","getSuggestionCallback","markerName","suggestion-type","formatBlock:chain","markers","commentThread","_cutOutSuggestionMarker","getShiftedBy","adapter","from","selection","high","markInsertion","position","_adapter","ck-suggestion-marker--active","insertion:chain","end","addClass","size","suggestion","isCollapsed","suggestionChanged","split","isAtEnd","_suggestions","nodeAfter","formatGroupId","next","isRemovable","PENDING_ACTION_SUGGESTION","createPositionAt","setSelection","trackChanges.trackFormatChanges","define","$marker","isDocumentOperation","bindElementToMarker","_breakSuggestionMarker","getUser","low","config","applyOperation","_addSuggestionMarker","get","pluginName","before","acceptSuggestion","_model","reconvertMarker","_getSuggestionData","getRanges","_suggestionState","previous","fromRange","rootName","some","authoredAt","isMultiRange","acceptAllSuggestions","every","addMarkerName","getCommentThread","isInsideObject","stopListening","removeComment","PendingActions","creator","getCustomProperty","_mergeNestedSuggestions","enableCommand","forceDefaultExecution","enqueueChange","markMultiRangeBlockFormat","getLastMatchingPosition","removeClass","rejected","delete","commands","remove","data","length","multipleBlocks","isBlock","setTo","addUser","unbindElementFromMarkerName","_isDataLoaded","elementStart","createElement","_customCallbacks","_enabledCommands","insertion:join","isInContent","skipNestingCheck","containsPosition","item","for","discardSuggestion","mapper","_splitMarkerName","containsRange","catch","addHighlight","_isForcedDefaultExecutionBlock","getFirstMarker","insertContent","_updateSuggestionData","addCommentThread","containsItem","upcast","subType","_findSuggestions","isExternal","hasComments","insertion","newRange","addMarker","markInlineFormat","getSuggestion","then","hasCommentThread","TrackChangesEditing","includes","root","element","isTouching","getNearestSelectionRange","deletion:accept","$graveyard","addComment","editor","markerToHighlight","formatBlock:discard","markerToData","backward","isLimit","deletion:discard","elementEnd","fire","_suggestionFactory","trackChanges","editingDowncast","attributes","hasSuggestion","data-suggestion","formatBlock:join","external:","getRange","getDifference","model","formatBlock","addSuggestionData","push","isIntersectingWithRange","getSuggestions","trackChanges.mergeNestedSuggestions","always","_registerDefaultCallbacks","forward","isOwn","value","dataDowncast","$textProxy","getFirstRange"];var Ga,Ha;Ga=Ua,Ha=425,function(e){for(;--e;)Ga.push(Ga.shift())}(++Ha);const za=function(e,t){return Ua[e-=0]};class Wa extends e.Plugin{static get requires(){return[za("0x10e"),s.Users,e.PendingActions,cr,Cr,Rr,wr,Br,Wr,Qr,ts,Oa,xs,us,ps,ys,Ls,Ps,Gs,Ks,Js,ni,xi,ui,bi,Ci,Ri,Oi,ji,Wi,$i,ex,ix,ux,bx,yx,Ix,wx,jx,Wx,Sa,Jx,ra,ma,ja,ca,Ea,ka]}static get[za("0x55")](){return za("0xa2")}constructor(e){function t(e){return e[za("0x12f")]((e=>String[za("0xd")](e)))[za("0x11a")]("")}super(e),this[za("0x13a")]("activeMarkers",[]),this.on(za("0x102"),((t,n,o,r)=>{this[za("0x58")][za("0x113")]((()=>{for(const t of[...r,...o])this[za("0x58")][za("0x2c")][za("0x131")](t)&&e[za("0x11f")][za("0x59")](t)}))})),this._descriptionFactory=new rr(this[za("0xab")][za("0xbe")][za("0xe8")],this.editor[za("0xd7")]),this[za("0x36")]=null,this[za("0xb4")]=new Va(this[za("0xab")]),this._suggestions=new Map,this._commentsRepository=e[za("0x116")][za("0x54")]("CommentsRepository"),this[za("0x83")]=new Set,this[za("0x58")]=this[za("0xab")].model,this[za("0x5c")]=new WeakMap,this[za("0x90")]=!1,e[za("0x51")][za("0x4a")](za("0x49"),"default"),this[za("0x114")]=e[za("0x51")].get(za("0x49")),e[za("0x51")][za("0x4a")]("trackChanges.mergeNestedSuggestions",!0),this[za("0x6d")]=e[za("0x51")][za("0x54")](za("0xc4")),this.trackChangesCommand=new u(e,this._enabledCommands),this[t([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=t([52,48,52,54,49,56,48,52])}[za("0x109")](){const e=this[za("0xab")];e[za("0x13")].for(za("0xb6")).markerToHighlight({model:"suggestion",view:e=>{const{id:t,type:n}=this[za("0x8c")](e.markerName),o=[za("0xd3"),"ck-suggestion-marker-"+n];let r=3e3;return this[za("0xb")][za("0xa3")](e.markerName)&&(o[za("0xc1")](za("0x37")),r=3010),za("0x1")==n&&(r+=5),{classes:o,attributes:{"data-suggestion":t},priority:r}}}),e[za("0x13")].for(za("0xca")).add((t=>{t.on("addMarker:suggestion",((t,n,o)=>{if(!o.options[za("0x1a")])return;const r=n[za("0x88")];if(!r)return;const s=o[za("0x8b")][za("0xfc")](r);e[za("0xbe")][za("0xe8")][za("0x8")](r)&&s&&!s[za("0x6c")](za("0xcf"))&&s.is(za("0x10"))&&(0,x.toWidget)(s,o[za("0x107")])}),{priority:za("0x33")})})),e.conversion[za("0x89")](za("0xca"))[za("0xac")]({model:za("0x3c"),view:(e,t)=>{if(!t.options[za("0x1a")])return null;const{type:n}=this[za("0x8c")](e[za("0x29")]);return{classes:[za("0xd3"),za("0x12d")+n],priority:3e3}}});const n=({showActiveMarkers:t=!0}={})=>(n,o,r)=>{if(!o[za("0x88")])return;if(o.item.is(za("0x32")))return void r[za("0xe7")][za("0x6")](o[za("0x88")],n[za("0xe4")]);const s=r[za("0x8b")].toViewElement(o[za("0x88")]);if(!o[za("0x88")].is(za("0xa5"))||!e[za("0xbe")][za("0xe8")][za("0x7b")](o[za("0x88")])||s[za("0x6c")](za("0x8f")))return;const{id:i}=this[za("0x8c")](o[za("0x29")]);r[za("0x107")][za("0x3a")]([za("0xd3"),"ck-suggestion-marker-formatBlock"],s),r[za("0x107")][za("0x22")](za("0xb9"),i,s),r[za("0x8b")][za("0x4d")](s,o[za("0x29")]),t&&(this[za("0xb")][za("0xa3")](o[za("0x29")])?r.writer.addClass(za("0x37"),s):r[za("0x107")].removeClass(za("0x37"),s));for(const t of e[za("0xbe")][za("0x111")](o.item)[za("0xe1")]())r[za("0xe7")][za("0x6")](t,n[za("0xe4")]);r.consumable[za("0x6")](o[za("0x88")],n[za("0xe4")])};e[za("0x13")].for("dataDowncast")[za("0xd8")]((e=>{e.on(za("0xd1"),((e,t,o)=>{o[za("0x139")][za("0x1a")]&&n({showActiveMarkers:!1})(e,t,o)}),{priority:za("0x101")})})),e[za("0x13")][za("0x89")](za("0xca"))[za("0xae")]({model:za("0x3c"),view:(e,t)=>t[za("0x139")][za("0x1a")]?null:{group:za("0x3c"),name:e[za("0xf9")](11)}}),e.conversion[za("0x89")]("upcast")[za("0x20")]({view:{name:za("0x3c"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(e,{writer:t})=>{let n=za("0x25")+e[za("0x106")](za("0x2a"))+":"+e[za("0x106")]("id");return e.getAttribute("marker-count")&&(n+=":"+e.getAttribute("marker-count")),t[za("0x81")](za("0x4b"),{"data-name":n})}}),e.conversion.for(za("0x96")).dataToMarker({view:za("0x3c")}),e[za("0x13")][za("0x89")](za("0xb6"))[za("0xd8")]((e=>{e.on(za("0xd1"),n(),{priority:za("0x33")})})),e[za("0x13")].for(za("0xb6"))[za("0xd8")]((e=>{e.on(za("0x12a"),((e,t,n)=>{const o=n[za("0x8b")][za("0x134")](t[za("0x29")]);if(o)for(const e of o)e[za("0x6c")](za("0x8f"))||(n[za("0x107")][za("0x73")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock",za("0x37")],e),n[za("0x107")].removeAttribute(za("0xb9"),e),n[za("0x8b")][za("0x7e")](e,t[za("0x29")]))}),{priority:za("0x33")})})),e[za("0xbe")][za("0xfa")][za("0x132")]((t=>{let n=!1;const o=Array.from(e.model[za("0xfa")].differ[za("0xe")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0x3c")!==o)continue;const d=this[za("0x41")][za("0x54")](l);if(null!=a[za("0x9c")])if("formatInline"==c&&(n=n||Xa(a.newRange,x,t,e[za("0xbe")][za("0xe8")])),a.newRange[za("0x3d")]||za("0xa9")==a[za("0x9c")].root[za("0x5f")]||za("0xbf")==c&&!Qa(a[za("0x9c")])||za("0x1")==c&&(qa(i=a[za("0x9c")])||(s=i)[za("0xe6")][za("0xe3")]==s[za("0x39")].nodeBefore&&s[za("0xe6")].isAtEnd))t[za("0x1c")](x),n=!0;else{if(!d||!d[za("0x85")])continue;r.add(d)}}var s,i;return r[za("0x3b")]>0&&(n=!!this[za("0x110")](r)||n),n})),e[za("0xbe")].document[za("0x132")]((t=>{let n=!1;for(const o of e.model[za("0xfa")].differ.getChanges()){if(za("0x3")!=o[za("0xef")])continue;const r=o[za("0x35")][za("0x2f")](o[za("0x79")]);if(r[za("0x40")])for(const s of this[za("0x41")].values()){if(s[za("0x62")]||!s[za("0x85")])continue;if(za("0xbf")!=s[za("0xef")])continue;const i=s.getFirstRange();if(i[za("0xe6")].parent!=i[za("0x39")][za("0xe3")]&&i[za("0x39")][za("0xfd")](o[za("0x35")])){const o=e[za("0xbe")].createRange(i[za("0xe6")],r);t.updateMarker(s[za("0x91")](),{range:o}),n=!0}}}return n})),e[za("0xbe")].markers.on("update:suggestion",((e,t,n)=>{if(null==n){const{id:e}=this[za("0x8c")](t[za("0xe4")]),n=this[za("0x41")][za("0x54")](e);n&&n.addMarkerName(t[za("0xe4")])}})),e[za("0xbe")][za("0xfa")].on(za("0x135"),(()=>{const t=Array[za("0x31")](e[za("0xbe")].document.differ.getChangedMarkers())[za("0x112")]((e=>za("0x3c")===this._splitMarkerName(e[za("0xe4")])[za("0x118")]));if(0===t.length)return;t[za("0xff")](((e,t)=>{const n=e[za("0x78")][za("0xf5")],o=t[za("0x78")][za("0xf5")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0xe6")][za("0x108")](o[za("0xe6")])?-1:1}));const n=new Set,o=new Set;for(const{name:e,data:r}of t){const{id:t}=this._splitMarkerName(e);if(null===r[za("0xf5")]){const t=this._handleNewSuggestionMarker(e);o[za("0xd8")](t)}else{const e=this[za("0x41")][za("0x54")](t);null!==r[za("0x9c")]||e.isInContent?(n[za("0xd8")](e.head),o[za("0xd8")](e)):this[za("0x26")](e)}}o[za("0x3b")]>0&&this._refreshSuggestionsChain(o);for(const e of n)this.fire(za("0x3e"),e)})),e[za("0xbe")].on(za("0x52"),((t,n)=>{const o=n[0];if(!this._suggestions[za("0x3b")])return;if(!o[za("0x4c")])return;if(o[za("0xfe")][za("0x19")]||!o[za("0xfe")].isLocal)return;let r,s;switch(o[za("0xef")]){case za("0x3"):r=e[za("0xbe")][za("0x47")](o[za("0x35")]),s=r.getShiftedBy(o.howMany);break;case"split":r=e.model.createPositionAt(o.splitPosition),s=e[za("0xbe")][za("0x47")](o.moveTargetPosition);break;case za("0xce"):r=e[za("0xbe")][za("0x47")](o.targetPosition),s=r[za("0x2f")](o.howMany);break;default:return}const i=e[za("0xbe")].createRange(r,s);e[za("0xbe")].change((()=>{for(const{suggestion:e,meta:t}of this[za("0x98")](i)){if(e.isMultiRange)continue;if("formatInline"==e.type)continue;const n=e[za("0x78")]&&e.data[za("0x7a")];(za("0xbf")!=e.type||za("0x3f")==o[za("0xef")]&&!n)&&(t.containsRangeInObject||za("0x9b")==e[za("0xef")]&&t[za("0xc8")]||e.getFirstRange()[za("0x8d")](i)&&this[za("0x4e")](e,r,s))}}))}),{priority:za("0xfb")}),e[za("0xbe")].on(za("0x126"),((t,n)=>{const o=n[0],r=n[1];if(r&&r[za("0x6f")])return;if(this[za("0x90")])return;if(!this[za("0x0")][za("0xc9")])return;if(o[za("0x3d")])return;const s=e.model[za("0xe8")],{start:i,end:x}=o[za("0xcc")](),a=i[za("0x42")]&&s[za("0xb0")](i.nodeAfter)?null:s[za("0xa7")](i,za("0xc7")),c=x[za("0xe2")]&&s[za("0xb0")](x[za("0xe2")])?null:s[za("0xa7")](x,za("0xaf")),l=e[za("0xbe")][za("0x10a")](a?a[za("0xe6")]:i,c?c.end:x);e.model.change((t=>{this[za("0xe5")](l);const n=e[za("0xbe")][za("0xe8")][za("0xa7")](l[za("0xe6")]);o.is(za("0x121"))?t[za("0x48")](n):o[za("0x7c")](n)})),t.stop()}),{priority:t.priorities.normal+10}),e[za("0xbe")].on(za("0x92"),((t,n)=>{const o=n[n.length-1];o&&o[za("0x6f")]||this[za("0x90")]||this[za("0x0")].value&&(e[za("0xbe")][za("0x113")]((()=>{let o=e.model[za("0x92")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;t[za("0xdc")]=o.clone();const r=o.end[za("0xe2")],s=e[za("0xbe")][za("0xe8")];r&&s.isBlock(r)&&!s[za("0x8")](r)&&(o=e[za("0xbe")].createRange(o[za("0xe6")],e[za("0xbe")][za("0x47")](r,za("0x39")))),this[za("0x34")](o)})),t.stop())}),{priority:za("0x33")}),this[za("0xab")].commands.add(za("0xb5"),this[za("0x0")]),this.enableCommand(za("0xb5"));const o=new b(e,this[za("0x41")]);e[za("0x76")][za("0xd8")](za("0x57"),o),this[za("0x6e")](za("0x57"));const r=new C(e,this[za("0x41")]);e[za("0x76")][za("0xd8")](za("0x8a"),r),this[za("0x6e")](za("0x8a")),e[za("0x76")].add("acceptAllSuggestions",new F(e,o,this[za("0x41")])),this[za("0x6e")](za("0x63")),e[za("0x76")][za("0xd8")](za("0x1b"),new F(e,r,this[za("0x41")])),this[za("0x6e")](za("0x1b")),e[za("0x76")][za("0xd8")]("acceptSelectedSuggestions",new U(e,o,this[za("0x41")])),this.enableCommand(za("0xf4")),e[za("0x76")][za("0xd8")]("discardSelectedSuggestions",new U(e,r,this._suggestions)),this.enableCommand(za("0x1e"));const s=e[za("0x116")].get(za("0x10e"));this.listenTo(s,za("0xaa"),((e,{threadId:t})=>{const n=this[za("0x41")][za("0x54")](t);n&&n[za("0x2d")]&&1===n[za("0x2d")][za("0x79")]&&this._updateSuggestionData(t,{hasComments:!0})}),{priority:"low"}),this[za("0x4")](s,za("0x69"),((e,{threadId:t})=>{const n=this[za("0x41")].get(t);n&&n[za("0x2d")]&&!n[za("0x2d")][za("0x79")]&&this[za("0x93")](t,{hasComments:!1})}),{priority:za("0x50")})}set[za("0x30")](e){if(this[za("0x36")])throw new t.CKEditorError(za("0x24"),this);this[za("0x36")]=e}get[za("0x30")](){return this[za("0x36")]}[za("0xc3")]({skipNotAttached:e=!1,toJSON:t=!1}={}){const n=[];for(const t of this[za("0x41")][za("0x14")]())e&&!t[za("0x85")]||n[za("0xc1")](t);return t?n[za("0x12f")]((e=>e.toJSON())):n}[za("0x9f")](e){const n=this._suggestions.get(e);if(!n)throw new t.CKEditorError("track-changes-suggestion-not-found",this);return n}[za("0xb8")](e){return this._suggestions[za("0x131")](e)}[za("0xc0")](e){const{authorId:t,id:n,attributes:o}=e,[r,s]=e[za("0xef")][za("0x3f")](":"),i=this[za("0x41")][za("0x54")](n)||this._createSuggestion(r,s,n,t,o);if(this[za("0x120")](i),this._checkSuggestionCorrectness(i,r,s||null,t),i.createdAt=e.createdAt,i[za("0x7f")]=!0,o&&o[za("0x117")]){const e=o[za("0x117")],t=this._getExternalAuthor(e.authorName);i[za("0x61")]=e[za("0x115")],i[za("0x124")]=t,i[za("0x99")]=!0}else i[za("0x61")]=e[za("0x115")];switch(e[za("0x78")]&&(i[za("0x78")]=e.data),e.attributes&&(i[za("0xb7")]=e[za("0xb7")]),this[za("0x36")]&&this[za("0x36")].addSuggestion||(i[za("0xd2")]=!0),this[za("0x5c")][za("0x54")](i)){case"notReady":this[za("0x5c")].set(i,za("0x12e"));break;case za("0x11d"):i[za("0x85")]?(this._refreshSuggestionsChain(new Set([i])),this[za("0x110")](new Set([i])),this[za("0x5c")].set(i,za("0x21")),this[za("0xb3")]("suggestionLoaded",i)):this[za("0x5c")][za("0x13a")](i,za("0x105"))}return i}[za("0x57")](e){this[za("0x6f")]((()=>{this[za("0xab")][za("0xbe")][za("0x113")]((()=>{for(const t of e[za("0xec")]())t[za("0x129")]()}))}))}[za("0x8a")](e){this[za("0x6f")]((()=>{this.editor[za("0xbe")].change((()=>{for(const t of e[za("0xec")]())t[za("0xdd")]()}))}))}enableCommand(e,n){const o=this[za("0xab")][za("0x76")][za("0x54")](e);if(!o)throw new t.CKEditorError("track-changes-command-not-found",this,{commandName:e});this[za("0x83")][za("0xd8")](o),n&&o.on(za("0x5"),((e,t)=>{this[za("0x0")][za("0xc9")]&&(this[za("0x90")]||t[za("0x79")]>0&&t[t.length-1]&&t[t.length-1][za("0x6f")]||(n(((...e)=>o[za("0x5")](...e,{forceDefaultExecution:!0})),...t),e[za("0x11b")]()))}),{priority:za("0x33")})}forceDefaultExecution(e){let n,o;const r=this[za("0x90")];this._isForcedDefaultExecutionBlock=!0;try{n=e()}catch(e){o=e}return r||(this._isForcedDefaultExecutionBlock=!1),o&&t.CKEditorError[za("0xd0")](o,this),n}[za("0x34")](e,n=null,o={}){if(e[za("0x3d")])return null;const r=this[za("0xab")][za("0x116")][za("0x54")](za("0xd9")).me;for(const{suggestion:t,meta:r}of this[za("0x98")](e,za("0x9b")))if(r[za("0xc8")]){if(!r[za("0xf0")]){if(r.containsRangeInObject){if(!this[za("0x6d")]||!ec(t,o))continue;return t}if(ec(t,o))return t;this[za("0x4e")](t,e[za("0xe6")],e.end);break}if(n==t.subType&&ec(t,o)){const n=t.getFirstRange();return n[za("0xe6")].isEqual(e[za("0x39")])?this[za("0xd5")](t,this[za("0x58")].createRange(e[za("0xe6")],n[za("0x39")])):this._setSuggestionRange(t,this._model[za("0x10a")](n[za("0xe6")],e[za("0x39")])),t}}const s=(0,t.uid)(),i=r.id,x=n?za("0x130")+n:za("0x9b"),a=this[za("0xeb")]({id:s,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,s,i,e),a}[za("0xf8")](e,n=za("0x11e"),o={}){const r=this[za("0xab")][za("0x116")][za("0x54")](za("0xd9")).me,s=this[za("0xb4")][za("0x28")](za("0x9b"),n,za("0x11a"));for(const t of this[za("0xc3")]())if(t[za("0x124")].id==r.id&&za("0x9b")==t[za("0xef")]&&t.subType==n&&ec(t,o)&&(s(t[za("0x5b")](),e)||s(e,t[za("0x5b")]()))){for(const n of e)t.addRange(n);return t}for(const{suggestion:t,meta:n}of this._findSuggestions(e,"insertion")){if(!n[za("0xc8")])continue;if(!this[za("0x6d")]&&n[za("0xf")])continue;if(!ec(t,o))continue;let r=!0;for(const n of t.getRanges())for(const t of e)if(!n[za("0x8d")](t)){r=!1;break}if(r)return t}const i=(0,t.uid)(),x=r.id,a=za("0x130")+n,c=this[za("0xeb")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const t of e)this[za("0x53")](a,i,x,t,Zo[za("0xf7")]());return c}[za("0x9e")](e,n,o=null,r={}){if(o=o||$a(n),e[za("0x3d")])return null;if(za("0xe0")===this._trackFormatChanges){const t=this[za("0xb4")][za("0x28")]("formatInline",o,za("0x129"));return this[za("0x6f")]((()=>t([e],n,r))),null}const s=this.editor[za("0x116")][za("0x54")](za("0xd9")).me,i=[];if(za("0xc5")!==this[za("0x114")])for(const{suggestion:t,meta:n}of this[za("0x98")](e,za("0x9b")))n[za("0xc8")]&&!n.isInsideObject&&i[za("0xc1")](...t[za("0x5b")]());const x=function(e,t){const n=[];for(const o of t){const t=e.getIntersection(o);t&&n.push(t)}return n}(e,i),a=function(e,t){const n=[e];for(const e of t){let t=0;for(;t<n[za("0x79")];){const o=n[t][za("0xbd")](e);n[za("0x10f")](t,1,...o),t+=o[za("0x79")]}}return n}(e,i);x.length&&this._model[za("0x113")]((()=>{for(const e of x){const t=this[za("0xb4")][za("0x28")](za("0x123"),o,za("0x129"));this[za("0x6f")]((()=>t([e],n,r)))}}));for(const e of a){let i=null,x=e[za("0xe6")],a=e[za("0x39")];for(const{suggestion:t,meta:n}of this[za("0x98")](e,za("0x123"))){if(!n[za("0xc8")])continue;if(t[za("0x97")]!=o)continue;if(!ec(t,r))continue;const s=t[za("0xcc")]();if(s.containsRange(e,!0))return null;x=x[za("0x108")](s[za("0xe6")])?x:s[za("0xe6")],a=a.isAfter(s[za("0x39")])?a:s[za("0x39")],i?s[za("0xe6")][za("0x108")](i.getFirstRange()[za("0xe6")])?(i[za("0x1d")](),i=t):t[za("0x1d")]():i=t}const c=this._model[za("0x10a")](x,a);if(i)this[za("0xd5")](i,c);else{const e=(0,t.uid)(),i=s.id;this[za("0xeb")]({id:e,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this[za("0x53")]("formatInline:"+o,e,i,c)}}return null}markBlockFormat(e,n,o=[],r=null,s={}){n[za("0x43")]||(n[za("0x43")]=n.commandName),n.multipleBlocks=e.is("range"),r=r||$a(n);const i=o[za("0x12f")]((e=>Ja(e,this[za("0x58")]))),x=e.is(za("0x17"))?e:Ja(e,this[za("0x58")]);if(za("0xe0")===this[za("0x114")]){const e=this[za("0xb4")][za("0x28")](za("0xbf"),r,za("0x129"));return this.forceDefaultExecution((()=>e([x],n,s))),null}i[za("0xc1")](x);let a=!0;for(const e of i)if(!this._rangeIsInLocalUserInsertion(e)){a=!1;break}if(a&&"always"!==this[za("0x114")]){const e=this._suggestionFactory.getSuggestionCallback(za("0xbf"),r,"accept");return this.forceDefaultExecution((()=>e([x],n,s))),null}let c=null,l=x[za("0xe6")],d=x[za("0x39")];for(const{suggestion:e,meta:t}of this[za("0x98")](x,za("0xbf"))){if(!t[za("0xc8")])continue;if(t[za("0xf0")]||t[za("0xf")]||t[za("0x67")])continue;if(e.data[za("0x43")]!=n[za("0x43")])continue;if(!ec(e,s))continue;const o=e[za("0xcc")]();if(e[za("0x97")]==r){if(o[za("0x8d")](x,!0))return null;l=l[za("0x108")](o[za("0xe6")])?l:o[za("0xe6")],d=d[za("0x122")](o[za("0x39")])?d:o[za("0x39")],c?o[za("0xe6")][za("0x108")](c[za("0xcc")]()[za("0xe6")])?(c[za("0x1d")](),c=e):e[za("0x1d")]():c=e}else{const t=x[za("0x11")](o);this[za("0x2e")](e,t)}}const u=this[za("0xab")][za("0x116")][za("0x54")](za("0xd9")).me,g=(0,t.uid)(),m=u.id;if(c)return this._setSuggestionRange(c,this[za("0x58")].createRange(l,d)),c;{const e=this[za("0xeb")]({id:g,type:"formatBlock:"+r,data:n,createdAt:new Date,authorId:m,attributes:s});return this[za("0x53")]("formatBlock:"+r,g,m,this[za("0x58")][za("0x10a")](l,d)),e}}[za("0x71")](e,n,o=[],r=null,s={}){n[za("0x43")]||(n[za("0x43")]=n.commandName);const i=e[0];n.multipleBlocks=i.is(za("0x17")),r=r||$a(n);const x=o[za("0x12f")]((e=>Ja(e,this[za("0x58")]))),a=i.is(za("0x17"))?e:e[za("0x12f")]((e=>Ja(e,this[za("0x58")])));if(za("0xe0")===this[za("0x114")]){const e=this[za("0xb4")][za("0x28")]("formatBlock",r,za("0x129"));return this.forceDefaultExecution((()=>e(a,n,s))),null}x[za("0xc1")](...a);let c=!0;for(const e of x)if(!this[za("0x10b")](e)){c=!1;break}if(c&&za("0xc5")!==this._trackFormatChanges){const e=this._suggestionFactory[za("0x28")](za("0xbf"),r,za("0x129"));return this[za("0x6f")]((()=>e(a,n,s))),null}const l=this[za("0xab")][za("0x116")][za("0x54")](za("0xd9")).me;for(const e of this[za("0xc3")]()){if(e[za("0x124")].id!=l.id)continue;if(za("0xbf")!=e[za("0xef")]||e[za("0x78")][za("0x43")]!=n.formatGroupId)continue;if(!ec(e,s))continue;const t=e[za("0x97")]==r;for(let n=0;n<a[za("0x79")];n++){const o=a[n];for(const r of e.getMarkers()){const s=r[za("0xbc")]();if(o.isEqual(s)){t?(a[za("0x10f")](n,1),n--):e[za("0x1c")](r[za("0xe4")]);break}}}}if(0==a[za("0x79")])return null;const d=this[za("0xb4")][za("0x28")](za("0xbf"),r,za("0x11a"));for(const e of this[za("0xc3")]())if(e[za("0x124")].id==l.id&&za("0xbf")==e.type&&e[za("0x78")][za("0x43")]==n[za("0x43")]&&e[za("0x97")]==r&&ec(e,s)&&(d(e[za("0x5b")](),a)||d(a,e[za("0x5b")]()))){for(const t of a)e[za("0xdb")](t);return e}const u=(0,t.uid)(),g=l.id,m=za("0xd4")+r,f=this[za("0xeb")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:s});for(const e of a)this[za("0x53")](m,u,g,e,Zo[za("0xf7")]());return f}[za("0xe5")](e,n=null,o={}){if(e[za("0x3d")])return null;const r=this[za("0xab")].plugins[za("0x54")](za("0xd9")).me,s=new i.LiveRange(e.start,e[za("0x39")]);for(const{suggestion:e,meta:t}of this[za("0x98")](s,za("0x9b")))if(t[za("0xc8")]&&!t[za("0xf0")])if(e[za("0x62")]){const t=e[za("0x5b")]()[za("0x112")]((e=>za("0xa9")!=e[za("0xa4")][za("0x5f")]));if(t[za("0x64")]((e=>s.containsRange(e,!0)))&&e.discard(),t[za("0x60")]((e=>e[za("0x8d")](s,!0)))){const e=this._suggestionFactory.getSuggestionCallback(za("0x1"),n,za("0x129"));return this[za("0x6f")]((()=>e([s],null,o))),null}}else{const t=s.getIntersection(e.getFirstRange());null!==t&&e[za("0x125")]([t],null,o)}if(s[za("0x18")](),s[za("0x3d")]||za("0xa9")==s[za("0xa4")][za("0x5f")])return null;let x=null,a=s[za("0xe6")],c=s.end;const l=this[za("0x98")](s,za("0x1"));for(const{suggestion:e,meta:t}of l){const n=this[za("0x58")][za("0x10a")](a,c);if(t[za("0xc8")]&&(this[za("0x6d")]||!t[za("0xf")]&&!t[za("0x67")]))if(e[za("0x62")]){if(!ec(e,o))continue;let t=!0;for(const o of e[za("0x5b")]()){if(o[za("0x8d")](n,!0))return e;n[za("0x8d")](o)||(t=!1)}t&&e[za("0xdd")]()}else{const t=e.getFirstRange();if(t[za("0x8d")](n,!0))return e;if(!ec(e,o)){n[za("0x8d")](t)?e[za("0x1d")]():t[za("0x87")](a)?a=t[za("0x39")]:t[za("0x87")](c)&&(c=t[za("0xe6")]);continue}a=a.isBefore(t.start)?a:t[za("0xe6")],c=c[za("0x122")](t[za("0x39")])?c:t[za("0x39")],o=Object[za("0xd6")]({},e[za("0xb7")]),x?t[za("0xe6")][za("0x108")](x[za("0xcc")]()[za("0xe6")])?(x.removeMarkers(),x=e):e[za("0x1d")]():x=e}}if(x)return this[za("0xd5")](x,this[za("0x58")].createRange(a,c)),x;{const e=(0,t.uid)(),s=this[za("0x58")].createRange(a,c),i=r.id,x=n?"deletion:"+n:"deletion",l=this[za("0xeb")]({id:e,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x53")](x,e,i,s),l}}markMultiRangeDeletion(e,n=za("0x11e"),o={}){const r=this[za("0xab")][za("0x116")][za("0x54")]("Users").me,s=e[za("0x12f")]((e=>new i.LiveRange(e[za("0xe6")],e[za("0x39")]))),x=new Set;for(const{suggestion:e,meta:t}of this[za("0x98")](s,za("0x9b")))t[za("0xc8")]&&!t.isNextTo&&x[za("0xd8")](e);for(const t of x)if(t[za("0x62")]){const r=t[za("0x5b")]();if((!t[za("0xb7")]||!t[za("0xb7")][za("0x86")])&&r[za("0x64")]((e=>s[za("0x60")]((t=>t[za("0x8d")](e,!0)))))&&t.discard(),s[za("0x64")]((e=>r.some((t=>t[za("0x8d")](e,!0)))))){const t=this._suggestionFactory[za("0x28")](za("0x1"),n,za("0x129"));return this[za("0x6f")]((()=>t(e,null,o))),null}}else{const e=t.getFirstRange();if(s[za("0x60")]((t=>t[za("0x8d")](e,!0)))&&t.discard(),s[za("0x64")]((t=>e[za("0x8d")](t,!0)))){const e=this._suggestionFactory[za("0x28")]("deletion",n,"accept");return this.forceDefaultExecution((()=>e(s,null,o))),null}}const a=this[za("0xb4")][za("0x28")](za("0x1"),n,za("0x11a"));let c=null;for(const e of this.getSuggestions())if(e.author.id==r.id&&e.isInContent&&"deletion"==e[za("0xef")]&&e[za("0x97")]==n&&ec(e,o)&&(a(e[za("0x5b")](),s)||a(s,e.getRanges())))if(c){if(e[za("0x2d")]&&e[za("0x2d")].length)continue;for(const t of e[za("0x5b")]())c[za("0xc2")](t)||c[za("0xdb")](t);e.removeMarkers()}else{c=e;for(const t of s)e[za("0xc2")](t)||e[za("0xdb")](t)}if(c)return c;x[za("0xea")]();for(const{suggestion:e,meta:t}of this[za("0x98")](s,za("0x1")))t[za("0xc8")]&&(this[za("0x6d")]||!t[za("0xf")]&&!t[za("0x67")])&&ec(e,o)&&x[za("0xd8")](e);for(const e of x){const t=e[za("0x5b")]();if((!o||!o[za("0x86")])&&s.every((e=>t[za("0x60")]((t=>t[za("0x8d")](e,!0))))))return e;(!e.attributes||!e[za("0xb7")][za("0x86")])&&t[za("0x64")]((e=>s.some((t=>t[za("0x8d")](e,!0)))))&&e[za("0xdd")]()}const l=(0,t.uid)(),d=r.id,u=za("0x127")+n,g=this[za("0xeb")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const e of s)e.detach(),e[za("0x3d")]||za("0xa9")==e.root.rootName||this[za("0x53")](u,l,d,e,Zo[za("0xf7")]());return g}[za("0xd5")](e,t){const n=e[za("0x91")]();this._model[za("0x113")]((e=>{e[za("0x1f")](n,{range:t})}))}[za("0x120")](e){const t=e.id,n=this.editor[za("0x51")][za("0x54")](za("0xda"));this[za("0xf1")][za("0xa1")](t)||this[za("0xf1")][za("0x94")]({channelId:n,threadId:t,isResolvable:!1,isSubmitted:!0});const o=this[za("0xf1")][za("0x66")](t);o[za("0x15")](za("0x45")),o.isRemovable=!1,e[za("0x2d")]=o}_checkSuggestionCorrectness(e,n,o,r){if(e[za("0xef")]!=n||e[za("0x97")]!=o||e[za("0x6b")].id!=r)throw this[za("0xab")][za("0xe9")]("track-changes-suggestion-data-mismatch"),new t.CKEditorError(za("0xc"),this)}[za("0x2e")](e,n){const o=e.getFirstRange();if(n[za("0xfd")](o))e.removeMarkers();else if(o[za("0x8d")](n)){const r=this[za("0x58")][za("0x47")](n[za("0xe6")][za("0xe2")],za("0x39"));this[za("0xd5")](e,this._model.createRange(o[za("0xe6")],r));const s=(0,t.uid)(),i=e[za("0x6b")].id,x=e[za("0xef")]+":"+e[za("0x97")];this[za("0xeb")]({id:s,type:x,createdAt:new Date,authorId:i,data:e.data,attributes:e[za("0xb7")]});const a=this[za("0x58")][za("0x47")](n[za("0x39")].parent,"after"),c=this[za("0x58")][za("0x10a")](a,o[za("0x39")]);this[za("0x53")](x,s,i,c)}else if(o[za("0x87")](n[za("0xe6")])){const t=this[za("0x58")][za("0x47")](n[za("0xe6")].nodeBefore,"end");this[za("0xd5")](e,this[za("0x58")][za("0x10a")](o[za("0xe6")],t))}else{const t=this[za("0x58")][za("0x47")](n[za("0x39")][za("0xe3")],"after");this[za("0xd5")](e,this[za("0x58")].createRange(t,o[za("0x39")]))}}[za("0x10b")](e){for(const{suggestion:t,meta:n}of this[za("0x98")](e,za("0x9b"))){if(!n[za("0xc8")])continue;const o=t[za("0x5b")]();for(const t of o)if(!e[za("0xbd")](t)[za("0x79")])return!0}return!1}[za("0xf2")](e){const n=this[za("0xab")][za("0x116")].get(za("0xd9"))[za("0x4f")](e);if(!n)throw new t.CKEditorError(za("0xed"),this);return n}[za("0xf6")](e){const t=this.editor[za("0x116")][za("0x54")]("Users"),n=(0,s.hashObject)(za("0xbb")+e);return t[za("0x4f")](n)||t[za("0x7d")]({id:n,name:e})}_createSuggestion(e,t,n,o,r){const s=this[za("0xf2")](o),i=this[za("0xb4")][za("0x133")](e,t,n,s,r,(e=>this[za("0x93")](n,{attributes:e})));return this[za("0x4")](i,"accept",(()=>{this._updateSuggestionData(n,{state:"accepted"})}),{priority:"high"}),this[za("0x4")](i,za("0xdd"),(()=>{this._updateSuggestionData(n,{state:za("0x74")})}),{priority:"high"}),this[za("0x41")].set(n,i),this[za("0x5c")][za("0x13a")](i,"notReady"),i}[za("0x8c")](e){const t=e[za("0x3f")](":");return{group:t[0],type:t[1],subType:t[za("0x79")]>=5?t[2]:null,id:t[za("0x79")]<5?t[2]:t[3],authorId:t.length<5?t[3]:t[4],markerCount:6==t[za("0x79")]?t[5]:null}}[za("0x4e")](e,n,o){const r=e[za("0xcc")](),s=r[za("0xe6")],i=r[za("0x39")];this._setSuggestionRange(e,this[za("0x58")].createRange(s,n));const x=(0,t.uid)(),a=e[za("0x6b")].id,c=e[za("0xef")]+(e[za("0x97")]?":"+e[za("0x97")]:"");this[za("0xeb")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:e.id,attributes:e[za("0xb7")],data:e[za("0x78")]}),"formatBlock"==e[za("0xef")]&&(o=this[za("0x58")][za("0xcd")](o[za("0xe3")])),this[za("0x53")](c,x,a,this[za("0x58")][za("0x10a")](o,i))}[za("0x98")](e,t=null){const n=[],o=this.editor[za("0x116")][za("0x54")]("Users").me;Array[za("0x136")](e)||(e=[e]);for(const r of this.getSuggestions()){if(!r.isInContent)continue;if(t&&r[za("0xef")]!=t)continue;let s=!1;for(const t of r[za("0x5b")]()){for(const i of e){const e=i.start[za("0xfd")](t[za("0x39")])||i[za("0x39")][za("0xfd")](t[za("0xe6")]);if(e||i.getIntersection(t)){const x=i.containsRange(t)&&Ka(this[za("0x58")][za("0xe8")],t[za("0xe6")],i),a=t[za("0x8d")](i)&&Ka(this[za("0x58")][za("0xe8")],i[za("0xe6")],t);n.push({suggestion:r,meta:{isOwn:o==r[za("0x124")],isNextTo:e,isInsideObject:x,containsRangeInObject:a}}),s=!0;break}}if(s)break}}return n}[za("0x53")](e,t,n,o,r){this[za("0x58")].change((s=>{let i=za("0x25")+e+":"+t+":"+n;r&&(i=i+":"+r),s[za("0x9d")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x26")](e){const t=e[za("0x5d")],n=e[za("0x44")];e[za("0x5d")]=null,null!=t&&(t[za("0x44")]=null),e.next=null,null!=n&&(n[za("0x5d")]=null),za("0x21")==this[za("0x5c")].get(e)&&(this[za("0x5c")][za("0x13a")](e,"removed"),this[za("0xb3")]("suggestionUnloaded",e,t,n))}[za("0xeb")](e){const n=e.id,o=this[za("0xc0")](e);if(this[za("0x36")]&&this._adapter[za("0x138")]){const r=this.editor[za("0x116")][za("0x54")](za("0x6a")),s=o[za("0x9a")],i=o.subType?o[za("0xef")]+":"+o.subType:o.type,x=this[za("0xab")][za("0xd7")],a=r[za("0xd8")](Yo(x,za("0x46"))),c={id:n,type:i,hasComments:s,data:e.data||null,originalSuggestionId:e.originalSuggestionId||null,attributes:o[za("0xb7")]};this[za("0x36")][za("0x138")](c)[za("0xa0")]((e=>{o[za("0xd2")]=!0,r[za("0x77")](a),e&&e[za("0x115")]&&(this._suggestions[za("0x54")](n)[za("0x115")]=e[za("0x115")])}))[za("0x8e")]((e=>{throw(0,t.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[za("0xab")][za("0xbe")][za("0x70")]({isUndoable:!1},(()=>{o[za("0xdd")]()})),o[za("0x68")](),this[za("0x41")][za("0x75")](o.id),this[za("0x5c")][za("0x75")](o),e}))}return o}[za("0x93")](e,t){const n=this.editor.plugins[za("0x54")](za("0x6a")),o=this[za("0x9f")](e);if(this._adapter&&this[za("0x36")][za("0x10c")])if(o[za("0xd2")]){const o=n.add(Yo(this.editor[za("0xd7")],"PENDING_ACTION_SUGGESTION"));this[za("0x36")][za("0x10c")](e,t).then((()=>{n[za("0x77")](o)}))}else o.on("change:_saved",(()=>{this[za("0x93")](e,t)}))}[za("0x5a")](e){if(!this._adapter||!this[za("0x36")][za("0x9f")])throw new t.CKEditorError(za("0x100"),this);return this._adapter[za("0x9f")](e)}[za("0x12c")](e){const{id:t,type:n,subType:o,authorId:r}=this[za("0x8c")](e),s=this[za("0x41")][za("0x54")](t)||this._createSuggestion(n,o,t,r,{});switch(this[za("0x11c")](s,n,o,r),this[za("0x5c")][za("0x54")](s)){case za("0x27"):this[za("0x5a")](t)[za("0xa0")]((e=>{let n=Promise.resolve();e.hasComments&&(n=this[za("0xf1")].fetchCommentThread({channelId:this[za("0xab")][za("0x51")][za("0x54")](za("0xda")),threadId:t})),n[za("0xa0")]((()=>{this[za("0xc0")](e)[za("0xd2")]=!0}))})),this[za("0x5c")][za("0x13a")](s,za("0x11d"));break;case za("0x105"):this[za("0x93")](t,{state:za("0x119")});case"dataReady":this[za("0x5c")][za("0x13a")](s,za("0x21")),this[za("0xb3")](za("0xa"),s);break;case"ready":this[za("0xb3")]("suggestionChanged",s)}return s[za("0x65")](e),s}[za("0x104")](e){const t=Array[za("0x31")](e).filter((e=>!e[za("0x62")])),n=this[za("0xc3")]({skipNotAttached:!0})[za("0x112")]((e=>!e.isMultiRange)),o=n.filter((t=>!e.has(t))),r=new Map(n.map((e=>[e,this[za("0xb4")][za("0x28")](e[za("0xef")],e[za("0x97")],"chain")]))),s=new Map(n.map((e=>[e,e[za("0xcc")]()]))),i=new Set,x=new Set;for(let e=0;e<t[za("0x79")];e++)a(t[e],t,e+1);for(let e=0;e<t[za("0x79")];e++)a(t[e],o,0);for(let e=0;e<t.length;e++){const n=t[e];!x.has(n)&&n[za("0x5d")]&&(n.previous[za("0x44")]===n&&(n[za("0x5d")][za("0x44")]=null),n[za("0x5d")]=null),!i.has(n)&&n[za("0x44")]&&(n.next.previous===n&&(n[za("0x44")][za("0x5d")]=null),n[za("0x44")]=null)}function a(e,t,n){for(let o=n;o<t[za("0x79")];o++){const n=c(e,t[o]);n&&(n[0].next=n[1],n[1][za("0x5d")]=n[0],i[za("0xd8")](n[0]),x[za("0xd8")](n[1]))}}function c(e,t){if(e[za("0x124")].id!==t[za("0x124")].id)return null;const n=r[za("0x54")](e)(e,t,s.get(e),s[za("0x54")](t));return n&&r.get(t)(e,t,s[za("0x54")](e),s[za("0x54")](t))?n[1][za("0x2d")]&&n[1][za("0x2d")].length?null:n:null}}[za("0x110")](e){const t=Array.from(e),n=this[za("0xc3")]({skipNotAttached:!0}),o=n[za("0x112")]((t=>!e[za("0x131")](t))),r=new Map(t.map((e=>[e,this[za("0xb4")][za("0x28")](e[za("0xef")],e[za("0x97")],za("0x11a"))]))),s=new Map(n[za("0x12f")]((e=>[e,e[za("0x5b")]()])));for(let e=0;e<t[za("0x79")];e++)if(i(this,t[e],t,e+1))return!0;for(let e=0;e<t[za("0x79")];e++)if(i(this,t[e],o,0))return!0;return!1;function i(e,t,n,o){for(let i=o;i<n[za("0x79")];i++){const o=n[i];if(o.type!==t.type||o[za("0x124")].id!==t.author.id||o[za("0x97")]!==t[za("0x97")])continue;if(!Ya(t,o))continue;const x=r[za("0x54")](t),a=s[za("0x54")](t),c=s.get(o),l=t[za("0x2d")]&&t.commentThread[za("0x79")],d=o[za("0x2d")]&&o.commentThread.length;if(!l&&x(c,a))return e[za("0x23")](o,t),s.delete(t),!0;if(!d&&x(a,c))return e._joinSuggestions(t,o),s[za("0x75")](o),!0}return!1}}[za("0x23")](e,t){if(e.isMultiRange)for(const n of t[za("0x5b")]())e[za("0xdb")](n);else{const n=t[za("0xcc")]()[za("0x39")];this[za("0xd5")](e,this[za("0x58")][za("0x10a")](e.getFirstRange()[za("0xe6")],n))}t[za("0x1d")]()}}class Va{constructor(e){this[za("0x137")]=e,this[za("0x58")]=e[za("0xbe")],this[za("0x82")]=new Map,this[za("0xf3")]=new Map,this[za("0xc6")]()}[za("0x133")](e,t,n,o,r,s){return new Zo(this[za("0x58")],{type:e,subType:t,id:n,author:o,creator:o,attributes:r,onAttributesChange:s,onAccept:(...n)=>this[za("0x28")](e,t,za("0x129"))(...n),onDiscard:(...n)=>this[za("0x28")](e,t,"discard")(...n)})}[za("0x10d")](e,t,n,o){const r=e+":"+t+":"+n;this._customCallbacks.set(r,o)}getSuggestionCallback(e,t,n){const o=e+":"+t+":"+n;return this[za("0x82")][za("0x54")](o)||this[za("0xf3")][za("0x54")](e+":"+n)}[za("0xc6")](){const e=()=>!1,t=e=>{e[za("0xff")](((e,t)=>e[za("0xe6")].isBefore(t.start)?1:-1)),this[za("0x58")].change((t=>{for(const n of e){let e;e=n.end[za("0x40")]&&n.end.parent==n[za("0xe6")][za("0x42")]?t[za("0x9")](n.start[za("0x42")],"on"):t[za("0x9")](n),this._model[za("0x126")](e,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(e,t)=>{this[za("0x58")].change((n=>{const{commandName:o,commandParams:r=[]}=t,s=e[za("0x12f")]((e=>(qa(e)&&(e=this._model.createRange(e.end)),e)))[za("0x112")]((e=>za("0xa9")!==e[za("0xa4")].rootName));if(s[za("0x79")]<1)return;const x=Array[za("0x31")](this._model[za("0xfa")][za("0x32")][za("0x5b")]()).map((e=>i.LiveRange[za("0x5e")](e)));n[za("0x48")](s);for(const e of this[za("0x137")][za("0x76")][za("0x76")]())e.refresh();r[za("0xc1")]({forceDefaultExecution:!0}),this._editor[za("0x5")](o,...r);const a=x.filter((e=>"$graveyard"!=e[za("0xa4")].rootName));a[za("0x79")]>0&&n[za("0x48")](a);for(const e of x)e[za("0x18")]()}))},o=(e,t)=>1==e[za("0x79")]&&1==t[za("0x79")]&&e[0].end[za("0xfd")](t[0][za("0xe6")]),r=(e,t,n,o)=>Za(e,t,n,o,this[za("0x58")])?[e,t]:Za(t,e,o,n,this[za("0x58")])?[t,e]:null;this[za("0xf3")][za("0x13a")]("insertion:accept",e),this._defaultCallbacks.set("insertion:discard",t),this._defaultCallbacks.set(za("0x84"),o),this[za("0xf3")][za("0x13a")](za("0x38"),r),this[za("0xf3")].set(za("0xa8"),t),this[za("0xf3")].set(za("0xb1"),e),this[za("0xf3")][za("0x13a")](za("0x2"),o),this[za("0xf3")][za("0x13a")]("deletion:chain",r),this[za("0xf3")][za("0x13a")](za("0xee"),n),this[za("0xf3")][za("0x13a")]("formatInline:discard",e),this._defaultCallbacks[za("0x13a")](za("0x12"),o),this[za("0xf3")].set(za("0x103"),e),this._defaultCallbacks.set("formatBlock:accept",n),this[za("0xf3")].set(za("0xad"),e),this[za("0xf3")][za("0x13a")](za("0xba"),o),this[za("0xf3")][za("0x13a")](za("0x2b"),e)}}function Ka(e,t,n){for(const o of t.parent[za("0xdf")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[za("0x95")](o))return!1;if(e[za("0x8")](o)||e.isLimit(o))return!0}return!1}function qa(e){return e[za("0x39")][za("0xe3")]==e[za("0xe6")].nodeAfter&&e.end[za("0xde")]}function Xa(e,t,n,o){const r=e=>!e[za("0x88")].is(za("0xcb"))&&!o.isObject(e[za("0x88")]),s=e[za("0xe6")][za("0x72")](r),i=e.end[za("0x72")](r,{direction:za("0xaf")});return!(e[za("0xe6")].isEqual(s)&&e[za("0x39")][za("0xfd")](i)||(s[za("0x108")](i)?n[za("0x1f")](t,{range:n.createRange(s,i)}):n[za("0x1c")](t),0))}function $a(e){return(0,s.hashObject)(e)}function Qa(e){const t=e.start[za("0x42")];return t&&t.is(za("0xa5"))}function Ja(e,t){const n=t.schema[za("0x8")](e)||t[za("0xe8")][za("0x128")](e);return t.createRange(t.createPositionAt(e,za("0x56")),n?t[za("0x16")](e):t[za("0x47")](e,za("0x39")))}function Za(e,t,n,o,r){if(!Ya(e,t))return!1;if(n.end.isEqual(o[za("0xe6")]))return!0;if(e[za("0xef")]!=t[za("0xef")])return!1;if(!n[za("0x39")][za("0xa6")](o[za("0xe6")]))return!1;const s=r.createRange(n.end,o[za("0xe6")])[za("0x7")]();for(const e of s)if([za("0x80"),za("0xb2")][za("0xa3")](e.type)&&r[za("0xe8")][za("0xb0")](e[za("0x88")]))return!1;return!0}function Ya(e,t){return!(!e._isDataLoaded||!t[za("0x7f")])&&Go(e[za("0xb7")],t[za("0xb7")])}function ec(e,t){const n=tc(e.attributes),o=tc(t);if(!e[za("0x7f")])return!1;for(const e of Object[za("0x12b")](o))if(!Go(n[e],o[e]))return!1;return!0}function tc(e){const t=Object[za("0xd6")]({},e);return delete t[za("0x86")],delete t.tablePasteChainId,t}const nc=["_setPendingAction","add","locale","canDiscard","bind","_acceptCommand","isEnabled","canAccept","listenTo","model","acceptSuggestion","_removePendingAction","commentThreadController","_pendingAction","execute","get","remove","view","commands","_editor","getRanges","destroy","plugins","discardSuggestion","change:isDirty","PendingActions","unbind","_discardCommand","stopListening","canEditAt"];var oc,rc;oc=nc,rc=353,function(e){for(;--e;)oc.push(oc.shift())}(++rc);const sc=function(e,t){return nc[e-=0]};class ic extends((0,t.ObservableMixin)()){constructor(e,t,n,o){super(),this[sc("0x10")]=t,this[sc("0x18")]=n,this.commentThreadController=o,this[sc("0x1a")]=e,this[sc("0xc")]=e[sc("0x19")].get(sc("0x11")),this[sc("0x4")]=e[sc("0x19")][sc("0x16")](sc("0x0")),this[sc("0x18")].bind("isEnabled").to(this[sc("0xc")],this[sc("0x4")],((e,t)=>e||t)),this[sc("0x18")].bind(sc("0xe")).to(this[sc("0xc")],sc("0xd"),(e=>e&&this[sc("0x1a")].model[sc("0x6")](t[sc("0x1b")]()))),this[sc("0x18")][sc("0xb")](sc("0xa")).to(this[sc("0x4")],sc("0xd"),(e=>e&&this[sc("0x1a")][sc("0x10")][sc("0x6")](t[sc("0x1b")]()))),this[sc("0x14")]=null,n.isDirty&&this[sc("0x7")](),this[sc("0xf")](n,"acceptSuggestion",(()=>this[sc("0x11")]())),this[sc("0xf")](n,sc("0x0"),(()=>this[sc("0x0")]())),this[sc("0xf")](n,sc("0x1"),(()=>{n.isDirty?this[sc("0x7")]():this._removePendingAction()}))}[sc("0x11")](){this[sc("0xc")][sc("0x15")](this[sc("0x10")].id)}[sc("0x0")](){this[sc("0x4")][sc("0x15")](this[sc("0x10")].id)}[sc("0x1c")](){this[sc("0x18")][sc("0x3")](sc("0xd")),this[sc("0x18")][sc("0x3")](sc("0xe")),this[sc("0x18")][sc("0x3")](sc("0xa")),this[sc("0x5")](),this[sc("0x13")][sc("0x1c")](),this[sc("0x14")]&&this[sc("0x12")]()}[sc("0x7")](){const e=Yo(this._editor[sc("0x9")],"PENDING_ACTION_SUGGESTION");this[sc("0x14")]=this[sc("0x1a")][sc("0x1d")][sc("0x16")](sc("0x2"))[sc("0x8")](e)}[sc("0x12")](){null!==this[sc("0x14")]&&this[sc("0x1a")][sc("0x1d")][sc("0x16")]("PendingActions")[sc("0x17")](this[sc("0x14")]),this[sc("0x14")]=null}}const xc=["showInput","_createCommentThreadInputView","bind","disabledSubmit","set","destroy","editorConfig","disableComments","submit","value","hasDirtyComment","canAccept","setData","commentsListView","_model","addComment","authoredAt","updateComment","isDirty","isActive","locale","assign","_config","length","commentThreadInputView","commentThread","commentInputView","_localUser","isReadOnly","delegate","focus","_createCommentViews","removeComment"];var ac,cc;ac=xc,cc=165,function(e){for(;--e;)ac.push(ac.shift())}(++cc);const lc=function(e,t){return xc[e-=0]};class dc extends r.View{constructor(e,t,n,o){super(e),this[lc("0xd")]=null,this[lc("0x18")]=null,this[lc("0x4")](lc("0x13"),!1),this[lc("0x4")]("authoredAt",t[lc("0x10")]),this[lc("0x2")]("authoredAt").to(t),this[lc("0x4")]("descriptionParts",[]),this[lc("0x4")]("isDirty",!1),this[lc("0x4")]("isEnabled",!1),this[lc("0x4")](lc("0xb"),!1),this[lc("0x4")]("canDiscard",!1),this[lc("0xe")]=t,this[lc("0x1b")]=n,this[lc("0x16")]=o,o[lc("0x7")]?this.set(lc("0x17"),1):this[lc("0x1f")]()}[lc("0x1e")](){this.element[lc("0x1e")]()}destroy(){this[lc("0xd")]&&this[lc("0xd")][lc("0x5")](),this[lc("0x18")]&&this[lc("0x18")][lc("0x5")](),super[lc("0x5")]()}[lc("0x1f")](){const{CommentsListView:e}=this[lc("0x16")];this[lc("0xd")]=new e(this[lc("0x14")],this._model[lc("0x19")],Object[lc("0x15")]({CommentView:this[lc("0x16")].CommentView},this._config)),this[lc("0xd")].delegate(lc("0x20")).to(this),this[lc("0xd")][lc("0x1d")](lc("0x11")).to(this),this[lc("0xd")][lc("0x2")](lc("0x13")).to(this),this[lc("0x4")]("length",this[lc("0xd")].length+1),this[lc("0x2")](lc("0x17")).to(this[lc("0xd")],lc("0x17"),(e=>e+1)),this[lc("0x18")]=this[lc("0x1")](),this.on("removeComment",(()=>this[lc("0x1e")]())),this.bind(lc("0x12")).to(this[lc("0xd")],lc("0xa"),this[lc("0x18")][lc("0x1a")],lc("0x9"),((e,t)=>e||!!t))}[lc("0x1")](){const{CommentThreadInputView:e}=this._config,t=new e(this[lc("0x14")],this[lc("0x1b")],this[lc("0x16")][lc("0x6")]),n=t[lc("0x1a")];return t[lc("0x2")](lc("0x0")).to(this,"isActive",this[lc("0xe")].commentThread,lc("0x1c"),n,"value",((e,t,n)=>!!n||e&&!t)),n.on(lc("0x8"),((e,t)=>{this.fire(lc("0xf"),t),n.editor[lc("0xc")]("")})),n.on("cancel",(()=>this.focus())),n.bind(lc("0x3")).to(this[lc("0xe")][lc("0x19")],lc("0x1c")),t}}const uc=["ck-suggestion-wrapper","ck-comment__external","value","div","_model","cancel","discardSuggestion","ck-suggestion__info",'"></span>',"ck-suggestion--disabled-comments","<p>",".ck-annotation__content-wrapper","_createButton","delegate","content","isExternal","descriptionParts","author","ck-annotation__actions","description","authoredAt","getTemplate","importWord","isActive","querySelector","getExternalSuggestionNote","render","discardButton","canAccept","editorReady","split","Discard suggestion","ck-annotation__info","getUserViewNotificationText","EXTERNAL_IMPORT_WORD_AVATAR","title","map","innerHTML","ck-suggestion","extendTemplate","set","</p>","EXTERNAL_AVATAR","ck-suggestion-","userView","ck-annotation","@external","formatDateTime","ck-suggestion__user","execute",'<span class="ck-suggestion-type">','<span class="ck-suggestion-color" style="background-color: ',"commentThread","ck-annotation__main","bindTemplate","isEnabled","bind","name","EXTERNAL_IMPORT_WORD_SUGGESTION","_descriptionElement","EXTERNAL_SUGGESTION","canDiscard","creator","ck-annotation__info-time","commentThreadInputView","ck-suggestion--accept","span",'" title="',"disableComments","ck-suggestion-wrapper--active","ck-comment__info-time","color","commentsListView","locale","setTemplate","change:description","acceptButton","_config","children","type","innerText","ck-annotation__content-wrapper","acceptSuggestion","push","source","attributes"];var gc,mc;gc=uc,mc=132,function(e){for(;--e;)gc.push(gc.shift())}(++mc);const fc=function(e,t){return uc[e-=0]};class hc extends dc{constructor(t,n,o,r){super(t,n,o,r),this[fc("0x50")](fc("0x21"),""),this[fc("0xa")](fc("0x21")).to(this,fc("0x38"),(e=>e&&e[0]?e[0][fc("0x21")]:"")),this[fc("0xa")](fc("0x3b")).to(this,fc("0x38"),this,fc("0x3f"),((e,t)=>{let n="";for(const t of e)n+=fc("0x32")+bc(t[fc("0x36")],t[fc("0x19")])+fc("0x51");return t?n:(0,s.trimHtml)(n,{limit:140})})),this[fc("0xd")]=null,this[fc("0x1e")]=this._createButton(Yo(t,"Accept suggestion"),e.icons.check,fc("0x13"),fc("0x24"),"sw"),this[fc("0x1e")].bind(fc("0x9")).to(this,fc("0x44")),this[fc("0x43")]=this[fc("0x34")](Yo(t,fc("0x47")),e.icons[fc("0x2d")],"ck-suggestion--discard",fc("0x2e"),"sw"),this[fc("0x43")][fc("0xa")](fc("0x9")).to(this,fc("0xf")),this[fc("0x54")]=new s.UserView(t,this[fc("0x2c")][fc("0x39")],this[fc("0x49")]()),this[fc("0x54")][fc("0x4f")]({attributes:{class:[fc("0x2"),"ck-annotation__user"]}}),this[fc("0x1c")](this[fc("0x3d")]())}[fc("0x3d")](){const e=this[fc("0x8")],t=[{tag:fc("0x2b"),attributes:{class:[fc("0x2f"),fc("0x48")]},children:[{tag:fc("0x14"),children:[{text:this[fc("0x54")].name}],attributes:{class:["ck-suggestion__info-name","ck-annotation__info-name"]}},{tag:"time",attributes:{datetime:e.to(fc("0x3c")),class:[fc("0x18"),fc("0x11")]},children:[{text:e.to("authoredAt",(e=>this[fc("0x1f")][fc("0x1")](e)))}]}]},{tag:"div",attributes:{class:["ck-suggestion__actions",fc("0x3a")]},children:[this[fc("0x1e")],this.discardButton]},{tag:fc("0x2b"),attributes:{class:[fc("0x23")]}}];this._model[fc("0x37")]&&t.push({tag:fc("0x2b"),attributes:{class:[fc("0x29")]},children:[{text:this[fc("0x41")]()}]});const n={tag:fc("0x2b"),attributes:{class:[fc("0x28"),e.if("isActive",fc("0x17")),e.to(fc("0x21"),(e=>fc("0x53")+e)),this._config[fc("0x16")]&&fc("0x31")],"data-suggestion-id":this[fc("0x2c")].id,"data-thread-id":this[fc("0x2c")][fc("0x6")].id,"data-author-id":this[fc("0x2c")][fc("0x39")].id,tabindex:-1},children:[{tag:fc("0x2b"),attributes:{class:[fc("0x4e"),fc("0x55")]},children:[this.userView,{tag:fc("0x2b"),attributes:{class:["ck-suggestion__main",fc("0x7")]},children:t}]}]};return this.commentsListView&&this[fc("0x12")]&&(n[fc("0x20")][fc("0x25")](this[fc("0x1a")],this[fc("0x12")]),this[fc("0x1a")][fc("0x35")](fc("0x45")).to(this),this[fc("0x1a")][fc("0x35")]("editorDestroyed").to(this),this[fc("0x12")][fc("0x35")]("editorReady").to(this),this[fc("0x12")][fc("0x35")]("editorDestroyed").to(this)),n}[fc("0x42")](){super[fc("0x42")](),this[fc("0xd")]=this.element[fc("0x40")](fc("0x33")),this[fc("0xd")].innerHTML=this[fc("0x3b")],this.on(fc("0x1d"),((e,t,n)=>{this[fc("0xd")][fc("0x4d")]=n}))}[fc("0x34")](e,t,n,o,s){const i=new r.ButtonView(this[fc("0x1b")]);return i.set({label:e,icon:t,tooltip:!0,tooltipPosition:s}),i[fc("0x4f")]({attributes:{class:n}}),i.on(fc("0x3"),(()=>{this.fire(o,this._model.id)})),i}[fc("0x41")](){return fc("0x3e")===this._model[fc("0x27")][fc("0x0")].source?Yo(this[fc("0x1b")],fc("0xc")):Yo(this[fc("0x1b")],fc("0xe"))}getUserViewNotificationText(){return this[fc("0x2c")].isExternal?fc("0x3e")===this[fc("0x2c")][fc("0x27")][fc("0x0")][fc("0x26")]?Yo(this[fc("0x1b")],fc("0x4a"),this._model.creator[fc("0xb")]):Yo(this[fc("0x1b")],fc("0x52"),this._model[fc("0x10")][fc("0xb")]):null}}function bc(e,t){let n="";return n+=e[fc("0x46")]("*")[fc("0x4c")](((e,t)=>t%2!=0?fc("0x4")+pc(e)+"</span>":pc(e))).join(""),t&&(n+=fc("0x5")+t[fc("0x2a")]+fc("0x15")+t[fc("0x4b")]+fc("0x30")),n}function pc(e){const t=document.createElement("span");return t[fc("0x22")]=e,t[fc("0x4d")]}const Ec=["getFirstRange","get","arrowView","comments.maxCommentCharsWhenCollapsed","createAnnotationView","getDescriptions","unbind","switchbutton","EditorAnnotations","locale","change:activeAnnotations","reduce","view","_annotationViews","suggestionLoaded","_updateController","change:previous","CommentsRepository","init","refreshSelectedViews","lowest","innerView","comments.editorConfig","delete","focus","_createUIButton","size","commentThread","type","TrackChangesUI","previous","from","getSuggestion","values","_descriptionFactory","actionView","suggestion-","config","getMarkerNames","button","trackChanges.disableComments","isEnabled","add","SuggestionThreadView","listenTo","_initializeController","keys","trackChanges","acceptAllSuggestions","trackChanges.SuggestionThreadView","discardButton","TrackChangesEditing","getMarkers","commands","filter","some","isOn","isMultiRange","getRanges","Annotations","commandName","push","_viewToController","getByInnerView","CommentView","requires","has","destroy","_handleSuggestionControllerDelayed","value","suggestionChanged","isInContent","_disableComments","_bindAnnotationToEditors","_destroyController","head","define","_suggestionToController","_refreshActiveMarkers","getJoined","clear","editor","CommentsUI","getAllAdjacentSuggestions","addComment","Track changes","buttonView","componentFactory","plugins","acceptButton","Discard all suggestions","model","descriptionParts","_handleControllerBuffer","createAnnotation","addSourceCollector","isDirty","set","length","bind","separator","execute","pluginName","editing","acceptSelectedSuggestions","source","mainView"];var _c,Tc;_c=Ec,Tc=364,function(e){for(;--e;)_c.push(_c.shift())}(++Tc);const Cc=function(e,t){return Ec[e-=0]};class yc extends e.Plugin{static get[Cc("0x16")](){return[Wa,s.Users,Cc("0x51"),Cc("0x10"),Cc("0x48")]}static get[Cc("0x3b")](){return Cc("0x5d")}constructor(e){super(e),this._suggestionToController=new Map,this[Cc("0x13")]=new Map,this[Cc("0x4d")]=new Map,this[Cc("0x32")]=new Map;const t=this.editor[Cc("0x65")];t.define(Cc("0x6"),hc),t[Cc("0x21")](Cc("0x68"),!1),this[Cc("0x1d")]=t[Cc("0x41")]("trackChanges.disableComments")}[Cc("0x19")](e,t){0===this._handleControllerBuffer[Cc("0x5a")]&&setTimeout((()=>{for(const[e,t]of this[Cc("0x32")]){const n=this[Cc("0x22")].has(e);n||t?n&&t&&this[Cc("0x1f")](e):this[Cc("0x2")](e)}this.editor[Cc("0x2d")][Cc("0x41")]("EditorAnnotations")[Cc("0x53")](),this._refreshActiveMarkers(),this._handleControllerBuffer[Cc("0x25")]()}),10),this[Cc("0x32")][Cc("0x36")](e,t)}[Cc("0x52")](){const e=this.editor,t=e[Cc("0x2d")].get(Cc("0x8")),n=e[Cc("0x2d")].get("Annotations"),o=e.plugins[Cc("0x41")](Cc("0x48")),r=e[Cc("0x2d")][Cc("0x41")](Cc("0x51"));e.ui[Cc("0x2c")].add(Cc("0x4"),(e=>this[Cc("0x59")](e))),o[Cc("0x34")]((()=>{const e=[];for(const[t,n]of Array.from(this._suggestionToController)){const o=t[Cc("0x28")](),r=[];for(const e of o){if(!e[Cc("0x1c")])continue;if(e[Cc("0xe")]){r[Cc("0x12")](...e[Cc("0xf")]());continue}const t=e[Cc("0x40")]();if(r.length>0){const e=r[0][Cc("0x24")](t);if(e){r[0]=e;continue}}r[Cc("0x12")](t)}e[Cc("0x12")]([n[Cc("0x4c")],r])}return e})),this[Cc("0x1")](t,Cc("0x4e"),((e,t)=>{this[Cc("0x1")](t,Cc("0x50"),((e,n,o,r)=>{t.isInContent&&(null==o?(this[Cc("0x4f")](r.head),this._handleSuggestionControllerDelayed(t,!1)):(this[Cc("0x4f")](o[Cc("0x20")]),this[Cc("0x19")](t,!0)))})),null===t[Cc("0x5e")]?this._handleSuggestionControllerDelayed(t,!1):this[Cc("0x4f")](t[Cc("0x20")])})),this[Cc("0x1")](t,"suggestionUnloaded",((e,t,n)=>{this.stopListening(t,Cc("0x50")),this[Cc("0x32")][Cc("0x57")](t);const o=n?n[Cc("0x20")]:t,r=this[Cc("0x22")].get(o);null!==n&&this[Cc("0x4f")](o),null===n&&r&&this._destroyController(t)})),this[Cc("0x1")](t,Cc("0x1b"),((e,t)=>{this[Cc("0x4f")](t)})),this.listenTo(n,Cc("0x4a"),(()=>{this[Cc("0x23")]()})),this[Cc("0x1")](r,Cc("0x29"),((e,{threadId:n,isFromAdapter:o})=>{if(o||!t.hasSuggestion(n))return;const r=t[Cc("0x60")](n);this[Cc("0x22")][Cc("0x41")](r).view[Cc("0x58")]()}),{priority:Cc("0x54")})}_refreshActiveMarkers(){const e=this[Cc("0x26")].plugins[Cc("0x41")](Cc("0x10")),t=this.editor[Cc("0x2d")][Cc("0x41")](Cc("0x8")),n=Array[Cc("0x5f")](e.activeAnnotations,(e=>e[Cc("0x55")]))[Cc("0xb")]((e=>this._viewToController[Cc("0x17")](e))),o=[];for(const e of n){const t=this._viewToController.get(e)[Cc("0x30")][Cc("0x28")]();o[Cc("0x12")](...t[Cc("0x4b")](((e,t)=>[...e,...t[Cc("0x66")]()]),[]))}t.activeMarkers=o}[Cc("0x59")](e){const n=(0,r.createDropdown)(e,r.SplitButtonView),o=this.editor[Cc("0xa")][Cc("0x41")]("trackChanges"),s=Yo(e,Cc("0x2a"));n[Cc("0x2b")].set({tooltip:s,label:s,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Cc("0x2b")][Cc("0x38")](Cc("0xd")).to(o,Cc("0x1a")),n[Cc("0x2b")].on(Cc("0x3a"),(()=>{o[Cc("0x3a")](),this[Cc("0x26")][Cc("0x3c")][Cc("0x4c")].focus()}));const i=new t.Collection,x=[{type:Cc("0x47"),model:{withText:!0,label:s,commandName:"trackChanges"}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(e,"Accept all suggestions"),commandName:Cc("0x5")}},{type:Cc("0x67"),model:{withText:!0,label:Yo(e,"Accept all selected suggestions"),commandName:Cc("0x3d")}},{type:"button",model:{withText:!0,label:Yo(e,Cc("0x2f")),commandName:"discardAllSuggestions"}},{type:Cc("0x67"),model:{withText:!0,label:Yo(e,"Discard all selected suggestions"),commandName:"discardSelectedSuggestions"}}];for(const e of x){let t={type:Cc("0x39")};if(e.model){const n=new r.Model(e.model),o=this.editor[Cc("0xa")].get(n[Cc("0x11")]);n[Cc("0x38")](Cc("0xd"),Cc("0x69")).to(o,Cc("0x1a"),"isEnabled"),t={type:e[Cc("0x5c")],model:n}}i[Cc("0x6a")](t)}(0,r.addListToDropdown)(n,i);const a=x[Cc("0xb")]((e=>null!=e[Cc("0x30")])).map((e=>this[Cc("0x26")][Cc("0xa")].get(e[Cc("0x30")][Cc("0x11")]))),c=n[Cc("0x2b")];return c[Cc("0x63")][Cc("0x46")](Cc("0x69")),c[Cc("0x42")][Cc("0x46")](Cc("0x69")),c[Cc("0x63")].bind(Cc("0x69")).to(o,Cc("0x69")),c[Cc("0x42")][Cc("0x38")](Cc("0x69")).toMany(a,Cc("0x69"),((...e)=>e[Cc("0xc")]((e=>e)))),n.on(Cc("0x3a"),(e=>{this[Cc("0x26")][Cc("0x3a")](e[Cc("0x3e")][Cc("0x11")]),this[Cc("0x26")][Cc("0x3c")][Cc("0x4c")][Cc("0x58")]()})),n}[Cc("0x2")](e){const t=this.editor,n=t.config,o=t[Cc("0x2d")][Cc("0x41")](Cc("0x10")),r=t[Cc("0x2d")][Cc("0x41")](Cc("0x51")),i=t[Cc("0x2d")].get(Cc("0x48")),x=t.plugins[Cc("0x41")](s.Users).me,a=n[Cc("0x41")]("trackChanges")[Cc("0x0")],{CommentsListView:c,CommentThreadInputView:l}=t.plugins.get(Cc("0x27"));let d,u;this[Cc("0x4d")][Cc("0x17")](e.id)?(u=this[Cc("0x4d")].get(e.id),d=u[Cc("0x3f")]):(d=new a(t[Cc("0x49")],e,x,{disableComments:this._disableComments,editorConfig:n[Cc("0x41")](Cc("0x56")),maxCommentsWhenCollapsed:n[Cc("0x41")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n.get("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Cc("0x41")](Cc("0x43")),formatDateTime:(0,s.getDateTimeFormatter)(n[Cc("0x41")](Cc("0x49"))),CommentView:n[Cc("0x41")]("comments")[Cc("0x15")],CommentsListView:c,CommentThreadInputView:l}),d[Cc("0x2e")].on(Cc("0x3a"),(()=>{t[Cc("0x3c")][Cc("0x4c")][Cc("0x58")]()})),d[Cc("0x7")].on(Cc("0x3a"),(()=>{t.editing[Cc("0x4c")][Cc("0x58")]()})),u=o[Cc("0x44")](this.editor[Cc("0x49")],d),u[Cc("0x38")](Cc("0x35")).to(d,Cc("0x35")),u[Cc("0x38")](Cc("0x37")).to(d),u[Cc("0x38")](Cc("0x5c")).to(d,Cc("0x5c"),(e=>Cc("0x64")+e)),this[Cc("0x4d")][Cc("0x36")](e.id,u));const g=r.createCommentThreadController(e[Cc("0x5b")],d),m=new ic(t,e,d,g),f=e[Cc("0x28")]().filter((e=>e.isInContent));d.descriptionParts=t[Cc("0x2d")][Cc("0x41")](Cc("0x8"))._descriptionFactory[Cc("0x45")](f),this[Cc("0x22")][Cc("0x36")](e,m),this[Cc("0x13")].set(d,m);const h=o[Cc("0x33")]({view:u,target:()=>{const n=[],o=e[Cc("0x28")]()[Cc("0xb")]((e=>e.isInContent));for(const e of o)n[Cc("0x12")](...e[Cc("0x9")]());return(0,s.getAllMarkersDomElementsSorted)(t[Cc("0x3c")],n)},type:()=>Cc("0x64")+m.view[Cc("0x5c")]});r[Cc("0x1e")](d,h),o[Cc("0x6a")](h),i.registerAnnotation(h)}[Cc("0x1f")](e){const t=this[Cc("0x26")].plugins[Cc("0x41")]("Annotations"),n=this._suggestionToController[Cc("0x41")](e),o=n[Cc("0x4c")],r=t[Cc("0x14")](o);r&&t.remove(r),this._suggestionToController[Cc("0x57")](e),this[Cc("0x13")][Cc("0x57")](o),n[Cc("0x18")]()}[Cc("0x4f")](e){if(!e[Cc("0x1c")]||!this._suggestionToController.has(e))return;const t=this[Cc("0x26")].plugins.get("TrackChangesEditing"),n=this._suggestionToController[Cc("0x41")](e),o=e[Cc("0x28")]();n.view[Cc("0x31")]=t[Cc("0x62")].getDescriptions(o)}[Cc("0x18")](){for(const e of this[Cc("0x22")][Cc("0x3")]())this[Cc("0x1f")](e);for(const e of this[Cc("0x4d")][Cc("0x61")]())e[Cc("0x3f")][Cc("0x18")]();super[Cc("0x18")]()}}var kc,Ac,vc=["getSuggestions","getSuggestion","editor","Comments","addSuggestionData","adapter","addSuggestion","pluginName","plugins","get"];kc=vc,Ac=213,function(e){for(;--e;)kc.push(kc.shift())}(++Ac);var Rc=function(e,t){return vc[e-=0]};class Ic extends e.Plugin{static get requires(){return[Wa,yc,Rc("0x0")]}static get[Rc("0x4")](){return"TrackChanges"}set[Rc("0x2")](e){this[Rc("0x9")][Rc("0x5")][Rc("0x6")](Wa)[Rc("0x2")]=e}get[Rc("0x2")](){return this[Rc("0x9")][Rc("0x5")][Rc("0x6")](Wa)[Rc("0x2")]}[Rc("0x3")](e){return this[Rc("0x9")].plugins[Rc("0x6")](Wa)[Rc("0x1")](e)}getSuggestions({skipNotAttached:e=!1,toJSON:t=!1}={}){return this.editor[Rc("0x5")][Rc("0x6")](Wa)[Rc("0x7")]({skipNotAttached:e,toJSON:t})}[Rc("0x8")](e){return this[Rc("0x9")][Rc("0x5")][Rc("0x6")](Wa)[Rc("0x8")](e)}}const Sc=["getFullData","track-changes-data-invalid-editor-creator","useAnonymousUser","trackChangesData","map","end","init","Users","editorCreator","define","addUser","model","Pagination","requires","getDataWithAcceptedSuggestions","reduce","_adapter","addSuggestionData","destroy","TrackChangesDataGetter","getRootsAttributes","CommentsRepository","plugins","create","div","document","createElement","result","config","function","rootsAttributes","get","getSuggestions","TrackChangesData","TrackChangesEditing","pluginName","appendChild","getRootNames","trackChangesData.editorCreator","editor","data","set"];var Lc,Nc;Lc=Sc,Nc=419,function(e){for(;--e;)Lc.push(Lc.shift())}(++Nc);const Mc=function(e,t){return Sc[e-=0]},wc=[Mc("0xd")];class Oc extends e.Plugin{static get[Mc("0xe")](){return[Wa]}static get[Mc("0x24")](){return Mc("0x22")}[Mc("0x7")](){const e=this.editor;if(e[Mc("0x1d")][Mc("0xa")](Mc("0x27"),(t=>{const n=e.model[Mc("0x1a")][Mc("0x26")]()[Mc("0x10")](((e,t)=>(e[t]="",e)),{});return e.constructor[Mc("0x18")](n,t)})),Mc("0x1e")!=typeof e.config[Mc("0x20")](Mc("0x4"))[Mc("0x9")])throw new t.CKEditorError(Mc("0x2"))}[Mc("0xf")](e){return Dc(this.editor,!0,e)}getDataWithDiscardedSuggestions(e){return Dc(this[Mc("0x28")],!1,e)}}class Fc extends e.Plugin{static get[Mc("0x24")](){return Mc("0x14")}constructor(e){super(e),this[Mc("0x1c")]=Mc("0x6")}init(){this[Mc("0x28")][Mc("0x17")][Mc("0x20")](Mc("0x16"))[Mc("0x11")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Mc("0x28")].plugins[Mc("0x20")](Mc("0x23"))[Mc("0x11")]=null}}function Pc(e){return void 0!==e[Mc("0x15")]}async function Dc(e,t,n){const o=(0,s.sanitizeEditorConfig)(e,wc);o[Mc("0x17")].push(Wa,Fc),o[Mc("0x1f")]=Pc(e)?e.getRootsAttributes():void 0;const r=document.createDocumentFragment(),i=e[Mc("0x1d")][Mc("0x20")](Mc("0x4"))[Mc("0x9")],x=await i(o,(()=>function(e){const t=document[Mc("0x1b")](Mc("0x19"));return e[Mc("0x25")](t),t}(r)));!function(e,t){const n=e[Mc("0xc")][Mc("0x1a")].getRootNames().reduce(((t,n)=>(t[n]=e.data[Mc("0x20")]({rootName:n}),t)),{}),o=e.plugins.get(Mc("0x8")).users[Mc("0x5")]((e=>({id:e.id,name:e.name}))),r=e[Mc("0x17")][Mc("0x20")]("TrackChangesEditing")[Mc("0x21")]({skipNotAttached:!0,toJSON:!0}),s=t[Mc("0x17")][Mc("0x20")](Mc("0x8")),i=t.plugins[Mc("0x20")](Mc("0x23"));for(const e of o)s.getUser(e.id)||s[Mc("0xb")](e);s.me||s[Mc("0x3")]();for(const e of r)i[Mc("0x12")](e);t.data[Mc("0x0")](n)}(e,x),x.execute(t?"acceptAllSuggestions":"discardAllSuggestions");const a=Pc(x)?x[Mc("0x1")](n):x[Mc("0x29")].get(n);return await x[Mc("0x13")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>uc,TrackChanges:()=>Sc,TrackChangesData:()=>Oc,TrackChangesEditing:()=>za});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["affectsData","_enabledCommands","isEnabled","TrackChangesCommand","editor","value","refresh","_disableUnsupportedCommands","commands","clearForceDisabled","_isEnabledBasedOnSelection","_enableCommands","has","forceDisabled"];var c,l;c=a,l=120,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x7")]=e,this[u("0xb")]=!1,this[u("0xc")](),this[u("0x2")]=!1}refresh(){this[u("0x8")]=!0}execute(){this.value=!this[u("0xb")],this[u("0xb")]?this[u("0xd")]():this._enableCommands()}[u("0xd")](){for(const t of this[u("0xa")][u("0x0")][u("0x0")]())t[u("0x6")]&&!this._enabledCommands[u("0x4")](t)&&t[u("0x5")](u("0x9"))}[u("0x3")](){for(const t of this[u("0xa")].commands[u("0x0")]())t.affectsData&&!this[u("0x7")][u("0x4")](t)&&t[u("0x1")]("TrackChangesCommand")}}const g=["get","acceptSuggestion","_suggestions","track-changes-accept-suggestion-not-found","plugins","isEnabled","editor","canEditAt","refresh","getRanges","execute","TrackChangesEditing"];var m,f;m=g,f=378,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[h("0x8")]=e,this[h("0x2")](),this._isEnabledBasedOnSelection=!1}[h("0x2")](){this[h("0xb")]=!0}[h("0x4")](t){const n=this._suggestions[h("0x6")](t);if(!n)throw new e.CKEditorError(h("0x9"),this);const o=n[h("0x3")]();this[h("0x0")].model[h("0x1")](o)&&this.editor[h("0xa")][h("0x6")](h("0x5"))[h("0x7")](n)}}const p=["get","editor","plugins","discardSuggestion","execute","track-changes-discard-suggestion-not-found","_isEnabledBasedOnSelection","canEditAt","TrackChangesEditing","getRanges","refresh","model","_suggestions"];var E,_;E=p,_=293,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return p[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x5")]=e,this[T("0x3")](),this[T("0xc")]=!1}[T("0x3")](){this.isEnabled=!0}[T("0xa")](t){const n=this[T("0x5")][T("0x6")](t);if(!n)throw new e.CKEditorError(T("0xb"),this);const o=n[T("0x2")]();this.editor[T("0x4")][T("0x0")](o)&&this[T("0x7")][T("0x8")][T("0x6")](T("0x1"))[T("0x9")](n)}}const y=["isCollapsed","createPositionAt","isTouching","join","add","replace","end","length","push","isMultiRange","createPositionAfter","createPositionBefore","from","content","isInContent"," [color ","deletion","color","map","change","isIntersecting","type","execute","schema","splice","next","getRanges","isObject","sort","isArray","value"];var k,A;k=y,A=140,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0xc")](((t,e)=>v("0x0")==t[v("0x5")]&&v("0x0")!=e[v("0x5")]?-1:v("0x0")!=t[v("0x5")]&&v("0x0")==e[v("0x5")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x7")];for(;o<t[v("0x16")];){const i=t[o],x=t[o+1];n||(n=e[v("0x1a")](i)),I(e,i,x)||(s[v("0x17")](e.createRange(n,r[v("0xb")](i)?e[v("0x19")](i):e[v("0x10")](i,v("0x15")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x19")](e),s=t[v("0x1a")](n);return o.isTouching(s)}function L(t,e,n){for(;n[v("0x16")];){const o=n[v("0x8")](0,100);t[v("0x3")]((()=>{for(const t of o)t[v("0x1d")]&&e[v("0x6")](t.id)}))}}const N=["canEditAt","_isEnabledBasedOnSelection","_suggestions","editor","from","model","execute","isInContent","getRanges","refresh","isEnabled","values"];var M,w;M=N,w=412,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0xa")]=n,this[O("0x5")](),this[O("0x9")]=!1}refresh(){const t=Array.from(this[O("0xa")][O("0x7")]()).some((t=>t[O("0x3")]));this[O("0x6")]=this._command[O("0x6")]&&t}[O("0x2")](){const t=R(Array[O("0x0")](this[O("0xa")][O("0x7")]()));for(const e of t){const t=e[O("0x4")]();if(!this.editor[O("0x1")][O("0x8")](t))return}L(this[O("0xb")].model,this._command,t)}}const D=["editor","from","document","_command","selection","_selectedSuggestions","execute","model","isEnabled","canEditAt","refresh","values","_isEnabledBasedOnSelection","size","_suggestions"];var P,B;P=D,B=498,function(t){for(;--t;)P.push(P.shift())}(++B);const j=function(t,e){return D[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x0")]=e,this[j("0xb")]=n,this[j("0x2")]=new Set,this.refresh(),this[j("0x9")]=!1}[j("0x7")](){const t=this[j("0xc")][j("0x4")][j("0xe")][j("0x1")],e=Array[j("0xd")](this[j("0xb")][j("0x8")]());this[j("0x2")]=function(t,e){const n=Array[v("0x1b")](t[v("0xa")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s.getRanges())(e[v("0x4")](n)||t[v("0xf")]&&!s[v("0x18")]&&s[v("0x9")]&&n[v("0x15")][v("0x11")](e.start))&&o[v("0x13")](s);return o}(t,e),this[j("0x5")]=this[j("0x0")][j("0x5")]&&!!this[j("0x2")][j("0xa")]}[j("0x3")](){const t=R(Array.from(this[j("0x2")]));for(const e of t){const t=e.getRanges();if(!this[j("0xc")].model[j("0x6")](t))return}L(this[j("0xc")][j("0x4")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const V=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const q=function(t){return W(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=W(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Q=$;const J=function(){this.__data__=new Q,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var bt,pt=(bt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"";const Et=function(t){return!!pt&&pt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Pt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Dt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||Q),string:new Gt}};const Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Qt=$t;const Jt=function(t,e){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new Q(t);this.size=e.size}Zt.prototype.clear=J,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Jt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,be=he&&he.exports===fe?ot.Buffer:void 0;const pe=(be?be.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&pe(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Pe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var We=Object.prototype.hasOwnProperty;const ze=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Qe=$e?$e.allocUnsafe:void 0;const Je=function(t,e){if(e)return t.slice();var n=t.length,o=Qe?Qe(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=bn||mn&&Rn(mn.resolve())!=pn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return bn;case kn:return pn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=st?st.prototype:void 0,Pn=Dn?Dn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Qn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Yn={};Yn[Qn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Jn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=Sn(e),g=d==Jn||"[object GeneratorFunction]"==d;if(pe(e))return Je(e,a);if(d==Zn||d==Qn||g&&!r){if(x=c||g?{}:Wn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Qt),n}io.Cache=Qt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const bo=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const po=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=bo(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=po(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Qt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var b=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===b?f===h||s(f,h,n,o,r):b)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var p=t.constructor,E=e.constructor;p==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof p&&p instanceof p&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Po="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Do:Sn(t),c=x?Do:Sn(e),l=(a=a==Fo?Po:a)==Po,u=(c=c==Fo?Po:c)==Po,d=a==c;if(d&&pe(t)){if(!pe(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Wo=function(t,e){for(var n=0,o=(e=bo(e,t)).length;null!=t&&n<o;)t=t[po(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:Wo(t,zo(e,0,-1))};const Ko=function(t,e){return e=bo(e,t),null==(t=Vo(t,e))||delete t[po(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["_saved","suggestion:","_markerNames","@external","subType","getFirstMarker","head","_onDiscard","addRange","attributes","previous","removeMarker","substr","size","removeAttribute","_isDataLoaded","getMultiRangeId","accept","type","toJSON","removeMarkers","getRange","decorate","getMarkers","length","addMarkerName","commentThread","getMarkerNames","split","start","isIntersectingWithRange","change","_model","getItems","createdAt","getRanges","from","nodeAfter","hasComments","data","author","next","addMarker","authoredAt","_onAttributesChange","_onAccept","getContainedElement","set","discard","creator","getFirstRange","setAttribute","end","push","markers","nodeBefore","isIntersecting","getAllAdjacentSuggestions","delete","onAttributesChange"];var $o,Qo;$o=Xo,Qo=409,function(t){for(;--t;)$o.push($o.shift())}(++Qo);const Jo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Jo("0x1a")]=!1,this.id=e.id,this[Jo("0x1d")]=e[Jo("0x1d")],this[Jo("0xf")]=e[Jo("0xf")]||null,this[Jo("0x33")]=e[Jo("0x33")],this[Jo("0x0")]=e[Jo("0x0")]||e[Jo("0x33")],this.isExternal=Boolean(e.attributes&&e[Jo("0x14")][Jo("0xe")]),this[Jo("0x32")]=null,this._model=t,this[Jo("0x38")]=e.onAccept,this[Jo("0x12")]=e.onDiscard,this[Jo("0x37")]=e[Jo("0xa")],this[Jo("0xd")]=new Set,this[Jo("0x2d")]=null,this[Jo("0x3a")](Jo("0x36"),null),this.set(Jo("0x14"),e.attributes||{}),this.set("previous",null),this[Jo("0x3a")]("next",null),this.set("commentThread",null),this[Jo("0x3a")](Jo("0xb"),!1),this[Jo("0x21")](Jo("0x1c")),this[Jo("0x21")](Jo("0x3b"))}get[Jo("0x11")](){let t=this;for(;t[Jo("0x15")];)t=t.previous;return t}get[Jo("0x31")](){return!!this.commentThread&&this[Jo("0x25")][Jo("0x23")]>0}get isMultiRange(){return 0!=this[Jo("0xd")][Jo("0x18")]&&6==Array[Jo("0x2f")](this[Jo("0xd")])[0][Jo("0x27")](":")[Jo("0x23")]}get isInContent(){return null!==this.getFirstMarker()}addMarkerName(t){this[Jo("0xd")].add(t)}[Jo("0x26")](){return Array.from(this._markerNames)}[Jo("0x22")](){return this[Jo("0x26")]().map((t=>this._model[Jo("0x5")].get(t))).filter((t=>t))}[Jo("0x10")](){return this[Jo("0x22")]()[0]||null}removeMarkers(){this[Jo("0x2b")][Jo("0x2a")]((t=>{for(const e of this[Jo("0x22")]())t[Jo("0x16")](e)})),this._markerNames.clear()}[Jo("0x16")](t){this[Jo("0x2b")][Jo("0x2a")]((e=>{e[Jo("0x16")](t)})),this[Jo("0xd")][Jo("0x9")](t)}[Jo("0x13")](t){const e=Jo("0xc")+this[Jo("0x1d")]+":"+this[Jo("0xf")]+":"+this.id+":"+this.creator.id+":"+Zo[Jo("0x1b")]();this[Jo("0x24")](e),this._model[Jo("0x2a")]((n=>{n[Jo("0x35")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Jo("0x29")](t){for(const e of this[Jo("0x2e")]())if(e[Jo("0x7")](t))return!0;return!1}[Jo("0x2e")](){return this[Jo("0x22")]().map((t=>t[Jo("0x20")]()))}getItems(){return this.getRanges().reduce(((t,e)=>[...t,...e[Jo("0x2c")]()]),[])}[Jo("0x1")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t.getRange())||null}[Jo("0x39")](){const t=this[Jo("0x2e")]();if(1!=t.length)return null;const e=t[0],n=e[Jo("0x28")][Jo("0x30")],o=e[Jo("0x3")][Jo("0x6")];return n instanceof i.Element?n!=o?null:n:null}[Jo("0x1c")](){this._onAccept(this[Jo("0x2e")](),this[Jo("0x32")],this[Jo("0x14")]),this[Jo("0x1f")]()}[Jo("0x3b")](){this._onDiscard(this.getRanges(),this[Jo("0x32")],this.attributes),this[Jo("0x1f")]()}[Jo("0x8")](){const t=[];let e=this[Jo("0x11")];for(;e;)t[Jo("0x4")](e),e=e[Jo("0x34")];return t}[Jo("0x2")](t,e){const n=eo(this[Jo("0x14")]);_o(n,t,e),Go(n,this.attributes)||(this[Jo("0x14")]=n,this[Jo("0x37")](n))}[Jo("0x19")](t){const e=eo(this[Jo("0x14")]);qo(e,t),Go(e,this[Jo("0x14")])||(this[Jo("0x14")]=e,this[Jo("0x37")](this[Jo("0x14")]))}[Jo("0x1e")](){return{id:this.id,type:this.subType?this[Jo("0x1d")]+":"+this[Jo("0xf")]:this[Jo("0x1d")],authorId:this[Jo("0x0")].id,createdAt:this[Jo("0x2d")],hasComments:this.hasComments,data:this[Jo("0x32")],attributes:this[Jo("0x14")]}}static[Jo("0x1b")](){return(0,e.uid)()[Jo("0x17")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["_schema","add","getWalker","softBreak","deletion","quantity","isEmpty","item","pop","REPLACE_TEXT","registerDescriptionCallback","type","function","push","get","_customCallbacks","matchingCallback","removeContainer","_resolveDescriptionItems","getItemLabel","insertion","_itemLabels","name","end","nextSibling","checkChild","addContainer","start","removeObject","element","replace","ELEMENT_SPACE","*Remove:* %0","elementEnd","*Split:* %0","indexOf","addEmptyContainer","*Merge:* %0","isInContent","previousSibling","data","*Insert:* %0","text","isObject","EmptyContainer","$text","elementStart","match","Object","addObject","Container","label","getFirstRange","$1 $2","getDescriptions","_itemLabelsCallbacks","_locale","length","remove","removeEmptyContainer","normal"];var es,ns;es=ts,ns=309,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this._customCallbacks=[],this[os("0x11")]=new Map,this[os("0x33")]=[],this[os("0x39")]=t,this[os("0x34")]=e}[os("0x32")](t){const e=[];for(let n=0;n<t[os("0x35")];n++){const o=t[n];if(!o[os("0x22")])continue;let s=!1;for(const t of this[os("0xb")]){const n=t(o);if(n){os("0x7")in n&&e.push(n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x30")]()[os("0x13")].isEqual(s.getFirstRange()[os("0x17")])){const t=e[e[os("0x35")]-1],n=os("0x10")==o[os("0x7")]?os("0x3a"):os("0x36");t&&os("0x26")==t.type&&(t[n]+="\n")}}}return this[os("0xe")](e)}[os("0x6")](t){this[os("0xb")][os("0x9")](t)}registerElementLabel(t,n,o=e.priorities[os("0x38")]){os("0x8")==typeof t?(0,e.insertToPriorityArray)(this[os("0x33")],{matchingCallback:t,label:n,priority:o}):this[os("0x11")].set(t,n)}[os("0xf")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0xc")](t)){n=e[os("0x2f")];break}return n||(n=this._itemLabels[os("0xa")](t[os("0x12")])),n?n(e):1!==e?e+" "+t.name+"s":""+t.name}_addDescriptionItems(t,e){const n=e[os("0x30")]()[os("0x3b")](),o=os("0x10")==e.type?"add":os("0x36");for(const e of n){const s=e.item,r=t[t[os("0x35")]-1];if(s.is("$textProxy"))r&&r[os("0x7")][os("0x1f")]("Container")>-1&&t[os("0x4")](),r&&os("0x26")==r.type?r[o]+=s.data:t[os("0x9")]({type:os("0x26"),add:os("0x3a")==o?s.data:"",remove:"remove"==o?s[os("0x24")]:""});else if(this[os("0x39")][os("0x27")](s)){const i=s;if(r&&r[os("0x7")][os("0x1f")]("Container")>-1&&t.pop(),os("0x1d")==e.type)continue;r&&r[os("0x7")]==o+os("0x2c")&&r.element[os("0x12")]==i[os("0x12")]?r.quantity++:t[os("0x9")]({type:o+os("0x2c"),element:i,quantity:1}),n.skip((t=>!("elementEnd"==t[os("0x7")]&&t[os("0x3")]==s)))}else if(this[os("0x39")][os("0x15")](s,os("0x29"))||s.is(os("0x19"),os("0x3c"))){const n=s;if("add"==o&&os("0x2a")==e[os("0x7")]||"remove"==o&&os("0x1d")==e.type)continue;if(r&&-1==r[os("0x7")][os("0x1f")](os("0x2e"))){"text"==r[os("0x7")]&&(r[o]+="\n");continue}let i;if(i=os("0x3a")==o?n[os("0x14")]&&!this[os("0x39")][os("0x27")](n[os("0x14")])?n[os("0x14")]:null:n.previousSibling&&!this._schema[os("0x27")](n.previousSibling)?n[os("0x23")]:null,n.isEmpty||i&&i[os("0x2")]){const e=i&&i[os("0x2")]?i:n;r&&r[os("0x7")]==o+os("0x28")&&r[os("0x19")].name==e[os("0x12")]?r[os("0x1")]++:t[os("0x9")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x9")]({type:o+"Container",element:n})}}}[os("0xe")](t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x7")]){case os("0x26"):if(o[os("0x3a")]=o.add[os("0x1a")](/(\S)\u000A+(\S)/g,os("0x31"))[os("0x1a")](/\u000A/g,""),o.remove=o[os("0x36")][os("0x1a")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x1a")](/\u000A/g,""),""!=o[os("0x3a")]&&""!=o.remove){n.push({type:os("0x1a"),content:Yo(e,os("0x5"),['"'+o.remove+'"','"'+o[os("0x3a")]+'"'])});continue}if(null!=o[os("0x3a")][os("0x2b")](/^ +$/)){n[os("0x9")]({type:os("0x10"),content:Yo(e,os("0x25"),Yo(e,os("0x1b"),o.add.length))});continue}if(null!=o[os("0x36")][os("0x2b")](/^ +$/)){n[os("0x9")]({type:"deletion",content:Yo(e,os("0x1c"),Yo(e,os("0x1b"),o[os("0x36")][os("0x35")]))});continue}if(""!=o[os("0x3a")]){n[os("0x9")]({type:os("0x10"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x3a")]+'"')});continue}n[os("0x9")]({type:os("0x0"),content:Yo(e,os("0x1c"),'"'+o[os("0x36")]+'"')});continue;case os("0x20"):case os("0x2d"):n.push({type:os("0x10"),content:Yo(e,os("0x25"),this[os("0xf")](o.element,o[os("0x1")]))});continue;case os("0x37"):case os("0x18"):n[os("0x9")]({type:"deletion",content:Yo(e,os("0x1c"),this.getItemLabel(o[os("0x19")],o[os("0x1")]))});continue;case os("0x16"):n.push({type:"insertion",content:Yo(e,os("0x1e"),this[os("0xf")](o[os("0x19")],o[os("0x1")]))});continue;case os("0xd"):n[os("0x9")]({type:"deletion",content:Yo(e,os("0x21"),this[os("0xf")](o[os("0x19")],o[os("0x1")]))});continue}n.push(o)}return n}}const rs=["*Format:* %0","value","AlignmentEditing","justify","from","afterInit","right","getSelectedBlocks","locale","alignment","TrackChangesEditing","editor","enableCommand","schema","change","contentLanguageDirection","left","format","plugins","markBlockFormat","get","getAttribute","model","FORMAT_ALIGN_TO_LEFT"];var is,xs;is=rs,xs=373,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x10")](){const t=this[as("0x16")],e=t[as("0x13")];if(!t[as("0x5")].has(as("0xd")))return;const n=t[as("0x5")][as("0x7")](as("0x15"));n[as("0x17")](as("0x14"),((e,o={})=>{let s=o[as("0xc")];o[as("0xc")]||(s="ltr"===t[as("0x13")][as("0x2")]?"left":as("0x11"));const r=Array[as("0xf")](this[as("0x16")][as("0x9")].document.selection[as("0x12")]()).filter((t=>function(t,e,n){const o=t[as("0x8")](as("0x14"))||null;return e.checkAttribute(t,as("0x14"))&&n!=o}(t,this[as("0x16")].model[as("0x0")],s)));t[as("0x9")][as("0x1")]((()=>{for(const t of r)n[as("0x6")](t,{commandName:as("0x14"),commandParams:[{value:s}]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0x14")==n.commandName){const t=n.commandParams[0][as("0xc")];return{type:as("0x4"),content:Yo(e,as("0xb"),function(t){switch(t){case as("0x3"):return Yo(e,as("0xa"));case as("0x11"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case"center":return Yo(e,"FORMAT_ALIGN_TO_CENTER");case as("0xe"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["createRangeOn","hasAttribute","mapper","getCustomProperty","markerName","isAtEnd","item","span","name","writer","getItems","insert","toViewElement","start","ck-suggestion-marker-","includes","push","isBlock","consumable","element","previousPosition","listIndent","addHighlight","markerRange","toViewPosition","nextSibling","createUIElement","ck-suggestion-marker--active","bindElementToMarker","isContent","listItem","test","model","type","parent","elementEnd"];var us,ds;us=ls,ds=374,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x20")]())s[gs("0x17")](t)&&o[gs("0x2")](n[gs("0x16")](s));return o}function fs(t){const e=[];if(t.is("element",gs("0x10"))){let n=t[gs("0xb")];for(;n&&n.is(gs("0x5"),gs("0x10"))&&n.getAttribute(gs("0x7"))>0;)e.push(n),n=n[gs("0xb")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins.get("TrackChangesEditing");return(s,r,i)=>{if(!i[gs("0x4")][gs("0x11")](r.markerRange,s[gs("0x1e")]))return;const x=r[gs("0x9")].getWalker(),a=r[gs("0x9")][gs("0x23")],c=t[gs("0x12")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gs("0x1c")];d=d||c[gs("0xf")](e);const n=i[gs("0x18")][gs("0x22")](e);if(n&&n[gs("0x19")](gs("0x8")))return;gs("0x15")==t[gs("0x13")]&&c[gs("0x3")](e)&&!c.isLimit(e)&&(e.nextSibling||a[gs("0x1b")]?l&&l[gs("0x14")]==e||(l=e,m(t[gs("0x6")]),g=!0):u=u||t.previousPosition)}function m(t){const s=i[gs("0x1f")][gs("0xc")](gs("0x1d"),{class:gs("0x0")+e}),x=i.mapper[gs("0xa")](t);n&&o.activeMarkers[gs("0x1")](r[gs("0x1a")])&&i.writer.addClass(gs("0xd"),s),i[gs("0x1f")][gs("0x21")](x,s),i.mapper[gs("0xe")](s,r.markerName)}d||g||!u||m(u)}}const bs=["FORMAT_UNDERLINE","*Format:* %0","superscript","slice","bold","format","toLowerCase","commands","_descriptionFactory","*Remove format:* %0","locale","value","underline","get","CodeEditing","document","BoldEditing","forceValue","has","getRanges","isCollapsed","commandName","FORMAT_SUPERSCRIPT","afterInit","plugins","enableCommand","strikethrough","FORMAT_SUBSCRIPT","from","code","FORMAT_CODE","subscript","UnderlineEditing","markInlineFormat","FORMAT_STRIKETHROUGH","FORMAT_BOLD"];var ps,Es;ps=bs,Es=492,function(t){for(;--t;)ps.push(ps.shift())}(++Es);const _s=function(t,e){return bs[t-=0]},Ts=[_s("0x1c"),"ItalicEditing",_s("0x8"),_s("0x1a"),"StrikethroughEditing","SubscriptEditing","SuperscriptEditing"];class Cs extends t.Plugin{[_s("0x23")](){const t=this.editor,e=t.model,n=t[_s("0x0")].get("TrackChangesEditing"),o=t[_s("0x16")];for(const o of Ts){if(!t[_s("0x0")][_s("0x1e")](o))continue;const s=o[_s("0xf")](0,-7)[_s("0x12")](),r=t[_s("0x13")][_s("0x19")](s);n[_s("0x1")](s,((t,o={})=>{const i=e[_s("0x1b")].selection;if(i[_s("0x20")])return void t(o);const x=void 0!==o[_s("0x1d")]?o.forceValue:!r[_s("0x17")];e.change((()=>{const t=Array[_s("0x4")](i[_s("0x1f")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x9")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x14")].registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[_s("0x21")]===t)return s.commandParams[0][_s("0x1d")]?{type:_s("0x11"),content:Yo(o,_s("0xd"),e)}:{type:_s("0x11"),content:Yo(o,_s("0x15"),e)}}))}s(_s("0x10"),Yo(o,_s("0xb"))),s("italic",Yo(o,"FORMAT_ITALIC")),s(_s("0x18"),Yo(o,_s("0xc"))),s(_s("0x5"),Yo(o,_s("0x6"))),s(_s("0x2"),Yo(o,_s("0xa"))),s(_s("0x7"),Yo(o,_s("0x3"))),s(_s("0xe"),Yo(o,_s("0x22")))}}const ys=["name","filter","model","enableCommand","TrackChangesEditing","commandName","format","editor","*Format:* %0","from","parent","schema","value","plugins","forceValue","$root","getSelectedBlocks","ELEMENT_BLOCK_QUOTE","BlockQuoteEditing","locale","commandParams","checkChild","change","registerDescriptionCallback","get","blockQuote","afterInit","selection","*Remove format:* %0"];var ks,As;ks=ys,As=239,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x13")](){const t=this.editor,e=t[vs("0xc")];if(!t[vs("0x6")].has(vs("0xb")))return;const n=t[vs("0x6")][vs("0x11")](vs("0x1a")),o=this[vs("0x0")].commands[vs("0x11")](vs("0x12"));n[vs("0x19")](vs("0x12"),((e,s={})=>{const r=this[vs("0x0")][vs("0x18")].document[vs("0x14")],i=s&&void 0!==s.forceValue?s[vs("0x7")]:!o[vs("0x5")];let x=[];if(i){const e=Array.from(r[vs("0x9")]())[vs("0x17")]((t=>Ss(t)||function(t,e){const n=e.checkChild(t[vs("0x3")],"blockQuote"),o=e[vs("0xe")]([vs("0x8"),vs("0x12")],t);return n&&o}(t,this.editor[vs("0x18")][vs("0x4")])));x=S(e,t[vs("0x18")])}else{const e=Array[vs("0x2")](r.getSelectedBlocks())[vs("0x17")]((t=>Ss(t)));x=S(e,t[vs("0x18")])}t.model[vs("0xf")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:vs("0x12"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0x10")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[vs("0x1b")]){const t=Yo(e,vs("0xa"));return n[vs("0xd")][0][vs("0x7")]?{type:vs("0x1c"),content:Yo(e,vs("0x1"),t)}:{type:"format",content:Yo(e,vs("0x15"),t)}}}))}}function Ss(t){return"blockQuote"==t.parent[vs("0x16")]}const Is=["editor","afterInit","enableCommand","get","ckbox","TrackChangesEditing","plugins"];var Ls,Ns;Ls=Is,Ns=324,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x6")](){const t=this[Ms("0x5")];t.commands.get(Ms("0x2"))&&t[Ms("0x4")][Ms("0x1")](Ms("0x3"))[Ms("0x0")](Ms("0x2"))}}const Os=["document","outdentCodeBlock","selection","rootElement","afterInit","markBlockFormat","commandName","indentCodeBlock","filter","parent","plugins","model","_descriptionFactory","forceValue","enableCommand","formatBlock","blockName","registerDescriptionCallback","getSelectedBlocks","format","codeBlock","editor","name","*Format:* %0","value","language","label","schema","config","commands","checkChild","TrackChangesEditing","locale","from","CodeBlock","*Remove format:* %0","isLimit","find","commandParams","ELEMENT_CODE_BLOCK"];var Fs,Ds;Fs=Os,Ds=167,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ds);const Ps=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ps("0x25")](){const t=this[Ps("0xe")];if(!t[Ps("0x3")].has(Ps("0x1b")))return;const e=t.plugins.get(Ps("0x18")),n=t[Ps("0x19")],o=t[Ps("0x15")].get("codeBlock").languages,s=t[Ps("0x16")].get(Ps("0xd"));e[Ps("0x7")](Ps("0x0")),e[Ps("0x7")](Ps("0x22")),e[Ps("0x7")](Ps("0xd"),((n,r={})=>{const i=t.model,x=t[Ps("0x4")][Ps("0x21")][Ps("0x23")],a=r&&void 0!==r[Ps("0x6")]?r[Ps("0x6")]:!s[Ps("0x11")];let c;r[Ps("0x12")]||(r[Ps("0x12")]=o[0].language),c=a?Array.from(x[Ps("0xb")]())[Ps("0x1")]((t=>{return js(t)||(e=t,n=i[Ps("0x14")],!e.is(Ps("0x24"))&&!n[Ps("0x1d")](e)&&n[Ps("0x17")](e[Ps("0x2")],Ps("0xd")));var e,n})):Array[Ps("0x1a")](x[Ps("0xb")]()).filter((t=>js(t)));const l=S(c,i);i.change((()=>{for(const t of l)e[Ps("0x26")](t,{commandName:Ps("0xd"),commandParams:[{...r,forceValue:a}],formatGroupId:Ps("0x9")})}))})),e._descriptionFactory.registerElementLabel(Ps("0xd"),(t=>Yo(n,Ps("0x20"),t))),e[Ps("0x5")][Ps("0xa")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ps("0x8")==s&&r&&Ps("0xd")==r[Ps("0x27")]){const t=r[Ps("0x1f")][0].language,s=e(o[Ps("0x1e")]((e=>e.language===t))[Ps("0x13")]);return r.commandParams[0][Ps("0x6")]?{type:"format",content:Yo(n,Ps("0x10"),Yo(n,Ps("0x20"),1)+" ("+s+")")}:{type:Ps("0xc"),content:Yo(n,Ps("0x1c"),Yo(n,Ps("0x20"),1))}}}))}}function js(t){return Ps("0xd")==t[Ps("0xf")]}const Us=["plugins","addCommentThread","enableCommand","CommentsEditing","has","editor","get"];var Gs,Hs;Gs=Us,Hs=175,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Ws=function(t,e){return Us[t-=0]};class zs extends t.Plugin{afterInit(){const t=this[Ws("0x5")];t[Ws("0x0")][Ws("0x4")](Ws("0x3"))&&t[Ws("0x0")][Ws("0x6")]("TrackChangesEditing")[Ws("0x2")](Ws("0x1"))}}var Vs=n(181);const Ks=["bind","end","setSelection","data","lock","requires","createRange","mapper","removeMarker:suggestion:deletion","high","rootName","enqueueChange","showSuggestionHighlights","isCollapsed","options","writer","root","modifySelection","$graveyard","merge","model","downcastDispatcher","fromRange","batch","document","createSelection","plugins","uiElement","editing","buffer","enableCommand","markerName","getFirstRange","commands","deleteForward","start","forward","detach","addMarker:suggestion:deletion","get","remove","init"];var qs,Xs;qs=Ks,Xs=329,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Qs extends t.Plugin{static get[$s("0xc")](){return[Vs.Delete]}[$s("0x6")](){const t=this.editor,e=t[$s("0x21")].get("TrackChangesEditing");e[$s("0x25")]("delete");const n=t[$s("0x28")][$s("0x4")]("deleteForward");e[$s("0x25")]($s("0x29"),((e,o={})=>{const s=t[$s("0x1b")][$s("0x20")](t[$s("0x1b")][$s("0x1f")].selection);s[$s("0x14")]&&t[$s("0x1b")][$s("0x18")](s,{direction:$s("0x1"),unit:o.unit});const r=s[$s("0x27")](),x=i.LiveRange[$s("0x1d")](r);let a;e(o),a=$s("0x19")==x[$s("0x17")][$s("0x11")]?t.model[$s("0xd")](r[$s("0x0")]):t[$s("0x1b")][$s("0xd")](x.start,x.end),x[$s("0x2")](),t[$s("0x1b")][$s("0x12")](n.buffer[$s("0x1e")],(t=>{n[$s("0x24")][$s("0xb")](),t[$s("0x9")](t[$s("0xd")](a[$s("0x8")])),n[$s("0x24")].unlock()}))})),t[$s("0x23")][$s("0x1c")].on($s("0x3"),hs(t,"merge"),{priority:$s("0x10")}),t[$s("0xa")].downcastDispatcher.on($s("0x3"),((e,n,o)=>{o[$s("0x15")][$s("0x13")]&&hs(t,$s("0x1a"),{showActiveMarker:!1})[$s("0x7")](this)(e,n,o)}),{priority:$s("0x10")}),t.editing[$s("0x1c")].on($s("0xf"),((t,e,n)=>{const o=n[$s("0xe")].markerNameToElements(e.markerName);if(o)for(const t of o)t.is($s("0x22"))&&(n.mapper.unbindElementFromMarkerName(t,e[$s("0x26")]),n[$s("0x16")][$s("0x5")](t))}),{priority:"high"})}}const Js=["from","plugins","end","slice","ELEMENT_LIST_ITEM","model","ELEMENT_BULLETED_LIST","detach","documentList","getAttribute","createPositionAt","commandName","*Change to:* %0","listIndent","value","accept","createRange","listItemId","getRanges","execute","formatBlock","afterInit","listType","registerElementLabel","map","refresh","DocumentListEditing","forceValue","before","isObject","DocumentListUtils","fromRange","TrackChangesEditing","has","push","expandListBlocksToCompleteList","getSelectedBlocks","deletion","*Merge:* %0","ELEMENT_NUMBERED_LIST","ELEMENT_","mergeListItemBackward","*Outdent:* %0","indentList","commands","schema","previousSibling","_descriptionFactory","isFirstBlockOfListItem","bulletedList","after","start","splitListItemAfter","numberedList","setSelection","next","markMultiRangeBlockFormat","multipleBlocks","*Indent:* %0","change","nextSibling","*Format:* insert into %0","parent","getFirstRange","outdentList","_suggestionFactory","document","length","nodeAfter","markBlockFormat","commandParams","splitListItemBefore","enableCommand","format","selection","mergeListItemForward","get"];var Zs,Ys;Zs=Js,Ys=374,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Js[t-=0]};class er extends t.Plugin{[tr("0x20")](){const t=this.editor;if(!t.plugins[tr("0x2c")](tr("0x25")))return;const e=t.locale,n=t[tr("0xc")][tr("0xa")](tr("0x2b")),o=t[tr("0xc")][tr("0xa")](tr("0x29"));function s(e){return()=>{const s=t.commands[tr("0xa")](e);let r=Array.from(t.model[tr("0x0")].selection[tr("0x2f")]());if(a(e)){r=o[tr("0x2e")](r);const t=[];for(const e of r)o[tr("0x3b")](e)&&t[tr("0x2d")](e);r=t}t[tr("0x10")][tr("0x46")]((()=>{n[tr("0x43")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x19")]}],formatGroupId:tr("0x21")},[],tr("0x13"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0xb")](t);const n=e.findIndex((t=>!t.hasAttribute(tr("0x1c"))));return n>-1&&(e=e[tr("0xe")](0,n)),e}(t[tr("0x10")].document[tr("0x8")][tr("0x2f")]()),s=o[o[tr("0x1")]-1],r=t[tr("0x10")][tr("0x38")][tr("0x28")](s)?tr("0x3d"):tr("0xd"),i=t.model[tr("0x1b")](t[tr("0x10")][tr("0x15")](o[0],tr("0x27")),t[tr("0x10")][tr("0x15")](s,r));t[tr("0x10")][tr("0x46")]((()=>{n[tr("0x3")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x21")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x47")];for(;t&&t[tr("0x14")](tr("0x18"))>n[tr("0x14")](tr("0x18"));)e.add(t),t=t[tr("0x47")]}return Array[tr("0xb")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x10")][tr("0x0")][tr("0x8")][tr("0x2f")]()[tr("0x42")]()[tr("0x19")],s=t[tr("0x10")].createPositionAt(o,"before"),r=t.model[tr("0x15")](o,0),i=t[tr("0x10")].createRange(s,r);t[tr("0x10")][tr("0x46")]((()=>{n[tr("0x3")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t.commands.get("bulletedList")[tr("0x19")],o=t[tr("0x37")].get(tr("0x40")).value;return tr("0x40")===e?n:o}n.enableCommand(tr("0x40"),s(tr("0x40"))),n.enableCommand(tr("0x3c"),s(tr("0x3c"))),n[tr("0x6")](tr("0x36"),r(tr("0x36"))),n.enableCommand(tr("0x4b"),r(tr("0x4b"))),n[tr("0x6")](tr("0x3f"),x(tr("0x3f"))),n[tr("0x6")](tr("0x5"),x(tr("0x5"))),n[tr("0x3a")][tr("0x22")]((function(e){const n=!t[tr("0x10")][tr("0x38")][tr("0x28")](e),o=e[tr("0x39")],s=e[tr("0x47")],r=e.getAttribute(tr("0x1c")),i=!o||o[tr("0x14")](tr("0x1c"))!==r,x=!s||s[tr("0x14")](tr("0x1c"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0xf"),t))),n[tr("0x3a")].registerDescriptionCallback((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x16")]){case tr("0x3c"):r=n.commandParams[0][tr("0x26")],i=a(n[tr("0x16")]),o=r?tr("0x48"):"*Format:* remove from %0",i&&(o="*Change to:* %0"),s={type:tr("0x7"),content:Yo(e,o,Yo(e,tr("0x11")))};break;case tr("0x40"):r=n[tr("0x4")][0].forceValue,i=a(n[tr("0x16")]),o=r?"*Format:* insert into %0":"*Format:* remove from %0",i&&(o=tr("0x17")),s={type:tr("0x7"),content:Yo(e,o,Yo(e,tr("0x32")))};break;case"indentList":o=tr("0x45"),s={type:"format",content:Yo(e,o,Yo(e,tr("0xf")))};break;case tr("0x4b"):o=function(t){const e=t[tr("0x4a")]();let n=e[tr("0x3e")].nodeAfter;for(;n&&e.containsItem(n);){if(n.getAttribute("listIndent")>0)return!1;n=n[tr("0x47")]}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t.getFirstRange().start[tr("0x2")];return tr("0x33")+e[tr("0x14")](tr("0x21")).toUpperCase()+"_LIST"}(t))):Yo(e,tr("0x35"),Yo(e,tr("0xf"))),s={type:tr("0x7"),content:o};break;case tr("0x34"):case tr("0x9"):!1===n[tr("0x44")]&&(o=tr("0x31"),s={type:tr("0x30"),content:Yo(e,o,Yo(e,tr("0xf")))})}return s})),n[tr("0x4c")].registerCustomCallback(tr("0x1f"),"documentList",tr("0x1a"),(function(e,n){const o=[];for(let n of e)n[tr("0x3e")][tr("0x2")]===n[tr("0xd")][tr("0x49")]&&(n=t[tr("0x10")][tr("0x1b")](t[tr("0x10")][tr("0x15")](n[tr("0x3e")][tr("0x2")],0))),o[tr("0x2d")](n);t[tr("0x10")][tr("0x46")]((e=>{const s=t[tr("0x10")][tr("0x0")][tr("0x8")],r=Array.from(s[tr("0x1d")]())[tr("0x23")]((t=>i.LiveRange[tr("0x2a")](t)));e.setSelection(o),t[tr("0x37")][tr("0xa")](n[tr("0x16")])[tr("0x24")](),n[tr("0x4")].push({forceDefaultExecution:!0}),t[tr("0x1e")](n[tr("0x16")],...n.commandParams),e[tr("0x41")](r);for(const t of r)t[tr("0x12")]()}))}))}}var nr=n(331);const or=["remove","split","addMarker:suggestion:insertion","writer","requires","removeMarker:suggestion:insertion","nextSibling","unbindElementFromMarkerName","model","data","mapper","bind","fire","ck-suggestion-marker-split","setSelection","hasClass","fromRange","options","commands","end","get","selection","markerNameToElements","document","downcastDispatcher","high","afterExecute","showSuggestionHighlights","getFirstPosition","createRange","enableCommand","editing","editor","enter","plugins","createPositionAt","parent"];var sr,rr;sr=or,rr=408,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x3")](){return[nr.Enter]}init(){const t=this[ir("0x1f")],e=t[ir("0x21")][ir("0x13")]("TrackChangesEditing"),n=t[ir("0x11")][ir("0x13")](ir("0x20"));e[ir("0x1d")](ir("0x20"),(()=>{t.model.change((o=>{const s=t.model[ir("0x16")][ir("0x14")],r=s[ir("0x1b")](),x=i.LiveRange[ir("0xf")](s.getFirstRange());if(n.enterBlock(o)){const n=t[ir("0x7")][ir("0x22")](r[ir("0x23")][ir("0x5")],0),s=o[ir("0x1c")](r,n);e.markInsertion(s)}else o[ir("0xd")](o[ir("0x1c")](x[ir("0x12")]));x.detach(),n[ir("0xb")](ir("0x19"),{writer:o})}))})),t.editing[ir("0x17")].on(ir("0x1"),hs(t,"split"),{priority:ir("0x18")}),t[ir("0x1e")][ir("0x17")].on(ir("0x4"),((t,e,n)=>{const o=n[ir("0x9")][ir("0x15")](e.markerName);if(o)for(const t of o)t[ir("0xe")](ir("0xc"))&&(n[ir("0x9")][ir("0x6")](t,e.markerName),n[ir("0x2")][ir("0x24")](t))}),{priority:ir("0x18")}),t[ir("0x8")].downcastDispatcher.on(ir("0x1"),((e,n,o)=>{o[ir("0x10")][ir("0x1a")]&&hs(t,ir("0x0"),{showActiveMarker:!1})[ir("0xa")](this)(e,n,o)}),{priority:ir("0x18")})}}const ar=["filter","enableCommand","FindAndReplaceUtils","findPrevious","handleFindCommand","model","editor","start","TrackChangesEditing","has","end","getMarkersGroup","createRange","replace","replaceAll","suggestion:deletion","_isInDeletionRange","createPositionAt","findNext","getRange","afterInit","FindAndReplaceEditing","find","get","bind","plugins"];var cr,lr;cr=ar,lr=194,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0x8")](){if(!this.editor[ur("0xd")][ur("0x17")](ur("0x9")))return;const t=this[ur("0x14")][ur("0xd")][ur("0xb")](ur("0x16"));t[ur("0xf")](ur("0xa"),this[ur("0x12")][ur("0xc")](this)),t[ur("0xf")](ur("0x6")),t[ur("0xf")](ur("0x11")),t[ur("0xf")](ur("0x1")),t[ur("0xf")](ur("0x2"))}handleFindCommand(t,e,n={}){const o=this.editor[ur("0xd")][ur("0xb")](ur("0x10"));void 0!==n&&t((t=>("string"==typeof e?o.findByTextCallback(e,n):e)(t)[ur("0xe")]((e=>!1===this._isInDeletionRange(e,t.item)))),n)}[ur("0x4")](t,e){const n=this[ur("0x14")].model[ur("0x0")](this[ur("0x14")][ur("0x13")][ur("0x5")](e,t[ur("0x15")]),this[ur("0x14")][ur("0x13")][ur("0x5")](e,t[ur("0x18")]));for(const t of this.editor[ur("0x13")].markers[ur("0x19")](ur("0x3")))if(null!==n.getIntersection(t[ur("0x7")]()))return!0;return!1}}const gr=["editor","value","model","fontFamily","title","config","get","trim","_descriptionFactory","selection","fontSize.options","fontBackgroundColor","getRanges","FontSizeEditing","*Reset font color*","markInlineFormat","TrackChangesEditing","find","*Set font color:* %0","has","_enableCommand","isCollapsed","*Reset font background color*","plugins","fontBackgroundColor.colors","afterInit","fontColor","*Reset font size*","locale","label","format","fontColor.colors","document","*Set font background color:* %0","toLowerCase","commandName","commandParams","registerDescriptionCallback","normalizeSizeOptions","FontFamilyEditing","from","fontSize","*Reset font family*","FontColorEditing"];var mr,fr;mr=gr,fr=250,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},br=[{pluginName:hr("0x1b"),commandName:hr("0xb")},{pluginName:hr("0x9"),commandName:"fontFamily"},{pluginName:hr("0xd"),commandName:hr("0x28")},{pluginName:"FontBackgroundColorEditing",commandName:hr("0x19")}];class pr extends t.Plugin{[hr("0x27")](){const t=this[hr("0xe")][hr("0x2a")];for(const{pluginName:t,commandName:e}of br)this[hr("0xe")][hr("0x25")][hr("0x21")](t)&&this._enableCommand(e);this[hr("0xe")][hr("0x25")][hr("0x14")](hr("0x1e"))[hr("0x16")][hr("0x7")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o[hr("0x5")]){const e=o[hr("0x6")][0].value;if(e){const o=n(this[hr("0xe")][hr("0x25")][hr("0x14")]("FontSize")[hr("0x8")](this[hr("0xe")].config.get(hr("0x18"))).find((t=>t[hr("0x10")]==e))[hr("0x12")])[hr("0x4")]();return{type:hr("0x0"),content:Yo(t,"*Set font size:* %0",o)}}return{type:hr("0x0"),content:Yo(t,hr("0x29"))}}if(hr("0x11")==o.commandName){const e=o[hr("0x6")][0][hr("0xf")];return e?{type:"format",content:Yo(t,"*Set font family:* %0",e)}:{type:hr("0x0"),content:Yo(t,hr("0xc"))}}if(hr("0x28")==o.commandName){const e=o[hr("0x6")][0][hr("0xf")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0xe")][hr("0x13")][hr("0x14")](hr("0x1")))[hr("0x1f")]((t=>t.model==e));let r=e,i="";return o&&(r=o[hr("0x2b")],i=n(r)[hr("0x4")]()),{type:hr("0x0"),content:Yo(t,hr("0x20"),i).trim(),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x1c"))}}if(hr("0x19")==o[hr("0x5")]){const e=o[hr("0x6")][0][hr("0xf")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0xe")].config[hr("0x14")](hr("0x26"))).find((t=>t[hr("0x10")]==e));let r=e,i="";return o&&(r=o[hr("0x2b")],i=n(r)[hr("0x4")]()),{type:hr("0x0"),content:Yo(t,hr("0x3"),i)[hr("0x15")](),color:{value:e,title:i||r}}}return{type:hr("0x0"),content:Yo(t,hr("0x24"))}}}}))}[hr("0x22")](t){const e=this[hr("0xe")];e[hr("0x25")][hr("0x14")](hr("0x1e")).enableCommand(t,((n,o={})=>{const s=e[hr("0x10")][hr("0x2")][hr("0x17")],r=o[hr("0xf")];s[hr("0x23")]?n(o):e[hr("0x10")].change((()=>{const n=Array[hr("0xa")](s[hr("0x1a")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x10")]);for(const o of n)e[hr("0x25")][hr("0x14")](hr("0x1e"))[hr("0x1d")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["forward","getSelectedBlocks","label","schema","fontBackgroundColor","isBlock","isFormatting","*Remove all formatting*","fontSize","FontSize","commands","markInlineFormat","change","split","TrackChangesEditing","fontSize.options","selection","getFirstPosition","join","model","get","entries","length","locale","fontColor.colors","title","commandName","getItems","boolean","getAttributes","registerDescriptionCallback","toLowerCase","pasteFormat","from","enableCommand","find","charAt","word","*Set format to:* %0","backward","getRanges","getLastPosition","format","_descriptionFactory","config","plugins","modifySelection","commandParams"];var _r,Tr;_r=Er,Tr=381,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{afterInit(){const t=this.editor,n=t[Cr("0x16")],o=n.document[Cr("0x13")],s=t[Cr("0x0")].get(Cr("0x11")),r=t.locale,i=t[Cr("0xd")].get("copyFormat"),x=t[Cr("0xd")][Cr("0x17")](Cr("0x23"));i&&x&&(s[Cr("0x25")](Cr("0x23"),((t,r={})=>{const i=r;n[Cr("0xf")]((()=>{const t=Array[Cr("0x24")](o[Cr("0x2b")]()),r=o.isCollapsed?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x20")]()){const t=e.getAttributeProperties(n);t&&t[Cr("0x9")]&&(yield n)}}(t,n));for(const e of t[Cr("0x2b")]())for(const t of e[Cr("0x1e")]())!n[Cr("0x8")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x4")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x6")]))||0!==Object.keys(i)[Cr("0x19")])for(const t of r)s[Cr("0xe")](t,{commandName:Cr("0x23"),commandParams:[i]})}))})),s[Cr("0x2e")][Cr("0x21")]((e=>{const{data:n}=e;if(n&&Cr("0x23")===n[Cr("0x1d")]){const e=[],o=n[Cr("0x2")][0];for(const[n,s]of Object[Cr("0x18")](o))e.push(Ar(t,n,s));return e[Cr("0x19")]?{type:Cr("0x2d"),content:Yo(r,Cr("0x29"),e[Cr("0x15")](", "))}:{type:Cr("0x2d"),content:Yo(r,Cr("0xa"))}}})),t[Cr("0x0")][Cr("0x17")](Cr("0x11"))[Cr("0x25")]("copyFormat"))}}function kr(t,e){const n=t.createSelection(e);t.modifySelection(n,{unit:"word",direction:Cr("0x2a")});const o=n[Cr("0x14")]();t[Cr("0x1")](n,{unit:Cr("0x28"),direction:Cr("0x3")});const s=n[Cr("0x2c")]();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0x1a")].t,r=e[Cr("0x10")](/(?=[A-Z])/).join(" "),i=o(r[Cr("0x27")](0).toUpperCase()+r.slice(1))[Cr("0x22")]();if(Cr("0x1f")==typeof n)return i;if("fontColor"===e||Cr("0x7")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x2f")][Cr("0x17")](Cr("0x1b")))[Cr("0x26")]((t=>t[Cr("0x16")]==n));return i+" ("+(e?o(e[Cr("0x5")])[Cr("0x22")]():n)+")"}if(Cr("0xb")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0x17")](Cr("0xc")).normalizeSizeOptions(t.config[Cr("0x17")](Cr("0x12")))[Cr("0x26")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x1c")])[Cr("0x22")]():n)+")"}return i+" ("+n+")"}const vr=["markBlockFormat","config","value","*Change to:* %0","ELEMENT_HEADING_CUSTOM","has","blockName","TrackChangesEditing","isObject","document","match","registerElementLabel","model","selection","from","schema","_descriptionFactory","HeadingEditing","name","format","plugins","title","find","heading","enableCommand","parent","commandName","locale","ELEMENT_HEADING","editor","get","getSelectedBlocks","formatBlock","paragraph"];var Rr,Sr;Rr=vr,Sr=158,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{afterInit(){const t=this[Ir("0x7")],e=t[Ir("0x5")],n=t[Ir("0xd")][Ir("0x8")]("heading.options");if(!t[Ir("0x20")][Ir("0x11")](Ir("0x1d")))return;const o=t[Ir("0x20")][Ir("0x8")](Ir("0x13"));o[Ir("0x2")](Ir("0x1"),((e,n)=>{const s=n[Ir("0xe")],r=Array[Ir("0x1a")](this[Ir("0x7")].model[Ir("0x15")][Ir("0x19")][Ir("0x9")]()).filter((t=>{return e=t,n=s,(o=this[Ir("0x7")][Ir("0x18")][Ir("0x1b")]).checkChild(e[Ir("0x3")],n)&&!o[Ir("0x14")](e)&&e[Ir("0x1e")]!=n;var e,n,o}));t.model.change((()=>{for(const t of r)o[Ir("0xc")](t,{commandName:Ir("0x1"),commandParams:[n],formatGroupId:Ir("0x12")},fs(t))}))}));for(const t of n)Ir("0xb")!=t[Ir("0x18")]&&o[Ir("0x1c")][Ir("0x17")](t[Ir("0x18")],(e=>{const n=Nr(t[Ir("0x18")]);return null!==n?s(e,n):r(e,t[Ir("0x21")])}));function s(t,n){return Yo(e,Ir("0x6"),[t,n])}function r(t,n){return Yo(e,Ir("0x10"),[t,n])}o[Ir("0x1c")].registerDescriptionCallback((t=>{const{type:o,data:i}=t;if(Ir("0xa")==o&&i&&Ir("0x1")==i[Ir("0x4")]){const t=i.commandParams[0][Ir("0xe")],o=Nr(t);if(null!==o)return{type:Ir("0x1f"),content:Yo(e,Ir("0xf"),s(1,o))};const x=n[Ir("0x0")]((e=>e[Ir("0x18")]===t)).title;return{type:"format",content:Yo(e,Ir("0xf"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x16")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["get","getLastMatchingPosition","push","HighlightEditing","value","title","formatInline","hasAttribute","model","config","getRanges","createRange","afterInit","plugins","item","_descriptionFactory","FORMAT_HIGHLIGHT","format","markInlineFormat","getAttribute","change","editor","document","getFirstPosition","highlight.options","*Set highlight:* %0","color","find","*Remove highlight*","highlight","backward","TrackChangesEditing","enableCommand","toLowerCase"];var wr,Or;wr=Mr,Or=343,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{[Fr("0x9")](){const t=this[Fr("0x12")];if(!t[Fr("0xa")].has(Fr("0x0")))return;const e=t[Fr("0xa")][Fr("0x1f")](Fr("0x1c"));e[Fr("0x1d")]("highlight",((n,o={})=>{const s=t[Fr("0x5")][Fr("0x13")].selection,r=s[Fr("0x10")](Fr("0x1a"));let i=o[Fr("0x1")],x=[];if(s.isCollapsed){const e=s[Fr("0x14")]();if(!s[Fr("0x4")]("highlight"))return void n(o);{const n=t=>t[Fr("0xb")][Fr("0x10")]("highlight")===r,o=e.getLastMatchingPosition(n,{direction:Fr("0x1b")}),s=e[Fr("0x20")](n);x=[t[Fr("0x5")][Fr("0x8")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x7")]())i?x[Fr("0x21")](e):x[Fr("0x21")](...ms(Fr("0x1a"),e,t[Fr("0x5")]));t[Fr("0x5")][Fr("0x11")]((()=>{for(const t of x)e[Fr("0xf")](t,{commandName:Fr("0x1a"),commandParams:[{value:i}]})}))}));const n=t.locale;e[Fr("0xc")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if(Fr("0x3")==o&&s&&Fr("0x1a")==s.commandName){const e=n.t,o=s.commandParams[0][Fr("0x1")];if(o){const s=t[Fr("0x6")][Fr("0x1f")](Fr("0x15"))[Fr("0x18")]((t=>t[Fr("0x5")]==o)),r=e(s[Fr("0x2")])[Fr("0x1e")]();return{type:Fr("0xe"),content:Yo(n,Fr("0x16"),r),color:{value:s[Fr("0x17")],title:s[Fr("0x2")]}}}return{type:Fr("0xe"),content:Yo(n,Fr("0x19"),Yo(n,Fr("0xd")))}}}))}}const Pr=["createContainerElement","editor","createPositionAt","has","HorizontalLineEditing","dataDowncast","addClass","insert","plugins","afterInit","ELEMENT_HORIZONTAL_LINE","TrackChangesEditing","showSuggestionHighlights","horizontalLine","enableCommand","registerElementLabel","elementToStructure","get","high"];var Br,jr;Br=Pr,jr=101,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Pr[t-=0]};class Gr extends t.Plugin{[Ur("0x3")](){const t=this[Ur("0xe")];if(!t[Ur("0x2")][Ur("0x10")](Ur("0x11")))return;t.plugins[Ur("0xb")](Ur("0x5"))[Ur("0x8")](Ur("0x7"));const e=t[Ur("0x2")][Ur("0xb")](Ur("0x5")),n=t.locale;e._descriptionFactory[Ur("0x9")](Ur("0x7"),(t=>Yo(n,Ur("0x4"),t))),t.conversion.for(Ur("0x12"))[Ur("0xa")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Ur("0x6")])return null;const o=e[Ur("0xd")]("div"),s=e.createEmptyElement("hr");return e[Ur("0x0")]("ck-horizontal-line",o),e[Ur("0x1")](e[Ur("0xf")](o,0),s),o},converterPriority:Ur("0xc")})}}const Hr=["ELEMENT_HTML_EMBED","_descriptionFactory","TrackChangesEditing","commandName","view","markBlockFormat","selection","getCustomProperty","get","rawHtmlApi","model","element","HtmlEmbed","getSelectedElement","editing","htmlEmbed","document","editor","*Change %0 content*","locale","registerElementLabel","change","format","plugins","value","rawHtml"];var Wr,zr;Wr=Hr,zr=203,function(t){for(;--t;)Wr.push(Wr.shift())}(++zr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this[Vr("0x16")];if(!t[Vr("0x2")].has(Vr("0x11")))return;const e=t[Vr("0x2")][Vr("0xd")](Vr("0x7")),n=t[Vr("0x18")],o=t[Vr("0x13")][Vr("0x9")].document[Vr("0xb")];e[Vr("0x6")][Vr("0x19")](Vr("0x4"),(t=>Yo(n,Vr("0x5"),t))),t[Vr("0x2")][Vr("0xd")](Vr("0x7")).enableCommand("htmlEmbed",((n,s)=>{const r=t[Vr("0xf")],i=r[Vr("0x15")][Vr("0xb")];r[Vr("0x0")]((()=>{const t=function(t){const e=t[Vr("0x12")]();return e&&e.is(Vr("0x10"),Vr("0x4"))?t[Vr("0x12")]():null}(i);if(!t)return void n(null);const r=t.getAttribute(Vr("0x3"))||"";void 0!==s&&s!==r&&(e[Vr("0xa")](t,{commandName:Vr("0x14"),commandParams:[s]}),o[Vr("0x12")]()[Vr("0xc")](Vr("0xe")).cancel())}))})),e[Vr("0x6")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Vr("0x14")==e[Vr("0x8")]){const t=Yo(n,Vr("0x5"));return{type:Vr("0x1"),content:Yo(n,Vr("0x17"),t)}}}))}}const qr=["imageStyle","imageBlock","refresh","end","width","ImageEditing","locale","from","addObject","commandReversedParams","ImageInlineEditing","imageTextAlternative","formatBlock","chain","registerCustomCallback","type","alt","getClosestSelectedImageElement","createRangeOn","toLowerCase","Block image to inline image","commands","Inline image to block image","previous","isEqual","find","registerElementLabel","schema","plugins","author","imageTypeBlock","ELEMENT_CAPTION","has","getCaptionFromImageModelElement","fromPosition","insertImage","ImageUploadEditing","isInContent","uploadImage","isCollapsed","enableCommand","*Reset image width*","get","hasAttribute","convertInlineImageToBlock","deletion","toPrevious","accept","ImageBlockEditing","subType","discard","createRange","isBlockImage","ImageUtils","forceDefaultExecution","imageCaption","document","forward","_suggestionFactory","_descriptionFactory","getFirstRange","ImageCaptionUtils","getChangedMarkers","getContainedElement","*Set image width:* %0","name","ImageCaptionEditing","commandName","registerDescriptionCallback","backward","registerPostFixer","model","afterInit","getSuggestions","newRange","suggestion","ImageStyleEditing","getNearestSelectionRange","value","resizeImage","_splitMarkerName","change","markInlineFormat","head","start","isOwn","getAttribute","*Format:* %0","newValue","toNext","isBefore","Users","formatInline","imageStylePostApply","format","join","discardSuggestion","selection","isIntersecting","commandParams","*Set image text alternative:* %0","insertion","imageStylePreApply","findIndex","imageTypeInline","ELEMENT_INLINE_IMAGE","markInsertion","markBlockFormat","markDeletion","convertBlockImageToInline","getSuggestion","TrackChangesEditing","differ","FORMAT_SIDE_IMAGE","length","detach"];var Xr,$r;Xr=qr,$r=444,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Qr=function(t,e){return qr[t-=0]};class Jr extends t.Plugin{[Qr("0x5c")](){const t=this.editor;if(!t.plugins.has(Qr("0x19")))return;const n=t[Qr("0x30")][Qr("0x3e")](Qr("0xf")),o=t.plugins[Qr("0x3e")](Qr("0x49")),s={},r=t[Qr("0x1a")];if(n[Qr("0x3c")](Qr("0x37")),n[Qr("0x4f")].registerElementLabel(Qr("0x15"),(t=>Yo(r,"ELEMENT_IMAGE",t))),n[Qr("0x4f")][Qr("0x2e")]("imageInline",(t=>Yo(r,Qr("0x9"),t))),n[Qr("0x4f")][Qr("0x2e")]("caption",(()=>Yo(r,Qr("0x33")))),t[Qr("0x30")][Qr("0x34")](Qr("0x38"))&&n[Qr("0x3c")](Qr("0x3a")),t[Qr("0x30")][Qr("0x34")](Qr("0x44"))&&t[Qr("0x30")][Qr("0x34")](Qr("0x1e"))&&(n[Qr("0x3c")](Qr("0x8"),((e,s)=>{const r=o[Qr("0x25")](t[Qr("0x5b")][Qr("0x4c")].selection);t.model[Qr("0x65")]((()=>{n[Qr("0xb")](r,{commandName:Qr("0x8"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[Qr("0x3c")](Qr("0x32"),((e,s)=>{t[Qr("0x5b")].change((r=>{let x=o.getClosestSelectedImageElement(t[Qr("0x5b")][Qr("0x4c")].selection),a=r[Qr("0x26")](x);const c=i.LivePosition[Qr("0x36")](a[Qr("0x68")],Qr("0x42")),l=i.LivePosition[Qr("0x36")](a[Qr("0x17")],Qr("0x6d"));n[Qr("0x4a")]((()=>e(s))),x=o.getClosestSelectedImageElement(t[Qr("0x5b")][Qr("0x4c")][Qr("0x1")]),a=r.createRangeOn(x);const u=r[Qr("0x47")](c,l);c[Qr("0x13")](),l[Qr("0x13")](),n[Qr("0xb")](x,{commandName:Qr("0x8"),commandParams:[]},[],Qr("0x40")),u[Qr("0x68")][Qr("0x6e")](a[Qr("0x68")])&&n[Qr("0xa")](r[Qr("0x47")](u.start,a[Qr("0x68")]),"convertInlineImageToBlock"),a[Qr("0x17")][Qr("0x6e")](u.end)&&n[Qr("0xa")](r[Qr("0x47")](a[Qr("0x17")],u[Qr("0x17")]),Qr("0x40"))}))})),n[Qr("0x4e")][Qr("0x22")](Qr("0x20"),"convertInlineImageToBlock",Qr("0x73"),(()=>!1)),n[Qr("0x4e")][Qr("0x22")]("formatBlock","convertInlineImageToBlock",Qr("0x43"),(()=>!1)),n[Qr("0x4e")][Qr("0x22")]("formatBlock",Qr("0x40"),Qr("0x46"),n[Qr("0x4e")].getSuggestionCallback("formatBlock","",Qr("0x43"))),n[Qr("0x4e")][Qr("0x22")](Qr("0x5"),"convertInlineImageToBlock",Qr("0x73"),(()=>!1)),n[Qr("0x4e")][Qr("0x22")]("insertion",Qr("0x40"),Qr("0x46"),(([e])=>{const o=n[Qr("0x4e")].getSuggestionCallback(Qr("0x5"),"",Qr("0x46"));let s=e[Qr("0x68")],r=e[Qr("0x17")];const i=t[Qr("0x5b")].schema[Qr("0x61")](s,Qr("0x59")),x=t[Qr("0x5b")][Qr("0x2f")].getNearestSelectionRange(r,Qr("0x4d"));i[Qr("0x3b")]&&(s=i[Qr("0x68")]),x.isCollapsed&&(r=x.end),o([t.model.createRange(s,r)])})),n[Qr("0x4e")][Qr("0x22")](Qr("0x20"),Qr("0x40"),"chain",c),n[Qr("0x4e")][Qr("0x22")](Qr("0x5"),Qr("0x40"),Qr("0x21"),c)),t[Qr("0x30")][Qr("0x34")](Qr("0x56"))&&(n[Qr("0x3c")]("toggleImageCaption",((e,s)=>{const r=t.plugins[Qr("0x3e")](Qr("0x51"));let i=o[Qr("0x25")](t.model[Qr("0x4c")][Qr("0x1")]),x=r[Qr("0x35")](i);t[Qr("0x5b")][Qr("0x65")]((()=>{if(x)return void n[Qr("0xc")](t[Qr("0x5b")][Qr("0x26")](x));const a=o[Qr("0x48")](i);e(s),i=o[Qr("0x25")](t[Qr("0x5b")][Qr("0x4c")][Qr("0x1")]),x=r[Qr("0x35")](i),n[Qr("0xa")](t[Qr("0x5b")][Qr("0x26")](x),a?null:Qr("0x4b"))}))})),n[Qr("0x4e")].registerCustomCallback("insertion",Qr("0x4b"),Qr("0x21"),c)),t[Qr("0x30")][Qr("0x34")](Qr("0x60"))){n.enableCommand(Qr("0x14"),((s,r)=>{const i=t[Qr("0x30")][Qr("0x3e")](Qr("0x6f")).me,x=t[Qr("0x29")][Qr("0x3e")](Qr("0x14"));let a=o[Qr("0x25")](t[Qr("0x5b")][Qr("0x4c")][Qr("0x1")]),c=t[Qr("0x5b")][Qr("0x26")](a),l=x[Qr("0x62")];if(l==r[Qr("0x62")])return;const u={commandName:Qr("0x14"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Qr("0x5b")][Qr("0x65")]((()=>{if(n[Qr("0x5d")]().filter((t=>t[Qr("0x39")]&&i==t[Qr("0x31")]&&("formatBlock"==t[Qr("0x23")]||"formatInline"==t[Qr("0x23")])&&(Qr("0x6")==t[Qr("0x45")]||"imageStylePostApply"==t[Qr("0x45")])&&t[Qr("0x50")]()[Qr("0x2c")](c))).forEach((t=>n.discardSuggestion(t[Qr("0x67")]))),a=o[Qr("0x25")](t[Qr("0x5b")][Qr("0x4c")][Qr("0x1")]),c=t[Qr("0x5b")][Qr("0x26")](a),x[Qr("0x16")](),t[Qr("0x29")].get(Qr("0x8")).refresh(),t[Qr("0x29")][Qr("0x3e")]("imageTypeBlock")[Qr("0x16")](),l=x[Qr("0x62")],l!=r.value)return o.isInlineImage(a)&&x.shouldConvertImageType(r[Qr("0x62")],a)?(s(r),a=o.getClosestSelectedImageElement(t[Qr("0x5b")][Qr("0x4c")][Qr("0x1")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null}]},[],Qr("0x6"))):void(o[Qr("0x48")](a)?n[Qr("0xb")](a,u,[],Qr("0x71")):n[Qr("0x66")](c,u,Qr("0x71")))}))}));for(const e of t[Qr("0x30")][Qr("0x3e")](Qr("0x60")).normalizedStyles)s[e[Qr("0x55")]]=e.title[Qr("0x27")]();n[Qr("0x4e")].registerCustomCallback(Qr("0x20"),"imageStylePreApply",Qr("0x73"),(()=>!1)),n[Qr("0x4e")][Qr("0x22")]("formatBlock",Qr("0x71"),Qr("0x73"),(()=>!1)),n[Qr("0x4e")][Qr("0x22")](Qr("0x70"),"imageStylePostApply",Qr("0x73"),(()=>!1)),n._suggestionFactory[Qr("0x22")]("formatBlock",Qr("0x6"),Qr("0x43"),(()=>!1)),n[Qr("0x4e")][Qr("0x22")](Qr("0x20"),Qr("0x6"),Qr("0x46"),((t,e)=>{n[Qr("0x4e")].getSuggestionCallback(Qr("0x20"),"",Qr("0x43"))(t,{commandName:e[Qr("0x57")],commandParams:e[Qr("0x1d")]})})),n[Qr("0x4e")][Qr("0x22")]("formatBlock",Qr("0x6"),Qr("0x21"),c)}const x=[{type:"formatBlock",subType:Qr("0x6")},{type:Qr("0x5"),subType:Qr("0x4b")},{type:Qr("0x20"),subType:Qr("0x40")},{type:"insertion",subType:Qr("0x40")}];function a(t,e){const s=x[Qr("0x7")]((({type:e,subType:n})=>t[Qr("0x23")]==e&&t.subType==n)),r=x[Qr("0x7")]((({type:t,subType:n})=>e[Qr("0x23")]==t&&e[Qr("0x45")]==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e.getFirstRange();if((0==s||1==s)&&2==r&&i[Qr("0x2")](a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,Qr("0x5")).filter((({suggestion:t,meta:e})=>e[Qr("0x69")]&&Qr("0x40")==t.subType));if(t[Qr("0x12")]>1&&a[Qr("0x17")][Qr("0x2c")](i[Qr("0x68")]))return!0;if(1==t[Qr("0x12")]&&(i[Qr("0x68")][Qr("0x2c")](a.end)||i[Qr("0x17")][Qr("0x2c")](a[Qr("0x68")])))return!0}if(3==s&&3==r&&i[Qr("0x68")][Qr("0x6e")](a[Qr("0x68")])){const t=i[Qr("0x17")].nodeAfter,e=a[Qr("0x68")].nodeBefore;return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Qr("0x5b")][Qr("0x4c")][Qr("0x5a")]((()=>{let e=!1;const s=Array[Qr("0x1b")](t[Qr("0x5b")][Qr("0x4c")][Qr("0x10")][Qr("0x52")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Qr("0x64")](t);if(Qr("0x5f")==s&&n.hasSuggestion(a)){if("formatBlock"==i&&("imageStylePreApply"==x||Qr("0x71")==x)){const t=n.getSuggestion(a);if(r[Qr("0x5e")]){const s=t[Qr("0x50")]()[Qr("0x53")]();if(o[Qr("0x48")](s))continue;n[Qr("0x0")](t),e=!0}}if("insertion"==i&&"imageCaption"==x&&!r[Qr("0x5e")]){const t=n[Qr("0xe")](a);t.next&&t.next.isInContent&&(n.discardSuggestion(t.next),e=!0)}}}return e})),t[Qr("0x30")].has("ImageResize")&&n[Qr("0x3c")](Qr("0x63"),((e,s)=>{const r=o[Qr("0x25")](t[Qr("0x5b")].document[Qr("0x1")]);r[Qr("0x6a")](Qr("0x18"))!=s[Qr("0x18")]&&t[Qr("0x5b")].change((()=>{n[Qr("0xb")](r,{commandName:Qr("0x63"),commandParams:[s]})}))})),t.plugins[Qr("0x34")]("ImageTextAlternativeEditing")&&n[Qr("0x3c")](Qr("0x1f"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Qr("0x5b")][Qr("0x4c")][Qr("0x1")]);(r[Qr("0x3f")](Qr("0x24"))?r[Qr("0x6a")](Qr("0x24")):"")!=s[Qr("0x6c")]&&t[Qr("0x5b")][Qr("0x65")]((()=>{n[Qr("0xb")](r,{commandName:Qr("0x1f"),commandParams:[s]})}))})),n._descriptionFactory[Qr("0x58")]((t=>{if(x[Qr("0x2d")]((({type:e,subType:n})=>t[Qr("0x23")]==e&&t[Qr("0x45")]==n)))return t[Qr("0x2b")]?{}:void 0})),n[Qr("0x4f")][Qr("0x58")]((t=>{if(Qr("0x5")==t.type||Qr("0x41")==t[Qr("0x23")]){const e=t[Qr("0x53")]();if(e&&e.is("element","caption"))return{type:Qr("0x5")==t[Qr("0x23")]?Qr("0x1c"):"removeObject",element:e,quantity:1}}})),n[Qr("0x4f")].registerDescriptionCallback((t=>Qr("0x20")==t[Qr("0x23")]&&Qr("0x40")==t.subType?{type:"format",content:Qr("0x2a")}:Qr("0x20")==t.type&&Qr("0xd")==t.subType?{type:Qr("0x72"),content:Qr("0x28")}:void 0)),n[Qr("0x4f")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(Qr("0x14")==e[Qr("0x57")]){const t=e[Qr("0x3")][0][Qr("0x62")];return n="side"===t?Yo(r,Qr("0x11")):s[t]||t,{type:Qr("0x72"),content:Yo(r,Qr("0x6b"),n)}}if(Qr("0x1f")==e[Qr("0x57")]){const t=e[Qr("0x3")][0][Qr("0x6c")];return t?{type:"format",content:Yo(r,Qr("0x4"),'"'+t+'"')}:{type:Qr("0x72"),content:Yo(r,"*Remove image text alternative*")}}if(Qr("0x63")==e[Qr("0x57")]){const t=e.commandParams[0][Qr("0x18")];return t?{type:Qr("0x72"),content:Yo(r,Qr("0x54"),t)}:{type:"format",content:Yo(r,Qr("0x3d"))}}}var n}))}}const Zr=["discard","enableCommand","*Format:* replace image URL","_descriptionFactory","author","getContainedElement","formatBlock","afterInit","plugins","_suggestionFactory","commandName","getSuggestionCallback","ImageEditing","change","getAttribute","handleSuggestionDescription","handleReplaceImageCommand","locale","src","format","data","registerCustomCallback","replaceImageSource","model","editor","get","getSuggestions","has","registerDescriptionCallback","markBlockFormat","selection"];var Yr,ti;Yr=Zr,ti=114,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x11")](){if(!this.editor[ei("0x12")][ei("0x6")](ei("0x16")))return;const t=this[ei("0x3")][ei("0x12")][ei("0x4")]("TrackChangesEditing");t[ei("0xb")](ei("0x1"),((t,e)=>this[ei("0x1a")](t,e))),t[ei("0x13")][ei("0x0")](ei("0x10"),ei("0x1"),"accept",t._suggestionFactory[ei("0x15")]("formatBlock",null,ei("0xa"))),t[ei("0x13")].registerCustomCallback("formatBlock",ei("0x1"),ei("0xa"),t[ei("0x13")].getSuggestionCallback(ei("0x10"),null,"accept")),t[ei("0xd")][ei("0x7")]((t=>this[ei("0x19")](t)))}[ei("0x1a")](t,e){const n=this[ei("0x3")][ei("0x12")][ei("0x4")]("TrackChangesEditing"),o=this[ei("0x3")][ei("0x2")].document[ei("0x9")].getSelectedElement();this[ei("0x3")][ei("0x2")][ei("0x17")]((()=>{let s=o[ei("0x18")](ei("0x1c"));const r=this.editor.plugins[ei("0x4")]("Users").me;for(const t of n[ei("0x5")]({skipNotAttached:!0})){const e=t[ei("0xf")]();if(ei("0x1")===t.subType&&e===o){t[ei("0xe")]!==r&&t[ei("0xa")](),s=t[ei("0x1e")].commandParams[0].source;break}}t(e),n[ei("0x8")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],"replaceImageSource")}))}[ei("0x19")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ei("0x14")]){const t=ei("0xc");return{type:ei("0x1d"),content:Yo(this.editor[ei("0x1b")],t)}}}}const oi=["collaboration_features","importWord","afterInit","get","track_changes","commands","listenTo","TrackChangesEditing","_trackChangesValueDuringImport","dataInsert","high","value","Users","bind","forEach","trackChanges","_handleImportedData","enableCommand","execute","_trackChangesExecuted","editor","plugins"];var si,ri;si=oi,ri=415,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[ii("0x0")]=!1}[ii("0x5")](){const t=this[ii("0x1")],e=t.commands[ii("0x6")](ii("0x4")),n=t[ii("0x8")][ii("0x6")](ii("0x12"));e&&(e.on(ii("0x15"),((t,[,e])=>{this._trackChangesValueDuringImport=n[ii("0xe")],e[ii("0x3")][ii("0x7")]=!this[ii("0xb")]}),{priority:ii("0xd")}),this[ii("0x9")](e,ii("0xc"),this[ii("0x13")][ii("0x10")](this)),this.listenTo(e,ii("0xc"),(()=>{this[ii("0x0")]&&(n[ii("0x15")](),this[ii("0x0")]=!1)}),{priority:"lowest"}),t[ii("0x2")][ii("0x6")](ii("0xa"))[ii("0x14")](ii("0x4")))}[ii("0x13")](t,e){const{suggestions:n}=e,o=this[ii("0x1")].commands[ii("0x6")]("trackChanges"),s=o[ii("0xe")];this[ii("0xb")]!==s&&(o[ii("0x15")](),this[ii("0x0")]=!0),n&&n[ii("0x11")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x1")].plugins[ii("0x6")](ii("0xf")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x4")}}};this.editor[ii("0x2")][ii("0x6")]("TrackChangesEditing")._setSuggestionData(s)}))}}const ai=["afterInit","_descriptionFactory","format","commandName","get","outdentBlock","markBlockFormat","enableCommand","indent","change","schema","plugins","IndentBlock","*Outdent:* %0","has","filter","document","indentBlock","locale","getSelectedBlocks","from","*Indent:* %0","getItems","model","registerDescriptionCallback","checkAttribute"];var ci,li;ci=ai,li=170,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0xc")](){const t=this.editor,e=t[ui("0x17")][ui("0x10")]("TrackChangesEditing");t[ui("0x17")].has("IndentEditing")&&(e.enableCommand(ui("0x14")),e.enableCommand("outdent"));const n=t[ui("0x4")];if(t.plugins[ui("0x0")](ui("0x18"))){for(const n of[ui("0x3"),"outdentBlock"])e[ui("0x13")](n,(()=>{const o=Array[ui("0x6")](this.editor[ui("0x9")][ui("0x2")].selection[ui("0x5")]())[ui("0x1")]((t=>this.editor.model[ui("0x16")][ui("0xb")](t,"blockIndent")));t[ui("0x9")][ui("0x15")]((()=>{for(const t of o)e[ui("0x12")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[ui("0xd")][ui("0xa")]((t=>{const{data:o}=t;if(!o)return;if(ui("0x3")!=o[ui("0xf")]&&ui("0x11")!=o[ui("0xf")])return;const s=t[ui("0x8")]()[0],r=e[ui("0xd")].getItemLabel(s);return ui("0x3")==o.commandName?{type:ui("0xe"),content:Yo(n,ui("0x7"),r)}:"outdentBlock"==o.commandName?{type:"format",content:Yo(n,ui("0x19"),r)}:void 0}))}}}var gi,mi,fi=["editor","plugins","init","enableCommand","input","get"];gi=fi,mi=226,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class bi extends t.Plugin{static get requires(){return[Vs.Input]}[hi("0x4")](){this[hi("0x2")][hi("0x3")][hi("0x1")]("TrackChangesEditing")[hi("0x5")](hi("0x0"))}}const pi=["afterInit","unlink","getRanges","LinkEditing","format","TrackChangesEditing","link","change","plugins","markInlineFormat","*Set link:* %0","getFirstRange","enableCommand","*Remove link*","from","selection","hasAttribute","linkHref","locale","editor","model","isCollapsed","getAttribute","document","registerDescriptionCallback"];var Ei,_i;Ei=pi,_i=408,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return pi[t-=0]};class Ci extends t.Plugin{[Ti("0x11")](){const t=this[Ti("0xb")];if(!t[Ti("0x0")].has(Ti("0x14")))return;const e=t[Ti("0x0")].get(Ti("0x16"));e[Ti("0x4")](Ti("0x17"),((n,o)=>{const s=t[Ti("0xc")][Ti("0xf")][Ti("0x7")];let r=[];if(s[Ti("0xd")]){if(!s[Ti("0x8")](Ti("0x9")))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0x9"),s.getAttribute(Ti("0x9")),t[Ti("0xc")]);r=[e]}}else r=Array[Ti("0x6")](s[Ti("0x13")]());t[Ti("0xc")][Ti("0x18")]((()=>{for(const t of r)e[Ti("0x1")](t,{commandName:Ti("0x17"),commandParams:[o]})}))})),e[Ti("0x4")](Ti("0x12"),(()=>{const n=this[Ti("0xb")][Ti("0xc")],o=n[Ti("0xf")][Ti("0x7")];n[Ti("0x18")]((()=>{let n=[];n=o[Ti("0xd")]?[(0,Vs.findAttributeRange)(o.getFirstPosition(),"linkHref",o[Ti("0xe")]("linkHref"),t.model)]:ms("linkHref",o[Ti("0x3")](),t.model);for(const t of n)e.markInlineFormat(t,{commandName:Ti("0x12"),commandParams:[]})}))})),e._descriptionFactory[Ti("0x10")]((e=>{const{data:n}=e,o=t[Ti("0xa")];if(n){if(Ti("0x17")==n.commandName){const t=n.commandParams[0];return{type:Ti("0x15"),content:Yo(o,Ti("0x2"),'"'+t+'"')}}return Ti("0x12")==n.commandName?{type:Ti("0x15"),content:Yo(o,Ti("0x5"))}:void 0}}))}}const yi=["ListEditing","enableCommand","ELEMENT_LIST_ITEM","blockName","getAttribute","model","todoList","*Outdent:* %0","element","ELEMENT_BULLETED_LIST","*Indent:* %0","numbered","filter","editor","push","end","locale","add","commandName","getSelectedBlocks","nextSibling","createPositionAt","execute","registerDescriptionCallback","*Change to:* %0","todoListChecked","bulleted","name","listItem","value","TrackChangesEditing","get","from","*Check item*","_descriptionFactory","plugins","format","numberedList","replace","listIndent","commands","ELEMENT_NUMBERED_LIST","todo","findIndex","previousSibling","commandParams","document","paragraph","checkChild","checkTodoList","listType","has","forceValue","markBlockFormat","TodoListEditing","schema","change","parent","bulletedList","List","indentList","selection","afterInit","length","outdentList","ELEMENT_TODO_LIST","createRange"];var ki,Ai;ki=yi,Ai=290,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x28")](){const t=this[vi("0x3a")],e=t[vi("0x3d")];if(!t[vi("0xd")][vi("0x1d")](vi("0x2d")))return;const n=t[vi("0xd")][vi("0x9")](vi("0x8")),o=t[vi("0xd")][vi("0x1d")](vi("0x20"));function s(e){return()=>{const o=t[vi("0x32")][vi("0x18")][vi("0x27")],s=t[vi("0x12")][vi("0x9")](e);if(s[vi("0x7")])return void t[vi("0x0")](vi("0x19"),{});const r=e.slice(0,-4),i=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n)[vi("0x1a")](e[vi("0x23")],"listItem")&&!o.isObject(e);var e,o}));o=o[vi("0x39")]((t=>!t.is("element",vi("0x6"))||t[vi("0x31")](vi("0x1c"))!=e));const s=new Set;for(const t of o)t.is(vi("0x35"),vi("0x6"))?s[vi("0x3e")](Si(t)):s.add(t);return Array.from(s)}(o[vi("0x40")](),r,t[vi("0x32")][vi("0x21")]);t[vi("0x32")][vi("0x22")]((()=>{for(const t of i)n[vi("0x1f")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x7")]}],formatGroupId:vi("0x30")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0xa")](t);const n=e[vi("0x15")]((t=>vi("0x6")!=t.name));return n>-1&&(e=e.slice(0,n)),e}(t[vi("0x32")][vi("0x18")][vi("0x27")][vi("0x40")]()),s=t.model[vi("0x2c")](t.model[vi("0x42")](o[0],"before"),t[vi("0x32")][vi("0x42")](o[o[vi("0x29")]-1],vi("0x3c")));t[vi("0x32")][vi("0x22")]((()=>{n[vi("0x1f")](s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[vi("0x41")];for(;t&&t[vi("0x31")]("listIndent")>n[vi("0x31")](vi("0x11"));)e[vi("0x3e")](t),t=t.nextSibling}return Array.from(e)}(o))}))}}n[vi("0x2e")](vi("0xf"),s(vi("0xf"))),n[vi("0x2e")](vi("0x24"),s(vi("0x24"))),o&&n[vi("0x2e")](vi("0x33"),s("todoList")),n[vi("0x2e")](vi("0x26"),r(vi("0x26"))),n[vi("0x2e")](vi("0x2a"),r(vi("0x2a"))),o&&n.enableCommand("checkTodoList",(()=>{const e=t.commands.get(vi("0x1b")),o=Array[vi("0xa")](e._selectedElements);o[vi("0x39")]((t=>t[vi("0x31")](vi("0x3"))!=e.value)),t[vi("0x32")][vi("0x22")]((()=>{for(const t of o)n[vi("0x1f")](t,{commandName:vi("0x1b"),commandParams:[{forceValue:!e.value}]})}))})),n[vi("0xc")].registerElementLabel(vi("0x6"),(t=>Yo(e,vi("0x2f"),t))),n[vi("0xc")][vi("0x1")]((t=>{const{data:n}=t;if(n){if(vi("0xf")==n[vi("0x3f")]||vi("0x24")==n.commandName||"todoList"==n.commandName)switch(n[vi("0x3f")][vi("0x10")](vi("0x25"),"")){case vi("0x4"):return o(Yo(e,vi("0x36")));case vi("0x38"):return o(Yo(e,vi("0x13")));case vi("0x14"):return o(Yo(e,vi("0x2b")))}if(vi("0x26")==n[vi("0x3f")])return{type:vi("0xe"),content:Yo(e,vi("0x37"),Yo(e,vi("0x2f")))};if(vi("0x2a")==n[vi("0x3f")])return{type:vi("0xe"),content:Yo(e,vi("0x34"),Yo(e,vi("0x2f")))};if(vi("0x1b")==n[vi("0x3f")])return n[vi("0x17")][0][vi("0x1e")]?{type:vi("0xe"),content:Yo(e,vi("0xb"))}:{type:"format",content:Yo(e,"*Uncheck item*")}}function o(t){return{type:"format",content:Yo(e,vi("0x2"),t)}}}))}}function Si(t){const e=t.getAttribute(vi("0x11"));if(0==e)return t;let n=t;for(;t[vi("0x16")]&&t[vi("0x16")].is(vi("0x35"),"listItem");){const o=t.previousSibling[vi("0x31")](vi("0x11"));if(o==e)n=t[vi("0x16")];else if(o<e)break;t=t.previousSibling}return n}function Ii(t){const e=[];if(t.is(vi("0x35"),vi("0x6"))&&t.getAttribute("listIndent")>0){let n=t[vi("0x41")];for(;n&&"listItem"==n[vi("0x5")]&&n[vi("0x31")](vi("0x11"))==t[vi("0x31")](vi("0x11"));)e[vi("0x3b")](n),n=n[vi("0x41")]}return e}const Li=["locale","getFirstPosition","handleListStyleCommand","forward","has","get","*Format:* set order to regular","ListPropertiesEditing","type","plugins","length","TrackChangesEditing","listType","_getSuggestionBlocksForListStyle","change","*Format:* set start index to %0","parent","*Format:* set order to reversed","filter","listStyle","enableCommand","styles","listStart","registerDescriptionCallback","handleDescriptions","backward","handleListReversedCommand","_LIST_","flat","markMultiRangeBlockFormat","bind","startIndex","selection","map","_getSuggestionBlocks","createRange","getSelectedBlocks","_getTranslationKeyForListStyle","listItem","commandName","getSiblingNodes","handleListStartCommand","model","commandParams","_descriptionFactory","*Change to:* %0","toUpperCase","listReversed","getAttribute","numbered","list.properties","format","before","afterInit","reversed","editor","createPositionAt","element","document","ListUtils","push","from"];var Ni,Mi;Ni=Li,Mi=296,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x5")](){if(!this[wi("0x7")][wi("0x17")][wi("0x12")](wi("0x15")))return;const t=this[wi("0x7")].config[wi("0x13")](wi("0x2")),e=this[wi("0x7")][wi("0x17")][wi("0x13")](wi("0x19"));t[wi("0x23")]&&e[wi("0x22")](wi("0x21"),this[wi("0x10")][wi("0x2c")](this)),t[wi("0x6")]&&e.enableCommand(wi("0x3d"),this[wi("0x28")][wi("0x2c")](this)),t[wi("0x2d")]&&e[wi("0x22")](wi("0x24"),this[wi("0x37")][wi("0x2c")](this)),e[wi("0x3a")][wi("0x25")](this[wi("0x26")].bind(this))}[wi("0x10")](t,e={}){const n=this.editor[wi("0x17")][wi("0x13")](wi("0x19")),o=this[wi("0x1b")]();this.editor[wi("0x38")][wi("0x1c")]((()=>{n[wi("0x2b")](o,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:wi("0x21")})}))}[wi("0x28")](t,e={}){const n=this[wi("0x7")][wi("0x17")].get(wi("0x19")),o=this._getSuggestionBlocks((t=>t.is("element",wi("0x34"))&&wi("0x1")===t[wi("0x0")](wi("0x1a"))));if(o[wi("0x18")]<1)return;const s=o[wi("0x2f")]((t=>this[wi("0x7")][wi("0x38")].createRange(this[wi("0x7")][wi("0x38")][wi("0x8")](t,"before"),this[wi("0x7")].model[wi("0x8")](t,0))));this[wi("0x7")][wi("0x38")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:wi("0x3d"),commandParams:[{reversed:e[wi("0x6")]}],formatGroupId:"listReversed"})}))}[wi("0x37")](t,e={}){const n=this[wi("0x7")][wi("0x17")][wi("0x13")]("TrackChangesEditing"),o=this[wi("0x30")]((t=>t.is(wi("0x9"),wi("0x34"))&&"numbered"===t[wi("0x0")]("listType")));if(o[wi("0x18")]<1)return;const s=o[wi("0x2f")]((t=>this[wi("0x7")][wi("0x38")][wi("0x31")](this[wi("0x7")].model[wi("0x8")](t,wi("0x4")),this[wi("0x7")][wi("0x38")].createPositionAt(t,0))));this[wi("0x7")].model[wi("0x1c")]((()=>{n[wi("0x2b")](s,{commandName:wi("0x24"),commandParams:[{startIndex:e[wi("0x2d")]}],formatGroupId:wi("0x24")})}))}[wi("0x26")](t){const e=this[wi("0x7")][wi("0xe")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x35")]){case wi("0x21"):o=wi("0x3b"),s={type:wi("0x3"),content:Yo(e,o,Yo(e,this[wi("0x33")](n.commandParams[0][wi("0x16")])))};break;case"listReversed":o=n[wi("0x39")][0].reversed?wi("0x1f"):wi("0x14"),s={type:wi("0x3"),content:Yo(e,o)};break;case wi("0x24"):o=wi("0x1d"),s={type:wi("0x3"),content:Yo(e,o,n[wi("0x39")][0][wi("0x2d")])}}return s}[wi("0x1b")](){var t,e,n,o;const s=this[wi("0x7")][wi("0x17")][wi("0x13")](wi("0xb"));let r=Array[wi("0xd")](this[wi("0x7")][wi("0x38")][wi("0xa")][wi("0x2e")][wi("0x32")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x9"),wi("0x34")))&&r.unshift(...s.getSiblingNodes(this[wi("0x7")][wi("0x38")][wi("0xa")][wi("0x2e")][wi("0xf")](),wi("0x27"))),(null===(e=r[r.length-1])||void 0===e?void 0:e.is(wi("0x9"),wi("0x34")))&&r[wi("0xc")](...s[wi("0x36")](this[wi("0x7")][wi("0x38")].document.selection.getLastPosition(),"forward")),r=[...new Set(r)],(null===(o=null===(n=this.editor[wi("0x38")].document[wi("0x2e")].getFirstPosition())||void 0===n?void 0:n[wi("0x1e")])||void 0===o?void 0:o.is(wi("0x9"),wi("0x34")))&&(r=r[wi("0x20")]((t=>t.is(wi("0x9"),wi("0x34"))))),r}_getSuggestionBlocks(t){const e=this[wi("0x7")][wi("0x17")][wi("0x13")](wi("0xb"));let n=Array[wi("0xd")](this[wi("0x7")].model[wi("0xa")].selection.getSelectedBlocks())[wi("0x20")](t)[wi("0x2f")]((t=>{const n=this[wi("0x7")].model[wi("0x8")](t,0);return[...e[wi("0x36")](n,wi("0x27")),...e.getSiblingNodes(n,wi("0x11"))]}))[wi("0x2a")]();return n=[...new Set(n)],n}[wi("0x33")](t){return"ELEMENT_"+this[wi("0x7")][wi("0x17")][wi("0x13")]("ListUtils").getListTypeFromListStyleType(t)[wi("0x3c")]()+wi("0x29")+t.toUpperCase().replace(/-/g,"_")}}const Fi=["div","data","showSuggestionHighlights","get","enableCommand","conversion","ELEMENT_MEDIA","high","downcastDispatcher","MediaEmbedEditing","has","_descriptionFactory","dataDowncast","for","locale","TrackChangesEditing","plugins","media","attribute:url:media","createEmptyElement","stop"];var Di,Pi;Di=Fi,Pi=439,function(t){for(;--t;)Di.push(Di.shift())}(++Pi);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){const t=this.editor;if(!t[Bi("0x12")][Bi("0xc")](Bi("0xb")))return;const e=t[Bi("0x12")][Bi("0x5")](Bi("0x11")),n=t[Bi("0x10")];e[Bi("0x6")]("mediaEmbed"),e[Bi("0xd")].registerElementLabel(Bi("0x13"),(t=>Yo(n,Bi("0x8"),t))),t[Bi("0x7")][Bi("0xf")](Bi("0xe")).elementToElement({model:Bi("0x13"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x4")])return e[Bi("0x0")](Bi("0x2"))},converterPriority:"high"}),t[Bi("0x3")][Bi("0xa")].on(Bi("0x14"),((t,e,n)=>{n.options[Bi("0x4")]&&t[Bi("0x1")]()}),{priority:Bi("0x9")})}}const Ui=["editor","plugins","mention","enableCommand","get","has","afterInit"];var Gi,Hi;Gi=Ui,Hi=198,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const Wi=function(t,e){return Ui[t-=0]};class zi extends t.Plugin{[Wi("0x4")](){const t=this[Wi("0x5")];t[Wi("0x6")][Wi("0x3")]("MentionEditing")&&t[Wi("0x6")][Wi("0x2")]("TrackChangesEditing")[Wi("0x1")](Wi("0x0"))}}const Vi=["plugins","locale","has","PageBreakEditing","pageBreak","ELEMENT_PAGE_BREAK","TrackChangesEditing","enableCommand","get","registerElementLabel","afterInit"];var Ki,qi;Ki=Vi,qi=171,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x4")](){const t=this.editor;if(!t[Xi("0x5")][Xi("0x7")](Xi("0x8")))return;t[Xi("0x5")][Xi("0x2")](Xi("0x0"))[Xi("0x1")](Xi("0x9"));const e=t[Xi("0x5")][Xi("0x2")](Xi("0x0")),n=t[Xi("0x6")];e._descriptionFactory[Xi("0x3")]("pageBreak",(t=>Yo(n,Xi("0xa"),t)))}}const Qi=["isBlock","editing","includes","TrackChangesEditing","registerDescriptionCallback","insertion","change","Paragraph","options","nodeAfter","filter","blockName","span","addClass","afterInit","mapper","getSelectedBlocks","end","highest","format","insert","markerName","has","checkChild","start","bindElementToMarker","commandName","model","locale","_descriptionFactory","ck-suggestion-marker--active","$text","isLimit","markerRange","type","editor","isObject","activeMarkers","schema","getItemLabel","plugins","get","writer","document","parent","createUIElement","selection","toViewPosition","paragraph","*Insert:* %0","addMarker:suggestion:insertion","downcastDispatcher","name","registerElementLabel","ck-suggestion-marker-split","isTouching","ELEMENT_PARAGRAPH"];var Ji,Zi;Ji=Qi,Zi=114,function(t){for(;--t;)Ji.push(Ji.shift())}(++Zi);const Yi=function(t,e){return Qi[t-=0]};class tx extends t.Plugin{[Yi("0xe")](){const t=this[Yi("0x23")];if(!t[Yi("0x28")][Yi("0x16")](Yi("0x7")))return;const e=t[Yi("0x1c")],n=t[Yi("0x28")][Yi("0x29")](Yi("0x3"));n[Yi("0x1d")][Yi("0x35")](Yi("0x30"),(t=>Yo(e,Yi("0x38"),t))),n.enableCommand("paragraph",((e,o={})=>{const s=t[Yi("0x1b")][Yi("0x2b")],r=o[Yi("0x2e")]||s.selection,i=Array.from(r[Yi("0x10")]())[Yi("0xa")]((t=>{return e=t,(n=this[Yi("0x23")][Yi("0x1b")][Yi("0x26")])[Yi("0x17")](e[Yi("0x2c")],"paragraph")&&!n[Yi("0x24")](e)&&"paragraph"!=e[Yi("0x34")];var e,n}));t[Yi("0x1b")][Yi("0x6")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0x30"),commandParams:[],formatGroupId:Yi("0xb")},fs(t))}))})),n[Yi("0x1d")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Yi("0x30")==n[Yi("0x1a")])return{type:Yi("0x13"),content:Yo(e,"*Change to:* %0",Yo(e,Yi("0x38")))}})),n.enableCommand("insertParagraph"),t[Yi("0x1")][Yi("0x33")].on(Yi("0x32"),ex(t),{priority:"highest"}),t.data[Yi("0x33")].on(Yi("0x32"),((e,n,o)=>{o[Yi("0x8")].showSuggestionHighlights&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x12")});const o=n._descriptionFactory;o[Yi("0x4")]((n=>{if(Yi("0x5")!==n[Yi("0x22")])return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x37")](r)||!s[Yi("0x9")])return;const i=t[Yi("0x1b")][Yi("0x26")],x=s.nodeAfter;return i[Yi("0x0")](x)&&!i[Yi("0x20")](x)&&i[Yi("0x17")](x,Yi("0x1f"))?{type:"insertion",content:Yo(e,Yi("0x31"),o[Yi("0x27")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins.get("TrackChangesEditing"),i=o[Yi("0x21")][Yi("0x18")],x=o[Yi("0x21")][Yi("0x11")],a=t[Yi("0x1b")].schema;if(!i[Yi("0x37")](x)||!i.nodeAfter)return;const c=i.nodeAfter;if(a[Yi("0x0")](c)&&!a[Yi("0x20")](c)&&a[Yi("0x17")](c,Yi("0x1f"))){if(!s.consumable.consume(o[Yi("0x21")],n[Yi("0x34")]))return;const t=s[Yi("0x2a")][Yi("0x2d")](Yi("0xc"),{class:Yi("0x36")}),i=s[Yi("0xf")][Yi("0x2f")](x);e&&r[Yi("0x25")][Yi("0x2")](o.markerName)&&s[Yi("0x2a")][Yi("0xd")](Yi("0x1e"),t),s[Yi("0x2a")][Yi("0x14")](i,t),s[Yi("0xf")][Yi("0x19")](t,o[Yi("0x15")])}}}const nx=["model","RemoveFormatEditing","has","createRangeOn","from","TrackChangesEditing","getAttributeProperties","getAttributes","plugins","isFormatting","afterInit","markInlineFormat","removeFormat","isCollapsed","_descriptionFactory","commandName","getRanges","selection","document","enableCommand","change","schema"];var ox,sx;ox=nx,sx=103,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x11")](){const t=this.editor;if(!t[rx("0xf")][rx("0x9")](rx("0x8")))return;const e=t[rx("0xf")].get(rx("0xc"));e[rx("0x4")]("removeFormat",(n=>{const o=t[rx("0x7")][rx("0x3")][rx("0x2")];o[rx("0x14")]?n():t[rx("0x7")][rx("0x5")]((()=>{const n=Array[rx("0xb")](o[rx("0x1")]());for(const o of n)for(const n of o.getItems())xx(n,t[rx("0x7")][rx("0x6")])&&e[rx("0x12")](t.model[rx("0xa")](n),{commandName:"removeFormat",commandParams:[]})}))})),e[rx("0x15")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&rx("0x13")==n[rx("0x0")])return{type:"format",content:Yo(t.locale,"*Remove all formatting*")}}))}}function xx(t,e){for(const[n]of t[rx("0xe")]()){const t=e[rx("0xd")](n);if(t&&t[rx("0x10")])return!0}return!1}const ax=["get","discardAllSuggestions","acceptSuggestion","TrackChangesEditing","discardSuggestion","enableCommand","editor","plugins","afterInit","RestrictedEditingModeEditing","discardSelectedSuggestions","goToPreviousRestrictedEditingException","has"];var cx,lx;cx=ax,lx=376,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x9")](){const t=this[ux("0x7")];if(!t.plugins[ux("0x0")](ux("0xa")))return;const e=t.plugins[ux("0x1")](ux("0x4"));e.enableCommand(ux("0xc")),e[ux("0x6")]("goToNextRestrictedEditingException");const n=t[ux("0x8")][ux("0x1")](ux("0xa"));n[ux("0x6")]("trackChanges"),n[ux("0x6")](ux("0x3")),n.enableCommand(ux("0x5")),n[ux("0x6")]("acceptAllSuggestions"),n[ux("0x6")](ux("0x2")),n[ux("0x6")]("acceptSelectedSuggestions"),n[ux("0x6")](ux("0xb"))}}const gx=["test","createPositionBefore","consumable","downcastDispatcher","softBreak","enableCommand","bindElementToMarker","plugins","options","editor","locale","getItems","writer","ck-suggestion-marker--active","editing","split","data","toViewPosition","high","showSuggestionHighlights","addMarker:suggestion:deletion","insert","markerName","span","model","element","name","addMarker:suggestion","_descriptionFactory","markerRange","shiftEnter","TrackChangesEditing","ck-suggestion-marker-","requires","ELEMENT_LINE_BREAK","addMarker:suggestion:insertion"];var mx,fx;mx=gx,fx=273,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class bx extends t.Plugin{static get[hx("0xc")](){return[nr.ShiftEnter]}init(){const t=this[hx("0x18")],e=t[hx("0x16")].get(hx("0xa"));e[hx("0x14")](hx("0x9")),t[hx("0x1d")][hx("0x12")].on(hx("0xe"),px(t),{priority:hx("0x21")}),t.editing[hx("0x12")].on(hx("0x23"),px(t),{priority:hx("0x21")}),t[hx("0x1f")][hx("0x12")].on(hx("0x6"),((e,n,o)=>{o[hx("0x17")][hx("0x22")]&&px(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x7")].registerElementLabel(hx("0x13"),(e=>Yo(t[hx("0x19")],hx("0xd"),e)))}}function px(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x16")].get(hx("0xa"));if(!s[hx("0x11")][hx("0xf")](o.markerRange,n[hx("0x5")]))return;const i=t[hx("0x3")];for(const t of o[hx("0x8")][hx("0x1a")]()){if(!t.is(hx("0x4"),hx("0x13")))continue;const n="deletion"==o[hx("0x1")][hx("0x1e")](":")[1]?"merge":hx("0x1e"),x=s[hx("0x1b")].createUIElement(hx("0x2"),{class:hx("0xb")+n}),a=s.mapper[hx("0x20")](i[hx("0x10")](t));e&&r.activeMarkers.includes(o.markerName)&&s.writer.addClass(hx("0x1c"),x),s.writer[hx("0x0")](a,x),s.mapper[hx("0x15")](x,o[hx("0x1")])}}}const Ex=["editor","FORMAT_RESTRICTED_ENABLED","document","format","commandParams","StandardEditingModeEditing","markInlineFormat","commands","plugins","TrackChangesEditing","restrictedEditingException","from","enableCommand","selection","change","get","afterInit","commandName","forceValue","isCollapsed","model"];var _x,Tx;_x=Ex,Tx=265,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x3")](){const t=this[Cx("0x8")],e=t[Cx("0x7")],n=t.locale;if(!t.plugins.has(Cx("0xd")))return;const o=t[Cx("0x10")][Cx("0x2")](Cx("0x11")),s=Cx("0x12"),r=t[Cx("0xf")][Cx("0x2")](s);o[Cx("0x14")](s,((t,n={})=>{const i=e[Cx("0xa")][Cx("0x0")];if(i[Cx("0x6")])return void t(n);const x=void 0!==n[Cx("0x5")]?n.forceValue:!r.value;e[Cx("0x1")]((()=>{const t=Array[Cx("0x13")](i.getRanges());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0xe")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e[Cx("0x4")]==s)return e[Cx("0xc")][0].forceValue?{type:Cx("0xb"),content:Yo(n,Cx("0x9"))}:{type:Cx("0xb"),content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const kx=["locale","includes","has","*Format:* %0","commandName","registerDescriptionCallback","getSelectedBlocks","document","_getRangesWithClasses","StyleUtils","inline","find","value","commands","DataSchema","plugins","add","name","getAncestors","TrackChangesEditing","_descriptionFactory","_getStyleDefinition","config","enableCommand","classes","markInlineFormat","push","toLowerCase","getItems","style","from","getDefinitionsForView","get","isBlock","element","getRanges","editor","styleName","forceValue","style.definitions","format","isCollapsed","markBlockFormat","commandParams","model","change","every","createRangeOn"];var Ax,vx;Ax=kx,vx=457,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{afterInit(){const t=this[Rx("0xb")];if(!t[Rx("0x26")][Rx("0x19")]("Style"))return;const e=t[Rx("0x24")].get("style"),n=t.plugins.get(Rx("0x2a")),o=t[Rx("0x17")],s=t[Rx("0x26")][Rx("0x7")](Rx("0x25")),r=t[Rx("0x26")][Rx("0x7")](Rx("0x20")).normalizeConfig(s,t[Rx("0x2d")][Rx("0x7")](Rx("0xe")));n[Rx("0x2e")](Rx("0x4"),((o,{styleName:i})=>{const x=t[Rx("0x13")][Rx("0x1e")].selection,a=this[Rx("0x2c")](i,r);if(!a)return;if(!e.enabledStyles.includes(i))return;if(x[Rx("0x10")]&&!a[Rx("0x8")])return void o({styleName:i});const c=!e[Rx("0x23")][Rx("0x18")](a[Rx("0x28")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x29")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x18")](o[Rx("0x28")])){n[Rx("0x27")](o);break}}return n}(x[Rx("0x1d")](),a.modelElements);t[Rx("0x13")][Rx("0x14")]((()=>{for(const t of e)n[Rx("0x11")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[Rx("0x5")](x[Rx("0xa")]());if(!c){const n=Array[Rx("0x5")](s[Rx("0x6")](a[Rx("0x9")],!1))[0].model,o=[];for(const s of e){const e=this[Rx("0x1f")](t[Rx("0x13")],s,a[Rx("0x2f")],n);o[Rx("0x1")](...e)}e=o}t.model[Rx("0x14")]((()=>{for(const t of e)n[Rx("0x0")](t,{commandName:Rx("0x4"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x2b")][Rx("0x1c")]((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x1b")])return e[Rx("0x12")][0][Rx("0xd")]?{type:Rx("0xf"),content:Yo(o,Rx("0x1a"),e.commandParams[0][Rx("0xc")][Rx("0x2")]())}:{type:Rx("0xf"),content:Yo(o,"*Remove format:* %0",e[Rx("0x12")][0][Rx("0xc")][Rx("0x2")]())}}))}[Rx("0x2c")](t,e){let n=e.block[Rx("0x22")]((e=>e.name===t));return n||(n=e[Rx("0x21")][Rx("0x22")]((e=>e[Rx("0x28")]===t))),n}[Rx("0x1f")](t,e,n,o){const s=[];for(const r of e[Rx("0x3")]()){const e=r.getAttribute(o);e&&n[Rx("0x15")]((t=>e.classes[Rx("0x18")](t)))&&s[Rx("0x1")](t[Rx("0x16")](r))}return s}}const Ix=["_getCoordsForCells","ELEMENT_TABLE_WITH_TEXT","isInContent","hasAttribute","createTableWalker","options","ELEMENT_TABLE","item","values","ELEMENT_TABLE_ROW_WITH_TEXT","discard","end","_getSuggestionCoords","setSelection","*Insert:* %0","_suggestionFactory","element","_descriptionFactory","map","minRow","root","oldRange","removeClass","createRangeIn","registerElementLabel","MAX_SAFE_INTEGER","ELEMENT_TABLE_ROW","some","afterInit","maxRow","cell","ELEMENT_TABLE_COLUMN","toLowerCase","enqueueChange","_splitMarkerName","markMultiRangeInsertion","isArray","isEqual","selectTableColumn","colspan","getCellLocation","nodeAfter","addRange","subType","MIN_SAFE_INTEGER","left","tablePaste","span","selection","addClass","document","getSuggestion","insertTableColumnLeft","_acceptFormatSuggestionCallbackFactory","getAttribute","$graveyard","removeTableRow","change","push","type","accept","registerPostFixer","getSelectionAffectedTableCells","findAncestor","first","insertion","includes","length","rowspan","last","*Remove:* %0","substr","registerCustomCallback","rootName","join","editor","commands","enableCommand","classes","fromRange","getChildren","above","has","$textProxy","getRowIndexes","createPositionAt","startsWith","get","min","getContainedElement","addMarker:suggestion","every","execute","from","tableCell","_tablePostFixingSubtypes","insertTableRowBelow","table","getItems","tableColumn","refresh","ELEMENT_TABLE_COLUMN_WITH_TEXT","suggestion","removeTableColumn","tableRow","_tableSuggestions","plugins","selectTableRow","insertTableRowAbove","markMultiRangeDeletion","deletion","order","differ","TableUtils","name","isIntersectingWithRange","detach","nodeBefore","model","getRanges","insertTableColumnRight","data","filter","writer","_setupColumnsRowsFixing","isTouching","showSuggestionHighlights","registerDescriptionCallback","getChangedMarkers","getColumnIndexes","createRangeOn","start","max","change:data"];var Lx,Nx;Lx=Ix,Nx=119,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x6e")]=[Mx("0x77"),Mx("0x72")],this[Mx("0x78")]=new Set}[Mx("0x2b")](){const t=this[Mx("0x5a")],e=t[Mx("0x85")][Mx("0x41")].selection;if(!t[Mx("0x79")][Mx("0x61")]("TableEditing"))return;const n=t.locale,o=t[Mx("0x79")].get("TrackChangesEditing"),s=t[Mx("0x79")].get(Mx("0x80"));o._descriptionFactory[Mx("0x27")]("table",(t=>Yo(n,Mx("0x15"),t))),this._setupColumnsRowsFixing(),o.enableCommand("insertTable"),o[Mx("0x5c")](Mx("0x7a")),o[Mx("0x5c")](Mx("0x35"));for(const n of[Mx("0x7b"),Mx("0x6f")]){const r=t[Mx("0x5b")].get(n);o[Mx("0x5c")](n,(n=>{t.model.change((t=>{n();const i=Mx("0x60")===r[Mx("0x7e")],x=s[Mx("0x4d")](e),a=s[Mx("0x63")](x),c=i?a[Mx("0x4f")]-1:a.last+1,l=x[0][Mx("0x4e")](Mx("0x70")),u=s[Mx("0x13")](l,{startRow:c,endRow:c}),d=Array[Mx("0x6c")](u)[Mx("0x21")]((e=>t[Mx("0xb")](e[Mx("0x2d")])));o.markMultiRangeInsertion(d,"tableRow")}))}))}for(const n of[Mx("0x43"),Mx("0x1")]){const r=t[Mx("0x5b")][Mx("0x66")](n);o[Mx("0x5c")](n,(n=>{t.model[Mx("0x48")]((t=>{n();const i=Mx("0x3c")===r[Mx("0x7e")],x=s[Mx("0x4d")](e),a=s[Mx("0xa")](x),c=i?a[Mx("0x4f")]-1:a.last+1,l=x[0][Mx("0x4e")](Mx("0x70")),u=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Mx("0x6c")](u)[Mx("0x21")]((e=>t[Mx("0xb")](e.cell)));o[Mx("0x32")](d,Mx("0x72"))}))}))}for(const n of[Mx("0x47"),"removeTableColumn"]){const r=n.substr(11),i=r[Mx("0x2f")](),x=i[Mx("0x56")](0,3)+Mx("0x3e"),a=Mx("0x70")+r,c="min"+r,l=Mx("0xd")+r;o[Mx("0x5c")](n,(()=>{t.model[Mx("0x48")]((t=>{const r=s[Mx("0x4d")](e),u=r[0][Mx("0x4e")](Mx("0x70"));let d;if("removeTableRow"==n){const t=s[Mx("0x63")](r);d={startRow:t[Mx("0x4f")],endRow:t[Mx("0x54")],includeAllSlots:!0}}else{const t=s[Mx("0xa")](r);d={startColumn:t[Mx("0x4f")],endColumn:t[Mx("0x54")],includeAllSlots:!0}}const g=s.createTableWalker(u,d),m=Array[Mx("0x6c")](g)[Mx("0x21")]((({cell:t})=>t)),f=Ox(m.filter((t=>t.hasAttribute(x)))),h=Ox(m.filter((t=>!t[Mx("0x12")](x))))[Mx("0x21")]((e=>t[Mx("0xb")](e))),b=o[Mx("0x7c")](h,a);if(b&&(Mx("0x77")==b[Mx("0x3a")]||Mx("0x72")==b[Mx("0x3a")])){const e=this[Mx("0x1b")](b);for(const n of f){const o=t[Mx("0xb")](n),r=s[Mx("0x37")](n),a=n[Mx("0x45")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&b[Mx("0x39")](o)}}}))}))}function r(n){const o=Array[Mx("0x6c")](e[Mx("0x0")]()).map((t=>i.LiveRange.fromRange(t)));t[Mx("0x85")].change((e=>{const s=e.batch;n=n[Mx("0x3")]((t=>Mx("0x46")!=t[Mx("0x23")][Mx("0x58")])),e[Mx("0x1c")](n),t[Mx("0x5b")][Mx("0x66")](Mx("0x47"))[Mx("0x73")](),t.execute("removeTableRow",{forceDefaultExecution:!0}),t[Mx("0x85")][Mx("0x30")]((()=>{t.model.enqueueChange(s,(t=>{const e=o.filter((t=>Mx("0x46")!=t[Mx("0x23")][Mx("0x58")]));e.length>0&&t[Mx("0x1c")](e);for(const t of o)t[Mx("0x83")]()}))}))}))}function a(n){t[Mx("0x85")][Mx("0x48")]((o=>{const s=Array[Mx("0x6c")](e[Mx("0x0")]())[Mx("0x21")]((t=>i.LiveRange[Mx("0x5e")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Mx("0x49")](e);for(const e of r)Mx("0x46")!=e[Mx("0x23")][Mx("0x58")]&&(o[Mx("0x1c")](o[Mx("0x64")](e,0)),t[Mx("0x5b")].get("removeTableColumn")[Mx("0x73")](),t.execute(Mx("0x76"),{forceDefaultExecution:!0}));const x=s[Mx("0x3")]((t=>"$graveyard"!=t[Mx("0x23")][Mx("0x58")]));x[Mx("0x52")]>0&&o[Mx("0x1c")](x);for(const t of s)t[Mx("0x83")]()}))}function c(t,e){return e[Mx("0x6a")]((e=>t[Mx("0x2a")]((t=>t[Mx("0x1a")][Mx("0x34")](e[Mx("0xc")])||e[Mx("0x1a")][Mx("0x34")](t[Mx("0xc")])))))}function l(t,e){return t.some((t=>e[Mx("0x2a")]((e=>t[Mx("0x1a")][Mx("0x6")](e[Mx("0xc")])))))}t.data.downcastDispatcher.on(Mx("0x69"),((t,e,n)=>{if(!n[Mx("0x14")][Mx("0x7")])return;const o=e[Mx("0x16")];if(!o)return;const s=n.mapper.toViewElement(o);function r(t){return Array[Mx("0x33")](t)?t:[t]}s&&Mx("0x6d")===o.name&&(0,x.setHighlightHandling)(s,n[Mx("0x4")],((t,e,n)=>n[Mx("0x40")](r(e[Mx("0x5d")]),t)),((t,e,n)=>n[Mx("0x25")](r(e[Mx("0x5d")]),t)))}),{priority:"highest"}),o[Mx("0x20")][Mx("0x8")]((t=>{if(Mx("0x50")!=t.type&&"deletion"!=t.type)return;const e=t[Mx("0x68")]();if(null!=e&&e.is(Mx("0x1f"),Mx("0x70"))){if(Mx("0x50")==t[Mx("0x4a")]){const e=t.getItems()[Mx("0x3")]((t=>t.is(Mx("0x62"))))[Mx("0x21")]((t=>t.data));if(e[Mx("0x52")])return{type:"insertion",content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x10"),'"'+e[Mx("0x59")](" ")+'"'))}}if("deletion"==t[Mx("0x4a")]){const e=t[Mx("0x71")]()[Mx("0x3")]((t=>t.is(Mx("0x62"))))[Mx("0x21")]((t=>t[Mx("0x2")]));if(e.length)return{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x59")](" ")+'"'))}}}})),o[Mx("0x20")][Mx("0x8")]((t=>{if("tableRow"==t.subType){const e=t[Mx("0x71")]()[Mx("0x3")]((t=>t.is(Mx("0x62"))))[Mx("0x21")]((t=>t[Mx("0x2")])),o=this[Mx("0x1b")](t),s=o[Mx("0x2c")]-o[Mx("0x22")]+1;if("insertion"==t[Mx("0x4a")])return e.length?{type:"insertion",content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x18"),[s,'"'+e[Mx("0x59")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x29"),s))};if(Mx("0x7d")==t[Mx("0x4a")])return e[Mx("0x52")]?{type:"deletion",content:Yo(n,Mx("0x55"),Yo(n,Mx("0x18"),[s,'"'+e[Mx("0x59")](" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0x55"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Mx("0x72")==t.subType){const e=t[Mx("0x71")]()[Mx("0x3")]((t=>t.is(Mx("0x62"))))[Mx("0x21")]((t=>t[Mx("0x2")])),o=this[Mx("0x1b")](t),s=o.maxColumn-o.minColumn+1;if(Mx("0x50")==t.type)return e[Mx("0x52")]?{type:Mx("0x50"),content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x74"),[s,'"'+e[Mx("0x59")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x2e"),s))};if(Mx("0x7d")==t.type)return e[Mx("0x52")]?{type:Mx("0x7d"),content:Yo(n,Mx("0x55"),Yo(n,Mx("0x74"),[s,'"'+e[Mx("0x59")](" ")+'"']))}:{type:Mx("0x7d"),content:Yo(n,Mx("0x55"),Yo(n,Mx("0x2e"),s))}}})),o[Mx("0x1e")][Mx("0x57")](Mx("0x50"),Mx("0x77"),Mx("0x19"),r),o[Mx("0x1e")][Mx("0x57")](Mx("0x7d"),Mx("0x77"),Mx("0x4b"),r),o[Mx("0x1e")][Mx("0x57")](Mx("0x50"),Mx("0x72"),Mx("0x19"),a),o[Mx("0x1e")][Mx("0x57")](Mx("0x7d"),Mx("0x72"),Mx("0x4b"),a),o[Mx("0x1e")][Mx("0x57")](Mx("0x50"),Mx("0x72"),Mx("0x59"),c),o[Mx("0x1e")][Mx("0x57")](Mx("0x7d"),"tableColumn","join",c),o[Mx("0x1e")].registerCustomCallback(Mx("0x50"),Mx("0x77"),Mx("0x59"),l),o[Mx("0x1e")][Mx("0x57")](Mx("0x7d"),"tableRow",Mx("0x59"),l)}[Mx("0x44")](){const t=this.editor,e=t[Mx("0x85")][Mx("0x41")][Mx("0x3f")];return(n,o)=>{t.model[Mx("0x48")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x1a")][Mx("0x84")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start.nodeAfter);const c=s[Mx("0x26")](a);if(Mx("0x46")==c[Mx("0x23")][Mx("0x58")])return;const l=Array.from(e[Mx("0x0")]())[Mx("0x21")]((t=>i.LiveRange[Mx("0x5e")](t)));s.setSelection(c),t[Mx("0x5b")][Mx("0x66")](r)[Mx("0x73")](),x[Mx("0x49")]({forceDefaultExecution:!0}),t[Mx("0x6b")](r,...x);const u=l[Mx("0x3")]((t=>"$graveyard"!=t[Mx("0x23")][Mx("0x58")]));u[Mx("0x52")]>0&&s.setSelection(u);for(const t of l)t.detach()}))}}[Mx("0xf")](t){const e=this[Mx("0x5a")][Mx("0x79")].get(Mx("0x80"));let n=Number[Mx("0x28")],o=Number[Mx("0x3b")],s=Number[Mx("0x28")],r=Number[Mx("0x3b")];for(const i of t){if(Mx("0x46")==i[Mx("0x23")].rootName)continue;const{row:t,column:x}=e[Mx("0x37")](i),a=i[Mx("0x12")](Mx("0x53"))?i[Mx("0x45")]("rowspan")-1:0,c=i[Mx("0x12")](Mx("0x36"))?i[Mx("0x45")](Mx("0x36"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Mx("0x5")](){const t=this[Mx("0x5a")],e=t[Mx("0x79")][Mx("0x66")]("TrackChangesEditing"),n=t[Mx("0x79")][Mx("0x66")]("TableUtils");t.model[Mx("0x41")].on(Mx("0xe"),(()=>{const n=Array.from(t[Mx("0x85")].document[Mx("0x7f")][Mx("0x9")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x31")](t);if(Mx("0x75")!=n)continue;if(null!=o[Mx("0x24")])continue;const i=e[Mx("0x42")](s);this[Mx("0x6e")][Mx("0x51")](r)&&this[Mx("0x78")].add(i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[Mx("0x4e")]("table"),i=n[Mx("0x37")](t);for(const e of this[Mx("0x78")]){const n=e[Mx("0x3a")],x=n[Mx("0x65")](Mx("0x3d")),a=n.substr(x?10:5),c=a[Mx("0x2f")](),l=c[Mx("0x56")](0,3)+Mx("0x3e"),u=Mx("0x67")+a,d="max"+a;if(!e[Mx("0x11")])continue;if(r!=e.getFirstRange()[Mx("0xc")][Mx("0x4e")](Mx("0x70")))continue;if(e[Mx("0x82")](s))continue;const g=t[Mx("0x12")](l)?t[Mx("0x45")](l)-1:0,m=this[Mx("0x1b")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x39")](s),o=!0)}return o};t[Mx("0x85")][Mx("0x41")][Mx("0x4c")]((e=>{let n=!1;for(const s of t.model[Mx("0x41")][Mx("0x7f")].getChanges())if("insert"==s[Mx("0x4a")])if(Mx("0x77")==s[Mx("0x81")])for(const t of s.position[Mx("0x38")][Mx("0x5f")]())n=n||o(t,e);else Mx("0x6d")==s[Mx("0x81")]&&(n=n||o(s.position.nodeAfter,e));return n}))}_getSuggestionCoords(t){return this[Mx("0xf")](t[Mx("0x0")]()[Mx("0x21")]((t=>t[Mx("0xc")].nodeAfter)))}}function Ox(t){return Array[Mx("0x6c")](new Set(t)[Mx("0x17")]())}const Fx=["element","createTableWalker","stop","table","$graveyard","format","requires","_descriptionFactory","accept","mergeTableCellUp","selection","mergeTableCellLeft","mergeTableCellRight","get","formatBlock","fromRange","getSelectionAffectedTableCells","execute","return","author","push","commandName","_tablePostFixingSubtypes","*Split cell:* vertically","length","find","set:isEnabled","refresh","containsRange","commands","locale","markBlockFormat","afterInit","has","insertion","from","enableCommand","createRangeOn","change","getCellLocation","_areMergableCells","TableUtils","forceDefaultExecution","tableCell","low","add","direction","_areSelectedCellsMergable","_suggestionFactory","highest","rootName","registerCustomCallback","document","mergeTableCellDown","getAncestors","deletion","model","plugins","*Merge cells*","detach","mergeTableCells","findAncestor","markMultiRangeBlockFormat","isEnabled","editor","splitTableCellVertically","cell","splitTableCellHorizontally","getRanges","TrackChangesEditing","getFirstPosition","map","value","_acceptFormatSuggestionCallbackFactory","setSelection","root","type"];var Dx,Px;Dx=Fx,Px=100,function(t){for(;--t;)Dx.push(Dx.shift())}(++Px);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x3c")](){return[wx]}[Bx("0x9")](){const t=this.editor,e=t.model[Bx("0x1d")][Bx("0x40")],n=t[Bx("0x7")];if(!t[Bx("0x22")][Bx("0xa")]("TableEditing"))return;const o=t[Bx("0x22")][Bx("0x43")](Bx("0x2e")),s=t[Bx("0x22")].get(Bx("0x12")),r=t[Bx("0x22")][Bx("0x43")](wx);r[Bx("0x4c")][Bx("0x4a")](Bx("0x25")),o[Bx("0xd")](Bx("0x25"),(()=>{const e=s[Bx("0x46")](t[Bx("0x21")][Bx("0x1d")][Bx("0x40")]);t[Bx("0x21")][Bx("0xf")]((()=>{o[Bx("0x27")](e,{commandName:Bx("0x25"),commandParams:[]},[],Bx("0x25"))}))})),t[Bx("0x6")].get("mergeTableCells").on(Bx("0x47"),((e,n)=>{t[Bx("0x6")][Bx("0x43")]("trackChanges").value&&(n[Bx("0x1")]>0&&n[n[Bx("0x1")]-1]&&n[n[Bx("0x1")]-1][Bx("0x13")]||o._isForcedDefaultExecutionBlock||this[Bx("0x18")]()||e[Bx("0x38")]())}),{priority:Bx("0x1a")});for(const e of[Bx("0x3f"),Bx("0x42"),"mergeTableCellDown",Bx("0x41")]){const n=t[Bx("0x6")].get(e);o.enableCommand(e,(()=>{const e=t.model.document.selection[Bx("0x2f")]().getAncestors()[Bx("0x2")]((t=>t.is("element","tableCell"))),s=n[Bx("0x31")];t[Bx("0x21")][Bx("0xf")]((()=>{o[Bx("0x27")]([e,s],{commandName:Bx("0x25"),commandParams:[]},[],Bx("0x25"))}))}))}for(const e of[Bx("0x2a"),Bx("0x2c")]){const n=t.commands.get(e);o[Bx("0xd")](e,(()=>{const r=s.getSelectionAffectedTableCells(t[Bx("0x21")][Bx("0x1d")].selection)[0],i=r[Bx("0x26")](Bx("0x39")),{column:x,row:a}=s[Bx("0x10")](r);let c=[];if("horizontally"==n[Bx("0x17")]){const t=s[Bx("0x37")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0xc")](t)[Bx("0x30")]((t=>t[Bx("0x2b")]))}else{const t=s.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Bx("0xc")](t)[Bx("0x30")]((t=>t[Bx("0x2b")]))}t.model[Bx("0xf")]((t=>{o[Bx("0x8")](t[Bx("0xe")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x3d")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x25")==e.commandName?{type:Bx("0x3b"),content:Yo(n,Bx("0x23"))}:void 0})),o[Bx("0x3d")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x2a")==e[Bx("0x4b")]?{type:"format",content:Yo(n,Bx("0x0"))}:Bx("0x2c")==e[Bx("0x4b")]?{type:"format",content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x32")]();for(const t of["mergeTableCellUp","mergeTableCellRight",Bx("0x1e"),"mergeTableCellLeft"])o[Bx("0x19")][Bx("0x1c")](Bx("0x44"),t,Bx("0x3e"),x);for(const t of[Bx("0x2a"),"splitTableCellHorizontally"])o[Bx("0x19")][Bx("0x1c")](Bx("0x44"),t,"accept",x);o[Bx("0x19")][Bx("0x1c")](Bx("0x44"),"mergeTableCells",Bx("0x3e"),(n=>{t.model.change((o=>{const s=Array[Bx("0xc")](e[Bx("0x2d")]()).map((t=>i.LiveRange[Bx("0x45")](t)));o[Bx("0x33")](n),t[Bx("0x6")].get(Bx("0x25"))[Bx("0x4")](),t[Bx("0x47")]("mergeTableCells",{forceDefaultExecution:!0});const r=s.filter((t=>Bx("0x3a")!=t[Bx("0x34")][Bx("0x1b")]));r[Bx("0x1")]>0&&o[Bx("0x33")](r);for(const t of s)t[Bx("0x24")]()}))}));for(const e of[Bx("0x3f"),Bx("0x1e"),Bx("0x41"),"mergeTableCellRight"]){const n=t[Bx("0x6")][Bx("0x43")](e);n.on(Bx("0x3"),((e,o,s)=>{if(s){const o=t[Bx("0x21")].document[Bx("0x40")][Bx("0x2f")]()[Bx("0x1f")]()[Bx("0x2")]((t=>t.is(Bx("0x36"),Bx("0x14"))));this._areMergableCells(n[Bx("0x31")],o)||(e[Bx("0x48")]=!1,e[Bx("0x38")]())}}),{priority:Bx("0x15")})}}_areSelectedCellsMergable(){const t=this[Bx("0x29")][Bx("0x6")].get(Bx("0x25")),e=this.editor[Bx("0x22")][Bx("0x43")](Bx("0x12"));if(!t[Bx("0x28")])return!1;const n=e[Bx("0x46")](this.editor[Bx("0x21")][Bx("0x1d")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x11")](t,e))return!1;return!0}[Bx("0x11")](t,e){const n=this[Bx("0x29")].plugins[Bx("0x43")](Bx("0x2e")),o=this[Bx("0x29")][Bx("0x21")][Bx("0xe")](t),s=this[Bx("0x29")][Bx("0x21")].createRangeOn(e),r=new Set,i=new Set;for(const t of n.getSuggestions())if((Bx("0xb")==t[Bx("0x35")]||Bx("0x20")==t[Bx("0x35")]||Bx("0x25")==t.subType)&&t.isInContent)for(const e of t[Bx("0x2d")]())e[Bx("0x5")](o,!0)&&r[Bx("0x16")](t[Bx("0x35")]+":"+t.author.id),e.containsRange(s,!0)&&i[Bx("0x16")](t[Bx("0x35")]+":"+t[Bx("0x49")].id);if(r.size!=i.size)return!1;for(const t of r)if(!i[Bx("0xa")](t))return!1;return!0}}const Ux=["editing","document","createPositionAfter","_suggestionFactory","FORMAT_HEADER_ROW","from","mapper","getRowIndexes","table","_descriptionFactory","getChild","format","first","formatBlock","index","name","unbindElementFromMarkerName","removeAttribute","parent","*Format:* %0","writer","editor","headingRows","createRange","consumable","forceValue","FORMAT_REGULAR_COLUMN","commands","ck-suggestion-marker-","getSelectionAffectedTableCells","item","ck-suggestion-marker--active","registerCustomCallback","_acceptFormatSuggestionCallbackFactory","findAncestor","removeClass","last","addMarker:suggestion","_splitMarkerName","createPositionBefore","options","start","markerRange","selection","nodeAfter","addClass","change","getAttribute","locale","removeMarker:suggestion","model","headingColumns","childCount","markerName","registerDescriptionCallback","plugins","createTableWalker","setTableRowHeader","commandName","isBefore","includes","enableCommand","get","markBlockFormat","accept","consume","commandParams","showSuggestionHighlights","setTableColumnHeader","data","TableUtils","value","requires","end","cell","downcastDispatcher","FORMAT_HEADER_COLUMN","getColumnIndexes","getCellLocation","highest","toViewElement"];var Gx,Hx;Gx=Ux,Hx=460,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Wx=function(t,e){return Ux[t-=0]};class zx extends t.Plugin{static get[Wx("0x11")](){return[wx]}afterInit(){const t=this[Wx("0x2f")];if(!t[Wx("0x0")].has("TableEditing"))return;const e=t[Wx("0x4a")],n=t[Wx("0x0")][Wx("0x7")]("TrackChangesEditing"),o=t[Wx("0x0")][Wx("0x7")](Wx("0xf")),s=t.plugins[Wx("0x7")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Wx("0x40")](r[Wx("0x4f")]),c=n.getSuggestion(a);if(!c[Wx("0xe")]||Wx("0xd")!=c[Wx("0xe")].commandName)return;if(r[Wx("0x38")])return void s.stop();if(!i[Wx("0x32")][Wx("0xa")](r[Wx("0x44")],s[Wx("0x29")]))return;const l=r.markerRange[Wx("0x43")][Wx("0x46")],u=r[Wx("0x44")][Wx("0x12")].nodeBefore,d=l[Wx("0x2c")][Wx("0x2c")],{column:g}=o[Wx("0x17")](l),{column:m}=o.getCellLocation(u);for(let s=g;s<=m;s++){const c=o[Wx("0x1")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Wx("0x13")],c=i[Wx("0x20")][Wx("0x19")](s);i[Wx("0x2e")][Wx("0x47")](Wx("0x36")+x,c),e&&i[Wx("0x2e")].setAttribute("data-suggestion",a,c),i[Wx("0x20")].bindElementToMarker(c,r[Wx("0x4f")]),t&&(n.activeMarkers[Wx("0x5")](r[Wx("0x4f")])?i[Wx("0x2e")][Wx("0x47")](Wx("0x39"),c):i.writer[Wx("0x3d")](Wx("0x39"),c))}}}}n[Wx("0x6")](Wx("0x2"),((e,s)=>{const r=o[Wx("0x37")](t[Wx("0x4c")][Wx("0x1b")][Wx("0x45")]),i=o[Wx("0x21")](r),x=r[0].findAncestor(Wx("0x22")),a=x[Wx("0x49")](Wx("0x30"))||0,c=s&&null!==s[Wx("0x33")]?s[Wx("0x33")]:!t[Wx("0x35")][Wx("0x7")](Wx("0x2"))[Wx("0x10")],l=c?i[Wx("0x3e")]:i[Wx("0x26")],u=x[Wx("0x24")](l);let d;if(c){const e=x.getChild(a);if(u[Wx("0x28")]<e.index)return;d=t[Wx("0x4c")][Wx("0x31")](t.model[Wx("0x41")](e[Wx("0x24")](0)),t[Wx("0x4c")][Wx("0x1c")](u.getChild(u[Wx("0x4e")]-1)))}else{const e=x[Wx("0x24")](a-1);if(!e)return;d=t.model.createRange(t[Wx("0x4c")][Wx("0x41")](u[Wx("0x24")](0)),t[Wx("0x4c")].createPositionAfter(e[Wx("0x24")](e[Wx("0x4e")]-1)))}t[Wx("0x4c")].change((()=>{n[Wx("0x8")](d,{commandName:Wx("0x2"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n.enableCommand("setTableColumnHeader",((e,o)=>{const s=t[Wx("0x0")].get(Wx("0xf")),r=s[Wx("0x37")](t[Wx("0x4c")][Wx("0x1b")][Wx("0x45")]),i=s[Wx("0x16")](r),x=r[0][Wx("0x3c")]("table"),a=x[Wx("0x49")](Wx("0x4d"))||0,c=o&&null!==o[Wx("0x33")]?o[Wx("0x33")]:!t[Wx("0x35")].get(Wx("0xd"))[Wx("0x10")];let l;const u=x[Wx("0x24")](0),d=c?i.last:i[Wx("0x26")],g=s[Wx("0x1")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[Wx("0x1f")](g)[0][Wx("0x13")];if(c){const e=u[Wx("0x24")](a);if(m[Wx("0x4")](e))return;l=t.model[Wx("0x31")](t.model.createPositionBefore(e),t.model[Wx("0x1c")](m))}else{const e=u[Wx("0x24")](a-1);if(!e)return;l=t[Wx("0x4c")][Wx("0x31")](t[Wx("0x4c")][Wx("0x41")](m),t[Wx("0x4c")].createPositionAfter(e))}t[Wx("0x4c")][Wx("0x48")]((()=>{n[Wx("0x8")](l,{commandName:Wx("0xd"),commandParams:[{forceValue:c}]},[],Wx("0xd"))}))})),t[Wx("0x1a")][Wx("0x14")].on(Wx("0x3f"),r(),{priority:Wx("0x18")}),t[Wx("0xe")][Wx("0x14")].on("addMarker:suggestion",((t,e,n)=>{n[Wx("0x42")][Wx("0xc")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Wx("0x18")}),t[Wx("0x1a")][Wx("0x14")].on(Wx("0x4b"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[Wx("0x4f")]),i=n.getSuggestion(r);if(!i[Wx("0xe")]||Wx("0xd")!=i[Wx("0xe")][Wx("0x3")])return;const x=o[Wx("0x20")].markerNameToElements(e[Wx("0x4f")]);if(x)for(const t of x)o.writer.removeClass(Wx("0x36")+s,t),o[Wx("0x2e")][Wx("0x3d")](Wx("0x39"),t),o.writer[Wx("0x2b")]("data-suggestion",t),o[Wx("0x20")][Wx("0x2a")](t,e[Wx("0x4f")])}),{priority:Wx("0x18")}),n[Wx("0x23")][Wx("0x50")]((t=>{const{data:n}=t;if(n){if(Wx("0x2")==n.commandName){const t=n.commandParams[0][Wx("0x33")];return o(Yo(e,t?Wx("0x1e"):"FORMAT_REGULAR_ROW"))}if(Wx("0xd")==n.commandName){const t=n[Wx("0xb")][0][Wx("0x33")];return o(Yo(e,Wx(t?"0x15":"0x34")))}}function o(t){return{type:Wx("0x25"),content:Yo(e,Wx("0x2d"),t)}}}));const i=s[Wx("0x3b")]();n._suggestionFactory.registerCustomCallback(Wx("0x27"),"setTableRowHeader",Wx("0x9"),i),n[Wx("0x1d")][Wx("0x3a")](Wx("0x27"),Wx("0xd"),Wx("0x9"),i)}}const Vx=["getChanges","markerToHighlight","insert","TableClipboard","updateMarker","newRange","tablePasteRow","view","document","column","move","oldRange","entries","wrap","join","getMarkers","paragraph","includes","tableCellBackgroundColor","unwrap","activeMarkers","stop","$graveyard","name","content","getChild","push","documentSelection","registerDescriptionCallback","removeRows","markMultiRangeBlockFormat","showSuggestionHighlights","position","previousSibling","plugins","containsRange","low","cell","map","endColumn","fill","row","tableCellVerticalAlignment","endRow","discard","_descriptionFactory","table","accept","registerPostFixer","suggestionLoaded","tableCellHorizontalAlignment","editingDowncast","markMultiRangeInsertion","editor","forceDefaultExecution","listenTo","_splitMarkerName","_createdBatches","nextSibling","_getCoordsForCells","reduce","attributes","tablePasteColumn","formatBlock","markerName","tableCell","schema","tablePasteChainId","some","getShiftedBy","isInContent","getSuggestionCallback","ck-suggestion-marker-insertion","last","from","tablePasteCell","removeColumns","has","options","rows","elementToElement","subType","tableCellBorderWidth","change","insertion","createRangeIn","columns","add","startsWith","Users","insertColumns","trackChanges","conversion","createRangeOn","isEmpty","markMultiRangeDeletion","insertionRanges","dataDowncast","high","createElement","nodeAfter","columnInsertionIndexes","find","get","markerAttributes","suggestion:formatBlock:tablePasteCell","getChangedMarkers","deletion","set","filter","findAncestor","batch","getAllAdjacentSuggestions","markers","first","TableUtils","getSuggestion","getRanges","element","tableCellSuggestion","model","createPositionBefore","end","tablePaste","author","setAttributes","_isForcedDefaultExecutionBlock","afterInit","commands","register","getAttributes","value","createTableWalker","type","getColumns","getSuggestions","ck-suggestion-marker--active","registerCustomCallback","suggestionUnloaded","_suggestionFactory","getItems","getRange","hasSuggestion","getContainedElement","suggestion","getChildren","length","rootName","for","fromEntries","remove","requires","removeMarker","cells","insertContent","differ","createRange","redo","suggestion-td","isEqual"];var Kx,qx;Kx=Vx,qx=468,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x5e"),"tableCellBorderColor","tableCellBorderStyle",Xx("0x3e"),Xx("0x36"),Xx("0x1e"),"tableCellPadding"],Qx=Object[Xx("0x1")]($x[Xx("0x32")]((t=>[t,null])));class Jx extends t.Plugin{static get[Xx("0x3")](){return[wx]}[Xx("0x8b")](){const t=this[Xx("0x41")];if(!t[Xx("0x2e")][Xx("0x59")]("TableClipboard"))return;const n=t[Xx("0x2e")][Xx("0x73")]("TrackChangesEditing"),o=t.plugins[Xx("0x73")](Xx("0x7f")),s=t.plugins.get(wx),r=t[Xx("0x2e")][Xx("0x73")](Xx("0xf"));s._tablePostFixingSubtypes.push(Xx("0x12"),Xx("0x4a")),t.model[Xx("0x4e")][Xx("0x8d")](Xx("0x83"),{allowIn:Xx("0x4d"),allowContentOf:"tableCell",isLimit:!0}),t[Xx("0x68")][Xx("0x5c")]({model:"tableCellSuggestion",view:Xx("0xa")});let i=null;t[Xx("0x84")].on(Xx("0x6"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x9e")]-1];l&&l[Xx("0x42")]||n[Xx("0x8a")]||this[Xx("0x41")][Xx("0x8c")][Xx("0x73")](Xx("0x67"))[Xx("0x8f")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x27")))return!1;const r=s.getTableIfOnlyTableInContent(t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Xx("0x14")].selection);if(!i[Xx("0x9e")])return!1;const x=i[0][Xx("0x7a")](Xx("0x3a")),a=o.getRowIndexes(i),c=o.getColumnIndexes(i),l={startRow:a.first,endRow:a.last,startColumn:c[Xx("0x7e")],endColumn:c[Xx("0x55")]};return 1==i.length&&(l[Xx("0x37")]+=o.getRows(r)-1,l[Xx("0x33")]+=o[Xx("0x92")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x84")],o,r)&&(s[Xx("0x21")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model.change((()=>{t[Xx("0x84")][Xx("0x6")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Xx("0x9e")]&&n.markMultiRangeInsertion(s,Xx("0x12"),{tablePasteChainId:o}),r[Xx("0x9e")]&&n[Xx("0x40")](r,Xx("0x4a"),{tablePasteChainId:o}),a[Xx("0x9e")]&&n[Xx("0x40")](a,Xx("0x87"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x9e")]&&n[Xx("0x6b")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Xx("0x2a")](l[Xx("0x32")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x57"),{tablePasteChainId:o});if(u){const e=u[Xx("0x1b")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x84")][Xx("0x69")](o),i=e[Xx("0x72")]((t=>t[Xx("0x99")]()[Xx("0xb")](r)));i&&n[Xx("0x26")]([i[Xx("0x23")],s])}n[Xx("0x9e")]&&u.setAttribute(Xx("0x74"),Object[Xx("0x1")](n))}i=null})))}),{priority:e.priorities[Xx("0x6e")]+10}),t[Xx("0x2e")][Xx("0x73")](Xx("0xf")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[Xx("0x31")],x=o,a=Zx(r),c=Zx(x);t.return=r;let l=null,u=null;if(c||a)if(a&&!c){s[Xx("0x2")](r[Xx("0x25")](0));for(const t of Array[Xx("0x56")](x.getChildren()))s[Xx("0xe")](t,r,"end");const t=i.rowInsertionIndexes[Xx("0x1d")](n[Xx("0x35")]),e=i[Xx("0x71")][Xx("0x1d")](n[Xx("0x15")]);t||e||(l=s[Xx("0x61")](r))}else c&&!a&&(u=s.createRangeIn(r));else{const t=s[Xx("0x6f")](Xx("0x83")),e=s[Xx("0x6f")]("tableCellSuggestion");s[Xx("0x19")](s[Xx("0x61")](r),e),s.insert(t,r,0);for(const e of Array[Xx("0x56")](x[Xx("0x9d")]()))s[Xx("0xe")](e,t,Xx("0x86"));l=s[Xx("0x69")](t),u=s[Xx("0x69")](e)}const d=Array[Xx("0x56")](x[Xx("0x8e")]()).filter((([t])=>$x.includes(t)));i[Xx("0x5")].push({element:r,attributes:d[Xx("0x9e")]?Object[Xx("0x1")](d):null}),l&&i[Xx("0x6c")].push(l),u&&i.deletionRanges[Xx("0x26")](u)}),{priority:Xx("0x6e")}),o.on(Xx("0x66"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x62")]||1;i[Xx("0x71")]=new Array(a).fill(x)[Xx("0x32")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x90")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges.push(t[Xx("0x84")][Xx("0x69")](e))}),{priority:Xx("0x30")}),o.on("insertRows",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x5b")]||1;i.rowInsertionIndexes=new Array(a)[Xx("0x34")](x)[Xx("0x32")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[Xx("0x26")](t[Xx("0x84")][Xx("0x69")](e))}),{priority:"low"}),n[Xx("0x39")][Xx("0x28")]((e=>{if(e[Xx("0x5d")]&&e[Xx("0x5d")][Xx("0x64")](Xx("0x87")))return e.previous?{}:{type:Xx("0x60"),content:Yo(t.locale,"*Replace table cells*")}}));const x=()=>!1;for(const t of[Xx("0x87"),Xx("0x4a"),Xx("0x12"),Xx("0x57")])n[Xx("0x97")][Xx("0x95")](Xx("0x60"),t,Xx("0x1a"),x),n._suggestionFactory.registerCustomCallback(Xx("0x77"),t,Xx("0x1a"),x),n[Xx("0x97")][Xx("0x95")](Xx("0x4b"),t,Xx("0x1a"),x);n[Xx("0x97")][Xx("0x95")]("formatBlock",Xx("0x57"),Xx("0x38"),x),n._suggestionFactory[Xx("0x95")](Xx("0x4b"),"tablePasteCell",Xx("0x3b"),((e,n,o)=>{const s=e.map((t=>t.getContainedElement()))[Xx("0x79")]((t=>t)),r=new Map(s[Xx("0x32")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x5")])e&&r.set(t,e);else if(o&&o[Xx("0x74")])for(const[e,n]of Object[Xx("0x18")](o[Xx("0x74")])){const o=t[Xx("0x84")][Xx("0x7d")].get(e),s=o?o[Xx("0x99")]().getContainedElement():null;s&&r[Xx("0x78")](s,n)}t.model[Xx("0x5f")]((t=>{for(const[e,n]of r)t[Xx("0x89")]({...Qx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x97")][Xx("0x95")](e,Xx("0x87"),o,((s,r,i)=>{t.model[Xx("0x5f")]((t=>{const x=[];for(const t of s){const e=t.start[Xx("0x70")];e.is("element",Xx("0x83"))&&x[Xx("0x26")](e)}n[Xx("0x97")][Xx("0x53")](e,null,o)(s,r,i);for(const e of x)Xx("0x22")!=e.root[Xx("0x9f")]&&t[Xx("0x1f")](e)}))}))};a("insertion",Xx("0x3b")),a(Xx("0x60"),Xx("0x38")),a(Xx("0x77"),Xx("0x3b")),a(Xx("0x77"),Xx("0x38")),n[Xx("0x97")].registerCustomCallback(Xx("0x60"),Xx("0x12"),Xx("0x38"),(t=>{const e=t[Xx("0x32")]((t=>t.getContainedElement())),n=e[0][Xx("0x7a")](Xx("0x3a")),{minRow:r,maxRow:i}=s[Xx("0x47")](e);o[Xx("0x29")](n,{at:r,rows:i-r+1})})),n._suggestionFactory[Xx("0x95")](Xx("0x60"),"tablePasteColumn",Xx("0x38"),(t=>{const e=t[Xx("0x32")]((t=>t[Xx("0x9b")]())),n=e[0][Xx("0x7a")](Xx("0x3a")),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[Xx("0x58")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e.subType[Xx("0x64")](Xx("0x87")))return;const o=e[Xx("0x49")][Xx("0x4f")],s=n.getSuggestions()[Xx("0x79")]((t=>t.isInContent&&t[Xx("0x49")]&&t[Xx("0x49")].tablePasteChainId==o));s[Xx("0x9e")]&&e[Xx("0x7c")]()[Xx("0x9e")]!=s.length&&s[Xx("0x48")](((t,e)=>(t.next=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[Xx("0x4c")]),s=["ck-suggestion-marker",Xx("0x54")],r=n[Xx("0x20")][Xx("0x1d")](t.markerName);return r&&s[Xx("0x26")](Xx("0x94")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x3d"),c,{priority:Xx("0x6e")}),n.on(Xx("0x96"),c,{priority:Xx("0x6e")}),t.model.document[Xx("0x3c")]((()=>{let e=!1;const o=Array.from(t[Xx("0x84")][Xx("0x14")].differ[Xx("0x76")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n._splitMarkerName(s);if("suggestion"!=o||Xx("0x77")!=i||r[Xx("0x17")])continue;if(!n[Xx("0x9a")](x))continue;const a=n[Xx("0x80")](x)[Xx("0x81")](),c=t[Xx("0x2e")][Xx("0x73")](Xx("0x65")).me;for(const t of n[Xx("0x93")]())if(t[Xx("0x52")]&&t[Xx("0x88")]==c&&Xx("0x4b")==t.type&&"tablePasteCell"==t.subType&&t[Xx("0x81")]().every((t=>a[Xx("0x50")]((e=>e[Xx("0x2f")](t,!0))))))for(const n of t[Xx("0x7c")]())n[Xx("0x52")]&&(n[Xx("0x38")](),e=!0)}return e})),t[Xx("0x84")][Xx("0x14")][Xx("0x3c")]((e=>{const o=t[Xx("0x8c")][Xx("0x73")](Xx("0x9"));if(!o||!o[Xx("0x45")][Xx("0x59")](e[Xx("0x7b")]))return!1;let s=!1;const r=t[Xx("0x2e")].get("Users").me,i=t[Xx("0x84")].document.differ[Xx("0xc")](),x=Array[Xx("0x56")](t[Xx("0x84")][Xx("0x14")][Xx("0x7")][Xx("0x76")]())[Xx("0x79")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x44")](t);return Xx("0x9c")==o&&Xx("0x87")==s&&i==r.id&&!e.oldRange}));for(const t of i){if(Xx("0xe")!=t[Xx("0x91")]||Xx("0x83")!=t[Xx("0x23")]||1!=t[Xx("0x9e")])continue;const n=e[Xx("0x8")](t[Xx("0x2c")],t.position[Xx("0x51")](1));if(!x.find((({data:t})=>t[Xx("0x11")].isEqual(n))))for(const{name:t,data:o}of x)if(n[Xx("0x2f")](o[Xx("0x11")])){e[Xx("0x10")](t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x14")][Xx("0x3c")]((e=>{let o=!1;const s=t[Xx("0x2e")].get(Xx("0x65")).me,r=n.getSuggestions().filter((t=>t[Xx("0x52")]&&t[Xx("0x88")]==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x87")==t.subType)for(const e of t[Xx("0x1b")]()){const n=e.getRange()[Xx("0x9b")]();if(n)if(n.is("element","tableCellSuggestion")&&Zx(n)){t[Xx("0x4")](e.name),i[Xx("0x63")](n),o=!0;const s=n[Xx("0x46")],r=n[Xx("0x2d")],a=s&&s.is("element",Xx("0x83")),c=r&&r.is(Xx("0x82"),Xx("0x83"));a&&!i[Xx("0x59")](s)&&x[Xx("0x63")](s),c&&!i[Xx("0x59")](r)&&x[Xx("0x63")](r)}else n.is(Xx("0x82"),Xx("0x1c"))&&n[Xx("0x6a")]&&(t[Xx("0x4")](e[Xx("0x23")]),o=!0)}else if(Xx("0x57")==t[Xx("0x5d")]){if(!t.attributes||!t[Xx("0x49")].tablePasteChainId)continue;const e=t[Xx("0x49")][Xx("0x74")];if(e&&Object.keys(e)[Xx("0x9e")])continue;const n=t[Xx("0x49")][Xx("0x4f")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x5d")]&&e[Xx("0x5d")].startsWith("tablePaste")){if(!e.attributes[Xx("0x4f")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x49")][Xx("0x4f")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e[Xx("0x2")](t);for(const t of x)e.unwrap(t);return o})),t.conversion.for(Xx("0x3f"))[Xx("0xd")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:Xx("0x6e")}),t.conversion[Xx("0x0")](Xx("0x6d"))[Xx("0xd")]({model:Xx("0x75"),view:(t,e)=>e[Xx("0x5a")][Xx("0x2b")]?l(t,!1):null,converterPriority:Xx("0x6e")});const u=t.editing[Xx("0x13")];this[Xx("0x43")](u[Xx("0x14")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[Xx("0x61")](e[Xx("0x24")])[Xx("0x98")]())t.is(Xx("0x82"),Xx("0xa"))&&n[Xx("0x26")](t);u[Xx("0x5f")]((t=>{for(const e of n)t[Xx("0x16")](t[Xx("0x61")](e),t[Xx("0x85")](e)),t[Xx("0x2")](e)}))}))}}function Zx(t){if(t[Xx("0x6a")])return!0;const e=t[Xx("0x25")](0);return e.is(Xx("0x82"),Xx("0x1c"))&&e[Xx("0x6a")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["columnWidths","commandParams","model","resizeColumnWidths","registerCustomCallback","*Format:* resize table","_suggestionFactory","get","editor","change","getAttribute","locale","registerDescriptionCallback","TrackChangesEditing","afterInit","formatGroupId","handleSuggestionDescription","formatBlock","Users","data","_descriptionFactory","tableWidth","resizeTable","TableColumnResizeEditing","handleResizeTableWidthCommand","accept","discard","markBlockFormat","bind","getSuggestionCallback","getSelectedElement","enableCommand","document","resizeTableWidth","plugins","selection"];var ea,na;ea=ta,na=289,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0xd")](){if(!this[oa("0x7")][oa("0x21")].has(oa("0x16")))return;const t=this[oa("0x7")].plugins.get("TrackChangesEditing");t[oa("0x1e")](oa("0x20"),this[oa("0x17")][oa("0x1b")](this)),t[oa("0x1e")](oa("0x2"),this.handleResizeTableWidthCommand[oa("0x1b")](this)),t[oa("0x5")][oa("0x3")]("formatBlock",oa("0x15"),oa("0x18"),t._suggestionFactory[oa("0x1c")](oa("0x10"),null,"discard")),t[oa("0x5")][oa("0x3")](oa("0x10"),oa("0x15"),oa("0x19"),t[oa("0x5")][oa("0x1c")](oa("0x10"),null,oa("0x18"))),t[oa("0x13")][oa("0xb")](this[oa("0xf")].bind(this))}handleResizeTableWidthCommand(t,e){const n=this[oa("0x7")][oa("0x21")].get(oa("0xc")),o=this.editor[oa("0x21")][oa("0x6")](oa("0x16")),s=e.table||this[oa("0x7")].model[oa("0x1f")][oa("0x22")][oa("0x1d")]();this[oa("0x7")][oa("0x1")][oa("0x8")]((()=>{const r=o.getColumnGroupElement(s);let i=r?o.getTableColumnsWidths(r):null,x=s[oa("0x9")]("tableWidth")||null;const a=e[oa("0x14")]||x,c=e[oa("0x23")]||i,l=this[oa("0x7")].plugins[oa("0x6")](oa("0x11")).me;for(const t of n.getSuggestions()){const e=t.getContainedElement();if(oa("0x15")===t.subType&&e===s){t.author!==l&&t[oa("0x19")]();const e=t[oa("0x12")][oa("0x0")];x=e[0].tableWidth,i=e[0][oa("0x23")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x1a")](s,{commandName:oa("0x20"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],oa("0x15"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0xe")]){const t=oa("0x4");return{type:"format",content:Yo(this.editor[oa("0xa")],t)}}}}const ra=["Template","afterInit","insertTemplate","plugins","has","editor","enableCommand"];var ia,xa;ia=ra,xa=148,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x0")](){const t=this[aa("0x4")];t.plugins[aa("0x3")](aa("0x6"))&&t[aa("0x2")].get("TrackChangesEditing")[aa("0x5")](aa("0x1"))}}const la=["get","insertTableOfContents","enableCommand","locale","TrackChangesEditing","commands","_descriptionFactory","afterInit","plugins","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS"];var ua,da;ua=la,da=385,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x7")](){const t=this.editor;if(!t[ga("0x5")][ga("0x0")](ga("0x1")))return;t[ga("0x8")][ga("0x0")](ga("0x4"))[ga("0x2")](ga("0x1"));const e=t[ga("0x8")][ga("0x0")]("TrackChangesEditing"),n=t[ga("0x3")];e[ga("0x6")][ga("0x9")]("tableOfContents",(t=>Yo(n,ga("0xa"),t)))}}const fa=["isTouching","has","updateMarker","afterInit","from","forward","document","differ","TrackChangesEditing","isEqual","registerPostFixer","plugins","suggestion","createRange","start","title-content","schema","newRange","model","editor","end","nodeBefore","removeMarker","registerElementLabel","_descriptionFactory","ELEMENT_TITLE","element","get"];var ha,ba;ha=fa,ba=320,function(t){for(;--t;)ha.push(ha.shift())}(++ba);const pa=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[pa("0x13")](){const t=this[pa("0x7")];if(!t[pa("0x1b")][pa("0x11")]("Title"))return;const e=t[pa("0x1b")][pa("0xf")](pa("0x18"));e[pa("0xc")][pa("0xb")](pa("0x3"),(()=>Yo(t.locale,pa("0xd")))),t[pa("0x6")][pa("0x16")][pa("0x1a")]((n=>{let o=!1;const s=Array[pa("0x14")](t[pa("0x6")][pa("0x16")][pa("0x17")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(pa("0x0")!==s||!i[pa("0x5")])continue;const x=i[pa("0x5")],a=x[pa("0x8")][pa("0x9")];if(!a||!a.is(pa("0xe"),pa("0x3")))continue;if(!x.start[pa("0x10")](x[pa("0x8")]))continue;const c=t[pa("0x6")][pa("0x4")].getNearestSelectionRange(x[pa("0x8")],pa("0x15"));if(c&&c.isCollapsed){const t=n[pa("0x1")](x.start,c[pa("0x2")]);t[pa("0x19")](x)||(n[pa("0x12")](r,{range:t}),o=!0)}o||(n[pa("0xa")](r),o=!0)}return o}))}}const _a=["editor","enableCommand","afterInit","undo","has","plugins","TrackChangesEditing","UndoEditing"];var Ta,Ca;Ta=_a,Ca=430,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x4")](){const t=this[ya("0x2")],e=t[ya("0x7")].get(ya("0x0"));t[ya("0x7")][ya("0x6")](ya("0x1"))&&(e[ya("0x3")](ya("0x5")),e.enableCommand("redo"))}}const Aa=["TableCaptionEditing","get","requires","plugins","TrackChangesEditing","has","toggleTableCaption","enableCommand","afterInit"];var va,Ra;va=Aa,Ra=405,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x2")](){return[wx]}[Sa("0x8")](){const t=this.editor;t.plugins[Sa("0x5")](Sa("0x0"))&&t[Sa("0x3")][Sa("0x1")](Sa("0x4"))[Sa("0x7")](Sa("0x6"))}}const La=["isFirstBlockOfListItem","_getTranslationKeyForListStyle","*Format:* set order to reversed","listType","TrackChangesEditing","handleListStyleCommand","editor","replace","has","_getSuggestionBlocksForListStyle","plugins","commandName","get","startIndex","getSelectedBlocks","DocumentListPropertiesUtils","listReversed","getAttribute","toUpperCase","_getSuggestionBlocks","afterInit","*Format:* set start index to %0","isListItemBlock","_LIST_","styles","change","document","from","handleDescriptions","bind","type","config","commandParams","listStart","DocumentListPropertiesEditing","markMultiRangeBlockFormat","enableCommand","push","locale","_descriptionFactory","handleListReversedCommand","format","reversed","*Change to:* %0","numbered","length","model","listStyle","list.properties","selection","filter","DocumentListUtils","registerDescriptionCallback","expandListBlocksToCompleteList"];var Na,Ma;Na=La,Ma=206,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x1e")](){if(!this[wa("0x10")][wa("0x14")][wa("0x12")](wa("0x2c")))return;const t=this[wa("0x10")][wa("0x29")][wa("0x16")](wa("0x4")),e=this[wa("0x10")][wa("0x14")][wa("0x16")]("TrackChangesEditing");t[wa("0x22")]&&e[wa("0x2e")](wa("0x3"),this[wa("0xf")][wa("0x27")](this)),t[wa("0x34")]&&e[wa("0x2e")](wa("0x1a"),this[wa("0x32")][wa("0x27")](this)),t.startIndex&&e[wa("0x2e")](wa("0x2b"),this.handleListStartCommand[wa("0x27")](this)),e[wa("0x31")][wa("0x8")](this[wa("0x26")][wa("0x27")](this))}handleListStyleCommand(t,e={}){const n=this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0xe")),o=this[wa("0x13")]();this[wa("0x10")][wa("0x2")].change((()=>{n[wa("0x2d")](o,{commandName:wa("0x3"),commandParams:[{type:e[wa("0x28")]}],formatGroupId:wa("0x3")})}))}handleListReversedCommand(t,e={}){const n=this.editor[wa("0x14")][wa("0x16")](wa("0xe")),o=this[wa("0x10")][wa("0x14")][wa("0x16")]("DocumentListUtils"),s=this[wa("0x1d")]((t=>o[wa("0x20")](t)&&wa("0x0")===t[wa("0x1b")](wa("0xd"))));null!==s&&this[wa("0x10")][wa("0x2")][wa("0x23")]((()=>{n[wa("0x2d")](s,{commandName:wa("0x1a"),commandParams:[{reversed:e[wa("0x34")]}],formatGroupId:"listReversed"})}))}handleListStartCommand(t,e={}){const n=this.editor[wa("0x14")].get(wa("0xe")),o=this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0x7")),s=this[wa("0x1d")]((t=>o[wa("0x20")](t)&&wa("0x0")===t[wa("0x1b")](wa("0xd"))));null!==s&&this[wa("0x10")][wa("0x2")][wa("0x23")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0x2b"),commandParams:[{startIndex:e[wa("0x17")]}],formatGroupId:"listStart"})}))}[wa("0x26")](t){const e=this[wa("0x10")][wa("0x30")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x15")]){case wa("0x3"):o=wa("0x35"),s={type:"format",content:Yo(e,o,Yo(e,this[wa("0xb")](n[wa("0x2a")][0][wa("0x28")])))};break;case wa("0x1a"):o=n[wa("0x2a")][0][wa("0x34")]?wa("0xc"):"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case"listStart":o=wa("0x1f"),s={type:wa("0x33"),content:Yo(e,o,n[wa("0x2a")][0][wa("0x17")])}}return s}[wa("0x13")](){const t=this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0x7"));let e=Array.from(this[wa("0x10")][wa("0x2")][wa("0x24")][wa("0x5")][wa("0x18")]());return e.push(...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0x7"));let n=Array[wa("0x25")](this[wa("0x10")].model.document[wa("0x5")].getSelectedBlocks())[wa("0x6")](t);if(!n[wa("0x1")])return null;n=e[wa("0x9")](n);const o=[];for(const t of n)e[wa("0xa")](t)&&o[wa("0x2f")](t);return o}[wa("0xb")](t){return"ELEMENT_"+this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0x19")).getListTypeFromListStyleType(t)[wa("0x1c")]()+wa("0x21")+t[wa("0x1c")]()[wa("0x11")](/-/g,"_")}}const Fa=["_suggestionFactory","getSuggestions","discard","document","data","tableCellWidth","getAttribute","getFirstPosition","selection","tableAlignment","registerCustomCallback","tableCellPadding","tableCellVerticalAlignment","formatBlock","handleSuggestionDescription","join","removeAttribute","tableCellHorizontalAlignment","tableProperties","markBlockFormat","tableCellHeight","model","locale","TableCellPropertiesEditing","*Format:* change table properties","get","tableCellBorderColor","getSuggestionCallback","has","tableBorderStyle","*Format:* change table cell properties","findAncestor","_handlePropertyChange","start","subType","_getSuggestion","tableBorderWidth","TrackChangesEditing","getSelectionAffectedTableCells","enqueueChange","accept","tableCellProperties","plugins","TableUtils","format","TrackChangesTableProperties","editor","enableCommand","registerDescriptionCallback","_descriptionFactory","tableCellBorderWidth","tableCellBorderStyle","handleDiscardAction","tableBackgroundColor"];var Da,Pa;Da=Fa,Pa=376,function(t){for(;--t;)Da.push(Da.shift())}(++Pa);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x14")]=["tableBorderColor",Ba("0x1f"),Ba("0x26"),Ba("0xb"),"tableWidth","tableHeight",Ba("0x1")],this[Ba("0x2b")]=[Ba("0x1c"),Ba("0x35"),Ba("0x34"),Ba("0xd"),Ba("0x7"),Ba("0x16"),"tableCellBackgroundColor",Ba("0x13"),Ba("0xe")]}static get pluginName(){return Ba("0x2f")}afterInit(){const t=this[Ba("0x30")][Ba("0x2c")][Ba("0x1b")]("TrackChangesEditing");if(this[Ba("0x30")][Ba("0x2c")].has("TablePropertiesEditing")){for(const e of this.tableProperties)t.enableCommand(e,((t,n)=>{const o=this[Ba("0x30")][Ba("0x17")][Ba("0x5")].selection[Ba("0x9")]()[Ba("0x21")]("table");this[Ba("0x22")](e,[o],this[Ba("0x14")],Ba("0x14"),t,n)}));t._suggestionFactory[Ba("0xc")](Ba("0xf"),Ba("0x14"),"accept",t[Ba("0x2")][Ba("0x1d")](Ba("0xf"),null,Ba("0x4"))),t[Ba("0x2")][Ba("0xc")](Ba("0xf"),"tableProperties","discard",((t,e)=>this.handleDiscardAction(this[Ba("0x14")],t,e))),t[Ba("0x2")].registerCustomCallback("formatBlock",Ba("0x14"),Ba("0x11"),(()=>!1))}if(this[Ba("0x30")][Ba("0x2c")][Ba("0x1e")](Ba("0x19"))){for(const e of this[Ba("0x2b")])t[Ba("0x31")](e,((t,n)=>{const o=this[Ba("0x30")].plugins.get(Ba("0x2d"))[Ba("0x28")](this[Ba("0x30")][Ba("0x17")][Ba("0x5")][Ba("0xa")]);this[Ba("0x22")](e,o,this[Ba("0x2b")],"tableCellProperties",t,n)}));t[Ba("0x2")].registerCustomCallback("formatBlock",Ba("0x2b"),Ba("0x2a"),t._suggestionFactory.getSuggestionCallback(Ba("0xf"),null,Ba("0x4"))),t._suggestionFactory.registerCustomCallback(Ba("0xf"),Ba("0x2b"),Ba("0x4"),((t,e)=>this[Ba("0x0")](this[Ba("0x2b")],t,e))),t[Ba("0x2")][Ba("0xc")](Ba("0xf"),Ba("0x2b"),"join",(()=>!1))}t[Ba("0x33")][Ba("0x32")]((t=>this[Ba("0x10")](t)))}[Ba("0x22")](t,e,n,o,s,r){const i=this[Ba("0x30")][Ba("0x2c")][Ba("0x1b")](Ba("0x27"));this[Ba("0x30")][Ba("0x17")][Ba("0x29")](r.batch,(()=>{for(const t of e)if(this[Ba("0x25")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x8")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x15")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][Ba("0x23")].nodeAfter,s=n.commandParams[0];this[Ba("0x30")][Ba("0x17")].change((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Ba("0x12")](n,o)}))}[Ba("0x10")](t){if(t[Ba("0x6")])switch(t[Ba("0x24")]){case Ba("0x14"):return{type:Ba("0x2e"),content:Yo(this[Ba("0x30")][Ba("0x18")],Ba("0x1a"))};case Ba("0x2b"):return{type:Ba("0x2e"),content:Yo(this[Ba("0x30")].locale,Ba("0x20"))}}}[Ba("0x25")](t,e){const n=this[Ba("0x30")][Ba("0x2c")][Ba("0x1b")](Ba("0x27"));for(const o of n[Ba("0x3")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===e&&n===t)return o}return null}}const Ua=["catch","consumable","conversion","getRanges","_addSuggestionMarker","skipNestingCheck","containsPosition","_descriptionFactory","chain","markers","track-changes-command-not-found","commentThread","_joinSuggestions","isTouching","length","_onDiscard","removeMarker","commandName","change:data","PENDING_ACTION_SUGGESTION","isIntersectingWithRange","ck-suggestion-marker--active","formatBlock","isAtEnd","deletion","getUser","updateMarker","fromRange","registerCustomCallback","before","elementStart","after","split","resolve","getShiftedBy","return","removeAttribute","init","addHighlight","formatBlock:discard","suggestionUnloaded","getIntersection","authorName","some","howMany","_setSuggestionRange","forward","getSuggestions","marker-count","isEqual","model","insertion","containerElement","removeMarkers","end","data","createElement","schema","TrackChangesEditing","rethrowUnexpectedError","containsRange","_trackFormatChanges","_rangeIsInLocalUserInsertion","markerReady","_saved","isInsideObject","enableCommand","createRange","for","oldRange","keys","type","isObject","open","parent","push","getSuggestionCallback","getItems","_refreshSuggestionsChain","_removeSuggestion","addSuggestionData","_handleNewSuggestionMarker","isCollapsed","updateSuggestion","fire","_setSuggestionData","author","targetPosition","requires","attributes","editing","config","low","formatInline:accept","isAfter","removed","getRange","enqueueChange","addComment","size","discardAllSuggestions","dataToMarker","removeMarker:suggestion:formatBlock","getCustomProperty","ready","ck-suggestion-marker-","deletion:","createSelection","createdAt","accepted","formatBlock:chain","addCommentThread","showSuggestionHighlights","set","PendingActions","suggestion-type","from","element","map","acceptSuggestion","addClass","isDocumentOperation","_suggestions","delete","options","deleteContent","$marker","normal","setTo","change","editingDowncast","forceDefaultExecution","data-suggestion","suggestion","markMultiRangeInsertion","getAncestors","tablePasteChainId","@external","then","_getAuthorFromId","newRange","root","track-changes-adapter-already-set","getCommentThread","markDeletion","batch","trackChangesCommand","track-changes-user-not-found","getChangedMarkers","mapper","accept","Users","authoredAt","remove","discardSelectedSuggestions","bindElementToMarker","_commentsRepository","_joinWithAdjacentSuggestions","assign","start","getSuggestion","suggestionLoaded","_splitMarkerName","stopListening","addSuggestion","isRemovable","values","range","acceptSelectedSuggestions","createPositionBefore","addUser","getMultiRangeId","subType","isNextTo","selection","formatBlock:join","addRange","isInContent","getAttribute","createPositionAt","position","toViewElement","markMultiRangeBlockFormat","rejected","isBlock","fromCharCode","trackChanges.mergeNestedSuggestions","sort","markBlockFormat","get","unbindElementFromMarkerName","isUndo","formatBlock:accept","plugins","ck-suggestion-marker","dataReady","reconvertMarker","consume","$graveyard","editor","formatInline","_addThreadToSuggestion","update:suggestion","dataDowncast","pluginName","widget","deletion:accept","_customCallbacks","refresh","insertContent","substr","markerToData","$textProxy","never","_getExternalAuthor","includes","_createSuggestion","clone","backward","_suggestionState","elementEnd","discardSuggestion","collaboration.channelId","formatInline:discard","ck-suggestion-marker-formatBlock","item","high","getDifference","markerName","_isForcedDefaultExecutionBlock","track-changes-adapter-missing-getsuggestion","setSelection","rootName","getNearestSelectionRange","getFirstRange","isLocal","_suggestionFactory","addMarker:suggestion:formatBlock","suggestion:","setAttribute","lowest","_defaultCallbacks","insertion:discard","multipleBlocks","always","markInlineFormat","createRangeIn","move","filter","insertion:","detach","getAllAdjacentSuggestions","unbind","acceptAllSuggestions","markMultiRangeDeletion","addMarkerName","_enabledCommands","getMarkers","activeMarkers","name","default","writer","creator","add","value","discard","isAtStart","getFirstMarker","_mergeNestedSuggestions","trackChanges.trackFormatChanges","next","isMultiRange","adapter","_findSuggestions","originalSuggestionId","nodeAfter","formatBlock:","error-saving-suggestion-data-suggestion-discarded","isOwn","_registerDefaultCallbacks","_updateSuggestionData","_breakSuggestionMarker","addMarker","isLimit","notReady","multi","elementToElement","buildSuggestion","group","hasComments","differ","clear","removeClass","containsRangeInObject","_adapter","formatInline:","formatGroupId","change:_saved","execute","track-changes-suggestion-data-mismatch","deletion:chain","isArray","_checkSuggestionCorrectness","commands","listenTo","_cutOutSuggestionMarker","_model","define","formatInline:join","document","previous","CommentsRepository","nodeBefore","every","external:","getLastMatchingPosition","join","highest","_editor","has","isBefore","stop","_isDataLoaded","head","locale"];var Ga,Ha;Ga=Ua,Ha=332,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Wa=function(t,e){return Ua[t-=0]};class za extends t.Plugin{static get[Wa("0x51")](){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,zs,Qs,er,Oa,xr,dr,pr,yr,Lr,Dr,Gr,Kr,Jr,ni,xi,di,bi,Ci,Ri,Oi,ji,zi,$i,tx,ix,dx,bx,yx,Sx,wx,jx,zx,Ia,Jx,sa,ma,ja,ca,Ea,ka]}static get[Wa("0xc5")](){return Wa("0x33")}constructor(t){function e(t){return t[Wa("0x6f")]((t=>String[Wa("0xb2")](t))).join("")}super(t),this.set(Wa("0xfb"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[Wa("0x12b")][Wa("0x7a")]((()=>{for(const e of[...s,...o])this[Wa("0x12b")][Wa("0x2")][Wa("0x138")](e)&&t[Wa("0x53")][Wa("0xbd")](e)}))})),this[Wa("0x0")]=new ss(this[Wa("0xc0")][Wa("0x2b")][Wa("0x32")],this[Wa("0xc0")][Wa("0x13d")]),this._adapter=null,this._suggestionFactory=new Va(this[Wa("0xc0")]),this[Wa("0x73")]=new Map,this[Wa("0x95")]=t[Wa("0xba")][Wa("0xb6")]("CommentsRepository"),this._enabledCommands=new Set,this[Wa("0x12b")]=this.editor[Wa("0x2b")],this[Wa("0xd4")]=new WeakMap,this[Wa("0xde")]=!1,t[Wa("0x54")][Wa("0x12c")](Wa("0x106"),Wa("0xfd")),this[Wa("0x36")]=t[Wa("0x54")][Wa("0xb6")](Wa("0x106")),t[Wa("0x54")].define(Wa("0xb3"),!0),this[Wa("0x105")]=t[Wa("0x54")][Wa("0xb6")](Wa("0xb3")),this[Wa("0x8b")]=new d(t,this[Wa("0xf9")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,56,48,54])}[Wa("0x1e")](){const t=this[Wa("0xc0")];t.conversion.for(Wa("0x7b")).markerToHighlight({model:Wa("0x7e"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t.markerName),o=["ck-suggestion-marker",Wa("0x62")+n];let s=3e3;return this[Wa("0xfb")][Wa("0xd0")](t[Wa("0xdd")])&&(o[Wa("0x44")](Wa("0xe")),s=3010),Wa("0x11")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Wa("0x140")][Wa("0x3d")](Wa("0xc4"))[Wa("0x100")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o.options[Wa("0x69")])return;const s=n[Wa("0xda")];if(!s)return;const r=o[Wa("0x8e")][Wa("0xae")](s);t[Wa("0x2b")][Wa("0x32")].isObject(s)&&r&&!r[Wa("0x60")](Wa("0xc6"))&&r.is(Wa("0x2d"))&&(0,x.toWidget)(r,o.writer)}),{priority:Wa("0xdb")})})),t.conversion.for("dataDowncast").markerToHighlight({model:Wa("0x7e"),view:(t,e)=>{if(!e[Wa("0x75")][Wa("0x69")])return null;const{type:n}=this[Wa("0x9b")](t[Wa("0xdd")]);return{classes:[Wa("0xbb"),Wa("0x62")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Wa("0xda")])return;if(o[Wa("0xda")].is(Wa("0xa7")))return void s[Wa("0x13f")][Wa("0xbe")](o[Wa("0xda")],n[Wa("0xfc")]);const r=s.mapper.toViewElement(o[Wa("0xda")]);if(!o[Wa("0xda")].is("element")||!t[Wa("0x2b")][Wa("0x32")][Wa("0xb1")](o[Wa("0xda")])||r.getCustomProperty(Wa("0x1f")))return;const{id:i}=this[Wa("0x9b")](o[Wa("0xdd")]);s[Wa("0xfe")][Wa("0x71")]([Wa("0xbb"),Wa("0xd9")],r),s[Wa("0xfe")][Wa("0xe8")](Wa("0x7d"),i,r),s[Wa("0x8e")][Wa("0x94")](r,o.markerName),e&&(this[Wa("0xfb")][Wa("0xd0")](o.markerName)?s[Wa("0xfe")][Wa("0x71")]("ck-suggestion-marker--active",r):s[Wa("0xfe")][Wa("0x11d")]("ck-suggestion-marker--active",r));for(const e of t[Wa("0x2b")][Wa("0xef")](o[Wa("0xda")])[Wa("0x46")]())s[Wa("0x13f")][Wa("0xbe")](e,n.name);s[Wa("0x13f")][Wa("0xbe")](o[Wa("0xda")],n[Wa("0xfc")])};t[Wa("0x140")][Wa("0x3d")](Wa("0xc4"))[Wa("0x100")]((t=>{t.on(Wa("0xe6"),((t,e,o)=>{o[Wa("0x75")][Wa("0x69")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Wa("0x136")})})),t[Wa("0x140")][Wa("0x3d")](Wa("0xc4"))[Wa("0xcc")]({model:Wa("0x7e"),view:(t,e)=>e[Wa("0x75")].showSuggestionHighlights?null:{group:Wa("0x7e"),name:t[Wa("0xcb")](11)}}),t.conversion.for("upcast")[Wa("0x117")]({view:{name:Wa("0x7e"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Wa("0xe7")+t.getAttribute(Wa("0x6c"))+":"+t.getAttribute("id");return t[Wa("0xab")](Wa("0x29"))&&(n+=":"+t.getAttribute(Wa("0x29"))),e[Wa("0x31")](Wa("0x77"),{"data-name":n})}}),t[Wa("0x140")][Wa("0x3d")]("upcast")[Wa("0x5e")]({view:"suggestion"}),t[Wa("0x140")].for(Wa("0x7b"))[Wa("0x100")]((t=>{t.on(Wa("0xe6"),n(),{priority:Wa("0xdb")})})),t[Wa("0x140")][Wa("0x3d")](Wa("0x7b"))[Wa("0x100")]((t=>{t.on(Wa("0x5f"),((t,e,n)=>{const o=n[Wa("0x8e")].markerNameToElements(e[Wa("0xdd")]);if(o)for(const t of o)t.getCustomProperty(Wa("0x1f"))||(n.writer[Wa("0x11d")]([Wa("0xbb"),Wa("0xd9"),Wa("0xe")],t),n[Wa("0xfe")][Wa("0x1d")]("data-suggestion",t),n[Wa("0x8e")][Wa("0xb7")](t,e[Wa("0xdd")]))}),{priority:Wa("0xdb")})})),t[Wa("0x2b")][Wa("0x12e")].registerPostFixer((e=>{let n=!1;const o=Array[Wa("0x6d")](t[Wa("0x2b")][Wa("0x12e")][Wa("0x11b")][Wa("0x8d")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Wa("0x9b")](x);if(Wa("0x7e")!==o)continue;const u=this[Wa("0x73")].get(l);if(null!=a[Wa("0x85")])if(Wa("0xc1")==c&&(n=n||Xa(a[Wa("0x85")],x,e,t[Wa("0x2b")][Wa("0x32")])),a.newRange[Wa("0x4b")]||Wa("0xbf")==a[Wa("0x85")][Wa("0x86")][Wa("0xe1")]||Wa("0xf")==c&&!Qa(a[Wa("0x85")])||Wa("0x11")==c&&(qa(i=a.newRange)||(r=i)[Wa("0x98")][Wa("0x43")]==r[Wa("0x2f")][Wa("0x131")]&&r[Wa("0x98")].isAtEnd))e[Wa("0x9")](x),n=!0;else{if(!u||!u[Wa("0xaa")])continue;s.add(u)}}var r,i;return s[Wa("0x5c")]>0&&(n=!!this[Wa("0x96")](s)||n),n})),t[Wa("0x2b")].document.registerPostFixer((e=>{let n=!1;for(const o of t[Wa("0x2b")][Wa("0x12e")][Wa("0x11b")].getChanges()){if("insert"!=o[Wa("0x40")])continue;const s=o[Wa("0xad")][Wa("0x1b")](o.length);if(s[Wa("0x10")])for(const r of this[Wa("0x73")].values()){if(r.isMultiRange||!r.isInContent)continue;if(Wa("0xf")!=r[Wa("0x40")])continue;const i=r[Wa("0xe3")]();if(i.start[Wa("0x43")]!=i[Wa("0x2f")][Wa("0x43")]&&i[Wa("0x2f")].isEqual(o.position)){const o=t[Wa("0x2b")][Wa("0x3c")](i.start,s);e[Wa("0x13")](r[Wa("0x104")](),{range:o}),n=!0}}}return n})),t.model[Wa("0x2")].on(Wa("0xc3"),((t,e,n)=>{if(null==n){const{id:t}=this[Wa("0x9b")](e[Wa("0xfc")]),n=this[Wa("0x73")].get(t);n&&n[Wa("0xf8")](e.name)}})),t.model[Wa("0x12e")].on(Wa("0xb"),(()=>{const e=Array[Wa("0x6d")](t[Wa("0x2b")].document[Wa("0x11b")][Wa("0x8d")]())[Wa("0xf1")]((t=>Wa("0x7e")===this._splitMarkerName(t[Wa("0xfc")])[Wa("0x119")]));if(0===e[Wa("0x7")])return;e[Wa("0xb4")](((t,e)=>{const n=t[Wa("0x30")].oldRange,o=e[Wa("0x30")][Wa("0x3e")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[Wa("0x139")](o[Wa("0x98")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Wa("0x9b")](t);if(null===s[Wa("0x3e")]){const e=this[Wa("0x4a")](t);o[Wa("0x100")](e)}else{const t=this[Wa("0x73")][Wa("0xb6")](e);null!==s[Wa("0x85")]||t.isInContent?(n.add(t[Wa("0x13c")]),o[Wa("0x100")](t)):this._removeSuggestion(t)}}o[Wa("0x5c")]>0&&this[Wa("0x47")](o);for(const t of n)this[Wa("0x4d")]("suggestionChanged",t)})),t.model.on("applyOperation",((e,n)=>{const o=n[0];if(!this[Wa("0x73")].size)return;if(!o[Wa("0x72")])return;if(o[Wa("0x8a")][Wa("0xb8")]||!o[Wa("0x8a")][Wa("0xe4")])return;let s,r;switch(o.type){case"insert":s=t[Wa("0x2b")][Wa("0xac")](o[Wa("0xad")]),r=s.getShiftedBy(o[Wa("0x25")]);break;case Wa("0x19"):s=t[Wa("0x2b")][Wa("0xac")](o.splitPosition),r=t[Wa("0x2b")][Wa("0xac")](o.moveTargetPosition);break;case Wa("0xf0"):s=t[Wa("0x2b")][Wa("0xac")](o[Wa("0x50")]),r=s[Wa("0x1b")](o.howMany);break;default:return}const i=t[Wa("0x2b")][Wa("0x3c")](s,r);t[Wa("0x2b")][Wa("0x7a")]((()=>{for(const{suggestion:t,meta:e}of this[Wa("0x10a")](i)){if(t[Wa("0x108")])continue;if(Wa("0xc1")==t[Wa("0x40")])continue;const n=t[Wa("0x30")]&&t[Wa("0x30")].multipleBlocks;("formatBlock"!=t.type||Wa("0x19")==o[Wa("0x40")]&&!n)&&(e.containsRangeInObject||Wa("0x2c")==t[Wa("0x40")]&&e[Wa("0x10f")]||t[Wa("0xe3")]()[Wa("0x35")](i)&&this[Wa("0x112")](t,s,r))}}))}),{priority:Wa("0xe9")}),t[Wa("0x2b")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[Wa("0x7c")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[Wa("0x8b")][Wa("0x101")])return;if(o[Wa("0x4b")])return;const r=t.model.schema,{start:i,end:x}=o[Wa("0xe3")](),a=i[Wa("0x10c")]&&r[Wa("0x114")](i[Wa("0x10c")])?null:r.getNearestSelectionRange(i,Wa("0x27")),c=x[Wa("0x131")]&&r.isLimit(x.nodeBefore)?null:r[Wa("0xe2")](x,Wa("0xd3")),l=t[Wa("0x2b")][Wa("0x3c")](a?a[Wa("0x98")]:i,c?c[Wa("0x2f")]:x);t[Wa("0x2b")][Wa("0x7a")]((e=>{this.markDeletion(l);const n=t[Wa("0x2b")][Wa("0x32")].getNearestSelectionRange(l[Wa("0x98")]);o.is("documentSelection")?e[Wa("0xe0")](n):o[Wa("0x79")](n)})),e[Wa("0x13a")]()}),{priority:e.priorities[Wa("0x78")]+10}),t[Wa("0x2b")].on("insertContent",((e,n)=>{const o=n[n[Wa("0x7")]-1];o&&o.forceDefaultExecution||this[Wa("0xde")]||this[Wa("0x8b")][Wa("0x101")]&&(t[Wa("0x2b")][Wa("0x7a")]((()=>{let o=t[Wa("0x2b")][Wa("0xca")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Wa("0x1c")]=o[Wa("0xd2")]();const s=o.end.nodeBefore,r=t.model[Wa("0x32")];s&&r[Wa("0xb1")](s)&&!r.isObject(s)&&(o=t[Wa("0x2b")][Wa("0x3c")](o[Wa("0x98")],t[Wa("0x2b")].createPositionAt(s,Wa("0x2f")))),this.markInsertion(o)})),e[Wa("0x13a")]())}),{priority:Wa("0xdb")}),this.editor[Wa("0x128")].add("trackChanges",this.trackChangesCommand),this.enableCommand("trackChanges");const o=new b(t,this._suggestions);t.commands[Wa("0x100")]("acceptSuggestion",o),this[Wa("0x3b")](Wa("0x70"));const s=new C(t,this._suggestions);t[Wa("0x128")][Wa("0x100")](Wa("0xd6"),s),this.enableCommand(Wa("0xd6")),t[Wa("0x128")][Wa("0x100")](Wa("0xf6"),new F(t,o,this[Wa("0x73")])),this[Wa("0x3b")](Wa("0xf6")),t[Wa("0x128")][Wa("0x100")](Wa("0x5d"),new F(t,s,this[Wa("0x73")])),this[Wa("0x3b")](Wa("0x5d")),t[Wa("0x128")][Wa("0x100")](Wa("0xa1"),new U(t,o,this[Wa("0x73")])),this[Wa("0x3b")](Wa("0xa1")),t.commands.add(Wa("0x93"),new U(t,s,this[Wa("0x73")])),this[Wa("0x3b")](Wa("0x93"));const r=t.plugins[Wa("0xb6")](Wa("0x130"));this[Wa("0x129")](r,Wa("0x5b"),((t,{threadId:e})=>{const n=this[Wa("0x73")][Wa("0xb6")](e);n&&n[Wa("0x4")]&&1===n.commentThread[Wa("0x7")]&&this[Wa("0x111")](e,{hasComments:!0})}),{priority:Wa("0x55")}),this[Wa("0x129")](r,"removeComment",((t,{threadId:e})=>{const n=this[Wa("0x73")][Wa("0xb6")](e);n&&n.commentThread&&!n[Wa("0x4")][Wa("0x7")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:"low"})}set[Wa("0x109")](t){if(this._adapter)throw new e.CKEditorError(Wa("0x87"),this);this[Wa("0x11f")]=t}get[Wa("0x109")](){return this[Wa("0x11f")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[Wa("0x9f")]())t&&!e[Wa("0xaa")]||n[Wa("0x44")](e);return e?n[Wa("0x6f")]((t=>t.toJSON())):n}[Wa("0x99")](t){const n=this[Wa("0x73")].get(t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}hasSuggestion(t){return this._suggestions[Wa("0x138")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Wa("0x40")][Wa("0x19")](":"),i=this[Wa("0x73")][Wa("0xb6")](n)||this[Wa("0xd1")](s,r,n,e,o);if(this[Wa("0xc2")](i),this[Wa("0x127")](i,s,r||null,e),i[Wa("0x65")]=t[Wa("0x65")],i._isDataLoaded=!0,o&&o[Wa("0x82")]){const t=o[Wa("0x82")],e=this[Wa("0xcf")](t[Wa("0x23")]);i[Wa("0x91")]=t[Wa("0x65")],i[Wa("0x4f")]=e,i.isExternal=!0}else i[Wa("0x91")]=t[Wa("0x65")];switch(t[Wa("0x30")]&&(i.data=t[Wa("0x30")]),t[Wa("0x52")]&&(i[Wa("0x52")]=t[Wa("0x52")]),this[Wa("0x11f")]&&this[Wa("0x11f")][Wa("0x9d")]||(i._saved=!0),this[Wa("0xd4")].get(i)){case"notReady":this._suggestionState[Wa("0x6a")](i,Wa("0xbc"));break;case Wa("0x38"):i[Wa("0xaa")]?(this[Wa("0x47")](new Set([i])),this._joinWithAdjacentSuggestions(new Set([i])),this[Wa("0xd4")][Wa("0x6a")](i,Wa("0x61")),this[Wa("0x4d")](Wa("0x9a"),i)):this._suggestionState[Wa("0x6a")](i,Wa("0x58"))}return i}acceptSuggestion(t){this.forceDefaultExecution((()=>{this.editor[Wa("0x2b")][Wa("0x7a")]((()=>{for(const e of t[Wa("0xf4")]())e[Wa("0x8f")]()}))}))}[Wa("0xd6")](t){this[Wa("0x7c")]((()=>{this[Wa("0xc0")][Wa("0x2b")].change((()=>{for(const e of t[Wa("0xf4")]())e[Wa("0x102")]()}))}))}[Wa("0x3b")](t,n){const o=this.editor.commands[Wa("0xb6")](t);if(!o)throw new e.CKEditorError(Wa("0x3"),this,{commandName:t});this._enabledCommands[Wa("0x100")](o),n&&o.on(Wa("0x123"),((t,e)=>{this[Wa("0x8b")][Wa("0x101")]&&(this[Wa("0xde")]||e.length>0&&e[e[Wa("0x7")]-1]&&e[e[Wa("0x7")]-1][Wa("0x7c")]||(n(((...t)=>o[Wa("0x123")](...t,{forceDefaultExecution:!0})),...e),t[Wa("0x13a")]()))}),{priority:Wa("0xdb")})}forceDefaultExecution(t){let n,o;const s=this[Wa("0xde")];this[Wa("0xde")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[Wa("0x34")](o,this),n}markInsertion(t,n=null,o={}){if(t[Wa("0x4b")])return null;const s=this.editor[Wa("0xba")][Wa("0xb6")](Wa("0x90")).me;for(const{suggestion:e,meta:s}of this._findSuggestions(t,"insertion"))if(s[Wa("0x10f")]){if(!s[Wa("0xa6")]){if(s[Wa("0x11e")]){if(!this[Wa("0x105")]||!tc(e,o))continue;return e}if(tc(e,o))return e;this[Wa("0x112")](e,t[Wa("0x98")],t.end);break}if(n==e.subType&&tc(e,o)){const n=e[Wa("0xe3")]();return n.start[Wa("0x2a")](t.end)?this[Wa("0x26")](e,this[Wa("0x12b")].createRange(t.start,n[Wa("0x2f")])):this[Wa("0x26")](e,this[Wa("0x12b")].createRange(n[Wa("0x98")],t[Wa("0x2f")])),e}}const r=(0,e.uid)(),i=s.id,x=n?Wa("0xf2")+n:Wa("0x2c"),a=this[Wa("0x4e")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}[Wa("0x7f")](t,n=Wa("0x116"),o={}){const s=this.editor[Wa("0xba")].get(Wa("0x90")).me,r=this[Wa("0xe5")][Wa("0x45")](Wa("0x2c"),n,Wa("0x135"));for(const e of this[Wa("0x28")]())if(e[Wa("0x4f")].id==s.id&&Wa("0x2c")==e[Wa("0x40")]&&e[Wa("0xa5")]==n&&tc(e,o)&&(r(e[Wa("0x141")](),t)||r(t,e[Wa("0x141")]()))){for(const n of t)e[Wa("0xa9")](n);return e}for(const{suggestion:e,meta:n}of this[Wa("0x10a")](t,"insertion")){if(!n[Wa("0x10f")])continue;if(!this[Wa("0x105")]&&n[Wa("0x11e")])continue;if(!tc(e,o))continue;let s=!0;for(const n of e[Wa("0x141")]())for(const e of t)if(!n[Wa("0x35")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=Wa("0xf2")+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Wa("0x142")](a,i,x,e,Zo.getMultiRangeId());return c}[Wa("0xee")](t,n,o=null,s={}){if(o=o||$a(n),t[Wa("0x4b")])return null;if(Wa("0xce")===this[Wa("0x36")]){const e=this[Wa("0xe5")][Wa("0x45")](Wa("0xc1"),o,Wa("0x8f"));return this[Wa("0x7c")]((()=>e([t],n,s))),null}const r=this[Wa("0xc0")].plugins.get("Users").me,i=[];if(Wa("0xed")!==this[Wa("0x36")])for(const{suggestion:e,meta:n}of this[Wa("0x10a")](t,Wa("0x2c")))n[Wa("0x10f")]&&!n[Wa("0x3a")]&&i[Wa("0x44")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[Wa("0x22")](o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Wa("0x7")];){const o=n[e].getDifference(t);n.splice(e,1,...o),e+=o[Wa("0x7")]}}return n}(t,i);x[Wa("0x7")]&&this[Wa("0x12b")][Wa("0x7a")]((()=>{for(const t of x){const e=this._suggestionFactory.getSuggestionCallback(Wa("0xc1"),o,Wa("0x8f"));this[Wa("0x7c")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Wa("0x98")],a=t[Wa("0x2f")];for(const{suggestion:e,meta:n}of this[Wa("0x10a")](t,Wa("0xc1"))){if(!n[Wa("0x10f")])continue;if(e[Wa("0xa5")]!=o)continue;if(!tc(e,s))continue;const r=e[Wa("0xe3")]();if(r.containsRange(t,!0))return null;x=x[Wa("0x139")](r[Wa("0x98")])?x:r[Wa("0x98")],a=a[Wa("0x57")](r.end)?a:r[Wa("0x2f")],i?r[Wa("0x98")].isBefore(i[Wa("0xe3")]().start)?(i[Wa("0x2e")](),i=e):e[Wa("0x2e")]():i=e}const c=this[Wa("0x12b")][Wa("0x3c")](x,a);if(i)this[Wa("0x26")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Wa("0x4e")]({id:t,type:Wa("0x120")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker(Wa("0x120")+o,t,i,c)}}return null}[Wa("0xb5")](t,n,o=[],s=null,r={}){n.formatGroupId||(n.formatGroupId=n[Wa("0xa")]),n[Wa("0xec")]=t.is(Wa("0xa0")),s=s||$a(n);const i=o[Wa("0x6f")]((t=>Ja(t,this[Wa("0x12b")]))),x=t.is(Wa("0xa0"))?t:Ja(t,this._model);if(Wa("0xce")===this[Wa("0x36")]){const t=this[Wa("0xe5")][Wa("0x45")](Wa("0xf"),s,Wa("0x8f"));return this[Wa("0x7c")]((()=>t([x],n,r))),null}i[Wa("0x44")](x);let a=!0;for(const t of i)if(!this[Wa("0x37")](t)){a=!1;break}if(a&&Wa("0xed")!==this[Wa("0x36")]){const t=this._suggestionFactory[Wa("0x45")](Wa("0xf"),s,"accept");return this[Wa("0x7c")]((()=>t([x],n,r))),null}let c=null,l=x[Wa("0x98")],u=x[Wa("0x2f")];for(const{suggestion:t,meta:e}of this[Wa("0x10a")](x,Wa("0xf"))){if(!e[Wa("0x10f")])continue;if(e.isNextTo||e[Wa("0x11e")]||e.isInsideObject)continue;if(t[Wa("0x30")][Wa("0x121")]!=n[Wa("0x121")])continue;if(!tc(t,r))continue;const o=t[Wa("0xe3")]();if(t[Wa("0xa5")]==s){if(o[Wa("0x35")](x,!0))return null;l=l[Wa("0x139")](o.start)?l:o[Wa("0x98")],u=u[Wa("0x57")](o.end)?u:o.end,c?o.start[Wa("0x139")](c[Wa("0xe3")]()[Wa("0x98")])?(c[Wa("0x2e")](),c=t):t[Wa("0x2e")]():c=t}else{const e=x[Wa("0x22")](o);this._cutOutSuggestionMarker(t,e)}}const d=this[Wa("0xc0")][Wa("0xba")].get(Wa("0x90")).me,g=(0,e.uid)(),m=d.id;if(c)return this[Wa("0x26")](c,this[Wa("0x12b")][Wa("0x3c")](l,u)),c;{const t=this[Wa("0x4e")]({id:g,type:Wa("0x10d")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Wa("0x142")](Wa("0x10d")+s,g,m,this[Wa("0x12b")][Wa("0x3c")](l,u)),t}}[Wa("0xaf")](t,n,o=[],s=null,r={}){n[Wa("0x121")]||(n[Wa("0x121")]=n[Wa("0xa")]);const i=t[0];n[Wa("0xec")]=i.is(Wa("0xa0")),s=s||$a(n);const x=o.map((t=>Ja(t,this[Wa("0x12b")]))),a=i.is("range")?t:t.map((t=>Ja(t,this[Wa("0x12b")])));if(Wa("0xce")===this[Wa("0x36")]){const t=this[Wa("0xe5")][Wa("0x45")]("formatBlock",s,Wa("0x8f"));return this[Wa("0x7c")]((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[Wa("0x37")](t)){c=!1;break}if(c&&Wa("0xed")!==this[Wa("0x36")]){const t=this[Wa("0xe5")].getSuggestionCallback(Wa("0xf"),s,Wa("0x8f"));return this[Wa("0x7c")]((()=>t(a,n,r))),null}const l=this[Wa("0xc0")][Wa("0xba")][Wa("0xb6")](Wa("0x90")).me;for(const t of this[Wa("0x28")]()){if(t[Wa("0x4f")].id!=l.id)continue;if(Wa("0xf")!=t[Wa("0x40")]||t[Wa("0x30")][Wa("0x121")]!=n[Wa("0x121")])continue;if(!tc(t,r))continue;const e=t[Wa("0xa5")]==s;for(let n=0;n<a[Wa("0x7")];n++){const o=a[n];for(const s of t[Wa("0xfa")]()){const r=s[Wa("0x59")]();if(o[Wa("0x2a")](r)){e?(a.splice(n,1),n--):t[Wa("0x9")](s[Wa("0xfc")]);break}}}}if(0==a[Wa("0x7")])return null;const u=this[Wa("0xe5")][Wa("0x45")](Wa("0xf"),s,"join");for(const t of this[Wa("0x28")]())if(t[Wa("0x4f")].id==l.id&&Wa("0xf")==t[Wa("0x40")]&&t[Wa("0x30")].formatGroupId==n[Wa("0x121")]&&t[Wa("0xa5")]==s&&tc(t,r)&&(u(t[Wa("0x141")](),a)||u(a,t[Wa("0x141")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,m=Wa("0x10d")+s,f=this[Wa("0x4e")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Wa("0x142")](m,d,g,t,Zo.getMultiRangeId());return f}[Wa("0x89")](t,n=null,o={}){if(t[Wa("0x4b")])return null;const s=this.editor.plugins[Wa("0xb6")](Wa("0x90")).me,r=new i.LiveRange(t[Wa("0x98")],t[Wa("0x2f")]);for(const{suggestion:t,meta:e}of this[Wa("0x10a")](r,Wa("0x2c")))if(e.isOwn&&!e[Wa("0xa6")])if(t.isMultiRange){const e=t[Wa("0x141")]()[Wa("0xf1")]((t=>Wa("0xbf")!=t[Wa("0x86")][Wa("0xe1")]));if(e[Wa("0x132")]((t=>r.containsRange(t,!0)))&&t[Wa("0x102")](),e.some((t=>t[Wa("0x35")](r,!0)))){const t=this[Wa("0xe5")][Wa("0x45")](Wa("0x11"),n,Wa("0x8f"));return this[Wa("0x7c")]((()=>t([r],null,o))),null}}else{const e=r[Wa("0x22")](t[Wa("0xe3")]());null!==e&&t[Wa("0x8")]([e],null,o)}if(r.detach(),r[Wa("0x4b")]||Wa("0xbf")==r[Wa("0x86")][Wa("0xe1")])return null;let x=null,a=r.start,c=r[Wa("0x2f")];const l=this[Wa("0x10a")](r,Wa("0x11"));for(const{suggestion:t,meta:e}of l){const n=this[Wa("0x12b")][Wa("0x3c")](a,c);if(e[Wa("0x10f")]&&(this[Wa("0x105")]||!e[Wa("0x11e")]&&!e.isInsideObject))if(t[Wa("0x108")]){if(!tc(t,o))continue;let e=!0;for(const o of t[Wa("0x141")]()){if(o.containsRange(n,!0))return t;n[Wa("0x35")](o)||(e=!1)}e&&t[Wa("0x102")]()}else{const e=t.getFirstRange();if(e[Wa("0x35")](n,!0))return t;if(!tc(t,o)){n.containsRange(e)?t[Wa("0x2e")]():e[Wa("0x144")](a)?a=e.end:e[Wa("0x144")](c)&&(c=e[Wa("0x98")]);continue}a=a[Wa("0x139")](e[Wa("0x98")])?a:e.start,c=c[Wa("0x57")](e[Wa("0x2f")])?c:e[Wa("0x2f")],o=Object.assign({},t[Wa("0x52")]),x?e[Wa("0x98")][Wa("0x139")](x[Wa("0xe3")]()[Wa("0x98")])?(x[Wa("0x2e")](),x=t):t[Wa("0x2e")]():x=t}}if(x)return this[Wa("0x26")](x,this._model[Wa("0x3c")](a,c)),x;{const t=(0,e.uid)(),r=this[Wa("0x12b")][Wa("0x3c")](a,c),i=s.id,x=n?Wa("0x63")+n:Wa("0x11"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Wa("0x142")](x,t,i,r),l}}[Wa("0xf7")](t,n="multi",o={}){const s=this[Wa("0xc0")][Wa("0xba")][Wa("0xb6")](Wa("0x90")).me,r=t.map((t=>new i.LiveRange(t[Wa("0x98")],t[Wa("0x2f")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Wa("0x10a")](r,Wa("0x2c")))e[Wa("0x10f")]&&!e[Wa("0xa6")]&&x[Wa("0x100")](t);for(const e of x)if(e.isMultiRange){const s=e[Wa("0x141")]();if((!e[Wa("0x52")]||!e[Wa("0x52")][Wa("0x143")])&&s[Wa("0x132")]((t=>r[Wa("0x24")]((e=>e[Wa("0x35")](t,!0)))))&&e[Wa("0x102")](),r[Wa("0x132")]((t=>s.some((e=>e.containsRange(t,!0)))))){const e=this[Wa("0xe5")][Wa("0x45")](Wa("0x11"),n,Wa("0x8f"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[Wa("0xe3")]();if(r[Wa("0x24")]((e=>e[Wa("0x35")](t,!0)))&&e[Wa("0x102")](),r.every((e=>t[Wa("0x35")](e,!0)))){const t=this[Wa("0xe5")].getSuggestionCallback("deletion",n,Wa("0x8f"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[Wa("0xe5")][Wa("0x45")](Wa("0x11"),n,Wa("0x135"));let c=null;for(const t of this[Wa("0x28")]())if(t[Wa("0x4f")].id==s.id&&t.isInContent&&"deletion"==t[Wa("0x40")]&&t[Wa("0xa5")]==n&&tc(t,o)&&(a(t[Wa("0x141")](),r)||a(r,t[Wa("0x141")]())))if(c){if(t[Wa("0x4")]&&t.commentThread[Wa("0x7")])continue;for(const e of t.getRanges())c.isIntersectingWithRange(e)||c.addRange(e);t[Wa("0x2e")]()}else{c=t;for(const e of r)t[Wa("0xd")](e)||t[Wa("0xa9")](e)}if(c)return c;x[Wa("0x11c")]();for(const{suggestion:t,meta:e}of this[Wa("0x10a")](r,Wa("0x11")))e.isOwn&&(this._mergeNestedSuggestions||!e.containsRangeInObject&&!e[Wa("0x3a")])&&tc(t,o)&&x[Wa("0x100")](t);for(const t of x){const e=t[Wa("0x141")]();if((!o||!o.skipNestingCheck)&&r.every((t=>e[Wa("0x24")]((e=>e[Wa("0x35")](t,!0))))))return t;(!t[Wa("0x52")]||!t[Wa("0x52")][Wa("0x143")])&&e[Wa("0x132")]((t=>r.some((e=>e[Wa("0x35")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=s.id,d=Wa("0x63")+n,g=this[Wa("0x4e")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[Wa("0xf3")](),t[Wa("0x4b")]||Wa("0xbf")==t[Wa("0x86")][Wa("0xe1")]||this[Wa("0x142")](d,l,u,t,Zo[Wa("0xa4")]());return g}[Wa("0x26")](t,e){const n=t[Wa("0x104")]();this[Wa("0x12b")][Wa("0x7a")]((t=>{t[Wa("0x13")](n,{range:e})}))}[Wa("0xc2")](t){const e=t.id,n=this.editor[Wa("0x54")][Wa("0xb6")](Wa("0xd7"));this[Wa("0x95")].hasCommentThread(e)||this[Wa("0x95")][Wa("0x68")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Wa("0x95")][Wa("0x88")](e);o[Wa("0xf5")](Wa("0x9e")),o[Wa("0x9e")]=!1,t[Wa("0x4")]=o}[Wa("0x127")](t,n,o,s){if(t.type!=n||t[Wa("0xa5")]!=o||t[Wa("0xff")].id!=s)throw this[Wa("0xc0")].enableReadOnlyMode(Wa("0x124")),new e.CKEditorError(Wa("0x124"),this)}[Wa("0x12a")](t,n){const o=t[Wa("0xe3")]();if(n[Wa("0x2a")](o))t[Wa("0x2e")]();else if(o[Wa("0x35")](n)){const s=this[Wa("0x12b")].createPositionAt(n[Wa("0x98")][Wa("0x131")],Wa("0x2f"));this[Wa("0x26")](t,this._model[Wa("0x3c")](o[Wa("0x98")],s));const r=(0,e.uid)(),i=t.creator.id,x=t.type+":"+t[Wa("0xa5")];this[Wa("0x4e")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[Wa("0x52")]});const a=this[Wa("0x12b")][Wa("0xac")](n[Wa("0x2f")].parent,Wa("0x18")),c=this._model[Wa("0x3c")](a,o.end);this[Wa("0x142")](x,r,i,c)}else if(o[Wa("0x144")](n[Wa("0x98")])){const e=this[Wa("0x12b")][Wa("0xac")](n[Wa("0x98")][Wa("0x131")],Wa("0x2f"));this[Wa("0x26")](t,this[Wa("0x12b")][Wa("0x3c")](o[Wa("0x98")],e))}else{const e=this._model[Wa("0xac")](n[Wa("0x2f")][Wa("0x43")],Wa("0x18"));this._setSuggestionRange(t,this._model[Wa("0x3c")](e,o[Wa("0x2f")]))}}[Wa("0x37")](t){for(const{suggestion:e,meta:n}of this[Wa("0x10a")](t,Wa("0x2c"))){if(!n[Wa("0x10f")])continue;const o=e[Wa("0x141")]();for(const e of o)if(!t[Wa("0xdc")](e)[Wa("0x7")])return!0}return!1}[Wa("0x84")](t){const n=this[Wa("0xc0")][Wa("0xba")][Wa("0xb6")]("Users")[Wa("0x12")](t);if(!n)throw new e.CKEditorError(Wa("0x8c"),this);return n}[Wa("0xcf")](t){const e=this[Wa("0xc0")].plugins.get(Wa("0x90")),n=(0,r.hashObject)(Wa("0x133")+t);return e[Wa("0x12")](n)||e[Wa("0xa3")]({id:n,name:t})}[Wa("0xd1")](t,e,n,o,s){const r=this[Wa("0x84")](o),i=this[Wa("0xe5")][Wa("0x118")](t,e,n,r,s,(t=>this[Wa("0x111")](n,{attributes:t})));return this.listenTo(i,Wa("0x8f"),(()=>{this[Wa("0x111")](n,{state:Wa("0x66")})}),{priority:Wa("0xdb")}),this[Wa("0x129")](i,"discard",(()=>{this._updateSuggestionData(n,{state:Wa("0xb0")})}),{priority:Wa("0xdb")}),this._suggestions.set(n,i),this[Wa("0xd4")][Wa("0x6a")](i,Wa("0x115")),i}_splitMarkerName(t){const e=t[Wa("0x19")](":");return{group:e[0],type:e[1],subType:e[Wa("0x7")]>=5?e[2]:null,id:e[Wa("0x7")]<5?e[2]:e[3],authorId:e[Wa("0x7")]<5?e[3]:e[4],markerCount:6==e[Wa("0x7")]?e[5]:null}}[Wa("0x112")](t,n,o){const s=t[Wa("0xe3")](),r=s[Wa("0x98")],i=s[Wa("0x2f")];this[Wa("0x26")](t,this[Wa("0x12b")][Wa("0x3c")](r,n));const x=(0,e.uid)(),a=t.creator.id,c=t[Wa("0x40")]+(t.subType?":"+t[Wa("0xa5")]:"");this[Wa("0x4e")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Wa("0x52")],data:t.data}),"formatBlock"==t.type&&(o=this[Wa("0x12b")][Wa("0xa2")](o[Wa("0x43")])),this._addSuggestionMarker(c,x,a,this[Wa("0x12b")][Wa("0x3c")](o,i))}[Wa("0x10a")](t,e=null){const n=[],o=this.editor[Wa("0xba")][Wa("0xb6")]("Users").me;Array[Wa("0x126")](t)||(t=[t]);for(const s of this[Wa("0x28")]()){if(!s.isInContent)continue;if(e&&s[Wa("0x40")]!=e)continue;let r=!1;for(const e of s[Wa("0x141")]()){for(const i of t){const t=i[Wa("0x98")].isEqual(e[Wa("0x2f")])||i[Wa("0x2f")][Wa("0x2a")](e[Wa("0x98")]);if(t||i[Wa("0x22")](e)){const x=i[Wa("0x35")](e)&&Ka(this[Wa("0x12b")][Wa("0x32")],e[Wa("0x98")],i),a=e[Wa("0x35")](i)&&Ka(this._model.schema,i.start,e);n[Wa("0x44")]({suggestion:s,meta:{isOwn:o==s[Wa("0x4f")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[Wa("0x142")](t,e,n,o,s){this[Wa("0x12b")][Wa("0x7a")]((r=>{let i=Wa("0xe7")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Wa("0x113")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Wa("0x48")](t){const e=t[Wa("0x12f")],n=t[Wa("0x107")];t[Wa("0x12f")]=null,null!=e&&(e[Wa("0x107")]=null),t[Wa("0x107")]=null,null!=n&&(n.previous=null),Wa("0x61")==this[Wa("0xd4")][Wa("0xb6")](t)&&(this[Wa("0xd4")][Wa("0x6a")](t,Wa("0x58")),this[Wa("0x4d")](Wa("0x21"),t,e,n))}[Wa("0x4e")](t){const n=t.id,o=this[Wa("0x49")](t);if(this[Wa("0x11f")]&&this[Wa("0x11f")].addSuggestion){const s=this[Wa("0xc0")][Wa("0xba")].get(Wa("0x6b")),r=o[Wa("0x11a")],i=o[Wa("0xa5")]?o[Wa("0x40")]+":"+o[Wa("0xa5")]:o[Wa("0x40")],x=this[Wa("0xc0")][Wa("0x13d")],a=s.add(Yo(x,Wa("0xc"))),c={id:n,type:i,hasComments:r,data:t[Wa("0x30")]||null,originalSuggestionId:t[Wa("0x10b")]||null,attributes:o[Wa("0x52")]};this[Wa("0x11f")][Wa("0x9d")](c).then((t=>{o._saved=!0,s.remove(a),t&&t[Wa("0x65")]&&(this[Wa("0x73")][Wa("0xb6")](n)[Wa("0x65")]=t[Wa("0x65")])}))[Wa("0x13e")]((t=>{throw(0,e.logWarning)(Wa("0x10e")),this.editor[Wa("0x2b")][Wa("0x5a")]({isUndoable:!1},(()=>{o.discard()})),o[Wa("0x9c")](),this[Wa("0x73")][Wa("0x74")](o.id),this[Wa("0xd4")].delete(o),t}))}return o}_updateSuggestionData(t,e){const n=this[Wa("0xc0")][Wa("0xba")].get(Wa("0x6b")),o=this.getSuggestion(t);if(this[Wa("0x11f")]&&this[Wa("0x11f")][Wa("0x4c")])if(o[Wa("0x39")]){const o=n[Wa("0x100")](Yo(this[Wa("0xc0")][Wa("0x13d")],"PENDING_ACTION_SUGGESTION"));this[Wa("0x11f")][Wa("0x4c")](t,e).then((()=>{n[Wa("0x92")](o)}))}else o.on(Wa("0x122"),(()=>{this[Wa("0x111")](t,e)}))}_getSuggestionData(t){if(!this[Wa("0x11f")]||!this[Wa("0x11f")][Wa("0x99")])throw new e.CKEditorError(Wa("0xdf"),this);return this[Wa("0x11f")][Wa("0x99")](t)}[Wa("0x4a")](t){const{id:e,type:n,subType:o,authorId:s}=this[Wa("0x9b")](t),r=this[Wa("0x73")][Wa("0xb6")](e)||this._createSuggestion(n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this._suggestionState[Wa("0xb6")](r)){case Wa("0x115"):this._getSuggestionData(e)[Wa("0x83")]((t=>{let n=Promise[Wa("0x1a")]();t[Wa("0x11a")]&&(n=this[Wa("0x95")].fetchCommentThread({channelId:this[Wa("0xc0")][Wa("0x54")][Wa("0xb6")](Wa("0xd7")),threadId:e})),n[Wa("0x83")]((()=>{this[Wa("0x49")](t)[Wa("0x39")]=!0}))})),this[Wa("0xd4")][Wa("0x6a")](r,"markerReady");break;case Wa("0x58"):this[Wa("0x111")](e,{state:Wa("0x42")});case Wa("0xbc"):this[Wa("0xd4")][Wa("0x6a")](r,Wa("0x61")),this[Wa("0x4d")](Wa("0x9a"),r);break;case Wa("0x61"):this[Wa("0x4d")]("suggestionChanged",r)}return r[Wa("0xf8")](t),r}[Wa("0x47")](t){const e=Array[Wa("0x6d")](t)[Wa("0xf1")]((t=>!t[Wa("0x108")])),n=this.getSuggestions({skipNotAttached:!0})[Wa("0xf1")]((t=>!t[Wa("0x108")])),o=n.filter((e=>!t[Wa("0x138")](e))),s=new Map(n[Wa("0x6f")]((t=>[t,this[Wa("0xe5")].getSuggestionCallback(t[Wa("0x40")],t[Wa("0xa5")],Wa("0x1"))]))),r=new Map(n[Wa("0x6f")]((t=>[t,t[Wa("0xe3")]()]))),i=new Set,x=new Set;for(let t=0;t<e[Wa("0x7")];t++)a(e[t],e,t+1);for(let t=0;t<e[Wa("0x7")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[Wa("0x138")](n)&&n[Wa("0x12f")]&&(n[Wa("0x12f")].next===n&&(n[Wa("0x12f")][Wa("0x107")]=null),n[Wa("0x12f")]=null),!i[Wa("0x138")](n)&&n[Wa("0x107")]&&(n[Wa("0x107")][Wa("0x12f")]===n&&(n.next[Wa("0x12f")]=null),n[Wa("0x107")]=null)}function a(t,e,n){for(let o=n;o<e[Wa("0x7")];o++){const n=c(t,e[o]);n&&(n[0][Wa("0x107")]=n[1],n[1][Wa("0x12f")]=n[0],i[Wa("0x100")](n[0]),x[Wa("0x100")](n[1]))}}function c(t,e){if(t.author.id!==e[Wa("0x4f")].id)return null;const n=s[Wa("0xb6")](t)(t,e,r[Wa("0xb6")](t),r[Wa("0xb6")](e));return n&&s[Wa("0xb6")](e)(t,e,r[Wa("0xb6")](t),r.get(e))?n[1][Wa("0x4")]&&n[1][Wa("0x4")][Wa("0x7")]?null:n:null}}[Wa("0x96")](t){const e=Array.from(t),n=this.getSuggestions({skipNotAttached:!0}),o=n[Wa("0xf1")]((e=>!t[Wa("0x138")](e))),s=new Map(e[Wa("0x6f")]((t=>[t,this._suggestionFactory[Wa("0x45")](t[Wa("0x40")],t.subType,Wa("0x135"))]))),r=new Map(n.map((t=>[t,t[Wa("0x141")]()])));for(let t=0;t<e[Wa("0x7")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Wa("0x7")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[Wa("0x7")];i++){const o=n[i];if(o.type!==e[Wa("0x40")]||o[Wa("0x4f")].id!==e[Wa("0x4f")].id||o[Wa("0xa5")]!==e.subType)continue;if(!Ya(e,o))continue;const x=s.get(e),a=r[Wa("0xb6")](e),c=r.get(o),l=e.commentThread&&e.commentThread[Wa("0x7")],u=o[Wa("0x4")]&&o[Wa("0x4")].length;if(!l&&x(c,a))return t._joinSuggestions(o,e),r[Wa("0x74")](e),!0;if(!u&&x(a,c))return t[Wa("0x5")](e,o),r[Wa("0x74")](o),!0}return!1}}[Wa("0x5")](t,e){if(t.isMultiRange)for(const n of e.getRanges())t.addRange(n);else{const n=e.getFirstRange()[Wa("0x2f")];this._setSuggestionRange(t,this[Wa("0x12b")][Wa("0x3c")](t[Wa("0xe3")]()[Wa("0x98")],n))}e[Wa("0x2e")]()}}class Va{constructor(t){this[Wa("0x137")]=t,this[Wa("0x12b")]=t[Wa("0x2b")],this[Wa("0xc8")]=new Map,this[Wa("0xea")]=new Map,this[Wa("0x110")]()}[Wa("0x118")](t,e,n,o,s,r){return new Zo(this[Wa("0x12b")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Wa("0x45")](t,e,Wa("0x8f"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,Wa("0x102"))(...n)})}[Wa("0x15")](t,e,n,o){const s=t+":"+e+":"+n;this[Wa("0xc8")][Wa("0x6a")](s,o)}[Wa("0x45")](t,e,n){const o=t+":"+e+":"+n;return this[Wa("0xc8")][Wa("0xb6")](o)||this[Wa("0xea")][Wa("0xb6")](t+":"+n)}[Wa("0x110")](){const t=()=>!1,e=t=>{t[Wa("0xb4")](((t,e)=>t[Wa("0x98")][Wa("0x139")](e[Wa("0x98")])?1:-1)),this._model[Wa("0x7a")]((e=>{for(const n of t){let t;t=n.end[Wa("0x10")]&&n[Wa("0x2f")][Wa("0x43")]==n[Wa("0x98")][Wa("0x10c")]?e[Wa("0x64")](n[Wa("0x98")][Wa("0x10c")],"on"):e[Wa("0x64")](n),this[Wa("0x12b")][Wa("0x76")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[Wa("0x7a")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Wa("0x6f")]((t=>(qa(t)&&(t=this[Wa("0x12b")][Wa("0x3c")](t[Wa("0x2f")])),t)))[Wa("0xf1")]((t=>Wa("0xbf")!==t[Wa("0x86")][Wa("0xe1")]));if(r[Wa("0x7")]<1)return;const x=Array[Wa("0x6d")](this[Wa("0x12b")].document[Wa("0xa7")].getRanges())[Wa("0x6f")]((t=>i.LiveRange[Wa("0x14")](t)));n.setSelection(r);for(const t of this[Wa("0x137")][Wa("0x128")].commands())t[Wa("0xc9")]();s[Wa("0x44")]({forceDefaultExecution:!0}),this[Wa("0x137")].execute(o,...s);const a=x[Wa("0xf1")]((t=>Wa("0xbf")!=t[Wa("0x86")].rootName));a[Wa("0x7")]>0&&n.setSelection(a);for(const t of x)t[Wa("0xf3")]()}))},o=(t,e)=>1==t.length&&1==e.length&&t[0].end[Wa("0x2a")](e[0][Wa("0x98")]),s=(t,e,n,o)=>Za(t,e,n,o,this[Wa("0x12b")])?[t,e]:Za(e,t,o,n,this[Wa("0x12b")])?[e,t]:null;this[Wa("0xea")][Wa("0x6a")]("insertion:accept",t),this[Wa("0xea")][Wa("0x6a")](Wa("0xeb"),e),this._defaultCallbacks[Wa("0x6a")]("insertion:join",o),this[Wa("0xea")][Wa("0x6a")]("insertion:chain",s),this[Wa("0xea")][Wa("0x6a")](Wa("0xc7"),e),this[Wa("0xea")][Wa("0x6a")]("deletion:discard",t),this._defaultCallbacks.set("deletion:join",o),this[Wa("0xea")][Wa("0x6a")](Wa("0x125"),s),this[Wa("0xea")][Wa("0x6a")](Wa("0x56"),n),this[Wa("0xea")][Wa("0x6a")](Wa("0xd8"),t),this[Wa("0xea")][Wa("0x6a")](Wa("0x12d"),o),this[Wa("0xea")][Wa("0x6a")]("formatInline:chain",t),this[Wa("0xea")][Wa("0x6a")](Wa("0xb9"),n),this[Wa("0xea")][Wa("0x6a")](Wa("0x20"),t),this._defaultCallbacks[Wa("0x6a")](Wa("0xa8"),o),this[Wa("0xea")][Wa("0x6a")](Wa("0x67"),t)}}function Ka(t,e,n){for(const o of e[Wa("0x43")][Wa("0x80")]({includeSelf:!0,parentFirst:!0})){if(o[Wa("0x86")]==o)return!1;if(!n.containsItem(o))return!1;if(t[Wa("0x41")](o)||t[Wa("0x114")](o))return!0}return!1}function qa(t){return t[Wa("0x2f")][Wa("0x43")]==t[Wa("0x98")][Wa("0x10c")]&&t.end[Wa("0x103")]}function Xa(t,e,n,o){const s=t=>!t[Wa("0xda")].is(Wa("0xcd"))&&!o[Wa("0x41")](t[Wa("0xda")]),r=t[Wa("0x98")][Wa("0x134")](s),i=t[Wa("0x2f")][Wa("0x134")](s,{direction:"backward"});return!(t[Wa("0x98")][Wa("0x2a")](r)&&t.end[Wa("0x2a")](i)||(r.isBefore(i)?n.updateMarker(e,{range:n[Wa("0x3c")](r,i)}):n.removeMarker(e),0))}function $a(t){return(0,r.hashObject)(t)}function Qa(t){const e=t[Wa("0x98")][Wa("0x10c")];return e&&e.is(Wa("0x6e"))}function Ja(t,e){const n=e[Wa("0x32")][Wa("0x41")](t)||e[Wa("0x32")].isSelectable(t);return e[Wa("0x3c")](e[Wa("0xac")](t,Wa("0x16")),n?e.createPositionAfter(t):e.createPositionAt(t,Wa("0x2f")))}function Za(t,e,n,o,s){if(!Ya(t,e))return!1;if(n[Wa("0x2f")][Wa("0x2a")](o[Wa("0x98")]))return!0;if(t[Wa("0x40")]!=e[Wa("0x40")])return!1;if(!n[Wa("0x2f")][Wa("0x6")](o[Wa("0x98")]))return!1;const r=s[Wa("0x3c")](n[Wa("0x2f")],o[Wa("0x98")]).getWalker();for(const t of r)if([Wa("0x17"),Wa("0xd5")][Wa("0xd0")](t[Wa("0x40")])&&s[Wa("0x32")].isLimit(t[Wa("0xda")]))return!1;return!0}function Ya(t,e){return!(!t[Wa("0x13b")]||!e._isDataLoaded)&&Go(t.attributes,e[Wa("0x52")])}function tc(t,e){const n=ec(t[Wa("0x52")]),o=ec(e);if(!t._isDataLoaded)return!1;for(const t of Object[Wa("0x3f")](o))if(!Go(n[t],o[t]))return!1;return!0}function ec(t){const e=Object[Wa("0x97")]({},t);return delete e[Wa("0x143")],delete e[Wa("0x81")],e}const nc=["_setPendingAction","add","locale","canDiscard","bind","_acceptCommand","isEnabled","canAccept","listenTo","model","acceptSuggestion","_removePendingAction","commentThreadController","_pendingAction","execute","get","remove","view","commands","_editor","getRanges","destroy","plugins","discardSuggestion","change:isDirty","PendingActions","unbind","_discardCommand","stopListening","canEditAt"];var oc,sc;oc=nc,sc=353,function(t){for(;--t;)oc.push(oc.shift())}(++sc);const rc=function(t,e){return nc[t-=0]};class ic extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[rc("0x10")]=e,this[rc("0x18")]=n,this.commentThreadController=o,this[rc("0x1a")]=t,this[rc("0xc")]=t[rc("0x19")].get(rc("0x11")),this[rc("0x4")]=t[rc("0x19")][rc("0x16")](rc("0x0")),this[rc("0x18")].bind("isEnabled").to(this[rc("0xc")],this[rc("0x4")],((t,e)=>t||e)),this[rc("0x18")].bind(rc("0xe")).to(this[rc("0xc")],rc("0xd"),(t=>t&&this[rc("0x1a")].model[rc("0x6")](e[rc("0x1b")]()))),this[rc("0x18")][rc("0xb")](rc("0xa")).to(this[rc("0x4")],rc("0xd"),(t=>t&&this[rc("0x1a")][rc("0x10")][rc("0x6")](e[rc("0x1b")]()))),this[rc("0x14")]=null,n.isDirty&&this[rc("0x7")](),this[rc("0xf")](n,"acceptSuggestion",(()=>this[rc("0x11")]())),this[rc("0xf")](n,rc("0x0"),(()=>this[rc("0x0")]())),this[rc("0xf")](n,rc("0x1"),(()=>{n.isDirty?this[rc("0x7")]():this._removePendingAction()}))}[rc("0x11")](){this[rc("0xc")][rc("0x15")](this[rc("0x10")].id)}[rc("0x0")](){this[rc("0x4")][rc("0x15")](this[rc("0x10")].id)}[rc("0x1c")](){this[rc("0x18")][rc("0x3")](rc("0xd")),this[rc("0x18")][rc("0x3")](rc("0xe")),this[rc("0x18")][rc("0x3")](rc("0xa")),this[rc("0x5")](),this[rc("0x13")][rc("0x1c")](),this[rc("0x14")]&&this[rc("0x12")]()}[rc("0x7")](){const t=Yo(this._editor[rc("0x9")],"PENDING_ACTION_SUGGESTION");this[rc("0x14")]=this[rc("0x1a")][rc("0x1d")][rc("0x16")](rc("0x2"))[rc("0x8")](t)}[rc("0x12")](){null!==this[rc("0x14")]&&this[rc("0x1a")][rc("0x1d")][rc("0x16")]("PendingActions")[rc("0x17")](this[rc("0x14")]),this[rc("0x14")]=null}}const xc=["showInput","_createCommentThreadInputView","bind","disabledSubmit","set","destroy","editorConfig","disableComments","submit","value","hasDirtyComment","canAccept","setData","commentsListView","_model","addComment","authoredAt","updateComment","isDirty","isActive","locale","assign","_config","length","commentThreadInputView","commentThread","commentInputView","_localUser","isReadOnly","delegate","focus","_createCommentViews","removeComment"];var ac,cc;ac=xc,cc=165,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class uc extends s.View{constructor(t,e,n,o){super(t),this[lc("0xd")]=null,this[lc("0x18")]=null,this[lc("0x4")](lc("0x13"),!1),this[lc("0x4")]("authoredAt",e[lc("0x10")]),this[lc("0x2")]("authoredAt").to(e),this[lc("0x4")]("descriptionParts",[]),this[lc("0x4")]("isDirty",!1),this[lc("0x4")]("isEnabled",!1),this[lc("0x4")](lc("0xb"),!1),this[lc("0x4")]("canDiscard",!1),this[lc("0xe")]=e,this[lc("0x1b")]=n,this[lc("0x16")]=o,o[lc("0x7")]?this.set(lc("0x17"),1):this[lc("0x1f")]()}[lc("0x1e")](){this.element[lc("0x1e")]()}destroy(){this[lc("0xd")]&&this[lc("0xd")][lc("0x5")](),this[lc("0x18")]&&this[lc("0x18")][lc("0x5")](),super[lc("0x5")]()}[lc("0x1f")](){const{CommentsListView:t}=this[lc("0x16")];this[lc("0xd")]=new t(this[lc("0x14")],this._model[lc("0x19")],Object[lc("0x15")]({CommentView:this[lc("0x16")].CommentView},this._config)),this[lc("0xd")].delegate(lc("0x20")).to(this),this[lc("0xd")][lc("0x1d")](lc("0x11")).to(this),this[lc("0xd")][lc("0x2")](lc("0x13")).to(this),this[lc("0x4")]("length",this[lc("0xd")].length+1),this[lc("0x2")](lc("0x17")).to(this[lc("0xd")],lc("0x17"),(t=>t+1)),this[lc("0x18")]=this[lc("0x1")](),this.on("removeComment",(()=>this[lc("0x1e")]())),this.bind(lc("0x12")).to(this[lc("0xd")],lc("0xa"),this[lc("0x18")][lc("0x1a")],lc("0x9"),((t,e)=>t||!!e))}[lc("0x1")](){const{CommentThreadInputView:t}=this._config,e=new t(this[lc("0x14")],this[lc("0x1b")],this[lc("0x16")][lc("0x6")]),n=e[lc("0x1a")];return e[lc("0x2")](lc("0x0")).to(this,"isActive",this[lc("0xe")].commentThread,lc("0x1c"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(lc("0x8"),((t,e)=>{this.fire(lc("0xf"),e),n.editor[lc("0xc")]("")})),n.on("cancel",(()=>this.focus())),n.bind(lc("0x3")).to(this[lc("0xe")][lc("0x19")],lc("0x1c")),e}}const dc=["ck-suggestion-wrapper","ck-comment__external","value","div","_model","cancel","discardSuggestion","ck-suggestion__info",'"></span>',"ck-suggestion--disabled-comments","<p>",".ck-annotation__content-wrapper","_createButton","delegate","content","isExternal","descriptionParts","author","ck-annotation__actions","description","authoredAt","getTemplate","importWord","isActive","querySelector","getExternalSuggestionNote","render","discardButton","canAccept","editorReady","split","Discard suggestion","ck-annotation__info","getUserViewNotificationText","EXTERNAL_IMPORT_WORD_AVATAR","title","map","innerHTML","ck-suggestion","extendTemplate","set","</p>","EXTERNAL_AVATAR","ck-suggestion-","userView","ck-annotation","@external","formatDateTime","ck-suggestion__user","execute",'<span class="ck-suggestion-type">','<span class="ck-suggestion-color" style="background-color: ',"commentThread","ck-annotation__main","bindTemplate","isEnabled","bind","name","EXTERNAL_IMPORT_WORD_SUGGESTION","_descriptionElement","EXTERNAL_SUGGESTION","canDiscard","creator","ck-annotation__info-time","commentThreadInputView","ck-suggestion--accept","span",'" title="',"disableComments","ck-suggestion-wrapper--active","ck-comment__info-time","color","commentsListView","locale","setTemplate","change:description","acceptButton","_config","children","type","innerText","ck-annotation__content-wrapper","acceptSuggestion","push","source","attributes"];var gc,mc;gc=dc,mc=132,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return dc[t-=0]};class hc extends uc{constructor(e,n,o,s){super(e,n,o,s),this[fc("0x50")](fc("0x21"),""),this[fc("0xa")](fc("0x21")).to(this,fc("0x38"),(t=>t&&t[0]?t[0][fc("0x21")]:"")),this[fc("0xa")](fc("0x3b")).to(this,fc("0x38"),this,fc("0x3f"),((t,e)=>{let n="";for(const e of t)n+=fc("0x32")+bc(e[fc("0x36")],e[fc("0x19")])+fc("0x51");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[fc("0xd")]=null,this[fc("0x1e")]=this._createButton(Yo(e,"Accept suggestion"),t.icons.check,fc("0x13"),fc("0x24"),"sw"),this[fc("0x1e")].bind(fc("0x9")).to(this,fc("0x44")),this[fc("0x43")]=this[fc("0x34")](Yo(e,fc("0x47")),t.icons[fc("0x2d")],"ck-suggestion--discard",fc("0x2e"),"sw"),this[fc("0x43")][fc("0xa")](fc("0x9")).to(this,fc("0xf")),this[fc("0x54")]=new r.UserView(e,this[fc("0x2c")][fc("0x39")],this[fc("0x49")]()),this[fc("0x54")][fc("0x4f")]({attributes:{class:[fc("0x2"),"ck-annotation__user"]}}),this[fc("0x1c")](this[fc("0x3d")]())}[fc("0x3d")](){const t=this[fc("0x8")],e=[{tag:fc("0x2b"),attributes:{class:[fc("0x2f"),fc("0x48")]},children:[{tag:fc("0x14"),children:[{text:this[fc("0x54")].name}],attributes:{class:["ck-suggestion__info-name","ck-annotation__info-name"]}},{tag:"time",attributes:{datetime:t.to(fc("0x3c")),class:[fc("0x18"),fc("0x11")]},children:[{text:t.to("authoredAt",(t=>this[fc("0x1f")][fc("0x1")](t)))}]}]},{tag:"div",attributes:{class:["ck-suggestion__actions",fc("0x3a")]},children:[this[fc("0x1e")],this.discardButton]},{tag:fc("0x2b"),attributes:{class:[fc("0x23")]}}];this._model[fc("0x37")]&&e.push({tag:fc("0x2b"),attributes:{class:[fc("0x29")]},children:[{text:this[fc("0x41")]()}]});const n={tag:fc("0x2b"),attributes:{class:[fc("0x28"),t.if("isActive",fc("0x17")),t.to(fc("0x21"),(t=>fc("0x53")+t)),this._config[fc("0x16")]&&fc("0x31")],"data-suggestion-id":this[fc("0x2c")].id,"data-thread-id":this[fc("0x2c")][fc("0x6")].id,"data-author-id":this[fc("0x2c")][fc("0x39")].id,tabindex:-1},children:[{tag:fc("0x2b"),attributes:{class:[fc("0x4e"),fc("0x55")]},children:[this.userView,{tag:fc("0x2b"),attributes:{class:["ck-suggestion__main",fc("0x7")]},children:e}]}]};return this.commentsListView&&this[fc("0x12")]&&(n[fc("0x20")][fc("0x25")](this[fc("0x1a")],this[fc("0x12")]),this[fc("0x1a")][fc("0x35")](fc("0x45")).to(this),this[fc("0x1a")][fc("0x35")]("editorDestroyed").to(this),this[fc("0x12")][fc("0x35")]("editorReady").to(this),this[fc("0x12")][fc("0x35")]("editorDestroyed").to(this)),n}[fc("0x42")](){super[fc("0x42")](),this[fc("0xd")]=this.element[fc("0x40")](fc("0x33")),this[fc("0xd")].innerHTML=this[fc("0x3b")],this.on(fc("0x1d"),((t,e,n)=>{this[fc("0xd")][fc("0x4d")]=n}))}[fc("0x34")](t,e,n,o,r){const i=new s.ButtonView(this[fc("0x1b")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[fc("0x4f")]({attributes:{class:n}}),i.on(fc("0x3"),(()=>{this.fire(o,this._model.id)})),i}[fc("0x41")](){return fc("0x3e")===this._model[fc("0x27")][fc("0x0")].source?Yo(this[fc("0x1b")],fc("0xc")):Yo(this[fc("0x1b")],fc("0xe"))}getUserViewNotificationText(){return this[fc("0x2c")].isExternal?fc("0x3e")===this[fc("0x2c")][fc("0x27")][fc("0x0")][fc("0x26")]?Yo(this[fc("0x1b")],fc("0x4a"),this._model.creator[fc("0xb")]):Yo(this[fc("0x1b")],fc("0x52"),this._model[fc("0x10")][fc("0xb")]):null}}function bc(t,e){let n="";return n+=t[fc("0x46")]("*")[fc("0x4c")](((t,e)=>e%2!=0?fc("0x4")+pc(t)+"</span>":pc(t))).join(""),e&&(n+=fc("0x5")+e[fc("0x2a")]+fc("0x15")+e[fc("0x4b")]+fc("0x30")),n}function pc(t){const e=document.createElement("span");return e[fc("0x22")]=t,e[fc("0x4d")]}const Ec=["getFirstRange","get","arrowView","comments.maxCommentCharsWhenCollapsed","createAnnotationView","getDescriptions","unbind","switchbutton","EditorAnnotations","locale","change:activeAnnotations","reduce","view","_annotationViews","suggestionLoaded","_updateController","change:previous","CommentsRepository","init","refreshSelectedViews","lowest","innerView","comments.editorConfig","delete","focus","_createUIButton","size","commentThread","type","TrackChangesUI","previous","from","getSuggestion","values","_descriptionFactory","actionView","suggestion-","config","getMarkerNames","button","trackChanges.disableComments","isEnabled","add","SuggestionThreadView","listenTo","_initializeController","keys","trackChanges","acceptAllSuggestions","trackChanges.SuggestionThreadView","discardButton","TrackChangesEditing","getMarkers","commands","filter","some","isOn","isMultiRange","getRanges","Annotations","commandName","push","_viewToController","getByInnerView","CommentView","requires","has","destroy","_handleSuggestionControllerDelayed","value","suggestionChanged","isInContent","_disableComments","_bindAnnotationToEditors","_destroyController","head","define","_suggestionToController","_refreshActiveMarkers","getJoined","clear","editor","CommentsUI","getAllAdjacentSuggestions","addComment","Track changes","buttonView","componentFactory","plugins","acceptButton","Discard all suggestions","model","descriptionParts","_handleControllerBuffer","createAnnotation","addSourceCollector","isDirty","set","length","bind","separator","execute","pluginName","editing","acceptSelectedSuggestions","source","mainView"];var _c,Tc;_c=Ec,Tc=364,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const Cc=function(t,e){return Ec[t-=0]};class yc extends t.Plugin{static get[Cc("0x16")](){return[za,r.Users,Cc("0x51"),Cc("0x10"),Cc("0x48")]}static get[Cc("0x3b")](){return Cc("0x5d")}constructor(t){super(t),this._suggestionToController=new Map,this[Cc("0x13")]=new Map,this[Cc("0x4d")]=new Map,this[Cc("0x32")]=new Map;const e=this.editor[Cc("0x65")];e.define(Cc("0x6"),hc),e[Cc("0x21")](Cc("0x68"),!1),this[Cc("0x1d")]=e[Cc("0x41")]("trackChanges.disableComments")}[Cc("0x19")](t,e){0===this._handleControllerBuffer[Cc("0x5a")]&&setTimeout((()=>{for(const[t,e]of this[Cc("0x32")]){const n=this[Cc("0x22")].has(t);n||e?n&&e&&this[Cc("0x1f")](t):this[Cc("0x2")](t)}this.editor[Cc("0x2d")][Cc("0x41")]("EditorAnnotations")[Cc("0x53")](),this._refreshActiveMarkers(),this._handleControllerBuffer[Cc("0x25")]()}),10),this[Cc("0x32")][Cc("0x36")](t,e)}[Cc("0x52")](){const t=this.editor,e=t[Cc("0x2d")].get(Cc("0x8")),n=t[Cc("0x2d")].get("Annotations"),o=t.plugins[Cc("0x41")](Cc("0x48")),s=t[Cc("0x2d")][Cc("0x41")](Cc("0x51"));t.ui[Cc("0x2c")].add(Cc("0x4"),(t=>this[Cc("0x59")](t))),o[Cc("0x34")]((()=>{const t=[];for(const[e,n]of Array.from(this._suggestionToController)){const o=e[Cc("0x28")](),s=[];for(const t of o){if(!t[Cc("0x1c")])continue;if(t[Cc("0xe")]){s[Cc("0x12")](...t[Cc("0xf")]());continue}const e=t[Cc("0x40")]();if(s.length>0){const t=s[0][Cc("0x24")](e);if(t){s[0]=t;continue}}s[Cc("0x12")](e)}t[Cc("0x12")]([n[Cc("0x4c")],s])}return t})),this[Cc("0x1")](e,Cc("0x4e"),((t,e)=>{this[Cc("0x1")](e,Cc("0x50"),((t,n,o,s)=>{e.isInContent&&(null==o?(this[Cc("0x4f")](s.head),this._handleSuggestionControllerDelayed(e,!1)):(this[Cc("0x4f")](o[Cc("0x20")]),this[Cc("0x19")](e,!0)))})),null===e[Cc("0x5e")]?this._handleSuggestionControllerDelayed(e,!1):this[Cc("0x4f")](e[Cc("0x20")])})),this[Cc("0x1")](e,"suggestionUnloaded",((t,e,n)=>{this.stopListening(e,Cc("0x50")),this[Cc("0x32")][Cc("0x57")](e);const o=n?n[Cc("0x20")]:e,s=this[Cc("0x22")].get(o);null!==n&&this[Cc("0x4f")](o),null===n&&s&&this._destroyController(e)})),this[Cc("0x1")](e,Cc("0x1b"),((t,e)=>{this[Cc("0x4f")](e)})),this.listenTo(n,Cc("0x4a"),(()=>{this[Cc("0x23")]()})),this[Cc("0x1")](s,Cc("0x29"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[Cc("0x60")](n);this[Cc("0x22")][Cc("0x41")](s).view[Cc("0x58")]()}),{priority:Cc("0x54")})}_refreshActiveMarkers(){const t=this[Cc("0x26")].plugins[Cc("0x41")](Cc("0x10")),e=this.editor[Cc("0x2d")][Cc("0x41")](Cc("0x8")),n=Array[Cc("0x5f")](t.activeAnnotations,(t=>t[Cc("0x55")]))[Cc("0xb")]((t=>this._viewToController[Cc("0x17")](t))),o=[];for(const t of n){const e=this._viewToController.get(t)[Cc("0x30")][Cc("0x28")]();o[Cc("0x12")](...e[Cc("0x4b")](((t,e)=>[...t,...e[Cc("0x66")]()]),[]))}e.activeMarkers=o}[Cc("0x59")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Cc("0xa")][Cc("0x41")]("trackChanges"),r=Yo(t,Cc("0x2a"));n[Cc("0x2b")].set({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Cc("0x2b")][Cc("0x38")](Cc("0xd")).to(o,Cc("0x1a")),n[Cc("0x2b")].on(Cc("0x3a"),(()=>{o[Cc("0x3a")](),this[Cc("0x26")][Cc("0x3c")][Cc("0x4c")].focus()}));const i=new e.Collection,x=[{type:Cc("0x47"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Cc("0x5")}},{type:Cc("0x67"),model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Cc("0x3d")}},{type:"button",model:{withText:!0,label:Yo(t,Cc("0x2f")),commandName:"discardAllSuggestions"}},{type:Cc("0x67"),model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:Cc("0x39")};if(t.model){const n=new s.Model(t.model),o=this.editor[Cc("0xa")].get(n[Cc("0x11")]);n[Cc("0x38")](Cc("0xd"),Cc("0x69")).to(o,Cc("0x1a"),"isEnabled"),e={type:t[Cc("0x5c")],model:n}}i[Cc("0x6a")](e)}(0,s.addListToDropdown)(n,i);const a=x[Cc("0xb")]((t=>null!=t[Cc("0x30")])).map((t=>this[Cc("0x26")][Cc("0xa")].get(t[Cc("0x30")][Cc("0x11")]))),c=n[Cc("0x2b")];return c[Cc("0x63")][Cc("0x46")](Cc("0x69")),c[Cc("0x42")][Cc("0x46")](Cc("0x69")),c[Cc("0x63")].bind(Cc("0x69")).to(o,Cc("0x69")),c[Cc("0x42")][Cc("0x38")](Cc("0x69")).toMany(a,Cc("0x69"),((...t)=>t[Cc("0xc")]((t=>t)))),n.on(Cc("0x3a"),(t=>{this[Cc("0x26")][Cc("0x3a")](t[Cc("0x3e")][Cc("0x11")]),this[Cc("0x26")][Cc("0x3c")][Cc("0x4c")][Cc("0x58")]()})),n}[Cc("0x2")](t){const e=this.editor,n=e.config,o=e[Cc("0x2d")][Cc("0x41")](Cc("0x10")),s=e[Cc("0x2d")][Cc("0x41")](Cc("0x51")),i=e[Cc("0x2d")].get(Cc("0x48")),x=e.plugins[Cc("0x41")](r.Users).me,a=n[Cc("0x41")]("trackChanges")[Cc("0x0")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins.get(Cc("0x27"));let u,d;this[Cc("0x4d")][Cc("0x17")](t.id)?(d=this[Cc("0x4d")].get(t.id),u=d[Cc("0x3f")]):(u=new a(e[Cc("0x49")],t,x,{disableComments:this._disableComments,editorConfig:n[Cc("0x41")](Cc("0x56")),maxCommentsWhenCollapsed:n[Cc("0x41")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n.get("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Cc("0x41")](Cc("0x43")),formatDateTime:(0,r.getDateTimeFormatter)(n[Cc("0x41")](Cc("0x49"))),CommentView:n[Cc("0x41")]("comments")[Cc("0x15")],CommentsListView:c,CommentThreadInputView:l}),u[Cc("0x2e")].on(Cc("0x3a"),(()=>{e[Cc("0x3c")][Cc("0x4c")][Cc("0x58")]()})),u[Cc("0x7")].on(Cc("0x3a"),(()=>{e.editing[Cc("0x4c")][Cc("0x58")]()})),d=o[Cc("0x44")](this.editor[Cc("0x49")],u),d[Cc("0x38")](Cc("0x35")).to(u,Cc("0x35")),d[Cc("0x38")](Cc("0x37")).to(u),d[Cc("0x38")](Cc("0x5c")).to(u,Cc("0x5c"),(t=>Cc("0x64")+t)),this[Cc("0x4d")][Cc("0x36")](t.id,d));const g=s.createCommentThreadController(t[Cc("0x5b")],u),m=new ic(e,t,u,g),f=t[Cc("0x28")]().filter((t=>t.isInContent));u.descriptionParts=e[Cc("0x2d")][Cc("0x41")](Cc("0x8"))._descriptionFactory[Cc("0x45")](f),this[Cc("0x22")][Cc("0x36")](t,m),this[Cc("0x13")].set(u,m);const h=o[Cc("0x33")]({view:d,target:()=>{const n=[],o=t[Cc("0x28")]()[Cc("0xb")]((t=>t.isInContent));for(const t of o)n[Cc("0x12")](...t[Cc("0x9")]());return(0,r.getAllMarkersDomElementsSorted)(e[Cc("0x3c")],n)},type:()=>Cc("0x64")+m.view[Cc("0x5c")]});s[Cc("0x1e")](u,h),o[Cc("0x6a")](h),i.registerAnnotation(h)}[Cc("0x1f")](t){const e=this[Cc("0x26")].plugins[Cc("0x41")]("Annotations"),n=this._suggestionToController[Cc("0x41")](t),o=n[Cc("0x4c")],s=e[Cc("0x14")](o);s&&e.remove(s),this._suggestionToController[Cc("0x57")](t),this[Cc("0x13")][Cc("0x57")](o),n[Cc("0x18")]()}[Cc("0x4f")](t){if(!t[Cc("0x1c")]||!this._suggestionToController.has(t))return;const e=this[Cc("0x26")].plugins.get("TrackChangesEditing"),n=this._suggestionToController[Cc("0x41")](t),o=t[Cc("0x28")]();n.view[Cc("0x31")]=e[Cc("0x62")].getDescriptions(o)}[Cc("0x18")](){for(const t of this[Cc("0x22")][Cc("0x3")]())this[Cc("0x1f")](t);for(const t of this[Cc("0x4d")][Cc("0x61")]())t[Cc("0x3f")][Cc("0x18")]();super[Cc("0x18")]()}}var kc,Ac,vc=["getSuggestions","getSuggestion","editor","Comments","addSuggestionData","adapter","addSuggestion","pluginName","plugins","get"];kc=vc,Ac=213,function(t){for(;--t;)kc.push(kc.shift())}(++Ac);var Rc=function(t,e){return vc[t-=0]};class Sc extends t.Plugin{static get requires(){return[za,yc,Rc("0x0")]}static get[Rc("0x4")](){return"TrackChanges"}set[Rc("0x2")](t){this[Rc("0x9")][Rc("0x5")][Rc("0x6")](za)[Rc("0x2")]=t}get[Rc("0x2")](){return this[Rc("0x9")][Rc("0x5")][Rc("0x6")](za)[Rc("0x2")]}[Rc("0x3")](t){return this[Rc("0x9")].plugins[Rc("0x6")](za)[Rc("0x1")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[Rc("0x5")][Rc("0x6")](za)[Rc("0x7")]({skipNotAttached:t,toJSON:e})}[Rc("0x8")](t){return this[Rc("0x9")][Rc("0x5")][Rc("0x6")](za)[Rc("0x8")](t)}}const Ic=["getFullData","track-changes-data-invalid-editor-creator","useAnonymousUser","trackChangesData","map","end","init","Users","editorCreator","define","addUser","model","Pagination","requires","getDataWithAcceptedSuggestions","reduce","_adapter","addSuggestionData","destroy","TrackChangesDataGetter","getRootsAttributes","CommentsRepository","plugins","create","div","document","createElement","result","config","function","rootsAttributes","get","getSuggestions","TrackChangesData","TrackChangesEditing","pluginName","appendChild","getRootNames","trackChangesData.editorCreator","editor","data","set"];var Lc,Nc;Lc=Ic,Nc=419,function(t){for(;--t;)Lc.push(Lc.shift())}(++Nc);const Mc=function(t,e){return Ic[t-=0]},wc=[Mc("0xd")];class Oc extends t.Plugin{static get[Mc("0xe")](){return[za]}static get[Mc("0x24")](){return Mc("0x22")}[Mc("0x7")](){const t=this.editor;if(t[Mc("0x1d")][Mc("0xa")](Mc("0x27"),(e=>{const n=t.model[Mc("0x1a")][Mc("0x26")]()[Mc("0x10")](((t,e)=>(t[e]="",t)),{});return t.constructor[Mc("0x18")](n,e)})),Mc("0x1e")!=typeof t.config[Mc("0x20")](Mc("0x4"))[Mc("0x9")])throw new e.CKEditorError(Mc("0x2"))}[Mc("0xf")](t){return Pc(this.editor,!0,t)}getDataWithDiscardedSuggestions(t){return Pc(this[Mc("0x28")],!1,t)}}class Fc extends t.Plugin{static get[Mc("0x24")](){return Mc("0x14")}constructor(t){super(t),this[Mc("0x1c")]=Mc("0x6")}init(){this[Mc("0x28")][Mc("0x17")][Mc("0x20")](Mc("0x16"))[Mc("0x11")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Mc("0x28")].plugins[Mc("0x20")](Mc("0x23"))[Mc("0x11")]=null}}function Dc(t){return void 0!==t[Mc("0x15")]}async function Pc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,wc);o[Mc("0x17")].push(za,Fc),o[Mc("0x1f")]=Dc(t)?t.getRootsAttributes():void 0;const s=document.createDocumentFragment(),i=t[Mc("0x1d")][Mc("0x20")](Mc("0x4"))[Mc("0x9")],x=await i(o,(()=>function(t){const e=document[Mc("0x1b")](Mc("0x19"));return t[Mc("0x25")](e),e}(s)));!function(t,e){const n=t[Mc("0xc")][Mc("0x1a")].getRootNames().reduce(((e,n)=>(e[n]=t.data[Mc("0x20")]({rootName:n}),e)),{}),o=t.plugins.get(Mc("0x8")).users[Mc("0x5")]((t=>({id:t.id,name:t.name}))),s=t[Mc("0x17")][Mc("0x20")]("TrackChangesEditing")[Mc("0x21")]({skipNotAttached:!0,toJSON:!0}),r=e[Mc("0x17")][Mc("0x20")](Mc("0x8")),i=e.plugins[Mc("0x20")](Mc("0x23"));for(const t of o)r.getUser(t.id)||r[Mc("0xb")](t);r.me||r[Mc("0x3")]();for(const t of s)i[Mc("0x12")](t);e.data[Mc("0x0")](n)}(t,x),x.execute(e?"acceptAllSuggestions":"discardAllSuggestions");const a=Dc(x)?x[Mc("0x1")](n):x[Mc("0x29")].get(n);return await x[Mc("0x13")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|