@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240104.0 → 0.0.0-nightly-20240105.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(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={exports:{}};return t[i](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},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 i={};(()=>{"use strict";n.r(i),n.d(i,{BaseSuggestionThreadView:()=>Hc,TrackChanges:()=>sl,TrackChangesData:()=>dl,TrackChangesEditing:()=>Tc});var t=n(704),e=n(209),o=n(273),r=n(417),s=n(492),x=n(995);const a=["_disableUnsupportedCommands","refresh","commands","_enableCommands","forceDisabled","clearForceDisabled","_enabledCommands","value","TrackChangesCommand","isEnabled","has","execute","editor","affectsData"];var c,l;c=a,l=496,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("0x0")]=e,this[u("0x1")]=!1,this.refresh(),this._isEnabledBasedOnSelection=!1}[u("0x9")](){this[u("0x3")]=!0}[u("0x5")](){this[u("0x1")]=!this[u("0x1")],this[u("0x1")]?this[u("0x8")]():this[u("0xb")]()}_disableUnsupportedCommands(){for(const t of this.editor[u("0xa")][u("0xa")]())t[u("0x7")]&&!this[u("0x0")][u("0x4")](t)&&t[u("0xc")](u("0x2"))}[u("0xb")](){for(const t of this[u("0x6")].commands[u("0xa")]())t[u("0x7")]&&!this[u("0x0")].has(t)&&t[u("0xd")](u("0x2"))}}const g=["_suggestions","refresh","canEditAt","editor","model","track-changes-accept-suggestion-not-found","acceptSuggestion","getRanges","execute","get"];var f,m;f=g,m=406,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("0x4")]=e,this[h("0x5")](),this._isEnabledBasedOnSelection=!1}refresh(){this.isEnabled=!0}[h("0x2")](t){const n=this[h("0x4")][h("0x3")](t);if(!n)throw new e.CKEditorError(h("0x9"),this);const i=n[h("0x1")]();this[h("0x7")][h("0x8")][h("0x6")](i)&&this[h("0x7")].plugins.get("TrackChangesEditing")[h("0x0")](n)}}const p=["canEditAt","execute","model","refresh","_isEnabledBasedOnSelection","editor","track-changes-discard-suggestion-not-found","_suggestions","get","plugins","discardSuggestion","getRanges"];var E,_;E=p,_=330,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("0x1")]=e,this[T("0x9")](),this[T("0xa")]=!1}[T("0x9")](){this.isEnabled=!0}[T("0x7")](t){const n=this[T("0x1")][T("0x2")](t);if(!n)throw new e.CKEditorError(T("0x0"),this);const i=n[T("0x5")]();this[T("0xb")][T("0x8")][T("0x6")](i)&&this[T("0xb")][T("0x3")][T("0x2")]("TrackChangesEditing")[T("0x4")](n)}}const C=["next","end","push","createPositionBefore","deletion","isArray","replace","isInContent","isTouching","isMultiRange","value","createPositionAfter","map","createPositionAt","execute","start","sort","isObject","content","type","getRanges","splice","createRange","isIntersecting","isCollapsed","length"," [color ","schema","add","color"];var A,k;A=C,k=154,function(t){for(;--t;)A.push(A.shift())}(++k);const S=function(t,e){return C[t-=0]};function R(t){return t[S("0xc")](((t,e)=>S("0x0")==t[S("0xf")]&&S("0x0")!=e[S("0xf")]?-1:S("0x0")!=t.type&&S("0x0")==e[S("0xf")]?1:0))}function I(t,e){let n,i=0;const o=[],r=e[S("0x17")];for(;i<t[S("0x15")];){const s=t[i],x=t[i+1];n||(n=e[S("0x1d")](s)),v(e,s,x)||(o[S("0x1c")](e[S("0x12")](n,r[S("0xd")](s)?e.createPositionAfter(s):e[S("0x9")](s,S("0x1b")))),n=null),i++}return o}function v(t,e,n){if(!n)return!1;const i=t[S("0x7")](e),o=t[S("0x1d")](n);return i.isTouching(o)}function L(t,e,n){for(;n[S("0x15")];){const i=n[S("0x11")](0,100);t.change((()=>{for(const t of i)t[S("0x3")]&&e[S("0xa")](t.id)}))}}const N=["execute","getRanges","isInContent","editor","canEditAt","values","isEnabled","some","from","model","_suggestions","_command","_isEnabledBasedOnSelection"];var M,w;M=N,w=208,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0xb")]=e,this._suggestions=n,this.refresh(),this[O("0xc")]=!1}refresh(){const t=Array.from(this[O("0xa")][O("0x5")]())[O("0x7")]((t=>t[O("0x2")]));this[O("0x6")]=this[O("0xb")][O("0x6")]&&t}[O("0x0")](){const t=R(Array[O("0x8")](this._suggestions[O("0x5")]()));for(const e of t){const t=e[O("0x1")]();if(!this[O("0x3")][O("0x9")][O("0x4")](t))return}L(this[O("0x3")][O("0x9")],this[O("0xb")],t)}}const D=["_command","execute","editor","_suggestions","model","isEnabled","size","from","_selectedSuggestions","selection","refresh","values"];var B,P;B=D,P=430,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("0x2")]=e,this._suggestions=n,this[U("0xa")]=new Set,this[U("0x0")](),this._isEnabledBasedOnSelection=!1}[U("0x0")](){const t=this.editor[U("0x6")].document[U("0xb")],e=Array[U("0x9")](this[U("0x5")][U("0x1")]());this._selectedSuggestions=function(t,e){const n=Array.from(t[S("0x10")]()),i=new Set;for(const o of e)if(o[S("0x3")])for(const e of n)for(const n of o[S("0x10")]())(e[S("0x13")](n)||t[S("0x14")]&&!o[S("0x5")]&&o[S("0x1a")]&&n[S("0x1b")][S("0x4")](e[S("0xb")]))&&i[S("0x18")](o);return i}(t,e),this.isEnabled=this[U("0x2")][U("0x7")]&&!!this[U("0xa")][U("0x8")]}[U("0x3")](){const t=R(Array[U("0x9")](this[U("0xa")]));for(const e of t){const t=e.getRanges();if(!this.editor[U("0x6")].canEditAt(t))return}L(this[U("0x4")][U("0x6")],this[U("0x2")],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__,i=H(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function X(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[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 it=et||nt||Function("return this")();const ot=it.Symbol;var rt=Object.prototype,st=rt.hasOwnProperty,xt=rt.toString,at=ot?ot.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var i=!0}catch(t){}var o=xt.call(t);return i&&(e?t[at]=n:delete t[at]),o};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=ot?ot.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=it["__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,St=At.hasOwnProperty,Rt=RegExp("^"+kt.call(St).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=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 Lt=function(t,e){var n=vt(t,e);return It(n)?n:void 0};const Nt=Lt(it,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var 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 i=t[e];this.set(i[0],i[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(Nt||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),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function Xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[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 i=n.__data__;if(!Nt||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(i)}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,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var ie=Object.prototype.hasOwnProperty;const oe=function(t,e,n){var i=t[e];ie.call(t,e)&&V(i,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,i){var o=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var x=e[r],a=i?i(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),o?ne(n,x,a):oe(n,x,a)}return n};const se=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i};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?it.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,Se=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Se&&Se.exports===ke&&et.process;const Ie=function(){try{var t=Se&&Se.require&&Se.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var ve=Ie&&Ie.isTypedArray;const Le=ve?Ae(ve):Ce;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),i=!n&&de(t),o=!n&&!i&&pe(t),r=!n&&!i&&!o&&Le(t),s=n||i||o||r,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||s&&("length"==c||o&&("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 i in t)("constructor"!=i||!e&&He.call(t,i))&&n.push(i);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,$e=qe&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=$e&&$e.exports===qe?it.Buffer:void 0,Ze=Xe?Xe.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,i=Ze?Ze(n):new t.constructor(n);return t.copy(i),i};const Je=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,i=null==t?0:t.length,o=0,r=[];++n<i;){var s=t[n];e(s,n,t)&&(r[o++]=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,i=e.length,o=t.length;++n<i;)t[o+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 i=e(t);return ge(t)?i:sn(i,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=Lt(it,"DataView");const fn=Lt(it,"Promise");const mn=Lt(it,"Set");const hn=Lt(it,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Nt),An=Tt(fn),kn=Tt(mn),Sn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=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,i=n?Tt(n):"";if(i)switch(i){case yn:return Tn;case Cn:return bn;case An:return pn;case kn:return En;case Sn:return _n}return e});const In=Rn;var vn=Object.prototype.hasOwnProperty;const Ln=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 Nn=it.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=ot?ot.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 i=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new i(+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 i;case"[object Number]":case"[object String]":return new i(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]"==In(t)};var Wn=Ie&&Ie.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var $n=Ie&&Ie.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 ti=function t(e,n,i,o,r,s){var x,a=1&n,c=2&n,l=4&n;if(i&&(x=r?i(e,o,r,s):i(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Je(e,x)}else{var d=In(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),Xn(e)?e.forEach((function(o){x.add(t(o,n,i,o,e,s))})):Kn(e)&&e.forEach((function(o,r){x.set(r,t(o,n,i,r,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(o,r){m&&(o=e[r=o]),oe(x,r,t(o,n,i,r,e,s))})),x};const ei=function(t){return ti(t,5)};const ni=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var ii=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oi=/^\w*$/;const ri=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ni(t))||(oi.test(t)||!ii.test(t)||null!=e&&t in Object(e))};function si(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,o=e?e.apply(this,i):i[0],r=n.cache;if(r.has(o))return r.get(o);var s=t.apply(this,i);return n.cache=r.set(o,s)||r,s};return n.cache=new(si.Cache||Zt),n}si.Cache=Zt;const xi=si;var ai=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ci=/\\(\\)?/g;const li=function(t){var e=xi(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(ai,(function(t,n,i,o){e.push(i?o.replace(ci,"$1"):n||t)})),e}));const ui=function(t,e){for(var n=-1,i=null==t?0:t.length,o=Array(i);++n<i;)o[n]=e(t[n],n,t);return o};var di=ot?ot.prototype:void 0,gi=di?di.toString:void 0;const fi=function t(e){if("string"==typeof e)return e;if(ge(e))return ui(e,t)+"";if(ni(e))return gi?gi.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const mi=function(t){return null==t?"":fi(t)};const hi=function(t,e){return ge(t)?t:ri(t,e)?[t]:li(mi(t))};const bi=function(t){if("string"==typeof t||ni(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const pi=function(t,e,n,i){if(!ft(t))return t;for(var o=-1,r=(e=hi(e,t)).length,s=r-1,x=t;null!=x&&++o<r;){var a=bi(e[o]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(o!=s){var l=x[a];void 0===(c=i?i(l,a,x):void 0)&&(c=ft(l)?l:_e(e[o+1])?[]:{})}oe(x,a,c),x=x[a]}return t};const Ei=function(t,e,n){return null==t?t:pi(t,e,n)};const _i=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Ti=function(t){return this.__data__.has(t)};function yi(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yi.prototype.add=yi.prototype.push=_i,yi.prototype.has=Ti;const Ci=yi;const Ai=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1};const ki=function(t,e){return t.has(e)};const Si=function(t,e,n,i,o,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 Ci:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(i)var h=s?i(m,f,u,e,t,r):i(f,m,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ai(e,(function(t,e){if(!ki(g,e)&&(f===t||o(f,t,n,i,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!o(f,m,n,i,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const Ri=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n};const Ii=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vi=ot?ot.prototype:void 0,Li=vi?vi.valueOf:void 0;const Ni=function(t,e,n,i,o,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 Nn(t),new Nn(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=Ri;case"[object Set]":var a=1&i;if(x||(x=Ii),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;i|=2,s.set(t,e);var l=Si(x(t),x(e),i,o,r,s);return s.delete(t),l;case"[object Symbol]":if(Li)return Li.call(t)==Li.call(e)}return!1};var Mi=Object.prototype.hasOwnProperty;const wi=function(t,e,n,i,o,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:Mi.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(i)var b=s?i(h,m,l,e,t,r):i(m,h,l,t,e,r);if(!(void 0===b?m===h||o(m,h,n,i,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 Oi="[object Arguments]",Fi="[object Array]",Di="[object Object]",Bi=Object.prototype.hasOwnProperty;const Pi=function(t,e,n,i,o,r){var s=ge(t),x=ge(e),a=s?Fi:In(t),c=x?Fi:In(e),l=(a=a==Oi?Di:a)==Di,u=(c=c==Oi?Di:c)==Di,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||Le(t)?Si(t,e,n,i,o,r):Ni(t,e,a,n,i,o,r);if(!(1&n)){var g=l&&Bi.call(t,"__wrapped__"),f=u&&Bi.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return r||(r=new Qt),o(m,h,n,i,r)}}return!!d&&(r||(r=new Qt),wi(t,e,n,i,o,r))};const Ui=function t(e,n,i,o,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Pi(e,n,i,o,t,r))};const ji=function(t,e){return Ui(t,e)};const Gi=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vi=function(t,e){for(var n=0,i=(e=hi(e,t)).length;null!=t&&n<i;)t=t[bi(e[n++])];return n&&n==i?t:void 0};const Hi=function(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(o);++i<o;)r[i]=t[i+e];return r};const zi=function(t,e){return e.length<2?t:Vi(t,Hi(e,0,-1))};const Wi=function(t,e){return e=hi(e,t),null==(t=zi(t,e))||delete t[bi(Gi(e))]};const Ki=function(t,e){return null==t||Wi(t,e)},qi=["isExternal","nodeAfter","creator","author","start","_model","markers","getMarkers","@external","getFirstMarker","nodeBefore","toJSON","onAccept","getItems","_onAttributesChange","onAttributesChange","removeMarker","isMultiRange","split","push","get","previous","addMarker","getMultiRangeId","getRange","subType","end","getAllAdjacentSuggestions","getMarkerNames","accept","map","type","_saved","removeMarkers","_markerNames","length","change","attributes","head","next","data","getRanges","onDiscard","isIntersectingWithRange","from","decorate","createdAt","discard","isInContent","setAttribute","set","add","commentThread","_onAccept","addMarkerName","addRange","delete","suggestion:"];var $i,Xi;$i=qi,Xi=139,function(t){for(;--t;)$i.push($i.shift())}(++Xi);const Zi=function(t,e){return qi[t-=0]};class Yi extends((0,e.ObservableMixin)()){constructor(t,e){super(),this._isDataLoaded=!1,this.id=e.id,this[Zi("0x8")]=e[Zi("0x8")],this[Zi("0x2")]=e[Zi("0x2")]||null,this.author=e[Zi("0x26")],this[Zi("0x25")]=e[Zi("0x25")]||e[Zi("0x26")],this[Zi("0x23")]=Boolean(e.attributes&&e[Zi("0xe")][Zi("0x2b")]),this[Zi("0x11")]=null,this[Zi("0x28")]=t,this[Zi("0x1e")]=e[Zi("0x2f")],this._onDiscard=e[Zi("0x13")],this[Zi("0x31")]=e[Zi("0x32")],this._markerNames=new Set,this[Zi("0x17")]=null,this[Zi("0x1b")]("authoredAt",null),this[Zi("0x1b")](Zi("0xe"),e.attributes||{}),this[Zi("0x1b")]("previous",null),this[Zi("0x1b")](Zi("0x10"),null),this[Zi("0x1b")](Zi("0x1d"),null),this[Zi("0x1b")](Zi("0x9"),!1),this.decorate(Zi("0x6")),this[Zi("0x16")](Zi("0x18"))}get[Zi("0xf")](){let t=this;for(;t[Zi("0x38")];)t=t.previous;return t}get hasComments(){return!!this[Zi("0x1d")]&&this[Zi("0x1d")][Zi("0xc")]>0}get[Zi("0x34")](){return 0!=this[Zi("0xb")].size&&6==Array.from(this[Zi("0xb")])[0][Zi("0x35")](":").length}get[Zi("0x19")](){return null!==this[Zi("0x2c")]()}[Zi("0x1f")](t){this[Zi("0xb")][Zi("0x1c")](t)}[Zi("0x5")](){return Array[Zi("0x15")](this[Zi("0xb")])}[Zi("0x2a")](){return this[Zi("0x5")]()[Zi("0x7")]((t=>this[Zi("0x28")][Zi("0x29")][Zi("0x37")](t))).filter((t=>t))}getFirstMarker(){return this[Zi("0x2a")]()[0]||null}[Zi("0xa")](){this[Zi("0x28")][Zi("0xd")]((t=>{for(const e of this[Zi("0x2a")]())t[Zi("0x33")](e)})),this[Zi("0xb")].clear()}removeMarker(t){this._model[Zi("0xd")]((e=>{e[Zi("0x33")](t)})),this[Zi("0xb")][Zi("0x21")](t)}[Zi("0x20")](t){const e=Zi("0x22")+this[Zi("0x8")]+":"+this[Zi("0x2")]+":"+this.id+":"+this.creator.id+":"+Yi[Zi("0x0")]();this[Zi("0x1f")](e),this[Zi("0x28")][Zi("0xd")]((n=>{n[Zi("0x39")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zi("0x14")](t){for(const e of this[Zi("0x12")]())if(e.isIntersecting(t))return!0;return!1}[Zi("0x12")](){return this[Zi("0x2a")]()[Zi("0x7")]((t=>t.getRange()))}[Zi("0x30")](){return this.getRanges().reduce(((t,e)=>[...t,...e[Zi("0x30")]()]),[])}getFirstRange(){var t;return(null===(t=this[Zi("0x2c")]())||void 0===t?void 0:t[Zi("0x1")]())||null}getContainedElement(){const t=this[Zi("0x12")]();if(1!=t[Zi("0xc")])return null;const e=t[0],n=e[Zi("0x27")][Zi("0x24")],i=e[Zi("0x3")][Zi("0x2d")];return n instanceof s.Element?n!=i?null:n:null}[Zi("0x6")](){this[Zi("0x1e")](this[Zi("0x12")](),this[Zi("0x11")],this.attributes),this[Zi("0xa")]()}[Zi("0x18")](){this._onDiscard(this[Zi("0x12")](),this[Zi("0x11")],this[Zi("0xe")]),this[Zi("0xa")]()}[Zi("0x4")](){const t=[];let e=this[Zi("0xf")];for(;e;)t[Zi("0x36")](e),e=e[Zi("0x10")];return t}[Zi("0x1a")](t,e){const n=ei(this[Zi("0xe")]);Ei(n,t,e),ji(n,this[Zi("0xe")])||(this[Zi("0xe")]=n,this[Zi("0x31")](n))}removeAttribute(t){const e=ei(this[Zi("0xe")]);Ki(e,t),ji(e,this[Zi("0xe")])||(this[Zi("0xe")]=e,this[Zi("0x31")](this.attributes))}[Zi("0x2e")](){return{id:this.id,type:this[Zi("0x2")]?this[Zi("0x8")]+":"+this.subType:this[Zi("0x8")],authorId:this[Zi("0x25")].id,createdAt:this[Zi("0x17")],hasComments:this.hasComments,data:this.data,attributes:this.attributes}}static[Zi("0x0")](){return(0,e.uid)().substr(1,5)}}function Ji(t,e,n){const i=t.t;switch(e){case"Track changes":return i("Track changes");case"Accept suggestion":return i("Accept suggestion");case"Discard suggestion":return i("Discard suggestion");case"Accept all suggestions":return i("Accept all suggestions");case"Accept all selected suggestions":return i("Accept all selected suggestions");case"Discard all suggestions":return i("Discard all suggestions");case"Discard all selected suggestions":return i("Discard all selected suggestions");case"*Reset font size*":return i("*Reset font size*");case"*Reset font family*":return i("*Reset font family*");case"*Reset font color*":return i("*Reset font color*");case"*Reset font background color*":return i("*Reset font background color*");case"*Remove image text alternative*":return i("*Remove image text alternative*");case"*Reset image width*":return i("*Reset image width*");case"*Remove link*":return i("*Remove link*");case"*Check item*":return i("*Check item*");case"*Uncheck item*":return i("*Uncheck item*");case"*Remove all formatting*":return i("*Remove all formatting*");case"*Replace table cells*":return i("*Replace table cells*");case"*Merge cells*":return i("*Merge cells*");case"*Split cell:* vertically":return i("*Split cell:* vertically");case"*Split cell:* horizontally":return i("*Split cell:* horizontally");case"*Indent:* %0":return i("*Indent:* %0",n);case"*Outdent:* %0":return i("*Outdent:* %0",n);case"*Change to:* %0":return i("*Change to:* %0",n);case"*Insert:* %0":return i("*Insert:* %0",n);case"*Format:* %0":return i("*Format:* %0",n);case"*Format:* change table properties":return i("*Format:* change table properties");case"*Format:* change table cell properties":return i("*Format:* change table cell properties");case"*Format:* insert into %0":return i("*Format:* insert into %0",n);case"*Format:* remove from %0":return i("*Format:* remove from %0",n);case"*Replace image URL*":return i("*Replace image URL*");case"*Format:* resize table":return i("*Format:* resize table");case"*Format:* set order to reversed":return i("*Format:* set order to reversed");case"*Format:* set order to regular":return i("*Format:* set order to regular");case"*Format:* set start index to %0":return i("*Format:* set start index to %0",n);case"*Change %0 content*":return i("*Change %0 content*",n);case"*Remove:* %0":return i("*Remove:* %0",n);case"*Merge:* %0":return i("*Merge:* %0",n);case"*Split:* %0":return i("*Split:* %0",n);case"*Remove format:* %0":return i("*Remove format:* %0",n);case"*Set font size:* %0":return i("*Set font size:* %0",n);case"*Set font family:* %0":return i("*Set font family:* %0",n);case"*Set format to:* %0":return i("*Set format to:* %0",n);case"*Set font color:* %0":return i("*Set font color:* %0",n);case"*Set font background color:* %0":return i("*Set font background color:* %0",n);case"*Set format:* %0":return i("*Set format:* %0",n);case"*Set image text alternative:* %0":return i("*Set image text alternative:* %0",n);case"*Set image width:* %0":return i("*Set image width:* %0",n);case"*Set link:* %0":return i("*Set link:* %0",n);case"*Set highlight:* %0":return i("*Set highlight:* %0",n);case"*Remove highlight*":return i("*Remove highlight*");case"FORMAT_HIGHLIGHT":return i({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return i({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return i({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return i({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return i({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return i({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return i({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return i({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return i({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return i({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return i({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return i({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return i({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return i({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return i({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return i({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return i({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return i({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return i({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return i({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return i({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return i({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return i({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return i({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return i({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return i({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return i({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return i({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return i({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return i({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return i({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return i({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return i({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return i({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return i({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return i({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return i({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return i({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return i({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return i({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return i({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return i({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return i({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return i({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return i({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return i({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return i({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return i({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return i({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return i({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return i({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return i({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return i({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return i({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return i({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return i({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return i({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return i({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return i({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return i({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return i({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return i({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return i({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 i({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return i({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 i({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return i({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return i({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return i({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return i({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return i({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return i({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Qi=["REPLACE_TEXT","map","_locale","removeEmptyContainer","_handleAttributeSuggestionDescription","Container","start","_itemLabels","type","previousSibling","EmptyContainer","name","_handleInsertRemoveSuggestionDescription","*Remove:* %0","attribute","softBreak","removeContainer","registerDescriptionCallback","*Remove format:* %0","quantity","text","label","remove","*Split:* %0","set","data","$textProxy","getItemLabel","push","has","match","_schema","*Insert:* %0","addContainer","_itemLabelsCallbacks","_handleRenameSuggestionDescription","pop","normal","replace","element","isObject","add","getWalker","insertion","_attributeLabels","_resolveDescriptionItems","addObject","_customCallbacks","Object","addFormat","$1 $2","getDescriptions","isInContent","_addDescriptionItems","newValue","_handleCustomCallbackDescription","format","key","registerElementLabel","registerAttributeLabel","indexOf","elementEnd","nodeAfter","nextSibling","elementStart","*Merge:* %0","deletion","isEmpty","length","item","getFirstRange","matchingCallback","checkChild","removeObject","ELEMENT_SPACE","get","subType"];var to,eo;to=Qi,eo=466,function(t){for(;--t;)to.push(to.shift())}(++eo);const no=function(t,e){return Qi[t-=0]};class io{constructor(t,e){this[no("0x2b")]=[],this[no("0x3")]=new Map,this._itemLabelsCallbacks=[],this._attributeLabels=new Map,this[no("0x1b")]=t,this._locale=e}[no("0x2f")](t){const e=[],n=new Set,i=new Set;for(let o=0;o<t[no("0x40")];o++){const r=t[o];if(!r[no("0x30")])continue;const s=this._handleCustomCallbackDescription(r);if(s){if(null!=r[no("0x48")]){if(n[no("0x19")](r[no("0x48")]))continue;n[no("0x25")](r[no("0x48")])}e[no("0x18")](s)}else if(no("0xa")!=r[no("0x4")])no("0x27")!=r[no("0x4")]&&no("0x3e")!=r[no("0x4")]||this._handleInsertRemoveSuggestionDescription(e,r,t[o+1]);else{const t=r[no("0x15")].key;if(i[no("0x19")](t))continue;i[no("0x25")](r[no("0x15")].key),t==_c?this[no("0x1f")](e,r):this[no("0x0")](e,r)}}return this[no("0x29")](e)}[no("0xd")](t){this[no("0x2b")].push(t)}[no("0x36")](t,n,i=e.priorities[no("0x21")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[no("0x1e")],{matchingCallback:t,label:n,priority:i}):this[no("0x3")][no("0x14")](t,n)}[no("0x37")](t,e){this._attributeLabels[no("0x14")](t,e)}[no("0x17")](t,e=1){let n;for(const e of this[no("0x1e")])if(e[no("0x43")](t)){n=e[no("0x11")];break}return n||(n=this[no("0x3")].get(t[no("0x7")])),n?n(e):1!==e?e+" "+t[no("0x7")]+"s":""+t[no("0x7")]}[no("0x31")](t,e){const n=e[no("0x42")]()[no("0x26")](),i="insertion"==e.type?no("0x25"):"remove";for(const e of n){const o=e[no("0x41")],r=t[t[no("0x40")]-1];if(o.is(no("0x16")))r&&r.type[no("0x38")](no("0x1"))>-1&&t[no("0x20")](),r&&no("0x10")==r[no("0x4")]?r[i]+=o[no("0x15")]:t.push({type:no("0x10"),add:no("0x25")==i?o.data:"",remove:no("0x12")==i?o[no("0x15")]:""});else if(this[no("0x1b")][no("0x24")](o)){const s=o;if(r&&r[no("0x4")][no("0x38")]("Container")>-1&&t.pop(),no("0x39")==e[no("0x4")])continue;r&&r[no("0x4")]==i+no("0x2c")&&r.element[no("0x7")]==s[no("0x7")]?r[no("0xf")]++:t[no("0x18")]({type:i+no("0x2c"),element:s,quantity:1}),n.skip((t=>!(no("0x39")==t[no("0x4")]&&t[no("0x41")]==o)))}else if(this[no("0x1b")][no("0x44")](o,"$text")||o.is(no("0x23"),no("0xb"))){const n=o;if(no("0x25")==i&&no("0x3c")==e[no("0x4")]||no("0x12")==i&&no("0x39")==e[no("0x4")])continue;if(r&&-1==r[no("0x4")][no("0x38")]("Container")){no("0x10")==r[no("0x4")]&&(r[i]+="\n");continue}let s;if(s=no("0x25")==i?n[no("0x3b")]&&!this[no("0x1b")][no("0x24")](n.nextSibling)?n[no("0x3b")]:null:n[no("0x5")]&&!this._schema[no("0x24")](n[no("0x5")])?n[no("0x5")]:null,n[no("0x3f")]||s&&s[no("0x3f")]){const e=s&&s[no("0x3f")]?s:n;r&&r.type==i+no("0x6")&&r[no("0x23")][no("0x7")]==e[no("0x7")]?r.quantity++:t.push({type:i+"EmptyContainer",element:e,quantity:1})}else t[no("0x18")]({type:i+"Container",element:n})}}}[no("0x29")](t){const e=this[no("0x4b")],n=[],i=[],o=[];for(const r of t)switch(r[no("0x4")]){case"text":if(r.add=r.add.replace(/(\S)\u000A+(\S)/g,"$1 $2").replace(/\u000A/g,""),r.remove=r[no("0x12")][no("0x22")](/(\S)\u000A+(\S)/g,no("0x2e"))[no("0x22")](/\u000A/g,""),""!=r[no("0x25")]&&""!=r[no("0x12")]){n[no("0x18")]({type:"replace",content:Ji(e,no("0x49"),['"'+r.remove+'"','"'+r.add+'"'])});continue}if(null!=r[no("0x25")][no("0x1a")](/^ +$/)){n[no("0x18")]({type:"insertion",content:Ji(e,no("0x1c"),Ji(e,no("0x46"),r[no("0x25")].length))});continue}if(null!=r[no("0x12")][no("0x1a")](/^ +$/)){n[no("0x18")]({type:no("0x3e"),content:Ji(e,no("0x9"),Ji(e,no("0x46"),r.remove[no("0x40")]))});continue}if(""!=r[no("0x25")]){n[no("0x18")]({type:no("0x27"),content:Ji(e,no("0x1c"),'"'+r[no("0x25")]+'"')});continue}n[no("0x18")]({type:"deletion",content:Ji(e,no("0x9"),'"'+r[no("0x12")]+'"')});continue;case"addEmptyContainer":case no("0x2a"):n[no("0x18")]({type:"insertion",content:Ji(e,no("0x1c"),this[no("0x17")](r[no("0x23")],r[no("0xf")]))});continue;case no("0x4c"):case no("0x45"):n[no("0x18")]({type:no("0x3e"),content:Ji(e,"*Remove:* %0",this[no("0x17")](r.element,r[no("0xf")]))});continue;case no("0x1d"):n[no("0x18")]({type:no("0x27"),content:Ji(e,no("0x13"),this.getItemLabel(r.element,r[no("0xf")]))});continue;case no("0xc"):n[no("0x18")]({type:no("0x3e"),content:Ji(e,no("0x3d"),this[no("0x17")](r[no("0x23")],r[no("0xf")]))});continue;case no("0x2d"):i[no("0x18")](r.key);continue;case"removeFormat":o[no("0x18")](r[no("0x35")]);continue;default:n[no("0x18")](r)}if(i[no("0x40")]){const t=i[no("0x4a")]((t=>this[no("0x28")][no("0x19")](t)?this[no("0x28")][no("0x47")](t):t)).join(", ");n.push({type:no("0x34"),content:Ji(this[no("0x4b")],"*Set format:* %0",t)})}if(o[no("0x40")]){const t=o[no("0x4a")]((t=>this[no("0x28")][no("0x19")](t)?this[no("0x28")][no("0x47")](t):t)).join(", ");n[no("0x18")]({type:"format",content:Ji(this[no("0x4b")],no("0xe"),t)})}return n}[no("0x33")](t){for(const e of this[no("0x2b")]){const n=e(t);if(n&&"type"in n)return n}}_handleAttributeSuggestionDescription(t,e){const n=e.data,i=void 0===n[no("0x32")]?"removeFormat":no("0x2d");t[no("0x18")]({type:i,key:n[no("0x35")]})}[no("0x1f")](t,e){t.push({type:no("0x34"),content:Ji(this[no("0x4b")],"*Change to:* %0",this.getItemLabel(e[no("0x42")]()[no("0x2")][no("0x3a")],1))})}[no("0x8")](t,e,n){if(this._addDescriptionItems(t,e),n&&n[no("0x42")]()&&!e.getFirstRange().end.isEqual(n[no("0x42")]()[no("0x2")])){const n=t[t[no("0x40")]-1],i=no("0x27")==e[no("0x4")]?no("0x25"):"remove";n&&"text"==n[no("0x4")]&&(n[i]+="\n")}}}const oo=["get","plugins","enableCommand","showAIAssistant","afterInit","commands"];var ro,so;ro=oo,so=194,function(t){for(;--t;)ro.push(ro.shift())}(++so);const xo=function(t,e){return oo[t-=0]};class ao extends t.Plugin{[xo("0x2")](){const t=this.editor,e=t[xo("0x5")][xo("0x4")]("TrackChangesEditing");t[xo("0x3")][xo("0x4")](xo("0x1"))&&e[xo("0x0")](xo("0x1"))}}const co=["registerDescriptionCallback","*Format:* %0","get","type","value","_descriptionFactory","FORMAT_ALIGN_TO_RIGHT","locale","FORMAT_JUSTIFY_TEXT","right","TrackChangesEditing","_registerLegacyDescription","FORMAT_ALIGNMENT","alignment","left","afterInit","editor","center","_enableDefaultAttributesIntegration","AlignmentEditing","plugins","FORMAT_ALIGN_TO_CENTER"];var lo,uo;lo=co,uo=460,function(t){for(;--t;)lo.push(lo.shift())}(++uo);const go=function(t,e){return co[t-=0]};class fo extends t.Plugin{[go("0x11")](){const t=this[go("0x12")],e=t.locale;if(!t[go("0x0")].has(go("0x15")))return;const n=t[go("0x0")][go("0x4")]("TrackChangesEditing");n[go("0x14")](go("0xf"),[],[go("0xf")]),n[go("0x7")].registerAttributeLabel(go("0xf"),Ji(e,go("0xe"))),this[go("0xd")]()}_registerLegacyDescription(){const t=this.editor,e=t[go("0x9")];t[go("0x0")][go("0x4")](go("0xc"))._descriptionFactory[go("0x2")]((t=>{if("formatBlock"!=t[go("0x5")])return;const{data:n}=t;if(n&&"alignment"==n.commandName){const t=n.commandParams[0][go("0x6")];return{type:"format",content:Ji(e,go("0x3"),function(t){switch(t){case go("0x10"):return Ji(e,"FORMAT_ALIGN_TO_LEFT");case go("0xb"):return Ji(e,go("0x8"));case go("0x13"):return Ji(e,go("0x1"));case"justify":return Ji(e,go("0xa"))}}(t))}}}))}}const mo=["commandName","SuperscriptEditing","plugins","get","FORMAT_","_enableDefaultAttributesIntegration","subscript","FORMAT_ITALIC","editor","commandParams","locale","CodeEditing","slice","toUpperCase","afterInit","*Remove format:* %0","*Format:* %0","has","formatInline","ItalicEditing","_descriptionFactory","type","FORMAT_SUBSCRIPT","SubscriptEditing","italic","BoldEditing","registerAttributeLabel","strikethrough","_registerLegacyDescription","registerDescriptionCallback","underline","code","TrackChangesEditing","FORMAT_BOLD","format"];var ho,bo;ho=mo,bo=172,function(t){for(;--t;)ho.push(ho.shift())}(++bo);const po=function(t,e){return mo[t-=0]},Eo=[po("0x1c"),po("0x16"),"UnderlineEditing",po("0xe"),"StrikethroughEditing",po("0x1a"),po("0x4")];class _o extends t.Plugin{[po("0x11")](){const t=this.editor,e=t[po("0x5")][po("0x6")](po("0x0")),n=t[po("0xd")];for(const i of Eo){if(!t.plugins[po("0x14")](i))continue;const o=i[po("0xf")](0,-7).toLowerCase(),r=po("0x7")+o[po("0x10")]();e[po("0x8")](o,[o]),e._descriptionFactory[po("0x1d")](o,Ji(n,r))}this[po("0x1f")]()}_registerLegacyDescription(){const t=this[po("0xb")],e=t.locale,n=t[po("0x5")][po("0x6")](po("0x0"));function i(t,i){n[po("0x17")][po("0x20")]((n=>{if(po("0x15")!=n[po("0x18")])return;const{data:o}=n;return o&&o[po("0x3")]===t?o[po("0xc")][0].forceValue?{type:"format",content:Ji(e,po("0x13"),i)}:{type:po("0x2"),content:Ji(e,po("0x12"),i)}:void 0}))}i("bold",Ji(e,po("0x1"))),i(po("0x1b"),Ji(e,po("0xa"))),i(po("0x21"),Ji(e,"FORMAT_UNDERLINE")),i(po("0x22"),Ji(e,"FORMAT_CODE")),i(po("0x1e"),Ji(e,"FORMAT_STRIKETHROUGH")),i(po("0x9"),Ji(e,po("0x19"))),i("superscript",Ji(e,"FORMAT_SUPERSCRIPT"))}}const To=["_descriptionFactory","get","forceValue","registerDescriptionCallback","parent","schema","plugins","afterInit","checkChild","commands","commandName","value","format","*Remove format:* %0","ELEMENT_BLOCK_QUOTE","getSelectedBlocks","blockQuote","filter","*Set format:* %0","document","markBlockFormat","model","editor"];var yo,Co;yo=To,Co=401,function(t){for(;--t;)yo.push(yo.shift())}(++Co);const Ao=function(t,e){return To[t-=0]};class ko extends t.Plugin{[Ao("0x14")](){const t=this[Ao("0xc")],e=t.locale;if(!t[Ao("0x13")].has("BlockQuoteEditing"))return;const n=t[Ao("0x13")][Ao("0xe")]("TrackChangesEditing"),i=this[Ao("0xc")][Ao("0x16")][Ao("0xe")](Ao("0x6"));n.enableCommand(Ao("0x6"),((e,o={})=>{const r=this[Ao("0xc")][Ao("0xb")][Ao("0x9")].selection,s=o&&void 0!==o[Ao("0xf")]?o.forceValue:!i[Ao("0x1")];let x=[];if(s){const e=Array.from(r[Ao("0x5")]())[Ao("0x7")]((t=>So(t)||function(t,e){const n=e[Ao("0x15")](t.parent,Ao("0x6")),i=e[Ao("0x15")](["$root",Ao("0x6")],t);return n&&i}(t,this[Ao("0xc")].model[Ao("0x12")])));x=I(e,t[Ao("0xb")])}else{const e=Array.from(r[Ao("0x5")]())[Ao("0x7")]((t=>So(t)));x=I(e,t[Ao("0xb")])}t[Ao("0xb")].change((()=>{for(const t of x)n[Ao("0xa")](t,{commandName:Ao("0x6"),commandParams:[{forceValue:s}]})}))})),n[Ao("0xd")][Ao("0x10")]((t=>{const{data:n}=t;if(n&&Ao("0x6")==n[Ao("0x0")]){const t=Ji(e,Ao("0x4"));return n.commandParams[0].forceValue?{type:"format",content:Ji(e,Ao("0x8"),t)}:{type:Ao("0x2"),content:Ji(e,Ao("0x3"),t)}}}))}}function So(t){return Ao("0x6")==t[Ao("0x11")].name}const Ro=["enableCommand","CaseChange","changeCaseUpper","plugins","editor","has","get","TrackChangesEditing","afterInit"];var Io,vo;Io=Ro,vo=240,function(t){for(;--t;)Io.push(Io.shift())}(++vo);const Lo=function(t,e){return Ro[t-=0]};class No extends t.Plugin{[Lo("0x2")](){const t=this[Lo("0x7")];t[Lo("0x6")][Lo("0x8")](Lo("0x4"))&&(t[Lo("0x6")][Lo("0x0")](Lo("0x1"))[Lo("0x3")](Lo("0x5")),t.plugins[Lo("0x0")]("TrackChangesEditing")[Lo("0x3")]("changeCaseLower"),t[Lo("0x6")].get(Lo("0x1")).enableCommand("changeCaseTitle"))}}const Mo=["get","commands","enableCommand","ckbox","editor","afterInit","plugins","TrackChangesEditing"];var wo,Oo;wo=Mo,Oo=430,function(t){for(;--t;)wo.push(wo.shift())}(++Oo);const Fo=function(t,e){return Mo[t-=0]};class Do extends t.Plugin{[Fo("0x7")](){const t=this[Fo("0x6")];t[Fo("0x3")][Fo("0x2")](Fo("0x5"))&&t[Fo("0x0")].get(Fo("0x1"))[Fo("0x4")](Fo("0x5"))}}const Bo=["commands","change","selection","checkChild","indentCodeBlock","forceValue","rootElement","_descriptionFactory","config","plugins","language","commandParams","afterInit","from","name","locale","type","codeBlock","document","outdentCodeBlock","TrackChangesEditing","filter","getSelectedBlocks","format","CodeBlock","model","editor","ELEMENT_CODE_BLOCK","schema","find","has","registerDescriptionCallback","*Set format:* %0","get"];var Po,Uo;Po=Bo,Uo=428,function(t){for(;--t;)Po.push(Po.shift())}(++Uo);const jo=function(t,e){return Bo[t-=0]};class Go extends t.Plugin{[jo("0x1a")](){const t=this[jo("0x6")];if(!t[jo("0x17")][jo("0xa")](jo("0x4")))return;const e=t.plugins.get(jo("0x0")),n=t[jo("0x1d")],i=t[jo("0x16")][jo("0xd")]("codeBlock").languages,o=t[jo("0xe")][jo("0xd")]("codeBlock");e.enableCommand(jo("0x12")),e.enableCommand(jo("0x21")),e.enableCommand(jo("0x1f"),((n,r={})=>{const s=t[jo("0x5")],x=t[jo("0x5")][jo("0x20")][jo("0x10")],a=r&&void 0!==r[jo("0x13")]?r[jo("0x13")]:!o.value;let c;r[jo("0x18")]||(r[jo("0x18")]=i[0][jo("0x18")]),c=a?Array[jo("0x1b")](x[jo("0x2")]())[jo("0x1")]((t=>{return Vo(t)||(e=t,n=s[jo("0x8")],!e.is(jo("0x14"))&&!n.isLimit(e)&&n[jo("0x11")](e.parent,"codeBlock"));var e,n})):Array.from(x[jo("0x2")]())[jo("0x1")]((t=>Vo(t)));const l=I(c,s);s[jo("0xf")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:jo("0x1f"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[jo("0x15")].registerElementLabel(jo("0x1f"),(t=>Ji(n,jo("0x7"),t))),e[jo("0x15")][jo("0xb")]((t=>{if("formatBlock"!=t[jo("0x1e")])return;const e=n.t,{data:o}=t;if(!o||jo("0x1f")!=o.commandName)return;const r=o[jo("0x19")][0][jo("0x18")],s=e(i[jo("0x9")]((t=>t[jo("0x18")]===r)).label).toLowerCase();return o[jo("0x19")][0][jo("0x13")]?{type:"format",content:Ji(n,jo("0xc"),Ji(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:jo("0x3"),content:Ji(n,"*Remove format:* %0",Ji(n,jo("0x7"),1))}}))}}function Vo(t){return"codeBlock"==t[jo("0x1c")]}const Ho=["has","CommentsEditing","afterInit","addCommentThread","enableCommand","plugins","get"];var zo,Wo;zo=Ho,Wo=412,function(t){for(;--t;)zo.push(zo.shift())}(++Wo);const Ko=function(t,e){return Ho[t-=0]};class qo extends t.Plugin{[Ko("0x3")](){const t=this.editor;t[Ko("0x6")][Ko("0x1")](Ko("0x2"))&&t[Ko("0x6")][Ko("0x0")]("TrackChangesEditing")[Ko("0x5")](Ko("0x4"))}}var $o=n(181);const Xo=["parent","span","markerRange","ck-suggestion-marker-","name","markerName","model","consumable","isBlock","isAtEnd","element","nextSibling","getWalker","hasAttribute","toViewElement","writer","elementEnd","listIndent","isLimit","get","getItems","insert","addClass","ck-suggestion-marker--active","TrackChangesEditing","mapper","createUIElement","item","listItem","previousPosition","push","type"];var Zo,Yo;Zo=Xo,Yo=258,function(t){for(;--t;)Zo.push(Zo.shift())}(++Yo);const Jo=function(t,e){return Xo[t-=0]};function Qo(t,e,n){const i=[];for(const o of e[Jo("0x12")]())o[Jo("0xb")](t)&&i[Jo("0x1c")](n.createRangeOn(o));return i}function tr(t,e,{showActiveMarker:n=!0}={}){const i=t.plugins[Jo("0x11")](Jo("0x16"));return(o,r,s)=>{if(!s[Jo("0x5")].test(r.markerRange,o[Jo("0x2")]))return;const x=r[Jo("0x0")][Jo("0xa")](),a=r[Jo("0x0")].start,c=t[Jo("0x4")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Jo("0x19")];d=d||c.isContent(e);const n=s.mapper[Jo("0xc")](e);if(n&&n.getCustomProperty("addHighlight"))return;Jo("0xe")==t[Jo("0x1d")]&&c[Jo("0x6")](e)&&!c[Jo("0x10")](e)&&(e.nextSibling||a[Jo("0x7")]?l&&l[Jo("0x1e")]==e||(l=e,f(t.previousPosition),g=!0):u=u||t[Jo("0x1b")])}function f(t){const o=s[Jo("0xd")][Jo("0x18")](Jo("0x1f"),{class:Jo("0x1")+e}),x=s[Jo("0x17")].toViewPosition(t);n&&i.activeMarkers.includes(r[Jo("0x3")])&&s[Jo("0xd")][Jo("0x14")](Jo("0x15"),o),s[Jo("0xd")][Jo("0x13")](x,o),s[Jo("0x17")].bindElementToMarker(o,r[Jo("0x3")])}d||g||!u||f(u)}}const er=["data","commands","forward","rootName","unit","init","buffer","remove","unbindElementFromMarkerName","get","plugins","enableCommand","document","bind","enqueueChange","start","setSelection","markerNameToElements","root","mapper","end","detach","markerName","unlock","merge","delete","addMarker:suggestion:deletion","removeMarker:suggestion:deletion","createRange","createSelection","writer","getFirstRange","modifySelection","model","lock","downcastDispatcher","batch","high","editing"];var nr,ir;nr=er,ir=455,function(t){for(;--t;)nr.push(nr.shift())}(++ir);const or=function(t,e){return er[t-=0]};class rr extends t.Plugin{static get requires(){return[$o.Delete]}[or("0x12")](){const t=this.editor,e=t[or("0x17")].get("TrackChangesEditing");e[or("0x18")](or("0x26"));const n=t[or("0xe")][or("0x16")]("deleteForward");e[or("0x18")]("deleteForward",((e,i={})=>{const o=t.model[or("0x3")](t[or("0x7")][or("0x19")].selection);o.isCollapsed&&t[or("0x7")][or("0x6")](o,{direction:or("0xf"),unit:i[or("0x11")]});const r=o[or("0x5")](),x=s.LiveRange.fromRange(r);let a;e(i),a="$graveyard"==x[or("0x1f")][or("0x10")]?t[or("0x7")].createRange(r.start):t[or("0x7")].createRange(x[or("0x1c")],x[or("0x21")]),x[or("0x22")](),t[or("0x7")][or("0x1b")](n[or("0x13")][or("0xa")],(t=>{n.buffer[or("0x8")](),t[or("0x1d")](t[or("0x2")](a[or("0x21")])),n[or("0x13")][or("0x24")]()}))})),t[or("0xc")][or("0x9")].on(or("0x0"),tr(t,or("0x25")),{priority:or("0xb")}),t[or("0xd")].downcastDispatcher.on("addMarker:suggestion:deletion",((e,n,i)=>{i.options.showSuggestionHighlights&&tr(t,or("0x25"),{showActiveMarker:!1})[or("0x1a")](this)(e,n,i)}),{priority:"high"}),t.editing[or("0x9")].on(or("0x1"),((t,e,n)=>{const i=n[or("0x20")][or("0x1e")](e.markerName);if(i)for(const t of i)t.is("uiElement")&&(n[or("0x20")][or("0x15")](t,e[or("0x23")]),n[or("0x4")][or("0x14")](t))}),{priority:or("0xb")})}}const sr=["isFirstBlockOfListItem","map","createRange","expandListBlocksToCompleteList","has","plugins","*Indent:* %0","from","accept","multipleBlocks","length","indentList","before","enableCommand","_descriptionFactory","createPositionAt","previousSibling","execute","commandParams","listIndent","splitListItemAfter","format","ELEMENT_","after","ELEMENT_LIST_ITEM","getAttribute","formatBlock","_suggestionFactory","fromRange","markMultiRangeBlockFormat","start","formatInline","getFirstRange","nodeAfter","next","getSelectedBlocks","get","listType","mergeListItemForward","commands","*Change to:* %0","push","refresh","change","markBlockFormat","config","ELEMENT_BULLETED_LIST","forceValue","list.multiBlock","isObject","containsItem","documentList","model","ListEditing","locale","numberedList","value","findIndex","commandName","TrackChangesEditing","listItemId","end","getRanges","outdentList","setSelection","selection","*Format:* insert into %0","splitListItemBefore","*Format:* remove from %0","*Merge:* %0","parent","_LIST","editor","deletion","document","bulletedList","type","mergeListItemBackward","detach","nextSibling","registerCustomCallback","schema"];var xr,ar;xr=sr,ar=239,function(t){for(;--t;)xr.push(xr.shift())}(++ar);const cr=function(t,e){return sr[t-=0]};class lr extends t.Plugin{afterInit(){const t=this[cr("0x4f")];if(!t[cr("0xc")][cr("0xb")](cr("0x3c")))return;const e=t[cr("0x3d")],n=t[cr("0xc")][cr("0x2b")](cr("0x42")),i=t[cr("0xc")][cr("0x2b")]("ListUtils");function o(e){return()=>{const o=t.commands[cr("0x2b")](e);if(o[cr("0x3f")]&&!t[cr("0x34")][cr("0x2b")](cr("0x37")))return void t[cr("0x18")]("paragraph",{});let r=Array[cr("0xe")](t[cr("0x3b")][cr("0x51")].selection[cr("0x2a")]());if(a(e)){r=i[cr("0xa")](r);const t=[];for(const e of r)i[cr("0x7")](e)&&t[cr("0x30")](e);r=t}t[cr("0x3b")][cr("0x32")]((()=>{n[cr("0x24")](r,{commandName:e,commandParams:[{forceValue:!o[cr("0x3f")]}],formatGroupId:cr("0x2c")},[],cr("0x3a"))}))}}function r(e){return()=>{const i=function(t){let e=Array.from(t);const n=e[cr("0x40")]((t=>!t.hasAttribute(cr("0x43"))));return n>-1&&(e=e.slice(0,n)),e}(t[cr("0x3b")][cr("0x51")][cr("0x48")][cr("0x2a")]()),o=i[i[cr("0x11")]-1],r=t[cr("0x3b")][cr("0x6")].isObject(o)?cr("0x1e"):cr("0x44"),s=t.model[cr("0x9")](t[cr("0x3b")][cr("0x16")](i[0],cr("0x13")),t.model.createPositionAt(o,r));t[cr("0x3b")][cr("0x32")]((()=>{n[cr("0x33")](s,{commandName:e,commandParams:[],formatGroupId:cr("0x2c")},function(t){const e=new Set;for(const n of t){let t=n[cr("0x4")];for(;t&&t[cr("0x20")](cr("0x1a"))>n[cr("0x20")](cr("0x1a"));)e.add(t),t=t[cr("0x4")]}return Array[cr("0xe")](e)}(i))}))}}function x(e){return()=>{const i=t[cr("0x3b")][cr("0x51")][cr("0x48")][cr("0x2a")]()[cr("0x29")]()[cr("0x3f")],o=t[cr("0x3b")][cr("0x16")](i,cr("0x13")),r=t[cr("0x3b")].createPositionAt(i,0),s=t.model[cr("0x9")](o,r);t[cr("0x3b")].change((()=>{n[cr("0x33")](s,{commandName:e,commandParams:[],formatGroupId:cr("0x2c")})}))}}function a(e){const n=t[cr("0x2e")][cr("0x2b")](cr("0x0"))[cr("0x3f")],i=t[cr("0x2e")][cr("0x2b")](cr("0x3e"))[cr("0x3f")];return cr("0x3e")===e?n:i}n.enableCommand(cr("0x3e"),o(cr("0x3e"))),n.enableCommand(cr("0x0"),o(cr("0x0"))),n[cr("0x14")](cr("0x12"),r(cr("0x12"))),n.enableCommand("outdentList",r("outdentList")),n[cr("0x14")](cr("0x1b"),x(cr("0x1b"))),n[cr("0x14")](cr("0x4a"),x(cr("0x4a"))),n[cr("0x15")].registerElementLabel((function(e){const n=!t[cr("0x3b")][cr("0x6")][cr("0x38")](e),i=e[cr("0x17")],o=e.nextSibling,r=e.getAttribute(cr("0x43")),s=!i||i[cr("0x20")](cr("0x43"))!==r,x=!o||o[cr("0x20")](cr("0x43"))!==r;return n&&Boolean(r)&&s&&x}),(t=>Ji(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory.registerDescriptionCallback((function(n){if(cr("0x21")!=n[cr("0x1")]&&cr("0x26")!=n[cr("0x1")])return;const{data:i}=n;if(!i)return;let o,r,s,x;switch(i.commandName){case cr("0x0"):s=i[cr("0x19")][0][cr("0x36")],x=a(i[cr("0x41")]),o=cr(s?"0x49":"0x4b"),!x&&t[cr("0x34")][cr("0x2b")](cr("0x37"))||(o="*Change to:* %0"),r={type:cr("0x1c"),content:Ji(e,o,Ji(e,cr("0x35")))};break;case cr("0x3e"):s=i[cr("0x19")][0].forceValue,x=a(i[cr("0x41")]),o=s?cr("0x49"):"*Format:* remove from %0",!x&&t[cr("0x34")][cr("0x2b")](cr("0x37"))||(o=cr("0x2f")),r={type:cr("0x1c"),content:Ji(e,o,Ji(e,"ELEMENT_NUMBERED_LIST"))};break;case"indentList":o=cr("0xd"),r={type:"format",content:Ji(e,o,Ji(e,cr("0x1f")))};break;case cr("0x46"):o=function(t){const e=t[cr("0x27")]();let n=e[cr("0x25")][cr("0x28")];for(;n&&e[cr("0x39")](n);){if(n[cr("0x20")](cr("0x1a"))>0)return!1;n=n.nextSibling}return!0}(n)?Ji(e,cr("0x4b"),Ji(e,function(t){const e=t[cr("0x27")]()[cr("0x25")][cr("0x28")];return cr("0x1d")+e[cr("0x20")]("listType").toUpperCase()+cr("0x4e")}(n))):Ji(e,"*Outdent:* %0",Ji(e,cr("0x1f"))),r={type:cr("0x1c"),content:o};break;case cr("0x2"):case cr("0x2d"):!1===i[cr("0x10")]&&(o=cr("0x4c"),r={type:cr("0x50"),content:Ji(e,o,Ji(e,cr("0x1f")))})}return r})),n[cr("0x22")][cr("0x5")](cr("0x21"),cr("0x3a"),cr("0xf"),(function(e,n){const i=[];for(let n of e)n[cr("0x25")].nodeAfter===n.end[cr("0x4d")]&&(n=t[cr("0x3b")][cr("0x9")](t[cr("0x3b")][cr("0x16")](n[cr("0x25")].nodeAfter,0))),i.push(n);t[cr("0x3b")][cr("0x32")]((e=>{const o=t.model.document[cr("0x48")],r=Array[cr("0xe")](o[cr("0x45")]())[cr("0x8")]((t=>s.LiveRange[cr("0x23")](t)));e[cr("0x47")](i),t[cr("0x2e")][cr("0x2b")](n[cr("0x41")])[cr("0x31")](),n[cr("0x19")][cr("0x30")]({forceDefaultExecution:!0}),t[cr("0x18")](n[cr("0x41")],...n[cr("0x19")]),e[cr("0x47")](r);for(const t of r)t[cr("0x3")]()}))}))}}const ur=["isFirstBlockOfListItem","model","formatInline","*Change to:* %0","listReversed","listStart","reversed","commandName","startIndex","_getTranslationKeyForListStyle","expandListBlocksToCompleteList","handleListStartCommand","ListUtils","selection","_getSuggestionBlocksForListStyle","get","getSelectedBlocks","ListPropertiesUtils","list.properties","getAttribute","isListItemBlock","plugins","TrackChangesEditing","styles","listStyle","bind","replace","from","handleListReversedCommand","numbered","locale","*Format:* set order to regular","push","length","*Format:* set order to reversed","registerDescriptionCallback","change","listType","ListPropertiesEditing","*Format:* set start index to %0","getListTypeFromListStyleType","_LIST_","markMultiRangeBlockFormat","_getSuggestionBlocks","document","commandParams","type","handleListStyleCommand","enableCommand","has","filter","editor","format"];var dr,gr;dr=ur,gr=101,function(t){for(;--t;)dr.push(dr.shift())}(++gr);const fr=function(t,e){return ur[t-=0]};class mr extends t.Plugin{afterInit(){if(!this[fr("0x3")][fr("0x1a")][fr("0x1")](fr("0x2b")))return;const t=this[fr("0x3")].config.get(fr("0x17")),e=this.editor[fr("0x1a")][fr("0x14")](fr("0x1b"));t[fr("0x1c")]&&e.enableCommand(fr("0x1d"),this.handleListStyleCommand.bind(this)),t[fr("0xb")]&&e.enableCommand(fr("0x9"),this.handleListReversedCommand[fr("0x1e")](this)),t[fr("0xd")]&&e[fr("0x0")](fr("0xa"),this[fr("0x10")][fr("0x1e")](this)),e._descriptionFactory[fr("0x28")](this.handleDescriptions[fr("0x1e")](this))}[fr("0x34")](t,e={}){const n=this[fr("0x3")][fr("0x1a")].get(fr("0x1b")),i=this[fr("0x13")]();this[fr("0x3")][fr("0x6")][fr("0x29")]((()=>{n[fr("0x2f")](i,{commandName:"listStyle",commandParams:[{type:e[fr("0x33")]}],formatGroupId:"listStyle"})}))}[fr("0x21")](t,e={}){const n=this[fr("0x3")].plugins[fr("0x14")]("TrackChangesEditing"),i=this.editor[fr("0x1a")][fr("0x14")](fr("0x11")),o=this._getSuggestionBlocks((t=>i.isListItemBlock(t)&&fr("0x22")===t[fr("0x18")](fr("0x2a"))));null!==o&&this[fr("0x3")].model[fr("0x29")]((()=>{n[fr("0x2f")](o,{commandName:fr("0x9"),commandParams:[{reversed:e.reversed}],formatGroupId:fr("0x9")})}))}handleListStartCommand(t,e={}){const n=this[fr("0x3")].plugins[fr("0x14")](fr("0x1b")),i=this[fr("0x3")][fr("0x1a")][fr("0x14")]("ListUtils"),o=this[fr("0x30")]((t=>i[fr("0x19")](t)&&fr("0x22")===t[fr("0x18")](fr("0x2a"))));null!==o&&this[fr("0x3")].model[fr("0x29")]((()=>{n[fr("0x2f")](o,{commandName:fr("0xa"),commandParams:[{startIndex:e.startIndex}],formatGroupId:fr("0xa")})}))}handleDescriptions(t){if("formatBlock"!=t.type&&fr("0x7")!=t[fr("0x33")])return;const e=this[fr("0x3")][fr("0x23")],{data:n}=t;if(!n)return;let i,o;switch(n[fr("0xc")]){case fr("0x1d"):i=fr("0x8"),o={type:fr("0x4"),content:Ji(e,i,Ji(e,this._getTranslationKeyForListStyle(n[fr("0x32")][0][fr("0x33")])))};break;case"listReversed":i=n.commandParams[0][fr("0xb")]?fr("0x27"):fr("0x24"),o={type:fr("0x4"),content:Ji(e,i)};break;case"listStart":i=fr("0x2c"),o={type:"format",content:Ji(e,i,n[fr("0x32")][0][fr("0xd")])}}return o}_getSuggestionBlocksForListStyle(){const t=this.editor.plugins[fr("0x14")](fr("0x11"));let e=Array[fr("0x20")](this[fr("0x3")][fr("0x6")][fr("0x31")][fr("0x12")][fr("0x15")]());return e[fr("0x25")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}[fr("0x30")](t){const e=this[fr("0x3")][fr("0x1a")][fr("0x14")](fr("0x11"));let n=Array[fr("0x20")](this.editor[fr("0x6")].document[fr("0x12")][fr("0x15")]())[fr("0x2")](t);if(!n[fr("0x26")])return null;n=e[fr("0xf")](n);const i=[];for(const t of n)e[fr("0x5")](t)&&i[fr("0x25")](t);return i}[fr("0xe")](t){return"ELEMENT_"+this[fr("0x3")][fr("0x1a")][fr("0x14")](fr("0x16"))[fr("0x2d")](t).toUpperCase()+fr("0x2e")+t.toUpperCase()[fr("0x1f")](/-/g,"_")}}var hr=n(331);const br=["detach","enterBlock","addMarker:suggestion:insertion","commands","getFirstPosition","downcastDispatcher","init","createRange","editing","mapper","showSuggestionHighlights","editor","ck-suggestion-marker-split","unbindElementFromMarkerName","markerName","options","parent","bind","requires","selection","change","removeMarker:suggestion:insertion","plugins","end","getFirstRange","high","enter","data","setSelection","nextSibling","get","fromRange","hasClass","writer","TrackChangesEditing","document","model","split"];var pr,Er;pr=br,Er=294,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("0x1c")](){return[hr.Enter]}[_r("0x10")](){const t=this[_r("0x15")],e=t[_r("0x20")][_r("0x2")](_r("0x6")),n=t[_r("0xd")].get(_r("0x24"));e.enableCommand(_r("0x24"),(()=>{t[_r("0x8")][_r("0x1e")]((i=>{const o=t[_r("0x8")][_r("0x7")][_r("0x1d")],r=o[_r("0xe")](),x=s.LiveRange[_r("0x3")](o[_r("0x22")]());if(n[_r("0xb")](i)){const n=t[_r("0x8")].createPositionAt(r[_r("0x1a")][_r("0x1")],0),o=i[_r("0x11")](r,n);e.markInsertion(o)}else i[_r("0x0")](i[_r("0x11")](x[_r("0x21")]));x[_r("0xa")](),n.fire("afterExecute",{writer:i})}))})),t[_r("0x12")][_r("0xf")].on(_r("0xc"),tr(t,_r("0x9")),{priority:"high"}),t[_r("0x12")].downcastDispatcher.on(_r("0x1f"),((t,e,n)=>{const i=n[_r("0x13")].markerNameToElements(e[_r("0x18")]);if(i)for(const t of i)t[_r("0x4")](_r("0x16"))&&(n.mapper[_r("0x17")](t,e[_r("0x18")]),n[_r("0x5")].remove(t))}),{priority:_r("0x23")}),t[_r("0x25")][_r("0xf")].on(_r("0xc"),((e,n,i)=>{i[_r("0x19")][_r("0x14")]&&tr(t,_r("0x9"),{showActiveMarker:!1})[_r("0x1b")](this)(e,n,i)}),{priority:_r("0x23")})}}const yr=["enableCommand","end","suggestion:deletion","bind","filter","findPrevious","FindAndReplaceUtils","createRange","editor","item","getMarkersGroup","getRange","afterInit","_isInDeletionRange","replace","FindAndReplaceEditing","replaceAll","markers","has","plugins","getIntersection","get","TrackChangesEditing","string","findNext","handleFindCommand","findByTextCallback"];var Cr,Ar;Cr=yr,Ar=295,function(t){for(;--t;)Cr.push(Cr.shift())}(++Ar);const kr=function(t,e){return yr[t-=0]};class Sr extends t.Plugin{[kr("0xe")](){if(!this.editor.plugins[kr("0x14")](kr("0x11")))return;const t=this[kr("0xa")][kr("0x15")][kr("0x17")](kr("0x18"));t[kr("0x2")]("find",this[kr("0x0")][kr("0x5")](this)),t[kr("0x2")](kr("0x1a")),t.enableCommand(kr("0x7")),t.enableCommand(kr("0x10")),t[kr("0x2")](kr("0x12"))}[kr("0x0")](t,e,n={}){const i=this[kr("0xa")][kr("0x15")][kr("0x17")](kr("0x8"));return t((t=>(kr("0x19")==typeof e?i[kr("0x1")](e,n):e)(t)[kr("0x6")]((e=>!1===this[kr("0xf")](e,t[kr("0xb")])))),n)}[kr("0xf")](t,e){const n=this.editor.model[kr("0x9")](this[kr("0xa")].model.createPositionAt(e,t.start),this[kr("0xa")].model.createPositionAt(e,t[kr("0x3")]));for(const t of this[kr("0xa")].model[kr("0x13")][kr("0xc")](kr("0x4")))if(null!==n[kr("0x16")](t[kr("0xd")]()))return!0;return!1}}const Rr=["_enableDefaultAttributesIntegration","TrackChangesEditing","label","fontSize","FontColorEditing","*Set font color:* %0","plugins","fontColor","format","*Set font background color:* %0","normalizeSizeOptions","trim","_descriptionFactory","FORMAT_FONT_BACKGROUND","FORMAT_FONT_SIZE","value","fontFamily","model","editor","*Set font family:* %0","type","find","FontSize","*Reset font family*","registerAttributeLabel","FontBackgroundColorEditing","commandParams","registerDescriptionCallback","commandName","has","afterInit","*Set font size:* %0","config","_registerLegacyDescription","FontFamilyEditing","FontSizeEditing","get","toLowerCase","fontBackgroundColor"];var Ir,vr;Ir=Rr,vr=443,function(t){for(;--t;)Ir.push(Ir.shift())}(++vr);const Lr=function(t,e){return Rr[t-=0]},Nr=[{pluginName:Lr("0x15"),commandName:Lr("0x1c")},{pluginName:Lr("0x14"),commandName:Lr("0x2")},{pluginName:Lr("0x1d"),commandName:Lr("0x20")},{pluginName:Lr("0xb"),commandName:Lr("0x18")}];class Mr extends t.Plugin{[Lr("0x10")](){const t=this.editor.locale,e=this[Lr("0x4")].plugins[Lr("0x16")](Lr("0x1a"));for(const{pluginName:t,commandName:n}of Nr)this[Lr("0x4")].plugins[Lr("0xf")](t)&&e[Lr("0x19")](n,[n]);t.t,e._descriptionFactory[Lr("0xa")](Lr("0x1c"),Ji(t,Lr("0x0"))),e[Lr("0x25")].registerAttributeLabel(Lr("0x2"),Ji(t,"FORMAT_FONT_FAMILY")),e._descriptionFactory[Lr("0xa")]("fontColor",Ji(t,"FORMAT_FONT_COLOR")),e[Lr("0x25")].registerAttributeLabel(Lr("0x18"),Ji(t,Lr("0x26"))),this[Lr("0x13")]()}[Lr("0x13")](){const t=this.editor,e=t.locale;t[Lr("0x1f")][Lr("0x16")]("TrackChangesEditing")._descriptionFactory[Lr("0xd")]((t=>{const n=e.t;if("formatInline"!=t[Lr("0x6")])return;const{data:i}=t;if(null!=i){if(Lr("0x1c")==i.commandName){const t=i[Lr("0xc")][0].value;if(t){const i=n(this[Lr("0x4")].plugins[Lr("0x16")](Lr("0x8"))[Lr("0x23")](this[Lr("0x4")][Lr("0x12")][Lr("0x16")]("fontSize.options"))[Lr("0x7")]((e=>e[Lr("0x3")]==t)).title)[Lr("0x17")]();return{type:Lr("0x21"),content:Ji(e,Lr("0x11"),i)}}return{type:Lr("0x21"),content:Ji(e,"*Reset font size*")}}if("fontFamily"==i[Lr("0xe")]){const t=i[Lr("0xc")][0][Lr("0x1")];return t?{type:Lr("0x21"),content:Ji(e,Lr("0x5"),t)}:{type:Lr("0x21"),content:Ji(e,Lr("0x9"))}}if(Lr("0x20")==i[Lr("0xe")]){const t=i[Lr("0xc")][0][Lr("0x1")];if(t){const i=(0,o.normalizeColorOptions)(this[Lr("0x4")][Lr("0x12")][Lr("0x16")]("fontColor.colors"))[Lr("0x7")]((e=>e[Lr("0x3")]==t));let r=t,s="";return i&&(r=i[Lr("0x1b")],s=n(r).toLowerCase()),{type:Lr("0x21"),content:Ji(e,Lr("0x1e"),s).trim(),color:{value:t,title:s||r}}}return{type:"format",content:Ji(e,"*Reset font color*")}}if(Lr("0x18")==i[Lr("0xe")]){const t=i[Lr("0xc")][0][Lr("0x1")];if(t){const i=(0,o.normalizeColorOptions)(this[Lr("0x4")][Lr("0x12")][Lr("0x16")]("fontBackgroundColor.colors"))[Lr("0x7")]((e=>e.model==t));let r=t,s="";return i&&(r=i[Lr("0x1b")],s=n(r)[Lr("0x17")]()),{type:Lr("0x21"),content:Ji(e,Lr("0x22"),s)[Lr("0x24")](),color:{value:t,title:s||r}}}return{type:"format",content:Ji(e,"*Reset font background color*")}}}}))}}const wr=["get","slice","join","boolean","*Set format to:* %0","*Remove all formatting*","commandParams","registerDescriptionCallback","editor","locale","type","fontColor.colors","toUpperCase","fontColor","pasteFormat","charAt","label","_registerLegacyDescription","model","length","fontSize","format","commands","entries","TrackChangesEditing","plugins","afterInit","commandName","find","push","formatInline","normalizeSizeOptions","toLowerCase","fontBackgroundColor","split","FontSize","copyFormat","formatBlock","config"];var Or,Fr;Or=wr,Fr=150,function(t){for(;--t;)Or.push(Or.shift())}(++Fr);const Dr=function(t,e){return wr[t-=0]};class Br extends t.Plugin{[Dr("0x20")](){const t=this[Dr("0xe")],e=t[Dr("0x1f")][Dr("0x6")](Dr("0x1e")),n=t[Dr("0x1c")].get(Dr("0x3")),i=t.commands[Dr("0x6")](Dr("0x14"));n&&i&&(e._enableDefaultAttributesIntegration(Dr("0x14")),e.enableCommand(Dr("0x3")),this[Dr("0x17")]())}[Dr("0x17")](){const t=this[Dr("0xe")],e=t[Dr("0xf")];t[Dr("0x1f")][Dr("0x6")](Dr("0x1e"))._descriptionFactory[Dr("0xd")]((n=>{if(Dr("0x4")!=n.type&&Dr("0x24")!=n[Dr("0x10")])return;const{data:i}=n;if(i&&Dr("0x14")===i[Dr("0x21")]){const n=[],o=i[Dr("0xc")][0];for(const[e,i]of Object[Dr("0x1d")](o))n[Dr("0x23")](Pr(t,e,i));return n[Dr("0x19")]?{type:Dr("0x1b"),content:Ji(e,Dr("0xa"),n[Dr("0x8")](", "))}:{type:Dr("0x1b"),content:Ji(e,Dr("0xb"))}}}))}}function Pr(t,e,n){const i=t.locale.t,r=e[Dr("0x1")](/(?=[A-Z])/)[Dr("0x8")](" "),s=i(r[Dr("0x15")](0)[Dr("0x12")]()+r[Dr("0x7")](1))[Dr("0x26")]();if(Dr("0x9")==typeof n)return s;if(Dr("0x13")===e||Dr("0x0")===e){const e=(0,o.normalizeColorOptions)(t.config.get(Dr("0x11")))[Dr("0x22")]((t=>t[Dr("0x18")]==n));return s+" ("+(e?i(e[Dr("0x16")])[Dr("0x26")]():n)+")"}if(Dr("0x1a")===e&&isNaN(parseFloat(n))){const e=t[Dr("0x1f")][Dr("0x6")](Dr("0x2"))[Dr("0x25")](t[Dr("0x5")].get("fontSize.options"))[Dr("0x22")]((t=>t[Dr("0x18")]==n));return s+" ("+(e?i(e.title).toLowerCase():n)+")"}return s+" ("+n+")"}const Ur=["format","heading","get","find","editor","*Change to:* %0","model","plugins","match","_descriptionFactory","commandName","TrackChangesEditing","heading.options","ELEMENT_HEADING_CUSTOM","commandParams","_headingOptions","view","formatBlock","afterInit","config","_registerLegacyDescription","paragraph","name","registerDescriptionCallback","ELEMENT_HEADING","has","title"];var jr,Gr;jr=Ur,Gr=417,function(t){for(;--t;)jr.push(jr.shift())}(++Gr);const Vr=function(t,e){return Ur[t-=0]};class Hr extends t.Plugin{[Vr("0x6")](){const t=this.editor;if(!t[Vr("0x16")][Vr("0xd")]("HeadingEditing"))return;this[Vr("0x3")]=t[Vr("0x7")].get(Vr("0x0"));const e=t.locale,n=t[Vr("0x16")][Vr("0x11")](Vr("0x1a"));n._enableDefaultAttributesIntegration(Vr("0x10"));for(const t of this[Vr("0x3")])Vr("0x9")!=t.model&&n[Vr("0x18")].registerElementLabel(t.model,(n=>{const i=this._getHeadingLevel(t[Vr("0x15")]);return null!==i?(s=n,x=i,Ji(e,Vr("0xc"),[s,x])):(o=n,r=t[Vr("0xe")],Ji(e,Vr("0x1"),[o,r]));var o,r,s,x}));this[Vr("0x8")]()}[Vr("0x8")](){const t=this[Vr("0x13")],e=t.locale;t.plugins.get(Vr("0x1a"))._descriptionFactory[Vr("0xb")]((t=>{if(Vr("0x5")!=t.type)return;const{data:n}=t;if(n&&"heading"==n[Vr("0x19")]){const t=n[Vr("0x2")][0].value,s=this._getHeadingLevel(t);if(null!==s)return{type:Vr("0xf"),content:Ji(e,Vr("0x14"),(1,r=s,Ji(e,Vr("0xc"),[1,r])))};const x=this._headingOptions[Vr("0x12")]((e=>e[Vr("0x15")]===t))[Vr("0xe")];return{type:"format",content:Ji(e,Vr("0x14"),(i=1,o=x,Ji(e,Vr("0x1"),[i,o])))}}var i,o,r}))}_getHeadingLevel(t){var e,n;const i=t[Vr("0x17")](/^heading(\d+)/);if(i)return i[1];const o=null===(e=this[Vr("0x3")])||void 0===e?void 0:e[Vr("0x12")]((e=>e[Vr("0x15")]==t));if(o&&o.view){const t=o[Vr("0x4")],e=(null!==(n=t[Vr("0xa")])&&void 0!==n?n:t)[Vr("0x17")](/^h(\d+)/);if(e)return e[1]}return null}}const zr=["get","registerDescriptionCallback","editor","color","title","config","_enableDefaultAttributesIntegration","afterInit","has","TrackChangesEditing","format","find","FORMAT_HIGHLIGHT","locale","model","highlight","_descriptionFactory","toLowerCase","formatInline","_registerLegacyDescription","plugins","commandParams","registerAttributeLabel","highlight.options"];var Wr,Kr;Wr=zr,Kr=289,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};class $r extends t.Plugin{[qr("0x6")](){const t=this[qr("0x1")];if(!t[qr("0x13")][qr("0x7")]("HighlightEditing"))return;const e=t[qr("0x13")].get(qr("0x8")),n=t[qr("0xc")];e[qr("0x5")](qr("0xe"),[qr("0xe")]),e[qr("0xf")][qr("0x15")](qr("0xe"),Ji(n,"FORMAT_HIGHLIGHT")),this[qr("0x12")]()}_registerLegacyDescription(){const t=this[qr("0x1")],e=t[qr("0xc")];t[qr("0x13")][qr("0x17")](qr("0x8"))[qr("0xf")][qr("0x0")]((n=>{if(qr("0x11")!=n.type)return;const{data:i}=n;if(i&&qr("0xe")==i.commandName){const n=e.t,o=i[qr("0x14")][0].value;if(o){const i=t[qr("0x4")].get(qr("0x16"))[qr("0xa")]((t=>t[qr("0xd")]==o)),r=n(i[qr("0x3")])[qr("0x10")]();return{type:qr("0x9"),content:Ji(e,"*Set highlight:* %0",r),color:{value:i[qr("0x2")],title:i[qr("0x3")]}}}return{type:"format",content:Ji(e,"*Remove highlight*",Ji(e,qr("0xb")))}}}))}}const Xr=["get","insert","dataDowncast","plugins","locale","for","enableCommand","has","addClass","editor","createEmptyElement","ck-horizontal-line","createContainerElement","HorizontalLineEditing","_descriptionFactory","div","afterInit","horizontalLine"];var Zr,Yr;Zr=Xr,Yr=288,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const Jr=function(t,e){return Xr[t-=0]};class Qr extends t.Plugin{[Jr("0x10")](){const t=this[Jr("0x9")];if(!t[Jr("0x3")][Jr("0x7")](Jr("0xd")))return;t[Jr("0x3")].get("TrackChangesEditing")[Jr("0x6")](Jr("0x11"));const e=t[Jr("0x3")][Jr("0x0")]("TrackChangesEditing"),n=t[Jr("0x4")];e[Jr("0xe")].registerElementLabel("horizontalLine",(t=>Ji(n,"ELEMENT_HORIZONTAL_LINE",t))),t.conversion[Jr("0x5")](Jr("0x2")).elementToStructure({model:Jr("0x11"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const i=e[Jr("0xc")](Jr("0xf")),o=e[Jr("0xa")]("hr");return e[Jr("0x8")](Jr("0xb"),i),e[Jr("0x1")](e.createPositionAt(i,0),o),i},converterPriority:"high"})}}const ts=["rawHtml","htmlEmbed","_enableDefaultAttributesIntegration","nodeAfter","_registerLegacyDescription","registerElementLabel","plugins","value","formatBlock","commandName","ELEMENT_HTML_EMBED","start","locale","_descriptionFactory","key","afterInit","attribute","TrackChangesEditing","get","*Change %0 content*","getFirstRange","type"];var es,ns;es=ts,ns=313,function(t){for(;--t;)es.push(es.shift())}(++ns);const is=function(t,e){return ts[t-=0]};class os extends t.Plugin{[is("0xa")](){const t=this.editor;if(!t[is("0x1")].has("HtmlEmbed"))return;const e=t.plugins[is("0xd")]("TrackChangesEditing"),n=t[is("0x7")];e[is("0x8")][is("0x0")](is("0x11"),(t=>Ji(n,is("0x5"),t))),e[is("0x13")](is("0x12"),[],[is("0x2")]),e[is("0x8")].registerDescriptionCallback((t=>{if(is("0xb")!=t[is("0x10")])return;const{data:e}=t;if(e&&is("0x2")==e[is("0x9")]&&t[is("0xf")]()[is("0x6")][is("0x14")].is("element","rawHtml")){const t=Ji(n,is("0x5"));return{type:"format",content:Ji(n,is("0xe"),t)}}})),this[is("0x15")]()}[is("0x15")](){const t=this.editor,e=t[is("0x7")];t.plugins[is("0xd")](is("0xc"))._descriptionFactory.registerDescriptionCallback((t=>{if(is("0x3")!=t.type)return;const{data:n}=t;if(n&&is("0x12")==n[is("0x4")]){const t=Ji(e,is("0x5"));return{type:"format",content:Ji(e,is("0xe"),t)}}}))}}const rs=["fromPosition","find","previous","chain","ImageEditing","registerCustomCallback","insertImage","formatInline","length","_descriptionFactory","imageCaption","createRange","change","selection","markBlockFormat","discard","getNearestSelectionRange","nodeAfter","accept","getSuggestionCallback","isIntersecting","schema","ELEMENT_IMAGE","isEqual","getContainedElement","alt","removeObject","ImageInlineEditing","getFirstRange","format","toPrevious","imageTypeInline","element","getClosestSelectedImageElement","model","convertBlockImageToInline","get","plugins","convertInlineImageToBlock","_findSuggestions","backward","markInsertion","imageTextAlternative","isOwn","createRangeOn","imageStylePreApply","*Set image text alternative:* %0","has","registerDescriptionCallback","ImageUtils","markDeletion","join","ImageBlockEditing","detach","insertion","ImageCaptionEditing","Block image to inline image","imageBlock","document","commandParams","*Remove image text alternative*","_registerLegacyDescription","type","enableCommand","formatBlock","afterInit","addObject","newValue","isBlockImage","getCaptionFromImageModelElement","isBefore","forward","forceDefaultExecution","start","filter","end","ImageCaptionUtils","caption","resizedWidth","toggleImageCaption","*Reset image width*","editor","registerElementLabel","deletion","_enableDefaultAttributesIntegration","locale","findIndex","ELEMENT_INLINE_IMAGE","imageInline","subType","_suggestionFactory","registerAttributeLabel","FORMAT_IMAGE_SIZE","TrackChangesEditing"];var ss,xs;ss=rs,xs=230,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x17")](){const t=this[as("0x27")];if(!t[as("0x59")].has(as("0x38")))return;const e=t[as("0x59")][as("0x58")](as("0x33")),n=t.plugins[as("0x58")](as("0x7")),i=t[as("0x2b")];e[as("0x15")](as("0x3a")),e[as("0x3d")].registerElementLabel(as("0xf"),(t=>Ji(i,as("0x4a"),t))),e[as("0x3d")].registerElementLabel(as("0x2e"),(t=>Ji(i,as("0x2d"),t))),e[as("0x3d")][as("0x28")](as("0x23"),(()=>Ji(i,"ELEMENT_CAPTION"))),t[as("0x59")].has("ImageUploadEditing")&&e[as("0x15")]("uploadImage"),t[as("0x59")][as("0x5")](as("0xa"))&&t[as("0x59")][as("0x5")](as("0x4f"))&&(e[as("0x15")](as("0x53"),((i,o)=>{const r=n[as("0x55")](t[as("0x56")][as("0x10")][as("0x41")]);t[as("0x56")][as("0x40")]((()=>{e[as("0x42")](r,{commandName:as("0x53"),commandParams:[o]},[],as("0x57"))}))})),e.enableCommand("imageTypeBlock",((i,o)=>{t.model[as("0x40")]((r=>{let x=n[as("0x55")](t[as("0x56")][as("0x10")][as("0x41")]),a=r[as("0x2")](x);const c=s.LivePosition[as("0x34")](a[as("0x1f")],as("0x52")),l=s.LivePosition[as("0x34")](a[as("0x21")],"toNext");e[as("0x1e")]((()=>i(o))),x=n[as("0x55")](t[as("0x56")][as("0x10")][as("0x41")]),a=r[as("0x2")](x);const u=r[as("0x3f")](c,l);c[as("0xb")](),l[as("0xb")](),e[as("0x42")](x,{commandName:as("0x53"),commandParams:[o]},[],as("0x5a")),u[as("0x1f")][as("0x1c")](a.start)&&e.markInsertion(r[as("0x3f")](u.start,a[as("0x1f")]),as("0x5a")),a.end[as("0x1c")](u[as("0x21")])&&e[as("0x5d")](r[as("0x3f")](a[as("0x21")],u[as("0x21")]),as("0x5a"))}))})),e[as("0x30")][as("0x39")](as("0x16"),as("0x5a"),as("0x9"),(()=>!1)),e[as("0x30")][as("0x39")](as("0x16"),as("0x5a"),"accept",(()=>!1)),e[as("0x30")][as("0x39")](as("0x16"),as("0x5a"),as("0x43"),e[as("0x30")][as("0x47")]("formatBlock","",as("0x46"))),e[as("0x30")].registerCustomCallback(as("0xc"),as("0x5a"),as("0x9"),(()=>!1)),e[as("0x30")][as("0x39")](as("0xc"),"convertInlineImageToBlock",as("0x43"),(([n])=>{const i=e[as("0x30")][as("0x47")](as("0xc"),"",as("0x43"));let o=n[as("0x1f")],r=n[as("0x21")];const s=t.model.schema[as("0x44")](o,as("0x5c")),x=t[as("0x56")][as("0x49")][as("0x44")](r,as("0x1d"));s.isCollapsed&&(o=s[as("0x1f")]),x.isCollapsed&&(r=x[as("0x21")]),i([t[as("0x56")][as("0x3f")](o,r)])})),e[as("0x30")][as("0x39")](as("0x16"),as("0x5a"),as("0x37"),x),e._suggestionFactory[as("0x39")](as("0xc"),"convertInlineImageToBlock","chain",x)),t.plugins[as("0x5")](as("0xd"))&&(e[as("0x15")](as("0x25"),((i,o)=>{const r=t.plugins.get(as("0x22"));let s=n.getClosestSelectedImageElement(t[as("0x56")][as("0x10")].selection),x=r[as("0x1b")](s);t[as("0x56")][as("0x40")]((()=>{if(x)return void e[as("0x8")](t[as("0x56")][as("0x2")](x));const a=n[as("0x1a")](s);i(o),s=n.getClosestSelectedImageElement(t[as("0x56")].document[as("0x41")]),x=r[as("0x1b")](s),e[as("0x5d")](t.model[as("0x2")](x),a?null:"imageCaption")}))})),e[as("0x30")][as("0x39")](as("0xc"),as("0x3e"),"chain",x));const o=[{type:as("0x16"),subType:as("0x3")},{type:as("0xc"),subType:as("0x3e")},{type:as("0x16"),subType:"convertInlineImageToBlock"},{type:as("0xc"),subType:as("0x5a")}];function r(t,i){const r=o[as("0x2c")]((({type:e,subType:n})=>t[as("0x14")]==e&&t.subType==n)),s=o[as("0x2c")]((({type:t,subType:e})=>i.type==t&&i.subType==e));if(r<0||s<0)return!1;const x=t[as("0x50")](),a=i[as("0x50")]();if((0==r||1==r)&&2==s&&x[as("0x48")](a))return!0;if(2==r&&3==s){const t=e[as("0x5b")](x,as("0xc"))[as("0x20")]((({suggestion:t,meta:e})=>e[as("0x1")]&&as("0x5a")==t[as("0x2f")]));if(t[as("0x3c")]>1&&a[as("0x21")].isEqual(x[as("0x1f")]))return!0;if(1==t[as("0x3c")]&&(x[as("0x1f")][as("0x4b")](a[as("0x21")])||x[as("0x21")][as("0x4b")](a[as("0x1f")])))return!0}if(3==r&&3==s&&x[as("0x1f")][as("0x1c")](a[as("0x1f")])){const t=x.end[as("0x45")],e=a.start.nodeBefore;return n[as("0x1a")](t)&&t===e}return!1}function x(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}t[as("0x59")][as("0x5")]("ImageResize")&&(e[as("0x2a")]("resizeImage",[],[as("0x24")]),e[as("0x3d")][as("0x31")](as("0x24"),Ji(i,as("0x32")))),t[as("0x59")][as("0x5")]("ImageTextAlternativeEditing")&&e[as("0x2a")]("imageTextAlternative",[],[as("0x4d")]),e[as("0x3d")][as("0x6")]((t=>{if(o[as("0x35")]((({type:e,subType:n})=>t.type==e&&t.subType==n)))return t[as("0x36")]?{}:void 0})),e._descriptionFactory[as("0x6")]((t=>{if("insertion"==t[as("0x14")]||as("0x29")==t[as("0x14")]){const e=t[as("0x4c")]();if(e&&e.is(as("0x54"),"caption"))return{type:as("0xc")==t[as("0x14")]?as("0x18"):as("0x4e"),element:e,quantity:1}}})),e[as("0x3d")][as("0x6")]((t=>"formatBlock"==t[as("0x14")]&&as("0x5a")==t.subType?{type:as("0x51"),content:"Inline image to block image"}:as("0x16")==t[as("0x14")]&&as("0x57")==t[as("0x2f")]?{type:as("0x51"),content:as("0xe")}:void 0)),e[as("0x3d")][as("0x6")]((t=>{if("attribute"!=t[as("0x14")])return;const{data:e}=t;if(!e||"alt"!=e.key)return;const n=e[as("0x19")];return n?{type:as("0x51"),content:Ji(i,as("0x4"),'"'+n+'"')}:{type:as("0x51"),content:Ji(i,as("0x12"))}})),this[as("0x13")]()}[as("0x13")](){const t=this[as("0x27")],e=t[as("0x2b")];t[as("0x59")][as("0x58")](as("0x33"))[as("0x3d")][as("0x6")]((t=>{if(as("0x16")!=t[as("0x14")]&&as("0x3b")!=t.type)return;const{data:n}=t;if(n){if(as("0x0")==n.commandName){const t=n.commandParams[0][as("0x19")];return t?{type:as("0x51"),content:Ji(e,"*Set image text alternative:* %0",'"'+t+'"')}:{type:as("0x51"),content:Ji(e,as("0x12"))}}if("resizeImage"==n.commandName){const t=n[as("0x11")][0].width;return t?{type:as("0x51"),content:Ji(e,"*Set image width:* %0",t)}:{type:as("0x51"),content:Ji(e,as("0x26"))}}}}))}}const ls=["ImageEditing","*Replace image URL*","locale","formatBlock","commandName","format","getSuggestionCallback","_suggestionFactory","get","type","formatInline","src","key","newValue","accept","plugins","replaceImageSource","_handleLegacySuggestions","attribute","_registerLegacyDescription","_enableDefaultAttributesIntegration","registerCustomCallback","registerDescriptionCallback","*Format:* replace image URL","TrackChangesEditing","editor","discard"];var us,ds;us=ls,ds=272,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("0x17")][gs("0xd")].has(gs("0x19")))return;const t=this[gs("0x17")][gs("0x0")],e=this[gs("0x17")].plugins.get(gs("0x16"));e[gs("0x12")](gs("0xe"),[],["src"]),e._descriptionFactory.registerDescriptionCallback((e=>{if(gs("0x10")!=e[gs("0x7")])return;const{data:n}=e;return n&&gs("0x9")==n[gs("0xa")]?n[gs("0xb")]&&n.oldValue?{type:"format",content:Ji(t,gs("0x1a"))}:{type:gs("0x3"),content:""}:void 0})),this[gs("0xf")]()}[gs("0xf")](){const t=this[gs("0x17")].plugins.get(gs("0x16"));t[gs("0x5")][gs("0x13")]("formatBlock","replaceImageSource",gs("0xc"),t[gs("0x5")].getSuggestionCallback(gs("0x1"),null,gs("0x18"))),t[gs("0x5")].registerCustomCallback(gs("0x1"),"replaceImageSource",gs("0x18"),t._suggestionFactory[gs("0x4")](gs("0x1"),null,gs("0xc"))),this[gs("0x11")]()}[gs("0x11")](){const t=this[gs("0x17")],e=t[gs("0x0")];t[gs("0xd")][gs("0x6")](gs("0x16"))._descriptionFactory[gs("0x14")]((t=>{if("formatBlock"!=t[gs("0x7")]&&gs("0x8")!=t[gs("0x7")])return;const{data:n}=t;return n&&"replaceImageSource"==n[gs("0x2")]?{type:gs("0x3"),content:Ji(e,gs("0x15"))}:void 0}))}}const ms=["enableCommand","setImageNaturalSizeAttributes","isOwn","locale","getClosestSelectedImageElement","subType","getSuggestion","end","imageStyle","ImageUtils","commandReversedParams","commands","_descriptionFactory","commandName","imageTypeBlock","getChangedMarkers","TrackChangesEditing","accept","discard","formatBlock","filter","toLowerCase","shouldConvertImageType","change","discardSuggestion","getContainedElement","_suggestionFactory","isInlineImage","isEqual","convertInlineImageToBlock","model","commandParams","format","document","refresh","selection","imageStylePreApply","has","getSuggestionCallback","imageCaption","formatInline","side","isInContent","next","createRangeOn","isIntersecting","imageStylePostApply","isBlockImage","get","markInlineFormat","imageTypeInline","registerDescriptionCallback","join","getSuggestions","nodeAfter","registerPostFixer","from","ImageStyleEditing","value","getFirstRange","type","chain","title","markBlockFormat","start","nodeBefore","insertion","afterInit","findIndex","*Format:* %0","plugins","name","FORMAT_SIDE_IMAGE","_registerLegacyDescription","length","isBefore","newRange","forEach","registerCustomCallback","author","editor"];var hs,bs;hs=ms,bs=250,function(t){for(;--t;)hs.push(hs.shift())}(++bs);const ps=function(t,e){return ms[t-=0]};class Es extends t.Plugin{[ps("0x3c")](){const t=this[ps("0x49")];if(!t[ps("0x3f")][ps("0x1e")]("ImageStyleEditing"))return;const n=t[ps("0x3f")][ps("0x29")](ps("0x9")),i=t.plugins[ps("0x29")](ps("0x2")),o={};n[ps("0x4a")](ps("0x1"),((o,r)=>{const s=t[ps("0x3f")][ps("0x29")]("Users").me,x=t[ps("0x4")].get(ps("0x1"));let a=i[ps("0x4e")](t[ps("0x17")][ps("0x1a")][ps("0x1c")]),c=t.model[ps("0x25")](a),l=x.value;if(l==r[ps("0x33")])return;const u={commandName:ps("0x1"),commandParams:[r],formatGroupId:(0,e.uid)()};t[ps("0x17")][ps("0x10")]((()=>{if(n[ps("0x2e")]()[ps("0xd")]((t=>t[ps("0x23")]&&s==t[ps("0x48")]&&("formatBlock"==t[ps("0x35")]||ps("0x21")==t.type)&&("imageStylePreApply"==t[ps("0x4f")]||ps("0x27")==t[ps("0x4f")])&&t.getFirstRange().isEqual(c)))[ps("0x46")]((t=>n[ps("0x11")](t.head))),a=i[ps("0x4e")](t[ps("0x17")][ps("0x1a")][ps("0x1c")]),c=t[ps("0x17")][ps("0x25")](a),x[ps("0x1b")](),t[ps("0x4")][ps("0x29")](ps("0x2b"))[ps("0x1b")](),t[ps("0x4")][ps("0x29")](ps("0x7"))[ps("0x1b")](),l=x[ps("0x33")],l!=r.value)return i[ps("0x14")](a)&&x[ps("0xf")](r[ps("0x33")],a)?(o({...r,setImageSizes:!1}),a=i.getClosestSelectedImageElement(t.model[ps("0x1a")][ps("0x1c")]),void n[ps("0x38")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],ps("0x1d"))):void(i[ps("0x28")](a)?n[ps("0x38")](a,u,[],ps("0x27")):n[ps("0x2a")](c,u,ps("0x27")))}))}));for(const e of t[ps("0x3f")][ps("0x29")](ps("0x32")).normalizedStyles)o[e[ps("0x40")]]=e[ps("0x37")][ps("0xe")]();n._suggestionFactory[ps("0x47")](ps("0xc"),ps("0x1d"),ps("0x2d"),(()=>!1)),n[ps("0x13")][ps("0x47")](ps("0xc"),"imageStylePostApply",ps("0x2d"),(()=>!1)),n[ps("0x13")].registerCustomCallback(ps("0x21"),ps("0x27"),ps("0x2d"),(()=>!1)),n[ps("0x13")][ps("0x47")]("formatBlock",ps("0x1d"),ps("0xa"),(([t])=>{i[ps("0x4b")](t[ps("0x12")]())})),n._suggestionFactory[ps("0x47")](ps("0xc"),ps("0x1d"),ps("0xb"),((t,e)=>{n._suggestionFactory[ps("0x1f")]("formatBlock","",ps("0xa"))(t,{commandName:e[ps("0x6")],commandParams:e[ps("0x3")]})})),n._suggestionFactory.registerCustomCallback("formatBlock",ps("0x1d"),ps("0x36"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const r=[{type:ps("0xc"),subType:"imageStylePreApply"},{type:ps("0x3b"),subType:ps("0x20")},{type:ps("0xc"),subType:ps("0x16")},{type:"insertion",subType:ps("0x16")}];function s(t,e){const o=r[ps("0x3d")]((({type:e,subType:n})=>t.type==e&&t.subType==n)),s=r[ps("0x3d")]((({type:t,subType:n})=>e[ps("0x35")]==t&&e.subType==n));if(o<0||s<0)return!1;const x=t[ps("0x34")](),a=e[ps("0x34")]();if((0==o||1==o)&&2==s&&x[ps("0x26")](a))return!0;if(2==o&&3==s){const t=n._findSuggestions(x,ps("0x3b")).filter((({suggestion:t,meta:e})=>e[ps("0x4c")]&&ps("0x16")==t[ps("0x4f")]));if(t[ps("0x43")]>1&&a[ps("0x0")].isEqual(x[ps("0x39")]))return!0;if(1==t[ps("0x43")]&&(x[ps("0x39")].isEqual(a[ps("0x0")])||x[ps("0x0")][ps("0x15")](a[ps("0x39")])))return!0}if(3==o&&3==s&&x[ps("0x39")][ps("0x44")](a[ps("0x39")])){const t=x[ps("0x0")][ps("0x2f")],e=a[ps("0x39")][ps("0x3a")];return i[ps("0x28")](t)&&t===e}return!1}t[ps("0x17")][ps("0x1a")][ps("0x30")]((()=>{let e=!1;const o=Array[ps("0x31")](t[ps("0x17")][ps("0x1a")].differ[ps("0x8")]());for(const{name:t,data:r}of o){const{group:o,type:s,subType:x,id:a}=n._splitMarkerName(t);if("suggestion"==o&&n.hasSuggestion(a)){if(ps("0xc")==s&&(ps("0x1d")==x||ps("0x27")==x)){const t=n[ps("0x50")](a);if(r[ps("0x45")]){const o=t.getFirstRange()[ps("0x12")]();if(i.isBlockImage(o))continue;n[ps("0x11")](t),e=!0}}if("insertion"==s&&ps("0x20")==x&&!r[ps("0x45")]){const t=n[ps("0x50")](a);t.next&&t.next[ps("0x23")]&&(n[ps("0x11")](t[ps("0x24")]),e=!0)}}}return e})),this._registerLegacyDescription(o)}[ps("0x42")](t){const e=this[ps("0x49")],n=e[ps("0x4d")];e.plugins[ps("0x29")](ps("0x9"))[ps("0x5")][ps("0x2c")]((e=>{if(ps("0xc")!=e[ps("0x35")]&&ps("0x21")!=e.type)return;const{data:i}=e;if(!i||ps("0x1")!=i.commandName)return;const o=i[ps("0x18")][0][ps("0x33")];return r=ps("0x22")===o?Ji(n,ps("0x41")):t[o]||o,{type:ps("0x19"),content:Ji(n,ps("0x3e"),r)};var r}))}}const _s=["_trackChangesValueDuringImport","_trackChangesExecuted","dataInsert","TrackChangesEditing","commands","listenTo","collaboration_features","execute","value","lowest","_setSuggestionData","afterInit","plugins","get","bind","editor","Users","high","enableCommand","importWord"];var Ts,ys;Ts=_s,ys=100,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._trackChangesValueDuringImport=!1,this[Cs("0x1")]=!1}[Cs("0xb")](){const t=this.editor,e=t.commands[Cs("0xd")](Cs("0x13")),n=t[Cs("0x4")].get("trackChanges");e&&(e.on(Cs("0x7"),((t,[,e])=>{this[Cs("0x0")]=n[Cs("0x8")],e[Cs("0x6")].track_changes=!this[Cs("0x0")]}),{priority:Cs("0x11")}),this[Cs("0x5")](e,"dataInsert",this._handleImportedData[Cs("0xe")](this)),this.listenTo(e,Cs("0x2"),(()=>{this._trackChangesExecuted&&(n[Cs("0x7")](),this[Cs("0x1")]=!1)}),{priority:Cs("0x9")}),t[Cs("0xc")][Cs("0xd")]("TrackChangesEditing")[Cs("0x12")](Cs("0x13")))}_handleImportedData(t,e){const{suggestions:n}=e,i=this[Cs("0xf")][Cs("0x4")].get("trackChanges"),o=i[Cs("0x8")];this[Cs("0x0")]!==o&&(i[Cs("0x7")](),this._trackChangesExecuted=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:i})=>{const o={id:t,type:e,authorId:this[Cs("0xf")][Cs("0xc")][Cs("0xd")](Cs("0x10")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:i?new Date(i):new Date,source:Cs("0x13")}}};this.editor[Cs("0xc")].get(Cs("0x3"))[Cs("0xa")](o)}))}}const ks=["getItems","indentBlock","type","TrackChangesEditing","registerDescriptionCallback","getItemLabel","outdent","*Outdent:* %0","afterInit","blockIndent","IndentEditing","commandName","editor","locale","FORMAT_INDENT","*Indent:* %0","plugins","outdentBlock","get","_descriptionFactory","format","_enableDefaultAttributesIntegration","_registerBlockAttribute","indent","has","_registerLegacyDescription","formatBlock","registerAttributeLabel"];var Ss,Rs;Ss=ks,Rs=475,function(t){for(;--t;)Ss.push(Ss.shift())}(++Rs);const Is=function(t,e){return ks[t-=0]};class vs extends t.Plugin{[Is("0x9")](){const t=this[Is("0xd")],e=t.plugins.get(Is("0x4"));if(t.plugins[Is("0x19")](Is("0xb"))&&(e.enableCommand(Is("0x18")),e.enableCommand(Is("0x7"))),t[Is("0x11")][Is("0x19")]("IndentBlock"))for(const t of["indentBlock","outdentBlock"])e[Is("0x16")](t);const n=t.locale;e[Is("0x17")]("blockIndent"),e[Is("0x14")][Is("0x0")](Is("0xa"),Ji(n,Is("0xf"))),this[Is("0x1a")]()}[Is("0x1a")](){const t=this[Is("0xd")],e=t[Is("0xe")],n=t[Is("0x11")][Is("0x13")]("TrackChangesEditing");n[Is("0x14")][Is("0x5")]((t=>{if(Is("0x1b")!=t[Is("0x3")])return;const{data:i}=t;if(!i)return;if(Is("0x2")!=i[Is("0xc")]&&Is("0x12")!=i[Is("0xc")])return;const o=t[Is("0x1")]()[0],r=n[Is("0x14")][Is("0x6")](o);return"indentBlock"==i[Is("0xc")]?{type:Is("0x15"),content:Ji(e,Is("0x10"),r)}:Is("0x12")==i.commandName?{type:Is("0x15"),content:Ji(e,Is("0x8"),r)}:void 0}))}}var Ls,Ns,Ms=["requires","editor","init","input","enableCommand","get","plugins"];Ls=Ms,Ns=104,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);var ws=function(t,e){return Ms[t-=0]};class Os extends t.Plugin{static get[ws("0x1")](){return[$o.Input]}[ws("0x3")](){this[ws("0x2")][ws("0x0")][ws("0x6")]("TrackChangesEditing")[ws("0x5")](ws("0x4"))}}const Fs=["registerDescriptionCallback","linkHref","locale","format","link","commands","formatInline","newValue","LinkEditing","TrackChangesEditing","get","has","editor","toLowerCase","link (","commandName","key","map","manualDecorators","unlink","_registerLegacyDescription","_enableDefaultAttributesIntegration","type","*Set link:* %0","_descriptionFactory","label","plugins"];var Ds,Bs;Ds=Fs,Bs=310,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("0x1a")];if(!t.plugins[Ps("0x19")](Ps("0x16")))return;const e=t.plugins[Ps("0x18")]("TrackChangesEditing"),n=t[Ps("0x13")][Ps("0x18")](Ps("0x12"));e._enableDefaultAttributesIntegration(Ps("0x12"),["linkHref",...n.manualDecorators[Ps("0x4")]((t=>t.id))]),e[Ps("0x8")]("unlink");for(const t of n[Ps("0x5")])e[Ps("0xb")].registerAttributeLabel(t.id,Ps("0x1")+t[Ps("0xc")][Ps("0x0")]()+")");e[Ps("0xb")][Ps("0xe")]((e=>{if("attribute"!=e[Ps("0x9")])return;const{data:n}=e;if(!n||Ps("0xf")!=n[Ps("0x3")])return;const i=n[Ps("0x15")],o=t[Ps("0x10")];return{type:Ps("0x11"),content:null==i?Ji(o,"*Remove link*"):Ji(o,Ps("0xa"),'"'+i+'"')}})),this[Ps("0x7")]()}[Ps("0x7")](){const t=this[Ps("0x1a")],e=t[Ps("0x10")];t[Ps("0xd")].get(Ps("0x17"))[Ps("0xb")][Ps("0xe")]((t=>{if(Ps("0x14")!=t[Ps("0x9")])return;const{data:n}=t;if(n){if(Ps("0x12")==n[Ps("0x2")]){const t=n.commandParams[0];return{type:Ps("0x11"),content:Ji(e,"*Set link:* %0",'"'+t+'"')}}return Ps("0x6")==n.commandName?{type:"format",content:Ji(e,"*Remove link*")}:void 0}}))}}const js=["*Uncheck item*","enableCommand","element","checkChild","plugins","todoList","selection","format","name","formatBlock","_selectedElements","numberedList","*Change to:* %0","push","nextSibling","end","length","has","markBlockFormat","_descriptionFactory","ELEMENT_BULLETED_LIST","createPositionAt","before","ELEMENT_LIST_ITEM","bulletedList","filter","commands","outdentList","paragraph","*Indent:* %0","add","TrackChangesEditing","model","registerElementLabel","indentList","get","listIndent","slice","createRange","checkTodoList","registerDescriptionCallback","listItem","editor","numbered","value","type","*Outdent:* %0","commandName","change","schema","getSelectedBlocks","replace","blockName","locale","formatInline","parent","List","todo","LegacyListEditing","getAttribute","ELEMENT_TODO_LIST","from","previousSibling","isObject","document","execute"];var Gs,Vs;Gs=js,Vs=295,function(t){for(;--t;)Gs.push(Gs.shift())}(++Vs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{afterInit(){const t=this[Hs("0xb")],e=t[Hs("0x16")];if(!t[Hs("0x27")][Hs("0x34")](Hs("0x1b")))return;const n=t.plugins.get(Hs("0x0")),i=t.plugins[Hs("0x34")]("LegacyTodoListEditing");function o(e){return()=>{const i=t[Hs("0x1")][Hs("0x21")][Hs("0x29")],o=t[Hs("0x3d")][Hs("0x4")](e);if(o[Hs("0xd")])return void t[Hs("0x22")](Hs("0x3f"),{});const r=e[Hs("0x6")](0,-4),s=function(t,e,n){let i=Array.from(t)[Hs("0x3c")]((t=>{return e=t,(i=n)[Hs("0x26")](e[Hs("0x18")],Hs("0xa"))&&!i[Hs("0x20")](e);var e,i}));i=i.filter((t=>!t.is(Hs("0x25"),Hs("0xa"))||t.getAttribute("listType")!=e));const o=new Set;for(const t of i)t.is("element",Hs("0xa"))?o[Hs("0x41")](Ws(t)):o[Hs("0x41")](t);return Array[Hs("0x1e")](o)}(i[Hs("0x13")](),r,t[Hs("0x1")][Hs("0x12")]);t[Hs("0x1")][Hs("0x11")]((()=>{for(const t of s)n[Hs("0x35")](t,{commandName:e,commandParams:[{forceValue:!o[Hs("0xd")]}],formatGroupId:Hs("0x15")},Ks(t))}))}}function r(e){return()=>{const i=function(t){let e=Array.from(t);const n=e.findIndex((t=>"listItem"!=t.name));return n>-1&&(e=e[Hs("0x6")](0,n)),e}(t[Hs("0x1")][Hs("0x21")][Hs("0x29")][Hs("0x13")]()),o=t[Hs("0x1")][Hs("0x7")](t[Hs("0x1")][Hs("0x38")](i[0],Hs("0x39")),t.model[Hs("0x38")](i[i[Hs("0x33")]-1],Hs("0x32")));t[Hs("0x1")][Hs("0x11")]((()=>{n[Hs("0x35")](o,{commandName:e,commandParams:[],formatGroupId:Hs("0x5")},function(t){const e=new Set;for(const n of t){let t=n[Hs("0x31")];for(;t&&t[Hs("0x1c")](Hs("0x5"))>n[Hs("0x1c")](Hs("0x5"));)e[Hs("0x41")](t),t=t.nextSibling}return Array[Hs("0x1e")](e)}(i))}))}}n[Hs("0x24")]("numberedList",o(Hs("0x2e"))),n[Hs("0x24")](Hs("0x3b"),o("bulletedList")),i&&n[Hs("0x24")]("todoList",o(Hs("0x28"))),n.enableCommand(Hs("0x3"),r("indentList")),n[Hs("0x24")](Hs("0x3e"),r("outdentList")),i&&n.enableCommand("checkTodoList",(()=>{const e=t[Hs("0x3d")].get(Hs("0x8")),i=Array[Hs("0x1e")](e[Hs("0x2d")]);i[Hs("0x3c")]((t=>t.getAttribute("todoListChecked")!=e.value)),t[Hs("0x1")][Hs("0x11")]((()=>{for(const t of i)n[Hs("0x35")](t,{commandName:Hs("0x8"),commandParams:[{forceValue:!e[Hs("0xd")]}]})}))})),n[Hs("0x36")][Hs("0x2")](Hs("0xa"),(t=>Ji(e,Hs("0x3a"),t))),n[Hs("0x36")][Hs("0x9")]((t=>{if(Hs("0x2c")!=t[Hs("0xe")]&&Hs("0x17")!=t[Hs("0xe")])return;const{data:n}=t;if(n){if("numberedList"==n.commandName||Hs("0x3b")==n[Hs("0x10")]||"todoList"==n.commandName)switch(n.commandName[Hs("0x14")](Hs("0x19"),"")){case"bulleted":return i(Ji(e,Hs("0x37")));case Hs("0xc"):return i(Ji(e,"ELEMENT_NUMBERED_LIST"));case Hs("0x1a"):return i(Ji(e,Hs("0x1d")))}if(Hs("0x3")==n[Hs("0x10")])return{type:Hs("0x2a"),content:Ji(e,Hs("0x40"),Ji(e,Hs("0x3a")))};if(Hs("0x3e")==n[Hs("0x10")])return{type:"format",content:Ji(e,Hs("0xf"),Ji(e,Hs("0x3a")))};if(Hs("0x8")==n[Hs("0x10")])return n.commandParams[0].forceValue?{type:Hs("0x2a"),content:Ji(e,"*Check item*")}:{type:Hs("0x2a"),content:Ji(e,Hs("0x23"))}}function i(t){return{type:Hs("0x2a"),content:Ji(e,Hs("0x2f"),t)}}}))}}function Ws(t){const e=t[Hs("0x1c")](Hs("0x5"));if(0==e)return t;let n=t;for(;t[Hs("0x1f")]&&t.previousSibling.is("element","listItem");){const i=t[Hs("0x1f")][Hs("0x1c")](Hs("0x5"));if(i==e)n=t[Hs("0x1f")];else if(i<e)break;t=t.previousSibling}return n}function Ks(t){const e=[];if(t.is("element",Hs("0xa"))&&t.getAttribute("listIndent")>0){let n=t[Hs("0x31")];for(;n&&Hs("0xa")==n[Hs("0x2b")]&&n.getAttribute(Hs("0x5"))==t[Hs("0x1c")](Hs("0x5"));)e[Hs("0x30")](n),n=n[Hs("0x31")]}return e}const qs=["createPositionAt","document","formatInline","enableCommand","bind","listReversed","replace","filter","map","type","element","locale","format","list.properties","handleListStyleCommand","getListTypeFromListStyleType","forward","LegacyListUtils","styles","getSiblingNodes","handleDescriptions","formatBlock","TrackChangesEditing","selection","editor","handleListReversedCommand","_getTranslationKeyForListStyle","ELEMENT_","length","markMultiRangeBlockFormat","change","startIndex","plugins","commandParams","flat","getFirstPosition","getAttribute","_LIST_","handleListStartCommand","listItem","get","getSelectedBlocks","*Format:* set order to regular","reversed","listType","*Format:* set order to reversed","parent","_getSuggestionBlocks","numbered","model","toUpperCase","getLastPosition","listStart","listStyle","before","createRange","backward","has"];var $s,Xs;$s=qs,Xs=113,function(t){for(;--t;)$s.push($s.shift())}(++Xs);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{afterInit(){if(!this[Zs("0x1b")].plugins[Zs("0x2")]("LegacyListPropertiesEditing"))return;const t=this[Zs("0x1b")].config[Zs("0x2b")](Zs("0x10")),e=this.editor[Zs("0x23")][Zs("0x2b")]("TrackChangesEditing");t[Zs("0x15")]&&e[Zs("0x6")]("listStyle",this[Zs("0x11")][Zs("0x7")](this)),t[Zs("0x2e")]&&e[Zs("0x6")](Zs("0x8"),this[Zs("0x1c")][Zs("0x7")](this)),t[Zs("0x22")]&&e[Zs("0x6")]("listStart",this[Zs("0x29")][Zs("0x7")](this)),e._descriptionFactory.registerDescriptionCallback(this.handleDescriptions[Zs("0x7")](this))}[Zs("0x11")](t,e={}){const n=this[Zs("0x1b")][Zs("0x23")][Zs("0x2b")](Zs("0x19")),i=this._getSuggestionBlocksForListStyle();this[Zs("0x1b")][Zs("0x34")][Zs("0x21")]((()=>{n[Zs("0x20")](i,{commandName:"listStyle",commandParams:[{type:e[Zs("0xc")]}],formatGroupId:Zs("0x38")})}))}[Zs("0x1c")](t,e={}){const n=this[Zs("0x1b")][Zs("0x23")].get(Zs("0x19")),i=this[Zs("0x32")]((t=>t.is(Zs("0xd"),Zs("0x2a"))&&Zs("0x33")===t[Zs("0x27")](Zs("0x2f"))));if(i[Zs("0x1f")]<1)return;const o=i[Zs("0xb")]((t=>this[Zs("0x1b")].model[Zs("0x0")](this[Zs("0x1b")][Zs("0x34")].createPositionAt(t,Zs("0x39")),this[Zs("0x1b")][Zs("0x34")][Zs("0x3")](t,0))));this.editor[Zs("0x34")][Zs("0x21")]((()=>{n[Zs("0x20")](o,{commandName:"listReversed",commandParams:[{reversed:e[Zs("0x2e")]}],formatGroupId:Zs("0x8")})}))}[Zs("0x29")](t,e={}){const n=this.editor[Zs("0x23")][Zs("0x2b")](Zs("0x19")),i=this[Zs("0x32")]((t=>t.is("element",Zs("0x2a"))&&Zs("0x33")===t.getAttribute(Zs("0x2f"))));if(i[Zs("0x1f")]<1)return;const o=i[Zs("0xb")]((t=>this[Zs("0x1b")][Zs("0x34")][Zs("0x0")](this[Zs("0x1b")][Zs("0x34")].createPositionAt(t,Zs("0x39")),this[Zs("0x1b")][Zs("0x34")].createPositionAt(t,0))));this[Zs("0x1b")][Zs("0x34")][Zs("0x21")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:"listStart",commandParams:[{startIndex:e[Zs("0x22")]}],formatGroupId:"listStart"})}))}[Zs("0x17")](t){if(Zs("0x18")!=t.type&&Zs("0x5")!=t.type)return;const e=this.editor[Zs("0xe")],{data:n}=t;if(!n)return;let i,o;switch(n.commandName){case"listStyle":i="*Change to:* %0",o={type:"format",content:Ji(e,i,Ji(e,this._getTranslationKeyForListStyle(n.commandParams[0][Zs("0xc")])))};break;case"listReversed":i=n[Zs("0x24")][0][Zs("0x2e")]?Zs("0x30"):Zs("0x2d"),o={type:Zs("0xf"),content:Ji(e,i)};break;case Zs("0x37"):i="*Format:* set start index to %0",o={type:Zs("0xf"),content:Ji(e,i,n.commandParams[0][Zs("0x22")])}}return o}_getSuggestionBlocksForListStyle(){var t,e,n,i;const o=this[Zs("0x1b")][Zs("0x23")].get("LegacyListUtils");let r=Array.from(this[Zs("0x1b")][Zs("0x34")][Zs("0x4")][Zs("0x1a")].getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(Zs("0xd"),Zs("0x2a")))&&r.unshift(...o.getSiblingNodes(this[Zs("0x1b")][Zs("0x34")][Zs("0x4")][Zs("0x1a")][Zs("0x26")](),"backward")),(null===(e=r[r.length-1])||void 0===e?void 0:e.is("element",Zs("0x2a")))&&r.push(...o[Zs("0x16")](this[Zs("0x1b")].model[Zs("0x4")].selection[Zs("0x36")](),Zs("0x13"))),r=[...new Set(r)],(null===(i=null===(n=this[Zs("0x1b")][Zs("0x34")][Zs("0x4")].selection[Zs("0x26")]())||void 0===n?void 0:n[Zs("0x31")])||void 0===i?void 0:i.is("element",Zs("0x2a")))&&(r=r[Zs("0xa")]((t=>t.is(Zs("0xd"),Zs("0x2a"))))),r}[Zs("0x32")](t){const e=this[Zs("0x1b")][Zs("0x23")][Zs("0x2b")](Zs("0x14"));let n=Array.from(this[Zs("0x1b")][Zs("0x34")][Zs("0x4")][Zs("0x1a")][Zs("0x2c")]())[Zs("0xa")](t)[Zs("0xb")]((t=>{const n=this[Zs("0x1b")][Zs("0x34")][Zs("0x3")](t,0);return[...e[Zs("0x16")](n,Zs("0x1")),...e[Zs("0x16")](n,Zs("0x13"))]}))[Zs("0x25")]();return n=[...new Set(n)],n}[Zs("0x1d")](t){return Zs("0x1e")+this[Zs("0x1b")].plugins[Zs("0x2b")](Zs("0x14"))[Zs("0x12")](t)[Zs("0x35")]()+Zs("0x28")+t[Zs("0x35")]()[Zs("0x9")](/-/g,"_")}}const Js=["MediaEmbedEditing","data","TrackChangesEditing","options","attribute:url:media","showSuggestionHighlights","_descriptionFactory","createEmptyElement","downcastDispatcher","enableCommand","stop","plugins","for","editor","registerElementLabel","conversion","locale","dataDowncast","get","has","div","media","elementToElement","high"];var Qs,tx;Qs=Js,tx=199,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("0x6")];if(!t[ex("0x4")][ex("0xc")](ex("0x11")))return;const e=t[ex("0x4")][ex("0xb")](ex("0x13")),n=t[ex("0x9")];e[ex("0x2")]("mediaEmbed"),e[ex("0x17")][ex("0x7")]("media",(t=>Ji(n,"ELEMENT_MEDIA",t))),t[ex("0x8")][ex("0x5")](ex("0xa"))[ex("0xf")]({model:ex("0xe"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[ex("0x0")](ex("0xd"))},converterPriority:"high"}),t[ex("0x12")][ex("0x1")].on(ex("0x15"),((t,e,n)=>{n[ex("0x14")][ex("0x16")]&&t[ex("0x3")]()}),{priority:ex("0x10")})}}const ix=["mention","editor","has","enableCommand","get","plugins","MentionEditing","TrackChangesEditing"];var ox,rx;ox=ix,rx=471,function(t){for(;--t;)ox.push(ox.shift())}(++rx);const sx=function(t,e){return ix[t-=0]};class xx extends t.Plugin{afterInit(){const t=this[sx("0x2")];t[sx("0x6")][sx("0x3")](sx("0x7"))&&t[sx("0x6")][sx("0x5")](sx("0x0"))[sx("0x4")](sx("0x1"))}}const ax=["plugins","get","pageBreak","ELEMENT_PAGE_BREAK","registerElementLabel","has","afterInit","editor","locale","TrackChangesEditing","enableCommand","_descriptionFactory"];var cx,lx;cx=ax,lx=355,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0xb")](){const t=this[ux("0x0")];if(!t[ux("0x5")][ux("0xa")]("PageBreakEditing"))return;t.plugins[ux("0x6")](ux("0x2"))[ux("0x3")](ux("0x7"));const e=t.plugins[ux("0x6")]("TrackChangesEditing"),n=t[ux("0x1")];e[ux("0x4")][ux("0x9")](ux("0x7"),(t=>Ji(n,ux("0x8"),t)))}}const gx=["span","commandName","options","plugins","highest","*Change to:* %0","format","type","bindElementToMarker","TrackChangesEditing","name","editor","downcastDispatcher","paragraph","getFirstRange","isLimit","addMarker:suggestion:insertion","isBlock","_descriptionFactory","includes","insertion","markerName","consumable","editing","nodeAfter","_registerLegacyDescription","locale","get","has","ck-suggestion-marker-split","model","addClass","end","_enableDefaultAttributesIntegration","registerElementLabel","schema","markerRange","Paragraph","mapper","writer","registerDescriptionCallback","$text","createUIElement","getItemLabel","isTouching","toViewPosition","activeMarkers","data","checkChild"];var fx,mx;fx=gx,mx=252,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[hx("0x4")];if(!t[hx("0x2d")][hx("0x15")](hx("0x1e")))return;const e=t[hx("0x13")],n=t[hx("0x2d")][hx("0x14")](hx("0x2"));n[hx("0xb")][hx("0x1b")](hx("0x6"),(t=>Ji(e,"ELEMENT_PARAGRAPH",t))),n[hx("0x1a")](hx("0x6")),n.enableCommand("insertParagraph"),t[hx("0x10")][hx("0x5")].on(hx("0x9"),px(t),{priority:hx("0x2e")}),t[hx("0x28")][hx("0x5")].on("addMarker:suggestion:insertion",((e,n,i)=>{i[hx("0x2c")].showSuggestionHighlights&&px(t,{showActiveMarker:!1})(e,n,i)}),{priority:hx("0x2e")});const i=n._descriptionFactory;i[hx("0x21")]((n=>{if(hx("0xd")!==n[hx("0x0")])return;const{start:o,end:r}=n[hx("0x7")]();if(!o[hx("0x25")](r)||!o[hx("0x11")])return;const s=t[hx("0x17")][hx("0x1c")],x=o.nodeAfter;return s.isBlock(x)&&!s.isLimit(x)&&s.checkChild(x,hx("0x22"))?{type:hx("0xd"),content:Ji(e,"*Insert:* %0",i[hx("0x24")](x,1))}:void 0})),this[hx("0x12")]()}_registerLegacyDescription(){const t=this.editor,e=t.locale;t[hx("0x2d")][hx("0x14")](hx("0x2"))[hx("0xb")].registerDescriptionCallback((t=>{if("formatBlock"!=t[hx("0x0")])return;const{data:n}=t;return n&&hx("0x6")==n[hx("0x2b")]?{type:hx("0x30"),content:Ji(e,hx("0x2f"),Ji(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function px(t,{showActiveMarker:e=!0}={}){return(n,i,o)=>{const r=t[hx("0x2d")].get(hx("0x2")),s=i[hx("0x1d")].start,x=i[hx("0x1d")][hx("0x19")],a=t[hx("0x17")].schema;if(!s.isTouching(x)||!s.nodeAfter)return;const c=s[hx("0x11")];if(a[hx("0xa")](c)&&!a[hx("0x8")](c)&&a[hx("0x29")](c,hx("0x22"))){if(!o[hx("0xf")].consume(i[hx("0x1d")],n[hx("0x3")]))return;const t=o[hx("0x20")][hx("0x23")](hx("0x2a"),{class:hx("0x16")}),s=o[hx("0x1f")][hx("0x26")](x);e&&r[hx("0x27")][hx("0xc")](i[hx("0xe")])&&o.writer[hx("0x18")]("ck-suggestion-marker--active",t),o[hx("0x20")].insert(s,t),o[hx("0x1f")][hx("0x1")](t,i[hx("0xe")])}}}const Ex=["commandName","plugins","*Remove all formatting*","has","RemoveFormatEditing","_descriptionFactory","removeFormat","format","TrackChangesEditing","editor","afterInit","type","get","formatInline","_registerLegacyDescription"];var _x,Tx;_x=Ex,Tx=344,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("0xa")];t[yx("0x2")][yx("0x4")](yx("0x5"))&&(t[yx("0x2")][yx("0xd")](yx("0x9"))._enableDefaultAttributesIntegration(yx("0x7")),this[yx("0x0")]())}[yx("0x0")](){const t=this[yx("0xa")];t[yx("0x2")][yx("0xd")]("TrackChangesEditing")[yx("0x6")].registerDescriptionCallback((e=>{if("formatBlock"!=e.type&&yx("0xe")!=e[yx("0xc")])return;const{data:n}=e;return n&&"removeFormat"==n[yx("0x1")]?{type:yx("0x8"),content:Ji(t.locale,yx("0x3"))}:void 0}))}}const Ax=["discardAllSuggestions","acceptAllSuggestions","acceptSuggestion","afterInit","acceptSelectedSuggestions","enableCommand","plugins","has","discardSelectedSuggestions","RestrictedEditingModeEditing","get","discardSuggestion","TrackChangesEditing"];var kx,Sx;kx=Ax,Sx=490,function(t){for(;--t;)kx.push(kx.shift())}(++Sx);const Rx=function(t,e){return Ax[t-=0]};class Ix extends t.Plugin{[Rx("0x7")](){const t=this.editor;if(!t[Rx("0xa")][Rx("0xb")]("RestrictedEditingModeEditing"))return;const e=t[Rx("0xa")][Rx("0x1")](Rx("0x3"));e[Rx("0x9")]("goToPreviousRestrictedEditingException"),e[Rx("0x9")]("goToNextRestrictedEditingException");const n=t.plugins.get(Rx("0x0"));n[Rx("0x9")]("trackChanges"),n.enableCommand(Rx("0x6")),n.enableCommand(Rx("0x2")),n.enableCommand(Rx("0x5")),n[Rx("0x9")](Rx("0x4")),n[Rx("0x9")](Rx("0x8")),n[Rx("0x9")](Rx("0xc"))}}const vx=["mapper","high","insert","toViewPosition","includes","downcastDispatcher","ck-suggestion-marker--active","addMarker:suggestion:insertion","addClass","registerElementLabel","markerRange","ck-suggestion-marker-","TrackChangesEditing","test","plugins","addMarker:suggestion","locale","element","addMarker:suggestion:deletion","editing","ELEMENT_LINE_BREAK","createUIElement","options","init","model","span","data","getItems","merge","_descriptionFactory","createPositionBefore","get","softBreak","requires","split","writer","markerName","name"];var Lx,Nx;Lx=vx,Nx=412,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return vx[t-=0]};class wx extends t.Plugin{static get[Mx("0x1")](){return[hr.ShiftEnter]}[Mx("0x1d")](){const t=this.editor,e=t[Mx("0x14")].get("TrackChangesEditing");e.enableCommand("shiftEnter"),t[Mx("0x19")][Mx("0xb")].on(Mx("0xd"),Ox(t),{priority:Mx("0x7")}),t[Mx("0x19")].downcastDispatcher.on(Mx("0x18"),Ox(t),{priority:Mx("0x7")}),t[Mx("0x20")][Mx("0xb")].on(Mx("0x15"),((e,n,i)=>{i[Mx("0x1c")].showSuggestionHighlights&&Ox(t,{showActiveMarker:!1})(e,n,i)})),e[Mx("0x23")][Mx("0xf")]("softBreak",(e=>Ji(t[Mx("0x16")],Mx("0x1a"),e)))}}function Ox(t,{showActiveMarker:e=!0}={}){return(n,i,o)=>{const r=t.plugins[Mx("0x25")](Mx("0x12"));if(!o.consumable[Mx("0x13")](i[Mx("0x10")],n[Mx("0x5")]))return;const s=t[Mx("0x1e")];for(const t of i[Mx("0x10")][Mx("0x21")]()){if(!t.is(Mx("0x17"),Mx("0x0")))continue;const n="deletion"==i.markerName[Mx("0x2")](":")[1]?Mx("0x22"):Mx("0x2"),x=o[Mx("0x3")][Mx("0x1b")](Mx("0x1f"),{class:Mx("0x11")+n}),a=o[Mx("0x6")][Mx("0x9")](s[Mx("0x24")](t));e&&r.activeMarkers[Mx("0xa")](i[Mx("0x4")])&&o[Mx("0x3")][Mx("0xe")](Mx("0xc"),x),o.writer[Mx("0x8")](a,x),o[Mx("0x6")].bindElementToMarker(x,i.markerName)}}}const Fx=["registerDescriptionCallback","model","StandardEditingModeEditing","editor","document","formatBlock","isCollapsed","FORMAT_RESTRICTED_DISABLED","commandName","afterInit","plugins","format","change","forceValue","type","commandParams","has","locale","_descriptionFactory","FORMAT_RESTRICTED_ENABLED","value","enableCommand","getRanges","get"];var Dx,Bx;Dx=Fx,Bx=102,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{[Px("0x3")](){const t=this[Px("0x15")],e=t[Px("0x13")],n=t[Px("0xb")];if(!t.plugins[Px("0xa")](Px("0x14")))return;const i=t[Px("0x4")].get("TrackChangesEditing"),o="restrictedEditingException",r=t.commands[Px("0x11")](o);i[Px("0xf")](o,((t,n={})=>{const s=e[Px("0x16")].selection;if(s[Px("0x0")])return void t(n);const x=void 0!==n[Px("0x7")]?n[Px("0x7")]:!r[Px("0xe")];e[Px("0x6")]((()=>{const t=Array.from(s[Px("0x10")]());for(const n of t){const t=x?[n]:Qo(o,n,e);for(const e of t)i.markInlineFormat(e,{commandName:o,commandParams:[{forceValue:x}]})}}))})),i[Px("0xc")][Px("0x12")]((t=>{if(Px("0x17")!=t[Px("0x8")]&&"formatInline"!=t[Px("0x8")])return;const{data:e}=t;return e&&e[Px("0x2")]==o?e[Px("0x9")][0][Px("0x7")]?{type:Px("0x5"),content:Ji(n,Px("0xd"))}:{type:Px("0x5"),content:Ji(n,Px("0x1"))}:void 0}))}}const jx=["_enableDefaultAttributesIntegration","afterInit","get","toLowerCase","GeneralHtmlSupport","add","registerAttributeLabel","FORMAT_STYLE","*Set format:* %0","plugins","format","forceValue","normalizeConfig","_registerLegacyDescription","block","inline","style","TrackChangesEditing","has","styleName","definitions","DataSchema","type","commandParams","formatInline","_registerBlockAttribute","locale","ghsAttributes","element","config","_descriptionFactory","Style","*Remove format:* %0","getGhsAttributeNameForElement"];var Gx,Vx;Gx=jx,Vx=389,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{[Hx("0x14")](){const t=this.editor;if(!t.plugins[Hx("0x3")](Hx("0x10"))||!t[Hx("0x1c")][Hx("0x3")](Hx("0x6")))return;const e=t.plugins[Hx("0x15")](Hx("0x2")),n=t.locale,i=t[Hx("0xe")][Hx("0x15")](Hx("0x1")),o=t.plugins.get(Hx("0x17")),r=t[Hx("0x1c")].get("StyleUtils")[Hx("0x1f")](t.plugins[Hx("0x15")]("DataSchema"),i[Hx("0x5")]);e[Hx("0x13")](Hx("0x1"));const s=new Set;for(const t of r[Hx("0x21")]){const e=o[Hx("0x12")](t[Hx("0xd")]);s.add(e)}const x=new Set;for(const t of r[Hx("0x0")]){const e=o[Hx("0x12")](t.element);x.add(e);for(const e of t[Hx("0xc")])x[Hx("0x18")](e)}for(const t of s)e[Hx("0xa")](t),e[Hx("0xf")][Hx("0x19")](t,Ji(n,Hx("0x1a")));for(const t of x)e._registerInlineAttribute(t),e[Hx("0xf")].registerAttributeLabel(t,Ji(n,"FORMAT_STYLE"));this[Hx("0x20")]()}[Hx("0x20")](){const t=this.editor,e=t[Hx("0xb")];t[Hx("0x1c")][Hx("0x15")](Hx("0x2"))._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t.type&&Hx("0x9")!=t[Hx("0x7")])return;const{data:n}=t;return n&&Hx("0x1")===n.commandName?n[Hx("0x8")][0][Hx("0x1e")]?{type:Hx("0x1d"),content:Ji(e,Hx("0x1b"),n[Hx("0x8")][0][Hx("0x4")][Hx("0x16")]())}:{type:Hx("0x1d"),content:Ji(e,Hx("0x11"),n[Hx("0x8")][0][Hx("0x4")][Hx("0x16")]())}:void 0}))}}const Wx=["colspan","_suggestionFactory","getChanges","isEqual","_tablePostFixingSubtypes","$graveyard","detach","max","getItems","setSelection","commands","_setupColumnsRowsFixing","addRange","type","$textProxy","selectTableColumn","insertTableColumnLeft","fromRange","cell","getAttribute","minColumn","accept","getRowIndexes","forceValue","_splitMarkerName","highest","every","TableEditing","MIN_SAFE_INTEGER","createRangeOn","MAX_SAFE_INTEGER","end","last","mapper","maxRow","addMarker:suggestion","ELEMENT_TABLE_COLUMN_WITH_TEXT","suggestion","change:data","insertTableRowAbove","options","substr","execute","name","enableCommand","ELEMENT_TABLE_ROW","element","afterInit","length","getCellLocation","start","has","_tableSuggestions","table","oldRange","getRanges","getSelectionAffectedTableCells","getChildren","insertTableRowBelow","showSuggestionHighlights","model","ELEMENT_TABLE_ROW_WITH_TEXT","isArray","rootName","document","getColumnIndexes","_getCoordsForCells","insertTableColumnRight","nodeAfter","locale","tableColumn","change","selection","differ","_descriptionFactory","position","registerElementLabel","createTableWalker","some","filter","get","*Remove:* %0","_getSuggestionCoords","discard","registerCustomCallback","hasAttribute","from","item","rowspan","tableRow","removeTableRow","TrackChangesEditing","tablePaste","classes","minRow","includes","getSuggestion","first","above","*Insert:* %0","TableUtils","insertTable","push","subType","downcastDispatcher","deletion","ELEMENT_TABLE_COLUMN","order","tableCell","left","low","markMultiRangeDeletion","min","editor","plugins","selectTableRow","span","ELEMENT_TABLE_WITH_TEXT","batch","enqueueChange","markMultiRangeInsertion","maxColumn","toLowerCase","root","data","values","findAncestor","join","insertion","isInContent","map","removeTableColumn","refresh"];var Kx,qx;Kx=Wx,qx=188,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("0x52")]=[$x("0x22"),$x("0xf")],this[$x("0x82")]=new Set}[$x("0x7d")](){const t=this[$x("0x3a")],e=t[$x("0x5")][$x("0x9")][$x("0x11")];if(!t[$x("0x3b")][$x("0x81")]($x("0x69")))return;const n=t[$x("0xe")],i=t[$x("0x3b")][$x("0x19")]("TrackChangesEditing"),o=t[$x("0x3b")].get($x("0x2d"));i[$x("0x13")][$x("0x15")]("table",(t=>Ji(n,"ELEMENT_TABLE",t))),this._setupColumnsRowsFixing(),i[$x("0x7a")]($x("0x2e")),i[$x("0x7a")]($x("0x3c")),i.enableCommand($x("0x5d"));for(const n of[$x("0x75"),$x("0x3")]){const r=t[$x("0x58")][$x("0x19")](n);i[$x("0x7a")](n,(n=>{t[$x("0x5")][$x("0x10")]((t=>{n();const s=$x("0x2b")===r[$x("0x34")],x=o.getSelectionAffectedTableCells(e),a=o[$x("0x64")](x),c=s?a.first-1:a[$x("0x6e")]+1,l=x[0].findAncestor($x("0x83")),u=o.createTableWalker(l,{startRow:c,endRow:c}),d=Array[$x("0x1f")](u)[$x("0x4b")]((e=>t[$x("0x6b")](e[$x("0x60")])));i.markMultiRangeInsertion(d,$x("0x22"))}))}))}for(const n of[$x("0x5e"),$x("0xc")]){const r=t[$x("0x58")][$x("0x19")](n);i[$x("0x7a")](n,(n=>{t[$x("0x5")][$x("0x10")]((t=>{n();const s=$x("0x36")===r[$x("0x34")],x=o[$x("0x1")](e),a=o[$x("0xa")](x),c=s?a[$x("0x2a")]-1:a.last+1,l=x[0][$x("0x47")]($x("0x83")),u=o[$x("0x16")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u).map((e=>t.createRangeOn(e[$x("0x60")])));i[$x("0x41")](d,$x("0xf"))}))}))}for(const n of[$x("0x23"),"removeTableColumn"]){const r=n[$x("0x77")](11),s=r[$x("0x43")](),x=s[$x("0x77")](0,3)+$x("0x3d"),a=$x("0x83")+r,c=$x("0x39")+r,l=$x("0x55")+r;i[$x("0x7a")](n,(()=>{t[$x("0x5")][$x("0x10")]((t=>{const r=o.getSelectionAffectedTableCells(e),u=r[0].findAncestor($x("0x83"));let d;if("removeTableRow"==n){const t=o[$x("0x64")](r);d={startRow:t.first,endRow:t[$x("0x6e")],includeAllSlots:!0}}else{const t=o.getColumnIndexes(r);d={startColumn:t[$x("0x2a")],endColumn:t[$x("0x6e")],includeAllSlots:!0}}const g=o.createTableWalker(u,d),f=Array.from(g)[$x("0x4b")]((({cell:t})=>t)),m=Zx(f[$x("0x18")]((t=>t.hasAttribute(x)))),h=Zx(f[$x("0x18")]((t=>!t[$x("0x1e")](x))))[$x("0x4b")]((e=>t[$x("0x6b")](e))),b=i[$x("0x38")](h,a);if(b&&($x("0x22")==b[$x("0x30")]||$x("0xf")==b[$x("0x30")])){const e=this[$x("0x1b")](b);for(const n of m){const i=t.createRangeOn(n),r=o[$x("0x7f")](n),a=n[$x("0x61")](x)-1,u=e[c],d=e[l];u<=r[s]&&r[s]+a<=d&&b[$x("0x5a")](i)}}}))}))}function r(n){const i=Array[$x("0x1f")](e[$x("0x0")]()).map((t=>s.LiveRange[$x("0x5f")](t)));t.model[$x("0x10")]((e=>{const o=e[$x("0x3f")];n=n[$x("0x18")]((t=>$x("0x53")!=t[$x("0x44")].rootName)),e.setSelection(n),t[$x("0x58")].get($x("0x23")).refresh(),t.execute("removeTableRow",{forceDefaultExecution:!0}),t.model.enqueueChange((()=>{t[$x("0x5")][$x("0x40")](o,(t=>{const e=i[$x("0x18")]((t=>$x("0x53")!=t[$x("0x44")][$x("0x8")]));e[$x("0x7e")]>0&&t[$x("0x57")](e);for(const t of i)t.detach()}))}))}))}function a(n){t[$x("0x5")][$x("0x10")]((i=>{const o=Array[$x("0x1f")](e.getRanges())[$x("0x4b")]((t=>s.LiveRange[$x("0x5f")](t))),r=[];for(const t of n)for(const e of t[$x("0x56")]({shallow:!0}))r[$x("0x2f")](e);for(const e of r)"$graveyard"!=e[$x("0x44")][$x("0x8")]&&(i[$x("0x57")](i.createPositionAt(e,0)),t[$x("0x58")][$x("0x19")]("removeTableColumn").refresh(),t[$x("0x78")]($x("0x4c"),{forceDefaultExecution:!0}));const x=o.filter((t=>$x("0x53")!=t.root[$x("0x8")]));x[$x("0x7e")]>0&&i.setSelection(x);for(const t of o)t.detach()}))}function c(t,e){return e[$x("0x68")]((e=>t.some((t=>t.end[$x("0x51")](e[$x("0x80")])||e[$x("0x6d")].isEqual(t[$x("0x80")])))))}function l(t,e){return t[$x("0x17")]((t=>e[$x("0x17")]((e=>t[$x("0x6d")].isTouching(e[$x("0x80")])))))}t.data[$x("0x31")].on($x("0x71"),((t,e,n)=>{if(!n[$x("0x76")][$x("0x4")])return;const i=e[$x("0x20")];if(!i)return;const o=n[$x("0x6f")].toViewElement(i);function r(t){return Array[$x("0x7")](t)?t:[t]}o&&$x("0x35")===i.name&&(0,x.setHighlightHandling)(o,n.writer,((t,e,n)=>n.addClass(r(e[$x("0x26")]),t)),((t,e,n)=>n.removeClass(r(e.classes),t)))}),{priority:$x("0x67")}),i._descriptionFactory.registerDescriptionCallback((t=>{if($x("0x49")!=t[$x("0x5b")]&&$x("0x32")!=t[$x("0x5b")])return;const e=t.getContainedElement();if(null!=e&&e.is($x("0x7c"),$x("0x83"))){if($x("0x49")==t[$x("0x5b")]){const e=t.getItems()[$x("0x18")]((t=>t.is($x("0x5c"))))[$x("0x4b")]((t=>t[$x("0x45")]));if(e[$x("0x7e")])return{type:$x("0x49"),content:Ji(n,$x("0x2c"),Ji(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[$x("0x48")](" ")+'"'))}}if($x("0x32")==t[$x("0x5b")]){const e=t.getItems().filter((t=>t.is($x("0x5c")))).map((t=>t[$x("0x45")]));if(e[$x("0x7e")])return{type:$x("0x32"),content:Ji(n,$x("0x1a"),Ji(n,$x("0x3e"),'"'+e[$x("0x48")](" ")+'"'))}}}})),i[$x("0x13")].registerDescriptionCallback((t=>{if("tableRow"==t[$x("0x30")]){const e=t[$x("0x56")]()[$x("0x18")]((t=>t.is("$textProxy"))).map((t=>t[$x("0x45")])),i=this[$x("0x1b")](t),o=i[$x("0x70")]-i[$x("0x27")]+1;if($x("0x49")==t[$x("0x5b")])return e[$x("0x7e")]?{type:$x("0x49"),content:Ji(n,$x("0x2c"),Ji(n,$x("0x6"),[o,'"'+e[$x("0x48")](" ")+'"']))}:{type:$x("0x49"),content:Ji(n,$x("0x2c"),Ji(n,$x("0x7b"),o))};if($x("0x32")==t[$x("0x5b")])return e[$x("0x7e")]?{type:$x("0x32"),content:Ji(n,"*Remove:* %0",Ji(n,$x("0x6"),[o,'"'+e[$x("0x48")](" ")+'"']))}:{type:$x("0x32"),content:Ji(n,$x("0x1a"),Ji(n,$x("0x7b"),o))}}if($x("0xf")==t.subType){const e=t[$x("0x56")]()[$x("0x18")]((t=>t.is("$textProxy"))).map((t=>t.data)),i=this[$x("0x1b")](t),o=i[$x("0x42")]-i[$x("0x62")]+1;if($x("0x49")==t.type)return e[$x("0x7e")]?{type:"insertion",content:Ji(n,"*Insert:* %0",Ji(n,$x("0x72"),[o,'"'+e[$x("0x48")](" ")+'"']))}:{type:$x("0x49"),content:Ji(n,$x("0x2c"),Ji(n,$x("0x33"),o))};if("deletion"==t[$x("0x5b")])return e[$x("0x7e")]?{type:$x("0x32"),content:Ji(n,$x("0x1a"),Ji(n,$x("0x72"),[o,'"'+e[$x("0x48")](" ")+'"']))}:{type:"deletion",content:Ji(n,$x("0x1a"),Ji(n,$x("0x33"),o))}}})),i[$x("0x4f")][$x("0x1d")]("insertion",$x("0x22"),"discard",r),i._suggestionFactory[$x("0x1d")]("deletion",$x("0x22"),$x("0x63"),r),i._suggestionFactory[$x("0x1d")]("insertion",$x("0xf"),$x("0x1c"),a),i[$x("0x4f")][$x("0x1d")]($x("0x32"),$x("0xf"),$x("0x63"),a),i[$x("0x4f")].registerCustomCallback("insertion",$x("0xf"),$x("0x48"),c),i[$x("0x4f")].registerCustomCallback("deletion",$x("0xf"),"join",c),i[$x("0x4f")][$x("0x1d")]($x("0x49"),$x("0x22"),$x("0x48"),l),i[$x("0x4f")][$x("0x1d")]($x("0x32"),"tableRow",$x("0x48"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this[$x("0x3a")],e=t[$x("0x5")][$x("0x9")][$x("0x11")];return(n,i)=>{t[$x("0x5")][$x("0x10")]((o=>{const{commandName:r,commandParams:x}=i;let a=n[0].end.nodeBefore;x&&x[0]&&!1===x[0][$x("0x65")]&&(a=n[0][$x("0x80")][$x("0xd")]);const c=o.createRangeIn(a);if($x("0x53")==c.root[$x("0x8")])return;const l=Array[$x("0x1f")](e[$x("0x0")]())[$x("0x4b")]((t=>s.LiveRange[$x("0x5f")](t)));o[$x("0x57")](c),t.commands.get(r)[$x("0x4d")](),x[$x("0x2f")]({forceDefaultExecution:!0}),t[$x("0x78")](r,...x);const u=l[$x("0x18")]((t=>$x("0x53")!=t[$x("0x44")].rootName));u[$x("0x7e")]>0&&o.setSelection(u);for(const t of l)t[$x("0x54")]()}))}}_getCoordsForCells(t){const e=this[$x("0x3a")][$x("0x3b")][$x("0x19")]("TableUtils");let n=Number[$x("0x6c")],i=Number[$x("0x6a")],o=Number.MAX_SAFE_INTEGER,r=Number[$x("0x6a")];for(const s of t){if("$graveyard"==s[$x("0x44")][$x("0x8")])continue;const{row:t,column:x}=e[$x("0x7f")](s),a=s[$x("0x1e")]("rowspan")?s.getAttribute($x("0x21"))-1:0,c=s[$x("0x1e")]("colspan")?s[$x("0x61")]($x("0x4e"))-1:0;n=t<n?t:n,i=t+a>i?t+a:i,o=x<o?x:o,r=x+c>r?x+c:r}return{minRow:n,maxRow:i,minColumn:o,maxColumn:r}}[$x("0x59")](){const t=this[$x("0x3a")],e=t[$x("0x3b")][$x("0x19")]($x("0x24")),n=t[$x("0x3b")][$x("0x19")]($x("0x2d"));t[$x("0x5")][$x("0x9")].on($x("0x74"),(()=>{const n=Array.from(t[$x("0x5")][$x("0x9")].differ.getChangedMarkers());for(const{name:t,data:i}of n){const{group:n,id:o,subType:r}=e[$x("0x66")](t);if($x("0x73")!=n)continue;if(null!=i[$x("0x84")])continue;const s=e[$x("0x29")](o);this[$x("0x52")][$x("0x28")](r)&&this[$x("0x82")].add(s)}}),{priority:$x("0x37")});const i=(t,e)=>{let i=!1;const o=e[$x("0x6b")](t),r=t.findAncestor($x("0x83")),s=n[$x("0x7f")](t);for(const e of this._tableSuggestions){const n=e.subType,x=n.startsWith($x("0x25")),a=n[$x("0x77")](x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+$x("0x3d"),u="min"+a,d=$x("0x55")+a;if(!e[$x("0x4a")])continue;if(r!=e.getFirstRange()[$x("0x80")][$x("0x47")]("table"))continue;if(e.isIntersectingWithRange(o))continue;const g=t[$x("0x1e")](l)?t.getAttribute(l)-1:0,f=this[$x("0x1b")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e.addRange(o),i=!0)}return i};t.model.document.registerPostFixer((e=>{let n=!1;for(const o of t[$x("0x5")][$x("0x9")][$x("0x12")][$x("0x50")]())if("insert"==o[$x("0x5b")])if($x("0x22")==o[$x("0x79")])for(const t of o.position[$x("0xd")][$x("0x2")]())n=n||i(t,e);else $x("0x35")==o[$x("0x79")]&&(n=n||i(o[$x("0x14")][$x("0xd")],e));return n}))}[$x("0x1b")](t){return this[$x("0xb")](t[$x("0x0")]()[$x("0x4b")]((t=>t.start[$x("0xd")])))}}function Zx(t){return Array[$x("0x1f")](new Set(t)[$x("0x46")]())}const Yx=["refresh","accept","length","TrackChangesEditing","commands","afterInit","from","rootName","setSelection","markMultiRangeBlockFormat","_descriptionFactory","mergeTableCellLeft","direction","getSelectionAffectedTableCells","createTableWalker","subType","highest","format","createRangeOn","getFirstPosition","getCellLocation","_suggestionFactory","registerCustomCallback","$graveyard","TableUtils","enableCommand","commandName","root","requires","getSuggestions","value","editor","mergeTableCellRight","TableEditing","change","*Split cell:* vertically","_areMergableCells","registerDescriptionCallback","map","get","mergeTableCellUp","stop","element","mergeTableCells","push","isInContent","filter","model","_areSelectedCellsMergable","formatBlock","tableCell","getAncestors","locale","deletion","*Merge cells*","plugins","isEnabled","getRanges","return","detach","cell","formatInline","document","*Split cell:* horizontally","has","splitTableCellVertically","selection","add","trackChanges","insertion","author","type","low","mergeTableCellDown","fromRange","_acceptFormatSuggestionCallbackFactory","splitTableCellHorizontally","set:isEnabled","size","table"];var Jx,Qx;Jx=Yx,Qx=172,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[ta("0x10")](){return[Xx]}[ta("0x49")](){const t=this[ta("0x13")],e=t.model[ta("0x32")][ta("0x36")],n=t[ta("0x28")];if(!t[ta("0x2b")].has(ta("0x15")))return;const i=t.plugins[ta("0x1b")](ta("0x47")),o=t[ta("0x2b")][ta("0x1b")](ta("0xc")),r=t[ta("0x2b")][ta("0x1b")](Xx);r._tablePostFixingSubtypes[ta("0x20")](ta("0x1f")),i[ta("0xd")]("mergeTableCells",(()=>{const e=o.getSelectionAffectedTableCells(t[ta("0x23")][ta("0x32")][ta("0x36")]);t[ta("0x23")][ta("0x16")]((()=>{i[ta("0x4d")](e,{commandName:ta("0x1f"),commandParams:[]},[],ta("0x1f"))}))})),t[ta("0x48")].get(ta("0x1f")).on("execute",((e,n)=>{t[ta("0x48")][ta("0x1b")](ta("0x38"))[ta("0x12")]&&(n[ta("0x46")]>0&&n[n[ta("0x46")]-1]&&n[n[ta("0x46")]-1].forceDefaultExecution||i._isForcedDefaultExecutionBlock||this[ta("0x24")]()||e[ta("0x1d")]())}),{priority:ta("0x4")});for(const e of[ta("0x1c"),ta("0x14"),"mergeTableCellDown",ta("0x4f")]){const n=t[ta("0x48")].get(e);i[ta("0xd")](e,(()=>{const e=t[ta("0x23")][ta("0x32")][ta("0x36")][ta("0x7")]()[ta("0x27")]().find((t=>t.is("element",ta("0x26")))),o=n[ta("0x12")];t[ta("0x23")][ta("0x16")]((()=>{i[ta("0x4d")]([e,o],{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[ta("0x35"),"splitTableCellHorizontally"]){const n=t[ta("0x48")][ta("0x1b")](e);i[ta("0xd")](e,(()=>{const r=o[ta("0x1")](t[ta("0x23")][ta("0x32")][ta("0x36")])[0],s=r.findAncestor(ta("0x43")),{column:x,row:a}=o[ta("0x8")](r);let c=[];if("horizontally"==n[ta("0x0")]){const t=o[ta("0x2")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ta("0x4a")](t).map((t=>t[ta("0x30")]))}else{const t=o.createTableWalker(s,{column:x,includeAllSlots:!0});c=Array[ta("0x4a")](t)[ta("0x1a")]((t=>t[ta("0x30")]))}t[ta("0x23")][ta("0x16")]((t=>{i.markBlockFormat(t[ta("0x6")](r),{commandName:e,commandParams:[]},c,e)}))}))}i[ta("0x4e")].registerDescriptionCallback((t=>{if("formatBlock"!=t[ta("0x3b")]&&ta("0x31")!=t[ta("0x3b")])return;const{data:e}=t;return e&&ta("0x1f")==e.commandName?{type:ta("0x5"),content:Ji(n,ta("0x2a"))}:void 0})),i[ta("0x4e")][ta("0x19")]((t=>{if(ta("0x25")!=t.type&&"formatInline"!=t[ta("0x3b")])return;const{data:e}=t;return e?ta("0x35")==e[ta("0xe")]?{type:"format",content:Ji(n,ta("0x17"))}:ta("0x40")==e[ta("0xe")]?{type:"format",content:Ji(n,ta("0x33"))}:void 0:void 0}));const x=r[ta("0x3f")]();for(const t of[ta("0x1c"),ta("0x14"),ta("0x3d"),"mergeTableCellLeft"])i._suggestionFactory[ta("0xa")](ta("0x25"),t,ta("0x45"),x);for(const t of[ta("0x35"),ta("0x40")])i._suggestionFactory[ta("0xa")](ta("0x25"),t,"accept",x);i[ta("0x9")][ta("0xa")](ta("0x25"),ta("0x1f"),ta("0x45"),(n=>{t[ta("0x23")][ta("0x16")]((i=>{const o=Array.from(e[ta("0x2d")]())[ta("0x1a")]((t=>s.LiveRange[ta("0x3e")](t)));i[ta("0x4c")](n),t[ta("0x48")].get("mergeTableCells")[ta("0x44")](),t.execute(ta("0x1f"),{forceDefaultExecution:!0});const r=o[ta("0x22")]((t=>ta("0xb")!=t[ta("0xf")][ta("0x4b")]));r[ta("0x46")]>0&&i.setSelection(r);for(const t of o)t[ta("0x2f")]()}))}));for(const e of[ta("0x1c"),"mergeTableCellDown",ta("0x4f"),ta("0x14")]){const n=t[ta("0x48")][ta("0x1b")](e);n.on(ta("0x41"),((e,i,o)=>{if(o){const i=t[ta("0x23")][ta("0x32")].selection.getFirstPosition()[ta("0x27")]().find((t=>t.is(ta("0x1e"),ta("0x26"))));this[ta("0x18")](n[ta("0x12")],i)||(e[ta("0x2e")]=!1,e[ta("0x1d")]())}}),{priority:ta("0x3c")})}}[ta("0x24")](){const t=this[ta("0x13")][ta("0x48")].get("mergeTableCells"),e=this.editor[ta("0x2b")][ta("0x1b")]("TableUtils");if(!t[ta("0x2c")])return!1;const n=e.getSelectionAffectedTableCells(this[ta("0x13")][ta("0x23")][ta("0x32")][ta("0x36")]);for(const t of n)for(const e of n)if(t!=e&&!this[ta("0x18")](t,e))return!1;return!0}[ta("0x18")](t,e){const n=this[ta("0x13")][ta("0x2b")][ta("0x1b")]("TrackChangesEditing"),i=this.editor[ta("0x23")][ta("0x6")](t),o=this[ta("0x13")][ta("0x23")][ta("0x6")](e),r=new Set,s=new Set;for(const t of n[ta("0x11")]())if((ta("0x39")==t.type||ta("0x29")==t[ta("0x3b")]||"mergeTableCells"==t[ta("0x3")])&&t[ta("0x21")])for(const e of t[ta("0x2d")]())e.containsRange(i,!0)&&r[ta("0x37")](t[ta("0x3b")]+":"+t.author.id),e.containsRange(o,!0)&&s[ta("0x37")](t[ta("0x3b")]+":"+t[ta("0x3a")].id);if(r[ta("0x42")]!=s[ta("0x42")])return!1;for(const t of r)if(!s[ta("0x34")](t))return!1;return!0}}const na=["FORMAT_HEADER_COLUMN","_splitMarkerName","addClass","commandName","registerAttributeLabel","has","*Format:* %0","FORMAT_HEADER_ROW","FORMAT_REGULAR_ROW","name","type","plugins","TableUtils","activeMarkers","TableEditing","accept","_descriptionFactory","locale","data","nodeAfter","downcastDispatcher","consume","highest","TrackChangesEditing","get","headingColumns","removeAttribute","removeClass","addMarker:suggestion","setTableColumnHeader","getSuggestion","commandParams","headingRows","item","registerCustomCallback","_suggestionFactory","data-suggestion","consumable","toViewElement","FORMAT_REGULAR_COLUMN","bindElementToMarker","editor","removeMarker:suggestion","start","_acceptFormatSuggestionCallbackFactory","mapper","_enableDefaultAttributesIntegration","ck-suggestion-marker--active","forceValue","_handleLegacySuggestions","stop","setTableRowHeader","showSuggestionHighlights","markerRange","format","formatBlock","markerName","getCellLocation","editing","options","_registerLegacyDescription","writer"];var ia,oa;ia=na,oa=421,function(t){for(;--t;)ia.push(ia.shift())}(++oa);const ra=function(t,e){return na[t-=0]};class sa extends t.Plugin{static get requires(){return[Xx]}afterInit(){const t=this.editor;if(!t[ra("0x18")][ra("0x12")](ra("0x1b")))return;const e=t[ra("0x1e")],n=t[ra("0x18")][ra("0x25")](ra("0x24"));n[ra("0x3b")](ra("0x2"),[],[ra("0x2d")]),n[ra("0x3b")](ra("0x2a"),[],[ra("0x26")]),n[ra("0x1d")][ra("0x11")](ra("0x2d"),Ji(e,ra("0x14"))),n[ra("0x1d")].registerAttributeLabel("headingColumns",Ji(e,ra("0xd"))),this[ra("0x0")]()}[ra("0x0")](){const t=this[ra("0x36")][ra("0x18")].get("TrackChangesEditing"),e=this.editor[ra("0x18")][ra("0x25")](ra("0x19")),n=this[ra("0x36")].plugins[ra("0x25")](Xx)[ra("0x39")]();function i({showActiveMarker:n=!0,setDataAttribute:i=!0}={}){return(o,r,s)=>{const{type:x,id:a}=t[ra("0xe")](r[ra("0x7")]),c=t.getSuggestion(a),l=c.data;if(ra("0x6")!=c[ra("0x17")]||!l||"setTableColumnHeader"!=l[ra("0x10")])return;if(r[ra("0x2e")])return void o[ra("0x1")]();if(!s[ra("0x32")][ra("0x22")](r[ra("0x4")],o[ra("0x16")]))return;const u=r[ra("0x4")][ra("0x38")][ra("0x20")],d=r[ra("0x4")].end.nodeBefore,g=u.parent.parent,{column:f}=e[ra("0x8")](u),{column:m}=e[ra("0x8")](d);for(let o=f;o<=m;o++){const c=e.createTableWalker(g,{column:o,includeAllSlots:!1});for(const e of c){const o=e.cell,c=s[ra("0x3a")][ra("0x33")](o);s.writer[ra("0xf")]("ck-suggestion-marker-"+x,c),i&&s[ra("0xc")].setAttribute("data-suggestion",a,c),s[ra("0x3a")][ra("0x35")](c,r[ra("0x7")]),n&&(t[ra("0x1a")].includes(r[ra("0x7")])?s[ra("0xc")][ra("0xf")]("ck-suggestion-marker--active",c):s[ra("0xc")][ra("0x28")](ra("0x3c"),c))}}}}t[ra("0x30")][ra("0x2f")](ra("0x6"),ra("0x2"),ra("0x1c"),n),t._suggestionFactory[ra("0x2f")](ra("0x6"),ra("0x2a"),ra("0x1c"),n),this[ra("0x36")][ra("0x9")][ra("0x21")].on(ra("0x29"),i(),{priority:ra("0x23")}),this[ra("0x36")][ra("0x1f")][ra("0x21")].on(ra("0x29"),((t,e,n)=>{n[ra("0xa")][ra("0x3")]&&i({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),this[ra("0x36")][ra("0x9")][ra("0x21")].on(ra("0x37"),((e,n,i)=>{const{type:o,id:r}=t[ra("0xe")](n[ra("0x7")]),s=t[ra("0x2b")](r),x=s.data;if(ra("0x6")!=s[ra("0x17")]||!x||ra("0x2a")!=x[ra("0x10")])return;const a=i[ra("0x3a")].markerNameToElements(n[ra("0x7")]);if(a)for(const t of a)i[ra("0xc")][ra("0x28")]("ck-suggestion-marker-"+o,t),i[ra("0xc")][ra("0x28")]("ck-suggestion-marker--active",t),i.writer[ra("0x27")](ra("0x31"),t),i[ra("0x3a")].unbindElementFromMarkerName(t,n.markerName)}),{priority:ra("0x23")}),this[ra("0xb")]()}[ra("0xb")](){const t=this.editor,e=t[ra("0x1e")];function n(t){return{type:ra("0x5"),content:Ji(e,ra("0x13"),t)}}t[ra("0x18")].get("TrackChangesEditing")[ra("0x1d")].registerDescriptionCallback((t=>{if("formatBlock"!=t[ra("0x17")])return;const{data:i}=t;if(i){if(ra("0x2")==i[ra("0x10")]){const t=i.commandParams[0][ra("0x3d")];return n(Ji(e,ra(t?"0x14":"0x15")))}if(ra("0x2a")==i.commandName){const t=i[ra("0x2c")][0][ra("0x3d")];return n(Ji(e,ra(t?"0xd":"0x34")))}}}))}}const xa=["markMultiRangeInsertion","tablePasteColumn","first","selection","tableCellBackgroundColor","TrackChangesEditing","ck-suggestion-marker","change","keys","unwrap","getSuggestionCallback","isEmpty","suggestion","getChangedMarkers","getAttributes","length","isInContent","nextSibling","deletion","name","previous","table","endRow","set","getChanges","markerName","tablePasteChainId","findAncestor","setAttributes","tableCellBorderColor","createRangeIn","getItems","endColumn","suggestion:formatBlock:tablePasteCell","getRowIndexes","cell","registerPostFixer","createPositionBefore","getChild","get","rootName","view","removeRows","tablePasteCell","model","getRows","paragraph","rows","tableCellBorderStyle","tableCellVerticalAlignment","getSuggestions","differ","forceDefaultExecution","requires","author","_tablePostFixingSubtypes","low","startsWith","row","columnInsertionIndexes","push","ck-suggestion-marker--active","getContainedElement","_suggestionFactory","wrap","_splitMarkerName","tableCell","getColumnIndexes","conversion","map","remove","Users","options","rowInsertionRanges","nodeAfter","newRange","oldRange","commands","insertion","next","column","setAttribute","insertContent","trackChanges","createTableWalker","getMarkers","*Replace table cells*","hasSuggestion","TableUtils","getSuggestion","insert","formatBlock","find","createRangeOn","stop","insertionRanges","batch","getChildren","TableClipboard","filter","return","rowInsertionIndexes","editor","markerAttributes","move","columnInsertionRanges","attributes","getAllAdjacentSuggestions","position","redo","element","tablePasteRow","includes","start","getColumns","from","getRanges","_descriptionFactory","join","insertColumns","markerToHighlight","subType","showSuggestionHighlights","schema","discard","root","markers","add","cells","tablePaste","containsRange","reduce","dataDowncast","fill","suggestionUnloaded","for","document","high","accept","value","getRange","_replaceTableSlotCell","_getCoordsForCells","tableCellSuggestion","markMultiRangeDeletion","removeColumns","removeMarkers","activeMarkers","removeMarker","isEqual","fromEntries","last","_isForcedDefaultExecutionBlock","createElement","registerCustomCallback","tableCellBorderWidth","plugins","content","has","locale","type","editingDowncast"];var aa,ca;aa=xa,ca=247,function(t){for(;--t;)aa.push(aa.shift())}(++ca);const la=function(t,e){return xa[t-=0]},ua=[la("0x46"),la("0x6a"),la("0x7d"),"tableCellHorizontalAlignment",la("0x7e"),la("0x51"),"tableCellPadding"],da=Object[la("0x41")](ua.map((t=>[t,null])));class ga extends t.Plugin{static get[la("0x82")](){return[Xx]}afterInit(){const t=this[la("0x11")];if(!t[la("0x47")][la("0x49")](la("0xd")))return;const n=t.plugins[la("0x74")](la("0x52")),i=t[la("0x47")][la("0x74")](la("0x3")),o=t[la("0x47")].get(Xx),r=t[la("0x47")][la("0x74")](la("0xd"));o[la("0x84")][la("0x89")](la("0x1a"),la("0x4e")),t.model[la("0x26")].register(la("0x3a"),{allowIn:la("0x8f"),allowContentOf:la("0x8f"),isLimit:!0}),t[la("0x91")].elementToElement({model:la("0x3a"),view:"suggestion-td"});let s=null;t[la("0x79")].on(la("0x9f"),((o,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[la("0x81")]||n[la("0x43")]||this[la("0x11")][la("0x9a")][la("0x74")](la("0xa0"))[la("0x36")]&&function(t,e,n,i,o){if(e&&!e.is("documentSelection"))return!1;const r=o.getTableIfOnlyTableInContent(t,n);if(!r||!ma(r,void 0,i))return!1;const s=i.getSelectionAffectedTableCells(n[la("0x33")][la("0x50")]);if(!s[la("0x5c")])return!1;const x=s[0].findAncestor("table"),a=i[la("0x6f")](s),c=i[la("0x90")](s),l={startRow:a[la("0x4f")],endRow:a[la("0x42")],startColumn:c[la("0x4f")],endColumn:c.last};return 1==s[la("0x5c")]&&(l[la("0x63")]+=i[la("0x7a")](r)-1,l[la("0x6d")]+=i[la("0x1d")](r)-1),ma(x,l,i)}(a,c,t.model,i,r)&&(o[la("0x9")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[la("0x79")][la("0x54")]((()=>{t[la("0x79")][la("0x9f")](x[0],x[1],x[2],{forceDefaultExecution:!0});const i=(0,e.uid)(),{rowInsertionRanges:o,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=s;o[la("0x5c")]&&n[la("0x4d")](o,la("0x1a"),{tablePasteChainId:i}),r[la("0x5c")]&&n[la("0x4d")](r,"tablePasteColumn",{tablePasteChainId:i}),a.length&&n.markMultiRangeInsertion(a,la("0x2c"),{tablePasteChainId:i,skipNestingCheck:!0}),c[la("0x5c")]&&n[la("0x3b")](c,la("0x2c"),{tablePasteChainId:i,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l[la("0x92")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],la("0x78"),{tablePasteChainId:i});if(u){const e=u.getMarkers(),n=[];for(const{element:i,attributes:o}of l){if(!o)continue;const r=t[la("0x79")][la("0x8")](i),s=e[la("0x7")]((t=>t[la("0x37")]()[la("0x40")](r)));s&&n[la("0x89")]([s[la("0x60")],o])}n.length&&u[la("0x9e")]("markerAttributes",Object.fromEntries(n))}s=null})))}),{priority:e.priorities[la("0x34")]+10}),t[la("0x47")].get("TableClipboard").on(la("0x38"),((t,e)=>{const[n,i,,o]=e;if(!s)return;t[la("0x9")]();const r=n[la("0x70")],x=i,a=fa(r),c=fa(x);t[la("0xf")]=r;let l=null,u=null;if(c||a)if(a&&!c){o[la("0x93")](r[la("0x73")](0));for(const t of Array.from(x[la("0xc")]()))o[la("0x5")](t,r,"end");const t=s[la("0x10")][la("0x1b")](n[la("0x87")]),e=s[la("0x88")][la("0x1b")](n[la("0x9d")]);t||e||(l=o[la("0x6b")](r))}else c&&!a&&(u=o.createRangeIn(r));else{const t=o[la("0x44")](la("0x3a")),e=o[la("0x44")](la("0x3a"));o[la("0x8d")](o[la("0x6b")](r),e),o[la("0x5")](t,r,0);for(const e of Array[la("0x1e")](x.getChildren()))o.insert(e,t,"end");l=o.createRangeOn(t),u=o[la("0x8")](e)}const d=Array[la("0x1e")](x[la("0x5b")]())[la("0xe")]((([t])=>ua[la("0x1b")](t)));s[la("0x2b")][la("0x89")]({element:r,attributes:d[la("0x5c")]?Object[la("0x41")](d):null}),l&&s[la("0xa")][la("0x89")](l),u&&s.deletionRanges[la("0x89")](u)}),{priority:"high"}),i.on(la("0x22"),((e,n)=>{const[o,r={}]=n;if(!s)return;const x=r.at||0,a=r.columns||1;s.columnInsertionIndexes=new Array(a)[la("0x30")](x).map(((t,e)=>t+e));for(const{cell:e}of i[la("0xa1")](o,{startColumn:x,endColumn:x+a-1}))s[la("0x14")][la("0x89")](t[la("0x79")].createRangeOn(e))}),{priority:la("0x85")}),i.on("insertRows",((e,n)=>{const[o,r={}]=n;if(!s)return;const x=r.at||0,a=r[la("0x7c")]||1;s[la("0x10")]=new Array(a).fill(x)[la("0x92")](((t,e)=>t+e));for(const{cell:e}of i[la("0xa1")](o,{startRow:x,endRow:x+a-1}))s[la("0x96")][la("0x89")](t[la("0x79")][la("0x8")](e))}),{priority:la("0x85")}),n[la("0x20")].registerDescriptionCallback((e=>{if(e[la("0x24")]&&e[la("0x24")].startsWith(la("0x2c")))return e.previous?{}:{type:la("0x9b"),content:Ji(t[la("0x4a")],la("0x1"))}}));const x=()=>!1;for(const t of["tablePaste",la("0x4e"),"tablePasteRow",la("0x78")])n._suggestionFactory[la("0x45")](la("0x9b"),t,"join",x),n[la("0x8c")][la("0x45")](la("0x5f"),t,la("0x21"),x),n[la("0x8c")][la("0x45")](la("0x6"),t,la("0x21"),x);n._suggestionFactory[la("0x45")](la("0x6"),"tablePasteCell",la("0x27"),x),n[la("0x8c")].registerCustomCallback("formatBlock","tablePasteCell",la("0x35"),((e,n,i)=>{const o=e[la("0x92")]((t=>t[la("0x8b")]()))[la("0xe")]((t=>t)),r=new Map(o[la("0x92")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s.cells)e&&r[la("0x64")](t,e);else if(i&&i[la("0x12")])for(const[e,n]of Object.entries(i[la("0x12")])){const i=t[la("0x79")][la("0x29")].get(e),o=i?i.getRange()[la("0x8b")]():null;o&&r[la("0x64")](o,n)}t.model.change((t=>{for(const[e,n]of r)t[la("0x69")]({...da,...n},e)}))}));const a=(e,i)=>{n[la("0x8c")][la("0x45")](e,la("0x2c"),i,((o,r,s)=>{t.model[la("0x54")]((t=>{const x=[];for(const t of o){const e=t[la("0x1c")][la("0x97")];e.is(la("0x19"),la("0x3a"))&&x[la("0x89")](e)}n._suggestionFactory[la("0x57")](e,null,i)(o,r,s);for(const e of x)"$graveyard"!=e[la("0x28")][la("0x75")]&&t[la("0x56")](e)}))}))};a(la("0x9b"),la("0x35")),a(la("0x9b"),la("0x27")),a("deletion",la("0x35")),a(la("0x5f"),la("0x27")),n[la("0x8c")][la("0x45")](la("0x9b"),"tablePasteRow","discard",(t=>{const e=t[la("0x92")]((t=>t[la("0x8b")]())),n=e[0][la("0x68")](la("0x62")),{minRow:r,maxRow:s}=o[la("0x39")](e);i[la("0x77")](n,{at:r,rows:s-r+1})})),n[la("0x8c")][la("0x45")](la("0x9b"),la("0x4e"),la("0x27"),(t=>{const e=t[la("0x92")]((t=>t[la("0x8b")]())),n=e[0][la("0x68")](la("0x62")),{minColumn:r,maxColumn:s}=o[la("0x39")](e);i[la("0x3c")](n,{at:r,columns:s-r+1})}));const c=(t,e)=>{if(!e[la("0x24")]||!e[la("0x24")][la("0x86")](la("0x2c")))return;const i=e.attributes[la("0x67")],o=n.getSuggestions()[la("0xe")]((t=>t[la("0x5d")]&&t[la("0x15")]&&t[la("0x15")].tablePasteChainId==i));o[la("0x5c")]&&e[la("0x16")]()[la("0x5c")]!=o[la("0x5c")]&&o[la("0x2e")](((t,e)=>(t[la("0x9c")]=e,e[la("0x61")]=t,e)))};function l(t,e=!0){const{id:i}=n[la("0x8e")](t[la("0x66")]),o=[la("0x53"),"ck-suggestion-marker-insertion"],r=n[la("0x3e")].includes(t[la("0x66")]);return r&&o[la("0x89")](la("0x8a")),{classes:o,attributes:{"data-suggestion":i},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:la("0x34")}),n.on(la("0x31"),c,{priority:"high"}),t[la("0x79")][la("0x33")].registerPostFixer((()=>{let e=!1;const i=Array[la("0x1e")](t[la("0x79")].document.differ[la("0x5a")]());for(const{name:o,data:r}of i){const{group:i,type:s,id:x}=n._splitMarkerName(o);if(la("0x59")!=i||la("0x5f")!=s||r.oldRange)continue;if(!n[la("0x2")](x))continue;const a=n[la("0x4")](x)[la("0x1f")](),c=t[la("0x47")][la("0x74")]("Users").me;for(const t of n[la("0x7f")]())if(t[la("0x5d")]&&t[la("0x83")]==c&&la("0x6")==t[la("0x4b")]&&la("0x78")==t[la("0x24")]&&t[la("0x1f")]().every((t=>a.some((e=>e[la("0x2d")](t,!0))))))for(const n of t[la("0x16")]())n[la("0x5d")]&&(n[la("0x27")](),e=!0)}return e})),t[la("0x79")][la("0x33")][la("0x71")]((e=>{const i=t.commands[la("0x74")](la("0x18"));if(!i||!i._createdBatches[la("0x49")](e[la("0xb")]))return!1;let o=!1;const r=t[la("0x47")].get(la("0x94")).me,s=t[la("0x79")][la("0x33")][la("0x80")][la("0x65")](),x=Array[la("0x1e")](t[la("0x79")][la("0x33")][la("0x80")].getChangedMarkers())[la("0xe")]((({name:t,data:e})=>{const{group:i,subType:o,authorId:s}=n._splitMarkerName(t);return la("0x59")==i&&"tablePaste"==o&&s==r.id&&!e[la("0x99")]}));for(const t of s){if(la("0x5")!=t[la("0x4b")]||la("0x3a")!=t[la("0x60")]||1!=t[la("0x5c")])continue;const n=e.createRange(t[la("0x17")],t.position.getShiftedBy(1));if(!x.find((({data:t})=>t.newRange[la("0x40")](n))))for(const{name:t,data:i}of x)if(n.containsRange(i[la("0x98")])){e.updateMarker(t,{range:n}),o=!0;break}}return o})),t[la("0x79")][la("0x33")][la("0x71")]((e=>{let i=!1;const o=t[la("0x47")].get("Users").me,r=n[la("0x7f")]()[la("0xe")]((t=>t[la("0x5d")]&&t[la("0x83")]==o)),s=new Set,x=new Set;for(const t of r)if("tablePaste"==t[la("0x24")])for(const e of t[la("0x0")]()){const n=e[la("0x37")]()[la("0x8b")]();if(n)if(n.is("element",la("0x3a"))&&fa(n)){t[la("0x3f")](e[la("0x60")]),s[la("0x2a")](n),i=!0;const o=n[la("0x5e")],r=n.previousSibling,a=o&&o.is("element","tableCellSuggestion"),c=r&&r.is(la("0x19"),"tableCellSuggestion");a&&!s.has(o)&&x[la("0x2a")](o),c&&!s.has(r)&&x[la("0x2a")](r)}else n.is(la("0x19"),la("0x7b"))&&n[la("0x58")]&&(t.removeMarker(e[la("0x60")]),i=!0)}else if(la("0x78")==t[la("0x24")]){if(!t[la("0x15")]||!t[la("0x15")][la("0x67")])continue;const e=t[la("0x15")][la("0x12")];if(e&&Object[la("0x55")](e)[la("0x5c")])continue;const n=t[la("0x15")][la("0x67")];let o=!0,s=!0;for(const e of r)if(e[la("0x24")]&&e[la("0x24")].startsWith(la("0x2c"))){if(!e[la("0x15")].tablePasteChainId){s=!1;break}if(e.id!=t.id&&e.attributes[la("0x67")]==n){o=!1;break}}s&&o&&(t[la("0x3d")](),i=!0)}for(const t of s)e[la("0x93")](t);for(const t of x)e[la("0x56")](t);return i})),t[la("0x91")][la("0x32")](la("0x4c")).markerToHighlight({model:la("0x6e"),view:(t,e)=>l(t),converterPriority:la("0x34")}),t.conversion[la("0x32")](la("0x2f"))[la("0x23")]({model:la("0x6e"),view:(t,e)=>e[la("0x95")][la("0x25")]?l(t,!1):null,converterPriority:la("0x34")});const u=t.editing[la("0x76")];this.listenTo(u[la("0x33")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[la("0x6b")](e[la("0x48")])[la("0x6c")]())t.is(la("0x19"),"suggestion-td")&&n[la("0x89")](t);u[la("0x54")]((t=>{for(const e of n)t[la("0x13")](t[la("0x6b")](e),t[la("0x72")](e)),t.remove(e)}))}))}}function fa(t){if(t[la("0x58")])return!0;const e=t[la("0x73")](0);return e.is(la("0x19"),la("0x7b"))&&e.isEmpty}function ma(t,e={},n){for(const{isAnchor:i,cellHeight:o,cellWidth:r}of n[la("0xa1")](t,{includeAllSlots:!0,...e}))if(!i||1!=o||1!=r)return!1;return!0}const ha=["afterInit","columnWidths","getContainedElement","registerDescriptionCallback","plugins","table","getColumnGroupElement","Users","locale","*Format:* resize table","TableColumnResizeEditing","get","tableWidth","formatInline","formatBlock","formatGroupId","editor","getAttribute","_suggestionFactory","model","document","selection","bind","getSelectedElement","getSuggestions","handleSuggestionDescription","discard","accept","author","markBlockFormat","handleResizeTableWidthCommand","commandParams","resizeTable","getSuggestionCallback","type","change","registerCustomCallback","resizeTableWidth"];var ba,pa;ba=ha,pa=318,function(t){for(;--t;)ba.push(ba.shift())}(++pa);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x18")](){if(!this[Ea("0x2")][Ea("0x1c")].has(Ea("0x22")))return;const t=this[Ea("0x2")][Ea("0x1c")][Ea("0x23")]("TrackChangesEditing");t.enableCommand(Ea("0x17"),this[Ea("0x10")][Ea("0x8")](this)),t[Ea("0x4")][Ea("0x16")](Ea("0x0"),Ea("0x12"),"accept",t[Ea("0x4")][Ea("0x13")]("formatBlock",null,Ea("0xc"))),t._suggestionFactory[Ea("0x16")](Ea("0x0"),Ea("0x12"),Ea("0xc"),t._suggestionFactory[Ea("0x13")]("formatBlock",null,Ea("0xd"))),t._descriptionFactory[Ea("0x1b")](this.handleSuggestionDescription[Ea("0x8")](this))}[Ea("0x10")](t,e){const n=this.editor[Ea("0x1c")].get("TrackChangesEditing"),i=this[Ea("0x2")][Ea("0x1c")][Ea("0x23")]("TableColumnResizeEditing"),o=e[Ea("0x1d")]||this[Ea("0x2")][Ea("0x5")][Ea("0x6")][Ea("0x7")][Ea("0x9")]();this.editor[Ea("0x5")][Ea("0x15")]((()=>{const r=i[Ea("0x1e")](o);let s=r?i.getTableColumnsWidths(r):null,x=o[Ea("0x3")](Ea("0x24"))||null;const a=e[Ea("0x24")]||x,c=e[Ea("0x19")]||s,l=this[Ea("0x2")][Ea("0x1c")][Ea("0x23")](Ea("0x1f")).me;for(const t of n[Ea("0xa")]()){const e=t[Ea("0x1a")]();if("resizeTable"===t.subType&&e===o){t[Ea("0xe")]!==l&&t[Ea("0xc")]();const e=t.data[Ea("0x11")];x=e[0].tableWidth,s=e[0][Ea("0x19")];break}}t({table:o,tableWidth:a,columnWidths:c}),n[Ea("0xf")](o,{commandName:Ea("0x17"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:Ea("0x12")},[],Ea("0x12"))}))}[Ea("0xb")](t){if(Ea("0x0")!=t.type&&Ea("0x25")!=t[Ea("0x14")])return;const{data:e}=t;if(e&&"resizeTable"===e[Ea("0x1")]){const t=Ea("0x21");return{type:"format",content:Ji(this[Ea("0x2")][Ea("0x20")],t)}}}}const Ta=["plugins","insertTemplate","editor","get","Template","TrackChangesEditing","enableCommand"];var ya,Ca;ya=Ta,Ca=129,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[Aa("0x6")];t[Aa("0x4")].has(Aa("0x1"))&&t.plugins[Aa("0x0")](Aa("0x2"))[Aa("0x3")](Aa("0x5"))}}const Sa=["get","enableCommand","registerElementLabel","commands","ELEMENT_TABLE_OF_CONTENTS","_descriptionFactory","editor","TrackChangesEditing","insertTableOfContents"];var Ra,Ia;Ra=Sa,Ia=289,function(t){for(;--t;)Ra.push(Ra.shift())}(++Ia);const va=function(t,e){return Sa[t-=0]};class La extends t.Plugin{afterInit(){const t=this[va("0x5")];if(!t[va("0x2")][va("0x8")]("insertTableOfContents"))return;t.plugins[va("0x8")](va("0x6"))[va("0x0")](va("0x7"));const e=t.plugins[va("0x8")](va("0x6")),n=t.locale;e[va("0x4")][va("0x1")]("tableOfContents",(t=>Ji(n,va("0x3"),t)))}}const Na=["get","isTouching","isEqual","from","differ","element","afterInit","suggestion","start","title-content","schema","registerElementLabel","_splitMarkerName","has","newRange","isCollapsed","model","removeMarker","getNearestSelectionRange","forward","end","_descriptionFactory","TrackChangesEditing","editor","document","registerPostFixer","plugins"];var Ma,wa;Ma=Na,wa=217,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return Na[t-=0]};class Fa extends t.Plugin{[Oa("0x5")](){const t=this[Oa("0x16")];if(!t.plugins[Oa("0xc")]("Title"))return;const e=t[Oa("0x19")][Oa("0x1a")](Oa("0x15"));e[Oa("0x14")][Oa("0xa")](Oa("0x8"),(()=>Ji(t.locale,"ELEMENT_TITLE"))),t[Oa("0xf")][Oa("0x17")][Oa("0x18")]((n=>{let i=!1;const o=Array[Oa("0x2")](t[Oa("0xf")][Oa("0x17")][Oa("0x3")].getChangedMarkers());for(const{name:r,data:s}of o){const{group:o}=e[Oa("0xb")](r);if(Oa("0x6")!==o||!s[Oa("0xd")])continue;const x=s[Oa("0xd")],a=x[Oa("0x13")].nodeBefore;if(!a||!a.is(Oa("0x4"),"title-content"))continue;if(!x[Oa("0x7")][Oa("0x0")](x.end))continue;const c=t[Oa("0xf")][Oa("0x9")][Oa("0x11")](x[Oa("0x13")],Oa("0x12"));if(c&&c[Oa("0xe")]){const t=n.createRange(x[Oa("0x7")],c.start);t[Oa("0x1")](x)||(n.updateMarker(r,{range:t}),i=!0)}i||(n[Oa("0x10")](r),i=!0)}return i}))}}const Da=["UndoEditing","enableCommand","has","undo","get","plugins","editor","TrackChangesEditing"];var Ba,Pa;Ba=Da,Pa=266,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{afterInit(){const t=this[Ua("0x4")],e=t[Ua("0x3")][Ua("0x2")](Ua("0x5"));t[Ua("0x3")][Ua("0x0")](Ua("0x6"))&&(e.enableCommand(Ua("0x1")),e[Ua("0x7")]("redo"))}}const Ga=["enableCommand","plugins","get","TableCaptionEditing","toggleTableCaption","afterInit","editor"];var Va,Ha;Va=Ga,Ha=109,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 requires(){return[Xx]}[za("0x1")](){const t=this[za("0x2")];t[za("0x4")].has(za("0x6"))&&t[za("0x4")][za("0x5")]("TrackChangesEditing")[za("0x3")](za("0x0"))}}const Ka=["findAncestor","*Format:* change table properties","document","_handlePropertyChange","selection","subType","*Format:* change table cell properties","_descriptionFactory","format","has","tableBorderColor","editor","tableBorderWidth","tableCellHeight","nodeAfter","handleDiscardAction","tableCellBorderWidth","join","getSelectionAffectedTableCells","formatBlock","tableBorderStyle","getSuggestions","table","get","tableCellVerticalAlignment","pluginName","getAttribute","plugins","tableCellProperties","model","tableCellPadding","locale","_getSuggestion","afterInit","tableCellWidth","_suggestionFactory","getContainedElement","removeAttribute","data","TableUtils","tableWidth","change","commandParams","start","tableProperties","discard","tableCellBackgroundColor","TrackChangesEditing","tableCellBorderStyle","enqueueChange","enableCommand","registerDescriptionCallback","tableHeight","TableCellPropertiesEditing","accept","registerCustomCallback","handleSuggestionDescription","getSuggestionCallback","markBlockFormat"];var qa,$a;qa=Ka,$a=123,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("0x27")]=[Xa("0x5"),Xa("0xf"),Xa("0x7"),"tableAlignment",Xa("0x23"),Xa("0x2f"),"tableBackgroundColor"],this[Xa("0x17")]=["tableCellBorderColor",Xa("0x2b"),Xa("0xb"),Xa("0x19"),Xa("0x1d"),Xa("0x8"),Xa("0x29"),"tableCellHorizontalAlignment",Xa("0x13")]}static get[Xa("0x14")](){return"TrackChangesTableProperties"}[Xa("0x1c")](){const t=this[Xa("0x6")].plugins[Xa("0x12")](Xa("0x2a"));if(this.editor[Xa("0x16")][Xa("0x4")]("TablePropertiesEditing")){for(const e of this[Xa("0x27")])t.enableCommand(e,((t,n)=>{const i=this[Xa("0x6")].model.document[Xa("0x3a")].getFirstPosition()[Xa("0x36")](Xa("0x11"));this[Xa("0x39")](e,[i],this[Xa("0x27")],Xa("0x27"),t,n)}));t[Xa("0x1e")][Xa("0x32")](Xa("0xe"),"tableProperties","accept",t[Xa("0x1e")][Xa("0x34")](Xa("0xe"),null,Xa("0x28"))),t[Xa("0x1e")].registerCustomCallback(Xa("0xe"),Xa("0x27"),Xa("0x28"),((t,e)=>this.handleDiscardAction(this[Xa("0x27")],t,e))),t[Xa("0x1e")][Xa("0x32")](Xa("0xe"),"tableProperties",Xa("0xc"),(()=>!1))}if(this.editor[Xa("0x16")].has(Xa("0x30"))){for(const e of this[Xa("0x17")])t[Xa("0x2d")](e,((t,n)=>{const i=this[Xa("0x6")][Xa("0x16")][Xa("0x12")](Xa("0x22"))[Xa("0xd")](this[Xa("0x6")][Xa("0x18")][Xa("0x38")][Xa("0x3a")]);this._handlePropertyChange(e,i,this[Xa("0x17")],Xa("0x17"),t,n)}));t[Xa("0x1e")][Xa("0x32")](Xa("0xe"),"tableCellProperties",Xa("0x31"),t._suggestionFactory[Xa("0x34")](Xa("0xe"),null,Xa("0x28"))),t[Xa("0x1e")][Xa("0x32")](Xa("0xe"),Xa("0x17"),Xa("0x28"),((t,e)=>this[Xa("0xa")](this[Xa("0x17")],t,e))),t[Xa("0x1e")][Xa("0x32")]("formatBlock",Xa("0x17"),Xa("0xc"),(()=>!1))}t[Xa("0x2")][Xa("0x2e")]((t=>this[Xa("0x33")](t)))}[Xa("0x39")](t,e,n,i,o,r){const s=this[Xa("0x6")][Xa("0x16")].get("TrackChangesEditing");this[Xa("0x6")][Xa("0x18")][Xa("0x2c")](r.batch,(()=>{for(const t of e)if(this[Xa("0x1b")](t,i))o(r);else{const e={};for(const i of n){const n=t[Xa("0x15")](i);void 0!==n&&(e[i]=n)}o(r),s[Xa("0x35")](t,{commandParams:[e]},[],i)}}))}[Xa("0xa")](t,e,n){const i=e[0][Xa("0x26")][Xa("0x9")],o=n[Xa("0x25")][0];this[Xa("0x6")][Xa("0x18")][Xa("0x24")]((e=>{for(const n of t)void 0!==o[n]?e.setAttribute(n,o[n],i):e[Xa("0x20")](n,i)}))}[Xa("0x33")](t){if(t[Xa("0x21")])switch(t.subType){case Xa("0x27"):return{type:Xa("0x3"),content:Ji(this[Xa("0x6")][Xa("0x1a")],Xa("0x37"))};case Xa("0x17"):return{type:"format",content:Ji(this[Xa("0x6")][Xa("0x1a")],Xa("0x1"))}}}_getSuggestion(t,e){const n=this[Xa("0x6")].plugins[Xa("0x12")](Xa("0x2a"));for(const i of n[Xa("0x10")]({skipNotAttached:!0})){const n=i[Xa("0x1f")]();if(i[Xa("0x0")]===e&&n===t)return i}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 ic=function(t){return nc(t)?void 0:t};var oc=ot?ot.isConcatSpreadable:void 0;const rc=function(t){return ge(t)||de(t)||!!(oc&&t&&t[oc])};const sc=function t(e,n,i,o,r){var s=-1,x=e.length;for(i||(i=rc),r||(r=[]);++s<x;){var a=e[s];n>0&&i(a)?n>1?t(a,n-1,i,o,r):sn(r,a):o||(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 i=arguments,o=-1,r=cc(i.length-e,0),s=Array(r);++o<r;)s[o]=i[e+o];o=-1;for(var x=Array(e+1);++o<e;)x[o]=i[o];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 i=gc(),o=16-(i-n);if(n=i,o>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 i=!1;e=ui(e,(function(e){return e=hi(e,t),i||(i=e.length>1),e})),re(t,dn(t),n),i&&(n=ti(n,7,ic));for(var o=e.length;o--;)Wi(n,e[o]);return n})),hc=["addAttribute","authoredAt","map","fire","mapper","change","type","_suggestionState","ariaLiveAnnouncer","authorName","newRange","resolve","enableCommand","registerPostFixer","_processAttributeChanges","trackChanges.trackFormatChanges","end","refresh","addMarkerName","backward","_SUGGESTION_ANNOUNCEMENT","removed","isObject","markerToData","$marker","comments","clone","conversion","addSuggestion","formatBlock","documentSelection","differ","tablePasteChainId","PendingActions","_getSuggestionData","next","assign","isDocumentOperation","_createSuggestion","format","_inlineAttributeKeys","isBlock","getChangedMarkers","$text","addRange","for","locale","getFirstMarker","discardSuggestion","getLastMatchingPosition","change:_saved","remove","getChanges","options","return","includes","toViewElement","getAncestors","isNextTo","fromRange","editor","isUndo","createPositionAt","attribute:join","_joinSuggestions","createRangeOn","isAtEnd","nodeBefore","acceptSelectedSuggestions","consume","_defaultCallbacks","adapter","setAttribute","markers","isCollapsed","getShiftedBy","suggestionUnloaded","isAfter","formatInline:chain","_cutOutSuggestionMarker","_blockAttributeKeys","catch","createRangeIn","containerElement","_checkSuggestionCorrectness","marker-count","model","isMultiRange","getMultiRangeId","config","sort","history","getDifference","ck-suggestion-marker--active","dataToMarker","markerReady","isInsideObject","filter","createRange","document","getNearestSelectionRange","root","updateSuggestion","addMarker:suggestion:attribute","insertion:chain","reconvertMarker","open","isEqual","range","addSuggestionData","_joinWithAdjacentSuggestions","startsWith","markerName","listenTo","update:suggestion","Users","high","originalSuggestionId","elementEnd","default","deletion:join","deletion","containsRange","_registerBlockAttribute","newValue","@external","_splitMarkerName","consumable","then","bindElementToMarker","addHighlight","chain","normal","track-changes-adapter-missing-getsuggestion","addMarker","$elementName","_recordAttributeChanges","unbind","name","_enabledCommands","schema","_suggestions","attribute:discard","_refreshSuggestionsChain","registerCustomCallback","isAtStart","_registerDefaultCallbacks","commentThread","getUser","removeClass","track-changes-command-not-found","suggestion:","_enableDefaultAttributesIntegration","isBefore","_handleNewSuggestionMarker","buildSuggestion","hasCommentThread","unshift","forward","change:data","isExternal","pluginName","isInContent","upcast","deletion:chain","formatBlock:","_setSuggestionRange","howMany","meta","editingDowncast","oldName","getSuggestions","_initAriaMarkerChangeAnnouncements","removeMarkers","nodeAfter","markBlockFormat","author","_getMarkerAnnouncementText","acceptAllSuggestions","commandName","_setSuggestionData","fromCharCode","changeAttribute","createdAt","getRanges","join","_reduceExistingSuggestions","get","containsRangeInObject","_removeSuggestion","trackChanges","_editor","_processAttributeSuggestions","getCommentThread","_getExternalAuthor","discard","hasComments","ready","formatBlock:chain","attribute:accept","_isForcedDefaultExecutionBlock","push","isArray","_registerInlineAttribute","isRemovable","markAttributeChange","parent","version","_customCallbacks","position","track-changes-adapter-already-set","FORMATTING","removeMarker","updateMarker","rootName","_breakSuggestionMarker","_getAuthorFromId","ck-suggestion-marker-formatInline","rejected","pop","notReady","multipleBlocks","lowest","detach","clear","track-changes-suggestion-data-mismatch","suggestionChanged","attributeOldValue","forEach","acceptSuggestion","hasSuggestion","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.","setTo","PENDING_ACTION_SUGGESTION","isOwn","trackChanges.mergeNestedSuggestions","elementStart","insert","setSelection","writer","$graveyard","isIntersectingWithRange","rethrowUnexpectedError","batch","define","_commentsRepository","_trackFormatChanges","formatInline:join","formatBlock:join","getAllAdjacentSuggestions","suggestion","has","removeAttribute","toJSON","item","suggestionLoaded","_refreshAttributeSuggestionsChain","track-changes-user-not-found","track-changes-enable-command-twice","getFirstRange","enableReadOnlyMode","error-saving-suggestion-data-suggestion-discarded","add","rename","isLocal","find","commands","_findSuggestions","insertion:accept","start","oldValue","always","some","markInlineFormat","change:activeMarkers","getCustomProperty","stop","addComment","ck-suggestion-marker","getItems","dataDowncast","getMarkers","_reduceSuggestionAttributeRange","selection","value","_isDataLoaded","elementToElement","external:","_mergeNestedSuggestions","insertion","_model","isLimit","showSuggestionHighlights","delete","moveTargetPosition","splice","stopListening","_isBlockAttribute","formatGroupId","_adapter","unbindElementFromMarkerName","never","_saved","groupId","keys","split","insertion:discard","ck-suggestion-marker-formatBlock","warn","deleteContent","from","collaboration.channelId","track-changes-suggestion-not-found","targetPosition","_suggestionFactory","trackChangesCommand","plugins","getOperations","getAttribute","getIntersection","attribute:","every","insertion:","editing","announce","suggestion-type","getWalker","key","element","multi","forceDefaultExecution","after","_recordAttributeSuggestionsFromVersion","_updateSuggestionData","set","addMarker:suggestion:formatBlock","formatInline","markerNameToElements","addMarker:suggestion","size","insertion:join","isIntersecting","containsPosition","skipNestingCheck","markDeletion","getSuggestionCallback","values","discardSelectedSuggestions","markMultiRangeBlockFormat","_rangeIsInLocalUserInsertion","previous","getSuggestion","createPositionAfter","markInsertion","removeMarker:suggestion:attribute","createSelection","discardAllSuggestions","data","accepted","enqueueChange","activeMarkers","markMultiRangeInsertion","widget","attributes","attribute","addClass","data-suggestion","deletion:discard","subType","addCommentThread","length","insertContent","oldRange","creator","dataReady","accept","formatInline:","_addThreadToSuggestion","_addSuggestionMarker","TrackChangesEditing"];var bc,pc;bc=hc,pc=194,function(t){for(;--t;)bc.push(bc.shift())}(++pc);const Ec=function(t,e){return hc[t-=0]},_c="$elementName";class Tc extends t.Plugin{static get requires(){return["CommentsRepository",r.Users,t.PendingActions,ao,fo,_o,ko,Do,No,Go,qo,rr,lr,mr,Tr,Sr,Mr,Br,Hr,$r,Qr,os,cs,Es,fs,As,vs,Os,Us,zs,Ys,nx,xx,dx,bx,Cx,Ix,wx,Ux,zx,Xx,ea,sa,Wa,ga,_a,La,Za,ka,Fa,ja]}static get[Ec("0x15b")](){return Ec("0xb9")}constructor(t){function e(t){return t[Ec("0xbc")]((t=>String[Ec("0x16f")](t)))[Ec("0x173")]("")}super(t),this[Ec("0x8a")]=null,this[Ec("0x8c")]("activeMarkers",[]),this.on(Ec("0x50"),((e,n,i,o)=>{this[Ec("0x60")][Ec("0xbf")]((()=>{for(const e of[...o,...i])this[Ec("0x60")][Ec("0x103")].has(e)&&t[Ec("0x81")][Ec("0x123")](e)}))})),this._descriptionFactory=new io(this[Ec("0xf6")][Ec("0x110")][Ec("0x146")],this.editor[Ec("0xe8")]),this[Ec("0x69")]=null,this[Ec("0x78")]=new yc(this[Ec("0xf6")]),this[Ec("0x147")]=new Map,this[Ec("0x33")]=t[Ec("0x7a")][Ec("0x175")]("CommentsRepository"),this[Ec("0x145")]=new Set,this._model=this[Ec("0xf6")][Ec("0x110")],this[Ec("0xc1")]=new WeakMap,this[Ec("0x6")]=!1,this._blockAttributeKeys=new Set([Ec("0x141")]),this[Ec("0xe2")]=new Set,t[Ec("0x113")][Ec("0x32")](Ec("0xc9"),Ec("0x131")),this[Ec("0x34")]=t[Ec("0x113")][Ec("0x175")](Ec("0xc9")),t[Ec("0x113")].define(Ec("0x29"),!0),this[Ec("0x5e")]=t.config[Ec("0x175")](Ec("0x29")),this[Ec("0x79")]=new d(t,this[Ec("0x145")]),this[Ec("0x166")](),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,48])}init(){const t=this[Ec("0xf6")],n=(t,e)=>{if(Ec("0xaa")!=t)return"ck-suggestion-marker-"+t;const n=e[Ec("0x6f")]("|")[0];return this[Ec("0x67")](n)?Ec("0x71"):Ec("0x17")};t[Ec("0xd5")][Ec("0xe7")](Ec("0x163")).markerToHighlight({model:Ec("0x38"),view:t=>{const{id:e,type:i,subType:o}=this._splitMarkerName(t[Ec("0x12a")]),r=["ck-suggestion-marker",n(i,o)];let s=3e3;return this.activeMarkers[Ec("0xf1")](t[Ec("0x12a")])&&(r[Ec("0x7")](Ec("0x117")),s=3010),"deletion"==i&&(s+=5),{classes:r,attributes:{"data-suggestion":e},priority:s}}}),t[Ec("0xd5")][Ec("0xe7")](Ec("0x56"))[Ec("0x44")]((e=>{e.on(Ec("0x90"),((e,n,i)=>{if(!i[Ec("0xef")][Ec("0x62")])return;const o=n[Ec("0x3c")];if(!o)return;const r=i.mapper.toViewElement(o);t[Ec("0x110")][Ec("0x146")][Ec("0xd0")](o)&&r&&!r[Ec("0x51")](Ec("0xa8"))&&r.is(Ec("0x10d"))&&(0,x.toWidget)(r,i[Ec("0x2d")])}),{priority:Ec("0x12e")})})),t[Ec("0xd5")].for(Ec("0x56")).markerToHighlight({model:"suggestion",view:(t,e)=>{if(!e[Ec("0xef")][Ec("0x62")])return null;const{type:i,subType:o}=this[Ec("0x138")](t[Ec("0x12a")]);return{classes:[Ec("0x54"),n(i,o)],priority:3e3}}});const i=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(i,o,r)=>{if(!o[Ec("0x3c")])return;const{id:s}=this[Ec("0x138")](o[Ec("0x12a")]);if(n){const t=wc(this[Ec("0x147")][Ec("0x175")](s));if(!this._isBlockAttribute(t))return}if(o.item.is(Ec("0x59")))return void r[Ec("0x139")][Ec("0xff")](o[Ec("0x3c")],i.name);const x=r.mapper[Ec("0xf2")](o[Ec("0x3c")]);if(o[Ec("0x3c")].is(Ec("0x86"))&&t[Ec("0x110")][Ec("0x146")][Ec("0xe3")](o[Ec("0x3c")])&&!x[Ec("0x51")](Ec("0x13c"))){r[Ec("0x2d")].addClass([Ec("0x54"),"ck-suggestion-marker-formatBlock"],x),r[Ec("0x2d")].setAttribute(Ec("0xac"),s,x),r[Ec("0xbe")][Ec("0x13b")](x,o[Ec("0x12a")]),e&&(this[Ec("0xa6")][Ec("0xf1")](o.markerName)?r[Ec("0x2d")][Ec("0xab")](Ec("0x117"),x):r[Ec("0x2d")][Ec("0x14f")]("ck-suggestion-marker--active",x));for(const e of t[Ec("0x110")][Ec("0x10c")](o[Ec("0x3c")])[Ec("0x55")]())r.consumable.consume(e,i[Ec("0x144")]);r[Ec("0x139")][Ec("0xff")](o[Ec("0x3c")],i.name)}};t.conversion[Ec("0xe7")](Ec("0x56"))[Ec("0x44")]((t=>{t.on(Ec("0x8d"),((t,e,n)=>{n[Ec("0xef")].showSuggestionHighlights&&i({showActiveMarkers:!1})(t,e,n)}),{priority:"highest"})})),t.conversion.for(Ec("0x56"))[Ec("0x44")]((t=>{t.on(Ec("0x121"),((t,e,n)=>{n[Ec("0xef")][Ec("0x62")]&&i({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:"highest"})})),t[Ec("0xd5")][Ec("0xe7")](Ec("0x56"))[Ec("0xd1")]({model:Ec("0x38"),view:(t,e)=>e[Ec("0xef")][Ec("0x62")]?null:{group:Ec("0x38"),name:t.substr(11)}}),t[Ec("0xd5")][Ec("0xe7")](Ec("0x15d"))[Ec("0x5c")]({view:{name:Ec("0x38"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Ec("0x151")+t[Ec("0x7c")](Ec("0x83"))+":"+t[Ec("0x7c")]("id");return t[Ec("0x7c")](Ec("0x10f"))&&(n+=":"+t[Ec("0x7c")](Ec("0x10f"))),e.createElement(Ec("0xd2"),{"data-name":n})}}),t[Ec("0xd5")].for(Ec("0x15d"))[Ec("0x118")]({view:Ec("0x38")}),t[Ec("0xd5")][Ec("0xe7")]("editingDowncast")[Ec("0x44")]((t=>{t.on(Ec("0x8d"),i(),{priority:Ec("0x12e")})})),t.conversion.for(Ec("0x163"))[Ec("0x44")]((t=>{t.on("addMarker:suggestion:attribute",i({isAttributeSuggestion:!0}),{priority:Ec("0x12e")})})),t[Ec("0xd5")][Ec("0xe7")](Ec("0x163"))[Ec("0x44")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const i=n.mapper[Ec("0x8f")](e.markerName);if(i)for(const t of i)t[Ec("0x51")](Ec("0x13c"))||(n[Ec("0x2d")].removeClass(["ck-suggestion-marker",Ec("0x71"),Ec("0x117")],t),n.writer[Ec("0x3a")](Ec("0xac"),t),n[Ec("0xbe")].unbindElementFromMarkerName(t,e.markerName))}),{priority:Ec("0x12e")})})),t[Ec("0xd5")].for("editingDowncast")[Ec("0x44")]((t=>{t.on(Ec("0xa0"),((t,e,n)=>{const i=n[Ec("0xbe")][Ec("0x8f")](e[Ec("0x12a")]);if(!i)return;const{id:o}=this[Ec("0x138")](e.markerName),r=wc(this._suggestions.get(o));if(this._isBlockAttribute(r))for(const t of i)t[Ec("0x51")](Ec("0x13c"))||(n[Ec("0x2d")].removeClass([Ec("0x54"),Ec("0x71"),Ec("0x117")],t),n[Ec("0x2d")][Ec("0x3a")]("data-suggestion",t),n[Ec("0xbe")][Ec("0x6a")](t,e[Ec("0x12a")]))}),{priority:Ec("0x12e")})})),t.model[Ec("0x11d")][Ec("0xc7")]((e=>{let n=!1;const i=Array[Ec("0x74")](t[Ec("0x110")][Ec("0x11d")].differ.getChangedMarkers()),o=new Set;for(const{name:x,data:a}of i){const{group:i,type:c,subType:l,id:u}=this[Ec("0x138")](x);if(Ec("0x38")!==i)continue;const d=this[Ec("0x147")][Ec("0x175")](u);if(null!=a[Ec("0xc4")]){Ec("0x8e")==c&&(n=n||kc(a.newRange,x,e,t[Ec("0x110")].schema));const i=Ec("0xaa")==c&&this._isBlockAttribute(l[Ec("0x6f")]("|")[0]);if(a[Ec("0xc4")][Ec("0x104")]||"$graveyard"==a.newRange[Ec("0x11f")][Ec("0x14")]||Ec("0xd7")==c&&!Rc(a[Ec("0xc4")])||i&&!Rc(a[Ec("0xc4")])||"deletion"==c&&(Ac(s=a[Ec("0xc4")])||(r=s)[Ec("0x4b")][Ec("0xc")]==r.end[Ec("0xfd")]&&r[Ec("0x4b")].isAtEnd))e[Ec("0x12")](x),n=!0;else{if(!d||!d[Ec("0x15c")])continue;o[Ec("0x44")](d)}}}var r,s;return o.size>0&&(n=!!this._joinWithAdjacentSuggestions(o)||n),n})),t.model.document[Ec("0xc7")]((e=>{let n=!1;for(const i of t[Ec("0x110")].document.differ[Ec("0xee")]())if(Ec("0x2b")==i[Ec("0xc0")])for(const i of this._suggestions[Ec("0x98")]()){if(i[Ec("0x111")]||!i[Ec("0x15c")])continue;const o=Ec("0xd7")==i[Ec("0xc0")],r=wc(i),s=r&&this._isBlockAttribute(r);if(!o&&!s)continue;const x=i.getFirstRange();if(x[Ec("0x4b")][Ec("0xc")]!=x[Ec("0xca")][Ec("0xc")]&&!x.end[Ec("0xfc")]){const o=t[Ec("0x110")][Ec("0xf8")](x[Ec("0x4b")][Ec("0x168")],Ec("0xca")),r=t[Ec("0x110")].createRange(x.start,o);e[Ec("0x13")](i[Ec("0xe9")](),{range:r}),n=!0}}return n})),t.model.document[Ec("0xc7")]((t=>this[Ec("0xc8")](t))),t[Ec("0x110")][Ec("0x11d")][Ec("0xc7")]((t=>!t.batch[Ec("0x46")]&&this[Ec("0x17a")](t))),t[Ec("0x110")].markers.on(Ec("0x12c"),((t,e,n)=>{if(null==n){const{id:t}=this[Ec("0x138")](e[Ec("0x144")]),n=this[Ec("0x147")][Ec("0x175")](t);n&&n[Ec("0xcc")](e[Ec("0x144")])}})),t.model[Ec("0x11d")].on(Ec("0x159"),(()=>{const e=Array[Ec("0x74")](t[Ec("0x110")].document[Ec("0xd9")][Ec("0xe4")]()).filter((t=>Ec("0x38")===this._splitMarkerName(t[Ec("0x144")]).group));if(0===e[Ec("0xb0")])return;e[Ec("0x114")](((t,e)=>{const n=t.data[Ec("0xb2")],i=e.data[Ec("0xb2")];return null===n&&null===i?0:null===n&&null!==i?-1:null!==n&&null===i?1:n[Ec("0x4b")][Ec("0x153")](i[Ec("0x4b")])?-1:1}));const n=new Set,i=new Set;for(const{name:t,data:o}of e){const{id:e}=this[Ec("0x138")](t);if(null===o.oldRange){const e=this[Ec("0x154")](t);i[Ec("0x44")](e)}else{const t=this[Ec("0x147")][Ec("0x175")](e);null!==o.newRange||t.isInContent?(n[Ec("0x44")](t.head),i[Ec("0x44")](t)):this[Ec("0x177")](t)}}i.size>0&&this._refreshSuggestionsChain(i);for(const t of n)this[Ec("0xbd")](Ec("0x20"),t)})),t[Ec("0x110")].on("applyOperation",((e,n)=>{const i=n[0];if(!this[Ec("0x147")][Ec("0x91")])return;if(!i[Ec("0xdf")])return;if(i[Ec("0x31")][Ec("0xf7")]||!i[Ec("0x31")].isLocal)return;let o,r;switch(i.type){case Ec("0x2b"):o=t[Ec("0x110")][Ec("0xf8")](i[Ec("0xf")]),r=o[Ec("0x105")](i[Ec("0x161")]);break;case Ec("0x6f"):o=t[Ec("0x110")][Ec("0xf8")](i.splitPosition),r=t[Ec("0x110")].createPositionAt(i[Ec("0x64")]);break;case"move":o=t[Ec("0x110")].createPositionAt(i[Ec("0x77")]),r=o[Ec("0x105")](i[Ec("0x161")]);break;default:return}const s=t.model[Ec("0x11c")](o,r);t[Ec("0x110")][Ec("0xbf")]((()=>{for(const{suggestion:t,meta:e}of this[Ec("0x49")](s)){if(t.isMultiRange)continue;if(Ec("0x8e")==t.type)continue;const n=wc(t);if(n&&this[Ec("0x67")](n)&&"split"!=i[Ec("0xc0")])continue;const x=t[Ec("0xa3")]&&t[Ec("0xa3")].multipleBlocks;("formatBlock"!=t.type||Ec("0x6f")==i[Ec("0xc0")]&&!x)&&(e[Ec("0x176")]||Ec("0x5f")==t[Ec("0xc0")]&&e[Ec("0x28")]||t[Ec("0x41")]()[Ec("0x134")](s)&&this[Ec("0x15")](t,o,r))}}))}),{priority:Ec("0x1c")}),t[Ec("0x110")].on(Ec("0x73"),((e,n)=>{const i=n[0],o=n[1];if(o&&o.forceDefaultExecution)return;if(this._isForcedDefaultExecutionBlock)return;if(!this.trackChangesCommand[Ec("0x5a")])return;if(i[Ec("0x104")])return;const r=t[Ec("0x110")][Ec("0x146")],{start:s,end:x}=i[Ec("0x41")](),a=s.nodeAfter&&r.isLimit(s[Ec("0x168")])?null:r[Ec("0x11e")](s,Ec("0x158")),c=x[Ec("0xfd")]&&r[Ec("0x61")](x[Ec("0xfd")])?null:r[Ec("0x11e")](x,"backward"),l=t[Ec("0x110")][Ec("0x11c")](a?a.start:s,c?c[Ec("0xca")]:x);t.model.change((e=>{this.markDeletion(l);const n=t.model[Ec("0x146")][Ec("0x11e")](l.start);i.is(Ec("0xd8"))?e[Ec("0x2c")](n):i[Ec("0x26")](n)})),e[Ec("0x52")]()}),{priority:e.priorities[Ec("0x13e")]+10}),t.model.on("insertContent",((e,n)=>{const i=n[n[Ec("0xb0")]-1];i&&i[Ec("0x88")]||this._isForcedDefaultExecutionBlock||this[Ec("0x79")][Ec("0x5a")]&&(t.model[Ec("0xbf")]((()=>{let i=t[Ec("0x110")][Ec("0xb1")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!i)return;e[Ec("0xf0")]=i[Ec("0xd4")]();const o=i[Ec("0xca")][Ec("0xfd")],r=t[Ec("0x110")][Ec("0x146")];o&&r[Ec("0xe3")](o)&&!r[Ec("0xd0")](o)&&(i=t[Ec("0x110")][Ec("0x11c")](i[Ec("0x4b")],t[Ec("0x110")][Ec("0xf8")](o,"end"))),this[Ec("0x9f")](i)})),e[Ec("0x52")]())}),{priority:Ec("0x12e")}),this[Ec("0xf6")][Ec("0x48")][Ec("0x44")]("trackChanges",this[Ec("0x79")]),this[Ec("0xc6")](Ec("0x178"));const o=new b(t,this[Ec("0x147")]);t[Ec("0x48")][Ec("0x44")]("acceptSuggestion",o),this.enableCommand(Ec("0x23"));const r=new y(t,this[Ec("0x147")]);t[Ec("0x48")].add(Ec("0xea"),r),this.enableCommand("discardSuggestion"),t[Ec("0x48")][Ec("0x44")](Ec("0x16c"),new F(t,o,this[Ec("0x147")])),this.enableCommand(Ec("0x16c")),t[Ec("0x48")][Ec("0x44")]("discardAllSuggestions",new F(t,r,this[Ec("0x147")])),this[Ec("0xc6")](Ec("0xa2")),t[Ec("0x48")].add(Ec("0xfe"),new j(t,o,this._suggestions)),this[Ec("0xc6")]("acceptSelectedSuggestions"),t[Ec("0x48")][Ec("0x44")](Ec("0x99"),new j(t,r,this[Ec("0x147")])),this.enableCommand(Ec("0x99"));const s=t[Ec("0x7a")][Ec("0x175")]("CommentsRepository");this[Ec("0x12b")](s,Ec("0x53"),((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n[Ec("0x14d")]&&1===n.commentThread.length&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:"low"}),this[Ec("0x12b")](s,"removeComment",((t,{threadId:e})=>{const n=this[Ec("0x147")].get(e);n&&n[Ec("0x14d")]&&!n.commentThread[Ec("0xb0")]&&this[Ec("0x8b")](e,{hasComments:!1})}),{priority:"low"})}set[Ec("0x101")](t){if(this[Ec("0x69")])throw new e.CKEditorError(Ec("0x10"),this);this[Ec("0x69")]=t}get[Ec("0x101")](){return this[Ec("0x69")]}[Ec("0x165")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Ec("0x147")][Ec("0x98")]())t&&!e[Ec("0x15c")]||n[Ec("0x7")](e);return e?n[Ec("0xbc")]((t=>t[Ec("0x3b")]())):n}[Ec("0x9d")](t){const n=this[Ec("0x147")][Ec("0x175")](t);if(!n)throw new e.CKEditorError(Ec("0x76"),this);return n}[Ec("0x24")](t){return this[Ec("0x147")][Ec("0x39")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:i}=t,[o,r]=t[Ec("0xc0")][Ec("0x6f")](":"),s=this[Ec("0x147")][Ec("0x175")](n)||this._createSuggestion(o,r,n,e,i);if(this[Ec("0xb7")](s),this[Ec("0x10e")](s,o,r||null,e),s.createdAt=t[Ec("0x171")],s[Ec("0x5b")]=!0,i&&i["@external"]){const t=i[Ec("0x137")],e=this[Ec("0x0")](t[Ec("0xc3")]);s[Ec("0xbb")]=t.createdAt,s.author=e,s[Ec("0x15a")]=!0}else s[Ec("0xbb")]=t[Ec("0x171")];switch(t[Ec("0xa3")]&&(s[Ec("0xa3")]=t.data),t.attributes&&(s.attributes=t[Ec("0xa9")]),this[Ec("0x69")]&&this._adapter[Ec("0xd6")]||(s[Ec("0x6c")]=!0),this[Ec("0xc1")][Ec("0x175")](s)){case"notReady":this[Ec("0xc1")][Ec("0x8c")](s,Ec("0xb4"));break;case Ec("0x119"):s[Ec("0x15c")]?(this[Ec("0x149")](new Set([s])),this[Ec("0x128")](new Set([s])),this[Ec("0xc1")].set(s,Ec("0x3")),this[Ec("0xbd")](Ec("0x3d"),s)):this[Ec("0xc1")].set(s,Ec("0xcf"))}return s}[Ec("0x23")](t){this[Ec("0x88")]((()=>{this[Ec("0xf6")][Ec("0x110")][Ec("0xbf")]((()=>{for(const e of t[Ec("0x37")]())e[Ec("0xb5")]()}))}))}[Ec("0xea")](t){this[Ec("0x88")]((()=>{this.editor[Ec("0x110")][Ec("0xbf")]((()=>{for(const e of t[Ec("0x37")]())e.discard()}))}))}enableCommand(t,n){const i=this[Ec("0xf6")][Ec("0x48")][Ec("0x175")](t);if(!i)throw new e.CKEditorError(Ec("0x150"),this,{commandName:t});if(this._enabledCommands.has(i))throw new e.CKEditorError(Ec("0x40"),this,{commandName:t});this._enabledCommands.add(i),n&&i.on("execute",((t,e)=>{this.trackChangesCommand[Ec("0x5a")]&&(this[Ec("0x6")]||(e[Ec("0xb0")]>0&&e[e.length-1]&&e[e.length-1][Ec("0x88")]?e[Ec("0x19")]():(t[Ec("0xf0")]=n(((...t)=>i.execute(...t,{forceDefaultExecution:!0})),...e),t[Ec("0x52")]())))}),{priority:Ec("0x12e")})}[Ec("0x88")](t){let n,i;const o=this._isForcedDefaultExecutionBlock;this[Ec("0x6")]=!0;try{n=t()}catch(t){i=t}return o||(this._isForcedDefaultExecutionBlock=!1),i&&e.CKEditorError[Ec("0x30")](i,this),n}[Ec("0x9f")](t,n=null,i={}){if(t[Ec("0x104")])return null;const o=this.editor[Ec("0x7a")][Ec("0x175")]("Users").me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,Ec("0x5f")))if(o.isOwn){if(!o[Ec("0xf4")]){if(o[Ec("0x176")]){if(!this[Ec("0x5e")]||!Nc(e,i))continue;return e}if(Nc(e,i))return e;this[Ec("0x15")](e,t[Ec("0x4b")],t[Ec("0xca")]);break}if(n==e[Ec("0xae")]&&Nc(e,i)){const n=e[Ec("0x41")]();return n.start[Ec("0x125")](t[Ec("0xca")])?this[Ec("0x160")](e,this[Ec("0x60")][Ec("0x11c")](t[Ec("0x4b")],n[Ec("0xca")])):this[Ec("0x160")](e,this[Ec("0x60")].createRange(n.start,t[Ec("0xca")])),e}}const r=(0,e.uid)(),s=o.id,x=n?"insertion:"+n:"insertion",a=this[Ec("0x16e")]({id:r,type:x,createdAt:new Date,authorId:s,attributes:i});return this[Ec("0xb8")](x,r,s,t),a}[Ec("0xa7")](t,n=Ec("0x87"),i={}){const o=this[Ec("0xf6")].plugins.get(Ec("0x12d")).me,r=this._suggestionFactory[Ec("0x97")]("insertion",n,Ec("0x173"));for(const e of this.getSuggestions())if(e[Ec("0x16a")].id==o.id&&"insertion"==e[Ec("0xc0")]&&e.subType==n&&Nc(e,i)&&(r(e.getRanges(),t)||r(t,e.getRanges()))){for(const n of t)e[Ec("0xe6")](n);return e}for(const{suggestion:e,meta:n}of this[Ec("0x49")](t,"insertion")){if(!n[Ec("0x28")])continue;if(!this[Ec("0x5e")]&&n[Ec("0x176")])continue;if(!Nc(e,i))continue;let o=!0;for(const n of e[Ec("0x172")]())for(const e of t)if(!n[Ec("0x134")](e)){o=!1;break}if(o)return e}const s=(0,e.uid)(),x=o.id,a=Ec("0x80")+n,c=this[Ec("0x16e")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:i});for(const e of t)this._addSuggestionMarker(a,s,x,e,Yi[Ec("0x112")]());return c}[Ec("0x4f")](t,n,i=null,o={}){if(i=i||Sc(n),t[Ec("0x104")])return null;if(Ec("0x6b")===this[Ec("0x34")]){const e=this[Ec("0x78")].getSuggestionCallback(Ec("0x8e"),i,Ec("0xb5"));return this[Ec("0x88")]((()=>e([t],n,o))),null}const r=this[Ec("0xf6")][Ec("0x7a")].get("Users").me,s=[];if(Ec("0x4d")!==this[Ec("0x34")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,Ec("0x5f")))n[Ec("0x28")]&&!n[Ec("0x11a")]&&s[Ec("0x7")](...e[Ec("0x172")]());const x=function(t,e){const n=[];for(const i of e){const e=t.getIntersection(i);e&&n[Ec("0x7")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Ec("0xb0")];){const i=n[e][Ec("0x116")](t);n[Ec("0x65")](e,1,...i),e+=i[Ec("0xb0")]}}return n}(t,s);x.length&&this[Ec("0x60")][Ec("0xbf")]((()=>{for(const t of x){const e=this[Ec("0x78")][Ec("0x97")](Ec("0x8e"),i,Ec("0xb5"));this.forceDefaultExecution((()=>e([t],n,o)))}}));for(const t of a){let s=null,x=t[Ec("0x4b")],a=t[Ec("0xca")];for(const{suggestion:e,meta:n}of this[Ec("0x49")](t,Ec("0x8e"))){if(!n[Ec("0x28")])continue;if(e[Ec("0xae")]!=i)continue;if(!Nc(e,o))continue;const r=e[Ec("0x41")]();if(r[Ec("0x134")](t,!0))return null;x=x.isBefore(r[Ec("0x4b")])?x:r[Ec("0x4b")],a=a[Ec("0x107")](r.end)?a:r[Ec("0xca")],s?r.start.isBefore(s[Ec("0x41")]().start)?(s[Ec("0x167")](),s=e):e[Ec("0x167")]():s=e}const c=this._model[Ec("0x11c")](x,a);if(s)this[Ec("0x160")](s,c);else{const t=(0,e.uid)(),s=r.id;this[Ec("0x16e")]({id:t,type:Ec("0xb6")+i,data:n,createdAt:new Date,authorId:s,attributes:o}),this[Ec("0xb8")](Ec("0xb6")+i,t,s,c)}}return null}[Ec("0x169")](t,n,i=[],o=null,r={}){n.formatGroupId||(n[Ec("0x68")]=n.commandName),n[Ec("0x1b")]=t.is(Ec("0x126")),o=o||Sc(n);const s=i[Ec("0xbc")]((t=>Ic(t,this[Ec("0x60")]))),x=t.is(Ec("0x126"))?t:Ic(t,this[Ec("0x60")]);if(Ec("0x6b")===this._trackFormatChanges){const t=this._suggestionFactory.getSuggestionCallback(Ec("0xd7"),o,Ec("0xb5"));return this[Ec("0x88")]((()=>t([x],n,r))),null}s.push(x);let a=!0;for(const t of s)if(!this[Ec("0x9b")](t)){a=!1;break}if(a&&Ec("0x4d")!==this[Ec("0x34")]){const t=this[Ec("0x78")][Ec("0x97")](Ec("0xd7"),o,Ec("0xb5"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[Ec("0x4b")],u=x[Ec("0xca")];for(const{suggestion:t,meta:e}of this[Ec("0x49")](x,"formatBlock")){if(!e[Ec("0x28")])continue;if(e[Ec("0xf4")]||e[Ec("0x176")]||e[Ec("0x11a")])continue;if(t.data[Ec("0x68")]!=n[Ec("0x68")])continue;if(!Nc(t,r))continue;const i=t[Ec("0x41")]();if(t[Ec("0xae")]==o){if(i[Ec("0x134")](x,!0))return null;l=l[Ec("0x153")](i[Ec("0x4b")])?l:i[Ec("0x4b")],u=u[Ec("0x107")](i[Ec("0xca")])?u:i.end,c?i.start[Ec("0x153")](c.getFirstRange()[Ec("0x4b")])?(c[Ec("0x167")](),c=t):t[Ec("0x167")]():c=t}else{const e=x[Ec("0x7d")](i);this[Ec("0x109")](t,e)}}const d=this[Ec("0xf6")][Ec("0x7a")][Ec("0x175")](Ec("0x12d")).me,g=(0,e.uid)(),f=d.id;if(c)return this[Ec("0x160")](c,this[Ec("0x60")].createRange(l,u)),c;{const t=this[Ec("0x16e")]({id:g,type:Ec("0x15f")+o,data:n,createdAt:new Date,authorId:f,attributes:r});return this._addSuggestionMarker(Ec("0x15f")+o,g,f,this[Ec("0x60")][Ec("0x11c")](l,u)),t}}[Ec("0x9a")](t,n,i=[],o=null,r={}){n[Ec("0x68")]||(n[Ec("0x68")]=n[Ec("0x16d")]);const s=t[0];n.multipleBlocks=s.is(Ec("0x126")),o=o||Sc(n);const x=i.map((t=>Ic(t,this[Ec("0x60")]))),a=s.is("range")?t:t[Ec("0xbc")]((t=>Ic(t,this[Ec("0x60")])));if(Ec("0x6b")===this[Ec("0x34")]){const t=this[Ec("0x78")].getSuggestionCallback(Ec("0xd7"),o,Ec("0xb5"));return this[Ec("0x88")]((()=>t(a,n,r))),null}x[Ec("0x7")](...a);let c=!0;for(const t of x)if(!this[Ec("0x9b")](t)){c=!1;break}if(c&&Ec("0x4d")!==this[Ec("0x34")]){const t=this._suggestionFactory[Ec("0x97")](Ec("0xd7"),o,Ec("0xb5"));return this[Ec("0x88")]((()=>t(a,n,r))),null}const l=this[Ec("0xf6")][Ec("0x7a")][Ec("0x175")](Ec("0x12d")).me;for(const t of this[Ec("0x165")]()){if(t[Ec("0x16a")].id!=l.id)continue;if(Ec("0xd7")!=t[Ec("0xc0")]||t.data[Ec("0x68")]!=n[Ec("0x68")])continue;if(!Nc(t,r))continue;const e=t[Ec("0xae")]==o;for(let n=0;n<a[Ec("0xb0")];n++){const i=a[n];for(const o of t[Ec("0x57")]()){const r=o.getRange();if(i[Ec("0x125")](r)){e?(a[Ec("0x65")](n,1),n--):t[Ec("0x12")](o[Ec("0x144")]);break}}}}if(0==a[Ec("0xb0")])return null;const u=this[Ec("0x78")].getSuggestionCallback(Ec("0xd7"),o,Ec("0x173"));for(const t of this[Ec("0x165")]())if(t.author.id==l.id&&Ec("0xd7")==t[Ec("0xc0")]&&t[Ec("0xa3")][Ec("0x68")]==n.formatGroupId&&t.subType==o&&Nc(t,r)&&(u(t[Ec("0x172")](),a)||u(a,t[Ec("0x172")]()))){for(const e of a)t[Ec("0xe6")](e);return t}const d=(0,e.uid)(),g=l.id,f=Ec("0x15f")+o,m=this[Ec("0x16e")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Ec("0xb8")](f,d,g,t,Yi[Ec("0x112")]());return m}[Ec("0x96")](t,n=null,i={}){if(t[Ec("0x104")])return null;const o=this.editor[Ec("0x7a")].get(Ec("0x12d")).me,r=new s.LiveRange(t[Ec("0x4b")],t.end);for(const{suggestion:t,meta:e}of this._findSuggestions(r,Ec("0x5f")))if(e[Ec("0x28")]&&!e[Ec("0xf4")])if(t[Ec("0x111")]){const e=t[Ec("0x172")]()[Ec("0x11b")]((t=>Ec("0x2e")!=t[Ec("0x11f")][Ec("0x14")]));if(e[Ec("0x7f")]((t=>r[Ec("0x134")](t,!0)))&&t[Ec("0x1")](),e.some((t=>t[Ec("0x134")](r,!0)))){const t=this[Ec("0x78")][Ec("0x97")]("deletion",n,Ec("0xb5"));return this[Ec("0x88")]((()=>t([r],null,i))),null}}else{const e=r[Ec("0x7d")](t[Ec("0x41")]());null!==e&&t._onDiscard([e],null,i)}if(r[Ec("0x1d")](),r[Ec("0x104")]||Ec("0x2e")==r[Ec("0x11f")][Ec("0x14")])return null;let x=null,a=r[Ec("0x4b")],c=r[Ec("0xca")];const l=this[Ec("0x49")](r,"deletion");for(const{suggestion:t,meta:e}of l){const n=this[Ec("0x60")][Ec("0x11c")](a,c);if(e[Ec("0x28")]&&(this[Ec("0x5e")]||!e[Ec("0x176")]&&!e[Ec("0x11a")]))if(t[Ec("0x111")]){if(!Nc(t,i))continue;let e=!0;for(const i of t.getRanges()){if(i.containsRange(n,!0))return t;n[Ec("0x134")](i)||(e=!1)}e&&t[Ec("0x1")]()}else{const e=t[Ec("0x41")]();if(e.containsRange(n,!0))return t;if(!Nc(t,i)){n.containsRange(e)?t[Ec("0x167")]():e[Ec("0x94")](a)?a=e[Ec("0xca")]:e.containsPosition(c)&&(c=e[Ec("0x4b")]);continue}a=a.isBefore(e[Ec("0x4b")])?a:e.start,c=c.isAfter(e[Ec("0xca")])?c:e[Ec("0xca")],i=Object[Ec("0xde")]({},t.attributes),x?e[Ec("0x4b")][Ec("0x153")](x[Ec("0x41")]().start)?(x[Ec("0x167")](),x=t):t[Ec("0x167")]():x=t}}if(x)return this._setSuggestionRange(x,this._model[Ec("0x11c")](a,c)),x;{const t=(0,e.uid)(),r=this._model.createRange(a,c),s=o.id,x=n?"deletion:"+n:Ec("0x133"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:s,attributes:i});return this[Ec("0xb8")](x,t,s,r),l}}markMultiRangeDeletion(t,n="multi",i={}){const o=this[Ec("0xf6")][Ec("0x7a")][Ec("0x175")](Ec("0x12d")).me,r=t[Ec("0xbc")]((t=>new s.LiveRange(t[Ec("0x4b")],t[Ec("0xca")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Ec("0x49")](r,"insertion"))e[Ec("0x28")]&&!e[Ec("0xf4")]&&x[Ec("0x44")](t);for(const e of x)if(e.isMultiRange){const o=e[Ec("0x172")]();if((!e.attributes||!e[Ec("0xa9")][Ec("0x95")])&&o.every((t=>r.some((e=>e[Ec("0x134")](t,!0)))))&&e[Ec("0x1")](),r[Ec("0x7f")]((t=>o.some((e=>e.containsRange(t,!0)))))){const e=this[Ec("0x78")][Ec("0x97")]("deletion",n,Ec("0xb5"));return this[Ec("0x88")]((()=>e(t,null,i))),null}}else{const t=e[Ec("0x41")]();if(r[Ec("0x4e")]((e=>e[Ec("0x134")](t,!0)))&&e.discard(),r[Ec("0x7f")]((e=>t[Ec("0x134")](e,!0)))){const t=this._suggestionFactory.getSuggestionCallback(Ec("0x133"),n,"accept");return this[Ec("0x88")]((()=>t(r,null,i))),null}}const a=this[Ec("0x78")][Ec("0x97")](Ec("0x133"),n,"join");let c=null;for(const t of this.getSuggestions())if(t[Ec("0x16a")].id==o.id&&t[Ec("0x15c")]&&Ec("0x133")==t[Ec("0xc0")]&&t[Ec("0xae")]==n&&Nc(t,i)&&(a(t[Ec("0x172")](),r)||a(r,t[Ec("0x172")]())))if(c){if(t[Ec("0x14d")]&&t[Ec("0x14d")][Ec("0xb0")])continue;for(const e of t[Ec("0x172")]())c.isIntersectingWithRange(e)||c.addRange(e);t.removeMarkers()}else{c=t;for(const e of r)t[Ec("0x2f")](e)||t[Ec("0xe6")](e)}if(c)return c;x[Ec("0x1e")]();for(const{suggestion:t,meta:e}of this[Ec("0x49")](r,"deletion"))e[Ec("0x28")]&&(this._mergeNestedSuggestions||!e[Ec("0x176")]&&!e[Ec("0x11a")])&&Nc(t,i)&&x[Ec("0x44")](t);for(const t of x){const e=t.getRanges();if((!i||!i[Ec("0x95")])&&r.every((t=>e[Ec("0x4e")]((e=>e.containsRange(t,!0))))))return t;(!t[Ec("0xa9")]||!t[Ec("0xa9")][Ec("0x95")])&&e[Ec("0x7f")]((t=>r[Ec("0x4e")]((e=>e[Ec("0x134")](t,!0)))))&&t[Ec("0x1")]()}const l=(0,e.uid)(),u=o.id,d="deletion:"+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:i});for(const t of r)t.detach(),t[Ec("0x104")]||Ec("0x2e")==t.root[Ec("0x14")]||this[Ec("0xb8")](d,l,u,t,Yi[Ec("0x112")]());return g}[Ec("0xb")](t,n,i,o,r){if(t[Ec("0x104")])return[];if("never"===this._trackFormatChanges)return[];const s=this.editor.plugins.get(Ec("0x12d")).me.id,x=Array[Ec("0x74")](this[Ec("0x147")][Ec("0x98")]())[Ec("0x11b")]((e=>"attribute"==e[Ec("0xc0")]&&e[Ec("0xa3")][Ec("0x85")]==n&&e[Ec("0x2f")](t)));if(Ec("0x131")===this[Ec("0x34")]){const e=this._findSuggestions(t,Ec("0x5f"))[Ec("0x11b")]((({meta:t})=>t.isOwn&&!t[Ec("0x11a")]&&!t.isNextTo))[Ec("0xbc")]((({suggestion:t})=>t));x[Ec("0x157")](...e)}const a=new Map([[t,i]]);for(const t of x){const e="attribute"==t.type?t[Ec("0xa3")][Ec("0x4c")]:void 0,r=t.getFirstRange(),s=Array[Ec("0x74")](a[Ec("0x6e")]())[Ec("0x47")]((t=>t[Ec("0x93")](r)));if(!s)continue;const x=s.getDifference(r);this._isBlockAttribute(n)&&Ec("0x5f")==t[Ec("0xc0")]&&0!=x[Ec("0xb0")]||(a[Ec("0x63")](s),x[Ec("0x22")]((t=>{a[Ec("0x8c")](t,i)})),Ec("0x5f")!=t[Ec("0xc0")]&&e!=o&&a[Ec("0x8c")](s[Ec("0x7d")](r),e))}const c=[];for(const[t,i]of a){const x=(0,e.uid)(),a={key:n,oldValue:i,newValue:o};n[Ec("0xb0")]>37&&console[Ec("0x72")](Ec("0x25"),{key:n});const l=(Ec("0x7e")+(n+"|")+Sc({newValue:o})).substring(0,60),u=this[Ec("0x16e")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:r});c[Ec("0x7")](u),this[Ec("0xb8")](l,x,s,t)}return c}[Ec("0x135")](t){this._blockAttributeKeys[Ec("0x44")](t)}_registerInlineAttribute(t){this[Ec("0xe2")][Ec("0x44")](t)}[Ec("0x152")](t,e=[],n=[]){this.enableCommand(t,((t,...e)=>{this[Ec("0x142")]((()=>{t(...e)}))}));for(const t of e)this[Ec("0x9")](t);for(const t of n)this[Ec("0x135")](t)}_setSuggestionRange(t,e){const n=t[Ec("0xe9")]();this._model[Ec("0xbf")]((t=>{t[Ec("0x13")](n,{range:e})}))}[Ec("0xb7")](t){const e=t.id,n=this[Ec("0xf6")].config[Ec("0x175")](Ec("0x75"));this._commentsRepository[Ec("0x156")](e)||this[Ec("0x33")][Ec("0xaf")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const i=this._commentsRepository[Ec("0x17b")](e);i[Ec("0x143")](Ec("0xa")),i[Ec("0xa")]=!1,t.commentThread=i}[Ec("0x10e")](t,n,i,o){if(t[Ec("0xc0")]!=n||t.subType!=i||t[Ec("0xb3")].id!=o)throw this[Ec("0xf6")][Ec("0x42")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(Ec("0x1f"),this)}[Ec("0x109")](t,n){const i=t[Ec("0x41")]();if(n[Ec("0x125")](i))t.removeMarkers();else if(i.containsRange(n)){const o=this[Ec("0x60")][Ec("0xf8")](n.start[Ec("0xfd")],Ec("0xca"));this[Ec("0x160")](t,this[Ec("0x60")][Ec("0x11c")](i[Ec("0x4b")],o));const r=(0,e.uid)(),s=t[Ec("0xb3")].id,x=t[Ec("0xc0")]+":"+t[Ec("0xae")];this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:s,data:t[Ec("0xa3")],attributes:t[Ec("0xa9")]});const a=this[Ec("0x60")][Ec("0xf8")](n[Ec("0xca")][Ec("0xc")],Ec("0x89")),c=this[Ec("0x60")][Ec("0x11c")](a,i[Ec("0xca")]);this._addSuggestionMarker(x,r,s,c)}else if(i[Ec("0x94")](n[Ec("0x4b")])){const e=this[Ec("0x60")][Ec("0xf8")](n[Ec("0x4b")][Ec("0xfd")],"end");this._setSuggestionRange(t,this[Ec("0x60")][Ec("0x11c")](i[Ec("0x4b")],e))}else{const e=this[Ec("0x60")][Ec("0xf8")](n[Ec("0xca")].parent,Ec("0x89"));this[Ec("0x160")](t,this[Ec("0x60")][Ec("0x11c")](e,i[Ec("0xca")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,Ec("0x5f"))){if(!n[Ec("0x28")])continue;const i=e[Ec("0x172")]();for(const e of i)if(!t[Ec("0x116")](e)[Ec("0xb0")])return!0}return!1}[Ec("0x16")](t){const n=this[Ec("0xf6")].plugins[Ec("0x175")]("Users")[Ec("0x14e")](t);if(!n)throw new e.CKEditorError(Ec("0x3f"),this);return n}[Ec("0x0")](t){const e=this[Ec("0xf6")][Ec("0x7a")].get(Ec("0x12d")),n=(0,r.hashObject)(Ec("0x5d")+t);return e[Ec("0x14e")](n)||e.addUser({id:n,name:t})}[Ec("0xe0")](t,e,n,i,o){const r=this[Ec("0x16")](i),s=this._suggestionFactory[Ec("0x155")](t,e,n,r,o,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(s,Ec("0xb5"),(()=>{this[Ec("0x8b")](n,{state:Ec("0xa4")})}),{priority:Ec("0x12e")}),this[Ec("0x12b")](s,Ec("0x1"),(()=>{this[Ec("0x8b")](n,{state:Ec("0x18")})}),{priority:"high"}),this[Ec("0x147")].set(n,s),this[Ec("0xc1")][Ec("0x8c")](s,Ec("0x1a")),s}[Ec("0x138")](t){const e=t[Ec("0x6f")](":");return{group:e[0],type:e[1],subType:e[Ec("0xb0")]>=5?e[2]:null,id:e[Ec("0xb0")]<5?e[2]:e[3],authorId:e[Ec("0xb0")]<5?e[3]:e[4],markerCount:6==e[Ec("0xb0")]?e[5]:null}}_breakSuggestionMarker(t,n,i){const o=t.getFirstRange(),r=o[Ec("0x4b")],s=o.end;this[Ec("0x160")](t,this[Ec("0x60")][Ec("0x11c")](r,n));const x=(0,e.uid)(),a=t[Ec("0xb3")].id,c=t[Ec("0xc0")]+(t[Ec("0xae")]?":"+t[Ec("0xae")]:"");this[Ec("0x16e")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Ec("0xa9")],data:t[Ec("0xa3")]});const l=wc(t);(Ec("0xd7")==t.type||l&&this._isBlockAttribute(l))&&(i=this[Ec("0x60")].createPositionBefore(i[Ec("0xc")])),this[Ec("0xb8")](c,x,a,this[Ec("0x60")].createRange(i,s))}_findSuggestions(t,e=null){const n=[],i=this[Ec("0xf6")][Ec("0x7a")][Ec("0x175")](Ec("0x12d")).me;Array[Ec("0x8")](t)||(t=[t]);for(const o of this.getSuggestions()){if(!o[Ec("0x15c")])continue;if(e&&o[Ec("0xc0")]!=e)continue;let r=!1;for(const e of o.getRanges()){for(const s of t){const t=s[Ec("0x4b")][Ec("0x125")](e[Ec("0xca")])||s.end[Ec("0x125")](e[Ec("0x4b")]);if(t||s[Ec("0x7d")](e)){const x=s.containsRange(e)&&Cc(this[Ec("0x60")][Ec("0x146")],e.start,s),a=e[Ec("0x134")](s)&&Cc(this._model.schema,s[Ec("0x4b")],e);n.push({suggestion:o,meta:{isOwn:i==o[Ec("0x16a")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[Ec("0xb8")](t,e,n,i,o){this[Ec("0x60")][Ec("0xbf")]((r=>{let s=Ec("0x151")+t+":"+e+":"+n;o&&(s=s+":"+o),r[Ec("0x140")](s,{range:i,usingOperation:!0,affectsData:!0})}))}[Ec("0x177")](t){const e=t[Ec("0x9c")],n=t[Ec("0xdd")];t.previous=null,t[Ec("0xdd")]=null,null!=e&&(e[Ec("0xdd")]=n),null!=n&&(n[Ec("0x9c")]=e),Ec("0x3")==this._suggestionState[Ec("0x175")](t)&&(this[Ec("0xc1")][Ec("0x8c")](t,Ec("0xcf")),this[Ec("0xbd")](Ec("0x106"),t,e,n))}[Ec("0x16e")](t){const n=t.id,i=this.addSuggestionData(t);if(this[Ec("0x69")]&&this[Ec("0x69")][Ec("0xd6")]){const o=this[Ec("0xf6")][Ec("0x7a")][Ec("0x175")](Ec("0xdb")),r=i[Ec("0x2")],s=i[Ec("0xae")]?i[Ec("0xc0")]+":"+i[Ec("0xae")]:i.type,x=this.editor.locale,a=o[Ec("0x44")](Ji(x,Ec("0x27"))),c={id:n,type:s,hasComments:r,data:t[Ec("0xa3")]||null,originalSuggestionId:t[Ec("0x12f")]||null,attributes:i[Ec("0xa9")]};this[Ec("0x69")][Ec("0xd6")](c)[Ec("0x13a")]((t=>{i._saved=!0,o.remove(a),t&&t[Ec("0x171")]&&(this[Ec("0x147")][Ec("0x175")](n)[Ec("0x171")]=t[Ec("0x171")])}))[Ec("0x10b")]((t=>{throw(0,e.logWarning)(Ec("0x43")),this[Ec("0xf6")][Ec("0x110")][Ec("0xa5")]({isUndoable:!1},(()=>{i[Ec("0x1")]()})),i[Ec("0x66")](),this._suggestions.delete(i.id),this[Ec("0xc1")][Ec("0x63")](i),t}))}return i}[Ec("0x67")](t){return this[Ec("0x10a")][Ec("0x39")](t)}[Ec("0x8b")](t,e){const n=this.editor.plugins[Ec("0x175")]("PendingActions"),i=this[Ec("0x9d")](t);if(this._adapter&&this[Ec("0x69")][Ec("0x120")])if(i[Ec("0x6c")]){const i=n.add(Ji(this[Ec("0xf6")][Ec("0xe8")],Ec("0x27")));this[Ec("0x69")][Ec("0x120")](t,e)[Ec("0x13a")]((()=>{n[Ec("0xed")](i)}))}else i.on(Ec("0xec"),(()=>{this._updateSuggestionData(t,e)}))}[Ec("0xdc")](t){if(!this[Ec("0x69")]||!this._adapter[Ec("0x9d")])throw new e.CKEditorError(Ec("0x13f"),this);return this[Ec("0x69")][Ec("0x9d")](t)}[Ec("0x154")](t){const{id:e,type:n,subType:i,authorId:o}=this[Ec("0x138")](t),r=this[Ec("0x147")][Ec("0x175")](e)||this._createSuggestion(n,i,e,o,{});switch(this[Ec("0x10e")](r,n,i,o),this[Ec("0xc1")][Ec("0x175")](r)){case Ec("0x1a"):this[Ec("0xdc")](e)[Ec("0x13a")]((t=>{let n=Promise[Ec("0xc5")]();t[Ec("0x2")]&&(n=this[Ec("0x33")].fetchCommentThread({channelId:this[Ec("0xf6")][Ec("0x113")][Ec("0x175")](Ec("0x75")),threadId:e})),n[Ec("0x13a")]((()=>{this[Ec("0x127")](t)._saved=!0}))})),this[Ec("0xc1")].set(r,Ec("0x119"));break;case Ec("0xcf"):this[Ec("0x8b")](e,{state:Ec("0x124")});case Ec("0xb4"):this._suggestionState.set(r,"ready"),this[Ec("0xbd")](Ec("0x3d"),r);break;case Ec("0x3"):this[Ec("0xbd")]("suggestionChanged",r)}return r[Ec("0xcc")](t),r}_refreshSuggestionsChain(t){const e=Array[Ec("0x74")](t),n=e[Ec("0x11b")]((t=>Ec("0xaa")==t[Ec("0xc0")]));this[Ec("0x3e")](n);const i=e[Ec("0x11b")]((t=>!t[Ec("0x111")]&&"attribute"!=t[Ec("0xc0")])),o=this.getSuggestions({skipNotAttached:!0}).filter((t=>!t[Ec("0x111")]&&Ec("0xaa")!=t[Ec("0xc0")])),r=o.filter((e=>!t[Ec("0x39")](e))),s=new Map(o.map((t=>[t,this[Ec("0x78")][Ec("0x97")](t[Ec("0xc0")],t[Ec("0xae")],Ec("0x13d"))]))),x=new Map(o[Ec("0xbc")]((t=>[t,t[Ec("0x41")]()]))),a=new Set,c=new Set;for(let t=0;t<i[Ec("0xb0")];t++)u(i[t],i,t+1);for(let t=0;t<i[Ec("0xb0")];t++)u(i[t],r,0);const l=new Set;for(let t=0;t<i[Ec("0xb0")];t++){const e=i[t];!c[Ec("0x39")](e)&&e.previous&&(l[Ec("0x44")](e.previous),e[Ec("0x9c")][Ec("0xdd")]===e&&(e[Ec("0x9c")][Ec("0xdd")]=null),e.previous=null),!a[Ec("0x39")](e)&&e.next&&(l[Ec("0x44")](e[Ec("0xdd")]),e[Ec("0xdd")][Ec("0x9c")]===e&&(e[Ec("0xdd")][Ec("0x9c")]=null),e.next=null)}function u(t,e,n){for(let i=n;i<e.length;i++){const n=d(t,e[i]);n&&(n[0][Ec("0xdd")]=n[1],n[1][Ec("0x9c")]=n[0],a[Ec("0x44")](n[0]),c[Ec("0x44")](n[1]))}}function d(t,e){if(t.author.id!==e[Ec("0x16a")].id)return null;const n=s[Ec("0x175")](t)(t,e,x[Ec("0x175")](t),x[Ec("0x175")](e));return n&&s.get(e)(t,e,x[Ec("0x175")](t),x[Ec("0x175")](e))?n[1][Ec("0x14d")]&&n[1][Ec("0x14d")].length?null:n:null}l.size&&this._refreshSuggestionsChain(l)}[Ec("0x3e")](t){if(0==t[Ec("0xb0")])return;const e=this[Ec("0x165")]({skipNotAttached:!0}).filter((t=>Ec("0xaa")==t[Ec("0xc0")]&&t._isDataLoaded)),n=[],i=new Map;for(const t of e){const e=(0,r.hashObject)(t[Ec("0xa9")]);i[Ec("0x39")](e)||(i[Ec("0x8c")](e,n[Ec("0xb0")]),n[Ec("0x7")]([]));const o=i.get(e);n[o][Ec("0x7")](t)}!function(){n[Ec("0x114")](((t,e)=>{const n=t[0].createdAt,i=e[0].createdAt;return n==i?t[0].attributes.groupId<e[0][Ec("0xa9")].groupId?-1:1:n<i?-1:1}));for(const t of n)t[Ec("0x114")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[Ec("0xb0")];t++){if(0==n[t][Ec("0xb0")])continue;const e=[];for(let i=t+1;i<n[Ec("0xb0")];i++)0!=n[i].length&&o(n[t],n[i])&&e.push(i);for(const i of e)n[t]=n[t].concat(n[i]),n[i]=[]}for(const t of n)for(let e=0;e<t[Ec("0xb0")];e++)t[e][Ec("0xdd")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[Ec("0xb0")];e++)t[e].previous=t[e-1]||null;function o(t,e){if(t[0].author!==e[0][Ec("0x16a")])return!1;if(n=t[0],i=e[0],(n[Ec("0x2")]||i[Ec("0x2")])&&(n[Ec("0x2")]&&i[Ec("0x2")]||!(n[Ec("0x2")]&&i[Ec("0x171")]<n[Ec("0x14d")].comments[Ec("0x175")](0)[Ec("0x171")]||i[Ec("0x2")]&&n.createdAt<i[Ec("0x14d")][Ec("0xd3")][Ec("0x175")](0).createdAt)))return!1;var n,i;const o=mc(t[0][Ec("0xa9")],Ec("0x6d")),r=mc(e[0].attributes,"groupId");return!!ji(o,r)&&(!!t[Ec("0x7f")]((t=>e.some((e=>t.getFirstRange()[Ec("0x125")](e.getFirstRange())))))&&e.every((e=>t[Ec("0x4e")]((t=>e.getFirstRange()[Ec("0x125")](t[Ec("0x41")]()))))))}}[Ec("0x128")](t){const e=Array[Ec("0x74")](t),n=this[Ec("0x165")]({skipNotAttached:!0}),i=n[Ec("0x11b")]((e=>!t[Ec("0x39")](e))),o=new Map(e[Ec("0xbc")]((t=>[t,this[Ec("0x78")][Ec("0x97")](t[Ec("0xc0")],t[Ec("0xae")],Ec("0x173"))]))),r=new Map(n[Ec("0xbc")]((t=>[t,t[Ec("0x172")]()])));for(let t=0;t<e[Ec("0xb0")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[Ec("0xb0")];t++)if(s(this,e[t],i,0))return!0;return!1;function s(t,e,n,i){for(let s=i;s<n[Ec("0xb0")];s++){const i=n[s];if(i.type!==e[Ec("0xc0")]||i.author.id!==e[Ec("0x16a")].id||i[Ec("0xae")]!==e[Ec("0xae")])continue;if(!Lc(e,i))continue;if(Ec("0xaa")==e.type&&e[Ec("0xa3")][Ec("0x4c")]!=i[Ec("0xa3")].oldValue)continue;if(Ec("0xaa")==e.type&&t[Ec("0x67")](e[Ec("0xa3")][Ec("0x85")]))continue;if("formatBlock"==e[Ec("0xc0")]){const n=t[Ec("0xf6")][Ec("0x110")],i=e.getContainedElement();if(i&&(n[Ec("0x146")][Ec("0xd0")](i)||n[Ec("0x146")][Ec("0x61")](i)))continue}const x=o[Ec("0x175")](e),a=r[Ec("0x175")](e),c=r[Ec("0x175")](i),l=e[Ec("0x14d")]&&e.commentThread[Ec("0xb0")],u=i.commentThread&&i[Ec("0x14d")][Ec("0xb0")];if(!l&&x(c,a))return t[Ec("0xfa")](i,e),r[Ec("0x63")](e),!0;if(!u&&x(a,c))return t[Ec("0xfa")](e,i),r[Ec("0x63")](i),!0}return!1}}[Ec("0xfa")](t,e){if(t.isMultiRange)for(const n of e[Ec("0x172")]())t.addRange(n);else{const n=e.getFirstRange()[Ec("0xca")];this[Ec("0x160")](t,this._model[Ec("0x11c")](t[Ec("0x41")]()[Ec("0x4b")],n))}e[Ec("0x167")]()}[Ec("0x16b")](t,e){const n=t.startsWith(Ec("0xe1"))||t[Ec("0x129")](Ec("0xaa"))?Ec("0x11"):t.toUpperCase();return Ji(this[Ec("0xf6")][Ec("0xe8")],e+"_"+n+Ec("0xce"))}[Ec("0x166")](){const t=this.editor;(0,r.surroundingMarkersDetector)(this[Ec("0x60")],(({left:e,entered:n})=>{const i=[];for(const t of e){const{group:e,type:n}=this[Ec("0x138")](t[Ec("0x144")]);if(Ec("0x38")===e){i[Ec("0x7")](this[Ec("0x16b")](n,"LEAVE"));break}}for(const t of n){const{group:e,type:n}=this[Ec("0x138")](t[Ec("0x144")]);if(Ec("0x38")===e){i[Ec("0x7")](this._getMarkerAnnouncementText(n,"ENTER"));break}}i[Ec("0xb0")]&&t.ui[Ec("0xc2")][Ec("0x82")](Ec("0x178"),i[Ec("0x173")](" "))}))}[Ec("0xc8")](t){if(null!==this[Ec("0x8a")])return!1;const e=this[Ec("0xf6")],n=e.model.document[Ec("0xd9")][Ec("0xee")]();if(0==n[Ec("0xb0")])return!1;const i=[],o=n[Ec("0x11b")]((t=>Ec("0xaa")==t[Ec("0xc0")])),r=n.filter((t=>Ec("0x2b")==t[Ec("0xc0")]&&Ec("0xe5")!=t[Ec("0x144")])),s=n[Ec("0x11b")]((t=>Ec("0xed")==t[Ec("0xc0")]&&"$text"!=t[Ec("0x144")]));for(const t of o)i[Ec("0x7")]({key:t.attributeKey,newValue:t.attributeNewValue,oldValue:t[Ec("0x21")],range:(x=t[Ec("0x126")],null==x.end[Ec("0xfd")]&&x[Ec("0xca")][Ec("0xc")]==x[Ec("0x4b")][Ec("0x168")]?Ic(x.start[Ec("0x168")],e.model):x)});var x;for(const t of r){const n=s[Ec("0x47")]((e=>e[Ec("0xf")][Ec("0x125")](t[Ec("0xf")])));n&&i[Ec("0x7")]({key:Ec("0x141"),newValue:t[Ec("0x144")],oldValue:n[Ec("0x144")],range:e[Ec("0x110")][Ec("0xfb")](t.position[Ec("0x168")])})}return 0!=i[Ec("0xb0")]&&this[Ec("0x174")](t,i)}[Ec("0x17a")](t){let e=!1;const n=this.editor.model.document[Ec("0xd9")][Ec("0xe4")]()[Ec("0x11b")]((t=>t[Ec("0xa3")][Ec("0xc4")]&&t[Ec("0x144")].startsWith("suggestion:attribute:")));for(const i of n){const{subType:n,id:o}=this[Ec("0x138")](i[Ec("0x144")]),r=n[Ec("0x6f")]("|")[0];for(const n of this[Ec("0x165")]({skipNotAttached:!0}))n.id!=o&&"attribute"==n.type&&n[Ec("0xa3")]&&n[Ec("0xa3")].key==r&&n[Ec("0x41")]().isIntersecting(i.data.newRange)&&(this[Ec("0x58")](n,i.data.newRange,t),e=!0)}return e}[Ec("0x142")](t){if(null!==this[Ec("0x8a")])return void t();const n=this.editor;this[Ec("0x8a")]=n[Ec("0x110")][Ec("0x11d")][Ec("0xd")],t();const i=new Map;for(const t of n[Ec("0x110")][Ec("0x11d")][Ec("0x115")][Ec("0x7b")](this[Ec("0x8a")]))if([Ec("0x45"),Ec("0xba"),Ec("0x3a"),Ec("0x170")][Ec("0xf1")](t.type)){const e=t[Ec("0x31")],n=i.get(e)||[];n.push(t),i[Ec("0x8c")](e,n)}this[Ec("0x8a")]=null;for(const[t,o]of i){const i=(0,e.uid)();n[Ec("0x110")][Ec("0xa5")](t,(t=>{const e=[];for(const t of o){let o,r,s,x;if(Ec("0x45")==t[Ec("0xc0")]){const e=t;o=Ic(e[Ec("0xf")][Ec("0x168")],n[Ec("0x110")]),r=Ec("0x141"),s=e.newName,x=e[Ec("0x164")]}else{const e=t,i=this[Ec("0x67")](e[Ec("0x85")]),a=this._inlineAttributeKeys[Ec("0x39")](e[Ec("0x85")]);if(!i&&!a)continue;o=i?Ic(e.range[Ec("0x4b")][Ec("0x168")],n[Ec("0x110")]):e.range,r=e.key,s=Ec("0x3a")==t.type?void 0:e[Ec("0x136")],x=e[Ec("0x4c")]}this.markAttributeChange(o,r,x,s,{groupId:i}),e.push({range:o,key:r,newValue:s,oldValue:x})}this._reduceExistingSuggestions(t,e)}))}}_reduceExistingSuggestions(t,e){if(0==e.length)return!1;let n=!1;for(const i of e){const e=this[Ec("0x49")](i[Ec("0x126")],Ec("0xaa"))[Ec("0x11b")]((t=>!t[Ec("0x162")][Ec("0xf4")]))[Ec("0xbc")]((t=>t.suggestion)),o=(0,r.hashObject)({newValue:i[Ec("0x136")]});e.filter((t=>{const[e,n]=t[Ec("0xae")][Ec("0x6f")]("|");return e==i[Ec("0x85")]&&n!=o}))[Ec("0x22")]((e=>{this._reduceSuggestionAttributeRange(e,i[Ec("0x126")],t),n=!0}))}return n}[Ec("0x58")](t,e,n){const i=t[Ec("0x41")]()[Ec("0x116")](e);0!==i[Ec("0xb0")]?1!==i[Ec("0xb0")]?this[Ec("0x15")](t,e[Ec("0x4b")],e[Ec("0xca")]):this[Ec("0x160")](t,i[0]):n[Ec("0x12")](t[Ec("0xe9")]())}}class yc{constructor(t){this[Ec("0x179")]=t,this[Ec("0x60")]=t[Ec("0x110")],this._customCallbacks=new Map,this[Ec("0x100")]=new Map,this._registerDefaultCallbacks()}[Ec("0x155")](t,e,n,i,o,r){return new Yi(this[Ec("0x60")],{type:t,subType:e,id:n,author:i,creator:i,attributes:o,onAttributesChange:r,onAccept:(...n)=>this[Ec("0x97")](t,e,Ec("0xb5"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,Ec("0x1"))(...n)})}[Ec("0x14a")](t,e,n,i){const o=t+":"+e+":"+n;this[Ec("0xe")][Ec("0x8c")](o,i)}[Ec("0x97")](t,e,n){const i=t+":"+e+":"+n;return this[Ec("0xe")][Ec("0x175")](i)||this[Ec("0x100")].get(t+":"+n)}[Ec("0x14c")](){const t=()=>!1,e=t=>{t[Ec("0x114")](((t,e)=>t[Ec("0x4b")][Ec("0x153")](e[Ec("0x4b")])?1:-1)),this[Ec("0x60")][Ec("0xbf")]((e=>{for(const n of t){let t;t=n[Ec("0xca")][Ec("0xfc")]&&n[Ec("0xca")][Ec("0xc")]==n.start[Ec("0x168")]?e[Ec("0xa1")](n[Ec("0x4b")][Ec("0x168")],"on"):e[Ec("0xa1")](n),this[Ec("0x60")][Ec("0x73")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[Ec("0x60")].change((n=>{const{commandName:i,commandParams:o=[]}=e,r=t[Ec("0xbc")]((t=>(Ac(t)&&(t=this[Ec("0x60")].createRange(t[Ec("0xca")])),t)))[Ec("0x11b")]((t=>Ec("0x2e")!==t[Ec("0x11f")].rootName));if(r[Ec("0xb0")]<1)return;const x=Array[Ec("0x74")](this._model[Ec("0x11d")].selection[Ec("0x172")]())[Ec("0xbc")]((t=>s.LiveRange[Ec("0xf5")](t)));n[Ec("0x2c")](r);for(const t of this._editor[Ec("0x48")].commands())t[Ec("0xcb")]();o[Ec("0x7")]({forceDefaultExecution:!0}),this._editor.execute(i,...o);const a=x[Ec("0x11b")]((t=>Ec("0x2e")!=t[Ec("0x11f")].rootName));a.length>0&&n[Ec("0x2c")](a);for(const t of x)t.detach()}))},i=(t,e)=>1==t.length&&1==e[Ec("0xb0")]&&t[0].end[Ec("0x125")](e[0].start),o=(t,e,n,i)=>vc(t,e,n,i,this._model)?[t,e]:vc(e,t,i,n,this[Ec("0x60")])?[e,t]:null;this[Ec("0x100")].set(Ec("0x4a"),t),this[Ec("0x100")].set(Ec("0x70"),e),this[Ec("0x100")][Ec("0x8c")](Ec("0x92"),i),this[Ec("0x100")][Ec("0x8c")](Ec("0x122"),o),this[Ec("0x100")].set("deletion:accept",e),this._defaultCallbacks[Ec("0x8c")](Ec("0xad"),t),this[Ec("0x100")].set(Ec("0x132"),i),this[Ec("0x100")][Ec("0x8c")](Ec("0x15e"),o),this[Ec("0x100")][Ec("0x8c")]("formatInline:accept",n),this[Ec("0x100")].set("formatInline:discard",t),this._defaultCallbacks[Ec("0x8c")](Ec("0x35"),i),this[Ec("0x100")][Ec("0x8c")](Ec("0x108"),t),this[Ec("0x100")][Ec("0x8c")]("formatBlock:accept",n),this[Ec("0x100")][Ec("0x8c")]("formatBlock:discard",t),this._defaultCallbacks[Ec("0x8c")](Ec("0x36"),i),this[Ec("0x100")][Ec("0x8c")](Ec("0x4"),t),this[Ec("0x100")].set(Ec("0x5"),t),this[Ec("0x100")].set(Ec("0x148"),((t,e)=>{if(!e)return;const n=this[Ec("0x179")].plugins[Ec("0x175")](Tc);this[Ec("0x60")][Ec("0xbf")]((i=>{if(Ec("0x141")==e[Ec("0x85")])for(const n of t){const t=n[Ec("0x4b")][Ec("0x168")],o=e[Ec("0x4c")];i[Ec("0x45")](t,o)}else if(n[Ec("0x67")](e[Ec("0x85")]))for(const n of t)void 0!==e[Ec("0x4c")]?i[Ec("0x102")](e[Ec("0x85")],e.oldValue,n[Ec("0x4b")][Ec("0x168")]):i[Ec("0x3a")](e.key,n.start.nodeAfter);else for(const n of t)e[Ec("0x4c")]?i[Ec("0x102")](e[Ec("0x85")],e[Ec("0x4c")],n):i[Ec("0x3a")](e[Ec("0x85")],n)}))})),this._defaultCallbacks[Ec("0x8c")](Ec("0xf9"),i)}}function Cc(t,e,n){for(const i of e[Ec("0xc")][Ec("0xf3")]({includeSelf:!0,parentFirst:!0})){if(i[Ec("0x11f")]==i)return!1;if(!n.containsItem(i))return!1;if(t[Ec("0xd0")](i)||t[Ec("0x61")](i))return!0}return!1}function Ac(t){return t[Ec("0xca")][Ec("0xc")]==t.start.nodeAfter&&t[Ec("0xca")][Ec("0x14b")]}function kc(t,e,n,i){const o=t=>!t[Ec("0x3c")].is("$textProxy")&&!i[Ec("0xd0")](t[Ec("0x3c")]),r=t[Ec("0x4b")][Ec("0xeb")](o),s=t.end[Ec("0xeb")](o,{direction:Ec("0xcd")});return!(t.start.isEqual(r)&&t[Ec("0xca")].isEqual(s)||(r[Ec("0x153")](s)?n[Ec("0x13")](e,{range:n[Ec("0x11c")](r,s)}):n.removeMarker(e),0))}function Sc(t){return(0,r.hashObject)(t)}function Rc(t){const e=t[Ec("0x4b")].nodeAfter;return e&&e.is("element")}function Ic(t,e){const n=e[Ec("0x146")][Ec("0xd0")](t)||e.schema.isSelectable(t);return e.createRange(e[Ec("0xf8")](t,"before"),n?e[Ec("0x9e")](t):e.createPositionAt(t,Ec("0xca")))}function vc(t,e,n,i,o){if(!Lc(t,e))return!1;if(n[Ec("0xca")][Ec("0x125")](i[Ec("0x4b")]))return!0;if(t[Ec("0xc0")]!=e[Ec("0xc0")])return!1;if(!n[Ec("0xca")].isTouching(i.start))return!1;const r=o.createRange(n[Ec("0xca")],i[Ec("0x4b")])[Ec("0x84")]();for(const t of r)if([Ec("0x2a"),Ec("0x130")][Ec("0xf1")](t[Ec("0xc0")])&&o.schema[Ec("0x61")](t[Ec("0x3c")]))return!1;return!0}function Lc(t,e){return!(!t._isDataLoaded||!e._isDataLoaded)&&ji(t.attributes,e[Ec("0xa9")])}function Nc(t,e){const n=Mc(t[Ec("0xa9")]),i=Mc(e);if(!t[Ec("0x5b")])return!1;for(const t of Object[Ec("0x6e")](i))if(!ji(n[t],i[t]))return!1;return!0}function Mc(t){const e=Object.assign({},t);return delete e[Ec("0x95")],delete e[Ec("0xda")],e}function wc(t){return Ec("0xaa")==t[Ec("0xc0")]?t.subType[Ec("0x6f")]("|")[0]:null}const Oc=["bind","_discardCommand","model","_removePendingAction","PendingActions","isEnabled","acceptSuggestion","execute","add","remove","discardSuggestion","isDirty","canEditAt","locale","destroy","view","_setPendingAction","unbind","get","plugins","_editor","canDiscard","_acceptCommand","_pendingAction","commentThreadController","getRanges","change:isDirty","commands"];var Fc,Dc;Fc=Oc,Dc=466,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,i){super(),this[Bc("0xc")]=e,this[Bc("0x19")]=n,this.commentThreadController=i,this[Bc("0x2")]=t,this[Bc("0x4")]=t.commands[Bc("0x0")]("acceptSuggestion"),this._discardCommand=t[Bc("0x9")][Bc("0x0")](Bc("0x14")),this[Bc("0x19")].bind(Bc("0xf")).to(this[Bc("0x4")],this[Bc("0xb")],((t,e)=>t||e)),this[Bc("0x19")][Bc("0xa")]("canAccept").to(this[Bc("0x4")],Bc("0xf"),(t=>t&&this[Bc("0x2")][Bc("0xc")][Bc("0x16")](e[Bc("0x7")]()))),this[Bc("0x19")][Bc("0xa")]("canDiscard").to(this._discardCommand,"isEnabled",(t=>t&&this[Bc("0x2")].model[Bc("0x16")](e.getRanges()))),this[Bc("0x5")]=null,n[Bc("0x15")]&&this[Bc("0x1a")](),this.listenTo(n,Bc("0x10"),(()=>this[Bc("0x10")]())),this.listenTo(n,Bc("0x14"),(()=>this[Bc("0x14")]())),this.listenTo(n,Bc("0x8"),(()=>{n.isDirty?this[Bc("0x1a")]():this[Bc("0xd")]()}))}[Bc("0x10")](){this[Bc("0x4")][Bc("0x11")](this[Bc("0xc")].id)}[Bc("0x14")](){this._discardCommand.execute(this[Bc("0xc")].id)}[Bc("0x18")](){this[Bc("0x19")][Bc("0x1b")](Bc("0xf")),this[Bc("0x19")][Bc("0x1b")]("canAccept"),this[Bc("0x19")][Bc("0x1b")](Bc("0x3")),this.stopListening(),this[Bc("0x6")][Bc("0x18")](),this[Bc("0x5")]&&this[Bc("0xd")]()}[Bc("0x1a")](){const t=Ji(this[Bc("0x2")][Bc("0x17")],"PENDING_ACTION_SUGGESTION");this[Bc("0x5")]=this[Bc("0x2")][Bc("0x1")][Bc("0x0")](Bc("0xe"))[Bc("0x12")](t)}[Bc("0xd")](){null!==this._pendingAction&&this[Bc("0x2")][Bc("0x1")][Bc("0x0")](Bc("0xe"))[Bc("0x13")](this[Bc("0x5")]),this._pendingAction=null}}const Uc=["addComment","focus","authoredAt","editor","_model","set","commentThread","removeComment","setData","_config","delegate","updateComment","commentThreadInputView","CommentView","commentsListView","assign","_createCommentThreadInputView","showInput","value","isReadOnly","isActive","cancel","fire","bind","canDiscard","_createCommentViews","editorConfig","isDirty","element","destroy","_localUser","length","submit"];var jc,Gc;jc=Uc,Gc=157,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Vc=function(t,e){return Uc[t-=0]};class Hc extends o.View{constructor(t,e,n,i){super(t),this.commentsListView=null,this[Vc("0x14")]=null,this.set(Vc("0x1c"),!1),this.set("authoredAt",e[Vc("0xa")]),this[Vc("0x1f")]("authoredAt").to(e),this[Vc("0xd")]("descriptionParts",[]),this[Vc("0xd")](Vc("0x2"),!1),this[Vc("0xd")]("isEnabled",!1),this[Vc("0xd")]("canAccept",!1),this[Vc("0xd")](Vc("0x20"),!1),this[Vc("0xc")]=e,this._localUser=n,this[Vc("0x11")]=i,i.disableComments?this[Vc("0xd")](Vc("0x6"),1):this[Vc("0x0")]()}[Vc("0x9")](){this[Vc("0x3")][Vc("0x9")]()}[Vc("0x4")](){this[Vc("0x16")]&&this[Vc("0x16")].destroy(),this.commentThreadInputView&&this.commentThreadInputView[Vc("0x4")](),super[Vc("0x4")]()}[Vc("0x0")](){const{CommentsListView:t}=this[Vc("0x11")];this.commentsListView=new t(this.locale,this[Vc("0xc")][Vc("0xe")],Object[Vc("0x17")]({CommentView:this._config[Vc("0x15")]},this[Vc("0x11")])),this[Vc("0x16")].delegate(Vc("0xf")).to(this),this[Vc("0x16")][Vc("0x12")](Vc("0x13")).to(this),this[Vc("0x16")][Vc("0x1f")]("isActive").to(this),this[Vc("0xd")](Vc("0x6"),this[Vc("0x16")][Vc("0x6")]+1),this[Vc("0x1f")]("length").to(this[Vc("0x16")],Vc("0x6"),(t=>t+1)),this.commentThreadInputView=this[Vc("0x18")](),this.on(Vc("0xf"),(()=>this[Vc("0x9")]())),this[Vc("0x1f")](Vc("0x2")).to(this[Vc("0x16")],"hasDirtyComment",this[Vc("0x14")].commentInputView,Vc("0x1a"),((t,e)=>t||!!e))}[Vc("0x18")](){const{CommentThreadInputView:t}=this[Vc("0x11")],e=new t(this.locale,this[Vc("0x5")],this[Vc("0x11")][Vc("0x1")]),n=e.commentInputView;return e.bind(Vc("0x19")).to(this,"isActive",this[Vc("0xc")].commentThread,Vc("0x1b"),n,Vc("0x1a"),((t,e,n)=>!!n||t&&!e)),n.on(Vc("0x7"),((t,e)=>{this[Vc("0x1e")](Vc("0x8"),e),n[Vc("0xb")][Vc("0x10")]("")})),n.on(Vc("0x1d"),(()=>this[Vc("0x9")]())),n[Vc("0x1f")]("disabledSubmit").to(this._model[Vc("0xe")],Vc("0x1b")),e}}const zc=["_createButton","element","setTemplate","ck-annotation__content-wrapper","innerHTML","disableComments","ck-annotation__info-name","</span>","EXTERNAL_SUGGESTION","Accept suggestion","createElement","importWord","querySelector","_config","push","_descriptionElement","</p>","ck-suggestion-","name","acceptButton",'<span class="ck-suggestion-color" style="background-color: ',"isActive","join","cancel","getUserViewNotificationText","EXTERNAL_AVATAR","innerText","ck-suggestion__main","locale","time","span","ck-annotation__actions","ck-suggestion--discard","ck-comment__external","div","title","ck-suggestion--disabled-comments","execute","commentsListView","ck-suggestion__actions","descriptionParts","bindTemplate","userView","description","author","ck-annotation__info","getTemplate","delegate","content","attributes","bind","ck-suggestion-wrapper--active","editorReady","commentThreadInputView","_model","render","source",'"></span>',"ck-suggestion__info","Discard suggestion","discardButton","editorDestroyed","ck-annotation__info-time","set","creator","isExternal",".ck-annotation__content-wrapper","type","ck-comment__info-time",'<span class="ck-suggestion-type">',"formatDateTime","extendTemplate","canDiscard","check","@external","fire","color","EXTERNAL_IMPORT_WORD_AVATAR","value","getExternalSuggestionNote","isEnabled","split"];var Wc,Kc;Wc=zc,Kc=170,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,i,o){super(e,n,i,o),this[qc("0x39")](qc("0x3d"),""),this[qc("0x2c")](qc("0x3d")).to(this,qc("0x22"),(t=>t&&t[0]?t[0][qc("0x3d")]:"")),this.bind(qc("0x25")).to(this,qc("0x22"),this,qc("0xf"),((t,e)=>{let n="";for(const e of t)n+="<p>"+Xc(e[qc("0x2a")],e[qc("0x46")])+qc("0xa");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[qc("0xd")]=this[qc("0x4c")](Ji(e,qc("0x3")),t.icons[qc("0x43")],"ck-suggestion--accept","acceptSuggestion","sw"),this[qc("0xd")][qc("0x2c")](qc("0x4a")).to(this,"canAccept"),this[qc("0x36")]=this[qc("0x4c")](Ji(e,qc("0x35")),t.icons[qc("0x11")],qc("0x1a"),"discardSuggestion","sw"),this[qc("0x36")].bind(qc("0x4a")).to(this,qc("0x42")),this[qc("0x24")]=new r.UserView(e,this[qc("0x30")].author,this[qc("0x12")]()),this[qc("0x24")].extendTemplate({attributes:{class:["ck-suggestion__user","ck-annotation__user"]}}),this[qc("0x4e")](this[qc("0x28")]())}[qc("0x28")](){const t=this[qc("0x23")],e=[{tag:qc("0x1c"),attributes:{class:[qc("0x34"),qc("0x27")]},children:[{tag:qc("0x18"),children:[{text:this[qc("0x24")].name}],attributes:{class:["ck-suggestion__info-name",qc("0x0")]}},{tag:qc("0x17"),attributes:{datetime:t.to("authoredAt"),class:[qc("0x3e"),qc("0x38")]},children:[{text:t.to("authoredAt",(t=>this[qc("0x7")][qc("0x40")](t)))}]}]},{tag:"div",attributes:{class:[qc("0x21"),qc("0x19")]},children:[this[qc("0xd")],this.discardButton]},{tag:qc("0x1c"),attributes:{class:[qc("0x4f")]}}];this[qc("0x30")][qc("0x3b")]&&e[qc("0x8")]({tag:qc("0x1c"),attributes:{class:[qc("0x1b")]},children:[{text:this[qc("0x49")]()}]});const n={tag:qc("0x1c"),attributes:{class:["ck-suggestion-wrapper",t.if(qc("0xf"),qc("0x2d")),t.to("type",(t=>qc("0xb")+t)),this[qc("0x7")][qc("0x51")]&&qc("0x1e")],"data-suggestion-id":this[qc("0x30")].id,"data-thread-id":this[qc("0x30")].commentThread.id,"data-author-id":this[qc("0x30")][qc("0x26")].id,tabindex:-1},children:[{tag:qc("0x1c"),attributes:{class:["ck-suggestion","ck-annotation"]},children:[this[qc("0x24")],{tag:"div",attributes:{class:[qc("0x15"),"ck-annotation__main"]},children:e}]}]};return this[qc("0x20")]&&this[qc("0x2f")]&&(n.children[qc("0x8")](this[qc("0x20")],this[qc("0x2f")]),this[qc("0x20")][qc("0x29")](qc("0x2e")).to(this),this.commentsListView.delegate(qc("0x37")).to(this),this[qc("0x2f")].delegate(qc("0x2e")).to(this),this[qc("0x2f")].delegate("editorDestroyed").to(this)),n}[qc("0x31")](){super.render(),this._descriptionElement=this[qc("0x4d")][qc("0x6")](qc("0x3c")),this[qc("0x9")][qc("0x50")]=this[qc("0x25")],this.on("change:description",((t,e,n)=>{this[qc("0x9")][qc("0x50")]=n}))}[qc("0x4c")](t,e,n,i,r){const s=new o.ButtonView(this[qc("0x16")]);return s[qc("0x39")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),s[qc("0x41")]({attributes:{class:n}}),s.on(qc("0x1f"),(()=>{this[qc("0x45")](i,this._model.id)})),s}[qc("0x49")](){return qc("0x5")===this._model[qc("0x2b")][qc("0x44")][qc("0x32")]?Ji(this[qc("0x16")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Ji(this.locale,qc("0x2"))}getUserViewNotificationText(){return this[qc("0x30")][qc("0x3b")]?qc("0x5")===this._model[qc("0x2b")]["@external"][qc("0x32")]?Ji(this.locale,qc("0x47"),this[qc("0x30")][qc("0x3a")][qc("0xc")]):Ji(this.locale,qc("0x13"),this._model[qc("0x3a")][qc("0xc")]):null}}function Xc(t,e){let n="";return n+=t[qc("0x4b")]("*").map(((t,e)=>e%2!=0?qc("0x3f")+Zc(t)+qc("0x1"):Zc(t)))[qc("0x10")](""),e&&(n+=qc("0xe")+e[qc("0x48")]+'" title="'+e[qc("0x1d")]+qc("0x33")),n}function Zc(t){const e=document[qc("0x4")]("span");return e[qc("0x14")]=t,e[qc("0x50")]}const Yc=["isInContent","SuggestionThreadView","change:previous","suggestion-","set","comments","_suggestionToController","activeMarkers","map","EditorAnnotations","separator","from","Track changes","componentFactory","_annotationViews","toMany","getMarkerNames","previous","editor","has","focus","trackChanges.disableComments","destroy","switchbutton","CommentsRepository","commandName","registerAnnotation","Discard all selected suggestions","TrackChangesEditing","arrowView","comments.maxCommentsWhenCollapsed","unbind","view","suggestionLoaded","head","isMultiRange","acceptButton","change:activeAnnotations","createAnnotation","size","actionView","keys","_unbindEditors","_createUIButton","value","delete","get","type","isDirty","Discard all suggestions","reduce","bind","addSourceCollector","buttonView","getByInnerView","discardAllSuggestions","_descriptionFactory","values","getRanges","define","mainView","_viewToController","config","commentThread","_handleControllerBuffer","clear","refreshSelectedViews","model","comments.maxThreadTotalWeight","comments.maxCommentCharsWhenCollapsed","discardButton","suggestionChanged","some","_disableComments","CommentsUI","getAllAdjacentSuggestions","Accept all selected suggestions","discardSelectedSuggestions","getMarkers","TrackChangesUI","_handleSuggestionControllerDelayed","getFirstRange","lowest","activeAnnotations","source","add","createCommentThreadController","length","CommentView","button","descriptionParts","stopListening","remove","plugins","_initializeController","innerView","filter","_destroyController","listenTo","hasSuggestion","acceptSelectedSuggestions","addComment","locale","isEnabled","execute","comments.editorConfig","push","_updateController","editing","Annotations","trackChanges","suggestionUnloaded","commands"];var Jc,Qc;Jc=Yc,Qc=468,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 requires(){return[Tc,r.Users,"CommentsRepository",tl("0x5d"),tl("0x6a")]}static get pluginName(){return tl("0x3f")}constructor(t){super(t),this._suggestionToController=new Map,this._viewToController=new Map,this._annotationViews=new Map,this[tl("0x30")]=new Map;const e=this.editor[tl("0x2e")];e.define("trackChanges.SuggestionThreadView",$c),e[tl("0x2b")](tl("0x5"),!1),this[tl("0x39")]=e[tl("0x1e")](tl("0x5"))}[tl("0x40")](t,e){0===this[tl("0x30")][tl("0x17")]&&setTimeout((()=>{for(const[t,e]of this[tl("0x30")]){const n=this[tl("0x67")][tl("0x3")](t);n||e?n&&e&&this[tl("0x51")](t):this[tl("0x4e")](t)}this[tl("0x2")].plugins[tl("0x1e")](tl("0x6a"))[tl("0x32")](),this._refreshActiveMarkers(),this[tl("0x30")][tl("0x31")]()}),10),this[tl("0x30")][tl("0x65")](t,e)}init(){const t=this.editor,e=t[tl("0x4d")][tl("0x1e")](tl("0xc")),n=t[tl("0x4d")][tl("0x1e")](tl("0x5d")),i=t.plugins[tl("0x1e")](tl("0x6a")),o=t[tl("0x4d")][tl("0x1e")](tl("0x8"));t.ui[tl("0x6e")][tl("0x45")](tl("0x5e"),(t=>this._createUIButton(t))),i[tl("0x24")]((()=>{const t=[];for(const[e,n]of Array[tl("0x6c")](this[tl("0x67")])){const i=e[tl("0x3b")](),o=[];for(const t of i){if(!t[tl("0x61")])continue;if(t[tl("0x13")]){o[tl("0x5a")](...t[tl("0x2a")]());continue}const e=t[tl("0x41")]();if(o[tl("0x47")]>0){const t=o[0].getJoined(e);if(t){o[0]=t;continue}}o[tl("0x5a")](e)}t[tl("0x5a")]([n[tl("0x10")],o])}return t})),this[tl("0x52")](e,tl("0x11"),((t,e)=>{this[tl("0x52")](e,tl("0x63"),((t,n,i,o)=>{e[tl("0x61")]&&(null==i?(this[tl("0x5b")](o[tl("0x12")]),this._handleSuggestionControllerDelayed(e,!1)):(this[tl("0x5b")](i[tl("0x12")]),null==o&&this._handleSuggestionControllerDelayed(e,!0)))})),null!==e[tl("0x1")]?this._updateController(e[tl("0x12")]):this[tl("0x40")](e,!1)})),this[tl("0x52")](e,tl("0x5f"),((t,e,n)=>{this[tl("0x4b")](e,tl("0x63")),this[tl("0x30")][tl("0x1d")](e),this[tl("0x67")][tl("0x3")](e)&&this._destroyController(e),n&&this[tl("0x5b")](n[tl("0x12")])})),this[tl("0x52")](e,tl("0x37"),((t,e)=>{this[tl("0x5b")](e)})),this.listenTo(n,tl("0x15"),(()=>{this._refreshActiveMarkers()})),this.listenTo(o,tl("0x55"),((t,{threadId:n,isFromAdapter:i})=>{if(i||!e[tl("0x53")](n))return;const o=e.getSuggestion(n);this[tl("0x67")][tl("0x1e")](o)[tl("0x10")][tl("0x4")]()}),{priority:tl("0x42")})}_refreshActiveMarkers(){const t=this[tl("0x2")].plugins[tl("0x1e")](tl("0x5d")),e=this[tl("0x2")][tl("0x4d")].get("TrackChangesEditing"),n=Array[tl("0x6c")](t[tl("0x43")],(t=>t[tl("0x4f")]))[tl("0x50")]((t=>this[tl("0x2d")][tl("0x3")](t))),i=[];for(const t of n){const e=this[tl("0x2d")][tl("0x1e")](t)[tl("0x33")][tl("0x3b")]();i[tl("0x5a")](...e[tl("0x22")](((t,e)=>[...t,...e[tl("0x0")]()]),[]))}e[tl("0x68")]=i}[tl("0x1b")](t){const n=(0,o.createDropdown)(t,o.SplitButtonView),i=this.editor[tl("0x60")][tl("0x1e")]("trackChanges"),r=Ji(t,tl("0x6d"));n[tl("0x25")][tl("0x65")]({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("0x25")][tl("0x23")]("isOn").to(i,"value"),n[tl("0x25")].on(tl("0x58"),(()=>{i[tl("0x58")](),this[tl("0x2")][tl("0x5c")][tl("0x10")][tl("0x4")]()}));const s=new e.Collection,x=[{type:tl("0x7"),model:{withText:!0,label:r,commandName:tl("0x5e")}},{type:tl("0x6b")},{type:tl("0x49"),model:{withText:!0,label:Ji(t,"Accept all suggestions"),commandName:"acceptAllSuggestions"}},{type:tl("0x49"),model:{withText:!0,label:Ji(t,tl("0x3c")),commandName:tl("0x54")}},{type:tl("0x49"),model:{withText:!0,label:Ji(t,tl("0x21")),commandName:tl("0x27")}},{type:tl("0x49"),model:{withText:!0,label:Ji(t,tl("0xb")),commandName:tl("0x3d")}}];for(const t of x){let e={type:tl("0x6b")};if(t.model){const n=new o.Model(t[tl("0x33")]),i=this[tl("0x2")][tl("0x60")][tl("0x1e")](n[tl("0x9")]);n[tl("0x23")]("isOn","isEnabled").to(i,tl("0x1c"),tl("0x57")),e={type:t[tl("0x1f")],model:n}}s.add(e)}(0,o.addListToDropdown)(n,s);const a=x[tl("0x50")]((t=>null!=t[tl("0x33")]))[tl("0x69")]((t=>this[tl("0x2")].commands[tl("0x1e")](t[tl("0x33")][tl("0x9")]))),c=n[tl("0x25")];return c[tl("0x18")][tl("0xf")]("isEnabled"),c[tl("0xd")][tl("0xf")](tl("0x57")),c[tl("0x18")][tl("0x23")](tl("0x57")).to(i,tl("0x57")),c[tl("0xd")][tl("0x23")](tl("0x57"))[tl("0x70")](a,"isEnabled",((...t)=>t[tl("0x38")]((t=>t)))),n.on(tl("0x58"),(t=>{this[tl("0x2")][tl("0x58")](t[tl("0x44")][tl("0x9")]),this[tl("0x2")][tl("0x5c")][tl("0x10")].focus()})),n}[tl("0x4e")](t){const e=this[tl("0x2")],n=e[tl("0x2e")],i=e[tl("0x4d")][tl("0x1e")](tl("0x5d")),o=e[tl("0x4d")][tl("0x1e")](tl("0x8")),s=e[tl("0x4d")].get(tl("0x6a")),x=e[tl("0x4d")][tl("0x1e")](r.Users).me,a=n.get(tl("0x5e"))[tl("0x62")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins.get(tl("0x3a"));let u,d;this[tl("0x6f")][tl("0x3")](t.id)?(d=this._annotationViews[tl("0x1e")](t.id),u=d[tl("0x2c")]):(u=new a(e[tl("0x56")],t,x,{disableComments:this[tl("0x39")],editorConfig:n[tl("0x1e")](tl("0x59")),maxCommentsWhenCollapsed:n[tl("0x1e")](tl("0xe")),maxThreadTotalWeight:n[tl("0x1e")](tl("0x34")),maxCommentCharsWhenCollapsed:n[tl("0x1e")](tl("0x35")),formatDateTime:(0,r.getDateTimeFormatter)(n[tl("0x1e")]("locale")),CommentView:n[tl("0x1e")](tl("0x66"))[tl("0x48")],CommentsListView:c,CommentThreadInputView:l}),u[tl("0x14")].on(tl("0x58"),(()=>{e.editing.view.focus()})),u[tl("0x36")].on("execute",(()=>{e[tl("0x5c")][tl("0x10")].focus()})),d=i.createAnnotationView(this[tl("0x2")].locale,u),d[tl("0x23")](tl("0x20")).to(u,tl("0x20")),d[tl("0x23")](tl("0x47")).to(u),d[tl("0x23")](tl("0x1f")).to(u,tl("0x1f"),(t=>tl("0x64")+t)),this[tl("0x6f")].set(t.id,d));const g=o[tl("0x46")](t[tl("0x2f")],u),f=new Pc(e,t,u,g),m=t.getAllAdjacentSuggestions()[tl("0x50")]((t=>t[tl("0x61")]));u[tl("0x4a")]=e[tl("0x4d")][tl("0x1e")](tl("0xc"))._descriptionFactory.getDescriptions(m),this[tl("0x67")][tl("0x65")](t,f),this[tl("0x2d")][tl("0x65")](u,f);const h=i[tl("0x16")]({view:d,target:()=>{const n=[],i=t.getAllAdjacentSuggestions()[tl("0x50")]((t=>t[tl("0x61")]));for(const t of i)n[tl("0x5a")](...t[tl("0x3e")]());return(0,r.getAllMarkersDomElementsSorted)(e[tl("0x5c")],n)},type:()=>tl("0x64")+f[tl("0x10")].type});o._bindAnnotationToEditors(u,h),i.add(h),s[tl("0xa")](h)}[tl("0x51")](t){const e=this[tl("0x2")][tl("0x4d")][tl("0x1e")](tl("0x8")),n=this[tl("0x2")][tl("0x4d")][tl("0x1e")](tl("0x5d")),i=this[tl("0x67")][tl("0x1e")](t),o=i[tl("0x10")],r=n[tl("0x26")](o);e[tl("0x1a")](o),r&&n[tl("0x4c")](r),this[tl("0x67")].delete(t),this[tl("0x2d")][tl("0x1d")](o),i.destroy()}[tl("0x5b")](t){if(!t[tl("0x61")]||!this._suggestionToController[tl("0x3")](t))return;const e=this[tl("0x2")][tl("0x4d")].get("TrackChangesEditing"),n=this[tl("0x67")][tl("0x1e")](t),i=t[tl("0x3b")]();n[tl("0x10")][tl("0x4a")]=e[tl("0x28")].getDescriptions(i)}[tl("0x6")](){for(const t of this[tl("0x67")][tl("0x19")]())this[tl("0x51")](t);for(const t of this[tl("0x6f")][tl("0x29")]())t.mainView[tl("0x6")]();super[tl("0x6")]()}}var nl,il,ol=["getSuggestion","get","addSuggestion","adapter","getSuggestions","pluginName","editor","plugins"];nl=ol,il=184,function(t){for(;--t;)nl.push(nl.shift())}(++il);var rl=function(t,e){return ol[t-=0]};class sl extends t.Plugin{static get requires(){return[Tc,el,"Comments"]}static get[rl("0x5")](){return"TrackChanges"}set[rl("0x3")](t){this[rl("0x6")].plugins[rl("0x1")](Tc).adapter=t}get[rl("0x3")](){return this[rl("0x6")].plugins.get(Tc)[rl("0x3")]}[rl("0x2")](t){return this[rl("0x6")].plugins[rl("0x1")](Tc).addSuggestionData(t)}[rl("0x4")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[rl("0x6")][rl("0x7")].get(Tc)[rl("0x4")]({skipNotAttached:t,toJSON:e})}[rl("0x0")](t){return this[rl("0x6")][rl("0x7")][rl("0x1")](Tc).getSuggestion(t)}}const xl=["push","end","reduce","addUser","div","Pagination","name","getSuggestions","addSuggestionData","trackChangesData.editorCreator","set","trackChangesData","TrackChangesDataGetter","users","getRootsAttributes","TrackChangesData","data","requires","get","define","getUser","model","Users","editorCreator","editor","function","createElement","document","pluginName","init","destroy","_adapter","getRootNames","result","TrackChangesEditing","config","getDataWithAcceptedSuggestions","plugins","createDocumentFragment"];var al,cl;al=xl,cl=427,function(t){for(;--t;)al.push(al.shift())}(++cl);const ll=function(t,e){return xl[t-=0]},ul=[ll("0x7")];class dl extends t.Plugin{static get[ll("0x13")](){return[Tc]}static get[ll("0x1e")](){return ll("0x11")}init(){const t=this[ll("0x1a")];if(t[ll("0x25")][ll("0x15")](ll("0xb"),(e=>{const n=t[ll("0x17")][ll("0x1d")][ll("0x22")]()[ll("0x4")](((t,e)=>(t[e]="",t)),{});return t.constructor.create(n,e)})),ll("0x1b")!=typeof t[ll("0x25")].get("trackChangesData")[ll("0x19")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[ll("0x26")](t){return ml(this[ll("0x1a")],!0,t)}getDataWithDiscardedSuggestions(t){return ml(this[ll("0x1a")],!1,t)}}class gl extends t.Plugin{static get[ll("0x1e")](){return ll("0xe")}constructor(t){super(t),this[ll("0x23")]=ll("0x3")}[ll("0x1f")](){this[ll("0x1a")][ll("0x0")][ll("0x14")]("CommentsRepository")[ll("0x21")]={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("0x1a")][ll("0x0")][ll("0x14")](ll("0x24"))[ll("0x21")]=null}}function fl(t){return void 0!==t[ll("0x10")]}async function ml(t,e,n){const i=(0,r.sanitizeEditorConfig)(t,ul);i.plugins[ll("0x2")](Tc,gl),i.rootsAttributes=fl(t)?t[ll("0x10")]():void 0;const o=document[ll("0x1")](),s=t[ll("0x25")][ll("0x14")](ll("0xd"))[ll("0x19")],x=await s(i,(()=>function(t){const e=document[ll("0x1c")](ll("0x6"));return t.appendChild(e),e}(o)));!function(t,e){const n=t[ll("0x17")][ll("0x1d")][ll("0x22")]()[ll("0x4")](((e,n)=>(e[n]=t[ll("0x12")][ll("0x14")]({rootName:n}),e)),{}),i=t[ll("0x0")][ll("0x14")](ll("0x18"))[ll("0xf")].map((t=>({id:t.id,name:t[ll("0x8")]}))),o=t[ll("0x0")][ll("0x14")]("TrackChangesEditing")[ll("0x9")]({skipNotAttached:!0,toJSON:!0}),r=e[ll("0x0")][ll("0x14")]("Users"),s=e.plugins.get(ll("0x24"));for(const t of i)r[ll("0x16")](t.id)||r[ll("0x5")](t);r.me||r.useAnonymousUser();for(const t of o)s[ll("0xa")](t);e[ll("0x12")][ll("0xc")](n)}(t,x),x.execute(e?"acceptAllSuggestions":"discardAllSuggestions");const a=fl(x)?x.getFullData(n):x[ll("0x12")][ll("0x14")](n);return await x[ll("0x20")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=i})();