@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231128.0 → 0.0.0-nightly-20231129.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 (66) 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/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.js +1 -1
  28. package/src/integrations/imagestyle.js +1 -1
  29. package/src/integrations/importword.js +1 -1
  30. package/src/integrations/indent.js +1 -1
  31. package/src/integrations/inputcommand.js +1 -1
  32. package/src/integrations/link.js +1 -1
  33. package/src/integrations/list.js +1 -1
  34. package/src/integrations/listproperties.js +1 -1
  35. package/src/integrations/mediaembed.js +1 -1
  36. package/src/integrations/mention.js +1 -1
  37. package/src/integrations/pagebreak.js +1 -1
  38. package/src/integrations/paragraph.js +1 -1
  39. package/src/integrations/removeformat.js +1 -1
  40. package/src/integrations/restrictededitingmode.js +1 -1
  41. package/src/integrations/shiftentercommand.js +1 -1
  42. package/src/integrations/standardeditingmode.js +1 -1
  43. package/src/integrations/style.js +1 -1
  44. package/src/integrations/table.js +1 -1
  45. package/src/integrations/tablecaption.js +1 -1
  46. package/src/integrations/tableclipboard.js +1 -1
  47. package/src/integrations/tablecolumnresize.js +1 -1
  48. package/src/integrations/tableheadings.js +1 -1
  49. package/src/integrations/tablemergesplit.js +1 -1
  50. package/src/integrations/tableofcontents.js +1 -1
  51. package/src/integrations/tableproperties.js +1 -1
  52. package/src/integrations/template.js +1 -1
  53. package/src/integrations/title.js +1 -1
  54. package/src/integrations/undo.js +1 -1
  55. package/src/integrations/utils.js +1 -1
  56. package/src/suggestion.js +1 -1
  57. package/src/suggestiondescriptionfactory.js +1 -1
  58. package/src/trackchanges.js +1 -1
  59. package/src/trackchangesdata.js +1 -1
  60. package/src/trackchangesediting.js +1 -1
  61. package/src/trackchangesui.js +1 -1
  62. package/src/ui/suggestioncontroller.js +1 -1
  63. package/src/ui/view/basesuggestionthreadview.js +1 -1
  64. package/src/ui/view/suggestionthreadview.js +1 -1
  65. package/src/utils/common-translations.js +1 -1
  66. package/src/utils/utils.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var 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:()=>Bc,TrackChanges:()=>tl,TrackChangesData:()=>sl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),r=n(273),i=n(417),s=n(492),x=n(995);const a=["affectsData","_enabledCommands","TrackChangesCommand","has","commands","isEnabled","execute","_isEnabledBasedOnSelection","refresh","clearForceDisabled","editor","forceDisabled","value","_enableCommands"];var c,l;c=a,l=253,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("0xb")]=!1,this.refresh(),this[u("0x6")]=!1}[u("0x7")](){this[u("0x4")]=!0}[u("0x5")](){this[u("0xb")]=!this[u("0xb")],this[u("0xb")]?this._disableUnsupportedCommands():this[u("0xc")]()}_disableUnsupportedCommands(){for(const t of this[u("0x9")][u("0x3")].commands())t[u("0xd")]&&!this[u("0x0")][u("0x2")](t)&&t[u("0xa")](u("0x1"))}[u("0xc")](){for(const t of this.editor[u("0x3")][u("0x3")]())t[u("0xd")]&&!this[u("0x0")][u("0x2")](t)&&t[u("0x8")](u("0x1"))}}const g=["plugins","isEnabled","getRanges","refresh","_isEnabledBasedOnSelection","acceptSuggestion","track-changes-accept-suggestion-not-found","editor","canEditAt","_suggestions","model"];var f,m;f=g,m=339,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._suggestions=e,this[h("0x5")](),this[h("0x6")]=!1}[h("0x5")](){this[h("0x3")]=!0}execute(t){const n=this[h("0x0")].get(t);if(!n)throw new e.CKEditorError(h("0x8"),this);const o=n[h("0x4")]();this[h("0x9")][h("0x1")][h("0xa")](o)&&this.editor[h("0x2")].get("TrackChangesEditing")[h("0x7")](n)}}const p=["canEditAt","model","_suggestions","_isEnabledBasedOnSelection","plugins","track-changes-discard-suggestion-not-found","isEnabled","discardSuggestion","refresh"];var E,_;E=p,_=187,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("0x4")]=e,this[T("0x1")](),this[T("0x5")]=!1}[T("0x1")](){this[T("0x8")]=!0}execute(t){const n=this._suggestions.get(t);if(!n)throw new e.CKEditorError(T("0x7"),this);const o=n.getRanges();this.editor[T("0x3")][T("0x2")](o)&&this.editor[T("0x6")].get("TrackChangesEditing")[T("0x0")](n)}}const C=["getRanges","end","splice","join","next","isIntersecting","isObject","isMultiRange","sort","value","isTouching","from","type","deletion","map","replace","length","isArray","execute","isCollapsed","schema","change","push","createPositionBefore","createPositionAfter","createRange"];var A,k;A=C,k=316,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0x4")](((t,e)=>I("0x9")==t[I("0x8")]&&"deletion"!=e[I("0x8")]?-1:I("0x9")!=t[I("0x8")]&&I("0x9")==e[I("0x8")]?1:0))}function S(t,e){let n,o=0;const r=[],i=e[I("0x10")];for(;o<t[I("0xc")];){const s=t[o],x=t[o+1];n||(n=e[I("0x13")](s)),v(e,s,x)||(r[I("0x12")](e[I("0x15")](n,i[I("0x2")](s)?e[I("0x14")](s):e.createPositionAt(s,"end"))),n=null),o++}return r}function v(t,e,n){if(!n)return!1;const o=t[I("0x14")](e),r=t[I("0x13")](n);return o[I("0x6")](r)}function N(t,e,n){for(;n[I("0xc")];){const o=n[I("0x18")](0,100);t[I("0x11")]((()=>{for(const t of o)t.isInContent&&e[I("0xe")](t.id)}))}}const L=["isEnabled","refresh","isInContent","model","from","_command","execute","editor","canEditAt","_isEnabledBasedOnSelection","some","values","_suggestions"];var M,w;M=L,w=304,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class D extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x7")]=n,this[O("0x9")](),this[O("0x4")]=!1}[O("0x9")](){const t=Array[O("0xc")](this._suggestions[O("0x6")]())[O("0x5")]((t=>t[O("0xa")]));this[O("0x8")]=this[O("0x0")].isEnabled&&t}[O("0x1")](){const t=R(Array[O("0xc")](this[O("0x7")].values()));for(const e of t){const t=e.getRanges();if(!this[O("0x2")].model[O("0x3")](t))return}N(this.editor[O("0xb")],this[O("0x0")],t)}}const F=["selection","model","from","_selectedSuggestions","document","execute","_command","_isEnabledBasedOnSelection","values","_suggestions","editor","refresh","isEnabled","size"];var B,P;B=F,P=400,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return F[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this._command=e,this._suggestions=n,this[U("0x9")]=new Set,this.refresh(),this[U("0xd")]=!1}[U("0x3")](){const t=this[U("0x2")][U("0x7")][U("0xa")][U("0x6")],e=Array[U("0x8")](this[U("0x1")][U("0x0")]());this._selectedSuggestions=function(t,e){const n=Array[I("0x7")](t.getRanges()),o=new Set;for(const r of e)if(r.isInContent)for(const e of n)for(const n of r[I("0x16")]())(e[I("0x1")](n)||t[I("0xf")]&&!r[I("0x3")]&&r[I("0x0")]&&n[I("0x17")][I("0x6")](e.start))&&o.add(r);return o}(t,e),this[U("0x4")]=this._command[U("0x4")]&&!!this[U("0x9")][U("0x5")]}[U("0xb")](){const t=R(Array[U("0x8")](this[U("0x9")]));for(const e of t){const t=e.getRanges();if(!this.editor.model.canEditAt(t))return}N(this[U("0x2")][U("0x7")],this[U("0xc")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=H(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const 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 bt,pt=(bt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"";const Et=function(t){return!!pt&&pt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return St(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Dt=Object.prototype.hasOwnProperty;const Ft=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Dt.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=Ft,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const 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,be=he&&he.exports===me?ot.Buffer:void 0;const pe=(be?be.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===ke&&et.process;const Se=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var ve=Se&&Se.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),r=!n&&!o&&pe(t),i=!n&&!o&&!r&&Ne(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 De=function(t,e){return function(n){return t(e(n))}};const Fe=De(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return Fe(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,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,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=De(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=Nt(ot,"DataView");const fn=Nt(ot,"Promise");const mn=Nt(ot,"Set");const hn=Nt(ot,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=bn||fn&&Rn(fn.resolve())!=pn||mn&&Rn(new mn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return bn;case An:return pn;case kn:return En;case In:return _n}return e});const Sn=Rn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Dn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Fn=rt?rt.prototype:void 0,Bn=Fn?Fn.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 Dn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,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=Nn(e),!a)return Je(e,x)}else{var d=Sn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(pe(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!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),$n(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 bo=function(t,e){return ge(t)?t:io(t,e)?[t]:lo(ho(t))};const po=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!ft(t))return t;for(var r=-1,i=(e=bo(e,t)).length,s=i-1,x=t;null!=x&&++r<i;){var a=po(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 vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=rt?rt.prototype:void 0,Lo=No?No.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=vo),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=Ro(x(t),x(e),o,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 b=s?o(h,m,l,e,t,i):o(m,h,l,t,e,i);if(!(void 0===b?m===h||r(m,h,n,o,i):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 i.delete(t),i.delete(e),g};var Do="[object Arguments]",Fo="[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?Fo:Sn(t),c=x?Fo:Sn(e),l=(a=a==Do?Bo:a)==Bo,u=(c=c==Do?Bo:c)==Bo,d=a==c;if(d&&pe(t)){if(!pe(e))return!1;s=!0,l=!1}if(d&&!l)return i||(i=new Qt),s||Ne(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=bo(e,t)).length;null!=t&&n<o;)t=t[po(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,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=bo(e,t),null==(t=Wo(t,e))||delete t[po(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["isIntersectingWithRange","type","onAttributesChange","getRange","author","decorate","_saved","setAttribute","removeMarker","isExternal","getRanges","getMarkers","set","head","getItems","split","delete","nodeBefore","get","_isDataLoaded","previous","getFirstMarker","data","getContainedElement","markers","getAllAdjacentSuggestions","push","add","length","addRange","_markerNames","_onAttributesChange","toJSON","getMultiRangeId","filter","map","createdAt","_onAccept","start","accept","creator","removeMarkers","substr","removeAttribute","end","hasComments","_onDiscard","discard","_model","change","commentThread","onAccept","attributes","addMarkerName","clear","addMarker","getMarkerNames","subType"];var $o,Zo;$o=Xo,Zo=288,function(t){for(;--t;)$o.push($o.shift())}(++Zo);const Yo=function(t,e){return Xo[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Yo("0x15")]=!1,this.id=e.id,this[Yo("0x3")]=e[Yo("0x3")],this[Yo("0x1")]=e[Yo("0x1")]||null,this.author=e[Yo("0x6")],this[Yo("0x2a")]=e.creator||e[Yo("0x6")],this[Yo("0xb")]=Boolean(e[Yo("0x36")]&&e[Yo("0x36")]["@external"]),this[Yo("0x18")]=null,this._model=t,this[Yo("0x27")]=e[Yo("0x35")],this[Yo("0x30")]=e.onDiscard,this[Yo("0x21")]=e[Yo("0x4")],this[Yo("0x20")]=new Set,this[Yo("0x26")]=null,this.set("authoredAt",null),this[Yo("0xe")](Yo("0x36"),e[Yo("0x36")]||{}),this[Yo("0xe")]("previous",null),this[Yo("0xe")]("next",null),this.set(Yo("0x34"),null),this[Yo("0xe")](Yo("0x8"),!1),this[Yo("0x7")](Yo("0x29")),this[Yo("0x7")](Yo("0x31"))}get head(){let t=this;for(;t.previous;)t=t[Yo("0x16")];return t}get[Yo("0x2f")](){return!!this[Yo("0x34")]&&this[Yo("0x34")][Yo("0x1e")]>0}get isMultiRange(){return 0!=this._markerNames.size&&6==Array.from(this[Yo("0x20")])[0][Yo("0x11")](":")[Yo("0x1e")]}get isInContent(){return null!==this.getFirstMarker()}addMarkerName(t){this[Yo("0x20")][Yo("0x1d")](t)}[Yo("0x0")](){return Array.from(this._markerNames)}[Yo("0xd")](){return this[Yo("0x0")]()[Yo("0x25")]((t=>this[Yo("0x32")][Yo("0x1a")][Yo("0x14")](t)))[Yo("0x24")]((t=>t))}[Yo("0x17")](){return this[Yo("0xd")]()[0]||null}[Yo("0x2b")](){this[Yo("0x32")].change((t=>{for(const e of this[Yo("0xd")]())t.removeMarker(e)})),this[Yo("0x20")][Yo("0x38")]()}[Yo("0xa")](t){this[Yo("0x32")][Yo("0x33")]((e=>{e[Yo("0xa")](t)})),this[Yo("0x20")][Yo("0x12")](t)}[Yo("0x1f")](t){const e="suggestion:"+this[Yo("0x3")]+":"+this[Yo("0x1")]+":"+this.id+":"+this[Yo("0x2a")].id+":"+Jo[Yo("0x23")]();this[Yo("0x37")](e),this[Yo("0x32")][Yo("0x33")]((n=>{n[Yo("0x39")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Yo("0x2")](t){for(const e of this[Yo("0xc")]())if(e.isIntersecting(t))return!0;return!1}[Yo("0xc")](){return this.getMarkers()[Yo("0x25")]((t=>t.getRange()))}[Yo("0x10")](){return this[Yo("0xc")]().reduce(((t,e)=>[...t,...e[Yo("0x10")]()]),[])}getFirstRange(){var t;return(null===(t=this[Yo("0x17")]())||void 0===t?void 0:t[Yo("0x5")]())||null}[Yo("0x19")](){const t=this.getRanges();if(1!=t[Yo("0x1e")])return null;const e=t[0],n=e[Yo("0x28")].nodeAfter,o=e[Yo("0x2e")][Yo("0x13")];return n instanceof s.Element?n!=o?null:n:null}[Yo("0x29")](){this[Yo("0x27")](this[Yo("0xc")](),this[Yo("0x18")],this[Yo("0x36")]),this[Yo("0x2b")]()}[Yo("0x31")](){this[Yo("0x30")](this[Yo("0xc")](),this.data,this.attributes),this[Yo("0x2b")]()}[Yo("0x1b")](){const t=[];let e=this[Yo("0xf")];for(;e;)t[Yo("0x1c")](e),e=e.next;return t}[Yo("0x9")](t,e){const n=eo(this[Yo("0x36")]);_o(n,t,e),Go(n,this[Yo("0x36")])||(this[Yo("0x36")]=n,this[Yo("0x21")](n))}[Yo("0x2d")](t){const e=eo(this[Yo("0x36")]);qo(e,t),Go(e,this[Yo("0x36")])||(this.attributes=e,this[Yo("0x21")](this[Yo("0x36")]))}[Yo("0x22")](){return{id:this.id,type:this[Yo("0x1")]?this[Yo("0x3")]+":"+this[Yo("0x1")]:this[Yo("0x3")],authorId:this.creator.id,createdAt:this[Yo("0x26")],hasComments:this[Yo("0x2f")],data:this.data,attributes:this[Yo("0x36")]}}static[Yo("0x23")](){return(0,e.uid)()[Yo("0x2c")](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=["previousSibling","_handleRenameSuggestionDescription","_addDescriptionItems","*Set format:* %0","isEmpty","key","name","nextSibling","format","_handleInsertRemoveSuggestionDescription","addFormat","_itemLabels","subType","text","isEqual","registerAttributeLabel","isInContent","deletion","_itemLabelsCallbacks","has","registerDescriptionCallback","removeContainer","removeEmptyContainer","add","indexOf","end","_schema","removeFormat","item","ELEMENT_SPACE","start","REPLACE_TEXT","*Merge:* %0","replace","getFirstRange","label","elementEnd","getWalker","_customCallbacks","*Insert:* %0","join","pop","Container","*Split:* %0","isObject","checkChild","insertion","_attributeLabels","_resolveDescriptionItems","$textProxy","quantity","length","_locale","match","set","push","getItemLabel","get","_handleCustomCallbackDescription","elementStart","normal","remove","Object","*Change to:* %0","newValue","_handleAttributeSuggestionDescription","softBreak","$text","data","element","*Remove:* %0","type","nodeAfter","$1 $2"];var er,nr;er=tr,nr=432,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("0x32")]=[],this[or("0x17")]=new Map,this[or("0x1e")]=[],this[or("0x3b")]=new Map,this[or("0x26")]=t,this[or("0x40")]=e}getDescriptions(t){const e=[],n=new Set,o=new Set;for(let r=0;r<t[or("0x3f")];r++){const i=t[r];if(!i[or("0x1c")])continue;const s=this._handleCustomCallbackDescription(i);if(s){if(null!=i.subType){if(n.has(i[or("0x18")]))continue;n.add(i[or("0x18")])}e.push(s)}else if("attribute"!=i.type)or("0x3a")!=i[or("0x9")]&&or("0x1d")!=i[or("0x9")]||this[or("0x15")](e,i,t[r+1]);else{const t=i[or("0x6")][or("0x11")];if(o[or("0x1f")](t))continue;o[or("0x23")](i[or("0x6")][or("0x11")]),t==mc?this._handleRenameSuggestionDescription(e,i):this[or("0x3")](e,i)}}return this[or("0x3c")](e)}[or("0x20")](t){this[or("0x32")][or("0x43")](t)}registerElementLabel(t,n,o=e.priorities[or("0x48")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[or("0x1e")],{matchingCallback:t,label:n,priority:o}):this[or("0x17")][or("0x42")](t,n)}[or("0x1b")](t,e){this._attributeLabels[or("0x42")](t,e)}[or("0x44")](t,e=1){let n;for(const e of this[or("0x1e")])if(e.matchingCallback(t)){n=e[or("0x2f")];break}return n||(n=this._itemLabels.get(t[or("0x12")])),n?n(e):1!==e?e+" "+t[or("0x12")]+"s":""+t[or("0x12")]}_addDescriptionItems(t,e){const n=e[or("0x2e")]()[or("0x31")](),o=or("0x3a")==e[or("0x9")]?or("0x23"):or("0x49");for(const e of n){const r=e.item,i=t[t[or("0x3f")]-1];if(r.is(or("0x3d")))i&&i[or("0x9")][or("0x24")]("Container")>-1&&t.pop(),i&&"text"==i[or("0x9")]?i[o]+=r.data:t[or("0x43")]({type:or("0x19"),add:"add"==o?r[or("0x6")]:"",remove:or("0x49")==o?r.data:""});else if(this._schema[or("0x38")](r)){const s=r;if(i&&i[or("0x9")][or("0x24")]("Container")>-1&&t[or("0x35")](),"elementEnd"==e[or("0x9")])continue;i&&i[or("0x9")]==o+or("0x0")&&i[or("0x7")].name==s.name?i[or("0x3e")]++:t[or("0x43")]({type:o+"Object",element:s,quantity:1}),n.skip((t=>!(or("0x30")==t[or("0x9")]&&t[or("0x28")]==r)))}else if(this[or("0x26")][or("0x39")](r,or("0x5"))||r.is("element",or("0x4"))){const n=r;if(or("0x23")==o&&or("0x47")==e[or("0x9")]||or("0x49")==o&&or("0x30")==e[or("0x9")])continue;if(i&&-1==i[or("0x9")][or("0x24")](or("0x36"))){or("0x19")==i[or("0x9")]&&(i[o]+="\n");continue}let s;if(s=or("0x23")==o?n.nextSibling&&!this[or("0x26")].isObject(n[or("0x13")])?n[or("0x13")]:null:n[or("0xc")]&&!this[or("0x26")][or("0x38")](n[or("0xc")])?n[or("0xc")]:null,n.isEmpty||s&&s[or("0x10")]){const e=s&&s.isEmpty?s:n;i&&i.type==o+"EmptyContainer"&&i[or("0x7")][or("0x12")]==e.name?i.quantity++:t[or("0x43")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[or("0x43")]({type:o+"Container",element:n})}}}_resolveDescriptionItems(t){const e=this._locale,n=[],o=[],r=[];for(const i of t)switch(i.type){case or("0x19"):if(i[or("0x23")]=i.add[or("0x2d")](/(\S)\u000A+(\S)/g,or("0xb"))[or("0x2d")](/\u000A/g,""),i.remove=i.remove.replace(/(\S)\u000A+(\S)/g,"$1 $2")[or("0x2d")](/\u000A/g,""),""!=i[or("0x23")]&&""!=i[or("0x49")]){n[or("0x43")]({type:or("0x2d"),content:Qo(e,or("0x2b"),['"'+i[or("0x49")]+'"','"'+i.add+'"'])});continue}if(null!=i[or("0x23")][or("0x41")](/^ +$/)){n[or("0x43")]({type:or("0x3a"),content:Qo(e,or("0x33"),Qo(e,or("0x29"),i[or("0x23")][or("0x3f")]))});continue}if(null!=i[or("0x49")].match(/^ +$/)){n[or("0x43")]({type:or("0x1d"),content:Qo(e,or("0x8"),Qo(e,or("0x29"),i.remove[or("0x3f")]))});continue}if(""!=i[or("0x23")]){n[or("0x43")]({type:or("0x3a"),content:Qo(e,"*Insert:* %0",'"'+i[or("0x23")]+'"')});continue}n[or("0x43")]({type:"deletion",content:Qo(e,or("0x8"),'"'+i.remove+'"')});continue;case"addEmptyContainer":case"addObject":n.push({type:or("0x3a"),content:Qo(e,or("0x33"),this.getItemLabel(i[or("0x7")],i.quantity))});continue;case or("0x22"):case"removeObject":n[or("0x43")]({type:or("0x1d"),content:Qo(e,or("0x8"),this[or("0x44")](i[or("0x7")],i[or("0x3e")]))});continue;case"addContainer":n[or("0x43")]({type:or("0x3a"),content:Qo(e,or("0x37"),this[or("0x44")](i[or("0x7")],i.quantity))});continue;case or("0x21"):n[or("0x43")]({type:or("0x1d"),content:Qo(e,or("0x2c"),this[or("0x44")](i[or("0x7")],i[or("0x3e")]))});continue;case or("0x16"):o[or("0x43")](i[or("0x11")]);continue;case or("0x27"):r[or("0x43")](i.key);continue;default:n[or("0x43")](i)}if(o[or("0x3f")]){const t=o.map((t=>this[or("0x3b")][or("0x1f")](t)?this[or("0x3b")][or("0x45")](t):t))[or("0x34")](", ");n.push({type:or("0x14"),content:Qo(this[or("0x40")],or("0xf"),t)})}if(r[or("0x3f")]){const t=r.map((t=>this[or("0x3b")][or("0x1f")](t)?this[or("0x3b")][or("0x45")](t):t))[or("0x34")](", ");n[or("0x43")]({type:or("0x14"),content:Qo(this[or("0x40")],"*Remove format:* %0",t)})}return n}[or("0x46")](t){for(const e of this[or("0x32")]){const n=e(t);if(n&&"type"in n)return n}}[or("0x3")](t,e){const n=e[or("0x6")],o=void 0===n[or("0x2")]?"removeFormat":or("0x16");t[or("0x43")]({type:o,key:n[or("0x11")]})}[or("0xd")](t,e){t.push({type:or("0x14"),content:Qo(this._locale,or("0x1"),this[or("0x44")](e[or("0x2e")]()[or("0x2a")][or("0xa")],1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this[or("0xe")](t,e),n&&n[or("0x2e")]()&&!e.getFirstRange()[or("0x25")][or("0x1a")](n[or("0x2e")]()[or("0x2a")])){const n=t[t[or("0x3f")]-1],o=or("0x3a")==e.type?or("0x23"):"remove";n&&"text"==n.type&&(n[o]+="\n")}}}const ir=["get","enableCommand","commands","showAIAssistant","TrackChangesEditing"];var sr,xr;sr=ir,xr=397,function(t){for(;--t;)sr.push(sr.shift())}(++xr);const ar=function(t,e){return ir[t-=0]};class cr extends t.Plugin{afterInit(){const t=this.editor,e=t.plugins[ar("0x3")](ar("0x2"));t[ar("0x0")].get(ar("0x1"))&&e[ar("0x4")](ar("0x1"))}}const lr=["AlignmentEditing","get","FORMAT_ALIGN_TO_RIGHT","has","FORMAT_ALIGN_TO_CENTER","format","registerDescriptionCallback","plugins","TrackChangesEditing","right","_registerLegacyDescription","commandParams","center","editor","left","*Format:* %0","_descriptionFactory","FORMAT_ALIGNMENT","formatBlock","_enableDefaultAttributesIntegration","FORMAT_ALIGN_TO_LEFT","alignment","locale"];var ur,dr;ur=lr,dr=394,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("0xa")],e=t[gr("0x13")];if(!t[gr("0x4")][gr("0x0")](gr("0x14")))return;const n=t.plugins[gr("0x15")](gr("0x5"));n[gr("0x10")](gr("0x12"),[],[gr("0x12")]),n._descriptionFactory.registerAttributeLabel(gr("0x12"),Qo(e,gr("0xe"))),this[gr("0x7")]()}[gr("0x7")](){const t=this[gr("0xa")],e=t[gr("0x13")];t[gr("0x4")][gr("0x15")](gr("0x5"))[gr("0xd")][gr("0x3")]((t=>{if(gr("0xf")!=t.type)return;const{data:n}=t;if(n&&gr("0x12")==n.commandName){const t=n[gr("0x8")][0].value;return{type:gr("0x2"),content:Qo(e,gr("0xc"),function(t){switch(t){case gr("0xb"):return Qo(e,gr("0x11"));case gr("0x6"):return Qo(e,gr("0x16"));case gr("0x9"):return Qo(e,gr("0x1"));case"justify":return Qo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const mr=["FORMAT_BOLD","registerDescriptionCallback","has","type","SubscriptEditing","_descriptionFactory","underline","italic","get","editor","formatInline","toLowerCase","registerAttributeLabel","UnderlineEditing","TrackChangesEditing","toUpperCase","superscript","_enableDefaultAttributesIntegration","afterInit","FORMAT_ITALIC","subscript","forceValue","CodeEditing","FORMAT_","FORMAT_CODE","locale","_registerLegacyDescription","strikethrough","FORMAT_STRIKETHROUGH","BoldEditing","plugins","ItalicEditing","format","slice"];var hr,br;hr=mr,br=326,function(t){for(;--t;)hr.push(hr.shift())}(++br);const pr=function(t,e){return mr[t-=0]},Er=[pr("0x9"),pr("0xb"),pr("0x1b"),pr("0x2"),"StrikethroughEditing",pr("0x12"),"SuperscriptEditing"];class _r extends t.Plugin{[pr("0x20")](){const t=this.editor,e=t.plugins.get(pr("0x1c")),n=t.locale;for(const o of Er){if(!t[pr("0xa")][pr("0x10")](o))continue;const r=o[pr("0xd")](0,-7)[pr("0x19")](),i=pr("0x3")+r[pr("0x1d")]();e[pr("0x1f")](r,[r]),e[pr("0x13")][pr("0x1a")](r,Qo(n,i))}this[pr("0x6")]()}_registerLegacyDescription(){const t=this[pr("0x17")],e=t[pr("0x5")],n=t[pr("0xa")][pr("0x16")](pr("0x1c"));function o(t,o){n[pr("0x13")][pr("0xf")]((n=>{if(pr("0x18")!=n[pr("0x11")])return;const{data:r}=n;return r&&r.commandName===t?r.commandParams[0][pr("0x1")]?{type:pr("0xc"),content:Qo(e,"*Format:* %0",o)}:{type:pr("0xc"),content:Qo(e,"*Remove format:* %0",o)}:void 0}))}o("bold",Qo(e,pr("0xe"))),o(pr("0x15"),Qo(e,pr("0x21"))),o(pr("0x14"),Qo(e,"FORMAT_UNDERLINE")),o("code",Qo(e,pr("0x4"))),o(pr("0x7"),Qo(e,pr("0x8"))),o(pr("0x0"),Qo(e,"FORMAT_SUBSCRIPT")),o(pr("0x1e"),Qo(e,"FORMAT_SUPERSCRIPT"))}}const Tr=["selection","from","commandParams","value","_descriptionFactory","afterInit","registerDescriptionCallback","*Remove format:* %0","*Set format:* %0","get","TrackChangesEditing","has","commandName","BlockQuoteEditing","checkChild","name","parent","editor","schema","locale","plugins","$root","forceValue","format","document","model","enableCommand","ELEMENT_BLOCK_QUOTE","getSelectedBlocks","blockQuote","filter"];var yr,Cr;yr=Tr,Cr=383,function(t){for(;--t;)yr.push(yr.shift())}(++Cr);const Ar=function(t,e){return Tr[t-=0]};class kr extends t.Plugin{[Ar("0x19")](){const t=this.editor,e=t[Ar("0x8")];if(!t[Ar("0x9")][Ar("0x0")](Ar("0x2")))return;const n=t[Ar("0x9")][Ar("0x1d")](Ar("0x1e")),o=this[Ar("0x6")].commands.get(Ar("0x12"));n[Ar("0xf")](Ar("0x12"),((e,r={})=>{const i=this[Ar("0x6")].model[Ar("0xd")][Ar("0x14")],s=r&&void 0!==r[Ar("0xb")]?r[Ar("0xb")]:!o[Ar("0x17")];let x=[];if(s){const e=Array[Ar("0x15")](i[Ar("0x11")]())[Ar("0x13")]((t=>Ir(t)||function(t,e){const n=e.checkChild(t.parent,Ar("0x12")),o=e[Ar("0x3")]([Ar("0xa"),"blockQuote"],t);return n&&o}(t,this[Ar("0x6")][Ar("0xe")][Ar("0x7")])));x=S(e,t[Ar("0xe")])}else{const e=Array[Ar("0x15")](i[Ar("0x11")]())[Ar("0x13")]((t=>Ir(t)));x=S(e,t.model)}t.model.change((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ar("0x12"),commandParams:[{forceValue:s}]})}))})),n[Ar("0x18")][Ar("0x1a")]((t=>{const{data:n}=t;if(n&&Ar("0x12")==n[Ar("0x1")]){const t=Qo(e,Ar("0x10"));return n[Ar("0x16")][0][Ar("0xb")]?{type:Ar("0xc"),content:Qo(e,Ar("0x1c"),t)}:{type:Ar("0xc"),content:Qo(e,Ar("0x1b"),t)}}}))}}function Ir(t){return Ar("0x12")==t[Ar("0x5")][Ar("0x4")]}const Rr=["enableCommand","TrackChangesEditing","ckbox","afterInit","commands","plugins","get"];var Sr,vr;Sr=Rr,vr=299,function(t){for(;--t;)Sr.push(Sr.shift())}(++vr);const Nr=function(t,e){return Rr[t-=0]};class Lr extends t.Plugin{[Nr("0x5")](){const t=this.editor;t[Nr("0x6")][Nr("0x1")]("ckbox")&&t[Nr("0x0")].get(Nr("0x3"))[Nr("0x2")](Nr("0x4"))}}const Mr=["getSelectedBlocks","get","plugins","config","change","outdentCodeBlock","has","schema","from","locale","commandParams","afterInit","blockName","TrackChangesEditing","registerElementLabel","type","*Remove format:* %0","codeBlock","editor","forceValue","name","enableCommand","model","formatBlock","commands","value","find","language","*Set format:* %0","filter","format","indentCodeBlock","isLimit","CodeBlock","checkChild","_descriptionFactory","parent","selection","commandName","document"];var wr,Or;wr=Mr,Or=228,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Dr=function(t,e){return Mr[t-=0]};class Fr extends t.Plugin{[Dr("0x17")](){const t=this[Dr("0x1e")];if(!t[Dr("0xe")][Dr("0x12")](Dr("0x5")))return;const e=t[Dr("0xe")][Dr("0xd")](Dr("0x19")),n=t[Dr("0x15")],o=t[Dr("0xf")].get(Dr("0x1d")).languages,r=t[Dr("0x24")].get(Dr("0x1d"));e[Dr("0x21")](Dr("0x3")),e.enableCommand(Dr("0x11")),e.enableCommand(Dr("0x1d"),((n,i={})=>{const s=t[Dr("0x22")],x=t[Dr("0x22")][Dr("0xb")][Dr("0x9")],a=i&&void 0!==i.forceValue?i[Dr("0x1f")]:!r[Dr("0x25")];let c;i[Dr("0x27")]||(i.language=o[0][Dr("0x27")]),c=a?Array[Dr("0x14")](x[Dr("0xc")]())[Dr("0x1")]((t=>{return Br(t)||(e=t,n=s[Dr("0x13")],!e.is("rootElement")&&!n[Dr("0x4")](e)&&n[Dr("0x6")](e[Dr("0x8")],Dr("0x1d")));var e,n})):Array[Dr("0x14")](x.getSelectedBlocks())[Dr("0x1")]((t=>Br(t)));const l=S(c,s);s[Dr("0x10")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:"codeBlock",commandParams:[{...i,forceValue:a}],formatGroupId:Dr("0x18")})}))})),e[Dr("0x7")][Dr("0x1a")](Dr("0x1d"),(t=>Qo(n,"ELEMENT_CODE_BLOCK",t))),e[Dr("0x7")].registerDescriptionCallback((t=>{if(Dr("0x23")!=t[Dr("0x1b")])return;const e=n.t,{data:r}=t;if(!r||Dr("0x1d")!=r[Dr("0xa")])return;const i=r[Dr("0x16")][0][Dr("0x27")],s=e(o[Dr("0x26")]((t=>t[Dr("0x27")]===i)).label).toLowerCase();return r[Dr("0x16")][0][Dr("0x1f")]?{type:Dr("0x2"),content:Qo(n,Dr("0x0"),Qo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Qo(n,Dr("0x1c"),Qo(n,"ELEMENT_CODE_BLOCK",1))}}))}}function Br(t){return Dr("0x1d")==t[Dr("0x20")]}const Pr=["enableCommand","TrackChangesEditing","afterInit","plugins","has","get","editor","addCommentThread"];var Ur,jr;Ur=Pr,jr=448,function(t){for(;--t;)Ur.push(Ur.shift())}(++jr);const Gr=function(t,e){return Pr[t-=0]};class Vr extends t.Plugin{[Gr("0x2")](){const t=this[Gr("0x6")];t[Gr("0x3")][Gr("0x4")]("CommentsEditing")&&t[Gr("0x3")][Gr("0x5")](Gr("0x1"))[Gr("0x0")](Gr("0x7"))}}var Hr=n(181);const zr=["push","span","element","listIndent","activeMarkers","name","get","test","markerName","hasAttribute","plugins","schema","writer","isAtEnd","getItems","getCustomProperty","nextSibling","addHighlight","parent","isLimit","consumable","toViewPosition","bindElementToMarker","TrackChangesEditing","mapper","ck-suggestion-marker-","previousPosition","type","listItem","start","toViewElement","isContent","markerRange","addClass","item","createRangeOn"];var Wr,Kr;Wr=zr,Kr=151,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};function Xr(t,e,n){const o=[];for(const r of e[qr("0x7")]())r[qr("0x2")](t)&&o[qr("0x1d")](n[qr("0x1c")](r));return o}function $r(t,e,{showActiveMarker:n=!0}={}){const o=t[qr("0x3")][qr("0x23")](qr("0x10"));return(r,i,s)=>{if(!s[qr("0xd")][qr("0x0")](i.markerRange,r[qr("0x22")]))return;const x=i[qr("0x19")].getWalker(),a=i[qr("0x19")][qr("0x16")],c=t.model[qr("0x4")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[qr("0x1b")];d=d||c[qr("0x18")](e);const n=s[qr("0x11")][qr("0x17")](e);if(n&&n[qr("0x8")](qr("0xa")))return;"elementEnd"==t[qr("0x14")]&&c.isBlock(e)&&!c[qr("0xc")](e)&&(e[qr("0x9")]||a[qr("0x6")]?l&&l[qr("0xb")]==e||(l=e,f(t[qr("0x13")]),g=!0):u=u||t[qr("0x13")])}function f(t){const r=s.writer.createUIElement(qr("0x1e"),{class:qr("0x12")+e}),x=s[qr("0x11")][qr("0xe")](t);n&&o[qr("0x21")].includes(i.markerName)&&s[qr("0x5")][qr("0x1a")]("ck-suggestion-marker--active",r),s[qr("0x5")].insert(x,r),s[qr("0x11")][qr("0xf")](r,i[qr("0x1")])}d||g||!u||f(u)}}const Zr=["mapper","removeMarker:suggestion:deletion","markerName","markerNameToElements","fromRange","lock","rootName","plugins","commands","setSelection","delete","downcastDispatcher","merge","bind","document","$graveyard","addMarker:suggestion:deletion","createRange","modifySelection","detach","options","model","init","editor","remove","writer","data","end","high","enableCommand","deleteForward","forward","start","buffer","uiElement","editing","root","batch","TrackChangesEditing","createSelection"];var Yr,Jr;Yr=Zr,Jr=227,function(t){for(;--t;)Yr.push(Yr.shift())}(++Jr);const Qr=function(t,e){return Zr[t-=0]};class ti extends t.Plugin{static get requires(){return[Hr.Delete]}[Qr("0x23")](){const t=this[Qr("0x24")],e=t[Qr("0x14")].get(Qr("0xb"));e[Qr("0x2")](Qr("0x17"));const n=t[Qr("0x15")].get(Qr("0x3"));e[Qr("0x2")](Qr("0x3"),((e,o={})=>{const r=t[Qr("0x22")][Qr("0xc")](t[Qr("0x22")][Qr("0x1b")].selection);r.isCollapsed&&t.model[Qr("0x1f")](r,{direction:Qr("0x4"),unit:o.unit});const i=r.getFirstRange(),x=s.LiveRange[Qr("0x11")](i);let a;e(o),a=Qr("0x1c")==x[Qr("0x9")][Qr("0x13")]?t[Qr("0x22")][Qr("0x1e")](i[Qr("0x5")]):t[Qr("0x22")].createRange(x[Qr("0x5")],x[Qr("0x0")]),x[Qr("0x20")](),t[Qr("0x22")].enqueueChange(n[Qr("0x6")][Qr("0xa")],(t=>{n[Qr("0x6")][Qr("0x12")](),t[Qr("0x16")](t.createRange(a.end)),n[Qr("0x6")].unlock()}))})),t[Qr("0x8")][Qr("0x18")].on(Qr("0x1d"),$r(t,"merge"),{priority:Qr("0x1")}),t[Qr("0x27")].downcastDispatcher.on(Qr("0x1d"),((e,n,o)=>{o[Qr("0x21")].showSuggestionHighlights&&$r(t,Qr("0x19"),{showActiveMarker:!1})[Qr("0x1a")](this)(e,n,o)}),{priority:Qr("0x1")}),t.editing[Qr("0x18")].on(Qr("0xe"),((t,e,n)=>{const o=n[Qr("0xd")][Qr("0x10")](e[Qr("0xf")]);if(o)for(const t of o)t.is(Qr("0x7"))&&(n[Qr("0xd")].unbindElementFromMarkerName(t,e[Qr("0xf")]),n[Qr("0x26")][Qr("0x25")](t))}),{priority:Qr("0x1")})}}const ei=["commandParams","isObject","after","locale","start","format","containsItem","*Outdent:* %0","type","listType","markBlockFormat","*Change to:* %0","model","document","before","setSelection","change","listIndent","isFirstBlockOfListItem","end","nextSibling","push","formatBlock","deletion","splitListItemBefore","registerElementLabel","length","createRange","accept","mergeListItemBackward","*Merge:* %0","value","nodeAfter","toUpperCase","get","paragraph","execute","_descriptionFactory","refresh","getRanges","*Format:* remove from %0","ELEMENT_NUMBERED_LIST","list.multiBlock","documentList","splitListItemAfter","forceValue","next","plugins","getSelectedBlocks","previousSibling","hasAttribute","multipleBlocks","mergeListItemForward","DocumentListUtils","enableCommand","ELEMENT_LIST_ITEM","afterInit","commands","getAttribute","registerCustomCallback","detach","listItemId","numberedList","fromRange","TrackChangesEditing","from","config","editor","findIndex","has","bulletedList","createPositionAt","selection","map","outdentList","getFirstRange","commandName","_suggestionFactory","expandListBlocksToCompleteList","_LIST","slice","add","indentList"];var ni,oi;ni=ei,oi=427,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class ii extends t.Plugin{[ri("0x2c")](){const t=this[ri("0x37")];if(!t.plugins[ri("0x39")]("DocumentListEditing"))return;const e=t[ri("0x4a")],n=t[ri("0x23")][ri("0x16")](ri("0x34")),o=t[ri("0x23")][ri("0x16")](ri("0x29"));function r(e){return()=>{const r=t[ri("0x2d")][ri("0x16")](e);if(r.value&&!t[ri("0x36")][ri("0x16")](ri("0x1e")))return void t.execute(ri("0x17"),{});let i=Array[ri("0x35")](t[ri("0x0")][ri("0x1")][ri("0x3c")][ri("0x24")]());if(a(e)){i=o[ri("0x42")](i);const t=[];for(const e of i)o[ri("0x6")](e)&&t[ri("0x9")](e);i=t}t[ri("0x0")].change((()=>{n.markMultiRangeBlockFormat(i,{commandName:e,commandParams:[{forceValue:!r[ri("0x13")]}],formatGroupId:ri("0x50")},[],ri("0x1f"))}))}}function i(e){return()=>{const o=function(t){let e=Array[ri("0x35")](t);const n=e[ri("0x38")]((t=>!t[ri("0x26")]("listItemId")));return n>-1&&(e=e[ri("0x44")](0,n)),e}(t.model[ri("0x1")].selection[ri("0x24")]()),r=o[o[ri("0xe")]-1],i=t.model.schema[ri("0x48")](r)?ri("0x49"):ri("0x7"),s=t.model[ri("0xf")](t.model[ri("0x3b")](o[0],ri("0x2")),t.model[ri("0x3b")](r,i));t[ri("0x0")][ri("0x4")]((()=>{n[ri("0x51")](s,{commandName:e,commandParams:[],formatGroupId:ri("0x50")},function(t){const e=new Set;for(const n of t){let t=n[ri("0x8")];for(;t&&t[ri("0x2e")](ri("0x5"))>n[ri("0x2e")](ri("0x5"));)e[ri("0x45")](t),t=t[ri("0x8")]}return Array[ri("0x35")](e)}(o))}))}}function x(e){return()=>{const o=t[ri("0x0")][ri("0x1")][ri("0x3c")][ri("0x24")]()[ri("0x22")]()[ri("0x13")],r=t[ri("0x0")].createPositionAt(o,ri("0x2")),i=t[ri("0x0")][ri("0x3b")](o,0),s=t[ri("0x0")].createRange(r,i);t[ri("0x0")][ri("0x4")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:ri("0x50")})}))}}function a(e){const n=t.commands.get(ri("0x3a"))[ri("0x13")],o=t[ri("0x2d")][ri("0x16")](ri("0x32"))[ri("0x13")];return ri("0x32")===e?n:o}n.enableCommand(ri("0x32"),r("numberedList")),n.enableCommand(ri("0x3a"),r(ri("0x3a"))),n[ri("0x2a")]("indentList",i("indentList")),n[ri("0x2a")](ri("0x3e"),i(ri("0x3e"))),n.enableCommand(ri("0x20"),x(ri("0x20"))),n[ri("0x2a")](ri("0xc"),x(ri("0xc"))),n[ri("0x19")][ri("0xd")]((function(e){const n=!t[ri("0x0")].schema[ri("0x48")](e),o=e[ri("0x25")],r=e[ri("0x8")],i=e[ri("0x2e")]("listItemId"),s=!o||o[ri("0x2e")](ri("0x31"))!==i,x=!r||r[ri("0x2e")](ri("0x31"))!==i;return n&&Boolean(i)&&s&&x}),(t=>Qo(e,ri("0x2b"),t))),n._descriptionFactory.registerDescriptionCallback((function(n){if("formatBlock"!=n[ri("0x4f")]&&"formatInline"!=n[ri("0x4f")])return;const{data:o}=n;if(!o)return;let r,i,s,x;switch(o.commandName){case"bulletedList":s=o[ri("0x47")][0][ri("0x21")],x=a(o[ri("0x40")]),r=s?"*Format:* insert into %0":"*Format:* remove from %0",!x&&t[ri("0x36")][ri("0x16")]("list.multiBlock")||(r=ri("0x52")),i={type:ri("0x4c"),content:Qo(e,r,Qo(e,"ELEMENT_BULLETED_LIST"))};break;case ri("0x32"):s=o.commandParams[0][ri("0x21")],x=a(o.commandName),r=s?"*Format:* insert into %0":ri("0x1c"),!x&&t[ri("0x36")][ri("0x16")](ri("0x1e"))||(r=ri("0x52")),i={type:ri("0x4c"),content:Qo(e,r,Qo(e,ri("0x1d")))};break;case ri("0x46"):r="*Indent:* %0",i={type:ri("0x4c"),content:Qo(e,r,Qo(e,ri("0x2b")))};break;case"outdentList":r=function(t){const e=t[ri("0x3f")]();let n=e.start[ri("0x14")];for(;n&&e[ri("0x4d")](n);){if(n[ri("0x2e")]("listIndent")>0)return!1;n=n[ri("0x8")]}return!0}(n)?Qo(e,"*Format:* remove from %0",Qo(e,"ELEMENT_"+n.getFirstRange()[ri("0x4b")][ri("0x14")].getAttribute(ri("0x50"))[ri("0x15")]()+ri("0x43"))):Qo(e,ri("0x4e"),Qo(e,ri("0x2b"))),i={type:ri("0x4c"),content:r};break;case ri("0x11"):case ri("0x28"):!1===o[ri("0x27")]&&(r=ri("0x12"),i={type:ri("0xb"),content:Qo(e,r,Qo(e,ri("0x2b")))})}return i})),n[ri("0x41")][ri("0x2f")](ri("0xa"),ri("0x1f"),ri("0x10"),(function(e,n){const o=[];for(let n of e)n.start[ri("0x14")]===n[ri("0x7")].parent&&(n=t[ri("0x0")].createRange(t.model[ri("0x3b")](n[ri("0x4b")].nodeAfter,0))),o[ri("0x9")](n);t[ri("0x0")][ri("0x4")]((e=>{const r=t.model[ri("0x1")].selection,i=Array[ri("0x35")](r[ri("0x1b")]())[ri("0x3d")]((t=>s.LiveRange[ri("0x33")](t)));e[ri("0x3")](o),t[ri("0x2d")][ri("0x16")](n[ri("0x40")])[ri("0x1a")](),n[ri("0x47")].push({forceDefaultExecution:!0}),t[ri("0x18")](n[ri("0x40")],...n[ri("0x47")]),e[ri("0x3")](i);for(const t of i)t[ri("0x30")]()}))}))}}const si=["startIndex","afterInit","has","markMultiRangeBlockFormat","commandParams","length","expandListBlocksToCompleteList","*Format:* set order to regular","document","getListTypeFromListStyleType","formatBlock","get","getAttribute","TrackChangesEditing","formatInline","locale","commandName","_getSuggestionBlocksForListStyle","DocumentListPropertiesEditing","handleDescriptions","DocumentListUtils","type","_descriptionFactory","bind","listStart","reversed","editor","*Change to:* %0","from","_getSuggestionBlocks","_getTranslationKeyForListStyle","numbered","handleListStyleCommand","listStyle","push","styles","handleListStartCommand","isListItemBlock","ELEMENT_","change","enableCommand","_LIST_","getSelectedBlocks","format","*Format:* set order to reversed","list.properties","config","isFirstBlockOfListItem","*Format:* set start index to %0","listReversed","plugins","filter","selection","DocumentListPropertiesUtils","replace","model","handleListReversedCommand"];var xi,ai;xi=si,ai=143,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{[ci("0x1d")](){if(!this[ci("0x36")][ci("0x15")][ci("0x1e")](ci("0x2e")))return;const t=this[ci("0x36")][ci("0x11")][ci("0x27")](ci("0x10")),e=this.editor[ci("0x15")].get(ci("0x29"));t[ci("0x6")]&&e[ci("0xb")](ci("0x4"),this[ci("0x3")][ci("0x33")](this)),t.reversed&&e.enableCommand("listReversed",this[ci("0x1b")][ci("0x33")](this)),t[ci("0x1c")]&&e[ci("0xb")]("listStart",this[ci("0x7")][ci("0x33")](this)),e[ci("0x32")].registerDescriptionCallback(this[ci("0x2f")][ci("0x33")](this))}handleListStyleCommand(t,e={}){const n=this[ci("0x36")][ci("0x15")][ci("0x27")](ci("0x29")),o=this[ci("0x2d")]();this.editor[ci("0x1a")][ci("0xa")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:ci("0x4"),commandParams:[{type:e[ci("0x31")]}],formatGroupId:"listStyle"})}))}[ci("0x1b")](t,e={}){const n=this.editor[ci("0x15")][ci("0x27")]("TrackChangesEditing"),o=this[ci("0x36")].plugins.get(ci("0x30")),r=this._getSuggestionBlocks((t=>o[ci("0x8")](t)&&ci("0x2")===t[ci("0x28")]("listType")));null!==r&&this.editor[ci("0x1a")][ci("0xa")]((()=>{n[ci("0x1f")](r,{commandName:"listReversed",commandParams:[{reversed:e[ci("0x35")]}],formatGroupId:ci("0x14")})}))}[ci("0x7")](t,e={}){const n=this.editor[ci("0x15")][ci("0x27")](ci("0x29")),o=this[ci("0x36")].plugins[ci("0x27")](ci("0x30")),r=this[ci("0x0")]((t=>o[ci("0x8")](t)&&ci("0x2")===t[ci("0x28")]("listType")));null!==r&&this[ci("0x36")].model.change((()=>{n[ci("0x1f")](r,{commandName:"listStart",commandParams:[{startIndex:e[ci("0x1c")]}],formatGroupId:ci("0x34")})}))}handleDescriptions(t){if(ci("0x26")!=t[ci("0x31")]&&ci("0x2a")!=t[ci("0x31")])return;const e=this[ci("0x36")][ci("0x2b")],{data:n}=t;if(!n)return;let o,r;switch(n[ci("0x2c")]){case"listStyle":o=ci("0x37"),r={type:ci("0xe"),content:Qo(e,o,Qo(e,this[ci("0x1")](n.commandParams[0][ci("0x31")])))};break;case ci("0x14"):o=n[ci("0x20")][0][ci("0x35")]?ci("0xf"):ci("0x23"),r={type:ci("0xe"),content:Qo(e,o)};break;case ci("0x34"):o=ci("0x13"),r={type:ci("0xe"),content:Qo(e,o,n[ci("0x20")][0].startIndex)}}return r}_getSuggestionBlocksForListStyle(){const t=this.editor.plugins[ci("0x27")](ci("0x30"));let e=Array[ci("0x38")](this.editor[ci("0x1a")][ci("0x24")][ci("0x17")].getSelectedBlocks());return e.push(...t[ci("0x22")](e)),e=[...new Set(e)],e}[ci("0x0")](t){const e=this[ci("0x36")][ci("0x15")].get("DocumentListUtils");let n=Array[ci("0x38")](this[ci("0x36")].model[ci("0x24")][ci("0x17")][ci("0xd")]())[ci("0x16")](t);if(!n[ci("0x21")])return null;n=e[ci("0x22")](n);const o=[];for(const t of n)e[ci("0x12")](t)&&o[ci("0x5")](t);return o}[ci("0x1")](t){return ci("0x9")+this.editor[ci("0x15")][ci("0x27")](ci("0x18"))[ci("0x25")](t).toUpperCase()+ci("0xc")+t.toUpperCase()[ci("0x19")](/-/g,"_")}}var ui=n(331);const di=["addMarker:suggestion:insertion","editor","editing","init","createPositionAt","enter","setSelection","writer","downcastDispatcher","parent","markInsertion","fromRange","getFirstRange","markerName","options","selection","hasClass","ck-suggestion-marker-split","get","afterExecute","requires","model","end","change","split","unbindElementFromMarkerName","detach","fire","createRange","remove","getFirstPosition","nextSibling","TrackChangesEditing","mapper","plugins","enterBlock","data","high"];var gi,fi;gi=di,fi=407,function(t){for(;--t;)gi.push(gi.shift())}(++fi);const mi=function(t,e){return di[t-=0]};class hi extends t.Plugin{static get[mi("0x1f")](){return[ui.Enter]}[mi("0xe")](){const t=this[mi("0xc")],e=t[mi("0x7")][mi("0x1d")](mi("0x5")),n=t.commands[mi("0x1d")](mi("0x10"));e.enableCommand("enter",(()=>{t[mi("0x20")][mi("0x22")]((o=>{const r=t[mi("0x20")].document[mi("0x1a")],i=r[mi("0x3")](),x=s.LiveRange[mi("0x16")](r[mi("0x17")]());if(n[mi("0x8")](o)){const n=t[mi("0x20")][mi("0xf")](i[mi("0x14")][mi("0x4")],0),r=o.createRange(i,n);e[mi("0x15")](r)}else o[mi("0x11")](o[mi("0x1")](x[mi("0x21")]));x[mi("0x25")](),n[mi("0x0")](mi("0x1e"),{writer:o})}))})),t[mi("0xd")][mi("0x13")].on("addMarker:suggestion:insertion",$r(t,mi("0x23")),{priority:mi("0xa")}),t[mi("0xd")][mi("0x13")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[mi("0x6")].markerNameToElements(e[mi("0x18")]);if(o)for(const t of o)t[mi("0x1b")](mi("0x1c"))&&(n.mapper[mi("0x24")](t,e[mi("0x18")]),n[mi("0x12")][mi("0x2")](t))}),{priority:"high"}),t[mi("0x9")][mi("0x13")].on(mi("0xb"),((e,n,o)=>{o[mi("0x19")].showSuggestionHighlights&&$r(t,mi("0x23"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:"high"})}}const bi=["filter","_isInDeletionRange","has","getIntersection","get","item","enableCommand","markers","replaceAll","handleFindCommand","start","getRange","FindAndReplaceEditing","model","createPositionAt","bind","findNext","afterInit","FindAndReplaceUtils","editor","findByTextCallback","plugins","find"];var pi,Ei;pi=bi,Ei=333,function(t){for(;--t;)pi.push(pi.shift())}(++Ei);const _i=function(t,e){return bi[t-=0]};class Ti extends t.Plugin{[_i("0x6")](){if(!this[_i("0x8")][_i("0xa")][_i("0xe")](_i("0x1")))return;const t=this[_i("0x8")][_i("0xa")][_i("0x10")]("TrackChangesEditing");t[_i("0x12")](_i("0xb"),this[_i("0x15")][_i("0x4")](this)),t[_i("0x12")](_i("0x5")),t[_i("0x12")]("findPrevious"),t[_i("0x12")]("replace"),t.enableCommand(_i("0x14"))}[_i("0x15")](t,e,n={}){const o=this.editor[_i("0xa")][_i("0x10")](_i("0x7"));if(void 0!==n)return t((t=>("string"==typeof e?o[_i("0x9")](e,n):e)(t)[_i("0xc")]((e=>!1===this[_i("0xd")](e,t[_i("0x11")])))),n)}_isInDeletionRange(t,e){const n=this.editor[_i("0x2")].createRange(this[_i("0x8")][_i("0x2")][_i("0x3")](e,t[_i("0x16")]),this.editor[_i("0x2")][_i("0x3")](e,t.end));for(const t of this[_i("0x8")][_i("0x2")][_i("0x13")].getMarkersGroup("suggestion:deletion"))if(null!==n[_i("0xf")](t[_i("0x0")]()))return!0;return!1}}const yi=["has","locale","fontColor.colors","registerDescriptionCallback","model","_enableDefaultAttributesIntegration","*Set font background color:* %0","FORMAT_FONT_SIZE","plugins","FORMAT_FONT_BACKGROUND","fontSize","_descriptionFactory","fontBackgroundColor","commandName","fontFamily","*Set font family:* %0","*Reset font color*","*Set font size:* %0","label","value","FORMAT_FONT_FAMILY","registerAttributeLabel","commandParams","find","afterInit","FontBackgroundColorEditing","editor","FontSizeEditing","normalizeSizeOptions","get","TrackChangesEditing","format","FontFamilyEditing","FORMAT_FONT_COLOR","FontSize","formatInline","type","toLowerCase","fontColor","fontBackgroundColor.colors","trim","FontColorEditing","config"];var Ci,Ai;Ci=yi,Ai=331,function(t){for(;--t;)Ci.push(Ci.shift())}(++Ai);const ki=function(t,e){return yi[t-=0]},Ii=[{pluginName:ki("0x28"),commandName:"fontSize"},{pluginName:ki("0x2"),commandName:ki("0x1b")},{pluginName:ki("0xb"),commandName:"fontColor"},{pluginName:ki("0x26"),commandName:ki("0x19")}];class Ri extends t.Plugin{[ki("0x25")](){const t=this[ki("0x27")][ki("0xe")],e=this[ki("0x27")].plugins[ki("0x2a")](ki("0x0"));for(const{pluginName:t,commandName:n}of Ii)this.editor[ki("0x15")][ki("0xd")](t)&&e[ki("0x12")](n,[n]);t.t,e[ki("0x18")][ki("0x22")](ki("0x17"),Qo(t,ki("0x14"))),e[ki("0x18")][ki("0x22")](ki("0x1b"),Qo(t,ki("0x21"))),e[ki("0x18")][ki("0x22")](ki("0x8"),Qo(t,ki("0x3"))),e[ki("0x18")][ki("0x22")]("fontBackgroundColor",Qo(t,ki("0x16"))),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[ki("0x27")],e=t[ki("0xe")];t[ki("0x15")][ki("0x2a")](ki("0x0"))[ki("0x18")][ki("0x10")]((t=>{const n=e.t;if(ki("0x5")!=t[ki("0x6")])return;const{data:o}=t;if(null!=o){if("fontSize"==o.commandName){const t=o[ki("0x23")][0][ki("0x20")];if(t){const o=n(this[ki("0x27")].plugins[ki("0x2a")](ki("0x4"))[ki("0x29")](this[ki("0x27")].config[ki("0x2a")]("fontSize.options"))[ki("0x24")]((e=>e.model==t)).title)[ki("0x7")]();return{type:"format",content:Qo(e,ki("0x1e"),o)}}return{type:ki("0x1"),content:Qo(e,"*Reset font size*")}}if(ki("0x1b")==o.commandName){const t=o[ki("0x23")][0][ki("0x20")];return t?{type:ki("0x1"),content:Qo(e,ki("0x1c"),t)}:{type:ki("0x1"),content:Qo(e,"*Reset font family*")}}if("fontColor"==o[ki("0x1a")]){const t=o.commandParams[0][ki("0x20")];if(t){const o=(0,r.normalizeColorOptions)(this[ki("0x27")][ki("0xc")].get(ki("0xf")))[ki("0x24")]((e=>e[ki("0x11")]==t));let i=t,s="";return o&&(i=o[ki("0x1f")],s=n(i).toLowerCase()),{type:ki("0x1"),content:Qo(e,"*Set font color:* %0",s)[ki("0xa")](),color:{value:t,title:s||i}}}return{type:ki("0x1"),content:Qo(e,ki("0x1d"))}}if(ki("0x19")==o[ki("0x1a")]){const t=o[ki("0x23")][0].value;if(t){const o=(0,r.normalizeColorOptions)(this[ki("0x27")][ki("0xc")][ki("0x2a")](ki("0x9")))[ki("0x24")]((e=>e[ki("0x11")]==t));let i=t,s="";return o&&(i=o[ki("0x1f")],s=n(i).toLowerCase()),{type:ki("0x1"),content:Qo(e,ki("0x13"),s)[ki("0xa")](),color:{value:t,title:s||i}}}return{type:ki("0x1"),content:Qo(e,"*Reset font background color*")}}}}))}}const Si=["toUpperCase","config","fontColor.colors","copyFormat","_descriptionFactory","pasteFormat","join","enableCommand","model","plugins","boolean","length","commandParams","get","push","entries","fontColor","TrackChangesEditing","find","fontBackgroundColor","formatInline","toLowerCase","*Remove all formatting*","formatBlock","fontSize","registerDescriptionCallback","type","normalizeSizeOptions","format","_enableDefaultAttributesIntegration","editor","title","_registerLegacyDescription","locale","afterInit","slice","commandName","fontSize.options"];var vi,Ni;vi=Si,Ni=128,function(t){for(;--t;)vi.push(vi.shift())}(++Ni);const Li=function(t,e){return Si[t-=0]};class Mi extends t.Plugin{[Li("0x14")](){const t=this[Li("0x10")],e=t[Li("0x21")].get(Li("0x3")),n=t.commands[Li("0x25")](Li("0x1b")),o=t.commands[Li("0x25")](Li("0x1d"));n&&o&&(e[Li("0xf")](Li("0x1d")),e[Li("0x1f")](Li("0x1b")),this[Li("0x12")]())}[Li("0x12")](){const t=this.editor,e=t[Li("0x13")];t.plugins[Li("0x25")](Li("0x3"))[Li("0x1c")][Li("0xb")]((n=>{if(Li("0x9")!=n[Li("0xc")]&&Li("0x6")!=n[Li("0xc")])return;const{data:o}=n;if(o&&Li("0x1d")===o[Li("0x16")]){const n=[],r=o[Li("0x24")][0];for(const[e,o]of Object[Li("0x1")](r))n[Li("0x0")](wi(t,e,o));return n[Li("0x23")]?{type:Li("0xe"),content:Qo(e,"*Set format to:* %0",n[Li("0x1e")](", "))}:{type:"format",content:Qo(e,Li("0x8"))}}}))}}function wi(t,e,n){const o=t[Li("0x13")].t,i=e.split(/(?=[A-Z])/)[Li("0x1e")](" "),s=o(i.charAt(0)[Li("0x18")]()+i[Li("0x15")](1)).toLowerCase();if(Li("0x22")==typeof n)return s;if(Li("0x2")===e||Li("0x5")===e){const e=(0,r.normalizeColorOptions)(t[Li("0x19")][Li("0x25")](Li("0x1a")))[Li("0x4")]((t=>t[Li("0x20")]==n));return s+" ("+(e?o(e.label)[Li("0x7")]():n)+")"}if(Li("0xa")===e&&isNaN(parseFloat(n))){const e=t.plugins[Li("0x25")]("FontSize")[Li("0xd")](t[Li("0x19")][Li("0x25")](Li("0x17")))[Li("0x4")]((t=>t[Li("0x20")]==n));return s+" ("+(e?o(e[Li("0x11")])[Li("0x7")]():n)+")"}return s+" ("+n+")"}const Oi=["ELEMENT_HEADING","format","commandName","registerDescriptionCallback","afterInit","HeadingEditing","heading.options","*Change to:* %0","find","plugins","editor","type","_descriptionFactory","_getHeadingLevel","config","_headingOptions","model","paragraph","value","name","_enableDefaultAttributesIntegration","has","get","formatBlock","heading","_registerLegacyDescription","commandParams"];var Di,Fi;Di=Oi,Fi=119,function(t){for(;--t;)Di.push(Di.shift())}(++Fi);const Bi=function(t,e){return Oi[t-=0]};class Pi extends t.Plugin{[Bi("0x14")](){const t=this[Bi("0x1a")];if(!t[Bi("0x19")][Bi("0xa")](Bi("0x15")))return;this[Bi("0x4")]=t[Bi("0x3")][Bi("0xb")](Bi("0x16"));const e=t.locale,n=t[Bi("0x19")].get("TrackChangesEditing");n[Bi("0x9")](Bi("0xd"));for(const t of this[Bi("0x4")])Bi("0x6")!=t[Bi("0x5")]&&n[Bi("0x1")].registerElementLabel(t[Bi("0x5")],(n=>{const o=this[Bi("0x2")](t[Bi("0x5")]);return null!==o?(s=n,x=o,Qo(e,Bi("0x10"),[s,x])):(r=n,i=t.title,Qo(e,"ELEMENT_HEADING_CUSTOM",[r,i]));var r,i,s,x}));this[Bi("0xe")]()}[Bi("0xe")](){const t=this[Bi("0x1a")],e=t.locale;t.plugins[Bi("0xb")]("TrackChangesEditing")[Bi("0x1")][Bi("0x13")]((t=>{if(Bi("0xc")!=t[Bi("0x0")])return;const{data:n}=t;if(n&&Bi("0xd")==n[Bi("0x12")]){const t=n[Bi("0xf")][0][Bi("0x7")],s=this._getHeadingLevel(t);if(null!==s)return{type:Bi("0x11"),content:Qo(e,Bi("0x17"),(1,i=s,Qo(e,"ELEMENT_HEADING",[1,i])))};const x=this[Bi("0x4")][Bi("0x18")]((e=>e[Bi("0x5")]===t)).title;return{type:Bi("0x11"),content:Qo(e,"*Change to:* %0",(o=1,r=x,Qo(e,"ELEMENT_HEADING_CUSTOM",[o,r])))}}var o,r,i}))}[Bi("0x2")](t){var e,n;const o=t.match(/^heading(\d+)/);if(o)return o[1];const r=null===(e=this._headingOptions)||void 0===e?void 0:e[Bi("0x18")]((e=>e[Bi("0x5")]==t));if(r&&r.view){const t=r.view,e=(null!==(n=t[Bi("0x8")])&&void 0!==n?n:t).match(/^h(\d+)/);if(e)return e[1]}return null}}const Ui=["config","formatInline","*Remove highlight*","locale","highlight","plugins","editor","registerDescriptionCallback","commandParams","commandName","title","get","_descriptionFactory","highlight.options","find","*Set highlight:* %0","_registerLegacyDescription","type","HighlightEditing","value","format","_enableDefaultAttributesIntegration","FORMAT_HIGHLIGHT","model","afterInit"];var ji,Gi;ji=Ui,Gi=422,function(t){for(;--t;)ji.push(ji.shift())}(++Gi);const Vi=function(t,e){return Ui[t-=0]};class Hi extends t.Plugin{[Vi("0x2")](){const t=this[Vi("0x9")];if(!t[Vi("0x8")].has(Vi("0x15")))return;const e=t[Vi("0x8")][Vi("0xe")]("TrackChangesEditing"),n=t[Vi("0x6")];e[Vi("0x18")](Vi("0x7"),[Vi("0x7")]),e[Vi("0xf")].registerAttributeLabel(Vi("0x7"),Qo(n,Vi("0x0"))),this[Vi("0x13")]()}_registerLegacyDescription(){const t=this.editor,e=t.locale;t[Vi("0x8")][Vi("0xe")]("TrackChangesEditing")[Vi("0xf")][Vi("0xa")]((n=>{if(Vi("0x4")!=n[Vi("0x14")])return;const{data:o}=n;if(o&&Vi("0x7")==o[Vi("0xc")]){const n=e.t,r=o[Vi("0xb")][0][Vi("0x16")];if(r){const o=t[Vi("0x3")][Vi("0xe")](Vi("0x10"))[Vi("0x11")]((t=>t[Vi("0x1")]==r)),i=n(o[Vi("0xd")]).toLowerCase();return{type:Vi("0x17"),content:Qo(e,Vi("0x12"),i),color:{value:o.color,title:o.title}}}return{type:"format",content:Qo(e,Vi("0x5"),Qo(e,Vi("0x0")))}}}))}}const zi=["TrackChangesEditing","div","afterInit","ELEMENT_HORIZONTAL_LINE","HorizontalLineEditing","elementToStructure","createEmptyElement","ck-horizontal-line","addClass","get","registerElementLabel","createContainerElement","editor","for","plugins","has","enableCommand","showSuggestionHighlights","insert","horizontalLine"];var Wi,Ki;Wi=zi,Ki=370,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};class Xi extends t.Plugin{[qi("0xc")](){const t=this[qi("0x2")];if(!t[qi("0x4")][qi("0x5")](qi("0xe")))return;t[qi("0x4")][qi("0x13")](qi("0xa"))[qi("0x6")](qi("0x9"));const e=t.plugins[qi("0x13")](qi("0xa")),n=t.locale;e._descriptionFactory[qi("0x0")](qi("0x9"),(t=>Qo(n,qi("0xd"),t))),t.conversion[qi("0x3")]("dataDowncast")[qi("0xf")]({model:qi("0x9"),view:(t,{writer:e,options:n})=>{if(!n[qi("0x7")])return null;const o=e[qi("0x1")](qi("0xb")),r=e[qi("0x10")]("hr");return e[qi("0x12")](qi("0x11"),o),e[qi("0x8")](e.createPositionAt(o,0),r),o},converterPriority:"high"})}}const $i=["getFirstRange","type","get","locale","value","_enableDefaultAttributesIntegration","registerElementLabel","htmlEmbed","TrackChangesEditing","editor","start","registerDescriptionCallback","element","afterInit","_descriptionFactory","has","ELEMENT_HTML_EMBED","attribute","key","HtmlEmbed","rawHtml","format","_registerLegacyDescription","plugins","*Change %0 content*"];var Zi,Yi;Zi=$i,Yi=135,function(t){for(;--t;)Zi.push(Zi.shift())}(++Yi);const Ji=function(t,e){return $i[t-=0]};class Qi extends t.Plugin{[Ji("0x3")](){const t=this[Ji("0x18")];if(!t[Ji("0xd")][Ji("0x5")](Ji("0x9")))return;const e=t[Ji("0xd")][Ji("0x11")](Ji("0x17")),n=t.locale;e[Ji("0x4")][Ji("0x15")](Ji("0xa"),(t=>Qo(n,Ji("0x6"),t))),e[Ji("0x14")]("htmlEmbed",[],[Ji("0x13")]),e[Ji("0x4")][Ji("0x1")]((t=>{if(Ji("0x7")!=t.type)return;const{data:e}=t;if(e&&Ji("0x13")==e[Ji("0x8")]&&t[Ji("0xf")]()[Ji("0x0")].nodeAfter.is(Ji("0x2"),Ji("0xa"))){const t=Qo(n,Ji("0x6"));return{type:"format",content:Qo(n,"*Change %0 content*",t)}}})),this[Ji("0xc")]()}[Ji("0xc")](){const t=this[Ji("0x18")],e=t[Ji("0x12")];t[Ji("0xd")][Ji("0x11")]("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[Ji("0x10")])return;const{data:n}=t;if(n&&Ji("0x16")==n.commandName){const t=Qo(e,Ji("0x6"));return{type:Ji("0xb"),content:Qo(e,Ji("0xe"),t)}}}))}}const ts=["getClosestSelectedImageElement","ImageUploadEditing","commandParams","afterInit","locale","selection","insertion","convertBlockImageToInline","chain","addObject","fromPosition","document","markInsertion","createRange","subType","alt","imageStylePreApply","commandName","key","isCollapsed","formatBlock","_descriptionFactory","ImageInlineEditing","ImageTextAlternativeEditing","TrackChangesEditing","newValue","filter","*Set image text alternative:* %0","FORMAT_IMAGE_SIZE","previous","markBlockFormat","model","*Set image width:* %0","has","ImageBlockEditing","caption","toPrevious","change","ImageCaptionEditing","ELEMENT_IMAGE","discard","enableCommand","find","imageTextAlternative","isBlockImage","ImageUtils","imageTypeInline","_findSuggestions","isEqual","_enableDefaultAttributesIntegration","ImageCaptionUtils","resizeImage","registerCustomCallback","length","markDeletion","getCaptionFromImageModelElement","accept","ImageResize","ELEMENT_INLINE_IMAGE","getFirstRange","attribute","uploadImage","editor","imageCaption","getSuggestionCallback","getContainedElement","*Remove image text alternative*","_registerLegacyDescription","imageTypeBlock","resizedWidth","Block image to inline image","imageInline","get","createRangeOn","convertInlineImageToBlock","element","toNext","registerElementLabel","_suggestionFactory","nodeBefore","isBefore","detach","end","join","deletion","ELEMENT_CAPTION","forceDefaultExecution","isOwn","plugins","registerDescriptionCallback","findIndex","getNearestSelectionRange","type","insertImage","start","schema","format"];var es,ns;es=ts,ns=145,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class rs extends t.Plugin{[os("0x34")](){const t=this[os("0xe")];if(!t.plugins[os("0x52")]("ImageEditing"))return;const e=t.plugins[os("0x18")](os("0x49")),n=t[os("0x28")].get(os("0x5e")),o=t[os("0x35")];e[os("0x5a")](os("0x2d")),e._descriptionFactory[os("0x1d")]("imageBlock",(t=>Qo(o,os("0x58"),t))),e[os("0x46")][os("0x1d")](os("0x17"),(t=>Qo(o,os("0xa"),t))),e[os("0x46")][os("0x1d")]("caption",(()=>Qo(o,os("0x25")))),t[os("0x28")][os("0x52")](os("0x32"))&&e[os("0x5a")](os("0xd")),t[os("0x28")].has(os("0x53"))&&t[os("0x28")][os("0x52")](os("0x47"))&&(e[os("0x5a")](os("0x5f"),((o,r)=>{const i=n.getClosestSelectedImageElement(t.model[os("0x3c")].selection);t.model[os("0x56")]((()=>{e[os("0x4f")](i,{commandName:os("0x5f"),commandParams:[r]},[],"convertBlockImageToInline")}))})),e.enableCommand(os("0x14"),((o,r)=>{t[os("0x50")].change((i=>{let x=n[os("0x31")](t[os("0x50")][os("0x3c")][os("0x36")]),a=i.createRangeOn(x);const c=s.LivePosition[os("0x3b")](a.start,os("0x55")),l=s.LivePosition[os("0x3b")](a.end,os("0x1c"));e[os("0x26")]((()=>o(r))),x=n[os("0x31")](t.model.document[os("0x36")]),a=i[os("0x19")](x);const u=i[os("0x3e")](c,l);c[os("0x21")](),l.detach(),e.markBlockFormat(x,{commandName:os("0x5f"),commandParams:[r]},[],os("0x1a")),u[os("0x2e")][os("0x20")](a[os("0x2e")])&&e.markInsertion(i.createRange(u[os("0x2e")],a.start),os("0x1a")),a[os("0x22")][os("0x20")](u.end)&&e[os("0x3d")](i.createRange(a[os("0x22")],u[os("0x22")]),"convertInlineImageToBlock")}))})),e[os("0x1e")][os("0x4")](os("0x45"),os("0x1a"),os("0x23"),(()=>!1)),e._suggestionFactory[os("0x4")](os("0x45"),os("0x1a"),os("0x8"),(()=>!1)),e[os("0x1e")][os("0x4")](os("0x45"),os("0x1a"),os("0x59"),e[os("0x1e")][os("0x10")](os("0x45"),"","accept")),e._suggestionFactory.registerCustomCallback(os("0x37"),os("0x1a"),os("0x23"),(()=>!1)),e[os("0x1e")][os("0x4")]("insertion",os("0x1a"),os("0x59"),(([n])=>{const o=e._suggestionFactory[os("0x10")]("insertion","","discard");let r=n[os("0x2e")],i=n.end;const s=t[os("0x50")][os("0x2f")].getNearestSelectionRange(r,"backward"),x=t[os("0x50")][os("0x2f")][os("0x2b")](i,"forward");s[os("0x44")]&&(r=s[os("0x2e")]),x[os("0x44")]&&(i=x[os("0x22")]),o([t[os("0x50")].createRange(r,i)])})),e[os("0x1e")][os("0x4")](os("0x45"),"convertInlineImageToBlock",os("0x39"),x),e[os("0x1e")].registerCustomCallback(os("0x37"),os("0x1a"),os("0x39"),x)),t[os("0x28")].has(os("0x57"))&&(e[os("0x5a")]("toggleImageCaption",((o,r)=>{const i=t[os("0x28")][os("0x18")](os("0x2"));let s=n[os("0x31")](t.model[os("0x3c")][os("0x36")]),x=i[os("0x7")](s);t[os("0x50")][os("0x56")]((()=>{if(x)return void e[os("0x6")](t[os("0x50")].createRangeOn(x));const a=n[os("0x5d")](s);o(r),s=n.getClosestSelectedImageElement(t[os("0x50")].document[os("0x36")]),x=i[os("0x7")](s),e[os("0x3d")](t[os("0x50")][os("0x19")](x),a?null:"imageCaption")}))})),e[os("0x1e")][os("0x4")]("insertion","imageCaption","chain",x));const r=[{type:os("0x45"),subType:os("0x41")},{type:os("0x37"),subType:os("0xf")},{type:os("0x45"),subType:os("0x1a")},{type:os("0x37"),subType:os("0x1a")}];function i(t,o){const i=r[os("0x2a")]((({type:e,subType:n})=>t[os("0x2c")]==e&&t[os("0x3f")]==n)),s=r[os("0x2a")]((({type:t,subType:e})=>o.type==t&&o.subType==e));if(i<0||s<0)return!1;const x=t[os("0xb")](),a=o[os("0xb")]();if((0==i||1==i)&&2==s&&x.isIntersecting(a))return!0;if(2==i&&3==s){const t=e[os("0x60")](x,os("0x37"))[os("0x4b")]((({suggestion:t,meta:e})=>e[os("0x27")]&&os("0x1a")==t[os("0x3f")]));if(t[os("0x5")]>1&&a[os("0x22")][os("0x0")](x.start))return!0;if(1==t.length&&(x[os("0x2e")].isEqual(a.end)||x.end[os("0x0")](a[os("0x2e")])))return!0}if(3==i&&3==s&&x.start[os("0x20")](a[os("0x2e")])){const t=x.end.nodeAfter,e=a.start[os("0x1f")];return n[os("0x5d")](t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t[os("0x28")].has(os("0x9"))&&(e[os("0x1")](os("0x3"),[],[os("0x15")]),e[os("0x46")].registerAttributeLabel(os("0x15"),Qo(o,os("0x4d")))),t[os("0x28")].has(os("0x48"))&&e[os("0x1")](os("0x5c"),[],[os("0x40")]),e[os("0x46")][os("0x29")]((t=>{if(r[os("0x5b")]((({type:e,subType:n})=>t.type==e&&t.subType==n)))return t[os("0x4e")]?{}:void 0})),e._descriptionFactory[os("0x29")]((t=>{if(os("0x37")==t[os("0x2c")]||os("0x24")==t[os("0x2c")]){const e=t[os("0x11")]();if(e&&e.is(os("0x1b"),os("0x54")))return{type:os("0x37")==t.type?os("0x3a"):"removeObject",element:e,quantity:1}}})),e[os("0x46")][os("0x29")]((t=>"formatBlock"==t.type&&os("0x1a")==t.subType?{type:os("0x30"),content:"Inline image to block image"}:os("0x45")==t[os("0x2c")]&&os("0x38")==t.subType?{type:os("0x30"),content:os("0x16")}:void 0)),e[os("0x46")].registerDescriptionCallback((t=>{if(os("0xc")!=t[os("0x2c")])return;const{data:e}=t;if(!e||os("0x40")!=e[os("0x43")])return;const n=e.newValue;return n?{type:os("0x30"),content:Qo(o,os("0x4c"),'"'+n+'"')}:{type:os("0x30"),content:Qo(o,"*Remove image text alternative*")}})),this._registerLegacyDescription()}[os("0x13")](){const t=this.editor,e=t[os("0x35")];t[os("0x28")][os("0x18")](os("0x49"))[os("0x46")][os("0x29")]((t=>{if(os("0x45")!=t[os("0x2c")]&&"formatInline"!=t.type)return;const{data:n}=t;if(n){if(os("0x5c")==n[os("0x42")]){const t=n[os("0x33")][0][os("0x4a")];return t?{type:os("0x30"),content:Qo(e,os("0x4c"),'"'+t+'"')}:{type:os("0x30"),content:Qo(e,os("0x12"))}}if(os("0x3")==n.commandName){const t=n[os("0x33")][0].width;return t?{type:"format",content:Qo(e,os("0x51"),t)}:{type:os("0x30"),content:Qo(e,"*Reset image width*")}}}}))}}const is=["newValue","_registerLegacyDescription","locale","_handleLegacySuggestions","commandName","format","plugins","editor","type","afterInit","ImageEditing","has","getSuggestionCallback","src","_enableDefaultAttributesIntegration","replaceImageSource","registerDescriptionCallback","_suggestionFactory","discard","registerCustomCallback","get","accept","formatBlock","TrackChangesEditing","*Replace image URL*","_descriptionFactory"];var ss,xs;ss=is,xs=137,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{[as("0x2")](){if(!this.editor[as("0x19")][as("0x4")](as("0x3")))return;const t=this.editor[as("0x15")],e=this[as("0x0")][as("0x19")].get("TrackChangesEditing");e[as("0x7")](as("0x8"),[],[as("0x6")]),e._descriptionFactory.registerDescriptionCallback((e=>{if("attribute"!=e.type)return;const{data:n}=e;return n&&as("0x6")==n.key?n[as("0x13")]&&n.oldValue?{type:"format",content:Qo(t,"*Replace image URL*")}:{type:as("0x18"),content:""}:void 0})),this[as("0x16")]()}_handleLegacySuggestions(){const t=this[as("0x0")][as("0x19")][as("0xd")](as("0x10"));t[as("0xa")][as("0xc")]("formatBlock","replaceImageSource",as("0xe"),t[as("0xa")][as("0x5")](as("0xf"),null,"discard")),t[as("0xa")].registerCustomCallback(as("0xf"),as("0x8"),as("0xb"),t._suggestionFactory.getSuggestionCallback(as("0xf"),null,as("0xe"))),this._registerLegacyDescription()}[as("0x14")](){const t=this[as("0x0")],e=t[as("0x15")];t[as("0x19")].get(as("0x10"))[as("0x12")][as("0x9")]((t=>{if(as("0xf")!=t[as("0x1")]&&"formatInline"!=t[as("0x1")])return;const{data:n}=t;return n&&"replaceImageSource"===n[as("0x17")]?{type:as("0x18"),content:Qo(e,as("0x11"))}:void 0}))}}const ls=["change","discardSuggestion","_findSuggestions","shouldConvertImageType","imageStyle","ImageUtils","isBlockImage","title","model","normalizedStyles","createRangeOn","commands","side","editor","imageStylePreApply","filter","getSuggestionCallback","suggestion","setImageNaturalSizeAttributes","_suggestionFactory","start","ImageStyleEditing","commandName","*Format:* %0","refresh","findIndex","isIntersecting","newRange","locale","isBefore","from","getFirstRange","differ","getSuggestions","document","_registerLegacyDescription","nodeAfter","Users","TrackChangesEditing","hasSuggestion","convertInlineImageToBlock","markInlineFormat","end","plugins","insertion","imageTypeBlock","formatBlock","imageStylePostApply","format","commandParams","length","getSuggestion","markBlockFormat","commandReversedParams","next","selection","type","getContainedElement","subType","registerPostFixer","registerDescriptionCallback","enableCommand","value","imageTypeInline","accept","head","toLowerCase","isOwn","nodeBefore","formatInline","FORMAT_SIDE_IMAGE","isEqual","registerCustomCallback","chain","isInContent","_descriptionFactory","author","imageCaption","name","isInlineImage","getClosestSelectedImageElement","has","get","join"];var us,ds;us=ls,ds=139,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{afterInit(){const t=this[gs("0x2a")];if(!t[gs("0x48")][gs("0x1a")](gs("0x32")))return;const n=t[gs("0x48")][gs("0x1b")](gs("0x43")),o=t[gs("0x48")][gs("0x1b")](gs("0x22")),r={};n[gs("0x6")]("imageStyle",((r,i)=>{const s=t[gs("0x48")][gs("0x1b")](gs("0x42")).me,x=t[gs("0x28")][gs("0x1b")]("imageStyle");let a=o[gs("0x19")](t[gs("0x25")][gs("0x3f")].selection),c=t[gs("0x25")][gs("0x27")](a),l=x.value;if(l==i.value)return;const u={commandName:gs("0x21"),commandParams:[i],formatGroupId:(0,e.uid)()};t[gs("0x25")][gs("0x1d")]((()=>{if(n[gs("0x3e")]().filter((t=>t.isInContent&&s==t[gs("0x15")]&&("formatBlock"==t[gs("0x1")]||gs("0xe")==t.type)&&(gs("0x2b")==t.subType||"imageStylePostApply"==t.subType)&&t[gs("0x3c")]().isEqual(c))).forEach((t=>n[gs("0x1e")](t[gs("0xa")]))),a=o[gs("0x19")](t[gs("0x25")][gs("0x3f")].selection),c=t.model.createRangeOn(a),x[gs("0x35")](),t.commands[gs("0x1b")](gs("0x8"))[gs("0x35")](),t[gs("0x28")][gs("0x1b")](gs("0x4a"))[gs("0x35")](),l=x[gs("0x7")],l!=i[gs("0x7")])return o[gs("0x18")](a)&&x[gs("0x20")](i.value,a)?(r({...i,setImageSizes:!1}),a=o[gs("0x19")](t[gs("0x25")][gs("0x3f")][gs("0x0")]),void n[gs("0x51")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(o[gs("0x23")](a)?n[gs("0x51")](a,u,[],gs("0x4c")):n[gs("0x46")](c,u,"imageStylePostApply"))}))}));for(const e of t[gs("0x48")].get(gs("0x32"))[gs("0x26")])r[e[gs("0x17")]]=e[gs("0x24")][gs("0xb")]();n[gs("0x30")].registerCustomCallback(gs("0x4b"),gs("0x2b"),gs("0x1c"),(()=>!1)),n[gs("0x30")][gs("0x11")](gs("0x4b"),"imageStylePostApply","join",(()=>!1)),n[gs("0x30")][gs("0x11")](gs("0xe"),gs("0x4c"),gs("0x1c"),(()=>!1)),n[gs("0x30")][gs("0x11")](gs("0x4b"),"imageStylePreApply","accept",(([t])=>{o[gs("0x2f")](t[gs("0x2")]())})),n[gs("0x30")][gs("0x11")](gs("0x4b"),gs("0x2b"),"discard",((t,e)=>{n[gs("0x30")][gs("0x2d")](gs("0x4b"),"",gs("0x9"))(t,{commandName:e[gs("0x33")],commandParams:e[gs("0x52")]})})),n._suggestionFactory.registerCustomCallback(gs("0x4b"),gs("0x2b"),gs("0x12"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:gs("0x4b"),subType:"imageStylePreApply"},{type:gs("0x49"),subType:gs("0x16")},{type:gs("0x4b"),subType:gs("0x45")},{type:gs("0x49"),subType:"convertInlineImageToBlock"}];function s(t,e){const r=i[gs("0x36")]((({type:e,subType:n})=>t[gs("0x1")]==e&&t[gs("0x3")]==n)),s=i[gs("0x36")]((({type:t,subType:n})=>e[gs("0x1")]==t&&e.subType==n));if(r<0||s<0)return!1;const x=t[gs("0x3c")](),a=e.getFirstRange();if((0==r||1==r)&&2==s&&x[gs("0x37")](a))return!0;if(2==r&&3==s){const t=n[gs("0x1f")](x,gs("0x49"))[gs("0x2c")]((({suggestion:t,meta:e})=>e[gs("0xc")]&&gs("0x45")==t[gs("0x3")]));if(t[gs("0x4f")]>1&&a[gs("0x47")][gs("0x10")](x[gs("0x31")]))return!0;if(1==t.length&&(x[gs("0x31")].isEqual(a[gs("0x47")])||x[gs("0x47")][gs("0x10")](a.start)))return!0}if(3==r&&3==s&&x.start[gs("0x3a")](a[gs("0x31")])){const t=x[gs("0x47")][gs("0x41")],e=a[gs("0x31")][gs("0xd")];return o[gs("0x23")](t)&&t===e}return!1}t.model[gs("0x3f")][gs("0x4")]((()=>{let e=!1;const r=Array[gs("0x3b")](t.model[gs("0x3f")][gs("0x3d")].getChangedMarkers());for(const{name:t,data:i}of r){const{group:r,type:s,subType:x,id:a}=n._splitMarkerName(t);if(gs("0x2e")==r&&n[gs("0x44")](a)){if(gs("0x4b")==s&&(gs("0x2b")==x||gs("0x4c")==x)){const t=n.getSuggestion(a);if(i[gs("0x38")]){const r=t[gs("0x3c")]()[gs("0x2")]();if(o[gs("0x23")](r))continue;n[gs("0x1e")](t),e=!0}}if(gs("0x49")==s&&gs("0x16")==x&&!i[gs("0x38")]){const t=n[gs("0x50")](a);t[gs("0x53")]&&t.next[gs("0x13")]&&(n[gs("0x1e")](t[gs("0x53")]),e=!0)}}}return e})),this[gs("0x40")](r)}[gs("0x40")](t){const e=this[gs("0x2a")],n=e[gs("0x39")];e.plugins[gs("0x1b")](gs("0x43"))[gs("0x14")][gs("0x5")]((e=>{if("formatBlock"!=e.type&&"formatInline"!=e[gs("0x1")])return;const{data:o}=e;if(!o||gs("0x21")!=o.commandName)return;const r=o[gs("0x4e")][0].value;return i=gs("0x29")===r?Qo(n,gs("0xf")):t[r]||r,{type:gs("0x4d"),content:Qo(n,gs("0x34"),i)};var i}))}}const ms=["Users","dataInsert","afterInit","editor","bind","_setSuggestionData","listenTo","execute","_trackChangesValueDuringImport","value","get","collaboration_features","trackChanges","importWord","_trackChangesExecuted","forEach","commands","track_changes","plugins"];var hs,bs;hs=ms,bs=451,function(t){for(;--t;)hs.push(hs.shift())}(++bs);const ps=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[ps("0xd")]=!1,this[ps("0x0")]=!1}[ps("0x7")](){const t=this[ps("0x8")],e=t[ps("0x2")][ps("0xf")]("importWord"),n=t[ps("0x2")][ps("0xf")]("trackChanges");e&&(e.on(ps("0xc"),((t,[,e])=>{this[ps("0xd")]=n.value,e[ps("0x10")][ps("0x3")]=!this._trackChangesValueDuringImport}),{priority:"high"}),this[ps("0xb")](e,ps("0x6"),this._handleImportedData[ps("0x9")](this)),this[ps("0xb")](e,ps("0x6"),(()=>{this[ps("0x0")]&&(n[ps("0xc")](),this[ps("0x0")]=!1)}),{priority:"lowest"}),t[ps("0x4")][ps("0xf")]("TrackChangesEditing").enableCommand("importWord"))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[ps("0x8")].commands[ps("0xf")](ps("0x11")),r=o[ps("0xe")];this[ps("0xd")]!==r&&(o[ps("0xc")](),this._trackChangesExecuted=!0),n&&n[ps("0x1")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[ps("0x8")][ps("0x4")][ps("0xf")](ps("0x5")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ps("0x12")}}};this.editor[ps("0x4")].get("TrackChangesEditing")[ps("0xa")](r)}))}}const _s=["FORMAT_INDENT","locale","outdent","*Indent:* %0","IndentBlock","editor","_descriptionFactory","format","indent","outdentBlock","_registerLegacyDescription","registerDescriptionCallback","has","_registerBlockAttribute","get","plugins","IndentEditing","type","commandName","indentBlock","blockIndent","TrackChangesEditing","enableCommand"];var Ts,ys;Ts=_s,ys=437,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{afterInit(){const t=this[Cs("0x5")],e=t[Cs("0xf")].get(Cs("0x15"));if(t[Cs("0xf")][Cs("0xc")](Cs("0x10"))&&(e[Cs("0x16")](Cs("0x8")),e.enableCommand(Cs("0x2"))),t[Cs("0xf")][Cs("0xc")](Cs("0x4")))for(const t of[Cs("0x13"),Cs("0x9")])e._enableDefaultAttributesIntegration(t);const n=t.locale;e[Cs("0xd")](Cs("0x14")),e[Cs("0x6")].registerAttributeLabel(Cs("0x14"),Qo(n,Cs("0x0"))),this[Cs("0xa")]()}[Cs("0xa")](){const t=this[Cs("0x5")],e=t[Cs("0x1")],n=t[Cs("0xf")][Cs("0xe")]("TrackChangesEditing");n[Cs("0x6")][Cs("0xb")]((t=>{if("formatBlock"!=t[Cs("0x11")])return;const{data:o}=t;if(!o)return;if("indentBlock"!=o[Cs("0x12")]&&Cs("0x9")!=o[Cs("0x12")])return;const r=t.getItems()[0],i=n[Cs("0x6")].getItemLabel(r);return Cs("0x13")==o[Cs("0x12")]?{type:"format",content:Qo(e,Cs("0x3"),i)}:"outdentBlock"==o[Cs("0x12")]?{type:Cs("0x7"),content:Qo(e,"*Outdent:* %0",i)}:void 0}))}}var ks,Is,Rs=["requires","enableCommand","init","input","get","plugins"];ks=Rs,Is=174,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Ss=function(t,e){return Rs[t-=0]};class vs extends t.Plugin{static get[Ss("0x0")](){return[Hr.Input]}[Ss("0x2")](){this.editor[Ss("0x5")][Ss("0x4")]("TrackChangesEditing")[Ss("0x1")](Ss("0x3"))}}const Ns=["afterInit","attribute","locale","TrackChangesEditing","commandName","LinkEditing","plugins","_registerLegacyDescription","manualDecorators","editor","link","*Remove link*","_enableDefaultAttributesIntegration","format","commandParams","registerDescriptionCallback","has","get","link (","unlink","type","*Set link:* %0","commands","formatInline","_descriptionFactory"];var Ls,Ms;Ls=Ns,Ms=217,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{[ws("0x8")](){const t=this[ws("0x11")];if(!t.plugins[ws("0x18")](ws("0xd")))return;const e=t[ws("0xe")][ws("0x0")](ws("0xb")),n=t[ws("0x5")][ws("0x0")]("link");e[ws("0x14")]("link",["linkHref",...n[ws("0x10")].map((t=>t.id))]),e._enableDefaultAttributesIntegration(ws("0x2"));for(const t of n.manualDecorators)e[ws("0x7")].registerAttributeLabel(t.id,ws("0x1")+t.label.toLowerCase()+")");e[ws("0x7")][ws("0x17")]((e=>{if(ws("0x9")!=e[ws("0x3")])return;const{data:n}=e;if(!n||"linkHref"!=n.key)return;const o=n.newValue,r=t[ws("0xa")];return{type:ws("0x15"),content:o?Qo(r,"*Set link:* %0",'"'+o+'"'):Qo(r,ws("0x13"))}})),this._registerLegacyDescription()}[ws("0xf")](){const t=this[ws("0x11")],e=t[ws("0xa")];t[ws("0xe")][ws("0x0")](ws("0xb"))[ws("0x7")][ws("0x17")]((t=>{if(ws("0x6")!=t[ws("0x3")])return;const{data:n}=t;if(n){if(ws("0x12")==n[ws("0xc")]){const t=n[ws("0x16")][0];return{type:ws("0x15"),content:Qo(e,ws("0x4"),'"'+t+'"')}}return ws("0x2")==n[ws("0xc")]?{type:ws("0x15"),content:Qo(e,"*Remove link*")}:void 0}}))}}const Ds=["markBlockFormat","List","document","isObject","*Uncheck item*","bulletedList","*Outdent:* %0","todo","registerElementLabel","blockName","value","format","createRange","*Indent:* %0","parent","locale","listItem","selection","registerDescriptionCallback","commandName","indentList","numberedList","formatBlock","commands","paragraph","execute","get","add","enableCommand","checkChild","has","schema","slice","_descriptionFactory","change","_selectedElements","editor","ELEMENT_NUMBERED_LIST","getAttribute","type","*Check item*","filter","end","listIndent","numbered","ELEMENT_TODO_LIST","afterInit","from","TodoListEditing","element","getSelectedBlocks","replace","previousSibling","plugins","ELEMENT_LIST_ITEM","ListEditing","todoList","push","createPositionAt","model","todoListChecked","nextSibling","before","bulleted","forceValue","checkTodoList","*Change to:* %0","length","name"];var Fs,Bs;Fs=Ds,Bs=103,function(t){for(;--t;)Fs.push(Fs.shift())}(++Bs);const Ps=function(t,e){return Ds[t-=0]};class Us extends t.Plugin{[Ps("0xc")](){const t=this[Ps("0x2")],e=t[Ps("0x32")];if(!t[Ps("0x13")][Ps("0x41")](Ps("0x15")))return;const n=t[Ps("0x13")].get("TrackChangesEditing"),o=t[Ps("0x13")][Ps("0x41")](Ps("0xe"));function r(e){return()=>{const o=t.model.document[Ps("0x34")],r=t.commands[Ps("0x3d")](e);if(r[Ps("0x2d")])return void t[Ps("0x3c")](Ps("0x3b"),{});const i=e[Ps("0x43")](0,-4),s=function(t,e,n){let o=Array[Ps("0xd")](t)[Ps("0x7")]((t=>{return e=t,(o=n)[Ps("0x40")](e[Ps("0x31")],Ps("0x33"))&&!o[Ps("0x26")](e);var e,o}));o=o[Ps("0x7")]((t=>!t.is(Ps("0xf"),Ps("0x33"))||t.getAttribute("listType")!=e));const r=new Set;for(const t of o)t.is(Ps("0xf"),"listItem")?r[Ps("0x3e")](js(t)):r[Ps("0x3e")](t);return Array[Ps("0xd")](r)}(o[Ps("0x10")](),i,t.model[Ps("0x42")]);t[Ps("0x19")][Ps("0x0")]((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!r.value}],formatGroupId:Ps("0x2c")},Gs(t))}))}}function i(e){return()=>{const o=function(t){let e=Array[Ps("0xd")](t);const n=e.findIndex((t=>Ps("0x33")!=t.name));return n>-1&&(e=e[Ps("0x43")](0,n)),e}(t[Ps("0x19")][Ps("0x25")][Ps("0x34")][Ps("0x10")]()),r=t[Ps("0x19")][Ps("0x2f")](t[Ps("0x19")].createPositionAt(o[0],Ps("0x1c")),t[Ps("0x19")][Ps("0x18")](o[o[Ps("0x21")]-1],Ps("0x8")));t[Ps("0x19")].change((()=>{n[Ps("0x23")](r,{commandName:e,commandParams:[],formatGroupId:Ps("0x9")},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x1b")];for(;t&&t[Ps("0x4")](Ps("0x9"))>n[Ps("0x4")](Ps("0x9"));)e[Ps("0x3e")](t),t=t[Ps("0x1b")]}return Array[Ps("0xd")](e)}(o))}))}}n.enableCommand(Ps("0x38"),r(Ps("0x38"))),n[Ps("0x3f")](Ps("0x28"),r(Ps("0x28"))),o&&n[Ps("0x3f")](Ps("0x16"),r(Ps("0x16"))),n.enableCommand(Ps("0x37"),i(Ps("0x37"))),n[Ps("0x3f")]("outdentList",i("outdentList")),o&&n.enableCommand("checkTodoList",(()=>{const e=t[Ps("0x3a")][Ps("0x3d")](Ps("0x1f")),o=Array[Ps("0xd")](e[Ps("0x1")]);o[Ps("0x7")]((t=>t[Ps("0x4")](Ps("0x1a"))!=e.value)),t[Ps("0x19")].change((()=>{for(const t of o)n[Ps("0x23")](t,{commandName:Ps("0x1f"),commandParams:[{forceValue:!e.value}]})}))})),n[Ps("0x44")][Ps("0x2b")]("listItem",(t=>Qo(e,Ps("0x14"),t))),n[Ps("0x44")][Ps("0x35")]((t=>{if(Ps("0x39")!=t.type&&"formatInline"!=t[Ps("0x5")])return;const{data:n}=t;if(n){if("numberedList"==n.commandName||Ps("0x28")==n[Ps("0x36")]||Ps("0x16")==n[Ps("0x36")])switch(n[Ps("0x36")][Ps("0x11")](Ps("0x24"),"")){case Ps("0x1d"):return o(Qo(e,"ELEMENT_BULLETED_LIST"));case Ps("0xa"):return o(Qo(e,Ps("0x3")));case Ps("0x2a"):return o(Qo(e,Ps("0xb")))}if(Ps("0x37")==n.commandName)return{type:Ps("0x2e"),content:Qo(e,Ps("0x30"),Qo(e,Ps("0x14")))};if("outdentList"==n[Ps("0x36")])return{type:Ps("0x2e"),content:Qo(e,Ps("0x29"),Qo(e,Ps("0x14")))};if(Ps("0x1f")==n.commandName)return n.commandParams[0][Ps("0x1e")]?{type:Ps("0x2e"),content:Qo(e,Ps("0x6"))}:{type:"format",content:Qo(e,Ps("0x27"))}}function o(t){return{type:Ps("0x2e"),content:Qo(e,Ps("0x20"),t)}}}))}}function js(t){const e=t[Ps("0x4")](Ps("0x9"));if(0==e)return t;let n=t;for(;t[Ps("0x12")]&&t[Ps("0x12")].is(Ps("0xf"),Ps("0x33"));){const o=t[Ps("0x12")][Ps("0x4")](Ps("0x9"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t.previousSibling}return n}function Gs(t){const e=[];if(t.is(Ps("0xf"),Ps("0x33"))&&t.getAttribute(Ps("0x9"))>0){let n=t.nextSibling;for(;n&&Ps("0x33")==n[Ps("0x22")]&&n[Ps("0x4")](Ps("0x9"))==t[Ps("0x4")]("listIndent");)e[Ps("0x17")](n),n=n.nextSibling}return e}const Vs=["config","listReversed","numbered","commandParams","handleListStyleCommand","editor","markMultiRangeBlockFormat","bind","getSelectedBlocks","handleListReversedCommand","listStyle","replace","get","toUpperCase","enableCommand","listStart","listItem","registerDescriptionCallback","*Change to:* %0","handleListStartCommand","formatInline","getSiblingNodes","ListUtils","_getSuggestionBlocks","list.properties","styles","type","formatBlock","*Format:* set start index to %0","length","TrackChangesEditing","backward","handleDescriptions","listType","before","map","createPositionAt","flat","ELEMENT_","push","selection","reversed","from","format","_getSuggestionBlocksForListStyle","filter","_LIST_","forward","locale","document","getListTypeFromListStyleType","*Format:* set order to reversed","element","unshift","plugins","has","_getTranslationKeyForListStyle","createRange","getAttribute","_descriptionFactory","model","commandName","change"];var Hs,zs;Hs=Vs,zs=189,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{afterInit(){if(!this.editor[Ws("0x36")][Ws("0x37")]("ListPropertiesEditing"))return;const t=this[Ws("0x5")][Ws("0x0")].get(Ws("0x18")),e=this[Ws("0x5")][Ws("0x36")][Ws("0xc")](Ws("0x1e"));t[Ws("0x19")]&&e.enableCommand("listStyle",this[Ws("0x4")].bind(this)),t[Ws("0x29")]&&e[Ws("0xe")](Ws("0x1"),this[Ws("0x9")][Ws("0x7")](this)),t.startIndex&&e[Ws("0xe")]("listStart",this[Ws("0x13")][Ws("0x7")](this)),e[Ws("0x3b")][Ws("0x11")](this[Ws("0x20")][Ws("0x7")](this))}[Ws("0x4")](t,e={}){const n=this[Ws("0x5")][Ws("0x36")][Ws("0xc")](Ws("0x1e")),o=this[Ws("0x2c")]();this[Ws("0x5")][Ws("0x3c")].change((()=>{n[Ws("0x6")](o,{commandName:Ws("0xa"),commandParams:[{type:e[Ws("0x1a")]}],formatGroupId:Ws("0xa")})}))}[Ws("0x9")](t,e={}){const n=this[Ws("0x5")][Ws("0x36")][Ws("0xc")](Ws("0x1e")),o=this[Ws("0x17")]((t=>t.is(Ws("0x34"),Ws("0x10"))&&Ws("0x2")===t.getAttribute("listType")));if(o[Ws("0x1d")]<1)return;const r=o[Ws("0x23")]((t=>this.editor[Ws("0x3c")][Ws("0x39")](this.editor[Ws("0x3c")].createPositionAt(t,Ws("0x22")),this.editor[Ws("0x3c")].createPositionAt(t,0))));this[Ws("0x5")][Ws("0x3c")][Ws("0x3e")]((()=>{n[Ws("0x6")](r,{commandName:Ws("0x1"),commandParams:[{reversed:e[Ws("0x29")]}],formatGroupId:"listReversed"})}))}[Ws("0x13")](t,e={}){const n=this[Ws("0x5")][Ws("0x36")][Ws("0xc")](Ws("0x1e")),o=this._getSuggestionBlocks((t=>t.is(Ws("0x34"),Ws("0x10"))&&Ws("0x2")===t[Ws("0x3a")](Ws("0x21"))));if(o[Ws("0x1d")]<1)return;const r=o[Ws("0x23")]((t=>this[Ws("0x5")].model[Ws("0x39")](this[Ws("0x5")][Ws("0x3c")][Ws("0x24")](t,Ws("0x22")),this[Ws("0x5")].model.createPositionAt(t,0))));this[Ws("0x5")][Ws("0x3c")][Ws("0x3e")]((()=>{n[Ws("0x6")](r,{commandName:Ws("0xf"),commandParams:[{startIndex:e.startIndex}],formatGroupId:Ws("0xf")})}))}[Ws("0x20")](t){if(Ws("0x1b")!=t[Ws("0x1a")]&&Ws("0x14")!=t[Ws("0x1a")])return;const e=this[Ws("0x5")][Ws("0x30")],{data:n}=t;if(!n)return;let o,r;switch(n[Ws("0x3d")]){case Ws("0xa"):o=Ws("0x12"),r={type:Ws("0x2b"),content:Qo(e,o,Qo(e,this[Ws("0x38")](n[Ws("0x3")][0].type)))};break;case Ws("0x1"):o=n[Ws("0x3")][0].reversed?Ws("0x33"):"*Format:* set order to regular",r={type:"format",content:Qo(e,o)};break;case Ws("0xf"):o=Ws("0x1c"),r={type:Ws("0x2b"),content:Qo(e,o,n[Ws("0x3")][0].startIndex)}}return r}[Ws("0x2c")](){var t,e,n,o;const r=this.editor[Ws("0x36")][Ws("0xc")](Ws("0x16"));let i=Array[Ws("0x2a")](this[Ws("0x5")].model[Ws("0x31")].selection[Ws("0x8")]());return(null===(t=i[0])||void 0===t?void 0:t.is(Ws("0x34"),Ws("0x10")))&&i[Ws("0x35")](...r[Ws("0x15")](this[Ws("0x5")][Ws("0x3c")][Ws("0x31")][Ws("0x28")].getFirstPosition(),Ws("0x1f"))),(null===(e=i[i[Ws("0x1d")]-1])||void 0===e?void 0:e.is(Ws("0x34"),Ws("0x10")))&&i[Ws("0x27")](...r[Ws("0x15")](this[Ws("0x5")][Ws("0x3c")].document[Ws("0x28")].getLastPosition(),Ws("0x2f"))),i=[...new Set(i)],(null===(o=null===(n=this[Ws("0x5")][Ws("0x3c")][Ws("0x31")].selection.getFirstPosition())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Ws("0x34"),Ws("0x10")))&&(i=i[Ws("0x2d")]((t=>t.is(Ws("0x34"),Ws("0x10"))))),i}[Ws("0x17")](t){const e=this[Ws("0x5")][Ws("0x36")].get(Ws("0x16"));let n=Array[Ws("0x2a")](this[Ws("0x5")][Ws("0x3c")][Ws("0x31")][Ws("0x28")][Ws("0x8")]())[Ws("0x2d")](t)[Ws("0x23")]((t=>{const n=this[Ws("0x5")].model[Ws("0x24")](t,0);return[...e[Ws("0x15")](n,Ws("0x1f")),...e.getSiblingNodes(n,Ws("0x2f"))]}))[Ws("0x25")]();return n=[...new Set(n)],n}[Ws("0x38")](t){return Ws("0x26")+this[Ws("0x5")][Ws("0x36")][Ws("0xc")](Ws("0x16"))[Ws("0x32")](t)[Ws("0xd")]()+Ws("0x2e")+t.toUpperCase()[Ws("0xb")](/-/g,"_")}}const qs=["createEmptyElement","showSuggestionHighlights","for","plugins","MediaEmbedEditing","stop","registerElementLabel","elementToElement","has","attribute:url:media","editor","_descriptionFactory","afterInit","enableCommand","locale","downcastDispatcher","data","conversion","div","high","TrackChangesEditing","mediaEmbed","media"];var Xs,$s;Xs=qs,$s=157,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0x10")](){const t=this[Zs("0xe")];if(!t[Zs("0x7")][Zs("0xc")](Zs("0x8")))return;const e=t[Zs("0x7")].get(Zs("0x1")),n=t[Zs("0x12")];e[Zs("0x11")](Zs("0x2")),e[Zs("0xf")][Zs("0xa")]("media",(t=>Qo(n,"ELEMENT_MEDIA",t))),t[Zs("0x15")][Zs("0x6")]("dataDowncast")[Zs("0xb")]({model:Zs("0x3"),view:(t,{writer:e,options:n})=>{if(n[Zs("0x5")])return e[Zs("0x4")](Zs("0x16"))},converterPriority:Zs("0x0")}),t[Zs("0x14")][Zs("0x13")].on(Zs("0xd"),((t,e,n)=>{n.options[Zs("0x5")]&&t[Zs("0x9")]()}),{priority:Zs("0x0")})}}const Js=["get","TrackChangesEditing","MentionEditing","plugins","afterInit","editor"];var Qs,tx;Qs=Js,tx=423,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x1")](){const t=this[ex("0x2")];t[ex("0x0")].has(ex("0x5"))&&t[ex("0x0")][ex("0x3")](ex("0x4")).enableCommand("mention")}}const ox=["ELEMENT_PAGE_BREAK","PageBreakEditing","enableCommand","TrackChangesEditing","plugins","registerElementLabel","has","pageBreak","get"];var rx,ix;rx=ox,ix=398,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;if(!t[sx("0x2")][sx("0x4")](sx("0x8")))return;t[sx("0x2")][sx("0x6")](sx("0x1"))[sx("0x0")](sx("0x5"));const e=t[sx("0x2")][sx("0x6")](sx("0x1")),n=t.locale;e._descriptionFactory[sx("0x3")](sx("0x5"),(t=>Qo(n,sx("0x7"),t)))}}const ax=["get","markerRange","afterInit","editor","name","insert","_enableDefaultAttributesIntegration","start","editing","registerElementLabel","ck-suggestion-marker--active","paragraph","enableCommand","locale","*Change to:* %0","model","isLimit","nodeAfter","$text","getFirstRange","TrackChangesEditing","ELEMENT_PARAGRAPH","ck-suggestion-marker-split","commandName","registerDescriptionCallback","addMarker:suggestion:insertion","consume","plugins","insertion","addClass","insertParagraph","writer","*Insert:* %0","activeMarkers","end","downcastDispatcher","createUIElement","consumable","_descriptionFactory","toViewPosition","highest","options","isBlock","mapper","schema","markerName","_registerLegacyDescription"];var cx,lx;cx=ax,lx=307,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x18")](){const t=this[ux("0x19")];if(!t.plugins.has("Paragraph"))return;const e=t[ux("0x23")],n=t[ux("0x2")][ux("0x16")](ux("0x2a"));n[ux("0xd")][ux("0x1f")](ux("0x21"),(t=>Qo(e,ux("0x2b"),t))),n[ux("0x1c")]("paragraph"),n[ux("0x22")](ux("0x5")),t[ux("0x1e")][ux("0xa")].on("addMarker:suggestion:insertion",gx(t),{priority:ux("0xf")}),t.data[ux("0xa")].on(ux("0x0"),((e,n,o)=>{o[ux("0x10")].showSuggestionHighlights&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:ux("0xf")});const o=n[ux("0xd")];o[ux("0x2e")]((n=>{if(ux("0x3")!==n.type)return;const{start:r,end:i}=n[ux("0x29")]();if(!r.isTouching(i)||!r[ux("0x27")])return;const s=t[ux("0x25")][ux("0x13")],x=r[ux("0x27")];return s[ux("0x11")](x)&&!s[ux("0x26")](x)&&s.checkChild(x,ux("0x28"))?{type:ux("0x3"),content:Qo(e,ux("0x7"),o.getItemLabel(x,1))}:void 0})),this._registerLegacyDescription()}[ux("0x15")](){const t=this[ux("0x19")],e=t[ux("0x23")];t[ux("0x2")][ux("0x16")]("TrackChangesEditing")[ux("0xd")][ux("0x2e")]((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;return n&&ux("0x21")==n[ux("0x2d")]?{type:"format",content:Qo(e,ux("0x24"),Qo(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t[ux("0x2")][ux("0x16")](ux("0x2a")),s=o[ux("0x17")][ux("0x1d")],x=o[ux("0x17")][ux("0x9")],a=t[ux("0x25")][ux("0x13")];if(!s.isTouching(x)||!s[ux("0x27")])return;const c=s.nodeAfter;if(a[ux("0x11")](c)&&!a[ux("0x26")](c)&&a.checkChild(c,ux("0x28"))){if(!r[ux("0xc")][ux("0x1")](o[ux("0x17")],n[ux("0x1a")]))return;const t=r.writer[ux("0xb")]("span",{class:ux("0x2c")}),s=r[ux("0x12")][ux("0xe")](x);e&&i[ux("0x8")].includes(o[ux("0x14")])&&r.writer[ux("0x4")](ux("0x20"),t),r[ux("0x6")][ux("0x1b")](s,t),r[ux("0x12")].bindElementToMarker(t,o[ux("0x14")])}}}const fx=["locale","registerDescriptionCallback","_descriptionFactory","_enableDefaultAttributesIntegration","type","format","afterInit","plugins","get","_registerLegacyDescription","commandName","editor","has","RemoveFormatEditing","TrackChangesEditing","removeFormat"];var mx,hx;mx=fx,hx=142,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const bx=function(t,e){return fx[t-=0]};class px extends t.Plugin{[bx("0x8")](){const t=this[bx("0xd")];t[bx("0x9")][bx("0xe")](bx("0xf"))&&(t[bx("0x9")][bx("0xa")](bx("0x0"))[bx("0x5")](bx("0x1")),this[bx("0xb")]())}[bx("0xb")](){const t=this.editor;t.plugins[bx("0xa")](bx("0x0"))[bx("0x4")][bx("0x3")]((e=>{if("formatBlock"!=e.type&&"formatInline"!=e[bx("0x6")])return;const{data:n}=e;return n&&"removeFormat"==n[bx("0xc")]?{type:bx("0x7"),content:Qo(t[bx("0x2")],"*Remove all formatting*")}:void 0}))}}const Ex=["goToNextRestrictedEditingException","acceptAllSuggestions","discardSelectedSuggestions","enableCommand","RestrictedEditingModeEditing","discardSuggestion","acceptSuggestion","trackChanges","acceptSelectedSuggestions","TrackChangesEditing","get","discardAllSuggestions","goToPreviousRestrictedEditingException","plugins","afterInit"];var _x,Tx;_x=Ex,Tx=124,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0xa")](){const t=this.editor;if(!t[yx("0x9")].has(yx("0x0")))return;const e=t[yx("0x9")][yx("0x6")](yx("0x5"));e.enableCommand(yx("0x8")),e.enableCommand(yx("0xb"));const n=t.plugins[yx("0x6")](yx("0x0"));n.enableCommand(yx("0x3")),n[yx("0xe")](yx("0x2")),n[yx("0xe")](yx("0x1")),n[yx("0xe")](yx("0xc")),n[yx("0xe")](yx("0x7")),n[yx("0xe")](yx("0x4")),n[yx("0xe")](yx("0xd"))}}const Ax=["consumable","toViewPosition","addClass","options","split","bindElementToMarker","mapper","insert","model","markerName","editor","name","markerRange","showSuggestionHighlights","softBreak","plugins","span","registerElementLabel","deletion","addMarker:suggestion","high","shiftEnter","downcastDispatcher","createPositionBefore","getItems","TrackChangesEditing","writer","get","requires","ck-suggestion-marker-","editing"];var kx,Ix;kx=Ax,Ix=213,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Rx=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{static get[Rx("0x1")](){return[ui.ShiftEnter]}init(){const t=this[Rx("0xe")],e=t[Rx("0x13")][Rx("0x0")]("TrackChangesEditing");e.enableCommand(Rx("0x19")),t[Rx("0x3")][Rx("0x1a")].on("addMarker:suggestion:insertion",vx(t),{priority:Rx("0x18")}),t[Rx("0x3")][Rx("0x1a")].on("addMarker:suggestion:deletion",vx(t),{priority:Rx("0x18")}),t.data.downcastDispatcher.on(Rx("0x17"),((e,n,o)=>{o[Rx("0x7")][Rx("0x11")]&&vx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[Rx("0x15")](Rx("0x12"),(e=>Qo(t.locale,"ELEMENT_LINE_BREAK",e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t[Rx("0x13")][Rx("0x0")](Rx("0x1d"));if(!r[Rx("0x4")].test(o.markerRange,n[Rx("0xf")]))return;const s=t[Rx("0xc")];for(const t of o[Rx("0x10")][Rx("0x1c")]()){if(!t.is("element",Rx("0x12")))continue;const n=Rx("0x16")==o.markerName[Rx("0x8")](":")[1]?"merge":"split",x=r[Rx("0x1e")].createUIElement(Rx("0x14"),{class:Rx("0x2")+n}),a=r[Rx("0xa")][Rx("0x5")](s[Rx("0x1b")](t));e&&i.activeMarkers.includes(o.markerName)&&r[Rx("0x1e")][Rx("0x6")]("ck-suggestion-marker--active",x),r[Rx("0x1e")][Rx("0xb")](a,x),r[Rx("0xa")][Rx("0x9")](x,o[Rx("0xd")])}}}const Nx=["selection","forceValue","editor","locale","type","model","change","FORMAT_RESTRICTED_ENABLED","formatBlock","isCollapsed","commandName","commandParams","has","StandardEditingModeEditing","registerDescriptionCallback","document","get","format","TrackChangesEditing","plugins","FORMAT_RESTRICTED_DISABLED","_descriptionFactory","formatInline"];var Lx,Mx;Lx=Nx,Mx=407,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{afterInit(){const t=this[wx("0x9")],e=t[wx("0xc")],n=t[wx("0xa")];if(!t[wx("0x3")][wx("0x13")](wx("0x14")))return;const o=t[wx("0x3")][wx("0x0")](wx("0x2")),r="restrictedEditingException",i=t.commands[wx("0x0")](r);o.enableCommand(r,((t,n={})=>{const s=e[wx("0x16")][wx("0x7")];if(s[wx("0x10")])return void t(n);const x=void 0!==n[wx("0x8")]?n.forceValue:!i.value;e[wx("0xd")]((()=>{const t=Array.from(s.getRanges());for(const n of t){const t=x?[n]:Xr(r,n,e);for(const e of t)o.markInlineFormat(e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[wx("0x5")][wx("0x15")]((t=>{if(wx("0xf")!=t[wx("0xb")]&&wx("0x6")!=t.type)return;const{data:e}=t;return e&&e[wx("0x11")]==r?e[wx("0x12")][0][wx("0x8")]?{type:wx("0x1"),content:Qo(n,wx("0xe"))}:{type:wx("0x1"),content:Qo(n,wx("0x4"))}:void 0}))}}const Dx=["GeneralHtmlSupport","add","plugins","editor","_registerLegacyDescription","locale","toLowerCase","type","format","DataSchema","block","StyleUtils","afterInit","Style","_enableDefaultAttributesIntegration","style","_descriptionFactory","element","formatInline","styleName","has","registerDescriptionCallback","definitions","inline","commandParams","_registerBlockAttribute","registerAttributeLabel","commandName","getGhsAttributeNameForElement","TrackChangesEditing","*Set format:* %0","forceValue","normalizeConfig","*Remove format:* %0","get"];var Fx,Bx;Fx=Dx,Bx=153,function(t){for(;--t;)Fx.push(Fx.shift())}(++Bx);const Px=function(t,e){return Dx[t-=0]};class Ux extends t.Plugin{[Px("0x22")](){const t=this[Px("0x19")];if(!t[Px("0x18")][Px("0x7")](Px("0x0"))||!t.plugins.has("DataSchema"))return;const e=t[Px("0x18")].get(Px("0x10")),n=t[Px("0x1b")],o=t.config[Px("0x15")](Px("0x2")),r=t.plugins[Px("0x15")](Px("0x16")),i=t[Px("0x18")].get(Px("0x21"))[Px("0x13")](t[Px("0x18")][Px("0x15")](Px("0x1f")),o[Px("0x9")]);e[Px("0x1")](Px("0x2"));const s=new Set;for(const t of i[Px("0x20")]){const e=r[Px("0xf")](t.element);s[Px("0x17")](e)}const x=new Set;for(const t of i[Px("0xa")]){const e=r[Px("0xf")](t[Px("0x4")]);x[Px("0x17")](e);for(const e of t.ghsAttributes)x[Px("0x17")](e)}for(const t of s)e[Px("0xc")](t),e[Px("0x3")][Px("0xd")](t,Qo(n,"FORMAT_STYLE"));for(const t of x)e._registerInlineAttribute(t),e[Px("0x3")].registerAttributeLabel(t,Qo(n,"FORMAT_STYLE"));this._registerLegacyDescription()}[Px("0x1a")](){const t=this[Px("0x19")],e=t[Px("0x1b")];t[Px("0x18")][Px("0x15")](Px("0x10"))[Px("0x3")][Px("0x8")]((t=>{if("formatBlock"!=t[Px("0x1d")]&&Px("0x5")!=t.type)return;const{data:n}=t;return n&&"style"===n[Px("0xe")]?n[Px("0xb")][0][Px("0x12")]?{type:Px("0x1e"),content:Qo(e,Px("0x11"),n[Px("0xb")][0].styleName[Px("0x1c")]())}:{type:Px("0x1e"),content:Qo(e,Px("0x14"),n[Px("0xb")][0][Px("0x6")].toLowerCase())}:void 0}))}}const jx=["markMultiRangeDeletion","differ","maxRow","name","accept","forceValue","push","ELEMENT_TABLE","insertTableRowBelow","deletion","insertTableColumnRight","change","_getCoordsForCells","length","editor","insert","_suggestionFactory","createTableWalker","_setupColumnsRowsFixing","getFirstRange","getChanges","createRangeOn","setSelection","startsWith","getChildren","rowspan","root","document","enableCommand","toViewElement","tableColumn","getCellLocation","min","TrackChangesEditing","ELEMENT_TABLE_ROW","maxColumn","_descriptionFactory","selectTableRow","join","removeTableColumn","addClass","start","suggestion","some","ELEMENT_TABLE_WITH_TEXT","end","table","fromRange","first","last","*Remove:* %0","add","tableRow","options","registerCustomCallback","_getSuggestionCoords","isTouching","TableEditing","rootName","ELEMENT_TABLE_COLUMN_WITH_TEXT","minColumn","get","left","getSelectionAffectedTableCells","locale","hasAttribute","MIN_SAFE_INTEGER","MAX_SAFE_INTEGER","*Insert:* %0","refresh","minRow","$graveyard","tablePaste","highest","getAttribute","getRowIndexes","span","ELEMENT_TABLE_COLUMN","getRanges","insertion","has","type","isIntersectingWithRange","every","_splitMarkerName","removeTableRow","toLowerCase","getItems","classes","selection","nodeAfter","removeClass","isInContent","addMarker:suggestion","$textProxy","includes","tableCell","above","item","showSuggestionHighlights","plugins","registerDescriptionCallback","max","execute","enqueueChange","nodeBefore","_acceptFormatSuggestionCallbackFactory","afterInit","getColumnIndexes","registerElementLabel","isEqual","element","_tableSuggestions","order","detach","ELEMENT_TABLE_ROW_WITH_TEXT","from","map","commands","insertTableRowAbove","findAncestor","model","change:data","discard","data","colspan","cell","addRange","getChangedMarkers","_tablePostFixingSubtypes","values","substr","position","registerPostFixer","TableUtils","subType","filter","insertTable"];var Gx,Vx;Gx=jx,Vx=275,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Hx("0x82")]=["tableRow",Hx("0x1f")],this._tableSuggestions=new Set}[Hx("0x6c")](){const t=this[Hx("0xf")],e=t.model[Hx("0x1c")][Hx("0x5a")];if(!t[Hx("0x65")][Hx("0x51")](Hx("0x3a")))return;const n=t[Hx("0x41")],o=t.plugins[Hx("0x3e")](Hx("0x22")),r=t[Hx("0x65")][Hx("0x3e")](Hx("0x87"));o[Hx("0x25")][Hx("0x6e")](Hx("0x2f"),(t=>Qo(n,Hx("0x8"),t))),this[Hx("0x13")](),o[Hx("0x1d")](Hx("0x0")),o[Hx("0x1d")](Hx("0x26")),o[Hx("0x1d")]("selectTableColumn");for(const n of[Hx("0x78"),Hx("0x9")]){const i=t.commands[Hx("0x3e")](n);o[Hx("0x1d")](n,(n=>{t[Hx("0x7a")][Hx("0xc")]((t=>{n();const s=Hx("0x62")===i[Hx("0x72")],x=r[Hx("0x40")](e),a=r.getRowIndexes(x),c=s?a[Hx("0x31")]-1:a.last+1,l=x[0][Hx("0x79")]("table"),u=r[Hx("0x12")](l,{startRow:c,endRow:c}),d=Array.from(u)[Hx("0x76")]((e=>t[Hx("0x16")](e[Hx("0x7f")])));o.markMultiRangeInsertion(d,Hx("0x35"))}))}))}for(const n of["insertTableColumnLeft",Hx("0xb")]){const i=t[Hx("0x77")].get(n);o[Hx("0x1d")](n,(n=>{t[Hx("0x7a")][Hx("0xc")]((t=>{n();const s=Hx("0x3f")===i[Hx("0x72")],x=r[Hx("0x40")](e),a=r[Hx("0x6d")](x),c=s?a[Hx("0x31")]-1:a[Hx("0x32")]+1,l=x[0].findAncestor(Hx("0x2f")),u=r[Hx("0x12")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x75")](u)[Hx("0x76")]((e=>t[Hx("0x16")](e[Hx("0x7f")])));o.markMultiRangeInsertion(d,Hx("0x1f"))}))}))}for(const n of["removeTableRow",Hx("0x28")]){const i=n[Hx("0x84")](11),s=i[Hx("0x57")](),x=s.substr(0,3)+Hx("0x4d"),a="table"+i,c="min"+i,l=Hx("0x67")+i;o.enableCommand(n,(()=>{t[Hx("0x7a")][Hx("0xc")]((t=>{const i=r[Hx("0x40")](e),u=i[0][Hx("0x79")](Hx("0x2f"));let d;if(Hx("0x56")==n){const t=r[Hx("0x4c")](i);d={startRow:t[Hx("0x31")],endRow:t.last,includeAllSlots:!0}}else{const t=r[Hx("0x6d")](i);d={startColumn:t.first,endColumn:t.last,includeAllSlots:!0}}const g=r[Hx("0x12")](u,d),f=Array[Hx("0x75")](g)[Hx("0x76")]((({cell:t})=>t)),m=Wx(f.filter((t=>t[Hx("0x42")](x)))),h=Wx(f[Hx("0x89")]((t=>!t[Hx("0x42")](x))))[Hx("0x76")]((e=>t[Hx("0x16")](e))),b=o[Hx("0x1")](h,a);if(b&&(Hx("0x35")==b[Hx("0x88")]||Hx("0x1f")==b[Hx("0x88")])){const e=this[Hx("0x38")](b);for(const n of m){const o=t.createRangeOn(n),i=r[Hx("0x20")](n),a=n[Hx("0x4b")](x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&b[Hx("0x80")](o)}}}))}))}function i(n){const o=Array[Hx("0x75")](e[Hx("0x4f")]())[Hx("0x76")]((t=>s.LiveRange[Hx("0x30")](t)));t[Hx("0x7a")][Hx("0xc")]((e=>{const r=e.batch;n=n[Hx("0x89")]((t=>Hx("0x48")!=t[Hx("0x1b")][Hx("0x3b")])),e[Hx("0x17")](n),t[Hx("0x77")][Hx("0x3e")](Hx("0x56"))[Hx("0x46")](),t[Hx("0x68")](Hx("0x56"),{forceDefaultExecution:!0}),t[Hx("0x7a")][Hx("0x69")]((()=>{t[Hx("0x7a")][Hx("0x69")](r,(t=>{const e=o[Hx("0x89")]((t=>Hx("0x48")!=t.root[Hx("0x3b")]));e[Hx("0xe")]>0&&t[Hx("0x17")](e);for(const t of o)t[Hx("0x73")]()}))}))}))}function a(n){t[Hx("0x7a")][Hx("0xc")]((o=>{const r=Array.from(e[Hx("0x4f")]())[Hx("0x76")]((t=>s.LiveRange[Hx("0x30")](t))),i=[];for(const t of n)for(const e of t[Hx("0x58")]({shallow:!0}))i[Hx("0x7")](e);for(const e of i)"$graveyard"!=e[Hx("0x1b")][Hx("0x3b")]&&(o.setSelection(o.createPositionAt(e,0)),t[Hx("0x77")][Hx("0x3e")](Hx("0x28"))[Hx("0x46")](),t.execute(Hx("0x28"),{forceDefaultExecution:!0}));const x=r[Hx("0x89")]((t=>Hx("0x48")!=t.root[Hx("0x3b")]));x.length>0&&o[Hx("0x17")](x);for(const t of r)t.detach()}))}function c(t,e){return e[Hx("0x54")]((e=>t[Hx("0x2c")]((t=>t[Hx("0x2e")][Hx("0x6f")](e[Hx("0x2a")])||e[Hx("0x2e")][Hx("0x6f")](t.start)))))}function l(t,e){return t[Hx("0x2c")]((t=>e[Hx("0x2c")]((e=>t[Hx("0x2e")][Hx("0x39")](e[Hx("0x2a")])))))}t[Hx("0x7d")].downcastDispatcher.on(Hx("0x5e"),((t,e,n)=>{if(!n[Hx("0x36")][Hx("0x64")])return;const o=e[Hx("0x63")];if(!o)return;const r=n.mapper[Hx("0x1e")](o);function i(t){return Array.isArray(t)?t:[t]}r&&Hx("0x61")===o[Hx("0x4")]&&(0,x.setHighlightHandling)(r,n.writer,((t,e,n)=>n[Hx("0x29")](i(e[Hx("0x59")]),t)),((t,e,n)=>n[Hx("0x5c")](i(e[Hx("0x59")]),t)))}),{priority:Hx("0x4a")}),o._descriptionFactory[Hx("0x66")]((t=>{if("insertion"!=t.type&&"deletion"!=t[Hx("0x52")])return;const e=t.getContainedElement();if(null!=e&&e.is(Hx("0x70"),Hx("0x2f"))){if(Hx("0x50")==t[Hx("0x52")]){const e=t[Hx("0x58")]()[Hx("0x89")]((t=>t.is(Hx("0x5f"))))[Hx("0x76")]((t=>t.data));if(e[Hx("0xe")])return{type:Hx("0x50"),content:Qo(n,"*Insert:* %0",Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Hx("0x27")](" ")+'"'))}}if(Hx("0xa")==t[Hx("0x52")]){const e=t[Hx("0x58")]()[Hx("0x89")]((t=>t.is(Hx("0x5f")))).map((t=>t[Hx("0x7d")]));if(e[Hx("0xe")])return{type:Hx("0xa"),content:Qo(n,Hx("0x33"),Qo(n,Hx("0x2d"),'"'+e[Hx("0x27")](" ")+'"'))}}}})),o[Hx("0x25")][Hx("0x66")]((t=>{if("tableRow"==t[Hx("0x88")]){const e=t[Hx("0x58")]()[Hx("0x89")]((t=>t.is(Hx("0x5f"))))[Hx("0x76")]((t=>t[Hx("0x7d")])),o=this[Hx("0x38")](t),r=o[Hx("0x3")]-o[Hx("0x47")]+1;if("insertion"==t[Hx("0x52")])return e[Hx("0xe")]?{type:Hx("0x50"),content:Qo(n,Hx("0x45"),Qo(n,Hx("0x74"),[r,'"'+e[Hx("0x27")](" ")+'"']))}:{type:"insertion",content:Qo(n,Hx("0x45"),Qo(n,"ELEMENT_TABLE_ROW",r))};if(Hx("0xa")==t[Hx("0x52")])return e[Hx("0xe")]?{type:"deletion",content:Qo(n,Hx("0x33"),Qo(n,Hx("0x74"),[r,'"'+e[Hx("0x27")](" ")+'"']))}:{type:Hx("0xa"),content:Qo(n,Hx("0x33"),Qo(n,Hx("0x23"),r))}}if("tableColumn"==t[Hx("0x88")]){const e=t[Hx("0x58")]()[Hx("0x89")]((t=>t.is(Hx("0x5f"))))[Hx("0x76")]((t=>t[Hx("0x7d")])),o=this[Hx("0x38")](t),r=o[Hx("0x24")]-o[Hx("0x3d")]+1;if("insertion"==t[Hx("0x52")])return e[Hx("0xe")]?{type:"insertion",content:Qo(n,Hx("0x45"),Qo(n,Hx("0x3c"),[r,'"'+e[Hx("0x27")](" ")+'"']))}:{type:"insertion",content:Qo(n,Hx("0x45"),Qo(n,Hx("0x4e"),r))};if(Hx("0xa")==t[Hx("0x52")])return e[Hx("0xe")]?{type:Hx("0xa"),content:Qo(n,Hx("0x33"),Qo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e.join(" ")+'"']))}:{type:Hx("0xa"),content:Qo(n,Hx("0x33"),Qo(n,Hx("0x4e"),r))}}})),o._suggestionFactory[Hx("0x37")]("insertion",Hx("0x35"),Hx("0x7c"),i),o[Hx("0x11")][Hx("0x37")]("deletion","tableRow",Hx("0x5"),i),o[Hx("0x11")][Hx("0x37")](Hx("0x50"),"tableColumn",Hx("0x7c"),a),o[Hx("0x11")].registerCustomCallback("deletion",Hx("0x1f"),Hx("0x5"),a),o._suggestionFactory[Hx("0x37")]("insertion",Hx("0x1f"),"join",c),o[Hx("0x11")][Hx("0x37")](Hx("0xa"),Hx("0x1f"),Hx("0x27"),c),o[Hx("0x11")].registerCustomCallback(Hx("0x50"),"tableRow",Hx("0x27"),l),o[Hx("0x11")][Hx("0x37")](Hx("0xa"),Hx("0x35"),Hx("0x27"),l)}[Hx("0x6b")](){const t=this[Hx("0xf")],e=t[Hx("0x7a")][Hx("0x1c")][Hx("0x5a")];return(n,o)=>{t[Hx("0x7a")][Hx("0xc")]((r=>{const{commandName:i,commandParams:x}=o;let a=n[0][Hx("0x2e")][Hx("0x6a")];x&&x[0]&&!1===x[0][Hx("0x6")]&&(a=n[0][Hx("0x2a")][Hx("0x5b")]);const c=r.createRangeIn(a);if(Hx("0x48")==c[Hx("0x1b")][Hx("0x3b")])return;const l=Array[Hx("0x75")](e[Hx("0x4f")]())[Hx("0x76")]((t=>s.LiveRange[Hx("0x30")](t)));r[Hx("0x17")](c),t[Hx("0x77")][Hx("0x3e")](i)[Hx("0x46")](),x.push({forceDefaultExecution:!0}),t[Hx("0x68")](i,...x);const u=l.filter((t=>Hx("0x48")!=t.root[Hx("0x3b")]));u[Hx("0xe")]>0&&r.setSelection(u);for(const t of l)t[Hx("0x73")]()}))}}[Hx("0xd")](t){const e=this[Hx("0xf")][Hx("0x65")][Hx("0x3e")](Hx("0x87"));let n=Number.MAX_SAFE_INTEGER,o=Number[Hx("0x43")],r=Number[Hx("0x44")],i=Number[Hx("0x43")];for(const s of t){if("$graveyard"==s[Hx("0x1b")][Hx("0x3b")])continue;const{row:t,column:x}=e.getCellLocation(s),a=s[Hx("0x42")]("rowspan")?s[Hx("0x4b")](Hx("0x1a"))-1:0,c=s[Hx("0x42")](Hx("0x7e"))?s[Hx("0x4b")](Hx("0x7e"))-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}}[Hx("0x13")](){const t=this[Hx("0xf")],e=t[Hx("0x65")][Hx("0x3e")](Hx("0x22")),n=t[Hx("0x65")][Hx("0x3e")](Hx("0x87"));t[Hx("0x7a")][Hx("0x1c")].on(Hx("0x7b"),(()=>{const n=Array[Hx("0x75")](t.model[Hx("0x1c")][Hx("0x2")][Hx("0x81")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:i}=e[Hx("0x55")](t);if(Hx("0x2b")!=n)continue;if(null!=o.oldRange)continue;const s=e.getSuggestion(r);this[Hx("0x82")][Hx("0x60")](i)&&this[Hx("0x71")][Hx("0x34")](s)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const r=e[Hx("0x16")](t),i=t[Hx("0x79")](Hx("0x2f")),s=n[Hx("0x20")](t);for(const e of this._tableSuggestions){const n=e[Hx("0x88")],x=n[Hx("0x18")](Hx("0x49")),a=n[Hx("0x84")](x?10:5),c=a[Hx("0x57")](),l=c[Hx("0x84")](0,3)+Hx("0x4d"),u=Hx("0x21")+a,d=Hx("0x67")+a;if(!e[Hx("0x5d")])continue;if(i!=e[Hx("0x14")]()[Hx("0x2a")][Hx("0x79")](Hx("0x2f")))continue;if(e[Hx("0x53")](r))continue;const g=t[Hx("0x42")](l)?t[Hx("0x4b")](l)-1:0,f=this[Hx("0x38")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e.addRange(r),o=!0)}return o};t[Hx("0x7a")].document[Hx("0x86")]((e=>{let n=!1;for(const r of t.model[Hx("0x1c")][Hx("0x2")][Hx("0x15")]())if(Hx("0x10")==r.type)if(Hx("0x35")==r[Hx("0x4")])for(const t of r[Hx("0x85")].nodeAfter[Hx("0x19")]())n=n||o(t,e);else Hx("0x61")==r[Hx("0x4")]&&(n=n||o(r[Hx("0x85")].nodeAfter,e));return n}))}[Hx("0x38")](t){return this[Hx("0xd")](t[Hx("0x4f")]()[Hx("0x76")]((t=>t[Hx("0x2a")].nodeAfter)))}}function Wx(t){return Array[Hx("0x75")](new Set(t)[Hx("0x83")]())}const Kx=["root","fromRange","getSelectionAffectedTableCells","subType","length","selection","TableUtils","*Merge cells*","horizontally","markMultiRangeBlockFormat","_areMergableCells","trackChanges","size","formatInline","stop","map","find","editor","registerCustomCallback","commands","registerDescriptionCallback","change","*Split cell:* vertically","get","set:isEnabled","isInContent","format","requires","document","accept","markBlockFormat","getSuggestions","refresh","has","table","mergeTableCellDown","forceDefaultExecution","createRangeOn","TrackChangesEditing","_descriptionFactory","plugins","execute","$graveyard","insertion","mergeTableCells","mergeTableCellRight","*Split cell:* horizontally","mergeTableCellUp","getFirstPosition","_suggestionFactory","formatBlock","element","value","afterInit","commandName","splitTableCellVertically","createTableWalker","enableCommand","isEnabled","push","getRanges","findAncestor","_isForcedDefaultExecutionBlock","type","deletion","author","model","_acceptFormatSuggestionCallbackFactory","cell","setSelection","getCellLocation","tableCell","add","splitTableCellHorizontally","mergeTableCellLeft","from","rootName"];var qx,Xx;qx=Kx,Xx=313,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[$x("0x16")](){return[zx]}[$x("0x30")](){const t=this.editor,e=t.model[$x("0x17")][$x("0x0")],n=t.locale;if(!t[$x("0x23")][$x("0x1c")]("TableEditing"))return;const o=t.plugins.get("TrackChangesEditing"),r=t[$x("0x23")][$x("0x12")]($x("0x1")),i=t[$x("0x23")][$x("0x12")](zx);i._tablePostFixingSubtypes[$x("0x36")]($x("0x27")),o[$x("0x34")]($x("0x27"),(()=>{const e=r[$x("0x4a")](t.model.document[$x("0x0")]);t.model[$x("0x10")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:"mergeTableCells",commandParams:[]},[],$x("0x27"))}))})),t[$x("0xe")][$x("0x12")]($x("0x27")).on($x("0x24"),((e,n)=>{t.commands.get($x("0x6")).value&&(n[$x("0x4c")]>0&&n[n[$x("0x4c")]-1]&&n[n.length-1][$x("0x1f")]||o[$x("0x39")]||this._areSelectedCellsMergable()||e[$x("0x9")]())}),{priority:"highest"});for(const e of[$x("0x2a"),$x("0x28"),"mergeTableCellDown",$x("0x45")]){const n=t[$x("0xe")][$x("0x12")](e);o[$x("0x34")](e,(()=>{const e=t[$x("0x3d")].document.selection[$x("0x2b")]().getAncestors()[$x("0xb")]((t=>t.is("element",$x("0x42")))),r=n[$x("0x2f")];t.model[$x("0x10")]((()=>{o[$x("0x4")]([e,r],{commandName:"mergeTableCells",commandParams:[]},[],$x("0x27"))}))}))}for(const e of[$x("0x32"),$x("0x44")]){const n=t[$x("0xe")][$x("0x12")](e);o[$x("0x34")](e,(()=>{const i=r[$x("0x4a")](t[$x("0x3d")][$x("0x17")][$x("0x0")])[0],s=i[$x("0x38")]($x("0x1d")),{column:x,row:a}=r[$x("0x41")](i);let c=[];if($x("0x3")==n.direction){const t=r[$x("0x33")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0x46")](t)[$x("0xa")]((t=>t[$x("0x3f")]))}else{const t=r[$x("0x33")](s,{column:x,includeAllSlots:!0});c=Array[$x("0x46")](t)[$x("0xa")]((t=>t.cell))}t[$x("0x3d")][$x("0x10")]((t=>{o[$x("0x19")](t[$x("0x20")](i),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[$x("0xf")]((t=>{if($x("0x2d")!=t.type&&"formatInline"!=t[$x("0x3a")])return;const{data:e}=t;return e&&$x("0x27")==e[$x("0x31")]?{type:$x("0x15"),content:Qo(n,$x("0x2"))}:void 0})),o[$x("0x22")][$x("0xf")]((t=>{if($x("0x2d")!=t.type&&$x("0x8")!=t[$x("0x3a")])return;const{data:e}=t;return e?"splitTableCellVertically"==e.commandName?{type:$x("0x15"),content:Qo(n,$x("0x11"))}:$x("0x44")==e.commandName?{type:$x("0x15"),content:Qo(n,$x("0x29"))}:void 0:void 0}));const x=i[$x("0x3e")]();for(const t of[$x("0x2a"),"mergeTableCellRight",$x("0x1e"),$x("0x45")])o[$x("0x2c")].registerCustomCallback($x("0x2d"),t,"accept",x);for(const t of[$x("0x32"),$x("0x44")])o[$x("0x2c")].registerCustomCallback($x("0x2d"),t,$x("0x18"),x);o._suggestionFactory[$x("0xd")]("formatBlock",$x("0x27"),$x("0x18"),(n=>{t[$x("0x3d")][$x("0x10")]((o=>{const r=Array[$x("0x46")](e[$x("0x37")]())[$x("0xa")]((t=>s.LiveRange[$x("0x49")](t)));o.setSelection(n),t[$x("0xe")][$x("0x12")]($x("0x27"))[$x("0x1b")](),t[$x("0x24")]($x("0x27"),{forceDefaultExecution:!0});const i=r.filter((t=>$x("0x25")!=t[$x("0x48")][$x("0x47")]));i.length>0&&o[$x("0x40")](i);for(const t of r)t.detach()}))}));for(const e of[$x("0x2a"),$x("0x1e"),$x("0x45"),$x("0x28")]){const n=t.commands.get(e);n.on($x("0x13"),((e,o,r)=>{if(r){const o=t[$x("0x3d")][$x("0x17")][$x("0x0")][$x("0x2b")]().getAncestors()[$x("0xb")]((t=>t.is($x("0x2e"),$x("0x42"))));this[$x("0x5")](n[$x("0x2f")],o)||(e.return=!1,e[$x("0x9")]())}}),{priority:"low"})}}_areSelectedCellsMergable(){const t=this[$x("0xc")][$x("0xe")][$x("0x12")]($x("0x27")),e=this.editor.plugins[$x("0x12")]("TableUtils");if(!t[$x("0x35")])return!1;const n=e[$x("0x4a")](this.editor.model[$x("0x17")].selection);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[$x("0x5")](t,e){const n=this[$x("0xc")][$x("0x23")].get($x("0x21")),o=this.editor[$x("0x3d")][$x("0x20")](t),r=this[$x("0xc")][$x("0x3d")].createRangeOn(e),i=new Set,s=new Set;for(const t of n[$x("0x1a")]())if(($x("0x26")==t[$x("0x3a")]||$x("0x3b")==t.type||"mergeTableCells"==t[$x("0x4b")])&&t[$x("0x14")])for(const e of t[$x("0x37")]())e.containsRange(o,!0)&&i[$x("0x43")](t[$x("0x3a")]+":"+t[$x("0x3c")].id),e.containsRange(r,!0)&&s[$x("0x43")](t.type+":"+t[$x("0x3c")].id);if(i.size!=s[$x("0x7")])return!1;for(const t of i)if(!s[$x("0x1c")](t))return!1;return!0}}const Yx=["name","ck-suggestion-marker--active","TableUtils","registerAttributeLabel","markerName","markerNameToElements","registerCustomCallback","commandName","removeAttribute","_splitMarkerName","removeClass","highest","consumable","markerRange","getSuggestion","editor","getCellLocation","cell","consume","plugins","editing","has","requires","_descriptionFactory","addClass","activeMarkers","parent","FORMAT_HEADER_ROW","locale","nodeAfter","headingColumns","ck-suggestion-marker-","FORMAT_REGULAR_COLUMN","accept","setAttribute","get","FORMAT_HEADER_COLUMN","_suggestionFactory","*Format:* %0","createTableWalker","formatBlock","setTableRowHeader","options","data-suggestion","start","writer","data","addMarker:suggestion","headingRows","type","_acceptFormatSuggestionCallbackFactory","_enableDefaultAttributesIntegration","registerDescriptionCallback","stop","nodeBefore","setTableColumnHeader","mapper","item","showSuggestionHighlights","TrackChangesEditing","forceValue","downcastDispatcher","toViewElement","commandParams","_registerLegacyDescription","unbindElementFromMarkerName"];var Jx,Qx;Jx=Yx,Qx=166,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("0x36")](){return[zx]}afterInit(){const t=this[ta("0x2f")];if(!t[ta("0x33")][ta("0x35")]("TableEditing"))return;const e=t[ta("0x3c")],n=t[ta("0x33")][ta("0x1")]("TrackChangesEditing");n[ta("0x11")]("setTableRowHeader",[],["headingRows"]),n[ta("0x11")]("setTableColumnHeader",[],[ta("0x3e")]),n[ta("0x37")][ta("0x23")](ta("0xe"),Qo(e,"FORMAT_HEADER_ROW")),n[ta("0x37")][ta("0x23")](ta("0x3e"),Qo(e,ta("0x2"))),this._handleLegacySuggestions()}_handleLegacySuggestions(){const t=this[ta("0x2f")][ta("0x33")].get(ta("0x19")),e=this[ta("0x2f")][ta("0x33")][ta("0x1")](ta("0x22")),n=this[ta("0x2f")][ta("0x33")].get(zx)[ta("0x10")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(r,i,s)=>{const{type:x,id:a}=t[ta("0x29")](i.markerName),c=t[ta("0x2e")](a),l=c[ta("0xc")];if(ta("0x6")!=c.type||!l||ta("0x15")!=l[ta("0x27")])return;if(i[ta("0x17")])return void r[ta("0x13")]();if(!s[ta("0x2c")][ta("0x32")](i.markerRange,r[ta("0x20")]))return;const u=i[ta("0x2d")][ta("0xa")][ta("0x3d")],d=i[ta("0x2d")].end[ta("0x14")],g=u[ta("0x3a")][ta("0x3a")],{column:f}=e.getCellLocation(u),{column:m}=e[ta("0x30")](d);for(let r=f;r<=m;r++){const c=e[ta("0x5")](g,{column:r,includeAllSlots:!1});for(const e of c){const r=e[ta("0x31")],c=s[ta("0x16")][ta("0x1c")](r);s[ta("0xb")][ta("0x38")](ta("0x3f")+x,c),o&&s[ta("0xb")][ta("0x0")](ta("0x9"),a,c),s[ta("0x16")].bindElementToMarker(c,i[ta("0x24")]),n&&(t[ta("0x39")].includes(i[ta("0x24")])?s[ta("0xb")][ta("0x38")]("ck-suggestion-marker--active",c):s[ta("0xb")].removeClass(ta("0x21"),c))}}}}t[ta("0x3")][ta("0x26")](ta("0x6"),"setTableRowHeader",ta("0x41"),n),t._suggestionFactory.registerCustomCallback(ta("0x6"),"setTableColumnHeader","accept",n),this.editor[ta("0x34")][ta("0x1b")].on("addMarker:suggestion",o(),{priority:ta("0x2b")}),this[ta("0x2f")][ta("0xc")][ta("0x1b")].on(ta("0xd"),((t,e,n)=>{n[ta("0x8")][ta("0x18")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),this[ta("0x2f")][ta("0x34")].downcastDispatcher.on("removeMarker:suggestion",((e,n,o)=>{const{type:r,id:i}=t[ta("0x29")](n[ta("0x24")]),s=t[ta("0x2e")](i),x=s[ta("0xc")];if(ta("0x6")!=s[ta("0xf")]||!x||ta("0x15")!=x.commandName)return;const a=o[ta("0x16")][ta("0x25")](n[ta("0x24")]);if(a)for(const t of a)o[ta("0xb")][ta("0x2a")](ta("0x3f")+r,t),o.writer[ta("0x2a")](ta("0x21"),t),o.writer[ta("0x28")](ta("0x9"),t),o[ta("0x16")][ta("0x1f")](t,n[ta("0x24")])}),{priority:ta("0x2b")}),this[ta("0x1e")]()}[ta("0x1e")](){const t=this.editor,e=t[ta("0x3c")];function n(t){return{type:"format",content:Qo(e,ta("0x4"),t)}}t[ta("0x33")][ta("0x1")](ta("0x19"))[ta("0x37")][ta("0x12")]((t=>{if(ta("0x6")!=t.type)return;const{data:o}=t;if(o){if(ta("0x7")==o[ta("0x27")]){const t=o[ta("0x1d")][0][ta("0x1a")];return n(Qo(e,t?ta("0x3b"):"FORMAT_REGULAR_ROW"))}if(ta("0x15")==o[ta("0x27")]){const t=o[ta("0x1d")][0].forceValue;return n(Qo(e,ta(t?"0x2":"0x40")))}}}))}}const na=["getSuggestions","getSuggestion","getRanges","column","wrap","editingDowncast","root","suggestion-td","insertion","previous","createRangeOn","differ","unwrap","return","requires","insertRows","_getCoordsForCells","plugins","getRows","forceDefaultExecution","*Replace table cells*","listenTo","fromEntries","has","model","registerPostFixer","markers","markerName","_suggestionFactory","_splitMarkerName","stop","includes","getColumnIndexes","remove","filter","getShiftedBy","findAncestor","ck-suggestion-marker--active","row","createElement","getRange","paragraph","next","nextSibling","subType","ck-suggestion-marker-insertion","every","end","suggestion","keys","_tablePostFixingSubtypes","cells","insert","_replaceTableSlotCell","tableCellBorderWidth","TableUtils","endRow","high","tablePasteColumn","isInContent","containsRange","last","columns","setAttribute","getChangedMarkers","createTableWalker","getAttributes","Users","markerToHighlight","registerCustomCallback","start","view","createPositionBefore","_isForcedDefaultExecutionBlock","deletion","clipboardOutput","nodeAfter","first","for","getAllAdjacentSuggestions","isEmpty","discard","redo","type","options","tableCell","rows","name","batch","tablePasteCell","find","selection","getChild","change","activeMarkers","move","insertColumns","map","_descriptionFactory","tablePaste","removeMarkers","getColumns","register","tableCellSuggestion","join","hasSuggestion","createRange","setAttributes","tableCellVerticalAlignment","documentSelection","cell","commands","columnInsertionRanges","removeMarker","getChildren","getSuggestionCallback","reduce","markerAttributes","getTableIfOnlyTableInContent","entries","getChanges","editor","document","low","isEqual","author","from","ck-suggestion-marker","get","previousSibling","removeRows","tableCellBorderColor","tableCellPadding","TableClipboard","tablePasteRow","markMultiRangeBlockFormat","push","getMarkers","updateMarker","endColumn","getRowIndexes","oldRange","schema","$graveyard","conversion","markMultiRangeDeletion","length","getItems","deletionRanges","add","value","fill","content","attributes","markMultiRangeInsertion","formatBlock","registerDescriptionCallback","newRange","element","insertContent","tablePasteChainId","removeColumns","some","table","getContainedElement","suggestion:formatBlock:tablePasteCell","tableCellBackgroundColor","_createdBatches","showSuggestionHighlights","rootName","rowInsertionRanges","afterInit","accept","startsWith","position"];var oa,ra;oa=na,ra=482,function(t){for(;--t;)oa.push(oa.shift())}(++ra);const ia=function(t,e){return na[t-=0]},sa=[ia("0x61"),ia("0xae"),"tableCellBorderStyle","tableCellHorizontalAlignment",ia("0x97"),ia("0x22"),ia("0x0")],xa=Object[ia("0x41")](sa[ia("0x8c")]((t=>[t,null])));class aa extends t.Plugin{static get[ia("0x39")](){return[zx]}[ia("0x27")](){const t=this[ia("0xa4")];if(!t[ia("0x3c")][ia("0x42")](ia("0x1")))return;const n=t[ia("0x3c")][ia("0xab")]("TrackChangesEditing"),o=t[ia("0x3c")][ia("0xab")](ia("0x62")),r=t[ia("0x3c")][ia("0xab")](zx),i=t[ia("0x3c")][ia("0xab")](ia("0x1"));r[ia("0x5d")][ia("0x4")]("tablePasteRow",ia("0x65")),t[ia("0x43")][ia("0xa")][ia("0x91")](ia("0x92"),{allowIn:ia("0x80"),allowContentOf:"tableCell",isLimit:!0}),t.conversion.elementToElement({model:ia("0x92"),view:"suggestion-td"});let s=null;t[ia("0x43")].on(ia("0x1b"),((r,x)=>{const[a,c]=x,l=x[x[ia("0xe")]-1];l&&l[ia("0x3e")]||n[ia("0x74")]||this[ia("0xa4")][ia("0x9a")][ia("0xab")]("trackChanges")[ia("0x12")]&&function(t,e,n,o,r){if(e&&!e.is(ia("0x98")))return!1;const i=r[ia("0xa1")](t,n);if(!i||!la(i,void 0,o))return!1;const s=o.getSelectionAffectedTableCells(n[ia("0xa5")][ia("0x86")]);if(!s[ia("0xe")])return!1;const x=s[0][ia("0x4f")](ia("0x1f")),a=o[ia("0x8")](s),c=o[ia("0x4b")](s),l={startRow:a[ia("0x78")],endRow:a[ia("0x68")],startColumn:c[ia("0x78")],endColumn:c[ia("0x68")]};return 1==s[ia("0xe")]&&(l[ia("0x63")]+=o[ia("0x3d")](i)-1,l[ia("0x7")]+=o[ia("0x90")](i)-1),la(x,l,o)}(a,c,t.model,o,i)&&(r.stop(),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[ia("0x88")]((()=>{t[ia("0x43")][ia("0x1b")](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[ia("0xe")]&&n[ia("0x16")](r,ia("0x2"),{tablePasteChainId:o}),i[ia("0xe")]&&n[ia("0x16")](i,ia("0x65"),{tablePasteChainId:o}),a[ia("0xe")]&&n[ia("0x16")](a,ia("0x8e"),{tablePasteChainId:o,skipNestingCheck:!0}),c[ia("0xe")]&&n[ia("0xd")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ia("0x3")](l[ia("0x8c")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const i=t.model.createRangeOn(o),s=e.find((t=>t[ia("0x53")]()[ia("0xa7")](i)));s&&n[ia("0x4")]([s.name,r])}n[ia("0xe")]&&u[ia("0x6a")](ia("0xa0"),Object.fromEntries(n))}s=null})))}),{priority:e.priorities.high+10}),t[ia("0x3c")].get(ia("0x1")).on(ia("0x60"),((t,e)=>{const[n,o,,r]=e;if(!s)return;t[ia("0x49")]();const i=n[ia("0x99")],x=o,a=ca(i),c=ca(x);t[ia("0x38")]=i;let l=null,u=null;if(c||a)if(a&&!c){r.remove(i[ia("0x87")](0));for(const t of Array[ia("0xa9")](x[ia("0x9d")]()))r[ia("0x5f")](t,i,"end");const t=s.rowInsertionIndexes[ia("0x4a")](n[ia("0x51")]),e=s.columnInsertionIndexes.includes(n[ia("0x2e")]);t||e||(l=r.createRangeIn(i))}else c&&!a&&(u=r.createRangeIn(i));else{const t=r[ia("0x52")](ia("0x92")),e=r.createElement(ia("0x92"));r[ia("0x2f")](r.createRangeIn(i),e),r[ia("0x5f")](t,i,0);for(const e of Array[ia("0xa9")](x[ia("0x9d")]()))r[ia("0x5f")](e,t,ia("0x5a"));l=r[ia("0x35")](t),u=r[ia("0x35")](e)}const d=Array[ia("0xa9")](x[ia("0x6d")]())[ia("0x4d")]((([t])=>sa[ia("0x4a")](t)));s[ia("0x5e")].push({element:i,attributes:d.length?Object[ia("0x41")](d):null}),l&&s.insertionRanges[ia("0x4")](l),u&&s[ia("0x10")][ia("0x4")](u)}),{priority:ia("0x64")}),o.on(ia("0x8b"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x69")]||1;s.columnInsertionIndexes=new Array(a)[ia("0x13")](x)[ia("0x8c")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startColumn:x,endColumn:x+a-1}))s[ia("0x9b")].push(t[ia("0x43")][ia("0x35")](e))}),{priority:ia("0xa6")}),o.on(ia("0x3a"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x81")]||1;s.rowInsertionIndexes=new Array(a)[ia("0x13")](x)[ia("0x8c")](((t,e)=>t+e));for(const{cell:e}of o[ia("0x6c")](r,{startRow:x,endRow:x+a-1}))s[ia("0x26")].push(t.model[ia("0x35")](e))}),{priority:ia("0xa6")}),n[ia("0x8d")][ia("0x18")]((e=>{if(e[ia("0x57")]&&e[ia("0x57")][ia("0x29")](ia("0x8e")))return e.previous?{}:{type:ia("0x33"),content:Qo(t.locale,ia("0x3f"))}}));const x=()=>!1;for(const t of[ia("0x8e"),ia("0x65"),ia("0x2"),ia("0x84")])n[ia("0x47")][ia("0x70")](ia("0x33"),t,"join",x),n[ia("0x47")][ia("0x70")](ia("0x75"),t,ia("0x93"),x),n[ia("0x47")][ia("0x70")](ia("0x17"),t,ia("0x93"),x);n._suggestionFactory.registerCustomCallback("formatBlock","tablePasteCell",ia("0x7c"),x),n[ia("0x47")][ia("0x70")](ia("0x17"),ia("0x84"),ia("0x28"),((e,n,o)=>{const r=e[ia("0x8c")]((t=>t[ia("0x20")]()))[ia("0x4d")]((t=>t)),i=new Map(r[ia("0x8c")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s.cells)e&&i.set(t,e);else if(o&&o[ia("0xa0")])for(const[e,n]of Object[ia("0xa2")](o[ia("0xa0")])){const o=t[ia("0x43")][ia("0x45")].get(e),r=o?o[ia("0x53")]()[ia("0x20")]():null;r&&i.set(r,n)}t[ia("0x43")][ia("0x88")]((t=>{for(const[e,n]of i)t[ia("0x96")]({...xa,...n},e)}))}));const a=(e,o)=>{n[ia("0x47")][ia("0x70")](e,"tablePaste",o,((r,i,s)=>{t[ia("0x43")].change((t=>{const x=[];for(const t of r){const e=t[ia("0x71")][ia("0x77")];e.is(ia("0x1a"),ia("0x92"))&&x[ia("0x4")](e)}n[ia("0x47")][ia("0x9e")](e,null,o)(r,i,s);for(const e of x)ia("0xb")!=e[ia("0x31")][ia("0x25")]&&t.unwrap(e)}))}))};a(ia("0x33"),ia("0x28")),a(ia("0x33"),ia("0x7c")),a("deletion",ia("0x28")),a("deletion",ia("0x7c")),n[ia("0x47")][ia("0x70")](ia("0x33"),ia("0x2"),"discard",(t=>{const e=t[ia("0x8c")]((t=>t.getContainedElement())),n=e[0].findAncestor(ia("0x1f")),{minRow:i,maxRow:s}=r[ia("0x3b")](e);o[ia("0xad")](n,{at:i,rows:s-i+1})})),n[ia("0x47")][ia("0x70")](ia("0x33"),ia("0x65"),ia("0x7c"),(t=>{const e=t[ia("0x8c")]((t=>t[ia("0x20")]())),n=e[0][ia("0x4f")](ia("0x1f")),{minColumn:i,maxColumn:s}=r[ia("0x3b")](e);o[ia("0x1d")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e[ia("0x57")]||!e[ia("0x57")][ia("0x29")](ia("0x8e")))return;const o=e[ia("0x15")].tablePasteChainId,r=n[ia("0x2b")]()[ia("0x4d")]((t=>t[ia("0x66")]&&t.attributes&&t.attributes[ia("0x1c")]==o));r[ia("0xe")]&&e[ia("0x7a")]()[ia("0xe")]!=r[ia("0xe")]&&r[ia("0x9f")](((t,e)=>(t[ia("0x55")]=e,e[ia("0x34")]=t,e)))};function l(t,e=!0){const{id:o}=n[ia("0x48")](t.markerName),r=[ia("0xaa"),ia("0x58")],i=n[ia("0x89")][ia("0x4a")](t[ia("0x46")]);return i&&r[ia("0x4")](ia("0x50")),{classes:r,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:ia("0x64")}),n.on("suggestionUnloaded",c,{priority:ia("0x64")}),t[ia("0x43")][ia("0xa5")][ia("0x44")]((()=>{let e=!1;const o=Array[ia("0xa9")](t.model.document[ia("0x36")][ia("0x6b")]());for(const{name:r,data:i}of o){const{group:o,type:s,id:x}=n._splitMarkerName(r);if(ia("0x5b")!=o||ia("0x75")!=s||i[ia("0x9")])continue;if(!n[ia("0x94")](x))continue;const a=n[ia("0x2c")](x)[ia("0x2d")](),c=t[ia("0x3c")].get(ia("0x6e")).me;for(const t of n[ia("0x2b")]())if(t.isInContent&&t.author==c&&ia("0x17")==t.type&&ia("0x84")==t[ia("0x57")]&&t[ia("0x2d")]()[ia("0x59")]((t=>a[ia("0x1e")]((e=>e[ia("0x67")](t,!0))))))for(const n of t[ia("0x7a")]())n[ia("0x66")]&&(n.discard(),e=!0)}return e})),t[ia("0x43")][ia("0xa5")][ia("0x44")]((e=>{const o=t[ia("0x9a")][ia("0xab")](ia("0x7d"));if(!o||!o[ia("0x23")][ia("0x42")](e[ia("0x83")]))return!1;let r=!1;const i=t[ia("0x3c")][ia("0xab")](ia("0x6e")).me,s=t[ia("0x43")][ia("0xa5")].differ[ia("0xa3")](),x=Array[ia("0xa9")](t[ia("0x43")][ia("0xa5")][ia("0x36")][ia("0x6b")]()).filter((({name:t,data:e})=>{const{group:o,subType:r,authorId:s}=n[ia("0x48")](t);return ia("0x5b")==o&&ia("0x8e")==r&&s==i.id&&!e[ia("0x9")]}));for(const t of s){if(ia("0x5f")!=t[ia("0x7e")]||ia("0x92")!=t[ia("0x82")]||1!=t[ia("0xe")])continue;const n=e[ia("0x95")](t[ia("0x2a")],t[ia("0x2a")][ia("0x4e")](1));if(!x[ia("0x85")]((({data:t})=>t[ia("0x19")][ia("0xa7")](n))))for(const{name:t,data:o}of x)if(n[ia("0x67")](o.newRange)){e[ia("0x6")](t,{range:n}),r=!0;break}}return r})),t[ia("0x43")].document[ia("0x44")]((e=>{let o=!1;const r=t[ia("0x3c")][ia("0xab")]("Users").me,i=n[ia("0x2b")]().filter((t=>t[ia("0x66")]&&t[ia("0xa8")]==r)),s=new Set,x=new Set;for(const t of i)if(ia("0x8e")==t[ia("0x57")])for(const e of t[ia("0x5")]()){const n=e[ia("0x53")]()[ia("0x20")]();if(n)if(n.is(ia("0x1a"),ia("0x92"))&&ca(n)){t[ia("0x9c")](e[ia("0x82")]),s[ia("0x11")](n),o=!0;const r=n[ia("0x56")],i=n[ia("0xac")],a=r&&r.is(ia("0x1a"),"tableCellSuggestion"),c=i&&i.is("element",ia("0x92"));a&&!s[ia("0x42")](r)&&x[ia("0x11")](r),c&&!s[ia("0x42")](i)&&x[ia("0x11")](i)}else n.is("element",ia("0x54"))&&n[ia("0x7b")]&&(t.removeMarker(e[ia("0x82")]),o=!0)}else if(ia("0x84")==t[ia("0x57")]){if(!t[ia("0x15")]||!t.attributes.tablePasteChainId)continue;const e=t[ia("0x15")][ia("0xa0")];if(e&&Object[ia("0x5c")](e).length)continue;const n=t[ia("0x15")][ia("0x1c")];let r=!0,s=!0;for(const e of i)if(e[ia("0x57")]&&e[ia("0x57")][ia("0x29")](ia("0x8e"))){if(!e.attributes[ia("0x1c")]){s=!1;break}if(e.id!=t.id&&e[ia("0x15")][ia("0x1c")]==n){r=!1;break}}s&&r&&(t[ia("0x8f")](),o=!0)}for(const t of s)e[ia("0x4c")](t);for(const t of x)e[ia("0x37")](t);return o})),t.conversion[ia("0x79")](ia("0x30"))[ia("0x6f")]({model:ia("0x21"),view:(t,e)=>l(t),converterPriority:ia("0x64")}),t[ia("0xc")][ia("0x79")]("dataDowncast")[ia("0x6f")]({model:ia("0x21"),view:(t,e)=>e[ia("0x7f")][ia("0x24")]?l(t,!1):null,converterPriority:"high"});const u=t.editing[ia("0x72")];this[ia("0x40")](u.document,ia("0x76"),((t,e)=>{const n=[];for(const t of u.createRangeIn(e[ia("0x14")])[ia("0xf")]())t.is(ia("0x1a"),ia("0x32"))&&n[ia("0x4")](t);u[ia("0x88")]((t=>{for(const e of n)t[ia("0x8a")](t.createRangeIn(e),t[ia("0x73")](e)),t[ia("0x4c")](e)}))}))}}function ca(t){if(t.isEmpty)return!0;const e=t[ia("0x87")](0);return e.is(ia("0x1a"),"paragraph")&&e.isEmpty}function la(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:i}of n[ia("0x6c")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=i)return!1;return!0}const ua=["has","locale","plugins","formatBlock","selection","getSuggestionCallback","TableColumnResizeEditing","*Format:* resize table","getAttribute","markBlockFormat","enableCommand","resizeTable","change","type","registerCustomCallback","formatGroupId","accept","resizeTableWidth","_descriptionFactory","formatInline","getContainedElement","getSuggestions","author","subType","tableWidth","handleSuggestionDescription","columnWidths","handleResizeTableWidthCommand","discard","editor","_suggestionFactory","table","TrackChangesEditing","getColumnGroupElement","afterInit","get"];var da,ga;da=ua,ga=446,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x14")](){if(!this[fa("0xf")][fa("0x18")][fa("0x16")]("TableColumnResizeEditing"))return;const t=this.editor[fa("0x18")][fa("0x15")](fa("0x12"));t[fa("0x20")](fa("0x3"),this[fa("0xd")].bind(this)),t[fa("0x10")][fa("0x0")]("formatBlock",fa("0x21"),fa("0x2"),t[fa("0x10")][fa("0x1b")]("formatBlock",null,fa("0xe"))),t[fa("0x10")][fa("0x0")](fa("0x19"),fa("0x21"),"discard",t._suggestionFactory[fa("0x1b")](fa("0x19"),null,"accept")),t[fa("0x4")].registerDescriptionCallback(this.handleSuggestionDescription.bind(this))}[fa("0xd")](t,e){const n=this[fa("0xf")][fa("0x18")][fa("0x15")](fa("0x12")),o=this[fa("0xf")].plugins[fa("0x15")](fa("0x1c")),r=e[fa("0x11")]||this[fa("0xf")].model.document[fa("0x1a")].getSelectedElement();this[fa("0xf")].model[fa("0x22")]((()=>{const i=o[fa("0x13")](r);let s=i?o.getTableColumnsWidths(i):null,x=r[fa("0x1e")]("tableWidth")||null;const a=e[fa("0xa")]||x,c=e[fa("0xc")]||s,l=this[fa("0xf")].plugins[fa("0x15")]("Users").me;for(const t of n[fa("0x7")]()){const e=t[fa("0x6")]();if(fa("0x21")===t[fa("0x9")]&&e===r){t[fa("0x8")]!==l&&t[fa("0xe")]();const e=t.data.commandParams;x=e[0][fa("0xa")],s=e[0][fa("0xc")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[fa("0x1f")](r,{commandName:fa("0x3"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x21")},[],fa("0x21"))}))}[fa("0xb")](t){if("formatBlock"!=t[fa("0x23")]&&fa("0x5")!=t[fa("0x23")])return;const{data:e}=t;if(e&&"resizeTable"===e[fa("0x1")]){const t=fa("0x1d");return{type:"format",content:Qo(this[fa("0xf")][fa("0x17")],t)}}}}const ha=["afterInit","get","has","insertTemplate","Template","enableCommand"];var ba,pa;ba=ha,pa=211,function(t){for(;--t;)ba.push(ba.shift())}(++pa);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x5")](){const t=this.editor;t.plugins[Ea("0x1")](Ea("0x3"))&&t.plugins[Ea("0x0")]("TrackChangesEditing")[Ea("0x4")](Ea("0x2"))}}const Ta=["ELEMENT_TABLE_OF_CONTENTS","get","editor","insertTableOfContents","tableOfContents","locale","afterInit","commands","TrackChangesEditing","plugins","enableCommand"];var ya,Ca;ya=Ta,Ca=260,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0xa")](){const t=this[Aa("0x6")];if(!t[Aa("0x0")][Aa("0x5")](Aa("0x7")))return;t[Aa("0x2")][Aa("0x5")](Aa("0x1"))[Aa("0x3")](Aa("0x7"));const e=t[Aa("0x2")][Aa("0x5")](Aa("0x1")),n=t[Aa("0x9")];e._descriptionFactory.registerElementLabel(Aa("0x8"),(t=>Qo(n,Aa("0x4"),t)))}}const Ia=["suggestion","_splitMarkerName","TrackChangesEditing","nodeBefore","ELEMENT_TITLE","getChangedMarkers","removeMarker","registerElementLabel","forward","afterInit","Title","element","updateMarker","title-content","schema","document","start","plugins","end","from","_descriptionFactory","createRange","isTouching","model","locale","differ","editor","newRange","has","isEqual","isCollapsed"];var Ra,Sa;Ra=Ia,Sa=417,function(t){for(;--t;)Ra.push(Ra.shift())}(++Sa);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{[va("0x1a")](){const t=this[va("0xc")];if(!t[va("0x3")][va("0xe")](va("0x1b")))return;const e=t[va("0x3")].get(va("0x13"));e[va("0x6")][va("0x18")](va("0x1e"),(()=>Qo(t[va("0xa")],va("0x15")))),t[va("0x9")][va("0x1")].registerPostFixer((n=>{let o=!1;const r=Array[va("0x5")](t[va("0x9")][va("0x1")][va("0xb")][va("0x16")]());for(const{name:i,data:s}of r){const{group:r}=e[va("0x12")](i);if(va("0x11")!==r||!s[va("0xd")])continue;const x=s.newRange,a=x[va("0x4")][va("0x14")];if(!a||!a.is(va("0x1c"),va("0x1e")))continue;if(!x[va("0x2")][va("0x8")](x[va("0x4")]))continue;const c=t[va("0x9")][va("0x0")].getNearestSelectionRange(x[va("0x4")],va("0x19"));if(c&&c[va("0x10")]){const t=n[va("0x7")](x[va("0x2")],c[va("0x2")]);t[va("0xf")](x)||(n[va("0x1d")](i,{range:t}),o=!0)}o||(n[va("0x17")](i),o=!0)}return o}))}}const La=["plugins","has","afterInit","editor","UndoEditing","enableCommand","TrackChangesEditing","get"];var Ma,wa;Ma=La,wa=328,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Da extends t.Plugin{[Oa("0x2")](){const t=this[Oa("0x3")],e=t[Oa("0x0")][Oa("0x7")](Oa("0x6"));t[Oa("0x0")][Oa("0x1")](Oa("0x4"))&&(e[Oa("0x5")]("undo"),e[Oa("0x5")]("redo"))}}const Fa=["TableCaptionEditing","afterInit","plugins","has","TrackChangesEditing","requires"];var Ba,Pa;Ba=Fa,Pa=410,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{static get[Ua("0x3")](){return[zx]}[Ua("0x5")](){const t=this.editor;t.plugins[Ua("0x1")](Ua("0x4"))&&t[Ua("0x0")].get(Ua("0x2")).enableCommand("toggleTableCaption")}}const Ga=["_getSuggestion","getFirstPosition","model","tableCellBorderColor","_descriptionFactory","pluginName","discard","handleDiscardAction","start","markBlockFormat","subType","registerDescriptionCallback","accept","table","enableCommand","tableHeight","getSuggestions","tableBorderWidth","getSuggestionCallback","getSelectionAffectedTableCells","selection","commandParams","TrackChangesEditing","tableCellVerticalAlignment","editor","handleSuggestionDescription","tableBorderColor","registerCustomCallback","setAttribute","plugins","has","tableCellHorizontalAlignment","tableBorderStyle","batch","TrackChangesTableProperties","nodeAfter","getContainedElement","join","tableAlignment","_suggestionFactory","formatBlock","findAncestor","TableUtils","data","format","tableCellHeight","tableCellPadding","enqueueChange","afterInit","tableProperties","tableCellBorderWidth","get","_handlePropertyChange","tableCellProperties","document","tableCellBorderStyle","locale"];var Va,Ha;Va=Ga,Ha=496,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this.tableProperties=[za("0x2b"),za("0x31"),za("0x22"),za("0x37"),"tableWidth",za("0x20"),"tableBackgroundColor"],this[za("0xd")]=[za("0x14"),za("0xf"),za("0xa"),za("0x6"),"tableCellWidth",za("0x5"),"tableCellBackgroundColor",za("0x30"),za("0x28")]}static get[za("0x16")](){return za("0x33")}[za("0x8")](){const t=this.editor[za("0x2e")][za("0xb")](za("0x27"));if(this[za("0x29")].plugins.has("TablePropertiesEditing")){for(const e of this[za("0x9")])t[za("0x1f")](e,((t,n)=>{const o=this[za("0x29")][za("0x13")][za("0xe")].selection[za("0x12")]()[za("0x1")](za("0x1e"));this[za("0xc")](e,[o],this[za("0x9")],za("0x9"),t,n)}));t._suggestionFactory.registerCustomCallback(za("0x0"),za("0x9"),za("0x1d"),t._suggestionFactory.getSuggestionCallback("formatBlock",null,za("0x17"))),t[za("0x38")][za("0x2c")](za("0x0"),"tableProperties","discard",((t,e)=>this.handleDiscardAction(this[za("0x9")],t,e))),t._suggestionFactory[za("0x2c")](za("0x0"),za("0x9"),za("0x36"),(()=>!1))}if(this[za("0x29")][za("0x2e")][za("0x2f")]("TableCellPropertiesEditing")){for(const e of this[za("0xd")])t[za("0x1f")](e,((t,n)=>{const o=this[za("0x29")][za("0x2e")].get(za("0x2"))[za("0x24")](this[za("0x29")][za("0x13")][za("0xe")][za("0x25")]);this._handlePropertyChange(e,o,this[za("0xd")],za("0xd"),t,n)}));t[za("0x38")].registerCustomCallback(za("0x0"),"tableCellProperties",za("0x1d"),t[za("0x38")][za("0x23")](za("0x0"),null,za("0x17"))),t[za("0x38")][za("0x2c")](za("0x0"),za("0xd"),za("0x17"),((t,e)=>this.handleDiscardAction(this[za("0xd")],t,e))),t[za("0x38")][za("0x2c")](za("0x0"),za("0xd"),za("0x36"),(()=>!1))}t[za("0x15")][za("0x1c")]((t=>this[za("0x2a")](t)))}[za("0xc")](t,e,n,o,r,i){const s=this[za("0x29")][za("0x2e")][za("0xb")](za("0x27"));this[za("0x29")][za("0x13")][za("0x7")](i[za("0x32")],(()=>{for(const t of e)if(this[za("0x11")](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[za("0x1a")](t,{commandParams:[e]},[],o)}}))}[za("0x18")](t,e,n){const o=e[0][za("0x19")][za("0x34")],r=n[za("0x26")][0];this[za("0x29")][za("0x13")].change((e=>{for(const n of t)void 0!==r[n]?e[za("0x2d")](n,r[n],o):e.removeAttribute(n,o)}))}[za("0x2a")](t){if(t[za("0x3")])switch(t.subType){case za("0x9"):return{type:za("0x4"),content:Qo(this.editor[za("0x10")],"*Format:* change table properties")};case"tableCellProperties":return{type:za("0x4"),content:Qo(this[za("0x29")].locale,"*Format:* change table cell properties")}}}[za("0x11")](t,e){const n=this[za("0x29")][za("0x2e")][za("0xb")](za("0x27"));for(const o of n[za("0x21")]({skipNotAttached:!0})){const n=o[za("0x35")]();if(o[za("0x1b")]===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=rt?rt.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,o,r,i){var s=-1,x=e.length;for(o||(o=tc),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 nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=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 rc=Math.max;const ic=function(t,e,n){return e=rc(void 0===e?t.length-1:e,0),function(){for(var o=arguments,r=-1,i=rc(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),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),r=16-(o-n);if(n=o,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(ic(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=bo(e,t),o||(o=e.length>1),e})),ie(t,dn(t),n),o&&(n=to(n,7,Ja));for(var r=e.length;r--;)Ko(n,e[r]);return n})),uc=["error-saving-suggestion-data-suggestion-discarded","reconvertMarker","formatGroupId","newName","_defaultCallbacks","track-changes-command-not-found","acceptSelectedSuggestions","commands","howMany","ENTER","warn","multipleBlocks","suggestionLoaded","markDeletion","originalSuggestionId","elementToElement","setTo","markerToData","containsRange","createSelection","removeAttribute","_processAttributeChanges","setSelection","getCustomProperty","isMultiRange","batch","locale","meta","_createSuggestion","insertion","addMarkerName","_updateSuggestionData","splice","filter","widget","hasComments","attributeNewValue","_getAttributeKeyFromSubType","toViewElement","_SUGGESTION_ANNOUNCEMENT","deletion:accept","authorName","pop","markerReady","targetPosition","getSuggestions","deletion:chain","model","_initAriaMarkerChangeAnnouncements","_refreshAttributeSuggestionsChain","$graveyard","addUser","enableReadOnlyMode","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.","moveTargetPosition","addMarker","detach","rethrowUnexpectedError","_getMarkerAnnouncementText","updateSuggestion","_enableDefaultAttributesIntegration","_joinSuggestions","writer","rename","define","applyOperation","init","markInsertion","never","plugins","markAttributeChange","formatBlock:discard","Users","oldName","get","end","forceDefaultExecution","activeMarkers","addHighlight","fetchCommentThread","setAttribute","getItems","multi","buildSuggestion","backward","$elementName","removed","clear","after","_trackFormatChanges","getChanges","removeComment","containerElement","addClass","trackChangesCommand","group","isObject","suggestion:attribute:","lowest","consumable","remove","deletion:join","adapter","suggestion","toJSON","ariaLiveAnnouncer","catch","discardSuggestion","insertion:chain","includes","add","mapper","isNextTo","ck-suggestion-marker--active","isAtEnd","_model","CommentsRepository","getAllAdjacentSuggestions","createPositionAfter","upcast","type","attribute","ready","getSuggestionCallback","_suggestionState","sort","low","stop","assign","_getExternalAuthor","newRange","containsPosition","range","$textProxy","deleteContent","ck-suggestion-marker","from","splitPosition","isIntersecting","_customCallbacks","format","startsWith","for","requires","isEqual","editingDowncast","fire","_suggestionFactory","addComment","high","toUpperCase","version","unbindElementFromMarkerName","removeMarkers","markerName","getAncestors","formatBlock","some","enqueueChange","return","getMultiRangeId","dataToMarker","_handleNewSuggestionMarker","insertion:join","data-suggestion","_descriptionFactory","formatBlock:chain","insertion:","creator","markerToHighlight","_rangeIsInLocalUserInsertion","getRange","FORMATTING","listenTo","removeClass","trackChanges","normal","isLimit","hasCommentThread","addSuggestion","_joinWithAdjacentSuggestions","item","attributeKey","set","groupId","addAttribute","elementStart","formatBlock:join","commandName","@external","find","isCollapsed","getLastMatchingPosition","_recordAttributeChanges","_checkSuggestionCorrectness","_isBlockAttribute","getChangedMarkers","_removeSuggestion","comments","options","markBlockFormat","createdAt","removeMarker","acceptSuggestion","forward","next","commentThread","attribute:accept","fromCharCode","_processAttributeSuggestions","_cutOutSuggestionMarker","substr","isLocal","suggestion-type","isIntersectingWithRange","collaboration.channelId","isInsideObject","_addSuggestionMarker","attribute:join","attributes","createElement","_setSuggestionData","removeMarker:suggestion:attribute","start","_reduceSuggestionAttributeRange","default","isBefore","map","isRemovable","_enabledCommands","createPositionAt","delete","getAttribute","getShiftedBy","always","push","values","changeAttribute","has","config","registerPostFixer","insertion:accept","updateMarker","_commentsRepository","differ","discardAllSuggestions","value","discard","_inlineAttributeKeys","_mergeNestedSuggestions","stopListening","element","size","rejected","authoredAt","_isDataLoaded","isSelectable","_addThreadToSuggestion","_blockAttributeKeys","_adapter","attribute:","oldRange","markMultiRangeBlockFormat","split","_recordAttributeSuggestionsFromVersion","newValue","_getAuthorFromId","formatInline","createRange","open","selection","pluginName","change","name","isInContent","deletion","acceptAllSuggestions","discardSelectedSuggestions","consume","unbind","track-changes-suggestion-data-mismatch","getIntersection","attribute:discard","_editor","previous","ck-suggestion-marker-","_isForcedDefaultExecutionBlock","isDocumentOperation","suggestionChanged","addRange","clone","subType","_breakSuggestionMarker","track-changes-user-not-found","data","length","_refreshSuggestionsChain","_setSuggestionRange","position","getUser","author","_findSuggestions","schema","parent","addCommentThread","track-changes-suggestion-not-found","markerNameToElements","getSuggestion","dataDowncast","_registerInlineAttribute","suggestion:","rootName","hasSuggestion","addSuggestionData","conversion","addMarker:suggestion:attribute","_saved","nodeAfter","update:suggestion","then","before","resolve","isTouching","$text","chain","containsRangeInObject","dataReady","enableCommand","formatInline:","keys","getNearestSelectionRange","formatBlock:accept","root","getOperations","trackChanges.mergeNestedSuggestions","markMultiRangeDeletion","change:_saved","execute","_reduceExistingSuggestions","notReady","_suggestions","trackChanges.trackFormatChanges","unshift","forEach","showSuggestionHighlights","createPositionBefore","isOwn","_onDiscard","join","getRanges","getFirstRange","marker-count","track-changes-enable-command-twice","_registerDefaultCallbacks","formatInline:accept","isArray","isBlock","oldValue","getFirstMarker","history","isUndo","insert","skipNestingCheck","addMarker:suggestion","containsItem","document","PendingActions","editor","_getSuggestionData","nodeBefore","getDifference","highest","PENDING_ACTION_SUGGESTION","formatInline:chain","_splitMarkerName","tablePasteChainId","key","every","ck-suggestion-marker-formatBlock","isAfter","formatBlock:","markInlineFormat","markers","accept"];var dc,gc;dc=uc,gc=318,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc="$elementName";class hc extends t.Plugin{static get[fc("0xd1")](){return[fc("0xb6"),i.Users,t.PendingActions,cr,fr,_r,kr,Lr,Fr,Vr,ti,ii,li,hi,Ti,Ri,Mi,Pi,Hi,Xi,Qi,rs,fs,cs,Es,As,vs,Os,Us,Ks,Ys,nx,xx,dx,px,Cx,Sx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Da]}static get[fc("0x151")](){return"TrackChangesEditing"}constructor(t){function e(t){return t.map((t=>String[fc("0x112")](t))).join("")}super(t),this[fc("0x14a")]=null,this[fc("0xf9")](fc("0x8f"),[]),this.on("change:activeMarkers",((e,n,o,r)=>{this[fc("0xb5")][fc("0x152")]((()=>{for(const e of[...r,...o])this[fc("0xb5")][fc("0x40")][fc("0x130")](e)&&t.editing[fc("0x43")](e)}))})),this[fc("0xe7")]=new rr(this[fc("0x31")][fc("0x71")][fc("0x170")],this[fc("0x31")][fc("0x5c")]),this._adapter=null,this[fc("0xd5")]=new bc(this[fc("0x31")]),this._suggestions=new Map,this[fc("0x135")]=t[fc("0x87")].get(fc("0xb6")),this[fc("0x127")]=new Set,this[fc("0xb5")]=this[fc("0x31")][fc("0x71")],this._suggestionState=new WeakMap,this._isForcedDefaultExecutionBlock=!1,this[fc("0x144")]=new Set([fc("0x97")]),this[fc("0x13a")]=new Set,t.config[fc("0x82")](fc("0x17"),fc("0x123")),this[fc("0x9b")]=t[fc("0x131")].get(fc("0x17")),t[fc("0x131")][fc("0x82")]("trackChanges.mergeNestedSuggestions",!0),this[fc("0x13b")]=t[fc("0x131")][fc("0x8c")](fc("0x10")),this[fc("0xa0")]=new d(t,this[fc("0x127")]),this[fc("0x72")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,50,53,54])}[fc("0x84")](){const t=this[fc("0x31")],n=(t,e)=>{if("attribute"!=t)return fc("0x15f")+t;const n=e.split("|")[0];return this[fc("0x105")](n)?fc("0x3c"):"ck-suggestion-marker-formatInline"};t[fc("0x17c")][fc("0xd0")]("editingDowncast")[fc("0xeb")]({model:fc("0xa9"),view:t=>{const{id:e,type:o,subType:r}=this[fc("0x38")](t[fc("0xdc")]),i=[fc("0xc9"),n(o,r)];let s=3e3;return this.activeMarkers.includes(t[fc("0xdc")])&&(i[fc("0x12d")](fc("0xb3")),s=3010),fc("0x155")==o&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x17c")].for(fc("0x176"))[fc("0xb0")]((e=>{e.on(fc("0x2d"),((e,n,o)=>{if(!o[fc("0x109")].showSuggestionHighlights)return;const r=n[fc("0xf7")];if(!r)return;const i=o[fc("0xb1")][fc("0x68")](r);t[fc("0x71")][fc("0x170")][fc("0xa2")](r)&&i&&!i[fc("0x59")](fc("0x64"))&&i.is(fc("0x9e"))&&(0,x.toWidget)(i,o.writer)}),{priority:"high"})})),t[fc("0x17c")][fc("0xd0")](fc("0x176")).markerToHighlight({model:"suggestion",view:(t,e)=>{if(!e.options.showSuggestionHighlights)return null;const{type:o,subType:r}=this[fc("0x38")](t[fc("0xdc")]);return{classes:["ck-suggestion-marker",n(o,r)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,r,i)=>{if(!r.item)return;const{id:s}=this._splitMarkerName(r[fc("0xdc")]);if(n){const t=this[fc("0x16")].get(s),e=this[fc("0x67")](t);if(!this._isBlockAttribute(e))return}if(r[fc("0xf7")].is(fc("0x150")))return void i[fc("0xa5")][fc("0x158")](r[fc("0xf7")],o[fc("0x153")]);const x=i[fc("0xb1")][fc("0x68")](r[fc("0xf7")]);if(r.item.is(fc("0x13d"))&&t[fc("0x71")][fc("0x170")].isBlock(r[fc("0xf7")])&&!x[fc("0x59")](fc("0x90"))){i[fc("0x80")][fc("0x9f")]([fc("0xc9"),"ck-suggestion-marker-formatBlock"],x),i[fc("0x80")][fc("0x92")](fc("0xe6"),s,x),i[fc("0xb1")].bindElementToMarker(x,r[fc("0xdc")]),e&&(this[fc("0x8f")][fc("0xaf")](r[fc("0xdc")])?i[fc("0x80")][fc("0x9f")]("ck-suggestion-marker--active",x):i[fc("0x80")].removeClass("ck-suggestion-marker--active",x));for(const e of t[fc("0x71")].createRangeIn(r[fc("0xf7")])[fc("0x93")]())i[fc("0xa5")][fc("0x158")](e,o.name);i[fc("0xa5")].consume(r.item,o[fc("0x153")])}};t[fc("0x17c")][fc("0xd0")](fc("0x176")).add((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,n)=>{n[fc("0x109")][fc("0x1a")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:"highest"})})),t[fc("0x17c")][fc("0xd0")](fc("0x176"))[fc("0xb0")]((t=>{t.on(fc("0x17d"),((t,e,n)=>{n[fc("0x109")][fc("0x1a")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x35")})})),t[fc("0x17c")].for(fc("0x176"))[fc("0x53")]({model:fc("0xa9"),view:(t,e)=>e[fc("0x109")].showSuggestionHighlights?null:{group:fc("0xa9"),name:t[fc("0x115")](11)}}),t.conversion[fc("0xd0")](fc("0xb9"))[fc("0x51")]({view:{name:fc("0xa9"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x178")+t[fc("0x12a")](fc("0x117"))+":"+t[fc("0x12a")]("id");return t[fc("0x12a")](fc("0x21"))&&(n+=":"+t[fc("0x12a")](fc("0x21"))),e[fc("0x11e")]("$marker",{"data-name":n})}}),t[fc("0x17c")].for(fc("0xb9"))[fc("0xe3")]({view:fc("0xa9")}),t.conversion[fc("0xd0")]("editingDowncast")[fc("0xb0")]((t=>{t.on("addMarker:suggestion:formatBlock",o(),{priority:fc("0xd7")})})),t[fc("0x17c")][fc("0xd0")]("editingDowncast")[fc("0xb0")]((t=>{t.on("addMarker:suggestion:attribute",o({isAttributeSuggestion:!0}),{priority:fc("0xd7")})})),t[fc("0x17c")][fc("0xd0")](fc("0xd3"))[fc("0xb0")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n.mapper[fc("0x174")](e[fc("0xdc")]);if(o)for(const t of o)t.getCustomProperty("addHighlight")||(n[fc("0x80")][fc("0xf0")]([fc("0xc9"),fc("0x3c"),fc("0xb3")],t),n[fc("0x80")][fc("0x56")](fc("0xe6"),t),n[fc("0xb1")][fc("0xda")](t,e.markerName))}),{priority:fc("0xd7")})})),t[fc("0x17c")][fc("0xd0")](fc("0xd3"))[fc("0xb0")]((t=>{t.on(fc("0x120"),((t,e,n)=>{const o=n[fc("0xb1")][fc("0x174")](e[fc("0xdc")]);if(!o)return;const{id:r}=this[fc("0x38")](e[fc("0xdc")]),i=this._suggestions[fc("0x8c")](r),s=this[fc("0x67")](i);if(this._isBlockAttribute(s))for(const t of o)t[fc("0x59")](fc("0x90"))||(n[fc("0x80")].removeClass([fc("0xc9"),fc("0x3c"),fc("0xb3")],t),n.writer[fc("0x56")](fc("0xe6"),t),n[fc("0xb1")][fc("0xda")](t,e.markerName))}),{priority:fc("0xd7")})})),t.model[fc("0x2f")][fc("0x132")]((e=>{let n=!1;const o=Array[fc("0xca")](t[fc("0x71")][fc("0x2f")][fc("0x136")].getChangedMarkers()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0x38")](x);if("suggestion"!==o)continue;const d=this[fc("0x16")][fc("0x8c")](u);if(null!=a[fc("0xc4")]){"formatInline"==c&&(n=n||_c(a[fc("0xc4")],x,e,t[fc("0x71")][fc("0x170")]));const o="attribute"==c&&this._isBlockAttribute(l.split("|")[0]);if(a[fc("0xc4")][fc("0x101")]||fc("0x74")==a.newRange[fc("0xe")][fc("0x179")]||fc("0xde")==c&&!yc(a.newRange)||o&&!yc(a[fc("0xc4")])||fc("0x155")==c&&(Ec(s=a[fc("0xc4")])||(i=s)[fc("0x121")][fc("0x171")]==i[fc("0x8d")][fc("0x33")]&&i[fc("0x121")][fc("0xb4")]))e.removeMarker(x),n=!0;else{if(!d||!d.isInContent)continue;r[fc("0xb0")](d)}}}var i,s;return r[fc("0x13e")]>0&&(n=!!this[fc("0xf6")](r)||n),n})),t.model[fc("0x2f")][fc("0x132")]((e=>{let n=!1;for(const o of t[fc("0x71")][fc("0x2f")][fc("0x136")][fc("0x9c")]())if("insert"==o.type)for(const o of this[fc("0x16")][fc("0x12e")]()){if(o.isMultiRange||!o.isInContent)continue;const r=fc("0xde")==o[fc("0xba")],i=this[fc("0x67")](o),s=i&&this[fc("0x105")](i);if(!r&&!s)continue;const x=o[fc("0x20")]();if(x[fc("0x121")].parent!=x[fc("0x8d")][fc("0x171")]&&!x[fc("0x8d")][fc("0xb4")]){const r=t.model[fc("0x128")](x[fc("0x121")][fc("0x17f")],"end"),i=t[fc("0x71")][fc("0x14e")](x[fc("0x121")],r);e[fc("0x134")](o[fc("0x28")](),{range:i}),n=!0}}return n})),t.model[fc("0x2f")][fc("0x132")]((t=>this[fc("0x57")](t))),t[fc("0x71")].document[fc("0x132")]((t=>!t[fc("0x5b")][fc("0x116")]&&this[fc("0x113")](t))),t[fc("0x71")][fc("0x40")].on(fc("0x0"),((t,e,n)=>{if(null==n){const{id:t}=this[fc("0x38")](e.name),n=this[fc("0x16")].get(t);n&&n[fc("0x60")](e.name)}})),t[fc("0x71")][fc("0x2f")].on("change:data",(()=>{const e=Array[fc("0xca")](t.model[fc("0x2f")][fc("0x136")][fc("0x106")]()).filter((t=>fc("0xa9")===this._splitMarkerName(t[fc("0x153")])[fc("0xa1")]));if(0===e[fc("0x169")])return;e[fc("0xbf")](((t,e)=>{const n=t[fc("0x168")].oldRange,o=e[fc("0x168")][fc("0x147")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0x121")].isBefore(o[fc("0x121")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[fc("0x38")](t);if(null===r[fc("0x147")]){const e=this._handleNewSuggestionMarker(t);o[fc("0xb0")](e)}else{const t=this[fc("0x16")][fc("0x8c")](e);null!==r[fc("0xc4")]||t[fc("0x154")]?(n[fc("0xb0")](t.head),o[fc("0xb0")](t)):this._removeSuggestion(t)}}o[fc("0x13e")]>0&&this[fc("0x16a")](o);for(const t of n)this.fire(fc("0x162"),t)})),t.model.on(fc("0x83"),((e,n)=>{const o=n[0];if(!this[fc("0x16")][fc("0x13e")])return;if(!o[fc("0x161")])return;if(o[fc("0x5b")][fc("0x2a")]||!o[fc("0x5b")][fc("0x116")])return;let r,i;switch(o[fc("0xba")]){case fc("0x2b"):r=t.model.createPositionAt(o.position),i=r[fc("0x12b")](o.howMany);break;case fc("0x149"):r=t[fc("0x71")].createPositionAt(o[fc("0xcb")]),i=t.model[fc("0x128")](o[fc("0x78")]);break;case"move":r=t[fc("0x71")][fc("0x128")](o[fc("0x6e")]),i=r[fc("0x12b")](o[fc("0x4a")]);break;default:return}const s=t.model[fc("0x14e")](r,i);t[fc("0x71")][fc("0x152")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0x16f")](s)){if(t[fc("0x5a")])continue;if(fc("0x14d")==t.type)continue;const n=this[fc("0x67")](t);if(n&&this[fc("0x105")](n)&&fc("0x149")!=o[fc("0xba")])continue;const x=t[fc("0x168")]&&t[fc("0x168")].multipleBlocks;(fc("0xde")!=t.type||fc("0x149")==o[fc("0xba")]&&!x)&&(e[fc("0x7")]||fc("0x5f")==t[fc("0xba")]&&e[fc("0x1c")]||t[fc("0x20")]()[fc("0x54")](s)&&this[fc("0x166")](t,r,i))}}))}),{priority:fc("0xa4")}),t[fc("0x71")].on(fc("0xc8"),((e,n)=>{const o=n[0],r=n[1];if(r&&r.forceDefaultExecution)return;if(this._isForcedDefaultExecutionBlock)return;if(!this[fc("0xa0")].value)return;if(o[fc("0x101")])return;const i=t[fc("0x71")][fc("0x170")],{start:s,end:x}=o[fc("0x20")](),a=s[fc("0x17f")]&&i.isLimit(s[fc("0x17f")])?null:i.getNearestSelectionRange(s,fc("0x10e")),c=x[fc("0x33")]&&i[fc("0xf3")](x[fc("0x33")])?null:i[fc("0xc")](x,fc("0x96")),l=t[fc("0x71")][fc("0x14e")](a?a[fc("0x121")]:s,c?c.end:x);t[fc("0x71")][fc("0x152")]((e=>{this[fc("0x4f")](l);const n=t[fc("0x71")][fc("0x170")][fc("0xc")](l[fc("0x121")]);o.is("documentSelection")?e[fc("0x58")](n):o[fc("0x52")](n)})),e[fc("0xc1")]()}),{priority:e.priorities[fc("0xf2")]+10}),t[fc("0x71")].on("insertContent",((e,n)=>{const o=n[n.length-1];o&&o[fc("0x8e")]||this[fc("0x160")]||this.trackChangesCommand.value&&(t.model.change((()=>{let o=t[fc("0x71")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0xe1")]=o[fc("0x164")]();const r=o[fc("0x8d")][fc("0x33")],i=t[fc("0x71")][fc("0x170")];r&&i[fc("0x26")](r)&&!i.isObject(r)&&(o=t.model[fc("0x14e")](o[fc("0x121")],t[fc("0x71")][fc("0x128")](r,fc("0x8d")))),this[fc("0x85")](o)})),e.stop())}),{priority:"high"}),this[fc("0x31")][fc("0x49")][fc("0xb0")](fc("0xf1"),this.trackChangesCommand),this.enableCommand("trackChanges");const r=new b(t,this[fc("0x16")]);t[fc("0x49")].add(fc("0x10d"),r),this[fc("0x9")](fc("0x10d"));const i=new y(t,this[fc("0x16")]);t.commands[fc("0xb0")](fc("0xad"),i),this.enableCommand(fc("0xad")),t[fc("0x49")][fc("0xb0")](fc("0x156"),new D(t,r,this._suggestions)),this[fc("0x9")](fc("0x156")),t[fc("0x49")].add("discardAllSuggestions",new D(t,i,this[fc("0x16")])),this[fc("0x9")](fc("0x137")),t[fc("0x49")][fc("0xb0")](fc("0x48"),new j(t,r,this[fc("0x16")])),this[fc("0x9")]("acceptSelectedSuggestions"),t[fc("0x49")][fc("0xb0")](fc("0x157"),new j(t,i,this[fc("0x16")])),this.enableCommand("discardSelectedSuggestions");const s=t[fc("0x87")].get(fc("0xb6"));this[fc("0xef")](s,fc("0xd6"),((t,{threadId:e})=>{const n=this[fc("0x16")][fc("0x8c")](e);n&&n[fc("0x110")]&&1===n.commentThread[fc("0x169")]&&this[fc("0x61")](e,{hasComments:!0})}),{priority:"low"}),this[fc("0xef")](s,fc("0x9d"),((t,{threadId:e})=>{const n=this._suggestions[fc("0x8c")](e);n&&n[fc("0x110")]&&!n[fc("0x110")][fc("0x169")]&&this[fc("0x61")](e,{hasComments:!1})}),{priority:fc("0xc0")})}set adapter(t){if(this[fc("0x145")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[fc("0x145")]=t}get[fc("0xa8")](){return this[fc("0x145")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[fc("0x12e")]())t&&!e[fc("0x154")]||n.push(e);return e?n[fc("0x125")]((t=>t[fc("0xaa")]())):n}[fc("0x175")](t){const n=this[fc("0x16")][fc("0x8c")](t);if(!n)throw new e.CKEditorError(fc("0x173"),this);return n}[fc("0x17a")](t){return this._suggestions.has(t)}[fc("0x17b")](t){const{authorId:e,id:n,attributes:o}=t,[r,i]=t.type[fc("0x149")](":"),s=this[fc("0x16")][fc("0x8c")](n)||this[fc("0x5e")](r,i,n,e,o);if(this._addThreadToSuggestion(s),this._checkSuggestionCorrectness(s,r,i||null,e),s.createdAt=t[fc("0x10b")],s[fc("0x141")]=!0,o&&o[fc("0xff")]){const t=o["@external"],e=this._getExternalAuthor(t[fc("0x6b")]);s[fc("0x140")]=t.createdAt,s.author=e,s.isExternal=!0}else s[fc("0x140")]=t[fc("0x10b")];switch(t[fc("0x168")]&&(s.data=t[fc("0x168")]),t.attributes&&(s.attributes=t[fc("0x11d")]),this[fc("0x145")]&&this._adapter[fc("0xf5")]||(s[fc("0x17e")]=!0),this._suggestionState.get(s)){case fc("0x15"):this[fc("0xbe")][fc("0xf9")](s,fc("0x8"));break;case"markerReady":s.isInContent?(this[fc("0x16a")](new Set([s])),this[fc("0xf6")](new Set([s])),this[fc("0xbe")][fc("0xf9")](s,fc("0xbc")),this[fc("0xd4")](fc("0x4e"),s)):this[fc("0xbe")].set(s,fc("0x98"))}return s}[fc("0x10d")](t){this[fc("0x8e")]((()=>{this[fc("0x31")][fc("0x71")][fc("0x152")]((()=>{for(const e of t[fc("0xb7")]())e[fc("0x41")]()}))}))}[fc("0xad")](t){this[fc("0x8e")]((()=>{this[fc("0x31")][fc("0x71")][fc("0x152")]((()=>{for(const e of t[fc("0xb7")]())e[fc("0x139")]()}))}))}enableCommand(t,n){const o=this[fc("0x31")][fc("0x49")][fc("0x8c")](t);if(!o)throw new e.CKEditorError(fc("0x47"),this,{commandName:t});if(this._enabledCommands[fc("0x130")](o))throw new e.CKEditorError(fc("0x22"),this,{commandName:t});this[fc("0x127")][fc("0xb0")](o),n&&o.on(fc("0x13"),((t,e)=>{this[fc("0xa0")][fc("0x138")]&&(this[fc("0x160")]||(e[fc("0x169")]>0&&e[e[fc("0x169")]-1]&&e[e[fc("0x169")]-1][fc("0x8e")]?e[fc("0x6c")]():(t[fc("0xe1")]=n(((...t)=>o[fc("0x13")](...t,{forceDefaultExecution:!0})),...e),t[fc("0xc1")]())))}),{priority:fc("0xd7")})}[fc("0x8e")](t){let n,o;const r=this[fc("0x160")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return r||(this[fc("0x160")]=!1),o&&e.CKEditorError[fc("0x7b")](o,this),n}markInsertion(t,n=null,o={}){if(t[fc("0x101")])return null;const r=this.editor[fc("0x87")].get(fc("0x8a")).me;for(const{suggestion:e,meta:r}of this[fc("0x16f")](t,"insertion"))if(r[fc("0x1c")]){if(!r.isNextTo){if(r[fc("0x7")]){if(!this._mergeNestedSuggestions||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this._breakSuggestionMarker(e,t[fc("0x121")],t[fc("0x8d")]);break}if(n==e[fc("0x165")]&&Ic(e,o)){const n=e.getFirstRange();return n.start[fc("0xd2")](t[fc("0x8d")])?this._setSuggestionRange(e,this[fc("0xb5")][fc("0x14e")](t[fc("0x121")],n[fc("0x8d")])):this[fc("0x16b")](e,this[fc("0xb5")].createRange(n[fc("0x121")],t[fc("0x8d")])),e}}const i=(0,e.uid)(),s=r.id,x=n?fc("0xe9")+n:fc("0x5f"),a=this[fc("0x11f")]({id:i,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x11b")](x,i,s,t),a}markMultiRangeInsertion(t,n=fc("0x94"),o={}){const r=this[fc("0x31")][fc("0x87")][fc("0x8c")]("Users").me,i=this[fc("0xd5")].getSuggestionCallback(fc("0x5f"),n,fc("0x1e"));for(const e of this[fc("0x6f")]())if(e[fc("0x16e")].id==r.id&&"insertion"==e.type&&e[fc("0x165")]==n&&Ic(e,o)&&(i(e[fc("0x1f")](),t)||i(t,e[fc("0x1f")]()))){for(const n of t)e[fc("0x163")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x16f")](t,fc("0x5f"))){if(!n[fc("0x1c")])continue;if(!this._mergeNestedSuggestions&&n.containsRangeInObject)continue;if(!Ic(e,o))continue;let r=!0;for(const n of e.getRanges())for(const e of t)if(!n[fc("0x54")](e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a=fc("0xe9")+n,c=this[fc("0x11f")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,s,x,e,Jo.getMultiRangeId());return c}[fc("0x3f")](t,n,o=null,r={}){if(o=o||Tc(n),t[fc("0x101")])return null;if(fc("0x86")===this[fc("0x9b")]){const e=this[fc("0xd5")].getSuggestionCallback(fc("0x14d"),o,"accept");return this[fc("0x8e")]((()=>e([t],n,r))),null}const i=this.editor[fc("0x87")][fc("0x8c")](fc("0x8a")).me,s=[];if("always"!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[fc("0x16f")](t,fc("0x5f")))n[fc("0x1c")]&&!n[fc("0x11a")]&&s[fc("0x12d")](...e[fc("0x1f")]());const x=function(t,e){const n=[];for(const o of e){const e=t[fc("0x15b")](o);e&&n[fc("0x12d")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e][fc("0x34")](t);n[fc("0x62")](e,1,...o),e+=o[fc("0x169")]}}return n}(t,s);x[fc("0x169")]&&this[fc("0xb5")][fc("0x152")]((()=>{for(const t of x){const e=this[fc("0xd5")][fc("0xbd")](fc("0x14d"),o,"accept");this.forceDefaultExecution((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t.start,a=t[fc("0x8d")];for(const{suggestion:e,meta:n}of this[fc("0x16f")](t,fc("0x14d"))){if(!n[fc("0x1c")])continue;if(e[fc("0x165")]!=o)continue;if(!Ic(e,r))continue;const i=e[fc("0x20")]();if(i.containsRange(t,!0))return null;x=x[fc("0x124")](i[fc("0x121")])?x:i[fc("0x121")],a=a[fc("0x3d")](i.end)?a:i[fc("0x8d")],s?i.start[fc("0x124")](s[fc("0x20")]()[fc("0x121")])?(s[fc("0xdb")](),s=e):e[fc("0xdb")]():s=e}const c=this[fc("0xb5")][fc("0x14e")](x,a);if(s)this._setSuggestionRange(s,c);else{const t=(0,e.uid)(),s=i.id;this._setSuggestionData({id:t,type:fc("0xa")+o,data:n,createdAt:new Date,authorId:s,attributes:r}),this._addSuggestionMarker(fc("0xa")+o,t,s,c)}}return null}[fc("0x10a")](t,n,o=[],r=null,i={}){n[fc("0x44")]||(n.formatGroupId=n[fc("0xfe")]),n[fc("0x4d")]=t.is(fc("0xc6")),r=r||Tc(n);const s=o[fc("0x125")]((t=>Cc(t,this._model))),x=t.is("range")?t:Cc(t,this[fc("0xb5")]);if("never"===this[fc("0x9b")]){const t=this[fc("0xd5")][fc("0xbd")](fc("0xde"),r,fc("0x41"));return this[fc("0x8e")]((()=>t([x],n,i))),null}s.push(x);let a=!0;for(const t of s)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&fc("0x12c")!==this[fc("0x9b")]){const t=this[fc("0xd5")][fc("0xbd")]("formatBlock",r,"accept");return this[fc("0x8e")]((()=>t([x],n,i))),null}let c=null,l=x[fc("0x121")],u=x[fc("0x8d")];for(const{suggestion:t,meta:e}of this[fc("0x16f")](x,fc("0xde"))){if(!e[fc("0x1c")])continue;if(e[fc("0xb2")]||e[fc("0x7")]||e[fc("0x11a")])continue;if(t[fc("0x168")][fc("0x44")]!=n.formatGroupId)continue;if(!Ic(t,i))continue;const o=t[fc("0x20")]();if(t[fc("0x165")]==r){if(o[fc("0x54")](x,!0))return null;l=l[fc("0x124")](o[fc("0x121")])?l:o[fc("0x121")],u=u[fc("0x3d")](o[fc("0x8d")])?u:o[fc("0x8d")],c?o.start.isBefore(c[fc("0x20")]()[fc("0x121")])?(c[fc("0xdb")](),c=t):t.removeMarkers():c=t}else{const e=x[fc("0x15b")](o);this[fc("0x114")](t,e)}}const d=this[fc("0x31")][fc("0x87")].get(fc("0x8a")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x16b")](c,this._model[fc("0x14e")](l,u)),c;{const t=this._setSuggestionData({id:g,type:fc("0x3e")+r,data:n,createdAt:new Date,authorId:f,attributes:i});return this[fc("0x11b")](fc("0x3e")+r,g,f,this[fc("0xb5")][fc("0x14e")](l,u)),t}}[fc("0x148")](t,n,o=[],r=null,i={}){n[fc("0x44")]||(n[fc("0x44")]=n[fc("0xfe")]);const s=t[0];n[fc("0x4d")]=s.is(fc("0xc6")),r=r||Tc(n);const x=o.map((t=>Cc(t,this[fc("0xb5")]))),a=s.is("range")?t:t[fc("0x125")]((t=>Cc(t,this[fc("0xb5")])));if(fc("0x86")===this[fc("0x9b")]){const t=this[fc("0xd5")][fc("0xbd")]("formatBlock",r,fc("0x41"));return this.forceDefaultExecution((()=>t(a,n,i))),null}x[fc("0x12d")](...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&fc("0x12c")!==this[fc("0x9b")]){const t=this[fc("0xd5")][fc("0xbd")](fc("0xde"),r,"accept");return this[fc("0x8e")]((()=>t(a,n,i))),null}const l=this.editor[fc("0x87")][fc("0x8c")](fc("0x8a")).me;for(const t of this.getSuggestions()){if(t[fc("0x16e")].id!=l.id)continue;if(fc("0xde")!=t[fc("0xba")]||t[fc("0x168")][fc("0x44")]!=n[fc("0x44")])continue;if(!Ic(t,i))continue;const e=t[fc("0x165")]==r;for(let n=0;n<a[fc("0x169")];n++){const o=a[n];for(const r of t.getMarkers()){const i=r[fc("0xed")]();if(o[fc("0xd2")](i)){e?(a.splice(n,1),n--):t[fc("0x10c")](r.name);break}}}}if(0==a[fc("0x169")])return null;const u=this._suggestionFactory.getSuggestionCallback(fc("0xde"),r,fc("0x1e"));for(const t of this[fc("0x6f")]())if(t.author.id==l.id&&fc("0xde")==t[fc("0xba")]&&t[fc("0x168")][fc("0x44")]==n.formatGroupId&&t[fc("0x165")]==r&&Ic(t,i)&&(u(t[fc("0x1f")](),a)||u(a,t.getRanges()))){for(const e of a)t[fc("0x163")](e);return t}const d=(0,e.uid)(),g=l.id,f="formatBlock:"+r,m=this[fc("0x11f")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[fc("0x11b")](f,d,g,t,Jo[fc("0xe2")]());return m}[fc("0x4f")](t,n=null,o={}){if(t[fc("0x101")])return null;const r=this[fc("0x31")][fc("0x87")][fc("0x8c")](fc("0x8a")).me,i=new s.LiveRange(t[fc("0x121")],t[fc("0x8d")]);for(const{suggestion:t,meta:e}of this[fc("0x16f")](i,"insertion"))if(e[fc("0x1c")]&&!e[fc("0xb2")])if(t.isMultiRange){const e=t[fc("0x1f")]()[fc("0x63")]((t=>fc("0x74")!=t.root[fc("0x179")]));if(e[fc("0x3b")]((t=>i[fc("0x54")](t,!0)))&&t[fc("0x139")](),e[fc("0xdf")]((t=>t[fc("0x54")](i,!0)))){const t=this[fc("0xd5")][fc("0xbd")](fc("0x155"),n,"accept");return this[fc("0x8e")]((()=>t([i],null,o))),null}}else{const e=i[fc("0x15b")](t[fc("0x20")]());null!==e&&t[fc("0x1d")]([e],null,o)}if(i[fc("0x7a")](),i.isCollapsed||fc("0x74")==i.root[fc("0x179")])return null;let x=null,a=i[fc("0x121")],c=i[fc("0x8d")];const l=this[fc("0x16f")](i,"deletion");for(const{suggestion:t,meta:e}of l){const n=this._model[fc("0x14e")](a,c);if(e[fc("0x1c")]&&(this[fc("0x13b")]||!e[fc("0x7")]&&!e.isInsideObject))if(t.isMultiRange){if(!Ic(t,o))continue;let e=!0;for(const o of t[fc("0x1f")]()){if(o[fc("0x54")](n,!0))return t;n[fc("0x54")](o)||(e=!1)}e&&t[fc("0x139")]()}else{const e=t.getFirstRange();if(e.containsRange(n,!0))return t;if(!Ic(t,o)){n[fc("0x54")](e)?t[fc("0xdb")]():e[fc("0xc5")](a)?a=e.end:e[fc("0xc5")](c)&&(c=e[fc("0x121")]);continue}a=a.isBefore(e[fc("0x121")])?a:e.start,c=c[fc("0x3d")](e[fc("0x8d")])?c:e[fc("0x8d")],o=Object[fc("0xc2")]({},t[fc("0x11d")]),x?e.start[fc("0x124")](x[fc("0x20")]().start)?(x[fc("0xdb")](),x=t):t.removeMarkers():x=t}}if(x)return this[fc("0x16b")](x,this[fc("0xb5")][fc("0x14e")](a,c)),x;{const t=(0,e.uid)(),i=this[fc("0xb5")][fc("0x14e")](a,c),s=r.id,x=n?"deletion:"+n:fc("0x155"),l=this[fc("0x11f")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this._addSuggestionMarker(x,t,s,i),l}}[fc("0x11")](t,n="multi",o={}){const r=this[fc("0x31")].plugins[fc("0x8c")](fc("0x8a")).me,i=t[fc("0x125")]((t=>new s.LiveRange(t.start,t.end))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x16f")](i,fc("0x5f")))e.isOwn&&!e[fc("0xb2")]&&x[fc("0xb0")](t);for(const e of x)if(e.isMultiRange){const r=e[fc("0x1f")]();if((!e[fc("0x11d")]||!e.attributes[fc("0x2c")])&&r[fc("0x3b")]((t=>i.some((e=>e.containsRange(t,!0)))))&&e.discard(),i.every((t=>r.some((e=>e[fc("0x54")](t,!0)))))){const e=this._suggestionFactory[fc("0xbd")]("deletion",n,fc("0x41"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[fc("0x20")]();if(i[fc("0xdf")]((e=>e.containsRange(t,!0)))&&e[fc("0x139")](),i[fc("0x3b")]((e=>t[fc("0x54")](e,!0)))){const t=this[fc("0xd5")][fc("0xbd")]("deletion",n,fc("0x41"));return this.forceDefaultExecution((()=>t(i,null,o))),null}}const a=this[fc("0xd5")][fc("0xbd")]("deletion",n,fc("0x1e"));let c=null;for(const t of this.getSuggestions())if(t.author.id==r.id&&t[fc("0x154")]&&fc("0x155")==t[fc("0xba")]&&t[fc("0x165")]==n&&Ic(t,o)&&(a(t[fc("0x1f")](),i)||a(i,t.getRanges())))if(c){if(t[fc("0x110")]&&t[fc("0x110")][fc("0x169")])continue;for(const e of t[fc("0x1f")]())c[fc("0x118")](e)||c[fc("0x163")](e);t[fc("0xdb")]()}else{c=t;for(const e of i)t[fc("0x118")](e)||t[fc("0x163")](e)}if(c)return c;x[fc("0x99")]();for(const{suggestion:t,meta:e}of this[fc("0x16f")](i,fc("0x155")))e.isOwn&&(this[fc("0x13b")]||!e[fc("0x7")]&&!e[fc("0x11a")])&&Ic(t,o)&&x.add(t);for(const t of x){const e=t[fc("0x1f")]();if((!o||!o[fc("0x2c")])&&i.every((t=>e[fc("0xdf")]((e=>e[fc("0x54")](t,!0))))))return t;(!t.attributes||!t[fc("0x11d")][fc("0x2c")])&&e[fc("0x3b")]((t=>i[fc("0xdf")]((e=>e.containsRange(t,!0)))))&&t[fc("0x139")]()}const l=(0,e.uid)(),u=r.id,d="deletion:"+n,g=this[fc("0x11f")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of i)t[fc("0x7a")](),t[fc("0x101")]||fc("0x74")==t.root[fc("0x179")]||this[fc("0x11b")](d,l,u,t,Jo[fc("0xe2")]());return g}[fc("0x88")](t,n,o,r,i){if(t[fc("0x101")])return[];if(fc("0x86")===this._trackFormatChanges)return[];const s=this[fc("0x31")][fc("0x87")].get(fc("0x8a")).me.id,x=Array[fc("0xca")](this._suggestions[fc("0x12e")]())[fc("0x63")]((e=>fc("0xbb")==e[fc("0xba")]&&e.data[fc("0x3a")]==n&&e[fc("0x118")](t)));if("default"===this[fc("0x9b")]){const e=this[fc("0x16f")](t,fc("0x5f")).filter((({meta:t})=>t[fc("0x1c")]&&!t.isInsideObject&&!t.isNextTo))[fc("0x125")]((({suggestion:t})=>t));x[fc("0x18")](...e)}const a=new Map([[t,o]]);for(const t of x){const e="attribute"==t[fc("0xba")]?t[fc("0x168")][fc("0x27")]:void 0,n=t[fc("0x20")](),i=Array[fc("0xca")](a[fc("0xb")]())[fc("0x100")]((t=>t[fc("0xcc")](n)));i&&(a.delete(i),i.getDifference(n).forEach((t=>{a[fc("0xf9")](t,o)})),"insertion"!=t[fc("0xba")]&&e!=r&&a.set(i.getIntersection(n),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:r};n[fc("0x169")]>37&&console[fc("0x4c")](fc("0x77"),{key:n});const l=(fc("0x146")+(n+"|")+Tc({newValue:r})).substring(0,60),u=this[fc("0x11f")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c[fc("0x12d")](u),this[fc("0x11b")](l,x,s,t)}return c}_registerBlockAttribute(t){this[fc("0x144")][fc("0xb0")](t)}[fc("0x177")](t){this[fc("0x13a")].add(t)}[fc("0x7e")](t,e=[],n=[]){this[fc("0x9")](t,((t,...e)=>{this[fc("0x103")]((()=>{t(...e)}))}));for(const t of e)this[fc("0x177")](t);for(const t of n)this._registerBlockAttribute(t)}[fc("0x16b")](t,e){const n=t[fc("0x28")]();this._model[fc("0x152")]((t=>{t[fc("0x134")](n,{range:e})}))}[fc("0x143")](t){const e=t.id,n=this[fc("0x31")][fc("0x131")][fc("0x8c")](fc("0x119"));this[fc("0x135")][fc("0xf4")](e)||this[fc("0x135")][fc("0x172")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0x135")].getCommentThread(e);o[fc("0x159")](fc("0x126")),o[fc("0x126")]=!1,t[fc("0x110")]=o}[fc("0x104")](t,n,o,r){if(t[fc("0xba")]!=n||t[fc("0x165")]!=o||t.creator.id!=r)throw this.editor[fc("0x76")](fc("0x15a")),new e.CKEditorError(fc("0x15a"),this)}[fc("0x114")](t,n){const o=t[fc("0x20")]();if(n.isEqual(o))t[fc("0xdb")]();else if(o.containsRange(n)){const r=this[fc("0xb5")][fc("0x128")](n[fc("0x121")][fc("0x33")],"end");this[fc("0x16b")](t,this._model.createRange(o[fc("0x121")],r));const i=(0,e.uid)(),s=t[fc("0xea")].id,x=t[fc("0xba")]+":"+t[fc("0x165")];this[fc("0x11f")]({id:i,type:x,createdAt:new Date,authorId:s,data:t[fc("0x168")],attributes:t[fc("0x11d")]});const a=this[fc("0xb5")][fc("0x128")](n[fc("0x8d")][fc("0x171")],"after"),c=this[fc("0xb5")][fc("0x14e")](a,o[fc("0x8d")]);this[fc("0x11b")](x,i,s,c)}else if(o[fc("0xc5")](n[fc("0x121")])){const e=this[fc("0xb5")][fc("0x128")](n[fc("0x121")][fc("0x33")],"end");this[fc("0x16b")](t,this._model.createRange(o[fc("0x121")],e))}else{const e=this[fc("0xb5")].createPositionAt(n[fc("0x8d")][fc("0x171")],fc("0x9a"));this._setSuggestionRange(t,this[fc("0xb5")][fc("0x14e")](e,o.end))}}[fc("0xec")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x5f"))){if(!n[fc("0x1c")])continue;const o=e[fc("0x1f")]();for(const e of o)if(!t[fc("0x34")](e)[fc("0x169")])return!0}return!1}[fc("0x14c")](t){const n=this[fc("0x31")].plugins[fc("0x8c")](fc("0x8a")).getUser(t);if(!n)throw new e.CKEditorError(fc("0x167"),this);return n}[fc("0xc3")](t){const e=this[fc("0x31")][fc("0x87")][fc("0x8c")]("Users"),n=(0,i.hashObject)("external:"+t);return e[fc("0x16d")](n)||e[fc("0x75")]({id:n,name:t})}[fc("0x5e")](t,e,n,o,r){const i=this[fc("0x14c")](o),s=this._suggestionFactory[fc("0x95")](t,e,n,i,r,(t=>this[fc("0x61")](n,{attributes:t})));return this.listenTo(s,fc("0x41"),(()=>{this[fc("0x61")](n,{state:"accepted"})}),{priority:"high"}),this[fc("0xef")](s,fc("0x139"),(()=>{this._updateSuggestionData(n,{state:fc("0x13f")})}),{priority:fc("0xd7")}),this._suggestions[fc("0xf9")](n,s),this[fc("0xbe")][fc("0xf9")](s,fc("0x15")),s}[fc("0x38")](t){const e=t[fc("0x149")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[fc("0x169")]<5?e[3]:e[4],markerCount:6==e[fc("0x169")]?e[5]:null}}[fc("0x166")](t,n,o){const r=t[fc("0x20")](),i=r[fc("0x121")],s=r[fc("0x8d")];this._setSuggestionRange(t,this._model[fc("0x14e")](i,n));const x=(0,e.uid)(),a=t.creator.id,c=t[fc("0xba")]+(t.subType?":"+t[fc("0x165")]:"");this[fc("0x11f")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x11d")],data:t[fc("0x168")]});const l=this[fc("0x67")](t);("formatBlock"==t[fc("0xba")]||l&&this._isBlockAttribute(l))&&(o=this[fc("0xb5")][fc("0x1b")](o[fc("0x171")])),this._addSuggestionMarker(c,x,a,this[fc("0xb5")][fc("0x14e")](o,s))}[fc("0x16f")](t,e=null){const n=[],o=this[fc("0x31")].plugins[fc("0x8c")](fc("0x8a")).me;Array[fc("0x25")](t)||(t=[t]);for(const r of this[fc("0x6f")]()){if(!r[fc("0x154")])continue;if(e&&r.type!=e)continue;let i=!1;for(const e of r[fc("0x1f")]()){for(const s of t){const t=s[fc("0x121")][fc("0xd2")](e.end)||s[fc("0x8d")].isEqual(e[fc("0x121")]);if(t||s[fc("0x15b")](e)){const x=s[fc("0x54")](e)&&pc(this._model[fc("0x170")],e[fc("0x121")],s),a=e.containsRange(s)&&pc(this._model.schema,s[fc("0x121")],e);n[fc("0x12d")]({suggestion:r,meta:{isOwn:o==r[fc("0x16e")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[fc("0x11b")](t,e,n,o,r){this._model[fc("0x152")]((i=>{let s=fc("0x178")+t+":"+e+":"+n;r&&(s=s+":"+r),i[fc("0x79")](s,{range:o,usingOperation:!0,affectsData:!0})}))}[fc("0x107")](t){const e=t[fc("0x15e")],n=t[fc("0x10f")];t[fc("0x15e")]=null,t[fc("0x10f")]=null,null!=e&&(e[fc("0x10f")]=n),null!=n&&(n.previous=e),fc("0xbc")==this[fc("0xbe")][fc("0x8c")](t)&&(this[fc("0xbe")][fc("0xf9")](t,fc("0x98")),this[fc("0xd4")]("suggestionUnloaded",t,e,n))}[fc("0x11f")](t){const n=t.id,o=this[fc("0x17b")](t);if(this._adapter&&this[fc("0x145")][fc("0xf5")]){const r=this.editor.plugins[fc("0x8c")](fc("0x30")),i=o[fc("0x65")],s=o.subType?o.type+":"+o[fc("0x165")]:o[fc("0xba")],x=this.editor.locale,a=r.add(Qo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:s,hasComments:i,data:t[fc("0x168")]||null,originalSuggestionId:t[fc("0x50")]||null,attributes:o[fc("0x11d")]};this[fc("0x145")][fc("0xf5")](c)[fc("0x1")]((t=>{o[fc("0x17e")]=!0,r[fc("0xa6")](a),t&&t[fc("0x10b")]&&(this._suggestions[fc("0x8c")](n)[fc("0x10b")]=t[fc("0x10b")])}))[fc("0xac")]((t=>{throw(0,e.logWarning)(fc("0x42")),this[fc("0x31")][fc("0x71")][fc("0xe0")]({isUndoable:!1},(()=>{o[fc("0x139")]()})),o[fc("0x13c")](),this[fc("0x16")][fc("0x129")](o.id),this._suggestionState[fc("0x129")](o),t}))}return o}[fc("0x105")](t){return this[fc("0x144")].has(t)}[fc("0x67")](t){return"attribute"==t[fc("0xba")]&&t.subType[fc("0x149")]("|")[0]}[fc("0x61")](t,e){const n=this[fc("0x31")][fc("0x87")][fc("0x8c")](fc("0x30")),o=this[fc("0x175")](t);if(this[fc("0x145")]&&this._adapter[fc("0x7d")])if(o[fc("0x17e")]){const o=n.add(Qo(this.editor.locale,fc("0x36")));this[fc("0x145")][fc("0x7d")](t,e)[fc("0x1")]((()=>{n[fc("0xa6")](o)}))}else o.on(fc("0x12"),(()=>{this[fc("0x61")](t,e)}))}[fc("0x32")](t){if(!this[fc("0x145")]||!this[fc("0x145")][fc("0x175")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[fc("0x145")][fc("0x175")](t)}[fc("0xe4")](t){const{id:e,type:n,subType:o,authorId:r}=this._splitMarkerName(t),i=this[fc("0x16")].get(e)||this._createSuggestion(n,o,e,r,{});switch(this._checkSuggestionCorrectness(i,n,o,r),this[fc("0xbe")][fc("0x8c")](i)){case fc("0x15"):this[fc("0x32")](e)[fc("0x1")]((t=>{let n=Promise[fc("0x3")]();t[fc("0x65")]&&(n=this[fc("0x135")][fc("0x91")]({channelId:this[fc("0x31")].config.get(fc("0x119")),threadId:e})),n.then((()=>{this[fc("0x17b")](t)[fc("0x17e")]=!0}))})),this[fc("0xbe")][fc("0xf9")](i,fc("0x6d"));break;case"removed":this[fc("0x61")](e,{state:fc("0x14f")});case fc("0x8"):this[fc("0xbe")].set(i,fc("0xbc")),this[fc("0xd4")]("suggestionLoaded",i);break;case fc("0xbc"):this.fire(fc("0x162"),i)}return i[fc("0x60")](t),i}[fc("0x16a")](t){const e=Array[fc("0xca")](t),n=e[fc("0x63")]((t=>"attribute"==t[fc("0xba")]));this[fc("0x73")](n);const o=e[fc("0x63")]((t=>!t[fc("0x5a")]&&fc("0xbb")!=t[fc("0xba")])),r=this[fc("0x6f")]({skipNotAttached:!0})[fc("0x63")]((t=>!t[fc("0x5a")]&&fc("0xbb")!=t[fc("0xba")])),i=r[fc("0x63")]((e=>!t[fc("0x130")](e))),s=new Map(r[fc("0x125")]((t=>[t,this[fc("0xd5")][fc("0xbd")](t[fc("0xba")],t[fc("0x165")],fc("0x6"))]))),x=new Map(r[fc("0x125")]((t=>[t,t[fc("0x20")]()]))),a=new Set,c=new Set;for(let t=0;t<o[fc("0x169")];t++)u(o[t],o,t+1);for(let t=0;t<o.length;t++)u(o[t],i,0);const l=new Set;for(let t=0;t<o[fc("0x169")];t++){const e=o[t];!c[fc("0x130")](e)&&e.previous&&(l[fc("0xb0")](e[fc("0x15e")]),e[fc("0x15e")][fc("0x10f")]===e&&(e[fc("0x15e")][fc("0x10f")]=null),e[fc("0x15e")]=null),!a[fc("0x130")](e)&&e[fc("0x10f")]&&(l[fc("0xb0")](e[fc("0x10f")]),e[fc("0x10f")][fc("0x15e")]===e&&(e[fc("0x10f")].previous=null),e[fc("0x10f")]=null)}function u(t,e,n){for(let o=n;o<e[fc("0x169")];o++){const n=d(t,e[o]);n&&(n[0][fc("0x10f")]=n[1],n[1][fc("0x15e")]=n[0],a[fc("0xb0")](n[0]),c[fc("0xb0")](n[1]))}}function d(t,e){if(t[fc("0x16e")].id!==e[fc("0x16e")].id)return null;const n=s[fc("0x8c")](t)(t,e,x.get(t),x.get(e));return n&&s[fc("0x8c")](e)(t,e,x[fc("0x8c")](t),x[fc("0x8c")](e))?n[1].commentThread&&n[1][fc("0x110")][fc("0x169")]?null:n:null}l[fc("0x13e")]&&this[fc("0x16a")](l)}[fc("0x73")](t){if(0==t[fc("0x169")])return;const e=this[fc("0x6f")]({skipNotAttached:!0})[fc("0x63")]((t=>fc("0xbb")==t[fc("0xba")]&&t._isDataLoaded)),n=[],o=new Map;for(const t of e){const e=(0,i.hashObject)(t.attributes);o[fc("0x130")](e)||(o[fc("0xf9")](e,n[fc("0x169")]),n.push([]));const r=o[fc("0x8c")](e);n[r][fc("0x12d")](t)}!function(){n.sort(((t,e)=>{const n=t[0].createdAt,o=e[0][fc("0x10b")];return n==o?t[0][fc("0x11d")][fc("0xfa")]<e[0][fc("0x11d")].groupId?-1:1:n<o?-1:1}));for(const t of n)t.sort(((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x169")];t++){if(0==n[t][fc("0x169")])continue;const e=[];for(let o=t+1;o<n[fc("0x169")];o++)0!=n[o][fc("0x169")]&&r(n[t],n[o])&&e[fc("0x12d")](o);for(const o of e)n[t]=n[t].concat(n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[fc("0x169")];e++)t[e][fc("0x10f")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0x169")];e++)t[e][fc("0x15e")]=t[e-1]||null;function r(t,e){if(t[0][fc("0x16e")]!==e[0][fc("0x16e")])return!1;if(n=t[0],o=e[0],(n[fc("0x65")]||o[fc("0x65")])&&(n[fc("0x65")]&&o[fc("0x65")]||!(n[fc("0x65")]&&o.createdAt<n[fc("0x110")][fc("0x108")][fc("0x8c")](0).createdAt||o[fc("0x65")]&&n[fc("0x10b")]<o.commentThread[fc("0x108")][fc("0x8c")](0)[fc("0x10b")])))return!1;var n,o;const r=lc(t[0][fc("0x11d")],fc("0xfa")),i=lc(e[0][fc("0x11d")],fc("0xfa"));return!!Go(r,i)&&(!!t[fc("0x3b")]((t=>e[fc("0xdf")]((e=>t[fc("0x20")]()[fc("0xd2")](e[fc("0x20")]())))))&&e[fc("0x3b")]((e=>t[fc("0xdf")]((t=>e[fc("0x20")]()[fc("0xd2")](t[fc("0x20")]()))))))}}[fc("0xf6")](t){const e=Array[fc("0xca")](t),n=this[fc("0x6f")]({skipNotAttached:!0}),o=n.filter((e=>!t[fc("0x130")](e))),r=new Map(e.map((t=>[t,this[fc("0xd5")][fc("0xbd")](t[fc("0xba")],t[fc("0x165")],fc("0x1e"))]))),i=new Map(n.map((t=>[t,t[fc("0x1f")]()])));for(let t=0;t<e[fc("0x169")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0x169")];t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[fc("0x169")];s++){const o=n[s];if(o[fc("0xba")]!==e[fc("0xba")]||o[fc("0x16e")].id!==e.author.id||o[fc("0x165")]!==e[fc("0x165")])continue;if(!kc(e,o))continue;if(fc("0xbb")==e[fc("0xba")]&&e.data[fc("0x27")]!=o[fc("0x168")][fc("0x27")])continue;if(fc("0xbb")==e.type&&t._isBlockAttribute(e[fc("0x168")].key))continue;const x=r[fc("0x8c")](e),a=i.get(e),c=i[fc("0x8c")](o),l=e.commentThread&&e[fc("0x110")][fc("0x169")],u=o[fc("0x110")]&&o[fc("0x110")].length;if(!l&&x(c,a))return t[fc("0x7f")](o,e),i[fc("0x129")](e),!0;if(!u&&x(a,c))return t[fc("0x7f")](e,o),i[fc("0x129")](o),!0}return!1}}_joinSuggestions(t,e){if(t[fc("0x5a")])for(const n of e[fc("0x1f")]())t[fc("0x163")](n);else{const n=e[fc("0x20")]()[fc("0x8d")];this._setSuggestionRange(t,this[fc("0xb5")].createRange(t.getFirstRange()[fc("0x121")],n))}e[fc("0xdb")]()}_getMarkerAnnouncementText(t,e){const n=t.startsWith(fc("0xce"))||t[fc("0xcf")](fc("0xbb"))?fc("0xee"):t[fc("0xd8")]();return Qo(this[fc("0x31")][fc("0x5c")],e+"_"+n+fc("0x69"))}[fc("0x72")](){const t=this[fc("0x31")];(0,i.surroundingMarkersDetector)(this[fc("0xb5")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0x38")](t[fc("0x153")]);if(fc("0xa9")===e){o[fc("0x12d")](this._getMarkerAnnouncementText(n,"LEAVE"));break}}for(const t of n){const{group:e,type:n}=this[fc("0x38")](t.name);if("suggestion"===e){o.push(this[fc("0x7c")](n,fc("0x4b")));break}}o.length&&t.ui[fc("0xab")].announce(fc("0xf1"),o[fc("0x1e")](" "))}))}_processAttributeChanges(t){if(null!==this[fc("0x14a")])return!1;const e=this[fc("0x31")],n=e.model.document[fc("0x136")][fc("0x9c")]();if(0==n[fc("0x169")])return!1;const o=[],r=n[fc("0x63")]((t=>fc("0xbb")==t.type)),i=n[fc("0x63")]((t=>fc("0x2b")==t.type&&fc("0x5")!=t.name)),s=n[fc("0x63")]((t=>fc("0xa6")==t[fc("0xba")]&&fc("0x5")!=t.name));for(const t of r)o[fc("0x12d")]({key:t[fc("0xf8")],newValue:t[fc("0x66")],oldValue:t.attributeOldValue,range:(x=t[fc("0xc6")],null==x[fc("0x8d")][fc("0x33")]&&x[fc("0x8d")][fc("0x171")]==x[fc("0x121")].nodeAfter?Cc(x[fc("0x121")][fc("0x17f")],e[fc("0x71")]):x)});var x;for(const t of i){const n=s[fc("0x100")]((e=>e[fc("0x16c")][fc("0xd2")](t[fc("0x16c")])));n&&o[fc("0x12d")]({key:fc("0x97"),newValue:t[fc("0x153")],oldValue:n.name,range:e[fc("0x71")].createRangeOn(t[fc("0x16c")][fc("0x17f")])})}return 0!=o[fc("0x169")]&&this[fc("0x14")](t,o)}[fc("0x113")](t){let e=!1;const n=this[fc("0x31")].model.document[fc("0x136")][fc("0x106")]()[fc("0x63")]((t=>t[fc("0x168")][fc("0xc4")]&&t[fc("0x153")][fc("0xcf")](fc("0xa3"))));for(const o of n){const{subType:n,id:r}=this[fc("0x38")](o[fc("0x153")]),i=n[fc("0x149")]("|")[0];for(const n of this[fc("0x6f")]({skipNotAttached:!0}))n.id!=r&&fc("0xbb")==n[fc("0xba")]&&n[fc("0x168")]&&n[fc("0x168")].key==i&&n.getFirstRange().isIntersecting(o[fc("0x168")][fc("0xc4")])&&(this[fc("0x122")](n,o[fc("0x168")][fc("0xc4")],t),e=!0)}return e}[fc("0x103")](t){if(null!==this._recordAttributeSuggestionsFromVersion)return void t();const n=this[fc("0x31")];this._recordAttributeSuggestionsFromVersion=n.model[fc("0x2f")][fc("0xd9")],t();const o=new Map;for(const t of n[fc("0x71")].document[fc("0x29")][fc("0xf")](this[fc("0x14a")]))if([fc("0x81"),fc("0xfb"),fc("0x56"),fc("0x12f")][fc("0xaf")](t[fc("0xba")])){const e=t.batch,n=o[fc("0x8c")](e)||[];n[fc("0x12d")](t),o[fc("0xf9")](e,n)}this[fc("0x14a")]=null;for(const[t,r]of o){const o=(0,e.uid)();n[fc("0x71")][fc("0xe0")](t,(t=>{const e=[];for(const t of r){let r,i,s,x;if(fc("0x81")==t[fc("0xba")]){const e=t;r=Cc(e[fc("0x16c")][fc("0x17f")],n[fc("0x71")]),i=fc("0x97"),s=e[fc("0x45")],x=e[fc("0x8b")]}else{const e=t,o=this[fc("0x105")](e[fc("0x3a")]),a=this[fc("0x13a")][fc("0x130")](e.key);if(!o&&!a)continue;r=o?Cc(e[fc("0xc6")][fc("0x121")][fc("0x17f")],n[fc("0x71")]):e.range,i=e[fc("0x3a")],s="removeAttribute"==t[fc("0xba")]?void 0:e[fc("0x14b")],x=e[fc("0x27")]}this[fc("0x88")](r,i,x,s,{groupId:o}),e[fc("0x12d")]({range:r,key:i,newValue:s,oldValue:x})}this[fc("0x14")](t,e)}))}}[fc("0x14")](t,e){if(0==e.length)return!1;let n=!1;for(const o of e){const e=this[fc("0x16f")](o[fc("0xc6")],fc("0xbb")).filter((t=>!t[fc("0x5d")][fc("0xb2")]))[fc("0x125")]((t=>t[fc("0xa9")])),r=(0,i.hashObject)({newValue:o[fc("0x14b")]});e[fc("0x63")]((t=>{const[e,n]=t[fc("0x165")][fc("0x149")]("|");return e==o.key&&n!=r}))[fc("0x19")]((e=>{this._reduceSuggestionAttributeRange(e,o[fc("0xc6")],t),n=!0}))}return n}[fc("0x122")](t,e,n){const o=t[fc("0x20")]()[fc("0x34")](e);0!==o.length?1!==o[fc("0x169")]?this[fc("0x166")](t,e[fc("0x121")],e[fc("0x8d")]):this[fc("0x16b")](t,o[0]):n[fc("0x10c")](t.getFirstMarker())}}class bc{constructor(t){this[fc("0x15d")]=t,this[fc("0xb5")]=t[fc("0x71")],this._customCallbacks=new Map,this[fc("0x46")]=new Map,this._registerDefaultCallbacks()}[fc("0x95")](t,e,n,o,r,i){return new Jo(this[fc("0xb5")],{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:i,onAccept:(...n)=>this[fc("0xbd")](t,e,fc("0x41"))(...n),onDiscard:(...n)=>this[fc("0xbd")](t,e,fc("0x139"))(...n)})}registerCustomCallback(t,e,n,o){const r=t+":"+e+":"+n;this[fc("0xcd")][fc("0xf9")](r,o)}[fc("0xbd")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[fc("0x8c")](o)||this._defaultCallbacks[fc("0x8c")](t+":"+n)}[fc("0x23")](){const t=()=>!1,e=t=>{t[fc("0xbf")](((t,e)=>t[fc("0x121")].isBefore(e[fc("0x121")])?1:-1)),this[fc("0xb5")][fc("0x152")]((e=>{for(const n of t){let t;t=n[fc("0x8d")][fc("0xb4")]&&n[fc("0x8d")].parent==n[fc("0x121")][fc("0x17f")]?e.createSelection(n[fc("0x121")][fc("0x17f")],"on"):e[fc("0x55")](n),this[fc("0xb5")][fc("0xc8")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model[fc("0x152")]((n=>{const{commandName:o,commandParams:r=[]}=e,i=t.map((t=>(Ec(t)&&(t=this._model.createRange(t[fc("0x8d")])),t)))[fc("0x63")]((t=>"$graveyard"!==t[fc("0xe")][fc("0x179")]));if(i[fc("0x169")]<1)return;const x=Array.from(this[fc("0xb5")][fc("0x2f")][fc("0x150")][fc("0x1f")]())[fc("0x125")]((t=>s.LiveRange.fromRange(t)));n[fc("0x58")](i);for(const t of this[fc("0x15d")][fc("0x49")][fc("0x49")]())t.refresh();r.push({forceDefaultExecution:!0}),this[fc("0x15d")][fc("0x13")](o,...r);const a=x[fc("0x63")]((t=>fc("0x74")!=t[fc("0xe")].rootName));a[fc("0x169")]>0&&n[fc("0x58")](a);for(const t of x)t[fc("0x7a")]()}))},o=(t,e)=>1==t[fc("0x169")]&&1==e[fc("0x169")]&&t[0][fc("0x8d")][fc("0xd2")](e[0].start),r=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0xb5")])?[t,e]:Ac(e,t,o,n,this[fc("0xb5")])?[e,t]:null;this[fc("0x46")][fc("0xf9")](fc("0x133"),t),this[fc("0x46")][fc("0xf9")]("insertion:discard",e),this[fc("0x46")][fc("0xf9")](fc("0xe5"),o),this[fc("0x46")][fc("0xf9")](fc("0xae"),r),this._defaultCallbacks[fc("0xf9")](fc("0x6a"),e),this[fc("0x46")][fc("0xf9")]("deletion:discard",t),this[fc("0x46")][fc("0xf9")](fc("0xa7"),o),this[fc("0x46")][fc("0xf9")](fc("0x70"),r),this[fc("0x46")][fc("0xf9")](fc("0x24"),n),this[fc("0x46")][fc("0xf9")]("formatInline:discard",t),this[fc("0x46")][fc("0xf9")]("formatInline:join",o),this[fc("0x46")][fc("0xf9")](fc("0x37"),t),this[fc("0x46")][fc("0xf9")](fc("0xd"),n),this[fc("0x46")].set(fc("0x89"),t),this[fc("0x46")][fc("0xf9")](fc("0xfd"),o),this[fc("0x46")][fc("0xf9")](fc("0xe8"),t),this[fc("0x46")][fc("0xf9")](fc("0x111"),t),this._defaultCallbacks[fc("0xf9")](fc("0x15c"),((t,e)=>{if(!e)return;const n=this[fc("0x15d")].plugins[fc("0x8c")](hc);this[fc("0xb5")][fc("0x152")]((o=>{if(fc("0x97")==e[fc("0x3a")])for(const n of t){const t=n[fc("0x121")][fc("0x17f")],r=e.oldValue;o[fc("0x81")](t,r)}else if(n[fc("0x105")](e[fc("0x3a")]))for(const n of t)void 0!==e.oldValue?o[fc("0x92")](e.key,e[fc("0x27")],n[fc("0x121")][fc("0x17f")]):o[fc("0x56")](e[fc("0x3a")],n[fc("0x121")][fc("0x17f")]);else for(const n of t)e.oldValue?o.setAttribute(e[fc("0x3a")],e.oldValue,n):o[fc("0x56")](e[fc("0x3a")],n)}))})),this[fc("0x46")][fc("0xf9")](fc("0x11c"),o)}}function pc(t,e,n){for(const o of e[fc("0x171")][fc("0xdd")]({includeSelf:!0,parentFirst:!0})){if(o[fc("0xe")]==o)return!1;if(!n[fc("0x2e")](o))return!1;if(t[fc("0xa2")](o)||t.isLimit(o))return!0}return!1}function Ec(t){return t[fc("0x8d")].parent==t.start[fc("0x17f")]&&t[fc("0x8d")].isAtStart}function _c(t,e,n,o){const r=t=>!t.item.is(fc("0xc7"))&&!o[fc("0xa2")](t[fc("0xf7")]),i=t[fc("0x121")][fc("0x102")](r),s=t[fc("0x8d")].getLastMatchingPosition(r,{direction:fc("0x96")});return!(t[fc("0x121")][fc("0xd2")](i)&&t.end[fc("0xd2")](s)||(i[fc("0x124")](s)?n[fc("0x134")](e,{range:n[fc("0x14e")](i,s)}):n[fc("0x10c")](e),0))}function Tc(t){return(0,i.hashObject)(t)}function yc(t){const e=t[fc("0x121")][fc("0x17f")];return e&&e.is(fc("0x13d"))}function Cc(t,e){const n=e[fc("0x170")][fc("0xa2")](t)||e[fc("0x170")][fc("0x142")](t);return e[fc("0x14e")](e[fc("0x128")](t,fc("0x2")),n?e[fc("0xb8")](t):e[fc("0x128")](t,fc("0x8d")))}function Ac(t,e,n,o,r){if(!kc(t,e))return!1;if(n[fc("0x8d")][fc("0xd2")](o[fc("0x121")]))return!0;if(t[fc("0xba")]!=e[fc("0xba")])return!1;if(!n[fc("0x8d")][fc("0x4")](o.start))return!1;const i=r[fc("0x14e")](n.end,o[fc("0x121")]).getWalker();for(const t of i)if([fc("0xfc"),"elementEnd"][fc("0xaf")](t[fc("0xba")])&&r[fc("0x170")][fc("0xf3")](t[fc("0xf7")]))return!1;return!0}function kc(t,e){return!(!t[fc("0x141")]||!e._isDataLoaded)&&Go(t[fc("0x11d")],e[fc("0x11d")])}function Ic(t,e){const n=Rc(t.attributes),o=Rc(e);if(!t[fc("0x141")])return!1;for(const t of Object[fc("0xb")](o))if(!Go(n[t],o[t]))return!1;return!0}function Rc(t){const e=Object[fc("0xc2")]({},t);return delete e[fc("0x2c")],delete e[fc("0x39")],e}const Sc=["canDiscard","locale","listenTo","_editor","destroy","change:isDirty","isEnabled","stopListening","add","PENDING_ACTION_SUGGESTION","isDirty","_removePendingAction","commentThreadController","canEditAt","_pendingAction","model","getRanges","execute","PendingActions","bind","discardSuggestion","canAccept","_acceptCommand","get","_discardCommand","remove","plugins","commands","_setPendingAction","acceptSuggestion","unbind","view"];var vc,Nc;vc=Sc,Nc=297,function(t){for(;--t;)vc.push(vc.shift())}(++Nc);const Lc=function(t,e){return Sc[t-=0]};class Mc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Lc("0x6")]=e,this[Lc("0x16")]=n,this[Lc("0x3")]=o,this[Lc("0x1a")]=t,this[Lc("0xd")]=t[Lc("0x12")][Lc("0xe")](Lc("0x14")),this._discardCommand=t[Lc("0x12")].get(Lc("0xb")),this[Lc("0x16")][Lc("0xa")](Lc("0x1d")).to(this[Lc("0xd")],this[Lc("0xf")],((t,e)=>t||e)),this[Lc("0x16")].bind(Lc("0xc")).to(this[Lc("0xd")],Lc("0x1d"),(t=>t&&this[Lc("0x1a")][Lc("0x6")].canEditAt(e[Lc("0x7")]()))),this[Lc("0x16")][Lc("0xa")](Lc("0x17")).to(this._discardCommand,Lc("0x1d"),(t=>t&&this[Lc("0x1a")][Lc("0x6")][Lc("0x4")](e[Lc("0x7")]()))),this._pendingAction=null,n[Lc("0x1")]&&this[Lc("0x13")](),this[Lc("0x19")](n,Lc("0x14"),(()=>this[Lc("0x14")]())),this[Lc("0x19")](n,Lc("0xb"),(()=>this[Lc("0xb")]())),this[Lc("0x19")](n,Lc("0x1c"),(()=>{n[Lc("0x1")]?this[Lc("0x13")]():this[Lc("0x2")]()}))}[Lc("0x14")](){this[Lc("0xd")][Lc("0x8")](this[Lc("0x6")].id)}[Lc("0xb")](){this._discardCommand[Lc("0x8")](this[Lc("0x6")].id)}[Lc("0x1b")](){this[Lc("0x16")][Lc("0x15")]("isEnabled"),this[Lc("0x16")][Lc("0x15")](Lc("0xc")),this[Lc("0x16")][Lc("0x15")](Lc("0x17")),this[Lc("0x1e")](),this.commentThreadController.destroy(),this[Lc("0x5")]&&this[Lc("0x2")]()}_setPendingAction(){const t=Qo(this[Lc("0x1a")][Lc("0x18")],Lc("0x0"));this._pendingAction=this[Lc("0x1a")][Lc("0x11")][Lc("0xe")](Lc("0x9"))[Lc("0x1f")](t)}[Lc("0x2")](){null!==this._pendingAction&&this[Lc("0x1a")][Lc("0x11")][Lc("0xe")](Lc("0x9"))[Lc("0x10")](this[Lc("0x5")]),this._pendingAction=null}}const wc=["_createCommentViews","CommentView","locale","_config","_createCommentThreadInputView","_localUser","bind","disableComments","_model","isReadOnly","descriptionParts","commentInputView","set","editorConfig","canAccept","commentThreadInputView","isActive","delegate","hasDirtyComment","commentThread","length","element","commentsListView","value","destroy","removeComment","setData","canDiscard","cancel","editor","authoredAt","fire","submit","isEnabled","isDirty","focus","addComment","disabledSubmit"];var Oc,Dc;Oc=wc,Dc=346,function(t){for(;--t;)Oc.push(Oc.shift())}(++Dc);const Fc=function(t,e){return wc[t-=0]};class Bc extends r.View{constructor(t,e,n,o){super(t),this[Fc("0x12")]=null,this[Fc("0xb")]=null,this[Fc("0x8")](Fc("0xc"),!1),this[Fc("0x8")](Fc("0x1a"),e.authoredAt),this.bind("authoredAt").to(e),this[Fc("0x8")](Fc("0x6"),[]),this[Fc("0x8")](Fc("0x1e"),!1),this.set(Fc("0x1d"),!1),this.set(Fc("0xa"),!1),this[Fc("0x8")](Fc("0x17"),!1),this[Fc("0x4")]=e,this[Fc("0x1")]=n,this[Fc("0x25")]=o,o[Fc("0x3")]?this[Fc("0x8")](Fc("0x10"),1):this[Fc("0x22")]()}[Fc("0x1f")](){this[Fc("0x11")][Fc("0x1f")]()}destroy(){this.commentsListView&&this[Fc("0x12")].destroy(),this[Fc("0xb")]&&this[Fc("0xb")][Fc("0x14")](),super[Fc("0x14")]()}_createCommentViews(){const{CommentsListView:t}=this._config;this.commentsListView=new t(this[Fc("0x24")],this[Fc("0x4")].commentThread,Object.assign({CommentView:this._config[Fc("0x23")]},this[Fc("0x25")])),this[Fc("0x12")][Fc("0xd")](Fc("0x15")).to(this),this[Fc("0x12")][Fc("0xd")]("updateComment").to(this),this[Fc("0x12")][Fc("0x2")](Fc("0xc")).to(this),this.set(Fc("0x10"),this.commentsListView.length+1),this[Fc("0x2")](Fc("0x10")).to(this[Fc("0x12")],Fc("0x10"),(t=>t+1)),this[Fc("0xb")]=this[Fc("0x0")](),this.on(Fc("0x15"),(()=>this.focus())),this[Fc("0x2")](Fc("0x1e")).to(this[Fc("0x12")],Fc("0xe"),this[Fc("0xb")][Fc("0x7")],Fc("0x13"),((t,e)=>t||!!e))}[Fc("0x0")](){const{CommentThreadInputView:t}=this[Fc("0x25")],e=new t(this.locale,this[Fc("0x1")],this[Fc("0x25")][Fc("0x9")]),n=e[Fc("0x7")];return e[Fc("0x2")]("showInput").to(this,Fc("0xc"),this[Fc("0x4")][Fc("0xf")],Fc("0x5"),n,Fc("0x13"),((t,e,n)=>!!n||t&&!e)),n.on(Fc("0x1c"),((t,e)=>{this[Fc("0x1b")](Fc("0x20"),e),n[Fc("0x19")][Fc("0x16")]("")})),n.on(Fc("0x18"),(()=>this[Fc("0x1f")]())),n.bind(Fc("0x21")).to(this[Fc("0x4")][Fc("0xf")],Fc("0x5")),e}}const Pc=["importWord","isExternal","EXTERNAL_AVATAR","userView","Discard suggestion","ck-annotation__content-wrapper","editorReady","setTemplate","@external","disableComments","EXTERNAL_SUGGESTION","ck-suggestion__actions","commentThread",'<span class="ck-suggestion-color" style="background-color: ',"authoredAt","check","description","ck-suggestion-","bind","extendTemplate","ck-annotation__info","render","set","content","ck-suggestion__info","element","ck-suggestion--discard","join","bindTemplate","author","creator","innerText","canDiscard","ck-comment__info-time","isEnabled","ck-annotation__info-name","_descriptionElement","acceptSuggestion",'" title="',"acceptButton","delegate","</span>","time","ck-annotation","querySelector","EXTERNAL_IMPORT_WORD_SUGGESTION","getExternalSuggestionNote","commentThreadInputView","locale","ck-suggestion","color","ck-annotation__user","</p>","type","_model","editorDestroyed","cancel","getTemplate","discardSuggestion","attributes",'"></span>',"ck-suggestion__main","children","discardButton","createElement","fire","getUserViewNotificationText","name","ck-annotation__info-time","innerHTML","commentsListView","ck-suggestion--disabled-comments","title","_createButton","descriptionParts","push","div",".ck-annotation__content-wrapper","isActive"];var Uc,jc;Uc=Pc,jc=107,function(t){for(;--t;)Uc.push(Uc.shift())}(++jc);const Gc=function(t,e){return Pc[t-=0]};class Vc extends Bc{constructor(e,n,o,r){super(e,n,o,r),this.set("type",""),this[Gc("0x45")](Gc("0x19")).to(this,Gc("0x2e"),(t=>t&&t[0]?t[0][Gc("0x19")]:"")),this.bind(Gc("0x43")).to(this,Gc("0x2e"),this,Gc("0x32"),((t,e)=>{let n="";for(const e of t)n+="<p>"+Hc(e[Gc("0x4a")],e[Gc("0x16")])+Gc("0x18");return e?n:(0,i.trimHtml)(n,{limit:140})})),this[Gc("0x8")]=null,this[Gc("0xb")]=this[Gc("0x2d")](Qo(e,"Accept suggestion"),t.icons[Gc("0x42")],"ck-suggestion--accept",Gc("0x9"),"sw"),this.acceptButton.bind(Gc("0x6")).to(this,"canAccept"),this[Gc("0x23")]=this[Gc("0x2d")](Qo(e,Gc("0x37")),t.icons[Gc("0x1c")],Gc("0x4d"),Gc("0x1e"),"sw"),this.discardButton[Gc("0x45")](Gc("0x6")).to(this,Gc("0x4")),this.userView=new i.UserView(e,this._model[Gc("0x1")],this[Gc("0x26")]()),this.userView[Gc("0x46")]({attributes:{class:["ck-suggestion__user",Gc("0x17")]}}),this[Gc("0x3a")](this.getTemplate())}[Gc("0x1d")](){const t=this[Gc("0x0")],e=[{tag:Gc("0x30"),attributes:{class:[Gc("0x4b"),Gc("0x47")]},children:[{tag:"span",children:[{text:this[Gc("0x36")][Gc("0x27")]}],attributes:{class:["ck-suggestion__info-name",Gc("0x7")]}},{tag:Gc("0xe"),attributes:{datetime:t.to("authoredAt"),class:[Gc("0x5"),Gc("0x28")]},children:[{text:t.to(Gc("0x41"),(t=>this._config.formatDateTime(t)))}]}]},{tag:Gc("0x30"),attributes:{class:[Gc("0x3e"),"ck-annotation__actions"]},children:[this[Gc("0xb")],this.discardButton]},{tag:Gc("0x30"),attributes:{class:[Gc("0x38")]}}];this[Gc("0x1a")][Gc("0x34")]&&e.push({tag:Gc("0x30"),attributes:{class:["ck-comment__external"]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:Gc("0x30"),attributes:{class:["ck-suggestion-wrapper",t.if(Gc("0x32"),"ck-suggestion-wrapper--active"),t.to(Gc("0x19"),(t=>Gc("0x44")+t)),this._config[Gc("0x3c")]&&Gc("0x2b")],"data-suggestion-id":this._model.id,"data-thread-id":this[Gc("0x1a")][Gc("0x3f")].id,"data-author-id":this[Gc("0x1a")][Gc("0x1")].id,tabindex:-1},children:[{tag:Gc("0x30"),attributes:{class:[Gc("0x15"),Gc("0xf")]},children:[this[Gc("0x36")],{tag:Gc("0x30"),attributes:{class:[Gc("0x21"),"ck-annotation__main"]},children:e}]}]};return this[Gc("0x2a")]&&this[Gc("0x13")]&&(n[Gc("0x22")][Gc("0x2f")](this.commentsListView,this[Gc("0x13")]),this[Gc("0x2a")][Gc("0xc")](Gc("0x39")).to(this),this[Gc("0x2a")][Gc("0xc")](Gc("0x1b")).to(this),this[Gc("0x13")][Gc("0xc")](Gc("0x39")).to(this),this[Gc("0x13")][Gc("0xc")](Gc("0x1b")).to(this)),n}[Gc("0x48")](){super[Gc("0x48")](),this[Gc("0x8")]=this[Gc("0x4c")][Gc("0x10")](Gc("0x31")),this[Gc("0x8")][Gc("0x29")]=this[Gc("0x43")],this.on("change:description",((t,e,n)=>{this._descriptionElement.innerHTML=n}))}_createButton(t,e,n,o,i){const s=new r.ButtonView(this[Gc("0x14")]);return s[Gc("0x49")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s[Gc("0x46")]({attributes:{class:n}}),s.on("execute",(()=>{this[Gc("0x25")](o,this._model.id)})),s}[Gc("0x12")](){return"importWord"===this._model[Gc("0x1f")][Gc("0x3b")].source?Qo(this[Gc("0x14")],Gc("0x11")):Qo(this[Gc("0x14")],Gc("0x3d"))}[Gc("0x26")](){return this[Gc("0x1a")].isExternal?Gc("0x33")===this[Gc("0x1a")][Gc("0x1f")][Gc("0x3b")].source?Qo(this[Gc("0x14")],"EXTERNAL_IMPORT_WORD_AVATAR",this[Gc("0x1a")][Gc("0x2")].name):Qo(this[Gc("0x14")],Gc("0x35"),this[Gc("0x1a")][Gc("0x2")][Gc("0x27")]):null}}function Hc(t,e){let n="";return n+=t.split("*").map(((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+zc(t)+Gc("0xd"):zc(t)))[Gc("0x4e")](""),e&&(n+=Gc("0x40")+e.value+Gc("0xa")+e[Gc("0x2c")]+Gc("0x20")),n}function zc(t){const e=document[Gc("0x24")]("span");return e[Gc("0x3")]=t,e[Gc("0x29")]}const Wc=["innerView","discardAllSuggestions","locale","actionView","_descriptionFactory","_unbindEditors","addSourceCollector","comments.maxThreadTotalWeight","editor","comments.editorConfig","destroy","_handleControllerBuffer","suggestionLoaded","trackChanges","view","getDescriptions","suggestion-","CommentsRepository","isEnabled","_initializeController","componentFactory","from","_refreshActiveMarkers","hasSuggestion","mainView","focus","bind","createAnnotation","delete","TrackChangesEditing","createCommentThreadController","EditorAnnotations","Annotations","TrackChangesUI","Discard all suggestions","discardButton","descriptionParts","some","set","_updateController","editing","define","acceptSelectedSuggestions","refreshSelectedViews","values","listenTo","remove","registerAnnotation","_createUIButton","getMarkerNames","filter","lowest","pluginName","toMany","_destroyController","commands","unbind","SuggestionThreadView","getSuggestion","trackChanges.disableComments","acceptAllSuggestions","switchbutton","isDirty","Accept all suggestions","has","clear","CommentView","value","_disableComments","change:previous","config","getAllAdjacentSuggestions","arrowView","getFirstRange","push","execute","stopListening","button","_viewToController","requires","reduce","activeAnnotations","Track changes","trackChanges.SuggestionThreadView","_handleSuggestionControllerDelayed","isOn","type","keys","getByInnerView","suggestionUnloaded","_annotationViews","isInContent","CommentsUI","previous","model","plugins","commandName","get","getRanges","Accept all selected suggestions","separator","head","createAnnotationView","buttonView","acceptButton","Discard all selected suggestions","discardSelectedSuggestions","_suggestionToController","activeMarkers"];var Kc,qc;Kc=Wc,qc=131,function(t){for(;--t;)Kc.push(Kc.shift())}(++qc);const Xc=function(t,e){return Wc[t-=0]};class $c extends t.Plugin{static get[Xc("0x39")](){return[hc,i.Users,Xc("0x68"),Xc("0xa"),Xc("0x9")]}static get[Xc("0x1e")](){return Xc("0xb")}constructor(t){super(t),this[Xc("0x55")]=new Map,this._viewToController=new Map,this[Xc("0x44")]=new Map,this[Xc("0x62")]=new Map;const e=this[Xc("0x5f")][Xc("0x30")];e.define(Xc("0x3d"),Vc),e[Xc("0x13")](Xc("0x25"),!1),this[Xc("0x2e")]=e[Xc("0x4b")](Xc("0x25"))}_handleSuggestionControllerDelayed(t,e){0===this._handleControllerBuffer.size&&setTimeout((()=>{for(const[t,e]of this[Xc("0x62")]){const n=this[Xc("0x55")].has(t);n||e?n&&e&&this._destroyController(t):this[Xc("0x6a")](t)}this[Xc("0x5f")][Xc("0x49")][Xc("0x4b")]("EditorAnnotations")[Xc("0x15")](),this[Xc("0x0")](),this[Xc("0x62")][Xc("0x2b")]()}),10),this[Xc("0x62")].set(t,e)}init(){const t=this[Xc("0x5f")],e=t[Xc("0x49")][Xc("0x4b")](Xc("0x7")),n=t[Xc("0x49")][Xc("0x4b")](Xc("0xa")),o=t[Xc("0x49")][Xc("0x4b")](Xc("0x9")),r=t[Xc("0x49")].get(Xc("0x68"));t.ui[Xc("0x6b")].add(Xc("0x64"),(t=>this._createUIButton(t))),o[Xc("0x5d")]((()=>{const t=[];for(const[e,n]of Array[Xc("0x6c")](this[Xc("0x55")])){const o=e[Xc("0x31")](),r=[];for(const t of o){if(!t[Xc("0x45")])continue;if(t.isMultiRange){r.push(...t[Xc("0x4c")]());continue}const e=t[Xc("0x33")]();if(r.length>0){const t=r[0].getJoined(e);if(t){r[0]=t;continue}}r.push(e)}t[Xc("0x34")]([n[Xc("0x65")],r])}return t})),this[Xc("0x17")](e,Xc("0x63"),((t,e)=>{this[Xc("0x17")](e,Xc("0x2f"),((t,n,o,r)=>{e.isInContent&&(null==o?(this[Xc("0x11")](r[Xc("0x4f")]),this[Xc("0x3e")](e,!1)):(this[Xc("0x11")](o.head),null==r&&this[Xc("0x3e")](e,!0)))})),null!==e[Xc("0x47")]?this[Xc("0x11")](e[Xc("0x4f")]):this[Xc("0x3e")](e,!1)})),this[Xc("0x17")](e,Xc("0x43"),((t,e,n)=>{this[Xc("0x36")](e,Xc("0x2f")),this[Xc("0x62")][Xc("0x6")](e),this[Xc("0x55")][Xc("0x2a")](e)&&this[Xc("0x20")](e),n&&this[Xc("0x11")](n.head)})),this[Xc("0x17")](e,"suggestionChanged",((t,e)=>{this._updateController(e)})),this.listenTo(n,"change:activeAnnotations",(()=>{this[Xc("0x0")]()})),this.listenTo(r,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Xc("0x1")](n))return;const r=e[Xc("0x24")](n);this[Xc("0x55")][Xc("0x4b")](r).view.focus()}),{priority:Xc("0x1d")})}[Xc("0x0")](){const t=this[Xc("0x5f")][Xc("0x49")][Xc("0x4b")](Xc("0xa")),e=this[Xc("0x5f")][Xc("0x49")][Xc("0x4b")]("TrackChangesEditing"),n=Array[Xc("0x6c")](t[Xc("0x3b")],(t=>t[Xc("0x57")]))[Xc("0x1c")]((t=>this[Xc("0x38")].has(t))),o=[];for(const t of n){const e=this[Xc("0x38")][Xc("0x4b")](t).model[Xc("0x31")]();o.push(...e[Xc("0x3a")](((t,e)=>[...t,...e[Xc("0x1b")]()]),[]))}e[Xc("0x56")]=o}[Xc("0x1a")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this.editor[Xc("0x21")][Xc("0x4b")](Xc("0x64")),i=Qo(t,Xc("0x3c"));n[Xc("0x51")][Xc("0x10")]({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[Xc("0x51")][Xc("0x4")](Xc("0x3f")).to(o,Xc("0x2d")),n.buttonView.on("execute",(()=>{o[Xc("0x35")](),this[Xc("0x5f")][Xc("0x12")].view[Xc("0x3")]()}));const s=new e.Collection,x=[{type:Xc("0x27"),model:{withText:!0,label:i,commandName:Xc("0x64")}},{type:"separator"},{type:Xc("0x37"),model:{withText:!0,label:Qo(t,Xc("0x29")),commandName:Xc("0x26")}},{type:Xc("0x37"),model:{withText:!0,label:Qo(t,Xc("0x4d")),commandName:Xc("0x14")}},{type:Xc("0x37"),model:{withText:!0,label:Qo(t,Xc("0xc")),commandName:Xc("0x58")}},{type:Xc("0x37"),model:{withText:!0,label:Qo(t,Xc("0x53")),commandName:Xc("0x54")}}];for(const t of x){let e={type:Xc("0x4e")};if(t.model){const n=new r.Model(t[Xc("0x48")]),o=this[Xc("0x5f")][Xc("0x21")][Xc("0x4b")](n[Xc("0x4a")]);n[Xc("0x4")](Xc("0x3f"),"isEnabled").to(o,Xc("0x2d"),Xc("0x69")),e={type:t.type,model:n}}s.add(e)}(0,r.addListToDropdown)(n,s);const a=x.filter((t=>null!=t.model)).map((t=>this[Xc("0x5f")][Xc("0x21")][Xc("0x4b")](t.model[Xc("0x4a")]))),c=n.buttonView;return c[Xc("0x5a")][Xc("0x22")](Xc("0x69")),c.arrowView.unbind("isEnabled"),c[Xc("0x5a")].bind("isEnabled").to(o,Xc("0x69")),c[Xc("0x32")].bind("isEnabled")[Xc("0x1f")](a,Xc("0x69"),((...t)=>t[Xc("0xf")]((t=>t)))),n.on("execute",(t=>{this[Xc("0x5f")].execute(t.source.commandName),this.editor[Xc("0x12")][Xc("0x65")][Xc("0x3")]()})),n}[Xc("0x6a")](t){const e=this[Xc("0x5f")],n=e[Xc("0x30")],o=e.plugins[Xc("0x4b")]("Annotations"),r=e.plugins.get(Xc("0x68")),s=e[Xc("0x49")][Xc("0x4b")](Xc("0x9")),x=e[Xc("0x49")][Xc("0x4b")](i.Users).me,a=n.get(Xc("0x64"))[Xc("0x23")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Xc("0x4b")](Xc("0x46"));let u,d;this[Xc("0x44")].has(t.id)?(d=this[Xc("0x44")][Xc("0x4b")](t.id),u=d[Xc("0x2")]):(u=new a(e.locale,t,x,{disableComments:this[Xc("0x2e")],editorConfig:n[Xc("0x4b")](Xc("0x60")),maxCommentsWhenCollapsed:n[Xc("0x4b")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Xc("0x4b")](Xc("0x5e")),maxCommentCharsWhenCollapsed:n[Xc("0x4b")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,i.getDateTimeFormatter)(n[Xc("0x4b")](Xc("0x59"))),CommentView:n[Xc("0x4b")]("comments")[Xc("0x2c")],CommentsListView:c,CommentThreadInputView:l}),u[Xc("0x52")].on(Xc("0x35"),(()=>{e.editing[Xc("0x65")][Xc("0x3")]()})),u[Xc("0xd")].on(Xc("0x35"),(()=>{e[Xc("0x12")][Xc("0x65")][Xc("0x3")]()})),d=o[Xc("0x50")](this[Xc("0x5f")].locale,u),d[Xc("0x4")](Xc("0x28")).to(u,Xc("0x28")),d.bind("length").to(u),d[Xc("0x4")](Xc("0x40")).to(u,Xc("0x40"),(t=>Xc("0x67")+t)),this._annotationViews[Xc("0x10")](t.id,d));const g=r[Xc("0x8")](t.commentThread,u),f=new Mc(e,t,u,g),m=t[Xc("0x31")]()[Xc("0x1c")]((t=>t[Xc("0x45")]));u[Xc("0xe")]=e[Xc("0x49")].get("TrackChangesEditing")[Xc("0x5b")][Xc("0x66")](m),this[Xc("0x55")][Xc("0x10")](t,f),this[Xc("0x38")].set(u,f);const h=o[Xc("0x5")]({view:d,target:()=>{const n=[],o=t[Xc("0x31")]()[Xc("0x1c")]((t=>t[Xc("0x45")]));for(const t of o)n[Xc("0x34")](...t.getMarkers());return(0,i.getAllMarkersDomElementsSorted)(e[Xc("0x12")],n)},type:()=>Xc("0x67")+f.view[Xc("0x40")]});r._bindAnnotationToEditors(u,h),o.add(h),s[Xc("0x19")](h)}[Xc("0x20")](t){const e=this[Xc("0x5f")][Xc("0x49")].get(Xc("0x68")),n=this[Xc("0x5f")][Xc("0x49")][Xc("0x4b")]("Annotations"),o=this[Xc("0x55")][Xc("0x4b")](t),r=o[Xc("0x65")],i=n[Xc("0x42")](r);e[Xc("0x5c")](r),i&&n[Xc("0x18")](i),this[Xc("0x55")][Xc("0x6")](t),this[Xc("0x38")][Xc("0x6")](r),o[Xc("0x61")]()}[Xc("0x11")](t){if(!t.isInContent||!this[Xc("0x55")][Xc("0x2a")](t))return;const e=this[Xc("0x5f")][Xc("0x49")][Xc("0x4b")](Xc("0x7")),n=this._suggestionToController.get(t),o=t[Xc("0x31")]();n[Xc("0x65")].descriptionParts=e[Xc("0x5b")].getDescriptions(o)}[Xc("0x61")](){for(const t of this[Xc("0x55")][Xc("0x41")]())this[Xc("0x20")](t);for(const t of this[Xc("0x44")][Xc("0x16")]())t[Xc("0x2")][Xc("0x61")]();super[Xc("0x61")]()}}var Zc,Yc,Jc=["Comments","requires","editor","adapter","get","pluginName","addSuggestionData","TrackChanges","plugins","getSuggestion","addSuggestion","getSuggestions"];Zc=Jc,Yc=134,function(t){for(;--t;)Zc.push(Zc.shift())}(++Yc);var Qc=function(t,e){return Jc[t-=0]};class tl extends t.Plugin{static get[Qc("0xb")](){return[hc,$c,Qc("0xa")]}static get[Qc("0x3")](){return Qc("0x5")}set[Qc("0x1")](t){this[Qc("0x0")].plugins.get(hc)[Qc("0x1")]=t}get[Qc("0x1")](){return this[Qc("0x0")][Qc("0x6")][Qc("0x2")](hc)[Qc("0x1")]}[Qc("0x8")](t){return this.editor[Qc("0x6")][Qc("0x2")](hc)[Qc("0x4")](t)}[Qc("0x9")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Qc("0x0")][Qc("0x6")].get(hc)[Qc("0x9")]({skipNotAttached:t,toJSON:e})}[Qc("0x7")](t){return this.editor.plugins[Qc("0x2")](hc)[Qc("0x7")](t)}}const el=["useAnonymousUser","createElement","getDataWithDiscardedSuggestions","trackChangesData.editorCreator","rootsAttributes","discardAllSuggestions","model","CommentsRepository","config","getDataWithAcceptedSuggestions","TrackChangesEditing","map","result","TrackChangesData","Pagination","users","name","get","addSuggestionData","editor","execute","TrackChangesDataGetter","pluginName","getRootNames","create","function","getRootsAttributes","data","constructor","document","requires","define","track-changes-data-invalid-editor-creator","Users","editorCreator","trackChangesData","reduce","getSuggestions","plugins","acceptAllSuggestions","_adapter"];var nl,ol;nl=el,ol=301,function(t){for(;--t;)nl.push(nl.shift())}(++ol);const rl=function(t,e){return el[t-=0]},il=[rl("0x0")];class sl extends t.Plugin{static get[rl("0x10")](){return[hc]}static get[rl("0x8")](){return rl("0x28")}init(){const t=this.editor;if(t[rl("0x23")][rl("0x11")](rl("0x1e"),(e=>{const n=t[rl("0x21")][rl("0xf")][rl("0x9")]()[rl("0x16")](((t,e)=>(t[e]="",t)),{});return t[rl("0xe")][rl("0xa")](n,e)})),rl("0xb")!=typeof t[rl("0x23")][rl("0x3")]("trackChangesData")[rl("0x14")])throw new e.CKEditorError(rl("0x12"))}[rl("0x24")](t){return cl(this[rl("0x5")],!0,t)}[rl("0x1d")](t){return cl(this.editor,!1,t)}}class xl extends t.Plugin{static get pluginName(){return rl("0x7")}constructor(t){super(t),this[rl("0x27")]="end"}init(){this[rl("0x5")][rl("0x18")].get(rl("0x22"))._adapter={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[rl("0x5")][rl("0x18")].get("TrackChangesEditing")[rl("0x1a")]=null}}function al(t){return void 0!==t[rl("0xc")]}async function cl(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,il);o[rl("0x18")].push(hc,xl),o[rl("0x1f")]=al(t)?t[rl("0xc")]():void 0;const r=document.createDocumentFragment(),s=t[rl("0x23")][rl("0x3")](rl("0x15"))[rl("0x14")],x=await s(o,(()=>function(t){const e=document[rl("0x1c")]("div");return t.appendChild(e),e}(r)));!function(t,e){const n=t.model[rl("0xf")][rl("0x9")]()[rl("0x16")](((e,n)=>(e[n]=t[rl("0xd")][rl("0x3")]({rootName:n}),e)),{}),o=t.plugins.get(rl("0x13"))[rl("0x1")][rl("0x26")]((t=>({id:t.id,name:t[rl("0x2")]}))),r=t[rl("0x18")][rl("0x3")](rl("0x25"))[rl("0x17")]({skipNotAttached:!0,toJSON:!0}),i=e[rl("0x18")][rl("0x3")](rl("0x13")),s=e.plugins[rl("0x3")](rl("0x25"));for(const t of o)i.getUser(t.id)||i.addUser(t);i.me||i[rl("0x1b")]();for(const t of r)s[rl("0x4")](t);e[rl("0xd")].set(n)}(t,x),x[rl("0x6")](rl(e?"0x19":"0x20"));const a=al(x)?x.getFullData(n):x[rl("0xd")][rl("0x3")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var 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:()=>Bc,TrackChanges:()=>tl,TrackChangesData:()=>sl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),r=n(273),i=n(417),s=n(492),x=n(995);const a=["execute","has","forceDisabled","_isEnabledBasedOnSelection","_enableCommands","commands","TrackChangesCommand","value","clearForceDisabled","refresh","affectsData","editor","_disableUnsupportedCommands","_enabledCommands"];var c,l;c=a,l=187,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._enabledCommands=e,this[u("0x2")]=!1,this[u("0x4")](),this[u("0xc")]=!1}[u("0x4")](){this.isEnabled=!0}[u("0x9")](){this.value=!this.value,this[u("0x2")]?this[u("0x7")]():this._enableCommands()}_disableUnsupportedCommands(){for(const t of this[u("0x6")][u("0x0")][u("0x0")]())t[u("0x5")]&&!this._enabledCommands[u("0xa")](t)&&t[u("0xb")]("TrackChangesCommand")}[u("0xd")](){for(const t of this.editor[u("0x0")][u("0x0")]())t[u("0x5")]&&!this[u("0x8")][u("0xa")](t)&&t[u("0x3")](u("0x1"))}}const g=["get","acceptSuggestion","model","getRanges","refresh","editor","plugins","TrackChangesEditing","execute","_isEnabledBasedOnSelection","track-changes-accept-suggestion-not-found"];var f,m;f=g,m=270,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.refresh(),this[h("0x3")]=!1}[h("0x9")](){this.isEnabled=!0}[h("0x2")](t){const n=this._suggestions[h("0x5")](t);if(!n)throw new e.CKEditorError(h("0x4"),this);const o=n[h("0x8")]();this.editor[h("0x7")].canEditAt(o)&&this[h("0xa")][h("0x0")][h("0x5")](h("0x1"))[h("0x6")](n)}}const b=["canEditAt","_suggestions","getRanges","editor","isEnabled","get","_isEnabledBasedOnSelection","refresh","TrackChangesEditing","discardSuggestion","execute","track-changes-discard-suggestion-not-found"];var E,_;E=b,_=174,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._suggestions=e,this.refresh(),this[T("0x0")]=!1}[T("0x1")](){this[T("0xa")]=!0}[T("0x4")](t){const n=this[T("0x7")][T("0xb")](t);if(!n)throw new e.CKEditorError(T("0x5"),this);const o=n[T("0x8")]();this.editor.model[T("0x6")](o)&&this[T("0x9")].plugins[T("0xb")](T("0x2"))[T("0x3")](n)}}const C=["isMultiRange","isArray","createPositionBefore","change","content","join","map","splice","length","replace","add","type","isInContent","createPositionAfter","isTouching","isIntersecting","from","end","createRange","sort","schema","deletion"," [color ","getRanges","execute","start","value","isCollapsed","color","createPositionAt"];var A,k;A=C,k=116,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function S(t){return t[I("0x17")](((t,e)=>I("0x19")==t[I("0xf")]&&I("0x19")!=e[I("0xf")]?-1:I("0x19")!=t[I("0xf")]&&I("0x19")==e.type?1:0))}function R(t,e){let n,o=0;const r=[],i=e[I("0x18")];for(;o<t[I("0xc")];){const s=t[o],x=t[o+1];n||(n=e.createPositionBefore(s)),v(e,s,x)||(r.push(e[I("0x16")](n,i.isObject(s)?e[I("0x11")](s):e[I("0x3")](s,I("0x15")))),n=null),o++}return r}function v(t,e,n){if(!n)return!1;const o=t[I("0x11")](e),r=t[I("0x6")](n);return o[I("0x12")](r)}function N(t,e,n){for(;n.length;){const o=n[I("0xb")](0,100);t[I("0x7")]((()=>{for(const t of o)t.isInContent&&e[I("0x1c")](t.id)}))}}const L=["refresh","editor","_isEnabledBasedOnSelection","from","_suggestions","isInContent","some","getRanges","execute","model","_command"];var M,w;M=L,w=130,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("0x1")]=e,this[O("0x6")]=n,this.refresh(),this[O("0x4")]=!1}[O("0x2")](){const t=Array.from(this[O("0x6")].values())[O("0x8")]((t=>t[O("0x7")]));this.isEnabled=this[O("0x1")].isEnabled&&t}[O("0xa")](){const t=S(Array[O("0x5")](this[O("0x6")].values()));for(const e of t){const t=e[O("0x9")]();if(!this[O("0x3")].model.canEditAt(t))return}N(this[O("0x3")][O("0x0")],this[O("0x1")],t)}}const D=["_command","size","execute","editor","values","canEditAt","getRanges","model","isEnabled","_selectedSuggestions","_isEnabledBasedOnSelection","selection"];var B,P;B=D,P=313,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("0xb")]=e,this._suggestions=n,this[U("0x8")]=new Set,this.refresh(),this[U("0x9")]=!1}refresh(){const t=this[U("0x2")][U("0x6")].document[U("0xa")],e=Array.from(this._suggestions[U("0x3")]());this[U("0x8")]=function(t,e){const n=Array[I("0x14")](t[I("0x1b")]()),o=new Set;for(const r of e)if(r[I("0x10")])for(const e of n)for(const n of r.getRanges())(e[I("0x13")](n)||t[I("0x1")]&&!r[I("0x4")]&&r.next&&n.end[I("0x12")](e[I("0x1d")]))&&o[I("0xe")](r);return o}(t,e),this[U("0x7")]=this[U("0xb")].isEnabled&&!!this[U("0x8")][U("0x0")]}[U("0x1")](){const t=S(Array.from(this[U("0x8")]));for(const e of t){const t=e[U("0x5")]();if(!this[U("0x2")][U("0x6")][U("0x4")](t))return}N(this[U("0x2")][U("0x6")],this[U("0xb")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=H(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const 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,St=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Rt=function(t){return!(!ft(t)||Et(t))&&(mt(t)?St:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return Rt(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const 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,Se=Ie&&Ie.exports===ke&&et.process;const Re=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Se&&Se.binding&&Se.binding("util")}catch(t){}}();var ve=Re&&Re.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),r=!n&&!o&&be(t),i=!n&&!o&&!r&&Ne(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,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,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=Nt(ot,"DataView");const fn=Nt(ot,"Promise");const mn=Nt(ot,"Set");const hn=Nt(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),Sn=gt;(gn&&Sn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Sn(new Lt)!=pn||fn&&Sn(fn.resolve())!=bn||mn&&Sn(new mn)!=En||hn&&Sn(new hn)!=_n)&&(Sn=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 Rn=Sn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=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]"==Rn(t)};var Wn=Re&&Re.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Rn(t)};var Xn=Re&&Re.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,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=Nn(e),!a)return Je(e,x)}else{var d=Rn(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),$n(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 So=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 Ro=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=rt?rt.prototype:void 0,Lo=No?No.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=Ro;case"[object Set]":var a=1&o;if(x||(x=vo),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=So(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:Rn(t),c=x?Do:Rn(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||Ne(t)?So(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)},Xo=["removeMarker","map","subType","accept","getMultiRangeId","previous","isExternal","decorate","split","_onAccept","substr","_onDiscard","add","delete","_isDataLoaded","isMultiRange","getRanges","data","type","getFirstRange","size","onDiscard","_onAttributesChange","nodeBefore","start","_model","filter","end","addRange","author","commentThread","next","addMarkerName","getFirstMarker","attributes","getAllAdjacentSuggestions","isIntersecting","isIntersectingWithRange","push","from","reduce","onAccept","getRange","length","hasComments","nodeAfter","suggestion:","createdAt","head","getItems","discard","getContainedElement","_markerNames","_saved","creator","set","removeMarkers","getMarkers","change","onAttributesChange","@external"];var $o,Zo;$o=Xo,Zo=325,function(t){for(;--t;)$o.push($o.shift())}(++Zo);const Yo=function(t,e){return Xo[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Yo("0x37")]=!1,this.id=e.id,this[Yo("0x3b")]=e.type,this[Yo("0x2b")]=e[Yo("0x2b")]||null,this.author=e[Yo("0x9")],this[Yo("0x22")]=e.creator||e.author,this[Yo("0x2f")]=Boolean(e[Yo("0xe")]&&e[Yo("0xe")][Yo("0x28")]),this[Yo("0x3a")]=null,this._model=t,this[Yo("0x32")]=e[Yo("0x15")],this[Yo("0x34")]=e[Yo("0x1")],this[Yo("0x2")]=e[Yo("0x27")],this._markerNames=new Set,this[Yo("0x1b")]=null,this[Yo("0x23")]("authoredAt",null),this[Yo("0x23")]("attributes",e[Yo("0xe")]||{}),this[Yo("0x23")](Yo("0x2e"),null),this[Yo("0x23")](Yo("0xb"),null),this[Yo("0x23")](Yo("0xa"),null),this.set(Yo("0x21"),!1),this[Yo("0x30")](Yo("0x2c")),this[Yo("0x30")](Yo("0x1e"))}get[Yo("0x1c")](){let t=this;for(;t[Yo("0x2e")];)t=t[Yo("0x2e")];return t}get[Yo("0x18")](){return!!this.commentThread&&this.commentThread[Yo("0x17")]>0}get[Yo("0x38")](){return 0!=this._markerNames[Yo("0x0")]&&6==Array[Yo("0x13")](this[Yo("0x20")])[0][Yo("0x31")](":")[Yo("0x17")]}get isInContent(){return null!==this.getFirstMarker()}addMarkerName(t){this[Yo("0x20")][Yo("0x35")](t)}getMarkerNames(){return Array[Yo("0x13")](this[Yo("0x20")])}getMarkers(){return this.getMarkerNames()[Yo("0x2a")]((t=>this[Yo("0x5")].markers.get(t)))[Yo("0x6")]((t=>t))}[Yo("0xd")](){return this.getMarkers()[0]||null}removeMarkers(){this[Yo("0x5")].change((t=>{for(const e of this[Yo("0x25")]())t.removeMarker(e)})),this[Yo("0x20")].clear()}[Yo("0x29")](t){this[Yo("0x5")][Yo("0x26")]((e=>{e[Yo("0x29")](t)})),this[Yo("0x20")][Yo("0x36")](t)}[Yo("0x8")](t){const e=Yo("0x1a")+this[Yo("0x3b")]+":"+this.subType+":"+this.id+":"+this[Yo("0x22")].id+":"+Jo.getMultiRangeId();this[Yo("0xc")](e),this[Yo("0x5")][Yo("0x26")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Yo("0x11")](t){for(const e of this[Yo("0x39")]())if(e[Yo("0x10")](t))return!0;return!1}[Yo("0x39")](){return this.getMarkers()[Yo("0x2a")]((t=>t[Yo("0x16")]()))}[Yo("0x1d")](){return this.getRanges()[Yo("0x14")](((t,e)=>[...t,...e.getItems()]),[])}[Yo("0x3c")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Yo("0x16")]())||null}[Yo("0x1f")](){const t=this[Yo("0x39")]();if(1!=t[Yo("0x17")])return null;const e=t[0],n=e[Yo("0x4")][Yo("0x19")],o=e[Yo("0x7")][Yo("0x3")];return n instanceof s.Element?n!=o?null:n:null}accept(){this[Yo("0x32")](this[Yo("0x39")](),this[Yo("0x3a")],this[Yo("0xe")]),this[Yo("0x24")]()}[Yo("0x1e")](){this._onDiscard(this[Yo("0x39")](),this[Yo("0x3a")],this.attributes),this[Yo("0x24")]()}[Yo("0xf")](){const t=[];let e=this[Yo("0x1c")];for(;e;)t[Yo("0x12")](e),e=e[Yo("0xb")];return t}setAttribute(t,e){const n=eo(this[Yo("0xe")]);_o(n,t,e),Go(n,this[Yo("0xe")])||(this.attributes=n,this[Yo("0x2")](n))}removeAttribute(t){const e=eo(this[Yo("0xe")]);qo(e,t),Go(e,this[Yo("0xe")])||(this.attributes=e,this[Yo("0x2")](this[Yo("0xe")]))}toJSON(){return{id:this.id,type:this[Yo("0x2b")]?this[Yo("0x3b")]+":"+this.subType:this[Yo("0x3b")],authorId:this.creator.id,createdAt:this[Yo("0x1b")],hasComments:this[Yo("0x18")],data:this[Yo("0x3a")],attributes:this.attributes}}static[Yo("0x2d")](){return(0,e.uid)()[Yo("0x33")](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=["_handleCustomCallbackDescription","label","$textProxy","match","registerAttributeLabel","removeFormat","replace","deletion","*Merge:* %0","*Remove format:* %0","_addDescriptionItems","data","isEmpty","nextSibling","registerElementLabel","*Insert:* %0","previousSibling","_schema","Container","addContainer","newValue","get","*Split:* %0","element","_handleInsertRemoveSuggestionDescription","_handleAttributeSuggestionDescription","$1 $2","_handleRenameSuggestionDescription","getWalker","subType","join","add","set","softBreak","_itemLabelsCallbacks","removeEmptyContainer","attribute","addFormat","remove","EmptyContainer","end","start","push","*Change to:* %0","*Remove:* %0","_locale","insertion","key","isObject","removeContainer","name","getDescriptions","isEqual","elementEnd","_attributeLabels","indexOf","isInContent","text","$text","has","map","_itemLabels","removeObject","getItemLabel","_resolveDescriptionItems","addEmptyContainer","length","ELEMENT_SPACE","quantity","normal","type","elementStart","format","Object","_customCallbacks","getFirstRange","function","pop"];var er,nr;er=tr,nr=495,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("0x2f")]=[],this[or("0x22")]=new Map,this[or("0x7")]=[],this[or("0x1b")]=new Map,this[or("0x44")]=t,this._locale=e}[or("0x18")](t){const e=[],n=new Set,o=new Set;for(let r=0;r<t.length;r++){const i=t[r];if(!i[or("0x1d")])continue;const s=this[or("0x33")](i);if(s){if(null!=i[or("0x2")]){if(n[or("0x20")](i[or("0x2")]))continue;n.add(i[or("0x2")])}e.push(s)}else if(or("0x9")!=i[or("0x2b")])or("0x13")!=i[or("0x2b")]&&or("0x3a")!=i.type||this._handleInsertRemoveSuggestionDescription(e,i,t[r+1]);else{const t=i[or("0x3e")][or("0x14")];if(o[or("0x20")](t))continue;o.add(i[or("0x3e")].key),t==mc?this[or("0x0")](e,i):this._handleAttributeSuggestionDescription(e,i)}}return this[or("0x25")](e)}registerDescriptionCallback(t){this[or("0x2f")][or("0xf")](t)}[or("0x41")](t,n,o=e.priorities[or("0x2a")]){or("0x31")==typeof t?(0,e.insertToPriorityArray)(this[or("0x7")],{matchingCallback:t,label:n,priority:o}):this[or("0x22")][or("0x5")](t,n)}[or("0x37")](t,e){this._attributeLabels[or("0x5")](t,e)}[or("0x24")](t,e=1){let n;for(const e of this[or("0x7")])if(e.matchingCallback(t)){n=e[or("0x34")];break}return n||(n=this[or("0x22")][or("0x48")](t.name)),n?n(e):1!==e?e+" "+t[or("0x17")]+"s":""+t[or("0x17")]}[or("0x3d")](t,e){const n=e[or("0x30")]()[or("0x1")](),o="insertion"==e.type?or("0x4"):or("0xb");for(const e of n){const r=e.item,i=t[t[or("0x27")]-1];if(r.is(or("0x35")))i&&i[or("0x2b")][or("0x1c")]("Container")>-1&&t[or("0x32")](),i&&or("0x1e")==i[or("0x2b")]?i[o]+=r[or("0x3e")]:t.push({type:or("0x1e"),add:or("0x4")==o?r[or("0x3e")]:"",remove:or("0xb")==o?r[or("0x3e")]:""});else if(this[or("0x44")][or("0x15")](r)){const s=r;if(i&&i[or("0x2b")][or("0x1c")]("Container")>-1&&t.pop(),or("0x1a")==e[or("0x2b")])continue;i&&i[or("0x2b")]==o+or("0x2e")&&i[or("0x4a")][or("0x17")]==s[or("0x17")]?i[or("0x29")]++:t.push({type:o+or("0x2e"),element:s,quantity:1}),n.skip((t=>!(or("0x1a")==t[or("0x2b")]&&t.item==r)))}else if(this[or("0x44")].checkChild(r,or("0x1f"))||r.is("element",or("0x6"))){const n=r;if("add"==o&&or("0x2c")==e[or("0x2b")]||"remove"==o&&or("0x1a")==e[or("0x2b")])continue;if(i&&-1==i[or("0x2b")].indexOf(or("0x45"))){"text"==i.type&&(i[o]+="\n");continue}let s;if(s=or("0x4")==o?n[or("0x40")]&&!this[or("0x44")][or("0x15")](n[or("0x40")])?n[or("0x40")]:null:n.previousSibling&&!this._schema.isObject(n.previousSibling)?n[or("0x43")]:null,n[or("0x3f")]||s&&s[or("0x3f")]){const e=s&&s[or("0x3f")]?s:n;i&&i.type==o+or("0xc")&&i[or("0x4a")].name==e.name?i[or("0x29")]++:t[or("0xf")]({type:o+or("0xc"),element:e,quantity:1})}else t[or("0xf")]({type:o+or("0x45"),element:n})}}}[or("0x25")](t){const e=this[or("0x12")],n=[],o=[],r=[];for(const i of t)switch(i[or("0x2b")]){case or("0x1e"):if(i[or("0x4")]=i.add.replace(/(\S)\u000A+(\S)/g,or("0x4d"))[or("0x39")](/\u000A/g,""),i[or("0xb")]=i[or("0xb")][or("0x39")](/(\S)\u000A+(\S)/g,"$1 $2")[or("0x39")](/\u000A/g,""),""!=i[or("0x4")]&&""!=i[or("0xb")]){n.push({type:or("0x39"),content:Qo(e,"REPLACE_TEXT",['"'+i[or("0xb")]+'"','"'+i[or("0x4")]+'"'])});continue}if(null!=i.add.match(/^ +$/)){n[or("0xf")]({type:"insertion",content:Qo(e,or("0x42"),Qo(e,or("0x28"),i[or("0x4")][or("0x27")]))});continue}if(null!=i.remove[or("0x36")](/^ +$/)){n[or("0xf")]({type:or("0x3a"),content:Qo(e,or("0x11"),Qo(e,or("0x28"),i[or("0xb")][or("0x27")]))});continue}if(""!=i[or("0x4")]){n[or("0xf")]({type:or("0x13"),content:Qo(e,or("0x42"),'"'+i.add+'"')});continue}n[or("0xf")]({type:or("0x3a"),content:Qo(e,"*Remove:* %0",'"'+i.remove+'"')});continue;case or("0x26"):case"addObject":n[or("0xf")]({type:"insertion",content:Qo(e,"*Insert:* %0",this[or("0x24")](i[or("0x4a")],i[or("0x29")]))});continue;case or("0x8"):case or("0x23"):n.push({type:or("0x3a"),content:Qo(e,or("0x11"),this[or("0x24")](i[or("0x4a")],i[or("0x29")]))});continue;case or("0x46"):n[or("0xf")]({type:or("0x13"),content:Qo(e,or("0x49"),this[or("0x24")](i[or("0x4a")],i[or("0x29")]))});continue;case or("0x16"):n.push({type:or("0x3a"),content:Qo(e,or("0x3b"),this.getItemLabel(i[or("0x4a")],i[or("0x29")]))});continue;case"addFormat":o[or("0xf")](i[or("0x14")]);continue;case or("0x38"):r[or("0xf")](i[or("0x14")]);continue;default:n[or("0xf")](i)}if(o[or("0x27")]){const t=o[or("0x21")]((t=>this[or("0x1b")][or("0x20")](t)?this[or("0x1b")].get(t):t))[or("0x3")](", ");n[or("0xf")]({type:or("0x2d"),content:Qo(this[or("0x12")],"*Set format:* %0",t)})}if(r[or("0x27")]){const t=r[or("0x21")]((t=>this[or("0x1b")].has(t)?this[or("0x1b")].get(t):t))[or("0x3")](", ");n[or("0xf")]({type:"format",content:Qo(this[or("0x12")],or("0x3c"),t)})}return n}_handleCustomCallbackDescription(t){for(const e of this[or("0x2f")]){const n=e(t);if(n&&or("0x2b")in n)return n}}[or("0x4c")](t,e){const n=e[or("0x3e")],o=void 0===n[or("0x47")]?"removeFormat":or("0xa");t[or("0xf")]({type:o,key:n.key})}_handleRenameSuggestionDescription(t,e){t.push({type:or("0x2d"),content:Qo(this._locale,or("0x10"),this[or("0x24")](e[or("0x30")]()[or("0xe")].nodeAfter,1))})}[or("0x4b")](t,e,n){if(this[or("0x3d")](t,e),n&&n.getFirstRange()&&!e[or("0x30")]()[or("0xd")][or("0x19")](n[or("0x30")]().start)){const n=t[t[or("0x27")]-1],o=or("0x13")==e[or("0x2b")]?or("0x4"):or("0xb");n&&"text"==n[or("0x2b")]&&(n[o]+="\n")}}}const ir=["afterInit","get","TrackChangesEditing","enableCommand","commands","showAIAssistant","plugins"];var sr,xr;sr=ir,xr=335,function(t){for(;--t;)sr.push(sr.shift())}(++xr);const ar=function(t,e){return ir[t-=0]};class cr extends t.Plugin{[ar("0x1")](){const t=this.editor,e=t[ar("0x0")][ar("0x2")](ar("0x3"));t[ar("0x5")][ar("0x2")]("showAIAssistant")&&e[ar("0x4")](ar("0x6"))}}const lr=["alignment","TrackChangesEditing","right","formatBlock","FORMAT_ALIGN_TO_CENTER","*Format:* %0","registerDescriptionCallback","plugins","afterInit","registerAttributeLabel","get","locale","left","FORMAT_JUSTIFY_TEXT","value","justify","center","commandName","_descriptionFactory","editor","_registerLegacyDescription"];var ur,dr;ur=lr,dr=492,function(t){for(;--t;)ur.push(ur.shift())}(++dr);const gr=function(t,e){return lr[t-=0]};class fr extends t.Plugin{[gr("0x14")](){const t=this[gr("0xa")],e=t[gr("0x2")];if(!t[gr("0x13")].has("AlignmentEditing"))return;const n=t.plugins[gr("0x1")](gr("0xd"));n._enableDefaultAttributesIntegration("alignment",[],[gr("0xc")]),n[gr("0x9")][gr("0x0")]("alignment",Qo(e,"FORMAT_ALIGNMENT")),this[gr("0xb")]()}[gr("0xb")](){const t=this.editor,e=t[gr("0x2")];t[gr("0x13")][gr("0x1")](gr("0xd"))[gr("0x9")][gr("0x12")]((t=>{if(gr("0xf")!=t.type)return;const{data:n}=t;if(n&&gr("0xc")==n[gr("0x8")]){const t=n.commandParams[0][gr("0x5")];return{type:"format",content:Qo(e,gr("0x11"),function(t){switch(t){case gr("0x3"):return Qo(e,"FORMAT_ALIGN_TO_LEFT");case gr("0xe"):return Qo(e,"FORMAT_ALIGN_TO_RIGHT");case gr("0x7"):return Qo(e,gr("0x10"));case gr("0x6"):return Qo(e,gr("0x4"))}}(t))}}}))}}const mr=["get","registerDescriptionCallback","toUpperCase","*Remove format:* %0","plugins","subscript","commandParams","SuperscriptEditing","FORMAT_SUBSCRIPT","CodeEditing","_enableDefaultAttributesIntegration","editor","FORMAT_","TrackChangesEditing","type","*Format:* %0","underline","bold","FORMAT_SUPERSCRIPT","FORMAT_BOLD","italic","_registerLegacyDescription","FORMAT_UNDERLINE","FORMAT_STRIKETHROUGH","format","registerAttributeLabel","commandName","forceValue","locale","BoldEditing","ItalicEditing","StrikethroughEditing","FORMAT_ITALIC","slice","_descriptionFactory","superscript"];var hr,pr;hr=mr,pr=496,function(t){for(;--t;)hr.push(hr.shift())}(++pr);const br=function(t,e){return mr[t-=0]},Er=[br("0x1"),br("0x2"),"UnderlineEditing",br("0x11"),br("0x3"),"SubscriptEditing",br("0xf")];class _r extends t.Plugin{afterInit(){const t=this[br("0x13")],e=t[br("0xc")][br("0x8")](br("0x15")),n=t[br("0x0")];for(const o of Er){if(!t[br("0xc")].has(o))continue;const r=o[br("0x5")](0,-7).toLowerCase(),i=br("0x14")+r[br("0xa")]();e[br("0x12")](r,[r]),e[br("0x6")][br("0x21")](r,Qo(n,i))}this[br("0x1d")]()}[br("0x1d")](){const t=this[br("0x13")],e=t[br("0x0")],n=t[br("0xc")][br("0x8")](br("0x15"));function o(t,o){n[br("0x6")][br("0x9")]((n=>{if("formatInline"!=n[br("0x16")])return;const{data:r}=n;return r&&r[br("0x22")]===t?r[br("0xe")][0][br("0x23")]?{type:"format",content:Qo(e,br("0x17"),o)}:{type:br("0x20"),content:Qo(e,br("0xb"),o)}:void 0}))}o(br("0x19"),Qo(e,br("0x1b"))),o(br("0x1c"),Qo(e,br("0x4"))),o(br("0x18"),Qo(e,br("0x1e"))),o("code",Qo(e,"FORMAT_CODE")),o("strikethrough",Qo(e,br("0x1f"))),o(br("0xd"),Qo(e,br("0x10"))),o(br("0x7"),Qo(e,br("0x1a")))}}const Tr=["blockQuote","editor","parent","$root","*Set format:* %0","get","getSelectedBlocks","checkChild","commands","filter","plugins","change","BlockQuoteEditing","ELEMENT_BLOCK_QUOTE","commandParams","*Remove format:* %0","enableCommand","afterInit","locale","model","forceValue","selection","TrackChangesEditing","markBlockFormat","from","name","value","commandName","format"];var yr,Cr;yr=Tr,Cr=431,function(t){for(;--t;)yr.push(yr.shift())}(++Cr);const Ar=function(t,e){return Tr[t-=0]};class kr extends t.Plugin{[Ar("0x15")](){const t=this[Ar("0x5")],e=t[Ar("0x16")];if(!t[Ar("0xe")].has(Ar("0x10")))return;const n=t[Ar("0xe")][Ar("0x9")](Ar("0x1a")),o=this[Ar("0x5")][Ar("0xc")][Ar("0x9")]("blockQuote");n[Ar("0x14")](Ar("0x4"),((e,r={})=>{const i=this[Ar("0x5")][Ar("0x17")].document[Ar("0x19")],s=r&&void 0!==r[Ar("0x18")]?r[Ar("0x18")]:!o[Ar("0x1")];let x=[];if(s){const e=Array[Ar("0x1c")](i[Ar("0xa")]())[Ar("0xd")]((t=>Ir(t)||function(t,e){const n=e[Ar("0xb")](t[Ar("0x6")],Ar("0x4")),o=e[Ar("0xb")]([Ar("0x7"),Ar("0x4")],t);return n&&o}(t,this[Ar("0x5")][Ar("0x17")].schema)));x=R(e,t.model)}else{const e=Array[Ar("0x1c")](i[Ar("0xa")]())[Ar("0xd")]((t=>Ir(t)));x=R(e,t[Ar("0x17")])}t[Ar("0x17")][Ar("0xf")]((()=>{for(const t of x)n[Ar("0x1b")](t,{commandName:Ar("0x4"),commandParams:[{forceValue:s}]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Ar("0x4")==n[Ar("0x2")]){const t=Qo(e,Ar("0x11"));return n[Ar("0x12")][0].forceValue?{type:Ar("0x3"),content:Qo(e,Ar("0x8"),t)}:{type:Ar("0x3"),content:Qo(e,Ar("0x13"),t)}}}))}}function Ir(t){return"blockQuote"==t[Ar("0x6")][Ar("0x0")]}const Sr=["get","ckbox","editor"];var Rr,vr;Rr=Sr,vr=384,function(t){for(;--t;)Rr.push(Rr.shift())}(++vr);const Nr=function(t,e){return Sr[t-=0]};class Lr extends t.Plugin{afterInit(){const t=this[Nr("0x2")];t.commands[Nr("0x0")](Nr("0x1"))&&t.plugins.get("TrackChangesEditing").enableCommand("ckbox")}}const Mr=["document","getSelectedBlocks","indentCodeBlock","ELEMENT_CODE_BLOCK","label","rootElement","change","forceValue","filter","format","TrackChangesEditing","model","editor","locale","get","blockName","language","value","name","commandParams","codeBlock","schema","_descriptionFactory","from","markBlockFormat","formatBlock","plugins","type","parent","CodeBlock","enableCommand","find","config","commands"];var wr,Or;wr=Mr,Or=313,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{afterInit(){const t=this[Fr("0x5")];if(!t.plugins.has(Fr("0x16")))return;const e=t[Fr("0x13")][Fr("0x7")](Fr("0x3")),n=t[Fr("0x6")],o=t[Fr("0x19")].get(Fr("0xd")).languages,r=t[Fr("0x1a")][Fr("0x7")](Fr("0xd"));e[Fr("0x17")](Fr("0x1d")),e[Fr("0x17")]("outdentCodeBlock"),e[Fr("0x17")](Fr("0xd"),((n,i={})=>{const s=t[Fr("0x4")],x=t[Fr("0x4")][Fr("0x1b")].selection,a=i&&void 0!==i[Fr("0x0")]?i[Fr("0x0")]:!r[Fr("0xa")];let c;i[Fr("0x9")]||(i.language=o[0].language),c=a?Array[Fr("0x10")](x[Fr("0x1c")]())[Fr("0x1")]((t=>{return Br(t)||(e=t,n=s[Fr("0xe")],!e.is(Fr("0x20"))&&!n.isLimit(e)&&n.checkChild(e[Fr("0x15")],Fr("0xd")));var e,n})):Array[Fr("0x10")](x.getSelectedBlocks())[Fr("0x1")]((t=>Br(t)));const l=R(c,s);s[Fr("0x21")]((()=>{for(const t of l)e[Fr("0x11")](t,{commandName:"codeBlock",commandParams:[{...i,forceValue:a}],formatGroupId:Fr("0x8")})}))})),e[Fr("0xf")].registerElementLabel(Fr("0xd"),(t=>Qo(n,Fr("0x1e"),t))),e[Fr("0xf")].registerDescriptionCallback((t=>{if(Fr("0x12")!=t[Fr("0x14")])return;const e=n.t,{data:r}=t;if(!r||Fr("0xd")!=r.commandName)return;const i=r.commandParams[0][Fr("0x9")],s=e(o[Fr("0x18")]((t=>t[Fr("0x9")]===i))[Fr("0x1f")]).toLowerCase();return r[Fr("0xc")][0][Fr("0x0")]?{type:Fr("0x2"),content:Qo(n,"*Set format:* %0",Qo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Fr("0x2"),content:Qo(n,"*Remove format:* %0",Qo(n,Fr("0x1e"),1))}}))}}function Br(t){return Fr("0xd")==t[Fr("0xb")]}const Pr=["get","TrackChangesEditing","afterInit","CommentsEditing","plugins","editor","has","enableCommand"];var Ur,jr;Ur=Pr,jr=251,function(t){for(;--t;)Ur.push(Ur.shift())}(++jr);const Gr=function(t,e){return Pr[t-=0]};class Vr extends t.Plugin{[Gr("0x7")](){const t=this[Gr("0x2")];t[Gr("0x1")][Gr("0x3")](Gr("0x0"))&&t[Gr("0x1")][Gr("0x5")](Gr("0x6"))[Gr("0x4")]("addCommentThread")}}var Hr=n(181);const zr=["getAttribute","bindElementToMarker","getCustomProperty","parent","schema","hasAttribute","get","element","listIndent","push","start","previousPosition","getWalker","isBlock","elementEnd","listItem","addHighlight","addClass","isContent","type","toViewElement","mapper","consumable","ck-suggestion-marker-","createRangeOn","markerName","writer","name","markerRange","TrackChangesEditing","ck-suggestion-marker--active","includes","model"];var Wr,Kr;Wr=zr,Kr=243,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};function Xr(t,e,n){const o=[];for(const r of e.getItems())r[qr("0x1a")](t)&&o.push(n[qr("0xc")](r));return o}function $r(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[qr("0x1b")](qr("0x11"));return(r,i,s)=>{if(!s[qr("0xa")].test(i.markerRange,r[qr("0xf")]))return;const x=i[qr("0x10")][qr("0x0")](),a=i[qr("0x10")][qr("0x1f")],c=t[qr("0x14")][qr("0x19")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c[qr("0x6")](e);const n=s.mapper[qr("0x8")](e);if(n&&n[qr("0x17")](qr("0x4")))return;qr("0x2")==t[qr("0x7")]&&c[qr("0x1")](e)&&!c.isLimit(e)&&(e.nextSibling||a.isAtEnd?l&&l[qr("0x18")]==e||(l=e,f(t[qr("0x20")]),g=!0):u=u||t[qr("0x20")])}function f(t){const r=s[qr("0xe")].createUIElement("span",{class:qr("0xb")+e}),x=s[qr("0x9")].toViewPosition(t);n&&o.activeMarkers[qr("0x13")](i.markerName)&&s[qr("0xe")][qr("0x5")](qr("0x12"),r),s.writer.insert(x,r),s[qr("0x9")][qr("0x16")](r,i[qr("0xd")])}d||g||!u||f(u)}}const Zr=["removeMarker:suggestion:deletion","unlock","$graveyard","uiElement","delete","plugins","deleteForward","document","batch","end","init","get","editing","remove","selection","fromRange","downcastDispatcher","addMarker:suggestion:deletion","enableCommand","writer","editor","model","high","markerName","bind","createSelection","getFirstRange","commands","mapper","lock","markerNameToElements","buffer","unit","forward","unbindElementFromMarkerName","showSuggestionHighlights","detach","start","merge","TrackChangesEditing","requires"];var Yr,Jr;Yr=Zr,Jr=371,function(t){for(;--t;)Yr.push(Yr.shift())}(++Jr);const Qr=function(t,e){return Zr[t-=0]};class ti extends t.Plugin{static get[Qr("0x26")](){return[Hr.Delete]}[Qr("0x8")](){const t=this[Qr("0x12")],e=t[Qr("0x3")].get(Qr("0x25"));e[Qr("0x10")](Qr("0x2"));const n=t[Qr("0x19")][Qr("0x9")](Qr("0x4"));e.enableCommand("deleteForward",((e,o={})=>{const r=t[Qr("0x13")][Qr("0x17")](t.model[Qr("0x5")][Qr("0xc")]);r.isCollapsed&&t.model.modifySelection(r,{direction:Qr("0x1f"),unit:o[Qr("0x1e")]});const i=r[Qr("0x18")](),x=s.LiveRange[Qr("0xd")](i);let a;e(o),a=Qr("0x0")==x.root.rootName?t.model.createRange(i[Qr("0x23")]):t[Qr("0x13")].createRange(x[Qr("0x23")],x[Qr("0x7")]),x[Qr("0x22")](),t.model.enqueueChange(n[Qr("0x1d")][Qr("0x6")],(t=>{n.buffer[Qr("0x1b")](),t.setSelection(t.createRange(a.end)),n.buffer[Qr("0x28")]()}))})),t[Qr("0xa")][Qr("0xe")].on(Qr("0xf"),$r(t,Qr("0x24")),{priority:Qr("0x14")}),t.data[Qr("0xe")].on(Qr("0xf"),((e,n,o)=>{o.options[Qr("0x21")]&&$r(t,Qr("0x24"),{showActiveMarker:!1})[Qr("0x16")](this)(e,n,o)}),{priority:"high"}),t[Qr("0xa")][Qr("0xe")].on(Qr("0x27"),((t,e,n)=>{const o=n.mapper[Qr("0x1c")](e[Qr("0x15")]);if(o)for(const t of o)t.is(Qr("0x1"))&&(n[Qr("0x1a")][Qr("0x20")](t,e.markerName),n[Qr("0x11")][Qr("0xb")](t))}),{priority:Qr("0x14")})}}const ei=["accept","ELEMENT_BULLETED_LIST","plugins","commandParams","list.multiBlock","*Format:* insert into %0","refresh","splitListItemAfter","registerElementLabel","outdentList","start","markBlockFormat","multipleBlocks","ELEMENT_","commandName","*Format:* remove from %0","formatInline","hasAttribute","markMultiRangeBlockFormat","execute","formatBlock","expandListBlocksToCompleteList","length","createRange","isObject","type","get","getFirstRange","paragraph","forceValue","before","detach","schema","document","*Indent:* %0","slice","setSelection","DocumentListUtils","_descriptionFactory","*Merge:* %0","bulletedList","config","map","_LIST","TrackChangesEditing","containsItem","from","getAttribute","nextSibling","getRanges","findIndex","model","value","*Change to:* %0","change","listItemId","selection","numberedList","indentList","registerCustomCallback","previousSibling","ELEMENT_LIST_ITEM","createPositionAt","enableCommand","mergeListItemForward","afterInit","mergeListItemBackward","getSelectedBlocks","fromRange","add","nodeAfter","ELEMENT_NUMBERED_LIST","splitListItemBefore","listType","format","has","parent","push","commands","documentList"];var ni,oi;ni=ei,oi=308,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class ii extends t.Plugin{[ri("0x4d")](){const t=this.editor;if(!t[ri("0xe")][ri("0x7")]("DocumentListEditing"))return;const e=t.locale,n=t[ri("0xe")].get(ri("0x38")),o=t.plugins.get(ri("0x31"));function r(e){return()=>{const r=t.commands.get(e);if(r[ri("0x40")]&&!t[ri("0x35")][ri("0x26")](ri("0x10")))return void t[ri("0x1f")](ri("0x28"),{});let i=Array.from(t[ri("0x3f")].document[ri("0x44")][ri("0x4f")]());if(a(e)){i=o[ri("0x21")](i);const t=[];for(const e of i)o.isFirstBlockOfListItem(e)&&t[ri("0x9")](e);i=t}t[ri("0x3f")][ri("0x42")]((()=>{n[ri("0x1e")](i,{commandName:e,commandParams:[{forceValue:!r[ri("0x40")]}],formatGroupId:ri("0x5")},[],ri("0xb"))}))}}function i(e){return()=>{const o=function(t){let e=Array[ri("0x3a")](t);const n=e[ri("0x3e")]((t=>!t[ri("0x1d")](ri("0x43"))));return n>-1&&(e=e[ri("0x2f")](0,n)),e}(t.model.document[ri("0x44")].getSelectedBlocks()),r=o[o[ri("0x22")]-1],i=t[ri("0x3f")][ri("0x2c")][ri("0x24")](r)?"after":"end",s=t[ri("0x3f")][ri("0x23")](t[ri("0x3f")][ri("0x4a")](o[0],ri("0x2a")),t[ri("0x3f")][ri("0x4a")](r,i));t[ri("0x3f")][ri("0x42")]((()=>{n[ri("0x17")](s,{commandName:e,commandParams:[],formatGroupId:ri("0x5")},function(t){const e=new Set;for(const n of t){let t=n[ri("0x3c")];for(;t&&t.getAttribute("listIndent")>n[ri("0x3b")]("listIndent");)e[ri("0x1")](t),t=t[ri("0x3c")]}return Array[ri("0x3a")](e)}(o))}))}}function x(e){return()=>{const o=t[ri("0x3f")].document[ri("0x44")][ri("0x4f")]().next()[ri("0x40")],r=t.model[ri("0x4a")](o,"before"),i=t[ri("0x3f")][ri("0x4a")](o,0),s=t.model[ri("0x23")](r,i);t[ri("0x3f")][ri("0x42")]((()=>{n[ri("0x17")](s,{commandName:e,commandParams:[],formatGroupId:ri("0x5")})}))}}function a(e){const n=t[ri("0xa")][ri("0x26")](ri("0x34"))[ri("0x40")],o=t[ri("0xa")][ri("0x26")]("numberedList").value;return ri("0x45")===e?n:o}n.enableCommand(ri("0x45"),r("numberedList")),n[ri("0x4b")](ri("0x34"),r(ri("0x34"))),n[ri("0x4b")](ri("0x46"),i(ri("0x46"))),n.enableCommand(ri("0x15"),i("outdentList")),n.enableCommand(ri("0x13"),x(ri("0x13"))),n[ri("0x4b")](ri("0x4"),x("splitListItemBefore")),n._descriptionFactory[ri("0x14")]((function(e){const n=!t[ri("0x3f")][ri("0x2c")].isObject(e),o=e[ri("0x48")],r=e[ri("0x3c")],i=e[ri("0x3b")](ri("0x43")),s=!o||o[ri("0x3b")](ri("0x43"))!==i,x=!r||r[ri("0x3b")]("listItemId")!==i;return n&&Boolean(i)&&s&&x}),(t=>Qo(e,ri("0x49"),t))),n[ri("0x32")].registerDescriptionCallback((function(n){if(ri("0x20")!=n.type&&ri("0x1c")!=n[ri("0x25")])return;const{data:o}=n;if(!o)return;let r,i,s,x;switch(o[ri("0x1a")]){case ri("0x34"):s=o.commandParams[0][ri("0x29")],x=a(o[ri("0x1a")]),r=ri(s?"0x11":"0x1b"),!x&&t[ri("0x35")][ri("0x26")](ri("0x10"))||(r=ri("0x41")),i={type:ri("0x6"),content:Qo(e,r,Qo(e,ri("0xd")))};break;case ri("0x45"):s=o.commandParams[0][ri("0x29")],x=a(o[ri("0x1a")]),r=ri(s?"0x11":"0x1b"),!x&&t[ri("0x35")][ri("0x26")](ri("0x10"))||(r=ri("0x41")),i={type:ri("0x6"),content:Qo(e,r,Qo(e,ri("0x3")))};break;case ri("0x46"):r=ri("0x2e"),i={type:ri("0x6"),content:Qo(e,r,Qo(e,"ELEMENT_LIST_ITEM"))};break;case"outdentList":r=function(t){const e=t.getFirstRange();let n=e[ri("0x16")][ri("0x2")];for(;n&&e[ri("0x39")](n);){if(n[ri("0x3b")]("listIndent")>0)return!1;n=n[ri("0x3c")]}return!0}(n)?Qo(e,ri("0x1b"),Qo(e,function(t){const e=t[ri("0x27")]()[ri("0x16")][ri("0x2")];return ri("0x19")+e.getAttribute("listType").toUpperCase()+ri("0x37")}(n))):Qo(e,"*Outdent:* %0",Qo(e,ri("0x49"))),i={type:ri("0x6"),content:r};break;case ri("0x4e"):case ri("0x4c"):!1===o[ri("0x18")]&&(r=ri("0x33"),i={type:"deletion",content:Qo(e,r,Qo(e,"ELEMENT_LIST_ITEM"))})}return i})),n._suggestionFactory[ri("0x47")]("formatBlock",ri("0xb"),ri("0xc"),(function(e,n){const o=[];for(let n of e)n[ri("0x16")].nodeAfter===n.end[ri("0x8")]&&(n=t.model[ri("0x23")](t[ri("0x3f")][ri("0x4a")](n[ri("0x16")][ri("0x2")],0))),o[ri("0x9")](n);t.model[ri("0x42")]((e=>{const r=t.model[ri("0x2d")][ri("0x44")],i=Array.from(r[ri("0x3d")]())[ri("0x36")]((t=>s.LiveRange[ri("0x0")](t)));e[ri("0x30")](o),t[ri("0xa")][ri("0x26")](n.commandName)[ri("0x12")](),n.commandParams[ri("0x9")]({forceDefaultExecution:!0}),t.execute(n[ri("0x1a")],...n[ri("0xf")]),e[ri("0x30")](i);for(const t of i)t[ri("0x2b")]()}))}))}}const si=["DocumentListPropertiesUtils","_LIST_","ELEMENT_","registerDescriptionCallback","type","DocumentListUtils","selection","listType","handleListStyleCommand","markMultiRangeBlockFormat","getListTypeFromListStyleType","plugins","list.properties","document","get","toUpperCase","formatBlock","length","commandName","isFirstBlockOfListItem","change","_getTranslationKeyForListStyle","handleDescriptions","filter","enableCommand","listStart","_getSuggestionBlocks","numbered","model","getSelectedBlocks","replace","_getSuggestionBlocksForListStyle","config","push","DocumentListPropertiesEditing","from","reversed","has","bind","format","commandParams","listStyle","*Change to:* %0","isListItemBlock","handleListReversedCommand","expandListBlocksToCompleteList","TrackChangesEditing","*Format:* set order to regular","startIndex","handleListStartCommand","*Format:* set order to reversed","editor","listReversed"];var xi,ai;xi=si,ai=118,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{afterInit(){if(!this[ci("0x27")][ci("0x34")][ci("0x19")](ci("0x16")))return;const t=this[ci("0x27")][ci("0x14")][ci("0x2")](ci("0x0")),e=this[ci("0x27")][ci("0x34")].get(ci("0x22"));t.styles&&e[ci("0xc")](ci("0x1d"),this[ci("0x31")].bind(this)),t[ci("0x18")]&&e[ci("0xc")](ci("0x28"),this[ci("0x20")][ci("0x1a")](this)),t.startIndex&&e[ci("0xc")](ci("0xd"),this[ci("0x25")][ci("0x1a")](this)),e._descriptionFactory[ci("0x2c")](this[ci("0xa")][ci("0x1a")](this))}handleListStyleCommand(t,e={}){const n=this[ci("0x27")][ci("0x34")][ci("0x2")](ci("0x22")),o=this[ci("0x13")]();this[ci("0x27")][ci("0x10")][ci("0x8")]((()=>{n[ci("0x32")](o,{commandName:ci("0x1d"),commandParams:[{type:e.type}],formatGroupId:ci("0x1d")})}))}[ci("0x20")](t,e={}){const n=this[ci("0x27")][ci("0x34")][ci("0x2")](ci("0x22")),o=this.editor[ci("0x34")][ci("0x2")](ci("0x2e")),r=this[ci("0xe")]((t=>o.isListItemBlock(t)&&ci("0xf")===t.getAttribute(ci("0x30"))));null!==r&&this[ci("0x27")][ci("0x10")][ci("0x8")]((()=>{n[ci("0x32")](r,{commandName:"listReversed",commandParams:[{reversed:e[ci("0x18")]}],formatGroupId:ci("0x28")})}))}[ci("0x25")](t,e={}){const n=this[ci("0x27")][ci("0x34")][ci("0x2")](ci("0x22")),o=this[ci("0x27")].plugins[ci("0x2")](ci("0x2e")),r=this[ci("0xe")]((t=>o[ci("0x1f")](t)&&ci("0xf")===t.getAttribute(ci("0x30"))));null!==r&&this[ci("0x27")].model.change((()=>{n[ci("0x32")](r,{commandName:"listStart",commandParams:[{startIndex:e[ci("0x24")]}],formatGroupId:ci("0xd")})}))}[ci("0xa")](t){if(ci("0x4")!=t[ci("0x2d")]&&"formatInline"!=t.type)return;const e=this.editor.locale,{data:n}=t;if(!n)return;let o,r;switch(n[ci("0x6")]){case ci("0x1d"):o=ci("0x1e"),r={type:ci("0x1b"),content:Qo(e,o,Qo(e,this[ci("0x9")](n.commandParams[0].type)))};break;case ci("0x28"):o=n[ci("0x1c")][0][ci("0x18")]?ci("0x26"):ci("0x23"),r={type:ci("0x1b"),content:Qo(e,o)};break;case ci("0xd"):o="*Format:* set start index to %0",r={type:"format",content:Qo(e,o,n[ci("0x1c")][0][ci("0x24")])}}return r}[ci("0x13")](){const t=this.editor.plugins.get(ci("0x2e"));let e=Array.from(this[ci("0x27")][ci("0x10")][ci("0x1")][ci("0x2f")][ci("0x11")]());return e[ci("0x15")](...t[ci("0x21")](e)),e=[...new Set(e)],e}[ci("0xe")](t){const e=this[ci("0x27")][ci("0x34")].get(ci("0x2e"));let n=Array[ci("0x17")](this[ci("0x27")][ci("0x10")][ci("0x1")][ci("0x2f")][ci("0x11")]())[ci("0xb")](t);if(!n[ci("0x5")])return null;n=e[ci("0x21")](n);const o=[];for(const t of n)e[ci("0x7")](t)&&o.push(t);return o}[ci("0x9")](t){return ci("0x2b")+this[ci("0x27")][ci("0x34")][ci("0x2")](ci("0x29"))[ci("0x33")](t)[ci("0x3")]()+ci("0x2a")+t[ci("0x3")]()[ci("0x12")](/-/g,"_")}}var ui=n(331);const di=["selection","setSelection","split","parent","end","hasClass","markerNameToElements","remove","high","model","document","removeMarker:suggestion:insertion","downcastDispatcher","plugins","get","markerName","detach","fire","options","createRange","TrackChangesEditing","editing","getFirstPosition","showSuggestionHighlights","ck-suggestion-marker-split","addMarker:suggestion:insertion","fromRange","createPositionAt","markInsertion","enterBlock","writer","bind"];var gi,fi;gi=di,fi=418,function(t){for(;--t;)gi.push(gi.shift())}(++fi);const mi=function(t,e){return di[t-=0]};class hi extends t.Plugin{static get requires(){return[ui.Enter]}init(){const t=this.editor,e=t[mi("0xb")].get(mi("0x12")),n=t.commands[mi("0xc")]("enter");e.enableCommand("enter",(()=>{t[mi("0x7")].change((o=>{const r=t[mi("0x7")][mi("0x8")][mi("0x1e")],i=r[mi("0x14")](),x=s.LiveRange[mi("0x18")](r.getFirstRange());if(n[mi("0x1b")](o)){const n=t[mi("0x7")][mi("0x19")](i[mi("0x1")].nextSibling,0),r=o[mi("0x11")](i,n);e[mi("0x1a")](r)}else o[mi("0x1f")](o[mi("0x11")](x[mi("0x2")]));x[mi("0xe")](),n[mi("0xf")]("afterExecute",{writer:o})}))})),t[mi("0x13")][mi("0xa")].on(mi("0x17"),$r(t,"split"),{priority:"high"}),t.editing[mi("0xa")].on(mi("0x9"),((t,e,n)=>{const o=n.mapper[mi("0x4")](e[mi("0xd")]);if(o)for(const t of o)t[mi("0x3")](mi("0x16"))&&(n.mapper.unbindElementFromMarkerName(t,e[mi("0xd")]),n[mi("0x1c")][mi("0x5")](t))}),{priority:mi("0x6")}),t.data[mi("0xa")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[mi("0x10")][mi("0x15")]&&$r(t,mi("0x0"),{showActiveMarker:!1})[mi("0x1d")](this)(e,n,o)}),{priority:mi("0x6")})}}const pi=["getIntersection","model","createPositionAt","createRange","_isInDeletionRange","enableCommand","start","FindAndReplaceUtils","find","replace","editor","bind","markers","afterInit","findNext","handleFindCommand","get","plugins","end","replaceAll","findPrevious","item","findByTextCallback","suggestion:deletion"];var bi,Ei;bi=pi,Ei=424,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);const _i=function(t,e){return pi[t-=0]};class Ti extends t.Plugin{[_i("0x15")](){if(!this.editor[_i("0x1")].has("FindAndReplaceEditing"))return;const t=this.editor[_i("0x1")][_i("0x0")]("TrackChangesEditing");t[_i("0xd")](_i("0x10"),this.handleFindCommand[_i("0x13")](this)),t[_i("0xd")](_i("0x16")),t[_i("0xd")](_i("0x4")),t[_i("0xd")](_i("0x11")),t[_i("0xd")](_i("0x3"))}[_i("0x17")](t,e,n={}){const o=this[_i("0x12")][_i("0x1")][_i("0x0")](_i("0xf"));if(void 0!==n)return t((t=>("string"==typeof e?o[_i("0x6")](e,n):e)(t).filter((e=>!1===this[_i("0xc")](e,t[_i("0x5")])))),n)}[_i("0xc")](t,e){const n=this[_i("0x12")][_i("0x9")][_i("0xb")](this[_i("0x12")][_i("0x9")][_i("0xa")](e,t[_i("0xe")]),this[_i("0x12")][_i("0x9")][_i("0xa")](e,t[_i("0x2")]));for(const t of this[_i("0x12")].model[_i("0x14")].getMarkersGroup(_i("0x7")))if(null!==n[_i("0x8")](t.getRange()))return!0;return!1}}const yi=["*Reset font size*","commandName","FontFamilyEditing","_descriptionFactory","afterInit","find","*Reset font color*","*Set font family:* %0","*Set font size:* %0","*Reset font background color*","FORMAT_FONT_FAMILY","_enableDefaultAttributesIntegration","registerAttributeLabel","trim","label","plugins","value","fontBackgroundColor.colors","title","fontFamily","get","config","toLowerCase","*Set font color:* %0","FontColorEditing","commandParams","TrackChangesEditing","FORMAT_FONT_COLOR","model","FontBackgroundColorEditing","FontSize","fontColor","fontSize.options","FontSizeEditing","_registerLegacyDescription","*Reset font family*","fontSize","FORMAT_FONT_SIZE","locale","type","fontBackgroundColor","editor","format","FORMAT_FONT_BACKGROUND","formatInline"];var Ci,Ai;Ci=yi,Ai=182,function(t){for(;--t;)Ci.push(Ci.shift())}(++Ai);const ki=function(t,e){return yi[t-=0]},Ii=[{pluginName:ki("0x1f"),commandName:ki("0x22")},{pluginName:ki("0x0"),commandName:ki("0x11")},{pluginName:ki("0x16"),commandName:ki("0x1d")},{pluginName:ki("0x1b"),commandName:ki("0x26")}];class Si extends t.Plugin{[ki("0x2")](){const t=this[ki("0x27")][ki("0x24")],e=this[ki("0x27")].plugins[ki("0x12")](ki("0x18"));for(const{pluginName:t,commandName:n}of Ii)this.editor[ki("0xd")].has(t)&&e[ki("0x9")](n,[n]);t.t,e[ki("0x1")][ki("0xa")]("fontSize",Qo(t,ki("0x23"))),e[ki("0x1")].registerAttributeLabel(ki("0x11"),Qo(t,ki("0x8"))),e[ki("0x1")][ki("0xa")](ki("0x1d"),Qo(t,ki("0x19"))),e[ki("0x1")][ki("0xa")](ki("0x26"),Qo(t,ki("0x29"))),this[ki("0x20")]()}[ki("0x20")](){const t=this[ki("0x27")],e=t.locale;t.plugins[ki("0x12")](ki("0x18"))[ki("0x1")].registerDescriptionCallback((t=>{const n=e.t;if(ki("0x2a")!=t[ki("0x25")])return;const{data:o}=t;if(null!=o){if("fontSize"==o[ki("0x2c")]){const t=o[ki("0x17")][0][ki("0xe")];if(t){const o=n(this.editor.plugins[ki("0x12")](ki("0x1c")).normalizeSizeOptions(this[ki("0x27")].config.get(ki("0x1e")))[ki("0x3")]((e=>e[ki("0x1a")]==t))[ki("0x10")]).toLowerCase();return{type:"format",content:Qo(e,ki("0x6"),o)}}return{type:ki("0x28"),content:Qo(e,ki("0x2b"))}}if("fontFamily"==o[ki("0x2c")]){const t=o[ki("0x17")][0][ki("0xe")];return t?{type:ki("0x28"),content:Qo(e,ki("0x5"),t)}:{type:ki("0x28"),content:Qo(e,ki("0x21"))}}if(ki("0x1d")==o[ki("0x2c")]){const t=o[ki("0x17")][0].value;if(t){const o=(0,r.normalizeColorOptions)(this.editor[ki("0x13")][ki("0x12")]("fontColor.colors"))[ki("0x3")]((e=>e[ki("0x1a")]==t));let i=t,s="";return o&&(i=o[ki("0xc")],s=n(i)[ki("0x14")]()),{type:ki("0x28"),content:Qo(e,ki("0x15"),s)[ki("0xb")](),color:{value:t,title:s||i}}}return{type:ki("0x28"),content:Qo(e,ki("0x4"))}}if(ki("0x26")==o[ki("0x2c")]){const t=o[ki("0x17")][0][ki("0xe")];if(t){const o=(0,r.normalizeColorOptions)(this.editor.config[ki("0x12")](ki("0xf")))[ki("0x3")]((e=>e.model==t));let i=t,s="";return o&&(i=o[ki("0xc")],s=n(i)[ki("0x14")]()),{type:"format",content:Qo(e,"*Set font background color:* %0",s)[ki("0xb")](),color:{value:t,title:s||i}}}return{type:"format",content:Qo(e,ki("0x7"))}}}}))}}const Ri=["fontBackgroundColor","registerDescriptionCallback","charAt","copyFormat","*Set format to:* %0","config","plugins","split","TrackChangesEditing","FontSize","locale","model","type","editor","afterInit","_enableDefaultAttributesIntegration","slice","push","entries","commandParams","*Remove all formatting*","_registerLegacyDescription","enableCommand","title","normalizeSizeOptions","get","find","boolean","commands","fontSize.options","format","toUpperCase","toLowerCase","length","join","pasteFormat","formatBlock"];var vi,Ni;vi=Ri,Ni=456,function(t){for(;--t;)vi.push(vi.shift())}(++Ni);const Li=function(t,e){return Ri[t-=0]};class Mi extends t.Plugin{[Li("0x2")](){const t=this.editor,e=t.plugins[Li("0xd")](Li("0x21")),n=t[Li("0x10")][Li("0xd")]("copyFormat"),o=t[Li("0x10")][Li("0xd")](Li("0x17"));n&&o&&(e[Li("0x3")](Li("0x17")),e[Li("0xa")](Li("0x1c")),this._registerLegacyDescription())}[Li("0x9")](){const t=this[Li("0x1")],e=t[Li("0x23")];t[Li("0x1f")][Li("0xd")](Li("0x21"))._descriptionFactory[Li("0x1a")]((n=>{if(Li("0x18")!=n[Li("0x0")]&&"formatInline"!=n[Li("0x0")])return;const{data:o}=n;if(o&&Li("0x17")===o.commandName){const n=[],r=o[Li("0x7")][0];for(const[e,o]of Object[Li("0x6")](r))n[Li("0x5")](wi(t,e,o));return n[Li("0x15")]?{type:Li("0x12"),content:Qo(e,Li("0x1d"),n[Li("0x16")](", "))}:{type:"format",content:Qo(e,Li("0x8"))}}}))}}function wi(t,e,n){const o=t[Li("0x23")].t,i=e[Li("0x20")](/(?=[A-Z])/).join(" "),s=o(i[Li("0x1b")](0)[Li("0x13")]()+i[Li("0x4")](1))[Li("0x14")]();if(Li("0xf")==typeof n)return s;if("fontColor"===e||Li("0x19")===e){const e=(0,r.normalizeColorOptions)(t[Li("0x1e")][Li("0xd")]("fontColor.colors")).find((t=>t[Li("0x24")]==n));return s+" ("+(e?o(e.label).toLowerCase():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Li("0x1f")].get(Li("0x22"))[Li("0xc")](t[Li("0x1e")][Li("0xd")](Li("0x11")))[Li("0xe")]((t=>t[Li("0x24")]==n));return s+" ("+(e?o(e[Li("0xb")])[Li("0x14")]():n)+")"}return s+" ("+n+")"}const Oi=["type","ELEMENT_HEADING","view","commandParams","paragraph","registerElementLabel","_headingOptions","format","match","locale","registerDescriptionCallback","ELEMENT_HEADING_CUSTOM","heading.options","_getHeadingLevel","_enableDefaultAttributesIntegration","model","commandName","find","afterInit","has","_descriptionFactory","heading","title","editor","name","HeadingEditing","plugins","*Change to:* %0","TrackChangesEditing","_registerLegacyDescription","formatBlock","get","config"];var Fi,Di;Fi=Oi,Di=386,function(t){for(;--t;)Fi.push(Fi.shift())}(++Di);const Bi=function(t,e){return Oi[t-=0]};class Pi extends t.Plugin{[Bi("0x1c")](){const t=this[Bi("0x0")];if(!t.plugins[Bi("0x1d")](Bi("0x2")))return;this[Bi("0x10")]=t[Bi("0x9")][Bi("0x8")](Bi("0x16"));const e=t[Bi("0x13")],n=t[Bi("0x3")][Bi("0x8")](Bi("0x5"));n[Bi("0x18")](Bi("0x1f"));for(const t of this[Bi("0x10")])Bi("0xe")!=t[Bi("0x19")]&&n[Bi("0x1e")][Bi("0xf")](t[Bi("0x19")],(n=>{const o=this._getHeadingLevel(t[Bi("0x19")]);return null!==o?(s=n,x=o,Qo(e,Bi("0xb"),[s,x])):(r=n,i=t.title,Qo(e,Bi("0x15"),[r,i]));var r,i,s,x}));this[Bi("0x6")]()}[Bi("0x6")](){const t=this.editor,e=t[Bi("0x13")];t[Bi("0x3")][Bi("0x8")]("TrackChangesEditing")[Bi("0x1e")][Bi("0x14")]((t=>{if(Bi("0x7")!=t[Bi("0xa")])return;const{data:n}=t;if(n&&Bi("0x1f")==n[Bi("0x1a")]){const t=n[Bi("0xd")][0].value,s=this._getHeadingLevel(t);if(null!==s)return{type:Bi("0x11"),content:Qo(e,Bi("0x4"),(1,i=s,Qo(e,Bi("0xb"),[1,i])))};const x=this._headingOptions[Bi("0x1b")]((e=>e[Bi("0x19")]===t))[Bi("0x20")];return{type:Bi("0x11"),content:Qo(e,Bi("0x4"),(o=1,r=x,Qo(e,Bi("0x15"),[o,r])))}}var o,r,i}))}[Bi("0x17")](t){var e,n;const o=t[Bi("0x12")](/^heading(\d+)/);if(o)return o[1];const r=null===(e=this[Bi("0x10")])||void 0===e?void 0:e[Bi("0x1b")]((e=>e[Bi("0x19")]==t));if(r&&r[Bi("0xc")]){const t=r[Bi("0xc")],e=(null!==(n=t[Bi("0x1")])&&void 0!==n?n:t)[Bi("0x12")](/^h(\d+)/);if(e)return e[1]}return null}}const Ui=["FORMAT_HIGHLIGHT","*Remove highlight*","editor","plugins","title","find","formatInline","afterInit","_descriptionFactory","get","commandParams","model","toLowerCase","color","locale","_registerLegacyDescription","format","highlight","commandName","HighlightEditing","type"];var ji,Gi;ji=Ui,Gi=325,function(t){for(;--t;)ji.push(ji.shift())}(++Gi);const Vi=function(t,e){return Ui[t-=0]};class Hi extends t.Plugin{[Vi("0x12")](){const t=this[Vi("0xd")];if(!t[Vi("0xe")].has(Vi("0x9")))return;const e=t[Vi("0xe")][Vi("0x14")]("TrackChangesEditing"),n=t.locale;e._enableDefaultAttributesIntegration("highlight",["highlight"]),e[Vi("0x13")].registerAttributeLabel(Vi("0x7"),Qo(n,Vi("0xb"))),this._registerLegacyDescription()}[Vi("0x5")](){const t=this[Vi("0xd")],e=t[Vi("0x4")];t.plugins[Vi("0x14")]("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((n=>{if(Vi("0x11")!=n[Vi("0xa")])return;const{data:o}=n;if(o&&"highlight"==o[Vi("0x8")]){const n=e.t,r=o[Vi("0x0")][0].value;if(r){const o=t.config[Vi("0x14")]("highlight.options")[Vi("0x10")]((t=>t[Vi("0x1")]==r)),i=n(o[Vi("0xf")])[Vi("0x2")]();return{type:Vi("0x6"),content:Qo(e,"*Set highlight:* %0",i),color:{value:o[Vi("0x3")],title:o.title}}}return{type:Vi("0x6"),content:Qo(e,Vi("0xc"),Qo(e,Vi("0xb")))}}}))}}const zi=["_descriptionFactory","get","enableCommand","HorizontalLineEditing","locale","high","div","ck-horizontal-line","has","createContainerElement","horizontalLine","for","dataDowncast","plugins","afterInit","insert","ELEMENT_HORIZONTAL_LINE","createEmptyElement"];var Wi,Ki;Wi=zi,Ki=280,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};class Xi extends t.Plugin{[qi("0x4")](){const t=this.editor;if(!t[qi("0x3")][qi("0x10")](qi("0xb")))return;t[qi("0x3")][qi("0x9")]("TrackChangesEditing")[qi("0xa")](qi("0x0"));const e=t[qi("0x3")][qi("0x9")]("TrackChangesEditing"),n=t[qi("0xc")];e[qi("0x8")].registerElementLabel(qi("0x0"),(t=>Qo(n,qi("0x6"),t))),t.conversion[qi("0x1")](qi("0x2")).elementToStructure({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[qi("0x11")](qi("0xe")),r=e[qi("0x7")]("hr");return e.addClass(qi("0xf"),o),e[qi("0x5")](e.createPositionAt(o,0),r),o},converterPriority:qi("0xd")})}}const $i=["has","_enableDefaultAttributesIntegration","formatBlock","htmlEmbed","commandName","_registerLegacyDescription","plugins","format","registerElementLabel","ELEMENT_HTML_EMBED","editor","nodeAfter","afterInit","getFirstRange","attribute","TrackChangesEditing","key","get","element","rawHtml","value","_descriptionFactory","registerDescriptionCallback","type"];var Zi,Yi;Zi=$i,Yi=208,function(t){for(;--t;)Zi.push(Zi.shift())}(++Yi);const Ji=function(t,e){return $i[t-=0]};class Qi extends t.Plugin{[Ji("0x14")](){const t=this[Ji("0x12")];if(!t[Ji("0xe")][Ji("0x8")]("HtmlEmbed"))return;const e=t[Ji("0xe")][Ji("0x1")]("TrackChangesEditing"),n=t.locale;e._descriptionFactory[Ji("0x10")](Ji("0x3"),(t=>Qo(n,Ji("0x11"),t))),e[Ji("0x9")]("htmlEmbed",[],[Ji("0x4")]),e[Ji("0x5")][Ji("0x6")]((t=>{if(Ji("0x16")!=t[Ji("0x7")])return;const{data:e}=t;if(e&&Ji("0x4")==e[Ji("0x0")]&&t[Ji("0x15")]().start[Ji("0x13")].is(Ji("0x2"),Ji("0x3"))){const t=Qo(n,"ELEMENT_HTML_EMBED");return{type:Ji("0xf"),content:Qo(n,"*Change %0 content*",t)}}})),this[Ji("0xd")]()}_registerLegacyDescription(){const t=this[Ji("0x12")],e=t.locale;t[Ji("0xe")][Ji("0x1")](Ji("0x17"))[Ji("0x5")][Ji("0x6")]((t=>{if(Ji("0xa")!=t[Ji("0x7")])return;const{data:n}=t;if(n&&Ji("0xb")==n[Ji("0xc")]){const t=Qo(e,"ELEMENT_HTML_EMBED");return{type:Ji("0xf"),content:Qo(e,"*Change %0 content*",t)}}}))}}const ts=["_suggestionFactory","isBefore","*Set image text alternative:* %0","ImageEditing","isBlockImage","ELEMENT_IMAGE","formatInline","subType","start","caption","registerElementLabel","insertion","previous","isEqual","imageTypeInline","ImageBlockEditing","get","enableCommand","chain","getContainedElement","filter","forceDefaultExecution","*Remove image text alternative*","end","afterInit","find","createRangeOn","*Set image width:* %0","plugins","isCollapsed","ImageInlineEditing","formatBlock","commandParams","markDeletion","ImageUploadEditing","nodeBefore","resizeImage","_registerLegacyDescription","selection","removeObject","detach","_descriptionFactory","ImageTextAlternativeEditing","Block image to inline image","uploadImage","findIndex","registerDescriptionCallback","markInsertion","nodeAfter","imageBlock","imageCaption","toPrevious","getCaptionFromImageModelElement","registerAttributeLabel","createRange","isOwn","change","width","format","registerCustomCallback","imageTypeBlock","_findSuggestions","getClosestSelectedImageElement","convertInlineImageToBlock","accept","commandName","has","editor","discard","convertBlockImageToInline","backward","FORMAT_IMAGE_SIZE","ELEMENT_INLINE_IMAGE","ImageUtils","document","markBlockFormat","forward","type","element","deletion","imageInline","join","length","alt","schema","_enableDefaultAttributesIntegration","model","key","imageTextAlternative","TrackChangesEditing","ELEMENT_CAPTION","ImageCaptionEditing","newValue","getSuggestionCallback"];var es,ns;es=ts,ns=104,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class rs extends t.Plugin{[os("0xe")](){const t=this.editor;if(!t.plugins[os("0x38")](os("0x57")))return;const e=t[os("0x12")][os("0x6")](os("0x4f")),n=t[os("0x12")][os("0x6")](os("0x3f")),o=t.locale;e[os("0x7")]("insertImage"),e[os("0x1f")][os("0x0")](os("0x27"),(t=>Qo(o,os("0x59"),t))),e._descriptionFactory.registerElementLabel(os("0x46"),(t=>Qo(o,os("0x3e"),t))),e[os("0x1f")][os("0x0")]("caption",(()=>Qo(o,os("0x50")))),t[os("0x12")][os("0x38")](os("0x18"))&&e[os("0x7")](os("0x22")),t[os("0x12")][os("0x38")](os("0x5"))&&t[os("0x12")][os("0x38")](os("0x14"))&&(e[os("0x7")](os("0x4"),((o,r)=>{const i=n[os("0x34")](t[os("0x4c")][os("0x40")][os("0x1c")]);t[os("0x4c")][os("0x2e")]((()=>{e[os("0x41")](i,{commandName:os("0x4"),commandParams:[r]},[],os("0x3b"))}))})),e[os("0x7")](os("0x32"),((o,r)=>{t[os("0x4c")][os("0x2e")]((i=>{let x=n[os("0x34")](t[os("0x4c")][os("0x40")][os("0x1c")]),a=i.createRangeOn(x);const c=s.LivePosition.fromPosition(a[os("0x5c")],os("0x29")),l=s.LivePosition.fromPosition(a[os("0xd")],"toNext");e[os("0xb")]((()=>o(r))),x=n[os("0x34")](t.model[os("0x40")].selection),a=i[os("0x10")](x);const u=i[os("0x2c")](c,l);c.detach(),l[os("0x1e")](),e[os("0x41")](x,{commandName:os("0x4"),commandParams:[r]},[],os("0x35")),u[os("0x5c")][os("0x55")](a[os("0x5c")])&&e[os("0x25")](i[os("0x2c")](u[os("0x5c")],a[os("0x5c")]),os("0x35")),a[os("0xd")][os("0x55")](u[os("0xd")])&&e[os("0x25")](i[os("0x2c")](a.end,u[os("0xd")]),os("0x35"))}))})),e[os("0x54")][os("0x31")](os("0x15"),os("0x35"),os("0x47"),(()=>!1)),e[os("0x54")][os("0x31")](os("0x15"),"convertInlineImageToBlock",os("0x36"),(()=>!1)),e._suggestionFactory[os("0x31")]("formatBlock",os("0x35"),"discard",e[os("0x54")][os("0x53")](os("0x15"),"",os("0x36"))),e[os("0x54")][os("0x31")](os("0x1"),os("0x35"),os("0x47"),(()=>!1)),e[os("0x54")][os("0x31")](os("0x1"),os("0x35"),os("0x3a"),(([n])=>{const o=e._suggestionFactory[os("0x53")]("insertion","",os("0x3a"));let r=n[os("0x5c")],i=n[os("0xd")];const s=t[os("0x4c")][os("0x4a")].getNearestSelectionRange(r,os("0x3c")),x=t[os("0x4c")][os("0x4a")].getNearestSelectionRange(i,os("0x42"));s.isCollapsed&&(r=s[os("0x5c")]),x[os("0x13")]&&(i=x[os("0xd")]),o([t.model.createRange(r,i)])})),e[os("0x54")][os("0x31")](os("0x15"),"convertInlineImageToBlock",os("0x8"),x),e[os("0x54")][os("0x31")](os("0x1"),os("0x35"),os("0x8"),x)),t.plugins[os("0x38")](os("0x51"))&&(e[os("0x7")]("toggleImageCaption",((o,r)=>{const i=t[os("0x12")][os("0x6")]("ImageCaptionUtils");let s=n[os("0x34")](t[os("0x4c")].document.selection),x=i[os("0x2a")](s);t.model[os("0x2e")]((()=>{if(x)return void e[os("0x17")](t[os("0x4c")][os("0x10")](x));const a=n[os("0x58")](s);o(r),s=n.getClosestSelectedImageElement(t.model[os("0x40")][os("0x1c")]),x=i[os("0x2a")](s),e[os("0x25")](t[os("0x4c")][os("0x10")](x),a?null:os("0x28"))}))})),e[os("0x54")][os("0x31")](os("0x1"),os("0x28"),os("0x8"),x));const r=[{type:os("0x15"),subType:"imageStylePreApply"},{type:"insertion",subType:os("0x28")},{type:os("0x15"),subType:os("0x35")},{type:os("0x1"),subType:os("0x35")}];function i(t,o){const i=r[os("0x23")]((({type:e,subType:n})=>t[os("0x43")]==e&&t[os("0x5b")]==n)),s=r.findIndex((({type:t,subType:e})=>o[os("0x43")]==t&&o.subType==e));if(i<0||s<0)return!1;const x=t.getFirstRange(),a=o.getFirstRange();if((0==i||1==i)&&2==s&&x.isIntersecting(a))return!0;if(2==i&&3==s){const t=e[os("0x33")](x,os("0x1"))[os("0xa")]((({suggestion:t,meta:e})=>e[os("0x2d")]&&os("0x35")==t[os("0x5b")]));if(t[os("0x48")]>1&&a[os("0xd")][os("0x3")](x[os("0x5c")]))return!0;if(1==t[os("0x48")]&&(x[os("0x5c")][os("0x3")](a.end)||x.end[os("0x3")](a[os("0x5c")])))return!0}if(3==i&&3==s&&x[os("0x5c")][os("0x55")](a.start)){const t=x.end[os("0x26")],e=a[os("0x5c")][os("0x19")];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[os("0x12")][os("0x38")]("ImageResize")&&(e._enableDefaultAttributesIntegration("resizeImage",[],["resizedWidth"]),e[os("0x1f")][os("0x2b")]("resizedWidth",Qo(o,os("0x3d")))),t[os("0x12")][os("0x38")](os("0x20"))&&e[os("0x4b")]("imageTextAlternative",[],[os("0x49")]),e._descriptionFactory.registerDescriptionCallback((t=>{if(r[os("0xf")]((({type:e,subType:n})=>t[os("0x43")]==e&&t[os("0x5b")]==n)))return t[os("0x2")]?{}:void 0})),e._descriptionFactory[os("0x24")]((t=>{if(os("0x1")==t.type||os("0x45")==t[os("0x43")]){const e=t[os("0x9")]();if(e&&e.is(os("0x44"),os("0x5d")))return{type:"insertion"==t.type?"addObject":os("0x1d"),element:e,quantity:1}}})),e[os("0x1f")].registerDescriptionCallback((t=>"formatBlock"==t[os("0x43")]&&os("0x35")==t.subType?{type:os("0x30"),content:"Inline image to block image"}:os("0x15")==t.type&&os("0x3b")==t[os("0x5b")]?{type:os("0x30"),content:os("0x21")}:void 0)),e[os("0x1f")][os("0x24")]((t=>{if("attribute"!=t.type)return;const{data:e}=t;if(!e||os("0x49")!=e[os("0x4d")])return;const n=e[os("0x52")];return n?{type:os("0x30"),content:Qo(o,os("0x56"),'"'+n+'"')}:{type:"format",content:Qo(o,os("0xc"))}})),this._registerLegacyDescription()}[os("0x1b")](){const t=this[os("0x39")],e=t.locale;t[os("0x12")][os("0x6")]("TrackChangesEditing")._descriptionFactory[os("0x24")]((t=>{if(os("0x15")!=t.type&&os("0x5a")!=t[os("0x43")])return;const{data:n}=t;if(n){if(os("0x4e")==n.commandName){const t=n[os("0x16")][0].newValue;return t?{type:os("0x30"),content:Qo(e,os("0x56"),'"'+t+'"')}:{type:os("0x30"),content:Qo(e,os("0xc"))}}if(os("0x1a")==n[os("0x37")]){const t=n[os("0x16")][0][os("0x2f")];return t?{type:os("0x30"),content:Qo(e,os("0x11"),t)}:{type:"format",content:Qo(e,"*Reset image width*")}}}}))}}const is=["ImageEditing","*Replace image URL*","replaceImageSource","formatInline","formatBlock","_enableDefaultAttributesIntegration","_descriptionFactory","registerCustomCallback","plugins","oldValue","_registerLegacyDescription","src","registerDescriptionCallback","_suggestionFactory","_handleLegacySuggestions","discard","getSuggestionCallback","get","TrackChangesEditing","key","attribute","accept","commandName","locale","afterInit","editor","format"];var ss,xs;ss=is,xs=482,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{[as("0x1")](){if(!this[as("0x2")][as("0xc")].has(as("0x4")))return;const t=this[as("0x2")][as("0x0")],e=this[as("0x2")].plugins[as("0x15")](as("0x16"));e[as("0x9")](as("0x6"),[],[as("0xf")]),e._descriptionFactory.registerDescriptionCallback((e=>{if(as("0x18")!=e.type)return;const{data:n}=e;return n&&as("0xf")==n[as("0x17")]?n.newValue&&n[as("0xd")]?{type:as("0x3"),content:Qo(t,as("0x5"))}:{type:"format",content:""}:void 0})),this[as("0x12")]()}[as("0x12")](){const t=this[as("0x2")][as("0xc")][as("0x15")](as("0x16"));t[as("0x11")][as("0xb")](as("0x8"),"replaceImageSource",as("0x19"),t[as("0x11")][as("0x14")]("formatBlock",null,as("0x13"))),t[as("0x11")][as("0xb")](as("0x8"),"replaceImageSource",as("0x13"),t[as("0x11")][as("0x14")]("formatBlock",null,"accept")),this._registerLegacyDescription()}[as("0xe")](){const t=this[as("0x2")],e=t[as("0x0")];t.plugins[as("0x15")](as("0x16"))[as("0xa")][as("0x10")]((t=>{if("formatBlock"!=t.type&&as("0x7")!=t.type)return;const{data:n}=t;return n&&as("0x6")===n[as("0x1a")]?{type:as("0x3"),content:Qo(e,as("0x5"))}:void 0}))}}const ls=["enableCommand","setImageNaturalSizeAttributes","newRange","editor","get","getSuggestion","imageTypeInline","imageStylePreApply","_suggestionFactory","plugins","hasSuggestion","commandName","convertInlineImageToBlock","isEqual","commandParams","chain","model","discardSuggestion","getContainedElement","createRangeOn","imageStyle","imageStylePostApply","refresh","document","next","accept","commands","isBefore","findIndex","type","registerPostFixer","_registerLegacyDescription","subType","formatBlock","afterInit","locale","FORMAT_SIDE_IMAGE","registerDescriptionCallback","TrackChangesEditing","length","getSuggestions","formatInline","end","title","normalizedStyles","change","registerCustomCallback","value","getClosestSelectedImageElement","getFirstRange","getSuggestionCallback","_splitMarkerName","author","head","start","name","isInlineImage","isInContent","ImageStyleEditing","selection","forEach","isBlockImage","insertion","join","markInlineFormat","imageCaption","filter","Users","isOwn","from","nodeBefore","imageTypeBlock","markBlockFormat","isIntersecting","commandReversedParams"];var us,ds;us=ls,ds=383,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x1a")](){const t=this[gs("0x46")];if(!t[gs("0x1")].has(gs("0x32")))return;const n=t[gs("0x1")][gs("0x47")](gs("0x1e")),o=t[gs("0x1")][gs("0x47")]("ImageUtils"),r={};n[gs("0x43")](gs("0xc"),((r,i)=>{const s=t.plugins.get(gs("0x3b")).me,x=t[gs("0x12")][gs("0x47")]("imageStyle");let a=o[gs("0x28")](t.model[gs("0xf")][gs("0x33")]),c=t[gs("0x8")][gs("0xb")](a),l=x.value;if(l==i[gs("0x27")])return;const u={commandName:gs("0xc"),commandParams:[i],formatGroupId:(0,e.uid)()};t[gs("0x8")][gs("0x25")]((()=>{if(n[gs("0x20")]()[gs("0x3a")]((t=>t.isInContent&&s==t[gs("0x2c")]&&("formatBlock"==t[gs("0x15")]||gs("0x21")==t.type)&&(gs("0x4a")==t.subType||gs("0xd")==t.subType)&&t[gs("0x29")]()[gs("0x5")](c)))[gs("0x34")]((t=>n[gs("0x9")](t[gs("0x2d")]))),a=o[gs("0x28")](t[gs("0x8")][gs("0xf")].selection),c=t[gs("0x8")][gs("0xb")](a),x.refresh(),t[gs("0x12")][gs("0x47")](gs("0x49"))[gs("0xe")](),t[gs("0x12")][gs("0x47")](gs("0x3f")).refresh(),l=x[gs("0x27")],l!=i[gs("0x27")])return o[gs("0x30")](a)&&x.shouldConvertImageType(i[gs("0x27")],a)?(r({...i,setImageSizes:!1}),a=o[gs("0x28")](t[gs("0x8")][gs("0xf")][gs("0x33")]),void n[gs("0x40")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(o[gs("0x35")](a)?n.markBlockFormat(a,u,[],gs("0xd")):n[gs("0x38")](c,u,gs("0xd")))}))}));for(const e of t[gs("0x1")][gs("0x47")](gs("0x32"))[gs("0x24")])r[e[gs("0x2f")]]=e[gs("0x23")].toLowerCase();n[gs("0x0")][gs("0x26")]("formatBlock",gs("0x4a"),gs("0x37"),(()=>!1)),n[gs("0x0")][gs("0x26")](gs("0x19"),gs("0xd"),gs("0x37"),(()=>!1)),n[gs("0x0")][gs("0x26")](gs("0x21"),gs("0xd"),gs("0x37"),(()=>!1)),n[gs("0x0")][gs("0x26")]("formatBlock",gs("0x4a"),gs("0x11"),(([t])=>{o[gs("0x44")](t[gs("0xa")]())})),n[gs("0x0")][gs("0x26")](gs("0x19"),gs("0x4a"),"discard",((t,e)=>{n[gs("0x0")][gs("0x2a")]("formatBlock","","accept")(t,{commandName:e[gs("0x3")],commandParams:e[gs("0x42")]})})),n[gs("0x0")][gs("0x26")]("formatBlock","imageStylePreApply",gs("0x7"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:gs("0x19"),subType:gs("0x4a")},{type:gs("0x36"),subType:gs("0x39")},{type:gs("0x19"),subType:gs("0x4")},{type:"insertion",subType:gs("0x4")}];function s(t,e){const r=i[gs("0x14")]((({type:e,subType:n})=>t.type==e&&t.subType==n)),s=i[gs("0x14")]((({type:t,subType:n})=>e[gs("0x15")]==t&&e[gs("0x18")]==n));if(r<0||s<0)return!1;const x=t.getFirstRange(),a=e.getFirstRange();if((0==r||1==r)&&2==s&&x[gs("0x41")](a))return!0;if(2==r&&3==s){const t=n._findSuggestions(x,"insertion").filter((({suggestion:t,meta:e})=>e[gs("0x3c")]&&gs("0x4")==t[gs("0x18")]));if(t.length>1&&a[gs("0x22")].isEqual(x[gs("0x2e")]))return!0;if(1==t[gs("0x1f")]&&(x[gs("0x2e")][gs("0x5")](a.end)||x.end.isEqual(a[gs("0x2e")])))return!0}if(3==r&&3==s&&x.start[gs("0x13")](a[gs("0x2e")])){const t=x[gs("0x22")].nodeAfter,e=a[gs("0x2e")][gs("0x3e")];return o[gs("0x35")](t)&&t===e}return!1}t[gs("0x8")][gs("0xf")][gs("0x16")]((()=>{let e=!1;const r=Array[gs("0x3d")](t.model[gs("0xf")].differ.getChangedMarkers());for(const{name:t,data:i}of r){const{group:r,type:s,subType:x,id:a}=n[gs("0x2b")](t);if("suggestion"==r&&n[gs("0x2")](a)){if(gs("0x19")==s&&(gs("0x4a")==x||gs("0xd")==x)){const t=n[gs("0x48")](a);if(i[gs("0x45")]){const r=t.getFirstRange()[gs("0xa")]();if(o[gs("0x35")](r))continue;n[gs("0x9")](t),e=!0}}if(gs("0x36")==s&&"imageCaption"==x&&!i[gs("0x45")]){const t=n.getSuggestion(a);t[gs("0x10")]&&t[gs("0x10")][gs("0x31")]&&(n[gs("0x9")](t.next),e=!0)}}}return e})),this[gs("0x17")](r)}[gs("0x17")](t){const e=this[gs("0x46")],n=e[gs("0x1b")];e.plugins[gs("0x47")](gs("0x1e"))._descriptionFactory[gs("0x1d")]((e=>{if(gs("0x19")!=e[gs("0x15")]&&gs("0x21")!=e[gs("0x15")])return;const{data:o}=e;if(!o||gs("0xc")!=o[gs("0x3")])return;const r=o[gs("0x6")][0][gs("0x27")];return i="side"===r?Qo(n,gs("0x1c")):t[r]||r,{type:"format",content:Qo(n,"*Format:* %0",i)};var i}))}}const ms=["TrackChangesEditing","forEach","bind","editor","_trackChangesValueDuringImport","high","trackChanges","value","collaboration_features","plugins","execute","enableCommand","_trackChangesExecuted","get","track_changes","_handleImportedData","afterInit","dataInsert","commands","listenTo","_setSuggestionData","lowest","importWord"];var hs,ps;hs=ms,ps=334,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[bs("0xf")]=!1,this._trackChangesExecuted=!1}[bs("0x4")](){const t=this[bs("0xe")],e=t[bs("0x6")][bs("0x1")](bs("0xa")),n=t[bs("0x6")][bs("0x1")](bs("0x11"));e&&(e.on("execute",((t,[,e])=>{this[bs("0xf")]=n[bs("0x12")],e[bs("0x13")][bs("0x2")]=!this[bs("0xf")]}),{priority:bs("0x10")}),this[bs("0x7")](e,"dataInsert",this._handleImportedData[bs("0xd")](this)),this[bs("0x7")](e,bs("0x5"),(()=>{this[bs("0x0")]&&(n[bs("0x15")](),this[bs("0x0")]=!1)}),{priority:bs("0x9")}),t[bs("0x14")][bs("0x1")]("TrackChangesEditing")[bs("0x16")](bs("0xa")))}[bs("0x3")](t,e){const{suggestions:n}=e,o=this[bs("0xe")][bs("0x6")][bs("0x1")](bs("0x11")),r=o[bs("0x12")];this[bs("0xf")]!==r&&(o[bs("0x15")](),this[bs("0x0")]=!0),n&&n[bs("0xc")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[bs("0xe")].plugins[bs("0x1")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:bs("0xa")}}};this[bs("0xe")][bs("0x14")].get(bs("0xb"))[bs("0x8")](r)}))}}const _s=["getItemLabel","getItems","locale","plugins","FORMAT_INDENT","has","format","registerDescriptionCallback","blockIndent","IndentBlock","afterInit","_registerBlockAttribute","indent","enableCommand","indentBlock","*Indent:* %0","outdentBlock","TrackChangesEditing","_enableDefaultAttributesIntegration","commandName","formatBlock","_descriptionFactory","_registerLegacyDescription","*Outdent:* %0"];var Ts,ys;Ts=_s,ys=423,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0x13")](){const t=this.editor,e=t.plugins.get("TrackChangesEditing");if(t.plugins[Cs("0xe")]("IndentEditing")&&(e[Cs("0x16")](Cs("0x15")),e[Cs("0x16")]("outdent")),t.plugins.has(Cs("0x12")))for(const t of[Cs("0x17"),Cs("0x1")])e[Cs("0x3")](t);const n=t[Cs("0xb")];e[Cs("0x14")](Cs("0x11")),e[Cs("0x6")].registerAttributeLabel(Cs("0x11"),Qo(n,Cs("0xd"))),this[Cs("0x7")]()}_registerLegacyDescription(){const t=this.editor,e=t[Cs("0xb")],n=t[Cs("0xc")].get(Cs("0x2"));n._descriptionFactory[Cs("0x10")]((t=>{if(Cs("0x5")!=t.type)return;const{data:o}=t;if(!o)return;if("indentBlock"!=o[Cs("0x4")]&&"outdentBlock"!=o.commandName)return;const r=t[Cs("0xa")]()[0],i=n._descriptionFactory[Cs("0x9")](r);return Cs("0x17")==o[Cs("0x4")]?{type:Cs("0xf"),content:Qo(e,Cs("0x0"),i)}:Cs("0x1")==o[Cs("0x4")]?{type:"format",content:Qo(e,Cs("0x8"),i)}:void 0}))}}var ks,Is,Ss=["plugins","editor","TrackChangesEditing","enableCommand","input","requires"];ks=Ss,Is=290,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Rs=function(t,e){return Ss[t-=0]};class vs extends t.Plugin{static get[Rs("0x3")](){return[Hr.Input]}init(){this[Rs("0x5")][Rs("0x4")].get(Rs("0x0"))[Rs("0x1")](Rs("0x2"))}}const Ns=["*Remove link*","registerDescriptionCallback","locale","linkHref","key","link (","attribute","unlink","registerAttributeLabel","afterInit","newValue","commandParams","_enableDefaultAttributesIntegration","_descriptionFactory","get","*Set link:* %0","plugins","format","LinkEditing","link","toLowerCase","type","TrackChangesEditing","manualDecorators","editor","commandName"];var Ls,Ms;Ls=Ns,Ms=132,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{[ws("0x7")](){const t=this.editor;if(!t[ws("0xe")].has(ws("0x10")))return;const e=t[ws("0xe")][ws("0xc")](ws("0x14")),n=t.commands[ws("0xc")]("link");e._enableDefaultAttributesIntegration(ws("0x11"),[ws("0x1"),...n[ws("0x15")].map((t=>t.id))]),e[ws("0xa")](ws("0x5"));for(const t of n.manualDecorators)e[ws("0xb")][ws("0x6")](t.id,ws("0x3")+t.label[ws("0x12")]()+")");e._descriptionFactory[ws("0x19")]((e=>{if(ws("0x4")!=e.type)return;const{data:n}=e;if(!n||ws("0x1")!=n[ws("0x2")])return;const o=n[ws("0x8")],r=t.locale;return{type:ws("0xf"),content:o?Qo(r,ws("0xd"),'"'+o+'"'):Qo(r,ws("0x18"))}})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[ws("0x16")],e=t[ws("0x0")];t[ws("0xe")][ws("0xc")](ws("0x14"))[ws("0xb")][ws("0x19")]((t=>{if("formatInline"!=t[ws("0x13")])return;const{data:n}=t;if(n){if("link"==n[ws("0x17")]){const t=n[ws("0x9")][0];return{type:ws("0xf"),content:Qo(e,ws("0xd"),'"'+t+'"')}}return ws("0x5")==n[ws("0x17")]?{type:ws("0xf"),content:Qo(e,"*Remove link*")}:void 0}}))}}const Fs=["parent","replace","blockName","formatInline","formatBlock","*Check item*","commandName","locale","todoList","from","markBlockFormat","bulletedList","has","commands","getSelectedBlocks","push","model","commandParams","plugins","get","isObject","listType","listIndent","bulleted","findIndex","schema","todo","numbered","createPositionAt","forceValue","slice","_descriptionFactory","*Change to:* %0","type","nextSibling","paragraph","value","add","execute","numberedList","ListEditing","createRange","checkTodoList","previousSibling","end","element","listItem","*Outdent:* %0","*Uncheck item*","ELEMENT_LIST_ITEM","selection","getAttribute","ELEMENT_NUMBERED_LIST","afterInit","TodoListEditing","format","length","registerDescriptionCallback","indentList","todoListChecked","document","ELEMENT_BULLETED_LIST","_selectedElements","enableCommand","filter","change","name","outdentList"];var Ds,Bs;Ds=Fs,Bs=481,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0x30")](){const t=this.editor,e=t[Ps("0x2")];if(!t[Ps("0xd")][Ps("0x7")](Ps("0x23")))return;const n=t[Ps("0xd")][Ps("0xe")]("TrackChangesEditing"),o=t[Ps("0xd")].has(Ps("0x31"));function r(e){return()=>{const o=t.model[Ps("0x37")][Ps("0x2d")],r=t[Ps("0x8")][Ps("0xe")](e);if(r[Ps("0x1f")])return void t[Ps("0x21")](Ps("0x1e"),{});const i=e[Ps("0x19")](0,-4),s=function(t,e,n){let o=Array[Ps("0x4")](t)[Ps("0x3b")]((t=>{return e=t,(o=n).checkChild(e[Ps("0x3f")],Ps("0x29"))&&!o[Ps("0xf")](e);var e,o}));o=o.filter((t=>!t.is(Ps("0x28"),Ps("0x29"))||t.getAttribute(Ps("0x10"))!=e));const r=new Set;for(const t of o)t.is(Ps("0x28"),Ps("0x29"))?r[Ps("0x20")](js(t)):r[Ps("0x20")](t);return Array[Ps("0x4")](r)}(o.getSelectedBlocks(),i,t[Ps("0xb")][Ps("0x14")]);t[Ps("0xb")].change((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!r[Ps("0x1f")]}],formatGroupId:Ps("0x41")},Gs(t))}))}}function i(e){return()=>{const o=function(t){let e=Array[Ps("0x4")](t);const n=e[Ps("0x13")]((t=>Ps("0x29")!=t[Ps("0x3d")]));return n>-1&&(e=e[Ps("0x19")](0,n)),e}(t[Ps("0xb")].document[Ps("0x2d")][Ps("0x9")]()),r=t[Ps("0xb")][Ps("0x24")](t[Ps("0xb")].createPositionAt(o[0],"before"),t[Ps("0xb")][Ps("0x17")](o[o[Ps("0x33")]-1],Ps("0x27")));t[Ps("0xb")][Ps("0x3c")]((()=>{n[Ps("0x5")](r,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[Ps("0x2e")](Ps("0x11"))>n[Ps("0x2e")](Ps("0x11"));)e[Ps("0x20")](t),t=t.nextSibling}return Array[Ps("0x4")](e)}(o))}))}}n[Ps("0x3a")](Ps("0x22"),r(Ps("0x22"))),n[Ps("0x3a")](Ps("0x6"),r("bulletedList")),o&&n[Ps("0x3a")]("todoList",r(Ps("0x3"))),n[Ps("0x3a")](Ps("0x35"),i(Ps("0x35"))),n[Ps("0x3a")](Ps("0x3e"),i(Ps("0x3e"))),o&&n[Ps("0x3a")]("checkTodoList",(()=>{const e=t[Ps("0x8")][Ps("0xe")](Ps("0x25")),o=Array[Ps("0x4")](e[Ps("0x39")]);o[Ps("0x3b")]((t=>t[Ps("0x2e")](Ps("0x36"))!=e[Ps("0x1f")])),t[Ps("0xb")][Ps("0x3c")]((()=>{for(const t of o)n[Ps("0x5")](t,{commandName:Ps("0x25"),commandParams:[{forceValue:!e[Ps("0x1f")]}]})}))})),n._descriptionFactory.registerElementLabel("listItem",(t=>Qo(e,Ps("0x2c"),t))),n[Ps("0x1a")][Ps("0x34")]((t=>{if(Ps("0x43")!=t[Ps("0x1c")]&&Ps("0x42")!=t[Ps("0x1c")])return;const{data:n}=t;if(n){if(Ps("0x22")==n[Ps("0x1")]||Ps("0x6")==n.commandName||"todoList"==n[Ps("0x1")])switch(n[Ps("0x1")][Ps("0x40")]("List","")){case Ps("0x12"):return o(Qo(e,Ps("0x38")));case Ps("0x16"):return o(Qo(e,Ps("0x2f")));case Ps("0x15"):return o(Qo(e,"ELEMENT_TODO_LIST"))}if(Ps("0x35")==n[Ps("0x1")])return{type:Ps("0x32"),content:Qo(e,"*Indent:* %0",Qo(e,"ELEMENT_LIST_ITEM"))};if(Ps("0x3e")==n[Ps("0x1")])return{type:Ps("0x32"),content:Qo(e,Ps("0x2a"),Qo(e,Ps("0x2c")))};if(Ps("0x25")==n[Ps("0x1")])return n[Ps("0xc")][0][Ps("0x18")]?{type:Ps("0x32"),content:Qo(e,Ps("0x0"))}:{type:Ps("0x32"),content:Qo(e,Ps("0x2b"))}}function o(t){return{type:Ps("0x32"),content:Qo(e,Ps("0x1b"),t)}}}))}}function js(t){const e=t[Ps("0x2e")](Ps("0x11"));if(0==e)return t;let n=t;for(;t.previousSibling&&t.previousSibling.is("element",Ps("0x29"));){const o=t[Ps("0x26")][Ps("0x2e")](Ps("0x11"));if(o==e)n=t[Ps("0x26")];else if(o<e)break;t=t[Ps("0x26")]}return n}function Gs(t){const e=[];if(t.is(Ps("0x28"),"listItem")&&t[Ps("0x2e")]("listIndent")>0){let n=t[Ps("0x1d")];for(;n&&Ps("0x29")==n.name&&n[Ps("0x2e")](Ps("0x11"))==t.getAttribute(Ps("0x11"));)e[Ps("0xa")](n),n=n.nextSibling}return e}const Vs=["handleDescriptions","ELEMENT_","handleListStyleCommand","listReversed","enableCommand","getSiblingNodes","createPositionAt","getAttribute","listStyle","*Format:* set order to reversed","from","handleListReversedCommand","forward","*Change to:* %0","parent","config","_getSuggestionBlocksForListStyle","list.properties","commandParams","reversed","numbered","_getSuggestionBlocks","listType","listItem","createRange","format","locale","toUpperCase","flat","map","has","TrackChangesEditing","markMultiRangeBlockFormat","*Format:* set order to regular","*Format:* set start index to %0","backward","before","editor","_getTranslationKeyForListStyle","change","type","bind","replace","getFirstPosition","_descriptionFactory","length","ListUtils","getLastPosition","model","ListPropertiesEditing","registerDescriptionCallback","filter","commandName","listStart","document","get","unshift","element","selection","afterInit","startIndex","plugins","handleListStartCommand","formatBlock"];var Hs,zs;Hs=Vs,zs=215,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0x24")](){if(!this[Ws("0xe")].plugins[Ws("0x7")](Ws("0x1a")))return;const t=this[Ws("0xe")][Ws("0x38")][Ws("0x20")](Ws("0x3a")),e=this[Ws("0xe")][Ws("0x26")][Ws("0x20")](Ws("0x8"));t.styles&&e[Ws("0x2d")]("listStyle",this[Ws("0x2b")][Ws("0x12")](this)),t[Ws("0x3c")]&&e[Ws("0x2d")]("listReversed",this.handleListReversedCommand[Ws("0x12")](this)),t[Ws("0x25")]&&e[Ws("0x2d")]("listStart",this[Ws("0x27")][Ws("0x12")](this)),e[Ws("0x15")][Ws("0x1b")](this[Ws("0x29")][Ws("0x12")](this))}[Ws("0x2b")](t,e={}){const n=this.editor[Ws("0x26")][Ws("0x20")](Ws("0x8")),o=this._getSuggestionBlocksForListStyle();this.editor[Ws("0x19")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ws("0x31"),commandParams:[{type:e.type}],formatGroupId:"listStyle"})}))}[Ws("0x34")](t,e={}){const n=this[Ws("0xe")][Ws("0x26")][Ws("0x20")](Ws("0x8")),o=this[Ws("0x3e")]((t=>t.is(Ws("0x22"),Ws("0x0"))&&"numbered"===t.getAttribute("listType")));if(o[Ws("0x16")]<1)return;const r=o[Ws("0x6")]((t=>this.editor[Ws("0x19")][Ws("0x1")](this.editor[Ws("0x19")][Ws("0x2f")](t,Ws("0xd")),this[Ws("0xe")][Ws("0x19")].createPositionAt(t,0))));this[Ws("0xe")][Ws("0x19")][Ws("0x10")]((()=>{n[Ws("0x9")](r,{commandName:Ws("0x2c"),commandParams:[{reversed:e[Ws("0x3c")]}],formatGroupId:"listReversed"})}))}[Ws("0x27")](t,e={}){const n=this[Ws("0xe")][Ws("0x26")][Ws("0x20")](Ws("0x8")),o=this[Ws("0x3e")]((t=>t.is(Ws("0x22"),Ws("0x0"))&&Ws("0x3d")===t[Ws("0x30")](Ws("0x3f"))));if(o.length<1)return;const r=o.map((t=>this[Ws("0xe")][Ws("0x19")][Ws("0x1")](this[Ws("0xe")][Ws("0x19")][Ws("0x2f")](t,Ws("0xd")),this[Ws("0xe")][Ws("0x19")][Ws("0x2f")](t,0))));this[Ws("0xe")][Ws("0x19")][Ws("0x10")]((()=>{n[Ws("0x9")](r,{commandName:Ws("0x1e"),commandParams:[{startIndex:e.startIndex}],formatGroupId:Ws("0x1e")})}))}handleDescriptions(t){if(Ws("0x28")!=t[Ws("0x11")]&&"formatInline"!=t[Ws("0x11")])return;const e=this[Ws("0xe")][Ws("0x3")],{data:n}=t;if(!n)return;let o,r;switch(n[Ws("0x1d")]){case"listStyle":o=Ws("0x36"),r={type:Ws("0x2"),content:Qo(e,o,Qo(e,this._getTranslationKeyForListStyle(n.commandParams[0][Ws("0x11")])))};break;case"listReversed":o=n[Ws("0x3b")][0][Ws("0x3c")]?Ws("0x32"):Ws("0xa"),r={type:Ws("0x2"),content:Qo(e,o)};break;case"listStart":o=Ws("0xb"),r={type:Ws("0x2"),content:Qo(e,o,n[Ws("0x3b")][0][Ws("0x25")])}}return r}[Ws("0x39")](){var t,e,n,o;const r=this[Ws("0xe")].plugins.get(Ws("0x17"));let i=Array[Ws("0x33")](this[Ws("0xe")].model[Ws("0x1f")][Ws("0x23")].getSelectedBlocks());return(null===(t=i[0])||void 0===t?void 0:t.is(Ws("0x22"),Ws("0x0")))&&i[Ws("0x21")](...r[Ws("0x2e")](this[Ws("0xe")][Ws("0x19")][Ws("0x1f")].selection.getFirstPosition(),Ws("0xc"))),(null===(e=i[i.length-1])||void 0===e?void 0:e.is(Ws("0x22"),Ws("0x0")))&&i.push(...r[Ws("0x2e")](this[Ws("0xe")][Ws("0x19")][Ws("0x1f")][Ws("0x23")][Ws("0x18")](),Ws("0x35"))),i=[...new Set(i)],(null===(o=null===(n=this.editor[Ws("0x19")][Ws("0x1f")][Ws("0x23")][Ws("0x14")]())||void 0===n?void 0:n[Ws("0x37")])||void 0===o?void 0:o.is(Ws("0x22"),Ws("0x0")))&&(i=i[Ws("0x1c")]((t=>t.is(Ws("0x22"),Ws("0x0"))))),i}[Ws("0x3e")](t){const e=this[Ws("0xe")][Ws("0x26")][Ws("0x20")](Ws("0x17"));let n=Array[Ws("0x33")](this[Ws("0xe")].model.document[Ws("0x23")].getSelectedBlocks())[Ws("0x1c")](t)[Ws("0x6")]((t=>{const n=this.editor[Ws("0x19")][Ws("0x2f")](t,0);return[...e[Ws("0x2e")](n,Ws("0xc")),...e.getSiblingNodes(n,"forward")]}))[Ws("0x5")]();return n=[...new Set(n)],n}[Ws("0xf")](t){return Ws("0x2a")+this.editor[Ws("0x26")].get(Ws("0x17")).getListTypeFromListStyleType(t)[Ws("0x4")]()+"_LIST_"+t[Ws("0x4")]()[Ws("0x13")](/-/g,"_")}}const qs=["for","data","locale","TrackChangesEditing","enableCommand","createEmptyElement","get","_descriptionFactory","options","conversion","mediaEmbed","div","media","high","registerElementLabel","dataDowncast","has","ELEMENT_MEDIA","plugins","showSuggestionHighlights"];var Xs,$s;Xs=qs,$s=390,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{afterInit(){const t=this.editor;if(!t[Zs("0x8")][Zs("0x6")]("MediaEmbedEditing"))return;const e=t[Zs("0x8")][Zs("0x10")](Zs("0xd")),n=t[Zs("0xc")];e[Zs("0xe")](Zs("0x0")),e[Zs("0x11")][Zs("0x4")]("media",(t=>Qo(n,Zs("0x7"),t))),t[Zs("0x13")][Zs("0xa")](Zs("0x5")).elementToElement({model:Zs("0x2"),view:(t,{writer:e,options:n})=>{if(n[Zs("0x9")])return e[Zs("0xf")](Zs("0x1"))},converterPriority:Zs("0x3")}),t[Zs("0xb")].downcastDispatcher.on("attribute:url:media",((t,e,n)=>{n[Zs("0x12")][Zs("0x9")]&&t.stop()}),{priority:Zs("0x3")})}}const Js=["plugins","editor","mention","MentionEditing","has","TrackChangesEditing"];var Qs,tx;Qs=Js,tx=330,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("0x1")];t[ex("0x0")][ex("0x4")](ex("0x3"))&&t[ex("0x0")].get(ex("0x5")).enableCommand(ex("0x2"))}}const ox=["registerElementLabel","TrackChangesEditing","get","PageBreakEditing","pageBreak","afterInit","has","ELEMENT_PAGE_BREAK","editor","locale","enableCommand","_descriptionFactory","plugins"];var rx,ix;rx=ox,ix=411,function(t){for(;--t;)rx.push(rx.shift())}(++ix);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0xa")](){const t=this[sx("0x0")];if(!t[sx("0x4")][sx("0xb")](sx("0x8")))return;t[sx("0x4")][sx("0x7")](sx("0x6"))[sx("0x2")](sx("0x9"));const e=t[sx("0x4")][sx("0x7")](sx("0x6")),n=t[sx("0x1")];e[sx("0x3")][sx("0x5")](sx("0x9"),(t=>Qo(n,sx("0xc"),t)))}}const ax=["consumable","start","isTouching","afterInit","model","downcastDispatcher","ck-suggestion-marker--active","nodeAfter","commandName","createUIElement","registerElementLabel","writer","TrackChangesEditing","enableCommand","markerRange","get","schema","name","_enableDefaultAttributesIntegration","type","_descriptionFactory","$text","ELEMENT_PARAGRAPH","has","paragraph","span","isLimit","getFirstRange","markerName","bindElementToMarker","showSuggestionHighlights","checkChild","includes","formatBlock","insertion","toViewPosition","isBlock","end","editor","ck-suggestion-marker-split","options","plugins","data","editing","mapper","registerDescriptionCallback","_registerLegacyDescription","*Insert:* %0","highest","activeMarkers"];var cx,lx;cx=ax,lx=466,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x25")](){const t=this[ux("0x16")];if(!t[ux("0x19")][ux("0x7")]("Paragraph"))return;const e=t.locale,n=t[ux("0x19")].get("TrackChangesEditing");n._descriptionFactory[ux("0x2c")](ux("0x8"),(t=>Qo(e,ux("0x6"),t))),n[ux("0x2")]("paragraph"),n[ux("0x2f")]("insertParagraph"),t[ux("0x1b")][ux("0x27")].on("addMarker:suggestion:insertion",gx(t),{priority:ux("0x20")}),t[ux("0x1a")][ux("0x27")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[ux("0x18")][ux("0xe")]&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[ux("0x4")];o[ux("0x1d")]((n=>{if(ux("0x12")!==n[ux("0x3")])return;const{start:r,end:i}=n[ux("0xb")]();if(!r.isTouching(i)||!r[ux("0x29")])return;const s=t[ux("0x26")][ux("0x0")],x=r[ux("0x29")];return s[ux("0x14")](x)&&!s.isLimit(x)&&s.checkChild(x,ux("0x5"))?{type:ux("0x12"),content:Qo(e,ux("0x1f"),o.getItemLabel(x,1))}:void 0})),this[ux("0x1e")]()}[ux("0x1e")](){const t=this.editor,e=t.locale;t[ux("0x19")][ux("0x31")]("TrackChangesEditing")[ux("0x4")][ux("0x1d")]((t=>{if(ux("0x11")!=t[ux("0x3")])return;const{data:n}=t;return n&&ux("0x8")==n[ux("0x2a")]?{type:"format",content:Qo(e,"*Change to:* %0",Qo(e,ux("0x6")))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t[ux("0x19")][ux("0x31")](ux("0x2e")),s=o[ux("0x30")][ux("0x23")],x=o.markerRange[ux("0x15")],a=t[ux("0x26")].schema;if(!s[ux("0x24")](x)||!s[ux("0x29")])return;const c=s.nodeAfter;if(a[ux("0x14")](c)&&!a[ux("0xa")](c)&&a[ux("0xf")](c,ux("0x5"))){if(!r[ux("0x22")].consume(o[ux("0x30")],n[ux("0x1")]))return;const t=r[ux("0x2d")][ux("0x2b")](ux("0x9"),{class:ux("0x17")}),s=r.mapper[ux("0x13")](x);e&&i[ux("0x21")][ux("0x10")](o[ux("0xc")])&&r[ux("0x2d")].addClass(ux("0x28"),t),r[ux("0x2d")].insert(s,t),r[ux("0x1c")][ux("0xd")](t,o[ux("0xc")])}}}const fx=["_registerLegacyDescription","format","TrackChangesEditing","registerDescriptionCallback","commandName","has","RemoveFormatEditing","formatInline","plugins","_descriptionFactory","removeFormat","formatBlock","get","locale","type","editor","*Remove all formatting*"];var mx,hx;mx=fx,hx=227,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{afterInit(){const t=this[px("0x9")];t[px("0x2")][px("0x10")](px("0x0"))&&(t[px("0x2")][px("0x6")](px("0xd"))._enableDefaultAttributesIntegration("removeFormat"),this[px("0xb")]())}[px("0xb")](){const t=this[px("0x9")];t[px("0x2")][px("0x6")](px("0xd"))[px("0x3")][px("0xe")]((e=>{if(px("0x5")!=e[px("0x8")]&&px("0x1")!=e.type)return;const{data:n}=e;return n&&px("0x4")==n[px("0xf")]?{type:px("0xc"),content:Qo(t[px("0x7")],px("0xa"))}:void 0}))}}const Ex=["enableCommand","editor","discardSelectedSuggestions","goToPreviousRestrictedEditingException","plugins","afterInit","goToNextRestrictedEditingException","has","acceptSuggestion","RestrictedEditingModeEditing","get","trackChanges","discardAllSuggestions"];var _x,Tx;_x=Ex,Tx=356,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x0")](){const t=this[yx("0x9")];if(!t.plugins[yx("0x2")](yx("0x4")))return;const e=t[yx("0xc")][yx("0x5")]("TrackChangesEditing");e.enableCommand(yx("0xb")),e[yx("0x8")](yx("0x1"));const n=t.plugins.get(yx("0x4"));n.enableCommand(yx("0x6")),n[yx("0x8")](yx("0x3")),n.enableCommand("discardSuggestion"),n[yx("0x8")]("acceptAllSuggestions"),n.enableCommand(yx("0x7")),n[yx("0x8")]("acceptSelectedSuggestions"),n[yx("0x8")](yx("0xa"))}}const Ax=["editing","downcastDispatcher","span","activeMarkers","locale","markerRange","editor","ck-suggestion-marker--active","mapper","split","registerElementLabel","showSuggestionHighlights","options","plugins","test","writer","addMarker:suggestion:deletion","deletion","bindElementToMarker","TrackChangesEditing","toViewPosition","requires","data","softBreak","insert","addClass","_descriptionFactory","consumable","enableCommand","shiftEnter","get","high","element","merge","includes","markerName","model","getItems"];var kx,Ix;kx=Ax,Ix=375,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Sx=function(t,e){return Ax[t-=0]};class Rx extends t.Plugin{static get[Sx("0x1a")](){return[ui.ShiftEnter]}init(){const t=this[Sx("0xb")],e=t[Sx("0x12")][Sx("0x23")](Sx("0x18"));e[Sx("0x21")](Sx("0x22")),t[Sx("0x5")][Sx("0x6")].on("addMarker:suggestion:insertion",vx(t),{priority:Sx("0x24")}),t.editing.downcastDispatcher.on(Sx("0x15"),vx(t),{priority:Sx("0x24")}),t[Sx("0x1b")].downcastDispatcher.on("addMarker:suggestion",((e,n,o)=>{o[Sx("0x11")][Sx("0x10")]&&vx(t,{showActiveMarker:!1})(e,n,o)})),e[Sx("0x1f")][Sx("0xf")](Sx("0x1c"),(e=>Qo(t[Sx("0x9")],"ELEMENT_LINE_BREAK",e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t.plugins[Sx("0x23")]("TrackChangesEditing");if(!r[Sx("0x20")][Sx("0x13")](o.markerRange,n.name))return;const s=t[Sx("0x3")];for(const t of o[Sx("0xa")][Sx("0x4")]()){if(!t.is(Sx("0x25"),Sx("0x1c")))continue;const n=Sx("0x16")==o[Sx("0x2")][Sx("0xe")](":")[1]?Sx("0x0"):Sx("0xe"),x=r.writer.createUIElement(Sx("0x7"),{class:"ck-suggestion-marker-"+n}),a=r[Sx("0xd")][Sx("0x19")](s.createPositionBefore(t));e&&i[Sx("0x8")][Sx("0x1")](o.markerName)&&r[Sx("0x14")][Sx("0x1e")](Sx("0xc"),x),r[Sx("0x14")][Sx("0x1d")](a,x),r[Sx("0xd")][Sx("0x17")](x,o[Sx("0x2")])}}}const Nx=["format","selection","model","has","document","isCollapsed","commandParams","FORMAT_RESTRICTED_DISABLED","change","TrackChangesEditing","forceValue","registerDescriptionCallback","value","from","formatBlock","getRanges","afterInit","plugins","type","enableCommand","editor","get","commandName"];var Lx,Mx;Lx=Nx,Mx=147,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0x7")](){const t=this[wx("0xb")],e=t[wx("0x10")],n=t.locale;if(!t[wx("0x8")][wx("0x11")]("StandardEditingModeEditing"))return;const o=t[wx("0x8")][wx("0xc")](wx("0x0")),r="restrictedEditingException",i=t.commands[wx("0xc")](r);o[wx("0xa")](r,((t,n={})=>{const s=e[wx("0x12")][wx("0xf")];if(s[wx("0x13")])return void t(n);const x=void 0!==n[wx("0x1")]?n[wx("0x1")]:!i[wx("0x3")];e[wx("0x16")]((()=>{const t=Array[wx("0x4")](s[wx("0x6")]());for(const n of t){const t=x?[n]:Xr(r,n,e);for(const e of t)o.markInlineFormat(e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[wx("0x2")]((t=>{if(wx("0x5")!=t[wx("0x9")]&&"formatInline"!=t[wx("0x9")])return;const{data:e}=t;return e&&e[wx("0xd")]==r?e[wx("0x14")][0][wx("0x1")]?{type:wx("0xe"),content:Qo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:wx("0xe"),content:Qo(n,wx("0x15"))}:void 0}))}}const Fx=["registerAttributeLabel","DataSchema","styleName","commandParams","config","element","block","afterInit","normalizeConfig","ghsAttributes","_enableDefaultAttributesIntegration","editor","inline","GeneralHtmlSupport","type","style","definitions","locale","getGhsAttributeNameForElement","_registerBlockAttribute","get","formatBlock","StyleUtils","FORMAT_STYLE","add","*Set format:* %0","toLowerCase","Style","_descriptionFactory","plugins","TrackChangesEditing","_registerLegacyDescription","commandName","registerDescriptionCallback","format","has","formatInline"];var Dx,Bx;Dx=Fx,Bx=304,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{[Px("0x24")](){const t=this.editor;if(!t[Px("0x15")][Px("0x1b")](Px("0x13"))||!t[Px("0x15")][Px("0x1b")](Px("0x1e")))return;const e=t[Px("0x15")].get(Px("0x16")),n=t[Px("0x9")],o=t[Px("0x21")][Px("0xc")](Px("0x7")),r=t.plugins[Px("0xc")](Px("0x5")),i=t[Px("0x15")][Px("0xc")](Px("0xe"))[Px("0x0")](t[Px("0x15")][Px("0xc")]("DataSchema"),o[Px("0x8")]);e[Px("0x2")]("style");const s=new Set;for(const t of i[Px("0x23")]){const e=r[Px("0xa")](t[Px("0x22")]);s.add(e)}const x=new Set;for(const t of i[Px("0x4")]){const e=r.getGhsAttributeNameForElement(t[Px("0x22")]);x.add(e);for(const e of t[Px("0x1")])x[Px("0x10")](e)}for(const t of s)e[Px("0xb")](t),e[Px("0x14")][Px("0x1d")](t,Qo(n,Px("0xf")));for(const t of x)e._registerInlineAttribute(t),e[Px("0x14")][Px("0x1d")](t,Qo(n,Px("0xf")));this[Px("0x17")]()}_registerLegacyDescription(){const t=this[Px("0x3")],e=t[Px("0x9")];t[Px("0x15")][Px("0xc")]("TrackChangesEditing")._descriptionFactory[Px("0x19")]((t=>{if(Px("0xd")!=t[Px("0x6")]&&Px("0x1c")!=t[Px("0x6")])return;const{data:n}=t;return n&&Px("0x7")===n[Px("0x18")]?n[Px("0x20")][0].forceValue?{type:"format",content:Qo(e,Px("0x11"),n.commandParams[0].styleName[Px("0x12")]())}:{type:Px("0x1a"),content:Qo(e,"*Remove format:* %0",n[Px("0x20")][0][Px("0x1f")].toLowerCase())}:void 0}))}}const jx=["accept","getContainedElement","editor","getFirstRange","end","change:data","ELEMENT_TABLE_COLUMN_WITH_TEXT","_splitMarkerName","min","low","createRangeOn","createPositionAt","item","_tablePostFixingSubtypes","insertion","insertTable","highest","map","last","tablePaste","order","getSuggestion","showSuggestionHighlights","enableCommand","includes","length","*Insert:* %0","registerCustomCallback","isInContent","batch","_getCoordsForCells","model","_getSuggestionCoords","$textProxy","setSelection","rowspan","createTableWalker","minColumn","root","get","rootName","max","MIN_SAFE_INTEGER","getSelectionAffectedTableCells","isEqual","tableCell","nodeAfter","maxRow","ELEMENT_TABLE_ROW","_acceptFormatSuggestionCallbackFactory","getItems","differ","has","nodeBefore","tableColumn","enqueueChange","TableUtils","findAncestor","_descriptionFactory","$graveyard","selectTableColumn","classes","substr","change","addRange","fromRange","writer","some","cell","removeClass","discard","markMultiRangeInsertion","getChangedMarkers","markMultiRangeDeletion","insertTableColumnRight","mapper","join","registerDescriptionCallback","selectTableRow","minRow","hasAttribute","first","toLowerCase","isArray","insertTableRowAbove","getCellLocation","removeTableRow","toViewElement","getRanges","position","isIntersectingWithRange","insert","subType","deletion","maxColumn","selection","afterInit","every","data","insertTableRowBelow","tableRow","getColumnIndexes","push","options","document","detach","getChanges","above","ELEMENT_TABLE_COLUMN","forceValue","suggestion","ELEMENT_TABLE_ROW_WITH_TEXT","execute","removeTableColumn","filter","createRangeIn","locale","TrackChangesEditing","start","type","_tableSuggestions","plugins","getRowIndexes","commands","addMarker:suggestion","_suggestionFactory","name","_setupColumnsRowsFixing","addClass","add","getAttribute","oldRange","ELEMENT_TABLE_WITH_TEXT","from","colspan","values","table","refresh","getChildren","ELEMENT_TABLE","*Remove:* %0"];var Gx,Vx;Gx=jx,Vx=487,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Hx("0x5a")]=[Hx("0x24"),Hx("0x83")],this[Hx("0x38")]=new Set}[Hx("0x20")](){const t=this[Hx("0x4f")],e=t[Hx("0x6c")].document[Hx("0x1f")];if(!t[Hx("0x39")][Hx("0x81")]("TableEditing"))return;const n=t[Hx("0x34")],o=t[Hx("0x39")][Hx("0x74")](Hx("0x35")),r=t[Hx("0x39")][Hx("0x74")](Hx("0x85"));o._descriptionFactory.registerElementLabel(Hx("0x48"),(t=>Qo(n,Hx("0x4b"),t))),this[Hx("0x3f")](),o[Hx("0x64")](Hx("0x5c")),o[Hx("0x64")](Hx("0xe")),o.enableCommand(Hx("0x89"));for(const n of[Hx("0x14"),Hx("0x23")]){const i=t[Hx("0x3b")][Hx("0x74")](n);o[Hx("0x64")](n,(n=>{t[Hx("0x6c")].change((t=>{n();const s=Hx("0x2b")===i.order,x=r.getSelectionAffectedTableCells(e),a=r[Hx("0x3a")](x),c=s?a[Hx("0x11")]-1:a[Hx("0x5f")]+1,l=x[0][Hx("0x86")](Hx("0x48")),u=r[Hx("0x71")](l,{startRow:c,endRow:c}),d=Array[Hx("0x45")](u)[Hx("0x5e")]((e=>t[Hx("0x57")](e[Hx("0x4")])));o[Hx("0x7")](d,Hx("0x24"))}))}))}for(const n of["insertTableColumnLeft",Hx("0xa")]){const i=t[Hx("0x3b")][Hx("0x74")](n);o[Hx("0x64")](n,(n=>{t[Hx("0x6c")][Hx("0x8c")]((t=>{n();const s="left"===i[Hx("0x61")],x=r[Hx("0x78")](e),a=r[Hx("0x25")](x),c=s?a[Hx("0x11")]-1:a[Hx("0x5f")]+1,l=x[0][Hx("0x86")](Hx("0x48")),u=r[Hx("0x71")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x45")](u).map((e=>t[Hx("0x57")](e[Hx("0x4")])));o.markMultiRangeInsertion(d,Hx("0x83"))}))}))}for(const n of["removeTableRow",Hx("0x31")]){const i=n[Hx("0x8b")](11),s=i[Hx("0x12")](),x=s[Hx("0x8b")](0,3)+"span",a=Hx("0x48")+i,c=Hx("0x55")+i,l=Hx("0x76")+i;o[Hx("0x64")](n,(()=>{t.model[Hx("0x8c")]((t=>{const i=r[Hx("0x78")](e),u=i[0].findAncestor(Hx("0x48"));let d;if(Hx("0x16")==n){const t=r[Hx("0x3a")](i);d={startRow:t.first,endRow:t[Hx("0x5f")],includeAllSlots:!0}}else{const t=r.getColumnIndexes(i);d={startColumn:t[Hx("0x11")],endColumn:t[Hx("0x5f")],includeAllSlots:!0}}const g=r.createTableWalker(u,d),f=Array[Hx("0x45")](g)[Hx("0x5e")]((({cell:t})=>t)),m=Wx(f[Hx("0x32")]((t=>t[Hx("0x10")](x)))),h=Wx(f[Hx("0x32")]((t=>!t[Hx("0x10")](x))))[Hx("0x5e")]((e=>t.createRangeOn(e))),p=o[Hx("0x9")](h,a);if(p&&(Hx("0x24")==p[Hx("0x1c")]||Hx("0x83")==p[Hx("0x1c")])){const e=this._getSuggestionCoords(p);for(const n of m){const o=t[Hx("0x57")](n),i=r.getCellLocation(n),a=n[Hx("0x42")](x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&p.addRange(o)}}}))}))}function i(n){const o=Array[Hx("0x45")](e[Hx("0x18")]())[Hx("0x5e")]((t=>s.LiveRange.fromRange(t)));t[Hx("0x6c")][Hx("0x8c")]((e=>{const r=e[Hx("0x6a")];n=n.filter((t=>Hx("0x88")!=t.root[Hx("0x75")])),e[Hx("0x6f")](n),t.commands.get(Hx("0x16")).refresh(),t[Hx("0x30")](Hx("0x16"),{forceDefaultExecution:!0}),t[Hx("0x6c")][Hx("0x84")]((()=>{t[Hx("0x6c")][Hx("0x84")](r,(t=>{const e=o[Hx("0x32")]((t=>Hx("0x88")!=t[Hx("0x73")][Hx("0x75")]));e[Hx("0x66")]>0&&t[Hx("0x6f")](e);for(const t of o)t[Hx("0x29")]()}))}))}))}function a(n){t[Hx("0x6c")][Hx("0x8c")]((o=>{const r=Array.from(e[Hx("0x18")]())[Hx("0x5e")]((t=>s.LiveRange.fromRange(t))),i=[];for(const t of n)for(const e of t.getItems({shallow:!0}))i[Hx("0x26")](e);for(const e of i)Hx("0x88")!=e.root[Hx("0x75")]&&(o[Hx("0x6f")](o[Hx("0x58")](e,0)),t[Hx("0x3b")].get(Hx("0x31"))[Hx("0x49")](),t[Hx("0x30")](Hx("0x31"),{forceDefaultExecution:!0}));const x=r[Hx("0x32")]((t=>Hx("0x88")!=t[Hx("0x73")][Hx("0x75")]));x[Hx("0x66")]>0&&o[Hx("0x6f")](x);for(const t of r)t.detach()}))}function c(t,e){return e[Hx("0x21")]((e=>t.some((t=>t[Hx("0x51")][Hx("0x79")](e[Hx("0x36")])||e.end.isEqual(t[Hx("0x36")])))))}function l(t,e){return t.some((t=>e[Hx("0x3")]((e=>t[Hx("0x51")].isTouching(e[Hx("0x36")])))))}t[Hx("0x22")].downcastDispatcher.on(Hx("0x3c"),((t,e,n)=>{if(!n[Hx("0x27")][Hx("0x63")])return;const o=e[Hx("0x59")];if(!o)return;const r=n[Hx("0xb")][Hx("0x17")](o);function i(t){return Array[Hx("0x13")](t)?t:[t]}r&&Hx("0x7a")===o[Hx("0x3e")]&&(0,x.setHighlightHandling)(r,n[Hx("0x2")],((t,e,n)=>n[Hx("0x40")](i(e[Hx("0x8a")]),t)),((t,e,n)=>n[Hx("0x5")](i(e[Hx("0x8a")]),t)))}),{priority:Hx("0x5d")}),o[Hx("0x87")][Hx("0xd")]((t=>{if(Hx("0x5b")!=t.type&&Hx("0x1d")!=t.type)return;const e=t[Hx("0x4e")]();if(null!=e&&e.is("element","table")){if(Hx("0x5b")==t[Hx("0x37")]){const e=t.getItems()[Hx("0x32")]((t=>t.is(Hx("0x6e")))).map((t=>t[Hx("0x22")]));if(e[Hx("0x66")])return{type:Hx("0x5b"),content:Qo(n,"*Insert:* %0",Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if(Hx("0x1d")==t[Hx("0x37")]){const e=t[Hx("0x7f")]()[Hx("0x32")]((t=>t.is("$textProxy")))[Hx("0x5e")]((t=>t.data));if(e[Hx("0x66")])return{type:Hx("0x1d"),content:Qo(n,Hx("0x4c"),Qo(n,Hx("0x44"),'"'+e[Hx("0xc")](" ")+'"'))}}}})),o[Hx("0x87")][Hx("0xd")]((t=>{if("tableRow"==t.subType){const e=t[Hx("0x7f")]()[Hx("0x32")]((t=>t.is("$textProxy")))[Hx("0x5e")]((t=>t[Hx("0x22")])),o=this._getSuggestionCoords(t),r=o[Hx("0x7c")]-o[Hx("0xf")]+1;if(Hx("0x5b")==t[Hx("0x37")])return e.length?{type:Hx("0x5b"),content:Qo(n,Hx("0x67"),Qo(n,Hx("0x2f"),[r,'"'+e[Hx("0xc")](" ")+'"']))}:{type:Hx("0x5b"),content:Qo(n,Hx("0x67"),Qo(n,"ELEMENT_TABLE_ROW",r))};if(Hx("0x1d")==t[Hx("0x37")])return e.length?{type:Hx("0x1d"),content:Qo(n,Hx("0x4c"),Qo(n,Hx("0x2f"),[r,'"'+e.join(" ")+'"']))}:{type:Hx("0x1d"),content:Qo(n,Hx("0x4c"),Qo(n,Hx("0x7d"),r))}}if("tableColumn"==t[Hx("0x1c")]){const e=t[Hx("0x7f")]()[Hx("0x32")]((t=>t.is(Hx("0x6e")))).map((t=>t.data)),o=this[Hx("0x6d")](t),r=o[Hx("0x1e")]-o[Hx("0x72")]+1;if("insertion"==t[Hx("0x37")])return e[Hx("0x66")]?{type:Hx("0x5b"),content:Qo(n,Hx("0x67"),Qo(n,Hx("0x53"),[r,'"'+e[Hx("0xc")](" ")+'"']))}:{type:Hx("0x5b"),content:Qo(n,Hx("0x67"),Qo(n,Hx("0x2c"),r))};if(Hx("0x1d")==t[Hx("0x37")])return e[Hx("0x66")]?{type:Hx("0x1d"),content:Qo(n,Hx("0x4c"),Qo(n,Hx("0x53"),[r,'"'+e[Hx("0xc")](" ")+'"']))}:{type:Hx("0x1d"),content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x2c"),r))}}})),o[Hx("0x3d")][Hx("0x68")](Hx("0x5b"),"tableRow",Hx("0x6"),i),o[Hx("0x3d")][Hx("0x68")](Hx("0x1d"),Hx("0x24"),Hx("0x4d"),i),o[Hx("0x3d")][Hx("0x68")](Hx("0x5b"),Hx("0x83"),Hx("0x6"),a),o[Hx("0x3d")].registerCustomCallback(Hx("0x1d"),Hx("0x83"),Hx("0x4d"),a),o[Hx("0x3d")][Hx("0x68")](Hx("0x5b"),Hx("0x83"),Hx("0xc"),c),o[Hx("0x3d")][Hx("0x68")](Hx("0x1d"),Hx("0x83"),Hx("0xc"),c),o._suggestionFactory.registerCustomCallback("insertion",Hx("0x24"),Hx("0xc"),l),o._suggestionFactory[Hx("0x68")](Hx("0x1d"),Hx("0x24"),"join",l)}[Hx("0x7e")](){const t=this[Hx("0x4f")],e=t.model[Hx("0x28")][Hx("0x1f")];return(n,o)=>{t[Hx("0x6c")][Hx("0x8c")]((r=>{const{commandName:i,commandParams:x}=o;let a=n[0].end[Hx("0x82")];x&&x[0]&&!1===x[0][Hx("0x2d")]&&(a=n[0][Hx("0x36")][Hx("0x7b")]);const c=r[Hx("0x33")](a);if("$graveyard"==c[Hx("0x73")].rootName)return;const l=Array[Hx("0x45")](e.getRanges())[Hx("0x5e")]((t=>s.LiveRange[Hx("0x1")](t)));r[Hx("0x6f")](c),t.commands[Hx("0x74")](i)[Hx("0x49")](),x[Hx("0x26")]({forceDefaultExecution:!0}),t[Hx("0x30")](i,...x);const u=l[Hx("0x32")]((t=>Hx("0x88")!=t.root.rootName));u[Hx("0x66")]>0&&r[Hx("0x6f")](u);for(const t of l)t.detach()}))}}[Hx("0x6b")](t){const e=this[Hx("0x4f")].plugins[Hx("0x74")](Hx("0x85"));let n=Number.MAX_SAFE_INTEGER,o=Number[Hx("0x77")],r=Number.MAX_SAFE_INTEGER,i=Number[Hx("0x77")];for(const s of t){if(Hx("0x88")==s[Hx("0x73")][Hx("0x75")])continue;const{row:t,column:x}=e[Hx("0x15")](s),a=s[Hx("0x10")](Hx("0x70"))?s[Hx("0x42")]("rowspan")-1:0,c=s[Hx("0x10")](Hx("0x46"))?s.getAttribute(Hx("0x46"))-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}}_setupColumnsRowsFixing(){const t=this[Hx("0x4f")],e=t.plugins[Hx("0x74")](Hx("0x35")),n=t[Hx("0x39")][Hx("0x74")](Hx("0x85"));t[Hx("0x6c")][Hx("0x28")].on(Hx("0x52"),(()=>{const n=Array[Hx("0x45")](t[Hx("0x6c")][Hx("0x28")][Hx("0x80")][Hx("0x8")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:i}=e[Hx("0x54")](t);if(Hx("0x2e")!=n)continue;if(null!=o[Hx("0x43")])continue;const s=e[Hx("0x62")](r);this[Hx("0x5a")][Hx("0x65")](i)&&this[Hx("0x38")][Hx("0x41")](s)}}),{priority:Hx("0x56")});const o=(t,e)=>{let o=!1;const r=e.createRangeOn(t),i=t[Hx("0x86")](Hx("0x48")),s=n[Hx("0x15")](t);for(const e of this[Hx("0x38")]){const n=e[Hx("0x1c")],x=n.startsWith(Hx("0x60")),a=n[Hx("0x8b")](x?10:5),c=a[Hx("0x12")](),l=c[Hx("0x8b")](0,3)+"span",u=Hx("0x55")+a,d=Hx("0x76")+a;if(!e[Hx("0x69")])continue;if(i!=e[Hx("0x50")]()[Hx("0x36")][Hx("0x86")](Hx("0x48")))continue;if(e[Hx("0x1a")](r))continue;const g=t[Hx("0x10")](l)?t[Hx("0x42")](l)-1:0,f=this._getSuggestionCoords(e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x0")](r),o=!0)}return o};t.model[Hx("0x28")].registerPostFixer((e=>{let n=!1;for(const r of t[Hx("0x6c")][Hx("0x28")].differ[Hx("0x2a")]())if(Hx("0x1b")==r[Hx("0x37")])if(Hx("0x24")==r[Hx("0x3e")])for(const t of r[Hx("0x19")][Hx("0x7b")][Hx("0x4a")]())n=n||o(t,e);else Hx("0x7a")==r[Hx("0x3e")]&&(n=n||o(r.position[Hx("0x7b")],e));return n}))}_getSuggestionCoords(t){return this[Hx("0x6b")](t[Hx("0x18")]()[Hx("0x5e")]((t=>t[Hx("0x36")][Hx("0x7b")])))}}function Wx(t){return Array[Hx("0x45")](new Set(t)[Hx("0x47")]())}const Kx=["findAncestor","set:isEnabled","formatBlock","low","editor","getRanges","get","requires","document","containsRange","commandName","plugins","model","TrackChangesEditing","execute","*Merge cells*","createRangeOn","cell","enableCommand","isInContent","TableEditing","change","push","mergeTableCellDown","_isForcedDefaultExecutionBlock","mergeTableCellRight","size","registerCustomCallback","splitTableCellHorizontally","fromRange","subType","mergeTableCells","_areMergableCells","*Split cell:* vertically","refresh","has","isEnabled","mergeTableCellUp","setSelection","mergeTableCellLeft","getCellLocation","from","markMultiRangeBlockFormat","getAncestors","*Split cell:* horizontally","table","selection","trackChanges","commands","length","locale","map","find","filter","$graveyard","horizontally","accept","splitTableCellVertically","_areSelectedCellsMergable","format","createTableWalker","TableUtils","value","add","forceDefaultExecution","author","direction","root","_suggestionFactory","_descriptionFactory","type","getSelectionAffectedTableCells","registerDescriptionCallback","insertion","stop","getFirstPosition","tableCell","element","highest"];var qx,Xx;qx=Kx,Xx=346,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[$x("0x38")](){return[zx]}afterInit(){const t=this[$x("0x35")],e=t[$x("0x3d")][$x("0x39")][$x("0x10")],n=t[$x("0x14")];if(!t[$x("0x3c")][$x("0x5")]($x("0x45")))return;const o=t[$x("0x3c")].get($x("0x3e")),r=t[$x("0x3c")].get("TableUtils"),i=t[$x("0x3c")][$x("0x37")](zx);i._tablePostFixingSubtypes[$x("0x47")]($x("0x1")),o[$x("0x43")]($x("0x1"),(()=>{const e=r.getSelectionAffectedTableCells(t.model[$x("0x39")][$x("0x10")]);t[$x("0x3d")][$x("0x46")]((()=>{o[$x("0xc")](e,{commandName:$x("0x1"),commandParams:[]},[],$x("0x1"))}))})),t[$x("0x12")][$x("0x37")]($x("0x1")).on($x("0x3f"),((e,n)=>{t[$x("0x12")][$x("0x37")]($x("0x11"))[$x("0x20")]&&(n[$x("0x13")]>0&&n[n[$x("0x13")]-1]&&n[n.length-1][$x("0x22")]||o[$x("0x49")]||this._areSelectedCellsMergable()||e.stop())}),{priority:$x("0x30")});for(const e of[$x("0x7"),"mergeTableCellRight",$x("0x48"),$x("0x9")]){const n=t[$x("0x12")][$x("0x37")](e);o.enableCommand(e,(()=>{const e=t[$x("0x3d")][$x("0x39")].selection[$x("0x2d")]()[$x("0xd")]()[$x("0x16")]((t=>t.is($x("0x2f"),$x("0x2e")))),r=n.value;t[$x("0x3d")][$x("0x46")]((()=>{o[$x("0xc")]([e,r],{commandName:"mergeTableCells",commandParams:[]},[],$x("0x1"))}))}))}for(const e of[$x("0x1b"),$x("0x4d")]){const n=t[$x("0x12")][$x("0x37")](e);o[$x("0x43")](e,(()=>{const i=r[$x("0x29")](t[$x("0x3d")].document[$x("0x10")])[0],s=i[$x("0x31")]($x("0xf")),{column:x,row:a}=r[$x("0xa")](i);let c=[];if($x("0x19")==n[$x("0x24")]){const t=r[$x("0x1e")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0xb")](t).map((t=>t[$x("0x42")]))}else{const t=r[$x("0x1e")](s,{column:x,includeAllSlots:!0});c=Array[$x("0xb")](t)[$x("0x15")]((t=>t[$x("0x42")]))}t[$x("0x3d")][$x("0x46")]((t=>{o.markBlockFormat(t[$x("0x41")](i),{commandName:e,commandParams:[]},c,e)}))}))}o[$x("0x27")].registerDescriptionCallback((t=>{if("formatBlock"!=t.type&&"formatInline"!=t[$x("0x28")])return;const{data:e}=t;return e&&$x("0x1")==e[$x("0x3b")]?{type:$x("0x1d"),content:Qo(n,$x("0x40"))}:void 0})),o._descriptionFactory[$x("0x2a")]((t=>{if("formatBlock"!=t[$x("0x28")]&&"formatInline"!=t[$x("0x28")])return;const{data:e}=t;return e?"splitTableCellVertically"==e[$x("0x3b")]?{type:"format",content:Qo(n,$x("0x3"))}:$x("0x4d")==e[$x("0x3b")]?{type:$x("0x1d"),content:Qo(n,$x("0xe"))}:void 0:void 0}));const x=i._acceptFormatSuggestionCallbackFactory();for(const t of[$x("0x7"),$x("0x4a"),"mergeTableCellDown","mergeTableCellLeft"])o[$x("0x26")][$x("0x4c")]($x("0x33"),t,"accept",x);for(const t of[$x("0x1b"),$x("0x4d")])o[$x("0x26")][$x("0x4c")]($x("0x33"),t,"accept",x);o[$x("0x26")][$x("0x4c")]("formatBlock","mergeTableCells",$x("0x1a"),(n=>{t.model.change((o=>{const r=Array.from(e[$x("0x36")]())[$x("0x15")]((t=>s.LiveRange[$x("0x4e")](t)));o[$x("0x8")](n),t[$x("0x12")][$x("0x37")]("mergeTableCells")[$x("0x4")](),t.execute($x("0x1"),{forceDefaultExecution:!0});const i=r[$x("0x17")]((t=>$x("0x18")!=t[$x("0x25")].rootName));i[$x("0x13")]>0&&o.setSelection(i);for(const t of r)t.detach()}))}));for(const e of[$x("0x7"),$x("0x48"),$x("0x9"),"mergeTableCellRight"]){const n=t.commands.get(e);n.on($x("0x32"),((e,o,r)=>{if(r){const o=t[$x("0x3d")].document[$x("0x10")].getFirstPosition()[$x("0xd")]().find((t=>t.is($x("0x2f"),$x("0x2e"))));this[$x("0x2")](n[$x("0x20")],o)||(e.return=!1,e[$x("0x2c")]())}}),{priority:$x("0x34")})}}[$x("0x1c")](){const t=this.editor[$x("0x12")][$x("0x37")]($x("0x1")),e=this[$x("0x35")].plugins[$x("0x37")]($x("0x1f"));if(!t[$x("0x6")])return!1;const n=e.getSelectionAffectedTableCells(this[$x("0x35")][$x("0x3d")][$x("0x39")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x2")](t,e))return!1;return!0}[$x("0x2")](t,e){const n=this[$x("0x35")][$x("0x3c")][$x("0x37")]("TrackChangesEditing"),o=this[$x("0x35")].model.createRangeOn(t),r=this[$x("0x35")][$x("0x3d")][$x("0x41")](e),i=new Set,s=new Set;for(const t of n.getSuggestions())if(($x("0x2b")==t.type||"deletion"==t[$x("0x28")]||$x("0x1")==t[$x("0x0")])&&t[$x("0x44")])for(const e of t[$x("0x36")]())e[$x("0x3a")](o,!0)&&i[$x("0x21")](t.type+":"+t[$x("0x23")].id),e[$x("0x3a")](r,!0)&&s[$x("0x21")](t[$x("0x28")]+":"+t[$x("0x23")].id);if(i[$x("0x4b")]!=s[$x("0x4b")])return!1;for(const t of i)if(!s[$x("0x5")](t))return!1;return!0}}const Yx=["data","_enableDefaultAttributesIntegration","activeMarkers","setAttribute","mapper","setTableRowHeader","data-suggestion","writer","parent","setTableColumnHeader","_acceptFormatSuggestionCallbackFactory","removeAttribute","consumable","includes","cell","showSuggestionHighlights","forceValue","createTableWalker","FORMAT_HEADER_COLUMN","downcastDispatcher","type","unbindElementFromMarkerName","plugins","FORMAT_HEADER_ROW","toViewElement","_handleLegacySuggestions","editor","item","nodeBefore","end","markerRange","options","TrackChangesEditing","FORMAT_REGULAR_COLUMN","editing","commandName","accept","_registerLegacyDescription","ck-suggestion-marker-","ck-suggestion-marker--active","format","headingColumns","getSuggestion","nodeAfter","registerAttributeLabel","bindElementToMarker","stop","markerNameToElements","commandParams","formatBlock","markerName","consume","addClass","_descriptionFactory","name","_splitMarkerName","start","addMarker:suggestion","locale","_suggestionFactory","registerCustomCallback","requires","FORMAT_REGULAR_ROW","removeClass","highest","*Format:* %0","get"];var Jx,Qx;Jx=Yx,Qx=108,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("0x14")](){return[zx]}afterInit(){const t=this.editor;if(!t[ta("0x30")].has("TableEditing"))return;const e=t[ta("0x11")],n=t[ta("0x30")][ta("0x19")](ta("0x3a"));n[ta("0x1b")](ta("0x1f"),[],["headingRows"]),n[ta("0x1b")](ta("0x23"),[],[ta("0x0")]),n[ta("0xc")].registerAttributeLabel("headingRows",Qo(e,ta("0x31"))),n[ta("0xc")][ta("0x3")](ta("0x0"),Qo(e,ta("0x2c"))),this[ta("0x33")]()}[ta("0x33")](){const t=this[ta("0x34")][ta("0x30")][ta("0x19")](ta("0x3a")),e=this[ta("0x34")][ta("0x30")][ta("0x19")]("TableUtils"),n=this.editor[ta("0x30")].get(zx)[ta("0x24")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(r,i,s)=>{const{type:x,id:a}=t[ta("0xe")](i[ta("0x9")]),c=t.getSuggestion(a),l=c.data;if(ta("0x8")!=c[ta("0x2e")]||!l||ta("0x23")!=l[ta("0x3d")])return;if(i[ta("0x35")])return void r[ta("0x5")]();if(!s[ta("0x26")][ta("0xa")](i[ta("0x38")],r[ta("0xd")]))return;const u=i[ta("0x38")][ta("0xf")][ta("0x2")],d=i[ta("0x38")][ta("0x37")][ta("0x36")],g=u[ta("0x22")][ta("0x22")],{column:f}=e.getCellLocation(u),{column:m}=e.getCellLocation(d);for(let r=f;r<=m;r++){const c=e[ta("0x2b")](g,{column:r,includeAllSlots:!1});for(const e of c){const r=e[ta("0x28")],c=s[ta("0x1e")][ta("0x32")](r);s[ta("0x21")][ta("0xb")](ta("0x40")+x,c),o&&s[ta("0x21")][ta("0x1d")](ta("0x20"),a,c),s[ta("0x1e")][ta("0x4")](c,i[ta("0x9")]),n&&(t[ta("0x1c")][ta("0x27")](i[ta("0x9")])?s.writer.addClass("ck-suggestion-marker--active",c):s[ta("0x21")].removeClass(ta("0x41"),c))}}}}t[ta("0x12")].registerCustomCallback(ta("0x8"),ta("0x1f"),ta("0x3e"),n),t._suggestionFactory[ta("0x13")](ta("0x8"),ta("0x23"),ta("0x3e"),n),this[ta("0x34")][ta("0x3c")][ta("0x2d")].on("addMarker:suggestion",o(),{priority:ta("0x17")}),this[ta("0x34")][ta("0x1a")][ta("0x2d")].on(ta("0x10"),((t,e,n)=>{n[ta("0x39")][ta("0x29")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0x17")}),this[ta("0x34")].editing[ta("0x2d")].on("removeMarker:suggestion",((e,n,o)=>{const{type:r,id:i}=t._splitMarkerName(n.markerName),s=t[ta("0x1")](i),x=s[ta("0x1a")];if(ta("0x8")!=s[ta("0x2e")]||!x||ta("0x23")!=x[ta("0x3d")])return;const a=o[ta("0x1e")][ta("0x6")](n[ta("0x9")]);if(a)for(const t of a)o.writer[ta("0x16")](ta("0x40")+r,t),o[ta("0x21")].removeClass(ta("0x41"),t),o[ta("0x21")][ta("0x25")]("data-suggestion",t),o.mapper[ta("0x2f")](t,n.markerName)}),{priority:"highest"}),this[ta("0x3f")]()}[ta("0x3f")](){const t=this[ta("0x34")],e=t[ta("0x11")];function n(t){return{type:ta("0x42"),content:Qo(e,ta("0x18"),t)}}t.plugins[ta("0x19")]("TrackChangesEditing")[ta("0xc")].registerDescriptionCallback((t=>{if(ta("0x8")!=t[ta("0x2e")])return;const{data:o}=t;if(o){if(ta("0x1f")==o.commandName){const t=o[ta("0x7")][0][ta("0x2a")];return n(Qo(e,ta(t?"0x31":"0x15")))}if(ta("0x23")==o[ta("0x3d")]){const t=o.commandParams[0].forceValue;return n(Qo(e,ta(t?"0x2c":"0x3b")))}}}))}}const na=["author","add","setAttributes","discard","getRows","getItems","type","TableClipboard","registerDescriptionCallback","cell","ck-suggestion-marker--active","paragraph","isEqual","*Replace table cells*","createRangeIn","markerAttributes","registerCustomCallback","forceDefaultExecution","tableCellSuggestion","fill","previous","subType","createRange","nodeAfter","_tablePostFixingSubtypes","tablePaste","getAllAdjacentSuggestions","return","map","Users","documentSelection","tableCellBackgroundColor","_suggestionFactory","newRange","from","markMultiRangeInsertion","deletionRanges","TrackChangesEditing","schema","suggestionUnloaded","requires","rows","_getCoordsForCells","getRanges","tableCell","editor","getColumns","tablePasteCell","removeMarkers","attributes","join","getColumnIndexes","value","afterInit","some","filter","tableCellBorderStyle","low","keys","for","tablePasteChainId","getSelectionAffectedTableCells","last","end","batch","isInContent","startsWith","remove","unwrap","oldRange","trackChanges","tablePasteRow","_createdBatches","getSuggestionCallback","move","stop","_splitMarkerName","differ","markMultiRangeDeletion","getChangedMarkers","tablePasteColumn","view","conversion","ck-suggestion-marker-insertion","insertContent","start","cells","insertRows","position","createRangeOn","insertion","get","columns","getAttributes","getContainedElement","getRange","getTableIfOnlyTableInContent","rootName","insert","find","getChild","includes","removeRows","getMarkers","document","register","high","fromEntries","columnInsertionIndexes","element","createTableWalker","createElement","first","deletion","locale","row","model","removeMarker","has","column","table","formatBlock","$graveyard","length","markerName","markerToHighlight","commands","elementToElement","ck-suggestion-marker","removeColumns","next","change","editing","suggestion-td","entries","getChanges","registerPostFixer","suggestion:formatBlock:tablePasteCell","clipboardOutput","isEmpty","markers","containsRange","suggestion","plugins","endColumn","name","findAncestor","accept","getSuggestions","push","markMultiRangeBlockFormat","getChildren"];var oa,ra;oa=na,ra=495,function(t){for(;--t;)oa.push(oa.shift())}(++ra);const ia=function(t,e){return na[t-=0]},sa=["tableCellBorderWidth","tableCellBorderColor",ia("0x11"),"tableCellHorizontalAlignment","tableCellVerticalAlignment",ia("0x90"),"tableCellPadding"],xa=Object[ia("0x44")](sa[ia("0x8d")]((t=>[t,null])));class aa extends t.Plugin{static get[ia("0x1")](){return[zx]}[ia("0xe")](){const t=this[ia("0x6")];if(!t[ia("0x68")][ia("0x4f")](ia("0x78")))return;const n=t.plugins[ia("0x34")](ia("0x96")),o=t.plugins[ia("0x34")]("TableUtils"),r=t[ia("0x68")][ia("0x34")](zx),i=t.plugins[ia("0x34")](ia("0x78"));r[ia("0x89")][ia("0x6e")]("tablePasteRow","tablePasteColumn"),t[ia("0x4d")][ia("0x97")][ia("0x42")](ia("0x83"),{allowIn:ia("0x5"),allowContentOf:ia("0x5"),isLimit:!0}),t[ia("0x2b")][ia("0x58")]({model:"tableCellSuggestion",view:"suggestion-td"});let s=null;t.model.on(ia("0x2d"),((r,x)=>{const[a,c]=x,l=x[x[ia("0x54")]-1];l&&l[ia("0x82")]||n._isForcedDefaultExecutionBlock||this[ia("0x6")][ia("0x57")][ia("0x34")](ia("0x1f"))[ia("0xd")]&&function(t,e,n,o,r){if(e&&!e.is(ia("0x8f")))return!1;const i=r[ia("0x39")](t,n);if(!i||!la(i,void 0,o))return!1;const s=o[ia("0x16")](n[ia("0x41")].selection);if(!s.length)return!1;const x=s[0][ia("0x6b")](ia("0x51")),a=o.getRowIndexes(s),c=o[ia("0xc")](s),l={startRow:a[ia("0x49")],endRow:a[ia("0x17")],startColumn:c[ia("0x49")],endColumn:c[ia("0x17")]};return 1==s[ia("0x54")]&&(l.endRow+=o[ia("0x75")](i)-1,l[ia("0x69")]+=o[ia("0x7")](i)-1),la(x,l,o)}(a,c,t.model,o,i)&&(r[ia("0x24")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ia("0x4d")][ia("0x5c")]((()=>{t[ia("0x4d")][ia("0x2d")](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[ia("0x54")]&&n[ia("0x94")](r,ia("0x20"),{tablePasteChainId:o}),i[ia("0x54")]&&n.markMultiRangeInsertion(i,ia("0x29"),{tablePasteChainId:o}),a[ia("0x54")]&&n[ia("0x94")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[ia("0x54")]&&n[ia("0x27")](c,ia("0x8a"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ia("0x6f")](l[ia("0x8d")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ia("0x8"),{tablePasteChainId:o});if(u){const e=u[ia("0x40")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const i=t[ia("0x4d")].createRangeOn(o),s=e[ia("0x3c")]((t=>t.getRange().isEqual(i)));s&&n[ia("0x6e")]([s[ia("0x6a")],r])}n[ia("0x54")]&&u.setAttribute(ia("0x80"),Object[ia("0x44")](n))}s=null})))}),{priority:e.priorities[ia("0x43")]+10}),t[ia("0x68")][ia("0x34")](ia("0x78")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,r]=e;if(!s)return;t[ia("0x24")]();const i=n[ia("0x7a")],x=o,a=ca(i),c=ca(x);t[ia("0x8c")]=i;let l=null,u=null;if(c||a)if(a&&!c){r[ia("0x1c")](i.getChild(0));for(const t of Array.from(x[ia("0x70")]()))r[ia("0x3b")](t,i,"end");const t=s.rowInsertionIndexes[ia("0x3e")](n[ia("0x4c")]),e=s[ia("0x45")][ia("0x3e")](n[ia("0x50")]);t||e||(l=r[ia("0x7f")](i))}else c&&!a&&(u=r.createRangeIn(i));else{const t=r[ia("0x48")](ia("0x83")),e=r[ia("0x48")](ia("0x83"));r.wrap(r[ia("0x7f")](i),e),r[ia("0x3b")](t,i,0);for(const e of Array[ia("0x93")](x[ia("0x70")]()))r[ia("0x3b")](e,t,ia("0x18"));l=r[ia("0x32")](t),u=r[ia("0x32")](e)}const d=Array[ia("0x93")](x[ia("0x36")]())[ia("0x10")]((([t])=>sa.includes(t)));s[ia("0x2f")].push({element:i,attributes:d.length?Object.fromEntries(d):null}),l&&s.insertionRanges[ia("0x6e")](l),u&&s[ia("0x95")].push(u)}),{priority:ia("0x43")}),o.on("insertColumns",((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x35")]||1;s[ia("0x45")]=new Array(a).fill(x)[ia("0x8d")](((t,e)=>t+e));for(const{cell:e}of o[ia("0x47")](r,{startColumn:x,endColumn:x+a-1}))s.columnInsertionRanges.push(t[ia("0x4d")][ia("0x32")](e))}),{priority:ia("0x12")}),o.on(ia("0x30"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x2")]||1;s.rowInsertionIndexes=new Array(a)[ia("0x84")](x)[ia("0x8d")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startRow:x,endRow:x+a-1}))s.rowInsertionRanges.push(t[ia("0x4d")].createRangeOn(e))}),{priority:ia("0x12")}),n._descriptionFactory[ia("0x79")]((e=>{if(e[ia("0x86")]&&e[ia("0x86")][ia("0x1b")]("tablePaste"))return e[ia("0x85")]?{}:{type:ia("0x33"),content:Qo(t[ia("0x4b")],ia("0x7e"))}}));const x=()=>!1;for(const t of["tablePaste","tablePasteColumn",ia("0x20"),ia("0x8")])n[ia("0x91")].registerCustomCallback(ia("0x33"),t,ia("0xb"),x),n._suggestionFactory[ia("0x81")](ia("0x4a"),t,ia("0xb"),x),n._suggestionFactory.registerCustomCallback(ia("0x52"),t,ia("0xb"),x);n[ia("0x91")][ia("0x81")](ia("0x52"),ia("0x8"),ia("0x74"),x),n[ia("0x91")].registerCustomCallback(ia("0x52"),"tablePasteCell","accept",((e,n,o)=>{const r=e.map((t=>t[ia("0x37")]()))[ia("0x10")]((t=>t)),i=new Map(r[ia("0x8d")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ia("0x2f")])e&&i.set(t,e);else if(o&&o[ia("0x80")])for(const[e,n]of Object[ia("0x5f")](o[ia("0x80")])){const o=t.model[ia("0x65")][ia("0x34")](e),r=o?o[ia("0x38")]()[ia("0x37")]():null;r&&i.set(r,n)}t.model.change((t=>{for(const[e,n]of i)t[ia("0x73")]({...xa,...n},e)}))}));const a=(e,o)=>{n[ia("0x91")].registerCustomCallback(e,"tablePaste",o,((r,i,s)=>{t.model[ia("0x5c")]((t=>{const x=[];for(const t of r){const e=t[ia("0x2e")][ia("0x88")];e.is(ia("0x46"),ia("0x83"))&&x[ia("0x6e")](e)}n[ia("0x91")][ia("0x22")](e,null,o)(r,i,s);for(const e of x)ia("0x53")!=e.root[ia("0x3a")]&&t[ia("0x1d")](e)}))}))};a(ia("0x33"),ia("0x6c")),a(ia("0x33"),"discard"),a(ia("0x4a"),ia("0x6c")),a(ia("0x4a"),ia("0x74")),n[ia("0x91")].registerCustomCallback(ia("0x33"),"tablePasteRow",ia("0x74"),(t=>{const e=t[ia("0x8d")]((t=>t.getContainedElement())),n=e[0][ia("0x6b")](ia("0x51")),{minRow:i,maxRow:s}=r._getCoordsForCells(e);o[ia("0x3f")](n,{at:i,rows:s-i+1})})),n[ia("0x91")][ia("0x81")]("insertion","tablePasteColumn",ia("0x74"),(t=>{const e=t.map((t=>t[ia("0x37")]())),n=e[0][ia("0x6b")](ia("0x51")),{minColumn:i,maxColumn:s}=r[ia("0x3")](e);o[ia("0x5a")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e.subType||!e[ia("0x86")][ia("0x1b")]("tablePaste"))return;const o=e.attributes[ia("0x15")],r=n.getSuggestions()[ia("0x10")]((t=>t.isInContent&&t.attributes&&t[ia("0xa")][ia("0x15")]==o));r[ia("0x54")]&&e[ia("0x8b")]()[ia("0x54")]!=r[ia("0x54")]&&r.reduce(((t,e)=>(t[ia("0x5b")]=e,e[ia("0x85")]=t,e)))};function l(t,e=!0){const{id:o}=n[ia("0x25")](t[ia("0x55")]),r=[ia("0x59"),ia("0x2c")],i=n.activeMarkers[ia("0x3e")](t[ia("0x55")]);return i&&r[ia("0x6e")](ia("0x7b")),{classes:r,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:ia("0x43")}),n.on(ia("0x0"),c,{priority:ia("0x43")}),t[ia("0x4d")].document.registerPostFixer((()=>{let e=!1;const o=Array.from(t[ia("0x4d")].document[ia("0x26")][ia("0x28")]());for(const{name:r,data:i}of o){const{group:o,type:s,id:x}=n[ia("0x25")](r);if(ia("0x67")!=o||ia("0x4a")!=s||i[ia("0x1e")])continue;if(!n.hasSuggestion(x))continue;const a=n.getSuggestion(x)[ia("0x4")](),c=t[ia("0x68")][ia("0x34")](ia("0x8e")).me;for(const t of n[ia("0x6d")]())if(t[ia("0x1a")]&&t[ia("0x71")]==c&&ia("0x52")==t.type&&ia("0x8")==t.subType&&t[ia("0x4")]().every((t=>a[ia("0xf")]((e=>e[ia("0x66")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n.isInContent&&(n[ia("0x74")](),e=!0)}return e})),t[ia("0x4d")].document.registerPostFixer((e=>{const o=t[ia("0x57")].get("redo");if(!o||!o[ia("0x21")][ia("0x4f")](e[ia("0x19")]))return!1;let r=!1;const i=t[ia("0x68")][ia("0x34")](ia("0x8e")).me,s=t.model[ia("0x41")].differ[ia("0x60")](),x=Array.from(t[ia("0x4d")][ia("0x41")][ia("0x26")][ia("0x28")]())[ia("0x10")]((({name:t,data:e})=>{const{group:o,subType:r,authorId:s}=n[ia("0x25")](t);return ia("0x67")==o&&ia("0x8a")==r&&s==i.id&&!e[ia("0x1e")]}));for(const t of s){if(ia("0x3b")!=t[ia("0x77")]||ia("0x83")!=t.name||1!=t[ia("0x54")])continue;const n=e[ia("0x87")](t[ia("0x31")],t[ia("0x31")].getShiftedBy(1));if(!x.find((({data:t})=>t[ia("0x92")][ia("0x7d")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[ia("0x92")])){e.updateMarker(t,{range:n}),r=!0;break}}return r})),t[ia("0x4d")].document[ia("0x61")]((e=>{let o=!1;const r=t[ia("0x68")].get("Users").me,i=n[ia("0x6d")]().filter((t=>t[ia("0x1a")]&&t[ia("0x71")]==r)),s=new Set,x=new Set;for(const t of i)if(ia("0x8a")==t[ia("0x86")])for(const e of t[ia("0x40")]()){const n=e[ia("0x38")]().getContainedElement();if(n)if(n.is(ia("0x46"),ia("0x83"))&&ca(n)){t[ia("0x4e")](e[ia("0x6a")]),s[ia("0x72")](n),o=!0;const r=n.nextSibling,i=n.previousSibling,a=r&&r.is(ia("0x46"),ia("0x83")),c=i&&i.is("element",ia("0x83"));a&&!s[ia("0x4f")](r)&&x[ia("0x72")](r),c&&!s[ia("0x4f")](i)&&x[ia("0x72")](i)}else n.is(ia("0x46"),ia("0x7c"))&&n[ia("0x64")]&&(t[ia("0x4e")](e.name),o=!0)}else if(ia("0x8")==t[ia("0x86")]){if(!t[ia("0xa")]||!t[ia("0xa")][ia("0x15")])continue;const e=t[ia("0xa")].markerAttributes;if(e&&Object[ia("0x13")](e)[ia("0x54")])continue;const n=t[ia("0xa")][ia("0x15")];let r=!0,s=!0;for(const e of i)if(e[ia("0x86")]&&e.subType[ia("0x1b")](ia("0x8a"))){if(!e.attributes[ia("0x15")]){s=!1;break}if(e.id!=t.id&&e[ia("0xa")].tablePasteChainId==n){r=!1;break}}s&&r&&(t[ia("0x9")](),o=!0)}for(const t of s)e[ia("0x1c")](t);for(const t of x)e[ia("0x1d")](t);return o})),t.conversion[ia("0x14")]("editingDowncast")[ia("0x56")]({model:ia("0x62"),view:(t,e)=>l(t),converterPriority:ia("0x43")}),t[ia("0x2b")][ia("0x14")]("dataDowncast")[ia("0x56")]({model:ia("0x62"),view:(t,e)=>e.options.showSuggestionHighlights?l(t,!1):null,converterPriority:ia("0x43")});const u=t[ia("0x5d")][ia("0x2a")];this.listenTo(u.document,ia("0x63"),((t,e)=>{const n=[];for(const t of u[ia("0x7f")](e.content)[ia("0x76")]())t.is(ia("0x46"),ia("0x5e"))&&n[ia("0x6e")](t);u.change((t=>{for(const e of n)t[ia("0x23")](t[ia("0x7f")](e),t.createPositionBefore(e)),t[ia("0x1c")](e)}))}))}}function ca(t){if(t.isEmpty)return!0;const e=t[ia("0x3d")](0);return e.is(ia("0x46"),"paragraph")&&e[ia("0x64")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:i}of n[ia("0x47")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=i)return!1;return!0}const ua=["table","_suggestionFactory","tableWidth","subType","Users","TableColumnResizeEditing","commandParams","getColumnGroupElement","selection","markBlockFormat","resizeTable","formatGroupId","format","has","TrackChangesEditing","handleResizeTableWidthCommand","editor","get","registerCustomCallback","bind","getSelectedElement","getTableColumnsWidths","document","formatBlock","*Format:* resize table","handleSuggestionDescription","resizeTableWidth","accept","getSuggestions","getSuggestionCallback","model","change","formatInline","data","discard","type","afterInit","plugins"];var da,ga;da=ua,ga=158,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x1e")](){if(!this[fa("0xa")].plugins[fa("0x7")](fa("0x25")))return;const t=this[fa("0xa")][fa("0x1f")][fa("0xb")](fa("0x8"));t.enableCommand(fa("0x14"),this[fa("0x9")][fa("0xd")](this)),t[fa("0x21")][fa("0xc")]("formatBlock",fa("0x4"),fa("0x15"),t[fa("0x21")][fa("0x17")](fa("0x11"),null,"discard")),t._suggestionFactory[fa("0xc")]("formatBlock","resizeTable",fa("0x1c"),t[fa("0x21")][fa("0x17")]("formatBlock",null,fa("0x15"))),t._descriptionFactory.registerDescriptionCallback(this[fa("0x13")][fa("0xd")](this))}[fa("0x9")](t,e){const n=this.editor[fa("0x1f")].get(fa("0x8")),o=this.editor.plugins[fa("0xb")](fa("0x25")),r=e[fa("0x20")]||this[fa("0xa")].model[fa("0x10")][fa("0x2")][fa("0xe")]();this[fa("0xa")][fa("0x18")][fa("0x19")]((()=>{const i=o[fa("0x1")](r);let s=i?o[fa("0xf")](i):null,x=r.getAttribute(fa("0x22"))||null;const a=e.tableWidth||x,c=e.columnWidths||s,l=this.editor.plugins[fa("0xb")](fa("0x24")).me;for(const t of n[fa("0x16")]()){const e=t.getContainedElement();if(fa("0x4")===t[fa("0x23")]&&e===r){t.author!==l&&t[fa("0x1c")]();const e=t[fa("0x1b")][fa("0x0")];x=e[0].tableWidth,s=e[0].columnWidths;break}}t({table:r,tableWidth:a,columnWidths:c}),n[fa("0x3")](r,{commandName:fa("0x14"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x4")},[],fa("0x4"))}))}handleSuggestionDescription(t){if(fa("0x11")!=t.type&&fa("0x1a")!=t[fa("0x1d")])return;const{data:e}=t;if(e&&"resizeTable"===e[fa("0x5")]){const t=fa("0x12");return{type:fa("0x6"),content:Qo(this.editor.locale,t)}}}}const ha=["Template","plugins","has","enableCommand","editor","afterInit","get"];var pa,ba;pa=ha,ba=134,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x4")](){const t=this[Ea("0x3")];t.plugins[Ea("0x1")](Ea("0x6"))&&t[Ea("0x0")][Ea("0x5")]("TrackChangesEditing")[Ea("0x2")]("insertTemplate")}}const Ta=["commands","tableOfContents","ELEMENT_TABLE_OF_CONTENTS","get","enableCommand","plugins","editor","TrackChangesEditing","locale","afterInit","insertTableOfContents"];var ya,Ca;ya=Ta,Ca=465,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x6")](){const t=this[Aa("0x3")];if(!t[Aa("0x8")].get(Aa("0x7")))return;t[Aa("0x2")][Aa("0x0")]("TrackChangesEditing")[Aa("0x1")]("insertTableOfContents");const e=t.plugins[Aa("0x0")](Aa("0x4")),n=t[Aa("0x5")];e._descriptionFactory.registerElementLabel(Aa("0x9"),(t=>Qo(n,Aa("0xa"),t)))}}const Ia=["getChangedMarkers","model","title-content","editor","document","has","schema","element","end","registerPostFixer","getNearestSelectionRange","forward","_descriptionFactory","removeMarker","isCollapsed","locale","afterInit","isTouching","plugins","updateMarker","createRange","start","newRange","suggestion","TrackChangesEditing","registerElementLabel","from"];var Sa,Ra;Sa=Ia,Ra=180,function(t){for(;--t;)Sa.push(Sa.shift())}(++Ra);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{[va("0x19")](){const t=this[va("0xc")];if(!t[va("0x0")][va("0xe")]("Title"))return;const e=t[va("0x0")].get(va("0x6"));e[va("0x15")][va("0x7")](va("0xb"),(()=>Qo(t[va("0x18")],"ELEMENT_TITLE"))),t[va("0xa")][va("0xd")][va("0x12")]((n=>{let o=!1;const r=Array[va("0x8")](t.model[va("0xd")].differ[va("0x9")]());for(const{name:i,data:s}of r){const{group:r}=e._splitMarkerName(i);if(va("0x5")!==r||!s.newRange)continue;const x=s[va("0x4")],a=x.end.nodeBefore;if(!a||!a.is(va("0x10"),va("0xb")))continue;if(!x[va("0x3")][va("0x1a")](x.end))continue;const c=t[va("0xa")][va("0xf")][va("0x13")](x[va("0x11")],va("0x14"));if(c&&c[va("0x17")]){const t=n[va("0x2")](x[va("0x3")],c[va("0x3")]);t.isEqual(x)||(n[va("0x1")](i,{range:t}),o=!0)}o||(n[va("0x16")](i),o=!0)}return o}))}}const La=["UndoEditing","editor","has","afterInit","plugins","enableCommand","redo","TrackChangesEditing"];var Ma,wa;Ma=La,wa=439,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x4")](){const t=this[Oa("0x2")],e=t[Oa("0x5")].get(Oa("0x0"));t[Oa("0x5")][Oa("0x3")](Oa("0x1"))&&(e[Oa("0x6")]("undo"),e[Oa("0x6")](Oa("0x7")))}}const Da=["get","toggleTableCaption","requires","editor","TableCaptionEditing","TrackChangesEditing","afterInit","plugins"];var Ba,Pa;Ba=Da,Pa=348,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x6")](){return[zx]}[Ua("0x2")](){const t=this[Ua("0x7")];t[Ua("0x3")].has(Ua("0x0"))&&t[Ua("0x3")][Ua("0x4")](Ua("0x1")).enableCommand(Ua("0x5"))}}const Ga=["has","tableCellHeight","tableCellBackgroundColor","join","data","editor","registerDescriptionCallback","TrackChangesTableProperties","tableProperties","accept","locale","tableBackgroundColor","tableBorderColor","getAttribute","formatBlock","registerCustomCallback","handleDiscardAction","start","tableBorderStyle","tableAlignment","TableCellPropertiesEditing","tableCellPadding","get","removeAttribute","change","table","tableCellProperties","tableWidth","tableCellVerticalAlignment","_getSuggestion","tableCellWidth","tableBorderWidth","batch","findAncestor","pluginName","tableCellBorderWidth","tableHeight","_suggestionFactory","format","*Format:* change table cell properties","handleSuggestionDescription","model","getSuggestionCallback","_descriptionFactory","TrackChangesEditing","selection","discard","_handlePropertyChange","nodeAfter","plugins","subType","tableCellHorizontalAlignment","enqueueChange","enableCommand","document"];var Va,Ha;Va=Ga,Ha=490,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0xd")]=[za("0x11"),za("0x17"),za("0x24"),za("0x18"),za("0x20"),za("0x29"),za("0x10")],this[za("0x1f")]=["tableCellBorderColor","tableCellBorderStyle",za("0x28"),za("0x1a"),za("0x23"),za("0x6"),za("0x7"),za("0x1"),za("0x21")]}static get[za("0x27")](){return za("0xc")}afterInit(){const t=this[za("0xa")].plugins[za("0x1b")](za("0x31"));if(this[za("0xa")][za("0x36")][za("0x5")]("TablePropertiesEditing")){for(const e of this[za("0xd")])t[za("0x3")](e,((t,n)=>{const o=this[za("0xa")][za("0x2e")][za("0x4")].selection.getFirstPosition()[za("0x26")](za("0x1e"));this[za("0x34")](e,[o],this[za("0xd")],"tableProperties",t,n)}));t[za("0x2a")].registerCustomCallback(za("0x13"),za("0xd"),za("0xe"),t[za("0x2a")][za("0x2f")](za("0x13"),null,"discard")),t._suggestionFactory[za("0x14")](za("0x13"),"tableProperties",za("0x33"),((t,e)=>this[za("0x15")](this.tableProperties,t,e))),t[za("0x2a")].registerCustomCallback(za("0x13"),za("0xd"),za("0x8"),(()=>!1))}if(this[za("0xa")].plugins.has(za("0x19"))){for(const e of this[za("0x1f")])t[za("0x3")](e,((t,n)=>{const o=this[za("0xa")].plugins[za("0x1b")]("TableUtils").getSelectionAffectedTableCells(this.editor.model[za("0x4")][za("0x32")]);this[za("0x34")](e,o,this[za("0x1f")],za("0x1f"),t,n)}));t._suggestionFactory[za("0x14")](za("0x13"),"tableCellProperties",za("0xe"),t[za("0x2a")][za("0x2f")](za("0x13"),null,za("0x33"))),t[za("0x2a")][za("0x14")](za("0x13"),"tableCellProperties",za("0x33"),((t,e)=>this.handleDiscardAction(this[za("0x1f")],t,e))),t._suggestionFactory[za("0x14")](za("0x13"),za("0x1f"),"join",(()=>!1))}t[za("0x30")][za("0xb")]((t=>this.handleSuggestionDescription(t)))}[za("0x34")](t,e,n,o,r,i){const s=this.editor.plugins.get(za("0x31"));this[za("0xa")][za("0x2e")][za("0x2")](i[za("0x25")],(()=>{for(const t of e)if(this[za("0x22")](t,o))r(i);else{const e={};for(const o of n){const n=t[za("0x12")](o);void 0!==n&&(e[o]=n)}r(i),s.markBlockFormat(t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][za("0x16")][za("0x35")],r=n.commandParams[0];this[za("0xa")][za("0x2e")][za("0x1d")]((e=>{for(const n of t)void 0!==r[n]?e.setAttribute(n,r[n],o):e[za("0x1c")](n,o)}))}[za("0x2d")](t){if(t[za("0x9")])switch(t[za("0x0")]){case za("0xd"):return{type:za("0x2b"),content:Qo(this[za("0xa")][za("0xf")],"*Format:* change table properties")};case za("0x1f"):return{type:za("0x2b"),content:Qo(this[za("0xa")][za("0xf")],za("0x2c"))}}}[za("0x22")](t,e){const n=this[za("0xa")].plugins[za("0x1b")]("TrackChangesEditing");for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o.getContainedElement();if(o[za("0x0")]===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=rt?rt.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,o,r,i){var s=-1,x=e.length;for(o||(o=tc),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 nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=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 rc=Math.max;const ic=function(t,e,n){return e=rc(void 0===e?t.length-1:e,0),function(){for(var o=arguments,r=-1,i=rc(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),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),r=16-(o-n);if(n=o,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(ic(t,void 0,nc),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,Ja));for(var r=e.length;r--;)Ko(n,e[r]);return n})),uc=["isIntersectingWithRange","containsItem","filter","getMarkers","getCustomProperty","isNextTo","change:data","dataDowncast","after","deletion","getContainedElement","schema","getSuggestions","_refreshAttributeSuggestionsChain","accept","highest","_blockAttributeKeys","trackChanges.trackFormatChanges","getAncestors","markers","backward","mapper","isCollapsed","low","item","widget","model","never","updateMarker","updateSuggestion","acceptAllSuggestions","format","_updateSuggestionData","comments","$marker","announce","_adapter","_processAttributeSuggestions","insertion:chain","_cutOutSuggestionMarker","_getExternalAuthor","hasComments","collaboration.channelId","acceptSuggestion","init","parent","showSuggestionHighlights","addCommentThread","start","multipleBlocks","getAllAdjacentSuggestions","_isDataLoaded","attribute:accept","oldName","every","selection","_reduceExistingSuggestions","_suggestionState","newName","@external","formatGroupId","deletion:chain","formatBlock","createElement","suggestionLoaded","TrackChangesEditing","setAttribute","isInContent","registerCustomCallback","isLimit","isOwn","insertion:discard","_joinWithAdjacentSuggestions","hasCommentThread","track-changes-enable-command-twice","addSuggestionData","getShiftedBy","rejected","attributes","_initAriaMarkerChangeAnnouncements","unshift","_registerDefaultCallbacks","addMarker:suggestion:formatBlock","add","forceDefaultExecution","always","formatBlock:","isEqual","track-changes-suggestion-not-found","_reduceSuggestionAttributeRange","_saved","rootName","_joinSuggestions","elementStart","originalSuggestionId","includes","changeAttribute","_refreshSuggestionsChain","consumable","commentThread","addMarkerName","targetPosition","creator","editor","isRemovable","track-changes-suggestion-data-mismatch","consume","moveTargetPosition","push","move","_getSuggestionData","_registerBlockAttribute","name","createPositionAfter","deletion:","_recordAttributeChanges","startsWith","pop","deletion:discard","markerName","createPositionAt","update:suggestion","detach","oldRange","history","containsPosition","_inlineAttributeKeys","removeAttribute","version","for","newRange","PENDING_ACTION_SUGGESTION","_handleNewSuggestionMarker","fromCharCode","commandName","getSuggestion","keys","createRange","markMultiRangeBlockFormat","markDeletion","splitPosition","rename","document","set","_removeSuggestion","toViewElement","getItems","marker-count","markInlineFormat","fetchCommentThread","getSuggestionCallback","_model","next","_setSuggestionData","trackChanges","activeMarkers","ck-suggestion-marker-formatInline","before","normal","concat","reconvertMarker","isIntersecting","options","discard","size","CommentsRepository","conversion","_setSuggestionRange","forward","isLocal","batch","_mergeNestedSuggestions","insertContent","attribute:discard","buildSuggestion","formatInline:","element","author","markerToData","$elementName","range","isInsideObject","_suggestionFactory","get","attribute","execute","removed","_createSuggestion","insertion:","_getMarkerAnnouncementText","formatBlock:chain","attribute:join","addSuggestion","insertion","_getAttributeKeyFromSubType","locale","markAttributeChange","suggestion:attribute:","formatBlock:join","getChanges","addMarker:suggestion","_editor","_splitMarkerName","trackChanges.mergeNestedSuggestions","join","catch","markMultiRangeInsertion","return","getChangedMarkers","newValue","isDocumentOperation","createRangeIn","getIntersection","stop","dataReady","has","multi","bindElementToMarker","root","ENTER","formatInline:chain","splice","find","formatInline","markerNameToElements","toUpperCase","PendingActions","LEAVE","nodeBefore","differ","groupId","formatInline:discard","trackChangesCommand","createSelection","getMultiRangeId","fromRange","editingDowncast","addClass","data-suggestion","isSelectable","key","authoredAt","dataToMarker","_suggestions","isMultiRange","define","adapter","change","removeMarker","addRange","getAttribute","unbindElementFromMarkerName","attributeNewValue","listenTo","Users","length","deleteContent","value","some","data","suggestionUnloaded","getNearestSelectionRange","tablePasteChainId","warn","nodeAfter","from","clear","skipNestingCheck","insertion:join","formatBlock:discard","formatInline:accept","removeMarkers","isBefore","subType","_descriptionFactory","delete","enableCommand","track-changes-adapter-missing-getsuggestion","ck-suggestion-marker","rethrowUnexpectedError","enqueueChange","getRange","isTouching","_customCallbacks","oldValue","elementEnd","isExternal","fire","markerToHighlight","suggestion","deletion:accept","_trackFormatChanges","addHighlight","ck-suggestion-marker-","removeClass","isBlock","default","remove","commands","getOperations","documentSelection","then","_addThreadToSuggestion","applyOperation","_commentsRepository","editing","markInsertion","split","isUndo","addMarker:suggestion:attribute","forEach","discardSelectedSuggestions","_recordAttributeSuggestionsFromVersion","accepted","getFirstRange","getFirstMarker","track-changes-user-not-found","getUser","_findSuggestions","discardAllSuggestions","sort","suggestionChanged","markMultiRangeDeletion","head","meta","high","authorName","_isForcedDefaultExecutionBlock","_SUGGESTION_ANNOUNCEMENT","enableReadOnlyMode","end","$text","ck-suggestion-marker-formatBlock","suggestion:","ready","isAfter","markerReady","formatInline:join","registerPostFixer","requires","_getAuthorFromId","howMany","previous","_rangeIsInLocalUserInsertion","getDifference","getWalker","notReady","values","insert","hasSuggestion","_onDiscard","_breakSuggestionMarker","getLastMatchingPosition","_isBlockAttribute","_enabledCommands","discardSuggestion","_registerInlineAttribute","change:_saved","_addSuggestionMarker","containsRangeInObject","createRangeOn","ck-suggestion-marker--active","upcast","config","$graveyard","containsRange","getRanges","map","_defaultCallbacks","_processAttributeChanges","setSelection","plugins","_checkSuggestionCorrectness","createdAt","isObject","refresh","writer","attributeKey","position","type","removeMarker:suggestion:attribute"];var dc,gc;dc=uc,gc=497,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0x3f");class hc extends t.Plugin{static get[fc("0xdf")](){return[fc("0x31"),i.Users,t.PendingActions,cr,fr,_r,kr,Lr,Dr,Vr,ti,ii,li,hi,Ti,Si,Mi,Pi,Hi,Xi,Qi,rs,fs,cs,Es,As,vs,Os,Us,Ks,Ys,nx,xx,dx,bx,Cx,Rx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get pluginName(){return fc("0x14a")}constructor(t){function e(t){return t.map((t=>String[fc("0x11")](t)))[fc("0x58")]("")}super(t),this._recordAttributeSuggestionsFromVersion=null,this[fc("0x1b")]("activeMarkers",[]),this.on("change:activeMarkers",((e,n,o,r)=>{this[fc("0x23")][fc("0x83")]((()=>{for(const e of[...r,...o])this[fc("0x23")].markers[fc("0x63")](e)&&t[fc("0xbd")][fc("0x2c")](e)}))})),this[fc("0x9e")]=new rr(this[fc("0x170")][fc("0x123")][fc("0x114")],this[fc("0x170")][fc("0x4f")]),this[fc("0x12d")]=null,this._suggestionFactory=new pc(this[fc("0x170")]),this[fc("0x7f")]=new Map,this._commentsRepository=t[fc("0xff")].get(fc("0x31")),this._enabledCommands=new Set,this[fc("0x23")]=this[fc("0x170")][fc("0x123")],this[fc("0x142")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,this[fc("0x119")]=new Set(["$elementName"]),this[fc("0xa")]=new Set,t[fc("0xf7")][fc("0x81")](fc("0x11a"),"default"),this[fc("0xaf")]=t[fc("0xf7")][fc("0x43")](fc("0x11a")),t[fc("0xf7")][fc("0x81")]("trackChanges.mergeNestedSuggestions",!0),this._mergeNestedSuggestions=t[fc("0xf7")][fc("0x43")](fc("0x57")),this[fc("0x74")]=new d(t,this[fc("0xee")]),this[fc("0x158")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,50,53,56])}[fc("0x135")](){const t=this[fc("0x170")],n=(t,e)=>{if("attribute"!=t)return fc("0xb1")+t;const n=e[fc("0xbf")]("|")[0];return this[fc("0xed")](n)?fc("0xd8"):fc("0x28")};t[fc("0x32")][fc("0xd")](fc("0x78"))[fc("0xac")]({model:fc("0xad"),view:t=>{const{id:e,type:o,subType:r}=this._splitMarkerName(t.markerName),i=[fc("0xa2"),n(o,r)];let s=3e3;return this[fc("0x27")][fc("0x168")](t[fc("0x3")])&&(i[fc("0x175")](fc("0xf5")),s=3010),fc("0x112")==o&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x32")][fc("0xd")]("dataDowncast")[fc("0x15c")]((e=>{e.on(fc("0x54"),((e,n,o)=>{if(!o[fc("0x2e")][fc("0x137")])return;const r=n[fc("0x121")];if(!r)return;const i=o[fc("0x11e")][fc("0x1d")](r);t[fc("0x123")][fc("0x114")][fc("0x102")](r)&&i&&!i[fc("0x10d")](fc("0x122"))&&i.is("containerElement")&&(0,x.toWidget)(i,o[fc("0x104")])}),{priority:fc("0xd1")})})),t[fc("0x32")].for(fc("0x110"))[fc("0xac")]({model:fc("0xad"),view:(t,e)=>{if(!e.options[fc("0x137")])return null;const{type:o,subType:r}=this[fc("0x56")](t[fc("0x3")]);return{classes:[fc("0xa2"),n(o,r)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,r,i)=>{if(!r[fc("0x121")])return;const{id:s}=this._splitMarkerName(r.markerName);if(n){const t=this[fc("0x7f")][fc("0x43")](s),e=this[fc("0x4e")](t);if(!this[fc("0xed")](e))return}if(r[fc("0x121")].is("selection"))return void i[fc("0x16b")][fc("0x173")](r[fc("0x121")],o[fc("0x179")]);const x=i[fc("0x11e")][fc("0x1d")](r[fc("0x121")]);if(r[fc("0x121")].is("element")&&t[fc("0x123")][fc("0x114")].isBlock(r[fc("0x121")])&&!x[fc("0x10d")](fc("0xb0"))){i[fc("0x104")].addClass([fc("0xa2"),fc("0xd8")],x),i[fc("0x104")][fc("0x14b")](fc("0x7a"),s,x),i.mapper[fc("0x65")](x,r[fc("0x3")]),e&&(this[fc("0x27")].includes(r[fc("0x3")])?i[fc("0x104")][fc("0x79")]("ck-suggestion-marker--active",x):i.writer[fc("0xb2")](fc("0xf5"),x));for(const e of t[fc("0x123")][fc("0x5f")](r[fc("0x121")])[fc("0x1e")]())i.consumable[fc("0x173")](e,o.name);i[fc("0x16b")][fc("0x173")](r[fc("0x121")],o.name)}};t[fc("0x32")].for(fc("0x110")).add((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,n)=>{n.options.showSuggestionHighlights&&o({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x118")})})),t.conversion[fc("0xd")](fc("0x110")).add((t=>{t.on(fc("0xc1"),((t,e,n)=>{n[fc("0x2e")][fc("0x137")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x118")})})),t.conversion.for("dataDowncast")[fc("0x3e")]({model:fc("0xad"),view:(t,e)=>e.options[fc("0x137")]?null:{group:fc("0xad"),name:t.substr(11)}}),t[fc("0x32")][fc("0xd")](fc("0xf6")).elementToElement({view:{name:fc("0xad"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0xd9")+t[fc("0x86")]("suggestion-type")+":"+t[fc("0x86")]("id");return t.getAttribute(fc("0x1f"))&&(n+=":"+t[fc("0x86")]("marker-count")),e[fc("0x148")](fc("0x12b"),{"data-name":n})}}),t[fc("0x32")].for(fc("0xf6"))[fc("0x7e")]({view:"suggestion"}),t.conversion[fc("0xd")](fc("0x78"))[fc("0x15c")]((t=>{t.on(fc("0x15b"),o(),{priority:fc("0xd1")})})),t[fc("0x32")][fc("0xd")]("editingDowncast")[fc("0x15c")]((t=>{t.on(fc("0xc1"),o({isAttributeSuggestion:!0}),{priority:fc("0xd1")})})),t.conversion.for(fc("0x78"))[fc("0x15c")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[fc("0x11e")].markerNameToElements(e[fc("0x3")]);if(o)for(const t of o)t[fc("0x10d")](fc("0xb0"))||(n[fc("0x104")].removeClass([fc("0xa2"),fc("0xd8"),fc("0xf5")],t),n[fc("0x104")][fc("0xb")](fc("0x7a"),t),n.mapper[fc("0x87")](t,e.markerName))}),{priority:fc("0xd1")})})),t.conversion[fc("0xd")](fc("0x78"))[fc("0x15c")]((t=>{t.on(fc("0x108"),((t,e,n)=>{const o=n[fc("0x11e")][fc("0x6c")](e[fc("0x3")]);if(!o)return;const{id:r}=this[fc("0x56")](e[fc("0x3")]),i=this[fc("0x7f")][fc("0x43")](r),s=this[fc("0x4e")](i);if(this[fc("0xed")](s))for(const t of o)t[fc("0x10d")](fc("0xb0"))||(n[fc("0x104")][fc("0xb2")]([fc("0xa2"),fc("0xd8"),fc("0xf5")],t),n[fc("0x104")][fc("0xb")](fc("0x7a"),t),n[fc("0x11e")][fc("0x87")](t,e[fc("0x3")]))}),{priority:fc("0xd1")})})),t.model[fc("0x1a")][fc("0xde")]((e=>{let n=!1;const o=Array.from(t[fc("0x123")][fc("0x1a")][fc("0x71")].getChangedMarkers()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0x56")](x);if(fc("0xad")!==o)continue;const d=this[fc("0x7f")][fc("0x43")](u);if(null!=a[fc("0xe")]){fc("0x6b")==c&&(n=n||_c(a.newRange,x,e,t[fc("0x123")][fc("0x114")]));const o="attribute"==c&&this._isBlockAttribute(l[fc("0xbf")]("|")[0]);if(a[fc("0xe")][fc("0x11f")]||fc("0xf8")==a[fc("0xe")][fc("0x66")][fc("0x164")]||fc("0x147")==c&&!yc(a[fc("0xe")])||o&&!yc(a[fc("0xe")])||fc("0x112")==c&&(Ec(s=a[fc("0xe")])||(i=s).start.parent==i.end[fc("0x70")]&&i[fc("0x139")].isAtEnd))e[fc("0x84")](x),n=!0;else{if(!d||!d.isInContent)continue;r.add(d)}}}var i,s;return r[fc("0x30")]>0&&(n=!!this[fc("0x151")](r)||n),n})),t[fc("0x123")].document[fc("0xde")]((e=>{let n=!1;for(const o of t[fc("0x123")].document[fc("0x71")][fc("0x53")]())if(fc("0xe8")==o[fc("0x107")])for(const o of this[fc("0x7f")][fc("0xe7")]()){if(o[fc("0x80")]||!o[fc("0x14c")])continue;const r=fc("0x147")==o[fc("0x107")],i=this[fc("0x4e")](o),s=i&&this[fc("0xed")](i);if(!r&&!s)continue;const x=o[fc("0xc6")]();if(x[fc("0x139")].parent!=x[fc("0xd6")][fc("0x136")]&&!x[fc("0xd6")].isAtEnd){const r=t[fc("0x123")][fc("0x4")](x.start[fc("0x94")],fc("0xd6")),i=t.model[fc("0x15")](x.start,r);e[fc("0x125")](o[fc("0xc7")](),{range:i}),n=!0}}return n})),t[fc("0x123")][fc("0x1a")][fc("0xde")]((t=>this._processAttributeChanges(t))),t.model.document[fc("0xde")]((t=>!t[fc("0x36")][fc("0x35")]&&this._processAttributeSuggestions(t))),t[fc("0x123")][fc("0x11c")].on(fc("0x5"),((t,e,n)=>{if(null==n){const{id:t}=this[fc("0x56")](e[fc("0x179")]),n=this[fc("0x7f")][fc("0x43")](t);n&&n[fc("0x16d")](e.name)}})),t[fc("0x123")][fc("0x1a")].on(fc("0x10f"),(()=>{const e=Array[fc("0x95")](t[fc("0x123")].document[fc("0x71")].getChangedMarkers())[fc("0x10b")]((t=>fc("0xad")===this[fc("0x56")](t[fc("0x179")]).group));if(0===e.length)return;e[fc("0xcc")](((t,e)=>{const n=t.data[fc("0x7")],o=e[fc("0x8f")][fc("0x7")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start.isBefore(o[fc("0x139")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[fc("0x56")](t);if(null===r[fc("0x7")]){const e=this._handleNewSuggestionMarker(t);o.add(e)}else{const t=this[fc("0x7f")][fc("0x43")](e);null!==r[fc("0xe")]||t.isInContent?(n[fc("0x15c")](t[fc("0xcf")]),o[fc("0x15c")](t)):this[fc("0x1c")](t)}}o.size>0&&this[fc("0x16a")](o);for(const t of n)this[fc("0xab")](fc("0xcd"),t)})),t.model.on(fc("0xbb"),((e,n)=>{const o=n[0];if(!this[fc("0x7f")][fc("0x30")])return;if(!o[fc("0x5e")])return;if(o[fc("0x36")][fc("0xc0")]||!o[fc("0x36")][fc("0x35")])return;let r,i;switch(o[fc("0x107")]){case"insert":r=t[fc("0x123")][fc("0x4")](o[fc("0x106")]),i=r[fc("0x155")](o[fc("0xe1")]);break;case fc("0xbf"):r=t.model[fc("0x4")](o[fc("0x18")]),i=t[fc("0x123")][fc("0x4")](o[fc("0x174")]);break;case fc("0x176"):r=t[fc("0x123")].createPositionAt(o[fc("0x16e")]),i=r.getShiftedBy(o[fc("0xe1")]);break;default:return}const s=t.model[fc("0x15")](r,i);t[fc("0x123")][fc("0x83")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0xca")](s)){if(t[fc("0x80")])continue;if("formatInline"==t.type)continue;const n=this[fc("0x4e")](t);if(n&&this[fc("0xed")](n)&&"split"!=o.type)continue;const x=t[fc("0x8f")]&&t[fc("0x8f")][fc("0x13a")];(fc("0x147")!=t[fc("0x107")]||fc("0xbf")==o[fc("0x107")]&&!x)&&(e.containsRangeInObject||"insertion"==t[fc("0x107")]&&e[fc("0x14f")]||t[fc("0xc6")]()[fc("0xf9")](s)&&this[fc("0xeb")](t,r,i))}}))}),{priority:"lowest"}),t.model.on("deleteContent",((e,n)=>{const o=n[0],r=n[1];if(r&&r[fc("0x15d")])return;if(this[fc("0xd3")])return;if(!this[fc("0x74")].value)return;if(o.isCollapsed)return;const i=t[fc("0x123")][fc("0x114")],{start:s,end:x}=o[fc("0xc6")](),a=s[fc("0x94")]&&i[fc("0x14e")](s[fc("0x94")])?null:i.getNearestSelectionRange(s,fc("0x34")),c=x[fc("0x70")]&&i.isLimit(x[fc("0x70")])?null:i[fc("0x91")](x,fc("0x11d")),l=t[fc("0x123")][fc("0x15")](a?a.start:s,c?c[fc("0xd6")]:x);t[fc("0x123")][fc("0x83")]((e=>{this[fc("0x17")](l);const n=t.model[fc("0x114")].getNearestSelectionRange(l[fc("0x139")]);o.is(fc("0xb8"))?e[fc("0xfe")](n):o.setTo(n)})),e[fc("0x61")]()}),{priority:e.priorities[fc("0x2a")]+10}),t[fc("0x123")].on("insertContent",((e,n)=>{const o=n[n[fc("0x8b")]-1];o&&o[fc("0x15d")]||this._isForcedDefaultExecutionBlock||this[fc("0x74")].value&&(t[fc("0x123")][fc("0x83")]((()=>{let o=t[fc("0x123")][fc("0x38")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o.clone();const r=o[fc("0xd6")][fc("0x70")],i=t[fc("0x123")][fc("0x114")];r&&i[fc("0xb3")](r)&&!i[fc("0x102")](r)&&(o=t.model[fc("0x15")](o[fc("0x139")],t[fc("0x123")][fc("0x4")](r,fc("0xd6")))),this.markInsertion(o)})),e.stop())}),{priority:fc("0xd1")}),this[fc("0x170")][fc("0xb6")][fc("0x15c")]("trackChanges",this[fc("0x74")]),this[fc("0xa0")]("trackChanges");const r=new p(t,this[fc("0x7f")]);t[fc("0xb6")][fc("0x15c")](fc("0x134"),r),this.enableCommand("acceptSuggestion");const i=new y(t,this[fc("0x7f")]);t[fc("0xb6")][fc("0x15c")](fc("0xef"),i),this[fc("0xa0")](fc("0xef")),t[fc("0xb6")].add("acceptAllSuggestions",new F(t,r,this._suggestions)),this[fc("0xa0")](fc("0x127")),t.commands[fc("0x15c")](fc("0xcb"),new F(t,i,this[fc("0x7f")])),this[fc("0xa0")]("discardAllSuggestions"),t.commands[fc("0x15c")]("acceptSelectedSuggestions",new j(t,r,this[fc("0x7f")])),this[fc("0xa0")]("acceptSelectedSuggestions"),t[fc("0xb6")][fc("0x15c")]("discardSelectedSuggestions",new j(t,i,this._suggestions)),this[fc("0xa0")](fc("0xc3"));const s=t[fc("0xff")][fc("0x43")]("CommentsRepository");this.listenTo(s,"addComment",((t,{threadId:e})=>{const n=this[fc("0x7f")][fc("0x43")](e);n&&n[fc("0x16c")]&&1===n[fc("0x16c")][fc("0x8b")]&&this[fc("0x129")](e,{hasComments:!0})}),{priority:"low"}),this.listenTo(s,"removeComment",((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n[fc("0x16c")]&&!n.commentThread[fc("0x8b")]&&this[fc("0x129")](e,{hasComments:!1})}),{priority:fc("0x120")})}set[fc("0x82")](t){if(this[fc("0x12d")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[fc("0x12d")]=t}get adapter(){return this[fc("0x12d")]}[fc("0x115")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[fc("0xe7")]())t&&!e[fc("0x14c")]||n[fc("0x175")](e);return e?n[fc("0xfb")]((t=>t.toJSON())):n}[fc("0x13")](t){const n=this[fc("0x7f")][fc("0x43")](t);if(!n)throw new e.CKEditorError(fc("0x161"),this);return n}[fc("0xe9")](t){return this[fc("0x7f")][fc("0x63")](t)}[fc("0x154")](t){const{authorId:e,id:n,attributes:o}=t,[r,i]=t[fc("0x107")][fc("0xbf")](":"),s=this._suggestions.get(n)||this[fc("0x47")](r,i,n,e,o);if(this._addThreadToSuggestion(s),this._checkSuggestionCorrectness(s,r,i||null,e),s[fc("0x101")]=t[fc("0x101")],s._isDataLoaded=!0,o&&o[fc("0x144")]){const t=o["@external"],e=this[fc("0x131")](t[fc("0xd2")]);s[fc("0x7d")]=t.createdAt,s[fc("0x3d")]=e,s[fc("0xaa")]=!0}else s[fc("0x7d")]=t.createdAt;switch(t.data&&(s[fc("0x8f")]=t[fc("0x8f")]),t[fc("0x157")]&&(s[fc("0x157")]=t[fc("0x157")]),this[fc("0x12d")]&&this[fc("0x12d")][fc("0x4c")]||(s[fc("0x163")]=!0),this[fc("0x142")][fc("0x43")](s)){case fc("0xe6"):this[fc("0x142")].set(s,fc("0x62"));break;case"markerReady":s[fc("0x14c")]?(this[fc("0x16a")](new Set([s])),this[fc("0x151")](new Set([s])),this._suggestionState[fc("0x1b")](s,fc("0xda")),this[fc("0xab")](fc("0x149"),s)):this[fc("0x142")].set(s,fc("0x46"))}return s}[fc("0x134")](t){this[fc("0x15d")]((()=>{this[fc("0x170")][fc("0x123")].change((()=>{for(const e of t[fc("0x13b")]())e[fc("0x117")]()}))}))}[fc("0xef")](t){this[fc("0x15d")]((()=>{this[fc("0x170")][fc("0x123")][fc("0x83")]((()=>{for(const e of t[fc("0x13b")]())e[fc("0x2f")]()}))}))}enableCommand(t,n){const o=this.editor[fc("0xb6")][fc("0x43")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this._enabledCommands[fc("0x63")](o))throw new e.CKEditorError(fc("0x153"),this,{commandName:t});this[fc("0xee")][fc("0x15c")](o),n&&o.on(fc("0x45"),((t,e)=>{this[fc("0x74")][fc("0x8d")]&&(this._isForcedDefaultExecutionBlock||(e[fc("0x8b")]>0&&e[e.length-1]&&e[e[fc("0x8b")]-1].forceDefaultExecution?e[fc("0x1")]():(t[fc("0x5b")]=n(((...t)=>o[fc("0x45")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x61")]())))}),{priority:fc("0xd1")})}[fc("0x15d")](t){let n,o;const r=this[fc("0xd3")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return r||(this[fc("0xd3")]=!1),o&&e.CKEditorError[fc("0xa3")](o,this),n}[fc("0xbe")](t,n=null,o={}){if(t[fc("0x11f")])return null;const r=this[fc("0x170")][fc("0xff")].get("Users").me;for(const{suggestion:e,meta:r}of this[fc("0xca")](t,"insertion"))if(r[fc("0x14f")]){if(!r[fc("0x10e")]){if(r[fc("0xf3")]){if(!this[fc("0x37")]||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this[fc("0xeb")](e,t[fc("0x139")],t[fc("0xd6")]);break}if(n==e.subType&&Ic(e,o)){const n=e[fc("0xc6")]();return n[fc("0x139")][fc("0x160")](t.end)?this[fc("0x33")](e,this[fc("0x23")][fc("0x15")](t.start,n[fc("0xd6")])):this[fc("0x33")](e,this[fc("0x23")].createRange(n[fc("0x139")],t[fc("0xd6")])),e}}const i=(0,e.uid)(),s=r.id,x=n?"insertion:"+n:fc("0x4d"),a=this._setSuggestionData({id:i,type:x,createdAt:new Date,authorId:s,attributes:o});return this._addSuggestionMarker(x,i,s,t),a}[fc("0x5a")](t,n=fc("0x64"),o={}){const r=this[fc("0x170")][fc("0xff")][fc("0x43")](fc("0x8a")).me,i=this[fc("0x42")][fc("0x22")]("insertion",n,fc("0x58"));for(const e of this[fc("0x115")]())if(e[fc("0x3d")].id==r.id&&"insertion"==e[fc("0x107")]&&e[fc("0x9d")]==n&&Ic(e,o)&&(i(e[fc("0xfa")](),t)||i(t,e[fc("0xfa")]()))){for(const n of t)e.addRange(n);return e}for(const{suggestion:e,meta:n}of this[fc("0xca")](t,fc("0x4d"))){if(!n[fc("0x14f")])continue;if(!this[fc("0x37")]&&n[fc("0xf3")])continue;if(!Ic(e,o))continue;let r=!0;for(const n of e.getRanges())for(const e of t)if(!n[fc("0xf9")](e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a=fc("0x48")+n,c=this[fc("0x25")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0xf2")](a,s,x,e,Jo[fc("0x76")]());return c}[fc("0x20")](t,n,o=null,r={}){if(o=o||Tc(n),t.isCollapsed)return null;if(fc("0x124")===this._trackFormatChanges){const e=this[fc("0x42")][fc("0x22")](fc("0x6b"),o,fc("0x117"));return this[fc("0x15d")]((()=>e([t],n,r))),null}const i=this[fc("0x170")].plugins[fc("0x43")](fc("0x8a")).me,s=[];if("always"!==this[fc("0xaf")])for(const{suggestion:e,meta:n}of this[fc("0xca")](t,fc("0x4d")))n[fc("0x14f")]&&!n[fc("0x41")]&&s[fc("0x175")](...e[fc("0xfa")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n.push(e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0x8b")];){const o=n[e].getDifference(t);n[fc("0x69")](e,1,...o),e+=o.length}}return n}(t,s);x[fc("0x8b")]&&this[fc("0x23")][fc("0x83")]((()=>{for(const t of x){const e=this[fc("0x42")].getSuggestionCallback(fc("0x6b"),o,fc("0x117"));this.forceDefaultExecution((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t[fc("0x139")],a=t.end;for(const{suggestion:e,meta:n}of this[fc("0xca")](t,fc("0x6b"))){if(!n[fc("0x14f")])continue;if(e[fc("0x9d")]!=o)continue;if(!Ic(e,r))continue;const i=e.getFirstRange();if(i[fc("0xf9")](t,!0))return null;x=x[fc("0x9c")](i.start)?x:i[fc("0x139")],a=a[fc("0xdb")](i.end)?a:i[fc("0xd6")],s?i[fc("0x139")][fc("0x9c")](s[fc("0xc6")]().start)?(s[fc("0x9b")](),s=e):e[fc("0x9b")]():s=e}const c=this[fc("0x23")][fc("0x15")](x,a);if(s)this[fc("0x33")](s,c);else{const t=(0,e.uid)(),s=i.id;this._setSuggestionData({id:t,type:fc("0x3b")+o,data:n,createdAt:new Date,authorId:s,attributes:r}),this[fc("0xf2")]("formatInline:"+o,t,s,c)}}return null}markBlockFormat(t,n,o=[],r=null,i={}){n[fc("0x145")]||(n[fc("0x145")]=n[fc("0x12")]),n[fc("0x13a")]=t.is(fc("0x40")),r=r||Tc(n);const s=o[fc("0xfb")]((t=>Cc(t,this[fc("0x23")]))),x=t.is(fc("0x40"))?t:Cc(t,this[fc("0x23")]);if("never"===this[fc("0xaf")]){const t=this._suggestionFactory[fc("0x22")]("formatBlock",r,fc("0x117"));return this[fc("0x15d")]((()=>t([x],n,i))),null}s.push(x);let a=!0;for(const t of s)if(!this[fc("0xe3")](t)){a=!1;break}if(a&&fc("0x15e")!==this[fc("0xaf")]){const t=this[fc("0x42")][fc("0x22")](fc("0x147"),r,"accept");return this.forceDefaultExecution((()=>t([x],n,i))),null}let c=null,l=x[fc("0x139")],u=x[fc("0xd6")];for(const{suggestion:t,meta:e}of this[fc("0xca")](x,"formatBlock")){if(!e[fc("0x14f")])continue;if(e[fc("0x10e")]||e[fc("0xf3")]||e.isInsideObject)continue;if(t.data[fc("0x145")]!=n[fc("0x145")])continue;if(!Ic(t,i))continue;const o=t[fc("0xc6")]();if(t[fc("0x9d")]==r){if(o[fc("0xf9")](x,!0))return null;l=l[fc("0x9c")](o.start)?l:o[fc("0x139")],u=u[fc("0xdb")](o[fc("0xd6")])?u:o[fc("0xd6")],c?o[fc("0x139")][fc("0x9c")](c[fc("0xc6")]()[fc("0x139")])?(c.removeMarkers(),c=t):t[fc("0x9b")]():c=t}else{const e=x[fc("0x60")](o);this[fc("0x130")](t,e)}}const d=this[fc("0x170")][fc("0xff")][fc("0x43")](fc("0x8a")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x33")](c,this[fc("0x23")][fc("0x15")](l,u)),c;{const t=this[fc("0x25")]({id:g,type:fc("0x15f")+r,data:n,createdAt:new Date,authorId:f,attributes:i});return this[fc("0xf2")](fc("0x15f")+r,g,f,this._model.createRange(l,u)),t}}[fc("0x16")](t,n,o=[],r=null,i={}){n[fc("0x145")]||(n[fc("0x145")]=n.commandName);const s=t[0];n[fc("0x13a")]=s.is(fc("0x40")),r=r||Tc(n);const x=o[fc("0xfb")]((t=>Cc(t,this[fc("0x23")]))),a=s.is("range")?t:t[fc("0xfb")]((t=>Cc(t,this[fc("0x23")])));if("never"===this._trackFormatChanges){const t=this[fc("0x42")][fc("0x22")]("formatBlock",r,fc("0x117"));return this[fc("0x15d")]((()=>t(a,n,i))),null}x.push(...a);let c=!0;for(const t of x)if(!this[fc("0xe3")](t)){c=!1;break}if(c&&fc("0x15e")!==this[fc("0xaf")]){const t=this._suggestionFactory[fc("0x22")](fc("0x147"),r,fc("0x117"));return this.forceDefaultExecution((()=>t(a,n,i))),null}const l=this[fc("0x170")][fc("0xff")].get("Users").me;for(const t of this[fc("0x115")]()){if(t.author.id!=l.id)continue;if("formatBlock"!=t.type||t[fc("0x8f")][fc("0x145")]!=n[fc("0x145")])continue;if(!Ic(t,i))continue;const e=t[fc("0x9d")]==r;for(let n=0;n<a[fc("0x8b")];n++){const o=a[n];for(const r of t[fc("0x10c")]()){const i=r[fc("0xa5")]();if(o[fc("0x160")](i)){e?(a[fc("0x69")](n,1),n--):t[fc("0x84")](r[fc("0x179")]);break}}}}if(0==a[fc("0x8b")])return null;const u=this._suggestionFactory[fc("0x22")](fc("0x147"),r,fc("0x58"));for(const t of this[fc("0x115")]())if(t[fc("0x3d")].id==l.id&&fc("0x147")==t[fc("0x107")]&&t[fc("0x8f")][fc("0x145")]==n[fc("0x145")]&&t.subType==r&&Ic(t,i)&&(u(t[fc("0xfa")](),a)||u(a,t[fc("0xfa")]()))){for(const e of a)t[fc("0x85")](e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0x15f")+r,m=this[fc("0x25")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[fc("0xf2")](f,d,g,t,Jo[fc("0x76")]());return m}[fc("0x17")](t,n=null,o={}){if(t[fc("0x11f")])return null;const r=this[fc("0x170")][fc("0xff")].get(fc("0x8a")).me,i=new s.LiveRange(t[fc("0x139")],t.end);for(const{suggestion:t,meta:e}of this[fc("0xca")](i,"insertion"))if(e[fc("0x14f")]&&!e.isNextTo)if(t[fc("0x80")]){const e=t[fc("0xfa")]()[fc("0x10b")]((t=>fc("0xf8")!=t.root[fc("0x164")]));if(e[fc("0x13f")]((t=>i[fc("0xf9")](t,!0)))&&t[fc("0x2f")](),e.some((t=>t[fc("0xf9")](i,!0)))){const t=this._suggestionFactory.getSuggestionCallback(fc("0x112"),n,fc("0x117"));return this[fc("0x15d")]((()=>t([i],null,o))),null}}else{const e=i[fc("0x60")](t[fc("0xc6")]());null!==e&&t[fc("0xea")]([e],null,o)}if(i[fc("0x6")](),i[fc("0x11f")]||fc("0xf8")==i[fc("0x66")][fc("0x164")])return null;let x=null,a=i[fc("0x139")],c=i[fc("0xd6")];const l=this[fc("0xca")](i,fc("0x112"));for(const{suggestion:t,meta:e}of l){const n=this._model[fc("0x15")](a,c);if(e.isOwn&&(this[fc("0x37")]||!e[fc("0xf3")]&&!e.isInsideObject))if(t[fc("0x80")]){if(!Ic(t,o))continue;let e=!0;for(const o of t[fc("0xfa")]()){if(o[fc("0xf9")](n,!0))return t;n.containsRange(o)||(e=!1)}e&&t.discard()}else{const e=t[fc("0xc6")]();if(e[fc("0xf9")](n,!0))return t;if(!Ic(t,o)){n.containsRange(e)?t[fc("0x9b")]():e[fc("0x9")](a)?a=e[fc("0xd6")]:e[fc("0x9")](c)&&(c=e[fc("0x139")]);continue}a=a[fc("0x9c")](e[fc("0x139")])?a:e[fc("0x139")],c=c[fc("0xdb")](e[fc("0xd6")])?c:e[fc("0xd6")],o=Object.assign({},t[fc("0x157")]),x?e.start[fc("0x9c")](x.getFirstRange()[fc("0x139")])?(x[fc("0x9b")](),x=t):t[fc("0x9b")]():x=t}}if(x)return this._setSuggestionRange(x,this[fc("0x23")][fc("0x15")](a,c)),x;{const t=(0,e.uid)(),i=this[fc("0x23")][fc("0x15")](a,c),s=r.id,x=n?"deletion:"+n:fc("0x112"),l=this[fc("0x25")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0xf2")](x,t,s,i),l}}[fc("0xce")](t,n="multi",o={}){const r=this[fc("0x170")].plugins[fc("0x43")]("Users").me,i=t.map((t=>new s.LiveRange(t.start,t[fc("0xd6")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0xca")](i,fc("0x4d")))e[fc("0x14f")]&&!e[fc("0x10e")]&&x.add(t);for(const e of x)if(e[fc("0x80")]){const r=e[fc("0xfa")]();if((!e.attributes||!e[fc("0x157")][fc("0x97")])&&r[fc("0x13f")]((t=>i[fc("0x8e")]((e=>e.containsRange(t,!0)))))&&e[fc("0x2f")](),i[fc("0x13f")]((t=>r[fc("0x8e")]((e=>e[fc("0xf9")](t,!0)))))){const e=this[fc("0x42")][fc("0x22")]("deletion",n,fc("0x117"));return this[fc("0x15d")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(i[fc("0x8e")]((e=>e[fc("0xf9")](t,!0)))&&e[fc("0x2f")](),i[fc("0x13f")]((e=>t[fc("0xf9")](e,!0)))){const t=this[fc("0x42")][fc("0x22")]("deletion",n,fc("0x117"));return this[fc("0x15d")]((()=>t(i,null,o))),null}}const a=this[fc("0x42")][fc("0x22")](fc("0x112"),n,fc("0x58"));let c=null;for(const t of this[fc("0x115")]())if(t.author.id==r.id&&t[fc("0x14c")]&&fc("0x112")==t[fc("0x107")]&&t[fc("0x9d")]==n&&Ic(t,o)&&(a(t[fc("0xfa")](),i)||a(i,t.getRanges())))if(c){if(t.commentThread&&t[fc("0x16c")][fc("0x8b")])continue;for(const e of t[fc("0xfa")]())c[fc("0x109")](e)||c[fc("0x85")](e);t[fc("0x9b")]()}else{c=t;for(const e of i)t.isIntersectingWithRange(e)||t.addRange(e)}if(c)return c;x[fc("0x96")]();for(const{suggestion:t,meta:e}of this[fc("0xca")](i,fc("0x112")))e.isOwn&&(this[fc("0x37")]||!e.containsRangeInObject&&!e.isInsideObject)&&Ic(t,o)&&x[fc("0x15c")](t);for(const t of x){const e=t[fc("0xfa")]();if((!o||!o.skipNestingCheck)&&i[fc("0x13f")]((t=>e.some((e=>e[fc("0xf9")](t,!0))))))return t;(!t[fc("0x157")]||!t[fc("0x157")][fc("0x97")])&&e.every((t=>i[fc("0x8e")]((e=>e[fc("0xf9")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=r.id,d=fc("0x17b")+n,g=this[fc("0x25")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of i)t[fc("0x6")](),t[fc("0x11f")]||fc("0xf8")==t[fc("0x66")][fc("0x164")]||this._addSuggestionMarker(d,l,u,t,Jo[fc("0x76")]());return g}[fc("0x50")](t,n,o,r,i){if(t[fc("0x11f")])return[];if(fc("0x124")===this[fc("0xaf")])return[];const s=this[fc("0x170")][fc("0xff")][fc("0x43")](fc("0x8a")).me.id,x=Array[fc("0x95")](this[fc("0x7f")].values())[fc("0x10b")]((e=>fc("0x44")==e[fc("0x107")]&&e[fc("0x8f")].key==n&&e[fc("0x109")](t)));if(fc("0xb4")===this[fc("0xaf")]){const e=this._findSuggestions(t,fc("0x4d"))[fc("0x10b")]((({meta:t})=>t[fc("0x14f")]&&!t[fc("0x41")]&&!t[fc("0x10e")]))[fc("0xfb")]((({suggestion:t})=>t));x[fc("0x159")](...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0x44")==t[fc("0x107")]?t[fc("0x8f")].oldValue:void 0,i=t[fc("0xc6")](),s=Array[fc("0x95")](a[fc("0x14")]())[fc("0x6a")]((t=>t[fc("0x2d")](i)));if(!s)continue;const x=s.getDifference(i);this[fc("0xed")](n)&&fc("0x4d")==t[fc("0x107")]&&0!=x.length||(a[fc("0x9f")](s),x[fc("0xc2")]((t=>{a[fc("0x1b")](t,o)})),"insertion"!=t[fc("0x107")]&&e!=r&&a[fc("0x1b")](s[fc("0x60")](i),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:r};n[fc("0x8b")]>37&&console[fc("0x93")]("Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.",{key:n});const l=("attribute:"+n+"|"+Tc({newValue:r})).substring(0,60),u=this._setSuggestionData({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c[fc("0x175")](u),this._addSuggestionMarker(l,x,s,t)}return c}_registerBlockAttribute(t){this[fc("0x119")][fc("0x15c")](t)}[fc("0xf0")](t){this[fc("0xa")][fc("0x15c")](t)}_enableDefaultAttributesIntegration(t,e=[],n=[]){this[fc("0xa0")](t,((t,...e)=>{this[fc("0x17c")]((()=>{t(...e)}))}));for(const t of e)this._registerInlineAttribute(t);for(const t of n)this[fc("0x178")](t)}[fc("0x33")](t,e){const n=t[fc("0xc7")]();this[fc("0x23")].change((t=>{t[fc("0x125")](n,{range:e})}))}[fc("0xba")](t){const e=t.id,n=this.editor.config.get("collaboration.channelId");this[fc("0xbc")][fc("0x152")](e)||this[fc("0xbc")][fc("0x138")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository.getCommentThread(e);o.unbind(fc("0x171")),o[fc("0x171")]=!1,t[fc("0x16c")]=o}[fc("0x100")](t,n,o,r){if(t[fc("0x107")]!=n||t.subType!=o||t.creator.id!=r)throw this[fc("0x170")][fc("0xd5")](fc("0x172")),new e.CKEditorError(fc("0x172"),this)}[fc("0x130")](t,n){const o=t[fc("0xc6")]();if(n[fc("0x160")](o))t[fc("0x9b")]();else if(o[fc("0xf9")](n)){const r=this[fc("0x23")].createPositionAt(n.start[fc("0x70")],"end");this._setSuggestionRange(t,this._model[fc("0x15")](o[fc("0x139")],r));const i=(0,e.uid)(),s=t[fc("0x16f")].id,x=t[fc("0x107")]+":"+t[fc("0x9d")];this[fc("0x25")]({id:i,type:x,createdAt:new Date,authorId:s,data:t[fc("0x8f")],attributes:t.attributes});const a=this[fc("0x23")][fc("0x4")](n[fc("0xd6")][fc("0x136")],fc("0x111")),c=this[fc("0x23")][fc("0x15")](a,o[fc("0xd6")]);this[fc("0xf2")](x,i,s,c)}else if(o[fc("0x9")](n[fc("0x139")])){const e=this[fc("0x23")][fc("0x4")](n[fc("0x139")].nodeBefore,fc("0xd6"));this._setSuggestionRange(t,this[fc("0x23")][fc("0x15")](o[fc("0x139")],e))}else{const e=this[fc("0x23")][fc("0x4")](n[fc("0xd6")][fc("0x136")],"after");this._setSuggestionRange(t,this[fc("0x23")][fc("0x15")](e,o[fc("0xd6")]))}}[fc("0xe3")](t){for(const{suggestion:e,meta:n}of this[fc("0xca")](t,"insertion")){if(!n[fc("0x14f")])continue;const o=e[fc("0xfa")]();for(const e of o)if(!t[fc("0xe4")](e).length)return!0}return!1}[fc("0xe0")](t){const n=this.editor[fc("0xff")].get(fc("0x8a"))[fc("0xc9")](t);if(!n)throw new e.CKEditorError(fc("0xc8"),this);return n}_getExternalAuthor(t){const e=this[fc("0x170")][fc("0xff")][fc("0x43")]("Users"),n=(0,i.hashObject)("external:"+t);return e[fc("0xc9")](n)||e.addUser({id:n,name:t})}[fc("0x47")](t,e,n,o,r){const i=this._getAuthorFromId(o),s=this[fc("0x42")].buildSuggestion(t,e,n,i,r,(t=>this[fc("0x129")](n,{attributes:t})));return this.listenTo(s,"accept",(()=>{this[fc("0x129")](n,{state:fc("0xc5")})}),{priority:fc("0xd1")}),this[fc("0x89")](s,fc("0x2f"),(()=>{this[fc("0x129")](n,{state:fc("0x156")})}),{priority:fc("0xd1")}),this[fc("0x7f")][fc("0x1b")](n,s),this._suggestionState.set(s,"notReady"),s}[fc("0x56")](t){const e=t[fc("0xbf")](":");return{group:e[0],type:e[1],subType:e[fc("0x8b")]>=5?e[2]:null,id:e[fc("0x8b")]<5?e[2]:e[3],authorId:e[fc("0x8b")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[fc("0xeb")](t,n,o){const r=t[fc("0xc6")](),i=r[fc("0x139")],s=r.end;this._setSuggestionRange(t,this[fc("0x23")][fc("0x15")](i,n));const x=(0,e.uid)(),a=t[fc("0x16f")].id,c=t[fc("0x107")]+(t.subType?":"+t.subType:"");this[fc("0x25")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x157")],data:t[fc("0x8f")]});const l=this[fc("0x4e")](t);(fc("0x147")==t[fc("0x107")]||l&&this[fc("0xed")](l))&&(o=this._model.createPositionBefore(o[fc("0x136")])),this._addSuggestionMarker(c,x,a,this[fc("0x23")][fc("0x15")](o,s))}[fc("0xca")](t,e=null){const n=[],o=this.editor[fc("0xff")][fc("0x43")](fc("0x8a")).me;Array.isArray(t)||(t=[t]);for(const r of this[fc("0x115")]()){if(!r.isInContent)continue;if(e&&r[fc("0x107")]!=e)continue;let i=!1;for(const e of r[fc("0xfa")]()){for(const s of t){const t=s[fc("0x139")][fc("0x160")](e[fc("0xd6")])||s[fc("0xd6")][fc("0x160")](e.start);if(t||s.getIntersection(e)){const x=s[fc("0xf9")](e)&&bc(this[fc("0x23")][fc("0x114")],e[fc("0x139")],s),a=e[fc("0xf9")](s)&&bc(this[fc("0x23")][fc("0x114")],s[fc("0x139")],e);n.push({suggestion:r,meta:{isOwn:o==r[fc("0x3d")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[fc("0xf2")](t,e,n,o,r){this._model[fc("0x83")]((i=>{let s=fc("0xd9")+t+":"+e+":"+n;r&&(s=s+":"+r),i.addMarker(s,{range:o,usingOperation:!0,affectsData:!0})}))}[fc("0x1c")](t){const e=t[fc("0xe2")],n=t[fc("0x24")];t.previous=null,t.next=null,null!=e&&(e[fc("0x24")]=n),null!=n&&(n.previous=e),fc("0xda")==this[fc("0x142")][fc("0x43")](t)&&(this[fc("0x142")][fc("0x1b")](t,"removed"),this[fc("0xab")](fc("0x90"),t,e,n))}[fc("0x25")](t){const n=t.id,o=this[fc("0x154")](t);if(this[fc("0x12d")]&&this[fc("0x12d")].addSuggestion){const r=this.editor.plugins[fc("0x43")](fc("0x6e")),i=o[fc("0x132")],s=o.subType?o[fc("0x107")]+":"+o.subType:o[fc("0x107")],x=this[fc("0x170")].locale,a=r.add(Qo(x,fc("0xf"))),c={id:n,type:s,hasComments:i,data:t.data||null,originalSuggestionId:t[fc("0x167")]||null,attributes:o.attributes};this[fc("0x12d")][fc("0x4c")](c)[fc("0xb9")]((t=>{o[fc("0x163")]=!0,r[fc("0xb5")](a),t&&t[fc("0x101")]&&(this._suggestions[fc("0x43")](n)[fc("0x101")]=t.createdAt)}))[fc("0x59")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[fc("0x170")][fc("0x123")].enqueueChange({isUndoable:!1},(()=>{o[fc("0x2f")]()})),o.stopListening(),this._suggestions[fc("0x9f")](o.id),this._suggestionState[fc("0x9f")](o),t}))}return o}[fc("0xed")](t){return this._blockAttributeKeys[fc("0x63")](t)}[fc("0x4e")](t){return"attribute"==t[fc("0x107")]&&t[fc("0x9d")].split("|")[0]}[fc("0x129")](t,e){const n=this[fc("0x170")][fc("0xff")][fc("0x43")](fc("0x6e")),o=this[fc("0x13")](t);if(this[fc("0x12d")]&&this[fc("0x12d")][fc("0x126")])if(o[fc("0x163")]){const o=n[fc("0x15c")](Qo(this.editor[fc("0x4f")],"PENDING_ACTION_SUGGESTION"));this[fc("0x12d")][fc("0x126")](t,e)[fc("0xb9")]((()=>{n[fc("0xb5")](o)}))}else o.on(fc("0xf1"),(()=>{this[fc("0x129")](t,e)}))}[fc("0x177")](t){if(!this[fc("0x12d")]||!this._adapter.getSuggestion)throw new e.CKEditorError(fc("0xa1"),this);return this[fc("0x12d")][fc("0x13")](t)}[fc("0x10")](t){const{id:e,type:n,subType:o,authorId:r}=this[fc("0x56")](t),i=this[fc("0x7f")].get(e)||this[fc("0x47")](n,o,e,r,{});switch(this[fc("0x100")](i,n,o,r),this[fc("0x142")][fc("0x43")](i)){case"notReady":this[fc("0x177")](e)[fc("0xb9")]((t=>{let n=Promise.resolve();t[fc("0x132")]&&(n=this[fc("0xbc")][fc("0x21")]({channelId:this[fc("0x170")].config[fc("0x43")](fc("0x133")),threadId:e})),n.then((()=>{this[fc("0x154")](t)[fc("0x163")]=!0}))})),this[fc("0x142")][fc("0x1b")](i,fc("0xdc"));break;case fc("0x46"):this._updateSuggestionData(e,{state:"open"});case fc("0x62"):this[fc("0x142")].set(i,fc("0xda")),this[fc("0xab")](fc("0x149"),i);break;case fc("0xda"):this[fc("0xab")]("suggestionChanged",i)}return i[fc("0x16d")](t),i}[fc("0x16a")](t){const e=Array[fc("0x95")](t),n=e.filter((t=>fc("0x44")==t[fc("0x107")]));this._refreshAttributeSuggestionsChain(n);const o=e[fc("0x10b")]((t=>!t[fc("0x80")]&&fc("0x44")!=t[fc("0x107")])),r=this[fc("0x115")]({skipNotAttached:!0})[fc("0x10b")]((t=>!t[fc("0x80")]&&fc("0x44")!=t.type)),i=r[fc("0x10b")]((e=>!t[fc("0x63")](e))),s=new Map(r[fc("0xfb")]((t=>[t,this._suggestionFactory.getSuggestionCallback(t[fc("0x107")],t[fc("0x9d")],"chain")]))),x=new Map(r[fc("0xfb")]((t=>[t,t[fc("0xc6")]()]))),a=new Set,c=new Set;for(let t=0;t<o[fc("0x8b")];t++)u(o[t],o,t+1);for(let t=0;t<o.length;t++)u(o[t],i,0);const l=new Set;for(let t=0;t<o[fc("0x8b")];t++){const e=o[t];!c.has(e)&&e[fc("0xe2")]&&(l[fc("0x15c")](e[fc("0xe2")]),e[fc("0xe2")].next===e&&(e[fc("0xe2")][fc("0x24")]=null),e[fc("0xe2")]=null),!a[fc("0x63")](e)&&e[fc("0x24")]&&(l[fc("0x15c")](e[fc("0x24")]),e[fc("0x24")][fc("0xe2")]===e&&(e[fc("0x24")][fc("0xe2")]=null),e.next=null)}function u(t,e,n){for(let o=n;o<e.length;o++){const n=d(t,e[o]);n&&(n[0].next=n[1],n[1][fc("0xe2")]=n[0],a[fc("0x15c")](n[0]),c.add(n[1]))}}function d(t,e){if(t[fc("0x3d")].id!==e.author.id)return null;const n=s.get(t)(t,e,x[fc("0x43")](t),x.get(e));return n&&s[fc("0x43")](e)(t,e,x[fc("0x43")](t),x[fc("0x43")](e))?n[1][fc("0x16c")]&&n[1][fc("0x16c")].length?null:n:null}l[fc("0x30")]&&this[fc("0x16a")](l)}[fc("0x116")](t){if(0==t[fc("0x8b")])return;const e=this.getSuggestions({skipNotAttached:!0})[fc("0x10b")]((t=>"attribute"==t[fc("0x107")]&&t[fc("0x13c")])),n=[],o=new Map;for(const t of e){const e=(0,i.hashObject)(t[fc("0x157")]);o[fc("0x63")](e)||(o.set(e,n[fc("0x8b")]),n[fc("0x175")]([]));const r=o.get(e);n[r][fc("0x175")](t)}!function(){n[fc("0xcc")](((t,e)=>{const n=t[0][fc("0x101")],o=e[0][fc("0x101")];return n==o?t[0].attributes[fc("0x72")]<e[0][fc("0x157")].groupId?-1:1:n<o?-1:1}));for(const t of n)t[fc("0xcc")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x8b")];t++){if(0==n[t].length)continue;const e=[];for(let o=t+1;o<n.length;o++)0!=n[o][fc("0x8b")]&&r(n[t],n[o])&&e[fc("0x175")](o);for(const o of e)n[t]=n[t][fc("0x2b")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t.length;e++)t[e][fc("0x24")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0x8b")];e++)t[e][fc("0xe2")]=t[e-1]||null;function r(t,e){if(t[0][fc("0x3d")]!==e[0][fc("0x3d")])return!1;if(n=t[0],o=e[0],(n.hasComments||o.hasComments)&&(n[fc("0x132")]&&o.hasComments||!(n[fc("0x132")]&&o[fc("0x101")]<n[fc("0x16c")][fc("0x12a")][fc("0x43")](0)[fc("0x101")]||o[fc("0x132")]&&n[fc("0x101")]<o.commentThread[fc("0x12a")].get(0)[fc("0x101")])))return!1;var n,o;const r=lc(t[0].attributes,fc("0x72")),i=lc(e[0].attributes,fc("0x72"));return!!Go(r,i)&&(!!t[fc("0x13f")]((t=>e[fc("0x8e")]((e=>t.getFirstRange()[fc("0x160")](e[fc("0xc6")]())))))&&e[fc("0x13f")]((e=>t[fc("0x8e")]((t=>e[fc("0xc6")]()[fc("0x160")](t[fc("0xc6")]()))))))}}[fc("0x151")](t){const e=Array.from(t),n=this[fc("0x115")]({skipNotAttached:!0}),o=n[fc("0x10b")]((e=>!t[fc("0x63")](e))),r=new Map(e.map((t=>[t,this[fc("0x42")][fc("0x22")](t[fc("0x107")],t[fc("0x9d")],"join")]))),i=new Map(n[fc("0xfb")]((t=>[t,t[fc("0xfa")]()])));for(let t=0;t<e[fc("0x8b")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0x8b")];t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[fc("0x8b")];s++){const o=n[s];if(o[fc("0x107")]!==e[fc("0x107")]||o[fc("0x3d")].id!==e[fc("0x3d")].id||o.subType!==e[fc("0x9d")])continue;if(!kc(e,o))continue;if("attribute"==e[fc("0x107")]&&e.data.oldValue!=o[fc("0x8f")][fc("0xa8")])continue;if(fc("0x44")==e[fc("0x107")]&&t[fc("0xed")](e[fc("0x8f")][fc("0x7c")]))continue;if(fc("0x147")==e[fc("0x107")]){const n=t[fc("0x170")][fc("0x123")],o=e[fc("0x113")]();if(o&&(n[fc("0x114")].isObject(o)||n.schema[fc("0x14e")](o)))continue}const x=r[fc("0x43")](e),a=i[fc("0x43")](e),c=i[fc("0x43")](o),l=e.commentThread&&e.commentThread.length,u=o[fc("0x16c")]&&o[fc("0x16c")][fc("0x8b")];if(!l&&x(c,a))return t[fc("0x165")](o,e),i[fc("0x9f")](e),!0;if(!u&&x(a,c))return t._joinSuggestions(e,o),i[fc("0x9f")](o),!0}return!1}}_joinSuggestions(t,e){if(t.isMultiRange)for(const n of e[fc("0xfa")]())t.addRange(n);else{const n=e[fc("0xc6")]()[fc("0xd6")];this[fc("0x33")](t,this[fc("0x23")][fc("0x15")](t[fc("0xc6")]()[fc("0x139")],n))}e[fc("0x9b")]()}[fc("0x49")](t,e){const n=t[fc("0x0")](fc("0x128"))||t[fc("0x0")](fc("0x44"))?"FORMATTING":t[fc("0x6d")]();return Qo(this[fc("0x170")][fc("0x4f")],e+"_"+n+fc("0xd4"))}[fc("0x158")](){const t=this[fc("0x170")];(0,i.surroundingMarkersDetector)(this._model,(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this._splitMarkerName(t[fc("0x179")]);if(fc("0xad")===e){o.push(this[fc("0x49")](n,fc("0x6f")));break}}for(const t of n){const{group:e,type:n}=this[fc("0x56")](t[fc("0x179")]);if(fc("0xad")===e){o[fc("0x175")](this[fc("0x49")](n,fc("0x67")));break}}o[fc("0x8b")]&&t.ui.ariaLiveAnnouncer[fc("0x12c")](fc("0x26"),o[fc("0x58")](" "))}))}[fc("0xfd")](t){if(null!==this[fc("0xc4")])return!1;const e=this[fc("0x170")],n=e.model[fc("0x1a")][fc("0x71")].getChanges();if(0==n[fc("0x8b")])return!1;const o=[],r=n[fc("0x10b")]((t=>fc("0x44")==t.type)),i=n[fc("0x10b")]((t=>"insert"==t.type&&fc("0xd7")!=t[fc("0x179")])),s=n.filter((t=>"remove"==t[fc("0x107")]&&fc("0xd7")!=t[fc("0x179")]));for(const t of r)o[fc("0x175")]({key:t[fc("0x105")],newValue:t[fc("0x88")],oldValue:t.attributeOldValue,range:(x=t[fc("0x40")],null==x[fc("0xd6")][fc("0x70")]&&x[fc("0xd6")][fc("0x136")]==x[fc("0x139")].nodeAfter?Cc(x[fc("0x139")][fc("0x94")],e[fc("0x123")]):x)});var x;for(const t of i){const n=s[fc("0x6a")]((e=>e.position[fc("0x160")](t[fc("0x106")])));n&&o[fc("0x175")]({key:"$elementName",newValue:t[fc("0x179")],oldValue:n.name,range:e.model[fc("0xf4")](t.position[fc("0x94")])})}return 0!=o[fc("0x8b")]&&this[fc("0x141")](t,o)}[fc("0x12e")](t){let e=!1;const n=this[fc("0x170")][fc("0x123")].document[fc("0x71")][fc("0x5c")]()[fc("0x10b")]((t=>t.data[fc("0xe")]&&t[fc("0x179")][fc("0x0")](fc("0x51"))));for(const o of n){const{subType:n,id:r}=this[fc("0x56")](o[fc("0x179")]),i=n[fc("0xbf")]("|")[0];for(const n of this[fc("0x115")]({skipNotAttached:!0}))n.id!=r&&fc("0x44")==n.type&&n[fc("0x8f")]&&n[fc("0x8f")][fc("0x7c")]==i&&n[fc("0xc6")]().isIntersecting(o[fc("0x8f")].newRange)&&(this._reduceSuggestionAttributeRange(n,o[fc("0x8f")][fc("0xe")],t),e=!0)}return e}[fc("0x17c")](t){if(null!==this._recordAttributeSuggestionsFromVersion)return void t();const n=this[fc("0x170")];this[fc("0xc4")]=n[fc("0x123")].document[fc("0xc")],t();const o=new Map;for(const t of n[fc("0x123")].document[fc("0x8")][fc("0xb7")](this[fc("0xc4")]))if([fc("0x19"),"addAttribute",fc("0xb"),fc("0x169")][fc("0x168")](t[fc("0x107")])){const e=t.batch,n=o[fc("0x43")](e)||[];n[fc("0x175")](t),o[fc("0x1b")](e,n)}this[fc("0xc4")]=null;for(const[t,r]of o){const o=(0,e.uid)();n.model[fc("0xa4")](t,(t=>{const e=[];for(const t of r){let r,i,s,x;if(fc("0x19")==t[fc("0x107")]){const e=t;r=Cc(e[fc("0x106")][fc("0x94")],n[fc("0x123")]),i=fc("0x3f"),s=e[fc("0x143")],x=e[fc("0x13e")]}else{const e=t,o=this[fc("0xed")](e[fc("0x7c")]),a=this._inlineAttributeKeys[fc("0x63")](e[fc("0x7c")]);if(!o&&!a)continue;r=o?Cc(e[fc("0x40")][fc("0x139")].nodeAfter,n[fc("0x123")]):e[fc("0x40")],i=e[fc("0x7c")],s=fc("0xb")==t[fc("0x107")]?void 0:e[fc("0x5d")],x=e[fc("0xa8")]}this[fc("0x50")](r,i,x,s,{groupId:o}),e[fc("0x175")]({range:r,key:i,newValue:s,oldValue:x})}this[fc("0x141")](t,e)}))}}_reduceExistingSuggestions(t,e){if(0==e[fc("0x8b")])return!1;let n=!1;for(const o of e){const e=this[fc("0xca")](o[fc("0x40")],fc("0x44")).filter((t=>!t[fc("0xd0")][fc("0x10e")]))[fc("0xfb")]((t=>t[fc("0xad")])),r=(0,i.hashObject)({newValue:o[fc("0x5d")]});e[fc("0x10b")]((t=>{const[e,n]=t[fc("0x9d")].split("|");return e==o[fc("0x7c")]&&n!=r}))[fc("0xc2")]((e=>{this[fc("0x162")](e,o.range,t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const o=t.getFirstRange().getDifference(e);0!==o[fc("0x8b")]?1!==o[fc("0x8b")]?this._breakSuggestionMarker(t,e[fc("0x139")],e[fc("0xd6")]):this._setSuggestionRange(t,o[0]):n.removeMarker(t[fc("0xc7")]())}}class pc{constructor(t){this[fc("0x55")]=t,this._model=t.model,this[fc("0xa7")]=new Map,this[fc("0xfc")]=new Map,this[fc("0x15a")]()}[fc("0x3a")](t,e,n,o,r,i){return new Jo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:i,onAccept:(...n)=>this[fc("0x22")](t,e,"accept")(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,fc("0x2f"))(...n)})}[fc("0x14d")](t,e,n,o){const r=t+":"+e+":"+n;this[fc("0xa7")].set(r,o)}[fc("0x22")](t,e,n){const o=t+":"+e+":"+n;return this[fc("0xa7")][fc("0x43")](o)||this[fc("0xfc")][fc("0x43")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[fc("0xcc")](((t,e)=>t.start.isBefore(e.start)?1:-1)),this[fc("0x23")].change((e=>{for(const n of t){let t;t=n.end.isAtEnd&&n[fc("0xd6")][fc("0x136")]==n[fc("0x139")][fc("0x94")]?e[fc("0x75")](n[fc("0x139")][fc("0x94")],"on"):e[fc("0x75")](n),this[fc("0x23")][fc("0x8c")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[fc("0x23")][fc("0x83")]((n=>{const{commandName:o,commandParams:r=[]}=e,i=t[fc("0xfb")]((t=>(Ec(t)&&(t=this[fc("0x23")][fc("0x15")](t[fc("0xd6")])),t)))[fc("0x10b")]((t=>fc("0xf8")!==t[fc("0x66")][fc("0x164")]));if(i[fc("0x8b")]<1)return;const x=Array[fc("0x95")](this[fc("0x23")][fc("0x1a")][fc("0x140")].getRanges())[fc("0xfb")]((t=>s.LiveRange[fc("0x77")](t)));n.setSelection(i);for(const t of this[fc("0x55")][fc("0xb6")][fc("0xb6")]())t[fc("0x103")]();r[fc("0x175")]({forceDefaultExecution:!0}),this[fc("0x55")].execute(o,...r);const a=x[fc("0x10b")]((t=>fc("0xf8")!=t[fc("0x66")].rootName));a[fc("0x8b")]>0&&n[fc("0xfe")](a);for(const t of x)t[fc("0x6")]()}))},o=(t,e)=>1==t[fc("0x8b")]&&1==e[fc("0x8b")]&&t[0].end[fc("0x160")](e[0][fc("0x139")]),r=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0x23")])?[t,e]:Ac(e,t,o,n,this[fc("0x23")])?[e,t]:null;this[fc("0xfc")][fc("0x1b")]("insertion:accept",t),this[fc("0xfc")][fc("0x1b")](fc("0x150"),e),this._defaultCallbacks[fc("0x1b")](fc("0x98"),o),this[fc("0xfc")].set(fc("0x12f"),r),this[fc("0xfc")][fc("0x1b")](fc("0xae"),e),this._defaultCallbacks[fc("0x1b")](fc("0x2"),t),this[fc("0xfc")].set("deletion:join",o),this._defaultCallbacks[fc("0x1b")](fc("0x146"),r),this[fc("0xfc")].set(fc("0x9a"),n),this._defaultCallbacks[fc("0x1b")](fc("0x73"),t),this[fc("0xfc")][fc("0x1b")](fc("0xdd"),o),this._defaultCallbacks.set(fc("0x68"),t),this[fc("0xfc")][fc("0x1b")]("formatBlock:accept",n),this[fc("0xfc")].set(fc("0x99"),t),this[fc("0xfc")][fc("0x1b")](fc("0x52"),o),this[fc("0xfc")][fc("0x1b")](fc("0x4a"),t),this._defaultCallbacks.set(fc("0x13d"),t),this._defaultCallbacks.set(fc("0x39"),((t,e)=>{if(!e)return;const n=this[fc("0x55")].plugins.get(hc);this[fc("0x23")].change((o=>{if(fc("0x3f")==e[fc("0x7c")])for(const n of t){const t=n[fc("0x139")][fc("0x94")],r=e[fc("0xa8")];o[fc("0x19")](t,r)}else if(n[fc("0xed")](e[fc("0x7c")]))for(const n of t)void 0!==e[fc("0xa8")]?o.setAttribute(e[fc("0x7c")],e[fc("0xa8")],n[fc("0x139")].nodeAfter):o[fc("0xb")](e[fc("0x7c")],n[fc("0x139")][fc("0x94")]);else for(const n of t)e[fc("0xa8")]?o.setAttribute(e[fc("0x7c")],e[fc("0xa8")],n):o[fc("0xb")](e[fc("0x7c")],n)}))})),this._defaultCallbacks[fc("0x1b")](fc("0x4b"),o)}}function bc(t,e,n){for(const o of e[fc("0x136")][fc("0x11b")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[fc("0x10a")](o))return!1;if(t[fc("0x102")](o)||t[fc("0x14e")](o))return!0}return!1}function Ec(t){return t[fc("0xd6")][fc("0x136")]==t.start[fc("0x94")]&&t[fc("0xd6")].isAtStart}function _c(t,e,n,o){const r=t=>!t.item.is("$textProxy")&&!o[fc("0x102")](t[fc("0x121")]),i=t[fc("0x139")].getLastMatchingPosition(r),s=t.end[fc("0xec")](r,{direction:fc("0x11d")});return!(t.start[fc("0x160")](i)&&t[fc("0xd6")][fc("0x160")](s)||(i[fc("0x9c")](s)?n[fc("0x125")](e,{range:n[fc("0x15")](i,s)}):n[fc("0x84")](e),0))}function Tc(t){return(0,i.hashObject)(t)}function yc(t){const e=t[fc("0x139")].nodeAfter;return e&&e.is(fc("0x3c"))}function Cc(t,e){const n=e[fc("0x114")].isObject(t)||e[fc("0x114")][fc("0x7b")](t);return e[fc("0x15")](e[fc("0x4")](t,fc("0x29")),n?e[fc("0x17a")](t):e[fc("0x4")](t,fc("0xd6")))}function Ac(t,e,n,o,r){if(!kc(t,e))return!1;if(n.end[fc("0x160")](o.start))return!0;if(t[fc("0x107")]!=e[fc("0x107")])return!1;if(!n[fc("0xd6")][fc("0xa6")](o[fc("0x139")]))return!1;const i=r.createRange(n.end,o[fc("0x139")])[fc("0xe5")]();for(const t of i)if([fc("0x166"),fc("0xa9")][fc("0x168")](t[fc("0x107")])&&r.schema.isLimit(t[fc("0x121")]))return!1;return!0}function kc(t,e){return!(!t[fc("0x13c")]||!e[fc("0x13c")])&&Go(t[fc("0x157")],e.attributes)}function Ic(t,e){const n=Sc(t[fc("0x157")]),o=Sc(e);if(!t[fc("0x13c")])return!1;for(const t of Object[fc("0x14")](o))if(!Go(n[t],o[t]))return!1;return!0}function Sc(t){const e=Object.assign({},t);return delete e[fc("0x97")],delete e[fc("0x92")],e}const Rc=["PENDING_ACTION_SUGGESTION","isEnabled","plugins","_pendingAction","model","_editor","canDiscard","remove","discardSuggestion","change:isDirty","canEditAt","unbind","_acceptCommand","get","PendingActions","canAccept","locale","bind","getRanges","listenTo","_removePendingAction","stopListening","view","destroy","_setPendingAction","execute","commands","_discardCommand","commentThreadController","acceptSuggestion"];var vc,Nc;vc=Rc,Nc=436,function(t){for(;--t;)vc.push(vc.shift())}(++Nc);const Lc=function(t,e){return Rc[t-=0]};class Mc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Lc("0x12")]=e,this[Lc("0x6")]=n,this[Lc("0xc")]=o,this[Lc("0x13")]=t,this[Lc("0x1a")]=t[Lc("0xa")][Lc("0x1b")](Lc("0xd")),this._discardCommand=t[Lc("0xa")][Lc("0x1b")](Lc("0x16")),this.view[Lc("0x1")](Lc("0xf")).to(this._acceptCommand,this[Lc("0xb")],((t,e)=>t||e)),this[Lc("0x6")][Lc("0x1")]("canAccept").to(this[Lc("0x1a")],Lc("0xf"),(t=>t&&this[Lc("0x13")].model[Lc("0x18")](e[Lc("0x2")]()))),this[Lc("0x6")][Lc("0x1")](Lc("0x14")).to(this[Lc("0xb")],Lc("0xf"),(t=>t&&this[Lc("0x13")][Lc("0x12")][Lc("0x18")](e.getRanges()))),this[Lc("0x11")]=null,n.isDirty&&this[Lc("0x8")](),this[Lc("0x3")](n,Lc("0xd"),(()=>this[Lc("0xd")]())),this[Lc("0x3")](n,Lc("0x16"),(()=>this[Lc("0x16")]())),this[Lc("0x3")](n,Lc("0x17"),(()=>{n.isDirty?this[Lc("0x8")]():this._removePendingAction()}))}[Lc("0xd")](){this._acceptCommand[Lc("0x9")](this[Lc("0x12")].id)}discardSuggestion(){this[Lc("0xb")].execute(this[Lc("0x12")].id)}[Lc("0x7")](){this[Lc("0x6")].unbind(Lc("0xf")),this.view[Lc("0x19")](Lc("0x1d")),this[Lc("0x6")][Lc("0x19")](Lc("0x14")),this[Lc("0x5")](),this[Lc("0xc")][Lc("0x7")](),this[Lc("0x11")]&&this[Lc("0x4")]()}_setPendingAction(){const t=Qo(this._editor[Lc("0x0")],Lc("0xe"));this[Lc("0x11")]=this[Lc("0x13")][Lc("0x10")][Lc("0x1b")](Lc("0x1c")).add(t)}[Lc("0x4")](){null!==this._pendingAction&&this._editor[Lc("0x10")][Lc("0x1b")](Lc("0x1c"))[Lc("0x15")](this[Lc("0x11")]),this[Lc("0x11")]=null}}const wc=["element","disabledSubmit","_localUser","value","bind","_createCommentViews","editor","commentInputView","cancel","_config","set","commentThreadInputView","addComment","length","_model","authoredAt","locale","destroy","removeComment","canAccept","submit","canDiscard","isActive","disableComments","_createCommentThreadInputView","delegate","isDirty","descriptionParts","setData","fire","focus","commentsListView","CommentView","updateComment","commentThread","assign","isReadOnly"];var Oc,Fc;Oc=wc,Fc=421,function(t){for(;--t;)Oc.push(Oc.shift())}(++Fc);const Dc=function(t,e){return wc[t-=0]};class Bc extends r.View{constructor(t,e,n,o){super(t),this[Dc("0x11")]=null,this.commentThreadInputView=null,this[Dc("0x21")](Dc("0x8"),!1),this[Dc("0x21")](Dc("0x1"),e.authoredAt),this[Dc("0x1b")]("authoredAt").to(e),this[Dc("0x21")](Dc("0xd"),[]),this.set(Dc("0xc"),!1),this[Dc("0x21")]("isEnabled",!1),this[Dc("0x21")](Dc("0x5"),!1),this[Dc("0x21")](Dc("0x7"),!1),this._model=e,this._localUser=n,this[Dc("0x20")]=o,o[Dc("0x9")]?this[Dc("0x21")](Dc("0x24"),1):this[Dc("0x1c")]()}[Dc("0x10")](){this[Dc("0x17")][Dc("0x10")]()}[Dc("0x3")](){this[Dc("0x11")]&&this.commentsListView[Dc("0x3")](),this[Dc("0x22")]&&this[Dc("0x22")][Dc("0x3")](),super[Dc("0x3")]()}[Dc("0x1c")](){const{CommentsListView:t}=this[Dc("0x20")];this[Dc("0x11")]=new t(this[Dc("0x2")],this[Dc("0x0")][Dc("0x14")],Object[Dc("0x15")]({CommentView:this[Dc("0x20")][Dc("0x12")]},this._config)),this[Dc("0x11")][Dc("0xb")](Dc("0x4")).to(this),this.commentsListView[Dc("0xb")](Dc("0x13")).to(this),this.commentsListView.bind(Dc("0x8")).to(this),this.set(Dc("0x24"),this[Dc("0x11")][Dc("0x24")]+1),this.bind(Dc("0x24")).to(this.commentsListView,Dc("0x24"),(t=>t+1)),this[Dc("0x22")]=this[Dc("0xa")](),this.on("removeComment",(()=>this[Dc("0x10")]())),this[Dc("0x1b")](Dc("0xc")).to(this[Dc("0x11")],"hasDirtyComment",this[Dc("0x22")][Dc("0x1e")],Dc("0x1a"),((t,e)=>t||!!e))}[Dc("0xa")](){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[Dc("0x19")],this[Dc("0x20")].editorConfig),n=e[Dc("0x1e")];return e[Dc("0x1b")]("showInput").to(this,"isActive",this[Dc("0x0")][Dc("0x14")],Dc("0x16"),n,Dc("0x1a"),((t,e,n)=>!!n||t&&!e)),n.on(Dc("0x6"),((t,e)=>{this[Dc("0xf")](Dc("0x23"),e),n[Dc("0x1d")][Dc("0xe")]("")})),n.on(Dc("0x1f"),(()=>this[Dc("0x10")]())),n.bind(Dc("0x18")).to(this[Dc("0x0")].commentThread,Dc("0x16")),e}}const Pc=["cancel","locale","ck-annotation__info-name",'"></span>',"check","split","ck-annotation__main","_config","ck-annotation__user","map","@external","getExternalSuggestionNote","Discard suggestion","userView","source","</p>","attributes","extendTemplate","delegate","change:description","ck-suggestion__user","content","descriptionParts","ck-annotation__info","querySelector","EXTERNAL_AVATAR","isActive","createElement","_createButton","_descriptionElement","commentsListView","ck-suggestion","disableComments","name","fire","span","commentThread","ck-suggestion__actions","time","discardButton","render","element","editorReady","ck-annotation","div","innerHTML","discardSuggestion","canDiscard",'" title="',"acceptSuggestion","formatDateTime","importWord","creator","canAccept","set","isExternal","commentThreadInputView","push","editorDestroyed","description","authoredAt",'<span class="ck-suggestion-type">',"ck-suggestion__info","<p>","</span>","getUserViewNotificationText","ck-suggestion-","bind","ck-suggestion-wrapper--active","acceptButton","author","ck-annotation__info-time","EXTERNAL_IMPORT_WORD_AVATAR","type","join","ck-annotation__actions","EXTERNAL_SUGGESTION","ck-suggestion--discard","EXTERNAL_IMPORT_WORD_SUGGESTION",".ck-annotation__content-wrapper","title","color","isEnabled","getTemplate","ck-comment__info-time","_model"];var Uc,jc;Uc=Pc,jc=153,function(t){for(;--t;)Uc.push(Uc.shift())}(++jc);const Gc=function(t,e){return Pc[t-=0]};class Vc extends Bc{constructor(e,n,o,r){super(e,n,o,r),this[Gc("0x49")](Gc("0x6"),""),this.bind(Gc("0x6")).to(this,Gc("0x29"),(t=>t&&t[0]?t[0].type:"")),this[Gc("0x0")](Gc("0x4e")).to(this,Gc("0x29"),this,Gc("0x2d"),((t,e)=>{let n="";for(const e of t)n+=Gc("0x52")+Hc(e[Gc("0x28")],e[Gc("0xe")])+Gc("0x22");return e?n:(0,i.trimHtml)(n,{limit:140})})),this[Gc("0x30")]=null,this[Gc("0x2")]=this[Gc("0x2f")](Qo(e,"Accept suggestion"),t.icons[Gc("0x17")],"ck-suggestion--accept",Gc("0x44"),"sw"),this[Gc("0x2")][Gc("0x0")](Gc("0xf")).to(this,Gc("0x48")),this[Gc("0x3a")]=this[Gc("0x2f")](Qo(e,Gc("0x1f")),t.icons[Gc("0x13")],Gc("0xa"),Gc("0x41"),"sw"),this[Gc("0x3a")][Gc("0x0")](Gc("0xf")).to(this,Gc("0x42")),this[Gc("0x20")]=new i.UserView(e,this._model[Gc("0x3")],this[Gc("0x54")]()),this.userView.extendTemplate({attributes:{class:[Gc("0x27"),Gc("0x1b")]}}),this.setTemplate(this[Gc("0x10")]())}[Gc("0x10")](){const t=this.bindTemplate,e=[{tag:Gc("0x3f"),attributes:{class:[Gc("0x51"),Gc("0x2a")]},children:[{tag:Gc("0x36"),children:[{text:this[Gc("0x20")][Gc("0x34")]}],attributes:{class:["ck-suggestion__info-name",Gc("0x15")]}},{tag:Gc("0x39"),attributes:{datetime:t.to(Gc("0x4f")),class:[Gc("0x11"),Gc("0x4")]},children:[{text:t.to(Gc("0x4f"),(t=>this[Gc("0x1a")][Gc("0x45")](t)))}]}]},{tag:Gc("0x3f"),attributes:{class:[Gc("0x38"),Gc("0x8")]},children:[this[Gc("0x2")],this[Gc("0x3a")]]},{tag:Gc("0x3f"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[Gc("0x12")].isExternal&&e.push({tag:Gc("0x3f"),attributes:{class:["ck-comment__external"]},children:[{text:this[Gc("0x1e")]()}]});const n={tag:Gc("0x3f"),attributes:{class:["ck-suggestion-wrapper",t.if("isActive",Gc("0x1")),t.to("type",(t=>Gc("0x55")+t)),this[Gc("0x1a")][Gc("0x33")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this._model.id,"data-thread-id":this[Gc("0x12")][Gc("0x37")].id,"data-author-id":this._model[Gc("0x3")].id,tabindex:-1},children:[{tag:Gc("0x3f"),attributes:{class:[Gc("0x32"),Gc("0x3e")]},children:[this[Gc("0x20")],{tag:Gc("0x3f"),attributes:{class:["ck-suggestion__main",Gc("0x19")]},children:e}]}]};return this[Gc("0x31")]&&this[Gc("0x4b")]&&(n.children[Gc("0x4c")](this.commentsListView,this[Gc("0x4b")]),this[Gc("0x31")][Gc("0x25")](Gc("0x3d")).to(this),this.commentsListView.delegate(Gc("0x4d")).to(this),this[Gc("0x4b")][Gc("0x25")](Gc("0x3d")).to(this),this.commentThreadInputView[Gc("0x25")](Gc("0x4d")).to(this)),n}[Gc("0x3b")](){super.render(),this._descriptionElement=this[Gc("0x3c")][Gc("0x2b")](Gc("0xc")),this._descriptionElement[Gc("0x40")]=this.description,this.on(Gc("0x26"),((t,e,n)=>{this[Gc("0x30")][Gc("0x40")]=n}))}[Gc("0x2f")](t,e,n,o,i){const s=new r.ButtonView(this[Gc("0x14")]);return s[Gc("0x49")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s[Gc("0x24")]({attributes:{class:n}}),s.on("execute",(()=>{this[Gc("0x35")](o,this[Gc("0x12")].id)})),s}[Gc("0x1e")](){return Gc("0x46")===this[Gc("0x12")][Gc("0x23")]["@external"][Gc("0x21")]?Qo(this[Gc("0x14")],Gc("0xb")):Qo(this[Gc("0x14")],Gc("0x9"))}getUserViewNotificationText(){return this[Gc("0x12")][Gc("0x4a")]?Gc("0x46")===this[Gc("0x12")].attributes[Gc("0x1d")][Gc("0x21")]?Qo(this[Gc("0x14")],Gc("0x5"),this[Gc("0x12")][Gc("0x47")][Gc("0x34")]):Qo(this[Gc("0x14")],Gc("0x2c"),this[Gc("0x12")][Gc("0x47")][Gc("0x34")]):null}}function Hc(t,e){let n="";return n+=t[Gc("0x18")]("*")[Gc("0x1c")](((t,e)=>e%2!=0?Gc("0x50")+zc(t)+Gc("0x53"):zc(t)))[Gc("0x7")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e.value+Gc("0x43")+e[Gc("0xd")]+Gc("0x16")),n}function zc(t){const e=document[Gc("0x2e")](Gc("0x36"));return e.innerText=t,e[Gc("0x40")]}const Wc=["_disableComments","plugins","TrackChangesEditing","_suggestionToController","size","commandName","unbind","Track changes","some","_handleSuggestionControllerDelayed","switchbutton","Accept all suggestions","getAllAdjacentSuggestions","execute","_initializeController","createAnnotationView","getJoined","Discard all selected suggestions","define","isDirty","innerView","_destroyController","trackChanges","head","config","stopListening","change:previous","push","lowest","getDescriptions","editing","trackChanges.disableComments","Discard all suggestions","delete","_descriptionFactory","buttonView","componentFactory","reduce","separator","actionView","createAnnotation","add","pluginName","_bindAnnotationToEditors","isEnabled","comments.maxCommentsWhenCollapsed","_handleControllerBuffer","CommentsRepository","suggestion-","addSourceCollector","type","value","TrackChangesUI","destroy","length","mainView","Accept all selected suggestions","editor","discardButton","init","bind","get","acceptAllSuggestions","SuggestionThreadView","discardSelectedSuggestions","_refreshActiveMarkers","view","refreshSelectedViews","isOn","_createUIButton","button","Annotations","getByInnerView","clear","toMany","getFirstRange","getMarkers","filter","source","values","suggestionChanged","hasSuggestion","has","createCommentThreadController","acceptSelectedSuggestions","listenTo","_updateController","activeMarkers","descriptionParts","isMultiRange","locale","arrowView","model","set","CommentView","comments","commentThread","isInContent","from","previous","comments.maxCommentCharsWhenCollapsed","getRanges","requires","commands","EditorAnnotations","_viewToController","acceptButton","comments.editorConfig","_annotationViews","focus","CommentsUI"];var Kc,qc;Kc=Wc,qc=384,function(t){for(;--t;)Kc.push(Kc.shift())}(++qc);const Xc=function(t,e){return Wc[t-=0]};class $c extends t.Plugin{static get[Xc("0x33")](){return[hc,i.Users,Xc("0x6b"),Xc("0x14"),Xc("0x35")]}static get[Xc("0x66")](){return Xc("0x1")}constructor(t){super(t),this[Xc("0x3f")]=new Map,this[Xc("0x36")]=new Map,this[Xc("0x39")]=new Map,this[Xc("0x6a")]=new Map;const e=this[Xc("0x6")][Xc("0x54")];e[Xc("0x4e")]("trackChanges.SuggestionThreadView",Vc),e[Xc("0x4e")](Xc("0x5b"),!1),this[Xc("0x3c")]=e[Xc("0xa")]("trackChanges.disableComments")}_handleSuggestionControllerDelayed(t,e){0===this._handleControllerBuffer[Xc("0x40")]&&setTimeout((()=>{for(const[t,e]of this[Xc("0x6a")]){const n=this._suggestionToController[Xc("0x1f")](t);n||e?n&&e&&this[Xc("0x51")](t):this[Xc("0x4a")](t)}this[Xc("0x6")][Xc("0x3d")].get("EditorAnnotations")[Xc("0x10")](),this[Xc("0xe")](),this[Xc("0x6a")][Xc("0x16")]()}),10),this[Xc("0x6a")][Xc("0x2a")](t,e)}[Xc("0x8")](){const t=this.editor,e=t[Xc("0x3d")][Xc("0xa")](Xc("0x3e")),n=t.plugins.get(Xc("0x14")),o=t[Xc("0x3d")][Xc("0xa")]("EditorAnnotations"),r=t.plugins.get(Xc("0x6b"));t.ui[Xc("0x60")].add(Xc("0x52"),(t=>this._createUIButton(t))),o[Xc("0x6d")]((()=>{const t=[];for(const[e,n]of Array[Xc("0x2f")](this[Xc("0x3f")])){const o=e[Xc("0x48")](),r=[];for(const t of o){if(!t[Xc("0x2e")])continue;if(t[Xc("0x26")]){r.push(...t[Xc("0x32")]());continue}const e=t[Xc("0x18")]();if(r[Xc("0x3")]>0){const t=r[0][Xc("0x4c")](e);if(t){r[0]=t;continue}}r[Xc("0x57")](e)}t[Xc("0x57")]([n[Xc("0xf")],r])}return t})),this[Xc("0x22")](e,"suggestionLoaded",((t,e)=>{this[Xc("0x22")](e,Xc("0x56"),((t,n,o,r)=>{e[Xc("0x2e")]&&(null==o?(this[Xc("0x23")](r[Xc("0x53")]),this[Xc("0x45")](e,!1)):(this[Xc("0x23")](o[Xc("0x53")]),null==r&&this._handleSuggestionControllerDelayed(e,!0)))})),null!==e[Xc("0x30")]?this[Xc("0x23")](e.head):this[Xc("0x45")](e,!1)})),this.listenTo(e,"suggestionUnloaded",((t,e,n)=>{this[Xc("0x55")](e,Xc("0x56")),this[Xc("0x6a")][Xc("0x5d")](e),this[Xc("0x3f")][Xc("0x1f")](e)&&this[Xc("0x51")](e),n&&this._updateController(n[Xc("0x53")])})),this.listenTo(e,Xc("0x1d"),((t,e)=>{this[Xc("0x23")](e)})),this.listenTo(n,"change:activeAnnotations",(()=>{this._refreshActiveMarkers()})),this[Xc("0x22")](r,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Xc("0x1e")](n))return;const r=e.getSuggestion(n);this[Xc("0x3f")].get(r)[Xc("0xf")][Xc("0x3a")]()}),{priority:Xc("0x58")})}_refreshActiveMarkers(){const t=this[Xc("0x6")].plugins[Xc("0xa")](Xc("0x14")),e=this[Xc("0x6")][Xc("0x3d")][Xc("0xa")](Xc("0x3e")),n=Array[Xc("0x2f")](t.activeAnnotations,(t=>t[Xc("0x50")]))[Xc("0x1a")]((t=>this._viewToController[Xc("0x1f")](t))),o=[];for(const t of n){const e=this._viewToController[Xc("0xa")](t).model[Xc("0x48")]();o.push(...e[Xc("0x61")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Xc("0x24")]=o}[Xc("0x12")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[Xc("0x6")][Xc("0x34")][Xc("0xa")]("trackChanges"),i=Qo(t,Xc("0x43"));n[Xc("0x5f")][Xc("0x2a")]({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.buttonView[Xc("0x9")](Xc("0x11")).to(o,Xc("0x0")),n[Xc("0x5f")].on(Xc("0x49"),(()=>{o[Xc("0x49")](),this[Xc("0x6")][Xc("0x5a")][Xc("0xf")].focus()}));const s=new e.Collection,x=[{type:Xc("0x46"),model:{withText:!0,label:i,commandName:Xc("0x52")}},{type:Xc("0x62")},{type:Xc("0x13"),model:{withText:!0,label:Qo(t,Xc("0x47")),commandName:Xc("0xb")}},{type:Xc("0x13"),model:{withText:!0,label:Qo(t,Xc("0x5")),commandName:Xc("0x21")}},{type:Xc("0x13"),model:{withText:!0,label:Qo(t,Xc("0x5c")),commandName:"discardAllSuggestions"}},{type:Xc("0x13"),model:{withText:!0,label:Qo(t,Xc("0x4d")),commandName:Xc("0xd")}}];for(const t of x){let e={type:Xc("0x62")};if(t[Xc("0x29")]){const n=new r.Model(t.model),o=this[Xc("0x6")][Xc("0x34")].get(n.commandName);n.bind(Xc("0x11"),Xc("0x68")).to(o,Xc("0x0"),Xc("0x68")),e={type:t[Xc("0x6e")],model:n}}s[Xc("0x65")](e)}(0,r.addListToDropdown)(n,s);const a=x.filter((t=>null!=t[Xc("0x29")])).map((t=>this.editor[Xc("0x34")][Xc("0xa")](t[Xc("0x29")][Xc("0x41")]))),c=n[Xc("0x5f")];return c[Xc("0x63")][Xc("0x42")]("isEnabled"),c.arrowView[Xc("0x42")](Xc("0x68")),c[Xc("0x63")][Xc("0x9")](Xc("0x68")).to(o,Xc("0x68")),c[Xc("0x28")][Xc("0x9")](Xc("0x68"))[Xc("0x17")](a,Xc("0x68"),((...t)=>t[Xc("0x44")]((t=>t)))),n.on(Xc("0x49"),(t=>{this[Xc("0x6")].execute(t[Xc("0x1b")].commandName),this[Xc("0x6")].editing.view[Xc("0x3a")]()})),n}_initializeController(t){const e=this[Xc("0x6")],n=e.config,o=e[Xc("0x3d")][Xc("0xa")](Xc("0x14")),r=e.plugins.get("CommentsRepository"),s=e[Xc("0x3d")][Xc("0xa")]("EditorAnnotations"),x=e[Xc("0x3d")][Xc("0xa")](i.Users).me,a=n.get(Xc("0x52"))[Xc("0xc")],{CommentsListView:c,CommentThreadInputView:l}=e[Xc("0x3d")][Xc("0xa")](Xc("0x3b"));let u,d;this._annotationViews[Xc("0x1f")](t.id)?(d=this[Xc("0x39")][Xc("0xa")](t.id),u=d[Xc("0x4")]):(u=new a(e[Xc("0x27")],t,x,{disableComments:this[Xc("0x3c")],editorConfig:n[Xc("0xa")](Xc("0x38")),maxCommentsWhenCollapsed:n[Xc("0xa")](Xc("0x69")),maxThreadTotalWeight:n[Xc("0xa")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Xc("0xa")](Xc("0x31")),formatDateTime:(0,i.getDateTimeFormatter)(n.get(Xc("0x27"))),CommentView:n[Xc("0xa")](Xc("0x2c"))[Xc("0x2b")],CommentsListView:c,CommentThreadInputView:l}),u[Xc("0x37")].on(Xc("0x49"),(()=>{e[Xc("0x5a")][Xc("0xf")].focus()})),u[Xc("0x7")].on(Xc("0x49"),(()=>{e[Xc("0x5a")][Xc("0xf")][Xc("0x3a")]()})),d=o[Xc("0x4b")](this[Xc("0x6")][Xc("0x27")],u),d[Xc("0x9")](Xc("0x4f")).to(u,"isDirty"),d[Xc("0x9")]("length").to(u),d[Xc("0x9")](Xc("0x6e")).to(u,Xc("0x6e"),(t=>Xc("0x6c")+t)),this[Xc("0x39")][Xc("0x2a")](t.id,d));const g=r[Xc("0x20")](t[Xc("0x2d")],u),f=new Mc(e,t,u,g),m=t.getAllAdjacentSuggestions()[Xc("0x1a")]((t=>t[Xc("0x2e")]));u.descriptionParts=e[Xc("0x3d")][Xc("0xa")](Xc("0x3e"))._descriptionFactory[Xc("0x59")](m),this[Xc("0x3f")].set(t,f),this._viewToController.set(u,f);const h=o[Xc("0x64")]({view:d,target:()=>{const n=[],o=t[Xc("0x48")]()[Xc("0x1a")]((t=>t.isInContent));for(const t of o)n[Xc("0x57")](...t[Xc("0x19")]());return(0,i.getAllMarkersDomElementsSorted)(e[Xc("0x5a")],n)},type:()=>Xc("0x6c")+f[Xc("0xf")][Xc("0x6e")]});r[Xc("0x67")](u,h),o.add(h),s.registerAnnotation(h)}_destroyController(t){const e=this[Xc("0x6")][Xc("0x3d")][Xc("0xa")](Xc("0x6b")),n=this[Xc("0x6")].plugins[Xc("0xa")]("Annotations"),o=this[Xc("0x3f")].get(t),r=o[Xc("0xf")],i=n[Xc("0x15")](r);e._unbindEditors(r),i&&n.remove(i),this[Xc("0x3f")][Xc("0x5d")](t),this._viewToController[Xc("0x5d")](r),o[Xc("0x2")]()}[Xc("0x23")](t){if(!t[Xc("0x2e")]||!this._suggestionToController[Xc("0x1f")](t))return;const e=this[Xc("0x6")][Xc("0x3d")][Xc("0xa")](Xc("0x3e")),n=this._suggestionToController[Xc("0xa")](t),o=t[Xc("0x48")]();n[Xc("0xf")][Xc("0x25")]=e[Xc("0x5e")][Xc("0x59")](o)}[Xc("0x2")](){for(const t of this._suggestionToController.keys())this[Xc("0x51")](t);for(const t of this[Xc("0x39")][Xc("0x1c")]())t[Xc("0x4")].destroy();super.destroy()}}var Zc,Yc,Jc=["getSuggestion","plugins","requires","addSuggestionData","TrackChanges","pluginName","addSuggestion","getSuggestions","get","Comments","editor","adapter"];Zc=Jc,Yc=115,function(t){for(;--t;)Zc.push(Zc.shift())}(++Yc);var Qc=function(t,e){return Jc[t-=0]};class tl extends t.Plugin{static get[Qc("0x7")](){return[hc,$c,Qc("0x2")]}static get[Qc("0xa")](){return Qc("0x9")}set[Qc("0x4")](t){this[Qc("0x3")][Qc("0x6")].get(hc)[Qc("0x4")]=t}get adapter(){return this[Qc("0x3")][Qc("0x6")][Qc("0x1")](hc)[Qc("0x4")]}[Qc("0xb")](t){return this[Qc("0x3")].plugins[Qc("0x1")](hc)[Qc("0x8")](t)}[Qc("0x0")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Qc("0x3")][Qc("0x6")][Qc("0x1")](hc)[Qc("0x0")]({skipNotAttached:t,toJSON:e})}[Qc("0x5")](t){return this[Qc("0x3")][Qc("0x6")][Qc("0x1")](hc)[Qc("0x5")](t)}}const el=["getRootsAttributes","getRootNames","discardAllSuggestions","track-changes-data-invalid-editor-creator","TrackChangesData","getFullData","addSuggestionData","data","map","appendChild","TrackChangesEditing","config","useAnonymousUser","users","plugins","get","end","set","Pagination","div","_adapter","acceptAllSuggestions","editor","Users","init","pluginName","getDataWithDiscardedSuggestions","result","getUser","getDataWithAcceptedSuggestions","createDocumentFragment","destroy","function","model","execute","reduce","document","editorCreator","define"];var nl,ol;nl=el,ol=388,function(t){for(;--t;)nl.push(nl.shift())}(++ol);const rl=function(t,e){return el[t-=0]},il=[rl("0x14")];class sl extends t.Plugin{static get requires(){return[hc]}static get pluginName(){return rl("0x6")}[rl("0x1a")](){const t=this.editor;if(t[rl("0xd")][rl("0x1")]("trackChangesData.editorCreator",(e=>{const n=t[rl("0x23")][rl("0x26")][rl("0x3")]()[rl("0x25")](((t,e)=>(t[e]="",t)),{});return t.constructor.create(n,e)})),rl("0x22")!=typeof t[rl("0xd")][rl("0x11")]("trackChangesData")[rl("0x0")])throw new e.CKEditorError(rl("0x5"))}[rl("0x1f")](t){return cl(this.editor,!0,t)}[rl("0x1c")](t){return cl(this.editor,!1,t)}}class xl extends t.Plugin{static get[rl("0x1b")](){return"TrackChangesDataGetter"}constructor(t){super(t),this[rl("0x1d")]=rl("0x12")}[rl("0x1a")](){this[rl("0x18")][rl("0x10")][rl("0x11")]("CommentsRepository")[rl("0x16")]={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[rl("0x18")].plugins[rl("0x11")]("TrackChangesEditing")._adapter=null}}function al(t){return void 0!==t.getRootsAttributes}async function cl(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,il);o[rl("0x10")].push(hc,xl),o.rootsAttributes=al(t)?t[rl("0x2")]():void 0;const r=document[rl("0x20")](),s=t[rl("0xd")].get("trackChangesData")[rl("0x0")],x=await s(o,(()=>function(t){const e=document.createElement(rl("0x15"));return t[rl("0xb")](e),e}(r)));!function(t,e){const n=t[rl("0x23")][rl("0x26")][rl("0x3")]()[rl("0x25")](((e,n)=>(e[n]=t[rl("0x9")].get({rootName:n}),e)),{}),o=t.plugins[rl("0x11")](rl("0x19"))[rl("0xf")][rl("0xa")]((t=>({id:t.id,name:t.name}))),r=t[rl("0x10")].get(rl("0xc")).getSuggestions({skipNotAttached:!0,toJSON:!0}),i=e.plugins[rl("0x11")](rl("0x19")),s=e[rl("0x10")][rl("0x11")](rl("0xc"));for(const t of o)i[rl("0x1e")](t.id)||i.addUser(t);i.me||i[rl("0xe")]();for(const t of r)s[rl("0x8")](t);e[rl("0x9")][rl("0x13")](n)}(t,x),x[rl("0x24")](rl(e?"0x17":"0x4"));const a=al(x)?x[rl("0x7")](n):x.data[rl("0x11")](n);return await x[rl("0x21")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();