@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240131.0 → 0.0.0-nightly-20240202.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 (69) hide show
  1. package/build/track-changes.js +1 -1
  2. package/build/translations/ro.js +1 -1
  3. package/lang/translations/ro.po +1 -1
  4. package/package.json +3 -3
  5. package/src/commands/acceptsuggestioncommand.js +1 -1
  6. package/src/commands/discardsuggestioncommand.js +1 -1
  7. package/src/commands/executeonallsuggestionscommand.js +1 -1
  8. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  9. package/src/commands/trackchangescommand.js +1 -1
  10. package/src/integrations/aiassistant.js +1 -1
  11. package/src/integrations/alignment.js +1 -1
  12. package/src/integrations/basicstyles.js +1 -1
  13. package/src/integrations/blockquote.js +1 -1
  14. package/src/integrations/casechange.js +1 -1
  15. package/src/integrations/ckbox.js +1 -1
  16. package/src/integrations/codeblock.js +1 -1
  17. package/src/integrations/comments.js +1 -1
  18. package/src/integrations/deletecommand.js +1 -1
  19. package/src/integrations/entercommand.js +1 -1
  20. package/src/integrations/findandreplace.js +1 -1
  21. package/src/integrations/font.js +1 -1
  22. package/src/integrations/formatpainter.js +1 -1
  23. package/src/integrations/heading.js +1 -1
  24. package/src/integrations/highlight.js +1 -1
  25. package/src/integrations/horizontalline.js +1 -1
  26. package/src/integrations/htmlembed.js +1 -1
  27. package/src/integrations/image.js +1 -1
  28. package/src/integrations/imagereplace.js +1 -1
  29. package/src/integrations/imagestyle.js +1 -1
  30. package/src/integrations/importword.js +1 -1
  31. package/src/integrations/indent.js +1 -1
  32. package/src/integrations/inputcommand.js +1 -1
  33. package/src/integrations/legacylist.js +1 -1
  34. package/src/integrations/legacylistproperties.js +1 -1
  35. package/src/integrations/link.js +1 -1
  36. package/src/integrations/list.js +1 -1
  37. package/src/integrations/listproperties.js +1 -1
  38. package/src/integrations/mediaembed.js +1 -1
  39. package/src/integrations/mention.js +1 -1
  40. package/src/integrations/pagebreak.js +1 -1
  41. package/src/integrations/paragraph.js +1 -1
  42. package/src/integrations/removeformat.js +1 -1
  43. package/src/integrations/restrictededitingmode.js +1 -1
  44. package/src/integrations/shiftentercommand.js +1 -1
  45. package/src/integrations/standardeditingmode.js +1 -1
  46. package/src/integrations/style.js +1 -1
  47. package/src/integrations/table.js +1 -1
  48. package/src/integrations/tablecaption.js +1 -1
  49. package/src/integrations/tableclipboard.js +1 -1
  50. package/src/integrations/tablecolumnresize.js +1 -1
  51. package/src/integrations/tableheadings.js +1 -1
  52. package/src/integrations/tablemergesplit.js +1 -1
  53. package/src/integrations/tableofcontents.js +1 -1
  54. package/src/integrations/tableproperties.js +1 -1
  55. package/src/integrations/template.js +1 -1
  56. package/src/integrations/title.js +1 -1
  57. package/src/integrations/undo.js +1 -1
  58. package/src/integrations/utils.js +1 -1
  59. package/src/suggestion.js +1 -1
  60. package/src/suggestiondescriptionfactory.js +1 -1
  61. package/src/trackchanges.js +1 -1
  62. package/src/trackchangesdata.js +1 -1
  63. package/src/trackchangesediting.js +1 -1
  64. package/src/trackchangesui.js +1 -1
  65. package/src/ui/suggestioncontroller.js +1 -1
  66. package/src/ui/view/basesuggestionthreadview.js +1 -1
  67. package/src/ui/view/suggestionthreadview.js +1 -1
  68. package/src/utils/common-translations.js +1 -1
  69. package/src/utils/utils.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.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:()=>Kc,TrackChanges:()=>cl,TrackChangesData:()=>hl,TrackChangesEditing:()=>Ac});var t=n(704),e=n(209),i=n(273),o=n(417),s=n(492),x=n(995);const a=["_enabledCommands","refresh","forceDisabled","_isEnabledBasedOnSelection","value","clearForceDisabled","affectsData","_disableUnsupportedCommands","editor","commands","has","isEnabled","TrackChangesCommand","_enableCommands"];var c,l;c=a,l=485,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("0x5")]=e,this[u("0x9")]=!1,this[u("0x6")](),this[u("0x8")]=!1}[u("0x6")](){this[u("0x2")]=!0}execute(){this[u("0x9")]=!this.value,this[u("0x9")]?this[u("0xc")]():this[u("0x4")]()}_disableUnsupportedCommands(){for(const t of this[u("0xd")][u("0x0")][u("0x0")]())t[u("0xb")]&&!this[u("0x5")][u("0x1")](t)&&t[u("0x7")](u("0x3"))}[u("0x4")](){for(const t of this.editor.commands[u("0x0")]())t.affectsData&&!this[u("0x5")][u("0x1")](t)&&t[u("0xa")]("TrackChangesCommand")}}const g=["_suggestions","get","editor","getRanges","track-changes-accept-suggestion-not-found","TrackChangesEditing","model","plugins","_isEnabledBasedOnSelection","acceptSuggestion","refresh","isEnabled","canEditAt"];var f,h;f=g,h=218,function(t){for(;--t;)f.push(f.shift())}(++h);const m=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[m("0x3")]=e,this[m("0x0")](),this[m("0xb")]=!1}refresh(){this[m("0x1")]=!0}execute(t){const n=this._suggestions[m("0x4")](t);if(!n)throw new e.CKEditorError(m("0x7"),this);const r=n[m("0x6")]();this[m("0x5")][m("0x9")][m("0x2")](r)&&this[m("0x5")][m("0xa")].get(m("0x8"))[m("0xc")](n)}}const p=["execute","canEditAt","discardSuggestion","track-changes-discard-suggestion-not-found","model","getRanges","TrackChangesEditing","editor","_suggestions","_isEnabledBasedOnSelection","get","refresh","isEnabled"];var E,_;E=p,_=141,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.refresh(),this[T("0xb")]=!1}[T("0x0")](){this[T("0x1")]=!0}[T("0x2")](t){const n=this[T("0xa")][T("0xc")](t);if(!n)throw new e.CKEditorError(T("0x5"),this);const r=n[T("0x7")]();this[T("0x9")][T("0x6")][T("0x3")](r)&&this.editor.plugins.get(T("0x8"))[T("0x4")](n)}}const C=["createPositionBefore","color","next","type","deletion","sort","end","execute","from","map","isTouching","isArray","createRange","start","replace","isMultiRange","add","content","length","isCollapsed","splice","push","isInContent"," [color "];var A,k;A=C,k=244,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0x1")](((t,e)=>I("0x0")==t[I("0x17")]&&I("0x0")!=e.type?-1:"deletion"!=t.type&&"deletion"==e.type?1:0))}function v(t,e){let n,r=0;const i=[],o=e.schema;for(;r<t[I("0xe")];){const s=t[r],x=t[r+1];n||(n=e[I("0x14")](s)),S(e,s,x)||(i[I("0x11")](e[I("0x8")](n,o.isObject(s)?e.createPositionAfter(s):e.createPositionAt(s,I("0x2")))),n=null),r++}return i}function S(t,e,n){if(!n)return!1;const r=t.createPositionAfter(e),i=t[I("0x14")](n);return r.isTouching(i)}function N(t,e,n){for(;n.length;){const r=n[I("0x10")](0,100);t.change((()=>{for(const t of r)t[I("0x12")]&&e[I("0x3")](t.id)}))}}const L=["canEditAt","values","execute","_suggestions","_command","from","isEnabled","model","editor","some","getRanges","_isEnabledBasedOnSelection","refresh"];var M,w;M=L,w=257,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("0x6")]=n,this[O("0x2")](),this[O("0x1")]=!1}[O("0x2")](){const t=Array[O("0x8")](this[O("0x6")].values())[O("0xc")]((t=>t.isInContent));this[O("0x9")]=this[O("0x7")][O("0x9")]&&t}[O("0x5")](){const t=R(Array.from(this._suggestions[O("0x4")]()));for(const e of t){const t=e[O("0x0")]();if(!this[O("0xb")][O("0xa")][O("0x3")](t))return}N(this.editor.model,this[O("0x7")],t)}}const D=["selection","_command","execute","document","refresh","_selectedSuggestions","getRanges","isEnabled","values","editor","canEditAt","_isEnabledBasedOnSelection","_suggestions","model"];var P,B;P=D,B=123,function(t){for(;--t;)P.push(P.shift())}(++B);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x4")]=e,this._suggestions=n,this[U("0x8")]=new Set,this[U("0x7")](),this[U("0x0")]=!1}refresh(){const t=this[U("0xc")][U("0x2")][U("0x6")][U("0x3")],e=Array.from(this[U("0x1")][U("0xb")]());this[U("0x8")]=function(t,e){const n=Array[I("0x4")](t.getRanges()),r=new Set;for(const i of e)if(i[I("0x12")])for(const e of n)for(const n of i.getRanges())(e.isIntersecting(n)||t[I("0xf")]&&!i[I("0xb")]&&i[I("0x16")]&&n.end[I("0x6")](e[I("0x9")]))&&r[I("0xc")](i);return r}(t,e),this[U("0xa")]=this[U("0x4")][U("0xa")]&&!!this[U("0x8")].size}[U("0x5")](){const t=R(Array.from(this[U("0x8")]));for(const e of t){const t=e[U("0x9")]();if(!this[U("0xc")].model[U("0xd")](t))return}N(this[U("0xc")][U("0x2")],this[U("0x4")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const $=function(t,e){var n=this.__data__,r=H(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function X(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])}}X.prototype.clear=G,X.prototype.delete=W,X.prototype.get=K,X.prototype.has=q,X.prototype.set=$;const Z=X;const Q=function(){this.__data__=new Z,this.size=0};const Y=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const J=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 it=rt.Symbol;var ot=Object.prototype,st=ot.hasOwnProperty,xt=ot.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var r=!0}catch(t){}var i=xt.call(t);return r&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ht=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 mt=rt["__core-js_shared__"];var bt,pt=(bt=/[^.]+$/.exec(mt&&mt.keys&&mt.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 vt=function(t){return!(!ft(t)||Et(t))&&(ht(t)?Rt:yt).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=St(t,e);return vt(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 Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Pt.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=Bt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const $t=function(t,e){var n=zt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Xt(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])}}Xt.prototype.clear=Vt,Xt.prototype.delete=Wt,Xt.prototype.get=Kt,Xt.prototype.has=qt,Xt.prototype.set=$t;const Zt=Xt;const Qt=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 Yt(t){var e=this.__data__=new Z(t);this.size=e.size}Yt.prototype.clear=Q,Yt.prototype.delete=Y,Yt.prototype.get=J,Yt.prototype.has=tt,Yt.prototype.set=Qt;const Jt=Yt;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 ie=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 oe=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var x=e[o],a=r?r(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,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 he="object"==typeof exports&&exports&&!exports.nodeType&&exports,me=he&&"object"==typeof module&&module&&!module.nodeType&&module,be=me&&me.exports===he?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 ve=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=ve&&ve.isTypedArray;const Ne=Se?Ae(Se):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),r=!n&&de(t),i=!n&&!r&&pe(t),o=!n&&!r&&!i&&Ne(t),s=n||r||i||o,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Pe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!ht(t)};const je=function(t){return Ue(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&oe(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&&oe(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,$e=qe&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=$e&&$e.exports===qe?rt.Buffer:void 0,Ze=Xe?Xe.allocUnsafe:void 0;const Qe=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 Ye=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Je=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const rn=nn?function(t){return null==t?[]:(t=Object(t),Je(nn(t),(function(e){return en.call(t,e)})))}:tn;const on=function(t,e){return oe(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return oe(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 hn=Nt(rt,"Set");const mn=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(hn),In=Tt(mn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=bn||fn&&Rn(fn.resolve())!=pn||hn&&Rn(new hn)!=En||mn&&Rn(new mn)!=_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 vn=Rn;var Sn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.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=it?it.prototype:void 0,Pn=Dn?Dn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.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 Bn(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]"==vn(t)};var Wn=ve&&ve.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==vn(t)};var $n=ve&&ve.isSet;const Xn=$n?Ae($n):qn;var Zn="[object Arguments]",Qn="[object Function]",Yn="[object Object]",Jn={};Jn[Zn]=Jn["[object Array]"]=Jn["[object ArrayBuffer]"]=Jn["[object DataView]"]=Jn["[object Boolean]"]=Jn["[object Date]"]=Jn["[object Float32Array]"]=Jn["[object Float64Array]"]=Jn["[object Int8Array]"]=Jn["[object Int16Array]"]=Jn["[object Int32Array]"]=Jn["[object Map]"]=Jn["[object Number]"]=Jn[Yn]=Jn["[object RegExp]"]=Jn["[object Set]"]=Jn["[object String]"]=Jn["[object Symbol]"]=Jn["[object Uint8Array]"]=Jn["[object Uint8ClampedArray]"]=Jn["[object Uint16Array]"]=Jn["[object Uint32Array]"]=!0,Jn["[object Error]"]=Jn[Qn]=Jn["[object WeakMap]"]=!1;const tr=function t(e,n,r,i,o,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=o?r(e,i,o,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 Ye(e,x)}else{var d=vn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(pe(e))return Qe(e,a);if(d==Yn||d==Zn||g&&!o){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Jn[d])return o?e:{};x=jn(e,d,a)}}s||(s=new Jt);var f=s.get(e);if(f)return f;s.set(e,x),Xn(e)?e.forEach((function(i){x.add(t(i,n,r,i,e,s))})):Kn(e)&&e.forEach((function(i,o){x.set(o,t(i,n,r,o,e,s))}));var h=u?void 0:(l?c?dn:un:c?We:je)(e);return te(h||e,(function(i,o){h&&(i=e[o=i]),ie(x,o,t(i,n,r,o,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)\]/,ir=/^\w*$/;const or=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(ir.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,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,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,i){e.push(r?i.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i};var dr=it?it.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 hr=function(t){return null==t?"":fr(t)};const mr=function(t,e){return ge(t)?t:or(t,e)?[t]:lr(hr(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 i=-1,o=(e=mr(e,t)).length,s=o-1,x=t;null!=x&&++i<o;){var a=br(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(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,i,o){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Cr:void 0;for(o.set(t,e),o.set(e,t);++u<x;){var f=t[u],h=e[u];if(r)var m=s?r(h,f,u,e,t,o):r(f,h,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!Ar(e,(function(t,e){if(!kr(g,e)&&(f===t||i(f,t,n,r,o)))return g.push(e)}))){d=!1;break}}else if(f!==h&&!i(f,h,n,r,o)){d=!1;break}}return o.delete(t),o.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 vr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Sr=it?it.prototype:void 0,Nr=Sr?Sr.valueOf:void 0;const Lr=function(t,e,n,r,i,o,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||!o(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=vr),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,i,o,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,i,o){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=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var g=!0;o.set(t,e),o.set(e,t);for(var f=s;++c<a;){var h=t[l=x[c]],m=e[l];if(r)var b=s?r(m,h,l,e,t,o):r(h,m,l,t,e,o);if(!(void 0===b?h===m||i(h,m,n,r,o):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 o.delete(t),o.delete(e),g};var Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Pr=Object.prototype.hasOwnProperty;const Br=function(t,e,n,r,i,o){var s=ge(t),x=ge(e),a=s?Fr:vn(t),c=x?Fr:vn(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 o||(o=new Jt),s||Ne(t)?Ir(t,e,n,r,i,o):Lr(t,e,a,n,r,i,o);if(!(1&n)){var g=l&&Pr.call(t,"__wrapped__"),f=u&&Pr.call(e,"__wrapped__");if(g||f){var h=g?t.value():t,m=f?e.value():e;return o||(o=new Jt),i(h,m,n,r,o)}}return!!d&&(o||(o=new Jt),wr(t,e,n,r,i,o))};const Ur=function t(e,n,r,i,o){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Br(e,n,r,i,t,o))};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=mr(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,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o};const zr=function(t,e){return e.length<2?t:Vr(t,Hr(e,0,-1))};const Wr=function(t,e){return e=mr(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","removeMarker","attributes","getMultiRangeId","type","onAttributesChange","length","set","end","isInContent","onAccept","getRange","isIntersectingWithRange","subType","accept","_onDiscard","data","isIntersecting","suggestion:","change","getAllAdjacentSuggestions","_onAttributesChange","getItems","authoredAt","_markerNames","commentThread","onDiscard","createdAt","head","addMarkerName","substr","creator","_onAccept","hasComments","clear","_saved","delete","author","markers","push","decorate","removeMarkers","previous","nodeAfter","@external","getMarkers","getRanges","removeAttribute","discard","start","getContainedElement","map","getFirstMarker","getMarkerNames","addRange","next","isMultiRange","_isDataLoaded","_model","filter"];var $r,Xr;$r=qr,Xr=150,function(t){for(;--t;)$r.push($r.shift())}(++Xr);const Zr=function(t,e){return qr[t-=0]};class Qr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0x1b")]=!1,this.id=e.id,this[Zr("0x22")]=e[Zr("0x22")],this.subType=e[Zr("0x2b")]||null,this[Zr("0x7")]=e.author,this[Zr("0x1")]=e.creator||e.author,this.isExternal=Boolean(e.attributes&&e[Zr("0x20")][Zr("0xe")]),this[Zr("0x2e")]=null,this._model=t,this._onAccept=e[Zr("0x28")],this[Zr("0x2d")]=e[Zr("0x38")],this[Zr("0x33")]=e[Zr("0x23")],this[Zr("0x36")]=new Set,this[Zr("0x39")]=null,this[Zr("0x25")](Zr("0x35"),null),this.set(Zr("0x20"),e.attributes||{}),this[Zr("0x25")](Zr("0xc"),null),this[Zr("0x25")](Zr("0x19"),null),this.set(Zr("0x37"),null),this[Zr("0x25")](Zr("0x5"),!1),this[Zr("0xa")](Zr("0x2c")),this[Zr("0xa")](Zr("0x12"))}get[Zr("0x3a")](){let t=this;for(;t[Zr("0xc")];)t=t.previous;return t}get[Zr("0x3")](){return!!this.commentThread&&this.commentThread[Zr("0x24")]>0}get[Zr("0x1a")](){return 0!=this[Zr("0x36")].size&&6==Array.from(this[Zr("0x36")])[0].split(":")[Zr("0x24")]}get[Zr("0x27")](){return null!==this[Zr("0x16")]()}[Zr("0x3b")](t){this[Zr("0x36")].add(t)}[Zr("0x17")](){return Array.from(this[Zr("0x36")])}getMarkers(){return this[Zr("0x17")]()[Zr("0x15")]((t=>this[Zr("0x1c")][Zr("0x8")].get(t)))[Zr("0x1d")]((t=>t))}getFirstMarker(){return this[Zr("0xf")]()[0]||null}removeMarkers(){this[Zr("0x1c")].change((t=>{for(const e of this.getMarkers())t[Zr("0x1f")](e)})),this._markerNames[Zr("0x4")]()}[Zr("0x1f")](t){this._model[Zr("0x31")]((e=>{e[Zr("0x1f")](t)})),this._markerNames[Zr("0x6")](t)}[Zr("0x18")](t){const e=Zr("0x30")+this[Zr("0x22")]+":"+this[Zr("0x2b")]+":"+this.id+":"+this.creator.id+":"+Qr[Zr("0x21")]();this[Zr("0x3b")](e),this[Zr("0x1c")][Zr("0x31")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x2a")](t){for(const e of this[Zr("0x10")]())if(e[Zr("0x2f")](t))return!0;return!1}[Zr("0x10")](){return this.getMarkers()[Zr("0x15")]((t=>t[Zr("0x29")]()))}[Zr("0x34")](){return this.getRanges()[Zr("0x1e")](((t,e)=>[...t,...e[Zr("0x34")]()]),[])}getFirstRange(){var t;return(null===(t=this[Zr("0x16")]())||void 0===t?void 0:t.getRange())||null}[Zr("0x14")](){const t=this[Zr("0x10")]();if(1!=t[Zr("0x24")])return null;const e=t[0],n=e[Zr("0x13")][Zr("0xd")],r=e[Zr("0x26")].nodeBefore;return n instanceof s.Element?n!=r?null:n:null}[Zr("0x2c")](){this[Zr("0x2")](this[Zr("0x10")](),this[Zr("0x2e")],this[Zr("0x20")]),this.removeMarkers()}[Zr("0x12")](){this[Zr("0x2d")](this[Zr("0x10")](),this[Zr("0x2e")],this.attributes),this[Zr("0xb")]()}[Zr("0x32")](){const t=[];let e=this[Zr("0x3a")];for(;e;)t[Zr("0x9")](e),e=e[Zr("0x19")];return t}setAttribute(t,e){const n=er(this.attributes);Er(n,t,e),jr(n,this[Zr("0x20")])||(this[Zr("0x20")]=n,this[Zr("0x33")](n))}[Zr("0x11")](t){const e=er(this[Zr("0x20")]);Kr(e,t),jr(e,this[Zr("0x20")])||(this[Zr("0x20")]=e,this._onAttributesChange(this[Zr("0x20")]))}toJSON(){return{id:this.id,type:this[Zr("0x2b")]?this[Zr("0x22")]+":"+this[Zr("0x2b")]:this[Zr("0x22")],authorId:this.creator.id,createdAt:this.createdAt,hasComments:this[Zr("0x3")],data:this[Zr("0x2e")],attributes:this[Zr("0x20")]}}static[Zr("0x21")](){return(0,e.uid)()[Zr("0x0")](1,5)}}function Yr(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 Jr=["deletion","label","registerDescriptionCallback","set","addFormat","newValue","element","key","has","$textProxy","*Remove format:* %0","nextSibling","indexOf","registerElementLabel","remove","quantity","format","end","previousSibling","addEmptyContainer","get","data","add","removeContainer","isInContent","_customCallbacks","Object","type","Container","push","_schema","function","_attributeLabels","checkChild","insertion","$1 $2","ELEMENT_SPACE","elementEnd","_handleRenameSuggestionDescription","normal","addObject","*Remove:* %0","map","*Merge:* %0","$text","_itemLabels","_handleCustomCallbackDescription","nodeAfter","_resolveDescriptionItems","_handleInsertRemoveSuggestionDescription","match","name","join","registerAttributeLabel","skip","replace","item","*Split:* %0","removeFormat","start","removeEmptyContainer","pop","*Change to:* %0","_handleAttributeSuggestionDescription","getItemLabel","_itemLabelsCallbacks","getFirstRange","isEqual","isObject","*Insert:* %0","removeObject","length","isEmpty","subType","_locale","text","EmptyContainer","REPLACE_TEXT"];var ti,ei;ti=Jr,ei=345,function(t){for(;--t;)ti.push(ti.shift())}(++ei);const ni=function(t,e){return Jr[t-=0]};class ri{constructor(t,e){this[ni("0x46")]=[],this[ni("0xc")]=new Map,this[ni("0x20")]=[],this._attributeLabels=new Map,this[ni("0x4b")]=t,this[ni("0x29")]=e}getDescriptions(t){const e=[],n=new Set,r=new Set;for(let i=0;i<t[ni("0x26")];i++){const o=t[i];if(!o[ni("0x45")])continue;const s=this[ni("0xd")](o);if(s){if(null!=o[ni("0x28")]){if(n[ni("0x35")](o[ni("0x28")]))continue;n[ni("0x43")](o[ni("0x28")])}e[ni("0x4a")](s)}else if("attribute"!=o[ni("0x48")])ni("0x1")!=o[ni("0x48")]&&"deletion"!=o[ni("0x48")]||this[ni("0x10")](e,o,t[i+1]);else{const t=o[ni("0x42")][ni("0x34")];if(r[ni("0x35")](t))continue;r[ni("0x43")](o[ni("0x42")][ni("0x34")]),t==Cc?this[ni("0x5")](e,o):this[ni("0x1e")](e,o)}}return this._resolveDescriptionItems(e)}[ni("0x2f")](t){this[ni("0x46")][ni("0x4a")](t)}[ni("0x3a")](t,n,r=e.priorities[ni("0x6")]){ni("0x4c")==typeof t?(0,e.insertToPriorityArray)(this[ni("0x20")],{matchingCallback:t,label:n,priority:r}):this._itemLabels[ni("0x30")](t,n)}[ni("0x14")](t,e){this[ni("0x4d")].set(t,e)}getItemLabel(t,e=1){let n;for(const e of this[ni("0x20")])if(e.matchingCallback(t)){n=e[ni("0x2e")];break}return n||(n=this[ni("0xc")][ni("0x41")](t[ni("0x12")])),n?n(e):1!==e?e+" "+t[ni("0x12")]+"s":""+t.name}_addDescriptionItems(t,e){const n=e[ni("0x21")]().getWalker(),r=ni("0x1")==e[ni("0x48")]?ni("0x43"):ni("0x3b");for(const e of n){const i=e[ni("0x17")],o=t[t.length-1];if(i.is(ni("0x36")))o&&o[ni("0x48")][ni("0x39")]("Container")>-1&&t[ni("0x1c")](),o&&"text"==o[ni("0x48")]?o[r]+=i.data:t[ni("0x4a")]({type:ni("0x2a"),add:ni("0x43")==r?i[ni("0x42")]:"",remove:ni("0x3b")==r?i[ni("0x42")]:""});else if(this._schema[ni("0x23")](i)){const s=i;if(o&&o[ni("0x48")][ni("0x39")](ni("0x49"))>-1&&t[ni("0x1c")](),ni("0x4")==e[ni("0x48")])continue;o&&o[ni("0x48")]==r+"Object"&&o[ni("0x33")][ni("0x12")]==s[ni("0x12")]?o[ni("0x3c")]++:t[ni("0x4a")]({type:r+ni("0x47"),element:s,quantity:1}),n[ni("0x15")]((t=>!(ni("0x4")==t[ni("0x48")]&&t[ni("0x17")]==i)))}else if(this[ni("0x4b")][ni("0x0")](i,ni("0xb"))||i.is(ni("0x33"),"softBreak")){const n=i;if(ni("0x43")==r&&"elementStart"==e[ni("0x48")]||"remove"==r&&ni("0x4")==e[ni("0x48")])continue;if(o&&-1==o.type[ni("0x39")](ni("0x49"))){ni("0x2a")==o[ni("0x48")]&&(o[r]+="\n");continue}let s;if(s=ni("0x43")==r?n[ni("0x38")]&&!this._schema[ni("0x23")](n[ni("0x38")])?n[ni("0x38")]:null:n[ni("0x3f")]&&!this[ni("0x4b")].isObject(n[ni("0x3f")])?n[ni("0x3f")]:null,n[ni("0x27")]||s&&s.isEmpty){const e=s&&s[ni("0x27")]?s:n;o&&o[ni("0x48")]==r+ni("0x2b")&&o[ni("0x33")][ni("0x12")]==e[ni("0x12")]?o[ni("0x3c")]++:t[ni("0x4a")]({type:r+"EmptyContainer",element:e,quantity:1})}else t[ni("0x4a")]({type:r+ni("0x49"),element:n})}}}[ni("0xf")](t){const e=this._locale,n=[],r=[],i=[];for(const o of t)switch(o[ni("0x48")]){case ni("0x2a"):if(o.add=o[ni("0x43")].replace(/(\S)\u000A+(\S)/g,ni("0x2"))[ni("0x16")](/\u000A/g,""),o[ni("0x3b")]=o[ni("0x3b")][ni("0x16")](/(\S)\u000A+(\S)/g,ni("0x2"))[ni("0x16")](/\u000A/g,""),""!=o.add&&""!=o.remove){n[ni("0x4a")]({type:ni("0x16"),content:Yr(e,ni("0x2c"),['"'+o[ni("0x3b")]+'"','"'+o[ni("0x43")]+'"'])});continue}if(null!=o[ni("0x43")][ni("0x11")](/^ +$/)){n[ni("0x4a")]({type:"insertion",content:Yr(e,ni("0x24"),Yr(e,ni("0x3"),o.add[ni("0x26")]))});continue}if(null!=o[ni("0x3b")][ni("0x11")](/^ +$/)){n[ni("0x4a")]({type:ni("0x2d"),content:Yr(e,"*Remove:* %0",Yr(e,ni("0x3"),o[ni("0x3b")].length))});continue}if(""!=o[ni("0x43")]){n[ni("0x4a")]({type:ni("0x1"),content:Yr(e,ni("0x24"),'"'+o[ni("0x43")]+'"')});continue}n.push({type:ni("0x2d"),content:Yr(e,ni("0x8"),'"'+o[ni("0x3b")]+'"')});continue;case ni("0x40"):case ni("0x7"):n[ni("0x4a")]({type:"insertion",content:Yr(e,"*Insert:* %0",this[ni("0x1f")](o[ni("0x33")],o.quantity))});continue;case ni("0x1b"):case ni("0x25"):n[ni("0x4a")]({type:ni("0x2d"),content:Yr(e,"*Remove:* %0",this[ni("0x1f")](o.element,o[ni("0x3c")]))});continue;case"addContainer":n.push({type:ni("0x1"),content:Yr(e,ni("0x18"),this.getItemLabel(o[ni("0x33")],o[ni("0x3c")]))});continue;case ni("0x44"):n[ni("0x4a")]({type:ni("0x2d"),content:Yr(e,ni("0xa"),this[ni("0x1f")](o[ni("0x33")],o[ni("0x3c")]))});continue;case"addFormat":r[ni("0x4a")](o[ni("0x34")]);continue;case ni("0x19"):i[ni("0x4a")](o[ni("0x34")]);continue;default:n[ni("0x4a")](o)}if(r[ni("0x26")]){const t=r[ni("0x9")]((t=>this[ni("0x4d")][ni("0x35")](t)?this[ni("0x4d")][ni("0x41")](t):t))[ni("0x13")](", ");n[ni("0x4a")]({type:ni("0x3d"),content:Yr(this._locale,"*Set format:* %0",t)})}if(i[ni("0x26")]){const t=i[ni("0x9")]((t=>this[ni("0x4d")][ni("0x35")](t)?this[ni("0x4d")][ni("0x41")](t):t))[ni("0x13")](", ");n[ni("0x4a")]({type:ni("0x3d"),content:Yr(this._locale,ni("0x37"),t)})}return n}[ni("0xd")](t){for(const e of this[ni("0x46")]){const n=e(t);if(n&&"type"in n)return n}}_handleAttributeSuggestionDescription(t,e){const n=e[ni("0x42")],r=void 0===n[ni("0x32")]?ni("0x19"):ni("0x31");t[ni("0x4a")]({type:r,key:n[ni("0x34")]})}[ni("0x5")](t,e){t[ni("0x4a")]({type:ni("0x3d"),content:Yr(this._locale,ni("0x1d"),this[ni("0x1f")](e[ni("0x21")]().start[ni("0xe")],1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this._addDescriptionItems(t,e),n&&n[ni("0x21")]()&&!e[ni("0x21")]()[ni("0x3e")][ni("0x22")](n[ni("0x21")]()[ni("0x1a")])){const n=t[t[ni("0x26")]-1],r="insertion"==e.type?ni("0x43"):ni("0x3b");n&&ni("0x2a")==n[ni("0x48")]&&(n[r]+="\n")}}}const ii=["editor","plugins","afterInit","showAIAssistant","commands","get"];var oi,si;oi=ii,si=361,function(t){for(;--t;)oi.push(oi.shift())}(++si);const xi=function(t,e){return ii[t-=0]};class ai extends t.Plugin{[xi("0x1")](){const t=this[xi("0x5")],e=t[xi("0x0")][xi("0x4")]("TrackChangesEditing");t[xi("0x3")][xi("0x4")](xi("0x2"))&&e.enableCommand(xi("0x2"))}}const ci=["AlignmentEditing","alignment","justify","registerDescriptionCallback","format","registerAttributeLabel","get","right","FORMAT_ALIGN_TO_CENTER","_enableDefaultAttributesIntegration","formatBlock","commandName","_descriptionFactory","center","value","FORMAT_ALIGN_TO_RIGHT","has","left","_registerLegacyDescription","plugins","commandParams","FORMAT_JUSTIFY_TEXT","editor","FORMAT_ALIGN_TO_LEFT","locale","FORMAT_ALIGNMENT"];var li,ui;li=ci,ui=171,function(t){for(;--t;)li.push(li.shift())}(++ui);const di=function(t,e){return ci[t-=0]};class gi extends t.Plugin{afterInit(){const t=this[di("0x7")],e=t.locale;if(!t[di("0x4")][di("0x1")](di("0xb")))return;const n=t[di("0x4")][di("0x11")]("TrackChangesEditing");n[di("0x14")](di("0xc"),[],[di("0xc")]),n[di("0x17")][di("0x10")](di("0xc"),Yr(e,di("0xa"))),this[di("0x3")]()}[di("0x3")](){const t=this[di("0x7")],e=t[di("0x9")];t[di("0x4")][di("0x11")]("TrackChangesEditing")._descriptionFactory[di("0xe")]((t=>{if(di("0x15")!=t.type)return;const{data:n}=t;if(n&&di("0xc")==n[di("0x16")]){const t=n[di("0x5")][0][di("0x19")];return{type:di("0xf"),content:Yr(e,"*Format:* %0",function(t){switch(t){case di("0x2"):return Yr(e,di("0x8"));case di("0x12"):return Yr(e,di("0x0"));case di("0x18"):return Yr(e,di("0x13"));case di("0xd"):return Yr(e,di("0x6"))}}(t))}}}))}}const fi=["italic","FORMAT_ITALIC","CodeEditing","SuperscriptEditing","_registerLegacyDescription","FORMAT_SUBSCRIPT","SubscriptEditing","FORMAT_CODE","bold","StrikethroughEditing","FORMAT_","superscript","plugins","TrackChangesEditing","registerDescriptionCallback","FORMAT_STRIKETHROUGH","FORMAT_UNDERLINE","format","toUpperCase","locale","ItalicEditing","commandName","type","subscript","code","get","strikethrough","underline","toLowerCase","afterInit","FORMAT_SUPERSCRIPT","editor","UnderlineEditing","slice","_descriptionFactory"];var hi,mi;hi=fi,mi=245,function(t){for(;--t;)hi.push(hi.shift())}(++mi);const bi=function(t,e){return fi[t-=0]},pi=["BoldEditing",bi("0x14"),bi("0x20"),bi("0x2"),bi("0x9"),bi("0x6"),bi("0x3")];class Ei extends t.Plugin{[bi("0x1d")](){const t=this[bi("0x1f")],e=t[bi("0xc")][bi("0x19")](bi("0xd")),n=t[bi("0x13")];for(const r of pi){if(!t[bi("0xc")].has(r))continue;const i=r[bi("0x21")](0,-7)[bi("0x1c")](),o=bi("0xa")+i[bi("0x12")]();e._enableDefaultAttributesIntegration(i,[i]),e[bi("0x22")].registerAttributeLabel(i,Yr(n,o))}this._registerLegacyDescription()}[bi("0x4")](){const t=this[bi("0x1f")],e=t[bi("0x13")],n=t[bi("0xc")].get(bi("0xd"));function r(t,r){n[bi("0x22")][bi("0xe")]((n=>{if("formatInline"!=n[bi("0x16")])return;const{data:i}=n;return i&&i[bi("0x15")]===t?i.commandParams[0].forceValue?{type:bi("0x11"),content:Yr(e,"*Format:* %0",r)}:{type:bi("0x11"),content:Yr(e,"*Remove format:* %0",r)}:void 0}))}r(bi("0x8"),Yr(e,"FORMAT_BOLD")),r(bi("0x0"),Yr(e,bi("0x1"))),r(bi("0x1b"),Yr(e,bi("0x10"))),r(bi("0x18"),Yr(e,bi("0x7"))),r(bi("0x1a"),Yr(e,bi("0xf"))),r(bi("0x17"),Yr(e,bi("0x5"))),r(bi("0xb"),Yr(e,bi("0x1e")))}}const _i=["format","commands","*Set format:* %0","editor","change","registerDescriptionCallback","from","commandParams","get","model","parent","value","plugins","schema","getSelectedBlocks","checkChild","BlockQuoteEditing","filter","forceValue","blockQuote","$root","has","locale","ELEMENT_BLOCK_QUOTE","enableCommand","afterInit","_descriptionFactory","selection","*Remove format:* %0"];var Ti,yi;Ti=_i,yi=482,function(t){for(;--t;)Ti.push(Ti.shift())}(++yi);const Ci=function(t,e){return _i[t-=0]};class Ai extends t.Plugin{[Ci("0x7")](){const t=this[Ci("0xe")],e=t[Ci("0x4")];if(!t[Ci("0x17")][Ci("0x3")](Ci("0x1b")))return;const n=t[Ci("0x17")][Ci("0x13")]("TrackChangesEditing"),r=this[Ci("0xe")][Ci("0xc")][Ci("0x13")]("blockQuote");n[Ci("0x6")](Ci("0x1"),((e,i={})=>{const o=this.editor.model.document[Ci("0x9")],s=i&&void 0!==i[Ci("0x0")]?i[Ci("0x0")]:!r[Ci("0x16")];let x=[];if(s){const e=Array[Ci("0x11")](o[Ci("0x19")]())[Ci("0x1c")]((t=>ki(t)||function(t,e){const n=e[Ci("0x1a")](t[Ci("0x15")],Ci("0x1")),r=e[Ci("0x1a")]([Ci("0x2"),"blockQuote"],t);return n&&r}(t,this[Ci("0xe")][Ci("0x14")][Ci("0x18")])));x=v(e,t[Ci("0x14")])}else{const e=Array[Ci("0x11")](o[Ci("0x19")]())[Ci("0x1c")]((t=>ki(t)));x=v(e,t[Ci("0x14")])}t[Ci("0x14")][Ci("0xf")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ci("0x1"),commandParams:[{forceValue:s}]})}))})),n[Ci("0x8")][Ci("0x10")]((t=>{const{data:n}=t;if(n&&Ci("0x1")==n.commandName){const t=Yr(e,Ci("0x5"));return n[Ci("0x12")][0].forceValue?{type:Ci("0xb"),content:Yr(e,Ci("0xd"),t)}:{type:Ci("0xb"),content:Yr(e,Ci("0xa"),t)}}}))}}function ki(t){return"blockQuote"==t.parent.name}const Ii=["plugins","has","get","changeCaseLower","changeCaseUpper","enableCommand","editor","CaseChange","changeCaseTitle","TrackChangesEditing","afterInit"];var Ri,vi;Ri=Ii,vi=150,function(t){for(;--t;)Ri.push(Ri.shift())}(++vi);const Si=function(t,e){return Ii[t-=0]};class Ni extends t.Plugin{[Si("0x3")](){const t=this[Si("0xa")];t[Si("0x4")][Si("0x5")](Si("0x0"))&&(t[Si("0x4")][Si("0x6")](Si("0x2"))[Si("0x9")](Si("0x8")),t[Si("0x4")][Si("0x6")](Si("0x2"))[Si("0x9")](Si("0x7")),t[Si("0x4")][Si("0x6")](Si("0x2")).enableCommand(Si("0x1")))}}const Li=["editor","get","afterInit","plugins","TrackChangesEditing","commands","enableCommand"];var Mi,wi;Mi=Li,wi=211,function(t){for(;--t;)Mi.push(Mi.shift())}(++wi);const Oi=function(t,e){return Li[t-=0]};class Fi extends t.Plugin{[Oi("0x1")](){const t=this[Oi("0x6")];t[Oi("0x4")].get("ckbox")&&t[Oi("0x2")][Oi("0x0")](Oi("0x3"))[Oi("0x5")]("ckbox")}}const Di=["selection","from","_descriptionFactory","registerDescriptionCallback","filter","name","enableCommand","commandName","*Remove format:* %0","value","toLowerCase","codeBlock","type","commands","getSelectedBlocks","label","languages","parent","TrackChangesEditing","model","forceValue","rootElement","ELEMENT_CODE_BLOCK","*Set format:* %0","blockName","language","plugins","get","schema","isLimit","commandParams","formatBlock","locale","has","registerElementLabel","format"];var Pi,Bi;Pi=Di,Bi=160,function(t){for(;--t;)Pi.push(Pi.shift())}(++Bi);const Ui=function(t,e){return Di[t-=0]};class ji extends t.Plugin{afterInit(){const t=this.editor;if(!t[Ui("0xa")][Ui("0x11")]("CodeBlock"))return;const e=t.plugins[Ui("0xb")](Ui("0x2")),n=t[Ui("0x10")],r=t.config.get(Ui("0x1f"))[Ui("0x0")],i=t[Ui("0x21")][Ui("0xb")]("codeBlock");e[Ui("0x1a")]("indentCodeBlock"),e[Ui("0x1a")]("outdentCodeBlock"),e[Ui("0x1a")](Ui("0x1f"),((n,o={})=>{const s=t[Ui("0x3")],x=t[Ui("0x3")].document[Ui("0x14")],a=o&&void 0!==o[Ui("0x4")]?o[Ui("0x4")]:!i[Ui("0x1d")];let c;o.language||(o[Ui("0x9")]=r[0][Ui("0x9")]),c=a?Array[Ui("0x15")](x[Ui("0x22")]()).filter((t=>{return Gi(t)||(e=t,n=s[Ui("0xc")],!e.is(Ui("0x5"))&&!n[Ui("0xd")](e)&&n.checkChild(e[Ui("0x1")],Ui("0x1f")));var e,n})):Array[Ui("0x15")](x[Ui("0x22")]())[Ui("0x18")]((t=>Gi(t)));const l=v(c,s);s.change((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Ui("0x1f"),commandParams:[{...o,forceValue:a}],formatGroupId:Ui("0x8")})}))})),e._descriptionFactory[Ui("0x12")](Ui("0x1f"),(t=>Yr(n,Ui("0x6"),t))),e[Ui("0x16")][Ui("0x17")]((t=>{if(Ui("0xf")!=t[Ui("0x20")])return;const e=n.t,{data:i}=t;if(!i||Ui("0x1f")!=i[Ui("0x1b")])return;const o=i[Ui("0xe")][0].language,s=e(r.find((t=>t[Ui("0x9")]===o))[Ui("0x23")])[Ui("0x1e")]();return i[Ui("0xe")][0][Ui("0x4")]?{type:Ui("0x13"),content:Yr(n,Ui("0x7"),Yr(n,Ui("0x6"),1)+" ("+s+")")}:{type:"format",content:Yr(n,Ui("0x1c"),Yr(n,Ui("0x6"),1))}}))}}function Gi(t){return Ui("0x1f")==t[Ui("0x19")]}const Vi=["has","plugins","TrackChangesEditing","afterInit","addCommentThread","editor"];var Hi,zi;Hi=Vi,zi=342,function(t){for(;--t;)Hi.push(Hi.shift())}(++zi);const Wi=function(t,e){return Vi[t-=0]};class Ki extends t.Plugin{[Wi("0x3")](){const t=this[Wi("0x5")];t.plugins[Wi("0x0")]("CommentsEditing")&&t[Wi("0x1")].get(Wi("0x2")).enableCommand(Wi("0x4"))}}var qi=n(181);const $i=["span","mapper","element","includes","markerName","writer","isContent","markerRange","consumable","createUIElement","plugins","push","getItems","insert","getWalker","createRangeOn","parent","ck-suggestion-marker-","isAtEnd","model","getAttribute","previousPosition","start","item","ck-suggestion-marker--active","name","toViewElement","hasAttribute","getCustomProperty","addClass","listItem","get","TrackChangesEditing","nextSibling"];var Xi,Zi;Xi=$i,Zi=132,function(t){for(;--t;)Xi.push(Xi.shift())}(++Zi);const Qi=function(t,e){return $i[t-=0]};function Yi(t,e,n){const r=[];for(const i of e[Qi("0x10")]())i[Qi("0x1f")](t)&&r[Qi("0xf")](n[Qi("0x13")](i));return r}function Ji(t,e,{showActiveMarker:n=!0}={}){const r=t[Qi("0xe")][Qi("0x1")](Qi("0x2"));return(i,o,s)=>{if(!s[Qi("0xc")].test(o[Qi("0xb")],i[Qi("0x1d")]))return;const x=o[Qi("0xb")][Qi("0x12")](),a=o.markerRange[Qi("0x1a")],c=t[Qi("0x17")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Qi("0x1b")];d=d||c[Qi("0xa")](e);const n=s[Qi("0x5")][Qi("0x1e")](e);if(n&&n[Qi("0x20")]("addHighlight"))return;"elementEnd"==t.type&&c.isBlock(e)&&!c.isLimit(e)&&(e[Qi("0x3")]||a[Qi("0x16")]?l&&l[Qi("0x14")]==e||(l=e,f(t[Qi("0x19")]),g=!0):u=u||t[Qi("0x19")])}function f(t){const i=s[Qi("0x9")][Qi("0xd")](Qi("0x4"),{class:Qi("0x15")+e}),x=s[Qi("0x5")].toViewPosition(t);n&&r.activeMarkers[Qi("0x7")](o.markerName)&&s.writer[Qi("0x21")](Qi("0x1c"),i),s[Qi("0x9")][Qi("0x11")](x,i),s[Qi("0x5")].bindElementToMarker(i,o[Qi("0x8")])}d||g||!u||f(u)}}const to=["createRange","delete","high","requires","forward","setSelection","markerNameToElements","addMarker:suggestion:deletion","bind","document","init","editing","model","rootName","lock","buffer","createSelection","batch","options","root","downcastDispatcher","remove","selection","uiElement","merge","showSuggestionHighlights","modifySelection","data","fromRange","commands","mapper","start","unlock","unbindElementFromMarkerName","enqueueChange","$graveyard","deleteForward"];var eo,no;eo=to,no=350,function(t){for(;--t;)eo.push(eo.shift())}(++no);const ro=function(t,e){return to[t-=0]};class io extends t.Plugin{static get[ro("0x17")](){return[qi.Delete]}[ro("0x1e")](){const t=this.editor,e=t.plugins.get("TrackChangesEditing");e.enableCommand(ro("0x15"));const n=t[ro("0xc")].get(ro("0x13"));e.enableCommand("deleteForward",((e,r={})=>{const i=t[ro("0x20")][ro("0x24")](t[ro("0x20")][ro("0x1d")][ro("0x5")]);i.isCollapsed&&t[ro("0x20")][ro("0x9")](i,{direction:ro("0x18"),unit:r.unit});const o=i.getFirstRange(),x=s.LiveRange[ro("0xb")](o);let a;e(r),a=ro("0x12")==x[ro("0x2")][ro("0x21")]?t.model[ro("0x14")](o[ro("0xe")]):t[ro("0x20")][ro("0x14")](x[ro("0xe")],x.end),x.detach(),t[ro("0x20")][ro("0x11")](n[ro("0x23")][ro("0x0")],(t=>{n[ro("0x23")][ro("0x22")](),t[ro("0x19")](t[ro("0x14")](a.end)),n[ro("0x23")][ro("0xf")]()}))})),t[ro("0x1f")].downcastDispatcher.on(ro("0x1b"),Ji(t,ro("0x7")),{priority:ro("0x16")}),t[ro("0xa")][ro("0x3")].on(ro("0x1b"),((e,n,r)=>{r[ro("0x1")][ro("0x8")]&&Ji(t,ro("0x7"),{showActiveMarker:!1})[ro("0x1c")](this)(e,n,r)}),{priority:"high"}),t[ro("0x1f")][ro("0x3")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const r=n[ro("0xd")][ro("0x1a")](e.markerName);if(r)for(const t of r)t.is(ro("0x6"))&&(n[ro("0xd")][ro("0x10")](t,e.markerName),n.writer[ro("0x4")](t))}),{priority:ro("0x16")})}}const oo=["ELEMENT_TODO_LIST","range","groupId","noTrackChangesFixer","outdentList","TodoListEditing","document","attributeKey","*Uncheck item*","format","*Indent:* %0","*Outdent:* %0","end","forceValue","listType","_registerLegacyDescription","*Check item*","*Remove format:* %0","start","_getAttributeKey","*Merge:* list item","*Format:* remove from %0","registerCustomCallback","default","commandName","includes","push","registerDescriptionCallback","getSuggestions","head","setAttribute","isUndo","differ","map","list.multiBlock","checkTodoList","isNextTo","editor","TrackChangesEditing","numberedList","next","listIndent","listItemId","indentList","deletion","getFirstRange","_suggestionFactory","_supportLegacySuggestions","detach","selection","listStart","attributes","commands","change","trackChangesCommand","type","commandParams","isLocal","oldValue","key","containsItem","formatBlock","_findSuggestions","refresh","afterInit","*Change to:* %0","getAttribute","nodeAfter","newValue","numbered","ELEMENT_LIST_ITEM","find","value","registerElementLabel","_descriptionFactory","_LIST","mergeListItemBackward","locale","plugins","assureChains","nextSibling","listItemIdFixer","model","createPositionAt","*Split:* list item","mergeListItemForward","from","has","ELEMENT_NUMBERED_LIST","todoListCheck","get","getRanges","registerPostFixer","suggestion","bulletedList","config","*Merge:* %0","*Format:* insert into %0","_enableDefaultAttributesIntegration","documentList","attribute","setSelection","splitListItemBefore","getFirstMarker","todoListChecked","filter","meta","schema","length","listStyle","data","todo","registerAttributeLabel","ELEMENT_","batch","toUpperCase","createRange","listReversed"];var so,xo;so=oo,xo=101,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{[ao("0x51")](){const t=this[ao("0x36")];if(!t[ao("0x5f")][ao("0x68")]("ListEditing"))return;const e=t[ao("0x5e")],n=t[ao("0x5f")].get(ao("0x37")),r=t[ao("0x5f")][ao("0x68")](ao("0x16")),i=!!t[ao("0x70")][ao("0x6b")](ao("0x33"));function o(t){return{type:ao("0x1a"),content:""+Yr(e,"*Set format:* %0",t)}}function s(t){return{type:"format",content:""+Yr(e,ao("0x22"),t)}}n[ao("0x73")](ao("0x38"),[],["listItemId",ao("0x1f"),ao("0x3a")]),n[ao("0x73")](ao("0x6f")),n[ao("0x73")](ao("0x3c")),n[ao("0x73")](ao("0x15")),n[ao("0x73")]("splitListItemAfter"),n._enableDefaultAttributesIntegration(ao("0x1")),i&&(n[ao("0x73")](ao("0x5d")),n[ao("0x73")](ao("0x66"))),r&&(n[ao("0x73")]("todoList"),n[ao("0x73")](ao("0x34"),[],[ao("0x3")]),n[ao("0x5b")][ao("0x2c")]((t=>{const{data:n}=t;if(n&&"todoListChecked"==n.key)return{type:ao("0x1a"),content:n.newValue?Yr(e,ao("0x21")):Yr(e,ao("0x19"))}})),this[ao("0x36")][ao("0x63")][ao("0x17")][ao("0x6d")]((t=>{if(t[ao("0xd")][ao("0x30")])return!1;let e=!1;const r=n[ao("0x2d")]({skipNotAttached:!0}).filter((t=>ao("0x3")===n[ao("0x24")](t)));for(const i of r)ao("0xa")!=i[ao("0x3e")]()[ao("0x23")][ao("0x54")][ao("0x53")](ao("0x1f"))&&(n[ao("0x4f")](i[ao("0x3e")](),ao("0x75"))[ao("0x58")]((t=>ao("0x1f")===n._getAttributeKey(t.suggestion)))||(t.removeMarker(i.getFirstMarker()),e=!0));return e}))),n[ao("0x5b")][ao("0xb")](ao("0x3a"),Yr(e,"FORMAT_INDENT"));const x={type:ao("0x1a"),content:""};n._descriptionFactory[ao("0x2c")]((t=>{const{data:n}=t;if(!n||ao("0x1f")!=n[ao("0x4c")])return;let r=t[ao("0x2e")];for(;r;){if(r.data&&("listStyle"==r[ao("0x9")][ao("0x4c")]&&(r[ao("0x9")][ao("0x55")]&&ao("0x28")!=r.data[ao("0x55")]||ao("0x28")!=r[ao("0x9")][ao("0x4b")]&&!n.newValue)||!i&&r[ao("0x9")][ao("0x4c")]==Cc))return x;r=r[ao("0x39")]}if(null==n[ao("0x55")])switch(n[ao("0x4b")]){case"bulleted":return s(Yr(e,"ELEMENT_BULLETED_LIST"));case"numbered":return s(Yr(e,ao("0x69")));case ao("0xa"):return s(Yr(e,ao("0x11")))}switch(n[ao("0x55")]){case"bulleted":return o(Yr(e,"ELEMENT_BULLETED_LIST"));case ao("0x56"):return o(Yr(e,ao("0x69")));case"todo":return o(Yr(e,ao("0x11")))}})),n[ao("0x5b")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&ao("0x3a")==e.key)return null==e[ao("0x55")]||null==e[ao("0x4b")]&&0==e[ao("0x55")]?x:void 0})),n[ao("0x5b")].registerDescriptionCallback((t=>{if(ao("0x75")!=t[ao("0x48")])return;const{data:n}=t;if(!n||"listItemId"!=n.key)return;const r=lo(t);return r?ao("0x55")==r?{type:ao("0x1a"),content:Yr(e,ao("0x25"))}:ao("0x4b")==r?{type:ao("0x1a"),content:Yr(e,ao("0x65"))}:x:x})),t[ao("0x63")].document[ao("0x6d")]((t=>this[ao("0x62")](t))),t.model.document.registerPostFixer((t=>this[ao("0x14")](t))),t[ao("0x63")].document.registerPostFixer((t=>this.assureChains(t))),this[ao("0x40")]()}[ao("0x62")](t){if(t[ao("0xd")][ao("0x30")]||!t.batch[ao("0x4a")])return!1;let e=!1;const n=this[ao("0x36")][ao("0x5f")][ao("0x6b")](ao("0x37"))[ao("0x2d")]({skipNotAttached:!0}).filter((t=>t[ao("0x9")]&&ao("0x3b")==t.data.key))[ao("0x4")]((t=>t[ao("0x9")][ao("0x55")]&&t.data[ao("0x4b")]));for(const r of n)lo(r)||(t.removeMarker(r[ao("0x2")]()),e=!0);return e}[ao("0x14")](t){if(t.batch.isUndo||!t[ao("0xd")][ao("0x4a")])return!1;const e=this[ao("0x36")][ao("0x5f")][ao("0x6b")](ao("0x37"));if(e[ao("0x47")].value)return!1;let n=!1;const r=["listType",ao("0x8"),ao("0x3b"),ao("0x3a"),ao("0x43"),ao("0x10"),ao("0x6a")],i=this[ao("0x36")].model[ao("0x17")][ao("0x31")].getChanges()[ao("0x4")]((t=>ao("0x75")==t[ao("0x48")])).filter((t=>r[ao("0x2a")](t[ao("0x18")])));if(0==i[ao("0x7")])return n;for(const o of i){const i=e[ao("0x4f")](o[ao("0x12")],ao("0x75"))[ao("0x4")]((t=>!t[ao("0x5")][ao("0x35")]))[ao("0x32")]((t=>t[ao("0x6e")]))[ao("0x4")]((t=>{const n=e._getAttributeKey(t);return r[ao("0x2a")](n)}));if(i.length){for(const e of i)t.removeMarker(e.getFirstMarker());n=!0}}return n}[ao("0x60")](t){if(t[ao("0xd")].isUndo||!t[ao("0xd")][ao("0x4a")])return!1;const e=this[ao("0x36")].plugins[ao("0x6b")](ao("0x37"));let n=!1;const r=[ao("0x1f"),ao("0x8"),ao("0x3b"),ao("0x3a"),ao("0x43"),ao("0x10"),"todoListCheck"];for(const t of e[ao("0x2d")]({skipNotAttached:!0})){const i=e[ao("0x4f")](t[ao("0x3e")](),ao("0x75"))[ao("0x32")]((t=>t[ao("0x6e")]))[ao("0x4")]((t=>t[ao("0x9")]&&r[ao("0x2a")](t[ao("0x9")][ao("0x4c")])));if(!i[ao("0x7")])continue;const s=i[0][ao("0x2e")][ao("0x44")][ao("0x13")];if(!i.every((t=>t.attributes[ao("0x13")]===s)))for(const t of i)o(t,s)&&(n=!0)}return n;function i(t,n){for(const r of e[ao("0x2d")]({skipNotAttached:!0})[ao("0x4")]((e=>ao("0x75")==e.type&&e[ao("0x44")].groupId==t)))r.setAttribute(ao("0x13"),n)}function o(t,e){let n=t[ao("0x2e")],r=!1;for(;n;)n[ao("0x44")].groupId!=e&&(i(n[ao("0x44")].groupId,e),n[ao("0x2f")]("groupId",e),r=!0),n=n[ao("0x39")];return r}}_supportLegacySuggestions(){const t=this[ao("0x36")],e=t[ao("0x5e")],n=t[ao("0x5f")][ao("0x6b")](ao("0x37"));this[ao("0x20")](),n[ao("0x3f")][ao("0x27")](ao("0x4e"),ao("0x74"),"accept",(function(e,n){const r=[];for(let n of e)n.start.nodeAfter===n[ao("0x1d")].parent&&(n=t.model[ao("0xf")](t[ao("0x63")][ao("0x64")](n[ao("0x23")][ao("0x54")],0))),r[ao("0x2b")](n);t.model[ao("0x46")]((e=>{const i=t[ao("0x63")].document[ao("0x42")],o=Array[ao("0x67")](i[ao("0x6c")]()).map((t=>s.LiveRange.fromRange(t)));e[ao("0x0")](r),t[ao("0x45")][ao("0x6b")](n.commandName)[ao("0x50")](),n[ao("0x49")][ao("0x2b")]({forceDefaultExecution:!0}),t.execute(n.commandName,...n[ao("0x49")]),e[ao("0x0")](o);for(const t of o)t[ao("0x41")]()}))})),n._descriptionFactory[ao("0x5a")]((function(e){const n=!t[ao("0x63")][ao("0x6")].isObject(e),r=e.previousSibling,i=e[ao("0x61")],o=e[ao("0x53")](ao("0x3b")),s=!r||r[ao("0x53")](ao("0x3b"))!==o,x=!i||i[ao("0x53")](ao("0x3b"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Yr(e,ao("0x57"),t)))}[ao("0x20")](){const t=this[ao("0x36")],e=t[ao("0x5e")];function n(e){const n=t[ao("0x45")][ao("0x6b")](ao("0x6f"))[ao("0x59")],r=t[ao("0x45")].get("numberedList")[ao("0x59")];return ao("0x38")===e?n:r}t[ao("0x5f")][ao("0x6b")](ao("0x37"))[ao("0x5b")][ao("0x2c")]((function(r){if(ao("0x4e")!=r[ao("0x48")])return;const{data:i}=r;if(!i)return;let o,s,x,a;switch(i[ao("0x29")]){case ao("0x6f"):x=i[ao("0x49")][0][ao("0x1e")],a=n(i[ao("0x29")]),o=x?ao("0x72"):"*Format:* remove from %0",!a&&t[ao("0x70")][ao("0x6b")](ao("0x33"))||(o=ao("0x52")),s={type:ao("0x1a"),content:Yr(e,o,Yr(e,"ELEMENT_BULLETED_LIST"))};break;case ao("0x38"):x=i.commandParams[0].forceValue,a=n(i.commandName),o=ao(x?"0x72":"0x26"),!a&&t[ao("0x70")][ao("0x6b")](ao("0x33"))||(o=ao("0x52")),s={type:ao("0x1a"),content:Yr(e,o,Yr(e,ao("0x69")))};break;case"indentList":o=ao("0x1b"),s={type:ao("0x1a"),content:Yr(e,o,Yr(e,ao("0x57")))};break;case ao("0x15"):o=function(t){const e=t.getFirstRange();let n=e[ao("0x23")][ao("0x54")];for(;n&&e[ao("0x4d")](n);){if(n[ao("0x53")](ao("0x3a"))>0)return!1;n=n[ao("0x61")]}return!0}(r)?Yr(e,ao("0x26"),Yr(e,(c=r,ao("0xc")+c.getFirstRange()[ao("0x23")][ao("0x54")][ao("0x53")](ao("0x1f"))[ao("0xe")]()+ao("0x5c")))):Yr(e,ao("0x1c"),Yr(e,ao("0x57"))),s={type:ao("0x1a"),content:o};break;case ao("0x5d"):case ao("0x66"):!1===i.multipleBlocks&&(o=ao("0x71"),s={type:ao("0x3d"),content:Yr(e,o,Yr(e,ao("0x57")))})}var c;return s}))}}function lo(t){let e=t.getFirstRange().start.nodeAfter.previousSibling;for(;e;){const n=e[ao("0x53")]("listItemId");if(!n)return!1;if(n==t[ao("0x9")][ao("0x55")])return ao("0x55");if(n==t[ao("0x9")].oldValue)return ao("0x4b");e=e.previousSibling}return!1}const uo=["next","model","getAttribute","commandName","*Set format:* %0","*Format:* set order to regular","_LIST_","handleDescriptions","nodeAfter","*Format:* set order to reversed","afterInit","key","format","formatBlock","_descriptionFactory","list.properties","*Remove format:* %0","square","decimal-leading-zero","attribute","plugins","*Change to:* %0","_getAttributeKey","disc","getFirstRange","FORMAT_LIST_START","start","_LIST_DEFAULT","TrackChangesEditing","includes","toUpperCase","suggestion","reversed","editor","commandParams","document","FORMAT_LIST_REVERSED","numbered","bulleted","styles","ListPropertiesEditing","oldValue","ELEMENT_","_getTranslationKeyForListStyle","type","newValue","locale","replace","registerPostFixer","getFirstMarker","head","data","bind","has","listType","*Format:* set start index to %0","lower-latin","isUndo","removeMarker","getSuggestions","default","registerDescriptionCallback","_findSuggestions","startIndex","_enableDefaultAttributesIntegration","registerAttributeLabel","listStart","get","listReversed","batch","listStyle","decimal"];var go,fo;go=uo,fo=188,function(t){for(;--t;)go.push(go.shift())}(++fo);const ho=function(t,e){return uo[t-=0]};class mo extends t.Plugin{[ho("0x26")](){if(!this[ho("0x3d")].plugins[ho("0x9")](ho("0x44")))return;const t=this[ho("0x3d")].config.get(ho("0x2b")),e=this[ho("0x3d")][ho("0x30")][ho("0x17")](ho("0x38"));t[ho("0x43")]&&e[ho("0x14")](ho("0x1a"),[],[ho("0x1a")]),t.reversed&&e._enableDefaultAttributesIntegration(ho("0x18"),[],["listReversed"]),t[ho("0x13")]&&e[ho("0x14")](ho("0x16"),[],[ho("0x16")]);const n={type:ho("0x28"),content:""};e[ho("0x2a")].registerDescriptionCallback(this.handleDescriptions[ho("0x8")](this));const r=this[ho("0x3d")][ho("0x2")];e._descriptionFactory[ho("0x15")](ho("0x18"),Yr(r,ho("0x40"))),e[ho("0x2a")][ho("0x11")]((t=>{const{data:e}=t;if(e&&"listReversed"==e.key)return null==e[ho("0x1")]||0==e[ho("0x1")]&&null==e.oldValue?n:void 0})),e[ho("0x2a")][ho("0x15")]("listStart",Yr(r,ho("0x35"))),e._descriptionFactory[ho("0x11")]((t=>{const{data:e}=t;if(e&&"listStart"==e[ho("0x27")])return null==e.newValue||1==e[ho("0x1")]&&null==e[ho("0x45")]?n:void 0})),this[ho("0x3d")][ho("0x1d")][ho("0x3f")][ho("0x4")]((t=>{if(t[ho("0x19")][ho("0xd")])return!1;let n=!1;const r=e[ho("0xf")]({skipNotAttached:!0}).filter((t=>{const n=e[ho("0x32")](t);return"listStart"==n||ho("0x18")==n}));for(const i of r)ho("0x41")!=i.getFirstRange()[ho("0x36")].nodeAfter.getAttribute("listType")&&(e[ho("0x12")](i[ho("0x34")](),ho("0x2f")).find((t=>ho("0xa")==e[ho("0x32")](t[ho("0x3b")])))||(t[ho("0xe")](i[ho("0x5")]()),n=!0));return n})),this._registerLegacyDescription()}[ho("0x23")](t){const e=this.editor[ho("0x2")],{data:n}=t,r={type:"format",content:""};if(!n||ho("0x1a")!=n[ho("0x27")])return;if(!n[ho("0x45")])return ho("0x10")==n[ho("0x1")]?r:{type:ho("0x28"),content:""+Yr(e,"*Set format:* %0",Yr(e,this[ho("0x47")](n.newValue)))};if(!n[ho("0x1")]){if("default"==n[ho("0x45")])return r;let i=t[ho("0x6")];for(;i;){if(i[ho("0x7")]&&ho("0xa")==i[ho("0x7")][ho("0x27")]&&i.data.newValue)return r;i=i[ho("0x1c")]}return{type:ho("0x28"),content:""+Yr(e,ho("0x2c"),Yr(e,this[ho("0x47")](n[ho("0x45")])))}}if(ho("0x10")!=n[ho("0x1")])return{type:ho("0x28"),content:""+Yr(e,ho("0x20"),Yr(e,this[ho("0x47")](n[ho("0x1")])))};let i=t[ho("0x6")];for(;i;){if(i[ho("0x7")]&&ho("0xa")==i[ho("0x7")][ho("0x27")]&&i[ho("0x7")][ho("0x1")]&&i.data[ho("0x45")])return r;i=i[ho("0x1c")]}const o=t[ho("0x34")]()[ho("0x36")][ho("0x24")][ho("0x1e")](ho("0xa"));return{type:ho("0x28"),content:Yr(e,"*Set format:* %0",Yr(e,ho("0x46")+o[ho("0x3a")]()+ho("0x37")))}}_registerLegacyDescription(){const t=this[ho("0x3d")],e=t[ho("0x2")];t[ho("0x30")].get("TrackChangesEditing")[ho("0x2a")][ho("0x11")]((t=>{if(ho("0x29")!=t[ho("0x0")])return;const{data:n}=t;if(!n)return;let r,i;switch(n[ho("0x1f")]){case ho("0x1a"):r=ho("0x31"),i={type:ho("0x28"),content:Yr(e,r,Yr(e,this[ho("0x47")](n[ho("0x3e")][0].type)))};break;case ho("0x18"):r=n[ho("0x3e")][0][ho("0x3c")]?ho("0x25"):ho("0x21"),i={type:ho("0x28"),content:Yr(e,r)};break;case"listStart":r=ho("0xb"),i={type:ho("0x28"),content:Yr(e,r,n.commandParams[0].startIndex)}}return i}))}_getTranslationKeyForListStyle(t){return ho("0x46")+(e=t,bo[ho("0x39")](e)?ho("0x42"):po[ho("0x39")](e)?ho("0x41"):null).toUpperCase()+ho("0x22")+t.toUpperCase()[ho("0x3")](/-/g,"_");var e}}const bo=[ho("0x33"),"circle",ho("0x2d")],po=[ho("0x1b"),ho("0x2e"),"lower-roman","upper-roman",ho("0xc"),"upper-latin"];var Eo=n(331);const _o=["markerNameToElements","createRange","markInsertion","fromRange","unbindElementFromMarkerName","bind","requires","high","enter","markerName","writer","downcastDispatcher","showSuggestionHighlights","remove","init","createPositionAt","split","plugins","addMarker:suggestion:insertion","end","detach","change","getFirstRange","data","fire","setSelection","afterExecute","mapper","options","TrackChangesEditing","enterBlock","document","getFirstPosition","model","hasClass","editing"];var To,yo;To=_o,yo=336,function(t){for(;--t;)To.push(To.shift())}(++yo);const Co=function(t,e){return _o[t-=0]};class Ao extends t.Plugin{static get[Co("0x1e")](){return[Eo.Enter]}[Co("0x2")](){const t=this.editor,e=t[Co("0x5")].get(Co("0x11")),n=t.commands.get(Co("0x20"));e.enableCommand("enter",(()=>{t[Co("0x15")][Co("0x9")]((r=>{const i=t[Co("0x15")][Co("0x13")].selection,o=i[Co("0x14")](),x=s.LiveRange[Co("0x1b")](i[Co("0xa")]());if(n[Co("0x12")](r)){const n=t[Co("0x15")][Co("0x3")](o.parent.nextSibling,0),i=r[Co("0x19")](o,n);e[Co("0x1a")](i)}else r[Co("0xd")](r.createRange(x[Co("0x7")]));x[Co("0x8")](),n[Co("0xc")](Co("0xe"),{writer:r})}))})),t[Co("0x17")].downcastDispatcher.on("addMarker:suggestion:insertion",Ji(t,"split"),{priority:Co("0x1f")}),t.editing.downcastDispatcher.on("removeMarker:suggestion:insertion",((t,e,n)=>{const r=n[Co("0xf")][Co("0x18")](e[Co("0x21")]);if(r)for(const t of r)t[Co("0x16")]("ck-suggestion-marker-split")&&(n[Co("0xf")][Co("0x1c")](t,e[Co("0x21")]),n[Co("0x22")][Co("0x1")](t))}),{priority:Co("0x1f")}),t[Co("0xb")][Co("0x23")].on(Co("0x6"),((e,n,r)=>{r[Co("0x10")][Co("0x0")]&&Ji(t,Co("0x4"),{showActiveMarker:!1})[Co("0x1d")](this)(e,n,r)}),{priority:Co("0x1f")})}}const ko=["handleFindCommand","replace","createRange","enableCommand","TrackChangesEditing","string","_isInDeletionRange","get","createPositionAt","model","suggestion:deletion","editor","findPrevious","findNext","getMarkersGroup","plugins","FindAndReplaceUtils","getRange","bind","has","markers","FindAndReplaceEditing","filter","afterInit","replaceAll"];var Io,Ro;Io=ko,Ro=398,function(t){for(;--t;)Io.push(Io.shift())}(++Ro);const vo=function(t,e){return ko[t-=0]};class So extends t.Plugin{[vo("0x0")](){if(!this.editor[vo("0x11")][vo("0x15")](vo("0x17")))return;const t=this[vo("0xd")][vo("0x11")][vo("0x9")](vo("0x6"));t[vo("0x5")]("find",this[vo("0x2")][vo("0x14")](this)),t[vo("0x5")](vo("0xf")),t[vo("0x5")](vo("0xe")),t.enableCommand(vo("0x3")),t[vo("0x5")](vo("0x1"))}handleFindCommand(t,e,n={}){const r=this[vo("0xd")][vo("0x11")][vo("0x9")](vo("0x12"));return t((t=>(vo("0x7")==typeof e?r.findByTextCallback(e,n):e)(t)[vo("0x18")]((e=>!1===this[vo("0x8")](e,t.item)))),n)}[vo("0x8")](t,e){const n=this.editor[vo("0xb")][vo("0x4")](this[vo("0xd")][vo("0xb")][vo("0xa")](e,t.start),this[vo("0xd")][vo("0xb")][vo("0xa")](e,t.end));for(const t of this[vo("0xd")][vo("0xb")][vo("0x16")][vo("0x10")](vo("0xc")))if(null!==n.getIntersection(t[vo("0x13")]()))return!0;return!1}}const No=["_registerLegacyDescription","label","get","type","format","registerAttributeLabel","commandParams","FontFamilyEditing","*Reset font size*","locale","title","FORMAT_FONT_BACKGROUND","toLowerCase","fontColor","trim","FontSizeEditing","fontBackgroundColor.colors","fontFamily","FontBackgroundColorEditing","fontBackgroundColor","*Set font size:* %0","TrackChangesEditing","*Reset font color*","has","plugins","commandName","FontSize","formatInline","*Set font background color:* %0","fontSize","config","model","*Reset font family*","_descriptionFactory","FontColorEditing","fontSize.options","editor","*Set font color:* %0","value","_enableDefaultAttributesIntegration","*Reset font background color*","*Set font family:* %0"];var Lo,Mo;Lo=No,Mo=100,function(t){for(;--t;)Lo.push(Lo.shift())}(++Mo);const wo=function(t,e){return No[t-=0]},Oo=[{pluginName:wo("0x29"),commandName:wo("0xd")},{pluginName:wo("0x21"),commandName:wo("0x1")},{pluginName:wo("0x12"),commandName:wo("0x27")},{pluginName:wo("0x2"),commandName:wo("0x3")}];class Fo extends t.Plugin{afterInit(){const t=this.editor[wo("0x23")],e=this.editor.plugins[wo("0x1c")]("TrackChangesEditing");for(const{pluginName:t,commandName:n}of Oo)this[wo("0x14")].plugins[wo("0x7")](t)&&e[wo("0x17")](n,[n]);t.t,e[wo("0x11")][wo("0x1f")](wo("0xd"),Yr(t,"FORMAT_FONT_SIZE")),e._descriptionFactory[wo("0x1f")](wo("0x1"),Yr(t,"FORMAT_FONT_FAMILY")),e[wo("0x11")][wo("0x1f")]("fontColor",Yr(t,"FORMAT_FONT_COLOR")),e[wo("0x11")][wo("0x1f")](wo("0x3"),Yr(t,wo("0x25"))),this[wo("0x1a")]()}[wo("0x1a")](){const t=this.editor,e=t[wo("0x23")];t[wo("0x8")][wo("0x1c")](wo("0x5"))[wo("0x11")].registerDescriptionCallback((t=>{const n=e.t;if(wo("0xb")!=t[wo("0x1d")])return;const{data:r}=t;if(null!=r){if("fontSize"==r.commandName){const t=r[wo("0x20")][0].value;if(t){const r=n(this[wo("0x14")].plugins[wo("0x1c")](wo("0xa")).normalizeSizeOptions(this[wo("0x14")][wo("0xe")][wo("0x1c")](wo("0x13"))).find((e=>e.model==t))[wo("0x24")]).toLowerCase();return{type:wo("0x1e"),content:Yr(e,wo("0x4"),r)}}return{type:wo("0x1e"),content:Yr(e,wo("0x22"))}}if(wo("0x1")==r[wo("0x9")]){const t=r.commandParams[0][wo("0x16")];return t?{type:wo("0x1e"),content:Yr(e,wo("0x19"),t)}:{type:wo("0x1e"),content:Yr(e,wo("0x10"))}}if(wo("0x27")==r[wo("0x9")]){const t=r[wo("0x20")][0][wo("0x16")];if(t){const r=(0,i.normalizeColorOptions)(this.editor[wo("0xe")].get("fontColor.colors")).find((e=>e[wo("0xf")]==t));let o=t,s="";return r&&(o=r[wo("0x1b")],s=n(o).toLowerCase()),{type:wo("0x1e"),content:Yr(e,wo("0x15"),s)[wo("0x28")](),color:{value:t,title:s||o}}}return{type:wo("0x1e"),content:Yr(e,wo("0x6"))}}if(wo("0x3")==r[wo("0x9")]){const t=r[wo("0x20")][0][wo("0x16")];if(t){const r=(0,i.normalizeColorOptions)(this[wo("0x14")][wo("0xe")].get(wo("0x0"))).find((e=>e[wo("0xf")]==t));let o=t,s="";return r&&(o=r[wo("0x1b")],s=n(o)[wo("0x26")]()),{type:wo("0x1e"),content:Yr(e,wo("0xc"),s)[wo("0x28")](),color:{value:t,title:s||o}}}return{type:"format",content:Yr(e,wo("0x18"))}}}}))}}const Do=["formatInline","TrackChangesEditing","find","fontSize.options","get","toUpperCase","type","pasteFormat","push","*Set format to:* %0","entries","fontSize","title","afterInit","split","model","commandName","plugins","*Remove all formatting*","locale","_descriptionFactory","copyFormat","join","_registerLegacyDescription","fontBackgroundColor","commands","FontSize","editor","slice","length","format","toLowerCase","fontColor.colors","config","formatBlock"];var Po,Bo;Po=Do,Bo=234,function(t){for(;--t;)Po.push(Po.shift())}(++Bo);const Uo=function(t,e){return Do[t-=0]};class jo extends t.Plugin{[Uo("0x18")](){const t=this[Uo("0x3")],e=t[Uo("0x1c")][Uo("0xf")](Uo("0xc")),n=t[Uo("0x1")][Uo("0xf")](Uo("0x20")),r=t.commands.get(Uo("0x12"));n&&r&&(e._enableDefaultAttributesIntegration(Uo("0x12")),e.enableCommand(Uo("0x20")),this[Uo("0x22")]())}[Uo("0x22")](){const t=this[Uo("0x3")],e=t[Uo("0x1e")];t[Uo("0x1c")][Uo("0xf")](Uo("0xc"))[Uo("0x1f")].registerDescriptionCallback((n=>{if(Uo("0xa")!=n.type&&Uo("0xb")!=n[Uo("0x11")])return;const{data:r}=n;if(r&&Uo("0x12")===r[Uo("0x1b")]){const n=[],i=r.commandParams[0];for(const[e,r]of Object[Uo("0x15")](i))n[Uo("0x13")](Go(t,e,r));return n[Uo("0x5")]?{type:Uo("0x6"),content:Yr(e,Uo("0x14"),n.join(", "))}:{type:"format",content:Yr(e,Uo("0x1d"))}}}))}}function Go(t,e,n){const r=t.locale.t,o=e[Uo("0x19")](/(?=[A-Z])/)[Uo("0x21")](" "),s=r(o.charAt(0)[Uo("0x10")]()+o[Uo("0x4")](1))[Uo("0x7")]();if("boolean"==typeof n)return s;if("fontColor"===e||Uo("0x0")===e){const e=(0,i.normalizeColorOptions)(t[Uo("0x9")][Uo("0xf")](Uo("0x8")))[Uo("0xd")]((t=>t[Uo("0x1a")]==n));return s+" ("+(e?r(e.label)[Uo("0x7")]():n)+")"}if(Uo("0x16")===e&&isNaN(parseFloat(n))){const e=t[Uo("0x1c")].get(Uo("0x2")).normalizeSizeOptions(t[Uo("0x9")][Uo("0xf")](Uo("0xe")))[Uo("0xd")]((t=>t.model==n));return s+" ("+(e?r(e[Uo("0x17")])[Uo("0x7")]():n)+")"}return s+" ("+n+")"}const Vo=["_getHeadingLevel","config","commandName","view","registerDescriptionCallback","has","ELEMENT_HEADING_CUSTOM","plugins","ELEMENT_HEADING","editor","format","heading","commandParams","*Change to:* %0","value","model","title","afterInit","_enableDefaultAttributesIntegration","HeadingEditing","_headingOptions","match","type","formatBlock","TrackChangesEditing","heading.options","registerElementLabel","paragraph","get","find","_descriptionFactory","_registerLegacyDescription"];var Ho,zo;Ho=Vo,zo=272,function(t){for(;--t;)Ho.push(Ho.shift())}(++zo);const Wo=function(t,e){return Vo[t-=0]};class Ko extends t.Plugin{[Wo("0x1")](){const t=this.editor;if(!t[Wo("0x17")][Wo("0x15")](Wo("0x3")))return;this[Wo("0x4")]=t[Wo("0x11")][Wo("0xc")](Wo("0x9"));const e=t.locale,n=t[Wo("0x17")][Wo("0xc")]("TrackChangesEditing");n[Wo("0x2")]("heading");for(const t of this._headingOptions)Wo("0xb")!=t[Wo("0x1f")]&&n[Wo("0xe")][Wo("0xa")](t[Wo("0x1f")],(n=>{const r=this[Wo("0x10")](t[Wo("0x1f")]);return null!==r?(s=n,x=r,Yr(e,Wo("0x18"),[s,x])):(i=n,o=t[Wo("0x0")],Yr(e,Wo("0x16"),[i,o]));var i,o,s,x}));this._registerLegacyDescription()}[Wo("0xf")](){const t=this[Wo("0x19")],e=t.locale;t[Wo("0x17")][Wo("0xc")](Wo("0x8"))[Wo("0xe")][Wo("0x14")]((t=>{if(Wo("0x7")!=t[Wo("0x6")])return;const{data:n}=t;if(n&&Wo("0x1b")==n[Wo("0x12")]){const t=n[Wo("0x1c")][0][Wo("0x1e")],s=this._getHeadingLevel(t);if(null!==s)return{type:Wo("0x1a"),content:Yr(e,"*Change to:* %0",(1,o=s,Yr(e,Wo("0x18"),[1,o])))};const x=this[Wo("0x4")][Wo("0xd")]((e=>e[Wo("0x1f")]===t))[Wo("0x0")];return{type:Wo("0x1a"),content:Yr(e,Wo("0x1d"),(r=1,i=x,Yr(e,Wo("0x16"),[r,i])))}}var r,i,o}))}[Wo("0x10")](t){var e,n;const r=t[Wo("0x5")](/^heading(\d+)/);if(r)return r[1];const i=null===(e=this[Wo("0x4")])||void 0===e?void 0:e[Wo("0xd")]((e=>e[Wo("0x1f")]==t));if(i&&i[Wo("0x13")]){const t=i[Wo("0x13")],e=(null!==(n=t.name)&&void 0!==n?n:t).match(/^h(\d+)/);if(e)return e[1]}return null}}const qo=["title","registerDescriptionCallback","editor","has","highlight.options","_enableDefaultAttributesIntegration","afterInit","type","_descriptionFactory","plugins","*Set highlight:* %0","formatInline","color","highlight","toLowerCase","find","locale","config","FORMAT_HIGHLIGHT","commandName","get","format","_registerLegacyDescription","registerAttributeLabel","HighlightEditing","model","TrackChangesEditing"];var $o,Xo;$o=qo,Xo=350,function(t){for(;--t;)$o.push($o.shift())}(++Xo);const Zo=function(t,e){return qo[t-=0]};class Qo extends t.Plugin{[Zo("0x7")](){const t=this[Zo("0x3")];if(!t[Zo("0xa")][Zo("0x4")](Zo("0x19")))return;const e=t.plugins.get("TrackChangesEditing"),n=t[Zo("0x11")];e[Zo("0x6")]("highlight",["highlight"]),e[Zo("0x9")][Zo("0x18")](Zo("0xe"),Yr(n,Zo("0x13"))),this[Zo("0x17")]()}[Zo("0x17")](){const t=this[Zo("0x3")],e=t[Zo("0x11")];t[Zo("0xa")][Zo("0x15")](Zo("0x0"))[Zo("0x9")][Zo("0x2")]((n=>{if(Zo("0xc")!=n[Zo("0x8")])return;const{data:r}=n;if(r&&Zo("0xe")==r[Zo("0x14")]){const n=e.t,i=r.commandParams[0].value;if(i){const r=t[Zo("0x12")].get(Zo("0x5"))[Zo("0x10")]((t=>t[Zo("0x1a")]==i)),o=n(r[Zo("0x1")])[Zo("0xf")]();return{type:Zo("0x16"),content:Yr(e,Zo("0xb"),o),color:{value:r[Zo("0xd")],title:r[Zo("0x1")]}}}return{type:Zo("0x16"),content:Yr(e,"*Remove highlight*",Yr(e,Zo("0x13")))}}}))}}const Yo=["ELEMENT_HORIZONTAL_LINE","has","registerElementLabel","_descriptionFactory","HorizontalLineEditing","showSuggestionHighlights","insert","horizontalLine","createPositionAt","addClass","high","editor","enableCommand","createContainerElement","for","conversion","TrackChangesEditing","ck-horizontal-line","dataDowncast","createEmptyElement","get","plugins","afterInit"];var Jo,ts;Jo=Yo,ts=175,function(t){for(;--t;)Jo.push(Jo.shift())}(++ts);const es=function(t,e){return Yo[t-=0]};class ns extends t.Plugin{[es("0x8")](){const t=this[es("0x14")];if(!t[es("0x7")][es("0xa")](es("0xd")))return;t[es("0x7")][es("0x6")](es("0x2"))[es("0x15")](es("0x10"));const e=t[es("0x7")][es("0x6")](es("0x2")),n=t.locale;e[es("0xc")][es("0xb")]("horizontalLine",(t=>Yr(n,es("0x9"),t))),t[es("0x1")][es("0x0")](es("0x4")).elementToStructure({model:es("0x10"),view:(t,{writer:e,options:n})=>{if(!n[es("0xe")])return null;const r=e[es("0x16")]("div"),i=e[es("0x5")]("hr");return e[es("0x12")](es("0x3"),r),e[es("0xf")](e[es("0x11")](r,0),i),r},converterPriority:es("0x13")})}}const rs=["locale","htmlEmbed","_descriptionFactory","getFirstRange","element","value","plugins","type","start","format","key","nodeAfter","registerElementLabel","_registerLegacyDescription","registerDescriptionCallback","editor","afterInit","get","has","commandName","ELEMENT_HTML_EMBED","TrackChangesEditing","rawHtml","_enableDefaultAttributesIntegration","HtmlEmbed"];var is,os;is=rs,os=477,function(t){for(;--t;)is.push(is.shift())}(++os);const ss=function(t,e){return rs[t-=0]};class xs extends t.Plugin{[ss("0xe")](){const t=this[ss("0xd")];if(!t[ss("0x4")][ss("0x10")](ss("0x16")))return;const e=t.plugins.get(ss("0x13")),n=t[ss("0x17")];e[ss("0x0")][ss("0xa")](ss("0x14"),(t=>Yr(n,ss("0x12"),t))),e[ss("0x15")]("htmlEmbed",[],["value"]),e[ss("0x0")].registerDescriptionCallback((t=>{if("attribute"!=t[ss("0x5")])return;const{data:e}=t;if(e&&ss("0x3")==e[ss("0x8")]&&t[ss("0x1")]()[ss("0x6")][ss("0x9")].is(ss("0x2"),ss("0x14"))){const t=Yr(n,ss("0x12"));return{type:ss("0x7"),content:Yr(n,"*Change %0 content*",t)}}})),this[ss("0xb")]()}[ss("0xb")](){const t=this[ss("0xd")],e=t[ss("0x17")];t[ss("0x4")][ss("0xf")]("TrackChangesEditing")[ss("0x0")][ss("0xc")]((t=>{if("formatBlock"!=t[ss("0x5")])return;const{data:n}=t;if(n&&ss("0x18")==n[ss("0x11")]){const t=Yr(e,ss("0x12"));return{type:"format",content:Yr(e,"*Change %0 content*",t)}}}))}}const as=["markBlockFormat","ImageResize","discard","ImageEditing","chain","join","_descriptionFactory","enableCommand","newValue","Inline image to block image","nodeAfter","isIntersecting","isCollapsed","end","resizedWidth","isOwn","imageInline","format","editor","has","imageStylePreApply","type","getSuggestionCallback","isBlockImage","convertBlockImageToInline","afterInit","resizeImage","backward","toggleImageCaption","removeObject","commandName","caption","toPrevious","accept","isBefore","convertInlineImageToBlock","markInsertion","detach","fromPosition","_registerLegacyDescription","toNext","imageTextAlternative","registerElementLabel","filter","_enableDefaultAttributesIntegration","ImageBlockEditing","attribute","uploadImage","_suggestionFactory","subType","deletion","imageTypeBlock","getClosestSelectedImageElement","FORMAT_IMAGE_SIZE","getCaptionFromImageModelElement","TrackChangesEditing","find","plugins","get","imageTypeInline","getFirstRange","model","selection","_findSuggestions","change","schema","alt","registerDescriptionCallback","Block image to inline image","length","addObject","ELEMENT_CAPTION","imageCaption","forceDefaultExecution","locale","start","formatBlock","registerAttributeLabel","createRange","insertImage","insertion","isEqual","document","*Set image width:* %0","formatInline","createRangeOn","findIndex","*Remove image text alternative*","markDeletion","registerCustomCallback","element","getContainedElement","ImageInlineEditing"];var cs,ls;cs=as,ls=225,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{[us("0x4f")](){const t=this[us("0x48")];if(!t[us("0x12")][us("0x49")](us("0x39")))return;const e=t[us("0x12")][us("0x13")](us("0x10")),n=t[us("0x12")].get("ImageUtils"),r=t[us("0x23")];e[us("0x3d")](us("0x28")),e[us("0x3c")][us("0x3")]("imageBlock",(t=>Yr(r,"ELEMENT_IMAGE",t))),e[us("0x3c")][us("0x3")](us("0x46"),(t=>Yr(r,"ELEMENT_INLINE_IMAGE",t))),e[us("0x3c")][us("0x3")](us("0x55"),(()=>Yr(r,us("0x20")))),t[us("0x12")].has("ImageUploadEditing")&&e[us("0x3d")](us("0x8")),t[us("0x12")][us("0x49")](us("0x6"))&&t[us("0x12")][us("0x49")](us("0x35"))&&(e[us("0x3d")]("imageTypeInline",((r,i)=>{const o=n.getClosestSelectedImageElement(t[us("0x16")][us("0x2b")].selection);t[us("0x16")][us("0x19")]((()=>{e[us("0x36")](o,{commandName:us("0x14"),commandParams:[i]},[],"convertBlockImageToInline")}))})),e.enableCommand(us("0xc"),((r,i)=>{t[us("0x16")].change((o=>{let x=n[us("0xd")](t.model[us("0x2b")].selection),a=o[us("0x2e")](x);const c=s.LivePosition[us("0x5c")](a.start,us("0x56")),l=s.LivePosition[us("0x5c")](a[us("0x43")],us("0x1"));e[us("0x22")]((()=>r(i))),x=n.getClosestSelectedImageElement(t[us("0x16")].document[us("0x17")]),a=o.createRangeOn(x);const u=o[us("0x27")](c,l);c[us("0x5b")](),l.detach(),e[us("0x36")](x,{commandName:us("0x14"),commandParams:[i]},[],us("0x59")),u[us("0x24")].isBefore(a.start)&&e[us("0x5a")](o[us("0x27")](u[us("0x24")],a.start),"convertInlineImageToBlock"),a[us("0x43")][us("0x58")](u.end)&&e[us("0x5a")](o.createRange(a[us("0x43")],u[us("0x43")]),us("0x59"))}))})),e[us("0x9")][us("0x32")]("formatBlock",us("0x59"),us("0x3b"),(()=>!1)),e[us("0x9")][us("0x32")]("formatBlock","convertInlineImageToBlock","accept",(()=>!1)),e[us("0x9")][us("0x32")]("formatBlock",us("0x59"),us("0x38"),e._suggestionFactory[us("0x4c")](us("0x25"),"",us("0x57"))),e._suggestionFactory.registerCustomCallback(us("0x29"),us("0x59"),us("0x3b"),(()=>!1)),e[us("0x9")][us("0x32")](us("0x29"),us("0x59"),"discard",(([n])=>{const r=e[us("0x9")][us("0x4c")](us("0x29"),"",us("0x38"));let i=n[us("0x24")],o=n[us("0x43")];const s=t[us("0x16")][us("0x1a")].getNearestSelectionRange(i,us("0x51")),x=t[us("0x16")][us("0x1a")].getNearestSelectionRange(o,"forward");s[us("0x42")]&&(i=s[us("0x24")]),x[us("0x42")]&&(o=x[us("0x43")]),r([t[us("0x16")][us("0x27")](i,o)])})),e._suggestionFactory[us("0x32")](us("0x25"),us("0x59"),us("0x3a"),x),e[us("0x9")][us("0x32")](us("0x29"),us("0x59"),us("0x3a"),x)),t[us("0x12")][us("0x49")]("ImageCaptionEditing")&&(e[us("0x3d")](us("0x52"),((r,i)=>{const o=t.plugins[us("0x13")]("ImageCaptionUtils");let s=n[us("0xd")](t[us("0x16")].document[us("0x17")]),x=o[us("0xf")](s);t[us("0x16")].change((()=>{if(x)return void e[us("0x31")](t[us("0x16")][us("0x2e")](x));const a=n[us("0x4d")](s);r(i),s=n[us("0xd")](t.model[us("0x2b")].selection),x=o.getCaptionFromImageModelElement(s),e[us("0x5a")](t[us("0x16")][us("0x2e")](x),a?null:us("0x21"))}))})),e[us("0x9")][us("0x32")](us("0x29"),us("0x21"),us("0x3a"),x));const i=[{type:us("0x25"),subType:us("0x4a")},{type:"insertion",subType:"imageCaption"},{type:us("0x25"),subType:us("0x59")},{type:us("0x29"),subType:us("0x59")}];function o(t,r){const o=i[us("0x2f")]((({type:e,subType:n})=>t[us("0x4b")]==e&&t[us("0xa")]==n)),s=i[us("0x2f")]((({type:t,subType:e})=>r[us("0x4b")]==t&&r[us("0xa")]==e));if(o<0||s<0)return!1;const x=t[us("0x15")](),a=r[us("0x15")]();if((0==o||1==o)&&2==s&&x[us("0x41")](a))return!0;if(2==o&&3==s){const t=e[us("0x18")](x,us("0x29"))[us("0x4")]((({suggestion:t,meta:e})=>e[us("0x45")]&&"convertInlineImageToBlock"==t[us("0xa")]));if(t[us("0x1e")]>1&&a[us("0x43")][us("0x2a")](x[us("0x24")]))return!0;if(1==t.length&&(x.start[us("0x2a")](a.end)||x[us("0x43")][us("0x2a")](a[us("0x24")])))return!0}if(3==o&&3==s&&x[us("0x24")][us("0x58")](a.start)){const t=x[us("0x43")][us("0x40")],e=a.start.nodeBefore;return n[us("0x4d")](t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t[us("0x12")][us("0x49")](us("0x37"))&&(e[us("0x5")](us("0x50"),[],[us("0x44")]),e[us("0x3c")][us("0x26")](us("0x44"),Yr(r,us("0xe")))),t[us("0x12")][us("0x49")]("ImageTextAlternativeEditing")&&e[us("0x5")](us("0x2"),[],[us("0x1b")]),e[us("0x3c")][us("0x1c")]((t=>{if(i[us("0x11")]((({type:e,subType:n})=>t.type==e&&t[us("0xa")]==n)))return t.previous?{}:void 0})),e[us("0x3c")].registerDescriptionCallback((t=>{if(us("0x29")==t[us("0x4b")]||us("0xb")==t.type){const e=t[us("0x34")]();if(e&&e.is(us("0x33"),us("0x55")))return{type:"insertion"==t[us("0x4b")]?us("0x1f"):us("0x53"),element:e,quantity:1}}})),e[us("0x3c")][us("0x1c")]((t=>us("0x25")==t[us("0x4b")]&&"convertInlineImageToBlock"==t[us("0xa")]?{type:us("0x47"),content:us("0x3f")}:us("0x25")==t[us("0x4b")]&&us("0x4e")==t[us("0xa")]?{type:us("0x47"),content:us("0x1d")}:void 0)),e._descriptionFactory[us("0x1c")]((t=>{if(us("0x7")!=t[us("0x4b")])return;const{data:e}=t;if(!e||"alt"!=e.key)return;const n=e[us("0x3e")];return n?{type:us("0x47"),content:Yr(r,"*Set image text alternative:* %0",'"'+n+'"')}:{type:us("0x47"),content:Yr(r,us("0x30"))}})),this[us("0x0")]()}[us("0x0")](){const t=this.editor,e=t[us("0x23")];t[us("0x12")][us("0x13")](us("0x10"))[us("0x3c")][us("0x1c")]((t=>{if("formatBlock"!=t[us("0x4b")]&&us("0x2d")!=t.type)return;const{data:n}=t;if(n){if(us("0x2")==n[us("0x54")]){const t=n.commandParams[0].newValue;return t?{type:us("0x47"),content:Yr(e,"*Set image text alternative:* %0",'"'+t+'"')}:{type:us("0x47"),content:Yr(e,us("0x30"))}}if(us("0x50")==n[us("0x54")]){const t=n.commandParams[0].width;return t?{type:us("0x47"),content:Yr(e,us("0x2c"),t)}:{type:us("0x47"),content:Yr(e,"*Reset image width*")}}}}))}}const gs=["replaceImageSource","format","commandName","attribute","_suggestionFactory","src","afterInit","registerDescriptionCallback","accept","type","newValue","registerCustomCallback","get","editor","_registerLegacyDescription","has","locale","key","TrackChangesEditing","formatInline","_descriptionFactory","getSuggestionCallback","*Format:* replace image URL","plugins","formatBlock"];var fs,hs;fs=gs,hs=237,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class bs extends t.Plugin{[ms("0x13")](){if(!this.editor.plugins[ms("0x3")]("ImageEditing"))return;const t=this[ms("0x1")][ms("0x4")],e=this[ms("0x1")].plugins.get("TrackChangesEditing");e._enableDefaultAttributesIntegration(ms("0xd"),[],[ms("0x12")]),e[ms("0x8")][ms("0x14")]((e=>{if(ms("0x10")!=e[ms("0x16")])return;const{data:n}=e;return n&&ms("0x12")==n[ms("0x5")]?n[ms("0x17")]&&n.oldValue?{type:"format",content:Yr(t,"*Replace image URL*")}:{type:ms("0xe"),content:""}:void 0})),this._handleLegacySuggestions()}_handleLegacySuggestions(){const t=this[ms("0x1")][ms("0xb")][ms("0x0")](ms("0x6"));t[ms("0x11")][ms("0x18")]("formatBlock",ms("0xd"),ms("0x15"),t[ms("0x11")][ms("0x9")](ms("0xc"),null,"discard")),t._suggestionFactory[ms("0x18")](ms("0xc"),ms("0xd"),"discard",t[ms("0x11")][ms("0x9")](ms("0xc"),null,ms("0x15"))),this[ms("0x2")]()}[ms("0x2")](){const t=this.editor,e=t[ms("0x4")];t[ms("0xb")][ms("0x0")](ms("0x6"))[ms("0x8")][ms("0x14")]((t=>{if(ms("0xc")!=t[ms("0x16")]&&ms("0x7")!=t.type)return;const{data:n}=t;return n&&ms("0xd")==n[ms("0xf")]?{type:ms("0xe"),content:Yr(e,ms("0xa"))}:void 0}))}}const ps=["has","getSuggestion","chain","toLowerCase","createRangeOn","length","editor","convertInlineImageToBlock","_descriptionFactory","imageTypeInline","nodeAfter","from","getChangedMarkers","insertion","end","title","registerCustomCallback","_splitMarkerName","isBlockImage","_registerLegacyDescription","isBefore","markBlockFormat","next","document","ImageStyleEditing","forEach","markInlineFormat","value","selection","isInContent","discard","model","shouldConvertImageType","newRange","suggestion","filter","Users","name","getContainedElement","commandName","setImageNaturalSizeAttributes","join","normalizedStyles","getFirstRange","isInlineImage","_suggestionFactory","side","imageStylePostApply","imageTypeBlock","refresh","author","type","isOwn","TrackChangesEditing","imageStylePreApply","commandReversedParams","formatBlock","registerPostFixer","start","isEqual","accept","imageCaption","FORMAT_SIDE_IMAGE","_findSuggestions","get","commandParams","getClosestSelectedImageElement","imageStyle","subType","differ","nodeBefore","enableCommand","findIndex","plugins","formatInline","commands","discardSuggestion"];var Es,_s;Es=ps,_s=499,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return ps[t-=0]};class ys extends t.Plugin{afterInit(){const t=this[Ts("0x2e")];if(!t[Ts("0x24")][Ts("0x28")](Ts("0x40")))return;const n=t[Ts("0x24")][Ts("0x1b")]("TrackChangesEditing"),r=t[Ts("0x24")][Ts("0x1b")]("ImageUtils"),i={};n[Ts("0x22")](Ts("0x1e"),((i,o)=>{const s=t[Ts("0x24")][Ts("0x1b")](Ts("0x4c")).me,x=t[Ts("0x26")][Ts("0x1b")](Ts("0x1e"));let a=r[Ts("0x1d")](t.model[Ts("0x3f")][Ts("0x44")]),c=t[Ts("0x47")].createRangeOn(a),l=x[Ts("0x43")];if(l==o[Ts("0x43")])return;const u={commandName:"imageStyle",commandParams:[o],formatGroupId:(0,e.uid)()};t[Ts("0x47")].change((()=>{if(n.getSuggestions()[Ts("0x4b")]((t=>t[Ts("0x45")]&&s==t[Ts("0xd")]&&(Ts("0x13")==t[Ts("0xe")]||"formatInline"==t.type)&&(Ts("0x11")==t[Ts("0x1f")]||Ts("0xa")==t[Ts("0x1f")])&&t.getFirstRange()[Ts("0x16")](c)))[Ts("0x41")]((t=>n[Ts("0x27")](t.head))),a=r[Ts("0x1d")](t[Ts("0x47")][Ts("0x3f")].selection),c=t[Ts("0x47")][Ts("0x2c")](a),x[Ts("0xc")](),t[Ts("0x26")][Ts("0x1b")](Ts("0x31"))[Ts("0xc")](),t[Ts("0x26")].get(Ts("0xb"))[Ts("0xc")](),l=x[Ts("0x43")],l!=o[Ts("0x43")])return r[Ts("0x7")](a)&&x[Ts("0x48")](o.value,a)?(i({...o,setImageSizes:!1}),a=r[Ts("0x1d")](t[Ts("0x47")][Ts("0x3f")].selection),void n[Ts("0x3d")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],Ts("0x11"))):void(r[Ts("0x3a")](a)?n[Ts("0x3d")](a,u,[],Ts("0xa")):n[Ts("0x42")](c,u,Ts("0xa")))}))}));for(const e of t.plugins[Ts("0x1b")](Ts("0x40"))[Ts("0x5")])i[e[Ts("0x0")]]=e[Ts("0x37")][Ts("0x2b")]();n._suggestionFactory[Ts("0x38")](Ts("0x13"),"imageStylePreApply",Ts("0x4"),(()=>!1)),n[Ts("0x8")].registerCustomCallback(Ts("0x13"),Ts("0xa"),Ts("0x4"),(()=>!1)),n[Ts("0x8")][Ts("0x38")](Ts("0x25"),Ts("0xa"),Ts("0x4"),(()=>!1)),n[Ts("0x8")][Ts("0x38")](Ts("0x13"),"imageStylePreApply",Ts("0x17"),(([t])=>{r[Ts("0x3")](t[Ts("0x1")]())})),n[Ts("0x8")][Ts("0x38")](Ts("0x13"),Ts("0x11"),Ts("0x46"),((t,e)=>{n[Ts("0x8")].getSuggestionCallback(Ts("0x13"),"",Ts("0x17"))(t,{commandName:e[Ts("0x2")],commandParams:e[Ts("0x12")]})})),n[Ts("0x8")][Ts("0x38")](Ts("0x13"),Ts("0x11"),Ts("0x2a"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:Ts("0x13"),subType:"imageStylePreApply"},{type:Ts("0x35"),subType:"imageCaption"},{type:Ts("0x13"),subType:"convertInlineImageToBlock"},{type:"insertion",subType:Ts("0x2f")}];function s(t,e){const i=o[Ts("0x23")]((({type:e,subType:n})=>t[Ts("0xe")]==e&&t.subType==n)),s=o[Ts("0x23")]((({type:t,subType:n})=>e[Ts("0xe")]==t&&e[Ts("0x1f")]==n));if(i<0||s<0)return!1;const x=t[Ts("0x6")](),a=e[Ts("0x6")]();if((0==i||1==i)&&2==s&&x.isIntersecting(a))return!0;if(2==i&&3==s){const t=n[Ts("0x1a")](x,Ts("0x35"))[Ts("0x4b")]((({suggestion:t,meta:e})=>e[Ts("0xf")]&&Ts("0x2f")==t.subType));if(t[Ts("0x2d")]>1&&a.end[Ts("0x16")](x.start))return!0;if(1==t[Ts("0x2d")]&&(x[Ts("0x15")].isEqual(a[Ts("0x36")])||x[Ts("0x36")][Ts("0x16")](a[Ts("0x15")])))return!0}if(3==i&&3==s&&x.start[Ts("0x3c")](a[Ts("0x15")])){const t=x[Ts("0x36")][Ts("0x32")],e=a[Ts("0x15")][Ts("0x21")];return r[Ts("0x3a")](t)&&t===e}return!1}t[Ts("0x47")][Ts("0x3f")][Ts("0x14")]((()=>{let e=!1;const i=Array[Ts("0x33")](t.model[Ts("0x3f")][Ts("0x20")][Ts("0x34")]());for(const{name:t,data:o}of i){const{group:i,type:s,subType:x,id:a}=n[Ts("0x39")](t);if(Ts("0x4a")==i&&n.hasSuggestion(a)){if(Ts("0x13")==s&&("imageStylePreApply"==x||Ts("0xa")==x)){const t=n[Ts("0x29")](a);if(o[Ts("0x49")]){const i=t[Ts("0x6")]()[Ts("0x1")]();if(r[Ts("0x3a")](i))continue;n[Ts("0x27")](t),e=!0}}if(Ts("0x35")==s&&Ts("0x18")==x&&!o[Ts("0x49")]){const t=n.getSuggestion(a);t.next&&t[Ts("0x3e")][Ts("0x45")]&&(n[Ts("0x27")](t.next),e=!0)}}}return e})),this[Ts("0x3b")](i)}_registerLegacyDescription(t){const e=this[Ts("0x2e")],n=e.locale;e[Ts("0x24")][Ts("0x1b")](Ts("0x10"))[Ts("0x30")].registerDescriptionCallback((e=>{if(Ts("0x13")!=e[Ts("0xe")]&&"formatInline"!=e[Ts("0xe")])return;const{data:r}=e;if(!r||"imageStyle"!=r[Ts("0x2")])return;const i=r[Ts("0x1c")][0][Ts("0x43")];return o=Ts("0x9")===i?Yr(n,Ts("0x19")):t[i]||i,{type:"format",content:Yr(n,"*Format:* %0",o)};var o}))}}const Cs=["editor","_trackChangesValueDuringImport","bind","TrackChangesEditing","dataInsert","importWord","afterInit","enableCommand","_trackChangesExecuted","execute","commands","lowest","value","get","trackChanges","listenTo","_handleImportedData","plugins","forEach","high","track_changes"];var As,ks;As=Cs,ks=152,function(t){for(;--t;)As.push(As.shift())}(++ks);const Is=function(t,e){return Cs[t-=0]};class Rs extends t.Plugin{constructor(t){super(t),this[Is("0x11")]=!1,this[Is("0x3")]=!1}[Is("0x1")](){const t=this.editor,e=t[Is("0x5")].get(Is("0x0")),n=t.commands[Is("0x8")]("trackChanges");e&&(e.on(Is("0x4"),((t,[,e])=>{this[Is("0x11")]=n[Is("0x7")],e.collaboration_features[Is("0xf")]=!this[Is("0x11")]}),{priority:Is("0xe")}),this[Is("0xa")](e,Is("0x14"),this[Is("0xb")][Is("0x12")](this)),this[Is("0xa")](e,Is("0x14"),(()=>{this[Is("0x3")]&&(n[Is("0x4")](),this._trackChangesExecuted=!1)}),{priority:Is("0x6")}),t[Is("0xc")].get(Is("0x13"))[Is("0x2")]("importWord"))}[Is("0xb")](t,e){const{suggestions:n}=e,r=this[Is("0x10")][Is("0x5")][Is("0x8")](Is("0x9")),i=r.value;this._trackChangesValueDuringImport!==i&&(r[Is("0x4")](),this[Is("0x3")]=!0),n&&n[Is("0xd")]((({id:t,type:e,author:n,created_at:r})=>{const i={id:t,type:e,authorId:this[Is("0x10")][Is("0xc")][Is("0x8")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:Is("0x0")}}};this[Is("0x10")][Is("0xc")][Is("0x8")]("TrackChangesEditing")._setSuggestionData(i)}))}}const vs=["enableCommand","locale","_enableDefaultAttributesIntegration","blockIndent","registerAttributeLabel","outdent","indent","editor","getItems","_descriptionFactory","afterInit","IndentEditing","registerDescriptionCallback","format","get","has","_registerLegacyDescription","_registerBlockAttribute","TrackChangesEditing","FORMAT_INDENT","IndentBlock","getItemLabel","plugins","commandName","indentBlock","outdentBlock"];var Ss,Ns;Ss=vs,Ns=321,function(t){for(;--t;)Ss.push(Ss.shift())}(++Ns);const Ls=function(t,e){return vs[t-=0]};class Ms extends t.Plugin{[Ls("0x1")](){const t=this[Ls("0x18")],e=t[Ls("0xd")][Ls("0x5")](Ls("0x9"));if(t[Ls("0xd")].has(Ls("0x2"))&&(e.enableCommand(Ls("0x17")),e[Ls("0x11")](Ls("0x16"))),t[Ls("0xd")][Ls("0x6")](Ls("0xb")))for(const t of[Ls("0xf"),Ls("0x10")])e[Ls("0x13")](t);const n=t[Ls("0x12")];e[Ls("0x8")](Ls("0x14")),e[Ls("0x0")][Ls("0x15")]("blockIndent",Yr(n,Ls("0xa"))),this[Ls("0x7")]()}_registerLegacyDescription(){const t=this[Ls("0x18")],e=t[Ls("0x12")],n=t[Ls("0xd")][Ls("0x5")](Ls("0x9"));n._descriptionFactory[Ls("0x3")]((t=>{if("formatBlock"!=t.type)return;const{data:r}=t;if(!r)return;if("indentBlock"!=r[Ls("0xe")]&&Ls("0x10")!=r.commandName)return;const i=t[Ls("0x19")]()[0],o=n[Ls("0x0")][Ls("0xc")](i);return Ls("0xf")==r[Ls("0xe")]?{type:Ls("0x4"),content:Yr(e,"*Indent:* %0",o)}:"outdentBlock"==r[Ls("0xe")]?{type:Ls("0x4"),content:Yr(e,"*Outdent:* %0",o)}:void 0}))}}var ws,Os,Fs=["enableCommand","get","requires","plugins","TrackChangesEditing","init","editor"];ws=Fs,Os=445,function(t){for(;--t;)ws.push(ws.shift())}(++Os);var Ds=function(t,e){return Fs[t-=0]};class Ps extends t.Plugin{static get[Ds("0x5")](){return[qi.Input]}[Ds("0x1")](){this[Ds("0x2")][Ds("0x6")][Ds("0x4")](Ds("0x0"))[Ds("0x3")]("input")}}const Bs=["locale","registerDescriptionCallback","manualDecorators","TrackChangesEditing","unlink","editor","toLowerCase","commandName","registerAttributeLabel","*Remove link*","linkHref","get","commandParams","_enableDefaultAttributesIntegration","link","_registerLegacyDescription","*Set link:* %0","commands","plugins","key","LinkEditing","newValue","attribute","type","label","format","_descriptionFactory","has","formatInline"];var Us,js;Us=Bs,js=374,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Bs[t-=0]};class Vs extends t.Plugin{afterInit(){const t=this[Gs("0x8")];if(!t.plugins[Gs("0x1")](Gs("0x17")))return;const e=t[Gs("0x15")][Gs("0xe")](Gs("0x6")),n=t[Gs("0x14")].get(Gs("0x11"));e[Gs("0x10")]("link",[Gs("0xd"),...n.manualDecorators.map((t=>t.id))]),e[Gs("0x10")]("unlink");for(const t of n[Gs("0x5")])e[Gs("0x0")][Gs("0xb")](t.id,"link ("+t[Gs("0x1b")][Gs("0x9")]()+")");e[Gs("0x0")][Gs("0x4")]((e=>{if(Gs("0x19")!=e[Gs("0x1a")])return;const{data:n}=e;if(!n||Gs("0xd")!=n[Gs("0x16")])return;const r=n[Gs("0x18")],i=t[Gs("0x3")];return{type:Gs("0x1c"),content:null==r?Yr(i,Gs("0xc")):Yr(i,"*Set link:* %0",'"'+r+'"')}})),this[Gs("0x12")]()}_registerLegacyDescription(){const t=this.editor,e=t[Gs("0x3")];t.plugins[Gs("0xe")](Gs("0x6"))[Gs("0x0")][Gs("0x4")]((t=>{if(Gs("0x2")!=t.type)return;const{data:n}=t;if(n){if(Gs("0x11")==n[Gs("0xa")]){const t=n[Gs("0xf")][0];return{type:"format",content:Yr(e,Gs("0x13"),'"'+t+'"')}}return Gs("0x7")==n[Gs("0xa")]?{type:"format",content:Yr(e,"*Remove link*")}:void 0}}))}}const Hs=["commands","before","*Change to:* %0","bulletedList","parent","editor","formatBlock","selection","model","registerElementLabel","get","value","previousSibling","add","ELEMENT_BULLETED_LIST","getSelectedBlocks","getAttribute","isObject","end","indentList","numberedList","enableCommand","createPositionAt","_descriptionFactory","locale","checkChild","name","push","List","commandName","change","listItem","outdentList","listIndent","length","format","commandParams","filter","LegacyTodoListEditing","ELEMENT_NUMBERED_LIST","markBlockFormat","*Outdent:* %0","formatInline","nextSibling","document","blockName","execute","findIndex","from","todo","has","todoList","checkTodoList","ELEMENT_LIST_ITEM","element","plugins","*Indent:* %0","type","ELEMENT_TODO_LIST","paragraph"];var zs,Ws;zs=Hs,Ws=290,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Ks=function(t,e){return Hs[t-=0]};class qs extends t.Plugin{afterInit(){const t=this[Ks("0xf")],e=t[Ks("0x22")];if(!t.plugins[Ks("0x0")]("LegacyListEditing"))return;const n=t.plugins.get("TrackChangesEditing"),r=t[Ks("0x5")][Ks("0x0")](Ks("0x30"));function i(e){return()=>{const r=t[Ks("0x12")][Ks("0x36")][Ks("0x11")],i=t[Ks("0xa")][Ks("0x14")](e);if(i.value)return void t[Ks("0x38")](Ks("0x9"),{});const o=e.slice(0,-4),s=function(t,e,n){let r=Array[Ks("0x3a")](t)[Ks("0x2f")]((t=>{return e=t,(r=n)[Ks("0x23")](e[Ks("0xe")],Ks("0x29"))&&!r[Ks("0x1b")](e);var e,r}));r=r[Ks("0x2f")]((t=>!t.is("element",Ks("0x29"))||t[Ks("0x1a")]("listType")!=e));const i=new Set;for(const t of r)t.is(Ks("0x4"),Ks("0x29"))?i[Ks("0x17")]($s(t)):i[Ks("0x17")](t);return Array.from(i)}(r[Ks("0x19")](),o,t[Ks("0x12")].schema);t[Ks("0x12")].change((()=>{for(const t of s)n[Ks("0x32")](t,{commandName:e,commandParams:[{forceValue:!i.value}],formatGroupId:Ks("0x37")},Xs(t))}))}}function o(e){return()=>{const r=function(t){let e=Array.from(t);const n=e[Ks("0x39")]((t=>Ks("0x29")!=t[Ks("0x24")]));return n>-1&&(e=e.slice(0,n)),e}(t[Ks("0x12")][Ks("0x36")].selection[Ks("0x19")]()),i=t.model.createRange(t[Ks("0x12")][Ks("0x20")](r[0],Ks("0xb")),t[Ks("0x12")][Ks("0x20")](r[r[Ks("0x2c")]-1],Ks("0x1c")));t.model[Ks("0x28")]((()=>{n[Ks("0x32")](i,{commandName:e,commandParams:[],formatGroupId:Ks("0x2b")},function(t){const e=new Set;for(const n of t){let t=n[Ks("0x35")];for(;t&&t[Ks("0x1a")](Ks("0x2b"))>n[Ks("0x1a")]("listIndent");)e[Ks("0x17")](t),t=t[Ks("0x35")]}return Array[Ks("0x3a")](e)}(r))}))}}n[Ks("0x1f")](Ks("0x1e"),i(Ks("0x1e"))),n[Ks("0x1f")]("bulletedList",i(Ks("0xd"))),r&&n[Ks("0x1f")]("todoList",i(Ks("0x1"))),n.enableCommand(Ks("0x1d"),o(Ks("0x1d"))),n[Ks("0x1f")](Ks("0x2a"),o("outdentList")),r&&n[Ks("0x1f")](Ks("0x2"),(()=>{const e=t[Ks("0xa")][Ks("0x14")](Ks("0x2")),r=Array[Ks("0x3a")](e._selectedElements);r[Ks("0x2f")]((t=>t.getAttribute("todoListChecked")!=e.value)),t[Ks("0x12")][Ks("0x28")]((()=>{for(const t of r)n[Ks("0x32")](t,{commandName:Ks("0x2"),commandParams:[{forceValue:!e[Ks("0x15")]}]})}))})),n[Ks("0x21")][Ks("0x13")](Ks("0x29"),(t=>Yr(e,Ks("0x3"),t))),n[Ks("0x21")].registerDescriptionCallback((t=>{if(Ks("0x10")!=t[Ks("0x7")]&&Ks("0x34")!=t[Ks("0x7")])return;const{data:n}=t;if(n){if(Ks("0x1e")==n[Ks("0x27")]||"bulletedList"==n[Ks("0x27")]||"todoList"==n.commandName)switch(n[Ks("0x27")].replace(Ks("0x26"),"")){case"bulleted":return r(Yr(e,Ks("0x18")));case"numbered":return r(Yr(e,Ks("0x31")));case Ks("0x3b"):return r(Yr(e,Ks("0x8")))}if(Ks("0x1d")==n.commandName)return{type:"format",content:Yr(e,Ks("0x6"),Yr(e,Ks("0x3")))};if(Ks("0x2a")==n[Ks("0x27")])return{type:Ks("0x2d"),content:Yr(e,Ks("0x33"),Yr(e,"ELEMENT_LIST_ITEM"))};if(Ks("0x2")==n[Ks("0x27")])return n[Ks("0x2e")][0].forceValue?{type:"format",content:Yr(e,"*Check item*")}:{type:Ks("0x2d"),content:Yr(e,"*Uncheck item*")}}function r(t){return{type:Ks("0x2d"),content:Yr(e,Ks("0xc"),t)}}}))}}function $s(t){const e=t[Ks("0x1a")](Ks("0x2b"));if(0==e)return t;let n=t;for(;t[Ks("0x16")]&&t[Ks("0x16")].is("element",Ks("0x29"));){const r=t.previousSibling[Ks("0x1a")](Ks("0x2b"));if(r==e)n=t[Ks("0x16")];else if(r<e)break;t=t.previousSibling}return n}function Xs(t){const e=[];if(t.is(Ks("0x4"),Ks("0x29"))&&t[Ks("0x1a")](Ks("0x2b"))>0){let n=t[Ks("0x35")];for(;n&&Ks("0x29")==n[Ks("0x24")]&&n[Ks("0x1a")](Ks("0x2b"))==t[Ks("0x1a")]("listIndent");)e[Ks("0x25")](n),n=n.nextSibling}return e}const Zs=["TrackChangesEditing","listStyle","listReversed","getSelectedBlocks","bind","ELEMENT_","enableCommand","_LIST_","_getSuggestionBlocks","getFirstPosition","createRange","listItem","toUpperCase","listStart","change","filter","LegacyListPropertiesEditing","markMultiRangeBlockFormat","format","before","getLastPosition","parent","_getTranslationKeyForListStyle","numbered","push","selection","forward","element","locale","get","flat","listType","*Format:* set order to reversed","formatBlock","type","model","from","*Format:* set order to regular","document","_getSuggestionBlocksForListStyle","length","formatInline","afterInit","map","backward","list.properties","handleListReversedCommand","config","getAttribute","createPositionAt","reversed","getSiblingNodes","LegacyListUtils","commandParams","startIndex","styles","editor","*Change to:* %0","plugins","getListTypeFromListStyleType","handleListStartCommand","*Format:* set start index to %0","has","unshift","handleListStyleCommand","replace"];var Qs,Ys;Qs=Zs,Ys=347,function(t){for(;--t;)Qs.push(Qs.shift())}(++Ys);const Js=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{[Js("0x19")](){if(!this[Js("0x27")][Js("0x29")][Js("0x2d")](Js("0x41")))return;const t=this[Js("0x27")][Js("0x1e")].get(Js("0x1c")),e=this.editor[Js("0x29")][Js("0xc")](Js("0x31"));t[Js("0x26")]&&e[Js("0x37")]("listStyle",this[Js("0x2f")][Js("0x35")](this)),t[Js("0x21")]&&e[Js("0x37")](Js("0x33"),this[Js("0x1d")][Js("0x35")](this)),t[Js("0x25")]&&e.enableCommand(Js("0x3e"),this[Js("0x2b")].bind(this)),e._descriptionFactory.registerDescriptionCallback(this.handleDescriptions[Js("0x35")](this))}[Js("0x2f")](t,e={}){const n=this[Js("0x27")][Js("0x29")].get(Js("0x31")),r=this[Js("0x16")]();this[Js("0x27")][Js("0x12")][Js("0x3f")]((()=>{n[Js("0x0")](r,{commandName:Js("0x32"),commandParams:[{type:e.type}],formatGroupId:Js("0x32")})}))}[Js("0x1d")](t,e={}){const n=this.editor[Js("0x29")][Js("0xc")]("TrackChangesEditing"),r=this._getSuggestionBlocks((t=>t.is(Js("0xa"),Js("0x3c"))&&Js("0x6")===t[Js("0x1f")](Js("0xe"))));if(r[Js("0x17")]<1)return;const i=r[Js("0x1a")]((t=>this[Js("0x27")][Js("0x12")].createRange(this[Js("0x27")].model[Js("0x20")](t,Js("0x2")),this[Js("0x27")][Js("0x12")][Js("0x20")](t,0))));this[Js("0x27")][Js("0x12")][Js("0x3f")]((()=>{n[Js("0x0")](i,{commandName:Js("0x33"),commandParams:[{reversed:e[Js("0x21")]}],formatGroupId:"listReversed"})}))}[Js("0x2b")](t,e={}){const n=this[Js("0x27")].plugins[Js("0xc")]("TrackChangesEditing"),r=this[Js("0x39")]((t=>t.is("element",Js("0x3c"))&&"numbered"===t.getAttribute(Js("0xe"))));if(r[Js("0x17")]<1)return;const i=r[Js("0x1a")]((t=>this[Js("0x27")][Js("0x12")][Js("0x3b")](this[Js("0x27")][Js("0x12")][Js("0x20")](t,Js("0x2")),this[Js("0x27")][Js("0x12")][Js("0x20")](t,0))));this[Js("0x27")].model.change((()=>{n[Js("0x0")](i,{commandName:Js("0x3e"),commandParams:[{startIndex:e.startIndex}],formatGroupId:Js("0x3e")})}))}handleDescriptions(t){if(Js("0x10")!=t[Js("0x11")]&&Js("0x18")!=t.type)return;const e=this.editor[Js("0xb")],{data:n}=t;if(!n)return;let r,i;switch(n.commandName){case Js("0x32"):r=Js("0x28"),i={type:Js("0x1"),content:Yr(e,r,Yr(e,this[Js("0x5")](n[Js("0x24")][0][Js("0x11")])))};break;case Js("0x33"):r=n.commandParams[0].reversed?Js("0xf"):Js("0x14"),i={type:"format",content:Yr(e,r)};break;case Js("0x3e"):r=Js("0x2c"),i={type:Js("0x1"),content:Yr(e,r,n[Js("0x24")][0][Js("0x25")])}}return i}[Js("0x16")](){var t,e,n,r;const i=this[Js("0x27")].plugins[Js("0xc")](Js("0x23"));let o=Array[Js("0x13")](this[Js("0x27")][Js("0x12")].document[Js("0x8")].getSelectedBlocks());return(null===(t=o[0])||void 0===t?void 0:t.is(Js("0xa"),Js("0x3c")))&&o[Js("0x2e")](...i.getSiblingNodes(this[Js("0x27")].model[Js("0x15")][Js("0x8")][Js("0x3a")](),Js("0x1b"))),(null===(e=o[o[Js("0x17")]-1])||void 0===e?void 0:e.is(Js("0xa"),Js("0x3c")))&&o[Js("0x7")](...i[Js("0x22")](this[Js("0x27")][Js("0x12")][Js("0x15")][Js("0x8")][Js("0x3")](),"forward")),o=[...new Set(o)],(null===(r=null===(n=this[Js("0x27")][Js("0x12")][Js("0x15")].selection[Js("0x3a")]())||void 0===n?void 0:n[Js("0x4")])||void 0===r?void 0:r.is(Js("0xa"),Js("0x3c")))&&(o=o[Js("0x40")]((t=>t.is(Js("0xa"),Js("0x3c"))))),o}[Js("0x39")](t){const e=this[Js("0x27")].plugins.get("LegacyListUtils");let n=Array.from(this.editor[Js("0x12")][Js("0x15")][Js("0x8")][Js("0x34")]())[Js("0x40")](t)[Js("0x1a")]((t=>{const n=this.editor[Js("0x12")].createPositionAt(t,0);return[...e[Js("0x22")](n,Js("0x1b")),...e.getSiblingNodes(n,Js("0x9"))]}))[Js("0xd")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Js("0x36")+this[Js("0x27")][Js("0x29")].get("LegacyListUtils")[Js("0x2a")](t)[Js("0x3d")]()+Js("0x38")+t[Js("0x3d")]()[Js("0x30")](/-/g,"_")}}const ex=["conversion","attribute:url:media","data","high","div","registerElementLabel","options","createEmptyElement","editor","afterInit","showSuggestionHighlights","dataDowncast","elementToElement","plugins","media","get","locale","downcastDispatcher","stop"];var nx,rx;nx=ex,rx=444,function(t){for(;--t;)nx.push(nx.shift())}(++rx);const ix=function(t,e){return ex[t-=0]};class ox extends t.Plugin{[ix("0x2")](){const t=this[ix("0x1")];if(!t[ix("0x6")].has("MediaEmbedEditing"))return;const e=t[ix("0x6")][ix("0x8")]("TrackChangesEditing"),n=t[ix("0x9")];e.enableCommand("mediaEmbed"),e._descriptionFactory[ix("0x11")](ix("0x7"),(t=>Yr(n,"ELEMENT_MEDIA",t))),t[ix("0xc")].for(ix("0x4"))[ix("0x5")]({model:ix("0x7"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[ix("0x0")](ix("0x10"))},converterPriority:ix("0xf")}),t[ix("0xe")][ix("0xa")].on(ix("0xd"),((t,e,n)=>{n[ix("0x12")][ix("0x3")]&&t[ix("0xb")]()}),{priority:ix("0xf")})}}const sx=["MentionEditing","editor","TrackChangesEditing","plugins","afterInit","mention"];var xx,ax;xx=sx,ax=484,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{[cx("0x0")](){const t=this[cx("0x3")];t[cx("0x5")].has(cx("0x2"))&&t[cx("0x5")].get(cx("0x4")).enableCommand(cx("0x1"))}}const ux=["_descriptionFactory","plugins","registerElementLabel","afterInit","pageBreak","locale","PageBreakEditing","has","editor","get"];var dx,gx;dx=ux,gx=174,function(t){for(;--t;)dx.push(dx.shift())}(++gx);const fx=function(t,e){return ux[t-=0]};class hx extends t.Plugin{[fx("0x9")](){const t=this[fx("0x4")];if(!t.plugins[fx("0x3")](fx("0x2")))return;t[fx("0x7")][fx("0x5")]("TrackChangesEditing").enableCommand(fx("0x0"));const e=t[fx("0x7")].get("TrackChangesEditing"),n=t[fx("0x1")];e[fx("0x6")][fx("0x8")](fx("0x0"),(t=>Yr(n,"ELEMENT_PAGE_BREAK",t)))}}const mx=["isTouching","locale","checkChild","type","_registerLegacyDescription","activeMarkers","options","addClass","_enableDefaultAttributesIntegration","ELEMENT_PARAGRAPH","name","paragraph","ck-suggestion-marker--active","data","editing","consume","insertion","end","formatBlock","get","registerDescriptionCallback","commandName","editor","Paragraph","downcastDispatcher","ck-suggestion-marker-split","addMarker:suggestion:insertion","*Change to:* %0","consumable","_descriptionFactory","TrackChangesEditing","model","toViewPosition","highest","span","mapper","*Insert:* %0","getFirstRange","isBlock","schema","createUIElement","writer","nodeAfter","markerRange","afterInit","insert","markerName","bindElementToMarker","$text","includes","plugins","registerElementLabel"];var bx,px;bx=mx,px=221,function(t){for(;--t;)bx.push(bx.shift())}(++px);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{[Ex("0x1f")](){const t=this[Ex("0x9")];if(!t[Ex("0x25")].has(Ex("0xa")))return;const e=t[Ex("0x28")],n=t[Ex("0x25")][Ex("0x6")](Ex("0x11"));n._descriptionFactory[Ex("0x26")](Ex("0x32"),(t=>Yr(e,Ex("0x30"),t))),n[Ex("0x2f")](Ex("0x32")),n.enableCommand("insertParagraph"),t[Ex("0x1")][Ex("0xb")].on(Ex("0xd"),Tx(t),{priority:Ex("0x14")}),t[Ex("0x0")][Ex("0xb")].on(Ex("0xd"),((e,n,r)=>{r[Ex("0x2d")].showSuggestionHighlights&&Tx(t,{showActiveMarker:!1})(e,n,r)}),{priority:Ex("0x14")});const r=n[Ex("0x10")];r[Ex("0x7")]((n=>{if(Ex("0x3")!==n[Ex("0x2a")])return;const{start:i,end:o}=n[Ex("0x18")]();if(!i.isTouching(o)||!i[Ex("0x1d")])return;const s=t[Ex("0x12")].schema,x=i[Ex("0x1d")];return s[Ex("0x19")](x)&&!s.isLimit(x)&&s[Ex("0x29")](x,Ex("0x23"))?{type:Ex("0x3"),content:Yr(e,Ex("0x17"),r.getItemLabel(x,1))}:void 0})),this._registerLegacyDescription()}[Ex("0x2b")](){const t=this.editor,e=t[Ex("0x28")];t[Ex("0x25")].get("TrackChangesEditing")._descriptionFactory[Ex("0x7")]((t=>{if(Ex("0x5")!=t.type)return;const{data:n}=t;return n&&Ex("0x32")==n[Ex("0x8")]?{type:"format",content:Yr(e,Ex("0xe"),Yr(e,Ex("0x30")))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Ex("0x25")].get("TrackChangesEditing"),s=r.markerRange.start,x=r[Ex("0x1e")][Ex("0x4")],a=t[Ex("0x12")][Ex("0x1a")];if(!s[Ex("0x27")](x)||!s[Ex("0x1d")])return;const c=s.nodeAfter;if(a[Ex("0x19")](c)&&!a.isLimit(c)&&a.checkChild(c,Ex("0x23"))){if(!i[Ex("0xf")][Ex("0x2")](r[Ex("0x1e")],n[Ex("0x31")]))return;const t=i[Ex("0x1c")][Ex("0x1b")](Ex("0x15"),{class:Ex("0xc")}),s=i.mapper[Ex("0x13")](x);e&&o[Ex("0x2c")][Ex("0x24")](r[Ex("0x21")])&&i[Ex("0x1c")][Ex("0x2e")](Ex("0x33"),t),i[Ex("0x1c")][Ex("0x20")](s,t),i[Ex("0x16")][Ex("0x22")](t,r[Ex("0x21")])}}}const yx=["afterInit","formatInline","get","type","registerDescriptionCallback","format","TrackChangesEditing","locale","has","formatBlock","plugins","removeFormat","_enableDefaultAttributesIntegration","RemoveFormatEditing","_descriptionFactory"];var Cx,Ax;Cx=yx,Ax=452,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Ix extends t.Plugin{[kx("0xd")](){const t=this.editor;t[kx("0x8")][kx("0x6")](kx("0xb"))&&(t[kx("0x8")][kx("0x0")](kx("0x4"))[kx("0xa")](kx("0x9")),this._registerLegacyDescription())}_registerLegacyDescription(){const t=this.editor;t[kx("0x8")][kx("0x0")]("TrackChangesEditing")[kx("0xc")][kx("0x2")]((e=>{if(kx("0x7")!=e[kx("0x1")]&&kx("0xe")!=e[kx("0x1")])return;const{data:n}=e;return n&&kx("0x9")==n.commandName?{type:kx("0x3"),content:Yr(t[kx("0x5")],"*Remove all formatting*")}:void 0}))}}const Rx=["RestrictedEditingModeEditing","discardSelectedSuggestions","enableCommand","acceptSelectedSuggestions","trackChanges","goToPreviousRestrictedEditingException","acceptAllSuggestions","get","TrackChangesEditing","plugins","discardAllSuggestions"];var vx,Sx;vx=Rx,Sx=152,function(t){for(;--t;)vx.push(vx.shift())}(++Sx);const Nx=function(t,e){return Rx[t-=0]};class Lx extends t.Plugin{afterInit(){const t=this.editor;if(!t[Nx("0x0")].has(Nx("0x2")))return;const e=t[Nx("0x0")][Nx("0x9")](Nx("0xa"));e[Nx("0x4")](Nx("0x7")),e[Nx("0x4")]("goToNextRestrictedEditingException");const n=t[Nx("0x0")].get(Nx("0x2"));n[Nx("0x4")](Nx("0x6")),n[Nx("0x4")]("acceptSuggestion"),n[Nx("0x4")]("discardSuggestion"),n[Nx("0x4")](Nx("0x8")),n[Nx("0x4")](Nx("0x1")),n.enableCommand(Nx("0x5")),n[Nx("0x4")](Nx("0x3"))}}const Mx=["model","ELEMENT_LINE_BREAK","data","addMarker:suggestion:insertion","getItems","test","high","mapper","softBreak","requires","plugins","span","ck-suggestion-marker-","merge","options","registerElementLabel","enableCommand","activeMarkers","showSuggestionHighlights","downcastDispatcher","markerName","name","createPositionBefore","writer","consumable","addMarker:suggestion:deletion","markerRange","createUIElement","insert","ck-suggestion-marker--active","addClass","element","TrackChangesEditing","addMarker:suggestion","locale","split","get","init","_descriptionFactory"];var wx,Ox;wx=Mx,Ox=447,function(t){for(;--t;)wx.push(wx.shift())}(++Ox);const Fx=function(t,e){return Mx[t-=0]};class Dx extends t.Plugin{static get[Fx("0x1e")](){return[Eo.ShiftEnter]}[Fx("0x13")](){const t=this.editor,e=t.plugins[Fx("0x12")](Fx("0xe"));e[Fx("0x25")]("shiftEnter"),t.editing[Fx("0x1")].on(Fx("0x18"),Px(t),{priority:"high"}),t.editing[Fx("0x1")].on(Fx("0x7"),Px(t),{priority:Fx("0x1b")}),t[Fx("0x17")][Fx("0x1")].on(Fx("0xf"),((e,n,r)=>{r[Fx("0x23")][Fx("0x0")]&&Px(t,{showActiveMarker:!1})(e,n,r)})),e[Fx("0x14")][Fx("0x24")](Fx("0x1d"),(e=>Yr(t[Fx("0x10")],Fx("0x16"),e)))}}function Px(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Fx("0x1f")].get(Fx("0xe"));if(!i[Fx("0x6")][Fx("0x1a")](r[Fx("0x8")],n[Fx("0x3")]))return;const s=t[Fx("0x15")];for(const t of r[Fx("0x8")][Fx("0x19")]()){if(!t.is(Fx("0xd"),Fx("0x1d")))continue;const n="deletion"==r[Fx("0x2")].split(":")[1]?Fx("0x22"):Fx("0x11"),x=i[Fx("0x5")][Fx("0x9")](Fx("0x20"),{class:Fx("0x21")+n}),a=i.mapper.toViewPosition(s[Fx("0x4")](t));e&&o[Fx("0x26")].includes(r.markerName)&&i[Fx("0x5")][Fx("0xc")](Fx("0xb"),x),i[Fx("0x5")][Fx("0xa")](a,x),i[Fx("0x1c")].bindElementToMarker(x,r.markerName)}}}const Bx=["markInlineFormat","TrackChangesEditing","document","forceValue","formatInline","plugins","format","FORMAT_RESTRICTED_ENABLED","afterInit","get","restrictedEditingException","isCollapsed","enableCommand","getRanges","_descriptionFactory","model","type","formatBlock","commandParams","change","from"];var Ux,jx;Ux=Bx,jx=118,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Bx[t-=0]};class Vx extends t.Plugin{[Gx("0x10")](){const t=this.editor,e=t[Gx("0x2")],n=t.locale;if(!t[Gx("0xd")].has("StandardEditingModeEditing"))return;const r=t[Gx("0xd")].get(Gx("0x9")),i=Gx("0x12"),o=t.commands[Gx("0x11")](i);r[Gx("0x14")](i,((t,n={})=>{const s=e[Gx("0xa")].selection;if(s[Gx("0x13")])return void t(n);const x=void 0!==n.forceValue?n[Gx("0xb")]:!o.value;e[Gx("0x6")]((()=>{const t=Array[Gx("0x7")](s[Gx("0x0")]());for(const n of t){const t=x?[n]:Yi(i,n,e);for(const e of t)r[Gx("0x8")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),r[Gx("0x1")].registerDescriptionCallback((t=>{if(Gx("0x4")!=t[Gx("0x3")]&&Gx("0xc")!=t[Gx("0x3")])return;const{data:e}=t;return e&&e.commandName==i?e[Gx("0x5")][0][Gx("0xb")]?{type:Gx("0xe"),content:Yr(n,Gx("0xf"))}:{type:Gx("0xe"),content:Yr(n,"FORMAT_RESTRICTED_DISABLED")}:void 0}))}}const Hx=["style","commandParams","definitions","_registerBlockAttribute","FORMAT_STYLE","normalizeConfig","element","locale","StyleUtils","commandName","inline","_enableDefaultAttributesIntegration","add","styleName","getGhsAttributeNameForElement","_descriptionFactory","format","Style","config","*Set format:* %0","DataSchema","type","TrackChangesEditing","editor","forceValue","plugins","registerAttributeLabel","get","formatInline","afterInit","has","_registerLegacyDescription","toLowerCase"];var zx,Wx;zx=Hx,Wx=154,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{[Kx("0x7")](){const t=this[Kx("0x1")];if(!t[Kx("0x3")][Kx("0x8")](Kx("0x1c"))||!t[Kx("0x3")][Kx("0x8")](Kx("0x1f")))return;const e=t.plugins[Kx("0x5")](Kx("0x0")),n=t.locale,r=t[Kx("0x1d")][Kx("0x5")](Kx("0xb")),i=t[Kx("0x3")][Kx("0x5")]("GeneralHtmlSupport"),o=t[Kx("0x3")][Kx("0x5")](Kx("0x13"))[Kx("0x10")](t[Kx("0x3")][Kx("0x5")](Kx("0x1f")),r[Kx("0xd")]);e[Kx("0x16")](Kx("0xb"));const s=new Set;for(const t of o.block){const e=i[Kx("0x19")](t[Kx("0x11")]);s[Kx("0x17")](e)}const x=new Set;for(const t of o[Kx("0x15")]){const e=i[Kx("0x19")](t[Kx("0x11")]);x[Kx("0x17")](e);for(const e of t.ghsAttributes)x[Kx("0x17")](e)}for(const t of s)e[Kx("0xe")](t),e._descriptionFactory[Kx("0x4")](t,Yr(n,Kx("0xf")));for(const t of x)e._registerInlineAttribute(t),e[Kx("0x1a")][Kx("0x4")](t,Yr(n,Kx("0xf")));this[Kx("0x9")]()}[Kx("0x9")](){const t=this[Kx("0x1")],e=t[Kx("0x12")];t[Kx("0x3")][Kx("0x5")](Kx("0x0"))[Kx("0x1a")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Kx("0x20")]&&Kx("0x6")!=t[Kx("0x20")])return;const{data:n}=t;return n&&Kx("0xb")===n[Kx("0x14")]?n[Kx("0xc")][0][Kx("0x2")]?{type:"format",content:Yr(e,Kx("0x1e"),n[Kx("0xc")][0][Kx("0x18")][Kx("0xa")]())}:{type:Kx("0x1b"),content:Yr(e,"*Remove format:* %0",n[Kx("0xc")][0][Kx("0x18")][Kx("0xa")]())}:void 0}))}}const $x=["element","_descriptionFactory","ELEMENT_TABLE","insertion","join","first","minColumn","MIN_SAFE_INTEGER","registerPostFixer","$textProxy","plugins","execute","low","name","createTableWalker","ELEMENT_TABLE_ROW_WITH_TEXT","detach","item","ELEMENT_TABLE_WITH_TEXT","_splitMarkerName","tableCell","last","_suggestionFactory","ELEMENT_TABLE_ROW","getRanges","substr","registerDescriptionCallback","toViewElement","accept","insertTableColumnRight","table","insertTableRowBelow","position","subType","ELEMENT_TABLE_COLUMN_WITH_TEXT","colspan","isEqual","differ","*Remove:* %0","markMultiRangeDeletion","toLowerCase","addClass","refresh","$graveyard","left","length","mapper","filter","change:data","tableRow","every","enqueueChange","tableColumn","setSelection","batch","commands","removeClass","end","data","_getSuggestionCoords","_getCoordsForCells","getColumnIndexes","add","getFirstRange","_tableSuggestions","registerElementLabel","nodeBefore","cell","startsWith","enableCommand","isArray","change","getRowIndexes","hasAttribute","discard","findAncestor","ELEMENT_TABLE_COLUMN","start","tablePaste","fromRange","model","addRange","rootName","insertTableRowAbove","getChangedMarkers","span","afterInit","deletion","nodeAfter","markMultiRangeInsertion","rowspan","getAttribute","getContainedElement","addMarker:suggestion","getCellLocation","minRow","suggestion","selectTableRow","TrackChangesEditing","isInContent","getSelectionAffectedTableCells","_setupColumnsRowsFixing","insertTableColumnLeft","TableUtils","values","min","push","get","document","forceValue","root","has","map","createPositionAt","selectTableColumn","from","createRangeOn","classes","order","createRangeIn","getItems","registerCustomCallback","removeTableColumn","locale","isTouching","editor","*Insert:* %0","insert","insertTable","getChanges","above","max","type","some","removeTableRow"];var Xx,Zx;Xx=$x,Zx=201,function(t){for(;--t;)Xx.push(Xx.shift())}(++Zx);const Qx=function(t,e){return $x[t-=0]};class Yx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Qx("0x76"),Qx("0x79")],this[Qx("0x85")]=new Set}[Qx("0x14")](){const t=this[Qx("0x3b")],e=t[Qx("0xe")][Qx("0x2a")].selection;if(!t[Qx("0x4f")][Qx("0x2d")]("TableEditing"))return;const n=t[Qx("0x39")],r=t[Qx("0x4f")][Qx("0x29")](Qx("0x20")),i=t[Qx("0x4f")][Qx("0x29")](Qx("0x25"));r[Qx("0x46")][Qx("0x86")](Qx("0x63"),(t=>Yr(n,Qx("0x47"),t))),this[Qx("0x23")](),r[Qx("0x3")](Qx("0x3e")),r[Qx("0x3")](Qx("0x1f")),r[Qx("0x3")](Qx("0x30"));for(const n of[Qx("0x11"),Qx("0x64")]){const o=t[Qx("0x7c")].get(n);r[Qx("0x3")](n,(n=>{t[Qx("0xe")].change((t=>{n();const s=Qx("0x40")===o[Qx("0x34")],x=i[Qx("0x22")](e),a=i.getRowIndexes(x),c=s?a.first-1:a[Qx("0x5a")]+1,l=x[0][Qx("0x9")](Qx("0x63")),u=i[Qx("0x53")](l,{startRow:c,endRow:c}),d=Array.from(u)[Qx("0x2e")]((e=>t.createRangeOn(e.cell)));r[Qx("0x17")](d,Qx("0x76"))}))}))}for(const n of[Qx("0x24"),Qx("0x62")]){const o=t[Qx("0x7c")][Qx("0x29")](n);r[Qx("0x3")](n,(n=>{t[Qx("0xe")][Qx("0x5")]((t=>{n();const s=Qx("0x71")===o[Qx("0x34")],x=i[Qx("0x22")](e),a=i[Qx("0x82")](x),c=s?a[Qx("0x4a")]-1:a[Qx("0x5a")]+1,l=x[0][Qx("0x9")](Qx("0x63")),u=i[Qx("0x53")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Qx("0x31")](u).map((e=>t[Qx("0x32")](e[Qx("0x1")])));r.markMultiRangeInsertion(d,Qx("0x79"))}))}))}for(const n of["removeTableRow",Qx("0x38")]){const o=n[Qx("0x5e")](11),s=o[Qx("0x6d")](),x=s[Qx("0x5e")](0,3)+Qx("0x13"),a=Qx("0x63")+o,c=Qx("0x27")+o,l=Qx("0x41")+o;r.enableCommand(n,(()=>{t[Qx("0xe")][Qx("0x5")]((t=>{const o=i[Qx("0x22")](e),u=o[0][Qx("0x9")](Qx("0x63"));let d;if("removeTableRow"==n){const t=i[Qx("0x6")](o);d={startRow:t.first,endRow:t[Qx("0x5a")],includeAllSlots:!0}}else{const t=i[Qx("0x82")](o);d={startColumn:t[Qx("0x4a")],endColumn:t[Qx("0x5a")],includeAllSlots:!0}}const g=i[Qx("0x53")](u,d),f=Array.from(g)[Qx("0x2e")]((({cell:t})=>t)),h=Jx(f.filter((t=>t.hasAttribute(x)))),m=Jx(f[Qx("0x74")]((t=>!t[Qx("0x7")](x))))[Qx("0x2e")]((e=>t[Qx("0x32")](e))),b=r[Qx("0x6c")](m,a);if(b&&(Qx("0x76")==b[Qx("0x66")]||Qx("0x79")==b[Qx("0x66")])){const e=this[Qx("0x80")](b);for(const n of h){const r=t.createRangeOn(n),o=i[Qx("0x1c")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&b.addRange(r)}}}))}))}function o(n){const r=Array[Qx("0x31")](e[Qx("0x5d")]())[Qx("0x2e")]((t=>s.LiveRange[Qx("0xd")](t)));t[Qx("0xe")][Qx("0x5")]((e=>{const i=e[Qx("0x7b")];n=n[Qx("0x74")]((t=>Qx("0x70")!=t.root[Qx("0x10")])),e.setSelection(n),t.commands[Qx("0x29")]("removeTableRow")[Qx("0x6f")](),t[Qx("0x50")](Qx("0x44"),{forceDefaultExecution:!0}),t[Qx("0xe")][Qx("0x78")]((()=>{t[Qx("0xe")][Qx("0x78")](i,(t=>{const e=r[Qx("0x74")]((t=>Qx("0x70")!=t[Qx("0x2c")][Qx("0x10")]));e[Qx("0x72")]>0&&t[Qx("0x7a")](e);for(const t of r)t[Qx("0x55")]()}))}))}))}function a(n){t[Qx("0xe")].change((r=>{const i=Array[Qx("0x31")](e.getRanges())[Qx("0x2e")]((t=>s.LiveRange[Qx("0xd")](t))),o=[];for(const t of n)for(const e of t[Qx("0x36")]({shallow:!0}))o[Qx("0x28")](e);for(const e of o)"$graveyard"!=e[Qx("0x2c")].rootName&&(r[Qx("0x7a")](r[Qx("0x2f")](e,0)),t[Qx("0x7c")][Qx("0x29")](Qx("0x38")).refresh(),t[Qx("0x50")](Qx("0x38"),{forceDefaultExecution:!0}));const x=i[Qx("0x74")]((t=>Qx("0x70")!=t[Qx("0x2c")][Qx("0x10")]));x[Qx("0x72")]>0&&r[Qx("0x7a")](x);for(const t of i)t[Qx("0x55")]()}))}function c(t,e){return e[Qx("0x77")]((e=>t[Qx("0x43")]((t=>t[Qx("0x7e")][Qx("0x69")](e.start)||e[Qx("0x7e")][Qx("0x69")](t[Qx("0xb")])))))}function l(t,e){return t[Qx("0x43")]((t=>e[Qx("0x43")]((e=>t[Qx("0x7e")][Qx("0x3a")](e.start)))))}t[Qx("0x7f")].downcastDispatcher.on(Qx("0x1b"),((t,e,n)=>{if(!n.options.showSuggestionHighlights)return;const r=e[Qx("0x56")];if(!r)return;const i=n[Qx("0x73")][Qx("0x60")](r);function o(t){return Array[Qx("0x4")](t)?t:[t]}i&&Qx("0x59")===r[Qx("0x52")]&&(0,x.setHighlightHandling)(i,n.writer,((t,e,n)=>n[Qx("0x6e")](o(e[Qx("0x33")]),t)),((t,e,n)=>n[Qx("0x7d")](o(e[Qx("0x33")]),t)))}),{priority:"highest"}),r[Qx("0x46")][Qx("0x5f")]((t=>{if(Qx("0x48")!=t[Qx("0x42")]&&Qx("0x15")!=t.type)return;const e=t[Qx("0x1a")]();if(null!=e&&e.is(Qx("0x45"),Qx("0x63"))){if(Qx("0x48")==t[Qx("0x42")]){const e=t[Qx("0x36")]()[Qx("0x74")]((t=>t.is(Qx("0x4e")))).map((t=>t[Qx("0x7f")]));if(e[Qx("0x72")])return{type:Qx("0x48"),content:Yr(n,Qx("0x3c"),Yr(n,Qx("0x57"),'"'+e[Qx("0x49")](" ")+'"'))}}if(Qx("0x15")==t[Qx("0x42")]){const e=t[Qx("0x36")]()[Qx("0x74")]((t=>t.is("$textProxy"))).map((t=>t[Qx("0x7f")]));if(e[Qx("0x72")])return{type:Qx("0x15"),content:Yr(n,Qx("0x6b"),Yr(n,Qx("0x57"),'"'+e.join(" ")+'"'))}}}})),r._descriptionFactory.registerDescriptionCallback((t=>{if(Qx("0x76")==t[Qx("0x66")]){const e=t.getItems()[Qx("0x74")]((t=>t.is(Qx("0x4e")))).map((t=>t.data)),r=this[Qx("0x80")](t),i=r.maxRow-r[Qx("0x1d")]+1;if(Qx("0x48")==t[Qx("0x42")])return e[Qx("0x72")]?{type:Qx("0x48"),content:Yr(n,Qx("0x3c"),Yr(n,Qx("0x54"),[i,'"'+e[Qx("0x49")](" ")+'"']))}:{type:Qx("0x48"),content:Yr(n,Qx("0x3c"),Yr(n,Qx("0x5c"),i))};if(Qx("0x15")==t[Qx("0x42")])return e[Qx("0x72")]?{type:Qx("0x15"),content:Yr(n,Qx("0x6b"),Yr(n,Qx("0x54"),[i,'"'+e[Qx("0x49")](" ")+'"']))}:{type:Qx("0x15"),content:Yr(n,"*Remove:* %0",Yr(n,"ELEMENT_TABLE_ROW",i))}}if(Qx("0x79")==t[Qx("0x66")]){const e=t.getItems()[Qx("0x74")]((t=>t.is(Qx("0x4e"))))[Qx("0x2e")]((t=>t[Qx("0x7f")])),r=this._getSuggestionCoords(t),i=r.maxColumn-r[Qx("0x4b")]+1;if(Qx("0x48")==t[Qx("0x42")])return e[Qx("0x72")]?{type:Qx("0x48"),content:Yr(n,Qx("0x3c"),Yr(n,Qx("0x67"),[i,'"'+e.join(" ")+'"']))}:{type:Qx("0x48"),content:Yr(n,Qx("0x3c"),Yr(n,Qx("0xa"),i))};if(Qx("0x15")==t[Qx("0x42")])return e[Qx("0x72")]?{type:Qx("0x15"),content:Yr(n,Qx("0x6b"),Yr(n,Qx("0x67"),[i,'"'+e[Qx("0x49")](" ")+'"']))}:{type:"deletion",content:Yr(n,Qx("0x6b"),Yr(n,Qx("0xa"),i))}}})),r[Qx("0x5b")][Qx("0x37")]("insertion","tableRow",Qx("0x8"),o),r[Qx("0x5b")][Qx("0x37")](Qx("0x15"),Qx("0x76"),"accept",o),r[Qx("0x5b")][Qx("0x37")](Qx("0x48"),Qx("0x79"),Qx("0x8"),a),r._suggestionFactory.registerCustomCallback(Qx("0x15"),Qx("0x79"),Qx("0x61"),a),r._suggestionFactory[Qx("0x37")]("insertion",Qx("0x79"),Qx("0x49"),c),r[Qx("0x5b")][Qx("0x37")]("deletion","tableColumn",Qx("0x49"),c),r[Qx("0x5b")][Qx("0x37")](Qx("0x48"),Qx("0x76"),"join",l),r._suggestionFactory[Qx("0x37")](Qx("0x15"),Qx("0x76"),Qx("0x49"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Qx("0x3b")],e=t[Qx("0xe")][Qx("0x2a")].selection;return(n,r)=>{t[Qx("0xe")][Qx("0x5")]((i=>{const{commandName:o,commandParams:x}=r;let a=n[0][Qx("0x7e")][Qx("0x0")];x&&x[0]&&!1===x[0][Qx("0x2b")]&&(a=n[0].start.nodeAfter);const c=i[Qx("0x35")](a);if(Qx("0x70")==c[Qx("0x2c")][Qx("0x10")])return;const l=Array[Qx("0x31")](e.getRanges())[Qx("0x2e")]((t=>s.LiveRange[Qx("0xd")](t)));i[Qx("0x7a")](c),t[Qx("0x7c")][Qx("0x29")](o)[Qx("0x6f")](),x.push({forceDefaultExecution:!0}),t[Qx("0x50")](o,...x);const u=l.filter((t=>Qx("0x70")!=t[Qx("0x2c")][Qx("0x10")]));u[Qx("0x72")]>0&&i[Qx("0x7a")](u);for(const t of l)t[Qx("0x55")]()}))}}[Qx("0x81")](t){const e=this.editor[Qx("0x4f")][Qx("0x29")](Qx("0x25"));let n=Number.MAX_SAFE_INTEGER,r=Number[Qx("0x4c")],i=Number.MAX_SAFE_INTEGER,o=Number[Qx("0x4c")];for(const s of t){if("$graveyard"==s[Qx("0x2c")][Qx("0x10")])continue;const{row:t,column:x}=e[Qx("0x1c")](s),a=s[Qx("0x7")](Qx("0x18"))?s[Qx("0x19")]("rowspan")-1:0,c=s[Qx("0x7")]("colspan")?s[Qx("0x19")](Qx("0x68"))-1:0;n=t<n?t:n,r=t+a>r?t+a:r,i=x<i?x:i,o=x+c>o?x+c:o}return{minRow:n,maxRow:r,minColumn:i,maxColumn:o}}[Qx("0x23")](){const t=this[Qx("0x3b")],e=t[Qx("0x4f")][Qx("0x29")](Qx("0x20")),n=t[Qx("0x4f")][Qx("0x29")](Qx("0x25"));t[Qx("0xe")].document.on(Qx("0x75"),(()=>{const n=Array[Qx("0x31")](t[Qx("0xe")][Qx("0x2a")][Qx("0x6a")][Qx("0x12")]());for(const{name:t,data:r}of n){const{group:n,id:i,subType:o}=e[Qx("0x58")](t);if(Qx("0x1e")!=n)continue;if(null!=r.oldRange)continue;const s=e.getSuggestion(i);this._tablePostFixingSubtypes.includes(o)&&this[Qx("0x85")][Qx("0x83")](s)}}),{priority:Qx("0x51")});const r=(t,e)=>{let r=!1;const i=e[Qx("0x32")](t),o=t[Qx("0x9")](Qx("0x63")),s=n[Qx("0x1c")](t);for(const e of this[Qx("0x85")]){const n=e[Qx("0x66")],x=n[Qx("0x2")](Qx("0xc")),a=n[Qx("0x5e")](x?10:5),c=a[Qx("0x6d")](),l=c[Qx("0x5e")](0,3)+Qx("0x13"),u="min"+a,d=Qx("0x41")+a;if(!e[Qx("0x21")])continue;if(o!=e[Qx("0x84")]()[Qx("0xb")].findAncestor(Qx("0x63")))continue;if(e.isIntersectingWithRange(i))continue;const g=t.hasAttribute(l)?t[Qx("0x19")](l)-1:0,f=this[Qx("0x80")](e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e[Qx("0xf")](i),r=!0)}return r};t[Qx("0xe")].document[Qx("0x4d")]((e=>{let n=!1;for(const i of t[Qx("0xe")].document[Qx("0x6a")][Qx("0x3f")]())if(Qx("0x3d")==i[Qx("0x42")])if("tableRow"==i.name)for(const t of i[Qx("0x65")][Qx("0x16")].getChildren())n=n||r(t,e);else"tableCell"==i[Qx("0x52")]&&(n=n||r(i[Qx("0x65")].nodeAfter,e));return n}))}[Qx("0x80")](t){return this[Qx("0x81")](t.getRanges()[Qx("0x2e")]((t=>t[Qx("0xb")].nodeAfter)))}}function Jx(t){return Array.from(new Set(t)[Qx("0x26")]())}const ta=["element","findAncestor","length","mergeTableCellUp","rootName","cell","*Split cell:* horizontally","splitTableCellVertically","enableCommand","mergeTableCellRight","requires","low","document","getFirstPosition","detach","mergeTableCellLeft","afterInit","get","markMultiRangeBlockFormat","map","isInContent","setSelection","commands","splitTableCellHorizontally","_areMergableCells","value","_tablePostFixingSubtypes","root","fromRange","from","getSelectionAffectedTableCells","mergeTableCellDown","getCellLocation","createTableWalker","*Merge cells*","refresh","getRanges","model","registerCustomCallback","locale","size","set:isEnabled","TableEditing","formatBlock","accept","isEnabled","markBlockFormat","stop","has","tableCell","_descriptionFactory","_isForcedDefaultExecutionBlock","add","_areSelectedCellsMergable","highest","change","format","author","type","push","plugins","TableUtils","forceDefaultExecution","commandName","TrackChangesEditing","execute","horizontally","table","formatInline","selection","createRangeOn","trackChanges","containsRange","editor","mergeTableCells","direction","_suggestionFactory","getAncestors"];var ea,na;ea=ta,na=247,function(t){for(;--t;)ea.push(ea.shift())}(++na);const ra=function(t,e){return ta[t-=0]};class ia extends t.Plugin{static get[ra("0x4b")](){return[Yx]}[ra("0x3")](){const t=this[ra("0x3c")],e=t[ra("0x18")][ra("0x4d")][ra("0x38")],n=t[ra("0x1a")];if(!t.plugins[ra("0x23")](ra("0x1d")))return;const r=t.plugins[ra("0x4")](ra("0x33")),i=t[ra("0x2f")][ra("0x4")](ra("0x30")),o=t[ra("0x2f")][ra("0x4")](Yx);o[ra("0xd")][ra("0x2e")](ra("0x3d")),r.enableCommand("mergeTableCells",(()=>{const e=i.getSelectionAffectedTableCells(t[ra("0x18")].document[ra("0x38")]);t[ra("0x18")][ra("0x2a")]((()=>{r[ra("0x5")](e,{commandName:ra("0x3d"),commandParams:[]},[],ra("0x3d"))}))})),t[ra("0x9")][ra("0x4")](ra("0x3d")).on(ra("0x34"),((e,n)=>{t.commands[ra("0x4")](ra("0x3a"))[ra("0xc")]&&(n[ra("0x43")]>0&&n[n.length-1]&&n[n[ra("0x43")]-1][ra("0x31")]||r[ra("0x26")]||this[ra("0x28")]()||e[ra("0x22")]())}),{priority:ra("0x29")});for(const e of[ra("0x44"),ra("0x4a"),ra("0x12"),ra("0x2")]){const n=t.commands.get(e);r[ra("0x49")](e,(()=>{const e=t[ra("0x18")][ra("0x4d")][ra("0x38")][ra("0x0")]().getAncestors().find((t=>t.is(ra("0x41"),ra("0x24")))),i=n[ra("0xc")];t[ra("0x18")].change((()=>{r[ra("0x5")]([e,i],{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))}))}for(const e of["splitTableCellVertically","splitTableCellHorizontally"]){const n=t[ra("0x9")][ra("0x4")](e);r.enableCommand(e,(()=>{const o=i[ra("0x11")](t[ra("0x18")][ra("0x4d")][ra("0x38")])[0],s=o[ra("0x42")](ra("0x36")),{column:x,row:a}=i[ra("0x13")](o);let c=[];if(ra("0x35")==n[ra("0x3e")]){const t=i[ra("0x14")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ra("0x10")](t)[ra("0x6")]((t=>t[ra("0x46")]))}else{const t=i[ra("0x14")](s,{column:x,includeAllSlots:!0});c=Array[ra("0x10")](t)[ra("0x6")]((t=>t[ra("0x46")]))}t[ra("0x18")][ra("0x2a")]((t=>{r[ra("0x21")](t[ra("0x39")](o),{commandName:e,commandParams:[]},c,e)}))}))}r[ra("0x25")].registerDescriptionCallback((t=>{if(ra("0x1e")!=t[ra("0x2d")]&&"formatInline"!=t[ra("0x2d")])return;const{data:e}=t;return e&&ra("0x3d")==e.commandName?{type:"format",content:Yr(n,ra("0x15"))}:void 0})),r[ra("0x25")].registerDescriptionCallback((t=>{if(ra("0x1e")!=t[ra("0x2d")]&&ra("0x37")!=t[ra("0x2d")])return;const{data:e}=t;return e?ra("0x48")==e.commandName?{type:ra("0x2b"),content:Yr(n,"*Split cell:* vertically")}:"splitTableCellHorizontally"==e[ra("0x32")]?{type:"format",content:Yr(n,ra("0x47"))}:void 0:void 0}));const x=o._acceptFormatSuggestionCallbackFactory();for(const t of[ra("0x44"),ra("0x4a"),ra("0x12"),ra("0x2")])r._suggestionFactory.registerCustomCallback(ra("0x1e"),t,ra("0x1f"),x);for(const t of[ra("0x48"),ra("0xa")])r[ra("0x3f")][ra("0x19")](ra("0x1e"),t,ra("0x1f"),x);r[ra("0x3f")].registerCustomCallback(ra("0x1e"),ra("0x3d"),ra("0x1f"),(n=>{t[ra("0x18")][ra("0x2a")]((r=>{const i=Array[ra("0x10")](e[ra("0x17")]())[ra("0x6")]((t=>s.LiveRange[ra("0xf")](t)));r[ra("0x8")](n),t[ra("0x9")].get("mergeTableCells")[ra("0x16")](),t[ra("0x34")](ra("0x3d"),{forceDefaultExecution:!0});const o=i.filter((t=>"$graveyard"!=t[ra("0xe")][ra("0x45")]));o.length>0&&r.setSelection(o);for(const t of i)t[ra("0x1")]()}))}));for(const e of["mergeTableCellUp","mergeTableCellDown",ra("0x2"),"mergeTableCellRight"]){const n=t[ra("0x9")][ra("0x4")](e);n.on(ra("0x1c"),((e,r,i)=>{if(i){const r=t[ra("0x18")].document[ra("0x38")].getFirstPosition()[ra("0x40")]().find((t=>t.is("element",ra("0x24"))));this[ra("0xb")](n[ra("0xc")],r)||(e.return=!1,e[ra("0x22")]())}}),{priority:ra("0x4c")})}}[ra("0x28")](){const t=this[ra("0x3c")].commands[ra("0x4")](ra("0x3d")),e=this[ra("0x3c")].plugins[ra("0x4")](ra("0x30"));if(!t[ra("0x20")])return!1;const n=e[ra("0x11")](this[ra("0x3c")][ra("0x18")].document.selection);for(const t of n)for(const e of n)if(t!=e&&!this[ra("0xb")](t,e))return!1;return!0}[ra("0xb")](t,e){const n=this[ra("0x3c")].plugins[ra("0x4")]("TrackChangesEditing"),r=this[ra("0x3c")].model[ra("0x39")](t),i=this[ra("0x3c")][ra("0x18")][ra("0x39")](e),o=new Set,s=new Set;for(const t of n.getSuggestions())if(("insertion"==t.type||"deletion"==t.type||"mergeTableCells"==t.subType)&&t[ra("0x7")])for(const e of t[ra("0x17")]())e.containsRange(r,!0)&&o[ra("0x27")](t.type+":"+t[ra("0x2c")].id),e[ra("0x3b")](i,!0)&&s[ra("0x27")](t[ra("0x2d")]+":"+t[ra("0x2c")].id);if(o[ra("0x1b")]!=s[ra("0x1b")])return!1;for(const t of o)if(!s.has(t))return!1;return!0}}const oa=["highest","downcastDispatcher","_handleLegacySuggestions","FORMAT_HEADER_ROW","addClass","bindElementToMarker","stop","headingRows","*Format:* %0","registerDescriptionCallback","getSuggestion","nodeBefore","afterInit","plugins","locale","headingColumns","requires","forceValue","get","setTableColumnHeader","commandParams","setTableRowHeader","_splitMarkerName","_descriptionFactory","writer","addMarker:suggestion","FORMAT_HEADER_COLUMN","editing","nodeAfter","mapper","ck-suggestion-marker--active","cell","registerCustomCallback","name","activeMarkers","_suggestionFactory","parent","data-suggestion","commandName","has","type","removeMarker:suggestion","TrackChangesEditing","markerName","markerNameToElements","markerRange","_acceptFormatSuggestionCallbackFactory","accept","unbindElementFromMarkerName","_registerLegacyDescription","FORMAT_REGULAR_ROW","format","createTableWalker","registerAttributeLabel","ck-suggestion-marker-","getCellLocation","formatBlock","data","toViewElement","_enableDefaultAttributesIntegration","editor"];var sa,xa;sa=oa,xa=256,function(t){for(;--t;)sa.push(sa.shift())}(++xa);const aa=function(t,e){return oa[t-=0]};class ca extends t.Plugin{static get[aa("0x4")](){return[Yx]}[aa("0x0")](){const t=this.editor;if(!t[aa("0x1")][aa("0x1b")]("TableEditing"))return;const e=t[aa("0x2")],n=t[aa("0x1")].get(aa("0x1e"));n[aa("0x2f")]("setTableRowHeader",[],[aa("0x38")]),n._enableDefaultAttributesIntegration(aa("0x7"),[],[aa("0x3")]),n._descriptionFactory.registerAttributeLabel(aa("0x38"),Yr(e,aa("0x34"))),n[aa("0xb")][aa("0x29")](aa("0x3"),Yr(e,aa("0xe"))),this._handleLegacySuggestions()}[aa("0x33")](){const t=this[aa("0x30")][aa("0x1")][aa("0x6")](aa("0x1e")),e=this[aa("0x30")][aa("0x1")][aa("0x6")]("TableUtils"),n=this[aa("0x30")][aa("0x1")][aa("0x6")](Yx)[aa("0x22")]();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(i,o,s)=>{const{type:x,id:a}=t[aa("0xa")](o[aa("0x1f")]),c=t[aa("0x3b")](a),l=c[aa("0x2d")];if("formatBlock"!=c.type||!l||aa("0x7")!=l[aa("0x1a")])return;if(o.item)return void i[aa("0x37")]();if(!s.consumable.consume(o[aa("0x21")],i[aa("0x15")]))return;const u=o[aa("0x21")].start[aa("0x10")],d=o[aa("0x21")].end[aa("0x3c")],g=u.parent[aa("0x18")],{column:f}=e.getCellLocation(u),{column:h}=e[aa("0x2b")](d);for(let i=f;i<=h;i++){const c=e[aa("0x28")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[aa("0x13")],c=s[aa("0x11")][aa("0x2e")](i);s[aa("0xc")][aa("0x35")](aa("0x2a")+x,c),r&&s.writer.setAttribute(aa("0x19"),a,c),s[aa("0x11")][aa("0x36")](c,o[aa("0x1f")]),n&&(t[aa("0x16")].includes(o[aa("0x1f")])?s.writer[aa("0x35")](aa("0x12"),c):s.writer.removeClass(aa("0x12"),c))}}}}t[aa("0x17")][aa("0x14")]("formatBlock","setTableRowHeader",aa("0x23"),n),t[aa("0x17")].registerCustomCallback(aa("0x2c"),aa("0x7"),"accept",n),this[aa("0x30")][aa("0xf")][aa("0x32")].on("addMarker:suggestion",r(),{priority:aa("0x31")}),this[aa("0x30")][aa("0x2d")].downcastDispatcher.on(aa("0xd"),((t,e,n)=>{n.options.showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:aa("0x31")}),this.editor[aa("0xf")][aa("0x32")].on(aa("0x1d"),((e,n,r)=>{const{type:i,id:o}=t._splitMarkerName(n[aa("0x1f")]),s=t.getSuggestion(o),x=s.data;if(aa("0x2c")!=s[aa("0x1c")]||!x||aa("0x7")!=x[aa("0x1a")])return;const a=r[aa("0x11")][aa("0x20")](n.markerName);if(a)for(const t of a)r[aa("0xc")].removeClass("ck-suggestion-marker-"+i,t),r[aa("0xc")].removeClass(aa("0x12"),t),r[aa("0xc")].removeAttribute(aa("0x19"),t),r[aa("0x11")][aa("0x24")](t,n[aa("0x1f")])}),{priority:aa("0x31")}),this[aa("0x25")]()}[aa("0x25")](){const t=this[aa("0x30")],e=t.locale;function n(t){return{type:aa("0x27"),content:Yr(e,aa("0x39"),t)}}t[aa("0x1")][aa("0x6")](aa("0x1e"))[aa("0xb")][aa("0x3a")]((t=>{if(aa("0x2c")!=t[aa("0x1c")])return;const{data:r}=t;if(r){if(aa("0x9")==r[aa("0x1a")]){const t=r[aa("0x8")][0].forceValue;return n(Yr(e,aa(t?"0x34":"0x26")))}if(aa("0x7")==r[aa("0x1a")]){const t=r[aa("0x8")][0][aa("0x5")];return n(Yr(e,t?aa("0xe"):"FORMAT_REGULAR_COLUMN"))}}}))}}const la=["rowInsertionRanges","tablePasteRow","createTableWalker","start","return","afterInit","findAncestor","remove","model","getChild","batch","redo","tableCellBorderColor","$graveyard","insert","differ","fromEntries","getMarkers","includes","columnInsertionRanges","tableCellBorderStyle","_suggestionFactory","removeColumns","next","columnInsertionIndexes","unwrap","createElement","discard","column","deletion","options","getRange","reduce","entries","join","insertion","cells","tablePasteCell","tablePasteChainId","forceDefaultExecution","fill","newRange","isInContent","markerAttributes","every","end","createRangeOn","add","getRanges","isEmpty","createRange","tableCellHorizontalAlignment","getShiftedBy","root","endRow","commands","clipboardOutput","set","getSuggestion","tableCellVerticalAlignment","createPositionBefore","removeMarker","getChanges","registerDescriptionCallback","rowInsertionIndexes","getTableIfOnlyTableInContent","previousSibling","value","type","markerToHighlight","tableCellSuggestion","createRangeIn","insertRows","insertionRanges","insertColumns","removeMarkers","high","markers","_isForcedDefaultExecutionBlock","getSuggestionCallback","setAttribute","getContainedElement","markMultiRangeBlockFormat","getChangedMarkers","filter","formatBlock","nodeAfter","getRows","getColumns","tablePaste","editingDowncast","_getCoordsForCells","insertContent","registerPostFixer","keys","schema","name","TrackChangesEditing","markerName","cell","hasSuggestion","dataDowncast","selection","position","length","removeRows","startsWith","markMultiRangeInsertion","tableCellBorderWidth","getAllAdjacentSuggestions","wrap","get","change","tablePasteColumn","subType","ck-suggestion-marker-insertion","trackChanges","table","map","attributes","setAttributes","from","view","TableClipboard","low","previous","nextSibling","rootName","document","paragraph","Users","tableCellPadding","suggestion:formatBlock:tablePasteCell","content","element","rows","editing","author","getChildren","_replaceTableSlotCell","registerCustomCallback","editor","elementToElement","find","conversion","getColumnIndexes","*Replace table cells*","getSuggestions","tableCell","plugins","for","push","first","_splitMarkerName","stop","deletionRanges","isEqual","containsRange","move","some","oldRange","has","accept"];var ua,da;ua=la,da=110,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0xa1"),ga("0x41"),ga("0x49"),ga("0x68"),ga("0x70"),"tableCellBackgroundColor",ga("0x15")],ha=Object.fromEntries(fa[ga("0x8")]((t=>[t,null])));class ma extends t.Plugin{static get requires(){return[Yx]}[ga("0x3a")](){const t=this[ga("0x1f")];if(!t[ga("0x27")][ga("0x33")]("TableClipboard"))return;const n=t.plugins[ga("0x1")](ga("0x96")),r=t[ga("0x27")].get("TableUtils"),i=t.plugins.get(Yx),o=t.plugins.get(ga("0xd"));i._tablePostFixingSubtypes[ga("0x29")]("tablePasteRow",ga("0x3")),t.model[ga("0x94")].register("tableCellSuggestion",{allowIn:ga("0x26"),allowContentOf:ga("0x26"),isLimit:!0}),t.conversion[ga("0x20")]({model:ga("0x7b"),view:"suggestion-td"});let s=null;t[ga("0x3d")].on(ga("0x91"),((i,x)=>{const[a,c]=x,l=x[x[ga("0x9d")]-1];l&&l[ga("0x5c")]||n[ga("0x83")]||this[ga("0x1f")][ga("0x6c")][ga("0x1")](ga("0x6"))[ga("0x78")]&&function(t,e,n,r,i){if(e&&!e.is("documentSelection"))return!1;const o=i[ga("0x76")](t,n);if(!o||!pa(o,void 0,r))return!1;const s=r.getSelectionAffectedTableCells(n.document[ga("0x9b")]);if(!s[ga("0x9d")])return!1;const x=s[0][ga("0x3b")](ga("0x7")),a=r.getRowIndexes(s),c=r[ga("0x23")](s),l={startRow:a[ga("0x2a")],endRow:a.last,startColumn:c.first,endColumn:c.last};return 1==s[ga("0x9d")]&&(l[ga("0x6b")]+=r[ga("0x8c")](o)-1,l.endColumn+=r[ga("0x8d")](o)-1),pa(x,l,r)}(a,c,t.model,r,o)&&(i[ga("0x2c")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ga("0x3d")][ga("0x2")]((()=>{t[ga("0x3d")][ga("0x91")](x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ga("0x9d")]&&n[ga("0xa0")](i,ga("0x36"),{tablePasteChainId:r}),o[ga("0x9d")]&&n[ga("0xa0")](o,"tablePasteColumn",{tablePasteChainId:r}),a[ga("0x9d")]&&n[ga("0xa0")](a,"tablePaste",{tablePasteChainId:r,skipNestingCheck:!0}),c[ga("0x9d")]&&n.markMultiRangeDeletion(c,"tablePaste",{tablePasteChainId:r,skipNestingCheck:!0});const u=n[ga("0x87")](l[ga("0x8")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ga("0x5a"),{tablePasteChainId:r});if(u){const e=u[ga("0x46")](),n=[];for(const{element:r,attributes:i}of l){if(!i)continue;const o=t[ga("0x3d")].createRangeOn(r),s=e.find((t=>t[ga("0x54")]()[ga("0x2e")](o)));s&&n.push([s[ga("0x95")],i])}n.length&&u[ga("0x85")](ga("0x60"),Object[ga("0x45")](n))}s=null})))}),{priority:e.priorities[ga("0x81")]+10}),t[ga("0x27")][ga("0x1")]("TableClipboard").on(ga("0x1d"),((t,e)=>{const[n,r,,i]=e;if(!s)return;t.stop();const o=n[ga("0x98")],x=r,a=ba(o),c=ba(x);t[ga("0x39")]=o;let l=null,u=null;if(c||a)if(a&&!c){i.remove(o[ga("0x3e")](0));for(const t of Array[ga("0xb")](x[ga("0x1c")]()))i[ga("0x43")](t,o,ga("0x62"));const t=s[ga("0x75")].includes(n.row),e=s[ga("0x4d")].includes(n[ga("0x51")]);t||e||(l=i[ga("0x7c")](o))}else c&&!a&&(u=i.createRangeIn(o));else{const t=i[ga("0x4f")](ga("0x7b")),e=i[ga("0x4f")](ga("0x7b"));i[ga("0x0")](i[ga("0x7c")](o),e),i.insert(t,o,0);for(const e of Array.from(x.getChildren()))i.insert(e,t,ga("0x62"));l=i[ga("0x63")](t),u=i.createRangeOn(e)}const d=Array.from(x.getAttributes())[ga("0x89")]((([t])=>fa[ga("0x47")](t)));s[ga("0x59")][ga("0x29")]({element:o,attributes:d[ga("0x9d")]?Object[ga("0x45")](d):null}),l&&s[ga("0x7e")][ga("0x29")](l),u&&s[ga("0x2d")][ga("0x29")](u)}),{priority:"high"}),r.on(ga("0x7f"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o.columns||1;s[ga("0x4d")]=new Array(a).fill(x)[ga("0x8")](((t,e)=>t+e));for(const{cell:e}of r[ga("0x37")](i,{startColumn:x,endColumn:x+a-1}))s[ga("0x48")][ga("0x29")](t[ga("0x3d")][ga("0x63")](e))}),{priority:ga("0xe")}),r.on(ga("0x7d"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0x19")]||1;s.rowInsertionIndexes=new Array(a)[ga("0x5d")](x).map(((t,e)=>t+e));for(const{cell:e}of r[ga("0x37")](i,{startRow:x,endRow:x+a-1}))s[ga("0x35")][ga("0x29")](t[ga("0x3d")][ga("0x63")](e))}),{priority:ga("0xe")}),n._descriptionFactory[ga("0x74")]((e=>{if(e.subType&&e[ga("0x4")][ga("0x9f")](ga("0x8e")))return e[ga("0xf")]?{}:{type:ga("0x58"),content:Yr(t.locale,ga("0x24"))}}));const x=()=>!1;for(const t of["tablePaste","tablePasteColumn",ga("0x36"),"tablePasteCell"])n[ga("0x4a")][ga("0x1e")]("insertion",t,"join",x),n[ga("0x4a")][ga("0x1e")](ga("0x52"),t,ga("0x57"),x),n[ga("0x4a")].registerCustomCallback(ga("0x8a"),t,"join",x);n[ga("0x4a")].registerCustomCallback("formatBlock",ga("0x5a"),"discard",x),n[ga("0x4a")][ga("0x1e")]("formatBlock",ga("0x5a"),ga("0x34"),((e,n,r)=>{const i=e[ga("0x8")]((t=>t[ga("0x86")]()))[ga("0x89")]((t=>t)),o=new Map(i[ga("0x8")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ga("0x59")])e&&o[ga("0x6e")](t,e);else if(r&&r[ga("0x60")])for(const[e,n]of Object[ga("0x56")](r[ga("0x60")])){const r=t.model[ga("0x82")][ga("0x1")](e),i=r?r[ga("0x54")]()[ga("0x86")]():null;i&&o[ga("0x6e")](i,n)}t[ga("0x3d")][ga("0x2")]((t=>{for(const[e,n]of o)t[ga("0xa")]({...ha,...n},e)}))}));const a=(e,r)=>{n._suggestionFactory[ga("0x1e")](e,ga("0x8e"),r,((i,o,s)=>{t.model[ga("0x2")]((t=>{const x=[];for(const t of i){const e=t[ga("0x38")][ga("0x8b")];e.is(ga("0x18"),ga("0x7b"))&&x[ga("0x29")](e)}n[ga("0x4a")][ga("0x84")](e,null,r)(i,o,s);for(const e of x)ga("0x42")!=e[ga("0x6a")][ga("0x11")]&&t[ga("0x4e")](e)}))}))};a("insertion",ga("0x34")),a("insertion",ga("0x50")),a(ga("0x52"),ga("0x34")),a("deletion","discard"),n._suggestionFactory[ga("0x1e")](ga("0x58"),ga("0x36"),ga("0x50"),(t=>{const e=t[ga("0x8")]((t=>t.getContainedElement())),n=e[0][ga("0x3b")](ga("0x7")),{minRow:o,maxRow:s}=i._getCoordsForCells(e);r[ga("0x9e")](n,{at:o,rows:s-o+1})})),n[ga("0x4a")].registerCustomCallback(ga("0x58"),ga("0x3"),ga("0x50"),(t=>{const e=t[ga("0x8")]((t=>t[ga("0x86")]())),n=e[0][ga("0x3b")](ga("0x7")),{minColumn:o,maxColumn:s}=i[ga("0x90")](e);r[ga("0x4b")](n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e[ga("0x4")]||!e[ga("0x4")][ga("0x9f")](ga("0x8e")))return;const r=e[ga("0x9")].tablePasteChainId,i=n.getSuggestions()[ga("0x89")]((t=>t[ga("0x5f")]&&t[ga("0x9")]&&t[ga("0x9")][ga("0x5b")]==r));i[ga("0x9d")]&&e[ga("0xa2")]()[ga("0x9d")]!=i[ga("0x9d")]&&i[ga("0x55")](((t,e)=>(t[ga("0x4c")]=e,e[ga("0xf")]=t,e)))};function l(t,e=!0){const{id:r}=n[ga("0x2b")](t[ga("0x97")]),i=["ck-suggestion-marker",ga("0x5")],o=n.activeMarkers.includes(t[ga("0x97")]);return o&&i[ga("0x29")]("ck-suggestion-marker--active"),{classes:i,attributes:{"data-suggestion":r},priority:o&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:ga("0x81")}),n.on("suggestionUnloaded",c,{priority:ga("0x81")}),t.model[ga("0x12")][ga("0x92")]((()=>{let e=!1;const r=Array[ga("0xb")](t.model[ga("0x12")][ga("0x44")][ga("0x88")]());for(const{name:i,data:o}of r){const{group:r,type:s,id:x}=n[ga("0x2b")](i);if("suggestion"!=r||"deletion"!=s||o.oldRange)continue;if(!n[ga("0x99")](x))continue;const a=n[ga("0x6f")](x)[ga("0x65")](),c=t[ga("0x27")][ga("0x1")](ga("0x14")).me;for(const t of n[ga("0x25")]())if(t[ga("0x5f")]&&t[ga("0x1b")]==c&&ga("0x8a")==t[ga("0x79")]&&ga("0x5a")==t.subType&&t[ga("0x65")]()[ga("0x61")]((t=>a[ga("0x31")]((e=>e[ga("0x2f")](t,!0))))))for(const n of t[ga("0xa2")]())n[ga("0x5f")]&&(n.discard(),e=!0)}return e})),t[ga("0x3d")].document[ga("0x92")]((e=>{const r=t[ga("0x6c")][ga("0x1")](ga("0x40"));if(!r||!r._createdBatches[ga("0x33")](e[ga("0x3f")]))return!1;let i=!1;const o=t[ga("0x27")][ga("0x1")](ga("0x14")).me,s=t[ga("0x3d")][ga("0x12")][ga("0x44")][ga("0x73")](),x=Array[ga("0xb")](t[ga("0x3d")][ga("0x12")][ga("0x44")].getChangedMarkers())[ga("0x89")]((({name:t,data:e})=>{const{group:r,subType:i,authorId:s}=n[ga("0x2b")](t);return"suggestion"==r&&ga("0x8e")==i&&s==o.id&&!e[ga("0x32")]}));for(const t of s){if("insert"!=t[ga("0x79")]||ga("0x7b")!=t[ga("0x95")]||1!=t[ga("0x9d")])continue;const n=e[ga("0x67")](t[ga("0x9c")],t[ga("0x9c")][ga("0x69")](1));if(!x[ga("0x21")]((({data:t})=>t[ga("0x5e")][ga("0x2e")](n))))for(const{name:t,data:r}of x)if(n[ga("0x2f")](r[ga("0x5e")])){e.updateMarker(t,{range:n}),i=!0;break}}return i})),t.model.document[ga("0x92")]((e=>{let r=!1;const i=t[ga("0x27")][ga("0x1")](ga("0x14")).me,o=n[ga("0x25")]()[ga("0x89")]((t=>t[ga("0x5f")]&&t[ga("0x1b")]==i)),s=new Set,x=new Set;for(const t of o)if(ga("0x8e")==t[ga("0x4")])for(const e of t[ga("0x46")]()){const n=e[ga("0x54")]()[ga("0x86")]();if(n)if(n.is(ga("0x18"),ga("0x7b"))&&ba(n)){t[ga("0x72")](e[ga("0x95")]),s[ga("0x64")](n),r=!0;const i=n[ga("0x10")],o=n[ga("0x77")],a=i&&i.is(ga("0x18"),ga("0x7b")),c=o&&o.is(ga("0x18"),ga("0x7b"));a&&!s[ga("0x33")](i)&&x[ga("0x64")](i),c&&!s.has(o)&&x[ga("0x64")](o)}else n.is(ga("0x18"),ga("0x13"))&&n[ga("0x66")]&&(t[ga("0x72")](e[ga("0x95")]),r=!0)}else if(ga("0x5a")==t[ga("0x4")]){if(!t[ga("0x9")]||!t[ga("0x9")][ga("0x5b")])continue;const e=t[ga("0x9")].markerAttributes;if(e&&Object[ga("0x93")](e)[ga("0x9d")])continue;const n=t.attributes[ga("0x5b")];let i=!0,s=!0;for(const e of o)if(e[ga("0x4")]&&e[ga("0x4")][ga("0x9f")](ga("0x8e"))){if(!e[ga("0x9")][ga("0x5b")]){s=!1;break}if(e.id!=t.id&&e.attributes[ga("0x5b")]==n){i=!1;break}}s&&i&&(t[ga("0x80")](),r=!0)}for(const t of s)e[ga("0x3c")](t);for(const t of x)e.unwrap(t);return r})),t[ga("0x22")][ga("0x28")](ga("0x8f"))[ga("0x7a")]({model:ga("0x16"),view:(t,e)=>l(t),converterPriority:"high"}),t[ga("0x22")][ga("0x28")](ga("0x9a")).markerToHighlight({model:ga("0x16"),view:(t,e)=>e[ga("0x53")].showSuggestionHighlights?l(t,!1):null,converterPriority:"high"});const u=t[ga("0x1a")][ga("0xc")];this.listenTo(u[ga("0x12")],ga("0x6d"),((t,e)=>{const n=[];for(const t of u[ga("0x7c")](e[ga("0x17")]).getItems())t.is(ga("0x18"),"suggestion-td")&&n[ga("0x29")](t);u[ga("0x2")]((t=>{for(const e of n)t[ga("0x30")](t[ga("0x7c")](e),t[ga("0x71")](e)),t[ga("0x3c")](e)}))}))}}function ba(t){if(t[ga("0x66")])return!0;const e=t[ga("0x3e")](0);return e.is(ga("0x18"),ga("0x13"))&&e[ga("0x66")]}function pa(t,e={},n){for(const{isAnchor:r,cellHeight:i,cellWidth:o}of n[ga("0x37")](t,{includeAllSlots:!0,...e}))if(!r||1!=i||1!=o)return!1;return!0}const Ea=["afterInit","model","*Format:* resize table","formatBlock","type","getSuggestionCallback","handleSuggestionDescription","formatInline","plugins","bind","TableColumnResizeEditing","editor","format","has","registerCustomCallback","change","get","Users","registerDescriptionCallback","discard","_descriptionFactory","selection","resizeTable","table","getContainedElement","data","getTableColumnsWidths","getSuggestions","TrackChangesEditing","columnWidths","handleResizeTableWidthCommand","tableWidth","author","subType","accept","_suggestionFactory","formatGroupId"];var _a,Ta;_a=Ea,Ta=331,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const ya=function(t,e){return Ea[t-=0]};class Ca extends t.Plugin{[ya("0x2")](){if(!this[ya("0xd")].plugins[ya("0xf")](ya("0xc")))return;const t=this.editor[ya("0xa")].get(ya("0x1e"));t.enableCommand("resizeTableWidth",this[ya("0x20")].bind(this)),t[ya("0x0")][ya("0x10")](ya("0x5"),ya("0x18"),ya("0x24"),t._suggestionFactory[ya("0x7")](ya("0x5"),null,ya("0x15"))),t[ya("0x0")][ya("0x10")](ya("0x5"),"resizeTable",ya("0x15"),t[ya("0x0")][ya("0x7")](ya("0x5"),null,ya("0x24"))),t[ya("0x16")][ya("0x14")](this.handleSuggestionDescription[ya("0xb")](this))}[ya("0x20")](t,e){const n=this[ya("0xd")][ya("0xa")].get(ya("0x1e")),r=this[ya("0xd")][ya("0xa")][ya("0x12")]("TableColumnResizeEditing"),i=e[ya("0x19")]||this[ya("0xd")][ya("0x3")].document[ya("0x17")].getSelectedElement();this[ya("0xd")].model[ya("0x11")]((()=>{const o=r.getColumnGroupElement(i);let s=o?r[ya("0x1c")](o):null,x=i.getAttribute(ya("0x21"))||null;const a=e[ya("0x21")]||x,c=e[ya("0x1f")]||s,l=this[ya("0xd")][ya("0xa")][ya("0x12")](ya("0x13")).me;for(const t of n[ya("0x1d")]()){const e=t[ya("0x1a")]();if(ya("0x18")===t[ya("0x23")]&&e===i){t[ya("0x22")]!==l&&t[ya("0x15")]();const e=t[ya("0x1b")].commandParams;x=e[0][ya("0x21")],s=e[0].columnWidths;break}}t({table:i,tableWidth:a,columnWidths:c}),n.markBlockFormat(i,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:ya("0x18")},[],"resizeTable")}))}[ya("0x8")](t){if(ya("0x5")!=t[ya("0x6")]&&ya("0x9")!=t[ya("0x6")])return;const{data:e}=t;if(e&&ya("0x18")===e[ya("0x1")]){const t=ya("0x4");return{type:ya("0xe"),content:Yr(this[ya("0xd")].locale,t)}}}}const Aa=["Template","insertTemplate","afterInit","get","TrackChangesEditing","enableCommand","plugins","editor"];var ka,Ia;ka=Aa,Ia=414,function(t){for(;--t;)ka.push(ka.shift())}(++Ia);const Ra=function(t,e){return Aa[t-=0]};class va extends t.Plugin{[Ra("0x4")](){const t=this[Ra("0x1")];t[Ra("0x0")].has(Ra("0x2"))&&t[Ra("0x0")][Ra("0x5")](Ra("0x6"))[Ra("0x7")](Ra("0x3"))}}const Sa=["insertTableOfContents","tableOfContents","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS","afterInit","get","commands","locale","editor","TrackChangesEditing","_descriptionFactory","plugins"];var Na,La;Na=Sa,La=491,function(t){for(;--t;)Na.push(Na.shift())}(++La);const Ma=function(t,e){return Sa[t-=0]};class wa extends t.Plugin{[Ma("0x5")](){const t=this[Ma("0x9")];if(!t[Ma("0x7")][Ma("0x6")](Ma("0x1")))return;t[Ma("0x0")][Ma("0x6")](Ma("0xa")).enableCommand(Ma("0x1"));const e=t[Ma("0x0")].get(Ma("0xa")),n=t[Ma("0x8")];e[Ma("0xb")][Ma("0x3")](Ma("0x2"),(t=>Yr(n,Ma("0x4"),t)))}}const Oa=["TrackChangesEditing","suggestion","title-content","plugins","locale","element","registerElementLabel","schema","getChangedMarkers","start","newRange","get","isEqual","model","nodeBefore","isCollapsed","Title","document","end","afterInit","createRange","editor","registerPostFixer","removeMarker","updateMarker","differ"];var Fa,Da;Fa=Oa,Da=319,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Pa=function(t,e){return Oa[t-=0]};class Ba extends t.Plugin{[Pa("0xc")](){const t=this[Pa("0xe")];if(!t[Pa("0x16")].has(Pa("0x9")))return;const e=t.plugins[Pa("0x4")](Pa("0x13"));e._descriptionFactory[Pa("0x19")](Pa("0x15"),(()=>Yr(t[Pa("0x17")],"ELEMENT_TITLE"))),t[Pa("0x6")][Pa("0xa")][Pa("0xf")]((n=>{let r=!1;const i=Array.from(t[Pa("0x6")].document[Pa("0x12")][Pa("0x1")]());for(const{name:o,data:s}of i){const{group:i}=e._splitMarkerName(o);if(Pa("0x14")!==i||!s[Pa("0x3")])continue;const x=s[Pa("0x3")],a=x.end[Pa("0x7")];if(!a||!a.is(Pa("0x18"),Pa("0x15")))continue;if(!x[Pa("0x2")].isTouching(x[Pa("0xb")]))continue;const c=t[Pa("0x6")][Pa("0x0")].getNearestSelectionRange(x[Pa("0xb")],"forward");if(c&&c[Pa("0x8")]){const t=n[Pa("0xd")](x[Pa("0x2")],c[Pa("0x2")]);t[Pa("0x5")](x)||(n[Pa("0x11")](o,{range:t}),r=!0)}r||(n[Pa("0x10")](o),r=!0)}return r}))}}const Ua=["redo","editor","enableCommand","TrackChangesEditing","undo","plugins","has","UndoEditing"];var ja,Ga;ja=Ua,Ga=224,function(t){for(;--t;)ja.push(ja.shift())}(++Ga);const Va=function(t,e){return Ua[t-=0]};class Ha extends t.Plugin{afterInit(){const t=this[Va("0x1")],e=t[Va("0x5")].get(Va("0x3"));t.plugins[Va("0x6")](Va("0x7"))&&(e[Va("0x2")](Va("0x4")),e[Va("0x2")](Va("0x0")))}}const za=["get","toggleTableCaption","has","TrackChangesEditing","plugins","TableCaptionEditing","afterInit"];var Wa,Ka;Wa=za,Ka=303,function(t){for(;--t;)Wa.push(Wa.shift())}(++Ka);const qa=function(t,e){return za[t-=0]};class $a extends t.Plugin{static get requires(){return[Yx]}[qa("0x4")](){const t=this.editor;t.plugins[qa("0x0")](qa("0x3"))&&t[qa("0x2")][qa("0x5")](qa("0x1")).enableCommand(qa("0x6"))}}const Xa=["tableProperties","_suggestionFactory","registerDescriptionCallback","change","join","*Format:* change table cell properties","formatBlock","tableCellBorderStyle","subType","_handlePropertyChange","getFirstPosition","getContainedElement","handleDiscardAction","tableWidth","plugins","has","markBlockFormat","tableBorderColor","format","afterInit","get","nodeAfter","document","findAncestor","enableCommand","model","*Format:* change table properties","enqueueChange","tableCellProperties","registerCustomCallback","locale","tableBorderStyle","handleSuggestionDescription","setAttribute","tableCellPadding","_getSuggestion","selection","table","tableCellHorizontalAlignment","accept","discard","getSelectionAffectedTableCells","TrackChangesTableProperties","tableCellVerticalAlignment","TrackChangesEditing","tableHeight","editor","tableAlignment"];var Za,Qa;Za=Xa,Qa=262,function(t){for(;--t;)Za.push(Za.shift())}(++Qa);const Ya=function(t,e){return Xa[t-=0]};class Ja extends t.Plugin{constructor(t){super(t),this[Ya("0x1a")]=[Ya("0x2b"),Ya("0x9"),"tableBorderWidth",Ya("0x19"),Ya("0x27"),Ya("0x17"),"tableBackgroundColor"],this[Ya("0x6")]=["tableCellBorderColor",Ya("0x21"),"tableCellBorderWidth",Ya("0xc"),"tableCellWidth","tableCellHeight","tableCellBackgroundColor",Ya("0x10"),Ya("0x15")]}static get pluginName(){return Ya("0x14")}[Ya("0x2d")](){const t=this[Ya("0x18")][Ya("0x28")][Ya("0x2e")](Ya("0x16"));if(this.editor.plugins[Ya("0x29")]("TablePropertiesEditing")){for(const e of this[Ya("0x1a")])t[Ya("0x2")](e,((t,n)=>{const r=this[Ya("0x18")][Ya("0x3")][Ya("0x0")].selection[Ya("0x24")]()[Ya("0x1")](Ya("0xf"));this[Ya("0x23")](e,[r],this[Ya("0x1a")],"tableProperties",t,n)}));t[Ya("0x1b")][Ya("0x7")](Ya("0x20"),"tableProperties",Ya("0x11"),t[Ya("0x1b")].getSuggestionCallback(Ya("0x20"),null,"discard")),t[Ya("0x1b")][Ya("0x7")](Ya("0x20"),Ya("0x1a"),"discard",((t,e)=>this.handleDiscardAction(this.tableProperties,t,e))),t[Ya("0x1b")][Ya("0x7")](Ya("0x20"),Ya("0x1a"),Ya("0x1e"),(()=>!1))}if(this[Ya("0x18")][Ya("0x28")][Ya("0x29")]("TableCellPropertiesEditing")){for(const e of this[Ya("0x6")])t[Ya("0x2")](e,((t,n)=>{const r=this[Ya("0x18")][Ya("0x28")][Ya("0x2e")]("TableUtils")[Ya("0x13")](this[Ya("0x18")][Ya("0x3")].document[Ya("0xe")]);this[Ya("0x23")](e,r,this.tableCellProperties,Ya("0x6"),t,n)}));t._suggestionFactory[Ya("0x7")](Ya("0x20"),Ya("0x6"),Ya("0x11"),t[Ya("0x1b")].getSuggestionCallback(Ya("0x20"),null,Ya("0x12"))),t[Ya("0x1b")][Ya("0x7")](Ya("0x20"),Ya("0x6"),Ya("0x12"),((t,e)=>this[Ya("0x26")](this[Ya("0x6")],t,e))),t[Ya("0x1b")].registerCustomCallback(Ya("0x20"),Ya("0x6"),Ya("0x1e"),(()=>!1))}t._descriptionFactory[Ya("0x1c")]((t=>this[Ya("0xa")](t)))}[Ya("0x23")](t,e,n,r,i,o){const s=this[Ya("0x18")][Ya("0x28")][Ya("0x2e")]("TrackChangesEditing");this[Ya("0x18")].model[Ya("0x5")](o.batch,(()=>{for(const t of e)if(this[Ya("0xd")](t,r))i(o);else{const e={};for(const r of n){const n=t.getAttribute(r);void 0!==n&&(e[r]=n)}i(o),s[Ya("0x2a")](t,{commandParams:[e]},[],r)}}))}[Ya("0x26")](t,e,n){const r=e[0].start[Ya("0x2f")],i=n.commandParams[0];this[Ya("0x18")][Ya("0x3")][Ya("0x1d")]((e=>{for(const n of t)void 0!==i[n]?e[Ya("0xb")](n,i[n],r):e.removeAttribute(n,r)}))}[Ya("0xa")](t){if(t.data)switch(t[Ya("0x22")]){case"tableProperties":return{type:"format",content:Yr(this.editor.locale,Ya("0x4"))};case Ya("0x6"):return{type:Ya("0x2c"),content:Yr(this[Ya("0x18")][Ya("0x8")],Ya("0x1f"))}}}[Ya("0xd")](t,e){const n=this[Ya("0x18")][Ya("0x28")][Ya("0x2e")](Ya("0x16"));for(const r of n.getSuggestions({skipNotAttached:!0})){const n=r[Ya("0x25")]();if(r[Ya("0x22")]===e&&n===t)return r}return null}}var tc=Function.prototype,ec=Object.prototype,nc=tc.toString,rc=ec.hasOwnProperty,ic=nc.call(Object);const oc=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=rc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&nc.call(n)==ic};const sc=function(t){return oc(t)?void 0:t};var xc=it?it.isConcatSpreadable:void 0;const ac=function(t){return ge(t)||de(t)||!!(xc&&t&&t[xc])};const cc=function t(e,n,r,i,o){var s=-1,x=e.length;for(r||(r=ac),o||(o=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,i,o):sn(o,a):i||(o[o.length]=a)}return o};const lc=function(t){return(null==t?0:t.length)?cc(t,1):[]};const uc=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 dc=Math.max;const gc=function(t,e,n){return e=dc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=dc(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=r[i];return x[e]=n(s),uc(t,this,x)}};const fc=function(t){return function(){return t}};const hc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:fc(e),writable:!0})}:function(t){return t};var mc=Date.now;const bc=function(t){var e=0,n=0;return function(){var r=mc(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(hc);const pc=function(t){return bc(gc(t,void 0,lc),t+"")}((function(t,e){var n={};if(null==t)return n;var r=!1;e=ur(e,(function(e){return e=mr(e,t),r||(r=e.length>1),e})),oe(t,dn(t),n),r&&(n=tr(n,7,sc));for(var i=e.length;i--;)Wr(n,e[i]);return n})),Ec=["createRange","ck-suggestion-marker-","_inlineAttributeKeys","ck-suggestion-marker-formatBlock","markerToData","_joinWithAdjacentSuggestions","change","attributeKey","CommentsRepository","createPositionAt","markBlockFormat","getShiftedBy","deletion","isMultiRange","removeAttribute","addMarker:suggestion:formatBlock","editing","oldValue","multipleBlocks","getFirstRange","_descriptionFactory","markAttributeChange","backward","reconvertMarker","toViewElement","listenTo","insertion:chain","rethrowUnexpectedError","$text","_registerDefaultCallbacks","insert","getFirstMarker","buildSuggestion","_suggestionState","authorName","_getExternalAuthor","get","editor","catch","track-changes-adapter-missing-getsuggestion","has","$marker","_isForcedDefaultExecutionBlock","addMarkerName","external:","hasComments","_isBlockAttribute","howMany","createPositionBefore","_customCallbacks","before","unbind","formatInline:","isOwn","start","addSuggestionData","startsWith","next","schema","adapter","_defaultCallbacks","getChangedMarkers","_reduceExistingSuggestions","_createSuggestion","oldRange","fromCharCode","error-saving-suggestion-data-suggestion-discarded","discardAllSuggestions","addMarker","ENTER","high","enableCommand","attribute:join","resolve","addCommentThread","lowest","PENDING_ACTION_SUGGESTION","never","_registerInlineAttribute","_rangeIsInLocalUserInsertion","_blockAttributeKeys","_registerBlockAttribute","addSuggestion","plugins","unbindElementFromMarkerName","accepted","removed","rootName","hasSuggestion","previous","_checkSuggestionCorrectness","groupId","add","track-changes-suggestion-not-found","length","suggestionLoaded","markDeletion","ariaLiveAnnouncer","getMarkers","containsRangeInObject","dataDowncast","formatBlock:","markerToHighlight","dataReady","root","createSelection","_setSuggestionRange","attributes","getWalker","always","low","_updateSuggestionData","markInsertion","markerReady","_getAttributeKey","upcast","isObject","isAtEnd","showSuggestionHighlights","addMarker:suggestion","delete","markMultiRangeBlockFormat","attributeNewValue","newRange","splice","elementToElement","createdAt","some","_enabledCommands","skipNestingCheck","pop","containsPosition","acceptAllSuggestions","tablePasteChainId","assign","data","applyOperation","forward","trackChanges","getAllAdjacentSuggestions","comments","change:_saved","trackChangesCommand","formatBlock","format","isUndo","key","removeMarkers","conversion","isLocal","_addSuggestionMarker","getIntersection","after","split","isTouching","element","isBefore","concat","getNearestSelectionRange","_getSuggestionData","addMarker:suggestion:attribute","formatInline","_refreshAttributeSuggestionsChain","getDifference","subType","deleteContent","forceDefaultExecution","data-suggestion","acceptSelectedSuggestions","multi","ck-suggestion-marker--active","getMultiRangeId","_initAriaMarkerChangeAnnouncements","then","ck-suggestion-marker","item","insertion:discard","meta","$elementName","_suggestionFactory","originalSuggestionId","activeMarkers","size","parent","config","setTo","suggestion","targetPosition","options","_recordAttributeChanges","isEqual","$graveyard","creator","insertContent","differ","marker-count","getLastMatchingPosition","$textProxy","track-changes-suggestion-data-mismatch","_removeSuggestion","_commentsRepository","values","addClass","_refreshSuggestionsChain","getItems","_saved","enqueueChange","from","getAncestors","setAttribute","formatBlock:discard","notReady","author","_processAttributeChanges","selection","@external","map","group","_model","consume","deletion:join","containerElement","track-changes-user-not-found","mapper","position","value","every","discard","filter","_editor","_suggestions","default","enableReadOnlyMode","removeMarker","batch","type","locale","_adapter","_enableDefaultAttributesIntegration","isBlock","chain","registerPostFixer","getCustomProperty","getSuggestion","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.","removeClass","updateMarker","nodeAfter","acceptSuggestion","execute","stop","_SUGGESTION_ANNOUNCEMENT","Users","isInContent","sort","attribute:discard","_processAttributeSuggestions","substr","suggestionChanged","createElement","createRangeIn","isNextTo","getChanges","deletion:chain","formatInline:chain","set","includes","isCollapsed","_isDataLoaded","isArray","_getMarkerAnnouncementText","markers","_trackFormatChanges","_isRegisteredAttribute","normal","authoredAt","unshift","fetchCommentThread","addComment","requires","setSelection","range","markerName","removeComment","discardSelectedSuggestions","getAttribute","_addThreadToSuggestion","define","return","updateSuggestion","trackChanges.trackFormatChanges","detach","_element","_mergeNestedSuggestions","accept","_breakSuggestionMarker","deletion:","fromRange","toUpperCase","_setSuggestionData","rename","newValue","getRanges","end","refresh","nodeBefore","PendingActions","suggestion:","markInlineFormat","formatGroupId","markMultiRangeDeletion","for","elementStart","keys","_reduceSuggestionAttributeRange","join","attribute:accept","getCommentThread","_findSuggestions","LEAVE","toJSON","commands","getUser","isAfter","writer","removeMarker:suggestion:attribute","_splitMarkerName","containsRange","fire","pluginName","isIntersectingWithRange","elementEnd","isExternal","push","getSuggestions","isInsideObject","discardSuggestion","attribute","isIntersecting","insertion","_recordAttributeSuggestions","formatInline:discard","getContainedElement","find","isRemovable","editingDowncast","attributeOldValue","highest","_joinSuggestions","track-changes-enable-command-twice","rejected","FORMATTING","consumable","formatBlock:join","widget","name","model","change:data","moveTargetPosition","addUser","addRange","isLimit","forEach","remove","head","commentThread","document","formatInline:join","trackChanges.mergeNestedSuggestions","isAtStart","getSuggestionCallback","ready"];var _c,Tc;_c=Ec,Tc=225,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]},Cc=yc("0x145");class Ac extends t.Plugin{static get[yc("0x36")](){return[yc("0x9b"),o.Users,t.PendingActions,ai,gi,Ei,Ai,Fi,Ni,ji,Ki,io,Ao,So,Fo,jo,Ko,Qo,ns,xs,ds,ys,bs,Rs,Ms,Ps,qs,tx,Vs,co,mo,ox,lx,hx,_x,Ix,Lx,Dx,Vx,qx,Yx,ia,ca,$a,ma,Ca,wa,Ja,va,Ba,Ha]}static get[yc("0x68")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[yc("0x16b")]((t=>String[yc("0xd4")](t)))[yc("0x5a")]("")}super(t),this._recordAttributeSuggestions=!1,this.set(yc("0x148"),[]),this.on("change:activeMarkers",((e,n,r,i)=>{this[yc("0x16d")][yc("0x99")]((()=>{for(const e of[...i,...r])this[yc("0x16d")][yc("0x2e")][yc("0xbb")](e)&&t[yc("0xa3")][yc("0xaa")](e)}))})),this[yc("0xa7")]=new ri(this[yc("0xb8")][yc("0x83")][yc("0xcd")],this[yc("0xb8")].locale),this[yc("0xc")]=null,this[yc("0x146")]=new kc(this[yc("0xb8")]),this[yc("0x5")]=new Map,this[yc("0x15b")]=t[yc("0xe6")].get(yc("0x9b")),this[yc("0x113")]=new Set,this[yc("0x16d")]=this[yc("0xb8")][yc("0x83")],this[yc("0xb4")]=new WeakMap,this[yc("0xbd")]=!1,this[yc("0xe3")]=new Set(["$elementName"]),this[yc("0x95")]=new Set,t[yc("0x14b")][yc("0x3e")](yc("0x41"),yc("0x6")),this[yc("0x2f")]=t.config[yc("0xb7")](yc("0x41")),t.config[yc("0x3e")]("trackChanges.mergeNestedSuggestions",!0),this[yc("0x44")]=t[yc("0x14b")][yc("0xb7")](yc("0x8f")),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,56,48,50,54,50])}init(){const t=this.editor,n=(t,e)=>{if("attribute"!=t)return yc("0x94")+t;const n=e[yc("0x12c")]("|")[0];return this._isBlockAttribute(n)?yc("0x96"):"ck-suggestion-marker-formatInline"};t.conversion[yc("0x56")](yc("0x78"))[yc("0xf9")]({model:yc("0x14d"),view:t=>{const{id:e,type:r,subType:i}=this[yc("0x65")](t[yc("0x39")]),o=["ck-suggestion-marker",n(r,i)];let s=3e3;return this.activeMarkers[yc("0x29")](t[yc("0x39")])&&(o.push(yc("0x13d")),s=3010),yc("0x9f")==r&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[yc("0x127")].for(yc("0xf7"))[yc("0xef")]((e=>{e.on(yc("0x10a"),((e,n,r)=>{if(!r[yc("0x14f")][yc("0x109")])return;const i=n.item;if(!i)return;const o=r[yc("0x172")][yc("0xab")](i);t[yc("0x83")][yc("0xcd")].isObject(i)&&o&&!o[yc("0x11")](yc("0x81"))&&o.is(yc("0x170"))&&(0,x.toWidget)(o,r[yc("0x63")])}),{priority:yc("0xd9")})})),t[yc("0x127")][yc("0x56")]("dataDowncast")[yc("0xf9")]({model:yc("0x14d"),view:(t,e)=>{if(!e.options[yc("0x109")])return null;const{type:r,subType:i}=this[yc("0x65")](t[yc("0x39")]);return{classes:[yc("0x141"),n(r,i)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,i,o)=>{if(!i[yc("0x142")])return;const{id:s}=this[yc("0x65")](i[yc("0x39")]);if(n){const t=this[yc("0x5")][yc("0xb7")](s),e=this[yc("0x105")](t);if(!this[yc("0xc1")](e))return}if(i[yc("0x142")].is("selection"))return void o.consumable[yc("0x16e")](i[yc("0x142")],r[yc("0x82")]);const x=o[yc("0x172")][yc("0xab")](i[yc("0x142")]);if(i[yc("0x142")].is(yc("0x12e"))&&t.model[yc("0xcd")][yc("0xe")](i[yc("0x142")])&&!x[yc("0x11")]("addHighlight")){o.writer.addClass([yc("0x141"),yc("0x96")],x),o.writer.setAttribute("data-suggestion",s,x),o.mapper.bindElementToMarker(x,i[yc("0x39")]),e&&(this[yc("0x148")][yc("0x29")](i[yc("0x39")])?o.writer[yc("0x15d")](yc("0x13d"),x):o[yc("0x63")][yc("0x14")]("ck-suggestion-marker--active",x));for(const e of t.model[yc("0x23")](i[yc("0x142")])[yc("0x15f")]())o[yc("0x7f")][yc("0x16e")](e,r.name);o[yc("0x7f")][yc("0x16e")](i[yc("0x142")],r.name)}};t[yc("0x127")][yc("0x56")]("dataDowncast")[yc("0xef")]((t=>{t.on(yc("0xa2"),((t,e,n)=>{n[yc("0x14f")][yc("0x109")]&&r({showActiveMarkers:!1})(t,e,n)}),{priority:yc("0x7a")})})),t[yc("0x127")][yc("0x56")](yc("0xf7")).add((t=>{t.on(yc("0x133"),((t,e,n)=>{n[yc("0x14f")][yc("0x109")]&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:yc("0x7a")})})),t[yc("0x127")].for(yc("0xf7"))[yc("0x97")]({model:yc("0x14d"),view:(t,e)=>e[yc("0x14f")][yc("0x109")]?null:{group:"suggestion",name:t[yc("0x20")](11)}}),t.conversion.for("upcast")[yc("0x110")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=yc("0x52")+t[yc("0x3c")]("suggestion-type")+":"+t.getAttribute("id");return t.getAttribute(yc("0x156"))&&(n+=":"+t[yc("0x3c")](yc("0x156"))),e[yc("0x22")](yc("0xbc"),{"data-name":n})}}),t[yc("0x127")][yc("0x56")](yc("0x106")).dataToMarker({view:"suggestion"}),t[yc("0x127")][yc("0x56")](yc("0x78"))[yc("0xef")]((t=>{t.on(yc("0xa2"),r(),{priority:yc("0xd9")})})),t[yc("0x127")][yc("0x56")](yc("0x78")).add((t=>{t.on(yc("0x133"),r({isAttributeSuggestion:!0}),{priority:yc("0xd9")})})),t[yc("0x127")].for(yc("0x78"))[yc("0xef")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const r=n[yc("0x172")].markerNameToElements(e[yc("0x39")]);if(r)for(const t of r)t[yc("0x11")]("addHighlight")||(n[yc("0x63")][yc("0x14")]([yc("0x141"),yc("0x96"),"ck-suggestion-marker--active"],t),n.writer[yc("0xa1")]("data-suggestion",t),n[yc("0x172")][yc("0xe7")](t,e[yc("0x39")]))}),{priority:yc("0xd9")})})),t.conversion[yc("0x56")](yc("0x78")).add((t=>{t.on(yc("0x64"),((t,e,n)=>{const r=n[yc("0x172")].markerNameToElements(e[yc("0x39")]);if(!r)return;const{id:i}=this._splitMarkerName(e.markerName),o=this[yc("0x5")][yc("0xb7")](i),s=this._getAttributeKey(o);if(this[yc("0xc1")](s))for(const t of r)t[yc("0x11")]("addHighlight")||(n[yc("0x63")][yc("0x14")]([yc("0x141"),"ck-suggestion-marker-formatBlock",yc("0x13d")],t),n[yc("0x63")].removeAttribute(yc("0x13a"),t),n.mapper[yc("0xe7")](t,e.markerName))}),{priority:"high"})})),t.model[yc("0x8d")][yc("0x10")]((e=>{let n=!1;const r=Array.from(t[yc("0x83")].document[yc("0x155")].getChangedMarkers()),i=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this[yc("0x65")](x);if(yc("0x14d")!==r)continue;const d=this[yc("0x5")][yc("0xb7")](u);if(null!=a[yc("0x10e")]){yc("0x134")==c&&(n=n||vc(a[yc("0x10e")],x,e,t[yc("0x83")][yc("0xcd")]));const r="attribute"==c&&this._isBlockAttribute(l[yc("0x12c")]("|")[0]);if(a[yc("0x10e")][yc("0x2a")]||yc("0x152")==a.newRange[yc("0xfb")][yc("0xea")]||yc("0x122")==c&&!Nc(a.newRange)||r&&!Nc(a[yc("0x10e")])||yc("0x9f")==c&&(Rc(s=a.newRange)||(o=s).start.parent==o[yc("0x4e")][yc("0x50")]&&o[yc("0xc9")][yc("0x108")]))e[yc("0x8")](x),n=!0;else{if(!d||!d.isInContent)continue;i[yc("0xef")](d)}}}var o,s;return i[yc("0x149")]>0&&(n=!!this[yc("0x98")](i)||n),n})),t[yc("0x83")].document.registerPostFixer((e=>{let n=!1;for(const r of t[yc("0x83")][yc("0x8d")][yc("0x155")][yc("0x25")]())if(yc("0xb1")==r.type)for(const r of this[yc("0x5")][yc("0x15c")]()){if(r[yc("0xa0")]||!r[yc("0x1c")])continue;const i=yc("0x122")==r[yc("0xa")],o=this._getAttributeKey(r),s=o&&this._isBlockAttribute(o);if(!i&&!s)continue;const x=r.getFirstRange();if(x.start[yc("0x14a")]!=x[yc("0x4e")][yc("0x14a")]&&!x.end[yc("0x108")]){const i=t[yc("0x83")][yc("0x9c")](x[yc("0xc9")][yc("0x16")],yc("0x4e")),o=t[yc("0x83")][yc("0x93")](x[yc("0xc9")],i);e.updateMarker(r[yc("0xb2")](),{range:o}),n=!0}}return n})),t[yc("0x83")][yc("0x8d")][yc("0x10")]((t=>this[yc("0x168")](t))),t[yc("0x83")][yc("0x8d")][yc("0x10")]((t=>!t[yc("0x9")][yc("0x128")]&&this[yc("0x1f")](t))),t[yc("0x83")].on("_afterChanges",(()=>{this[yc("0x73")]=!1})),t[yc("0x83")][yc("0x8d")].on(yc("0x84"),((n,r)=>{if(!r[yc("0x128")]||r[yc("0x124")])return;if(!this[yc("0x73")])return;const i=t[yc("0x83")][yc("0x8d")][yc("0x155")].getChanges();if(0==i[yc("0xf1")])return;const o=[],s=i.filter((t=>yc("0x70")==t[yc("0xa")])),x=i[yc("0x3")]((t=>yc("0xb1")==t[yc("0xa")]&&yc("0xaf")!=t[yc("0x82")])),a=i[yc("0x3")]((t=>yc("0x8a")==t.type&&yc("0xaf")!=t.name));for(const e of s)this._isRegisteredAttribute(e[yc("0x9a")])&&o.push({key:e[yc("0x9a")],newValue:e.attributeNewValue,oldValue:e[yc("0x79")],range:Lc(e[yc("0x38")],t[yc("0x83")])});for(const e of x){const n=a.find((t=>t._element===e[yc("0x43")]));if(n){const r=Mc(e[yc("0x173")][yc("0x16")],t.model);n[yc("0x82")]!==e[yc("0x82")]&&o[yc("0x6c")]({key:"$elementName",newValue:e[yc("0x82")],oldValue:n[yc("0x82")],range:r});for(const[t,i]of n[yc("0xfe")]){if(!this[yc("0x30")](t))continue;const n=e[yc("0xfe")][yc("0xb7")](t);i!==n&&o.push({key:t,newValue:n,oldValue:i,range:r})}for(const[t,i]of e.attributes)this[yc("0x30")](t)&&(n.attributes[yc("0xbb")](t)||o[yc("0x6c")]({key:t,newValue:i,oldValue:null,range:r}))}}0!=o[yc("0xf1")]&&t[yc("0x83")][yc("0x161")](r,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:r,newValue:i}of o)this.markAttributeChange(t,e,r,i,{groupId:n});this[yc("0xd1")](t,o)}))}),{priority:yc("0xde")}),t[yc("0x83")][yc("0x2e")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[yc("0x65")](e.name),n=this[yc("0x5")].get(t);n&&n[yc("0xbe")](e[yc("0x82")])}})),t.model[yc("0x8d")].on(yc("0x84"),(()=>{const e=Array[yc("0x162")](t[yc("0x83")].document[yc("0x155")].getChangedMarkers())[yc("0x3")]((t=>"suggestion"===this[yc("0x65")](t.name)[yc("0x16c")]));if(0===e[yc("0xf1")])return;e.sort(((t,e)=>{const n=t[yc("0x11a")].oldRange,r=e[yc("0x11a")][yc("0xd3")];return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n[yc("0xc9")].isBefore(r.start)?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:i}of e){const{id:e}=this[yc("0x65")](t);if(null===i.oldRange){const e=this._handleNewSuggestionMarker(t);r[yc("0xef")](e)}else{const t=this[yc("0x5")][yc("0xb7")](e);null!==i[yc("0x10e")]||t[yc("0x1c")]?(n[yc("0xef")](t[yc("0x8b")]),r[yc("0xef")](t)):this[yc("0x15a")](t)}}r.size>0&&this._refreshSuggestionsChain(r);for(const t of n)this.fire("suggestionChanged",t)})),t[yc("0x83")].on(yc("0x11b"),((e,n)=>{const r=n[0];if(!this[yc("0x5")][yc("0x149")])return;if(!r.isDocumentOperation)return;if(r[yc("0x9")].isUndo||!r[yc("0x9")][yc("0x128")])return;let i,o;switch(r.type){case"insert":i=t[yc("0x83")][yc("0x9c")](r[yc("0x173")]),o=i[yc("0x9e")](r.howMany);break;case yc("0x12c"):i=t[yc("0x83")][yc("0x9c")](r.splitPosition),o=t[yc("0x83")].createPositionAt(r[yc("0x85")]);break;case"move":i=t[yc("0x83")][yc("0x9c")](r[yc("0x14e")]),o=i[yc("0x9e")](r[yc("0xc2")]);break;default:return}const s=t.model[yc("0x93")](i,o);t.model[yc("0x99")]((()=>{for(const{suggestion:t,meta:e}of this[yc("0x5d")](s)){if(t[yc("0xa0")])continue;if(yc("0x134")==t[yc("0xa")])continue;const n=this._getAttributeKey(t);if(n&&this[yc("0xc1")](n)&&"split"!=r.type)continue;const x=t.data&&t[yc("0x11a")][yc("0xa5")];(yc("0x122")!=t[yc("0xa")]||yc("0x12c")==r.type&&!x)&&(e.containsRangeInObject||"insertion"==t[yc("0xa")]&&e[yc("0xc8")]||t.getFirstRange()[yc("0x66")](s)&&this[yc("0x46")](t,i,o))}}))}),{priority:"lowest"}),t[yc("0x83")].on(yc("0x138"),((e,n)=>{const r=n[0],i=n[1];if(i&&i[yc("0x139")])return;if(this[yc("0xbd")])return;if(!this[yc("0x121")][yc("0x0")])return;if(r[yc("0x2a")])return;const o=t.model[yc("0xcd")],{start:s,end:x}=r.getFirstRange(),a=s[yc("0x16")]&&o[yc("0x88")](s[yc("0x16")])?null:o[yc("0x131")](s,yc("0x11c")),c=x[yc("0x50")]&&o[yc("0x88")](x.nodeBefore)?null:o[yc("0x131")](x,yc("0xa9")),l=t[yc("0x83")][yc("0x93")](a?a.start:s,c?c[yc("0x4e")]:x);t[yc("0x83")][yc("0x99")]((e=>{this[yc("0xf3")](l);const n=t.model[yc("0xcd")][yc("0x131")](l[yc("0xc9")]);r.is("documentSelection")?e[yc("0x37")](n):r[yc("0x14c")](n)})),e[yc("0x19")]()}),{priority:e.priorities[yc("0x31")]+10}),t[yc("0x83")].on(yc("0x154"),((e,n)=>{const r=n[n.length-1];r&&r[yc("0x139")]||this[yc("0xbd")]||this[yc("0x121")][yc("0x0")]&&(t.model.change((()=>{let r=t[yc("0x83")][yc("0x154")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e[yc("0x3f")]=r.clone();const i=r[yc("0x4e")][yc("0x50")],o=t[yc("0x83")][yc("0xcd")];i&&o[yc("0xe")](i)&&!o[yc("0x107")](i)&&(r=t[yc("0x83")][yc("0x93")](r[yc("0xc9")],t[yc("0x83")][yc("0x9c")](i,yc("0x4e")))),this[yc("0x103")](r)})),e[yc("0x19")]())}),{priority:yc("0xd9")}),this[yc("0xb8")][yc("0x60")][yc("0xef")](yc("0x11d"),this[yc("0x121")]),this[yc("0xda")](yc("0x11d"));const i=new b(t,this._suggestions);t.commands.add(yc("0x17"),i),this.enableCommand(yc("0x17"));const o=new y(t,this._suggestions);t[yc("0x60")].add(yc("0x6f"),o),this[yc("0xda")]("discardSuggestion"),t[yc("0x60")][yc("0xef")](yc("0x117"),new F(t,i,this[yc("0x5")])),this.enableCommand(yc("0x117")),t[yc("0x60")][yc("0xef")](yc("0xd6"),new F(t,o,this._suggestions)),this[yc("0xda")]("discardAllSuggestions"),t[yc("0x60")].add(yc("0x13b"),new j(t,i,this[yc("0x5")])),this.enableCommand(yc("0x13b")),t[yc("0x60")][yc("0xef")](yc("0x3b"),new j(t,o,this[yc("0x5")])),this[yc("0xda")]("discardSelectedSuggestions");const s=t[yc("0xe6")][yc("0xb7")](yc("0x9b"));this[yc("0xac")](s,yc("0x35"),((t,{threadId:e})=>{const n=this[yc("0x5")][yc("0xb7")](e);n&&n[yc("0x8c")]&&1===n.commentThread[yc("0xf1")]&&this[yc("0x102")](e,{hasComments:!0})}),{priority:"low"}),this.listenTo(s,yc("0x3a"),((t,{threadId:e})=>{const n=this[yc("0x5")][yc("0xb7")](e);n&&n[yc("0x8c")]&&!n[yc("0x8c")][yc("0xf1")]&&this[yc("0x102")](e,{hasComments:!1})}),{priority:yc("0x101")})}set[yc("0xce")](t){if(this[yc("0xc")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[yc("0xc")]=t}get[yc("0xce")](){return this._adapter}[yc("0x6d")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[yc("0x5")].values())t&&!e.isInContent||n[yc("0x6c")](e);return e?n[yc("0x16b")]((t=>t[yc("0x5f")]())):n}[yc("0x12")](t){const n=this[yc("0x5")].get(t);if(!n)throw new e.CKEditorError(yc("0xf0"),this);return n}[yc("0xeb")](t){return this[yc("0x5")][yc("0xbb")](t)}[yc("0xca")](t){const{authorId:e,id:n,attributes:r}=t,[i,o]=t.type[yc("0x12c")](":"),s=this[yc("0x5")][yc("0xb7")](n)||this[yc("0xd2")](i,o,n,e,r);if(this[yc("0x3d")](s),this[yc("0xed")](s,i,o||null,e),s.createdAt=t[yc("0x111")],s[yc("0x2b")]=!0,r&&r[yc("0x16a")]){const t=r[yc("0x16a")],e=this[yc("0xb6")](t[yc("0xb5")]);s[yc("0x32")]=t[yc("0x111")],s.author=e,s[yc("0x6b")]=!0}else s[yc("0x32")]=t[yc("0x111")];switch(t.data&&(s.data=t.data),t[yc("0xfe")]&&(s.attributes=t[yc("0xfe")]),this[yc("0xc")]&&this[yc("0xc")][yc("0xe5")]||(s[yc("0x160")]=!0),this[yc("0xb4")].get(s)){case yc("0x166"):this._suggestionState[yc("0x28")](s,yc("0xfa"));break;case yc("0x104"):s[yc("0x1c")]?(this._joinWithAdjacentSuggestions(new Set([s])),this._refreshSuggestionsChain(new Set([s])),this._suggestionState.set(s,yc("0x92")),this[yc("0x67")](yc("0xf2"),s)):this._suggestionState[yc("0x28")](s,yc("0xe9"))}return s}[yc("0x17")](t){this.forceDefaultExecution((()=>{this.editor.model[yc("0x99")]((()=>{for(const e of t[yc("0x11e")]())e[yc("0x45")]()}))}))}discardSuggestion(t){this[yc("0x139")]((()=>{this[yc("0xb8")].model.change((()=>{for(const e of t[yc("0x11e")]())e[yc("0x2")]()}))}))}enableCommand(t,n){const r=this[yc("0xb8")][yc("0x60")][yc("0xb7")](t);if(!r)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this[yc("0x113")].has(r))throw new e.CKEditorError(yc("0x7c"),this,{commandName:t});this[yc("0x113")][yc("0xef")](r),n&&r.on("execute",((t,e)=>{this[yc("0x121")][yc("0x0")]&&(this._isForcedDefaultExecutionBlock||(e[yc("0xf1")]>0&&e[e[yc("0xf1")]-1]&&e[e[yc("0xf1")]-1].forceDefaultExecution?e[yc("0x115")]():(t[yc("0x3f")]=n(((...t)=>r.execute(...t,{forceDefaultExecution:!0})),...e),t.stop())))}),{priority:yc("0xd9")})}[yc("0x139")](t){let n,r;const i=this._isForcedDefaultExecutionBlock;this[yc("0xbd")]=!0;try{n=t()}catch(t){r=t}return i||(this[yc("0xbd")]=!1),r&&e.CKEditorError[yc("0xae")](r,this),n}[yc("0x103")](t,n=null,r={}){if(t[yc("0x2a")])return null;const i=this[yc("0xb8")].plugins[yc("0xb7")](yc("0x1b")).me;for(const{suggestion:e,meta:i}of this[yc("0x5d")](t,"insertion"))if(i[yc("0xc8")]){if(!i[yc("0x24")]){if(i[yc("0xf6")]){if(!this[yc("0x44")]||!Fc(e,r))continue;return e}if(Fc(e,r))return e;this[yc("0x46")](e,t[yc("0xc9")],t[yc("0x4e")]);break}if(n==e[yc("0x137")]&&Fc(e,r)){const n=e[yc("0xa6")]();return n[yc("0xc9")][yc("0x151")](t[yc("0x4e")])?this[yc("0xfd")](e,this[yc("0x16d")].createRange(t[yc("0xc9")],n[yc("0x4e")])):this[yc("0xfd")](e,this[yc("0x16d")][yc("0x93")](n[yc("0xc9")],t.end)),e}}const o=(0,e.uid)(),s=i.id,x=n?"insertion:"+n:"insertion",a=this[yc("0x4a")]({id:o,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0x129")](x,o,s,t),a}markMultiRangeInsertion(t,n=yc("0x13c"),r={}){const i=this[yc("0xb8")][yc("0xe6")][yc("0xb7")](yc("0x1b")).me,o=this._suggestionFactory.getSuggestionCallback(yc("0x72"),n,yc("0x5a"));for(const e of this[yc("0x6d")]())if(e[yc("0x167")].id==i.id&&"insertion"==e[yc("0xa")]&&e[yc("0x137")]==n&&Fc(e,r)&&(o(e[yc("0x4d")](),t)||o(t,e[yc("0x4d")]()))){for(const n of t)e[yc("0x87")](n);return e}for(const{suggestion:e,meta:n}of this[yc("0x5d")](t,"insertion")){if(!n[yc("0xc8")])continue;if(!this[yc("0x44")]&&n.containsRangeInObject)continue;if(!Fc(e,r))continue;let i=!0;for(const n of e[yc("0x4d")]())for(const e of t)if(!n[yc("0x66")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a="insertion:"+n,c=this[yc("0x4a")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this[yc("0x129")](a,s,x,e,Qr[yc("0x13e")]());return c}[yc("0x53")](t,n,r=null,i={}){if(r=r||Sc(n),t[yc("0x2a")])return null;if(yc("0xe0")===this[yc("0x2f")]){const e=this._suggestionFactory[yc("0x91")]("formatInline",r,yc("0x45"));return this.forceDefaultExecution((()=>e([t],n,i))),null}const o=this[yc("0xb8")][yc("0xe6")][yc("0xb7")]("Users").me,s=[];if(yc("0x100")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[yc("0x5d")](t,yc("0x72")))n.isOwn&&!n[yc("0x6e")]&&s[yc("0x6c")](...e[yc("0x4d")]());const x=function(t,e){const n=[];for(const r of e){const e=t[yc("0x12a")](r);e&&n.push(e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const r=n[e][yc("0x136")](t);n[yc("0x10f")](e,1,...r),e+=r[yc("0xf1")]}}return n}(t,s);x[yc("0xf1")]&&this[yc("0x16d")][yc("0x99")]((()=>{for(const t of x){const e=this[yc("0x146")][yc("0x91")](yc("0x134"),r,yc("0x45"));this[yc("0x139")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[yc("0xc9")],a=t[yc("0x4e")];for(const{suggestion:e,meta:n}of this[yc("0x5d")](t,yc("0x134"))){if(!n[yc("0xc8")])continue;if(e[yc("0x137")]!=r)continue;if(!Fc(e,i))continue;const o=e[yc("0xa6")]();if(o.containsRange(t,!0))return null;x=x[yc("0x12f")](o.start)?x:o[yc("0xc9")],a=a.isAfter(o[yc("0x4e")])?a:o.end,s?o[yc("0xc9")][yc("0x12f")](s[yc("0xa6")]().start)?(s[yc("0x126")](),s=e):e[yc("0x126")]():s=e}const c=this[yc("0x16d")][yc("0x93")](x,a);if(s)this[yc("0xfd")](s,c);else{const t=(0,e.uid)(),s=o.id;this[yc("0x4a")]({id:t,type:yc("0xc7")+r,data:n,createdAt:new Date,authorId:s,attributes:i}),this[yc("0x129")](yc("0xc7")+r,t,s,c)}}return null}[yc("0x9d")](t,n,r=[],i=null,o={}){n[yc("0x54")]||(n[yc("0x54")]=n.commandName),n[yc("0xa5")]=t.is(yc("0x38")),i=i||Sc(n);const s=r[yc("0x16b")]((t=>Mc(t,this[yc("0x16d")]))),x=t.is(yc("0x38"))?t:Mc(t,this[yc("0x16d")]);if("never"===this[yc("0x2f")]){const t=this._suggestionFactory[yc("0x91")](yc("0x122"),i,"accept");return this[yc("0x139")]((()=>t([x],n,o))),null}s[yc("0x6c")](x);let a=!0;for(const t of s)if(!this[yc("0xe2")](t)){a=!1;break}if(a&&"always"!==this[yc("0x2f")]){const t=this._suggestionFactory[yc("0x91")](yc("0x122"),i,yc("0x45"));return this[yc("0x139")]((()=>t([x],n,o))),null}let c=null,l=x[yc("0xc9")],u=x[yc("0x4e")];for(const{suggestion:t,meta:e}of this[yc("0x5d")](x,yc("0x122"))){if(!e.isOwn)continue;if(e.isNextTo||e[yc("0xf6")]||e[yc("0x6e")])continue;if(t[yc("0x11a")][yc("0x54")]!=n[yc("0x54")])continue;if(!Fc(t,o))continue;const r=t.getFirstRange();if(t.subType==i){if(r[yc("0x66")](x,!0))return null;l=l[yc("0x12f")](r[yc("0xc9")])?l:r[yc("0xc9")],u=u.isAfter(r.end)?u:r[yc("0x4e")],c?r[yc("0xc9")][yc("0x12f")](c.getFirstRange()[yc("0xc9")])?(c[yc("0x126")](),c=t):t[yc("0x126")]():c=t}else{const e=x.getIntersection(r);this._cutOutSuggestionMarker(t,e)}}const d=this[yc("0xb8")][yc("0xe6")][yc("0xb7")](yc("0x1b")).me,g=(0,e.uid)(),f=d.id;if(c)return this._setSuggestionRange(c,this._model[yc("0x93")](l,u)),c;{const t=this[yc("0x4a")]({id:g,type:yc("0xf8")+i,data:n,createdAt:new Date,authorId:f,attributes:o});return this[yc("0x129")](yc("0xf8")+i,g,f,this[yc("0x16d")][yc("0x93")](l,u)),t}}[yc("0x10c")](t,n,r=[],i=null,o={}){n[yc("0x54")]||(n[yc("0x54")]=n.commandName);const s=t[0];n[yc("0xa5")]=s.is(yc("0x38")),i=i||Sc(n);const x=r[yc("0x16b")]((t=>Mc(t,this[yc("0x16d")]))),a=s.is(yc("0x38"))?t:t[yc("0x16b")]((t=>Mc(t,this[yc("0x16d")])));if(yc("0xe0")===this[yc("0x2f")]){const t=this[yc("0x146")][yc("0x91")](yc("0x122"),i,yc("0x45"));return this[yc("0x139")]((()=>t(a,n,o))),null}x[yc("0x6c")](...a);let c=!0;for(const t of x)if(!this[yc("0xe2")](t)){c=!1;break}if(c&&yc("0x100")!==this[yc("0x2f")]){const t=this._suggestionFactory[yc("0x91")](yc("0x122"),i,yc("0x45"));return this[yc("0x139")]((()=>t(a,n,o))),null}const l=this[yc("0xb8")].plugins.get(yc("0x1b")).me;for(const t of this[yc("0x6d")]()){if(t.author.id!=l.id)continue;if(yc("0x122")!=t[yc("0xa")]||t[yc("0x11a")][yc("0x54")]!=n[yc("0x54")])continue;if(!Fc(t,o))continue;const e=t[yc("0x137")]==i;for(let n=0;n<a[yc("0xf1")];n++){const r=a[n];for(const i of t[yc("0xf5")]()){const o=i.getRange();if(r[yc("0x151")](o)){e?(a[yc("0x10f")](n,1),n--):t[yc("0x8")](i[yc("0x82")]);break}}}}if(0==a[yc("0xf1")])return null;const u=this._suggestionFactory[yc("0x91")](yc("0x122"),i,yc("0x5a"));for(const t of this[yc("0x6d")]())if(t.author.id==l.id&&yc("0x122")==t[yc("0xa")]&&t[yc("0x11a")][yc("0x54")]==n[yc("0x54")]&&t.subType==i&&Fc(t,o)&&(u(t[yc("0x4d")](),a)||u(a,t[yc("0x4d")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,f="formatBlock:"+i,h=this[yc("0x4a")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this[yc("0x129")](f,d,g,t,Qr[yc("0x13e")]());return h}[yc("0xf3")](t,n=null,r={}){if(t[yc("0x2a")])return null;const i=this[yc("0xb8")].plugins[yc("0xb7")](yc("0x1b")).me,o=new s.LiveRange(t[yc("0xc9")],t[yc("0x4e")]);for(const{suggestion:t,meta:e}of this[yc("0x5d")](o,yc("0x72")))if(e.isOwn&&!e[yc("0x24")])if(t[yc("0xa0")]){const e=t[yc("0x4d")]()[yc("0x3")]((t=>"$graveyard"!=t.root[yc("0xea")]));if(e[yc("0x1")]((t=>o[yc("0x66")](t,!0)))&&t[yc("0x2")](),e[yc("0x112")]((t=>t.containsRange(o,!0)))){const t=this[yc("0x146")].getSuggestionCallback(yc("0x9f"),n,yc("0x45"));return this[yc("0x139")]((()=>t([o],null,r))),null}}else{const e=o[yc("0x12a")](t[yc("0xa6")]());null!==e&&t._onDiscard([e],null,r)}if(o[yc("0x42")](),o[yc("0x2a")]||"$graveyard"==o.root[yc("0xea")])return null;let x=null,a=o[yc("0xc9")],c=o[yc("0x4e")];const l=this[yc("0x5d")](o,"deletion");for(const{suggestion:t,meta:e}of l){const n=this[yc("0x16d")][yc("0x93")](a,c);if(e.isOwn&&(this[yc("0x44")]||!e[yc("0xf6")]&&!e[yc("0x6e")]))if(t[yc("0xa0")]){if(!Fc(t,r))continue;let e=!0;for(const r of t[yc("0x4d")]()){if(r[yc("0x66")](n,!0))return t;n[yc("0x66")](r)||(e=!1)}e&&t[yc("0x2")]()}else{const e=t[yc("0xa6")]();if(e[yc("0x66")](n,!0))return t;if(!Fc(t,r)){n[yc("0x66")](e)?t.removeMarkers():e[yc("0x116")](a)?a=e.end:e[yc("0x116")](c)&&(c=e.start);continue}a=a[yc("0x12f")](e[yc("0xc9")])?a:e[yc("0xc9")],c=c[yc("0x62")](e[yc("0x4e")])?c:e[yc("0x4e")],r=Object[yc("0x119")]({},t[yc("0xfe")]),x?e[yc("0xc9")].isBefore(x.getFirstRange()[yc("0xc9")])?(x[yc("0x126")](),x=t):t.removeMarkers():x=t}}if(x)return this[yc("0xfd")](x,this[yc("0x16d")][yc("0x93")](a,c)),x;{const t=(0,e.uid)(),o=this[yc("0x16d")][yc("0x93")](a,c),s=i.id,x=n?yc("0x47")+n:yc("0x9f"),l=this[yc("0x4a")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0x129")](x,t,s,o),l}}[yc("0x55")](t,n="multi",r={}){const i=this[yc("0xb8")][yc("0xe6")][yc("0xb7")]("Users").me,o=t[yc("0x16b")]((t=>new s.LiveRange(t[yc("0xc9")],t.end))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(o,"insertion"))e.isOwn&&!e[yc("0x24")]&&x[yc("0xef")](t);for(const e of x)if(e[yc("0xa0")]){const i=e[yc("0x4d")]();if((!e[yc("0xfe")]||!e[yc("0xfe")][yc("0x114")])&&i.every((t=>o[yc("0x112")]((e=>e.containsRange(t,!0)))))&&e[yc("0x2")](),o.every((t=>i[yc("0x112")]((e=>e.containsRange(t,!0)))))){const e=this[yc("0x146")][yc("0x91")](yc("0x9f"),n,yc("0x45"));return this.forceDefaultExecution((()=>e(t,null,r))),null}}else{const t=e.getFirstRange();if(o[yc("0x112")]((e=>e.containsRange(t,!0)))&&e[yc("0x2")](),o[yc("0x1")]((e=>t[yc("0x66")](e,!0)))){const t=this._suggestionFactory[yc("0x91")](yc("0x9f"),n,yc("0x45"));return this[yc("0x139")]((()=>t(o,null,r))),null}}const a=this._suggestionFactory[yc("0x91")](yc("0x9f"),n,"join");let c=null;for(const t of this.getSuggestions())if(t[yc("0x167")].id==i.id&&t[yc("0x1c")]&&yc("0x9f")==t.type&&t[yc("0x137")]==n&&Fc(t,r)&&(a(t[yc("0x4d")](),o)||a(o,t.getRanges())))if(c){if(t[yc("0x8c")]&&t.commentThread.length)continue;for(const e of t[yc("0x4d")]())c.isIntersectingWithRange(e)||c[yc("0x87")](e);t[yc("0x126")]()}else{c=t;for(const e of o)t.isIntersectingWithRange(e)||t.addRange(e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this[yc("0x5d")](o,yc("0x9f")))e[yc("0xc8")]&&(this[yc("0x44")]||!e.containsRangeInObject&&!e.isInsideObject)&&Fc(t,r)&&x[yc("0xef")](t);for(const t of x){const e=t.getRanges();if((!r||!r[yc("0x114")])&&o.every((t=>e[yc("0x112")]((e=>e[yc("0x66")](t,!0))))))return t;(!t[yc("0xfe")]||!t[yc("0xfe")][yc("0x114")])&&e[yc("0x1")]((t=>o.some((e=>e[yc("0x66")](t,!0)))))&&t[yc("0x2")]()}const l=(0,e.uid)(),u=i.id,d=yc("0x47")+n,g=this[yc("0x4a")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of o)t[yc("0x42")](),t[yc("0x2a")]||"$graveyard"==t[yc("0xfb")].rootName||this[yc("0x129")](d,l,u,t,Qr.getMultiRangeId());return g}[yc("0xa8")](t,n,r,i,o){if(t[yc("0x2a")])return[];if(yc("0xe0")===this[yc("0x2f")])return[];const s=this[yc("0xb8")].plugins[yc("0xb7")]("Users").me.id,x=Array[yc("0x162")](this[yc("0x5")][yc("0x15c")]())[yc("0x3")]((e=>"attribute"==e[yc("0xa")]&&e[yc("0x11a")][yc("0x125")]==n&&e[yc("0x69")](t)));if("default"===this._trackFormatChanges){const e=this._findSuggestions(t,"insertion")[yc("0x3")]((({meta:t})=>t[yc("0xc8")]&&!t[yc("0x6e")]&&!t[yc("0x24")]))[yc("0x16b")]((({suggestion:t})=>t));x[yc("0x33")](...e)}const a=new Map([[t,r]]);for(const t of x){const e=yc("0x70")==t.type?t[yc("0x11a")][yc("0xa4")]:void 0,o=t[yc("0xa6")](),s=Array[yc("0x162")](a[yc("0x58")]()).find((t=>t.isIntersecting(o)));if(!s)continue;const x=s[yc("0x136")](o);this[yc("0xc1")](n)&&yc("0x72")==t[yc("0xa")]&&0!=x[yc("0xf1")]||(a[yc("0x10b")](s),x[yc("0x89")]((t=>{a[yc("0x28")](t,r)})),yc("0x72")!=t[yc("0xa")]&&e!=i&&a.set(s.getIntersection(o),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:i};n[yc("0xf1")]>37&&console.warn(yc("0x13"),{key:n});const l=("attribute:"+n+"|"+Sc({newValue:i})).substring(0,60),u=this._setSuggestionData({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c[yc("0x6c")](u),this[yc("0x129")](l,x,s,t)}return c}[yc("0xe4")](t){this[yc("0xe3")][yc("0xef")](t)}[yc("0xe1")](t){this[yc("0x95")][yc("0xef")](t)}[yc("0xd")](t,e=[],n=[]){this[yc("0xda")](t,((t,...e)=>{this[yc("0x150")]((()=>{t(...e)}))}));for(const t of e)this[yc("0xe1")](t);for(const t of n)this[yc("0xe4")](t)}_getAttributeKey(t){return yc("0x70")==t[yc("0xa")]?t[yc("0x137")][yc("0x12c")]("|")[0]:null}_setSuggestionRange(t,e){const n=t[yc("0xb2")]();this[yc("0x16d")][yc("0x99")]((t=>{t[yc("0x15")](n,{range:e})}))}[yc("0x3d")](t){const e=t.id,n=this[yc("0xb8")][yc("0x14b")][yc("0xb7")]("collaboration.channelId");this._commentsRepository.hasCommentThread(e)||this[yc("0x15b")][yc("0xdd")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this[yc("0x15b")][yc("0x5c")](e);r[yc("0xc6")](yc("0x77")),r[yc("0x77")]=!1,t[yc("0x8c")]=r}[yc("0xed")](t,n,r,i){if(t[yc("0xa")]!=n||t[yc("0x137")]!=r||t.creator.id!=i)throw this[yc("0xb8")][yc("0x7")](yc("0x159")),new e.CKEditorError(yc("0x159"),this)}_cutOutSuggestionMarker(t,n){const r=t[yc("0xa6")]();if(n[yc("0x151")](r))t[yc("0x126")]();else if(r[yc("0x66")](n)){const i=this._model[yc("0x9c")](n[yc("0xc9")][yc("0x50")],yc("0x4e"));this[yc("0xfd")](t,this._model[yc("0x93")](r[yc("0xc9")],i));const o=(0,e.uid)(),s=t.creator.id,x=t[yc("0xa")]+":"+t[yc("0x137")];this[yc("0x4a")]({id:o,type:x,createdAt:new Date,authorId:s,data:t.data,attributes:t[yc("0xfe")]});const a=this._model.createPositionAt(n[yc("0x4e")][yc("0x14a")],yc("0x12b")),c=this[yc("0x16d")].createRange(a,r[yc("0x4e")]);this._addSuggestionMarker(x,o,s,c)}else if(r[yc("0x116")](n[yc("0xc9")])){const e=this[yc("0x16d")][yc("0x9c")](n[yc("0xc9")][yc("0x50")],yc("0x4e"));this[yc("0xfd")](t,this._model[yc("0x93")](r[yc("0xc9")],e))}else{const e=this._model[yc("0x9c")](n[yc("0x4e")][yc("0x14a")],yc("0x12b"));this[yc("0xfd")](t,this[yc("0x16d")][yc("0x93")](e,r[yc("0x4e")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[yc("0x5d")](t,"insertion")){if(!n[yc("0xc8")])continue;const r=e.getRanges();for(const e of r)if(!t.getDifference(e)[yc("0xf1")])return!0}return!1}_getAuthorFromId(t){const n=this.editor.plugins[yc("0xb7")]("Users")[yc("0x61")](t);if(!n)throw new e.CKEditorError(yc("0x171"),this);return n}[yc("0xb6")](t){const e=this[yc("0xb8")][yc("0xe6")][yc("0xb7")](yc("0x1b")),n=(0,o.hashObject)(yc("0xbf")+t);return e[yc("0x61")](n)||e[yc("0x86")]({id:n,name:t})}[yc("0xd2")](t,e,n,r,i){const o=this._getAuthorFromId(r),s=this[yc("0x146")][yc("0xb3")](t,e,n,o,i,(t=>{this[yc("0x102")](n,{attributes:t});const e=this[yc("0x12")](n);this[yc("0x98")](new Set([e])),this._refreshSuggestionsChain(new Set([e]))}));return this[yc("0xac")](s,yc("0x45"),(()=>{this[yc("0x102")](n,{state:yc("0xe8")})}),{priority:yc("0xd9")}),this.listenTo(s,"discard",(()=>{this._updateSuggestionData(n,{state:yc("0x7d")})}),{priority:yc("0xd9")}),this[yc("0x5")][yc("0x28")](n,s),this._suggestionState[yc("0x28")](s,"notReady"),s}[yc("0x65")](t){const e=t[yc("0x12c")](":");return{group:e[0],type:e[1],subType:e[yc("0xf1")]>=5?e[2]:null,id:e[yc("0xf1")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[yc("0xf1")]?e[5]:null}}_breakSuggestionMarker(t,n,r){const i=t[yc("0xa6")](),o=i.start,s=i[yc("0x4e")];this._setSuggestionRange(t,this._model[yc("0x93")](o,n));const x=(0,e.uid)(),a=t[yc("0x153")].id,c=t[yc("0xa")]+(t[yc("0x137")]?":"+t[yc("0x137")]:"");this[yc("0x4a")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[yc("0xfe")],data:t[yc("0x11a")]});const l=this._getAttributeKey(t);(yc("0x122")==t[yc("0xa")]||l&&this[yc("0xc1")](l))&&(r=this[yc("0x16d")][yc("0xc3")](r[yc("0x14a")])),this[yc("0x129")](c,x,a,this[yc("0x16d")][yc("0x93")](r,s))}_findSuggestions(t,e=null){const n=[],r=this[yc("0xb8")][yc("0xe6")][yc("0xb7")](yc("0x1b")).me;Array[yc("0x2c")](t)||(t=[t]);for(const i of this[yc("0x6d")]()){if(!i[yc("0x1c")])continue;if(e&&i.type!=e)continue;let o=!1;for(const e of i[yc("0x4d")]()){for(const s of t){const t=s[yc("0xc9")][yc("0x151")](e[yc("0x4e")])||s[yc("0x4e")].isEqual(e[yc("0xc9")]);if(t||s.getIntersection(e)){const x=s.containsRange(e)&&Ic(this._model[yc("0xcd")],e[yc("0xc9")],s),a=e.containsRange(s)&&Ic(this[yc("0x16d")][yc("0xcd")],s[yc("0xc9")],e);n[yc("0x6c")]({suggestion:i,meta:{isOwn:r==i[yc("0x167")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[yc("0x129")](t,e,n,r,i){this[yc("0x16d")][yc("0x99")]((o=>{let s=yc("0x52")+t+":"+e+":"+n;i&&(s=s+":"+i),o[yc("0xd7")](s,{range:r,usingOperation:!0,affectsData:!0})}))}[yc("0x15a")](t){const e=t[yc("0xec")],n=t[yc("0xcc")];t[yc("0xec")]=null,t[yc("0xcc")]=null,null!=e&&e[yc("0xcc")]==t&&(e.next=n),null!=n&&n[yc("0xec")]==t&&(n[yc("0xec")]=e),"ready"==this[yc("0xb4")][yc("0xb7")](t)&&(this._suggestionState[yc("0x28")](t,yc("0xe9")),this[yc("0x67")]("suggestionUnloaded",t,e,n))}[yc("0x4a")](t){const n=t.id,r=this[yc("0xca")](t);if(this._adapter&&this[yc("0xc")][yc("0xe5")]){const i=this[yc("0xb8")][yc("0xe6")].get(yc("0x51")),o=r[yc("0xc0")],s=r[yc("0x137")]?r.type+":"+r.subType:r.type,x=this[yc("0xb8")][yc("0xb")],a=i[yc("0xef")](Yr(x,yc("0xdf"))),c={id:n,type:s,hasComments:o,data:t[yc("0x11a")]||null,originalSuggestionId:t[yc("0x147")]||null,attributes:r[yc("0xfe")]};this[yc("0xc")].addSuggestion(c)[yc("0x140")]((t=>{r[yc("0x160")]=!0,i[yc("0x8a")](a),t&&t[yc("0x111")]&&(this._suggestions[yc("0xb7")](n).createdAt=t[yc("0x111")])}))[yc("0xb9")]((t=>{throw(0,e.logWarning)(yc("0xd5")),this[yc("0xb8")][yc("0x83")][yc("0x161")]({isUndoable:!1},(()=>{r.discard()})),r.stopListening(),this._suggestions.delete(r.id),this._suggestionState[yc("0x10b")](r),t}))}return r}_isBlockAttribute(t){return this[yc("0xe3")][yc("0xbb")](t)}[yc("0x102")](t,e){const n=this[yc("0xb8")][yc("0xe6")][yc("0xb7")](yc("0x51")),r=this[yc("0x12")](t);if(this._adapter&&this[yc("0xc")][yc("0x40")])if(r[yc("0x160")]){const r=n.add(Yr(this.editor.locale,"PENDING_ACTION_SUGGESTION"));this._adapter[yc("0x40")](t,e)[yc("0x140")]((()=>{n[yc("0x8a")](r)}))}else r.on(yc("0x120"),(()=>{this[yc("0x102")](t,e)}))}[yc("0x132")](t){if(!this._adapter||!this[yc("0xc")][yc("0x12")])throw new e.CKEditorError(yc("0xba"),this);return this[yc("0xc")][yc("0x12")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:r,authorId:i}=this[yc("0x65")](t),o=this[yc("0x5")][yc("0xb7")](e)||this[yc("0xd2")](n,r,e,i,{});switch(this._checkSuggestionCorrectness(o,n,r,i),this[yc("0xb4")].get(o)){case yc("0x166"):this._getSuggestionData(e)[yc("0x140")]((t=>{let n=Promise[yc("0xdc")]();t[yc("0xc0")]&&(n=this[yc("0x15b")][yc("0x34")]({channelId:this[yc("0xb8")].config[yc("0xb7")]("collaboration.channelId"),threadId:e})),n[yc("0x140")]((()=>{this[yc("0xca")](t)[yc("0x160")]=!0}))})),this._suggestionState[yc("0x28")](o,yc("0x104"));break;case yc("0xe9"):this[yc("0x102")](e,{state:"open"});case yc("0xfa"):this[yc("0xb4")].set(o,yc("0x92")),this[yc("0x67")]("suggestionLoaded",o);break;case"ready":this[yc("0x67")](yc("0x21"),o)}return o[yc("0xbe")](t),o}[yc("0x15e")](t){const e=Array[yc("0x162")](t),n=e[yc("0x3")]((t=>yc("0x70")==t[yc("0xa")]));this[yc("0x135")](n);const r=e[yc("0x3")]((t=>!t[yc("0xa0")]&&yc("0x70")!=t[yc("0xa")])),i=this[yc("0x6d")]({skipNotAttached:!0})[yc("0x3")]((t=>!t[yc("0xa0")]&&yc("0x70")!=t[yc("0xa")])),o=i[yc("0x3")]((e=>!t[yc("0xbb")](e))),s=new Map(i[yc("0x16b")]((t=>[t,this[yc("0x146")][yc("0x91")](t[yc("0xa")],t[yc("0x137")],yc("0xf"))]))),x=new Map(i[yc("0x16b")]((t=>[t,t[yc("0xa6")]()]))),a=new Set,c=new Set;for(let t=0;t<r[yc("0xf1")];t++)u(r[t],r,t+1);for(let t=0;t<r[yc("0xf1")];t++)u(r[t],o,0);const l=new Set;for(let t=0;t<r[yc("0xf1")];t++){const e=r[t];!c[yc("0xbb")](e)&&e[yc("0xec")]&&(l[yc("0xef")](e[yc("0xec")]),e[yc("0xec")][yc("0xcc")]===e&&(e.previous.next=null),e[yc("0xec")]=null),!a[yc("0xbb")](e)&&e[yc("0xcc")]&&(l[yc("0xef")](e[yc("0xcc")]),e.next[yc("0xec")]===e&&(e[yc("0xcc")].previous=null),e.next=null)}function u(t,e,n){for(let r=n;r<e[yc("0xf1")];r++){const n=d(t,e[r]);n&&(n[0].next=n[1],n[1][yc("0xec")]=n[0],a[yc("0xef")](n[0]),c[yc("0xef")](n[1]))}}function d(t,e){if(t[yc("0x167")].id!==e[yc("0x167")].id)return null;const n=s[yc("0xb7")](t)(t,e,x[yc("0xb7")](t),x[yc("0xb7")](e));return n&&s[yc("0xb7")](e)(t,e,x[yc("0xb7")](t),x[yc("0xb7")](e))?n[1][yc("0x8c")]&&n[1][yc("0x8c")].length?null:n:null}l.size&&this[yc("0x15e")](l)}[yc("0x135")](t){if(0==t[yc("0xf1")])return;const e=this[yc("0x6d")]({skipNotAttached:!0}).filter((t=>yc("0x70")==t.type&&t[yc("0x2b")])),n=[],r=new Map;for(const t of e){const e=(0,o.hashObject)(t[yc("0xfe")]);r[yc("0xbb")](e)||(r[yc("0x28")](e,n[yc("0xf1")]),n[yc("0x6c")]([]));const i=r[yc("0xb7")](e);n[i][yc("0x6c")](t)}!function(){n[yc("0x1d")](((t,e)=>{const n=t[0][yc("0x111")],r=e[0][yc("0x111")];return n==r?t[0][yc("0xfe")][yc("0xee")]<e[0].attributes.groupId?-1:1:n<r?-1:1}));for(const t of n)t.sort(((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n.length;t++){if(0==n[t][yc("0xf1")])continue;const e=[];for(let r=t+1;r<n.length;r++)0!=n[r].length&&i(n[t],n[r])&&e[yc("0x6c")](r);for(const r of e)n[t]=n[t][yc("0x130")](n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t.length;e++)t[e].next=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e].previous=t[e-1]||null;function i(t,e){if(t[0].attributes[yc("0xee")]!==e[0][yc("0xfe")][yc("0xee")]&&t[0].author!==e[0][yc("0x167")])return!1;if(n=t[0],r=e[0],(n[yc("0xc0")]||r[yc("0xc0")])&&(n[yc("0xc0")]&&r[yc("0xc0")]||!(n[yc("0xc0")]&&r[yc("0x111")]<n[yc("0x8c")][yc("0x11f")][yc("0xb7")](0).createdAt||r.hasComments&&n.createdAt<r.commentThread[yc("0x11f")][yc("0xb7")](0)[yc("0x111")])))return!1;var n,r;const i=pc(t[0][yc("0xfe")],yc("0xee")),o=pc(e[0][yc("0xfe")],yc("0xee"));return!!jr(i,o)&&(!!t[yc("0x1")]((t=>e[yc("0x112")]((e=>t[yc("0xa6")]()[yc("0x151")](e[yc("0xa6")]())))))&&e.every((e=>t[yc("0x112")]((t=>e[yc("0xa6")]()[yc("0x151")](t[yc("0xa6")]()))))))}}_joinWithAdjacentSuggestions(t){const e=Array[yc("0x162")](t),n=this[yc("0x6d")]({skipNotAttached:!0}),r=n[yc("0x3")]((e=>!t[yc("0xbb")](e))),i=new Map(e[yc("0x16b")]((t=>[t,this[yc("0x146")].getSuggestionCallback(t[yc("0xa")],t[yc("0x137")],"join")]))),o=new Map(n[yc("0x16b")]((t=>[t,t[yc("0x4d")]()])));for(let t=0;t<e[yc("0xf1")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[yc("0xf1")];t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n.length;s++){const r=n[s];if(r[yc("0xa")]!==e[yc("0xa")]||r[yc("0x167")].id!==e[yc("0x167")].id||r[yc("0x137")]!==e[yc("0x137")])continue;if(!Oc(e,r,[yc("0xee")]))continue;if(yc("0x70")==e[yc("0xa")]&&e[yc("0x11a")][yc("0xa4")]!=r[yc("0x11a")][yc("0xa4")])continue;if(yc("0x70")==e[yc("0xa")]&&t[yc("0xc1")](e[yc("0x11a")][yc("0x125")]))continue;if(yc("0x122")==e[yc("0xa")]){const n=t[yc("0xb8")][yc("0x83")],r=e[yc("0x75")]();if(r&&(n[yc("0xcd")][yc("0x107")](r)||n[yc("0xcd")][yc("0x88")](r)))continue}const x=i.get(e),a=o[yc("0xb7")](e),c=o[yc("0xb7")](r),l=e[yc("0x8c")]&&e[yc("0x8c")][yc("0xf1")],u=r[yc("0x8c")]&&r[yc("0x8c")][yc("0xf1")];if(!l&&x(c,a))return t[yc("0x7b")](r,e),o.delete(e),!0;if(!u&&x(a,c))return t[yc("0x7b")](e,r),o.delete(r),!0}return!1}}[yc("0x7b")](t,e){if(t[yc("0xa0")])for(const n of e[yc("0x4d")]())t.addRange(n);else{const n=e[yc("0xa6")]()[yc("0x4e")];this._setSuggestionRange(t,this[yc("0x16d")][yc("0x93")](t[yc("0xa6")]()[yc("0xc9")],n))}e[yc("0x126")]()}[yc("0x2d")](t,e){const n=t[yc("0xcb")](yc("0x123"))||t[yc("0xcb")]("attribute")?yc("0x7e"):t[yc("0x49")]();return Yr(this.editor[yc("0xb")],e+"_"+n+yc("0x1a"))}[yc("0x13f")](){const t=this[yc("0xb8")];(0,o.surroundingMarkersDetector)(this[yc("0x16d")],(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this[yc("0x65")](t[yc("0x82")]);if(yc("0x14d")===e){r[yc("0x6c")](this[yc("0x2d")](n,yc("0x5e")));break}}for(const t of n){const{group:e,type:n}=this[yc("0x65")](t[yc("0x82")]);if(yc("0x14d")===e){r[yc("0x6c")](this._getMarkerAnnouncementText(n,yc("0xd8")));break}}r.length&&t.ui[yc("0xf4")].announce(yc("0x11d"),r[yc("0x5a")](" "))}))}[yc("0x168")](t){if(this[yc("0x73")])return!1;const e=this[yc("0xb8")],n=e.model[yc("0x8d")][yc("0x155")][yc("0x25")]();if(0==n[yc("0xf1")])return!1;const r=[],i=n[yc("0x3")]((t=>yc("0x70")==t.type)),o=n.filter((t=>"insert"==t[yc("0xa")]&&"$text"!=t[yc("0x82")])),s=n[yc("0x3")]((t=>yc("0x8a")==t[yc("0xa")]&&yc("0xaf")!=t[yc("0x82")]));for(const t of i)r[yc("0x6c")]({key:t[yc("0x9a")],newValue:t[yc("0x10d")],oldValue:t.attributeOldValue,range:Lc(t.range,e.model)});for(const t of o){const n=s[yc("0x76")]((e=>e[yc("0x173")].isEqual(t[yc("0x173")])));n&&r[yc("0x6c")]({key:yc("0x145"),newValue:t[yc("0x82")],oldValue:n.name,range:e.model.createRangeOn(t[yc("0x173")][yc("0x16")])})}return 0!=r[yc("0xf1")]&&this[yc("0xd1")](t,r)}_processAttributeSuggestions(t){let e=!1;const n=this.editor.model.document.differ[yc("0xd0")]().filter((t=>t.data[yc("0x10e")]&&t[yc("0x82")][yc("0xcb")]("suggestion:attribute:")));for(const r of n){const{subType:n,id:i}=this._splitMarkerName(r[yc("0x82")]),o=n[yc("0x12c")]("|")[0];for(const n of this.getSuggestions({skipNotAttached:!0}))n.id!=i&&yc("0x70")==n[yc("0xa")]&&n[yc("0x11a")]&&n[yc("0x11a")][yc("0x125")]==o&&n[yc("0xa6")]()[yc("0x71")](r[yc("0x11a")].newRange)&&(this[yc("0x59")](n,r[yc("0x11a")][yc("0x10e")],t),e=!0)}return e}[yc("0x150")](t){this[yc("0xb8")],this[yc("0x73")]=!0,t()}_isRegisteredAttribute(t){const e=this[yc("0xc1")](t),n=this._inlineAttributeKeys[yc("0xbb")](t);return e||n}_reduceExistingSuggestions(t,e){if(0==e.length)return!1;let n=!1;for(const r of e){const e=this[yc("0x5d")](r[yc("0x38")],yc("0x70"))[yc("0x3")]((t=>!t[yc("0x144")][yc("0x24")])).map((t=>t[yc("0x14d")])),i=(0,o.hashObject)({newValue:r[yc("0x4c")]});e.filter((t=>{const[e,n]=t[yc("0x137")].split("|");return e==r[yc("0x125")]&&n!=i}))[yc("0x89")]((e=>{this[yc("0x59")](e,r[yc("0x38")],t),n=!0}))}return n}[yc("0x59")](t,e,n){const r=t[yc("0xa6")]().getDifference(e);0!==r[yc("0xf1")]?1!==r.length?this[yc("0x46")](t,e.start,e[yc("0x4e")]):this[yc("0xfd")](t,r[0]):n[yc("0x8")](t[yc("0xb2")]())}}class kc{constructor(t){this[yc("0x4")]=t,this[yc("0x16d")]=t.model,this[yc("0xc4")]=new Map,this[yc("0xcf")]=new Map,this[yc("0xb0")]()}[yc("0xb3")](t,e,n,r,i,o){return new Qr(this[yc("0x16d")],{type:t,subType:e,id:n,author:r,creator:r,attributes:i,onAttributesChange:o,onAccept:(...n)=>this[yc("0x91")](t,e,yc("0x45"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,yc("0x2"))(...n)})}registerCustomCallback(t,e,n,r){const i=t+":"+e+":"+n;this[yc("0xc4")][yc("0x28")](i,r)}[yc("0x91")](t,e,n){const r=t+":"+e+":"+n;return this[yc("0xc4")].get(r)||this._defaultCallbacks[yc("0xb7")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[yc("0x1d")](((t,e)=>t[yc("0xc9")][yc("0x12f")](e[yc("0xc9")])?1:-1)),this._model[yc("0x99")]((e=>{for(const n of t){let t;t=n.end[yc("0x108")]&&n[yc("0x4e")][yc("0x14a")]==n[yc("0xc9")][yc("0x16")]?e[yc("0xfc")](n[yc("0xc9")][yc("0x16")],"on"):e[yc("0xfc")](n),this._model[yc("0x138")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[yc("0x16d")][yc("0x99")]((n=>{const{commandName:r,commandParams:i=[]}=e,o=t[yc("0x16b")]((t=>(Rc(t)&&(t=this[yc("0x16d")].createRange(t[yc("0x4e")])),t)))[yc("0x3")]((t=>yc("0x152")!==t[yc("0xfb")][yc("0xea")]));if(o[yc("0xf1")]<1)return;const x=Array[yc("0x162")](this[yc("0x16d")][yc("0x8d")][yc("0x169")][yc("0x4d")]())[yc("0x16b")]((t=>s.LiveRange[yc("0x48")](t)));n[yc("0x37")](o);for(const t of this[yc("0x4")][yc("0x60")].commands())t[yc("0x4f")]();i[yc("0x6c")]({forceDefaultExecution:!0}),this._editor[yc("0x18")](r,...i);const a=x[yc("0x3")]((t=>yc("0x152")!=t[yc("0xfb")].rootName));a[yc("0xf1")]>0&&n[yc("0x37")](a);for(const t of x)t[yc("0x42")]()}))},r=(t,e)=>1==t[yc("0xf1")]&&1==e[yc("0xf1")]&&t[0][yc("0x4e")][yc("0x151")](e[0].start),i=(t,e,n,r)=>wc(t,e,n,r,this[yc("0x16d")])?[t,e]:wc(e,t,r,n,this[yc("0x16d")])?[e,t]:null;this[yc("0xcf")][yc("0x28")]("insertion:accept",t),this._defaultCallbacks.set(yc("0x143"),e),this[yc("0xcf")].set("insertion:join",r),this[yc("0xcf")][yc("0x28")](yc("0xad"),i),this[yc("0xcf")][yc("0x28")]("deletion:accept",e),this[yc("0xcf")].set("deletion:discard",t),this[yc("0xcf")][yc("0x28")](yc("0x16f"),r),this[yc("0xcf")][yc("0x28")](yc("0x26"),i),this[yc("0xcf")][yc("0x28")]("formatInline:accept",n),this[yc("0xcf")][yc("0x28")](yc("0x74"),t),this._defaultCallbacks[yc("0x28")](yc("0x8e"),r),this[yc("0xcf")][yc("0x28")](yc("0x27"),t),this[yc("0xcf")][yc("0x28")]("formatBlock:accept",n),this[yc("0xcf")][yc("0x28")](yc("0x165"),t),this[yc("0xcf")][yc("0x28")](yc("0x80"),r),this._defaultCallbacks[yc("0x28")]("formatBlock:chain",t),this[yc("0xcf")].set(yc("0x5b"),t),this._defaultCallbacks.set(yc("0x1e"),((t,e)=>{if(!e)return;const n=this[yc("0x4")][yc("0xe6")][yc("0xb7")](Ac);this[yc("0x16d")][yc("0x99")]((r=>{if("$elementName"==e[yc("0x125")])for(const n of t){const t=n[yc("0xc9")][yc("0x16")],i=e[yc("0xa4")];r[yc("0x4b")](t,i)}else if(n[yc("0xc1")](e.key))for(const n of t)void 0!==e[yc("0xa4")]?r[yc("0x164")](e.key,e[yc("0xa4")],n[yc("0xc9")][yc("0x16")]):r[yc("0xa1")](e.key,n.start.nodeAfter);else for(const n of t)e[yc("0xa4")]?r[yc("0x164")](e[yc("0x125")],e[yc("0xa4")],n):r[yc("0xa1")](e.key,n)}))})),this[yc("0xcf")][yc("0x28")](yc("0xdb"),r)}}function Ic(t,e,n){for(const r of e.parent[yc("0x163")]({includeSelf:!0,parentFirst:!0})){if(r[yc("0xfb")]==r)return!1;if(!n.containsItem(r))return!1;if(t[yc("0x107")](r)||t[yc("0x88")](r))return!0}return!1}function Rc(t){return t[yc("0x4e")][yc("0x14a")]==t.start.nodeAfter&&t.end[yc("0x90")]}function vc(t,e,n,r){const i=t=>!t[yc("0x142")].is(yc("0x158"))&&!r.isObject(t.item),o=t[yc("0xc9")][yc("0x157")](i),s=t[yc("0x4e")][yc("0x157")](i,{direction:yc("0xa9")});return!(t[yc("0xc9")][yc("0x151")](o)&&t[yc("0x4e")][yc("0x151")](s)||(o[yc("0x12f")](s)?n.updateMarker(e,{range:n[yc("0x93")](o,s)}):n.removeMarker(e),0))}function Sc(t){return(0,o.hashObject)(t)}function Nc(t){const e=t[yc("0xc9")][yc("0x16")];return e&&e.is(yc("0x12e"))}function Lc(t,e){return null==t[yc("0x4e")][yc("0x50")]&&t[yc("0x4e")][yc("0x14a")]==t[yc("0xc9")][yc("0x16")]?Mc(t[yc("0xc9")][yc("0x16")],e):t}function Mc(t,e){const n=e.schema.isObject(t)||e.schema.isSelectable(t);return e[yc("0x93")](e[yc("0x9c")](t,yc("0xc5")),n?e.createPositionAfter(t):e[yc("0x9c")](t,yc("0x4e")))}function wc(t,e,n,r,i){if(!Oc(t,e))return!1;if(n[yc("0x4e")][yc("0x151")](r[yc("0xc9")]))return!0;if(t[yc("0xa")]!=e[yc("0xa")])return!1;if(!n.end[yc("0x12d")](r[yc("0xc9")]))return!1;const o=i[yc("0x93")](n.end,r.start)[yc("0xff")]();for(const t of o)if([yc("0x57"),yc("0x6a")].includes(t[yc("0xa")])&&i[yc("0xcd")][yc("0x88")](t[yc("0x142")]))return!1;return!0}function Oc(t,e,n=[]){return!(!t[yc("0x2b")]||!e[yc("0x2b")])&&jr(pc(t[yc("0xfe")],n),pc(e[yc("0xfe")],n))}function Fc(t,e){const n=Dc(t[yc("0xfe")]),r=Dc(e);if(!t[yc("0x2b")])return!1;for(const t of Object[yc("0x58")](r))if(!jr(n[t],r[t]))return!1;return!0}function Dc(t){const e=Object[yc("0x119")]({},t);return delete e[yc("0x114")],delete e[yc("0x118")],e}const Pc=["canAccept","canEditAt","locale","listenTo","acceptSuggestion","PendingActions","get","getRanges","_editor","PENDING_ACTION_SUGGESTION","isDirty","change:isDirty","plugins","discardSuggestion","view","_discardCommand","bind","_acceptCommand","commands","canDiscard","isEnabled","commentThreadController","_removePendingAction","model","remove","execute","destroy","_pendingAction","_setPendingAction"];var Bc,Uc;Bc=Pc,Uc=220,function(t){for(;--t;)Bc.push(Bc.shift())}(++Uc);const jc=function(t,e){return Pc[t-=0]};class Gc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this[jc("0x6")]=e,this.view=n,this[jc("0x4")]=r,this[jc("0x14")]=t,this[jc("0x0")]=t[jc("0x1")][jc("0x12")](jc("0x10")),this[jc("0x1b")]=t[jc("0x1")][jc("0x12")](jc("0x19")),this.view[jc("0x1c")](jc("0x3")).to(this._acceptCommand,this[jc("0x1b")],((t,e)=>t||e)),this[jc("0x1a")][jc("0x1c")](jc("0xc")).to(this[jc("0x0")],"isEnabled",(t=>t&&this[jc("0x14")][jc("0x6")].canEditAt(e[jc("0x13")]()))),this[jc("0x1a")][jc("0x1c")](jc("0x2")).to(this[jc("0x1b")],jc("0x3"),(t=>t&&this[jc("0x14")][jc("0x6")][jc("0xd")](e[jc("0x13")]()))),this[jc("0xa")]=null,n.isDirty&&this[jc("0xb")](),this[jc("0xf")](n,jc("0x10"),(()=>this.acceptSuggestion())),this[jc("0xf")](n,jc("0x19"),(()=>this[jc("0x19")]())),this[jc("0xf")](n,jc("0x17"),(()=>{n[jc("0x16")]?this[jc("0xb")]():this[jc("0x5")]()}))}[jc("0x10")](){this[jc("0x0")][jc("0x8")](this[jc("0x6")].id)}[jc("0x19")](){this[jc("0x1b")][jc("0x8")](this[jc("0x6")].id)}destroy(){this.view.unbind(jc("0x3")),this.view.unbind("canAccept"),this[jc("0x1a")].unbind(jc("0x2")),this.stopListening(),this.commentThreadController[jc("0x9")](),this._pendingAction&&this[jc("0x5")]()}[jc("0xb")](){const t=Yr(this._editor[jc("0xe")],jc("0x15"));this[jc("0xa")]=this._editor[jc("0x18")][jc("0x12")](jc("0x11")).add(t)}_removePendingAction(){null!==this[jc("0xa")]&&this[jc("0x14")].plugins[jc("0x12")](jc("0x11"))[jc("0x7")](this[jc("0xa")]),this._pendingAction=null}}const Vc=["commentsListView","locale","isDirty","commentInputView","bind","_localUser","descriptionParts","disableComments","editorConfig","element","addComment","isActive","destroy","removeComment","cancel","_createCommentViews","isReadOnly","focus","_model","hasDirtyComment","value","setData","commentThread","fire","commentThreadInputView","delegate","submit","set","CommentView","canDiscard","showInput","_config","authoredAt","assign","length"];var Hc,zc;Hc=Vc,zc=167,function(t){for(;--t;)Hc.push(Hc.shift())}(++zc);const Wc=function(t,e){return Vc[t-=0]};class Kc extends i.View{constructor(t,e,n,r){super(t),this.commentsListView=null,this[Wc("0x20")]=null,this.set(Wc("0x13"),!1),this[Wc("0x0")](Wc("0x5"),e[Wc("0x5")]),this[Wc("0xc")](Wc("0x5")).to(e),this.set(Wc("0xe"),[]),this.set(Wc("0xa"),!1),this[Wc("0x0")]("isEnabled",!1),this.set("canAccept",!1),this[Wc("0x0")](Wc("0x2"),!1),this[Wc("0x1a")]=e,this[Wc("0xd")]=n,this[Wc("0x4")]=r,r[Wc("0xf")]?this[Wc("0x0")](Wc("0x7"),1):this._createCommentViews()}[Wc("0x19")](){this[Wc("0x11")][Wc("0x19")]()}[Wc("0x14")](){this[Wc("0x8")]&&this[Wc("0x8")][Wc("0x14")](),this.commentThreadInputView&&this[Wc("0x20")][Wc("0x14")](),super[Wc("0x14")]()}[Wc("0x17")](){const{CommentsListView:t}=this[Wc("0x4")];this.commentsListView=new t(this[Wc("0x9")],this._model.commentThread,Object[Wc("0x6")]({CommentView:this[Wc("0x4")][Wc("0x1")]},this[Wc("0x4")])),this[Wc("0x8")].delegate(Wc("0x15")).to(this),this[Wc("0x8")][Wc("0x21")]("updateComment").to(this),this.commentsListView[Wc("0xc")](Wc("0x13")).to(this),this[Wc("0x0")](Wc("0x7"),this[Wc("0x8")][Wc("0x7")]+1),this.bind(Wc("0x7")).to(this[Wc("0x8")],Wc("0x7"),(t=>t+1)),this.commentThreadInputView=this._createCommentThreadInputView(),this.on(Wc("0x15"),(()=>this[Wc("0x19")]())),this.bind(Wc("0xa")).to(this[Wc("0x8")],Wc("0x1b"),this.commentThreadInputView.commentInputView,Wc("0x1c"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[Wc("0x4")],e=new t(this[Wc("0x9")],this[Wc("0xd")],this[Wc("0x4")][Wc("0x10")]),n=e[Wc("0xb")];return e[Wc("0xc")](Wc("0x3")).to(this,Wc("0x13"),this[Wc("0x1a")].commentThread,Wc("0x18"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(Wc("0x22"),((t,e)=>{this[Wc("0x1f")](Wc("0x12"),e),n.editor[Wc("0x1d")]("")})),n.on(Wc("0x16"),(()=>this.focus())),n[Wc("0xc")]("disabledSubmit").to(this[Wc("0x1a")][Wc("0x1e")],"isReadOnly"),e}}const qc=["innerText","ck-annotation__info","ck-comment__external","isExternal","getExternalSuggestionNote","bind","ck-annotation__actions","locale","importWord","attributes",'"></span>',"ck-suggestion__user","ck-suggestion__info","value","extendTemplate","render","div","ck-suggestion","commentsListView","span","getTemplate",'<span class="ck-suggestion-type">',"title","map","ck-annotation__user","<p>","editorReady","descriptionParts","push","split","source","acceptButton","delegate","author","ck-suggestion__info-name",'<span class="ck-suggestion-color" style="background-color: ',"element",".ck-annotation__content-wrapper","join","Discard suggestion","disableComments","ck-suggestion-","ck-annotation__info-name","EXTERNAL_AVATAR","ck-suggestion__main","_config","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-suggestion--disabled-comments","set","time","type","name","userView","discardButton","check","@external","EXTERNAL_IMPORT_WORD_AVATAR","execute","commentThreadInputView","innerHTML","creator","commentThread","ck-suggestion--accept","Accept suggestion","isActive","description","canDiscard","editorDestroyed","authoredAt","ck-comment__info-time","ck-suggestion-wrapper--active","_model","_createButton","ck-annotation","isEnabled","_descriptionElement","color","ck-annotation__content-wrapper","querySelector","ck-annotation__info-time","canAccept","ck-suggestion__actions"];var $c,Xc;$c=qc,Xc=143,function(t){for(;--t;)$c.push($c.shift())}(++Xc);const Zc=function(t,e){return qc[t-=0]};class Qc extends Kc{constructor(e,n,r,i){super(e,n,r,i),this[Zc("0x45")]("type",""),this[Zc("0x1a")](Zc("0x47")).to(this,Zc("0x30"),(t=>t&&t[0]?t[0][Zc("0x47")]:"")),this.bind(Zc("0x4")).to(this,Zc("0x30"),this,Zc("0x3"),((t,e)=>{let n="";for(const e of t)n+=Zc("0x2e")+Yc(e.content,e[Zc("0xf")])+"</p>";return e?n:(0,o.trimHtml)(n,{limit:140})})),this[Zc("0xe")]=null,this[Zc("0x34")]=this[Zc("0xb")](Yr(e,Zc("0x2")),t.icons[Zc("0x4b")],Zc("0x1"),"acceptSuggestion","sw"),this[Zc("0x34")][Zc("0x1a")](Zc("0xd")).to(this,Zc("0x13")),this[Zc("0x4a")]=this[Zc("0xb")](Yr(e,Zc("0x3c")),t.icons.cancel,"ck-suggestion--discard","discardSuggestion","sw"),this[Zc("0x4a")][Zc("0x1a")](Zc("0xd")).to(this,Zc("0x5")),this.userView=new o.UserView(e,this._model.author,this.getUserViewNotificationText()),this.userView[Zc("0x23")]({attributes:{class:[Zc("0x20"),Zc("0x2d")]}}),this.setTemplate(this.getTemplate())}[Zc("0x29")](){const t=this.bindTemplate,e=[{tag:Zc("0x25"),attributes:{class:[Zc("0x21"),Zc("0x16")]},children:[{tag:Zc("0x28"),children:[{text:this[Zc("0x49")][Zc("0x48")]}],attributes:{class:[Zc("0x37"),Zc("0x3f")]}},{tag:Zc("0x46"),attributes:{datetime:t.to(Zc("0x7")),class:[Zc("0x8"),Zc("0x12")]},children:[{text:t.to("authoredAt",(t=>this[Zc("0x42")].formatDateTime(t)))}]}]},{tag:Zc("0x25"),attributes:{class:[Zc("0x14"),Zc("0x1b")]},children:[this.acceptButton,this[Zc("0x4a")]]},{tag:"div",attributes:{class:[Zc("0x10")]}}];this[Zc("0xa")][Zc("0x18")]&&e[Zc("0x31")]({tag:Zc("0x25"),attributes:{class:[Zc("0x17")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:Zc("0x25"),attributes:{class:["ck-suggestion-wrapper",t.if("isActive",Zc("0x9")),t.to(Zc("0x47"),(t=>Zc("0x3e")+t)),this._config[Zc("0x3d")]&&Zc("0x44")],"data-suggestion-id":this[Zc("0xa")].id,"data-thread-id":this._model[Zc("0x0")].id,"data-author-id":this[Zc("0xa")][Zc("0x36")].id,tabindex:-1},children:[{tag:Zc("0x25"),attributes:{class:[Zc("0x26"),Zc("0xc")]},children:[this[Zc("0x49")],{tag:Zc("0x25"),attributes:{class:[Zc("0x41"),"ck-annotation__main"]},children:e}]}]};return this[Zc("0x27")]&&this.commentThreadInputView&&(n.children.push(this[Zc("0x27")],this[Zc("0x4f")]),this[Zc("0x27")][Zc("0x35")](Zc("0x2f")).to(this),this[Zc("0x27")][Zc("0x35")](Zc("0x6")).to(this),this[Zc("0x4f")][Zc("0x35")]("editorReady").to(this),this[Zc("0x4f")][Zc("0x35")]("editorDestroyed").to(this)),n}[Zc("0x24")](){super[Zc("0x24")](),this[Zc("0xe")]=this[Zc("0x39")][Zc("0x11")](Zc("0x3a")),this[Zc("0xe")][Zc("0x50")]=this[Zc("0x4")],this.on("change:description",((t,e,n)=>{this[Zc("0xe")].innerHTML=n}))}[Zc("0xb")](t,e,n,r,o){const s=new i.ButtonView(this[Zc("0x1c")]);return s[Zc("0x45")]({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s[Zc("0x23")]({attributes:{class:n}}),s.on(Zc("0x4e"),(()=>{this.fire(r,this[Zc("0xa")].id)})),s}[Zc("0x19")](){return"importWord"===this[Zc("0xa")][Zc("0x1e")][Zc("0x4c")][Zc("0x33")]?Yr(this[Zc("0x1c")],Zc("0x43")):Yr(this[Zc("0x1c")],"EXTERNAL_SUGGESTION")}getUserViewNotificationText(){return this[Zc("0xa")][Zc("0x18")]?Zc("0x1d")===this[Zc("0xa")][Zc("0x1e")][Zc("0x4c")][Zc("0x33")]?Yr(this.locale,Zc("0x4d"),this[Zc("0xa")][Zc("0x51")][Zc("0x48")]):Yr(this.locale,Zc("0x40"),this._model.creator.name):null}}function Yc(t,e){let n="";return n+=t[Zc("0x32")]("*")[Zc("0x2c")](((t,e)=>e%2!=0?Zc("0x2a")+Jc(t)+"</span>":Jc(t)))[Zc("0x3b")](""),e&&(n+=Zc("0x38")+e[Zc("0x22")]+'" title="'+e[Zc("0x2b")]+Zc("0x1f")),n}function Jc(t){const e=document.createElement("span");return e[Zc("0x15")]=t,e[Zc("0x50")]}const tl=["comments.maxThreadTotalWeight","getSuggestion","pluginName","commandName","arrowView","_destroyController","separator","_refreshActiveMarkers","Accept all suggestions","_suggestionToController","suggestion-","isOn","get","EditorAnnotations","_viewToController","trackChanges","change:previous","change:activeAnnotations","CommentView","add","editor","refreshSelectedViews","getRanges","execute","suggestionUnloaded","mainView","getAllAdjacentSuggestions","comments","lowest","comments.maxCommentCharsWhenCollapsed","getDescriptions","has","getJoined","comments.maxCommentsWhenCollapsed","type","filter","getByInnerView","previous","stopListening","addSourceCollector","discardSelectedSuggestions","focus","init","config","listenTo","_disableComments","set","TrackChangesEditing","getMarkerNames","source","head","remove","editing","_annotationViews","bind","trackChanges.disableComments","_initializeController","unbind","isMultiRange","isEnabled","_createUIButton","Discard all suggestions","view","CommentsUI","length","createAnnotation","_handleControllerBuffer","switchbutton","_descriptionFactory","delete","Discard all selected suggestions","value","Accept all selected suggestions","locale","requires","suggestionLoaded","Annotations","innerView","acceptButton","isInContent","commands","destroy","getFirstRange","createAnnotationView","actionView","toMany","_handleSuggestionControllerDelayed","plugins","from","registerAnnotation","button","suggestionChanged","acceptAllSuggestions","discardAllSuggestions","comments.editorConfig","isDirty","model","some","values","define","getMarkers","discardButton","push","descriptionParts","SuggestionThreadView","activeAnnotations","_updateController","CommentsRepository","buttonView"];var el,nl;el=tl,nl=339,function(t){for(;--t;)el.push(el.shift())}(++nl);const rl=function(t,e){return tl[t-=0]};class il extends t.Plugin{static get[rl("0x3e")](){return[Ac,o.Users,rl("0x5f"),rl("0x40"),rl("0x1")]}static get[rl("0x63")](){return"TrackChangesUI"}constructor(t){super(t),this[rl("0x6a")]=new Map,this[rl("0x2")]=new Map,this[rl("0x29")]=new Map,this[rl("0x36")]=new Map;const e=this.editor[rl("0x1f")];e[rl("0x57")]("trackChanges.SuggestionThreadView",Qc),e[rl("0x57")](rl("0x2b"),!1),this[rl("0x21")]=e[rl("0x0")](rl("0x2b"))}[rl("0x4a")](t,e){0===this[rl("0x36")].size&&setTimeout((()=>{for(const[t,e]of this[rl("0x36")]){const n=this._suggestionToController[rl("0x13")](t);n||e?n&&e&&this[rl("0x66")](t):this[rl("0x2c")](t)}this[rl("0x36")].clear(),this[rl("0x8")].plugins[rl("0x0")](rl("0x1"))[rl("0x9")](),this[rl("0x68")]()}),10),this._handleControllerBuffer.set(t,e)}[rl("0x1e")](){const t=this[rl("0x8")],e=t[rl("0x4b")].get(rl("0x23")),n=t[rl("0x4b")][rl("0x0")](rl("0x40")),r=t.plugins[rl("0x0")]("EditorAnnotations"),i=t[rl("0x4b")].get(rl("0x5f"));t.ui.componentFactory[rl("0x7")](rl("0x3"),(t=>this[rl("0x30")](t))),r[rl("0x1b")]((()=>{const t=[];for(const[e,n]of Array[rl("0x4c")](this[rl("0x6a")])){const r=e[rl("0xe")](),i=[];for(const t of r){if(!t[rl("0x43")])continue;if(t[rl("0x2e")]){i.push(...t[rl("0xa")]());continue}const e=t[rl("0x46")]();if(i[rl("0x34")]>0){const t=i[0][rl("0x14")](e);if(t){i[0]=t;continue}}i.push(e)}t[rl("0x5a")]([n[rl("0x32")],i])}return t})),this.listenTo(e,rl("0x3f"),((t,e)=>{this[rl("0x20")](e,rl("0x4"),((t,n,r,i)=>{e[rl("0x43")]&&(null==r?(this[rl("0x5e")](i[rl("0x26")]),this[rl("0x4a")](e,!1)):(this[rl("0x5e")](r[rl("0x26")]),null==i&&this[rl("0x4a")](e,!0)))})),null!==e[rl("0x19")]?this._updateController(e[rl("0x26")]):this[rl("0x4a")](e,!1)})),this[rl("0x20")](e,rl("0xc"),((t,e,n)=>{this[rl("0x1a")](e,rl("0x4")),this[rl("0x36")][rl("0x39")](e),this[rl("0x6a")][rl("0x13")](e)&&this._destroyController(e),n&&this[rl("0x5e")](n.head)})),this.listenTo(e,rl("0x4f"),((t,e)=>{this._updateController(e)})),this[rl("0x20")](n,rl("0x5"),(()=>{this[rl("0x68")]()})),this[rl("0x20")](i,"addComment",((t,{threadId:n,isFromAdapter:r})=>{if(r||!e.hasSuggestion(n))return;const i=e[rl("0x62")](n);this._suggestionToController[rl("0x0")](i)[rl("0x32")][rl("0x1d")]()}),{priority:rl("0x10")})}[rl("0x68")](){const t=this[rl("0x8")][rl("0x4b")].get(rl("0x40")),e=this[rl("0x8")][rl("0x4b")][rl("0x0")](rl("0x23")),n=Array.from(t[rl("0x5d")],(t=>t[rl("0x41")])).filter((t=>this._viewToController[rl("0x13")](t))),r=[];for(const t of n){const e=this._viewToController[rl("0x0")](t)[rl("0x54")].getAllAdjacentSuggestions();r[rl("0x5a")](...e.reduce(((t,e)=>[...t,...e[rl("0x24")]()]),[]))}e.activeMarkers=r}[rl("0x30")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),r=this[rl("0x8")].commands.get("trackChanges"),o=Yr(t,"Track changes");n[rl("0x60")][rl("0x22")]({tooltip:o,label:o,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-2024, 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[rl("0x2a")](rl("0x6c")).to(r,rl("0x3b")),n[rl("0x60")].on(rl("0xb"),(()=>{r.execute(),this[rl("0x8")][rl("0x28")].view[rl("0x1d")]()}));const s=new e.Collection,x=[{type:rl("0x37"),model:{withText:!0,label:o,commandName:rl("0x3")}},{type:rl("0x67")},{type:rl("0x4e"),model:{withText:!0,label:Yr(t,rl("0x69")),commandName:rl("0x50")}},{type:rl("0x4e"),model:{withText:!0,label:Yr(t,rl("0x3c")),commandName:"acceptSelectedSuggestions"}},{type:rl("0x4e"),model:{withText:!0,label:Yr(t,rl("0x31")),commandName:rl("0x51")}},{type:"button",model:{withText:!0,label:Yr(t,rl("0x3a")),commandName:rl("0x1c")}}];for(const t of x){let e={type:rl("0x67")};if(t[rl("0x54")]){const n=new i.ViewModel(t[rl("0x54")]),r=this[rl("0x8")][rl("0x44")].get(n[rl("0x64")]);n[rl("0x2a")](rl("0x6c"),"isEnabled").to(r,rl("0x3b"),"isEnabled"),e={type:t[rl("0x16")],model:n}}s[rl("0x7")](e)}(0,i.addListToDropdown)(n,s);const a=x.filter((t=>null!=t[rl("0x54")])).map((t=>this[rl("0x8")].commands[rl("0x0")](t[rl("0x54")][rl("0x64")]))),c=n[rl("0x60")];return c.actionView[rl("0x2d")](rl("0x2f")),c[rl("0x65")][rl("0x2d")]("isEnabled"),c[rl("0x48")][rl("0x2a")](rl("0x2f")).to(r,rl("0x2f")),c[rl("0x65")].bind("isEnabled")[rl("0x49")](a,rl("0x2f"),((...t)=>t[rl("0x55")]((t=>t)))),n.on(rl("0xb"),(t=>{this[rl("0x8")][rl("0xb")](t[rl("0x25")][rl("0x64")]),this.editor.editing[rl("0x32")][rl("0x1d")]()})),n}[rl("0x2c")](t){const e=this[rl("0x8")],n=e[rl("0x1f")],r=e.plugins[rl("0x0")](rl("0x40")),i=e.plugins.get(rl("0x5f")),s=e[rl("0x4b")][rl("0x0")](rl("0x1")),x=e.plugins[rl("0x0")](o.Users).me,a=n[rl("0x0")]("trackChanges")[rl("0x5c")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins.get(rl("0x33"));let u,d;this[rl("0x29")][rl("0x13")](t.id)?(d=this[rl("0x29")].get(t.id),u=d[rl("0xd")]):(u=new a(e.locale,t,x,{disableComments:this[rl("0x21")],editorConfig:n[rl("0x0")](rl("0x52")),maxCommentsWhenCollapsed:n[rl("0x0")](rl("0x15")),maxThreadTotalWeight:n[rl("0x0")](rl("0x61")),maxCommentCharsWhenCollapsed:n[rl("0x0")](rl("0x11")),formatDateTime:(0,o.getDateTimeFormatter)(n.get(rl("0x3d"))),CommentView:n[rl("0x0")](rl("0xf"))[rl("0x6")],CommentsListView:c,CommentThreadInputView:l}),u[rl("0x42")].on(rl("0xb"),(()=>{e[rl("0x28")][rl("0x32")][rl("0x1d")]()})),u[rl("0x59")].on(rl("0xb"),(()=>{e[rl("0x28")][rl("0x32")][rl("0x1d")]()})),d=r[rl("0x47")](this[rl("0x8")][rl("0x3d")],u),d[rl("0x2a")](rl("0x53")).to(u,rl("0x53")),d[rl("0x2a")]("length").to(u),d[rl("0x2a")](rl("0x16")).to(u,rl("0x16"),(t=>rl("0x6b")+t)),this[rl("0x29")][rl("0x22")](t.id,d));const g=i.createCommentThreadController(t.commentThread,u),f=new Gc(e,t,u,g),h=t[rl("0xe")]().filter((t=>t[rl("0x43")]));u.descriptionParts=e[rl("0x4b")][rl("0x0")](rl("0x23"))[rl("0x38")][rl("0x12")](h),this[rl("0x6a")][rl("0x22")](t,f),this._viewToController[rl("0x22")](u,f);const m=r[rl("0x35")]({view:d,target:()=>{const n=[],r=t[rl("0xe")]()[rl("0x17")]((t=>t[rl("0x43")]));for(const t of r)n[rl("0x5a")](...t[rl("0x58")]());return(0,o.getAllMarkersDomElementsSorted)(e[rl("0x28")],n)},type:()=>rl("0x6b")+f[rl("0x32")].type});i._bindAnnotationToEditors(u,m),r[rl("0x7")](m),s[rl("0x4d")](m)}[rl("0x66")](t){const e=this.editor[rl("0x4b")][rl("0x0")](rl("0x5f")),n=this.editor.plugins.get("Annotations"),r=this[rl("0x6a")].get(t),i=r[rl("0x32")],o=n[rl("0x18")](i);e._unbindEditors(i),o&&n[rl("0x27")](o),this[rl("0x6a")][rl("0x39")](t),this._viewToController[rl("0x39")](i),r[rl("0x45")]()}[rl("0x5e")](t){if(!t[rl("0x43")]||!this[rl("0x6a")][rl("0x13")](t))return;const e=this.editor.plugins.get(rl("0x23")),n=this._suggestionToController[rl("0x0")](t),r=t[rl("0xe")]();n[rl("0x32")][rl("0x5b")]=e[rl("0x38")][rl("0x12")](r)}[rl("0x45")](){for(const t of this._suggestionToController.keys())this._destroyController(t);for(const t of this[rl("0x29")][rl("0x56")]())t.mainView[rl("0x45")]();super.destroy()}}var ol,sl,xl=["adapter","requires","editor","plugins","getSuggestions","addSuggestionData","getSuggestion","TrackChanges","pluginName","get","addSuggestion","Comments"];ol=xl,sl=199,function(t){for(;--t;)ol.push(ol.shift())}(++sl);var al=function(t,e){return xl[t-=0]};class cl extends t.Plugin{static get[al("0x6")](){return[Ac,il,al("0x4")]}static get[al("0x1")](){return al("0x0")}set adapter(t){this[al("0x7")].plugins.get(Ac).adapter=t}get[al("0x5")](){return this[al("0x7")][al("0x8")][al("0x2")](Ac)[al("0x5")]}[al("0x3")](t){return this[al("0x7")][al("0x8")][al("0x2")](Ac)[al("0xa")](t)}[al("0x9")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[al("0x7")][al("0x8")][al("0x2")](Ac)[al("0x9")]({skipNotAttached:t,toJSON:e})}[al("0xb")](t){return this.editor.plugins[al("0x2")](Ac)[al("0xb")](t)}}const ll=["name","getDataWithDiscardedSuggestions","function","init","document","execute","_adapter","createDocumentFragment","editorCreator","model","map","pluginName","getSuggestions","destroy","plugins","getFullData","getUser","acceptAllSuggestions","addUser","define","reduce","editor","end","discardAllSuggestions","appendChild","getRootNames","useAnonymousUser","Pagination","get","CommentsRepository","data","Users","div","addSuggestionData","getRootsAttributes","TrackChangesDataGetter","getDataWithAcceptedSuggestions","config","trackChangesData","users","createElement","TrackChangesEditing","rootsAttributes","track-changes-data-invalid-editor-creator"];var ul,dl;ul=ll,dl=230,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=[gl("0x11")];class hl extends t.Plugin{static get requires(){return[Ac]}static get[gl("0x1")](){return"TrackChangesData"}[gl("0x25")](){const t=this[gl("0xb")];if(t[gl("0x1b")][gl("0x9")]("trackChangesData.editorCreator",(e=>{const n=t[gl("0x2b")][gl("0x26")][gl("0xf")]()[gl("0xa")](((t,e)=>(t[e]="",t)),{});return t.constructor.create(n,e)})),gl("0x24")!=typeof t[gl("0x1b")][gl("0x12")](gl("0x1c"))[gl("0x2a")])throw new e.CKEditorError(gl("0x21"))}[gl("0x1a")](t){return pl(this.editor,!0,t)}[gl("0x23")](t){return pl(this[gl("0xb")],!1,t)}}class ml extends t.Plugin{static get[gl("0x1")](){return gl("0x19")}constructor(t){super(t),this.result=gl("0xc")}[gl("0x25")](){this[gl("0xb")][gl("0x4")].get(gl("0x13"))[gl("0x28")]={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[gl("0xb")].plugins.get("TrackChangesEditing")[gl("0x28")]=null}}function bl(t){return void 0!==t.getRootsAttributes}async function pl(t,e,n){const r=(0,o.sanitizeEditorConfig)(t,fl);r[gl("0x4")].push(Ac,ml),r[gl("0x20")]=bl(t)?t[gl("0x18")]():void 0;const i=document[gl("0x29")](),s=t[gl("0x1b")][gl("0x12")](gl("0x1c")).editorCreator,x=await s(r,(()=>function(t){const e=document[gl("0x1e")](gl("0x16"));return t[gl("0xe")](e),e}(i)));!function(t,e){const n=t[gl("0x2b")][gl("0x26")][gl("0xf")]().reduce(((e,n)=>(e[n]=t[gl("0x14")][gl("0x12")]({rootName:n}),e)),{}),r=t[gl("0x4")].get(gl("0x15"))[gl("0x1d")][gl("0x0")]((t=>({id:t.id,name:t[gl("0x22")]}))),i=t[gl("0x4")][gl("0x12")](gl("0x1f"))[gl("0x2")]({skipNotAttached:!0,toJSON:!0}),o=e[gl("0x4")].get("Users"),s=e.plugins[gl("0x12")](gl("0x1f"));for(const t of r)o[gl("0x6")](t.id)||o[gl("0x8")](t);o.me||o[gl("0x10")]();for(const t of i)s[gl("0x17")](t);e.data.set(n)}(t,x),x[gl("0x27")](gl(e?"0x7":"0xd"));const a=bl(x)?x[gl("0x5")](n):x[gl("0x14")].get(n);return await x[gl("0x3")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();
5
+ */(()=>{var t={588:(t,e,n)=>{t.exports=n(104)("./src/collaboration-core.js")},968:(t,e,n)=>{t.exports=n(672)("./src/core.js")},684:(t,e,n)=>{t.exports=n(672)("./src/engine.js")},976:(t,e,n)=>{t.exports=n(672)("./src/enter.js")},500:(t,e,n)=>{t.exports=n(672)("./src/typing.js")},348:(t,e,n)=>{t.exports=n(672)("./src/ui.js")},316:(t,e,n)=>{t.exports=n(672)("./src/utils.js")},396:(t,e,n)=>{t.exports=n(672)("./src/widget.js")},104:t=>{"use strict";t.exports=CKEditor5.collaborationDll},672:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.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:()=>Kc,TrackChanges:()=>cl,TrackChangesData:()=>hl,TrackChangesEditing:()=>Ac});var t=n(968),e=n(316),i=n(348),o=n(588),s=n(684),x=n(396);const a=["commands","has","forceDisabled","editor","affectsData","execute","value","TrackChangesCommand","_enabledCommands","refresh","_enableCommands","_disableUnsupportedCommands"];var c,l;c=a,l=355,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x1")]=e,this[u("0xb")]=!1,this[u("0x2")](),this._isEnabledBasedOnSelection=!1}[u("0x2")](){this.isEnabled=!0}[u("0xa")](){this[u("0xb")]=!this.value,this.value?this[u("0x4")]():this[u("0x3")]()}_disableUnsupportedCommands(){for(const t of this.editor.commands[u("0x5")]())t[u("0x9")]&&!this._enabledCommands[u("0x6")](t)&&t[u("0x7")]("TrackChangesCommand")}[u("0x3")](){for(const t of this[u("0x8")][u("0x5")][u("0x5")]())t[u("0x9")]&&!this[u("0x1")][u("0x6")](t)&&t.clearForceDisabled(u("0x0"))}}const g=["plugins","editor","canEditAt","_suggestions","isEnabled","acceptSuggestion","get","model","_isEnabledBasedOnSelection","execute","track-changes-accept-suggestion-not-found","refresh"];var f,h;f=g,h=139,function(t){for(;--t;)f.push(f.shift())}(++h);const m=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[m("0x8")]=e,this[m("0x4")](),this[m("0x1")]=!1}[m("0x4")](){this[m("0x9")]=!0}[m("0x2")](t){const n=this._suggestions[m("0xb")](t);if(!n)throw new e.CKEditorError(m("0x3"),this);const r=n.getRanges();this[m("0x6")][m("0x0")][m("0x7")](r)&&this.editor[m("0x5")][m("0xb")]("TrackChangesEditing")[m("0xa")](n)}}const b=["get","track-changes-discard-suggestion-not-found","editor","_suggestions","plugins","model","discardSuggestion","execute","refresh","TrackChangesEditing"];var E,_;E=b,_=189,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this._suggestions=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[T("0x9")](){this.isEnabled=!0}[T("0x8")](t){const n=this[T("0x4")][T("0x1")](t);if(!n)throw new e.CKEditorError(T("0x2"),this);const r=n.getRanges();this[T("0x3")][T("0x6")].canEditAt(r)&&this[T("0x3")][T("0x5")][T("0x1")](T("0x0"))[T("0x7")](n)}}const C=["from","map","next","type","color","getRanges","isObject","isInContent","isCollapsed","isTouching","schema","splice","replace","createRange","add","length","createPositionAt","start","deletion","createPositionBefore","execute","push","createPositionAfter","isIntersecting"," [color ","end"];var A,k;A=C,k=368,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function S(t){return t.sort(((t,e)=>"deletion"==t[I("0x19")]&&I("0xe")!=e[I("0x19")]?-1:"deletion"!=t[I("0x19")]&&I("0xe")==e[I("0x19")]?1:0))}function R(t,e){let n,r=0;const i=[],o=e[I("0x6")];for(;r<t.length;){const s=t[r],x=t[r+1];n||(n=e[I("0xf")](s)),v(e,s,x)||(i[I("0x11")](e[I("0x9")](n,o[I("0x2")](s)?e[I("0x12")](s):e[I("0xc")](s,I("0x15")))),n=null),r++}return i}function v(t,e,n){if(!n)return!1;const r=t[I("0x12")](e),i=t.createPositionBefore(n);return r[I("0x5")](i)}function N(t,e,n){for(;n[I("0xb")];){const r=n[I("0x7")](0,100);t.change((()=>{for(const t of r)t[I("0x3")]&&e[I("0x10")](t.id)}))}}const L=["model","canEditAt","some","from","_suggestions","_command","values","refresh","getRanges","isInContent","isEnabled","execute"];var M,w;M=L,w=493,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("0x4")]=e,this[O("0x3")]=n,this[O("0x6")](),this._isEnabledBasedOnSelection=!1}refresh(){const t=Array.from(this[O("0x3")][O("0x5")]())[O("0x1")]((t=>t[O("0x8")]));this.isEnabled=this._command[O("0x9")]&&t}[O("0xa")](){const t=S(Array[O("0x2")](this[O("0x3")][O("0x5")]()));for(const e of t){const t=e[O("0x7")]();if(!this.editor[O("0xb")][O("0x0")](t))return}N(this.editor[O("0xb")],this[O("0x4")],t)}}const D=["editor","getRanges","selection","_selectedSuggestions","document","model","values","_suggestions","_isEnabledBasedOnSelection","size","from","refresh","isEnabled","_command","execute"];var P,B;P=D,B=245,function(t){for(;--t;)P.push(P.shift())}(++B);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x8")]=e,this[U("0x2")]=n,this[U("0xd")]=new Set,this[U("0x6")](),this[U("0x3")]=!1}[U("0x6")](){const t=this.editor[U("0x0")][U("0xe")][U("0xc")],e=Array[U("0x5")](this[U("0x2")][U("0x1")]());this[U("0xd")]=function(t,e){const n=Array[I("0x16")](t[I("0x1")]()),r=new Set;for(const i of e)if(i[I("0x3")])for(const e of n)for(const n of i[I("0x1")]())(e[I("0x13")](n)||t[I("0x4")]&&!i.isMultiRange&&i[I("0x18")]&&n[I("0x15")][I("0x5")](e[I("0xd")]))&&r[I("0xa")](i);return r}(t,e),this[U("0x7")]=this[U("0x8")].isEnabled&&!!this[U("0xd")][U("0x4")]}[U("0x9")](){const t=S(Array[U("0x5")](this[U("0xd")]));for(const e of t){const t=e[U("0xb")]();if(!this[U("0xa")][U("0x0")].canEditAt(t))return}N(this.editor.model,this[U("0x8")],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 Q=function(){this.__data__=new Z,this.size=0};const Y=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const J=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 it=rt.Symbol;var ot=Object.prototype,st=ot.hasOwnProperty,xt=ot.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var r=!0}catch(t){}var i=xt.call(t);return r&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ht=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 mt=rt["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,St=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Rt=function(t){return!(!ft(t)||Et(t))&&(ht(t)?St:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return Rt(n)?n:void 0};const Lt=Nt(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 Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Pt.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=Bt,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 Qt=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 Yt(t){var e=this.__data__=new Z(t);this.size=e.size}Yt.prototype.clear=Q,Yt.prototype.delete=Y,Yt.prototype.get=J,Yt.prototype.has=tt,Yt.prototype.set=Qt;const Jt=Yt;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 ie=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 oe=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var x=e[o],a=r?r(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,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 he="object"==typeof exports&&exports&&!exports.nodeType&&exports,me=he&&"object"==typeof module&&module&&!module.nodeType&&module,pe=me&&me.exports===he?rt.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Se=Ie&&Ie.exports===ke&&et.process;const Re=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Se&&Se.binding&&Se.binding("util")}catch(t){}}();var ve=Re&&Re.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),r=!n&&de(t),i=!n&&!r&&be(t),o=!n&&!r&&!i&&Ne(t),s=n||r||i||o,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Pe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!ht(t)};const je=function(t){return Ue(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&oe(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&&oe(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 Qe=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 Ye=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Je=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const rn=nn?function(t){return null==t?[]:(t=Object(t),Je(nn(t),(function(e){return en.call(t,e)})))}:tn;const on=function(t,e){return oe(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return oe(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 hn=Nt(rt,"Set");const mn=Nt(rt,"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(hn),In=Tt(mn),Sn=gt;(gn&&Sn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Sn(new Lt)!=pn||fn&&Sn(fn.resolve())!=bn||hn&&Sn(new hn)!=En||mn&&Sn(new mn)!=_n)&&(Sn=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 pn;case An:return bn;case kn:return En;case In:return _n}return e});const Rn=Sn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=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=it?it.prototype:void 0,Pn=Dn?Dn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.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 Bn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Rn(t)};var Wn=Re&&Re.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Rn(t)};var Xn=Re&&Re.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Qn="[object Function]",Yn="[object Object]",Jn={};Jn[Zn]=Jn["[object Array]"]=Jn["[object ArrayBuffer]"]=Jn["[object DataView]"]=Jn["[object Boolean]"]=Jn["[object Date]"]=Jn["[object Float32Array]"]=Jn["[object Float64Array]"]=Jn["[object Int8Array]"]=Jn["[object Int16Array]"]=Jn["[object Int32Array]"]=Jn["[object Map]"]=Jn["[object Number]"]=Jn[Yn]=Jn["[object RegExp]"]=Jn["[object Set]"]=Jn["[object String]"]=Jn["[object Symbol]"]=Jn["[object Uint8Array]"]=Jn["[object Uint8ClampedArray]"]=Jn["[object Uint16Array]"]=Jn["[object Uint32Array]"]=!0,Jn["[object Error]"]=Jn[Qn]=Jn["[object WeakMap]"]=!1;const tr=function t(e,n,r,i,o,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=o?r(e,i,o,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 Ye(e,x)}else{var d=Rn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Yn||d==Zn||g&&!o){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Jn[d])return o?e:{};x=jn(e,d,a)}}s||(s=new Jt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(i){x.add(t(i,n,r,i,e,s))})):Kn(e)&&e.forEach((function(i,o){x.set(o,t(i,n,r,o,e,s))}));var h=u?void 0:(l?c?dn:un:c?We:je)(e);return te(h||e,(function(i,o){h&&(i=e[o=i]),ie(x,o,t(i,n,r,o,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)\]/,ir=/^\w*$/;const or=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(ir.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,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,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,i){e.push(r?i.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i};var dr=it?it.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 hr=function(t){return null==t?"":fr(t)};const mr=function(t,e){return ge(t)?t:or(t,e)?[t]:lr(hr(t))};const pr=function(t){if("string"==typeof t||nr(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const br=function(t,e,n,r){if(!ft(t))return t;for(var i=-1,o=(e=mr(e,t)).length,s=o-1,x=t;null!=x&&++i<o;){var a=pr(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const Er=function(t,e,n){return null==t?t:br(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,i,o){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Cr:void 0;for(o.set(t,e),o.set(e,t);++u<x;){var f=t[u],h=e[u];if(r)var m=s?r(h,f,u,e,t,o):r(f,h,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!Ar(e,(function(t,e){if(!kr(g,e)&&(f===t||i(f,t,n,r,o)))return g.push(e)}))){d=!1;break}}else if(f!==h&&!i(f,h,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const Sr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};const Rr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vr=it?it.prototype:void 0,Nr=vr?vr.valueOf:void 0;const Lr=function(t,e,n,r,i,o,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||!o(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=Sr;case"[object Set]":var a=1&r;if(x||(x=Rr),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,i,o,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,i,o){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=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var g=!0;o.set(t,e),o.set(e,t);for(var f=s;++c<a;){var h=t[l=x[c]],m=e[l];if(r)var p=s?r(m,h,l,e,t,o):r(h,m,l,t,e,o);if(!(void 0===p?h===m||i(h,m,n,r,o):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 o.delete(t),o.delete(e),g};var Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Pr=Object.prototype.hasOwnProperty;const Br=function(t,e,n,r,i,o){var s=ge(t),x=ge(e),a=s?Fr:Rn(t),c=x?Fr:Rn(e),l=(a=a==Or?Dr:a)==Dr,u=(c=c==Or?Dr:c)==Dr,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return o||(o=new Jt),s||Ne(t)?Ir(t,e,n,r,i,o):Lr(t,e,a,n,r,i,o);if(!(1&n)){var g=l&&Pr.call(t,"__wrapped__"),f=u&&Pr.call(e,"__wrapped__");if(g||f){var h=g?t.value():t,m=f?e.value():e;return o||(o=new Jt),i(h,m,n,r,o)}}return!!d&&(o||(o=new Jt),wr(t,e,n,r,i,o))};const Ur=function t(e,n,r,i,o){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Br(e,n,r,i,t,o))};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=mr(e,t)).length;null!=t&&n<r;)t=t[pr(e[n++])];return n&&n==r?t:void 0};const Hr=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o};const zr=function(t,e){return e.length<2?t:Vr(t,Hr(e,0,-1))};const Wr=function(t,e){return e=mr(e,t),null==(t=zr(t,e))||delete t[pr(Gr(e))]};const Kr=function(t,e){return null==t||Wr(t,e)},qr=["getMultiRangeId","onAccept","data","size","@external","split","substr","_model","removeMarker","from","decorate","_onAttributesChange","authoredAt","getRanges","markers","createdAt","author","head","getRange","length","_markerNames","_isDataLoaded","next","toJSON","isIntersectingWithRange","removeMarkers","previous","hasComments","discard","_onAccept","getMarkerNames","filter","addMarker","_saved","onAttributesChange","creator","push","start","onDiscard","set","subType","getItems","change","removeAttribute","getFirstMarker","setAttribute","_onDiscard","get","accept","type","commentThread","isIntersecting","add","attributes","getAllAdjacentSuggestions","isMultiRange","nodeBefore","getMarkers","map","addRange"];var Xr,$r;Xr=qr,$r=204,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Zr=function(t,e){return qr[t-=0]};class Qr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0x39")]=!1,this.id=e.id,this[Zr("0x19")]=e.type,this[Zr("0x10")]=e[Zr("0x10")]||null,this.author=e[Zr("0x34")],this[Zr("0xb")]=e[Zr("0xb")]||e[Zr("0x34")],this.isExternal=Boolean(e[Zr("0x1d")]&&e[Zr("0x1d")][Zr("0x28")]),this.data=null,this[Zr("0x2b")]=t,this[Zr("0x5")]=e[Zr("0x25")],this[Zr("0x16")]=e[Zr("0xe")],this[Zr("0x2f")]=e[Zr("0xa")],this[Zr("0x38")]=new Set,this[Zr("0x33")]=null,this.set(Zr("0x30"),null),this[Zr("0xf")](Zr("0x1d"),e.attributes||{}),this[Zr("0xf")]("previous",null),this.set("next",null),this[Zr("0xf")](Zr("0x1a"),null),this[Zr("0xf")](Zr("0x9"),!1),this.decorate(Zr("0x18")),this[Zr("0x2e")](Zr("0x4"))}get[Zr("0x35")](){let t=this;for(;t[Zr("0x2")];)t=t.previous;return t}get[Zr("0x3")](){return!!this[Zr("0x1a")]&&this[Zr("0x1a")].length>0}get[Zr("0x1f")](){return 0!=this[Zr("0x38")][Zr("0x27")]&&6==Array[Zr("0x2d")](this[Zr("0x38")])[0][Zr("0x29")](":").length}get isInContent(){return null!==this.getFirstMarker()}addMarkerName(t){this[Zr("0x38")][Zr("0x1c")](t)}[Zr("0x6")](){return Array[Zr("0x2d")](this[Zr("0x38")])}getMarkers(){return this[Zr("0x6")]()[Zr("0x22")]((t=>this._model[Zr("0x32")][Zr("0x17")](t)))[Zr("0x7")]((t=>t))}[Zr("0x14")](){return this[Zr("0x21")]()[0]||null}[Zr("0x1")](){this[Zr("0x2b")].change((t=>{for(const e of this[Zr("0x21")]())t.removeMarker(e)})),this[Zr("0x38")].clear()}[Zr("0x2c")](t){this[Zr("0x2b")][Zr("0x12")]((e=>{e[Zr("0x2c")](t)})),this._markerNames.delete(t)}[Zr("0x23")](t){const e="suggestion:"+this[Zr("0x19")]+":"+this[Zr("0x10")]+":"+this.id+":"+this[Zr("0xb")].id+":"+Qr[Zr("0x24")]();this.addMarkerName(e),this[Zr("0x2b")][Zr("0x12")]((n=>{n[Zr("0x8")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x0")](t){for(const e of this[Zr("0x31")]())if(e[Zr("0x1b")](t))return!0;return!1}[Zr("0x31")](){return this[Zr("0x21")]()[Zr("0x22")]((t=>t[Zr("0x36")]()))}getItems(){return this.getRanges().reduce(((t,e)=>[...t,...e[Zr("0x11")]()]),[])}getFirstRange(){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Zr("0x36")]())||null}getContainedElement(){const t=this[Zr("0x31")]();if(1!=t[Zr("0x37")])return null;const e=t[0],n=e[Zr("0xd")].nodeAfter,r=e.end[Zr("0x20")];return n instanceof s.Element?n!=r?null:n:null}[Zr("0x18")](){this[Zr("0x5")](this[Zr("0x31")](),this.data,this.attributes),this[Zr("0x1")]()}[Zr("0x4")](){this[Zr("0x16")](this[Zr("0x31")](),this[Zr("0x26")],this[Zr("0x1d")]),this.removeMarkers()}[Zr("0x1e")](){const t=[];let e=this.head;for(;e;)t[Zr("0xc")](e),e=e[Zr("0x3a")];return t}[Zr("0x15")](t,e){const n=er(this[Zr("0x1d")]);Er(n,t,e),jr(n,this[Zr("0x1d")])||(this[Zr("0x1d")]=n,this[Zr("0x2f")](n))}[Zr("0x13")](t){const e=er(this[Zr("0x1d")]);Kr(e,t),jr(e,this[Zr("0x1d")])||(this.attributes=e,this._onAttributesChange(this[Zr("0x1d")]))}[Zr("0x3b")](){return{id:this.id,type:this[Zr("0x10")]?this[Zr("0x19")]+":"+this[Zr("0x10")]:this[Zr("0x19")],authorId:this[Zr("0xb")].id,createdAt:this.createdAt,hasComments:this.hasComments,data:this[Zr("0x26")],attributes:this[Zr("0x1d")]}}static[Zr("0x24")](){return(0,e.uid)()[Zr("0x2a")](1,5)}}function Yr(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 Jr=["format","end","elementEnd","registerDescriptionCallback","deletion","key","has","_attributeLabels","_itemLabels","$text","EmptyContainer","attribute","name","start","_handleInsertRemoveSuggestionDescription","type","removeEmptyContainer","add","addEmptyContainer","removeContainer","isObject","removeObject","subType","_locale","softBreak","addContainer","_handleAttributeSuggestionDescription","addFormat","getItemLabel","set","data","_itemLabelsCallbacks","quantity","length","getDescriptions","Object","*Split:* %0","*Remove format:* %0","indexOf","get","_schema","isEmpty","_handleRenameSuggestionDescription","label","*Change to:* %0","insertion","elementStart","join","_addDescriptionItems","element","text","remove","*Remove:* %0","$1 $2","getWalker","getFirstRange","nextSibling","_customCallbacks","_handleCustomCallbackDescription","registerAttributeLabel","pop","*Set format:* %0","$textProxy","isInContent","push","ELEMENT_SPACE","nodeAfter","item","map","*Insert:* %0","previousSibling","Container","match"];var ti,ei;ti=Jr,ei=183,function(t){for(;--t;)ti.push(ti.shift())}(++ei);const ni=function(t,e){return Jr[t-=0]};class ri{constructor(t,e){this[ni("0x14")]=[],this[ni("0x2c")]=new Map,this[ni("0x43")]=[],this[ni("0x2b")]=new Map,this[ni("0x3")]=t,this[ni("0x3b")]=e}[ni("0x46")](t){const e=[],n=new Set,r=new Set;for(let i=0;i<t[ni("0x45")];i++){const o=t[i];if(!o[ni("0x1a")])continue;const s=this[ni("0x15")](o);if(s){if(null!=o.subType){if(n[ni("0x2a")](o[ni("0x3a")]))continue;n[ni("0x35")](o[ni("0x3a")])}e[ni("0x1b")](s)}else if(ni("0x2f")!=o[ni("0x33")])"insertion"!=o[ni("0x33")]&&ni("0x28")!=o.type||this[ni("0x32")](e,o,t[i+1]);else{const t=o[ni("0x42")].key;if(r.has(t))continue;r.add(o[ni("0x42")][ni("0x29")]),t==Cc?this[ni("0x5")](e,o):this[ni("0x3e")](e,o)}}return this._resolveDescriptionItems(e)}[ni("0x27")](t){this[ni("0x14")].push(t)}registerElementLabel(t,n,r=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this[ni("0x43")],{matchingCallback:t,label:n,priority:r}):this[ni("0x2c")].set(t,n)}[ni("0x16")](t,e){this[ni("0x2b")][ni("0x41")](t,e)}[ni("0x40")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[ni("0x6")];break}return n||(n=this._itemLabels[ni("0x2")](t[ni("0x30")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[ni("0x30")]}_addDescriptionItems(t,e){const n=e[ni("0x12")]()[ni("0x11")](),r=ni("0x8")==e.type?ni("0x35"):ni("0xe");for(const e of n){const i=e[ni("0x1e")],o=t[t.length-1];if(i.is(ni("0x19")))o&&o[ni("0x33")].indexOf(ni("0x22"))>-1&&t[ni("0x17")](),o&&ni("0xd")==o[ni("0x33")]?o[r]+=i[ni("0x42")]:t[ni("0x1b")]({type:ni("0xd"),add:"add"==r?i[ni("0x42")]:"",remove:ni("0xe")==r?i[ni("0x42")]:""});else if(this[ni("0x3")][ni("0x38")](i)){const s=i;if(o&&o[ni("0x33")][ni("0x1")]("Container")>-1&&t[ni("0x17")](),ni("0x26")==e[ni("0x33")])continue;o&&o[ni("0x33")]==r+ni("0x47")&&o[ni("0xc")][ni("0x30")]==s[ni("0x30")]?o[ni("0x44")]++:t[ni("0x1b")]({type:r+ni("0x47"),element:s,quantity:1}),n.skip((t=>!(ni("0x26")==t[ni("0x33")]&&t[ni("0x1e")]==i)))}else if(this._schema.checkChild(i,ni("0x2d"))||i.is(ni("0xc"),ni("0x3c"))){const n=i;if(ni("0x35")==r&&ni("0x9")==e[ni("0x33")]||ni("0xe")==r&&ni("0x26")==e[ni("0x33")])continue;if(o&&-1==o[ni("0x33")].indexOf(ni("0x22"))){ni("0xd")==o.type&&(o[r]+="\n");continue}let s;if(s=ni("0x35")==r?n[ni("0x13")]&&!this[ni("0x3")][ni("0x38")](n[ni("0x13")])?n[ni("0x13")]:null:n[ni("0x21")]&&!this[ni("0x3")][ni("0x38")](n.previousSibling)?n[ni("0x21")]:null,n[ni("0x4")]||s&&s[ni("0x4")]){const e=s&&s[ni("0x4")]?s:n;o&&o[ni("0x33")]==r+ni("0x2e")&&o[ni("0xc")][ni("0x30")]==e[ni("0x30")]?o[ni("0x44")]++:t[ni("0x1b")]({type:r+ni("0x2e"),element:e,quantity:1})}else t[ni("0x1b")]({type:r+ni("0x22"),element:n})}}}_resolveDescriptionItems(t){const e=this[ni("0x3b")],n=[],r=[],i=[];for(const o of t)switch(o[ni("0x33")]){case ni("0xd"):if(o[ni("0x35")]=o[ni("0x35")].replace(/(\S)\u000A+(\S)/g,ni("0x10")).replace(/\u000A/g,""),o.remove=o[ni("0xe")].replace(/(\S)\u000A+(\S)/g,ni("0x10")).replace(/\u000A/g,""),""!=o[ni("0x35")]&&""!=o[ni("0xe")]){n.push({type:"replace",content:Yr(e,"REPLACE_TEXT",['"'+o[ni("0xe")]+'"','"'+o[ni("0x35")]+'"'])});continue}if(null!=o[ni("0x35")].match(/^ +$/)){n[ni("0x1b")]({type:ni("0x8"),content:Yr(e,ni("0x20"),Yr(e,ni("0x1c"),o[ni("0x35")].length))});continue}if(null!=o[ni("0xe")][ni("0x23")](/^ +$/)){n[ni("0x1b")]({type:"deletion",content:Yr(e,ni("0xf"),Yr(e,ni("0x1c"),o[ni("0xe")][ni("0x45")]))});continue}if(""!=o[ni("0x35")]){n[ni("0x1b")]({type:ni("0x8"),content:Yr(e,ni("0x20"),'"'+o[ni("0x35")]+'"')});continue}n[ni("0x1b")]({type:ni("0x28"),content:Yr(e,ni("0xf"),'"'+o[ni("0xe")]+'"')});continue;case ni("0x36"):case"addObject":n.push({type:ni("0x8"),content:Yr(e,ni("0x20"),this.getItemLabel(o[ni("0xc")],o[ni("0x44")]))});continue;case ni("0x34"):case ni("0x39"):n.push({type:"deletion",content:Yr(e,ni("0xf"),this.getItemLabel(o[ni("0xc")],o[ni("0x44")]))});continue;case ni("0x3d"):n.push({type:ni("0x8"),content:Yr(e,ni("0x48"),this[ni("0x40")](o[ni("0xc")],o[ni("0x44")]))});continue;case ni("0x37"):n[ni("0x1b")]({type:ni("0x28"),content:Yr(e,"*Merge:* %0",this[ni("0x40")](o[ni("0xc")],o.quantity))});continue;case ni("0x3f"):r[ni("0x1b")](o[ni("0x29")]);continue;case"removeFormat":i.push(o[ni("0x29")]);continue;default:n[ni("0x1b")](o)}if(r[ni("0x45")]){const t=r[ni("0x1f")]((t=>this[ni("0x2b")][ni("0x2a")](t)?this[ni("0x2b")][ni("0x2")](t):t))[ni("0xa")](", ");n.push({type:ni("0x24"),content:Yr(this[ni("0x3b")],ni("0x18"),t)})}if(i[ni("0x45")]){const t=i[ni("0x1f")]((t=>this[ni("0x2b")][ni("0x2a")](t)?this[ni("0x2b")].get(t):t)).join(", ");n[ni("0x1b")]({type:ni("0x24"),content:Yr(this[ni("0x3b")],ni("0x0"),t)})}return n}[ni("0x15")](t){for(const e of this[ni("0x14")]){const n=e(t);if(n&&ni("0x33")in n)return n}}[ni("0x3e")](t,e){const n=e[ni("0x42")],r=void 0===n.newValue?"removeFormat":ni("0x3f");t[ni("0x1b")]({type:r,key:n[ni("0x29")]})}[ni("0x5")](t,e){t[ni("0x1b")]({type:"format",content:Yr(this[ni("0x3b")],ni("0x7"),this[ni("0x40")](e.getFirstRange()[ni("0x31")][ni("0x1d")],1))})}[ni("0x32")](t,e,n){if(this[ni("0xb")](t,e),n&&n.getFirstRange()&&!e[ni("0x12")]()[ni("0x25")].isEqual(n[ni("0x12")]()[ni("0x31")])){const n=t[t[ni("0x45")]-1],r=ni("0x8")==e[ni("0x33")]?ni("0x35"):ni("0xe");n&&ni("0xd")==n.type&&(n[r]+="\n")}}}const ii=["plugins","commands","afterInit","showAIAssistant","enableCommand","TrackChangesEditing","get"];var oi,si;oi=ii,si=486,function(t){for(;--t;)oi.push(oi.shift())}(++si);const xi=function(t,e){return ii[t-=0]};class ai extends t.Plugin{[xi("0x6")](){const t=this.editor,e=t[xi("0x4")].get(xi("0x2"));t[xi("0x5")][xi("0x3")]("showAIAssistant")&&e[xi("0x1")](xi("0x0"))}}const ci=["format","editor","_enableDefaultAttributesIntegration","type","TrackChangesEditing","justify","registerDescriptionCallback","plugins","value","*Format:* %0","FORMAT_ALIGN_TO_CENTER","FORMAT_ALIGNMENT","center","FORMAT_JUSTIFY_TEXT","locale","AlignmentEditing","alignment","_descriptionFactory","commandParams","get","FORMAT_ALIGN_TO_RIGHT","FORMAT_ALIGN_TO_LEFT","_registerLegacyDescription","afterInit"];var li,ui;li=ci,ui=140,function(t){for(;--t;)li.push(li.shift())}(++ui);const di=function(t,e){return ci[t-=0]};class gi extends t.Plugin{[di("0x3")](){const t=this[di("0x5")],e=t[di("0x12")];if(!t[di("0xb")].has(di("0x13")))return;const n=t.plugins[di("0x17")](di("0x8"));n[di("0x6")](di("0x14"),[],[di("0x14")]),n._descriptionFactory.registerAttributeLabel(di("0x14"),Yr(e,di("0xf"))),this[di("0x2")]()}[di("0x2")](){const t=this[di("0x5")],e=t[di("0x12")];t[di("0xb")][di("0x17")](di("0x8"))[di("0x15")][di("0xa")]((t=>{if("formatBlock"!=t[di("0x7")])return;const{data:n}=t;if(n&&di("0x14")==n.commandName){const t=n[di("0x16")][0][di("0xc")];return{type:di("0x4"),content:Yr(e,di("0xd"),function(t){switch(t){case"left":return Yr(e,di("0x1"));case"right":return Yr(e,di("0x0"));case di("0x10"):return Yr(e,di("0xe"));case di("0x9"):return Yr(e,di("0x11"))}}(t))}}}))}}const fi=["_enableDefaultAttributesIntegration","toUpperCase","*Remove format:* %0","_registerLegacyDescription","strikethrough","StrikethroughEditing","FORMAT_SUBSCRIPT","italic","slice","SubscriptEditing","bold","format","afterInit","FORMAT_UNDERLINE","registerAttributeLabel","FORMAT_SUPERSCRIPT","formatInline","code","underline","*Format:* %0","get","FORMAT_CODE","plugins","type","FORMAT_","_descriptionFactory","subscript","commandParams","FORMAT_BOLD","SuperscriptEditing","TrackChangesEditing","locale","registerDescriptionCallback","CodeEditing","editor","UnderlineEditing"];var hi,mi;hi=fi,mi=152,function(t){for(;--t;)hi.push(hi.shift())}(++mi);const pi=function(t,e){return fi[t-=0]},bi=["BoldEditing","ItalicEditing",pi("0x1b"),pi("0x19"),pi("0x21"),pi("0x1"),pi("0x15")];class Ei extends t.Plugin{[pi("0x4")](){const t=this[pi("0x1a")],e=t[pi("0xe")][pi("0xc")](pi("0x16")),n=t[pi("0x17")];for(const r of bi){if(!t[pi("0xe")].has(r))continue;const i=r[pi("0x0")](0,-7).toLowerCase(),o=pi("0x10")+i[pi("0x1d")]();e[pi("0x1c")](i,[i]),e._descriptionFactory[pi("0x6")](i,Yr(n,o))}this[pi("0x1f")]()}[pi("0x1f")](){const t=this[pi("0x1a")],e=t[pi("0x17")],n=t[pi("0xe")][pi("0xc")](pi("0x16"));function r(t,r){n[pi("0x11")][pi("0x18")]((n=>{if(pi("0x8")!=n[pi("0xf")])return;const{data:i}=n;return i&&i.commandName===t?i[pi("0x13")][0].forceValue?{type:pi("0x3"),content:Yr(e,pi("0xb"),r)}:{type:pi("0x3"),content:Yr(e,pi("0x1e"),r)}:void 0}))}r(pi("0x2"),Yr(e,pi("0x14"))),r(pi("0x23"),Yr(e,"FORMAT_ITALIC")),r(pi("0xa"),Yr(e,pi("0x5"))),r(pi("0x9"),Yr(e,pi("0xd"))),r(pi("0x20"),Yr(e,"FORMAT_STRIKETHROUGH")),r(pi("0x12"),Yr(e,pi("0x22"))),r("superscript",Yr(e,pi("0x7")))}}const _i=["registerDescriptionCallback","schema","enableCommand","ELEMENT_BLOCK_QUOTE","getSelectedBlocks","*Remove format:* %0","from","checkChild","editor","filter","locale","format","has","commandName","parent","blockQuote","value","_descriptionFactory","BlockQuoteEditing","afterInit","*Set format:* %0","get","forceValue","change","document","plugins","model","commands"];var Ti,yi;Ti=_i,yi=198,function(t){for(;--t;)Ti.push(Ti.shift())}(++yi);const Ci=function(t,e){return _i[t-=0]};class Ai extends t.Plugin{[Ci("0x11")](){const t=this[Ci("0x6")],e=t[Ci("0x8")];if(!t[Ci("0x17")][Ci("0xa")](Ci("0x10")))return;const n=t[Ci("0x17")][Ci("0x13")]("TrackChangesEditing"),r=this.editor[Ci("0x19")][Ci("0x13")]("blockQuote");n[Ci("0x0")](Ci("0xd"),((e,i={})=>{const o=this[Ci("0x6")].model[Ci("0x16")].selection,s=i&&void 0!==i[Ci("0x14")]?i[Ci("0x14")]:!r[Ci("0xe")];let x=[];if(s){const e=Array[Ci("0x4")](o[Ci("0x2")]()).filter((t=>ki(t)||function(t,e){const n=e.checkChild(t[Ci("0xc")],Ci("0xd")),r=e[Ci("0x5")](["$root","blockQuote"],t);return n&&r}(t,this[Ci("0x6")][Ci("0x18")][Ci("0x1b")])));x=R(e,t[Ci("0x18")])}else{const e=Array[Ci("0x4")](o[Ci("0x2")]())[Ci("0x7")]((t=>ki(t)));x=R(e,t[Ci("0x18")])}t[Ci("0x18")][Ci("0x15")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ci("0xd"),commandParams:[{forceValue:s}]})}))})),n[Ci("0xf")][Ci("0x1a")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[Ci("0xb")]){const t=Yr(e,Ci("0x1"));return n.commandParams[0][Ci("0x14")]?{type:Ci("0x9"),content:Yr(e,Ci("0x12"),t)}:{type:Ci("0x9"),content:Yr(e,Ci("0x3"),t)}}}))}}function ki(t){return Ci("0xd")==t.parent.name}const Ii=["get","TrackChangesEditing","changeCaseTitle","afterInit","changeCaseLower","plugins","CaseChange","has","enableCommand","editor"];var Si,Ri;Si=Ii,Ri=348,function(t){for(;--t;)Si.push(Si.shift())}(++Ri);const vi=function(t,e){return Ii[t-=0]};class Ni extends t.Plugin{[vi("0x5")](){const t=this[vi("0x1")];t.plugins[vi("0x9")](vi("0x8"))&&(t[vi("0x7")].get(vi("0x3")).enableCommand("changeCaseUpper"),t[vi("0x7")].get(vi("0x3"))[vi("0x0")](vi("0x6")),t[vi("0x7")][vi("0x2")](vi("0x3"))[vi("0x0")](vi("0x4")))}}const Li=["ckbox","TrackChangesEditing","afterInit","enableCommand","plugins","commands"];var Mi,wi;Mi=Li,wi=295,function(t){for(;--t;)Mi.push(Mi.shift())}(++wi);const Oi=function(t,e){return Li[t-=0]};class Fi extends t.Plugin{[Oi("0x1")](){const t=this.editor;t[Oi("0x4")].get(Oi("0x5"))&&t[Oi("0x3")].get(Oi("0x0"))[Oi("0x2")](Oi("0x5"))}}const Di=["registerElementLabel","selection","has","registerDescriptionCallback","value","language","editor","find","change","afterInit","*Remove format:* %0","commandParams","schema","markBlockFormat","from","parent","outdentCodeBlock","locale","commandName","forceValue","document","filter","formatBlock","TrackChangesEditing","getSelectedBlocks","model","languages","codeBlock","get","_descriptionFactory","checkChild","rootElement","toLowerCase","format","isLimit","blockName","plugins","ELEMENT_CODE_BLOCK","enableCommand","type"];var Pi,Bi;Pi=Di,Bi=123,function(t){for(;--t;)Pi.push(Pi.shift())}(++Bi);const Ui=function(t,e){return Di[t-=0]};class ji extends t.Plugin{[Ui("0x6")](){const t=this[Ui("0x3")];if(!t[Ui("0x21")][Ui("0x27")]("CodeBlock"))return;const e=t[Ui("0x21")].get(Ui("0x14")),n=t[Ui("0xe")],r=t.config[Ui("0x19")]("codeBlock")[Ui("0x17")],i=t.commands[Ui("0x19")]("codeBlock");e[Ui("0x23")]("indentCodeBlock"),e[Ui("0x23")](Ui("0xd")),e[Ui("0x23")](Ui("0x18"),((n,o={})=>{const s=t[Ui("0x16")],x=t[Ui("0x16")][Ui("0x11")][Ui("0x26")],a=o&&void 0!==o[Ui("0x10")]?o.forceValue:!i[Ui("0x1")];let c;o[Ui("0x2")]||(o.language=r[0][Ui("0x2")]),c=a?Array.from(x[Ui("0x15")]())[Ui("0x12")]((t=>{return Gi(t)||(e=t,n=s[Ui("0x9")],!e.is(Ui("0x1c"))&&!n[Ui("0x1f")](e)&&n[Ui("0x1b")](e[Ui("0xc")],Ui("0x18")));var e,n})):Array[Ui("0xb")](x[Ui("0x15")]())[Ui("0x12")]((t=>Gi(t)));const l=R(c,s);s[Ui("0x5")]((()=>{for(const t of l)e[Ui("0xa")](t,{commandName:Ui("0x18"),commandParams:[{...o,forceValue:a}],formatGroupId:Ui("0x20")})}))})),e[Ui("0x1a")][Ui("0x25")](Ui("0x18"),(t=>Yr(n,Ui("0x22"),t))),e._descriptionFactory[Ui("0x0")]((t=>{if(Ui("0x13")!=t[Ui("0x24")])return;const e=n.t,{data:i}=t;if(!i||Ui("0x18")!=i[Ui("0xf")])return;const o=i[Ui("0x8")][0][Ui("0x2")],s=e(r[Ui("0x4")]((t=>t[Ui("0x2")]===o)).label)[Ui("0x1d")]();return i[Ui("0x8")][0].forceValue?{type:Ui("0x1e"),content:Yr(n,"*Set format:* %0",Yr(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ui("0x1e"),content:Yr(n,Ui("0x7"),Yr(n,Ui("0x22"),1))}}))}}function Gi(t){return Ui("0x18")==t.name}const Vi=["CommentsEditing","has","enableCommand","afterInit","addCommentThread","plugins"];var Hi,zi;Hi=Vi,zi=117,function(t){for(;--t;)Hi.push(Hi.shift())}(++zi);const Wi=function(t,e){return Vi[t-=0]};class Ki extends t.Plugin{[Wi("0x0")](){const t=this.editor;t[Wi("0x2")][Wi("0x4")](Wi("0x3"))&&t[Wi("0x2")].get("TrackChangesEditing")[Wi("0x5")](Wi("0x1"))}}var qi=n(500);const Xi=["get","getCustomProperty","type","name","listIndent","isLimit","parent","isContent","test","item","includes","addHighlight","markerRange","mapper","span","markerName","previousPosition","toViewElement","isBlock","activeMarkers","toViewPosition","push","isAtEnd","getItems","nextSibling","consumable","element","addClass","start","hasAttribute","ck-suggestion-marker-","TrackChangesEditing","writer","schema","getAttribute","elementEnd","listItem"];var $i,Zi;$i=Xi,Zi=291,function(t){for(;--t;)$i.push($i.shift())}(++Zi);const Qi=function(t,e){return Xi[t-=0]};function Yi(t,e,n){const r=[];for(const i of e[Qi("0x1c")]())i[Qi("0x22")](t)&&r[Qi("0x1a")](n.createRangeOn(i));return r}function Ji(t,e,{showActiveMarker:n=!0}={}){const r=t.plugins[Qi("0x5")](Qi("0x24"));return(i,o,s)=>{if(!s[Qi("0x1e")][Qi("0xd")](o[Qi("0x11")],i[Qi("0x8")]))return;const x=o[Qi("0x11")].getWalker(),a=o.markerRange[Qi("0x21")],c=t.model[Qi("0x1")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Qi("0xe")];d=d||c[Qi("0xc")](e);const n=s[Qi("0x12")][Qi("0x16")](e);if(n&&n[Qi("0x6")](Qi("0x10")))return;Qi("0x3")==t[Qi("0x7")]&&c[Qi("0x17")](e)&&!c[Qi("0xa")](e)&&(e[Qi("0x1d")]||a[Qi("0x1b")]?l&&l[Qi("0xb")]==e||(l=e,f(t[Qi("0x15")]),g=!0):u=u||t[Qi("0x15")])}function f(t){const i=s[Qi("0x0")].createUIElement(Qi("0x13"),{class:Qi("0x23")+e}),x=s[Qi("0x12")][Qi("0x19")](t);n&&r[Qi("0x18")][Qi("0xf")](o[Qi("0x14")])&&s[Qi("0x0")][Qi("0x20")]("ck-suggestion-marker--active",i),s.writer.insert(x,i),s.mapper.bindElementToMarker(i,o.markerName)}d||g||!u||f(u)}}const to=["createRange","enableCommand","bind","requires","lock","get","remove","buffer","commands","deleteForward","createSelection","unbindElementFromMarkerName","document","data","start","batch","addMarker:suggestion:deletion","options","merge","forward","downcastDispatcher","high","unit","writer","mapper","showSuggestionHighlights","modifySelection","enqueueChange","editor","model","selection","fromRange","rootName","removeMarker:suggestion:deletion","isCollapsed","editing","markerName","init","$graveyard","end","markerNameToElements","plugins","TrackChangesEditing"];var eo,no;eo=to,no=166,function(t){for(;--t;)eo.push(eo.shift())}(++no);const ro=function(t,e){return to[t-=0]};class io extends t.Plugin{static get[ro("0x9")](){return[qi.Delete]}[ro("0x0")](){const t=this[ro("0x22")],e=t[ro("0x4")][ro("0xb")](ro("0x5"));e[ro("0x7")]("delete");const n=t[ro("0xe")][ro("0xb")](ro("0xf"));e[ro("0x7")](ro("0xf"),((e,r={})=>{const i=t[ro("0x23")][ro("0x10")](t.model[ro("0x12")][ro("0x24")]);i[ro("0x28")]&&t.model[ro("0x20")](i,{direction:ro("0x19"),unit:r[ro("0x1c")]});const o=i.getFirstRange(),x=s.LiveRange[ro("0x25")](o);let a;e(r),a=ro("0x1")==x.root[ro("0x26")]?t.model[ro("0x6")](o[ro("0x14")]):t[ro("0x23")][ro("0x6")](x[ro("0x14")],x[ro("0x2")]),x.detach(),t.model[ro("0x21")](n.buffer[ro("0x15")],(t=>{n[ro("0xd")][ro("0xa")](),t.setSelection(t[ro("0x6")](a[ro("0x2")])),n[ro("0xd")].unlock()}))})),t[ro("0x29")][ro("0x1a")].on(ro("0x16"),Ji(t,ro("0x18")),{priority:ro("0x1b")}),t[ro("0x13")].downcastDispatcher.on("addMarker:suggestion:deletion",((e,n,r)=>{r[ro("0x17")][ro("0x1f")]&&Ji(t,ro("0x18"),{showActiveMarker:!1})[ro("0x8")](this)(e,n,r)}),{priority:ro("0x1b")}),t[ro("0x29")][ro("0x1a")].on(ro("0x27"),((t,e,n)=>{const r=n.mapper[ro("0x3")](e[ro("0x2a")]);if(r)for(const t of r)t.is("uiElement")&&(n[ro("0x1e")][ro("0x11")](t,e[ro("0x2a")]),n[ro("0x1d")][ro("0xc")](t))}),{priority:ro("0x1b")})}}const oo=["value","TrackChangesEditing","commandParams","plugins","suggestion","_descriptionFactory","ELEMENT_TODO_LIST","forceValue","toUpperCase","filter","has","config","multipleBlocks","oldValue","TodoListEditing","splitListItemAfter","commands","getSuggestions","list.multiBlock","getRanges","listType","start","ELEMENT_LIST_ITEM","key","schema","todo","*Outdent:* %0","registerPostFixer","isUndo","listStyle","FORMAT_INDENT","getFirstRange","assureChains","indentList","length","*Split:* list item","_getAttributeKey","listIndent","setSelection","todoList","type","isLocal","previousSibling","listReversed","locale","getChanges","find","range","model","listStart","listItemId","_findSuggestions","format","mergeListItemBackward","*Set format:* %0","detach","ELEMENT_","outdentList","*Indent:* %0","newValue","todoListCheck","documentList","nodeAfter","_registerLegacyDescription","registerAttributeLabel","attribute","*Format:* insert into %0","ELEMENT_BULLETED_LIST","registerElementLabel","*Merge:* list item","batch","setAttribute","*Format:* remove from %0","getFirstMarker","registerDescriptionCallback","trackChangesCommand","todoListChecked","execute","differ","attributes","*Merge:* %0","push","next","get","map","document","editor","head","removeMarker","commandName","containsItem","parent","noTrackChangesFixer","*Check item*","_suggestionFactory","*Remove format:* %0","nextSibling","registerCustomCallback","ELEMENT_NUMBERED_LIST","_supportLegacySuggestions","getAttribute","bulletedList","formatBlock","bulleted","mergeListItemForward","end","_enableDefaultAttributesIntegration","every","afterInit","from","numbered","numberedList","deletion","isNextTo","data","groupId","includes","_LIST","isObject"];var so,xo;so=oo,xo=431,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{[ao("0x22")](){const t=this[ao("0xc")];if(!t[ao("0x30")][ao("0x37")]("ListEditing"))return;const e=t[ao("0x59")],n=t[ao("0x30")][ao("0x9")](ao("0x2e")),r=t[ao("0x30")][ao("0x37")](ao("0x3b")),i=!!t.config[ao("0x9")](ao("0x3f"));function o(t){return{type:ao("0x61"),content:""+Yr(e,ao("0x63"),t)}}function s(t){return{type:ao("0x61"),content:""+Yr(e,ao("0x15"),t)}}n[ao("0x20")]("numberedList",[],[ao("0x5f"),ao("0x41"),ao("0x52")]),n[ao("0x20")]("bulletedList"),n[ao("0x20")](ao("0x4e")),n[ao("0x20")](ao("0x66")),n._enableDefaultAttributesIntegration(ao("0x3c")),n[ao("0x20")]("splitListItemBefore"),i&&(n[ao("0x20")](ao("0x62")),n._enableDefaultAttributesIntegration(ao("0x1e"))),r&&(n[ao("0x20")](ao("0x54")),n._enableDefaultAttributesIntegration("checkTodoList",[],["todoListChecked"]),n[ao("0x32")][ao("0x0")]((t=>{const{data:n}=t;if(n&&ao("0x2")==n[ao("0x44")])return{type:"format",content:n.newValue?Yr(e,ao("0x13")):Yr(e,"*Uncheck item*")}})),this[ao("0xc")][ao("0x5d")][ao("0xb")][ao("0x48")]((t=>{if(t[ao("0x73")][ao("0x49")])return!1;let e=!1;const r=n[ao("0x3e")]({skipNotAttached:!0}).filter((t=>"todoListChecked"===n[ao("0x51")](t)));for(const i of r)"todo"!=i[ao("0x4c")]()[ao("0x42")][ao("0x6b")].getAttribute(ao("0x41"))&&(n[ao("0x60")](i[ao("0x4c")](),ao("0x6e"))[ao("0x5b")]((t=>ao("0x41")===n[ao("0x51")](t[ao("0x31")])))||(t[ao("0xe")](i.getFirstMarker()),e=!0));return e}))),n[ao("0x32")][ao("0x6d")](ao("0x52"),Yr(e,ao("0x4b")));const x={type:"format",content:""};n[ao("0x32")][ao("0x0")]((t=>{const{data:n}=t;if(!n||"listType"!=n[ao("0x44")])return;let r=t[ao("0xd")];for(;r;){if(r[ao("0x28")]&&(ao("0x4a")==r[ao("0x28")][ao("0x44")]&&(r[ao("0x28")].newValue&&"default"!=r[ao("0x28")][ao("0x68")]||"default"!=r[ao("0x28")].oldValue&&!n[ao("0x68")])||!i&&r[ao("0x28")][ao("0x44")]==Cc))return x;r=r[ao("0x8")]}if(null==n[ao("0x68")])switch(n.oldValue){case ao("0x1d"):return s(Yr(e,ao("0x70")));case"numbered":return s(Yr(e,ao("0x18")));case"todo":return s(Yr(e,ao("0x33")))}switch(n[ao("0x68")]){case ao("0x1d"):return o(Yr(e,ao("0x70")));case ao("0x24"):return o(Yr(e,ao("0x18")));case ao("0x46"):return o(Yr(e,ao("0x33")))}})),n._descriptionFactory[ao("0x0")]((t=>{const{data:e}=t;if(e&&ao("0x52")==e.key)return null==e[ao("0x68")]||null==e.oldValue&&0==e[ao("0x68")]?x:void 0})),n[ao("0x32")][ao("0x0")]((t=>{if(ao("0x6e")!=t[ao("0x55")])return;const{data:n}=t;if(!n||ao("0x5f")!=n.key)return;const r=lo(t);return r?ao("0x68")==r?{type:ao("0x61"),content:Yr(e,ao("0x72"))}:"oldValue"==r?{type:ao("0x61"),content:Yr(e,ao("0x50"))}:x:x})),t[ao("0x5d")][ao("0xb")][ao("0x48")]((t=>this.listItemIdFixer(t))),t.model[ao("0xb")].registerPostFixer((t=>this.noTrackChangesFixer(t))),t[ao("0x5d")][ao("0xb")][ao("0x48")]((t=>this[ao("0x4d")](t))),this[ao("0x19")]()}listItemIdFixer(t){if(t[ao("0x73")][ao("0x49")]||!t[ao("0x73")].isLocal)return!1;let e=!1;const n=this[ao("0xc")][ao("0x30")].get(ao("0x2e"))[ao("0x3e")]({skipNotAttached:!0}).filter((t=>t.data&&ao("0x5f")==t[ao("0x28")][ao("0x44")]))[ao("0x36")]((t=>t[ao("0x28")][ao("0x68")]&&t[ao("0x28")][ao("0x3a")]));for(const r of n)lo(r)||(t.removeMarker(r[ao("0x76")]()),e=!0);return e}[ao("0x12")](t){if(t[ao("0x73")][ao("0x49")]||!t[ao("0x73")][ao("0x56")])return!1;const e=this[ao("0xc")].plugins[ao("0x9")](ao("0x2e"));if(e[ao("0x1")][ao("0x2d")])return!1;let n=!1;const r=[ao("0x41"),"listStyle","listItemId",ao("0x52"),ao("0x5e"),ao("0x58"),ao("0x69")],i=this[ao("0xc")][ao("0x5d")][ao("0xb")][ao("0x4")][ao("0x5a")]().filter((t=>"attribute"==t[ao("0x55")]))[ao("0x36")]((t=>r.includes(t.attributeKey)));if(0==i[ao("0x4f")])return n;for(const o of i){const i=e._findSuggestions(o[ao("0x5c")],"attribute")[ao("0x36")]((t=>!t.meta[ao("0x27")]))[ao("0xa")]((t=>t.suggestion))[ao("0x36")]((t=>{const n=e._getAttributeKey(t);return r.includes(n)}));if(i[ao("0x4f")]){for(const e of i)t[ao("0xe")](e.getFirstMarker());n=!0}}return n}[ao("0x4d")](t){if(t[ao("0x73")][ao("0x49")]||!t[ao("0x73")][ao("0x56")])return!1;const e=this[ao("0xc")].plugins[ao("0x9")](ao("0x2e"));let n=!1;const r=[ao("0x41"),"listStyle",ao("0x5f"),ao("0x52"),ao("0x5e"),ao("0x58"),ao("0x69")];for(const t of e[ao("0x3e")]({skipNotAttached:!0})){const i=e._findSuggestions(t[ao("0x4c")](),ao("0x6e"))[ao("0xa")]((t=>t[ao("0x31")])).filter((t=>t.data&&r[ao("0x2a")](t.data[ao("0x44")])));if(!i.length)continue;const s=i[0].head[ao("0x5")][ao("0x29")];if(!i[ao("0x21")]((t=>t[ao("0x5")][ao("0x29")]===s)))for(const t of i)o(t,s)&&(n=!0)}return n;function i(t,n){for(const r of e.getSuggestions({skipNotAttached:!0})[ao("0x36")]((e=>ao("0x6e")==e[ao("0x55")]&&e[ao("0x5")][ao("0x29")]==t)))r[ao("0x74")]("groupId",n)}function o(t,e){let n=t[ao("0xd")],r=!1;for(;n;)n[ao("0x5")][ao("0x29")]!=e&&(i(n[ao("0x5")][ao("0x29")],e),n[ao("0x74")](ao("0x29"),e),r=!0),n=n.next;return r}}_supportLegacySuggestions(){const t=this[ao("0xc")],e=t[ao("0x59")],n=t[ao("0x30")][ao("0x9")](ao("0x2e"));this[ao("0x6c")](),n[ao("0x14")][ao("0x17")](ao("0x1c"),ao("0x6a"),"accept",(function(e,n){const r=[];for(let n of e)n.start[ao("0x6b")]===n[ao("0x1f")][ao("0x11")]&&(n=t[ao("0x5d")].createRange(t[ao("0x5d")].createPositionAt(n.start[ao("0x6b")],0))),r[ao("0x7")](n);t.model.change((e=>{const i=t[ao("0x5d")][ao("0xb")].selection,o=Array[ao("0x23")](i[ao("0x40")]())[ao("0xa")]((t=>s.LiveRange.fromRange(t)));e.setSelection(r),t.commands[ao("0x9")](n[ao("0xf")]).refresh(),n[ao("0x2f")].push({forceDefaultExecution:!0}),t[ao("0x3")](n[ao("0xf")],...n.commandParams),e[ao("0x53")](o);for(const t of o)t[ao("0x64")]()}))})),n[ao("0x32")][ao("0x71")]((function(e){const n=!t.model[ao("0x45")][ao("0x2c")](e),r=e[ao("0x57")],i=e[ao("0x16")],o=e[ao("0x1a")]("listItemId"),s=!r||r.getAttribute(ao("0x5f"))!==o,x=!i||i.getAttribute(ao("0x5f"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Yr(e,ao("0x43"),t)))}_registerLegacyDescription(){const t=this[ao("0xc")],e=t[ao("0x59")];function n(e){const n=t[ao("0x3d")][ao("0x9")](ao("0x1b")).value,r=t[ao("0x3d")][ao("0x9")]("numberedList")[ao("0x2d")];return ao("0x25")===e?n:r}t[ao("0x30")].get(ao("0x2e"))[ao("0x32")][ao("0x0")]((function(r){if(ao("0x1c")!=r[ao("0x55")])return;const{data:i}=r;if(!i)return;let o,s,x,a;switch(i[ao("0xf")]){case ao("0x1b"):x=i[ao("0x2f")][0][ao("0x34")],a=n(i.commandName),o=ao(x?"0x6f":"0x75"),!a&&t[ao("0x38")][ao("0x9")](ao("0x3f"))||(o="*Change to:* %0"),s={type:"format",content:Yr(e,o,Yr(e,ao("0x70")))};break;case ao("0x25"):x=i[ao("0x2f")][0].forceValue,a=n(i[ao("0xf")]),o=ao(x?"0x6f":"0x75"),!a&&t.config[ao("0x9")]("list.multiBlock")||(o="*Change to:* %0"),s={type:ao("0x61"),content:Yr(e,o,Yr(e,ao("0x18")))};break;case ao("0x4e"):o=ao("0x67"),s={type:ao("0x61"),content:Yr(e,o,Yr(e,ao("0x43")))};break;case ao("0x66"):o=function(t){const e=t[ao("0x4c")]();let n=e[ao("0x42")][ao("0x6b")];for(;n&&e[ao("0x10")](n);){if(n[ao("0x1a")](ao("0x52"))>0)return!1;n=n[ao("0x16")]}return!0}(r)?Yr(e,ao("0x75"),Yr(e,(c=r,ao("0x65")+c.getFirstRange()[ao("0x42")][ao("0x6b")].getAttribute(ao("0x41"))[ao("0x35")]()+ao("0x2b")))):Yr(e,ao("0x47"),Yr(e,ao("0x43"))),s={type:ao("0x61"),content:o};break;case ao("0x62"):case"mergeListItemForward":!1===i[ao("0x39")]&&(o=ao("0x6"),s={type:ao("0x26"),content:Yr(e,o,Yr(e,"ELEMENT_LIST_ITEM"))})}var c;return s}))}}function lo(t){let e=t[ao("0x4c")]()[ao("0x42")].nodeAfter[ao("0x57")];for(;e;){const n=e[ao("0x1a")](ao("0x5f"));if(!n)return!1;if(n==t[ao("0x28")][ao("0x68")])return"newValue";if(n==t[ao("0x28")][ao("0x3a")])return ao("0x3a");e=e[ao("0x57")]}return!1}const uo=["startIndex","attribute","newValue","head","_registerLegacyDescription","_LIST_DEFAULT","_descriptionFactory","commandParams","*Format:* set order to reversed","registerAttributeLabel","plugins","ELEMENT_","TrackChangesEditing","includes","oldValue","afterInit","*Set format:* %0","bulleted","start","handleDescriptions","filter","listType","locale","registerDescriptionCallback","data","list.properties","format","_getTranslationKeyForListStyle","FORMAT_LIST_REVERSED","default","has","*Format:* set order to regular","key","numbered","toUpperCase","nodeAfter","removeMarker","upper-latin","*Change to:* %0","_LIST_","find","suggestion","config","*Remove format:* %0","next","document","FORMAT_LIST_START","get","_getAttributeKey","*Format:* set start index to %0","decimal-leading-zero","getFirstRange","editor","listStyle","isUndo","_enableDefaultAttributesIntegration","listStart","reversed","model","bind","listReversed","_findSuggestions","type"];var go,fo;go=uo,fo=458,function(t){for(;--t;)go.push(go.shift())}(++fo);const ho=function(t,e){return uo[t-=0]};class mo extends t.Plugin{[ho("0x3d")](){if(!this.editor[ho("0x38")][ho("0xd")]("ListPropertiesEditing"))return;const t=this[ho("0x23")][ho("0x19")].get(ho("0x8")),e=this[ho("0x23")][ho("0x38")][ho("0x1e")](ho("0x3a"));t.styles&&e[ho("0x26")](ho("0x24"),[],[ho("0x24")]),t[ho("0x28")]&&e[ho("0x26")](ho("0x2b"),[],[ho("0x2b")]),t[ho("0x2e")]&&e[ho("0x26")](ho("0x27"),[],[ho("0x27")]);const n={type:"format",content:""};e[ho("0x34")].registerDescriptionCallback(this[ho("0x2")][ho("0x2a")](this));const r=this[ho("0x23")].locale;e[ho("0x34")].registerAttributeLabel(ho("0x2b"),Yr(r,ho("0xb"))),e._descriptionFactory[ho("0x6")]((t=>{const{data:e}=t;if(e&&ho("0x2b")==e[ho("0xf")])return null==e.newValue||0==e.newValue&&null==e[ho("0x3c")]?n:void 0})),e[ho("0x34")][ho("0x37")](ho("0x27"),Yr(r,ho("0x1d"))),e[ho("0x34")][ho("0x6")]((t=>{const{data:e}=t;if(e&&ho("0x27")==e.key)return null==e[ho("0x30")]||1==e[ho("0x30")]&&null==e[ho("0x3c")]?n:void 0})),this[ho("0x23")][ho("0x29")][ho("0x1c")].registerPostFixer((t=>{if(t.batch[ho("0x25")])return!1;let n=!1;const r=e.getSuggestions({skipNotAttached:!0})[ho("0x3")]((t=>{const n=e[ho("0x1f")](t);return ho("0x27")==n||ho("0x2b")==n}));for(const i of r)"numbered"!=i[ho("0x22")]()[ho("0x1")][ho("0x12")].getAttribute(ho("0x4"))&&(e[ho("0x2c")](i[ho("0x22")](),ho("0x2f"))[ho("0x17")]((t=>"listType"==e[ho("0x1f")](t[ho("0x18")])))||(t[ho("0x13")](i.getFirstMarker()),n=!0));return n})),this[ho("0x32")]()}[ho("0x2")](t){const e=this[ho("0x23")].locale,{data:n}=t,r={type:ho("0x9"),content:""};if(!n||ho("0x24")!=n[ho("0xf")])return;if(!n[ho("0x3c")])return ho("0xc")==n[ho("0x30")]?r:{type:ho("0x9"),content:""+Yr(e,"*Set format:* %0",Yr(e,this[ho("0xa")](n[ho("0x30")])))};if(!n[ho("0x30")]){if(ho("0xc")==n[ho("0x3c")])return r;let i=t[ho("0x31")];for(;i;){if(i[ho("0x7")]&&ho("0x4")==i.data.key&&i[ho("0x7")][ho("0x30")])return r;i=i.next}return{type:ho("0x9"),content:""+Yr(e,ho("0x1a"),Yr(e,this._getTranslationKeyForListStyle(n[ho("0x3c")])))}}if(ho("0xc")!=n.newValue)return{type:"format",content:""+Yr(e,ho("0x3e"),Yr(e,this._getTranslationKeyForListStyle(n[ho("0x30")])))};let i=t.head;for(;i;){if(i[ho("0x7")]&&ho("0x4")==i[ho("0x7")][ho("0xf")]&&i[ho("0x7")][ho("0x30")]&&i[ho("0x7")].oldValue)return r;i=i[ho("0x1b")]}const o=t[ho("0x22")]()[ho("0x1")].nodeAfter.getAttribute(ho("0x4"));return{type:ho("0x9"),content:Yr(e,"*Set format:* %0",Yr(e,ho("0x39")+o[ho("0x11")]()+ho("0x33")))}}[ho("0x32")](){const t=this.editor,e=t[ho("0x5")];t[ho("0x38")].get("TrackChangesEditing")._descriptionFactory[ho("0x6")]((t=>{if("formatBlock"!=t[ho("0x2d")])return;const{data:n}=t;if(!n)return;let r,i;switch(n.commandName){case ho("0x24"):r=ho("0x15"),i={type:ho("0x9"),content:Yr(e,r,Yr(e,this[ho("0xa")](n[ho("0x35")][0][ho("0x2d")])))};break;case ho("0x2b"):r=n[ho("0x35")][0][ho("0x28")]?ho("0x36"):ho("0xe"),i={type:ho("0x9"),content:Yr(e,r)};break;case"listStart":r=ho("0x20"),i={type:ho("0x9"),content:Yr(e,r,n.commandParams[0].startIndex)}}return i}))}[ho("0xa")](t){return ho("0x39")+(e=t,po[ho("0x3b")](e)?ho("0x0"):bo.includes(e)?ho("0x10"):null).toUpperCase()+ho("0x16")+t[ho("0x11")]().replace(/-/g,"_");var e}}const po=["disc","circle","square"],bo=["decimal",ho("0x21"),"lower-roman","upper-roman","lower-latin",ho("0x14")];var Eo=n(976);const _o=["enableCommand","hasClass","requires","parent","mapper","data","downcastDispatcher","markerNameToElements","remove","getFirstPosition","change","markerName","fire","TrackChangesEditing","enterBlock","document","enter","unbindElementFromMarkerName","writer","getFirstRange","showSuggestionHighlights","get","editing","addMarker:suggestion:insertion","bind","split","init","selection","high","options","removeMarker:suggestion:insertion","createRange","nextSibling","model","fromRange"];var To,yo;To=_o,yo=397,function(t){for(;--t;)To.push(To.shift())}(++yo);const Co=function(t,e){return _o[t-=0]};class Ao extends t.Plugin{static get[Co("0x19")](){return[Eo.Enter]}[Co("0xe")](){const t=this.editor,e=t.plugins[Co("0x9")](Co("0x1")),n=t.commands[Co("0x9")]("enter");e[Co("0x17")](Co("0x4"),(()=>{t[Co("0x15")][Co("0x21")]((r=>{const i=t.model[Co("0x3")][Co("0xf")],o=i[Co("0x20")](),x=s.LiveRange[Co("0x16")](i[Co("0x7")]());if(n[Co("0x2")](r)){const n=t[Co("0x15")].createPositionAt(o[Co("0x1a")][Co("0x14")],0),i=r[Co("0x13")](o,n);e.markInsertion(i)}else r.setSelection(r[Co("0x13")](x.end));x.detach(),n[Co("0x0")]("afterExecute",{writer:r})}))})),t.editing[Co("0x1d")].on(Co("0xb"),Ji(t,Co("0xd")),{priority:Co("0x10")}),t[Co("0xa")][Co("0x1d")].on(Co("0x12"),((t,e,n)=>{const r=n[Co("0x1b")][Co("0x1e")](e[Co("0x22")]);if(r)for(const t of r)t[Co("0x18")]("ck-suggestion-marker-split")&&(n[Co("0x1b")][Co("0x5")](t,e.markerName),n[Co("0x6")][Co("0x1f")](t))}),{priority:Co("0x10")}),t[Co("0x1c")][Co("0x1d")].on("addMarker:suggestion:insertion",((e,n,r)=>{r[Co("0x11")][Co("0x8")]&&Ji(t,Co("0xd"),{showActiveMarker:!1})[Co("0xc")](this)(e,n,r)}),{priority:"high"})}}const ko=["get","FindAndReplaceEditing","find","model","handleFindCommand","editor","bind","FindAndReplaceUtils","TrackChangesEditing","getRange","has","replace","filter","end","markers","findNext","createRange","_isInDeletionRange","findPrevious","plugins","getMarkersGroup","enableCommand","afterInit","start","getIntersection","createPositionAt"];var Io,So;Io=ko,So=346,function(t){for(;--t;)Io.push(Io.shift())}(++So);const Ro=function(t,e){return ko[t-=0]};class vo extends t.Plugin{[Ro("0xe")](){if(!this[Ro("0x17")].plugins[Ro("0x2")](Ro("0x13")))return;const t=this[Ro("0x17")][Ro("0xb")][Ro("0x12")](Ro("0x0"));t[Ro("0xd")](Ro("0x14"),this[Ro("0x16")][Ro("0x18")](this)),t[Ro("0xd")](Ro("0x7")),t.enableCommand(Ro("0xa")),t[Ro("0xd")](Ro("0x3")),t[Ro("0xd")]("replaceAll")}[Ro("0x16")](t,e,n={}){const r=this.editor.plugins.get(Ro("0x19"));return t((t=>("string"==typeof e?r.findByTextCallback(e,n):e)(t)[Ro("0x4")]((e=>!1===this[Ro("0x9")](e,t.item)))),n)}[Ro("0x9")](t,e){const n=this[Ro("0x17")].model[Ro("0x8")](this[Ro("0x17")][Ro("0x15")][Ro("0x11")](e,t[Ro("0xf")]),this[Ro("0x17")][Ro("0x15")][Ro("0x11")](e,t[Ro("0x5")]));for(const t of this[Ro("0x17")][Ro("0x15")][Ro("0x6")][Ro("0xc")]("suggestion:deletion"))if(null!==n[Ro("0x10")](t[Ro("0x1")]()))return!0;return!1}}const No=["FORMAT_FONT_SIZE","_enableDefaultAttributesIntegration","find","locale","*Reset font size*","*Set font family:* %0","trim","fontFamily","type","has","FORMAT_FONT_COLOR","registerDescriptionCallback","*Set font background color:* %0","fontColor.colors","FontFamilyEditing","FontSizeEditing","value","label","config","title","registerAttributeLabel","fontSize","afterInit","*Set font color:* %0","toLowerCase","_descriptionFactory","commandParams","_registerLegacyDescription","*Reset font color*","editor","fontSize.options","TrackChangesEditing","fontBackgroundColor","get","commandName","plugins","FORMAT_FONT_FAMILY","formatInline","fontColor","format","FontBackgroundColorEditing","*Reset font family*"];var Lo,Mo;Lo=No,Mo=233,function(t){for(;--t;)Lo.push(Lo.shift())}(++Mo);const wo=function(t,e){return No[t-=0]},Oo=[{pluginName:wo("0x22"),commandName:"fontSize"},{pluginName:wo("0x21"),commandName:wo("0x1a")},{pluginName:"FontColorEditing",commandName:wo("0xf")},{pluginName:wo("0x11"),commandName:"fontBackgroundColor"}];class Fo extends t.Plugin{[wo("0x29")](){const t=this[wo("0x6")][wo("0x16")],e=this.editor[wo("0xc")][wo("0xa")](wo("0x8"));for(const{pluginName:t,commandName:n}of Oo)this[wo("0x6")].plugins[wo("0x1c")](t)&&e[wo("0x14")](n,[n]);t.t,e[wo("0x2")][wo("0x27")]("fontSize",Yr(t,wo("0x13"))),e[wo("0x2")][wo("0x27")]("fontFamily",Yr(t,wo("0xd"))),e._descriptionFactory[wo("0x27")](wo("0xf"),Yr(t,wo("0x1d"))),e[wo("0x2")][wo("0x27")](wo("0x9"),Yr(t,"FORMAT_FONT_BACKGROUND")),this._registerLegacyDescription()}[wo("0x4")](){const t=this[wo("0x6")],e=t.locale;t[wo("0xc")].get(wo("0x8"))[wo("0x2")][wo("0x1e")]((t=>{const n=e.t;if(wo("0xe")!=t[wo("0x1b")])return;const{data:r}=t;if(null!=r){if(wo("0x28")==r[wo("0xb")]){const t=r[wo("0x3")][0][wo("0x23")];if(t){const r=n(this[wo("0x6")][wo("0xc")][wo("0xa")]("FontSize").normalizeSizeOptions(this[wo("0x6")][wo("0x25")].get(wo("0x7")))[wo("0x15")]((e=>e.model==t))[wo("0x26")])[wo("0x1")]();return{type:wo("0x10"),content:Yr(e,"*Set font size:* %0",r)}}return{type:wo("0x10"),content:Yr(e,wo("0x17"))}}if("fontFamily"==r[wo("0xb")]){const t=r[wo("0x3")][0][wo("0x23")];return t?{type:wo("0x10"),content:Yr(e,wo("0x18"),t)}:{type:"format",content:Yr(e,wo("0x12"))}}if(wo("0xf")==r[wo("0xb")]){const t=r[wo("0x3")][0][wo("0x23")];if(t){const r=(0,i.normalizeColorOptions)(this.editor.config[wo("0xa")](wo("0x20")))[wo("0x15")]((e=>e.model==t));let o=t,s="";return r&&(o=r.label,s=n(o)[wo("0x1")]()),{type:"format",content:Yr(e,wo("0x0"),s)[wo("0x19")](),color:{value:t,title:s||o}}}return{type:"format",content:Yr(e,wo("0x5"))}}if("fontBackgroundColor"==r[wo("0xb")]){const t=r[wo("0x3")][0][wo("0x23")];if(t){const r=(0,i.normalizeColorOptions)(this[wo("0x6")][wo("0x25")][wo("0xa")]("fontBackgroundColor.colors")).find((e=>e.model==t));let o=t,s="";return r&&(o=r[wo("0x24")],s=n(o).toLowerCase()),{type:wo("0x10"),content:Yr(e,wo("0x1f"),s)[wo("0x19")](),color:{value:t,title:s||o}}}return{type:wo("0x10"),content:Yr(e,"*Reset font background color*")}}}}))}}const Do=["fontColor.colors","_registerLegacyDescription","toUpperCase","*Set format to:* %0","fontBackgroundColor","toLowerCase","title","config","label","fontSize","join","push","commandName","formatBlock","find","length","FontSize","get","type","model","commandParams","*Remove all formatting*","format","fontSize.options","TrackChangesEditing","pasteFormat","commands","_enableDefaultAttributesIntegration","split","boolean","slice","copyFormat","locale","entries","normalizeSizeOptions","charAt","editor"];var Po,Bo;Po=Do,Bo=468,function(t){for(;--t;)Po.push(Po.shift())}(++Bo);const Uo=function(t,e){return Do[t-=0]};class jo extends t.Plugin{afterInit(){const t=this.editor,e=t.plugins[Uo("0x1e")]("TrackChangesEditing"),n=t[Uo("0x2")][Uo("0x1e")](Uo("0x7")),r=t[Uo("0x2")][Uo("0x1e")](Uo("0x1"));n&&r&&(e[Uo("0x3")](Uo("0x1")),e.enableCommand("copyFormat"),this[Uo("0xe")]())}_registerLegacyDescription(){const t=this[Uo("0xc")],e=t[Uo("0x8")];t.plugins.get(Uo("0x0"))._descriptionFactory.registerDescriptionCallback((n=>{if(Uo("0x1a")!=n[Uo("0x1f")]&&"formatInline"!=n[Uo("0x1f")])return;const{data:r}=n;if(r&&Uo("0x1")===r[Uo("0x19")]){const n=[],i=r[Uo("0x21")][0];for(const[e,r]of Object[Uo("0x9")](i))n[Uo("0x18")](Go(t,e,r));return n[Uo("0x1c")]?{type:Uo("0x23"),content:Yr(e,Uo("0x10"),n[Uo("0x17")](", "))}:{type:Uo("0x23"),content:Yr(e,Uo("0x22"))}}}))}}function Go(t,e,n){const r=t.locale.t,o=e[Uo("0x4")](/(?=[A-Z])/).join(" "),s=r(o[Uo("0xb")](0)[Uo("0xf")]()+o[Uo("0x6")](1))[Uo("0x12")]();if(Uo("0x5")==typeof n)return s;if("fontColor"===e||Uo("0x11")===e){const e=(0,i.normalizeColorOptions)(t[Uo("0x14")][Uo("0x1e")](Uo("0xd")))[Uo("0x1b")]((t=>t[Uo("0x20")]==n));return s+" ("+(e?r(e[Uo("0x15")]).toLowerCase():n)+")"}if(Uo("0x16")===e&&isNaN(parseFloat(n))){const e=t.plugins[Uo("0x1e")](Uo("0x1d"))[Uo("0xa")](t[Uo("0x14")][Uo("0x1e")](Uo("0x24")))[Uo("0x1b")]((t=>t[Uo("0x20")]==n));return s+" ("+(e?r(e[Uo("0x13")])[Uo("0x12")]():n)+")"}return s+" ("+n+")"}const Vo=["match","_getHeadingLevel","type","ELEMENT_HEADING","_enableDefaultAttributesIntegration","_headingOptions","plugins","find","get","editor","formatBlock","*Change to:* %0","ELEMENT_HEADING_CUSTOM","heading.options","title","commandParams","locale","value","paragraph","config","TrackChangesEditing","commandName","view","has","model","afterInit","registerDescriptionCallback","_descriptionFactory","format","heading"];var Ho,zo;Ho=Vo,zo=194,function(t){for(;--t;)Ho.push(Ho.shift())}(++zo);const Wo=function(t,e){return Vo[t-=0]};class Ko extends t.Plugin{[Wo("0xb")](){const t=this[Wo("0x19")];if(!t[Wo("0x16")][Wo("0x9")]("HeadingEditing"))return;this[Wo("0x15")]=t[Wo("0x5")][Wo("0x18")](Wo("0x1d"));const e=t[Wo("0x2")],n=t[Wo("0x16")].get(Wo("0x6"));n[Wo("0x14")](Wo("0xf"));for(const t of this[Wo("0x15")])Wo("0x4")!=t[Wo("0xa")]&&n._descriptionFactory.registerElementLabel(t.model,(n=>{const r=this[Wo("0x11")](t[Wo("0xa")]);return null!==r?Yr(e,"ELEMENT_HEADING",[n,r]):(i=n,o=t[Wo("0x0")],Yr(e,Wo("0x1c"),[i,o]));var i,o}));this._registerLegacyDescription()}_registerLegacyDescription(){const t=this.editor,e=t[Wo("0x2")];t[Wo("0x16")][Wo("0x18")](Wo("0x6"))[Wo("0xd")][Wo("0xc")]((t=>{if(Wo("0x1a")!=t[Wo("0x12")])return;const{data:n}=t;if(n&&Wo("0xf")==n[Wo("0x7")]){const t=n[Wo("0x1")][0][Wo("0x3")],s=this[Wo("0x11")](t);if(null!==s)return{type:Wo("0xe"),content:Yr(e,Wo("0x1b"),(1,o=s,Yr(e,Wo("0x13"),[1,o])))};const x=this[Wo("0x15")].find((e=>e[Wo("0xa")]===t)).title;return{type:Wo("0xe"),content:Yr(e,Wo("0x1b"),(r=1,i=x,Yr(e,Wo("0x1c"),[r,i])))}}var r,i,o}))}[Wo("0x11")](t){var e,n;const r=t[Wo("0x10")](/^heading(\d+)/);if(r)return r[1];const i=null===(e=this._headingOptions)||void 0===e?void 0:e[Wo("0x17")]((e=>e.model==t));if(i&&i.view){const t=i[Wo("0x8")],e=(null!==(n=t.name)&&void 0!==n?n:t)[Wo("0x10")](/^h(\d+)/);if(e)return e[1]}return null}}const qo=["type","color","get","plugins","highlight","*Remove highlight*","find","has","commandParams","_descriptionFactory","model","toLowerCase","commandName","HighlightEditing","afterInit","locale","registerAttributeLabel","_registerLegacyDescription","value","editor","TrackChangesEditing","title","formatInline","*Set highlight:* %0","registerDescriptionCallback","format","_enableDefaultAttributesIntegration"];var Xo,$o;Xo=qo,$o=313,function(t){for(;--t;)Xo.push(Xo.shift())}(++$o);const Zo=function(t,e){return qo[t-=0]};class Qo extends t.Plugin{[Zo("0x19")](){const t=this[Zo("0x3")];if(!t.plugins[Zo("0x12")](Zo("0x18")))return;const e=t.plugins[Zo("0xd")](Zo("0x4")),n=t[Zo("0x1a")];e[Zo("0xa")](Zo("0xf"),[Zo("0xf")]),e[Zo("0x14")][Zo("0x0")]("highlight",Yr(n,"FORMAT_HIGHLIGHT")),this[Zo("0x1")]()}_registerLegacyDescription(){const t=this[Zo("0x3")],e=t[Zo("0x1a")];t[Zo("0xe")].get(Zo("0x4"))._descriptionFactory[Zo("0x8")]((n=>{if(Zo("0x6")!=n[Zo("0xb")])return;const{data:r}=n;if(r&&Zo("0xf")==r[Zo("0x17")]){const n=e.t,i=r[Zo("0x13")][0][Zo("0x2")];if(i){const r=t.config[Zo("0xd")]("highlight.options")[Zo("0x11")]((t=>t[Zo("0x15")]==i)),o=n(r[Zo("0x5")])[Zo("0x16")]();return{type:Zo("0x9"),content:Yr(e,Zo("0x7"),o),color:{value:r[Zo("0xc")],title:r[Zo("0x5")]}}}return{type:Zo("0x9"),content:Yr(e,Zo("0x10"),Yr(e,"FORMAT_HIGHLIGHT"))}}}))}}const Yo=["createContainerElement","afterInit","get","ELEMENT_HORIZONTAL_LINE","horizontalLine","addClass","ck-horizontal-line","TrackChangesEditing","HorizontalLineEditing","registerElementLabel","elementToStructure","has","_descriptionFactory","conversion","plugins","enableCommand","createPositionAt","div","high","dataDowncast","insert","editor"];var Jo,ts;Jo=Yo,ts=272,function(t){for(;--t;)Jo.push(Jo.shift())}(++ts);const es=function(t,e){return Yo[t-=0]};class ns extends t.Plugin{[es("0xf")](){const t=this[es("0xd")];if(!t.plugins[es("0x3")](es("0x0")))return;t.plugins.get(es("0x15"))[es("0x7")](es("0x12"));const e=t[es("0x6")][es("0x10")]("TrackChangesEditing"),n=t.locale;e[es("0x4")][es("0x1")](es("0x12"),(t=>Yr(n,es("0x11"),t))),t[es("0x5")].for(es("0xb"))[es("0x2")]({model:es("0x12"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const r=e[es("0xe")](es("0x9")),i=e.createEmptyElement("hr");return e[es("0x13")](es("0x14"),r),e[es("0xc")](e[es("0x8")](r,0),i),r},converterPriority:es("0xa")})}}const rs=["locale","rawHtml","afterInit","attribute","type","element","_descriptionFactory","plugins","editor","registerElementLabel","_enableDefaultAttributesIntegration","htmlEmbed","commandName","get","registerDescriptionCallback","ELEMENT_HTML_EMBED","format","nodeAfter","_registerLegacyDescription","*Change %0 content*","HtmlEmbed","start","TrackChangesEditing","value"];var is,os;is=rs,os=186,function(t){for(;--t;)is.push(is.shift())}(++os);const ss=function(t,e){return rs[t-=0]};class xs extends t.Plugin{[ss("0x8")](){const t=this[ss("0xe")];if(!t.plugins.has(ss("0x2")))return;const e=t.plugins[ss("0x13")](ss("0x4")),n=t[ss("0x6")];e[ss("0xc")][ss("0xf")]("rawHtml",(t=>Yr(n,ss("0x15"),t))),e[ss("0x10")]("htmlEmbed",[],[ss("0x5")]),e[ss("0xc")][ss("0x14")]((t=>{if(ss("0x9")!=t.type)return;const{data:e}=t;if(e&&ss("0x5")==e.key&&t.getFirstRange()[ss("0x3")][ss("0x17")].is(ss("0xb"),ss("0x7"))){const t=Yr(n,"ELEMENT_HTML_EMBED");return{type:ss("0x16"),content:Yr(n,ss("0x1"),t)}}})),this[ss("0x0")]()}[ss("0x0")](){const t=this.editor,e=t[ss("0x6")];t[ss("0xd")][ss("0x13")]("TrackChangesEditing")[ss("0xc")][ss("0x14")]((t=>{if("formatBlock"!=t[ss("0xa")])return;const{data:n}=t;if(n&&ss("0x11")==n[ss("0x12")]){const t=Yr(e,ss("0x15"));return{type:ss("0x16"),content:Yr(e,ss("0x1"),t)}}}))}}const as=["editor","getContainedElement","accept","selection","resizedWidth","insertion","imageCaption","ImageTextAlternativeEditing","Block image to inline image","end","convertBlockImageToInline","caption","createRange","discard","formatBlock","imageTypeBlock","registerCustomCallback","imageTypeInline","isCollapsed","getFirstRange","locale","ImageEditing","isOwn","filter","deletion","imageStylePreApply","nodeAfter","uploadImage","resizeImage","change","previous","alt","createRangeOn","ELEMENT_IMAGE","*Remove image text alternative*","markInsertion","get","getClosestSelectedImageElement","insertImage","_registerLegacyDescription","*Set image text alternative:* %0","ImageCaptionUtils","element","imageInline","enableCommand","markBlockFormat","isBlockImage","model","_enableDefaultAttributesIntegration","fromPosition","registerElementLabel","commandParams","getSuggestionCallback","commandName","forceDefaultExecution","newValue","find","Inline image to block image","getCaptionFromImageModelElement","ELEMENT_CAPTION","plugins","convertInlineImageToBlock","has","ImageBlockEditing","chain","subType","getNearestSelectionRange","format","addObject","findIndex","key","type","imageTextAlternative","length","attribute","ImageUtils","_descriptionFactory","document","isEqual","join","isBefore","ELEMENT_INLINE_IMAGE","FORMAT_IMAGE_SIZE","schema","TrackChangesEditing","_suggestionFactory","registerDescriptionCallback","width","markDeletion","*Set image width:* %0","toggleImageCaption","start","ImageCaptionEditing","toPrevious"];var cs,ls;cs=as,ls=365,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{afterInit(){const t=this[us("0xb")];if(!t[us("0x47")][us("0x49")](us("0x20")))return;const e=t[us("0x47")][us("0x2f")](us("0x1")),n=t[us("0x47")][us("0x2f")](us("0x56")),r=t.locale;e[us("0x37")](us("0x31")),e[us("0x57")][us("0x3d")]("imageBlock",(t=>Yr(r,us("0x2c"),t))),e[us("0x57")][us("0x3d")](us("0x36"),(t=>Yr(r,us("0x5c"),t))),e[us("0x57")].registerElementLabel(us("0x16"),(()=>Yr(r,us("0x46")))),t.plugins[us("0x49")]("ImageUploadEditing")&&e[us("0x37")](us("0x26")),t[us("0x47")][us("0x49")](us("0x4a"))&&t[us("0x47")][us("0x49")]("ImageInlineEditing")&&(e[us("0x37")](us("0x1c"),((r,i)=>{const o=n[us("0x30")](t.model[us("0x58")][us("0xe")]);t[us("0x3a")][us("0x28")]((()=>{e[us("0x38")](o,{commandName:us("0x1c"),commandParams:[i]},[],us("0x15"))}))})),e[us("0x37")](us("0x1a"),((r,i)=>{t[us("0x3a")][us("0x28")]((o=>{let x=n[us("0x30")](t[us("0x3a")].document[us("0xe")]),a=o[us("0x2b")](x);const c=s.LivePosition.fromPosition(a.start,us("0xa")),l=s.LivePosition[us("0x3c")](a[us("0x14")],"toNext");e[us("0x41")]((()=>r(i))),x=n[us("0x30")](t[us("0x3a")].document[us("0xe")]),a=o[us("0x2b")](x);const u=o[us("0x17")](c,l);c.detach(),l.detach(),e[us("0x38")](x,{commandName:"imageTypeInline",commandParams:[i]},[],us("0x48")),u.start[us("0x5b")](a[us("0x8")])&&e.markInsertion(o.createRange(u[us("0x8")],a[us("0x8")]),us("0x48")),a[us("0x14")][us("0x5b")](u[us("0x14")])&&e[us("0x2e")](o[us("0x17")](a[us("0x14")],u[us("0x14")]),us("0x48"))}))})),e[us("0x2")].registerCustomCallback(us("0x19"),"convertInlineImageToBlock",us("0x5a"),(()=>!1)),e[us("0x2")].registerCustomCallback(us("0x19"),"convertInlineImageToBlock",us("0xd"),(()=>!1)),e[us("0x2")][us("0x1b")](us("0x19"),"convertInlineImageToBlock",us("0x18"),e[us("0x2")][us("0x3f")]("formatBlock","",us("0xd"))),e[us("0x2")][us("0x1b")](us("0x10"),"convertInlineImageToBlock",us("0x5a"),(()=>!1)),e._suggestionFactory.registerCustomCallback("insertion",us("0x48"),us("0x18"),(([n])=>{const r=e._suggestionFactory[us("0x3f")](us("0x10"),"",us("0x18"));let i=n[us("0x8")],o=n[us("0x14")];const s=t[us("0x3a")][us("0x0")][us("0x4d")](i,"backward"),x=t.model[us("0x0")][us("0x4d")](o,"forward");s[us("0x1d")]&&(i=s[us("0x8")]),x[us("0x1d")]&&(o=x[us("0x14")]),r([t[us("0x3a")][us("0x17")](i,o)])})),e[us("0x2")][us("0x1b")](us("0x19"),us("0x48"),us("0x4b"),x),e[us("0x2")][us("0x1b")]("insertion","convertInlineImageToBlock","chain",x)),t[us("0x47")][us("0x49")](us("0x9"))&&(e.enableCommand(us("0x7"),((r,i)=>{const o=t[us("0x47")][us("0x2f")](us("0x34"));let s=n[us("0x30")](t[us("0x3a")][us("0x58")][us("0xe")]),x=o[us("0x45")](s);t[us("0x3a")][us("0x28")]((()=>{if(x)return void e[us("0x5")](t[us("0x3a")].createRangeOn(x));const a=n[us("0x39")](s);r(i),s=n[us("0x30")](t[us("0x3a")][us("0x58")][us("0xe")]),x=o[us("0x45")](s),e[us("0x2e")](t[us("0x3a")][us("0x2b")](x),a?null:us("0x11"))}))})),e[us("0x2")][us("0x1b")](us("0x10"),us("0x11"),"chain",x));const i=[{type:"formatBlock",subType:us("0x24")},{type:us("0x10"),subType:us("0x11")},{type:us("0x19"),subType:us("0x48")},{type:us("0x10"),subType:us("0x48")}];function o(t,r){const o=i[us("0x50")]((({type:e,subType:n})=>t.type==e&&t.subType==n)),s=i[us("0x50")]((({type:t,subType:e})=>r[us("0x52")]==t&&r[us("0x4c")]==e));if(o<0||s<0)return!1;const x=t[us("0x1e")](),a=r[us("0x1e")]();if((0==o||1==o)&&2==s&&x.isIntersecting(a))return!0;if(2==o&&3==s){const t=e._findSuggestions(x,us("0x10"))[us("0x22")]((({suggestion:t,meta:e})=>e[us("0x21")]&&us("0x48")==t[us("0x4c")]));if(t[us("0x54")]>1&&a.end.isEqual(x[us("0x8")]))return!0;if(1==t.length&&(x[us("0x8")][us("0x59")](a[us("0x14")])||x[us("0x14")].isEqual(a[us("0x8")])))return!0}if(3==o&&3==s&&x.start[us("0x5b")](a.start)){const t=x[us("0x14")][us("0x25")],e=a[us("0x8")].nodeBefore;return n[us("0x39")](t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t[us("0x47")][us("0x49")]("ImageResize")&&(e._enableDefaultAttributesIntegration("resizeImage",[],["resizedWidth"]),e[us("0x57")].registerAttributeLabel(us("0xf"),Yr(r,us("0x5d")))),t[us("0x47")][us("0x49")](us("0x12"))&&e[us("0x3b")]("imageTextAlternative",[],["alt"]),e[us("0x57")].registerDescriptionCallback((t=>{if(i[us("0x43")]((({type:e,subType:n})=>t.type==e&&t[us("0x4c")]==n)))return t[us("0x29")]?{}:void 0})),e[us("0x57")].registerDescriptionCallback((t=>{if("insertion"==t.type||us("0x23")==t[us("0x52")]){const e=t[us("0xc")]();if(e&&e.is(us("0x35"),"caption"))return{type:"insertion"==t[us("0x52")]?us("0x4f"):"removeObject",element:e,quantity:1}}})),e[us("0x57")][us("0x3")]((t=>us("0x19")==t[us("0x52")]&&us("0x48")==t[us("0x4c")]?{type:us("0x4e"),content:us("0x44")}:us("0x19")==t[us("0x52")]&&us("0x15")==t[us("0x4c")]?{type:us("0x4e"),content:us("0x13")}:void 0)),e[us("0x57")][us("0x3")]((t=>{if(us("0x55")!=t[us("0x52")])return;const{data:e}=t;if(!e||us("0x2a")!=e[us("0x51")])return;const n=e[us("0x42")];return n?{type:us("0x4e"),content:Yr(r,us("0x33"),'"'+n+'"')}:{type:us("0x4e"),content:Yr(r,us("0x2d"))}})),this[us("0x32")]()}_registerLegacyDescription(){const t=this[us("0xb")],e=t[us("0x1f")];t[us("0x47")].get(us("0x1"))._descriptionFactory[us("0x3")]((t=>{if(us("0x19")!=t.type&&"formatInline"!=t[us("0x52")])return;const{data:n}=t;if(n){if(us("0x53")==n[us("0x40")]){const t=n[us("0x3e")][0][us("0x42")];return t?{type:"format",content:Yr(e,us("0x33"),'"'+t+'"')}:{type:"format",content:Yr(e,us("0x2d"))}}if(us("0x27")==n[us("0x40")]){const t=n[us("0x3e")][0][us("0x4")];return t?{type:us("0x4e"),content:Yr(e,us("0x6"),t)}:{type:"format",content:Yr(e,"*Reset image width*")}}}}))}}const gs=["key","plugins","commandName","src","registerDescriptionCallback","_handleLegacySuggestions","TrackChangesEditing","_registerLegacyDescription","get","accept","_descriptionFactory","formatInline","has","replaceImageSource","format","*Format:* replace image URL","_suggestionFactory","type","newValue","getSuggestionCallback","*Replace image URL*","oldValue","formatBlock","attribute","locale","afterInit","discard","editor"];var fs,hs;fs=gs,hs=141,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class ps extends t.Plugin{[ms("0x18")](){if(!this[ms("0x1a")][ms("0x0")][ms("0xb")]("ImageEditing"))return;const t=this.editor[ms("0x17")],e=this[ms("0x1a")][ms("0x0")][ms("0x7")](ms("0x5"));e._enableDefaultAttributesIntegration(ms("0xc"),[],[ms("0x2")]),e[ms("0x9")].registerDescriptionCallback((e=>{if(ms("0x16")!=e.type)return;const{data:n}=e;return n&&ms("0x2")==n[ms("0x1b")]?n[ms("0x11")]&&n[ms("0x14")]?{type:ms("0xd"),content:Yr(t,ms("0x13"))}:{type:ms("0xd"),content:""}:void 0})),this[ms("0x4")]()}[ms("0x4")](){const t=this[ms("0x1a")].plugins[ms("0x7")](ms("0x5"));t[ms("0xf")].registerCustomCallback(ms("0x15"),ms("0xc"),ms("0x8"),t[ms("0xf")][ms("0x12")](ms("0x15"),null,ms("0x19"))),t[ms("0xf")].registerCustomCallback(ms("0x15"),ms("0xc"),ms("0x19"),t[ms("0xf")].getSuggestionCallback(ms("0x15"),null,ms("0x8"))),this[ms("0x6")]()}[ms("0x6")](){const t=this[ms("0x1a")],e=t.locale;t[ms("0x0")][ms("0x7")](ms("0x5"))[ms("0x9")][ms("0x3")]((t=>{if(ms("0x15")!=t[ms("0x10")]&&ms("0xa")!=t[ms("0x10")])return;const{data:n}=t;return n&&ms("0xc")==n[ms("0x1")]?{type:ms("0xd"),content:Yr(e,ms("0xe"))}:void 0}))}}const bs=["getFirstRange","accept","formatBlock","registerDescriptionCallback","chain","imageCaption","_registerLegacyDescription","head","model","_splitMarkerName","has","createRangeOn","locale","getContainedElement","get","filter","*Format:* %0","getSuggestionCallback","getClosestSelectedImageElement","forEach","_suggestionFactory","value","end","format","isEqual","enableCommand","isInlineImage","subType","setImageNaturalSizeAttributes","isBlockImage","ImageStyleEditing","shouldConvertImageType","commands","formatInline","insertion","discardSuggestion","document","imageStyle","plugins","title","ImageUtils","suggestion","TrackChangesEditing","selection","afterInit","start","isBefore","imageStylePostApply","newRange","join","differ","length","change","findIndex","convertInlineImageToBlock","markBlockFormat","imageStylePreApply","type","commandName","imageTypeInline","commandParams","next","editor","imageTypeBlock","refresh","getSuggestion","nodeAfter","registerCustomCallback"];var Es,_s;Es=bs,_s=409,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return bs[t-=0]};class ys extends t.Plugin{[Ts("0x2b")](){const t=this.editor;if(!t[Ts("0x25")][Ts("0x9")](Ts("0x1d")))return;const n=t[Ts("0x25")][Ts("0xd")](Ts("0x29")),r=t[Ts("0x25")][Ts("0xd")](Ts("0x27")),i={};n[Ts("0x18")]("imageStyle",((i,o)=>{const s=t[Ts("0x25")].get("Users").me,x=t[Ts("0x1f")][Ts("0xd")](Ts("0x24"));let a=r[Ts("0x11")](t[Ts("0x7")][Ts("0x23")][Ts("0x2a")]),c=t[Ts("0x7")][Ts("0xa")](a),l=x[Ts("0x14")];if(l==o[Ts("0x14")])return;const u={commandName:"imageStyle",commandParams:[o],formatGroupId:(0,e.uid)()};t[Ts("0x7")][Ts("0x33")]((()=>{if(n.getSuggestions()[Ts("0xe")]((t=>t.isInContent&&s==t.author&&(Ts("0x1")==t[Ts("0x38")]||"formatInline"==t.type)&&(Ts("0x37")==t[Ts("0x1a")]||Ts("0x2e")==t[Ts("0x1a")])&&t[Ts("0x43")]()[Ts("0x17")](c)))[Ts("0x12")]((t=>n[Ts("0x22")](t[Ts("0x6")]))),a=r[Ts("0x11")](t[Ts("0x7")][Ts("0x23")][Ts("0x2a")]),c=t[Ts("0x7")][Ts("0xa")](a),x[Ts("0x3f")](),t[Ts("0x1f")][Ts("0xd")](Ts("0x3a")).refresh(),t[Ts("0x1f")][Ts("0xd")](Ts("0x3e"))[Ts("0x3f")](),l=x[Ts("0x14")],l!=o[Ts("0x14")])return r[Ts("0x19")](a)&&x[Ts("0x1e")](o[Ts("0x14")],a)?(i({...o,setImageSizes:!1}),a=r[Ts("0x11")](t.model[Ts("0x23")][Ts("0x2a")]),void n[Ts("0x36")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],Ts("0x37"))):void(r[Ts("0x1c")](a)?n[Ts("0x36")](a,u,[],Ts("0x2e")):n.markInlineFormat(c,u,Ts("0x2e")))}))}));for(const e of t[Ts("0x25")][Ts("0xd")]("ImageStyleEditing").normalizedStyles)i[e.name]=e[Ts("0x26")].toLowerCase();n[Ts("0x13")][Ts("0x42")]("formatBlock","imageStylePreApply",Ts("0x30"),(()=>!1)),n._suggestionFactory[Ts("0x42")](Ts("0x1"),Ts("0x2e"),"join",(()=>!1)),n[Ts("0x13")][Ts("0x42")](Ts("0x20"),Ts("0x2e"),Ts("0x30"),(()=>!1)),n[Ts("0x13")][Ts("0x42")]("formatBlock",Ts("0x37"),Ts("0x0"),(([t])=>{r[Ts("0x1b")](t.getContainedElement())})),n[Ts("0x13")][Ts("0x42")](Ts("0x1"),Ts("0x37"),"discard",((t,e)=>{n[Ts("0x13")][Ts("0x10")](Ts("0x1"),"",Ts("0x0"))(t,{commandName:e[Ts("0x39")],commandParams:e.commandReversedParams})})),n[Ts("0x13")].registerCustomCallback(Ts("0x1"),Ts("0x37"),Ts("0x3"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:Ts("0x1"),subType:Ts("0x37")},{type:Ts("0x21"),subType:Ts("0x4")},{type:"formatBlock",subType:Ts("0x35")},{type:Ts("0x21"),subType:Ts("0x35")}];function s(t,e){const i=o[Ts("0x34")]((({type:e,subType:n})=>t.type==e&&t[Ts("0x1a")]==n)),s=o.findIndex((({type:t,subType:n})=>e[Ts("0x38")]==t&&e.subType==n));if(i<0||s<0)return!1;const x=t[Ts("0x43")](),a=e[Ts("0x43")]();if((0==i||1==i)&&2==s&&x.isIntersecting(a))return!0;if(2==i&&3==s){const t=n._findSuggestions(x,Ts("0x21"))[Ts("0xe")]((({suggestion:t,meta:e})=>e.isOwn&&Ts("0x35")==t.subType));if(t.length>1&&a.end[Ts("0x17")](x.start))return!0;if(1==t[Ts("0x32")]&&(x[Ts("0x2c")][Ts("0x17")](a.end)||x[Ts("0x15")][Ts("0x17")](a[Ts("0x2c")])))return!0}if(3==i&&3==s&&x.start[Ts("0x2d")](a.start)){const t=x[Ts("0x15")][Ts("0x41")],e=a.start.nodeBefore;return r[Ts("0x1c")](t)&&t===e}return!1}t.model[Ts("0x23")].registerPostFixer((()=>{let e=!1;const i=Array.from(t[Ts("0x7")].document[Ts("0x31")].getChangedMarkers());for(const{name:t,data:o}of i){const{group:i,type:s,subType:x,id:a}=n[Ts("0x8")](t);if(Ts("0x28")==i&&n.hasSuggestion(a)){if(Ts("0x1")==s&&(Ts("0x37")==x||Ts("0x2e")==x)){const t=n[Ts("0x40")](a);if(o[Ts("0x2f")]){const i=t[Ts("0x43")]()[Ts("0xc")]();if(r.isBlockImage(i))continue;n[Ts("0x22")](t),e=!0}}if("insertion"==s&&"imageCaption"==x&&!o[Ts("0x2f")]){const t=n[Ts("0x40")](a);t[Ts("0x3c")]&&t.next.isInContent&&(n[Ts("0x22")](t[Ts("0x3c")]),e=!0)}}}return e})),this[Ts("0x5")](i)}[Ts("0x5")](t){const e=this[Ts("0x3d")],n=e[Ts("0xb")];e.plugins[Ts("0xd")](Ts("0x29"))._descriptionFactory[Ts("0x2")]((e=>{if(Ts("0x1")!=e.type&&Ts("0x20")!=e[Ts("0x38")])return;const{data:r}=e;if(!r||Ts("0x24")!=r.commandName)return;const i=r[Ts("0x3b")][0][Ts("0x14")];return o="side"===i?Yr(n,"FORMAT_SIDE_IMAGE"):t[i]||i,{type:Ts("0x16"),content:Yr(n,Ts("0xf"),o)};var o}))}}const Cs=["forEach","listenTo","_handleImportedData","importWord","trackChanges","get","_setSuggestionData","dataInsert","TrackChangesEditing","editor","plugins","lowest","bind","track_changes","value","high","collaboration_features","commands","_trackChangesExecuted","execute","_trackChangesValueDuringImport"];var As,ks;As=Cs,ks=473,function(t){for(;--t;)As.push(As.shift())}(++ks);const Is=function(t,e){return Cs[t-=0]};class Ss extends t.Plugin{constructor(t){super(t),this[Is("0x9")]=!1,this[Is("0x7")]=!1}afterInit(){const t=this[Is("0x13")],e=t.commands.get("importWord"),n=t[Is("0x6")][Is("0xf")](Is("0xe"));e&&(e.on(Is("0x8"),((t,[,e])=>{this[Is("0x9")]=n[Is("0x3")],e[Is("0x5")][Is("0x2")]=!this._trackChangesValueDuringImport}),{priority:Is("0x4")}),this.listenTo(e,Is("0x11"),this[Is("0xc")][Is("0x1")](this)),this[Is("0xb")](e,Is("0x11"),(()=>{this[Is("0x7")]&&(n.execute(),this[Is("0x7")]=!1)}),{priority:Is("0x0")}),t[Is("0x14")][Is("0xf")](Is("0x12")).enableCommand(Is("0xd")))}[Is("0xc")](t,e){const{suggestions:n}=e,r=this[Is("0x13")][Is("0x6")][Is("0xf")](Is("0xe")),i=r[Is("0x3")];this[Is("0x9")]!==i&&(r[Is("0x8")](),this[Is("0x7")]=!0),n&&n[Is("0xa")]((({id:t,type:e,author:n,created_at:r})=>{const i={id:t,type:e,authorId:this[Is("0x13")].plugins.get("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:"importWord"}}};this.editor[Is("0x14")][Is("0xf")]("TrackChangesEditing")[Is("0x10")](i)}))}}const Rs=["registerDescriptionCallback","indent","outdentBlock","registerAttributeLabel","get","TrackChangesEditing","getItemLabel","*Indent:* %0","has","indentBlock","type","_descriptionFactory","IndentBlock","locale","format","enableCommand","formatBlock","IndentEditing","commandName","FORMAT_INDENT","outdent","getItems","_registerBlockAttribute","afterInit","plugins","_registerLegacyDescription","editor"];var vs,Ns;vs=Rs,Ns=378,function(t){for(;--t;)vs.push(vs.shift())}(++Ns);const Ls=function(t,e){return Rs[t-=0]};class Ms extends t.Plugin{[Ls("0x17")](){const t=this[Ls("0x1a")],e=t[Ls("0x18")].get(Ls("0x5"));if(t[Ls("0x18")][Ls("0x8")](Ls("0x11"))&&(e.enableCommand(Ls("0x1")),e[Ls("0xf")](Ls("0x14"))),t.plugins.has(Ls("0xc")))for(const t of[Ls("0x9"),Ls("0x2")])e._enableDefaultAttributesIntegration(t);const n=t[Ls("0xd")];e[Ls("0x16")]("blockIndent"),e[Ls("0xb")][Ls("0x3")]("blockIndent",Yr(n,Ls("0x13"))),this[Ls("0x19")]()}_registerLegacyDescription(){const t=this[Ls("0x1a")],e=t[Ls("0xd")],n=t[Ls("0x18")][Ls("0x4")]("TrackChangesEditing");n[Ls("0xb")][Ls("0x0")]((t=>{if(Ls("0x10")!=t[Ls("0xa")])return;const{data:r}=t;if(!r)return;if("indentBlock"!=r[Ls("0x12")]&&Ls("0x2")!=r[Ls("0x12")])return;const i=t[Ls("0x15")]()[0],o=n._descriptionFactory[Ls("0x6")](i);return Ls("0x9")==r[Ls("0x12")]?{type:Ls("0xe"),content:Yr(e,Ls("0x7"),o)}:Ls("0x2")==r[Ls("0x12")]?{type:Ls("0xe"),content:Yr(e,"*Outdent:* %0",o)}:void 0}))}}var ws,Os,Fs=["input","plugins","TrackChangesEditing","init","enableCommand","editor","requires"];ws=Fs,Os=426,function(t){for(;--t;)ws.push(ws.shift())}(++Os);var Ds=function(t,e){return Fs[t-=0]};class Ps extends t.Plugin{static get[Ds("0x0")](){return[qi.Input]}[Ds("0x4")](){this[Ds("0x6")][Ds("0x2")].get(Ds("0x3"))[Ds("0x5")](Ds("0x1"))}}const Bs=["_registerLegacyDescription","has","locale","unlink","attribute","map","plugins","_descriptionFactory","link (","label","format","toLowerCase","_enableDefaultAttributesIntegration","manualDecorators","TrackChangesEditing","get","*Remove link*","linkHref","type","editor","link","*Set link:* %0","commandName","registerDescriptionCallback","afterInit"];var Us,js;Us=Bs,js=415,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Bs[t-=0]};class Vs extends t.Plugin{[Gs("0x9")](){const t=this[Gs("0x4")];if(!t[Gs("0x10")][Gs("0xb")]("LinkEditing"))return;const e=t.plugins[Gs("0x0")](Gs("0x18")),n=t.commands[Gs("0x0")]("link");e[Gs("0x16")](Gs("0x5"),[Gs("0x2"),...n[Gs("0x17")][Gs("0xf")]((t=>t.id))]),e._enableDefaultAttributesIntegration("unlink");for(const t of n[Gs("0x17")])e[Gs("0x11")].registerAttributeLabel(t.id,Gs("0x12")+t[Gs("0x13")][Gs("0x15")]()+")");e[Gs("0x11")].registerDescriptionCallback((e=>{if(Gs("0xe")!=e[Gs("0x3")])return;const{data:n}=e;if(!n||Gs("0x2")!=n.key)return;const r=n.newValue,i=t[Gs("0xc")];return{type:Gs("0x14"),content:null==r?Yr(i,Gs("0x1")):Yr(i,Gs("0x6"),'"'+r+'"')}})),this[Gs("0xa")]()}[Gs("0xa")](){const t=this[Gs("0x4")],e=t.locale;t[Gs("0x10")][Gs("0x0")](Gs("0x18"))[Gs("0x11")][Gs("0x8")]((t=>{if("formatInline"!=t[Gs("0x3")])return;const{data:n}=t;if(n){if("link"==n.commandName){const t=n.commandParams[0];return{type:Gs("0x14"),content:Yr(e,"*Set link:* %0",'"'+t+'"')}}return Gs("0xd")==n[Gs("0x7")]?{type:"format",content:Yr(e,Gs("0x1"))}:void 0}}))}}const Hs=["previousSibling","LegacyTodoListEditing","length","registerDescriptionCallback","commands","execute","slice","name","listType","TrackChangesEditing","locale","bulletedList","getAttribute","numberedList","editor","checkTodoList","numbered","indentList","format","listIndent","add","end","change","*Uncheck item*","_descriptionFactory","todoList","ELEMENT_TODO_LIST","plugins","get","selection","formatInline","blockName","schema","createPositionAt","filter","*Change to:* %0","*Outdent:* %0","element","markBlockFormat","isObject","*Indent:* %0","todo","from","outdentList","nextSibling","afterInit","ELEMENT_NUMBERED_LIST","document","paragraph","forceValue","getSelectedBlocks","bulleted","ELEMENT_LIST_ITEM","listItem","findIndex","commandName","model","has","value","createRange","enableCommand","commandParams","type"];var zs,Ws;zs=Hs,Ws=121,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Ks=function(t,e){return Hs[t-=0]};class qs extends t.Plugin{[Ks("0x32")](){const t=this[Ks("0x13")],e=t[Ks("0xf")];if(!t[Ks("0x20")][Ks("0x3e")]("LegacyListEditing"))return;const n=t.plugins[Ks("0x21")](Ks("0xe")),r=t[Ks("0x20")][Ks("0x3e")](Ks("0x6"));function i(e){return()=>{const r=t[Ks("0x3d")][Ks("0x34")][Ks("0x22")],i=t[Ks("0x9")][Ks("0x21")](e);if(i[Ks("0x0")])return void t[Ks("0xa")](Ks("0x35"),{});const o=e[Ks("0xb")](0,-4),s=function(t,e,n){let r=Array[Ks("0x2f")](t).filter((t=>{return e=t,(r=n).checkChild(e.parent,Ks("0x3a"))&&!r[Ks("0x2c")](e);var e,r}));r=r[Ks("0x27")]((t=>!t.is(Ks("0x2a"),"listItem")||t[Ks("0x11")](Ks("0xd"))!=e));const i=new Set;for(const t of r)t.is(Ks("0x2a"),Ks("0x3a"))?i[Ks("0x19")](Xs(t)):i[Ks("0x19")](t);return Array[Ks("0x2f")](i)}(r[Ks("0x37")](),o,t[Ks("0x3d")][Ks("0x25")]);t.model[Ks("0x1b")]((()=>{for(const t of s)n[Ks("0x2b")](t,{commandName:e,commandParams:[{forceValue:!i[Ks("0x0")]}],formatGroupId:Ks("0x24")},$s(t))}))}}function o(e){return()=>{const r=function(t){let e=Array.from(t);const n=e[Ks("0x3b")]((t=>Ks("0x3a")!=t[Ks("0xc")]));return n>-1&&(e=e[Ks("0xb")](0,n)),e}(t.model[Ks("0x34")][Ks("0x22")][Ks("0x37")]()),i=t[Ks("0x3d")][Ks("0x1")](t.model[Ks("0x26")](r[0],"before"),t[Ks("0x3d")][Ks("0x26")](r[r[Ks("0x7")]-1],Ks("0x1a")));t[Ks("0x3d")][Ks("0x1b")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:Ks("0x18")},function(t){const e=new Set;for(const n of t){let t=n[Ks("0x31")];for(;t&&t[Ks("0x11")](Ks("0x18"))>n[Ks("0x11")](Ks("0x18"));)e[Ks("0x19")](t),t=t[Ks("0x31")]}return Array[Ks("0x2f")](e)}(r))}))}}n[Ks("0x2")]("numberedList",i("numberedList")),n.enableCommand(Ks("0x10"),i(Ks("0x10"))),r&&n[Ks("0x2")](Ks("0x1e"),i("todoList")),n[Ks("0x2")](Ks("0x16"),o(Ks("0x16"))),n[Ks("0x2")](Ks("0x30"),o(Ks("0x30"))),r&&n[Ks("0x2")]("checkTodoList",(()=>{const e=t[Ks("0x9")][Ks("0x21")](Ks("0x14")),r=Array[Ks("0x2f")](e._selectedElements);r[Ks("0x27")]((t=>t[Ks("0x11")]("todoListChecked")!=e[Ks("0x0")])),t.model[Ks("0x1b")]((()=>{for(const t of r)n[Ks("0x2b")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[Ks("0x0")]}]})}))})),n[Ks("0x1d")].registerElementLabel(Ks("0x3a"),(t=>Yr(e,Ks("0x39"),t))),n._descriptionFactory[Ks("0x8")]((t=>{if("formatBlock"!=t[Ks("0x4")]&&Ks("0x23")!=t[Ks("0x4")])return;const{data:n}=t;if(n){if(Ks("0x12")==n[Ks("0x3c")]||Ks("0x10")==n[Ks("0x3c")]||Ks("0x1e")==n[Ks("0x3c")])switch(n[Ks("0x3c")].replace("List","")){case Ks("0x38"):return r(Yr(e,"ELEMENT_BULLETED_LIST"));case Ks("0x15"):return r(Yr(e,Ks("0x33")));case Ks("0x2e"):return r(Yr(e,Ks("0x1f")))}if("indentList"==n[Ks("0x3c")])return{type:"format",content:Yr(e,Ks("0x2d"),Yr(e,Ks("0x39")))};if(Ks("0x30")==n[Ks("0x3c")])return{type:Ks("0x17"),content:Yr(e,Ks("0x29"),Yr(e,Ks("0x39")))};if(Ks("0x14")==n[Ks("0x3c")])return n[Ks("0x3")][0][Ks("0x36")]?{type:"format",content:Yr(e,"*Check item*")}:{type:"format",content:Yr(e,Ks("0x1c"))}}function r(t){return{type:Ks("0x17"),content:Yr(e,Ks("0x28"),t)}}}))}}function Xs(t){const e=t[Ks("0x11")](Ks("0x18"));if(0==e)return t;let n=t;for(;t[Ks("0x5")]&&t.previousSibling.is(Ks("0x2a"),Ks("0x3a"));){const r=t.previousSibling[Ks("0x11")](Ks("0x18"));if(r==e)n=t[Ks("0x5")];else if(r<e)break;t=t[Ks("0x5")]}return n}function $s(t){const e=[];if(t.is("element","listItem")&&t[Ks("0x11")]("listIndent")>0){let n=t[Ks("0x31")];for(;n&&Ks("0x3a")==n.name&&n.getAttribute(Ks("0x18"))==t[Ks("0x11")](Ks("0x18"));)e.push(n),n=n[Ks("0x31")]}return e}const Zs=["createPositionAt","listStyle","TrackChangesEditing","locale","listStart","LegacyListUtils","forward","*Format:* set order to reversed","reversed","getSelectedBlocks","handleDescriptions","*Change to:* %0","enableCommand","listItem","listType","editor","list.properties","model","*Format:* set order to regular","_LIST_","document","length","getFirstPosition","startIndex","handleListStyleCommand","_descriptionFactory","toUpperCase","unshift","plugins","backward","from","type","getLastPosition","selection","config","replace","parent","getAttribute","get","bind","format","formatInline","markMultiRangeBlockFormat","handleListStartCommand","listReversed","getListTypeFromListStyleType","change","_getSuggestionBlocks","*Format:* set start index to %0","getSiblingNodes","before","flat","_getTranslationKeyForListStyle","element","map","commandParams","ELEMENT_","handleListReversedCommand","afterInit","commandName","styles","numbered"];var Qs,Ys;Qs=Zs,Ys=105,function(t){for(;--t;)Qs.push(Qs.shift())}(++Ys);const Js=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{[Js("0xf")](){if(!this[Js("0x22")][Js("0x2f")].has("LegacyListPropertiesEditing"))return;const t=this[Js("0x22")][Js("0x35")][Js("0x39")](Js("0x23")),e=this[Js("0x22")][Js("0x2f")].get(Js("0x15"));t[Js("0x11")]&&e[Js("0x1f")](Js("0x14"),this[Js("0x2b")][Js("0x3a")](this)),t[Js("0x1b")]&&e[Js("0x1f")](Js("0x1"),this[Js("0xe")][Js("0x3a")](this)),t.startIndex&&e[Js("0x1f")](Js("0x17"),this[Js("0x0")][Js("0x3a")](this)),e[Js("0x2c")].registerDescriptionCallback(this[Js("0x1d")][Js("0x3a")](this))}[Js("0x2b")](t,e={}){const n=this[Js("0x22")][Js("0x2f")].get(Js("0x15")),r=this._getSuggestionBlocksForListStyle();this[Js("0x22")][Js("0x24")][Js("0x3")]((()=>{n[Js("0x3d")](r,{commandName:Js("0x14"),commandParams:[{type:e[Js("0x32")]}],formatGroupId:Js("0x14")})}))}[Js("0xe")](t,e={}){const n=this[Js("0x22")][Js("0x2f")][Js("0x39")](Js("0x15")),r=this[Js("0x4")]((t=>t.is(Js("0xa"),"listItem")&&Js("0x12")===t[Js("0x38")](Js("0x21"))));if(r[Js("0x28")]<1)return;const i=r[Js("0xb")]((t=>this[Js("0x22")].model.createRange(this[Js("0x22")].model.createPositionAt(t,"before"),this[Js("0x22")][Js("0x24")][Js("0x13")](t,0))));this[Js("0x22")][Js("0x24")][Js("0x3")]((()=>{n[Js("0x3d")](i,{commandName:"listReversed",commandParams:[{reversed:e.reversed}],formatGroupId:Js("0x1")})}))}[Js("0x0")](t,e={}){const n=this.editor[Js("0x2f")][Js("0x39")](Js("0x15")),r=this[Js("0x4")]((t=>t.is("element","listItem")&&Js("0x12")===t[Js("0x38")](Js("0x21"))));if(r[Js("0x28")]<1)return;const i=r[Js("0xb")]((t=>this.editor[Js("0x24")].createRange(this.editor[Js("0x24")][Js("0x13")](t,Js("0x7")),this[Js("0x22")][Js("0x24")][Js("0x13")](t,0))));this.editor[Js("0x24")].change((()=>{n[Js("0x3d")](i,{commandName:Js("0x17"),commandParams:[{startIndex:e[Js("0x2a")]}],formatGroupId:"listStart"})}))}[Js("0x1d")](t){if("formatBlock"!=t[Js("0x32")]&&Js("0x3c")!=t.type)return;const e=this[Js("0x22")][Js("0x16")],{data:n}=t;if(!n)return;let r,i;switch(n[Js("0x10")]){case"listStyle":r=Js("0x1e"),i={type:Js("0x3b"),content:Yr(e,r,Yr(e,this[Js("0x9")](n.commandParams[0][Js("0x32")])))};break;case Js("0x1"):r=n[Js("0xc")][0][Js("0x1b")]?Js("0x1a"):Js("0x25"),i={type:Js("0x3b"),content:Yr(e,r)};break;case Js("0x17"):r=Js("0x5"),i={type:Js("0x3b"),content:Yr(e,r,n[Js("0xc")][0][Js("0x2a")])}}return i}_getSuggestionBlocksForListStyle(){var t,e,n,r;const i=this[Js("0x22")].plugins[Js("0x39")](Js("0x18"));let o=Array[Js("0x31")](this[Js("0x22")].model.document.selection[Js("0x1c")]());return(null===(t=o[0])||void 0===t?void 0:t.is(Js("0xa"),Js("0x20")))&&o[Js("0x2e")](...i[Js("0x6")](this.editor[Js("0x24")].document.selection[Js("0x29")](),"backward")),(null===(e=o[o[Js("0x28")]-1])||void 0===e?void 0:e.is(Js("0xa"),Js("0x20")))&&o.push(...i.getSiblingNodes(this.editor[Js("0x24")][Js("0x27")].selection[Js("0x33")](),Js("0x19"))),o=[...new Set(o)],(null===(r=null===(n=this[Js("0x22")].model.document[Js("0x34")][Js("0x29")]())||void 0===n?void 0:n[Js("0x37")])||void 0===r?void 0:r.is(Js("0xa"),Js("0x20")))&&(o=o.filter((t=>t.is("element",Js("0x20"))))),o}[Js("0x4")](t){const e=this[Js("0x22")].plugins[Js("0x39")](Js("0x18"));let n=Array.from(this[Js("0x22")][Js("0x24")].document.selection[Js("0x1c")]()).filter(t).map((t=>{const n=this[Js("0x22")][Js("0x24")][Js("0x13")](t,0);return[...e[Js("0x6")](n,Js("0x30")),...e[Js("0x6")](n,Js("0x19"))]}))[Js("0x8")]();return n=[...new Set(n)],n}[Js("0x9")](t){return Js("0xd")+this[Js("0x22")][Js("0x2f")].get(Js("0x18"))[Js("0x2")](t)[Js("0x2d")]()+Js("0x26")+t[Js("0x2d")]()[Js("0x36")](/-/g,"_")}}const ex=["options","elementToElement","stop","enableCommand","plugins","TrackChangesEditing","editor","afterInit","mediaEmbed","_descriptionFactory","createEmptyElement","div","high","locale","conversion","has","attribute:url:media","downcastDispatcher","registerElementLabel","showSuggestionHighlights","media","for","ELEMENT_MEDIA"];var nx,rx;nx=ex,rx=442,function(t){for(;--t;)nx.push(nx.shift())}(++rx);const ix=function(t,e){return ex[t-=0]};class ox extends t.Plugin{[ix("0x2")](){const t=this[ix("0x1")];if(!t[ix("0x16")][ix("0xa")]("MediaEmbedEditing"))return;const e=t[ix("0x16")].get(ix("0x0")),n=t[ix("0x8")];e[ix("0x15")](ix("0x3")),e[ix("0x4")][ix("0xd")](ix("0xf"),(t=>Yr(n,ix("0x11"),t))),t[ix("0x9")][ix("0x10")]("dataDowncast")[ix("0x13")]({model:"media",view:(t,{writer:e,options:n})=>{if(n[ix("0xe")])return e[ix("0x5")](ix("0x6"))},converterPriority:ix("0x7")}),t.data[ix("0xc")].on(ix("0xb"),((t,e,n)=>{n[ix("0x12")][ix("0xe")]&&t[ix("0x14")]()}),{priority:ix("0x7")})}}const sx=["plugins","enableCommand","editor","has","TrackChangesEditing","mention","MentionEditing"];var xx,ax;xx=sx,ax=179,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{afterInit(){const t=this[cx("0x5")];t.plugins[cx("0x6")](cx("0x2"))&&t[cx("0x3")].get(cx("0x0"))[cx("0x4")](cx("0x1"))}}const ux=["ELEMENT_PAGE_BREAK","PageBreakEditing","TrackChangesEditing","enableCommand","registerElementLabel","has","_descriptionFactory","plugins","locale","pageBreak","get","editor"];var dx,gx;dx=ux,gx=305,function(t){for(;--t;)dx.push(dx.shift())}(++gx);const fx=function(t,e){return ux[t-=0]};class hx extends t.Plugin{afterInit(){const t=this[fx("0x6")];if(!t[fx("0x2")][fx("0x0")](fx("0x8")))return;t[fx("0x2")][fx("0x5")](fx("0x9"))[fx("0xa")](fx("0x4"));const e=t[fx("0x2")].get(fx("0x9")),n=t[fx("0x3")];e[fx("0x1")][fx("0xb")]("pageBreak",(t=>Yr(n,fx("0x7"),t)))}}const mx=["_registerLegacyDescription","formatBlock","isBlock","name","enableCommand","afterInit","addClass","activeMarkers","type","markerRange","ck-suggestion-marker-split","registerDescriptionCallback","data","schema","registerElementLabel","addMarker:suggestion:insertion","showSuggestionHighlights","TrackChangesEditing","includes","end","paragraph","format","mapper","plugins","isTouching","markerName","$text","insertion","highest","*Insert:* %0","downcastDispatcher","_enableDefaultAttributesIntegration","_descriptionFactory","createUIElement","*Change to:* %0","model","nodeAfter","get","insertParagraph","editor","options","commandName","writer","isLimit","ELEMENT_PARAGRAPH","consume","Paragraph","span","getItemLabel","checkChild","locale","toViewPosition","start","insert"];var px,bx;px=mx,bx=470,function(t){for(;--t;)px.push(px.shift())}(++bx);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{[Ex("0x15")](){const t=this[Ex("0x1")];if(!t.plugins.has(Ex("0x8")))return;const e=t[Ex("0xc")],n=t[Ex("0x27")][Ex("0x35")](Ex("0x21"));n[Ex("0x30")][Ex("0x1e")](Ex("0x24"),(t=>Yr(e,Ex("0x6"),t))),n[Ex("0x2f")](Ex("0x24")),n[Ex("0x14")](Ex("0x0")),t.editing[Ex("0x2e")].on(Ex("0x1f"),Tx(t),{priority:Ex("0x2c")}),t[Ex("0x1c")].downcastDispatcher.on(Ex("0x1f"),((e,n,r)=>{r[Ex("0x2")][Ex("0x20")]&&Tx(t,{showActiveMarker:!1})(e,n,r)}),{priority:Ex("0x2c")});const r=n[Ex("0x30")];r[Ex("0x1b")]((n=>{if("insertion"!==n[Ex("0x18")])return;const{start:i,end:o}=n.getFirstRange();if(!i[Ex("0x28")](o)||!i[Ex("0x34")])return;const s=t[Ex("0x33")][Ex("0x1d")],x=i[Ex("0x34")];return s[Ex("0x12")](x)&&!s[Ex("0x5")](x)&&s[Ex("0xb")](x,Ex("0x2a"))?{type:Ex("0x2b"),content:Yr(e,Ex("0x2d"),r[Ex("0xa")](x,1))}:void 0})),this._registerLegacyDescription()}[Ex("0x10")](){const t=this.editor,e=t[Ex("0xc")];t[Ex("0x27")][Ex("0x35")]("TrackChangesEditing")[Ex("0x30")][Ex("0x1b")]((t=>{if(Ex("0x11")!=t[Ex("0x18")])return;const{data:n}=t;return n&&Ex("0x24")==n[Ex("0x3")]?{type:Ex("0x25"),content:Yr(e,Ex("0x32"),Yr(e,Ex("0x6")))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Ex("0x27")].get(Ex("0x21")),s=r[Ex("0x19")][Ex("0xe")],x=r.markerRange[Ex("0x23")],a=t.model.schema;if(!s[Ex("0x28")](x)||!s.nodeAfter)return;const c=s[Ex("0x34")];if(a[Ex("0x12")](c)&&!a.isLimit(c)&&a[Ex("0xb")](c,Ex("0x2a"))){if(!i.consumable[Ex("0x7")](r[Ex("0x19")],n[Ex("0x13")]))return;const t=i.writer[Ex("0x31")](Ex("0x9"),{class:Ex("0x1a")}),s=i[Ex("0x26")][Ex("0xd")](x);e&&o[Ex("0x17")][Ex("0x22")](r.markerName)&&i[Ex("0x4")][Ex("0x16")]("ck-suggestion-marker--active",t),i.writer[Ex("0xf")](s,t),i[Ex("0x26")].bindElementToMarker(t,r[Ex("0x29")])}}}const yx=["get","editor","*Remove all formatting*","TrackChangesEditing","_enableDefaultAttributesIntegration","afterInit","removeFormat","commandName","_descriptionFactory","registerDescriptionCallback","format","has","_registerLegacyDescription","formatBlock","plugins","type","locale","formatInline"];var Cx,Ax;Cx=yx,Ax=155,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Ix extends t.Plugin{[kx("0xc")](){const t=this[kx("0x8")];t[kx("0x3")][kx("0x0")]("RemoveFormatEditing")&&(t.plugins.get("TrackChangesEditing")[kx("0xb")]("removeFormat"),this[kx("0x1")]())}[kx("0x1")](){const t=this[kx("0x8")];t[kx("0x3")][kx("0x7")](kx("0xa"))[kx("0xf")][kx("0x10")]((e=>{if(kx("0x2")!=e[kx("0x4")]&&kx("0x6")!=e[kx("0x4")])return;const{data:n}=e;return n&&kx("0xd")==n[kx("0xe")]?{type:kx("0x11"),content:Yr(t[kx("0x5")],kx("0x9"))}:void 0}))}}const Sx=["discardSelectedSuggestions","plugins","goToNextRestrictedEditingException","trackChanges","get","RestrictedEditingModeEditing","discardSuggestion","acceptSelectedSuggestions","editor","discardAllSuggestions","enableCommand"];var Rx,vx;Rx=Sx,vx=302,function(t){for(;--t;)Rx.push(Rx.shift())}(++vx);const Nx=function(t,e){return Sx[t-=0]};class Lx extends t.Plugin{afterInit(){const t=this[Nx("0x3")];if(!t[Nx("0x7")].has(Nx("0x0")))return;const e=t[Nx("0x7")][Nx("0xa")]("TrackChangesEditing");e.enableCommand("goToPreviousRestrictedEditingException"),e[Nx("0x5")](Nx("0x8"));const n=t[Nx("0x7")][Nx("0xa")](Nx("0x0"));n.enableCommand(Nx("0x9")),n[Nx("0x5")]("acceptSuggestion"),n.enableCommand(Nx("0x1")),n[Nx("0x5")]("acceptAllSuggestions"),n[Nx("0x5")](Nx("0x4")),n[Nx("0x5")](Nx("0x2")),n.enableCommand(Nx("0x6"))}}const Mx=["plugins","insert","registerElementLabel","markerRange","toViewPosition","enableCommand","TrackChangesEditing","merge","addMarker:suggestion:insertion","addMarker:suggestion","high","downcastDispatcher","softBreak","get","getItems","split","editing","addClass","createPositionBefore","writer","_descriptionFactory","options","test","markerName","locale","includes","init","shiftEnter","mapper","ck-suggestion-marker--active","createUIElement","editor","consumable","name"];var wx,Ox;wx=Mx,Ox=226,function(t){for(;--t;)wx.push(wx.shift())}(++Ox);const Fx=function(t,e){return Mx[t-=0]};class Dx extends t.Plugin{static get requires(){return[Eo.ShiftEnter]}[Fx("0x4")](){const t=this[Fx("0x9")],e=t.plugins[Fx("0x19")](Fx("0x12"));e[Fx("0x11")](Fx("0x5")),t[Fx("0x1c")].downcastDispatcher.on(Fx("0x14"),Px(t),{priority:Fx("0x16")}),t.editing.downcastDispatcher.on("addMarker:suggestion:deletion",Px(t),{priority:Fx("0x16")}),t.data[Fx("0x17")].on(Fx("0x15"),((e,n,r)=>{r[Fx("0x21")].showSuggestionHighlights&&Px(t,{showActiveMarker:!1})(e,n,r)})),e[Fx("0x20")][Fx("0xe")]("softBreak",(e=>Yr(t[Fx("0x2")],"ELEMENT_LINE_BREAK",e)))}}function Px(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Fx("0xc")][Fx("0x19")](Fx("0x12"));if(!i[Fx("0xa")][Fx("0x0")](r.markerRange,n[Fx("0xb")]))return;const s=t.model;for(const t of r[Fx("0xf")][Fx("0x1a")]()){if(!t.is("element",Fx("0x18")))continue;const n="deletion"==r[Fx("0x1")][Fx("0x1b")](":")[1]?Fx("0x13"):"split",x=i.writer[Fx("0x8")]("span",{class:"ck-suggestion-marker-"+n}),a=i[Fx("0x6")][Fx("0x10")](s[Fx("0x1e")](t));e&&o.activeMarkers[Fx("0x3")](r[Fx("0x1")])&&i[Fx("0x1f")][Fx("0x1d")](Fx("0x7"),x),i[Fx("0x1f")][Fx("0xd")](a,x),i[Fx("0x6")].bindElementToMarker(x,r[Fx("0x1")])}}}const Bx=["restrictedEditingException","has","enableCommand","from","editor","change","formatBlock","commandParams","_descriptionFactory","selection","markInlineFormat","formatInline","registerDescriptionCallback","type","StandardEditingModeEditing","getRanges","value","get","forceValue","commandName","afterInit","plugins","FORMAT_RESTRICTED_ENABLED"];var Ux,jx;Ux=Bx,jx=337,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Bx[t-=0]};class Vx extends t.Plugin{[Gx("0x5")](){const t=this[Gx("0xc")],e=t.model,n=t.locale;if(!t[Gx("0x6")][Gx("0x9")](Gx("0x16")))return;const r=t[Gx("0x6")][Gx("0x2")]("TrackChangesEditing"),i=Gx("0x8"),o=t.commands[Gx("0x2")](i);r[Gx("0xa")](i,((t,n={})=>{const s=e.document[Gx("0x11")];if(s.isCollapsed)return void t(n);const x=void 0!==n[Gx("0x3")]?n[Gx("0x3")]:!o[Gx("0x1")];e[Gx("0xd")]((()=>{const t=Array[Gx("0xb")](s[Gx("0x0")]());for(const n of t){const t=x?[n]:Yi(i,n,e);for(const e of t)r[Gx("0x12")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),r[Gx("0x10")][Gx("0x14")]((t=>{if(Gx("0xe")!=t[Gx("0x15")]&&Gx("0x13")!=t[Gx("0x15")])return;const{data:e}=t;return e&&e[Gx("0x4")]==i?e[Gx("0xf")][0].forceValue?{type:"format",content:Yr(n,Gx("0x7"))}:{type:"format",content:Yr(n,"FORMAT_RESTRICTED_DISABLED")}:void 0}))}}const Hx=["_descriptionFactory","_registerInlineAttribute","config","commandParams","locale","afterInit","has","normalizeConfig","registerDescriptionCallback","styleName","format","registerAttributeLabel","_registerBlockAttribute","getGhsAttributeNameForElement","style","*Remove format:* %0","inline","plugins","type","block","formatBlock","GeneralHtmlSupport","ghsAttributes","_registerLegacyDescription","DataSchema","editor","formatInline","FORMAT_STYLE","element","get","toLowerCase","*Set format:* %0","add","forceValue","definitions","TrackChangesEditing"];var zx,Wx;zx=Hx,Wx=186,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{[Kx("0x23")](){const t=this.editor;if(!t[Kx("0xb")][Kx("0x0")]("Style")||!t[Kx("0xb")][Kx("0x0")](Kx("0x12")))return;const e=t[Kx("0xb")][Kx("0x17")](Kx("0x1d")),n=t[Kx("0x22")],r=t[Kx("0x20")][Kx("0x17")](Kx("0x8")),i=t[Kx("0xb")][Kx("0x17")](Kx("0xf")),o=t[Kx("0xb")].get("StyleUtils")[Kx("0x1")](t[Kx("0xb")][Kx("0x17")](Kx("0x12")),r[Kx("0x1c")]);e._enableDefaultAttributesIntegration(Kx("0x8"));const s=new Set;for(const t of o[Kx("0xd")]){const e=i[Kx("0x7")](t[Kx("0x16")]);s[Kx("0x1a")](e)}const x=new Set;for(const t of o[Kx("0xa")]){const e=i[Kx("0x7")](t[Kx("0x16")]);x.add(e);for(const e of t[Kx("0x10")])x[Kx("0x1a")](e)}for(const t of s)e[Kx("0x6")](t),e[Kx("0x1e")][Kx("0x5")](t,Yr(n,Kx("0x15")));for(const t of x)e[Kx("0x1f")](t),e[Kx("0x1e")][Kx("0x5")](t,Yr(n,Kx("0x15")));this._registerLegacyDescription()}[Kx("0x11")](){const t=this[Kx("0x13")],e=t[Kx("0x22")];t.plugins[Kx("0x17")](Kx("0x1d"))[Kx("0x1e")][Kx("0x2")]((t=>{if(Kx("0xe")!=t[Kx("0xc")]&&Kx("0x14")!=t[Kx("0xc")])return;const{data:n}=t;return n&&Kx("0x8")===n.commandName?n[Kx("0x21")][0][Kx("0x1b")]?{type:Kx("0x4"),content:Yr(e,Kx("0x19"),n[Kx("0x21")][0][Kx("0x3")][Kx("0x18")]())}:{type:Kx("0x4"),content:Yr(e,Kx("0x9"),n[Kx("0x21")][0][Kx("0x3")].toLowerCase())}:void 0}))}}const Xx=["writer","ELEMENT_TABLE","tableCell","afterInit","add","classes","last","insertTableColumnRight","insertTableColumnLeft","max","ELEMENT_TABLE_ROW","ELEMENT_TABLE_WITH_TEXT","registerPostFixer","$textProxy","MAX_SAFE_INTEGER","insertion","MIN_SAFE_INTEGER","removeClass","getFirstRange","removeTableRow","insertTableRowAbove","rootName","position","plugins","rowspan","end","ELEMENT_TABLE_COLUMN_WITH_TEXT","length","getItems","TableEditing","getSelectionAffectedTableCells","$graveyard","getChanges","name","minColumn","enqueueChange","push","getChildren","execute","order","cell","data","startsWith","minRow","item","substr","TableUtils","_descriptionFactory","root","colspan","change:data","accept","get","insertTableRowBelow","document","getContainedElement","nodeBefore","getAttribute","getRanges","ELEMENT_TABLE_ROW_WITH_TEXT","insertTable","TrackChangesEditing","getColumnIndexes","detach","maxRow","registerElementLabel","insert","locale","hasAttribute","createTableWalker","*Remove:* %0","tableRow","refresh","filter","discard","tableColumn","above","addClass","start","table","options","registerDescriptionCallback","setSelection","addMarker:suggestion","_tableSuggestions","some","_getCoordsForCells","editor","toLowerCase","getCellLocation","isTouching","join","_getSuggestionCoords","mapper","min","registerCustomCallback","findAncestor","deletion","left","values","removeTableColumn","_tablePostFixingSubtypes","maxColumn","_suggestionFactory","change","isIntersectingWithRange","type","_setupColumnsRowsFixing","createRangeOn","showSuggestionHighlights","downcastDispatcher","suggestion","fromRange","element","tablePaste","getRowIndexes","commands","isInContent","model","*Insert:* %0","includes","from","getChangedMarkers","selection","forceValue","getSuggestion","createRangeIn","selectTableColumn","enableCommand","first","addRange","markMultiRangeInsertion","_splitMarkerName","differ","map","subType","low","span","ELEMENT_TABLE_COLUMN","nodeAfter","selectTableRow"];var $x,Zx;$x=Xx,Zx=139,function(t){for(;--t;)$x.push($x.shift())}(++Zx);const Qx=function(t,e){return Xx[t-=0]};class Yx extends t.Plugin{constructor(t){super(t),this[Qx("0x67")]=[Qx("0x49"),Qx("0x4d")],this[Qx("0x56")]=new Set}[Qx("0x5")](){const t=this[Qx("0x59")],e=t[Qx("0x78")][Qx("0x38")][Qx("0x7d")];if(!t.plugins.has(Qx("0x1f")))return;const n=t[Qx("0x45")],r=t.plugins.get(Qx("0x3f")),i=t[Qx("0x19")][Qx("0x36")](Qx("0x30"));r[Qx("0x31")][Qx("0x43")]("table",(t=>Yr(n,Qx("0x3"),t))),this[Qx("0x6d")](),r[Qx("0x82")](Qx("0x3e")),r[Qx("0x82")](Qx("0x1")),r.enableCommand(Qx("0x81"));for(const n of[Qx("0x16"),Qx("0x37")]){const o=t[Qx("0x76")][Qx("0x36")](n);r[Qx("0x82")](n,(n=>{t[Qx("0x78")].change((t=>{n();const s=Qx("0x4e")===o[Qx("0x29")],x=i[Qx("0x20")](e),a=i[Qx("0x75")](x),c=s?a.first-1:a[Qx("0x8")]+1,l=x[0][Qx("0x62")](Qx("0x51")),u=i[Qx("0x47")](l,{startRow:c,endRow:c}),d=Array[Qx("0x7b")](u).map((e=>t[Qx("0x6e")](e[Qx("0x2a")])));r[Qx("0x85")](d,Qx("0x49"))}))}))}for(const n of[Qx("0xa"),Qx("0x9")]){const o=t[Qx("0x76")][Qx("0x36")](n);r.enableCommand(n,(n=>{t[Qx("0x78")][Qx("0x6a")]((t=>{n();const s=Qx("0x64")===o[Qx("0x29")],x=i[Qx("0x20")](e),a=i[Qx("0x40")](x),c=s?a[Qx("0x83")]-1:a[Qx("0x8")]+1,l=x[0][Qx("0x62")](Qx("0x51")),u=i[Qx("0x47")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Qx("0x88")]((e=>t[Qx("0x6e")](e[Qx("0x2a")])));r[Qx("0x85")](d,Qx("0x4d"))}))}))}for(const n of[Qx("0x15"),Qx("0x66")]){const o=n.substr(11),s=o[Qx("0x5a")](),x=s[Qx("0x2f")](0,3)+Qx("0x8b"),a=Qx("0x51")+o,c="min"+o,l=Qx("0xb")+o;r[Qx("0x82")](n,(()=>{t[Qx("0x78")][Qx("0x6a")]((t=>{const o=i[Qx("0x20")](e),u=o[0][Qx("0x62")](Qx("0x51"));let d;if(Qx("0x15")==n){const t=i[Qx("0x75")](o);d={startRow:t[Qx("0x83")],endRow:t[Qx("0x8")],includeAllSlots:!0}}else{const t=i[Qx("0x40")](o);d={startColumn:t[Qx("0x83")],endColumn:t[Qx("0x8")],includeAllSlots:!0}}const g=i[Qx("0x47")](u,d),f=Array[Qx("0x7b")](g).map((({cell:t})=>t)),h=Jx(f[Qx("0x4b")]((t=>t[Qx("0x46")](x)))),m=Jx(f[Qx("0x4b")]((t=>!t[Qx("0x46")](x)))).map((e=>t[Qx("0x6e")](e))),p=r.markMultiRangeDeletion(m,a);if(p&&(Qx("0x49")==p[Qx("0x89")]||Qx("0x4d")==p[Qx("0x89")])){const e=this[Qx("0x5e")](p);for(const n of h){const r=t[Qx("0x6e")](n),o=i[Qx("0x5b")](n),a=n[Qx("0x3b")](x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&p[Qx("0x84")](r)}}}))}))}function o(n){const r=Array[Qx("0x7b")](e.getRanges()).map((t=>s.LiveRange.fromRange(t)));t[Qx("0x78")][Qx("0x6a")]((e=>{const i=e.batch;n=n.filter((t=>Qx("0x21")!=t[Qx("0x32")].rootName)),e[Qx("0x54")](n),t[Qx("0x76")][Qx("0x36")]("removeTableRow")[Qx("0x4a")](),t[Qx("0x28")](Qx("0x15"),{forceDefaultExecution:!0}),t[Qx("0x78")].enqueueChange((()=>{t.model[Qx("0x25")](i,(t=>{const e=r[Qx("0x4b")]((t=>Qx("0x21")!=t[Qx("0x32")][Qx("0x17")]));e.length>0&&t[Qx("0x54")](e);for(const t of r)t[Qx("0x41")]()}))}))}))}function a(n){t[Qx("0x78")][Qx("0x6a")]((r=>{const i=Array.from(e[Qx("0x3c")]())[Qx("0x88")]((t=>s.LiveRange.fromRange(t))),o=[];for(const t of n)for(const e of t.getItems({shallow:!0}))o[Qx("0x26")](e);for(const e of o)Qx("0x21")!=e[Qx("0x32")][Qx("0x17")]&&(r.setSelection(r.createPositionAt(e,0)),t[Qx("0x76")][Qx("0x36")](Qx("0x66")).refresh(),t[Qx("0x28")](Qx("0x66"),{forceDefaultExecution:!0}));const x=i.filter((t=>Qx("0x21")!=t.root[Qx("0x17")]));x.length>0&&r[Qx("0x54")](x);for(const t of i)t[Qx("0x41")]()}))}function c(t,e){return e.every((e=>t[Qx("0x57")]((t=>t[Qx("0x1b")].isEqual(e.start)||e.end.isEqual(t[Qx("0x50")])))))}function l(t,e){return t[Qx("0x57")]((t=>e.some((e=>t.end[Qx("0x5c")](e.start)))))}t[Qx("0x2b")][Qx("0x70")].on(Qx("0x55"),((t,e,n)=>{if(!n[Qx("0x52")][Qx("0x6f")])return;const r=e[Qx("0x2e")];if(!r)return;const i=n[Qx("0x5f")].toViewElement(r);function o(t){return Array.isArray(t)?t:[t]}i&&"tableCell"===r[Qx("0x23")]&&(0,x.setHighlightHandling)(i,n[Qx("0x2")],((t,e,n)=>n[Qx("0x4f")](o(e[Qx("0x7")]),t)),((t,e,n)=>n[Qx("0x13")](o(e.classes),t)))}),{priority:"highest"}),r._descriptionFactory[Qx("0x53")]((t=>{if("insertion"!=t[Qx("0x6c")]&&Qx("0x63")!=t[Qx("0x6c")])return;const e=t[Qx("0x39")]();if(null!=e&&e.is(Qx("0x73"),Qx("0x51"))){if(Qx("0x11")==t.type){const e=t[Qx("0x1e")]()[Qx("0x4b")]((t=>t.is(Qx("0xf")))).map((t=>t[Qx("0x2b")]));if(e[Qx("0x1d")])return{type:Qx("0x11"),content:Yr(n,"*Insert:* %0",Yr(n,Qx("0xd"),'"'+e[Qx("0x5d")](" ")+'"'))}}if("deletion"==t[Qx("0x6c")]){const e=t[Qx("0x1e")]()[Qx("0x4b")]((t=>t.is(Qx("0xf"))))[Qx("0x88")]((t=>t[Qx("0x2b")]));if(e[Qx("0x1d")])return{type:Qx("0x63"),content:Yr(n,"*Remove:* %0",Yr(n,Qx("0xd"),'"'+e[Qx("0x5d")](" ")+'"'))}}}})),r[Qx("0x31")][Qx("0x53")]((t=>{if(Qx("0x49")==t[Qx("0x89")]){const e=t.getItems()[Qx("0x4b")]((t=>t.is(Qx("0xf"))))[Qx("0x88")]((t=>t.data)),r=this[Qx("0x5e")](t),i=r[Qx("0x42")]-r[Qx("0x2d")]+1;if(Qx("0x11")==t.type)return e[Qx("0x1d")]?{type:Qx("0x11"),content:Yr(n,Qx("0x79"),Yr(n,Qx("0x3d"),[i,'"'+e[Qx("0x5d")](" ")+'"']))}:{type:Qx("0x11"),content:Yr(n,Qx("0x79"),Yr(n,Qx("0xc"),i))};if(Qx("0x63")==t.type)return e[Qx("0x1d")]?{type:Qx("0x63"),content:Yr(n,"*Remove:* %0",Yr(n,Qx("0x3d"),[i,'"'+e[Qx("0x5d")](" ")+'"']))}:{type:"deletion",content:Yr(n,Qx("0x48"),Yr(n,Qx("0xc"),i))}}if(Qx("0x4d")==t[Qx("0x89")]){const e=t[Qx("0x1e")]()[Qx("0x4b")]((t=>t.is(Qx("0xf"))))[Qx("0x88")]((t=>t[Qx("0x2b")])),r=this[Qx("0x5e")](t),i=r[Qx("0x68")]-r[Qx("0x24")]+1;if(Qx("0x11")==t[Qx("0x6c")])return e[Qx("0x1d")]?{type:"insertion",content:Yr(n,Qx("0x79"),Yr(n,Qx("0x1c"),[i,'"'+e[Qx("0x5d")](" ")+'"']))}:{type:"insertion",content:Yr(n,"*Insert:* %0",Yr(n,Qx("0x8c"),i))};if(Qx("0x63")==t[Qx("0x6c")])return e[Qx("0x1d")]?{type:"deletion",content:Yr(n,Qx("0x48"),Yr(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[i,'"'+e[Qx("0x5d")](" ")+'"']))}:{type:Qx("0x63"),content:Yr(n,"*Remove:* %0",Yr(n,Qx("0x8c"),i))}}})),r._suggestionFactory[Qx("0x61")]("insertion",Qx("0x49"),Qx("0x4c"),o),r._suggestionFactory[Qx("0x61")](Qx("0x63"),"tableRow",Qx("0x35"),o),r[Qx("0x69")][Qx("0x61")]("insertion",Qx("0x4d"),Qx("0x4c"),a),r[Qx("0x69")][Qx("0x61")](Qx("0x63"),Qx("0x4d"),"accept",a),r[Qx("0x69")][Qx("0x61")]("insertion",Qx("0x4d"),Qx("0x5d"),c),r[Qx("0x69")][Qx("0x61")](Qx("0x63"),Qx("0x4d"),Qx("0x5d"),c),r[Qx("0x69")].registerCustomCallback(Qx("0x11"),"tableRow",Qx("0x5d"),l),r[Qx("0x69")][Qx("0x61")]("deletion",Qx("0x49"),Qx("0x5d"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this.editor,e=t[Qx("0x78")][Qx("0x38")][Qx("0x7d")];return(n,r)=>{t[Qx("0x78")][Qx("0x6a")]((i=>{const{commandName:o,commandParams:x}=r;let a=n[0][Qx("0x1b")][Qx("0x3a")];x&&x[0]&&!1===x[0][Qx("0x7e")]&&(a=n[0][Qx("0x50")][Qx("0x0")]);const c=i[Qx("0x80")](a);if(Qx("0x21")==c[Qx("0x32")].rootName)return;const l=Array.from(e[Qx("0x3c")]())[Qx("0x88")]((t=>s.LiveRange[Qx("0x72")](t)));i.setSelection(c),t[Qx("0x76")][Qx("0x36")](o)[Qx("0x4a")](),x[Qx("0x26")]({forceDefaultExecution:!0}),t.execute(o,...x);const u=l[Qx("0x4b")]((t=>Qx("0x21")!=t[Qx("0x32")][Qx("0x17")]));u[Qx("0x1d")]>0&&i[Qx("0x54")](u);for(const t of l)t[Qx("0x41")]()}))}}[Qx("0x58")](t){const e=this[Qx("0x59")][Qx("0x19")][Qx("0x36")](Qx("0x30"));let n=Number[Qx("0x10")],r=Number[Qx("0x12")],i=Number[Qx("0x10")],o=Number.MIN_SAFE_INTEGER;for(const s of t){if(Qx("0x21")==s.root[Qx("0x17")])continue;const{row:t,column:x}=e[Qx("0x5b")](s),a=s[Qx("0x46")](Qx("0x1a"))?s[Qx("0x3b")](Qx("0x1a"))-1:0,c=s.hasAttribute(Qx("0x33"))?s[Qx("0x3b")]("colspan")-1:0;n=t<n?t:n,r=t+a>r?t+a:r,i=x<i?x:i,o=x+c>o?x+c:o}return{minRow:n,maxRow:r,minColumn:i,maxColumn:o}}[Qx("0x6d")](){const t=this.editor,e=t[Qx("0x19")][Qx("0x36")](Qx("0x3f")),n=t[Qx("0x19")][Qx("0x36")](Qx("0x30"));t[Qx("0x78")][Qx("0x38")].on(Qx("0x34"),(()=>{const n=Array[Qx("0x7b")](t[Qx("0x78")].document[Qx("0x87")][Qx("0x7c")]());for(const{name:t,data:r}of n){const{group:n,id:i,subType:o}=e[Qx("0x86")](t);if(Qx("0x71")!=n)continue;if(null!=r.oldRange)continue;const s=e[Qx("0x7f")](i);this[Qx("0x67")][Qx("0x7a")](o)&&this[Qx("0x56")][Qx("0x6")](s)}}),{priority:Qx("0x8a")});const r=(t,e)=>{let r=!1;const i=e[Qx("0x6e")](t),o=t[Qx("0x62")](Qx("0x51")),s=n[Qx("0x5b")](t);for(const e of this[Qx("0x56")]){const n=e[Qx("0x89")],x=n[Qx("0x2c")](Qx("0x74")),a=n.substr(x?10:5),c=a[Qx("0x5a")](),l=c[Qx("0x2f")](0,3)+Qx("0x8b"),u=Qx("0x60")+a,d=Qx("0xb")+a;if(!e[Qx("0x77")])continue;if(o!=e[Qx("0x14")]()[Qx("0x50")][Qx("0x62")]("table"))continue;if(e[Qx("0x6b")](i))continue;const g=t[Qx("0x46")](l)?t.getAttribute(l)-1:0,f=this[Qx("0x5e")](e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e.addRange(i),r=!0)}return r};t.model[Qx("0x38")][Qx("0xe")]((e=>{let n=!1;for(const i of t.model[Qx("0x38")].differ[Qx("0x22")]())if(Qx("0x44")==i[Qx("0x6c")])if(Qx("0x49")==i[Qx("0x23")])for(const t of i[Qx("0x18")][Qx("0x0")][Qx("0x27")]())n=n||r(t,e);else Qx("0x4")==i.name&&(n=n||r(i[Qx("0x18")][Qx("0x0")],e));return n}))}[Qx("0x5e")](t){return this._getCoordsForCells(t.getRanges()[Qx("0x88")]((t=>t[Qx("0x50")][Qx("0x0")])))}}function Jx(t){return Array[Qx("0x7b")](new Set(t)[Qx("0x65")]())}const ta=["plugins","get","value","getSelectionAffectedTableCells","stop","afterInit","isInContent","_descriptionFactory","registerCustomCallback","locale","detach","accept","commands","getAncestors","splitTableCellHorizontally","findAncestor","has","mergeTableCellLeft","getCellLocation","requires","length","model","containsRange","root","mergeTableCells","formatInline","createTableWalker","direction","_suggestionFactory","registerDescriptionCallback","_isForcedDefaultExecutionBlock","_tablePostFixingSubtypes","format","add","_areMergableCells","_areSelectedCellsMergable","from","getRanges","*Merge cells*","map","TrackChangesEditing","TableUtils","fromRange","trackChanges","formatBlock","table","size","getSuggestions","subType","$graveyard","*Split cell:* vertically","document","commandName","push","deletion","find","low","execute","insertion","setSelection","selection","cell","type","element","*Split cell:* horizontally","markBlockFormat","markMultiRangeBlockFormat","_acceptFormatSuggestionCallbackFactory","return","forceDefaultExecution","tableCell","mergeTableCellRight","set:isEnabled","mergeTableCellDown","author","highest","enableCommand","splitTableCellVertically","editor","filter","change"];var ea,na;ea=ta,na=298,function(t){for(;--t;)ea.push(ea.shift())}(++na);const ra=function(t,e){return ta[t-=0]};class ia extends t.Plugin{static get[ra("0x2d")](){return[Yx]}[ra("0x1f")](){const t=this.editor,e=t[ra("0x2f")][ra("0x4d")].selection,n=t[ra("0x23")];if(!t[ra("0x1a")][ra("0x2a")]("TableEditing"))return;const r=t[ra("0x1a")].get(ra("0x42")),i=t[ra("0x1a")][ra("0x1b")](ra("0x43")),o=t[ra("0x1a")].get(Yx);o[ra("0x39")][ra("0x4f")](ra("0x32")),r[ra("0x15")]("mergeTableCells",(()=>{const e=i[ra("0x1d")](t[ra("0x2f")][ra("0x4d")][ra("0x5")]);t[ra("0x2f")][ra("0x19")]((()=>{r[ra("0xb")](e,{commandName:"mergeTableCells",commandParams:[]},[],ra("0x32"))}))})),t[ra("0x26")][ra("0x1b")]("mergeTableCells").on(ra("0x2"),((e,n)=>{t[ra("0x26")][ra("0x1b")](ra("0x45"))[ra("0x1c")]&&(n[ra("0x2e")]>0&&n[n[ra("0x2e")]-1]&&n[n.length-1][ra("0xe")]||r[ra("0x38")]||this[ra("0x3d")]()||e[ra("0x1e")]())}),{priority:ra("0x14")});for(const e of["mergeTableCellUp","mergeTableCellRight",ra("0x12"),ra("0x2b")]){const n=t[ra("0x26")].get(e);r[ra("0x15")](e,(()=>{const e=t[ra("0x2f")][ra("0x4d")][ra("0x5")].getFirstPosition()[ra("0x27")]()[ra("0x0")]((t=>t.is(ra("0x8"),ra("0xf")))),i=n[ra("0x1c")];t[ra("0x2f")][ra("0x19")]((()=>{r.markMultiRangeBlockFormat([e,i],{commandName:"mergeTableCells",commandParams:[]},[],ra("0x32"))}))}))}for(const e of["splitTableCellVertically",ra("0x28")]){const n=t[ra("0x26")][ra("0x1b")](e);r.enableCommand(e,(()=>{const o=i[ra("0x1d")](t[ra("0x2f")][ra("0x4d")].selection)[0],s=o[ra("0x29")](ra("0x47")),{column:x,row:a}=i[ra("0x2c")](o);let c=[];if("horizontally"==n[ra("0x35")]){const t=i.createTableWalker(s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t).map((t=>t[ra("0x6")]))}else{const t=i[ra("0x34")](s,{column:x,includeAllSlots:!0});c=Array[ra("0x3e")](t).map((t=>t[ra("0x6")]))}t[ra("0x2f")][ra("0x19")]((t=>{r[ra("0xa")](t.createRangeOn(o),{commandName:e,commandParams:[]},c,e)}))}))}r[ra("0x21")].registerDescriptionCallback((t=>{if("formatBlock"!=t[ra("0x7")]&&"formatInline"!=t[ra("0x7")])return;const{data:e}=t;return e&&ra("0x32")==e[ra("0x4e")]?{type:ra("0x3a"),content:Yr(n,ra("0x40"))}:void 0})),r._descriptionFactory[ra("0x37")]((t=>{if(ra("0x46")!=t.type&&ra("0x33")!=t.type)return;const{data:e}=t;return e?ra("0x16")==e[ra("0x4e")]?{type:ra("0x3a"),content:Yr(n,ra("0x4c"))}:ra("0x28")==e[ra("0x4e")]?{type:ra("0x3a"),content:Yr(n,ra("0x9"))}:void 0:void 0}));const x=o[ra("0xc")]();for(const t of["mergeTableCellUp",ra("0x10"),ra("0x12"),"mergeTableCellLeft"])r[ra("0x36")][ra("0x22")](ra("0x46"),t,ra("0x25"),x);for(const t of[ra("0x16"),ra("0x28")])r._suggestionFactory[ra("0x22")](ra("0x46"),t,"accept",x);r._suggestionFactory[ra("0x22")]("formatBlock",ra("0x32"),ra("0x25"),(n=>{t[ra("0x2f")][ra("0x19")]((r=>{const i=Array.from(e[ra("0x3f")]())[ra("0x41")]((t=>s.LiveRange[ra("0x44")](t)));r.setSelection(n),t[ra("0x26")][ra("0x1b")](ra("0x32")).refresh(),t[ra("0x2")](ra("0x32"),{forceDefaultExecution:!0});const o=i[ra("0x18")]((t=>ra("0x4b")!=t[ra("0x31")].rootName));o.length>0&&r[ra("0x4")](o);for(const t of i)t[ra("0x24")]()}))}));for(const e of["mergeTableCellUp",ra("0x12"),"mergeTableCellLeft",ra("0x10")]){const n=t[ra("0x26")][ra("0x1b")](e);n.on(ra("0x11"),((e,r,i)=>{if(i){const r=t[ra("0x2f")][ra("0x4d")][ra("0x5")].getFirstPosition()[ra("0x27")]()[ra("0x0")]((t=>t.is(ra("0x8"),ra("0xf"))));this._areMergableCells(n[ra("0x1c")],r)||(e[ra("0xd")]=!1,e[ra("0x1e")]())}}),{priority:ra("0x1")})}}[ra("0x3d")](){const t=this[ra("0x17")].commands[ra("0x1b")](ra("0x32")),e=this[ra("0x17")][ra("0x1a")].get(ra("0x43"));if(!t.isEnabled)return!1;const n=e.getSelectionAffectedTableCells(this[ra("0x17")][ra("0x2f")][ra("0x4d")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[ra("0x3c")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[ra("0x17")][ra("0x1a")][ra("0x1b")](ra("0x42")),r=this.editor.model.createRangeOn(t),i=this[ra("0x17")][ra("0x2f")].createRangeOn(e),o=new Set,s=new Set;for(const t of n[ra("0x49")]())if((ra("0x3")==t.type||ra("0x50")==t[ra("0x7")]||ra("0x32")==t[ra("0x4a")])&&t[ra("0x20")])for(const e of t[ra("0x3f")]())e[ra("0x30")](r,!0)&&o[ra("0x3b")](t.type+":"+t[ra("0x13")].id),e.containsRange(i,!0)&&s[ra("0x3b")](t[ra("0x7")]+":"+t.author.id);if(o[ra("0x48")]!=s[ra("0x48")])return!1;for(const t of o)if(!s[ra("0x2a")](t))return!1;return!0}}const oa=["setTableColumnHeader","_handleLegacySuggestions","editing","mapper","_acceptFormatSuggestionCallbackFactory","setAttribute","createTableWalker","locale","_suggestionFactory","type","name","get","formatBlock","writer","requires","ck-suggestion-marker-","commandName","addMarker:suggestion","_descriptionFactory","removeAttribute","data","registerDescriptionCallback","removeMarker:suggestion","registerCustomCallback","forceValue","addClass","downcastDispatcher","_enableDefaultAttributesIntegration","getSuggestion","activeMarkers","format","setTableRowHeader","nodeBefore","FORMAT_HEADER_ROW","registerAttributeLabel","FORMAT_HEADER_COLUMN","removeClass","headingRows","commandParams","plugins","stop","_splitMarkerName","bindElementToMarker","consume","ck-suggestion-marker--active","parent","FORMAT_REGULAR_ROW","end","toViewElement","has","cell","getCellLocation","options","start","includes","headingColumns","accept","_registerLegacyDescription","markerName","item","afterInit","highest","data-suggestion","*Format:* %0","unbindElementFromMarkerName","TrackChangesEditing","editor","markerRange","TableUtils"];var sa,xa;sa=oa,xa=194,function(t){for(;--t;)sa.push(sa.shift())}(++xa);const aa=function(t,e){return oa[t-=0]};class ca extends t.Plugin{static get[aa("0x1b")](){return[Yx]}[aa("0x4")](){const t=this[aa("0xa")];if(!t[aa("0x34")][aa("0x3e")]("TableEditing"))return;const e=t[aa("0x14")],n=t.plugins[aa("0x18")](aa("0x9"));n[aa("0x28")](aa("0x2c"),[],[aa("0x32")]),n._enableDefaultAttributesIntegration("setTableColumnHeader",[],[aa("0x44")]),n[aa("0x1f")][aa("0x2f")](aa("0x32"),Yr(e,aa("0x2e"))),n[aa("0x1f")][aa("0x2f")]("headingColumns",Yr(e,aa("0x30"))),this[aa("0xe")]()}[aa("0xe")](){const t=this[aa("0xa")].plugins[aa("0x18")](aa("0x9")),e=this[aa("0xa")][aa("0x34")].get(aa("0xc")),n=this[aa("0xa")][aa("0x34")][aa("0x18")](Yx)[aa("0x11")]();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(i,o,s)=>{const{type:x,id:a}=t[aa("0x36")](o[aa("0x2")]),c=t[aa("0x29")](a),l=c[aa("0x21")];if(aa("0x19")!=c[aa("0x16")]||!l||aa("0xd")!=l[aa("0x1d")])return;if(o[aa("0x3")])return void i[aa("0x35")]();if(!s.consumable[aa("0x38")](o[aa("0xb")],i[aa("0x17")]))return;const u=o[aa("0xb")][aa("0x42")].nodeAfter,d=o.markerRange[aa("0x3c")][aa("0x2d")],g=u[aa("0x3a")][aa("0x3a")],{column:f}=e.getCellLocation(u),{column:h}=e[aa("0x40")](d);for(let i=f;i<=h;i++){const c=e[aa("0x13")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[aa("0x3f")],c=s[aa("0x10")][aa("0x3d")](i);s[aa("0x1a")][aa("0x26")](aa("0x1c")+x,c),r&&s[aa("0x1a")][aa("0x12")](aa("0x6"),a,c),s[aa("0x10")][aa("0x37")](c,o[aa("0x2")]),n&&(t[aa("0x2a")][aa("0x43")](o[aa("0x2")])?s[aa("0x1a")][aa("0x26")](aa("0x39"),c):s[aa("0x1a")].removeClass(aa("0x39"),c))}}}}t._suggestionFactory[aa("0x24")](aa("0x19"),aa("0x2c"),aa("0x0"),n),t[aa("0x15")][aa("0x24")]("formatBlock",aa("0xd"),aa("0x0"),n),this[aa("0xa")][aa("0xf")].downcastDispatcher.on(aa("0x1e"),r(),{priority:aa("0x5")}),this[aa("0xa")].data[aa("0x27")].on(aa("0x1e"),((t,e,n)=>{n[aa("0x41")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:aa("0x5")}),this[aa("0xa")][aa("0xf")][aa("0x27")].on(aa("0x23"),((e,n,r)=>{const{type:i,id:o}=t[aa("0x36")](n[aa("0x2")]),s=t[aa("0x29")](o),x=s.data;if(aa("0x19")!=s[aa("0x16")]||!x||aa("0xd")!=x[aa("0x1d")])return;const a=r[aa("0x10")].markerNameToElements(n[aa("0x2")]);if(a)for(const t of a)r[aa("0x1a")][aa("0x31")](aa("0x1c")+i,t),r[aa("0x1a")][aa("0x31")](aa("0x39"),t),r[aa("0x1a")][aa("0x20")]("data-suggestion",t),r.mapper[aa("0x8")](t,n[aa("0x2")])}),{priority:"highest"}),this[aa("0x1")]()}[aa("0x1")](){const t=this[aa("0xa")],e=t[aa("0x14")];function n(t){return{type:aa("0x2b"),content:Yr(e,aa("0x7"),t)}}t[aa("0x34")][aa("0x18")](aa("0x9"))[aa("0x1f")][aa("0x22")]((t=>{if(aa("0x19")!=t[aa("0x16")])return;const{data:r}=t;if(r){if(aa("0x2c")==r[aa("0x1d")]){const t=r[aa("0x33")][0][aa("0x25")];return n(Yr(e,aa(t?"0x2e":"0x3b")))}if(aa("0xd")==r.commandName){const t=r.commandParams[0][aa("0x25")];return n(Yr(e,t?aa("0x30"):"FORMAT_REGULAR_COLUMN"))}}}))}}const la=["$graveyard","getMarkers","removeRows","tablePasteColumn","getRanges","tableCellBackgroundColor","selection","content","schema","markMultiRangeInsertion","startsWith","position","tableCellPadding","push","root","accept","deletionRanges","previousSibling","start","previous","has","includes","getSuggestions","isInContent","model","markerAttributes","getChildren","getShiftedBy","fill","conversion","columnInsertionIndexes","insertRows","_getCoordsForCells","subType","activeMarkers","differ","getChild","nodeAfter","isEqual","endRow","hasSuggestion","change","deletion","nextSibling","discard","insertion","forceDefaultExecution","getAttributes","createElement","afterInit","rowInsertionIndexes","_replaceTableSlotCell","getColumns","setAttribute","insertContent","updateMarker","type","_isForcedDefaultExecutionBlock","tablePasteChainId","TableClipboard","tableCellBorderWidth","cell","find","_tablePostFixingSubtypes","newRange","editor","name","suggestionUnloaded","tableCellBorderColor","batch","ck-suggestion-marker","removeMarkers","getRows","paragraph","end","isEmpty","some","suggestion:formatBlock:tablePasteCell","markerToHighlight","join","createRangeOn","value","editingDowncast","first","editing","ck-suggestion-marker--active","markerName","table","attributes","add","remove","stop","ck-suggestion-marker-insertion","columnInsertionRanges","map","tableCellBorderStyle","endColumn","tablePasteCell","filter","getRange","last","tableCellSuggestion","tablePasteRow","wrap","registerPostFixer","*Replace table cells*","suggestion-td","getSuggestion","getSuggestionCallback","high","trackChanges","clipboardOutput","containsRange","columns","dataDowncast","insert","findAncestor","row","markMultiRangeDeletion","TrackChangesEditing","fromEntries","getItems","low","getSelectionAffectedTableCells","_splitMarkerName","getAllAdjacentSuggestions","createPositionBefore","formatBlock","markMultiRangeBlockFormat","removeMarker","for","createRangeIn","setAttributes","insertionRanges","createTableWalker","elementToElement","rowInsertionRanges","getRowIndexes","oldRange","keys","documentSelection","plugins","view","element","getTableIfOnlyTableInContent","insertColumns","listenTo","set","get","_suggestionFactory","entries","suggestion","author","options","getContainedElement","Users","from","removeColumns","registerCustomCallback","createRange","length","locale","registerDescriptionCallback","document","commands","tablePaste","_createdBatches"];var ua,da;ua=la,da=323,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0x47"),ga("0x4f"),ga("0x6a"),"tableCellHorizontalAlignment","tableCellVerticalAlignment",ga("0x10"),ga("0x17")],ha=Object[ga("0x83")](fa.map((t=>[t,null])));class ma extends t.Plugin{static get requires(){return[Yx]}[ga("0x3c")](){const t=this.editor;if(!t[ga("0x98")][ga("0x1f")]("TableClipboard"))return;const n=t.plugins[ga("0x9f")](ga("0x82")),r=t[ga("0x98")][ga("0x9f")]("TableUtils"),i=t[ga("0x98")].get(Yx),o=t[ga("0x98")].get("TableClipboard");i[ga("0x4a")].push(ga("0x71"),ga("0xe")),t[ga("0x23")][ga("0x13")].register("tableCellSuggestion",{allowIn:"tableCell",allowContentOf:"tableCell",isLimit:!0}),t.conversion[ga("0x92")]({model:ga("0x70"),view:ga("0x75")});let s=null;t.model.on("insertContent",((i,x)=>{const[a,c]=x,l=x[x[ga("0x4")]-1];l&&l[ga("0x39")]||n[ga("0x44")]||this[ga("0x4c")].commands[ga("0x9f")](ga("0x79"))[ga("0x5c")]&&function(t,e,n,r,i){if(e&&!e.is(ga("0x97")))return!1;const o=i[ga("0x9b")](t,n);if(!o||!ba(o,void 0,r))return!1;const s=r[ga("0x86")](n.document[ga("0x11")]);if(!s[ga("0x4")])return!1;const x=s[0][ga("0x7f")](ga("0x62")),a=r[ga("0x94")](s),c=r.getColumnIndexes(s),l={startRow:a[ga("0x5e")],endRow:a.last,startColumn:c.first,endColumn:c[ga("0x6f")]};return 1==s[ga("0x4")]&&(l[ga("0x32")]+=r[ga("0x53")](o)-1,l[ga("0x6b")]+=r[ga("0x3f")](o)-1),ba(x,l,r)}(a,c,t[ga("0x23")],r,o)&&(i[ga("0x66")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ga("0x23")][ga("0x34")]((()=>{t[ga("0x23")][ga("0x41")](x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ga("0x4")]&&n[ga("0x14")](i,"tablePasteRow",{tablePasteChainId:r}),o[ga("0x4")]&&n[ga("0x14")](o,ga("0xe"),{tablePasteChainId:r}),a.length&&n[ga("0x14")](a,"tablePaste",{tablePasteChainId:r,skipNestingCheck:!0}),c[ga("0x4")]&&n[ga("0x81")](c,ga("0x9"),{tablePasteChainId:r,skipNestingCheck:!0});const u=n[ga("0x8b")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ga("0x6c"),{tablePasteChainId:r});if(u){const e=u[ga("0xc")](),n=[];for(const{element:r,attributes:i}of l){if(!i)continue;const o=t[ga("0x23")][ga("0x5b")](r),s=e[ga("0x49")]((t=>t[ga("0x6e")]().isEqual(o)));s&&n[ga("0x18")]([s.name,i])}n[ga("0x4")]&&u[ga("0x40")](ga("0x24"),Object[ga("0x83")](n))}s=null})))}),{priority:e.priorities.high+10}),t[ga("0x98")].get(ga("0x46")).on(ga("0x3e"),((t,e)=>{const[n,r,,i]=e;if(!s)return;t.stop();const o=n[ga("0x48")],x=r,a=pa(o),c=pa(x);t.return=o;let l=null,u=null;if(c||a)if(a&&!c){i.remove(o[ga("0x2f")](0));for(const t of Array[ga("0x0")](x[ga("0x25")]()))i[ga("0x7e")](t,o,ga("0x55"));const t=s[ga("0x3d")][ga("0x20")](n[ga("0x80")]),e=s[ga("0x29")].includes(n.column);t||e||(l=i[ga("0x8e")](o))}else c&&!a&&(u=i[ga("0x8e")](o));else{const t=i[ga("0x3b")](ga("0x70")),e=i.createElement(ga("0x70"));i[ga("0x72")](i.createRangeIn(o),e),i[ga("0x7e")](t,o,0);for(const e of Array.from(x[ga("0x25")]()))i[ga("0x7e")](e,t,"end");l=i[ga("0x5b")](t),u=i.createRangeOn(e)}const d=Array.from(x[ga("0x3a")]())[ga("0x6d")]((([t])=>fa[ga("0x20")](t)));s.cells[ga("0x18")]({element:o,attributes:d[ga("0x4")]?Object.fromEntries(d):null}),l&&s[ga("0x90")].push(l),u&&s[ga("0x1b")][ga("0x18")](u)}),{priority:ga("0x78")}),r.on(ga("0x9c"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0x7c")]||1;s[ga("0x29")]=new Array(a)[ga("0x27")](x)[ga("0x69")](((t,e)=>t+e));for(const{cell:e}of r[ga("0x91")](i,{startColumn:x,endColumn:x+a-1}))s[ga("0x68")][ga("0x18")](t[ga("0x23")].createRangeOn(e))}),{priority:ga("0x85")}),r.on(ga("0x2a"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o.rows||1;s[ga("0x3d")]=new Array(a)[ga("0x27")](x).map(((t,e)=>t+e));for(const{cell:e}of r[ga("0x91")](i,{startRow:x,endRow:x+a-1}))s[ga("0x93")][ga("0x18")](t[ga("0x23")][ga("0x5b")](e))}),{priority:ga("0x85")}),n._descriptionFactory[ga("0x6")]((e=>{if(e[ga("0x2c")]&&e.subType[ga("0x15")](ga("0x9")))return e.previous?{}:{type:"insertion",content:Yr(t[ga("0x5")],ga("0x74"))}}));const x=()=>!1;for(const t of[ga("0x9"),ga("0xe"),ga("0x71"),ga("0x6c")])n._suggestionFactory[ga("0x2")]("insertion",t,ga("0x5a"),x),n[ga("0xa0")].registerCustomCallback(ga("0x35"),t,ga("0x5a"),x),n[ga("0xa0")][ga("0x2")](ga("0x8a"),t,ga("0x5a"),x);n._suggestionFactory.registerCustomCallback(ga("0x8a"),"tablePasteCell",ga("0x37"),x),n[ga("0xa0")][ga("0x2")]("formatBlock",ga("0x6c"),"accept",((e,n,r)=>{const i=e[ga("0x69")]((t=>t.getContainedElement()))[ga("0x6d")]((t=>t)),o=new Map(i[ga("0x69")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s.cells)e&&o.set(t,e);else if(r&&r[ga("0x24")])for(const[e,n]of Object[ga("0xa1")](r[ga("0x24")])){const r=t[ga("0x23")].markers[ga("0x9f")](e),i=r?r.getRange()[ga("0xa5")]():null;i&&o[ga("0x9e")](i,n)}t[ga("0x23")][ga("0x34")]((t=>{for(const[e,n]of o)t[ga("0x8f")]({...ha,...n},e)}))}));const a=(e,r)=>{n[ga("0xa0")][ga("0x2")](e,ga("0x9"),r,((i,o,s)=>{t[ga("0x23")][ga("0x34")]((t=>{const x=[];for(const t of i){const e=t[ga("0x1d")][ga("0x30")];e.is(ga("0x9a"),ga("0x70"))&&x.push(e)}n[ga("0xa0")][ga("0x77")](e,null,r)(i,o,s);for(const e of x)ga("0xb")!=e[ga("0x19")].rootName&&t.unwrap(e)}))}))};a(ga("0x38"),ga("0x1a")),a("insertion",ga("0x37")),a(ga("0x35"),"accept"),a(ga("0x35"),ga("0x37")),n[ga("0xa0")].registerCustomCallback(ga("0x38"),ga("0x71"),ga("0x37"),(t=>{const e=t.map((t=>t[ga("0xa5")]())),n=e[0][ga("0x7f")]("table"),{minRow:o,maxRow:s}=i[ga("0x2b")](e);r[ga("0xd")](n,{at:o,rows:s-o+1})})),n._suggestionFactory.registerCustomCallback(ga("0x38"),"tablePasteColumn","discard",(t=>{const e=t[ga("0x69")]((t=>t.getContainedElement())),n=e[0].findAncestor(ga("0x62")),{minColumn:o,maxColumn:s}=i[ga("0x2b")](e);r[ga("0x1")](n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e[ga("0x2c")]||!e.subType[ga("0x15")](ga("0x9")))return;const r=e[ga("0x63")][ga("0x45")],i=n[ga("0x21")]()[ga("0x6d")]((t=>t[ga("0x22")]&&t[ga("0x63")]&&t.attributes[ga("0x45")]==r));i[ga("0x4")]&&e.getAllAdjacentSuggestions().length!=i[ga("0x4")]&&i.reduce(((t,e)=>(t.next=e,e[ga("0x1e")]=t,e)))};function l(t,e=!0){const{id:r}=n._splitMarkerName(t.markerName),i=[ga("0x51"),ga("0x67")],o=n[ga("0x2d")][ga("0x20")](t[ga("0x61")]);return o&&i[ga("0x18")](ga("0x60")),{classes:i,attributes:{"data-suggestion":r},priority:o&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:ga("0x78")}),n.on(ga("0x4e"),c,{priority:"high"}),t[ga("0x23")][ga("0x7")][ga("0x73")]((()=>{let e=!1;const r=Array[ga("0x0")](t[ga("0x23")][ga("0x7")].differ.getChangedMarkers());for(const{name:i,data:o}of r){const{group:r,type:s,id:x}=n[ga("0x87")](i);if(ga("0xa2")!=r||"deletion"!=s||o[ga("0x95")])continue;if(!n[ga("0x33")](x))continue;const a=n[ga("0x76")](x)[ga("0xf")](),c=t[ga("0x98")][ga("0x9f")](ga("0xa6")).me;for(const t of n[ga("0x21")]())if(t[ga("0x22")]&&t[ga("0xa3")]==c&&ga("0x8a")==t[ga("0x43")]&&ga("0x6c")==t[ga("0x2c")]&&t[ga("0xf")]().every((t=>a[ga("0x57")]((e=>e[ga("0x7b")](t,!0))))))for(const n of t[ga("0x88")]())n[ga("0x22")]&&(n[ga("0x37")](),e=!0)}return e})),t[ga("0x23")][ga("0x7")][ga("0x73")]((e=>{const r=t[ga("0x8")][ga("0x9f")]("redo");if(!r||!r[ga("0xa")].has(e[ga("0x50")]))return!1;let i=!1;const o=t[ga("0x98")][ga("0x9f")]("Users").me,s=t[ga("0x23")].document[ga("0x2e")].getChanges(),x=Array[ga("0x0")](t[ga("0x23")][ga("0x7")].differ.getChangedMarkers())[ga("0x6d")]((({name:t,data:e})=>{const{group:r,subType:i,authorId:s}=n[ga("0x87")](t);return ga("0xa2")==r&&ga("0x9")==i&&s==o.id&&!e[ga("0x95")]}));for(const t of s){if(ga("0x7e")!=t[ga("0x43")]||ga("0x70")!=t.name||1!=t[ga("0x4")])continue;const n=e[ga("0x3")](t[ga("0x16")],t[ga("0x16")][ga("0x26")](1));if(!x[ga("0x49")]((({data:t})=>t[ga("0x4b")][ga("0x31")](n))))for(const{name:t,data:r}of x)if(n.containsRange(r[ga("0x4b")])){e[ga("0x42")](t,{range:n}),i=!0;break}}return i})),t[ga("0x23")][ga("0x7")][ga("0x73")]((e=>{let r=!1;const i=t.plugins[ga("0x9f")]("Users").me,o=n.getSuggestions()[ga("0x6d")]((t=>t[ga("0x22")]&&t.author==i)),s=new Set,x=new Set;for(const t of o)if(ga("0x9")==t[ga("0x2c")])for(const e of t[ga("0xc")]()){const n=e[ga("0x6e")]()[ga("0xa5")]();if(n)if(n.is(ga("0x9a"),ga("0x70"))&&pa(n)){t[ga("0x8c")](e[ga("0x4d")]),s[ga("0x64")](n),r=!0;const i=n[ga("0x36")],o=n[ga("0x1c")],a=i&&i.is("element","tableCellSuggestion"),c=o&&o.is(ga("0x9a"),ga("0x70"));a&&!s.has(i)&&x.add(i),c&&!s.has(o)&&x[ga("0x64")](o)}else n.is(ga("0x9a"),"paragraph")&&n[ga("0x56")]&&(t[ga("0x8c")](e[ga("0x4d")]),r=!0)}else if(ga("0x6c")==t[ga("0x2c")]){if(!t[ga("0x63")]||!t.attributes[ga("0x45")])continue;const e=t[ga("0x63")][ga("0x24")];if(e&&Object[ga("0x96")](e)[ga("0x4")])continue;const n=t[ga("0x63")].tablePasteChainId;let i=!0,s=!0;for(const e of o)if(e[ga("0x2c")]&&e[ga("0x2c")][ga("0x15")]("tablePaste")){if(!e[ga("0x63")][ga("0x45")]){s=!1;break}if(e.id!=t.id&&e[ga("0x63")].tablePasteChainId==n){i=!1;break}}s&&i&&(t[ga("0x52")](),r=!0)}for(const t of s)e[ga("0x65")](t);for(const t of x)e.unwrap(t);return r})),t[ga("0x28")][ga("0x8d")](ga("0x5d"))[ga("0x59")]({model:ga("0x58"),view:(t,e)=>l(t),converterPriority:ga("0x78")}),t[ga("0x28")][ga("0x8d")](ga("0x7d"))[ga("0x59")]({model:ga("0x58"),view:(t,e)=>e[ga("0xa4")].showSuggestionHighlights?l(t,!1):null,converterPriority:ga("0x78")});const u=t[ga("0x5f")][ga("0x99")];this[ga("0x9d")](u[ga("0x7")],ga("0x7a"),((t,e)=>{const n=[];for(const t of u[ga("0x8e")](e[ga("0x12")])[ga("0x84")]())t.is(ga("0x9a"),ga("0x75"))&&n.push(t);u[ga("0x34")]((t=>{for(const e of n)t.move(t[ga("0x8e")](e),t[ga("0x89")](e)),t.remove(e)}))}))}}function pa(t){if(t[ga("0x56")])return!0;const e=t[ga("0x2f")](0);return e.is(ga("0x9a"),ga("0x54"))&&e[ga("0x56")]}function ba(t,e={},n){for(const{isAnchor:r,cellHeight:i,cellWidth:o}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!r||1!=i||1!=o)return!1;return!0}const Ea=["resizeTable","resizeTableWidth","registerCustomCallback","has","get","handleSuggestionDescription","document","getSuggestionCallback","TableColumnResizeEditing","handleResizeTableWidthCommand","TrackChangesEditing","subType","getSuggestions","columnWidths","table","plugins","afterInit","*Format:* resize table","bind","tableWidth","getTableColumnsWidths","change","discard","format","getColumnGroupElement","markBlockFormat","_descriptionFactory","formatBlock","_suggestionFactory","data","commandParams","accept","formatInline","getSelectedElement","type","enableCommand","author","model","locale","editor"];var _a,Ta;_a=Ea,Ta=251,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const ya=function(t,e){return Ea[t-=0]};class Ca extends t.Plugin{[ya("0x5")](){if(!this[ya("0x1c")][ya("0x4")][ya("0x20")](ya("0x25")))return;const t=this[ya("0x1c")][ya("0x4")][ya("0x21")]("TrackChangesEditing");t[ya("0x18")](ya("0x1e"),this.handleResizeTableWidthCommand[ya("0x7")](this)),t[ya("0x11")][ya("0x1f")]("formatBlock",ya("0x1d"),ya("0x14"),t[ya("0x11")].getSuggestionCallback(ya("0x10"),null,ya("0xb"))),t[ya("0x11")][ya("0x1f")](ya("0x10"),ya("0x1d"),ya("0xb"),t[ya("0x11")][ya("0x24")](ya("0x10"),null,ya("0x14"))),t[ya("0xf")].registerDescriptionCallback(this[ya("0x22")][ya("0x7")](this))}[ya("0x26")](t,e){const n=this[ya("0x1c")].plugins.get(ya("0x27")),r=this[ya("0x1c")][ya("0x4")][ya("0x21")]("TableColumnResizeEditing"),i=e[ya("0x3")]||this.editor.model[ya("0x23")].selection[ya("0x16")]();this.editor[ya("0x1a")][ya("0xa")]((()=>{const o=r[ya("0xd")](i);let s=o?r[ya("0x9")](o):null,x=i.getAttribute(ya("0x8"))||null;const a=e[ya("0x8")]||x,c=e.columnWidths||s,l=this[ya("0x1c")].plugins.get("Users").me;for(const t of n[ya("0x1")]()){const e=t.getContainedElement();if(ya("0x1d")===t[ya("0x0")]&&e===i){t[ya("0x19")]!==l&&t[ya("0xb")]();const e=t[ya("0x12")][ya("0x13")];x=e[0][ya("0x8")],s=e[0][ya("0x2")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[ya("0xe")](i,{commandName:ya("0x1e"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:ya("0x1d")},[],ya("0x1d"))}))}handleSuggestionDescription(t){if(ya("0x10")!=t[ya("0x17")]&&ya("0x15")!=t[ya("0x17")])return;const{data:e}=t;if(e&&ya("0x1d")===e.formatGroupId){const t=ya("0x6");return{type:ya("0xc"),content:Yr(this[ya("0x1c")][ya("0x1b")],t)}}}}const Aa=["insertTemplate","get","plugins","TrackChangesEditing","editor"];var ka,Ia;ka=Aa,Ia=176,function(t){for(;--t;)ka.push(ka.shift())}(++Ia);const Sa=function(t,e){return Aa[t-=0]};class Ra extends t.Plugin{afterInit(){const t=this[Sa("0x3")];t[Sa("0x1")].has("Template")&&t[Sa("0x1")][Sa("0x0")](Sa("0x2")).enableCommand(Sa("0x4"))}}const va=["insertTableOfContents","registerElementLabel","plugins","ELEMENT_TABLE_OF_CONTENTS","locale","tableOfContents","get","afterInit","TrackChangesEditing","enableCommand"];var Na,La;Na=va,La=258,function(t){for(;--t;)Na.push(Na.shift())}(++La);const Ma=function(t,e){return va[t-=0]};class wa extends t.Plugin{[Ma("0x9")](){const t=this.editor;if(!t.commands[Ma("0x8")](Ma("0x2")))return;t[Ma("0x4")].get("TrackChangesEditing")[Ma("0x1")]("insertTableOfContents");const e=t.plugins[Ma("0x8")](Ma("0x0")),n=t[Ma("0x6")];e._descriptionFactory[Ma("0x3")](Ma("0x7"),(t=>Yr(n,Ma("0x5"),t)))}}const Oa=["isEqual","document","start","getNearestSelectionRange","forward","plugins","registerElementLabel","newRange","differ","_splitMarkerName","afterInit","has","TrackChangesEditing","model","end","registerPostFixer","nodeBefore","title-content","removeMarker","get","from","Title","locale","isTouching","isCollapsed","suggestion"];var Fa,Da;Fa=Oa,Da=332,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Pa=function(t,e){return Oa[t-=0]};class Ba extends t.Plugin{[Pa("0x10")](){const t=this.editor;if(!t[Pa("0xb")][Pa("0x11")](Pa("0x1")))return;const e=t[Pa("0xb")][Pa("0x19")](Pa("0x12"));e._descriptionFactory[Pa("0xc")](Pa("0x17"),(()=>Yr(t[Pa("0x2")],"ELEMENT_TITLE"))),t[Pa("0x13")][Pa("0x7")][Pa("0x15")]((n=>{let r=!1;const i=Array[Pa("0x0")](t[Pa("0x13")][Pa("0x7")][Pa("0xe")].getChangedMarkers());for(const{name:o,data:s}of i){const{group:i}=e[Pa("0xf")](o);if(Pa("0x5")!==i||!s[Pa("0xd")])continue;const x=s[Pa("0xd")],a=x[Pa("0x14")][Pa("0x16")];if(!a||!a.is("element",Pa("0x17")))continue;if(!x[Pa("0x8")][Pa("0x3")](x[Pa("0x14")]))continue;const c=t.model.schema[Pa("0x9")](x[Pa("0x14")],Pa("0xa"));if(c&&c[Pa("0x4")]){const t=n.createRange(x[Pa("0x8")],c[Pa("0x8")]);t[Pa("0x6")](x)||(n.updateMarker(o,{range:t}),r=!0)}r||(n[Pa("0x18")](o),r=!0)}return r}))}}const Ua=["afterInit","redo","editor","plugins","get"];var ja,Ga;ja=Ua,Ga=402,function(t){for(;--t;)ja.push(ja.shift())}(++Ga);const Va=function(t,e){return Ua[t-=0]};class Ha extends t.Plugin{[Va("0x3")](){const t=this[Va("0x0")],e=t[Va("0x1")][Va("0x2")]("TrackChangesEditing");t.plugins.has("UndoEditing")&&(e.enableCommand("undo"),e.enableCommand(Va("0x4")))}}const za=["enableCommand","plugins","has","requires","TrackChangesEditing","editor","get","afterInit","toggleTableCaption"];var Wa,Ka;Wa=za,Ka=198,function(t){for(;--t;)Wa.push(Wa.shift())}(++Ka);const qa=function(t,e){return za[t-=0]};class Xa extends t.Plugin{static get[qa("0x3")](){return[Yx]}[qa("0x7")](){const t=this[qa("0x5")];t.plugins[qa("0x2")]("TableCaptionEditing")&&t[qa("0x1")][qa("0x6")](qa("0x4"))[qa("0x0")](qa("0x8"))}}const $a=["findAncestor","editor","TrackChangesEditing","getAttribute","tableCellProperties","TableUtils","table","pluginName","setAttribute","tableProperties","_descriptionFactory","getSuggestionCallback","tableCellBorderColor","tableBorderStyle","formatBlock","handleDiscardAction","_getSuggestion","*Format:* change table properties","afterInit","change","_handlePropertyChange","_suggestionFactory","nodeAfter","format","plugins","registerDescriptionCallback","TrackChangesTableProperties","tableCellVerticalAlignment","subType","join","getSelectionAffectedTableCells","discard","tableCellBorderStyle","locale","get","registerCustomCallback","tableCellHeight","document","handleSuggestionDescription","tableHeight","enqueueChange","getContainedElement","tableCellBorderWidth","getSuggestions","tableCellPadding","accept","tableBackgroundColor","TablePropertiesEditing","model","enableCommand","tableCellHorizontalAlignment","getFirstPosition"];var Za,Qa;Za=$a,Qa=182,function(t){for(;--t;)Za.push(Za.shift())}(++Qa);const Ya=function(t,e){return $a[t-=0]};class Ja extends t.Plugin{constructor(t){super(t),this.tableProperties=["tableBorderColor",Ya("0x27"),"tableBorderWidth","tableAlignment","tableWidth",Ya("0xd"),Ya("0x14")],this[Ya("0x1e")]=[Ya("0x26"),Ya("0x6"),Ya("0x10"),Ya("0x12"),"tableCellWidth",Ya("0xa"),"tableCellBackgroundColor",Ya("0x18"),Ya("0x1")]}static get[Ya("0x21")](){return Ya("0x0")}[Ya("0x2c")](){const t=this[Ya("0x1b")].plugins[Ya("0x8")](Ya("0x1c"));if(this.editor[Ya("0x32")].has(Ya("0x15"))){for(const e of this[Ya("0x23")])t[Ya("0x17")](e,((t,n)=>{const r=this[Ya("0x1b")][Ya("0x16")][Ya("0xb")].selection[Ya("0x19")]()[Ya("0x1a")](Ya("0x20"));this[Ya("0x2e")](e,[r],this[Ya("0x23")],Ya("0x23"),t,n)}));t[Ya("0x2f")].registerCustomCallback("formatBlock",Ya("0x23"),Ya("0x13"),t[Ya("0x2f")][Ya("0x25")](Ya("0x28"),null,"discard")),t._suggestionFactory[Ya("0x9")](Ya("0x28"),Ya("0x23"),Ya("0x5"),((t,e)=>this.handleDiscardAction(this[Ya("0x23")],t,e))),t[Ya("0x2f")].registerCustomCallback(Ya("0x28"),"tableProperties",Ya("0x3"),(()=>!1))}if(this[Ya("0x1b")][Ya("0x32")].has("TableCellPropertiesEditing")){for(const e of this[Ya("0x1e")])t[Ya("0x17")](e,((t,n)=>{const r=this[Ya("0x1b")][Ya("0x32")][Ya("0x8")](Ya("0x1f"))[Ya("0x4")](this[Ya("0x1b")][Ya("0x16")][Ya("0xb")].selection);this[Ya("0x2e")](e,r,this[Ya("0x1e")],Ya("0x1e"),t,n)}));t._suggestionFactory[Ya("0x9")](Ya("0x28"),Ya("0x1e"),"accept",t._suggestionFactory.getSuggestionCallback("formatBlock",null,"discard")),t[Ya("0x2f")][Ya("0x9")](Ya("0x28"),"tableCellProperties","discard",((t,e)=>this[Ya("0x29")](this[Ya("0x1e")],t,e))),t._suggestionFactory[Ya("0x9")](Ya("0x28"),Ya("0x1e"),Ya("0x3"),(()=>!1))}t[Ya("0x24")][Ya("0x33")]((t=>this[Ya("0xc")](t)))}[Ya("0x2e")](t,e,n,r,i,o){const s=this[Ya("0x1b")].plugins[Ya("0x8")](Ya("0x1c"));this[Ya("0x1b")][Ya("0x16")][Ya("0xe")](o.batch,(()=>{for(const t of e)if(this[Ya("0x2a")](t,r))i(o);else{const e={};for(const r of n){const n=t[Ya("0x1d")](r);void 0!==n&&(e[r]=n)}i(o),s.markBlockFormat(t,{commandParams:[e]},[],r)}}))}[Ya("0x29")](t,e,n){const r=e[0].start[Ya("0x30")],i=n.commandParams[0];this[Ya("0x1b")][Ya("0x16")][Ya("0x2d")]((e=>{for(const n of t)void 0!==i[n]?e[Ya("0x22")](n,i[n],r):e.removeAttribute(n,r)}))}[Ya("0xc")](t){if(t.data)switch(t[Ya("0x2")]){case"tableProperties":return{type:Ya("0x31"),content:Yr(this[Ya("0x1b")][Ya("0x7")],Ya("0x2b"))};case Ya("0x1e"):return{type:Ya("0x31"),content:Yr(this[Ya("0x1b")].locale,"*Format:* change table cell properties")}}}[Ya("0x2a")](t,e){const n=this[Ya("0x1b")][Ya("0x32")][Ya("0x8")](Ya("0x1c"));for(const r of n[Ya("0x11")]({skipNotAttached:!0})){const n=r[Ya("0xf")]();if(r[Ya("0x2")]===e&&n===t)return r}return null}}var tc=Function.prototype,ec=Object.prototype,nc=tc.toString,rc=ec.hasOwnProperty,ic=nc.call(Object);const oc=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=rc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&nc.call(n)==ic};const sc=function(t){return oc(t)?void 0:t};var xc=it?it.isConcatSpreadable:void 0;const ac=function(t){return ge(t)||de(t)||!!(xc&&t&&t[xc])};const cc=function t(e,n,r,i,o){var s=-1,x=e.length;for(r||(r=ac),o||(o=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,i,o):sn(o,a):i||(o[o.length]=a)}return o};const lc=function(t){return(null==t?0:t.length)?cc(t,1):[]};const uc=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 dc=Math.max;const gc=function(t,e,n){return e=dc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=dc(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=r[i];return x[e]=n(s),uc(t,this,x)}};const fc=function(t){return function(){return t}};const hc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:fc(e),writable:!0})}:function(t){return t};var mc=Date.now;const pc=function(t){var e=0,n=0;return function(){var r=mc(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(hc);const bc=function(t){return pc(gc(t,void 0,lc),t+"")}((function(t,e){var n={};if(null==t)return n;var r=!1;e=ur(e,(function(e){return e=mr(e,t),r||(r=e.length>1),e})),oe(t,dn(t),n),r&&(n=tr(n,7,sc));for(var i=e.length;i--;)Wr(n,e[i]);return n})),Ec=["substr","track-changes-suggestion-data-mismatch","marker-count","_isDataLoaded","get","consume","_getMarkerAnnouncementText","containsRange","addComment","_updateSuggestionData","editing","removeMarkers","plugins","acceptSelectedSuggestions","trackChanges.mergeNestedSuggestions","data-suggestion","set","formatInline:","isIntersecting","documentSelection","isOwn","oldValue","getItems","_splitMarkerName","batch","filter","insertion:join","_suggestionFactory","announce","toJSON","config","_addThreadToSuggestion","deletion:join","@external","containsPosition","commands","parent","removeComment","attributeKey","lowest","clone","document","from","_suggestions","suggestion:","length","_commentsRepository","getAllAdjacentSuggestions","_adapter","isNextTo","for","markerReady","attributeOldValue","addClass","model","_getAttributeKey","markMultiRangeInsertion","backward","createRangeIn","comments","markInlineFormat","getCommentThread","addMarker:suggestion:formatBlock","_isForcedDefaultExecutionBlock","after","createElement","newRange","markInsertion","subType","accept","PendingActions","change:data","multi","_afterChanges","_SUGGESTION_ANNOUNCEMENT","isUndo","createRangeOn","init","low","then","change:_saved","isBlock","discardSuggestion","_getExternalAuthor","addSuggestionData","addMarker:suggestion:attribute","markers","end","addMarker","highest","pop","setSelection","dataReady","_mergeNestedSuggestions","change:activeMarkers","listenTo","getRange","isLimit","ck-suggestion-marker","default","attributeNewValue","PENDING_ACTION_SUGGESTION","skipNestingCheck","includes","unbindElementFromMarkerName","range","formatGroupId","attribute:join","attribute","addHighlight","_refreshSuggestionsChain","_onDiscard","rootName","setTo","format","trackChangesCommand","insert","element","oldRange","_setSuggestionData","multipleBlocks","forEach","attribute:","type","addRange","getSuggestion","isRemovable","move","markMultiRangeDeletion","delete","trackChanges","_handleNewSuggestionMarker","_isBlockAttribute","fire","forceDefaultExecution","define","return","reconvertMarker","push","editingDowncast","head","suggestionLoaded","catch","isBefore","unshift","getChangedMarkers","deleteContent","splice","isTouching","showSuggestionHighlights","previous","ready","_removeSuggestion","writer","containsRangeInObject","elementStart","_rangeIsInLocalUserInsertion","schema","adapter","registerPostFixer","$text","formatInline:accept","getMultiRangeId","insertion:accept","external:","dataToMarker","addMarkerName","attribute:discard","createRange","tablePasteChainId","change","data","options","discardAllSuggestions","Users","elementEnd","keys","_suggestionState","formatInline:chain","createPositionAfter","_initAriaMarkerChangeAnnouncements","mapper","refresh","_findSuggestions","howMany","map","enqueueChange","getAttribute","suggestionUnloaded","substring","elementToElement","meta","_element","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.","commentThread","ck-suggestion-marker-formatBlock","addCommentThread","nodeAfter","_checkSuggestionCorrectness","markDeletion","_saved","getRanges","always","high","_recordAttributeSuggestions","unbind","add","removed","before","forward","toViewElement","isLocal","isAfter","deletion:","isInContent","discardSelectedSuggestions","_model","buildSuggestion","getUser","never","activeMarkers","getDifference","$elementName","getCustomProperty","attribute:accept","formatBlock:","_recordAttributeChanges","getFirstMarker","selection","_setSuggestionRange","editor","commandName","removeMarker","sort","getWalker","join","containsItem","group","isArray","consumable","suggestion","_addSuggestionMarker","acceptSuggestion","_registerBlockAttribute","_inlineAttributeKeys","LEAVE","_joinSuggestions","formatInline:join","ariaLiveAnnouncer","hasComments","removeClass","formatBlock","every","attributes","updateMarker","originalSuggestionId","_descriptionFactory","stopListening","createPositionAt","getIntersection","addSuggestion","getLastMatchingPosition","creator","_editor","author","isObject","values","$graveyard","updateSuggestion","root","isMultiRange","pluginName","_blockAttributeKeys","assign","createdAt","_refreshAttributeSuggestionsChain","removeMarker:suggestion:formatBlock","_joinWithAdjacentSuggestions","key","size","getSuggestions","notReady","differ","enableCommand","_enableDefaultAttributesIntegration","nodeBefore","upcast","_registerInlineAttribute","_getSuggestionData","isAtEnd","track-changes-command-not-found","registerCustomCallback","execute","getContainedElement","getSuggestionCallback","addMarker:suggestion","trackChanges.trackFormatChanges","requires","rejected","isInsideObject","suggestionChanged","_reduceExistingSuggestions","formatInline","normal","insertion","deletion:chain","find","markAttributeChange","enableReadOnlyMode","start","item","getAncestors","discard","locale","_breakSuggestionMarker","isDocumentOperation","track-changes-adapter-already-set","has","value","rename","_cutOutSuggestionMarker","ck-suggestion-marker-formatInline","formatBlock:discard","setAttribute","newValue","getChanges","isSelectable","stop","_enabledCommands","position","isIntersectingWithRange","_reduceSuggestionAttributeRange","_trackFormatChanges","toUpperCase","insertContent","resolve","isEqual","FORMATTING","formatBlock:accept","detach","removeMarker:suggestion:attribute","ck-suggestion-marker--active","_createSuggestion","$textProxy","markBlockFormat","acceptAllSuggestions","markerName","widget","_processAttributeSuggestions","insertion:","_customCallbacks","split","conversion","concat","chain","rethrowUnexpectedError","groupId","isCollapsed","markerNameToElements","CommentsRepository","name","getFirstRange","_defaultCallbacks","next","deletion","collaboration.channelId","remove","insertion:discard","fromCharCode","removeAttribute","createSelection","dataDowncast","startsWith","markerToHighlight","some","isAtStart"];var _c,Tc;_c=Ec,Tc=433,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]},Cc="$elementName";class Ac extends t.Plugin{static get[yc("0xf0")](){return[yc("0x12e"),o.Users,t.PendingActions,ai,gi,Ei,Ai,Fi,Ni,ji,Ki,io,Ao,vo,Fo,jo,Ko,Qo,ns,xs,ds,ys,ps,Ss,Ms,Ps,qs,tx,Vs,co,mo,ox,lx,hx,_x,Ix,Lx,Dx,Vx,qx,Yx,ia,ca,Xa,ma,Ca,wa,Ja,Ra,Ba,Ha]}static get[yc("0xd6")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[yc("0x80")]((t=>String[yc("0x137")](t)))[yc("0xb2")]("")}super(t),this[yc("0x93")]=!1,this.set(yc("0xa3"),[]),this.on(yc("0x25"),((e,n,r,i)=>{this._model[yc("0x71")]((()=>{for(const e of[...i,...r])this[yc("0x9f")][yc("0x1d")][yc("0x104")](e)&&t[yc("0x149")][yc("0x50")](e)}))})),this[yc("0xc7")]=new ri(this.editor.model[yc("0x64")],this[yc("0xad")].locale),this[yc("0x16f")]=null,this._suggestionFactory=new kc(this[yc("0xad")]),this[yc("0x16a")]=new Map,this[yc("0x16d")]=t[yc("0x14b")][yc("0x143")](yc("0x12e")),this[yc("0x10f")]=new Set,this[yc("0x9f")]=this[yc("0xad")][yc("0x175")],this._suggestionState=new WeakMap,this._isForcedDefaultExecutionBlock=!1,this._blockAttributeKeys=new Set([yc("0xa5")]),this[yc("0xbb")]=new Set,t[yc("0x15d")][yc("0x4e")](yc("0xef"),yc("0x2a")),this[yc("0x113")]=t[yc("0x15d")][yc("0x143")](yc("0xef")),t[yc("0x15d")][yc("0x4e")](yc("0x14d"),!0),this[yc("0x24")]=t.config.get("trackChanges.mergeNestedSuggestions"),this.trackChangesCommand=new d(t,this[yc("0x10f")]),this[yc("0x7b")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,56,48,52,48,52])}[yc("0x14")](){const t=this.editor,n=(t,e)=>{if(yc("0x33")!=t)return"ck-suggestion-marker-"+t;const n=e[yc("0x126")]("|")[0];return this[yc("0x4b")](n)?yc("0x8a"):yc("0x108")};t[yc("0x127")][yc("0x171")](yc("0x52"))[yc("0x13c")]({model:yc("0xb7"),view:t=>{const{id:e,type:r,subType:i}=this._splitMarkerName(t[yc("0x121")]),o=["ck-suggestion-marker",n(r,i)];let s=3e3;return this[yc("0xa3")][yc("0x2e")](t[yc("0x121")])&&(o[yc("0x51")](yc("0x11c")),s=3010),"deletion"==r&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[yc("0x127")][yc("0x171")](yc("0x13a")).add((e=>{e.on(yc("0xee"),((e,n,r)=>{if(!r[yc("0x73")][yc("0x5c")])return;const i=n[yc("0xfd")];if(!i)return;const o=r[yc("0x7c")][yc("0x99")](i);t[yc("0x175")][yc("0x64")][yc("0xd0")](i)&&o&&!o[yc("0xa6")](yc("0x122"))&&o.is("containerElement")&&(0,x.toWidget)(o,r[yc("0x60")])}),{priority:yc("0x92")})})),t.conversion[yc("0x171")]("dataDowncast")[yc("0x13c")]({model:yc("0xb7"),view:(t,e)=>{if(!e[yc("0x73")][yc("0x5c")])return null;const{type:r,subType:i}=this[yc("0x156")](t[yc("0x121")]);return{classes:["ck-suggestion-marker",n(r,i)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,i,o)=>{if(!i[yc("0xfd")])return;const{id:s}=this[yc("0x156")](i.markerName);if(n){const t=this[yc("0x16a")].get(s),e=this[yc("0x176")](t);if(!this[yc("0x4b")](e))return}if(i[yc("0xfd")].is(yc("0xab")))return void o[yc("0xb6")][yc("0x144")](i[yc("0xfd")],r.name);const x=o[yc("0x7c")][yc("0x99")](i[yc("0xfd")]);if(i.item.is(yc("0x3c"))&&t[yc("0x175")].schema[yc("0x18")](i.item)&&!x.getCustomProperty(yc("0x34"))){o[yc("0x60")][yc("0x174")]([yc("0x29"),yc("0x8a")],x),o.writer[yc("0x10a")](yc("0x14e"),s,x),o[yc("0x7c")].bindElementToMarker(x,i[yc("0x121")]),e&&(this[yc("0xa3")][yc("0x2e")](i.markerName)?o[yc("0x60")].addClass("ck-suggestion-marker--active",x):o[yc("0x60")][yc("0xc1")](yc("0x11c"),x));for(const e of t[yc("0x175")][yc("0x1")](i[yc("0xfd")])[yc("0x155")]())o[yc("0xb6")].consume(e,r[yc("0x12f")]);o.consumable.consume(i[yc("0xfd")],r.name)}};t[yc("0x127")][yc("0x171")](yc("0x13a"))[yc("0x95")]((t=>{t.on(yc("0x5"),((t,e,n)=>{n[yc("0x73")][yc("0x5c")]&&r({showActiveMarkers:!1})(t,e,n)}),{priority:"highest"})})),t[yc("0x127")].for(yc("0x13a"))[yc("0x95")]((t=>{t.on(yc("0x1c"),((t,e,n)=>{n[yc("0x73")].showSuggestionHighlights&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:yc("0x20")})})),t[yc("0x127")][yc("0x171")]("dataDowncast").markerToData({model:yc("0xb7"),view:(t,e)=>e[yc("0x73")].showSuggestionHighlights?null:{group:yc("0xb7"),name:t[yc("0x13f")](11)}}),t.conversion[yc("0x171")](yc("0xe5"))[yc("0x85")]({view:{name:yc("0xb7"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=yc("0x16b")+t[yc("0x82")]("suggestion-type")+":"+t[yc("0x82")]("id");return t[yc("0x82")](yc("0x141"))&&(n+=":"+t.getAttribute(yc("0x141"))),e[yc("0x8")]("$marker",{"data-name":n})}}),t[yc("0x127")].for(yc("0xe5"))[yc("0x6c")]({view:yc("0xb7")}),t[yc("0x127")][yc("0x171")](yc("0x52"))[yc("0x95")]((t=>{t.on(yc("0x5"),r(),{priority:yc("0x92")})})),t[yc("0x127")].for(yc("0x52")).add((t=>{t.on(yc("0x1c"),r({isAttributeSuggestion:!0}),{priority:"high"})})),t[yc("0x127")][yc("0x171")]("editingDowncast").add((t=>{t.on(yc("0xdb"),((t,e,n)=>{const r=n[yc("0x7c")].markerNameToElements(e[yc("0x121")]);if(r)for(const t of r)t.getCustomProperty(yc("0x34"))||(n[yc("0x60")].removeClass(["ck-suggestion-marker",yc("0x8a"),yc("0x11c")],t),n.writer[yc("0x138")](yc("0x14e"),t),n[yc("0x7c")].unbindElementFromMarkerName(t,e[yc("0x121")]))}),{priority:"high"})})),t[yc("0x127")].for("editingDowncast")[yc("0x95")]((t=>{t.on(yc("0x11b"),((t,e,n)=>{const r=n.mapper[yc("0x12d")](e.markerName);if(!r)return;const{id:i}=this[yc("0x156")](e.markerName),o=this[yc("0x16a")][yc("0x143")](i),s=this._getAttributeKey(o);if(this[yc("0x4b")](s))for(const t of r)t[yc("0xa6")](yc("0x34"))||(n.writer[yc("0xc1")]([yc("0x29"),yc("0x8a"),yc("0x11c")],t),n.writer.removeAttribute(yc("0x14e"),t),n[yc("0x7c")][yc("0x2f")](t,e[yc("0x121")]))}),{priority:yc("0x92")})})),t[yc("0x175")].document[yc("0x66")]((e=>{let n=!1;const r=Array.from(t.model.document[yc("0xe1")][yc("0x58")]()),i=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this[yc("0x156")](x);if("suggestion"!==r)continue;const d=this[yc("0x16a")][yc("0x143")](u);if(null!=a.newRange){yc("0xf5")==c&&(n=n||Rc(a[yc("0x9")],x,e,t[yc("0x175")][yc("0x64")]));const r=yc("0x33")==c&&this[yc("0x4b")](l[yc("0x126")]("|")[0]);if(a[yc("0x9")].isCollapsed||yc("0xd2")==a.newRange[yc("0xd4")][yc("0x37")]||yc("0xc2")==c&&!Nc(a[yc("0x9")])||r&&!Nc(a[yc("0x9")])||yc("0x133")==c&&(Sc(s=a[yc("0x9")])||(o=s)[yc("0xfc")].parent==o.end.nodeBefore&&o[yc("0xfc")][yc("0xe8")]))e[yc("0xaf")](x),n=!0;else{if(!d||!d[yc("0x9d")])continue;i[yc("0x95")](d)}}}var o,s;return i[yc("0xde")]>0&&(n=!!this[yc("0xdc")](i)||n),n})),t.model[yc("0x168")].registerPostFixer((e=>{let n=!1;for(const r of t[yc("0x175")][yc("0x168")][yc("0xe1")][yc("0x10c")]())if(yc("0x3b")==r[yc("0x42")])for(const r of this[yc("0x16a")].values()){if(r[yc("0xd5")]||!r[yc("0x9d")])continue;const i=yc("0xc2")==r.type,o=this._getAttributeKey(r),s=o&&this[yc("0x4b")](o);if(!i&&!s)continue;const x=r[yc("0x130")]();if(x[yc("0xfc")][yc("0x163")]!=x[yc("0x1e")][yc("0x163")]&&!x[yc("0x1e")][yc("0xe8")]){const i=t[yc("0x175")][yc("0xc9")](x[yc("0xfc")][yc("0x8c")],yc("0x1e")),o=t[yc("0x175")][yc("0x6f")](x.start,i);e[yc("0xc5")](r.getFirstMarker(),{range:o}),n=!0}}return n})),t[yc("0x175")].document[yc("0x66")]((t=>this._processAttributeChanges(t))),t[yc("0x175")].document[yc("0x66")]((t=>!t[yc("0x157")][yc("0x9a")]&&this[yc("0x123")](t))),t[yc("0x175")].on(yc("0x10"),(()=>{this[yc("0x93")]=!1})),t[yc("0x175")][yc("0x168")].on(yc("0xe"),((n,r)=>{if(!r[yc("0x9a")]||r.isUndo)return;if(!this[yc("0x93")])return;const i=t[yc("0x175")].document[yc("0xe1")].getChanges();if(0==i[yc("0x16c")])return;const o=[],s=i[yc("0x158")]((t=>yc("0x33")==t[yc("0x42")])),x=i[yc("0x158")]((t=>yc("0x3b")==t[yc("0x42")]&&yc("0x67")!=t[yc("0x12f")])),a=i[yc("0x158")]((t=>yc("0x135")==t[yc("0x42")]&&"$text"!=t[yc("0x12f")]));for(const e of s)this._isRegisteredAttribute(e.attributeKey)&&o[yc("0x51")]({key:e[yc("0x165")],newValue:e[yc("0x2b")],oldValue:e.attributeOldValue,range:Lc(e[yc("0x30")],t[yc("0x175")])});for(const e of x){const n=a[yc("0xf9")]((t=>t._element===e[yc("0x87")]));if(n){const r=Mc(e[yc("0x110")].nodeAfter,t[yc("0x175")]);n[yc("0x12f")]!==e[yc("0x12f")]&&o[yc("0x51")]({key:yc("0xa5"),newValue:e.name,oldValue:n[yc("0x12f")],range:r});for(const[t,i]of n.attributes){if(!this._isRegisteredAttribute(t))continue;const n=e[yc("0xc4")][yc("0x143")](t);i!==n&&o.push({key:t,newValue:n,oldValue:i,range:r})}for(const[t,i]of e[yc("0xc4")])this._isRegisteredAttribute(t)&&(n.attributes[yc("0x104")](t)||o.push({key:t,newValue:i,oldValue:null,range:r}))}}0!=o[yc("0x16c")]&&t[yc("0x175")][yc("0x81")](r,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:r,newValue:i}of o)this.markAttributeChange(t,e,r,i,{groupId:n});this[yc("0xf4")](t,o)}))}),{priority:yc("0x166")}),t[yc("0x175")].markers.on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[yc("0x156")](e.name),n=this[yc("0x16a")][yc("0x143")](t);n&&n.addMarkerName(e[yc("0x12f")])}})),t[yc("0x175")].document.on("change:data",(()=>{const e=Array[yc("0x169")](t.model[yc("0x168")][yc("0xe1")][yc("0x58")]())[yc("0x158")]((t=>yc("0xb7")===this[yc("0x156")](t.name)[yc("0xb4")]));if(0===e[yc("0x16c")])return;e[yc("0xb0")](((t,e)=>{const n=t[yc("0x72")][yc("0x3d")],r=e[yc("0x72")][yc("0x3d")];return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n.start[yc("0x56")](r[yc("0xfc")])?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:i}of e){const{id:e}=this._splitMarkerName(t);if(null===i[yc("0x3d")]){const e=this._handleNewSuggestionMarker(t);r.add(e)}else{const t=this[yc("0x16a")][yc("0x143")](e);null!==i.newRange||t[yc("0x9d")]?(n[yc("0x95")](t[yc("0x53")]),r[yc("0x95")](t)):this._removeSuggestion(t)}}r.size>0&&this._refreshSuggestionsChain(r);for(const t of n)this[yc("0x4c")](yc("0xf3"),t)})),t[yc("0x175")].on("applyOperation",((e,n)=>{const r=n[0];if(!this[yc("0x16a")][yc("0xde")])return;if(!r[yc("0x102")])return;if(r.batch[yc("0x12")]||!r[yc("0x157")][yc("0x9a")])return;let i,o;switch(r[yc("0x42")]){case yc("0x3b"):i=t.model[yc("0xc9")](r.position),o=i.getShiftedBy(r[yc("0x7f")]);break;case yc("0x126"):i=t.model.createPositionAt(r.splitPosition),o=t.model[yc("0xc9")](r.moveTargetPosition);break;case yc("0x46"):i=t[yc("0x175")][yc("0xc9")](r.targetPosition),o=i.getShiftedBy(r[yc("0x7f")]);break;default:return}const s=t.model.createRange(i,o);t[yc("0x175")][yc("0x71")]((()=>{for(const{suggestion:t,meta:e}of this[yc("0x7e")](s)){if(t[yc("0xd5")])continue;if(yc("0xf5")==t.type)continue;const n=this._getAttributeKey(t);if(n&&this[yc("0x4b")](n)&&"split"!=r[yc("0x42")])continue;const x=t.data&&t[yc("0x72")][yc("0x3f")];(yc("0xc2")!=t[yc("0x42")]||"split"==r[yc("0x42")]&&!x)&&(e[yc("0x61")]||"insertion"==t.type&&e.isOwn||t[yc("0x130")]()[yc("0x146")](s)&&this._breakSuggestionMarker(t,i,o))}}))}),{priority:"lowest"}),t.model.on(yc("0x59"),((e,n)=>{const r=n[0],i=n[1];if(i&&i[yc("0x4d")])return;if(this[yc("0x6")])return;if(!this[yc("0x3a")].value)return;if(r[yc("0x12c")])return;const o=t[yc("0x175")][yc("0x64")],{start:s,end:x}=r[yc("0x130")](),a=s.nodeAfter&&o[yc("0x28")](s.nodeAfter)?null:o.getNearestSelectionRange(s,yc("0x98")),c=x[yc("0xe4")]&&o[yc("0x28")](x[yc("0xe4")])?null:o.getNearestSelectionRange(x,yc("0x0")),l=t[yc("0x175")][yc("0x6f")](a?a.start:s,c?c.end:x);t[yc("0x175")][yc("0x71")]((e=>{this[yc("0x8e")](l);const n=t[yc("0x175")][yc("0x64")].getNearestSelectionRange(l[yc("0xfc")]);r.is(yc("0x152"))?e.setSelection(n):r[yc("0x38")](n)})),e[yc("0x10e")]()}),{priority:e.priorities[yc("0xf6")]+10}),t[yc("0x175")].on(yc("0x115"),((e,n)=>{const r=n[n[yc("0x16c")]-1];r&&r.forceDefaultExecution||this[yc("0x6")]||this[yc("0x3a")][yc("0x105")]&&(t[yc("0x175")][yc("0x71")]((()=>{let r=t.model[yc("0x115")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e[yc("0x4f")]=r[yc("0x167")]();const i=r[yc("0x1e")].nodeBefore,o=t.model[yc("0x64")];i&&o[yc("0x18")](i)&&!o[yc("0xd0")](i)&&(r=t[yc("0x175")][yc("0x6f")](r[yc("0xfc")],t.model.createPositionAt(i,"end"))),this.markInsertion(r)})),e[yc("0x10e")]())}),{priority:yc("0x92")}),this[yc("0xad")][yc("0x162")][yc("0x95")](yc("0x49"),this.trackChangesCommand),this.enableCommand(yc("0x49"));const i=new p(t,this[yc("0x16a")]);t.commands[yc("0x95")](yc("0xb9"),i),this[yc("0xe2")](yc("0xb9"));const o=new y(t,this[yc("0x16a")]);t[yc("0x162")][yc("0x95")](yc("0x19"),o),this.enableCommand(yc("0x19")),t.commands[yc("0x95")]("acceptAllSuggestions",new F(t,i,this[yc("0x16a")])),this[yc("0xe2")](yc("0x120")),t[yc("0x162")][yc("0x95")](yc("0x74"),new F(t,o,this[yc("0x16a")])),this[yc("0xe2")]("discardAllSuggestions"),t[yc("0x162")].add(yc("0x14c"),new j(t,i,this[yc("0x16a")])),this[yc("0xe2")]("acceptSelectedSuggestions"),t[yc("0x162")].add(yc("0x9e"),new j(t,o,this[yc("0x16a")])),this[yc("0xe2")](yc("0x9e"));const s=t.plugins[yc("0x143")](yc("0x12e"));this[yc("0x26")](s,yc("0x147"),((t,{threadId:e})=>{const n=this[yc("0x16a")].get(e);n&&n.commentThread&&1===n[yc("0x89")].length&&this[yc("0x148")](e,{hasComments:!0})}),{priority:yc("0x15")}),this[yc("0x26")](s,yc("0x164"),((t,{threadId:e})=>{const n=this[yc("0x16a")][yc("0x143")](e);n&&n[yc("0x89")]&&!n[yc("0x89")][yc("0x16c")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:yc("0x15")})}set[yc("0x65")](t){if(this[yc("0x16f")])throw new e.CKEditorError(yc("0x103"),this);this[yc("0x16f")]=t}get[yc("0x65")](){return this[yc("0x16f")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[yc("0x16a")].values())t&&!e[yc("0x9d")]||n[yc("0x51")](e);return e?n[yc("0x80")]((t=>t[yc("0x15c")]())):n}[yc("0x44")](t){const n=this[yc("0x16a")].get(t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}hasSuggestion(t){return this[yc("0x16a")].has(t)}[yc("0x1b")](t){const{authorId:e,id:n,attributes:r}=t,[i,o]=t[yc("0x42")][yc("0x126")](":"),s=this._suggestions[yc("0x143")](n)||this[yc("0x11d")](i,o,n,e,r);if(this[yc("0x15e")](s),this._checkSuggestionCorrectness(s,i,o||null,e),s[yc("0xd9")]=t[yc("0xd9")],s._isDataLoaded=!0,r&&r["@external"]){const t=r[yc("0x160")],e=this[yc("0x1a")](t.authorName);s.authoredAt=t[yc("0xd9")],s[yc("0xcf")]=e,s.isExternal=!0}else s.authoredAt=t[yc("0xd9")];switch(t[yc("0x72")]&&(s[yc("0x72")]=t[yc("0x72")]),t[yc("0xc4")]&&(s.attributes=t[yc("0xc4")]),this[yc("0x16f")]&&this._adapter[yc("0xcb")]||(s._saved=!0),this[yc("0x78")][yc("0x143")](s)){case"notReady":this._suggestionState[yc("0x14f")](s,yc("0x23"));break;case"markerReady":s[yc("0x9d")]?(this._joinWithAdjacentSuggestions(new Set([s])),this[yc("0x35")](new Set([s])),this[yc("0x78")][yc("0x14f")](s,yc("0x5e")),this[yc("0x4c")](yc("0x54"),s)):this[yc("0x78")][yc("0x14f")](s,yc("0x96"))}return s}[yc("0xb9")](t){this[yc("0x4d")]((()=>{this[yc("0xad")][yc("0x175")][yc("0x71")]((()=>{for(const e of t[yc("0x16e")]())e.accept()}))}))}discardSuggestion(t){this[yc("0x4d")]((()=>{this[yc("0xad")][yc("0x175")][yc("0x71")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[yc("0xff")]()}))}))}enableCommand(t,n){const r=this[yc("0xad")][yc("0x162")][yc("0x143")](t);if(!r)throw new e.CKEditorError(yc("0xe9"),this,{commandName:t});if(this._enabledCommands.has(r))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this[yc("0x10f")][yc("0x95")](r),n&&r.on(yc("0xeb"),((t,e)=>{this.trackChangesCommand.value&&(this[yc("0x6")]||(e[yc("0x16c")]>0&&e[e.length-1]&&e[e[yc("0x16c")]-1][yc("0x4d")]?e[yc("0x21")]():(t[yc("0x4f")]=n(((...t)=>r.execute(...t,{forceDefaultExecution:!0})),...e),t.stop())))}),{priority:yc("0x92")})}[yc("0x4d")](t){let n,r;const i=this[yc("0x6")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){r=t}return i||(this[yc("0x6")]=!1),r&&e.CKEditorError[yc("0x12a")](r,this),n}[yc("0xa")](t,n=null,r={}){if(t[yc("0x12c")])return null;const i=this[yc("0xad")][yc("0x14b")][yc("0x143")](yc("0x75")).me;for(const{suggestion:e,meta:i}of this._findSuggestions(t,"insertion"))if(i[yc("0x153")]){if(!i[yc("0x170")]){if(i[yc("0x61")]){if(!this[yc("0x24")]||!Fc(e,r))continue;return e}if(Fc(e,r))return e;this._breakSuggestionMarker(e,t[yc("0xfc")],t[yc("0x1e")]);break}if(n==e[yc("0xb")]&&Fc(e,r)){const n=e.getFirstRange();return n[yc("0xfc")][yc("0x117")](t[yc("0x1e")])?this[yc("0xac")](e,this[yc("0x9f")][yc("0x6f")](t[yc("0xfc")],n[yc("0x1e")])):this._setSuggestionRange(e,this[yc("0x9f")].createRange(n[yc("0xfc")],t.end)),e}}const o=(0,e.uid)(),s=i.id,x=n?yc("0x124")+n:"insertion",a=this[yc("0x3e")]({id:o,type:x,createdAt:new Date,authorId:s,attributes:r});return this._addSuggestionMarker(x,o,s,t),a}[yc("0x177")](t,n=yc("0xf"),r={}){const i=this.editor[yc("0x14b")][yc("0x143")](yc("0x75")).me,o=this[yc("0x15a")][yc("0xed")](yc("0xf7"),n,yc("0xb2"));for(const e of this[yc("0xdf")]())if(e[yc("0xcf")].id==i.id&&yc("0xf7")==e[yc("0x42")]&&e[yc("0xb")]==n&&Fc(e,r)&&(o(e[yc("0x90")](),t)||o(t,e[yc("0x90")]()))){for(const n of t)e[yc("0x43")](n);return e}for(const{suggestion:e,meta:n}of this[yc("0x7e")](t,yc("0xf7"))){if(!n[yc("0x153")])continue;if(!this._mergeNestedSuggestions&&n.containsRangeInObject)continue;if(!Fc(e,r))continue;let i=!0;for(const n of e[yc("0x90")]())for(const e of t)if(!n[yc("0x146")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a="insertion:"+n,c=this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this[yc("0xb8")](a,s,x,e,Qr[yc("0x69")]());return c}[yc("0x3")](t,n,r=null,i={}){if(r=r||vc(n),t[yc("0x12c")])return null;if(yc("0xa2")===this[yc("0x113")]){const e=this[yc("0x15a")].getSuggestionCallback(yc("0xf5"),r,yc("0xc"));return this.forceDefaultExecution((()=>e([t],n,i))),null}const o=this[yc("0xad")][yc("0x14b")].get(yc("0x75")).me,s=[];if("always"!==this[yc("0x113")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0xf7")))n[yc("0x153")]&&!n[yc("0xf2")]&&s.push(...e[yc("0x90")]());const x=function(t,e){const n=[];for(const r of e){const e=t.getIntersection(r);e&&n.push(e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[yc("0x16c")];){const r=n[e][yc("0xa4")](t);n[yc("0x5a")](e,1,...r),e+=r[yc("0x16c")]}}return n}(t,s);x[yc("0x16c")]&&this._model.change((()=>{for(const t of x){const e=this._suggestionFactory[yc("0xed")](yc("0xf5"),r,yc("0xc"));this[yc("0x4d")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t.start,a=t.end;for(const{suggestion:e,meta:n}of this[yc("0x7e")](t,yc("0xf5"))){if(!n.isOwn)continue;if(e[yc("0xb")]!=r)continue;if(!Fc(e,i))continue;const o=e[yc("0x130")]();if(o[yc("0x146")](t,!0))return null;x=x[yc("0x56")](o[yc("0xfc")])?x:o.start,a=a[yc("0x9b")](o[yc("0x1e")])?a:o.end,s?o[yc("0xfc")][yc("0x56")](s[yc("0x130")]()[yc("0xfc")])?(s.removeMarkers(),s=e):e[yc("0x14a")]():s=e}const c=this[yc("0x9f")][yc("0x6f")](x,a);if(s)this._setSuggestionRange(s,c);else{const t=(0,e.uid)(),s=o.id;this._setSuggestionData({id:t,type:yc("0x150")+r,data:n,createdAt:new Date,authorId:s,attributes:i}),this._addSuggestionMarker(yc("0x150")+r,t,s,c)}}return null}[yc("0x11f")](t,n,r=[],i=null,o={}){n[yc("0x31")]||(n[yc("0x31")]=n[yc("0xae")]),n.multipleBlocks=t.is(yc("0x30")),i=i||vc(n);const s=r[yc("0x80")]((t=>Mc(t,this[yc("0x9f")]))),x=t.is("range")?t:Mc(t,this[yc("0x9f")]);if(yc("0xa2")===this[yc("0x113")]){const t=this[yc("0x15a")][yc("0xed")](yc("0xc2"),i,yc("0xc"));return this.forceDefaultExecution((()=>t([x],n,o))),null}s[yc("0x51")](x);let a=!0;for(const t of s)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&yc("0x91")!==this[yc("0x113")]){const t=this[yc("0x15a")][yc("0xed")](yc("0xc2"),i,yc("0xc"));return this.forceDefaultExecution((()=>t([x],n,o))),null}let c=null,l=x[yc("0xfc")],u=x[yc("0x1e")];for(const{suggestion:t,meta:e}of this[yc("0x7e")](x,yc("0xc2"))){if(!e[yc("0x153")])continue;if(e[yc("0x170")]||e[yc("0x61")]||e[yc("0xf2")])continue;if(t.data.formatGroupId!=n.formatGroupId)continue;if(!Fc(t,o))continue;const r=t[yc("0x130")]();if(t[yc("0xb")]==i){if(r.containsRange(x,!0))return null;l=l[yc("0x56")](r.start)?l:r[yc("0xfc")],u=u[yc("0x9b")](r[yc("0x1e")])?u:r.end,c?r[yc("0xfc")].isBefore(c.getFirstRange()[yc("0xfc")])?(c.removeMarkers(),c=t):t[yc("0x14a")]():c=t}else{const e=x[yc("0xca")](r);this[yc("0x107")](t,e)}}const d=this[yc("0xad")].plugins[yc("0x143")](yc("0x75")).me,g=(0,e.uid)(),f=d.id;if(c)return this[yc("0xac")](c,this._model.createRange(l,u)),c;{const t=this[yc("0x3e")]({id:g,type:yc("0xa8")+i,data:n,createdAt:new Date,authorId:f,attributes:o});return this[yc("0xb8")](yc("0xa8")+i,g,f,this[yc("0x9f")][yc("0x6f")](l,u)),t}}markMultiRangeBlockFormat(t,n,r=[],i=null,o={}){n.formatGroupId||(n[yc("0x31")]=n[yc("0xae")]);const s=t[0];n[yc("0x3f")]=s.is(yc("0x30")),i=i||vc(n);const x=r[yc("0x80")]((t=>Mc(t,this[yc("0x9f")]))),a=s.is(yc("0x30"))?t:t[yc("0x80")]((t=>Mc(t,this._model)));if("never"===this._trackFormatChanges){const t=this[yc("0x15a")][yc("0xed")](yc("0xc2"),i,yc("0xc"));return this[yc("0x4d")]((()=>t(a,n,o))),null}x.push(...a);let c=!0;for(const t of x)if(!this[yc("0x63")](t)){c=!1;break}if(c&&"always"!==this[yc("0x113")]){const t=this[yc("0x15a")][yc("0xed")]("formatBlock",i,"accept");return this[yc("0x4d")]((()=>t(a,n,o))),null}const l=this[yc("0xad")][yc("0x14b")][yc("0x143")](yc("0x75")).me;for(const t of this.getSuggestions()){if(t[yc("0xcf")].id!=l.id)continue;if(yc("0xc2")!=t.type||t[yc("0x72")][yc("0x31")]!=n[yc("0x31")])continue;if(!Fc(t,o))continue;const e=t[yc("0xb")]==i;for(let n=0;n<a[yc("0x16c")];n++){const r=a[n];for(const i of t.getMarkers()){const o=i[yc("0x27")]();if(r.isEqual(o)){e?(a[yc("0x5a")](n,1),n--):t[yc("0xaf")](i[yc("0x12f")]);break}}}}if(0==a.length)return null;const u=this._suggestionFactory[yc("0xed")](yc("0xc2"),i,"join");for(const t of this[yc("0xdf")]())if(t[yc("0xcf")].id==l.id&&yc("0xc2")==t[yc("0x42")]&&t[yc("0x72")][yc("0x31")]==n[yc("0x31")]&&t[yc("0xb")]==i&&Fc(t,o)&&(u(t[yc("0x90")](),a)||u(a,t[yc("0x90")]()))){for(const e of a)t[yc("0x43")](e);return t}const d=(0,e.uid)(),g=l.id,f=yc("0xa8")+i,h=this[yc("0x3e")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this._addSuggestionMarker(f,d,g,t,Qr.getMultiRangeId());return h}[yc("0x8e")](t,n=null,r={}){if(t.isCollapsed)return null;const i=this[yc("0xad")][yc("0x14b")].get(yc("0x75")).me,o=new s.LiveRange(t[yc("0xfc")],t[yc("0x1e")]);for(const{suggestion:t,meta:e}of this[yc("0x7e")](o,yc("0xf7")))if(e[yc("0x153")]&&!e[yc("0x170")])if(t[yc("0xd5")]){const e=t.getRanges()[yc("0x158")]((t=>yc("0xd2")!=t.root[yc("0x37")]));if(e.every((t=>o[yc("0x146")](t,!0)))&&t.discard(),e.some((t=>t[yc("0x146")](o,!0)))){const t=this[yc("0x15a")].getSuggestionCallback(yc("0x133"),n,yc("0xc"));return this[yc("0x4d")]((()=>t([o],null,r))),null}}else{const e=o[yc("0xca")](t[yc("0x130")]());null!==e&&t[yc("0x36")]([e],null,r)}if(o[yc("0x11a")](),o[yc("0x12c")]||"$graveyard"==o.root[yc("0x37")])return null;let x=null,a=o[yc("0xfc")],c=o[yc("0x1e")];const l=this[yc("0x7e")](o,"deletion");for(const{suggestion:t,meta:e}of l){const n=this[yc("0x9f")][yc("0x6f")](a,c);if(e[yc("0x153")]&&(this[yc("0x24")]||!e[yc("0x61")]&&!e.isInsideObject))if(t[yc("0xd5")]){if(!Fc(t,r))continue;let e=!0;for(const r of t[yc("0x90")]()){if(r[yc("0x146")](n,!0))return t;n[yc("0x146")](r)||(e=!1)}e&&t.discard()}else{const e=t[yc("0x130")]();if(e.containsRange(n,!0))return t;if(!Fc(t,r)){n[yc("0x146")](e)?t.removeMarkers():e[yc("0x161")](a)?a=e[yc("0x1e")]:e[yc("0x161")](c)&&(c=e[yc("0xfc")]);continue}a=a[yc("0x56")](e.start)?a:e[yc("0xfc")],c=c[yc("0x9b")](e[yc("0x1e")])?c:e[yc("0x1e")],r=Object[yc("0xd8")]({},t[yc("0xc4")]),x?e[yc("0xfc")][yc("0x56")](x[yc("0x130")]().start)?(x[yc("0x14a")](),x=t):t[yc("0x14a")]():x=t}}if(x)return this._setSuggestionRange(x,this[yc("0x9f")].createRange(a,c)),x;{const t=(0,e.uid)(),o=this[yc("0x9f")].createRange(a,c),s=i.id,x=n?yc("0x9c")+n:yc("0x133"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0xb8")](x,t,s,o),l}}[yc("0x47")](t,n=yc("0xf"),r={}){const i=this[yc("0xad")][yc("0x14b")][yc("0x143")](yc("0x75")).me,o=t[yc("0x80")]((t=>new s.LiveRange(t[yc("0xfc")],t[yc("0x1e")]))),x=new Set;for(const{suggestion:t,meta:e}of this[yc("0x7e")](o,"insertion"))e[yc("0x153")]&&!e[yc("0x170")]&&x.add(t);for(const e of x)if(e[yc("0xd5")]){const i=e.getRanges();if((!e[yc("0xc4")]||!e.attributes[yc("0x2d")])&&i[yc("0xc3")]((t=>o[yc("0x13d")]((e=>e.containsRange(t,!0)))))&&e[yc("0xff")](),o[yc("0xc3")]((t=>i[yc("0x13d")]((e=>e.containsRange(t,!0)))))){const e=this[yc("0x15a")][yc("0xed")](yc("0x133"),n,"accept");return this.forceDefaultExecution((()=>e(t,null,r))),null}}else{const t=e[yc("0x130")]();if(o[yc("0x13d")]((e=>e.containsRange(t,!0)))&&e[yc("0xff")](),o[yc("0xc3")]((e=>t.containsRange(e,!0)))){const t=this._suggestionFactory.getSuggestionCallback(yc("0x133"),n,yc("0xc"));return this[yc("0x4d")]((()=>t(o,null,r))),null}}const a=this[yc("0x15a")][yc("0xed")]("deletion",n,yc("0xb2"));let c=null;for(const t of this[yc("0xdf")]())if(t[yc("0xcf")].id==i.id&&t[yc("0x9d")]&&yc("0x133")==t[yc("0x42")]&&t[yc("0xb")]==n&&Fc(t,r)&&(a(t.getRanges(),o)||a(o,t[yc("0x90")]())))if(c){if(t[yc("0x89")]&&t.commentThread[yc("0x16c")])continue;for(const e of t[yc("0x90")]())c[yc("0x111")](e)||c[yc("0x43")](e);t.removeMarkers()}else{c=t;for(const e of o)t[yc("0x111")](e)||t[yc("0x43")](e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this._findSuggestions(o,yc("0x133")))e[yc("0x153")]&&(this[yc("0x24")]||!e[yc("0x61")]&&!e[yc("0xf2")])&&Fc(t,r)&&x.add(t);for(const t of x){const e=t[yc("0x90")]();if((!r||!r[yc("0x2d")])&&o[yc("0xc3")]((t=>e[yc("0x13d")]((e=>e[yc("0x146")](t,!0))))))return t;(!t[yc("0xc4")]||!t[yc("0xc4")].skipNestingCheck)&&e[yc("0xc3")]((t=>o.some((e=>e[yc("0x146")](t,!0)))))&&t[yc("0xff")]()}const l=(0,e.uid)(),u=i.id,d="deletion:"+n,g=this[yc("0x3e")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of o)t[yc("0x11a")](),t.isCollapsed||yc("0xd2")==t.root[yc("0x37")]||this[yc("0xb8")](d,l,u,t,Qr.getMultiRangeId());return g}[yc("0xfa")](t,n,r,i,o){if(t[yc("0x12c")])return[];if(yc("0xa2")===this[yc("0x113")])return[];const s=this.editor[yc("0x14b")][yc("0x143")](yc("0x75")).me.id,x=Array[yc("0x169")](this[yc("0x16a")][yc("0xd1")]()).filter((e=>"attribute"==e[yc("0x42")]&&e[yc("0x72")].key==n&&e[yc("0x111")](t)));if("default"===this[yc("0x113")]){const e=this[yc("0x7e")](t,yc("0xf7"))[yc("0x158")]((({meta:t})=>t[yc("0x153")]&&!t.isInsideObject&&!t.isNextTo))[yc("0x80")]((({suggestion:t})=>t));x[yc("0x57")](...e)}const a=new Map([[t,r]]);for(const t of x){const e=yc("0x33")==t[yc("0x42")]?t.data[yc("0x154")]:void 0,o=t[yc("0x130")](),s=Array.from(a[yc("0x77")]())[yc("0xf9")]((t=>t[yc("0x151")](o)));if(!s)continue;const x=s.getDifference(o);this[yc("0x4b")](n)&&yc("0xf7")==t.type&&0!=x.length||(a[yc("0x48")](s),x[yc("0x40")]((t=>{a[yc("0x14f")](t,r)})),yc("0xf7")!=t.type&&e!=i&&a.set(s[yc("0xca")](o),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:i};n[yc("0x16c")]>37&&console.warn(yc("0x88"),{key:n});const l=(yc("0x41")+(n+"|")+vc({newValue:i}))[yc("0x84")](0,60),u=this[yc("0x3e")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c[yc("0x51")](u),this[yc("0xb8")](l,x,s,t)}return c}_registerBlockAttribute(t){this[yc("0xd7")][yc("0x95")](t)}_registerInlineAttribute(t){this[yc("0xbb")][yc("0x95")](t)}[yc("0xe3")](t,e=[],n=[]){this[yc("0xe2")](t,((t,...e)=>{this[yc("0xa9")]((()=>{t(...e)}))}));for(const t of e)this[yc("0xe6")](t);for(const t of n)this[yc("0xba")](t)}[yc("0x176")](t){return yc("0x33")==t[yc("0x42")]?t[yc("0xb")][yc("0x126")]("|")[0]:null}[yc("0xac")](t,e){const n=t[yc("0xaa")]();this[yc("0x9f")][yc("0x71")]((t=>{t.updateMarker(n,{range:e})}))}[yc("0x15e")](t){const e=t.id,n=this[yc("0xad")][yc("0x15d")][yc("0x143")]("collaboration.channelId");this._commentsRepository.hasCommentThread(e)||this[yc("0x16d")][yc("0x8b")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this[yc("0x16d")][yc("0x4")](e);r[yc("0x94")]("isRemovable"),r[yc("0x45")]=!1,t[yc("0x89")]=r}[yc("0x8d")](t,n,r,i){if(t[yc("0x42")]!=n||t.subType!=r||t.creator.id!=i)throw this.editor[yc("0xfb")](yc("0x140")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[yc("0x107")](t,n){const r=t[yc("0x130")]();if(n[yc("0x117")](r))t[yc("0x14a")]();else if(r[yc("0x146")](n)){const i=this[yc("0x9f")][yc("0xc9")](n.start[yc("0xe4")],yc("0x1e"));this._setSuggestionRange(t,this[yc("0x9f")][yc("0x6f")](r[yc("0xfc")],i));const o=(0,e.uid)(),s=t[yc("0xcd")].id,x=t[yc("0x42")]+":"+t[yc("0xb")];this[yc("0x3e")]({id:o,type:x,createdAt:new Date,authorId:s,data:t[yc("0x72")],attributes:t[yc("0xc4")]});const a=this[yc("0x9f")][yc("0xc9")](n[yc("0x1e")][yc("0x163")],yc("0x7")),c=this[yc("0x9f")][yc("0x6f")](a,r[yc("0x1e")]);this._addSuggestionMarker(x,o,s,c)}else if(r.containsPosition(n[yc("0xfc")])){const e=this._model[yc("0xc9")](n[yc("0xfc")][yc("0xe4")],"end");this[yc("0xac")](t,this[yc("0x9f")][yc("0x6f")](r[yc("0xfc")],e))}else{const e=this[yc("0x9f")][yc("0xc9")](n[yc("0x1e")][yc("0x163")],yc("0x7"));this[yc("0xac")](t,this[yc("0x9f")][yc("0x6f")](e,r[yc("0x1e")]))}}[yc("0x63")](t){for(const{suggestion:e,meta:n}of this[yc("0x7e")](t,"insertion")){if(!n[yc("0x153")])continue;const r=e.getRanges();for(const e of r)if(!t[yc("0xa4")](e).length)return!0}return!1}_getAuthorFromId(t){const n=this[yc("0xad")][yc("0x14b")][yc("0x143")](yc("0x75"))[yc("0xa1")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[yc("0x1a")](t){const e=this[yc("0xad")][yc("0x14b")][yc("0x143")](yc("0x75")),n=(0,o.hashObject)(yc("0x6b")+t);return e[yc("0xa1")](n)||e.addUser({id:n,name:t})}_createSuggestion(t,e,n,r,i){const o=this._getAuthorFromId(r),s=this[yc("0x15a")][yc("0xa0")](t,e,n,o,i,(t=>{this[yc("0x148")](n,{attributes:t});const e=this.getSuggestion(n);this._joinWithAdjacentSuggestions(new Set([e])),this[yc("0x35")](new Set([e]))}));return this[yc("0x26")](s,yc("0xc"),(()=>{this[yc("0x148")](n,{state:"accepted"})}),{priority:yc("0x92")}),this[yc("0x26")](s,"discard",(()=>{this[yc("0x148")](n,{state:yc("0xf1")})}),{priority:yc("0x92")}),this._suggestions[yc("0x14f")](n,s),this[yc("0x78")][yc("0x14f")](s,"notReady"),s}[yc("0x156")](t){const e=t[yc("0x126")](":");return{group:e[0],type:e[1],subType:e[yc("0x16c")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[yc("0x16c")]<5?e[3]:e[4],markerCount:6==e[yc("0x16c")]?e[5]:null}}[yc("0x101")](t,n,r){const i=t[yc("0x130")](),o=i[yc("0xfc")],s=i[yc("0x1e")];this._setSuggestionRange(t,this[yc("0x9f")][yc("0x6f")](o,n));const x=(0,e.uid)(),a=t.creator.id,c=t[yc("0x42")]+(t[yc("0xb")]?":"+t[yc("0xb")]:"");this[yc("0x3e")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[yc("0xc4")],data:t[yc("0x72")]});const l=this[yc("0x176")](t);(yc("0xc2")==t.type||l&&this[yc("0x4b")](l))&&(r=this[yc("0x9f")].createPositionBefore(r.parent)),this[yc("0xb8")](c,x,a,this[yc("0x9f")][yc("0x6f")](r,s))}_findSuggestions(t,e=null){const n=[],r=this[yc("0xad")][yc("0x14b")][yc("0x143")](yc("0x75")).me;Array[yc("0xb5")](t)||(t=[t]);for(const i of this[yc("0xdf")]()){if(!i[yc("0x9d")])continue;if(e&&i.type!=e)continue;let o=!1;for(const e of i[yc("0x90")]()){for(const s of t){const t=s.start[yc("0x117")](e[yc("0x1e")])||s.end[yc("0x117")](e.start);if(t||s[yc("0xca")](e)){const x=s[yc("0x146")](e)&&Ic(this[yc("0x9f")][yc("0x64")],e[yc("0xfc")],s),a=e[yc("0x146")](s)&&Ic(this[yc("0x9f")].schema,s[yc("0xfc")],e);n[yc("0x51")]({suggestion:i,meta:{isOwn:r==i[yc("0xcf")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[yc("0xb8")](t,e,n,r,i){this._model[yc("0x71")]((o=>{let s=yc("0x16b")+t+":"+e+":"+n;i&&(s=s+":"+i),o[yc("0x1f")](s,{range:r,usingOperation:!0,affectsData:!0})}))}[yc("0x5f")](t){const e=t[yc("0x5d")],n=t[yc("0x132")];t[yc("0x5d")]=null,t[yc("0x132")]=null,null!=e&&e[yc("0x132")]==t&&(e.next=n),null!=n&&n[yc("0x5d")]==t&&(n[yc("0x5d")]=e),yc("0x5e")==this._suggestionState[yc("0x143")](t)&&(this[yc("0x78")][yc("0x14f")](t,yc("0x96")),this[yc("0x4c")](yc("0x83"),t,e,n))}[yc("0x3e")](t){const n=t.id,r=this[yc("0x1b")](t);if(this[yc("0x16f")]&&this[yc("0x16f")][yc("0xcb")]){const i=this[yc("0xad")][yc("0x14b")][yc("0x143")](yc("0xd")),o=r[yc("0xc0")],s=r.subType?r.type+":"+r[yc("0xb")]:r[yc("0x42")],x=this.editor[yc("0x100")],a=i[yc("0x95")](Yr(x,yc("0x2c"))),c={id:n,type:s,hasComments:o,data:t[yc("0x72")]||null,originalSuggestionId:t[yc("0xc6")]||null,attributes:r[yc("0xc4")]};this._adapter[yc("0xcb")](c).then((t=>{r[yc("0x8f")]=!0,i.remove(a),t&&t[yc("0xd9")]&&(this[yc("0x16a")].get(n)[yc("0xd9")]=t.createdAt)}))[yc("0x55")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this.editor[yc("0x175")][yc("0x81")]({isUndoable:!1},(()=>{r.discard()})),r[yc("0xc8")](),this[yc("0x16a")][yc("0x48")](r.id),this[yc("0x78")][yc("0x48")](r),t}))}return r}_isBlockAttribute(t){return this[yc("0xd7")].has(t)}[yc("0x148")](t,e){const n=this[yc("0xad")][yc("0x14b")].get(yc("0xd")),r=this[yc("0x44")](t);if(this[yc("0x16f")]&&this[yc("0x16f")][yc("0xd3")])if(r._saved){const r=n.add(Yr(this[yc("0xad")][yc("0x100")],"PENDING_ACTION_SUGGESTION"));this[yc("0x16f")][yc("0xd3")](t,e)[yc("0x16")]((()=>{n[yc("0x135")](r)}))}else r.on(yc("0x17"),(()=>{this[yc("0x148")](t,e)}))}[yc("0xe7")](t){if(!this[yc("0x16f")]||!this[yc("0x16f")][yc("0x44")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this._adapter[yc("0x44")](t)}[yc("0x4a")](t){const{id:e,type:n,subType:r,authorId:i}=this[yc("0x156")](t),o=this._suggestions[yc("0x143")](e)||this[yc("0x11d")](n,r,e,i,{});switch(this[yc("0x8d")](o,n,r,i),this[yc("0x78")].get(o)){case yc("0xe0"):this._getSuggestionData(e)[yc("0x16")]((t=>{let n=Promise[yc("0x116")]();t[yc("0xc0")]&&(n=this[yc("0x16d")].fetchCommentThread({channelId:this[yc("0xad")][yc("0x15d")][yc("0x143")](yc("0x134")),threadId:e})),n[yc("0x16")]((()=>{this[yc("0x1b")](t)[yc("0x8f")]=!0}))})),this[yc("0x78")][yc("0x14f")](o,yc("0x172"));break;case yc("0x96"):this._updateSuggestionData(e,{state:"open"});case yc("0x23"):this[yc("0x78")][yc("0x14f")](o,yc("0x5e")),this[yc("0x4c")](yc("0x54"),o);break;case yc("0x5e"):this[yc("0x4c")](yc("0xf3"),o)}return o[yc("0x6d")](t),o}[yc("0x35")](t){const e=Array[yc("0x169")](t),n=e[yc("0x158")]((t=>yc("0x33")==t.type));this[yc("0xda")](n);const r=e.filter((t=>!t[yc("0xd5")]&&yc("0x33")!=t[yc("0x42")])),i=this[yc("0xdf")]({skipNotAttached:!0})[yc("0x158")]((t=>!t[yc("0xd5")]&&"attribute"!=t[yc("0x42")])),o=i[yc("0x158")]((e=>!t[yc("0x104")](e))),s=new Map(i[yc("0x80")]((t=>[t,this[yc("0x15a")][yc("0xed")](t.type,t.subType,yc("0x129"))]))),x=new Map(i[yc("0x80")]((t=>[t,t[yc("0x130")]()]))),a=new Set,c=new Set;for(let t=0;t<r[yc("0x16c")];t++)u(r[t],r,t+1);for(let t=0;t<r[yc("0x16c")];t++)u(r[t],o,0);const l=new Set;for(let t=0;t<r.length;t++){const e=r[t];!c.has(e)&&e[yc("0x5d")]&&(l[yc("0x95")](e[yc("0x5d")]),e[yc("0x5d")][yc("0x132")]===e&&(e[yc("0x5d")].next=null),e[yc("0x5d")]=null),!a[yc("0x104")](e)&&e[yc("0x132")]&&(l[yc("0x95")](e.next),e[yc("0x132")][yc("0x5d")]===e&&(e[yc("0x132")].previous=null),e[yc("0x132")]=null)}function u(t,e,n){for(let r=n;r<e[yc("0x16c")];r++){const n=d(t,e[r]);n&&(n[0].next=n[1],n[1][yc("0x5d")]=n[0],a[yc("0x95")](n[0]),c.add(n[1]))}}function d(t,e){if(t[yc("0xcf")].id!==e[yc("0xcf")].id)return null;const n=s[yc("0x143")](t)(t,e,x[yc("0x143")](t),x[yc("0x143")](e));return n&&s[yc("0x143")](e)(t,e,x.get(t),x[yc("0x143")](e))?n[1][yc("0x89")]&&n[1][yc("0x89")][yc("0x16c")]?null:n:null}l[yc("0xde")]&&this[yc("0x35")](l)}[yc("0xda")](t){if(0==t[yc("0x16c")])return;const e=this[yc("0xdf")]({skipNotAttached:!0}).filter((t=>yc("0x33")==t[yc("0x42")]&&t._isDataLoaded)),n=[],r=new Map;for(const t of e){const e=(0,o.hashObject)(t[yc("0xc4")]);r[yc("0x104")](e)||(r[yc("0x14f")](e,n[yc("0x16c")]),n[yc("0x51")]([]));const i=r[yc("0x143")](e);n[i].push(t)}!function(){n[yc("0xb0")](((t,e)=>{const n=t[0][yc("0xd9")],r=e[0][yc("0xd9")];return n==r?t[0][yc("0xc4")][yc("0x12b")]<e[0][yc("0xc4")][yc("0x12b")]?-1:1:n<r?-1:1}));for(const t of n)t[yc("0xb0")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[yc("0x16c")];t++){if(0==n[t][yc("0x16c")])continue;const e=[];for(let r=t+1;r<n[yc("0x16c")];r++)0!=n[r].length&&i(n[t],n[r])&&e[yc("0x51")](r);for(const r of e)n[t]=n[t][yc("0x128")](n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t.length;e++)t[e][yc("0x132")]=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e][yc("0x5d")]=t[e-1]||null;function i(t,e){if(t[0][yc("0xc4")][yc("0x12b")]!==e[0][yc("0xc4")].groupId&&t[0][yc("0xcf")]!==e[0][yc("0xcf")])return!1;if(n=t[0],r=e[0],(n[yc("0xc0")]||r.hasComments)&&(n[yc("0xc0")]&&r[yc("0xc0")]||!(n.hasComments&&r[yc("0xd9")]<n[yc("0x89")][yc("0x2")][yc("0x143")](0)[yc("0xd9")]||r.hasComments&&n[yc("0xd9")]<r[yc("0x89")][yc("0x2")][yc("0x143")](0)[yc("0xd9")])))return!1;var n,r;const i=bc(t[0].attributes,"groupId"),o=bc(e[0][yc("0xc4")],yc("0x12b"));return!!jr(i,o)&&(!!t[yc("0xc3")]((t=>e[yc("0x13d")]((e=>t.getFirstRange().isEqual(e[yc("0x130")]())))))&&e[yc("0xc3")]((e=>t.some((t=>e.getFirstRange()[yc("0x117")](t[yc("0x130")]()))))))}}[yc("0xdc")](t){const e=Array[yc("0x169")](t),n=this[yc("0xdf")]({skipNotAttached:!0}),r=n[yc("0x158")]((e=>!t[yc("0x104")](e))),i=new Map(e.map((t=>[t,this._suggestionFactory[yc("0xed")](t[yc("0x42")],t[yc("0xb")],yc("0xb2"))]))),o=new Map(n[yc("0x80")]((t=>[t,t[yc("0x90")]()])));for(let t=0;t<e[yc("0x16c")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[yc("0x16c")];t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n[yc("0x16c")];s++){const r=n[s];if(r[yc("0x42")]!==e[yc("0x42")]||r[yc("0xcf")].id!==e[yc("0xcf")].id||r[yc("0xb")]!==e[yc("0xb")])continue;if(!Oc(e,r,["groupId"]))continue;if(yc("0x33")==e[yc("0x42")]&&e[yc("0x72")][yc("0x154")]!=r[yc("0x72")][yc("0x154")])continue;if(yc("0x33")==e[yc("0x42")]&&t[yc("0x4b")](e[yc("0x72")][yc("0xdd")]))continue;if(yc("0xc2")==e[yc("0x42")]){const n=t[yc("0xad")][yc("0x175")],r=e[yc("0xec")]();if(r&&(n[yc("0x64")][yc("0xd0")](r)||n[yc("0x64")][yc("0x28")](r)))continue}const x=i.get(e),a=o[yc("0x143")](e),c=o[yc("0x143")](r),l=e[yc("0x89")]&&e[yc("0x89")][yc("0x16c")],u=r[yc("0x89")]&&r[yc("0x89")].length;if(!l&&x(c,a))return t[yc("0xbd")](r,e),o[yc("0x48")](e),!0;if(!u&&x(a,c))return t[yc("0xbd")](e,r),o.delete(r),!0}return!1}}[yc("0xbd")](t,e){if(t[yc("0xd5")])for(const n of e[yc("0x90")]())t[yc("0x43")](n);else{const n=e[yc("0x130")]()[yc("0x1e")];this[yc("0xac")](t,this[yc("0x9f")][yc("0x6f")](t[yc("0x130")]()[yc("0xfc")],n))}e[yc("0x14a")]()}[yc("0x145")](t,e){const n=t[yc("0x13b")](yc("0x39"))||t[yc("0x13b")](yc("0x33"))?yc("0x118"):t[yc("0x114")]();return Yr(this[yc("0xad")][yc("0x100")],e+"_"+n+yc("0x11"))}_initAriaMarkerChangeAnnouncements(){const t=this.editor;(0,o.surroundingMarkersDetector)(this._model,(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this[yc("0x156")](t[yc("0x12f")]);if(yc("0xb7")===e){r[yc("0x51")](this[yc("0x145")](n,yc("0xbc")));break}}for(const t of n){const{group:e,type:n}=this[yc("0x156")](t[yc("0x12f")]);if("suggestion"===e){r[yc("0x51")](this._getMarkerAnnouncementText(n,"ENTER"));break}}r[yc("0x16c")]&&t.ui[yc("0xbf")][yc("0x15b")](yc("0x49"),r.join(" "))}))}_processAttributeChanges(t){if(this._recordAttributeSuggestions)return!1;const e=this[yc("0xad")],n=e[yc("0x175")][yc("0x168")][yc("0xe1")][yc("0x10c")]();if(0==n[yc("0x16c")])return!1;const r=[],i=n.filter((t=>"attribute"==t[yc("0x42")])),o=n[yc("0x158")]((t=>"insert"==t.type&&"$text"!=t[yc("0x12f")])),s=n.filter((t=>"remove"==t[yc("0x42")]&&yc("0x67")!=t[yc("0x12f")]));for(const t of i)r[yc("0x51")]({key:t[yc("0x165")],newValue:t[yc("0x2b")],oldValue:t[yc("0x173")],range:Lc(t[yc("0x30")],e[yc("0x175")])});for(const t of o){const n=s[yc("0xf9")]((e=>e[yc("0x110")][yc("0x117")](t[yc("0x110")])));n&&r[yc("0x51")]({key:"$elementName",newValue:t[yc("0x12f")],oldValue:n[yc("0x12f")],range:e.model[yc("0x13")](t[yc("0x110")][yc("0x8c")])})}return 0!=r.length&&this[yc("0xf4")](t,r)}[yc("0x123")](t){let e=!1;const n=this[yc("0xad")].model.document[yc("0xe1")][yc("0x58")]().filter((t=>t[yc("0x72")][yc("0x9")]&&t[yc("0x12f")][yc("0x13b")]("suggestion:attribute:")));for(const r of n){const{subType:n,id:i}=this[yc("0x156")](r[yc("0x12f")]),o=n[yc("0x126")]("|")[0];for(const n of this.getSuggestions({skipNotAttached:!0}))n.id!=i&&"attribute"==n.type&&n[yc("0x72")]&&n[yc("0x72")].key==o&&n.getFirstRange()[yc("0x151")](r.data[yc("0x9")])&&(this[yc("0x112")](n,r.data[yc("0x9")],t),e=!0)}return e}[yc("0xa9")](t){this[yc("0xad")],this[yc("0x93")]=!0,t()}_isRegisteredAttribute(t){const e=this[yc("0x4b")](t),n=this[yc("0xbb")][yc("0x104")](t);return e||n}[yc("0xf4")](t,e){if(0==e.length)return!1;let n=!1;for(const r of e){const e=this[yc("0x7e")](r[yc("0x30")],yc("0x33"))[yc("0x158")]((t=>!t[yc("0x86")][yc("0x170")]))[yc("0x80")]((t=>t[yc("0xb7")])),i=(0,o.hashObject)({newValue:r[yc("0x10b")]});e[yc("0x158")]((t=>{const[e,n]=t[yc("0xb")][yc("0x126")]("|");return e==r[yc("0xdd")]&&n!=i}))[yc("0x40")]((e=>{this._reduceSuggestionAttributeRange(e,r[yc("0x30")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const r=t.getFirstRange()[yc("0xa4")](e);0!==r[yc("0x16c")]?1!==r[yc("0x16c")]?this[yc("0x101")](t,e.start,e[yc("0x1e")]):this[yc("0xac")](t,r[0]):n.removeMarker(t.getFirstMarker())}}class kc{constructor(t){this[yc("0xce")]=t,this[yc("0x9f")]=t[yc("0x175")],this._customCallbacks=new Map,this._defaultCallbacks=new Map,this._registerDefaultCallbacks()}buildSuggestion(t,e,n,r,i,o){return new Qr(this[yc("0x9f")],{type:t,subType:e,id:n,author:r,creator:r,attributes:i,onAttributesChange:o,onAccept:(...n)=>this[yc("0xed")](t,e,yc("0xc"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,yc("0xff"))(...n)})}[yc("0xea")](t,e,n,r){const i=t+":"+e+":"+n;this[yc("0x125")][yc("0x14f")](i,r)}getSuggestionCallback(t,e,n){const r=t+":"+e+":"+n;return this[yc("0x125")][yc("0x143")](r)||this[yc("0x131")][yc("0x143")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[yc("0xb0")](((t,e)=>t[yc("0xfc")][yc("0x56")](e[yc("0xfc")])?1:-1)),this[yc("0x9f")][yc("0x71")]((e=>{for(const n of t){let t;t=n[yc("0x1e")][yc("0xe8")]&&n[yc("0x1e")][yc("0x163")]==n[yc("0xfc")].nodeAfter?e[yc("0x139")](n.start[yc("0x8c")],"on"):e[yc("0x139")](n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[yc("0x9f")][yc("0x71")]((n=>{const{commandName:r,commandParams:i=[]}=e,o=t[yc("0x80")]((t=>(Sc(t)&&(t=this._model[yc("0x6f")](t[yc("0x1e")])),t)))[yc("0x158")]((t=>yc("0xd2")!==t[yc("0xd4")][yc("0x37")]));if(o.length<1)return;const x=Array.from(this[yc("0x9f")][yc("0x168")][yc("0xab")][yc("0x90")]()).map((t=>s.LiveRange.fromRange(t)));n.setSelection(o);for(const t of this[yc("0xce")][yc("0x162")][yc("0x162")]())t[yc("0x7d")]();i[yc("0x51")]({forceDefaultExecution:!0}),this._editor[yc("0xeb")](r,...i);const a=x.filter((t=>yc("0xd2")!=t[yc("0xd4")].rootName));a.length>0&&n[yc("0x22")](a);for(const t of x)t[yc("0x11a")]()}))},r=(t,e)=>1==t[yc("0x16c")]&&1==e[yc("0x16c")]&&t[0][yc("0x1e")][yc("0x117")](e[0][yc("0xfc")]),i=(t,e,n,r)=>wc(t,e,n,r,this[yc("0x9f")])?[t,e]:wc(e,t,r,n,this[yc("0x9f")])?[e,t]:null;this._defaultCallbacks.set(yc("0x6a"),t),this[yc("0x131")][yc("0x14f")](yc("0x136"),e),this[yc("0x131")][yc("0x14f")](yc("0x159"),r),this[yc("0x131")][yc("0x14f")]("insertion:chain",i),this[yc("0x131")][yc("0x14f")]("deletion:accept",e),this._defaultCallbacks.set("deletion:discard",t),this._defaultCallbacks[yc("0x14f")](yc("0x15f"),r),this[yc("0x131")].set(yc("0xf8"),i),this[yc("0x131")][yc("0x14f")](yc("0x68"),n),this._defaultCallbacks[yc("0x14f")]("formatInline:discard",t),this[yc("0x131")][yc("0x14f")](yc("0xbe"),r),this._defaultCallbacks.set(yc("0x79"),t),this[yc("0x131")].set(yc("0x119"),n),this._defaultCallbacks[yc("0x14f")](yc("0x109"),t),this[yc("0x131")][yc("0x14f")]("formatBlock:join",r),this[yc("0x131")][yc("0x14f")]("formatBlock:chain",t),this[yc("0x131")][yc("0x14f")](yc("0xa7"),t),this[yc("0x131")][yc("0x14f")](yc("0x6e"),((t,e)=>{if(!e)return;const n=this[yc("0xce")][yc("0x14b")].get(Ac);this._model[yc("0x71")]((r=>{if(yc("0xa5")==e.key)for(const n of t){const t=n[yc("0xfc")][yc("0x8c")],i=e[yc("0x154")];r[yc("0x106")](t,i)}else if(n._isBlockAttribute(e[yc("0xdd")]))for(const n of t)void 0!==e[yc("0x154")]?r[yc("0x10a")](e[yc("0xdd")],e[yc("0x154")],n.start.nodeAfter):r[yc("0x138")](e[yc("0xdd")],n.start.nodeAfter);else for(const n of t)e.oldValue?r[yc("0x10a")](e[yc("0xdd")],e[yc("0x154")],n):r[yc("0x138")](e.key,n)}))})),this[yc("0x131")].set(yc("0x32"),r)}}function Ic(t,e,n){for(const r of e[yc("0x163")][yc("0xfe")]({includeSelf:!0,parentFirst:!0})){if(r[yc("0xd4")]==r)return!1;if(!n[yc("0xb3")](r))return!1;if(t[yc("0xd0")](r)||t.isLimit(r))return!0}return!1}function Sc(t){return t.end[yc("0x163")]==t[yc("0xfc")][yc("0x8c")]&&t[yc("0x1e")][yc("0x13e")]}function Rc(t,e,n,r){const i=t=>!t[yc("0xfd")].is(yc("0x11e"))&&!r[yc("0xd0")](t[yc("0xfd")]),o=t.start.getLastMatchingPosition(i),s=t[yc("0x1e")][yc("0xcc")](i,{direction:"backward"});return!(t[yc("0xfc")][yc("0x117")](o)&&t[yc("0x1e")][yc("0x117")](s)||(o[yc("0x56")](s)?n.updateMarker(e,{range:n[yc("0x6f")](o,s)}):n[yc("0xaf")](e),0))}function vc(t){return(0,o.hashObject)(t)}function Nc(t){const e=t[yc("0xfc")][yc("0x8c")];return e&&e.is("element")}function Lc(t,e){return null==t[yc("0x1e")][yc("0xe4")]&&t[yc("0x1e")][yc("0x163")]==t[yc("0xfc")][yc("0x8c")]?Mc(t[yc("0xfc")][yc("0x8c")],e):t}function Mc(t,e){const n=e[yc("0x64")][yc("0xd0")](t)||e.schema[yc("0x10d")](t);return e[yc("0x6f")](e.createPositionAt(t,yc("0x97")),n?e[yc("0x7a")](t):e[yc("0xc9")](t,"end"))}function wc(t,e,n,r,i){if(!Oc(t,e))return!1;if(n[yc("0x1e")][yc("0x117")](r[yc("0xfc")]))return!0;if(t[yc("0x42")]!=e[yc("0x42")])return!1;if(!n[yc("0x1e")][yc("0x5b")](r.start))return!1;const o=i[yc("0x6f")](n[yc("0x1e")],r.start)[yc("0xb1")]();for(const t of o)if([yc("0x62"),yc("0x76")][yc("0x2e")](t[yc("0x42")])&&i[yc("0x64")][yc("0x28")](t.item))return!1;return!0}function Oc(t,e,n=[]){return!(!t[yc("0x142")]||!e._isDataLoaded)&&jr(bc(t.attributes,n),bc(e[yc("0xc4")],n))}function Fc(t,e){const n=Dc(t[yc("0xc4")]),r=Dc(e);if(!t[yc("0x142")])return!1;for(const t of Object[yc("0x77")](r))if(!jr(n[t],r[t]))return!1;return!0}function Dc(t){const e=Object[yc("0xd8")]({},t);return delete e[yc("0x2d")],delete e[yc("0x70")],e}const Pc=["commands","add","_pendingAction","destroy","_editor","listenTo","canAccept","plugins","model","unbind","_setPendingAction","canDiscard","acceptSuggestion","isDirty","discardSuggestion","_acceptCommand","PENDING_ACTION_SUGGESTION","view","_removePendingAction","commentThreadController","canEditAt","getRanges","_discardCommand","get","isEnabled","PendingActions","remove","execute","bind"];var Bc,Uc;Bc=Pc,Uc=235,function(t){for(;--t;)Bc.push(Bc.shift())}(++Uc);const jc=function(t,e){return Pc[t-=0]};class Gc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this[jc("0x5")]=e,this[jc("0xe")]=n,this.commentThreadController=r,this[jc("0x1")]=t,this[jc("0xc")]=t[jc("0x1a")][jc("0x14")](jc("0x9")),this._discardCommand=t[jc("0x1a")].get("discardSuggestion"),this[jc("0xe")].bind("isEnabled").to(this[jc("0xc")],this._discardCommand,((t,e)=>t||e)),this[jc("0xe")][jc("0x19")](jc("0x3")).to(this._acceptCommand,jc("0x15"),(t=>t&&this._editor.model[jc("0x11")](e[jc("0x12")]()))),this.view[jc("0x19")](jc("0x8")).to(this[jc("0x13")],jc("0x15"),(t=>t&&this[jc("0x1")][jc("0x5")][jc("0x11")](e[jc("0x12")]()))),this._pendingAction=null,n[jc("0xa")]&&this[jc("0x7")](),this[jc("0x2")](n,"acceptSuggestion",(()=>this[jc("0x9")]())),this[jc("0x2")](n,jc("0xb"),(()=>this[jc("0xb")]())),this.listenTo(n,"change:isDirty",(()=>{n.isDirty?this[jc("0x7")]():this._removePendingAction()}))}acceptSuggestion(){this._acceptCommand.execute(this.model.id)}[jc("0xb")](){this[jc("0x13")][jc("0x18")](this.model.id)}[jc("0x0")](){this[jc("0xe")].unbind(jc("0x15")),this[jc("0xe")][jc("0x6")](jc("0x3")),this[jc("0xe")].unbind("canDiscard"),this.stopListening(),this[jc("0x10")].destroy(),this._pendingAction&&this[jc("0xf")]()}[jc("0x7")](){const t=Yr(this[jc("0x1")].locale,jc("0xd"));this[jc("0x1c")]=this[jc("0x1")][jc("0x4")][jc("0x14")](jc("0x16"))[jc("0x1b")](t)}[jc("0xf")](){null!==this._pendingAction&&this[jc("0x1")].plugins[jc("0x14")]("PendingActions")[jc("0x17")](this[jc("0x1c")]),this._pendingAction=null}}const Vc=["editor","isEnabled","bind","showInput","set","fire","isActive","setData","commentsListView","disabledSubmit","commentThreadInputView","length","commentInputView","removeComment","cancel","value","_localUser","isDirty","isReadOnly","destroy","addComment","_model","_createCommentViews","canDiscard","_createCommentThreadInputView","CommentView","focus","delegate","disableComments","hasDirtyComment","locale","editorConfig","commentThread","element","_config","authoredAt"];var Hc,zc;Hc=Vc,zc=221,function(t){for(;--t;)Hc.push(Hc.shift())}(++zc);const Wc=function(t,e){return Vc[t-=0]};class Kc extends i.View{constructor(t,e,n,r){super(t),this.commentsListView=null,this[Wc("0x5")]=null,this[Wc("0x23")](Wc("0x1"),!1),this.set(Wc("0x1e"),e[Wc("0x1e")]),this[Wc("0x21")](Wc("0x1e")).to(e),this[Wc("0x23")]("descriptionParts",[]),this.set(Wc("0xc"),!1),this.set(Wc("0x20"),!1),this.set("canAccept",!1),this.set(Wc("0x12"),!1),this[Wc("0x10")]=e,this._localUser=n,this[Wc("0x1d")]=r,r[Wc("0x17")]?this[Wc("0x23")]("length",1):this[Wc("0x11")]()}[Wc("0x15")](){this[Wc("0x1c")].focus()}destroy(){this.commentsListView&&this[Wc("0x3")][Wc("0xe")](),this[Wc("0x5")]&&this[Wc("0x5")].destroy(),super.destroy()}[Wc("0x11")](){const{CommentsListView:t}=this[Wc("0x1d")];this[Wc("0x3")]=new t(this[Wc("0x19")],this[Wc("0x10")][Wc("0x1b")],Object.assign({CommentView:this[Wc("0x1d")][Wc("0x14")]},this._config)),this[Wc("0x3")].delegate(Wc("0x8")).to(this),this[Wc("0x3")][Wc("0x16")]("updateComment").to(this),this[Wc("0x3")][Wc("0x21")](Wc("0x1")).to(this),this[Wc("0x23")](Wc("0x6"),this[Wc("0x3")][Wc("0x6")]+1),this.bind("length").to(this[Wc("0x3")],Wc("0x6"),(t=>t+1)),this[Wc("0x5")]=this[Wc("0x13")](),this.on(Wc("0x8"),(()=>this[Wc("0x15")]())),this[Wc("0x21")](Wc("0xc")).to(this[Wc("0x3")],Wc("0x18"),this[Wc("0x5")].commentInputView,"value",((t,e)=>t||!!e))}[Wc("0x13")](){const{CommentThreadInputView:t}=this[Wc("0x1d")],e=new t(this.locale,this[Wc("0xb")],this[Wc("0x1d")][Wc("0x1a")]),n=e[Wc("0x7")];return e.bind(Wc("0x22")).to(this,Wc("0x1"),this._model[Wc("0x1b")],"isReadOnly",n,Wc("0xa"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[Wc("0x0")](Wc("0xf"),e),n[Wc("0x1f")][Wc("0x2")]("")})),n.on(Wc("0x9"),(()=>this[Wc("0x15")]())),n[Wc("0x21")](Wc("0x4")).to(this._model.commentThread,Wc("0xd")),e}}const qc=["acceptSuggestion","source","isActive","@external","type","</p>","commentsListView","ck-suggestion-wrapper","join","innerText","canDiscard","ck-comment__info-time","children","getExternalSuggestionNote","ck-suggestion__user","ck-annotation","author","editorReady","render",'" title="',"set","_config","createElement","ck-comment__external",'<span class="ck-suggestion-color" style="background-color: ',"ck-annotation__actions","change:description","_model","ck-suggestion--disabled-comments","map","div","Accept suggestion","color","description","check","userView","ck-suggestion--accept","ck-suggestion__info-name","ck-suggestion-","push","acceptButton","importWord","ck-annotation__info","delegate","element","getUserViewNotificationText","locale","bind",".ck-annotation__content-wrapper","ck-suggestion__actions","discardSuggestion","discardButton","_createButton","getTemplate","commentThreadInputView","ck-annotation__user","ck-annotation__info-name","ck-suggestion-wrapper--active","name","commentThread","time","ck-suggestion--discard","Discard suggestion","isExternal","innerHTML","setTemplate","attributes","ck-annotation__content-wrapper","EXTERNAL_IMPORT_WORD_SUGGESTION","isEnabled","ck-annotation__info-time","EXTERNAL_IMPORT_WORD_AVATAR","fire","formatDateTime","ck-annotation__main","editorDestroyed","descriptionParts",'"></span>',"value","EXTERNAL_AVATAR","span","_descriptionElement","EXTERNAL_SUGGESTION","content","creator","extendTemplate","<p>"];var Xc,$c;Xc=qc,$c=162,function(t){for(;--t;)Xc.push(Xc.shift())}(++$c);const Zc=function(t,e){return qc[t-=0]};class Qc extends Kc{constructor(e,n,r,i){super(e,n,r,i),this[Zc("0x20")]("type",""),this[Zc("0x3b")]("type").to(this,Zc("0x1"),(t=>t&&t[0]?t[0][Zc("0x10")]:"")),this[Zc("0x3b")](Zc("0x2d")).to(this,Zc("0x1"),this,Zc("0xe"),((t,e)=>{let n="";for(const e of t)n+=Zc("0xb")+Yc(e[Zc("0x8")],e[Zc("0x2c")])+Zc("0x11");return e?n:(0,o.trimHtml)(n,{limit:140})})),this[Zc("0x6")]=null,this.acceptButton=this._createButton(Yr(e,Zc("0x2b")),t.icons[Zc("0x2e")],Zc("0x30"),Zc("0xc"),"sw"),this[Zc("0x34")][Zc("0x3b")](Zc("0x51")).to(this,"canAccept"),this[Zc("0x3f")]=this[Zc("0x40")](Yr(e,Zc("0x4a")),t.icons.cancel,Zc("0x49"),Zc("0x3e"),"sw"),this.discardButton[Zc("0x3b")](Zc("0x51")).to(this,Zc("0x16")),this[Zc("0x2f")]=new o.UserView(e,this._model[Zc("0x1c")],this[Zc("0x39")]()),this[Zc("0x2f")][Zc("0xa")]({attributes:{class:[Zc("0x1a"),Zc("0x43")]}}),this[Zc("0x4d")](this.getTemplate())}[Zc("0x41")](){const t=this.bindTemplate,e=[{tag:"div",attributes:{class:["ck-suggestion__info",Zc("0x36")]},children:[{tag:Zc("0x5"),children:[{text:this[Zc("0x2f")].name}],attributes:{class:[Zc("0x31"),Zc("0x44")]}},{tag:Zc("0x48"),attributes:{datetime:t.to("authoredAt"),class:[Zc("0x17"),Zc("0x52")]},children:[{text:t.to("authoredAt",(t=>this[Zc("0x21")][Zc("0x55")](t)))}]}]},{tag:Zc("0x2a"),attributes:{class:[Zc("0x3d"),Zc("0x25")]},children:[this.acceptButton,this[Zc("0x3f")]]},{tag:Zc("0x2a"),attributes:{class:[Zc("0x4f")]}}];this[Zc("0x27")][Zc("0x4b")]&&e[Zc("0x33")]({tag:Zc("0x2a"),attributes:{class:[Zc("0x23")]},children:[{text:this[Zc("0x19")]()}]});const n={tag:Zc("0x2a"),attributes:{class:[Zc("0x13"),t.if(Zc("0xe"),Zc("0x45")),t.to(Zc("0x10"),(t=>Zc("0x32")+t)),this[Zc("0x21")].disableComments&&Zc("0x28")],"data-suggestion-id":this[Zc("0x27")].id,"data-thread-id":this[Zc("0x27")][Zc("0x47")].id,"data-author-id":this[Zc("0x27")][Zc("0x1c")].id,tabindex:-1},children:[{tag:"div",attributes:{class:["ck-suggestion",Zc("0x1b")]},children:[this.userView,{tag:Zc("0x2a"),attributes:{class:["ck-suggestion__main",Zc("0x56")]},children:e}]}]};return this[Zc("0x12")]&&this[Zc("0x42")]&&(n[Zc("0x18")][Zc("0x33")](this.commentsListView,this[Zc("0x42")]),this[Zc("0x12")].delegate(Zc("0x1d")).to(this),this.commentsListView[Zc("0x37")](Zc("0x0")).to(this),this[Zc("0x42")].delegate("editorReady").to(this),this[Zc("0x42")][Zc("0x37")]("editorDestroyed").to(this)),n}[Zc("0x1e")](){super.render(),this[Zc("0x6")]=this[Zc("0x38")].querySelector(Zc("0x3c")),this._descriptionElement[Zc("0x4c")]=this[Zc("0x2d")],this.on(Zc("0x26"),((t,e,n)=>{this[Zc("0x6")][Zc("0x4c")]=n}))}[Zc("0x40")](t,e,n,r,o){const s=new i.ButtonView(this[Zc("0x3a")]);return s.set({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s[Zc("0xa")]({attributes:{class:n}}),s.on("execute",(()=>{this[Zc("0x54")](r,this[Zc("0x27")].id)})),s}[Zc("0x19")](){return Zc("0x35")===this._model[Zc("0x4e")][Zc("0xf")][Zc("0xd")]?Yr(this[Zc("0x3a")],Zc("0x50")):Yr(this[Zc("0x3a")],Zc("0x7"))}[Zc("0x39")](){return this[Zc("0x27")][Zc("0x4b")]?Zc("0x35")===this[Zc("0x27")][Zc("0x4e")][Zc("0xf")][Zc("0xd")]?Yr(this[Zc("0x3a")],Zc("0x53"),this[Zc("0x27")][Zc("0x9")][Zc("0x46")]):Yr(this.locale,Zc("0x4"),this[Zc("0x27")].creator.name):null}}function Yc(t,e){let n="";return n+=t.split("*")[Zc("0x29")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+Jc(t)+"</span>":Jc(t)))[Zc("0x14")](""),e&&(n+=Zc("0x24")+e[Zc("0x3")]+Zc("0x1f")+e.title+Zc("0x2")),n}function Jc(t){const e=document[Zc("0x22")]("span");return e[Zc("0x15")]=t,e[Zc("0x4c")]}const tl=["add","isDirty","addSourceCollector","_createUIButton","get","filter","_refreshActiveMarkers","head","comments","_initializeController","activeAnnotations","requires","previous","destroy","trackChanges.disableComments","comments.maxCommentCharsWhenCollapsed","suggestionChanged","isInContent","unbind","CommentsUI","execute","_disableComments","toMany","comments.maxCommentsWhenCollapsed","separator","Discard all selected suggestions","_handleSuggestionControllerDelayed","hasSuggestion","pluginName","clear","source","focus","Annotations","acceptSelectedSuggestions","SuggestionThreadView","some","Discard all suggestions","commands","_destroyController","plugins","config","createAnnotation","editor","change:activeAnnotations","suggestionLoaded","_suggestionToController","trackChanges","value","keys","_annotationViews","init","TrackChangesEditing","delete","editing","getMarkers","_descriptionFactory","acceptButton","CommentsRepository","isMultiRange","change:previous","length","_viewToController","type","_handleControllerBuffer","switchbutton","map","CommentView","Accept all selected suggestions","Track changes","_bindAnnotationToEditors","from","locale","acceptAllSuggestions","lowest","commentThread","buttonView","push","set","descriptionParts","define","_updateController","button","EditorAnnotations","getFirstRange","suggestion-","Accept all suggestions","view","has","suggestionUnloaded","isEnabled","createCommentThreadController","getAllAdjacentSuggestions","comments.editorConfig","actionView","TrackChangesUI","activeMarkers","refreshSelectedViews","innerView","getSuggestion","commandName","comments.maxThreadTotalWeight","discardButton","addComment","bind","discardSelectedSuggestions","arrowView","createAnnotationView","listenTo","mainView","model"];var el,nl;el=tl,nl=431,function(t){for(;--t;)el.push(el.shift())}(++nl);const rl=function(t,e){return tl[t-=0]};class il extends t.Plugin{static get[rl("0x14")](){return[Ac,o.Users,rl("0x42"),rl("0x29"),rl("0x5b")]}static get[rl("0x25")](){return rl("0x67")}constructor(t){super(t),this[rl("0x36")]=new Map,this._viewToController=new Map,this[rl("0x3a")]=new Map,this[rl("0x48")]=new Map;const e=this.editor[rl("0x31")];e[rl("0x58")]("trackChanges.SuggestionThreadView",Qc),e[rl("0x58")](rl("0x17"),!1),this[rl("0x1e")]=e.get("trackChanges.disableComments")}_handleSuggestionControllerDelayed(t,e){0===this[rl("0x48")].size&&setTimeout((()=>{for(const[t,e]of this[rl("0x48")]){const n=this[rl("0x36")].has(t);n||e?n&&e&&this[rl("0x2f")](t):this[rl("0x12")](t)}this._handleControllerBuffer[rl("0x26")](),this.editor[rl("0x30")][rl("0xd")]("EditorAnnotations")[rl("0x69")](),this[rl("0xf")]()}),10),this[rl("0x48")].set(t,e)}[rl("0x3b")](){const t=this[rl("0x33")],e=t[rl("0x30")][rl("0xd")](rl("0x3c")),n=t[rl("0x30")][rl("0xd")]("Annotations"),r=t[rl("0x30")][rl("0xd")](rl("0x5b")),i=t[rl("0x30")][rl("0xd")]("CommentsRepository");t.ui.componentFactory.add(rl("0x37"),(t=>this[rl("0xc")](t))),r[rl("0xb")]((()=>{const t=[];for(const[e,n]of Array[rl("0x4f")](this._suggestionToController)){const r=e[rl("0x64")](),i=[];for(const t of r){if(!t[rl("0x1a")])continue;if(t[rl("0x43")]){i.push(...t.getRanges());continue}const e=t[rl("0x5c")]();if(i.length>0){const t=i[0].getJoined(e);if(t){i[0]=t;continue}}i.push(e)}t[rl("0x55")]([n[rl("0x5f")],i])}return t})),this[rl("0x6")](e,rl("0x35"),((t,e)=>{this[rl("0x6")](e,"change:previous",((t,n,r,i)=>{e[rl("0x1a")]&&(null==r?(this[rl("0x59")](i.head),this[rl("0x23")](e,!1)):(this._updateController(r.head),null==i&&this[rl("0x23")](e,!0)))})),null!==e[rl("0x15")]?this[rl("0x59")](e[rl("0x10")]):this._handleSuggestionControllerDelayed(e,!1)})),this.listenTo(e,rl("0x61"),((t,e,n)=>{this.stopListening(e,rl("0x44")),this[rl("0x48")][rl("0x3d")](e),this[rl("0x36")][rl("0x60")](e)&&this[rl("0x2f")](e),n&&this[rl("0x59")](n[rl("0x10")])})),this[rl("0x6")](e,rl("0x19"),((t,e)=>{this._updateController(e)})),this[rl("0x6")](n,rl("0x34"),(()=>{this[rl("0xf")]()})),this[rl("0x6")](i,rl("0x1"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e[rl("0x24")](n))return;const i=e[rl("0x6b")](n);this._suggestionToController[rl("0xd")](i)[rl("0x5f")][rl("0x28")]()}),{priority:rl("0x52")})}_refreshActiveMarkers(){const t=this.editor[rl("0x30")][rl("0xd")](rl("0x29")),e=this[rl("0x33")][rl("0x30")].get(rl("0x3c")),n=Array.from(t[rl("0x13")],(t=>t[rl("0x6a")])).filter((t=>this[rl("0x46")][rl("0x60")](t))),r=[];for(const t of n){const e=this[rl("0x46")].get(t)[rl("0x8")][rl("0x64")]();r.push(...e.reduce(((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[rl("0x68")]=r}[rl("0xc")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),r=this.editor[rl("0x2e")][rl("0xd")](rl("0x37")),o=Yr(t,rl("0x4d"));n[rl("0x54")].set({tooltip:o,label:o,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-2024, 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.bind("isOn").to(r,rl("0x38")),n[rl("0x54")].on(rl("0x1d"),(()=>{r.execute(),this[rl("0x33")][rl("0x3e")][rl("0x5f")].focus()}));const s=new e.Collection,x=[{type:rl("0x49"),model:{withText:!0,label:o,commandName:rl("0x37")}},{type:"separator"},{type:rl("0x5a"),model:{withText:!0,label:Yr(t,rl("0x5e")),commandName:rl("0x51")}},{type:rl("0x5a"),model:{withText:!0,label:Yr(t,rl("0x4c")),commandName:rl("0x2a")}},{type:rl("0x5a"),model:{withText:!0,label:Yr(t,rl("0x2d")),commandName:"discardAllSuggestions"}},{type:rl("0x5a"),model:{withText:!0,label:Yr(t,rl("0x22")),commandName:rl("0x3")}}];for(const t of x){let e={type:rl("0x21")};if(t.model){const n=new i.ViewModel(t[rl("0x8")]),r=this[rl("0x33")][rl("0x2e")].get(n[rl("0x6c")]);n[rl("0x2")]("isOn",rl("0x62")).to(r,rl("0x38"),"isEnabled"),e={type:t.type,model:n}}s[rl("0x9")](e)}(0,i.addListToDropdown)(n,s);const a=x[rl("0xe")]((t=>null!=t.model))[rl("0x4a")]((t=>this[rl("0x33")][rl("0x2e")][rl("0xd")](t.model[rl("0x6c")]))),c=n[rl("0x54")];return c.actionView.unbind("isEnabled"),c[rl("0x4")][rl("0x1b")](rl("0x62")),c[rl("0x66")].bind(rl("0x62")).to(r,rl("0x62")),c.arrowView[rl("0x2")](rl("0x62"))[rl("0x1f")](a,rl("0x62"),((...t)=>t[rl("0x2c")]((t=>t)))),n.on(rl("0x1d"),(t=>{this[rl("0x33")].execute(t[rl("0x27")][rl("0x6c")]),this[rl("0x33")][rl("0x3e")][rl("0x5f")].focus()})),n}_initializeController(t){const e=this[rl("0x33")],n=e[rl("0x31")],r=e.plugins[rl("0xd")](rl("0x29")),i=e[rl("0x30")][rl("0xd")]("CommentsRepository"),s=e[rl("0x30")][rl("0xd")](rl("0x5b")),x=e.plugins[rl("0xd")](o.Users).me,a=n[rl("0xd")]("trackChanges")[rl("0x2b")],{CommentsListView:c,CommentThreadInputView:l}=e[rl("0x30")][rl("0xd")](rl("0x1c"));let u,d;this[rl("0x3a")][rl("0x60")](t.id)?(d=this[rl("0x3a")][rl("0xd")](t.id),u=d[rl("0x7")]):(u=new a(e.locale,t,x,{disableComments:this[rl("0x1e")],editorConfig:n[rl("0xd")](rl("0x65")),maxCommentsWhenCollapsed:n[rl("0xd")](rl("0x20")),maxThreadTotalWeight:n[rl("0xd")](rl("0x6d")),maxCommentCharsWhenCollapsed:n[rl("0xd")](rl("0x18")),formatDateTime:(0,o.getDateTimeFormatter)(n[rl("0xd")](rl("0x50"))),CommentView:n[rl("0xd")](rl("0x11"))[rl("0x4b")],CommentsListView:c,CommentThreadInputView:l}),u[rl("0x41")].on(rl("0x1d"),(()=>{e[rl("0x3e")][rl("0x5f")][rl("0x28")]()})),u[rl("0x0")].on("execute",(()=>{e[rl("0x3e")][rl("0x5f")][rl("0x28")]()})),d=r[rl("0x5")](this[rl("0x33")].locale,u),d.bind(rl("0xa")).to(u,rl("0xa")),d[rl("0x2")](rl("0x45")).to(u),d[rl("0x2")](rl("0x47")).to(u,"type",(t=>rl("0x5d")+t)),this[rl("0x3a")][rl("0x56")](t.id,d));const g=i[rl("0x63")](t[rl("0x53")],u),f=new Gc(e,t,u,g),h=t[rl("0x64")]().filter((t=>t.isInContent));u[rl("0x57")]=e[rl("0x30")][rl("0xd")](rl("0x3c"))[rl("0x40")].getDescriptions(h),this[rl("0x36")].set(t,f),this[rl("0x46")][rl("0x56")](u,f);const m=r[rl("0x32")]({view:d,target:()=>{const n=[],r=t.getAllAdjacentSuggestions()[rl("0xe")]((t=>t[rl("0x1a")]));for(const t of r)n[rl("0x55")](...t[rl("0x3f")]());return(0,o.getAllMarkersDomElementsSorted)(e[rl("0x3e")],n)},type:()=>"suggestion-"+f[rl("0x5f")][rl("0x47")]});i[rl("0x4e")](u,m),r[rl("0x9")](m),s.registerAnnotation(m)}[rl("0x2f")](t){const e=this[rl("0x33")][rl("0x30")][rl("0xd")](rl("0x42")),n=this[rl("0x33")].plugins.get(rl("0x29")),r=this[rl("0x36")].get(t),i=r.view,o=n.getByInnerView(i);e._unbindEditors(i),o&&n.remove(o),this._suggestionToController[rl("0x3d")](t),this[rl("0x46")][rl("0x3d")](i),r[rl("0x16")]()}[rl("0x59")](t){if(!t[rl("0x1a")]||!this[rl("0x36")][rl("0x60")](t))return;const e=this[rl("0x33")][rl("0x30")].get("TrackChangesEditing"),n=this[rl("0x36")].get(t),r=t[rl("0x64")]();n.view[rl("0x57")]=e[rl("0x40")].getDescriptions(r)}[rl("0x16")](){for(const t of this[rl("0x36")][rl("0x39")]())this[rl("0x2f")](t);for(const t of this[rl("0x3a")].values())t[rl("0x7")].destroy();super[rl("0x16")]()}}var ol,sl,xl=["requires","TrackChanges","adapter","addSuggestion","editor","pluginName","getSuggestion","addSuggestionData","get","plugins","getSuggestions"];ol=xl,sl=131,function(t){for(;--t;)ol.push(ol.shift())}(++sl);var al=function(t,e){return xl[t-=0]};class cl extends t.Plugin{static get[al("0x1")](){return[Ac,il,"Comments"]}static get[al("0x6")](){return al("0x2")}set[al("0x3")](t){this.editor[al("0xa")].get(Ac)[al("0x3")]=t}get[al("0x3")](){return this.editor[al("0xa")][al("0x9")](Ac).adapter}[al("0x4")](t){return this[al("0x5")][al("0xa")][al("0x9")](Ac)[al("0x8")](t)}[al("0x0")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[al("0x5")].plugins.get(Ac)[al("0x0")]({skipNotAttached:t,toJSON:e})}[al("0x7")](t){return this[al("0x5")][al("0xa")][al("0x9")](Ac).getSuggestion(t)}}const ll=["addUser","getRootsAttributes","getUser","createDocumentFragment","useAnonymousUser","rootsAttributes","getDataWithAcceptedSuggestions","getRootNames","model","pluginName","getSuggestions","Users","trackChangesData.editorCreator","init","trackChangesData","div","reduce","createElement","constructor","create","config","get","TrackChangesData","name","execute","define","Pagination","acceptAllSuggestions","CommentsRepository","result","push","plugins","editorCreator","track-changes-data-invalid-editor-creator","discardAllSuggestions","function","set","TrackChangesEditing","_adapter","users","appendChild","data","getDataWithDiscardedSuggestions","requires","editor"];var ul,dl;ul=ll,dl=303,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=[gl("0x26")];class hl extends t.Plugin{static get[gl("0xa")](){return[Ac]}static get[gl("0x15")](){return gl("0x22")}init(){const t=this[gl("0xb")];if(t[gl("0x20")][gl("0x25")](gl("0x18"),(e=>{const n=t[gl("0x14")].document[gl("0x13")]().reduce(((t,e)=>(t[e]="",t)),{});return t[gl("0x1e")][gl("0x1f")](n,e)})),gl("0x2")!=typeof t[gl("0x20")][gl("0x21")](gl("0x1a")).editorCreator)throw new e.CKEditorError(gl("0x0"))}[gl("0x12")](t){return bl(this[gl("0xb")],!0,t)}[gl("0x9")](t){return bl(this[gl("0xb")],!1,t)}}class ml extends t.Plugin{static get pluginName(){return"TrackChangesDataGetter"}constructor(t){super(t),this[gl("0x29")]="end"}[gl("0x19")](){this[gl("0xb")].plugins[gl("0x21")](gl("0x28"))._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[gl("0xb")][gl("0x2b")][gl("0x21")](gl("0x4"))[gl("0x5")]=null}}function pl(t){return void 0!==t.getRootsAttributes}async function bl(t,e,n){const r=(0,o.sanitizeEditorConfig)(t,fl);r[gl("0x2b")][gl("0x2a")](Ac,ml),r[gl("0x11")]=pl(t)?t[gl("0xd")]():void 0;const i=document[gl("0xf")](),s=t[gl("0x20")][gl("0x21")](gl("0x1a"))[gl("0x2c")],x=await s(r,(()=>function(t){const e=document[gl("0x1d")](gl("0x1b"));return t[gl("0x7")](e),e}(i)));!function(t,e){const n=t[gl("0x14")].document[gl("0x13")]()[gl("0x1c")](((e,n)=>(e[n]=t[gl("0x8")].get({rootName:n}),e)),{}),r=t[gl("0x2b")].get(gl("0x17"))[gl("0x6")].map((t=>({id:t.id,name:t[gl("0x23")]}))),i=t[gl("0x2b")][gl("0x21")](gl("0x4"))[gl("0x16")]({skipNotAttached:!0,toJSON:!0}),o=e[gl("0x2b")][gl("0x21")](gl("0x17")),s=e[gl("0x2b")][gl("0x21")](gl("0x4"));for(const t of r)o[gl("0xe")](t.id)||o[gl("0xc")](t);o.me||o[gl("0x10")]();for(const t of i)s.addSuggestionData(t);e[gl("0x8")][gl("0x3")](n)}(t,x),x[gl("0x24")](gl(e?"0x27":"0x1"));const a=pl(x)?x.getFullData(n):x[gl("0x8")][gl("0x21")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();