@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231222.0 → 0.0.0-nightly-20231223.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(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};(()=>{"use strict";n.r(r),n.d(r,{BaseSuggestionThreadView:()=>Pc,TrackChanges:()=>el,TrackChangesData:()=>xl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),o=n(273),i=n(417),s=n(492),x=n(995);const a=["commands","_isEnabledBasedOnSelection","TrackChangesCommand","affectsData","value","refresh","_enableCommands","has","clearForceDisabled","_enabledCommands","execute","isEnabled"];var c,l;c=a,l=398,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x7")]=e,this[u("0x2")]=!1,this[u("0x3")](),this[u("0xb")]=!1}[u("0x3")](){this[u("0x9")]=!0}[u("0x8")](){this[u("0x2")]=!this[u("0x2")],this[u("0x2")]?this._disableUnsupportedCommands():this[u("0x4")]()}_disableUnsupportedCommands(){for(const t of this.editor[u("0xa")][u("0xa")]())t[u("0x1")]&&!this[u("0x7")].has(t)&&t.forceDisabled(u("0x0"))}[u("0x4")](){for(const t of this.editor[u("0xa")][u("0xa")]())t[u("0x1")]&&!this[u("0x7")][u("0x5")](t)&&t[u("0x6")]("TrackChangesCommand")}}const g=["_suggestions","plugins","get","TrackChangesEditing","model","isEnabled","execute","editor","getRanges","refresh","track-changes-accept-suggestion-not-found","canEditAt"];var f,m;f=g,m=297,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[h("0x3")]=e,this[h("0x0")](),this._isEnabledBasedOnSelection=!1}[h("0x0")](){this[h("0x8")]=!0}[h("0x9")](t){const n=this[h("0x3")][h("0x5")](t);if(!n)throw new e.CKEditorError(h("0x1"),this);const r=n[h("0xb")]();this[h("0xa")][h("0x7")][h("0x2")](r)&&this.editor[h("0x4")][h("0x5")](h("0x6")).acceptSuggestion(n)}}const p=["canEditAt","editor","track-changes-discard-suggestion-not-found","getRanges","refresh","get","_isEnabledBasedOnSelection","model","isEnabled","TrackChangesEditing"];var E,_;E=p,_=468,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._suggestions=e,this[T("0x6")](),this[T("0x8")]=!1}[T("0x6")](){this[T("0x0")]=!0}execute(t){const n=this._suggestions[T("0x7")](t);if(!n)throw new e.CKEditorError(T("0x4"),this);const r=n[T("0x5")]();this[T("0x3")][T("0x9")][T("0x2")](r)&&this[T("0x3")].plugins.get(T("0x1")).discardSuggestion(n)}}const C=["value","add","isInContent","schema","length","from","isTouching","createPositionAfter","change","type","getRanges","isIntersecting","end","map","replace","next","push","createPositionBefore","createPositionAt","splice","color","content","sort","join","isMultiRange","deletion"];var A,k;A=C,k=324,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0xa")](((t,e)=>"deletion"==t[I("0x17")]&&"deletion"!=e[I("0x17")]?-1:I("0xd")!=t[I("0x17")]&&"deletion"==e[I("0x17")]?1:0))}function S(t,e){let n,r=0;const o=[],i=e[I("0x11")];for(;r<t[I("0x12")];){const s=t[r],x=t[r+1];n||(n=e[I("0x5")](s)),v(e,s,x)||(o[I("0x4")](e.createRange(n,i.isObject(s)?e[I("0x15")](s):e[I("0x6")](s,I("0x0")))),n=null),r++}return o}function v(t,e,n){if(!n)return!1;const r=t.createPositionAfter(e),o=t[I("0x5")](n);return r[I("0x14")](o)}function N(t,e,n){for(;n[I("0x12")];){const r=n[I("0x7")](0,100);t[I("0x16")]((()=>{for(const t of r)t[I("0x10")]&&e.execute(t.id)}))}}const L=["execute","values","refresh","from","model","_suggestions","_isEnabledBasedOnSelection","_command","editor","isEnabled","some","isInContent"];var M,w;M=L,w=402,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("0xb")]=n,this[O("0x8")](),this[O("0x0")]=!1}[O("0x8")](){const t=Array[O("0x9")](this[O("0xb")].values())[O("0x4")]((t=>t[O("0x5")]));this[O("0x3")]=this[O("0x1")][O("0x3")]&&t}[O("0x6")](){const t=R(Array[O("0x9")](this[O("0xb")][O("0x7")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x2")][O("0xa")].canEditAt(t))return}N(this.editor.model,this[O("0x1")],t)}}const D=["selection","isEnabled","getRanges","_command","size","model","from","_selectedSuggestions","canEditAt","_suggestions","refresh","values","editor","_isEnabledBasedOnSelection"];var B,P;B=D,P=479,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("0x0")]=e,this._suggestions=n,this[U("0x4")]=new Set,this[U("0x7")](),this[U("0xa")]=!1}refresh(){const t=this[U("0x9")][U("0x2")].document[U("0xb")],e=Array.from(this[U("0x6")][U("0x8")]());this._selectedSuggestions=function(t,e){const n=Array[I("0x13")](t[I("0x18")]()),r=new Set;for(const o of e)if(o[I("0x10")])for(const e of n)for(const n of o[I("0x18")]())(e[I("0x19")](n)||t.isCollapsed&&!o[I("0xc")]&&o[I("0x3")]&&n[I("0x0")].isTouching(e.start))&&r[I("0xf")](o);return r}(t,e),this[U("0xc")]=this[U("0x0")][U("0xc")]&&!!this[U("0x4")][U("0x1")]}execute(){const t=R(Array[U("0x3")](this[U("0x4")]));for(const e of t){const t=e[U("0xd")]();if(!this[U("0x9")][U("0x2")][U("0x5")](t))return}N(this[U("0x9")][U("0x2")],this[U("0x0")],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__,r=H(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[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 rt=et||nt||Function("return this")();const ot=rt.Symbol;var it=Object.prototype,st=it.hasOwnProperty,xt=it.toString,at=ot?ot.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var r=!0}catch(t){}var o=xt.call(t);return r&&(e?t[at]=n:delete t[at]),o};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=ot?ot.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=rt["__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(rt,"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 r=t[e];this.set(r[0],r[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),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[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 r=n.__data__;if(!Lt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(r)}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,r=null==t?0:t.length;++n<r&&!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 re=Object.prototype.hasOwnProperty;const oe=function(t,e,n){var r=t[e];re.call(t,e)&&V(r,n)&&(void 0!==n||e in t)||ne(t,e,n)};const ie=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var x=e[i],a=r?r(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),o?ne(n,x,a):oe(n,x,a)}return n};const se=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};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?rt.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),r=!n&&de(t),o=!n&&!r&&pe(t),i=!n&&!r&&!o&&Ne(t),s=n||r||o||i,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||o&&("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 r in t)("constructor"!=r||!e&&He.call(t,r))&&n.push(r);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?rt.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,r=Ze?Ze(n):new t.constructor(n);return t.copy(r),r};const Je=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const rn=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const on=function(t,e){return ie(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,rn(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 r=e(t);return ge(t)?r:sn(r,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=Nt(rt,"DataView");const fn=Nt(rt,"Promise");const mn=Nt(rt,"Set");const hn=Nt(rt,"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,r=n?Tt(n):"";if(r)switch(r){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=rt.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=ot?ot.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new r(+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 r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const tr=function t(e,n,r,o,i,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=i?r(e,o,i,s):r(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)):on(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(o){x.add(t(o,n,r,o,e,s))})):Kn(e)&&e.forEach((function(o,i){x.set(i,t(o,n,r,i,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(o,i){m&&(o=e[i=o]),oe(x,i,t(o,n,r,i,e,s))})),x};const er=function(t){return tr(t,5)};const nr=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,or=/^\w*$/;const ir=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(or.test(t)||!rr.test(t)||null!=e&&t in Object(e))};function sr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=t.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(sr.Cache||Zt),n}sr.Cache=Zt;const xr=sr;var ar=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cr=/\\(\\)?/g;const lr=function(t){var e=xr(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(ar,(function(t,n,r,o){e.push(r?o.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o};var dr=ot?ot.prototype:void 0,gr=dr?dr.toString:void 0;const fr=function t(e){if("string"==typeof e)return e;if(ge(e))return ur(e,t)+"";if(nr(e))return gr?gr.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const mr=function(t){return null==t?"":fr(t)};const hr=function(t,e){return ge(t)?t:ir(t,e)?[t]:lr(mr(t))};const br=function(t){if("string"==typeof t||nr(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const pr=function(t,e,n,r){if(!ft(t))return t;for(var o=-1,i=(e=hr(e,t)).length,s=i-1,x=t;null!=x&&++o<i;){var a=br(e[o]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(o!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[o+1])?[]:{})}oe(x,a,c),x=x[a]}return t};const Er=function(t,e,n){return null==t?t:pr(t,e,n)};const _r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Tr=function(t){return this.__data__.has(t)};function yr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yr.prototype.add=yr.prototype.push=_r,yr.prototype.has=Tr;const Cr=yr;const Ar=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};const kr=function(t,e){return t.has(e)};const Ir=function(t,e,n,r,o,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 Cr:void 0;for(i.set(t,e),i.set(e,t);++u<x;){var f=t[u],m=e[u];if(r)var h=s?r(m,f,u,e,t,i):r(f,m,u,t,e,i);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ar(e,(function(t,e){if(!kr(g,e)&&(f===t||o(f,t,n,r,i)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!o(f,m,n,r,i)){d=!1;break}}return i.delete(t),i.delete(e),d};const Rr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};const Sr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vr=ot?ot.prototype:void 0,Nr=vr?vr.valueOf:void 0;const Lr=function(t,e,n,r,o,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=Rr;case"[object Set]":var a=1&r;if(x||(x=Sr),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var l=Ir(x(t),x(e),r,o,i,s);return s.delete(t),l;case"[object Symbol]":if(Nr)return Nr.call(t)==Nr.call(e)}return!1};var Mr=Object.prototype.hasOwnProperty;const wr=function(t,e,n,r,o,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:Mr.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(r)var b=s?r(h,m,l,e,t,i):r(m,h,l,t,e,i);if(!(void 0===b?m===h||o(m,h,n,r,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 Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Br=Object.prototype.hasOwnProperty;const Pr=function(t,e,n,r,o,i){var s=ge(t),x=ge(e),a=s?Fr:Sn(t),c=x?Fr:Sn(e),l=(a=a==Or?Dr:a)==Dr,u=(c=c==Or?Dr:c)==Dr,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)?Ir(t,e,n,r,o,i):Lr(t,e,a,n,r,o,i);if(!(1&n)){var g=l&&Br.call(t,"__wrapped__"),f=u&&Br.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return i||(i=new Qt),o(m,h,n,r,i)}}return!!d&&(i||(i=new Qt),wr(t,e,n,r,o,i))};const Ur=function t(e,n,r,o,i){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Pr(e,n,r,o,t,i))};const jr=function(t,e){return Ur(t,e)};const Gr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vr=function(t,e){for(var n=0,r=(e=hr(e,t)).length;null!=t&&n<r;)t=t[br(e[n++])];return n&&n==r?t:void 0};const Hr=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i};const zr=function(t,e){return e.length<2?t:Vr(t,Hr(e,0,-1))};const Wr=function(t,e){return e=hr(e,t),null==(t=zr(t,e))||delete t[br(Gr(e))]};const Kr=function(t,e){return null==t||Wr(t,e)},qr=["reduce","filter","start","decorate","isInContent","size","nodeAfter","accept","isIntersectingWithRange","creator","_model","getFirstMarker","nodeBefore","data","set","removeAttribute","add","getFirstRange","getMarkers","addRange","getMarkerNames","attributes","removeMarker","createdAt","suggestion:","authoredAt","push","author","_onAccept","_isDataLoaded","_markerNames","_saved","subType","_onDiscard","map","isExternal","getAllAdjacentSuggestions","change","_onAttributesChange","commentThread","removeMarkers","getRanges","getItems","getMultiRangeId","type","isMultiRange","length","delete","end","from","clear","@external","toJSON","onAccept","discard","previous","next"];var Xr,$r;Xr=qr,$r=187,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Zr=function(t,e){return qr[t-=0]};class Yr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0xd")]=!1,this.id=e.id,this.type=e[Zr("0x1c")],this.subType=e[Zr("0x10")]||null,this[Zr("0xb")]=e[Zr("0xb")],this[Zr("0x32")]=e[Zr("0x32")]||e[Zr("0xb")],this[Zr("0x13")]=Boolean(e.attributes&&e[Zr("0x5")][Zr("0x23")]),this.data=null,this[Zr("0x33")]=t,this[Zr("0xc")]=e[Zr("0x25")],this._onDiscard=e.onDiscard,this[Zr("0x16")]=e.onAttributesChange,this[Zr("0xe")]=new Set,this[Zr("0x7")]=null,this.set(Zr("0x9"),null),this[Zr("0x37")](Zr("0x5"),e[Zr("0x5")]||{}),this[Zr("0x37")](Zr("0x27"),null),this[Zr("0x37")](Zr("0x28"),null),this[Zr("0x37")]("commentThread",null),this[Zr("0x37")](Zr("0xf"),!1),this[Zr("0x2c")](Zr("0x30")),this[Zr("0x2c")](Zr("0x26"))}get head(){let t=this;for(;t.previous;)t=t[Zr("0x27")];return t}get hasComments(){return!!this.commentThread&&this[Zr("0x17")][Zr("0x1e")]>0}get[Zr("0x1d")](){return 0!=this[Zr("0xe")][Zr("0x2e")]&&6==Array[Zr("0x21")](this[Zr("0xe")])[0].split(":")[Zr("0x1e")]}get[Zr("0x2d")](){return null!==this[Zr("0x34")]()}addMarkerName(t){this._markerNames[Zr("0x0")](t)}[Zr("0x4")](){return Array[Zr("0x21")](this[Zr("0xe")])}[Zr("0x2")](){return this[Zr("0x4")]()[Zr("0x12")]((t=>this[Zr("0x33")].markers.get(t)))[Zr("0x2a")]((t=>t))}[Zr("0x34")](){return this.getMarkers()[0]||null}[Zr("0x18")](){this[Zr("0x33")][Zr("0x15")]((t=>{for(const e of this[Zr("0x2")]())t[Zr("0x6")](e)})),this[Zr("0xe")][Zr("0x22")]()}[Zr("0x6")](t){this[Zr("0x33")][Zr("0x15")]((e=>{e[Zr("0x6")](t)})),this[Zr("0xe")][Zr("0x1f")](t)}[Zr("0x3")](t){const e=Zr("0x8")+this[Zr("0x1c")]+":"+this[Zr("0x10")]+":"+this.id+":"+this.creator.id+":"+Yr[Zr("0x1b")]();this.addMarkerName(e),this[Zr("0x33")][Zr("0x15")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x31")](t){for(const e of this[Zr("0x19")]())if(e.isIntersecting(t))return!0;return!1}[Zr("0x19")](){return this[Zr("0x2")]()[Zr("0x12")]((t=>t.getRange()))}getItems(){return this[Zr("0x19")]()[Zr("0x29")](((t,e)=>[...t,...e[Zr("0x1a")]()]),[])}[Zr("0x1")](){var t;return(null===(t=this[Zr("0x34")]())||void 0===t?void 0:t.getRange())||null}getContainedElement(){const t=this[Zr("0x19")]();if(1!=t[Zr("0x1e")])return null;const e=t[0],n=e[Zr("0x2b")][Zr("0x2f")],r=e[Zr("0x20")][Zr("0x35")];return n instanceof s.Element?n!=r?null:n:null}accept(){this[Zr("0xc")](this[Zr("0x19")](),this[Zr("0x36")],this[Zr("0x5")]),this[Zr("0x18")]()}[Zr("0x26")](){this[Zr("0x11")](this[Zr("0x19")](),this[Zr("0x36")],this[Zr("0x5")]),this[Zr("0x18")]()}[Zr("0x14")](){const t=[];let e=this.head;for(;e;)t[Zr("0xa")](e),e=e[Zr("0x28")];return t}setAttribute(t,e){const n=er(this[Zr("0x5")]);Er(n,t,e),jr(n,this.attributes)||(this.attributes=n,this[Zr("0x16")](n))}[Zr("0x38")](t){const e=er(this[Zr("0x5")]);Kr(e,t),jr(e,this.attributes)||(this[Zr("0x5")]=e,this[Zr("0x16")](this[Zr("0x5")]))}[Zr("0x24")](){return{id:this.id,type:this[Zr("0x10")]?this[Zr("0x1c")]+":"+this[Zr("0x10")]:this[Zr("0x1c")],authorId:this[Zr("0x32")].id,createdAt:this.createdAt,hasComments:this.hasComments,data:this.data,attributes:this[Zr("0x5")]}}static[Zr("0x1b")](){return(0,e.uid)().substr(1,5)}}function Jr(t,e,n){const r=t.t;switch(e){case"Track changes":return r("Track changes");case"Accept suggestion":return r("Accept suggestion");case"Discard suggestion":return r("Discard suggestion");case"Accept all suggestions":return r("Accept all suggestions");case"Accept all selected suggestions":return r("Accept all selected suggestions");case"Discard all suggestions":return r("Discard all suggestions");case"Discard all selected suggestions":return r("Discard all selected suggestions");case"*Reset font size*":return r("*Reset font size*");case"*Reset font family*":return r("*Reset font family*");case"*Reset font color*":return r("*Reset font color*");case"*Reset font background color*":return r("*Reset font background color*");case"*Remove image text alternative*":return r("*Remove image text alternative*");case"*Reset image width*":return r("*Reset image width*");case"*Remove link*":return r("*Remove link*");case"*Check item*":return r("*Check item*");case"*Uncheck item*":return r("*Uncheck item*");case"*Remove all formatting*":return r("*Remove all formatting*");case"*Replace table cells*":return r("*Replace table cells*");case"*Merge cells*":return r("*Merge cells*");case"*Split cell:* vertically":return r("*Split cell:* vertically");case"*Split cell:* horizontally":return r("*Split cell:* horizontally");case"*Indent:* %0":return r("*Indent:* %0",n);case"*Outdent:* %0":return r("*Outdent:* %0",n);case"*Change to:* %0":return r("*Change to:* %0",n);case"*Insert:* %0":return r("*Insert:* %0",n);case"*Format:* %0":return r("*Format:* %0",n);case"*Format:* change table properties":return r("*Format:* change table properties");case"*Format:* change table cell properties":return r("*Format:* change table cell properties");case"*Format:* insert into %0":return r("*Format:* insert into %0",n);case"*Format:* remove from %0":return r("*Format:* remove from %0",n);case"*Replace image URL*":return r("*Replace image URL*");case"*Format:* resize table":return r("*Format:* resize table");case"*Format:* set order to reversed":return r("*Format:* set order to reversed");case"*Format:* set order to regular":return r("*Format:* set order to regular");case"*Format:* set start index to %0":return r("*Format:* set start index to %0",n);case"*Change %0 content*":return r("*Change %0 content*",n);case"*Remove:* %0":return r("*Remove:* %0",n);case"*Merge:* %0":return r("*Merge:* %0",n);case"*Split:* %0":return r("*Split:* %0",n);case"*Remove format:* %0":return r("*Remove format:* %0",n);case"*Set font size:* %0":return r("*Set font size:* %0",n);case"*Set font family:* %0":return r("*Set font family:* %0",n);case"*Set format to:* %0":return r("*Set format to:* %0",n);case"*Set font color:* %0":return r("*Set font color:* %0",n);case"*Set font background color:* %0":return r("*Set font background color:* %0",n);case"*Set format:* %0":return r("*Set format:* %0",n);case"*Set image text alternative:* %0":return r("*Set image text alternative:* %0",n);case"*Set image width:* %0":return r("*Set image width:* %0",n);case"*Set link:* %0":return r("*Set link:* %0",n);case"*Set highlight:* %0":return r("*Set highlight:* %0",n);case"*Remove highlight*":return r("*Remove highlight*");case"FORMAT_HIGHLIGHT":return r({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return r({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return r({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return r({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return r({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return r({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return r({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return r({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return r({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return r({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return r({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return r({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return r({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return r({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return r({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return r({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return r({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return r({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return r({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return r({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return r({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return r({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return r({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return r({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return r({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return r({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return r({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return r({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return r({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return r({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return r({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return r({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return r({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return r({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return r({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return r({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return r({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return r({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return r({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return r({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return r({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return r({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return r({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return r({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return r({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return r({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return r({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return r({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return r({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return r({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return r({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return r({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return r({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return r({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return r({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return r({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return r({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return r({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return r({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return r({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return r({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 r({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return r({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 r({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return r({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return r({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return r({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return r({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return r({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return r({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Qr=["_resolveDescriptionItems","Object","_customCallbacks","_schema","registerElementLabel","getDescriptions","remove","normal","type","length","item","pop","*Merge:* %0","addContainer","addFormat","previousSibling","*Change to:* %0","*Split:* %0","ELEMENT_SPACE","newValue","checkChild","addObject","element","subType","_addDescriptionItems","nextSibling","get","_handleAttributeSuggestionDescription","_locale","push","quantity","replace","$text","isEqual","_itemLabels","function","addEmptyContainer","_attributeLabels","*Insert:* %0","*Remove:* %0","_handleRenameSuggestionDescription","end","$1 $2","_itemLabelsCallbacks","isInContent","isObject","has","nodeAfter","name","removeContainer","isEmpty","insertion","skip","match","registerAttributeLabel","add","text","map","elementEnd","format","removeFormat","deletion","key","_handleCustomCallbackDescription","join","*Set format:* %0","Container","data","start","getWalker","getItemLabel","matchingCallback","_handleInsertRemoveSuggestionDescription","attribute","set","indexOf","label","elementStart","*Remove format:* %0","getFirstRange","EmptyContainer"];var to,eo;to=Qr,eo=487,function(t){for(;--t;)to.push(to.shift())}(++eo);const no=function(t,e){return Qr[t-=0]};class ro{constructor(t,e){this._customCallbacks=[],this[no("0x21")]=new Map,this[no("0x2a")]=[],this[no("0x24")]=new Map,this[no("0x2")]=t,this[no("0x1b")]=e}[no("0x4")](t){const e=[],n=new Set,r=new Set;for(let o=0;o<t[no("0x8")];o++){const i=t[o];if(!i[no("0x2b")])continue;const s=this[no("0x3e")](i);if(s){if(null!=i[no("0x16")]){if(n.has(i.subType))continue;n[no("0x36")](i[no("0x16")])}e[no("0x1c")](s)}else if(no("0x48")!=i[no("0x7")])no("0x32")!=i.type&&no("0x3c")!=i[no("0x7")]||this[no("0x47")](e,i,t[o+1]);else{const t=i.data[no("0x3d")];if(r.has(t))continue;r[no("0x36")](i[no("0x42")][no("0x3d")]),t==mc?this[no("0x27")](e,i):this[no("0x1a")](e,i)}}return this[no("0x50")](e)}registerDescriptionCallback(t){this[no("0x1")][no("0x1c")](t)}[no("0x3")](t,n,r=e.priorities[no("0x6")]){no("0x22")==typeof t?(0,e.insertToPriorityArray)(this[no("0x2a")],{matchingCallback:t,label:n,priority:r}):this._itemLabels[no("0x49")](t,n)}[no("0x35")](t,e){this[no("0x24")][no("0x49")](t,e)}[no("0x45")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[no("0x46")](t)){n=e[no("0x4b")];break}return n||(n=this[no("0x21")][no("0x19")](t.name)),n?n(e):1!==e?e+" "+t[no("0x2f")]+"s":""+t[no("0x2f")]}_addDescriptionItems(t,e){const n=e.getFirstRange()[no("0x44")](),r=no("0x32")==e.type?no("0x36"):no("0x5");for(const e of n){const o=e[no("0x9")],i=t[t[no("0x8")]-1];if(o.is("$textProxy"))i&&i[no("0x7")][no("0x4a")](no("0x41"))>-1&&t[no("0xa")](),i&&"text"==i[no("0x7")]?i[r]+=o[no("0x42")]:t[no("0x1c")]({type:no("0x37"),add:"add"==r?o[no("0x42")]:"",remove:"remove"==r?o[no("0x42")]:""});else if(this[no("0x2")][no("0x2c")](o)){const s=o;if(i&&i[no("0x7")][no("0x4a")](no("0x41"))>-1&&t[no("0xa")](),no("0x39")==e[no("0x7")])continue;i&&i[no("0x7")]==r+no("0x0")&&i.element.name==s.name?i[no("0x1d")]++:t[no("0x1c")]({type:r+no("0x0"),element:s,quantity:1}),n[no("0x33")]((t=>!(no("0x39")==t[no("0x7")]&&t.item==o)))}else if(this[no("0x2")][no("0x13")](o,no("0x1f"))||o.is(no("0x15"),"softBreak")){const n=o;if("add"==r&&no("0x4c")==e.type||no("0x5")==r&&no("0x39")==e.type)continue;if(i&&-1==i[no("0x7")][no("0x4a")](no("0x41"))){"text"==i[no("0x7")]&&(i[r]+="\n");continue}let s;if(s=no("0x36")==r?n.nextSibling&&!this[no("0x2")][no("0x2c")](n[no("0x18")])?n.nextSibling:null:n.previousSibling&&!this[no("0x2")][no("0x2c")](n[no("0xe")])?n[no("0xe")]:null,n[no("0x31")]||s&&s[no("0x31")]){const e=s&&s.isEmpty?s:n;i&&i[no("0x7")]==r+no("0x4f")&&i[no("0x15")].name==e[no("0x2f")]?i[no("0x1d")]++:t[no("0x1c")]({type:r+no("0x4f"),element:e,quantity:1})}else t.push({type:r+no("0x41"),element:n})}}}[no("0x50")](t){const e=this[no("0x1b")],n=[],r=[],o=[];for(const i of t)switch(i[no("0x7")]){case"text":if(i[no("0x36")]=i[no("0x36")][no("0x1e")](/(\S)\u000A+(\S)/g,no("0x29"))[no("0x1e")](/\u000A/g,""),i[no("0x5")]=i.remove[no("0x1e")](/(\S)\u000A+(\S)/g,no("0x29"))[no("0x1e")](/\u000A/g,""),""!=i[no("0x36")]&&""!=i[no("0x5")]){n.push({type:no("0x1e"),content:Jr(e,"REPLACE_TEXT",['"'+i.remove+'"','"'+i[no("0x36")]+'"'])});continue}if(null!=i[no("0x36")][no("0x34")](/^ +$/)){n.push({type:no("0x32"),content:Jr(e,"*Insert:* %0",Jr(e,no("0x11"),i[no("0x36")][no("0x8")]))});continue}if(null!=i[no("0x5")][no("0x34")](/^ +$/)){n[no("0x1c")]({type:"deletion",content:Jr(e,no("0x26"),Jr(e,"ELEMENT_SPACE",i[no("0x5")].length))});continue}if(""!=i[no("0x36")]){n[no("0x1c")]({type:no("0x32"),content:Jr(e,no("0x25"),'"'+i[no("0x36")]+'"')});continue}n[no("0x1c")]({type:"deletion",content:Jr(e,no("0x26"),'"'+i[no("0x5")]+'"')});continue;case no("0x23"):case no("0x14"):n[no("0x1c")]({type:no("0x32"),content:Jr(e,no("0x25"),this[no("0x45")](i[no("0x15")],i[no("0x1d")]))});continue;case"removeEmptyContainer":case"removeObject":n[no("0x1c")]({type:no("0x3c"),content:Jr(e,no("0x26"),this.getItemLabel(i[no("0x15")],i[no("0x1d")]))});continue;case no("0xc"):n[no("0x1c")]({type:no("0x32"),content:Jr(e,no("0x10"),this[no("0x45")](i[no("0x15")],i[no("0x1d")]))});continue;case no("0x30"):n[no("0x1c")]({type:no("0x3c"),content:Jr(e,no("0xb"),this.getItemLabel(i[no("0x15")],i.quantity))});continue;case no("0xd"):r[no("0x1c")](i[no("0x3d")]);continue;case no("0x3b"):o[no("0x1c")](i.key);continue;default:n[no("0x1c")](i)}if(r.length){const t=r[no("0x38")]((t=>this[no("0x24")].has(t)?this[no("0x24")][no("0x19")](t):t))[no("0x3f")](", ");n[no("0x1c")]({type:no("0x3a"),content:Jr(this[no("0x1b")],no("0x40"),t)})}if(o[no("0x8")]){const t=o[no("0x38")]((t=>this[no("0x24")][no("0x2d")](t)?this._attributeLabels[no("0x19")](t):t))[no("0x3f")](", ");n.push({type:no("0x3a"),content:Jr(this[no("0x1b")],no("0x4d"),t)})}return n}[no("0x3e")](t){for(const e of this[no("0x1")]){const n=e(t);if(n&&no("0x7")in n)return n}}_handleAttributeSuggestionDescription(t,e){const n=e[no("0x42")],r=void 0===n[no("0x12")]?no("0x3b"):no("0xd");t[no("0x1c")]({type:r,key:n[no("0x3d")]})}[no("0x27")](t,e){t[no("0x1c")]({type:no("0x3a"),content:Jr(this[no("0x1b")],no("0xf"),this[no("0x45")](e[no("0x4e")]().start[no("0x2e")],1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this[no("0x17")](t,e),n&&n[no("0x4e")]()&&!e.getFirstRange()[no("0x28")][no("0x20")](n[no("0x4e")]()[no("0x43")])){const n=t[t[no("0x8")]-1],r=no("0x32")==e[no("0x7")]?no("0x36"):no("0x5");n&&"text"==n[no("0x7")]&&(n[r]+="\n")}}}const oo=["showAIAssistant","get","plugins","enableCommand","afterInit","editor"];var io,so;io=oo,so=370,function(t){for(;--t;)io.push(io.shift())}(++so);const xo=function(t,e){return oo[t-=0]};class ao extends t.Plugin{[xo("0x0")](){const t=this[xo("0x1")],e=t[xo("0x4")][xo("0x3")]("TrackChangesEditing");t.commands[xo("0x3")]("showAIAssistant")&&e[xo("0x5")](xo("0x2"))}}const co=["commandName","format","justify","formatBlock","right","_enableDefaultAttributesIntegration","type","FORMAT_ALIGN_TO_LEFT","FORMAT_ALIGNMENT","locale","FORMAT_ALIGN_TO_RIGHT","commandParams","registerAttributeLabel","FORMAT_ALIGN_TO_CENTER","alignment","get","afterInit","center","plugins","AlignmentEditing","registerDescriptionCallback","left","FORMAT_JUSTIFY_TEXT","TrackChangesEditing","_descriptionFactory","value","editor"];var lo,uo;lo=co,uo=307,function(t){for(;--t;)lo.push(lo.shift())}(++uo);const go=function(t,e){return co[t-=0]};class fo extends t.Plugin{[go("0x6")](){const t=this[go("0x10")],e=t[go("0x1a")];if(!t[go("0x8")].has(go("0x9")))return;const n=t[go("0x8")][go("0x5")](go("0xd"));n[go("0x16")](go("0x4"),[],[go("0x4")]),n[go("0xe")][go("0x2")](go("0x4"),Jr(e,go("0x19"))),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this.editor,e=t[go("0x1a")];t.plugins[go("0x5")](go("0xd"))[go("0xe")][go("0xa")]((t=>{if(go("0x14")!=t[go("0x17")])return;const{data:n}=t;if(n&&go("0x4")==n[go("0x11")]){const t=n[go("0x1")][0][go("0xf")];return{type:go("0x12"),content:Jr(e,"*Format:* %0",function(t){switch(t){case go("0xb"):return Jr(e,go("0x18"));case go("0x15"):return Jr(e,go("0x0"));case go("0x7"):return Jr(e,go("0x3"));case go("0x13"):return Jr(e,go("0xc"))}}(t))}}}))}}const mo=["FORMAT_ITALIC","UnderlineEditing","SubscriptEditing","code","commandName","FORMAT_SUPERSCRIPT","bold","FORMAT_UNDERLINE","afterInit","CodeEditing","_enableDefaultAttributesIntegration","FORMAT_BOLD","_descriptionFactory","*Format:* %0","type","_registerLegacyDescription","FORMAT_SUBSCRIPT","underline","FORMAT_","toUpperCase","italic","subscript","get","slice","SuperscriptEditing","FORMAT_CODE","FORMAT_STRIKETHROUGH","format","TrackChangesEditing","StrikethroughEditing","locale","forceValue","plugins","BoldEditing","*Remove format:* %0","editor"];var ho,bo;ho=mo,bo=308,function(t){for(;--t;)ho.push(ho.shift())}(++bo);const po=function(t,e){return mo[t-=0]},Eo=[po("0xd"),"ItalicEditing",po("0x11"),po("0x19"),po("0x9"),po("0x12"),po("0x4")];class _o extends t.Plugin{[po("0x18")](){const t=this.editor,e=t[po("0xc")][po("0x2")](po("0x8")),n=t[po("0xa")];for(const r of Eo){if(!t[po("0xc")].has(r))continue;const o=r[po("0x3")](0,-7).toLowerCase(),i=po("0x22")+o[po("0x23")]();e[po("0x1a")](o,[o]),e[po("0x1c")].registerAttributeLabel(o,Jr(n,i))}this[po("0x1f")]()}[po("0x1f")](){const t=this[po("0xf")],e=t[po("0xa")],n=t.plugins[po("0x2")](po("0x8"));function r(t,r){n[po("0x1c")].registerDescriptionCallback((n=>{if("formatInline"!=n[po("0x1e")])return;const{data:o}=n;return o&&o[po("0x14")]===t?o.commandParams[0][po("0xb")]?{type:po("0x7"),content:Jr(e,po("0x1d"),r)}:{type:po("0x7"),content:Jr(e,po("0xe"),r)}:void 0}))}r(po("0x16"),Jr(e,po("0x1b"))),r(po("0x0"),Jr(e,po("0x10"))),r(po("0x21"),Jr(e,po("0x17"))),r(po("0x13"),Jr(e,po("0x5"))),r("strikethrough",Jr(e,po("0x6"))),r(po("0x1"),Jr(e,po("0x20"))),r("superscript",Jr(e,po("0x15")))}}const To=["editor","forceValue","get","model","_descriptionFactory","plugins","registerDescriptionCallback","has","*Set format:* %0","parent","selection","$root","TrackChangesEditing","getSelectedBlocks","checkChild","enableCommand","format","schema","value","commandName","blockQuote","*Remove format:* %0","markBlockFormat","change","document"];var yo,Co;yo=To,Co=243,function(t){for(;--t;)yo.push(yo.shift())}(++Co);const Ao=function(t,e){return To[t-=0]};class ko extends t.Plugin{afterInit(){const t=this[Ao("0x7")],e=t.locale;if(!t.plugins[Ao("0xe")]("BlockQuoteEditing"))return;const n=t[Ao("0xc")][Ao("0x9")](Ao("0x13")),r=this.editor.commands[Ao("0x9")](Ao("0x2"));n[Ao("0x16")](Ao("0x2"),((e,o={})=>{const i=this[Ao("0x7")][Ao("0xa")][Ao("0x6")][Ao("0x11")],s=o&&void 0!==o[Ao("0x8")]?o[Ao("0x8")]:!r[Ao("0x0")];let x=[];if(s){const e=Array.from(i[Ao("0x14")]()).filter((t=>Io(t)||function(t,e){const n=e[Ao("0x15")](t[Ao("0x10")],Ao("0x2")),r=e.checkChild([Ao("0x12"),Ao("0x2")],t);return n&&r}(t,this[Ao("0x7")].model[Ao("0x18")])));x=S(e,t.model)}else{const e=Array.from(i[Ao("0x14")]()).filter((t=>Io(t)));x=S(e,t[Ao("0xa")])}t[Ao("0xa")][Ao("0x5")]((()=>{for(const t of x)n[Ao("0x4")](t,{commandName:Ao("0x2"),commandParams:[{forceValue:s}]})}))})),n[Ao("0xb")][Ao("0xd")]((t=>{const{data:n}=t;if(n&&Ao("0x2")==n[Ao("0x1")]){const t=Jr(e,"ELEMENT_BLOCK_QUOTE");return n.commandParams[0][Ao("0x8")]?{type:Ao("0x17"),content:Jr(e,Ao("0xf"),t)}:{type:Ao("0x17"),content:Jr(e,Ao("0x3"),t)}}}))}}function Io(t){return Ao("0x2")==t.parent.name}const Ro=["commands","plugins","ckbox","afterInit","editor","get"];var So,vo;So=Ro,vo=302,function(t){for(;--t;)So.push(So.shift())}(++vo);const No=function(t,e){return Ro[t-=0]};class Lo extends t.Plugin{[No("0x1")](){const t=this[No("0x2")];t[No("0x4")][No("0x3")](No("0x0"))&&t[No("0x5")][No("0x3")]("TrackChangesEditing").enableCommand(No("0x0"))}}const Mo=["commands","_descriptionFactory","plugins","commandName","from","rootElement","value","change","find","isLimit","CodeBlock","enableCommand","ELEMENT_CODE_BLOCK","formatBlock","registerDescriptionCallback","afterInit","name","has","filter","document","registerElementLabel","codeBlock","editor","language","get","indentCodeBlock","label","outdentCodeBlock","markBlockFormat","toLowerCase","format","forceValue","getSelectedBlocks","*Remove format:* %0","model"];var wo,Oo;wo=Mo,Oo=112,function(t){for(;--t;)wo.push(wo.shift())}(++Oo);const Fo=function(t,e){return Mo[t-=0]};class Do extends t.Plugin{[Fo("0x8")](){const t=this[Fo("0xf")];if(!t[Fo("0x1e")][Fo("0xa")](Fo("0x3")))return;const e=t.plugins[Fo("0x11")]("TrackChangesEditing"),n=t.locale,r=t.config[Fo("0x11")]("codeBlock").languages,o=t[Fo("0x1c")][Fo("0x11")]("codeBlock");e[Fo("0x4")](Fo("0x12")),e.enableCommand(Fo("0x14")),e[Fo("0x4")](Fo("0xe"),((n,i={})=>{const s=t[Fo("0x1b")],x=t.model[Fo("0xc")].selection,a=i&&void 0!==i[Fo("0x18")]?i.forceValue:!o[Fo("0x22")];let c;i[Fo("0x10")]||(i[Fo("0x10")]=r[0].language),c=a?Array.from(x[Fo("0x19")]())[Fo("0xb")]((t=>{return Bo(t)||(e=t,n=s.schema,!e.is(Fo("0x21"))&&!n[Fo("0x2")](e)&&n.checkChild(e.parent,"codeBlock"));var e,n})):Array[Fo("0x20")](x[Fo("0x19")]()).filter((t=>Bo(t)));const l=S(c,s);s[Fo("0x0")]((()=>{for(const t of l)e[Fo("0x15")](t,{commandName:"codeBlock",commandParams:[{...i,forceValue:a}],formatGroupId:"blockName"})}))})),e[Fo("0x1d")][Fo("0xd")](Fo("0xe"),(t=>Jr(n,Fo("0x5"),t))),e[Fo("0x1d")][Fo("0x7")]((t=>{if(Fo("0x6")!=t.type)return;const e=n.t,{data:o}=t;if(!o||Fo("0xe")!=o[Fo("0x1f")])return;const i=o.commandParams[0][Fo("0x10")],s=e(r[Fo("0x1")]((t=>t.language===i))[Fo("0x13")])[Fo("0x16")]();return o.commandParams[0][Fo("0x18")]?{type:Fo("0x17"),content:Jr(n,"*Set format:* %0",Jr(n,Fo("0x5"),1)+" ("+s+")")}:{type:Fo("0x17"),content:Jr(n,Fo("0x1a"),Jr(n,Fo("0x5"),1))}}))}}function Bo(t){return Fo("0xe")==t[Fo("0x9")]}const Po=["CommentsEditing","plugins","enableCommand","editor","has","afterInit","addCommentThread","TrackChangesEditing","get"];var Uo,jo;Uo=Po,jo=320,function(t){for(;--t;)Uo.push(Uo.shift())}(++jo);const Go=function(t,e){return Po[t-=0]};class Vo extends t.Plugin{[Go("0x0")](){const t=this[Go("0x7")];t[Go("0x5")][Go("0x8")](Go("0x4"))&&t[Go("0x5")][Go("0x3")](Go("0x2"))[Go("0x6")](Go("0x1"))}}var Ho=n(181);const zo=["isBlock","toViewElement","plugins","activeMarkers","name","markerName","ck-suggestion-marker--active","schema","previousPosition","listIndent","getItems","push","nextSibling","element","createRangeOn","model","getWalker","createUIElement","insert","parent","bindElementToMarker","listItem","isLimit","test","markerRange","addClass","writer","elementEnd","type","mapper","span","get","hasAttribute","isAtEnd"];var Wo,Ko;Wo=zo,Ko=400,function(t){for(;--t;)Wo.push(Wo.shift())}(++Ko);const qo=function(t,e){return zo[t-=0]};function Xo(t,e,n){const r=[];for(const o of e[qo("0x12")]())o[qo("0x6")](t)&&r.push(n[qo("0x16")](o));return r}function $o(t,e,{showActiveMarker:n=!0}={}){const r=t[qo("0xa")][qo("0x5")]("TrackChangesEditing");return(o,i,s)=>{if(!s.consumable[qo("0x1f")](i[qo("0x20")],o[qo("0xc")]))return;const x=i[qo("0x20")][qo("0x18")](),a=i.markerRange.start,c=t[qo("0x17")][qo("0xf")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c.isContent(e);const n=s[qo("0x3")][qo("0x9")](e);if(n&&n.getCustomProperty("addHighlight"))return;qo("0x1")==t[qo("0x2")]&&c[qo("0x8")](e)&&!c[qo("0x1e")](e)&&(e[qo("0x14")]||a[qo("0x7")]?l&&l[qo("0x1b")]==e||(l=e,f(t[qo("0x10")]),g=!0):u=u||t[qo("0x10")])}function f(t){const o=s[qo("0x0")][qo("0x19")](qo("0x4"),{class:"ck-suggestion-marker-"+e}),x=s[qo("0x3")].toViewPosition(t);n&&r[qo("0xb")].includes(i.markerName)&&s[qo("0x0")][qo("0x21")](qo("0xe"),o),s[qo("0x0")][qo("0x1a")](x,o),s[qo("0x3")][qo("0x1c")](o,i[qo("0xd")])}d||g||!u||f(u)}}const Zo=["root","document","model","writer","mapper","detach","start","fromRange","options","isCollapsed","getFirstRange","batch","unbindElementFromMarkerName","uiElement","lock","removeMarker:suggestion:deletion","editing","end","unlock","downcastDispatcher","selection","merge","deleteForward","forward","bind","commands","setSelection","buffer","modifySelection","rootName","requires","data","markerNameToElements","markerName","enableCommand","showSuggestionHighlights","TrackChangesEditing","unit","high","createSelection","init","get","enqueueChange","addMarker:suggestion:deletion","createRange"];var Yo,Jo;Yo=Zo,Jo=317,function(t){for(;--t;)Yo.push(Yo.shift())}(++Jo);const Qo=function(t,e){return Zo[t-=0]};class ti extends t.Plugin{static get[Qo("0x1c")](){return[Ho.Delete]}[Qo("0x26")](){const t=this.editor,e=t.plugins[Qo("0x27")](Qo("0x22"));e.enableCommand("delete");const n=t[Qo("0x17")][Qo("0x27")](Qo("0x14"));e[Qo("0x20")](Qo("0x14"),((e,r={})=>{const o=t[Qo("0x0")][Qo("0x25")](t[Qo("0x0")][Qo("0x2c")][Qo("0x12")]);o[Qo("0x7")]&&t[Qo("0x0")][Qo("0x1a")](o,{direction:Qo("0x15"),unit:r[Qo("0x23")]});const i=o[Qo("0x8")](),x=s.LiveRange[Qo("0x5")](i);let a;e(r),a="$graveyard"==x[Qo("0x2b")][Qo("0x1b")]?t.model[Qo("0x2a")](i[Qo("0x4")]):t.model[Qo("0x2a")](x[Qo("0x4")],x[Qo("0xf")]),x[Qo("0x3")](),t.model[Qo("0x28")](n[Qo("0x19")][Qo("0x9")],(t=>{n.buffer[Qo("0xc")](),t[Qo("0x18")](t.createRange(a.end)),n.buffer[Qo("0x10")]()}))})),t.editing[Qo("0x11")].on("addMarker:suggestion:deletion",$o(t,Qo("0x13")),{priority:"high"}),t[Qo("0x1d")][Qo("0x11")].on(Qo("0x29"),((e,n,r)=>{r[Qo("0x6")][Qo("0x21")]&&$o(t,Qo("0x13"),{showActiveMarker:!1})[Qo("0x16")](this)(e,n,r)}),{priority:"high"}),t[Qo("0xe")].downcastDispatcher.on(Qo("0xd"),((t,e,n)=>{const r=n[Qo("0x2")][Qo("0x1e")](e[Qo("0x1f")]);if(r)for(const t of r)t.is(Qo("0xb"))&&(n[Qo("0x2")][Qo("0xa")](t,e[Qo("0x1f")]),n[Qo("0x1")].remove(t))}),{priority:Qo("0x24")})}}const ei=["commandParams","afterInit","push","formatInline","previousSibling","value","*Change to:* %0","_LIST","findIndex","getRanges","end","ELEMENT_","documentList","splitListItemBefore","schema","forceValue","next","accept","getFirstRange","refresh","listIndent","add","plugins","*Format:* insert into %0","paragraph","config","execute","get","getSelectedBlocks","detach","registerDescriptionCallback","model","isObject","*Format:* remove from %0","length","markBlockFormat","after","start","isFirstBlockOfListItem","*Indent:* %0","document","ELEMENT_NUMBERED_LIST","locale","fromRange","TrackChangesEditing","indentList","getAttribute","createPositionAt","*Outdent:* %0","setSelection","change","containsItem","splitListItemAfter","nodeAfter","numberedList","registerElementLabel","formatBlock","_descriptionFactory","commands","toUpperCase","has","bulletedList","type","from","nextSibling","slice","enableCommand","list.multiBlock","format","commandName","ELEMENT_LIST_ITEM","mergeListItemForward","selection","listType","outdentList","DocumentListEditing","before","parent","*Merge:* %0","listItemId","ELEMENT_BULLETED_LIST"];var ni,ri;ni=ei,ri=116,function(t){for(;--t;)ni.push(ni.shift())}(++ri);const oi=function(t,e){return ei[t-=0]};class ii extends t.Plugin{[oi("0x2f")](){const t=this.editor;if(!t[oi("0x44")][oi("0x19")](oi("0x28")))return;const e=t[oi("0x7")],n=t.plugins.get(oi("0x9")),r=t.plugins[oi("0x49")]("DocumentListUtils");function o(e){return()=>{const o=t[oi("0x17")].get(e);if(o[oi("0x33")]&&!t.config[oi("0x49")](oi("0x20")))return void t[oi("0x48")](oi("0x46"),{});let i=Array.from(t[oi("0x4d")].document[oi("0x25")][oi("0x4a")]());if(a(e)){i=r.expandListBlocksToCompleteList(i);const t=[];for(const e of i)r[oi("0x3")](e)&&t.push(e);i=t}t.model[oi("0xf")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:e,commandParams:[{forceValue:!o[oi("0x33")]}],formatGroupId:oi("0x26")},[],"documentList")}))}}function i(e){return()=>{const r=function(t){let e=Array[oi("0x1c")](t);const n=e[oi("0x36")]((t=>!t.hasAttribute("listItemId")));return n>-1&&(e=e[oi("0x1e")](0,n)),e}(t[oi("0x4d")][oi("0x5")][oi("0x25")][oi("0x4a")]()),o=r[r[oi("0x50")]-1],i=t[oi("0x4d")][oi("0x3c")][oi("0x4e")](o)?oi("0x1"):oi("0x38"),s=t[oi("0x4d")].createRange(t[oi("0x4d")][oi("0xc")](r[0],oi("0x29")),t[oi("0x4d")][oi("0xc")](o,i));t[oi("0x4d")].change((()=>{n[oi("0x0")](s,{commandName:e,commandParams:[],formatGroupId:oi("0x26")},function(t){const e=new Set;for(const n of t){let t=n[oi("0x1d")];for(;t&&t.getAttribute(oi("0x42"))>n[oi("0xb")]("listIndent");)e[oi("0x43")](t),t=t[oi("0x1d")]}return Array[oi("0x1c")](e)}(r))}))}}function x(e){return()=>{const r=t[oi("0x4d")][oi("0x5")][oi("0x25")][oi("0x4a")]()[oi("0x3e")]()[oi("0x33")],o=t[oi("0x4d")].createPositionAt(r,oi("0x29")),i=t[oi("0x4d")][oi("0xc")](r,0),s=t[oi("0x4d")].createRange(o,i);t[oi("0x4d")][oi("0xf")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:oi("0x26")})}))}}function a(e){const n=t[oi("0x17")][oi("0x49")](oi("0x1a")).value,r=t.commands[oi("0x49")]("numberedList")[oi("0x33")];return oi("0x13")===e?n:r}n[oi("0x1f")](oi("0x13"),o(oi("0x13"))),n[oi("0x1f")](oi("0x1a"),o(oi("0x1a"))),n[oi("0x1f")](oi("0xa"),i(oi("0xa"))),n[oi("0x1f")](oi("0x27"),i(oi("0x27"))),n[oi("0x1f")]("splitListItemAfter",x(oi("0x11"))),n.enableCommand(oi("0x3b"),x(oi("0x3b"))),n._descriptionFactory[oi("0x14")]((function(e){const n=!t[oi("0x4d")][oi("0x3c")][oi("0x4e")](e),r=e[oi("0x32")],o=e[oi("0x1d")],i=e[oi("0xb")](oi("0x2c")),s=!r||r[oi("0xb")]("listItemId")!==i,x=!o||o[oi("0xb")]("listItemId")!==i;return n&&Boolean(i)&&s&&x}),(t=>Jr(e,"ELEMENT_LIST_ITEM",t))),n[oi("0x16")][oi("0x4c")]((function(n){if("formatBlock"!=n.type&&oi("0x31")!=n[oi("0x1b")])return;const{data:r}=n;if(!r)return;let o,i,s,x;switch(r[oi("0x22")]){case oi("0x1a"):s=r[oi("0x2e")][0][oi("0x3d")],x=a(r[oi("0x22")]),o=oi(s?"0x45":"0x4f"),!x&&t[oi("0x47")][oi("0x49")](oi("0x20"))||(o=oi("0x34")),i={type:oi("0x21"),content:Jr(e,o,Jr(e,oi("0x2d")))};break;case"numberedList":s=r[oi("0x2e")][0][oi("0x3d")],x=a(r[oi("0x22")]),o=oi(s?"0x45":"0x4f"),!x&&t[oi("0x47")][oi("0x49")](oi("0x20"))||(o="*Change to:* %0"),i={type:oi("0x21"),content:Jr(e,o,Jr(e,oi("0x6")))};break;case oi("0xa"):o=oi("0x4"),i={type:oi("0x21"),content:Jr(e,o,Jr(e,oi("0x23")))};break;case oi("0x27"):o=function(t){const e=t[oi("0x40")]();let n=e[oi("0x2")][oi("0x12")];for(;n&&e[oi("0x10")](n);){if(n[oi("0xb")]("listIndent")>0)return!1;n=n[oi("0x1d")]}return!0}(n)?Jr(e,oi("0x4f"),Jr(e,function(t){const e=t.getFirstRange()[oi("0x2")][oi("0x12")];return oi("0x39")+e.getAttribute(oi("0x26"))[oi("0x18")]()+oi("0x35")}(n))):Jr(e,oi("0xd"),Jr(e,oi("0x23"))),i={type:"format",content:o};break;case"mergeListItemBackward":case oi("0x24"):!1===r.multipleBlocks&&(o=oi("0x2b"),i={type:"deletion",content:Jr(e,o,Jr(e,oi("0x23")))})}return i})),n._suggestionFactory.registerCustomCallback(oi("0x15"),oi("0x3a"),oi("0x3f"),(function(e,n){const r=[];for(let n of e)n.start.nodeAfter===n[oi("0x38")][oi("0x2a")]&&(n=t.model.createRange(t[oi("0x4d")][oi("0xc")](n[oi("0x2")].nodeAfter,0))),r[oi("0x30")](n);t[oi("0x4d")][oi("0xf")]((e=>{const o=t[oi("0x4d")][oi("0x5")][oi("0x25")],i=Array[oi("0x1c")](o[oi("0x37")]()).map((t=>s.LiveRange[oi("0x8")](t)));e[oi("0xe")](r),t[oi("0x17")][oi("0x49")](n.commandName)[oi("0x41")](),n.commandParams[oi("0x30")]({forceDefaultExecution:!0}),t[oi("0x48")](n[oi("0x22")],...n[oi("0x2e")]),e[oi("0xe")](i);for(const t of i)t[oi("0x4b")]()}))}))}}const si=["commandParams","bind","listStart","isFirstBlockOfListItem","listType","styles","_getSuggestionBlocksForListStyle","isListItemBlock","replace","listStyle","selection","handleListReversedCommand","getListTypeFromListStyleType","formatBlock","type","from","getAttribute","handleDescriptions","DocumentListPropertiesUtils","DocumentListUtils","handleListStyleCommand","config","filter","afterInit","listReversed","expandListBlocksToCompleteList","TrackChangesEditing","*Format:* set order to regular","commandName","editor","handleListStartCommand","model","get","push","*Format:* set start index to %0","numbered","getSelectedBlocks","reversed","_getTranslationKeyForListStyle","document","registerDescriptionCallback","plugins","*Format:* set order to reversed","_LIST_","*Change to:* %0","_descriptionFactory","markMultiRangeBlockFormat","list.properties","change","format","ELEMENT_","has","enableCommand","_getSuggestionBlocks","DocumentListPropertiesEditing"];var xi,ai;xi=si,ai=229,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{[ci("0xe")](){if(!this[ci("0x14")][ci("0x20")][ci("0x2a")](ci("0x2d")))return;const t=this[ci("0x14")][ci("0xc")][ci("0x17")](ci("0x26")),e=this[ci("0x14")][ci("0x20")][ci("0x17")]("TrackChangesEditing");t[ci("0x33")]&&e[ci("0x2b")]("listStyle",this[ci("0xb")][ci("0x2f")](this)),t[ci("0x1c")]&&e.enableCommand(ci("0xf"),this[ci("0x2")][ci("0x2f")](this)),t.startIndex&&e[ci("0x2b")](ci("0x30"),this[ci("0x15")][ci("0x2f")](this)),e[ci("0x24")][ci("0x1f")](this[ci("0x8")].bind(this))}[ci("0xb")](t,e={}){const n=this[ci("0x14")][ci("0x20")][ci("0x17")](ci("0x11")),r=this[ci("0x34")]();this[ci("0x14")][ci("0x16")][ci("0x27")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:ci("0x0"),commandParams:[{type:e.type}],formatGroupId:"listStyle"})}))}[ci("0x2")](t,e={}){const n=this.editor[ci("0x20")][ci("0x17")](ci("0x11")),r=this[ci("0x14")].plugins.get(ci("0xa")),o=this[ci("0x2c")]((t=>r[ci("0x35")](t)&&ci("0x1a")===t[ci("0x7")](ci("0x32"))));null!==o&&this[ci("0x14")][ci("0x16")][ci("0x27")]((()=>{n[ci("0x25")](o,{commandName:ci("0xf"),commandParams:[{reversed:e[ci("0x1c")]}],formatGroupId:ci("0xf")})}))}[ci("0x15")](t,e={}){const n=this[ci("0x14")][ci("0x20")][ci("0x17")](ci("0x11")),r=this[ci("0x14")][ci("0x20")][ci("0x17")](ci("0xa")),o=this[ci("0x2c")]((t=>r[ci("0x35")](t)&&"numbered"===t[ci("0x7")](ci("0x32"))));null!==o&&this[ci("0x14")][ci("0x16")].change((()=>{n[ci("0x25")](o,{commandName:ci("0x30"),commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[ci("0x8")](t){if(ci("0x4")!=t.type&&"formatInline"!=t[ci("0x5")])return;const e=this[ci("0x14")].locale,{data:n}=t;if(!n)return;let r,o;switch(n[ci("0x13")]){case ci("0x0"):r=ci("0x23"),o={type:ci("0x28"),content:Jr(e,r,Jr(e,this[ci("0x1d")](n[ci("0x2e")][0][ci("0x5")])))};break;case ci("0xf"):r=n[ci("0x2e")][0][ci("0x1c")]?ci("0x21"):ci("0x12"),o={type:ci("0x28"),content:Jr(e,r)};break;case ci("0x30"):r=ci("0x19"),o={type:ci("0x28"),content:Jr(e,r,n[ci("0x2e")][0].startIndex)}}return o}[ci("0x34")](){const t=this[ci("0x14")].plugins[ci("0x17")](ci("0xa"));let e=Array[ci("0x6")](this[ci("0x14")][ci("0x16")][ci("0x1e")].selection[ci("0x1b")]());return e[ci("0x18")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}[ci("0x2c")](t){const e=this[ci("0x14")][ci("0x20")][ci("0x17")]("DocumentListUtils");let n=Array[ci("0x6")](this.editor[ci("0x16")][ci("0x1e")][ci("0x1")][ci("0x1b")]())[ci("0xd")](t);if(!n.length)return null;n=e[ci("0x10")](n);const r=[];for(const t of n)e[ci("0x31")](t)&&r[ci("0x18")](t);return r}[ci("0x1d")](t){return ci("0x29")+this.editor[ci("0x20")][ci("0x17")](ci("0x9"))[ci("0x3")](t).toUpperCase()+ci("0x22")+t.toUpperCase()[ci("0x36")](/-/g,"_")}}var ui=n(331);const di=["change","addMarker:suggestion:insertion","ck-suggestion-marker-split","fromRange","model","unbindElementFromMarkerName","downcastDispatcher","enter","commands","createPositionAt","document","fire","editing","removeMarker:suggestion:insertion","hasClass","markInsertion","get","split","mapper","bind","getFirstPosition","getFirstRange","plugins","requires","showSuggestionHighlights","createRange","TrackChangesEditing","nextSibling","high","detach","afterExecute","markerName"];var gi,fi;gi=di,fi=422,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("0x11")](){return[ui.Enter]}init(){const t=this.editor,e=t[mi("0x10")][mi("0xa")](mi("0x14")),n=t[mi("0x2")][mi("0xa")](mi("0x1"));e.enableCommand("enter",(()=>{t[mi("0x1e")][mi("0x1a")]((r=>{const o=t.model[mi("0x4")].selection,i=o[mi("0xe")](),x=s.LiveRange[mi("0x1d")](o[mi("0xf")]());if(n.enterBlock(r)){const n=t[mi("0x1e")][mi("0x3")](i.parent[mi("0x15")],0),o=r.createRange(i,n);e[mi("0x9")](o)}else r.setSelection(r[mi("0x13")](x.end));x[mi("0x17")](),n[mi("0x5")](mi("0x18"),{writer:r})}))})),t[mi("0x6")][mi("0x0")].on(mi("0x1b"),$o(t,mi("0xb")),{priority:mi("0x16")}),t[mi("0x6")].downcastDispatcher.on(mi("0x7"),((t,e,n)=>{const r=n.mapper.markerNameToElements(e[mi("0x19")]);if(r)for(const t of r)t[mi("0x8")](mi("0x1c"))&&(n[mi("0xc")][mi("0x1f")](t,e.markerName),n.writer.remove(t))}),{priority:mi("0x16")}),t.data[mi("0x0")].on(mi("0x1b"),((e,n,r)=>{r.options[mi("0x12")]&&$o(t,mi("0xb"),{showActiveMarker:!1})[mi("0xd")](this)(e,n,r)}),{priority:mi("0x16")})}}const bi=["bind","markers","replace","string","getIntersection","item","handleFindCommand","find","createPositionAt","findPrevious","suggestion:deletion","model","getRange","findByTextCallback","enableCommand","FindAndReplaceUtils","has","start","editor","createRange","findNext","plugins","get","end","_isInDeletionRange"];var pi,Ei;pi=bi,Ei=424,function(t){for(;--t;)pi.push(pi.shift())}(++Ei);const _i=function(t,e){return bi[t-=0]};class Ti extends t.Plugin{afterInit(){if(!this[_i("0x13")][_i("0x16")][_i("0x11")]("FindAndReplaceEditing"))return;const t=this.editor.plugins[_i("0x17")]("TrackChangesEditing");t[_i("0xf")](_i("0x8"),this[_i("0x7")][_i("0x1")](this)),t[_i("0xf")](_i("0x15")),t[_i("0xf")](_i("0xa")),t[_i("0xf")](_i("0x3")),t[_i("0xf")]("replaceAll")}[_i("0x7")](t,e,n={}){const r=this.editor.plugins[_i("0x17")](_i("0x10"));return t((t=>(_i("0x4")==typeof e?r[_i("0xe")](e,n):e)(t).filter((e=>!1===this[_i("0x0")](e,t[_i("0x6")])))),n)}_isInDeletionRange(t,e){const n=this.editor.model[_i("0x14")](this.editor[_i("0xc")][_i("0x9")](e,t[_i("0x12")]),this[_i("0x13")][_i("0xc")][_i("0x9")](e,t[_i("0x18")]));for(const t of this.editor[_i("0xc")][_i("0x2")].getMarkersGroup(_i("0xb")))if(null!==n[_i("0x5")](t[_i("0xd")]()))return!0;return!1}}const yi=["*Set font color:* %0","formatInline","plugins","label","fontColor.colors","has","_registerLegacyDescription","*Set font size:* %0","fontColor","FontFamilyEditing","commandName","TrackChangesEditing","format","trim","FontSizeEditing","find","FORMAT_FONT_BACKGROUND","fontSize.options","model","FORMAT_FONT_COLOR","FORMAT_FONT_SIZE","editor","fontBackgroundColor.colors","fontFamily","*Reset font family*","registerAttributeLabel","type","*Reset font color*","FontColorEditing","*Reset font background color*","commandParams","locale","toLowerCase","config","*Set font background color:* %0","registerDescriptionCallback","fontSize","FontBackgroundColorEditing","get","value","_descriptionFactory"];var Ci,Ai;Ci=yi,Ai=168,function(t){for(;--t;)Ci.push(Ci.shift())}(++Ai);const ki=function(t,e){return yi[t-=0]},Ii=[{pluginName:ki("0xa"),commandName:ki("0x20")},{pluginName:ki("0x5"),commandName:"fontFamily"},{pluginName:ki("0x18"),commandName:ki("0x4")},{pluginName:ki("0x21"),commandName:"fontBackgroundColor"}];class Ri extends t.Plugin{afterInit(){const t=this[ki("0x11")][ki("0x1b")],e=this.editor[ki("0x27")][ki("0x22")](ki("0x7"));for(const{pluginName:t,commandName:n}of Ii)this.editor[ki("0x27")][ki("0x1")](t)&&e._enableDefaultAttributesIntegration(n,[n]);t.t,e._descriptionFactory[ki("0x15")](ki("0x20"),Jr(t,ki("0x10"))),e[ki("0x24")].registerAttributeLabel("fontFamily",Jr(t,"FORMAT_FONT_FAMILY")),e[ki("0x24")].registerAttributeLabel(ki("0x4"),Jr(t,ki("0xf"))),e._descriptionFactory.registerAttributeLabel("fontBackgroundColor",Jr(t,ki("0xc"))),this._registerLegacyDescription()}[ki("0x2")](){const t=this[ki("0x11")],e=t.locale;t[ki("0x27")][ki("0x22")]("TrackChangesEditing")[ki("0x24")][ki("0x1f")]((t=>{const n=e.t;if(ki("0x26")!=t[ki("0x16")])return;const{data:r}=t;if(null!=r){if(ki("0x20")==r.commandName){const t=r[ki("0x1a")][0][ki("0x23")];if(t){const r=n(this[ki("0x11")][ki("0x27")].get("FontSize").normalizeSizeOptions(this[ki("0x11")][ki("0x1d")].get(ki("0xd")))[ki("0xb")]((e=>e[ki("0xe")]==t)).title)[ki("0x1c")]();return{type:ki("0x8"),content:Jr(e,ki("0x3"),r)}}return{type:ki("0x8"),content:Jr(e,"*Reset font size*")}}if(ki("0x13")==r[ki("0x6")]){const t=r[ki("0x1a")][0].value;return t?{type:ki("0x8"),content:Jr(e,"*Set font family:* %0",t)}:{type:ki("0x8"),content:Jr(e,ki("0x14"))}}if(ki("0x4")==r[ki("0x6")]){const t=r[ki("0x1a")][0][ki("0x23")];if(t){const r=(0,o.normalizeColorOptions)(this[ki("0x11")][ki("0x1d")][ki("0x22")](ki("0x0")))[ki("0xb")]((e=>e[ki("0xe")]==t));let i=t,s="";return r&&(i=r[ki("0x28")],s=n(i).toLowerCase()),{type:ki("0x8"),content:Jr(e,ki("0x25"),s)[ki("0x9")](),color:{value:t,title:s||i}}}return{type:ki("0x8"),content:Jr(e,ki("0x17"))}}if("fontBackgroundColor"==r.commandName){const t=r[ki("0x1a")][0][ki("0x23")];if(t){const r=(0,o.normalizeColorOptions)(this[ki("0x11")].config.get(ki("0x12"))).find((e=>e[ki("0xe")]==t));let i=t,s="";return r&&(i=r[ki("0x28")],s=n(i)[ki("0x1c")]()),{type:ki("0x8"),content:Jr(e,ki("0x1e"),s)[ki("0x9")](),color:{value:t,title:s||i}}}return{type:"format",content:Jr(e,ki("0x19"))}}}}))}}const Si=["charAt","config","length","fontColor.colors","*Set format to:* %0","enableCommand","toLowerCase","join","format","normalizeSizeOptions","fontColor","toUpperCase","TrackChangesEditing","title","commands","pasteFormat","slice","find","fontSize.options","locale","fontBackgroundColor","split","commandParams","_enableDefaultAttributesIntegration","get","push","editor","boolean","_registerLegacyDescription","model","*Remove all formatting*","label","copyFormat","entries","plugins","commandName"];var vi,Ni;vi=Si,Ni=107,function(t){for(;--t;)vi.push(vi.shift())}(++Ni);const Li=function(t,e){return Si[t-=0]};class Mi extends t.Plugin{afterInit(){const t=this[Li("0x1b")],e=t[Li("0x23")][Li("0x19")](Li("0xd")),n=t[Li("0xf")][Li("0x19")](Li("0x21")),r=t.commands[Li("0x19")](Li("0x10"));n&&r&&(e[Li("0x18")](Li("0x10")),e[Li("0x6")](Li("0x21")),this[Li("0x1d")]())}_registerLegacyDescription(){const t=this.editor,e=t.locale;t.plugins.get(Li("0xd"))._descriptionFactory.registerDescriptionCallback((n=>{if("formatBlock"!=n.type&&"formatInline"!=n.type)return;const{data:r}=n;if(r&&Li("0x10")===r[Li("0x0")]){const n=[],o=r[Li("0x17")][0];for(const[e,r]of Object[Li("0x22")](o))n[Li("0x1a")](wi(t,e,r));return n[Li("0x3")]?{type:Li("0x9"),content:Jr(e,Li("0x5"),n[Li("0x8")](", "))}:{type:"format",content:Jr(e,Li("0x1f"))}}}))}}function wi(t,e,n){const r=t[Li("0x14")].t,i=e[Li("0x16")](/(?=[A-Z])/)[Li("0x8")](" "),s=r(i[Li("0x1")](0)[Li("0xc")]()+i[Li("0x11")](1))[Li("0x7")]();if(Li("0x1c")==typeof n)return s;if(Li("0xb")===e||Li("0x15")===e){const e=(0,o.normalizeColorOptions)(t[Li("0x2")].get(Li("0x4")))[Li("0x12")]((t=>t[Li("0x1e")]==n));return s+" ("+(e?r(e[Li("0x20")])[Li("0x7")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t.plugins[Li("0x19")]("FontSize")[Li("0xa")](t[Li("0x2")].get(Li("0x13")))[Li("0x12")]((t=>t[Li("0x1e")]==n));return s+" ("+(e?r(e[Li("0xe")])[Li("0x7")]():n)+")"}return s+" ("+n+")"}const Oi=["find","HeadingEditing","model","has","get","heading.options","heading","ELEMENT_HEADING","commandName","_descriptionFactory","title","type","view","config","name","paragraph","match","_registerLegacyDescription","editor","plugins","ELEMENT_HEADING_CUSTOM","_enableDefaultAttributesIntegration","_getHeadingLevel","registerElementLabel","_headingOptions","TrackChangesEditing","*Change to:* %0","registerDescriptionCallback","formatBlock","locale"];var Fi,Di;Fi=Oi,Di=442,function(t){for(;--t;)Fi.push(Fi.shift())}(++Di);const Bi=function(t,e){return Oi[t-=0]};class Pi extends t.Plugin{afterInit(){const t=this[Bi("0x1a")];if(!t[Bi("0x1b")][Bi("0xb")](Bi("0x9")))return;this[Bi("0x2")]=t[Bi("0x15")][Bi("0xc")](Bi("0xd"));const e=t[Bi("0x7")],n=t.plugins[Bi("0xc")](Bi("0x3"));n[Bi("0x1d")]("heading");for(const t of this[Bi("0x2")])Bi("0x17")!=t.model&&n[Bi("0x11")][Bi("0x1")](t.model,(n=>{const r=this[Bi("0x0")](t[Bi("0xa")]);return null!==r?(s=n,x=r,Jr(e,Bi("0xf"),[s,x])):(o=n,i=t[Bi("0x12")],Jr(e,Bi("0x1c"),[o,i]));var o,i,s,x}));this[Bi("0x19")]()}_registerLegacyDescription(){const t=this[Bi("0x1a")],e=t[Bi("0x7")];t[Bi("0x1b")][Bi("0xc")]("TrackChangesEditing")._descriptionFactory[Bi("0x5")]((t=>{if(Bi("0x6")!=t[Bi("0x13")])return;const{data:n}=t;if(n&&Bi("0xe")==n[Bi("0x10")]){const t=n.commandParams[0].value,s=this[Bi("0x0")](t);if(null!==s)return{type:"format",content:Jr(e,Bi("0x4"),(1,i=s,Jr(e,Bi("0xf"),[1,i])))};const x=this._headingOptions[Bi("0x8")]((e=>e[Bi("0xa")]===t))[Bi("0x12")];return{type:"format",content:Jr(e,"*Change to:* %0",(r=1,o=x,Jr(e,Bi("0x1c"),[r,o])))}}var r,o,i}))}_getHeadingLevel(t){var e,n;const r=t[Bi("0x18")](/^heading(\d+)/);if(r)return r[1];const o=null===(e=this[Bi("0x2")])||void 0===e?void 0:e[Bi("0x8")]((e=>e[Bi("0xa")]==t));if(o&&o[Bi("0x14")]){const t=o[Bi("0x14")],e=(null!==(n=t[Bi("0x16")])&&void 0!==n?n:t).match(/^h(\d+)/);if(e)return e[1]}return null}}const Ui=["_descriptionFactory","color","formatInline","_registerLegacyDescription","FORMAT_HIGHLIGHT","editor","commandName","toLowerCase","highlight","registerAttributeLabel","model","commandParams","get","title","highlight.options","*Remove highlight*","HighlightEditing","afterInit","locale","config","plugins","type","TrackChangesEditing","format","_enableDefaultAttributesIntegration"];var ji,Gi;ji=Ui,Gi=344,function(t){for(;--t;)ji.push(ji.shift())}(++Gi);const Vi=function(t,e){return Ui[t-=0]};class Hi extends t.Plugin{[Vi("0x17")](){const t=this[Vi("0xb")];if(!t[Vi("0x1")].has(Vi("0x16")))return;const e=t[Vi("0x1")][Vi("0x12")](Vi("0x3")),n=t[Vi("0x18")];e[Vi("0x5")](Vi("0xe"),[Vi("0xe")]),e._descriptionFactory[Vi("0xf")](Vi("0xe"),Jr(n,Vi("0xa"))),this[Vi("0x9")]()}[Vi("0x9")](){const t=this[Vi("0xb")],e=t[Vi("0x18")];t[Vi("0x1")][Vi("0x12")]("TrackChangesEditing")[Vi("0x6")].registerDescriptionCallback((n=>{if(Vi("0x8")!=n[Vi("0x2")])return;const{data:r}=n;if(r&&Vi("0xe")==r[Vi("0xc")]){const n=e.t,o=r[Vi("0x11")][0].value;if(o){const r=t[Vi("0x0")][Vi("0x12")](Vi("0x14")).find((t=>t[Vi("0x10")]==o)),i=n(r[Vi("0x13")])[Vi("0xd")]();return{type:Vi("0x4"),content:Jr(e,"*Set highlight:* %0",i),color:{value:r[Vi("0x7")],title:r[Vi("0x13")]}}}return{type:Vi("0x4"),content:Jr(e,Vi("0x15"),Jr(e,"FORMAT_HIGHLIGHT"))}}}))}}const zi=["showSuggestionHighlights","elementToStructure","TrackChangesEditing","registerElementLabel","div","get","plugins","high","dataDowncast","createEmptyElement","horizontalLine","ck-horizontal-line","editor","createPositionAt","enableCommand","addClass","afterInit","has","ELEMENT_HORIZONTAL_LINE","locale"];var Wi,Ki;Wi=zi,Ki=400,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};class Xi extends t.Plugin{[qi("0x10")](){const t=this[qi("0xc")];if(!t[qi("0x6")][qi("0x11")]("HorizontalLineEditing"))return;t.plugins.get(qi("0x2"))[qi("0xe")](qi("0xa"));const e=t[qi("0x6")][qi("0x5")](qi("0x2")),n=t[qi("0x13")];e._descriptionFactory[qi("0x3")](qi("0xa"),(t=>Jr(n,qi("0x12"),t))),t.conversion.for(qi("0x8"))[qi("0x1")]({model:qi("0xa"),view:(t,{writer:e,options:n})=>{if(!n[qi("0x0")])return null;const r=e.createContainerElement(qi("0x4")),o=e[qi("0x9")]("hr");return e[qi("0xf")](qi("0xb"),r),e.insert(e[qi("0xd")](r,0),o),r},converterPriority:qi("0x7")})}}const $i=["start","HtmlEmbed","element","getFirstRange","editor","rawHtml","_descriptionFactory","htmlEmbed","_enableDefaultAttributesIntegration","registerElementLabel","*Change %0 content*","afterInit","commandName","format","formatBlock","value","ELEMENT_HTML_EMBED","has","plugins","registerDescriptionCallback","TrackChangesEditing","locale"];var Zi,Yi;Zi=$i,Yi=263,function(t){for(;--t;)Zi.push(Zi.shift())}(++Yi);const Ji=function(t,e){return $i[t-=0]};class Qi extends t.Plugin{[Ji("0xc")](){const t=this[Ji("0x5")];if(!t[Ji("0x13")][Ji("0x12")](Ji("0x2")))return;const e=t[Ji("0x13")].get(Ji("0x15")),n=t[Ji("0x0")];e[Ji("0x7")][Ji("0xa")](Ji("0x6"),(t=>Jr(n,"ELEMENT_HTML_EMBED",t))),e[Ji("0x9")](Ji("0x8"),[],[Ji("0x10")]),e[Ji("0x7")][Ji("0x14")]((t=>{if("attribute"!=t.type)return;const{data:e}=t;if(e&&Ji("0x10")==e.key&&t[Ji("0x4")]()[Ji("0x1")].nodeAfter.is(Ji("0x3"),Ji("0x6"))){const t=Jr(n,Ji("0x11"));return{type:Ji("0xe"),content:Jr(n,Ji("0xb"),t)}}})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[Ji("0x5")],e=t.locale;t[Ji("0x13")].get("TrackChangesEditing")[Ji("0x7")][Ji("0x14")]((t=>{if(Ji("0xf")!=t.type)return;const{data:n}=t;if(n&&"htmlEmbed"==n[Ji("0xd")]){const t=Jr(e,"ELEMENT_HTML_EMBED");return{type:Ji("0xe"),content:Jr(e,Ji("0xb"),t)}}}))}}const ts=["ImageUploadEditing","isBlockImage","caption","plugins","TrackChangesEditing","ImageUtils","isOwn","_registerLegacyDescription","model","previous","attribute","commandName","imageBlock","getClosestSelectedImageElement","insertion","has","imageTypeInline","ImageCaptionUtils","isBefore","alt","_suggestionFactory","change","resizeImage","enableCommand","schema","deletion","getNearestSelectionRange","detach","*Reset image width*","locale","convertBlockImageToInline","getFirstRange","convertInlineImageToBlock","getCaptionFromImageModelElement","subType","imageStylePreApply","toPrevious","length","nodeBefore","ImageTextAlternativeEditing","document","resizedWidth","commandParams","ImageBlockEditing","end","FORMAT_IMAGE_SIZE","forward","findIndex","discard","ELEMENT_IMAGE","formatBlock","isEqual","*Set image width:* %0","nodeAfter","registerElementLabel","element","isCollapsed","format","afterInit","addObject","*Set image text alternative:* %0","width","Inline image to block image","markBlockFormat","_enableDefaultAttributesIntegration","selection","key","imageTextAlternative","filter","createRange","isIntersecting","newValue","editor","getSuggestionCallback","markInsertion","toNext","formatInline","registerDescriptionCallback","chain","accept","createRangeOn","getContainedElement","Block image to inline image","fromPosition","forceDefaultExecution","_descriptionFactory","imageCaption","*Remove image text alternative*","get","markDeletion","ELEMENT_CAPTION","imageInline","registerCustomCallback","join","start","type"];var es,ns;es=ts,ns=375,function(t){for(;--t;)es.push(es.shift())}(++ns);const rs=function(t,e){return ts[t-=0]};class os extends t.Plugin{[rs("0x43")](){const t=this[rs("0x51")];if(!t.plugins[rs("0x18")]("ImageEditing"))return;const e=t[rs("0xc")][rs("0x1")](rs("0xd")),n=t.plugins[rs("0x1")](rs("0xe")),r=t[rs("0x26")];e.enableCommand("insertImage"),e[rs("0x5e")][rs("0x3f")](rs("0x15"),(t=>Jr(r,rs("0x3a"),t))),e[rs("0x5e")][rs("0x3f")](rs("0x4"),(t=>Jr(r,"ELEMENT_INLINE_IMAGE",t))),e[rs("0x5e")][rs("0x3f")](rs("0xb"),(()=>Jr(r,rs("0x3")))),t[rs("0xc")][rs("0x18")](rs("0x9"))&&e[rs("0x20")]("uploadImage"),t.plugins.has(rs("0x34"))&&t[rs("0xc")][rs("0x18")]("ImageInlineEditing")&&(e[rs("0x20")]("imageTypeInline",((r,o)=>{const i=n.getClosestSelectedImageElement(t.model[rs("0x31")][rs("0x4a")]);t[rs("0x11")].change((()=>{e[rs("0x48")](i,{commandName:rs("0x19"),commandParams:[o]},[],rs("0x27"))}))})),e.enableCommand("imageTypeBlock",((r,o)=>{t[rs("0x11")][rs("0x1e")]((i=>{let x=n[rs("0x16")](t[rs("0x11")].document[rs("0x4a")]),a=i[rs("0x59")](x);const c=s.LivePosition[rs("0x5c")](a.start,rs("0x2d")),l=s.LivePosition[rs("0x5c")](a.end,rs("0x54"));e[rs("0x5d")]((()=>r(o))),x=n[rs("0x16")](t[rs("0x11")][rs("0x31")][rs("0x4a")]),a=i[rs("0x59")](x);const u=i.createRange(c,l);c[rs("0x24")](),l.detach(),e.markBlockFormat(x,{commandName:rs("0x19"),commandParams:[o]},[],"convertInlineImageToBlock"),u.start.isBefore(a[rs("0x7")])&&e.markInsertion(i[rs("0x4e")](u[rs("0x7")],a[rs("0x7")]),rs("0x29")),a[rs("0x35")].isBefore(u[rs("0x35")])&&e.markInsertion(i[rs("0x4e")](a[rs("0x35")],u.end),rs("0x29"))}))})),e[rs("0x1d")][rs("0x5")](rs("0x3b"),rs("0x29"),rs("0x6"),(()=>!1)),e._suggestionFactory.registerCustomCallback("formatBlock",rs("0x29"),rs("0x58"),(()=>!1)),e[rs("0x1d")].registerCustomCallback(rs("0x3b"),rs("0x29"),"discard",e[rs("0x1d")][rs("0x52")](rs("0x3b"),"",rs("0x58"))),e[rs("0x1d")].registerCustomCallback(rs("0x17"),rs("0x29"),rs("0x6"),(()=>!1)),e._suggestionFactory[rs("0x5")](rs("0x17"),rs("0x29"),rs("0x39"),(([n])=>{const r=e[rs("0x1d")].getSuggestionCallback(rs("0x17"),"",rs("0x39"));let o=n[rs("0x7")],i=n[rs("0x35")];const s=t[rs("0x11")][rs("0x21")][rs("0x23")](o,"backward"),x=t[rs("0x11")][rs("0x21")].getNearestSelectionRange(i,rs("0x37"));s[rs("0x41")]&&(o=s[rs("0x7")]),x[rs("0x41")]&&(i=x[rs("0x35")]),r([t[rs("0x11")][rs("0x4e")](o,i)])})),e._suggestionFactory[rs("0x5")](rs("0x3b"),"convertInlineImageToBlock",rs("0x57"),x),e[rs("0x1d")][rs("0x5")]("insertion",rs("0x29"),rs("0x57"),x)),t[rs("0xc")][rs("0x18")]("ImageCaptionEditing")&&(e[rs("0x20")]("toggleImageCaption",((r,o)=>{const i=t[rs("0xc")].get(rs("0x1a"));let s=n[rs("0x16")](t[rs("0x11")].document.selection),x=i[rs("0x2a")](s);t[rs("0x11")][rs("0x1e")]((()=>{if(x)return void e[rs("0x2")](t[rs("0x11")].createRangeOn(x));const a=n[rs("0xa")](s);r(o),s=n[rs("0x16")](t[rs("0x11")].document[rs("0x4a")]),x=i[rs("0x2a")](s),e[rs("0x53")](t[rs("0x11")][rs("0x59")](x),a?null:rs("0x5f"))}))})),e[rs("0x1d")][rs("0x5")](rs("0x17"),rs("0x5f"),"chain",x));const o=[{type:rs("0x3b"),subType:rs("0x2c")},{type:rs("0x17"),subType:rs("0x5f")},{type:rs("0x3b"),subType:rs("0x29")},{type:"insertion",subType:rs("0x29")}];function i(t,r){const i=o[rs("0x38")]((({type:e,subType:n})=>t[rs("0x8")]==e&&t[rs("0x2b")]==n)),s=o[rs("0x38")]((({type:t,subType:e})=>r[rs("0x8")]==t&&r[rs("0x2b")]==e));if(i<0||s<0)return!1;const x=t[rs("0x28")](),a=r[rs("0x28")]();if((0==i||1==i)&&2==s&&x[rs("0x4f")](a))return!0;if(2==i&&3==s){const t=e._findSuggestions(x,rs("0x17"))[rs("0x4d")]((({suggestion:t,meta:e})=>e[rs("0xf")]&&rs("0x29")==t[rs("0x2b")]));if(t[rs("0x2e")]>1&&a[rs("0x35")][rs("0x3c")](x[rs("0x7")]))return!0;if(1==t.length&&(x[rs("0x7")][rs("0x3c")](a[rs("0x35")])||x[rs("0x35")][rs("0x3c")](a.start)))return!0}if(3==i&&3==s&&x[rs("0x7")][rs("0x1b")](a[rs("0x7")])){const t=x[rs("0x35")][rs("0x3e")],e=a[rs("0x7")][rs("0x2f")];return n[rs("0xa")](t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t[rs("0xc")][rs("0x18")]("ImageResize")&&(e[rs("0x49")](rs("0x1f"),[],[rs("0x32")]),e[rs("0x5e")].registerAttributeLabel(rs("0x32"),Jr(r,rs("0x36")))),t.plugins[rs("0x18")](rs("0x30"))&&e[rs("0x49")](rs("0x4c"),[],[rs("0x1c")]),e[rs("0x5e")][rs("0x56")]((t=>{if(o.find((({type:e,subType:n})=>t[rs("0x8")]==e&&t[rs("0x2b")]==n)))return t[rs("0x12")]?{}:void 0})),e._descriptionFactory[rs("0x56")]((t=>{if(rs("0x17")==t.type||rs("0x22")==t[rs("0x8")]){const e=t[rs("0x5a")]();if(e&&e.is(rs("0x40"),rs("0xb")))return{type:rs("0x17")==t[rs("0x8")]?rs("0x44"):"removeObject",element:e,quantity:1}}})),e[rs("0x5e")][rs("0x56")]((t=>rs("0x3b")==t[rs("0x8")]&&rs("0x29")==t[rs("0x2b")]?{type:rs("0x42"),content:rs("0x47")}:rs("0x3b")==t[rs("0x8")]&&rs("0x27")==t[rs("0x2b")]?{type:rs("0x42"),content:rs("0x5b")}:void 0)),e[rs("0x5e")][rs("0x56")]((t=>{if(rs("0x13")!=t[rs("0x8")])return;const{data:e}=t;if(!e||"alt"!=e[rs("0x4b")])return;const n=e[rs("0x50")];return n?{type:rs("0x42"),content:Jr(r,rs("0x45"),'"'+n+'"')}:{type:rs("0x42"),content:Jr(r,rs("0x0"))}})),this[rs("0x10")]()}_registerLegacyDescription(){const t=this[rs("0x51")],e=t.locale;t[rs("0xc")][rs("0x1")](rs("0xd"))[rs("0x5e")][rs("0x56")]((t=>{if(rs("0x3b")!=t.type&&rs("0x55")!=t.type)return;const{data:n}=t;if(n){if(rs("0x4c")==n[rs("0x14")]){const t=n[rs("0x33")][0].newValue;return t?{type:rs("0x42"),content:Jr(e,rs("0x45"),'"'+t+'"')}:{type:rs("0x42"),content:Jr(e,"*Remove image text alternative*")}}if(rs("0x1f")==n.commandName){const t=n.commandParams[0][rs("0x46")];return t?{type:rs("0x42"),content:Jr(e,rs("0x3d"),t)}:{type:rs("0x42"),content:Jr(e,rs("0x25"))}}}}))}}const is=["formatBlock","editor","getSuggestionCallback","get","attribute","replaceImageSource","newValue","locale","*Format:* replace image URL","accept","_suggestionFactory","oldValue","commandName","type","registerCustomCallback","_enableDefaultAttributesIntegration","TrackChangesEditing","format","*Replace image URL*","formatInline","ImageEditing","discard","registerDescriptionCallback","_handleLegacySuggestions","_descriptionFactory","plugins","has","_registerLegacyDescription","src","afterInit"];var ss,xs;ss=is,xs=263,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{[as("0x6")](){if(!this.editor[as("0x2")][as("0x3")](as("0x1b")))return;const t=this.editor[as("0xe")],e=this.editor.plugins[as("0xa")](as("0x17"));e[as("0x16")]("replaceImageSource",[],[as("0x5")]),e[as("0x1")][as("0x1d")]((e=>{if(as("0xb")!=e[as("0x14")])return;const{data:n}=e;return n&&as("0x5")==n.key?n[as("0xd")]&&n[as("0x12")]?{type:as("0x18"),content:Jr(t,as("0x19"))}:{type:as("0x18"),content:""}:void 0})),this[as("0x0")]()}_handleLegacySuggestions(){const t=this[as("0x8")][as("0x2")][as("0xa")](as("0x17"));t[as("0x11")].registerCustomCallback(as("0x7"),as("0xc"),as("0x10"),t[as("0x11")][as("0x9")](as("0x7"),null,as("0x1c"))),t[as("0x11")][as("0x15")](as("0x7"),"replaceImageSource",as("0x1c"),t[as("0x11")].getSuggestionCallback("formatBlock",null,as("0x10"))),this[as("0x4")]()}[as("0x4")](){const t=this[as("0x8")],e=t[as("0xe")];t.plugins.get(as("0x17"))._descriptionFactory[as("0x1d")]((t=>{if("formatBlock"!=t[as("0x14")]&&as("0x1a")!=t.type)return;const{data:n}=t;return n&&as("0xc")==n[as("0x13")]?{type:"format",content:Jr(e,as("0xf"))}:void 0}))}}const ls=["_findSuggestions","getSuggestions","value","commands","TrackChangesEditing","getSuggestionCallback","_registerLegacyDescription","nodeAfter","plugins","imageTypeBlock","imageStylePreApply","setImageNaturalSizeAttributes","getContainedElement","toLowerCase","chain","next","isBlockImage","normalizedStyles","commandReversedParams","join","locale","insertion","length","end","registerCustomCallback","format","imageStyle","model","get","afterInit","author","selection","nodeBefore","FORMAT_SIDE_IMAGE","start","accept","refresh","discard","findIndex","isEqual","formatBlock","title","editor","formatInline","newRange","getFirstRange","getClosestSelectedImageElement","Users","name","head","isInContent","registerPostFixer","enableCommand","type","isOwn","convertInlineImageToBlock","forEach","ImageUtils","from","imageStylePostApply","isBefore","commandName","createRangeOn","ImageStyleEditing","filter","markBlockFormat","markInlineFormat","*Format:* %0","_suggestionFactory","subType","suggestion","getSuggestion","document","discardSuggestion"];var us,ds;us=ls,ds=256,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x45")](){const t=this[gs("0x8")];if(!t[gs("0x30")].has("ImageStyleEditing"))return;const n=t.plugins[gs("0x44")](gs("0x2c")),r=t.plugins[gs("0x44")](gs("0x17")),o={};n[gs("0x12")](gs("0x42"),((o,i)=>{const s=t[gs("0x30")][gs("0x44")](gs("0xd")).me,x=t[gs("0x2b")][gs("0x44")](gs("0x42"));let a=r[gs("0xc")](t[gs("0x43")][gs("0x26")][gs("0x47")]),c=t[gs("0x43")].createRangeOn(a),l=x.value;if(l==i[gs("0x2a")])return;const u={commandName:"imageStyle",commandParams:[i],formatGroupId:(0,e.uid)()};t.model.change((()=>{if(n[gs("0x29")]()[gs("0x1e")]((t=>t.isInContent&&s==t[gs("0x46")]&&("formatBlock"==t[gs("0x13")]||gs("0x9")==t[gs("0x13")])&&(gs("0x32")==t[gs("0x23")]||gs("0x19")==t[gs("0x23")])&&t.getFirstRange()[gs("0x5")](c)))[gs("0x16")]((t=>n.discardSuggestion(t[gs("0xf")]))),a=r[gs("0xc")](t.model[gs("0x26")][gs("0x47")]),c=t[gs("0x43")][gs("0x1c")](a),x[gs("0x2")](),t[gs("0x2b")][gs("0x44")]("imageTypeInline")[gs("0x2")](),t[gs("0x2b")][gs("0x44")](gs("0x31")).refresh(),l=x[gs("0x2a")],l!=i.value)return r.isInlineImage(a)&&x.shouldConvertImageType(i[gs("0x2a")],a)?(o({...i,setImageSizes:!1}),a=r[gs("0xc")](t[gs("0x43")].document[gs("0x47")]),void n[gs("0x1f")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x32"))):void(r[gs("0x38")](a)?n.markBlockFormat(a,u,[],gs("0x19")):n[gs("0x20")](c,u,"imageStylePostApply"))}))}));for(const e of t[gs("0x30")][gs("0x44")](gs("0x1d"))[gs("0x39")])o[e[gs("0xe")]]=e[gs("0x7")][gs("0x35")]();n[gs("0x22")][gs("0x40")](gs("0x6"),gs("0x32"),gs("0x3b"),(()=>!1)),n[gs("0x22")][gs("0x40")](gs("0x6"),gs("0x19"),gs("0x3b"),(()=>!1)),n[gs("0x22")][gs("0x40")](gs("0x9"),"imageStylePostApply",gs("0x3b"),(()=>!1)),n[gs("0x22")].registerCustomCallback(gs("0x6"),gs("0x32"),gs("0x1"),(([t])=>{r[gs("0x33")](t[gs("0x34")]())})),n._suggestionFactory[gs("0x40")](gs("0x6"),"imageStylePreApply",gs("0x3"),((t,e)=>{n[gs("0x22")][gs("0x2d")](gs("0x6"),"",gs("0x1"))(t,{commandName:e[gs("0x1b")],commandParams:e[gs("0x3a")]})})),n[gs("0x22")][gs("0x40")](gs("0x6"),"imageStylePreApply",gs("0x36"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:"formatBlock",subType:gs("0x32")},{type:gs("0x3d"),subType:"imageCaption"},{type:gs("0x6"),subType:gs("0x15")},{type:gs("0x3d"),subType:gs("0x15")}];function s(t,e){const o=i[gs("0x4")]((({type:e,subType:n})=>t[gs("0x13")]==e&&t[gs("0x23")]==n)),s=i[gs("0x4")]((({type:t,subType:n})=>e[gs("0x13")]==t&&e[gs("0x23")]==n));if(o<0||s<0)return!1;const x=t[gs("0xb")](),a=e[gs("0xb")]();if((0==o||1==o)&&2==s&&x.isIntersecting(a))return!0;if(2==o&&3==s){const t=n[gs("0x28")](x,gs("0x3d"))[gs("0x1e")]((({suggestion:t,meta:e})=>e[gs("0x14")]&&gs("0x15")==t[gs("0x23")]));if(t[gs("0x3e")]>1&&a.end[gs("0x5")](x.start))return!0;if(1==t[gs("0x3e")]&&(x[gs("0x0")].isEqual(a[gs("0x3f")])||x.end[gs("0x5")](a[gs("0x0")])))return!0}if(3==o&&3==s&&x[gs("0x0")][gs("0x1a")](a[gs("0x0")])){const t=x[gs("0x3f")][gs("0x2f")],e=a[gs("0x0")][gs("0x48")];return r[gs("0x38")](t)&&t===e}return!1}t.model[gs("0x26")][gs("0x11")]((()=>{let e=!1;const o=Array[gs("0x18")](t[gs("0x43")][gs("0x26")].differ.getChangedMarkers());for(const{name:t,data:i}of o){const{group:o,type:s,subType:x,id:a}=n._splitMarkerName(t);if(gs("0x24")==o&&n.hasSuggestion(a)){if(gs("0x6")==s&&(gs("0x32")==x||gs("0x19")==x)){const t=n[gs("0x25")](a);if(i[gs("0xa")]){const o=t.getFirstRange()[gs("0x34")]();if(r[gs("0x38")](o))continue;n[gs("0x27")](t),e=!0}}if("insertion"==s&&"imageCaption"==x&&!i[gs("0xa")]){const t=n[gs("0x25")](a);t[gs("0x37")]&&t[gs("0x37")][gs("0x10")]&&(n[gs("0x27")](t[gs("0x37")]),e=!0)}}}return e})),this[gs("0x2e")](o)}[gs("0x2e")](t){const e=this[gs("0x8")],n=e[gs("0x3c")];e.plugins.get(gs("0x2c"))._descriptionFactory.registerDescriptionCallback((e=>{if(gs("0x6")!=e[gs("0x13")]&&"formatInline"!=e[gs("0x13")])return;const{data:r}=e;if(!r||gs("0x42")!=r[gs("0x1b")])return;const o=r.commandParams[0][gs("0x2a")];return i="side"===o?Jr(n,gs("0x49")):t[o]||o,{type:gs("0x41"),content:Jr(n,gs("0x21"),i)};var i}))}}const ms=["high","importWord","trackChanges","_trackChangesValueDuringImport","_setSuggestionData","TrackChangesEditing","_handleImportedData","dataInsert","plugins","afterInit","commands","_trackChangesExecuted","get","listenTo","bind","collaboration_features","editor","lowest","value","execute"];var hs,bs;hs=ms,bs=434,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("0x9")]=!1,this[ps("0x11")]=!1}[ps("0xf")](){const t=this[ps("0x2")],e=t[ps("0x10")].get(ps("0x7")),n=t[ps("0x10")][ps("0x12")](ps("0x8"));e&&(e.on(ps("0x5"),((t,[,e])=>{this[ps("0x9")]=n.value,e[ps("0x1")].track_changes=!this[ps("0x9")]}),{priority:ps("0x6")}),this.listenTo(e,"dataInsert",this[ps("0xc")][ps("0x0")](this)),this[ps("0x13")](e,ps("0xd"),(()=>{this._trackChangesExecuted&&(n[ps("0x5")](),this[ps("0x11")]=!1)}),{priority:ps("0x3")}),t[ps("0xe")][ps("0x12")](ps("0xb")).enableCommand(ps("0x7")))}_handleImportedData(t,e){const{suggestions:n}=e,r=this[ps("0x2")][ps("0x10")].get(ps("0x8")),o=r[ps("0x4")];this._trackChangesValueDuringImport!==o&&(r.execute(),this[ps("0x11")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:r})=>{const o={id:t,type:e,authorId:this.editor[ps("0xe")][ps("0x12")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:ps("0x7")}}};this[ps("0x2")][ps("0xe")][ps("0x12")]("TrackChangesEditing")[ps("0xa")](o)}))}}const _s=["plugins","commandName","_descriptionFactory","indent","FORMAT_INDENT","outdentBlock","_registerBlockAttribute","IndentEditing","registerAttributeLabel","enableCommand","IndentBlock","afterInit","type","getItems","outdent","get","indentBlock","editor","*Outdent:* %0","format","blockIndent","*Indent:* %0","locale","has","TrackChangesEditing","_registerLegacyDescription"];var Ts,ys;Ts=_s,ys=433,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0x14")](){const t=this[Cs("0x0")],e=t[Cs("0x9")][Cs("0x18")](Cs("0x7"));if(t[Cs("0x9")][Cs("0x6")](Cs("0x10"))&&(e[Cs("0x12")](Cs("0xc")),e[Cs("0x12")](Cs("0x17"))),t.plugins[Cs("0x6")](Cs("0x13")))for(const t of[Cs("0x19"),Cs("0xe")])e._enableDefaultAttributesIntegration(t);const n=t[Cs("0x5")];e[Cs("0xf")](Cs("0x3")),e._descriptionFactory[Cs("0x11")](Cs("0x3"),Jr(n,Cs("0xd"))),this[Cs("0x8")]()}[Cs("0x8")](){const t=this[Cs("0x0")],e=t[Cs("0x5")],n=t[Cs("0x9")][Cs("0x18")]("TrackChangesEditing");n[Cs("0xb")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Cs("0x15")])return;const{data:r}=t;if(!r)return;if("indentBlock"!=r[Cs("0xa")]&&Cs("0xe")!=r.commandName)return;const o=t[Cs("0x16")]()[0],i=n[Cs("0xb")].getItemLabel(o);return Cs("0x19")==r[Cs("0xa")]?{type:"format",content:Jr(e,Cs("0x4"),i)}:Cs("0xe")==r[Cs("0xa")]?{type:Cs("0x2"),content:Jr(e,Cs("0x1"),i)}:void 0}))}}var ks,Is,Rs=["init","requires","input","get","enableCommand","TrackChangesEditing","plugins"];ks=Rs,Is=310,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("0x6")](){return[Ho.Input]}[Ss("0x5")](){this.editor[Ss("0x4")][Ss("0x1")](Ss("0x3"))[Ss("0x2")](Ss("0x0"))}}const Ns=["toLowerCase","_enableDefaultAttributesIntegration","afterInit","format","_descriptionFactory","commands","has","link (","TrackChangesEditing","registerDescriptionCallback","unlink","linkHref","registerAttributeLabel","type","_registerLegacyDescription","commandName","map","plugins","link","editor","*Remove link*","attribute","locale","get","manualDecorators","commandParams","key","*Set link:* %0"];var Ls,Ms;Ls=Ns,Ms=384,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{[ws("0xa")](){const t=this[ws("0x1b")];if(!t[ws("0x19")][ws("0xe")]("LinkEditing"))return;const e=t[ws("0x19")][ws("0x3")](ws("0x10")),n=t[ws("0xd")].get(ws("0x1a"));e[ws("0x9")]("link",[ws("0x13"),...n[ws("0x4")][ws("0x18")]((t=>t.id))]),e[ws("0x9")](ws("0x12"));for(const t of n[ws("0x4")])e[ws("0xc")][ws("0x14")](t.id,ws("0xf")+t.label[ws("0x8")]()+")");e._descriptionFactory[ws("0x11")]((e=>{if(ws("0x1")!=e[ws("0x15")])return;const{data:n}=e;if(!n||ws("0x13")!=n[ws("0x6")])return;const r=n.newValue,o=t[ws("0x2")];return{type:"format",content:null==r?Jr(o,ws("0x0")):Jr(o,ws("0x7"),'"'+r+'"')}})),this[ws("0x16")]()}_registerLegacyDescription(){const t=this[ws("0x1b")],e=t[ws("0x2")];t[ws("0x19")][ws("0x3")](ws("0x10"))[ws("0xc")][ws("0x11")]((t=>{if("formatInline"!=t[ws("0x15")])return;const{data:n}=t;if(n){if(ws("0x1a")==n[ws("0x17")]){const t=n[ws("0x5")][0];return{type:ws("0xb"),content:Jr(e,"*Set link:* %0",'"'+t+'"')}}return ws("0x12")==n.commandName?{type:ws("0xb"),content:Jr(e,ws("0x0"))}:void 0}}))}}const Fs=["outdentList","blockName","replace","listType","*Indent:* %0","add","findIndex","type","afterInit","model","commandParams","plugins","change","format","has","nextSibling","*Uncheck item*","checkChild","ELEMENT_LIST_ITEM","todo","ELEMENT_BULLETED_LIST","getAttribute","element","getSelectedBlocks","listItem","length","isObject","ELEMENT_NUMBERED_LIST","numbered","schema","slice","registerElementLabel","listIndent","bulletedList","enableCommand","createRange","commandName","createPositionAt","execute","name","forceValue","todoListChecked","from","document","paragraph","end","formatInline","previousSibling","todoList","get","bulleted","_selectedElements","formatBlock","ELEMENT_TODO_LIST","_descriptionFactory","*Outdent:* %0","indentList","selection","numberedList","commands","before","locale","checkTodoList","value","TrackChangesEditing","markBlockFormat"];var Ds,Bs;Ds=Fs,Bs=315,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0x17")](){const t=this.editor,e=t[Ps("0xa")];if(!t[Ps("0x1a")][Ps("0x1d")]("ListEditing"))return;const n=t.plugins[Ps("0x40")](Ps("0xd")),r=t[Ps("0x1a")][Ps("0x1d")]("TodoListEditing");function o(e){return()=>{const r=t[Ps("0x18")][Ps("0x3a")][Ps("0x6")],o=t[Ps("0x8")][Ps("0x40")](e);if(o[Ps("0xc")])return void t[Ps("0x35")](Ps("0x3b"),{});const i=e[Ps("0x2d")](0,-4),s=function(t,e,n){let r=Array[Ps("0x39")](t).filter((t=>{return e=t,(r=n)[Ps("0x20")](e.parent,Ps("0x27"))&&!r[Ps("0x29")](e);var e,r}));r=r.filter((t=>!t.is(Ps("0x25"),Ps("0x27"))||t[Ps("0x24")](Ps("0x12"))!=e));const o=new Set;for(const t of r)t.is("element",Ps("0x27"))?o[Ps("0x14")](js(t)):o[Ps("0x14")](t);return Array[Ps("0x39")](o)}(r[Ps("0x26")](),i,t[Ps("0x18")][Ps("0x2c")]);t[Ps("0x18")].change((()=>{for(const t of s)n[Ps("0xe")](t,{commandName:e,commandParams:[{forceValue:!o[Ps("0xc")]}],formatGroupId:Ps("0x10")},Gs(t))}))}}function i(e){return()=>{const r=function(t){let e=Array.from(t);const n=e[Ps("0x15")]((t=>Ps("0x27")!=t[Ps("0x36")]));return n>-1&&(e=e.slice(0,n)),e}(t[Ps("0x18")][Ps("0x3a")][Ps("0x6")].getSelectedBlocks()),o=t[Ps("0x18")][Ps("0x32")](t.model[Ps("0x34")](r[0],Ps("0x9")),t.model.createPositionAt(r[r[Ps("0x28")]-1],Ps("0x3c")));t[Ps("0x18")][Ps("0x1b")]((()=>{n.markBlockFormat(o,{commandName:e,commandParams:[],formatGroupId:Ps("0x2f")},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x1e")];for(;t&&t[Ps("0x24")](Ps("0x2f"))>n[Ps("0x24")](Ps("0x2f"));)e.add(t),t=t.nextSibling}return Array[Ps("0x39")](e)}(r))}))}}n[Ps("0x31")](Ps("0x7"),o(Ps("0x7"))),n[Ps("0x31")](Ps("0x30"),o(Ps("0x30"))),r&&n[Ps("0x31")](Ps("0x3f"),o(Ps("0x3f"))),n[Ps("0x31")](Ps("0x5"),i(Ps("0x5"))),n.enableCommand(Ps("0xf"),i("outdentList")),r&&n[Ps("0x31")](Ps("0xb"),(()=>{const e=t[Ps("0x8")][Ps("0x40")](Ps("0xb")),r=Array[Ps("0x39")](e[Ps("0x0")]);r.filter((t=>t[Ps("0x24")](Ps("0x38"))!=e[Ps("0xc")])),t[Ps("0x18")].change((()=>{for(const t of r)n[Ps("0xe")](t,{commandName:Ps("0xb"),commandParams:[{forceValue:!e[Ps("0xc")]}]})}))})),n[Ps("0x3")][Ps("0x2e")](Ps("0x27"),(t=>Jr(e,Ps("0x21"),t))),n[Ps("0x3")].registerDescriptionCallback((t=>{if(Ps("0x1")!=t[Ps("0x16")]&&Ps("0x3d")!=t[Ps("0x16")])return;const{data:n}=t;if(n){if(Ps("0x7")==n[Ps("0x33")]||"bulletedList"==n[Ps("0x33")]||Ps("0x3f")==n[Ps("0x33")])switch(n[Ps("0x33")][Ps("0x11")]("List","")){case Ps("0x41"):return r(Jr(e,Ps("0x23")));case Ps("0x2b"):return r(Jr(e,Ps("0x2a")));case Ps("0x22"):return r(Jr(e,Ps("0x2")))}if("indentList"==n[Ps("0x33")])return{type:Ps("0x1c"),content:Jr(e,Ps("0x13"),Jr(e,Ps("0x21")))};if("outdentList"==n.commandName)return{type:Ps("0x1c"),content:Jr(e,Ps("0x4"),Jr(e,Ps("0x21")))};if("checkTodoList"==n[Ps("0x33")])return n[Ps("0x19")][0][Ps("0x37")]?{type:"format",content:Jr(e,"*Check item*")}:{type:Ps("0x1c"),content:Jr(e,Ps("0x1f"))}}function r(t){return{type:Ps("0x1c"),content:Jr(e,"*Change to:* %0",t)}}}))}}function js(t){const e=t[Ps("0x24")](Ps("0x2f"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[Ps("0x3e")].is("element","listItem");){const r=t[Ps("0x3e")].getAttribute(Ps("0x2f"));if(r==e)n=t[Ps("0x3e")];else if(r<e)break;t=t[Ps("0x3e")]}return n}function Gs(t){const e=[];if(t.is(Ps("0x25"),Ps("0x27"))&&t.getAttribute(Ps("0x2f"))>0){let n=t.nextSibling;for(;n&&Ps("0x27")==n[Ps("0x36")]&&n.getAttribute("listIndent")==t[Ps("0x24")]("listIndent");)e.push(n),n=n.nextSibling}return e}const Vs=["ListUtils","document","locale","from","forward","commandName","registerDescriptionCallback","getListTypeFromListStyleType","commandParams","_getSuggestionBlocks","backward","ListPropertiesEditing","_getSuggestionBlocksForListStyle","filter","ELEMENT_","getLastPosition","flat","*Change to:* %0","formatBlock","listType","listStart","styles","_LIST_","formatInline","getSelectedBlocks","reversed","bind","getSiblingNodes","listItem","TrackChangesEditing","list.properties","_getTranslationKeyForListStyle","markMultiRangeBlockFormat","*Format:* set order to reversed","getAttribute","listStyle","_descriptionFactory","createRange","map","type","numbered","handleDescriptions","afterInit","element","createPositionAt","get","selection","listReversed","parent","length","model","handleListStartCommand","startIndex","change","*Format:* set start index to %0","config","getFirstPosition","editor","handleListReversedCommand","plugins","toUpperCase","push","*Format:* set order to regular","format","handleListStyleCommand","enableCommand"];var Hs,zs;Hs=Vs,zs=364,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0x8")](){if(!this.editor[Ws("0x19")].has(Ws("0x2b")))return;const t=this[Ws("0x17")][Ws("0x15")][Ws("0xb")](Ws("0x3e")),e=this.editor[Ws("0x19")][Ws("0xb")](Ws("0x3d"));t[Ws("0x35")]&&e.enableCommand(Ws("0x1"),this[Ws("0x1e")][Ws("0x3a")](this)),t.reversed&&e[Ws("0x1f")](Ws("0xd"),this[Ws("0x18")].bind(this)),t[Ws("0x12")]&&e.enableCommand(Ws("0x34"),this[Ws("0x11")][Ws("0x3a")](this)),e[Ws("0x2")][Ws("0x26")](this.handleDescriptions[Ws("0x3a")](this))}[Ws("0x1e")](t,e={}){const n=this[Ws("0x17")][Ws("0x19")][Ws("0xb")](Ws("0x3d")),r=this._getSuggestionBlocksForListStyle();this[Ws("0x17")][Ws("0x10")].change((()=>{n[Ws("0x40")](r,{commandName:Ws("0x1"),commandParams:[{type:e[Ws("0x5")]}],formatGroupId:Ws("0x1")})}))}handleListReversedCommand(t,e={}){const n=this.editor.plugins[Ws("0xb")]("TrackChangesEditing"),r=this[Ws("0x29")]((t=>t.is(Ws("0x9"),Ws("0x3c"))&&Ws("0x6")===t[Ws("0x0")](Ws("0x33"))));if(r[Ws("0xf")]<1)return;const o=r[Ws("0x4")]((t=>this[Ws("0x17")].model[Ws("0x3")](this[Ws("0x17")].model[Ws("0xa")](t,"before"),this[Ws("0x17")][Ws("0x10")].createPositionAt(t,0))));this[Ws("0x17")][Ws("0x10")][Ws("0x13")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ws("0xd"),commandParams:[{reversed:e.reversed}],formatGroupId:Ws("0xd")})}))}[Ws("0x11")](t,e={}){const n=this[Ws("0x17")].plugins[Ws("0xb")](Ws("0x3d")),r=this[Ws("0x29")]((t=>t.is(Ws("0x9"),Ws("0x3c"))&&Ws("0x6")===t[Ws("0x0")](Ws("0x33"))));if(r.length<1)return;const o=r.map((t=>this[Ws("0x17")][Ws("0x10")][Ws("0x3")](this[Ws("0x17")].model[Ws("0xa")](t,"before"),this[Ws("0x17")][Ws("0x10")][Ws("0xa")](t,0))));this[Ws("0x17")][Ws("0x10")][Ws("0x13")]((()=>{n[Ws("0x40")](o,{commandName:Ws("0x34"),commandParams:[{startIndex:e.startIndex}],formatGroupId:Ws("0x34")})}))}[Ws("0x7")](t){if(Ws("0x32")!=t.type&&Ws("0x37")!=t[Ws("0x5")])return;const e=this[Ws("0x17")][Ws("0x22")],{data:n}=t;if(!n)return;let r,o;switch(n[Ws("0x25")]){case"listStyle":r=Ws("0x31"),o={type:Ws("0x1d"),content:Jr(e,r,Jr(e,this._getTranslationKeyForListStyle(n[Ws("0x28")][0].type)))};break;case Ws("0xd"):r=n[Ws("0x28")][0][Ws("0x39")]?Ws("0x41"):Ws("0x1c"),o={type:"format",content:Jr(e,r)};break;case Ws("0x34"):r=Ws("0x14"),o={type:Ws("0x1d"),content:Jr(e,r,n[Ws("0x28")][0][Ws("0x12")])}}return o}[Ws("0x2c")](){var t,e,n,r;const o=this[Ws("0x17")][Ws("0x19")][Ws("0xb")](Ws("0x20"));let i=Array[Ws("0x23")](this[Ws("0x17")][Ws("0x10")][Ws("0x21")][Ws("0xc")][Ws("0x38")]());return(null===(t=i[0])||void 0===t?void 0:t.is("element",Ws("0x3c")))&&i.unshift(...o[Ws("0x3b")](this[Ws("0x17")][Ws("0x10")][Ws("0x21")].selection[Ws("0x16")](),Ws("0x2a"))),(null===(e=i[i[Ws("0xf")]-1])||void 0===e?void 0:e.is(Ws("0x9"),Ws("0x3c")))&&i[Ws("0x1b")](...o.getSiblingNodes(this[Ws("0x17")].model[Ws("0x21")][Ws("0xc")][Ws("0x2f")](),Ws("0x24"))),i=[...new Set(i)],(null===(r=null===(n=this[Ws("0x17")][Ws("0x10")][Ws("0x21")].selection[Ws("0x16")]())||void 0===n?void 0:n[Ws("0xe")])||void 0===r?void 0:r.is("element","listItem"))&&(i=i[Ws("0x2d")]((t=>t.is("element",Ws("0x3c"))))),i}[Ws("0x29")](t){const e=this[Ws("0x17")][Ws("0x19")][Ws("0xb")](Ws("0x20"));let n=Array[Ws("0x23")](this[Ws("0x17")][Ws("0x10")][Ws("0x21")][Ws("0xc")].getSelectedBlocks())[Ws("0x2d")](t)[Ws("0x4")]((t=>{const n=this[Ws("0x17")][Ws("0x10")][Ws("0xa")](t,0);return[...e[Ws("0x3b")](n,"backward"),...e[Ws("0x3b")](n,Ws("0x24"))]}))[Ws("0x30")]();return n=[...new Set(n)],n}[Ws("0x3f")](t){return Ws("0x2e")+this[Ws("0x17")].plugins[Ws("0xb")](Ws("0x20"))[Ws("0x27")](t)[Ws("0x1a")]()+Ws("0x36")+t[Ws("0x1a")]().replace(/-/g,"_")}}const qs=["high","media","MediaEmbedEditing","attribute:url:media","for","afterInit","stop","downcastDispatcher","editor","showSuggestionHighlights","div","ELEMENT_MEDIA","options","dataDowncast","elementToElement","TrackChangesEditing","data","has","get","plugins","_descriptionFactory","registerElementLabel","createEmptyElement"];var Xs,$s;Xs=qs,$s=224,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0xb")](){const t=this[Zs("0xe")];if(!t[Zs("0x2")][Zs("0x0")](Zs("0x8")))return;const e=t[Zs("0x2")][Zs("0x1")](Zs("0x15")),n=t.locale;e.enableCommand("mediaEmbed"),e[Zs("0x3")][Zs("0x4")]("media",(t=>Jr(n,Zs("0x11"),t))),t.conversion[Zs("0xa")](Zs("0x13"))[Zs("0x14")]({model:Zs("0x7"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Zs("0x5")](Zs("0x10"))},converterPriority:"high"}),t[Zs("0x16")][Zs("0xd")].on(Zs("0x9"),((t,e,n)=>{n[Zs("0x12")][Zs("0xf")]&&t[Zs("0xc")]()}),{priority:Zs("0x6")})}}const Js=["plugins","mention","get","has","enableCommand","afterInit","MentionEditing"];var Qs,tx;Qs=Js,tx=128,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x3")](){const t=this.editor;t[ex("0x5")][ex("0x1")](ex("0x4"))&&t.plugins[ex("0x0")]("TrackChangesEditing")[ex("0x2")](ex("0x6"))}}const rx=["enableCommand","PageBreakEditing","get","ELEMENT_PAGE_BREAK","plugins","registerElementLabel","editor","locale","afterInit","_descriptionFactory","pageBreak"];var ox,ix;ox=rx,ix=210,function(t){for(;--t;)ox.push(ox.shift())}(++ix);const sx=function(t,e){return rx[t-=0]};class xx extends t.Plugin{[sx("0x7")](){const t=this[sx("0x5")];if(!t.plugins.has(sx("0x0")))return;t[sx("0x3")][sx("0x1")]("TrackChangesEditing")[sx("0xa")](sx("0x9"));const e=t[sx("0x3")][sx("0x1")]("TrackChangesEditing"),n=t[sx("0x6")];e[sx("0x8")][sx("0x4")](sx("0x9"),(t=>Jr(n,sx("0x2"),t)))}}const ax=["name","locale","markerName","showSuggestionHighlights","editor","ck-suggestion-marker-split","data","get","downcastDispatcher","nodeAfter","isBlock","editing","_registerLegacyDescription","commandName","getFirstRange","checkChild","paragraph","createUIElement","$text","insertParagraph","*Change to:* %0","addClass","enableCommand","model","schema","addMarker:suggestion:insertion","afterInit","_enableDefaultAttributesIntegration","plugins","type","_descriptionFactory","insert","getItemLabel","includes","isTouching","isLimit","markerRange","*Insert:* %0","bindElementToMarker","writer","registerElementLabel","ELEMENT_PARAGRAPH","highest","TrackChangesEditing","mapper","Paragraph","ck-suggestion-marker--active","insertion"];var cx,lx;cx=ax,lx=491,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0xf")](){const t=this.editor;if(!t[ux("0x11")].has(ux("0x22")))return;const e=t[ux("0x26")],n=t.plugins[ux("0x2c")](ux("0x20"));n[ux("0x13")][ux("0x1d")](ux("0x5"),(t=>Jr(e,ux("0x1e"),t))),n[ux("0x10")](ux("0x5")),n[ux("0xb")](ux("0x8")),t[ux("0x0")][ux("0x2d")].on(ux("0xe"),gx(t),{priority:ux("0x1f")}),t[ux("0x2b")][ux("0x2d")].on("addMarker:suggestion:insertion",((e,n,r)=>{r.options[ux("0x28")]&&gx(t,{showActiveMarker:!1})(e,n,r)}),{priority:ux("0x1f")});const r=n[ux("0x13")];r.registerDescriptionCallback((n=>{if(ux("0x24")!==n.type)return;const{start:o,end:i}=n[ux("0x3")]();if(!o[ux("0x17")](i)||!o[ux("0x2e")])return;const s=t[ux("0xc")][ux("0xd")],x=o[ux("0x2e")];return s[ux("0x2f")](x)&&!s[ux("0x18")](x)&&s[ux("0x4")](x,ux("0x7"))?{type:"insertion",content:Jr(e,ux("0x1a"),r[ux("0x15")](x,1))}:void 0})),this._registerLegacyDescription()}[ux("0x1")](){const t=this[ux("0x29")],e=t[ux("0x26")];t.plugins[ux("0x2c")]("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[ux("0x12")])return;const{data:n}=t;return n&&"paragraph"==n[ux("0x2")]?{type:"format",content:Jr(e,ux("0x9"),Jr(e,ux("0x1e")))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,r,o)=>{const i=t[ux("0x11")][ux("0x2c")]("TrackChangesEditing"),s=r[ux("0x19")].start,x=r[ux("0x19")].end,a=t[ux("0xc")][ux("0xd")];if(!s[ux("0x17")](x)||!s[ux("0x2e")])return;const c=s[ux("0x2e")];if(a[ux("0x2f")](c)&&!a[ux("0x18")](c)&&a[ux("0x4")](c,ux("0x7"))){if(!o.consumable.consume(r.markerRange,n[ux("0x25")]))return;const t=o[ux("0x1c")][ux("0x6")]("span",{class:ux("0x2a")}),s=o[ux("0x21")].toViewPosition(x);e&&i.activeMarkers[ux("0x16")](r[ux("0x27")])&&o.writer[ux("0xa")](ux("0x23"),t),o[ux("0x1c")][ux("0x14")](s,t),o[ux("0x21")][ux("0x1b")](t,r.markerName)}}}const fx=["type","_descriptionFactory","TrackChangesEditing","_registerLegacyDescription","editor","*Remove all formatting*","has","afterInit","removeFormat","get","formatInline","format","commandName","RemoveFormatEditing","_enableDefaultAttributesIntegration","plugins"];var mx,hx;mx=fx,hx=381,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const bx=function(t,e){return fx[t-=0]};class px extends t.Plugin{[bx("0xa")](){const t=this[bx("0x7")];t[bx("0x2")][bx("0x9")](bx("0x0"))&&(t[bx("0x2")][bx("0xc")](bx("0x5"))[bx("0x1")](bx("0xb")),this._registerLegacyDescription())}[bx("0x6")](){const t=this[bx("0x7")];t[bx("0x2")][bx("0xc")](bx("0x5"))[bx("0x4")].registerDescriptionCallback((e=>{if("formatBlock"!=e[bx("0x3")]&&bx("0xd")!=e.type)return;const{data:n}=e;return n&&bx("0xb")==n[bx("0xf")]?{type:bx("0xe"),content:Jr(t.locale,bx("0x8"))}:void 0}))}}const Ex=["discardSelectedSuggestions","acceptSelectedSuggestions","afterInit","enableCommand","acceptSuggestion","acceptAllSuggestions","plugins","goToNextRestrictedEditingException","has","discardAllSuggestions","get","RestrictedEditingModeEditing","goToPreviousRestrictedEditingException"];var _x,Tx;_x=Ex,Tx=303,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0xb")](){const t=this.editor;if(!t[yx("0x2")][yx("0x4")](yx("0x7")))return;const e=t[yx("0x2")][yx("0x6")]("TrackChangesEditing");e[yx("0xc")](yx("0x8")),e[yx("0xc")](yx("0x3"));const n=t[yx("0x2")].get(yx("0x7"));n[yx("0xc")]("trackChanges"),n[yx("0xc")](yx("0x0")),n[yx("0xc")]("discardSuggestion"),n[yx("0xc")](yx("0x1")),n[yx("0xc")](yx("0x5")),n[yx("0xc")](yx("0xa")),n[yx("0xc")](yx("0x9"))}}const Ax=["requires","markerName","activeMarkers","addClass","deletion","createPositionBefore","data","getItems","merge","registerElementLabel","editing","ck-suggestion-marker-","shiftEnter","showSuggestionHighlights","bindElementToMarker","writer","span","markerRange","ck-suggestion-marker--active","createUIElement","get","ELEMENT_LINE_BREAK","element","softBreak","locale","enableCommand","split","includes","plugins","mapper","TrackChangesEditing","consumable","downcastDispatcher","test","high","addMarker:suggestion:deletion","insert","editor"];var kx,Ix;kx=Ax,Ix=396,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("0x16")](){return[ui.ShiftEnter]}init(){const t=this[Rx("0x15")],e=t[Rx("0xc")][Rx("0x4")](Rx("0xe"));e[Rx("0x9")](Rx("0x22")),t.editing[Rx("0x10")].on("addMarker:suggestion:insertion",vx(t),{priority:Rx("0x12")}),t[Rx("0x20")].downcastDispatcher.on(Rx("0x13"),vx(t),{priority:"high"}),t[Rx("0x1c")].downcastDispatcher.on("addMarker:suggestion",((e,n,r)=>{r.options[Rx("0x23")]&&vx(t,{showActiveMarker:!1})(e,n,r)})),e._descriptionFactory[Rx("0x1f")]("softBreak",(e=>Jr(t[Rx("0x8")],Rx("0x5"),e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,r,o)=>{const i=t[Rx("0xc")][Rx("0x4")](Rx("0xe"));if(!o[Rx("0xf")][Rx("0x11")](r[Rx("0x1")],n.name))return;const s=t.model;for(const t of r.markerRange[Rx("0x1d")]()){if(!t.is(Rx("0x6"),Rx("0x7")))continue;const n=Rx("0x1a")==r[Rx("0x17")][Rx("0xa")](":")[1]?Rx("0x1e"):Rx("0xa"),x=o[Rx("0x25")][Rx("0x3")](Rx("0x0"),{class:Rx("0x21")+n}),a=o[Rx("0xd")].toViewPosition(s[Rx("0x1b")](t));e&&i[Rx("0x18")][Rx("0xb")](r[Rx("0x17")])&&o[Rx("0x25")][Rx("0x19")](Rx("0x2"),x),o[Rx("0x25")][Rx("0x14")](a,x),o[Rx("0xd")][Rx("0x24")](x,r[Rx("0x17")])}}}const Nx=["value","format","editor","afterInit","FORMAT_RESTRICTED_DISABLED","formatInline","enableCommand","from","get","isCollapsed","getRanges","commandName","change","restrictedEditingException","has","forceValue","document","formatBlock","plugins","TrackChangesEditing","StandardEditingModeEditing","selection","FORMAT_RESTRICTED_ENABLED"];var Lx,Mx;Lx=Nx,Mx=142,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0x16")](){const t=this[wx("0x15")],e=t.model,n=t.locale;if(!t.plugins[wx("0xa")](wx("0x10")))return;const r=t[wx("0xe")][wx("0x4")](wx("0xf")),o=wx("0x9"),i=t.commands.get(o);r[wx("0x2")](o,((t,n={})=>{const s=e[wx("0xc")][wx("0x11")];if(s[wx("0x5")])return void t(n);const x=void 0!==n[wx("0xb")]?n[wx("0xb")]:!i[wx("0x13")];e[wx("0x8")]((()=>{const t=Array[wx("0x3")](s[wx("0x6")]());for(const n of t){const t=x?[n]:Xo(o,n,e);for(const e of t)r.markInlineFormat(e,{commandName:o,commandParams:[{forceValue:x}]})}}))})),r._descriptionFactory.registerDescriptionCallback((t=>{if(wx("0xd")!=t.type&&wx("0x1")!=t.type)return;const{data:e}=t;return e&&e[wx("0x7")]==o?e.commandParams[0][wx("0xb")]?{type:wx("0x14"),content:Jr(n,wx("0x12"))}:{type:"format",content:Jr(n,wx("0x0"))}:void 0}))}}const Fx=["toLowerCase","add","StyleUtils","type","ghsAttributes","_descriptionFactory","editor","GeneralHtmlSupport","block","get","*Set format:* %0","_registerInlineAttribute","*Remove format:* %0","config","styleName","getGhsAttributeNameForElement","has","plugins","normalizeConfig","style","commandParams","definitions","TrackChangesEditing","element","DataSchema","_registerLegacyDescription","locale","registerAttributeLabel"];var Dx,Bx;Dx=Fx,Bx=156,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{afterInit(){const t=this[Px("0x12")];if(!t[Px("0x1")][Px("0x0")]("Style")||!t[Px("0x1")][Px("0x0")](Px("0x8")))return;const e=t[Px("0x1")][Px("0x15")](Px("0x6")),n=t.locale,r=t[Px("0x19")][Px("0x15")](Px("0x3")),o=t[Px("0x1")][Px("0x15")](Px("0x13")),i=t[Px("0x1")][Px("0x15")](Px("0xe"))[Px("0x2")](t.plugins[Px("0x15")](Px("0x8")),r[Px("0x5")]);e._enableDefaultAttributesIntegration(Px("0x3"));const s=new Set;for(const t of i[Px("0x14")]){const e=o.getGhsAttributeNameForElement(t[Px("0x7")]);s[Px("0xd")](e)}const x=new Set;for(const t of i.inline){const e=o[Px("0x1b")](t[Px("0x7")]);x[Px("0xd")](e);for(const e of t[Px("0x10")])x.add(e)}for(const t of s)e._registerBlockAttribute(t),e._descriptionFactory[Px("0xb")](t,Jr(n,"FORMAT_STYLE"));for(const t of x)e[Px("0x17")](t),e[Px("0x11")].registerAttributeLabel(t,Jr(n,"FORMAT_STYLE"));this._registerLegacyDescription()}[Px("0x9")](){const t=this[Px("0x12")],e=t[Px("0xa")];t.plugins[Px("0x15")]("TrackChangesEditing")[Px("0x11")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Px("0xf")]&&"formatInline"!=t.type)return;const{data:n}=t;return n&&Px("0x3")===n.commandName?n[Px("0x4")][0].forceValue?{type:"format",content:Jr(e,Px("0x16"),n[Px("0x4")][0][Px("0x1a")].toLowerCase())}:{type:"format",content:Jr(e,Px("0x18"),n.commandParams[0][Px("0x1a")][Px("0xc")]())}:void 0}))}}const jx=["findAncestor","getRowIndexes","registerCustomCallback","detach","fromRange","maxRow","max","nodeAfter","registerDescriptionCallback","ELEMENT_TABLE","ELEMENT_TABLE_ROW_WITH_TEXT","substr","element","removeTableColumn","classes","_getCoordsForCells","commands","differ","from","addRange","values","ELEMENT_TABLE_WITH_TEXT","data","min","root","item","maxColumn","last","includes","change:data","TableEditing","hasAttribute","every","span","accept","ELEMENT_TABLE_COLUMN","map","addMarker:suggestion","enqueueChange","editor","MIN_SAFE_INTEGER","MAX_SAFE_INTEGER","left","getSelectionAffectedTableCells","refresh","push","rowspan","insert","some","plugins","start","enableCommand","colspan","$graveyard","markMultiRangeDeletion","TrackChangesEditing","mapper","afterInit","join","minColumn","tableColumn","insertTableColumnLeft","cell","ELEMENT_TABLE_ROW","change","get","removeClass","position","tableRow","first","_getSuggestionCoords","downcastDispatcher","createRangeIn","subType","add","_setupColumnsRowsFixing","setSelection","end","suggestion","highest","*Remove:* %0","getRanges","addClass","execute","name","model","registerElementLabel","batch","getCellLocation","table","minRow","TableUtils","getItems","_tablePostFixingSubtypes","_acceptFormatSuggestionCallbackFactory","selection","_descriptionFactory","insertTableRowAbove","type","createRangeOn","selectTableColumn","getAttribute","isArray","getChanges","discard","insertTableColumnRight","locale","document","low","startsWith","_suggestionFactory","filter","deletion","oldRange","isInContent","createTableWalker","toLowerCase","_tableSuggestions","length","removeTableRow","insertTableRowBelow","tableCell","markMultiRangeInsertion","$textProxy","isEqual","getSuggestion","rootName","isTouching","*Insert:* %0","insertion"];var Gx,Vx;Gx=jx,Vx=427,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("0x38")]=[Hx("0x1f"),"tableColumn"],this[Hx("0x50")]=new Set}[Hx("0x14")](){const t=this[Hx("0x2")],e=t[Hx("0x30")][Hx("0x46")][Hx("0x3a")];if(!t[Hx("0xc")].has(Hx("0x7b")))return;const n=t[Hx("0x45")],r=t[Hx("0xc")][Hx("0x1c")]("TrackChangesEditing"),o=t[Hx("0xc")][Hx("0x1c")](Hx("0x36"));r[Hx("0x3b")][Hx("0x31")]("table",(t=>Jr(n,Hx("0x66"),t))),this[Hx("0x26")](),r[Hx("0xe")]("insertTable"),r[Hx("0xe")]("selectTableRow"),r[Hx("0xe")](Hx("0x3f"));for(const n of[Hx("0x3c"),Hx("0x53")]){const i=t[Hx("0x6d")].get(n);r[Hx("0xe")](n,(n=>{t.model[Hx("0x1b")]((t=>{n();const s="above"===i.order,x=o.getSelectionAffectedTableCells(e),a=o[Hx("0x5e")](x),c=s?a[Hx("0x20")]-1:a.last+1,l=x[0][Hx("0x5d")](Hx("0x34")),u=o[Hx("0x4e")](l,{startRow:c,endRow:c}),d=Array[Hx("0x6f")](u).map((e=>t[Hx("0x3e")](e[Hx("0x19")])));r[Hx("0x55")](d,Hx("0x1f"))}))}))}for(const n of[Hx("0x18"),Hx("0x44")]){const i=t[Hx("0x6d")][Hx("0x1c")](n);r[Hx("0xe")](n,(n=>{t[Hx("0x30")][Hx("0x1b")]((t=>{n();const s=Hx("0x5")===i.order,x=o[Hx("0x6")](e),a=o.getColumnIndexes(x),c=s?a[Hx("0x20")]-1:a.last+1,l=x[0].findAncestor(Hx("0x34")),u=o[Hx("0x4e")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Hx("0x81")]((e=>t[Hx("0x3e")](e[Hx("0x19")])));r[Hx("0x55")](d,Hx("0x17"))}))}))}for(const n of[Hx("0x52"),"removeTableColumn"]){const i=n[Hx("0x68")](11),s=i[Hx("0x4f")](),x=s[Hx("0x68")](0,3)+Hx("0x7e"),a=Hx("0x34")+i,c=Hx("0x74")+i,l=Hx("0x63")+i;r[Hx("0xe")](n,(()=>{t[Hx("0x30")][Hx("0x1b")]((t=>{const i=o[Hx("0x6")](e),u=i[0][Hx("0x5d")](Hx("0x34"));let d;if(Hx("0x52")==n){const t=o[Hx("0x5e")](i);d={startRow:t.first,endRow:t[Hx("0x78")],includeAllSlots:!0}}else{const t=o.getColumnIndexes(i);d={startColumn:t[Hx("0x20")],endColumn:t[Hx("0x78")],includeAllSlots:!0}}const g=o[Hx("0x4e")](u,d),f=Array[Hx("0x6f")](g).map((({cell:t})=>t)),m=Wx(f[Hx("0x4a")]((t=>t[Hx("0x7c")](x)))),h=Wx(f.filter((t=>!t[Hx("0x7c")](x))))[Hx("0x81")]((e=>t[Hx("0x3e")](e))),b=r[Hx("0x11")](h,a);if(b&&("tableRow"==b[Hx("0x24")]||Hx("0x17")==b[Hx("0x24")])){const e=this[Hx("0x21")](b);for(const n of m){const r=t[Hx("0x3e")](n),i=o[Hx("0x33")](n),a=n[Hx("0x40")](x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&b.addRange(r)}}}))}))}function i(n){const r=Array[Hx("0x6f")](e[Hx("0x2c")]())[Hx("0x81")]((t=>s.LiveRange[Hx("0x61")](t)));t[Hx("0x30")][Hx("0x1b")]((e=>{const o=e[Hx("0x32")];n=n[Hx("0x4a")]((t=>Hx("0x10")!=t[Hx("0x75")].rootName)),e.setSelection(n),t.commands[Hx("0x1c")](Hx("0x52"))[Hx("0x7")](),t[Hx("0x2e")](Hx("0x52"),{forceDefaultExecution:!0}),t[Hx("0x30")][Hx("0x1")]((()=>{t[Hx("0x30")][Hx("0x1")](o,(t=>{const e=r.filter((t=>Hx("0x10")!=t[Hx("0x75")][Hx("0x59")]));e.length>0&&t.setSelection(e);for(const t of r)t[Hx("0x60")]()}))}))}))}function a(n){t[Hx("0x30")].change((r=>{const o=Array.from(e.getRanges())[Hx("0x81")]((t=>s.LiveRange[Hx("0x61")](t))),i=[];for(const t of n)for(const e of t[Hx("0x37")]({shallow:!0}))i[Hx("0x8")](e);for(const e of i)Hx("0x10")!=e.root[Hx("0x59")]&&(r[Hx("0x27")](r.createPositionAt(e,0)),t[Hx("0x6d")][Hx("0x1c")](Hx("0x6a"))[Hx("0x7")](),t[Hx("0x2e")](Hx("0x6a"),{forceDefaultExecution:!0}));const x=o[Hx("0x4a")]((t=>Hx("0x10")!=t.root[Hx("0x59")]));x[Hx("0x51")]>0&&r[Hx("0x27")](x);for(const t of o)t.detach()}))}function c(t,e){return e[Hx("0x7d")]((e=>t[Hx("0xb")]((t=>t.end[Hx("0x57")](e[Hx("0xd")])||e[Hx("0x28")][Hx("0x57")](t.start)))))}function l(t,e){return t[Hx("0xb")]((t=>e[Hx("0xb")]((e=>t.end[Hx("0x5a")](e[Hx("0xd")])))))}t[Hx("0x73")][Hx("0x22")].on(Hx("0x0"),((t,e,n)=>{if(!n.options.showSuggestionHighlights)return;const r=e[Hx("0x76")];if(!r)return;const o=n[Hx("0x13")].toViewElement(r);function i(t){return Array[Hx("0x41")](t)?t:[t]}o&&Hx("0x54")===r[Hx("0x2f")]&&(0,x.setHighlightHandling)(o,n.writer,((t,e,n)=>n[Hx("0x2d")](i(e[Hx("0x6b")]),t)),((t,e,n)=>n[Hx("0x1d")](i(e[Hx("0x6b")]),t)))}),{priority:Hx("0x2a")}),r[Hx("0x3b")][Hx("0x65")]((t=>{if("insertion"!=t[Hx("0x3d")]&&Hx("0x4b")!=t.type)return;const e=t.getContainedElement();if(null!=e&&e.is(Hx("0x69"),"table")){if(Hx("0x5c")==t[Hx("0x3d")]){const e=t[Hx("0x37")]()[Hx("0x4a")]((t=>t.is("$textProxy")))[Hx("0x81")]((t=>t[Hx("0x73")]));if(e.length)return{type:Hx("0x5c"),content:Jr(n,Hx("0x5b"),Jr(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Hx("0x15")](" ")+'"'))}}if(Hx("0x4b")==t[Hx("0x3d")]){const e=t.getItems()[Hx("0x4a")]((t=>t.is("$textProxy")))[Hx("0x81")]((t=>t.data));if(e.length)return{type:Hx("0x4b"),content:Jr(n,Hx("0x2b"),Jr(n,Hx("0x72"),'"'+e[Hx("0x15")](" ")+'"'))}}}})),r[Hx("0x3b")][Hx("0x65")]((t=>{if(Hx("0x1f")==t[Hx("0x24")]){const e=t[Hx("0x37")]()[Hx("0x4a")]((t=>t.is(Hx("0x56"))))[Hx("0x81")]((t=>t[Hx("0x73")])),r=this[Hx("0x21")](t),o=r[Hx("0x62")]-r[Hx("0x35")]+1;if(Hx("0x5c")==t[Hx("0x3d")])return e[Hx("0x51")]?{type:Hx("0x5c"),content:Jr(n,Hx("0x5b"),Jr(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[o,'"'+e.join(" ")+'"']))}:{type:Hx("0x5c"),content:Jr(n,Hx("0x5b"),Jr(n,"ELEMENT_TABLE_ROW",o))};if("deletion"==t[Hx("0x3d")])return e[Hx("0x51")]?{type:Hx("0x4b"),content:Jr(n,"*Remove:* %0",Jr(n,Hx("0x67"),[o,'"'+e[Hx("0x15")](" ")+'"']))}:{type:Hx("0x4b"),content:Jr(n,Hx("0x2b"),Jr(n,Hx("0x1a"),o))}}if(Hx("0x17")==t[Hx("0x24")]){const e=t[Hx("0x37")]()[Hx("0x4a")]((t=>t.is(Hx("0x56"))))[Hx("0x81")]((t=>t[Hx("0x73")])),r=this[Hx("0x21")](t),o=r[Hx("0x77")]-r[Hx("0x16")]+1;if("insertion"==t[Hx("0x3d")])return e[Hx("0x51")]?{type:"insertion",content:Jr(n,Hx("0x5b"),Jr(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[o,'"'+e[Hx("0x15")](" ")+'"']))}:{type:"insertion",content:Jr(n,Hx("0x5b"),Jr(n,Hx("0x80"),o))};if(Hx("0x4b")==t[Hx("0x3d")])return e[Hx("0x51")]?{type:Hx("0x4b"),content:Jr(n,Hx("0x2b"),Jr(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[o,'"'+e[Hx("0x15")](" ")+'"']))}:{type:Hx("0x4b"),content:Jr(n,"*Remove:* %0",Jr(n,Hx("0x80"),o))}}})),r[Hx("0x49")][Hx("0x5f")](Hx("0x5c"),"tableRow",Hx("0x43"),i),r[Hx("0x49")][Hx("0x5f")](Hx("0x4b"),Hx("0x1f"),Hx("0x7f"),i),r._suggestionFactory.registerCustomCallback(Hx("0x5c"),Hx("0x17"),"discard",a),r[Hx("0x49")][Hx("0x5f")](Hx("0x4b"),Hx("0x17"),Hx("0x7f"),a),r[Hx("0x49")][Hx("0x5f")](Hx("0x5c"),Hx("0x17"),Hx("0x15"),c),r[Hx("0x49")][Hx("0x5f")]("deletion",Hx("0x17"),Hx("0x15"),c),r[Hx("0x49")][Hx("0x5f")](Hx("0x5c"),Hx("0x1f"),Hx("0x15"),l),r._suggestionFactory.registerCustomCallback(Hx("0x4b"),Hx("0x1f"),Hx("0x15"),l)}[Hx("0x39")](){const t=this.editor,e=t[Hx("0x30")].document[Hx("0x3a")];return(n,r)=>{t[Hx("0x30")][Hx("0x1b")]((o=>{const{commandName:i,commandParams:x}=r;let a=n[0][Hx("0x28")].nodeBefore;x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Hx("0xd")][Hx("0x64")]);const c=o[Hx("0x23")](a);if(Hx("0x10")==c[Hx("0x75")][Hx("0x59")])return;const l=Array.from(e[Hx("0x2c")]())[Hx("0x81")]((t=>s.LiveRange[Hx("0x61")](t)));o[Hx("0x27")](c),t[Hx("0x6d")][Hx("0x1c")](i).refresh(),x[Hx("0x8")]({forceDefaultExecution:!0}),t[Hx("0x2e")](i,...x);const u=l[Hx("0x4a")]((t=>Hx("0x10")!=t.root[Hx("0x59")]));u[Hx("0x51")]>0&&o[Hx("0x27")](u);for(const t of l)t.detach()}))}}_getCoordsForCells(t){const e=this.editor.plugins[Hx("0x1c")](Hx("0x36"));let n=Number[Hx("0x4")],r=Number[Hx("0x3")],o=Number[Hx("0x4")],i=Number[Hx("0x3")];for(const s of t){if(Hx("0x10")==s.root.rootName)continue;const{row:t,column:x}=e[Hx("0x33")](s),a=s[Hx("0x7c")](Hx("0x9"))?s[Hx("0x40")](Hx("0x9"))-1:0,c=s.hasAttribute("colspan")?s[Hx("0x40")](Hx("0xf"))-1:0;n=t<n?t:n,r=t+a>r?t+a:r,o=x<o?x:o,i=x+c>i?x+c:i}return{minRow:n,maxRow:r,minColumn:o,maxColumn:i}}[Hx("0x26")](){const t=this[Hx("0x2")],e=t[Hx("0xc")][Hx("0x1c")](Hx("0x12")),n=t[Hx("0xc")][Hx("0x1c")](Hx("0x36"));t[Hx("0x30")][Hx("0x46")].on(Hx("0x7a"),(()=>{const n=Array[Hx("0x6f")](t[Hx("0x30")].document[Hx("0x6e")].getChangedMarkers());for(const{name:t,data:r}of n){const{group:n,id:o,subType:i}=e._splitMarkerName(t);if(Hx("0x29")!=n)continue;if(null!=r[Hx("0x4c")])continue;const s=e[Hx("0x58")](o);this._tablePostFixingSubtypes[Hx("0x79")](i)&&this[Hx("0x50")][Hx("0x25")](s)}}),{priority:Hx("0x47")});const r=(t,e)=>{let r=!1;const o=e[Hx("0x3e")](t),i=t[Hx("0x5d")](Hx("0x34")),s=n[Hx("0x33")](t);for(const e of this[Hx("0x50")]){const n=e[Hx("0x24")],x=n[Hx("0x48")]("tablePaste"),a=n.substr(x?10:5),c=a.toLowerCase(),l=c[Hx("0x68")](0,3)+Hx("0x7e"),u=Hx("0x74")+a,d=Hx("0x63")+a;if(!e[Hx("0x4d")])continue;if(i!=e.getFirstRange()[Hx("0xd")].findAncestor(Hx("0x34")))continue;if(e.isIntersectingWithRange(o))continue;const g=t[Hx("0x7c")](l)?t[Hx("0x40")](l)-1:0,f=this[Hx("0x21")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x70")](o),r=!0)}return r};t[Hx("0x30")][Hx("0x46")].registerPostFixer((e=>{let n=!1;for(const o of t[Hx("0x30")][Hx("0x46")].differ[Hx("0x42")]())if(Hx("0xa")==o[Hx("0x3d")])if(Hx("0x1f")==o[Hx("0x2f")])for(const t of o[Hx("0x1e")][Hx("0x64")].getChildren())n=n||r(t,e);else Hx("0x54")==o.name&&(n=n||r(o[Hx("0x1e")][Hx("0x64")],e));return n}))}[Hx("0x21")](t){return this[Hx("0x6c")](t[Hx("0x2c")]()[Hx("0x81")]((t=>t.start[Hx("0x64")])))}}function Wx(t){return Array[Hx("0x6f")](new Set(t)[Hx("0x71")]())}const Kx=["*Split cell:* vertically","plugins","deletion","_areMergableCells","registerDescriptionCallback","getFirstPosition","splitTableCellVertically","mergeTableCellUp","document","enableCommand","mergeTableCells","type","_areSelectedCellsMergable","direction","mergeTableCellRight","change","mergeTableCellDown","*Merge cells*","splitTableCellHorizontally","table","requires","TableUtils","cell","tableCell","rootName","from","_descriptionFactory","getSuggestions","length","_acceptFormatSuggestionCallbackFactory","format","low","mergeTableCellLeft","editor","selection","commands","author","map","forceDefaultExecution","refresh","trackChanges","add","set:isEnabled","find","accept","createRangeOn","value","formatInline","getCellLocation","execute","_tablePostFixingSubtypes","commandName","getSelectionAffectedTableCells","setSelection","markMultiRangeBlockFormat","root","return","has","stop","_suggestionFactory","size","getAncestors","insertion","registerCustomCallback","*Split cell:* horizontally","get","element","getRanges","locale","formatBlock","markBlockFormat","TrackChangesEditing","afterInit","model","findAncestor","createTableWalker","push"];var qx,Xx;qx=Kx,Xx=105,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("0x45")](){return[zx]}[$x("0x2c")](){const t=this[$x("0x5")],e=t[$x("0x2d")][$x("0x39")][$x("0x6")],n=t[$x("0x28")];if(!t[$x("0x32")].has("TableEditing"))return;const r=t[$x("0x32")][$x("0x25")]($x("0x2b")),o=t[$x("0x32")][$x("0x25")]($x("0x46")),i=t.plugins[$x("0x25")](zx);i[$x("0x16")][$x("0x30")]("mergeTableCells"),r.enableCommand($x("0x3b"),(()=>{const e=o[$x("0x18")](t.model[$x("0x39")].selection);t[$x("0x2d")].change((()=>{r[$x("0x1a")](e,{commandName:$x("0x3b"),commandParams:[]},[],$x("0x3b"))}))})),t[$x("0x7")][$x("0x25")]($x("0x3b")).on($x("0x15"),((e,n)=>{t.commands[$x("0x25")]($x("0xc"))[$x("0x12")]&&(n[$x("0x0")]>0&&n[n[$x("0x0")]-1]&&n[n[$x("0x0")]-1][$x("0xa")]||r._isForcedDefaultExecutionBlock||this[$x("0x3d")]()||e[$x("0x1e")]())}),{priority:"highest"});for(const e of["mergeTableCellUp","mergeTableCellRight",$x("0x41"),$x("0x4")]){const n=t[$x("0x7")][$x("0x25")](e);r.enableCommand(e,(()=>{const e=t.model[$x("0x39")].selection[$x("0x36")]().getAncestors()[$x("0xf")]((t=>t.is($x("0x26"),$x("0x48")))),o=n[$x("0x12")];t[$x("0x2d")][$x("0x40")]((()=>{r.markMultiRangeBlockFormat([e,o],{commandName:$x("0x3b"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[$x("0x37"),$x("0x43")]){const n=t[$x("0x7")][$x("0x25")](e);r[$x("0x3a")](e,(()=>{const i=o[$x("0x18")](t[$x("0x2d")].document[$x("0x6")])[0],s=i[$x("0x2e")]($x("0x44")),{column:x,row:a}=o[$x("0x14")](i);let c=[];if("horizontally"==n[$x("0x3e")]){const t=o[$x("0x2f")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0x4a")](t)[$x("0x9")]((t=>t[$x("0x47")]))}else{const t=o[$x("0x2f")](s,{column:x,includeAllSlots:!0});c=Array[$x("0x4a")](t)[$x("0x9")]((t=>t.cell))}t.model[$x("0x40")]((t=>{r[$x("0x2a")](t[$x("0x11")](i),{commandName:e,commandParams:[]},c,e)}))}))}r[$x("0x4b")][$x("0x35")]((t=>{if($x("0x29")!=t[$x("0x3c")]&&"formatInline"!=t[$x("0x3c")])return;const{data:e}=t;return e&&"mergeTableCells"==e[$x("0x17")]?{type:$x("0x2"),content:Jr(n,$x("0x42"))}:void 0})),r[$x("0x4b")][$x("0x35")]((t=>{if($x("0x29")!=t.type&&$x("0x13")!=t[$x("0x3c")])return;const{data:e}=t;return e?$x("0x37")==e.commandName?{type:$x("0x2"),content:Jr(n,$x("0x31"))}:$x("0x43")==e[$x("0x17")]?{type:"format",content:Jr(n,$x("0x24"))}:void 0:void 0}));const x=i[$x("0x1")]();for(const t of[$x("0x38"),$x("0x3f"),"mergeTableCellDown",$x("0x4")])r._suggestionFactory[$x("0x23")]($x("0x29"),t,$x("0x10"),x);for(const t of["splitTableCellVertically",$x("0x43")])r._suggestionFactory.registerCustomCallback($x("0x29"),t,$x("0x10"),x);r[$x("0x1f")][$x("0x23")]($x("0x29"),$x("0x3b"),$x("0x10"),(n=>{t.model[$x("0x40")]((r=>{const o=Array[$x("0x4a")](e[$x("0x27")]()).map((t=>s.LiveRange.fromRange(t)));r[$x("0x19")](n),t.commands[$x("0x25")]("mergeTableCells")[$x("0xb")](),t[$x("0x15")]($x("0x3b"),{forceDefaultExecution:!0});const i=o.filter((t=>"$graveyard"!=t[$x("0x1b")][$x("0x49")]));i[$x("0x0")]>0&&r[$x("0x19")](i);for(const t of o)t.detach()}))}));for(const e of[$x("0x38"),"mergeTableCellDown","mergeTableCellLeft",$x("0x3f")]){const n=t[$x("0x7")][$x("0x25")](e);n.on($x("0xe"),((e,r,o)=>{if(o){const r=t.model[$x("0x39")][$x("0x6")][$x("0x36")]()[$x("0x21")]()[$x("0xf")]((t=>t.is($x("0x26"),$x("0x48"))));this[$x("0x34")](n.value,r)||(e[$x("0x1c")]=!1,e.stop())}}),{priority:$x("0x3")})}}[$x("0x3d")](){const t=this.editor.commands[$x("0x25")]($x("0x3b")),e=this[$x("0x5")][$x("0x32")][$x("0x25")]($x("0x46"));if(!t.isEnabled)return!1;const n=e[$x("0x18")](this[$x("0x5")][$x("0x2d")][$x("0x39")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x34")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[$x("0x5")][$x("0x32")][$x("0x25")]($x("0x2b")),r=this[$x("0x5")][$x("0x2d")][$x("0x11")](t),o=this[$x("0x5")][$x("0x2d")][$x("0x11")](e),i=new Set,s=new Set;for(const t of n[$x("0x4c")]())if(($x("0x22")==t[$x("0x3c")]||$x("0x33")==t[$x("0x3c")]||$x("0x3b")==t.subType)&&t.isInContent)for(const e of t[$x("0x27")]())e.containsRange(r,!0)&&i[$x("0xd")](t[$x("0x3c")]+":"+t[$x("0x8")].id),e.containsRange(o,!0)&&s[$x("0xd")](t[$x("0x3c")]+":"+t[$x("0x8")].id);if(i[$x("0x20")]!=s.size)return!1;for(const t of i)if(!s[$x("0x1d")](t))return!1;return!0}}const Yx=["registerCustomCallback","setTableRowHeader","FORMAT_REGULAR_COLUMN","type","removeClass","locale","commandName","commandParams","TableUtils","registerAttributeLabel","headingRows","cell","writer","_suggestionFactory","plugins","headingColumns","consume","TrackChangesEditing","TableEditing","forceValue","FORMAT_REGULAR_ROW","item","bindElementToMarker","formatBlock","FORMAT_HEADER_COLUMN","setTableColumnHeader","options","_acceptFormatSuggestionCallbackFactory","activeMarkers","createTableWalker","format","nodeBefore","_registerLegacyDescription","nodeAfter","FORMAT_HEADER_ROW","includes","data","registerDescriptionCallback","downcastDispatcher","get","data-suggestion","_splitMarkerName","_handleLegacySuggestions","showSuggestionHighlights","requires","markerRange","ck-suggestion-marker-","addClass","parent","stop","markerNameToElements","has","mapper","getCellLocation","editing","addMarker:suggestion","editor","end","*Format:* %0","ck-suggestion-marker--active","_enableDefaultAttributesIntegration","name","accept","_descriptionFactory","afterInit","highest","toViewElement","getSuggestion","markerName"];var Jx,Qx;Jx=Yx,Qx=260,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("0x3c")](){return[zx]}[ta("0xb")](){const t=this[ta("0x3")];if(!t.plugins[ta("0x43")](ta("0x22")))return;const e=t[ta("0x15")],n=t[ta("0x1e")][ta("0x37")](ta("0x21"));n[ta("0x7")]("setTableRowHeader",[],[ta("0x1a")]),n[ta("0x7")](ta("0x29"),[],[ta("0x1f")]),n[ta("0xa")].registerAttributeLabel(ta("0x1a"),Jr(e,"FORMAT_HEADER_ROW")),n[ta("0xa")][ta("0x19")]("headingColumns",Jr(e,ta("0x28"))),this[ta("0x3a")]()}[ta("0x3a")](){const t=this[ta("0x3")][ta("0x1e")][ta("0x37")](ta("0x21")),e=this[ta("0x3")].plugins[ta("0x37")](ta("0x18")),n=this[ta("0x3")][ta("0x1e")][ta("0x37")](zx)[ta("0x2b")]();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(o,i,s)=>{const{type:x,id:a}=t[ta("0x39")](i.markerName),c=t.getSuggestion(a),l=c.data;if("formatBlock"!=c.type||!l||ta("0x29")!=l[ta("0x16")])return;if(i[ta("0x25")])return void o[ta("0x41")]();if(!s.consumable[ta("0x20")](i[ta("0x3d")],o[ta("0x8")]))return;const u=i[ta("0x3d")].start[ta("0x31")],d=i[ta("0x3d")][ta("0x4")][ta("0x2f")],g=u[ta("0x40")][ta("0x40")],{column:f}=e[ta("0x0")](u),{column:m}=e[ta("0x0")](d);for(let o=f;o<=m;o++){const c=e[ta("0x2d")](g,{column:o,includeAllSlots:!1});for(const e of c){const o=e[ta("0x1b")],c=s[ta("0x44")][ta("0xd")](o);s[ta("0x1c")].addClass(ta("0x3e")+x,c),r&&s[ta("0x1c")].setAttribute(ta("0x38"),a,c),s[ta("0x44")][ta("0x26")](c,i[ta("0xf")]),n&&(t[ta("0x2c")][ta("0x33")](i[ta("0xf")])?s[ta("0x1c")][ta("0x3f")]("ck-suggestion-marker--active",c):s.writer[ta("0x14")](ta("0x6"),c))}}}}t[ta("0x1d")].registerCustomCallback(ta("0x27"),ta("0x11"),ta("0x9"),n),t[ta("0x1d")][ta("0x10")]("formatBlock",ta("0x29"),ta("0x9"),n),this[ta("0x3")][ta("0x1")].downcastDispatcher.on(ta("0x2"),r(),{priority:ta("0xc")}),this.editor[ta("0x34")][ta("0x36")].on(ta("0x2"),((t,e,n)=>{n[ta("0x2a")][ta("0x3b")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0xc")}),this[ta("0x3")].editing[ta("0x36")].on("removeMarker:suggestion",((e,n,r)=>{const{type:o,id:i}=t._splitMarkerName(n[ta("0xf")]),s=t[ta("0xe")](i),x=s.data;if(ta("0x27")!=s[ta("0x13")]||!x||ta("0x29")!=x[ta("0x16")])return;const a=r[ta("0x44")][ta("0x42")](n.markerName);if(a)for(const t of a)r[ta("0x1c")][ta("0x14")]("ck-suggestion-marker-"+o,t),r[ta("0x1c")][ta("0x14")]("ck-suggestion-marker--active",t),r[ta("0x1c")].removeAttribute(ta("0x38"),t),r[ta("0x44")].unbindElementFromMarkerName(t,n.markerName)}),{priority:ta("0xc")}),this[ta("0x30")]()}[ta("0x30")](){const t=this[ta("0x3")],e=t[ta("0x15")];function n(t){return{type:ta("0x2e"),content:Jr(e,ta("0x5"),t)}}t[ta("0x1e")][ta("0x37")](ta("0x21"))._descriptionFactory[ta("0x35")]((t=>{if("formatBlock"!=t[ta("0x13")])return;const{data:r}=t;if(r){if("setTableRowHeader"==r.commandName){const t=r.commandParams[0][ta("0x23")];return n(Jr(e,ta(t?"0x32":"0x24")))}if(ta("0x29")==r[ta("0x16")]){const t=r[ta("0x17")][0][ta("0x23")];return n(Jr(e,ta(t?"0x28":"0x12")))}}}))}}const na=["markers","getRanges","getAttributes","table","low","stop","markerAttributes","return","model","get","from","clipboardOutput","tablePasteCell","requires","find","_descriptionFactory","registerCustomCallback","paragraph","attributes","move","batch","showSuggestionHighlights","remove","markMultiRangeDeletion","getShiftedBy","root","removeRows","columnInsertionIndexes","previous","for","findAncestor","ck-suggestion-marker-insertion","registerPostFixer","createPositionBefore","_suggestionFactory","removeColumns","accept","discard","TableClipboard","insertContent","isInContent","getMarkers","getColumnIndexes","forceDefaultExecution","fill","some","type","setAttributes","document","map","unwrap","value","dataDowncast","rowInsertionRanges","fromEntries","getChangedMarkers","_splitMarkerName","plugins","TableUtils","editingDowncast","_replaceTableSlotCell","push","insertColumns","createRangeOn","differ","suggestion","markerName","tableCellPadding","listenTo","elementToElement","conversion","element","createRangeIn","markerToHighlight","oldRange","startsWith","join","row","options","length","endRow","Users","getRows","getSuggestion","tableCellVerticalAlignment","removeMarkers","getSelectionAffectedTableCells","tableCellBorderColor","name","isEmpty","position","subType","formatBlock","insertionRanges","insertRows","locale","change","createElement","registerDescriptionCallback","getContainedElement","getChildren","getTableIfOnlyTableInContent","tablePasteColumn","newRange","_getCoordsForCells","isEqual","schema","includes","rowInsertionIndexes","author","TrackChangesEditing","editor","endColumn","end","createTableWalker","filter","register","documentSelection","set","removeMarker","activeMarkers","tableCellBorderWidth","tableCellSuggestion","markMultiRangeInsertion","suggestion:formatBlock:tablePasteCell","tablePasteRow","updateMarker","tablePaste","insert","cells","getChanges","rows","containsRange","deletionRanges","selection","high","tablePasteChainId","getRange","suggestion-td","tableCellBackgroundColor","markMultiRangeBlockFormat","deletion","columnInsertionRanges","first","_tablePostFixingSubtypes","previousSibling","setAttribute","last","redo","getAllAdjacentSuggestions","getChild","tableCellBorderStyle","add","has","commands","nextSibling","every","suggestionLoaded","keys","getSuggestions","insertion","hasSuggestion","columns"];var ra,oa;ra=na,oa=405,function(t){for(;--t;)ra.push(ra.shift())}(++oa);const ia=function(t,e){return na[t-=0]},sa=[ia("0x2a"),ia("0x8"),ia("0x48"),"tableCellHorizontalAlignment",ia("0x5"),ia("0x3c"),ia("0x97")],xa=Object[ia("0x8a")](sa[ia("0x85")]((t=>[t,null])));class aa extends t.Plugin{static get[ia("0x61")](){return[zx]}afterInit(){const t=this[ia("0x20")];if(!t[ia("0x8d")].has(ia("0x7a")))return;const n=t[ia("0x8d")].get(ia("0x1f")),r=t[ia("0x8d")][ia("0x5d")](ia("0x8e")),o=t[ia("0x8d")][ia("0x5d")](zx),i=t.plugins[ia("0x5d")](ia("0x7a"));o[ia("0x41")][ia("0x91")]("tablePasteRow",ia("0x17")),t[ia("0x5c")][ia("0x1b")][ia("0x25")]("tableCellSuggestion",{allowIn:"tableCell",allowContentOf:"tableCell",isLimit:!0}),t[ia("0x9a")][ia("0x99")]({model:ia("0x2b"),view:"suggestion-td"});let s=null;t[ia("0x5c")].on(ia("0x7b"),((o,x)=>{const[a,c]=x,l=x[x[ia("0x0")]-1];l&&l[ia("0x7f")]||n._isForcedDefaultExecutionBlock||this[ia("0x20")][ia("0x4b")][ia("0x5d")]("trackChanges")[ia("0x87")]&&function(t,e,n,r,o){if(e&&!e.is(ia("0x26")))return!1;const i=o[ia("0x16")](t,n);if(!i||!la(i,void 0,r))return!1;const s=r[ia("0x7")](n[ia("0x84")][ia("0x37")]);if(!s.length)return!1;const x=s[0][ia("0x72")](ia("0x57")),a=r.getRowIndexes(s),c=r[ia("0x7e")](s),l={startRow:a[ia("0x40")],endRow:a[ia("0x44")],startColumn:c.first,endColumn:c[ia("0x44")]};return 1==s[ia("0x0")]&&(l[ia("0x1")]+=r[ia("0x3")](i)-1,l[ia("0x21")]+=r.getColumns(i)-1),la(x,l,r)}(a,c,t[ia("0x5c")],r,i)&&(o[ia("0x59")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ia("0x5c")].change((()=>{t.model.insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:o,columnInsertionRanges:i,insertionRanges:a,deletionRanges:c,cells:l}=s;o[ia("0x0")]&&n[ia("0x2c")](o,ia("0x2e"),{tablePasteChainId:r}),i[ia("0x0")]&&n.markMultiRangeInsertion(i,"tablePasteColumn",{tablePasteChainId:r}),a[ia("0x0")]&&n[ia("0x2c")](a,ia("0x30"),{tablePasteChainId:r,skipNestingCheck:!0}),c[ia("0x0")]&&n[ia("0x6b")](c,"tablePaste",{tablePasteChainId:r,skipNestingCheck:!0});const u=n[ia("0x3d")](l[ia("0x85")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:r});if(u){const e=u.getMarkers(),n=[];for(const{element:r,attributes:o}of l){if(!o)continue;const i=t[ia("0x5c")].createRangeOn(r),s=e[ia("0x62")]((t=>t[ia("0x3a")]().isEqual(i)));s&&n.push([s[ia("0x9")],o])}n[ia("0x0")]&&u[ia("0x43")]("markerAttributes",Object.fromEntries(n))}s=null})))}),{priority:e.priorities[ia("0x38")]+10}),t[ia("0x8d")][ia("0x5d")](ia("0x7a")).on(ia("0x90"),((t,e)=>{const[n,r,,o]=e;if(!s)return;t[ia("0x59")]();const i=n.cell,x=r,a=ca(i),c=ca(x);t[ia("0x5b")]=i;let l=null,u=null;if(c||a)if(a&&!c){o[ia("0x6a")](i[ia("0x47")](0));for(const t of Array[ia("0x5e")](x.getChildren()))o.insert(t,i,ia("0x22"));const t=s[ia("0x1d")][ia("0x1c")](n[ia("0xa1")]),e=s.columnInsertionIndexes[ia("0x1c")](n.column);t||e||(l=o[ia("0x9c")](i))}else c&&!a&&(u=o[ia("0x9c")](i));else{const t=o.createElement(ia("0x2b")),e=o[ia("0x12")]("tableCellSuggestion");o.wrap(o[ia("0x9c")](i),e),o[ia("0x31")](t,i,0);for(const e of Array[ia("0x5e")](x[ia("0x15")]()))o[ia("0x31")](e,t,"end");l=o[ia("0x93")](t),u=o[ia("0x93")](e)}const d=Array.from(x[ia("0x56")]()).filter((([t])=>sa[ia("0x1c")](t)));s.cells[ia("0x91")]({element:i,attributes:d[ia("0x0")]?Object[ia("0x8a")](d):null}),l&&s[ia("0xe")].push(l),u&&s[ia("0x36")][ia("0x91")](u)}),{priority:"high"}),r.on(ia("0x92"),((e,n)=>{const[o,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x53")]||1;s[ia("0x6f")]=new Array(a)[ia("0x80")](x).map(((t,e)=>t+e));for(const{cell:e}of r[ia("0x23")](o,{startColumn:x,endColumn:x+a-1}))s[ia("0x3f")][ia("0x91")](t[ia("0x5c")].createRangeOn(e))}),{priority:ia("0x58")}),r.on(ia("0xf"),((e,n)=>{const[o,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x34")]||1;s.rowInsertionIndexes=new Array(a)[ia("0x80")](x)[ia("0x85")](((t,e)=>t+e));for(const{cell:e}of r[ia("0x23")](o,{startRow:x,endRow:x+a-1}))s[ia("0x89")][ia("0x91")](t[ia("0x5c")][ia("0x93")](e))}),{priority:ia("0x58")}),n[ia("0x63")][ia("0x13")]((e=>{if(e[ia("0xc")]&&e[ia("0xc")][ia("0x9f")]("tablePaste"))return e[ia("0x70")]?{}:{type:ia("0x51"),content:Jr(t[ia("0x10")],"*Replace table cells*")}}));const x=()=>!1;for(const t of[ia("0x30"),ia("0x17"),ia("0x2e"),ia("0x60")])n[ia("0x76")][ia("0x64")](ia("0x51"),t,ia("0xa0"),x),n[ia("0x76")].registerCustomCallback(ia("0x3e"),t,ia("0xa0"),x),n._suggestionFactory[ia("0x64")](ia("0xd"),t,ia("0xa0"),x);n[ia("0x76")].registerCustomCallback("formatBlock",ia("0x60"),ia("0x79"),x),n._suggestionFactory[ia("0x64")](ia("0xd"),ia("0x60"),ia("0x78"),((e,n,r)=>{const o=e[ia("0x85")]((t=>t[ia("0x14")]()))[ia("0x24")]((t=>t)),i=new Map(o.map((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ia("0x32")])e&&i[ia("0x27")](t,e);else if(r&&r.markerAttributes)for(const[e,n]of Object.entries(r[ia("0x5a")])){const r=t[ia("0x5c")][ia("0x54")][ia("0x5d")](e),o=r?r[ia("0x3a")]()[ia("0x14")]():null;o&&i.set(o,n)}t[ia("0x5c")].change((t=>{for(const[e,n]of i)t[ia("0x83")]({...xa,...n},e)}))}));const a=(e,r)=>{n._suggestionFactory[ia("0x64")](e,ia("0x30"),r,((o,i,s)=>{t[ia("0x5c")][ia("0x11")]((t=>{const x=[];for(const t of o){const e=t.start.nodeAfter;e.is(ia("0x9b"),"tableCellSuggestion")&&x.push(e)}n._suggestionFactory.getSuggestionCallback(e,null,r)(o,i,s);for(const e of x)"$graveyard"!=e[ia("0x6d")].rootName&&t.unwrap(e)}))}))};a("insertion","accept"),a(ia("0x51"),ia("0x79")),a(ia("0x3e"),ia("0x78")),a(ia("0x3e"),ia("0x79")),n[ia("0x76")][ia("0x64")](ia("0x51"),"tablePasteRow",ia("0x79"),(t=>{const e=t[ia("0x85")]((t=>t.getContainedElement())),n=e[0][ia("0x72")](ia("0x57")),{minRow:i,maxRow:s}=o[ia("0x19")](e);r[ia("0x6e")](n,{at:i,rows:s-i+1})})),n[ia("0x76")][ia("0x64")](ia("0x51"),ia("0x17"),"discard",(t=>{const e=t.map((t=>t[ia("0x14")]())),n=e[0].findAncestor(ia("0x57")),{minColumn:i,maxColumn:s}=o[ia("0x19")](e);r[ia("0x77")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e[ia("0xc")]||!e[ia("0xc")][ia("0x9f")](ia("0x30")))return;const r=e[ia("0x66")].tablePasteChainId,o=n[ia("0x50")]()[ia("0x24")]((t=>t[ia("0x7c")]&&t[ia("0x66")]&&t[ia("0x66")][ia("0x39")]==r));o[ia("0x0")]&&e[ia("0x46")]()[ia("0x0")]!=o[ia("0x0")]&&o.reduce(((t,e)=>(t.next=e,e.previous=t,e)))};function l(t,e=!0){const{id:r}=n._splitMarkerName(t[ia("0x96")]),o=["ck-suggestion-marker",ia("0x73")],i=n[ia("0x29")][ia("0x1c")](t[ia("0x96")]);return i&&o.push("ck-suggestion-marker--active"),{classes:o,attributes:{"data-suggestion":r},priority:i&&e?3010:3e3}}n.on(ia("0x4e"),c,{priority:"high"}),n.on("suggestionUnloaded",c,{priority:"high"}),t.model[ia("0x84")][ia("0x74")]((()=>{let e=!1;const r=Array[ia("0x5e")](t[ia("0x5c")][ia("0x84")][ia("0x94")].getChangedMarkers());for(const{name:o,data:i}of r){const{group:r,type:s,id:x}=n[ia("0x8c")](o);if(ia("0x95")!=r||ia("0x3e")!=s||i[ia("0x9e")])continue;if(!n[ia("0x52")](x))continue;const a=n[ia("0x4")](x)[ia("0x55")](),c=t[ia("0x8d")].get(ia("0x2")).me;for(const t of n[ia("0x50")]())if(t[ia("0x7c")]&&t[ia("0x1e")]==c&&ia("0xd")==t[ia("0x82")]&&ia("0x60")==t.subType&&t[ia("0x55")]()[ia("0x4d")]((t=>a[ia("0x81")]((e=>e[ia("0x35")](t,!0))))))for(const n of t[ia("0x46")]())n[ia("0x7c")]&&(n[ia("0x79")](),e=!0)}return e})),t[ia("0x5c")][ia("0x84")].registerPostFixer((e=>{const r=t[ia("0x4b")][ia("0x5d")](ia("0x45"));if(!r||!r._createdBatches[ia("0x4a")](e[ia("0x68")]))return!1;let o=!1;const i=t[ia("0x8d")].get(ia("0x2")).me,s=t[ia("0x5c")][ia("0x84")][ia("0x94")][ia("0x33")](),x=Array[ia("0x5e")](t.model[ia("0x84")][ia("0x94")][ia("0x8b")]())[ia("0x24")]((({name:t,data:e})=>{const{group:r,subType:o,authorId:s}=n[ia("0x8c")](t);return"suggestion"==r&&ia("0x30")==o&&s==i.id&&!e[ia("0x9e")]}));for(const t of s){if(ia("0x31")!=t.type||ia("0x2b")!=t.name||1!=t[ia("0x0")])continue;const n=e.createRange(t[ia("0xb")],t[ia("0xb")][ia("0x6c")](1));if(!x.find((({data:t})=>t[ia("0x18")][ia("0x1a")](n))))for(const{name:t,data:r}of x)if(n[ia("0x35")](r[ia("0x18")])){e[ia("0x2f")](t,{range:n}),o=!0;break}}return o})),t[ia("0x5c")].document[ia("0x74")]((e=>{let r=!1;const o=t[ia("0x8d")][ia("0x5d")](ia("0x2")).me,i=n.getSuggestions()[ia("0x24")]((t=>t[ia("0x7c")]&&t[ia("0x1e")]==o)),s=new Set,x=new Set;for(const t of i)if("tablePaste"==t[ia("0xc")])for(const e of t[ia("0x7d")]()){const n=e.getRange()[ia("0x14")]();if(n)if(n.is(ia("0x9b"),"tableCellSuggestion")&&ca(n)){t.removeMarker(e[ia("0x9")]),s[ia("0x49")](n),r=!0;const o=n[ia("0x4c")],i=n[ia("0x42")],a=o&&o.is(ia("0x9b"),"tableCellSuggestion"),c=i&&i.is(ia("0x9b"),ia("0x2b"));a&&!s[ia("0x4a")](o)&&x[ia("0x49")](o),c&&!s[ia("0x4a")](i)&&x[ia("0x49")](i)}else n.is(ia("0x9b"),ia("0x65"))&&n.isEmpty&&(t[ia("0x28")](e[ia("0x9")]),r=!0)}else if(ia("0x60")==t.subType){if(!t[ia("0x66")]||!t[ia("0x66")][ia("0x39")])continue;const e=t.attributes[ia("0x5a")];if(e&&Object[ia("0x4f")](e)[ia("0x0")])continue;const n=t[ia("0x66")][ia("0x39")];let o=!0,s=!0;for(const e of i)if(e[ia("0xc")]&&e[ia("0xc")][ia("0x9f")](ia("0x30"))){if(!e[ia("0x66")][ia("0x39")]){s=!1;break}if(e.id!=t.id&&e.attributes[ia("0x39")]==n){o=!1;break}}s&&o&&(t[ia("0x6")](),r=!0)}for(const t of s)e[ia("0x6a")](t);for(const t of x)e[ia("0x86")](t);return r})),t[ia("0x9a")][ia("0x71")](ia("0x8f"))[ia("0x9d")]({model:ia("0x2d"),view:(t,e)=>l(t),converterPriority:ia("0x38")}),t[ia("0x9a")][ia("0x71")](ia("0x88"))[ia("0x9d")]({model:ia("0x2d"),view:(t,e)=>e[ia("0xa2")][ia("0x69")]?l(t,!1):null,converterPriority:ia("0x38")});const u=t.editing.view;this[ia("0x98")](u[ia("0x84")],ia("0x5f"),((t,e)=>{const n=[];for(const t of u[ia("0x9c")](e.content).getItems())t.is(ia("0x9b"),ia("0x3b"))&&n[ia("0x91")](t);u[ia("0x11")]((t=>{for(const e of n)t[ia("0x67")](t[ia("0x9c")](e),t[ia("0x75")](e)),t.remove(e)}))}))}}function ca(t){if(t[ia("0xa")])return!0;const e=t[ia("0x47")](0);return e.is(ia("0x9b"),"paragraph")&&e[ia("0xa")]}function la(t,e={},n){for(const{isAnchor:r,cellHeight:o,cellWidth:i}of n[ia("0x23")](t,{includeAllSlots:!0,...e}))if(!r||1!=o||1!=i)return!1;return!0}const ua=["getTableColumnsWidths","accept","handleSuggestionDescription","*Format:* resize table","tableWidth","getColumnGroupElement","_descriptionFactory","discard","getSelectedElement","bind","plugins","has","commandParams","registerDescriptionCallback","formatGroupId","_suggestionFactory","editor","author","subType","resizeTable","model","columnWidths","format","registerCustomCallback","formatBlock","getSuggestionCallback","resizeTableWidth","type","TrackChangesEditing","change","table","formatInline","Users","get","handleResizeTableWidthCommand","enableCommand"];var da,ga;da=ua,ga=243,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{afterInit(){if(!this[fa("0x19")][fa("0x13")][fa("0x14")]("TableColumnResizeEditing"))return;const t=this[fa("0x19")][fa("0x13")][fa("0x6")]("TrackChangesEditing");t[fa("0x8")](fa("0x23"),this[fa("0x7")][fa("0x12")](this)),t[fa("0x18")][fa("0x20")](fa("0x21"),"resizeTable",fa("0xa"),t[fa("0x18")][fa("0x22")](fa("0x21"),null,"discard")),t[fa("0x18")].registerCustomCallback(fa("0x21"),fa("0x1c"),"discard",t[fa("0x18")].getSuggestionCallback("formatBlock",null,fa("0xa"))),t[fa("0xf")][fa("0x16")](this[fa("0xb")][fa("0x12")](this))}handleResizeTableWidthCommand(t,e){const n=this[fa("0x19")][fa("0x13")][fa("0x6")](fa("0x1")),r=this[fa("0x19")][fa("0x13")][fa("0x6")]("TableColumnResizeEditing"),o=e[fa("0x3")]||this[fa("0x19")][fa("0x1d")].document.selection[fa("0x11")]();this[fa("0x19")][fa("0x1d")][fa("0x2")]((()=>{const i=r[fa("0xe")](o);let s=i?r[fa("0x9")](i):null,x=o.getAttribute("tableWidth")||null;const a=e[fa("0xd")]||x,c=e[fa("0x1e")]||s,l=this[fa("0x19")][fa("0x13")].get(fa("0x5")).me;for(const t of n.getSuggestions()){const e=t.getContainedElement();if(fa("0x1c")===t[fa("0x1b")]&&e===o){t[fa("0x1a")]!==l&&t[fa("0x10")]();const e=t.data[fa("0x15")];x=e[0].tableWidth,s=e[0][fa("0x1e")];break}}t({table:o,tableWidth:a,columnWidths:c}),n.markBlockFormat(o,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x1c")},[],fa("0x1c"))}))}[fa("0xb")](t){if("formatBlock"!=t[fa("0x0")]&&fa("0x4")!=t[fa("0x0")])return;const{data:e}=t;if(e&&"resizeTable"===e[fa("0x17")]){const t=fa("0xc");return{type:fa("0x1f"),content:Jr(this[fa("0x19")].locale,t)}}}}const ha=["insertTemplate","has","plugins","get","TrackChangesEditing","Template","enableCommand"];var ba,pa;ba=ha,pa=342,function(t){for(;--t;)ba.push(ba.shift())}(++pa);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{afterInit(){const t=this.editor;t.plugins[Ea("0x2")](Ea("0x6"))&&t[Ea("0x3")][Ea("0x4")](Ea("0x5"))[Ea("0x0")](Ea("0x1"))}}const Ta=["enableCommand","_descriptionFactory","editor","afterInit","registerElementLabel","insertTableOfContents","plugins","TrackChangesEditing","get","commands"];var ya,Ca;ya=Ta,Ca=270,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x3")](){const t=this[Aa("0x2")];if(!t[Aa("0x9")][Aa("0x8")](Aa("0x5")))return;t[Aa("0x6")][Aa("0x8")](Aa("0x7"))[Aa("0x0")](Aa("0x5"));const e=t.plugins[Aa("0x8")]("TrackChangesEditing"),n=t.locale;e[Aa("0x1")][Aa("0x4")]("tableOfContents",(t=>Jr(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const Ia=["newRange","model","differ","isEqual","locale","nodeBefore","from","end","TrackChangesEditing","getNearestSelectionRange","isCollapsed","plugins","ELEMENT_TITLE","start","get","Title","removeMarker","title-content","element","forward","registerPostFixer","document","schema","suggestion","has","registerElementLabel","afterInit"];var Ra,Sa;Ra=Ia,Sa=352,function(t){for(;--t;)Ra.push(Ra.shift())}(++Sa);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{[va("0x19")](){const t=this.editor;if(!t.plugins[va("0x17")](va("0xe")))return;const e=t[va("0xa")][va("0xd")](va("0x7"));e._descriptionFactory[va("0x18")](va("0x10"),(()=>Jr(t[va("0x3")],va("0xb")))),t[va("0x0")][va("0x14")][va("0x13")]((n=>{let r=!1;const o=Array[va("0x5")](t[va("0x0")][va("0x14")][va("0x1")].getChangedMarkers());for(const{name:i,data:s}of o){const{group:o}=e._splitMarkerName(i);if(va("0x16")!==o||!s[va("0x1a")])continue;const x=s.newRange,a=x.end[va("0x4")];if(!a||!a.is(va("0x11"),"title-content"))continue;if(!x[va("0xc")].isTouching(x[va("0x6")]))continue;const c=t[va("0x0")][va("0x15")][va("0x8")](x[va("0x6")],va("0x12"));if(c&&c[va("0x9")]){const t=n.createRange(x.start,c.start);t[va("0x2")](x)||(n.updateMarker(i,{range:t}),r=!0)}r||(n[va("0xf")](i),r=!0)}return r}))}}const La=["editor","get","undo","UndoEditing","enableCommand","plugins","TrackChangesEditing"];var Ma,wa;Ma=La,wa=345,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{afterInit(){const t=this[Oa("0x5")],e=t.plugins[Oa("0x6")](Oa("0x4"));t[Oa("0x3")].has(Oa("0x1"))&&(e[Oa("0x2")](Oa("0x0")),e.enableCommand("redo"))}}const Da=["requires","TrackChangesEditing","toggleTableCaption","plugins","enableCommand","has","editor","get","afterInit"];var Ba,Pa;Ba=Da,Pa=169,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("0x2")](){return[zx]}[Ua("0x1")](){const t=this[Ua("0x8")];t[Ua("0x5")][Ua("0x7")]("TableCaptionEditing")&&t[Ua("0x5")][Ua("0x0")](Ua("0x3"))[Ua("0x6")](Ua("0x4"))}}const Ga=["model","get","tableCellBorderWidth","getAttribute","getSuggestions","tableCellWidth","tableCellVerticalAlignment","subType","document","format","tableCellHeight","editor","_suggestionFactory","change","tableBackgroundColor","discard","enableCommand","join","*Format:* change table cell properties","batch","tableAlignment","tableHeight","TablePropertiesEditing","getSelectionAffectedTableCells","locale","commandParams","_getSuggestion","table","tableCellHorizontalAlignment","_handlePropertyChange","tableCellProperties","TrackChangesEditing","tableWidth","removeAttribute","registerCustomCallback","accept","registerDescriptionCallback","TrackChangesTableProperties","formatBlock","tableCellBorderStyle","tableProperties","handleSuggestionDescription","getFirstPosition","selection","getContainedElement","tableBorderColor","plugins","setAttribute","has","handleDiscardAction","tableCellPadding","getSuggestionCallback"];var Va,Ha;Va=Ga,Ha=283,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("0x11")]=[za("0x16"),"tableBorderStyle","tableBorderWidth",za("0x31"),za("0x9"),za("0x32"),za("0x2b")],this[za("0x7")]=["tableCellBorderColor",za("0x10"),za("0x1f"),za("0x1b"),za("0x22"),za("0x27"),"tableCellBackgroundColor",za("0x5"),za("0x23")]}static get pluginName(){return za("0xe")}afterInit(){const t=this[za("0x28")][za("0x17")][za("0x1e")](za("0x8"));if(this[za("0x28")][za("0x17")][za("0x19")](za("0x33"))){for(const e of this[za("0x11")])t[za("0x2d")](e,((t,n)=>{const r=this[za("0x28")][za("0x1d")][za("0x25")][za("0x14")][za("0x13")]().findAncestor(za("0x4"));this[za("0x6")](e,[r],this[za("0x11")],za("0x11"),t,n)}));t._suggestionFactory[za("0xb")]("formatBlock",za("0x11"),za("0xc"),t._suggestionFactory[za("0x1c")](za("0xf"),null,"discard")),t[za("0x29")][za("0xb")](za("0xf"),za("0x11"),za("0x2c"),((t,e)=>this[za("0x1a")](this[za("0x11")],t,e))),t._suggestionFactory[za("0xb")](za("0xf"),za("0x11"),za("0x2e"),(()=>!1))}if(this[za("0x28")][za("0x17")][za("0x19")]("TableCellPropertiesEditing")){for(const e of this[za("0x7")])t[za("0x2d")](e,((t,n)=>{const r=this[za("0x28")][za("0x17")][za("0x1e")]("TableUtils")[za("0x0")](this.editor[za("0x1d")].document[za("0x14")]);this[za("0x6")](e,r,this[za("0x7")],"tableCellProperties",t,n)}));t[za("0x29")][za("0xb")](za("0xf"),za("0x7"),za("0xc"),t._suggestionFactory.getSuggestionCallback("formatBlock",null,"discard")),t._suggestionFactory[za("0xb")](za("0xf"),za("0x7"),za("0x2c"),((t,e)=>this[za("0x1a")](this[za("0x7")],t,e))),t[za("0x29")][za("0xb")](za("0xf"),za("0x7"),"join",(()=>!1))}t._descriptionFactory[za("0xd")]((t=>this.handleSuggestionDescription(t)))}_handlePropertyChange(t,e,n,r,o,i){const s=this[za("0x28")][za("0x17")].get(za("0x8"));this[za("0x28")][za("0x1d")].enqueueChange(i[za("0x30")],(()=>{for(const t of e)if(this[za("0x3")](t,r))o(i);else{const e={};for(const r of n){const n=t[za("0x20")](r);void 0!==n&&(e[r]=n)}o(i),s.markBlockFormat(t,{commandParams:[e]},[],r)}}))}[za("0x1a")](t,e,n){const r=e[0].start.nodeAfter,o=n[za("0x2")][0];this[za("0x28")][za("0x1d")][za("0x2a")]((e=>{for(const n of t)void 0!==o[n]?e[za("0x18")](n,o[n],r):e[za("0xa")](n,r)}))}[za("0x12")](t){if(t.data)switch(t[za("0x24")]){case za("0x11"):return{type:"format",content:Jr(this[za("0x28")][za("0x1")],"*Format:* change table properties")};case za("0x7"):return{type:za("0x26"),content:Jr(this.editor[za("0x1")],za("0x2f"))}}}_getSuggestion(t,e){const n=this.editor.plugins[za("0x1e")](za("0x8"));for(const r of n[za("0x21")]({skipNotAttached:!0})){const n=r[za("0x15")]();if(r.subType===e&&n===t)return r}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=ot?ot.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,r,o,i){var s=-1,x=e.length;for(r||(r=tc),i||(i=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,o,i):sn(i,a):o||(i[i.length]=a)}return i};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const rc=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 oc=Math.max;const ic=function(t,e,n){return e=oc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=oc(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];o=-1;for(var x=Array(e+1);++o<e;)x[o]=r[o];return x[e]=n(s),rc(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 r=ac(),o=16-(r-n);if(n=r,o>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 r=!1;e=ur(e,(function(e){return e=hr(e,t),r||(r=e.length>1),e})),ie(t,dn(t),n),r&&(n=tr(n,7,Ja));for(var o=e.length;o--;)Wr(n,e[o]);return n})),uc=["formatBlock","getRanges","isIntersecting","ck-suggestion-marker-formatBlock","multipleBlocks","_isBlockAttribute","$graveyard","markers","_SUGGESTION_ANNOUNCEMENT","reconvertMarker","clear","previous","addMarker:suggestion","formatBlock:join","_defaultCallbacks","trackChanges.trackFormatChanges","isUndo","for","notReady","nodeBefore","suggestionUnloaded","unbindElementFromMarkerName","isRemovable","markerNameToElements","options","setSelection","addComment","markerToData","differ","markDeletion","acceptSuggestion","insertion:accept","enableCommand","markMultiRangeInsertion","position","addMarker","_model","removeMarkers","oldValue","getChanges","key","backward","isInsideObject","ready","insert","PendingActions","next","_addSuggestionMarker","schema","$marker","createElement","start","getWalker","_recordAttributeSuggestionsFromVersion","_suggestionFactory","acceptAllSuggestions","_reduceSuggestionAttributeRange","_registerInlineAttribute","markAttributeChange","toViewElement","CommentsRepository","getCustomProperty","markInsertion","always","_getExternalAuthor","keys","listenTo","PENDING_ACTION_SUGGESTION","suggestion","formatBlock:accept","ck-suggestion-marker-","getUser","_isDataLoaded","formatInline","set","_commentsRepository","config","_getSuggestionData","high","name","stopListening","getNearestSelectionRange","every","getShiftedBy","_rangeIsInLocalUserInsertion","markerName","formatInline:join","_saved","getSuggestionCallback","setAttribute","getRange","insertion:join","requires","createPositionBefore","elementEnd","isIntersectingWithRange","locale","_joinWithAdjacentSuggestions","getItems","error-saving-suggestion-data-suggestion-discarded","head","splice","createRangeIn","documentSelection","type","_updateSuggestionData","oldName","root","ariaLiveAnnouncer","_initAriaMarkerChangeAnnouncements","parent","updateSuggestion","commands","deletion:chain","_createSuggestion","_findSuggestions","_isForcedDefaultExecutionBlock","rootName","isEqual","split","remove","hasCommentThread","newRange","createPositionAfter","toJSON","pop","attributes","announce","ck-suggestion-marker--active","normal","define","pluginName","trackChanges.mergeNestedSuggestions","meta","chain","markInlineFormat","multi","formatBlock:","removeMarker","getIntersection","_addThreadToSuggestion","enqueueChange","from","_registerBlockAttribute","_suggestionState","consume","_reduceExistingSuggestions","track-changes-suggestion-not-found","trackChanges","creator","consumable","suggestionLoaded","isAtStart","getOperations","createSelection","addMarker:suggestion:attribute","discardAllSuggestions","formatInline:accept","_setSuggestionRange","push","track-changes-command-not-found","element","_setSuggestionData","_customCallbacks","insertContent","attribute:","getSuggestion","comments","update:suggestion","addSuggestion","deletion:accept","formatInline:","addMarker:suggestion:formatBlock","external:","_editor","ck-suggestion-marker-formatInline","getAllAdjacentSuggestions","track-changes-user-not-found","filter","howMany","refresh","changeAttribute","splitPosition","getMarkers","forceDefaultExecution","fromCharCode","fire","newName","activeMarkers","subType","isLimit","writer","getFirstMarker","isAfter","removeMarker:suggestion:attribute","insertion:discard","elementToElement","isInContent","removeAttribute","insertion","createdAt","containsRange","substring","removeComment","low","document","deletion:join","plugins","tablePasteChainId","track-changes-adapter-already-set","suggestionChanged","value","containsPosition","mapper","after","_mergeNestedSuggestions","has","isNextTo","deletion:discard","isTouching","isOwn","getDifference","end","collaboration.channelId","containsRangeInObject","addSuggestionData","nodeAfter","getContainedElement","markMultiRangeDeletion","model","some","sort","createPositionAt","detach","authorName","lowest","item","before","$text","formatBlock:discard","isArray","_registerDefaultCallbacks","unbind","skipNestingCheck","change","markerReady","length","_joinSuggestions","rename","default","stop","rejected","execute","isBlock","isMultiRange","isAtEnd","targetPosition","_enabledCommands","suggestion:","_cutOutSuggestionMarker","conversion","startsWith","fetchCommentThread","dataToMarker","return","buildSuggestion","removeClass","suggestion-type","dataDowncast","moveTargetPosition","_blockAttributeKeys","getLastMatchingPosition","createRange","LEAVE","attributeOldValue","newValue","showSuggestionHighlights","acceptSelectedSuggestions","never","format","editing","_recordAttributeChanges","_trackFormatChanges","groupId","widget","author","forEach","enableReadOnlyMode","ck-suggestion-marker","markMultiRangeBlockFormat","isObject","$elementName","deletion:","catch","_descriptionFactory","getAttribute","elementStart","map","addClass","registerPostFixer","updateMarker","markerToHighlight","change:data","_refreshSuggestionsChain","attribute:join","_onDiscard","editor","getCommentThread","addHighlight","assign","markBlockFormat","delete","concat","rethrowUnexpectedError","_processAttributeSuggestions","_handleNewSuggestionMarker","size","bindElementToMarker","track-changes-suggestion-data-mismatch","attribute:discard","editingDowncast","isCollapsed","suggestion:attribute:","formatGroupId","discardSelectedSuggestions","getSuggestions","fromRange","hasComments","warn","deleteContent","removed","marker-count","isBefore","@external","hasSuggestion","add","highest","_inlineAttributeKeys","applyOperation","_refreshAttributeSuggestionsChain","_getAuthorFromId","version","commandName","authoredAt","getFirstRange","insertion:","_suggestions","trackChangesCommand","oldRange","change:_saved","then","_processAttributeChanges","registerCustomCallback","join","addAttribute","change:activeMarkers","find","addRange","accept","batch","formatInline:discard","unshift","_getMarkerAnnouncementText","deletion","_checkSuggestionCorrectness","get","adapter","_splitMarkerName","includes","addMarkerName","history","formatInline:chain","Users","_adapter","track-changes-enable-command-twice","_breakSuggestionMarker","discard","range","upcast","data","TrackChangesEditing","commentThread","attribute"];var dc,gc;dc=uc,gc=451,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("0x18")](){return["CommentsRepository",i.Users,t.PendingActions,ao,fo,_o,ko,Lo,Do,Vo,ti,ii,li,hi,Ti,Ri,Mi,Pi,Hi,Xi,Qi,os,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,Fa]}static get[fc("0x3f")](){return fc("0x138")}constructor(t){function e(t){return t[fc("0xe5")]((t=>String[fc("0x75")](t)))[fc("0x11d")]("")}super(t),this._recordAttributeSuggestionsFromVersion=null,this[fc("0x6")](fc("0x78"),[]),this.on(fc("0x11f"),((e,n,r,o)=>{this[fc("0x15f")].change((()=>{for(const e of[...o,...r])this[fc("0x15f")][fc("0x142")][fc("0x94")](e)&&t[fc("0xd4")][fc("0x144")](e)}))})),this[fc("0xe2")]=new ro(this[fc("0xee")][fc("0xa1")][fc("0x16b")],this.editor.locale),this[fc("0x131")]=null,this._suggestionFactory=new bc(this[fc("0xee")]),this._suggestions=new Map,this[fc("0x7")]=t[fc("0x8b")][fc("0x129")](fc("0x177")),this[fc("0xbd")]=new Set,this[fc("0x15f")]=this[fc("0xee")][fc("0xa1")],this._suggestionState=new WeakMap,this[fc("0x30")]=!1,this[fc("0xca")]=new Set([fc("0xdf")]),this._inlineAttributeKeys=new Set,t.config[fc("0x3e")](fc("0x14a"),fc("0xb5")),this[fc("0xd6")]=t[fc("0x8")].get(fc("0x14a")),t.config[fc("0x3e")](fc("0x40"),!0),this[fc("0x93")]=t[fc("0x8")][fc("0x129")](fc("0x40")),this.trackChangesCommand=new d(t,this[fc("0xbd")]),this[fc("0x29")](),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,52,52,52])}init(){const t=this[fc("0xee")],n=(t,e)=>{if(fc("0x13a")!=t)return fc("0x2")+t;const n=e.split("|")[0];return this[fc("0x140")](n)?fc("0x13e"):fc("0x6b")};t.conversion[fc("0x14c")]("editingDowncast")[fc("0xe9")]({model:fc("0x0"),view:t=>{const{id:e,type:r,subType:o}=this._splitMarkerName(t[fc("0x11")]),i=[fc("0xdc"),n(r,o)];let s=3e3;return this[fc("0x78")][fc("0x12c")](t[fc("0x11")])&&(i.push(fc("0x3c")),s=3010),fc("0x127")==r&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t.conversion.for(fc("0xc8"))[fc("0x10b")]((e=>{e.on(fc("0x147"),((e,n,r)=>{if(!r[fc("0x153")].showSuggestionHighlights)return;const o=n[fc("0xa8")];if(!o)return;const i=r[fc("0x91")][fc("0x176")](o);t.model[fc("0x16b")][fc("0xde")](o)&&i&&!i.getCustomProperty(fc("0xd8"))&&i.is("containerElement")&&(0,x.toWidget)(i,r[fc("0x7b")])}),{priority:fc("0xa")})})),t[fc("0xc0")][fc("0x14c")](fc("0xc8")).markerToHighlight({model:"suggestion",view:(t,e)=>{if(!e.options.showSuggestionHighlights)return null;const{type:r,subType:o}=this._splitMarkerName(t.markerName);return{classes:[fc("0xdc"),n(r,o)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,o,i)=>{if(!o.item)return;const{id:s}=this[fc("0x12b")](o[fc("0x11")]);if(n){const t=Sc(this[fc("0x116")].get(s));if(!this._isBlockAttribute(t))return}if(o[fc("0xa8")].is("selection"))return void i.consumable[fc("0x4d")](o[fc("0xa8")],r[fc("0xb")]);const x=i.mapper[fc("0x176")](o.item);if(o[fc("0xa8")].is(fc("0x5d"))&&t.model[fc("0x16b")][fc("0xb9")](o[fc("0xa8")])&&!x[fc("0x178")](fc("0xf0"))){i[fc("0x7b")][fc("0xe6")]([fc("0xdc"),fc("0x13e")],x),i[fc("0x7b")][fc("0x15")]("data-suggestion",s,x),i.mapper[fc("0xf9")](x,o.markerName),e&&(this[fc("0x78")][fc("0x12c")](o.markerName)?i[fc("0x7b")][fc("0xe6")]("ck-suggestion-marker--active",x):i.writer.removeClass("ck-suggestion-marker--active",x));for(const e of t.model[fc("0x22")](o[fc("0xa8")])[fc("0x1e")]())i[fc("0x52")][fc("0x4d")](e,r[fc("0xb")]);i[fc("0x52")][fc("0x4d")](o[fc("0xa8")],r[fc("0xb")])}};t[fc("0xc0")][fc("0x14c")](fc("0xc8"))[fc("0x10b")]((t=>{t.on(fc("0x68"),((t,e,n)=>{n.options[fc("0xd0")]&&r({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x10c")})})),t.conversion.for(fc("0xc8")).add((t=>{t.on(fc("0x57"),((t,e,n)=>{n[fc("0x153")][fc("0xd0")]&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x10c")})})),t[fc("0xc0")].for(fc("0xc8"))[fc("0x156")]({model:fc("0x0"),view:(t,e)=>e.options[fc("0xd0")]?null:{group:fc("0x0"),name:t.substr(11)}}),t.conversion[fc("0x14c")](fc("0x136"))[fc("0x80")]({view:{name:fc("0x0"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0xbe")+t.getAttribute(fc("0xc7"))+":"+t[fc("0xe3")]("id");return t[fc("0xe3")](fc("0x107"))&&(n+=":"+t[fc("0xe3")](fc("0x107"))),e[fc("0x16d")](fc("0x16c"),{"data-name":n})}}),t.conversion[fc("0x14c")](fc("0x136"))[fc("0xc3")]({view:fc("0x0")}),t[fc("0xc0")][fc("0x14c")](fc("0xfc"))[fc("0x10b")]((t=>{t.on(fc("0x68"),r(),{priority:fc("0xa")})})),t[fc("0xc0")][fc("0x14c")](fc("0xfc"))[fc("0x10b")]((t=>{t.on(fc("0x57"),r({isAttributeSuggestion:!0}),{priority:"high"})})),t.conversion[fc("0x14c")](fc("0xfc"))[fc("0x10b")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const r=n[fc("0x91")].markerNameToElements(e[fc("0x11")]);if(r)for(const t of r)t[fc("0x178")](fc("0xf0"))||(n.writer[fc("0xc6")]([fc("0xdc"),fc("0x13e"),"ck-suggestion-marker--active"],t),n[fc("0x7b")].removeAttribute("data-suggestion",t),n[fc("0x91")][fc("0x150")](t,e.markerName))}),{priority:fc("0xa")})})),t.conversion[fc("0x14c")](fc("0xfc"))[fc("0x10b")]((t=>{t.on(fc("0x7e"),((t,e,n)=>{const r=n[fc("0x91")][fc("0x152")](e.markerName);if(!r)return;const{id:o}=this._splitMarkerName(e[fc("0x11")]),i=Sc(this[fc("0x116")][fc("0x129")](o));if(this._isBlockAttribute(i))for(const t of r)t[fc("0x178")](fc("0xf0"))||(n[fc("0x7b")][fc("0xc6")]([fc("0xdc"),fc("0x13e"),fc("0x3c")],t),n[fc("0x7b")][fc("0x82")]("data-suggestion",t),n.mapper[fc("0x150")](t,e[fc("0x11")]))}),{priority:fc("0xa")})})),t[fc("0xa1")][fc("0x89")][fc("0xe7")]((e=>{let n=!1;const r=Array[fc("0x4a")](t[fc("0xa1")][fc("0x89")][fc("0x157")].getChangedMarkers()),o=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this[fc("0x12b")](x);if(fc("0x0")!==r)continue;const d=this[fc("0x116")][fc("0x129")](u);if(null!=a[fc("0x36")]){"formatInline"==c&&(n=n||_c(a[fc("0x36")],x,e,t.model.schema));const r=fc("0x13a")==c&&this._isBlockAttribute(l[fc("0x33")]("|")[0]);if(a[fc("0x36")][fc("0xfd")]||fc("0x141")==a[fc("0x36")][fc("0x27")].rootName||fc("0x13b")==c&&!yc(a[fc("0x36")])||r&&!yc(a.newRange)||fc("0x127")==c&&(Ec(s=a.newRange)||(i=s)[fc("0x16e")].parent==i.end[fc("0x14e")]&&i.start[fc("0xbb")]))e.removeMarker(x),n=!0;else{if(!d||!d[fc("0x81")])continue;o[fc("0x10b")](d)}}}var i,s;return o[fc("0xf8")]>0&&(n=!!this[fc("0x1d")](o)||n),n})),t.model.document[fc("0xe7")]((e=>{let n=!1;for(const r of t[fc("0xa1")].document[fc("0x157")][fc("0x162")]())if(fc("0x167")==r.type)for(const r of this[fc("0x116")].values()){if(r[fc("0xba")]||!r[fc("0x81")])continue;const o="formatBlock"==r.type,i=Sc(r),s=i&&this._isBlockAttribute(i);if(!o&&!s)continue;const x=r[fc("0x114")]();if(x[fc("0x16e")][fc("0x2a")]!=x[fc("0x9a")][fc("0x2a")]&&!x[fc("0x9a")][fc("0xbb")]){const o=t[fc("0xa1")].createPositionAt(x.start.nodeAfter,fc("0x9a")),i=t[fc("0xa1")][fc("0xcc")](x.start,o);e[fc("0xe8")](r[fc("0x7c")](),{range:i}),n=!0}}return n})),t[fc("0xa1")][fc("0x89")][fc("0xe7")]((t=>this[fc("0x11b")](t))),t.model[fc("0x89")].registerPostFixer((t=>!t[fc("0x123")].isLocal&&this[fc("0xf6")](t))),t[fc("0xa1")][fc("0x142")].on(fc("0x64"),((t,e,n)=>{if(null==n){const{id:t}=this[fc("0x12b")](e[fc("0xb")]),n=this[fc("0x116")][fc("0x129")](t);n&&n[fc("0x12d")](e[fc("0xb")])}})),t[fc("0xa1")][fc("0x89")].on(fc("0xea"),(()=>{const e=Array[fc("0x4a")](t[fc("0xa1")][fc("0x89")][fc("0x157")].getChangedMarkers())[fc("0x6e")]((t=>fc("0x0")===this[fc("0x12b")](t[fc("0xb")]).group));if(0===e[fc("0xb2")])return;e.sort(((t,e)=>{const n=t[fc("0x137")][fc("0x118")],r=e[fc("0x137")].oldRange;return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n[fc("0x16e")][fc("0x108")](r[fc("0x16e")])?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:o}of e){const{id:e}=this[fc("0x12b")](t);if(null===o.oldRange){const e=this[fc("0xf7")](t);r[fc("0x10b")](e)}else{const t=this[fc("0x116")][fc("0x129")](e);null!==o.newRange||t.isInContent?(n.add(t[fc("0x20")]),r[fc("0x10b")](t)):this._removeSuggestion(t)}}r[fc("0xf8")]>0&&this._refreshSuggestionsChain(r);for(const t of n)this[fc("0x76")](fc("0x8e"),t)})),t.model.on(fc("0x10e"),((e,n)=>{const r=n[0];if(!this[fc("0x116")][fc("0xf8")])return;if(!r.isDocumentOperation)return;if(r[fc("0x123")][fc("0x14b")]||!r[fc("0x123")].isLocal)return;let o,i;switch(r[fc("0x24")]){case fc("0x167"):o=t.model[fc("0xa4")](r[fc("0x15d")]),i=o[fc("0xf")](r[fc("0x6f")]);break;case fc("0x33"):o=t[fc("0xa1")][fc("0xa4")](r[fc("0x72")]),i=t[fc("0xa1")][fc("0xa4")](r[fc("0xc9")]);break;case"move":o=t[fc("0xa1")][fc("0xa4")](r[fc("0xbc")]),i=o.getShiftedBy(r[fc("0x6f")]);break;default:return}const s=t[fc("0xa1")][fc("0xcc")](o,i);t.model.change((()=>{for(const{suggestion:t,meta:e}of this[fc("0x2f")](s)){if(t.isMultiRange)continue;if(fc("0x5")==t[fc("0x24")])continue;const n=Sc(t);if(n&&this._isBlockAttribute(n)&&"split"!=r[fc("0x24")])continue;const x=t[fc("0x137")]&&t.data.multipleBlocks;(fc("0x13b")!=t[fc("0x24")]||fc("0x33")==r[fc("0x24")]&&!x)&&(e.containsRangeInObject||fc("0x83")==t[fc("0x24")]&&e.isOwn||t[fc("0x114")]().containsRange(s)&&this[fc("0x133")](t,o,i))}}))}),{priority:fc("0xa7")}),t.model.on(fc("0x105"),((e,n)=>{const r=n[0],o=n[1];if(o&&o[fc("0x74")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this.trackChangesCommand[fc("0x8f")])return;if(r[fc("0xfd")])return;const i=t.model[fc("0x16b")],{start:s,end:x}=r[fc("0x114")](),a=s[fc("0x9e")]&&i[fc("0x7a")](s.nodeAfter)?null:i.getNearestSelectionRange(s,"forward"),c=x[fc("0x14e")]&&i[fc("0x7a")](x[fc("0x14e")])?null:i[fc("0xd")](x,fc("0x164")),l=t[fc("0xa1")][fc("0xcc")](a?a[fc("0x16e")]:s,c?c[fc("0x9a")]:x);t[fc("0xa1")][fc("0xb0")]((e=>{this[fc("0x158")](l);const n=t[fc("0xa1")][fc("0x16b")].getNearestSelectionRange(l.start);r.is(fc("0x23"))?e[fc("0x154")](n):r.setTo(n)})),e[fc("0xb6")]()}),{priority:e.priorities[fc("0x3d")]+10}),t[fc("0xa1")].on(fc("0x60"),((e,n)=>{const r=n[n.length-1];r&&r[fc("0x74")]||this[fc("0x30")]||this.trackChangesCommand[fc("0x8f")]&&(t[fc("0xa1")][fc("0xb0")]((()=>{let r=t[fc("0xa1")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e[fc("0xc4")]=r.clone();const o=r.end[fc("0x14e")],i=t[fc("0xa1")][fc("0x16b")];o&&i[fc("0xb9")](o)&&!i.isObject(o)&&(r=t[fc("0xa1")][fc("0xcc")](r.start,t.model[fc("0xa4")](o,fc("0x9a")))),this[fc("0x179")](r)})),e.stop())}),{priority:fc("0xa")}),this[fc("0xee")][fc("0x2c")][fc("0x10b")]("trackChanges",this.trackChangesCommand),this[fc("0x15b")]("trackChanges");const o=new b(t,this[fc("0x116")]);t[fc("0x2c")][fc("0x10b")](fc("0x159"),o),this[fc("0x15b")](fc("0x159"));const i=new y(t,this[fc("0x116")]);t[fc("0x2c")][fc("0x10b")]("discardSuggestion",i),this[fc("0x15b")]("discardSuggestion"),t[fc("0x2c")][fc("0x10b")](fc("0x172"),new F(t,o,this[fc("0x116")])),this[fc("0x15b")](fc("0x172")),t[fc("0x2c")].add(fc("0x58"),new F(t,i,this[fc("0x116")])),this[fc("0x15b")]("discardAllSuggestions"),t[fc("0x2c")][fc("0x10b")](fc("0xd1"),new j(t,o,this[fc("0x116")])),this[fc("0x15b")](fc("0xd1")),t[fc("0x2c")][fc("0x10b")](fc("0x100"),new j(t,i,this[fc("0x116")])),this.enableCommand(fc("0x100"));const s=t[fc("0x8b")][fc("0x129")](fc("0x177"));this[fc("0x17d")](s,fc("0x155"),((t,{threadId:e})=>{const n=this[fc("0x116")][fc("0x129")](e);n&&n[fc("0x139")]&&1===n.commentThread.length&&this[fc("0x25")](e,{hasComments:!0})}),{priority:fc("0x88")}),this[fc("0x17d")](s,fc("0x87"),((t,{threadId:e})=>{const n=this._suggestions[fc("0x129")](e);n&&n[fc("0x139")]&&!n[fc("0x139")].length&&this[fc("0x25")](e,{hasComments:!1})}),{priority:"low"})}set adapter(t){if(this._adapter)throw new e.CKEditorError(fc("0x8d"),this);this[fc("0x131")]=t}get[fc("0x12a")](){return this[fc("0x131")]}[fc("0x101")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions.values())t&&!e[fc("0x81")]||n.push(e);return e?n.map((t=>t[fc("0x38")]())):n}[fc("0x62")](t){const n=this[fc("0x116")][fc("0x129")](t);if(!n)throw new e.CKEditorError(fc("0x4f"),this);return n}[fc("0x10a")](t){return this[fc("0x116")][fc("0x94")](t)}[fc("0x9d")](t){const{authorId:e,id:n,attributes:r}=t,[o,i]=t[fc("0x24")][fc("0x33")](":"),s=this[fc("0x116")][fc("0x129")](n)||this._createSuggestion(o,i,n,e,r);if(this[fc("0x48")](s),this[fc("0x128")](s,o,i||null,e),s[fc("0x84")]=t[fc("0x84")],s[fc("0x4")]=!0,r&&r[fc("0x109")]){const t=r[fc("0x109")],e=this[fc("0x17b")](t[fc("0xa6")]);s.authoredAt=t[fc("0x84")],s.author=e,s.isExternal=!0}else s[fc("0x113")]=t[fc("0x84")];switch(t.data&&(s[fc("0x137")]=t.data),t.attributes&&(s[fc("0x3a")]=t[fc("0x3a")]),this[fc("0x131")]&&this[fc("0x131")][fc("0x65")]||(s[fc("0x13")]=!0),this._suggestionState[fc("0x129")](s)){case"notReady":this[fc("0x4c")][fc("0x6")](s,"dataReady");break;case fc("0xb1"):s.isInContent?(this[fc("0xeb")](new Set([s])),this[fc("0x1d")](new Set([s])),this[fc("0x4c")][fc("0x6")](s,fc("0x166")),this[fc("0x76")](fc("0x53"),s)):this[fc("0x4c")][fc("0x6")](s,fc("0x106"))}return s}[fc("0x159")](t){this[fc("0x74")]((()=>{this[fc("0xee")][fc("0xa1")][fc("0xb0")]((()=>{for(const e of t[fc("0x6c")]())e[fc("0x122")]()}))}))}discardSuggestion(t){this[fc("0x74")]((()=>{this.editor[fc("0xa1")][fc("0xb0")]((()=>{for(const e of t[fc("0x6c")]())e[fc("0x134")]()}))}))}[fc("0x15b")](t,n){const r=this[fc("0xee")].commands[fc("0x129")](t);if(!r)throw new e.CKEditorError(fc("0x5c"),this,{commandName:t});if(this[fc("0xbd")][fc("0x94")](r))throw new e.CKEditorError(fc("0x132"),this,{commandName:t});this[fc("0xbd")][fc("0x10b")](r),n&&r.on(fc("0xb8"),((t,e)=>{this[fc("0x117")][fc("0x8f")]&&(this[fc("0x30")]||(e.length>0&&e[e.length-1]&&e[e.length-1][fc("0x74")]?e[fc("0x39")]():(t[fc("0xc4")]=n(((...t)=>r[fc("0xb8")](...t,{forceDefaultExecution:!0})),...e),t.stop())))}),{priority:fc("0xa")})}[fc("0x74")](t){let n,r;const o=this[fc("0x30")];this[fc("0x30")]=!0;try{n=t()}catch(t){r=t}return o||(this._isForcedDefaultExecutionBlock=!1),r&&e.CKEditorError[fc("0xf5")](r,this),n}[fc("0x179")](t,n=null,r={}){if(t[fc("0xfd")])return null;const o=this[fc("0xee")][fc("0x8b")][fc("0x129")](fc("0x130")).me;for(const{suggestion:e,meta:o}of this[fc("0x2f")](t,fc("0x83")))if(o[fc("0x98")]){if(!o[fc("0x95")]){if(o[fc("0x9c")]){if(!this[fc("0x93")]||!Ic(e,r))continue;return e}if(Ic(e,r))return e;this[fc("0x133")](e,t[fc("0x16e")],t[fc("0x9a")]);break}if(n==e[fc("0x79")]&&Ic(e,r)){const n=e.getFirstRange();return n[fc("0x16e")][fc("0x32")](t[fc("0x9a")])?this[fc("0x5a")](e,this[fc("0x15f")][fc("0xcc")](t[fc("0x16e")],n.end)):this[fc("0x5a")](e,this[fc("0x15f")][fc("0xcc")](n[fc("0x16e")],t[fc("0x9a")])),e}}const i=(0,e.uid)(),s=o.id,x=n?fc("0x115")+n:fc("0x83"),a=this._setSuggestionData({id:i,type:x,createdAt:new Date,authorId:s,attributes:r});return this[fc("0x16a")](x,i,s,t),a}[fc("0x15c")](t,n="multi",r={}){const o=this.editor[fc("0x8b")][fc("0x129")](fc("0x130")).me,i=this[fc("0x171")][fc("0x14")]("insertion",n,"join");for(const e of this[fc("0x101")]())if(e[fc("0xd9")].id==o.id&&"insertion"==e[fc("0x24")]&&e.subType==n&&Ic(e,r)&&(i(e[fc("0x13c")](),t)||i(t,e[fc("0x13c")]()))){for(const n of t)e[fc("0x121")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x2f")](t,fc("0x83"))){if(!n[fc("0x98")])continue;if(!this._mergeNestedSuggestions&&n[fc("0x9c")])continue;if(!Ic(e,r))continue;let o=!0;for(const n of e[fc("0x13c")]())for(const e of t)if(!n.containsRange(e)){o=!1;break}if(o)return e}const s=(0,e.uid)(),x=o.id,a=fc("0x115")+n,c=this[fc("0x5e")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this._addSuggestionMarker(a,s,x,e,Yr.getMultiRangeId());return c}[fc("0x43")](t,n,r=null,o={}){if(r=r||Tc(n),t[fc("0xfd")])return null;if(fc("0xd2")===this[fc("0xd6")]){const e=this[fc("0x171")][fc("0x14")](fc("0x5"),r,fc("0x122"));return this[fc("0x74")]((()=>e([t],n,o))),null}const i=this[fc("0xee")][fc("0x8b")][fc("0x129")]("Users").me,s=[];if("always"!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[fc("0x2f")](t,fc("0x83")))n[fc("0x98")]&&!n[fc("0x165")]&&s[fc("0x5b")](...e[fc("0x13c")]());const x=function(t,e){const n=[];for(const r of e){const e=t.getIntersection(r);e&&n[fc("0x5b")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0xb2")];){const r=n[e][fc("0x99")](t);n[fc("0x21")](e,1,...r),e+=r[fc("0xb2")]}}return n}(t,s);x[fc("0xb2")]&&this[fc("0x15f")][fc("0xb0")]((()=>{for(const t of x){const e=this[fc("0x171")].getSuggestionCallback(fc("0x5"),r,fc("0x122"));this.forceDefaultExecution((()=>e([t],n,o)))}}));for(const t of a){let s=null,x=t.start,a=t[fc("0x9a")];for(const{suggestion:e,meta:n}of this[fc("0x2f")](t,fc("0x5"))){if(!n[fc("0x98")])continue;if(e[fc("0x79")]!=r)continue;if(!Ic(e,o))continue;const i=e[fc("0x114")]();if(i[fc("0x85")](t,!0))return null;x=x.isBefore(i[fc("0x16e")])?x:i[fc("0x16e")],a=a[fc("0x7d")](i[fc("0x9a")])?a:i.end,s?i[fc("0x16e")][fc("0x108")](s[fc("0x114")]().start)?(s[fc("0x160")](),s=e):e[fc("0x160")]():s=e}const c=this._model[fc("0xcc")](x,a);if(s)this[fc("0x5a")](s,c);else{const t=(0,e.uid)(),s=i.id;this[fc("0x5e")]({id:t,type:fc("0x67")+r,data:n,createdAt:new Date,authorId:s,attributes:o}),this[fc("0x16a")](fc("0x67")+r,t,s,c)}}return null}[fc("0xf2")](t,n,r=[],o=null,i={}){n.formatGroupId||(n.formatGroupId=n[fc("0x112")]),n[fc("0x13f")]=t.is("range"),o=o||Tc(n);const s=r[fc("0xe5")]((t=>Cc(t,this._model))),x=t.is(fc("0x135"))?t:Cc(t,this[fc("0x15f")]);if(fc("0xd2")===this._trackFormatChanges){const t=this[fc("0x171")][fc("0x14")](fc("0x13b"),o,"accept");return this[fc("0x74")]((()=>t([x],n,i))),null}s[fc("0x5b")](x);let a=!0;for(const t of s)if(!this[fc("0x10")](t)){a=!1;break}if(a&&"always"!==this[fc("0xd6")]){const t=this[fc("0x171")][fc("0x14")]("formatBlock",o,fc("0x122"));return this[fc("0x74")]((()=>t([x],n,i))),null}let c=null,l=x[fc("0x16e")],u=x[fc("0x9a")];for(const{suggestion:t,meta:e}of this[fc("0x2f")](x,fc("0x13b"))){if(!e[fc("0x98")])continue;if(e.isNextTo||e[fc("0x9c")]||e[fc("0x165")])continue;if(t.data[fc("0xff")]!=n[fc("0xff")])continue;if(!Ic(t,i))continue;const r=t[fc("0x114")]();if(t[fc("0x79")]==o){if(r.containsRange(x,!0))return null;l=l[fc("0x108")](r[fc("0x16e")])?l:r[fc("0x16e")],u=u[fc("0x7d")](r[fc("0x9a")])?u:r[fc("0x9a")],c?r.start[fc("0x108")](c[fc("0x114")]()[fc("0x16e")])?(c[fc("0x160")](),c=t):t[fc("0x160")]():c=t}else{const e=x[fc("0x47")](r);this[fc("0xbf")](t,e)}}const d=this[fc("0xee")].plugins[fc("0x129")](fc("0x130")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x5a")](c,this[fc("0x15f")].createRange(l,u)),c;{const t=this[fc("0x5e")]({id:g,type:fc("0x45")+o,data:n,createdAt:new Date,authorId:f,attributes:i});return this[fc("0x16a")]("formatBlock:"+o,g,f,this[fc("0x15f")][fc("0xcc")](l,u)),t}}[fc("0xdd")](t,n,r=[],o=null,i={}){n.formatGroupId||(n[fc("0xff")]=n[fc("0x112")]);const s=t[0];n.multipleBlocks=s.is(fc("0x135")),o=o||Tc(n);const x=r.map((t=>Cc(t,this._model))),a=s.is(fc("0x135"))?t:t[fc("0xe5")]((t=>Cc(t,this[fc("0x15f")])));if(fc("0xd2")===this[fc("0xd6")]){const t=this[fc("0x171")][fc("0x14")](fc("0x13b"),o,fc("0x122"));return this[fc("0x74")]((()=>t(a,n,i))),null}x.push(...a);let c=!0;for(const t of x)if(!this[fc("0x10")](t)){c=!1;break}if(c&&fc("0x17a")!==this[fc("0xd6")]){const t=this[fc("0x171")][fc("0x14")](fc("0x13b"),o,fc("0x122"));return this[fc("0x74")]((()=>t(a,n,i))),null}const l=this[fc("0xee")][fc("0x8b")][fc("0x129")](fc("0x130")).me;for(const t of this[fc("0x101")]()){if(t.author.id!=l.id)continue;if(fc("0x13b")!=t[fc("0x24")]||t[fc("0x137")][fc("0xff")]!=n[fc("0xff")])continue;if(!Ic(t,i))continue;const e=t[fc("0x79")]==o;for(let n=0;n<a[fc("0xb2")];n++){const r=a[n];for(const o of t[fc("0x73")]()){const i=o[fc("0x16")]();if(r[fc("0x32")](i)){e?(a.splice(n,1),n--):t[fc("0x46")](o[fc("0xb")]);break}}}}if(0==a[fc("0xb2")])return null;const u=this[fc("0x171")][fc("0x14")](fc("0x13b"),o,fc("0x11d"));for(const t of this[fc("0x101")]())if(t.author.id==l.id&&fc("0x13b")==t[fc("0x24")]&&t.data.formatGroupId==n[fc("0xff")]&&t[fc("0x79")]==o&&Ic(t,i)&&(u(t.getRanges(),a)||u(a,t[fc("0x13c")]()))){for(const e of a)t[fc("0x121")](e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0x45")+o,m=this._setSuggestionData({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[fc("0x16a")](f,d,g,t,Yr.getMultiRangeId());return m}[fc("0x158")](t,n=null,r={}){if(t[fc("0xfd")])return null;const o=this.editor[fc("0x8b")][fc("0x129")](fc("0x130")).me,i=new s.LiveRange(t[fc("0x16e")],t[fc("0x9a")]);for(const{suggestion:t,meta:e}of this[fc("0x2f")](i,"insertion"))if(e[fc("0x98")]&&!e[fc("0x95")])if(t[fc("0xba")]){const e=t[fc("0x13c")]()[fc("0x6e")]((t=>fc("0x141")!=t[fc("0x27")][fc("0x31")]));if(e[fc("0xe")]((t=>i[fc("0x85")](t,!0)))&&t[fc("0x134")](),e[fc("0xa2")]((t=>t[fc("0x85")](i,!0)))){const t=this[fc("0x171")][fc("0x14")]("deletion",n,fc("0x122"));return this[fc("0x74")]((()=>t([i],null,r))),null}}else{const e=i.getIntersection(t[fc("0x114")]());null!==e&&t[fc("0xed")]([e],null,r)}if(i.detach(),i.isCollapsed||fc("0x141")==i[fc("0x27")][fc("0x31")])return null;let x=null,a=i[fc("0x16e")],c=i[fc("0x9a")];const l=this[fc("0x2f")](i,fc("0x127"));for(const{suggestion:t,meta:e}of l){const n=this[fc("0x15f")][fc("0xcc")](a,c);if(e[fc("0x98")]&&(this[fc("0x93")]||!e[fc("0x9c")]&&!e[fc("0x165")]))if(t[fc("0xba")]){if(!Ic(t,r))continue;let e=!0;for(const r of t[fc("0x13c")]()){if(r[fc("0x85")](n,!0))return t;n.containsRange(r)||(e=!1)}e&&t[fc("0x134")]()}else{const e=t[fc("0x114")]();if(e[fc("0x85")](n,!0))return t;if(!Ic(t,r)){n[fc("0x85")](e)?t[fc("0x160")]():e[fc("0x90")](a)?a=e[fc("0x9a")]:e[fc("0x90")](c)&&(c=e[fc("0x16e")]);continue}a=a.isBefore(e.start)?a:e[fc("0x16e")],c=c.isAfter(e[fc("0x9a")])?c:e[fc("0x9a")],r=Object[fc("0xf1")]({},t.attributes),x?e[fc("0x16e")][fc("0x108")](x[fc("0x114")]()[fc("0x16e")])?(x[fc("0x160")](),x=t):t[fc("0x160")]():x=t}}if(x)return this._setSuggestionRange(x,this[fc("0x15f")][fc("0xcc")](a,c)),x;{const t=(0,e.uid)(),i=this[fc("0x15f")][fc("0xcc")](a,c),s=o.id,x=n?fc("0xe0")+n:fc("0x127"),l=this[fc("0x5e")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this._addSuggestionMarker(x,t,s,i),l}}[fc("0xa0")](t,n=fc("0x44"),r={}){const o=this.editor[fc("0x8b")][fc("0x129")]("Users").me,i=t[fc("0xe5")]((t=>new s.LiveRange(t[fc("0x16e")],t.end))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x2f")](i,fc("0x83")))e[fc("0x98")]&&!e[fc("0x95")]&&x[fc("0x10b")](t);for(const e of x)if(e[fc("0xba")]){const o=e[fc("0x13c")]();if((!e[fc("0x3a")]||!e[fc("0x3a")][fc("0xaf")])&&o.every((t=>i[fc("0xa2")]((e=>e.containsRange(t,!0)))))&&e[fc("0x134")](),i[fc("0xe")]((t=>o[fc("0xa2")]((e=>e[fc("0x85")](t,!0)))))){const e=this._suggestionFactory[fc("0x14")](fc("0x127"),n,fc("0x122"));return this[fc("0x74")]((()=>e(t,null,r))),null}}else{const t=e[fc("0x114")]();if(i.some((e=>e[fc("0x85")](t,!0)))&&e[fc("0x134")](),i.every((e=>t.containsRange(e,!0)))){const t=this._suggestionFactory[fc("0x14")](fc("0x127"),n,fc("0x122"));return this[fc("0x74")]((()=>t(i,null,r))),null}}const a=this[fc("0x171")][fc("0x14")](fc("0x127"),n,fc("0x11d"));let c=null;for(const t of this[fc("0x101")]())if(t.author.id==o.id&&t.isInContent&&fc("0x127")==t[fc("0x24")]&&t.subType==n&&Ic(t,r)&&(a(t[fc("0x13c")](),i)||a(i,t[fc("0x13c")]())))if(c){if(t[fc("0x139")]&&t[fc("0x139")].length)continue;for(const e of t.getRanges())c[fc("0x1b")](e)||c.addRange(e);t[fc("0x160")]()}else{c=t;for(const e of i)t[fc("0x1b")](e)||t.addRange(e)}if(c)return c;x[fc("0x145")]();for(const{suggestion:t,meta:e}of this[fc("0x2f")](i,fc("0x127")))e[fc("0x98")]&&(this[fc("0x93")]||!e[fc("0x9c")]&&!e[fc("0x165")])&&Ic(t,r)&&x[fc("0x10b")](t);for(const t of x){const e=t[fc("0x13c")]();if((!r||!r[fc("0xaf")])&&i[fc("0xe")]((t=>e.some((e=>e[fc("0x85")](t,!0))))))return t;(!t[fc("0x3a")]||!t.attributes.skipNestingCheck)&&e[fc("0xe")]((t=>i[fc("0xa2")]((e=>e[fc("0x85")](t,!0)))))&&t[fc("0x134")]()}const l=(0,e.uid)(),u=o.id,d=fc("0xe0")+n,g=this[fc("0x5e")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of i)t[fc("0xa5")](),t[fc("0xfd")]||"$graveyard"==t[fc("0x27")][fc("0x31")]||this[fc("0x16a")](d,l,u,t,Yr.getMultiRangeId());return g}markAttributeChange(t,n,r,o,i){if(t[fc("0xfd")])return[];if(fc("0xd2")===this[fc("0xd6")])return[];const s=this[fc("0xee")][fc("0x8b")][fc("0x129")](fc("0x130")).me.id,x=Array[fc("0x4a")](this[fc("0x116")].values())[fc("0x6e")]((e=>"attribute"==e[fc("0x24")]&&e[fc("0x137")][fc("0x163")]==n&&e.isIntersectingWithRange(t)));if(fc("0xb5")===this[fc("0xd6")]){const e=this._findSuggestions(t,fc("0x83")).filter((({meta:t})=>t[fc("0x98")]&&!t.isInsideObject&&!t[fc("0x95")]))[fc("0xe5")]((({suggestion:t})=>t));x[fc("0x125")](...e)}const a=new Map([[t,r]]);for(const t of x){const e="attribute"==t[fc("0x24")]?t[fc("0x137")][fc("0x161")]:void 0,i=t[fc("0x114")](),s=Array[fc("0x4a")](a[fc("0x17c")]())[fc("0x120")]((t=>t[fc("0x13d")](i)));if(!s)continue;const x=s[fc("0x99")](i);this[fc("0x140")](n)&&fc("0x83")==t.type&&0!=x[fc("0xb2")]||(a[fc("0xf3")](s),x[fc("0xda")]((t=>{a.set(t,r)})),fc("0x83")!=t[fc("0x24")]&&e!=o&&a[fc("0x6")](s.getIntersection(i),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:o};n[fc("0xb2")]>37&&console[fc("0x104")]("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=(fc("0x61")+(n+"|")+Tc({newValue:o}))[fc("0x86")](0,60),u=this[fc("0x5e")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c[fc("0x5b")](u),this._addSuggestionMarker(l,x,s,t)}return c}[fc("0x4b")](t){this[fc("0xca")][fc("0x10b")](t)}[fc("0x174")](t){this[fc("0x10d")][fc("0x10b")](t)}_enableDefaultAttributesIntegration(t,e=[],n=[]){this.enableCommand(t,((t,...e)=>{this[fc("0xd5")]((()=>{t(...e)}))}));for(const t of e)this[fc("0x174")](t);for(const t of n)this[fc("0x4b")](t)}[fc("0x5a")](t,e){const n=t.getFirstMarker();this[fc("0x15f")][fc("0xb0")]((t=>{t.updateMarker(n,{range:e})}))}[fc("0x48")](t){const e=t.id,n=this.editor.config[fc("0x129")]("collaboration.channelId");this[fc("0x7")][fc("0x35")](e)||this[fc("0x7")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this[fc("0x7")][fc("0xef")](e);r[fc("0xae")](fc("0x151")),r[fc("0x151")]=!1,t[fc("0x139")]=r}_checkSuggestionCorrectness(t,n,r,o){if(t[fc("0x24")]!=n||t[fc("0x79")]!=r||t[fc("0x51")].id!=o)throw this[fc("0xee")][fc("0xdb")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(fc("0xfa"),this)}[fc("0xbf")](t,n){const r=t[fc("0x114")]();if(n[fc("0x32")](r))t.removeMarkers();else if(r[fc("0x85")](n)){const o=this[fc("0x15f")][fc("0xa4")](n[fc("0x16e")].nodeBefore,fc("0x9a"));this[fc("0x5a")](t,this[fc("0x15f")].createRange(r[fc("0x16e")],o));const i=(0,e.uid)(),s=t[fc("0x51")].id,x=t[fc("0x24")]+":"+t.subType;this[fc("0x5e")]({id:i,type:x,createdAt:new Date,authorId:s,data:t[fc("0x137")],attributes:t[fc("0x3a")]});const a=this[fc("0x15f")].createPositionAt(n[fc("0x9a")][fc("0x2a")],fc("0x92")),c=this._model[fc("0xcc")](a,r[fc("0x9a")]);this[fc("0x16a")](x,i,s,c)}else if(r[fc("0x90")](n[fc("0x16e")])){const e=this[fc("0x15f")][fc("0xa4")](n.start[fc("0x14e")],fc("0x9a"));this[fc("0x5a")](t,this[fc("0x15f")][fc("0xcc")](r[fc("0x16e")],e))}else{const e=this[fc("0x15f")][fc("0xa4")](n.end.parent,fc("0x92"));this[fc("0x5a")](t,this[fc("0x15f")][fc("0xcc")](e,r.end))}}[fc("0x10")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x83"))){if(!n.isOwn)continue;const r=e[fc("0x13c")]();for(const e of r)if(!t.getDifference(e)[fc("0xb2")])return!0}return!1}[fc("0x110")](t){const n=this[fc("0xee")][fc("0x8b")][fc("0x129")](fc("0x130"))[fc("0x3")](t);if(!n)throw new e.CKEditorError(fc("0x6d"),this);return n}[fc("0x17b")](t){const e=this[fc("0xee")][fc("0x8b")][fc("0x129")]("Users"),n=(0,i.hashObject)(fc("0x69")+t);return e[fc("0x3")](n)||e.addUser({id:n,name:t})}[fc("0x2e")](t,e,n,r,o){const i=this[fc("0x110")](r),s=this[fc("0x171")][fc("0xc5")](t,e,n,i,o,(t=>this[fc("0x25")](n,{attributes:t})));return this[fc("0x17d")](s,fc("0x122"),(()=>{this[fc("0x25")](n,{state:"accepted"})}),{priority:"high"}),this.listenTo(s,"discard",(()=>{this._updateSuggestionData(n,{state:fc("0xb7")})}),{priority:fc("0xa")}),this[fc("0x116")][fc("0x6")](n,s),this._suggestionState[fc("0x6")](s,fc("0x14d")),s}[fc("0x12b")](t){const e=t[fc("0x33")](":");return{group:e[0],type:e[1],subType:e[fc("0xb2")]>=5?e[2]:null,id:e[fc("0xb2")]<5?e[2]:e[3],authorId:e[fc("0xb2")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[fc("0x133")](t,n,r){const o=t[fc("0x114")](),i=o[fc("0x16e")],s=o[fc("0x9a")];this._setSuggestionRange(t,this[fc("0x15f")][fc("0xcc")](i,n));const x=(0,e.uid)(),a=t.creator.id,c=t[fc("0x24")]+(t[fc("0x79")]?":"+t[fc("0x79")]:"");this[fc("0x5e")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[fc("0x137")]});const l=Sc(t);("formatBlock"==t[fc("0x24")]||l&&this[fc("0x140")](l))&&(r=this[fc("0x15f")][fc("0x19")](r[fc("0x2a")])),this[fc("0x16a")](c,x,a,this[fc("0x15f")][fc("0xcc")](r,s))}[fc("0x2f")](t,e=null){const n=[],r=this.editor[fc("0x8b")][fc("0x129")](fc("0x130")).me;Array[fc("0xac")](t)||(t=[t]);for(const o of this[fc("0x101")]()){if(!o[fc("0x81")])continue;if(e&&o[fc("0x24")]!=e)continue;let i=!1;for(const e of o[fc("0x13c")]()){for(const s of t){const t=s[fc("0x16e")][fc("0x32")](e[fc("0x9a")])||s[fc("0x9a")].isEqual(e[fc("0x16e")]);if(t||s[fc("0x47")](e)){const x=s[fc("0x85")](e)&&pc(this[fc("0x15f")][fc("0x16b")],e[fc("0x16e")],s),a=e.containsRange(s)&&pc(this[fc("0x15f")][fc("0x16b")],s.start,e);n.push({suggestion:o,meta:{isOwn:r==o[fc("0xd9")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[fc("0x16a")](t,e,n,r,o){this[fc("0x15f")][fc("0xb0")]((i=>{let s=fc("0xbe")+t+":"+e+":"+n;o&&(s=s+":"+o),i[fc("0x15e")](s,{range:r,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t.previous,n=t[fc("0x169")];t[fc("0x146")]=null,t[fc("0x169")]=null,null!=e&&(e[fc("0x169")]=n),null!=n&&(n[fc("0x146")]=e),fc("0x166")==this._suggestionState.get(t)&&(this._suggestionState[fc("0x6")](t,fc("0x106")),this.fire(fc("0x14f"),t,e,n))}_setSuggestionData(t){const n=t.id,r=this[fc("0x9d")](t);if(this._adapter&&this[fc("0x131")].addSuggestion){const o=this[fc("0xee")].plugins[fc("0x129")](fc("0x168")),i=r[fc("0x103")],s=r[fc("0x79")]?r[fc("0x24")]+":"+r.subType:r[fc("0x24")],x=this[fc("0xee")][fc("0x1c")],a=o[fc("0x10b")](Jr(x,fc("0x17e"))),c={id:n,type:s,hasComments:i,data:t[fc("0x137")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:r.attributes};this[fc("0x131")][fc("0x65")](c).then((t=>{r[fc("0x13")]=!0,o[fc("0x34")](a),t&&t[fc("0x84")]&&(this[fc("0x116")][fc("0x129")](n)[fc("0x84")]=t[fc("0x84")])}))[fc("0xe1")]((t=>{throw(0,e.logWarning)(fc("0x1f")),this[fc("0xee")][fc("0xa1")].enqueueChange({isUndoable:!1},(()=>{r.discard()})),r[fc("0xc")](),this[fc("0x116")][fc("0xf3")](r.id),this[fc("0x4c")].delete(r),t}))}return r}_isBlockAttribute(t){return this[fc("0xca")][fc("0x94")](t)}[fc("0x25")](t,e){const n=this[fc("0xee")][fc("0x8b")][fc("0x129")]("PendingActions"),r=this[fc("0x62")](t);if(this[fc("0x131")]&&this[fc("0x131")][fc("0x2b")])if(r[fc("0x13")]){const r=n[fc("0x10b")](Jr(this[fc("0xee")].locale,fc("0x17e")));this[fc("0x131")][fc("0x2b")](t,e)[fc("0x11a")]((()=>{n.remove(r)}))}else r.on(fc("0x119"),(()=>{this[fc("0x25")](t,e)}))}[fc("0x9")](t){if(!this._adapter||!this._adapter[fc("0x62")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[fc("0x131")][fc("0x62")](t)}[fc("0xf7")](t){const{id:e,type:n,subType:r,authorId:o}=this[fc("0x12b")](t),i=this[fc("0x116")][fc("0x129")](e)||this[fc("0x2e")](n,r,e,o,{});switch(this[fc("0x128")](i,n,r,o),this[fc("0x4c")][fc("0x129")](i)){case"notReady":this[fc("0x9")](e).then((t=>{let n=Promise.resolve();t[fc("0x103")]&&(n=this[fc("0x7")][fc("0xc2")]({channelId:this.editor[fc("0x8")][fc("0x129")](fc("0x9b")),threadId:e})),n[fc("0x11a")]((()=>{this[fc("0x9d")](t)[fc("0x13")]=!0}))})),this[fc("0x4c")][fc("0x6")](i,fc("0xb1"));break;case fc("0x106"):this[fc("0x25")](e,{state:"open"});case"dataReady":this[fc("0x4c")][fc("0x6")](i,fc("0x166")),this[fc("0x76")]("suggestionLoaded",i);break;case"ready":this[fc("0x76")]("suggestionChanged",i)}return i[fc("0x12d")](t),i}[fc("0xeb")](t){const e=Array[fc("0x4a")](t),n=e.filter((t=>fc("0x13a")==t[fc("0x24")]));this[fc("0x10f")](n);const r=e[fc("0x6e")]((t=>!t[fc("0xba")]&&fc("0x13a")!=t[fc("0x24")])),o=this[fc("0x101")]({skipNotAttached:!0})[fc("0x6e")]((t=>!t[fc("0xba")]&&fc("0x13a")!=t[fc("0x24")])),i=o.filter((e=>!t.has(e))),s=new Map(o[fc("0xe5")]((t=>[t,this[fc("0x171")].getSuggestionCallback(t[fc("0x24")],t.subType,fc("0x42"))]))),x=new Map(o[fc("0xe5")]((t=>[t,t.getFirstRange()]))),a=new Set,c=new Set;for(let t=0;t<r.length;t++)u(r[t],r,t+1);for(let t=0;t<r[fc("0xb2")];t++)u(r[t],i,0);const l=new Set;for(let t=0;t<r[fc("0xb2")];t++){const e=r[t];!c[fc("0x94")](e)&&e[fc("0x146")]&&(l[fc("0x10b")](e[fc("0x146")]),e.previous[fc("0x169")]===e&&(e[fc("0x146")][fc("0x169")]=null),e[fc("0x146")]=null),!a[fc("0x94")](e)&&e[fc("0x169")]&&(l[fc("0x10b")](e[fc("0x169")]),e[fc("0x169")][fc("0x146")]===e&&(e[fc("0x169")].previous=null),e[fc("0x169")]=null)}function u(t,e,n){for(let r=n;r<e.length;r++){const n=d(t,e[r]);n&&(n[0][fc("0x169")]=n[1],n[1][fc("0x146")]=n[0],a.add(n[0]),c[fc("0x10b")](n[1]))}}function d(t,e){if(t[fc("0xd9")].id!==e.author.id)return null;const n=s[fc("0x129")](t)(t,e,x[fc("0x129")](t),x[fc("0x129")](e));return n&&s[fc("0x129")](e)(t,e,x[fc("0x129")](t),x.get(e))?n[1][fc("0x139")]&&n[1][fc("0x139")].length?null:n:null}l[fc("0xf8")]&&this._refreshSuggestionsChain(l)}_refreshAttributeSuggestionsChain(t){if(0==t[fc("0xb2")])return;const e=this[fc("0x101")]({skipNotAttached:!0}).filter((t=>fc("0x13a")==t[fc("0x24")]&&t[fc("0x4")])),n=[],r=new Map;for(const t of e){const e=(0,i.hashObject)(t[fc("0x3a")]);r[fc("0x94")](e)||(r[fc("0x6")](e,n[fc("0xb2")]),n[fc("0x5b")]([]));const o=r[fc("0x129")](e);n[o][fc("0x5b")](t)}!function(){n.sort(((t,e)=>{const n=t[0].createdAt,r=e[0].createdAt;return n==r?t[0][fc("0x3a")][fc("0xd7")]<e[0][fc("0x3a")][fc("0xd7")]?-1:1:n<r?-1:1}));for(const t of n)t[fc("0xa3")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0xb2")];t++){if(0==n[t][fc("0xb2")])continue;const e=[];for(let r=t+1;r<n[fc("0xb2")];r++)0!=n[r][fc("0xb2")]&&o(n[t],n[r])&&e[fc("0x5b")](r);for(const r of e)n[t]=n[t][fc("0xf4")](n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t[fc("0xb2")];e++)t[e].next=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0xb2")];e++)t[e][fc("0x146")]=t[e-1]||null;function o(t,e){if(t[0][fc("0xd9")]!==e[0][fc("0xd9")])return!1;if(n=t[0],r=e[0],(n.hasComments||r[fc("0x103")])&&(n[fc("0x103")]&&r[fc("0x103")]||!(n[fc("0x103")]&&r.createdAt<n.commentThread.comments[fc("0x129")](0)[fc("0x84")]||r.hasComments&&n[fc("0x84")]<r.commentThread[fc("0x63")][fc("0x129")](0)[fc("0x84")])))return!1;var n,r;const o=lc(t[0].attributes,fc("0xd7")),i=lc(e[0][fc("0x3a")],fc("0xd7"));return!!jr(o,i)&&(!!t[fc("0xe")]((t=>e[fc("0xa2")]((e=>t[fc("0x114")]()[fc("0x32")](e.getFirstRange())))))&&e[fc("0xe")]((e=>t.some((t=>e[fc("0x114")]()[fc("0x32")](t[fc("0x114")]()))))))}}[fc("0x1d")](t){const e=Array[fc("0x4a")](t),n=this[fc("0x101")]({skipNotAttached:!0}),r=n.filter((e=>!t[fc("0x94")](e))),o=new Map(e[fc("0xe5")]((t=>[t,this[fc("0x171")][fc("0x14")](t[fc("0x24")],t[fc("0x79")],"join")]))),i=new Map(n[fc("0xe5")]((t=>[t,t.getRanges()])));for(let t=0;t<e[fc("0xb2")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0xb2")];t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n[fc("0xb2")];s++){const r=n[s];if(r[fc("0x24")]!==e[fc("0x24")]||r[fc("0xd9")].id!==e[fc("0xd9")].id||r.subType!==e[fc("0x79")])continue;if(!kc(e,r))continue;if(fc("0x13a")==e[fc("0x24")]&&e[fc("0x137")][fc("0x161")]!=r[fc("0x137")].oldValue)continue;if(fc("0x13a")==e.type&&t[fc("0x140")](e[fc("0x137")][fc("0x163")]))continue;if("formatBlock"==e[fc("0x24")]){const n=t[fc("0xee")][fc("0xa1")],r=e[fc("0x9f")]();if(r&&(n[fc("0x16b")][fc("0xde")](r)||n[fc("0x16b")][fc("0x7a")](r)))continue}const x=o.get(e),a=i[fc("0x129")](e),c=i.get(r),l=e.commentThread&&e[fc("0x139")][fc("0xb2")],u=r.commentThread&&r.commentThread.length;if(!l&&x(c,a))return t[fc("0xb3")](r,e),i[fc("0xf3")](e),!0;if(!u&&x(a,c))return t._joinSuggestions(e,r),i.delete(r),!0}return!1}}[fc("0xb3")](t,e){if(t.isMultiRange)for(const n of e[fc("0x13c")]())t.addRange(n);else{const n=e.getFirstRange()[fc("0x9a")];this[fc("0x5a")](t,this._model[fc("0xcc")](t[fc("0x114")]()[fc("0x16e")],n))}e[fc("0x160")]()}[fc("0x126")](t,e){const n=t.startsWith(fc("0xd3"))||t[fc("0xc1")](fc("0x13a"))?"FORMATTING":t.toUpperCase();return Jr(this.editor[fc("0x1c")],e+"_"+n+fc("0x143"))}[fc("0x29")](){const t=this[fc("0xee")];(0,i.surroundingMarkersDetector)(this[fc("0x15f")],(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this[fc("0x12b")](t[fc("0xb")]);if("suggestion"===e){r[fc("0x5b")](this[fc("0x126")](n,fc("0xcd")));break}}for(const t of n){const{group:e,type:n}=this[fc("0x12b")](t.name);if(fc("0x0")===e){r.push(this[fc("0x126")](n,"ENTER"));break}}r.length&&t.ui[fc("0x28")][fc("0x3b")](fc("0x50"),r[fc("0x11d")](" "))}))}[fc("0x11b")](t){if(null!==this[fc("0x170")])return!1;const e=this.editor,n=e[fc("0xa1")][fc("0x89")][fc("0x157")][fc("0x162")]();if(0==n[fc("0xb2")])return!1;const r=[],o=n[fc("0x6e")]((t=>"attribute"==t.type)),i=n[fc("0x6e")]((t=>fc("0x167")==t[fc("0x24")]&&fc("0xaa")!=t[fc("0xb")])),s=n[fc("0x6e")]((t=>"remove"==t[fc("0x24")]&&fc("0xaa")!=t.name));for(const t of o)r[fc("0x5b")]({key:t.attributeKey,newValue:t.attributeNewValue,oldValue:t[fc("0xce")],range:(x=t[fc("0x135")],null==x[fc("0x9a")][fc("0x14e")]&&x[fc("0x9a")][fc("0x2a")]==x[fc("0x16e")][fc("0x9e")]?Cc(x.start[fc("0x9e")],e[fc("0xa1")]):x)});var x;for(const t of i){const n=s[fc("0x120")]((e=>e.position[fc("0x32")](t[fc("0x15d")])));n&&r[fc("0x5b")]({key:"$elementName",newValue:t[fc("0xb")],oldValue:n[fc("0xb")],range:e[fc("0xa1")].createRangeOn(t[fc("0x15d")].nodeAfter)})}return 0!=r[fc("0xb2")]&&this[fc("0x4e")](t,r)}[fc("0xf6")](t){let e=!1;const n=this[fc("0xee")][fc("0xa1")][fc("0x89")][fc("0x157")].getChangedMarkers().filter((t=>t[fc("0x137")][fc("0x36")]&&t[fc("0xb")][fc("0xc1")](fc("0xfe"))));for(const r of n){const{subType:n,id:o}=this[fc("0x12b")](r[fc("0xb")]),i=n.split("|")[0];for(const n of this.getSuggestions({skipNotAttached:!0}))n.id!=o&&fc("0x13a")==n[fc("0x24")]&&n[fc("0x137")]&&n[fc("0x137")][fc("0x163")]==i&&n[fc("0x114")]().isIntersecting(r[fc("0x137")].newRange)&&(this[fc("0x173")](n,r.data.newRange,t),e=!0)}return e}[fc("0xd5")](t){if(null!==this[fc("0x170")])return void t();const n=this[fc("0xee")];this[fc("0x170")]=n[fc("0xa1")][fc("0x89")][fc("0x111")],t();const r=new Map;for(const t of n.model.document[fc("0x12e")][fc("0x55")](this[fc("0x170")]))if(["rename",fc("0x11e"),"removeAttribute",fc("0x71")][fc("0x12c")](t[fc("0x24")])){const e=t[fc("0x123")],n=r[fc("0x129")](e)||[];n.push(t),r.set(e,n)}this._recordAttributeSuggestionsFromVersion=null;for(const[t,o]of r){const r=(0,e.uid)();n[fc("0xa1")][fc("0x49")](t,(t=>{const e=[];for(const t of o){let o,i,s,x;if(fc("0xb4")==t.type){const e=t;o=Cc(e[fc("0x15d")][fc("0x9e")],n.model),i=fc("0xdf"),s=e[fc("0x77")],x=e[fc("0x26")]}else{const e=t,r=this._isBlockAttribute(e[fc("0x163")]),a=this[fc("0x10d")].has(e[fc("0x163")]);if(!r&&!a)continue;o=r?Cc(e[fc("0x135")][fc("0x16e")][fc("0x9e")],n[fc("0xa1")]):e.range,i=e.key,s=fc("0x82")==t.type?void 0:e[fc("0xcf")],x=e[fc("0x161")]}this[fc("0x175")](o,i,x,s,{groupId:r}),e.push({range:o,key:i,newValue:s,oldValue:x})}this[fc("0x4e")](t,e)}))}}[fc("0x4e")](t,e){if(0==e.length)return!1;let n=!1;for(const r of e){const e=this._findSuggestions(r[fc("0x135")],fc("0x13a"))[fc("0x6e")]((t=>!t[fc("0x41")][fc("0x95")]))[fc("0xe5")]((t=>t[fc("0x0")])),o=(0,i.hashObject)({newValue:r[fc("0xcf")]});e.filter((t=>{const[e,n]=t[fc("0x79")][fc("0x33")]("|");return e==r[fc("0x163")]&&n!=o}))[fc("0xda")]((e=>{this[fc("0x173")](e,r[fc("0x135")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const r=t[fc("0x114")]()[fc("0x99")](e);0!==r[fc("0xb2")]?1!==r[fc("0xb2")]?this[fc("0x133")](t,e[fc("0x16e")],e.end):this[fc("0x5a")](t,r[0]):n[fc("0x46")](t.getFirstMarker())}}class bc{constructor(t){this[fc("0x6a")]=t,this[fc("0x15f")]=t[fc("0xa1")],this._customCallbacks=new Map,this[fc("0x149")]=new Map,this[fc("0xad")]()}[fc("0xc5")](t,e,n,r,o,i){return new Yr(this[fc("0x15f")],{type:t,subType:e,id:n,author:r,creator:r,attributes:o,onAttributesChange:i,onAccept:(...n)=>this[fc("0x14")](t,e,fc("0x122"))(...n),onDiscard:(...n)=>this[fc("0x14")](t,e,"discard")(...n)})}[fc("0x11c")](t,e,n,r){const o=t+":"+e+":"+n;this[fc("0x5f")][fc("0x6")](o,r)}[fc("0x14")](t,e,n){const r=t+":"+e+":"+n;return this[fc("0x5f")].get(r)||this._defaultCallbacks[fc("0x129")](t+":"+n)}[fc("0xad")](){const t=()=>!1,e=t=>{t[fc("0xa3")](((t,e)=>t[fc("0x16e")][fc("0x108")](e[fc("0x16e")])?1:-1)),this._model[fc("0xb0")]((e=>{for(const n of t){let t;t=n[fc("0x9a")][fc("0xbb")]&&n[fc("0x9a")][fc("0x2a")]==n[fc("0x16e")].nodeAfter?e[fc("0x56")](n[fc("0x16e")].nodeAfter,"on"):e[fc("0x56")](n),this[fc("0x15f")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model[fc("0xb0")]((n=>{const{commandName:r,commandParams:o=[]}=e,i=t.map((t=>(Ec(t)&&(t=this[fc("0x15f")][fc("0xcc")](t[fc("0x9a")])),t))).filter((t=>fc("0x141")!==t[fc("0x27")][fc("0x31")]));if(i[fc("0xb2")]<1)return;const x=Array[fc("0x4a")](this[fc("0x15f")][fc("0x89")].selection.getRanges())[fc("0xe5")]((t=>s.LiveRange[fc("0x102")](t)));n[fc("0x154")](i);for(const t of this[fc("0x6a")][fc("0x2c")][fc("0x2c")]())t[fc("0x70")]();o[fc("0x5b")]({forceDefaultExecution:!0}),this[fc("0x6a")][fc("0xb8")](r,...o);const a=x[fc("0x6e")]((t=>fc("0x141")!=t[fc("0x27")][fc("0x31")]));a[fc("0xb2")]>0&&n[fc("0x154")](a);for(const t of x)t[fc("0xa5")]()}))},r=(t,e)=>1==t[fc("0xb2")]&&1==e[fc("0xb2")]&&t[0].end[fc("0x32")](e[0][fc("0x16e")]),o=(t,e,n,r)=>Ac(t,e,n,r,this[fc("0x15f")])?[t,e]:Ac(e,t,r,n,this[fc("0x15f")])?[e,t]:null;this[fc("0x149")][fc("0x6")](fc("0x15a"),t),this[fc("0x149")].set(fc("0x7f"),e),this[fc("0x149")][fc("0x6")](fc("0x17"),r),this[fc("0x149")].set("insertion:chain",o),this[fc("0x149")][fc("0x6")](fc("0x66"),e),this[fc("0x149")][fc("0x6")](fc("0x96"),t),this[fc("0x149")][fc("0x6")](fc("0x8a"),r),this[fc("0x149")][fc("0x6")](fc("0x2d"),o),this[fc("0x149")][fc("0x6")](fc("0x59"),n),this[fc("0x149")].set(fc("0x124"),t),this[fc("0x149")][fc("0x6")](fc("0x12"),r),this[fc("0x149")][fc("0x6")](fc("0x12f"),t),this[fc("0x149")][fc("0x6")](fc("0x1"),n),this[fc("0x149")].set(fc("0xab"),t),this[fc("0x149")][fc("0x6")](fc("0x148"),r),this._defaultCallbacks[fc("0x6")]("formatBlock:chain",t),this[fc("0x149")].set("attribute:accept",t),this[fc("0x149")][fc("0x6")](fc("0xfb"),((t,e)=>{if(!e)return;const n=this._editor.plugins[fc("0x129")](hc);this[fc("0x15f")][fc("0xb0")]((r=>{if(fc("0xdf")==e[fc("0x163")])for(const n of t){const t=n.start[fc("0x9e")],o=e[fc("0x161")];r.rename(t,o)}else if(n._isBlockAttribute(e[fc("0x163")]))for(const n of t)void 0!==e[fc("0x161")]?r[fc("0x15")](e[fc("0x163")],e[fc("0x161")],n[fc("0x16e")][fc("0x9e")]):r[fc("0x82")](e[fc("0x163")],n.start.nodeAfter);else for(const n of t)e[fc("0x161")]?r.setAttribute(e.key,e[fc("0x161")],n):r.removeAttribute(e[fc("0x163")],n)}))})),this[fc("0x149")][fc("0x6")](fc("0xec"),r)}}function pc(t,e,n){for(const r of e[fc("0x2a")].getAncestors({includeSelf:!0,parentFirst:!0})){if(r[fc("0x27")]==r)return!1;if(!n.containsItem(r))return!1;if(t.isObject(r)||t[fc("0x7a")](r))return!0}return!1}function Ec(t){return t[fc("0x9a")].parent==t[fc("0x16e")].nodeAfter&&t[fc("0x9a")][fc("0x54")]}function _c(t,e,n,r){const o=t=>!t.item.is("$textProxy")&&!r.isObject(t[fc("0xa8")]),i=t.start.getLastMatchingPosition(o),s=t[fc("0x9a")][fc("0xcb")](o,{direction:"backward"});return!(t[fc("0x16e")][fc("0x32")](i)&&t[fc("0x9a")][fc("0x32")](s)||(i[fc("0x108")](s)?n[fc("0xe8")](e,{range:n[fc("0xcc")](i,s)}):n[fc("0x46")](e),0))}function Tc(t){return(0,i.hashObject)(t)}function yc(t){const e=t[fc("0x16e")][fc("0x9e")];return e&&e.is(fc("0x5d"))}function Cc(t,e){const n=e[fc("0x16b")][fc("0xde")](t)||e[fc("0x16b")].isSelectable(t);return e[fc("0xcc")](e[fc("0xa4")](t,fc("0xa9")),n?e[fc("0x37")](t):e[fc("0xa4")](t,fc("0x9a")))}function Ac(t,e,n,r,o){if(!kc(t,e))return!1;if(n.end.isEqual(r[fc("0x16e")]))return!0;if(t[fc("0x24")]!=e.type)return!1;if(!n[fc("0x9a")][fc("0x97")](r[fc("0x16e")]))return!1;const i=o[fc("0xcc")](n.end,r[fc("0x16e")])[fc("0x16f")]();for(const t of i)if([fc("0xe4"),fc("0x1a")][fc("0x12c")](t[fc("0x24")])&&o[fc("0x16b")][fc("0x7a")](t[fc("0xa8")]))return!1;return!0}function kc(t,e){return!(!t[fc("0x4")]||!e._isDataLoaded)&&jr(t[fc("0x3a")],e[fc("0x3a")])}function Ic(t,e){const n=Rc(t[fc("0x3a")]),r=Rc(e);if(!t[fc("0x4")])return!1;for(const t of Object[fc("0x17c")](r))if(!jr(n[t],r[t]))return!1;return!0}function Rc(t){const e=Object.assign({},t);return delete e[fc("0xaf")],delete e[fc("0x8c")],e}function Sc(t){return fc("0x13a")==t[fc("0x24")]?t[fc("0x79")].split("|")[0]:null}const vc=["canDiscard","change:isDirty","locale","acceptSuggestion","view","_setPendingAction","destroy","canEditAt","isDirty","execute","commands","isEnabled","bind","model","plugins","canAccept","listenTo","_removePendingAction","_pendingAction","get","discardSuggestion","PendingActions","getRanges","unbind","_acceptCommand","_discardCommand","commentThreadController","_editor"];var Nc,Lc;Nc=vc,Lc=338,function(t){for(;--t;)Nc.push(Nc.shift())}(++Lc);const Mc=function(t,e){return vc[t-=0]};class wc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this[Mc("0xb")]=e,this[Mc("0x2")]=n,this[Mc("0x18")]=r,this[Mc("0x19")]=t,this._acceptCommand=t[Mc("0x8")][Mc("0x11")](Mc("0x1")),this[Mc("0x17")]=t[Mc("0x8")][Mc("0x11")](Mc("0x12")),this[Mc("0x2")][Mc("0xa")](Mc("0x9")).to(this[Mc("0x16")],this._discardCommand,((t,e)=>t||e)),this.view[Mc("0xa")](Mc("0xd")).to(this[Mc("0x16")],"isEnabled",(t=>t&&this[Mc("0x19")][Mc("0xb")][Mc("0x5")](e[Mc("0x14")]()))),this[Mc("0x2")].bind(Mc("0x1a")).to(this[Mc("0x17")],Mc("0x9"),(t=>t&&this[Mc("0x19")].model[Mc("0x5")](e[Mc("0x14")]()))),this[Mc("0x10")]=null,n[Mc("0x6")]&&this._setPendingAction(),this[Mc("0xe")](n,"acceptSuggestion",(()=>this[Mc("0x1")]())),this[Mc("0xe")](n,Mc("0x12"),(()=>this[Mc("0x12")]())),this[Mc("0xe")](n,Mc("0x1b"),(()=>{n[Mc("0x6")]?this[Mc("0x3")]():this[Mc("0xf")]()}))}acceptSuggestion(){this._acceptCommand[Mc("0x7")](this[Mc("0xb")].id)}[Mc("0x12")](){this[Mc("0x17")][Mc("0x7")](this[Mc("0xb")].id)}destroy(){this[Mc("0x2")][Mc("0x15")](Mc("0x9")),this[Mc("0x2")].unbind(Mc("0xd")),this[Mc("0x2")].unbind(Mc("0x1a")),this.stopListening(),this[Mc("0x18")][Mc("0x4")](),this._pendingAction&&this[Mc("0xf")]()}[Mc("0x3")](){const t=Jr(this[Mc("0x19")][Mc("0x0")],"PENDING_ACTION_SUGGESTION");this[Mc("0x10")]=this[Mc("0x19")][Mc("0xc")].get("PendingActions").add(t)}[Mc("0xf")](){null!==this[Mc("0x10")]&&this[Mc("0x19")][Mc("0xc")][Mc("0x11")](Mc("0x13")).remove(this[Mc("0x10")]),this[Mc("0x10")]=null}}const Oc=["commentInputView","destroy","_createCommentViews","value","isEnabled","_config","_localUser","showInput","canAccept","_model","locale","CommentView","setData","_createCommentThreadInputView","assign","focus","commentsListView","commentThread","disabledSubmit","editor","isDirty","canDiscard","descriptionParts","addComment","bind","fire","isActive","editorConfig","cancel","length","delegate","isReadOnly","commentThreadInputView","disableComments","authoredAt","set","element"];var Fc,Dc;Fc=Oc,Dc=331,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Bc=function(t,e){return Oc[t-=0]};class Pc extends o.View{constructor(t,e,n,r){super(t),this.commentsListView=null,this[Bc("0x22")]=null,this[Bc("0x0")](Bc("0x1c"),!1),this[Bc("0x0")](Bc("0x24"),e.authoredAt),this[Bc("0x1a")](Bc("0x24")).to(e),this.set(Bc("0x18"),[]),this.set(Bc("0x16"),!1),this.set(Bc("0x6"),!1),this.set(Bc("0xa"),!1),this.set(Bc("0x17"),!1),this[Bc("0xb")]=e,this._localUser=n,this[Bc("0x7")]=r,r[Bc("0x23")]?this[Bc("0x0")]("length",1):this[Bc("0x4")]()}[Bc("0x11")](){this[Bc("0x1")][Bc("0x11")]()}destroy(){this[Bc("0x12")]&&this[Bc("0x12")].destroy(),this[Bc("0x22")]&&this.commentThreadInputView[Bc("0x3")](),super[Bc("0x3")]()}[Bc("0x4")](){const{CommentsListView:t}=this[Bc("0x7")];this[Bc("0x12")]=new t(this.locale,this[Bc("0xb")][Bc("0x13")],Object[Bc("0x10")]({CommentView:this._config[Bc("0xd")]},this[Bc("0x7")])),this[Bc("0x12")][Bc("0x20")]("removeComment").to(this),this.commentsListView[Bc("0x20")]("updateComment").to(this),this[Bc("0x12")][Bc("0x1a")](Bc("0x1c")).to(this),this.set(Bc("0x1f"),this[Bc("0x12")][Bc("0x1f")]+1),this.bind(Bc("0x1f")).to(this[Bc("0x12")],Bc("0x1f"),(t=>t+1)),this[Bc("0x22")]=this[Bc("0xf")](),this.on("removeComment",(()=>this[Bc("0x11")]())),this[Bc("0x1a")](Bc("0x16")).to(this[Bc("0x12")],"hasDirtyComment",this.commentThreadInputView[Bc("0x2")],Bc("0x5"),((t,e)=>t||!!e))}[Bc("0xf")](){const{CommentThreadInputView:t}=this[Bc("0x7")],e=new t(this[Bc("0xc")],this[Bc("0x8")],this[Bc("0x7")][Bc("0x1d")]),n=e.commentInputView;return e[Bc("0x1a")](Bc("0x9")).to(this,Bc("0x1c"),this[Bc("0xb")][Bc("0x13")],Bc("0x21"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[Bc("0x1b")](Bc("0x19"),e),n[Bc("0x15")][Bc("0xe")]("")})),n.on(Bc("0x1e"),(()=>this[Bc("0x11")]())),n.bind(Bc("0x14")).to(this[Bc("0xb")][Bc("0x13")],Bc("0x21")),e}}const Uc=["formatDateTime","_model","ck-suggestion__actions","author","ck-suggestion-wrapper--active","acceptSuggestion","name","authoredAt",'<span class="ck-suggestion-type">',"discardButton","getUserViewNotificationText","innerHTML","render","description","</span>","ck-annotation__info","time","ck-comment__external","isExternal","attributes","extendTemplate","_config","descriptionParts","userView","bind","split","acceptButton","getExternalSuggestionNote","canAccept","Discard suggestion","importWord","ck-suggestion__main","_descriptionElement","set","canDiscard","creator","ck-annotation__actions","ck-comment__info-time","execute","editorReady","getTemplate","value","_createButton","EXTERNAL_IMPORT_WORD_AVATAR","commentThread","ck-annotation","fire","querySelector","cancel","EXTERNAL_SUGGESTION","isEnabled","locale","ck-suggestion--accept","commentThreadInputView","div","EXTERNAL_AVATAR","ck-suggestion__info","setTemplate","commentsListView","ck-suggestion","isActive","ck-suggestion--discard","ck-annotation__main","delegate","push","ck-annotation__info-time","ck-suggestion__user","type","ck-suggestion--disabled-comments","check","@external","<p>","bindTemplate","EXTERNAL_IMPORT_WORD_SUGGESTION","</p>","span","element"];var jc,Gc;jc=Uc,Gc=435,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Vc=function(t,e){return Uc[t-=0]};class Hc extends Pc{constructor(e,n,r,o){super(e,n,r,o),this[Vc("0x3c")](Vc("0x11"),""),this[Vc("0x33")](Vc("0x11")).to(this,Vc("0x31"),(t=>t&&t[0]?t[0][Vc("0x11")]:"")),this[Vc("0x33")](Vc("0x28")).to(this,"descriptionParts",this,Vc("0xa"),((t,e)=>{let n="";for(const e of t)n+=Vc("0x15")+zc(e.content,e.color)+Vc("0x18");return e?n:(0,i.trimHtml)(n,{limit:140})})),this[Vc("0x3b")]=null,this[Vc("0x35")]=this[Vc("0x45")](Jr(e,"Accept suggestion"),t.icons[Vc("0x13")],Vc("0x2"),Vc("0x20"),"sw"),this.acceptButton.bind(Vc("0x0")).to(this,Vc("0x37")),this.discardButton=this[Vc("0x45")](Jr(e,Vc("0x38")),t.icons[Vc("0x4b")],Vc("0xb"),"discardSuggestion","sw"),this[Vc("0x24")][Vc("0x33")]("isEnabled").to(this,Vc("0x3d")),this.userView=new i.UserView(e,this[Vc("0x1c")][Vc("0x1e")],this[Vc("0x25")]()),this[Vc("0x32")][Vc("0x2f")]({attributes:{class:[Vc("0x10"),"ck-annotation__user"]}}),this[Vc("0x7")](this[Vc("0x43")]())}[Vc("0x43")](){const t=this[Vc("0x16")],e=[{tag:Vc("0x4"),attributes:{class:[Vc("0x6"),Vc("0x2a")]},children:[{tag:Vc("0x19"),children:[{text:this[Vc("0x32")][Vc("0x21")]}],attributes:{class:["ck-suggestion__info-name","ck-annotation__info-name"]}},{tag:Vc("0x2b"),attributes:{datetime:t.to(Vc("0x22")),class:[Vc("0x40"),Vc("0xf")]},children:[{text:t.to(Vc("0x22"),(t=>this[Vc("0x30")][Vc("0x1b")](t)))}]}]},{tag:"div",attributes:{class:[Vc("0x1d"),Vc("0x3f")]},children:[this[Vc("0x35")],this[Vc("0x24")]]},{tag:Vc("0x4"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[Vc("0x1c")][Vc("0x2d")]&&e.push({tag:Vc("0x4"),attributes:{class:[Vc("0x2c")]},children:[{text:this[Vc("0x36")]()}]});const n={tag:Vc("0x4"),attributes:{class:["ck-suggestion-wrapper",t.if("isActive",Vc("0x1f")),t.to("type",(t=>"ck-suggestion-"+t)),this[Vc("0x30")].disableComments&&Vc("0x12")],"data-suggestion-id":this[Vc("0x1c")].id,"data-thread-id":this._model[Vc("0x47")].id,"data-author-id":this[Vc("0x1c")].author.id,tabindex:-1},children:[{tag:Vc("0x4"),attributes:{class:[Vc("0x9"),Vc("0x48")]},children:[this.userView,{tag:Vc("0x4"),attributes:{class:[Vc("0x3a"),Vc("0xc")]},children:e}]}]};return this[Vc("0x8")]&&this[Vc("0x3")]&&(n.children[Vc("0xe")](this[Vc("0x8")],this[Vc("0x3")]),this[Vc("0x8")].delegate("editorReady").to(this),this.commentsListView[Vc("0xd")]("editorDestroyed").to(this),this[Vc("0x3")].delegate(Vc("0x42")).to(this),this[Vc("0x3")][Vc("0xd")]("editorDestroyed").to(this)),n}[Vc("0x27")](){super[Vc("0x27")](),this._descriptionElement=this[Vc("0x1a")][Vc("0x4a")](".ck-annotation__content-wrapper"),this._descriptionElement[Vc("0x26")]=this.description,this.on("change:description",((t,e,n)=>{this._descriptionElement[Vc("0x26")]=n}))}[Vc("0x45")](t,e,n,r,i){const s=new o.ButtonView(this[Vc("0x1")]);return s[Vc("0x3c")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s[Vc("0x2f")]({attributes:{class:n}}),s.on(Vc("0x41"),(()=>{this[Vc("0x49")](r,this._model.id)})),s}[Vc("0x36")](){return Vc("0x39")===this[Vc("0x1c")][Vc("0x2e")][Vc("0x14")].source?Jr(this[Vc("0x1")],Vc("0x17")):Jr(this[Vc("0x1")],Vc("0x4c"))}[Vc("0x25")](){return this._model[Vc("0x2d")]?Vc("0x39")===this[Vc("0x1c")][Vc("0x2e")]["@external"].source?Jr(this[Vc("0x1")],Vc("0x46"),this._model[Vc("0x3e")][Vc("0x21")]):Jr(this[Vc("0x1")],Vc("0x5"),this[Vc("0x1c")][Vc("0x3e")][Vc("0x21")]):null}}function zc(t,e){let n="";return n+=t[Vc("0x34")]("*").map(((t,e)=>e%2!=0?Vc("0x23")+Wc(t)+Vc("0x29"):Wc(t))).join(""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[Vc("0x44")]+'" title="'+e.title+'"></span>'),n}function Wc(t){const e=document.createElement(Vc("0x19"));return e.innerText=t,e[Vc("0x26")]}const Kc=["trackChanges","execute","mainView","getSuggestion","filter","button","_suggestionToController","clear","value","pluginName","discardButton","length","_bindAnnotationToEditors","createCommentThreadController","isInContent","getMarkers","_handleSuggestionControllerDelayed","createAnnotation","isMultiRange","_annotationViews","getRanges","_handleControllerBuffer","addSourceCollector","get","view","head","change:previous","bind","activeAnnotations","values","define","set","suggestionUnloaded","from","acceptAllSuggestions","getDescriptions","separator","componentFactory","buttonView","EditorAnnotations","getAllAdjacentSuggestions","getMarkerNames","discardSelectedSuggestions","TrackChangesUI","_refreshActiveMarkers","descriptionParts","actionView","registerAnnotation","comments.maxCommentCharsWhenCollapsed","SuggestionThreadView","hasSuggestion","trackChanges.disableComments","comments","TrackChangesEditing","init","discardAllSuggestions","_descriptionFactory","trackChanges.SuggestionThreadView","_viewToController","acceptSelectedSuggestions","toMany","listenTo","previous","comments.maxCommentsWhenCollapsed","CommentView","has","isEnabled","commandName","createAnnotationView","delete","Accept all selected suggestions","stopListening","Track changes","type","requires","push","editing","destroy","acceptButton","config","Accept all suggestions","activeMarkers","CommentsUI","reduce","plugins","remove","unbind","arrowView","getFirstRange","comments.editorConfig","commands","_initializeController","_unbindEditors","Annotations","refreshSelectedViews","editor","_disableComments","Discard all suggestions","suggestionChanged","addComment","add","_updateController","suggestionLoaded","focus","change:activeAnnotations","_destroyController","model","isOn","CommentsRepository","locale"];var qc,Xc;qc=Kc,Xc=121,function(t){for(;--t;)qc.push(qc.shift())}(++Xc);const $c=function(t,e){return Kc[t-=0]};class Zc extends t.Plugin{static get[$c("0x3f")](){return[hc,i.Users,$c("0x61"),$c("0x52"),$c("0x1c")]}static get[$c("0x6c")](){return $c("0x20")}constructor(t){super(t),this[$c("0x69")]=new Map,this._viewToController=new Map,this[$c("0x8")]=new Map,this[$c("0xa")]=new Map;const e=this[$c("0x54")][$c("0x44")];e[$c("0x13")]($c("0x2e"),Hc),e[$c("0x13")]("trackChanges.disableComments",!1),this[$c("0x55")]=e[$c("0xc")]($c("0x28"))}[$c("0x5")](t,e){0===this[$c("0xa")].size&&setTimeout((()=>{for(const[t,e]of this[$c("0xa")]){const n=this[$c("0x69")][$c("0x36")](t);n||e?n&&e&&this[$c("0x5e")](t):this[$c("0x50")](t)}this[$c("0x54")][$c("0x49")][$c("0xc")]($c("0x1c"))[$c("0x53")](),this[$c("0x21")](),this[$c("0xa")][$c("0x6a")]()}),10),this[$c("0xa")][$c("0x14")](t,e)}[$c("0x2b")](){const t=this[$c("0x54")],e=t[$c("0x49")][$c("0xc")]($c("0x2a")),n=t[$c("0x49")][$c("0xc")]("Annotations"),r=t[$c("0x49")][$c("0xc")]($c("0x1c")),o=t[$c("0x49")][$c("0xc")]("CommentsRepository");t.ui[$c("0x1a")][$c("0x59")]($c("0x63"),(t=>this._createUIButton(t))),r[$c("0xb")]((()=>{const t=[];for(const[e,n]of Array[$c("0x16")](this._suggestionToController)){const r=e[$c("0x1d")](),o=[];for(const t of r){if(!t[$c("0x3")])continue;if(t[$c("0x7")]){o.push(...t[$c("0x9")]());continue}const e=t[$c("0x4d")]();if(o[$c("0x0")]>0){const t=o[0].getJoined(e);if(t){o[0]=t;continue}}o[$c("0x40")](e)}t[$c("0x40")]([n[$c("0xd")],o])}return t})),this[$c("0x32")](e,$c("0x5b"),((t,e)=>{this[$c("0x32")](e,"change:previous",((t,n,r,o)=>{e[$c("0x3")]&&(null==r?(this[$c("0x5a")](o[$c("0xe")]),this[$c("0x5")](e,!1)):(this[$c("0x5a")](r[$c("0xe")]),null==o&&this[$c("0x5")](e,!0)))})),null!==e[$c("0x33")]?this[$c("0x5a")](e[$c("0xe")]):this[$c("0x5")](e,!1)})),this[$c("0x32")](e,$c("0x15"),((t,e,n)=>{this[$c("0x3c")](e,$c("0xf")),this[$c("0xa")][$c("0x3a")](e),this[$c("0x69")][$c("0x36")](e)&&this._destroyController(e),n&&this._updateController(n.head)})),this[$c("0x32")](e,$c("0x57"),((t,e)=>{this[$c("0x5a")](e)})),this[$c("0x32")](n,$c("0x5d"),(()=>{this[$c("0x21")]()})),this[$c("0x32")](o,$c("0x58"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e[$c("0x27")](n))return;const o=e[$c("0x66")](n);this[$c("0x69")][$c("0xc")](o).view.focus()}),{priority:"lowest"})}[$c("0x21")](){const t=this[$c("0x54")][$c("0x49")][$c("0xc")]("Annotations"),e=this[$c("0x54")][$c("0x49")].get($c("0x2a")),n=Array.from(t[$c("0x11")],(t=>t.innerView)).filter((t=>this[$c("0x2f")][$c("0x36")](t))),r=[];for(const t of n){const e=this[$c("0x2f")][$c("0xc")](t)[$c("0x5f")][$c("0x1d")]();r[$c("0x40")](...e[$c("0x48")](((t,e)=>[...t,...e[$c("0x1e")]()]),[]))}e[$c("0x46")]=r}_createUIButton(t){const n=(0,o.createDropdown)(t,o.SplitButtonView),r=this.editor[$c("0x4f")].get($c("0x63")),i=Jr(t,$c("0x3d"));n[$c("0x1b")][$c("0x14")]({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[$c("0x10")]($c("0x60")).to(r,$c("0x6b")),n.buttonView.on($c("0x64"),(()=>{r[$c("0x64")](),this[$c("0x54")][$c("0x41")][$c("0xd")][$c("0x5c")]()}));const s=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:i,commandName:$c("0x63")}},{type:$c("0x19")},{type:$c("0x68"),model:{withText:!0,label:Jr(t,$c("0x45")),commandName:$c("0x17")}},{type:$c("0x68"),model:{withText:!0,label:Jr(t,$c("0x3b")),commandName:$c("0x30")}},{type:$c("0x68"),model:{withText:!0,label:Jr(t,$c("0x56")),commandName:$c("0x2c")}},{type:$c("0x68"),model:{withText:!0,label:Jr(t,"Discard all selected suggestions"),commandName:$c("0x1f")}}];for(const t of x){let e={type:$c("0x19")};if(t[$c("0x5f")]){const n=new o.Model(t[$c("0x5f")]),r=this[$c("0x54")].commands[$c("0xc")](n.commandName);n[$c("0x10")]("isOn",$c("0x37")).to(r,$c("0x6b"),$c("0x37")),e={type:t.type,model:n}}s[$c("0x59")](e)}(0,o.addListToDropdown)(n,s);const a=x[$c("0x67")]((t=>null!=t[$c("0x5f")])).map((t=>this[$c("0x54")].commands[$c("0xc")](t.model[$c("0x38")]))),c=n[$c("0x1b")];return c[$c("0x23")][$c("0x4b")]($c("0x37")),c[$c("0x4c")][$c("0x4b")]($c("0x37")),c[$c("0x23")].bind($c("0x37")).to(r,$c("0x37")),c.arrowView.bind($c("0x37"))[$c("0x31")](a,$c("0x37"),((...t)=>t.some((t=>t)))),n.on($c("0x64"),(t=>{this.editor[$c("0x64")](t.source.commandName),this[$c("0x54")][$c("0x41")][$c("0xd")][$c("0x5c")]()})),n}[$c("0x50")](t){const e=this[$c("0x54")],n=e.config,r=e[$c("0x49")][$c("0xc")]($c("0x52")),o=e[$c("0x49")][$c("0xc")]($c("0x61")),s=e[$c("0x49")].get("EditorAnnotations"),x=e[$c("0x49")][$c("0xc")](i.Users).me,a=n[$c("0xc")]($c("0x63"))[$c("0x26")],{CommentsListView:c,CommentThreadInputView:l}=e[$c("0x49")].get($c("0x47"));let u,d;this[$c("0x8")][$c("0x36")](t.id)?(d=this[$c("0x8")][$c("0xc")](t.id),u=d[$c("0x65")]):(u=new a(e[$c("0x62")],t,x,{disableComments:this._disableComments,editorConfig:n[$c("0xc")]($c("0x4e")),maxCommentsWhenCollapsed:n.get($c("0x34")),maxThreadTotalWeight:n[$c("0xc")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[$c("0xc")]($c("0x25")),formatDateTime:(0,i.getDateTimeFormatter)(n[$c("0xc")]("locale")),CommentView:n[$c("0xc")]($c("0x29"))[$c("0x35")],CommentsListView:c,CommentThreadInputView:l}),u[$c("0x43")].on($c("0x64"),(()=>{e[$c("0x41")][$c("0xd")][$c("0x5c")]()})),u[$c("0x6d")].on("execute",(()=>{e.editing.view[$c("0x5c")]()})),d=r[$c("0x39")](this[$c("0x54")][$c("0x62")],u),d[$c("0x10")]("isDirty").to(u,"isDirty"),d.bind($c("0x0")).to(u),d.bind($c("0x3e")).to(u,$c("0x3e"),(t=>"suggestion-"+t)),this[$c("0x8")][$c("0x14")](t.id,d));const g=o[$c("0x2")](t.commentThread,u),f=new wc(e,t,u,g),m=t[$c("0x1d")]()[$c("0x67")]((t=>t[$c("0x3")]));u[$c("0x22")]=e.plugins[$c("0xc")]("TrackChangesEditing")[$c("0x2d")][$c("0x18")](m),this[$c("0x69")][$c("0x14")](t,f),this._viewToController.set(u,f);const h=r[$c("0x6")]({view:d,target:()=>{const n=[],r=t[$c("0x1d")]()[$c("0x67")]((t=>t[$c("0x3")]));for(const t of r)n.push(...t[$c("0x4")]());return(0,i.getAllMarkersDomElementsSorted)(e[$c("0x41")],n)},type:()=>"suggestion-"+f[$c("0xd")][$c("0x3e")]});o[$c("0x1")](u,h),r[$c("0x59")](h),s[$c("0x24")](h)}[$c("0x5e")](t){const e=this[$c("0x54")][$c("0x49")].get($c("0x61")),n=this[$c("0x54")][$c("0x49")][$c("0xc")]("Annotations"),r=this[$c("0x69")][$c("0xc")](t),o=r[$c("0xd")],i=n.getByInnerView(o);e[$c("0x51")](o),i&&n[$c("0x4a")](i),this._suggestionToController.delete(t),this[$c("0x2f")][$c("0x3a")](o),r[$c("0x42")]()}[$c("0x5a")](t){if(!t[$c("0x3")]||!this._suggestionToController[$c("0x36")](t))return;const e=this[$c("0x54")][$c("0x49")][$c("0xc")]($c("0x2a")),n=this._suggestionToController[$c("0xc")](t),r=t[$c("0x1d")]();n[$c("0xd")][$c("0x22")]=e[$c("0x2d")][$c("0x18")](r)}[$c("0x42")](){for(const t of this._suggestionToController.keys())this[$c("0x5e")](t);for(const t of this[$c("0x8")][$c("0x12")]())t.mainView[$c("0x42")]();super[$c("0x42")]()}}var Yc,Jc,Qc=["TrackChanges","editor","getSuggestions","requires","addSuggestionData","pluginName","adapter","get","getSuggestion","plugins"];Yc=Qc,Jc=372,function(t){for(;--t;)Yc.push(Yc.shift())}(++Jc);var tl=function(t,e){return Qc[t-=0]};class el extends t.Plugin{static get[tl("0x1")](){return[hc,Zc,"Comments"]}static get[tl("0x3")](){return tl("0x8")}set[tl("0x4")](t){this.editor[tl("0x7")][tl("0x5")](hc)[tl("0x4")]=t}get[tl("0x4")](){return this.editor[tl("0x7")][tl("0x5")](hc)[tl("0x4")]}addSuggestion(t){return this[tl("0x9")].plugins[tl("0x5")](hc)[tl("0x2")](t)}[tl("0x0")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[tl("0x7")][tl("0x5")](hc).getSuggestions({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[tl("0x9")][tl("0x7")].get(hc)[tl("0x6")](t)}}const nl=["users","result","editorCreator","rootsAttributes","destroy","getDataWithAcceptedSuggestions","create","pluginName","get","getUser","Pagination","name","set","useAnonymousUser","acceptAllSuggestions","reduce","track-changes-data-invalid-editor-creator","execute","getRootsAttributes","createDocumentFragment","data","CommentsRepository","getSuggestions","TrackChangesEditing","TrackChangesDataGetter","config","_adapter","constructor","editor","map","getFullData","define","document","end","plugins","model","trackChangesData","appendChild","div","init","push","TrackChangesData","getRootNames","getDataWithDiscardedSuggestions","trackChangesData.editorCreator"];var rl,ol;rl=nl,ol=421,function(t){for(;--t;)rl.push(rl.shift())}(++ol);const il=function(t,e){return nl[t-=0]},sl=[il("0x27")];class xl extends t.Plugin{static get requires(){return[hc]}static get[il("0x24")](){return il("0x19")}[il("0x17")](){const t=this[il("0xc")];if(t.config[il("0xf")](il("0x1c"),(e=>{const n=t[il("0x13")][il("0x10")].getRootNames()[il("0x2c")](((t,e)=>(t[e]="",t)),{});return t[il("0xb")][il("0x23")](n,e)})),"function"!=typeof t[il("0x9")][il("0x25")](il("0x14"))[il("0x1f")])throw new e.CKEditorError(il("0x0"))}[il("0x22")](t){return ll(this[il("0xc")],!0,t)}[il("0x1b")](t){return ll(this[il("0xc")],!1,t)}}class al extends t.Plugin{static get[il("0x24")](){return il("0x8")}constructor(t){super(t),this[il("0x1e")]=il("0x11")}[il("0x17")](){this.editor[il("0x12")][il("0x25")](il("0x5"))[il("0xa")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[il("0x12")][il("0x25")](il("0x7"))[il("0xa")]=null}}function cl(t){return void 0!==t[il("0x2")]}async function ll(t,e,n){const r=(0,i.sanitizeEditorConfig)(t,sl);r[il("0x12")][il("0x18")](hc,al),r[il("0x20")]=cl(t)?t[il("0x2")]():void 0;const o=document[il("0x3")](),s=t[il("0x9")].get(il("0x14"))[il("0x1f")],x=await s(r,(()=>function(t){const e=document.createElement(il("0x16"));return t[il("0x15")](e),e}(o)));!function(t,e){const n=t[il("0x13")][il("0x10")][il("0x1a")]()[il("0x2c")](((e,n)=>(e[n]=t[il("0x4")][il("0x25")]({rootName:n}),e)),{}),r=t[il("0x12")][il("0x25")]("Users")[il("0x1d")][il("0xd")]((t=>({id:t.id,name:t[il("0x28")]}))),o=t[il("0x12")].get(il("0x7"))[il("0x6")]({skipNotAttached:!0,toJSON:!0}),i=e[il("0x12")][il("0x25")]("Users"),s=e[il("0x12")][il("0x25")](il("0x7"));for(const t of r)i[il("0x26")](t.id)||i.addUser(t);i.me||i[il("0x2a")]();for(const t of o)s.addSuggestionData(t);e[il("0x4")][il("0x29")](n)}(t,x),x[il("0x1")](e?il("0x2b"):"discardAllSuggestions");const a=cl(x)?x[il("0xe")](n):x[il("0x4")][il("0x25")](n);return await x[il("0x21")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();
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:()=>Pc,TrackChanges:()=>el,TrackChangesData:()=>xl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),r=n(273),i=n(417),s=n(492),x=n(995);const a=["execute","_enableCommands","_enabledCommands","has","refresh","_disableUnsupportedCommands","value","clearForceDisabled","commands","TrackChangesCommand","isEnabled"];var c,l;c=a,l=213,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("0x9")]=e,this[u("0x2")]=!1,this[u("0x0")](),this._isEnabledBasedOnSelection=!1}refresh(){this[u("0x6")]=!0}[u("0x7")](){this.value=!this.value,this[u("0x2")]?this[u("0x1")]():this[u("0x8")]()}[u("0x1")](){for(const t of this.editor[u("0x4")][u("0x4")]())t.affectsData&&!this[u("0x9")][u("0xa")](t)&&t.forceDisabled(u("0x5"))}[u("0x8")](){for(const t of this.editor[u("0x4")][u("0x4")]())t.affectsData&&!this[u("0x9")][u("0xa")](t)&&t[u("0x3")](u("0x5"))}}const g=["plugins","getRanges","execute","get","_suggestions","model","TrackChangesEditing","acceptSuggestion","track-changes-accept-suggestion-not-found","canEditAt","editor"];var f,m;f=g,m=201,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[h("0x1")]=e,this.refresh(),this._isEnabledBasedOnSelection=!1}refresh(){this.isEnabled=!0}[h("0xa")](t){const n=this[h("0x1")][h("0x0")](t);if(!n)throw new e.CKEditorError(h("0x5"),this);const o=n[h("0x9")]();this[h("0x7")][h("0x2")][h("0x6")](o)&&this.editor[h("0x8")][h("0x0")](h("0x3"))[h("0x4")](n)}}const b=["discardSuggestion","_isEnabledBasedOnSelection","track-changes-discard-suggestion-not-found","execute","isEnabled","canEditAt","getRanges","_suggestions","model","get","editor","refresh"];var E,_;E=b,_=369,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0xa")]=e,this[T("0x2")](),this[T("0x4")]=!1}[T("0x2")](){this[T("0x7")]=!0}[T("0x6")](t){const n=this._suggestions[T("0x0")](t);if(!n)throw new e.CKEditorError(T("0x5"),this);const o=n[T("0x9")]();this.editor[T("0xb")][T("0x8")](o)&&this[T("0x1")].plugins[T("0x0")]("TrackChangesEditing")[T("0x3")](n)}}const C=["isCollapsed","isTouching","type","push","execute","from","createRange","createPositionAfter","join","getRanges","isObject","content","length","splice","schema","color","deletion","isInContent","isMultiRange","change","isIntersecting","end","isArray"," [color ","start","sort"];var A,k;A=C,k=184,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0x17")](((t,e)=>I("0xe")==t[I("0x0")]&&I("0xe")!=e[I("0x0")]?-1:I("0xe")!=t[I("0x0")]&&I("0xe")==e.type?1:0))}function S(t,e){let n,o=0;const r=[],i=e[I("0xc")];for(;o<t.length;){const s=t[o],x=t[o+1];n||(n=e.createPositionBefore(s)),v(e,s,x)||(r[I("0x1")](e[I("0x4")](n,i[I("0x8")](s)?e.createPositionAfter(s):e.createPositionAt(s,I("0x13")))),n=null),o++}return r}function v(t,e,n){if(!n)return!1;const o=t[I("0x5")](e),r=t.createPositionBefore(n);return o[I("0x19")](r)}function N(t,e,n){for(;n[I("0xa")];){const o=n[I("0xb")](0,100);t[I("0x11")]((()=>{for(const t of o)t[I("0xf")]&&e[I("0x2")](t.id)}))}}const L=["_suggestions","some","execute","_isEnabledBasedOnSelection","values","model","from","editor","isInContent","_command","canEditAt","isEnabled","refresh"];var M,w;M=L,w=327,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("0x7")]=e,this[O("0xb")]=n,this[O("0xa")](),this[O("0x1")]=!1}[O("0xa")](){const t=Array[O("0x4")](this[O("0xb")][O("0x2")]())[O("0xc")]((t=>t[O("0x6")]));this.isEnabled=this[O("0x7")][O("0x9")]&&t}[O("0x0")](){const t=R(Array[O("0x4")](this[O("0xb")][O("0x2")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x5")][O("0x3")][O("0x8")](t))return}N(this[O("0x5")][O("0x3")],this[O("0x7")],t)}}const D=["_command","getRanges","editor","_suggestions","document","canEditAt","_selectedSuggestions","from","execute","values","model","selection"];var B,P;B=D,P=497,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("0x7")]=e,this[U("0xa")]=n,this[U("0x1")]=new Set,this.refresh(),this._isEnabledBasedOnSelection=!1}refresh(){const t=this[U("0x9")][U("0x5")][U("0xb")][U("0x6")],e=Array[U("0x2")](this[U("0xa")][U("0x4")]());this[U("0x1")]=function(t,e){const n=Array[I("0x3")](t[I("0x7")]()),o=new Set;for(const r of e)if(r.isInContent)for(const e of n)for(const n of r[I("0x7")]())(e[I("0x12")](n)||t[I("0x18")]&&!r[I("0x10")]&&r.next&&n[I("0x13")][I("0x19")](e[I("0x16")]))&&o.add(r);return o}(t,e),this.isEnabled=this[U("0x7")].isEnabled&&!!this._selectedSuggestions.size}[U("0x3")](){const t=R(Array[U("0x2")](this[U("0x1")]));for(const e of t){const t=e[U("0x8")]();if(!this[U("0x9")].model[U("0x0")](t))return}N(this[U("0x9")][U("0x5")],this._command,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,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return St(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const re=function(t,e,n){var o=t[e];oe.call(t,e)&&V(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const ie=function(t,e,n,o){var r=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var x=e[i],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?ne(n,x,a):re(n,x,a)}return n};const se=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===ke&&et.process;const Se=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var 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&&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),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=pn||fn&&Rn(fn.resolve())!=bn||mn&&Rn(new mn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const Sn=Rn;var 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]"==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(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 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 p=s?o(h,m,l,e,t,i):o(m,h,l,t,e,i);if(!(void 0===p?m===h||r(m,h,n,o,i):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return i.delete(t),i.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,r,i){var s=ge(t),x=ge(e),a=s?Do:Sn(t),c=x?Do:Sn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return i||(i=new Qt),s||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=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=["getContainedElement","@external","subType","type","addRange","getRanges","end","createdAt","_onAttributesChange","previous","filter","set","reduce","isMultiRange","length","_onDiscard","isIntersecting","split","_onAccept","change","_isDataLoaded","_markerNames","substr","onAccept","commentThread","setAttribute","markers","getFirstMarker","decorate","_model","map","accept","_saved","getAllAdjacentSuggestions","discard","creator","addMarkerName","removeMarker","onAttributesChange","start","hasComments","getMultiRangeId","getMarkerNames","push","data","isIntersectingWithRange","nodeBefore","next","getRange","attributes","authoredAt","author","removeMarkers","getMarkers","from","delete","getFirstRange","addMarker","nodeAfter"];var $o,Zo;$o=Xo,Zo=215,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("0x29")]=!1,this.id=e.id,this.type=e[Yo("0x18")],this[Yo("0x17")]=e[Yo("0x17")]||null,this[Yo("0xd")]=e.author,this.creator=e.creator||e.author,this.isExternal=Boolean(e[Yo("0xb")]&&e[Yo("0xb")][Yo("0x16")]),this.data=null,this[Yo("0x32")]=t,this[Yo("0x27")]=e[Yo("0x2c")],this[Yo("0x24")]=e.onDiscard,this[Yo("0x1d")]=e[Yo("0x0")],this._markerNames=new Set,this[Yo("0x1c")]=null,this[Yo("0x20")](Yo("0xc"),null),this[Yo("0x20")]("attributes",e.attributes||{}),this[Yo("0x20")](Yo("0x1e"),null),this[Yo("0x20")]("next",null),this.set(Yo("0x2d"),null),this[Yo("0x20")](Yo("0x35"),!1),this[Yo("0x31")](Yo("0x34")),this[Yo("0x31")](Yo("0x37"))}get head(){let t=this;for(;t[Yo("0x1e")];)t=t[Yo("0x1e")];return t}get[Yo("0x2")](){return!!this[Yo("0x2d")]&&this[Yo("0x2d")].length>0}get[Yo("0x22")](){return 0!=this[Yo("0x2a")].size&&6==Array[Yo("0x10")](this[Yo("0x2a")])[0][Yo("0x26")](":").length}get isInContent(){return null!==this[Yo("0x30")]()}[Yo("0x39")](t){this[Yo("0x2a")].add(t)}[Yo("0x4")](){return Array.from(this[Yo("0x2a")])}[Yo("0xf")](){return this[Yo("0x4")]().map((t=>this[Yo("0x32")][Yo("0x2f")].get(t)))[Yo("0x1f")]((t=>t))}getFirstMarker(){return this[Yo("0xf")]()[0]||null}[Yo("0xe")](){this[Yo("0x32")][Yo("0x28")]((t=>{for(const e of this[Yo("0xf")]())t[Yo("0x3a")](e)})),this[Yo("0x2a")].clear()}removeMarker(t){this[Yo("0x32")][Yo("0x28")]((e=>{e[Yo("0x3a")](t)})),this[Yo("0x2a")][Yo("0x11")](t)}[Yo("0x19")](t){const e="suggestion:"+this[Yo("0x18")]+":"+this[Yo("0x17")]+":"+this.id+":"+this[Yo("0x38")].id+":"+Jo[Yo("0x3")]();this[Yo("0x39")](e),this[Yo("0x32")].change((n=>{n[Yo("0x13")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Yo("0x7")](t){for(const e of this[Yo("0x1a")]())if(e[Yo("0x25")](t))return!0;return!1}getRanges(){return this[Yo("0xf")]()[Yo("0x33")]((t=>t[Yo("0xa")]()))}getItems(){return this[Yo("0x1a")]()[Yo("0x21")](((t,e)=>[...t,...e.getItems()]),[])}[Yo("0x12")](){var t;return(null===(t=this[Yo("0x30")]())||void 0===t?void 0:t[Yo("0xa")]())||null}[Yo("0x15")](){const t=this.getRanges();if(1!=t[Yo("0x23")])return null;const e=t[0],n=e[Yo("0x1")][Yo("0x14")],o=e[Yo("0x1b")][Yo("0x8")];return n instanceof s.Element?n!=o?null:n:null}accept(){this._onAccept(this[Yo("0x1a")](),this[Yo("0x6")],this.attributes),this[Yo("0xe")]()}[Yo("0x37")](){this[Yo("0x24")](this.getRanges(),this[Yo("0x6")],this[Yo("0xb")]),this[Yo("0xe")]()}[Yo("0x36")](){const t=[];let e=this.head;for(;e;)t[Yo("0x5")](e),e=e[Yo("0x9")];return t}[Yo("0x2e")](t,e){const n=eo(this[Yo("0xb")]);_o(n,t,e),Go(n,this[Yo("0xb")])||(this[Yo("0xb")]=n,this._onAttributesChange(n))}removeAttribute(t){const e=eo(this.attributes);qo(e,t),Go(e,this[Yo("0xb")])||(this.attributes=e,this[Yo("0x1d")](this[Yo("0xb")]))}toJSON(){return{id:this.id,type:this[Yo("0x17")]?this[Yo("0x18")]+":"+this[Yo("0x17")]:this[Yo("0x18")],authorId:this[Yo("0x38")].id,createdAt:this.createdAt,hasComments:this[Yo("0x2")],data:this.data,attributes:this[Yo("0xb")]}}static[Yo("0x3")](){return(0,e.uid)()[Yo("0x2b")](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=["isInContent","data","deletion","_attributeLabels","indexOf","function","$textProxy","_locale","replace","getFirstRange","type","element","*Remove format:* %0","$1 $2","item","_addDescriptionItems","pop","name","*Insert:* %0","format","EmptyContainer","getItemLabel","start","set","normal","_itemLabelsCallbacks","removeObject","skip","softBreak","_handleCustomCallbackDescription","_schema","has","isObject","remove","add","*Change to:* %0","registerElementLabel","join","_handleRenameSuggestionDescription","match","*Remove:* %0","addFormat","previousSibling","ELEMENT_SPACE","label","checkChild","*Merge:* %0","_handleInsertRemoveSuggestionDescription","matchingCallback","nextSibling","length","text","$text","get","isEmpty","elementEnd","insertion","nodeAfter","_handleAttributeSuggestionDescription","Object","subType","isEqual","_itemLabels","elementStart","addObject","getWalker","quantity","newValue","attribute","key","registerAttributeLabel","removeFormat","_customCallbacks","addContainer","push","Container","map"];var er,nr;er=tr,nr=138,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("0xb")]=[],this[or("0x1")]=new Map,this[or("0x29")]=[],this._attributeLabels=new Map,this[or("0x2e")]=t,this[or("0x17")]=e}getDescriptions(t){const e=[],n=new Set,o=new Set;for(let r=0;r<t[or("0x42")];r++){const i=t[r];if(!i[or("0x10")])continue;const s=this._handleCustomCallbackDescription(i);if(s){if(null!=i[or("0x4c")]){if(n[or("0x2f")](i[or("0x4c")]))continue;n[or("0x32")](i[or("0x4c")])}e.push(s)}else if(or("0x7")!=i.type)"insertion"!=i[or("0x1a")]&&or("0x12")!=i[or("0x1a")]||this[or("0x3f")](e,i,t[r+1]);else{const t=i[or("0x11")][or("0x8")];if(o[or("0x2f")](t))continue;o[or("0x32")](i.data[or("0x8")]),t==mc?this[or("0x36")](e,i):this._handleAttributeSuggestionDescription(e,i)}}return this._resolveDescriptionItems(e)}registerDescriptionCallback(t){this[or("0xb")][or("0xd")](t)}[or("0x34")](t,n,o=e.priorities[or("0x28")]){or("0x15")==typeof t?(0,e.insertToPriorityArray)(this[or("0x29")],{matchingCallback:t,label:n,priority:o}):this._itemLabels[or("0x27")](t,n)}[or("0x9")](t,e){this[or("0x13")][or("0x27")](t,e)}[or("0x25")](t,e=1){let n;for(const e of this[or("0x29")])if(e[or("0x40")](t)){n=e[or("0x3c")];break}return n||(n=this._itemLabels[or("0x45")](t[or("0x21")])),n?n(e):1!==e?e+" "+t[or("0x21")]+"s":""+t.name}[or("0x1f")](t,e){const n=e[or("0x19")]()[or("0x4")](),o=or("0x48")==e.type?"add":or("0x31");for(const e of n){const r=e[or("0x1e")],i=t[t[or("0x42")]-1];if(r.is(or("0x16")))i&&i.type[or("0x14")](or("0xe"))>-1&&t[or("0x20")](),i&&or("0x43")==i.type?i[o]+=r[or("0x11")]:t[or("0xd")]({type:or("0x43"),add:or("0x32")==o?r[or("0x11")]:"",remove:or("0x31")==o?r[or("0x11")]:""});else if(this[or("0x2e")][or("0x30")](r)){const s=r;if(i&&i.type.indexOf("Container")>-1&&t.pop(),or("0x47")==e[or("0x1a")])continue;i&&i[or("0x1a")]==o+"Object"&&i[or("0x1b")][or("0x21")]==s[or("0x21")]?i[or("0x5")]++:t[or("0xd")]({type:o+or("0x4b"),element:s,quantity:1}),n[or("0x2b")]((t=>!(or("0x47")==t.type&&t[or("0x1e")]==r)))}else if(this._schema[or("0x3d")](r,or("0x44"))||r.is("element",or("0x2c"))){const n=r;if("add"==o&&or("0x2")==e[or("0x1a")]||or("0x31")==o&&or("0x47")==e[or("0x1a")])continue;if(i&&-1==i[or("0x1a")].indexOf(or("0xe"))){or("0x43")==i[or("0x1a")]&&(i[o]+="\n");continue}let s;if(s=or("0x32")==o?n[or("0x41")]&&!this[or("0x2e")][or("0x30")](n.nextSibling)?n[or("0x41")]:null:n[or("0x3a")]&&!this[or("0x2e")].isObject(n[or("0x3a")])?n[or("0x3a")]:null,n[or("0x46")]||s&&s[or("0x46")]){const e=s&&s[or("0x46")]?s:n;i&&i[or("0x1a")]==o+"EmptyContainer"&&i[or("0x1b")][or("0x21")]==e.name?i.quantity++:t[or("0xd")]({type:o+or("0x24"),element:e,quantity:1})}else t.push({type:o+or("0xe"),element:n})}}}_resolveDescriptionItems(t){const e=this[or("0x17")],n=[],o=[],r=[];for(const i of t)switch(i[or("0x1a")]){case or("0x43"):if(i.add=i[or("0x32")][or("0x18")](/(\S)\u000A+(\S)/g,or("0x1d"))[or("0x18")](/\u000A/g,""),i.remove=i[or("0x31")].replace(/(\S)\u000A+(\S)/g,or("0x1d"))[or("0x18")](/\u000A/g,""),""!=i.add&&""!=i[or("0x31")]){n.push({type:"replace",content:Qo(e,"REPLACE_TEXT",['"'+i[or("0x31")]+'"','"'+i.add+'"'])});continue}if(null!=i.add[or("0x37")](/^ +$/)){n.push({type:or("0x48"),content:Qo(e,or("0x22"),Qo(e,"ELEMENT_SPACE",i[or("0x32")][or("0x42")]))});continue}if(null!=i.remove.match(/^ +$/)){n.push({type:or("0x12"),content:Qo(e,or("0x38"),Qo(e,or("0x3b"),i[or("0x31")][or("0x42")]))});continue}if(""!=i.add){n.push({type:or("0x48"),content:Qo(e,or("0x22"),'"'+i[or("0x32")]+'"')});continue}n[or("0xd")]({type:or("0x12"),content:Qo(e,or("0x38"),'"'+i[or("0x31")]+'"')});continue;case"addEmptyContainer":case or("0x3"):n[or("0xd")]({type:or("0x48"),content:Qo(e,or("0x22"),this[or("0x25")](i[or("0x1b")],i[or("0x5")]))});continue;case"removeEmptyContainer":case or("0x2a"):n[or("0xd")]({type:"deletion",content:Qo(e,or("0x38"),this[or("0x25")](i[or("0x1b")],i[or("0x5")]))});continue;case or("0xc"):n[or("0xd")]({type:or("0x48"),content:Qo(e,"*Split:* %0",this[or("0x25")](i[or("0x1b")],i[or("0x5")]))});continue;case"removeContainer":n[or("0xd")]({type:or("0x12"),content:Qo(e,or("0x3e"),this[or("0x25")](i[or("0x1b")],i[or("0x5")]))});continue;case"addFormat":o.push(i[or("0x8")]);continue;case or("0xa"):r.push(i[or("0x8")]);continue;default:n[or("0xd")](i)}if(o[or("0x42")]){const t=o[or("0xf")]((t=>this[or("0x13")][or("0x2f")](t)?this[or("0x13")][or("0x45")](t):t))[or("0x35")](", ");n[or("0xd")]({type:or("0x23"),content:Qo(this._locale,"*Set format:* %0",t)})}if(r.length){const t=r[or("0xf")]((t=>this[or("0x13")][or("0x2f")](t)?this[or("0x13")][or("0x45")](t):t))[or("0x35")](", ");n[or("0xd")]({type:or("0x23"),content:Qo(this[or("0x17")],or("0x1c"),t)})}return n}[or("0x2d")](t){for(const e of this[or("0xb")]){const n=e(t);if(n&&"type"in n)return n}}[or("0x4a")](t,e){const n=e[or("0x11")],o=void 0===n[or("0x6")]?or("0xa"):or("0x39");t[or("0xd")]({type:o,key:n[or("0x8")]})}[or("0x36")](t,e){t[or("0xd")]({type:"format",content:Qo(this[or("0x17")],or("0x33"),this.getItemLabel(e[or("0x19")]().start[or("0x49")],1))})}[or("0x3f")](t,e,n){if(this[or("0x1f")](t,e),n&&n[or("0x19")]()&&!e.getFirstRange().end[or("0x0")](n.getFirstRange()[or("0x26")])){const n=t[t.length-1],o="insertion"==e[or("0x1a")]?or("0x32"):or("0x31");n&&"text"==n.type&&(n[o]+="\n")}}}const ir=["plugins","TrackChangesEditing","get","showAIAssistant","editor"];var sr,xr;sr=ir,xr=100,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[ar("0x4")],e=t[ar("0x0")][ar("0x2")](ar("0x1"));t.commands.get(ar("0x3"))&&e.enableCommand(ar("0x3"))}}const lr=["*Format:* %0","FORMAT_ALIGN_TO_RIGHT","_registerLegacyDescription","justify","_descriptionFactory","TrackChangesEditing","formatBlock","commandName","FORMAT_ALIGNMENT","afterInit","center","locale","registerDescriptionCallback","has","format","get","_enableDefaultAttributesIntegration","registerAttributeLabel","commandParams","FORMAT_ALIGN_TO_LEFT","right","left","plugins","alignment","FORMAT_JUSTIFY_TEXT","FORMAT_ALIGN_TO_CENTER"];var ur,dr;ur=lr,dr=203,function(t){for(;--t;)ur.push(ur.shift())}(++dr);const gr=function(t,e){return lr[t-=0]};class fr extends t.Plugin{[gr("0xe")](){const t=this.editor,e=t[gr("0x10")];if(!t[gr("0x1")][gr("0x12")]("AlignmentEditing"))return;const n=t.plugins[gr("0x14")](gr("0xa"));n[gr("0x15")](gr("0x2"),[],[gr("0x2")]),n._descriptionFactory[gr("0x16")](gr("0x2"),Qo(e,gr("0xd"))),this[gr("0x7")]()}[gr("0x7")](){const t=this.editor,e=t[gr("0x10")];t[gr("0x1")][gr("0x14")](gr("0xa"))[gr("0x9")][gr("0x11")]((t=>{if(gr("0xb")!=t.type)return;const{data:n}=t;if(n&&gr("0x2")==n[gr("0xc")]){const t=n[gr("0x17")][0].value;return{type:gr("0x13"),content:Qo(e,gr("0x5"),function(t){switch(t){case gr("0x0"):return Qo(e,gr("0x18"));case gr("0x19"):return Qo(e,gr("0x6"));case gr("0xf"):return Qo(e,gr("0x4"));case gr("0x8"):return Qo(e,gr("0x3"))}}(t))}}}))}}const mr=["registerDescriptionCallback","FORMAT_STRIKETHROUGH","plugins","has","underline","FORMAT_SUPERSCRIPT","FORMAT_ITALIC","FORMAT_BOLD","formatInline","locale","superscript","FORMAT_","*Remove format:* %0","*Format:* %0","get","_descriptionFactory","commandParams","TrackChangesEditing","SuperscriptEditing","FORMAT_UNDERLINE","format","subscript","ItalicEditing","UnderlineEditing","_registerLegacyDescription","bold","FORMAT_SUBSCRIPT","FORMAT_CODE","editor","strikethrough","code","italic","forceValue","slice","BoldEditing","afterInit"];var hr,pr;hr=mr,pr=435,function(t){for(;--t;)hr.push(hr.shift())}(++pr);const br=function(t,e){return mr[t-=0]},Er=[br("0x1f"),br("0x13"),br("0x14"),"CodeEditing","StrikethroughEditing","SubscriptEditing",br("0xf")];class _r extends t.Plugin{[br("0x20")](){const t=this[br("0x19")],e=t[br("0x23")][br("0xb")](br("0xe")),n=t[br("0x6")];for(const o of Er){if(!t[br("0x23")][br("0x0")](o))continue;const r=o[br("0x1e")](0,-7).toLowerCase(),i=br("0x8")+r.toUpperCase();e._enableDefaultAttributesIntegration(r,[r]),e[br("0xc")].registerAttributeLabel(r,Qo(n,i))}this[br("0x15")]()}[br("0x15")](){const t=this.editor,e=t[br("0x6")],n=t.plugins.get(br("0xe"));function o(t,o){n[br("0xc")][br("0x21")]((n=>{if(br("0x5")!=n.type)return;const{data:r}=n;return r&&r.commandName===t?r[br("0xd")][0][br("0x1d")]?{type:"format",content:Qo(e,br("0xa"),o)}:{type:br("0x11"),content:Qo(e,br("0x9"),o)}:void 0}))}o(br("0x16"),Qo(e,br("0x4"))),o(br("0x1c"),Qo(e,br("0x3"))),o(br("0x1"),Qo(e,br("0x10"))),o(br("0x1b"),Qo(e,br("0x18"))),o(br("0x1a"),Qo(e,br("0x22"))),o(br("0x12"),Qo(e,br("0x17"))),o(br("0x7"),Qo(e,br("0x2")))}}const Tr=["enableCommand","value","checkChild","schema","ELEMENT_BLOCK_QUOTE","filter","has","name","_descriptionFactory","commandName","selection","commands","document","editor","from","forceValue","*Remove format:* %0","get","commandParams","$root","model","BlockQuoteEditing","locale","format","*Set format:* %0","plugins","change","blockQuote","parent","getSelectedBlocks"];var yr,Cr;yr=Tr,Cr=312,function(t){for(;--t;)yr.push(yr.shift())}(++Cr);const Ar=function(t,e){return Tr[t-=0]};class kr extends t.Plugin{afterInit(){const t=this[Ar("0x1")],e=t[Ar("0xa")];if(!t[Ar("0xd")][Ar("0x18")](Ar("0x9")))return;const n=t[Ar("0xd")][Ar("0x5")]("TrackChangesEditing"),o=this.editor[Ar("0x1d")][Ar("0x5")]("blockQuote");n[Ar("0x12")]("blockQuote",((e,r={})=>{const i=this[Ar("0x1")][Ar("0x8")][Ar("0x0")][Ar("0x1c")],s=r&&void 0!==r[Ar("0x3")]?r.forceValue:!o[Ar("0x13")];let x=[];if(s){const e=Array[Ar("0x2")](i[Ar("0x11")]())[Ar("0x17")]((t=>Ir(t)||function(t,e){const n=e[Ar("0x14")](t[Ar("0x10")],Ar("0xf")),o=e[Ar("0x14")]([Ar("0x7"),Ar("0xf")],t);return n&&o}(t,this.editor.model[Ar("0x15")])));x=S(e,t[Ar("0x8")])}else{const e=Array.from(i[Ar("0x11")]()).filter((t=>Ir(t)));x=S(e,t.model)}t[Ar("0x8")][Ar("0xe")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ar("0xf"),commandParams:[{forceValue:s}]})}))})),n[Ar("0x1a")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Ar("0xf")==n[Ar("0x1b")]){const t=Qo(e,Ar("0x16"));return n[Ar("0x6")][0][Ar("0x3")]?{type:Ar("0xb"),content:Qo(e,Ar("0xc"),t)}:{type:Ar("0xb"),content:Qo(e,Ar("0x4"),t)}}}))}}function Ir(t){return Ar("0xf")==t[Ar("0x10")][Ar("0x19")]}const Rr=["plugins","enableCommand","afterInit","editor","commands","TrackChangesEditing"];var Sr,vr;Sr=Rr,vr=364,function(t){for(;--t;)Sr.push(Sr.shift())}(++vr);const Nr=function(t,e){return Rr[t-=0]};class Lr extends t.Plugin{[Nr("0x4")](){const t=this[Nr("0x5")];t[Nr("0x0")].get("ckbox")&&t[Nr("0x2")].get(Nr("0x1"))[Nr("0x3")]("ckbox")}}const Mr=["rootElement","getSelectedBlocks","commandParams","from","forceValue","ELEMENT_CODE_BLOCK","*Set format:* %0","schema","CodeBlock","formatBlock","codeBlock","checkChild","document","get","*Remove format:* %0","format","value","toLowerCase","find","commandName","parent","editor","isLimit","afterInit","enableCommand","selection","_descriptionFactory","languages","name","indentCodeBlock","model","plugins","filter","language","TrackChangesEditing","registerElementLabel","blockName"];var wr,Or;wr=Mr,Or=106,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{[Fr("0x1c")](){const t=this[Fr("0x1a")];if(!t.plugins.has(Fr("0xd")))return;const e=t[Fr("0x24")][Fr("0x12")](Fr("0x2")),n=t.locale,o=t.config.get(Fr("0xf"))[Fr("0x20")],r=t.commands[Fr("0x12")](Fr("0xf"));e[Fr("0x1d")](Fr("0x22")),e[Fr("0x1d")]("outdentCodeBlock"),e.enableCommand("codeBlock",((n,i={})=>{const s=t[Fr("0x23")],x=t[Fr("0x23")][Fr("0x11")][Fr("0x1e")],a=i&&void 0!==i[Fr("0x9")]?i[Fr("0x9")]:!r[Fr("0x15")];let c;i[Fr("0x1")]||(i[Fr("0x1")]=o[0][Fr("0x1")]),c=a?Array[Fr("0x8")](x[Fr("0x6")]())[Fr("0x0")]((t=>{return Br(t)||(e=t,n=s[Fr("0xc")],!e.is(Fr("0x5"))&&!n[Fr("0x1b")](e)&&n[Fr("0x10")](e[Fr("0x19")],"codeBlock"));var e,n})):Array[Fr("0x8")](x[Fr("0x6")]())[Fr("0x0")]((t=>Br(t)));const l=S(c,s);s.change((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Fr("0xf"),commandParams:[{...i,forceValue:a}],formatGroupId:Fr("0x4")})}))})),e[Fr("0x1f")][Fr("0x3")](Fr("0xf"),(t=>Qo(n,Fr("0xa"),t))),e[Fr("0x1f")].registerDescriptionCallback((t=>{if(Fr("0xe")!=t.type)return;const e=n.t,{data:r}=t;if(!r||Fr("0xf")!=r[Fr("0x18")])return;const i=r[Fr("0x7")][0][Fr("0x1")],s=e(o[Fr("0x17")]((t=>t[Fr("0x1")]===i)).label)[Fr("0x16")]();return r[Fr("0x7")][0][Fr("0x9")]?{type:Fr("0x14"),content:Qo(n,Fr("0xb"),Qo(n,Fr("0xa"),1)+" ("+s+")")}:{type:Fr("0x14"),content:Qo(n,Fr("0x13"),Qo(n,"ELEMENT_CODE_BLOCK",1))}}))}}function Br(t){return Fr("0xf")==t[Fr("0x21")]}const Pr=["editor","plugins","TrackChangesEditing","has","enableCommand","addCommentThread","CommentsEditing","get"];var Ur,jr;Ur=Pr,jr=396,function(t){for(;--t;)Ur.push(Ur.shift())}(++jr);const Gr=function(t,e){return Pr[t-=0]};class Vr extends t.Plugin{afterInit(){const t=this[Gr("0x4")];t.plugins[Gr("0x7")](Gr("0x2"))&&t[Gr("0x5")][Gr("0x3")](Gr("0x6"))[Gr("0x0")](Gr("0x1"))}}var Hr=n(181);const zr=["item","listItem","getCustomProperty","get","addClass","getWalker","name","isAtEnd","consumable","writer","TrackChangesEditing","type","activeMarkers","addHighlight","mapper","ck-suggestion-marker--active","createRangeOn","insert","nextSibling","createUIElement","span","listIndent","model","markerRange","getItems","push","isBlock","plugins","hasAttribute","ck-suggestion-marker-","test","markerName","parent","previousPosition","getAttribute","isLimit"];var Wr,Kr;Wr=zr,Kr=415,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("0x5")]())r[qr("0x9")](t)&&o[qr("0x6")](n[qr("0x21")](r));return o}function $r(t,e,{showActiveMarker:n=!0}={}){const o=t[qr("0x8")][qr("0x14")](qr("0x1b"));return(r,i,s)=>{if(!s[qr("0x19")][qr("0xb")](i.markerRange,r[qr("0x17")]))return;const x=i[qr("0x4")][qr("0x16")](),a=i[qr("0x4")].start,c=t[qr("0x3")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[qr("0x11")];d=d||c.isContent(e);const n=s[qr("0x1f")].toViewElement(e);if(n&&n[qr("0x13")](qr("0x1e")))return;"elementEnd"==t[qr("0x1c")]&&c[qr("0x7")](e)&&!c[qr("0x10")](e)&&(e.nextSibling||a[qr("0x18")]?l&&l[qr("0xd")]==e||(l=e,f(t.previousPosition),g=!0):u=u||t[qr("0xe")])}function f(t){const r=s[qr("0x1a")][qr("0x0")](qr("0x1"),{class:qr("0xa")+e}),x=s[qr("0x1f")].toViewPosition(t);n&&o[qr("0x1d")].includes(i[qr("0xc")])&&s.writer[qr("0x15")](qr("0x20"),r),s[qr("0x1a")][qr("0x22")](x,r),s[qr("0x1f")].bindElementToMarker(r,i[qr("0xc")])}d||g||!u||f(u)}}const Zr=["root","plugins","document","detach","unbindElementFromMarkerName","createRange","markerName","TrackChangesEditing","showSuggestionHighlights","isCollapsed","mapper","rootName","bind","uiElement","buffer","merge","end","editing","high","get","deleteForward","fromRange","enableCommand","model","unlock","downcastDispatcher","removeMarker:suggestion:deletion","options","selection","lock","start","editor","delete","addMarker:suggestion:deletion","$graveyard","remove","forward","requires","createSelection","modifySelection","init","getFirstRange"];var Yr,Jr;Yr=Zr,Jr=352,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("0x15")](){return[Hr.Delete]}[Qr("0x18")](){const t=this[Qr("0xf")],e=t[Qr("0x1b")][Qr("0x3")](Qr("0x21"));e[Qr("0x6")](Qr("0x10"));const n=t.commands.get(Qr("0x4"));e[Qr("0x6")](Qr("0x4"),((e,o={})=>{const r=t[Qr("0x7")][Qr("0x16")](t.model[Qr("0x1c")][Qr("0xc")]);r[Qr("0x23")]&&t[Qr("0x7")][Qr("0x17")](r,{direction:Qr("0x14"),unit:o.unit});const i=r[Qr("0x19")](),x=s.LiveRange[Qr("0x5")](i);let a;e(o),a=Qr("0x12")==x[Qr("0x1a")][Qr("0x25")]?t.model[Qr("0x1f")](i[Qr("0xe")]):t[Qr("0x7")].createRange(x[Qr("0xe")],x[Qr("0x0")]),x[Qr("0x1d")](),t[Qr("0x7")].enqueueChange(n[Qr("0x28")].batch,(t=>{n[Qr("0x28")][Qr("0xd")](),t.setSelection(t[Qr("0x1f")](a.end)),n[Qr("0x28")][Qr("0x8")]()}))})),t[Qr("0x1")].downcastDispatcher.on(Qr("0x11"),$r(t,Qr("0x29")),{priority:Qr("0x2")}),t.data[Qr("0x9")].on(Qr("0x11"),((e,n,o)=>{o[Qr("0xb")][Qr("0x22")]&&$r(t,Qr("0x29"),{showActiveMarker:!1})[Qr("0x26")](this)(e,n,o)}),{priority:Qr("0x2")}),t[Qr("0x1")][Qr("0x9")].on(Qr("0xa"),((t,e,n)=>{const o=n[Qr("0x24")].markerNameToElements(e[Qr("0x20")]);if(o)for(const t of o)t.is(Qr("0x27"))&&(n[Qr("0x24")][Qr("0x1e")](t,e[Qr("0x20")]),n.writer[Qr("0x13")](t))}),{priority:Qr("0x2")})}}const ei=["registerElementLabel","mergeListItemBackward","refresh","enableCommand","has","numberedList","*Format:* insert into %0","registerCustomCallback","*Format:* remove from %0","listItemId","expandListBlocksToCompleteList","end","deletion","createRange","indentList","nodeAfter","execute","ELEMENT_","*Indent:* %0","selection","formatBlock","format","registerDescriptionCallback","mergeListItemForward","splitListItemAfter","get","map","value","findIndex","length","ELEMENT_NUMBERED_LIST","createPositionAt","fromRange","commands","schema","multipleBlocks","*Change to:* %0","TrackChangesEditing","add","ELEMENT_LIST_ITEM","isFirstBlockOfListItem","markMultiRangeBlockFormat","paragraph","DocumentListUtils","parent","before","document","commandParams","nextSibling","setSelection","getAttribute","start","config","splitListItemBefore","previousSibling","ELEMENT_BULLETED_LIST","locale","model","_descriptionFactory","hasAttribute","containsItem","*Merge:* %0","plugins","change","slice","accept","markBlockFormat","listType","getRanges","getFirstRange","bulletedList","after","type","editor","commandName","outdentList","from","getSelectedBlocks","documentList","listIndent","next"];var ni,oi;ni=ei,oi=389,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class ii extends t.Plugin{afterInit(){const t=this[ri("0x8")];if(!t[ri("0x4e")][ri("0x14")]("DocumentListEditing"))return;const e=t[ri("0x48")],n=t[ri("0x4e")][ri("0x29")](ri("0x35")),o=t[ri("0x4e")][ri("0x29")](ri("0x3b"));function r(e){return()=>{const r=t[ri("0x31")][ri("0x29")](e);if(r[ri("0x2b")]&&!t[ri("0x44")][ri("0x29")]("list.multiBlock"))return void t[ri("0x20")](ri("0x3a"),{});let i=Array[ri("0xb")](t.model[ri("0x3e")][ri("0x23")][ri("0xc")]());if(a(e)){i=o[ri("0x1a")](i);const t=[];for(const e of i)o[ri("0x38")](e)&&t.push(e);i=t}t[ri("0x49")][ri("0x4f")]((()=>{n[ri("0x39")](i,{commandName:e,commandParams:[{forceValue:!r[ri("0x2b")]}],formatGroupId:ri("0x2")},[],ri("0xd"))}))}}function i(e){return()=>{const o=function(t){let e=Array[ri("0xb")](t);const n=e[ri("0x2c")]((t=>!t[ri("0x4b")](ri("0x19"))));return n>-1&&(e=e[ri("0x50")](0,n)),e}(t.model[ri("0x3e")][ri("0x23")][ri("0xc")]()),r=o[o[ri("0x2d")]-1],i=t.model[ri("0x32")].isObject(r)?ri("0x6"):ri("0x1b"),s=t.model[ri("0x1d")](t[ri("0x49")][ri("0x2f")](o[0],ri("0x3d")),t.model[ri("0x2f")](r,i));t[ri("0x49")].change((()=>{n[ri("0x1")](s,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[ri("0x42")](ri("0xe"))>n[ri("0x42")](ri("0xe"));)e[ri("0x36")](t),t=t[ri("0x40")]}return Array[ri("0xb")](e)}(o))}))}}function x(e){return()=>{const o=t.model[ri("0x3e")][ri("0x23")][ri("0xc")]()[ri("0xf")]()[ri("0x2b")],r=t[ri("0x49")][ri("0x2f")](o,ri("0x3d")),i=t.model.createPositionAt(o,0),s=t[ri("0x49")][ri("0x1d")](r,i);t[ri("0x49")][ri("0x4f")]((()=>{n[ri("0x1")](s,{commandName:e,commandParams:[],formatGroupId:ri("0x2")})}))}}function a(e){const n=t[ri("0x31")][ri("0x29")](ri("0x5")).value,o=t[ri("0x31")][ri("0x29")](ri("0x15")).value;return ri("0x15")===e?n:o}n.enableCommand(ri("0x15"),r(ri("0x15"))),n.enableCommand("bulletedList",r(ri("0x5"))),n[ri("0x13")](ri("0x1e"),i("indentList")),n[ri("0x13")]("outdentList",i(ri("0xa"))),n[ri("0x13")](ri("0x28"),x("splitListItemAfter")),n.enableCommand(ri("0x45"),x(ri("0x45"))),n[ri("0x4a")][ri("0x10")]((function(e){const n=!t[ri("0x49")][ri("0x32")].isObject(e),o=e[ri("0x46")],r=e.nextSibling,i=e[ri("0x42")]("listItemId"),s=!o||o.getAttribute(ri("0x19"))!==i,x=!r||r[ri("0x42")](ri("0x19"))!==i;return n&&Boolean(i)&&s&&x}),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n[ri("0x4a")][ri("0x26")]((function(n){if(ri("0x24")!=n.type&&"formatInline"!=n[ri("0x7")])return;const{data:o}=n;if(!o)return;let r,i,s,x;switch(o[ri("0x9")]){case ri("0x5"):s=o.commandParams[0].forceValue,x=a(o[ri("0x9")]),r=ri(s?"0x16":"0x18"),!x&&t[ri("0x44")][ri("0x29")]("list.multiBlock")||(r=ri("0x34")),i={type:ri("0x25"),content:Qo(e,r,Qo(e,ri("0x47")))};break;case ri("0x15"):s=o.commandParams[0].forceValue,x=a(o[ri("0x9")]),r=ri(s?"0x16":"0x18"),!x&&t[ri("0x44")][ri("0x29")]("list.multiBlock")||(r="*Change to:* %0"),i={type:ri("0x25"),content:Qo(e,r,Qo(e,ri("0x2e")))};break;case ri("0x1e"):r=ri("0x22"),i={type:ri("0x25"),content:Qo(e,r,Qo(e,ri("0x37")))};break;case ri("0xa"):r=function(t){const e=t[ri("0x4")]();let n=e[ri("0x43")][ri("0x1f")];for(;n&&e[ri("0x4c")](n);){if(n.getAttribute(ri("0xe"))>0)return!1;n=n[ri("0x40")]}return!0}(n)?Qo(e,"*Format:* remove from %0",Qo(e,function(t){const e=t[ri("0x4")]()[ri("0x43")][ri("0x1f")];return ri("0x21")+e[ri("0x42")](ri("0x2")).toUpperCase()+"_LIST"}(n))):Qo(e,"*Outdent:* %0",Qo(e,ri("0x37"))),i={type:ri("0x25"),content:r};break;case ri("0x11"):case ri("0x27"):!1===o[ri("0x33")]&&(r=ri("0x4d"),i={type:ri("0x1c"),content:Qo(e,r,Qo(e,ri("0x37")))})}return i})),n._suggestionFactory[ri("0x17")](ri("0x24"),ri("0xd"),ri("0x0"),(function(e,n){const o=[];for(let n of e)n[ri("0x43")][ri("0x1f")]===n[ri("0x1b")][ri("0x3c")]&&(n=t.model[ri("0x1d")](t[ri("0x49")][ri("0x2f")](n.start.nodeAfter,0))),o.push(n);t[ri("0x49")][ri("0x4f")]((e=>{const r=t[ri("0x49")][ri("0x3e")][ri("0x23")],i=Array[ri("0xb")](r[ri("0x3")]())[ri("0x2a")]((t=>s.LiveRange[ri("0x30")](t)));e[ri("0x41")](o),t[ri("0x31")].get(n[ri("0x9")])[ri("0x12")](),n[ri("0x3f")].push({forceDefaultExecution:!0}),t[ri("0x20")](n[ri("0x9")],...n[ri("0x3f")]),e[ri("0x41")](i);for(const t of i)t.detach()}))}))}}const si=["commandName","get","DocumentListUtils","isFirstBlockOfListItem","model","isListItemBlock","has","editor","bind","TrackChangesEditing","filter","commandParams","handleListStartCommand","markMultiRangeBlockFormat","ELEMENT_","expandListBlocksToCompleteList","handleListReversedCommand","listStart","handleDescriptions","list.properties","plugins","numbered","length","config","format","*Format:* set order to regular","listType","getAttribute","getSelectedBlocks","listReversed","reversed","DocumentListPropertiesUtils","enableCommand","push","from","_getSuggestionBlocks","_descriptionFactory","*Change to:* %0","document","selection","replace","locale","DocumentListPropertiesEditing","registerDescriptionCallback","type","handleListStyleCommand","_LIST_","startIndex","listStyle"];var xi,ai;xi=si,ai=224,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("0x1c")][ci("0x29")][ci("0x1b")](ci("0xe")))return;const t=this.editor[ci("0x2c")][ci("0x16")](ci("0x28")),e=this[ci("0x1c")][ci("0x29")][ci("0x16")]("TrackChangesEditing");t.styles&&e[ci("0x4")](ci("0x14"),this[ci("0x11")][ci("0x1d")](this)),t[ci("0x2")]&&e.enableCommand(ci("0x1"),this[ci("0x25")][ci("0x1d")](this)),t[ci("0x13")]&&e[ci("0x4")]("listStart",this.handleListStartCommand.bind(this)),e[ci("0x8")][ci("0xf")](this.handleDescriptions[ci("0x1d")](this))}[ci("0x11")](t,e={}){const n=this[ci("0x1c")][ci("0x29")].get("TrackChangesEditing"),o=this._getSuggestionBlocksForListStyle();this[ci("0x1c")][ci("0x19")].change((()=>{n[ci("0x22")](o,{commandName:"listStyle",commandParams:[{type:e[ci("0x10")]}],formatGroupId:ci("0x14")})}))}[ci("0x25")](t,e={}){const n=this.editor[ci("0x29")][ci("0x16")](ci("0x1e")),o=this[ci("0x1c")][ci("0x29")][ci("0x16")](ci("0x17")),r=this[ci("0x7")]((t=>o[ci("0x1a")](t)&&ci("0x2a")===t.getAttribute("listType")));null!==r&&this[ci("0x1c")][ci("0x19")].change((()=>{n[ci("0x22")](r,{commandName:ci("0x1"),commandParams:[{reversed:e[ci("0x2")]}],formatGroupId:ci("0x1")})}))}[ci("0x21")](t,e={}){const n=this[ci("0x1c")][ci("0x29")][ci("0x16")]("TrackChangesEditing"),o=this[ci("0x1c")][ci("0x29")][ci("0x16")]("DocumentListUtils"),r=this[ci("0x7")]((t=>o.isListItemBlock(t)&&ci("0x2a")===t[ci("0x30")](ci("0x2f"))));null!==r&&this[ci("0x1c")][ci("0x19")].change((()=>{n.markMultiRangeBlockFormat(r,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:ci("0x26")})}))}[ci("0x27")](t){if("formatBlock"!=t[ci("0x10")]&&"formatInline"!=t.type)return;const e=this.editor[ci("0xd")],{data:n}=t;if(!n)return;let o,r;switch(n[ci("0x15")]){case ci("0x14"):o=ci("0x9"),r={type:"format",content:Qo(e,o,Qo(e,this._getTranslationKeyForListStyle(n[ci("0x20")][0].type)))};break;case ci("0x1"):o=n[ci("0x20")][0][ci("0x2")]?"*Format:* set order to reversed":ci("0x2e"),r={type:"format",content:Qo(e,o)};break;case ci("0x26"):o="*Format:* set start index to %0",r={type:ci("0x2d"),content:Qo(e,o,n.commandParams[0].startIndex)}}return r}_getSuggestionBlocksForListStyle(){const t=this.editor.plugins[ci("0x16")](ci("0x17"));let e=Array[ci("0x6")](this.editor[ci("0x19")][ci("0xa")][ci("0xb")][ci("0x0")]());return e[ci("0x5")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this.editor[ci("0x29")][ci("0x16")]("DocumentListUtils");let n=Array[ci("0x6")](this.editor[ci("0x19")][ci("0xa")].selection.getSelectedBlocks())[ci("0x1f")](t);if(!n[ci("0x2b")])return null;n=e[ci("0x24")](n);const o=[];for(const t of n)e[ci("0x18")](t)&&o[ci("0x5")](t);return o}_getTranslationKeyForListStyle(t){return ci("0x23")+this[ci("0x1c")][ci("0x29")][ci("0x16")](ci("0x3")).getListTypeFromListStyleType(t).toUpperCase()+ci("0x12")+t.toUpperCase()[ci("0xc")](/-/g,"_")}}var ui=n(331);const di=["ck-suggestion-marker-split","bind","data","document","markerName","createPositionAt","mapper","model","markerNameToElements","fromRange","addMarker:suggestion:insertion","getFirstRange","remove","unbindElementFromMarkerName","enter","detach","commands","enterBlock","hasClass","fire","end","downcastDispatcher","selection","split","options","editing","showSuggestionHighlights","createRange","enableCommand","get","high","afterExecute","nextSibling","change","parent"];var gi,fi;gi=di,fi=299,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.plugins[mi("0xa")]("TrackChangesEditing"),n=t[mi("0x20")].get("enter");e[mi("0x9")](mi("0x1e"),(()=>{t[mi("0x17")][mi("0xe")]((o=>{const r=t.model[mi("0x13")][mi("0x3")],i=r.getFirstPosition(),x=s.LiveRange[mi("0x19")](r[mi("0x1b")]());if(n[mi("0x21")](o)){const n=t.model[mi("0x15")](i[mi("0xf")][mi("0xd")],0),r=o[mi("0x8")](i,n);e.markInsertion(r)}else o.setSelection(o.createRange(x[mi("0x1")]));x[mi("0x1f")](),n[mi("0x0")](mi("0xc"),{writer:o})}))})),t.editing.downcastDispatcher.on(mi("0x1a"),$r(t,mi("0x4")),{priority:mi("0xb")}),t[mi("0x6")].downcastDispatcher.on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n.mapper[mi("0x18")](e[mi("0x14")]);if(o)for(const t of o)t[mi("0x22")](mi("0x10"))&&(n[mi("0x16")][mi("0x1d")](t,e[mi("0x14")]),n.writer[mi("0x1c")](t))}),{priority:mi("0xb")}),t[mi("0x12")][mi("0x2")].on(mi("0x1a"),((e,n,o)=>{o[mi("0x5")][mi("0x7")]&&$r(t,"split",{showActiveMarker:!1})[mi("0x11")](this)(e,n,o)}),{priority:mi("0xb")})}}const pi=["filter","findPrevious","string","handleFindCommand","model","has","replace","TrackChangesEditing","enableCommand","_isInDeletionRange","createRange","editor","get","FindAndReplaceUtils","createPositionAt","afterInit","getIntersection","suggestion:deletion","start","find","bind","plugins"];var bi,Ei;bi=pi,Ei=101,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);const _i=function(t,e){return pi[t-=0]};class Ti extends t.Plugin{[_i("0x2")](){if(!this.editor[_i("0x8")][_i("0xe")]("FindAndReplaceEditing"))return;const t=this[_i("0x14")][_i("0x8")][_i("0x15")](_i("0x10"));t[_i("0x11")](_i("0x6"),this.handleFindCommand[_i("0x7")](this)),t.enableCommand("findNext"),t[_i("0x11")](_i("0xa")),t[_i("0x11")](_i("0xf")),t[_i("0x11")]("replaceAll")}[_i("0xc")](t,e,n={}){const o=this[_i("0x14")][_i("0x8")][_i("0x15")](_i("0x0"));return t((t=>(_i("0xb")==typeof e?o.findByTextCallback(e,n):e)(t)[_i("0x9")]((e=>!1===this[_i("0x12")](e,t.item)))),n)}[_i("0x12")](t,e){const n=this[_i("0x14")][_i("0xd")][_i("0x13")](this[_i("0x14")].model[_i("0x1")](e,t[_i("0x5")]),this[_i("0x14")][_i("0xd")][_i("0x1")](e,t.end));for(const t of this[_i("0x14")][_i("0xd")].markers.getMarkersGroup(_i("0x4")))if(null!==n[_i("0x3")](t.getRange()))return!0;return!1}}const yi=["locale","_registerLegacyDescription","fontColor","registerAttributeLabel","find","has","fontSize","normalizeSizeOptions","*Set font color:* %0","FontSizeEditing","FORMAT_FONT_SIZE","model","fontFamily","toLowerCase","fontSize.options","fontBackgroundColor.colors","format","type","FORMAT_FONT_COLOR","fontBackgroundColor","plugins","editor","value","config","trim","commandName","get","label","*Set font size:* %0","afterInit","commandParams","registerDescriptionCallback","*Reset font family*","title","_descriptionFactory","*Reset font size*","FORMAT_FONT_FAMILY","formatInline","fontColor.colors","FontFamilyEditing","_enableDefaultAttributesIntegration"];var Ci,Ai;Ci=yi,Ai=195,function(t){for(;--t;)Ci.push(Ci.shift())}(++Ai);const ki=function(t,e){return yi[t-=0]},Ii=[{pluginName:ki("0x13"),commandName:"fontSize"},{pluginName:ki("0x8"),commandName:ki("0x16")},{pluginName:"FontColorEditing",commandName:ki("0xc")},{pluginName:"FontBackgroundColorEditing",commandName:ki("0x1d")}];class Ri extends t.Plugin{[ki("0x27")](){const t=this[ki("0x1f")][ki("0xa")],e=this[ki("0x1f")][ki("0x1e")].get("TrackChangesEditing");for(const{pluginName:t,commandName:n}of Ii)this[ki("0x1f")][ki("0x1e")][ki("0xf")](t)&&e[ki("0x9")](n,[n]);t.t,e[ki("0x3")][ki("0xd")](ki("0x10"),Qo(t,ki("0x14"))),e[ki("0x3")].registerAttributeLabel("fontFamily",Qo(t,ki("0x5"))),e[ki("0x3")][ki("0xd")](ki("0xc"),Qo(t,ki("0x1c"))),e[ki("0x3")][ki("0xd")]("fontBackgroundColor",Qo(t,"FORMAT_FONT_BACKGROUND")),this[ki("0xb")]()}[ki("0xb")](){const t=this[ki("0x1f")],e=t[ki("0xa")];t[ki("0x1e")].get("TrackChangesEditing")[ki("0x3")][ki("0x0")]((t=>{const n=e.t;if(ki("0x6")!=t[ki("0x1b")])return;const{data:o}=t;if(null!=o){if(ki("0x10")==o[ki("0x23")]){const t=o.commandParams[0][ki("0x20")];if(t){const o=n(this[ki("0x1f")][ki("0x1e")][ki("0x24")]("FontSize")[ki("0x11")](this[ki("0x1f")][ki("0x21")][ki("0x24")](ki("0x18"))).find((e=>e.model==t))[ki("0x2")])[ki("0x17")]();return{type:ki("0x1a"),content:Qo(e,ki("0x26"),o)}}return{type:ki("0x1a"),content:Qo(e,ki("0x4"))}}if(ki("0x16")==o[ki("0x23")]){const t=o[ki("0x28")][0].value;return t?{type:ki("0x1a"),content:Qo(e,"*Set font family:* %0",t)}:{type:"format",content:Qo(e,ki("0x1"))}}if("fontColor"==o[ki("0x23")]){const t=o[ki("0x28")][0][ki("0x20")];if(t){const o=(0,r.normalizeColorOptions)(this[ki("0x1f")].config[ki("0x24")](ki("0x7")))[ki("0xe")]((e=>e[ki("0x15")]==t));let i=t,s="";return o&&(i=o.label,s=n(i)[ki("0x17")]()),{type:ki("0x1a"),content:Qo(e,ki("0x12"),s)[ki("0x22")](),color:{value:t,title:s||i}}}return{type:"format",content:Qo(e,"*Reset font color*")}}if("fontBackgroundColor"==o[ki("0x23")]){const t=o[ki("0x28")][0][ki("0x20")];if(t){const o=(0,r.normalizeColorOptions)(this[ki("0x1f")][ki("0x21")][ki("0x24")](ki("0x19")))[ki("0xe")]((e=>e.model==t));let i=t,s="";return o&&(i=o[ki("0x25")],s=n(i).toLowerCase()),{type:"format",content:Qo(e,"*Set font background color:* %0",s)[ki("0x22")](),color:{value:t,title:s||i}}}return{type:"format",content:Qo(e,"*Reset font background color*")}}}}))}}const Si=["find","label","boolean","slice","*Remove all formatting*","*Set format to:* %0","registerDescriptionCallback","_registerLegacyDescription","title","fontColor","formatBlock","type","fontBackgroundColor","config","get","editor","pasteFormat","TrackChangesEditing","entries","fontSize.options","join","commandName","plugins","toLowerCase","FontSize","commands","_enableDefaultAttributesIntegration","locale","afterInit","split","charAt","normalizeSizeOptions","_descriptionFactory","copyFormat","model"];var vi,Ni;vi=Si,Ni=237,function(t){for(;--t;)vi.push(vi.shift())}(++Ni);const Li=function(t,e){return Si[t-=0]};class Mi extends t.Plugin{[Li("0x1")](){const t=this[Li("0x17")],e=t[Li("0x1e")].get(Li("0x19")),n=t[Li("0x21")][Li("0x16")](Li("0x6")),o=t[Li("0x21")][Li("0x16")](Li("0x18"));n&&o&&(e[Li("0x22")](Li("0x18")),e.enableCommand(Li("0x6")),this[Li("0xf")]())}_registerLegacyDescription(){const t=this.editor,e=t[Li("0x0")];t[Li("0x1e")][Li("0x16")](Li("0x19"))[Li("0x5")][Li("0xe")]((n=>{if(Li("0x12")!=n[Li("0x13")]&&"formatInline"!=n.type)return;const{data:o}=n;if(o&&Li("0x18")===o[Li("0x1d")]){const n=[],r=o.commandParams[0];for(const[e,o]of Object[Li("0x1a")](r))n.push(wi(t,e,o));return n.length?{type:"format",content:Qo(e,Li("0xd"),n[Li("0x1c")](", "))}:{type:"format",content:Qo(e,Li("0xc"))}}}))}}function wi(t,e,n){const o=t[Li("0x0")].t,i=e[Li("0x2")](/(?=[A-Z])/).join(" "),s=o(i[Li("0x3")](0).toUpperCase()+i[Li("0xb")](1))[Li("0x1f")]();if(Li("0xa")==typeof n)return s;if(Li("0x11")===e||Li("0x14")===e){const e=(0,r.normalizeColorOptions)(t[Li("0x15")][Li("0x16")]("fontColor.colors"))[Li("0x8")]((t=>t[Li("0x7")]==n));return s+" ("+(e?o(e[Li("0x9")]).toLowerCase():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Li("0x1e")][Li("0x16")](Li("0x20"))[Li("0x4")](t[Li("0x15")][Li("0x16")](Li("0x1b"))).find((t=>t[Li("0x7")]==n));return s+" ("+(e?o(e[Li("0x10")]).toLowerCase():n)+")"}return s+" ("+n+")"}const Oi=["view","plugins","match","registerDescriptionCallback","_getHeadingLevel","TrackChangesEditing","commandName","name","_registerLegacyDescription","type","get","afterInit","ELEMENT_HEADING_CUSTOM","config","find","title","_descriptionFactory","format","editor","_headingOptions","_enableDefaultAttributesIntegration","HeadingEditing","*Change to:* %0","ELEMENT_HEADING","heading","commandParams","model","formatBlock","paragraph","locale","heading.options"];var Fi,Di;Fi=Oi,Di=292,function(t){for(;--t;)Fi.push(Fi.shift())}(++Di);const Bi=function(t,e){return Oi[t-=0]};class Pi extends t.Plugin{[Bi("0x1d")](){const t=this[Bi("0x5")];if(!t.plugins.has(Bi("0x8")))return;this[Bi("0x6")]=t[Bi("0x0")][Bi("0x1c")](Bi("0x11"));const e=t[Bi("0x10")],n=t[Bi("0x13")][Bi("0x1c")](Bi("0x17"));n[Bi("0x7")](Bi("0xb"));for(const t of this._headingOptions)Bi("0xf")!=t.model&&n[Bi("0x3")].registerElementLabel(t[Bi("0xd")],(n=>{const o=this[Bi("0x16")](t.model);return null!==o?(s=n,x=o,Qo(e,Bi("0xa"),[s,x])):(r=n,i=t[Bi("0x2")],Qo(e,Bi("0x1e"),[r,i]));var r,i,s,x}));this._registerLegacyDescription()}[Bi("0x1a")](){const t=this[Bi("0x5")],e=t[Bi("0x10")];t[Bi("0x13")][Bi("0x1c")]("TrackChangesEditing")._descriptionFactory[Bi("0x15")]((t=>{if(Bi("0xe")!=t[Bi("0x1b")])return;const{data:n}=t;if(n&&Bi("0xb")==n[Bi("0x18")]){const t=n[Bi("0xc")][0].value,s=this[Bi("0x16")](t);if(null!==s)return{type:"format",content:Qo(e,Bi("0x9"),(1,i=s,Qo(e,Bi("0xa"),[1,i])))};const x=this[Bi("0x6")][Bi("0x1")]((e=>e[Bi("0xd")]===t))[Bi("0x2")];return{type:Bi("0x4"),content:Qo(e,"*Change to:* %0",(o=1,r=x,Qo(e,Bi("0x1e"),[o,r])))}}var o,r,i}))}[Bi("0x16")](t){var e,n;const o=t[Bi("0x14")](/^heading(\d+)/);if(o)return o[1];const r=null===(e=this[Bi("0x6")])||void 0===e?void 0:e.find((e=>e[Bi("0xd")]==t));if(r&&r[Bi("0x12")]){const t=r[Bi("0x12")],e=(null!==(n=t[Bi("0x19")])&&void 0!==n?n:t)[Bi("0x14")](/^h(\d+)/);if(e)return e[1]}return null}}const Ui=["registerDescriptionCallback","find","value","editor","_registerLegacyDescription","locale","type","color","has","TrackChangesEditing","format","*Set highlight:* %0","FORMAT_HIGHLIGHT","toLowerCase","plugins","get","*Remove highlight*","model","afterInit","_descriptionFactory","highlight","config","HighlightEditing","highlight.options"];var ji,Gi;ji=Ui,Gi=216,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.editor;if(!t[Vi("0xe")][Vi("0x8")](Vi("0x16")))return;const e=t[Vi("0xe")][Vi("0xf")](Vi("0x9")),n=t[Vi("0x5")];e._enableDefaultAttributesIntegration(Vi("0x14"),["highlight"]),e[Vi("0x13")].registerAttributeLabel(Vi("0x14"),Qo(n,Vi("0xc"))),this._registerLegacyDescription()}[Vi("0x4")](){const t=this[Vi("0x3")],e=t[Vi("0x5")];t[Vi("0xe")].get(Vi("0x9"))[Vi("0x13")][Vi("0x0")]((n=>{if("formatInline"!=n[Vi("0x6")])return;const{data:o}=n;if(o&&"highlight"==o.commandName){const n=e.t,r=o.commandParams[0][Vi("0x2")];if(r){const o=t[Vi("0x15")][Vi("0xf")](Vi("0x17"))[Vi("0x1")]((t=>t[Vi("0x11")]==r)),i=n(o.title)[Vi("0xd")]();return{type:Vi("0xa"),content:Qo(e,Vi("0xb"),i),color:{value:o[Vi("0x7")],title:o.title}}}return{type:Vi("0xa"),content:Qo(e,Vi("0x10"),Qo(e,"FORMAT_HIGHLIGHT"))}}}))}}const zi=["plugins","createPositionAt","has","TrackChangesEditing","insert","createEmptyElement","editor","showSuggestionHighlights","enableCommand","high","ELEMENT_HORIZONTAL_LINE","get","for","addClass","afterInit","HorizontalLineEditing","div","elementToStructure","horizontalLine"];var Wi,Ki;Wi=zi,Ki=279,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};class Xi extends t.Plugin{[qi("0x1")](){const t=this[qi("0xc")];if(!t.plugins[qi("0x8")](qi("0x2")))return;t[qi("0x6")][qi("0x11")](qi("0x9"))[qi("0xe")](qi("0x5"));const e=t[qi("0x6")].get(qi("0x9")),n=t.locale;e._descriptionFactory.registerElementLabel(qi("0x5"),(t=>Qo(n,qi("0x10"),t))),t.conversion[qi("0x12")]("dataDowncast")[qi("0x4")]({model:qi("0x5"),view:(t,{writer:e,options:n})=>{if(!n[qi("0xd")])return null;const o=e.createContainerElement(qi("0x3")),r=e[qi("0xb")]("hr");return e[qi("0x0")]("ck-horizontal-line",o),e[qi("0xa")](e[qi("0x7")](o,0),r),o},converterPriority:qi("0xf")})}}const $i=["*Change %0 content*","registerElementLabel","start","locale","registerDescriptionCallback","_enableDefaultAttributesIntegration","editor","htmlEmbed","afterInit","ELEMENT_HTML_EMBED","get","format","type","_descriptionFactory","key","HtmlEmbed","_registerLegacyDescription","commandName","plugins","TrackChangesEditing","value","rawHtml"];var Zi,Yi;Zi=$i,Yi=349,function(t){for(;--t;)Zi.push(Zi.shift())}(++Yi);const Ji=function(t,e){return $i[t-=0]};class Qi extends t.Plugin{[Ji("0xb")](){const t=this[Ji("0x9")];if(!t[Ji("0x15")].has(Ji("0x12")))return;const e=t.plugins.get(Ji("0x0")),n=t[Ji("0x6")];e._descriptionFactory[Ji("0x4")](Ji("0x2"),(t=>Qo(n,Ji("0xc"),t))),e[Ji("0x8")](Ji("0xa"),[],["value"]),e._descriptionFactory.registerDescriptionCallback((t=>{if("attribute"!=t[Ji("0xf")])return;const{data:e}=t;if(e&&Ji("0x1")==e[Ji("0x11")]&&t.getFirstRange()[Ji("0x5")].nodeAfter.is("element",Ji("0x2"))){const t=Qo(n,"ELEMENT_HTML_EMBED");return{type:Ji("0xe"),content:Qo(n,Ji("0x3"),t)}}})),this[Ji("0x13")]()}[Ji("0x13")](){const t=this[Ji("0x9")],e=t[Ji("0x6")];t[Ji("0x15")][Ji("0xd")](Ji("0x0"))[Ji("0x10")][Ji("0x7")]((t=>{if("formatBlock"!=t[Ji("0xf")])return;const{data:n}=t;if(n&&Ji("0xa")==n[Ji("0x14")]){const t=Qo(e,"ELEMENT_HTML_EMBED");return{type:Ji("0xe"),content:Qo(e,Ji("0x3"),t)}}}))}}const ts=["_enableDefaultAttributesIntegration","fromPosition","uploadImage","forward","plugins","*Set image text alternative:* %0","imageTextAlternative","toNext","imageInline","editor","model","key","isBefore","registerDescriptionCallback","ImageResize","isIntersecting","markBlockFormat","discard","accept","getContainedElement","ELEMENT_IMAGE","formatInline","convertInlineImageToBlock","end","*Remove image text alternative*","enableCommand","getClosestSelectedImageElement","ELEMENT_CAPTION","insertImage","detach","backward","document","ImageCaptionUtils","markInsertion","registerCustomCallback","getCaptionFromImageModelElement","convertBlockImageToInline","_descriptionFactory","formatBlock","caption","registerElementLabel","FORMAT_IMAGE_SIZE","element","schema","chain","nodeBefore","start","length","createRange","isBlockImage","isEqual","ImageCaptionEditing","locale","ImageInlineEditing","insertion","ImageEditing","*Reset image width*","imageTypeInline","ImageUploadEditing","commandParams","isCollapsed","findIndex","*Set image width:* %0","markDeletion","Block image to inline image","getNearestSelectionRange","imageCaption","_suggestionFactory","nodeAfter","TrackChangesEditing","resizedWidth","find","removeObject","change","forceDefaultExecution","ImageBlockEditing","isOwn","type","get","imageTypeBlock","join","format","afterInit","addObject","resizeImage","registerAttributeLabel","imageBlock","toggleImageCaption","getFirstRange","ImageTextAlternativeEditing","has","commandName","selection","newValue","filter","subType"];var es,ns;es=ts,ns=405,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class rs extends t.Plugin{[os("0x3d")](){const t=this[os("0x54")];if(!t[os("0x4f")][os("0x45")](os("0x22")))return;const e=t.plugins[os("0x39")](os("0x30")),n=t[os("0x4f")][os("0x39")]("ImageUtils"),o=t[os("0x1f")];e[os("0x4")](os("0x7")),e[os("0x10")].registerElementLabel(os("0x41"),(t=>Qo(o,os("0x5f"),t))),e[os("0x10")][os("0x13")](os("0x53"),(t=>Qo(o,"ELEMENT_INLINE_IMAGE",t))),e._descriptionFactory.registerElementLabel(os("0x12"),(()=>Qo(o,os("0x6")))),t[os("0x4f")][os("0x45")](os("0x25"))&&e[os("0x4")](os("0x4d")),t[os("0x4f")][os("0x45")](os("0x36"))&&t.plugins[os("0x45")](os("0x20"))&&(e[os("0x4")](os("0x24"),((o,r)=>{const i=n[os("0x5")](t[os("0x55")].document[os("0x47")]);t[os("0x55")].change((()=>{e[os("0x5b")](i,{commandName:os("0x24"),commandParams:[r]},[],os("0xf"))}))})),e.enableCommand(os("0x3a"),((o,r)=>{t[os("0x55")][os("0x34")]((i=>{let x=n[os("0x5")](t[os("0x55")].document[os("0x47")]),a=i.createRangeOn(x);const c=s.LivePosition.fromPosition(a[os("0x19")],"toPrevious"),l=s.LivePosition[os("0x4c")](a[os("0x2")],os("0x52"));e[os("0x35")]((()=>o(r))),x=n[os("0x5")](t[os("0x55")][os("0xa")][os("0x47")]),a=i.createRangeOn(x);const u=i[os("0x1b")](c,l);c[os("0x8")](),l.detach(),e[os("0x5b")](x,{commandName:os("0x24"),commandParams:[r]},[],os("0x1")),u[os("0x19")][os("0x57")](a.start)&&e[os("0xc")](i[os("0x1b")](u[os("0x19")],a.start),os("0x1")),a[os("0x2")][os("0x57")](u[os("0x2")])&&e[os("0xc")](i.createRange(a.end,u[os("0x2")]),"convertInlineImageToBlock")}))})),e[os("0x2e")][os("0xd")](os("0x11"),os("0x1"),os("0x3b"),(()=>!1)),e[os("0x2e")].registerCustomCallback("formatBlock","convertInlineImageToBlock",os("0x5d"),(()=>!1)),e._suggestionFactory.registerCustomCallback(os("0x11"),os("0x1"),os("0x5c"),e._suggestionFactory.getSuggestionCallback("formatBlock","",os("0x5d"))),e[os("0x2e")][os("0xd")](os("0x21"),os("0x1"),"join",(()=>!1)),e[os("0x2e")][os("0xd")]("insertion",os("0x1"),os("0x5c"),(([n])=>{const o=e[os("0x2e")].getSuggestionCallback(os("0x21"),"",os("0x5c"));let r=n[os("0x19")],i=n[os("0x2")];const s=t.model[os("0x16")][os("0x2c")](r,os("0x9")),x=t[os("0x55")][os("0x16")][os("0x2c")](i,os("0x4e"));s[os("0x27")]&&(r=s[os("0x19")]),x[os("0x27")]&&(i=x.end),o([t[os("0x55")][os("0x1b")](r,i)])})),e._suggestionFactory[os("0xd")](os("0x11"),os("0x1"),os("0x17"),x),e[os("0x2e")][os("0xd")](os("0x21"),os("0x1"),os("0x17"),x)),t[os("0x4f")][os("0x45")](os("0x1e"))&&(e[os("0x4")](os("0x42"),((o,r)=>{const i=t[os("0x4f")][os("0x39")](os("0xb"));let s=n[os("0x5")](t[os("0x55")].document[os("0x47")]),x=i[os("0xe")](s);t.model[os("0x34")]((()=>{if(x)return void e[os("0x2a")](t[os("0x55")].createRangeOn(x));const a=n[os("0x1c")](s);o(r),s=n[os("0x5")](t[os("0x55")].document[os("0x47")]),x=i[os("0xe")](s),e[os("0xc")](t[os("0x55")].createRangeOn(x),a?null:os("0x2d"))}))})),e[os("0x2e")].registerCustomCallback(os("0x21"),"imageCaption",os("0x17"),x));const r=[{type:os("0x11"),subType:"imageStylePreApply"},{type:os("0x21"),subType:os("0x2d")},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:"insertion",subType:os("0x1")}];function i(t,o){const i=r[os("0x28")]((({type:e,subType:n})=>t[os("0x38")]==e&&t[os("0x4a")]==n)),s=r.findIndex((({type:t,subType:e})=>o[os("0x38")]==t&&o[os("0x4a")]==e));if(i<0||s<0)return!1;const x=t[os("0x43")](),a=o[os("0x43")]();if((0==i||1==i)&&2==s&&x[os("0x5a")](a))return!0;if(2==i&&3==s){const t=e._findSuggestions(x,"insertion")[os("0x49")]((({suggestion:t,meta:e})=>e[os("0x37")]&&os("0x1")==t.subType));if(t[os("0x1a")]>1&&a[os("0x2")][os("0x1d")](x[os("0x19")]))return!0;if(1==t[os("0x1a")]&&(x.start[os("0x1d")](a.end)||x[os("0x2")][os("0x1d")](a[os("0x19")])))return!0}if(3==i&&3==s&&x.start[os("0x57")](a[os("0x19")])){const t=x[os("0x2")][os("0x2f")],e=a[os("0x19")][os("0x18")];return n[os("0x1c")](t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t[os("0x4f")][os("0x45")](os("0x59"))&&(e[os("0x4b")](os("0x3f"),[],[os("0x31")]),e[os("0x10")][os("0x40")](os("0x31"),Qo(o,os("0x14")))),t[os("0x4f")][os("0x45")](os("0x44"))&&e._enableDefaultAttributesIntegration("imageTextAlternative",[],["alt"]),e[os("0x10")][os("0x58")]((t=>{if(r[os("0x32")]((({type:e,subType:n})=>t[os("0x38")]==e&&t[os("0x4a")]==n)))return t.previous?{}:void 0})),e._descriptionFactory[os("0x58")]((t=>{if("insertion"==t[os("0x38")]||"deletion"==t[os("0x38")]){const e=t[os("0x5e")]();if(e&&e.is(os("0x15"),os("0x12")))return{type:"insertion"==t[os("0x38")]?os("0x3e"):os("0x33"),element:e,quantity:1}}})),e[os("0x10")][os("0x58")]((t=>os("0x11")==t.type&&"convertInlineImageToBlock"==t[os("0x4a")]?{type:os("0x3c"),content:"Inline image to block image"}:os("0x11")==t.type&&os("0xf")==t.subType?{type:os("0x3c"),content:os("0x2b")}:void 0)),e[os("0x10")][os("0x58")]((t=>{if("attribute"!=t.type)return;const{data:e}=t;if(!e||"alt"!=e[os("0x56")])return;const n=e.newValue;return n?{type:os("0x3c"),content:Qo(o,os("0x50"),'"'+n+'"')}:{type:os("0x3c"),content:Qo(o,os("0x3"))}})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[os("0x54")],e=t.locale;t.plugins[os("0x39")](os("0x30"))[os("0x10")][os("0x58")]((t=>{if(os("0x11")!=t[os("0x38")]&&os("0x0")!=t[os("0x38")])return;const{data:n}=t;if(n){if(os("0x51")==n[os("0x46")]){const t=n[os("0x26")][0][os("0x48")];return t?{type:os("0x3c"),content:Qo(e,os("0x50"),'"'+t+'"')}:{type:os("0x3c"),content:Qo(e,os("0x3"))}}if("resizeImage"==n[os("0x46")]){const t=n[os("0x26")][0].width;return t?{type:os("0x3c"),content:Qo(e,os("0x29"),t)}:{type:os("0x3c"),content:Qo(e,os("0x23"))}}}}))}}const is=["ImageEditing","replaceImageSource","type","formatBlock","getSuggestionCallback","has","_suggestionFactory","registerDescriptionCallback","afterInit","attribute","editor","get","registerCustomCallback","format","oldValue","_descriptionFactory","_registerLegacyDescription","locale","key","_handleLegacySuggestions","formatInline","TrackChangesEditing","src","plugins","commandName","accept","newValue"];var ss,xs;ss=is,xs=355,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{[as("0x4")](){if(!this[as("0x6")].plugins[as("0x1")](as("0x17")))return;const t=this[as("0x6")][as("0xd")],e=this[as("0x6")].plugins.get(as("0x11"));e._enableDefaultAttributesIntegration("replaceImageSource",[],[as("0x12")]),e[as("0xb")][as("0x3")]((e=>{if(as("0x5")!=e[as("0x19")])return;const{data:n}=e;return n&&as("0x12")==n[as("0xe")]?n[as("0x16")]&&n[as("0xa")]?{type:as("0x9"),content:Qo(t,"*Replace image URL*")}:{type:as("0x9"),content:""}:void 0})),this[as("0xf")]()}[as("0xf")](){const t=this.editor[as("0x13")].get(as("0x11"));t[as("0x2")].registerCustomCallback("formatBlock","replaceImageSource",as("0x15"),t[as("0x2")][as("0x0")](as("0x1a"),null,"discard")),t[as("0x2")][as("0x8")](as("0x1a"),as("0x18"),"discard",t._suggestionFactory.getSuggestionCallback(as("0x1a"),null,as("0x15"))),this[as("0xc")]()}[as("0xc")](){const t=this[as("0x6")],e=t.locale;t[as("0x13")][as("0x7")](as("0x11"))[as("0xb")][as("0x3")]((t=>{if(as("0x1a")!=t[as("0x19")]&&as("0x10")!=t[as("0x19")])return;const{data:n}=t;return n&&as("0x18")==n[as("0x14")]?{type:as("0x9"),content:Qo(e,"*Format:* replace image URL")}:void 0}))}}const ls=["shouldConvertImageType","isBlockImage","_suggestionFactory","isIntersecting","findIndex","accept","imageTypeBlock","Users","forEach","normalizedStyles","nodeAfter","ImageUtils","length","change","insertion","ImageStyleEditing","isEqual","getSuggestions","has","_descriptionFactory","formatBlock","differ","refresh","setImageNaturalSizeAttributes","afterInit","subType","end","value","document","chain","isInContent","commands","get","_registerLegacyDescription","editor","*Format:* %0","isInlineImage","enableCommand","join","getSuggestionCallback","registerPostFixer","getClosestSelectedImageElement","formatInline","isBefore","selection","getContainedElement","imageTypeInline","isOwn","getSuggestion","start","convertInlineImageToBlock","title","plugins","name","side","type","markBlockFormat","nodeBefore","getChangedMarkers","createRangeOn","filter","hasSuggestion","next","imageCaption","imageStylePostApply","commandParams","getFirstRange","registerCustomCallback","FORMAT_SIDE_IMAGE","head","_findSuggestions","discardSuggestion","format","imageStyle","toLowerCase","model","commandName","newRange","author","registerDescriptionCallback","TrackChangesEditing","imageStylePreApply"];var us,ds;us=ls,ds=343,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x9")](){const t=this.editor;if(!t[gs("0x25")][gs("0x3")](gs("0x0")))return;const n=t.plugins[gs("0x11")](gs("0x41")),o=t.plugins[gs("0x11")](gs("0x4e")),r={};n[gs("0x16")]("imageStyle",((r,i)=>{const s=t.plugins[gs("0x11")](gs("0x4a")).me,x=t.commands[gs("0x11")]("imageStyle");let a=o.getClosestSelectedImageElement(t.model[gs("0xd")][gs("0x1d")]),c=t[gs("0x3c")][gs("0x2c")](a),l=x.value;if(l==i[gs("0xc")])return;const u={commandName:"imageStyle",commandParams:[i],formatGroupId:(0,e.uid)()};t[gs("0x3c")][gs("0x50")]((()=>{if(n[gs("0x2")]().filter((t=>t[gs("0xf")]&&s==t[gs("0x3f")]&&(gs("0x5")==t[gs("0x28")]||gs("0x1b")==t[gs("0x28")])&&(gs("0x42")==t[gs("0xa")]||gs("0x31")==t[gs("0xa")])&&t[gs("0x33")]()[gs("0x1")](c)))[gs("0x4b")]((t=>n[gs("0x38")](t[gs("0x36")]))),a=o[gs("0x1a")](t[gs("0x3c")][gs("0xd")][gs("0x1d")]),c=t[gs("0x3c")][gs("0x2c")](a),x[gs("0x7")](),t[gs("0x10")][gs("0x11")](gs("0x1f"))[gs("0x7")](),t[gs("0x10")][gs("0x11")](gs("0x49"))[gs("0x7")](),l=x[gs("0xc")],l!=i.value)return o[gs("0x15")](a)&&x[gs("0x43")](i[gs("0xc")],a)?(r({...i,setImageSizes:!1}),a=o[gs("0x1a")](t[gs("0x3c")][gs("0xd")][gs("0x1d")]),void n[gs("0x29")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x42"))):void(o[gs("0x44")](a)?n[gs("0x29")](a,u,[],gs("0x31")):n.markInlineFormat(c,u,"imageStylePostApply"))}))}));for(const e of t.plugins[gs("0x11")](gs("0x0"))[gs("0x4c")])r[e[gs("0x26")]]=e[gs("0x24")][gs("0x3b")]();n[gs("0x45")][gs("0x34")](gs("0x5"),gs("0x42"),"join",(()=>!1)),n[gs("0x45")][gs("0x34")]("formatBlock","imageStylePostApply",gs("0x17"),(()=>!1)),n._suggestionFactory[gs("0x34")](gs("0x1b"),gs("0x31"),"join",(()=>!1)),n[gs("0x45")][gs("0x34")](gs("0x5"),gs("0x42"),"accept",(([t])=>{o[gs("0x8")](t[gs("0x1e")]())})),n[gs("0x45")][gs("0x34")]("formatBlock",gs("0x42"),"discard",((t,e)=>{n._suggestionFactory[gs("0x18")](gs("0x5"),"",gs("0x48"))(t,{commandName:e[gs("0x3d")],commandParams:e.commandReversedParams})})),n[gs("0x45")].registerCustomCallback(gs("0x5"),"imageStylePreApply",gs("0xe"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:"formatBlock",subType:gs("0x42")},{type:gs("0x51"),subType:"imageCaption"},{type:gs("0x5"),subType:gs("0x23")},{type:"insertion",subType:gs("0x23")}];function s(t,e){const r=i[gs("0x47")]((({type:e,subType:n})=>t[gs("0x28")]==e&&t[gs("0xa")]==n)),s=i[gs("0x47")]((({type:t,subType:n})=>e.type==t&&e[gs("0xa")]==n));if(r<0||s<0)return!1;const x=t[gs("0x33")](),a=e[gs("0x33")]();if((0==r||1==r)&&2==s&&x[gs("0x46")](a))return!0;if(2==r&&3==s){const t=n[gs("0x37")](x,gs("0x51"))[gs("0x2d")]((({suggestion:t,meta:e})=>e[gs("0x20")]&&gs("0x23")==t[gs("0xa")]));if(t[gs("0x4f")]>1&&a[gs("0xb")][gs("0x1")](x[gs("0x22")]))return!0;if(1==t[gs("0x4f")]&&(x[gs("0x22")][gs("0x1")](a[gs("0xb")])||x[gs("0xb")].isEqual(a[gs("0x22")])))return!0}if(3==r&&3==s&&x[gs("0x22")][gs("0x1c")](a[gs("0x22")])){const t=x[gs("0xb")][gs("0x4d")],e=a[gs("0x22")][gs("0x2a")];return o[gs("0x44")](t)&&t===e}return!1}t[gs("0x3c")][gs("0xd")][gs("0x19")]((()=>{let e=!1;const r=Array.from(t.model[gs("0xd")][gs("0x6")][gs("0x2b")]());for(const{name:t,data:i}of r){const{group:r,type:s,subType:x,id:a}=n._splitMarkerName(t);if("suggestion"==r&&n[gs("0x2e")](a)){if(gs("0x5")==s&&(gs("0x42")==x||"imageStylePostApply"==x)){const t=n[gs("0x21")](a);if(i[gs("0x3e")]){const r=t[gs("0x33")]().getContainedElement();if(o[gs("0x44")](r))continue;n[gs("0x38")](t),e=!0}}if(gs("0x51")==s&&gs("0x30")==x&&!i[gs("0x3e")]){const t=n[gs("0x21")](a);t[gs("0x2f")]&&t[gs("0x2f")][gs("0xf")]&&(n[gs("0x38")](t[gs("0x2f")]),e=!0)}}}return e})),this[gs("0x12")](r)}[gs("0x12")](t){const e=this[gs("0x13")],n=e.locale;e[gs("0x25")][gs("0x11")](gs("0x41"))[gs("0x4")][gs("0x40")]((e=>{if("formatBlock"!=e[gs("0x28")]&&gs("0x1b")!=e.type)return;const{data:o}=e;if(!o||gs("0x3a")!=o.commandName)return;const r=o[gs("0x32")][0].value;return i=gs("0x27")===r?Qo(n,gs("0x35")):t[r]||r,{type:gs("0x39"),content:Qo(n,gs("0x14"),i)};var i}))}}const ms=["afterInit","trackChanges","commands","importWord","_trackChangesValueDuringImport","forEach","get","plugins","execute","dataInsert","high","TrackChangesEditing","_setSuggestionData","bind","lowest","editor","_handleImportedData","value","enableCommand","track_changes","_trackChangesExecuted"];var hs,ps;hs=ms,ps=235,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("0x0")]=!1,this[bs("0x10")]=!1}[bs("0x11")](){const t=this[bs("0xb")],e=t[bs("0x13")][bs("0x2")](bs("0x14")),n=t[bs("0x13")][bs("0x2")](bs("0x12"));e&&(e.on(bs("0x4"),((t,[,e])=>{this._trackChangesValueDuringImport=n.value,e.collaboration_features[bs("0xf")]=!this[bs("0x0")]}),{priority:bs("0x6")}),this.listenTo(e,bs("0x5"),this._handleImportedData[bs("0x9")](this)),this.listenTo(e,bs("0x5"),(()=>{this[bs("0x10")]&&(n[bs("0x4")](),this[bs("0x10")]=!1)}),{priority:bs("0xa")}),t[bs("0x3")][bs("0x2")]("TrackChangesEditing")[bs("0xe")](bs("0x14")))}[bs("0xc")](t,e){const{suggestions:n}=e,o=this[bs("0xb")].commands[bs("0x2")](bs("0x12")),r=o[bs("0xd")];this[bs("0x0")]!==r&&(o[bs("0x4")](),this._trackChangesExecuted=!0),n&&n[bs("0x1")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[bs("0xb")][bs("0x3")][bs("0x2")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:bs("0x14")}}};this[bs("0xb")].plugins[bs("0x2")](bs("0x7"))[bs("0x8")](r)}))}}const _s=["has","commandName","blockIndent","getItems","registerAttributeLabel","outdent","indent","TrackChangesEditing","IndentEditing","get","outdentBlock","indentBlock","IndentBlock","FORMAT_INDENT","_descriptionFactory","locale","plugins","*Outdent:* %0","getItemLabel","registerDescriptionCallback","_enableDefaultAttributesIntegration","*Indent:* %0","editor","enableCommand","_registerBlockAttribute","type","_registerLegacyDescription"];var Ts,ys;Ts=_s,ys=292,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.editor,e=t[Cs("0x15")][Cs("0xe")](Cs("0xc"));if(t[Cs("0x15")][Cs("0x5")](Cs("0xd"))&&(e[Cs("0x1")](Cs("0xb")),e[Cs("0x1")](Cs("0xa"))),t[Cs("0x15")][Cs("0x5")](Cs("0x11")))for(const t of[Cs("0x10"),Cs("0xf")])e[Cs("0x19")](t);const n=t[Cs("0x14")];e[Cs("0x2")]("blockIndent"),e._descriptionFactory[Cs("0x9")](Cs("0x7"),Qo(n,Cs("0x12"))),this[Cs("0x4")]()}[Cs("0x4")](){const t=this[Cs("0x0")],e=t.locale,n=t.plugins.get(Cs("0xc"));n[Cs("0x13")][Cs("0x18")]((t=>{if("formatBlock"!=t[Cs("0x3")])return;const{data:o}=t;if(!o)return;if(Cs("0x10")!=o[Cs("0x6")]&&Cs("0xf")!=o[Cs("0x6")])return;const r=t[Cs("0x8")]()[0],i=n[Cs("0x13")][Cs("0x17")](r);return Cs("0x10")==o[Cs("0x6")]?{type:"format",content:Qo(e,Cs("0x1a"),i)}:Cs("0xf")==o[Cs("0x6")]?{type:"format",content:Qo(e,Cs("0x16"),i)}:void 0}))}}var ks,Is,Rs=["requires","get","TrackChangesEditing","input","enableCommand","editor","init"];ks=Rs,Is=254,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("0x5")](){return[Hr.Input]}[Ss("0x4")](){this[Ss("0x3")].plugins[Ss("0x6")](Ss("0x0"))[Ss("0x2")](Ss("0x1"))}}const Ns=["format","link","afterInit","locale","manualDecorators","editor","get","has","plugins","linkHref","_registerLegacyDescription","LinkEditing","*Set link:* %0","TrackChangesEditing","_enableDefaultAttributesIntegration","*Remove link*","link (","commands","commandParams","unlink","_descriptionFactory","newValue","key","map"];var Ls,Ms;Ls=Ns,Ms=415,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{[ws("0x13")](){const t=this.editor;if(!t.plugins[ws("0x0")](ws("0x4")))return;const e=t[ws("0x1")][ws("0x17")](ws("0x6")),n=t[ws("0xa")][ws("0x17")](ws("0x12"));e[ws("0x7")](ws("0x12"),[ws("0x2"),...n.manualDecorators[ws("0x10")]((t=>t.id))]),e[ws("0x7")](ws("0xc"));for(const t of n[ws("0x15")])e[ws("0xd")].registerAttributeLabel(t.id,ws("0x9")+t.label.toLowerCase()+")");e[ws("0xd")].registerDescriptionCallback((e=>{if("attribute"!=e.type)return;const{data:n}=e;if(!n||ws("0x2")!=n[ws("0xf")])return;const o=n[ws("0xe")],r=t.locale;return{type:ws("0x11"),content:null==o?Qo(r,ws("0x8")):Qo(r,ws("0x5"),'"'+o+'"')}})),this[ws("0x3")]()}_registerLegacyDescription(){const t=this[ws("0x16")],e=t[ws("0x14")];t[ws("0x1")][ws("0x17")](ws("0x6"))[ws("0xd")].registerDescriptionCallback((t=>{if("formatInline"!=t.type)return;const{data:n}=t;if(n){if(ws("0x12")==n.commandName){const t=n[ws("0xb")][0];return{type:"format",content:Qo(e,ws("0x5"),'"'+t+'"')}}return ws("0xc")==n.commandName?{type:ws("0x11"),content:Qo(e,ws("0x8"))}:void 0}}))}}const Fs=["previousSibling","bulletedList","getSelectedBlocks","locale","name","findIndex","editor","registerElementLabel","ELEMENT_NUMBERED_LIST","replace","slice","*Outdent:* %0","format","*Check item*","commandParams","_descriptionFactory","TodoListEditing","checkTodoList","commands","plugins","markBlockFormat","*Uncheck item*","afterInit","formatInline","todoListChecked","registerDescriptionCallback","List","document","enableCommand","todoList","element","end","listItem","createPositionAt","filter","type","selection","commandName","model","ELEMENT_BULLETED_LIST","schema","numbered","getAttribute","value","TrackChangesEditing","ELEMENT_LIST_ITEM","length","outdentList","push","has","listIndent","change","get","parent","indentList","*Change to:* %0","nextSibling","add","before","execute","from","paragraph","numberedList","formatBlock","bulleted"];var Ds,Bs;Ds=Fs,Bs=334,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0xd")](){const t=this[Ps("0x3e")],e=t[Ps("0x3b")];if(!t[Ps("0xa")][Ps("0x28")]("ListEditing"))return;const n=t[Ps("0xa")][Ps("0x2b")](Ps("0x23")),o=t[Ps("0xa")][Ps("0x28")](Ps("0x7"));function r(e){return()=>{const o=t[Ps("0x1d")].document[Ps("0x1b")],r=t[Ps("0x9")][Ps("0x2b")](e);if(r[Ps("0x22")])return void t[Ps("0x32")](Ps("0x34"),{});const i=e[Ps("0x1")](0,-4),s=function(t,e,n){let o=Array[Ps("0x33")](t)[Ps("0x19")]((t=>{return e=t,(o=n).checkChild(e[Ps("0x2c")],Ps("0x17"))&&!o.isObject(e);var e,o}));o=o[Ps("0x19")]((t=>!t.is(Ps("0x15"),Ps("0x17"))||t[Ps("0x21")]("listType")!=e));const r=new Set;for(const t of o)t.is(Ps("0x15"),"listItem")?r[Ps("0x30")](js(t)):r[Ps("0x30")](t);return Array.from(r)}(o[Ps("0x3a")](),i,t.model[Ps("0x1f")]);t.model[Ps("0x2a")]((()=>{for(const t of s)n[Ps("0xb")](t,{commandName:e,commandParams:[{forceValue:!r[Ps("0x22")]}],formatGroupId:"blockName"},Gs(t))}))}}function i(e){return()=>{const o=function(t){let e=Array[Ps("0x33")](t);const n=e[Ps("0x3d")]((t=>"listItem"!=t[Ps("0x3c")]));return n>-1&&(e=e.slice(0,n)),e}(t[Ps("0x1d")][Ps("0x12")][Ps("0x1b")].getSelectedBlocks()),r=t[Ps("0x1d")].createRange(t.model[Ps("0x18")](o[0],Ps("0x31")),t[Ps("0x1d")][Ps("0x18")](o[o[Ps("0x25")]-1],Ps("0x16")));t.model[Ps("0x2a")]((()=>{n[Ps("0xb")](r,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x2f")];for(;t&&t[Ps("0x21")](Ps("0x29"))>n[Ps("0x21")](Ps("0x29"));)e.add(t),t=t[Ps("0x2f")]}return Array[Ps("0x33")](e)}(o))}))}}n[Ps("0x13")](Ps("0x35"),r("numberedList")),n.enableCommand(Ps("0x39"),r("bulletedList")),o&&n.enableCommand("todoList",r(Ps("0x14"))),n[Ps("0x13")]("indentList",i(Ps("0x2d"))),n[Ps("0x13")](Ps("0x26"),i(Ps("0x26"))),o&&n.enableCommand("checkTodoList",(()=>{const e=t[Ps("0x9")][Ps("0x2b")](Ps("0x8")),o=Array[Ps("0x33")](e._selectedElements);o[Ps("0x19")]((t=>t[Ps("0x21")](Ps("0xf"))!=e[Ps("0x22")])),t[Ps("0x1d")].change((()=>{for(const t of o)n[Ps("0xb")](t,{commandName:Ps("0x8"),commandParams:[{forceValue:!e.value}]})}))})),n[Ps("0x6")][Ps("0x3f")]("listItem",(t=>Qo(e,Ps("0x24"),t))),n[Ps("0x6")][Ps("0x10")]((t=>{if(Ps("0x36")!=t.type&&Ps("0xe")!=t[Ps("0x1a")])return;const{data:n}=t;if(n){if("numberedList"==n[Ps("0x1c")]||"bulletedList"==n[Ps("0x1c")]||Ps("0x14")==n.commandName)switch(n[Ps("0x1c")][Ps("0x0")](Ps("0x11"),"")){case Ps("0x37"):return o(Qo(e,Ps("0x1e")));case Ps("0x20"):return o(Qo(e,Ps("0x40")));case"todo":return o(Qo(e,"ELEMENT_TODO_LIST"))}if(Ps("0x2d")==n[Ps("0x1c")])return{type:"format",content:Qo(e,"*Indent:* %0",Qo(e,Ps("0x24")))};if("outdentList"==n[Ps("0x1c")])return{type:Ps("0x3"),content:Qo(e,Ps("0x2"),Qo(e,Ps("0x24")))};if(Ps("0x8")==n[Ps("0x1c")])return n[Ps("0x5")][0].forceValue?{type:Ps("0x3"),content:Qo(e,Ps("0x4"))}:{type:Ps("0x3"),content:Qo(e,Ps("0xc"))}}function o(t){return{type:Ps("0x3"),content:Qo(e,Ps("0x2e"),t)}}}))}}function js(t){const e=t[Ps("0x21")](Ps("0x29"));if(0==e)return t;let n=t;for(;t[Ps("0x38")]&&t.previousSibling.is("element",Ps("0x17"));){const o=t[Ps("0x38")][Ps("0x21")](Ps("0x29"));if(o==e)n=t[Ps("0x38")];else if(o<e)break;t=t[Ps("0x38")]}return n}function Gs(t){const e=[];if(t.is(Ps("0x15"),Ps("0x17"))&&t[Ps("0x21")](Ps("0x29"))>0){let n=t[Ps("0x2f")];for(;n&&Ps("0x17")==n.name&&n[Ps("0x21")](Ps("0x29"))==t[Ps("0x21")](Ps("0x29"));)e[Ps("0x27")](n),n=n.nextSibling}return e}const Vs=["document","getSelectedBlocks","createPositionAt","flat","change","list.properties","push","replace","ListPropertiesEditing","format","get","editor","selection","getSiblingNodes","*Change to:* %0","unshift","toUpperCase","_getTranslationKeyForListStyle","has","map","_LIST_","model","numbered","reversed","parent","listItem","handleDescriptions","formatInline","_getSuggestionBlocksForListStyle","ELEMENT_","ListUtils","enableCommand","_getSuggestionBlocks","styles","config","listReversed","createRange","listStyle","getFirstPosition","formatBlock","element","commandParams","plugins","getListTypeFromListStyleType","TrackChangesEditing","markMultiRangeBlockFormat","type","before","startIndex","getAttribute","handleListStartCommand","forward","handleListReversedCommand","backward","listStart","filter","handleListStyleCommand","from","length","*Format:* set order to reversed","*Format:* set start index to %0","_descriptionFactory","bind"];var Hs,zs;Hs=Vs,zs=181,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[Ws("0x13")][Ws("0x32")][Ws("0x1a")](Ws("0x10")))return;const t=this[Ws("0x13")][Ws("0x2a")][Ws("0x12")](Ws("0xd")),e=this[Ws("0x13")][Ws("0x32")].get(Ws("0x34"));t[Ws("0x29")]&&e[Ws("0x27")]("listStyle",this[Ws("0x1")][Ws("0x7")](this)),t[Ws("0x1f")]&&e[Ws("0x27")](Ws("0x2b"),this.handleListReversedCommand[Ws("0x7")](this)),t[Ws("0x38")]&&e[Ws("0x27")]("listStart",this[Ws("0x3a")][Ws("0x7")](this)),e[Ws("0x6")].registerDescriptionCallback(this[Ws("0x22")][Ws("0x7")](this))}[Ws("0x1")](t,e={}){const n=this[Ws("0x13")][Ws("0x32")][Ws("0x12")](Ws("0x34")),o=this[Ws("0x24")]();this[Ws("0x13")][Ws("0x1d")][Ws("0xc")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ws("0x2d"),commandParams:[{type:e[Ws("0x36")]}],formatGroupId:"listStyle"})}))}[Ws("0x3c")](t,e={}){const n=this.editor[Ws("0x32")][Ws("0x12")](Ws("0x34")),o=this._getSuggestionBlocks((t=>t.is(Ws("0x30"),Ws("0x21"))&&Ws("0x1e")===t[Ws("0x39")]("listType")));if(o[Ws("0x3")]<1)return;const r=o.map((t=>this.editor[Ws("0x1d")][Ws("0x2c")](this[Ws("0x13")][Ws("0x1d")][Ws("0xa")](t,Ws("0x37")),this.editor[Ws("0x1d")][Ws("0xa")](t,0))));this[Ws("0x13")][Ws("0x1d")][Ws("0xc")]((()=>{n[Ws("0x35")](r,{commandName:Ws("0x2b"),commandParams:[{reversed:e[Ws("0x1f")]}],formatGroupId:Ws("0x2b")})}))}[Ws("0x3a")](t,e={}){const n=this.editor[Ws("0x32")][Ws("0x12")](Ws("0x34")),o=this._getSuggestionBlocks((t=>t.is(Ws("0x30"),Ws("0x21"))&&"numbered"===t.getAttribute("listType")));if(o[Ws("0x3")]<1)return;const r=o.map((t=>this[Ws("0x13")].model.createRange(this[Ws("0x13")][Ws("0x1d")][Ws("0xa")](t,Ws("0x37")),this.editor.model[Ws("0xa")](t,0))));this[Ws("0x13")][Ws("0x1d")][Ws("0xc")]((()=>{n[Ws("0x35")](r,{commandName:Ws("0x3e"),commandParams:[{startIndex:e[Ws("0x38")]}],formatGroupId:Ws("0x3e")})}))}[Ws("0x22")](t){if(Ws("0x2f")!=t[Ws("0x36")]&&Ws("0x23")!=t[Ws("0x36")])return;const e=this[Ws("0x13")].locale,{data:n}=t;if(!n)return;let o,r;switch(n.commandName){case Ws("0x2d"):o=Ws("0x16"),r={type:"format",content:Qo(e,o,Qo(e,this[Ws("0x19")](n[Ws("0x31")][0][Ws("0x36")])))};break;case Ws("0x2b"):o=n[Ws("0x31")][0][Ws("0x1f")]?Ws("0x4"):"*Format:* set order to regular",r={type:Ws("0x11"),content:Qo(e,o)};break;case Ws("0x3e"):o=Ws("0x5"),r={type:"format",content:Qo(e,o,n.commandParams[0][Ws("0x38")])}}return r}[Ws("0x24")](){var t,e,n,o;const r=this.editor[Ws("0x32")].get(Ws("0x26"));let i=Array[Ws("0x2")](this.editor[Ws("0x1d")][Ws("0x8")][Ws("0x14")][Ws("0x9")]());return(null===(t=i[0])||void 0===t?void 0:t.is("element",Ws("0x21")))&&i[Ws("0x17")](...r.getSiblingNodes(this[Ws("0x13")][Ws("0x1d")].document[Ws("0x14")][Ws("0x2e")](),Ws("0x3d"))),(null===(e=i[i[Ws("0x3")]-1])||void 0===e?void 0:e.is(Ws("0x30"),"listItem"))&&i[Ws("0xe")](...r[Ws("0x15")](this[Ws("0x13")][Ws("0x1d")][Ws("0x8")][Ws("0x14")].getLastPosition(),"forward")),i=[...new Set(i)],(null===(o=null===(n=this[Ws("0x13")][Ws("0x1d")][Ws("0x8")][Ws("0x14")][Ws("0x2e")]())||void 0===n?void 0:n[Ws("0x20")])||void 0===o?void 0:o.is("element",Ws("0x21")))&&(i=i[Ws("0x0")]((t=>t.is(Ws("0x30"),Ws("0x21"))))),i}[Ws("0x28")](t){const e=this[Ws("0x13")][Ws("0x32")][Ws("0x12")](Ws("0x26"));let n=Array[Ws("0x2")](this[Ws("0x13")][Ws("0x1d")].document[Ws("0x14")][Ws("0x9")]())[Ws("0x0")](t)[Ws("0x1b")]((t=>{const n=this.editor.model[Ws("0xa")](t,0);return[...e[Ws("0x15")](n,Ws("0x3d")),...e.getSiblingNodes(n,Ws("0x3b"))]}))[Ws("0xb")]();return n=[...new Set(n)],n}[Ws("0x19")](t){return Ws("0x25")+this[Ws("0x13")][Ws("0x32")][Ws("0x12")](Ws("0x26"))[Ws("0x33")](t)[Ws("0x18")]()+Ws("0x1c")+t[Ws("0x18")]()[Ws("0xf")](/-/g,"_")}}const qs=["downcastDispatcher","locale","afterInit","has","MediaEmbedEditing","high","editor","get","plugins","attribute:url:media","for","registerElementLabel","createEmptyElement","showSuggestionHighlights","ELEMENT_MEDIA","TrackChangesEditing","div","mediaEmbed","elementToElement","stop","data","media","_descriptionFactory"];var Xs,$s;Xs=qs,$s=216,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("0x14")];if(!t.plugins[Zs("0x11")](Zs("0x12")))return;const e=t[Zs("0x16")][Zs("0x15")](Zs("0x6")),n=t[Zs("0xf")];e.enableCommand(Zs("0x8")),e[Zs("0xd")][Zs("0x2")](Zs("0xc"),(t=>Qo(n,Zs("0x5"),t))),t.conversion[Zs("0x1")]("dataDowncast")[Zs("0x9")]({model:Zs("0xc"),view:(t,{writer:e,options:n})=>{if(n[Zs("0x4")])return e[Zs("0x3")](Zs("0x7"))},converterPriority:Zs("0x13")}),t[Zs("0xb")][Zs("0xe")].on(Zs("0x0"),((t,e,n)=>{n.options[Zs("0x4")]&&t[Zs("0xa")]()}),{priority:Zs("0x13")})}}const Js=["plugins","MentionEditing","afterInit","enableCommand","TrackChangesEditing","get","mention","has","editor"];var Qs,tx;Qs=Js,tx=357,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x5")](){const t=this[ex("0x2")];t[ex("0x3")][ex("0x1")](ex("0x4"))&&t[ex("0x3")][ex("0x8")](ex("0x7"))[ex("0x6")](ex("0x0"))}}const ox=["pageBreak","locale","_descriptionFactory","editor","has","registerElementLabel","PageBreakEditing","enableCommand","plugins","TrackChangesEditing","afterInit"];var rx,ix;rx=ox,ix=220,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("0x3")];if(!t[sx("0x8")][sx("0x4")](sx("0x6")))return;t[sx("0x8")].get(sx("0x9"))[sx("0x7")](sx("0x0"));const e=t.plugins.get(sx("0x9")),n=t[sx("0x1")];e[sx("0x2")][sx("0x5")](sx("0x0"),(t=>Qo(n,"ELEMENT_PAGE_BREAK",t)))}}const ax=["paragraph","ELEMENT_PARAGRAPH","Paragraph","bindElementToMarker","schema","getFirstRange","span","_registerLegacyDescription","type","*Change to:* %0","get","registerElementLabel","isLimit","ck-suggestion-marker-split","markerName","highest","format","addClass","insert","downcastDispatcher","plugins","includes","showSuggestionHighlights","TrackChangesEditing","checkChild","afterInit","name","locale","nodeAfter","ck-suggestion-marker--active","_descriptionFactory","editor","isTouching","addMarker:suggestion:insertion","commandName","start","insertParagraph","enableCommand","registerDescriptionCallback","$text","consumable","markerRange","createUIElement","writer"];var cx,lx;cx=ax,lx=154,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x3")](){const t=this[ux("0x9")];if(!t[ux("0x2a")].has(ux("0x18")))return;const e=t[ux("0x5")],n=t.plugins[ux("0x20")](ux("0x1"));n._descriptionFactory[ux("0x21")](ux("0x16"),(t=>Qo(e,ux("0x17"),t))),n._enableDefaultAttributesIntegration(ux("0x16")),n[ux("0xf")](ux("0xe")),t.editing[ux("0x29")].on(ux("0xb"),gx(t),{priority:"highest"}),t.data[ux("0x29")].on(ux("0xb"),((e,n,o)=>{o.options[ux("0x0")]&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:ux("0x25")});const o=n[ux("0x8")];o[ux("0x10")]((n=>{if("insertion"!==n[ux("0x1e")])return;const{start:r,end:i}=n[ux("0x1b")]();if(!r[ux("0xa")](i)||!r.nodeAfter)return;const s=t.model[ux("0x1a")],x=r[ux("0x6")];return s.isBlock(x)&&!s[ux("0x22")](x)&&s[ux("0x2")](x,ux("0x11"))?{type:"insertion",content:Qo(e,"*Insert:* %0",o.getItemLabel(x,1))}:void 0})),this[ux("0x1d")]()}[ux("0x1d")](){const t=this[ux("0x9")],e=t[ux("0x5")];t[ux("0x2a")][ux("0x20")]("TrackChangesEditing")[ux("0x8")][ux("0x10")]((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;return n&&ux("0x16")==n[ux("0xc")]?{type:ux("0x26"),content:Qo(e,ux("0x1f"),Qo(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t.plugins.get("TrackChangesEditing"),s=o.markerRange[ux("0xd")],x=o[ux("0x13")].end,a=t.model.schema;if(!s[ux("0xa")](x)||!s[ux("0x6")])return;const c=s[ux("0x6")];if(a.isBlock(c)&&!a[ux("0x22")](c)&&a[ux("0x2")](c,ux("0x11"))){if(!r[ux("0x12")].consume(o[ux("0x13")],n[ux("0x4")]))return;const t=r[ux("0x15")][ux("0x14")](ux("0x1c"),{class:ux("0x23")}),s=r.mapper.toViewPosition(x);e&&i.activeMarkers[ux("0x2b")](o.markerName)&&r.writer[ux("0x27")](ux("0x7"),t),r[ux("0x15")][ux("0x28")](s,t),r.mapper[ux("0x19")](t,o[ux("0x24")])}}}const fx=["afterInit","_descriptionFactory","type","locale","*Remove all formatting*","commandName","format","formatBlock","removeFormat","get","RemoveFormatEditing","editor","registerDescriptionCallback","_enableDefaultAttributesIntegration","plugins","_registerLegacyDescription"];var mx,hx;mx=fx,hx=440,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0x8")](){const t=this[px("0x3")];t[px("0x6")].has(px("0x2"))&&(t[px("0x6")][px("0x1")]("TrackChangesEditing")[px("0x5")](px("0x0")),this._registerLegacyDescription())}[px("0x7")](){const t=this.editor;t[px("0x6")][px("0x1")]("TrackChangesEditing")[px("0x9")][px("0x4")]((e=>{if(px("0xf")!=e[px("0xa")]&&"formatInline"!=e[px("0xa")])return;const{data:n}=e;return n&&px("0x0")==n[px("0xd")]?{type:px("0xe"),content:Qo(t[px("0xb")],px("0xc"))}:void 0}))}}const Ex=["enableCommand","has","acceptSelectedSuggestions","discardSelectedSuggestions","RestrictedEditingModeEditing","goToPreviousRestrictedEditingException","discardAllSuggestions","goToNextRestrictedEditingException","TrackChangesEditing","acceptSuggestion","plugins","acceptAllSuggestions","editor","get"];var _x,Tx;_x=Ex,Tx=381,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{afterInit(){const t=this[yx("0x9")];if(!t[yx("0x7")][yx("0xc")](yx("0x1")))return;const e=t.plugins[yx("0xa")](yx("0x5"));e[yx("0xb")](yx("0x2")),e[yx("0xb")](yx("0x4"));const n=t[yx("0x7")][yx("0xa")](yx("0x1"));n[yx("0xb")]("trackChanges"),n[yx("0xb")](yx("0x6")),n.enableCommand("discardSuggestion"),n.enableCommand(yx("0x8")),n.enableCommand(yx("0x3")),n.enableCommand(yx("0xd")),n[yx("0xb")](yx("0x0"))}}const Ax=["_descriptionFactory","toViewPosition","TrackChangesEditing","addMarker:suggestion:insertion","span","ck-suggestion-marker--active","ck-suggestion-marker-","name","createUIElement","addClass","high","options","downcastDispatcher","insert","markerName","merge","createPositionBefore","enableCommand","editing","activeMarkers","test","includes","ELEMENT_LINE_BREAK","plugins","softBreak","registerElementLabel","split","markerRange","shiftEnter","editor","writer","get","element","locale","consumable","mapper"];var kx,Ix;kx=Ax,Ix=124,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 requires(){return[ui.ShiftEnter]}init(){const t=this[Rx("0xd")],e=t.plugins[Rx("0xf")]("TrackChangesEditing");e[Rx("0x1")](Rx("0xc")),t[Rx("0x2")][Rx("0x20")].on(Rx("0x17"),vx(t),{priority:Rx("0x1e")}),t[Rx("0x2")][Rx("0x20")].on("addMarker:suggestion:deletion",vx(t),{priority:"high"}),t.data.downcastDispatcher.on("addMarker:suggestion",((e,n,o)=>{o[Rx("0x1f")].showSuggestionHighlights&&vx(t,{showActiveMarker:!1})(e,n,o)})),e[Rx("0x14")][Rx("0x9")](Rx("0x8"),(e=>Qo(t[Rx("0x11")],Rx("0x6"),e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t[Rx("0x7")][Rx("0xf")](Rx("0x16"));if(!r[Rx("0x12")][Rx("0x4")](o[Rx("0xb")],n[Rx("0x1b")]))return;const s=t.model;for(const t of o[Rx("0xb")].getItems()){if(!t.is(Rx("0x10"),Rx("0x8")))continue;const n="deletion"==o.markerName[Rx("0xa")](":")[1]?Rx("0x23"):Rx("0xa"),x=r[Rx("0xe")][Rx("0x1c")](Rx("0x18"),{class:Rx("0x1a")+n}),a=r.mapper[Rx("0x15")](s[Rx("0x0")](t));e&&i[Rx("0x3")][Rx("0x5")](o[Rx("0x22")])&&r[Rx("0xe")][Rx("0x1d")](Rx("0x19"),x),r.writer[Rx("0x21")](a,x),r[Rx("0x13")].bindElementToMarker(x,o[Rx("0x22")])}}}const Nx=["has","StandardEditingModeEditing","registerDescriptionCallback","editor","forceValue","commands","isCollapsed","FORMAT_RESTRICTED_ENABLED","plugins","TrackChangesEditing","type","model","selection","document","FORMAT_RESTRICTED_DISABLED","markInlineFormat","getRanges","_descriptionFactory","from","change","format","get","restrictedEditingException","commandParams","commandName"];var Lx,Mx;Lx=Nx,Mx=334,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("0x13")],e=t[wx("0x2")],n=t.locale;if(!t[wx("0x18")][wx("0x10")](wx("0x11")))return;const o=t[wx("0x18")].get(wx("0x0")),r=wx("0xd"),i=t[wx("0x15")][wx("0xc")](r);o.enableCommand(r,((t,n={})=>{const s=e[wx("0x4")][wx("0x3")];if(s[wx("0x16")])return void t(n);const x=void 0!==n.forceValue?n[wx("0x14")]:!i.value;e[wx("0xa")]((()=>{const t=Array[wx("0x9")](s[wx("0x7")]());for(const n of t){const t=x?[n]:Xr(r,n,e);for(const e of t)o[wx("0x6")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[wx("0x8")][wx("0x12")]((t=>{if("formatBlock"!=t.type&&"formatInline"!=t[wx("0x1")])return;const{data:e}=t;return e&&e[wx("0xf")]==r?e[wx("0xe")][0].forceValue?{type:wx("0xb"),content:Qo(n,wx("0x17"))}:{type:wx("0xb"),content:Qo(n,wx("0x5"))}:void 0}))}}const Fx=["element","_enableDefaultAttributesIntegration","get","inline","StyleUtils","_registerInlineAttribute","type","add","style","block","getGhsAttributeNameForElement","format","FORMAT_STYLE","toLowerCase","styleName","plugins","afterInit","_descriptionFactory","locale","has","ghsAttributes","forceValue","DataSchema","Style","TrackChangesEditing","editor","normalizeConfig","GeneralHtmlSupport","formatInline","registerAttributeLabel","config","_registerLegacyDescription","*Set format:* %0","commandParams"];var Dx,Bx;Dx=Fx,Bx=365,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{[Px("0x19")](){const t=this[Px("0x0")];if(!t.plugins.has(Px("0x20"))||!t[Px("0x18")][Px("0x1c")](Px("0x1f")))return;const e=t.plugins[Px("0xb")](Px("0x21")),n=t[Px("0x1b")],o=t[Px("0x5")][Px("0xb")](Px("0x11")),r=t[Px("0x18")].get(Px("0x2")),i=t.plugins.get(Px("0xd"))[Px("0x1")](t[Px("0x18")][Px("0xb")](Px("0x1f")),o.definitions);e[Px("0xa")](Px("0x11"));const s=new Set;for(const t of i[Px("0x12")]){const e=r[Px("0x13")](t[Px("0x9")]);s[Px("0x10")](e)}const x=new Set;for(const t of i[Px("0xc")]){const e=r.getGhsAttributeNameForElement(t[Px("0x9")]);x[Px("0x10")](e);for(const e of t[Px("0x1d")])x[Px("0x10")](e)}for(const t of s)e._registerBlockAttribute(t),e[Px("0x1a")].registerAttributeLabel(t,Qo(n,Px("0x15")));for(const t of x)e[Px("0xe")](t),e[Px("0x1a")][Px("0x4")](t,Qo(n,Px("0x15")));this[Px("0x6")]()}[Px("0x6")](){const t=this[Px("0x0")],e=t[Px("0x1b")];t.plugins[Px("0xb")](Px("0x21"))[Px("0x1a")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Px("0xf")]&&Px("0x3")!=t[Px("0xf")])return;const{data:n}=t;return n&&Px("0x11")===n.commandName?n[Px("0x8")][0][Px("0x1e")]?{type:Px("0x14"),content:Qo(e,Px("0x7"),n[Px("0x8")][0][Px("0x17")][Px("0x16")]())}:{type:"format",content:Qo(e,"*Remove format:* %0",n[Px("0x8")][0].styleName[Px("0x16")]())}:void 0}))}}const jx=["_getSuggestionCoords","insert","registerCustomCallback","locale","startsWith","isEqual","registerElementLabel","MIN_SAFE_INTEGER","markMultiRangeDeletion","addRange","TableUtils","_tablePostFixingSubtypes","above","colspan","get","values","hasAttribute","selectTableRow","insertTableColumnLeft","addMarker:suggestion","createRangeOn","registerDescriptionCallback","createTableWalker","from","commands","fromRange","getChildren","getSuggestion","plugins","nodeBefore","editor","includes","getChanges","getItems","insertTableRowBelow","registerPostFixer","low","removeClass","cell","deletion","tableCell","refresh","data","filter","ELEMENT_TABLE_WITH_TEXT","toLowerCase","rowspan","root","findAncestor","document","nodeAfter","item","insertTable","_splitMarkerName","insertTableRowAbove","getSelectionAffectedTableCells","table","TableEditing","ELEMENT_TABLE_COLUMN_WITH_TEXT","getCellLocation","discard","$textProxy","enableCommand","writer","$graveyard","getFirstRange","maxColumn","detach","change","enqueueChange","selectTableColumn","_tableSuggestions","subType","position","*Remove:* %0","getChangedMarkers","push","getRanges","removeTableColumn","getAttribute","getContainedElement","first","order","insertion","showSuggestionHighlights","length","markMultiRangeInsertion","accept","name","maxRow","rootName","has","last","insertTableColumnRight","classes","setSelection","ELEMENT_TABLE_ROW","mapper","forceValue","every","removeTableRow","some","substr","model","_acceptFormatSuggestionCallbackFactory","tableRow","createRangeIn","min","isIntersectingWithRange","execute","ELEMENT_TABLE_ROW_WITH_TEXT","addClass","minColumn","oldRange","_getCoordsForCells","differ","*Insert:* %0","map","_setupColumnsRowsFixing","_suggestionFactory","type","add","MAX_SAFE_INTEGER","tableColumn","downcastDispatcher","join","start","change:data","ELEMENT_TABLE","batch","selection","_descriptionFactory","end","isInContent","max"];var Gx,Vx;Gx=jx,Vx=238,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("0x2b")]=[Hx("0x2"),Hx("0x14")],this[Hx("0x67")]=new Set}afterInit(){const t=this.editor,e=t[Hx("0x0")][Hx("0x51")][Hx("0x1b")];if(!t[Hx("0x3c")][Hx("0x7b")](Hx("0x59")))return;const n=t[Hx("0x23")],o=t[Hx("0x3c")][Hx("0x2e")]("TrackChangesEditing"),r=t[Hx("0x3c")][Hx("0x2e")](Hx("0x2a"));o[Hx("0x1c")][Hx("0x26")](Hx("0x58"),(t=>Qo(n,Hx("0x19"),t))),this[Hx("0xf")](),o[Hx("0x5e")](Hx("0x54")),o.enableCommand(Hx("0x31")),o[Hx("0x5e")](Hx("0x66"));for(const n of[Hx("0x56"),Hx("0x42")]){const i=t[Hx("0x38")][Hx("0x2e")](n);o[Hx("0x5e")](n,(n=>{t[Hx("0x0")][Hx("0x64")]((t=>{n();const s=Hx("0x2c")===i[Hx("0x72")],x=r.getSelectionAffectedTableCells(e),a=r.getRowIndexes(x),c=s?a[Hx("0x71")]-1:a.last+1,l=x[0][Hx("0x50")](Hx("0x58")),u=r[Hx("0x36")](l,{startRow:c,endRow:c}),d=Array[Hx("0x37")](u)[Hx("0xe")]((e=>t[Hx("0x34")](e[Hx("0x46")])));o[Hx("0x76")](d,Hx("0x2"))}))}))}for(const n of[Hx("0x32"),Hx("0x7d")]){const i=t[Hx("0x38")].get(n);o[Hx("0x5e")](n,(n=>{t.model.change((t=>{n();const s="left"===i[Hx("0x72")],x=r.getSelectionAffectedTableCells(e),a=r.getColumnIndexes(x),c=s?a.first-1:a[Hx("0x7c")]+1,l=x[0][Hx("0x50")](Hx("0x58")),u=r[Hx("0x36")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x37")](u)[Hx("0xe")]((e=>t[Hx("0x34")](e[Hx("0x46")])));o[Hx("0x76")](d,Hx("0x14"))}))}))}for(const n of["removeTableRow",Hx("0x6e")]){const i=n[Hx("0x86")](11),s=i[Hx("0x4d")](),x=s.substr(0,3)+"span",a=Hx("0x58")+i,c=Hx("0x4")+i,l=Hx("0x1f")+i;o[Hx("0x5e")](n,(()=>{t[Hx("0x0")][Hx("0x64")]((t=>{const i=r[Hx("0x57")](e),u=i[0][Hx("0x50")](Hx("0x58"));let d;if(Hx("0x84")==n){const t=r.getRowIndexes(i);d={startRow:t[Hx("0x71")],endRow:t[Hx("0x7c")],includeAllSlots:!0}}else{const t=r.getColumnIndexes(i);d={startColumn:t[Hx("0x71")],endColumn:t[Hx("0x7c")],includeAllSlots:!0}}const g=r[Hx("0x36")](u,d),f=Array[Hx("0x37")](g)[Hx("0xe")]((({cell:t})=>t)),m=Wx(f.filter((t=>t[Hx("0x30")](x)))),h=Wx(f[Hx("0x4b")]((t=>!t[Hx("0x30")](x))))[Hx("0xe")]((e=>t[Hx("0x34")](e))),p=o[Hx("0x28")](h,a);if(p&&(Hx("0x2")==p[Hx("0x68")]||Hx("0x14")==p[Hx("0x68")])){const e=this[Hx("0x20")](p);for(const n of m){const o=t[Hx("0x34")](n),i=r.getCellLocation(n),a=n[Hx("0x6f")](x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&p[Hx("0x29")](o)}}}))}))}function i(n){const o=Array[Hx("0x37")](e[Hx("0x6d")]()).map((t=>s.LiveRange[Hx("0x39")](t)));t[Hx("0x0")][Hx("0x64")]((e=>{const r=e[Hx("0x1a")];n=n[Hx("0x4b")]((t=>Hx("0x60")!=t[Hx("0x4f")][Hx("0x7a")])),e.setSelection(n),t.commands[Hx("0x2e")](Hx("0x84")).refresh(),t[Hx("0x6")](Hx("0x84"),{forceDefaultExecution:!0}),t[Hx("0x0")][Hx("0x65")]((()=>{t[Hx("0x0")][Hx("0x65")](r,(t=>{const e=o[Hx("0x4b")]((t=>Hx("0x60")!=t.root[Hx("0x7a")]));e[Hx("0x75")]>0&&t[Hx("0x7f")](e);for(const t of o)t[Hx("0x63")]()}))}))}))}function a(n){t[Hx("0x0")][Hx("0x64")]((o=>{const r=Array[Hx("0x37")](e.getRanges()).map((t=>s.LiveRange[Hx("0x39")](t))),i=[];for(const t of n)for(const e of t[Hx("0x41")]({shallow:!0}))i.push(e);for(const e of i)Hx("0x60")!=e[Hx("0x4f")][Hx("0x7a")]&&(o[Hx("0x7f")](o.createPositionAt(e,0)),t.commands.get(Hx("0x6e")).refresh(),t[Hx("0x6")](Hx("0x6e"),{forceDefaultExecution:!0}));const x=r[Hx("0x4b")]((t=>Hx("0x60")!=t[Hx("0x4f")][Hx("0x7a")]));x[Hx("0x75")]>0&&o[Hx("0x7f")](x);for(const t of r)t[Hx("0x63")]()}))}function c(t,e){return e[Hx("0x83")]((e=>t[Hx("0x85")]((t=>t.end[Hx("0x25")](e.start)||e[Hx("0x1d")][Hx("0x25")](t[Hx("0x17")])))))}function l(t,e){return t[Hx("0x85")]((t=>e.some((e=>t[Hx("0x1d")].isTouching(e[Hx("0x17")])))))}t.data[Hx("0x15")].on(Hx("0x33"),((t,e,n)=>{if(!n.options[Hx("0x74")])return;const o=e[Hx("0x53")];if(!o)return;const r=n[Hx("0x81")].toViewElement(o);function i(t){return Array.isArray(t)?t:[t]}r&&Hx("0x48")===o[Hx("0x78")]&&(0,x.setHighlightHandling)(r,n[Hx("0x5f")],((t,e,n)=>n[Hx("0x8")](i(e[Hx("0x7e")]),t)),((t,e,n)=>n[Hx("0x45")](i(e.classes),t)))}),{priority:"highest"}),o[Hx("0x1c")][Hx("0x35")]((t=>{if(Hx("0x73")!=t[Hx("0x11")]&&Hx("0x47")!=t[Hx("0x11")])return;const e=t[Hx("0x70")]();if(null!=e&&e.is("element",Hx("0x58"))){if("insertion"==t.type){const e=t[Hx("0x41")]()[Hx("0x4b")]((t=>t.is(Hx("0x5d"))))[Hx("0xe")]((t=>t[Hx("0x4a")]));if(e[Hx("0x75")])return{type:Hx("0x73"),content:Qo(n,Hx("0xd"),Qo(n,Hx("0x4c"),'"'+e.join(" ")+'"'))}}if("deletion"==t[Hx("0x11")]){const e=t.getItems()[Hx("0x4b")]((t=>t.is("$textProxy"))).map((t=>t[Hx("0x4a")]));if(e[Hx("0x75")])return{type:"deletion",content:Qo(n,Hx("0x6a"),Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Hx("0x16")](" ")+'"'))}}}})),o[Hx("0x1c")][Hx("0x35")]((t=>{if(Hx("0x2")==t[Hx("0x68")]){const e=t[Hx("0x41")]()[Hx("0x4b")]((t=>t.is(Hx("0x5d")))).map((t=>t[Hx("0x4a")])),o=this._getSuggestionCoords(t),r=o[Hx("0x79")]-o.minRow+1;if("insertion"==t[Hx("0x11")])return e[Hx("0x75")]?{type:"insertion",content:Qo(n,Hx("0xd"),Qo(n,Hx("0x7"),[r,'"'+e[Hx("0x16")](" ")+'"']))}:{type:Hx("0x73"),content:Qo(n,Hx("0xd"),Qo(n,Hx("0x80"),r))};if("deletion"==t[Hx("0x11")])return e.length?{type:Hx("0x47"),content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x7"),[r,'"'+e[Hx("0x16")](" ")+'"']))}:{type:Hx("0x47"),content:Qo(n,Hx("0x6a"),Qo(n,Hx("0x80"),r))}}if("tableColumn"==t[Hx("0x68")]){const e=t[Hx("0x41")]()[Hx("0x4b")]((t=>t.is(Hx("0x5d"))))[Hx("0xe")]((t=>t[Hx("0x4a")])),o=this._getSuggestionCoords(t),r=o[Hx("0x62")]-o[Hx("0x9")]+1;if(Hx("0x73")==t[Hx("0x11")])return e[Hx("0x75")]?{type:Hx("0x73"),content:Qo(n,"*Insert:* %0",Qo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e[Hx("0x16")](" ")+'"']))}:{type:Hx("0x73"),content:Qo(n,Hx("0xd"),Qo(n,"ELEMENT_TABLE_COLUMN",r))};if("deletion"==t[Hx("0x11")])return e[Hx("0x75")]?{type:Hx("0x47"),content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x5a"),[r,'"'+e[Hx("0x16")](" ")+'"']))}:{type:Hx("0x47"),content:Qo(n,"*Remove:* %0",Qo(n,"ELEMENT_TABLE_COLUMN",r))}}})),o[Hx("0x10")].registerCustomCallback(Hx("0x73"),Hx("0x2"),Hx("0x5c"),i),o[Hx("0x10")][Hx("0x22")](Hx("0x47"),Hx("0x2"),Hx("0x77"),i),o._suggestionFactory.registerCustomCallback(Hx("0x73"),Hx("0x14"),Hx("0x5c"),a),o[Hx("0x10")].registerCustomCallback(Hx("0x47"),"tableColumn",Hx("0x77"),a),o._suggestionFactory[Hx("0x22")](Hx("0x73"),"tableColumn","join",c),o[Hx("0x10")][Hx("0x22")](Hx("0x47"),Hx("0x14"),"join",c),o[Hx("0x10")][Hx("0x22")](Hx("0x73"),Hx("0x2"),Hx("0x16"),l),o[Hx("0x10")].registerCustomCallback(Hx("0x47"),Hx("0x2"),Hx("0x16"),l)}[Hx("0x1")](){const t=this[Hx("0x3e")],e=t[Hx("0x0")][Hx("0x51")][Hx("0x1b")];return(n,o)=>{t.model[Hx("0x64")]((r=>{const{commandName:i,commandParams:x}=o;let a=n[0][Hx("0x1d")][Hx("0x3d")];x&&x[0]&&!1===x[0][Hx("0x82")]&&(a=n[0].start.nodeAfter);const c=r[Hx("0x3")](a);if("$graveyard"==c.root[Hx("0x7a")])return;const l=Array.from(e[Hx("0x6d")]())[Hx("0xe")]((t=>s.LiveRange[Hx("0x39")](t)));r[Hx("0x7f")](c),t[Hx("0x38")][Hx("0x2e")](i)[Hx("0x49")](),x[Hx("0x6c")]({forceDefaultExecution:!0}),t[Hx("0x6")](i,...x);const u=l[Hx("0x4b")]((t=>"$graveyard"!=t.root[Hx("0x7a")]));u[Hx("0x75")]>0&&r.setSelection(u);for(const t of l)t[Hx("0x63")]()}))}}[Hx("0xb")](t){const e=this[Hx("0x3e")][Hx("0x3c")][Hx("0x2e")](Hx("0x2a"));let n=Number[Hx("0x13")],o=Number[Hx("0x27")],r=Number[Hx("0x13")],i=Number[Hx("0x27")];for(const s of t){if(Hx("0x60")==s.root[Hx("0x7a")])continue;const{row:t,column:x}=e[Hx("0x5b")](s),a=s[Hx("0x30")](Hx("0x4e"))?s[Hx("0x6f")](Hx("0x4e"))-1:0,c=s.hasAttribute(Hx("0x2d"))?s[Hx("0x6f")](Hx("0x2d"))-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("0xf")](){const t=this[Hx("0x3e")],e=t.plugins[Hx("0x2e")]("TrackChangesEditing"),n=t[Hx("0x3c")][Hx("0x2e")](Hx("0x2a"));t[Hx("0x0")][Hx("0x51")].on(Hx("0x18"),(()=>{const n=Array[Hx("0x37")](t[Hx("0x0")][Hx("0x51")][Hx("0xc")][Hx("0x6b")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:i}=e[Hx("0x55")](t);if("suggestion"!=n)continue;if(null!=o[Hx("0xa")])continue;const s=e[Hx("0x3b")](r);this[Hx("0x2b")][Hx("0x3f")](i)&&this[Hx("0x67")][Hx("0x12")](s)}}),{priority:Hx("0x44")});const o=(t,e)=>{let o=!1;const r=e[Hx("0x34")](t),i=t.findAncestor(Hx("0x58")),s=n[Hx("0x5b")](t);for(const e of this[Hx("0x67")]){const n=e[Hx("0x68")],x=n[Hx("0x24")]("tablePaste"),a=n[Hx("0x86")](x?10:5),c=a[Hx("0x4d")](),l=c[Hx("0x86")](0,3)+"span",u=Hx("0x4")+a,d=Hx("0x1f")+a;if(!e[Hx("0x1e")])continue;if(i!=e[Hx("0x61")]().start[Hx("0x50")]("table"))continue;if(e[Hx("0x5")](r))continue;const g=t.hasAttribute(l)?t[Hx("0x6f")](l)-1:0,f=this[Hx("0x20")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x29")](r),o=!0)}return o};t[Hx("0x0")][Hx("0x51")][Hx("0x43")]((e=>{let n=!1;for(const r of t[Hx("0x0")][Hx("0x51")][Hx("0xc")][Hx("0x40")]())if(Hx("0x21")==r[Hx("0x11")])if(Hx("0x2")==r[Hx("0x78")])for(const t of r.position[Hx("0x52")][Hx("0x3a")]())n=n||o(t,e);else"tableCell"==r[Hx("0x78")]&&(n=n||o(r[Hx("0x69")][Hx("0x52")],e));return n}))}[Hx("0x20")](t){return this[Hx("0xb")](t[Hx("0x6d")]()[Hx("0xe")]((t=>t.start[Hx("0x52")])))}}function Wx(t){return Array[Hx("0x37")](new Set(t)[Hx("0x2f")]())}const Kx=["_areSelectedCellsMergable","TableEditing","add","locale","createRangeOn","getRanges","setSelection","*Split cell:* horizontally","set:isEnabled","length","get","insertion","commandName","editor","commands","accept","mergeTableCells","_acceptFormatSuggestionCallbackFactory","createTableWalker","author","formatBlock","_tablePostFixingSubtypes","mergeTableCellLeft","push","containsRange","has","tableCell","format","_areMergableCells","_isForcedDefaultExecutionBlock","markMultiRangeBlockFormat","splitTableCellHorizontally","trackChanges","enableCommand","_suggestionFactory","direction","afterInit","subType","_descriptionFactory","mergeTableCellDown","mergeTableCellRight","document","execute","refresh","requires","type","*Split cell:* vertically","map","deletion","fromRange","registerDescriptionCallback","getSelectionAffectedTableCells","stop","formatInline","forceDefaultExecution","getFirstPosition","$graveyard","value","cell","markBlockFormat","element","filter","horizontally","size","TableUtils","isInContent","selection","model","splitTableCellVertically","getCellLocation","plugins","change","find","mergeTableCellUp","highest","*Merge cells*","getAncestors","registerCustomCallback","from"];var qx,Xx;qx=Kx,Xx=209,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("0x48")](){return[zx]}[$x("0x40")](){const t=this[$x("0x29")],e=t.model[$x("0x45")][$x("0xf")],n=t[$x("0x1f")];if(!t[$x("0x13")][$x("0x35")]($x("0x1d")))return;const o=t[$x("0x13")].get("TrackChangesEditing"),r=t.plugins[$x("0x26")]($x("0xd")),i=t.plugins[$x("0x26")](zx);i[$x("0x31")][$x("0x33")]($x("0x2c")),o.enableCommand($x("0x2c"),(()=>{const e=r[$x("0x0")](t[$x("0x10")][$x("0x45")][$x("0xf")]);t[$x("0x10")][$x("0x14")]((()=>{o[$x("0x3a")](e,{commandName:"mergeTableCells",commandParams:[]},[],$x("0x2c"))}))})),t[$x("0x2a")][$x("0x26")]($x("0x2c")).on($x("0x46"),((e,n)=>{t[$x("0x2a")][$x("0x26")]($x("0x3c"))[$x("0x6")]&&(n.length>0&&n[n.length-1]&&n[n[$x("0x25")]-1][$x("0x3")]||o[$x("0x39")]||this[$x("0x1c")]()||e[$x("0x1")]())}),{priority:$x("0x17")});for(const e of[$x("0x16"),$x("0x44"),$x("0x43"),$x("0x32")]){const n=t[$x("0x2a")].get(e);o[$x("0x3d")](e,(()=>{const e=t.model[$x("0x45")][$x("0xf")][$x("0x4")]()[$x("0x19")]()[$x("0x15")]((t=>t.is($x("0x9"),$x("0x36")))),r=n[$x("0x6")];t[$x("0x10")].change((()=>{o[$x("0x3a")]([e,r],{commandName:$x("0x2c"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[$x("0x11"),"splitTableCellHorizontally"]){const n=t[$x("0x2a")][$x("0x26")](e);o.enableCommand(e,(()=>{const i=r.getSelectionAffectedTableCells(t.model.document[$x("0xf")])[0],s=i.findAncestor("table"),{column:x,row:a}=r[$x("0x12")](i);let c=[];if($x("0xb")==n[$x("0x3f")]){const t=r.createTableWalker(s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t).map((t=>t[$x("0x7")]))}else{const t=r[$x("0x2e")](s,{column:x,includeAllSlots:!0});c=Array[$x("0x1b")](t)[$x("0x4b")]((t=>t[$x("0x7")]))}t[$x("0x10")].change((t=>{o[$x("0x8")](t.createRangeOn(i),{commandName:e,commandParams:[]},c,e)}))}))}o[$x("0x42")][$x("0x4e")]((t=>{if($x("0x30")!=t.type&&$x("0x2")!=t.type)return;const{data:e}=t;return e&&$x("0x2c")==e[$x("0x28")]?{type:$x("0x37"),content:Qo(n,$x("0x18"))}:void 0})),o[$x("0x42")][$x("0x4e")]((t=>{if($x("0x30")!=t[$x("0x49")]&&$x("0x2")!=t[$x("0x49")])return;const{data:e}=t;return e?$x("0x11")==e.commandName?{type:"format",content:Qo(n,$x("0x4a"))}:$x("0x3b")==e[$x("0x28")]?{type:$x("0x37"),content:Qo(n,$x("0x23"))}:void 0:void 0}));const x=i[$x("0x2d")]();for(const t of[$x("0x16"),$x("0x44"),"mergeTableCellDown",$x("0x32")])o[$x("0x3e")].registerCustomCallback("formatBlock",t,$x("0x2b"),x);for(const t of["splitTableCellVertically",$x("0x3b")])o[$x("0x3e")][$x("0x1a")]($x("0x30"),t,$x("0x2b"),x);o[$x("0x3e")][$x("0x1a")]($x("0x30"),$x("0x2c"),$x("0x2b"),(n=>{t.model.change((o=>{const r=Array[$x("0x1b")](e.getRanges())[$x("0x4b")]((t=>s.LiveRange[$x("0x4d")](t)));o.setSelection(n),t[$x("0x2a")][$x("0x26")]($x("0x2c"))[$x("0x47")](),t[$x("0x46")]($x("0x2c"),{forceDefaultExecution:!0});const i=r[$x("0xa")]((t=>$x("0x5")!=t.root.rootName));i[$x("0x25")]>0&&o[$x("0x22")](i);for(const t of r)t.detach()}))}));for(const e of["mergeTableCellUp",$x("0x43"),$x("0x32"),"mergeTableCellRight"]){const n=t.commands[$x("0x26")](e);n.on($x("0x24"),((e,o,r)=>{if(r){const o=t[$x("0x10")][$x("0x45")][$x("0xf")][$x("0x4")]()[$x("0x19")]()[$x("0x15")]((t=>t.is("element",$x("0x36"))));this._areMergableCells(n.value,o)||(e.return=!1,e[$x("0x1")]())}}),{priority:"low"})}}[$x("0x1c")](){const t=this[$x("0x29")][$x("0x2a")][$x("0x26")]($x("0x2c")),e=this[$x("0x29")][$x("0x13")][$x("0x26")]($x("0xd"));if(!t.isEnabled)return!1;const n=e.getSelectionAffectedTableCells(this[$x("0x29")][$x("0x10")][$x("0x45")][$x("0xf")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[$x("0x38")](t,e){const n=this[$x("0x29")][$x("0x13")].get("TrackChangesEditing"),o=this[$x("0x29")][$x("0x10")][$x("0x20")](t),r=this.editor[$x("0x10")][$x("0x20")](e),i=new Set,s=new Set;for(const t of n.getSuggestions())if(($x("0x27")==t[$x("0x49")]||$x("0x4c")==t[$x("0x49")]||$x("0x2c")==t[$x("0x41")])&&t[$x("0xe")])for(const e of t[$x("0x21")]())e[$x("0x34")](o,!0)&&i[$x("0x1e")](t[$x("0x49")]+":"+t[$x("0x2f")].id),e[$x("0x34")](r,!0)&&s[$x("0x1e")](t.type+":"+t[$x("0x2f")].id);if(i.size!=s[$x("0xc")])return!1;for(const t of i)if(!s[$x("0x35")](t))return!1;return!0}}const Yx=["_descriptionFactory","downcastDispatcher","stop","format","registerCustomCallback","FORMAT_REGULAR_ROW","formatBlock","removeClass","_acceptFormatSuggestionCallbackFactory","bindElementToMarker","showSuggestionHighlights","accept","editor","toViewElement","addClass","commandParams","getCellLocation","cell","data","setTableRowHeader","markerName","ck-suggestion-marker--active","getSuggestion","*Format:* %0","writer","options","setTableColumnHeader","end","_enableDefaultAttributesIntegration","removeAttribute","start","markerRange","includes","setAttribute","createTableWalker","locale","headingColumns","FORMAT_HEADER_ROW","headingRows","_handleLegacySuggestions","parent","nodeAfter","registerDescriptionCallback","TableUtils","commandName","get","activeMarkers","TrackChangesEditing","editing","mapper","consume","item","requires","FORMAT_HEADER_COLUMN","data-suggestion","_suggestionFactory","registerAttributeLabel","addMarker:suggestion","highest","_registerLegacyDescription","plugins","type","TableEditing","forceValue","ck-suggestion-marker-","unbindElementFromMarkerName"];var Jx,Qx;Jx=Yx,Qx=252,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("0x40")](){return[zx]}afterInit(){const t=this[ta("0x18")];if(!t.plugins.has(ta("0x8")))return;const e=t[ta("0x2f")],n=t[ta("0x6")][ta("0x39")]("TrackChangesEditing");n[ta("0x28")](ta("0x1f"),[],[ta("0x32")]),n[ta("0x28")](ta("0x26"),[],[ta("0x30")]),n[ta("0xc")][ta("0x2")]("headingRows",Qo(e,ta("0x31"))),n[ta("0xc")].registerAttributeLabel("headingColumns",Qo(e,ta("0x41"))),this[ta("0x33")]()}_handleLegacySuggestions(){const t=this.editor[ta("0x6")].get(ta("0x3b")),e=this[ta("0x18")][ta("0x6")][ta("0x39")](ta("0x37")),n=this[ta("0x18")].plugins.get(zx)[ta("0x14")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(r,i,s)=>{const{type:x,id:a}=t._splitMarkerName(i[ta("0x20")]),c=t[ta("0x22")](a),l=c.data;if(ta("0x12")!=c[ta("0x7")]||!l||ta("0x26")!=l.commandName)return;if(i[ta("0x3f")])return void r[ta("0xe")]();if(!s.consumable[ta("0x3e")](i[ta("0x2b")],r.name))return;const u=i[ta("0x2b")][ta("0x2a")][ta("0x35")],d=i[ta("0x2b")][ta("0x27")].nodeBefore,g=u[ta("0x34")][ta("0x34")],{column:f}=e.getCellLocation(u),{column:m}=e[ta("0x1c")](d);for(let r=f;r<=m;r++){const c=e[ta("0x2e")](g,{column:r,includeAllSlots:!1});for(const e of c){const r=e[ta("0x1d")],c=s[ta("0x3d")][ta("0x19")](r);s.writer[ta("0x1a")]("ck-suggestion-marker-"+x,c),o&&s.writer[ta("0x2d")]("data-suggestion",a,c),s[ta("0x3d")][ta("0x15")](c,i.markerName),n&&(t[ta("0x3a")][ta("0x2c")](i.markerName)?s.writer.addClass(ta("0x21"),c):s[ta("0x24")][ta("0x13")](ta("0x21"),c))}}}}t[ta("0x1")][ta("0x10")](ta("0x12"),"setTableRowHeader",ta("0x17"),n),t[ta("0x1")].registerCustomCallback("formatBlock",ta("0x26"),"accept",n),this[ta("0x18")].editing.downcastDispatcher.on(ta("0x3"),o(),{priority:ta("0x4")}),this[ta("0x18")][ta("0x1e")][ta("0xd")].on(ta("0x3"),((t,e,n)=>{n[ta("0x25")][ta("0x16")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0x4")}),this[ta("0x18")][ta("0x3c")][ta("0xd")].on("removeMarker:suggestion",((e,n,o)=>{const{type:r,id:i}=t._splitMarkerName(n[ta("0x20")]),s=t[ta("0x22")](i),x=s[ta("0x1e")];if(ta("0x12")!=s[ta("0x7")]||!x||ta("0x26")!=x[ta("0x38")])return;const a=o[ta("0x3d")].markerNameToElements(n.markerName);if(a)for(const t of a)o[ta("0x24")].removeClass(ta("0xa")+r,t),o[ta("0x24")][ta("0x13")](ta("0x21"),t),o.writer[ta("0x29")](ta("0x0"),t),o.mapper[ta("0xb")](t,n[ta("0x20")])}),{priority:"highest"}),this[ta("0x5")]()}[ta("0x5")](){const t=this[ta("0x18")],e=t.locale;function n(t){return{type:ta("0xf"),content:Qo(e,ta("0x23"),t)}}t[ta("0x6")].get(ta("0x3b"))[ta("0xc")][ta("0x36")]((t=>{if(ta("0x12")!=t[ta("0x7")])return;const{data:o}=t;if(o){if(ta("0x1f")==o.commandName){const t=o[ta("0x1b")][0][ta("0x9")];return n(Qo(e,ta(t?"0x31":"0x11")))}if(ta("0x26")==o[ta("0x38")]){const t=o[ta("0x1b")][0].forceValue;return n(Qo(e,t?ta("0x41"):"FORMAT_REGULAR_COLUMN"))}}}))}}const na=["ck-suggestion-marker--active","options","tableCellSuggestion","model","selection","tablePaste","filter","getChanges","root","getSuggestion","reduce","tableCellBorderColor","every","join","nextSibling","insert","isEqual","tablePasteCell","table","nodeAfter","tablePasteRow","getSuggestions","markerAttributes","batch","paragraph","subType","markers","markMultiRangeInsertion","createRangeIn","insertion","cell","getRowIndexes","getChild","push","move","deletion","registerPostFixer","has","requires","_replaceTableSlotCell","endRow","tableCellHorizontalAlignment","high","length","getColumnIndexes","_descriptionFactory","_createdBatches","tableCell","columnInsertionRanges","columnInsertionIndexes","markerToHighlight","createRangeOn","tableCellPadding","createTableWalker","registerDescriptionCallback","tableCellVerticalAlignment","insertColumns","tableCellBorderStyle","getSelectionAffectedTableCells","registerCustomCallback","fill","listenTo","from","hasSuggestion","isEmpty","deletionRanges","low","map","newRange","last","_splitMarkerName","removeMarkers","removeMarker","formatBlock","rootName","getChildren","element","tablePasteColumn","conversion","suggestion-td","attributes","includes","discard","remove","suggestionLoaded","TableClipboard","createElement","getRows","add","view","ck-suggestion-marker-insertion","editing","position","startsWith","suggestion","first","getItems","findAncestor","end","commands","Users","insertRows","createPositionBefore","getAllAdjacentSuggestions","editor","document","getMarkers","insertContent","find","return","accept","getRange","wrap","start","endColumn","name","register","type","for","author","change","showSuggestionHighlights","rowInsertionIndexes","get","getShiftedBy","createRange","tablePasteChainId","_suggestionFactory","column","differ","containsRange","getContainedElement","removeRows","getRanges","cells","_getCoordsForCells","isInContent","redo","markerName","documentSelection","getSuggestionCallback","value","insertionRanges","updateMarker","getTableIfOnlyTableInContent","rowInsertionRanges","getChangedMarkers","previous","columns","entries","ck-suggestion-marker","tableCellBackgroundColor","elementToElement","trackChanges","fromEntries","setAttribute","_tablePostFixingSubtypes","markMultiRangeBlockFormat","removeColumns","unwrap","markMultiRangeDeletion","editingDowncast","getColumns","plugins"];var oa,ra;oa=na,ra=278,function(t){for(;--t;)oa.push(oa.shift())}(++ra);const ia=function(t,e){return na[t-=0]},sa=["tableCellBorderWidth",ia("0x3d"),ia("0x6b"),ia("0x5b"),ia("0x69"),ia("0x25"),ia("0x66")],xa=Object[ia("0x28")](sa[ia("0x75")]((t=>[t,null])));class aa extends t.Plugin{static get[ia("0x58")](){return[zx]}afterInit(){const t=this[ia("0x9a")];if(!t.plugins[ia("0x57")](ia("0x87")))return;const n=t[ia("0x31")].get("TrackChangesEditing"),o=t[ia("0x31")][ia("0x9")]("TableUtils"),r=t[ia("0x31")][ia("0x9")](zx),i=t[ia("0x31")][ia("0x9")](ia("0x87"));r[ia("0x2a")][ia("0x53")](ia("0x46"),"tablePasteColumn"),t[ia("0x35")].schema[ia("0x2")](ia("0x34"),{allowIn:ia("0x61"),allowContentOf:ia("0x61"),isLimit:!0}),t.conversion[ia("0x26")]({model:"tableCellSuggestion",view:"suggestion-td"});let s=null;t[ia("0x35")].on(ia("0x9d"),((r,x)=>{const[a,c]=x,l=x[x[ia("0x5d")]-1];l&&l.forceDefaultExecution||n._isForcedDefaultExecutionBlock||this[ia("0x9a")][ia("0x95")][ia("0x9")](ia("0x27"))[ia("0x1b")]&&function(t,e,n,o,r){if(e&&!e.is(ia("0x19")))return!1;const i=r[ia("0x1e")](t,n);if(!i||!la(i,void 0,o))return!1;const s=o[ia("0x6c")](n.document[ia("0x36")]);if(!s[ia("0x5d")])return!1;const x=s[0].findAncestor(ia("0x44")),a=o[ia("0x51")](s),c=o[ia("0x5e")](s),l={startRow:a[ia("0x91")],endRow:a.last,startColumn:c[ia("0x91")],endColumn:c[ia("0x77")]};return 1==s.length&&(l[ia("0x5a")]+=o[ia("0x89")](i)-1,l[ia("0x0")]+=o[ia("0x30")](i)-1),la(x,l,o)}(a,c,t[ia("0x35")],o,i)&&(r.stop(),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[ia("0x6")]((()=>{t[ia("0x35")][ia("0x9d")](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("0x5d")]&&n.markMultiRangeInsertion(r,ia("0x46"),{tablePasteChainId:o}),i[ia("0x5d")]&&n.markMultiRangeInsertion(i,ia("0x7f"),{tablePasteChainId:o}),a[ia("0x5d")]&&n[ia("0x4d")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[ia("0x5d")]&&n[ia("0x2e")](c,ia("0x37"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ia("0x2b")](l[ia("0x75")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(u){const e=u[ia("0x9c")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const i=t.model.createRangeOn(o),s=e.find((t=>t[ia("0xa1")]()[ia("0x42")](i)));s&&n[ia("0x53")]([s[ia("0x1")],r])}n[ia("0x5d")]&&u[ia("0x29")](ia("0x48"),Object[ia("0x28")](n))}s=null})))}),{priority:e.priorities[ia("0x5c")]+10}),t[ia("0x31")][ia("0x9")](ia("0x87")).on(ia("0x59"),((t,e)=>{const[n,o,,r]=e;if(!s)return;t.stop();const i=n[ia("0x50")],x=o,a=ca(i),c=ca(x);t[ia("0x9f")]=i;let l=null,u=null;if(c||a)if(a&&!c){r[ia("0x85")](i[ia("0x52")](0));for(const t of Array[ia("0x70")](x[ia("0x7d")]()))r.insert(t,i,ia("0x94"));const t=s[ia("0x8")].includes(n.row),e=s[ia("0x63")][ia("0x83")](n[ia("0xe")]);t||e||(l=r[ia("0x4e")](i))}else c&&!a&&(u=r[ia("0x4e")](i));else{const t=r[ia("0x88")]("tableCellSuggestion"),e=r[ia("0x88")]("tableCellSuggestion");r[ia("0xa2")](r[ia("0x4e")](i),e),r[ia("0x41")](t,i,0);for(const e of Array[ia("0x70")](x[ia("0x7d")]()))r[ia("0x41")](e,t,"end");l=r[ia("0x65")](t),u=r[ia("0x65")](e)}const d=Array.from(x.getAttributes()).filter((([t])=>sa[ia("0x83")](t)));s[ia("0x14")].push({element:i,attributes:d.length?Object[ia("0x28")](d):null}),l&&s[ia("0x1c")][ia("0x53")](l),u&&s[ia("0x73")][ia("0x53")](u)}),{priority:ia("0x5c")}),o.on(ia("0x6a"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x22")]||1;s[ia("0x63")]=new Array(a)[ia("0x6e")](x).map(((t,e)=>t+e));for(const{cell:e}of o[ia("0x67")](r,{startColumn:x,endColumn:x+a-1}))s[ia("0x62")].push(t.model[ia("0x65")](e))}),{priority:ia("0x74")}),o.on(ia("0x97"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i.rows||1;s[ia("0x8")]=new Array(a).fill(x)[ia("0x75")](((t,e)=>t+e));for(const{cell:e}of o[ia("0x67")](r,{startRow:x,endRow:x+a-1}))s[ia("0x1f")][ia("0x53")](t[ia("0x35")][ia("0x65")](e))}),{priority:ia("0x74")}),n[ia("0x5f")][ia("0x68")]((e=>{if(e.subType&&e[ia("0x4b")][ia("0x8f")](ia("0x37")))return e.previous?{}:{type:ia("0x4f"),content:Qo(t.locale,"*Replace table cells*")}}));const x=()=>!1;for(const t of[ia("0x37"),"tablePasteColumn",ia("0x46"),ia("0x43")])n._suggestionFactory.registerCustomCallback(ia("0x4f"),t,"join",x),n[ia("0xd")][ia("0x6d")](ia("0x55"),t,ia("0x3f"),x),n[ia("0xd")][ia("0x6d")](ia("0x7b"),t,ia("0x3f"),x);n._suggestionFactory[ia("0x6d")](ia("0x7b"),"tablePasteCell",ia("0x84"),x),n[ia("0xd")][ia("0x6d")](ia("0x7b"),ia("0x43"),ia("0xa0"),((e,n,o)=>{const r=e[ia("0x75")]((t=>t[ia("0x11")]()))[ia("0x38")]((t=>t)),i=new Map(r[ia("0x75")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ia("0x14")])e&&i.set(t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[ia("0x23")](o[ia("0x48")])){const o=t[ia("0x35")][ia("0x4c")][ia("0x9")](e),r=o?o[ia("0xa1")]().getContainedElement():null;r&&i.set(r,n)}t.model[ia("0x6")]((t=>{for(const[e,n]of i)t.setAttributes({...xa,...n},e)}))}));const a=(e,o)=>{n[ia("0xd")][ia("0x6d")](e,ia("0x37"),o,((r,i,s)=>{t.model.change((t=>{const x=[];for(const t of r){const e=t[ia("0xa3")][ia("0x45")];e.is("element",ia("0x34"))&&x[ia("0x53")](e)}n._suggestionFactory[ia("0x1a")](e,null,o)(r,i,s);for(const e of x)"$graveyard"!=e[ia("0x3a")][ia("0x7c")]&&t.unwrap(e)}))}))};a(ia("0x4f"),ia("0xa0")),a("insertion","discard"),a(ia("0x55"),ia("0xa0")),a(ia("0x55"),"discard"),n[ia("0xd")][ia("0x6d")](ia("0x4f"),ia("0x46"),ia("0x84"),(t=>{const e=t.map((t=>t[ia("0x11")]())),n=e[0][ia("0x93")](ia("0x44")),{minRow:i,maxRow:s}=r[ia("0x15")](e);o[ia("0x12")](n,{at:i,rows:s-i+1})})),n[ia("0xd")].registerCustomCallback(ia("0x4f"),ia("0x7f"),ia("0x84"),(t=>{const e=t.map((t=>t[ia("0x11")]())),n=e[0].findAncestor(ia("0x44")),{minColumn:i,maxColumn:s}=r._getCoordsForCells(e);o[ia("0x2c")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e[ia("0x4b")]||!e[ia("0x4b")][ia("0x8f")](ia("0x37")))return;const o=e[ia("0x82")][ia("0xc")],r=n[ia("0x47")]().filter((t=>t[ia("0x16")]&&t[ia("0x82")]&&t[ia("0x82")].tablePasteChainId==o));r[ia("0x5d")]&&e[ia("0x99")]()[ia("0x5d")]!=r.length&&r[ia("0x3c")](((t,e)=>(t.next=e,e[ia("0x21")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[ia("0x18")]),r=[ia("0x24"),ia("0x8c")],i=n.activeMarkers.includes(t[ia("0x18")]);return i&&r[ia("0x53")](ia("0x32")),{classes:r,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on(ia("0x86"),c,{priority:"high"}),n.on("suggestionUnloaded",c,{priority:ia("0x5c")}),t.model[ia("0x9b")][ia("0x56")]((()=>{let e=!1;const o=Array.from(t[ia("0x35")][ia("0x9b")][ia("0xf")][ia("0x20")]());for(const{name:r,data:i}of o){const{group:o,type:s,id:x}=n[ia("0x78")](r);if(ia("0x90")!=o||ia("0x55")!=s||i.oldRange)continue;if(!n[ia("0x71")](x))continue;const a=n[ia("0x3b")](x)[ia("0x13")](),c=t[ia("0x31")].get(ia("0x96")).me;for(const t of n[ia("0x47")]())if(t[ia("0x16")]&&t[ia("0x5")]==c&&ia("0x7b")==t[ia("0x3")]&&ia("0x43")==t[ia("0x4b")]&&t.getRanges()[ia("0x3e")]((t=>a.some((e=>e[ia("0x10")](t,!0))))))for(const n of t[ia("0x99")]())n[ia("0x16")]&&(n[ia("0x84")](),e=!0)}return e})),t.model[ia("0x9b")][ia("0x56")]((e=>{const o=t[ia("0x95")][ia("0x9")](ia("0x17"));if(!o||!o[ia("0x60")][ia("0x57")](e[ia("0x49")]))return!1;let r=!1;const i=t[ia("0x31")].get(ia("0x96")).me,s=t.model[ia("0x9b")][ia("0xf")][ia("0x39")](),x=Array[ia("0x70")](t.model.document[ia("0xf")][ia("0x20")]())[ia("0x38")]((({name:t,data:e})=>{const{group:o,subType:r,authorId:s}=n[ia("0x78")](t);return ia("0x90")==o&&ia("0x37")==r&&s==i.id&&!e.oldRange}));for(const t of s){if(ia("0x41")!=t[ia("0x3")]||ia("0x34")!=t.name||1!=t[ia("0x5d")])continue;const n=e[ia("0xb")](t[ia("0x8e")],t[ia("0x8e")][ia("0xa")](1));if(!x[ia("0x9e")]((({data:t})=>t[ia("0x76")][ia("0x42")](n))))for(const{name:t,data:o}of x)if(n[ia("0x10")](o.newRange)){e[ia("0x1d")](t,{range:n}),r=!0;break}}return r})),t[ia("0x35")][ia("0x9b")][ia("0x56")]((e=>{let o=!1;const r=t[ia("0x31")][ia("0x9")]("Users").me,i=n[ia("0x47")]()[ia("0x38")]((t=>t[ia("0x16")]&&t[ia("0x5")]==r)),s=new Set,x=new Set;for(const t of i)if(ia("0x37")==t.subType)for(const e of t[ia("0x9c")]()){const n=e[ia("0xa1")]().getContainedElement();if(n)if(n.is(ia("0x7e"),ia("0x34"))&&ca(n)){t[ia("0x7a")](e[ia("0x1")]),s.add(n),o=!0;const r=n[ia("0x40")],i=n.previousSibling,a=r&&r.is(ia("0x7e"),"tableCellSuggestion"),c=i&&i.is(ia("0x7e"),ia("0x34"));a&&!s[ia("0x57")](r)&&x[ia("0x8a")](r),c&&!s[ia("0x57")](i)&&x[ia("0x8a")](i)}else n.is(ia("0x7e"),"paragraph")&&n[ia("0x72")]&&(t[ia("0x7a")](e[ia("0x1")]),o=!0)}else if(ia("0x43")==t[ia("0x4b")]){if(!t[ia("0x82")]||!t.attributes.tablePasteChainId)continue;const e=t[ia("0x82")][ia("0x48")];if(e&&Object.keys(e)[ia("0x5d")])continue;const n=t[ia("0x82")][ia("0xc")];let r=!0,s=!0;for(const e of i)if(e[ia("0x4b")]&&e[ia("0x4b")][ia("0x8f")](ia("0x37"))){if(!e[ia("0x82")][ia("0xc")]){s=!1;break}if(e.id!=t.id&&e[ia("0x82")][ia("0xc")]==n){r=!1;break}}s&&r&&(t[ia("0x79")](),o=!0)}for(const t of s)e[ia("0x85")](t);for(const t of x)e[ia("0x2d")](t);return o})),t[ia("0x80")][ia("0x4")](ia("0x2f"))[ia("0x64")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:ia("0x5c")}),t[ia("0x80")][ia("0x4")]("dataDowncast").markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[ia("0x33")][ia("0x7")]?l(t,!1):null,converterPriority:ia("0x5c")});const u=t[ia("0x8d")][ia("0x8b")];this[ia("0x6f")](u[ia("0x9b")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[ia("0x4e")](e.content)[ia("0x92")]())t.is(ia("0x7e"),ia("0x81"))&&n.push(t);u[ia("0x6")]((t=>{for(const e of n)t[ia("0x54")](t[ia("0x4e")](e),t[ia("0x98")](e)),t[ia("0x85")](e)}))}))}}function ca(t){if(t[ia("0x72")])return!0;const e=t[ia("0x52")](0);return e.is(ia("0x7e"),ia("0x4a"))&&e[ia("0x72")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:i}of n[ia("0x67")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=i)return!1;return!0}const ua=["type","formatInline","getAttribute","_suggestionFactory","commandParams","formatBlock","discard","resizeTableWidth","data","tableWidth","document","TrackChangesEditing","_descriptionFactory","handleResizeTableWidthCommand","registerCustomCallback","format","columnWidths","author","getContainedElement","getSuggestionCallback","editor","enableCommand","getSuggestions","afterInit","selection","handleSuggestionDescription","getTableColumnsWidths","resizeTable","plugins","locale","bind","formatGroupId","*Format:* resize table","getColumnGroupElement","get","accept","registerDescriptionCallback","model"];var da,ga;da=ua,ga=286,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x3")](){if(!this[fa("0x0")][fa("0x8")].has("TableColumnResizeEditing"))return;const t=this[fa("0x0")][fa("0x8")][fa("0xe")](fa("0x1d"));t[fa("0x1")](fa("0x19"),this[fa("0x1f")][fa("0xa")](this)),t[fa("0x15")][fa("0x20")](fa("0x17"),fa("0x7"),"accept",t[fa("0x15")][fa("0x25")](fa("0x17"),null,fa("0x18"))),t[fa("0x15")].registerCustomCallback(fa("0x17"),"resizeTable",fa("0x18"),t[fa("0x15")][fa("0x25")](fa("0x17"),null,fa("0xf"))),t[fa("0x1e")][fa("0x10")](this[fa("0x5")].bind(this))}handleResizeTableWidthCommand(t,e){const n=this[fa("0x0")][fa("0x8")].get(fa("0x1d")),o=this[fa("0x0")][fa("0x8")][fa("0xe")]("TableColumnResizeEditing"),r=e.table||this[fa("0x0")][fa("0x11")][fa("0x1c")][fa("0x4")].getSelectedElement();this[fa("0x0")][fa("0x11")].change((()=>{const i=o[fa("0xd")](r);let s=i?o[fa("0x6")](i):null,x=r[fa("0x14")]("tableWidth")||null;const a=e.tableWidth||x,c=e.columnWidths||s,l=this[fa("0x0")].plugins[fa("0xe")]("Users").me;for(const t of n[fa("0x2")]()){const e=t[fa("0x24")]();if("resizeTable"===t.subType&&e===r){t[fa("0x23")]!==l&&t.discard();const e=t[fa("0x1a")][fa("0x16")];x=e[0][fa("0x1b")],s=e[0][fa("0x22")];break}}t({table:r,tableWidth:a,columnWidths:c}),n.markBlockFormat(r,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:"resizeTable"},[],"resizeTable")}))}[fa("0x5")](t){if(fa("0x17")!=t[fa("0x12")]&&fa("0x13")!=t.type)return;const{data:e}=t;if(e&&fa("0x7")===e[fa("0xb")]){const t=fa("0xc");return{type:fa("0x21"),content:Qo(this[fa("0x0")][fa("0x9")],t)}}}}const ha=["has","enableCommand","TrackChangesEditing","plugins","get","insertTemplate","afterInit","Template"];var pa,ba;pa=ha,ba=245,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x1")](){const t=this.editor;t.plugins[Ea("0x3")](Ea("0x2"))&&t[Ea("0x6")][Ea("0x7")](Ea("0x5"))[Ea("0x4")](Ea("0x0"))}}const Ta=["locale","get","editor","_descriptionFactory","afterInit","insertTableOfContents","commands","ELEMENT_TABLE_OF_CONTENTS","registerElementLabel","tableOfContents","plugins"];var ya,Ca;ya=Ta,Ca=134,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x2")](){const t=this[Aa("0x0")];if(!t[Aa("0x4")][Aa("0xa")](Aa("0x3")))return;t[Aa("0x8")][Aa("0xa")]("TrackChangesEditing").enableCommand(Aa("0x3"));const e=t.plugins[Aa("0xa")]("TrackChangesEditing"),n=t[Aa("0x9")];e[Aa("0x1")][Aa("0x6")](Aa("0x7"),(t=>Qo(n,Aa("0x5"),t)))}}const Ia=["differ","_descriptionFactory","ELEMENT_TITLE","afterInit","getNearestSelectionRange","has","end","isTouching","model","document","suggestion","schema","_splitMarkerName","updateMarker","start","isCollapsed","nodeBefore","newRange","plugins","element","registerElementLabel","locale","title-content","forward"];var Ra,Sa;Ra=Ia,Sa=318,function(t){for(;--t;)Ra.push(Ra.shift())}(++Sa);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{[va("0x15")](){const t=this.editor;if(!t[va("0xc")][va("0x17")]("Title"))return;const e=t[va("0xc")].get("TrackChangesEditing");e[va("0x13")][va("0xe")](va("0x10"),(()=>Qo(t[va("0xf")],va("0x14")))),t[va("0x2")][va("0x3")].registerPostFixer((n=>{let o=!1;const r=Array.from(t.model.document[va("0x12")].getChangedMarkers());for(const{name:i,data:s}of r){const{group:r}=e[va("0x6")](i);if(va("0x4")!==r||!s[va("0xb")])continue;const x=s[va("0xb")],a=x[va("0x0")][va("0xa")];if(!a||!a.is(va("0xd"),va("0x10")))continue;if(!x[va("0x8")][va("0x1")](x.end))continue;const c=t.model[va("0x5")][va("0x16")](x[va("0x0")],va("0x11"));if(c&&c[va("0x9")]){const t=n.createRange(x[va("0x8")],c[va("0x8")]);t.isEqual(x)||(n[va("0x7")](i,{range:t}),o=!0)}o||(n.removeMarker(i),o=!0)}return o}))}}const La=["UndoEditing","enableCommand","editor","get","afterInit","TrackChangesEditing","undo","plugins"];var Ma,wa;Ma=La,wa=334,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x6")](){const t=this[Oa("0x4")],e=t[Oa("0x1")][Oa("0x5")](Oa("0x7"));t[Oa("0x1")].has(Oa("0x2"))&&(e[Oa("0x3")](Oa("0x0")),e[Oa("0x3")]("redo"))}}const Da=["enableCommand","TableCaptionEditing","get","has","afterInit","plugins","TrackChangesEditing","requires"];var Ba,Pa;Ba=Da,Pa=365,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("0x2")](){return[zx]}[Ua("0x7")](){const t=this.editor;t[Ua("0x0")][Ua("0x6")](Ua("0x4"))&&t[Ua("0x0")][Ua("0x5")](Ua("0x1"))[Ua("0x3")]("toggleTableCaption")}}const Ga=["change","table","getAttribute","tableCellBorderColor","enableCommand","tableBackgroundColor","selection","_descriptionFactory","getSuggestionCallback","TablePropertiesEditing","markBlockFormat","getContainedElement","enqueueChange","tableAlignment","document","get","tableCellProperties","removeAttribute","findAncestor","tableCellVerticalAlignment","tableCellBorderStyle","TableCellPropertiesEditing","tableBorderColor","data","afterInit","commandParams","getSuggestions","TrackChangesTableProperties","*Format:* change table cell properties","model","_handlePropertyChange","registerDescriptionCallback","discard","_suggestionFactory","locale","join","handleDiscardAction","_getSuggestion","plugins","tableCellBackgroundColor","editor","tableWidth","tableBorderStyle","registerCustomCallback","formatBlock","setAttribute","format","tableBorderWidth","tableCellBorderWidth","pluginName","tableCellWidth","tableHeight","tableProperties","subType","accept","has","TrackChangesEditing","tableCellPadding","start","getSelectionAffectedTableCells"];var Va,Ha;Va=Ga,Ha=374,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this.tableProperties=[za("0x8"),za("0x1c"),za("0x21"),za("0x3b"),za("0x1b"),za("0x25"),za("0x33")],this[za("0x2")]=[za("0x31"),za("0x6"),za("0x22"),za("0x2b"),za("0x24"),"tableCellHeight",za("0x19"),"tableCellHorizontalAlignment",za("0x5")]}static get[za("0x23")](){return za("0xd")}[za("0xa")](){const t=this.editor[za("0x18")][za("0x1")](za("0x2a"));if(this.editor.plugins[za("0x29")](za("0x37"))){for(const e of this[za("0x26")])t[za("0x32")](e,((t,n)=>{const o=this[za("0x1a")].model[za("0x0")].selection.getFirstPosition()[za("0x4")](za("0x2f"));this._handlePropertyChange(e,[o],this[za("0x26")],za("0x26"),t,n)}));t._suggestionFactory[za("0x1d")]("formatBlock","tableProperties",za("0x28"),t[za("0x13")].getSuggestionCallback(za("0x1e"),null,za("0x12"))),t[za("0x13")].registerCustomCallback(za("0x1e"),"tableProperties","discard",((t,e)=>this[za("0x16")](this.tableProperties,t,e))),t[za("0x13")][za("0x1d")]("formatBlock",za("0x26"),za("0x15"),(()=>!1))}if(this.editor[za("0x18")][za("0x29")](za("0x7"))){for(const e of this.tableCellProperties)t[za("0x32")](e,((t,n)=>{const o=this.editor[za("0x18")][za("0x1")]("TableUtils")[za("0x2d")](this[za("0x1a")].model[za("0x0")][za("0x34")]);this._handlePropertyChange(e,o,this[za("0x2")],za("0x2"),t,n)}));t[za("0x13")][za("0x1d")](za("0x1e"),za("0x2"),za("0x28"),t[za("0x13")][za("0x36")](za("0x1e"),null,za("0x12"))),t[za("0x13")].registerCustomCallback("formatBlock",za("0x2"),za("0x12"),((t,e)=>this[za("0x16")](this[za("0x2")],t,e))),t[za("0x13")][za("0x1d")](za("0x1e"),za("0x2"),"join",(()=>!1))}t[za("0x35")][za("0x11")]((t=>this.handleSuggestionDescription(t)))}[za("0x10")](t,e,n,o,r,i){const s=this.editor[za("0x18")][za("0x1")](za("0x2a"));this.editor[za("0xf")][za("0x3a")](i.batch,(()=>{for(const t of e)if(this._getSuggestion(t,o))r(i);else{const e={};for(const o of n){const n=t[za("0x30")](o);void 0!==n&&(e[o]=n)}r(i),s[za("0x38")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][za("0x2c")].nodeAfter,r=n[za("0xb")][0];this[za("0x1a")][za("0xf")][za("0x2e")]((e=>{for(const n of t)void 0!==r[n]?e[za("0x1f")](n,r[n],o):e[za("0x3")](n,o)}))}handleSuggestionDescription(t){if(t[za("0x9")])switch(t[za("0x27")]){case za("0x26"):return{type:"format",content:Qo(this[za("0x1a")][za("0x14")],"*Format:* change table properties")};case za("0x2"):return{type:za("0x20"),content:Qo(this[za("0x1a")][za("0x14")],za("0xe"))}}}[za("0x17")](t,e){const n=this[za("0x1a")][za("0x18")][za("0x1")]("TrackChangesEditing");for(const o of n[za("0xc")]({skipNotAttached:!0})){const n=o[za("0x39")]();if(o.subType===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=["isCollapsed","collaboration.channelId","_checkSuggestionCorrectness","createRange","define","history","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.","formatInline:accept","isSelectable","formatBlock:discard","refresh","split","addMarker","commandName","markers","_blockAttributeKeys","isEqual","getWalker","getMarkers","isNextTo","splice","hasComments","_isBlockAttribute","_trackFormatChanges","low","join","start","version","_editor","move","isLocal","removeAttribute","default","toUpperCase","return","removeClass","_registerBlockAttribute","forward","then","track-changes-suggestion-data-mismatch","createPositionAfter","addClass","_getMarkerAnnouncementText","editingDowncast","deletion:accept","model","_refreshSuggestionsChain","discardAllSuggestions","rename","add","isBefore","_refreshAttributeSuggestionsChain","deletion:discard","fetchCommentThread","$elementName","accept","$graveyard","_isDataLoaded","change:activeMarkers","_registerDefaultCallbacks","containsItem","isArray","_splitMarkerName","enqueueChange","highest","markInsertion","insertion:chain","error-saving-suggestion-data-suggestion-discarded","_enableDefaultAttributesIntegration","oldRange","insertion","moveTargetPosition","has","markerToHighlight","type","init","schema","deletion:","_model","rejected","conversion","document","_defaultCallbacks","ck-suggestion-marker","set","batch","elementEnd","deleteContent","find","getChanges","stop","_addThreadToSuggestion","never","attribute:join","createdAt","substr","normal","getContainedElement","_onDiscard","delete","acceptSuggestion","getFirstMarker","ck-suggestion-marker-formatBlock","dataDowncast","_commentsRepository","rootName","dataToMarker","substring","markAttributeChange","removeMarker","_cutOutSuggestionMarker","consumable","createSelection","isAfter","unbindElementFromMarkerName","buildSuggestion","subType","getCommentThread","ck-suggestion-marker-formatInline","keys","formatBlock","commentThread","mapper","isIntersecting","some","adapter","multipleBlocks","_mergeNestedSuggestions","isInsideObject","_processAttributeSuggestions","getShiftedBy","deletion:join","newRange","_adapter","head","detach","isBlock","getRanges","authorName","range","skipNestingCheck","options","for","isIntersectingWithRange","markerToData","getNearestSelectionRange","_initAriaMarkerChangeAnnouncements","addRange","suggestion-type","insertion:accept","attributeOldValue","_getSuggestionData","_SUGGESTION_ANNOUNCEMENT","rethrowUnexpectedError","isLimit","originalSuggestionId","getCustomProperty","formatInline:chain","getMultiRangeId","groupId","previous","trackChangesCommand","_joinSuggestions","enableReadOnlyMode","attribute:accept","isObject","announce","notReady","$marker","applyOperation","markInlineFormat","insert","_rangeIsInLocalUserInsertion","_customCallbacks","fromRange","value","TrackChangesEditing","isTouching","insertContent","addHighlight","FORMATTING","_isForcedDefaultExecutionBlock","createPositionBefore","_addSuggestionMarker","item","registerCustomCallback","howMany","toViewElement","high","update:suggestion","requires","getFirstRange","removeMarker:suggestion:formatBlock","editing","getSuggestions","comments","commands","discard","_recordAttributeChanges","removeMarker:suggestion:attribute","_enabledCommands","containsRangeInObject","end","forEach","addMarker:suggestion:attribute","_setSuggestionRange","_suggestionState","_getExternalAuthor","suggestionUnloaded","getLastMatchingPosition","_saved","getSuggestion","suggestion:","_findSuggestions","key","_recordAttributeSuggestionsFromVersion","attributeNewValue","dataReady","length","values","catch","chain","addComment","accepted","remove","createRangeOn","changeAttribute","_suggestions","before","containerElement","formatInline:join","suggestion:attribute:","isOwn","elementStart","pluginName","differ","PENDING_ACTION_SUGGESTION","change","assign","setAttribute","ENTER","insertion:","formatBlock:","newName","Users","insertion:discard","markerNameToElements","plugins","attribute:","hasSuggestion","external:","warn","ck-suggestion-marker-","_updateSuggestionData","widget","attributes","getAllAdjacentSuggestions","markMultiRangeInsertion","forceDefaultExecution","_reduceExistingSuggestions","markDeletion","_getAuthorFromId","_inlineAttributeKeys","config","getChangedMarkers","consume","element","suggestionLoaded","get","marker-count","getIntersection","attribute:discard","_createSuggestion","getItems","createElement","_reduceSuggestionAttributeRange","position","acceptAllSuggestions","oldName","track-changes-adapter-missing-getsuggestion","deletion:chain","nodeBefore","isAtStart","documentSelection","after","ck-suggestion-marker--active","getSuggestionCallback","from","resolve","addSuggestionData","_joinWithAdjacentSuggestions","enableCommand","_setSuggestionData","containsPosition","formatBlock:chain","discardSelectedSuggestions","newValue","ready","trackChanges.trackFormatChanges","isMultiRange","name","showSuggestionHighlights","removeComment","writer","@external","addSuggestion","_removeSuggestion","listenTo","insertion:join","upcast","authoredAt","trackChanges.mergeNestedSuggestions","author","editor","push","updateMarker","always","PendingActions","change:_saved","data-suggestion","backward","sort","splitPosition","containsRange","addMarker:suggestion:formatBlock","markerName","unbind","suggestion","acceptSelectedSuggestions","getRange","formatInline","every","LEAVE","_registerInlineAttribute","addUser","CommentsRepository","createPositionAt","root","createRangeIn","oldValue","attribute","reconvertMarker","_suggestionFactory","execute","getOperations","deletion","locale","setSelection","formatInline:","_breakSuggestionMarker","getAttribute","registerPostFixer","filter","formatBlock:accept","creator","track-changes-suggestion-not-found","removed","addAttribute","selection","track-changes-user-not-found","formatGroupId","map","parent","getDifference","_handleNewSuggestionMarker","isRemovable","getUser","isInContent","discardSuggestion","size","removeMarkers","elementToElement","markMultiRangeBlockFormat","group","activeMarkers","$text","isAtEnd","fire","next","includes","isDocumentOperation","clear","trackChanges","nodeAfter","clone","track-changes-adapter-already-set","markBlockFormat","multi","data"];var dc,gc;dc=uc,gc=114,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0x149");class hc extends t.Plugin{static get[fc("0x4c")](){return[fc("0xdd"),i.Users,t.PendingActions,cr,fr,_r,kr,Lr,Dr,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,bx,Cx,Sx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get[fc("0x78")](){return fc("0x3e")}constructor(t){function e(t){return t[fc("0xf7")]((t=>String.fromCharCode(t)))[fc("0x12c")]("")}super(t),this[fc("0x65")]=null,this.set(fc("0x104"),[]),this.on(fc("0x14d"),((e,n,o,r)=>{this._model.change((()=>{for(const e of[...r,...o])this._model.markers.has(e)&&t[fc("0x4f")][fc("0xe3")](e)}))})),this._descriptionFactory=new rr(this.editor.model[fc("0x15f")],this[fc("0xc7")][fc("0xe8")]),this[fc("0x13")]=null,this[fc("0xe4")]=new pc(this.editor),this._suggestions=new Map,this[fc("0x17b")]=t[fc("0x85")][fc("0x9a")](fc("0xdd")),this[fc("0x56")]=new Set,this._model=this[fc("0xc7")][fc("0x140")],this[fc("0x5c")]=new WeakMap,this[fc("0x43")]=!1,this[fc("0x122")]=new Set(["$elementName"]),this[fc("0x94")]=new Set,t[fc("0x95")][fc("0x117")](fc("0xb8"),fc("0x133")),this[fc("0x12a")]=t[fc("0x95")][fc("0x9a")](fc("0xb8")),t[fc("0x95")][fc("0x117")](fc("0xc5"),!0),this[fc("0xd")]=t.config[fc("0x9a")](fc("0xc5")),this.trackChangesCommand=new d(t,this._enabledCommands),this._initAriaMarkerChangeAnnouncements(),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,52,52,54])}[fc("0x15e")](){const t=this.editor,n=(t,e)=>{if(fc("0xe2")!=t)return fc("0x8a")+t;const n=e[fc("0x11e")]("|")[0];return this[fc("0x129")](n)?fc("0x179"):fc("0x4")};t[fc("0x163")][fc("0x1c")](fc("0x13e"))[fc("0x15c")]({model:fc("0xd5"),view:t=>{const{id:e,type:o,subType:r}=this[fc("0x151")](t[fc("0xd3")]),i=[fc("0x166"),n(o,r)];let s=3e3;return this[fc("0x104")][fc("0x109")](t.markerName)&&(i[fc("0xc8")](fc("0xab")),s=3010),"deletion"==o&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x163")].for(fc("0x17a")).add((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o[fc("0x1b")][fc("0xbb")])return;const r=n.item;if(!r)return;const i=o[fc("0x8")][fc("0x49")](r);t[fc("0x140")].schema.isObject(r)&&i&&!i[fc("0x2a")](fc("0x8c"))&&i.is(fc("0x73"))&&(0,x.toWidget)(i,o[fc("0xbd")])}),{priority:fc("0x4a")})})),t[fc("0x163")][fc("0x1c")](fc("0x17a"))[fc("0x15c")]({model:fc("0xd5"),view:(t,e)=>{if(!e.options[fc("0xbb")])return null;const{type:o,subType:r}=this[fc("0x151")](t[fc("0xd3")]);return{classes:[fc("0x166"),n(o,r)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,r,i)=>{if(!r[fc("0x46")])return;const{id:s}=this[fc("0x151")](r[fc("0xd3")]);if(n){const t=Sc(this[fc("0x71")][fc("0x9a")](s));if(!this[fc("0x129")](t))return}if(r[fc("0x46")].is(fc("0xf4")))return void i.consumable.consume(r.item,o.name);const x=i[fc("0x8")][fc("0x49")](r[fc("0x46")]);if(r[fc("0x46")].is(fc("0x98"))&&t[fc("0x140")][fc("0x15f")][fc("0x16")](r[fc("0x46")])&&!x.getCustomProperty(fc("0x41"))){i[fc("0xbd")][fc("0x13c")]([fc("0x166"),fc("0x179")],x),i[fc("0xbd")].setAttribute("data-suggestion",s,x),i.mapper.bindElementToMarker(x,r[fc("0xd3")]),e&&(this[fc("0x104")][fc("0x109")](r[fc("0xd3")])?i[fc("0xbd")].addClass(fc("0xab"),x):i[fc("0xbd")][fc("0x136")](fc("0xab"),x));for(const e of t[fc("0x140")][fc("0xe0")](r.item)[fc("0x9f")]())i[fc("0x182")][fc("0x97")](e,o.name);i[fc("0x182")].consume(r[fc("0x46")],o[fc("0xba")])}};t[fc("0x163")][fc("0x1c")](fc("0x17a"))[fc("0x144")]((t=>{t.on(fc("0xd2"),((t,e,n)=>{n[fc("0x1b")][fc("0xbb")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:"highest"})})),t[fc("0x163")][fc("0x1c")](fc("0x17a"))[fc("0x144")]((t=>{t.on(fc("0x5a"),((t,e,n)=>{n.options[fc("0xbb")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x153")})})),t[fc("0x163")].for("dataDowncast")[fc("0x1e")]({model:fc("0xd5"),view:(t,e)=>e[fc("0x1b")].showSuggestionHighlights?null:{group:"suggestion",name:t[fc("0x172")](11)}}),t[fc("0x163")][fc("0x1c")](fc("0xc3"))[fc("0x101")]({view:{name:fc("0xd5"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x62")+t[fc("0xec")](fc("0x22"))+":"+t[fc("0xec")]("id");return t.getAttribute(fc("0x9b"))&&(n+=":"+t[fc("0xec")]("marker-count")),e[fc("0xa0")](fc("0x36"),{"data-name":n})}}),t.conversion[fc("0x1c")]("upcast")[fc("0x17d")]({view:fc("0xd5")}),t[fc("0x163")][fc("0x1c")](fc("0x13e"))[fc("0x144")]((t=>{t.on(fc("0xd2"),o(),{priority:fc("0x4a")})})),t[fc("0x163")].for(fc("0x13e"))[fc("0x144")]((t=>{t.on("addMarker:suggestion:attribute",o({isAttributeSuggestion:!0}),{priority:fc("0x4a")})})),t[fc("0x163")][fc("0x1c")]("editingDowncast")[fc("0x144")]((t=>{t.on(fc("0x4e"),((t,e,n)=>{const o=n[fc("0x8")][fc("0x84")](e[fc("0xd3")]);if(o)for(const t of o)t[fc("0x2a")](fc("0x41"))||(n[fc("0xbd")].removeClass([fc("0x166"),fc("0x179"),fc("0xab")],t),n[fc("0xbd")][fc("0x132")]("data-suggestion",t),n[fc("0x8")][fc("0x0")](t,e[fc("0xd3")]))}),{priority:fc("0x4a")})})),t.conversion[fc("0x1c")](fc("0x13e")).add((t=>{t.on(fc("0x55"),((t,e,n)=>{const o=n[fc("0x8")][fc("0x84")](e[fc("0xd3")]);if(!o)return;const{id:r}=this._splitMarkerName(e[fc("0xd3")]),i=Sc(this[fc("0x71")].get(r));if(this[fc("0x129")](i))for(const t of o)t[fc("0x2a")]("addHighlight")||(n[fc("0xbd")][fc("0x136")](["ck-suggestion-marker",fc("0x179"),fc("0xab")],t),n[fc("0xbd")].removeAttribute(fc("0xcd"),t),n[fc("0x8")][fc("0x0")](t,e.markerName))}),{priority:fc("0x4a")})})),t.model[fc("0x164")].registerPostFixer((e=>{let n=!1;const o=Array[fc("0xad")](t.model[fc("0x164")][fc("0x79")].getChangedMarkers()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0x151")](x);if("suggestion"!==o)continue;const d=this[fc("0x71")][fc("0x9a")](u);if(null!=a[fc("0x12")]){fc("0xd8")==c&&(n=n||_c(a[fc("0x12")],x,e,t[fc("0x140")][fc("0x15f")]));const o=fc("0xe2")==c&&this._isBlockAttribute(l.split("|")[0]);if(a[fc("0x12")].isCollapsed||fc("0x14b")==a[fc("0x12")].root[fc("0x17c")]||fc("0x6")==c&&!yc(a[fc("0x12")])||o&&!yc(a.newRange)||fc("0xe7")==c&&(Ec(s=a[fc("0x12")])||(i=s)[fc("0x12d")][fc("0xf8")]==i[fc("0x58")].nodeBefore&&i[fc("0x12d")][fc("0x106")]))e[fc("0x180")](x),n=!0;else{if(!d||!d[fc("0xfd")])continue;r[fc("0x144")](d)}}}var i,s;return r.size>0&&(n=!!this[fc("0xb0")](r)||n),n})),t.model[fc("0x164")].registerPostFixer((e=>{let n=!1;for(const o of t[fc("0x140")].document[fc("0x79")][fc("0x16c")]())if(fc("0x39")==o[fc("0x15d")])for(const o of this[fc("0x71")][fc("0x69")]()){if(o[fc("0xb9")]||!o[fc("0xfd")])continue;const r=fc("0x6")==o[fc("0x15d")],i=Sc(o),s=i&&this[fc("0x129")](i);if(!r&&!s)continue;const x=o[fc("0x4d")]();if(x[fc("0x12d")].parent!=x[fc("0x58")][fc("0xf8")]&&!x.end[fc("0x106")]){const r=t[fc("0x140")][fc("0xde")](x[fc("0x12d")][fc("0x10d")],"end"),i=t[fc("0x140")][fc("0x116")](x[fc("0x12d")],r);e.updateMarker(o[fc("0x178")](),{range:i}),n=!0}}return n})),t[fc("0x140")].document[fc("0xed")]((t=>this._processAttributeChanges(t))),t[fc("0x140")][fc("0x164")][fc("0xed")]((t=>!t[fc("0x168")][fc("0x131")]&&this[fc("0xf")](t))),t[fc("0x140")][fc("0x121")].on(fc("0x4b"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[fc("0xba")]),n=this[fc("0x71")][fc("0x9a")](t);n&&n.addMarkerName(e[fc("0xba")])}})),t[fc("0x140")].document.on("change:data",(()=>{const e=Array[fc("0xad")](t[fc("0x140")].document.differ.getChangedMarkers())[fc("0xee")]((t=>"suggestion"===this[fc("0x151")](t[fc("0xba")])[fc("0x103")]));if(0===e[fc("0x68")])return;e.sort(((t,e)=>{const n=t[fc("0x112")][fc("0x158")],o=e[fc("0x112")][fc("0x158")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0x12d")][fc("0x145")](o[fc("0x12d")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this._splitMarkerName(t);if(null===r[fc("0x158")]){const e=this[fc("0xfa")](t);o[fc("0x144")](e)}else{const t=this._suggestions[fc("0x9a")](e);null!==r[fc("0x12")]||t[fc("0xfd")]?(n[fc("0x144")](t[fc("0x14")]),o.add(t)):this[fc("0xc0")](t)}}o[fc("0xff")]>0&&this[fc("0x141")](o);for(const t of n)this[fc("0x107")]("suggestionChanged",t)})),t[fc("0x140")].on(fc("0x37"),((e,n)=>{const o=n[0];if(!this[fc("0x71")][fc("0xff")])return;if(!o[fc("0x10a")])return;if(o[fc("0x168")].isUndo||!o[fc("0x168")].isLocal)return;let r,i;switch(o[fc("0x15d")]){case fc("0x39"):r=t[fc("0x140")][fc("0xde")](o[fc("0xa2")]),i=r[fc("0x10")](o[fc("0x48")]);break;case fc("0x11e"):r=t[fc("0x140")].createPositionAt(o[fc("0xd0")]),i=t.model.createPositionAt(o[fc("0x15a")]);break;case fc("0x130"):r=t.model[fc("0xde")](o.targetPosition),i=r[fc("0x10")](o[fc("0x48")]);break;default:return}const s=t[fc("0x140")][fc("0x116")](r,i);t[fc("0x140")][fc("0x7b")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(s)){if(t[fc("0xb9")])continue;if(fc("0xd8")==t[fc("0x15d")])continue;const n=Sc(t);if(n&&this[fc("0x129")](n)&&fc("0x11e")!=o.type)continue;const x=t[fc("0x112")]&&t[fc("0x112")][fc("0xc")];(fc("0x6")!=t[fc("0x15d")]||fc("0x11e")==o[fc("0x15d")]&&!x)&&(e[fc("0x57")]||"insertion"==t[fc("0x15d")]&&e[fc("0x76")]||t[fc("0x4d")]()[fc("0xd1")](s)&&this[fc("0xeb")](t,r,i))}}))}),{priority:"lowest"}),t.model.on(fc("0x16a"),((e,n)=>{const o=n[0],r=n[1];if(r&&r[fc("0x90")])return;if(this[fc("0x43")])return;if(!this[fc("0x2f")][fc("0x3d")])return;if(o.isCollapsed)return;const i=t[fc("0x140")][fc("0x15f")],{start:s,end:x}=o[fc("0x4d")](),a=s.nodeAfter&&i.isLimit(s.nodeAfter)?null:i.getNearestSelectionRange(s,fc("0x138")),c=x.nodeBefore&&i.isLimit(x.nodeBefore)?null:i.getNearestSelectionRange(x,fc("0xce")),l=t[fc("0x140")][fc("0x116")](a?a.start:s,c?c.end:x);t[fc("0x140")][fc("0x7b")]((e=>{this[fc("0x92")](l);const n=t[fc("0x140")][fc("0x15f")][fc("0x1f")](l[fc("0x12d")]);o.is(fc("0xa9"))?e[fc("0xe9")](n):o.setTo(n)})),e[fc("0x16d")]()}),{priority:e.priorities[fc("0x173")]+10}),t.model.on(fc("0x40"),((e,n)=>{const o=n[n[fc("0x68")]-1];o&&o[fc("0x90")]||this[fc("0x43")]||this[fc("0x2f")].value&&(t[fc("0x140")].change((()=>{let o=t[fc("0x140")][fc("0x40")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o[fc("0x10e")]();const r=o.end.nodeBefore,i=t[fc("0x140")][fc("0x15f")];r&&i[fc("0x16")](r)&&!i[fc("0x33")](r)&&(o=t.model.createRange(o[fc("0x12d")],t[fc("0x140")][fc("0xde")](r,fc("0x58")))),this[fc("0x154")](o)})),e[fc("0x16d")]())}),{priority:fc("0x4a")}),this[fc("0xc7")][fc("0x52")][fc("0x144")](fc("0x10c"),this.trackChangesCommand),this[fc("0xb1")](fc("0x10c"));const r=new p(t,this[fc("0x71")]);t.commands[fc("0x144")](fc("0x177"),r),this[fc("0xb1")](fc("0x177"));const i=new y(t,this._suggestions);t.commands[fc("0x144")](fc("0xfe"),i),this.enableCommand(fc("0xfe")),t[fc("0x52")].add("acceptAllSuggestions",new F(t,r,this._suggestions)),this.enableCommand(fc("0xa3")),t[fc("0x52")][fc("0x144")](fc("0x142"),new F(t,i,this._suggestions)),this[fc("0xb1")](fc("0x142")),t[fc("0x52")][fc("0x144")](fc("0xd6"),new j(t,r,this[fc("0x71")])),this.enableCommand(fc("0xd6")),t.commands[fc("0x144")]("discardSelectedSuggestions",new j(t,i,this[fc("0x71")])),this[fc("0xb1")](fc("0xb5"));const s=t[fc("0x85")][fc("0x9a")](fc("0xdd"));this.listenTo(s,fc("0x6c"),((t,{threadId:e})=>{const n=this[fc("0x71")][fc("0x9a")](e);n&&n[fc("0x7")]&&1===n[fc("0x7")][fc("0x68")]&&this[fc("0x8b")](e,{hasComments:!0})}),{priority:fc("0x12b")}),this[fc("0xc1")](s,fc("0xbc"),((t,{threadId:e})=>{const n=this[fc("0x71")][fc("0x9a")](e);n&&n[fc("0x7")]&&!n[fc("0x7")][fc("0x68")]&&this[fc("0x8b")](e,{hasComments:!1})}),{priority:fc("0x12b")})}set[fc("0xb")](t){if(this[fc("0x13")])throw new e.CKEditorError(fc("0x10f"),this);this._adapter=t}get[fc("0xb")](){return this[fc("0x13")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions.values())t&&!e[fc("0xfd")]||n.push(e);return e?n[fc("0xf7")]((t=>t.toJSON())):n}getSuggestion(t){const n=this[fc("0x71")][fc("0x9a")](t);if(!n)throw new e.CKEditorError(fc("0xf1"),this);return n}[fc("0x87")](t){return this[fc("0x71")][fc("0x15b")](t)}[fc("0xaf")](t){const{authorId:e,id:n,attributes:o}=t,[r,i]=t.type[fc("0x11e")](":"),s=this[fc("0x71")][fc("0x9a")](n)||this[fc("0x9e")](r,i,n,e,o);if(this._addThreadToSuggestion(s),this[fc("0x115")](s,r,i||null,e),s.createdAt=t[fc("0x171")],s[fc("0x14c")]=!0,o&&o[fc("0xbe")]){const t=o[fc("0xbe")],e=this._getExternalAuthor(t[fc("0x18")]);s[fc("0xc4")]=t.createdAt,s.author=e,s.isExternal=!0}else s[fc("0xc4")]=t[fc("0x171")];switch(t[fc("0x112")]&&(s[fc("0x112")]=t.data),t.attributes&&(s[fc("0x8d")]=t[fc("0x8d")]),this[fc("0x13")]&&this[fc("0x13")][fc("0xbf")]||(s[fc("0x60")]=!0),this._suggestionState.get(s)){case"notReady":this._suggestionState[fc("0x167")](s,fc("0x67"));break;case"markerReady":s.isInContent?(this[fc("0x141")](new Set([s])),this[fc("0xb0")](new Set([s])),this[fc("0x5c")].set(s,"ready"),this[fc("0x107")]("suggestionLoaded",s)):this[fc("0x5c")][fc("0x167")](s,fc("0xf2"))}return s}acceptSuggestion(t){this[fc("0x90")]((()=>{this.editor[fc("0x140")][fc("0x7b")]((()=>{for(const e of t[fc("0x8e")]())e[fc("0x14a")]()}))}))}[fc("0xfe")](t){this.forceDefaultExecution((()=>{this[fc("0xc7")][fc("0x140")][fc("0x7b")]((()=>{for(const e of t[fc("0x8e")]())e[fc("0x53")]()}))}))}[fc("0xb1")](t,n){const o=this[fc("0xc7")][fc("0x52")][fc("0x9a")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this[fc("0x56")][fc("0x15b")](o))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this._enabledCommands.add(o),n&&o.on("execute",((t,e)=>{this[fc("0x2f")][fc("0x3d")]&&(this[fc("0x43")]||(e[fc("0x68")]>0&&e[e.length-1]&&e[e.length-1][fc("0x90")]?e.pop():(t[fc("0x135")]=n(((...t)=>o[fc("0xe5")](...t,{forceDefaultExecution:!0})),...e),t.stop())))}),{priority:fc("0x4a")})}[fc("0x90")](t){let n,o;const r=this[fc("0x43")];this[fc("0x43")]=!0;try{n=t()}catch(t){o=t}return r||(this[fc("0x43")]=!1),o&&e.CKEditorError[fc("0x27")](o,this),n}[fc("0x154")](t,n=null,o={}){if(t.isCollapsed)return null;const r=this[fc("0xc7")][fc("0x85")][fc("0x9a")]("Users").me;for(const{suggestion:e,meta:r}of this[fc("0x63")](t,"insertion"))if(r[fc("0x76")]){if(!r.isNextTo){if(r[fc("0x57")]){if(!this[fc("0xd")]||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this[fc("0xeb")](e,t[fc("0x12d")],t.end);break}if(n==e.subType&&Ic(e,o)){const n=e[fc("0x4d")]();return n[fc("0x12d")].isEqual(t.end)?this[fc("0x5b")](e,this[fc("0x161")].createRange(t[fc("0x12d")],n[fc("0x58")])):this[fc("0x5b")](e,this[fc("0x161")].createRange(n.start,t[fc("0x58")])),e}}const i=(0,e.uid)(),s=r.id,x=n?fc("0x7f")+n:fc("0x159"),a=this[fc("0xb2")]({id:i,type:x,createdAt:new Date,authorId:s,attributes:o});return this._addSuggestionMarker(x,i,s,t),a}[fc("0x8f")](t,n=fc("0x111"),o={}){const r=this.editor[fc("0x85")][fc("0x9a")](fc("0x82")).me,i=this[fc("0xe4")][fc("0xac")](fc("0x159"),n,fc("0x12c"));for(const e of this[fc("0x50")]())if(e[fc("0xc6")].id==r.id&&fc("0x159")==e[fc("0x15d")]&&e[fc("0x2")]==n&&Ic(e,o)&&(i(e[fc("0x17")](),t)||i(t,e[fc("0x17")]()))){for(const n of t)e[fc("0x21")](n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x159"))){if(!n.isOwn)continue;if(!this[fc("0xd")]&&n.containsRangeInObject)continue;if(!Ic(e,o))continue;let r=!0;for(const n of e[fc("0x17")]())for(const e of t)if(!n[fc("0xd1")](e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a=fc("0x7f")+n,c=this[fc("0xb2")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0x45")](a,s,x,e,Jo[fc("0x2c")]());return c}[fc("0x38")](t,n,o=null,r={}){if(o=o||Tc(n),t[fc("0x113")])return null;if(fc("0x16f")===this._trackFormatChanges){const e=this[fc("0xe4")][fc("0xac")]("formatInline",o,fc("0x14a"));return this.forceDefaultExecution((()=>e([t],n,r))),null}const i=this[fc("0xc7")].plugins[fc("0x9a")]("Users").me,s=[];if(fc("0xca")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion"))n[fc("0x76")]&&!n[fc("0xe")]&&s[fc("0xc8")](...e[fc("0x17")]());const x=function(t,e){const n=[];for(const o of e){const e=t[fc("0x9c")](o);e&&n[fc("0xc8")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0x68")];){const o=n[e].getDifference(t);n[fc("0x127")](e,1,...o),e+=o[fc("0x68")]}}return n}(t,s);x[fc("0x68")]&&this[fc("0x161")][fc("0x7b")]((()=>{for(const t of x){const e=this[fc("0xe4")][fc("0xac")](fc("0xd8"),o,fc("0x14a"));this.forceDefaultExecution((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t.start,a=t[fc("0x58")];for(const{suggestion:e,meta:n}of this[fc("0x63")](t,fc("0xd8"))){if(!n[fc("0x76")])continue;if(e.subType!=o)continue;if(!Ic(e,r))continue;const i=e.getFirstRange();if(i[fc("0xd1")](t,!0))return null;x=x[fc("0x145")](i[fc("0x12d")])?x:i[fc("0x12d")],a=a[fc("0x184")](i[fc("0x58")])?a:i[fc("0x58")],s?i[fc("0x12d")][fc("0x145")](s[fc("0x4d")]()[fc("0x12d")])?(s[fc("0x100")](),s=e):e[fc("0x100")]():s=e}const c=this._model[fc("0x116")](x,a);if(s)this[fc("0x5b")](s,c);else{const t=(0,e.uid)(),s=i.id;this[fc("0xb2")]({id:t,type:fc("0xea")+o,data:n,createdAt:new Date,authorId:s,attributes:r}),this[fc("0x45")]("formatInline:"+o,t,s,c)}}return null}[fc("0x110")](t,n,o=[],r=null,i={}){n[fc("0xf6")]||(n[fc("0xf6")]=n[fc("0x120")]),n[fc("0xc")]=t.is(fc("0x19")),r=r||Tc(n);const s=o[fc("0xf7")]((t=>Cc(t,this._model))),x=t.is(fc("0x19"))?t:Cc(t,this[fc("0x161")]);if(fc("0x16f")===this[fc("0x12a")]){const t=this[fc("0xe4")][fc("0xac")](fc("0x6"),r,"accept");return this[fc("0x90")]((()=>t([x],n,i))),null}s[fc("0xc8")](x);let a=!0;for(const t of s)if(!this[fc("0x3a")](t)){a=!1;break}if(a&&fc("0xca")!==this[fc("0x12a")]){const t=this[fc("0xe4")][fc("0xac")](fc("0x6"),r,"accept");return this[fc("0x90")]((()=>t([x],n,i))),null}let c=null,l=x[fc("0x12d")],u=x.end;for(const{suggestion:t,meta:e}of this._findSuggestions(x,fc("0x6"))){if(!e[fc("0x76")])continue;if(e[fc("0x126")]||e[fc("0x57")]||e[fc("0xe")])continue;if(t[fc("0x112")][fc("0xf6")]!=n[fc("0xf6")])continue;if(!Ic(t,i))continue;const o=t[fc("0x4d")]();if(t.subType==r){if(o.containsRange(x,!0))return null;l=l[fc("0x145")](o[fc("0x12d")])?l:o[fc("0x12d")],u=u[fc("0x184")](o[fc("0x58")])?u:o.end,c?o[fc("0x12d")].isBefore(c[fc("0x4d")]()[fc("0x12d")])?(c[fc("0x100")](),c=t):t.removeMarkers():c=t}else{const e=x[fc("0x9c")](o);this[fc("0x181")](t,e)}}const d=this[fc("0xc7")][fc("0x85")].get(fc("0x82")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x5b")](c,this[fc("0x161")].createRange(l,u)),c;{const t=this[fc("0xb2")]({id:g,type:"formatBlock:"+r,data:n,createdAt:new Date,authorId:f,attributes:i});return this[fc("0x45")](fc("0x80")+r,g,f,this[fc("0x161")].createRange(l,u)),t}}[fc("0x102")](t,n,o=[],r=null,i={}){n[fc("0xf6")]||(n[fc("0xf6")]=n[fc("0x120")]);const s=t[0];n[fc("0xc")]=s.is("range"),r=r||Tc(n);const x=o[fc("0xf7")]((t=>Cc(t,this[fc("0x161")]))),a=s.is("range")?t:t[fc("0xf7")]((t=>Cc(t,this[fc("0x161")])));if(fc("0x16f")===this._trackFormatChanges){const t=this[fc("0xe4")][fc("0xac")](fc("0x6"),r,fc("0x14a"));return this[fc("0x90")]((()=>t(a,n,i))),null}x[fc("0xc8")](...a);let c=!0;for(const t of x)if(!this[fc("0x3a")](t)){c=!1;break}if(c&&fc("0xca")!==this[fc("0x12a")]){const t=this[fc("0xe4")].getSuggestionCallback("formatBlock",r,"accept");return this[fc("0x90")]((()=>t(a,n,i))),null}const l=this[fc("0xc7")][fc("0x85")].get(fc("0x82")).me;for(const t of this[fc("0x50")]()){if(t.author.id!=l.id)continue;if("formatBlock"!=t[fc("0x15d")]||t[fc("0x112")][fc("0xf6")]!=n.formatGroupId)continue;if(!Ic(t,i))continue;const e=t[fc("0x2")]==r;for(let n=0;n<a[fc("0x68")];n++){const o=a[n];for(const r of t[fc("0x125")]()){const i=r[fc("0xd7")]();if(o.isEqual(i)){e?(a.splice(n,1),n--):t[fc("0x180")](r[fc("0xba")]);break}}}}if(0==a[fc("0x68")])return null;const u=this[fc("0xe4")][fc("0xac")](fc("0x6"),r,"join");for(const t of this.getSuggestions())if(t[fc("0xc6")].id==l.id&&fc("0x6")==t[fc("0x15d")]&&t.data.formatGroupId==n.formatGroupId&&t[fc("0x2")]==r&&Ic(t,i)&&(u(t.getRanges(),a)||u(a,t[fc("0x17")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0x80")+r,m=this[fc("0xb2")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[fc("0x45")](f,d,g,t,Jo[fc("0x2c")]());return m}markDeletion(t,n=null,o={}){if(t[fc("0x113")])return null;const r=this.editor[fc("0x85")][fc("0x9a")](fc("0x82")).me,i=new s.LiveRange(t[fc("0x12d")],t.end);for(const{suggestion:t,meta:e}of this[fc("0x63")](i,fc("0x159")))if(e[fc("0x76")]&&!e[fc("0x126")])if(t[fc("0xb9")]){const e=t[fc("0x17")]()[fc("0xee")]((t=>"$graveyard"!=t[fc("0xdf")][fc("0x17c")]));if(e[fc("0xd9")]((t=>i[fc("0xd1")](t,!0)))&&t[fc("0x53")](),e[fc("0xa")]((t=>t[fc("0xd1")](i,!0)))){const t=this[fc("0xe4")][fc("0xac")](fc("0xe7"),n,fc("0x14a"));return this[fc("0x90")]((()=>t([i],null,o))),null}}else{const e=i[fc("0x9c")](t.getFirstRange());null!==e&&t[fc("0x175")]([e],null,o)}if(i[fc("0x15")](),i[fc("0x113")]||"$graveyard"==i[fc("0xdf")].rootName)return null;let x=null,a=i[fc("0x12d")],c=i[fc("0x58")];const l=this[fc("0x63")](i,fc("0xe7"));for(const{suggestion:t,meta:e}of l){const n=this._model.createRange(a,c);if(e.isOwn&&(this._mergeNestedSuggestions||!e[fc("0x57")]&&!e.isInsideObject))if(t[fc("0xb9")]){if(!Ic(t,o))continue;let e=!0;for(const o of t[fc("0x17")]()){if(o[fc("0xd1")](n,!0))return t;n[fc("0xd1")](o)||(e=!1)}e&&t[fc("0x53")]()}else{const e=t[fc("0x4d")]();if(e[fc("0xd1")](n,!0))return t;if(!Ic(t,o)){n[fc("0xd1")](e)?t.removeMarkers():e.containsPosition(a)?a=e[fc("0x58")]:e[fc("0xb3")](c)&&(c=e[fc("0x12d")]);continue}a=a[fc("0x145")](e.start)?a:e[fc("0x12d")],c=c[fc("0x184")](e.end)?c:e.end,o=Object[fc("0x7c")]({},t.attributes),x?e[fc("0x12d")][fc("0x145")](x[fc("0x4d")]()[fc("0x12d")])?(x[fc("0x100")](),x=t):t[fc("0x100")]():x=t}}if(x)return this[fc("0x5b")](x,this[fc("0x161")][fc("0x116")](a,c)),x;{const t=(0,e.uid)(),i=this._model[fc("0x116")](a,c),s=r.id,x=n?"deletion:"+n:fc("0xe7"),l=this[fc("0xb2")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this._addSuggestionMarker(x,t,s,i),l}}markMultiRangeDeletion(t,n=fc("0x111"),o={}){const r=this.editor[fc("0x85")].get(fc("0x82")).me,i=t[fc("0xf7")]((t=>new s.LiveRange(t.start,t[fc("0x58")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x63")](i,fc("0x159")))e[fc("0x76")]&&!e[fc("0x126")]&&x[fc("0x144")](t);for(const e of x)if(e[fc("0xb9")]){const r=e[fc("0x17")]();if((!e[fc("0x8d")]||!e[fc("0x8d")][fc("0x1a")])&&r[fc("0xd9")]((t=>i[fc("0xa")]((e=>e[fc("0xd1")](t,!0)))))&&e[fc("0x53")](),i[fc("0xd9")]((t=>r[fc("0xa")]((e=>e[fc("0xd1")](t,!0)))))){const e=this[fc("0xe4")][fc("0xac")](fc("0xe7"),n,fc("0x14a"));return this[fc("0x90")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(i[fc("0xa")]((e=>e[fc("0xd1")](t,!0)))&&e[fc("0x53")](),i[fc("0xd9")]((e=>t.containsRange(e,!0)))){const t=this._suggestionFactory[fc("0xac")](fc("0xe7"),n,fc("0x14a"));return this[fc("0x90")]((()=>t(i,null,o))),null}}const a=this._suggestionFactory[fc("0xac")](fc("0xe7"),n,fc("0x12c"));let c=null;for(const t of this[fc("0x50")]())if(t[fc("0xc6")].id==r.id&&t[fc("0xfd")]&&"deletion"==t.type&&t[fc("0x2")]==n&&Ic(t,o)&&(a(t[fc("0x17")](),i)||a(i,t[fc("0x17")]())))if(c){if(t[fc("0x7")]&&t[fc("0x7")].length)continue;for(const e of t[fc("0x17")]())c[fc("0x1d")](e)||c.addRange(e);t.removeMarkers()}else{c=t;for(const e of i)t.isIntersectingWithRange(e)||t[fc("0x21")](e)}if(c)return c;x[fc("0x10b")]();for(const{suggestion:t,meta:e}of this[fc("0x63")](i,fc("0xe7")))e[fc("0x76")]&&(this[fc("0xd")]||!e.containsRangeInObject&&!e[fc("0xe")])&&Ic(t,o)&&x[fc("0x144")](t);for(const t of x){const e=t[fc("0x17")]();if((!o||!o[fc("0x1a")])&&i[fc("0xd9")]((t=>e.some((e=>e.containsRange(t,!0))))))return t;(!t[fc("0x8d")]||!t[fc("0x8d")][fc("0x1a")])&&e.every((t=>i[fc("0xa")]((e=>e.containsRange(t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=r.id,d=fc("0x160")+n,g=this[fc("0xb2")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of i)t[fc("0x15")](),t[fc("0x113")]||fc("0x14b")==t[fc("0xdf")][fc("0x17c")]||this[fc("0x45")](d,l,u,t,Jo.getMultiRangeId());return g}[fc("0x17f")](t,n,o,r,i){if(t.isCollapsed)return[];if("never"===this[fc("0x12a")])return[];const s=this.editor.plugins[fc("0x9a")](fc("0x82")).me.id,x=Array.from(this._suggestions[fc("0x69")]()).filter((e=>fc("0xe2")==e[fc("0x15d")]&&e[fc("0x112")].key==n&&e[fc("0x1d")](t)));if(fc("0x133")===this[fc("0x12a")]){const e=this._findSuggestions(t,"insertion").filter((({meta:t})=>t[fc("0x76")]&&!t[fc("0xe")]&&!t[fc("0x126")]))[fc("0xf7")]((({suggestion:t})=>t));x.unshift(...e)}const a=new Map([[t,o]]);for(const t of x){const e="attribute"==t[fc("0x15d")]?t[fc("0x112")][fc("0xe1")]:void 0,i=t[fc("0x4d")](),s=Array[fc("0xad")](a[fc("0x5")]())[fc("0x16b")]((t=>t[fc("0x9")](i)));if(!s)continue;const x=s[fc("0xf9")](i);this[fc("0x129")](n)&&fc("0x159")==t.type&&0!=x[fc("0x68")]||(a[fc("0x176")](s),x[fc("0x59")]((t=>{a[fc("0x167")](t,o)})),fc("0x159")!=t[fc("0x15d")]&&e!=r&&a[fc("0x167")](s.getIntersection(i),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:r};n.length>37&&console[fc("0x89")](fc("0x119"),{key:n});const l=(fc("0x86")+(n+"|")+Tc({newValue:r}))[fc("0x17e")](0,60),u=this[fc("0xb2")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c[fc("0xc8")](u),this[fc("0x45")](l,x,s,t)}return c}[fc("0x137")](t){this._blockAttributeKeys[fc("0x144")](t)}[fc("0xdb")](t){this[fc("0x94")][fc("0x144")](t)}[fc("0x157")](t,e=[],n=[]){this[fc("0xb1")](t,((t,...e)=>{this[fc("0x54")]((()=>{t(...e)}))}));for(const t of e)this[fc("0xdb")](t);for(const t of n)this._registerBlockAttribute(t)}_setSuggestionRange(t,e){const n=t.getFirstMarker();this._model[fc("0x7b")]((t=>{t[fc("0xc9")](n,{range:e})}))}[fc("0x16e")](t){const e=t.id,n=this[fc("0xc7")].config[fc("0x9a")](fc("0x114"));this[fc("0x17b")].hasCommentThread(e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0x17b")][fc("0x3")](e);o[fc("0xd4")]("isRemovable"),o[fc("0xfb")]=!1,t.commentThread=o}[fc("0x115")](t,n,o,r){if(t.type!=n||t[fc("0x2")]!=o||t[fc("0xf0")].id!=r)throw this.editor[fc("0x31")](fc("0x13a")),new e.CKEditorError(fc("0x13a"),this)}[fc("0x181")](t,n){const o=t[fc("0x4d")]();if(n[fc("0x123")](o))t.removeMarkers();else if(o[fc("0xd1")](n)){const r=this[fc("0x161")].createPositionAt(n[fc("0x12d")][fc("0xa7")],fc("0x58"));this._setSuggestionRange(t,this._model.createRange(o.start,r));const i=(0,e.uid)(),s=t[fc("0xf0")].id,x=t[fc("0x15d")]+":"+t[fc("0x2")];this._setSuggestionData({id:i,type:x,createdAt:new Date,authorId:s,data:t[fc("0x112")],attributes:t[fc("0x8d")]});const a=this[fc("0x161")][fc("0xde")](n[fc("0x58")][fc("0xf8")],fc("0xaa")),c=this._model[fc("0x116")](a,o[fc("0x58")]);this._addSuggestionMarker(x,i,s,c)}else if(o[fc("0xb3")](n.start)){const e=this[fc("0x161")][fc("0xde")](n.start[fc("0xa7")],"end");this[fc("0x5b")](t,this[fc("0x161")].createRange(o.start,e))}else{const e=this[fc("0x161")].createPositionAt(n[fc("0x58")][fc("0xf8")],fc("0xaa"));this._setSuggestionRange(t,this[fc("0x161")][fc("0x116")](e,o[fc("0x58")]))}}[fc("0x3a")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x159"))){if(!n[fc("0x76")])continue;const o=e.getRanges();for(const e of o)if(!t[fc("0xf9")](e)[fc("0x68")])return!0}return!1}[fc("0x93")](t){const n=this[fc("0xc7")].plugins[fc("0x9a")]("Users")[fc("0xfc")](t);if(!n)throw new e.CKEditorError(fc("0xf5"),this);return n}[fc("0x5d")](t){const e=this[fc("0xc7")][fc("0x85")][fc("0x9a")](fc("0x82")),n=(0,i.hashObject)(fc("0x88")+t);return e[fc("0xfc")](n)||e[fc("0xdc")]({id:n,name:t})}_createSuggestion(t,e,n,o,r){const i=this[fc("0x93")](o),s=this[fc("0xe4")][fc("0x1")](t,e,n,i,r,(t=>this[fc("0x8b")](n,{attributes:t})));return this[fc("0xc1")](s,fc("0x14a"),(()=>{this[fc("0x8b")](n,{state:fc("0x6d")})}),{priority:"high"}),this.listenTo(s,fc("0x53"),(()=>{this[fc("0x8b")](n,{state:fc("0x162")})}),{priority:"high"}),this._suggestions[fc("0x167")](n,s),this[fc("0x5c")][fc("0x167")](s,fc("0x35")),s}[fc("0x151")](t){const e=t[fc("0x11e")](":");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("0x68")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[fc("0xeb")](t,n,o){const r=t[fc("0x4d")](),i=r[fc("0x12d")],s=r[fc("0x58")];this[fc("0x5b")](t,this[fc("0x161")][fc("0x116")](i,n));const x=(0,e.uid)(),a=t[fc("0xf0")].id,c=t[fc("0x15d")]+(t[fc("0x2")]?":"+t[fc("0x2")]:"");this[fc("0xb2")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x8d")],data:t[fc("0x112")]});const l=Sc(t);("formatBlock"==t[fc("0x15d")]||l&&this._isBlockAttribute(l))&&(o=this._model[fc("0x44")](o.parent)),this[fc("0x45")](c,x,a,this[fc("0x161")].createRange(o,s))}_findSuggestions(t,e=null){const n=[],o=this[fc("0xc7")][fc("0x85")][fc("0x9a")]("Users").me;Array[fc("0x150")](t)||(t=[t]);for(const r of this.getSuggestions()){if(!r[fc("0xfd")])continue;if(e&&r[fc("0x15d")]!=e)continue;let i=!1;for(const e of r[fc("0x17")]()){for(const s of t){const t=s[fc("0x12d")][fc("0x123")](e.end)||s[fc("0x58")][fc("0x123")](e[fc("0x12d")]);if(t||s[fc("0x9c")](e)){const x=s.containsRange(e)&&bc(this[fc("0x161")][fc("0x15f")],e[fc("0x12d")],s),a=e[fc("0xd1")](s)&&bc(this._model[fc("0x15f")],s[fc("0x12d")],e);n[fc("0xc8")]({suggestion:r,meta:{isOwn:o==r[fc("0xc6")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[fc("0x45")](t,e,n,o,r){this._model[fc("0x7b")]((i=>{let s=fc("0x62")+t+":"+e+":"+n;r&&(s=s+":"+r),i[fc("0x11f")](s,{range:o,usingOperation:!0,affectsData:!0})}))}[fc("0xc0")](t){const e=t[fc("0x2e")],n=t.next;t[fc("0x2e")]=null,t[fc("0x108")]=null,null!=e&&(e[fc("0x108")]=n),null!=n&&(n.previous=e),fc("0xb7")==this[fc("0x5c")][fc("0x9a")](t)&&(this[fc("0x5c")][fc("0x167")](t,fc("0xf2")),this[fc("0x107")](fc("0x5e"),t,e,n))}[fc("0xb2")](t){const n=t.id,o=this[fc("0xaf")](t);if(this._adapter&&this[fc("0x13")][fc("0xbf")]){const r=this.editor.plugins[fc("0x9a")](fc("0xcb")),i=o[fc("0x128")],s=o[fc("0x2")]?o.type+":"+o.subType:o[fc("0x15d")],x=this[fc("0xc7")][fc("0xe8")],a=r[fc("0x144")](Qo(x,fc("0x7a"))),c={id:n,type:s,hasComments:i,data:t[fc("0x112")]||null,originalSuggestionId:t[fc("0x29")]||null,attributes:o[fc("0x8d")]};this._adapter.addSuggestion(c)[fc("0x139")]((t=>{o[fc("0x60")]=!0,r[fc("0x6e")](a),t&&t.createdAt&&(this[fc("0x71")][fc("0x9a")](n)[fc("0x171")]=t[fc("0x171")])}))[fc("0x6a")]((t=>{throw(0,e.logWarning)(fc("0x156")),this[fc("0xc7")][fc("0x140")].enqueueChange({isUndoable:!1},(()=>{o[fc("0x53")]()})),o.stopListening(),this[fc("0x71")][fc("0x176")](o.id),this[fc("0x5c")].delete(o),t}))}return o}_isBlockAttribute(t){return this[fc("0x122")].has(t)}[fc("0x8b")](t,e){const n=this[fc("0xc7")].plugins[fc("0x9a")](fc("0xcb")),o=this[fc("0x61")](t);if(this[fc("0x13")]&&this[fc("0x13")].updateSuggestion)if(o[fc("0x60")]){const o=n[fc("0x144")](Qo(this[fc("0xc7")][fc("0xe8")],fc("0x7a")));this._adapter.updateSuggestion(t,e).then((()=>{n.remove(o)}))}else o.on(fc("0xcc"),(()=>{this[fc("0x8b")](t,e)}))}[fc("0x25")](t){if(!this[fc("0x13")]||!this._adapter[fc("0x61")])throw new e.CKEditorError(fc("0xa5"),this);return this[fc("0x13")][fc("0x61")](t)}[fc("0xfa")](t){const{id:e,type:n,subType:o,authorId:r}=this[fc("0x151")](t),i=this[fc("0x71")][fc("0x9a")](e)||this[fc("0x9e")](n,o,e,r,{});switch(this[fc("0x115")](i,n,o,r),this[fc("0x5c")].get(i)){case fc("0x35"):this[fc("0x25")](e)[fc("0x139")]((t=>{let n=Promise[fc("0xae")]();t[fc("0x128")]&&(n=this[fc("0x17b")][fc("0x148")]({channelId:this[fc("0xc7")].config[fc("0x9a")]("collaboration.channelId"),threadId:e})),n.then((()=>{this[fc("0xaf")](t)._saved=!0}))})),this[fc("0x5c")][fc("0x167")](i,"markerReady");break;case fc("0xf2"):this[fc("0x8b")](e,{state:"open"});case fc("0x67"):this[fc("0x5c")][fc("0x167")](i,fc("0xb7")),this.fire(fc("0x99"),i);break;case fc("0xb7"):this[fc("0x107")]("suggestionChanged",i)}return i.addMarkerName(t),i}[fc("0x141")](t){const e=Array.from(t),n=e[fc("0xee")]((t=>fc("0xe2")==t[fc("0x15d")]));this[fc("0x146")](n);const o=e.filter((t=>!t[fc("0xb9")]&&fc("0xe2")!=t[fc("0x15d")])),r=this[fc("0x50")]({skipNotAttached:!0})[fc("0xee")]((t=>!t[fc("0xb9")]&&"attribute"!=t[fc("0x15d")])),i=r[fc("0xee")]((e=>!t.has(e))),s=new Map(r[fc("0xf7")]((t=>[t,this[fc("0xe4")].getSuggestionCallback(t[fc("0x15d")],t[fc("0x2")],fc("0x6b"))]))),x=new Map(r.map((t=>[t,t[fc("0x4d")]()]))),a=new Set,c=new Set;for(let t=0;t<o[fc("0x68")];t++)u(o[t],o,t+1);for(let t=0;t<o[fc("0x68")];t++)u(o[t],i,0);const l=new Set;for(let t=0;t<o.length;t++){const e=o[t];!c.has(e)&&e[fc("0x2e")]&&(l[fc("0x144")](e[fc("0x2e")]),e.previous[fc("0x108")]===e&&(e[fc("0x2e")][fc("0x108")]=null),e.previous=null),!a.has(e)&&e[fc("0x108")]&&(l.add(e[fc("0x108")]),e[fc("0x108")][fc("0x2e")]===e&&(e[fc("0x108")][fc("0x2e")]=null),e[fc("0x108")]=null)}function u(t,e,n){for(let o=n;o<e[fc("0x68")];o++){const n=d(t,e[o]);n&&(n[0][fc("0x108")]=n[1],n[1].previous=n[0],a[fc("0x144")](n[0]),c[fc("0x144")](n[1]))}}function d(t,e){if(t[fc("0xc6")].id!==e.author.id)return null;const n=s[fc("0x9a")](t)(t,e,x[fc("0x9a")](t),x[fc("0x9a")](e));return n&&s[fc("0x9a")](e)(t,e,x[fc("0x9a")](t),x[fc("0x9a")](e))?n[1][fc("0x7")]&&n[1].commentThread[fc("0x68")]?null:n:null}l[fc("0xff")]&&this[fc("0x141")](l)}[fc("0x146")](t){if(0==t.length)return;const e=this[fc("0x50")]({skipNotAttached:!0}).filter((t=>fc("0xe2")==t.type&&t[fc("0x14c")])),n=[],o=new Map;for(const t of e){const e=(0,i.hashObject)(t[fc("0x8d")]);o[fc("0x15b")](e)||(o.set(e,n[fc("0x68")]),n.push([]));const r=o.get(e);n[r][fc("0xc8")](t)}!function(){n[fc("0xcf")](((t,e)=>{const n=t[0][fc("0x171")],o=e[0].createdAt;return n==o?t[0][fc("0x8d")][fc("0x2d")]<e[0][fc("0x8d")].groupId?-1:1:n<o?-1:1}));for(const t of n)t[fc("0xcf")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x68")];t++){if(0==n[t].length)continue;const e=[];for(let o=t+1;o<n[fc("0x68")];o++)0!=n[o][fc("0x68")]&&r(n[t],n[o])&&e[fc("0xc8")](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.length;e++)t[e][fc("0x108")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0x68")];e++)t[e][fc("0x2e")]=t[e-1]||null;function r(t,e){if(t[0][fc("0xc6")]!==e[0][fc("0xc6")])return!1;if(n=t[0],o=e[0],(n.hasComments||o[fc("0x128")])&&(n[fc("0x128")]&&o.hasComments||!(n[fc("0x128")]&&o[fc("0x171")]<n[fc("0x7")].comments[fc("0x9a")](0)[fc("0x171")]||o[fc("0x128")]&&n.createdAt<o[fc("0x7")][fc("0x51")][fc("0x9a")](0)[fc("0x171")])))return!1;var n,o;const r=lc(t[0][fc("0x8d")],"groupId"),i=lc(e[0].attributes,"groupId");return!!Go(r,i)&&(!!t.every((t=>e.some((e=>t[fc("0x4d")]()[fc("0x123")](e[fc("0x4d")]())))))&&e[fc("0xd9")]((e=>t.some((t=>e[fc("0x4d")]()[fc("0x123")](t[fc("0x4d")]()))))))}}[fc("0xb0")](t){const e=Array[fc("0xad")](t),n=this[fc("0x50")]({skipNotAttached:!0}),o=n[fc("0xee")]((e=>!t[fc("0x15b")](e))),r=new Map(e[fc("0xf7")]((t=>[t,this[fc("0xe4")][fc("0xac")](t[fc("0x15d")],t[fc("0x2")],fc("0x12c"))]))),i=new Map(n.map((t=>[t,t[fc("0x17")]()])));for(let t=0;t<e[fc("0x68")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0x68")];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("0x68")];s++){const o=n[s];if(o[fc("0x15d")]!==e[fc("0x15d")]||o[fc("0xc6")].id!==e[fc("0xc6")].id||o.subType!==e[fc("0x2")])continue;if(!kc(e,o))continue;if("attribute"==e[fc("0x15d")]&&e[fc("0x112")][fc("0xe1")]!=o[fc("0x112")][fc("0xe1")])continue;if(fc("0xe2")==e.type&&t[fc("0x129")](e[fc("0x112")][fc("0x64")]))continue;if("formatBlock"==e.type){const n=t[fc("0xc7")][fc("0x140")],o=e[fc("0x174")]();if(o&&(n[fc("0x15f")].isObject(o)||n[fc("0x15f")][fc("0x28")](o)))continue}const x=r[fc("0x9a")](e),a=i[fc("0x9a")](e),c=i.get(o),l=e[fc("0x7")]&&e[fc("0x7")][fc("0x68")],u=o.commentThread&&o[fc("0x7")][fc("0x68")];if(!l&&x(c,a))return t[fc("0x30")](o,e),i[fc("0x176")](e),!0;if(!u&&x(a,c))return t[fc("0x30")](e,o),i[fc("0x176")](o),!0}return!1}}[fc("0x30")](t,e){if(t.isMultiRange)for(const n of e[fc("0x17")]())t.addRange(n);else{const n=e[fc("0x4d")]()[fc("0x58")];this[fc("0x5b")](t,this[fc("0x161")][fc("0x116")](t[fc("0x4d")]()[fc("0x12d")],n))}e[fc("0x100")]()}_getMarkerAnnouncementText(t,e){const n=t.startsWith("format")||t.startsWith(fc("0xe2"))?fc("0x42"):t[fc("0x134")]();return Qo(this.editor[fc("0xe8")],e+"_"+n+fc("0x26"))}[fc("0x20")](){const t=this[fc("0xc7")];(0,i.surroundingMarkersDetector)(this[fc("0x161")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0x151")](t[fc("0xba")]);if(fc("0xd5")===e){o[fc("0xc8")](this[fc("0x13d")](n,fc("0xda")));break}}for(const t of n){const{group:e,type:n}=this[fc("0x151")](t[fc("0xba")]);if(fc("0xd5")===e){o[fc("0xc8")](this[fc("0x13d")](n,fc("0x7e")));break}}o[fc("0x68")]&&t.ui.ariaLiveAnnouncer[fc("0x34")](fc("0x10c"),o[fc("0x12c")](" "))}))}_processAttributeChanges(t){if(null!==this[fc("0x65")])return!1;const e=this[fc("0xc7")],n=e.model[fc("0x164")][fc("0x79")][fc("0x16c")]();if(0==n.length)return!1;const o=[],r=n[fc("0xee")]((t=>fc("0xe2")==t.type)),i=n[fc("0xee")]((t=>fc("0x39")==t[fc("0x15d")]&&fc("0x105")!=t[fc("0xba")])),s=n.filter((t=>"remove"==t[fc("0x15d")]&&fc("0x105")!=t.name));for(const t of r)o[fc("0xc8")]({key:t.attributeKey,newValue:t[fc("0x66")],oldValue:t[fc("0x24")],range:(x=t.range,null==x.end.nodeBefore&&x[fc("0x58")].parent==x[fc("0x12d")].nodeAfter?Cc(x[fc("0x12d")].nodeAfter,e[fc("0x140")]):x)});var x;for(const t of i){const n=s[fc("0x16b")]((e=>e[fc("0xa2")][fc("0x123")](t.position)));n&&o[fc("0xc8")]({key:fc("0x149"),newValue:t[fc("0xba")],oldValue:n[fc("0xba")],range:e[fc("0x140")][fc("0x6f")](t[fc("0xa2")][fc("0x10d")])})}return 0!=o[fc("0x68")]&&this[fc("0x91")](t,o)}[fc("0xf")](t){let e=!1;const n=this[fc("0xc7")][fc("0x140")][fc("0x164")][fc("0x79")][fc("0x96")]()[fc("0xee")]((t=>t[fc("0x112")][fc("0x12")]&&t[fc("0xba")].startsWith(fc("0x75"))));for(const o of n){const{subType:n,id:r}=this._splitMarkerName(o[fc("0xba")]),i=n[fc("0x11e")]("|")[0];for(const n of this[fc("0x50")]({skipNotAttached:!0}))n.id!=r&&fc("0xe2")==n.type&&n[fc("0x112")]&&n[fc("0x112")][fc("0x64")]==i&&n[fc("0x4d")]().isIntersecting(o.data.newRange)&&(this[fc("0xa1")](n,o[fc("0x112")][fc("0x12")],t),e=!0)}return e}_recordAttributeChanges(t){if(null!==this._recordAttributeSuggestionsFromVersion)return void t();const n=this[fc("0xc7")];this[fc("0x65")]=n[fc("0x140")][fc("0x164")][fc("0x12e")],t();const o=new Map;for(const t of n[fc("0x140")].document[fc("0x118")][fc("0xe6")](this[fc("0x65")]))if([fc("0x143"),fc("0xf3"),"removeAttribute",fc("0x70")][fc("0x109")](t[fc("0x15d")])){const e=t[fc("0x168")],n=o.get(e)||[];n.push(t),o[fc("0x167")](e,n)}this[fc("0x65")]=null;for(const[t,r]of o){const o=(0,e.uid)();n.model[fc("0x152")](t,(t=>{const e=[];for(const t of r){let r,i,s,x;if("rename"==t[fc("0x15d")]){const e=t;r=Cc(e[fc("0xa2")][fc("0x10d")],n.model),i=fc("0x149"),s=e[fc("0x81")],x=e[fc("0xa4")]}else{const e=t,o=this[fc("0x129")](e[fc("0x64")]),a=this[fc("0x94")][fc("0x15b")](e.key);if(!o&&!a)continue;r=o?Cc(e[fc("0x19")].start[fc("0x10d")],n[fc("0x140")]):e.range,i=e.key,s=fc("0x132")==t[fc("0x15d")]?void 0:e[fc("0xb6")],x=e.oldValue}this[fc("0x17f")](r,i,x,s,{groupId:o}),e[fc("0xc8")]({range:r,key:i,newValue:s,oldValue:x})}this[fc("0x91")](t,e)}))}}[fc("0x91")](t,e){if(0==e[fc("0x68")])return!1;let n=!1;for(const o of e){const e=this[fc("0x63")](o[fc("0x19")],"attribute")[fc("0xee")]((t=>!t.meta[fc("0x126")]))[fc("0xf7")]((t=>t.suggestion)),r=(0,i.hashObject)({newValue:o.newValue});e[fc("0xee")]((t=>{const[e,n]=t.subType[fc("0x11e")]("|");return e==o[fc("0x64")]&&n!=r}))[fc("0x59")]((e=>{this[fc("0xa1")](e,o.range,t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const o=t[fc("0x4d")]().getDifference(e);0!==o[fc("0x68")]?1!==o[fc("0x68")]?this[fc("0xeb")](t,e.start,e[fc("0x58")]):this[fc("0x5b")](t,o[0]):n[fc("0x180")](t[fc("0x178")]())}}class pc{constructor(t){this[fc("0x12f")]=t,this._model=t[fc("0x140")],this._customCallbacks=new Map,this[fc("0x165")]=new Map,this[fc("0x14e")]()}[fc("0x1")](t,e,n,o,r,i){return new Jo(this[fc("0x161")],{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:i,onAccept:(...n)=>this[fc("0xac")](t,e,"accept")(...n),onDiscard:(...n)=>this[fc("0xac")](t,e,fc("0x53"))(...n)})}[fc("0x47")](t,e,n,o){const r=t+":"+e+":"+n;this[fc("0x3b")].set(r,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[fc("0x3b")].get(o)||this[fc("0x165")].get(t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[fc("0xcf")](((t,e)=>t[fc("0x12d")][fc("0x145")](e[fc("0x12d")])?1:-1)),this[fc("0x161")][fc("0x7b")]((e=>{for(const n of t){let t;t=n.end[fc("0x106")]&&n[fc("0x58")][fc("0xf8")]==n[fc("0x12d")][fc("0x10d")]?e.createSelection(n[fc("0x12d")][fc("0x10d")],"on"):e[fc("0x183")](n),this._model[fc("0x16a")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model[fc("0x7b")]((n=>{const{commandName:o,commandParams:r=[]}=e,i=t[fc("0xf7")]((t=>(Ec(t)&&(t=this[fc("0x161")][fc("0x116")](t[fc("0x58")])),t)))[fc("0xee")]((t=>fc("0x14b")!==t[fc("0xdf")][fc("0x17c")]));if(i[fc("0x68")]<1)return;const x=Array.from(this[fc("0x161")].document.selection[fc("0x17")]())[fc("0xf7")]((t=>s.LiveRange[fc("0x3c")](t)));n.setSelection(i);for(const t of this[fc("0x12f")][fc("0x52")].commands())t[fc("0x11d")]();r[fc("0xc8")]({forceDefaultExecution:!0}),this[fc("0x12f")][fc("0xe5")](o,...r);const a=x[fc("0xee")]((t=>fc("0x14b")!=t[fc("0xdf")][fc("0x17c")]));a[fc("0x68")]>0&&n[fc("0xe9")](a);for(const t of x)t[fc("0x15")]()}))},o=(t,e)=>1==t[fc("0x68")]&&1==e.length&&t[0][fc("0x58")][fc("0x123")](e[0].start),r=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0x161")])?[t,e]:Ac(e,t,o,n,this._model)?[e,t]:null;this[fc("0x165")].set(fc("0x23"),t),this[fc("0x165")][fc("0x167")](fc("0x83"),e),this[fc("0x165")].set(fc("0xc2"),o),this[fc("0x165")].set(fc("0x155"),r),this[fc("0x165")].set(fc("0x13f"),e),this._defaultCallbacks[fc("0x167")](fc("0x147"),t),this[fc("0x165")][fc("0x167")](fc("0x11"),o),this[fc("0x165")][fc("0x167")](fc("0xa6"),r),this[fc("0x165")][fc("0x167")](fc("0x11a"),n),this._defaultCallbacks[fc("0x167")]("formatInline:discard",t),this._defaultCallbacks[fc("0x167")](fc("0x74"),o),this[fc("0x165")][fc("0x167")](fc("0x2b"),t),this[fc("0x165")][fc("0x167")](fc("0xef"),n),this._defaultCallbacks[fc("0x167")](fc("0x11c"),t),this[fc("0x165")][fc("0x167")]("formatBlock:join",o),this[fc("0x165")].set(fc("0xb4"),t),this[fc("0x165")][fc("0x167")](fc("0x32"),t),this[fc("0x165")][fc("0x167")](fc("0x9d"),((t,e)=>{if(!e)return;const n=this[fc("0x12f")][fc("0x85")][fc("0x9a")](hc);this[fc("0x161")][fc("0x7b")]((o=>{if(fc("0x149")==e.key)for(const n of t){const t=n[fc("0x12d")][fc("0x10d")],r=e[fc("0xe1")];o.rename(t,r)}else if(n[fc("0x129")](e.key))for(const n of t)void 0!==e[fc("0xe1")]?o[fc("0x7d")](e[fc("0x64")],e.oldValue,n[fc("0x12d")].nodeAfter):o.removeAttribute(e[fc("0x64")],n[fc("0x12d")].nodeAfter);else for(const n of t)e[fc("0xe1")]?o[fc("0x7d")](e[fc("0x64")],e[fc("0xe1")],n):o[fc("0x132")](e[fc("0x64")],n)}))})),this._defaultCallbacks[fc("0x167")](fc("0x170"),o)}}function bc(t,e,n){for(const o of e.parent.getAncestors({includeSelf:!0,parentFirst:!0})){if(o[fc("0xdf")]==o)return!1;if(!n[fc("0x14f")](o))return!1;if(t.isObject(o)||t[fc("0x28")](o))return!0}return!1}function Ec(t){return t.end.parent==t[fc("0x12d")].nodeAfter&&t[fc("0x58")][fc("0xa8")]}function _c(t,e,n,o){const r=t=>!t[fc("0x46")].is("$textProxy")&&!o[fc("0x33")](t[fc("0x46")]),i=t.start[fc("0x5f")](r),s=t[fc("0x58")].getLastMatchingPosition(r,{direction:fc("0xce")});return!(t[fc("0x12d")][fc("0x123")](i)&&t[fc("0x58")][fc("0x123")](s)||(i.isBefore(s)?n.updateMarker(e,{range:n.createRange(i,s)}):n[fc("0x180")](e),0))}function Tc(t){return(0,i.hashObject)(t)}function yc(t){const e=t[fc("0x12d")].nodeAfter;return e&&e.is(fc("0x98"))}function Cc(t,e){const n=e[fc("0x15f")][fc("0x33")](t)||e[fc("0x15f")][fc("0x11b")](t);return e[fc("0x116")](e[fc("0xde")](t,fc("0x72")),n?e[fc("0x13b")](t):e[fc("0xde")](t,"end"))}function Ac(t,e,n,o,r){if(!kc(t,e))return!1;if(n[fc("0x58")][fc("0x123")](o.start))return!0;if(t[fc("0x15d")]!=e.type)return!1;if(!n[fc("0x58")][fc("0x3f")](o[fc("0x12d")]))return!1;const i=r[fc("0x116")](n[fc("0x58")],o.start)[fc("0x124")]();for(const t of i)if([fc("0x77"),fc("0x169")][fc("0x109")](t[fc("0x15d")])&&r[fc("0x15f")][fc("0x28")](t[fc("0x46")]))return!1;return!0}function kc(t,e){return!(!t[fc("0x14c")]||!e[fc("0x14c")])&&Go(t.attributes,e.attributes)}function Ic(t,e){const n=Rc(t.attributes),o=Rc(e);if(!t[fc("0x14c")])return!1;for(const t of Object[fc("0x5")](o))if(!Go(n[t],o[t]))return!1;return!0}function Rc(t){const e=Object[fc("0x7c")]({},t);return delete e[fc("0x1a")],delete e.tablePasteChainId,e}function Sc(t){return"attribute"==t[fc("0x15d")]?t[fc("0x2")][fc("0x11e")]("|")[0]:null}const vc=["_editor","getRanges","remove","_setPendingAction","execute","add","destroy","PENDING_ACTION_SUGGESTION","get","discardSuggestion","bind","change:isDirty","commands","_discardCommand","stopListening","canAccept","_pendingAction","_acceptCommand","isDirty","canDiscard","model","unbind","canEditAt","_removePendingAction","isEnabled","commentThreadController","acceptSuggestion","PendingActions","view","listenTo"];var Nc,Lc;Nc=vc,Lc=182,function(t){for(;--t;)Nc.push(Nc.shift())}(++Lc);const Mc=function(t,e){return vc[t-=0]};class wc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Mc("0x12")]=e,this[Mc("0x1a")]=n,this[Mc("0x17")]=o,this._editor=t,this[Mc("0xf")]=t[Mc("0xa")][Mc("0x6")](Mc("0x18")),this[Mc("0xb")]=t[Mc("0xa")][Mc("0x6")](Mc("0x7")),this[Mc("0x1a")][Mc("0x8")](Mc("0x16")).to(this[Mc("0xf")],this[Mc("0xb")],((t,e)=>t||e)),this[Mc("0x1a")][Mc("0x8")](Mc("0xd")).to(this[Mc("0xf")],"isEnabled",(t=>t&&this[Mc("0x1c")].model.canEditAt(e.getRanges()))),this[Mc("0x1a")].bind(Mc("0x11")).to(this._discardCommand,"isEnabled",(t=>t&&this._editor[Mc("0x12")][Mc("0x14")](e[Mc("0x1d")]()))),this[Mc("0xe")]=null,n[Mc("0x10")]&&this[Mc("0x1")](),this[Mc("0x1b")](n,Mc("0x18"),(()=>this.acceptSuggestion())),this[Mc("0x1b")](n,"discardSuggestion",(()=>this[Mc("0x7")]())),this[Mc("0x1b")](n,Mc("0x9"),(()=>{n.isDirty?this._setPendingAction():this[Mc("0x15")]()}))}[Mc("0x18")](){this[Mc("0xf")][Mc("0x2")](this.model.id)}[Mc("0x7")](){this[Mc("0xb")][Mc("0x2")](this[Mc("0x12")].id)}destroy(){this[Mc("0x1a")].unbind("isEnabled"),this[Mc("0x1a")][Mc("0x13")]("canAccept"),this[Mc("0x1a")][Mc("0x13")]("canDiscard"),this[Mc("0xc")](),this[Mc("0x17")][Mc("0x4")](),this[Mc("0xe")]&&this[Mc("0x15")]()}_setPendingAction(){const t=Qo(this[Mc("0x1c")].locale,Mc("0x5"));this[Mc("0xe")]=this[Mc("0x1c")].plugins[Mc("0x6")](Mc("0x19"))[Mc("0x3")](t)}_removePendingAction(){null!==this[Mc("0xe")]&&this[Mc("0x1c")].plugins[Mc("0x6")](Mc("0x19"))[Mc("0x0")](this[Mc("0xe")]),this[Mc("0xe")]=null}}const Oc=["focus","removeComment","isReadOnly","isActive","editor","element","_model","authoredAt","length","commentsListView","destroy","showInput","updateComment","_config","_createCommentViews","fire","editorConfig","isEnabled","hasDirtyComment","commentInputView","delegate","descriptionParts","addComment","cancel","_localUser","bind","submit","commentThreadInputView","disabledSubmit","locale","isDirty","commentThread","value","_createCommentThreadInputView","canAccept","assign","disableComments","set"];var Fc,Dc;Fc=Oc,Dc=155,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Bc=function(t,e){return Oc[t-=0]};class Pc extends r.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this.commentThreadInputView=null,this[Bc("0x22")](Bc("0x0"),!1),this.set(Bc("0x4"),e[Bc("0x4")]),this[Bc("0x16")]("authoredAt").to(e),this.set(Bc("0x12"),[]),this[Bc("0x22")](Bc("0x1b"),!1),this.set(Bc("0xe"),!1),this.set(Bc("0x1f"),!1),this.set("canDiscard",!1),this[Bc("0x3")]=e,this[Bc("0x15")]=n,this[Bc("0xa")]=o,o[Bc("0x21")]?this.set(Bc("0x5"),1):this[Bc("0xb")]()}focus(){this[Bc("0x2")][Bc("0x23")]()}[Bc("0x7")](){this[Bc("0x6")]&&this[Bc("0x6")][Bc("0x7")](),this[Bc("0x18")]&&this[Bc("0x18")][Bc("0x7")](),super[Bc("0x7")]()}[Bc("0xb")](){const{CommentsListView:t}=this._config;this[Bc("0x6")]=new t(this[Bc("0x1a")],this._model[Bc("0x1c")],Object[Bc("0x20")]({CommentView:this[Bc("0xa")].CommentView},this[Bc("0xa")])),this[Bc("0x6")][Bc("0x11")]("removeComment").to(this),this.commentsListView[Bc("0x11")](Bc("0x9")).to(this),this[Bc("0x6")][Bc("0x16")](Bc("0x0")).to(this),this.set(Bc("0x5"),this[Bc("0x6")].length+1),this[Bc("0x16")](Bc("0x5")).to(this[Bc("0x6")],"length",(t=>t+1)),this.commentThreadInputView=this[Bc("0x1e")](),this.on(Bc("0x24"),(()=>this.focus())),this.bind(Bc("0x1b")).to(this.commentsListView,Bc("0xf"),this[Bc("0x18")].commentInputView,Bc("0x1d"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[Bc("0xa")],e=new t(this[Bc("0x1a")],this[Bc("0x15")],this[Bc("0xa")][Bc("0xd")]),n=e[Bc("0x10")];return e[Bc("0x16")](Bc("0x8")).to(this,Bc("0x0"),this._model[Bc("0x1c")],Bc("0x25"),n,Bc("0x1d"),((t,e,n)=>!!n||t&&!e)),n.on(Bc("0x17"),((t,e)=>{this[Bc("0xc")](Bc("0x13"),e),n[Bc("0x1")].setData("")})),n.on(Bc("0x14"),(()=>this.focus())),n[Bc("0x16")](Bc("0x19")).to(this[Bc("0x3")][Bc("0x1c")],Bc("0x25")),e}}const Uc=["createElement","canDiscard","commentThreadInputView","EXTERNAL_SUGGESTION","creator","acceptSuggestion","getTemplate","canAccept","time","children","ck-suggestion--accept","div","disableComments","ck-annotation__main","isEnabled","push","@external","EXTERNAL_IMPORT_WORD_SUGGESTION","content","element","ck-suggestion","ck-suggestion-","author","setTemplate","isActive","split","ck-annotation__info-time","_config","<p>","type",'" title="',"change:description","userView","fire","ck-suggestion-wrapper--active","querySelector","map","getUserViewNotificationText","locale","description","EXTERNAL_IMPORT_WORD_AVATAR","innerHTML","extendTemplate","getExternalSuggestionNote","title","render","color","ck-suggestion--disabled-comments","ck-annotation__actions","acceptButton","ck-suggestion-wrapper","importWord","_createButton","span","value","discardButton","editorDestroyed","join","bind","Accept suggestion","EXTERNAL_AVATAR","isExternal","delegate","cancel","set","name","formatDateTime","attributes","commentsListView","ck-annotation__content-wrapper","ck-suggestion__main","editorReady","commentThread","_descriptionElement","</p>",'<span class="ck-suggestion-color" style="background-color: ',"ck-comment__info-time","ck-annotation__info-name","ck-annotation__info","_model","source","authoredAt","ck-suggestion__info"];var jc,Gc;jc=Uc,Gc=413,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Vc=function(t,e){return Uc[t-=0]};class Hc extends Pc{constructor(e,n,o,r){super(e,n,o,r),this[Vc("0x42")](Vc("0x1f"),""),this[Vc("0x3c")](Vc("0x1f")).to(this,"descriptionParts",(t=>t&&t[0]?t[0].type:"")),this[Vc("0x3c")](Vc("0x29")).to(this,"descriptionParts",this,Vc("0x1a"),((t,e)=>{let n="";for(const e of t)n+=Vc("0x1e")+zc(e[Vc("0x14")],e[Vc("0x30")])+Vc("0x4c");return e?n:(0,i.trimHtml)(n,{limit:140})})),this[Vc("0x4b")]=null,this[Vc("0x33")]=this._createButton(Qo(e,Vc("0x3d")),t.icons.check,Vc("0xc"),Vc("0x7"),"sw"),this[Vc("0x33")].bind(Vc("0x10")).to(this,Vc("0x9")),this.discardButton=this[Vc("0x36")](Qo(e,"Discard suggestion"),t.icons[Vc("0x41")],"ck-suggestion--discard","discardSuggestion","sw"),this.discardButton[Vc("0x3c")](Vc("0x10")).to(this,Vc("0x3")),this[Vc("0x22")]=new i.UserView(e,this[Vc("0x51")][Vc("0x18")],this[Vc("0x27")]()),this[Vc("0x22")].extendTemplate({attributes:{class:["ck-suggestion__user","ck-annotation__user"]}}),this[Vc("0x19")](this[Vc("0x8")]())}getTemplate(){const t=this.bindTemplate,e=[{tag:Vc("0xd"),attributes:{class:[Vc("0x1"),Vc("0x50")]},children:[{tag:Vc("0x37"),children:[{text:this[Vc("0x22")][Vc("0x43")]}],attributes:{class:["ck-suggestion__info-name",Vc("0x4f")]}},{tag:Vc("0xa"),attributes:{datetime:t.to(Vc("0x0")),class:[Vc("0x4e"),Vc("0x1c")]},children:[{text:t.to("authoredAt",(t=>this[Vc("0x1d")][Vc("0x44")](t)))}]}]},{tag:Vc("0xd"),attributes:{class:["ck-suggestion__actions",Vc("0x32")]},children:[this[Vc("0x33")],this[Vc("0x39")]]},{tag:Vc("0xd"),attributes:{class:[Vc("0x47")]}}];this[Vc("0x51")][Vc("0x3f")]&&e[Vc("0x11")]({tag:Vc("0xd"),attributes:{class:["ck-comment__external"]},children:[{text:this[Vc("0x2d")]()}]});const n={tag:"div",attributes:{class:[Vc("0x34"),t.if(Vc("0x1a"),Vc("0x24")),t.to(Vc("0x1f"),(t=>Vc("0x17")+t)),this._config[Vc("0xe")]&&Vc("0x31")],"data-suggestion-id":this[Vc("0x51")].id,"data-thread-id":this[Vc("0x51")][Vc("0x4a")].id,"data-author-id":this[Vc("0x51")][Vc("0x18")].id,tabindex:-1},children:[{tag:Vc("0xd"),attributes:{class:[Vc("0x16"),"ck-annotation"]},children:[this.userView,{tag:Vc("0xd"),attributes:{class:[Vc("0x48"),Vc("0xf")]},children:e}]}]};return this[Vc("0x46")]&&this[Vc("0x4")]&&(n[Vc("0xb")][Vc("0x11")](this.commentsListView,this[Vc("0x4")]),this[Vc("0x46")][Vc("0x40")](Vc("0x49")).to(this),this[Vc("0x46")][Vc("0x40")](Vc("0x3a")).to(this),this[Vc("0x4")][Vc("0x40")]("editorReady").to(this),this[Vc("0x4")][Vc("0x40")](Vc("0x3a")).to(this)),n}[Vc("0x2f")](){super.render(),this._descriptionElement=this[Vc("0x15")][Vc("0x25")](".ck-annotation__content-wrapper"),this[Vc("0x4b")][Vc("0x2b")]=this.description,this.on(Vc("0x21"),((t,e,n)=>{this[Vc("0x4b")][Vc("0x2b")]=n}))}[Vc("0x36")](t,e,n,o,i){const s=new r.ButtonView(this[Vc("0x28")]);return s[Vc("0x42")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s[Vc("0x2c")]({attributes:{class:n}}),s.on("execute",(()=>{this[Vc("0x23")](o,this[Vc("0x51")].id)})),s}[Vc("0x2d")](){return"importWord"===this[Vc("0x51")].attributes[Vc("0x12")][Vc("0x52")]?Qo(this[Vc("0x28")],Vc("0x13")):Qo(this[Vc("0x28")],Vc("0x5"))}[Vc("0x27")](){return this[Vc("0x51")][Vc("0x3f")]?Vc("0x35")===this[Vc("0x51")][Vc("0x45")][Vc("0x12")][Vc("0x52")]?Qo(this[Vc("0x28")],Vc("0x2a"),this[Vc("0x51")][Vc("0x6")].name):Qo(this[Vc("0x28")],Vc("0x3e"),this[Vc("0x51")][Vc("0x6")][Vc("0x43")]):null}}function zc(t,e){let n="";return n+=t[Vc("0x1b")]("*")[Vc("0x26")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+Wc(t)+"</span>":Wc(t)))[Vc("0x3b")](""),e&&(n+=Vc("0x4d")+e[Vc("0x38")]+Vc("0x20")+e[Vc("0x2e")]+'"></span>'),n}function Wc(t){const e=document[Vc("0x2")](Vc("0x37"));return e.innerText=t,e[Vc("0x2b")]}const Kc=["getDescriptions","buttonView","descriptionParts","trackChanges.disableComments","push","registerAnnotation","get","addComment","value","commands","discardSelectedSuggestions","_handleControllerBuffer","size","separator","editing","_suggestionToController","_viewToController","getSuggestion","config","comments.maxCommentCharsWhenCollapsed","map","innerView","locale","getAllAdjacentSuggestions","createAnnotationView","switchbutton","acceptAllSuggestions","componentFactory","_unbindEditors","isMultiRange","isInContent","has","actionView","head","some","_descriptionFactory","init","suggestion-","comments.editorConfig","add","Annotations","filter","SuggestionThreadView","suggestionChanged","execute","getMarkers","EditorAnnotations","values","mainView","editor","suggestionLoaded","destroy","define","reduce","_createUIButton","from","_disableComments","_destroyController","lowest","isEnabled","activeAnnotations","listenTo","arrowView","discardButton","comments.maxCommentsWhenCollapsed","CommentsUI","_updateController","Discard all suggestions","hasSuggestion","pluginName","_handleSuggestionControllerDelayed","getFirstRange","getRanges","focus","delete","_bindAnnotationToEditors","unbind","commandName","bind","CommentsRepository","set","length","toMany","change:previous","isOn","getMarkerNames","_refreshActiveMarkers","trackChanges","isDirty","_annotationViews","TrackChangesEditing","_initializeController","type","model","suggestionUnloaded","previous","refreshSelectedViews","getJoined","createCommentThreadController","clear","stopListening","plugins","button","view","comments"];var qc,Xc;qc=Kc,Xc=241,function(t){for(;--t;)qc.push(qc.shift())}(++Xc);const $c=function(t,e){return Kc[t-=0]};class Zc extends t.Plugin{static get requires(){return[hc,i.Users,$c("0x30"),$c("0x9"),$c("0xf")]}static get[$c("0x26")](){return"TrackChangesUI"}constructor(t){super(t),this[$c("0x59")]=new Map,this._viewToController=new Map,this._annotationViews=new Map,this[$c("0x55")]=new Map;const e=this[$c("0x12")][$c("0x5c")];e[$c("0x15")]("trackChanges.SuggestionThreadView",Hc),e.define($c("0x4d"),!1),this._disableComments=e.get($c("0x4d"))}_handleSuggestionControllerDelayed(t,e){0===this._handleControllerBuffer[$c("0x56")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[$c("0x59")][$c("0x0")](t);n||e?n&&e&&this[$c("0x1a")](t):this[$c("0x3c")](t)}this.editor[$c("0x46")][$c("0x50")]($c("0xf"))[$c("0x41")](),this[$c("0x37")](),this[$c("0x55")][$c("0x44")]()}),10),this[$c("0x55")].set(t,e)}[$c("0x5")](){const t=this[$c("0x12")],e=t[$c("0x46")].get("TrackChangesEditing"),n=t.plugins[$c("0x50")]($c("0x9")),o=t[$c("0x46")][$c("0x50")]($c("0xf")),r=t.plugins[$c("0x50")]($c("0x30"));t.ui[$c("0x65")][$c("0x8")]($c("0x38"),(t=>this[$c("0x17")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[$c("0x18")](this[$c("0x59")])){const o=e[$c("0x61")](),r=[];for(const t of o){if(!t[$c("0x68")])continue;if(t[$c("0x67")]){r.push(...t[$c("0x29")]());continue}const e=t[$c("0x28")]();if(r[$c("0x32")]>0){const t=r[0][$c("0x42")](e);if(t){r[0]=t;continue}}r[$c("0x4e")](e)}t[$c("0x4e")]([n.view,r])}return t})),this[$c("0x1e")](e,$c("0x13"),((t,e)=>{this[$c("0x1e")](e,$c("0x34"),((t,n,o,r)=>{e[$c("0x68")]&&(null==o?(this[$c("0x23")](r.head),this._handleSuggestionControllerDelayed(e,!1)):(this[$c("0x23")](o[$c("0x2")]),null==r&&this._handleSuggestionControllerDelayed(e,!0)))})),null!==e[$c("0x40")]?this[$c("0x23")](e[$c("0x2")]):this[$c("0x27")](e,!1)})),this[$c("0x1e")](e,$c("0x3f"),((t,e,n)=>{this[$c("0x45")](e,$c("0x34")),this[$c("0x55")].delete(e),this[$c("0x59")][$c("0x0")](e)&&this[$c("0x1a")](e),n&&this[$c("0x23")](n[$c("0x2")])})),this[$c("0x1e")](e,$c("0xc"),((t,e)=>{this[$c("0x23")](e)})),this[$c("0x1e")](n,"change:activeAnnotations",(()=>{this[$c("0x37")]()})),this[$c("0x1e")](r,$c("0x51"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[$c("0x25")](n))return;const r=e[$c("0x5b")](n);this[$c("0x59")].get(r).view[$c("0x2a")]()}),{priority:$c("0x1b")})}[$c("0x37")](){const t=this[$c("0x12")][$c("0x46")][$c("0x50")]("Annotations"),e=this.editor.plugins.get($c("0x3b")),n=Array[$c("0x18")](t[$c("0x1d")],(t=>t[$c("0x5f")]))[$c("0xa")]((t=>this[$c("0x5a")][$c("0x0")](t))),o=[];for(const t of n){const e=this._viewToController.get(t)[$c("0x3e")][$c("0x61")]();o[$c("0x4e")](...e[$c("0x16")](((t,e)=>[...t,...e[$c("0x36")]()]),[]))}e.activeMarkers=o}[$c("0x17")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[$c("0x12")][$c("0x53")][$c("0x50")]("trackChanges"),i=Qo(t,"Track changes");n[$c("0x4b")][$c("0x31")]({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[$c("0x4b")][$c("0x2f")]("isOn").to(o,$c("0x52")),n.buttonView.on($c("0xd"),(()=>{o[$c("0xd")](),this.editor[$c("0x58")][$c("0x48")].focus()}));const s=new e.Collection,x=[{type:$c("0x63"),model:{withText:!0,label:i,commandName:$c("0x38")}},{type:$c("0x57")},{type:$c("0x47"),model:{withText:!0,label:Qo(t,"Accept all suggestions"),commandName:$c("0x64")}},{type:"button",model:{withText:!0,label:Qo(t,"Accept all selected suggestions"),commandName:"acceptSelectedSuggestions"}},{type:$c("0x47"),model:{withText:!0,label:Qo(t,$c("0x24")),commandName:"discardAllSuggestions"}},{type:"button",model:{withText:!0,label:Qo(t,"Discard all selected suggestions"),commandName:$c("0x54")}}];for(const t of x){let e={type:$c("0x57")};if(t[$c("0x3e")]){const n=new r.Model(t.model),o=this[$c("0x12")][$c("0x53")][$c("0x50")](n[$c("0x2e")]);n.bind($c("0x35"),$c("0x1c")).to(o,$c("0x52"),$c("0x1c")),e={type:t.type,model:n}}s[$c("0x8")](e)}(0,r.addListToDropdown)(n,s);const a=x[$c("0xa")]((t=>null!=t.model))[$c("0x5e")]((t=>this.editor[$c("0x53")].get(t[$c("0x3e")].commandName))),c=n[$c("0x4b")];return c[$c("0x1")][$c("0x2d")]($c("0x1c")),c[$c("0x1f")].unbind("isEnabled"),c[$c("0x1")][$c("0x2f")]($c("0x1c")).to(o,"isEnabled"),c[$c("0x1f")][$c("0x2f")]($c("0x1c"))[$c("0x33")](a,$c("0x1c"),((...t)=>t[$c("0x3")]((t=>t)))),n.on($c("0xd"),(t=>{this.editor[$c("0xd")](t.source[$c("0x2e")]),this.editor[$c("0x58")].view[$c("0x2a")]()})),n}_initializeController(t){const e=this.editor,n=e[$c("0x5c")],o=e[$c("0x46")][$c("0x50")]("Annotations"),r=e[$c("0x46")][$c("0x50")]($c("0x30")),s=e[$c("0x46")].get("EditorAnnotations"),x=e[$c("0x46")][$c("0x50")](i.Users).me,a=n[$c("0x50")]($c("0x38"))[$c("0xb")],{CommentsListView:c,CommentThreadInputView:l}=e[$c("0x46")][$c("0x50")]($c("0x22"));let u,d;this[$c("0x3a")][$c("0x0")](t.id)?(d=this._annotationViews[$c("0x50")](t.id),u=d[$c("0x11")]):(u=new a(e[$c("0x60")],t,x,{disableComments:this[$c("0x19")],editorConfig:n.get($c("0x7")),maxCommentsWhenCollapsed:n[$c("0x50")]($c("0x21")),maxThreadTotalWeight:n.get("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[$c("0x50")]($c("0x5d")),formatDateTime:(0,i.getDateTimeFormatter)(n.get($c("0x60"))),CommentView:n.get($c("0x49")).CommentView,CommentsListView:c,CommentThreadInputView:l}),u.acceptButton.on($c("0xd"),(()=>{e.editing.view[$c("0x2a")]()})),u[$c("0x20")].on($c("0xd"),(()=>{e[$c("0x58")][$c("0x48")][$c("0x2a")]()})),d=o[$c("0x62")](this.editor[$c("0x60")],u),d.bind($c("0x39")).to(u,"isDirty"),d[$c("0x2f")]($c("0x32")).to(u),d.bind("type").to(u,"type",(t=>$c("0x6")+t)),this._annotationViews.set(t.id,d));const g=r[$c("0x43")](t.commentThread,u),f=new wc(e,t,u,g),m=t[$c("0x61")]()[$c("0xa")]((t=>t.isInContent));u[$c("0x4c")]=e[$c("0x46")].get($c("0x3b"))[$c("0x4")][$c("0x4a")](m),this[$c("0x59")][$c("0x31")](t,f),this[$c("0x5a")][$c("0x31")](u,f);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t[$c("0x61")]()[$c("0xa")]((t=>t[$c("0x68")]));for(const t of o)n.push(...t[$c("0xe")]());return(0,i.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>$c("0x6")+f[$c("0x48")][$c("0x3d")]});r[$c("0x2c")](u,h),o[$c("0x8")](h),s[$c("0x4f")](h)}[$c("0x1a")](t){const e=this[$c("0x12")][$c("0x46")][$c("0x50")]($c("0x30")),n=this[$c("0x12")][$c("0x46")][$c("0x50")]($c("0x9")),o=this._suggestionToController[$c("0x50")](t),r=o[$c("0x48")],i=n.getByInnerView(r);e[$c("0x66")](r),i&&n.remove(i),this[$c("0x59")][$c("0x2b")](t),this[$c("0x5a")].delete(r),o[$c("0x14")]()}_updateController(t){if(!t[$c("0x68")]||!this[$c("0x59")][$c("0x0")](t))return;const e=this[$c("0x12")][$c("0x46")][$c("0x50")]("TrackChangesEditing"),n=this[$c("0x59")][$c("0x50")](t),o=t[$c("0x61")]();n.view[$c("0x4c")]=e._descriptionFactory[$c("0x4a")](o)}[$c("0x14")](){for(const t of this[$c("0x59")].keys())this[$c("0x1a")](t);for(const t of this[$c("0x3a")][$c("0x10")]())t[$c("0x11")][$c("0x14")]();super[$c("0x14")]()}}var Yc,Jc,Qc=["getSuggestions","addSuggestion","TrackChanges","get","requires","plugins","Comments","getSuggestion","editor","pluginName","adapter"];Yc=Qc,Jc=294,function(t){for(;--t;)Yc.push(Yc.shift())}(++Jc);var tl=function(t,e){return Qc[t-=0]};class el extends t.Plugin{static get[tl("0x7")](){return[hc,Zc,tl("0x9")]}static get[tl("0x1")](){return tl("0x5")}set[tl("0x2")](t){this[tl("0x0")][tl("0x8")][tl("0x6")](hc)[tl("0x2")]=t}get[tl("0x2")](){return this[tl("0x0")][tl("0x8")].get(hc)[tl("0x2")]}[tl("0x4")](t){return this.editor[tl("0x8")][tl("0x6")](hc).addSuggestionData(t)}[tl("0x3")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[tl("0x0")].plugins[tl("0x6")](hc)[tl("0x3")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[tl("0x0")][tl("0x8")][tl("0x6")](hc)[tl("0xa")](t)}}const nl=["rootsAttributes","addSuggestionData","result","name","create","data","createDocumentFragment","editor","requires","pluginName","createElement","editorCreator","TrackChangesEditing","trackChangesData.editorCreator","getSuggestions","getRootNames","init","_adapter","useAnonymousUser","getDataWithDiscardedSuggestions","addUser","track-changes-data-invalid-editor-creator","end","Pagination","acceptAllSuggestions","document","getRootsAttributes","push","config","getUser","get","trackChangesData","plugins","function","Users","execute","constructor","appendChild","model","destroy","define"];var ol,rl;ol=nl,rl=120,function(t){for(;--t;)ol.push(ol.shift())}(++rl);const il=function(t,e){return nl[t-=0]},sl=[il("0x1a")];class xl extends t.Plugin{static get[il("0xb")](){return[hc]}static get pluginName(){return"TrackChangesData"}[il("0x13")](){const t=this.editor;if(t.config[il("0x2")](il("0x10"),(e=>{const n=t[il("0x0")].document[il("0x12")]().reduce(((t,e)=>(t[e]="",t)),{});return t[il("0x27")][il("0x7")](n,e)})),il("0x24")!=typeof t[il("0x1f")][il("0x21")](il("0x22")).editorCreator)throw new e.CKEditorError(il("0x18"))}getDataWithAcceptedSuggestions(t){return ll(this.editor,!0,t)}[il("0x16")](t){return ll(this.editor,!1,t)}}class al extends t.Plugin{static get[il("0xc")](){return"TrackChangesDataGetter"}constructor(t){super(t),this[il("0x5")]=il("0x19")}[il("0x13")](){this[il("0xa")][il("0x23")].get("CommentsRepository")._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[il("0xa")].plugins[il("0x21")](il("0xf"))[il("0x14")]=null}}function cl(t){return void 0!==t[il("0x1d")]}async function ll(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,sl);o[il("0x23")][il("0x1e")](hc,al),o[il("0x3")]=cl(t)?t[il("0x1d")]():void 0;const r=document[il("0x9")](),s=t[il("0x1f")][il("0x21")]("trackChangesData")[il("0xe")],x=await s(o,(()=>function(t){const e=document[il("0xd")]("div");return t[il("0x28")](e),e}(r)));!function(t,e){const n=t[il("0x0")][il("0x1c")].getRootNames().reduce(((e,n)=>(e[n]=t[il("0x8")][il("0x21")]({rootName:n}),e)),{}),o=t[il("0x23")].get(il("0x25")).users.map((t=>({id:t.id,name:t[il("0x6")]}))),r=t[il("0x23")][il("0x21")](il("0xf"))[il("0x11")]({skipNotAttached:!0,toJSON:!0}),i=e[il("0x23")][il("0x21")]("Users"),s=e[il("0x23")][il("0x21")](il("0xf"));for(const t of o)i[il("0x20")](t.id)||i[il("0x17")](t);i.me||i[il("0x15")]();for(const t of r)s[il("0x4")](t);e.data.set(n)}(t,x),x[il("0x26")](e?il("0x1b"):"discardAllSuggestions");const a=cl(x)?x.getFullData(n):x[il("0x8")][il("0x21")](n);return await x[il("0x1")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();