@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240104.0 → 0.0.0-nightly-20240106.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.
Files changed (67) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/casechange.js +1 -1
  13. package/src/integrations/ckbox.js +1 -1
  14. package/src/integrations/codeblock.js +1 -1
  15. package/src/integrations/comments.js +1 -1
  16. package/src/integrations/deletecommand.js +1 -1
  17. package/src/integrations/documentlist.js +1 -1
  18. package/src/integrations/documentlistproperties.js +1 -1
  19. package/src/integrations/entercommand.js +1 -1
  20. package/src/integrations/findandreplace.js +1 -1
  21. package/src/integrations/font.js +1 -1
  22. package/src/integrations/formatpainter.js +1 -1
  23. package/src/integrations/heading.js +1 -1
  24. package/src/integrations/highlight.js +1 -1
  25. package/src/integrations/horizontalline.js +1 -1
  26. package/src/integrations/htmlembed.js +1 -1
  27. package/src/integrations/image.js +1 -1
  28. package/src/integrations/imagereplace.js +1 -1
  29. package/src/integrations/imagestyle.js +1 -1
  30. package/src/integrations/importword.js +1 -1
  31. package/src/integrations/indent.js +1 -1
  32. package/src/integrations/inputcommand.js +1 -1
  33. package/src/integrations/link.js +1 -1
  34. package/src/integrations/list.js +1 -1
  35. package/src/integrations/listproperties.js +1 -1
  36. package/src/integrations/mediaembed.js +1 -1
  37. package/src/integrations/mention.js +1 -1
  38. package/src/integrations/pagebreak.js +1 -1
  39. package/src/integrations/paragraph.js +1 -1
  40. package/src/integrations/removeformat.js +1 -1
  41. package/src/integrations/restrictededitingmode.js +1 -1
  42. package/src/integrations/shiftentercommand.js +1 -1
  43. package/src/integrations/standardeditingmode.js +1 -1
  44. package/src/integrations/style.js +1 -1
  45. package/src/integrations/table.js +1 -1
  46. package/src/integrations/tablecaption.js +1 -1
  47. package/src/integrations/tableclipboard.js +1 -1
  48. package/src/integrations/tablecolumnresize.js +1 -1
  49. package/src/integrations/tableheadings.js +1 -1
  50. package/src/integrations/tablemergesplit.js +1 -1
  51. package/src/integrations/tableofcontents.js +1 -1
  52. package/src/integrations/tableproperties.js +1 -1
  53. package/src/integrations/template.js +1 -1
  54. package/src/integrations/title.js +1 -1
  55. package/src/integrations/undo.js +1 -1
  56. package/src/integrations/utils.js +1 -1
  57. package/src/suggestion.js +1 -1
  58. package/src/suggestiondescriptionfactory.js +1 -1
  59. package/src/trackchanges.js +1 -1
  60. package/src/trackchangesdata.js +1 -1
  61. package/src/trackchangesediting.js +1 -1
  62. package/src/trackchangesui.js +1 -1
  63. package/src/ui/suggestioncontroller.js +1 -1
  64. package/src/ui/view/basesuggestionthreadview.js +1 -1
  65. package/src/ui/view/suggestionthreadview.js +1 -1
  66. package/src/utils/common-translations.js +1 -1
  67. package/src/utils/utils.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
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 r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.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:()=>Hc,TrackChanges:()=>sl,TrackChangesData:()=>dl,TrackChangesEditing:()=>Tc});var t=n(704),e=n(209),r=n(273),i=n(417),s=n(492),x=n(995);const a=["_isEnabledBasedOnSelection","value","refresh","affectsData","execute","has","forceDisabled","_enableCommands","editor","commands","TrackChangesCommand","_enabledCommands"];var c,l;c=a,l=226,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("0x1")]=e,this[u("0x3")]=!1,this[u("0x4")](),this[u("0x2")]=!1}[u("0x4")](){this.isEnabled=!0}[u("0x6")](){this.value=!this[u("0x3")],this.value?this._disableUnsupportedCommands():this[u("0x9")]()}_disableUnsupportedCommands(){for(const t of this[u("0xa")][u("0xb")][u("0xb")]())t[u("0x5")]&&!this._enabledCommands.has(t)&&t[u("0x8")](u("0x0"))}[u("0x9")](){for(const t of this.editor[u("0xb")][u("0xb")]())t[u("0x5")]&&!this[u("0x1")][u("0x7")](t)&&t.clearForceDisabled("TrackChangesCommand")}}const g=["track-changes-accept-suggestion-not-found","_isEnabledBasedOnSelection","isEnabled","get","_suggestions","model","getRanges","editor","refresh","canEditAt","plugins","execute","TrackChangesEditing"];var f,m;f=g,m=198,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[h("0x5")](),this[h("0xb")]=!1}[h("0x5")](){this[h("0xc")]=!0}[h("0x8")](t){const n=this[h("0x1")][h("0x0")](t);if(!n)throw new e.CKEditorError(h("0xa"),this);const o=n[h("0x3")]();this[h("0x4")][h("0x2")][h("0x6")](o)&&this[h("0x4")][h("0x7")].get(h("0x9")).acceptSuggestion(n)}}const b=["_suggestions","discardSuggestion","canEditAt","get","TrackChangesEditing","model","track-changes-discard-suggestion-not-found","_isEnabledBasedOnSelection","plugins","editor","isEnabled","refresh"];var E,_;E=b,_=345,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0x3")]=e,this[T("0x2")](),this[T("0xa")]=!1}[T("0x2")](){this[T("0x1")]=!0}execute(t){const n=this[T("0x3")][T("0x6")](t);if(!n)throw new e.CKEditorError(T("0x9"),this);const o=n.getRanges();this[T("0x0")][T("0x8")][T("0x5")](o)&&this.editor[T("0xb")][T("0x6")](T("0x7"))[T("0x4")](n)}}const C=["from","start","isCollapsed","change","replace","map","execute","isMultiRange","push","createPositionBefore","content","type","createPositionAfter","isInContent","value","createRange","isArray","isObject","next","getRanges","createPositionAt","schema","color","isIntersecting","length","deletion","splice"];var A,k;A=C,k=282,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t.sort(((t,e)=>I("0xd")==t[I("0x1a")]&&I("0xd")!=e[I("0x1a")]?-1:I("0xd")!=t.type&&I("0xd")==e[I("0x1a")]?1:0))}function S(t,e){let n,o=0;const r=[],i=e[I("0x9")];for(;o<t[I("0xc")];){const s=t[o],x=t[o+1];n||(n=e.createPositionBefore(s)),N(e,s,x)||(r[I("0x17")](e[I("0x3")](n,i[I("0x5")](s)?e[I("0x0")](s):e[I("0x8")](s,"end"))),n=null),o++}return r}function N(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),r=t[I("0x18")](n);return o.isTouching(r)}function v(t,e,n){for(;n[I("0xc")];){const o=n[I("0xe")](0,100);t[I("0x12")]((()=>{for(const t of o)t.isInContent&&e[I("0x15")](t.id)}))}}const L=["model","_suggestions","refresh","editor","getRanges","values","canEditAt","from","_command","isEnabled","execute"];var M,w;M=L,w=156,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x6")]=e,this._suggestions=n,this.refresh(),this._isEnabledBasedOnSelection=!1}[O("0x0")](){const t=Array[O("0x5")](this[O("0xa")][O("0x3")]()).some((t=>t.isInContent));this[O("0x7")]=this._command[O("0x7")]&&t}[O("0x8")](){const t=R(Array[O("0x5")](this._suggestions[O("0x3")]()));for(const e of t){const t=e[O("0x2")]();if(!this.editor[O("0x9")][O("0x4")](t))return}v(this[O("0x1")].model,this[O("0x6")],t)}}const D=["_isEnabledBasedOnSelection","getRanges","document","_suggestions","selection","_selectedSuggestions","size","canEditAt","model","_command","refresh","editor","isEnabled","from","values","execute"];var B,P;B=D,P=111,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0xa")]=e,this[U("0x4")]=n,this[U("0x6")]=new Set,this[U("0xb")](),this[U("0x1")]=!1}refresh(){const t=this[U("0xc")][U("0x9")][U("0x3")][U("0x5")],e=Array[U("0xe")](this[U("0x4")][U("0xf")]());this[U("0x6")]=function(t,e){const n=Array[I("0xf")](t.getRanges()),o=new Set;for(const r of e)if(r[I("0x1")])for(const e of n)for(const n of r[I("0x7")]())(e[I("0xb")](n)||t[I("0x11")]&&!r[I("0x16")]&&r[I("0x6")]&&n.end.isTouching(e[I("0x10")]))&&o.add(r);return o}(t,e),this[U("0xd")]=this[U("0xa")].isEnabled&&!!this[U("0x6")][U("0x7")]}[U("0x0")](){const t=R(Array[U("0xe")](this[U("0x6")]));for(const e of t){const t=e[U("0x2")]();if(!this.editor.model[U("0x8")](t))return}v(this[U("0xc")][U("0x9")],this[U("0xa")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(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=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const $=function(t,e){var n=this.__data__,o=H(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function X(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])}}X.prototype.clear=G,X.prototype.delete=W,X.prototype.get=K,X.prototype.has=q,X.prototype.set=$;const Z=X;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=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 rt=ot.Symbol;var it=Object.prototype,st=it.hasOwnProperty,xt=it.toString,at=rt?rt.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var r=xt.call(t);return o&&(e?t[at]=n:delete t[at]),r};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=rt?rt.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 ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(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 pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt 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 yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt:yt).test(Tt(t))};const Nt=function(t,e){return null==t?void 0:t[e]};const vt=function(t,e){var n=Nt(t,e);return St(n)?n:void 0};const Lt=vt(ot,"Map");const Mt=vt(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 Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=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 jt(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])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=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 Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=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 $t=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 Xt(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])}}Xt.prototype.clear=Vt,Xt.prototype.delete=Wt,Xt.prototype.get=Kt,Xt.prototype.has=qt,Xt.prototype.set=$t;const Zt=Xt;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;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=vt(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 re=function(t,e,n){var o=t[e];oe.call(t,e)&&V(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const ie=function(t,e,n,o){var r=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var x=e[i],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?ne(n,x,a):re(n,x,a)}return n};const se=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 fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;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 ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===ke&&et.process;const Se=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ne=Se&&Se.isTypedArray;const ve=Ne?Ae(Ne):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),r=!n&&!o&&be(t),i=!n&&!o&&!r&&ve(t),s=n||o||r||i,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("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 Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&ie(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&He.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&ie(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,$e=qe&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=$e&&$e.exports===qe?ot.Buffer:void 0,Ze=Xe?Xe.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,i=[];++n<o;){var s=t[n];e(s,n,t)&&(i[r++]=s)}return i};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return ie(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return ie(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=vt(ot,"DataView");const fn=vt(ot,"Promise");const mn=vt(ot,"Set");const hn=vt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=pn||fn&&Rn(fn.resolve())!=bn||mn&&Rn(new mn)!=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 yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const Sn=Rn;var Nn=Object.prototype.hasOwnProperty;const vn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Nn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(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=rt?rt.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=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 Un(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 Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var $n=Se&&Se.isSet;const Xn=$n?Ae($n):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,r,i,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=i?o(e,r,i,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=vn(e),!a)return Je(e,x)}else{var d=Sn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!i){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return i?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),Xn(e)?e.forEach((function(r){x.add(t(r,n,o,r,e,s))})):Kn(e)&&e.forEach((function(r,i){x.set(i,t(r,n,o,i,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(r,i){m&&(r=e[i=r]),re(x,i,t(r,n,o,i,e,s))})),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)\]/,ro=/^\w*$/;const io=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(ro.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var s=t.apply(this,o);return n.cache=i.set(r,s)||i,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;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,r){e.push(o?r.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var go=rt?rt.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const po=function(t,e){return ge(t)?t:io(t,e)?[t]:lo(ho(t))};const bo=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(!ft(t))return t;for(var r=-1,i=(e=po(e,t)).length,s=i-1,x=t;null!=x&&++r<i;){var a=bo(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[r+1])?[]:{})}re(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 yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=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 Io=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,r,i){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(i.set(t,e),i.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,i):o(f,m,u,t,e,i);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||r(f,t,n,o,i)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!r(f,m,n,o,i)){d=!1;break}}return i.delete(t),i.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 No=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vo=rt?rt.prototype:void 0,Lo=vo?vo.valueOf:void 0;const Mo=function(t,e,n,o,r,i,s){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||!i(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+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=No),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=Ro(x(t),x(e),o,r,i,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,r,i){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:wo.call(e,l)))return!1}var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var g=!0;i.set(t,e),i.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=s?o(h,m,l,e,t,i):o(m,h,l,t,e,i);if(!(void 0===p?m===h||r(m,h,n,o,i):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return i.delete(t),i.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,r,i){var s=ge(t),x=ge(e),a=s?Do:Sn(t),c=x?Do:Sn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return i||(i=new Qt),s||ve(t)?Ro(t,e,n,o,r,i):Mo(t,e,a,n,o,r,i);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return i||(i=new Qt),r(m,h,n,o,i)}}return!!d&&(i||(i=new Qt),Oo(t,e,n,o,r,i))};const jo=function t(e,n,o,r,i){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,r,t,i))};const Go=function(t,e){return jo(t,e)};const Vo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ho=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(r);++o<r;)i[o]=t[o+e];return i};const Wo=function(t,e){return e.length<2?t:Ho(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},$o=["push","attributes","next","map","clear","_saved","getRange","getContainedElement","isIntersectingWithRange","setAttribute","getFirstMarker","removeMarkers","_model","accept","suggestion:","nodeAfter","previous","hasComments","getFirstRange","end","onDiscard","length","onAccept","decorate","filter","split","size","creator","isMultiRange","set","addMarkerName","_isDataLoaded","subType","_onAccept","getMarkers","data","toJSON","createdAt","getMarkerNames","substr","commentThread","removeMarker","_markerNames","getAllAdjacentSuggestions","getMultiRangeId","markers","getItems","type","addMarker","getRanges","author","isInContent","from","_onDiscard","@external","head","authoredAt","_onAttributesChange"];var Xo,Zo;Xo=$o,Zo=490,function(t){for(;--t;)Xo.push(Xo.shift())}(++Zo);const Yo=function(t,e){return $o[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Yo("0x5")]=!1,this.id=e.id,this[Yo("0x15")]=e[Yo("0x15")],this.subType=e[Yo("0x6")]||null,this[Yo("0x18")]=e[Yo("0x18")],this[Yo("0x1")]=e.creator||e[Yo("0x18")],this.isExternal=Boolean(e.attributes&&e[Yo("0x21")][Yo("0x1c")]),this[Yo("0x9")]=null,this[Yo("0x2c")]=t,this._onAccept=e[Yo("0x36")],this[Yo("0x1b")]=e[Yo("0x34")],this._onAttributesChange=e.onAttributesChange,this._markerNames=new Set,this[Yo("0xb")]=null,this.set(Yo("0x1e"),null),this[Yo("0x3")](Yo("0x21"),e[Yo("0x21")]||{}),this[Yo("0x3")]("previous",null),this[Yo("0x3")](Yo("0x22"),null),this[Yo("0x3")](Yo("0xe"),null),this.set(Yo("0x25"),!1),this[Yo("0x37")](Yo("0x2d")),this.decorate("discard")}get[Yo("0x1d")](){let t=this;for(;t[Yo("0x30")];)t=t[Yo("0x30")];return t}get[Yo("0x31")](){return!!this.commentThread&&this[Yo("0xe")][Yo("0x35")]>0}get[Yo("0x2")](){return 0!=this._markerNames[Yo("0x0")]&&6==Array[Yo("0x1a")](this[Yo("0x10")])[0][Yo("0x39")](":")[Yo("0x35")]}get[Yo("0x19")](){return null!==this[Yo("0x2a")]()}addMarkerName(t){this[Yo("0x10")].add(t)}[Yo("0xc")](){return Array[Yo("0x1a")](this[Yo("0x10")])}[Yo("0x8")](){return this[Yo("0xc")]()[Yo("0x23")]((t=>this[Yo("0x2c")][Yo("0x13")].get(t)))[Yo("0x38")]((t=>t))}getFirstMarker(){return this[Yo("0x8")]()[0]||null}removeMarkers(){this[Yo("0x2c")].change((t=>{for(const e of this[Yo("0x8")]())t[Yo("0xf")](e)})),this._markerNames[Yo("0x24")]()}[Yo("0xf")](t){this[Yo("0x2c")].change((e=>{e[Yo("0xf")](t)})),this[Yo("0x10")].delete(t)}addRange(t){const e=Yo("0x2e")+this[Yo("0x15")]+":"+this[Yo("0x6")]+":"+this.id+":"+this[Yo("0x1")].id+":"+Jo[Yo("0x12")]();this[Yo("0x4")](e),this[Yo("0x2c")].change((n=>{n[Yo("0x16")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Yo("0x28")](t){for(const e of this[Yo("0x17")]())if(e.isIntersecting(t))return!0;return!1}[Yo("0x17")](){return this[Yo("0x8")]()[Yo("0x23")]((t=>t[Yo("0x26")]()))}[Yo("0x14")](){return this[Yo("0x17")]().reduce(((t,e)=>[...t,...e.getItems()]),[])}[Yo("0x32")](){var t;return(null===(t=this[Yo("0x2a")]())||void 0===t?void 0:t[Yo("0x26")]())||null}[Yo("0x27")](){const t=this[Yo("0x17")]();if(1!=t[Yo("0x35")])return null;const e=t[0],n=e.start[Yo("0x2f")],o=e[Yo("0x33")].nodeBefore;return n instanceof s.Element?n!=o?null:n:null}[Yo("0x2d")](){this[Yo("0x7")](this[Yo("0x17")](),this[Yo("0x9")],this[Yo("0x21")]),this.removeMarkers()}discard(){this[Yo("0x1b")](this.getRanges(),this[Yo("0x9")],this[Yo("0x21")]),this[Yo("0x2b")]()}[Yo("0x11")](){const t=[];let e=this.head;for(;e;)t[Yo("0x20")](e),e=e.next;return t}[Yo("0x29")](t,e){const n=eo(this[Yo("0x21")]);_o(n,t,e),Go(n,this[Yo("0x21")])||(this[Yo("0x21")]=n,this._onAttributesChange(n))}removeAttribute(t){const e=eo(this[Yo("0x21")]);qo(e,t),Go(e,this[Yo("0x21")])||(this.attributes=e,this[Yo("0x1f")](this[Yo("0x21")]))}[Yo("0xa")](){return{id:this.id,type:this[Yo("0x6")]?this.type+":"+this.subType:this[Yo("0x15")],authorId:this[Yo("0x1")].id,createdAt:this[Yo("0xb")],hasComments:this[Yo("0x31")],data:this[Yo("0x9")],attributes:this[Yo("0x21")]}}static[Yo("0x12")](){return(0,e.uid)()[Yo("0xd")](1,5)}}function Qo(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"*Replace image URL*":return o("*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 format:* %0":return o("*Set format:* %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_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});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_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});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_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});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"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});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);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const tr=["checkChild","$textProxy","addFormat","remove","elementEnd","insertion","isEmpty","attribute","*Change to:* %0","key","item","_handleRenameSuggestionDescription","end","registerAttributeLabel","_locale","has","push","addObject","isObject","subType","removeContainer","matchingCallback","registerElementLabel","previousSibling","_customCallbacks","$1 $2","skip","_itemLabelsCallbacks","*Set format:* %0","getFirstRange","*Remove:* %0","name","deletion","*Remove format:* %0","get","nodeAfter","data","ELEMENT_SPACE","_resolveDescriptionItems","length","set","match","registerDescriptionCallback","add","newValue","elementStart","_schema","text","replace","nextSibling","addEmptyContainer","removeObject","*Merge:* %0","$text","map","_handleCustomCallbackDescription","normal","addContainer","isInContent","getItemLabel","start","*Insert:* %0","_attributeLabels","*Split:* %0","join","EmptyContainer","Container","removeFormat","function","element","quantity","_addDescriptionItems","type","softBreak","Object","format","indexOf","_itemLabels"];var er,nr;er=tr,nr=441,function(t){for(;--t;)er.push(er.shift())}(++nr);const or=function(t,e){return tr[t-=0]};class rr{constructor(t,e){this[or("0x33")]=[],this[or("0x1a")]=new Map,this[or("0x36")]=[],this[or("0xb")]=new Map,this[or("0x49")]=t,this[or("0x29")]=e}getDescriptions(t){const e=[],n=new Set,o=new Set;for(let r=0;r<t.length;r++){const i=t[r];if(!i[or("0x7")])continue;const s=this[or("0x4")](i);if(s){if(null!=i.subType){if(n[or("0x2a")](i[or("0x2e")]))continue;n.add(i[or("0x2e")])}e[or("0x2b")](s)}else if(or("0x22")!=i.type)or("0x20")!=i[or("0x15")]&&or("0x3b")!=i[or("0x15")]||this._handleInsertRemoveSuggestionDescription(e,i,t[r+1]);else{const t=i[or("0x3f")].key;if(o[or("0x2a")](t))continue;o[or("0x46")](i[or("0x3f")][or("0x24")]),t==_c?this[or("0x26")](e,i):this._handleAttributeSuggestionDescription(e,i)}}return this._resolveDescriptionItems(e)}[or("0x45")](t){this._customCallbacks.push(t)}[or("0x31")](t,n,o=e.priorities[or("0x5")]){or("0x11")==typeof t?(0,e.insertToPriorityArray)(this[or("0x36")],{matchingCallback:t,label:n,priority:o}):this[or("0x1a")][or("0x43")](t,n)}[or("0x28")](t,e){this[or("0xb")][or("0x43")](t,e)}getItemLabel(t,e=1){let n;for(const e of this[or("0x36")])if(e[or("0x30")](t)){n=e.label;break}return n||(n=this[or("0x1a")][or("0x3d")](t[or("0x3a")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[or("0x3a")]}_addDescriptionItems(t,e){const n=e[or("0x38")]().getWalker(),o=or("0x20")==e[or("0x15")]?"add":or("0x1e");for(const e of n){const r=e.item,i=t[t[or("0x42")]-1];if(r.is(or("0x1c")))i&&i.type[or("0x19")](or("0xf"))>-1&&t.pop(),i&&or("0x4a")==i[or("0x15")]?i[o]+=r[or("0x3f")]:t.push({type:"text",add:"add"==o?r[or("0x3f")]:"",remove:"remove"==o?r[or("0x3f")]:""});else if(this[or("0x49")][or("0x2d")](r)){const s=r;if(i&&i[or("0x15")][or("0x19")](or("0xf"))>-1&&t.pop(),or("0x1f")==e.type)continue;i&&i.type==o+or("0x17")&&i[or("0x12")][or("0x3a")]==s[or("0x3a")]?i[or("0x13")]++:t[or("0x2b")]({type:o+or("0x17"),element:s,quantity:1}),n[or("0x35")]((t=>!(or("0x1f")==t[or("0x15")]&&t[or("0x25")]==r)))}else if(this[or("0x49")][or("0x1b")](r,or("0x2"))||r.is(or("0x12"),or("0x16"))){const n=r;if(or("0x46")==o&&or("0x48")==e[or("0x15")]||"remove"==o&&or("0x1f")==e.type)continue;if(i&&-1==i[or("0x15")].indexOf(or("0xf"))){or("0x4a")==i.type&&(i[o]+="\n");continue}let s;if(s="add"==o?n.nextSibling&&!this[or("0x49")][or("0x2d")](n[or("0x4c")])?n.nextSibling:null:n.previousSibling&&!this[or("0x49")][or("0x2d")](n[or("0x32")])?n[or("0x32")]:null,n.isEmpty||s&&s[or("0x21")]){const e=s&&s.isEmpty?s:n;i&&i.type==o+or("0xe")&&i[or("0x12")][or("0x3a")]==e[or("0x3a")]?i[or("0x13")]++:t.push({type:o+or("0xe"),element:e,quantity:1})}else t.push({type:o+or("0xf"),element:n})}}}[or("0x41")](t){const e=this[or("0x29")],n=[],o=[],r=[];for(const i of t)switch(i[or("0x15")]){case"text":if(i[or("0x46")]=i[or("0x46")][or("0x4b")](/(\S)\u000A+(\S)/g,"$1 $2")[or("0x4b")](/\u000A/g,""),i[or("0x1e")]=i[or("0x1e")].replace(/(\S)\u000A+(\S)/g,or("0x34"))[or("0x4b")](/\u000A/g,""),""!=i.add&&""!=i[or("0x1e")]){n.push({type:or("0x4b"),content:Qo(e,"REPLACE_TEXT",['"'+i[or("0x1e")]+'"','"'+i[or("0x46")]+'"'])});continue}if(null!=i.add[or("0x44")](/^ +$/)){n.push({type:or("0x20"),content:Qo(e,or("0xa"),Qo(e,or("0x40"),i[or("0x46")][or("0x42")]))});continue}if(null!=i[or("0x1e")][or("0x44")](/^ +$/)){n.push({type:or("0x3b"),content:Qo(e,or("0x39"),Qo(e,or("0x40"),i[or("0x1e")][or("0x42")]))});continue}if(""!=i[or("0x46")]){n[or("0x2b")]({type:"insertion",content:Qo(e,or("0xa"),'"'+i[or("0x46")]+'"')});continue}n[or("0x2b")]({type:or("0x3b"),content:Qo(e,"*Remove:* %0",'"'+i[or("0x1e")]+'"')});continue;case or("0x4d"):case or("0x2c"):n[or("0x2b")]({type:"insertion",content:Qo(e,"*Insert:* %0",this[or("0x8")](i[or("0x12")],i.quantity))});continue;case"removeEmptyContainer":case or("0x0"):n.push({type:or("0x3b"),content:Qo(e,or("0x39"),this[or("0x8")](i[or("0x12")],i.quantity))});continue;case or("0x6"):n[or("0x2b")]({type:or("0x20"),content:Qo(e,or("0xc"),this[or("0x8")](i[or("0x12")],i.quantity))});continue;case or("0x2f"):n[or("0x2b")]({type:or("0x3b"),content:Qo(e,or("0x1"),this[or("0x8")](i[or("0x12")],i.quantity))});continue;case or("0x1d"):o[or("0x2b")](i[or("0x24")]);continue;case"removeFormat":r[or("0x2b")](i[or("0x24")]);continue;default:n[or("0x2b")](i)}if(o[or("0x42")]){const t=o[or("0x3")]((t=>this[or("0xb")][or("0x2a")](t)?this._attributeLabels[or("0x3d")](t):t)).join(", ");n[or("0x2b")]({type:or("0x18"),content:Qo(this[or("0x29")],or("0x37"),t)})}if(r[or("0x42")]){const t=r.map((t=>this._attributeLabels[or("0x2a")](t)?this[or("0xb")].get(t):t))[or("0xd")](", ");n[or("0x2b")]({type:or("0x18"),content:Qo(this._locale,or("0x3c"),t)})}return n}[or("0x4")](t){for(const e of this._customCallbacks){const n=e(t);if(n&&or("0x15")in n)return n}}_handleAttributeSuggestionDescription(t,e){const n=e[or("0x3f")],o=void 0===n[or("0x47")]?or("0x10"):or("0x1d");t[or("0x2b")]({type:o,key:n.key})}[or("0x26")](t,e){t[or("0x2b")]({type:or("0x18"),content:Qo(this[or("0x29")],or("0x23"),this[or("0x8")](e[or("0x38")]().start[or("0x3e")],1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this[or("0x14")](t,e),n&&n[or("0x38")]()&&!e.getFirstRange()[or("0x27")].isEqual(n[or("0x38")]()[or("0x9")])){const n=t[t.length-1],o="insertion"==e[or("0x15")]?or("0x46"):or("0x1e");n&&or("0x4a")==n.type&&(n[o]+="\n")}}}const ir=["get","showAIAssistant","plugins","editor","enableCommand","afterInit"];var sr,xr;sr=ir,xr=177,function(t){for(;--t;)sr.push(sr.shift())}(++xr);const ar=function(t,e){return ir[t-=0]};class cr extends t.Plugin{[ar("0x2")](){const t=this[ar("0x0")],e=t[ar("0x5")][ar("0x3")]("TrackChangesEditing");t.commands[ar("0x3")]("showAIAssistant")&&e[ar("0x1")](ar("0x4"))}}const lr=["center","plugins","commandName","FORMAT_ALIGN_TO_CENTER","FORMAT_ALIGNMENT","_descriptionFactory","has","_registerLegacyDescription","type","FORMAT_ALIGN_TO_RIGHT","AlignmentEditing","registerAttributeLabel","formatBlock","TrackChangesEditing","editor","commandParams","FORMAT_ALIGN_TO_LEFT","format","get","alignment","justify","locale","right","FORMAT_JUSTIFY_TEXT"];var ur,dr;ur=lr,dr=346,function(t){for(;--t;)ur.push(ur.shift())}(++dr);const gr=function(t,e){return lr[t-=0]};class fr extends t.Plugin{afterInit(){const t=this[gr("0x4")],e=t[gr("0xb")];if(!t[gr("0xf")][gr("0x14")](gr("0x0")))return;const n=t[gr("0xf")][gr("0x8")](gr("0x3"));n._enableDefaultAttributesIntegration(gr("0x9"),[],["alignment"]),n[gr("0x13")][gr("0x1")](gr("0x9"),Qo(e,gr("0x12"))),this[gr("0x15")]()}[gr("0x15")](){const t=this[gr("0x4")],e=t[gr("0xb")];t.plugins.get(gr("0x3"))[gr("0x13")].registerDescriptionCallback((t=>{if(gr("0x2")!=t[gr("0x16")])return;const{data:n}=t;if(n&&"alignment"==n[gr("0x10")]){const t=n[gr("0x5")][0].value;return{type:gr("0x7"),content:Qo(e,"*Format:* %0",function(t){switch(t){case"left":return Qo(e,gr("0x6"));case gr("0xc"):return Qo(e,gr("0x17"));case gr("0xe"):return Qo(e,gr("0x11"));case gr("0xa"):return Qo(e,gr("0xd"))}}(t))}}}))}}const mr=["FORMAT_ITALIC","commandParams","FORMAT_BOLD","*Remove format:* %0","underline","BoldEditing","formatInline","StrikethroughEditing","FORMAT_SUPERSCRIPT","_registerLegacyDescription","ItalicEditing","get","FORMAT_UNDERLINE","format","registerDescriptionCallback","slice","CodeEditing","FORMAT_STRIKETHROUGH","plugins","SuperscriptEditing","toUpperCase","italic","type","commandName","_enableDefaultAttributesIntegration","locale","*Format:* %0","code","afterInit","registerAttributeLabel","FORMAT_CODE","UnderlineEditing","forceValue","TrackChangesEditing","editor"];var hr,pr;hr=mr,pr=420,function(t){for(;--t;)hr.push(hr.shift())}(++pr);const br=function(t,e){return mr[t-=0]},Er=[br("0x5"),br("0xa"),br("0x1f"),br("0x10"),br("0x7"),"SubscriptEditing",br("0x13")];class _r extends t.Plugin{[br("0x1c")](){const t=this[br("0x22")],e=t[br("0x12")][br("0xb")](br("0x21")),n=t.locale;for(const o of Er){if(!t[br("0x12")].has(o))continue;const r=o[br("0xf")](0,-7).toLowerCase(),i="FORMAT_"+r[br("0x14")]();e[br("0x18")](r,[r]),e._descriptionFactory[br("0x1d")](r,Qo(n,i))}this[br("0x9")]()}[br("0x9")](){const t=this[br("0x22")],e=t[br("0x19")],n=t[br("0x12")][br("0xb")](br("0x21"));function o(t,o){n._descriptionFactory[br("0xe")]((n=>{if(br("0x6")!=n[br("0x16")])return;const{data:r}=n;return r&&r[br("0x17")]===t?r[br("0x1")][0][br("0x20")]?{type:br("0xd"),content:Qo(e,br("0x1a"),o)}:{type:br("0xd"),content:Qo(e,br("0x3"),o)}:void 0}))}o("bold",Qo(e,br("0x2"))),o(br("0x15"),Qo(e,br("0x0"))),o(br("0x4"),Qo(e,br("0xc"))),o(br("0x1b"),Qo(e,br("0x1e"))),o("strikethrough",Qo(e,br("0x11"))),o("subscript",Qo(e,"FORMAT_SUBSCRIPT")),o("superscript",Qo(e,br("0x8")))}}const Tr=["*Set format:* %0","has","locale","ELEMENT_BLOCK_QUOTE","enableCommand","$root","parent","name","document","forceValue","get","plugins","from","commandParams","afterInit","getSelectedBlocks","schema","selection","blockQuote","*Remove format:* %0","value","checkChild","model","markBlockFormat","change","TrackChangesEditing","editor","format"];var yr,Cr;yr=Tr,Cr=233,function(t){for(;--t;)yr.push(yr.shift())}(++Cr);const Ar=function(t,e){return Tr[t-=0]};class kr extends t.Plugin{[Ar("0x5")](){const t=this.editor,e=t[Ar("0x15")];if(!t[Ar("0x2")][Ar("0x14")]("BlockQuoteEditing"))return;const n=t[Ar("0x2")][Ar("0x1")](Ar("0x10")),o=this.editor.commands.get(Ar("0x9"));n[Ar("0x17")](Ar("0x9"),((e,r={})=>{const i=this[Ar("0x11")][Ar("0xd")][Ar("0x1b")][Ar("0x8")],s=r&&void 0!==r[Ar("0x0")]?r[Ar("0x0")]:!o[Ar("0xb")];let x=[];if(s){const e=Array.from(i[Ar("0x6")]()).filter((t=>Ir(t)||function(t,e){const n=e[Ar("0xc")](t[Ar("0x19")],Ar("0x9")),o=e[Ar("0xc")]([Ar("0x18"),Ar("0x9")],t);return n&&o}(t,this[Ar("0x11")][Ar("0xd")][Ar("0x7")])));x=S(e,t[Ar("0xd")])}else{const e=Array[Ar("0x3")](i[Ar("0x6")]()).filter((t=>Ir(t)));x=S(e,t[Ar("0xd")])}t.model[Ar("0xf")]((()=>{for(const t of x)n[Ar("0xe")](t,{commandName:Ar("0x9"),commandParams:[{forceValue:s}]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Ar("0x9")==n.commandName){const t=Qo(e,Ar("0x16"));return n[Ar("0x4")][0][Ar("0x0")]?{type:Ar("0x12"),content:Qo(e,Ar("0x13"),t)}:{type:Ar("0x12"),content:Qo(e,Ar("0xa"),t)}}}))}}function Ir(t){return Ar("0x9")==t[Ar("0x19")][Ar("0x1a")]}const Rr=["plugins","changeCaseTitle","enableCommand","has","changeCaseLower","changeCaseUpper","TrackChangesEditing","afterInit","editor","get"];var Sr,Nr;Sr=Rr,Nr=421,function(t){for(;--t;)Sr.push(Sr.shift())}(++Nr);const vr=function(t,e){return Rr[t-=0]};class Lr extends t.Plugin{[vr("0x6")](){const t=this[vr("0x7")];t[vr("0x9")][vr("0x2")]("CaseChange")&&(t.plugins[vr("0x8")](vr("0x5"))[vr("0x1")](vr("0x4")),t[vr("0x9")].get(vr("0x5"))[vr("0x1")](vr("0x3")),t[vr("0x9")].get("TrackChangesEditing")[vr("0x1")](vr("0x0")))}}const Mr=["afterInit","ckbox","get","enableCommand","plugins"];var wr,Or;wr=Mr,Or=257,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{[Fr("0x3")](){const t=this.editor;t.commands[Fr("0x0")](Fr("0x4"))&&t[Fr("0x2")][Fr("0x0")]("TrackChangesEditing")[Fr("0x1")](Fr("0x4"))}}const Br=["plugins","model","*Set format:* %0","language","from","enableCommand","languages","locale","checkChild","*Remove format:* %0","rootElement","markBlockFormat","label","config","forceValue","selection","document","change","schema","outdentCodeBlock","codeBlock","has","formatBlock","parent","value","find","ELEMENT_CODE_BLOCK","commandName","CodeBlock","toLowerCase","filter","registerDescriptionCallback","get","_descriptionFactory","name","getSelectedBlocks","format"];var Pr,Ur;Pr=Br,Ur=166,function(t){for(;--t;)Pr.push(Pr.shift())}(++Ur);const jr=function(t,e){return Br[t-=0]};class Gr extends t.Plugin{afterInit(){const t=this.editor;if(!t[jr("0x13")][jr("0x3")](jr("0xa")))return;const e=t[jr("0x13")][jr("0xe")]("TrackChangesEditing"),n=t[jr("0x1a")],o=t[jr("0x20")].get(jr("0x2"))[jr("0x19")],r=t.commands.get("codeBlock");e.enableCommand("indentCodeBlock"),e[jr("0x18")](jr("0x1")),e[jr("0x18")]("codeBlock",((n,i={})=>{const s=t[jr("0x14")],x=t[jr("0x14")][jr("0x23")][jr("0x22")],a=i&&void 0!==i[jr("0x21")]?i[jr("0x21")]:!r[jr("0x6")];let c;i.language||(i[jr("0x16")]=o[0][jr("0x16")]),c=a?Array.from(x[jr("0x11")]())[jr("0xc")]((t=>{return Vr(t)||(e=t,n=s[jr("0x0")],!e.is(jr("0x1d"))&&!n.isLimit(e)&&n[jr("0x1b")](e[jr("0x5")],jr("0x2")));var e,n})):Array[jr("0x17")](x[jr("0x11")]())[jr("0xc")]((t=>Vr(t)));const l=S(c,s);s[jr("0x24")]((()=>{for(const t of l)e[jr("0x1e")](t,{commandName:jr("0x2"),commandParams:[{...i,forceValue:a}],formatGroupId:"blockName"})}))})),e[jr("0xf")].registerElementLabel("codeBlock",(t=>Qo(n,jr("0x8"),t))),e[jr("0xf")][jr("0xd")]((t=>{if(jr("0x4")!=t.type)return;const e=n.t,{data:r}=t;if(!r||"codeBlock"!=r[jr("0x9")])return;const i=r.commandParams[0][jr("0x16")],s=e(o[jr("0x7")]((t=>t[jr("0x16")]===i))[jr("0x1f")])[jr("0xb")]();return r.commandParams[0].forceValue?{type:jr("0x12"),content:Qo(n,jr("0x15"),Qo(n,jr("0x8"),1)+" ("+s+")")}:{type:jr("0x12"),content:Qo(n,jr("0x1c"),Qo(n,"ELEMENT_CODE_BLOCK",1))}}))}}function Vr(t){return jr("0x2")==t[jr("0x10")]}const Hr=["addCommentThread","enableCommand","editor","has","afterInit","plugins"];var zr,Wr;zr=Hr,Wr=113,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Kr=function(t,e){return Hr[t-=0]};class qr extends t.Plugin{[Kr("0x5")](){const t=this[Kr("0x3")];t[Kr("0x0")][Kr("0x4")]("CommentsEditing")&&t[Kr("0x0")].get("TrackChangesEditing")[Kr("0x2")](Kr("0x1"))}}var $r=n(181);const Xr=["markerName","ck-suggestion-marker-","element","isAtEnd","createRangeOn","previousPosition","insert","plugins","bindElementToMarker","ck-suggestion-marker--active","isLimit","markerRange","push","addClass","nextSibling","consumable","get","TrackChangesEditing","writer","toViewElement","start","getAttribute","parent","mapper","item","getWalker","type","name","span","listIndent","elementEnd","getItems","model","isContent"];var Zr,Yr;Zr=Xr,Yr=455,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const Jr=function(t,e){return Xr[t-=0]};function Qr(t,e,n){const o=[];for(const r of e[Jr("0x12")]())r.hasAttribute(t)&&o[Jr("0x21")](n[Jr("0x19")](r));return o}function ti(t,e,{showActiveMarker:n=!0}={}){const o=t[Jr("0x1c")][Jr("0x3")](Jr("0x4"));return(r,i,s)=>{if(!s[Jr("0x2")].test(i[Jr("0x20")],r[Jr("0xe")]))return;const x=i[Jr("0x20")][Jr("0xc")](),a=i[Jr("0x20")][Jr("0x7")],c=t[Jr("0x13")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Jr("0xb")];d=d||c[Jr("0x14")](e);const n=s[Jr("0xa")][Jr("0x6")](e);if(n&&n.getCustomProperty("addHighlight"))return;Jr("0x11")==t[Jr("0xd")]&&c.isBlock(e)&&!c[Jr("0x1f")](e)&&(e[Jr("0x1")]||a[Jr("0x18")]?l&&l[Jr("0x9")]==e||(l=e,f(t[Jr("0x1a")]),g=!0):u=u||t[Jr("0x1a")])}function f(t){const r=s.writer.createUIElement(Jr("0xf"),{class:Jr("0x16")+e}),x=s[Jr("0xa")].toViewPosition(t);n&&o.activeMarkers.includes(i.markerName)&&s[Jr("0x5")][Jr("0x0")](Jr("0x1e"),r),s[Jr("0x5")][Jr("0x1b")](x,r),s[Jr("0xa")][Jr("0x1d")](r,i[Jr("0x15")])}d||g||!u||f(u)}}const ei=["options","remove","unit","isCollapsed","createRange","showSuggestionHighlights","root","fromRange","removeMarker:suggestion:deletion","downcastDispatcher","mapper","buffer","editor","enableCommand","setSelection","editing","model","merge","markerNameToElements","commands","unlock","modifySelection","TrackChangesEditing","bind","batch","end","enqueueChange","addMarker:suggestion:deletion","deleteForward","unbindElementFromMarkerName","markerName","detach","uiElement","selection","data","get","high","start","init","getFirstRange"];var ni,oi;ni=ei,oi=117,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class ii extends t.Plugin{static get requires(){return[$r.Delete]}[ri("0x1")](){const t=this[ri("0xf")],e=t.plugins[ri("0x26")](ri("0x19"));e[ri("0x10")]("delete");const n=t[ri("0x16")].get(ri("0x1f"));e[ri("0x10")](ri("0x1f"),((e,o={})=>{const r=t[ri("0x13")].createSelection(t[ri("0x13")].document[ri("0x24")]);r[ri("0x6")]&&t[ri("0x13")][ri("0x18")](r,{direction:"forward",unit:o[ri("0x5")]});const i=r[ri("0x2")](),x=s.LiveRange[ri("0xa")](i);let a;e(o),a="$graveyard"==x[ri("0x9")].rootName?t[ri("0x13")].createRange(i[ri("0x0")]):t[ri("0x13")][ri("0x7")](x[ri("0x0")],x[ri("0x1c")]),x[ri("0x22")](),t[ri("0x13")][ri("0x1d")](n[ri("0xe")][ri("0x1b")],(t=>{n[ri("0xe")].lock(),t[ri("0x11")](t[ri("0x7")](a.end)),n[ri("0xe")][ri("0x17")]()}))})),t[ri("0x12")].downcastDispatcher.on("addMarker:suggestion:deletion",ti(t,ri("0x14")),{priority:ri("0x27")}),t[ri("0x25")].downcastDispatcher.on(ri("0x1e"),((e,n,o)=>{o[ri("0x3")][ri("0x8")]&&ti(t,ri("0x14"),{showActiveMarker:!1})[ri("0x1a")](this)(e,n,o)}),{priority:ri("0x27")}),t[ri("0x12")][ri("0xc")].on(ri("0xb"),((t,e,n)=>{const o=n[ri("0xd")][ri("0x15")](e.markerName);if(o)for(const t of o)t.is(ri("0x23"))&&(n.mapper[ri("0x20")](t,e[ri("0x21")]),n.writer[ri("0x4")](t))}),{priority:ri("0x27")})}}const si=["splitListItemAfter","markBlockFormat","toUpperCase","nodeAfter","map","accept","listItemId","*Format:* insert into %0","afterInit","after","ELEMENT_NUMBERED_LIST","isFirstBlockOfListItem","previousSibling","indentList","change","before","getRanges","createPositionAt","detach","hasAttribute","ELEMENT_LIST_ITEM","setSelection","*Change to:* %0","multipleBlocks","getFirstRange","bulletedList","numberedList","plugins","getSelectedBlocks","list.multiBlock","ELEMENT_BULLETED_LIST","enableCommand","_suggestionFactory","nextSibling","document","fromRange","execute","from","findIndex","type","selection","deletion","listType","start","registerElementLabel","registerCustomCallback","*Merge:* %0","expandListBlocksToCompleteList","_LIST","has","get","*Outdent:* %0","value","model","TrackChangesEditing","mergeListItemForward","markMultiRangeBlockFormat","splitListItemBefore","next","schema","*Indent:* %0","commandName","commands","formatInline","DocumentListUtils","mergeListItemBackward","outdentList","getAttribute","createRange","_descriptionFactory","containsItem","listIndent","locale","end","push","format","parent","config","DocumentListEditing","commandParams","documentList"];var xi,ai;xi=si,ai=281,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{[ci("0x33")](){const t=this.editor;if(!t[ci("0x46")][ci("0xb")](ci("0x28")))return;const e=t[ci("0x22")],n=t[ci("0x46")][ci("0xc")](ci("0x10")),o=t[ci("0x46")][ci("0xc")](ci("0x1a"));function r(e){return()=>{const r=t[ci("0x18")][ci("0xc")](e);if(r[ci("0xe")]&&!t[ci("0x27")][ci("0xc")](ci("0x48")))return void t[ci("0x4f")]("paragraph",{});let i=Array[ci("0x50")](t[ci("0xf")][ci("0x4d")][ci("0x2")][ci("0x47")]());if(a(e)){i=o[ci("0x9")](i);const t=[];for(const e of i)o[ci("0x36")](e)&&t.push(e);i=t}t[ci("0xf")][ci("0x39")]((()=>{n[ci("0x12")](i,{commandName:e,commandParams:[{forceValue:!r[ci("0xe")]}],formatGroupId:ci("0x4")},[],"documentList")}))}}function i(e){return()=>{const o=function(t){let e=Array[ci("0x50")](t);const n=e[ci("0x0")]((t=>!t[ci("0x3e")](ci("0x31"))));return n>-1&&(e=e.slice(0,n)),e}(t[ci("0xf")][ci("0x4d")][ci("0x2")][ci("0x47")]()),r=o[o.length-1],i=t[ci("0xf")].schema.isObject(r)?ci("0x34"):ci("0x23"),s=t[ci("0xf")][ci("0x1e")](t[ci("0xf")].createPositionAt(o[0],ci("0x3a")),t[ci("0xf")][ci("0x3c")](r,i));t[ci("0xf")][ci("0x39")]((()=>{n[ci("0x2c")](s,{commandName:e,commandParams:[],formatGroupId:ci("0x4")},function(t){const e=new Set;for(const n of t){let t=n[ci("0x4c")];for(;t&&t[ci("0x1d")](ci("0x21"))>n[ci("0x1d")]("listIndent");)e.add(t),t=t[ci("0x4c")]}return Array[ci("0x50")](e)}(o))}))}}function x(e){return()=>{const o=t.model[ci("0x4d")][ci("0x2")][ci("0x47")]()[ci("0x14")]()[ci("0xe")],r=t[ci("0xf")][ci("0x3c")](o,ci("0x3a")),i=t[ci("0xf")].createPositionAt(o,0),s=t[ci("0xf")][ci("0x1e")](r,i);t.model[ci("0x39")]((()=>{n[ci("0x2c")](s,{commandName:e,commandParams:[],formatGroupId:ci("0x4")})}))}}function a(e){const n=t[ci("0x18")][ci("0xc")]("bulletedList")[ci("0xe")],o=t[ci("0x18")][ci("0xc")](ci("0x45"))[ci("0xe")];return"numberedList"===e?n:o}n.enableCommand(ci("0x45"),r(ci("0x45"))),n[ci("0x4a")](ci("0x44"),r(ci("0x44"))),n.enableCommand(ci("0x38"),i("indentList")),n[ci("0x4a")](ci("0x1c"),i(ci("0x1c"))),n[ci("0x4a")]("splitListItemAfter",x(ci("0x2b"))),n.enableCommand(ci("0x13"),x(ci("0x13"))),n[ci("0x1f")][ci("0x6")]((function(e){const n=!t[ci("0xf")][ci("0x15")].isObject(e),o=e[ci("0x37")],r=e[ci("0x4c")],i=e[ci("0x1d")]("listItemId"),s=!o||o.getAttribute("listItemId")!==i,x=!r||r[ci("0x1d")]("listItemId")!==i;return n&&Boolean(i)&&s&&x}),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n[ci("0x1f")].registerDescriptionCallback((function(n){if("formatBlock"!=n[ci("0x1")]&&ci("0x19")!=n[ci("0x1")])return;const{data:o}=n;if(!o)return;let r,i,s,x;switch(o[ci("0x17")]){case ci("0x44"):s=o[ci("0x29")][0].forceValue,x=a(o.commandName),r=s?ci("0x32"):"*Format:* remove from %0",!x&&t[ci("0x27")][ci("0xc")](ci("0x48"))||(r=ci("0x41")),i={type:ci("0x25"),content:Qo(e,r,Qo(e,ci("0x49")))};break;case ci("0x45"):s=o[ci("0x29")][0].forceValue,x=a(o[ci("0x17")]),r=s?ci("0x32"):"*Format:* remove from %0",!x&&t[ci("0x27")][ci("0xc")](ci("0x48"))||(r=ci("0x41")),i={type:"format",content:Qo(e,r,Qo(e,ci("0x35")))};break;case ci("0x38"):r=ci("0x16"),i={type:ci("0x25"),content:Qo(e,r,Qo(e,ci("0x3f")))};break;case ci("0x1c"):r=function(t){const e=t[ci("0x43")]();let n=e[ci("0x5")].nodeAfter;for(;n&&e[ci("0x20")](n);){if(n[ci("0x1d")]("listIndent")>0)return!1;n=n[ci("0x4c")]}return!0}(n)?Qo(e,"*Format:* remove from %0",Qo(e,"ELEMENT_"+n[ci("0x43")]()[ci("0x5")][ci("0x2e")][ci("0x1d")](ci("0x4"))[ci("0x2d")]()+ci("0xa"))):Qo(e,ci("0xd"),Qo(e,ci("0x3f"))),i={type:ci("0x25"),content:r};break;case ci("0x1b"):case ci("0x11"):!1===o[ci("0x42")]&&(r=ci("0x8"),i={type:ci("0x3"),content:Qo(e,r,Qo(e,ci("0x3f")))})}return i})),n[ci("0x4b")][ci("0x7")]("formatBlock",ci("0x2a"),ci("0x30"),(function(e,n){const o=[];for(let n of e)n[ci("0x5")][ci("0x2e")]===n[ci("0x23")][ci("0x26")]&&(n=t.model[ci("0x1e")](t[ci("0xf")][ci("0x3c")](n.start.nodeAfter,0))),o[ci("0x24")](n);t[ci("0xf")][ci("0x39")]((e=>{const r=t[ci("0xf")][ci("0x4d")][ci("0x2")],i=Array[ci("0x50")](r[ci("0x3b")]())[ci("0x2f")]((t=>s.LiveRange[ci("0x4e")](t)));e.setSelection(o),t[ci("0x18")][ci("0xc")](n[ci("0x17")]).refresh(),n.commandParams[ci("0x24")]({forceDefaultExecution:!0}),t[ci("0x4f")](n[ci("0x17")],...n[ci("0x29")]),e[ci("0x40")](i);for(const t of i)t[ci("0x3d")]()}))}))}}const ui=["type","listType","_getSuggestionBlocksForListStyle","_getSuggestionBlocks","getAttribute","numbered","filter","_getTranslationKeyForListStyle","registerDescriptionCallback","listStart","plugins","bind","replace","toUpperCase","ELEMENT_","DocumentListUtils","handleListReversedCommand","from","listReversed","model","styles","change","_descriptionFactory","handleDescriptions","handleListStyleCommand","editor","markMultiRangeBlockFormat","DocumentListPropertiesEditing","format","*Format:* set order to regular","*Format:* set start index to %0","get","handleListStartCommand","list.properties","expandListBlocksToCompleteList","length","listStyle","locale","*Change to:* %0","selection","isListItemBlock","enableCommand","reversed","formatBlock","*Format:* set order to reversed","config","document","getSelectedBlocks","commandName","isFirstBlockOfListItem","startIndex","getListTypeFromListStyleType","DocumentListPropertiesUtils","TrackChangesEditing","formatInline"];var di,gi;di=ui,gi=417,function(t){for(;--t;)di.push(di.shift())}(++gi);const fi=function(t,e){return ui[t-=0]};class mi extends t.Plugin{afterInit(){if(!this[fi("0x30")][fi("0x21")].has(fi("0x32")))return;const t=this[fi("0x30")][fi("0xd")][fi("0x36")](fi("0x1")),e=this[fi("0x30")].plugins.get(fi("0x15"));t[fi("0x2b")]&&e[fi("0x9")]("listStyle",this.handleListStyleCommand[fi("0x22")](this)),t[fi("0xa")]&&e[fi("0x9")](fi("0x29"),this[fi("0x27")][fi("0x22")](this)),t[fi("0x12")]&&e[fi("0x9")](fi("0x20"),this[fi("0x0")][fi("0x22")](this)),e[fi("0x2d")][fi("0x1f")](this[fi("0x2e")][fi("0x22")](this))}[fi("0x2f")](t,e={}){const n=this[fi("0x30")][fi("0x21")][fi("0x36")](fi("0x15")),o=this._getSuggestionBlocksForListStyle();this[fi("0x30")][fi("0x2a")][fi("0x2c")]((()=>{n[fi("0x31")](o,{commandName:"listStyle",commandParams:[{type:e[fi("0x17")]}],formatGroupId:fi("0x4")})}))}[fi("0x27")](t,e={}){const n=this[fi("0x30")][fi("0x21")][fi("0x36")](fi("0x15")),o=this[fi("0x30")][fi("0x21")][fi("0x36")](fi("0x26")),r=this[fi("0x1a")]((t=>o.isListItemBlock(t)&&fi("0x1c")===t[fi("0x1b")]("listType")));null!==r&&this[fi("0x30")][fi("0x2a")][fi("0x2c")]((()=>{n[fi("0x31")](r,{commandName:fi("0x29"),commandParams:[{reversed:e[fi("0xa")]}],formatGroupId:"listReversed"})}))}[fi("0x0")](t,e={}){const n=this[fi("0x30")][fi("0x21")][fi("0x36")](fi("0x15")),o=this[fi("0x30")][fi("0x21")][fi("0x36")]("DocumentListUtils"),r=this._getSuggestionBlocks((t=>o[fi("0x8")](t)&&fi("0x1c")===t[fi("0x1b")](fi("0x18"))));null!==r&&this[fi("0x30")][fi("0x2a")][fi("0x2c")]((()=>{n[fi("0x31")](r,{commandName:fi("0x20"),commandParams:[{startIndex:e[fi("0x12")]}],formatGroupId:fi("0x20")})}))}[fi("0x2e")](t){if(fi("0xb")!=t.type&&fi("0x16")!=t[fi("0x17")])return;const e=this[fi("0x30")][fi("0x5")],{data:n}=t;if(!n)return;let o,r;switch(n[fi("0x10")]){case"listStyle":o=fi("0x6"),r={type:fi("0x33"),content:Qo(e,o,Qo(e,this[fi("0x1e")](n.commandParams[0][fi("0x17")])))};break;case fi("0x29"):o=n.commandParams[0][fi("0xa")]?fi("0xc"):fi("0x34"),r={type:"format",content:Qo(e,o)};break;case fi("0x20"):o=fi("0x35"),r={type:fi("0x33"),content:Qo(e,o,n.commandParams[0][fi("0x12")])}}return r}[fi("0x19")](){const t=this[fi("0x30")][fi("0x21")].get("DocumentListUtils");let e=Array.from(this[fi("0x30")][fi("0x2a")][fi("0xe")].selection[fi("0xf")]());return e.push(...t[fi("0x2")](e)),e=[...new Set(e)],e}[fi("0x1a")](t){const e=this[fi("0x30")][fi("0x21")].get("DocumentListUtils");let n=Array[fi("0x28")](this[fi("0x30")].model.document[fi("0x7")][fi("0xf")]())[fi("0x1d")](t);if(!n[fi("0x3")])return null;n=e[fi("0x2")](n);const o=[];for(const t of n)e[fi("0x11")](t)&&o.push(t);return o}[fi("0x1e")](t){return fi("0x25")+this[fi("0x30")][fi("0x21")].get(fi("0x14"))[fi("0x13")](t)[fi("0x24")]()+"_LIST_"+t[fi("0x24")]()[fi("0x23")](/-/g,"_")}}var hi=n(331);const pi=["hasClass","getFirstPosition","options","data","parent","selection","change","removeMarker:suggestion:insertion","getFirstRange","commands","createPositionAt","addMarker:suggestion:insertion","detach","init","ck-suggestion-marker-split","high","remove","enableCommand","enter","afterExecute","writer","markerNameToElements","editor","nextSibling","document","downcastDispatcher","plugins","showSuggestionHighlights","markInsertion","get","setSelection","createRange","fire","model","fromRange","markerName","split","mapper","bind","end","TrackChangesEditing"];var bi,Ei;bi=pi,Ei=364,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);const _i=function(t,e){return pi[t-=0]};class Ti extends t.Plugin{static get requires(){return[hi.Enter]}[_i("0x12")](){const t=this[_i("0x1b")],e=t[_i("0x1f")][_i("0x22")](_i("0x4")),n=t[_i("0xe")][_i("0x22")](_i("0x17"));e[_i("0x16")](_i("0x17"),(()=>{t[_i("0x26")][_i("0xb")]((o=>{const r=t[_i("0x26")][_i("0x1d")][_i("0xa")],i=r[_i("0x6")](),x=s.LiveRange[_i("0x27")](r[_i("0xd")]());if(n.enterBlock(o)){const n=t.model[_i("0xf")](i[_i("0x9")][_i("0x1c")],0),r=o[_i("0x24")](i,n);e[_i("0x21")](r)}else o[_i("0x23")](o[_i("0x24")](x[_i("0x3")]));x[_i("0x11")](),n[_i("0x25")](_i("0x18"),{writer:o})}))})),t.editing[_i("0x1e")].on(_i("0x10"),ti(t,_i("0x0")),{priority:_i("0x14")}),t.editing.downcastDispatcher.on(_i("0xc"),((t,e,n)=>{const o=n[_i("0x1")][_i("0x1a")](e.markerName);if(o)for(const t of o)t[_i("0x5")](_i("0x13"))&&(n[_i("0x1")].unbindElementFromMarkerName(t,e[_i("0x28")]),n[_i("0x19")][_i("0x15")](t))}),{priority:"high"}),t[_i("0x8")].downcastDispatcher.on(_i("0x10"),((e,n,o)=>{o[_i("0x7")][_i("0x20")]&&ti(t,"split",{showActiveMarker:!1})[_i("0x2")](this)(e,n,o)}),{priority:"high"})}}const yi=["model","getIntersection","filter","editor","find","replace","findPrevious","item","plugins","suggestion:deletion","start","getRange","handleFindCommand","createPositionAt","afterInit","replaceAll","get","findByTextCallback","FindAndReplaceUtils","bind","_isInDeletionRange","enableCommand"];var Ci,Ai;Ci=yi,Ai=202,function(t){for(;--t;)Ci.push(Ci.shift())}(++Ai);const ki=function(t,e){return yi[t-=0]};class Ii extends t.Plugin{[ki("0xa")](){if(!this.editor[ki("0x4")].has("FindAndReplaceEditing"))return;const t=this[ki("0x15")][ki("0x4")][ki("0xc")]("TrackChangesEditing");t[ki("0x11")](ki("0x0"),this[ki("0x8")][ki("0xf")](this)),t[ki("0x11")]("findNext"),t[ki("0x11")](ki("0x2")),t[ki("0x11")](ki("0x1")),t[ki("0x11")](ki("0xb"))}handleFindCommand(t,e,n={}){const o=this[ki("0x15")][ki("0x4")][ki("0xc")](ki("0xe"));return t((t=>("string"==typeof e?o[ki("0xd")](e,n):e)(t)[ki("0x14")]((e=>!1===this[ki("0x10")](e,t[ki("0x3")])))),n)}_isInDeletionRange(t,e){const n=this[ki("0x15")][ki("0x12")].createRange(this[ki("0x15")][ki("0x12")][ki("0x9")](e,t[ki("0x6")]),this[ki("0x15")][ki("0x12")].createPositionAt(e,t.end));for(const t of this[ki("0x15")].model.markers.getMarkersGroup(ki("0x5")))if(null!==n[ki("0x13")](t[ki("0x7")]()))return!0;return!1}}const Ri=["TrackChangesEditing","fontSize.options","label","*Set font color:* %0","commandName","find","FORMAT_FONT_FAMILY","trim","plugins","FORMAT_FONT_BACKGROUND","fontSize","normalizeSizeOptions","commandParams","_enableDefaultAttributesIntegration","FontSize","*Reset font size*","FontFamilyEditing","toLowerCase","format","formatInline","type","*Set font background color:* %0","editor","fontFamily","registerAttributeLabel","registerDescriptionCallback","title","*Set font size:* %0","fontBackgroundColor.colors","fontColor","fontColor.colors","value","model","has","config","*Reset font background color*","_descriptionFactory","_registerLegacyDescription","FontSizeEditing","get","fontBackgroundColor","*Set font family:* %0"];var Si,Ni;Si=Ri,Ni=483,function(t){for(;--t;)Si.push(Si.shift())}(++Ni);const vi=function(t,e){return Ri[t-=0]},Li=[{pluginName:vi("0x11"),commandName:vi("0x1f")},{pluginName:vi("0x25"),commandName:"fontFamily"},{pluginName:"FontColorEditing",commandName:vi("0x8")},{pluginName:"FontBackgroundColorEditing",commandName:vi("0x13")}];class Mi extends t.Plugin{afterInit(){const t=this[vi("0x1")].locale,e=this[vi("0x1")][vi("0x1d")][vi("0x12")](vi("0x15"));for(const{pluginName:t,commandName:n}of Li)this.editor[vi("0x1d")][vi("0xc")](t)&&e[vi("0x22")](n,[n]);t.t,e[vi("0xf")][vi("0x3")](vi("0x1f"),Qo(t,"FORMAT_FONT_SIZE")),e[vi("0xf")].registerAttributeLabel(vi("0x2"),Qo(t,vi("0x1b"))),e[vi("0xf")][vi("0x3")](vi("0x8"),Qo(t,"FORMAT_FONT_COLOR")),e._descriptionFactory[vi("0x3")](vi("0x13"),Qo(t,vi("0x1e"))),this[vi("0x10")]()}[vi("0x10")](){const t=this[vi("0x1")],e=t.locale;t.plugins[vi("0x12")]("TrackChangesEditing")[vi("0xf")][vi("0x4")]((t=>{const n=e.t;if(vi("0x28")!=t[vi("0x29")])return;const{data:o}=t;if(null!=o){if(vi("0x1f")==o[vi("0x19")]){const t=o[vi("0x21")][0][vi("0xa")];if(t){const o=n(this[vi("0x1")][vi("0x1d")][vi("0x12")](vi("0x23"))[vi("0x20")](this[vi("0x1")][vi("0xd")].get(vi("0x16")))[vi("0x1a")]((e=>e[vi("0xb")]==t))[vi("0x5")]).toLowerCase();return{type:vi("0x27"),content:Qo(e,vi("0x6"),o)}}return{type:"format",content:Qo(e,vi("0x24"))}}if(vi("0x2")==o[vi("0x19")]){const t=o[vi("0x21")][0][vi("0xa")];return t?{type:"format",content:Qo(e,vi("0x14"),t)}:{type:vi("0x27"),content:Qo(e,"*Reset font family*")}}if(vi("0x8")==o[vi("0x19")]){const t=o[vi("0x21")][0].value;if(t){const o=(0,r.normalizeColorOptions)(this[vi("0x1")][vi("0xd")][vi("0x12")](vi("0x9")))[vi("0x1a")]((e=>e.model==t));let i=t,s="";return o&&(i=o[vi("0x17")],s=n(i)[vi("0x26")]()),{type:vi("0x27"),content:Qo(e,vi("0x18"),s)[vi("0x1c")](),color:{value:t,title:s||i}}}return{type:vi("0x27"),content:Qo(e,"*Reset font color*")}}if("fontBackgroundColor"==o.commandName){const t=o[vi("0x21")][0][vi("0xa")];if(t){const o=(0,r.normalizeColorOptions)(this[vi("0x1")][vi("0xd")][vi("0x12")](vi("0x7")))[vi("0x1a")]((e=>e.model==t));let i=t,s="";return o&&(i=o[vi("0x17")],s=n(i)[vi("0x26")]()),{type:vi("0x27"),content:Qo(e,vi("0x0"),s)[vi("0x1c")](),color:{value:t,title:s||i}}}return{type:vi("0x27"),content:Qo(e,vi("0xe"))}}}}))}}const wi=["config","plugins","entries","*Remove all formatting*","fontSize","push","commands","normalizeSizeOptions","locale","formatInline","*Set format to:* %0","slice","enableCommand","_registerLegacyDescription","afterInit","toUpperCase","toLowerCase","TrackChangesEditing","fontSize.options","title","pasteFormat","commandName","label","split","_enableDefaultAttributesIntegration","registerDescriptionCallback","get","type","charAt","editor","format","fontColor.colors","find","formatBlock"];var Oi,Fi;Oi=wi,Fi=194,function(t){for(;--t;)Oi.push(Oi.shift())}(++Fi);const Di=function(t,e){return wi[t-=0]};class Bi extends t.Plugin{[Di("0x18")](){const t=this[Di("0x5")],e=t[Di("0xb")][Di("0x2")](Di("0x1b")),n=t[Di("0x10")][Di("0x2")]("copyFormat"),o=t.commands[Di("0x2")]("pasteFormat");n&&o&&(e[Di("0x0")](Di("0x1e")),e[Di("0x16")]("copyFormat"),this[Di("0x17")]())}[Di("0x17")](){const t=this.editor,e=t[Di("0x12")];t[Di("0xb")][Di("0x2")](Di("0x1b"))._descriptionFactory[Di("0x1")]((n=>{if(Di("0x9")!=n.type&&Di("0x13")!=n[Di("0x3")])return;const{data:o}=n;if(o&&"pasteFormat"===o[Di("0x1f")]){const n=[],r=o.commandParams[0];for(const[e,o]of Object[Di("0xc")](r))n[Di("0xf")](Pi(t,e,o));return n.length?{type:"format",content:Qo(e,Di("0x14"),n.join(", "))}:{type:Di("0x6"),content:Qo(e,Di("0xd"))}}}))}}function Pi(t,e,n){const o=t.locale.t,i=e[Di("0x21")](/(?=[A-Z])/).join(" "),s=o(i[Di("0x4")](0)[Di("0x19")]()+i[Di("0x15")](1))[Di("0x1a")]();if("boolean"==typeof n)return s;if("fontColor"===e||"fontBackgroundColor"===e){const e=(0,r.normalizeColorOptions)(t.config[Di("0x2")](Di("0x7")))[Di("0x8")]((t=>t.model==n));return s+" ("+(e?o(e[Di("0x20")])[Di("0x1a")]():n)+")"}if(Di("0xe")===e&&isNaN(parseFloat(n))){const e=t[Di("0xb")][Di("0x2")]("FontSize")[Di("0x11")](t[Di("0xa")][Di("0x2")](Di("0x1c")))[Di("0x8")]((t=>t.model==n));return s+" ("+(e?o(e[Di("0x1d")]).toLowerCase():n)+")"}return s+" ("+n+")"}const Ui=["commandName","TrackChangesEditing","title","format","registerElementLabel","find","name","_headingOptions","value","type","model","formatBlock","_getHeadingLevel","ELEMENT_HEADING_CUSTOM","_registerLegacyDescription","heading.options","paragraph","config","_descriptionFactory","match","commandParams","has","get","view","plugins","afterInit","ELEMENT_HEADING","editor","locale","*Change to:* %0"];var ji,Gi;ji=Ui,Gi=425,function(t){for(;--t;)ji.push(ji.shift())}(++Gi);const Vi=function(t,e){return Ui[t-=0]};class Hi extends t.Plugin{[Vi("0x14")](){const t=this[Vi("0x16")];if(!t[Vi("0x13")][Vi("0x10")]("HeadingEditing"))return;this[Vi("0x2")]=t[Vi("0xc")][Vi("0x11")](Vi("0xa"));const e=t[Vi("0x17")],n=t[Vi("0x13")][Vi("0x11")]("TrackChangesEditing");n._enableDefaultAttributesIntegration("heading");for(const t of this[Vi("0x2")])Vi("0xb")!=t[Vi("0x5")]&&n[Vi("0xd")][Vi("0x1d")](t[Vi("0x5")],(n=>{const o=this[Vi("0x7")](t.model);return null!==o?(s=n,x=o,Qo(e,Vi("0x15"),[s,x])):(r=n,i=t.title,Qo(e,Vi("0x8"),[r,i]));var r,i,s,x}));this._registerLegacyDescription()}[Vi("0x9")](){const t=this[Vi("0x16")],e=t[Vi("0x17")];t[Vi("0x13")].get(Vi("0x1a"))[Vi("0xd")].registerDescriptionCallback((t=>{if(Vi("0x6")!=t[Vi("0x4")])return;const{data:n}=t;if(n&&"heading"==n[Vi("0x19")]){const t=n[Vi("0xf")][0][Vi("0x3")],s=this[Vi("0x7")](t);if(null!==s)return{type:"format",content:Qo(e,Vi("0x18"),(1,i=s,Qo(e,"ELEMENT_HEADING",[1,i])))};const x=this._headingOptions[Vi("0x0")]((e=>e[Vi("0x5")]===t))[Vi("0x1b")];return{type:Vi("0x1c"),content:Qo(e,"*Change to:* %0",(o=1,r=x,Qo(e,"ELEMENT_HEADING_CUSTOM",[o,r])))}}var o,r,i}))}[Vi("0x7")](t){var e,n;const o=t[Vi("0xe")](/^heading(\d+)/);if(o)return o[1];const r=null===(e=this._headingOptions)||void 0===e?void 0:e[Vi("0x0")]((e=>e.model==t));if(r&&r[Vi("0x12")]){const t=r[Vi("0x12")],e=(null!==(n=t[Vi("0x1")])&&void 0!==n?n:t).match(/^h(\d+)/);if(e)return e[1]}return null}}const zi=["locale","_enableDefaultAttributesIntegration","formatInline","highlight","editor","HighlightEditing","config","_descriptionFactory","highlight.options","value","*Remove highlight*","color","find","plugins","commandParams","get","FORMAT_HIGHLIGHT","TrackChangesEditing","model","registerAttributeLabel","commandName","_registerLegacyDescription","type","format","has","title"];var Wi,Ki;Wi=zi,Ki=335,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[qi("0x1")](qi("0x8")))return;const e=t[qi("0x10")][qi("0x12")](qi("0x14")),n=t[qi("0x3")];e[qi("0x4")]("highlight",[qi("0x6")]),e[qi("0xa")][qi("0x16")](qi("0x6"),Qo(n,"FORMAT_HIGHLIGHT")),this[qi("0x18")]()}[qi("0x18")](){const t=this[qi("0x7")],e=t[qi("0x3")];t[qi("0x10")][qi("0x12")](qi("0x14"))._descriptionFactory.registerDescriptionCallback((n=>{if(qi("0x5")!=n[qi("0x19")])return;const{data:o}=n;if(o&&qi("0x6")==o[qi("0x17")]){const n=e.t,r=o[qi("0x11")][0][qi("0xc")];if(r){const o=t[qi("0x9")][qi("0x12")](qi("0xb"))[qi("0xf")]((t=>t[qi("0x15")]==r)),i=n(o[qi("0x2")]).toLowerCase();return{type:qi("0x0"),content:Qo(e,"*Set highlight:* %0",i),color:{value:o[qi("0xe")],title:o[qi("0x2")]}}}return{type:"format",content:Qo(e,qi("0xd"),Qo(e,qi("0x13")))}}}))}}const Xi=["div","has","conversion","enableCommand","HorizontalLineEditing","dataDowncast","afterInit","showSuggestionHighlights","createPositionAt","TrackChangesEditing","addClass","plugins","_descriptionFactory","registerElementLabel","insert","createContainerElement","horizontalLine","for","elementToStructure","editor","ck-horizontal-line"];var Zi,Yi;Zi=Xi,Yi=111,function(t){for(;--t;)Zi.push(Zi.shift())}(++Yi);const Ji=function(t,e){return Xi[t-=0]};class Qi extends t.Plugin{[Ji("0x0")](){const t=this[Ji("0xd")];if(!t[Ji("0x5")][Ji("0x10")](Ji("0x13")))return;t.plugins.get("TrackChangesEditing")[Ji("0x12")](Ji("0xa"));const e=t[Ji("0x5")].get(Ji("0x3")),n=t.locale;e[Ji("0x6")][Ji("0x7")]("horizontalLine",(t=>Qo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Ji("0x11")][Ji("0xb")](Ji("0x14"))[Ji("0xc")]({model:Ji("0xa"),view:(t,{writer:e,options:n})=>{if(!n[Ji("0x1")])return null;const o=e[Ji("0x9")](Ji("0xf")),r=e.createEmptyElement("hr");return e[Ji("0x4")](Ji("0xe"),o),e[Ji("0x8")](e[Ji("0x2")](o,0),r),o},converterPriority:"high"})}}const ts=["has","afterInit","element","ELEMENT_HTML_EMBED","*Change %0 content*","formatBlock","attribute","rawHtml","format","locale","TrackChangesEditing","_descriptionFactory","editor","value","htmlEmbed","getFirstRange","HtmlEmbed","commandName","start","get","registerDescriptionCallback","plugins","_registerLegacyDescription","nodeAfter","type"];var es,ns;es=ts,ns=152,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class rs extends t.Plugin{[os("0x18")](){const t=this[os("0xa")];if(!t[os("0x13")][os("0x17")](os("0xe")))return;const e=t[os("0x13")].get(os("0x8")),n=t[os("0x7")];e[os("0x9")].registerElementLabel("rawHtml",(t=>Qo(n,os("0x1"),t))),e._enableDefaultAttributesIntegration("htmlEmbed",[],[os("0xb")]),e._descriptionFactory[os("0x12")]((t=>{if(os("0x4")!=t[os("0x16")])return;const{data:e}=t;if(e&&os("0xb")==e.key&&t[os("0xd")]()[os("0x10")][os("0x15")].is(os("0x0"),os("0x5"))){const t=Qo(n,os("0x1"));return{type:os("0x6"),content:Qo(n,os("0x2"),t)}}})),this[os("0x14")]()}[os("0x14")](){const t=this[os("0xa")],e=t.locale;t[os("0x13")][os("0x11")](os("0x8"))[os("0x9")].registerDescriptionCallback((t=>{if(os("0x3")!=t.type)return;const{data:n}=t;if(n&&os("0xc")==n[os("0xf")]){const t=Qo(e,os("0x1"));return{type:"format",content:Qo(e,os("0x2"),t)}}}))}}const is=["get","getClosestSelectedImageElement","resizeImage","resizedWidth","imageTypeBlock","filter","createRangeOn","convertInlineImageToBlock","selection","editor","commandParams","discard","detach","markInsertion","fromPosition","toNext","width","forceDefaultExecution","deletion","_enableDefaultAttributesIntegration","*Remove image text alternative*","formatInline","addObject","plugins","isIntersecting","formatBlock","convertBlockImageToInline","schema","document","registerCustomCallback","registerElementLabel","toPrevious","uploadImage","FORMAT_IMAGE_SIZE","registerDescriptionCallback","Inline image to block image","isCollapsed","_descriptionFactory","isEqual","type","backward","ImageCaptionEditing","ELEMENT_INLINE_IMAGE","ImageEditing","locale","start","accept","getNearestSelectionRange","caption","findIndex","imageCaption","change","ImageUtils","subType","length","find","isOwn","ImageResize","TrackChangesEditing","markDeletion","has","newValue","getCaptionFromImageModelElement","imageInline","registerAttributeLabel","getSuggestionCallback","format","ImageBlockEditing","end","imageTypeInline","attribute","ELEMENT_CAPTION","_findSuggestions","isBefore","ImageInlineEditing","alt","insertion","*Set image width:* %0","chain","createRange","markBlockFormat","enableCommand","element","afterInit","join","imageTextAlternative","model","key","_registerLegacyDescription","*Set image text alternative:* %0","imageStylePreApply","ImageTextAlternativeEditing","_suggestionFactory"];var ss,xs;ss=is,xs=178,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{[as("0x5b")](){const t=this[as("0x11")];if(!t[as("0x1f")][as("0x44")](as("0x33")))return;const e=t[as("0x1f")][as("0x8")](as("0x42")),n=t.plugins.get(as("0x3c")),o=t[as("0x34")];e[as("0x59")]("insertImage"),e[as("0x2d")][as("0x26")]("imageBlock",(t=>Qo(o,"ELEMENT_IMAGE",t))),e[as("0x2d")].registerElementLabel(as("0x47"),(t=>Qo(o,as("0x32"),t))),e[as("0x2d")][as("0x26")](as("0x38"),(()=>Qo(o,as("0x4f")))),t[as("0x1f")][as("0x44")]("ImageUploadEditing")&&e.enableCommand(as("0x28")),t.plugins.has(as("0x4b"))&&t[as("0x1f")][as("0x44")](as("0x52"))&&(e[as("0x59")](as("0x4d"),((o,r)=>{const i=n.getClosestSelectedImageElement(t[as("0x1")][as("0x24")][as("0x10")]);t[as("0x1")].change((()=>{e[as("0x58")](i,{commandName:as("0x4d"),commandParams:[r]},[],as("0x22"))}))})),e.enableCommand(as("0xc"),((o,r)=>{t[as("0x1")][as("0x3b")]((i=>{let x=n[as("0x9")](t[as("0x1")].document[as("0x10")]),a=i[as("0xe")](x);const c=s.LivePosition.fromPosition(a[as("0x35")],as("0x27")),l=s.LivePosition[as("0x16")](a[as("0x4c")],as("0x17"));e[as("0x19")]((()=>o(r))),x=n[as("0x9")](t[as("0x1")].document[as("0x10")]),a=i[as("0xe")](x);const u=i.createRange(c,l);c[as("0x14")](),l[as("0x14")](),e[as("0x58")](x,{commandName:as("0x4d"),commandParams:[r]},[],as("0xf")),u[as("0x35")][as("0x51")](a.start)&&e[as("0x15")](i.createRange(u.start,a[as("0x35")]),as("0xf")),a[as("0x4c")][as("0x51")](u[as("0x4c")])&&e[as("0x15")](i[as("0x57")](a[as("0x4c")],u[as("0x4c")]),as("0xf"))}))})),e[as("0x7")][as("0x25")](as("0x21"),as("0xf"),as("0x5c"),(()=>!1)),e[as("0x7")].registerCustomCallback(as("0x21"),as("0xf"),as("0x36"),(()=>!1)),e[as("0x7")].registerCustomCallback("formatBlock","convertInlineImageToBlock",as("0x13"),e[as("0x7")][as("0x49")](as("0x21"),"",as("0x36"))),e[as("0x7")][as("0x25")](as("0x54"),"convertInlineImageToBlock",as("0x5c"),(()=>!1)),e[as("0x7")][as("0x25")](as("0x54"),as("0xf"),as("0x13"),(([n])=>{const o=e[as("0x7")][as("0x49")](as("0x54"),"",as("0x13"));let r=n[as("0x35")],i=n[as("0x4c")];const s=t.model[as("0x23")][as("0x37")](r,as("0x30")),x=t[as("0x1")][as("0x23")][as("0x37")](i,"forward");s[as("0x2c")]&&(r=s.start),x[as("0x2c")]&&(i=x[as("0x4c")]),o([t[as("0x1")][as("0x57")](r,i)])})),e._suggestionFactory[as("0x25")](as("0x21"),as("0xf"),"chain",x),e._suggestionFactory[as("0x25")](as("0x54"),as("0xf"),as("0x56"),x)),t[as("0x1f")].has(as("0x31"))&&(e[as("0x59")]("toggleImageCaption",((o,r)=>{const i=t[as("0x1f")].get("ImageCaptionUtils");let s=n[as("0x9")](t[as("0x1")][as("0x24")][as("0x10")]),x=i.getCaptionFromImageModelElement(s);t[as("0x1")].change((()=>{if(x)return void e[as("0x43")](t[as("0x1")][as("0xe")](x));const a=n.isBlockImage(s);o(r),s=n[as("0x9")](t[as("0x1")][as("0x24")].selection),x=i[as("0x46")](s),e[as("0x15")](t.model.createRangeOn(x),a?null:as("0x3a"))}))})),e._suggestionFactory.registerCustomCallback(as("0x54"),as("0x3a"),"chain",x));const r=[{type:as("0x21"),subType:as("0x5")},{type:as("0x54"),subType:"imageCaption"},{type:"formatBlock",subType:as("0xf")},{type:"insertion",subType:as("0xf")}];function i(t,o){const i=r[as("0x39")]((({type:e,subType:n})=>t.type==e&&t.subType==n)),s=r[as("0x39")]((({type:t,subType:e})=>o[as("0x2f")]==t&&o[as("0x3d")]==e));if(i<0||s<0)return!1;const x=t.getFirstRange(),a=o.getFirstRange();if((0==i||1==i)&&2==s&&x[as("0x20")](a))return!0;if(2==i&&3==s){const t=e[as("0x50")](x,"insertion")[as("0xd")]((({suggestion:t,meta:e})=>e[as("0x40")]&&"convertInlineImageToBlock"==t[as("0x3d")]));if(t[as("0x3e")]>1&&a.end[as("0x2e")](x[as("0x35")]))return!0;if(1==t.length&&(x[as("0x35")][as("0x2e")](a[as("0x4c")])||x[as("0x4c")][as("0x2e")](a[as("0x35")])))return!0}if(3==i&&3==s&&x[as("0x35")][as("0x51")](a[as("0x35")])){const t=x[as("0x4c")].nodeAfter,e=a[as("0x35")].nodeBefore;return n.isBlockImage(t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t[as("0x1f")][as("0x44")](as("0x41"))&&(e[as("0x1b")](as("0xa"),[],[as("0xb")]),e._descriptionFactory[as("0x48")](as("0xb"),Qo(o,as("0x29")))),t.plugins[as("0x44")](as("0x6"))&&e[as("0x1b")](as("0x0"),[],[as("0x53")]),e[as("0x2d")][as("0x2a")]((t=>{if(r[as("0x3f")]((({type:e,subType:n})=>t[as("0x2f")]==e&&t[as("0x3d")]==n)))return t.previous?{}:void 0})),e[as("0x2d")][as("0x2a")]((t=>{if(as("0x54")==t[as("0x2f")]||as("0x1a")==t[as("0x2f")]){const e=t.getContainedElement();if(e&&e.is(as("0x5a"),as("0x38")))return{type:"insertion"==t[as("0x2f")]?as("0x1e"):"removeObject",element:e,quantity:1}}})),e._descriptionFactory.registerDescriptionCallback((t=>as("0x21")==t[as("0x2f")]&&as("0xf")==t[as("0x3d")]?{type:as("0x4a"),content:as("0x2b")}:as("0x21")==t.type&&as("0x22")==t[as("0x3d")]?{type:as("0x4a"),content:"Block image to inline image"}:void 0)),e[as("0x2d")].registerDescriptionCallback((t=>{if(as("0x4e")!=t[as("0x2f")])return;const{data:e}=t;if(!e||"alt"!=e[as("0x2")])return;const n=e[as("0x45")];return n?{type:as("0x4a"),content:Qo(o,as("0x4"),'"'+n+'"')}:{type:"format",content:Qo(o,as("0x1c"))}})),this[as("0x3")]()}[as("0x3")](){const t=this.editor,e=t[as("0x34")];t[as("0x1f")][as("0x8")]("TrackChangesEditing")._descriptionFactory[as("0x2a")]((t=>{if("formatBlock"!=t[as("0x2f")]&&as("0x1d")!=t[as("0x2f")])return;const{data:n}=t;if(n){if(as("0x0")==n.commandName){const t=n[as("0x12")][0][as("0x45")];return t?{type:as("0x4a"),content:Qo(e,as("0x4"),'"'+t+'"')}:{type:as("0x4a"),content:Qo(e,"*Remove image text alternative*")}}if(as("0xa")==n.commandName){const t=n[as("0x12")][0][as("0x18")];return t?{type:as("0x4a"),content:Qo(e,as("0x55"),t)}:{type:as("0x4a"),content:Qo(e,"*Reset image width*")}}}}))}}const ls=["formatBlock","locale","discard","getSuggestionCallback","_suggestionFactory","registerDescriptionCallback","commandName","registerCustomCallback","_registerLegacyDescription","get","_descriptionFactory","oldValue","src","plugins","_handleLegacySuggestions","_enableDefaultAttributesIntegration","accept","type","format","editor","replaceImageSource","newValue","attribute","TrackChangesEditing"];var us,ds;us=ls,ds=392,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{afterInit(){if(!this[gs("0xb")][gs("0x5")].has("ImageEditing"))return;const t=this[gs("0xb")][gs("0x11")],e=this[gs("0xb")][gs("0x5")][gs("0x1")](gs("0xf"));e[gs("0x7")](gs("0xc"),[],["src"]),e[gs("0x2")][gs("0x15")]((e=>{if(gs("0xe")!=e[gs("0x9")])return;const{data:n}=e;return n&&gs("0x4")==n.key?n[gs("0xd")]&&n[gs("0x3")]?{type:"format",content:Qo(t,"*Replace image URL*")}:{type:gs("0xa"),content:""}:void 0})),this[gs("0x6")]()}[gs("0x6")](){const t=this[gs("0xb")][gs("0x5")][gs("0x1")]("TrackChangesEditing");t[gs("0x14")][gs("0x17")](gs("0x10"),gs("0xc"),gs("0x8"),t[gs("0x14")][gs("0x13")](gs("0x10"),null,gs("0x12"))),t[gs("0x14")][gs("0x17")](gs("0x10"),gs("0xc"),gs("0x12"),t[gs("0x14")][gs("0x13")]("formatBlock",null,gs("0x8"))),this._registerLegacyDescription()}[gs("0x0")](){const t=this.editor,e=t.locale;t[gs("0x5")][gs("0x1")]("TrackChangesEditing")._descriptionFactory[gs("0x15")]((t=>{if(gs("0x10")!=t[gs("0x9")]&&"formatInline"!=t[gs("0x9")])return;const{data:n}=t;return n&&gs("0xc")==n[gs("0x16")]?{type:gs("0xa"),content:Qo(e,"*Format:* replace image URL")}:void 0}))}}const ms=["shouldConvertImageType","Users","getSuggestions","from","has","isBlockImage","newRange","name","imageTypeInline","_registerLegacyDescription","join","markBlockFormat","createRangeOn","chain","registerPostFixer","getClosestSelectedImageElement","isOwn","setImageNaturalSizeAttributes","plugins","isIntersecting","end","model","formatInline","length","getContainedElement","discardSuggestion","type","start","getSuggestion","selection","subType","registerDescriptionCallback","nodeAfter","commandName","markInlineFormat","forEach","value","refresh","getChangedMarkers","ImageStyleEditing","isEqual","isInContent","getFirstRange","registerCustomCallback","get","imageCaption","convertInlineImageToBlock","title","imageStylePostApply","_splitMarkerName","afterInit","document","normalizedStyles","head","_suggestionFactory","editor","imageStylePreApply","_findSuggestions","formatBlock","insertion","next","imageTypeBlock","imageStyle","side","isInlineImage","accept","commandParams","commands","locale","differ","isBefore","TrackChangesEditing","*Format:* %0"];var hs,ps;hs=ms,ps=295,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{[bs("0x2f")](){const t=this.editor;if(!t[bs("0xf")][bs("0x1")](bs("0x24")))return;const n=t[bs("0xf")][bs("0x29")](bs("0x44")),o=t[bs("0xf")][bs("0x29")]("ImageUtils"),r={};n.enableCommand(bs("0x3b"),((r,i)=>{const s=t.plugins[bs("0x29")](bs("0x47")).me,x=t[bs("0x40")].get(bs("0x3b"));let a=o[bs("0xc")](t[bs("0x12")][bs("0x30")][bs("0x1a")]),c=t[bs("0x12")][bs("0x9")](a),l=x[bs("0x21")];if(l==i[bs("0x21")])return;const u={commandName:bs("0x3b"),commandParams:[i],formatGroupId:(0,e.uid)()};t[bs("0x12")].change((()=>{if(n[bs("0x48")]().filter((t=>t[bs("0x26")]&&s==t.author&&(bs("0x37")==t[bs("0x17")]||bs("0x13")==t[bs("0x17")])&&(bs("0x35")==t.subType||bs("0x2d")==t.subType)&&t[bs("0x27")]()[bs("0x25")](c)))[bs("0x20")]((t=>n[bs("0x16")](t[bs("0x32")]))),a=o.getClosestSelectedImageElement(t.model.document[bs("0x1a")]),c=t[bs("0x12")].createRangeOn(a),x[bs("0x22")](),t[bs("0x40")].get(bs("0x5")).refresh(),t.commands[bs("0x29")](bs("0x3a"))[bs("0x22")](),l=x[bs("0x21")],l!=i[bs("0x21")])return o[bs("0x3d")](a)&&x[bs("0x46")](i[bs("0x21")],a)?(r({...i,setImageSizes:!1}),a=o.getClosestSelectedImageElement(t[bs("0x12")][bs("0x30")][bs("0x1a")]),void n[bs("0x8")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],bs("0x35"))):void(o[bs("0x2")](a)?n.markBlockFormat(a,u,[],bs("0x2d")):n[bs("0x1f")](c,u,bs("0x2d")))}))}));for(const e of t[bs("0xf")].get(bs("0x24"))[bs("0x31")])r[e[bs("0x4")]]=e[bs("0x2c")].toLowerCase();n[bs("0x33")][bs("0x28")](bs("0x37"),bs("0x35"),bs("0x7"),(()=>!1)),n[bs("0x33")].registerCustomCallback(bs("0x37"),bs("0x2d"),"join",(()=>!1)),n[bs("0x33")].registerCustomCallback(bs("0x13"),bs("0x2d"),bs("0x7"),(()=>!1)),n[bs("0x33")][bs("0x28")](bs("0x37"),"imageStylePreApply",bs("0x3e"),(([t])=>{o[bs("0xe")](t[bs("0x15")]())})),n._suggestionFactory[bs("0x28")](bs("0x37"),"imageStylePreApply","discard",((t,e)=>{n[bs("0x33")].getSuggestionCallback(bs("0x37"),"","accept")(t,{commandName:e[bs("0x1e")],commandParams:e.commandReversedParams})})),n[bs("0x33")].registerCustomCallback("formatBlock",bs("0x35"),bs("0xa"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:"formatBlock",subType:bs("0x35")},{type:bs("0x38"),subType:bs("0x2a")},{type:bs("0x37"),subType:bs("0x2b")},{type:bs("0x38"),subType:bs("0x2b")}];function s(t,e){const r=i.findIndex((({type:e,subType:n})=>t[bs("0x17")]==e&&t[bs("0x1b")]==n)),s=i.findIndex((({type:t,subType:n})=>e.type==t&&e[bs("0x1b")]==n));if(r<0||s<0)return!1;const x=t[bs("0x27")](),a=e[bs("0x27")]();if((0==r||1==r)&&2==s&&x[bs("0x10")](a))return!0;if(2==r&&3==s){const t=n[bs("0x36")](x,bs("0x38")).filter((({suggestion:t,meta:e})=>e[bs("0xd")]&&bs("0x2b")==t.subType));if(t[bs("0x14")]>1&&a.end[bs("0x25")](x[bs("0x18")]))return!0;if(1==t[bs("0x14")]&&(x.start.isEqual(a[bs("0x11")])||x.end[bs("0x25")](a[bs("0x18")])))return!0}if(3==r&&3==s&&x[bs("0x18")][bs("0x43")](a[bs("0x18")])){const t=x.end[bs("0x1d")],e=a[bs("0x18")].nodeBefore;return o[bs("0x2")](t)&&t===e}return!1}t.model[bs("0x30")][bs("0xb")]((()=>{let e=!1;const r=Array[bs("0x0")](t[bs("0x12")][bs("0x30")][bs("0x42")][bs("0x23")]());for(const{name:t,data:i}of r){const{group:r,type:s,subType:x,id:a}=n[bs("0x2e")](t);if("suggestion"==r&&n.hasSuggestion(a)){if(bs("0x37")==s&&("imageStylePreApply"==x||bs("0x2d")==x)){const t=n[bs("0x19")](a);if(i[bs("0x3")]){const r=t[bs("0x27")]()[bs("0x15")]();if(o[bs("0x2")](r))continue;n[bs("0x16")](t),e=!0}}if(bs("0x38")==s&&bs("0x2a")==x&&!i.newRange){const t=n[bs("0x19")](a);t[bs("0x39")]&&t[bs("0x39")][bs("0x26")]&&(n[bs("0x16")](t.next),e=!0)}}}return e})),this[bs("0x6")](r)}[bs("0x6")](t){const e=this[bs("0x34")],n=e[bs("0x41")];e[bs("0xf")][bs("0x29")](bs("0x44"))._descriptionFactory[bs("0x1c")]((e=>{if(bs("0x37")!=e[bs("0x17")]&&bs("0x13")!=e[bs("0x17")])return;const{data:o}=e;if(!o||bs("0x3b")!=o[bs("0x1e")])return;const r=o[bs("0x3f")][0].value;return i=bs("0x3c")===r?Qo(n,"FORMAT_SIDE_IMAGE"):t[r]||r,{type:"format",content:Qo(n,bs("0x45"),i)};var i}))}}const _s=["value","high","TrackChangesEditing","lowest","bind","_trackChangesExecuted","afterInit","_trackChangesValueDuringImport","importWord","listenTo","get","_handleImportedData","forEach","dataInsert","Users","plugins","_setSuggestionData","trackChanges","commands","execute","editor"];var Ts,ys;Ts=_s,ys=219,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{constructor(t){super(t),this[Cs("0x13")]=!1,this._trackChangesExecuted=!1}[Cs("0x12")](){const t=this.editor,e=t[Cs("0x9")][Cs("0x1")](Cs("0x14")),n=t[Cs("0x9")][Cs("0x1")](Cs("0x8"));e&&(e.on(Cs("0xa"),((t,[,e])=>{this[Cs("0x13")]=n[Cs("0xc")],e.collaboration_features.track_changes=!this[Cs("0x13")]}),{priority:Cs("0xd")}),this.listenTo(e,Cs("0x4"),this[Cs("0x2")][Cs("0x10")](this)),this[Cs("0x0")](e,Cs("0x4"),(()=>{this[Cs("0x11")]&&(n[Cs("0xa")](),this._trackChangesExecuted=!1)}),{priority:Cs("0xf")}),t[Cs("0x6")][Cs("0x1")](Cs("0xe")).enableCommand("importWord"))}[Cs("0x2")](t,e){const{suggestions:n}=e,o=this[Cs("0xb")][Cs("0x9")][Cs("0x1")](Cs("0x8")),r=o[Cs("0xc")];this[Cs("0x13")]!==r&&(o[Cs("0xa")](),this[Cs("0x11")]=!0),n&&n[Cs("0x3")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[Cs("0xb")].plugins[Cs("0x1")](Cs("0x5")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:Cs("0x14")}}};this[Cs("0xb")].plugins.get(Cs("0xe"))[Cs("0x7")](r)}))}}const ks=["has","blockIndent","afterInit","outdent","getItemLabel","IndentBlock","locale","commandName","FORMAT_INDENT","outdentBlock","_registerBlockAttribute","IndentEditing","getItems","enableCommand","_descriptionFactory","format","editor","registerDescriptionCallback","indentBlock","type","plugins","indent","_registerLegacyDescription","get","TrackChangesEditing","*Outdent:* %0"];var Is,Rs;Is=ks,Rs=483,function(t){for(;--t;)Is.push(Is.shift())}(++Rs);const Ss=function(t,e){return ks[t-=0]};class Ns extends t.Plugin{[Ss("0xd")](){const t=this[Ss("0x1")],e=t[Ss("0x5")][Ss("0x8")](Ss("0x9"));if(t[Ss("0x5")][Ss("0xb")](Ss("0x16"))&&(e.enableCommand(Ss("0x6")),e[Ss("0x18")](Ss("0xe"))),t.plugins[Ss("0xb")](Ss("0x10")))for(const t of[Ss("0x3"),Ss("0x14")])e._enableDefaultAttributesIntegration(t);const n=t[Ss("0x11")];e[Ss("0x15")](Ss("0xc")),e._descriptionFactory.registerAttributeLabel(Ss("0xc"),Qo(n,Ss("0x13"))),this[Ss("0x7")]()}[Ss("0x7")](){const t=this[Ss("0x1")],e=t[Ss("0x11")],n=t[Ss("0x5")][Ss("0x8")](Ss("0x9"));n[Ss("0x19")][Ss("0x2")]((t=>{if("formatBlock"!=t[Ss("0x4")])return;const{data:o}=t;if(!o)return;if(Ss("0x3")!=o.commandName&&Ss("0x14")!=o[Ss("0x12")])return;const r=t[Ss("0x17")]()[0],i=n[Ss("0x19")][Ss("0xf")](r);return Ss("0x3")==o[Ss("0x12")]?{type:Ss("0x0"),content:Qo(e,"*Indent:* %0",i)}:Ss("0x14")==o.commandName?{type:Ss("0x0"),content:Qo(e,Ss("0xa"),i)}:void 0}))}}var vs,Ls,Ms=["editor","get","enableCommand","requires","input","TrackChangesEditing"];vs=Ms,Ls=258,function(t){for(;--t;)vs.push(vs.shift())}(++Ls);var ws=function(t,e){return Ms[t-=0]};class Os extends t.Plugin{static get[ws("0x3")](){return[$r.Input]}init(){this[ws("0x0")].plugins[ws("0x1")](ws("0x5"))[ws("0x2")](ws("0x4"))}}const Fs=["key","link","toLowerCase","unlink","editor","formatInline","*Remove link*","_registerLegacyDescription","registerDescriptionCallback","plugins","_descriptionFactory","_enableDefaultAttributesIntegration","LinkEditing","commandName","registerAttributeLabel","commandParams","type","locale","link (","format","linkHref","attribute","manualDecorators","TrackChangesEditing","get","newValue"];var Ds,Bs;Ds=Fs,Bs=447,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{afterInit(){const t=this[Ps("0x19")];if(!t[Ps("0x4")].has(Ps("0x7")))return;const e=t.plugins[Ps("0x13")](Ps("0x12")),n=t.commands[Ps("0x13")](Ps("0x16"));e[Ps("0x6")](Ps("0x16"),["linkHref",...n[Ps("0x11")].map((t=>t.id))]),e._enableDefaultAttributesIntegration(Ps("0x18"));for(const t of n[Ps("0x11")])e[Ps("0x5")][Ps("0x9")](t.id,Ps("0xd")+t.label[Ps("0x17")]()+")");e[Ps("0x5")][Ps("0x3")]((e=>{if(Ps("0x10")!=e.type)return;const{data:n}=e;if(!n||Ps("0xf")!=n[Ps("0x15")])return;const o=n[Ps("0x14")],r=t[Ps("0xc")];return{type:"format",content:null==o?Qo(r,Ps("0x1")):Qo(r,"*Set link:* %0",'"'+o+'"')}})),this[Ps("0x2")]()}[Ps("0x2")](){const t=this.editor,e=t[Ps("0xc")];t[Ps("0x4")][Ps("0x13")]("TrackChangesEditing")[Ps("0x5")][Ps("0x3")]((t=>{if(Ps("0x0")!=t[Ps("0xb")])return;const{data:n}=t;if(n){if(Ps("0x16")==n[Ps("0x8")]){const t=n[Ps("0xa")][0];return{type:Ps("0xe"),content:Qo(e,"*Set link:* %0",'"'+t+'"')}}return Ps("0x18")==n.commandName?{type:"format",content:Qo(e,Ps("0x1"))}:void 0}}))}}const js=["TodoListEditing","commandName","nextSibling","_descriptionFactory","editor","todoList","*Outdent:* %0","todoListChecked","listType","*Check item*","length","selection","replace","slice","value","markBlockFormat","listIndent","from","type","ELEMENT_LIST_ITEM","format","forceValue","registerDescriptionCallback","execute","getAttribute","isObject","ListEditing","element","checkChild","enableCommand","outdentList","model","numberedList","previousSibling","has","checkTodoList","*Indent:* %0","indentList","todo","add","afterInit","bulletedList","*Change to:* %0","paragraph","listItem","getSelectedBlocks","createPositionAt","name","plugins","registerElementLabel","_selectedElements","TrackChangesEditing","ELEMENT_BULLETED_LIST","get","commands","change","push","*Uncheck item*","filter","before","document"];var Gs,Vs;Gs=js,Vs=305,function(t){for(;--t;)Gs.push(Gs.shift())}(++Vs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{[Hs("0x28")](){const t=this[Hs("0x4")],e=t.locale;if(!t[Hs("0x30")][Hs("0x22")](Hs("0x1a")))return;const n=t[Hs("0x30")][Hs("0x35")](Hs("0x33")),o=t[Hs("0x30")][Hs("0x22")](Hs("0x0"));function r(e){return()=>{const o=t[Hs("0x1f")][Hs("0x3c")][Hs("0xb")],r=t[Hs("0x36")][Hs("0x35")](e);if(r[Hs("0xe")])return void t[Hs("0x17")](Hs("0x2b"),{});const i=e[Hs("0xd")](0,-4),s=function(t,e,n){let o=Array[Hs("0x11")](t).filter((t=>{return e=t,(o=n)[Hs("0x1c")](e.parent,"listItem")&&!o[Hs("0x19")](e);var e,o}));o=o.filter((t=>!t.is(Hs("0x1b"),Hs("0x2c"))||t[Hs("0x18")](Hs("0x8"))!=e));const r=new Set;for(const t of o)t.is(Hs("0x1b"),Hs("0x2c"))?r[Hs("0x27")](Ws(t)):r.add(t);return Array[Hs("0x11")](r)}(o[Hs("0x2d")](),i,t[Hs("0x1f")].schema);t[Hs("0x1f")][Hs("0x37")]((()=>{for(const t of s)n[Hs("0xf")](t,{commandName:e,commandParams:[{forceValue:!r[Hs("0xe")]}],formatGroupId:"blockName"},Ks(t))}))}}function i(e){return()=>{const o=function(t){let e=Array[Hs("0x11")](t);const n=e.findIndex((t=>Hs("0x2c")!=t[Hs("0x2f")]));return n>-1&&(e=e.slice(0,n)),e}(t[Hs("0x1f")][Hs("0x3c")][Hs("0xb")][Hs("0x2d")]()),r=t[Hs("0x1f")].createRange(t[Hs("0x1f")][Hs("0x2e")](o[0],Hs("0x3b")),t[Hs("0x1f")].createPositionAt(o[o[Hs("0xa")]-1],"end"));t[Hs("0x1f")].change((()=>{n[Hs("0xf")](r,{commandName:e,commandParams:[],formatGroupId:Hs("0x10")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[Hs("0x18")](Hs("0x10"))>n[Hs("0x18")](Hs("0x10"));)e[Hs("0x27")](t),t=t.nextSibling}return Array[Hs("0x11")](e)}(o))}))}}n.enableCommand(Hs("0x20"),r(Hs("0x20"))),n[Hs("0x1d")](Hs("0x29"),r(Hs("0x29"))),o&&n[Hs("0x1d")](Hs("0x5"),r("todoList")),n.enableCommand("indentList",i(Hs("0x25"))),n[Hs("0x1d")](Hs("0x1e"),i(Hs("0x1e"))),o&&n[Hs("0x1d")](Hs("0x23"),(()=>{const e=t[Hs("0x36")][Hs("0x35")](Hs("0x23")),o=Array[Hs("0x11")](e[Hs("0x32")]);o[Hs("0x3a")]((t=>t[Hs("0x18")](Hs("0x7"))!=e.value)),t[Hs("0x1f")][Hs("0x37")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:Hs("0x23"),commandParams:[{forceValue:!e[Hs("0xe")]}]})}))})),n[Hs("0x3")][Hs("0x31")]("listItem",(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory[Hs("0x16")]((t=>{if("formatBlock"!=t[Hs("0x12")]&&"formatInline"!=t[Hs("0x12")])return;const{data:n}=t;if(n){if("numberedList"==n[Hs("0x1")]||"bulletedList"==n[Hs("0x1")]||Hs("0x5")==n[Hs("0x1")])switch(n[Hs("0x1")][Hs("0xc")]("List","")){case"bulleted":return o(Qo(e,Hs("0x34")));case"numbered":return o(Qo(e,"ELEMENT_NUMBERED_LIST"));case Hs("0x26"):return o(Qo(e,"ELEMENT_TODO_LIST"))}if("indentList"==n.commandName)return{type:"format",content:Qo(e,Hs("0x24"),Qo(e,Hs("0x13")))};if(Hs("0x1e")==n.commandName)return{type:Hs("0x14"),content:Qo(e,Hs("0x6"),Qo(e,"ELEMENT_LIST_ITEM"))};if(Hs("0x23")==n[Hs("0x1")])return n.commandParams[0][Hs("0x15")]?{type:Hs("0x14"),content:Qo(e,Hs("0x9"))}:{type:Hs("0x14"),content:Qo(e,Hs("0x39"))}}function o(t){return{type:Hs("0x14"),content:Qo(e,Hs("0x2a"),t)}}}))}}function Ws(t){const e=t.getAttribute(Hs("0x10"));if(0==e)return t;let n=t;for(;t[Hs("0x21")]&&t.previousSibling.is(Hs("0x1b"),Hs("0x2c"));){const o=t[Hs("0x21")].getAttribute("listIndent");if(o==e)n=t.previousSibling;else if(o<e)break;t=t[Hs("0x21")]}return n}function Ks(t){const e=[];if(t.is(Hs("0x1b"),Hs("0x2c"))&&t.getAttribute(Hs("0x10"))>0){let n=t[Hs("0x2")];for(;n&&Hs("0x2c")==n[Hs("0x2f")]&&n[Hs("0x18")](Hs("0x10"))==t[Hs("0x18")](Hs("0x10"));)e[Hs("0x38")](n),n=n.nextSibling}return e}const qs=["locale","ELEMENT_","*Format:* set start index to %0","unshift","filter","selection","listReversed","registerDescriptionCallback","_getTranslationKeyForListStyle","before","_descriptionFactory","document","toUpperCase","length","backward","handleListReversedCommand","handleListStartCommand","plugins","map","format","TrackChangesEditing","get","afterInit","type","element","*Format:* set order to reversed","listType","has","handleDescriptions","listStyle","flat","reversed","_getSuggestionBlocksForListStyle","getFirstPosition","listStart","config","startIndex","commandName","from","change","createPositionAt","*Format:* set order to regular","bind","forward","getListTypeFromListStyleType","listItem","_getSuggestionBlocks","editor","getSiblingNodes","enableCommand","numbered","markMultiRangeBlockFormat","styles","model","createRange","ListUtils","handleListStyleCommand","commandParams","getAttribute","getSelectedBlocks","_LIST_","ListPropertiesEditing","formatInline"];var $s,Xs;$s=qs,Xs=202,function(t){for(;--t;)$s.push($s.shift())}(++Xs);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0x9")](){if(!this[Zs("0x22")][Zs("0x4")][Zs("0xe")](Zs("0x30")))return;const t=this[Zs("0x22")][Zs("0x16")][Zs("0x8")]("list.properties"),e=this.editor[Zs("0x4")][Zs("0x8")](Zs("0x7"));t[Zs("0x27")]&&e[Zs("0x24")]("listStyle",this[Zs("0x2b")][Zs("0x1d")](this)),t[Zs("0x12")]&&e.enableCommand(Zs("0x38"),this.handleListReversedCommand.bind(this)),t[Zs("0x17")]&&e[Zs("0x24")](Zs("0x15"),this[Zs("0x3")][Zs("0x1d")](this)),e[Zs("0x3c")][Zs("0x39")](this.handleDescriptions[Zs("0x1d")](this))}[Zs("0x2b")](t,e={}){const n=this[Zs("0x22")][Zs("0x4")][Zs("0x8")]("TrackChangesEditing"),o=this[Zs("0x13")]();this.editor.model.change((()=>{n[Zs("0x26")](o,{commandName:Zs("0x10"),commandParams:[{type:e.type}],formatGroupId:Zs("0x10")})}))}[Zs("0x2")](t,e={}){const n=this.editor[Zs("0x4")][Zs("0x8")]("TrackChangesEditing"),o=this[Zs("0x21")]((t=>t.is("element","listItem")&&Zs("0x25")===t[Zs("0x2d")](Zs("0xd"))));if(o.length<1)return;const r=o[Zs("0x5")]((t=>this[Zs("0x22")].model[Zs("0x29")](this[Zs("0x22")][Zs("0x28")].createPositionAt(t,"before"),this[Zs("0x22")].model[Zs("0x1b")](t,0))));this[Zs("0x22")][Zs("0x28")][Zs("0x1a")]((()=>{n[Zs("0x26")](r,{commandName:Zs("0x38"),commandParams:[{reversed:e[Zs("0x12")]}],formatGroupId:Zs("0x38")})}))}handleListStartCommand(t,e={}){const n=this[Zs("0x22")][Zs("0x4")][Zs("0x8")](Zs("0x7")),o=this[Zs("0x21")]((t=>t.is(Zs("0xb"),"listItem")&&"numbered"===t.getAttribute("listType")));if(o[Zs("0x0")]<1)return;const r=o[Zs("0x5")]((t=>this[Zs("0x22")].model[Zs("0x29")](this.editor[Zs("0x28")].createPositionAt(t,Zs("0x3b")),this[Zs("0x22")].model[Zs("0x1b")](t,0))));this[Zs("0x22")][Zs("0x28")][Zs("0x1a")]((()=>{n[Zs("0x26")](r,{commandName:Zs("0x15"),commandParams:[{startIndex:e[Zs("0x17")]}],formatGroupId:Zs("0x15")})}))}[Zs("0xf")](t){if("formatBlock"!=t[Zs("0xa")]&&Zs("0x31")!=t[Zs("0xa")])return;const e=this.editor[Zs("0x32")],{data:n}=t;if(!n)return;let o,r;switch(n[Zs("0x18")]){case Zs("0x10"):o="*Change to:* %0",r={type:Zs("0x6"),content:Qo(e,o,Qo(e,this[Zs("0x3a")](n[Zs("0x2c")][0][Zs("0xa")])))};break;case Zs("0x38"):o=n[Zs("0x2c")][0][Zs("0x12")]?Zs("0xc"):Zs("0x1c"),r={type:"format",content:Qo(e,o)};break;case Zs("0x15"):o=Zs("0x34"),r={type:Zs("0x6"),content:Qo(e,o,n.commandParams[0].startIndex)}}return r}_getSuggestionBlocksForListStyle(){var t,e,n,o;const r=this[Zs("0x22")][Zs("0x4")][Zs("0x8")](Zs("0x2a"));let i=Array[Zs("0x19")](this[Zs("0x22")].model[Zs("0x3d")][Zs("0x37")][Zs("0x2e")]());return(null===(t=i[0])||void 0===t?void 0:t.is(Zs("0xb"),Zs("0x20")))&&i[Zs("0x35")](...r[Zs("0x23")](this.editor[Zs("0x28")].document[Zs("0x37")][Zs("0x14")](),"backward")),(null===(e=i[i[Zs("0x0")]-1])||void 0===e?void 0:e.is(Zs("0xb"),Zs("0x20")))&&i.push(...r[Zs("0x23")](this.editor[Zs("0x28")][Zs("0x3d")][Zs("0x37")].getLastPosition(),Zs("0x1e"))),i=[...new Set(i)],(null===(o=null===(n=this[Zs("0x22")][Zs("0x28")][Zs("0x3d")][Zs("0x37")][Zs("0x14")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Zs("0xb"),"listItem"))&&(i=i.filter((t=>t.is(Zs("0xb"),Zs("0x20"))))),i}[Zs("0x21")](t){const e=this[Zs("0x22")][Zs("0x4")].get(Zs("0x2a"));let n=Array[Zs("0x19")](this[Zs("0x22")][Zs("0x28")][Zs("0x3d")][Zs("0x37")][Zs("0x2e")]())[Zs("0x36")](t)[Zs("0x5")]((t=>{const n=this[Zs("0x22")].model[Zs("0x1b")](t,0);return[...e[Zs("0x23")](n,Zs("0x1")),...e[Zs("0x23")](n,"forward")]}))[Zs("0x11")]();return n=[...new Set(n)],n}[Zs("0x3a")](t){return Zs("0x33")+this[Zs("0x22")][Zs("0x4")][Zs("0x8")](Zs("0x2a"))[Zs("0x1f")](t)[Zs("0x3e")]()+Zs("0x2f")+t.toUpperCase().replace(/-/g,"_")}}const Js=["registerElementLabel","downcastDispatcher","get","mediaEmbed","elementToElement","TrackChangesEditing","for","MediaEmbedEditing","createEmptyElement","has","high","editor","enableCommand","stop","locale","plugins","ELEMENT_MEDIA","attribute:url:media","media","div"];var Qs,tx;Qs=Js,tx=191,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{afterInit(){const t=this[ex("0x0")];if(!t.plugins[ex("0x12")](ex("0x10")))return;const e=t[ex("0x4")][ex("0xb")](ex("0xe")),n=t[ex("0x3")];e[ex("0x1")](ex("0xc")),e._descriptionFactory[ex("0x9")](ex("0x7"),(t=>Qo(n,ex("0x5"),t))),t.conversion[ex("0xf")]("dataDowncast")[ex("0xd")]({model:"media",view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[ex("0x11")](ex("0x8"))},converterPriority:ex("0x13")}),t.data[ex("0xa")].on(ex("0x6"),((t,e,n)=>{n.options.showSuggestionHighlights&&t[ex("0x2")]()}),{priority:ex("0x13")})}}const ox=["enableCommand","TrackChangesEditing","plugins","has","get"];var rx,ix;rx=ox,ix=376,function(t){for(;--t;)rx.push(rx.shift())}(++ix);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{afterInit(){const t=this.editor;t[sx("0x1")][sx("0x2")]("MentionEditing")&&t[sx("0x1")][sx("0x3")](sx("0x0"))[sx("0x4")]("mention")}}const ax=["enableCommand","editor","pageBreak","get","plugins","TrackChangesEditing","registerElementLabel","has","locale","afterInit"];var cx,lx;cx=ax,lx=160,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("0x1")];if(!t[ux("0x4")][ux("0x7")]("PageBreakEditing"))return;t[ux("0x4")][ux("0x3")](ux("0x5"))[ux("0x0")](ux("0x2"));const e=t[ux("0x4")][ux("0x3")]("TrackChangesEditing"),n=t[ux("0x8")];e._descriptionFactory[ux("0x6")](ux("0x2"),(t=>Qo(n,"ELEMENT_PAGE_BREAK",t)))}}const gx=["registerDescriptionCallback","consumable","addMarker:suggestion:insertion","locale","plugins","mapper","type","_registerLegacyDescription","createUIElement","highest","addClass","data","formatBlock","commandName","TrackChangesEditing","getFirstRange","insertParagraph","ck-suggestion-marker--active","_enableDefaultAttributesIntegration","registerElementLabel","checkChild","editing","getItemLabel","markerName","paragraph","format","isLimit","isBlock","editor","markerRange","toViewPosition","*Insert:* %0","ck-suggestion-marker-split","end","ELEMENT_PARAGRAPH","has","showSuggestionHighlights","start","model","get","writer","consume","isTouching","afterInit","schema","activeMarkers","options","nodeAfter","$text","_descriptionFactory","insert","Paragraph"];var fx,mx;fx=gx,mx=268,function(t){for(;--t;)fx.push(fx.shift())}(++mx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0x23")](){const t=this[hx("0x14")];if(!t[hx("0x30")][hx("0x1b")](hx("0x2b")))return;const e=t[hx("0x2f")],n=t[hx("0x30")][hx("0x1f")](hx("0x6"));n[hx("0x29")][hx("0xb")]("paragraph",(t=>Qo(e,hx("0x1a"),t))),n[hx("0xa")](hx("0x10")),n.enableCommand(hx("0x8")),t[hx("0xd")].downcastDispatcher.on(hx("0x2e"),bx(t),{priority:hx("0x1")}),t[hx("0x3")].downcastDispatcher.on(hx("0x2e"),((e,n,o)=>{o[hx("0x26")][hx("0x1c")]&&bx(t,{showActiveMarker:!1})(e,n,o)}),{priority:hx("0x1")});const o=n[hx("0x29")];o[hx("0x2c")]((n=>{if("insertion"!==n[hx("0x32")])return;const{start:r,end:i}=n[hx("0x7")]();if(!r.isTouching(i)||!r.nodeAfter)return;const s=t.model[hx("0x24")],x=r[hx("0x27")];return s[hx("0x13")](x)&&!s[hx("0x12")](x)&&s[hx("0xc")](x,hx("0x28"))?{type:"insertion",content:Qo(e,hx("0x17"),o[hx("0xe")](x,1))}:void 0})),this._registerLegacyDescription()}[hx("0x33")](){const t=this[hx("0x14")],e=t[hx("0x2f")];t[hx("0x30")][hx("0x1f")](hx("0x6"))._descriptionFactory[hx("0x2c")]((t=>{if(hx("0x4")!=t[hx("0x32")])return;const{data:n}=t;return n&&hx("0x10")==n[hx("0x5")]?{type:hx("0x11"),content:Qo(e,"*Change to:* %0",Qo(e,hx("0x1a")))}:void 0}))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t[hx("0x30")].get(hx("0x6")),s=o[hx("0x15")][hx("0x1d")],x=o[hx("0x15")][hx("0x19")],a=t[hx("0x1e")][hx("0x24")];if(!s[hx("0x22")](x)||!s.nodeAfter)return;const c=s[hx("0x27")];if(a[hx("0x13")](c)&&!a[hx("0x12")](c)&&a[hx("0xc")](c,"$text")){if(!r[hx("0x2d")][hx("0x21")](o[hx("0x15")],n.name))return;const t=r.writer[hx("0x0")]("span",{class:hx("0x18")}),s=r.mapper[hx("0x16")](x);e&&i[hx("0x25")].includes(o.markerName)&&r[hx("0x20")][hx("0x2")](hx("0x9"),t),r[hx("0x20")][hx("0x2a")](s,t),r[hx("0x31")].bindElementToMarker(t,o[hx("0xf")])}}}const Ex=["formatBlock","removeFormat","format","afterInit","commandName","registerDescriptionCallback","formatInline","*Remove all formatting*","_registerLegacyDescription","RemoveFormatEditing","type","TrackChangesEditing","plugins","editor","locale","get"];var _x,Tx;_x=Ex,Tx=168,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0xb")](){const t=this[yx("0x5")];t.plugins.has(yx("0x1"))&&(t[yx("0x4")][yx("0x7")](yx("0x3"))._enableDefaultAttributesIntegration(yx("0x9")),this[yx("0x0")]())}[yx("0x0")](){const t=this.editor;t[yx("0x4")][yx("0x7")](yx("0x3"))._descriptionFactory[yx("0xd")]((e=>{if(yx("0x8")!=e[yx("0x2")]&&yx("0xe")!=e[yx("0x2")])return;const{data:n}=e;return n&&yx("0x9")==n[yx("0xc")]?{type:yx("0xa"),content:Qo(t[yx("0x6")],yx("0xf"))}:void 0}))}}const Ax=["get","goToPreviousRestrictedEditingException","discardSuggestion","acceptSelectedSuggestions","RestrictedEditingModeEditing","trackChanges","afterInit","TrackChangesEditing","enableCommand","plugins","discardSelectedSuggestions","goToNextRestrictedEditingException","discardAllSuggestions","acceptAllSuggestions"];var kx,Ix;kx=Ax,Ix=178,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Rx=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{[Rx("0xa")](){const t=this.editor;if(!t[Rx("0xd")].has(Rx("0x8")))return;const e=t[Rx("0xd")].get(Rx("0xb"));e[Rx("0xc")](Rx("0x5")),e[Rx("0xc")](Rx("0x1"));const n=t.plugins[Rx("0x4")](Rx("0x8"));n[Rx("0xc")](Rx("0x9")),n[Rx("0xc")]("acceptSuggestion"),n[Rx("0xc")](Rx("0x6")),n.enableCommand(Rx("0x3")),n[Rx("0xc")](Rx("0x2")),n[Rx("0xc")](Rx("0x7")),n[Rx("0xc")](Rx("0x0"))}}const Nx=["markerName","locale","requires","ck-suggestion-marker-","createPositionBefore","includes","enableCommand","bindElementToMarker","registerElementLabel","insert","model","high","addMarker:suggestion:insertion","shiftEnter","deletion","split","toViewPosition","options","writer","init","name","getItems","merge","_descriptionFactory","TrackChangesEditing","mapper","plugins","addMarker:suggestion:deletion","get","element","ck-suggestion-marker--active","softBreak","editing","data","downcastDispatcher","test","createUIElement"];var vx,Lx;vx=Nx,Lx=145,function(t){for(;--t;)vx.push(vx.shift())}(++Lx);const Mx=function(t,e){return Nx[t-=0]};class wx extends t.Plugin{static get[Mx("0x5")](){return[hi.ShiftEnter]}[Mx("0x16")](){const t=this.editor,e=t[Mx("0x1d")].get(Mx("0x1b"));e[Mx("0x9")](Mx("0x10")),t[Mx("0x23")][Mx("0x0")].on(Mx("0xf"),Ox(t),{priority:"high"}),t[Mx("0x23")][Mx("0x0")].on(Mx("0x1e"),Ox(t),{priority:Mx("0xe")}),t[Mx("0x24")][Mx("0x0")].on("addMarker:suggestion",((e,n,o)=>{o[Mx("0x14")].showSuggestionHighlights&&Ox(t,{showActiveMarker:!1})(e,n,o)})),e[Mx("0x1a")][Mx("0xb")](Mx("0x22"),(e=>Qo(t[Mx("0x4")],"ELEMENT_LINE_BREAK",e)))}}function Ox(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t[Mx("0x1d")][Mx("0x1f")](Mx("0x1b"));if(!r.consumable[Mx("0x1")](o.markerRange,n[Mx("0x17")]))return;const s=t[Mx("0xd")];for(const t of o.markerRange[Mx("0x18")]()){if(!t.is(Mx("0x20"),Mx("0x22")))continue;const n=Mx("0x11")==o[Mx("0x3")][Mx("0x12")](":")[1]?Mx("0x19"):"split",x=r[Mx("0x15")][Mx("0x2")]("span",{class:Mx("0x6")+n}),a=r.mapper[Mx("0x13")](s[Mx("0x7")](t));e&&i.activeMarkers[Mx("0x8")](o.markerName)&&r[Mx("0x15")].addClass(Mx("0x21"),x),r[Mx("0x15")][Mx("0xc")](a,x),r[Mx("0x1c")][Mx("0xa")](x,o[Mx("0x3")])}}}const Fx=["registerDescriptionCallback","get","type","formatBlock","forceValue","format","selection","afterInit","change","markInlineFormat","enableCommand","isCollapsed","value","from","restrictedEditingException","commandName","getRanges","StandardEditingModeEditing","commandParams","model","FORMAT_RESTRICTED_DISABLED","editor","plugins","commands","TrackChangesEditing"];var Dx,Bx;Dx=Fx,Bx=488,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{[Px("0x13")](){const t=this[Px("0x8")],e=t[Px("0x6")],n=t.locale;if(!t.plugins.has(Px("0x4")))return;const o=t[Px("0x9")].get(Px("0xb")),r=Px("0x1"),i=t[Px("0xa")][Px("0xd")](r);o[Px("0x16")](r,((t,n={})=>{const s=e.document[Px("0x12")];if(s[Px("0x17")])return void t(n);const x=void 0!==n[Px("0x10")]?n.forceValue:!i[Px("0x18")];e[Px("0x14")]((()=>{const t=Array[Px("0x0")](s[Px("0x3")]());for(const n of t){const t=x?[n]:Qr(r,n,e);for(const e of t)o[Px("0x15")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[Px("0xc")]((t=>{if(Px("0xf")!=t[Px("0xe")]&&"formatInline"!=t[Px("0xe")])return;const{data:e}=t;return e&&e[Px("0x2")]==r?e[Px("0x5")][0][Px("0x10")]?{type:"format",content:Qo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Px("0x11"),content:Qo(n,Px("0x7"))}:void 0}))}}const jx=["forceValue","editor","add","formatInline","has","style","commandParams","toLowerCase","Style","ghsAttributes","registerAttributeLabel","GeneralHtmlSupport","getGhsAttributeNameForElement","plugins","_registerLegacyDescription","formatBlock","_registerBlockAttribute","_registerInlineAttribute","locale","format","inline","definitions","config","normalizeConfig","_descriptionFactory","DataSchema","styleName","TrackChangesEditing","registerDescriptionCallback","*Set format:* %0","element","type","commandName","FORMAT_STYLE","get"];var Gx,Vx;Gx=jx,Vx=120,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins.has(Hx("0x1c"))||!t[Hx("0x21")][Hx("0x18")](Hx("0xa")))return;const e=t[Hx("0x21")][Hx("0x13")](Hx("0xc")),n=t.locale,o=t[Hx("0x7")][Hx("0x13")]("style"),r=t[Hx("0x21")][Hx("0x13")](Hx("0x1f")),i=t.plugins.get("StyleUtils")[Hx("0x8")](t[Hx("0x21")].get("DataSchema"),o[Hx("0x6")]);e._enableDefaultAttributesIntegration("style");const s=new Set;for(const t of i.block){const e=r[Hx("0x20")](t[Hx("0xf")]);s[Hx("0x16")](e)}const x=new Set;for(const t of i[Hx("0x5")]){const e=r.getGhsAttributeNameForElement(t.element);x.add(e);for(const e of t[Hx("0x1d")])x[Hx("0x16")](e)}for(const t of s)e[Hx("0x1")](t),e[Hx("0x9")][Hx("0x1e")](t,Qo(n,Hx("0x12")));for(const t of x)e[Hx("0x2")](t),e[Hx("0x9")][Hx("0x1e")](t,Qo(n,"FORMAT_STYLE"));this[Hx("0x22")]()}[Hx("0x22")](){const t=this[Hx("0x15")],e=t[Hx("0x3")];t[Hx("0x21")].get("TrackChangesEditing")[Hx("0x9")][Hx("0xd")]((t=>{if(Hx("0x0")!=t[Hx("0x10")]&&Hx("0x17")!=t[Hx("0x10")])return;const{data:n}=t;return n&&Hx("0x19")===n[Hx("0x11")]?n[Hx("0x1a")][0][Hx("0x14")]?{type:Hx("0x4"),content:Qo(e,Hx("0xe"),n[Hx("0x1a")][0][Hx("0xb")].toLowerCase())}:{type:Hx("0x4"),content:Qo(e,"*Remove format:* %0",n.commandParams[0][Hx("0xb")][Hx("0x1b")]())}:void 0}))}}const Wx=["registerCustomCallback","join","push","isIntersectingWithRange","cell","tablePaste","setSelection","isEqual","findAncestor","tableCell","removeTableRow","map","selection","model","_setupColumnsRowsFixing","ELEMENT_TABLE_ROW","getChanges","*Remove:* %0","discard","ELEMENT_TABLE_COLUMN","insertTable","nodeAfter","afterInit","isInContent","deletion","tableRow","fromRange","_splitMarkerName","getSuggestion","getRanges","get","_getSuggestionCoords","left","batch","registerElementLabel","includes","name","enqueueChange","ELEMENT_TABLE_ROW_WITH_TEXT","end","getItems","*Insert:* %0","writer","length","highest","$textProxy","low","some","ELEMENT_TABLE","detach","hasAttribute","every","_suggestionFactory","selectTableColumn","MAX_SAFE_INTEGER","order","TrackChangesEditing","_descriptionFactory","minRow","above","tableColumn","getAttribute","min","insertTableColumnRight","toLowerCase","_getCoordsForCells","position","_tablePostFixingSubtypes","start","substr","first","suggestion","classes","maxRow","plugins","insertTableRowAbove","getRowIndexes","getCellLocation","max","ELEMENT_TABLE_WITH_TEXT","type","removeTableColumn","change:data","commands","oldRange","insertTableRowBelow","getColumnIndexes","registerPostFixer","root","addClass","enableCommand","MIN_SAFE_INTEGER","values","execute","selectTableRow","document","mapper","last","getSelectionAffectedTableCells","insertion","element","has","ELEMENT_TABLE_COLUMN_WITH_TEXT","createPositionAt","createRangeOn","refresh","isArray","minColumn","rowspan","differ","accept","createTableWalker","markMultiRangeInsertion","span","markMultiRangeDeletion","startsWith","add","addMarker:suggestion","locale","colspan","getChangedMarkers","data","subType","from","filter","table","rootName","TableUtils","$graveyard","change","editor","registerDescriptionCallback","_tableSuggestions","getFirstRange"];var Kx,qx;Kx=Wx,qx=112,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const $x=function(t,e){return Wx[t-=0]};class Xx extends t.Plugin{constructor(t){super(t),this[$x("0x59")]=[$x("0x2f"),$x("0x52")],this[$x("0x14")]=new Set}[$x("0x2c")](){const t=this[$x("0x12")],e=t[$x("0x23")][$x("0x75")][$x("0x22")];if(!t[$x("0x60")][$x("0x7b")]("TableEditing"))return;const n=t[$x("0x6")],o=t[$x("0x60")][$x("0x34")]($x("0x4e")),r=t[$x("0x60")][$x("0x34")]($x("0xf"));o[$x("0x4f")][$x("0x38")]($x("0xd"),(t=>Qo(n,$x("0x46"),t))),this[$x("0x24")](),o[$x("0x70")]($x("0x2a")),o[$x("0x70")]($x("0x74")),o.enableCommand($x("0x4b"));for(const n of[$x("0x61"),$x("0x6b")]){const i=t.commands[$x("0x34")](n);o[$x("0x70")](n,(n=>{t.model[$x("0x11")]((t=>{n();const s=$x("0x51")===i[$x("0x4d")],x=r.getSelectionAffectedTableCells(e),a=r.getRowIndexes(x),c=s?a[$x("0x5c")]-1:a[$x("0x77")]+1,l=x[0][$x("0x1e")]($x("0xd")),u=r[$x("0x85")](l,{startRow:c,endRow:c}),d=Array[$x("0xb")](u).map((e=>t[$x("0x7e")](e[$x("0x1a")])));o[$x("0x0")](d,$x("0x2f"))}))}))}for(const n of["insertTableColumnLeft",$x("0x55")]){const i=t.commands[$x("0x34")](n);o[$x("0x70")](n,(n=>{t[$x("0x23")][$x("0x11")]((t=>{n();const s=$x("0x36")===i[$x("0x4d")],x=r[$x("0x78")](e),a=r[$x("0x6c")](x),c=s?a[$x("0x5c")]-1:a[$x("0x77")]+1,l=x[0][$x("0x1e")]("table"),u=r[$x("0x85")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[$x("0xb")](u)[$x("0x21")]((e=>t[$x("0x7e")](e[$x("0x1a")])));o[$x("0x0")](d,$x("0x52"))}))}))}for(const n of[$x("0x20"),$x("0x67")]){const i=n[$x("0x5b")](11),s=i.toLowerCase(),x=s.substr(0,3)+$x("0x1"),a=$x("0xd")+i,c=$x("0x54")+i,l="max"+i;o[$x("0x70")](n,(()=>{t[$x("0x23")][$x("0x11")]((t=>{const i=r.getSelectionAffectedTableCells(e),u=i[0].findAncestor($x("0xd"));let d;if($x("0x20")==n){const t=r[$x("0x62")](i);d={startRow:t[$x("0x5c")],endRow:t[$x("0x77")],includeAllSlots:!0}}else{const t=r.getColumnIndexes(i);d={startColumn:t[$x("0x5c")],endColumn:t.last,includeAllSlots:!0}}const g=r[$x("0x85")](u,d),f=Array[$x("0xb")](g)[$x("0x21")]((({cell:t})=>t)),m=Zx(f[$x("0xc")]((t=>t[$x("0x48")](x)))),h=Zx(f[$x("0xc")]((t=>!t[$x("0x48")](x))))[$x("0x21")]((e=>t[$x("0x7e")](e))),p=o[$x("0x2")](h,a);if(p&&($x("0x2f")==p[$x("0xa")]||$x("0x52")==p.subType)){const e=this._getSuggestionCoords(p);for(const n of m){const o=t[$x("0x7e")](n),i=r.getCellLocation(n),a=n[$x("0x53")](x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&p.addRange(o)}}}))}))}function i(n){const o=Array.from(e.getRanges())[$x("0x21")]((t=>s.LiveRange[$x("0x30")](t)));t.model[$x("0x11")]((e=>{const r=e[$x("0x37")];n=n[$x("0xc")]((t=>$x("0x10")!=t.root.rootName)),e[$x("0x1c")](n),t[$x("0x69")][$x("0x34")]($x("0x20"))[$x("0x7f")](),t[$x("0x73")]($x("0x20"),{forceDefaultExecution:!0}),t[$x("0x23")][$x("0x3b")]((()=>{t[$x("0x23")][$x("0x3b")](r,(t=>{const e=o[$x("0xc")]((t=>$x("0x10")!=t[$x("0x6e")][$x("0xe")]));e[$x("0x41")]>0&&t[$x("0x1c")](e);for(const t of o)t[$x("0x47")]()}))}))}))}function a(n){t[$x("0x23")].change((o=>{const r=Array.from(e[$x("0x33")]())[$x("0x21")]((t=>s.LiveRange[$x("0x30")](t))),i=[];for(const t of n)for(const e of t[$x("0x3e")]({shallow:!0}))i[$x("0x18")](e);for(const e of i)$x("0x10")!=e[$x("0x6e")][$x("0xe")]&&(o[$x("0x1c")](o[$x("0x7d")](e,0)),t[$x("0x69")].get($x("0x67")).refresh(),t[$x("0x73")]($x("0x67"),{forceDefaultExecution:!0}));const x=r[$x("0xc")]((t=>"$graveyard"!=t[$x("0x6e")][$x("0xe")]));x[$x("0x41")]>0&&o[$x("0x1c")](x);for(const t of r)t[$x("0x47")]()}))}function c(t,e){return e[$x("0x49")]((e=>t[$x("0x45")]((t=>t[$x("0x3d")][$x("0x1d")](e[$x("0x5a")])||e[$x("0x3d")][$x("0x1d")](t[$x("0x5a")])))))}function l(t,e){return t[$x("0x45")]((t=>e[$x("0x45")]((e=>t[$x("0x3d")].isTouching(e[$x("0x5a")])))))}t[$x("0x9")].downcastDispatcher.on($x("0x5"),((t,e,n)=>{if(!n.options.showSuggestionHighlights)return;const o=e.item;if(!o)return;const r=n[$x("0x76")].toViewElement(o);function i(t){return Array[$x("0x80")](t)?t:[t]}r&&$x("0x1f")===o[$x("0x3a")]&&(0,x.setHighlightHandling)(r,n[$x("0x40")],((t,e,n)=>n[$x("0x6f")](i(e[$x("0x5e")]),t)),((t,e,n)=>n.removeClass(i(e.classes),t)))}),{priority:$x("0x42")}),o[$x("0x4f")][$x("0x13")]((t=>{if($x("0x79")!=t.type&&$x("0x2e")!=t.type)return;const e=t.getContainedElement();if(null!=e&&e.is($x("0x7a"),$x("0xd"))){if("insertion"==t[$x("0x66")]){const e=t[$x("0x3e")]()[$x("0xc")]((t=>t.is($x("0x43"))))[$x("0x21")]((t=>t[$x("0x9")]));if(e.length)return{type:$x("0x79"),content:Qo(n,$x("0x3f"),Qo(n,$x("0x65"),'"'+e[$x("0x17")](" ")+'"'))}}if($x("0x2e")==t[$x("0x66")]){const e=t[$x("0x3e")]()[$x("0xc")]((t=>t.is("$textProxy")))[$x("0x21")]((t=>t[$x("0x9")]));if(e[$x("0x41")])return{type:$x("0x2e"),content:Qo(n,$x("0x27"),Qo(n,$x("0x65"),'"'+e.join(" ")+'"'))}}}})),o._descriptionFactory[$x("0x13")]((t=>{if($x("0x2f")==t.subType){const e=t[$x("0x3e")]()[$x("0xc")]((t=>t.is($x("0x43"))))[$x("0x21")]((t=>t[$x("0x9")])),o=this[$x("0x35")](t),r=o[$x("0x5f")]-o[$x("0x50")]+1;if($x("0x79")==t.type)return e[$x("0x41")]?{type:$x("0x79"),content:Qo(n,$x("0x3f"),Qo(n,$x("0x3c"),[r,'"'+e[$x("0x17")](" ")+'"']))}:{type:$x("0x79"),content:Qo(n,$x("0x3f"),Qo(n,$x("0x25"),r))};if($x("0x2e")==t.type)return e[$x("0x41")]?{type:$x("0x2e"),content:Qo(n,"*Remove:* %0",Qo(n,$x("0x3c"),[r,'"'+e[$x("0x17")](" ")+'"']))}:{type:"deletion",content:Qo(n,$x("0x27"),Qo(n,$x("0x25"),r))}}if("tableColumn"==t[$x("0xa")]){const e=t[$x("0x3e")]()[$x("0xc")]((t=>t.is($x("0x43"))))[$x("0x21")]((t=>t[$x("0x9")])),o=this[$x("0x35")](t),r=o.maxColumn-o[$x("0x81")]+1;if($x("0x79")==t.type)return e[$x("0x41")]?{type:$x("0x79"),content:Qo(n,"*Insert:* %0",Qo(n,$x("0x7c"),[r,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Qo(n,$x("0x3f"),Qo(n,$x("0x29"),r))};if("deletion"==t[$x("0x66")])return e[$x("0x41")]?{type:$x("0x2e"),content:Qo(n,$x("0x27"),Qo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e[$x("0x17")](" ")+'"']))}:{type:$x("0x2e"),content:Qo(n,"*Remove:* %0",Qo(n,"ELEMENT_TABLE_COLUMN",r))}}})),o[$x("0x4a")][$x("0x16")]("insertion",$x("0x2f"),$x("0x28"),i),o[$x("0x4a")][$x("0x16")]("deletion",$x("0x2f"),"accept",i),o[$x("0x4a")].registerCustomCallback($x("0x79"),$x("0x52"),$x("0x28"),a),o[$x("0x4a")].registerCustomCallback($x("0x2e"),$x("0x52"),$x("0x84"),a),o[$x("0x4a")][$x("0x16")]("insertion",$x("0x52"),$x("0x17"),c),o._suggestionFactory.registerCustomCallback("deletion",$x("0x52"),$x("0x17"),c),o[$x("0x4a")][$x("0x16")]($x("0x79"),$x("0x2f"),$x("0x17"),l),o._suggestionFactory[$x("0x16")]($x("0x2e"),$x("0x2f"),$x("0x17"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this[$x("0x12")],e=t[$x("0x23")][$x("0x75")].selection;return(n,o)=>{t[$x("0x23")][$x("0x11")]((r=>{const{commandName:i,commandParams:x}=o;let a=n[0][$x("0x3d")].nodeBefore;x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start[$x("0x2b")]);const c=r.createRangeIn(a);if($x("0x10")==c.root[$x("0xe")])return;const l=Array.from(e[$x("0x33")]())[$x("0x21")]((t=>s.LiveRange[$x("0x30")](t)));r[$x("0x1c")](c),t.commands.get(i).refresh(),x[$x("0x18")]({forceDefaultExecution:!0}),t.execute(i,...x);const u=l.filter((t=>"$graveyard"!=t[$x("0x6e")][$x("0xe")]));u[$x("0x41")]>0&&r[$x("0x1c")](u);for(const t of l)t.detach()}))}}[$x("0x57")](t){const e=this[$x("0x12")].plugins[$x("0x34")]("TableUtils");let n=Number[$x("0x4c")],o=Number[$x("0x71")],r=Number[$x("0x4c")],i=Number[$x("0x71")];for(const s of t){if($x("0x10")==s[$x("0x6e")].rootName)continue;const{row:t,column:x}=e[$x("0x63")](s),a=s[$x("0x48")]("rowspan")?s[$x("0x53")]($x("0x82"))-1:0,c=s.hasAttribute("colspan")?s[$x("0x53")]($x("0x7"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,i=x+c>i?x+c:i}return{minRow:n,maxRow:o,minColumn:r,maxColumn:i}}[$x("0x24")](){const t=this[$x("0x12")],e=t[$x("0x60")][$x("0x34")]("TrackChangesEditing"),n=t[$x("0x60")].get($x("0xf"));t[$x("0x23")][$x("0x75")].on($x("0x68"),(()=>{const n=Array[$x("0xb")](t[$x("0x23")][$x("0x75")][$x("0x83")][$x("0x8")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:i}=e[$x("0x31")](t);if($x("0x5d")!=n)continue;if(null!=o[$x("0x6a")])continue;const s=e[$x("0x32")](r);this[$x("0x59")][$x("0x39")](i)&&this._tableSuggestions[$x("0x4")](s)}}),{priority:$x("0x44")});const o=(t,e)=>{let o=!1;const r=e.createRangeOn(t),i=t[$x("0x1e")]($x("0xd")),s=n[$x("0x63")](t);for(const e of this[$x("0x14")]){const n=e[$x("0xa")],x=n[$x("0x3")]($x("0x1b")),a=n[$x("0x5b")](x?10:5),c=a[$x("0x56")](),l=c[$x("0x5b")](0,3)+"span",u=$x("0x54")+a,d=$x("0x64")+a;if(!e[$x("0x2d")])continue;if(i!=e[$x("0x15")]()[$x("0x5a")].findAncestor($x("0xd")))continue;if(e[$x("0x19")](r))continue;const g=t[$x("0x48")](l)?t[$x("0x53")](l)-1:0,f=this[$x("0x35")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e.addRange(r),o=!0)}return o};t[$x("0x23")][$x("0x75")][$x("0x6d")]((e=>{let n=!1;for(const r of t[$x("0x23")][$x("0x75")][$x("0x83")][$x("0x26")]())if("insert"==r[$x("0x66")])if($x("0x2f")==r[$x("0x3a")])for(const t of r.position.nodeAfter.getChildren())n=n||o(t,e);else $x("0x1f")==r[$x("0x3a")]&&(n=n||o(r[$x("0x58")].nodeAfter,e));return n}))}[$x("0x35")](t){return this[$x("0x57")](t.getRanges().map((t=>t[$x("0x5a")].nodeAfter)))}}function Zx(t){return Array[$x("0xb")](new Set(t)[$x("0x72")]())}const Yx=["size","getRanges","mergeTableCells","cell","_areMergableCells","_tablePostFixingSubtypes","push","getSelectionAffectedTableCells","find","type","*Split cell:* vertically","TrackChangesEditing","from","locale","commands","formatBlock","set:isEnabled","change","direction","isEnabled","table","enableCommand","$graveyard","low","selection","TableEditing","fromRange","model","getSuggestions","plugins","accept","afterInit","mergeTableCellRight","format","editor","_suggestionFactory","mergeTableCellLeft","rootName","createRangeOn","mergeTableCellDown","tableCell","_acceptFormatSuggestionCallbackFactory","return","execute","mergeTableCellUp","horizontally","_isForcedDefaultExecutionBlock","detach","setSelection","filter","subType","registerDescriptionCallback","deletion","markBlockFormat","author","markMultiRangeBlockFormat","_areSelectedCellsMergable","getFirstPosition","value","findAncestor","splitTableCellVertically","isInContent","length","formatInline","createTableWalker","element","stop","commandName","registerCustomCallback","get","TableUtils","getAncestors","map","*Split cell:* horizontally","root","forceDefaultExecution","splitTableCellHorizontally","*Merge cells*","document"];var Jx,Qx;Jx=Yx,Qx=494,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get requires(){return[Xx]}[ta("0xb")](){const t=this[ta("0xe")],e=t[ta("0x7")].document[ta("0x4")],n=t[ta("0x48")];if(!t[ta("0x9")].has(ta("0x5")))return;const o=t[ta("0x9")][ta("0x31")]("TrackChangesEditing"),r=t[ta("0x9")].get(ta("0x32")),i=t[ta("0x9")].get(Xx);i[ta("0x40")][ta("0x41")](ta("0x3d")),o.enableCommand(ta("0x3d"),(()=>{const e=r[ta("0x42")](t[ta("0x7")][ta("0x3a")].selection);t[ta("0x7")].change((()=>{o.markMultiRangeBlockFormat(e,{commandName:ta("0x3d"),commandParams:[]},[],ta("0x3d"))}))})),t[ta("0x49")][ta("0x31")](ta("0x3d")).on(ta("0x17"),((e,n)=>{t[ta("0x49")].get("trackChanges")[ta("0x26")]&&(n.length>0&&n[n[ta("0x2a")]-1]&&n[n.length-1][ta("0x37")]||o[ta("0x1a")]||this._areSelectedCellsMergable()||e.stop())}),{priority:"highest"});for(const e of[ta("0x18"),ta("0xc"),ta("0x13"),ta("0x10")]){const n=t[ta("0x49")][ta("0x31")](e);o[ta("0x1")](e,(()=>{const e=t.model.document[ta("0x4")][ta("0x25")]()[ta("0x33")]()[ta("0x43")]((t=>t.is(ta("0x2d"),"tableCell"))),r=n[ta("0x26")];t.model[ta("0x4c")]((()=>{o[ta("0x23")]([e,r],{commandName:ta("0x3d"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of["splitTableCellVertically","splitTableCellHorizontally"]){const n=t[ta("0x49")][ta("0x31")](e);o[ta("0x1")](e,(()=>{const i=r[ta("0x42")](t[ta("0x7")][ta("0x3a")][ta("0x4")])[0],s=i[ta("0x27")](ta("0x0")),{column:x,row:a}=r.getCellLocation(i);let c=[];if(ta("0x19")==n[ta("0x4d")]){const t=r[ta("0x2c")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ta("0x47")](t)[ta("0x34")]((t=>t.cell))}else{const t=r[ta("0x2c")](s,{column:x,includeAllSlots:!0});c=Array[ta("0x47")](t)[ta("0x34")]((t=>t[ta("0x3e")]))}t.model.change((t=>{o[ta("0x21")](t[ta("0x12")](i),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[ta("0x1f")]((t=>{if(ta("0x4a")!=t.type&&ta("0x2b")!=t[ta("0x44")])return;const{data:e}=t;return e&&ta("0x3d")==e[ta("0x2f")]?{type:"format",content:Qo(n,ta("0x39"))}:void 0})),o._descriptionFactory[ta("0x1f")]((t=>{if(ta("0x4a")!=t[ta("0x44")]&&ta("0x2b")!=t[ta("0x44")])return;const{data:e}=t;return e?ta("0x28")==e.commandName?{type:ta("0xd"),content:Qo(n,ta("0x45"))}:"splitTableCellHorizontally"==e[ta("0x2f")]?{type:"format",content:Qo(n,ta("0x35"))}:void 0:void 0}));const x=i[ta("0x15")]();for(const t of["mergeTableCellUp","mergeTableCellRight","mergeTableCellDown",ta("0x10")])o[ta("0xf")].registerCustomCallback(ta("0x4a"),t,ta("0xa"),x);for(const t of[ta("0x28"),ta("0x38")])o[ta("0xf")].registerCustomCallback(ta("0x4a"),t,ta("0xa"),x);o._suggestionFactory[ta("0x30")](ta("0x4a"),ta("0x3d"),"accept",(n=>{t[ta("0x7")].change((o=>{const r=Array.from(e[ta("0x3c")]())[ta("0x34")]((t=>s.LiveRange[ta("0x6")](t)));o[ta("0x1c")](n),t[ta("0x49")].get(ta("0x3d")).refresh(),t.execute("mergeTableCells",{forceDefaultExecution:!0});const i=r[ta("0x1d")]((t=>ta("0x2")!=t[ta("0x36")][ta("0x11")]));i.length>0&&o[ta("0x1c")](i);for(const t of r)t[ta("0x1b")]()}))}));for(const e of["mergeTableCellUp","mergeTableCellDown",ta("0x10"),ta("0xc")]){const n=t[ta("0x49")].get(e);n.on(ta("0x4b"),((e,o,r)=>{if(r){const o=t[ta("0x7")][ta("0x3a")][ta("0x4")][ta("0x25")]()[ta("0x33")]()[ta("0x43")]((t=>t.is(ta("0x2d"),ta("0x14"))));this._areMergableCells(n.value,o)||(e[ta("0x16")]=!1,e[ta("0x2e")]())}}),{priority:ta("0x3")})}}[ta("0x24")](){const t=this[ta("0xe")][ta("0x49")][ta("0x31")](ta("0x3d")),e=this.editor.plugins.get(ta("0x32"));if(!t[ta("0x4e")])return!1;const n=e.getSelectionAffectedTableCells(this.editor[ta("0x7")][ta("0x3a")][ta("0x4")]);for(const t of n)for(const e of n)if(t!=e&&!this[ta("0x3f")](t,e))return!1;return!0}[ta("0x3f")](t,e){const n=this[ta("0xe")][ta("0x9")][ta("0x31")](ta("0x46")),o=this[ta("0xe")].model.createRangeOn(t),r=this[ta("0xe")][ta("0x7")][ta("0x12")](e),i=new Set,s=new Set;for(const t of n[ta("0x8")]())if(("insertion"==t[ta("0x44")]||ta("0x20")==t[ta("0x44")]||ta("0x3d")==t[ta("0x1e")])&&t[ta("0x29")])for(const e of t.getRanges())e.containsRange(o,!0)&&i.add(t[ta("0x44")]+":"+t.author.id),e.containsRange(r,!0)&&s.add(t[ta("0x44")]+":"+t[ta("0x22")].id);if(i[ta("0x3b")]!=s[ta("0x3b")])return!1;for(const t of i)if(!s.has(t))return!1;return!0}}const na=["getCellLocation","formatBlock","ck-suggestion-marker--active","setTableColumnHeader","setTableRowHeader","nodeAfter","removeClass","stop","accept","options","data-suggestion","nodeBefore","showSuggestionHighlights","forceValue","writer","TableEditing","registerAttributeLabel","plugins","_acceptFormatSuggestionCallbackFactory","name","FORMAT_REGULAR_COLUMN","type","removeAttribute","editor","includes","end","createTableWalker","TableUtils","editing","_suggestionFactory","get","registerCustomCallback","getSuggestion","markerNameToElements","consumable","afterInit","highest","markerRange","FORMAT_HEADER_ROW","addClass","_splitMarkerName","consume","ck-suggestion-marker-","commandName","headingColumns","markerName","start","_enableDefaultAttributesIntegration","parent","bindElementToMarker","cell","mapper","_descriptionFactory","FORMAT_HEADER_COLUMN","item","headingRows","TrackChangesEditing","_handleLegacySuggestions","addMarker:suggestion","activeMarkers","registerDescriptionCallback","_registerLegacyDescription","has"];var oa,ra;oa=na,ra=192,function(t){for(;--t;)oa.push(oa.shift())}(++ra);const ia=function(t,e){return na[t-=0]};class sa extends t.Plugin{static get requires(){return[Xx]}[ia("0x20")](){const t=this[ia("0x14")];if(!t[ia("0xe")][ia("0x3b")](ia("0xc")))return;const e=t.locale,n=t.plugins.get("TrackChangesEditing");n[ia("0x2c")](ia("0x1"),[],[ia("0x34")]),n[ia("0x2c")](ia("0x0"),[],[ia("0x29")]),n[ia("0x31")].registerAttributeLabel(ia("0x34"),Qo(e,ia("0x23"))),n[ia("0x31")][ia("0xd")](ia("0x29"),Qo(e,"FORMAT_HEADER_COLUMN")),this[ia("0x36")]()}[ia("0x36")](){const t=this[ia("0x14")][ia("0xe")].get(ia("0x35")),e=this.editor.plugins[ia("0x1b")](ia("0x18")),n=this[ia("0x14")][ia("0xe")][ia("0x1b")](Xx)[ia("0xf")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(r,i,s)=>{const{type:x,id:a}=t[ia("0x25")](i[ia("0x2a")]),c=t[ia("0x1d")](a),l=c.data;if(ia("0x3d")!=c[ia("0x12")]||!l||ia("0x0")!=l.commandName)return;if(i[ia("0x33")])return void r[ia("0x4")]();if(!s[ia("0x1f")][ia("0x26")](i[ia("0x22")],r[ia("0x10")]))return;const u=i[ia("0x22")][ia("0x2b")][ia("0x2")],d=i[ia("0x22")][ia("0x16")][ia("0x8")],g=u[ia("0x2d")][ia("0x2d")],{column:f}=e[ia("0x3c")](u),{column:m}=e[ia("0x3c")](d);for(let r=f;r<=m;r++){const c=e[ia("0x17")](g,{column:r,includeAllSlots:!1});for(const e of c){const r=e[ia("0x2f")],c=s[ia("0x30")].toViewElement(r);s[ia("0xb")][ia("0x24")](ia("0x27")+x,c),o&&s[ia("0xb")].setAttribute(ia("0x7"),a,c),s[ia("0x30")][ia("0x2e")](c,i[ia("0x2a")]),n&&(t[ia("0x38")][ia("0x15")](i[ia("0x2a")])?s[ia("0xb")][ia("0x24")]("ck-suggestion-marker--active",c):s[ia("0xb")][ia("0x3")](ia("0x3e"),c))}}}}t._suggestionFactory[ia("0x1c")](ia("0x3d"),"setTableRowHeader",ia("0x5"),n),t[ia("0x1a")][ia("0x1c")](ia("0x3d"),ia("0x0"),ia("0x5"),n),this.editor[ia("0x19")].downcastDispatcher.on(ia("0x37"),o(),{priority:"highest"}),this[ia("0x14")].data.downcastDispatcher.on(ia("0x37"),((t,e,n)=>{n[ia("0x6")][ia("0x9")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ia("0x21")}),this[ia("0x14")][ia("0x19")].downcastDispatcher.on("removeMarker:suggestion",((e,n,o)=>{const{type:r,id:i}=t[ia("0x25")](n[ia("0x2a")]),s=t[ia("0x1d")](i),x=s.data;if("formatBlock"!=s[ia("0x12")]||!x||ia("0x0")!=x.commandName)return;const a=o[ia("0x30")][ia("0x1e")](n[ia("0x2a")]);if(a)for(const t of a)o.writer[ia("0x3")]("ck-suggestion-marker-"+r,t),o[ia("0xb")].removeClass(ia("0x3e"),t),o[ia("0xb")][ia("0x13")](ia("0x7"),t),o[ia("0x30")].unbindElementFromMarkerName(t,n[ia("0x2a")])}),{priority:ia("0x21")}),this[ia("0x3a")]()}[ia("0x3a")](){const t=this[ia("0x14")],e=t.locale;function n(t){return{type:"format",content:Qo(e,"*Format:* %0",t)}}t[ia("0xe")][ia("0x1b")](ia("0x35"))[ia("0x31")][ia("0x39")]((t=>{if(ia("0x3d")!=t[ia("0x12")])return;const{data:o}=t;if(o){if(ia("0x1")==o.commandName){const t=o.commandParams[0][ia("0xa")];return n(Qo(e,t?ia("0x23"):"FORMAT_REGULAR_ROW"))}if(ia("0x0")==o[ia("0x28")]){const t=o.commandParams[0][ia("0xa")];return n(Qo(e,ia(t?"0x32":"0x11")))}}}))}}const xa=["remove","insertColumns","tableCellBackgroundColor","TableClipboard","isEmpty","activeMarkers","markMultiRangeBlockFormat","rootName","find","setAttributes","getChanges","newRange","tableCellVerticalAlignment","createRangeOn","markMultiRangeInsertion","_createdBatches","set","keys","has","_replaceTableSlotCell","conversion","getChildren","tablePasteChainId","Users","high","insertRows","registerDescriptionCallback","isEqual","createElement","_suggestionFactory","tablePasteRow","registerPostFixer","registerCustomCallback","getChild","name","ck-suggestion-marker","afterInit","updateMarker","tableCellSuggestion","endColumn","selection","tablePasteColumn","_descriptionFactory","TrackChangesEditing","for","options","fill","removeMarker","hasSuggestion","containsRange","stop","getRowIndexes","from","column","markerName","columns","getRanges","getSuggestionCallback","tablePasteCell","differ","getRows","_getCoordsForCells","add","get","accept","includes","getMarkers","fromEntries","batch","markerToHighlight","removeRows","insertion","low","commands","listenTo","unwrap","TableUtils","view","return","createRangeIn","getAllAdjacentSuggestions","tableCellBorderColor","_isForcedDefaultExecutionBlock","getContainedElement","getColumnIndexes","rowInsertionIndexes","insert","_splitMarkerName","type","getSuggestions","map","change","position","deletionRanges","insertContent","showSuggestionHighlights","deletion","register","tableCell","oldRange","_tablePostFixingSubtypes","isInContent","subType","columnInsertionIndexes","tableCellHorizontalAlignment","suggestionUnloaded","getChangedMarkers","tablePaste","suggestion-td","markMultiRangeDeletion","filter","createRange","getTableIfOnlyTableInContent","cells","nextSibling","rows","endRow","$graveyard","formatBlock","model","push","discard","wrap","document","every","elementToElement","startsWith","rowInsertionRanges","author","previousSibling","dataDowncast","getShiftedBy","first","join","end","suggestion","attributes","removeColumns","element","paragraph","getItems","suggestionLoaded","createTableWalker","editor","findAncestor","table","schema","getRange","ck-suggestion-marker-insertion","plugins","last","markers","length","editingDowncast","markerAttributes","nodeAfter"];var aa,ca;aa=xa,ca=177,function(t){for(;--t;)aa.push(aa.shift())}(++ca);const la=function(t,e){return xa[t-=0]},ua=["tableCellBorderWidth",la("0x3c"),"tableCellBorderStyle",la("0x53"),la("0x93"),la("0x89"),"tableCellPadding"],da=Object.fromEntries(ua.map((t=>[t,null])));class ga extends t.Plugin{static get requires(){return[Xx]}[la("0xf")](){const t=this[la("0x7a")];if(!t[la("0x80")][la("0x99")]("TableClipboard"))return;const n=t[la("0x80")][la("0x2a")](la("0x16")),o=t[la("0x80")][la("0x2a")](la("0x37")),r=t[la("0x80")][la("0x2a")](Xx),i=t[la("0x80")].get(la("0x8a"));r[la("0x4f")][la("0x63")](la("0x9"),"tablePasteColumn"),t[la("0x62")][la("0x7d")][la("0x4c")](la("0x11"),{allowIn:la("0x4d"),allowContentOf:la("0x4d"),isLimit:!0}),t[la("0x9b")][la("0x68")]({model:la("0x11"),view:la("0x57")});let s=null;t[la("0x62")].on(la("0x49"),((r,x)=>{const[a,c]=x,l=x[x[la("0x83")]-1];l&&l.forceDefaultExecution||n[la("0x3d")]||this[la("0x7a")][la("0x34")].get("trackChanges").value&&function(t,e,n,o,r){if(e&&!e.is("documentSelection"))return!1;const i=r[la("0x5b")](t,n);if(!i||!ma(i,void 0,o))return!1;const s=o.getSelectionAffectedTableCells(n[la("0x66")][la("0x13")]);if(!s.length)return!1;const x=s[0].findAncestor(la("0x7c")),a=o[la("0x1e")](s),c=o[la("0x3f")](s),l={startRow:a[la("0x6f")],endRow:a[la("0x81")],startColumn:c[la("0x6f")],endColumn:c[la("0x81")]};return 1==s[la("0x83")]&&(l[la("0x5f")]+=o[la("0x27")](i)-1,l[la("0x12")]+=o.getColumns(i)-1),ma(x,l,o)}(a,c,t[la("0x62")],o,i)&&(r.stop(),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[la("0x62")][la("0x46")]((()=>{t.model[la("0x49")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:i,insertionRanges:a,deletionRanges:c,cells:l}=s;r.length&&n[la("0x95")](r,"tablePasteRow",{tablePasteChainId:o}),i[la("0x83")]&&n.markMultiRangeInsertion(i,la("0x14"),{tablePasteChainId:o}),a.length&&n[la("0x95")](a,la("0x56"),{tablePasteChainId:o,skipNestingCheck:!0}),c[la("0x83")]&&n[la("0x58")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[la("0x8d")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],la("0x25"),{tablePasteChainId:o});if(u){const e=u[la("0x2d")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const i=t[la("0x62")][la("0x94")](o),s=e[la("0x8f")]((t=>t[la("0x7e")]()[la("0x6")](i)));s&&n.push([s.name,r])}n.length&&u.setAttribute(la("0x85"),Object.fromEntries(n))}s=null})))}),{priority:e.priorities[la("0x3")]+10}),t[la("0x80")][la("0x2a")]("TableClipboard").on(la("0x9a"),((t,e)=>{const[n,o,,r]=e;if(!s)return;t[la("0x1d")]();const i=n.cell,x=o,a=fa(i),c=fa(x);t[la("0x39")]=i;let l=null,u=null;if(c||a)if(a&&!c){r[la("0x87")](i.getChild(0));for(const t of Array.from(x[la("0x0")]()))r[la("0x41")](t,i,"end");const t=s.rowInsertionIndexes.includes(n.row),e=s[la("0x52")][la("0x2c")](n[la("0x20")]);t||e||(l=r[la("0x3a")](i))}else c&&!a&&(u=r[la("0x3a")](i));else{const t=r.createElement(la("0x11")),e=r[la("0x7")]("tableCellSuggestion");r[la("0x65")](r[la("0x3a")](i),e),r[la("0x41")](t,i,0);for(const e of Array.from(x[la("0x0")]()))r[la("0x41")](e,t,la("0x71"));l=r.createRangeOn(t),u=r[la("0x94")](e)}const d=Array[la("0x1f")](x.getAttributes())[la("0x59")]((([t])=>ua[la("0x2c")](t)));s.cells[la("0x63")]({element:i,attributes:d[la("0x83")]?Object[la("0x2e")](d):null}),l&&s.insertionRanges[la("0x63")](l),u&&s[la("0x48")].push(u)}),{priority:la("0x3")}),o.on(la("0x88"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i[la("0x22")]||1;s.columnInsertionIndexes=new Array(a)[la("0x19")](x)[la("0x45")](((t,e)=>t+e));for(const{cell:e}of o[la("0x79")](r,{startColumn:x,endColumn:x+a-1}))s.columnInsertionRanges[la("0x63")](t[la("0x62")][la("0x94")](e))}),{priority:la("0x33")}),o.on(la("0x4"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i[la("0x5e")]||1;s[la("0x40")]=new Array(a)[la("0x19")](x)[la("0x45")](((t,e)=>t+e));for(const{cell:e}of o[la("0x79")](r,{startRow:x,endRow:x+a-1}))s[la("0x6a")].push(t[la("0x62")].createRangeOn(e))}),{priority:"low"}),n[la("0x15")][la("0x5")]((e=>{if(e[la("0x51")]&&e[la("0x51")][la("0x69")](la("0x56")))return e.previous?{}:{type:"insertion",content:Qo(t.locale,"*Replace table cells*")}}));const x=()=>!1;for(const t of["tablePaste","tablePasteColumn","tablePasteRow",la("0x25")])n[la("0x8")][la("0xb")](la("0x32"),t,la("0x70"),x),n._suggestionFactory.registerCustomCallback("deletion",t,"join",x),n[la("0x8")][la("0xb")](la("0x61"),t,la("0x70"),x);n._suggestionFactory.registerCustomCallback(la("0x61"),la("0x25"),la("0x64"),x),n._suggestionFactory.registerCustomCallback(la("0x61"),la("0x25"),la("0x2b"),((e,n,o)=>{const r=e[la("0x45")]((t=>t[la("0x3e")]())).filter((t=>t)),i=new Map(r[la("0x45")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[la("0x5c")])e&&i[la("0x97")](t,e);else if(o&&o[la("0x85")])for(const[e,n]of Object.entries(o[la("0x85")])){const o=t[la("0x62")][la("0x82")][la("0x2a")](e),r=o?o.getRange()[la("0x3e")]():null;r&&i[la("0x97")](r,n)}t[la("0x62")][la("0x46")]((t=>{for(const[e,n]of i)t[la("0x90")]({...da,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory.registerCustomCallback(e,la("0x56"),o,((r,i,s)=>{t[la("0x62")][la("0x46")]((t=>{const x=[];for(const t of r){const e=t.start[la("0x86")];e.is(la("0x75"),"tableCellSuggestion")&&x[la("0x63")](e)}n[la("0x8")][la("0x24")](e,null,o)(r,i,s);for(const e of x)la("0x60")!=e.root[la("0x8e")]&&t[la("0x36")](e)}))}))};a("insertion",la("0x2b")),a(la("0x32"),la("0x64")),a("deletion",la("0x2b")),a(la("0x4b"),"discard"),n[la("0x8")][la("0xb")]("insertion",la("0x9"),la("0x64"),(t=>{const e=t[la("0x45")]((t=>t[la("0x3e")]())),n=e[0][la("0x7b")](la("0x7c")),{minRow:i,maxRow:s}=r[la("0x28")](e);o[la("0x31")](n,{at:i,rows:s-i+1})})),n[la("0x8")][la("0xb")](la("0x32"),la("0x14"),la("0x64"),(t=>{const e=t.map((t=>t[la("0x3e")]())),n=e[0][la("0x7b")]("table"),{minColumn:i,maxColumn:s}=r[la("0x28")](e);o[la("0x74")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e.subType||!e.subType[la("0x69")]("tablePaste"))return;const o=e.attributes[la("0x1")],r=n[la("0x44")]()[la("0x59")]((t=>t.isInContent&&t[la("0x73")]&&t[la("0x73")][la("0x1")]==o));r[la("0x83")]&&e[la("0x3b")]()[la("0x83")]!=r[la("0x83")]&&r.reduce(((t,e)=>(t.next=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[la("0x42")](t[la("0x21")]),r=[la("0xe"),la("0x7f")],i=n[la("0x8c")][la("0x2c")](t[la("0x21")]);return i&&r[la("0x63")]("ck-suggestion-marker--active"),{classes:r,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on(la("0x78"),c,{priority:"high"}),n.on(la("0x54"),c,{priority:la("0x3")}),t[la("0x62")][la("0x66")].registerPostFixer((()=>{let e=!1;const o=Array[la("0x1f")](t[la("0x62")][la("0x66")][la("0x26")].getChangedMarkers());for(const{name:r,data:i}of o){const{group:o,type:s,id:x}=n[la("0x42")](r);if("suggestion"!=o||la("0x4b")!=s||i[la("0x4e")])continue;if(!n[la("0x1b")](x))continue;const a=n.getSuggestion(x).getRanges(),c=t[la("0x80")][la("0x2a")](la("0x2")).me;for(const t of n.getSuggestions())if(t.isInContent&&t[la("0x6b")]==c&&"formatBlock"==t[la("0x43")]&&la("0x25")==t[la("0x51")]&&t[la("0x23")]()[la("0x67")]((t=>a.some((e=>e[la("0x1c")](t,!0))))))for(const n of t[la("0x3b")]())n[la("0x50")]&&(n[la("0x64")](),e=!0)}return e})),t[la("0x62")][la("0x66")][la("0xa")]((e=>{const o=t[la("0x34")][la("0x2a")]("redo");if(!o||!o[la("0x96")][la("0x99")](e[la("0x2f")]))return!1;let r=!1;const i=t[la("0x80")][la("0x2a")]("Users").me,s=t[la("0x62")].document[la("0x26")][la("0x91")](),x=Array[la("0x1f")](t[la("0x62")].document[la("0x26")][la("0x55")]()).filter((({name:t,data:e})=>{const{group:o,subType:r,authorId:s}=n._splitMarkerName(t);return la("0x72")==o&&la("0x56")==r&&s==i.id&&!e.oldRange}));for(const t of s){if("insert"!=t.type||la("0x11")!=t[la("0xd")]||1!=t[la("0x83")])continue;const n=e[la("0x5a")](t[la("0x47")],t[la("0x47")][la("0x6e")](1));if(!x[la("0x8f")]((({data:t})=>t.newRange[la("0x6")](n))))for(const{name:t,data:o}of x)if(n[la("0x1c")](o[la("0x92")])){e[la("0x10")](t,{range:n}),r=!0;break}}return r})),t.model[la("0x66")][la("0xa")]((e=>{let o=!1;const r=t[la("0x80")][la("0x2a")](la("0x2")).me,i=n[la("0x44")]()[la("0x59")]((t=>t[la("0x50")]&&t.author==r)),s=new Set,x=new Set;for(const t of i)if(la("0x56")==t[la("0x51")])for(const e of t[la("0x2d")]()){const n=e[la("0x7e")]().getContainedElement();if(n)if(n.is(la("0x75"),la("0x11"))&&fa(n)){t[la("0x1a")](e[la("0xd")]),s.add(n),o=!0;const r=n[la("0x5d")],i=n[la("0x6c")],a=r&&r.is(la("0x75"),la("0x11")),c=i&&i.is(la("0x75"),"tableCellSuggestion");a&&!s[la("0x99")](r)&&x.add(r),c&&!s.has(i)&&x[la("0x29")](i)}else n.is(la("0x75"),la("0x76"))&&n[la("0x8b")]&&(t[la("0x1a")](e[la("0xd")]),o=!0)}else if(la("0x25")==t.subType){if(!t[la("0x73")]||!t.attributes[la("0x1")])continue;const e=t.attributes[la("0x85")];if(e&&Object[la("0x98")](e)[la("0x83")])continue;const n=t[la("0x73")][la("0x1")];let r=!0,s=!0;for(const e of i)if(e[la("0x51")]&&e[la("0x51")][la("0x69")](la("0x56"))){if(!e.attributes.tablePasteChainId){s=!1;break}if(e.id!=t.id&&e[la("0x73")].tablePasteChainId==n){r=!1;break}}s&&r&&(t.removeMarkers(),o=!0)}for(const t of s)e[la("0x87")](t);for(const t of x)e.unwrap(t);return o})),t[la("0x9b")].for(la("0x84"))[la("0x30")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:la("0x3")}),t[la("0x9b")][la("0x17")](la("0x6d"))[la("0x30")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[la("0x18")][la("0x4a")]?l(t,!1):null,converterPriority:la("0x3")});const u=t.editing[la("0x38")];this[la("0x35")](u.document,"clipboardOutput",((t,e)=>{const n=[];for(const t of u[la("0x3a")](e.content)[la("0x77")]())t.is("element",la("0x57"))&&n.push(t);u[la("0x46")]((t=>{for(const e of n)t.move(t.createRangeIn(e),t.createPositionBefore(e)),t[la("0x87")](e)}))}))}}function fa(t){if(t.isEmpty)return!0;const e=t[la("0xc")](0);return e.is("element",la("0x76"))&&e[la("0x8b")]}function ma(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:i}of n[la("0x79")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=i)return!1;return!0}const ha=["getContainedElement","Users","markBlockFormat","accept","afterInit","registerDescriptionCallback","handleResizeTableWidthCommand","resizeTableWidth","columnWidths","handleSuggestionDescription","enableCommand","discard","TrackChangesEditing","selection","formatBlock","registerCustomCallback","getSuggestionCallback","TableColumnResizeEditing","document","data","_suggestionFactory","commandParams","format","model","editor","getSuggestions","tableWidth","formatInline","getColumnGroupElement","type","has","author","resizeTable","locale","plugins","get","subType","formatGroupId","getAttribute","table","_descriptionFactory"];var pa,ba;pa=ha,ba=145,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x17")](){if(!this[Ea("0x2")][Ea("0xc")][Ea("0x8")](Ea("0x24")))return;const t=this.editor[Ea("0xc")][Ea("0xd")](Ea("0x1f"));t[Ea("0x1d")](Ea("0x1a"),this[Ea("0x19")].bind(this)),t[Ea("0x27")].registerCustomCallback(Ea("0x21"),"resizeTable",Ea("0x16"),t[Ea("0x27")].getSuggestionCallback(Ea("0x21"),null,Ea("0x1e"))),t[Ea("0x27")][Ea("0x22")]("formatBlock",Ea("0xa"),Ea("0x1e"),t._suggestionFactory[Ea("0x23")](Ea("0x21"),null,"accept")),t[Ea("0x12")][Ea("0x18")](this[Ea("0x1c")].bind(this))}handleResizeTableWidthCommand(t,e){const n=this.editor.plugins[Ea("0xd")](Ea("0x1f")),o=this.editor.plugins[Ea("0xd")]("TableColumnResizeEditing"),r=e[Ea("0x11")]||this.editor[Ea("0x1")][Ea("0x25")][Ea("0x20")].getSelectedElement();this[Ea("0x2")][Ea("0x1")].change((()=>{const i=o[Ea("0x6")](r);let s=i?o.getTableColumnsWidths(i):null,x=r[Ea("0x10")](Ea("0x4"))||null;const a=e.tableWidth||x,c=e[Ea("0x1b")]||s,l=this[Ea("0x2")][Ea("0xc")][Ea("0xd")](Ea("0x14")).me;for(const t of n[Ea("0x3")]()){const e=t[Ea("0x13")]();if(Ea("0xa")===t[Ea("0xe")]&&e===r){t[Ea("0x9")]!==l&&t[Ea("0x1e")]();const e=t[Ea("0x26")][Ea("0x28")];x=e[0][Ea("0x4")],s=e[0][Ea("0x1b")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[Ea("0x15")](r,{commandName:Ea("0x1a"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:Ea("0xa")},[],"resizeTable")}))}[Ea("0x1c")](t){if("formatBlock"!=t.type&&Ea("0x5")!=t[Ea("0x7")])return;const{data:e}=t;if(e&&Ea("0xa")===e[Ea("0xf")]){const t="*Format:* resize table";return{type:Ea("0x0"),content:Qo(this[Ea("0x2")][Ea("0xb")],t)}}}}const Ta=["insertTemplate","TrackChangesEditing","editor","plugins","afterInit"];var ya,Ca;ya=Ta,Ca=426,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x3")](){const t=this[Aa("0x1")];t[Aa("0x2")].has("Template")&&t[Aa("0x2")].get(Aa("0x0")).enableCommand(Aa("0x4"))}}const Ia=["ELEMENT_TABLE_OF_CONTENTS","editor","TrackChangesEditing","insertTableOfContents","commands","_descriptionFactory","registerElementLabel","tableOfContents","get","afterInit","plugins","enableCommand"];var Ra,Sa;Ra=Ia,Sa=445,function(t){for(;--t;)Ra.push(Ra.shift())}(++Sa);const Na=function(t,e){return Ia[t-=0]};class va extends t.Plugin{[Na("0x8")](){const t=this[Na("0x0")];if(!t[Na("0x3")][Na("0x7")](Na("0x2")))return;t[Na("0x9")].get(Na("0x1"))[Na("0xa")](Na("0x2"));const e=t[Na("0x9")][Na("0x7")](Na("0x1")),n=t.locale;e[Na("0x4")][Na("0x5")](Na("0x6"),(t=>Qo(n,Na("0xb"),t)))}}const La=["nodeBefore","title-content","updateMarker","createRange","differ","has","registerElementLabel","start","editor","forward","TrackChangesEditing","registerPostFixer","suggestion","isTouching","document","end","removeMarker","newRange","isCollapsed","isEqual","afterInit","getChangedMarkers","element","model","ELEMENT_TITLE","get","plugins","_splitMarkerName"];var Ma,wa;Ma=La,wa=204,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0xc")](){const t=this[Oa("0x0")];if(!t[Oa("0x12")][Oa("0x19")]("Title"))return;const e=t.plugins[Oa("0x11")](Oa("0x2"));e._descriptionFactory[Oa("0x1a")]("title-content",(()=>Qo(t.locale,Oa("0x10")))),t[Oa("0xf")][Oa("0x6")][Oa("0x3")]((n=>{let o=!1;const r=Array.from(t[Oa("0xf")][Oa("0x6")][Oa("0x18")][Oa("0xd")]());for(const{name:i,data:s}of r){const{group:r}=e[Oa("0x13")](i);if(Oa("0x4")!==r||!s[Oa("0x9")])continue;const x=s[Oa("0x9")],a=x.end[Oa("0x14")];if(!a||!a.is(Oa("0xe"),Oa("0x15")))continue;if(!x[Oa("0x1b")][Oa("0x5")](x[Oa("0x7")]))continue;const c=t[Oa("0xf")].schema.getNearestSelectionRange(x[Oa("0x7")],Oa("0x1"));if(c&&c[Oa("0xa")]){const t=n[Oa("0x17")](x[Oa("0x1b")],c.start);t[Oa("0xb")](x)||(n[Oa("0x16")](i,{range:t}),o=!0)}o||(n[Oa("0x8")](i),o=!0)}return o}))}}const Da=["redo","editor","TrackChangesEditing","has","UndoEditing","get","afterInit","plugins","undo"];var Ba,Pa;Ba=Da,Pa=446,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{[Ua("0x1")](){const t=this[Ua("0x5")],e=t[Ua("0x2")][Ua("0x0")](Ua("0x6"));t[Ua("0x2")][Ua("0x7")](Ua("0x8"))&&(e.enableCommand(Ua("0x3")),e.enableCommand(Ua("0x4")))}}const Ga=["TableCaptionEditing","afterInit","TrackChangesEditing","plugins","has","enableCommand","requires","get"];var Va,Ha;Va=Ga,Ha=374,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{static get[za("0x0")](){return[Xx]}[za("0x3")](){const t=this.editor;t[za("0x5")][za("0x6")](za("0x2"))&&t[za("0x5")][za("0x1")](za("0x4"))[za("0x7")]("toggleTableCaption")}}const Ka=["tableCellBackgroundColor","tableAlignment","formatBlock","selection","registerCustomCallback","document","tableHeight","get","commandParams","getSelectionAffectedTableCells","pluginName","enableCommand","_suggestionFactory","_getSuggestion","tableCellHorizontalAlignment","_handlePropertyChange","has","tableCellProperties","getSuggestionCallback","enqueueChange","TrackChangesTableProperties","handleDiscardAction","TrackChangesEditing","tableWidth","accept","setAttribute","tableProperties","TablePropertiesEditing","discard","tableCellBorderWidth","editor","afterInit","tableCellBorderColor","getFirstPosition","getSuggestions","model","change","tableCellVerticalAlignment","join","_descriptionFactory","tableBorderColor","handleSuggestionDescription","TableCellPropertiesEditing","findAncestor","table","tableCellWidth","format","subType","markBlockFormat","tableCellHeight","tableBorderWidth","tableCellPadding","tableBorderStyle","batch","TableUtils","plugins","*Format:* change table properties","locale"];var qa,$a;qa=Ka,$a=317,function(t){for(;--t;)qa.push(qa.shift())}(++$a);const Xa=function(t,e){return Ka[t-=0]};class Za extends t.Plugin{constructor(t){super(t),this[Xa("0x39")]=[Xa("0xd"),Xa("0x19"),Xa("0x17"),Xa("0x20"),Xa("0x36"),Xa("0x25"),"tableBackgroundColor"],this.tableCellProperties=[Xa("0x5"),"tableCellBorderStyle",Xa("0x2"),Xa("0x18"),Xa("0x12"),Xa("0x16"),Xa("0x1f"),Xa("0x2d"),Xa("0xa")]}static get[Xa("0x29")](){return Xa("0x33")}[Xa("0x4")](){const t=this[Xa("0x3")][Xa("0x1c")][Xa("0x26")](Xa("0x35"));if(this[Xa("0x3")][Xa("0x1c")][Xa("0x2f")](Xa("0x0"))){for(const e of this[Xa("0x39")])t[Xa("0x2a")](e,((t,n)=>{const o=this[Xa("0x3")][Xa("0x8")].document[Xa("0x22")][Xa("0x6")]()[Xa("0x10")](Xa("0x11"));this[Xa("0x2e")](e,[o],this[Xa("0x39")],Xa("0x39"),t,n)}));t[Xa("0x2b")].registerCustomCallback(Xa("0x21"),"tableProperties","accept",t[Xa("0x2b")][Xa("0x31")](Xa("0x21"),null,Xa("0x1"))),t._suggestionFactory[Xa("0x23")](Xa("0x21"),Xa("0x39"),Xa("0x1"),((t,e)=>this.handleDiscardAction(this[Xa("0x39")],t,e))),t[Xa("0x2b")][Xa("0x23")](Xa("0x21"),Xa("0x39"),Xa("0xb"),(()=>!1))}if(this[Xa("0x3")][Xa("0x1c")][Xa("0x2f")](Xa("0xf"))){for(const e of this[Xa("0x30")])t[Xa("0x2a")](e,((t,n)=>{const o=this[Xa("0x3")][Xa("0x1c")].get(Xa("0x1b"))[Xa("0x28")](this[Xa("0x3")][Xa("0x8")][Xa("0x24")][Xa("0x22")]);this[Xa("0x2e")](e,o,this[Xa("0x30")],Xa("0x30"),t,n)}));t[Xa("0x2b")].registerCustomCallback(Xa("0x21"),Xa("0x30"),Xa("0x37"),t[Xa("0x2b")][Xa("0x31")]("formatBlock",null,Xa("0x1"))),t[Xa("0x2b")][Xa("0x23")](Xa("0x21"),Xa("0x30"),Xa("0x1"),((t,e)=>this.handleDiscardAction(this[Xa("0x30")],t,e))),t[Xa("0x2b")][Xa("0x23")]("formatBlock",Xa("0x30"),Xa("0xb"),(()=>!1))}t[Xa("0xc")].registerDescriptionCallback((t=>this.handleSuggestionDescription(t)))}[Xa("0x2e")](t,e,n,o,r,i){const s=this[Xa("0x3")].plugins[Xa("0x26")](Xa("0x35"));this[Xa("0x3")].model[Xa("0x32")](i[Xa("0x1a")],(()=>{for(const t of e)if(this[Xa("0x2c")](t,o))r(i);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}r(i),s[Xa("0x15")](t,{commandParams:[e]},[],o)}}))}[Xa("0x34")](t,e,n){const o=e[0].start.nodeAfter,r=n[Xa("0x27")][0];this[Xa("0x3")][Xa("0x8")][Xa("0x9")]((e=>{for(const n of t)void 0!==r[n]?e[Xa("0x38")](n,r[n],o):e.removeAttribute(n,o)}))}[Xa("0xe")](t){if(t.data)switch(t.subType){case"tableProperties":return{type:Xa("0x13"),content:Qo(this[Xa("0x3")][Xa("0x1e")],Xa("0x1d"))};case Xa("0x30"):return{type:Xa("0x13"),content:Qo(this[Xa("0x3")].locale,"*Format:* change table cell properties")}}}[Xa("0x2c")](t,e){const n=this.editor[Xa("0x1c")][Xa("0x26")](Xa("0x35"));for(const o of n[Xa("0x7")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o[Xa("0x14")]===e&&n===t)return o}return null}}var Ya=Function.prototype,Ja=Object.prototype,Qa=Ya.toString,tc=Ja.hasOwnProperty,ec=Qa.call(Object);const nc=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=tc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Qa.call(n)==ec};const oc=function(t){return nc(t)?void 0:t};var rc=rt?rt.isConcatSpreadable:void 0;const ic=function(t){return ge(t)||de(t)||!!(rc&&t&&t[rc])};const sc=function t(e,n,o,r,i){var s=-1,x=e.length;for(o||(o=ic),i||(i=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,r,i):sn(i,a):r||(i[i.length]=a)}return i};const xc=function(t){return(null==t?0:t.length)?sc(t,1):[]};const ac=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var cc=Math.max;const lc=function(t,e,n){return e=cc(void 0===e?t.length-1:e,0),function(){for(var o=arguments,r=-1,i=cc(o.length-e,0),s=Array(i);++r<i;)s[r]=o[e+r];r=-1;for(var x=Array(e+1);++r<e;)x[r]=o[r];return x[e]=n(s),ac(t,this,x)}};const uc=function(t){return function(){return t}};const dc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:uc(e),writable:!0})}:function(t){return t};var gc=Date.now;const fc=function(t){var e=0,n=0;return function(){var o=gc(),r=16-(o-n);if(n=o,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(dc);const mc=function(t){return fc(lc(t,void 0,xc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=po(e,t),o||(o=e.length>1),e})),ie(t,dn(t),n),o&&(n=to(n,7,oc));for(var r=e.length;r--;)Ko(n,e[r]);return n})),hc=["_trackFormatChanges","_commentsRepository","containsRange","newName","move","return","tablePasteChainId","warn","data","enableReadOnlyMode","_getMarkerAnnouncementText","documentSelection","howMany","type","forceDefaultExecution","track-changes-user-not-found","_splitMarkerName","setSelection","oldRange","forward","getRanges","_descriptionFactory","isDocumentOperation","isTouching","addMarker:suggestion:attribute","skipNestingCheck","addMarker:suggestion:formatBlock","containsPosition","$marker","trackChangesCommand","group","insert","_isBlockAttribute","options","ariaLiveAnnouncer","getMarkers","range","_joinSuggestions","hasSuggestion","selection","showSuggestionHighlights","markerToHighlight","isMultiRange","config","formatBlock:chain","createRangeOn","suggestion-type","isLocal","start","normal","refresh","getCustomProperty","set","_isDataLoaded","collaboration.channelId","suggestion:","addAttribute","execute","hasComments","rename","locale","highest","ck-suggestion-marker-formatInline","PENDING_ACTION_SUGGESTION","markerNameToElements","getAttribute","isAtStart","attributeKey","getSuggestions","getLastMatchingPosition","deletion:accept","pop","attribute:join","newValue","isBlock","commands","insertContent","createPositionBefore","getFirstMarker","isOwn","_updateSuggestionData","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.","discardSuggestion","_initAriaMarkerChangeAnnouncements","discardSelectedSuggestions","isArray","oldName","fetchCommentThread","_processAttributeSuggestions","_findSuggestions","notReady","FORMATTING","setAttribute","getSuggestionCallback","_blockAttributeKeys","_addThreadToSuggestion","attributeNewValue","sort","length","markAttributeChange","_joinWithAdjacentSuggestions","$graveyard","enableCommand","removed","trackChanges","external:","_createSuggestion","track-changes-enable-command-twice","changeAttribute","attributes","has","dataToMarker","addMarkerName","removeMarker:suggestion:attribute","getAncestors","removeClass","change:_saved","clear","TrackChangesEditing","oldValue","formatInline:","requires","registerPostFixer","attribute","size","for","commentThread","markerReady","multi","isAfter","chain","_customCallbacks","before","updateMarker","_setSuggestionRange","_suggestionState","item","markers","_enabledCommands","_suggestions","filter","root","unshift","adapter","_registerInlineAttribute","addHighlight","markInsertion","isCollapsed","trackChanges.trackFormatChanges","elementStart","split","formatBlock:","fromRange","element","upcast","_refreshAttributeSuggestionsChain","editor","_registerBlockAttribute","getSuggestion","getChanges","toViewElement","schema","every","_handleNewSuggestionMarker","markDeletion","removeComment","splice","ck-suggestion-marker","consume","editingDowncast","value","attribute:accept","createPositionAt","hasCommentThread","formatInline:discard","getCommentThread","suggestionUnloaded","delete","startsWith","attributeOldValue","comments","position","addSuggestionData","getUser","stopListening","_cutOutSuggestionMarker","author","addCommentThread","acceptAllSuggestions","high","attribute:","_recordAttributeChanges","_suggestionFactory","insertion","_isForcedDefaultExecutionBlock","ck-suggestion-marker--active","mapper","end","deletion:","addSuggestion","isInContent","change:activeMarkers","attribute:discard","deleteContent","$elementName","listenTo","removeAttribute","formatBlock:join","deletion:discard","dataReady","markBlockFormat","_getAuthorFromId","detach","isAtEnd","ENTER","add","isObject","_reduceExistingSuggestions","batch","getItems","PendingActions","_refreshSuggestionsChain","getFirstRange","trackChanges.mergeNestedSuggestions","forEach","discardAllSuggestions","multipleBlocks","key","nodeAfter","creator","isExternal","_model","track-changes-suggestion-data-mismatch","change:data","insertion:accept","then","Users","resolve","createRange","from","remove","_removeSuggestion","format","_registerDefaultCallbacks","_addSuggestionMarker","acceptSuggestion","moveTargetPosition","_inlineAttributeKeys","markerName","_breakSuggestionMarker","reconvertMarker","_enableDefaultAttributesIntegration","_getExternalAuthor","formatInline:chain","fire","_setSuggestionData","_rangeIsInLocalUserInsertion","unbindElementFromMarkerName","change","_reduceSuggestionAttributeRange","_defaultCallbacks","track-changes-adapter-already-set","markerToData","containsRangeInObject","getShiftedBy","subType","suggestionChanged","removeMarker","commandName","createdAt","$text","applyOperation","createSelection","isEqual","data-suggestion","isLimit","always","_editor","removeMarkers","isBefore","history","_processAttributeChanges","isInsideObject","_adapter","map","acceptSelectedSuggestions","createRangeIn","deletion","name","createPositionAfter","ck-suggestion-marker-","clone","insertion:discard","formatBlock","addClass","isIntersectingWithRange","ready","insertion:","rootName","keys","differ","_onDiscard","CommentsRepository","some","_getSuggestionData","getNearestSelectionRange","substring","enqueueChange","document","define","stop","get","suggestionLoaded","suggestion","getMultiRangeId","markMultiRangeDeletion","consumable","_mergeNestedSuggestions","getChangedMarkers","removeMarker:suggestion:formatBlock","_saved","getAllAdjacentSuggestions","isRemovable","toUpperCase","setTo","model","meta","editing","version","substr","ck-suggestion-marker-formatBlock","plugins","getDifference","newRange","push","includes","authoredAt","isIntersecting","_recordAttributeSuggestionsFromVersion","targetPosition","conversion","markInlineFormat","head","formatBlock:discard","fromCharCode","discard","never","addRange","registerCustomCallback","writer","suggestion:attribute:","updateSuggestion","next","parent","createElement","isNextTo","init","getRange","getIntersection","concat","LEAVE","getContainedElement","_checkSuggestionCorrectness","pluginName","after","find","addComment","join","track-changes-adapter-missing-getsuggestion","isUndo","low","marker-count","default","assign","previous","accept","values","track-changes-command-not-found","nodeBefore","open","groupId","formatGroupId","activeMarkers","isSelectable","dataDowncast"];var pc,bc;pc=hc,bc=396,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]},_c="$elementName";class Tc extends t.Plugin{static get[Ec("0x6e")](){return[Ec("0x123"),i.Users,t.PendingActions,cr,fr,_r,kr,Dr,Lr,Gr,qr,ii,li,mi,Ti,Ii,Mi,Bi,Hi,$i,Qi,rs,cs,Es,fs,As,Ns,Os,Us,zs,Ys,nx,xx,dx,px,Cx,Sx,wx,Ux,zx,Xx,ea,sa,Wa,ga,_a,va,Za,ka,Fa,ja]}static get[Ec("0x160")](){return Ec("0x6b")}constructor(t){function e(t){return t[Ec("0x111")]((t=>String[Ec("0x14d")](t)))[Ec("0x164")]("")}super(t),this[Ec("0x147")]=null,this[Ec("0x29")](Ec("0x173"),[]),this.on(Ec("0xbe"),((e,n,o,r)=>{this[Ec("0xdc")][Ec("0xf7")]((()=>{for(const e of[...r,...o])this[Ec("0xdc")][Ec("0x7e")][Ec("0x63")](e)&&t[Ec("0x13c")][Ec("0xef")](e)}))})),this[Ec("0xa")]=new rr(this[Ec("0x91")].model[Ec("0x96")],this[Ec("0x91")].locale),this[Ec("0x110")]=null,this[Ec("0xb5")]=new yc(this[Ec("0x91")]),this[Ec("0x80")]=new Map,this._commentsRepository=t.plugins[Ec("0x12c")](Ec("0x123")),this._enabledCommands=new Set,this[Ec("0xdc")]=this.editor[Ec("0x13a")],this[Ec("0x7c")]=new WeakMap,this[Ec("0xb7")]=!1,this._blockAttributeKeys=new Set(["$elementName"]),this._inlineAttributeKeys=new Set,t[Ec("0x20")][Ec("0x12a")](Ec("0x89"),Ec("0x169")),this._trackFormatChanges=t[Ec("0x20")].get(Ec("0x89")),t[Ec("0x20")][Ec("0x12a")](Ec("0xd4"),!0),this[Ec("0x132")]=t[Ec("0x20")][Ec("0x12c")](Ec("0xd4")),this.trackChangesCommand=new d(t,this[Ec("0x7f")]),this[Ec("0x48")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,56,48,50,48,56])}[Ec("0x159")](){const t=this[Ec("0x91")],n=(t,e)=>{if(Ec("0x70")!=t)return Ec("0x117")+t;const n=e.split("|")[0];return this[Ec("0x15")](n)?"ck-suggestion-marker-formatBlock":Ec("0x33")};t[Ec("0x149")][Ec("0x72")](Ec("0x9e"))[Ec("0x1e")]({model:Ec("0x12e"),view:t=>{const{id:e,type:o,subType:r}=this[Ec("0x5")](t[Ec("0xed")]),i=[Ec("0x9c"),n(o,r)];let s=3e3;return this[Ec("0x173")].includes(t[Ec("0xed")])&&(i[Ec("0x143")]("ck-suggestion-marker--active"),s=3010),"deletion"==o&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[Ec("0x72")](Ec("0x175"))[Ec("0xcc")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o[Ec("0x16")][Ec("0x1d")])return;const r=n.item;if(!r)return;const i=o.mapper[Ec("0x95")](r);t[Ec("0x13a")][Ec("0x96")][Ec("0xcd")](r)&&i&&!i[Ec("0x28")]("widget")&&i.is("containerElement")&&(0,x.toWidget)(i,o[Ec("0x152")])}),{priority:Ec("0xb2")})})),t[Ec("0x149")][Ec("0x72")]("dataDowncast").markerToHighlight({model:Ec("0x12e"),view:(t,e)=>{if(!e[Ec("0x16")][Ec("0x1d")])return null;const{type:o,subType:r}=this[Ec("0x5")](t[Ec("0xed")]);return{classes:[Ec("0x9c"),n(o,r)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,r,i)=>{if(!r[Ec("0x7d")])return;const{id:s}=this._splitMarkerName(r.markerName);if(n){const t=wc(this[Ec("0x80")][Ec("0x12c")](s));if(!this._isBlockAttribute(t))return}if(r[Ec("0x7d")].is(Ec("0x1c")))return void i[Ec("0x131")][Ec("0x9d")](r[Ec("0x7d")],o[Ec("0x115")]);const x=i.mapper[Ec("0x95")](r[Ec("0x7d")]);if(r[Ec("0x7d")].is(Ec("0x8e"))&&t[Ec("0x13a")][Ec("0x96")][Ec("0x3f")](r[Ec("0x7d")])&&!x[Ec("0x28")](Ec("0x86"))){i[Ec("0x152")][Ec("0x11b")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock"],x),i[Ec("0x152")].setAttribute(Ec("0x107"),s,x),i[Ec("0xb9")].bindElementToMarker(x,r[Ec("0xed")]),e&&(this.activeMarkers[Ec("0x144")](r.markerName)?i[Ec("0x152")][Ec("0x11b")](Ec("0xb8"),x):i[Ec("0x152")][Ec("0x68")](Ec("0xb8"),x));for(const e of t[Ec("0x13a")][Ec("0x113")](r[Ec("0x7d")])[Ec("0xd0")]())i.consumable[Ec("0x9d")](e,o[Ec("0x115")]);i[Ec("0x131")][Ec("0x9d")](r[Ec("0x7d")],o[Ec("0x115")])}};t[Ec("0x149")][Ec("0x72")](Ec("0x175"))[Ec("0xcc")]((t=>{t.on(Ec("0xf"),((t,e,n)=>{n.options[Ec("0x1d")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:Ec("0x32")})})),t[Ec("0x149")].for(Ec("0x175"))[Ec("0xcc")]((t=>{t.on(Ec("0xd"),((t,e,n)=>{n[Ec("0x16")].showSuggestionHighlights&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:Ec("0x32")})})),t[Ec("0x149")][Ec("0x72")](Ec("0x175"))[Ec("0xfb")]({model:Ec("0x12e"),view:(t,e)=>e.options[Ec("0x1d")]?null:{group:Ec("0x12e"),name:t[Ec("0x13e")](11)}}),t[Ec("0x149")][Ec("0x72")]("upcast").elementToElement({view:{name:Ec("0x12e"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Ec("0x2c")+t[Ec("0x36")](Ec("0x23"))+":"+t[Ec("0x36")]("id");return t[Ec("0x36")](Ec("0x168"))&&(n+=":"+t[Ec("0x36")]("marker-count")),e[Ec("0x157")](Ec("0x11"),{"data-name":n})}}),t[Ec("0x149")].for(Ec("0x8f"))[Ec("0x64")]({view:Ec("0x12e")}),t[Ec("0x149")][Ec("0x72")](Ec("0x9e"))[Ec("0xcc")]((t=>{t.on(Ec("0xf"),o(),{priority:"high"})})),t[Ec("0x149")][Ec("0x72")](Ec("0x9e"))[Ec("0xcc")]((t=>{t.on(Ec("0xd"),o({isAttributeSuggestion:!0}),{priority:Ec("0xb2")})})),t[Ec("0x149")][Ec("0x72")]("editingDowncast")[Ec("0xcc")]((t=>{t.on(Ec("0x134"),((t,e,n)=>{const o=n[Ec("0xb9")][Ec("0x35")](e[Ec("0xed")]);if(o)for(const t of o)t[Ec("0x28")](Ec("0x86"))||(n.writer[Ec("0x68")]([Ec("0x9c"),Ec("0x13f"),Ec("0xb8")],t),n.writer.removeAttribute(Ec("0x107"),t),n[Ec("0xb9")][Ec("0xf6")](t,e[Ec("0xed")]))}),{priority:Ec("0xb2")})})),t.conversion[Ec("0x72")](Ec("0x9e"))[Ec("0xcc")]((t=>{t.on(Ec("0x66"),((t,e,n)=>{const o=n[Ec("0xb9")][Ec("0x35")](e[Ec("0xed")]);if(!o)return;const{id:r}=this[Ec("0x5")](e[Ec("0xed")]),i=wc(this[Ec("0x80")][Ec("0x12c")](r));if(this._isBlockAttribute(i))for(const t of o)t[Ec("0x28")](Ec("0x86"))||(n[Ec("0x152")][Ec("0x68")]([Ec("0x9c"),Ec("0x13f"),"ck-suggestion-marker--active"],t),n[Ec("0x152")][Ec("0xc3")](Ec("0x107"),t),n[Ec("0xb9")][Ec("0xf6")](t,e[Ec("0xed")]))}),{priority:Ec("0xb2")})})),t.model.document[Ec("0x6f")]((e=>{let n=!1;const o=Array[Ec("0xe4")](t[Ec("0x13a")][Ec("0x129")][Ec("0x121")].getChangedMarkers()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this._splitMarkerName(x);if(Ec("0x12e")!==o)continue;const d=this[Ec("0x80")][Ec("0x12c")](u);if(null!=a[Ec("0x142")]){"formatInline"==c&&(n=n||kc(a[Ec("0x142")],x,e,t.model[Ec("0x96")]));const o="attribute"==c&&this[Ec("0x15")](l[Ec("0x8b")]("|")[0]);if(a[Ec("0x142")].isCollapsed||Ec("0x5a")==a[Ec("0x142")][Ec("0x82")][Ec("0x11f")]||Ec("0x11a")==c&&!Rc(a[Ec("0x142")])||o&&!Rc(a[Ec("0x142")])||Ec("0x114")==c&&(Ac(s=a.newRange)||(i=s)[Ec("0x25")][Ec("0x156")]==i.end[Ec("0x16f")]&&i.start[Ec("0xca")]))e[Ec("0x100")](x),n=!0;else{if(!d||!d[Ec("0xbd")])continue;r[Ec("0xcc")](d)}}}var i,s;return r.size>0&&(n=!!this[Ec("0x59")](r)||n),n})),t.model.document[Ec("0x6f")]((e=>{let n=!1;for(const o of t[Ec("0x13a")][Ec("0x129")][Ec("0x121")][Ec("0x94")]())if(Ec("0x14")==o[Ec("0x2")])for(const o of this[Ec("0x80")].values()){if(o[Ec("0x1f")]||!o.isInContent)continue;const r="formatBlock"==o[Ec("0x2")],i=wc(o),s=i&&this._isBlockAttribute(i);if(!r&&!s)continue;const x=o[Ec("0xd3")]();if(x[Ec("0x25")][Ec("0x156")]!=x[Ec("0xba")][Ec("0x156")]&&!x[Ec("0xba")][Ec("0xca")]){const r=t[Ec("0x13a")][Ec("0xa1")](x[Ec("0x25")][Ec("0xd9")],Ec("0xba")),i=t[Ec("0x13a")].createRange(x.start,r);e[Ec("0x7a")](o[Ec("0x43")](),{range:i}),n=!0}}return n})),t[Ec("0x13a")].document[Ec("0x6f")]((t=>this[Ec("0x10e")](t))),t[Ec("0x13a")][Ec("0x129")].registerPostFixer((t=>!t[Ec("0xcf")][Ec("0x24")]&&this[Ec("0x4d")](t))),t[Ec("0x13a")].markers.on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[Ec("0x5")](e[Ec("0x115")]),n=this[Ec("0x80")][Ec("0x12c")](t);n&&n[Ec("0x65")](e.name)}})),t[Ec("0x13a")][Ec("0x129")].on(Ec("0xde"),(()=>{const e=Array[Ec("0xe4")](t.model.document.differ.getChangedMarkers())[Ec("0x81")]((t=>Ec("0x12e")===this[Ec("0x5")](t[Ec("0x115")])[Ec("0x13")]));if(0===e[Ec("0x57")])return;e[Ec("0x56")](((t,e)=>{const n=t[Ec("0x17e")][Ec("0x7")],o=e[Ec("0x17e")][Ec("0x7")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Ec("0x25")][Ec("0x10c")](o[Ec("0x25")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[Ec("0x5")](t);if(null===r.oldRange){const e=this._handleNewSuggestionMarker(t);o[Ec("0xcc")](e)}else{const t=this._suggestions[Ec("0x12c")](e);null!==r[Ec("0x142")]||t[Ec("0xbd")]?(n[Ec("0xcc")](t[Ec("0x14b")]),o[Ec("0xcc")](t)):this._removeSuggestion(t)}}o[Ec("0x71")]>0&&this[Ec("0xd2")](o);for(const t of n)this.fire(Ec("0xff"),t)})),t[Ec("0x13a")].on(Ec("0x104"),((e,n)=>{const o=n[0];if(!this._suggestions.size)return;if(!o[Ec("0xb")])return;if(o[Ec("0xcf")][Ec("0x166")]||!o[Ec("0xcf")][Ec("0x24")])return;let r,i;switch(o[Ec("0x2")]){case Ec("0x14"):r=t[Ec("0x13a")][Ec("0xa1")](o.position),i=r[Ec("0xfd")](o[Ec("0x1")]);break;case Ec("0x8b"):r=t[Ec("0x13a")][Ec("0xa1")](o.splitPosition),i=t[Ec("0x13a")][Ec("0xa1")](o[Ec("0xeb")]);break;case Ec("0x17a"):r=t[Ec("0x13a")][Ec("0xa1")](o[Ec("0x148")]),i=r[Ec("0xfd")](o[Ec("0x1")]);break;default:return}const s=t.model.createRange(r,i);t[Ec("0x13a")].change((()=>{for(const{suggestion:t,meta:e}of this[Ec("0x4e")](s)){if(t[Ec("0x1f")])continue;if("formatInline"==t[Ec("0x2")])continue;const n=wc(t);if(n&&this[Ec("0x15")](n)&&Ec("0x8b")!=o[Ec("0x2")])continue;const x=t[Ec("0x17e")]&&t[Ec("0x17e")][Ec("0xd7")];(Ec("0x11a")!=t[Ec("0x2")]||"split"==o[Ec("0x2")]&&!x)&&(e[Ec("0xfc")]||Ec("0xb6")==t.type&&e[Ec("0x44")]||t[Ec("0xd3")]()[Ec("0x178")](s)&&this[Ec("0xee")](t,r,i))}}))}),{priority:"lowest"}),t.model.on(Ec("0xc0"),((e,n)=>{const o=n[0],r=n[1];if(r&&r[Ec("0x3")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[Ec("0x12")].value)return;if(o[Ec("0x88")])return;const i=t.model.schema,{start:s,end:x}=o[Ec("0xd3")](),a=s[Ec("0xd9")]&&i[Ec("0x108")](s[Ec("0xd9")])?null:i.getNearestSelectionRange(s,Ec("0x8")),c=x[Ec("0x16f")]&&i[Ec("0x108")](x[Ec("0x16f")])?null:i[Ec("0x126")](x,"backward"),l=t[Ec("0x13a")][Ec("0xe3")](a?a[Ec("0x25")]:s,c?c.end:x);t.model[Ec("0xf7")]((e=>{this[Ec("0x99")](l);const n=t[Ec("0x13a")][Ec("0x96")][Ec("0x126")](l.start);o.is(Ec("0x0"))?e[Ec("0x6")](n):o[Ec("0x139")](n)})),e[Ec("0x12b")]()}),{priority:e.priorities[Ec("0x26")]+10}),t[Ec("0x13a")].on(Ec("0x41"),((e,n)=>{const o=n[n[Ec("0x57")]-1];o&&o[Ec("0x3")]||this[Ec("0xb7")]||this[Ec("0x12")][Ec("0x9f")]&&(t.model[Ec("0xf7")]((()=>{let o=t[Ec("0x13a")][Ec("0x41")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Ec("0x17b")]=o[Ec("0x118")]();const r=o[Ec("0xba")].nodeBefore,i=t[Ec("0x13a")].schema;r&&i[Ec("0x3f")](r)&&!i[Ec("0xcd")](r)&&(o=t[Ec("0x13a")][Ec("0xe3")](o[Ec("0x25")],t.model.createPositionAt(r,"end"))),this.markInsertion(o)})),e[Ec("0x12b")]())}),{priority:Ec("0xb2")}),this[Ec("0x91")][Ec("0x40")][Ec("0xcc")](Ec("0x5d"),this.trackChangesCommand),this.enableCommand(Ec("0x5d"));const r=new p(t,this[Ec("0x80")]);t[Ec("0x40")][Ec("0xcc")](Ec("0xea"),r),this[Ec("0x5b")](Ec("0xea"));const i=new y(t,this._suggestions);t[Ec("0x40")].add(Ec("0x47"),i),this[Ec("0x5b")](Ec("0x47")),t[Ec("0x40")][Ec("0xcc")]("acceptAllSuggestions",new F(t,r,this[Ec("0x80")])),this[Ec("0x5b")](Ec("0xb1")),t[Ec("0x40")][Ec("0xcc")]("discardAllSuggestions",new F(t,i,this[Ec("0x80")])),this[Ec("0x5b")](Ec("0xd6")),t[Ec("0x40")].add(Ec("0x112"),new j(t,r,this[Ec("0x80")])),this.enableCommand(Ec("0x112")),t.commands[Ec("0xcc")]("discardSelectedSuggestions",new j(t,i,this[Ec("0x80")])),this[Ec("0x5b")](Ec("0x49"));const s=t[Ec("0x140")][Ec("0x12c")]("CommentsRepository");this[Ec("0xc2")](s,Ec("0x163"),((t,{threadId:e})=>{const n=this[Ec("0x80")][Ec("0x12c")](e);n&&n[Ec("0x73")]&&1===n[Ec("0x73")][Ec("0x57")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:"low"}),this[Ec("0xc2")](s,Ec("0x9a"),((t,{threadId:e})=>{const n=this[Ec("0x80")].get(e);n&&n[Ec("0x73")]&&!n.commentThread[Ec("0x57")]&&this[Ec("0x45")](e,{hasComments:!1})}),{priority:Ec("0x167")})}set[Ec("0x84")](t){if(this._adapter)throw new e.CKEditorError(Ec("0xfa"),this);this[Ec("0x110")]=t}get[Ec("0x84")](){return this[Ec("0x110")]}[Ec("0x39")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Ec("0x80")][Ec("0x16d")]())t&&!e[Ec("0xbd")]||n.push(e);return e?n[Ec("0x111")]((t=>t.toJSON())):n}[Ec("0x93")](t){const n=this[Ec("0x80")][Ec("0x12c")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[Ec("0x1b")](t){return this[Ec("0x80")][Ec("0x63")](t)}[Ec("0xab")](t){const{authorId:e,id:n,attributes:o}=t,[r,i]=t[Ec("0x2")][Ec("0x8b")](":"),s=this._suggestions.get(n)||this[Ec("0x5f")](r,i,n,e,o);if(this[Ec("0x54")](s),this[Ec("0x15f")](s,r,i||null,e),s[Ec("0x102")]=t[Ec("0x102")],s._isDataLoaded=!0,o&&o["@external"]){const t=o["@external"],e=this._getExternalAuthor(t.authorName);s.authoredAt=t.createdAt,s[Ec("0xaf")]=e,s[Ec("0xdb")]=!0}else s[Ec("0x145")]=t[Ec("0x102")];switch(t[Ec("0x17e")]&&(s[Ec("0x17e")]=t[Ec("0x17e")]),t[Ec("0x62")]&&(s[Ec("0x62")]=t[Ec("0x62")]),this[Ec("0x110")]&&this[Ec("0x110")][Ec("0xbc")]||(s[Ec("0x135")]=!0),this[Ec("0x7c")][Ec("0x12c")](s)){case Ec("0x4f"):this[Ec("0x7c")][Ec("0x29")](s,Ec("0xc6"));break;case Ec("0x74"):s[Ec("0xbd")]?(this[Ec("0xd2")](new Set([s])),this[Ec("0x59")](new Set([s])),this[Ec("0x7c")][Ec("0x29")](s,Ec("0x11d")),this[Ec("0xf3")](Ec("0x12d"),s)):this._suggestionState[Ec("0x29")](s,Ec("0x5c"))}return s}[Ec("0xea")](t){this[Ec("0x3")]((()=>{this[Ec("0x91")][Ec("0x13a")][Ec("0xf7")]((()=>{for(const e of t[Ec("0x136")]())e[Ec("0x16c")]()}))}))}[Ec("0x47")](t){this[Ec("0x3")]((()=>{this[Ec("0x91")][Ec("0x13a")].change((()=>{for(const e of t.getAllAdjacentSuggestions())e.discard()}))}))}[Ec("0x5b")](t,n){const o=this[Ec("0x91")][Ec("0x40")][Ec("0x12c")](t);if(!o)throw new e.CKEditorError(Ec("0x16e"),this,{commandName:t});if(this[Ec("0x7f")].has(o))throw new e.CKEditorError(Ec("0x60"),this,{commandName:t});this[Ec("0x7f")][Ec("0xcc")](o),n&&o.on(Ec("0x2e"),((t,e)=>{this[Ec("0x12")][Ec("0x9f")]&&(this._isForcedDefaultExecutionBlock||(e[Ec("0x57")]>0&&e[e.length-1]&&e[e[Ec("0x57")]-1][Ec("0x3")]?e[Ec("0x3c")]():(t[Ec("0x17b")]=n(((...t)=>o[Ec("0x2e")](...t,{forceDefaultExecution:!0})),...e),t[Ec("0x12b")]())))}),{priority:Ec("0xb2")})}[Ec("0x3")](t){let n,o;const r=this[Ec("0xb7")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return r||(this[Ec("0xb7")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[Ec("0x87")](t,n=null,o={}){if(t[Ec("0x88")])return null;const r=this.editor.plugins[Ec("0x12c")](Ec("0xe1")).me;for(const{suggestion:e,meta:r}of this[Ec("0x4e")](t,"insertion"))if(r[Ec("0x44")]){if(!r[Ec("0x158")]){if(r[Ec("0xfc")]){if(!this[Ec("0x132")]||!Lc(e,o))continue;return e}if(Lc(e,o))return e;this._breakSuggestionMarker(e,t.start,t[Ec("0xba")]);break}if(n==e.subType&&Lc(e,o)){const n=e[Ec("0xd3")]();return n[Ec("0x25")].isEqual(t[Ec("0xba")])?this._setSuggestionRange(e,this[Ec("0xdc")][Ec("0xe3")](t[Ec("0x25")],n[Ec("0xba")])):this[Ec("0x7b")](e,this[Ec("0xdc")][Ec("0xe3")](n[Ec("0x25")],t[Ec("0xba")])),e}}const i=(0,e.uid)(),s=r.id,x=n?Ec("0x11e")+n:Ec("0xb6"),a=this[Ec("0xf4")]({id:i,type:x,createdAt:new Date,authorId:s,attributes:o});return this[Ec("0xe9")](x,i,s,t),a}markMultiRangeInsertion(t,n="multi",o={}){const r=this[Ec("0x91")][Ec("0x140")][Ec("0x12c")](Ec("0xe1")).me,i=this[Ec("0xb5")][Ec("0x52")]("insertion",n,Ec("0x164"));for(const e of this.getSuggestions())if(e[Ec("0xaf")].id==r.id&&"insertion"==e[Ec("0x2")]&&e[Ec("0xfe")]==n&&Lc(e,o)&&(i(e.getRanges(),t)||i(t,e[Ec("0x9")]()))){for(const n of t)e.addRange(n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,Ec("0xb6"))){if(!n[Ec("0x44")])continue;if(!this[Ec("0x132")]&&n[Ec("0xfc")])continue;if(!Lc(e,o))continue;let r=!0;for(const n of e[Ec("0x9")]())for(const e of t)if(!n[Ec("0x178")](e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a=Ec("0x11e")+n,c=this[Ec("0xf4")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Ec("0xe9")](a,s,x,e,Jo[Ec("0x12f")]());return c}[Ec("0x14a")](t,n,o=null,r={}){if(o=o||Ic(n),t.isCollapsed)return null;if(Ec("0x14f")===this[Ec("0x176")]){const e=this[Ec("0xb5")].getSuggestionCallback("formatInline",o,Ec("0x16c"));return this[Ec("0x3")]((()=>e([t],n,r))),null}const i=this[Ec("0x91")][Ec("0x140")][Ec("0x12c")]("Users").me,s=[];if(Ec("0x109")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[Ec("0x4e")](t,"insertion"))n[Ec("0x44")]&&!n[Ec("0x10f")]&&s[Ec("0x143")](...e[Ec("0x9")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Ec("0x15b")](o);e&&n[Ec("0x143")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Ec("0x57")];){const o=n[e][Ec("0x141")](t);n[Ec("0x9b")](e,1,...o),e+=o[Ec("0x57")]}}return n}(t,s);x[Ec("0x57")]&&this._model[Ec("0xf7")]((()=>{for(const t of x){const e=this[Ec("0xb5")].getSuggestionCallback("formatInline",o,"accept");this[Ec("0x3")]((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t[Ec("0x25")],a=t[Ec("0xba")];for(const{suggestion:e,meta:n}of this[Ec("0x4e")](t,"formatInline")){if(!n[Ec("0x44")])continue;if(e[Ec("0xfe")]!=o)continue;if(!Lc(e,r))continue;const i=e[Ec("0xd3")]();if(i[Ec("0x178")](t,!0))return null;x=x[Ec("0x10c")](i[Ec("0x25")])?x:i[Ec("0x25")],a=a.isAfter(i[Ec("0xba")])?a:i[Ec("0xba")],s?i[Ec("0x25")][Ec("0x10c")](s[Ec("0xd3")]().start)?(s.removeMarkers(),s=e):e.removeMarkers():s=e}const c=this[Ec("0xdc")].createRange(x,a);if(s)this[Ec("0x7b")](s,c);else{const t=(0,e.uid)(),s=i.id;this[Ec("0xf4")]({id:t,type:Ec("0x6d")+o,data:n,createdAt:new Date,authorId:s,attributes:r}),this[Ec("0xe9")](Ec("0x6d")+o,t,s,c)}}return null}[Ec("0xc7")](t,n,o=[],r=null,i={}){n[Ec("0x172")]||(n[Ec("0x172")]=n[Ec("0x101")]),n[Ec("0xd7")]=t.is(Ec("0x19")),r=r||Ic(n);const s=o.map((t=>Sc(t,this[Ec("0xdc")]))),x=t.is(Ec("0x19"))?t:Sc(t,this[Ec("0xdc")]);if(Ec("0x14f")===this[Ec("0x176")]){const t=this[Ec("0xb5")][Ec("0x52")]("formatBlock",r,Ec("0x16c"));return this.forceDefaultExecution((()=>t([x],n,i))),null}s[Ec("0x143")](x);let a=!0;for(const t of s)if(!this[Ec("0xf5")](t)){a=!1;break}if(a&&Ec("0x109")!==this[Ec("0x176")]){const t=this[Ec("0xb5")][Ec("0x52")](Ec("0x11a"),r,Ec("0x16c"));return this[Ec("0x3")]((()=>t([x],n,i))),null}let c=null,l=x[Ec("0x25")],u=x.end;for(const{suggestion:t,meta:e}of this[Ec("0x4e")](x,Ec("0x11a"))){if(!e[Ec("0x44")])continue;if(e[Ec("0x158")]||e.containsRangeInObject||e[Ec("0x10f")])continue;if(t[Ec("0x17e")].formatGroupId!=n[Ec("0x172")])continue;if(!Lc(t,i))continue;const o=t.getFirstRange();if(t[Ec("0xfe")]==r){if(o[Ec("0x178")](x,!0))return null;l=l[Ec("0x10c")](o[Ec("0x25")])?l:o[Ec("0x25")],u=u[Ec("0x76")](o[Ec("0xba")])?u:o[Ec("0xba")],c?o[Ec("0x25")][Ec("0x10c")](c[Ec("0xd3")]()[Ec("0x25")])?(c[Ec("0x10b")](),c=t):t[Ec("0x10b")]():c=t}else{const e=x[Ec("0x15b")](o);this[Ec("0xae")](t,e)}}const d=this.editor[Ec("0x140")].get(Ec("0xe1")).me,g=(0,e.uid)(),f=d.id;if(c)return this[Ec("0x7b")](c,this[Ec("0xdc")][Ec("0xe3")](l,u)),c;{const t=this._setSuggestionData({id:g,type:Ec("0x8c")+r,data:n,createdAt:new Date,authorId:f,attributes:i});return this[Ec("0xe9")](Ec("0x8c")+r,g,f,this._model[Ec("0xe3")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],r=null,i={}){n[Ec("0x172")]||(n[Ec("0x172")]=n[Ec("0x101")]);const s=t[0];n.multipleBlocks=s.is(Ec("0x19")),r=r||Ic(n);const x=o[Ec("0x111")]((t=>Sc(t,this[Ec("0xdc")]))),a=s.is(Ec("0x19"))?t:t[Ec("0x111")]((t=>Sc(t,this[Ec("0xdc")])));if(Ec("0x14f")===this[Ec("0x176")]){const t=this[Ec("0xb5")].getSuggestionCallback(Ec("0x11a"),r,Ec("0x16c"));return this[Ec("0x3")]((()=>t(a,n,i))),null}x.push(...a);let c=!0;for(const t of x)if(!this[Ec("0xf5")](t)){c=!1;break}if(c&&Ec("0x109")!==this[Ec("0x176")]){const t=this[Ec("0xb5")][Ec("0x52")]("formatBlock",r,Ec("0x16c"));return this[Ec("0x3")]((()=>t(a,n,i))),null}const l=this.editor[Ec("0x140")][Ec("0x12c")](Ec("0xe1")).me;for(const t of this[Ec("0x39")]()){if(t[Ec("0xaf")].id!=l.id)continue;if(Ec("0x11a")!=t[Ec("0x2")]||t[Ec("0x17e")][Ec("0x172")]!=n[Ec("0x172")])continue;if(!Lc(t,i))continue;const e=t.subType==r;for(let n=0;n<a.length;n++){const o=a[n];for(const r of t[Ec("0x18")]()){const i=r[Ec("0x15a")]();if(o[Ec("0x106")](i)){e?(a[Ec("0x9b")](n,1),n--):t.removeMarker(r[Ec("0x115")]);break}}}}if(0==a[Ec("0x57")])return null;const u=this[Ec("0xb5")].getSuggestionCallback(Ec("0x11a"),r,"join");for(const t of this[Ec("0x39")]())if(t.author.id==l.id&&Ec("0x11a")==t[Ec("0x2")]&&t[Ec("0x17e")][Ec("0x172")]==n.formatGroupId&&t[Ec("0xfe")]==r&&Lc(t,i)&&(u(t[Ec("0x9")](),a)||u(a,t.getRanges()))){for(const e of a)t[Ec("0x150")](e);return t}const d=(0,e.uid)(),g=l.id,f="formatBlock:"+r,m=this[Ec("0xf4")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this._addSuggestionMarker(f,d,g,t,Jo.getMultiRangeId());return m}markDeletion(t,n=null,o={}){if(t[Ec("0x88")])return null;const r=this.editor[Ec("0x140")][Ec("0x12c")](Ec("0xe1")).me,i=new s.LiveRange(t[Ec("0x25")],t[Ec("0xba")]);for(const{suggestion:t,meta:e}of this[Ec("0x4e")](i,"insertion"))if(e[Ec("0x44")]&&!e[Ec("0x158")])if(t.isMultiRange){const e=t[Ec("0x9")]().filter((t=>"$graveyard"!=t[Ec("0x82")].rootName));if(e[Ec("0x97")]((t=>i.containsRange(t,!0)))&&t.discard(),e[Ec("0x124")]((t=>t[Ec("0x178")](i,!0)))){const t=this[Ec("0xb5")][Ec("0x52")](Ec("0x114"),n,Ec("0x16c"));return this[Ec("0x3")]((()=>t([i],null,o))),null}}else{const e=i[Ec("0x15b")](t[Ec("0xd3")]());null!==e&&t[Ec("0x122")]([e],null,o)}if(i[Ec("0xc9")](),i[Ec("0x88")]||Ec("0x5a")==i.root[Ec("0x11f")])return null;let x=null,a=i[Ec("0x25")],c=i.end;const l=this[Ec("0x4e")](i,Ec("0x114"));for(const{suggestion:t,meta:e}of l){const n=this[Ec("0xdc")][Ec("0xe3")](a,c);if(e[Ec("0x44")]&&(this._mergeNestedSuggestions||!e[Ec("0xfc")]&&!e[Ec("0x10f")]))if(t[Ec("0x1f")]){if(!Lc(t,o))continue;let e=!0;for(const o of t[Ec("0x9")]()){if(o.containsRange(n,!0))return t;n[Ec("0x178")](o)||(e=!1)}e&&t.discard()}else{const e=t[Ec("0xd3")]();if(e.containsRange(n,!0))return t;if(!Lc(t,o)){n[Ec("0x178")](e)?t[Ec("0x10b")]():e[Ec("0x10")](a)?a=e[Ec("0xba")]:e[Ec("0x10")](c)&&(c=e[Ec("0x25")]);continue}a=a[Ec("0x10c")](e.start)?a:e[Ec("0x25")],c=c[Ec("0x76")](e[Ec("0xba")])?c:e[Ec("0xba")],o=Object[Ec("0x16a")]({},t[Ec("0x62")]),x?e[Ec("0x25")][Ec("0x10c")](x[Ec("0xd3")]()[Ec("0x25")])?(x[Ec("0x10b")](),x=t):t.removeMarkers():x=t}}if(x)return this[Ec("0x7b")](x,this[Ec("0xdc")][Ec("0xe3")](a,c)),x;{const t=(0,e.uid)(),i=this[Ec("0xdc")][Ec("0xe3")](a,c),s=r.id,x=n?Ec("0xbb")+n:"deletion",l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[Ec("0xe9")](x,t,s,i),l}}[Ec("0x130")](t,n=Ec("0x75"),o={}){const r=this.editor[Ec("0x140")][Ec("0x12c")](Ec("0xe1")).me,i=t[Ec("0x111")]((t=>new s.LiveRange(t[Ec("0x25")],t[Ec("0xba")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Ec("0x4e")](i,Ec("0xb6")))e[Ec("0x44")]&&!e[Ec("0x158")]&&x[Ec("0xcc")](t);for(const e of x)if(e.isMultiRange){const r=e.getRanges();if((!e[Ec("0x62")]||!e[Ec("0x62")][Ec("0xe")])&&r[Ec("0x97")]((t=>i[Ec("0x124")]((e=>e[Ec("0x178")](t,!0)))))&&e[Ec("0x14e")](),i[Ec("0x97")]((t=>r[Ec("0x124")]((e=>e[Ec("0x178")](t,!0)))))){const e=this[Ec("0xb5")][Ec("0x52")](Ec("0x114"),n,Ec("0x16c"));return this[Ec("0x3")]((()=>e(t,null,o))),null}}else{const t=e[Ec("0xd3")]();if(i[Ec("0x124")]((e=>e.containsRange(t,!0)))&&e[Ec("0x14e")](),i.every((e=>t[Ec("0x178")](e,!0)))){const t=this[Ec("0xb5")][Ec("0x52")]("deletion",n,Ec("0x16c"));return this.forceDefaultExecution((()=>t(i,null,o))),null}}const a=this[Ec("0xb5")][Ec("0x52")]("deletion",n,"join");let c=null;for(const t of this[Ec("0x39")]())if(t[Ec("0xaf")].id==r.id&&t.isInContent&&Ec("0x114")==t[Ec("0x2")]&&t.subType==n&&Lc(t,o)&&(a(t[Ec("0x9")](),i)||a(i,t.getRanges())))if(c){if(t[Ec("0x73")]&&t[Ec("0x73")].length)continue;for(const e of t.getRanges())c.isIntersectingWithRange(e)||c.addRange(e);t[Ec("0x10b")]()}else{c=t;for(const e of i)t[Ec("0x11c")](e)||t[Ec("0x150")](e)}if(c)return c;x[Ec("0x6a")]();for(const{suggestion:t,meta:e}of this._findSuggestions(i,"deletion"))e[Ec("0x44")]&&(this[Ec("0x132")]||!e.containsRangeInObject&&!e[Ec("0x10f")])&&Lc(t,o)&&x[Ec("0xcc")](t);for(const t of x){const e=t.getRanges();if((!o||!o[Ec("0xe")])&&i[Ec("0x97")]((t=>e[Ec("0x124")]((e=>e[Ec("0x178")](t,!0))))))return t;(!t[Ec("0x62")]||!t[Ec("0x62")][Ec("0xe")])&&e[Ec("0x97")]((t=>i.some((e=>e[Ec("0x178")](t,!0)))))&&t[Ec("0x14e")]()}const l=(0,e.uid)(),u=r.id,d=Ec("0xbb")+n,g=this[Ec("0xf4")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of i)t[Ec("0xc9")](),t[Ec("0x88")]||Ec("0x5a")==t[Ec("0x82")].rootName||this._addSuggestionMarker(d,l,u,t,Jo.getMultiRangeId());return g}markAttributeChange(t,n,o,r,i){if(t[Ec("0x88")])return[];if(Ec("0x14f")===this[Ec("0x176")])return[];const s=this.editor[Ec("0x140")][Ec("0x12c")]("Users").me.id,x=Array.from(this[Ec("0x80")][Ec("0x16d")]())[Ec("0x81")]((e=>Ec("0x70")==e[Ec("0x2")]&&e[Ec("0x17e")][Ec("0xd8")]==n&&e[Ec("0x11c")](t)));if(Ec("0x169")===this._trackFormatChanges){const e=this[Ec("0x4e")](t,"insertion")[Ec("0x81")]((({meta:t})=>t[Ec("0x44")]&&!t[Ec("0x10f")]&&!t[Ec("0x158")]))[Ec("0x111")]((({suggestion:t})=>t));x[Ec("0x83")](...e)}const a=new Map([[t,o]]);for(const t of x){const e=Ec("0x70")==t[Ec("0x2")]?t[Ec("0x17e")].oldValue:void 0,i=t.getFirstRange(),s=Array[Ec("0xe4")](a[Ec("0x120")]()).find((t=>t[Ec("0x146")](i)));if(!s)continue;const x=s[Ec("0x141")](i);this._isBlockAttribute(n)&&Ec("0xb6")==t[Ec("0x2")]&&0!=x[Ec("0x57")]||(a[Ec("0xa6")](s),x[Ec("0xd5")]((t=>{a.set(t,o)})),"insertion"!=t[Ec("0x2")]&&e!=r&&a[Ec("0x29")](s[Ec("0x15b")](i),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:r};n.length>37&&console[Ec("0x17d")](Ec("0x46"),{key:n});const l=(Ec("0xb3")+(n+"|")+Ic({newValue:r}))[Ec("0x127")](0,60),u=this[Ec("0xf4")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c[Ec("0x143")](u),this[Ec("0xe9")](l,x,s,t)}return c}[Ec("0x92")](t){this._blockAttributeKeys[Ec("0xcc")](t)}[Ec("0x85")](t){this[Ec("0xec")][Ec("0xcc")](t)}[Ec("0xf0")](t,e=[],n=[]){this.enableCommand(t,((t,...e)=>{this[Ec("0xb4")]((()=>{t(...e)}))}));for(const t of e)this._registerInlineAttribute(t);for(const t of n)this[Ec("0x92")](t)}_setSuggestionRange(t,e){const n=t[Ec("0x43")]();this[Ec("0xdc")][Ec("0xf7")]((t=>{t.updateMarker(n,{range:e})}))}[Ec("0x54")](t){const e=t.id,n=this[Ec("0x91")][Ec("0x20")][Ec("0x12c")](Ec("0x2b"));this[Ec("0x177")][Ec("0xa2")](e)||this[Ec("0x177")][Ec("0xb0")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Ec("0x177")][Ec("0xa4")](e);o.unbind(Ec("0x137")),o[Ec("0x137")]=!1,t[Ec("0x73")]=o}[Ec("0x15f")](t,n,o,r){if(t.type!=n||t[Ec("0xfe")]!=o||t[Ec("0xda")].id!=r)throw this[Ec("0x91")][Ec("0x17f")](Ec("0xdd")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}_cutOutSuggestionMarker(t,n){const o=t[Ec("0xd3")]();if(n[Ec("0x106")](o))t[Ec("0x10b")]();else if(o.containsRange(n)){const r=this[Ec("0xdc")][Ec("0xa1")](n[Ec("0x25")][Ec("0x16f")],Ec("0xba"));this[Ec("0x7b")](t,this[Ec("0xdc")][Ec("0xe3")](o[Ec("0x25")],r));const i=(0,e.uid)(),s=t.creator.id,x=t[Ec("0x2")]+":"+t[Ec("0xfe")];this._setSuggestionData({id:i,type:x,createdAt:new Date,authorId:s,data:t[Ec("0x17e")],attributes:t[Ec("0x62")]});const a=this[Ec("0xdc")].createPositionAt(n[Ec("0xba")][Ec("0x156")],Ec("0x161")),c=this[Ec("0xdc")][Ec("0xe3")](a,o[Ec("0xba")]);this[Ec("0xe9")](x,i,s,c)}else if(o.containsPosition(n[Ec("0x25")])){const e=this[Ec("0xdc")].createPositionAt(n.start[Ec("0x16f")],Ec("0xba"));this[Ec("0x7b")](t,this._model[Ec("0xe3")](o[Ec("0x25")],e))}else{const e=this._model[Ec("0xa1")](n[Ec("0xba")][Ec("0x156")],Ec("0x161"));this[Ec("0x7b")](t,this[Ec("0xdc")][Ec("0xe3")](e,o[Ec("0xba")]))}}[Ec("0xf5")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,Ec("0xb6"))){if(!n.isOwn)continue;const o=e[Ec("0x9")]();for(const e of o)if(!t[Ec("0x141")](e)[Ec("0x57")])return!0}return!1}[Ec("0xc8")](t){const n=this.editor[Ec("0x140")][Ec("0x12c")](Ec("0xe1"))[Ec("0xac")](t);if(!n)throw new e.CKEditorError(Ec("0x4"),this);return n}[Ec("0xf1")](t){const e=this[Ec("0x91")][Ec("0x140")][Ec("0x12c")](Ec("0xe1")),n=(0,i.hashObject)(Ec("0x5e")+t);return e[Ec("0xac")](n)||e.addUser({id:n,name:t})}_createSuggestion(t,e,n,o,r){const i=this[Ec("0xc8")](o),s=this[Ec("0xb5")].buildSuggestion(t,e,n,i,r,(t=>this[Ec("0x45")](n,{attributes:t})));return this[Ec("0xc2")](s,Ec("0x16c"),(()=>{this[Ec("0x45")](n,{state:"accepted"})}),{priority:Ec("0xb2")}),this[Ec("0xc2")](s,Ec("0x14e"),(()=>{this[Ec("0x45")](n,{state:"rejected"})}),{priority:Ec("0xb2")}),this[Ec("0x80")][Ec("0x29")](n,s),this[Ec("0x7c")].set(s,"notReady"),s}_splitMarkerName(t){const e=t[Ec("0x8b")](":");return{group:e[0],type:e[1],subType:e[Ec("0x57")]>=5?e[2]:null,id:e[Ec("0x57")]<5?e[2]:e[3],authorId:e[Ec("0x57")]<5?e[3]:e[4],markerCount:6==e[Ec("0x57")]?e[5]:null}}[Ec("0xee")](t,n,o){const r=t[Ec("0xd3")](),i=r[Ec("0x25")],s=r[Ec("0xba")];this[Ec("0x7b")](t,this[Ec("0xdc")][Ec("0xe3")](i,n));const x=(0,e.uid)(),a=t[Ec("0xda")].id,c=t[Ec("0x2")]+(t[Ec("0xfe")]?":"+t.subType:"");this[Ec("0xf4")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Ec("0x62")],data:t.data});const l=wc(t);(Ec("0x11a")==t[Ec("0x2")]||l&&this[Ec("0x15")](l))&&(o=this[Ec("0xdc")][Ec("0x42")](o[Ec("0x156")])),this._addSuggestionMarker(c,x,a,this._model[Ec("0xe3")](o,s))}_findSuggestions(t,e=null){const n=[],o=this.editor.plugins[Ec("0x12c")]("Users").me;Array[Ec("0x4a")](t)||(t=[t]);for(const r of this[Ec("0x39")]()){if(!r[Ec("0xbd")])continue;if(e&&r[Ec("0x2")]!=e)continue;let i=!1;for(const e of r[Ec("0x9")]()){for(const s of t){const t=s.start[Ec("0x106")](e[Ec("0xba")])||s[Ec("0xba")][Ec("0x106")](e.start);if(t||s[Ec("0x15b")](e)){const x=s[Ec("0x178")](e)&&Cc(this._model[Ec("0x96")],e[Ec("0x25")],s),a=e[Ec("0x178")](s)&&Cc(this[Ec("0xdc")][Ec("0x96")],s[Ec("0x25")],e);n.push({suggestion:r,meta:{isOwn:o==r[Ec("0xaf")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[Ec("0xe9")](t,e,n,o,r){this[Ec("0xdc")][Ec("0xf7")]((i=>{let s=Ec("0x2c")+t+":"+e+":"+n;r&&(s=s+":"+r),i.addMarker(s,{range:o,usingOperation:!0,affectsData:!0})}))}[Ec("0xe6")](t){const e=t[Ec("0x16b")],n=t[Ec("0x155")];t.previous=null,t.next=null,null!=e&&(e[Ec("0x155")]=n),null!=n&&(n[Ec("0x16b")]=e),Ec("0x11d")==this[Ec("0x7c")][Ec("0x12c")](t)&&(this._suggestionState[Ec("0x29")](t,Ec("0x5c")),this[Ec("0xf3")](Ec("0xa5"),t,e,n))}[Ec("0xf4")](t){const n=t.id,o=this[Ec("0xab")](t);if(this._adapter&&this[Ec("0x110")][Ec("0xbc")]){const r=this[Ec("0x91")][Ec("0x140")][Ec("0x12c")]("PendingActions"),i=o[Ec("0x2f")],s=o[Ec("0xfe")]?o[Ec("0x2")]+":"+o[Ec("0xfe")]:o[Ec("0x2")],x=this[Ec("0x91")][Ec("0x31")],a=r[Ec("0xcc")](Qo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:s,hasComments:i,data:t.data||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[Ec("0x62")]};this[Ec("0x110")][Ec("0xbc")](c)[Ec("0xe0")]((t=>{o[Ec("0x135")]=!0,r.remove(a),t&&t[Ec("0x102")]&&(this[Ec("0x80")][Ec("0x12c")](n).createdAt=t[Ec("0x102")])})).catch((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[Ec("0x91")][Ec("0x13a")][Ec("0x128")]({isUndoable:!1},(()=>{o[Ec("0x14e")]()})),o[Ec("0xad")](),this[Ec("0x80")][Ec("0xa6")](o.id),this._suggestionState[Ec("0xa6")](o),t}))}return o}[Ec("0x15")](t){return this[Ec("0x53")][Ec("0x63")](t)}_updateSuggestionData(t,e){const n=this[Ec("0x91")][Ec("0x140")][Ec("0x12c")](Ec("0xd1")),o=this[Ec("0x93")](t);if(this[Ec("0x110")]&&this[Ec("0x110")].updateSuggestion)if(o[Ec("0x135")]){const o=n[Ec("0xcc")](Qo(this.editor[Ec("0x31")],Ec("0x34")));this[Ec("0x110")][Ec("0x154")](t,e).then((()=>{n[Ec("0xe5")](o)}))}else o.on(Ec("0x69"),(()=>{this[Ec("0x45")](t,e)}))}[Ec("0x125")](t){if(!this[Ec("0x110")]||!this[Ec("0x110")][Ec("0x93")])throw new e.CKEditorError(Ec("0x165"),this);return this[Ec("0x110")].getSuggestion(t)}[Ec("0x98")](t){const{id:e,type:n,subType:o,authorId:r}=this[Ec("0x5")](t),i=this._suggestions[Ec("0x12c")](e)||this[Ec("0x5f")](n,o,e,r,{});switch(this[Ec("0x15f")](i,n,o,r),this[Ec("0x7c")][Ec("0x12c")](i)){case"notReady":this._getSuggestionData(e)[Ec("0xe0")]((t=>{let n=Promise[Ec("0xe2")]();t[Ec("0x2f")]&&(n=this._commentsRepository[Ec("0x4c")]({channelId:this[Ec("0x91")].config[Ec("0x12c")](Ec("0x2b")),threadId:e})),n.then((()=>{this[Ec("0xab")](t)[Ec("0x135")]=!0}))})),this[Ec("0x7c")][Ec("0x29")](i,Ec("0x74"));break;case Ec("0x5c"):this[Ec("0x45")](e,{state:Ec("0x170")});case Ec("0xc6"):this._suggestionState.set(i,"ready"),this[Ec("0xf3")](Ec("0x12d"),i);break;case"ready":this[Ec("0xf3")]("suggestionChanged",i)}return i[Ec("0x65")](t),i}[Ec("0xd2")](t){const e=Array.from(t),n=e[Ec("0x81")]((t=>"attribute"==t.type));this[Ec("0x90")](n);const o=e[Ec("0x81")]((t=>!t[Ec("0x1f")]&&Ec("0x70")!=t[Ec("0x2")])),r=this[Ec("0x39")]({skipNotAttached:!0})[Ec("0x81")]((t=>!t[Ec("0x1f")]&&"attribute"!=t.type)),i=r[Ec("0x81")]((e=>!t[Ec("0x63")](e))),s=new Map(r[Ec("0x111")]((t=>[t,this._suggestionFactory[Ec("0x52")](t[Ec("0x2")],t[Ec("0xfe")],Ec("0x77"))]))),x=new Map(r[Ec("0x111")]((t=>[t,t[Ec("0xd3")]()]))),a=new Set,c=new Set;for(let t=0;t<o[Ec("0x57")];t++)u(o[t],o,t+1);for(let t=0;t<o[Ec("0x57")];t++)u(o[t],i,0);const l=new Set;for(let t=0;t<o[Ec("0x57")];t++){const e=o[t];!c.has(e)&&e.previous&&(l[Ec("0xcc")](e[Ec("0x16b")]),e[Ec("0x16b")].next===e&&(e[Ec("0x16b")][Ec("0x155")]=null),e[Ec("0x16b")]=null),!a.has(e)&&e[Ec("0x155")]&&(l.add(e[Ec("0x155")]),e[Ec("0x155")][Ec("0x16b")]===e&&(e[Ec("0x155")][Ec("0x16b")]=null),e.next=null)}function u(t,e,n){for(let o=n;o<e[Ec("0x57")];o++){const n=d(t,e[o]);n&&(n[0][Ec("0x155")]=n[1],n[1].previous=n[0],a.add(n[0]),c.add(n[1]))}}function d(t,e){if(t[Ec("0xaf")].id!==e[Ec("0xaf")].id)return null;const n=s[Ec("0x12c")](t)(t,e,x[Ec("0x12c")](t),x[Ec("0x12c")](e));return n&&s.get(e)(t,e,x[Ec("0x12c")](t),x[Ec("0x12c")](e))?n[1][Ec("0x73")]&&n[1].commentThread[Ec("0x57")]?null:n:null}l[Ec("0x71")]&&this[Ec("0xd2")](l)}[Ec("0x90")](t){if(0==t.length)return;const e=this[Ec("0x39")]({skipNotAttached:!0})[Ec("0x81")]((t=>Ec("0x70")==t.type&&t[Ec("0x2a")])),n=[],o=new Map;for(const t of e){const e=(0,i.hashObject)(t.attributes);o[Ec("0x63")](e)||(o.set(e,n[Ec("0x57")]),n[Ec("0x143")]([]));const r=o[Ec("0x12c")](e);n[r][Ec("0x143")](t)}!function(){n[Ec("0x56")](((t,e)=>{const n=t[0][Ec("0x102")],o=e[0][Ec("0x102")];return n==o?t[0][Ec("0x62")][Ec("0x171")]<e[0][Ec("0x62")][Ec("0x171")]?-1:1:n<o?-1:1}));for(const t of n)t[Ec("0x56")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n.length;t++){if(0==n[t][Ec("0x57")])continue;const e=[];for(let o=t+1;o<n[Ec("0x57")];o++)0!=n[o][Ec("0x57")]&&r(n[t],n[o])&&e.push(o);for(const o of e)n[t]=n[t][Ec("0x15c")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[Ec("0x57")];e++)t[e][Ec("0x155")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[Ec("0x57")];e++)t[e][Ec("0x16b")]=t[e-1]||null;function r(t,e){if(t[0][Ec("0xaf")]!==e[0][Ec("0xaf")])return!1;if(n=t[0],o=e[0],(n[Ec("0x2f")]||o.hasComments)&&(n[Ec("0x2f")]&&o.hasComments||!(n[Ec("0x2f")]&&o[Ec("0x102")]<n.commentThread[Ec("0xa9")].get(0)[Ec("0x102")]||o[Ec("0x2f")]&&n.createdAt<o[Ec("0x73")][Ec("0xa9")][Ec("0x12c")](0).createdAt)))return!1;var n,o;const r=mc(t[0][Ec("0x62")],Ec("0x171")),i=mc(e[0][Ec("0x62")],Ec("0x171"));return!!Go(r,i)&&(!!t.every((t=>e[Ec("0x124")]((e=>t[Ec("0xd3")]().isEqual(e[Ec("0xd3")]())))))&&e.every((e=>t[Ec("0x124")]((t=>e.getFirstRange()[Ec("0x106")](t[Ec("0xd3")]()))))))}}[Ec("0x59")](t){const e=Array[Ec("0xe4")](t),n=this[Ec("0x39")]({skipNotAttached:!0}),o=n.filter((e=>!t[Ec("0x63")](e))),r=new Map(e[Ec("0x111")]((t=>[t,this[Ec("0xb5")][Ec("0x52")](t.type,t[Ec("0xfe")],Ec("0x164"))]))),i=new Map(n[Ec("0x111")]((t=>[t,t[Ec("0x9")]()])));for(let t=0;t<e[Ec("0x57")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[Ec("0x57")];t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n.length;s++){const o=n[s];if(o[Ec("0x2")]!==e[Ec("0x2")]||o[Ec("0xaf")].id!==e[Ec("0xaf")].id||o[Ec("0xfe")]!==e[Ec("0xfe")])continue;if(!vc(e,o))continue;if(Ec("0x70")==e[Ec("0x2")]&&e[Ec("0x17e")].oldValue!=o[Ec("0x17e")][Ec("0x6c")])continue;if(Ec("0x70")==e[Ec("0x2")]&&t[Ec("0x15")](e[Ec("0x17e")].key))continue;if(Ec("0x11a")==e[Ec("0x2")]){const n=t[Ec("0x91")][Ec("0x13a")],o=e[Ec("0x15e")]();if(o&&(n[Ec("0x96")][Ec("0xcd")](o)||n[Ec("0x96")][Ec("0x108")](o)))continue}const x=r.get(e),a=i[Ec("0x12c")](e),c=i.get(o),l=e.commentThread&&e[Ec("0x73")][Ec("0x57")],u=o.commentThread&&o[Ec("0x73")][Ec("0x57")];if(!l&&x(c,a))return t[Ec("0x1a")](o,e),i.delete(e),!0;if(!u&&x(a,c))return t[Ec("0x1a")](e,o),i[Ec("0xa6")](o),!0}return!1}}[Ec("0x1a")](t,e){if(t[Ec("0x1f")])for(const n of e.getRanges())t[Ec("0x150")](n);else{const n=e.getFirstRange().end;this[Ec("0x7b")](t,this[Ec("0xdc")][Ec("0xe3")](t.getFirstRange()[Ec("0x25")],n))}e[Ec("0x10b")]()}_getMarkerAnnouncementText(t,e){const n=t[Ec("0xa7")](Ec("0xe7"))||t.startsWith(Ec("0x70"))?Ec("0x50"):t[Ec("0x138")]();return Qo(this.editor[Ec("0x31")],e+"_"+n+"_SUGGESTION_ANNOUNCEMENT")}[Ec("0x48")](){const t=this[Ec("0x91")];(0,i.surroundingMarkersDetector)(this._model,(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[Ec("0x5")](t.name);if(Ec("0x12e")===e){o.push(this[Ec("0x180")](n,Ec("0x15d")));break}}for(const t of n){const{group:e,type:n}=this[Ec("0x5")](t[Ec("0x115")]);if(Ec("0x12e")===e){o[Ec("0x143")](this[Ec("0x180")](n,Ec("0xcb")));break}}o.length&&t.ui[Ec("0x17")].announce(Ec("0x5d"),o[Ec("0x164")](" "))}))}_processAttributeChanges(t){if(null!==this._recordAttributeSuggestionsFromVersion)return!1;const e=this[Ec("0x91")],n=e.model[Ec("0x129")][Ec("0x121")][Ec("0x94")]();if(0==n[Ec("0x57")])return!1;const o=[],r=n[Ec("0x81")]((t=>Ec("0x70")==t[Ec("0x2")])),i=n[Ec("0x81")]((t=>"insert"==t.type&&"$text"!=t[Ec("0x115")])),s=n[Ec("0x81")]((t=>Ec("0xe5")==t[Ec("0x2")]&&Ec("0x103")!=t.name));for(const t of r)o.push({key:t[Ec("0x38")],newValue:t[Ec("0x55")],oldValue:t[Ec("0xa8")],range:(x=t[Ec("0x19")],null==x.end[Ec("0x16f")]&&x[Ec("0xba")][Ec("0x156")]==x.start[Ec("0xd9")]?Sc(x.start.nodeAfter,e[Ec("0x13a")]):x)});var x;for(const t of i){const n=s[Ec("0x162")]((e=>e[Ec("0xaa")][Ec("0x106")](t[Ec("0xaa")])));n&&o[Ec("0x143")]({key:Ec("0xc1"),newValue:t[Ec("0x115")],oldValue:n[Ec("0x115")],range:e[Ec("0x13a")][Ec("0x22")](t[Ec("0xaa")][Ec("0xd9")])})}return 0!=o.length&&this[Ec("0xce")](t,o)}_processAttributeSuggestions(t){let e=!1;const n=this[Ec("0x91")].model[Ec("0x129")][Ec("0x121")][Ec("0x133")]()[Ec("0x81")]((t=>t[Ec("0x17e")][Ec("0x142")]&&t[Ec("0x115")][Ec("0xa7")](Ec("0x153"))));for(const o of n){const{subType:n,id:r}=this._splitMarkerName(o.name),i=n[Ec("0x8b")]("|")[0];for(const n of this[Ec("0x39")]({skipNotAttached:!0}))n.id!=r&&"attribute"==n[Ec("0x2")]&&n[Ec("0x17e")]&&n[Ec("0x17e")][Ec("0xd8")]==i&&n[Ec("0xd3")]()[Ec("0x146")](o[Ec("0x17e")].newRange)&&(this._reduceSuggestionAttributeRange(n,o[Ec("0x17e")][Ec("0x142")],t),e=!0)}return e}[Ec("0xb4")](t){if(null!==this[Ec("0x147")])return void t();const n=this.editor;this._recordAttributeSuggestionsFromVersion=n.model[Ec("0x129")][Ec("0x13d")],t();const o=new Map;for(const t of n[Ec("0x13a")].document[Ec("0x10d")].getOperations(this._recordAttributeSuggestionsFromVersion))if(["rename",Ec("0x2d"),"removeAttribute",Ec("0x61")][Ec("0x144")](t[Ec("0x2")])){const e=t[Ec("0xcf")],n=o.get(e)||[];n.push(t),o.set(e,n)}this[Ec("0x147")]=null;for(const[t,r]of o){const o=(0,e.uid)();n[Ec("0x13a")][Ec("0x128")](t,(t=>{const e=[];for(const t of r){let r,i,s,x;if(Ec("0x30")==t[Ec("0x2")]){const e=t;r=Sc(e.position[Ec("0xd9")],n[Ec("0x13a")]),i=Ec("0xc1"),s=e[Ec("0x179")],x=e[Ec("0x4b")]}else{const e=t,o=this._isBlockAttribute(e[Ec("0xd8")]),a=this[Ec("0xec")][Ec("0x63")](e[Ec("0xd8")]);if(!o&&!a)continue;r=o?Sc(e.range[Ec("0x25")][Ec("0xd9")],n[Ec("0x13a")]):e[Ec("0x19")],i=e.key,s=Ec("0xc3")==t.type?void 0:e[Ec("0x3e")],x=e[Ec("0x6c")]}this[Ec("0x58")](r,i,x,s,{groupId:o}),e[Ec("0x143")]({range:r,key:i,newValue:s,oldValue:x})}this[Ec("0xce")](t,e)}))}}[Ec("0xce")](t,e){if(0==e[Ec("0x57")])return!1;let n=!1;for(const o of e){const e=this[Ec("0x4e")](o[Ec("0x19")],Ec("0x70")).filter((t=>!t[Ec("0x13b")].isNextTo)).map((t=>t[Ec("0x12e")])),r=(0,i.hashObject)({newValue:o[Ec("0x3e")]});e[Ec("0x81")]((t=>{const[e,n]=t[Ec("0xfe")][Ec("0x8b")]("|");return e==o[Ec("0xd8")]&&n!=r}))[Ec("0xd5")]((e=>{this[Ec("0xf8")](e,o[Ec("0x19")],t),n=!0}))}return n}[Ec("0xf8")](t,e,n){const o=t[Ec("0xd3")]()[Ec("0x141")](e);0!==o[Ec("0x57")]?1!==o.length?this[Ec("0xee")](t,e[Ec("0x25")],e.end):this[Ec("0x7b")](t,o[0]):n[Ec("0x100")](t[Ec("0x43")]())}}class yc{constructor(t){this[Ec("0x10a")]=t,this[Ec("0xdc")]=t[Ec("0x13a")],this[Ec("0x78")]=new Map,this._defaultCallbacks=new Map,this[Ec("0xe8")]()}buildSuggestion(t,e,n,o,r,i){return new Jo(this[Ec("0xdc")],{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:i,onAccept:(...n)=>this[Ec("0x52")](t,e,"accept")(...n),onDiscard:(...n)=>this[Ec("0x52")](t,e,"discard")(...n)})}[Ec("0x151")](t,e,n,o){const r=t+":"+e+":"+n;this[Ec("0x78")][Ec("0x29")](r,o)}[Ec("0x52")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[Ec("0x12c")](o)||this[Ec("0xf9")][Ec("0x12c")](t+":"+n)}[Ec("0xe8")](){const t=()=>!1,e=t=>{t[Ec("0x56")](((t,e)=>t.start[Ec("0x10c")](e[Ec("0x25")])?1:-1)),this[Ec("0xdc")][Ec("0xf7")]((e=>{for(const n of t){let t;t=n[Ec("0xba")][Ec("0xca")]&&n[Ec("0xba")].parent==n.start[Ec("0xd9")]?e[Ec("0x105")](n[Ec("0x25")][Ec("0xd9")],"on"):e[Ec("0x105")](n),this[Ec("0xdc")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model[Ec("0xf7")]((n=>{const{commandName:o,commandParams:r=[]}=e,i=t[Ec("0x111")]((t=>(Ac(t)&&(t=this._model[Ec("0xe3")](t.end)),t)))[Ec("0x81")]((t=>Ec("0x5a")!==t[Ec("0x82")][Ec("0x11f")]));if(i[Ec("0x57")]<1)return;const x=Array.from(this[Ec("0xdc")][Ec("0x129")].selection.getRanges())[Ec("0x111")]((t=>s.LiveRange[Ec("0x8d")](t)));n[Ec("0x6")](i);for(const t of this[Ec("0x10a")][Ec("0x40")][Ec("0x40")]())t[Ec("0x27")]();r[Ec("0x143")]({forceDefaultExecution:!0}),this[Ec("0x10a")][Ec("0x2e")](o,...r);const a=x.filter((t=>Ec("0x5a")!=t.root[Ec("0x11f")]));a[Ec("0x57")]>0&&n[Ec("0x6")](a);for(const t of x)t[Ec("0xc9")]()}))},o=(t,e)=>1==t[Ec("0x57")]&&1==e[Ec("0x57")]&&t[0].end.isEqual(e[0][Ec("0x25")]),r=(t,e,n,o)=>Nc(t,e,n,o,this[Ec("0xdc")])?[t,e]:Nc(e,t,o,n,this[Ec("0xdc")])?[e,t]:null;this[Ec("0xf9")].set(Ec("0xdf"),t),this._defaultCallbacks[Ec("0x29")](Ec("0x119"),e),this[Ec("0xf9")].set("insertion:join",o),this[Ec("0xf9")][Ec("0x29")]("insertion:chain",r),this._defaultCallbacks[Ec("0x29")](Ec("0x3b"),e),this[Ec("0xf9")].set(Ec("0xc5"),t),this._defaultCallbacks.set("deletion:join",o),this._defaultCallbacks.set("deletion:chain",r),this[Ec("0xf9")][Ec("0x29")]("formatInline:accept",n),this[Ec("0xf9")].set(Ec("0xa3"),t),this[Ec("0xf9")].set("formatInline:join",o),this[Ec("0xf9")][Ec("0x29")](Ec("0xf2"),t),this[Ec("0xf9")][Ec("0x29")]("formatBlock:accept",n),this[Ec("0xf9")][Ec("0x29")](Ec("0x14c"),t),this._defaultCallbacks[Ec("0x29")](Ec("0xc4"),o),this._defaultCallbacks[Ec("0x29")](Ec("0x21"),t),this[Ec("0xf9")][Ec("0x29")](Ec("0xa0"),t),this._defaultCallbacks[Ec("0x29")](Ec("0xbf"),((t,e)=>{if(!e)return;const n=this._editor[Ec("0x140")][Ec("0x12c")](Tc);this[Ec("0xdc")].change((o=>{if(Ec("0xc1")==e[Ec("0xd8")])for(const n of t){const t=n[Ec("0x25")].nodeAfter,r=e.oldValue;o[Ec("0x30")](t,r)}else if(n[Ec("0x15")](e[Ec("0xd8")]))for(const n of t)void 0!==e[Ec("0x6c")]?o[Ec("0x51")](e.key,e.oldValue,n[Ec("0x25")].nodeAfter):o[Ec("0xc3")](e.key,n[Ec("0x25")].nodeAfter);else for(const n of t)e.oldValue?o[Ec("0x51")](e[Ec("0xd8")],e.oldValue,n):o[Ec("0xc3")](e[Ec("0xd8")],n)}))})),this._defaultCallbacks.set(Ec("0x3d"),o)}}function Cc(t,e,n){for(const o of e.parent[Ec("0x67")]({includeSelf:!0,parentFirst:!0})){if(o[Ec("0x82")]==o)return!1;if(!n.containsItem(o))return!1;if(t[Ec("0xcd")](o)||t[Ec("0x108")](o))return!0}return!1}function Ac(t){return t[Ec("0xba")][Ec("0x156")]==t[Ec("0x25")][Ec("0xd9")]&&t[Ec("0xba")][Ec("0x37")]}function kc(t,e,n,o){const r=t=>!t.item.is("$textProxy")&&!o[Ec("0xcd")](t.item),i=t[Ec("0x25")][Ec("0x3a")](r),s=t[Ec("0xba")].getLastMatchingPosition(r,{direction:"backward"});return!(t[Ec("0x25")][Ec("0x106")](i)&&t.end[Ec("0x106")](s)||(i.isBefore(s)?n.updateMarker(e,{range:n[Ec("0xe3")](i,s)}):n[Ec("0x100")](e),0))}function Ic(t){return(0,i.hashObject)(t)}function Rc(t){const e=t[Ec("0x25")][Ec("0xd9")];return e&&e.is("element")}function Sc(t,e){const n=e[Ec("0x96")][Ec("0xcd")](t)||e.schema[Ec("0x174")](t);return e.createRange(e[Ec("0xa1")](t,Ec("0x79")),n?e[Ec("0x116")](t):e[Ec("0xa1")](t,Ec("0xba")))}function Nc(t,e,n,o,r){if(!vc(t,e))return!1;if(n[Ec("0xba")][Ec("0x106")](o[Ec("0x25")]))return!0;if(t.type!=e.type)return!1;if(!n[Ec("0xba")][Ec("0xc")](o[Ec("0x25")]))return!1;const i=r[Ec("0xe3")](n.end,o[Ec("0x25")]).getWalker();for(const t of i)if([Ec("0x8a"),"elementEnd"][Ec("0x144")](t[Ec("0x2")])&&r.schema.isLimit(t[Ec("0x7d")]))return!1;return!0}function vc(t,e){return!(!t._isDataLoaded||!e[Ec("0x2a")])&&Go(t[Ec("0x62")],e[Ec("0x62")])}function Lc(t,e){const n=Mc(t.attributes),o=Mc(e);if(!t._isDataLoaded)return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function Mc(t){const e=Object[Ec("0x16a")]({},t);return delete e[Ec("0xe")],delete e[Ec("0x17c")],e}function wc(t){return Ec("0x70")==t.type?t[Ec("0xfe")][Ec("0x8b")]("|")[0]:null}const Oc=["commentThreadController","execute","destroy","plugins","isEnabled","acceptSuggestion","discardSuggestion","unbind","remove","add","_pendingAction","_editor","_removePendingAction","isDirty","canDiscard","canEditAt","_setPendingAction","PendingActions","commands","bind","_acceptCommand","_discardCommand","stopListening","change:isDirty","canAccept","listenTo","view","PENDING_ACTION_SUGGESTION","model","getRanges"];var Fc,Dc;Fc=Oc,Dc=168,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Bc=function(t,e){return Oc[t-=0]};class Pc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Bc("0xa")]=e,this[Bc("0x8")]=n,this[Bc("0xc")]=o,this[Bc("0x17")]=t,this[Bc("0x2")]=t[Bc("0x0")].get(Bc("0x11")),this._discardCommand=t[Bc("0x0")].get(Bc("0x12")),this[Bc("0x8")][Bc("0x1")](Bc("0x10")).to(this[Bc("0x2")],this[Bc("0x3")],((t,e)=>t||e)),this[Bc("0x8")].bind(Bc("0x6")).to(this._acceptCommand,"isEnabled",(t=>t&&this[Bc("0x17")].model[Bc("0x1b")](e.getRanges()))),this[Bc("0x8")][Bc("0x1")]("canDiscard").to(this[Bc("0x3")],Bc("0x10"),(t=>t&&this._editor[Bc("0xa")].canEditAt(e[Bc("0xb")]()))),this[Bc("0x16")]=null,n[Bc("0x19")]&&this[Bc("0x1c")](),this[Bc("0x7")](n,Bc("0x11"),(()=>this[Bc("0x11")]())),this[Bc("0x7")](n,Bc("0x12"),(()=>this[Bc("0x12")]())),this[Bc("0x7")](n,Bc("0x5"),(()=>{n.isDirty?this._setPendingAction():this[Bc("0x18")]()}))}[Bc("0x11")](){this[Bc("0x2")][Bc("0xd")](this.model.id)}[Bc("0x12")](){this[Bc("0x3")].execute(this[Bc("0xa")].id)}[Bc("0xe")](){this[Bc("0x8")][Bc("0x13")](Bc("0x10")),this.view[Bc("0x13")](Bc("0x6")),this.view[Bc("0x13")](Bc("0x1a")),this[Bc("0x4")](),this.commentThreadController[Bc("0xe")](),this[Bc("0x16")]&&this._removePendingAction()}[Bc("0x1c")](){const t=Qo(this[Bc("0x17")].locale,Bc("0x9"));this[Bc("0x16")]=this._editor[Bc("0xf")].get(Bc("0x1d"))[Bc("0x15")](t)}_removePendingAction(){null!==this[Bc("0x16")]&&this[Bc("0x17")][Bc("0xf")].get(Bc("0x1d"))[Bc("0x14")](this[Bc("0x16")]),this[Bc("0x16")]=null}}const Uc=["locale","assign","_localUser","disabledSubmit","element","isReadOnly","_createCommentViews","destroy","authoredAt","editor","_config","commentInputView","length","commentsListView","showInput","fire","isEnabled","setData","canAccept","cancel","bind","canDiscard","hasDirtyComment","delegate","isActive","addComment","CommentView","commentThread","submit","removeComment","_model","editorConfig","set","value","commentThreadInputView","focus","_createCommentThreadInputView"];var jc,Gc;jc=Uc,Gc=399,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Vc=function(t,e){return Uc[t-=0]};class Hc extends r.View{constructor(t,e,n,o){super(t),this[Vc("0x15")]=null,this[Vc("0x5")]=null,this[Vc("0x3")](Vc("0x20"),!1),this[Vc("0x3")]("authoredAt",e[Vc("0x10")]),this.bind(Vc("0x10")).to(e),this.set("descriptionParts",[]),this[Vc("0x3")]("isDirty",!1),this[Vc("0x3")](Vc("0x18"),!1),this[Vc("0x3")](Vc("0x1a"),!1),this.set(Vc("0x1d"),!1),this._model=e,this[Vc("0xa")]=n,this[Vc("0x12")]=o,o.disableComments?this.set(Vc("0x14"),1):this[Vc("0xe")]()}focus(){this[Vc("0xc")][Vc("0x6")]()}[Vc("0xf")](){this[Vc("0x15")]&&this[Vc("0x15")][Vc("0xf")](),this[Vc("0x5")]&&this[Vc("0x5")][Vc("0xf")](),super[Vc("0xf")]()}[Vc("0xe")](){const{CommentsListView:t}=this[Vc("0x12")];this[Vc("0x15")]=new t(this[Vc("0x8")],this[Vc("0x1")][Vc("0x23")],Object[Vc("0x9")]({CommentView:this[Vc("0x12")][Vc("0x22")]},this[Vc("0x12")])),this[Vc("0x15")][Vc("0x1f")]("removeComment").to(this),this[Vc("0x15")][Vc("0x1f")]("updateComment").to(this),this.commentsListView[Vc("0x1c")](Vc("0x20")).to(this),this[Vc("0x3")](Vc("0x14"),this[Vc("0x15")][Vc("0x14")]+1),this[Vc("0x1c")](Vc("0x14")).to(this[Vc("0x15")],Vc("0x14"),(t=>t+1)),this[Vc("0x5")]=this[Vc("0x7")](),this.on(Vc("0x0"),(()=>this[Vc("0x6")]())),this[Vc("0x1c")]("isDirty").to(this[Vc("0x15")],Vc("0x1e"),this[Vc("0x5")].commentInputView,Vc("0x4"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[Vc("0x12")],e=new t(this[Vc("0x8")],this[Vc("0xa")],this[Vc("0x12")][Vc("0x2")]),n=e[Vc("0x13")];return e[Vc("0x1c")](Vc("0x16")).to(this,Vc("0x20"),this._model[Vc("0x23")],Vc("0xd"),n,Vc("0x4"),((t,e,n)=>!!n||t&&!e)),n.on(Vc("0x24"),((t,e)=>{this[Vc("0x17")](Vc("0x21"),e),n[Vc("0x11")][Vc("0x19")]("")})),n.on(Vc("0x1b"),(()=>this[Vc("0x6")]())),n[Vc("0x1c")](Vc("0xb")).to(this[Vc("0x1")][Vc("0x23")],Vc("0xd")),e}}const zc=["innerHTML","name","bind","ck-suggestion__user","span","</span>",'<span class="ck-suggestion-color" style="background-color: ',"EXTERNAL_SUGGESTION","_model","Discard suggestion","render","editorReady","set","time","disableComments","importWord","authoredAt","cancel","fire","ck-annotation__actions","</p>","getTemplate","ck-comment__info-time","change:description","element","commentsListView","ck-annotation__info-time","ck-annotation__content-wrapper","ck-suggestion-wrapper","EXTERNAL_IMPORT_WORD_SUGGESTION","_descriptionElement","isEnabled","join","@external","setTemplate","discardButton","isActive","delegate","locale","creator","ck-comment__external","source","EXTERNAL_IMPORT_WORD_AVATAR","extendTemplate","isExternal","userView","type","ck-suggestion__actions","createElement","<p>","Accept suggestion","push",'<span class="ck-suggestion-type">',"editorDestroyed","ck-suggestion--disabled-comments","div","description","bindTemplate","commentThreadInputView","execute","descriptionParts","title","formatDateTime","split","value","children","ck-annotation__main","attributes","getUserViewNotificationText","ck-suggestion--discard","_config","ck-suggestion__main","canAccept",'"></span>',"ck-suggestion--accept","EXTERNAL_AVATAR","acceptButton",".ck-annotation__content-wrapper","author","getExternalSuggestionNote","_createButton","check","color"];var Wc,Kc;Wc=zc,Kc=215,function(t){for(;--t;)Wc.push(Wc.shift())}(++Kc);const qc=function(t,e){return zc[t-=0]};class $c extends Hc{constructor(e,n,o,r){super(e,n,o,r),this[qc("0x2e")](qc("0x50"),""),this[qc("0x24")](qc("0x50")).to(this,qc("0xb"),(t=>t&&t[0]?t[0][qc("0x50")]:"")),this[qc("0x24")](qc("0x7")).to(this,qc("0xb"),this,qc("0x46"),((t,e)=>{let n="";for(const e of t)n+=qc("0x0")+Xc(e.content,e[qc("0x21")])+qc("0x36");return e?n:(0,i.trimHtml)(n,{limit:140})})),this[qc("0x40")]=null,this.acceptButton=this[qc("0x1f")](Qo(e,qc("0x1")),t.icons[qc("0x20")],qc("0x19"),"acceptSuggestion","sw"),this[qc("0x1b")][qc("0x24")]("isEnabled").to(this,qc("0x17")),this[qc("0x45")]=this[qc("0x1f")](Qo(e,qc("0x2b")),t.icons[qc("0x33")],qc("0x14"),"discardSuggestion","sw"),this.discardButton.bind(qc("0x41")).to(this,"canDiscard"),this.userView=new i.UserView(e,this[qc("0x2a")][qc("0x1d")],this[qc("0x13")]()),this.userView[qc("0x4d")]({attributes:{class:[qc("0x25"),"ck-annotation__user"]}}),this[qc("0x44")](this[qc("0x37")]())}getTemplate(){const t=this[qc("0x8")],e=[{tag:qc("0x6"),attributes:{class:["ck-suggestion__info","ck-annotation__info"]},children:[{tag:"span",children:[{text:this[qc("0x4f")][qc("0x23")]}],attributes:{class:["ck-suggestion__info-name","ck-annotation__info-name"]}},{tag:qc("0x2f"),attributes:{datetime:t.to(qc("0x32")),class:[qc("0x38"),qc("0x3c")]},children:[{text:t.to(qc("0x32"),(t=>this[qc("0x15")][qc("0xd")](t)))}]}]},{tag:"div",attributes:{class:[qc("0x51"),qc("0x35")]},children:[this[qc("0x1b")],this.discardButton]},{tag:qc("0x6"),attributes:{class:[qc("0x3d")]}}];this._model[qc("0x4e")]&&e[qc("0x2")]({tag:qc("0x6"),attributes:{class:[qc("0x4a")]},children:[{text:this[qc("0x1e")]()}]});const n={tag:qc("0x6"),attributes:{class:[qc("0x3e"),t.if(qc("0x46"),"ck-suggestion-wrapper--active"),t.to("type",(t=>"ck-suggestion-"+t)),this[qc("0x15")][qc("0x30")]&&qc("0x5")],"data-suggestion-id":this._model.id,"data-thread-id":this[qc("0x2a")].commentThread.id,"data-author-id":this._model.author.id,tabindex:-1},children:[{tag:qc("0x6"),attributes:{class:["ck-suggestion","ck-annotation"]},children:[this.userView,{tag:qc("0x6"),attributes:{class:[qc("0x16"),qc("0x11")]},children:e}]}]};return this.commentsListView&&this[qc("0x9")]&&(n[qc("0x10")][qc("0x2")](this[qc("0x3b")],this[qc("0x9")]),this[qc("0x3b")].delegate("editorReady").to(this),this.commentsListView[qc("0x47")](qc("0x4")).to(this),this[qc("0x9")][qc("0x47")](qc("0x2d")).to(this),this[qc("0x9")][qc("0x47")](qc("0x4")).to(this)),n}[qc("0x2c")](){super[qc("0x2c")](),this[qc("0x40")]=this[qc("0x3a")].querySelector(qc("0x1c")),this[qc("0x40")][qc("0x22")]=this[qc("0x7")],this.on(qc("0x39"),((t,e,n)=>{this[qc("0x40")][qc("0x22")]=n}))}[qc("0x1f")](t,e,n,o,i){const s=new r.ButtonView(this[qc("0x48")]);return s[qc("0x2e")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s[qc("0x4d")]({attributes:{class:n}}),s.on(qc("0xa"),(()=>{this[qc("0x34")](o,this[qc("0x2a")].id)})),s}getExternalSuggestionNote(){return qc("0x31")===this[qc("0x2a")].attributes["@external"][qc("0x4b")]?Qo(this[qc("0x48")],qc("0x3f")):Qo(this[qc("0x48")],qc("0x29"))}[qc("0x13")](){return this[qc("0x2a")].isExternal?qc("0x31")===this[qc("0x2a")][qc("0x12")][qc("0x43")].source?Qo(this.locale,qc("0x4c"),this[qc("0x2a")][qc("0x49")][qc("0x23")]):Qo(this[qc("0x48")],qc("0x1a"),this[qc("0x2a")][qc("0x49")][qc("0x23")]):null}}function Xc(t,e){let n="";return n+=t[qc("0xe")]("*").map(((t,e)=>e%2!=0?qc("0x3")+Zc(t)+qc("0x27"):Zc(t)))[qc("0x42")](""),e&&(n+=qc("0x28")+e[qc("0xf")]+'" title="'+e[qc("0xc")]+qc("0x18")),n}function Zc(t){const e=document[qc("0x52")](qc("0x26"));return e.innerText=t,e[qc("0x22")]}const Yc=["config","execute","getDescriptions","pluginName","getAllAdjacentSuggestions","activeAnnotations","values","TrackChangesEditing","locale","commandName","getFirstRange","_updateController","addSourceCollector","change:activeAnnotations","length","discardAllSuggestions","button","push","isEnabled","CommentsUI","comments","add","_destroyController","bind","registerAnnotation","_handleControllerBuffer","_disableComments","view","Accept all suggestions","SuggestionThreadView","comments.maxCommentCharsWhenCollapsed","isOn","getByInnerView","_annotationViews","model","Discard all selected suggestions","_initializeController","_viewToController","editing","head","suggestionLoaded","suggestion-","delete","_descriptionFactory","source","value","get","CommentsRepository","TrackChangesUI","mainView","comments.maxCommentsWhenCollapsed","Accept all selected suggestions","focus","_bindAnnotationToEditors","separator","discardButton","keys","descriptionParts","remove","isDirty","comments.maxThreadTotalWeight","actionView","buttonView","addComment","Annotations","getSuggestion","componentFactory","type","set","reduce","Track changes","define","innerView","listenTo","trackChanges","arrowView","EditorAnnotations","commands","getMarkerNames","hasSuggestion","isInContent","size","trackChanges.disableComments","change:previous","stopListening","some","_handleSuggestionControllerDelayed","has","init","lowest","acceptButton","_createUIButton","getJoined","requires","unbind","getMarkers","Discard all suggestions","CommentView","acceptSelectedSuggestions","from","_refreshActiveMarkers","map","createCommentThreadController","switchbutton","suggestionUnloaded","clear","_suggestionToController","editor","plugins","destroy"];var Jc,Qc;Jc=Yc,Qc=374,function(t){for(;--t;)Jc.push(Jc.shift())}(++Qc);const tl=function(t,e){return Yc[t-=0]};class el extends t.Plugin{static get[tl("0x31")](){return[Tc,i.Users,tl("0x3"),tl("0x14"),tl("0x20")]}static get[tl("0x45")](){return tl("0x4")}constructor(t){super(t),this[tl("0x3e")]=new Map,this[tl("0x67")]=new Map,this._annotationViews=new Map,this[tl("0x5b")]=new Map;const e=this.editor[tl("0x42")];e.define("trackChanges.SuggestionThreadView",$c),e[tl("0x1b")](tl("0x26"),!1),this[tl("0x5c")]=e[tl("0x2")](tl("0x26"))}[tl("0x2a")](t,e){0===this[tl("0x5b")][tl("0x25")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this._suggestionToController.has(t);n||e?n&&e&&this[tl("0x58")](t):this[tl("0x66")](t)}this[tl("0x3f")][tl("0x40")][tl("0x2")](tl("0x20")).refreshSelectedViews(),this[tl("0x38")](),this._handleControllerBuffer[tl("0x3d")]()}),10),this[tl("0x5b")].set(t,e)}[tl("0x2c")](){const t=this[tl("0x3f")],e=t[tl("0x40")].get(tl("0x49")),n=t[tl("0x40")].get("Annotations"),o=t[tl("0x40")][tl("0x2")]("EditorAnnotations"),r=t.plugins[tl("0x2")](tl("0x3"));t.ui[tl("0x16")].add(tl("0x1e"),(t=>this._createUIButton(t))),o[tl("0x4e")]((()=>{const t=[];for(const[e,n]of Array[tl("0x37")](this._suggestionToController)){const o=e[tl("0x46")](),r=[];for(const t of o){if(!t.isInContent)continue;if(t.isMultiRange){r[tl("0x53")](...t.getRanges());continue}const e=t[tl("0x4c")]();if(r[tl("0x50")]>0){const t=r[0][tl("0x30")](e);if(t){r[0]=t;continue}}r[tl("0x53")](e)}t[tl("0x53")]([n.view,r])}return t})),this[tl("0x1d")](e,tl("0x6a"),((t,e)=>{this[tl("0x1d")](e,tl("0x27"),((t,n,o,r)=>{e.isInContent&&(null==o?(this[tl("0x4d")](r.head),this[tl("0x2a")](e,!1)):(this[tl("0x4d")](o.head),null==r&&this[tl("0x2a")](e,!0)))})),null!==e.previous?this[tl("0x4d")](e[tl("0x69")]):this[tl("0x2a")](e,!1)})),this[tl("0x1d")](e,tl("0x3c"),((t,e,n)=>{this[tl("0x28")](e,tl("0x27")),this[tl("0x5b")][tl("0x6c")](e),this._suggestionToController.has(e)&&this._destroyController(e),n&&this._updateController(n[tl("0x69")])})),this[tl("0x1d")](e,"suggestionChanged",((t,e)=>{this[tl("0x4d")](e)})),this[tl("0x1d")](n,tl("0x4f"),(()=>{this._refreshActiveMarkers()})),this[tl("0x1d")](r,tl("0x13"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[tl("0x23")](n))return;const r=e[tl("0x15")](n);this[tl("0x3e")][tl("0x2")](r).view[tl("0x8")]()}),{priority:tl("0x2d")})}[tl("0x38")](){const t=this.editor[tl("0x40")].get(tl("0x14")),e=this[tl("0x3f")][tl("0x40")][tl("0x2")]("TrackChangesEditing"),n=Array[tl("0x37")](t[tl("0x47")],(t=>t[tl("0x1c")])).filter((t=>this._viewToController[tl("0x2b")](t))),o=[];for(const t of n){const e=this[tl("0x67")][tl("0x2")](t)[tl("0x64")][tl("0x46")]();o[tl("0x53")](...e[tl("0x19")](((t,e)=>[...t,...e[tl("0x22")]()]),[]))}e.activeMarkers=o}[tl("0x2f")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[tl("0x3f")].commands[tl("0x2")](tl("0x1e")),i=Qo(t,tl("0x1a"));n[tl("0x12")][tl("0x18")]({tooltip:i,label:i,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-2023, 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[tl("0x12")].bind(tl("0x61")).to(o,tl("0x1")),n[tl("0x12")].on(tl("0x43"),(()=>{o[tl("0x43")](),this[tl("0x3f")][tl("0x68")][tl("0x5d")].focus()}));const s=new e.Collection,x=[{type:tl("0x3b"),model:{withText:!0,label:i,commandName:tl("0x1e")}},{type:tl("0xa")},{type:"button",model:{withText:!0,label:Qo(t,tl("0x5e")),commandName:"acceptAllSuggestions"}},{type:tl("0x52"),model:{withText:!0,label:Qo(t,tl("0x7")),commandName:tl("0x36")}},{type:"button",model:{withText:!0,label:Qo(t,tl("0x34")),commandName:tl("0x51")}},{type:tl("0x52"),model:{withText:!0,label:Qo(t,tl("0x65")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:tl("0xa")};if(t[tl("0x64")]){const n=new r.Model(t.model),o=this.editor[tl("0x21")].get(n.commandName);n[tl("0x59")]("isOn",tl("0x54")).to(o,tl("0x1"),tl("0x54")),e={type:t.type,model:n}}s[tl("0x57")](e)}(0,r.addListToDropdown)(n,s);const a=x.filter((t=>null!=t[tl("0x64")]))[tl("0x39")]((t=>this[tl("0x3f")][tl("0x21")][tl("0x2")](t[tl("0x64")][tl("0x4b")]))),c=n[tl("0x12")];return c[tl("0x11")].unbind(tl("0x54")),c[tl("0x1f")][tl("0x32")]("isEnabled"),c[tl("0x11")][tl("0x59")](tl("0x54")).to(o,tl("0x54")),c[tl("0x1f")].bind("isEnabled").toMany(a,tl("0x54"),((...t)=>t[tl("0x29")]((t=>t)))),n.on(tl("0x43"),(t=>{this[tl("0x3f")][tl("0x43")](t[tl("0x0")][tl("0x4b")]),this.editor[tl("0x68")][tl("0x5d")].focus()})),n}[tl("0x66")](t){const e=this[tl("0x3f")],n=e[tl("0x42")],o=e[tl("0x40")].get(tl("0x14")),r=e.plugins[tl("0x2")](tl("0x3")),s=e[tl("0x40")][tl("0x2")](tl("0x20")),x=e.plugins[tl("0x2")](i.Users).me,a=n[tl("0x2")](tl("0x1e"))[tl("0x5f")],{CommentsListView:c,CommentThreadInputView:l}=e[tl("0x40")][tl("0x2")](tl("0x55"));let u,d;this[tl("0x63")][tl("0x2b")](t.id)?(d=this[tl("0x63")][tl("0x2")](t.id),u=d[tl("0x5")]):(u=new a(e[tl("0x4a")],t,x,{disableComments:this[tl("0x5c")],editorConfig:n[tl("0x2")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[tl("0x2")](tl("0x6")),maxThreadTotalWeight:n[tl("0x2")](tl("0x10")),maxCommentCharsWhenCollapsed:n[tl("0x2")](tl("0x60")),formatDateTime:(0,i.getDateTimeFormatter)(n[tl("0x2")]("locale")),CommentView:n.get(tl("0x56"))[tl("0x35")],CommentsListView:c,CommentThreadInputView:l}),u[tl("0x2e")].on(tl("0x43"),(()=>{e[tl("0x68")][tl("0x5d")][tl("0x8")]()})),u[tl("0xb")].on(tl("0x43"),(()=>{e[tl("0x68")].view.focus()})),d=o.createAnnotationView(this[tl("0x3f")][tl("0x4a")],u),d[tl("0x59")](tl("0xf")).to(u,tl("0xf")),d.bind("length").to(u),d.bind(tl("0x17")).to(u,"type",(t=>"suggestion-"+t)),this[tl("0x63")].set(t.id,d));const g=r[tl("0x3a")](t.commentThread,u),f=new Pc(e,t,u,g),m=t[tl("0x46")]().filter((t=>t[tl("0x24")]));u[tl("0xd")]=e[tl("0x40")][tl("0x2")](tl("0x49"))[tl("0x6d")][tl("0x44")](m),this._suggestionToController[tl("0x18")](t,f),this._viewToController[tl("0x18")](u,f);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t[tl("0x46")]().filter((t=>t[tl("0x24")]));for(const t of o)n[tl("0x53")](...t[tl("0x33")]());return(0,i.getAllMarkersDomElementsSorted)(e[tl("0x68")],n)},type:()=>tl("0x6b")+f[tl("0x5d")].type});r[tl("0x9")](u,h),o[tl("0x57")](h),s[tl("0x5a")](h)}[tl("0x58")](t){const e=this[tl("0x3f")][tl("0x40")][tl("0x2")](tl("0x3")),n=this.editor.plugins[tl("0x2")](tl("0x14")),o=this[tl("0x3e")][tl("0x2")](t),r=o[tl("0x5d")],i=n[tl("0x62")](r);e._unbindEditors(r),i&&n[tl("0xe")](i),this[tl("0x3e")][tl("0x6c")](t),this[tl("0x67")][tl("0x6c")](r),o.destroy()}[tl("0x4d")](t){if(!t[tl("0x24")]||!this[tl("0x3e")].has(t))return;const e=this[tl("0x3f")][tl("0x40")][tl("0x2")](tl("0x49")),n=this[tl("0x3e")][tl("0x2")](t),o=t[tl("0x46")]();n[tl("0x5d")].descriptionParts=e[tl("0x6d")][tl("0x44")](o)}[tl("0x41")](){for(const t of this[tl("0x3e")][tl("0xc")]())this._destroyController(t);for(const t of this._annotationViews[tl("0x48")]())t[tl("0x5")][tl("0x41")]();super[tl("0x41")]()}}var nl,ol,rl=["adapter","editor","Comments","get","getSuggestion","addSuggestionData","pluginName","addSuggestion","TrackChanges","plugins"];nl=rl,ol=353,function(t){for(;--t;)nl.push(nl.shift())}(++ol);var il=function(t,e){return rl[t-=0]};class sl extends t.Plugin{static get requires(){return[Tc,el,il("0x9")]}static get[il("0x3")](){return il("0x5")}set[il("0x7")](t){this[il("0x8")].plugins[il("0x0")](Tc)[il("0x7")]=t}get[il("0x7")](){return this.editor.plugins.get(Tc)[il("0x7")]}[il("0x4")](t){return this[il("0x8")][il("0x6")][il("0x0")](Tc)[il("0x2")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[il("0x6")].get(Tc).getSuggestions({skipNotAttached:t,toJSON:e})}[il("0x1")](t){return this[il("0x8")].plugins.get(Tc)[il("0x1")](t)}}const xl=["result","pluginName","plugins","get","CommentsRepository","function","map","model","trackChangesData.editorCreator","getFullData","constructor","reduce","addUser","data","TrackChangesData","document","getDataWithAcceptedSuggestions","editor","Users","getRootsAttributes","users","getDataWithDiscardedSuggestions","end","addSuggestionData","push","getRootNames","create","_adapter","set","config","editorCreator","rootsAttributes","useAnonymousUser","name","init","getUser","requires","TrackChangesEditing","execute","define","Pagination"];var al,cl;al=xl,cl=437,function(t){for(;--t;)al.push(al.shift())}(++cl);const ll=function(t,e){return xl[t-=0]},ul=[ll("0xd")];class dl extends t.Plugin{static get[ll("0x9")](){return[Tc]}static get[ll("0xf")](){return ll("0x1c")}[ll("0x7")](){const t=this[ll("0x1f")];if(t[ll("0x2")][ll("0xc")](ll("0x16"),(e=>{const n=t[ll("0x15")][ll("0x1d")][ll("0x27")]()[ll("0x19")](((t,e)=>(t[e]="",t)),{});return t[ll("0x18")][ll("0x28")](n,e)})),ll("0x13")!=typeof t[ll("0x2")].get("trackChangesData")[ll("0x3")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[ll("0x1e")](t){return ml(this.editor,!0,t)}[ll("0x23")](t){return ml(this[ll("0x1f")],!1,t)}}class gl extends t.Plugin{static get[ll("0xf")](){return"TrackChangesDataGetter"}constructor(t){super(t),this[ll("0xe")]=ll("0x24")}[ll("0x7")](){this[ll("0x1f")][ll("0x10")][ll("0x11")](ll("0x12"))[ll("0x0")]={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.editor[ll("0x10")].get(ll("0xa"))[ll("0x0")]=null}}function fl(t){return void 0!==t[ll("0x21")]}async function ml(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,ul);o[ll("0x10")][ll("0x26")](Tc,gl),o[ll("0x4")]=fl(t)?t[ll("0x21")]():void 0;const r=document.createDocumentFragment(),s=t[ll("0x2")][ll("0x11")]("trackChangesData").editorCreator,x=await s(o,(()=>function(t){const e=document.createElement("div");return t.appendChild(e),e}(r)));!function(t,e){const n=t[ll("0x15")][ll("0x1d")].getRootNames()[ll("0x19")](((e,n)=>(e[n]=t.data[ll("0x11")]({rootName:n}),e)),{}),o=t.plugins[ll("0x11")](ll("0x20"))[ll("0x22")][ll("0x14")]((t=>({id:t.id,name:t[ll("0x6")]}))),r=t.plugins[ll("0x11")](ll("0xa")).getSuggestions({skipNotAttached:!0,toJSON:!0}),i=e[ll("0x10")][ll("0x11")](ll("0x20")),s=e.plugins[ll("0x11")]("TrackChangesEditing");for(const t of o)i[ll("0x8")](t.id)||i[ll("0x1a")](t);i.me||i[ll("0x5")]();for(const t of r)s[ll("0x25")](t);e[ll("0x1b")][ll("0x1")](n)}(t,x),x[ll("0xb")](e?"acceptAllSuggestions":"discardAllSuggestions");const a=fl(x)?x[ll("0x17")](n):x[ll("0x1b")].get(n);return await x.destroy(),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 i=e[o];if(void 0!==i)return i.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:()=>Hc,TrackChanges:()=>sl,TrackChangesData:()=>dl,TrackChangesEditing:()=>Tc});var t=n(704),e=n(209),i=n(273),r=n(417),s=n(492),x=n(995);const a=["isEnabled","forceDisabled","value","execute","refresh","_isEnabledBasedOnSelection","editor","clearForceDisabled","_enabledCommands","_disableUnsupportedCommands","commands","has","affectsData"];var c,l;c=a,l=280,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("0x1")]=e,this.value=!1,this.refresh(),this[u("0xb")]=!1}[u("0xa")](){this[u("0x6")]=!0}[u("0x9")](){this[u("0x8")]=!this[u("0x8")],this.value?this[u("0x2")]():this._enableCommands()}_disableUnsupportedCommands(){for(const t of this[u("0xc")][u("0x3")][u("0x3")]())t.affectsData&&!this[u("0x1")].has(t)&&t[u("0x7")]("TrackChangesCommand")}_enableCommands(){for(const t of this[u("0xc")].commands[u("0x3")]())t[u("0x5")]&&!this._enabledCommands[u("0x4")](t)&&t[u("0x0")]("TrackChangesCommand")}}const g=["editor","get","_suggestions","_isEnabledBasedOnSelection","acceptSuggestion","plugins","execute","canEditAt","refresh","getRanges","TrackChangesEditing"];var f,m;f=g,m=304,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[h("0x6")]=e,this[h("0x1")](),this[h("0x7")]=!1}[h("0x1")](){this.isEnabled=!0}[h("0xa")](t){const n=this[h("0x6")][h("0x5")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x2")]();this[h("0x4")].model[h("0x0")](o)&&this[h("0x4")][h("0x9")][h("0x5")](h("0x3"))[h("0x8")](n)}}const p=["execute","get","discardSuggestion","_suggestions","canEditAt","track-changes-discard-suggestion-not-found","_isEnabledBasedOnSelection","editor","getRanges","refresh","plugins","model"];var E,_;E=p,_=238,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return p[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0x5")]=e,this[T("0xb")](),this[T("0x8")]=!1}[T("0xb")](){this.isEnabled=!0}[T("0x2")](t){const n=this[T("0x5")].get(t);if(!n)throw new e.CKEditorError(T("0x7"),this);const o=n[T("0xa")]();this[T("0x9")][T("0x1")][T("0x6")](o)&&this[T("0x9")][T("0x0")][T("0x3")]("TrackChangesEditing")[T("0x4")](n)}}const C=["isInContent","change","type","isObject","isTouching","getRanges","sort","deletion","createPositionAt","isCollapsed","map","splice","execute","length","from","createRange","color","isIntersecting","createPositionAfter","push","createPositionBefore","replace","end"];var A,k;A=C,k=281,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0x1")](((t,e)=>I("0x2")==t[I("0x14")]&&I("0x2")!=e.type?-1:I("0x2")!=t.type&&"deletion"==e.type?1:0))}function S(t,e){let n,o=0;const i=[],r=e.schema;for(;o<t[I("0x8")];){const s=t[o],x=t[o+1];n||(n=e.createPositionBefore(s)),v(e,s,x)||(i[I("0xe")](e[I("0xa")](n,r[I("0x15")](s)?e[I("0xd")](s):e[I("0x3")](s,"end"))),n=null),o++}return i}function v(t,e,n){if(!n)return!1;const o=t[I("0xd")](e),i=t[I("0xf")](n);return o[I("0x16")](i)}function N(t,e,n){for(;n[I("0x8")];){const o=n[I("0x6")](0,100);t[I("0x13")]((()=>{for(const t of o)t[I("0x12")]&&e[I("0x7")](t.id)}))}}const L=["canEditAt","values","editor","from","_command","some","_isEnabledBasedOnSelection","isInContent","isEnabled","refresh","getRanges","model","_suggestions","execute"];var M,w;M=L,w=161,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0xb")]=e,this[O("0x5")]=n,this[O("0x2")](),this[O("0xd")]=!1}refresh(){const t=Array[O("0xa")](this[O("0x5")][O("0x8")]())[O("0xc")]((t=>t[O("0x0")]));this[O("0x1")]=this[O("0xb")].isEnabled&&t}[O("0x6")](){const t=R(Array[O("0xa")](this[O("0x5")][O("0x8")]()));for(const e of t){const t=e[O("0x3")]();if(!this[O("0x9")][O("0x4")][O("0x7")](t))return}N(this[O("0x9")][O("0x4")],this[O("0xb")],t)}}const D=["selection","getRanges","_suggestions","document","isEnabled","canEditAt","editor","_command","refresh","_selectedSuggestions","values","size","from","model"];var B,P;B=D,P=214,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this._command=e,this[U("0xc")]=n,this[U("0x5")]=new Set,this[U("0x4")](),this._isEnabledBasedOnSelection=!1}[U("0x4")](){const t=this[U("0x2")][U("0x9")][U("0xd")][U("0xa")],e=Array[U("0x8")](this._suggestions[U("0x6")]());this[U("0x5")]=function(t,e){const n=Array[I("0x9")](t[I("0x0")]()),o=new Set;for(const i of e)if(i[I("0x12")])for(const e of n)for(const n of i[I("0x0")]())(e[I("0xc")](n)||t[I("0x4")]&&!i.isMultiRange&&i.next&&n[I("0x11")].isTouching(e.start))&&o.add(i);return o}(t,e),this[U("0x0")]=this[U("0x3")][U("0x0")]&&!!this[U("0x5")][U("0x7")]}execute(){const t=R(Array[U("0x8")](this[U("0x5")]));for(const e of t){const t=e[U("0xb")]();if(!this[U("0x2")][U("0x9")][U("0x1")](t))return}N(this[U("0x2")].model,this[U("0x3")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(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=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=H(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=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=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 it=ot.Symbol;var rt=Object.prototype,st=rt.hasOwnProperty,xt=rt.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var i=xt.call(t);return o&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.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 ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(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 yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return St(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(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 Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=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 jt(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])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=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 Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=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=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;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=Nt(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 ie=function(t,e,n){var o=t[e];oe.call(t,e)&&V(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=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 fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,be=he&&he.exports===me?ot.Buffer:void 0;const pe=(be?be.isBuffer:void 0)||fe;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 ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===ke&&et.process;const Se=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var ve=Se&&Se.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),i=!n&&!o&&pe(t),r=!n&&!o&&!i&&Ne(t),s=n||o||i||r,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("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 Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&re(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&He.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,We(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,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}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),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return re(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(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:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=Nt(ot,"DataView");const fn=Nt(ot,"Promise");const mn=Nt(ot,"Set");const hn=Nt(ot,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=bn||fn&&Rn(fn.resolve())!=pn||mn&&Rn(new mn)!=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 yn:return Tn;case Cn:return bn;case An:return pn;case kn:return En;case In:return _n}return e});const Sn=Rn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(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=it?it.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=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 Un(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 Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,i,r,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,i,r,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=Sn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(pe(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!r){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return r?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(i){x.add(t(i,n,o,i,e,s))})):Kn(e)&&e.forEach((function(i,r){x.set(r,t(i,n,o,r,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(i,r){m&&(i=e[r=i]),ie(x,r,t(i,n,o,r,e,s))})),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)\]/,io=/^\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))||(io.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;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,i){e.push(o?i.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i};var go=it?it.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(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(!ft(t))return t;for(var i=-1,r=(e=bo(e,t)).length,s=r-1,x=t;null!=x&&++i<r;){var a=po(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(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 yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=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 Io=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,i,r){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&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 Ao:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,r):o(f,m,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||i(f,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!i(f,m,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 vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=it?it.prototype:void 0,Lo=No?No.valueOf:void 0;const Mo=function(t,e,n,o,i,r,s){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 Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+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=vo),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=Ro(x(t),x(e),o,i,r,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,i,r){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?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 f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var b=s?o(h,m,l,e,t,r):o(m,h,l,t,e,r);if(!(void 0===b?m===h||i(m,h,n,o,r):b)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){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]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,i,r){var s=ge(t),x=ge(e),a=s?Do:Sn(t),c=x?Do:Sn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&pe(t)){if(!pe(e))return!1;s=!0,l=!1}if(d&&!l)return r||(r=new Qt),s||Ne(t)?Ro(t,e,n,o,i,r):Mo(t,e,a,n,o,i,r);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return r||(r=new Qt),i(m,h,n,o,r)}}return!!d&&(r||(r=new Qt),Oo(t,e,n,o,i,r))};const jo=function t(e,n,o,i,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,i,t,r))};const Go=function(t,e){return jo(t,e)};const Vo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ho=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,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o<i;)r[o]=t[o+e];return r};const Wo=function(t,e){return e.length<2?t:Ho(t,zo(e,0,-1))};const Ko=function(t,e){return e=bo(e,t),null==(t=Wo(t,e))||delete t[po(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["substr","data","getFirstRange","_markerNames","onAttributesChange","_onAttributesChange","clear","getMultiRangeId","get","from","start","getFirstMarker","isIntersecting","hasComments","author","commentThread","isExternal","createdAt","delete","getMarkers","_onDiscard","getMarkerNames","authoredAt","change","length","size","add","isMultiRange","filter","removeMarkers","getRange","subType","addMarkerName","nodeAfter","decorate","type","set","removeAttribute","onDiscard","reduce","removeMarker","map","_model","attributes","_saved","head","getAllAdjacentSuggestions","next","suggestion:","getRanges","discard","getItems","_onAccept","onAccept","setAttribute","toJSON","previous","creator"];var $o,Zo;$o=Xo,Zo=417,function(t){for(;--t;)$o.push($o.shift())}(++Zo);const Yo=function(t,e){return Xo[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this._isDataLoaded=!1,this.id=e.id,this[Yo("0x18")]=e.type,this.subType=e.subType||null,this[Yo("0x3")]=e.author,this.creator=e[Yo("0x2e")]||e[Yo("0x3")],this[Yo("0x5")]=Boolean(e[Yo("0x20")]&&e[Yo("0x20")]["@external"]),this[Yo("0x30")]=null,this[Yo("0x1f")]=t,this[Yo("0x29")]=e[Yo("0x2a")],this[Yo("0x9")]=e[Yo("0x1b")],this._onAttributesChange=e[Yo("0x33")],this._markerNames=new Set,this[Yo("0x6")]=null,this[Yo("0x19")](Yo("0xb"),null),this[Yo("0x19")](Yo("0x20"),e.attributes||{}),this[Yo("0x19")]("previous",null),this[Yo("0x19")](Yo("0x24"),null),this[Yo("0x19")](Yo("0x4"),null),this[Yo("0x19")](Yo("0x21"),!1),this.decorate("accept"),this[Yo("0x17")](Yo("0x27"))}get[Yo("0x22")](){let t=this;for(;t[Yo("0x2d")];)t=t[Yo("0x2d")];return t}get[Yo("0x2")](){return!!this.commentThread&&this.commentThread[Yo("0xd")]>0}get[Yo("0x10")](){return 0!=this[Yo("0x32")][Yo("0xe")]&&6==Array[Yo("0x38")](this._markerNames)[0].split(":")[Yo("0xd")]}get isInContent(){return null!==this.getFirstMarker()}[Yo("0x15")](t){this[Yo("0x32")][Yo("0xf")](t)}[Yo("0xa")](){return Array.from(this[Yo("0x32")])}[Yo("0x8")](){return this[Yo("0xa")]()[Yo("0x1e")]((t=>this[Yo("0x1f")].markers[Yo("0x37")](t)))[Yo("0x11")]((t=>t))}[Yo("0x0")](){return this[Yo("0x8")]()[0]||null}[Yo("0x12")](){this[Yo("0x1f")][Yo("0xc")]((t=>{for(const e of this.getMarkers())t[Yo("0x1d")](e)})),this[Yo("0x32")][Yo("0x35")]()}[Yo("0x1d")](t){this[Yo("0x1f")][Yo("0xc")]((e=>{e[Yo("0x1d")](t)})),this._markerNames[Yo("0x7")](t)}addRange(t){const e=Yo("0x25")+this[Yo("0x18")]+":"+this.subType+":"+this.id+":"+this[Yo("0x2e")].id+":"+Jo[Yo("0x36")]();this[Yo("0x15")](e),this._model[Yo("0xc")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Yo("0x26")]())if(e[Yo("0x1")](t))return!0;return!1}getRanges(){return this[Yo("0x8")]()[Yo("0x1e")]((t=>t[Yo("0x13")]()))}[Yo("0x28")](){return this.getRanges()[Yo("0x1c")](((t,e)=>[...t,...e[Yo("0x28")]()]),[])}[Yo("0x31")](){var t;return(null===(t=this[Yo("0x0")]())||void 0===t?void 0:t[Yo("0x13")]())||null}getContainedElement(){const t=this[Yo("0x26")]();if(1!=t[Yo("0xd")])return null;const e=t[0],n=e[Yo("0x39")][Yo("0x16")],o=e.end.nodeBefore;return n instanceof s.Element?n!=o?null:n:null}accept(){this[Yo("0x29")](this.getRanges(),this[Yo("0x30")],this.attributes),this[Yo("0x12")]()}[Yo("0x27")](){this[Yo("0x9")](this[Yo("0x26")](),this[Yo("0x30")],this[Yo("0x20")]),this[Yo("0x12")]()}[Yo("0x23")](){const t=[];let e=this[Yo("0x22")];for(;e;)t.push(e),e=e[Yo("0x24")];return t}[Yo("0x2b")](t,e){const n=eo(this[Yo("0x20")]);_o(n,t,e),Go(n,this.attributes)||(this[Yo("0x20")]=n,this._onAttributesChange(n))}[Yo("0x1a")](t){const e=eo(this[Yo("0x20")]);qo(e,t),Go(e,this[Yo("0x20")])||(this[Yo("0x20")]=e,this[Yo("0x34")](this[Yo("0x20")]))}[Yo("0x2c")](){return{id:this.id,type:this[Yo("0x14")]?this[Yo("0x18")]+":"+this.subType:this[Yo("0x18")],authorId:this[Yo("0x2e")].id,createdAt:this[Yo("0x6")],hasComments:this[Yo("0x2")],data:this.data,attributes:this.attributes}}static[Yo("0x36")](){return(0,e.uid)()[Yo("0x2f")](1,5)}}function Qo(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"*Replace image URL*":return o("*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 format:* %0":return o("*Set format:* %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_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});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_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});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_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});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"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});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);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const ti=["removeContainer","addFormat","checkChild","isEqual","_addDescriptionItems","_itemLabelsCallbacks","$textProxy","_handleCustomCallbackDescription","$1 $2","push","isEmpty","*Merge:* %0","name","insertion","REPLACE_TEXT","previousSibling","_handleInsertRemoveSuggestionDescription","elementEnd","format","getWalker","_itemLabels","join","*Split:* %0","ELEMENT_SPACE","data","type","remove","removeFormat","isObject","subType","skip","element","quantity","addContainer","get","_handleAttributeSuggestionDescription","length","add","nextSibling","removeObject","elementStart","EmptyContainer","function","item","attribute","_attributeLabels","Container","_customCallbacks","*Insert:* %0","getDescriptions","map","_resolveDescriptionItems","registerAttributeLabel","nodeAfter","isInContent","replace","set","removeEmptyContainer","_locale","_schema","text","addObject","getItemLabel","*Remove:* %0","indexOf","has","match","start","label","key","deletion","getFirstRange","Object","softBreak"];var ei,ni;ei=ti,ni=347,function(t){for(;--t;)ei.push(ei.shift())}(++ni);const oi=function(t,e){return ti[t-=0]};class ii{constructor(t,e){this[oi("0x46")]=[],this[oi("0x2b")]=new Map,this[oi("0x1c")]=[],this._attributeLabels=new Map,this[oi("0x8")]=t,this._locale=e}[oi("0x48")](t){const e=[],n=new Set,o=new Set;for(let i=0;i<t[oi("0x3b")];i++){const r=t[i];if(!r[oi("0x3")])continue;const s=this[oi("0x1e")](r);if(s){if(null!=r[oi("0x34")]){if(n[oi("0xe")](r[oi("0x34")]))continue;n[oi("0x3c")](r[oi("0x34")])}e[oi("0x20")](s)}else if(oi("0x43")!=r[oi("0x30")])"insertion"!=r[oi("0x30")]&&oi("0x13")!=r.type||this[oi("0x27")](e,r,t[i+1]);else{const t=r.data.key;if(o.has(t))continue;o[oi("0x3c")](r[oi("0x2f")][oi("0x12")]),t==_c?this._handleRenameSuggestionDescription(e,r):this[oi("0x3a")](e,r)}}return this[oi("0x0")](e)}registerDescriptionCallback(t){this[oi("0x46")][oi("0x20")](t)}registerElementLabel(t,n,o=e.priorities.normal){oi("0x41")==typeof t?(0,e.insertToPriorityArray)(this[oi("0x1c")],{matchingCallback:t,label:n,priority:o}):this[oi("0x2b")][oi("0x5")](t,n)}[oi("0x1")](t,e){this[oi("0x44")][oi("0x5")](t,e)}getItemLabel(t,e=1){let n;for(const e of this[oi("0x1c")])if(e.matchingCallback(t)){n=e[oi("0x11")];break}return n||(n=this[oi("0x2b")][oi("0x39")](t[oi("0x23")])),n?n(e):1!==e?e+" "+t[oi("0x23")]+"s":""+t[oi("0x23")]}[oi("0x1b")](t,e){const n=e[oi("0x14")]()[oi("0x2a")](),o=oi("0x24")==e[oi("0x30")]?oi("0x3c"):"remove";for(const e of n){const i=e[oi("0x42")],r=t[t.length-1];if(i.is(oi("0x1d")))r&&r.type.indexOf(oi("0x45"))>-1&&t.pop(),r&&"text"==r.type?r[o]+=i[oi("0x2f")]:t.push({type:oi("0x9"),add:"add"==o?i.data:"",remove:oi("0x31")==o?i[oi("0x2f")]:""});else if(this._schema[oi("0x33")](i)){const s=i;if(r&&r.type[oi("0xd")](oi("0x45"))>-1&&t.pop(),oi("0x28")==e[oi("0x30")])continue;r&&r[oi("0x30")]==o+oi("0x15")&&r[oi("0x36")][oi("0x23")]==s[oi("0x23")]?r[oi("0x37")]++:t[oi("0x20")]({type:o+oi("0x15"),element:s,quantity:1}),n[oi("0x35")]((t=>!("elementEnd"==t.type&&t[oi("0x42")]==i)))}else if(this[oi("0x8")][oi("0x19")](i,"$text")||i.is("element",oi("0x16"))){const n=i;if(oi("0x3c")==o&&oi("0x3f")==e.type||"remove"==o&&"elementEnd"==e[oi("0x30")])continue;if(r&&-1==r[oi("0x30")][oi("0xd")](oi("0x45"))){oi("0x9")==r[oi("0x30")]&&(r[o]+="\n");continue}let s;if(s="add"==o?n[oi("0x3d")]&&!this[oi("0x8")][oi("0x33")](n.nextSibling)?n[oi("0x3d")]:null:n[oi("0x26")]&&!this[oi("0x8")][oi("0x33")](n[oi("0x26")])?n[oi("0x26")]:null,n.isEmpty||s&&s[oi("0x21")]){const e=s&&s[oi("0x21")]?s:n;r&&r[oi("0x30")]==o+oi("0x40")&&r[oi("0x36")][oi("0x23")]==e.name?r[oi("0x37")]++:t[oi("0x20")]({type:o+oi("0x40"),element:e,quantity:1})}else t[oi("0x20")]({type:o+oi("0x45"),element:n})}}}[oi("0x0")](t){const e=this[oi("0x7")],n=[],o=[],i=[];for(const r of t)switch(r[oi("0x30")]){case oi("0x9"):if(r.add=r[oi("0x3c")].replace(/(\S)\u000A+(\S)/g,oi("0x1f"))[oi("0x4")](/\u000A/g,""),r[oi("0x31")]=r.remove[oi("0x4")](/(\S)\u000A+(\S)/g,oi("0x1f"))[oi("0x4")](/\u000A/g,""),""!=r[oi("0x3c")]&&""!=r[oi("0x31")]){n[oi("0x20")]({type:oi("0x4"),content:Qo(e,oi("0x25"),['"'+r.remove+'"','"'+r[oi("0x3c")]+'"'])});continue}if(null!=r.add[oi("0xf")](/^ +$/)){n.push({type:"insertion",content:Qo(e,oi("0x47"),Qo(e,"ELEMENT_SPACE",r[oi("0x3c")][oi("0x3b")]))});continue}if(null!=r.remove[oi("0xf")](/^ +$/)){n[oi("0x20")]({type:oi("0x13"),content:Qo(e,oi("0xc"),Qo(e,oi("0x2e"),r[oi("0x31")][oi("0x3b")]))});continue}if(""!=r.add){n[oi("0x20")]({type:oi("0x24"),content:Qo(e,"*Insert:* %0",'"'+r.add+'"')});continue}n[oi("0x20")]({type:oi("0x13"),content:Qo(e,oi("0xc"),'"'+r[oi("0x31")]+'"')});continue;case"addEmptyContainer":case oi("0xa"):n[oi("0x20")]({type:"insertion",content:Qo(e,"*Insert:* %0",this[oi("0xb")](r[oi("0x36")],r.quantity))});continue;case oi("0x6"):case oi("0x3e"):n[oi("0x20")]({type:oi("0x13"),content:Qo(e,"*Remove:* %0",this[oi("0xb")](r[oi("0x36")],r[oi("0x37")]))});continue;case oi("0x38"):n.push({type:oi("0x24"),content:Qo(e,oi("0x2d"),this[oi("0xb")](r.element,r[oi("0x37")]))});continue;case oi("0x17"):n[oi("0x20")]({type:oi("0x13"),content:Qo(e,oi("0x22"),this.getItemLabel(r[oi("0x36")],r[oi("0x37")]))});continue;case oi("0x18"):o[oi("0x20")](r[oi("0x12")]);continue;case oi("0x32"):i[oi("0x20")](r[oi("0x12")]);continue;default:n[oi("0x20")](r)}if(o.length){const t=o.map((t=>this[oi("0x44")][oi("0xe")](t)?this._attributeLabels.get(t):t))[oi("0x2c")](", ");n[oi("0x20")]({type:oi("0x29"),content:Qo(this[oi("0x7")],"*Set format:* %0",t)})}if(i[oi("0x3b")]){const t=i[oi("0x49")]((t=>this[oi("0x44")][oi("0xe")](t)?this._attributeLabels[oi("0x39")](t):t))[oi("0x2c")](", ");n[oi("0x20")]({type:oi("0x29"),content:Qo(this[oi("0x7")],"*Remove format:* %0",t)})}return n}[oi("0x1e")](t){for(const e of this[oi("0x46")]){const n=e(t);if(n&&"type"in n)return n}}_handleAttributeSuggestionDescription(t,e){const n=e[oi("0x2f")],o=void 0===n.newValue?oi("0x32"):oi("0x18");t[oi("0x20")]({type:o,key:n.key})}_handleRenameSuggestionDescription(t,e){t.push({type:oi("0x29"),content:Qo(this[oi("0x7")],"*Change to:* %0",this[oi("0xb")](e[oi("0x14")]()[oi("0x10")][oi("0x2")],1))})}[oi("0x27")](t,e,n){if(this[oi("0x1b")](t,e),n&&n[oi("0x14")]()&&!e[oi("0x14")]().end[oi("0x1a")](n[oi("0x14")]()[oi("0x10")])){const n=t[t[oi("0x3b")]-1],o="insertion"==e[oi("0x30")]?oi("0x3c"):oi("0x31");n&&oi("0x9")==n[oi("0x30")]&&(n[o]+="\n")}}}const ri=["plugins","get","commands","enableCommand","afterInit","TrackChangesEditing"];var si,xi;si=ri,xi=102,function(t){for(;--t;)si.push(si.shift())}(++xi);const ai=function(t,e){return ri[t-=0]};class ci extends t.Plugin{[ai("0x4")](){const t=this.editor,e=t[ai("0x0")][ai("0x1")](ai("0x5"));t[ai("0x2")][ai("0x1")]("showAIAssistant")&&e[ai("0x3")]("showAIAssistant")}}const li=["locale","formatBlock","right","TrackChangesEditing","registerDescriptionCallback","*Format:* %0","format","get","alignment","FORMAT_JUSTIFY_TEXT","editor","registerAttributeLabel","AlignmentEditing","plugins","FORMAT_ALIGN_TO_CENTER","_descriptionFactory","FORMAT_ALIGN_TO_LEFT","has","left","FORMAT_ALIGN_TO_RIGHT","_registerLegacyDescription","value","afterInit","type"];var ui,di;ui=li,di=274,function(t){for(;--t;)ui.push(ui.shift())}(++di);const gi=function(t,e){return li[t-=0]};class fi extends t.Plugin{[gi("0xc")](){const t=this[gi("0x0")],e=t.locale;if(!t.plugins[gi("0x7")](gi("0x2")))return;const n=t[gi("0x3")][gi("0x15")]("TrackChangesEditing");n._enableDefaultAttributesIntegration(gi("0x16"),[],[gi("0x16")]),n[gi("0x5")][gi("0x1")](gi("0x16"),Qo(e,"FORMAT_ALIGNMENT")),this[gi("0xa")]()}[gi("0xa")](){const t=this[gi("0x0")],e=t[gi("0xe")];t.plugins[gi("0x15")](gi("0x11"))[gi("0x5")][gi("0x12")]((t=>{if(gi("0xf")!=t[gi("0xd")])return;const{data:n}=t;if(n&&gi("0x16")==n.commandName){const t=n.commandParams[0][gi("0xb")];return{type:gi("0x14"),content:Qo(e,gi("0x13"),function(t){switch(t){case gi("0x8"):return Qo(e,gi("0x6"));case gi("0x10"):return Qo(e,gi("0x9"));case"center":return Qo(e,gi("0x4"));case"justify":return Qo(e,gi("0x17"))}}(t))}}}))}}const mi=["_registerLegacyDescription","format","CodeEditing","FORMAT_STRIKETHROUGH","registerDescriptionCallback","type","FORMAT_ITALIC","formatInline","has","strikethrough","TrackChangesEditing","plugins","locale","*Remove format:* %0","code","commandParams","afterInit","FORMAT_CODE","_enableDefaultAttributesIntegration","BoldEditing","editor","StrikethroughEditing","forceValue","FORMAT_SUBSCRIPT","UnderlineEditing","subscript","toLowerCase","FORMAT_UNDERLINE","SubscriptEditing","FORMAT_BOLD","get","superscript","italic","_descriptionFactory","commandName","*Format:* %0"];var hi,bi;hi=mi,bi=243,function(t){for(;--t;)hi.push(hi.shift())}(++bi);const pi=function(t,e){return mi[t-=0]},Ei=[pi("0x1c"),"ItalicEditing",pi("0x21"),pi("0xb"),pi("0x1e"),pi("0x1"),"SuperscriptEditing"];class _i extends t.Plugin{[pi("0x19")](){const t=this[pi("0x1d")],e=t[pi("0x14")][pi("0x3")](pi("0x13")),n=t[pi("0x15")];for(const o of Ei){if(!t.plugins[pi("0x11")](o))continue;const i=o.slice(0,-7)[pi("0x23")](),r="FORMAT_"+i.toUpperCase();e[pi("0x1b")](i,[i]),e._descriptionFactory.registerAttributeLabel(i,Qo(n,r))}this[pi("0x9")]()}[pi("0x9")](){const t=this.editor,e=t[pi("0x15")],n=t[pi("0x14")][pi("0x3")]("TrackChangesEditing");function o(t,o){n[pi("0x6")][pi("0xd")]((n=>{if(pi("0x10")!=n[pi("0xe")])return;const{data:i}=n;return i&&i[pi("0x7")]===t?i[pi("0x18")][0][pi("0x1f")]?{type:"format",content:Qo(e,pi("0x8"),o)}:{type:pi("0xa"),content:Qo(e,pi("0x16"),o)}:void 0}))}o("bold",Qo(e,pi("0x2"))),o(pi("0x5"),Qo(e,pi("0xf"))),o("underline",Qo(e,pi("0x0"))),o(pi("0x17"),Qo(e,pi("0x1a"))),o(pi("0x12"),Qo(e,pi("0xc"))),o(pi("0x22"),Qo(e,pi("0x20"))),o(pi("0x4"),Qo(e,"FORMAT_SUPERSCRIPT"))}}const Ti=["forceValue","parent","model","editor","blockQuote","*Remove format:* %0","BlockQuoteEditing","from","TrackChangesEditing","format","filter","value","schema","has","locale","document","ELEMENT_BLOCK_QUOTE","commands","enableCommand","checkChild","getSelectedBlocks","name","commandParams","$root","get"];var yi,Ci;yi=Ti,Ci=500,function(t){for(;--t;)yi.push(yi.shift())}(++Ci);const Ai=function(t,e){return Ti[t-=0]};class ki extends t.Plugin{afterInit(){const t=this[Ai("0x3")],e=t[Ai("0xe")];if(!t.plugins[Ai("0xd")](Ai("0x6")))return;const n=t.plugins[Ai("0x18")](Ai("0x8")),o=this[Ai("0x3")][Ai("0x11")][Ai("0x18")](Ai("0x4"));n[Ai("0x12")](Ai("0x4"),((e,i={})=>{const r=this[Ai("0x3")][Ai("0x2")][Ai("0xf")].selection,s=i&&void 0!==i.forceValue?i[Ai("0x0")]:!o[Ai("0xb")];let x=[];if(s){const e=Array.from(r[Ai("0x14")]())[Ai("0xa")]((t=>Ii(t)||function(t,e){const n=e[Ai("0x13")](t[Ai("0x1")],Ai("0x4")),o=e[Ai("0x13")]([Ai("0x17"),"blockQuote"],t);return n&&o}(t,this[Ai("0x3")][Ai("0x2")][Ai("0xc")])));x=S(e,t[Ai("0x2")])}else{const e=Array[Ai("0x7")](r.getSelectedBlocks())[Ai("0xa")]((t=>Ii(t)));x=S(e,t[Ai("0x2")])}t[Ai("0x2")].change((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ai("0x4"),commandParams:[{forceValue:s}]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&"blockQuote"==n.commandName){const t=Qo(e,Ai("0x10"));return n[Ai("0x16")][0].forceValue?{type:"format",content:Qo(e,"*Set format:* %0",t)}:{type:Ai("0x9"),content:Qo(e,Ai("0x5"),t)}}}))}}function Ii(t){return Ai("0x4")==t[Ai("0x1")][Ai("0x15")]}const Ri=["has","get","changeCaseUpper","changeCaseLower","enableCommand","changeCaseTitle","afterInit","plugins","TrackChangesEditing"];var Si,vi;Si=Ri,vi=378,function(t){for(;--t;)Si.push(Si.shift())}(++vi);const Ni=function(t,e){return Ri[t-=0]};class Li extends t.Plugin{[Ni("0x6")](){const t=this.editor;t[Ni("0x7")][Ni("0x0")]("CaseChange")&&(t[Ni("0x7")][Ni("0x1")](Ni("0x8"))[Ni("0x4")](Ni("0x2")),t[Ni("0x7")][Ni("0x1")](Ni("0x8"))[Ni("0x4")](Ni("0x3")),t[Ni("0x7")][Ni("0x1")](Ni("0x8"))[Ni("0x4")](Ni("0x5")))}}const Mi=["enableCommand","TrackChangesEditing","get","editor","ckbox","afterInit"];var wi,Oi;wi=Mi,Oi=371,function(t){for(;--t;)wi.push(wi.shift())}(++Oi);const Fi=function(t,e){return Mi[t-=0]};class Di extends t.Plugin{[Fi("0x0")](){const t=this[Fi("0x4")];t.commands[Fi("0x3")](Fi("0x5"))&&t.plugins.get(Fi("0x2"))[Fi("0x1")](Fi("0x5"))}}const Bi=["document","label","*Set format:* %0","editor","commands","has","indentCodeBlock","TrackChangesEditing","afterInit","outdentCodeBlock","rootElement","*Remove format:* %0","blockName","registerDescriptionCallback","model","checkChild","find","get","selection","from","isLimit","forceValue","toLowerCase","commandParams","registerElementLabel","name","_descriptionFactory","type","getSelectedBlocks","markBlockFormat","filter","config","format","parent","plugins","formatBlock","languages","change","ELEMENT_CODE_BLOCK","codeBlock","value","enableCommand","language"];var Pi,Ui;Pi=Bi,Ui=361,function(t){for(;--t;)Pi.push(Pi.shift())}(++Ui);const ji=function(t,e){return Bi[t-=0]};class Gi extends t.Plugin{[ji("0x22")](){const t=this[ji("0x1d")];if(!t[ji("0x11")][ji("0x1f")]("CodeBlock"))return;const e=t[ji("0x11")][ji("0x0")](ji("0x21")),n=t.locale,o=t[ji("0xe")].get("codeBlock")[ji("0x13")],i=t[ji("0x1e")][ji("0x0")]("codeBlock");e[ji("0x18")](ji("0x20")),e[ji("0x18")](ji("0x23")),e[ji("0x18")](ji("0x16"),((n,r={})=>{const s=t[ji("0x28")],x=t.model[ji("0x1a")][ji("0x1")],a=r&&void 0!==r[ji("0x4")]?r[ji("0x4")]:!i[ji("0x17")];let c;r[ji("0x19")]||(r[ji("0x19")]=o[0].language),c=a?Array[ji("0x2")](x[ji("0xb")]())[ji("0xd")]((t=>{return Vi(t)||(e=t,n=s.schema,!e.is(ji("0x24"))&&!n[ji("0x3")](e)&&n[ji("0x29")](e[ji("0x10")],"codeBlock"));var e,n})):Array[ji("0x2")](x[ji("0xb")]())[ji("0xd")]((t=>Vi(t)));const l=S(c,s);s[ji("0x14")]((()=>{for(const t of l)e[ji("0xc")](t,{commandName:ji("0x16"),commandParams:[{...r,forceValue:a}],formatGroupId:ji("0x26")})}))})),e._descriptionFactory[ji("0x7")](ji("0x16"),(t=>Qo(n,ji("0x15"),t))),e[ji("0x9")][ji("0x27")]((t=>{if(ji("0x12")!=t[ji("0xa")])return;const e=n.t,{data:i}=t;if(!i||ji("0x16")!=i.commandName)return;const r=i[ji("0x6")][0].language,s=e(o[ji("0x2a")]((t=>t[ji("0x19")]===r))[ji("0x1b")])[ji("0x5")]();return i[ji("0x6")][0][ji("0x4")]?{type:ji("0xf"),content:Qo(n,ji("0x1c"),Qo(n,ji("0x15"),1)+" ("+s+")")}:{type:"format",content:Qo(n,ji("0x25"),Qo(n,"ELEMENT_CODE_BLOCK",1))}}))}}function Vi(t){return ji("0x16")==t[ji("0x8")]}const Hi=["afterInit","get","CommentsEditing","plugins","TrackChangesEditing","editor","addCommentThread"];var zi,Wi;zi=Hi,Wi=492,function(t){for(;--t;)zi.push(zi.shift())}(++Wi);const Ki=function(t,e){return Hi[t-=0]};class qi extends t.Plugin{[Ki("0x5")](){const t=this[Ki("0x3")];t[Ki("0x1")].has(Ki("0x0"))&&t[Ki("0x1")][Ki("0x6")](Ki("0x2")).enableCommand(Ki("0x4"))}}var Xi=n(181);const $i=["getItems","addHighlight","listItem","markerRange","elementEnd","ck-suggestion-marker-","activeMarkers","TrackChangesEditing","isContent","isBlock","type","isLimit","get","includes","previousPosition","insert","getAttribute","plugins","mapper","createUIElement","ck-suggestion-marker--active","nextSibling","push","start","element","createRangeOn","toViewElement","markerName","isAtEnd","item","span","writer","hasAttribute"];var Zi,Yi;Zi=$i,Yi=371,function(t){for(;--t;)Zi.push(Zi.shift())}(++Yi);const Ji=function(t,e){return $i[t-=0]};function Qi(t,e,n){const o=[];for(const i of e[Ji("0x19")]())i[Ji("0x18")](t)&&o.push(n[Ji("0x11")](i));return o}function tr(t,e,{showActiveMarker:n=!0}={}){const o=t[Ji("0x9")][Ji("0x4")](Ji("0x20"));return(i,r,s)=>{if(!s.consumable.test(r[Ji("0x1c")],i.name))return;const x=r[Ji("0x1c")].getWalker(),a=r[Ji("0x1c")][Ji("0xf")],c=t.model.schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Ji("0x15")];d=d||c[Ji("0x0")](e);const n=s[Ji("0xa")][Ji("0x12")](e);if(n&&n.getCustomProperty(Ji("0x1a")))return;Ji("0x1d")==t[Ji("0x2")]&&c[Ji("0x1")](e)&&!c[Ji("0x3")](e)&&(e[Ji("0xd")]||a[Ji("0x14")]?l&&l.parent==e||(l=e,f(t.previousPosition),g=!0):u=u||t[Ji("0x6")])}function f(t){const i=s[Ji("0x17")][Ji("0xb")](Ji("0x16"),{class:Ji("0x1e")+e}),x=s[Ji("0xa")].toViewPosition(t);n&&o[Ji("0x1f")][Ji("0x5")](r[Ji("0x13")])&&s.writer.addClass(Ji("0xc"),i),s[Ji("0x17")][Ji("0x7")](x,i),s.mapper.bindElementToMarker(i,r[Ji("0x13")])}d||g||!u||f(u)}}const er=["getFirstRange","plugins","unit","delete","get","init","options","enableCommand","addMarker:suggestion:deletion","batch","buffer","mapper","$graveyard","root","uiElement","setSelection","downcastDispatcher","commands","bind","unbindElementFromMarkerName","editing","rootName","merge","showSuggestionHighlights","enqueueChange","end","requires","removeMarker:suggestion:deletion","detach","start","high","createRange","unlock","data","editor","model","lock","forward","createSelection","deleteForward","markerName"];var nr,or;nr=er,or=153,function(t){for(;--t;)nr.push(nr.shift())}(++or);const ir=function(t,e){return er[t-=0]};class rr extends t.Plugin{static get[ir("0x25")](){return[Xi.Delete]}[ir("0x10")](){const t=this[ir("0x4")],e=t[ir("0xc")][ir("0xf")]("TrackChangesEditing");e.enableCommand(ir("0xe"));const n=t[ir("0x1c")][ir("0xf")](ir("0x9"));e[ir("0x12")](ir("0x9"),((e,o={})=>{const i=t[ir("0x5")][ir("0x8")](t[ir("0x5")].document.selection);i.isCollapsed&&t[ir("0x5")].modifySelection(i,{direction:ir("0x7"),unit:o[ir("0xd")]});const r=i[ir("0xb")](),x=s.LiveRange.fromRange(r);let a;e(o),a=ir("0x17")==x[ir("0x18")][ir("0x20")]?t[ir("0x5")][ir("0x1")](r[ir("0x28")]):t.model.createRange(x[ir("0x28")],x[ir("0x24")]),x[ir("0x27")](),t[ir("0x5")][ir("0x23")](n[ir("0x15")][ir("0x14")],(t=>{n.buffer[ir("0x6")](),t[ir("0x1a")](t.createRange(a.end)),n.buffer[ir("0x2")]()}))})),t[ir("0x1f")].downcastDispatcher.on("addMarker:suggestion:deletion",tr(t,ir("0x21")),{priority:ir("0x0")}),t[ir("0x3")][ir("0x1b")].on(ir("0x13"),((e,n,o)=>{o[ir("0x11")][ir("0x22")]&&tr(t,ir("0x21"),{showActiveMarker:!1})[ir("0x1d")](this)(e,n,o)}),{priority:ir("0x0")}),t[ir("0x1f")].downcastDispatcher.on(ir("0x26"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[ir("0xa")]);if(o)for(const t of o)t.is(ir("0x19"))&&(n[ir("0x16")][ir("0x1e")](t,e[ir("0xa")]),n.writer.remove(t))}),{priority:ir("0x0")})}}const sr=["*Outdent:* %0","splitListItemBefore","change","ELEMENT_NUMBERED_LIST","start","commandName","*Change to:* %0","ELEMENT_LIST_ITEM","_LIST","TrackChangesEditing","_descriptionFactory","value","nodeAfter","toUpperCase","*Format:* remove from %0","documentList","numberedList","getAttribute","length","getRanges","previousSibling","enableCommand","editor","*Indent:* %0","type","markBlockFormat","push","config","afterInit","format","getSelectedBlocks","add","commandParams","locale","parent","formatBlock","ListEditing","listItemId","before","ListUtils","*Format:* insert into %0","listType","refresh","schema","hasAttribute","createPositionAt","list.multiBlock","isObject","containsItem","bulletedList","registerCustomCallback","end","createRange","nextSibling","indentList","model","commands","getFirstRange","selection","*Merge:* %0","plugins","document","mergeListItemForward","expandListBlocksToCompleteList","accept","fromRange","registerElementLabel","listIndent","after","from","get","slice","setSelection","markMultiRangeBlockFormat","paragraph","outdentList","findIndex","mergeListItemBackward","multipleBlocks","splitListItemAfter","execute"];var xr,ar;xr=sr,ar=139,function(t){for(;--t;)xr.push(xr.shift())}(++ar);const cr=function(t,e){return sr[t-=0]};class lr extends t.Plugin{[cr("0x33")](){const t=this[cr("0x2d")];if(!t[cr("0x2")].has(cr("0x3b")))return;const e=t[cr("0x38")],n=t[cr("0x2")][cr("0xc")](cr("0x20")),o=t[cr("0x2")][cr("0xc")](cr("0x3e"));function i(e){return()=>{const i=t[cr("0x4f")][cr("0xc")](e);if(i[cr("0x22")]&&!t[cr("0x32")][cr("0xc")](cr("0x45")))return void t[cr("0x16")](cr("0x10"),{});let r=Array[cr("0xb")](t[cr("0x4e")][cr("0x3")].selection.getSelectedBlocks());if(a(e)){r=o[cr("0x5")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t.push(e);r=t}t[cr("0x4e")][cr("0x19")]((()=>{n[cr("0xf")](r,{commandName:e,commandParams:[{forceValue:!i[cr("0x22")]}],formatGroupId:"listType"},[],"documentList")}))}}function r(e){return()=>{const o=function(t){let e=Array[cr("0xb")](t);const n=e[cr("0x12")]((t=>!t[cr("0x43")](cr("0x3c"))));return n>-1&&(e=e[cr("0xd")](0,n)),e}(t[cr("0x4e")].document[cr("0x0")][cr("0x35")]()),i=o[o[cr("0x29")]-1],r=t[cr("0x4e")][cr("0x42")][cr("0x46")](i)?cr("0xa"):cr("0x4a"),s=t[cr("0x4e")][cr("0x4b")](t.model[cr("0x44")](o[0],cr("0x3d")),t[cr("0x4e")][cr("0x44")](i,r));t[cr("0x4e")][cr("0x19")]((()=>{n[cr("0x30")](s,{commandName:e,commandParams:[],formatGroupId:cr("0x40")},function(t){const e=new Set;for(const n of t){let t=n[cr("0x4c")];for(;t&&t.getAttribute("listIndent")>n.getAttribute(cr("0x9"));)e[cr("0x36")](t),t=t[cr("0x4c")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t.model[cr("0x3")][cr("0x0")][cr("0x35")]().next().value,i=t[cr("0x4e")][cr("0x44")](o,cr("0x3d")),r=t.model[cr("0x44")](o,0),s=t.model.createRange(i,r);t[cr("0x4e")][cr("0x19")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:cr("0x40")})}))}}function a(e){const n=t[cr("0x4f")][cr("0xc")](cr("0x48")).value,o=t.commands[cr("0xc")]("numberedList")[cr("0x22")];return cr("0x27")===e?n:o}n[cr("0x2c")]("numberedList",i(cr("0x27"))),n[cr("0x2c")](cr("0x48"),i(cr("0x48"))),n.enableCommand(cr("0x4d"),r("indentList")),n.enableCommand("outdentList",r(cr("0x11"))),n[cr("0x2c")](cr("0x15"),x(cr("0x15"))),n[cr("0x2c")](cr("0x18"),x("splitListItemBefore")),n[cr("0x21")][cr("0x8")]((function(e){const n=!t[cr("0x4e")][cr("0x42")].isObject(e),o=e[cr("0x2b")],i=e[cr("0x4c")],r=e[cr("0x28")]("listItemId"),s=!o||o[cr("0x28")](cr("0x3c"))!==r,x=!i||i[cr("0x28")](cr("0x3c"))!==r;return n&&Boolean(r)&&s&&x}),(t=>Qo(e,cr("0x1e"),t))),n[cr("0x21")].registerDescriptionCallback((function(n){if(cr("0x3a")!=n[cr("0x2f")]&&"formatInline"!=n[cr("0x2f")])return;const{data:o}=n;if(!o)return;let i,r,s,x;switch(o[cr("0x1c")]){case cr("0x48"):s=o[cr("0x37")][0].forceValue,x=a(o[cr("0x1c")]),i=cr(s?"0x3f":"0x25"),!x&&t[cr("0x32")][cr("0xc")](cr("0x45"))||(i="*Change to:* %0"),r={type:cr("0x34"),content:Qo(e,i,Qo(e,"ELEMENT_BULLETED_LIST"))};break;case cr("0x27"):s=o[cr("0x37")][0].forceValue,x=a(o[cr("0x1c")]),i=s?cr("0x3f"):"*Format:* remove from %0",!x&&t[cr("0x32")].get(cr("0x45"))||(i=cr("0x1d")),r={type:cr("0x34"),content:Qo(e,i,Qo(e,cr("0x1a")))};break;case cr("0x4d"):i=cr("0x2e"),r={type:cr("0x34"),content:Qo(e,i,Qo(e,cr("0x1e")))};break;case cr("0x11"):i=function(t){const e=t[cr("0x50")]();let n=e[cr("0x1b")].nodeAfter;for(;n&&e[cr("0x47")](n);){if(n[cr("0x28")](cr("0x9"))>0)return!1;n=n[cr("0x4c")]}return!0}(n)?Qo(e,"*Format:* remove from %0",Qo(e,"ELEMENT_"+n[cr("0x50")]()[cr("0x1b")].nodeAfter[cr("0x28")](cr("0x40"))[cr("0x24")]()+cr("0x1f"))):Qo(e,cr("0x17"),Qo(e,"ELEMENT_LIST_ITEM")),r={type:cr("0x34"),content:i};break;case cr("0x13"):case cr("0x4"):!1===o[cr("0x14")]&&(i=cr("0x1"),r={type:"deletion",content:Qo(e,i,Qo(e,"ELEMENT_LIST_ITEM"))})}return r})),n._suggestionFactory[cr("0x49")](cr("0x3a"),cr("0x26"),cr("0x6"),(function(e,n){const o=[];for(let n of e)n[cr("0x1b")].nodeAfter===n[cr("0x4a")][cr("0x39")]&&(n=t[cr("0x4e")][cr("0x4b")](t[cr("0x4e")].createPositionAt(n[cr("0x1b")][cr("0x23")],0))),o[cr("0x31")](n);t[cr("0x4e")][cr("0x19")]((e=>{const i=t[cr("0x4e")][cr("0x3")].selection,r=Array[cr("0xb")](i[cr("0x2a")]()).map((t=>s.LiveRange[cr("0x7")](t)));e[cr("0xe")](o),t.commands[cr("0xc")](n[cr("0x1c")])[cr("0x41")](),n[cr("0x37")][cr("0x31")]({forceDefaultExecution:!0}),t[cr("0x16")](n[cr("0x1c")],...n[cr("0x37")]),e[cr("0xe")](r);for(const t of r)t.detach()}))}))}}const ur=["*Format:* set order to reversed","_getTranslationKeyForListStyle","list.properties","listStart","replace","push","ELEMENT_","getSelectedBlocks","listReversed","handleListStartCommand","model","get","selection","change","config","type","handleListReversedCommand","document","ListUtils","handleDescriptions","plugins","startIndex","_getSuggestionBlocksForListStyle","expandListBlocksToCompleteList","enableCommand","filter","afterInit","markMultiRangeBlockFormat","from","getAttribute","editor","reversed","ListPropertiesUtils","numbered","locale","format","isListItemBlock","registerDescriptionCallback","getListTypeFromListStyleType","*Change to:* %0","formatInline","TrackChangesEditing","styles","toUpperCase","_getSuggestionBlocks","bind","commandParams","formatBlock","listStyle","listType"];var dr,gr;dr=ur,gr=327,function(t){for(;--t;)dr.push(dr.shift())}(++gr);const fr=function(t,e){return ur[t-=0]};class mr extends t.Plugin{[fr("0x31")](){if(!this[fr("0x3")][fr("0x2b")].has("ListPropertiesEditing"))return;const t=this[fr("0x3")][fr("0x25")][fr("0x22")](fr("0x19")),e=this[fr("0x3")][fr("0x2b")][fr("0x22")](fr("0xe"));t[fr("0xf")]&&e[fr("0x2f")](fr("0x15"),this.handleListStyleCommand.bind(this)),t[fr("0x4")]&&e[fr("0x2f")]("listReversed",this[fr("0x27")][fr("0x12")](this)),t.startIndex&&e[fr("0x2f")]("listStart",this[fr("0x20")][fr("0x12")](this)),e._descriptionFactory[fr("0xa")](this.handleDescriptions[fr("0x12")](this))}handleListStyleCommand(t,e={}){const n=this[fr("0x3")][fr("0x2b")].get(fr("0xe")),o=this[fr("0x2d")]();this[fr("0x3")][fr("0x21")][fr("0x24")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:fr("0x15"),commandParams:[{type:e.type}],formatGroupId:fr("0x15")})}))}handleListReversedCommand(t,e={}){const n=this.editor[fr("0x2b")][fr("0x22")]("TrackChangesEditing"),o=this[fr("0x3")].plugins[fr("0x22")](fr("0x29")),i=this[fr("0x11")]((t=>o[fr("0x9")](t)&&fr("0x6")===t[fr("0x2")](fr("0x16"))));null!==i&&this[fr("0x3")][fr("0x21")][fr("0x24")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:fr("0x1f"),commandParams:[{reversed:e.reversed}],formatGroupId:fr("0x1f")})}))}handleListStartCommand(t,e={}){const n=this[fr("0x3")][fr("0x2b")].get(fr("0xe")),o=this[fr("0x3")][fr("0x2b")][fr("0x22")](fr("0x29")),i=this._getSuggestionBlocks((t=>o[fr("0x9")](t)&&"numbered"===t[fr("0x2")](fr("0x16"))));null!==i&&this.editor[fr("0x21")].change((()=>{n[fr("0x0")](i,{commandName:fr("0x1a"),commandParams:[{startIndex:e.startIndex}],formatGroupId:fr("0x1a")})}))}[fr("0x2a")](t){if(fr("0x14")!=t[fr("0x26")]&&fr("0xd")!=t[fr("0x26")])return;const e=this[fr("0x3")][fr("0x7")],{data:n}=t;if(!n)return;let o,i;switch(n.commandName){case"listStyle":o=fr("0xc"),i={type:fr("0x8"),content:Qo(e,o,Qo(e,this[fr("0x18")](n[fr("0x13")][0][fr("0x26")])))};break;case fr("0x1f"):o=n[fr("0x13")][0][fr("0x4")]?fr("0x17"):"*Format:* set order to regular",i={type:fr("0x8"),content:Qo(e,o)};break;case fr("0x1a"):o="*Format:* set start index to %0",i={type:fr("0x8"),content:Qo(e,o,n[fr("0x13")][0][fr("0x2c")])}}return i}_getSuggestionBlocksForListStyle(){const t=this[fr("0x3")][fr("0x2b")][fr("0x22")](fr("0x29"));let e=Array[fr("0x1")](this[fr("0x3")][fr("0x21")].document[fr("0x23")][fr("0x1e")]());return e[fr("0x1c")](...t[fr("0x2e")](e)),e=[...new Set(e)],e}[fr("0x11")](t){const e=this.editor[fr("0x2b")][fr("0x22")]("ListUtils");let n=Array[fr("0x1")](this.editor[fr("0x21")][fr("0x28")][fr("0x23")][fr("0x1e")]())[fr("0x30")](t);if(!n.length)return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[fr("0x1c")](t);return o}[fr("0x18")](t){return fr("0x1d")+this[fr("0x3")].plugins[fr("0x22")](fr("0x5"))[fr("0xb")](t)[fr("0x10")]()+"_LIST_"+t[fr("0x10")]()[fr("0x1b")](/-/g,"_")}}var hr=n(331);const br=["selection","unbindElementFromMarkerName","TrackChangesEditing","mapper","writer","high","getFirstRange","enableCommand","plugins","addMarker:suggestion:insertion","change","end","bind","getFirstPosition","ck-suggestion-marker-split","markerName","data","downcastDispatcher","afterExecute","init","enterBlock","fire","enter","nextSibling","split","remove","requires","fromRange","markInsertion","showSuggestionHighlights","document","commands","editing","model"];var pr,Er;pr=br,Er=107,function(t){for(;--t;)pr.push(pr.shift())}(++Er);const _r=function(t,e){return br[t-=0]};class Tr extends t.Plugin{static get[_r("0x15")](){return[hr.Enter]}[_r("0xe")](){const t=this.editor,e=t[_r("0x3")].get(_r("0x1f")),n=t[_r("0x1a")].get(_r("0x11"));e[_r("0x2")]("enter",(()=>{t.model[_r("0x5")]((o=>{const i=t[_r("0x1c")][_r("0x19")][_r("0x1d")],r=i[_r("0x8")](),x=s.LiveRange[_r("0x16")](i[_r("0x1")]());if(n[_r("0xf")](o)){const n=t[_r("0x1c")].createPositionAt(r.parent[_r("0x12")],0),i=o.createRange(r,n);e[_r("0x17")](i)}else o.setSelection(o.createRange(x[_r("0x6")]));x.detach(),n[_r("0x10")](_r("0xd"),{writer:o})}))})),t.editing[_r("0xc")].on(_r("0x4"),tr(t,_r("0x13")),{priority:_r("0x0")}),t[_r("0x1b")][_r("0xc")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[_r("0x20")].markerNameToElements(e[_r("0xa")]);if(o)for(const t of o)t.hasClass(_r("0x9"))&&(n[_r("0x20")][_r("0x1e")](t,e[_r("0xa")]),n[_r("0x21")][_r("0x14")](t))}),{priority:_r("0x0")}),t[_r("0xb")][_r("0xc")].on(_r("0x4"),((e,n,o)=>{o.options[_r("0x18")]&&tr(t,_r("0x13"),{showActiveMarker:!1})[_r("0x7")](this)(e,n,o)}),{priority:_r("0x0")})}}const yr=["markers","model","string","findByTextCallback","end","has","suggestion:deletion","getRange","FindAndReplaceUtils","item","findNext","replaceAll","FindAndReplaceEditing","enableCommand","bind","find","start","handleFindCommand","get","afterInit","createRange","createPositionAt","editor","getIntersection","TrackChangesEditing","plugins"];var Cr,Ar;Cr=yr,Ar=496,function(t){for(;--t;)Cr.push(Cr.shift())}(++Ar);const kr=function(t,e){return yr[t-=0]};class Ir extends t.Plugin{[kr("0x11")](){if(!this[kr("0x14")].plugins[kr("0x3")](kr("0xa")))return;const t=this[kr("0x14")][kr("0x17")][kr("0x10")](kr("0x16"));t[kr("0xb")](kr("0xd"),this[kr("0xf")][kr("0xc")](this)),t[kr("0xb")](kr("0x8")),t[kr("0xb")]("findPrevious"),t[kr("0xb")]("replace"),t[kr("0xb")](kr("0x9"))}[kr("0xf")](t,e,n={}){const o=this[kr("0x14")][kr("0x17")].get(kr("0x6"));return t((t=>(kr("0x0")==typeof e?o[kr("0x1")](e,n):e)(t).filter((e=>!1===this._isInDeletionRange(e,t[kr("0x7")])))),n)}_isInDeletionRange(t,e){const n=this.editor[kr("0x19")][kr("0x12")](this.editor.model[kr("0x13")](e,t[kr("0xe")]),this[kr("0x14")][kr("0x19")][kr("0x13")](e,t[kr("0x2")]));for(const t of this[kr("0x14")][kr("0x19")][kr("0x18")].getMarkersGroup(kr("0x4")))if(null!==n[kr("0x15")](t[kr("0x5")]()))return!0;return!1}}const Rr=["find","fontSize.options","trim","config","model","label","*Reset font family*","FORMAT_FONT_SIZE","FontFamilyEditing","_enableDefaultAttributesIntegration","locale","_descriptionFactory","title","FontBackgroundColorEditing","FORMAT_FONT_COLOR","*Set font background color:* %0","afterInit","FORMAT_FONT_BACKGROUND","commandName","*Reset font color*","get","*Reset font size*","fontFamily","*Set font size:* %0","has","FORMAT_FONT_FAMILY","fontBackgroundColor","fontSize","registerAttributeLabel","toLowerCase","commandParams","format","TrackChangesEditing","registerDescriptionCallback","*Set font color:* %0","_registerLegacyDescription","editor","formatInline","value","fontColor","plugins"];var Sr,vr;Sr=Rr,vr=169,function(t){for(;--t;)Sr.push(Sr.shift())}(++vr);const Nr=function(t,e){return Rr[t-=0]},Lr=[{pluginName:"FontSizeEditing",commandName:Nr("0x16")},{pluginName:Nr("0x3"),commandName:"fontFamily"},{pluginName:"FontColorEditing",commandName:Nr("0x22")},{pluginName:Nr("0x8"),commandName:Nr("0x15")}];class Mr extends t.Plugin{[Nr("0xb")](){const t=this.editor.locale,e=this[Nr("0x1f")].plugins[Nr("0xf")](Nr("0x1b"));for(const{pluginName:t,commandName:n}of Lr)this.editor.plugins[Nr("0x13")](t)&&e[Nr("0x4")](n,[n]);t.t,e._descriptionFactory.registerAttributeLabel("fontSize",Qo(t,Nr("0x2"))),e[Nr("0x6")][Nr("0x17")](Nr("0x11"),Qo(t,Nr("0x14"))),e[Nr("0x6")][Nr("0x17")](Nr("0x22"),Qo(t,Nr("0x9"))),e[Nr("0x6")][Nr("0x17")]("fontBackgroundColor",Qo(t,Nr("0xc"))),this[Nr("0x1e")]()}[Nr("0x1e")](){const t=this[Nr("0x1f")],e=t[Nr("0x5")];t[Nr("0x23")][Nr("0xf")](Nr("0x1b"))[Nr("0x6")][Nr("0x1c")]((t=>{const n=e.t;if(Nr("0x20")!=t.type)return;const{data:o}=t;if(null!=o){if("fontSize"==o.commandName){const t=o[Nr("0x19")][0][Nr("0x21")];if(t){const o=n(this.editor[Nr("0x23")][Nr("0xf")]("FontSize").normalizeSizeOptions(this.editor.config[Nr("0xf")](Nr("0x25")))[Nr("0x24")]((e=>e.model==t))[Nr("0x7")])[Nr("0x18")]();return{type:Nr("0x1a"),content:Qo(e,Nr("0x12"),o)}}return{type:Nr("0x1a"),content:Qo(e,Nr("0x10"))}}if(Nr("0x11")==o[Nr("0xd")]){const t=o.commandParams[0][Nr("0x21")];return t?{type:Nr("0x1a"),content:Qo(e,"*Set font family:* %0",t)}:{type:Nr("0x1a"),content:Qo(e,Nr("0x1"))}}if("fontColor"==o.commandName){const t=o[Nr("0x19")][0][Nr("0x21")];if(t){const o=(0,i.normalizeColorOptions)(this[Nr("0x1f")][Nr("0x27")][Nr("0xf")]("fontColor.colors"))[Nr("0x24")]((e=>e.model==t));let r=t,s="";return o&&(r=o.label,s=n(r).toLowerCase()),{type:Nr("0x1a"),content:Qo(e,Nr("0x1d"),s)[Nr("0x26")](),color:{value:t,title:s||r}}}return{type:Nr("0x1a"),content:Qo(e,Nr("0xe"))}}if(Nr("0x15")==o[Nr("0xd")]){const t=o[Nr("0x19")][0].value;if(t){const o=(0,i.normalizeColorOptions)(this.editor[Nr("0x27")][Nr("0xf")]("fontBackgroundColor.colors")).find((e=>e[Nr("0x28")]==t));let r=t,s="";return o&&(r=o[Nr("0x0")],s=n(r)[Nr("0x18")]()),{type:Nr("0x1a"),content:Qo(e,Nr("0xa"),s)[Nr("0x26")](),color:{value:t,title:s||r}}}return{type:Nr("0x1a"),content:Qo(e,"*Reset font background color*")}}}}))}}const wr=["formatInline","toLowerCase","model","formatBlock","commandParams","copyFormat","fontSize","join","slice","pasteFormat","_descriptionFactory","format","TrackChangesEditing","config","commandName","*Set format to:* %0","find","fontSize.options","length","afterInit","locale","get","commands","_registerLegacyDescription","registerDescriptionCallback","editor","FontSize","title","plugins","entries","fontColor.colors","charAt","type"];var Or,Fr;Or=wr,Fr=193,function(t){for(;--t;)Or.push(Or.shift())}(++Fr);const Dr=function(t,e){return wr[t-=0]};class Br extends t.Plugin{[Dr("0x18")](){const t=this.editor,e=t.plugins[Dr("0x1a")]("TrackChangesEditing"),n=t.commands[Dr("0x1a")](Dr("0xa")),o=t[Dr("0x1b")].get("pasteFormat");n&&o&&(e._enableDefaultAttributesIntegration(Dr("0xe")),e.enableCommand("copyFormat"),this[Dr("0x1c")]())}_registerLegacyDescription(){const t=this[Dr("0x1e")],e=t[Dr("0x19")];t.plugins[Dr("0x1a")](Dr("0x11"))[Dr("0xf")][Dr("0x1d")]((n=>{if(Dr("0x8")!=n[Dr("0x4")]&&Dr("0x5")!=n[Dr("0x4")])return;const{data:o}=n;if(o&&Dr("0xe")===o[Dr("0x13")]){const n=[],i=o[Dr("0x9")][0];for(const[e,o]of Object[Dr("0x1")](i))n.push(Pr(t,e,o));return n[Dr("0x17")]?{type:Dr("0x10"),content:Qo(e,Dr("0x14"),n[Dr("0xc")](", "))}:{type:Dr("0x10"),content:Qo(e,"*Remove all formatting*")}}}))}}function Pr(t,e,n){const o=t.locale.t,r=e.split(/(?=[A-Z])/)[Dr("0xc")](" "),s=o(r[Dr("0x3")](0).toUpperCase()+r[Dr("0xd")](1))[Dr("0x6")]();if("boolean"==typeof n)return s;if("fontColor"===e||"fontBackgroundColor"===e){const e=(0,i.normalizeColorOptions)(t.config[Dr("0x1a")](Dr("0x2")))[Dr("0x15")]((t=>t[Dr("0x7")]==n));return s+" ("+(e?o(e.label)[Dr("0x6")]():n)+")"}if(Dr("0xb")===e&&isNaN(parseFloat(n))){const e=t[Dr("0x0")][Dr("0x1a")](Dr("0x1f")).normalizeSizeOptions(t[Dr("0x12")][Dr("0x1a")](Dr("0x16")))[Dr("0x15")]((t=>t[Dr("0x7")]==n));return s+" ("+(e?o(e[Dr("0x20")])[Dr("0x6")]():n)+")"}return s+" ("+n+")"}const Ur=["name","config","_enableDefaultAttributesIntegration","*Change to:* %0","match","_descriptionFactory","get","_registerLegacyDescription","paragraph","formatBlock","find","TrackChangesEditing","ELEMENT_HEADING_CUSTOM","model","view","_getHeadingLevel","heading","_headingOptions","type","locale","format","plugins","heading.options","has","registerDescriptionCallback","title","editor","commandName","ELEMENT_HEADING"];var jr,Gr;jr=Ur,Gr=492,function(t){for(;--t;)jr.push(jr.shift())}(++Gr);const Vr=function(t,e){return Ur[t-=0]};class Hr extends t.Plugin{afterInit(){const t=this[Vr("0x1b")];if(!t[Vr("0x16")][Vr("0x18")]("HeadingEditing"))return;this[Vr("0x12")]=t[Vr("0x2")][Vr("0x7")](Vr("0x17"));const e=t[Vr("0x14")],n=t[Vr("0x16")].get(Vr("0xc"));n[Vr("0x3")](Vr("0x11"));for(const t of this[Vr("0x12")])Vr("0x9")!=t[Vr("0xe")]&&n[Vr("0x6")].registerElementLabel(t.model,(n=>{const o=this[Vr("0x10")](t[Vr("0xe")]);return null!==o?(s=n,x=o,Qo(e,Vr("0x0"),[s,x])):(i=n,r=t[Vr("0x1a")],Qo(e,"ELEMENT_HEADING_CUSTOM",[i,r]));var i,r,s,x}));this[Vr("0x8")]()}[Vr("0x8")](){const t=this[Vr("0x1b")],e=t[Vr("0x14")];t[Vr("0x16")].get(Vr("0xc"))[Vr("0x6")][Vr("0x19")]((t=>{if(Vr("0xa")!=t[Vr("0x13")])return;const{data:n}=t;if(n&&"heading"==n[Vr("0x1c")]){const t=n.commandParams[0].value,s=this[Vr("0x10")](t);if(null!==s)return{type:Vr("0x15"),content:Qo(e,Vr("0x4"),(1,r=s,Qo(e,Vr("0x0"),[1,r])))};const x=this[Vr("0x12")].find((e=>e[Vr("0xe")]===t)).title;return{type:Vr("0x15"),content:Qo(e,Vr("0x4"),(o=1,i=x,Qo(e,Vr("0xd"),[o,i])))}}var o,i,r}))}[Vr("0x10")](t){var e,n;const o=t.match(/^heading(\d+)/);if(o)return o[1];const i=null===(e=this[Vr("0x12")])||void 0===e?void 0:e[Vr("0xb")]((e=>e[Vr("0xe")]==t));if(i&&i[Vr("0xf")]){const t=i[Vr("0xf")],e=(null!==(n=t[Vr("0x1")])&&void 0!==n?n:t)[Vr("0x5")](/^h(\d+)/);if(e)return e[1]}return null}}const zr=["*Set highlight:* %0","TrackChangesEditing","title","highlight.options","find","plugins","get","highlight","registerDescriptionCallback","model","*Remove highlight*","format","_registerLegacyDescription","_enableDefaultAttributesIntegration","locale","commandName","FORMAT_HIGHLIGHT","value","color","registerAttributeLabel","editor","toLowerCase","_descriptionFactory"];var Wr,Kr;Wr=zr,Kr=301,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};class Xr extends t.Plugin{afterInit(){const t=this[qr("0x12")];if(!t[qr("0x3")].has("HighlightEditing"))return;const e=t[qr("0x3")].get("TrackChangesEditing"),n=t.locale;e[qr("0xb")](qr("0x5"),[qr("0x5")]),e[qr("0x14")][qr("0x11")]("highlight",Qo(n,qr("0xe"))),this[qr("0xa")]()}[qr("0xa")](){const t=this[qr("0x12")],e=t[qr("0xc")];t[qr("0x3")][qr("0x4")](qr("0x16"))._descriptionFactory[qr("0x6")]((n=>{if("formatInline"!=n.type)return;const{data:o}=n;if(o&&qr("0x5")==o[qr("0xd")]){const n=e.t,i=o.commandParams[0][qr("0xf")];if(i){const o=t.config.get(qr("0x1"))[qr("0x2")]((t=>t[qr("0x7")]==i)),r=n(o[qr("0x0")])[qr("0x13")]();return{type:qr("0x9"),content:Qo(e,qr("0x15"),r),color:{value:o[qr("0x10")],title:o[qr("0x0")]}}}return{type:qr("0x9"),content:Qo(e,qr("0x8"),Qo(e,qr("0xe")))}}}))}}const $r=["div","afterInit","HorizontalLineEditing","high","editor","insert","has","get","createEmptyElement","horizontalLine","for","TrackChangesEditing","createPositionAt","addClass","locale","plugins","showSuggestionHighlights","_descriptionFactory","ELEMENT_HORIZONTAL_LINE","registerElementLabel","conversion"];var Zr,Yr;Zr=$r,Yr=488,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const Jr=function(t,e){return $r[t-=0]};class Qr extends t.Plugin{[Jr("0x11")](){const t=this[Jr("0x14")];if(!t[Jr("0xa")][Jr("0x1")](Jr("0x12")))return;t[Jr("0xa")][Jr("0x2")](Jr("0x6")).enableCommand(Jr("0x4"));const e=t[Jr("0xa")][Jr("0x2")](Jr("0x6")),n=t[Jr("0x9")];e[Jr("0xc")][Jr("0xe")]("horizontalLine",(t=>Qo(n,Jr("0xd"),t))),t[Jr("0xf")][Jr("0x5")]("dataDowncast").elementToStructure({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Jr("0xb")])return null;const o=e.createContainerElement(Jr("0x10")),i=e[Jr("0x3")]("hr");return e[Jr("0x8")]("ck-horizontal-line",o),e[Jr("0x0")](e[Jr("0x7")](o,0),i),o},converterPriority:Jr("0x13")})}}const ts=["commandName","locale","nodeAfter","element","getFirstRange","_descriptionFactory","attribute","registerElementLabel","format","get","registerDescriptionCallback","htmlEmbed","afterInit","ELEMENT_HTML_EMBED","editor","HtmlEmbed","*Change %0 content*","plugins","TrackChangesEditing","rawHtml","formatBlock","start","_enableDefaultAttributesIntegration","key","value"];var es,ns;es=ts,ns=242,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class is extends t.Plugin{[os("0x14")](){const t=this[os("0x16")];if(!t.plugins.has(os("0x17")))return;const e=t[os("0x0")][os("0x11")](os("0x1")),n=t[os("0x9")];e[os("0xd")][os("0xf")](os("0x2"),(t=>Qo(n,os("0x15"),t))),e[os("0x5")](os("0x13"),[],[os("0x7")]),e[os("0xd")][os("0x12")]((t=>{if(os("0xe")!=t.type)return;const{data:e}=t;if(e&&os("0x7")==e[os("0x6")]&&t[os("0xc")]()[os("0x4")][os("0xa")].is(os("0xb"),os("0x2"))){const t=Qo(n,os("0x15"));return{type:os("0x10"),content:Qo(n,os("0x18"),t)}}})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[os("0x16")],e=t.locale;t.plugins[os("0x11")](os("0x1"))[os("0xd")].registerDescriptionCallback((t=>{if(os("0x3")!=t.type)return;const{data:n}=t;if(n&&os("0x13")==n[os("0x8")]){const t=Qo(e,os("0x15"));return{type:os("0x10"),content:Qo(e,os("0x18"),t)}}}))}}const rs=["_descriptionFactory","imageTextAlternative","insertImage","ImageEditing","model","chain","*Reset image width*","Block image to inline image","isCollapsed","type","fromPosition","formatInline","_registerLegacyDescription","*Set image width:* %0","*Set image text alternative:* %0","attribute","format","uploadImage","isBefore","backward","getNearestSelectionRange","commandName","_findSuggestions","width","nodeAfter","caption","deletion","nodeBefore","discard","selection","findIndex","find","join","ImageBlockEditing","getClosestSelectedImageElement","createRangeOn","getCaptionFromImageModelElement","registerElementLabel","isBlockImage","getSuggestionCallback","commandParams","formatBlock","registerAttributeLabel","TrackChangesEditing","registerCustomCallback","markBlockFormat","alt","accept","isEqual","previous","_enableDefaultAttributesIntegration","ImageTextAlternativeEditing","imageStylePreApply","convertBlockImageToInline","_suggestionFactory","createRange","end","forceDefaultExecution","newValue","locale","get","FORMAT_IMAGE_SIZE","ImageUploadEditing","*Remove image text alternative*","registerDescriptionCallback","schema","toNext","ELEMENT_CAPTION","imageCaption","Inline image to block image","getContainedElement","change","insertion","toggleImageCaption","detach","start","document","markInsertion","length","toPrevious","imageTypeInline","editor","has","getFirstRange","markDeletion","plugins","convertInlineImageToBlock","ELEMENT_INLINE_IMAGE","ELEMENT_IMAGE","resizedWidth","ImageUtils","forward","addObject","subType","enableCommand","resizeImage","isOwn"];var ss,xs;ss=rs,xs=419,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this[as("0x32")];if(!t[as("0x36")].has(as("0x45")))return;const e=t[as("0x36")].get(as("0xc")),n=t.plugins[as("0x1d")](as("0x3b")),o=t[as("0x1c")];e[as("0x3f")](as("0x44")),e._descriptionFactory.registerElementLabel("imageBlock",(t=>Qo(o,as("0x39"),t))),e[as("0x42")][as("0x6")]("imageInline",(t=>Qo(o,as("0x38"),t))),e[as("0x42")][as("0x6")](as("0x5b"),(()=>Qo(o,as("0x24")))),t[as("0x36")].has(as("0x1f"))&&e[as("0x3f")](as("0x53")),t[as("0x36")][as("0x33")](as("0x2"))&&t.plugins[as("0x33")]("ImageInlineEditing")&&(e[as("0x3f")](as("0x31"),((o,i)=>{const r=n[as("0x3")](t[as("0x46")].document[as("0x5f")]);t[as("0x46")][as("0x28")]((()=>{e[as("0xe")](r,{commandName:as("0x31"),commandParams:[i]},[],as("0x16"))}))})),e[as("0x3f")]("imageTypeBlock",((o,i)=>{t[as("0x46")][as("0x28")]((r=>{let x=n.getClosestSelectedImageElement(t.model[as("0x2d")][as("0x5f")]),a=r[as("0x4")](x);const c=s.LivePosition[as("0x4c")](a[as("0x2c")],as("0x30")),l=s.LivePosition.fromPosition(a[as("0x19")],as("0x23"));e[as("0x1a")]((()=>o(i))),x=n.getClosestSelectedImageElement(t[as("0x46")][as("0x2d")][as("0x5f")]),a=r.createRangeOn(x);const u=r.createRange(c,l);c[as("0x2b")](),l[as("0x2b")](),e[as("0xe")](x,{commandName:as("0x31"),commandParams:[i]},[],as("0x37")),u[as("0x2c")][as("0x54")](a[as("0x2c")])&&e[as("0x2e")](r[as("0x18")](u.start,a[as("0x2c")]),"convertInlineImageToBlock"),a[as("0x19")][as("0x54")](u.end)&&e[as("0x2e")](r[as("0x18")](a[as("0x19")],u[as("0x19")]),as("0x37"))}))})),e[as("0x17")][as("0xd")]("formatBlock","convertInlineImageToBlock",as("0x1"),(()=>!1)),e[as("0x17")][as("0xd")](as("0xa"),as("0x37"),as("0x10"),(()=>!1)),e[as("0x17")][as("0xd")](as("0xa"),"convertInlineImageToBlock",as("0x5e"),e[as("0x17")][as("0x8")](as("0xa"),"",as("0x10"))),e[as("0x17")].registerCustomCallback(as("0x29"),"convertInlineImageToBlock",as("0x1"),(()=>!1)),e[as("0x17")][as("0xd")](as("0x29"),as("0x37"),"discard",(([n])=>{const o=e._suggestionFactory.getSuggestionCallback(as("0x29"),"",as("0x5e"));let i=n[as("0x2c")],r=n[as("0x19")];const s=t.model.schema[as("0x56")](i,as("0x55")),x=t[as("0x46")][as("0x22")][as("0x56")](r,as("0x3c"));s.isCollapsed&&(i=s.start),x[as("0x4a")]&&(r=x[as("0x19")]),o([t[as("0x46")][as("0x18")](i,r)])})),e[as("0x17")][as("0xd")](as("0xa"),as("0x37"),as("0x47"),x),e[as("0x17")][as("0xd")](as("0x29"),as("0x37"),as("0x47"),x)),t.plugins[as("0x33")]("ImageCaptionEditing")&&(e[as("0x3f")](as("0x2a"),((o,i)=>{const r=t.plugins.get("ImageCaptionUtils");let s=n[as("0x3")](t.model.document[as("0x5f")]),x=r.getCaptionFromImageModelElement(s);t[as("0x46")][as("0x28")]((()=>{if(x)return void e[as("0x35")](t[as("0x46")].createRangeOn(x));const a=n[as("0x7")](s);o(i),s=n.getClosestSelectedImageElement(t[as("0x46")].document[as("0x5f")]),x=r[as("0x5")](s),e[as("0x2e")](t[as("0x46")][as("0x4")](x),a?null:as("0x25"))}))})),e._suggestionFactory[as("0xd")](as("0x29"),as("0x25"),as("0x47"),x));const i=[{type:"formatBlock",subType:as("0x15")},{type:as("0x29"),subType:as("0x25")},{type:as("0xa"),subType:"convertInlineImageToBlock"},{type:"insertion",subType:as("0x37")}];function r(t,o){const r=i[as("0x60")]((({type:e,subType:n})=>t.type==e&&t.subType==n)),s=i.findIndex((({type:t,subType:e})=>o[as("0x4b")]==t&&o.subType==e));if(r<0||s<0)return!1;const x=t.getFirstRange(),a=o[as("0x34")]();if((0==r||1==r)&&2==s&&x.isIntersecting(a))return!0;if(2==r&&3==s){const t=e[as("0x58")](x,"insertion").filter((({suggestion:t,meta:e})=>e[as("0x41")]&&"convertInlineImageToBlock"==t[as("0x3e")]));if(t.length>1&&a[as("0x19")][as("0x11")](x[as("0x2c")]))return!0;if(1==t[as("0x2f")]&&(x[as("0x2c")][as("0x11")](a[as("0x19")])||x[as("0x19")][as("0x11")](a[as("0x2c")])))return!0}if(3==r&&3==s&&x[as("0x2c")][as("0x54")](a.start)){const t=x[as("0x19")][as("0x5a")],e=a.start[as("0x5d")];return n[as("0x7")](t)&&t===e}return!1}function x(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}t.plugins.has("ImageResize")&&(e[as("0x13")](as("0x40"),[],[as("0x3a")]),e[as("0x42")][as("0xb")](as("0x3a"),Qo(o,as("0x1e")))),t[as("0x36")][as("0x33")](as("0x14"))&&e._enableDefaultAttributesIntegration(as("0x43"),[],[as("0xf")]),e._descriptionFactory[as("0x21")]((t=>{if(i[as("0x0")]((({type:e,subType:n})=>t[as("0x4b")]==e&&t[as("0x3e")]==n)))return t[as("0x12")]?{}:void 0})),e._descriptionFactory.registerDescriptionCallback((t=>{if(as("0x29")==t[as("0x4b")]||as("0x5c")==t[as("0x4b")]){const e=t[as("0x27")]();if(e&&e.is("element",as("0x5b")))return{type:"insertion"==t[as("0x4b")]?as("0x3d"):"removeObject",element:e,quantity:1}}})),e._descriptionFactory[as("0x21")]((t=>as("0xa")==t[as("0x4b")]&&as("0x37")==t.subType?{type:"format",content:as("0x26")}:as("0xa")==t[as("0x4b")]&&as("0x16")==t[as("0x3e")]?{type:"format",content:as("0x49")}:void 0)),e._descriptionFactory[as("0x21")]((t=>{if(as("0x51")!=t[as("0x4b")])return;const{data:e}=t;if(!e||as("0xf")!=e.key)return;const n=e[as("0x1b")];return n?{type:"format",content:Qo(o,as("0x50"),'"'+n+'"')}:{type:as("0x52"),content:Qo(o,as("0x20"))}})),this[as("0x4e")]()}_registerLegacyDescription(){const t=this[as("0x32")],e=t[as("0x1c")];t[as("0x36")][as("0x1d")]("TrackChangesEditing")[as("0x42")].registerDescriptionCallback((t=>{if(as("0xa")!=t.type&&as("0x4d")!=t[as("0x4b")])return;const{data:n}=t;if(n){if(as("0x43")==n[as("0x57")]){const t=n[as("0x9")][0][as("0x1b")];return t?{type:as("0x52"),content:Qo(e,"*Set image text alternative:* %0",'"'+t+'"')}:{type:as("0x52"),content:Qo(e,"*Remove image text alternative*")}}if("resizeImage"==n.commandName){const t=n[as("0x9")][0][as("0x59")];return t?{type:as("0x52"),content:Qo(e,as("0x4f"),t)}:{type:as("0x52"),content:Qo(e,as("0x48"))}}}}))}}const ls=["src","format","_handleLegacySuggestions","oldValue","commandName","formatInline","_registerLegacyDescription","locale","formatBlock","discard","*Replace image URL*","_descriptionFactory","key","replaceImageSource","editor","newValue","get","plugins","attribute","has","registerCustomCallback","getSuggestionCallback","_suggestionFactory","type","accept","_enableDefaultAttributesIntegration","*Format:* replace image URL","registerDescriptionCallback","TrackChangesEditing"];var us,ds;us=ls,ds=497,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{afterInit(){if(!this.editor[gs("0xd")][gs("0xf")]("ImageEditing"))return;const t=this[gs("0xa")][gs("0x3")],e=this[gs("0xa")][gs("0xd")].get(gs("0x18"));e[gs("0x15")](gs("0x9"),[],[gs("0x19")]),e[gs("0x7")][gs("0x17")]((e=>{if(gs("0xe")!=e[gs("0x13")])return;const{data:n}=e;return n&&"src"==n[gs("0x8")]?n[gs("0xb")]&&n[gs("0x1c")]?{type:gs("0x1a"),content:Qo(t,gs("0x6"))}:{type:gs("0x1a"),content:""}:void 0})),this[gs("0x1b")]()}_handleLegacySuggestions(){const t=this[gs("0xa")][gs("0xd")][gs("0xc")]("TrackChangesEditing");t._suggestionFactory.registerCustomCallback(gs("0x4"),gs("0x9"),gs("0x14"),t[gs("0x12")][gs("0x11")]("formatBlock",null,gs("0x5"))),t._suggestionFactory[gs("0x10")]("formatBlock",gs("0x9"),gs("0x5"),t[gs("0x12")][gs("0x11")](gs("0x4"),null,gs("0x14"))),this[gs("0x2")]()}[gs("0x2")](){const t=this[gs("0xa")],e=t[gs("0x3")];t[gs("0xd")][gs("0xc")](gs("0x18"))._descriptionFactory[gs("0x17")]((t=>{if(gs("0x4")!=t[gs("0x13")]&&gs("0x1")!=t[gs("0x13")])return;const{data:n}=t;return n&&"replaceImageSource"==n[gs("0x0")]?{type:"format",content:Qo(e,gs("0x16"))}:void 0}))}}const ms=["discardSuggestion","plugins","*Format:* %0","ImageStyleEditing","subType","insertion","head","getSuggestionCallback","imageStylePreApply","selection","newRange","accept","forEach","registerDescriptionCallback","author","commandReversedParams","markBlockFormat","markInlineFormat","Users","registerCustomCallback","convertInlineImageToBlock","model","hasSuggestion","commandName","getSuggestion","side","isEqual","end","document","filter","nodeAfter","suggestion","editor","value","imageStyle","isInlineImage","normalizedStyles","_suggestionFactory","_splitMarkerName","setImageNaturalSizeAttributes","createRangeOn","locale","registerPostFixer","enableCommand","isIntersecting","length","getContainedElement","name","formatBlock","get","getChangedMarkers","next","commands","from","imageTypeBlock","join","isInContent","isBlockImage","formatInline","title","imageStylePostApply","getClosestSelectedImageElement","discard","afterInit","change","imageCaption","start","_findSuggestions","getFirstRange","type","refresh","TrackChangesEditing","getSuggestions","differ","isOwn","shouldConvertImageType","ImageUtils","_registerLegacyDescription","has"];var hs,bs;hs=ms,bs=456,function(t){for(;--t;)hs.push(hs.shift())}(++bs);const ps=function(t,e){return ms[t-=0]};class Es extends t.Plugin{[ps("0x2")](){const t=this.editor;if(!t[ps("0x13")][ps("0x11")](ps("0x15")))return;const n=t[ps("0x13")].get(ps("0xa")),o=t.plugins[ps("0x43")](ps("0xf")),i={};n[ps("0x3d")](ps("0x34"),((i,r)=>{const s=t.plugins[ps("0x43")](ps("0x24")).me,x=t.commands[ps("0x43")](ps("0x34"));let a=o[ps("0x0")](t[ps("0x27")][ps("0x2e")][ps("0x1b")]),c=t[ps("0x27")].createRangeOn(a),l=x[ps("0x33")];if(l==r[ps("0x33")])return;const u={commandName:ps("0x34"),commandParams:[r],formatGroupId:(0,e.uid)()};t[ps("0x27")][ps("0x3")]((()=>{if(n[ps("0xb")]()[ps("0x2f")]((t=>t.isInContent&&s==t[ps("0x20")]&&(ps("0x42")==t[ps("0x8")]||ps("0x4c")==t[ps("0x8")])&&(ps("0x1a")==t[ps("0x16")]||"imageStylePostApply"==t[ps("0x16")])&&t[ps("0x7")]()[ps("0x2c")](c)))[ps("0x1e")]((t=>n[ps("0x12")](t[ps("0x18")]))),a=o[ps("0x0")](t[ps("0x27")][ps("0x2e")].selection),c=t[ps("0x27")][ps("0x3a")](a),x.refresh(),t[ps("0x46")].get("imageTypeInline")[ps("0x9")](),t[ps("0x46")][ps("0x43")](ps("0x48"))[ps("0x9")](),l=x[ps("0x33")],l!=r.value)return o[ps("0x35")](a)&&x[ps("0xe")](r[ps("0x33")],a)?(i({...r,setImageSizes:!1}),a=o[ps("0x0")](t.model[ps("0x2e")][ps("0x1b")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],ps("0x1a"))):void(o[ps("0x4b")](a)?n[ps("0x22")](a,u,[],ps("0x4e")):n[ps("0x23")](c,u,ps("0x4e")))}))}));for(const e of t[ps("0x13")].get(ps("0x15"))[ps("0x36")])i[e[ps("0x41")]]=e[ps("0x4d")].toLowerCase();n[ps("0x37")][ps("0x25")](ps("0x42"),ps("0x1a"),ps("0x49"),(()=>!1)),n._suggestionFactory.registerCustomCallback("formatBlock",ps("0x4e"),"join",(()=>!1)),n[ps("0x37")][ps("0x25")](ps("0x4c"),"imageStylePostApply",ps("0x49"),(()=>!1)),n[ps("0x37")].registerCustomCallback(ps("0x42"),ps("0x1a"),ps("0x1d"),(([t])=>{o[ps("0x39")](t.getContainedElement())})),n[ps("0x37")].registerCustomCallback("formatBlock",ps("0x1a"),ps("0x1"),((t,e)=>{n._suggestionFactory[ps("0x19")](ps("0x42"),"",ps("0x1d"))(t,{commandName:e.commandName,commandParams:e[ps("0x21")]})})),n[ps("0x37")].registerCustomCallback(ps("0x42"),ps("0x1a"),"chain",(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const r=[{type:ps("0x42"),subType:ps("0x1a")},{type:ps("0x17"),subType:ps("0x4")},{type:ps("0x42"),subType:"convertInlineImageToBlock"},{type:ps("0x17"),subType:ps("0x26")}];function s(t,e){const i=r.findIndex((({type:e,subType:n})=>t[ps("0x8")]==e&&t.subType==n)),s=r.findIndex((({type:t,subType:n})=>e[ps("0x8")]==t&&e.subType==n));if(i<0||s<0)return!1;const x=t[ps("0x7")](),a=e[ps("0x7")]();if((0==i||1==i)&&2==s&&x[ps("0x3e")](a))return!0;if(2==i&&3==s){const t=n[ps("0x6")](x,ps("0x17"))[ps("0x2f")]((({suggestion:t,meta:e})=>e[ps("0xd")]&&ps("0x26")==t[ps("0x16")]));if(t.length>1&&a[ps("0x2d")].isEqual(x.start))return!0;if(1==t[ps("0x3f")]&&(x[ps("0x5")].isEqual(a[ps("0x2d")])||x.end[ps("0x2c")](a[ps("0x5")])))return!0}if(3==i&&3==s&&x.start.isBefore(a[ps("0x5")])){const t=x[ps("0x2d")][ps("0x30")],e=a.start.nodeBefore;return o[ps("0x4b")](t)&&t===e}return!1}t[ps("0x27")][ps("0x2e")][ps("0x3c")]((()=>{let e=!1;const i=Array[ps("0x47")](t[ps("0x27")][ps("0x2e")][ps("0xc")][ps("0x44")]());for(const{name:t,data:r}of i){const{group:i,type:s,subType:x,id:a}=n[ps("0x38")](t);if(ps("0x31")==i&&n[ps("0x28")](a)){if("formatBlock"==s&&(ps("0x1a")==x||ps("0x4e")==x)){const t=n[ps("0x2a")](a);if(r[ps("0x1c")]){const i=t.getFirstRange()[ps("0x40")]();if(o.isBlockImage(i))continue;n[ps("0x12")](t),e=!0}}if(ps("0x17")==s&&ps("0x4")==x&&!r[ps("0x1c")]){const t=n.getSuggestion(a);t[ps("0x45")]&&t[ps("0x45")][ps("0x4a")]&&(n[ps("0x12")](t[ps("0x45")]),e=!0)}}}return e})),this._registerLegacyDescription(i)}[ps("0x10")](t){const e=this[ps("0x32")],n=e[ps("0x3b")];e[ps("0x13")][ps("0x43")](ps("0xa"))._descriptionFactory[ps("0x1f")]((e=>{if(ps("0x42")!=e[ps("0x8")]&&ps("0x4c")!=e[ps("0x8")])return;const{data:o}=e;if(!o||ps("0x34")!=o[ps("0x29")])return;const i=o.commandParams[0][ps("0x33")];return r=ps("0x2b")===i?Qo(n,"FORMAT_SIDE_IMAGE"):t[i]||i,{type:"format",content:Qo(n,ps("0x14"),r)};var r}))}}const _s=["_setSuggestionData","_handleImportedData","high","_trackChangesValueDuringImport","value","trackChanges","listenTo","Users","forEach","get","editor","lowest","_trackChangesExecuted","dataInsert","plugins","enableCommand","track_changes","execute","importWord","TrackChangesEditing","commands"];var Ts,ys;Ts=_s,ys=411,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{constructor(t){super(t),this[Cs("0xc")]=!1,this._trackChangesExecuted=!1}afterInit(){const t=this[Cs("0x13")],e=t[Cs("0x8")][Cs("0x12")](Cs("0x6")),n=t[Cs("0x8")][Cs("0x12")](Cs("0xe"));e&&(e.on("execute",((t,[,e])=>{this[Cs("0xc")]=n.value,e.collaboration_features[Cs("0x4")]=!this._trackChangesValueDuringImport}),{priority:Cs("0xb")}),this[Cs("0xf")](e,Cs("0x1"),this[Cs("0xa")].bind(this)),this[Cs("0xf")](e,Cs("0x1"),(()=>{this[Cs("0x0")]&&(n[Cs("0x5")](),this[Cs("0x0")]=!1)}),{priority:Cs("0x14")}),t.plugins.get(Cs("0x7"))[Cs("0x3")](Cs("0x6")))}[Cs("0xa")](t,e){const{suggestions:n}=e,o=this[Cs("0x13")].commands[Cs("0x12")](Cs("0xe")),i=o[Cs("0xd")];this._trackChangesValueDuringImport!==i&&(o[Cs("0x5")](),this._trackChangesExecuted=!0),n&&n[Cs("0x11")]((({id:t,type:e,author:n,created_at:o})=>{const i={id:t,type:e,authorId:this[Cs("0x13")][Cs("0x2")][Cs("0x12")](Cs("0x10")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:Cs("0x6")}}};this.editor.plugins[Cs("0x12")]("TrackChangesEditing")[Cs("0x9")](i)}))}}const ks=["outdentBlock","indentBlock","get","_registerLegacyDescription","locale","outdent","_descriptionFactory","*Indent:* %0","indent","has","registerAttributeLabel","commandName","editor","getItemLabel","TrackChangesEditing","afterInit","_registerBlockAttribute","getItems","enableCommand","blockIndent","plugins","IndentBlock","type"];var Is,Rs;Is=ks,Rs=259,function(t){for(;--t;)Is.push(Is.shift())}(++Rs);const Ss=function(t,e){return ks[t-=0]};class vs extends t.Plugin{[Ss("0x9")](){const t=this[Ss("0x6")],e=t[Ss("0xe")][Ss("0x13")](Ss("0x8"));if(t.plugins.has("IndentEditing")&&(e[Ss("0xc")](Ss("0x2")),e[Ss("0xc")](Ss("0x16"))),t[Ss("0xe")][Ss("0x3")](Ss("0xf")))for(const t of[Ss("0x12"),Ss("0x11")])e._enableDefaultAttributesIntegration(t);const n=t[Ss("0x15")];e[Ss("0xa")](Ss("0xd")),e[Ss("0x0")][Ss("0x4")](Ss("0xd"),Qo(n,"FORMAT_INDENT")),this[Ss("0x14")]()}[Ss("0x14")](){const t=this[Ss("0x6")],e=t.locale,n=t[Ss("0xe")][Ss("0x13")](Ss("0x8"));n._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[Ss("0x10")])return;const{data:o}=t;if(!o)return;if(Ss("0x12")!=o[Ss("0x5")]&&Ss("0x11")!=o.commandName)return;const i=t[Ss("0xb")]()[0],r=n[Ss("0x0")][Ss("0x7")](i);return Ss("0x12")==o.commandName?{type:"format",content:Qo(e,Ss("0x1"),r)}:"outdentBlock"==o[Ss("0x5")]?{type:"format",content:Qo(e,"*Outdent:* %0",r)}:void 0}))}}var Ns,Ls,Ms=["input","init","plugins","requires","enableCommand","TrackChangesEditing","get"];Ns=Ms,Ls=488,function(t){for(;--t;)Ns.push(Ns.shift())}(++Ls);var ws=function(t,e){return Ms[t-=0]};class Os extends t.Plugin{static get[ws("0x5")](){return[Xi.Input]}[ws("0x3")](){this.editor[ws("0x4")][ws("0x1")](ws("0x0"))[ws("0x6")](ws("0x2"))}}const Fs=["registerDescriptionCallback","manualDecorators","toLowerCase","type","editor","TrackChangesEditing","locale","label","link (","commandName","LinkEditing","unlink","*Remove link*","attribute","_registerLegacyDescription","registerAttributeLabel","format","commands","formatInline","map","has","newValue","plugins","commandParams","get","*Set link:* %0","_enableDefaultAttributesIntegration","link","linkHref","_descriptionFactory"];var Ds,Bs;Ds=Fs,Bs=189,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{afterInit(){const t=this.editor;if(!t[Ps("0xd")][Ps("0xb")](Ps("0x1")))return;const e=t[Ps("0xd")][Ps("0xf")](Ps("0x1a")),n=t[Ps("0x8")][Ps("0xf")](Ps("0x12"));e._enableDefaultAttributesIntegration(Ps("0x12"),[Ps("0x13"),...n.manualDecorators[Ps("0xa")]((t=>t.id))]),e[Ps("0x11")](Ps("0x2"));for(const t of n[Ps("0x16")])e[Ps("0x14")][Ps("0x6")](t.id,Ps("0x1d")+t[Ps("0x1c")][Ps("0x17")]()+")");e[Ps("0x14")][Ps("0x15")]((e=>{if(Ps("0x4")!=e[Ps("0x18")])return;const{data:n}=e;if(!n||Ps("0x13")!=n.key)return;const o=n[Ps("0xc")],i=t[Ps("0x1b")];return{type:"format",content:null==o?Qo(i,Ps("0x3")):Qo(i,Ps("0x10"),'"'+o+'"')}})),this[Ps("0x5")]()}[Ps("0x5")](){const t=this[Ps("0x19")],e=t[Ps("0x1b")];t.plugins[Ps("0xf")](Ps("0x1a"))[Ps("0x14")][Ps("0x15")]((t=>{if(Ps("0x9")!=t[Ps("0x18")])return;const{data:n}=t;if(n){if(Ps("0x12")==n.commandName){const t=n[Ps("0xe")][0];return{type:Ps("0x7"),content:Qo(e,Ps("0x10"),'"'+t+'"')}}return Ps("0x2")==n[Ps("0x0")]?{type:Ps("0x7"),content:Qo(e,Ps("0x3"))}:void 0}}))}}const js=["getSelectedBlocks","bulleted","*Indent:* %0","slice","model","filter","outdentList","formatBlock","numbered","*Outdent:* %0","execute","parent","registerDescriptionCallback","TrackChangesEditing","paragraph","todoList","commands","List","previousSibling","registerElementLabel","format","findIndex","element","formatInline","from","indentList","bulletedList","*Uncheck item*","replace","afterInit","numberedList","plugins","has","listItem","type","createPositionAt","checkChild","enableCommand","editor","ELEMENT_BULLETED_LIST","ELEMENT_TODO_LIST","*Change to:* %0","isObject","markBlockFormat","before","listIndent","selection","push","ELEMENT_LIST_ITEM","document","commandName","checkTodoList","add","forceValue","createRange","value","end","get","getAttribute","nextSibling","listType","change","_selectedElements","name"];var Gs,Vs;Gs=js,Vs=202,function(t){for(;--t;)Gs.push(Gs.shift())}(++Vs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{[Hs("0x13")](){const t=this[Hs("0x1c")],e=t.locale;if(!t[Hs("0x15")][Hs("0x16")]("LegacyListEditing"))return;const n=t[Hs("0x15")][Hs("0x2f")](Hs("0x3")),o=t[Hs("0x15")].has("LegacyTodoListEditing");function i(e){return()=>{const o=t[Hs("0x3a")][Hs("0x27")][Hs("0x24")],i=t.commands.get(e);if(i[Hs("0x2d")])return void t[Hs("0x0")](Hs("0x4"),{});const r=e[Hs("0x39")](0,-4),s=function(t,e,n){let o=Array[Hs("0xe")](t)[Hs("0x3b")]((t=>{return e=t,(o=n)[Hs("0x1a")](e[Hs("0x1")],Hs("0x17"))&&!o[Hs("0x20")](e);var e,o}));o=o[Hs("0x3b")]((t=>!t.is(Hs("0xc"),"listItem")||t[Hs("0x30")](Hs("0x32"))!=e));const i=new Set;for(const t of o)t.is("element",Hs("0x17"))?i[Hs("0x2a")](Ws(t)):i[Hs("0x2a")](t);return Array[Hs("0xe")](i)}(o[Hs("0x36")](),r,t[Hs("0x3a")].schema);t[Hs("0x3a")][Hs("0x33")]((()=>{for(const t of s)n[Hs("0x21")](t,{commandName:e,commandParams:[{forceValue:!i[Hs("0x2d")]}],formatGroupId:"blockName"},Ks(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Hs("0xe")](t);const n=e[Hs("0xb")]((t=>Hs("0x17")!=t[Hs("0x35")]));return n>-1&&(e=e[Hs("0x39")](0,n)),e}(t[Hs("0x3a")][Hs("0x27")].selection[Hs("0x36")]()),i=t.model[Hs("0x2c")](t[Hs("0x3a")][Hs("0x19")](o[0],Hs("0x22")),t.model[Hs("0x19")](o[o.length-1],Hs("0x2e")));t.model[Hs("0x33")]((()=>{n[Hs("0x21")](i,{commandName:e,commandParams:[],formatGroupId:Hs("0x23")},function(t){const e=new Set;for(const n of t){let t=n[Hs("0x31")];for(;t&&t[Hs("0x30")]("listIndent")>n[Hs("0x30")](Hs("0x23"));)e.add(t),t=t.nextSibling}return Array.from(e)}(o))}))}}n.enableCommand(Hs("0x14"),i("numberedList")),n[Hs("0x1b")](Hs("0x10"),i(Hs("0x10"))),o&&n.enableCommand("todoList",i("todoList")),n[Hs("0x1b")](Hs("0xf"),r("indentList")),n.enableCommand(Hs("0x3c"),r(Hs("0x3c"))),o&&n[Hs("0x1b")](Hs("0x29"),(()=>{const e=t[Hs("0x6")][Hs("0x2f")](Hs("0x29")),o=Array[Hs("0xe")](e[Hs("0x34")]);o[Hs("0x3b")]((t=>t[Hs("0x30")]("todoListChecked")!=e[Hs("0x2d")])),t[Hs("0x3a")][Hs("0x33")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:Hs("0x29"),commandParams:[{forceValue:!e[Hs("0x2d")]}]})}))})),n._descriptionFactory[Hs("0x9")](Hs("0x17"),(t=>Qo(e,Hs("0x26"),t))),n._descriptionFactory[Hs("0x2")]((t=>{if(Hs("0x3d")!=t[Hs("0x18")]&&Hs("0xd")!=t[Hs("0x18")])return;const{data:n}=t;if(n){if(Hs("0x14")==n[Hs("0x28")]||"bulletedList"==n[Hs("0x28")]||Hs("0x5")==n[Hs("0x28")])switch(n[Hs("0x28")][Hs("0x12")](Hs("0x7"),"")){case Hs("0x37"):return o(Qo(e,Hs("0x1d")));case Hs("0x3e"):return o(Qo(e,"ELEMENT_NUMBERED_LIST"));case"todo":return o(Qo(e,Hs("0x1e")))}if(Hs("0xf")==n.commandName)return{type:Hs("0xa"),content:Qo(e,Hs("0x38"),Qo(e,Hs("0x26")))};if(Hs("0x3c")==n[Hs("0x28")])return{type:Hs("0xa"),content:Qo(e,Hs("0x3f"),Qo(e,Hs("0x26")))};if(Hs("0x29")==n.commandName)return n.commandParams[0][Hs("0x2b")]?{type:Hs("0xa"),content:Qo(e,"*Check item*")}:{type:Hs("0xa"),content:Qo(e,Hs("0x11"))}}function o(t){return{type:"format",content:Qo(e,Hs("0x1f"),t)}}}))}}function Ws(t){const e=t[Hs("0x30")]("listIndent");if(0==e)return t;let n=t;for(;t[Hs("0x8")]&&t.previousSibling.is(Hs("0xc"),Hs("0x17"));){const o=t[Hs("0x8")][Hs("0x30")](Hs("0x23"));if(o==e)n=t[Hs("0x8")];else if(o<e)break;t=t[Hs("0x8")]}return n}function Ks(t){const e=[];if(t.is(Hs("0xc"),"listItem")&&t[Hs("0x30")](Hs("0x23"))>0){let n=t[Hs("0x31")];for(;n&&Hs("0x17")==n[Hs("0x35")]&&n[Hs("0x30")](Hs("0x23"))==t[Hs("0x30")]("listIndent");)e[Hs("0x25")](n),n=n.nextSibling}return e}const qs=["length","styles","_getTranslationKeyForListStyle","from","listReversed","listType","getSelectedBlocks","getListTypeFromListStyleType","_getSuggestionBlocks","listStart","before","afterInit","editor","getFirstPosition","selection","type","listStyle","get","*Format:* set start index to %0","map","reversed","toUpperCase","markMultiRangeBlockFormat","replace","TrackChangesEditing","push","handleDescriptions","*Change to:* %0","handleListStartCommand","registerDescriptionCallback","LegacyListUtils","model","change","plugins","createRange","handleListReversedCommand","config","getLastPosition","_getSuggestionBlocksForListStyle","format","commandName","getAttribute","bind","enableCommand","startIndex","handleListStyleCommand","createPositionAt","*Format:* set order to regular","listItem","getSiblingNodes","element","forward","commandParams","filter","flat","parent","document","numbered","formatInline","backward"];var Xs,$s;Xs=qs,$s=270,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0x29")](){if(!this[Zs("0x2a")].plugins.has("LegacyListPropertiesEditing"))return;const t=this[Zs("0x2a")][Zs("0x6")][Zs("0x2f")]("list.properties"),e=this[Zs("0x2a")][Zs("0x3")][Zs("0x2f")](Zs("0x36"));t[Zs("0x1f")]&&e.enableCommand(Zs("0x2e"),this[Zs("0xf")].bind(this)),t[Zs("0x32")]&&e.enableCommand("listReversed",this[Zs("0x5")][Zs("0xc")](this)),t.startIndex&&e[Zs("0xd")](Zs("0x27"),this[Zs("0x3a")][Zs("0xc")](this)),e._descriptionFactory[Zs("0x3b")](this.handleDescriptions[Zs("0xc")](this))}handleListStyleCommand(t,e={}){const n=this[Zs("0x2a")][Zs("0x3")][Zs("0x2f")](Zs("0x36")),o=this[Zs("0x8")]();this[Zs("0x2a")][Zs("0x1")][Zs("0x2")]((()=>{n[Zs("0x34")](o,{commandName:Zs("0x2e"),commandParams:[{type:e.type}],formatGroupId:Zs("0x2e")})}))}[Zs("0x5")](t,e={}){const n=this[Zs("0x2a")][Zs("0x3")][Zs("0x2f")]("TrackChangesEditing"),o=this[Zs("0x26")]((t=>t.is("element",Zs("0x12"))&&Zs("0x1b")===t[Zs("0xb")]("listType")));if(o[Zs("0x1e")]<1)return;const i=o.map((t=>this[Zs("0x2a")].model[Zs("0x4")](this[Zs("0x2a")][Zs("0x1")].createPositionAt(t,Zs("0x28")),this.editor[Zs("0x1")].createPositionAt(t,0))));this[Zs("0x2a")][Zs("0x1")][Zs("0x2")]((()=>{n[Zs("0x34")](i,{commandName:Zs("0x22"),commandParams:[{reversed:e[Zs("0x32")]}],formatGroupId:Zs("0x22")})}))}[Zs("0x3a")](t,e={}){const n=this[Zs("0x2a")][Zs("0x3")][Zs("0x2f")]("TrackChangesEditing"),o=this[Zs("0x26")]((t=>t.is("element","listItem")&&Zs("0x1b")===t[Zs("0xb")](Zs("0x23"))));if(o.length<1)return;const i=o[Zs("0x31")]((t=>this[Zs("0x2a")][Zs("0x1")].createRange(this[Zs("0x2a")][Zs("0x1")][Zs("0x10")](t,Zs("0x28")),this.editor[Zs("0x1")].createPositionAt(t,0))));this[Zs("0x2a")][Zs("0x1")][Zs("0x2")]((()=>{n[Zs("0x34")](i,{commandName:Zs("0x27"),commandParams:[{startIndex:e[Zs("0xe")]}],formatGroupId:Zs("0x27")})}))}[Zs("0x38")](t){if("formatBlock"!=t[Zs("0x2d")]&&Zs("0x1c")!=t[Zs("0x2d")])return;const e=this[Zs("0x2a")].locale,{data:n}=t;if(!n)return;let o,i;switch(n[Zs("0xa")]){case"listStyle":o=Zs("0x39"),i={type:Zs("0x9"),content:Qo(e,o,Qo(e,this[Zs("0x20")](n[Zs("0x16")][0][Zs("0x2d")])))};break;case Zs("0x22"):o=n[Zs("0x16")][0][Zs("0x32")]?"*Format:* set order to reversed":Zs("0x11"),i={type:Zs("0x9"),content:Qo(e,o)};break;case"listStart":o=Zs("0x30"),i={type:Zs("0x9"),content:Qo(e,o,n[Zs("0x16")][0][Zs("0xe")])}}return i}[Zs("0x8")](){var t,e,n,o;const i=this[Zs("0x2a")][Zs("0x3")].get(Zs("0x0"));let r=Array[Zs("0x21")](this[Zs("0x2a")][Zs("0x1")].document.selection[Zs("0x24")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Zs("0x14"),Zs("0x12")))&&r.unshift(...i[Zs("0x13")](this[Zs("0x2a")][Zs("0x1")][Zs("0x1a")][Zs("0x2c")][Zs("0x2b")](),Zs("0x1d"))),(null===(e=r[r[Zs("0x1e")]-1])||void 0===e?void 0:e.is(Zs("0x14"),Zs("0x12")))&&r[Zs("0x37")](...i.getSiblingNodes(this.editor[Zs("0x1")][Zs("0x1a")][Zs("0x2c")][Zs("0x7")](),"forward")),r=[...new Set(r)],(null===(o=null===(n=this[Zs("0x2a")].model[Zs("0x1a")].selection[Zs("0x2b")]())||void 0===n?void 0:n[Zs("0x19")])||void 0===o?void 0:o.is("element",Zs("0x12")))&&(r=r.filter((t=>t.is("element",Zs("0x12"))))),r}[Zs("0x26")](t){const e=this[Zs("0x2a")][Zs("0x3")][Zs("0x2f")](Zs("0x0"));let n=Array[Zs("0x21")](this[Zs("0x2a")][Zs("0x1")][Zs("0x1a")][Zs("0x2c")][Zs("0x24")]())[Zs("0x17")](t)[Zs("0x31")]((t=>{const n=this.editor[Zs("0x1")][Zs("0x10")](t,0);return[...e[Zs("0x13")](n,Zs("0x1d")),...e[Zs("0x13")](n,Zs("0x15"))]}))[Zs("0x18")]();return n=[...new Set(n)],n}[Zs("0x20")](t){return"ELEMENT_"+this.editor[Zs("0x3")][Zs("0x2f")](Zs("0x0"))[Zs("0x25")](t)[Zs("0x33")]()+"_LIST_"+t[Zs("0x33")]()[Zs("0x35")](/-/g,"_")}}const Js=["high","afterInit","registerElementLabel","media","_descriptionFactory","options","MediaEmbedEditing","elementToElement","locale","attribute:url:media","data","for","TrackChangesEditing","has","editor","conversion","downcastDispatcher","stop","plugins","createEmptyElement","enableCommand","dataDowncast","showSuggestionHighlights"];var Qs,tx;Qs=Js,tx=308,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0xf")](){const t=this[ex("0x5")];if(!t[ex("0x9")][ex("0x4")](ex("0x14")))return;const e=t[ex("0x9")].get(ex("0x3")),n=t[ex("0x16")];e[ex("0xb")]("mediaEmbed"),e[ex("0x12")][ex("0x10")](ex("0x11"),(t=>Qo(n,"ELEMENT_MEDIA",t))),t[ex("0x6")][ex("0x2")](ex("0xc"))[ex("0x15")]({model:ex("0x11"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[ex("0xa")]("div")},converterPriority:ex("0xe")}),t[ex("0x1")][ex("0x7")].on(ex("0x0"),((t,e,n)=>{n[ex("0x13")][ex("0xd")]&&t[ex("0x8")]()}),{priority:ex("0xe")})}}const ox=["mention","TrackChangesEditing","plugins","get","afterInit","has","MentionEditing"];var ix,rx;ix=ox,rx=297,function(t){for(;--t;)ix.push(ix.shift())}(++rx);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x1")](){const t=this.editor;t[sx("0x6")][sx("0x2")](sx("0x3"))&&t[sx("0x6")][sx("0x0")](sx("0x5")).enableCommand(sx("0x4"))}}const ax=["PageBreakEditing","TrackChangesEditing","afterInit","locale","plugins","pageBreak","has","registerElementLabel","enableCommand","get","_descriptionFactory"];var cx,lx;cx=ax,lx=287,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x1")](){const t=this.editor;if(!t[ux("0x3")][ux("0x5")](ux("0xa")))return;t[ux("0x3")][ux("0x8")](ux("0x0"))[ux("0x7")](ux("0x4"));const e=t[ux("0x3")].get("TrackChangesEditing"),n=t[ux("0x2")];e[ux("0x9")][ux("0x6")](ux("0x4"),(t=>Qo(n,"ELEMENT_PAGE_BREAK",t)))}}const gx=["schema","*Insert:* %0","commandName","addClass","registerDescriptionCallback","registerElementLabel","isBlock","Paragraph","start","ck-suggestion-marker--active","data","editing","bindElementToMarker","$text","TrackChangesEditing","markerRange","addMarker:suggestion:insertion","plugins","name","*Change to:* %0","end","consume","highest","activeMarkers","insertion","markerName","writer","_registerLegacyDescription","locale","ELEMENT_PARAGRAPH","consumable","type","paragraph","editor","downcastDispatcher","model","createUIElement","options","insertParagraph","mapper","span","getFirstRange","isTouching","isLimit","get","nodeAfter","_descriptionFactory","includes"];var fx,mx;fx=gx,mx=205,function(t){for(;--t;)fx.push(fx.shift())}(++mx);const hx=function(t,e){return gx[t-=0]};class bx extends t.Plugin{afterInit(){const t=this.editor;if(!t[hx("0x4")].has(hx("0x2a")))return;const e=t.locale,n=t[hx("0x4")][hx("0x1f")](hx("0x1"));n[hx("0x21")][hx("0x28")](hx("0x13"),(t=>Qo(e,hx("0x10"),t))),n._enableDefaultAttributesIntegration(hx("0x13")),n.enableCommand(hx("0x19")),t[hx("0x2e")][hx("0x15")].on(hx("0x3"),px(t),{priority:hx("0x9")}),t[hx("0x2d")].downcastDispatcher.on(hx("0x3"),((e,n,o)=>{o[hx("0x18")].showSuggestionHighlights&&px(t,{showActiveMarker:!1})(e,n,o)}),{priority:hx("0x9")});const o=n[hx("0x21")];o[hx("0x27")]((n=>{if("insertion"!==n.type)return;const{start:i,end:r}=n[hx("0x1c")]();if(!i[hx("0x1d")](r)||!i[hx("0x20")])return;const s=t[hx("0x16")].schema,x=i[hx("0x20")];return s[hx("0x29")](x)&&!s[hx("0x1e")](x)&&s.checkChild(x,hx("0x0"))?{type:hx("0xb"),content:Qo(e,hx("0x24"),o.getItemLabel(x,1))}:void 0})),this[hx("0xe")]()}[hx("0xe")](){const t=this[hx("0x14")],e=t[hx("0xf")];t[hx("0x4")][hx("0x1f")](hx("0x1"))[hx("0x21")][hx("0x27")]((t=>{if("formatBlock"!=t[hx("0x12")])return;const{data:n}=t;return n&&hx("0x13")==n[hx("0x25")]?{type:"format",content:Qo(e,hx("0x6"),Qo(e,hx("0x10")))}:void 0}))}}function px(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t[hx("0x4")][hx("0x1f")](hx("0x1")),s=o[hx("0x2")][hx("0x2b")],x=o[hx("0x2")][hx("0x7")],a=t[hx("0x16")][hx("0x23")];if(!s[hx("0x1d")](x)||!s.nodeAfter)return;const c=s[hx("0x20")];if(a[hx("0x29")](c)&&!a[hx("0x1e")](c)&&a.checkChild(c,hx("0x0"))){if(!i[hx("0x11")][hx("0x8")](o[hx("0x2")],n[hx("0x5")]))return;const t=i[hx("0xd")][hx("0x17")](hx("0x1b"),{class:"ck-suggestion-marker-split"}),s=i[hx("0x1a")].toViewPosition(x);e&&r[hx("0xa")][hx("0x22")](o[hx("0xc")])&&i[hx("0xd")][hx("0x26")](hx("0x2c"),t),i[hx("0xd")].insert(s,t),i[hx("0x1a")][hx("0x2f")](t,o[hx("0xc")])}}}const Ex=["format","afterInit","TrackChangesEditing","_enableDefaultAttributesIntegration","type","registerDescriptionCallback","locale","_registerLegacyDescription","formatInline","commandName","editor","has","*Remove all formatting*","plugins","RemoveFormatEditing","formatBlock","removeFormat"];var _x,Tx;_x=Ex,Tx=300,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x7")](){const t=this[yx("0x10")];t[yx("0x2")][yx("0x0")](yx("0x3"))&&(t.plugins.get(yx("0x8"))[yx("0x9")]("removeFormat"),this[yx("0xd")]())}_registerLegacyDescription(){const t=this[yx("0x10")];t.plugins.get(yx("0x8"))._descriptionFactory[yx("0xb")]((e=>{if(yx("0x4")!=e[yx("0xa")]&&yx("0xe")!=e[yx("0xa")])return;const{data:n}=e;return n&&yx("0x5")==n[yx("0xf")]?{type:yx("0x6"),content:Qo(t[yx("0xc")],yx("0x1"))}:void 0}))}}const Ax=["goToNextRestrictedEditingException","get","RestrictedEditingModeEditing","acceptSuggestion","discardSuggestion","enableCommand","goToPreviousRestrictedEditingException","afterInit","plugins","editor","discardAllSuggestions"];var kx,Ix;kx=Ax,Ix=292,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Rx=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{[Rx("0x1")](){const t=this[Rx("0x3")];if(!t[Rx("0x2")].has(Rx("0x7")))return;const e=t[Rx("0x2")][Rx("0x6")]("TrackChangesEditing");e[Rx("0xa")](Rx("0x0")),e[Rx("0xa")](Rx("0x5"));const n=t[Rx("0x2")].get("RestrictedEditingModeEditing");n.enableCommand("trackChanges"),n[Rx("0xa")](Rx("0x8")),n[Rx("0xa")](Rx("0x9")),n.enableCommand("acceptAllSuggestions"),n[Rx("0xa")](Rx("0x4")),n.enableCommand("acceptSelectedSuggestions"),n[Rx("0xa")]("discardSelectedSuggestions")}}const vx=["get","options","markerRange","merge","addMarker:suggestion:insertion","test","getItems","mapper","requires","writer","ck-suggestion-marker-","locale","ELEMENT_LINE_BREAK","plugins","name","includes","insert","high","split","editing","init","enableCommand","model","markerName","element","data","span","addMarker:suggestion:deletion","bindElementToMarker","showSuggestionHighlights","downcastDispatcher","editor","TrackChangesEditing","softBreak","toViewPosition","createPositionBefore"];var Nx,Lx;Nx=vx,Lx=246,function(t){for(;--t;)Nx.push(Nx.shift())}(++Lx);const Mx=function(t,e){return vx[t-=0]};class wx extends t.Plugin{static get[Mx("0xe")](){return[hr.ShiftEnter]}[Mx("0x1a")](){const t=this[Mx("0x1")],e=t[Mx("0x13")][Mx("0x6")]("TrackChangesEditing");e[Mx("0x1b")]("shiftEnter"),t[Mx("0x19")].downcastDispatcher.on(Mx("0xa"),Ox(t),{priority:Mx("0x17")}),t[Mx("0x19")].downcastDispatcher.on(Mx("0x21"),Ox(t),{priority:"high"}),t[Mx("0x1f")][Mx("0x0")].on("addMarker:suggestion",((e,n,o)=>{o[Mx("0x7")][Mx("0x23")]&&Ox(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory.registerElementLabel(Mx("0x3"),(e=>Qo(t[Mx("0x11")],Mx("0x12"),e)))}}function Ox(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t.plugins[Mx("0x6")](Mx("0x2"));if(!i.consumable[Mx("0xb")](o[Mx("0x8")],n[Mx("0x14")]))return;const s=t[Mx("0x1c")];for(const t of o.markerRange[Mx("0xc")]()){if(!t.is(Mx("0x1e"),Mx("0x3")))continue;const n="deletion"==o[Mx("0x1d")][Mx("0x18")](":")[1]?Mx("0x9"):Mx("0x18"),x=i[Mx("0xf")].createUIElement(Mx("0x20"),{class:Mx("0x10")+n}),a=i[Mx("0xd")][Mx("0x4")](s[Mx("0x5")](t));e&&r.activeMarkers[Mx("0x15")](o[Mx("0x1d")])&&i[Mx("0xf")].addClass("ck-suggestion-marker--active",x),i[Mx("0xf")][Mx("0x16")](a,x),i[Mx("0xd")][Mx("0x22")](x,o[Mx("0x1d")])}}}const Fx=["commandName","format","editor","_descriptionFactory","selection","commandParams","formatBlock","TrackChangesEditing","restrictedEditingException","has","model","isCollapsed","formatInline","FORMAT_RESTRICTED_DISABLED","plugins","forceValue","registerDescriptionCallback","StandardEditingModeEditing","get","type","locale","enableCommand","getRanges"];var Dx,Bx;Dx=Fx,Bx=441,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{afterInit(){const t=this[Px("0x15")],e=t[Px("0x6")],n=t[Px("0x10")];if(!t[Px("0xa")][Px("0x5")](Px("0xd")))return;const o=t.plugins[Px("0xe")](Px("0x3")),i=Px("0x4"),r=t.commands[Px("0xe")](i);o[Px("0x11")](i,((t,n={})=>{const s=e.document[Px("0x0")];if(s[Px("0x7")])return void t(n);const x=void 0!==n[Px("0xb")]?n[Px("0xb")]:!r.value;e.change((()=>{const t=Array.from(s[Px("0x12")]());for(const n of t){const t=x?[n]:Qi(i,n,e);for(const e of t)o.markInlineFormat(e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),o[Px("0x16")][Px("0xc")]((t=>{if(Px("0x2")!=t.type&&Px("0x8")!=t[Px("0xf")])return;const{data:e}=t;return e&&e[Px("0x13")]==i?e[Px("0x1")][0].forceValue?{type:Px("0x14"),content:Qo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Px("0x14"),content:Qo(n,Px("0x9"))}:void 0}))}}const jx=["_descriptionFactory","_registerLegacyDescription","_registerBlockAttribute","config","add","forceValue","type","style","toLowerCase","get","afterInit","_registerInlineAttribute","formatBlock","Style","locale","getGhsAttributeNameForElement","editor","DataSchema","definitions","normalizeConfig","inline","TrackChangesEditing","*Set format:* %0","_enableDefaultAttributesIntegration","registerAttributeLabel","ghsAttributes","has","commandName","format","plugins","formatInline","commandParams","FORMAT_STYLE","styleName","GeneralHtmlSupport"];var Gx,Vx;Gx=jx,Vx=384,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{[Hx("0xb")](){const t=this[Hx("0x11")];if(!t[Hx("0x1e")][Hx("0x1b")](Hx("0xe"))||!t[Hx("0x1e")][Hx("0x1b")](Hx("0x12")))return;const e=t[Hx("0x1e")][Hx("0xa")](Hx("0x16")),n=t[Hx("0xf")],o=t[Hx("0x4")][Hx("0xa")](Hx("0x8")),i=t.plugins[Hx("0xa")](Hx("0x0")),r=t.plugins[Hx("0xa")]("StyleUtils")[Hx("0x14")](t[Hx("0x1e")].get("DataSchema"),o[Hx("0x13")]);e[Hx("0x18")](Hx("0x8"));const s=new Set;for(const t of r.block){const e=i[Hx("0x10")](t.element);s.add(e)}const x=new Set;for(const t of r[Hx("0x15")]){const e=i[Hx("0x10")](t.element);x[Hx("0x5")](e);for(const e of t[Hx("0x1a")])x[Hx("0x5")](e)}for(const t of s)e[Hx("0x3")](t),e[Hx("0x1")][Hx("0x19")](t,Qo(n,"FORMAT_STYLE"));for(const t of x)e[Hx("0xc")](t),e[Hx("0x1")][Hx("0x19")](t,Qo(n,Hx("0x21")));this[Hx("0x2")]()}_registerLegacyDescription(){const t=this[Hx("0x11")],e=t[Hx("0xf")];t.plugins[Hx("0xa")](Hx("0x16"))[Hx("0x1")].registerDescriptionCallback((t=>{if(Hx("0xd")!=t[Hx("0x7")]&&Hx("0x1f")!=t[Hx("0x7")])return;const{data:n}=t;return n&&Hx("0x8")===n[Hx("0x1c")]?n.commandParams[0][Hx("0x6")]?{type:Hx("0x1d"),content:Qo(e,Hx("0x17"),n.commandParams[0][Hx("0x22")][Hx("0x9")]())}:{type:"format",content:Qo(e,"*Remove format:* %0",n[Hx("0x20")][0][Hx("0x22")][Hx("0x9")]())}:void 0}))}}const Wx=["element","forceValue","last","left","order","push","startsWith","enableCommand","_getCoordsForCells","getAttribute","max","toViewElement","isEqual","length","ELEMENT_TABLE_COLUMN_WITH_TEXT","ELEMENT_TABLE_WITH_TEXT","end","getChildren","ELEMENT_TABLE_ROW_WITH_TEXT","low","model","join","ELEMENT_TABLE_COLUMN","getSelectionAffectedTableCells","colspan","removeClass","showSuggestionHighlights","above","data","position","first","rootName","getCellLocation","fromRange","afterInit","editor","root","markMultiRangeDeletion","MIN_SAFE_INTEGER","registerElementLabel","change","_tableSuggestions","mapper","addClass","removeTableRow","getFirstRange","maxColumn","downcastDispatcher","getChanges","*Remove:* %0","hasAttribute","getItems","_descriptionFactory","min","accept","registerCustomCallback","includes","get","writer","filter","getContainedElement","tableColumn","classes","registerPostFixer","rowspan","execute","substr","createRangeIn","TableUtils","discard","oldRange","*Insert:* %0","isIntersectingWithRange","registerDescriptionCallback","some","ELEMENT_TABLE","differ","TrackChangesEditing","document","isArray","tableCell","getRanges","_suggestionFactory","_acceptFormatSuggestionCallbackFactory","isTouching","insertTableColumnLeft","markMultiRangeInsertion","ELEMENT_TABLE_ROW","createTableWalker","options","minColumn","isInContent","nodeAfter","toLowerCase","maxRow","findAncestor","from","start","_splitMarkerName","insertion","tableRow","nodeBefore","name","minRow","tablePaste","$graveyard","type","MAX_SAFE_INTEGER","$textProxy","insert","map","values","_getSuggestionCoords","removeTableColumn","selectTableColumn","refresh","TableEditing","cell","highest","_tablePostFixingSubtypes","item","getColumnIndexes","batch","detach","subType","insertTableColumnRight","_setupColumnsRowsFixing","setSelection","enqueueChange","commands","plugins","selection","getRowIndexes","add","createRangeOn","suggestion","createPositionAt","table","deletion","has","span"];var Kx,qx;Kx=Wx,qx=417,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Wx[t-=0]};class $x extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Xx("0x6a"),Xx("0x43")],this[Xx("0x2f")]=new Set}[Xx("0x28")](){const t=this[Xx("0x29")],e=t[Xx("0x1a")].document[Xx("0x89")];if(!t[Xx("0x88")][Xx("0x4")](Xx("0x7a")))return;const n=t.locale,o=t.plugins[Xx("0x3f")]("TrackChangesEditing"),i=t[Xx("0x88")][Xx("0x3f")]("TableUtils");o[Xx("0x3a")][Xx("0x2d")]("table",(t=>Qo(n,Xx("0x51"),t))),this._setupColumnsRowsFixing(),o[Xx("0xd")]("insertTable"),o[Xx("0xd")]("selectTableRow"),o[Xx("0xd")](Xx("0x78"));for(const n of["insertTableRowAbove","insertTableRowBelow"]){const r=t[Xx("0x87")][Xx("0x3f")](n);o[Xx("0xd")](n,(n=>{t[Xx("0x1a")][Xx("0x2e")]((t=>{n();const s=Xx("0x21")===r.order,x=i[Xx("0x1d")](e),a=i[Xx("0x8a")](x),c=s?a[Xx("0x24")]-1:a[Xx("0x8")]+1,l=x[0].findAncestor(Xx("0x2")),u=i[Xx("0x5e")](l,{startRow:c,endRow:c}),d=Array[Xx("0x66")](u).map((e=>t[Xx("0x8c")](e[Xx("0x7b")])));o[Xx("0x5c")](d,Xx("0x6a"))}))}))}for(const n of[Xx("0x5b"),Xx("0x83")]){const r=t[Xx("0x87")][Xx("0x3f")](n);o[Xx("0xd")](n,(n=>{t.model.change((t=>{n();const s=Xx("0x9")===r[Xx("0xa")],x=i[Xx("0x1d")](e),a=i[Xx("0x7f")](x),c=s?a[Xx("0x24")]-1:a[Xx("0x8")]+1,l=x[0][Xx("0x65")]("table"),u=i.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u).map((e=>t[Xx("0x8c")](e[Xx("0x7b")])));o[Xx("0x5c")](d,Xx("0x43"))}))}))}for(const n of["removeTableRow","removeTableColumn"]){const r=n[Xx("0x48")](11),s=r.toLowerCase(),x=s[Xx("0x48")](0,3)+Xx("0x5"),a=Xx("0x2")+r,c=Xx("0x3b")+r,l=Xx("0x10")+r;o[Xx("0xd")](n,(()=>{t.model[Xx("0x2e")]((t=>{const r=i[Xx("0x1d")](e),u=r[0][Xx("0x65")](Xx("0x2"));let d;if(Xx("0x32")==n){const t=i[Xx("0x8a")](r);d={startRow:t.first,endRow:t.last,includeAllSlots:!0}}else{const t=i[Xx("0x7f")](r);d={startColumn:t[Xx("0x24")],endColumn:t[Xx("0x8")],includeAllSlots:!0}}const g=i[Xx("0x5e")](u,d),f=Array[Xx("0x66")](g).map((({cell:t})=>t)),m=Zx(f[Xx("0x41")]((t=>t[Xx("0x38")](x)))),h=Zx(f[Xx("0x41")]((t=>!t[Xx("0x38")](x))))[Xx("0x74")]((e=>t.createRangeOn(e))),b=o[Xx("0x2b")](h,a);if(b&&(Xx("0x6a")==b[Xx("0x82")]||Xx("0x43")==b[Xx("0x82")])){const e=this[Xx("0x76")](b);for(const n of m){const o=t[Xx("0x8c")](n),r=i.getCellLocation(n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=r[s]&&r[s]+a<=d&&b.addRange(o)}}}))}))}function r(n){const o=Array[Xx("0x66")](e[Xx("0x57")]())[Xx("0x74")]((t=>s.LiveRange.fromRange(t)));t[Xx("0x1a")].change((e=>{const i=e[Xx("0x80")];n=n[Xx("0x41")]((t=>Xx("0x6f")!=t.root[Xx("0x25")])),e[Xx("0x85")](n),t[Xx("0x87")][Xx("0x3f")](Xx("0x32")).refresh(),t[Xx("0x47")](Xx("0x32"),{forceDefaultExecution:!0}),t[Xx("0x1a")].enqueueChange((()=>{t[Xx("0x1a")][Xx("0x86")](i,(t=>{const e=o.filter((t=>Xx("0x6f")!=t[Xx("0x2a")].rootName));e[Xx("0x13")]>0&&t[Xx("0x85")](e);for(const t of o)t.detach()}))}))}))}function a(n){t.model[Xx("0x2e")]((o=>{const i=Array.from(e[Xx("0x57")]())[Xx("0x74")]((t=>s.LiveRange[Xx("0x27")](t))),r=[];for(const t of n)for(const e of t[Xx("0x39")]({shallow:!0}))r[Xx("0xb")](e);for(const e of r)"$graveyard"!=e[Xx("0x2a")].rootName&&(o[Xx("0x85")](o[Xx("0x1")](e,0)),t[Xx("0x87")].get(Xx("0x77"))[Xx("0x79")](),t[Xx("0x47")](Xx("0x77"),{forceDefaultExecution:!0}));const x=i.filter((t=>Xx("0x6f")!=t[Xx("0x2a")][Xx("0x25")]));x[Xx("0x13")]>0&&o[Xx("0x85")](x);for(const t of i)t[Xx("0x81")]()}))}function c(t,e){return e.every((e=>t[Xx("0x50")]((t=>t[Xx("0x16")][Xx("0x12")](e[Xx("0x67")])||e[Xx("0x16")][Xx("0x12")](t[Xx("0x67")])))))}function l(t,e){return t[Xx("0x50")]((t=>e[Xx("0x50")]((e=>t[Xx("0x16")][Xx("0x5a")](e[Xx("0x67")])))))}t[Xx("0x22")][Xx("0x35")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Xx("0x5f")][Xx("0x20")])return;const o=e[Xx("0x7e")];if(!o)return;const i=n[Xx("0x30")][Xx("0x11")](o);function r(t){return Array[Xx("0x55")](t)?t:[t]}i&&Xx("0x56")===o[Xx("0x6c")]&&(0,x.setHighlightHandling)(i,n[Xx("0x40")],((t,e,n)=>n[Xx("0x31")](r(e[Xx("0x44")]),t)),((t,e,n)=>n[Xx("0x1f")](r(e[Xx("0x44")]),t)))}),{priority:Xx("0x7c")}),o[Xx("0x3a")][Xx("0x4f")]((t=>{if(Xx("0x69")!=t[Xx("0x70")]&&"deletion"!=t[Xx("0x70")])return;const e=t[Xx("0x42")]();if(null!=e&&e.is(Xx("0x6"),Xx("0x2"))){if(Xx("0x69")==t[Xx("0x70")]){const e=t[Xx("0x39")]()[Xx("0x41")]((t=>t.is(Xx("0x72"))))[Xx("0x74")]((t=>t[Xx("0x22")]));if(e[Xx("0x13")])return{type:"insertion",content:Qo(n,"*Insert:* %0",Qo(n,Xx("0x15"),'"'+e[Xx("0x1b")](" ")+'"'))}}if("deletion"==t[Xx("0x70")]){const e=t[Xx("0x39")]().filter((t=>t.is(Xx("0x72"))))[Xx("0x74")]((t=>t.data));if(e.length)return{type:Xx("0x3"),content:Qo(n,Xx("0x37"),Qo(n,Xx("0x15"),'"'+e[Xx("0x1b")](" ")+'"'))}}}})),o[Xx("0x3a")][Xx("0x4f")]((t=>{if(Xx("0x6a")==t.subType){const e=t.getItems()[Xx("0x41")]((t=>t.is(Xx("0x72"))))[Xx("0x74")]((t=>t[Xx("0x22")])),o=this._getSuggestionCoords(t),i=o[Xx("0x64")]-o[Xx("0x6d")]+1;if(Xx("0x69")==t[Xx("0x70")])return e.length?{type:Xx("0x69"),content:Qo(n,Xx("0x4d"),Qo(n,Xx("0x18"),[i,'"'+e[Xx("0x1b")](" ")+'"']))}:{type:Xx("0x69"),content:Qo(n,Xx("0x4d"),Qo(n,"ELEMENT_TABLE_ROW",i))};if(Xx("0x3")==t[Xx("0x70")])return e[Xx("0x13")]?{type:"deletion",content:Qo(n,Xx("0x37"),Qo(n,Xx("0x18"),[i,'"'+e[Xx("0x1b")](" ")+'"']))}:{type:Xx("0x3"),content:Qo(n,Xx("0x37"),Qo(n,Xx("0x5d"),i))}}if(Xx("0x43")==t[Xx("0x82")]){const e=t.getItems().filter((t=>t.is("$textProxy"))).map((t=>t.data)),o=this._getSuggestionCoords(t),i=o[Xx("0x34")]-o[Xx("0x60")]+1;if(Xx("0x69")==t.type)return e.length?{type:Xx("0x69"),content:Qo(n,"*Insert:* %0",Qo(n,Xx("0x14"),[i,'"'+e[Xx("0x1b")](" ")+'"']))}:{type:Xx("0x69"),content:Qo(n,Xx("0x4d"),Qo(n,Xx("0x1c"),i))};if(Xx("0x3")==t[Xx("0x70")])return e[Xx("0x13")]?{type:Xx("0x3"),content:Qo(n,Xx("0x37"),Qo(n,Xx("0x14"),[i,'"'+e.join(" ")+'"']))}:{type:"deletion",content:Qo(n,"*Remove:* %0",Qo(n,Xx("0x1c"),i))}}})),o[Xx("0x58")][Xx("0x3d")](Xx("0x69"),Xx("0x6a"),Xx("0x4b"),r),o[Xx("0x58")][Xx("0x3d")]("deletion",Xx("0x6a"),"accept",r),o[Xx("0x58")][Xx("0x3d")](Xx("0x69"),"tableColumn",Xx("0x4b"),a),o._suggestionFactory[Xx("0x3d")]("deletion","tableColumn",Xx("0x3c"),a),o._suggestionFactory[Xx("0x3d")]("insertion",Xx("0x43"),Xx("0x1b"),c),o._suggestionFactory[Xx("0x3d")]("deletion","tableColumn","join",c),o._suggestionFactory[Xx("0x3d")]("insertion",Xx("0x6a"),Xx("0x1b"),l),o[Xx("0x58")][Xx("0x3d")](Xx("0x3"),Xx("0x6a"),Xx("0x1b"),l)}[Xx("0x59")](){const t=this[Xx("0x29")],e=t[Xx("0x1a")][Xx("0x54")][Xx("0x89")];return(n,o)=>{t[Xx("0x1a")].change((i=>{const{commandName:r,commandParams:x}=o;let a=n[0][Xx("0x16")][Xx("0x6b")];x&&x[0]&&!1===x[0][Xx("0x7")]&&(a=n[0][Xx("0x67")][Xx("0x62")]);const c=i[Xx("0x49")](a);if(Xx("0x6f")==c[Xx("0x2a")][Xx("0x25")])return;const l=Array.from(e[Xx("0x57")]())[Xx("0x74")]((t=>s.LiveRange[Xx("0x27")](t)));i[Xx("0x85")](c),t.commands[Xx("0x3f")](r)[Xx("0x79")](),x[Xx("0xb")]({forceDefaultExecution:!0}),t[Xx("0x47")](r,...x);const u=l[Xx("0x41")]((t=>Xx("0x6f")!=t[Xx("0x2a")][Xx("0x25")]));u[Xx("0x13")]>0&&i[Xx("0x85")](u);for(const t of l)t[Xx("0x81")]()}))}}[Xx("0xe")](t){const e=this.editor.plugins[Xx("0x3f")](Xx("0x4a"));let n=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,i=Number[Xx("0x71")],r=Number[Xx("0x2c")];for(const s of t){if(Xx("0x6f")==s[Xx("0x2a")][Xx("0x25")])continue;const{row:t,column:x}=e[Xx("0x26")](s),a=s.hasAttribute(Xx("0x46"))?s[Xx("0xf")](Xx("0x46"))-1:0,c=s[Xx("0x38")](Xx("0x1e"))?s[Xx("0xf")](Xx("0x1e"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,i=x<i?x:i,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:i,maxColumn:r}}[Xx("0x84")](){const t=this[Xx("0x29")],e=t[Xx("0x88")][Xx("0x3f")](Xx("0x53")),n=t[Xx("0x88")].get(Xx("0x4a"));t[Xx("0x1a")].document.on("change:data",(()=>{const n=Array[Xx("0x66")](t[Xx("0x1a")][Xx("0x54")][Xx("0x52")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:i,subType:r}=e[Xx("0x68")](t);if(Xx("0x0")!=n)continue;if(null!=o[Xx("0x4c")])continue;const s=e.getSuggestion(i);this[Xx("0x7d")][Xx("0x3e")](r)&&this._tableSuggestions[Xx("0x8b")](s)}}),{priority:Xx("0x19")});const o=(t,e)=>{let o=!1;const i=e[Xx("0x8c")](t),r=t[Xx("0x65")](Xx("0x2")),s=n[Xx("0x26")](t);for(const e of this[Xx("0x2f")]){const n=e[Xx("0x82")],x=n[Xx("0xc")](Xx("0x6e")),a=n[Xx("0x48")](x?10:5),c=a[Xx("0x63")](),l=c.substr(0,3)+Xx("0x5"),u=Xx("0x3b")+a,d=Xx("0x10")+a;if(!e[Xx("0x61")])continue;if(r!=e[Xx("0x33")]()[Xx("0x67")][Xx("0x65")](Xx("0x2")))continue;if(e[Xx("0x4e")](i))continue;const g=t[Xx("0x38")](l)?t[Xx("0xf")](l)-1:0,f=this[Xx("0x76")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e.addRange(i),o=!0)}return o};t[Xx("0x1a")][Xx("0x54")][Xx("0x45")]((e=>{let n=!1;for(const i of t[Xx("0x1a")][Xx("0x54")][Xx("0x52")][Xx("0x36")]())if(Xx("0x73")==i[Xx("0x70")])if(Xx("0x6a")==i.name)for(const t of i[Xx("0x23")][Xx("0x62")][Xx("0x17")]())n=n||o(t,e);else Xx("0x56")==i.name&&(n=n||o(i[Xx("0x23")][Xx("0x62")],e));return n}))}[Xx("0x76")](t){return this[Xx("0xe")](t.getRanges()[Xx("0x74")]((t=>t[Xx("0x67")][Xx("0x62")])))}}function Zx(t){return Array[Xx("0x66")](new Set(t)[Xx("0x75")]())}const Yx=["deletion","afterInit","length","filter","root","_areMergableCells","findAncestor","return","getAncestors","TableUtils","_suggestionFactory","enableCommand","markMultiRangeBlockFormat","locale","mergeTableCellRight","TableEditing","push","map","*Merge cells*","markBlockFormat","formatBlock","element","has","cell","getRanges","mergeTableCellUp","containsRange","forceDefaultExecution","highest","setSelection","mergeTableCellDown","mergeTableCells","*Split cell:* vertically","splitTableCellHorizontally","_isForcedDefaultExecutionBlock","plugins","getCellLocation","direction","TrackChangesEditing","_areSelectedCellsMergable","isEnabled","createTableWalker","table","author","value","selection","_descriptionFactory","get","splitTableCellVertically","from","horizontally","subType","find","document","type","change","*Split cell:* horizontally","fromRange","$graveyard","commandName","getFirstPosition","stop","execute","createRangeOn","registerCustomCallback","editor","refresh","accept","tableCell","registerDescriptionCallback","model","mergeTableCellLeft","commands","getSelectionAffectedTableCells","format","add","_tablePostFixingSubtypes","detach","set:isEnabled","size"];var Jx,Qx;Jx=Yx,Qx=328,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get requires(){return[$x]}[ta("0x49")](){const t=this[ta("0x39")],e=t[ta("0x3e")][ta("0x2d")][ta("0x25")],n=t[ta("0x5")];if(!t[ta("0x1b")][ta("0xe")](ta("0x7")))return;const o=t[ta("0x1b")].get(ta("0x1e")),i=t[ta("0x1b")][ta("0x27")](ta("0x1")),r=t[ta("0x1b")][ta("0x27")]($x);r[ta("0x44")][ta("0x8")](ta("0x17")),o[ta("0x3")](ta("0x17"),(()=>{const e=i[ta("0x41")](t[ta("0x3e")][ta("0x2d")][ta("0x25")]);t.model[ta("0x2f")]((()=>{o[ta("0x4")](e,{commandName:"mergeTableCells",commandParams:[]},[],ta("0x17"))}))})),t[ta("0x40")][ta("0x27")]("mergeTableCells").on(ta("0x36"),((e,n)=>{t[ta("0x40")][ta("0x27")]("trackChanges").value&&(n.length>0&&n[n[ta("0x4a")]-1]&&n[n[ta("0x4a")]-1][ta("0x13")]||o[ta("0x1a")]||this[ta("0x1f")]()||e[ta("0x35")]())}),{priority:ta("0x14")});for(const e of[ta("0x11"),"mergeTableCellRight",ta("0x16"),"mergeTableCellLeft"]){const n=t[ta("0x40")][ta("0x27")](e);o[ta("0x3")](e,(()=>{const e=t[ta("0x3e")][ta("0x2d")][ta("0x25")].getFirstPosition()[ta("0x0")]()[ta("0x2c")]((t=>t.is(ta("0xd"),ta("0x3c")))),i=n[ta("0x24")];t.model[ta("0x2f")]((()=>{o.markMultiRangeBlockFormat([e,i],{commandName:ta("0x17"),commandParams:[]},[],ta("0x17"))}))}))}for(const e of["splitTableCellVertically","splitTableCellHorizontally"]){const n=t[ta("0x40")][ta("0x27")](e);o[ta("0x3")](e,(()=>{const r=i[ta("0x41")](t[ta("0x3e")].document[ta("0x25")])[0],s=r[ta("0x4e")](ta("0x22")),{column:x,row:a}=i[ta("0x1c")](r);let c=[];if(ta("0x2a")==n[ta("0x1d")]){const t=i[ta("0x21")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ta("0x29")](t)[ta("0x9")]((t=>t[ta("0xf")]))}else{const t=i[ta("0x21")](s,{column:x,includeAllSlots:!0});c=Array[ta("0x29")](t)[ta("0x9")]((t=>t.cell))}t[ta("0x3e")][ta("0x2f")]((t=>{o[ta("0xb")](t[ta("0x37")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[ta("0x26")][ta("0x3d")]((t=>{if(ta("0xc")!=t[ta("0x2e")]&&"formatInline"!=t[ta("0x2e")])return;const{data:e}=t;return e&&ta("0x17")==e.commandName?{type:ta("0x42"),content:Qo(n,ta("0xa"))}:void 0})),o[ta("0x26")][ta("0x3d")]((t=>{if(ta("0xc")!=t.type&&"formatInline"!=t.type)return;const{data:e}=t;return e?ta("0x28")==e.commandName?{type:ta("0x42"),content:Qo(n,ta("0x18"))}:"splitTableCellHorizontally"==e[ta("0x33")]?{type:ta("0x42"),content:Qo(n,ta("0x30"))}:void 0:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of["mergeTableCellUp",ta("0x6"),"mergeTableCellDown",ta("0x3f")])o._suggestionFactory.registerCustomCallback("formatBlock",t,ta("0x3b"),x);for(const t of["splitTableCellVertically",ta("0x19")])o[ta("0x2")][ta("0x38")]("formatBlock",t,ta("0x3b"),x);o[ta("0x2")][ta("0x38")]("formatBlock",ta("0x17"),ta("0x3b"),(n=>{t[ta("0x3e")][ta("0x2f")]((o=>{const i=Array.from(e.getRanges()).map((t=>s.LiveRange[ta("0x31")](t)));o[ta("0x15")](n),t[ta("0x40")][ta("0x27")]("mergeTableCells")[ta("0x3a")](),t[ta("0x36")](ta("0x17"),{forceDefaultExecution:!0});const r=i[ta("0x4b")]((t=>ta("0x32")!=t[ta("0x4c")].rootName));r[ta("0x4a")]>0&&o[ta("0x15")](r);for(const t of i)t[ta("0x45")]()}))}));for(const e of["mergeTableCellUp",ta("0x16"),ta("0x3f"),ta("0x6")]){const n=t.commands[ta("0x27")](e);n.on(ta("0x46"),((e,o,i)=>{if(i){const o=t.model[ta("0x2d")][ta("0x25")][ta("0x34")]().getAncestors()[ta("0x2c")]((t=>t.is(ta("0xd"),ta("0x3c"))));this[ta("0x4d")](n[ta("0x24")],o)||(e[ta("0x4f")]=!1,e[ta("0x35")]())}}),{priority:"low"})}}[ta("0x1f")](){const t=this.editor.commands[ta("0x27")](ta("0x17")),e=this[ta("0x39")][ta("0x1b")][ta("0x27")]("TableUtils");if(!t[ta("0x20")])return!1;const n=e[ta("0x41")](this[ta("0x39")][ta("0x3e")][ta("0x2d")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[ta("0x4d")](t,e))return!1;return!0}[ta("0x4d")](t,e){const n=this.editor[ta("0x1b")].get(ta("0x1e")),o=this[ta("0x39")][ta("0x3e")][ta("0x37")](t),i=this[ta("0x39")][ta("0x3e")][ta("0x37")](e),r=new Set,s=new Set;for(const t of n.getSuggestions())if(("insertion"==t[ta("0x2e")]||ta("0x48")==t[ta("0x2e")]||"mergeTableCells"==t[ta("0x2b")])&&t.isInContent)for(const e of t[ta("0x10")]())e[ta("0x12")](o,!0)&&r[ta("0x43")](t.type+":"+t[ta("0x23")].id),e[ta("0x12")](i,!0)&&s.add(t[ta("0x2e")]+":"+t.author.id);if(r.size!=s[ta("0x47")])return!1;for(const t of r)if(!s[ta("0xe")](t))return!1;return!0}}const na=["TableUtils","downcastDispatcher","removeClass","afterInit","_enableDefaultAttributesIntegration","consumable","commandParams","addClass","highest","format","formatBlock","addMarker:suggestion","accept","*Format:* %0","data-suggestion","get","end","TrackChangesEditing","stop","type","editor","ck-suggestion-marker--active","getCellLocation","setTableColumnHeader","_handleLegacySuggestions","editing","forceValue","registerAttributeLabel","FORMAT_HEADER_ROW","commandName","options","setAttribute","registerDescriptionCallback","markerName","removeMarker:suggestion","parent","_splitMarkerName","_registerLegacyDescription","ck-suggestion-marker-","data","setTableRowHeader","showSuggestionHighlights","createTableWalker","FORMAT_REGULAR_COLUMN","name","has","headingColumns","plugins","_suggestionFactory","FORMAT_REGULAR_ROW","locale","markerNameToElements","includes","nodeAfter","writer","_acceptFormatSuggestionCallbackFactory","_descriptionFactory","registerCustomCallback","consume","markerRange","start","TableEditing","FORMAT_HEADER_COLUMN","mapper"];var oa,ia;oa=na,ia=425,function(t){for(;--t;)oa.push(oa.shift())}(++ia);const ra=function(t,e){return na[t-=0]};class sa extends t.Plugin{static get requires(){return[$x]}[ra("0x1a")](){const t=this[ra("0x2b")];if(!t[ra("0x6")][ra("0x4")](ra("0x14")))return;const e=t[ra("0x9")],n=t.plugins[ra("0x26")]("TrackChangesEditing");n[ra("0x1b")](ra("0x3f"),[],["headingRows"]),n[ra("0x1b")](ra("0x2e"),[],[ra("0x5")]),n[ra("0xf")][ra("0x32")]("headingRows",Qo(e,ra("0x33"))),n[ra("0xf")].registerAttributeLabel("headingColumns",Qo(e,"FORMAT_HEADER_COLUMN")),this._handleLegacySuggestions()}[ra("0x2f")](){const t=this[ra("0x2b")].plugins[ra("0x26")]("TrackChangesEditing"),e=this[ra("0x2b")][ra("0x6")][ra("0x26")](ra("0x17")),n=this.editor[ra("0x6")][ra("0x26")]($x)[ra("0xe")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(i,r,s)=>{const{type:x,id:a}=t[ra("0x3b")](r.markerName),c=t.getSuggestion(a),l=c[ra("0x3e")];if(ra("0x21")!=c[ra("0x2a")]||!l||"setTableColumnHeader"!=l[ra("0x34")])return;if(r.item)return void i[ra("0x29")]();if(!s[ra("0x1c")][ra("0x11")](r.markerRange,i[ra("0x3")]))return;const u=r[ra("0x12")][ra("0x13")][ra("0xc")],d=r[ra("0x12")][ra("0x27")].nodeBefore,g=u[ra("0x3a")][ra("0x3a")],{column:f}=e[ra("0x2d")](u),{column:m}=e[ra("0x2d")](d);for(let i=f;i<=m;i++){const c=e[ra("0x1")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e.cell,c=s[ra("0x16")].toViewElement(i);s[ra("0xd")][ra("0x1e")](ra("0x3d")+x,c),o&&s[ra("0xd")][ra("0x36")](ra("0x25"),a,c),s.mapper.bindElementToMarker(c,r[ra("0x38")]),n&&(t.activeMarkers[ra("0xb")](r[ra("0x38")])?s[ra("0xd")][ra("0x1e")]("ck-suggestion-marker--active",c):s[ra("0xd")][ra("0x19")](ra("0x2c"),c))}}}}t[ra("0x7")].registerCustomCallback(ra("0x21"),"setTableRowHeader",ra("0x23"),n),t[ra("0x7")][ra("0x10")](ra("0x21"),ra("0x2e"),ra("0x23"),n),this[ra("0x2b")].editing[ra("0x18")].on(ra("0x22"),o(),{priority:ra("0x1f")}),this.editor[ra("0x3e")][ra("0x18")].on(ra("0x22"),((t,e,n)=>{n[ra("0x35")][ra("0x0")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ra("0x1f")}),this.editor[ra("0x30")][ra("0x18")].on(ra("0x39"),((e,n,o)=>{const{type:i,id:r}=t[ra("0x3b")](n[ra("0x38")]),s=t.getSuggestion(r),x=s[ra("0x3e")];if(ra("0x21")!=s[ra("0x2a")]||!x||ra("0x2e")!=x.commandName)return;const a=o.mapper[ra("0xa")](n[ra("0x38")]);if(a)for(const t of a)o[ra("0xd")][ra("0x19")]("ck-suggestion-marker-"+i,t),o.writer.removeClass(ra("0x2c"),t),o.writer.removeAttribute(ra("0x25"),t),o[ra("0x16")].unbindElementFromMarkerName(t,n[ra("0x38")])}),{priority:ra("0x1f")}),this._registerLegacyDescription()}[ra("0x3c")](){const t=this[ra("0x2b")],e=t.locale;function n(t){return{type:ra("0x20"),content:Qo(e,ra("0x24"),t)}}t[ra("0x6")][ra("0x26")](ra("0x28"))[ra("0xf")][ra("0x37")]((t=>{if(ra("0x21")!=t.type)return;const{data:o}=t;if(o){if("setTableRowHeader"==o[ra("0x34")]){const t=o[ra("0x1d")][0][ra("0x31")];return n(Qo(e,ra(t?"0x33":"0x8")))}if(ra("0x2e")==o[ra("0x34")]){const t=o[ra("0x1d")][0][ra("0x31")];return n(Qo(e,ra(t?"0x15":"0x2")))}}}))}}const xa=["tableCellSuggestion","table","_replaceTableSlotCell","_descriptionFactory","get","_suggestionFactory","TableClipboard","redo","insertColumns","high","map","rows","removeRows","removeColumns","reduce","push","join","attributes","fill","requires","rootName","filter","editor","oldRange","row","registerPostFixer","from","insertion","getSuggestions","set","endColumn","subType","insertRows","removeMarkers","change","schema","trackChanges","insertContent","value","low","tableCellBorderStyle","endRow","cells","createElement","suggestion-td","suggestionLoaded","_splitMarkerName","markerToHighlight","root","getSuggestion","clipboardOutput","dataDowncast","entries","tablePasteCell","isEmpty","_getCoordsForCells","Users","markers","tableCellPadding","tablePasteChainId","_isForcedDefaultExecutionBlock","remove","previousSibling","getColumnIndexes","nextSibling","tableCellBackgroundColor","document","createRangeOn","editing","getRows","ck-suggestion-marker--active","commands","start","newRange","add","every","_createdBatches","ck-suggestion-marker-insertion","conversion","rowInsertionRanges","columnInsertionRanges","previous","updateMarker","tablePasteColumn","name","tablePasteRow","getMarkers","end","columnInsertionIndexes","deletion","ck-suggestion-marker","includes","markMultiRangeInsertion","tableCellBorderColor","isEqual","getAttributes","createPositionBefore","TableUtils","registerDescriptionCallback","createRangeIn","deletionRanges","plugins","createTableWalker","tableCellBorderWidth","selection","getShiftedBy","nodeAfter","unwrap","find","accept","insert","wrap","tableCellHorizontalAlignment","containsRange","getColumns","return","registerCustomCallback","first","last","suggestionUnloaded","getChild","discard","getChanges","for","tablePaste","markMultiRangeBlockFormat","some","position","getRange","cell","documentSelection","has","formatBlock","register","showSuggestionHighlights","columns","findAncestor","fromEntries","paragraph","length","model","suggestion","getRowIndexes","getItems","getTableIfOnlyTableInContent","getSelectionAffectedTableCells","hasSuggestion","tableCell","view","stop","differ","element","markerName","getChangedMarkers","suggestion:formatBlock:tablePasteCell","type","getChildren","getAllAdjacentSuggestions","options","removeMarker","markerAttributes","getSuggestionCallback","isInContent","rowInsertionIndexes","getContainedElement","author","content","startsWith"];var aa,ca;aa=xa,ca=262,function(t){for(;--t;)aa.push(aa.shift())}(++ca);const la=function(t,e){return xa[t-=0]},ua=[la("0x9"),la("0xa7"),la("0x72"),la("0x12"),"tableCellVerticalAlignment",la("0x8b"),la("0x84")],da=Object[la("0x2b")](ua[la("0x54")]((t=>[t,null])));class ga extends t.Plugin{static get[la("0x5d")](){return[$x]}afterInit(){const t=this[la("0x60")];if(!t[la("0x7")][la("0x25")]("TableClipboard"))return;const n=t.plugins[la("0x4e")]("TrackChangesEditing"),o=t[la("0x7")][la("0x4e")](la("0x3")),i=t[la("0x7")][la("0x4e")]($x),r=t[la("0x7")].get(la("0x50"));i._tablePostFixingSubtypes.push(la("0x9f"),"tablePasteColumn"),t.model[la("0x6d")][la("0x27")](la("0x4a"),{allowIn:la("0x35"),allowContentOf:"tableCell",isLimit:!0}),t.conversion.elementToElement({model:la("0x4a"),view:la("0x76")});let s=null;t[la("0x2e")].on(la("0x6f"),((i,x)=>{const[a,c]=x,l=x[x.length-1];l&&l.forceDefaultExecution||n[la("0x86")]||this[la("0x60")].commands[la("0x4e")](la("0x6e"))[la("0x70")]&&function(t,e,n,o,i){if(e&&!e.is(la("0x24")))return!1;const r=i[la("0x32")](t,n);if(!r||!ma(r,void 0,o))return!1;const s=o[la("0x33")](n[la("0x8c")][la("0xa")]);if(!s[la("0x2d")])return!1;const x=s[0].findAncestor(la("0x4b")),a=o[la("0x30")](s),c=o[la("0x89")](s),l={startRow:a[la("0x17")],endRow:a[la("0x18")],startColumn:c.first,endColumn:c[la("0x18")]};return 1==s[la("0x2d")]&&(l[la("0x73")]+=o[la("0x8f")](r)-1,l[la("0x68")]+=o[la("0x14")](r)-1),ma(x,l,o)}(a,c,t[la("0x2e")],o,r)&&(i.stop(),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model.change((()=>{t[la("0x2e")][la("0x6f")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=s;i[la("0x2d")]&&n[la("0xa6")](i,la("0x9f"),{tablePasteChainId:o}),r[la("0x2d")]&&n[la("0xa6")](r,la("0x9d"),{tablePasteChainId:o}),a[la("0x2d")]&&n.markMultiRangeInsertion(a,la("0x1e"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n.markMultiRangeDeletion(c,la("0x1e"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[la("0x1f")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],la("0x7f"),{tablePasteChainId:o});if(u){const e=u[la("0xa0")](),n=[];for(const{element:o,attributes:i}of l){if(!i)continue;const r=t[la("0x2e")][la("0x8d")](o),s=e.find((t=>t[la("0x22")]()[la("0x0")](r)));s&&n.push([s[la("0x9e")],i])}n[la("0x2d")]&&u.setAttribute("markerAttributes",Object[la("0x2b")](n))}s=null})))}),{priority:e.priorities.high+10}),t.plugins[la("0x4e")](la("0x50")).on(la("0x4c"),((t,e)=>{const[n,o,,i]=e;if(!s)return;t[la("0x37")]();const r=n[la("0x23")],x=o,a=fa(r),c=fa(x);t[la("0x15")]=r;let l=null,u=null;if(c||a)if(a&&!c){i[la("0x87")](r[la("0x1a")](0));for(const t of Array[la("0x64")](x[la("0x3e")]()))i[la("0x10")](t,r,la("0xa1"));const t=s[la("0x45")][la("0xa5")](n[la("0x62")]),e=s.columnInsertionIndexes[la("0xa5")](n.column);t||e||(l=i[la("0x5")](r))}else c&&!a&&(u=i[la("0x5")](r));else{const t=i[la("0x75")](la("0x4a")),e=i[la("0x75")]("tableCellSuggestion");i[la("0x11")](i[la("0x5")](r),e),i.insert(t,r,0);for(const e of Array[la("0x64")](x[la("0x3e")]()))i[la("0x10")](e,t,la("0xa1"));l=i.createRangeOn(t),u=i[la("0x8d")](e)}const d=Array[la("0x64")](x[la("0x1")]()).filter((([t])=>ua[la("0xa5")](t)));s[la("0x74")][la("0x59")]({element:r,attributes:d[la("0x2d")]?Object.fromEntries(d):null}),l&&s.insertionRanges[la("0x59")](l),u&&s[la("0x6")][la("0x59")](u)}),{priority:la("0x53")}),o.on(la("0x52"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[la("0x29")]||1;s[la("0xa2")]=new Array(a)[la("0x5c")](x).map(((t,e)=>t+e));for(const{cell:e}of o[la("0x8")](i,{startColumn:x,endColumn:x+a-1}))s[la("0x9a")][la("0x59")](t[la("0x2e")][la("0x8d")](e))}),{priority:la("0x71")}),o.on(la("0x6a"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[la("0x55")]||1;s[la("0x45")]=new Array(a)[la("0x5c")](x).map(((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(i,{startRow:x,endRow:x+a-1}))s[la("0x99")][la("0x59")](t[la("0x2e")][la("0x8d")](e))}),{priority:la("0x71")}),n[la("0x4d")][la("0x4")]((e=>{if(e.subType&&e[la("0x69")].startsWith(la("0x1e")))return e[la("0x9b")]?{}:{type:la("0x65"),content:Qo(t.locale,"*Replace table cells*")}}));const x=()=>!1;for(const t of[la("0x1e"),la("0x9d"),la("0x9f"),la("0x7f")])n._suggestionFactory[la("0x16")](la("0x65"),t,"join",x),n[la("0x4f")].registerCustomCallback(la("0xa3"),t,"join",x),n[la("0x4f")].registerCustomCallback(la("0x26"),t,la("0x5a"),x);n[la("0x4f")][la("0x16")]("formatBlock",la("0x7f"),"discard",x),n._suggestionFactory[la("0x16")](la("0x26"),"tablePasteCell",la("0xf"),((e,n,o)=>{const i=e[la("0x54")]((t=>t[la("0x46")]()))[la("0x5f")]((t=>t)),r=new Map(i[la("0x54")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s.cells)e&&r.set(t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[la("0x7e")](o.markerAttributes)){const o=t.model[la("0x83")][la("0x4e")](e),i=o?o[la("0x22")]()[la("0x46")]():null;i&&r[la("0x67")](i,n)}t[la("0x2e")][la("0x6c")]((t=>{for(const[e,n]of r)t.setAttributes({...da,...n},e)}))}));const a=(e,o)=>{n[la("0x4f")][la("0x16")](e,la("0x1e"),o,((i,r,s)=>{t[la("0x2e")][la("0x6c")]((t=>{const x=[];for(const t of i){const e=t[la("0x92")][la("0xc")];e.is("element",la("0x4a"))&&x[la("0x59")](e)}n[la("0x4f")][la("0x43")](e,null,o)(i,r,s);for(const e of x)"$graveyard"!=e[la("0x7a")][la("0x5e")]&&t.unwrap(e)}))}))};a(la("0x65"),la("0xf")),a(la("0x65"),la("0x1b")),a("deletion",la("0xf")),a(la("0xa3"),la("0x1b")),n._suggestionFactory[la("0x16")](la("0x65"),"tablePasteRow",la("0x1b"),(t=>{const e=t[la("0x54")]((t=>t[la("0x46")]())),n=e[0][la("0x2a")]("table"),{minRow:r,maxRow:s}=i[la("0x81")](e);o[la("0x56")](n,{at:r,rows:s-r+1})})),n._suggestionFactory[la("0x16")](la("0x65"),la("0x9d"),"discard",(t=>{const e=t[la("0x54")]((t=>t[la("0x46")]())),n=e[0][la("0x2a")](la("0x4b")),{minColumn:r,maxColumn:s}=i._getCoordsForCells(e);o[la("0x57")](n,{at:r,columns:s-r+1})}));const c=(t,e)=>{if(!e[la("0x69")]||!e.subType[la("0x49")]("tablePaste"))return;const o=e[la("0x5b")][la("0x85")],i=n[la("0x66")]()[la("0x5f")]((t=>t[la("0x44")]&&t[la("0x5b")]&&t[la("0x5b")].tablePasteChainId==o));i[la("0x2d")]&&e.getAllAdjacentSuggestions()[la("0x2d")]!=i[la("0x2d")]&&i[la("0x58")](((t,e)=>(t.next=e,e[la("0x9b")]=t,e)))};function l(t,e=!0){const{id:o}=n[la("0x78")](t[la("0x3a")]),i=[la("0xa4"),la("0x97")],r=n.activeMarkers[la("0xa5")](t[la("0x3a")]);return r&&i.push(la("0x90")),{classes:i,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(la("0x77"),c,{priority:la("0x53")}),n.on(la("0x19"),c,{priority:la("0x53")}),t[la("0x2e")][la("0x8c")][la("0x63")]((()=>{let e=!1;const o=Array.from(t.model[la("0x8c")][la("0x38")].getChangedMarkers());for(const{name:i,data:r}of o){const{group:o,type:s,id:x}=n[la("0x78")](i);if(la("0x2f")!=o||la("0xa3")!=s||r[la("0x61")])continue;if(!n[la("0x34")](x))continue;const a=n[la("0x7b")](x).getRanges(),c=t.plugins[la("0x4e")](la("0x82")).me;for(const t of n[la("0x66")]())if(t[la("0x44")]&&t[la("0x47")]==c&&"formatBlock"==t[la("0x3d")]&&la("0x7f")==t[la("0x69")]&&t.getRanges()[la("0x95")]((t=>a[la("0x20")]((e=>e[la("0x13")](t,!0))))))for(const n of t[la("0x3f")]())n[la("0x44")]&&(n[la("0x1b")](),e=!0)}return e})),t[la("0x2e")][la("0x8c")].registerPostFixer((e=>{const o=t[la("0x91")][la("0x4e")](la("0x51"));if(!o||!o[la("0x96")][la("0x25")](e.batch))return!1;let i=!1;const r=t.plugins[la("0x4e")](la("0x82")).me,s=t.model[la("0x8c")][la("0x38")][la("0x1c")](),x=Array[la("0x64")](t[la("0x2e")][la("0x8c")][la("0x38")][la("0x3b")]())[la("0x5f")]((({name:t,data:e})=>{const{group:o,subType:i,authorId:s}=n[la("0x78")](t);return la("0x2f")==o&&la("0x1e")==i&&s==r.id&&!e[la("0x61")]}));for(const t of s){if(la("0x10")!=t[la("0x3d")]||"tableCellSuggestion"!=t[la("0x9e")]||1!=t[la("0x2d")])continue;const n=e.createRange(t.position,t[la("0x21")][la("0xb")](1));if(!x[la("0xe")]((({data:t})=>t[la("0x93")].isEqual(n))))for(const{name:t,data:o}of x)if(n[la("0x13")](o[la("0x93")])){e[la("0x9c")](t,{range:n}),i=!0;break}}return i})),t.model[la("0x8c")][la("0x63")]((e=>{let o=!1;const i=t[la("0x7")][la("0x4e")](la("0x82")).me,r=n[la("0x66")]()[la("0x5f")]((t=>t.isInContent&&t[la("0x47")]==i)),s=new Set,x=new Set;for(const t of r)if(la("0x1e")==t.subType)for(const e of t.getMarkers()){const n=e[la("0x22")]()[la("0x46")]();if(n)if(n.is("element",la("0x4a"))&&fa(n)){t[la("0x41")](e[la("0x9e")]),s[la("0x94")](n),o=!0;const i=n[la("0x8a")],r=n[la("0x88")],a=i&&i.is(la("0x39"),"tableCellSuggestion"),c=r&&r.is(la("0x39"),"tableCellSuggestion");a&&!s[la("0x25")](i)&&x[la("0x94")](i),c&&!s[la("0x25")](r)&&x[la("0x94")](r)}else n.is(la("0x39"),la("0x2c"))&&n[la("0x80")]&&(t[la("0x41")](e[la("0x9e")]),o=!0)}else if(la("0x7f")==t[la("0x69")]){if(!t[la("0x5b")]||!t[la("0x5b")][la("0x85")])continue;const e=t.attributes[la("0x42")];if(e&&Object.keys(e)[la("0x2d")])continue;const n=t[la("0x5b")][la("0x85")];let i=!0,s=!0;for(const e of r)if(e[la("0x69")]&&e[la("0x69")][la("0x49")](la("0x1e"))){if(!e[la("0x5b")][la("0x85")]){s=!1;break}if(e.id!=t.id&&e[la("0x5b")][la("0x85")]==n){i=!1;break}}s&&i&&(t[la("0x6b")](),o=!0)}for(const t of s)e.remove(t);for(const t of x)e[la("0xd")](t);return o})),t[la("0x98")][la("0x1d")]("editingDowncast")[la("0x79")]({model:la("0x3c"),view:(t,e)=>l(t),converterPriority:la("0x53")}),t[la("0x98")][la("0x1d")](la("0x7d"))[la("0x79")]({model:la("0x3c"),view:(t,e)=>e[la("0x40")][la("0x28")]?l(t,!1):null,converterPriority:la("0x53")});const u=t[la("0x8e")][la("0x36")];this.listenTo(u[la("0x8c")],la("0x7c"),((t,e)=>{const n=[];for(const t of u[la("0x5")](e[la("0x48")])[la("0x31")]())t.is(la("0x39"),la("0x76"))&&n.push(t);u[la("0x6c")]((t=>{for(const e of n)t.move(t[la("0x5")](e),t[la("0x2")](e)),t[la("0x87")](e)}))}))}}function fa(t){if(t[la("0x80")])return!0;const e=t[la("0x1a")](0);return e.is("element",la("0x2c"))&&e.isEmpty}function ma(t,e={},n){for(const{isAnchor:o,cellHeight:i,cellWidth:r}of n[la("0x8")](t,{includeAllSlots:!0,...e}))if(!o||1!=i||1!=r)return!1;return!0}const ha=["TableColumnResizeEditing","type","getContainedElement","document","change","data","markBlockFormat","handleSuggestionDescription","plugins","Users","enableCommand","getSelectedElement","subType","bind","formatBlock","columnWidths","editor","registerDescriptionCallback","TrackChangesEditing","formatGroupId","*Format:* resize table","model","getTableColumnsWidths","formatInline","registerCustomCallback","_suggestionFactory","get","resizeTable","accept","afterInit","discard","getSuggestionCallback","resizeTableWidth","author","format","tableWidth","handleResizeTableWidthCommand","_descriptionFactory"];var ba,pa;ba=ha,pa=442,function(t){for(;--t;)ba.push(ba.shift())}(++pa);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x5")](){if(!this[Ea("0x1e")][Ea("0x16")].has(Ea("0xe")))return;const t=this[Ea("0x1e")][Ea("0x16")][Ea("0x2")]("TrackChangesEditing");t[Ea("0x18")](Ea("0x8"),this[Ea("0xc")].bind(this)),t[Ea("0x1")][Ea("0x0")](Ea("0x1c"),"resizeTable",Ea("0x4"),t[Ea("0x1")].getSuggestionCallback(Ea("0x1c"),null,"discard")),t[Ea("0x1")].registerCustomCallback("formatBlock","resizeTable","discard",t[Ea("0x1")][Ea("0x7")](Ea("0x1c"),null,Ea("0x4"))),t[Ea("0xd")][Ea("0x1f")](this[Ea("0x15")][Ea("0x1b")](this))}[Ea("0xc")](t,e){const n=this[Ea("0x1e")][Ea("0x16")][Ea("0x2")](Ea("0x20")),o=this[Ea("0x1e")][Ea("0x16")].get("TableColumnResizeEditing"),i=e.table||this[Ea("0x1e")][Ea("0x23")][Ea("0x11")].selection[Ea("0x19")]();this[Ea("0x1e")][Ea("0x23")][Ea("0x12")]((()=>{const r=o.getColumnGroupElement(i);let s=r?o[Ea("0x24")](r):null,x=i.getAttribute("tableWidth")||null;const a=e[Ea("0xb")]||x,c=e[Ea("0x1d")]||s,l=this.editor.plugins.get(Ea("0x17")).me;for(const t of n.getSuggestions()){const e=t[Ea("0x10")]();if(Ea("0x3")===t[Ea("0x1a")]&&e===i){t[Ea("0x9")]!==l&&t[Ea("0x6")]();const e=t[Ea("0x13")].commandParams;x=e[0][Ea("0xb")],s=e[0][Ea("0x1d")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[Ea("0x14")](i,{commandName:Ea("0x8"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:"resizeTable"},[],Ea("0x3"))}))}[Ea("0x15")](t){if("formatBlock"!=t[Ea("0xf")]&&Ea("0x25")!=t.type)return;const{data:e}=t;if(e&&"resizeTable"===e[Ea("0x21")]){const t=Ea("0x22");return{type:Ea("0xa"),content:Qo(this[Ea("0x1e")].locale,t)}}}}const Ta=["TrackChangesEditing","afterInit","has","editor","insertTemplate","enableCommand","get","plugins","Template"];var ya,Ca;ya=Ta,Ca=495,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x1")](){const t=this[Aa("0x3")];t[Aa("0x7")][Aa("0x2")](Aa("0x8"))&&t[Aa("0x7")][Aa("0x6")](Aa("0x0"))[Aa("0x5")](Aa("0x4"))}}const Ia=["locale","insertTableOfContents","registerElementLabel","enableCommand","_descriptionFactory","plugins","TrackChangesEditing","ELEMENT_TABLE_OF_CONTENTS","get","tableOfContents","commands"];var Ra,Sa;Ra=Ia,Sa=332,function(t){for(;--t;)Ra.push(Ra.shift())}(++Sa);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{afterInit(){const t=this.editor;if(!t[va("0x8")][va("0x6")](va("0xa")))return;t.plugins.get(va("0x4"))[va("0x1")](va("0xa"));const e=t[va("0x3")].get(va("0x4")),n=t[va("0x9")];e[va("0x2")][va("0x0")](va("0x7"),(t=>Qo(n,va("0x5"),t)))}}const La=["element","ELEMENT_TITLE","model","removeMarker","_descriptionFactory","locale","TrackChangesEditing","newRange","isTouching","_splitMarkerName","from","isEqual","getChangedMarkers","afterInit","suggestion","isCollapsed","get","has","end","plugins","getNearestSelectionRange","differ","createRange","document","registerElementLabel","start","schema","forward"];var Ma,wa;Ma=La,wa=477,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0xc")](){const t=this.editor;if(!t[Oa("0x12")][Oa("0x10")]("Title"))return;const e=t[Oa("0x12")][Oa("0xf")](Oa("0x5"));e[Oa("0x3")][Oa("0x17")]("title-content",(()=>Qo(t[Oa("0x4")],Oa("0x0")))),t[Oa("0x1")][Oa("0x16")].registerPostFixer((n=>{let o=!1;const i=Array[Oa("0x9")](t[Oa("0x1")][Oa("0x16")][Oa("0x14")][Oa("0xb")]());for(const{name:r,data:s}of i){const{group:i}=e[Oa("0x8")](r);if(Oa("0xd")!==i||!s[Oa("0x6")])continue;const x=s[Oa("0x6")],a=x.end.nodeBefore;if(!a||!a.is(Oa("0x1b"),"title-content"))continue;if(!x[Oa("0x18")][Oa("0x7")](x[Oa("0x11")]))continue;const c=t[Oa("0x1")][Oa("0x19")][Oa("0x13")](x[Oa("0x11")],Oa("0x1a"));if(c&&c[Oa("0xe")]){const t=n[Oa("0x15")](x[Oa("0x18")],c[Oa("0x18")]);t[Oa("0xa")](x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[Oa("0x2")](r),o=!0)}return o}))}}const Da=["plugins","enableCommand","afterInit","undo","editor","has","redo","get","TrackChangesEditing"];var Ba,Pa;Ba=Da,Pa=224,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{[Ua("0x3")](){const t=this[Ua("0x5")],e=t[Ua("0x1")][Ua("0x8")](Ua("0x0"));t[Ua("0x1")][Ua("0x6")]("UndoEditing")&&(e.enableCommand(Ua("0x4")),e[Ua("0x2")](Ua("0x7")))}}const Ga=["enableCommand","toggleTableCaption","TableCaptionEditing","get","TrackChangesEditing","afterInit","plugins","requires"];var Va,Ha;Va=Ga,Ha=116,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{static get[za("0x3")](){return[$x]}[za("0x1")](){const t=this.editor;t[za("0x2")].has(za("0x6"))&&t.plugins[za("0x7")](za("0x0"))[za("0x4")](za("0x5"))}}const Ka=["get","accept","discard","nodeAfter","start","TablePropertiesEditing","tableHeight","setAttribute","_suggestionFactory","handleDiscardAction","handleSuggestionDescription","enableCommand","getSelectionAffectedTableCells","getFirstPosition","_descriptionFactory","format","tableBorderStyle","data","tableBorderWidth","selection","_getSuggestion","document","batch","tableCellBorderStyle","tableAlignment","commandParams","tableCellHeight","findAncestor","table","getSuggestions","model","has","registerCustomCallback","*Format:* change table cell properties","TrackChangesEditing","tableCellProperties","getSuggestionCallback","subType","_handlePropertyChange","getAttribute","plugins","tableCellWidth","getContainedElement","TrackChangesTableProperties","tableCellVerticalAlignment","locale","formatBlock","registerDescriptionCallback","tableCellHorizontalAlignment","enqueueChange","removeAttribute","editor","tableProperties","tableWidth","join","TableCellPropertiesEditing","tableCellBackgroundColor","afterInit","markBlockFormat"];var qa,Xa;qa=Ka,Xa=250,function(t){for(;--t;)qa.push(qa.shift())}(++Xa);const $a=function(t,e){return Ka[t-=0]};class Za extends t.Plugin{constructor(t){super(t),this.tableProperties=["tableBorderColor",$a("0x2"),$a("0x4"),$a("0xa"),$a("0x27"),$a("0x33"),"tableBackgroundColor"],this[$a("0x15")]=["tableCellBorderColor",$a("0x9"),"tableCellBorderWidth","tableCellPadding",$a("0x1b"),$a("0xc"),$a("0x2a"),$a("0x22"),$a("0x1e")]}static get pluginName(){return $a("0x1d")}[$a("0x2b")](){const t=this[$a("0x25")][$a("0x1a")].get($a("0x14"));if(this[$a("0x25")][$a("0x1a")].has($a("0x32"))){for(const e of this[$a("0x26")])t.enableCommand(e,((t,n)=>{const o=this[$a("0x25")][$a("0x10")][$a("0x7")][$a("0x5")][$a("0x3a")]()[$a("0xd")]($a("0xe"));this[$a("0x18")](e,[o],this[$a("0x26")],"tableProperties",t,n)}));t[$a("0x35")].registerCustomCallback($a("0x20"),$a("0x26"),"accept",t[$a("0x35")][$a("0x16")]($a("0x20"),null,$a("0x2f"))),t[$a("0x35")][$a("0x12")]($a("0x20"),$a("0x26"),"discard",((t,e)=>this.handleDiscardAction(this[$a("0x26")],t,e))),t[$a("0x35")].registerCustomCallback($a("0x20"),$a("0x26"),$a("0x28"),(()=>!1))}if(this[$a("0x25")][$a("0x1a")][$a("0x11")]($a("0x29"))){for(const e of this[$a("0x15")])t[$a("0x38")](e,((t,n)=>{const o=this.editor.plugins[$a("0x2d")]("TableUtils")[$a("0x39")](this.editor[$a("0x10")][$a("0x7")][$a("0x5")]);this[$a("0x18")](e,o,this[$a("0x15")],$a("0x15"),t,n)}));t[$a("0x35")][$a("0x12")]($a("0x20"),$a("0x15"),$a("0x2e"),t[$a("0x35")][$a("0x16")]($a("0x20"),null,$a("0x2f"))),t[$a("0x35")][$a("0x12")]($a("0x20"),$a("0x15"),$a("0x2f"),((t,e)=>this[$a("0x36")](this[$a("0x15")],t,e))),t[$a("0x35")][$a("0x12")]("formatBlock","tableCellProperties",$a("0x28"),(()=>!1))}t[$a("0x0")][$a("0x21")]((t=>this[$a("0x37")](t)))}[$a("0x18")](t,e,n,o,i,r){const s=this[$a("0x25")].plugins[$a("0x2d")]($a("0x14"));this.editor.model[$a("0x23")](r[$a("0x8")],(()=>{for(const t of e)if(this[$a("0x6")](t,o))i(r);else{const e={};for(const o of n){const n=t[$a("0x19")](o);void 0!==n&&(e[o]=n)}i(r),s[$a("0x2c")](t,{commandParams:[e]},[],o)}}))}[$a("0x36")](t,e,n){const o=e[0][$a("0x31")][$a("0x30")],i=n[$a("0xb")][0];this.editor[$a("0x10")].change((e=>{for(const n of t)void 0!==i[n]?e[$a("0x34")](n,i[n],o):e[$a("0x24")](n,o)}))}[$a("0x37")](t){if(t[$a("0x3")])switch(t[$a("0x17")]){case $a("0x26"):return{type:$a("0x1"),content:Qo(this.editor[$a("0x1f")],"*Format:* change table properties")};case $a("0x15"):return{type:"format",content:Qo(this[$a("0x25")].locale,$a("0x13"))}}}_getSuggestion(t,e){const n=this[$a("0x25")][$a("0x1a")][$a("0x2d")]("TrackChangesEditing");for(const o of n[$a("0xf")]({skipNotAttached:!0})){const n=o[$a("0x1c")]();if(o[$a("0x17")]===e&&n===t)return o}return null}}var Ya=Function.prototype,Ja=Object.prototype,Qa=Ya.toString,tc=Ja.hasOwnProperty,ec=Qa.call(Object);const nc=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=tc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Qa.call(n)==ec};const oc=function(t){return nc(t)?void 0:t};var ic=it?it.isConcatSpreadable:void 0;const rc=function(t){return ge(t)||de(t)||!!(ic&&t&&t[ic])};const sc=function t(e,n,o,i,r){var s=-1,x=e.length;for(o||(o=rc),r||(r=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,i,r):sn(r,a):i||(r[r.length]=a)}return r};const xc=function(t){return(null==t?0:t.length)?sc(t,1):[]};const ac=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var cc=Math.max;const lc=function(t,e,n){return e=cc(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=cc(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=o[i];return x[e]=n(s),ac(t,this,x)}};const uc=function(t){return function(){return t}};const dc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:uc(e),writable:!0})}:function(t){return t};var gc=Date.now;const fc=function(t){var e=0,n=0;return function(){var o=gc(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(dc);const mc=function(t){return fc(lc(t,void 0,xc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=bo(e,t),o||(o=e.length>1),e})),re(t,dn(t),n),o&&(n=to(n,7,oc));for(var i=e.length;i--;)Ko(n,e[i]);return n})),hc=["document","deletion:","refresh","toJSON","before","removeClass","getMarkers","set","_cutOutSuggestionMarker","trackChanges.trackFormatChanges","meta","attributeNewValue","unshift","getAttribute","options","addRange","containsPosition","after","isTouching","add","isCollapsed","map","_isDataLoaded","_suggestions","PendingActions","insert","formatGroupId","data-suggestion","splice","isRemovable","track-changes-adapter-missing-getsuggestion","forward","targetPosition","getIntersection","track-changes-suggestion-not-found","warn","conversion","getNearestSelectionRange","isEqual","_joinSuggestions","getCustomProperty","push","has","root","element","_SUGGESTION_ANNOUNCEMENT","showSuggestionHighlights","_reduceExistingSuggestions","stop","markMultiRangeBlockFormat","editingDowncast","ck-suggestion-marker-formatInline","ariaLiveAnnouncer","enableReadOnlyMode","size","discardSelectedSuggestions","removeMarker","_inlineAttributeKeys","track-changes-adapter-already-set","hasCommentThread","isAfter","delete","setTo","author","_model","rejected","insertion:","_createSuggestion","containerElement","insertion:chain","setAttribute","selection","getChanges","filter","consumable","isExternal","split","markMultiRangeInsertion","registerPostFixer","addCommentThread","createPositionAfter","suggestionChanged","pluginName","newValue","addHighlight","detach","removeMarker:suggestion:formatBlock","deleteContent","howMany","_splitMarkerName","highest","deletion","discardSuggestion","commentThread","value","formatBlock:chain","markInsertion","dataDowncast","creator","writer","isObject","comments","isInContent","createPositionAt","config","_joinWithAdjacentSuggestions","removeMarker:suggestion:attribute","consume","_processAttributeChanges","_findSuggestions","getSuggestionCallback","insertion","FORMATTING","getFirstRange","oldValue","data","multipleBlocks","upcast","enqueueChange","$elementName","external:","createdAt","ready","TrackChangesEditing","$text","isBlock","accept","deletion:chain","addSuggestionData","PENDING_ACTION_SUGGESTION","_blockAttributeKeys","markers","substr","batch","forceDefaultExecution","addMarker:suggestion","_updateSuggestionData","Users","trackChanges","addClass","ck-suggestion-marker","next","dataReady","_enableDefaultAttributesIntegration","getLastMatchingPosition","buildSuggestion","removeMarkers","_rangeIsInLocalUserInsertion","deletion:join","acceptSuggestion","adapter","getRanges","track-changes-user-not-found","_initAriaMarkerChangeAnnouncements","formatInline:","containsRangeInObject","discardAllSuggestions","position","getWalker","containsRange","collaboration.channelId","concat","isIntersecting","getRange","formatBlock:","group","moveTargetPosition","_suggestionState","unbindElementFromMarkerName","createSelection","_handleNewSuggestionMarker","_mergeNestedSuggestions","_breakSuggestionMarker","_trackFormatChanges","markerNameToElements","clone","normal","fromCharCode","getFirstMarker","change","head","elementToElement","marker-count","createElement","attribute:discard","addMarker:suggestion:formatBlock","catch","formatInline:join","createRangeIn","newRange","isLimit","isNextTo","addMarker","addSuggestion","change:activeMarkers","_getExternalAuthor","dataToMarker","insertion:accept","_setSuggestionRange","values","trackChanges.mergeNestedSuggestions","previous","removeAttribute","suggestion:attribute:","markerToData","get","updateSuggestion","update:suggestion","isAtEnd","suggestion:","change:data","setSelection","attributeOldValue","schema","length","enableCommand","for","toViewElement","ck-suggestion-marker-formatBlock","_saved","attribute:","addAttribute","_removeSuggestion","isArray","commands","getMultiRangeId","rename","backward","ck-suggestion-marker--active","createPositionBefore","low","getShiftedBy","return","suggestion-type","applyOperation","markerReady","attributes","markerToHighlight","_addThreadToSuggestion","then","locale","isOwn","getAncestors","getSuggestion","_isForcedDefaultExecutionBlock","_defaultCallbacks","_recordAttributeSuggestionsFromVersion","elementStart","chain","_registerBlockAttribute","formatBlock:accept","pop","getUser","_refreshAttributeSuggestionsChain","track-changes-command-not-found","registerCustomCallback","execute","isInsideObject","_registerInlineAttribute","never","_editor","markMultiRangeDeletion","forEach","removeComment","every","createRangeOn","markDeletion","model","substring","mapper","format","hasSuggestion","high","_addSuggestionMarker","always","attribute","differ","commandName","range","_isBlockAttribute","fromRange","@external","isSelectable","markBlockFormat","authorName","$textProxy","unbind","from","getDifference","open","isAtStart","plugins","nodeAfter","item","insertContent","getChangedMarkers","addMarker:suggestion:attribute","parent","_processAttributeSuggestions","discard","originalSuggestionId","rootName","groupId","some","isBefore","track-changes-suggestion-data-mismatch","suggestionLoaded","getAllAdjacentSuggestions","fire","_customCallbacks","elementEnd","_descriptionFactory","skipNestingCheck","markerName","hasComments","removed","startsWith","join","LEAVE","CommentsRepository","_reduceSuggestionAttributeRange","start","formatBlock:join","lowest","formatBlock:discard","deletion:discard","$marker","_getAuthorFromId","name","markInlineFormat","_adapter","isLocal","createRange","listenTo","trackChangesCommand","remove","nodeBefore","notReady","announce","addUser","insertion:discard","end","_recordAttributeChanges","editor","_getMarkerAnnouncementText","$graveyard","isIntersectingWithRange","key","_setSuggestionData","getSuggestions","toUpperCase","subType","formatBlock","formatInline:discard","_registerDefaultCallbacks","clear","activeMarkers","getOperations","isMultiRange","ck-suggestion-marker-","getContainedElement","_suggestionFactory","ENTER","_commentsRepository","addComment","version","multi","sort","find","_refreshSuggestionsChain","_getSuggestionData","attribute:join","updateMarker","suggestionUnloaded","suggestion","addMarkerName","_enabledCommands","markAttributeChange","assign","type","includes","authoredAt","define","acceptSelectedSuggestions","formatInline","oldRange"];var bc,pc;bc=hc,pc=270,function(t){for(;--t;)bc.push(bc.shift())}(++pc);const Ec=function(t,e){return hc[t-=0]},_c=Ec("0xeb");class Tc extends t.Plugin{static get requires(){return[Ec("0x31"),r.Users,t.PendingActions,ci,fi,_i,ki,Di,Li,Gi,qi,rr,lr,mr,Tr,Ir,Mr,Br,Hr,Xr,Qr,is,cs,Es,fs,As,vs,Os,Us,zs,Ys,nx,xx,dx,bx,Cx,Sx,wx,Ux,zx,$x,ea,sa,Wa,ga,_a,Na,Za,ka,Fa,ja]}static get[Ec("0xc6")](){return Ec("0xef")}constructor(t){function e(t){return t.map((t=>String[Ec("0x125")](t)))[Ec("0x2f")]("")}super(t),this[Ec("0x16a")]=null,this[Ec("0x7b")](Ec("0x56"),[]),this.on(Ec("0x136"),((e,n,o,i)=>{this[Ec("0xb4")][Ec("0x127")]((()=>{for(const e of[...i,...o])this[Ec("0xb4")].markers[Ec("0x9e")](e)&&t.editing.reconvertMarker(e)}))})),this[Ec("0x29")]=new ii(this.editor[Ec("0x17f")][Ec("0x149")],this[Ec("0x49")][Ec("0x164")]),this._adapter=null,this[Ec("0x5b")]=new yc(this[Ec("0x49")]),this[Ec("0x8b")]=new Map,this._commentsRepository=t[Ec("0x15")][Ec("0x141")](Ec("0x31")),this[Ec("0x6a")]=new Set,this[Ec("0xb4")]=this.editor[Ec("0x17f")],this._suggestionState=new WeakMap,this._isForcedDefaultExecutionBlock=!1,this[Ec("0xf6")]=new Set([Ec("0xeb")]),this[Ec("0xad")]=new Set,t[Ec("0xdc")][Ec("0x70")](Ec("0x7d"),"default"),this[Ec("0x121")]=t.config.get(Ec("0x7d")),t[Ec("0xdc")][Ec("0x70")](Ec("0x13c"),!0),this[Ec("0x11f")]=t[Ec("0xdc")][Ec("0x141")](Ec("0x13c")),this[Ec("0x40")]=new d(t,this[Ec("0x6a")]),this[Ec("0x10d")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,56,48,50,49,50])}init(){const t=this[Ec("0x49")],n=(t,e)=>{if(Ec("0x5")!=t)return Ec("0x59")+t;const n=e[Ec("0xc0")]("|")[0];return this[Ec("0x9")](n)?Ec("0x14e"):Ec("0xa7")};t[Ec("0x98")][Ec("0x14c")]("editingDowncast")[Ec("0x161")]({model:Ec("0x68"),view:t=>{const{id:e,type:o,subType:i}=this[Ec("0xcd")](t[Ec("0x2b")]),r=[Ec("0x100"),n(o,i)];let s=3e3;return this[Ec("0x56")].includes(t[Ec("0x2b")])&&(r.push(Ec("0x158")),s=3010),"deletion"==o&&(s+=5),{classes:r,attributes:{"data-suggestion":e},priority:s}}}),t[Ec("0x98")][Ec("0x14c")](Ec("0xd5"))[Ec("0x87")]((e=>{e.on(Ec("0xfb"),((e,n,o)=>{if(!o[Ec("0x82")].showSuggestionHighlights)return;const i=n[Ec("0x17")];if(!i)return;const r=o.mapper[Ec("0x14d")](i);t[Ec("0x17f")][Ec("0x149")][Ec("0xd8")](i)&&r&&!r[Ec("0x9c")]("widget")&&r.is(Ec("0xb8"))&&(0,x.toWidget)(r,o.writer)}),{priority:Ec("0x2")})})),t.conversion.for(Ec("0xd5")).markerToHighlight({model:Ec("0x68"),view:(t,e)=>{if(!e[Ec("0x82")][Ec("0xa2")])return null;const{type:o,subType:i}=this[Ec("0xcd")](t[Ec("0x2b")]);return{classes:[Ec("0x100"),n(o,i)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,i,r)=>{if(!i[Ec("0x17")])return;const{id:s}=this[Ec("0xcd")](i[Ec("0x2b")]);if(n){const t=wc(this[Ec("0x8b")][Ec("0x141")](s));if(!this[Ec("0x9")](t))return}if(i.item.is(Ec("0xbb")))return void r[Ec("0xbe")][Ec("0xdf")](i[Ec("0x17")],o[Ec("0x3a")]);const x=r.mapper[Ec("0x14d")](i.item);if(i[Ec("0x17")].is(Ec("0xa0"))&&t[Ec("0x17f")][Ec("0x149")][Ec("0xf1")](i.item)&&!x[Ec("0x9c")](Ec("0xc8"))){r.writer[Ec("0xff")]([Ec("0x100"),Ec("0x14e")],x),r[Ec("0xd7")][Ec("0xba")](Ec("0x8f"),s,x),r[Ec("0x181")].bindElementToMarker(x,i[Ec("0x2b")]),e&&(this[Ec("0x56")][Ec("0x6e")](i[Ec("0x2b")])?r.writer[Ec("0xff")](Ec("0x158"),x):r.writer.removeClass(Ec("0x158"),x));for(const e of t[Ec("0x17f")][Ec("0x130")](i[Ec("0x17")]).getItems())r.consumable.consume(e,o[Ec("0x3a")]);r.consumable.consume(i.item,o[Ec("0x3a")])}};t[Ec("0x98")].for(Ec("0xd5"))[Ec("0x87")]((t=>{t.on(Ec("0x12d"),((t,e,n)=>{n[Ec("0x82")][Ec("0xa2")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:"highest"})})),t[Ec("0x98")].for(Ec("0xd5"))[Ec("0x87")]((t=>{t.on(Ec("0x1a"),((t,e,n)=>{n[Ec("0x82")][Ec("0xa2")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:Ec("0xce")})})),t.conversion[Ec("0x14c")](Ec("0xd5"))[Ec("0x140")]({model:Ec("0x68"),view:(t,e)=>e[Ec("0x82")][Ec("0xa2")]?null:{group:Ec("0x68"),name:t[Ec("0xf8")](11)}}),t[Ec("0x98")][Ec("0x14c")](Ec("0xe9"))[Ec("0x129")]({view:{name:Ec("0x68"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Ec("0x145")+t.getAttribute(Ec("0x15d"))+":"+t.getAttribute("id");return t[Ec("0x81")](Ec("0x12a"))&&(n+=":"+t.getAttribute("marker-count")),e[Ec("0x12b")](Ec("0x38"),{"data-name":n})}}),t[Ec("0x98")][Ec("0x14c")]("upcast")[Ec("0x138")]({view:"suggestion"}),t[Ec("0x98")][Ec("0x14c")]("editingDowncast")[Ec("0x87")]((t=>{t.on(Ec("0x12d"),o(),{priority:Ec("0x2")})})),t[Ec("0x98")][Ec("0x14c")](Ec("0xa6"))[Ec("0x87")]((t=>{t.on("addMarker:suggestion:attribute",o({isAttributeSuggestion:!0}),{priority:Ec("0x2")})})),t[Ec("0x98")][Ec("0x14c")](Ec("0xa6"))[Ec("0x87")]((t=>{t.on(Ec("0xca"),((t,e,n)=>{const o=n[Ec("0x181")][Ec("0x122")](e.markerName);if(o)for(const t of o)t[Ec("0x9c")](Ec("0xc8"))||(n[Ec("0xd7")][Ec("0x79")]([Ec("0x100"),Ec("0x14e"),"ck-suggestion-marker--active"],t),n[Ec("0xd7")][Ec("0x13e")](Ec("0x8f"),t),n[Ec("0x181")][Ec("0x11c")](t,e[Ec("0x2b")]))}),{priority:Ec("0x2")})})),t[Ec("0x98")].for(Ec("0xa6"))[Ec("0x87")]((t=>{t.on(Ec("0xde"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[Ec("0x2b")]);if(!o)return;const{id:i}=this[Ec("0xcd")](e[Ec("0x2b")]),r=wc(this[Ec("0x8b")][Ec("0x141")](i));if(this[Ec("0x9")](r))for(const t of o)t[Ec("0x9c")](Ec("0xc8"))||(n[Ec("0xd7")].removeClass([Ec("0x100"),Ec("0x14e"),Ec("0x158")],t),n[Ec("0xd7")][Ec("0x13e")](Ec("0x8f"),t),n[Ec("0x181")][Ec("0x11c")](t,e.markerName))}),{priority:Ec("0x2")})})),t.model[Ec("0x74")][Ec("0xc2")]((e=>{let n=!1;const o=Array[Ec("0x11")](t[Ec("0x17f")][Ec("0x74")][Ec("0x6")][Ec("0x19")]()),i=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[Ec("0xcd")](x);if(Ec("0x68")!==o)continue;const d=this[Ec("0x8b")][Ec("0x141")](u);if(null!=a[Ec("0x131")]){"formatInline"==c&&(n=n||kc(a.newRange,x,e,t.model[Ec("0x149")]));const o=Ec("0x5")==c&&this._isBlockAttribute(l[Ec("0xc0")]("|")[0]);if(a.newRange[Ec("0x88")]||Ec("0x4b")==a.newRange.root.rootName||Ec("0x52")==c&&!Rc(a.newRange)||o&&!Rc(a.newRange)||"deletion"==c&&(Ac(s=a[Ec("0x131")])||(r=s).start[Ec("0x1b")]==r[Ec("0x47")][Ec("0x42")]&&r[Ec("0x33")].isAtEnd))e.removeMarker(x),n=!0;else{if(!d||!d[Ec("0xda")])continue;i[Ec("0x87")](d)}}}var r,s;return i[Ec("0xaa")]>0&&(n=!!this[Ec("0xdd")](i)||n),n})),t[Ec("0x17f")][Ec("0x74")][Ec("0xc2")]((e=>{let n=!1;for(const o of t[Ec("0x17f")][Ec("0x74")].differ[Ec("0xbc")]())if(Ec("0x8d")==o[Ec("0x6d")])for(const o of this[Ec("0x8b")][Ec("0x13b")]()){if(o.isMultiRange||!o.isInContent)continue;const i=Ec("0x52")==o[Ec("0x6d")],r=wc(o),s=r&&this._isBlockAttribute(r);if(!i&&!s)continue;const x=o[Ec("0xe5")]();if(x.start[Ec("0x1b")]!=x[Ec("0x47")][Ec("0x1b")]&&!x.end[Ec("0x144")]){const i=t[Ec("0x17f")][Ec("0xdb")](x.start[Ec("0x16")],Ec("0x47")),r=t[Ec("0x17f")].createRange(x[Ec("0x33")],i);e[Ec("0x66")](o[Ec("0x126")](),{range:r}),n=!0}}return n})),t[Ec("0x17f")].document[Ec("0xc2")]((t=>this[Ec("0xe0")](t))),t[Ec("0x17f")][Ec("0x74")][Ec("0xc2")]((t=>!t.batch[Ec("0x3d")]&&this[Ec("0x1c")](t))),t[Ec("0x17f")][Ec("0xf7")].on(Ec("0x143"),((t,e,n)=>{if(null==n){const{id:t}=this[Ec("0xcd")](e.name),n=this[Ec("0x8b")][Ec("0x141")](t);n&&n[Ec("0x69")](e[Ec("0x3a")])}})),t.model.document.on(Ec("0x146"),(()=>{const e=Array.from(t[Ec("0x17f")].document.differ[Ec("0x19")]())[Ec("0xbd")]((t=>Ec("0x68")===this[Ec("0xcd")](t[Ec("0x3a")])[Ec("0x119")]));if(0===e[Ec("0x14a")])return;e[Ec("0x61")](((t,e)=>{const n=t[Ec("0xe7")][Ec("0x73")],o=e[Ec("0xe7")][Ec("0x73")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[Ec("0x22")](o[Ec("0x33")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:i}of e){const{id:e}=this[Ec("0xcd")](t);if(null===i.oldRange){const e=this[Ec("0x11e")](t);o[Ec("0x87")](e)}else{const t=this[Ec("0x8b")][Ec("0x141")](e);null!==i.newRange||t.isInContent?(n[Ec("0x87")](t[Ec("0x128")]),o[Ec("0x87")](t)):this[Ec("0x152")](t)}}o[Ec("0xaa")]>0&&this[Ec("0x63")](o);for(const t of n)this[Ec("0x26")](Ec("0xc5"),t)})),t[Ec("0x17f")].on(Ec("0x15e"),((e,n)=>{const o=n[0];if(!this._suggestions.size)return;if(!o.isDocumentOperation)return;if(o[Ec("0xf9")].isUndo||!o.batch[Ec("0x3d")])return;let i,r;switch(o[Ec("0x6d")]){case Ec("0x8d"):i=t[Ec("0x17f")][Ec("0xdb")](o.position),r=i[Ec("0x15b")](o[Ec("0xcc")]);break;case Ec("0xc0"):i=t.model[Ec("0xdb")](o.splitPosition),r=t[Ec("0x17f")][Ec("0xdb")](o[Ec("0x11a")]);break;case"move":i=t.model[Ec("0xdb")](o[Ec("0x94")]),r=i[Ec("0x15b")](o.howMany);break;default:return}const s=t.model[Ec("0x3e")](i,r);t[Ec("0x17f")][Ec("0x127")]((()=>{for(const{suggestion:t,meta:e}of this[Ec("0xe1")](s)){if(t[Ec("0x58")])continue;if(Ec("0x72")==t.type)continue;const n=wc(t);if(n&&this._isBlockAttribute(n)&&Ec("0xc0")!=o[Ec("0x6d")])continue;const x=t[Ec("0xe7")]&&t[Ec("0xe7")][Ec("0xe8")];(Ec("0x52")!=t[Ec("0x6d")]||Ec("0xc0")==o.type&&!x)&&(e[Ec("0x10f")]||Ec("0xe3")==t[Ec("0x6d")]&&e[Ec("0x165")]||t.getFirstRange()[Ec("0x113")](s)&&this[Ec("0x120")](t,i,r))}}))}),{priority:Ec("0x35")}),t.model.on(Ec("0xcb"),((e,n)=>{const o=n[0],i=n[1];if(i&&i[Ec("0xfa")])return;if(this[Ec("0x168")])return;if(!this.trackChangesCommand.value)return;if(o[Ec("0x88")])return;const r=t[Ec("0x17f")][Ec("0x149")],{start:s,end:x}=o[Ec("0xe5")](),a=s[Ec("0x16")]&&r.isLimit(s[Ec("0x16")])?null:r[Ec("0x99")](s,Ec("0x93")),c=x[Ec("0x42")]&&r.isLimit(x.nodeBefore)?null:r[Ec("0x99")](x,Ec("0x157")),l=t[Ec("0x17f")][Ec("0x3e")](a?a[Ec("0x33")]:s,c?c[Ec("0x47")]:x);t[Ec("0x17f")].change((e=>{this[Ec("0x17e")](l);const n=t[Ec("0x17f")][Ec("0x149")].getNearestSelectionRange(l[Ec("0x33")]);o.is("documentSelection")?e[Ec("0x147")](n):o[Ec("0xb2")](n)})),e[Ec("0xa4")]()}),{priority:e.priorities[Ec("0x124")]+10}),t[Ec("0x17f")].on(Ec("0x18"),((e,n)=>{const o=n[n[Ec("0x14a")]-1];o&&o[Ec("0xfa")]||this[Ec("0x168")]||this.trackChangesCommand[Ec("0xd2")]&&(t[Ec("0x17f")].change((()=>{let o=t[Ec("0x17f")][Ec("0x18")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Ec("0x15c")]=o[Ec("0x123")]();const i=o[Ec("0x47")][Ec("0x42")],r=t[Ec("0x17f")][Ec("0x149")];i&&r[Ec("0xf1")](i)&&!r.isObject(i)&&(o=t[Ec("0x17f")][Ec("0x3e")](o[Ec("0x33")],t.model[Ec("0xdb")](i,Ec("0x47")))),this[Ec("0xd4")](o)})),e.stop())}),{priority:Ec("0x2")}),this[Ec("0x49")][Ec("0x154")][Ec("0x87")](Ec("0xfe"),this[Ec("0x40")]),this[Ec("0x14b")](Ec("0xfe"));const i=new b(t,this[Ec("0x8b")]);t[Ec("0x154")][Ec("0x87")](Ec("0x109"),i),this[Ec("0x14b")]("acceptSuggestion");const r=new y(t,this[Ec("0x8b")]);t.commands[Ec("0x87")](Ec("0xd0"),r),this[Ec("0x14b")](Ec("0xd0")),t.commands[Ec("0x87")]("acceptAllSuggestions",new F(t,i,this._suggestions)),this[Ec("0x14b")]("acceptAllSuggestions"),t[Ec("0x154")].add(Ec("0x110"),new F(t,r,this[Ec("0x8b")])),this[Ec("0x14b")](Ec("0x110")),t[Ec("0x154")][Ec("0x87")](Ec("0x71"),new j(t,i,this[Ec("0x8b")])),this.enableCommand(Ec("0x71")),t[Ec("0x154")][Ec("0x87")](Ec("0xab"),new j(t,r,this._suggestions)),this[Ec("0x14b")](Ec("0xab"));const s=t.plugins[Ec("0x141")](Ec("0x31"));this[Ec("0x3f")](s,Ec("0x5e"),((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n[Ec("0xd1")]&&1===n.commentThread[Ec("0x14a")]&&this[Ec("0xfc")](e,{hasComments:!0})}),{priority:Ec("0x15a")}),this[Ec("0x3f")](s,Ec("0x17b"),((t,{threadId:e})=>{const n=this._suggestions[Ec("0x141")](e);n&&n[Ec("0xd1")]&&!n.commentThread[Ec("0x14a")]&&this[Ec("0xfc")](e,{hasComments:!1})}),{priority:Ec("0x15a")})}set[Ec("0x10a")](t){if(this[Ec("0x3c")])throw new e.CKEditorError(Ec("0xae"),this);this[Ec("0x3c")]=t}get[Ec("0x10a")](){return this[Ec("0x3c")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[Ec("0x13b")]())t&&!e[Ec("0xda")]||n[Ec("0x9d")](e);return e?n[Ec("0x89")]((t=>t[Ec("0x77")]())):n}[Ec("0x167")](t){const n=this[Ec("0x8b")][Ec("0x141")](t);if(!n)throw new e.CKEditorError(Ec("0x96"),this);return n}[Ec("0x1")](t){return this._suggestions.has(t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[i,r]=t.type[Ec("0xc0")](":"),s=this[Ec("0x8b")][Ec("0x141")](n)||this[Ec("0xb7")](i,r,n,e,o);if(this[Ec("0x162")](s),this._checkSuggestionCorrectness(s,i,r||null,e),s[Ec("0xed")]=t[Ec("0xed")],s[Ec("0x8a")]=!0,o&&o[Ec("0xb")]){const t=o[Ec("0xb")],e=this[Ec("0x137")](t[Ec("0xe")]);s.authoredAt=t[Ec("0xed")],s[Ec("0xb3")]=e,s[Ec("0xbf")]=!0}else s[Ec("0x6f")]=t[Ec("0xed")];switch(t[Ec("0xe7")]&&(s[Ec("0xe7")]=t[Ec("0xe7")]),t.attributes&&(s.attributes=t.attributes),this[Ec("0x3c")]&&this[Ec("0x3c")][Ec("0x135")]||(s[Ec("0x14f")]=!0),this._suggestionState[Ec("0x141")](s)){case"notReady":this[Ec("0x11b")][Ec("0x7b")](s,Ec("0x102"));break;case Ec("0x15f"):s[Ec("0xda")]?(this[Ec("0x63")](new Set([s])),this[Ec("0xdd")](new Set([s])),this[Ec("0x11b")][Ec("0x7b")](s,Ec("0xee")),this[Ec("0x26")](Ec("0x24"),s)):this[Ec("0x11b")][Ec("0x7b")](s,Ec("0x2d"))}return s}[Ec("0x109")](t){this[Ec("0xfa")]((()=>{this[Ec("0x49")][Ec("0x17f")].change((()=>{for(const e of t[Ec("0x25")]())e.accept()}))}))}[Ec("0xd0")](t){this[Ec("0xfa")]((()=>{this[Ec("0x49")].model.change((()=>{for(const e of t[Ec("0x25")]())e[Ec("0x1d")]()}))}))}enableCommand(t,n){const o=this[Ec("0x49")][Ec("0x154")].get(t);if(!o)throw new e.CKEditorError(Ec("0x172"),this,{commandName:t});if(this[Ec("0x6a")][Ec("0x9e")](o))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this[Ec("0x6a")][Ec("0x87")](o),n&&o.on(Ec("0x174"),((t,e)=>{this.trackChangesCommand[Ec("0xd2")]&&(this._isForcedDefaultExecutionBlock||(e.length>0&&e[e[Ec("0x14a")]-1]&&e[e[Ec("0x14a")]-1][Ec("0xfa")]?e[Ec("0x16f")]():(t[Ec("0x15c")]=n(((...t)=>o[Ec("0x174")](...t,{forceDefaultExecution:!0})),...e),t[Ec("0xa4")]())))}),{priority:Ec("0x2")})}forceDefaultExecution(t){let n,o;const i=this._isForcedDefaultExecutionBlock;this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return i||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[Ec("0xd4")](t,n=null,o={}){if(t[Ec("0x88")])return null;const i=this[Ec("0x49")][Ec("0x15")][Ec("0x141")](Ec("0xfd")).me;for(const{suggestion:e,meta:i}of this._findSuggestions(t,Ec("0xe3")))if(i[Ec("0x165")]){if(!i[Ec("0x133")]){if(i.containsRangeInObject){if(!this[Ec("0x11f")]||!Lc(e,o))continue;return e}if(Lc(e,o))return e;this[Ec("0x120")](e,t[Ec("0x33")],t[Ec("0x47")]);break}if(n==e.subType&&Lc(e,o)){const n=e[Ec("0xe5")]();return n.start.isEqual(t[Ec("0x47")])?this._setSuggestionRange(e,this._model.createRange(t.start,n[Ec("0x47")])):this[Ec("0x13a")](e,this[Ec("0xb4")][Ec("0x3e")](n[Ec("0x33")],t[Ec("0x47")])),e}}const r=(0,e.uid)(),s=i.id,x=n?Ec("0xb6")+n:"insertion",a=this[Ec("0x4e")]({id:r,type:x,createdAt:new Date,authorId:s,attributes:o});return this[Ec("0x3")](x,r,s,t),a}[Ec("0xc1")](t,n=Ec("0x60"),o={}){const i=this.editor[Ec("0x15")][Ec("0x141")](Ec("0xfd")).me,r=this[Ec("0x5b")][Ec("0xe2")]("insertion",n,Ec("0x2f"));for(const e of this[Ec("0x4f")]())if(e[Ec("0xb3")].id==i.id&&"insertion"==e[Ec("0x6d")]&&e.subType==n&&Lc(e,o)&&(r(e[Ec("0x10b")](),t)||r(t,e.getRanges()))){for(const n of t)e[Ec("0x83")](n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,Ec("0xe3"))){if(!n[Ec("0x165")])continue;if(!this[Ec("0x11f")]&&n.containsRangeInObject)continue;if(!Lc(e,o))continue;let i=!0;for(const n of e[Ec("0x10b")]())for(const e of t)if(!n.containsRange(e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=Ec("0xb6")+n,c=this[Ec("0x4e")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Ec("0x3")](a,s,x,e,Jo[Ec("0x155")]());return c}[Ec("0x3b")](t,n,o=null,i={}){if(o=o||Ic(n),t[Ec("0x88")])return null;if(Ec("0x177")===this[Ec("0x121")]){const e=this[Ec("0x5b")][Ec("0xe2")](Ec("0x72"),o,Ec("0xf2"));return this[Ec("0xfa")]((()=>e([t],n,i))),null}const r=this[Ec("0x49")][Ec("0x15")][Ec("0x141")](Ec("0xfd")).me,s=[];if(Ec("0x4")!==this[Ec("0x121")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,Ec("0xe3")))n[Ec("0x165")]&&!n[Ec("0x175")]&&s[Ec("0x9d")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[Ec("0x95")](o);e&&n[Ec("0x9d")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e][Ec("0x12")](t);n.splice(e,1,...o),e+=o[Ec("0x14a")]}}return n}(t,s);x.length&&this._model[Ec("0x127")]((()=>{for(const t of x){const e=this[Ec("0x5b")][Ec("0xe2")]("formatInline",o,Ec("0xf2"));this[Ec("0xfa")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[Ec("0x33")],a=t[Ec("0x47")];for(const{suggestion:e,meta:n}of this[Ec("0xe1")](t,"formatInline")){if(!n[Ec("0x165")])continue;if(e[Ec("0x51")]!=o)continue;if(!Lc(e,i))continue;const r=e[Ec("0xe5")]();if(r[Ec("0x113")](t,!0))return null;x=x.isBefore(r[Ec("0x33")])?x:r[Ec("0x33")],a=a[Ec("0xb0")](r[Ec("0x47")])?a:r[Ec("0x47")],s?r[Ec("0x33")][Ec("0x22")](s[Ec("0xe5")]()[Ec("0x33")])?(s[Ec("0x106")](),s=e):e[Ec("0x106")]():s=e}const c=this[Ec("0xb4")][Ec("0x3e")](x,a);if(s)this._setSuggestionRange(s,c);else{const t=(0,e.uid)(),s=r.id;this[Ec("0x4e")]({id:t,type:Ec("0x10e")+o,data:n,createdAt:new Date,authorId:s,attributes:i}),this[Ec("0x3")](Ec("0x10e")+o,t,s,c)}}return null}[Ec("0xd")](t,n,o=[],i=null,r={}){n[Ec("0x8e")]||(n[Ec("0x8e")]=n[Ec("0x7")]),n[Ec("0xe8")]=t.is("range"),i=i||Ic(n);const s=o[Ec("0x89")]((t=>Sc(t,this._model))),x=t.is(Ec("0x8"))?t:Sc(t,this[Ec("0xb4")]);if(Ec("0x177")===this[Ec("0x121")]){const t=this[Ec("0x5b")].getSuggestionCallback("formatBlock",i,"accept");return this[Ec("0xfa")]((()=>t([x],n,r))),null}s[Ec("0x9d")](x);let a=!0;for(const t of s)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&Ec("0x4")!==this[Ec("0x121")]){const t=this[Ec("0x5b")][Ec("0xe2")](Ec("0x52"),i,Ec("0xf2"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[Ec("0x33")],u=x.end;for(const{suggestion:t,meta:e}of this._findSuggestions(x,Ec("0x52"))){if(!e.isOwn)continue;if(e[Ec("0x133")]||e[Ec("0x10f")]||e[Ec("0x175")])continue;if(t[Ec("0xe7")][Ec("0x8e")]!=n[Ec("0x8e")])continue;if(!Lc(t,r))continue;const o=t[Ec("0xe5")]();if(t[Ec("0x51")]==i){if(o.containsRange(x,!0))return null;l=l[Ec("0x22")](o[Ec("0x33")])?l:o[Ec("0x33")],u=u[Ec("0xb0")](o[Ec("0x47")])?u:o.end,c?o.start[Ec("0x22")](c[Ec("0xe5")]().start)?(c[Ec("0x106")](),c=t):t[Ec("0x106")]():c=t}else{const e=x.getIntersection(o);this[Ec("0x7c")](t,e)}}const d=this[Ec("0x49")].plugins[Ec("0x141")]("Users").me,g=(0,e.uid)(),f=d.id;if(c)return this._setSuggestionRange(c,this[Ec("0xb4")][Ec("0x3e")](l,u)),c;{const t=this[Ec("0x4e")]({id:g,type:Ec("0x118")+i,data:n,createdAt:new Date,authorId:f,attributes:r});return this[Ec("0x3")](Ec("0x118")+i,g,f,this[Ec("0xb4")][Ec("0x3e")](l,u)),t}}[Ec("0xa5")](t,n,o=[],i=null,r={}){n[Ec("0x8e")]||(n.formatGroupId=n.commandName);const s=t[0];n[Ec("0xe8")]=s.is(Ec("0x8")),i=i||Ic(n);const x=o[Ec("0x89")]((t=>Sc(t,this[Ec("0xb4")]))),a=s.is(Ec("0x8"))?t:t[Ec("0x89")]((t=>Sc(t,this[Ec("0xb4")])));if(Ec("0x177")===this[Ec("0x121")]){const t=this[Ec("0x5b")][Ec("0xe2")](Ec("0x52"),i,Ec("0xf2"));return this[Ec("0xfa")]((()=>t(a,n,r))),null}x[Ec("0x9d")](...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&"always"!==this[Ec("0x121")]){const t=this[Ec("0x5b")][Ec("0xe2")](Ec("0x52"),i,Ec("0xf2"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[Ec("0x49")][Ec("0x15")][Ec("0x141")](Ec("0xfd")).me;for(const t of this.getSuggestions()){if(t.author.id!=l.id)continue;if(Ec("0x52")!=t[Ec("0x6d")]||t[Ec("0xe7")][Ec("0x8e")]!=n.formatGroupId)continue;if(!Lc(t,r))continue;const e=t[Ec("0x51")]==i;for(let n=0;n<a[Ec("0x14a")];n++){const o=a[n];for(const i of t[Ec("0x7a")]()){const r=i[Ec("0x117")]();if(o[Ec("0x9a")](r)){e?(a[Ec("0x90")](n,1),n--):t[Ec("0xac")](i[Ec("0x3a")]);break}}}}if(0==a.length)return null;const u=this[Ec("0x5b")][Ec("0xe2")]("formatBlock",i,Ec("0x2f"));for(const t of this[Ec("0x4f")]())if(t[Ec("0xb3")].id==l.id&&"formatBlock"==t[Ec("0x6d")]&&t[Ec("0xe7")][Ec("0x8e")]==n[Ec("0x8e")]&&t.subType==i&&Lc(t,r)&&(u(t[Ec("0x10b")](),a)||u(a,t[Ec("0x10b")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,f=Ec("0x118")+i,m=this[Ec("0x4e")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Ec("0x3")](f,d,g,t,Jo[Ec("0x155")]());return m}markDeletion(t,n=null,o={}){if(t.isCollapsed)return null;const i=this[Ec("0x49")][Ec("0x15")].get(Ec("0xfd")).me,r=new s.LiveRange(t.start,t[Ec("0x47")]);for(const{suggestion:t,meta:e}of this[Ec("0xe1")](r,Ec("0xe3")))if(e[Ec("0x165")]&&!e[Ec("0x133")])if(t[Ec("0x58")]){const e=t[Ec("0x10b")]().filter((t=>Ec("0x4b")!=t[Ec("0x9f")][Ec("0x1f")]));if(e.every((t=>r[Ec("0x113")](t,!0)))&&t[Ec("0x1d")](),e.some((t=>t[Ec("0x113")](r,!0)))){const t=this[Ec("0x5b")].getSuggestionCallback(Ec("0xcf"),n,Ec("0xf2"));return this[Ec("0xfa")]((()=>t([r],null,o))),null}}else{const e=r[Ec("0x95")](t[Ec("0xe5")]());null!==e&&t._onDiscard([e],null,o)}if(r[Ec("0xc9")](),r[Ec("0x88")]||Ec("0x4b")==r[Ec("0x9f")][Ec("0x1f")])return null;let x=null,a=r[Ec("0x33")],c=r[Ec("0x47")];const l=this[Ec("0xe1")](r,Ec("0xcf"));for(const{suggestion:t,meta:e}of l){const n=this[Ec("0xb4")][Ec("0x3e")](a,c);if(e[Ec("0x165")]&&(this[Ec("0x11f")]||!e.containsRangeInObject&&!e[Ec("0x175")]))if(t[Ec("0x58")]){if(!Lc(t,o))continue;let e=!0;for(const o of t[Ec("0x10b")]()){if(o[Ec("0x113")](n,!0))return t;n[Ec("0x113")](o)||(e=!1)}e&&t.discard()}else{const e=t[Ec("0xe5")]();if(e[Ec("0x113")](n,!0))return t;if(!Lc(t,o)){n[Ec("0x113")](e)?t.removeMarkers():e[Ec("0x84")](a)?a=e[Ec("0x47")]:e[Ec("0x84")](c)&&(c=e[Ec("0x33")]);continue}a=a[Ec("0x22")](e.start)?a:e[Ec("0x33")],c=c[Ec("0xb0")](e[Ec("0x47")])?c:e[Ec("0x47")],o=Object[Ec("0x6c")]({},t.attributes),x?e[Ec("0x33")][Ec("0x22")](x[Ec("0xe5")]()[Ec("0x33")])?(x[Ec("0x106")](),x=t):t[Ec("0x106")]():x=t}}if(x)return this._setSuggestionRange(x,this[Ec("0xb4")].createRange(a,c)),x;{const t=(0,e.uid)(),r=this._model[Ec("0x3e")](a,c),s=i.id,x=n?Ec("0x75")+n:"deletion",l=this[Ec("0x4e")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[Ec("0x3")](x,t,s,r),l}}[Ec("0x179")](t,n="multi",o={}){const i=this[Ec("0x49")][Ec("0x15")][Ec("0x141")](Ec("0xfd")).me,r=t[Ec("0x89")]((t=>new s.LiveRange(t.start,t[Ec("0x47")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Ec("0xe1")](r,Ec("0xe3")))e[Ec("0x165")]&&!e[Ec("0x133")]&&x.add(t);for(const e of x)if(e[Ec("0x58")]){const i=e[Ec("0x10b")]();if((!e[Ec("0x160")]||!e[Ec("0x160")][Ec("0x2a")])&&i[Ec("0x17c")]((t=>r[Ec("0x21")]((e=>e.containsRange(t,!0)))))&&e[Ec("0x1d")](),r[Ec("0x17c")]((t=>i[Ec("0x21")]((e=>e[Ec("0x113")](t,!0)))))){const e=this[Ec("0x5b")][Ec("0xe2")]("deletion",n,Ec("0xf2"));return this[Ec("0xfa")]((()=>e(t,null,o))),null}}else{const t=e[Ec("0xe5")]();if(r[Ec("0x21")]((e=>e.containsRange(t,!0)))&&e[Ec("0x1d")](),r[Ec("0x17c")]((e=>t.containsRange(e,!0)))){const t=this[Ec("0x5b")].getSuggestionCallback(Ec("0xcf"),n,Ec("0xf2"));return this[Ec("0xfa")]((()=>t(r,null,o))),null}}const a=this[Ec("0x5b")][Ec("0xe2")](Ec("0xcf"),n,"join");let c=null;for(const t of this[Ec("0x4f")]())if(t.author.id==i.id&&t.isInContent&&Ec("0xcf")==t[Ec("0x6d")]&&t[Ec("0x51")]==n&&Lc(t,o)&&(a(t[Ec("0x10b")](),r)||a(r,t[Ec("0x10b")]())))if(c){if(t.commentThread&&t.commentThread[Ec("0x14a")])continue;for(const e of t[Ec("0x10b")]())c[Ec("0x4c")](e)||c[Ec("0x83")](e);t.removeMarkers()}else{c=t;for(const e of r)t[Ec("0x4c")](e)||t[Ec("0x83")](e)}if(c)return c;x[Ec("0x55")]();for(const{suggestion:t,meta:e}of this[Ec("0xe1")](r,Ec("0xcf")))e[Ec("0x165")]&&(this[Ec("0x11f")]||!e[Ec("0x10f")]&&!e.isInsideObject)&&Lc(t,o)&&x.add(t);for(const t of x){const e=t[Ec("0x10b")]();if((!o||!o[Ec("0x2a")])&&r.every((t=>e.some((e=>e[Ec("0x113")](t,!0))))))return t;(!t[Ec("0x160")]||!t[Ec("0x160")].skipNestingCheck)&&e[Ec("0x17c")]((t=>r[Ec("0x21")]((e=>e[Ec("0x113")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=i.id,d="deletion:"+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[Ec("0xc9")](),t[Ec("0x88")]||Ec("0x4b")==t.root[Ec("0x1f")]||this[Ec("0x3")](d,l,u,t,Jo.getMultiRangeId());return g}[Ec("0x6b")](t,n,o,i,r){if(t[Ec("0x88")])return[];if(Ec("0x177")===this._trackFormatChanges)return[];const s=this[Ec("0x49")].plugins[Ec("0x141")](Ec("0xfd")).me.id,x=Array[Ec("0x11")](this[Ec("0x8b")][Ec("0x13b")]()).filter((e=>Ec("0x5")==e[Ec("0x6d")]&&e[Ec("0xe7")].key==n&&e.isIntersectingWithRange(t)));if("default"===this._trackFormatChanges){const e=this[Ec("0xe1")](t,Ec("0xe3"))[Ec("0xbd")]((({meta:t})=>t.isOwn&&!t.isInsideObject&&!t[Ec("0x133")]))[Ec("0x89")]((({suggestion:t})=>t));x[Ec("0x80")](...e)}const a=new Map([[t,o]]);for(const t of x){const e=Ec("0x5")==t[Ec("0x6d")]?t[Ec("0xe7")][Ec("0xe6")]:void 0,r=t[Ec("0xe5")](),s=Array[Ec("0x11")](a.keys())[Ec("0x62")]((t=>t[Ec("0x116")](r)));if(!s)continue;const x=s[Ec("0x12")](r);this[Ec("0x9")](n)&&"insertion"==t[Ec("0x6d")]&&0!=x[Ec("0x14a")]||(a[Ec("0xb1")](s),x[Ec("0x17a")]((t=>{a.set(t,o)})),"insertion"!=t[Ec("0x6d")]&&e!=i&&a.set(s.getIntersection(r),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:i};n[Ec("0x14a")]>37&&console[Ec("0x97")]("Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.",{key:n});const l=(Ec("0x150")+(n+"|")+Ic({newValue:i}))[Ec("0x180")](0,60),u=this[Ec("0x4e")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:r});c[Ec("0x9d")](u),this._addSuggestionMarker(l,x,s,t)}return c}[Ec("0x16d")](t){this[Ec("0xf6")][Ec("0x87")](t)}[Ec("0x176")](t){this[Ec("0xad")][Ec("0x87")](t)}[Ec("0x103")](t,e=[],n=[]){this[Ec("0x14b")](t,((t,...e)=>{this[Ec("0x48")]((()=>{t(...e)}))}));for(const t of e)this[Ec("0x176")](t);for(const t of n)this[Ec("0x16d")](t)}[Ec("0x13a")](t,e){const n=t[Ec("0x126")]();this[Ec("0xb4")].change((t=>{t[Ec("0x66")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[Ec("0x49")][Ec("0xdc")][Ec("0x141")](Ec("0x114"));this[Ec("0x5d")][Ec("0xaf")](e)||this[Ec("0x5d")][Ec("0xc3")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository.getCommentThread(e);o[Ec("0x10")](Ec("0x91")),o.isRemovable=!1,t[Ec("0xd1")]=o}_checkSuggestionCorrectness(t,n,o,i){if(t[Ec("0x6d")]!=n||t.subType!=o||t[Ec("0xd6")].id!=i)throw this[Ec("0x49")][Ec("0xa9")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(Ec("0x23"),this)}[Ec("0x7c")](t,n){const o=t.getFirstRange();if(n[Ec("0x9a")](o))t[Ec("0x106")]();else if(o[Ec("0x113")](n)){const i=this[Ec("0xb4")].createPositionAt(n[Ec("0x33")][Ec("0x42")],Ec("0x47"));this[Ec("0x13a")](t,this[Ec("0xb4")][Ec("0x3e")](o[Ec("0x33")],i));const r=(0,e.uid)(),s=t.creator.id,x=t[Ec("0x6d")]+":"+t[Ec("0x51")];this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:s,data:t[Ec("0xe7")],attributes:t[Ec("0x160")]});const a=this._model.createPositionAt(n.end[Ec("0x1b")],Ec("0x85")),c=this[Ec("0xb4")][Ec("0x3e")](a,o[Ec("0x47")]);this[Ec("0x3")](x,r,s,c)}else if(o[Ec("0x84")](n[Ec("0x33")])){const e=this[Ec("0xb4")][Ec("0xdb")](n[Ec("0x33")][Ec("0x42")],Ec("0x47"));this[Ec("0x13a")](t,this._model.createRange(o[Ec("0x33")],e))}else{const e=this._model[Ec("0xdb")](n[Ec("0x47")][Ec("0x1b")],"after");this[Ec("0x13a")](t,this[Ec("0xb4")][Ec("0x3e")](e,o[Ec("0x47")]))}}[Ec("0x107")](t){for(const{suggestion:e,meta:n}of this[Ec("0xe1")](t,Ec("0xe3"))){if(!n[Ec("0x165")])continue;const o=e[Ec("0x10b")]();for(const e of o)if(!t[Ec("0x12")](e)[Ec("0x14a")])return!0}return!1}[Ec("0x39")](t){const n=this[Ec("0x49")][Ec("0x15")][Ec("0x141")](Ec("0xfd"))[Ec("0x170")](t);if(!n)throw new e.CKEditorError(Ec("0x10c"),this);return n}[Ec("0x137")](t){const e=this.editor.plugins[Ec("0x141")](Ec("0xfd")),n=(0,r.hashObject)(Ec("0xec")+t);return e[Ec("0x170")](n)||e[Ec("0x45")]({id:n,name:t})}[Ec("0xb7")](t,e,n,o,i){const r=this[Ec("0x39")](o),s=this[Ec("0x5b")][Ec("0x105")](t,e,n,r,i,(t=>this[Ec("0xfc")](n,{attributes:t})));return this[Ec("0x3f")](s,"accept",(()=>{this[Ec("0xfc")](n,{state:"accepted"})}),{priority:Ec("0x2")}),this[Ec("0x3f")](s,Ec("0x1d"),(()=>{this._updateSuggestionData(n,{state:Ec("0xb5")})}),{priority:Ec("0x2")}),this[Ec("0x8b")][Ec("0x7b")](n,s),this[Ec("0x11b")][Ec("0x7b")](s,"notReady"),s}_splitMarkerName(t){const e=t[Ec("0xc0")](":");return{group:e[0],type:e[1],subType:e[Ec("0x14a")]>=5?e[2]:null,id:e[Ec("0x14a")]<5?e[2]:e[3],authorId:e[Ec("0x14a")]<5?e[3]:e[4],markerCount:6==e[Ec("0x14a")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const i=t[Ec("0xe5")](),r=i[Ec("0x33")],s=i[Ec("0x47")];this[Ec("0x13a")](t,this[Ec("0xb4")][Ec("0x3e")](r,n));const x=(0,e.uid)(),a=t.creator.id,c=t[Ec("0x6d")]+(t[Ec("0x51")]?":"+t[Ec("0x51")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Ec("0x160")],data:t.data});const l=wc(t);(Ec("0x52")==t[Ec("0x6d")]||l&&this[Ec("0x9")](l))&&(o=this[Ec("0xb4")][Ec("0x159")](o[Ec("0x1b")])),this[Ec("0x3")](c,x,a,this[Ec("0xb4")][Ec("0x3e")](o,s))}_findSuggestions(t,e=null){const n=[],o=this[Ec("0x49")][Ec("0x15")][Ec("0x141")](Ec("0xfd")).me;Array[Ec("0x153")](t)||(t=[t]);for(const i of this.getSuggestions()){if(!i.isInContent)continue;if(e&&i[Ec("0x6d")]!=e)continue;let r=!1;for(const e of i[Ec("0x10b")]()){for(const s of t){const t=s.start.isEqual(e.end)||s.end.isEqual(e[Ec("0x33")]);if(t||s[Ec("0x95")](e)){const x=s.containsRange(e)&&Cc(this[Ec("0xb4")][Ec("0x149")],e.start,s),a=e[Ec("0x113")](s)&&Cc(this[Ec("0xb4")][Ec("0x149")],s.start,e);n[Ec("0x9d")]({suggestion:i,meta:{isOwn:o==i[Ec("0xb3")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[Ec("0x3")](t,e,n,o,i){this[Ec("0xb4")][Ec("0x127")]((r=>{let s=Ec("0x145")+t+":"+e+":"+n;i&&(s=s+":"+i),r[Ec("0x134")](s,{range:o,usingOperation:!0,affectsData:!0})}))}[Ec("0x152")](t){const e=t.previous,n=t[Ec("0x101")];t[Ec("0x13d")]=null,t[Ec("0x101")]=null,null!=e&&(e.next=n),null!=n&&(n.previous=e),"ready"==this[Ec("0x11b")].get(t)&&(this._suggestionState[Ec("0x7b")](t,"removed"),this[Ec("0x26")](Ec("0x67"),t,e,n))}[Ec("0x4e")](t){const n=t.id,o=this[Ec("0xf4")](t);if(this[Ec("0x3c")]&&this[Ec("0x3c")][Ec("0x135")]){const i=this[Ec("0x49")][Ec("0x15")].get(Ec("0x8c")),r=o.hasComments,s=o.subType?o[Ec("0x6d")]+":"+o.subType:o.type,x=this[Ec("0x49")][Ec("0x164")],a=i.add(Qo(x,Ec("0xf5"))),c={id:n,type:s,hasComments:r,data:t[Ec("0xe7")]||null,originalSuggestionId:t[Ec("0x1e")]||null,attributes:o[Ec("0x160")]};this[Ec("0x3c")].addSuggestion(c).then((t=>{o._saved=!0,i.remove(a),t&&t[Ec("0xed")]&&(this[Ec("0x8b")].get(n)[Ec("0xed")]=t[Ec("0xed")])}))[Ec("0x12e")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this.editor.model[Ec("0xea")]({isUndoable:!1},(()=>{o[Ec("0x1d")]()})),o.stopListening(),this._suggestions[Ec("0xb1")](o.id),this[Ec("0x11b")][Ec("0xb1")](o),t}))}return o}[Ec("0x9")](t){return this._blockAttributeKeys[Ec("0x9e")](t)}[Ec("0xfc")](t,e){const n=this[Ec("0x49")][Ec("0x15")][Ec("0x141")](Ec("0x8c")),o=this[Ec("0x167")](t);if(this[Ec("0x3c")]&&this[Ec("0x3c")][Ec("0x142")])if(o[Ec("0x14f")]){const o=n[Ec("0x87")](Qo(this[Ec("0x49")][Ec("0x164")],"PENDING_ACTION_SUGGESTION"));this._adapter[Ec("0x142")](t,e)[Ec("0x163")]((()=>{n[Ec("0x41")](o)}))}else o.on("change:_saved",(()=>{this[Ec("0xfc")](t,e)}))}[Ec("0x64")](t){if(!this[Ec("0x3c")]||!this[Ec("0x3c")][Ec("0x167")])throw new e.CKEditorError(Ec("0x92"),this);return this[Ec("0x3c")][Ec("0x167")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:i}=this[Ec("0xcd")](t),r=this[Ec("0x8b")][Ec("0x141")](e)||this._createSuggestion(n,o,e,i,{});switch(this._checkSuggestionCorrectness(r,n,o,i),this._suggestionState[Ec("0x141")](r)){case Ec("0x43"):this[Ec("0x64")](e)[Ec("0x163")]((t=>{let n=Promise.resolve();t[Ec("0x2c")]&&(n=this[Ec("0x5d")].fetchCommentThread({channelId:this[Ec("0x49")].config.get("collaboration.channelId"),threadId:e})),n[Ec("0x163")]((()=>{this[Ec("0xf4")](t)[Ec("0x14f")]=!0}))})),this[Ec("0x11b")].set(r,"markerReady");break;case Ec("0x2d"):this[Ec("0xfc")](e,{state:Ec("0x13")});case Ec("0x102"):this[Ec("0x11b")][Ec("0x7b")](r,"ready"),this[Ec("0x26")](Ec("0x24"),r);break;case Ec("0xee"):this.fire(Ec("0xc5"),r)}return r[Ec("0x69")](t),r}[Ec("0x63")](t){const e=Array[Ec("0x11")](t),n=e[Ec("0xbd")]((t=>Ec("0x5")==t.type));this[Ec("0x171")](n);const o=e.filter((t=>!t.isMultiRange&&Ec("0x5")!=t[Ec("0x6d")])),i=this[Ec("0x4f")]({skipNotAttached:!0})[Ec("0xbd")]((t=>!t[Ec("0x58")]&&"attribute"!=t.type)),r=i[Ec("0xbd")]((e=>!t[Ec("0x9e")](e))),s=new Map(i[Ec("0x89")]((t=>[t,this[Ec("0x5b")][Ec("0xe2")](t[Ec("0x6d")],t.subType,Ec("0x16c"))]))),x=new Map(i.map((t=>[t,t[Ec("0xe5")]()]))),a=new Set,c=new Set;for(let t=0;t<o[Ec("0x14a")];t++)u(o[t],o,t+1);for(let t=0;t<o[Ec("0x14a")];t++)u(o[t],r,0);const l=new Set;for(let t=0;t<o[Ec("0x14a")];t++){const e=o[t];!c[Ec("0x9e")](e)&&e[Ec("0x13d")]&&(l[Ec("0x87")](e[Ec("0x13d")]),e[Ec("0x13d")].next===e&&(e[Ec("0x13d")][Ec("0x101")]=null),e[Ec("0x13d")]=null),!a[Ec("0x9e")](e)&&e.next&&(l[Ec("0x87")](e[Ec("0x101")]),e[Ec("0x101")][Ec("0x13d")]===e&&(e.next[Ec("0x13d")]=null),e[Ec("0x101")]=null)}function u(t,e,n){for(let o=n;o<e[Ec("0x14a")];o++){const n=d(t,e[o]);n&&(n[0][Ec("0x101")]=n[1],n[1][Ec("0x13d")]=n[0],a.add(n[0]),c.add(n[1]))}}function d(t,e){if(t[Ec("0xb3")].id!==e[Ec("0xb3")].id)return null;const n=s[Ec("0x141")](t)(t,e,x[Ec("0x141")](t),x.get(e));return n&&s[Ec("0x141")](e)(t,e,x[Ec("0x141")](t),x[Ec("0x141")](e))?n[1][Ec("0xd1")]&&n[1][Ec("0xd1")].length?null:n:null}l[Ec("0xaa")]&&this._refreshSuggestionsChain(l)}[Ec("0x171")](t){if(0==t[Ec("0x14a")])return;const e=this[Ec("0x4f")]({skipNotAttached:!0})[Ec("0xbd")]((t=>Ec("0x5")==t.type&&t[Ec("0x8a")])),n=[],o=new Map;for(const t of e){const e=(0,r.hashObject)(t.attributes);o[Ec("0x9e")](e)||(o[Ec("0x7b")](e,n.length),n.push([]));const i=o.get(e);n[i][Ec("0x9d")](t)}!function(){n[Ec("0x61")](((t,e)=>{const n=t[0][Ec("0xed")],o=e[0][Ec("0xed")];return n==o?t[0][Ec("0x160")].groupId<e[0][Ec("0x160")][Ec("0x20")]?-1:1:n<o?-1:1}));for(const t of n)t[Ec("0x61")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n.length;t++){if(0==n[t].length)continue;const e=[];for(let o=t+1;o<n[Ec("0x14a")];o++)0!=n[o][Ec("0x14a")]&&i(n[t],n[o])&&e[Ec("0x9d")](o);for(const o of e)n[t]=n[t][Ec("0x115")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[Ec("0x14a")];e++)t[e][Ec("0x101")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[Ec("0x14a")];e++)t[e].previous=t[e-1]||null;function i(t,e){if(t[0][Ec("0xb3")]!==e[0][Ec("0xb3")])return!1;if(n=t[0],o=e[0],(n[Ec("0x2c")]||o[Ec("0x2c")])&&(n.hasComments&&o[Ec("0x2c")]||!(n[Ec("0x2c")]&&o[Ec("0xed")]<n[Ec("0xd1")][Ec("0xd9")][Ec("0x141")](0)[Ec("0xed")]||o[Ec("0x2c")]&&n.createdAt<o[Ec("0xd1")][Ec("0xd9")][Ec("0x141")](0)[Ec("0xed")])))return!1;var n,o;const i=mc(t[0][Ec("0x160")],Ec("0x20")),r=mc(e[0].attributes,Ec("0x20"));return!!Go(i,r)&&(!!t[Ec("0x17c")]((t=>e[Ec("0x21")]((e=>t[Ec("0xe5")]()[Ec("0x9a")](e[Ec("0xe5")]())))))&&e[Ec("0x17c")]((e=>t[Ec("0x21")]((t=>e[Ec("0xe5")]()[Ec("0x9a")](t.getFirstRange()))))))}}[Ec("0xdd")](t){const e=Array.from(t),n=this[Ec("0x4f")]({skipNotAttached:!0}),o=n[Ec("0xbd")]((e=>!t.has(e))),i=new Map(e[Ec("0x89")]((t=>[t,this._suggestionFactory[Ec("0xe2")](t[Ec("0x6d")],t.subType,"join")]))),r=new Map(n[Ec("0x89")]((t=>[t,t[Ec("0x10b")]()])));for(let t=0;t<e.length;t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[Ec("0x14a")];t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n.length;s++){const o=n[s];if(o[Ec("0x6d")]!==e[Ec("0x6d")]||o[Ec("0xb3")].id!==e[Ec("0xb3")].id||o[Ec("0x51")]!==e[Ec("0x51")])continue;if(!Nc(e,o))continue;if(Ec("0x5")==e[Ec("0x6d")]&&e.data[Ec("0xe6")]!=o[Ec("0xe7")][Ec("0xe6")])continue;if(Ec("0x5")==e[Ec("0x6d")]&&t[Ec("0x9")](e.data[Ec("0x4d")]))continue;if("formatBlock"==e.type){const n=t[Ec("0x49")][Ec("0x17f")],o=e[Ec("0x5a")]();if(o&&(n[Ec("0x149")].isObject(o)||n[Ec("0x149")][Ec("0x132")](o)))continue}const x=i[Ec("0x141")](e),a=r[Ec("0x141")](e),c=r.get(o),l=e[Ec("0xd1")]&&e[Ec("0xd1")].length,u=o[Ec("0xd1")]&&o[Ec("0xd1")][Ec("0x14a")];if(!l&&x(c,a))return t[Ec("0x9b")](o,e),r[Ec("0xb1")](e),!0;if(!u&&x(a,c))return t[Ec("0x9b")](e,o),r[Ec("0xb1")](o),!0}return!1}}[Ec("0x9b")](t,e){if(t.isMultiRange)for(const n of e[Ec("0x10b")]())t[Ec("0x83")](n);else{const n=e[Ec("0xe5")]().end;this[Ec("0x13a")](t,this[Ec("0xb4")][Ec("0x3e")](t.getFirstRange().start,n))}e[Ec("0x106")]()}[Ec("0x4a")](t,e){const n=t[Ec("0x2e")](Ec("0x0"))||t[Ec("0x2e")](Ec("0x5"))?Ec("0xe4"):t[Ec("0x50")]();return Qo(this[Ec("0x49")].locale,e+"_"+n+Ec("0xa1"))}[Ec("0x10d")](){const t=this.editor;(0,r.surroundingMarkersDetector)(this[Ec("0xb4")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[Ec("0xcd")](t[Ec("0x3a")]);if(Ec("0x68")===e){o[Ec("0x9d")](this[Ec("0x4a")](n,Ec("0x30")));break}}for(const t of n){const{group:e,type:n}=this[Ec("0xcd")](t[Ec("0x3a")]);if(Ec("0x68")===e){o[Ec("0x9d")](this[Ec("0x4a")](n,Ec("0x5c")));break}}o[Ec("0x14a")]&&t.ui[Ec("0xa8")][Ec("0x44")](Ec("0xfe"),o[Ec("0x2f")](" "))}))}[Ec("0xe0")](t){if(null!==this[Ec("0x16a")])return!1;const e=this.editor,n=e[Ec("0x17f")][Ec("0x74")][Ec("0x6")][Ec("0xbc")]();if(0==n.length)return!1;const o=[],i=n[Ec("0xbd")]((t=>Ec("0x5")==t[Ec("0x6d")])),r=n[Ec("0xbd")]((t=>Ec("0x8d")==t[Ec("0x6d")]&&Ec("0xf0")!=t[Ec("0x3a")])),s=n[Ec("0xbd")]((t=>Ec("0x41")==t[Ec("0x6d")]&&Ec("0xf0")!=t[Ec("0x3a")]));for(const t of i)o.push({key:t.attributeKey,newValue:t[Ec("0x7f")],oldValue:t[Ec("0x148")],range:(x=t[Ec("0x8")],null==x[Ec("0x47")].nodeBefore&&x[Ec("0x47")][Ec("0x1b")]==x.start[Ec("0x16")]?Sc(x[Ec("0x33")][Ec("0x16")],e[Ec("0x17f")]):x)});var x;for(const t of r){const n=s[Ec("0x62")]((e=>e[Ec("0x111")][Ec("0x9a")](t[Ec("0x111")])));n&&o[Ec("0x9d")]({key:Ec("0xeb"),newValue:t.name,oldValue:n[Ec("0x3a")],range:e[Ec("0x17f")][Ec("0x17d")](t[Ec("0x111")].nodeAfter)})}return 0!=o[Ec("0x14a")]&&this[Ec("0xa3")](t,o)}[Ec("0x1c")](t){let e=!1;const n=this[Ec("0x49")][Ec("0x17f")][Ec("0x74")][Ec("0x6")][Ec("0x19")]()[Ec("0xbd")]((t=>t[Ec("0xe7")][Ec("0x131")]&&t[Ec("0x3a")].startsWith(Ec("0x13f"))));for(const o of n){const{subType:n,id:i}=this._splitMarkerName(o.name),r=n[Ec("0xc0")]("|")[0];for(const n of this[Ec("0x4f")]({skipNotAttached:!0}))n.id!=i&&Ec("0x5")==n[Ec("0x6d")]&&n[Ec("0xe7")]&&n[Ec("0xe7")][Ec("0x4d")]==r&&n[Ec("0xe5")]()[Ec("0x116")](o[Ec("0xe7")][Ec("0x131")])&&(this[Ec("0x32")](n,o[Ec("0xe7")][Ec("0x131")],t),e=!0)}return e}[Ec("0x48")](t){if(null!==this[Ec("0x16a")])return void t();const n=this.editor;this[Ec("0x16a")]=n.model.document[Ec("0x5f")],t();const o=new Map;for(const t of n[Ec("0x17f")].document.history[Ec("0x57")](this[Ec("0x16a")]))if([Ec("0x156"),Ec("0x151"),"removeAttribute","changeAttribute"].includes(t[Ec("0x6d")])){const e=t[Ec("0xf9")],n=o[Ec("0x141")](e)||[];n[Ec("0x9d")](t),o.set(e,n)}this[Ec("0x16a")]=null;for(const[t,i]of o){const o=(0,e.uid)();n[Ec("0x17f")][Ec("0xea")](t,(t=>{const e=[];for(const t of i){let i,r,s,x;if("rename"==t[Ec("0x6d")]){const e=t;i=Sc(e[Ec("0x111")][Ec("0x16")],n[Ec("0x17f")]),r=Ec("0xeb"),s=e.newName,x=e.oldName}else{const e=t,o=this[Ec("0x9")](e[Ec("0x4d")]),a=this[Ec("0xad")][Ec("0x9e")](e[Ec("0x4d")]);if(!o&&!a)continue;i=o?Sc(e[Ec("0x8")][Ec("0x33")][Ec("0x16")],n[Ec("0x17f")]):e[Ec("0x8")],r=e[Ec("0x4d")],s=Ec("0x13e")==t[Ec("0x6d")]?void 0:e[Ec("0xc7")],x=e[Ec("0xe6")]}this[Ec("0x6b")](i,r,x,s,{groupId:o}),e.push({range:i,key:r,newValue:s,oldValue:x})}this[Ec("0xa3")](t,e)}))}}[Ec("0xa3")](t,e){if(0==e[Ec("0x14a")])return!1;let n=!1;for(const o of e){const e=this[Ec("0xe1")](o[Ec("0x8")],Ec("0x5"))[Ec("0xbd")]((t=>!t[Ec("0x7e")][Ec("0x133")]))[Ec("0x89")]((t=>t[Ec("0x68")])),i=(0,r.hashObject)({newValue:o[Ec("0xc7")]});e[Ec("0xbd")]((t=>{const[e,n]=t[Ec("0x51")][Ec("0xc0")]("|");return e==o[Ec("0x4d")]&&n!=i}))[Ec("0x17a")]((e=>{this[Ec("0x32")](e,o.range,t),n=!0}))}return n}[Ec("0x32")](t,e,n){const o=t[Ec("0xe5")]()[Ec("0x12")](e);0!==o[Ec("0x14a")]?1!==o.length?this[Ec("0x120")](t,e[Ec("0x33")],e[Ec("0x47")]):this[Ec("0x13a")](t,o[0]):n[Ec("0xac")](t[Ec("0x126")]())}}class yc{constructor(t){this._editor=t,this[Ec("0xb4")]=t.model,this._customCallbacks=new Map,this._defaultCallbacks=new Map,this[Ec("0x54")]()}[Ec("0x105")](t,e,n,o,i,r){return new Jo(this[Ec("0xb4")],{type:t,subType:e,id:n,author:o,creator:o,attributes:i,onAttributesChange:r,onAccept:(...n)=>this[Ec("0xe2")](t,e,Ec("0xf2"))(...n),onDiscard:(...n)=>this[Ec("0xe2")](t,e,Ec("0x1d"))(...n)})}[Ec("0x173")](t,e,n,o){const i=t+":"+e+":"+n;this[Ec("0x27")][Ec("0x7b")](i,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[Ec("0x27")][Ec("0x141")](o)||this._defaultCallbacks.get(t+":"+n)}[Ec("0x54")](){const t=()=>!1,e=t=>{t[Ec("0x61")](((t,e)=>t[Ec("0x33")][Ec("0x22")](e[Ec("0x33")])?1:-1)),this[Ec("0xb4")].change((e=>{for(const n of t){let t;t=n[Ec("0x47")].isAtEnd&&n.end[Ec("0x1b")]==n.start[Ec("0x16")]?e[Ec("0x11d")](n.start.nodeAfter,"on"):e[Ec("0x11d")](n),this[Ec("0xb4")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[Ec("0xb4")][Ec("0x127")]((n=>{const{commandName:o,commandParams:i=[]}=e,r=t.map((t=>(Ac(t)&&(t=this._model[Ec("0x3e")](t[Ec("0x47")])),t)))[Ec("0xbd")]((t=>Ec("0x4b")!==t[Ec("0x9f")].rootName));if(r[Ec("0x14a")]<1)return;const x=Array[Ec("0x11")](this._model[Ec("0x74")].selection[Ec("0x10b")]()).map((t=>s.LiveRange[Ec("0xa")](t)));n[Ec("0x147")](r);for(const t of this[Ec("0x178")][Ec("0x154")][Ec("0x154")]())t[Ec("0x76")]();i[Ec("0x9d")]({forceDefaultExecution:!0}),this[Ec("0x178")].execute(o,...i);const a=x[Ec("0xbd")]((t=>"$graveyard"!=t[Ec("0x9f")][Ec("0x1f")]));a[Ec("0x14a")]>0&&n.setSelection(a);for(const t of x)t[Ec("0xc9")]()}))},o=(t,e)=>1==t[Ec("0x14a")]&&1==e[Ec("0x14a")]&&t[0][Ec("0x47")].isEqual(e[0][Ec("0x33")]),i=(t,e,n,o)=>vc(t,e,n,o,this._model)?[t,e]:vc(e,t,o,n,this[Ec("0xb4")])?[e,t]:null;this[Ec("0x169")][Ec("0x7b")](Ec("0x139"),t),this[Ec("0x169")].set(Ec("0x46"),e),this[Ec("0x169")][Ec("0x7b")]("insertion:join",o),this[Ec("0x169")][Ec("0x7b")](Ec("0xb9"),i),this[Ec("0x169")][Ec("0x7b")]("deletion:accept",e),this[Ec("0x169")].set(Ec("0x37"),t),this[Ec("0x169")][Ec("0x7b")](Ec("0x108"),o),this[Ec("0x169")][Ec("0x7b")](Ec("0xf3"),i),this[Ec("0x169")].set("formatInline:accept",n),this._defaultCallbacks[Ec("0x7b")](Ec("0x53"),t),this[Ec("0x169")].set(Ec("0x12f"),o),this[Ec("0x169")][Ec("0x7b")]("formatInline:chain",t),this[Ec("0x169")][Ec("0x7b")](Ec("0x16e"),n),this[Ec("0x169")][Ec("0x7b")](Ec("0x36"),t),this[Ec("0x169")].set(Ec("0x34"),o),this[Ec("0x169")][Ec("0x7b")](Ec("0xd3"),t),this[Ec("0x169")][Ec("0x7b")]("attribute:accept",t),this._defaultCallbacks[Ec("0x7b")](Ec("0x12c"),((t,e)=>{if(!e)return;const n=this._editor[Ec("0x15")][Ec("0x141")](Tc);this._model[Ec("0x127")]((o=>{if(Ec("0xeb")==e[Ec("0x4d")])for(const n of t){const t=n[Ec("0x33")][Ec("0x16")],i=e.oldValue;o[Ec("0x156")](t,i)}else if(n[Ec("0x9")](e[Ec("0x4d")]))for(const n of t)void 0!==e[Ec("0xe6")]?o[Ec("0xba")](e[Ec("0x4d")],e.oldValue,n.start[Ec("0x16")]):o.removeAttribute(e[Ec("0x4d")],n.start[Ec("0x16")]);else for(const n of t)e[Ec("0xe6")]?o.setAttribute(e[Ec("0x4d")],e.oldValue,n):o.removeAttribute(e[Ec("0x4d")],n)}))})),this._defaultCallbacks.set(Ec("0x65"),o)}}function Cc(t,e,n){for(const o of e[Ec("0x1b")][Ec("0x166")]({includeSelf:!0,parentFirst:!0})){if(o[Ec("0x9f")]==o)return!1;if(!n.containsItem(o))return!1;if(t[Ec("0xd8")](o)||t[Ec("0x132")](o))return!0}return!1}function Ac(t){return t[Ec("0x47")][Ec("0x1b")]==t[Ec("0x33")][Ec("0x16")]&&t[Ec("0x47")][Ec("0x14")]}function kc(t,e,n,o){const i=t=>!t[Ec("0x17")].is(Ec("0xf"))&&!o[Ec("0xd8")](t[Ec("0x17")]),r=t[Ec("0x33")].getLastMatchingPosition(i),s=t[Ec("0x47")][Ec("0x104")](i,{direction:Ec("0x157")});return!(t[Ec("0x33")][Ec("0x9a")](r)&&t.end[Ec("0x9a")](s)||(r[Ec("0x22")](s)?n[Ec("0x66")](e,{range:n[Ec("0x3e")](r,s)}):n[Ec("0xac")](e),0))}function Ic(t){return(0,r.hashObject)(t)}function Rc(t){const e=t.start.nodeAfter;return e&&e.is(Ec("0xa0"))}function Sc(t,e){const n=e.schema[Ec("0xd8")](t)||e[Ec("0x149")][Ec("0xc")](t);return e.createRange(e[Ec("0xdb")](t,Ec("0x78")),n?e[Ec("0xc4")](t):e[Ec("0xdb")](t,Ec("0x47")))}function vc(t,e,n,o,i){if(!Nc(t,e))return!1;if(n[Ec("0x47")][Ec("0x9a")](o.start))return!0;if(t[Ec("0x6d")]!=e[Ec("0x6d")])return!1;if(!n[Ec("0x47")][Ec("0x86")](o.start))return!1;const r=i[Ec("0x3e")](n[Ec("0x47")],o.start)[Ec("0x112")]();for(const t of r)if([Ec("0x16b"),Ec("0x28")][Ec("0x6e")](t[Ec("0x6d")])&&i[Ec("0x149")][Ec("0x132")](t[Ec("0x17")]))return!1;return!0}function Nc(t,e){return!(!t._isDataLoaded||!e._isDataLoaded)&&Go(t[Ec("0x160")],e[Ec("0x160")])}function Lc(t,e){const n=Mc(t.attributes),o=Mc(e);if(!t[Ec("0x8a")])return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function Mc(t){const e=Object[Ec("0x6c")]({},t);return delete e[Ec("0x2a")],delete e.tablePasteChainId,e}function wc(t){return Ec("0x5")==t[Ec("0x6d")]?t[Ec("0x51")][Ec("0xc0")]("|")[0]:null}const Oc=["view","_discardCommand","acceptSuggestion","PendingActions","isEnabled","commands","_acceptCommand","remove","_editor","model","canEditAt","PENDING_ACTION_SUGGESTION","add","_pendingAction","commentThreadController","plugins","canAccept","bind","_setPendingAction","unbind","isDirty","destroy","discardSuggestion","_removePendingAction","canDiscard","get","execute","getRanges","stopListening"];var Fc,Dc;Fc=Oc,Dc=343,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Bc=function(t,e){return Oc[t-=0]};class Pc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Bc("0xe")]=e,this.view=n,this[Bc("0x13")]=o,this[Bc("0xd")]=t,this[Bc("0xb")]=t.commands[Bc("0x1")]("acceptSuggestion"),this[Bc("0x6")]=t[Bc("0xa")][Bc("0x1")]("discardSuggestion"),this[Bc("0x5")][Bc("0x16")](Bc("0x9")).to(this[Bc("0xb")],this[Bc("0x6")],((t,e)=>t||e)),this[Bc("0x5")][Bc("0x16")](Bc("0x15")).to(this[Bc("0xb")],Bc("0x9"),(t=>t&&this[Bc("0xd")][Bc("0xe")].canEditAt(e[Bc("0x3")]()))),this[Bc("0x5")][Bc("0x16")](Bc("0x0")).to(this[Bc("0x6")],Bc("0x9"),(t=>t&&this._editor.model[Bc("0xf")](e[Bc("0x3")]()))),this[Bc("0x12")]=null,n[Bc("0x19")]&&this[Bc("0x17")](),this.listenTo(n,Bc("0x7"),(()=>this[Bc("0x7")]())),this.listenTo(n,Bc("0x1b"),(()=>this[Bc("0x1b")]())),this.listenTo(n,"change:isDirty",(()=>{n[Bc("0x19")]?this[Bc("0x17")]():this[Bc("0x1c")]()}))}[Bc("0x7")](){this[Bc("0xb")][Bc("0x2")](this.model.id)}[Bc("0x1b")](){this[Bc("0x6")][Bc("0x2")](this[Bc("0xe")].id)}[Bc("0x1a")](){this.view[Bc("0x18")](Bc("0x9")),this[Bc("0x5")][Bc("0x18")](Bc("0x15")),this.view[Bc("0x18")](Bc("0x0")),this[Bc("0x4")](),this.commentThreadController[Bc("0x1a")](),this[Bc("0x12")]&&this[Bc("0x1c")]()}_setPendingAction(){const t=Qo(this._editor.locale,Bc("0x10"));this._pendingAction=this[Bc("0xd")][Bc("0x14")][Bc("0x1")](Bc("0x8"))[Bc("0x11")](t)}_removePendingAction(){null!==this._pendingAction&&this[Bc("0xd")][Bc("0x14")].get(Bc("0x8"))[Bc("0xc")](this[Bc("0x12")]),this[Bc("0x12")]=null}}const Uc=["editorConfig","authoredAt","hasDirtyComment","isDirty","fire","_createCommentThreadInputView","commentsListView","disableComments","disabledSubmit","delegate","value","commentInputView","removeComment","_model","destroy","commentThread","CommentView","commentThreadInputView","isActive","editor","_config","bind","_createCommentViews","focus","locale","length","submit","cancel","descriptionParts","setData","isReadOnly","set","canAccept","updateComment"];var jc,Gc;jc=Uc,Gc=195,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Vc=function(t,e){return Uc[t-=0]};class Hc extends i.View{constructor(t,e,n,o){super(t),this[Vc("0xf")]=null,this[Vc("0x1a")]=null,this[Vc("0x6")](Vc("0x1b"),!1),this[Vc("0x6")](Vc("0xa"),e[Vc("0xa")]),this[Vc("0x1e")](Vc("0xa")).to(e),this[Vc("0x6")](Vc("0x3"),[]),this[Vc("0x6")]("isDirty",!1),this[Vc("0x6")]("isEnabled",!1),this.set(Vc("0x7"),!1),this[Vc("0x6")]("canDiscard",!1),this[Vc("0x16")]=e,this._localUser=n,this[Vc("0x1d")]=o,o[Vc("0x10")]?this[Vc("0x6")](Vc("0x0"),1):this[Vc("0x1f")]()}[Vc("0x20")](){this.element[Vc("0x20")]()}[Vc("0x17")](){this[Vc("0xf")]&&this.commentsListView[Vc("0x17")](),this[Vc("0x1a")]&&this[Vc("0x1a")][Vc("0x17")](),super[Vc("0x17")]()}[Vc("0x1f")](){const{CommentsListView:t}=this._config;this.commentsListView=new t(this[Vc("0x21")],this[Vc("0x16")].commentThread,Object.assign({CommentView:this[Vc("0x1d")][Vc("0x19")]},this[Vc("0x1d")])),this[Vc("0xf")][Vc("0x12")]("removeComment").to(this),this[Vc("0xf")][Vc("0x12")](Vc("0x8")).to(this),this.commentsListView[Vc("0x1e")](Vc("0x1b")).to(this),this[Vc("0x6")]("length",this[Vc("0xf")][Vc("0x0")]+1),this[Vc("0x1e")](Vc("0x0")).to(this.commentsListView,"length",(t=>t+1)),this[Vc("0x1a")]=this[Vc("0xe")](),this.on(Vc("0x15"),(()=>this[Vc("0x20")]())),this[Vc("0x1e")](Vc("0xc")).to(this.commentsListView,Vc("0xb"),this[Vc("0x1a")][Vc("0x14")],"value",((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[Vc("0x1d")],e=new t(this[Vc("0x21")],this._localUser,this[Vc("0x1d")][Vc("0x9")]),n=e.commentInputView;return e.bind("showInput").to(this,Vc("0x1b"),this[Vc("0x16")].commentThread,Vc("0x5"),n,Vc("0x13"),((t,e,n)=>!!n||t&&!e)),n.on(Vc("0x1"),((t,e)=>{this[Vc("0xd")]("addComment",e),n[Vc("0x1c")][Vc("0x4")]("")})),n.on(Vc("0x2"),(()=>this[Vc("0x20")]())),n[Vc("0x1e")](Vc("0x11")).to(this[Vc("0x16")][Vc("0x18")],Vc("0x5")),e}}const zc=["value","cancel","discardSuggestion","ck-annotation__info-name","type","editorDestroyed","isActive","</span>","ck-suggestion-wrapper--active","ck-annotation","author","ck-annotation__info-time","setTemplate","children","creator","locale","ck-suggestion__info-name","_descriptionElement","commentThreadInputView","canAccept","ck-comment__info-time","render","createElement","acceptButton","description","attributes","check","isEnabled","querySelector",'" title="',"delegate","_model","EXTERNAL_AVATAR","descriptionParts","bind","ck-suggestion__actions","execute","userView","map","change:description","</p>","ck-suggestion--disabled-comments","Discard suggestion","name","title","commentThread","bindTemplate","formatDateTime","ck-annotation__content-wrapper",'<span class="ck-suggestion-type">',"color","ck-annotation__user","innerHTML","getTemplate","set","getExternalSuggestionNote","importWord","editorReady","authoredAt","disableComments","_config","div","ck-suggestion__info","@external","ck-suggestion-wrapper","ck-annotation__main","push","span","getUserViewNotificationText","ck-suggestion-","commentsListView","time","discardButton","_createButton","isExternal","ck-suggestion--accept",'"></span>',"extendTemplate","ck-suggestion__user","canDiscard"];var Wc,Kc;Wc=zc,Kc=340,function(t){for(;--t;)Wc.push(Wc.shift())}(++Kc);const qc=function(t,e){return zc[t-=0]};class Xc extends Hc{constructor(e,n,o,i){super(e,n,o,i),this[qc("0x22")](qc("0x40"),""),this[qc("0xe")](qc("0x40")).to(this,"descriptionParts",(t=>t&&t[0]?t[0][qc("0x40")]:"")),this[qc("0xe")](qc("0x4")).to(this,qc("0xd"),this,qc("0x42"),((t,e)=>{let n="";for(const e of t)n+="<p>"+$c(e.content,e[qc("0x1e")])+qc("0x14");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[qc("0x3")]=this[qc("0x35")](Qo(e,"Accept suggestion"),t.icons[qc("0x6")],qc("0x37"),"acceptSuggestion","sw"),this.acceptButton[qc("0xe")](qc("0x7")).to(this,qc("0x4f")),this[qc("0x34")]=this[qc("0x35")](Qo(e,qc("0x16")),t.icons[qc("0x3d")],"ck-suggestion--discard",qc("0x3e"),"sw"),this[qc("0x34")].bind(qc("0x7")).to(this,qc("0x3b")),this[qc("0x11")]=new r.UserView(e,this._model.author,this[qc("0x30")]()),this[qc("0x11")].extendTemplate({attributes:{class:[qc("0x3a"),qc("0x1f")]}}),this[qc("0x48")](this[qc("0x21")]())}[qc("0x21")](){const t=this[qc("0x1a")],e=[{tag:"div",attributes:{class:[qc("0x2a"),"ck-annotation__info"]},children:[{tag:"span",children:[{text:this[qc("0x11")][qc("0x17")]}],attributes:{class:[qc("0x4c"),qc("0x3f")]}},{tag:qc("0x33"),attributes:{datetime:t.to("authoredAt"),class:[qc("0x0"),qc("0x47")]},children:[{text:t.to(qc("0x26"),(t=>this[qc("0x28")][qc("0x1b")](t)))}]}]},{tag:qc("0x29"),attributes:{class:[qc("0xf"),"ck-annotation__actions"]},children:[this.acceptButton,this.discardButton]},{tag:qc("0x29"),attributes:{class:[qc("0x1c")]}}];this[qc("0xb")].isExternal&&e[qc("0x2e")]({tag:qc("0x29"),attributes:{class:["ck-comment__external"]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:"div",attributes:{class:[qc("0x2c"),t.if(qc("0x42"),qc("0x44")),t.to("type",(t=>qc("0x31")+t)),this[qc("0x28")][qc("0x27")]&&qc("0x15")],"data-suggestion-id":this._model.id,"data-thread-id":this[qc("0xb")][qc("0x19")].id,"data-author-id":this[qc("0xb")][qc("0x46")].id,tabindex:-1},children:[{tag:qc("0x29"),attributes:{class:["ck-suggestion",qc("0x45")]},children:[this[qc("0x11")],{tag:qc("0x29"),attributes:{class:["ck-suggestion__main",qc("0x2d")]},children:e}]}]};return this.commentsListView&&this[qc("0x4e")]&&(n[qc("0x49")][qc("0x2e")](this[qc("0x32")],this[qc("0x4e")]),this[qc("0x32")].delegate(qc("0x25")).to(this),this[qc("0x32")][qc("0xa")](qc("0x41")).to(this),this[qc("0x4e")][qc("0xa")](qc("0x25")).to(this),this[qc("0x4e")][qc("0xa")](qc("0x41")).to(this)),n}[qc("0x1")](){super[qc("0x1")](),this[qc("0x4d")]=this.element[qc("0x8")](".ck-annotation__content-wrapper"),this[qc("0x4d")][qc("0x20")]=this[qc("0x4")],this.on(qc("0x13"),((t,e,n)=>{this[qc("0x4d")][qc("0x20")]=n}))}[qc("0x35")](t,e,n,o,r){const s=new i.ButtonView(this[qc("0x4b")]);return s.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),s[qc("0x39")]({attributes:{class:n}}),s.on(qc("0x10"),(()=>{this.fire(o,this[qc("0xb")].id)})),s}[qc("0x23")](){return qc("0x24")===this[qc("0xb")][qc("0x5")][qc("0x2b")].source?Qo(this[qc("0x4b")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Qo(this[qc("0x4b")],"EXTERNAL_SUGGESTION")}[qc("0x30")](){return this[qc("0xb")][qc("0x36")]?qc("0x24")===this[qc("0xb")][qc("0x5")][qc("0x2b")].source?Qo(this.locale,"EXTERNAL_IMPORT_WORD_AVATAR",this[qc("0xb")][qc("0x4a")][qc("0x17")]):Qo(this.locale,qc("0xc"),this._model.creator.name):null}}function $c(t,e){let n="";return n+=t.split("*")[qc("0x12")](((t,e)=>e%2!=0?qc("0x1d")+Zc(t)+qc("0x43"):Zc(t))).join(""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[qc("0x3c")]+qc("0x9")+e[qc("0x18")]+qc("0x38")),n}function Zc(t){const e=document[qc("0x2")](qc("0x2f"));return e.innerText=t,e.innerHTML}const Yc=["EditorAnnotations","clear","length","Annotations","activeMarkers","isMultiRange","comments.maxThreadTotalWeight","_unbindEditors","registerAnnotation","set","_destroyController","has","hasSuggestion","commands","CommentsRepository","TrackChangesEditing","Discard all selected suggestions","getMarkers","getMarkerNames","switchbutton","getDescriptions","change:activeAnnotations","activeAnnotations","Discard all suggestions","_disableComments","size","discardButton","descriptionParts","suggestionLoaded","editing","listenTo","CommentsUI","_annotationViews","isOn","plugins","trackChanges.disableComments","acceptSelectedSuggestions","toMany","filter","keys","bind","pluginName","_initializeController","commentThread","comments.maxCommentCharsWhenCollapsed","delete","Track changes","requires","view","suggestionUnloaded","componentFactory","isDirty","push","TrackChangesUI","suggestion-","mainView","_descriptionFactory","trackChanges","init","actionView","locale","_suggestionToController","Accept all selected suggestions","_refreshActiveMarkers","_viewToController","reduce","model","isInContent","from","getByInnerView","add","acceptButton","isEnabled","focus","SuggestionThreadView","commandName","_updateController","_createUIButton","remove","execute","stopListening","getRanges","value","getJoined","separator","buttonView","acceptAllSuggestions","addComment","_bindAnnotationToEditors","_handleSuggestionControllerDelayed","getFirstRange","values","previous","comments","change:previous","define","editor","unbind","addSourceCollector","get","getAllAdjacentSuggestions","source","button","innerView","destroy","config","type","createAnnotation","_handleControllerBuffer","head"];var Jc,Qc;Jc=Yc,Qc=221,function(t){for(;--t;)Jc.push(Jc.shift())}(++Qc);const tl=function(t,e){return Yc[t-=0]};class el extends t.Plugin{static get[tl("0x2e")](){return[Tc,r.Users,"CommentsRepository",tl("0x2"),tl("0x6d")]}static get[tl("0x28")](){return tl("0x34")}constructor(t){super(t),this[tl("0x3c")]=new Map,this[tl("0x3f")]=new Map,this[tl("0x1f")]=new Map,this[tl("0x6b")]=new Map;const e=this[tl("0x5f")][tl("0x68")];e.define("trackChanges.SuggestionThreadView",Xc),e[tl("0x5e")]("trackChanges.disableComments",!1),this[tl("0x17")]=e[tl("0x62")](tl("0x22"))}[tl("0x58")](t,e){0===this[tl("0x6b")][tl("0x18")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[tl("0x3c")][tl("0xa")](t);n||e?n&&e&&this[tl("0x9")](t):this[tl("0x29")](t)}this[tl("0x5f")].plugins[tl("0x62")](tl("0x6d")).refreshSelectedViews(),this[tl("0x3e")](),this[tl("0x6b")][tl("0x0")]()}),10),this[tl("0x6b")][tl("0x8")](t,e)}[tl("0x39")](){const t=this[tl("0x5f")],e=t[tl("0x21")][tl("0x62")](tl("0xe")),n=t[tl("0x21")][tl("0x62")]("Annotations"),o=t[tl("0x21")][tl("0x62")](tl("0x6d")),i=t[tl("0x21")].get("CommentsRepository");t.ui[tl("0x31")].add("trackChanges",(t=>this[tl("0x4c")](t))),o[tl("0x61")]((()=>{const t=[];for(const[e,n]of Array[tl("0x43")](this._suggestionToController)){const o=e[tl("0x63")](),i=[];for(const t of o){if(!t[tl("0x42")])continue;if(t[tl("0x4")]){i.push(...t[tl("0x50")]());continue}const e=t[tl("0x59")]();if(i[tl("0x1")]>0){const t=i[0][tl("0x52")](e);if(t){i[0]=t;continue}}i[tl("0x33")](e)}t[tl("0x33")]([n.view,i])}return t})),this[tl("0x1d")](e,tl("0x1b"),((t,e)=>{this[tl("0x1d")](e,tl("0x5d"),((t,n,o,i)=>{e.isInContent&&(null==o?(this._updateController(i.head),this[tl("0x58")](e,!1)):(this._updateController(o[tl("0x6c")]),null==i&&this[tl("0x58")](e,!0)))})),null!==e[tl("0x5b")]?this[tl("0x4b")](e[tl("0x6c")]):this[tl("0x58")](e,!1)})),this.listenTo(e,tl("0x30"),((t,e,n)=>{this[tl("0x4f")](e,tl("0x5d")),this._handleControllerBuffer[tl("0x2c")](e),this[tl("0x3c")][tl("0xa")](e)&&this[tl("0x9")](e),n&&this[tl("0x4b")](n.head)})),this.listenTo(e,"suggestionChanged",((t,e)=>{this[tl("0x4b")](e)})),this.listenTo(n,tl("0x14"),(()=>{this[tl("0x3e")]()})),this.listenTo(i,tl("0x56"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[tl("0xb")](n))return;const i=e.getSuggestion(n);this[tl("0x3c")][tl("0x62")](i).view[tl("0x48")]()}),{priority:"lowest"})}[tl("0x3e")](){const t=this.editor[tl("0x21")][tl("0x62")]("Annotations"),e=this[tl("0x5f")][tl("0x21")].get(tl("0xe")),n=Array[tl("0x43")](t[tl("0x15")],(t=>t[tl("0x66")]))[tl("0x25")]((t=>this[tl("0x3f")][tl("0xa")](t))),o=[];for(const t of n){const e=this._viewToController[tl("0x62")](t)[tl("0x41")][tl("0x63")]();o[tl("0x33")](...e[tl("0x40")](((t,e)=>[...t,...e[tl("0x11")]()]),[]))}e[tl("0x3")]=o}_createUIButton(t){const n=(0,i.createDropdown)(t,i.SplitButtonView),o=this[tl("0x5f")][tl("0xc")][tl("0x62")]("trackChanges"),r=Qo(t,tl("0x2d"));n[tl("0x54")][tl("0x8")]({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-2023, 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[tl("0x54")][tl("0x27")](tl("0x20")).to(o,tl("0x51")),n[tl("0x54")].on(tl("0x4e"),(()=>{o[tl("0x4e")](),this[tl("0x5f")][tl("0x1c")][tl("0x2f")].focus()}));const s=new e.Collection,x=[{type:tl("0x12"),model:{withText:!0,label:r,commandName:tl("0x38")}},{type:"separator"},{type:tl("0x65"),model:{withText:!0,label:Qo(t,"Accept all suggestions"),commandName:tl("0x55")}},{type:tl("0x65"),model:{withText:!0,label:Qo(t,tl("0x3d")),commandName:tl("0x23")}},{type:tl("0x65"),model:{withText:!0,label:Qo(t,tl("0x16")),commandName:"discardAllSuggestions"}},{type:tl("0x65"),model:{withText:!0,label:Qo(t,tl("0xf")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:tl("0x53")};if(t.model){const n=new i.Model(t[tl("0x41")]),o=this[tl("0x5f")].commands[tl("0x62")](n.commandName);n.bind(tl("0x20"),"isEnabled").to(o,tl("0x51"),tl("0x47")),e={type:t.type,model:n}}s[tl("0x45")](e)}(0,i.addListToDropdown)(n,s);const a=x[tl("0x25")]((t=>null!=t.model)).map((t=>this[tl("0x5f")][tl("0xc")][tl("0x62")](t[tl("0x41")][tl("0x4a")]))),c=n[tl("0x54")];return c.actionView[tl("0x60")](tl("0x47")),c.arrowView[tl("0x60")](tl("0x47")),c[tl("0x3a")].bind(tl("0x47")).to(o,"isEnabled"),c.arrowView.bind(tl("0x47"))[tl("0x24")](a,tl("0x47"),((...t)=>t.some((t=>t)))),n.on(tl("0x4e"),(t=>{this[tl("0x5f")].execute(t[tl("0x64")].commandName),this[tl("0x5f")][tl("0x1c")].view[tl("0x48")]()})),n}[tl("0x29")](t){const e=this[tl("0x5f")],n=e[tl("0x68")],o=e[tl("0x21")].get(tl("0x2")),i=e[tl("0x21")][tl("0x62")](tl("0xd")),s=e.plugins.get(tl("0x6d")),x=e.plugins[tl("0x62")](r.Users).me,a=n[tl("0x62")](tl("0x38"))[tl("0x49")],{CommentsListView:c,CommentThreadInputView:l}=e[tl("0x21")].get(tl("0x1e"));let u,d;this._annotationViews[tl("0xa")](t.id)?(d=this[tl("0x1f")][tl("0x62")](t.id),u=d[tl("0x36")]):(u=new a(e[tl("0x3b")],t,x,{disableComments:this[tl("0x17")],editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n.get("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[tl("0x62")](tl("0x5")),maxCommentCharsWhenCollapsed:n[tl("0x62")](tl("0x2b")),formatDateTime:(0,r.getDateTimeFormatter)(n[tl("0x62")]("locale")),CommentView:n[tl("0x62")](tl("0x5c")).CommentView,CommentsListView:c,CommentThreadInputView:l}),u[tl("0x46")].on(tl("0x4e"),(()=>{e[tl("0x1c")][tl("0x2f")][tl("0x48")]()})),u[tl("0x19")].on("execute",(()=>{e[tl("0x1c")][tl("0x2f")][tl("0x48")]()})),d=o.createAnnotationView(this.editor[tl("0x3b")],u),d[tl("0x27")](tl("0x32")).to(u,tl("0x32")),d.bind(tl("0x1")).to(u),d[tl("0x27")](tl("0x69")).to(u,tl("0x69"),(t=>tl("0x35")+t)),this[tl("0x1f")].set(t.id,d));const g=i.createCommentThreadController(t[tl("0x2a")],u),f=new Pc(e,t,u,g),m=t[tl("0x63")]()[tl("0x25")]((t=>t.isInContent));u[tl("0x1a")]=e[tl("0x21")].get(tl("0xe"))[tl("0x37")][tl("0x13")](m),this._suggestionToController[tl("0x8")](t,f),this._viewToController.set(u,f);const h=o[tl("0x6a")]({view:d,target:()=>{const n=[],o=t[tl("0x63")]()[tl("0x25")]((t=>t[tl("0x42")]));for(const t of o)n[tl("0x33")](...t[tl("0x10")]());return(0,r.getAllMarkersDomElementsSorted)(e[tl("0x1c")],n)},type:()=>tl("0x35")+f[tl("0x2f")][tl("0x69")]});i[tl("0x57")](u,h),o[tl("0x45")](h),s[tl("0x7")](h)}_destroyController(t){const e=this[tl("0x5f")][tl("0x21")].get(tl("0xd")),n=this.editor.plugins.get(tl("0x2")),o=this[tl("0x3c")][tl("0x62")](t),i=o[tl("0x2f")],r=n[tl("0x44")](i);e[tl("0x6")](i),r&&n[tl("0x4d")](r),this[tl("0x3c")][tl("0x2c")](t),this[tl("0x3f")][tl("0x2c")](i),o[tl("0x67")]()}[tl("0x4b")](t){if(!t[tl("0x42")]||!this[tl("0x3c")][tl("0xa")](t))return;const e=this.editor.plugins[tl("0x62")](tl("0xe")),n=this[tl("0x3c")][tl("0x62")](t),o=t[tl("0x63")]();n.view[tl("0x1a")]=e[tl("0x37")].getDescriptions(o)}[tl("0x67")](){for(const t of this._suggestionToController[tl("0x26")]())this[tl("0x9")](t);for(const t of this._annotationViews[tl("0x5a")]())t[tl("0x36")].destroy();super[tl("0x67")]()}}var nl,ol,il=["get","editor","plugins","getSuggestions","requires","adapter","TrackChanges","addSuggestionData","Comments","pluginName"];nl=il,ol=332,function(t){for(;--t;)nl.push(nl.shift())}(++ol);var rl=function(t,e){return il[t-=0]};class sl extends t.Plugin{static get[rl("0x2")](){return[Tc,el,rl("0x6")]}static get[rl("0x7")](){return rl("0x4")}set[rl("0x3")](t){this.editor[rl("0x0")][rl("0x8")](Tc)[rl("0x3")]=t}get[rl("0x3")](){return this[rl("0x9")][rl("0x0")].get(Tc)[rl("0x3")]}addSuggestion(t){return this[rl("0x9")][rl("0x0")][rl("0x8")](Tc)[rl("0x5")](t)}[rl("0x1")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[rl("0x9")][rl("0x0")][rl("0x8")](Tc)[rl("0x1")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[rl("0x9")][rl("0x0")].get(Tc).getSuggestion(t)}}const xl=["addSuggestionData","appendChild","data","useAnonymousUser","TrackChangesEditing","plugins","create","result","getFullData","set","editorCreator","Pagination","config","name","trackChangesData","push","init","map","createElement","pluginName","getUser","get","createDocumentFragment","_adapter","define","constructor","getRootNames","addUser","getDataWithDiscardedSuggestions","document","execute","reduce","requires","editor","TrackChangesDataGetter","div","end","destroy","model"];var al,cl;al=xl,cl=431,function(t){for(;--t;)al.push(al.shift())}(++cl);const ll=function(t,e){return xl[t-=0]},ul=[ll("0x9")];class dl extends t.Plugin{static get[ll("0x1e")](){return[Tc]}static get[ll("0x11")](){return"TrackChangesData"}[ll("0xe")](){const t=this[ll("0x1f")];if(t[ll("0xa")][ll("0x16")]("trackChangesData.editorCreator",(e=>{const n=t[ll("0x24")][ll("0x1b")][ll("0x18")]()[ll("0x1d")](((t,e)=>(t[e]="",t)),{});return t[ll("0x17")][ll("0x4")](n,e)})),"function"!=typeof t.config[ll("0x13")](ll("0xc")).editorCreator)throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}getDataWithAcceptedSuggestions(t){return ml(this[ll("0x1f")],!0,t)}[ll("0x1a")](t){return ml(this[ll("0x1f")],!1,t)}}class gl extends t.Plugin{static get[ll("0x11")](){return ll("0x20")}constructor(t){super(t),this[ll("0x5")]=ll("0x22")}[ll("0xe")](){this[ll("0x1f")].plugins.get("CommentsRepository")[ll("0x15")]={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[ll("0x1f")][ll("0x3")][ll("0x13")](ll("0x2"))[ll("0x15")]=null}}function fl(t){return void 0!==t.getRootsAttributes}async function ml(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,ul);o[ll("0x3")][ll("0xd")](Tc,gl),o.rootsAttributes=fl(t)?t.getRootsAttributes():void 0;const i=document[ll("0x14")](),s=t.config.get(ll("0xc"))[ll("0x8")],x=await s(o,(()=>function(t){const e=document[ll("0x10")](ll("0x21"));return t[ll("0x26")](e),e}(i)));!function(t,e){const n=t[ll("0x24")][ll("0x1b")][ll("0x18")]()[ll("0x1d")](((e,n)=>(e[n]=t[ll("0x0")].get({rootName:n}),e)),{}),o=t.plugins[ll("0x13")]("Users").users[ll("0xf")]((t=>({id:t.id,name:t[ll("0xb")]}))),i=t[ll("0x3")][ll("0x13")](ll("0x2")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e.plugins.get("Users"),s=e[ll("0x3")].get("TrackChangesEditing");for(const t of o)r[ll("0x12")](t.id)||r[ll("0x19")](t);r.me||r[ll("0x1")]();for(const t of i)s[ll("0x25")](t);e[ll("0x0")][ll("0x7")](n)}(t,x),x[ll("0x1c")](e?"acceptAllSuggestions":"discardAllSuggestions");const a=fl(x)?x[ll("0x6")](n):x[ll("0x0")][ll("0x13")](n);return await x[ll("0x23")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();