@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240128.0 → 0.0.0-nightly-20240130.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/casechange.js +1 -1
  13. package/src/integrations/ckbox.js +1 -1
  14. package/src/integrations/codeblock.js +1 -1
  15. package/src/integrations/comments.js +1 -1
  16. package/src/integrations/deletecommand.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/imagestyle.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/legacylist.js +1 -1
  32. package/src/integrations/legacylistproperties.js +1 -1
  33. package/src/integrations/link.js +1 -1
  34. package/src/integrations/list.js +1 -1
  35. package/src/integrations/listproperties.js +1 -1
  36. package/src/integrations/mediaembed.js +1 -1
  37. package/src/integrations/mention.js +1 -1
  38. package/src/integrations/pagebreak.js +1 -1
  39. package/src/integrations/paragraph.js +1 -1
  40. package/src/integrations/removeformat.js +1 -1
  41. package/src/integrations/restrictededitingmode.js +1 -1
  42. package/src/integrations/shiftentercommand.js +1 -1
  43. package/src/integrations/standardeditingmode.js +1 -1
  44. package/src/integrations/style.js +1 -1
  45. package/src/integrations/table.js +1 -1
  46. package/src/integrations/tablecaption.js +1 -1
  47. package/src/integrations/tableclipboard.js +1 -1
  48. package/src/integrations/tablecolumnresize.js +1 -1
  49. package/src/integrations/tableheadings.js +1 -1
  50. package/src/integrations/tablemergesplit.js +1 -1
  51. package/src/integrations/tableofcontents.js +1 -1
  52. package/src/integrations/tableproperties.js +1 -1
  53. package/src/integrations/template.js +1 -1
  54. package/src/integrations/title.js +1 -1
  55. package/src/integrations/undo.js +1 -1
  56. package/src/integrations/utils.js +1 -1
  57. package/src/suggestion.js +1 -1
  58. package/src/suggestiondescriptionfactory.js +1 -1
  59. package/src/trackchanges.js +1 -1
  60. package/src/trackchangesdata.js +1 -1
  61. package/src/trackchangesediting.js +1 -1
  62. package/src/trackchangesui.js +1 -1
  63. package/src/ui/suggestioncontroller.js +1 -1
  64. package/src/ui/view/basesuggestionthreadview.js +1 -1
  65. package/src/ui/view/suggestionthreadview.js +1 -1
  66. package/src/utils/common-translations.js +1 -1
  67. package/src/utils/utils.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(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","forceDisabled","value","isEnabled","commands","has","editor","refresh","execute","clearForceDisabled","TrackChangesCommand","_enableCommands","_isEnabledBasedOnSelection","affectsData","_disableUnsupportedCommands"];var c,l;c=a,l=307,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("0x8")]=e,this[u("0xa")]=!1,this.refresh(),this[u("0x5")]=!1}[u("0x0")](){this[u("0xb")]=!0}[u("0x1")](){this.value=!this[u("0xa")],this[u("0xa")]?this._disableUnsupportedCommands():this._enableCommands()}[u("0x7")](){for(const t of this[u("0xe")].commands[u("0xc")]())t[u("0x6")]&&!this._enabledCommands.has(t)&&t[u("0x9")](u("0x3"))}[u("0x4")](){for(const t of this[u("0xe")][u("0xc")][u("0xc")]())t[u("0x6")]&&!this[u("0x8")][u("0xd")](t)&&t[u("0x2")](u("0x3"))}}const g=["model","editor","TrackChangesEditing","_isEnabledBasedOnSelection","isEnabled","get","_suggestions","canEditAt","refresh"];var f,h;f=g,h=154,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._suggestions=e,this[m("0x7")](),this[m("0x2")]=!1}refresh(){this[m("0x3")]=!0}execute(t){const n=this[m("0x5")].get(t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const r=n.getRanges();this[m("0x0")][m("0x8")][m("0x6")](r)&&this[m("0x0")].plugins[m("0x4")](m("0x1")).acceptSuggestion(n)}}const b=["_isEnabledBasedOnSelection","track-changes-discard-suggestion-not-found","canEditAt","discardSuggestion","plugins","getRanges","TrackChangesEditing","get","_suggestions","refresh","editor"];var E,_;E=b,_=219,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0x9")]=e,this[T("0xa")](),this[T("0x1")]=!1}refresh(){this.isEnabled=!0}execute(t){const n=this[T("0x9")][T("0x8")](t);if(!n)throw new e.CKEditorError(T("0x2"),this);const r=n[T("0x6")]();this[T("0x0")].model[T("0x3")](r)&&this[T("0x0")][T("0x5")].get(T("0x7"))[T("0x4")](n)}}const C=["change","deletion","join","type","isTouching","start","value","createPositionBefore","sort","getRanges","createPositionAt","end","createRange","next","isArray","isIntersecting","add","createPositionAfter","isMultiRange","color","map","isCollapsed","splice"];var A,k;A=C,k=105,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function S(t){return t[I("0x12")](((t,e)=>I("0xb")==t[I("0xd")]&&"deletion"!=e[I("0xd")]?-1:I("0xb")!=t[I("0xd")]&&"deletion"==e[I("0xd")]?1:0))}function R(t,e){let n,r=0;const i=[],o=e.schema;for(;r<t.length;){const s=t[r],x=t[r+1];n||(n=e.createPositionBefore(s)),v(e,s,x)||(i.push(e[I("0x16")](n,o.isObject(s)?e.createPositionAfter(s):e[I("0x14")](s,I("0x15")))),n=null),r++}return i}function v(t,e,n){if(!n)return!1;const r=t[I("0x4")](e),i=t[I("0x11")](n);return r[I("0xe")](i)}function N(t,e,n){for(;n.length;){const r=n[I("0x9")](0,100);t[I("0xa")]((()=>{for(const t of r)t.isInContent&&e.execute(t.id)}))}}const L=["_command","_isEnabledBasedOnSelection","isEnabled","editor","some","_suggestions","refresh","model","getRanges","isInContent"];var M,w;M=L,w=119,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x1")]=e,this[O("0x6")]=n,this[O("0x7")](),this[O("0x2")]=!1}[O("0x7")](){const t=Array.from(this[O("0x6")].values())[O("0x5")]((t=>t[O("0x0")]));this[O("0x3")]=this[O("0x1")].isEnabled&&t}execute(){const t=S(Array.from(this._suggestions.values()));for(const e of t){const t=e[O("0x9")]();if(!this[O("0x4")][O("0x8")].canEditAt(t))return}N(this[O("0x4")][O("0x8")],this[O("0x1")],t)}}const D=["model","_selectedSuggestions","document","refresh","from","editor","_command","execute","selection","getRanges","isEnabled","_suggestions"];var B,P;B=D,P=495,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this._command=e,this._suggestions=n,this[U("0xa")]=new Set,this[U("0x0")](),this._isEnabledBasedOnSelection=!1}refresh(){const t=this[U("0x2")].model[U("0xb")][U("0x5")],e=Array[U("0x1")](this[U("0x8")].values());this[U("0xa")]=function(t,e){const n=Array.from(t[I("0x13")]()),r=new Set;for(const i of e)if(i.isInContent)for(const e of n)for(const n of i[I("0x13")]())(e[I("0x2")](n)||t[I("0x8")]&&!i[I("0x5")]&&i[I("0x0")]&&n[I("0x15")][I("0xe")](e[I("0xf")]))&&r[I("0x3")](i);return r}(t,e),this[U("0x7")]=this[U("0x3")][U("0x7")]&&!!this._selectedSuggestions.size}[U("0x4")](){const t=S(Array[U("0x1")](this._selectedSuggestions));for(const e of t){const t=e[U("0x6")]();if(!this[U("0x2")][U("0x9")].canEditAt(t))return}N(this.editor[U("0x9")],this[U("0x3")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,r=H(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const rt=et||nt||Function("return this")();const 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 Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var r=n.__data__;if(!Lt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(r)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var re=Object.prototype.hasOwnProperty;const 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 Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!ht(t)};const je=function(t){return Ue(t)?Me(t):Pe(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 Ye=function(t,e){if(e)return t.slice();var n=t.length,r=Ze?Ze(n):new t.constructor(n);return t.copy(r),r};const Je=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,r=null==t?0:t.length,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),Qe(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,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Un(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Rn(t)};var Wn=Re&&Re.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Rn(t)};var Xn=Re&&Re.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const 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 Je(e,x)}else{var d=Rn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!o){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Qn[d])return o?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(i){x.add(t(i,n,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]",Br=Object.prototype.hasOwnProperty;const Pr=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 Qt),s||Ne(t)?Ir(t,e,n,r,i,o):Lr(t,e,a,n,r,i,o);if(!(1&n)){var g=l&&Br.call(t,"__wrapped__"),f=u&&Br.call(e,"__wrapped__");if(g||f){var h=g?t.value():t,m=f?e.value():e;return o||(o=new Qt),i(h,m,n,r,o)}}return!!d&&(o||(o=new Qt),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:Pr(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=["isExternal","from","hasComments","map","@external","isIntersectingWithRange","addMarkerName","setAttribute","onDiscard","nodeAfter","length","subType","addRange","head","next","_saved","delete","accept","author","isInContent","add","clear","nodeBefore","change","getAllAdjacentSuggestions","_onAttributesChange","getMultiRangeId","creator","type","removeAttribute","removeMarker","getMarkers","suggestion:","push","createdAt","isMultiRange","getFirstRange","onAccept","getFirstMarker","authoredAt","discard","toJSON","set","removeMarkers","_model","_isDataLoaded","getRanges","_onDiscard","getContainedElement","commentThread","attributes","start","addMarker","decorate","previous","getItems","_markerNames","getRange","onAttributesChange","getMarkerNames","data"];var Xr,$r;Xr=qr,$r=221,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Zr=function(t,e){return qr[t-=0]};class Yr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0x7")]=!1,this.id=e.id,this.type=e[Zr("0x33")],this.subType=e[Zr("0x22")]||null,this[Zr("0x29")]=e[Zr("0x29")],this[Zr("0x32")]=e[Zr("0x32")]||e[Zr("0x29")],this[Zr("0x17")]=Boolean(e.attributes&&e.attributes[Zr("0x1b")]),this.data=null,this._model=t,this._onAccept=e[Zr("0x3c")],this[Zr("0x9")]=e[Zr("0x1f")],this[Zr("0x30")]=e[Zr("0x14")],this[Zr("0x12")]=new Set,this.createdAt=null,this.set(Zr("0x1"),null),this[Zr("0x4")](Zr("0xc"),e.attributes||{}),this[Zr("0x4")]("previous",null),this.set("next",null),this[Zr("0x4")]("commentThread",null),this[Zr("0x4")](Zr("0x26"),!1),this[Zr("0xf")](Zr("0x28")),this.decorate(Zr("0x2"))}get[Zr("0x24")](){let t=this;for(;t[Zr("0x10")];)t=t[Zr("0x10")];return t}get[Zr("0x19")](){return!!this.commentThread&&this[Zr("0xb")][Zr("0x21")]>0}get[Zr("0x3a")](){return 0!=this[Zr("0x12")].size&&6==Array.from(this[Zr("0x12")])[0].split(":").length}get[Zr("0x2a")](){return null!==this.getFirstMarker()}[Zr("0x1d")](t){this[Zr("0x12")][Zr("0x2b")](t)}[Zr("0x15")](){return Array[Zr("0x18")](this[Zr("0x12")])}[Zr("0x36")](){return this[Zr("0x15")]()[Zr("0x1a")]((t=>this[Zr("0x6")].markers.get(t))).filter((t=>t))}[Zr("0x0")](){return this[Zr("0x36")]()[0]||null}removeMarkers(){this[Zr("0x6")][Zr("0x2e")]((t=>{for(const e of this[Zr("0x36")]())t[Zr("0x35")](e)})),this[Zr("0x12")][Zr("0x2c")]()}removeMarker(t){this[Zr("0x6")][Zr("0x2e")]((e=>{e[Zr("0x35")](t)})),this[Zr("0x12")][Zr("0x27")](t)}[Zr("0x23")](t){const e=Zr("0x37")+this[Zr("0x33")]+":"+this[Zr("0x22")]+":"+this.id+":"+this.creator.id+":"+Yr[Zr("0x31")]();this.addMarkerName(e),this[Zr("0x6")].change((n=>{n[Zr("0xe")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x1c")](t){for(const e of this[Zr("0x8")]())if(e.isIntersecting(t))return!0;return!1}[Zr("0x8")](){return this[Zr("0x36")]().map((t=>t[Zr("0x13")]()))}[Zr("0x11")](){return this[Zr("0x8")]().reduce(((t,e)=>[...t,...e[Zr("0x11")]()]),[])}[Zr("0x3b")](){var t;return(null===(t=this[Zr("0x0")]())||void 0===t?void 0:t.getRange())||null}[Zr("0xa")](){const t=this[Zr("0x8")]();if(1!=t[Zr("0x21")])return null;const e=t[0],n=e[Zr("0xd")][Zr("0x20")],r=e.end[Zr("0x2d")];return n instanceof s.Element?n!=r?null:n:null}accept(){this._onAccept(this[Zr("0x8")](),this[Zr("0x16")],this.attributes),this[Zr("0x5")]()}discard(){this[Zr("0x9")](this[Zr("0x8")](),this[Zr("0x16")],this[Zr("0xc")]),this[Zr("0x5")]()}[Zr("0x2f")](){const t=[];let e=this[Zr("0x24")];for(;e;)t[Zr("0x38")](e),e=e[Zr("0x25")];return t}[Zr("0x1e")](t,e){const n=er(this[Zr("0xc")]);Er(n,t,e),jr(n,this.attributes)||(this.attributes=n,this[Zr("0x30")](n))}[Zr("0x34")](t){const e=er(this[Zr("0xc")]);Kr(e,t),jr(e,this.attributes)||(this[Zr("0xc")]=e,this[Zr("0x30")](this[Zr("0xc")]))}[Zr("0x3")](){return{id:this.id,type:this[Zr("0x22")]?this[Zr("0x33")]+":"+this.subType:this.type,authorId:this[Zr("0x32")].id,createdAt:this[Zr("0x39")],hasComments:this.hasComments,data:this.data,attributes:this[Zr("0xc")]}}static[Zr("0x31")](){return(0,e.uid)().substr(1,5)}}function Jr(t,e,n){const r=t.t;switch(e){case"Track changes":return r("Track changes");case"Accept suggestion":return r("Accept suggestion");case"Discard suggestion":return r("Discard suggestion");case"Accept all suggestions":return r("Accept all suggestions");case"Accept all selected suggestions":return r("Accept all selected suggestions");case"Discard all suggestions":return r("Discard all suggestions");case"Discard all selected suggestions":return r("Discard all selected suggestions");case"*Reset font size*":return r("*Reset font size*");case"*Reset font family*":return r("*Reset font family*");case"*Reset font color*":return r("*Reset font color*");case"*Reset font background color*":return r("*Reset font background color*");case"*Remove image text alternative*":return r("*Remove image text alternative*");case"*Reset image width*":return r("*Reset image width*");case"*Remove link*":return r("*Remove link*");case"*Check item*":return r("*Check item*");case"*Uncheck item*":return r("*Uncheck item*");case"*Remove all formatting*":return r("*Remove all formatting*");case"*Replace table cells*":return r("*Replace table cells*");case"*Merge cells*":return r("*Merge cells*");case"*Split cell:* vertically":return r("*Split cell:* vertically");case"*Split cell:* horizontally":return r("*Split cell:* horizontally");case"*Indent:* %0":return r("*Indent:* %0",n);case"*Outdent:* %0":return r("*Outdent:* %0",n);case"*Change to:* %0":return r("*Change to:* %0",n);case"*Insert:* %0":return r("*Insert:* %0",n);case"*Format:* %0":return r("*Format:* %0",n);case"*Format:* change table properties":return r("*Format:* change table properties");case"*Format:* change table cell properties":return r("*Format:* change table cell properties");case"*Format:* insert into %0":return r("*Format:* insert into %0",n);case"*Format:* remove from %0":return r("*Format:* remove from %0",n);case"*Replace image URL*":return r("*Replace image URL*");case"*Format:* resize table":return r("*Format:* resize table");case"*Format:* set order to reversed":return r("*Format:* set order to reversed");case"*Format:* set order to regular":return r("*Format:* set order to regular");case"*Format:* set start index to %0":return r("*Format:* set start index to %0",n);case"*Change %0 content*":return r("*Change %0 content*",n);case"*Remove:* %0":return r("*Remove:* %0",n);case"*Merge:* %0":return r("*Merge:* %0",n);case"*Split:* %0":return r("*Split:* %0",n);case"*Remove format:* %0":return r("*Remove format:* %0",n);case"*Set font size:* %0":return r("*Set font size:* %0",n);case"*Set font family:* %0":return r("*Set font family:* %0",n);case"*Set format to:* %0":return r("*Set format to:* %0",n);case"*Set font color:* %0":return r("*Set font color:* %0",n);case"*Set font background color:* %0":return r("*Set font background color:* %0",n);case"*Set format:* %0":return r("*Set format:* %0",n);case"*Set image text alternative:* %0":return r("*Set image text alternative:* %0",n);case"*Set image width:* %0":return r("*Set image width:* %0",n);case"*Set link:* %0":return r("*Set link:* %0",n);case"*Set highlight:* %0":return r("*Set highlight:* %0",n);case"*Remove highlight*":return r("*Remove highlight*");case"FORMAT_HIGHLIGHT":return r({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return r({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return r({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return r({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return r({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return r({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return r({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return r({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return r({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return r({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return r({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return r({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return r({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return r({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return r({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return r({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return r({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return r({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return r({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return r({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return r({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return r({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return r({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return r({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return r({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return r({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return r({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return r({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return r({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return r({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return r({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return r({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return r({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return r({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return r({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return r({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return r({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return r({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return r({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return r({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return r({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return r({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return r({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return r({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return r({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return r({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return r({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return r({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return r({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return r({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return r({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return r({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return r({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return r({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return r({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return r({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return r({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return r({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return r({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return r({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return r({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return r({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return r({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return r({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return r({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return r({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return r({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return r({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return r({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return r({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Qr=["type","isEmpty","_attributeLabels","data","format","*Remove:* %0","$textProxy","element","function","nextSibling","push","subType","registerDescriptionCallback","_handleInsertRemoveSuggestionDescription","getFirstRange","match","set","join","add","_handleRenameSuggestionDescription","isEqual","_locale","replace","newValue","has","registerElementLabel","_customCallbacks","ELEMENT_SPACE","insertion","*Change to:* %0","Container","_schema","item","previousSibling","$text","text","length","_resolveDescriptionItems","end","*Set format:* %0","_handleAttributeSuggestionDescription","skip","nodeAfter","_itemLabels","getWalker","addEmptyContainer","name","removeContainer","pop","addFormat","start","isObject","attribute","$1 $2","REPLACE_TEXT","removeFormat","removeEmptyContainer","_addDescriptionItems","*Split:* %0","getItemLabel","addContainer","*Insert:* %0","*Remove format:* %0","_handleCustomCallbackDescription","key","quantity","Object","map","remove","_itemLabelsCallbacks","matchingCallback","elementEnd","indexOf","get","deletion","registerAttributeLabel","removeObject"];var ti,ei;ti=Qr,ei=239,function(t){for(;--t;)ti.push(ti.shift())}(++ei);const ni=function(t,e){return Qr[t-=0]};class ri{constructor(t,e){this._customCallbacks=[],this[ni("0x23")]=new Map,this[ni("0x3d")]=[],this[ni("0x47")]=new Map,this[ni("0x17")]=t,this._locale=e}getDescriptions(t){const e=[],n=new Set,r=new Set;for(let i=0;i<t.length;i++){const o=t[i];if(!o.isInContent)continue;const s=this[ni("0x37")](o);if(s){if(null!=o[ni("0x3")]){if(n[ni("0x10")](o[ni("0x3")]))continue;n[ni("0xa")](o[ni("0x3")])}e[ni("0x2")](s)}else if(ni("0x2c")!=o[ni("0x45")])ni("0x14")!=o[ni("0x45")]&&ni("0x42")!=o[ni("0x45")]||this[ni("0x5")](e,o,t[i+1]);else{const t=o[ni("0x48")][ni("0x38")];if(r[ni("0x10")](t))continue;r[ni("0xa")](o[ni("0x48")].key),t==Cc?this._handleRenameSuggestionDescription(e,o):this[ni("0x20")](e,o)}}return this._resolveDescriptionItems(e)}[ni("0x4")](t){this[ni("0x12")][ni("0x2")](t)}[ni("0x11")](t,n,r=e.priorities.normal){ni("0x0")==typeof t?(0,e.insertToPriorityArray)(this[ni("0x3d")],{matchingCallback:t,label:n,priority:r}):this[ni("0x23")][ni("0x8")](t,n)}[ni("0x43")](t,e){this._attributeLabels.set(t,e)}[ni("0x33")](t,e=1){let n;for(const e of this[ni("0x3d")])if(e[ni("0x3e")](t)){n=e.label;break}return n||(n=this[ni("0x23")][ni("0x41")](t.name)),n?n(e):1!==e?e+" "+t[ni("0x26")]+"s":""+t[ni("0x26")]}_addDescriptionItems(t,e){const n=e.getFirstRange()[ni("0x24")](),r=ni("0x14")==e[ni("0x45")]?ni("0xa"):ni("0x3c");for(const e of n){const i=e[ni("0x18")],o=t[t[ni("0x1c")]-1];if(i.is(ni("0x4b")))o&&o[ni("0x45")][ni("0x40")]("Container")>-1&&t[ni("0x28")](),o&&ni("0x1b")==o[ni("0x45")]?o[r]+=i[ni("0x48")]:t.push({type:ni("0x1b"),add:ni("0xa")==r?i[ni("0x48")]:"",remove:ni("0x3c")==r?i[ni("0x48")]:""});else if(this[ni("0x17")].isObject(i)){const s=i;if(o&&o[ni("0x45")][ni("0x40")](ni("0x16"))>-1&&t[ni("0x28")](),"elementEnd"==e[ni("0x45")])continue;o&&o.type==r+"Object"&&o[ni("0x4c")][ni("0x26")]==s[ni("0x26")]?o[ni("0x39")]++:t[ni("0x2")]({type:r+ni("0x3a"),element:s,quantity:1}),n[ni("0x21")]((t=>!(ni("0x3f")==t.type&&t[ni("0x18")]==i)))}else if(this._schema.checkChild(i,ni("0x1a"))||i.is(ni("0x4c"),"softBreak")){const n=i;if(ni("0xa")==r&&"elementStart"==e[ni("0x45")]||ni("0x3c")==r&&ni("0x3f")==e[ni("0x45")])continue;if(o&&-1==o[ni("0x45")].indexOf("Container")){ni("0x1b")==o[ni("0x45")]&&(o[r]+="\n");continue}let s;if(s="add"==r?n[ni("0x1")]&&!this[ni("0x17")].isObject(n.nextSibling)?n[ni("0x1")]:null:n[ni("0x19")]&&!this[ni("0x17")][ni("0x2b")](n[ni("0x19")])?n.previousSibling:null,n[ni("0x46")]||s&&s[ni("0x46")]){const e=s&&s[ni("0x46")]?s:n;o&&o[ni("0x45")]==r+"EmptyContainer"&&o[ni("0x4c")][ni("0x26")]==e[ni("0x26")]?o[ni("0x39")]++:t[ni("0x2")]({type:r+"EmptyContainer",element:e,quantity:1})}else t[ni("0x2")]({type:r+ni("0x16"),element:n})}}}[ni("0x1d")](t){const e=this[ni("0xd")],n=[],r=[],i=[];for(const o of t)switch(o[ni("0x45")]){case ni("0x1b"):if(o[ni("0xa")]=o[ni("0xa")][ni("0xe")](/(\S)\u000A+(\S)/g,ni("0x2d"))[ni("0xe")](/\u000A/g,""),o[ni("0x3c")]=o[ni("0x3c")].replace(/(\S)\u000A+(\S)/g,ni("0x2d"))[ni("0xe")](/\u000A/g,""),""!=o.add&&""!=o[ni("0x3c")]){n.push({type:ni("0xe"),content:Jr(e,ni("0x2e"),['"'+o[ni("0x3c")]+'"','"'+o.add+'"'])});continue}if(null!=o[ni("0xa")][ni("0x7")](/^ +$/)){n[ni("0x2")]({type:"insertion",content:Jr(e,ni("0x35"),Jr(e,ni("0x13"),o.add.length))});continue}if(null!=o[ni("0x3c")][ni("0x7")](/^ +$/)){n[ni("0x2")]({type:"deletion",content:Jr(e,ni("0x4a"),Jr(e,ni("0x13"),o.remove[ni("0x1c")]))});continue}if(""!=o[ni("0xa")]){n[ni("0x2")]({type:"insertion",content:Jr(e,ni("0x35"),'"'+o[ni("0xa")]+'"')});continue}n[ni("0x2")]({type:ni("0x42"),content:Jr(e,ni("0x4a"),'"'+o[ni("0x3c")]+'"')});continue;case ni("0x25"):case"addObject":n[ni("0x2")]({type:ni("0x14"),content:Jr(e,ni("0x35"),this[ni("0x33")](o[ni("0x4c")],o[ni("0x39")]))});continue;case ni("0x30"):case ni("0x44"):n[ni("0x2")]({type:"deletion",content:Jr(e,ni("0x4a"),this[ni("0x33")](o[ni("0x4c")],o.quantity))});continue;case ni("0x34"):n[ni("0x2")]({type:ni("0x14"),content:Jr(e,ni("0x32"),this[ni("0x33")](o[ni("0x4c")],o.quantity))});continue;case ni("0x27"):n[ni("0x2")]({type:ni("0x42"),content:Jr(e,"*Merge:* %0",this[ni("0x33")](o.element,o[ni("0x39")]))});continue;case ni("0x29"):r[ni("0x2")](o[ni("0x38")]);continue;case ni("0x2f"):i[ni("0x2")](o[ni("0x38")]);continue;default:n[ni("0x2")](o)}if(r[ni("0x1c")]){const t=r[ni("0x3b")]((t=>this[ni("0x47")][ni("0x10")](t)?this[ni("0x47")][ni("0x41")](t):t))[ni("0x9")](", ");n.push({type:"format",content:Jr(this[ni("0xd")],ni("0x1f"),t)})}if(i.length){const t=i.map((t=>this._attributeLabels[ni("0x10")](t)?this._attributeLabels[ni("0x41")](t):t))[ni("0x9")](", ");n[ni("0x2")]({type:ni("0x49"),content:Jr(this[ni("0xd")],ni("0x36"),t)})}return n}[ni("0x37")](t){for(const e of this[ni("0x12")]){const n=e(t);if(n&&ni("0x45")in n)return n}}[ni("0x20")](t,e){const n=e[ni("0x48")],r=void 0===n[ni("0xf")]?ni("0x2f"):ni("0x29");t[ni("0x2")]({type:r,key:n[ni("0x38")]})}[ni("0xb")](t,e){t[ni("0x2")]({type:ni("0x49"),content:Jr(this._locale,ni("0x15"),this.getItemLabel(e.getFirstRange()[ni("0x2a")][ni("0x22")],1))})}[ni("0x5")](t,e,n){if(this[ni("0x31")](t,e),n&&n[ni("0x6")]()&&!e.getFirstRange()[ni("0x1e")][ni("0xc")](n[ni("0x6")]().start)){const n=t[t[ni("0x1c")]-1],r=ni("0x14")==e[ni("0x45")]?ni("0xa"):ni("0x3c");n&&ni("0x1b")==n[ni("0x45")]&&(n[r]+="\n")}}}const ii=["enableCommand","get","showAIAssistant","TrackChangesEditing","plugins"];var oi,si;oi=ii,si=152,function(t){for(;--t;)oi.push(oi.shift())}(++si);const xi=function(t,e){return ii[t-=0]};class ai extends t.Plugin{afterInit(){const t=this.editor,e=t[xi("0x2")][xi("0x4")](xi("0x1"));t.commands.get(xi("0x0"))&&e[xi("0x3")](xi("0x0"))}}const ci=["AlignmentEditing","center","alignment","_registerLegacyDescription","get","*Format:* %0","has","TrackChangesEditing","registerDescriptionCallback","formatBlock","right","_descriptionFactory","commandParams","FORMAT_ALIGN_TO_RIGHT","editor","FORMAT_ALIGN_TO_LEFT","_enableDefaultAttributesIntegration","FORMAT_ALIGN_TO_CENTER","FORMAT_ALIGNMENT","justify","plugins","FORMAT_JUSTIFY_TEXT","afterInit","registerAttributeLabel"];var li,ui;li=ci,ui=186,function(t){for(;--t;)li.push(li.shift())}(++ui);const di=function(t,e){return ci[t-=0]};class gi extends t.Plugin{[di("0x4")](){const t=this.editor,e=t.locale;if(!t[di("0x2")][di("0xc")](di("0x6")))return;const n=t.plugins[di("0xa")](di("0xd"));n[di("0x16")](di("0x8"),[],[di("0x8")]),n._descriptionFactory[di("0x5")](di("0x8"),Jr(e,di("0x0"))),this._registerLegacyDescription()}[di("0x9")](){const t=this[di("0x14")],e=t.locale;t[di("0x2")].get("TrackChangesEditing")[di("0x11")][di("0xe")]((t=>{if(di("0xf")!=t.type)return;const{data:n}=t;if(n&&"alignment"==n.commandName){const t=n[di("0x12")][0].value;return{type:"format",content:Jr(e,di("0xb"),function(t){switch(t){case"left":return Jr(e,di("0x15"));case di("0x10"):return Jr(e,di("0x13"));case di("0x7"):return Jr(e,di("0x17"));case di("0x1"):return Jr(e,di("0x3"))}}(t))}}}))}}const fi=["toLowerCase","toUpperCase","strikethrough","format","subscript","superscript","_descriptionFactory","FORMAT_STRIKETHROUGH","afterInit","CodeEditing","FORMAT_","registerDescriptionCallback","locale","FORMAT_SUBSCRIPT","has","commandName","commandParams","_enableDefaultAttributesIntegration","plugins","bold","formatInline","SuperscriptEditing","SubscriptEditing","underline","registerAttributeLabel","code","_registerLegacyDescription","TrackChangesEditing","FORMAT_BOLD","get","italic"];var hi,mi;hi=fi,mi=172,function(t){for(;--t;)hi.push(hi.shift())}(++mi);const pi=function(t,e){return fi[t-=0]},bi=["BoldEditing","ItalicEditing","UnderlineEditing",pi("0x17"),"StrikethroughEditing",pi("0x5"),pi("0x4")];class Ei extends t.Plugin{[pi("0x16")](){const t=this.editor,e=t[pi("0x1")][pi("0xc")](pi("0xa")),n=t[pi("0x1a")];for(const r of bi){if(!t.plugins[pi("0x1c")](r))continue;const i=r.slice(0,-7)[pi("0xe")](),o=pi("0x18")+i[pi("0xf")]();e[pi("0x0")](i,[i]),e[pi("0x14")][pi("0x7")](i,Jr(n,o))}this[pi("0x9")]()}_registerLegacyDescription(){const t=this.editor,e=t[pi("0x1a")],n=t[pi("0x1")][pi("0xc")](pi("0xa"));function r(t,r){n[pi("0x14")][pi("0x19")]((n=>{if(pi("0x3")!=n.type)return;const{data:i}=n;return i&&i[pi("0x1d")]===t?i[pi("0x1e")][0].forceValue?{type:pi("0x11"),content:Jr(e,"*Format:* %0",r)}:{type:pi("0x11"),content:Jr(e,"*Remove format:* %0",r)}:void 0}))}r(pi("0x2"),Jr(e,pi("0xb"))),r(pi("0xd"),Jr(e,"FORMAT_ITALIC")),r(pi("0x6"),Jr(e,"FORMAT_UNDERLINE")),r(pi("0x8"),Jr(e,"FORMAT_CODE")),r(pi("0x10"),Jr(e,pi("0x15"))),r(pi("0x12"),Jr(e,pi("0x1b"))),r(pi("0x13"),Jr(e,"FORMAT_SUPERSCRIPT"))}}const _i=["plugins","commands","getSelectedBlocks","$root","checkChild","markBlockFormat","_descriptionFactory","change","format","document","editor","forceValue","get","afterInit","*Set format:* %0","parent","BlockQuoteEditing","locale","filter","selection","commandParams","model","ELEMENT_BLOCK_QUOTE","TrackChangesEditing","value","blockQuote","enableCommand","*Remove format:* %0","registerDescriptionCallback","name"];var Ti,yi;Ti=_i,yi=171,function(t){for(;--t;)Ti.push(Ti.shift())}(++yi);const Ci=function(t,e){return _i[t-=0]};class Ai extends t.Plugin{[Ci("0x16")](){const t=this.editor,e=t[Ci("0x1a")];if(!t[Ci("0x9")].has(Ci("0x19")))return;const n=t[Ci("0x9")][Ci("0x15")](Ci("0x2")),r=this[Ci("0x13")][Ci("0xa")].get(Ci("0x4"));n[Ci("0x5")]("blockQuote",((e,i={})=>{const o=this[Ci("0x13")].model[Ci("0x12")][Ci("0x1c")],s=i&&void 0!==i[Ci("0x14")]?i[Ci("0x14")]:!r[Ci("0x3")];let x=[];if(s){const e=Array.from(o[Ci("0xb")]())[Ci("0x1b")]((t=>ki(t)||function(t,e){const n=e[Ci("0xd")](t[Ci("0x18")],Ci("0x4")),r=e[Ci("0xd")]([Ci("0xc"),Ci("0x4")],t);return n&&r}(t,this[Ci("0x13")][Ci("0x0")].schema)));x=R(e,t[Ci("0x0")])}else{const e=Array.from(o.getSelectedBlocks())[Ci("0x1b")]((t=>ki(t)));x=R(e,t[Ci("0x0")])}t.model[Ci("0x10")]((()=>{for(const t of x)n[Ci("0xe")](t,{commandName:Ci("0x4"),commandParams:[{forceValue:s}]})}))})),n[Ci("0xf")][Ci("0x7")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n.commandName){const t=Jr(e,Ci("0x1"));return n[Ci("0x1d")][0][Ci("0x14")]?{type:"format",content:Jr(e,Ci("0x17"),t)}:{type:Ci("0x11"),content:Jr(e,Ci("0x6"),t)}}}))}}function ki(t){return Ci("0x4")==t[Ci("0x18")][Ci("0x8")]}const Ii=["afterInit","plugins","changeCaseTitle","changeCaseUpper","enableCommand","TrackChangesEditing","get","has","changeCaseLower"];var Si,Ri;Si=Ii,Ri=456,function(t){for(;--t;)Si.push(Si.shift())}(++Ri);const vi=function(t,e){return Ii[t-=0]};class Ni extends t.Plugin{[vi("0x3")](){const t=this.editor;t[vi("0x4")][vi("0x1")]("CaseChange")&&(t[vi("0x4")][vi("0x0")]("TrackChangesEditing")[vi("0x7")](vi("0x6")),t[vi("0x4")][vi("0x0")]("TrackChangesEditing")[vi("0x7")](vi("0x2")),t[vi("0x4")].get(vi("0x8"))[vi("0x7")](vi("0x5")))}}const Li=["afterInit","ckbox","enableCommand","get","plugins","editor","TrackChangesEditing"];var Mi,wi;Mi=Li,wi=424,function(t){for(;--t;)Mi.push(Mi.shift())}(++wi);const Oi=function(t,e){return Li[t-=0]};class Fi extends t.Plugin{[Oi("0x3")](){const t=this[Oi("0x1")];t.commands[Oi("0x6")](Oi("0x4"))&&t[Oi("0x0")][Oi("0x6")](Oi("0x2"))[Oi("0x5")]("ckbox")}}const Di=["*Remove format:* %0","outdentCodeBlock","isLimit","ELEMENT_CODE_BLOCK","model","commandParams","registerDescriptionCallback","*Set format:* %0","languages","plugins","afterInit","config","blockName","enableCommand","has","rootElement","change","find","value","commandName","filter","parent","from","getSelectedBlocks","selection","schema","formatBlock","registerElementLabel","label","_descriptionFactory","type","codeBlock","forceValue","markBlockFormat","name","document","get","toLowerCase","language"];var Bi,Pi;Bi=Di,Pi=114,function(t){for(;--t;)Bi.push(Bi.shift())}(++Pi);const Ui=function(t,e){return Di[t-=0]};class ji extends t.Plugin{[Ui("0xd")](){const t=this.editor;if(!t[Ui("0xc")][Ui("0x11")]("CodeBlock"))return;const e=t[Ui("0xc")][Ui("0x0")]("TrackChangesEditing"),n=t.locale,r=t[Ui("0xe")].get(Ui("0x22"))[Ui("0xb")],i=t.commands[Ui("0x0")](Ui("0x22"));e[Ui("0x10")]("indentCodeBlock"),e.enableCommand(Ui("0x4")),e[Ui("0x10")](Ui("0x22"),((n,o={})=>{const s=t.model,x=t[Ui("0x7")][Ui("0x26")][Ui("0x1b")],a=o&&void 0!==o[Ui("0x23")]?o[Ui("0x23")]:!i[Ui("0x15")];let c;o.language||(o[Ui("0x2")]=r[0][Ui("0x2")]),c=a?Array[Ui("0x19")](x[Ui("0x1a")]())[Ui("0x17")]((t=>{return Gi(t)||(e=t,n=s[Ui("0x1c")],!e.is(Ui("0x12"))&&!n[Ui("0x5")](e)&&n.checkChild(e[Ui("0x18")],Ui("0x22")));var e,n})):Array[Ui("0x19")](x[Ui("0x1a")]())[Ui("0x17")]((t=>Gi(t)));const l=R(c,s);s[Ui("0x13")]((()=>{for(const t of l)e[Ui("0x24")](t,{commandName:Ui("0x22"),commandParams:[{...o,forceValue:a}],formatGroupId:Ui("0xf")})}))})),e[Ui("0x20")][Ui("0x1e")]("codeBlock",(t=>Jr(n,Ui("0x6"),t))),e[Ui("0x20")][Ui("0x9")]((t=>{if(Ui("0x1d")!=t[Ui("0x21")])return;const e=n.t,{data:i}=t;if(!i||"codeBlock"!=i[Ui("0x16")])return;const o=i[Ui("0x8")][0][Ui("0x2")],s=e(r[Ui("0x14")]((t=>t[Ui("0x2")]===o))[Ui("0x1f")])[Ui("0x1")]();return i.commandParams[0].forceValue?{type:"format",content:Jr(n,Ui("0xa"),Jr(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Jr(n,Ui("0x3"),Jr(n,Ui("0x6"),1))}}))}}function Gi(t){return Ui("0x22")==t[Ui("0x25")]}const Vi=["CommentsEditing","get","enableCommand","afterInit","plugins","TrackChangesEditing","editor","has"];var Hi,zi;Hi=Vi,zi=218,function(t){for(;--t;)Hi.push(Hi.shift())}(++zi);const Wi=function(t,e){return Vi[t-=0]};class Ki extends t.Plugin{[Wi("0x1")](){const t=this[Wi("0x4")];t.plugins[Wi("0x5")](Wi("0x6"))&&t[Wi("0x2")][Wi("0x7")](Wi("0x3"))[Wi("0x0")]("addCommentThread")}}var qi=n(181);const Xi=["type","consumable","isLimit","TrackChangesEditing","markerName","elementEnd","test","plugins","markerRange","getAttribute","activeMarkers","getCustomProperty","writer","previousPosition","nextSibling","schema","mapper","ck-suggestion-marker--active","listItem","item","start","isBlock","insert","element","name","ck-suggestion-marker-","span","isAtEnd","includes","listIndent","addClass","toViewElement","addHighlight","push","bindElementToMarker"];var $i,Zi;$i=Xi,Zi=489,function(t){for(;--t;)$i.push($i.shift())}(++Zi);const Yi=function(t,e){return Xi[t-=0]};function Ji(t,e,n){const r=[];for(const i of e.getItems())i.hasAttribute(t)&&r[Yi("0x22")](n.createRangeOn(i));return r}function Qi(t,e,{showActiveMarker:n=!0}={}){const r=t[Yi("0x8")].get(Yi("0x4"));return(i,o,s)=>{if(!s[Yi("0x2")][Yi("0x7")](o.markerRange,i[Yi("0x19")]))return;const x=o[Yi("0x9")].getWalker(),a=o[Yi("0x9")][Yi("0x15")],c=t.model[Yi("0x10")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Yi("0x14")];d=d||c.isContent(e);const n=s.mapper[Yi("0x20")](e);if(n&&n[Yi("0xc")](Yi("0x21")))return;Yi("0x6")==t[Yi("0x1")]&&c[Yi("0x16")](e)&&!c[Yi("0x3")](e)&&(e[Yi("0xf")]||a[Yi("0x1c")]?l&&l.parent==e||(l=e,f(t[Yi("0xe")]),g=!0):u=u||t[Yi("0xe")])}function f(t){const i=s[Yi("0xd")].createUIElement(Yi("0x1b"),{class:Yi("0x1a")+e}),x=s[Yi("0x11")].toViewPosition(t);n&&r[Yi("0xb")][Yi("0x1d")](o[Yi("0x5")])&&s[Yi("0xd")][Yi("0x1f")](Yi("0x12"),i),s[Yi("0xd")][Yi("0x17")](x,i),s[Yi("0x11")][Yi("0x0")](i,o[Yi("0x5")])}d||g||!u||f(u)}}const to=["start","showSuggestionHighlights","unbindElementFromMarkerName","editor","get","downcastDispatcher","mapper","uiElement","lock","addMarker:suggestion:deletion","plugins","removeMarker:suggestion:deletion","enableCommand","commands","getFirstRange","model","merge","forward","deleteForward","init","batch","detach","rootName","high","modifySelection","end","buffer","bind","options","createSelection","createRange","writer","document","$graveyard","editing","enqueueChange"];var eo,no;eo=to,no=195,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 requires(){return[qi.Delete]}[ro("0x4")](){const t=this[ro("0x18")],e=t[ro("0x1f")][ro("0x19")]("TrackChangesEditing");e.enableCommand("delete");const n=t[ro("0x22")][ro("0x19")](ro("0x3"));e[ro("0x21")](ro("0x3"),((e,r={})=>{const i=t[ro("0x0")][ro("0xe")](t[ro("0x0")][ro("0x11")].selection);i.isCollapsed&&t[ro("0x0")][ro("0x9")](i,{direction:ro("0x2"),unit:r.unit});const o=i[ro("0x23")](),x=s.LiveRange.fromRange(o);let a;e(r),a=ro("0x12")==x.root[ro("0x7")]?t[ro("0x0")][ro("0xf")](o[ro("0x15")]):t[ro("0x0")][ro("0xf")](x[ro("0x15")],x[ro("0xa")]),x[ro("0x6")](),t[ro("0x0")][ro("0x14")](n[ro("0xb")][ro("0x5")],(t=>{n[ro("0xb")][ro("0x1d")](),t.setSelection(t[ro("0xf")](a.end)),n[ro("0xb")].unlock()}))})),t[ro("0x13")].downcastDispatcher.on("addMarker:suggestion:deletion",Qi(t,ro("0x1")),{priority:ro("0x8")}),t.data[ro("0x1a")].on(ro("0x1e"),((e,n,r)=>{r[ro("0xd")][ro("0x16")]&&Qi(t,ro("0x1"),{showActiveMarker:!1})[ro("0xc")](this)(e,n,r)}),{priority:ro("0x8")}),t[ro("0x13")][ro("0x1a")].on(ro("0x20"),((t,e,n)=>{const r=n[ro("0x1b")].markerNameToElements(e.markerName);if(r)for(const t of r)t.is(ro("0x1c"))&&(n[ro("0x1b")][ro("0x17")](t,e.markerName),n[ro("0x10")].remove(t))}),{priority:ro("0x8")})}}const oo=["*Uncheck item*","head","documentList","TodoListEditing","selection","meta","todoListCheck","registerDescriptionCallback","suggestion","_LIST","find","model","listStart","config","todo","outdentList","has","range","end","listItemIdFixer","_supportLegacySuggestions","*Set format:* %0","todoList","parent","previousSibling","createPositionAt","registerPostFixer","setSelection","registerCustomCallback","length","differ","_registerLegacyDescription","start","createRange","commands","nextSibling","change","newValue","fromRange","getChanges","list.multiBlock","get","isObject","ELEMENT_BULLETED_LIST","ListEditing","format","containsItem","getAttribute","isUndo","listStyle","bulleted","_enableDefaultAttributesIntegration","value","noTrackChangesFixer","formatBlock","toUpperCase","document","ELEMENT_LIST_ITEM","batch","_suggestionFactory","numberedList","getSuggestions","commandName","getRanges","forceValue","*Format:* remove from %0","getFirstMarker","listIndent","commandParams","groupId","*Outdent:* %0","map","splitListItemAfter","deletion","editor","ELEMENT_","nodeAfter","TrackChangesEditing","ELEMENT_TODO_LIST","getFirstRange","plugins","registerElementLabel","*Merge:* list item","registerAttributeLabel","multipleBlocks","numbered","schema","listReversed","FORMAT_INDENT","execute","includes","listType","oldValue","accept","_findSuggestions","filter","*Merge:* %0","bulletedList","push","_descriptionFactory","default","*Remove format:* %0","removeMarker","listItemId","indentList","isLocal","*Change to:* %0","mergeListItemBackward","ELEMENT_NUMBERED_LIST","assureChains","attributes","splitListItemBefore","attributeKey","todoListChecked","key","type","locale","trackChangesCommand","data","attribute","*Format:* insert into %0"];var so,xo;so=oo,xo=411,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{afterInit(){const t=this[ao("0x1a")];if(!t[ao("0x20")][ao("0x59")](ao("0x75")))return;const e=t[ao("0x44")],n=t[ao("0x20")][ao("0x72")](ao("0x1d")),r=t.plugins[ao("0x59")](ao("0x4c")),i=!!t[ao("0x56")][ao("0x72")](ao("0x71"));function o(t){return{type:ao("0x76"),content:""+Jr(e,ao("0x5e"),t)}}function s(t){return{type:ao("0x76"),content:""+Jr(e,ao("0x35"),t)}}n[ao("0x3")](ao("0xc"),[],[ao("0x37"),"listType","listIndent"]),n._enableDefaultAttributesIntegration(ao("0x31")),n[ao("0x3")](ao("0x38")),n[ao("0x3")](ao("0x58")),n[ao("0x3")](ao("0x18")),n._enableDefaultAttributesIntegration(ao("0x3f")),i&&(n[ao("0x3")](ao("0x3b")),n[ao("0x3")]("mergeListItemForward")),r&&(n._enableDefaultAttributesIntegration(ao("0x5f")),n[ao("0x3")]("checkTodoList",[],[ao("0x41")]),n[ao("0x33")][ao("0x50")]((t=>{const{data:n}=t;if(n&&ao("0x41")==n[ao("0x42")])return{type:ao("0x76"),content:n[ao("0x6e")]?Jr(e,"*Check item*"):Jr(e,ao("0x49"))}})),this[ao("0x1a")][ao("0x54")][ao("0x8")][ao("0x63")]((t=>{if(t[ao("0xa")][ao("0x0")])return!1;let e=!1;const r=n[ao("0xd")]({skipNotAttached:!0})[ao("0x2f")]((t=>ao("0x41")===n._getAttributeKey(t)));for(const i of r)ao("0x57")!=i[ao("0x1f")]()[ao("0x69")].nodeAfter[ao("0x78")](ao("0x2b"))&&(n[ao("0x2e")](i[ao("0x1f")](),ao("0x47"))[ao("0x53")]((t=>ao("0x2b")===n._getAttributeKey(t[ao("0x51")])))||(t[ao("0x36")](i.getFirstMarker()),e=!0));return e}))),n._descriptionFactory[ao("0x23")](ao("0x13"),Jr(e,ao("0x28")));const x={type:"format",content:""};n[ao("0x33")][ao("0x50")]((t=>{const{data:n}=t;if(!n||ao("0x2b")!=n[ao("0x42")])return;let r=t.head;for(;r;){if(r[ao("0x46")]&&("listStyle"==r[ao("0x46")].key&&(r[ao("0x46")][ao("0x6e")]&&ao("0x34")!=r[ao("0x46")].newValue||"default"!=r[ao("0x46")][ao("0x2c")]&&!n[ao("0x6e")])||!i&&r[ao("0x46")][ao("0x42")]==Cc))return x;r=r.next}if(null==n.newValue)switch(n.oldValue){case ao("0x2"):return s(Jr(e,ao("0x74")));case ao("0x25"):return s(Jr(e,ao("0x3c")));case ao("0x57"):return s(Jr(e,ao("0x1e")))}switch(n[ao("0x6e")]){case ao("0x2"):return o(Jr(e,ao("0x74")));case ao("0x25"):return o(Jr(e,ao("0x3c")));case ao("0x57"):return o(Jr(e,ao("0x1e")))}})),n._descriptionFactory[ao("0x50")]((t=>{const{data:e}=t;if(e&&ao("0x13")==e[ao("0x42")])return null==e[ao("0x6e")]||null==e.oldValue&&0==e[ao("0x6e")]?x:void 0})),n._descriptionFactory.registerDescriptionCallback((t=>{if(ao("0x47")!=t[ao("0x43")])return;const{data:n}=t;if(!n||ao("0x37")!=n[ao("0x42")])return;const r=lo(t);return r?ao("0x6e")==r?{type:ao("0x76"),content:Jr(e,ao("0x22"))}:ao("0x2c")==r?{type:ao("0x76"),content:Jr(e,"*Split:* list item")}:x:x})),t[ao("0x54")][ao("0x8")][ao("0x63")]((t=>this[ao("0x5c")](t))),t[ao("0x54")][ao("0x8")][ao("0x63")]((t=>this[ao("0x5")](t))),t[ao("0x54")].document[ao("0x63")]((t=>this[ao("0x3d")](t))),this[ao("0x5d")]()}[ao("0x5c")](t){if(t[ao("0xa")][ao("0x0")]||!t.batch[ao("0x39")])return!1;let e=!1;const n=this[ao("0x1a")].plugins[ao("0x72")]("TrackChangesEditing")[ao("0xd")]({skipNotAttached:!0})[ao("0x2f")]((t=>t[ao("0x46")]&&"listItemId"==t.data[ao("0x42")])).filter((t=>t.data[ao("0x6e")]&&t[ao("0x46")][ao("0x2c")]));for(const r of n)lo(r)||(t[ao("0x36")](r[ao("0x12")]()),e=!0);return e}[ao("0x5")](t){if(t[ao("0xa")][ao("0x0")]||!t.batch[ao("0x39")])return!1;const e=this[ao("0x1a")][ao("0x20")].get("TrackChangesEditing");if(e[ao("0x45")][ao("0x4")])return!1;let n=!1;const r=["listType",ao("0x1"),"listItemId",ao("0x13"),"listStart",ao("0x27"),ao("0x4f")],i=this[ao("0x1a")].model[ao("0x8")][ao("0x67")][ao("0x70")]().filter((t=>ao("0x47")==t.type)).filter((t=>r[ao("0x2a")](t[ao("0x40")])));if(0==i[ao("0x66")])return n;for(const o of i){const i=e._findSuggestions(o[ao("0x5a")],ao("0x47"))[ao("0x2f")]((t=>!t[ao("0x4e")].isNextTo))[ao("0x17")]((t=>t[ao("0x51")]))[ao("0x2f")]((t=>{const n=e._getAttributeKey(t);return r[ao("0x2a")](n)}));if(i.length){for(const e of i)t[ao("0x36")](e[ao("0x12")]());n=!0}}return n}[ao("0x3d")](t){if(t[ao("0xa")][ao("0x0")]||!t[ao("0xa")][ao("0x39")])return!1;const e=this[ao("0x1a")][ao("0x20")].get(ao("0x1d"));let n=!1;const r=[ao("0x2b"),"listStyle","listItemId",ao("0x13"),ao("0x55"),ao("0x27"),ao("0x4f")];for(const t of e.getSuggestions({skipNotAttached:!0})){const i=e._findSuggestions(t.getFirstRange(),ao("0x47"))[ao("0x17")]((t=>t[ao("0x51")]))[ao("0x2f")]((t=>t[ao("0x46")]&&r.includes(t[ao("0x46")][ao("0x42")])));if(!i[ao("0x66")])continue;const s=i[0][ao("0x4a")][ao("0x3e")][ao("0x15")];if(!i.every((t=>t[ao("0x3e")].groupId===s)))for(const t of i)o(t,s)&&(n=!0)}return n;function i(t,n){for(const r of e[ao("0xd")]({skipNotAttached:!0})[ao("0x2f")]((e=>"attribute"==e[ao("0x43")]&&e[ao("0x3e")][ao("0x15")]==t)))r.setAttribute(ao("0x15"),n)}function o(t,e){let n=t[ao("0x4a")],r=!1;for(;n;)n[ao("0x3e")].groupId!=e&&(i(n[ao("0x3e")][ao("0x15")],e),n.setAttribute(ao("0x15"),e),r=!0),n=n.next;return r}}[ao("0x5d")](){const t=this[ao("0x1a")],e=t[ao("0x44")],n=t[ao("0x20")][ao("0x72")](ao("0x1d"));this._registerLegacyDescription(),n[ao("0xb")][ao("0x65")](ao("0x6"),ao("0x4b"),ao("0x2d"),(function(e,n){const r=[];for(let n of e)n.start[ao("0x1c")]===n[ao("0x5b")][ao("0x60")]&&(n=t[ao("0x54")][ao("0x6a")](t[ao("0x54")][ao("0x62")](n[ao("0x69")][ao("0x1c")],0))),r[ao("0x32")](n);t[ao("0x54")][ao("0x6d")]((e=>{const i=t.model.document[ao("0x4d")],o=Array.from(i[ao("0xf")]())[ao("0x17")]((t=>s.LiveRange[ao("0x6f")](t)));e.setSelection(r),t[ao("0x6b")][ao("0x72")](n[ao("0xe")]).refresh(),n[ao("0x14")].push({forceDefaultExecution:!0}),t[ao("0x29")](n[ao("0xe")],...n[ao("0x14")]),e[ao("0x64")](o);for(const t of o)t.detach()}))})),n._descriptionFactory[ao("0x21")]((function(e){const n=!t[ao("0x54")][ao("0x26")][ao("0x73")](e),r=e[ao("0x61")],i=e[ao("0x6c")],o=e[ao("0x78")](ao("0x37")),s=!r||r[ao("0x78")](ao("0x37"))!==o,x=!i||i[ao("0x78")](ao("0x37"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Jr(e,"ELEMENT_LIST_ITEM",t)))}[ao("0x68")](){const t=this[ao("0x1a")],e=t.locale;function n(e){const n=t.commands[ao("0x72")](ao("0x31"))[ao("0x4")],r=t[ao("0x6b")].get(ao("0xc"))[ao("0x4")];return"numberedList"===e?n:r}t[ao("0x20")][ao("0x72")](ao("0x1d"))[ao("0x33")].registerDescriptionCallback((function(r){if("formatBlock"!=r[ao("0x43")])return;const{data:i}=r;if(!i)return;let o,s,x,a;switch(i[ao("0xe")]){case"bulletedList":x=i.commandParams[0][ao("0x10")],a=n(i.commandName),o=ao(x?"0x48":"0x11"),!a&&t[ao("0x56")][ao("0x72")](ao("0x71"))||(o=ao("0x3a")),s={type:ao("0x76"),content:Jr(e,o,Jr(e,ao("0x74")))};break;case ao("0xc"):x=i[ao("0x14")][0][ao("0x10")],a=n(i.commandName),o=x?"*Format:* insert into %0":ao("0x11"),!a&&t.config[ao("0x72")]("list.multiBlock")||(o=ao("0x3a")),s={type:ao("0x76"),content:Jr(e,o,Jr(e,ao("0x3c")))};break;case ao("0x38"):o="*Indent:* %0",s={type:"format",content:Jr(e,o,Jr(e,"ELEMENT_LIST_ITEM"))};break;case ao("0x58"):o=function(t){const e=t[ao("0x1f")]();let n=e.start[ao("0x1c")];for(;n&&e[ao("0x77")](n);){if(n[ao("0x78")](ao("0x13"))>0)return!1;n=n[ao("0x6c")]}return!0}(r)?Jr(e,ao("0x11"),Jr(e,(c=r,ao("0x1b")+c.getFirstRange()[ao("0x69")][ao("0x1c")][ao("0x78")](ao("0x2b"))[ao("0x7")]()+ao("0x52")))):Jr(e,ao("0x16"),Jr(e,ao("0x9"))),s={type:ao("0x76"),content:o};break;case ao("0x3b"):case"mergeListItemForward":!1===i[ao("0x24")]&&(o=ao("0x30"),s={type:ao("0x19"),content:Jr(e,o,Jr(e,ao("0x9")))})}var c;return s}))}}function lo(t){let e=t[ao("0x1f")]().start[ao("0x1c")][ao("0x61")];for(;e;){const n=e[ao("0x78")]("listItemId");if(!n)return!1;if(n==t[ao("0x46")].newValue)return ao("0x6e");if(n==t[ao("0x46")][ao("0x2c")])return ao("0x2c");e=e[ao("0x61")]}return!1}const uo=["registerDescriptionCallback","format","has","includes","ELEMENT_","default","commandParams","_LIST_DEFAULT","listStyle","FORMAT_LIST_REVERSED","find","data","plugins","listType","upper-roman","head","_registerLegacyDescription","getSuggestions","listReversed","bind","getAttribute","locale","*Remove format:* %0","newValue","getFirstRange","registerAttributeLabel","afterInit","formatBlock","nodeAfter","oldValue","square","commandName","type","get","editor","_enableDefaultAttributesIntegration","batch","toUpperCase","TrackChangesEditing","circle","registerPostFixer","key","model","attribute","FORMAT_LIST_START","_descriptionFactory","config","disc","_LIST_","replace","_getTranslationKeyForListStyle","*Change to:* %0","numbered","next","*Format:* set start index to %0","bulleted","start","_findSuggestions","listStart","*Set format:* %0"];var go,fo;go=uo,fo=405,function(t){for(;--t;)go.push(go.shift())}(++fo);const ho=function(t,e){return uo[t-=0]};class mo extends t.Plugin{[ho("0x29")](){if(!this[ho("0x31")].plugins[ho("0x11")]("ListPropertiesEditing"))return;const t=this.editor[ho("0x1")][ho("0x30")]("list.properties"),e=this.editor[ho("0x1b")][ho("0x30")](ho("0x35"));t.styles&&e[ho("0x32")](ho("0x17"),[],[ho("0x17")]),t.reversed&&e[ho("0x32")](ho("0x21"),[],[ho("0x21")]),t.startIndex&&e[ho("0x32")](ho("0xd"),[],["listStart"]);const n={type:ho("0x10"),content:""};e[ho("0x0")][ho("0xf")](this.handleDescriptions[ho("0x22")](this));const r=this[ho("0x31")].locale;e._descriptionFactory[ho("0x28")](ho("0x21"),Jr(r,ho("0x18"))),e[ho("0x0")][ho("0xf")]((t=>{const{data:e}=t;if(e&&ho("0x21")==e[ho("0x38")])return null==e[ho("0x26")]||0==e[ho("0x26")]&&null==e.oldValue?n:void 0})),e[ho("0x0")].registerAttributeLabel(ho("0xd"),Jr(r,ho("0x3b"))),e[ho("0x0")][ho("0xf")]((t=>{const{data:e}=t;if(e&&ho("0xd")==e[ho("0x38")])return null==e[ho("0x26")]||1==e.newValue&&null==e[ho("0x2c")]?n:void 0})),this.editor[ho("0x39")].document[ho("0x37")]((t=>{if(t[ho("0x33")].isUndo)return!1;let n=!1;const r=e[ho("0x20")]({skipNotAttached:!0}).filter((t=>{const n=e._getAttributeKey(t);return ho("0xd")==n||ho("0x21")==n}));for(const i of r)"numbered"!=i.getFirstRange()[ho("0xb")][ho("0x2b")][ho("0x23")](ho("0x1c"))&&(e[ho("0xc")](i[ho("0x27")](),ho("0x3a"))[ho("0x19")]((t=>ho("0x1c")==e._getAttributeKey(t.suggestion)))||(t.removeMarker(i.getFirstMarker()),n=!0));return n})),this[ho("0x1f")]()}handleDescriptions(t){const e=this[ho("0x31")][ho("0x24")],{data:n}=t,r={type:ho("0x10"),content:""};if(!n||"listStyle"!=n[ho("0x38")])return;if(!n[ho("0x2c")])return ho("0x14")==n.newValue?r:{type:ho("0x10"),content:""+Jr(e,ho("0xe"),Jr(e,this[ho("0x5")](n[ho("0x26")])))};if(!n.newValue){if("default"==n.oldValue)return r;let i=t.head;for(;i;){if(i[ho("0x1a")]&&ho("0x1c")==i[ho("0x1a")][ho("0x38")]&&i[ho("0x1a")][ho("0x26")])return r;i=i[ho("0x8")]}return{type:"format",content:""+Jr(e,ho("0x25"),Jr(e,this._getTranslationKeyForListStyle(n[ho("0x2c")])))}}if(ho("0x14")!=n[ho("0x26")])return{type:ho("0x10"),content:""+Jr(e,ho("0xe"),Jr(e,this._getTranslationKeyForListStyle(n[ho("0x26")])))};let i=t[ho("0x1e")];for(;i;){if(i[ho("0x1a")]&&"listType"==i.data[ho("0x38")]&&i[ho("0x1a")].newValue&&i.data.oldValue)return r;i=i[ho("0x8")]}const o=t[ho("0x27")]()[ho("0xb")].nodeAfter[ho("0x23")](ho("0x1c"));return{type:ho("0x10"),content:Jr(e,ho("0xe"),Jr(e,ho("0x13")+o[ho("0x34")]()+ho("0x16")))}}[ho("0x1f")](){const t=this.editor,e=t[ho("0x24")];t[ho("0x1b")].get(ho("0x35"))[ho("0x0")][ho("0xf")]((t=>{if(ho("0x2a")!=t.type)return;const{data:n}=t;if(!n)return;let r,i;switch(n[ho("0x2e")]){case ho("0x17"):r=ho("0x6"),i={type:ho("0x10"),content:Jr(e,r,Jr(e,this[ho("0x5")](n[ho("0x15")][0][ho("0x2f")])))};break;case ho("0x21"):r=n.commandParams[0].reversed?"*Format:* set order to reversed":"*Format:* set order to regular",i={type:ho("0x10"),content:Jr(e,r)};break;case"listStart":r=ho("0x9"),i={type:"format",content:Jr(e,r,n[ho("0x15")][0].startIndex)}}return i}))}_getTranslationKeyForListStyle(t){return"ELEMENT_"+(e=t,po[ho("0x12")](e)?ho("0xa"):bo[ho("0x12")](e)?ho("0x7"):null)[ho("0x34")]()+ho("0x3")+t[ho("0x34")]()[ho("0x4")](/-/g,"_");var e}}const po=[ho("0x2"),ho("0x36"),ho("0x2d")],bo=["decimal","decimal-leading-zero","lower-roman",ho("0x1d"),"lower-latin","upper-latin"];var Eo=n(331);const _o=["setSelection","getFirstPosition","ck-suggestion-marker-split","mapper","split","init","showSuggestionHighlights","getFirstRange","bind","selection","addMarker:suggestion:insertion","remove","change","hasClass","document","commands","afterExecute","parent","markerName","TrackChangesEditing","downcastDispatcher","writer","enterBlock","markerNameToElements","end","options","enter","editing","high","createRange","enableCommand","markInsertion","plugins","model","data","removeMarker:suggestion:insertion","fromRange","createPositionAt","detach"];var To,yo;To=_o,yo=292,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 requires(){return[Eo.Enter]}[Co("0x19")](){const t=this.editor,e=t[Co("0xd")].get(Co("0x0")),n=t[Co("0x23")].get("enter");e[Co("0xb")](Co("0x7"),(()=>{t[Co("0xe")][Co("0x20")]((r=>{const i=t[Co("0xe")][Co("0x22")][Co("0x1d")],o=i[Co("0x15")](),x=s.LiveRange[Co("0x11")](i[Co("0x1b")]());if(n[Co("0x3")](r)){const n=t[Co("0xe")][Co("0x12")](o[Co("0x25")].nextSibling,0),i=r.createRange(o,n);e[Co("0xc")](i)}else r[Co("0x14")](r[Co("0xa")](x[Co("0x5")]));x[Co("0x13")](),n.fire(Co("0x24"),{writer:r})}))})),t.editing.downcastDispatcher.on(Co("0x1e"),Qi(t,Co("0x18")),{priority:Co("0x9")}),t[Co("0x8")].downcastDispatcher.on(Co("0x10"),((t,e,n)=>{const r=n[Co("0x17")][Co("0x4")](e[Co("0x26")]);if(r)for(const t of r)t[Co("0x21")](Co("0x16"))&&(n[Co("0x17")].unbindElementFromMarkerName(t,e[Co("0x26")]),n[Co("0x2")][Co("0x1f")](t))}),{priority:Co("0x9")}),t[Co("0xf")][Co("0x1")].on(Co("0x1e"),((e,n,r)=>{r[Co("0x6")][Co("0x1a")]&&Qi(t,Co("0x18"),{showActiveMarker:!1})[Co("0x1c")](this)(e,n,r)}),{priority:"high"})}}const ko=["getIntersection","has","afterInit","createRange","item","findPrevious","model","find","markers","getMarkersGroup","editor","end","replaceAll","_isInDeletionRange","plugins","enableCommand","FindAndReplaceEditing","findNext","createPositionAt","getRange","get","findByTextCallback","handleFindCommand","filter","FindAndReplaceUtils"];var Io,So;Io=ko,So=183,function(t){for(;--t;)Io.push(Io.shift())}(++So);const Ro=function(t,e){return ko[t-=0]};class vo extends t.Plugin{[Ro("0x13")](){if(!this[Ro("0x2")][Ro("0x6")][Ro("0x12")](Ro("0x8")))return;const t=this.editor[Ro("0x6")].get("TrackChangesEditing");t.enableCommand(Ro("0x18"),this[Ro("0xe")].bind(this)),t[Ro("0x7")](Ro("0x9")),t.enableCommand(Ro("0x16")),t[Ro("0x7")]("replace"),t[Ro("0x7")](Ro("0x4"))}[Ro("0xe")](t,e,n={}){const r=this[Ro("0x2")][Ro("0x6")][Ro("0xc")](Ro("0x10"));return t((t=>("string"==typeof e?r[Ro("0xd")](e,n):e)(t)[Ro("0xf")]((e=>!1===this[Ro("0x5")](e,t[Ro("0x15")])))),n)}_isInDeletionRange(t,e){const n=this[Ro("0x2")][Ro("0x17")][Ro("0x14")](this[Ro("0x2")].model[Ro("0xa")](e,t.start),this[Ro("0x2")][Ro("0x17")][Ro("0xa")](e,t[Ro("0x3")]));for(const t of this[Ro("0x2")][Ro("0x17")][Ro("0x0")][Ro("0x1")]("suggestion:deletion"))if(null!==n[Ro("0x11")](t[Ro("0xb")]()))return!0;return!1}}const No=["*Set font family:* %0","formatInline","*Reset font family*","normalizeSizeOptions","FORMAT_FONT_COLOR","type","commandName","label","registerAttributeLabel","value","fontColor.colors","_registerLegacyDescription","fontColor","*Set font color:* %0","FontSize","*Reset font background color*","*Set font size:* %0","editor","toLowerCase","*Reset font color*","fontBackgroundColor","fontSize","FORMAT_FONT_SIZE","model","fontSize.options","config","fontBackgroundColor.colors","*Reset font size*","_descriptionFactory","locale","trim","commandParams","registerDescriptionCallback","get","_enableDefaultAttributesIntegration","format","find","has","TrackChangesEditing","plugins","fontFamily","FontBackgroundColorEditing","FORMAT_FONT_FAMILY","FontColorEditing","FontSizeEditing"];var Lo,Mo;Lo=No,Mo=168,function(t){for(;--t;)Lo.push(Lo.shift())}(++Mo);const wo=function(t,e){return No[t-=0]},Oo=[{pluginName:wo("0xb"),commandName:wo("0x21")},{pluginName:"FontFamilyEditing",commandName:wo("0x7")},{pluginName:wo("0xa"),commandName:wo("0x18")},{pluginName:wo("0x8"),commandName:wo("0x20")}];class Fo extends t.Plugin{afterInit(){const t=this[wo("0x1d")].locale,e=this.editor[wo("0x6")][wo("0x0")](wo("0x5"));for(const{pluginName:t,commandName:n}of Oo)this.editor[wo("0x6")][wo("0x4")](t)&&e[wo("0x1")](n,[n]);t.t,e[wo("0x28")][wo("0x14")](wo("0x21"),Jr(t,wo("0x22"))),e[wo("0x28")].registerAttributeLabel(wo("0x7"),Jr(t,wo("0x9"))),e[wo("0x28")][wo("0x14")](wo("0x18"),Jr(t,wo("0x10"))),e[wo("0x28")].registerAttributeLabel(wo("0x20"),Jr(t,"FORMAT_FONT_BACKGROUND")),this[wo("0x17")]()}_registerLegacyDescription(){const t=this[wo("0x1d")],e=t[wo("0x29")];t[wo("0x6")][wo("0x0")](wo("0x5"))[wo("0x28")][wo("0x2c")]((t=>{const n=e.t;if(wo("0xd")!=t[wo("0x11")])return;const{data:r}=t;if(null!=r){if(wo("0x21")==r[wo("0x12")]){const t=r[wo("0x2b")][0][wo("0x15")];if(t){const r=n(this[wo("0x1d")][wo("0x6")][wo("0x0")](wo("0x1a"))[wo("0xf")](this[wo("0x1d")][wo("0x25")][wo("0x0")](wo("0x24")))[wo("0x3")]((e=>e[wo("0x23")]==t)).title)[wo("0x1e")]();return{type:"format",content:Jr(e,wo("0x1c"),r)}}return{type:wo("0x2"),content:Jr(e,wo("0x27"))}}if(wo("0x7")==r.commandName){const t=r[wo("0x2b")][0].value;return t?{type:wo("0x2"),content:Jr(e,wo("0xc"),t)}:{type:wo("0x2"),content:Jr(e,wo("0xe"))}}if(wo("0x18")==r.commandName){const t=r.commandParams[0].value;if(t){const r=(0,i.normalizeColorOptions)(this[wo("0x1d")][wo("0x25")][wo("0x0")](wo("0x16")))[wo("0x3")]((e=>e.model==t));let o=t,s="";return r&&(o=r[wo("0x13")],s=n(o)[wo("0x1e")]()),{type:wo("0x2"),content:Jr(e,wo("0x19"),s)[wo("0x2a")](),color:{value:t,title:s||o}}}return{type:wo("0x2"),content:Jr(e,wo("0x1f"))}}if(wo("0x20")==r[wo("0x12")]){const t=r[wo("0x2b")][0][wo("0x15")];if(t){const r=(0,i.normalizeColorOptions)(this[wo("0x1d")].config.get(wo("0x26")))[wo("0x3")]((e=>e[wo("0x23")]==t));let o=t,s="";return r&&(o=r[wo("0x13")],s=n(o).toLowerCase()),{type:wo("0x2"),content:Jr(e,"*Set font background color:* %0",s)[wo("0x2a")](),color:{value:t,title:s||o}}}return{type:wo("0x2"),content:Jr(e,wo("0x1b"))}}}}))}}const Do=["fontSize.options","normalizeSizeOptions","*Remove all formatting*","formatInline","*Set format to:* %0","pasteFormat","_descriptionFactory","_enableDefaultAttributesIntegration","find","format","FontSize","commandParams","registerDescriptionCallback","boolean","get","fontColor.colors","config","editor","fontSize","join","toLowerCase","type","model","charAt","length","commands","split","locale","_registerLegacyDescription","title","entries","slice","copyFormat","fontBackgroundColor","commandName","plugins","TrackChangesEditing"];var Bo,Po;Bo=Do,Po=389,function(t){for(;--t;)Bo.push(Bo.shift())}(++Po);const Uo=function(t,e){return Do[t-=0]};class jo extends t.Plugin{afterInit(){const t=this[Uo("0x23")],e=t[Uo("0x10")][Uo("0x20")](Uo("0x11")),n=t.commands.get(Uo("0xd")),r=t[Uo("0x6")][Uo("0x20")](Uo("0x17"));n&&r&&(e[Uo("0x19")](Uo("0x17")),e.enableCommand(Uo("0xd")),this[Uo("0x9")]())}[Uo("0x9")](){const t=this[Uo("0x23")],e=t[Uo("0x8")];t[Uo("0x10")][Uo("0x20")](Uo("0x11"))[Uo("0x18")][Uo("0x1e")]((n=>{if("formatBlock"!=n[Uo("0x2")]&&Uo("0x15")!=n[Uo("0x2")])return;const{data:r}=n;if(r&&Uo("0x17")===r[Uo("0xf")]){const n=[],i=r[Uo("0x1d")][0];for(const[e,r]of Object[Uo("0xb")](i))n.push(Go(t,e,r));return n[Uo("0x5")]?{type:"format",content:Jr(e,Uo("0x16"),n[Uo("0x0")](", "))}:{type:Uo("0x1b"),content:Jr(e,Uo("0x14"))}}}))}}function Go(t,e,n){const r=t[Uo("0x8")].t,o=e[Uo("0x7")](/(?=[A-Z])/)[Uo("0x0")](" "),s=r(o[Uo("0x4")](0).toUpperCase()+o[Uo("0xc")](1))[Uo("0x1")]();if(Uo("0x1f")==typeof n)return s;if("fontColor"===e||Uo("0xe")===e){const e=(0,i.normalizeColorOptions)(t[Uo("0x22")][Uo("0x20")](Uo("0x21")))[Uo("0x1a")]((t=>t[Uo("0x3")]==n));return s+" ("+(e?r(e.label)[Uo("0x1")]():n)+")"}if(Uo("0x24")===e&&isNaN(parseFloat(n))){const e=t[Uo("0x10")].get(Uo("0x1c"))[Uo("0x13")](t[Uo("0x22")].get(Uo("0x12")))[Uo("0x1a")]((t=>t[Uo("0x3")]==n));return s+" ("+(e?r(e[Uo("0xa")])[Uo("0x1")]():n)+")"}return s+" ("+n+")"}const Vo=["match","value","_registerLegacyDescription","find","paragraph","ELEMENT_HEADING","_enableDefaultAttributesIntegration","config","model","type","title","editor","commandName","heading.options","afterInit","locale","*Change to:* %0","heading","_getHeadingLevel","ELEMENT_HEADING_CUSTOM","registerElementLabel","_descriptionFactory","plugins","has","get","format","name","_headingOptions","TrackChangesEditing","view","formatBlock"];var Ho,zo;Ho=Vo,zo=381,function(t){for(;--t;)Ho.push(Ho.shift())}(++zo);const Wo=function(t,e){return Vo[t-=0]};class Ko extends t.Plugin{[Wo("0x5")](){const t=this[Wo("0x2")];if(!t[Wo("0xd")][Wo("0xe")]("HeadingEditing"))return;this[Wo("0x12")]=t[Wo("0x1d")][Wo("0xf")](Wo("0x4"));const e=t[Wo("0x6")],n=t[Wo("0xd")].get(Wo("0x13"));n[Wo("0x1c")](Wo("0x8"));for(const t of this._headingOptions)Wo("0x1a")!=t[Wo("0x1e")]&&n._descriptionFactory[Wo("0xb")](t.model,(n=>{const r=this._getHeadingLevel(t.model);return null!==r?(s=n,x=r,Jr(e,Wo("0x1b"),[s,x])):(i=n,o=t[Wo("0x1")],Jr(e,Wo("0xa"),[i,o]));var i,o,s,x}));this._registerLegacyDescription()}[Wo("0x18")](){const t=this[Wo("0x2")],e=t.locale;t.plugins[Wo("0xf")]("TrackChangesEditing")[Wo("0xc")].registerDescriptionCallback((t=>{if(Wo("0x15")!=t[Wo("0x0")])return;const{data:n}=t;if(n&&"heading"==n[Wo("0x3")]){const t=n.commandParams[0][Wo("0x17")],s=this[Wo("0x9")](t);if(null!==s)return{type:Wo("0x10"),content:Jr(e,"*Change to:* %0",(1,o=s,Jr(e,Wo("0x1b"),[1,o])))};const x=this[Wo("0x12")].find((e=>e[Wo("0x1e")]===t))[Wo("0x1")];return{type:Wo("0x10"),content:Jr(e,Wo("0x7"),(r=1,i=x,Jr(e,Wo("0xa"),[r,i])))}}var r,i,o}))}[Wo("0x9")](t){var e,n;const r=t[Wo("0x16")](/^heading(\d+)/);if(r)return r[1];const i=null===(e=this._headingOptions)||void 0===e?void 0:e[Wo("0x19")]((e=>e.model==t));if(i&&i[Wo("0x14")]){const t=i.view,e=(null!==(n=t[Wo("0x11")])&&void 0!==n?n:t)[Wo("0x16")](/^h(\d+)/);if(e)return e[1]}return null}}const qo=["title","registerAttributeLabel","format","commandParams","color","find","_descriptionFactory","afterInit","HighlightEditing","get","*Set highlight:* %0","has","type","toLowerCase","plugins","locale","value","highlight.options","FORMAT_HIGHLIGHT","highlight","_registerLegacyDescription","formatInline","TrackChangesEditing"];var Xo,$o;Xo=qo,$o=141,function(t){for(;--t;)Xo.push(Xo.shift())}(++$o);const Zo=function(t,e){return qo[t-=0]};class Yo extends t.Plugin{[Zo("0x4")](){const t=this.editor;if(!t.plugins[Zo("0x8")](Zo("0x5")))return;const e=t[Zo("0xb")][Zo("0x6")](Zo("0x13")),n=t[Zo("0xc")];e._enableDefaultAttributesIntegration("highlight",[Zo("0x10")]),e[Zo("0x3")][Zo("0x15")](Zo("0x10"),Jr(n,Zo("0xf"))),this[Zo("0x11")]()}_registerLegacyDescription(){const t=this.editor,e=t[Zo("0xc")];t[Zo("0xb")][Zo("0x6")]("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((n=>{if(Zo("0x12")!=n[Zo("0x9")])return;const{data:r}=n;if(r&&"highlight"==r.commandName){const n=e.t,i=r[Zo("0x0")][0][Zo("0xd")];if(i){const r=t.config[Zo("0x6")](Zo("0xe"))[Zo("0x2")]((t=>t.model==i)),o=n(r[Zo("0x14")])[Zo("0xa")]();return{type:Zo("0x16"),content:Jr(e,Zo("0x7"),o),color:{value:r[Zo("0x1")],title:r.title}}}return{type:"format",content:Jr(e,"*Remove highlight*",Jr(e,Zo("0xf")))}}}))}}const Jo=["elementToStructure","get","horizontalLine","for","_descriptionFactory","createPositionAt","TrackChangesEditing","locale","enableCommand","editor","ck-horizontal-line","HorizontalLineEditing","plugins","showSuggestionHighlights","insert","createContainerElement","ELEMENT_HORIZONTAL_LINE","registerElementLabel"];var Qo,ts;Qo=Jo,ts=272,function(t){for(;--t;)Qo.push(Qo.shift())}(++ts);const es=function(t,e){return Jo[t-=0]};class ns extends t.Plugin{afterInit(){const t=this[es("0x7")];if(!t[es("0xa")].has(es("0x9")))return;t[es("0xa")][es("0x11")](es("0x4"))[es("0x6")](es("0x0"));const e=t.plugins[es("0x11")](es("0x4")),n=t[es("0x5")];e[es("0x2")][es("0xf")](es("0x0"),(t=>Jr(n,es("0xe"),t))),t.conversion[es("0x1")]("dataDowncast")[es("0x10")]({model:es("0x0"),view:(t,{writer:e,options:n})=>{if(!n[es("0xb")])return null;const r=e[es("0xd")]("div"),i=e.createEmptyElement("hr");return e.addClass(es("0x8"),r),e[es("0xc")](e[es("0x3")](r,0),i),r},converterPriority:"high"})}}const rs=["registerDescriptionCallback","_descriptionFactory","editor","TrackChangesEditing","get","HtmlEmbed","value","ELEMENT_HTML_EMBED","type","nodeAfter","plugins","commandName","htmlEmbed","rawHtml","element","key","*Change %0 content*","_enableDefaultAttributesIntegration","_registerLegacyDescription","format","locale"];var is,os;is=rs,os=425,function(t){for(;--t;)is.push(is.shift())}(++os);const ss=function(t,e){return rs[t-=0]};class xs extends t.Plugin{afterInit(){const t=this[ss("0x12")];if(!t[ss("0x5")].has(ss("0x0")))return;const e=t[ss("0x5")][ss("0x14")]("TrackChangesEditing"),n=t[ss("0xf")];e._descriptionFactory.registerElementLabel(ss("0x8"),(t=>Jr(n,ss("0x2"),t))),e[ss("0xc")](ss("0x7"),[],[ss("0x1")]),e[ss("0x11")][ss("0x10")]((t=>{if("attribute"!=t[ss("0x3")])return;const{data:e}=t;if(e&&ss("0x1")==e[ss("0xa")]&&t.getFirstRange().start[ss("0x4")].is(ss("0x9"),"rawHtml")){const t=Jr(n,ss("0x2"));return{type:ss("0xe"),content:Jr(n,ss("0xb"),t)}}})),this[ss("0xd")]()}[ss("0xd")](){const t=this[ss("0x12")],e=t[ss("0xf")];t.plugins.get(ss("0x13"))[ss("0x11")][ss("0x10")]((t=>{if("formatBlock"!=t[ss("0x3")])return;const{data:n}=t;if(n&&ss("0x7")==n[ss("0x6")]){const t=Jr(e,ss("0x2"));return{type:ss("0xe"),content:Jr(e,ss("0xb"),t)}}}))}}const as=["subType","ImageInlineEditing","TrackChangesEditing","imageBlock","imageInline","newValue","*Set image text alternative:* %0","selection","createRangeOn","backward","schema","ImageTextAlternativeEditing","markInsertion","find","width","ImageEditing","commandParams","ELEMENT_IMAGE","document","Inline image to block image","getCaptionFromImageModelElement","end","editor","_enableDefaultAttributesIntegration","change","resizedWidth","getFirstRange","findIndex","resizeImage","forward","ImageUploadEditing","imageTypeInline","ImageCaptionUtils","registerDescriptionCallback","imageTypeBlock","*Reset image width*","insertImage","getClosestSelectedImageElement","markBlockFormat","ImageBlockEditing","FORMAT_IMAGE_SIZE","attribute","toggleImageCaption","_descriptionFactory","accept","toNext","uploadImage","addObject","formatBlock","get","length","insertion","imageCaption","type","plugins","Block image to inline image","formatInline","start","afterInit","_findSuggestions","_registerLegacyDescription","format","discard","has","_suggestionFactory","chain","deletion","nodeAfter","ELEMENT_INLINE_IMAGE","createRange","isCollapsed","alt","registerElementLabel","detach","getNearestSelectionRange","isEqual","registerCustomCallback","join","model","convertInlineImageToBlock","enableCommand","isBlockImage","key","*Remove image text alternative*","previous","caption","getContainedElement","fromPosition","convertBlockImageToInline","getSuggestionCallback","isBefore","nodeBefore","isOwn"];var cs,ls;cs=as,ls=163,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{[us("0x51")](){const t=this[us("0x2d")];if(!t[us("0x4d")][us("0x56")](us("0x26")))return;const e=t[us("0x4d")][us("0x48")](us("0x19")),n=t[us("0x4d")].get("ImageUtils"),r=t.locale;e[us("0xa")](us("0x3b")),e[us("0x42")][us("0x2")](us("0x1a"),(t=>Jr(r,us("0x28"),t))),e[us("0x42")][us("0x2")](us("0x1b"),(t=>Jr(r,us("0x5b"),t))),e[us("0x42")][us("0x2")]("caption",(()=>Jr(r,"ELEMENT_CAPTION"))),t[us("0x4d")].has(us("0x35"))&&e[us("0xa")](us("0x45")),t[us("0x4d")].has(us("0x3e"))&&t[us("0x4d")][us("0x56")](us("0x18"))&&(e.enableCommand(us("0x36"),((r,i)=>{const o=n[us("0x3c")](t.model[us("0x29")][us("0x1e")]);t[us("0x8")][us("0x2f")]((()=>{e[us("0x3d")](o,{commandName:us("0x36"),commandParams:[i]},[],us("0x12"))}))})),e[us("0xa")](us("0x39"),((r,i)=>{t.model[us("0x2f")]((o=>{let x=n[us("0x3c")](t[us("0x8")][us("0x29")][us("0x1e")]),a=o.createRangeOn(x);const c=s.LivePosition[us("0x11")](a[us("0x50")],"toPrevious"),l=s.LivePosition[us("0x11")](a[us("0x2c")],us("0x44"));e.forceDefaultExecution((()=>r(i))),x=n[us("0x3c")](t[us("0x8")][us("0x29")][us("0x1e")]),a=o[us("0x1f")](x);const u=o[us("0x5c")](c,l);c[us("0x3")](),l[us("0x3")](),e[us("0x3d")](x,{commandName:us("0x36"),commandParams:[i]},[],us("0x9")),u[us("0x50")].isBefore(a[us("0x50")])&&e[us("0x23")](o[us("0x5c")](u[us("0x50")],a[us("0x50")]),us("0x9")),a[us("0x2c")].isBefore(u.end)&&e.markInsertion(o[us("0x5c")](a[us("0x2c")],u[us("0x2c")]),"convertInlineImageToBlock")}))})),e[us("0x57")][us("0x6")](us("0x47"),us("0x9"),us("0x7"),(()=>!1)),e[us("0x57")][us("0x6")]("formatBlock",us("0x9"),us("0x43"),(()=>!1)),e._suggestionFactory[us("0x6")]("formatBlock",us("0x9"),us("0x55"),e[us("0x57")][us("0x13")](us("0x47"),"",us("0x43"))),e[us("0x57")][us("0x6")](us("0x4a"),us("0x9"),"join",(()=>!1)),e[us("0x57")][us("0x6")](us("0x4a"),us("0x9"),us("0x55"),(([n])=>{const r=e[us("0x57")].getSuggestionCallback(us("0x4a"),"","discard");let i=n[us("0x50")],o=n.end;const s=t[us("0x8")].schema[us("0x4")](i,us("0x20")),x=t[us("0x8")][us("0x21")].getNearestSelectionRange(o,us("0x34"));s[us("0x0")]&&(i=s.start),x[us("0x0")]&&(o=x[us("0x2c")]),r([t[us("0x8")][us("0x5c")](i,o)])})),e[us("0x57")][us("0x6")](us("0x47"),us("0x9"),us("0x58"),x),e[us("0x57")][us("0x6")](us("0x4a"),"convertInlineImageToBlock","chain",x)),t[us("0x4d")][us("0x56")]("ImageCaptionEditing")&&(e.enableCommand(us("0x41"),((r,i)=>{const o=t.plugins[us("0x48")](us("0x37"));let s=n[us("0x3c")](t[us("0x8")].document[us("0x1e")]),x=o[us("0x2b")](s);t[us("0x8")][us("0x2f")]((()=>{if(x)return void e.markDeletion(t[us("0x8")][us("0x1f")](x));const a=n[us("0xb")](s);r(i),s=n[us("0x3c")](t[us("0x8")][us("0x29")][us("0x1e")]),x=o[us("0x2b")](s),e[us("0x23")](t[us("0x8")][us("0x1f")](x),a?null:us("0x4b"))}))})),e._suggestionFactory[us("0x6")]("insertion",us("0x4b"),"chain",x));const i=[{type:us("0x47"),subType:"imageStylePreApply"},{type:us("0x4a"),subType:us("0x4b")},{type:"formatBlock",subType:us("0x9")},{type:us("0x4a"),subType:us("0x9")}];function o(t,r){const o=i[us("0x32")]((({type:e,subType:n})=>t[us("0x4c")]==e&&t.subType==n)),s=i[us("0x32")]((({type:t,subType:e})=>r[us("0x4c")]==t&&r.subType==e));if(o<0||s<0)return!1;const x=t[us("0x31")](),a=r.getFirstRange();if((0==o||1==o)&&2==s&&x.isIntersecting(a))return!0;if(2==o&&3==s){const t=e[us("0x52")](x,us("0x4a")).filter((({suggestion:t,meta:e})=>e[us("0x16")]&&"convertInlineImageToBlock"==t[us("0x17")]));if(t[us("0x49")]>1&&a[us("0x2c")].isEqual(x[us("0x50")]))return!0;if(1==t[us("0x49")]&&(x[us("0x50")][us("0x5")](a[us("0x2c")])||x[us("0x2c")][us("0x5")](a[us("0x50")])))return!0}if(3==o&&3==s&&x[us("0x50")][us("0x14")](a.start)){const t=x[us("0x2c")][us("0x5a")],e=a.start[us("0x15")];return n.isBlockImage(t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t[us("0x4d")][us("0x56")]("ImageResize")&&(e._enableDefaultAttributesIntegration("resizeImage",[],[us("0x30")]),e[us("0x42")].registerAttributeLabel("resizedWidth",Jr(r,us("0x3f")))),t[us("0x4d")][us("0x56")](us("0x22"))&&e[us("0x2e")]("imageTextAlternative",[],[us("0x1")]),e[us("0x42")].registerDescriptionCallback((t=>{if(i[us("0x24")]((({type:e,subType:n})=>t[us("0x4c")]==e&&t[us("0x17")]==n)))return t[us("0xe")]?{}:void 0})),e[us("0x42")][us("0x38")]((t=>{if(us("0x4a")==t[us("0x4c")]||us("0x59")==t[us("0x4c")]){const e=t[us("0x10")]();if(e&&e.is("element",us("0xf")))return{type:us("0x4a")==t[us("0x4c")]?us("0x46"):"removeObject",element:e,quantity:1}}})),e[us("0x42")][us("0x38")]((t=>us("0x47")==t[us("0x4c")]&&us("0x9")==t[us("0x17")]?{type:us("0x54"),content:us("0x2a")}:us("0x47")==t[us("0x4c")]&&"convertBlockImageToInline"==t.subType?{type:us("0x54"),content:us("0x4e")}:void 0)),e[us("0x42")][us("0x38")]((t=>{if(us("0x40")!=t[us("0x4c")])return;const{data:e}=t;if(!e||"alt"!=e[us("0xc")])return;const n=e[us("0x1c")];return n?{type:us("0x54"),content:Jr(r,us("0x1d"),'"'+n+'"')}:{type:us("0x54"),content:Jr(r,us("0xd"))}})),this._registerLegacyDescription()}[us("0x53")](){const t=this[us("0x2d")],e=t.locale;t[us("0x4d")].get(us("0x19"))[us("0x42")][us("0x38")]((t=>{if(us("0x47")!=t[us("0x4c")]&&us("0x4f")!=t.type)return;const{data:n}=t;if(n){if("imageTextAlternative"==n.commandName){const t=n[us("0x27")][0].newValue;return t?{type:"format",content:Jr(e,"*Set image text alternative:* %0",'"'+t+'"')}:{type:us("0x54"),content:Jr(e,us("0xd"))}}if(us("0x33")==n.commandName){const t=n[us("0x27")][0][us("0x25")];return t?{type:"format",content:Jr(e,"*Set image width:* %0",t)}:{type:us("0x54"),content:Jr(e,us("0x3a"))}}}}))}}const gs=["has","afterInit","*Format:* replace image URL","registerCustomCallback","src","_registerLegacyDescription","_suggestionFactory","_handleLegacySuggestions","newValue","*Replace image URL*","formatBlock","get","_enableDefaultAttributesIntegration","format","accept","formatInline","discard","type","getSuggestionCallback","ImageEditing","registerDescriptionCallback","locale","_descriptionFactory","attribute","editor","plugins","TrackChangesEditing","replaceImageSource","oldValue"];var fs,hs;fs=gs,hs=467,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class ps extends t.Plugin{[ms("0x1b")](){if(!this[ms("0x15")][ms("0x16")][ms("0x1a")](ms("0x10")))return;const t=this[ms("0x15")][ms("0x12")],e=this[ms("0x15")][ms("0x16")].get(ms("0x17"));e[ms("0x9")](ms("0x18"),[],[ms("0x1")]),e[ms("0x13")][ms("0x11")]((e=>{if(ms("0x14")!=e[ms("0xe")])return;const{data:n}=e;return n&&ms("0x1")==n.key?n[ms("0x5")]&&n[ms("0x19")]?{type:ms("0xa"),content:Jr(t,ms("0x6"))}:{type:ms("0xa"),content:""}:void 0})),this[ms("0x4")]()}[ms("0x4")](){const t=this[ms("0x15")].plugins[ms("0x8")](ms("0x17"));t[ms("0x3")][ms("0x0")]("formatBlock","replaceImageSource","accept",t[ms("0x3")][ms("0xf")](ms("0x7"),null,ms("0xd"))),t[ms("0x3")][ms("0x0")]("formatBlock","replaceImageSource",ms("0xd"),t[ms("0x3")][ms("0xf")](ms("0x7"),null,ms("0xb"))),this[ms("0x2")]()}[ms("0x2")](){const t=this.editor,e=t.locale;t[ms("0x16")].get("TrackChangesEditing")[ms("0x13")].registerDescriptionCallback((t=>{if(ms("0x7")!=t[ms("0xe")]&&ms("0xc")!=t[ms("0xe")])return;const{data:n}=t;return n&&ms("0x18")==n.commandName?{type:ms("0xa"),content:Jr(e,ms("0x1c"))}:void 0}))}}const bs=["registerCustomCallback","start","get","model","differ","ImageUtils","registerPostFixer","shouldConvertImageType","insertion","isIntersecting","_findSuggestions","refresh","nodeAfter","_descriptionFactory","*Format:* %0","imageStylePreApply","suggestion","accept","getClosestSelectedImageElement","markBlockFormat","convertInlineImageToBlock","findIndex","imageTypeInline","getFirstRange","document","getContainedElement","isBlockImage","_suggestionFactory","isInContent","editor","createRangeOn","commands","getSuggestions","imageStyle","join","setImageNaturalSizeAttributes","registerDescriptionCallback","subType","imageTypeBlock","enableCommand","discard","selection","normalizedStyles","hasSuggestion","getSuggestion","Users","change","newRange","plugins","imageCaption","ImageStyleEditing","commandParams","_registerLegacyDescription","isOwn","author","side","value","FORMAT_SIDE_IMAGE","end","markInlineFormat","filter","from","type","length","formatBlock","imageStylePostApply","next","commandName","title","isEqual","formatInline","_splitMarkerName","name","TrackChangesEditing"];var Es,_s;Es=bs,_s=370,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return bs[t-=0]};class ys extends t.Plugin{afterInit(){const t=this[Ts("0x1d")];if(!t.plugins.has(Ts("0x32")))return;const n=t.plugins[Ts("0x2")](Ts("0x49")),r=t.plugins[Ts("0x2")](Ts("0x5")),i={};n[Ts("0x27")](Ts("0x21"),((i,o)=>{const s=t[Ts("0x30")][Ts("0x2")](Ts("0x2d")).me,x=t[Ts("0x1f")][Ts("0x2")]("imageStyle");let a=r[Ts("0x12")](t[Ts("0x3")][Ts("0x18")][Ts("0x29")]),c=t[Ts("0x3")][Ts("0x1e")](a),l=x[Ts("0x38")];if(l==o[Ts("0x38")])return;const u={commandName:Ts("0x21"),commandParams:[o],formatGroupId:(0,e.uid)()};t.model[Ts("0x2e")]((()=>{if(n[Ts("0x20")]()[Ts("0x3c")]((t=>t[Ts("0x1c")]&&s==t[Ts("0x36")]&&(Ts("0x40")==t.type||Ts("0x46")==t[Ts("0x3e")])&&(Ts("0xf")==t[Ts("0x25")]||"imageStylePostApply"==t.subType)&&t[Ts("0x17")]().isEqual(c))).forEach((t=>n.discardSuggestion(t.head))),a=r.getClosestSelectedImageElement(t[Ts("0x3")][Ts("0x18")][Ts("0x29")]),c=t.model[Ts("0x1e")](a),x[Ts("0xb")](),t[Ts("0x1f")][Ts("0x2")](Ts("0x16"))[Ts("0xb")](),t.commands[Ts("0x2")](Ts("0x26"))[Ts("0xb")](),l=x[Ts("0x38")],l!=o[Ts("0x38")])return r.isInlineImage(a)&&x[Ts("0x7")](o[Ts("0x38")],a)?(i({...o,setImageSizes:!1}),a=r[Ts("0x12")](t.model[Ts("0x18")][Ts("0x29")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(r[Ts("0x1a")](a)?n[Ts("0x13")](a,u,[],"imageStylePostApply"):n[Ts("0x3b")](c,u,"imageStylePostApply"))}))}));for(const e of t[Ts("0x30")][Ts("0x2")](Ts("0x32"))[Ts("0x2a")])i[e[Ts("0x48")]]=e[Ts("0x44")].toLowerCase();n[Ts("0x1b")][Ts("0x0")](Ts("0x40"),Ts("0xf"),"join",(()=>!1)),n._suggestionFactory[Ts("0x0")](Ts("0x40"),Ts("0x41"),Ts("0x22"),(()=>!1)),n[Ts("0x1b")][Ts("0x0")](Ts("0x46"),Ts("0x41"),Ts("0x22"),(()=>!1)),n._suggestionFactory[Ts("0x0")](Ts("0x40"),Ts("0xf"),Ts("0x11"),(([t])=>{r[Ts("0x23")](t[Ts("0x19")]())})),n._suggestionFactory[Ts("0x0")](Ts("0x40"),Ts("0xf"),Ts("0x28"),((t,e)=>{n[Ts("0x1b")].getSuggestionCallback(Ts("0x40"),"",Ts("0x11"))(t,{commandName:e[Ts("0x43")],commandParams:e.commandReversedParams})})),n._suggestionFactory[Ts("0x0")]("formatBlock",Ts("0xf"),"chain",(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:Ts("0x40"),subType:Ts("0xf")},{type:"insertion",subType:Ts("0x31")},{type:Ts("0x40"),subType:Ts("0x14")},{type:Ts("0x8"),subType:"convertInlineImageToBlock"}];function s(t,e){const i=o[Ts("0x15")]((({type:e,subType:n})=>t[Ts("0x3e")]==e&&t[Ts("0x25")]==n)),s=o[Ts("0x15")]((({type:t,subType:n})=>e[Ts("0x3e")]==t&&e[Ts("0x25")]==n));if(i<0||s<0)return!1;const x=t[Ts("0x17")](),a=e[Ts("0x17")]();if((0==i||1==i)&&2==s&&x[Ts("0x9")](a))return!0;if(2==i&&3==s){const t=n[Ts("0xa")](x,"insertion")[Ts("0x3c")]((({suggestion:t,meta:e})=>e[Ts("0x35")]&&Ts("0x14")==t.subType));if(t[Ts("0x3f")]>1&&a.end[Ts("0x45")](x[Ts("0x1")]))return!0;if(1==t.length&&(x.start[Ts("0x45")](a[Ts("0x3a")])||x.end.isEqual(a[Ts("0x1")])))return!0}if(3==i&&3==s&&x[Ts("0x1")].isBefore(a[Ts("0x1")])){const t=x[Ts("0x3a")][Ts("0xc")],e=a[Ts("0x1")].nodeBefore;return r.isBlockImage(t)&&t===e}return!1}t[Ts("0x3")][Ts("0x18")][Ts("0x6")]((()=>{let e=!1;const i=Array[Ts("0x3d")](t[Ts("0x3")].document[Ts("0x4")].getChangedMarkers());for(const{name:t,data:o}of i){const{group:i,type:s,subType:x,id:a}=n[Ts("0x47")](t);if(Ts("0x10")==i&&n[Ts("0x2b")](a)){if(Ts("0x40")==s&&(Ts("0xf")==x||"imageStylePostApply"==x)){const t=n[Ts("0x2c")](a);if(o[Ts("0x2f")]){const i=t.getFirstRange().getContainedElement();if(r.isBlockImage(i))continue;n.discardSuggestion(t),e=!0}}if(Ts("0x8")==s&&"imageCaption"==x&&!o[Ts("0x2f")]){const t=n.getSuggestion(a);t.next&&t[Ts("0x42")].isInContent&&(n.discardSuggestion(t[Ts("0x42")]),e=!0)}}}return e})),this._registerLegacyDescription(i)}[Ts("0x34")](t){const e=this[Ts("0x1d")],n=e.locale;e[Ts("0x30")][Ts("0x2")](Ts("0x49"))[Ts("0xd")][Ts("0x24")]((e=>{if("formatBlock"!=e.type&&"formatInline"!=e[Ts("0x3e")])return;const{data:r}=e;if(!r||Ts("0x21")!=r.commandName)return;const i=r[Ts("0x33")][0][Ts("0x38")];return o=Ts("0x37")===i?Jr(n,Ts("0x39")):t[i]||i,{type:"format",content:Jr(n,Ts("0xe"),o)};var o}))}}const Cs=["high","commands","trackChanges","get","_handleImportedData","collaboration_features","importWord","_trackChangesValueDuringImport","track_changes","dataInsert","editor","_trackChangesExecuted","value","TrackChangesEditing","execute","listenTo","bind","afterInit","Users","plugins"];var As,ks;As=Cs,ks=365,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._trackChangesValueDuringImport=!1,this[Is("0x6")]=!1}[Is("0xc")](){const t=this[Is("0x5")],e=t[Is("0x10")][Is("0x12")](Is("0x1")),n=t[Is("0x10")][Is("0x12")](Is("0x11"));e&&(e.on(Is("0x9"),((t,[,e])=>{this[Is("0x2")]=n.value,e[Is("0x0")][Is("0x3")]=!this[Is("0x2")]}),{priority:Is("0xf")}),this[Is("0xa")](e,Is("0x4"),this[Is("0x13")][Is("0xb")](this)),this[Is("0xa")](e,"dataInsert",(()=>{this._trackChangesExecuted&&(n.execute(),this._trackChangesExecuted=!1)}),{priority:"lowest"}),t.plugins[Is("0x12")]("TrackChangesEditing").enableCommand(Is("0x1")))}[Is("0x13")](t,e){const{suggestions:n}=e,r=this.editor[Is("0x10")][Is("0x12")](Is("0x11")),i=r[Is("0x7")];this[Is("0x2")]!==i&&(r.execute(),this._trackChangesExecuted=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:r})=>{const i={id:t,type:e,authorId:this[Is("0x5")][Is("0xe")][Is("0x12")](Is("0xd")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:"importWord"}}};this[Is("0x5")].plugins.get(Is("0x8"))._setSuggestionData(i)}))}}const Rs=["format","_registerLegacyDescription","afterInit","_registerBlockAttribute","type","indentBlock","editor","IndentBlock","get","outdentBlock","commandName","FORMAT_INDENT","outdent","registerAttributeLabel","plugins","has","getItemLabel","getItems","locale","enableCommand","IndentEditing","*Indent:* %0","indent","blockIndent","TrackChangesEditing","registerDescriptionCallback","_descriptionFactory","_enableDefaultAttributesIntegration"];var vs,Ns;vs=Rs,Ns=251,function(t){for(;--t;)vs.push(vs.shift())}(++Ns);const Ls=function(t,e){return Rs[t-=0]};class Ms extends t.Plugin{[Ls("0x3")](){const t=this.editor,e=t.plugins[Ls("0x9")](Ls("0x19"));if(t[Ls("0xf")][Ls("0x10")](Ls("0x15"))&&(e[Ls("0x14")](Ls("0x17")),e[Ls("0x14")](Ls("0xd"))),t[Ls("0xf")][Ls("0x10")](Ls("0x8")))for(const t of["indentBlock","outdentBlock"])e[Ls("0x0")](t);const n=t[Ls("0x13")];e[Ls("0x4")]("blockIndent"),e[Ls("0x1b")][Ls("0xe")](Ls("0x18"),Jr(n,Ls("0xc"))),this[Ls("0x2")]()}[Ls("0x2")](){const t=this[Ls("0x7")],e=t[Ls("0x13")],n=t[Ls("0xf")].get(Ls("0x19"));n._descriptionFactory[Ls("0x1a")]((t=>{if("formatBlock"!=t[Ls("0x5")])return;const{data:r}=t;if(!r)return;if(Ls("0x6")!=r[Ls("0xb")]&&Ls("0xa")!=r[Ls("0xb")])return;const i=t[Ls("0x12")]()[0],o=n._descriptionFactory[Ls("0x11")](i);return Ls("0x6")==r[Ls("0xb")]?{type:"format",content:Jr(e,Ls("0x16"),o)}:Ls("0xa")==r[Ls("0xb")]?{type:Ls("0x1"),content:Jr(e,"*Outdent:* %0",o)}:void 0}))}}var ws,Os,Fs=["TrackChangesEditing","init","editor","input","get","enableCommand","requires","plugins"];ws=Fs,Os=431,function(t){for(;--t;)ws.push(ws.shift())}(++Os);var Ds=function(t,e){return Fs[t-=0]};class Bs extends t.Plugin{static get[Ds("0x7")](){return[qi.Input]}[Ds("0x2")](){this[Ds("0x3")][Ds("0x0")][Ds("0x5")](Ds("0x1"))[Ds("0x6")](Ds("0x4"))}}const Ps=["_enableDefaultAttributesIntegration","linkHref","link (","has","commandName","manualDecorators","_descriptionFactory","toLowerCase","type","plugins","*Set link:* %0","key","editor","get","commandParams","locale","TrackChangesEditing","registerDescriptionCallback","*Remove link*","link","formatInline","unlink","format","label","map","LinkEditing"];var Us,js;Us=Ps,js=220,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Ps[t-=0]};class Vs extends t.Plugin{afterInit(){const t=this[Gs("0x0")];if(!t[Gs("0x17")][Gs("0x11")](Gs("0xd")))return;const e=t[Gs("0x17")].get("TrackChangesEditing"),n=t.commands[Gs("0x1")](Gs("0x7"));e[Gs("0xe")]("link",[Gs("0xf"),...n[Gs("0x13")][Gs("0xc")]((t=>t.id))]),e[Gs("0xe")](Gs("0x9"));for(const t of n[Gs("0x13")])e._descriptionFactory.registerAttributeLabel(t.id,Gs("0x10")+t[Gs("0xb")][Gs("0x15")]()+")");e._descriptionFactory[Gs("0x5")]((e=>{if("attribute"!=e[Gs("0x16")])return;const{data:n}=e;if(!n||Gs("0xf")!=n[Gs("0x19")])return;const r=n.newValue,i=t[Gs("0x3")];return{type:Gs("0xa"),content:null==r?Jr(i,Gs("0x6")):Jr(i,"*Set link:* %0",'"'+r+'"')}})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[Gs("0x0")],e=t[Gs("0x3")];t[Gs("0x17")][Gs("0x1")](Gs("0x4"))[Gs("0x14")][Gs("0x5")]((t=>{if(Gs("0x8")!=t[Gs("0x16")])return;const{data:n}=t;if(n){if(Gs("0x7")==n[Gs("0x12")]){const t=n[Gs("0x2")][0];return{type:"format",content:Jr(e,Gs("0x18"),'"'+t+'"')}}return"unlink"==n[Gs("0x12")]?{type:Gs("0xa"),content:Jr(e,Gs("0x6"))}:void 0}}))}}const Hs=["plugins","element","numbered","numberedList","outdentList","value","name","has","model","blockName","registerElementLabel","parent","getAttribute","end","type","ELEMENT_BULLETED_LIST","from","get","todo","*Outdent:* %0","TrackChangesEditing","selection","before","indentList","formatBlock","enableCommand","commandName","commands","ELEMENT_LIST_ITEM","listItem","*Change to:* %0","ELEMENT_NUMBERED_LIST","LegacyListEditing","nextSibling","listIndent","bulletedList","_descriptionFactory","schema","filter","length","previousSibling","commandParams","createRange","checkChild","forceValue","List","registerDescriptionCallback","_selectedElements","replace","execute","change","document","checkTodoList","LegacyTodoListEditing","format","findIndex","formatInline","ELEMENT_TODO_LIST","getSelectedBlocks","todoList","markBlockFormat","isObject","add","editor"];var zs,Ws;zs=Hs,Ws=396,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("0x33")],e=t.locale;if(!t[Ks("0x34")].has(Ks("0x14")))return;const n=t[Ks("0x34")].get(Ks("0x8")),r=t.plugins[Ks("0x3b")](Ks("0x29"));function i(e){return()=>{const r=t[Ks("0x3c")][Ks("0x27")][Ks("0x9")],i=t[Ks("0xf")].get(e);if(i[Ks("0x39")])return void t[Ks("0x25")]("paragraph",{});const o=e.slice(0,-4),s=function(t,e,n){let r=Array.from(t).filter((t=>{return e=t,(r=n)[Ks("0x1f")](e[Ks("0x3f")],Ks("0x11"))&&!r[Ks("0x31")](e);var e,r}));r=r[Ks("0x1a")]((t=>!t.is(Ks("0x35"),"listItem")||t.getAttribute("listType")!=e));const i=new Set;for(const t of r)t.is(Ks("0x35"),Ks("0x11"))?i[Ks("0x32")](Xs(t)):i[Ks("0x32")](t);return Array.from(i)}(r[Ks("0x2e")](),o,t.model[Ks("0x19")]);t[Ks("0x3c")][Ks("0x26")]((()=>{for(const t of s)n[Ks("0x30")](t,{commandName:e,commandParams:[{forceValue:!i[Ks("0x39")]}],formatGroupId:Ks("0x3d")},$s(t))}))}}function o(e){return()=>{const r=function(t){let e=Array.from(t);const n=e[Ks("0x2b")]((t=>"listItem"!=t[Ks("0x3a")]));return n>-1&&(e=e.slice(0,n)),e}(t[Ks("0x3c")].document[Ks("0x9")].getSelectedBlocks()),i=t[Ks("0x3c")][Ks("0x1e")](t[Ks("0x3c")].createPositionAt(r[0],Ks("0xa")),t[Ks("0x3c")].createPositionAt(r[r[Ks("0x1b")]-1],Ks("0x1")));t.model.change((()=>{n[Ks("0x30")](i,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[Ks("0x0")](Ks("0x16"))>n.getAttribute(Ks("0x16"));)e[Ks("0x32")](t),t=t.nextSibling}return Array[Ks("0x4")](e)}(r))}))}}n.enableCommand(Ks("0x37"),i(Ks("0x37"))),n[Ks("0xd")](Ks("0x17"),i("bulletedList")),r&&n[Ks("0xd")](Ks("0x2f"),i(Ks("0x2f"))),n[Ks("0xd")](Ks("0xb"),o(Ks("0xb"))),n.enableCommand(Ks("0x38"),o(Ks("0x38"))),r&&n[Ks("0xd")]("checkTodoList",(()=>{const e=t.commands[Ks("0x5")](Ks("0x28")),r=Array[Ks("0x4")](e[Ks("0x23")]);r[Ks("0x1a")]((t=>t[Ks("0x0")]("todoListChecked")!=e[Ks("0x39")])),t[Ks("0x3c")][Ks("0x26")]((()=>{for(const t of r)n[Ks("0x30")](t,{commandName:Ks("0x28"),commandParams:[{forceValue:!e[Ks("0x39")]}]})}))})),n[Ks("0x18")][Ks("0x3e")]("listItem",(t=>Jr(e,Ks("0x10"),t))),n[Ks("0x18")][Ks("0x22")]((t=>{if(Ks("0xc")!=t.type&&Ks("0x2c")!=t[Ks("0x2")])return;const{data:n}=t;if(n){if(Ks("0x37")==n[Ks("0xe")]||Ks("0x17")==n.commandName||Ks("0x2f")==n[Ks("0xe")])switch(n.commandName[Ks("0x24")](Ks("0x21"),"")){case"bulleted":return r(Jr(e,Ks("0x3")));case Ks("0x36"):return r(Jr(e,Ks("0x13")));case Ks("0x6"):return r(Jr(e,Ks("0x2d")))}if("indentList"==n[Ks("0xe")])return{type:Ks("0x2a"),content:Jr(e,"*Indent:* %0",Jr(e,Ks("0x10")))};if(Ks("0x38")==n[Ks("0xe")])return{type:Ks("0x2a"),content:Jr(e,Ks("0x7"),Jr(e,"ELEMENT_LIST_ITEM"))};if(Ks("0x28")==n[Ks("0xe")])return n[Ks("0x1d")][0][Ks("0x20")]?{type:Ks("0x2a"),content:Jr(e,"*Check item*")}:{type:Ks("0x2a"),content:Jr(e,"*Uncheck item*")}}function r(t){return{type:Ks("0x2a"),content:Jr(e,Ks("0x12"),t)}}}))}}function Xs(t){const e=t[Ks("0x0")]("listIndent");if(0==e)return t;let n=t;for(;t[Ks("0x1c")]&&t.previousSibling.is(Ks("0x35"),Ks("0x11"));){const r=t[Ks("0x1c")].getAttribute(Ks("0x16"));if(r==e)n=t[Ks("0x1c")];else if(r<e)break;t=t.previousSibling}return n}function $s(t){const e=[];if(t.is(Ks("0x35"),Ks("0x11"))&&t[Ks("0x0")](Ks("0x16"))>0){let n=t[Ks("0x15")];for(;n&&"listItem"==n[Ks("0x3a")]&&n[Ks("0x0")](Ks("0x16"))==t.getAttribute("listIndent");)e.push(n),n=n[Ks("0x15")]}return e}const Zs=["backward","LegacyListUtils","get","list.properties","registerDescriptionCallback","getSiblingNodes","listStyle","_getTranslationKeyForListStyle","commandParams","afterInit","handleListStartCommand","map","format","listItem","*Change to:* %0","listType","getAttribute","forward","handleListReversedCommand","TrackChangesEditing","config","listStart","reversed","startIndex","handleDescriptions","_getSuggestionBlocksForListStyle","handleListStyleCommand","formatBlock","toUpperCase","getLastPosition","_getSuggestionBlocks","model","_descriptionFactory","numbered","replace","*Format:* set start index to %0","element","from","locale","listReversed","type","change","getFirstPosition","plugins","enableCommand","ELEMENT_","length","getListTypeFromListStyleType","bind","flat","document","createRange","filter","before","*Format:* set order to reversed","editor","commandName","selection","createPositionAt","markMultiRangeBlockFormat"];var Ys,Js;Ys=Zs,Js=106,function(t){for(;--t;)Ys.push(Ys.shift())}(++Js);const Qs=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{[Qs("0x17")](){if(!this[Qs("0x9")][Qs("0x39")].has("LegacyListPropertiesEditing"))return;const t=this[Qs("0x9")][Qs("0x22")][Qs("0x10")](Qs("0x11")),e=this[Qs("0x9")].plugins[Qs("0x10")](Qs("0x21"));t.styles&&e.enableCommand(Qs("0x14"),this[Qs("0x28")][Qs("0x2")](this)),t[Qs("0x24")]&&e[Qs("0x3a")](Qs("0x35"),this[Qs("0x20")][Qs("0x2")](this)),t[Qs("0x25")]&&e[Qs("0x3a")](Qs("0x23"),this.handleListStartCommand[Qs("0x2")](this)),e[Qs("0x2e")][Qs("0x12")](this[Qs("0x26")].bind(this))}handleListStyleCommand(t,e={}){const n=this.editor[Qs("0x39")][Qs("0x10")](Qs("0x21")),r=this[Qs("0x27")]();this[Qs("0x9")][Qs("0x2d")][Qs("0x37")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:"listStyle",commandParams:[{type:e[Qs("0x36")]}],formatGroupId:"listStyle"})}))}handleListReversedCommand(t,e={}){const n=this[Qs("0x9")].plugins.get(Qs("0x21")),r=this[Qs("0x2c")]((t=>t.is(Qs("0x32"),"listItem")&&Qs("0x2f")===t[Qs("0x1e")](Qs("0x1d"))));if(r[Qs("0x0")]<1)return;const i=r.map((t=>this[Qs("0x9")][Qs("0x2d")][Qs("0x5")](this[Qs("0x9")][Qs("0x2d")][Qs("0xc")](t,Qs("0x7")),this[Qs("0x9")][Qs("0x2d")][Qs("0xc")](t,0))));this[Qs("0x9")][Qs("0x2d")].change((()=>{n[Qs("0xd")](i,{commandName:Qs("0x35"),commandParams:[{reversed:e[Qs("0x24")]}],formatGroupId:Qs("0x35")})}))}[Qs("0x18")](t,e={}){const n=this[Qs("0x9")].plugins[Qs("0x10")](Qs("0x21")),r=this[Qs("0x2c")]((t=>t.is(Qs("0x32"),Qs("0x1b"))&&Qs("0x2f")===t[Qs("0x1e")]("listType")));if(r.length<1)return;const i=r[Qs("0x19")]((t=>this.editor[Qs("0x2d")][Qs("0x5")](this[Qs("0x9")].model[Qs("0xc")](t,Qs("0x7")),this[Qs("0x9")][Qs("0x2d")].createPositionAt(t,0))));this[Qs("0x9")][Qs("0x2d")][Qs("0x37")]((()=>{n[Qs("0xd")](i,{commandName:Qs("0x23"),commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}handleDescriptions(t){if(Qs("0x29")!=t[Qs("0x36")]&&"formatInline"!=t[Qs("0x36")])return;const e=this[Qs("0x9")][Qs("0x34")],{data:n}=t;if(!n)return;let r,i;switch(n[Qs("0xa")]){case Qs("0x14"):r=Qs("0x1c"),i={type:Qs("0x1a"),content:Jr(e,r,Jr(e,this[Qs("0x15")](n[Qs("0x16")][0][Qs("0x36")])))};break;case"listReversed":r=n[Qs("0x16")][0][Qs("0x24")]?Qs("0x8"):"*Format:* set order to regular",i={type:Qs("0x1a"),content:Jr(e,r)};break;case"listStart":r=Qs("0x31"),i={type:Qs("0x1a"),content:Jr(e,r,n.commandParams[0][Qs("0x25")])}}return i}[Qs("0x27")](){var t,e,n,r;const i=this[Qs("0x9")][Qs("0x39")][Qs("0x10")](Qs("0xf"));let o=Array.from(this[Qs("0x9")][Qs("0x2d")][Qs("0x4")].selection.getSelectedBlocks());return(null===(t=o[0])||void 0===t?void 0:t.is("element",Qs("0x1b")))&&o.unshift(...i[Qs("0x13")](this[Qs("0x9")][Qs("0x2d")][Qs("0x4")][Qs("0xb")][Qs("0x38")](),Qs("0xe"))),(null===(e=o[o[Qs("0x0")]-1])||void 0===e?void 0:e.is(Qs("0x32"),Qs("0x1b")))&&o.push(...i[Qs("0x13")](this[Qs("0x9")][Qs("0x2d")][Qs("0x4")][Qs("0xb")][Qs("0x2b")](),Qs("0x1f"))),o=[...new Set(o)],(null===(r=null===(n=this.editor[Qs("0x2d")].document[Qs("0xb")].getFirstPosition())||void 0===n?void 0:n.parent)||void 0===r?void 0:r.is(Qs("0x32"),Qs("0x1b")))&&(o=o[Qs("0x6")]((t=>t.is(Qs("0x32"),"listItem")))),o}[Qs("0x2c")](t){const e=this[Qs("0x9")][Qs("0x39")][Qs("0x10")](Qs("0xf"));let n=Array[Qs("0x33")](this[Qs("0x9")][Qs("0x2d")][Qs("0x4")][Qs("0xb")].getSelectedBlocks()).filter(t)[Qs("0x19")]((t=>{const n=this[Qs("0x9")][Qs("0x2d")][Qs("0xc")](t,0);return[...e.getSiblingNodes(n,"backward"),...e.getSiblingNodes(n,"forward")]}))[Qs("0x3")]();return n=[...new Set(n)],n}[Qs("0x15")](t){return Qs("0x3b")+this[Qs("0x9")][Qs("0x39")][Qs("0x10")](Qs("0xf"))[Qs("0x1")](t)[Qs("0x2a")]()+"_LIST_"+t[Qs("0x2a")]()[Qs("0x30")](/-/g,"_")}}const ex=["plugins","editor","registerElementLabel","showSuggestionHighlights","options","_descriptionFactory","MediaEmbedEditing","enableCommand","data","dataDowncast","afterInit","conversion","ELEMENT_MEDIA","for","downcastDispatcher","high","media"];var nx,rx;nx=ex,rx=138,function(t){for(;--t;)nx.push(nx.shift())}(++rx);const ix=function(t,e){return ex[t-=0]};class ox extends t.Plugin{[ix("0x8")](){const t=this[ix("0x10")];if(!t[ix("0xf")].has(ix("0x4")))return;const e=t[ix("0xf")].get("TrackChangesEditing"),n=t.locale;e[ix("0x5")]("mediaEmbed"),e[ix("0x3")][ix("0x0")]("media",(t=>Jr(n,ix("0xa"),t))),t[ix("0x9")][ix("0xb")](ix("0x7")).elementToElement({model:ix("0xe"),view:(t,{writer:e,options:n})=>{if(n[ix("0x1")])return e.createEmptyElement("div")},converterPriority:ix("0xd")}),t[ix("0x6")][ix("0xc")].on("attribute:url:media",((t,e,n)=>{n[ix("0x2")].showSuggestionHighlights&&t.stop()}),{priority:ix("0xd")})}}const sx=["plugins","editor","get","mention","afterInit","has","enableCommand","MentionEditing"];var xx,ax;xx=sx,ax=269,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{[cx("0x7")](){const t=this[cx("0x4")];t[cx("0x3")][cx("0x0")](cx("0x2"))&&t.plugins[cx("0x5")]("TrackChangesEditing")[cx("0x1")](cx("0x6"))}}const ux=["plugins","has","TrackChangesEditing","PageBreakEditing","pageBreak","editor","enableCommand","registerElementLabel"];var dx,gx;dx=ux,gx=468,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("0x1")];if(!t[fx("0x4")][fx("0x5")](fx("0x7")))return;t[fx("0x4")].get("TrackChangesEditing")[fx("0x2")]("pageBreak");const e=t[fx("0x4")].get(fx("0x6")),n=t.locale;e._descriptionFactory[fx("0x3")](fx("0x0"),(t=>Jr(n,"ELEMENT_PAGE_BREAK",t)))}}const mx=["markerName","writer","consumable","insertion","data","includes","isLimit","showSuggestionHighlights","formatBlock","options","addClass","name","ELEMENT_PARAGRAPH","_descriptionFactory","$text","getItemLabel","toViewPosition","registerDescriptionCallback","type","format","markerRange","ck-suggestion-marker-split","mapper","plugins","*Change to:* %0","getFirstRange","start","enableCommand","isBlock","isTouching","activeMarkers","afterInit","highest","addMarker:suggestion:insertion","nodeAfter","TrackChangesEditing","editing","insert","schema","locale","downcastDispatcher","get","paragraph","model","commandName","checkChild","span"];var px,bx;px=mx,bx=190,function(t){for(;--t;)px.push(px.shift())}(++bx);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{[Ex("0x1d")](){const t=this.editor;if(!t[Ex("0x15")].has("Paragraph"))return;const e=t.locale,n=t[Ex("0x15")][Ex("0x27")](Ex("0x21"));n[Ex("0xb")].registerElementLabel(Ex("0x28"),(t=>Jr(e,Ex("0xa"),t))),n._enableDefaultAttributesIntegration(Ex("0x28")),n[Ex("0x19")]("insertParagraph"),t[Ex("0x22")][Ex("0x26")].on(Ex("0x1f"),Tx(t),{priority:Ex("0x1e")}),t[Ex("0x2")][Ex("0x26")].on(Ex("0x1f"),((e,n,r)=>{r[Ex("0x7")][Ex("0x5")]&&Tx(t,{showActiveMarker:!1})(e,n,r)}),{priority:Ex("0x1e")});const r=n[Ex("0xb")];r.registerDescriptionCallback((n=>{if(Ex("0x1")!==n[Ex("0x10")])return;const{start:i,end:o}=n[Ex("0x17")]();if(!i.isTouching(o)||!i[Ex("0x20")])return;const s=t[Ex("0x29")].schema,x=i[Ex("0x20")];return s[Ex("0x1a")](x)&&!s[Ex("0x4")](x)&&s[Ex("0x2b")](x,"$text")?{type:Ex("0x1"),content:Jr(e,"*Insert:* %0",r[Ex("0xd")](x,1))}:void 0})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this.editor,e=t[Ex("0x25")];t.plugins[Ex("0x27")](Ex("0x21"))[Ex("0xb")][Ex("0xf")]((t=>{if(Ex("0x6")!=t[Ex("0x10")])return;const{data:n}=t;return n&&Ex("0x28")==n[Ex("0x2a")]?{type:Ex("0x11"),content:Jr(e,Ex("0x16"),Jr(e,Ex("0xa")))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Ex("0x15")][Ex("0x27")](Ex("0x21")),s=r[Ex("0x12")][Ex("0x18")],x=r[Ex("0x12")].end,a=t[Ex("0x29")][Ex("0x24")];if(!s[Ex("0x1b")](x)||!s[Ex("0x20")])return;const c=s[Ex("0x20")];if(a[Ex("0x1a")](c)&&!a.isLimit(c)&&a[Ex("0x2b")](c,Ex("0xc"))){if(!i[Ex("0x0")].consume(r.markerRange,n[Ex("0x9")]))return;const t=i.writer.createUIElement(Ex("0x2c"),{class:Ex("0x13")}),s=i[Ex("0x14")][Ex("0xe")](x);e&&o[Ex("0x1c")][Ex("0x3")](r[Ex("0x2d")])&&i[Ex("0x2e")][Ex("0x8")]("ck-suggestion-marker--active",t),i[Ex("0x2e")][Ex("0x23")](s,t),i[Ex("0x14")].bindElementToMarker(t,r[Ex("0x2d")])}}}const yx=["type","_registerLegacyDescription","registerDescriptionCallback","_descriptionFactory","get","_enableDefaultAttributesIntegration","commandName","formatBlock","removeFormat","*Remove all formatting*","plugins","formatInline","TrackChangesEditing","locale","format"];var Cx,Ax;Cx=yx,Ax=123,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Ix extends t.Plugin{afterInit(){const t=this.editor;t.plugins.has("RemoveFormatEditing")&&(t[kx("0x7")].get(kx("0x9"))[kx("0x2")](kx("0x5")),this[kx("0xd")]())}[kx("0xd")](){const t=this.editor;t[kx("0x7")][kx("0x1")](kx("0x9"))[kx("0x0")][kx("0xe")]((e=>{if(kx("0x4")!=e.type&&kx("0x8")!=e[kx("0xc")])return;const{data:n}=e;return n&&"removeFormat"==n[kx("0x3")]?{type:kx("0xb"),content:Jr(t[kx("0xa")],kx("0x6"))}:void 0}))}}const Sx=["discardSelectedSuggestions","trackChanges","plugins","has","enableCommand","acceptAllSuggestions","TrackChangesEditing","get","goToPreviousRestrictedEditingException","acceptSelectedSuggestions","goToNextRestrictedEditingException","RestrictedEditingModeEditing","acceptSuggestion"];var Rx,vx;Rx=Sx,vx=359,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.editor;if(!t[Nx("0x7")][Nx("0x8")]("RestrictedEditingModeEditing"))return;const e=t[Nx("0x7")][Nx("0xc")](Nx("0xb"));e[Nx("0x9")](Nx("0x0")),e[Nx("0x9")](Nx("0x2"));const n=t.plugins[Nx("0xc")](Nx("0x3"));n.enableCommand(Nx("0x6")),n[Nx("0x9")](Nx("0x4")),n[Nx("0x9")]("discardSuggestion"),n[Nx("0x9")](Nx("0xa")),n[Nx("0x9")]("discardAllSuggestions"),n[Nx("0x9")](Nx("0x1")),n.enableCommand(Nx("0x5"))}}const Mx=["_descriptionFactory","toViewPosition","editing","ELEMENT_LINE_BREAK","bindElementToMarker","addMarker:suggestion:insertion","consumable","element","addMarker:suggestion","mapper","init","split","registerElementLabel","writer","locale","plugins","ck-suggestion-marker-","TrackChangesEditing","softBreak","data","name","requires","markerName","insert","model","get","deletion","addClass","activeMarkers","markerRange","shiftEnter","createUIElement","downcastDispatcher","includes","test","editor","getItems"];var wx,Ox;wx=Mx,Ox=254,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("0x1a")](){return[Eo.ShiftEnter]}[Fx("0xf")](){const t=this[Fx("0x3")],e=t[Fx("0x14")].get(Fx("0x16"));e.enableCommand(Fx("0x23")),t[Fx("0x7")][Fx("0x0")].on(Fx("0xa"),Bx(t),{priority:"high"}),t[Fx("0x7")][Fx("0x0")].on("addMarker:suggestion:deletion",Bx(t),{priority:"high"}),t[Fx("0x18")][Fx("0x0")].on(Fx("0xd"),((e,n,r)=>{r.options.showSuggestionHighlights&&Bx(t,{showActiveMarker:!1})(e,n,r)})),e[Fx("0x5")][Fx("0x11")]("softBreak",(e=>Jr(t[Fx("0x13")],Fx("0x8"),e)))}}function Bx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Fx("0x14")][Fx("0x1e")](Fx("0x16"));if(!i[Fx("0xb")][Fx("0x2")](r[Fx("0x22")],n[Fx("0x19")]))return;const s=t[Fx("0x1d")];for(const t of r[Fx("0x22")][Fx("0x4")]()){if(!t.is(Fx("0xc"),Fx("0x17")))continue;const n=Fx("0x1f")==r[Fx("0x1b")][Fx("0x10")](":")[1]?"merge":"split",x=i[Fx("0x12")][Fx("0x24")]("span",{class:Fx("0x15")+n}),a=i[Fx("0xe")][Fx("0x6")](s.createPositionBefore(t));e&&o[Fx("0x21")][Fx("0x1")](r[Fx("0x1b")])&&i[Fx("0x12")][Fx("0x20")]("ck-suggestion-marker--active",x),i[Fx("0x12")][Fx("0x1c")](a,x),i[Fx("0xe")][Fx("0x9")](x,r[Fx("0x1b")])}}}const Px=["TrackChangesEditing","commands","_descriptionFactory","formatBlock","plugins","markInlineFormat","change","get","getRanges","registerDescriptionCallback","afterInit","value","commandParams","from","formatInline","editor","format","FORMAT_RESTRICTED_DISABLED","type","isCollapsed","has","forceValue","locale","restrictedEditingException","FORMAT_RESTRICTED_ENABLED","model"];var Ux,jx;Ux=Px,jx=351,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Px[t-=0]};class Vx extends t.Plugin{[Gx("0x17")](){const t=this[Gx("0x2")],e=t[Gx("0xc")],n=t[Gx("0x9")];if(!t[Gx("0x11")][Gx("0x7")]("StandardEditingModeEditing"))return;const r=t[Gx("0x11")][Gx("0x14")](Gx("0xd")),i=Gx("0xa"),o=t[Gx("0xe")][Gx("0x14")](i);r.enableCommand(i,((t,n={})=>{const s=e.document.selection;if(s[Gx("0x6")])return void t(n);const x=void 0!==n[Gx("0x8")]?n[Gx("0x8")]:!o[Gx("0x18")];e[Gx("0x13")]((()=>{const t=Array[Gx("0x0")](s[Gx("0x15")]());for(const n of t){const t=x?[n]:Ji(i,n,e);for(const e of t)r[Gx("0x12")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),r[Gx("0xf")][Gx("0x16")]((t=>{if(Gx("0x10")!=t[Gx("0x5")]&&Gx("0x1")!=t[Gx("0x5")])return;const{data:e}=t;return e&&e.commandName==i?e[Gx("0x19")][0].forceValue?{type:Gx("0x3"),content:Jr(n,Gx("0xb"))}:{type:"format",content:Jr(n,Gx("0x4"))}:void 0}))}}const Hx=["DataSchema","type","getGhsAttributeNameForElement","ghsAttributes","_descriptionFactory","element","editor","*Set format:* %0","afterInit","TrackChangesEditing","definitions","StyleUtils","_enableDefaultAttributesIntegration","*Remove format:* %0","_registerLegacyDescription","format","Style","FORMAT_STYLE","registerAttributeLabel","commandName","_registerBlockAttribute","styleName","_registerInlineAttribute","plugins","registerDescriptionCallback","get","style","toLowerCase","forceValue","has","config","locale","formatInline","add","commandParams"];var zx,Wx;zx=Hx,Wx=488,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{[Kx("0xa")](){const t=this[Kx("0x8")];if(!t[Kx("0x19")][Kx("0x1f")](Kx("0x12"))||!t[Kx("0x19")].has(Kx("0x2")))return;const e=t[Kx("0x19")][Kx("0x1b")](Kx("0xb")),n=t[Kx("0x21")],r=t[Kx("0x20")][Kx("0x1b")](Kx("0x1c")),i=t[Kx("0x19")][Kx("0x1b")]("GeneralHtmlSupport"),o=t[Kx("0x19")][Kx("0x1b")](Kx("0xd")).normalizeConfig(t.plugins[Kx("0x1b")](Kx("0x2")),r[Kx("0xc")]);e[Kx("0xe")](Kx("0x1c"));const s=new Set;for(const t of o.block){const e=i.getGhsAttributeNameForElement(t[Kx("0x7")]);s[Kx("0x0")](e)}const x=new Set;for(const t of o.inline){const e=i[Kx("0x4")](t[Kx("0x7")]);x[Kx("0x0")](e);for(const e of t[Kx("0x5")])x.add(e)}for(const t of s)e[Kx("0x16")](t),e[Kx("0x6")][Kx("0x14")](t,Jr(n,Kx("0x13")));for(const t of x)e[Kx("0x18")](t),e[Kx("0x6")][Kx("0x14")](t,Jr(n,Kx("0x13")));this[Kx("0x10")]()}[Kx("0x10")](){const t=this[Kx("0x8")],e=t[Kx("0x21")];t[Kx("0x19")][Kx("0x1b")](Kx("0xb"))[Kx("0x6")][Kx("0x1a")]((t=>{if("formatBlock"!=t[Kx("0x3")]&&Kx("0x22")!=t.type)return;const{data:n}=t;return n&&Kx("0x1c")===n[Kx("0x15")]?n[Kx("0x1")][0][Kx("0x1e")]?{type:"format",content:Jr(e,Kx("0x9"),n[Kx("0x1")][0][Kx("0x17")][Kx("0x1d")]())}:{type:Kx("0x11"),content:Jr(e,Kx("0xf"),n.commandParams[0][Kx("0x17")][Kx("0x1d")]())}:void 0}))}}const Xx=["above","findAncestor","min","registerElementLabel","registerDescriptionCallback","oldRange","get","getContainedElement","createRangeIn","removeClass","table","span","getColumnIndexes","insertion","createRangeOn","fromRange","removeTableRow","length","tablePaste","setSelection","cell","batch","enableCommand","tableRow","getAttribute","registerCustomCallback","ELEMENT_TABLE_COLUMN_WITH_TEXT","_tablePostFixingSubtypes","_setupColumnsRowsFixing","join","first","filter","document","change:data","order","classes","data","every","createTableWalker","end","isEqual","startsWith","TableUtils","from","registerPostFixer","getSelectionAffectedTableCells","start","addMarker:suggestion","accept","insertTableColumnRight","toLowerCase","getRowIndexes","downcastDispatcher","getChangedMarkers","createPositionAt","has","hasAttribute","TrackChangesEditing","push","*Insert:* %0","add","getItems","element","model","getSuggestion","locale","insertTableRowBelow","deletion","getFirstRange","commands","addClass","_getSuggestionCoords","last","isTouching","minRow","mapper","name","detach","execute","isArray","position","colspan","root","tableCell","markMultiRangeInsertion","_descriptionFactory","toViewElement","getRanges","_suggestionFactory","enqueueChange","_splitMarkerName","getCellLocation","$graveyard","editor","MIN_SAFE_INTEGER","differ","ELEMENT_TABLE","refresh","type","map","change","ELEMENT_TABLE_ROW_WITH_TEXT","selection","includes","maxRow","removeTableColumn","*Remove:* %0","isIntersectingWithRange","_getCoordsForCells","forceValue","getChildren","_tableSuggestions","rootName","nodeAfter","$textProxy","options","TableEditing","substr","plugins","MAX_SAFE_INTEGER","item","insert","rowspan","some","nodeBefore","minColumn","showSuggestionHighlights","writer","selectTableRow","tableColumn","subType","insertTableRowAbove","getChanges","afterInit","ELEMENT_TABLE_ROW","addRange"];var $x,Zx;$x=Xx,Zx=245,function(t){for(;--t;)$x.push($x.shift())}(++Zx);const Yx=function(t,e){return Xx[t-=0]};class Jx extends t.Plugin{constructor(t){super(t),this[Yx("0x36")]=[Yx("0x32"),"tableColumn"],this._tableSuggestions=new Set}[Yx("0x18")](){const t=this[Yx("0x78")],e=t.model[Yx("0x3b")].selection;if(!t.plugins[Yx("0x52")](Yx("0x7")))return;const n=t[Yx("0x5c")],r=t[Yx("0x9")].get(Yx("0x54")),i=t[Yx("0x9")][Yx("0x21")](Yx("0x45"));r[Yx("0x70")][Yx("0x1e")](Yx("0x25"),(t=>Jr(n,Yx("0x7b"),t))),this[Yx("0x37")](),r.enableCommand("insertTable"),r[Yx("0x31")](Yx("0x13")),r[Yx("0x31")]("selectTableColumn");for(const n of[Yx("0x16"),Yx("0x5d")]){const o=t[Yx("0x60")][Yx("0x21")](n);r[Yx("0x31")](n,(n=>{t.model[Yx("0x7f")]((t=>{n();const s=Yx("0x1b")===o[Yx("0x3d")],x=i[Yx("0x48")](e),a=i[Yx("0x4e")](x),c=s?a[Yx("0x39")]-1:a[Yx("0x63")]+1,l=x[0].findAncestor(Yx("0x25")),u=i[Yx("0x41")](l,{startRow:c,endRow:c}),d=Array[Yx("0x46")](u)[Yx("0x7e")]((e=>t[Yx("0x29")](e[Yx("0x2f")])));r[Yx("0x6f")](d,Yx("0x32"))}))}))}for(const n of["insertTableColumnLeft",Yx("0x4c")]){const o=t[Yx("0x60")][Yx("0x21")](n);r[Yx("0x31")](n,(n=>{t.model[Yx("0x7f")]((t=>{n();const s="left"===o[Yx("0x3d")],x=i[Yx("0x48")](e),a=i[Yx("0x27")](x),c=s?a.first-1:a[Yx("0x63")]+1,l=x[0][Yx("0x1c")](Yx("0x25")),u=i.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Yx("0x46")](u)[Yx("0x7e")]((e=>t[Yx("0x29")](e[Yx("0x2f")])));r[Yx("0x6f")](d,"tableColumn")}))}))}for(const n of[Yx("0x2b"),Yx("0x84")]){const o=n[Yx("0x8")](11),s=o[Yx("0x4d")](),x=s[Yx("0x8")](0,3)+Yx("0x26"),a=Yx("0x25")+o,c=Yx("0x1d")+o,l="max"+o;r[Yx("0x31")](n,(()=>{t[Yx("0x5a")].change((t=>{const o=i.getSelectionAffectedTableCells(e),u=o[0][Yx("0x1c")](Yx("0x25"));let d;if(Yx("0x2b")==n){const t=i[Yx("0x4e")](o);d={startRow:t[Yx("0x39")],endRow:t[Yx("0x63")],includeAllSlots:!0}}else{const t=i.getColumnIndexes(o);d={startColumn:t[Yx("0x39")],endColumn:t[Yx("0x63")],includeAllSlots:!0}}const g=i[Yx("0x41")](u,d),f=Array[Yx("0x46")](g)[Yx("0x7e")]((({cell:t})=>t)),h=Qx(f[Yx("0x3a")]((t=>t[Yx("0x53")](x)))),m=Qx(f[Yx("0x3a")]((t=>!t[Yx("0x53")](x))))[Yx("0x7e")]((e=>t[Yx("0x29")](e))),p=r.markMultiRangeDeletion(m,a);if(p&&(Yx("0x32")==p.subType||Yx("0x14")==p[Yx("0x15")])){const e=this[Yx("0x62")](p);for(const n of h){const r=t[Yx("0x29")](n),o=i[Yx("0x76")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&p.addRange(r)}}}))}))}function o(n){const r=Array[Yx("0x46")](e[Yx("0x72")]()).map((t=>s.LiveRange[Yx("0x2a")](t)));t.model[Yx("0x7f")]((e=>{const i=e[Yx("0x30")];n=n[Yx("0x3a")]((t=>Yx("0x77")!=t[Yx("0x6d")][Yx("0x3")])),e[Yx("0x2e")](n),t[Yx("0x60")][Yx("0x21")](Yx("0x2b"))[Yx("0x7c")](),t[Yx("0x69")]("removeTableRow",{forceDefaultExecution:!0}),t.model[Yx("0x74")]((()=>{t[Yx("0x5a")].enqueueChange(i,(t=>{const e=r[Yx("0x3a")]((t=>Yx("0x77")!=t.root.rootName));e[Yx("0x2c")]>0&&t[Yx("0x2e")](e);for(const t of r)t[Yx("0x68")]()}))}))}))}function a(n){t[Yx("0x5a")][Yx("0x7f")]((r=>{const i=Array[Yx("0x46")](e[Yx("0x72")]())[Yx("0x7e")]((t=>s.LiveRange[Yx("0x2a")](t))),o=[];for(const t of n)for(const e of t[Yx("0x58")]({shallow:!0}))o[Yx("0x55")](e);for(const e of o)Yx("0x77")!=e[Yx("0x6d")][Yx("0x3")]&&(r[Yx("0x2e")](r[Yx("0x51")](e,0)),t.commands.get("removeTableColumn")[Yx("0x7c")](),t[Yx("0x69")](Yx("0x84"),{forceDefaultExecution:!0}));const x=i[Yx("0x3a")]((t=>Yx("0x77")!=t.root[Yx("0x3")]));x[Yx("0x2c")]>0&&r[Yx("0x2e")](x);for(const t of i)t[Yx("0x68")]()}))}function c(t,e){return e[Yx("0x40")]((e=>t[Yx("0xe")]((t=>t[Yx("0x42")][Yx("0x43")](e[Yx("0x49")])||e.end.isEqual(t[Yx("0x49")])))))}function l(t,e){return t.some((t=>e[Yx("0xe")]((e=>t[Yx("0x42")][Yx("0x64")](e[Yx("0x49")])))))}t[Yx("0x3f")][Yx("0x4f")].on(Yx("0x4a"),((t,e,n)=>{if(!n[Yx("0x6")][Yx("0x11")])return;const r=e[Yx("0xb")];if(!r)return;const i=n[Yx("0x66")][Yx("0x71")](r);function o(t){return Array[Yx("0x6a")](t)?t:[t]}i&&Yx("0x6e")===r[Yx("0x67")]&&(0,x.setHighlightHandling)(i,n[Yx("0x12")],((t,e,n)=>n[Yx("0x61")](o(e[Yx("0x3e")]),t)),((t,e,n)=>n[Yx("0x24")](o(e[Yx("0x3e")]),t)))}),{priority:"highest"}),r[Yx("0x70")][Yx("0x1f")]((t=>{if("insertion"!=t[Yx("0x7d")]&&Yx("0x5e")!=t[Yx("0x7d")])return;const e=t[Yx("0x22")]();if(null!=e&&e.is(Yx("0x59"),Yx("0x25"))){if("insertion"==t[Yx("0x7d")]){const e=t[Yx("0x58")]().filter((t=>t.is(Yx("0x5"))))[Yx("0x7e")]((t=>t[Yx("0x3f")]));if(e.length)return{type:Yx("0x28"),content:Jr(n,Yx("0x56"),Jr(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Yx("0x38")](" ")+'"'))}}if("deletion"==t[Yx("0x7d")]){const e=t[Yx("0x58")]().filter((t=>t.is("$textProxy"))).map((t=>t[Yx("0x3f")]));if(e[Yx("0x2c")])return{type:Yx("0x5e"),content:Jr(n,Yx("0x85"),Jr(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Yx("0x38")](" ")+'"'))}}}})),r[Yx("0x70")][Yx("0x1f")]((t=>{if(Yx("0x32")==t.subType){const e=t[Yx("0x58")]()[Yx("0x3a")]((t=>t.is(Yx("0x5"))))[Yx("0x7e")]((t=>t.data)),r=this[Yx("0x62")](t),i=r[Yx("0x83")]-r[Yx("0x65")]+1;if(Yx("0x28")==t[Yx("0x7d")])return e[Yx("0x2c")]?{type:Yx("0x28"),content:Jr(n,Yx("0x56"),Jr(n,Yx("0x80"),[i,'"'+e[Yx("0x38")](" ")+'"']))}:{type:Yx("0x28"),content:Jr(n,Yx("0x56"),Jr(n,Yx("0x19"),i))};if(Yx("0x5e")==t[Yx("0x7d")])return e[Yx("0x2c")]?{type:"deletion",content:Jr(n,Yx("0x85"),Jr(n,Yx("0x80"),[i,'"'+e[Yx("0x38")](" ")+'"']))}:{type:Yx("0x5e"),content:Jr(n,"*Remove:* %0",Jr(n,"ELEMENT_TABLE_ROW",i))}}if("tableColumn"==t[Yx("0x15")]){const e=t[Yx("0x58")]()[Yx("0x3a")]((t=>t.is(Yx("0x5"))))[Yx("0x7e")]((t=>t[Yx("0x3f")])),r=this._getSuggestionCoords(t),i=r.maxColumn-r[Yx("0x10")]+1;if(Yx("0x28")==t[Yx("0x7d")])return e[Yx("0x2c")]?{type:Yx("0x28"),content:Jr(n,Yx("0x56"),Jr(n,Yx("0x35"),[i,'"'+e[Yx("0x38")](" ")+'"']))}:{type:Yx("0x28"),content:Jr(n,Yx("0x56"),Jr(n,"ELEMENT_TABLE_COLUMN",i))};if(Yx("0x5e")==t.type)return e[Yx("0x2c")]?{type:"deletion",content:Jr(n,"*Remove:* %0",Jr(n,Yx("0x35"),[i,'"'+e[Yx("0x38")](" ")+'"']))}:{type:"deletion",content:Jr(n,Yx("0x85"),Jr(n,"ELEMENT_TABLE_COLUMN",i))}}})),r._suggestionFactory[Yx("0x34")]("insertion",Yx("0x32"),"discard",o),r[Yx("0x73")].registerCustomCallback(Yx("0x5e"),Yx("0x32"),Yx("0x4b"),o),r[Yx("0x73")][Yx("0x34")](Yx("0x28"),Yx("0x14"),"discard",a),r[Yx("0x73")][Yx("0x34")](Yx("0x5e"),Yx("0x14"),Yx("0x4b"),a),r[Yx("0x73")][Yx("0x34")](Yx("0x28"),"tableColumn",Yx("0x38"),c),r[Yx("0x73")].registerCustomCallback(Yx("0x5e"),Yx("0x14"),Yx("0x38"),c),r[Yx("0x73")][Yx("0x34")]("insertion","tableRow",Yx("0x38"),l),r[Yx("0x73")].registerCustomCallback("deletion","tableRow","join",l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Yx("0x78")],e=t.model[Yx("0x3b")][Yx("0x81")];return(n,r)=>{t[Yx("0x5a")][Yx("0x7f")]((i=>{const{commandName:o,commandParams:x}=r;let a=n[0][Yx("0x42")][Yx("0xf")];x&&x[0]&&!1===x[0][Yx("0x0")]&&(a=n[0][Yx("0x49")][Yx("0x4")]);const c=i[Yx("0x23")](a);if(Yx("0x77")==c[Yx("0x6d")][Yx("0x3")])return;const l=Array.from(e[Yx("0x72")]())[Yx("0x7e")]((t=>s.LiveRange[Yx("0x2a")](t)));i[Yx("0x2e")](c),t.commands[Yx("0x21")](o)[Yx("0x7c")](),x[Yx("0x55")]({forceDefaultExecution:!0}),t[Yx("0x69")](o,...x);const u=l[Yx("0x3a")]((t=>Yx("0x77")!=t.root[Yx("0x3")]));u[Yx("0x2c")]>0&&i[Yx("0x2e")](u);for(const t of l)t[Yx("0x68")]()}))}}_getCoordsForCells(t){const e=this[Yx("0x78")].plugins[Yx("0x21")](Yx("0x45"));let n=Number[Yx("0xa")],r=Number.MIN_SAFE_INTEGER,i=Number[Yx("0xa")],o=Number[Yx("0x79")];for(const s of t){if(Yx("0x77")==s.root.rootName)continue;const{row:t,column:x}=e[Yx("0x76")](s),a=s[Yx("0x53")](Yx("0xd"))?s[Yx("0x33")](Yx("0xd"))-1:0,c=s[Yx("0x53")]("colspan")?s[Yx("0x33")](Yx("0x6c"))-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}}[Yx("0x37")](){const t=this[Yx("0x78")],e=t[Yx("0x9")][Yx("0x21")](Yx("0x54")),n=t[Yx("0x9")][Yx("0x21")](Yx("0x45"));t[Yx("0x5a")].document.on(Yx("0x3c"),(()=>{const n=Array[Yx("0x46")](t[Yx("0x5a")][Yx("0x3b")].differ[Yx("0x50")]());for(const{name:t,data:r}of n){const{group:n,id:i,subType:o}=e[Yx("0x75")](t);if("suggestion"!=n)continue;if(null!=r[Yx("0x20")])continue;const s=e[Yx("0x5b")](i);this[Yx("0x36")][Yx("0x82")](o)&&this[Yx("0x2")][Yx("0x57")](s)}}),{priority:"low"});const r=(t,e)=>{let r=!1;const i=e.createRangeOn(t),o=t[Yx("0x1c")](Yx("0x25")),s=n[Yx("0x76")](t);for(const e of this[Yx("0x2")]){const n=e.subType,x=n[Yx("0x44")](Yx("0x2d")),a=n.substr(x?10:5),c=a.toLowerCase(),l=c[Yx("0x8")](0,3)+Yx("0x26"),u="min"+a,d="max"+a;if(!e.isInContent)continue;if(o!=e[Yx("0x5f")]().start.findAncestor(Yx("0x25")))continue;if(e[Yx("0x86")](i))continue;const g=t[Yx("0x53")](l)?t[Yx("0x33")](l)-1:0,f=this[Yx("0x62")](e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e[Yx("0x1a")](i),r=!0)}return r};t[Yx("0x5a")].document[Yx("0x47")]((e=>{let n=!1;for(const i of t[Yx("0x5a")][Yx("0x3b")][Yx("0x7a")][Yx("0x17")]())if(Yx("0xc")==i[Yx("0x7d")])if(Yx("0x32")==i[Yx("0x67")])for(const t of i[Yx("0x6b")][Yx("0x4")][Yx("0x1")]())n=n||r(t,e);else Yx("0x6e")==i.name&&(n=n||r(i[Yx("0x6b")][Yx("0x4")],e));return n}))}[Yx("0x62")](t){return this[Yx("0x87")](t[Yx("0x72")]()[Yx("0x7e")]((t=>t[Yx("0x49")][Yx("0x4")])))}}function Qx(t){return Array[Yx("0x46")](new Set(t).values())}const ta=["format","getFirstPosition","rootName","mergeTableCellUp","afterInit","getRanges","return","isEnabled","value","size","createRangeOn","_isForcedDefaultExecutionBlock","plugins","_tablePostFixingSubtypes","low","_suggestionFactory","subType","change","findAncestor","type","detach","splitTableCellHorizontally","createTableWalker","commands","registerCustomCallback","markBlockFormat","model","author","accept","execute","stop","add","find","_areMergableCells","trackChanges","editor","mergeTableCellDown","isInContent","*Merge cells*","length","commandName","getSelectionAffectedTableCells","TableUtils","splitTableCellVertically","mergeTableCellLeft","map","table","_acceptFormatSuggestionCallbackFactory","from","registerDescriptionCallback","*Split cell:* horizontally","set:isEnabled","root","push","containsRange","setSelection","enableCommand","element","cell","document","get","formatBlock","$graveyard","fromRange","markMultiRangeBlockFormat","insertion","_areSelectedCellsMergable","requires","_descriptionFactory","selection","TrackChangesEditing","mergeTableCells","mergeTableCellRight","getAncestors"];var ea,na;ea=ta,na=125,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("0x10")](){return[Jx]}[ra("0x1b")](){const t=this[ra("0x3a")],e=t[ra("0x31")][ra("0x8")][ra("0x12")],n=t.locale;if(!t[ra("0x23")].has("TableEditing"))return;const r=t[ra("0x23")].get(ra("0x13")),i=t[ra("0x23")][ra("0x9")]("TableUtils"),o=t[ra("0x23")].get(Jx);o[ra("0x24")][ra("0x2")](ra("0x14")),r.enableCommand(ra("0x14"),(()=>{const e=i[ra("0x40")](t[ra("0x31")].document[ra("0x12")]);t[ra("0x31")][ra("0x28")]((()=>{r[ra("0xd")](e,{commandName:ra("0x14"),commandParams:[]},[],ra("0x14"))}))})),t[ra("0x2e")][ra("0x9")]("mergeTableCells").on(ra("0x34"),((e,n)=>{t.commands[ra("0x9")](ra("0x39")).value&&(n[ra("0x3e")]>0&&n[n[ra("0x3e")]-1]&&n[n[ra("0x3e")]-1].forceDefaultExecution||r[ra("0x22")]||this[ra("0xf")]()||e[ra("0x35")]())}),{priority:"highest"});for(const e of[ra("0x1a"),ra("0x15"),ra("0x3b"),ra("0x43")]){const n=t[ra("0x2e")][ra("0x9")](e);r[ra("0x5")](e,(()=>{const e=t[ra("0x31")].document.selection[ra("0x18")]()[ra("0x16")]()[ra("0x37")]((t=>t.is("element","tableCell"))),i=n[ra("0x1f")];t.model[ra("0x28")]((()=>{r[ra("0xd")]([e,i],{commandName:ra("0x14"),commandParams:[]},[],ra("0x14"))}))}))}for(const e of["splitTableCellVertically",ra("0x2c")]){const n=t[ra("0x2e")][ra("0x9")](e);r[ra("0x5")](e,(()=>{const o=i[ra("0x40")](t[ra("0x31")][ra("0x8")][ra("0x12")])[0],s=o[ra("0x29")](ra("0x45")),{column:x,row:a}=i.getCellLocation(o);let c=[];if("horizontally"==n.direction){const t=i[ra("0x2d")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ra("0x47")](t)[ra("0x44")]((t=>t[ra("0x7")]))}else{const t=i.createTableWalker(s,{column:x,includeAllSlots:!0});c=Array[ra("0x47")](t)[ra("0x44")]((t=>t[ra("0x7")]))}t[ra("0x31")][ra("0x28")]((t=>{r[ra("0x30")](t[ra("0x21")](o),{commandName:e,commandParams:[]},c,e)}))}))}r[ra("0x11")][ra("0x48")]((t=>{if(ra("0xa")!=t[ra("0x2a")]&&"formatInline"!=t[ra("0x2a")])return;const{data:e}=t;return e&&ra("0x14")==e[ra("0x3f")]?{type:ra("0x17"),content:Jr(n,ra("0x3d"))}:void 0})),r[ra("0x11")][ra("0x48")]((t=>{if("formatBlock"!=t[ra("0x2a")]&&"formatInline"!=t[ra("0x2a")])return;const{data:e}=t;return e?ra("0x42")==e[ra("0x3f")]?{type:ra("0x17"),content:Jr(n,"*Split cell:* vertically")}:ra("0x2c")==e[ra("0x3f")]?{type:ra("0x17"),content:Jr(n,ra("0x49"))}:void 0:void 0}));const x=o[ra("0x46")]();for(const t of["mergeTableCellUp",ra("0x15"),ra("0x3b"),ra("0x43")])r[ra("0x26")].registerCustomCallback("formatBlock",t,ra("0x33"),x);for(const t of[ra("0x42"),ra("0x2c")])r[ra("0x26")][ra("0x2f")](ra("0xa"),t,ra("0x33"),x);r[ra("0x26")][ra("0x2f")](ra("0xa"),"mergeTableCells",ra("0x33"),(n=>{t[ra("0x31")][ra("0x28")]((r=>{const i=Array[ra("0x47")](e[ra("0x1c")]())[ra("0x44")]((t=>s.LiveRange[ra("0xc")](t)));r[ra("0x4")](n),t[ra("0x2e")][ra("0x9")](ra("0x14")).refresh(),t.execute(ra("0x14"),{forceDefaultExecution:!0});const o=i.filter((t=>ra("0xb")!=t[ra("0x1")][ra("0x19")]));o[ra("0x3e")]>0&&r[ra("0x4")](o);for(const t of i)t[ra("0x2b")]()}))}));for(const e of[ra("0x1a"),ra("0x3b"),ra("0x43"),ra("0x15")]){const n=t.commands.get(e);n.on(ra("0x0"),((e,r,i)=>{if(i){const r=t.model[ra("0x8")][ra("0x12")][ra("0x18")]()[ra("0x16")]()[ra("0x37")]((t=>t.is(ra("0x6"),"tableCell")));this._areMergableCells(n[ra("0x1f")],r)||(e[ra("0x1d")]=!1,e[ra("0x35")]())}}),{priority:ra("0x25")})}}[ra("0xf")](){const t=this[ra("0x3a")][ra("0x2e")][ra("0x9")](ra("0x14")),e=this[ra("0x3a")][ra("0x23")][ra("0x9")](ra("0x41"));if(!t[ra("0x1e")])return!1;const n=e[ra("0x40")](this.editor[ra("0x31")].document.selection);for(const t of n)for(const e of n)if(t!=e&&!this[ra("0x38")](t,e))return!1;return!0}[ra("0x38")](t,e){const n=this[ra("0x3a")][ra("0x23")][ra("0x9")](ra("0x13")),r=this[ra("0x3a")][ra("0x31")][ra("0x21")](t),i=this[ra("0x3a")][ra("0x31")][ra("0x21")](e),o=new Set,s=new Set;for(const t of n.getSuggestions())if((ra("0xe")==t.type||"deletion"==t[ra("0x2a")]||"mergeTableCells"==t[ra("0x27")])&&t[ra("0x3c")])for(const e of t[ra("0x1c")]())e.containsRange(r,!0)&&o[ra("0x36")](t[ra("0x2a")]+":"+t[ra("0x32")].id),e[ra("0x3")](i,!0)&&s.add(t[ra("0x2a")]+":"+t.author.id);if(o.size!=s[ra("0x20")])return!1;for(const t of o)if(!s.has(t))return!1;return!0}}const oa=["ck-suggestion-marker-","commandName","markerName","data","highest","commandParams","setTableColumnHeader","parent","removeClass","downcastDispatcher","_enableDefaultAttributesIntegration","start","locale","format","FORMAT_HEADER_ROW","markerRange","createTableWalker","removeAttribute","setTableRowHeader","formatBlock","nodeAfter","_suggestionFactory","mapper","stop","_handleLegacySuggestions","TrackChangesEditing","FORMAT_HEADER_COLUMN","registerDescriptionCallback","ck-suggestion-marker--active","addMarker:suggestion","consume","forceValue","registerCustomCallback","nodeBefore","registerAttributeLabel","editing","requires","includes","item","headingColumns","headingRows","toViewElement","markerNameToElements","TableUtils","getCellLocation","_registerLegacyDescription","get","FORMAT_REGULAR_COLUMN","writer","FORMAT_REGULAR_ROW","_splitMarkerName","addClass","setAttribute","plugins","getSuggestion","consumable","activeMarkers","cell","_descriptionFactory","accept","editor","type","unbindElementFromMarkerName","data-suggestion"];var sa,xa;sa=oa,xa=110,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("0x36")](){return[Jx]}afterInit(){const t=this[aa("0xe")];if(!t[aa("0x7")].has("TableEditing"))return;const e=t[aa("0x1e")],n=t[aa("0x7")][aa("0x0")](aa("0x2b"));n[aa("0x1c")](aa("0x24"),[],["headingRows"]),n._enableDefaultAttributesIntegration("setTableColumnHeader",[],[aa("0x39")]),n[aa("0xc")][aa("0x34")](aa("0x3a"),Jr(e,aa("0x20"))),n._descriptionFactory[aa("0x34")](aa("0x39"),Jr(e,aa("0x2c"))),this[aa("0x2a")]()}_handleLegacySuggestions(){const t=this[aa("0xe")][aa("0x7")].get("TrackChangesEditing"),e=this[aa("0xe")][aa("0x7")][aa("0x0")](aa("0x3d")),n=this.editor[aa("0x7")][aa("0x0")](Jx)._acceptFormatSuggestionCallbackFactory();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(i,o,s)=>{const{type:x,id:a}=t[aa("0x4")](o[aa("0x14")]),c=t[aa("0x8")](a),l=c[aa("0x15")];if(aa("0x25")!=c[aa("0xf")]||!l||aa("0x18")!=l[aa("0x13")])return;if(o[aa("0x38")])return void i[aa("0x29")]();if(!s[aa("0x9")][aa("0x30")](o[aa("0x21")],i.name))return;const u=o[aa("0x21")][aa("0x1d")][aa("0x26")],d=o[aa("0x21")].end[aa("0x33")],g=u[aa("0x19")].parent,{column:f}=e[aa("0x3e")](u),{column:h}=e[aa("0x3e")](d);for(let i=f;i<=h;i++){const c=e[aa("0x22")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[aa("0xb")],c=s[aa("0x28")][aa("0x3b")](i);s[aa("0x2")][aa("0x5")](aa("0x12")+x,c),r&&s[aa("0x2")][aa("0x6")](aa("0x11"),a,c),s[aa("0x28")].bindElementToMarker(c,o[aa("0x14")]),n&&(t[aa("0xa")][aa("0x37")](o[aa("0x14")])?s[aa("0x2")][aa("0x5")](aa("0x2e"),c):s[aa("0x2")].removeClass(aa("0x2e"),c))}}}}t._suggestionFactory.registerCustomCallback(aa("0x25"),aa("0x24"),aa("0xd"),n),t[aa("0x27")][aa("0x32")](aa("0x25"),aa("0x18"),aa("0xd"),n),this.editor.editing[aa("0x1b")].on(aa("0x2f"),r(),{priority:"highest"}),this[aa("0xe")][aa("0x15")][aa("0x1b")].on(aa("0x2f"),((t,e,n)=>{n.options.showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),this[aa("0xe")][aa("0x35")][aa("0x1b")].on("removeMarker:suggestion",((e,n,r)=>{const{type:i,id:o}=t[aa("0x4")](n[aa("0x14")]),s=t[aa("0x8")](o),x=s[aa("0x15")];if(aa("0x25")!=s.type||!x||"setTableColumnHeader"!=x[aa("0x13")])return;const a=r.mapper[aa("0x3c")](n[aa("0x14")]);if(a)for(const t of a)r.writer[aa("0x1a")](aa("0x12")+i,t),r[aa("0x2")][aa("0x1a")]("ck-suggestion-marker--active",t),r.writer[aa("0x23")](aa("0x11"),t),r[aa("0x28")][aa("0x10")](t,n[aa("0x14")])}),{priority:aa("0x16")}),this[aa("0x3f")]()}[aa("0x3f")](){const t=this[aa("0xe")],e=t[aa("0x1e")];function n(t){return{type:aa("0x1f"),content:Jr(e,"*Format:* %0",t)}}t[aa("0x7")].get(aa("0x2b"))[aa("0xc")][aa("0x2d")]((t=>{if(aa("0x25")!=t[aa("0xf")])return;const{data:r}=t;if(r){if(aa("0x24")==r.commandName){const t=r[aa("0x17")][0][aa("0x31")];return n(Jr(e,aa(t?"0x20":"0x3")))}if(aa("0x18")==r[aa("0x13")]){const t=r[aa("0x17")][0][aa("0x31")];return n(Jr(e,aa(t?"0x2c":"0x1")))}}}))}}const la=["isEmpty","markerAttributes","locale","column","stop","updateMarker","tablePasteRow","getRows","commands","containsRange","columnInsertionIndexes","document","tablePasteColumn","plugins","getSuggestionCallback","suggestionUnloaded","wrap","createRangeOn","startsWith","isInContent","return","has","tablePasteChainId","table","content","removeMarkers","markMultiRangeBlockFormat","markers","_tablePostFixingSubtypes","map","getColumnIndexes","registerCustomCallback","activeMarkers","createTableWalker","getSelectionAffectedTableCells","createRange","tableCellVerticalAlignment","nextSibling","createRangeIn","tableCellPadding","_descriptionFactory","getChangedMarkers","tablePasteCell","removeMarker","end","model","row","previousSibling","listenTo","trackChanges","unwrap","nodeAfter","options","subType","getTableIfOnlyTableInContent","reduce","getMarkers","from","previous","author","attributes","hasSuggestion","setAttributes","getChildren","getRange","push","isEqual","find","forceDefaultExecution","cells","_createdBatches","deletionRanges","getItems","tableCell","conversion","insertion","formatBlock","suggestion-td","removeColumns","oldRange","tableCellHorizontalAlignment","suggestionLoaded","remove","insert","change","for","tableCellBorderStyle","markerToHighlight","registerPostFixer","*Replace table cells*","endColumn","_suggestionFactory","position","editor","get","ck-suggestion-marker--active","markMultiRangeInsertion","markMultiRangeDeletion","name","differ","dataDowncast","fromEntries","filter","deletion","rowInsertionRanges","move","editing","suggestion","columnInsertionRanges","TableClipboard","includes","fill","insertContent","value","showSuggestionHighlights","requires","getRanges","insertColumns","removeRows","getContainedElement","tableCellBorderWidth","_getCoordsForCells","newRange","documentSelection","endRow","low","add","getChild","getRowIndexes","createElement","paragraph","length","discard","getAttributes","first","join","tablePaste","suggestion:formatBlock:tablePasteCell","accept","ck-suggestion-marker-insertion","getChanges","createPositionBefore","redo","ck-suggestion-marker","some","tableCellBorderColor","element","tableCellSuggestion","Users","_splitMarkerName","next","last","register","set","findAncestor","high","insertRows","getSuggestions","cell","columns","markerName"];var ua,da;ua=la,da=234,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0x2f"),ga("0x48"),ga("0xd"),ga("0x7"),ga("0x7c"),"tableCellBackgroundColor",ga("0x7f")],ha=Object[ga("0x1c")](fa.map((t=>[t,null])));class ma extends t.Plugin{static get[ga("0x2a")](){return[Jx]}afterInit(){const t=this[ga("0x14")];if(!t[ga("0x65")].has(ga("0x24")))return;const n=t[ga("0x65")][ga("0x15")]("TrackChangesEditing"),r=t.plugins[ga("0x15")]("TableUtils"),i=t[ga("0x65")][ga("0x15")](Jx),o=t[ga("0x65")][ga("0x15")]("TableClipboard");i[ga("0x74")][ga("0x99")](ga("0x5e"),"tablePasteColumn"),t[ga("0x85")].schema[ga("0x4f")](ga("0x4a"),{allowIn:"tableCell",allowContentOf:ga("0x0"),isLimit:!0}),t.conversion.elementToElement({model:ga("0x4a"),view:"suggestion-td"});let s=null;t[ga("0x85")].on(ga("0x27"),((i,x)=>{const[a,c]=x,l=x[x[ga("0x3a")]-1];l&&l[ga("0x9c")]||n._isForcedDefaultExecutionBlock||this[ga("0x14")].commands.get(ga("0x89"))[ga("0x28")]&&function(t,e,n,r,i){if(e&&!e.is(ga("0x32")))return!1;const o=i[ga("0x8e")](t,n);if(!o||!ba(o,void 0,r))return!1;const s=r[ga("0x7a")](n.document.selection);if(!s[ga("0x3a")])return!1;const x=s[0][ga("0x51")](ga("0x6f")),a=r[ga("0x37")](s),c=r[ga("0x76")](s),l={startRow:a[ga("0x3d")],endRow:a[ga("0x4e")],startColumn:c[ga("0x3d")],endColumn:c[ga("0x4e")]};return 1==s[ga("0x3a")]&&(l[ga("0x33")]+=r[ga("0x5f")](o)-1,l[ga("0x11")]+=r.getColumns(o)-1),ba(x,l,r)}(a,c,t[ga("0x85")],r,o)&&(i[ga("0x5c")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[ga("0xb")]((()=>{t[ga("0x85")][ga("0x27")](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.length&&n[ga("0x17")](i,"tablePasteRow",{tablePasteChainId:r}),o[ga("0x3a")]&&n[ga("0x17")](o,ga("0x64"),{tablePasteChainId:r}),a[ga("0x3a")]&&n.markMultiRangeInsertion(a,ga("0x3f"),{tablePasteChainId:r,skipNestingCheck:!0}),c[ga("0x3a")]&&n[ga("0x18")](c,ga("0x3f"),{tablePasteChainId:r,skipNestingCheck:!0});const u=n[ga("0x72")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ga("0x82"),{tablePasteChainId:r});if(u){const e=u[ga("0x90")](),n=[];for(const{element:r,attributes:i}of l){if(!i)continue;const o=t[ga("0x85")][ga("0x69")](r),s=e[ga("0x9b")]((t=>t[ga("0x98")]()[ga("0x9a")](o)));s&&n.push([s[ga("0x19")],i])}n[ga("0x3a")]&&u.setAttribute(ga("0x59"),Object[ga("0x1c")](n))}s=null})))}),{priority:e.priorities[ga("0x52")]+10}),t[ga("0x65")][ga("0x15")](ga("0x24")).on("_replaceTableSlotCell",((t,e)=>{const[n,r,,i]=e;if(!s)return;t[ga("0x5c")]();const o=n[ga("0x55")],x=r,a=pa(o),c=pa(x);t[ga("0x6c")]=o;let l=null,u=null;if(c||a)if(a&&!c){i[ga("0x9")](o[ga("0x36")](0));for(const t of Array[ga("0x91")](x.getChildren()))i.insert(t,o,ga("0x84"));const t=s.rowInsertionIndexes[ga("0x25")](n[ga("0x86")]),e=s.columnInsertionIndexes.includes(n[ga("0x5b")]);t||e||(l=i[ga("0x7e")](o))}else c&&!a&&(u=i.createRangeIn(o));else{const t=i.createElement(ga("0x4a")),e=i[ga("0x38")]("tableCellSuggestion");i[ga("0x68")](i[ga("0x7e")](o),e),i[ga("0xa")](t,o,0);for(const e of Array[ga("0x91")](x[ga("0x97")]()))i.insert(e,t,ga("0x84"));l=i.createRangeOn(t),u=i[ga("0x69")](e)}const d=Array[ga("0x91")](x[ga("0x3c")]()).filter((([t])=>fa[ga("0x25")](t)));s.cells[ga("0x99")]({element:o,attributes:d.length?Object[ga("0x1c")](d):null}),l&&s.insertionRanges[ga("0x99")](l),u&&s[ga("0x9f")][ga("0x99")](u)}),{priority:ga("0x52")}),r.on(ga("0x2c"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0x56")]||1;s[ga("0x62")]=new Array(a)[ga("0x26")](x)[ga("0x75")](((t,e)=>t+e));for(const{cell:e}of r[ga("0x79")](i,{startColumn:x,endColumn:x+a-1}))s[ga("0x23")][ga("0x99")](t[ga("0x85")][ga("0x69")](e))}),{priority:"low"}),r.on(ga("0x53"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o.rows||1;s.rowInsertionIndexes=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of r[ga("0x79")](i,{startRow:x,endRow:x+a-1}))s[ga("0x1f")].push(t.model[ga("0x69")](e))}),{priority:ga("0x34")}),n[ga("0x80")].registerDescriptionCallback((e=>{if(e[ga("0x8d")]&&e[ga("0x8d")][ga("0x6a")](ga("0x3f")))return e.previous?{}:{type:ga("0x2"),content:Jr(t[ga("0x5a")],ga("0x10"))}}));const x=()=>!1;for(const t of["tablePaste","tablePasteColumn",ga("0x5e"),ga("0x82")])n[ga("0x12")][ga("0x77")](ga("0x2"),t,ga("0x3e"),x),n[ga("0x12")].registerCustomCallback(ga("0x1e"),t,ga("0x3e"),x),n[ga("0x12")].registerCustomCallback(ga("0x3"),t,ga("0x3e"),x);n._suggestionFactory[ga("0x77")]("formatBlock",ga("0x82"),ga("0x3b"),x),n[ga("0x12")][ga("0x77")](ga("0x3"),ga("0x82"),ga("0x41"),((e,n,r)=>{const i=e[ga("0x75")]((t=>t.getContainedElement()))[ga("0x1d")]((t=>t)),o=new Map(i[ga("0x75")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ga("0x9d")])e&&o.set(t,e);else if(r&&r[ga("0x59")])for(const[e,n]of Object.entries(r[ga("0x59")])){const r=t[ga("0x85")][ga("0x73")][ga("0x15")](e),i=r?r[ga("0x98")]()[ga("0x2e")]():null;i&&o[ga("0x50")](i,n)}t.model[ga("0xb")]((t=>{for(const[e,n]of o)t[ga("0x96")]({...ha,...n},e)}))}));const a=(e,r)=>{n[ga("0x12")][ga("0x77")](e,"tablePaste",r,((i,o,s)=>{t[ga("0x85")][ga("0xb")]((t=>{const x=[];for(const t of i){const e=t.start[ga("0x8b")];e.is(ga("0x49"),ga("0x4a"))&&x[ga("0x99")](e)}n[ga("0x12")][ga("0x66")](e,null,r)(i,o,s);for(const e of x)"$graveyard"!=e.root.rootName&&t.unwrap(e)}))}))};a(ga("0x2"),ga("0x41")),a(ga("0x2"),ga("0x3b")),a(ga("0x1e"),"accept"),a(ga("0x1e"),ga("0x3b")),n._suggestionFactory[ga("0x77")](ga("0x2"),ga("0x5e"),ga("0x3b"),(t=>{const e=t.map((t=>t[ga("0x2e")]())),n=e[0][ga("0x51")](ga("0x6f")),{minRow:o,maxRow:s}=i[ga("0x30")](e);r[ga("0x2d")](n,{at:o,rows:s-o+1})})),n[ga("0x12")][ga("0x77")]("insertion",ga("0x64"),ga("0x3b"),(t=>{const e=t[ga("0x75")]((t=>t.getContainedElement())),n=e[0][ga("0x51")](ga("0x6f")),{minColumn:o,maxColumn:s}=i._getCoordsForCells(e);r[ga("0x5")](n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e[ga("0x8d")]||!e[ga("0x8d")][ga("0x6a")](ga("0x3f")))return;const r=e[ga("0x94")][ga("0x6e")],i=n[ga("0x54")]()[ga("0x1d")]((t=>t[ga("0x6b")]&&t[ga("0x94")]&&t[ga("0x94")][ga("0x6e")]==r));i[ga("0x3a")]&&e.getAllAdjacentSuggestions()[ga("0x3a")]!=i[ga("0x3a")]&&i[ga("0x8f")](((t,e)=>(t[ga("0x4d")]=e,e[ga("0x92")]=t,e)))};function l(t,e=!0){const{id:r}=n[ga("0x4c")](t[ga("0x57")]),i=[ga("0x46"),ga("0x42")],o=n[ga("0x78")][ga("0x25")](t[ga("0x57")]);return o&&i[ga("0x99")](ga("0x16")),{classes:i,attributes:{"data-suggestion":r},priority:o&&e?3010:3e3}}n.on(ga("0x8"),c,{priority:ga("0x52")}),n.on(ga("0x67"),c,{priority:ga("0x52")}),t[ga("0x85")][ga("0x63")][ga("0xf")]((()=>{let e=!1;const r=Array[ga("0x91")](t[ga("0x85")][ga("0x63")][ga("0x1a")].getChangedMarkers());for(const{name:i,data:o}of r){const{group:r,type:s,id:x}=n[ga("0x4c")](i);if(ga("0x22")!=r||ga("0x1e")!=s||o[ga("0x6")])continue;if(!n[ga("0x95")](x))continue;const a=n.getSuggestion(x)[ga("0x2b")](),c=t.plugins[ga("0x15")](ga("0x4b")).me;for(const t of n[ga("0x54")]())if(t[ga("0x6b")]&&t[ga("0x93")]==c&&"formatBlock"==t.type&&"tablePasteCell"==t.subType&&t[ga("0x2b")]().every((t=>a[ga("0x47")]((e=>e[ga("0x61")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[ga("0x6b")]&&(n[ga("0x3b")](),e=!0)}return e})),t[ga("0x85")][ga("0x63")][ga("0xf")]((e=>{const r=t[ga("0x60")][ga("0x15")](ga("0x45"));if(!r||!r[ga("0x9e")][ga("0x6d")](e.batch))return!1;let i=!1;const o=t[ga("0x65")][ga("0x15")]("Users").me,s=t[ga("0x85")][ga("0x63")][ga("0x1a")][ga("0x43")](),x=Array.from(t[ga("0x85")][ga("0x63")][ga("0x1a")][ga("0x81")]()).filter((({name:t,data:e})=>{const{group:r,subType:i,authorId:s}=n._splitMarkerName(t);return ga("0x22")==r&&ga("0x3f")==i&&s==o.id&&!e.oldRange}));for(const t of s){if(ga("0xa")!=t.type||ga("0x4a")!=t[ga("0x19")]||1!=t[ga("0x3a")])continue;const n=e[ga("0x7b")](t.position,t[ga("0x13")].getShiftedBy(1));if(!x[ga("0x9b")]((({data:t})=>t[ga("0x31")][ga("0x9a")](n))))for(const{name:t,data:r}of x)if(n.containsRange(r[ga("0x31")])){e[ga("0x5d")](t,{range:n}),i=!0;break}}return i})),t[ga("0x85")][ga("0x63")][ga("0xf")]((e=>{let r=!1;const i=t.plugins.get(ga("0x4b")).me,o=n[ga("0x54")]()[ga("0x1d")]((t=>t[ga("0x6b")]&&t[ga("0x93")]==i)),s=new Set,x=new Set;for(const t of o)if(ga("0x3f")==t.subType)for(const e of t[ga("0x90")]()){const n=e[ga("0x98")]()[ga("0x2e")]();if(n)if(n.is(ga("0x49"),ga("0x4a"))&&pa(n)){t[ga("0x83")](e[ga("0x19")]),s.add(n),r=!0;const i=n[ga("0x7d")],o=n[ga("0x87")],a=i&&i.is("element","tableCellSuggestion"),c=o&&o.is(ga("0x49"),ga("0x4a"));a&&!s[ga("0x6d")](i)&&x[ga("0x35")](i),c&&!s[ga("0x6d")](o)&&x[ga("0x35")](o)}else n.is(ga("0x49"),"paragraph")&&n[ga("0x58")]&&(t[ga("0x83")](e[ga("0x19")]),r=!0)}else if("tablePasteCell"==t[ga("0x8d")]){if(!t.attributes||!t[ga("0x94")][ga("0x6e")])continue;const e=t[ga("0x94")][ga("0x59")];if(e&&Object.keys(e)[ga("0x3a")])continue;const n=t.attributes.tablePasteChainId;let i=!0,s=!0;for(const e of o)if(e[ga("0x8d")]&&e.subType[ga("0x6a")](ga("0x3f"))){if(!e.attributes[ga("0x6e")]){s=!1;break}if(e.id!=t.id&&e[ga("0x94")][ga("0x6e")]==n){i=!1;break}}s&&i&&(t[ga("0x71")](),r=!0)}for(const t of s)e[ga("0x9")](t);for(const t of x)e[ga("0x8a")](t);return r})),t[ga("0x1")][ga("0xc")]("editingDowncast")[ga("0xe")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:ga("0x52")}),t[ga("0x1")][ga("0xc")](ga("0x1b"))[ga("0xe")]({model:ga("0x40"),view:(t,e)=>e[ga("0x8c")][ga("0x29")]?l(t,!1):null,converterPriority:ga("0x52")});const u=t[ga("0x21")].view;this[ga("0x88")](u.document,"clipboardOutput",((t,e)=>{const n=[];for(const t of u[ga("0x7e")](e[ga("0x70")])[ga("0xa0")]())t.is(ga("0x49"),ga("0x4"))&&n[ga("0x99")](t);u[ga("0xb")]((t=>{for(const e of n)t[ga("0x20")](t[ga("0x7e")](e),t[ga("0x44")](e)),t[ga("0x9")](e)}))}))}}function pa(t){if(t[ga("0x58")])return!0;const e=t[ga("0x36")](0);return e.is("element",ga("0x39"))&&e[ga("0x58")]}function ba(t,e={},n){for(const{isAnchor:r,cellHeight:i,cellWidth:o}of n[ga("0x79")](t,{includeAllSlots:!0,...e}))if(!r||1!=i||1!=o)return!1;return!0}const Ea=["getAttribute","accept","handleResizeTableWidthCommand","formatInline","_descriptionFactory","change","selection","TrackChangesEditing","registerCustomCallback","type","has","tableWidth","columnWidths","bind","editor","get","*Format:* resize table","locale","enableCommand","author","document","getSuggestions","resizeTableWidth","formatBlock","TableColumnResizeEditing","discard","_suggestionFactory","Users","plugins","resizeTable","handleSuggestionDescription","model","registerDescriptionCallback","subType","markBlockFormat","table","getSuggestionCallback"];var _a,Ta;_a=Ea,Ta=238,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const ya=function(t,e){return Ea[t-=0]};class Ca extends t.Plugin{afterInit(){if(!this.editor.plugins[ya("0x1f")](ya("0x8")))return;const t=this.editor[ya("0xc")][ya("0x24")]("TrackChangesEditing");t[ya("0x2")](ya("0x6"),this[ya("0x17")][ya("0x22")](this)),t[ya("0xa")][ya("0x1d")](ya("0x7"),ya("0xd"),ya("0x16"),t[ya("0xa")][ya("0x14")](ya("0x7"),null,ya("0x9"))),t[ya("0xa")][ya("0x1d")](ya("0x7"),ya("0xd"),ya("0x9"),t[ya("0xa")][ya("0x14")](ya("0x7"),null,"accept")),t[ya("0x19")][ya("0x10")](this.handleSuggestionDescription[ya("0x22")](this))}[ya("0x17")](t,e){const n=this[ya("0x23")].plugins[ya("0x24")](ya("0x1c")),r=this[ya("0x23")].plugins.get(ya("0x8")),i=e[ya("0x13")]||this[ya("0x23")][ya("0xf")][ya("0x4")][ya("0x1b")].getSelectedElement();this.editor[ya("0xf")][ya("0x1a")]((()=>{const o=r.getColumnGroupElement(i);let s=o?r.getTableColumnsWidths(o):null,x=i[ya("0x15")](ya("0x20"))||null;const a=e[ya("0x20")]||x,c=e[ya("0x21")]||s,l=this[ya("0x23")].plugins[ya("0x24")](ya("0xb")).me;for(const t of n[ya("0x5")]()){const e=t.getContainedElement();if(ya("0xd")===t[ya("0x11")]&&e===i){t[ya("0x3")]!==l&&t[ya("0x9")]();const e=t.data.commandParams;x=e[0][ya("0x20")],s=e[0][ya("0x21")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[ya("0x12")](i,{commandName:ya("0x6"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:ya("0xd")},[],"resizeTable")}))}[ya("0xe")](t){if("formatBlock"!=t.type&&ya("0x18")!=t[ya("0x1e")])return;const{data:e}=t;if(e&&ya("0xd")===e.formatGroupId){const t=ya("0x0");return{type:"format",content:Jr(this[ya("0x23")][ya("0x1")],t)}}}}const Aa=["afterInit","enableCommand","insertTemplate","TrackChangesEditing","plugins","get"];var ka,Ia;ka=Aa,Ia=387,function(t){for(;--t;)ka.push(ka.shift())}(++Ia);const Sa=function(t,e){return Aa[t-=0]};class Ra extends t.Plugin{[Sa("0x3")](){const t=this.editor;t[Sa("0x1")].has("Template")&&t[Sa("0x1")][Sa("0x2")](Sa("0x0"))[Sa("0x4")](Sa("0x5"))}}const va=["locale","ELEMENT_TABLE_OF_CONTENTS","tableOfContents","afterInit","registerElementLabel","TrackChangesEditing","insertTableOfContents","editor","plugins","_descriptionFactory","commands","get"];var Na,La;Na=va,La=201,function(t){for(;--t;)Na.push(Na.shift())}(++La);const Ma=function(t,e){return va[t-=0]};class wa extends t.Plugin{[Ma("0x6")](){const t=this[Ma("0xa")];if(!t[Ma("0x1")][Ma("0x2")]("insertTableOfContents"))return;t.plugins.get(Ma("0x8")).enableCommand(Ma("0x9"));const e=t[Ma("0xb")].get("TrackChangesEditing"),n=t[Ma("0x3")];e[Ma("0x0")][Ma("0x7")](Ma("0x5"),(t=>Jr(n,Ma("0x4"),t)))}}const Oa=["isCollapsed","getChangedMarkers","afterInit","end","editor","registerPostFixer","has","nodeBefore","createRange","document","isTouching","element","plugins","locale","isEqual","from","ELEMENT_TITLE","model","removeMarker","title-content","suggestion","get","TrackChangesEditing","newRange","schema","getNearestSelectionRange","updateMarker","registerElementLabel","start"];var Fa,Da;Fa=Oa,Da=198,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Ba=function(t,e){return Oa[t-=0]};class Pa extends t.Plugin{[Ba("0x7")](){const t=this[Ba("0x9")];if(!t[Ba("0x11")][Ba("0xb")]("Title"))return;const e=t[Ba("0x11")][Ba("0x1a")](Ba("0x1b"));e._descriptionFactory[Ba("0x3")](Ba("0x18"),(()=>Jr(t[Ba("0x12")],Ba("0x15")))),t[Ba("0x16")][Ba("0xe")][Ba("0xa")]((n=>{let r=!1;const i=Array[Ba("0x14")](t[Ba("0x16")][Ba("0xe")].differ[Ba("0x6")]());for(const{name:o,data:s}of i){const{group:i}=e._splitMarkerName(o);if(Ba("0x19")!==i||!s[Ba("0x1c")])continue;const x=s[Ba("0x1c")],a=x[Ba("0x8")][Ba("0xc")];if(!a||!a.is(Ba("0x10"),Ba("0x18")))continue;if(!x.start[Ba("0xf")](x.end))continue;const c=t.model[Ba("0x0")][Ba("0x1")](x.end,"forward");if(c&&c[Ba("0x5")]){const t=n[Ba("0xd")](x[Ba("0x4")],c.start);t[Ba("0x13")](x)||(n[Ba("0x2")](o,{range:t}),r=!0)}r||(n[Ba("0x17")](o),r=!0)}return r}))}}const Ua=["UndoEditing","has","plugins","TrackChangesEditing","undo","enableCommand","redo"];var ja,Ga;ja=Ua,Ga=356,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.editor,e=t[Va("0x3")].get(Va("0x4"));t[Va("0x3")][Va("0x2")](Va("0x1"))&&(e[Va("0x6")](Va("0x5")),e[Va("0x6")](Va("0x0")))}}const za=["afterInit","requires","editor","has","TrackChangesEditing","TableCaptionEditing","enableCommand","plugins","toggleTableCaption"];var Wa,Ka;Wa=za,Ka=408,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("0x7")](){return[Jx]}[qa("0x6")](){const t=this[qa("0x8")];t.plugins[qa("0x0")](qa("0x2"))&&t[qa("0x4")].get(qa("0x1"))[qa("0x3")](qa("0x5"))}}const $a=["table","TableUtils","tableCellPadding","_descriptionFactory","tableBorderColor","_suggestionFactory","format","registerDescriptionCallback","findAncestor","discard","commandParams","tableCellBorderWidth","selection","tableHeight","*Format:* change table cell properties","tableBorderWidth","getSuggestionCallback","tableProperties","join","afterInit","_getSuggestion","change","*Format:* change table properties","registerCustomCallback","getSuggestions","plugins","tableCellVerticalAlignment","removeAttribute","tableBorderStyle","document","getSelectionAffectedTableCells","tableBackgroundColor","nodeAfter","TablePropertiesEditing","TableCellPropertiesEditing","TrackChangesTableProperties","editor","formatBlock","tableCellBorderColor","subType","setAttribute","tableWidth","batch","_handlePropertyChange","handleDiscardAction","getContainedElement","has","accept","tableCellProperties","get","markBlockFormat","tableAlignment","getAttribute","TrackChangesEditing","handleSuggestionDescription","model","start","enableCommand","enqueueChange","pluginName","tableCellWidth"];var Za,Ya;Za=$a,Ya=171,function(t){for(;--t;)Za.push(Za.shift())}(++Ya);const Ja=function(t,e){return $a[t-=0]};class Qa extends t.Plugin{constructor(t){super(t),this[Ja("0x1d")]=[Ja("0x10"),Ja("0x28"),Ja("0x1b"),Ja("0x2"),Ja("0x35"),Ja("0x19"),Ja("0x2b")],this[Ja("0x3c")]=[Ja("0x32"),"tableCellBorderStyle",Ja("0x17"),Ja("0xe"),Ja("0xb"),"tableCellHeight","tableCellBackgroundColor","tableCellHorizontalAlignment",Ja("0x26")]}static get[Ja("0xa")](){return Ja("0x2f")}[Ja("0x1f")](){const t=this[Ja("0x30")].plugins[Ja("0x0")]("TrackChangesEditing");if(this[Ja("0x30")].plugins[Ja("0x3a")](Ja("0x2d"))){for(const e of this[Ja("0x1d")])t[Ja("0x8")](e,((t,n)=>{const r=this[Ja("0x30")].model[Ja("0x29")].selection.getFirstPosition()[Ja("0x14")](Ja("0xc"));this._handlePropertyChange(e,[r],this.tableProperties,Ja("0x1d"),t,n)}));t[Ja("0x11")][Ja("0x23")]("formatBlock","tableProperties","accept",t._suggestionFactory.getSuggestionCallback(Ja("0x31"),null,Ja("0x15"))),t._suggestionFactory[Ja("0x23")](Ja("0x31"),Ja("0x1d"),Ja("0x15"),((t,e)=>this[Ja("0x38")](this[Ja("0x1d")],t,e))),t[Ja("0x11")][Ja("0x23")](Ja("0x31"),Ja("0x1d"),Ja("0x1e"),(()=>!1))}if(this[Ja("0x30")][Ja("0x25")][Ja("0x3a")](Ja("0x2e"))){for(const e of this.tableCellProperties)t[Ja("0x8")](e,((t,n)=>{const r=this[Ja("0x30")][Ja("0x25")][Ja("0x0")](Ja("0xd"))[Ja("0x2a")](this[Ja("0x30")][Ja("0x6")][Ja("0x29")][Ja("0x18")]);this[Ja("0x37")](e,r,this[Ja("0x3c")],Ja("0x3c"),t,n)}));t._suggestionFactory[Ja("0x23")](Ja("0x31"),"tableCellProperties",Ja("0x3b"),t[Ja("0x11")][Ja("0x1c")](Ja("0x31"),null,Ja("0x15"))),t[Ja("0x11")][Ja("0x23")](Ja("0x31"),Ja("0x3c"),Ja("0x15"),((t,e)=>this[Ja("0x38")](this[Ja("0x3c")],t,e))),t[Ja("0x11")][Ja("0x23")](Ja("0x31"),Ja("0x3c"),"join",(()=>!1))}t[Ja("0xf")][Ja("0x13")]((t=>this[Ja("0x5")](t)))}[Ja("0x37")](t,e,n,r,i,o){const s=this[Ja("0x30")][Ja("0x25")].get(Ja("0x4"));this[Ja("0x30")][Ja("0x6")][Ja("0x9")](o[Ja("0x36")],(()=>{for(const t of e)if(this[Ja("0x20")](t,r))i(o);else{const e={};for(const r of n){const n=t[Ja("0x3")](r);void 0!==n&&(e[r]=n)}i(o),s[Ja("0x1")](t,{commandParams:[e]},[],r)}}))}handleDiscardAction(t,e,n){const r=e[0][Ja("0x7")][Ja("0x2c")],i=n[Ja("0x16")][0];this.editor[Ja("0x6")][Ja("0x21")]((e=>{for(const n of t)void 0!==i[n]?e[Ja("0x34")](n,i[n],r):e[Ja("0x27")](n,r)}))}handleSuggestionDescription(t){if(t.data)switch(t[Ja("0x33")]){case Ja("0x1d"):return{type:"format",content:Jr(this[Ja("0x30")].locale,Ja("0x22"))};case Ja("0x3c"):return{type:Ja("0x12"),content:Jr(this.editor.locale,Ja("0x1a"))}}}[Ja("0x20")](t,e){const n=this[Ja("0x30")][Ja("0x25")].get(Ja("0x4"));for(const r of n[Ja("0x24")]({skipNotAttached:!0})){const n=r[Ja("0x39")]();if(r[Ja("0x33")]===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=["CommentsRepository","getNearestSelectionRange","deletion:","_reduceExistingSuggestions","model","high","_isForcedDefaultExecutionBlock","unshift","rename","formatInline:","_trackFormatChanges","splice","every","isRemovable","comments","addComment","_createSuggestion","ck-suggestion-marker-","root","$text","_removeSuggestion","forceDefaultExecution","_isDataLoaded","nodeBefore","_getSuggestionData","clear","addMarkerName","removeMarker:suggestion:formatBlock","howMany","ariaLiveAnnouncer","isOwn","for","length","getMultiRangeId","_reduceSuggestionAttributeRange","insertion:discard","createPositionBefore","_splitMarkerName","isArray","removeMarker:suggestion:attribute","accepted","formatBlock:discard","insertion:join","suggestionUnloaded","_registerDefaultCallbacks","_getAuthorFromId","value","track-changes-adapter-already-set","name","announce","_commentsRepository","documentSelection","getCommentThread","reconvertMarker","hasCommentThread","getCustomProperty","enableReadOnlyMode","registerPostFixer","end","group","set","insertContent","suggestionChanged","ck-suggestion-marker-formatBlock","substring","getAttribute","createPositionAfter","addRange","_setSuggestionData","isBlock","push","elementStart","getSuggestionCallback","trackChanges","isInsideObject","track-changes-suggestion-not-found","editingDowncast","attributeKey","track-changes-suggestion-data-mismatch","_addThreadToSuggestion","format","containsPosition","config","consumable","PendingActions","isUndo","editor","addMarker","$graveyard","insertion:","discard","setSelection","listenTo","always","toViewElement","keys","getItems","showSuggestionHighlights","Users","enableCommand","markInlineFormat","_saved","_getExternalAuthor","containerElement","isSelectable","track-changes-user-not-found","trackChanges.mergeNestedSuggestions","notReady","_breakSuggestionMarker","highest","fire","rejected","containsRange","_getAttributeKey","editing","suggestion:","isMultiRange","_editor","_isBlockAttribute","deletion","subType","_rangeIsInLocalUserInsertion","isCollapsed","unbindElementFromMarkerName","trackChangesCommand","_recordAttributeSuggestions","removeClass","pop","_initAriaMarkerChangeAnnouncements","addMarker:suggestion:attribute","low","item","default","_cutOutSuggestionMarker","isExternal","position","execute","getMarkers","data","pluginName","multi","formatGroupId","_joinSuggestions","marker-count","type","start","commands","removed","find","createdAt","discardSuggestion","discardSelectedSuggestions","attributes","deletion:join","_adapter","move","isInContent","getFirstRange","ck-suggestion-marker-formatInline","detach","fromCharCode","from","schema","isTouching","removeMarker","deletion:discard","split","chain","parent","previous","markInsertion","getWalker","hasComments","attribute:join","trackChanges.trackFormatChanges","attribute:discard","consume","deletion:accept","newValue","suggestion","addMarker:suggestion","LEAVE","track-changes-enable-command-twice","isObject","getRanges","_suggestions","$elementName","requires","document","rootName","isBefore","locale","containsRangeInObject","has","authoredAt","oldRange","setAttribute","setTo","markerReady","addSuggestionData","newRange","_isRegisteredAttribute","_refreshAttributeSuggestionsChain","_recordAttributeChanges","forward","update:suggestion","concat","commentThread","_registerBlockAttribute","author","updateSuggestion","elementToElement","attribute:accept","_inlineAttributeKeys","filter","remove","markAttributeChange","_SUGGESTION_ANNOUNCEMENT","_blockAttributeKeys","_setSuggestionRange","change:data","next","isEqual","some","insertion:accept","_findSuggestions","upcast","backward","getUser","options","PENDING_ACTION_SUGGESTION","markerToHighlight","attribute","getChanges","return","discardAllSuggestions","open","_element","clone","markMultiRangeDeletion","isAtEnd","updateMarker","attributeOldValue","key","_onDiscard","ck-suggestion-marker","differ","applyOperation","isIntersectingWithRange","element","ENTER","change:activeMarkers","meta","isIntersecting","getRange","values","isAtStart","after","before","activeMarkers","lowest","define","acceptAllSuggestions","moveTargetPosition","join","assign","warn","includes","getAllAdjacentSuggestions","removeMarkers","_addSuggestionMarker","suggestion-type","attribute:","data-suggestion","init","getSuggestion","addUser","markerNameToElements","track-changes-command-not-found","isLocal","_getMarkerAnnouncementText","get","refresh","formatBlock","_defaultCallbacks","authorName","_model","change","startsWith","_suggestionFactory","_updateSuggestionData","add","nodeAfter","hasSuggestion","formatBlock:join","widget","addMarker:suggestion:formatBlock","oldValue","addClass","isLimit","_processAttributeChanges","ck-suggestion-marker--active","getChangedMarkers","addSuggestion","batch","createRange","size","_enabledCommands","toJSON","formatInline:chain","insertion:chain","getIntersection","buildSuggestion","acceptSuggestion","formatInline","_mergeNestedSuggestions","elementEnd","getAncestors","head","suggestionLoaded","createSelection","getLastMatchingPosition","isAfter","formatBlock:","createRangeOn","markers","never","getSuggestions","commandName","containsItem","attributeNewValue","getFirstMarker","insertion","_customCallbacks","creator","accept","stop","catch","createPositionAt","getShiftedBy","enqueueChange","writer","isNextTo","range","markerName","registerCustomCallback","collaboration.channelId","ready","insert","mapper","_checkSuggestionCorrectness","getDifference","addCommentThread","delete","multipleBlocks","_processAttributeSuggestions","addHighlight","then","conversion","map","_descriptionFactory","$marker","plugins","_suggestionState","sort","_refreshSuggestionsChain","splitPosition","dataReady","unbind","adapter","stopListening","markMultiRangeInsertion","_joinWithAdjacentSuggestions","dataDowncast","groupId","acceptSelectedSuggestions","skipNestingCheck","removeAttribute"];var _c,Tc;_c=Ec,Tc=444,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("0x79")](){return["CommentsRepository",o.Users,t.PendingActions,ai,gi,Ei,Ai,Fi,Ni,ji,Ki,io,Ao,vo,Fo,jo,Ko,Yo,ns,xs,ds,ys,ps,Ss,Ms,Bs,qs,tx,Vs,co,mo,ox,lx,hx,_x,Ix,Lx,Dx,Vx,qx,Jx,ia,ca,Xa,ma,Ca,wa,Qa,Ra,Pa,Ha]}static get[yc("0x49")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[yc("0x125")]((t=>String[yc("0x5e")](t)))[yc("0xc6")]("")}super(t),this._recordAttributeSuggestions=!1,this.set(yc("0xc1"),[]),this.on(yc("0xb9"),((e,n,r,i)=>{this[yc("0xdc")].change((()=>{for(const e of[...i,...r])this._model[yc("0x103")].has(e)&&t[yc("0x30")][yc("0x16d")](e)}))})),this[yc("0x126")]=new ri(this.editor.model[yc("0x60")],this[yc("0x14")][yc("0x7d")]),this[yc("0x58")]=null,this[yc("0xdf")]=new kc(this[yc("0x14")]),this[yc("0x77")]=new Map,this._commentsRepository=t.plugins.get(yc("0x138")),this[yc("0xf1")]=new Set,this[yc("0xdc")]=this[yc("0x14")][yc("0x13c")],this._suggestionState=new WeakMap,this[yc("0x13e")]=!1,this[yc("0x98")]=new Set(["$elementName"]),this[yc("0x93")]=new Set,t[yc("0x10")][yc("0xc3")](yc("0x6c"),yc("0x42")),this[yc("0x142")]=t[yc("0x10")].get(yc("0x6c")),t[yc("0x10")][yc("0xc3")](yc("0x28"),!0),this[yc("0xf9")]=t[yc("0x10")][yc("0xd7")](yc("0x28")),this[yc("0x3a")]=new d(t,this[yc("0xf1")]),this[yc("0x3e")](),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,53,54])}[yc("0xd0")](){const t=this[yc("0x14")],n=(t,e)=>{if(yc("0xa6")!=t)return yc("0x149")+t;const n=e[yc("0x64")]("|")[0];return this[yc("0x34")](n)?yc("0x177"):yc("0x5c")};t[yc("0x124")].for(yc("0xa"))[yc("0xa5")]({model:yc("0x71"),view:t=>{const{id:e,type:r,subType:i}=this[yc("0x15d")](t[yc("0x116")]),o=[yc("0xb3"),n(r,i)];let s=3e3;return this[yc("0xc1")][yc("0xc9")](t[yc("0x116")])&&(o.push(yc("0xeb")),s=3010),yc("0x35")==r&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion.for(yc("0x133"))[yc("0xe1")]((e=>{e.on(yc("0x72"),((e,n,r)=>{if(!r.options[yc("0x1f")])return;const i=n[yc("0x41")];if(!i)return;const o=r.mapper[yc("0x1c")](i);t[yc("0x13c")].schema[yc("0x75")](i)&&o&&!o[yc("0x16f")](yc("0xe5"))&&o.is(yc("0x25"))&&(0,x.toWidget)(o,r[yc("0x113")])}),{priority:yc("0x13d")})})),t.conversion.for("dataDowncast")[yc("0xa5")]({model:yc("0x71"),view:(t,e)=>{if(!e[yc("0xa3")][yc("0x1f")])return null;const{type:r,subType:i}=this._splitMarkerName(t[yc("0x116")]);return{classes:[yc("0xb3"),n(r,i)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,i,o)=>{if(!i[yc("0x41")])return;const{id:s}=this[yc("0x15d")](i[yc("0x116")]);if(n){const t=this[yc("0x77")][yc("0xd7")](s),e=this[yc("0x2f")](t);if(!this[yc("0x34")](e))return}if(i[yc("0x41")].is("selection"))return void o[yc("0x11")][yc("0x6e")](i.item,r[yc("0x168")]);const x=o[yc("0x11b")][yc("0x1c")](i[yc("0x41")]);if(i[yc("0x41")].is("element")&&t.model[yc("0x60")][yc("0x3")](i.item)&&!x[yc("0x16f")](yc("0x122"))){o[yc("0x113")][yc("0xe8")]([yc("0xb3"),"ck-suggestion-marker-formatBlock"],x),o[yc("0x113")].setAttribute("data-suggestion",s,x),o[yc("0x11b")].bindElementToMarker(x,i.markerName),e&&(this.activeMarkers[yc("0xc9")](i[yc("0x116")])?o[yc("0x113")][yc("0xe8")](yc("0xeb"),x):o[yc("0x113")][yc("0x3c")]("ck-suggestion-marker--active",x));for(const e of t[yc("0x13c")].createRangeIn(i[yc("0x41")])[yc("0x1e")]())o[yc("0x11")].consume(e,r.name);o[yc("0x11")][yc("0x6e")](i.item,r[yc("0x168")])}};t[yc("0x124")].for(yc("0x133"))[yc("0xe1")]((t=>{t.on(yc("0xe6"),((t,e,n)=>{n[yc("0xa3")][yc("0x1f")]&&r({showActiveMarkers:!1})(t,e,n)}),{priority:yc("0x2b")})})),t[yc("0x124")][yc("0x157")](yc("0x133"))[yc("0xe1")]((t=>{t.on(yc("0x3f"),((t,e,n)=>{n[yc("0xa3")][yc("0x1f")]&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:yc("0x2b")})})),t[yc("0x124")][yc("0x157")](yc("0x133")).markerToData({model:yc("0x71"),view:(t,e)=>e.options[yc("0x1f")]?null:{group:yc("0x71"),name:t.substr(11)}}),t[yc("0x124")][yc("0x157")]("upcast")[yc("0x91")]({view:{name:yc("0x71"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=yc("0x31")+t[yc("0x179")](yc("0xcd"))+":"+t[yc("0x179")]("id");return t[yc("0x179")](yc("0x4d"))&&(n+=":"+t.getAttribute(yc("0x4d"))),e.createElement(yc("0x127"),{"data-name":n})}}),t.conversion.for(yc("0xa0")).dataToMarker({view:"suggestion"}),t[yc("0x124")][yc("0x157")](yc("0xa"))[yc("0xe1")]((t=>{t.on("addMarker:suggestion:formatBlock",r(),{priority:"high"})})),t[yc("0x124")][yc("0x157")](yc("0xa"))[yc("0xe1")]((t=>{t.on("addMarker:suggestion:attribute",r({isAttributeSuggestion:!0}),{priority:yc("0x13d")})})),t[yc("0x124")].for(yc("0xa"))[yc("0xe1")]((t=>{t.on(yc("0x153"),((t,e,n)=>{const r=n[yc("0x11b")][yc("0xd3")](e.markerName);if(r)for(const t of r)t.getCustomProperty(yc("0x122"))||(n.writer[yc("0x3c")]([yc("0xb3"),"ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n[yc("0x113")][yc("0x137")](yc("0xcf"),t),n[yc("0x11b")].unbindElementFromMarkerName(t,e[yc("0x116")]))}),{priority:yc("0x13d")})})),t.conversion[yc("0x157")](yc("0xa"))[yc("0xe1")]((t=>{t.on(yc("0x15f"),((t,e,n)=>{const r=n[yc("0x11b")].markerNameToElements(e[yc("0x116")]);if(!r)return;const{id:i}=this[yc("0x15d")](e[yc("0x116")]),o=this[yc("0x77")].get(i),s=this[yc("0x2f")](o);if(this._isBlockAttribute(s))for(const t of r)t.getCustomProperty("addHighlight")||(n[yc("0x113")][yc("0x3c")]([yc("0xb3"),yc("0x177"),"ck-suggestion-marker--active"],t),n[yc("0x113")][yc("0x137")](yc("0xcf"),t),n[yc("0x11b")][yc("0x39")](t,e[yc("0x116")]))}),{priority:yc("0x13d")})})),t[yc("0x13c")][yc("0x7a")][yc("0x171")]((e=>{let n=!1;const r=Array.from(t[yc("0x13c")][yc("0x7a")][yc("0xb4")].getChangedMarkers()),i=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this[yc("0x15d")](x);if(yc("0x71")!==r)continue;const d=this[yc("0x77")][yc("0xd7")](u);if(null!=a.newRange){yc("0xf8")==c&&(n=n||Rc(a[yc("0x86")],x,e,t[yc("0x13c")].schema));const r=yc("0xa6")==c&&this[yc("0x34")](l[yc("0x64")]("|")[0]);if(a[yc("0x86")][yc("0x38")]||yc("0x16")==a.newRange[yc("0x14a")][yc("0x7b")]||yc("0xd9")==c&&!Nc(a.newRange)||r&&!Nc(a[yc("0x86")])||yc("0x35")==c&&(Sc(s=a[yc("0x86")])||(o=s).start[yc("0x66")]==o[yc("0x172")][yc("0x14f")]&&o[yc("0x4f")][yc("0xae")]))e[yc("0x62")](x),n=!0;else{if(!d||!d.isInContent)continue;i[yc("0xe1")](d)}}}var o,s;return i[yc("0xf0")]>0&&(n=!!this._joinWithAdjacentSuggestions(i)||n),n})),t[yc("0x13c")][yc("0x7a")][yc("0x171")]((e=>{let n=!1;for(const r of t.model[yc("0x7a")][yc("0xb4")][yc("0xa7")]())if(yc("0x11a")==r[yc("0x4e")])for(const r of this[yc("0x77")][yc("0xbd")]()){if(r[yc("0x32")]||!r[yc("0x5a")])continue;const i=yc("0xd9")==r[yc("0x4e")],o=this._getAttributeKey(r),s=o&&this._isBlockAttribute(o);if(!i&&!s)continue;const x=r[yc("0x5b")]();if(x[yc("0x4f")][yc("0x66")]!=x[yc("0x172")][yc("0x66")]&&!x[yc("0x172")].isAtEnd){const i=t[yc("0x13c")][yc("0x110")](x[yc("0x4f")][yc("0xe2")],yc("0x172")),o=t[yc("0x13c")][yc("0xef")](x[yc("0x4f")],i);e[yc("0xaf")](r[yc("0x109")](),{range:o}),n=!0}}return n})),t[yc("0x13c")][yc("0x7a")][yc("0x171")]((t=>this[yc("0xea")](t))),t.model[yc("0x7a")].registerPostFixer((t=>!t[yc("0xee")][yc("0xd5")]&&this[yc("0x121")](t))),t[yc("0x13c")].on("_afterChanges",(()=>{this[yc("0x3b")]=!1})),t[yc("0x13c")][yc("0x7a")].on(yc("0x9a"),((n,r)=>{if(!r[yc("0xd5")]||r[yc("0x13")])return;if(!this[yc("0x3b")])return;const i=t.model[yc("0x7a")][yc("0xb4")][yc("0xa7")]();if(0==i[yc("0x158")])return;const o=[],s=i.filter((t=>yc("0xa6")==t.type)),x=i.filter((t=>"insert"==t[yc("0x4e")]&&yc("0x14b")!=t.name)),a=i[yc("0x94")]((t=>"remove"==t[yc("0x4e")]&&"$text"!=t.name));for(const e of s)this._isRegisteredAttribute(e[yc("0xb")])&&o[yc("0x4")]({key:e[yc("0xb")],newValue:e[yc("0x108")],oldValue:e[yc("0xb0")],range:Lc(e[yc("0x115")],t.model)});for(const e of x){const n=a[yc("0x52")]((t=>t[yc("0xab")]===e[yc("0xab")]));if(n){const r=Mc(e.position[yc("0xe2")],t[yc("0x13c")]);n[yc("0x168")]!==e[yc("0x168")]&&o[yc("0x4")]({key:"$elementName",newValue:e.name,oldValue:n[yc("0x168")],range:r});for(const[t,i]of n[yc("0x56")]){if(!this[yc("0x87")](t))continue;const n=e[yc("0x56")][yc("0xd7")](t);i!==n&&o[yc("0x4")]({key:t,newValue:n,oldValue:i,range:r})}for(const[t,i]of e.attributes)this[yc("0x87")](t)&&(n.attributes[yc("0x7f")](t)||o[yc("0x4")]({key:t,newValue:i,oldValue:null,range:r}))}}0!=o[yc("0x158")]&&t[yc("0x13c")][yc("0x112")](r,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:r,newValue:i}of o)this[yc("0x96")](t,e,r,i,{groupId:n});this[yc("0x13b")](t,o)}))}),{priority:yc("0xc2")}),t[yc("0x13c")][yc("0x103")].on(yc("0x8b"),((t,e,n)=>{if(null==n){const{id:t}=this[yc("0x15d")](e[yc("0x168")]),n=this._suggestions[yc("0xd7")](t);n&&n[yc("0x152")](e[yc("0x168")])}})),t.model[yc("0x7a")].on("change:data",(()=>{const e=Array[yc("0x5f")](t[yc("0x13c")][yc("0x7a")][yc("0xb4")][yc("0xec")]())[yc("0x94")]((t=>yc("0x71")===this[yc("0x15d")](t.name)[yc("0x173")]));if(0===e.length)return;e.sort(((t,e)=>{const n=t[yc("0x48")][yc("0x81")],r=e[yc("0x48")][yc("0x81")];return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n.start[yc("0x7c")](r[yc("0x4f")])?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:i}of e){const{id:e}=this[yc("0x15d")](t);if(null===i.oldRange){const e=this._handleNewSuggestionMarker(t);r[yc("0xe1")](e)}else{const t=this[yc("0x77")][yc("0xd7")](e);null!==i[yc("0x86")]||t[yc("0x5a")]?(n[yc("0xe1")](t[yc("0xfc")]),r.add(t)):this[yc("0x14c")](t)}}r.size>0&&this[yc("0x12b")](r);for(const t of n)this[yc("0x2c")](yc("0x176"),t)})),t.model.on(yc("0xb5"),((e,n)=>{const r=n[0];if(!this._suggestions[yc("0xf0")])return;if(!r.isDocumentOperation)return;if(r[yc("0xee")][yc("0x13")]||!r[yc("0xee")].isLocal)return;let i,o;switch(r[yc("0x4e")]){case yc("0x11a"):i=t[yc("0x13c")][yc("0x110")](r[yc("0x45")]),o=i[yc("0x111")](r[yc("0x154")]);break;case"split":i=t[yc("0x13c")].createPositionAt(r[yc("0x12c")]),o=t[yc("0x13c")][yc("0x110")](r[yc("0xc5")]);break;case yc("0x59"):i=t[yc("0x13c")][yc("0x110")](r.targetPosition),o=i[yc("0x111")](r[yc("0x154")]);break;default:return}const s=t[yc("0x13c")].createRange(i,o);t[yc("0x13c")][yc("0xdd")]((()=>{for(const{suggestion:t,meta:e}of this[yc("0x9f")](s)){if(t[yc("0x32")])continue;if("formatInline"==t[yc("0x4e")])continue;const n=this[yc("0x2f")](t);if(n&&this[yc("0x34")](n)&&yc("0x64")!=r[yc("0x4e")])continue;const x=t[yc("0x48")]&&t[yc("0x48")][yc("0x120")];("formatBlock"!=t[yc("0x4e")]||yc("0x64")==r.type&&!x)&&(e.containsRangeInObject||yc("0x10a")==t[yc("0x4e")]&&e[yc("0x156")]||t.getFirstRange()[yc("0x2e")](s)&&this[yc("0x2a")](t,i,o))}}))}),{priority:yc("0xc2")}),t[yc("0x13c")].on("deleteContent",((e,n)=>{const r=n[0],i=n[1];if(i&&i[yc("0x14d")])return;if(this[yc("0x13e")])return;if(!this[yc("0x3a")].value)return;if(r[yc("0x38")])return;const o=t[yc("0x13c")][yc("0x60")],{start:s,end:x}=r[yc("0x5b")](),a=s[yc("0xe2")]&&o[yc("0xe9")](s.nodeAfter)?null:o.getNearestSelectionRange(s,yc("0x8a")),c=x[yc("0x14f")]&&o[yc("0xe9")](x[yc("0x14f")])?null:o[yc("0x139")](x,yc("0xa1")),l=t[yc("0x13c")].createRange(a?a[yc("0x4f")]:s,c?c.end:x);t.model.change((e=>{this.markDeletion(l);const n=t.model[yc("0x60")][yc("0x139")](l[yc("0x4f")]);r.is(yc("0x16b"))?e[yc("0x19")](n):r[yc("0x83")](n)})),e.stop()}),{priority:e.priorities.normal+10}),t.model.on("insertContent",((e,n)=>{const r=n[n[yc("0x158")]-1];r&&r[yc("0x14d")]||this[yc("0x13e")]||this[yc("0x3a")][yc("0x166")]&&(t[yc("0x13c")][yc("0xdd")]((()=>{let r=t.model[yc("0x175")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e[yc("0xa8")]=r[yc("0xac")]();const i=r[yc("0x172")][yc("0x14f")],o=t[yc("0x13c")][yc("0x60")];i&&o[yc("0x3")](i)&&!o[yc("0x75")](i)&&(r=t[yc("0x13c")][yc("0xef")](r.start,t.model[yc("0x110")](i,yc("0x172")))),this[yc("0x68")](r)})),e[yc("0x10e")]())}),{priority:yc("0x13d")}),this[yc("0x14")].commands.add(yc("0x7"),this[yc("0x3a")]),this.enableCommand(yc("0x7"));const i=new p(t,this[yc("0x77")]);t.commands[yc("0xe1")](yc("0xf7"),i),this.enableCommand(yc("0xf7"));const o=new y(t,this[yc("0x77")]);t[yc("0x50")].add(yc("0x54"),o),this[yc("0x21")](yc("0x54")),t[yc("0x50")][yc("0xe1")](yc("0xc4"),new F(t,i,this._suggestions)),this.enableCommand(yc("0xc4")),t.commands[yc("0xe1")]("discardAllSuggestions",new F(t,o,this._suggestions)),this[yc("0x21")](yc("0xa9")),t[yc("0x50")][yc("0xe1")](yc("0x135"),new j(t,i,this[yc("0x77")])),this.enableCommand(yc("0x135")),t.commands[yc("0xe1")]("discardSelectedSuggestions",new j(t,o,this[yc("0x77")])),this.enableCommand(yc("0x55"));const s=t[yc("0x128")][yc("0xd7")](yc("0x138"));this[yc("0x1a")](s,yc("0x147"),((t,{threadId:e})=>{const n=this[yc("0x77")].get(e);n&&n[yc("0x8d")]&&1===n.commentThread[yc("0x158")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:yc("0x40")}),this[yc("0x1a")](s,"removeComment",((t,{threadId:e})=>{const n=this[yc("0x77")][yc("0xd7")](e);n&&n[yc("0x8d")]&&!n.commentThread.length&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:yc("0x40")})}set adapter(t){if(this[yc("0x58")])throw new e.CKEditorError(yc("0x167"),this);this[yc("0x58")]=t}get[yc("0x12f")](){return this[yc("0x58")]}[yc("0x105")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[yc("0x77")][yc("0xbd")]())t&&!e[yc("0x5a")]||n[yc("0x4")](e);return e?n[yc("0x125")]((t=>t[yc("0xf2")]())):n}[yc("0xd1")](t){const n=this[yc("0x77")].get(t);if(!n)throw new e.CKEditorError(yc("0x9"),this);return n}[yc("0xe3")](t){return this[yc("0x77")][yc("0x7f")](t)}[yc("0x85")](t){const{authorId:e,id:n,attributes:r}=t,[i,o]=t.type.split(":"),s=this._suggestions.get(n)||this[yc("0x148")](i,o,n,e,r);if(this._addThreadToSuggestion(s),this[yc("0x11c")](s,i,o||null,e),s[yc("0x53")]=t.createdAt,s[yc("0x14e")]=!0,r&&r["@external"]){const t=r["@external"],e=this[yc("0x24")](t[yc("0xdb")]);s[yc("0x80")]=t[yc("0x53")],s[yc("0x8f")]=e,s[yc("0x44")]=!0}else s[yc("0x80")]=t[yc("0x53")];switch(t.data&&(s[yc("0x48")]=t.data),t[yc("0x56")]&&(s[yc("0x56")]=t.attributes),this[yc("0x58")]&&this[yc("0x58")].addSuggestion||(s[yc("0x23")]=!0),this[yc("0x129")][yc("0xd7")](s)){case yc("0x29"):this[yc("0x129")].set(s,yc("0x12d"));break;case yc("0x84"):s[yc("0x5a")]?(this[yc("0x132")](new Set([s])),this._refreshSuggestionsChain(new Set([s])),this[yc("0x129")].set(s,"ready"),this.fire(yc("0xfd"),s)):this[yc("0x129")].set(s,yc("0x51"))}return s}[yc("0xf7")](t){this[yc("0x14d")]((()=>{this[yc("0x14")].model[yc("0xdd")]((()=>{for(const e of t[yc("0xca")]())e[yc("0x10d")]()}))}))}[yc("0x54")](t){this.forceDefaultExecution((()=>{this[yc("0x14")][yc("0x13c")].change((()=>{for(const e of t[yc("0xca")]())e[yc("0x18")]()}))}))}[yc("0x21")](t,n){const r=this[yc("0x14")][yc("0x50")][yc("0xd7")](t);if(!r)throw new e.CKEditorError(yc("0xd4"),this,{commandName:t});if(this[yc("0xf1")].has(r))throw new e.CKEditorError(yc("0x74"),this,{commandName:t});this._enabledCommands[yc("0xe1")](r),n&&r.on("execute",((t,e)=>{this[yc("0x3a")][yc("0x166")]&&(this[yc("0x13e")]||(e.length>0&&e[e.length-1]&&e[e.length-1][yc("0x14d")]?e[yc("0x3d")]():(t.return=n(((...t)=>r[yc("0x46")](...t,{forceDefaultExecution:!0})),...e),t[yc("0x10e")]())))}),{priority:"high"})}[yc("0x14d")](t){let n,r;const i=this[yc("0x13e")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){r=t}return i||(this[yc("0x13e")]=!1),r&&e.CKEditorError.rethrowUnexpectedError(r,this),n}markInsertion(t,n=null,r={}){if(t[yc("0x38")])return null;const i=this[yc("0x14")][yc("0x128")][yc("0xd7")](yc("0x20")).me;for(const{suggestion:e,meta:i}of this[yc("0x9f")](t,"insertion"))if(i[yc("0x156")]){if(!i[yc("0x114")]){if(i[yc("0x7e")]){if(!this[yc("0xf9")]||!Fc(e,r))continue;return e}if(Fc(e,r))return e;this._breakSuggestionMarker(e,t[yc("0x4f")],t[yc("0x172")]);break}if(n==e.subType&&Fc(e,r)){const n=e.getFirstRange();return n[yc("0x4f")][yc("0x9c")](t[yc("0x172")])?this[yc("0x99")](e,this[yc("0xdc")][yc("0xef")](t[yc("0x4f")],n[yc("0x172")])):this[yc("0x99")](e,this._model.createRange(n[yc("0x4f")],t.end)),e}}const o=(0,e.uid)(),s=i.id,x=n?yc("0x17")+n:yc("0x10a"),a=this[yc("0x2")]({id:o,type:x,createdAt:new Date,authorId:s,attributes:r});return this._addSuggestionMarker(x,o,s,t),a}[yc("0x131")](t,n=yc("0x4a"),r={}){const i=this[yc("0x14")][yc("0x128")][yc("0xd7")]("Users").me,o=this[yc("0xdf")][yc("0x6")](yc("0x10a"),n,"join");for(const e of this[yc("0x105")]())if(e.author.id==i.id&&yc("0x10a")==e[yc("0x4e")]&&e[yc("0x36")]==n&&Fc(e,r)&&(o(e[yc("0x76")](),t)||o(t,e[yc("0x76")]()))){for(const n of t)e[yc("0x1")](n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0x10a"))){if(!n.isOwn)continue;if(!this._mergeNestedSuggestions&&n[yc("0x7e")])continue;if(!Fc(e,r))continue;let i=!0;for(const n of e.getRanges())for(const e of t)if(!n[yc("0x2e")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=yc("0x17")+n,c=this[yc("0x2")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this[yc("0xcc")](a,s,x,e,Yr.getMultiRangeId());return c}[yc("0x22")](t,n,r=null,i={}){if(r=r||vc(n),t[yc("0x38")])return null;if("never"===this._trackFormatChanges){const e=this[yc("0xdf")][yc("0x6")](yc("0xf8"),r,yc("0x10d"));return this[yc("0x14d")]((()=>e([t],n,i))),null}const o=this.editor[yc("0x128")][yc("0xd7")](yc("0x20")).me,s=[];if("always"!==this[yc("0x142")])for(const{suggestion:e,meta:n}of this[yc("0x9f")](t,yc("0x10a")))n.isOwn&&!n[yc("0x8")]&&s.push(...e[yc("0x76")]());const x=function(t,e){const n=[];for(const r of e){const e=t[yc("0xf5")](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("0x158")];){const r=n[e].getDifference(t);n[yc("0x143")](e,1,...r),e+=r[yc("0x158")]}}return n}(t,s);x[yc("0x158")]&&this[yc("0xdc")][yc("0xdd")]((()=>{for(const t of x){const e=this[yc("0xdf")][yc("0x6")](yc("0xf8"),r,"accept");this.forceDefaultExecution((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[yc("0x4f")],a=t[yc("0x172")];for(const{suggestion:e,meta:n}of this[yc("0x9f")](t,"formatInline")){if(!n[yc("0x156")])continue;if(e[yc("0x36")]!=r)continue;if(!Fc(e,i))continue;const o=e[yc("0x5b")]();if(o[yc("0x2e")](t,!0))return null;x=x[yc("0x7c")](o[yc("0x4f")])?x:o[yc("0x4f")],a=a[yc("0x100")](o[yc("0x172")])?a:o.end,s?o[yc("0x4f")][yc("0x7c")](s[yc("0x5b")]()[yc("0x4f")])?(s[yc("0xcb")](),s=e):e[yc("0xcb")]():s=e}const c=this[yc("0xdc")][yc("0xef")](x,a);if(s)this._setSuggestionRange(s,c);else{const t=(0,e.uid)(),s=o.id;this[yc("0x2")]({id:t,type:yc("0x141")+r,data:n,createdAt:new Date,authorId:s,attributes:i}),this[yc("0xcc")](yc("0x141")+r,t,s,c)}}return null}markBlockFormat(t,n,r=[],i=null,o={}){n[yc("0x4b")]||(n[yc("0x4b")]=n[yc("0x106")]),n[yc("0x120")]=t.is(yc("0x115")),i=i||vc(n);const s=r[yc("0x125")]((t=>Mc(t,this[yc("0xdc")]))),x=t.is("range")?t:Mc(t,this[yc("0xdc")]);if(yc("0x104")===this[yc("0x142")]){const t=this._suggestionFactory.getSuggestionCallback(yc("0xd9"),i,yc("0x10d"));return this[yc("0x14d")]((()=>t([x],n,o))),null}s[yc("0x4")](x);let a=!0;for(const t of s)if(!this[yc("0x37")](t)){a=!1;break}if(a&&yc("0x1b")!==this._trackFormatChanges){const t=this._suggestionFactory[yc("0x6")](yc("0xd9"),i,"accept");return this.forceDefaultExecution((()=>t([x],n,o))),null}let c=null,l=x[yc("0x4f")],u=x[yc("0x172")];for(const{suggestion:t,meta:e}of this[yc("0x9f")](x,yc("0xd9"))){if(!e.isOwn)continue;if(e[yc("0x114")]||e[yc("0x7e")]||e.isInsideObject)continue;if(t.data[yc("0x4b")]!=n[yc("0x4b")])continue;if(!Fc(t,o))continue;const r=t.getFirstRange();if(t[yc("0x36")]==i){if(r[yc("0x2e")](x,!0))return null;l=l[yc("0x7c")](r[yc("0x4f")])?l:r.start,u=u[yc("0x100")](r.end)?u:r[yc("0x172")],c?r[yc("0x4f")][yc("0x7c")](c.getFirstRange()[yc("0x4f")])?(c[yc("0xcb")](),c=t):t[yc("0xcb")]():c=t}else{const e=x[yc("0xf5")](r);this[yc("0x43")](t,e)}}const d=this.editor.plugins[yc("0xd7")](yc("0x20")).me,g=(0,e.uid)(),f=d.id;if(c)return this._setSuggestionRange(c,this._model[yc("0xef")](l,u)),c;{const t=this[yc("0x2")]({id:g,type:yc("0x101")+i,data:n,createdAt:new Date,authorId:f,attributes:o});return this[yc("0xcc")](yc("0x101")+i,g,f,this[yc("0xdc")][yc("0xef")](l,u)),t}}markMultiRangeBlockFormat(t,n,r=[],i=null,o={}){n[yc("0x4b")]||(n.formatGroupId=n[yc("0x106")]);const s=t[0];n[yc("0x120")]=s.is(yc("0x115")),i=i||vc(n);const x=r.map((t=>Mc(t,this._model))),a=s.is(yc("0x115"))?t:t[yc("0x125")]((t=>Mc(t,this[yc("0xdc")])));if(yc("0x104")===this._trackFormatChanges){const t=this._suggestionFactory.getSuggestionCallback(yc("0xd9"),i,"accept");return this[yc("0x14d")]((()=>t(a,n,o))),null}x[yc("0x4")](...a);let c=!0;for(const t of x)if(!this[yc("0x37")](t)){c=!1;break}if(c&&yc("0x1b")!==this._trackFormatChanges){const t=this[yc("0xdf")][yc("0x6")](yc("0xd9"),i,yc("0x10d"));return this.forceDefaultExecution((()=>t(a,n,o))),null}const l=this[yc("0x14")][yc("0x128")][yc("0xd7")]("Users").me;for(const t of this[yc("0x105")]()){if(t[yc("0x8f")].id!=l.id)continue;if("formatBlock"!=t[yc("0x4e")]||t.data[yc("0x4b")]!=n[yc("0x4b")])continue;if(!Fc(t,o))continue;const e=t.subType==i;for(let n=0;n<a.length;n++){const r=a[n];for(const i of t[yc("0x47")]()){const o=i[yc("0xbc")]();if(r[yc("0x9c")](o)){e?(a.splice(n,1),n--):t.removeMarker(i[yc("0x168")]);break}}}}if(0==a[yc("0x158")])return null;const u=this[yc("0xdf")][yc("0x6")]("formatBlock",i,"join");for(const t of this.getSuggestions())if(t[yc("0x8f")].id==l.id&&yc("0xd9")==t[yc("0x4e")]&&t[yc("0x48")].formatGroupId==n[yc("0x4b")]&&t[yc("0x36")]==i&&Fc(t,o)&&(u(t.getRanges(),a)||u(a,t[yc("0x76")]()))){for(const e of a)t[yc("0x1")](e);return t}const d=(0,e.uid)(),g=l.id,f=yc("0x101")+i,h=this[yc("0x2")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this[yc("0xcc")](f,d,g,t,Yr[yc("0x159")]());return h}markDeletion(t,n=null,r={}){if(t[yc("0x38")])return null;const i=this.editor[yc("0x128")][yc("0xd7")](yc("0x20")).me,o=new s.LiveRange(t[yc("0x4f")],t[yc("0x172")]);for(const{suggestion:t,meta:e}of this._findSuggestions(o,yc("0x10a")))if(e[yc("0x156")]&&!e[yc("0x114")])if(t[yc("0x32")]){const e=t[yc("0x76")]()[yc("0x94")]((t=>yc("0x16")!=t[yc("0x14a")].rootName));if(e.every((t=>o.containsRange(t,!0)))&&t.discard(),e[yc("0x9d")]((t=>t[yc("0x2e")](o,!0)))){const t=this[yc("0xdf")][yc("0x6")](yc("0x35"),n,yc("0x10d"));return this[yc("0x14d")]((()=>t([o],null,r))),null}}else{const e=o[yc("0xf5")](t[yc("0x5b")]());null!==e&&t[yc("0xb2")]([e],null,r)}if(o[yc("0x5d")](),o[yc("0x38")]||yc("0x16")==o[yc("0x14a")][yc("0x7b")])return null;let x=null,a=o[yc("0x4f")],c=o[yc("0x172")];const l=this[yc("0x9f")](o,yc("0x35"));for(const{suggestion:t,meta:e}of l){const n=this[yc("0xdc")][yc("0xef")](a,c);if(e.isOwn&&(this._mergeNestedSuggestions||!e[yc("0x7e")]&&!e.isInsideObject))if(t[yc("0x32")]){if(!Fc(t,r))continue;let e=!0;for(const r of t[yc("0x76")]()){if(r[yc("0x2e")](n,!0))return t;n[yc("0x2e")](r)||(e=!1)}e&&t[yc("0x18")]()}else{const e=t[yc("0x5b")]();if(e.containsRange(n,!0))return t;if(!Fc(t,r)){n[yc("0x2e")](e)?t[yc("0xcb")]():e[yc("0xf")](a)?a=e.end:e[yc("0xf")](c)&&(c=e[yc("0x4f")]);continue}a=a.isBefore(e[yc("0x4f")])?a:e[yc("0x4f")],c=c[yc("0x100")](e[yc("0x172")])?c:e[yc("0x172")],r=Object[yc("0xc7")]({},t[yc("0x56")]),x?e[yc("0x4f")][yc("0x7c")](x[yc("0x5b")]().start)?(x[yc("0xcb")](),x=t):t[yc("0xcb")]():x=t}}if(x)return this._setSuggestionRange(x,this[yc("0xdc")][yc("0xef")](a,c)),x;{const t=(0,e.uid)(),o=this._model[yc("0xef")](a,c),s=i.id,x=n?yc("0x13a")+n:yc("0x35"),l=this[yc("0x2")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0xcc")](x,t,s,o),l}}[yc("0xad")](t,n=yc("0x4a"),r={}){const i=this[yc("0x14")].plugins[yc("0xd7")](yc("0x20")).me,o=t[yc("0x125")]((t=>new s.LiveRange(t[yc("0x4f")],t[yc("0x172")]))),x=new Set;for(const{suggestion:t,meta:e}of this[yc("0x9f")](o,"insertion"))e[yc("0x156")]&&!e[yc("0x114")]&&x[yc("0xe1")](t);for(const e of x)if(e.isMultiRange){const i=e[yc("0x76")]();if((!e[yc("0x56")]||!e[yc("0x56")].skipNestingCheck)&&i.every((t=>o[yc("0x9d")]((e=>e[yc("0x2e")](t,!0)))))&&e[yc("0x18")](),o[yc("0x144")]((t=>i.some((e=>e[yc("0x2e")](t,!0)))))){const e=this[yc("0xdf")][yc("0x6")]("deletion",n,yc("0x10d"));return this.forceDefaultExecution((()=>e(t,null,r))),null}}else{const t=e[yc("0x5b")]();if(o[yc("0x9d")]((e=>e.containsRange(t,!0)))&&e.discard(),o.every((e=>t[yc("0x2e")](e,!0)))){const t=this[yc("0xdf")][yc("0x6")](yc("0x35"),n,"accept");return this[yc("0x14d")]((()=>t(o,null,r))),null}}const a=this[yc("0xdf")][yc("0x6")]("deletion",n,yc("0xc6"));let c=null;for(const t of this[yc("0x105")]())if(t[yc("0x8f")].id==i.id&&t[yc("0x5a")]&&yc("0x35")==t[yc("0x4e")]&&t[yc("0x36")]==n&&Fc(t,r)&&(a(t[yc("0x76")](),o)||a(o,t.getRanges())))if(c){if(t[yc("0x8d")]&&t[yc("0x8d")][yc("0x158")])continue;for(const e of t[yc("0x76")]())c[yc("0xb6")](e)||c[yc("0x1")](e);t.removeMarkers()}else{c=t;for(const e of o)t[yc("0xb6")](e)||t[yc("0x1")](e)}if(c)return c;x[yc("0x151")]();for(const{suggestion:t,meta:e}of this[yc("0x9f")](o,yc("0x35")))e[yc("0x156")]&&(this[yc("0xf9")]||!e[yc("0x7e")]&&!e[yc("0x8")])&&Fc(t,r)&&x[yc("0xe1")](t);for(const t of x){const e=t[yc("0x76")]();if((!r||!r.skipNestingCheck)&&o[yc("0x144")]((t=>e[yc("0x9d")]((e=>e.containsRange(t,!0))))))return t;(!t[yc("0x56")]||!t.attributes[yc("0x136")])&&e.every((t=>o[yc("0x9d")]((e=>e[yc("0x2e")](t,!0)))))&&t[yc("0x18")]()}const l=(0,e.uid)(),u=i.id,d="deletion:"+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of o)t.detach(),t.isCollapsed||yc("0x16")==t[yc("0x14a")][yc("0x7b")]||this._addSuggestionMarker(d,l,u,t,Yr[yc("0x159")]());return g}[yc("0x96")](t,n,r,i,o){if(t.isCollapsed)return[];if(yc("0x104")===this[yc("0x142")])return[];const s=this[yc("0x14")][yc("0x128")].get(yc("0x20")).me.id,x=Array[yc("0x5f")](this[yc("0x77")][yc("0xbd")]())[yc("0x94")]((e=>yc("0xa6")==e.type&&e.data[yc("0xb1")]==n&&e[yc("0xb6")](t)));if(yc("0x42")===this[yc("0x142")]){const e=this[yc("0x9f")](t,yc("0x10a")).filter((({meta:t})=>t.isOwn&&!t.isInsideObject&&!t[yc("0x114")]))[yc("0x125")]((({suggestion:t})=>t));x[yc("0x13f")](...e)}const a=new Map([[t,r]]);for(const t of x){const e=yc("0xa6")==t[yc("0x4e")]?t[yc("0x48")][yc("0xe7")]:void 0,o=t[yc("0x5b")](),s=Array[yc("0x5f")](a[yc("0x1d")]())[yc("0x52")]((t=>t[yc("0xbb")](o)));if(!s)continue;const x=s.getDifference(o);this[yc("0x34")](n)&&yc("0x10a")==t.type&&0!=x.length||(a.delete(s),x.forEach((t=>{a[yc("0x174")](t,r)})),"insertion"!=t[yc("0x4e")]&&e!=i&&a.set(s[yc("0xf5")](o),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:i};n.length>37&&console[yc("0xc8")]("Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.",{key:n});const l=(yc("0xce")+(n+"|")+vc({newValue:i}))[yc("0x178")](0,60),u=this[yc("0x2")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c.push(u),this[yc("0xcc")](l,x,s,t)}return c}_registerBlockAttribute(t){this[yc("0x98")].add(t)}_registerInlineAttribute(t){this[yc("0x93")][yc("0xe1")](t)}_enableDefaultAttributesIntegration(t,e=[],n=[]){this[yc("0x21")](t,((t,...e)=>{this[yc("0x89")]((()=>{t(...e)}))}));for(const t of e)this._registerInlineAttribute(t);for(const t of n)this[yc("0x8e")](t)}_getAttributeKey(t){return yc("0xa6")==t.type?t[yc("0x36")][yc("0x64")]("|")[0]:null}_setSuggestionRange(t,e){const n=t[yc("0x109")]();this[yc("0xdc")][yc("0xdd")]((t=>{t[yc("0xaf")](n,{range:e})}))}[yc("0xd")](t){const e=t.id,n=this[yc("0x14")][yc("0x10")].get(yc("0x118"));this[yc("0x16a")][yc("0x16e")](e)||this[yc("0x16a")][yc("0x11e")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this._commentsRepository[yc("0x16c")](e);r[yc("0x12e")](yc("0x145")),r[yc("0x145")]=!1,t[yc("0x8d")]=r}[yc("0x11c")](t,n,r,i){if(t[yc("0x4e")]!=n||t[yc("0x36")]!=r||t[yc("0x10c")].id!=i)throw this[yc("0x14")][yc("0x170")](yc("0xc")),new e.CKEditorError(yc("0xc"),this)}[yc("0x43")](t,n){const r=t[yc("0x5b")]();if(n.isEqual(r))t.removeMarkers();else if(r[yc("0x2e")](n)){const i=this[yc("0xdc")].createPositionAt(n[yc("0x4f")][yc("0x14f")],yc("0x172"));this[yc("0x99")](t,this[yc("0xdc")][yc("0xef")](r[yc("0x4f")],i));const o=(0,e.uid)(),s=t[yc("0x10c")].id,x=t[yc("0x4e")]+":"+t.subType;this[yc("0x2")]({id:o,type:x,createdAt:new Date,authorId:s,data:t[yc("0x48")],attributes:t[yc("0x56")]});const a=this._model[yc("0x110")](n.end[yc("0x66")],yc("0xbf")),c=this[yc("0xdc")].createRange(a,r[yc("0x172")]);this._addSuggestionMarker(x,o,s,c)}else if(r[yc("0xf")](n.start)){const e=this._model[yc("0x110")](n.start[yc("0x14f")],"end");this[yc("0x99")](t,this[yc("0xdc")].createRange(r[yc("0x4f")],e))}else{const e=this[yc("0xdc")][yc("0x110")](n[yc("0x172")][yc("0x66")],"after");this[yc("0x99")](t,this._model[yc("0xef")](e,r[yc("0x172")]))}}[yc("0x37")](t){for(const{suggestion:e,meta:n}of this[yc("0x9f")](t,yc("0x10a"))){if(!n[yc("0x156")])continue;const r=e[yc("0x76")]();for(const e of r)if(!t[yc("0x11d")](e)[yc("0x158")])return!0}return!1}[yc("0x165")](t){const n=this[yc("0x14")][yc("0x128")][yc("0xd7")]("Users")[yc("0xa2")](t);if(!n)throw new e.CKEditorError(yc("0x27"),this);return n}[yc("0x24")](t){const e=this.editor[yc("0x128")][yc("0xd7")](yc("0x20")),n=(0,o.hashObject)("external:"+t);return e.getUser(n)||e[yc("0xd2")]({id:n,name:t})}[yc("0x148")](t,e,n,r,i){const o=this[yc("0x165")](r),s=this[yc("0xdf")][yc("0xf6")](t,e,n,o,i,(t=>{this._updateSuggestionData(n,{attributes:t});const e=this.getSuggestion(n);this[yc("0x132")](new Set([e])),this[yc("0x12b")](new Set([e]))}));return this[yc("0x1a")](s,yc("0x10d"),(()=>{this._updateSuggestionData(n,{state:yc("0x160")})}),{priority:yc("0x13d")}),this.listenTo(s,yc("0x18"),(()=>{this._updateSuggestionData(n,{state:yc("0x2d")})}),{priority:"high"}),this[yc("0x77")].set(n,s),this[yc("0x129")][yc("0x174")](s,yc("0x29")),s}_splitMarkerName(t){const e=t[yc("0x64")](":");return{group:e[0],type:e[1],subType:e[yc("0x158")]>=5?e[2]:null,id:e[yc("0x158")]<5?e[2]:e[3],authorId:e[yc("0x158")]<5?e[3]:e[4],markerCount:6==e[yc("0x158")]?e[5]:null}}[yc("0x2a")](t,n,r){const i=t[yc("0x5b")](),o=i[yc("0x4f")],s=i.end;this._setSuggestionRange(t,this._model.createRange(o,n));const x=(0,e.uid)(),a=t[yc("0x10c")].id,c=t.type+(t.subType?":"+t.subType:"");this[yc("0x2")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[yc("0x48")]});const l=this._getAttributeKey(t);(yc("0xd9")==t[yc("0x4e")]||l&&this[yc("0x34")](l))&&(r=this[yc("0xdc")][yc("0x15c")](r.parent)),this[yc("0xcc")](c,x,a,this._model[yc("0xef")](r,s))}[yc("0x9f")](t,e=null){const n=[],r=this[yc("0x14")][yc("0x128")][yc("0xd7")](yc("0x20")).me;Array[yc("0x15e")](t)||(t=[t]);for(const i of this.getSuggestions()){if(!i[yc("0x5a")])continue;if(e&&i[yc("0x4e")]!=e)continue;let o=!1;for(const e of i[yc("0x76")]()){for(const s of t){const t=s.start[yc("0x9c")](e[yc("0x172")])||s[yc("0x172")][yc("0x9c")](e[yc("0x4f")]);if(t||s[yc("0xf5")](e)){const x=s[yc("0x2e")](e)&&Ic(this[yc("0xdc")].schema,e[yc("0x4f")],s),a=e[yc("0x2e")](s)&&Ic(this[yc("0xdc")].schema,s[yc("0x4f")],e);n.push({suggestion:i,meta:{isOwn:r==i.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[yc("0xcc")](t,e,n,r,i){this[yc("0xdc")][yc("0xdd")]((o=>{let s=yc("0x31")+t+":"+e+":"+n;i&&(s=s+":"+i),o[yc("0x15")](s,{range:r,usingOperation:!0,affectsData:!0})}))}[yc("0x14c")](t){const e=t[yc("0x67")],n=t[yc("0x9b")];t[yc("0x67")]=null,t[yc("0x9b")]=null,null!=e&&e.next==t&&(e[yc("0x9b")]=n),null!=n&&n[yc("0x67")]==t&&(n[yc("0x67")]=e),"ready"==this[yc("0x129")].get(t)&&(this._suggestionState.set(t,"removed"),this[yc("0x2c")](yc("0x163"),t,e,n))}[yc("0x2")](t){const n=t.id,r=this[yc("0x85")](t);if(this[yc("0x58")]&&this[yc("0x58")][yc("0xed")]){const i=this[yc("0x14")][yc("0x128")].get(yc("0x12")),o=r[yc("0x6a")],s=r[yc("0x36")]?r[yc("0x4e")]+":"+r[yc("0x36")]:r[yc("0x4e")],x=this[yc("0x14")][yc("0x7d")],a=i[yc("0xe1")](Jr(x,yc("0xa4"))),c={id:n,type:s,hasComments:o,data:t[yc("0x48")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:r[yc("0x56")]};this[yc("0x58")][yc("0xed")](c)[yc("0x123")]((t=>{r._saved=!0,i[yc("0x95")](a),t&&t[yc("0x53")]&&(this._suggestions.get(n)[yc("0x53")]=t[yc("0x53")])}))[yc("0x10f")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this.editor[yc("0x13c")][yc("0x112")]({isUndoable:!1},(()=>{r.discard()})),r[yc("0x130")](),this._suggestions[yc("0x11f")](r.id),this[yc("0x129")][yc("0x11f")](r),t}))}return r}[yc("0x34")](t){return this[yc("0x98")].has(t)}[yc("0xe0")](t,e){const n=this[yc("0x14")][yc("0x128")][yc("0xd7")]("PendingActions"),r=this[yc("0xd1")](t);if(this._adapter&&this[yc("0x58")][yc("0x90")])if(r[yc("0x23")]){const r=n[yc("0xe1")](Jr(this[yc("0x14")][yc("0x7d")],yc("0xa4")));this[yc("0x58")].updateSuggestion(t,e)[yc("0x123")]((()=>{n[yc("0x95")](r)}))}else r.on("change:_saved",(()=>{this[yc("0xe0")](t,e)}))}[yc("0x150")](t){if(!this[yc("0x58")]||!this[yc("0x58")][yc("0xd1")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[yc("0x58")][yc("0xd1")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:r,authorId:i}=this[yc("0x15d")](t),o=this[yc("0x77")][yc("0xd7")](e)||this._createSuggestion(n,r,e,i,{});switch(this._checkSuggestionCorrectness(o,n,r,i),this._suggestionState[yc("0xd7")](o)){case yc("0x29"):this[yc("0x150")](e)[yc("0x123")]((t=>{let n=Promise.resolve();t.hasComments&&(n=this[yc("0x16a")].fetchCommentThread({channelId:this.editor[yc("0x10")][yc("0xd7")](yc("0x118")),threadId:e})),n[yc("0x123")]((()=>{this[yc("0x85")](t)._saved=!0}))})),this[yc("0x129")][yc("0x174")](o,yc("0x84"));break;case yc("0x51"):this[yc("0xe0")](e,{state:yc("0xaa")});case yc("0x12d"):this._suggestionState[yc("0x174")](o,"ready"),this[yc("0x2c")](yc("0xfd"),o);break;case yc("0x119"):this[yc("0x2c")](yc("0x176"),o)}return o[yc("0x152")](t),o}[yc("0x12b")](t){const e=Array[yc("0x5f")](t),n=e[yc("0x94")]((t=>"attribute"==t[yc("0x4e")]));this._refreshAttributeSuggestionsChain(n);const r=e[yc("0x94")]((t=>!t.isMultiRange&&"attribute"!=t.type)),i=this[yc("0x105")]({skipNotAttached:!0})[yc("0x94")]((t=>!t[yc("0x32")]&&"attribute"!=t[yc("0x4e")])),o=i.filter((e=>!t[yc("0x7f")](e))),s=new Map(i[yc("0x125")]((t=>[t,this[yc("0xdf")][yc("0x6")](t[yc("0x4e")],t[yc("0x36")],yc("0x65"))]))),x=new Map(i.map((t=>[t,t[yc("0x5b")]()]))),a=new Set,c=new Set;for(let t=0;t<r.length;t++)u(r[t],r,t+1);for(let t=0;t<r[yc("0x158")];t++)u(r[t],o,0);const l=new Set;for(let t=0;t<r.length;t++){const e=r[t];!c[yc("0x7f")](e)&&e[yc("0x67")]&&(l[yc("0xe1")](e[yc("0x67")]),e.previous[yc("0x9b")]===e&&(e[yc("0x67")][yc("0x9b")]=null),e.previous=null),!a[yc("0x7f")](e)&&e[yc("0x9b")]&&(l[yc("0xe1")](e.next),e[yc("0x9b")][yc("0x67")]===e&&(e[yc("0x9b")][yc("0x67")]=null),e[yc("0x9b")]=null)}function u(t,e,n){for(let r=n;r<e[yc("0x158")];r++){const n=d(t,e[r]);n&&(n[0].next=n[1],n[1][yc("0x67")]=n[0],a[yc("0xe1")](n[0]),c[yc("0xe1")](n[1]))}}function d(t,e){if(t[yc("0x8f")].id!==e[yc("0x8f")].id)return null;const n=s[yc("0xd7")](t)(t,e,x[yc("0xd7")](t),x[yc("0xd7")](e));return n&&s[yc("0xd7")](e)(t,e,x[yc("0xd7")](t),x.get(e))?n[1][yc("0x8d")]&&n[1].commentThread[yc("0x158")]?null:n:null}l[yc("0xf0")]&&this[yc("0x12b")](l)}[yc("0x88")](t){if(0==t[yc("0x158")])return;const e=this.getSuggestions({skipNotAttached:!0})[yc("0x94")]((t=>yc("0xa6")==t.type&&t[yc("0x14e")])),n=[],r=new Map;for(const t of e){const e=(0,o.hashObject)(t.attributes);r[yc("0x7f")](e)||(r[yc("0x174")](e,n[yc("0x158")]),n[yc("0x4")]([]));const i=r[yc("0xd7")](e);n[i][yc("0x4")](t)}!function(){n[yc("0x12a")](((t,e)=>{const n=t[0][yc("0x53")],r=e[0][yc("0x53")];return n==r?t[0][yc("0x56")][yc("0x134")]<e[0][yc("0x56")].groupId?-1:1:n<r?-1:1}));for(const t of n)t[yc("0x12a")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[yc("0x158")];t++){if(0==n[t][yc("0x158")])continue;const e=[];for(let r=t+1;r<n[yc("0x158")];r++)0!=n[r][yc("0x158")]&&i(n[t],n[r])&&e[yc("0x4")](r);for(const r of e)n[t]=n[t][yc("0x8c")](n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t[yc("0x158")];e++)t[e][yc("0x9b")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[yc("0x158")];e++)t[e][yc("0x67")]=t[e-1]||null;function i(t,e){if(t[0][yc("0x56")].groupId!==e[0].attributes.groupId&&t[0][yc("0x8f")]!==e[0][yc("0x8f")])return!1;if(n=t[0],r=e[0],(n[yc("0x6a")]||r.hasComments)&&(n[yc("0x6a")]&&r[yc("0x6a")]||!(n[yc("0x6a")]&&r.createdAt<n[yc("0x8d")][yc("0x146")][yc("0xd7")](0).createdAt||r.hasComments&&n[yc("0x53")]<r[yc("0x8d")].comments[yc("0xd7")](0)[yc("0x53")])))return!1;var n,r;const i=bc(t[0].attributes,yc("0x134")),o=bc(e[0][yc("0x56")],"groupId");return!!jr(i,o)&&(!!t[yc("0x144")]((t=>e[yc("0x9d")]((e=>t[yc("0x5b")]()[yc("0x9c")](e[yc("0x5b")]())))))&&e[yc("0x144")]((e=>t[yc("0x9d")]((t=>e.getFirstRange()[yc("0x9c")](t[yc("0x5b")]()))))))}}[yc("0x132")](t){const e=Array[yc("0x5f")](t),n=this[yc("0x105")]({skipNotAttached:!0}),r=n[yc("0x94")]((e=>!t[yc("0x7f")](e))),i=new Map(e[yc("0x125")]((t=>[t,this[yc("0xdf")][yc("0x6")](t[yc("0x4e")],t[yc("0x36")],"join")]))),o=new Map(n[yc("0x125")]((t=>[t,t.getRanges()])));for(let t=0;t<e[yc("0x158")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;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("0x158")];s++){const r=n[s];if(r[yc("0x4e")]!==e[yc("0x4e")]||r[yc("0x8f")].id!==e[yc("0x8f")].id||r[yc("0x36")]!==e[yc("0x36")])continue;if(!Oc(e,r,[yc("0x134")]))continue;if(yc("0xa6")==e[yc("0x4e")]&&e[yc("0x48")].oldValue!=r.data[yc("0xe7")])continue;if(yc("0xa6")==e[yc("0x4e")]&&t[yc("0x34")](e[yc("0x48")][yc("0xb1")]))continue;if(yc("0xd9")==e[yc("0x4e")]){const n=t.editor[yc("0x13c")],r=e.getContainedElement();if(r&&(n.schema[yc("0x75")](r)||n[yc("0x60")][yc("0xe9")](r)))continue}const x=i[yc("0xd7")](e),a=o.get(e),c=o[yc("0xd7")](r),l=e.commentThread&&e.commentThread[yc("0x158")],u=r[yc("0x8d")]&&r[yc("0x8d")][yc("0x158")];if(!l&&x(c,a))return t[yc("0x4c")](r,e),o[yc("0x11f")](e),!0;if(!u&&x(a,c))return t[yc("0x4c")](e,r),o[yc("0x11f")](r),!0}return!1}}[yc("0x4c")](t,e){if(t[yc("0x32")])for(const n of e[yc("0x76")]())t[yc("0x1")](n);else{const n=e[yc("0x5b")]()[yc("0x172")];this[yc("0x99")](t,this._model[yc("0xef")](t.getFirstRange()[yc("0x4f")],n))}e.removeMarkers()}[yc("0xd6")](t,e){const n=t[yc("0xde")](yc("0xe"))||t.startsWith("attribute")?"FORMATTING":t.toUpperCase();return Jr(this[yc("0x14")][yc("0x7d")],e+"_"+n+yc("0x97"))}[yc("0x3e")](){const t=this[yc("0x14")];(0,o.surroundingMarkersDetector)(this[yc("0xdc")],(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this._splitMarkerName(t[yc("0x168")]);if(yc("0x71")===e){r[yc("0x4")](this._getMarkerAnnouncementText(n,yc("0x73")));break}}for(const t of n){const{group:e,type:n}=this[yc("0x15d")](t[yc("0x168")]);if(yc("0x71")===e){r[yc("0x4")](this._getMarkerAnnouncementText(n,yc("0xb8")));break}}r[yc("0x158")]&&t.ui[yc("0x155")][yc("0x169")](yc("0x7"),r.join(" "))}))}[yc("0xea")](t){if(this[yc("0x3b")])return!1;const e=this[yc("0x14")],n=e[yc("0x13c")][yc("0x7a")].differ[yc("0xa7")]();if(0==n[yc("0x158")])return!1;const r=[],i=n[yc("0x94")]((t=>yc("0xa6")==t[yc("0x4e")])),o=n[yc("0x94")]((t=>yc("0x11a")==t.type&&yc("0x14b")!=t[yc("0x168")])),s=n.filter((t=>yc("0x95")==t[yc("0x4e")]&&yc("0x14b")!=t[yc("0x168")]));for(const t of i)r[yc("0x4")]({key:t.attributeKey,newValue:t[yc("0x108")],oldValue:t[yc("0xb0")],range:Lc(t[yc("0x115")],e[yc("0x13c")])});for(const t of o){const n=s[yc("0x52")]((e=>e.position[yc("0x9c")](t[yc("0x45")])));n&&r[yc("0x4")]({key:yc("0x78"),newValue:t[yc("0x168")],oldValue:n[yc("0x168")],range:e[yc("0x13c")][yc("0x102")](t[yc("0x45")][yc("0xe2")])})}return 0!=r[yc("0x158")]&&this[yc("0x13b")](t,r)}[yc("0x121")](t){let e=!1;const n=this[yc("0x14")][yc("0x13c")][yc("0x7a")].differ[yc("0xec")]()[yc("0x94")]((t=>t[yc("0x48")][yc("0x86")]&&t[yc("0x168")][yc("0xde")]("suggestion:attribute:")));for(const r of n){const{subType:n,id:i}=this[yc("0x15d")](r.name),o=n[yc("0x64")]("|")[0];for(const n of this[yc("0x105")]({skipNotAttached:!0}))n.id!=i&&"attribute"==n[yc("0x4e")]&&n[yc("0x48")]&&n[yc("0x48")].key==o&&n[yc("0x5b")]()[yc("0xbb")](r[yc("0x48")].newRange)&&(this[yc("0x15a")](n,r[yc("0x48")][yc("0x86")],t),e=!0)}return e}[yc("0x89")](t){this[yc("0x14")],this[yc("0x3b")]=!0,t()}[yc("0x87")](t){const e=this[yc("0x34")](t),n=this[yc("0x93")][yc("0x7f")](t);return e||n}[yc("0x13b")](t,e){if(0==e[yc("0x158")])return!1;let n=!1;for(const r of e){const e=this[yc("0x9f")](r[yc("0x115")],yc("0xa6")).filter((t=>!t[yc("0xba")].isNextTo))[yc("0x125")]((t=>t.suggestion)),i=(0,o.hashObject)({newValue:r[yc("0x70")]});e[yc("0x94")]((t=>{const[e,n]=t.subType[yc("0x64")]("|");return e==r[yc("0xb1")]&&n!=i})).forEach((e=>{this[yc("0x15a")](e,r[yc("0x115")],t),n=!0}))}return n}[yc("0x15a")](t,e,n){const r=t[yc("0x5b")]()[yc("0x11d")](e);0!==r[yc("0x158")]?1!==r[yc("0x158")]?this[yc("0x2a")](t,e[yc("0x4f")],e.end):this[yc("0x99")](t,r[0]):n[yc("0x62")](t[yc("0x109")]())}}class kc{constructor(t){this[yc("0x33")]=t,this._model=t[yc("0x13c")],this[yc("0x10b")]=new Map,this._defaultCallbacks=new Map,this[yc("0x164")]()}[yc("0xf6")](t,e,n,r,i,o){return new Yr(this[yc("0xdc")],{type:t,subType:e,id:n,author:r,creator:r,attributes:i,onAttributesChange:o,onAccept:(...n)=>this[yc("0x6")](t,e,yc("0x10d"))(...n),onDiscard:(...n)=>this[yc("0x6")](t,e,yc("0x18"))(...n)})}[yc("0x117")](t,e,n,r){const i=t+":"+e+":"+n;this[yc("0x10b")][yc("0x174")](i,r)}getSuggestionCallback(t,e,n){const r=t+":"+e+":"+n;return this[yc("0x10b")][yc("0xd7")](r)||this[yc("0xda")][yc("0xd7")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[yc("0x12a")](((t,e)=>t[yc("0x4f")][yc("0x7c")](e[yc("0x4f")])?1:-1)),this[yc("0xdc")][yc("0xdd")]((e=>{for(const n of t){let t;t=n.end[yc("0xae")]&&n.end[yc("0x66")]==n.start[yc("0xe2")]?e[yc("0xfe")](n.start.nodeAfter,"on"):e[yc("0xfe")](n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[yc("0xdc")].change((n=>{const{commandName:r,commandParams:i=[]}=e,o=t.map((t=>(Sc(t)&&(t=this[yc("0xdc")][yc("0xef")](t[yc("0x172")])),t)))[yc("0x94")]((t=>"$graveyard"!==t.root.rootName));if(o[yc("0x158")]<1)return;const x=Array.from(this[yc("0xdc")][yc("0x7a")].selection[yc("0x76")]())[yc("0x125")]((t=>s.LiveRange.fromRange(t)));n[yc("0x19")](o);for(const t of this[yc("0x33")][yc("0x50")][yc("0x50")]())t[yc("0xd8")]();i[yc("0x4")]({forceDefaultExecution:!0}),this[yc("0x33")][yc("0x46")](r,...i);const a=x[yc("0x94")]((t=>yc("0x16")!=t[yc("0x14a")][yc("0x7b")]));a[yc("0x158")]>0&&n.setSelection(a);for(const t of x)t[yc("0x5d")]()}))},r=(t,e)=>1==t[yc("0x158")]&&1==e[yc("0x158")]&&t[0][yc("0x172")][yc("0x9c")](e[0].start),i=(t,e,n,r)=>wc(t,e,n,r,this[yc("0xdc")])?[t,e]:wc(e,t,r,n,this[yc("0xdc")])?[e,t]:null;this[yc("0xda")][yc("0x174")](yc("0x9e"),t),this[yc("0xda")].set(yc("0x15b"),e),this[yc("0xda")][yc("0x174")](yc("0x162"),r),this._defaultCallbacks[yc("0x174")](yc("0xf4"),i),this[yc("0xda")][yc("0x174")](yc("0x6f"),e),this[yc("0xda")][yc("0x174")](yc("0x63"),t),this[yc("0xda")][yc("0x174")](yc("0x57"),r),this[yc("0xda")][yc("0x174")]("deletion:chain",i),this[yc("0xda")].set("formatInline:accept",n),this[yc("0xda")][yc("0x174")]("formatInline:discard",t),this[yc("0xda")].set("formatInline:join",r),this[yc("0xda")][yc("0x174")](yc("0xf3"),t),this[yc("0xda")][yc("0x174")]("formatBlock:accept",n),this[yc("0xda")][yc("0x174")](yc("0x161"),t),this[yc("0xda")][yc("0x174")](yc("0xe4"),r),this[yc("0xda")][yc("0x174")]("formatBlock:chain",t),this._defaultCallbacks[yc("0x174")](yc("0x92"),t),this[yc("0xda")][yc("0x174")](yc("0x6d"),((t,e)=>{if(!e)return;const n=this[yc("0x33")][yc("0x128")][yc("0xd7")](Ac);this[yc("0xdc")].change((r=>{if(yc("0x78")==e[yc("0xb1")])for(const n of t){const t=n[yc("0x4f")].nodeAfter,i=e[yc("0xe7")];r[yc("0x140")](t,i)}else if(n[yc("0x34")](e[yc("0xb1")]))for(const n of t)void 0!==e[yc("0xe7")]?r[yc("0x82")](e[yc("0xb1")],e.oldValue,n.start[yc("0xe2")]):r.removeAttribute(e.key,n[yc("0x4f")].nodeAfter);else for(const n of t)e[yc("0xe7")]?r.setAttribute(e[yc("0xb1")],e.oldValue,n):r[yc("0x137")](e.key,n)}))})),this._defaultCallbacks[yc("0x174")](yc("0x6b"),r)}}function Ic(t,e,n){for(const r of e[yc("0x66")][yc("0xfb")]({includeSelf:!0,parentFirst:!0})){if(r.root==r)return!1;if(!n[yc("0x107")](r))return!1;if(t[yc("0x75")](r)||t[yc("0xe9")](r))return!0}return!1}function Sc(t){return t[yc("0x172")][yc("0x66")]==t[yc("0x4f")][yc("0xe2")]&&t.end[yc("0xbe")]}function Rc(t,e,n,r){const i=t=>!t[yc("0x41")].is("$textProxy")&&!r[yc("0x75")](t[yc("0x41")]),o=t[yc("0x4f")][yc("0xff")](i),s=t[yc("0x172")][yc("0xff")](i,{direction:yc("0xa1")});return!(t[yc("0x4f")][yc("0x9c")](o)&&t.end.isEqual(s)||(o[yc("0x7c")](s)?n.updateMarker(e,{range:n[yc("0xef")](o,s)}):n[yc("0x62")](e),0))}function vc(t){return(0,o.hashObject)(t)}function Nc(t){const e=t[yc("0x4f")][yc("0xe2")];return e&&e.is(yc("0xb7"))}function Lc(t,e){return null==t[yc("0x172")].nodeBefore&&t.end[yc("0x66")]==t.start[yc("0xe2")]?Mc(t[yc("0x4f")].nodeAfter,e):t}function Mc(t,e){const n=e.schema[yc("0x75")](t)||e[yc("0x60")][yc("0x26")](t);return e[yc("0xef")](e[yc("0x110")](t,yc("0xc0")),n?e[yc("0x0")](t):e[yc("0x110")](t,yc("0x172")))}function wc(t,e,n,r,i){if(!Oc(t,e))return!1;if(n[yc("0x172")][yc("0x9c")](r[yc("0x4f")]))return!0;if(t[yc("0x4e")]!=e[yc("0x4e")])return!1;if(!n.end[yc("0x61")](r[yc("0x4f")]))return!1;const o=i[yc("0xef")](n[yc("0x172")],r[yc("0x4f")])[yc("0x69")]();for(const t of o)if([yc("0x5"),yc("0xfa")][yc("0xc9")](t[yc("0x4e")])&&i[yc("0x60")][yc("0xe9")](t[yc("0x41")]))return!1;return!0}function Oc(t,e,n=[]){return!(!t[yc("0x14e")]||!e[yc("0x14e")])&&jr(bc(t[yc("0x56")],n),bc(e.attributes,n))}function Fc(t,e){const n=Dc(t[yc("0x56")]),r=Dc(e);if(!t._isDataLoaded)return!1;for(const t of Object[yc("0x1d")](r))if(!jr(n[t],r[t]))return!1;return!0}function Dc(t){const e=Object.assign({},t);return delete e[yc("0x136")],delete e.tablePasteChainId,e}const Bc=["destroy","isEnabled","_removePendingAction","add","commands","model","commentThreadController","isDirty","unbind","_setPendingAction","get","acceptSuggestion","view","_editor","discardSuggestion","canDiscard","_acceptCommand","_pendingAction","PENDING_ACTION_SUGGESTION","listenTo","locale","bind","PendingActions","plugins","change:isDirty","canEditAt","execute","_discardCommand","canAccept","getRanges"];var Pc,Uc;Pc=Bc,Uc=142,function(t){for(;--t;)Pc.push(Pc.shift())}(++Uc);const jc=function(t,e){return Bc[t-=0]};class Gc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this[jc("0xd")]=e,this[jc("0x14")]=n,this[jc("0xe")]=r,this[jc("0x15")]=t,this._acceptCommand=t[jc("0xc")].get("acceptSuggestion"),this._discardCommand=t[jc("0xc")][jc("0x12")](jc("0x16")),this.view[jc("0x1d")]("isEnabled").to(this._acceptCommand,this[jc("0x5")],((t,e)=>t||e)),this[jc("0x14")][jc("0x1d")]("canAccept").to(this[jc("0x18")],jc("0x9"),(t=>t&&this[jc("0x15")][jc("0xd")][jc("0x3")](e[jc("0x7")]()))),this[jc("0x14")].bind("canDiscard").to(this[jc("0x5")],jc("0x9"),(t=>t&&this._editor[jc("0xd")].canEditAt(e[jc("0x7")]()))),this[jc("0x19")]=null,n[jc("0xf")]&&this[jc("0x11")](),this[jc("0x1b")](n,jc("0x13"),(()=>this[jc("0x13")]())),this[jc("0x1b")](n,jc("0x16"),(()=>this[jc("0x16")]())),this[jc("0x1b")](n,jc("0x2"),(()=>{n[jc("0xf")]?this[jc("0x11")]():this[jc("0xa")]()}))}acceptSuggestion(){this._acceptCommand[jc("0x4")](this[jc("0xd")].id)}[jc("0x16")](){this[jc("0x5")].execute(this[jc("0xd")].id)}[jc("0x8")](){this[jc("0x14")][jc("0x10")](jc("0x9")),this[jc("0x14")].unbind(jc("0x6")),this.view[jc("0x10")](jc("0x17")),this.stopListening(),this[jc("0xe")].destroy(),this[jc("0x19")]&&this[jc("0xa")]()}[jc("0x11")](){const t=Jr(this[jc("0x15")][jc("0x1c")],jc("0x1a"));this[jc("0x19")]=this._editor[jc("0x1")].get("PendingActions")[jc("0xb")](t)}[jc("0xa")](){null!==this[jc("0x19")]&&this[jc("0x15")][jc("0x1")][jc("0x12")](jc("0x0")).remove(this._pendingAction),this[jc("0x19")]=null}}const Vc=["fire","commentsListView","editor","_model","locale","updateComment","authoredAt","destroy","removeComment","_createCommentViews","commentThread","editorConfig","isReadOnly","_config","_createCommentThreadInputView","focus","submit","element","canDiscard","delegate","canAccept","cancel","length","isActive","addComment","commentThreadInputView","bind","descriptionParts","_localUser","set","hasDirtyComment","setData","isDirty","isEnabled","showInput","value","assign","commentInputView"];var Hc,zc;Hc=Vc,zc=215,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[Wc("0xe")]=null,this.commentThreadInputView=null,this[Wc("0x4")]("isActive",!1),this[Wc("0x4")]("authoredAt",e.authoredAt),this[Wc("0x1")](Wc("0x13")).to(e),this.set(Wc("0x2"),[]),this[Wc("0x4")](Wc("0x7"),!1),this[Wc("0x4")](Wc("0x8"),!1),this[Wc("0x4")](Wc("0x21"),!1),this[Wc("0x4")](Wc("0x1f"),!1),this[Wc("0x10")]=e,this[Wc("0x3")]=n,this[Wc("0x1a")]=r,r.disableComments?this[Wc("0x4")](Wc("0x23"),1):this[Wc("0x16")]()}[Wc("0x1c")](){this[Wc("0x1e")][Wc("0x1c")]()}[Wc("0x14")](){this.commentsListView&&this.commentsListView[Wc("0x14")](),this[Wc("0x0")]&&this[Wc("0x0")].destroy(),super[Wc("0x14")]()}[Wc("0x16")](){const{CommentsListView:t}=this[Wc("0x1a")];this.commentsListView=new t(this[Wc("0x11")],this._model[Wc("0x17")],Object[Wc("0xb")]({CommentView:this[Wc("0x1a")].CommentView},this._config)),this[Wc("0xe")][Wc("0x20")](Wc("0x15")).to(this),this[Wc("0xe")][Wc("0x20")](Wc("0x12")).to(this),this[Wc("0xe")][Wc("0x1")](Wc("0x24")).to(this),this.set(Wc("0x23"),this[Wc("0xe")].length+1),this[Wc("0x1")](Wc("0x23")).to(this[Wc("0xe")],Wc("0x23"),(t=>t+1)),this[Wc("0x0")]=this[Wc("0x1b")](),this.on(Wc("0x15"),(()=>this[Wc("0x1c")]())),this[Wc("0x1")](Wc("0x7")).to(this[Wc("0xe")],Wc("0x5"),this[Wc("0x0")][Wc("0xc")],Wc("0xa"),((t,e)=>t||!!e))}[Wc("0x1b")](){const{CommentThreadInputView:t}=this[Wc("0x1a")],e=new t(this[Wc("0x11")],this[Wc("0x3")],this[Wc("0x1a")][Wc("0x18")]),n=e[Wc("0xc")];return e[Wc("0x1")](Wc("0x9")).to(this,Wc("0x24"),this[Wc("0x10")][Wc("0x17")],Wc("0x19"),n,Wc("0xa"),((t,e,n)=>!!n||t&&!e)),n.on(Wc("0x1d"),((t,e)=>{this[Wc("0xd")](Wc("0x25"),e),n[Wc("0xf")][Wc("0x6")]("")})),n.on(Wc("0x22"),(()=>this[Wc("0x1c")]())),n.bind("disabledSubmit").to(this[Wc("0x10")][Wc("0x17")],Wc("0x19")),e}}const qc=["querySelector","children","ck-annotation__user","@external","editorReady","delegate","editorDestroyed","render","ck-annotation__info","_createButton","_config","ck-suggestion--discard","bind","ck-annotation__info-name","isExternal","extendTemplate",'<span class="ck-suggestion-type">',"type","div","innerHTML","ck-comment__external","canAccept","getTemplate","ck-suggestion-",'"></span>',"ck-annotation","EXTERNAL_IMPORT_WORD_SUGGESTION","isEnabled","author","creator","source","Discard suggestion","attributes","userView","name","ck-suggestion--accept","getExternalSuggestionNote","cancel","discardSuggestion","commentThread","split","set","ck-suggestion-wrapper--active","ck-suggestion__actions","locale","_model","discardButton","commentThreadInputView","</p>","ck-annotation__actions","value","ck-suggestion__user","time","disableComments","ck-suggestion-wrapper","change:description","map","descriptionParts","</span>","setTemplate","color","EXTERNAL_AVATAR","span","push","acceptButton","isActive","getUserViewNotificationText","commentsListView","check","ck-suggestion--disabled-comments","ck-suggestion__main","canDiscard","title","EXTERNAL_SUGGESTION","importWord","ck-annotation__content-wrapper","createElement",'" title="',"Accept suggestion","ck-suggestion__info-name","_descriptionElement","description"];var Xc,$c;Xc=qc,$c=246,function(t){for(;--t;)Xc.push(Xc.shift())}(++$c);const Zc=function(t,e){return qc[t-=0]};class Yc extends Kc{constructor(e,n,r,i){super(e,n,r,i),this[Zc("0x29")]("type",""),this[Zc("0xc")](Zc("0x11")).to(this,Zc("0x39"),(t=>t&&t[0]?t[0][Zc("0x11")]:"")),this[Zc("0xc")](Zc("0x51")).to(this,"descriptionParts",this,Zc("0x41"),((t,e)=>{let n="";for(const e of t)n+="<p>"+Jc(e.content,e[Zc("0x3c")])+Zc("0x30");return e?n:(0,o.trimHtml)(n,{limit:140})})),this[Zc("0x50")]=null,this.acceptButton=this[Zc("0x9")](Jr(e,Zc("0x4e")),t.icons[Zc("0x44")],Zc("0x23"),"acceptSuggestion","sw"),this.acceptButton[Zc("0xc")](Zc("0x1b")).to(this,Zc("0x15")),this[Zc("0x2e")]=this[Zc("0x9")](Jr(e,Zc("0x1f")),t.icons[Zc("0x25")],Zc("0xb"),Zc("0x26"),"sw"),this.discardButton[Zc("0xc")]("isEnabled").to(this,Zc("0x47")),this[Zc("0x21")]=new o.UserView(e,this[Zc("0x2d")][Zc("0x1c")],this.getUserViewNotificationText()),this.userView[Zc("0xf")]({attributes:{class:[Zc("0x33"),Zc("0x2")]}}),this[Zc("0x3b")](this.getTemplate())}[Zc("0x16")](){const t=this.bindTemplate,e=[{tag:Zc("0x12"),attributes:{class:["ck-suggestion__info",Zc("0x8")]},children:[{tag:"span",children:[{text:this[Zc("0x21")][Zc("0x22")]}],attributes:{class:[Zc("0x4f"),Zc("0xd")]}},{tag:Zc("0x34"),attributes:{datetime:t.to("authoredAt"),class:["ck-comment__info-time","ck-annotation__info-time"]},children:[{text:t.to("authoredAt",(t=>this._config.formatDateTime(t)))}]}]},{tag:Zc("0x12"),attributes:{class:[Zc("0x2b"),Zc("0x31")]},children:[this[Zc("0x40")],this[Zc("0x2e")]]},{tag:"div",attributes:{class:[Zc("0x4b")]}}];this[Zc("0x2d")][Zc("0xe")]&&e[Zc("0x3f")]({tag:Zc("0x12"),attributes:{class:[Zc("0x14")]},children:[{text:this[Zc("0x24")]()}]});const n={tag:"div",attributes:{class:[Zc("0x36"),t.if(Zc("0x41"),Zc("0x2a")),t.to(Zc("0x11"),(t=>Zc("0x17")+t)),this[Zc("0xa")][Zc("0x35")]&&Zc("0x45")],"data-suggestion-id":this[Zc("0x2d")].id,"data-thread-id":this[Zc("0x2d")][Zc("0x27")].id,"data-author-id":this._model[Zc("0x1c")].id,tabindex:-1},children:[{tag:Zc("0x12"),attributes:{class:["ck-suggestion",Zc("0x19")]},children:[this.userView,{tag:Zc("0x12"),attributes:{class:[Zc("0x46"),"ck-annotation__main"]},children:e}]}]};return this[Zc("0x43")]&&this.commentThreadInputView&&(n[Zc("0x1")][Zc("0x3f")](this.commentsListView,this[Zc("0x2f")]),this[Zc("0x43")][Zc("0x5")](Zc("0x4")).to(this),this[Zc("0x43")][Zc("0x5")](Zc("0x6")).to(this),this[Zc("0x2f")].delegate(Zc("0x4")).to(this),this[Zc("0x2f")][Zc("0x5")](Zc("0x6")).to(this)),n}[Zc("0x7")](){super[Zc("0x7")](),this._descriptionElement=this.element[Zc("0x0")](".ck-annotation__content-wrapper"),this[Zc("0x50")][Zc("0x13")]=this.description,this.on(Zc("0x37"),((t,e,n)=>{this[Zc("0x50")][Zc("0x13")]=n}))}[Zc("0x9")](t,e,n,r,o){const s=new i.ButtonView(this.locale);return s[Zc("0x29")]({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s.extendTemplate({attributes:{class:n}}),s.on("execute",(()=>{this.fire(r,this._model.id)})),s}getExternalSuggestionNote(){return Zc("0x4a")===this[Zc("0x2d")].attributes[Zc("0x3")][Zc("0x1e")]?Jr(this[Zc("0x2c")],Zc("0x1a")):Jr(this[Zc("0x2c")],Zc("0x49"))}[Zc("0x42")](){return this[Zc("0x2d")][Zc("0xe")]?Zc("0x4a")===this[Zc("0x2d")][Zc("0x20")][Zc("0x3")][Zc("0x1e")]?Jr(this[Zc("0x2c")],"EXTERNAL_IMPORT_WORD_AVATAR",this[Zc("0x2d")][Zc("0x1d")][Zc("0x22")]):Jr(this[Zc("0x2c")],Zc("0x3d"),this[Zc("0x2d")][Zc("0x1d")][Zc("0x22")]):null}}function Jc(t,e){let n="";return n+=t[Zc("0x28")]("*")[Zc("0x38")](((t,e)=>e%2!=0?Zc("0x10")+Qc(t)+Zc("0x3a"):Qc(t))).join(""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[Zc("0x32")]+Zc("0x4d")+e[Zc("0x48")]+Zc("0x18")),n}function Qc(t){const e=document[Zc("0x4c")](Zc("0x3e"));return e.innerText=t,e[Zc("0x13")]}const tl=["change:previous","isDirty","values","define","push","get","plugins","trackChanges","Annotations","size","Discard all selected suggestions","clear","commands","commentThread","_suggestionToController","_refreshActiveMarkers","Discard all suggestions","createAnnotationView","Accept all selected suggestions","config","button","mainView","TrackChangesUI","activeAnnotations","init","bind","actionView","switchbutton","suggestion-","listenTo","buttonView","_updateController","getMarkers","getByInnerView","map","comments","Accept all suggestions","toMany","SuggestionThreadView","trackChanges.disableComments","_annotationViews","length","acceptSelectedSuggestions","editing","view","isMultiRange","isOn","isInContent","model","trackChanges.SuggestionThreadView","discardButton","createAnnotation","_viewToController","value","_bindAnnotationToEditors","requires","CommentsUI","previous","discardSelectedSuggestions","_initializeController","_unbindEditors","stopListening","change:activeAnnotations","acceptAllSuggestions","Track changes","focus","_handleControllerBuffer","_createUIButton","_disableComments","isEnabled","getDescriptions","separator","suggestionUnloaded","pluginName","editor","_destroyController","unbind","EditorAnnotations","TrackChangesEditing","filter","head","type","CommentsRepository","suggestionChanged","commandName","has","descriptionParts","destroy","lowest","execute","acceptButton","innerView","add","locale","getAllAdjacentSuggestions","delete","addSourceCollector","getJoined","activeMarkers","some","set","_handleSuggestionControllerDelayed","CommentView"];var el,nl;el=tl,nl=186,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("0x4b")](){return[Ac,o.Users,rl("0x66"),"Annotations",rl("0x61")]}static get[rl("0x5d")](){return rl("0x2a")}constructor(t){super(t),this[rl("0x22")]=new Map,this[rl("0x48")]=new Map,this[rl("0x3c")]=new Map,this[rl("0x56")]=new Map;const e=this[rl("0x5e")][rl("0x27")];e.define(rl("0x45"),Yc),e[rl("0x17")](rl("0x3b"),!1),this[rl("0x58")]=e.get(rl("0x3b"))}[rl("0x12")](t,e){0===this[rl("0x56")][rl("0x1d")]&&setTimeout((()=>{for(const[t,e]of this[rl("0x56")]){const n=this[rl("0x22")].has(t);n||e?n&&e&&this[rl("0x5f")](t):this[rl("0x4f")](t)}this[rl("0x56")][rl("0x1f")](),this[rl("0x5e")][rl("0x1a")].get(rl("0x61")).refreshSelectedViews(),this[rl("0x23")]()}),10),this._handleControllerBuffer.set(t,e)}[rl("0x2c")](){const t=this[rl("0x5e")],e=t.plugins[rl("0x19")](rl("0x62")),n=t.plugins[rl("0x19")](rl("0x1c")),r=t.plugins[rl("0x19")](rl("0x61")),i=t[rl("0x1a")][rl("0x19")](rl("0x66"));t.ui.componentFactory[rl("0x9")](rl("0x1b"),(t=>this._createUIButton(t))),r[rl("0xd")]((()=>{const t=[];for(const[e,n]of Array.from(this[rl("0x22")])){const r=e.getAllAdjacentSuggestions(),i=[];for(const t of r){if(!t.isInContent)continue;if(t[rl("0x41")]){i[rl("0x18")](...t.getRanges());continue}const e=t.getFirstRange();if(i[rl("0x3d")]>0){const t=i[0][rl("0xe")](e);if(t){i[0]=t;continue}}i.push(e)}t[rl("0x18")]([n[rl("0x40")],i])}return t})),this.listenTo(e,"suggestionLoaded",((t,e)=>{this.listenTo(e,rl("0x14"),((t,n,r,i)=>{e[rl("0x43")]&&(null==r?(this._updateController(i[rl("0x64")]),this[rl("0x12")](e,!1)):(this[rl("0x33")](r[rl("0x64")]),null==i&&this[rl("0x12")](e,!0)))})),null!==e[rl("0x4d")]?this[rl("0x33")](e[rl("0x64")]):this[rl("0x12")](e,!1)})),this[rl("0x31")](e,rl("0x5c"),((t,e,n)=>{this[rl("0x51")](e,rl("0x14")),this._handleControllerBuffer[rl("0xc")](e),this._suggestionToController.has(e)&&this[rl("0x5f")](e),n&&this._updateController(n[rl("0x64")])})),this[rl("0x31")](e,rl("0x0"),((t,e)=>{this._updateController(e)})),this[rl("0x31")](n,rl("0x52"),(()=>{this._refreshActiveMarkers()})),this.listenTo(i,"addComment",((t,{threadId:n,isFromAdapter:r})=>{if(r||!e.hasSuggestion(n))return;const i=e.getSuggestion(n);this[rl("0x22")][rl("0x19")](i).view[rl("0x55")]()}),{priority:rl("0x5")})}[rl("0x23")](){const t=this[rl("0x5e")][rl("0x1a")][rl("0x19")]("Annotations"),e=this[rl("0x5e")][rl("0x1a")].get(rl("0x62")),n=Array.from(t[rl("0x2b")],(t=>t[rl("0x8")]))[rl("0x63")]((t=>this._viewToController.has(t))),r=[];for(const t of n){const e=this[rl("0x48")][rl("0x19")](t)[rl("0x44")][rl("0xb")]();r[rl("0x18")](...e.reduce(((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[rl("0xf")]=r}[rl("0x57")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),r=this.editor[rl("0x20")].get(rl("0x1b")),o=Jr(t,rl("0x54"));n[rl("0x32")][rl("0x11")]({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[rl("0x32")][rl("0x2d")](rl("0x42")).to(r,rl("0x49")),n[rl("0x32")].on(rl("0x6"),(()=>{r[rl("0x6")](),this[rl("0x5e")].editing[rl("0x40")].focus()}));const s=new e.Collection,x=[{type:rl("0x2f"),model:{withText:!0,label:o,commandName:rl("0x1b")}},{type:rl("0x5b")},{type:"button",model:{withText:!0,label:Jr(t,rl("0x38")),commandName:rl("0x53")}},{type:rl("0x28"),model:{withText:!0,label:Jr(t,rl("0x26")),commandName:rl("0x3e")}},{type:rl("0x28"),model:{withText:!0,label:Jr(t,rl("0x24")),commandName:"discardAllSuggestions"}},{type:"button",model:{withText:!0,label:Jr(t,rl("0x1e")),commandName:rl("0x4e")}}];for(const t of x){let e={type:rl("0x5b")};if(t[rl("0x44")]){const n=new i.ViewModel(t[rl("0x44")]),r=this[rl("0x5e")][rl("0x20")][rl("0x19")](n[rl("0x1")]);n.bind("isOn",rl("0x59")).to(r,rl("0x49"),rl("0x59")),e={type:t[rl("0x65")],model:n}}s.add(e)}(0,i.addListToDropdown)(n,s);const a=x[rl("0x63")]((t=>null!=t[rl("0x44")]))[rl("0x36")]((t=>this.editor.commands[rl("0x19")](t[rl("0x44")][rl("0x1")]))),c=n[rl("0x32")];return c[rl("0x2e")][rl("0x60")](rl("0x59")),c.arrowView.unbind(rl("0x59")),c[rl("0x2e")].bind("isEnabled").to(r,"isEnabled"),c.arrowView[rl("0x2d")](rl("0x59"))[rl("0x39")](a,rl("0x59"),((...t)=>t[rl("0x10")]((t=>t)))),n.on("execute",(t=>{this[rl("0x5e")].execute(t.source[rl("0x1")]),this.editor[rl("0x3f")][rl("0x40")][rl("0x55")]()})),n}[rl("0x4f")](t){const e=this[rl("0x5e")],n=e.config,r=e[rl("0x1a")][rl("0x19")](rl("0x1c")),i=e.plugins[rl("0x19")](rl("0x66")),s=e.plugins[rl("0x19")](rl("0x61")),x=e[rl("0x1a")].get(o.Users).me,a=n[rl("0x19")]("trackChanges")[rl("0x3a")],{CommentsListView:c,CommentThreadInputView:l}=e[rl("0x1a")][rl("0x19")](rl("0x4c"));let u,d;this[rl("0x3c")][rl("0x2")](t.id)?(d=this[rl("0x3c")].get(t.id),u=d[rl("0x29")]):(u=new a(e[rl("0xa")],t,x,{disableComments:this[rl("0x58")],editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n.get("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[rl("0x19")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[rl("0x19")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,o.getDateTimeFormatter)(n[rl("0x19")](rl("0xa"))),CommentView:n[rl("0x19")](rl("0x37"))[rl("0x13")],CommentsListView:c,CommentThreadInputView:l}),u[rl("0x7")].on("execute",(()=>{e[rl("0x3f")][rl("0x40")][rl("0x55")]()})),u[rl("0x46")].on(rl("0x6"),(()=>{e[rl("0x3f")].view[rl("0x55")]()})),d=r[rl("0x25")](this.editor[rl("0xa")],u),d.bind(rl("0x15")).to(u,rl("0x15")),d[rl("0x2d")](rl("0x3d")).to(u),d.bind(rl("0x65")).to(u,rl("0x65"),(t=>rl("0x30")+t)),this[rl("0x3c")].set(t.id,d));const g=i.createCommentThreadController(t[rl("0x21")],u),f=new Gc(e,t,u,g),h=t.getAllAdjacentSuggestions()[rl("0x63")]((t=>t.isInContent));u[rl("0x3")]=e[rl("0x1a")][rl("0x19")]("TrackChangesEditing")._descriptionFactory[rl("0x5a")](h),this[rl("0x22")].set(t,f),this[rl("0x48")][rl("0x11")](u,f);const m=r[rl("0x47")]({view:d,target:()=>{const n=[],r=t[rl("0xb")]()[rl("0x63")]((t=>t.isInContent));for(const t of r)n.push(...t[rl("0x34")]());return(0,o.getAllMarkersDomElementsSorted)(e[rl("0x3f")],n)},type:()=>rl("0x30")+f[rl("0x40")].type});i[rl("0x4a")](u,m),r[rl("0x9")](m),s.registerAnnotation(m)}[rl("0x5f")](t){const e=this[rl("0x5e")].plugins[rl("0x19")](rl("0x66")),n=this.editor[rl("0x1a")][rl("0x19")](rl("0x1c")),r=this._suggestionToController[rl("0x19")](t),i=r[rl("0x40")],o=n[rl("0x35")](i);e[rl("0x50")](i),o&&n.remove(o),this[rl("0x22")][rl("0xc")](t),this[rl("0x48")].delete(i),r[rl("0x4")]()}_updateController(t){if(!t[rl("0x43")]||!this[rl("0x22")].has(t))return;const e=this.editor[rl("0x1a")][rl("0x19")](rl("0x62")),n=this[rl("0x22")][rl("0x19")](t),r=t[rl("0xb")]();n[rl("0x40")].descriptionParts=e._descriptionFactory[rl("0x5a")](r)}[rl("0x4")](){for(const t of this[rl("0x22")].keys())this[rl("0x5f")](t);for(const t of this[rl("0x3c")][rl("0x16")]())t[rl("0x29")][rl("0x4")]();super[rl("0x4")]()}}var ol,sl,xl=["pluginName","editor","getSuggestion","get","requires","addSuggestionData","plugins","TrackChanges","addSuggestion","adapter"];ol=xl,sl=108,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,"Comments"]}static get[al("0x2")](){return al("0x9")}set[al("0x1")](t){this[al("0x3")][al("0x8")][al("0x5")](Ac)[al("0x1")]=t}get adapter(){return this[al("0x3")][al("0x8")].get(Ac)[al("0x1")]}[al("0x0")](t){return this[al("0x3")][al("0x8")].get(Ac)[al("0x7")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[al("0x3")][al("0x8")][al("0x5")](Ac).getSuggestions({skipNotAttached:t,toJSON:e})}[al("0x4")](t){return this.editor.plugins[al("0x5")](Ac).getSuggestion(t)}}const ll=["editorCreator","div","constructor","createElement","result","getDataWithDiscardedSuggestions","pluginName","track-changes-data-invalid-editor-creator","trackChangesData.editorCreator","users","plugins","TrackChangesData","appendChild","createDocumentFragment","getDataWithAcceptedSuggestions","addUser","getRootNames","Pagination","trackChangesData","get","config","reduce","_adapter","TrackChangesEditing","rootsAttributes","getUser","define","name","init","addSuggestionData","data","map","create","push","CommentsRepository","model","document","getRootsAttributes","editor","TrackChangesDataGetter","useAnonymousUser","requires","destroy","end","Users"];var ul,dl;ul=ll,dl=470,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=[gl("0x2a")];class hl extends t.Plugin{static get[gl("0x15")](){return[Ac]}static get pluginName(){return gl("0x24")}[gl("0x8")](){const t=this.editor;if(t.config[gl("0x6")](gl("0x21"),(e=>{const n=t[gl("0xf")][gl("0x10")][gl("0x29")]()[gl("0x1")](((t,e)=>(t[e]="",t)),{});return t[gl("0x1b")][gl("0xc")](n,e)})),"function"!=typeof t.config[gl("0x2c")](gl("0x2b"))[gl("0x19")])throw new e.CKEditorError(gl("0x20"))}[gl("0x27")](t){return bl(this[gl("0x12")],!0,t)}[gl("0x1e")](t){return bl(this[gl("0x12")],!1,t)}}class ml extends t.Plugin{static get[gl("0x1f")](){return gl("0x13")}constructor(t){super(t),this[gl("0x1d")]=gl("0x17")}[gl("0x8")](){this.editor.plugins[gl("0x2c")](gl("0xe"))[gl("0x2")]={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("0x12")][gl("0x23")][gl("0x2c")](gl("0x3"))[gl("0x2")]=null}}function pl(t){return void 0!==t[gl("0x11")]}async function bl(t,e,n){const r=(0,o.sanitizeEditorConfig)(t,fl);r[gl("0x23")][gl("0xd")](Ac,ml),r[gl("0x4")]=pl(t)?t.getRootsAttributes():void 0;const i=document[gl("0x26")](),s=t[gl("0x0")][gl("0x2c")](gl("0x2b")).editorCreator,x=await s(r,(()=>function(t){const e=document[gl("0x1c")](gl("0x1a"));return t[gl("0x25")](e),e}(i)));!function(t,e){const n=t[gl("0xf")][gl("0x10")][gl("0x29")]().reduce(((e,n)=>(e[n]=t[gl("0xa")][gl("0x2c")]({rootName:n}),e)),{}),r=t[gl("0x23")][gl("0x2c")](gl("0x18"))[gl("0x22")][gl("0xb")]((t=>({id:t.id,name:t[gl("0x7")]}))),i=t[gl("0x23")][gl("0x2c")](gl("0x3")).getSuggestions({skipNotAttached:!0,toJSON:!0}),o=e.plugins.get(gl("0x18")),s=e[gl("0x23")][gl("0x2c")]("TrackChangesEditing");for(const t of r)o[gl("0x5")](t.id)||o[gl("0x28")](t);o.me||o[gl("0x14")]();for(const t of i)s[gl("0x9")](t);e[gl("0xa")].set(n)}(t,x),x.execute(e?"acceptAllSuggestions":"discardAllSuggestions");const a=pl(x)?x.getFullData(n):x[gl("0xa")][gl("0x2c")](n);return await x[gl("0x16")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{BaseSuggestionThreadView:()=>Kc,TrackChanges:()=>cl,TrackChangesData:()=>hl,TrackChangesEditing:()=>Ac});var t=n(704),e=n(209),o=n(273),i=n(417),s=n(492),x=n(995);const a=["has","forceDisabled","commands","value","_disableUnsupportedCommands","refresh","_enabledCommands","TrackChangesCommand","editor","_enableCommands"];var c,l;c=a,l=391,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.value=!1,this[u("0x4")](),this._isEnabledBasedOnSelection=!1}refresh(){this.isEnabled=!0}execute(){this[u("0x2")]=!this[u("0x2")],this[u("0x2")]?this[u("0x3")]():this._enableCommands()}[u("0x3")](){for(const t of this[u("0x7")][u("0x1")].commands())t.affectsData&&!this[u("0x5")][u("0x9")](t)&&t[u("0x0")](u("0x6"))}[u("0x8")](){for(const t of this.editor.commands[u("0x1")]())t.affectsData&&!this[u("0x5")][u("0x9")](t)&&t.clearForceDisabled("TrackChangesCommand")}}const g=["editor","TrackChangesEditing","canEditAt","_suggestions","execute","isEnabled","model","get","refresh","track-changes-accept-suggestion-not-found","getRanges","plugins","acceptSuggestion"];var f,h;f=g,h=296,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("0x6")]=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[m("0xb")](){this[m("0x8")]=!0}[m("0x7")](t){const n=this[m("0x6")][m("0xa")](t);if(!n)throw new e.CKEditorError(m("0xc"),this);const r=n[m("0x0")]();this[m("0x3")][m("0x9")][m("0x5")](r)&&this.editor[m("0x1")][m("0xa")](m("0x4"))[m("0x2")](n)}}const b=["canEditAt","execute","editor","get","TrackChangesEditing","track-changes-discard-suggestion-not-found","discardSuggestion","isEnabled","_isEnabledBasedOnSelection","getRanges","refresh","model","_suggestions","plugins"];var E,_;E=b,_=235,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0x1")]=e,this[T("0xd")](),this[T("0xb")]=!1}refresh(){this[T("0xa")]=!0}[T("0x4")](t){const n=this[T("0x1")].get(t);if(!n)throw new e.CKEditorError(T("0x8"),this);const r=n[T("0xc")]();this.editor[T("0x0")][T("0x3")](r)&&this[T("0x5")][T("0x2")][T("0x6")](T("0x7"))[T("0x9")](n)}}const C=["isObject","next","schema","isIntersecting","createPositionAfter","content","push","color","getRanges","end","isTouching","splice","add","map","execute","change","isInContent","isArray","createPositionAt","sort","deletion","value","from","createPositionBefore","join","isCollapsed","length","type"];var A,k;A=C,k=340,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0xf")](((t,e)=>"deletion"==t[I("0x17")]&&I("0x10")!=e.type?-1:I("0x10")!=t[I("0x17")]&&"deletion"==e[I("0x17")]?1:0))}function S(t,e){let n,r=0;const o=[],i=e[I("0x1a")];for(;r<t[I("0x16")];){const s=t[r],x=t[r+1];n||(n=e[I("0x13")](s)),v(e,s,x)||(o[I("0x2")](e.createRange(n,i[I("0x18")](s)?e[I("0x0")](s):e[I("0xe")](s,I("0x5")))),n=null),r++}return o}function v(t,e,n){if(!n)return!1;const r=t.createPositionAfter(e),o=t[I("0x13")](n);return r.isTouching(o)}function N(t,e,n){for(;n[I("0x16")];){const r=n[I("0x7")](0,100);t[I("0xb")]((()=>{for(const t of r)t[I("0xc")]&&e[I("0xa")](t.id)}))}}const L=["isInContent","execute","some","isEnabled","_suggestions","model","refresh","values","editor","from","_command"];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._command=e,this[O("0x6")]=n,this.refresh(),this._isEnabledBasedOnSelection=!1}[O("0x8")](){const t=Array[O("0x0")](this._suggestions[O("0x9")]())[O("0x4")]((t=>t[O("0x2")]));this[O("0x5")]=this[O("0x1")][O("0x5")]&&t}[O("0x3")](){const t=R(Array[O("0x0")](this[O("0x6")][O("0x9")]()));for(const e of t){const t=e.getRanges();if(!this[O("0xa")][O("0x7")].canEditAt(t))return}N(this[O("0xa")].model,this[O("0x1")],t)}}const D=["selection","_suggestions","_command","_isEnabledBasedOnSelection","execute","size","_selectedSuggestions","isEnabled","canEditAt","model","editor","from","getRanges","refresh","values"];var P,B;P=D,B=317,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("0x0")]=e,this._suggestions=n,this[U("0x4")]=new Set,this[U("0xb")](),this[U("0x1")]=!1}[U("0xb")](){const t=this.editor[U("0x7")].document[U("0xd")],e=Array[U("0x9")](this[U("0xe")][U("0xc")]());this[U("0x4")]=function(t,e){const n=Array[I("0x12")](t.getRanges()),r=new Set;for(const o of e)if(o[I("0xc")])for(const e of n)for(const n of o[I("0x4")]())(e[I("0x1b")](n)||t[I("0x15")]&&!o.isMultiRange&&o[I("0x19")]&&n[I("0x5")][I("0x6")](e.start))&&r[I("0x8")](o);return r}(t,e),this[U("0x5")]=this[U("0x0")][U("0x5")]&&!!this[U("0x4")][U("0x3")]}[U("0x2")](){const t=R(Array[U("0x9")](this._selectedSuggestions));for(const e of t){const t=e[U("0xa")]();if(!this.editor[U("0x7")][U("0x6")](t))return}N(this[U("0x8")][U("0x7")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,r=H(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const rt=et||nt||Function("return this")();const ot=rt.Symbol;var it=Object.prototype,st=it.hasOwnProperty,xt=it.toString,at=ot?ot.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var r=!0}catch(t){}var o=xt.call(t);return r&&(e?t[at]=n:delete t[at]),o};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=ot?ot.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const 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,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(ht(t)?Rt:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return St(n)?n:void 0};const Lt=Nt(rt,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var 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 Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var r=n.__data__;if(!Lt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(r)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var re=Object.prototype.hasOwnProperty;const oe=function(t,e,n){var r=t[e];re.call(t,e)&&V(r,n)&&(void 0!==n||e in t)||ne(t,e,n)};const ie=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var x=e[i],a=r?r(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),o?ne(n,x,a):oe(n,x,a)}return n};const se=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var 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,Re=Ie&&Ie.exports===ke&&et.process;const Se=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var ve=Se&&Se.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),r=!n&&de(t),o=!n&&!r&&be(t),i=!n&&!r&&!o&&Ne(t),s=n||r||o||i,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var 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&&ie(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var r in t)("constructor"!=r||!e&&He.call(t,r))&&n.push(r);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&ie(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?rt.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,r=Ze?Ze(n):new t.constructor(n);return t.copy(r),r};const Je=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const rn=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const on=function(t,e){return ie(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return ie(t,an(t),e)};const ln=function(t,e,n){var r=e(t);return ge(t)?r:sn(r,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=Nt(rt,"DataView");const fn=Nt(rt,"Promise");const 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),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=pn||fn&&Rn(fn.resolve())!=bn||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 pn;case An:return bn;case kn:return En;case In:return _n}return e});const Sn=Rn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=rt.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=ot?ot.prototype:void 0,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]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const tr=function t(e,n,r,o,i,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=i?r(e,o,i,s):r(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=Sn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!i){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Qn[d])return i?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(o){x.add(t(o,n,r,o,e,s))})):Kn(e)&&e.forEach((function(o,i){x.set(i,t(o,n,r,i,e,s))}));var h=u?void 0:(l?c?dn:un:c?We:je)(e);return te(h||e,(function(o,i){h&&(o=e[i=o]),oe(x,i,t(o,n,r,i,e,s))})),x};const er=function(t){return tr(t,5)};const nr=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,or=/^\w*$/;const ir=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(or.test(t)||!rr.test(t)||null!=e&&t in Object(e))};function sr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=t.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(sr.Cache||Zt),n}sr.Cache=Zt;const xr=sr;var ar=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cr=/\\(\\)?/g;const lr=function(t){var e=xr(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ar,(function(t,n,r,o){e.push(r?o.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o};var dr=ot?ot.prototype:void 0,gr=dr?dr.toString:void 0;const fr=function t(e){if("string"==typeof e)return e;if(ge(e))return ur(e,t)+"";if(nr(e))return gr?gr.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const hr=function(t){return null==t?"":fr(t)};const mr=function(t,e){return ge(t)?t:ir(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 o=-1,i=(e=mr(e,t)).length,s=i-1,x=t;null!=x&&++o<i;){var a=pr(e[o]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(o!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[o+1])?[]:{})}oe(x,a,c),x=x[a]}return t};const Er=function(t,e,n){return null==t?t: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,o,i){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Cr:void 0;for(i.set(t,e),i.set(e,t);++u<x;){var f=t[u],h=e[u];if(r)var m=s?r(h,f,u,e,t,i):r(f,h,u,t,e,i);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!Ar(e,(function(t,e){if(!kr(g,e)&&(f===t||o(f,t,n,r,i)))return g.push(e)}))){d=!1;break}}else if(f!==h&&!o(f,h,n,r,i)){d=!1;break}}return i.delete(t),i.delete(e),d};const Rr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};const Sr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vr=ot?ot.prototype:void 0,Nr=vr?vr.valueOf:void 0;const Lr=function(t,e,n,r,o,i,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Rr;case"[object Set]":var a=1&r;if(x||(x=Sr),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var l=Ir(x(t),x(e),r,o,i,s);return s.delete(t),l;case"[object Symbol]":if(Nr)return Nr.call(t)==Nr.call(e)}return!1};var Mr=Object.prototype.hasOwnProperty;const wr=function(t,e,n,r,o,i){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:Mr.call(e,l)))return!1}var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var g=!0;i.set(t,e),i.set(e,t);for(var f=s;++c<a;){var h=t[l=x[c]],m=e[l];if(r)var p=s?r(m,h,l,e,t,i):r(h,m,l,t,e,i);if(!(void 0===p?h===m||o(h,m,n,r,i):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return i.delete(t),i.delete(e),g};var Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Pr=Object.prototype.hasOwnProperty;const Br=function(t,e,n,r,o,i){var s=ge(t),x=ge(e),a=s?Fr:Sn(t),c=x?Fr:Sn(e),l=(a=a==Or?Dr:a)==Dr,u=(c=c==Or?Dr:c)==Dr,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return i||(i=new Qt),s||Ne(t)?Ir(t,e,n,r,o,i):Lr(t,e,a,n,r,o,i);if(!(1&n)){var g=l&&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 i||(i=new Qt),o(h,m,n,r,i)}}return!!d&&(i||(i=new Qt),wr(t,e,n,r,o,i))};const Ur=function t(e,n,r,o,i){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Br(e,n,r,o,t,i))};const jr=function(t,e){return Ur(t,e)};const Gr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vr=function(t,e){for(var n=0,r=(e=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,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i};const zr=function(t,e){return e.length<2?t:Vr(t,Hr(e,0,-1))};const Wr=function(t,e){return e=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=["reduce","data","split","getRanges","_saved","end","delete","getMultiRangeId","_markerNames","map","getMarkers","removeMarker","commentThread","onAccept","markers","addMarkerName","nodeBefore","author","_isDataLoaded","length","decorate","head","hasComments","_onAccept","previous","getRange","getMarkerNames","discard","getFirstMarker","from","type","_onAttributesChange","getContainedElement","getItems","setAttribute","attributes","creator","toJSON","isIntersectingWithRange","authoredAt","getFirstRange","accept","subType","start","set","next","change","clear","_model","isExternal","_onDiscard","removeMarkers","addMarker","onAttributesChange","getAllAdjacentSuggestions","get","isMultiRange","@external","createdAt","addRange","isIntersecting","add","nodeAfter"];var Xr,$r;Xr=qr,$r=394,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Zr=function(t,e){return qr[t-=0]};class Yr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0x2")]=!1,this.id=e.id,this[Zr("0xe")]=e.type,this[Zr("0x1a")]=e[Zr("0x1a")]||null,this[Zr("0x1")]=e.author,this[Zr("0x14")]=e[Zr("0x14")]||e.author,this[Zr("0x21")]=Boolean(e[Zr("0x13")]&&e.attributes[Zr("0x29")]),this[Zr("0x30")]=null,this[Zr("0x20")]=t,this._onAccept=e[Zr("0x3c")],this[Zr("0x22")]=e.onDiscard,this._onAttributesChange=e[Zr("0x25")],this._markerNames=new Set,this.createdAt=null,this[Zr("0x1c")](Zr("0x17"),null),this.set(Zr("0x13"),e.attributes||{}),this[Zr("0x1c")](Zr("0x8"),null),this[Zr("0x1c")]("next",null),this[Zr("0x1c")](Zr("0x3b"),null),this.set(Zr("0x33"),!1),this[Zr("0x4")]("accept"),this.decorate(Zr("0xb"))}get[Zr("0x5")](){let t=this;for(;t[Zr("0x8")];)t=t.previous;return t}get[Zr("0x6")](){return!!this[Zr("0x3b")]&&this[Zr("0x3b")].length>0}get[Zr("0x28")](){return 0!=this[Zr("0x37")].size&&6==Array[Zr("0xd")](this[Zr("0x37")])[0][Zr("0x31")](":")[Zr("0x3")]}get isInContent(){return null!==this[Zr("0xc")]()}[Zr("0x3e")](t){this[Zr("0x37")][Zr("0x2d")](t)}[Zr("0xa")](){return Array[Zr("0xd")](this[Zr("0x37")])}[Zr("0x39")](){return this[Zr("0xa")]()[Zr("0x38")]((t=>this[Zr("0x20")][Zr("0x3d")][Zr("0x27")](t))).filter((t=>t))}[Zr("0xc")](){return this[Zr("0x39")]()[0]||null}[Zr("0x23")](){this[Zr("0x20")][Zr("0x1e")]((t=>{for(const e of this.getMarkers())t[Zr("0x3a")](e)})),this[Zr("0x37")][Zr("0x1f")]()}[Zr("0x3a")](t){this._model[Zr("0x1e")]((e=>{e.removeMarker(t)})),this[Zr("0x37")][Zr("0x35")](t)}[Zr("0x2b")](t){const e="suggestion:"+this.type+":"+this[Zr("0x1a")]+":"+this.id+":"+this.creator.id+":"+Yr[Zr("0x36")]();this[Zr("0x3e")](e),this[Zr("0x20")][Zr("0x1e")]((n=>{n[Zr("0x24")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x16")](t){for(const e of this.getRanges())if(e[Zr("0x2c")](t))return!0;return!1}[Zr("0x32")](){return this[Zr("0x39")]()[Zr("0x38")]((t=>t[Zr("0x9")]()))}getItems(){return this.getRanges()[Zr("0x2f")](((t,e)=>[...t,...e[Zr("0x11")]()]),[])}[Zr("0x18")](){var t;return(null===(t=this[Zr("0xc")]())||void 0===t?void 0:t[Zr("0x9")]())||null}[Zr("0x10")](){const t=this[Zr("0x32")]();if(1!=t[Zr("0x3")])return null;const e=t[0],n=e[Zr("0x1b")][Zr("0x2e")],r=e[Zr("0x34")][Zr("0x0")];return n instanceof s.Element?n!=r?null:n:null}[Zr("0x19")](){this[Zr("0x7")](this[Zr("0x32")](),this[Zr("0x30")],this[Zr("0x13")]),this.removeMarkers()}[Zr("0xb")](){this[Zr("0x22")](this[Zr("0x32")](),this[Zr("0x30")],this[Zr("0x13")]),this.removeMarkers()}[Zr("0x26")](){const t=[];let e=this[Zr("0x5")];for(;e;)t.push(e),e=e[Zr("0x1d")];return t}[Zr("0x12")](t,e){const n=er(this[Zr("0x13")]);Er(n,t,e),jr(n,this[Zr("0x13")])||(this[Zr("0x13")]=n,this[Zr("0xf")](n))}removeAttribute(t){const e=er(this.attributes);Kr(e,t),jr(e,this[Zr("0x13")])||(this[Zr("0x13")]=e,this[Zr("0xf")](this.attributes))}[Zr("0x15")](){return{id:this.id,type:this[Zr("0x1a")]?this[Zr("0xe")]+":"+this[Zr("0x1a")]:this[Zr("0xe")],authorId:this[Zr("0x14")].id,createdAt:this[Zr("0x2a")],hasComments:this[Zr("0x6")],data:this[Zr("0x30")],attributes:this[Zr("0x13")]}}static getMultiRangeId(){return(0,e.uid)().substr(1,5)}}function Jr(t,e,n){const r=t.t;switch(e){case"Track changes":return r("Track changes");case"Accept suggestion":return r("Accept suggestion");case"Discard suggestion":return r("Discard suggestion");case"Accept all suggestions":return r("Accept all suggestions");case"Accept all selected suggestions":return r("Accept all selected suggestions");case"Discard all suggestions":return r("Discard all suggestions");case"Discard all selected suggestions":return r("Discard all selected suggestions");case"*Reset font size*":return r("*Reset font size*");case"*Reset font family*":return r("*Reset font family*");case"*Reset font color*":return r("*Reset font color*");case"*Reset font background color*":return r("*Reset font background color*");case"*Remove image text alternative*":return r("*Remove image text alternative*");case"*Reset image width*":return r("*Reset image width*");case"*Remove link*":return r("*Remove link*");case"*Check item*":return r("*Check item*");case"*Uncheck item*":return r("*Uncheck item*");case"*Remove all formatting*":return r("*Remove all formatting*");case"*Replace table cells*":return r("*Replace table cells*");case"*Merge cells*":return r("*Merge cells*");case"*Split cell:* vertically":return r("*Split cell:* vertically");case"*Split cell:* horizontally":return r("*Split cell:* horizontally");case"*Indent:* %0":return r("*Indent:* %0",n);case"*Outdent:* %0":return r("*Outdent:* %0",n);case"*Change to:* %0":return r("*Change to:* %0",n);case"*Insert:* %0":return r("*Insert:* %0",n);case"*Format:* %0":return r("*Format:* %0",n);case"*Format:* change table properties":return r("*Format:* change table properties");case"*Format:* change table cell properties":return r("*Format:* change table cell properties");case"*Format:* insert into %0":return r("*Format:* insert into %0",n);case"*Format:* remove from %0":return r("*Format:* remove from %0",n);case"*Replace image URL*":return r("*Replace image URL*");case"*Format:* resize table":return r("*Format:* resize table");case"*Format:* set order to reversed":return r("*Format:* set order to reversed");case"*Format:* set order to regular":return r("*Format:* set order to regular");case"*Format:* set start index to %0":return r("*Format:* set start index to %0",n);case"*Change %0 content*":return r("*Change %0 content*",n);case"*Remove:* %0":return r("*Remove:* %0",n);case"*Merge:* %0":return r("*Merge:* %0",n);case"*Split:* %0":return r("*Split:* %0",n);case"*Remove format:* %0":return r("*Remove format:* %0",n);case"*Set font size:* %0":return r("*Set font size:* %0",n);case"*Set font family:* %0":return r("*Set font family:* %0",n);case"*Set format to:* %0":return r("*Set format to:* %0",n);case"*Set font color:* %0":return r("*Set font color:* %0",n);case"*Set font background color:* %0":return r("*Set font background color:* %0",n);case"*Set format:* %0":return r("*Set format:* %0",n);case"*Set image text alternative:* %0":return r("*Set image text alternative:* %0",n);case"*Set image width:* %0":return r("*Set image width:* %0",n);case"*Set link:* %0":return r("*Set link:* %0",n);case"*Set highlight:* %0":return r("*Set highlight:* %0",n);case"*Remove highlight*":return r("*Remove highlight*");case"FORMAT_HIGHLIGHT":return r({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return r({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return r({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return r({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return r({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return r({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return r({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return r({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return r({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return r({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return r({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return r({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return r({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return r({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return r({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return r({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return r({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return r({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return r({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return r({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return r({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return r({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return r({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return r({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return r({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return r({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return r({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return r({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return r({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return r({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return r({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return r({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return r({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return r({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return r({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return r({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return r({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return r({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return r({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return r({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return r({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return r({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return r({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return r({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return r({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return r({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return r({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return r({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return r({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return r({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return r({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return r({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return r({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return r({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return r({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return r({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return r({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return r({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return r({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return r({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return r({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return r({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return r({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return r({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return r({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return r({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return r({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return r({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return r({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return r({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Qr=["$1 $2","getDescriptions","_itemLabels","_handleInsertRemoveSuggestionDescription","_customCallbacks","data","*Remove format:* %0","addFormat","getFirstRange","subType","$text","attribute","nodeAfter","newValue","matchingCallback","has","item","match","length","getWalker","push","*Remove:* %0","_schema","_handleAttributeSuggestionDescription","deletion","softBreak","indexOf","checkChild","format","removeFormat","isObject","start","remove","_resolveDescriptionItems","insertion","_locale","Object","getItemLabel","_itemLabelsCallbacks","label","addObject","ELEMENT_SPACE","*Change to:* %0","previousSibling","add","element","_attributeLabels","elementEnd","quantity","addEmptyContainer","EmptyContainer","normal","elementStart","REPLACE_TEXT","text","join","_handleCustomCallbackDescription","*Set format:* %0","registerElementLabel","nextSibling","$textProxy","removeObject","map","removeContainer","_addDescriptionItems","isEmpty","*Insert:* %0","Container","key","replace","name","addContainer","type","registerDescriptionCallback","_handleRenameSuggestionDescription","get","skip","removeEmptyContainer"];var to,eo;to=Qr,eo=379,function(t){for(;--t;)to.push(to.shift())}(++eo);const no=function(t,e){return Qr[t-=0]};class ro{constructor(t,e){this[no("0xf")]=[],this[no("0xd")]=new Map,this[no("0x31")]=[],this[no("0x39")]=new Map,this._schema=t,this[no("0x2e")]=e}[no("0xc")](t){const e=[],n=new Set,r=new Set;for(let o=0;o<t[no("0x1d")];o++){const i=t[o];if(!i.isInContent)continue;const s=this._handleCustomCallbackDescription(i);if(s){if(null!=i.subType){if(n[no("0x1a")](i[no("0x14")]))continue;n[no("0x37")](i[no("0x14")])}e[no("0x1f")](s)}else if(no("0x16")!=i[no("0x5")])no("0x2d")!=i.type&&"deletion"!=i.type||this[no("0xe")](e,i,t[o+1]);else{const t=i[no("0x10")][no("0x1")];if(r[no("0x1a")](t))continue;r[no("0x37")](i[no("0x10")][no("0x1")]),t==Cc?this[no("0x7")](e,i):this._handleAttributeSuggestionDescription(e,i)}}return this[no("0x2c")](e)}[no("0x6")](t){this[no("0xf")][no("0x1f")](t)}[no("0x45")](t,n,r=e.priorities[no("0x3e")]){"function"==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:r}):this[no("0xd")].set(t,n)}registerAttributeLabel(t,e){this[no("0x39")].set(t,e)}[no("0x30")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[no("0x19")](t)){n=e[no("0x32")];break}return n||(n=this[no("0xd")].get(t[no("0x3")])),n?n(e):1!==e?e+" "+t[no("0x3")]+"s":""+t[no("0x3")]}[no("0x4b")](t,e){const n=e[no("0x13")]()[no("0x1e")](),r=no("0x2d")==e[no("0x5")]?no("0x37"):no("0x2b");for(const e of n){const o=e[no("0x1b")],i=t[t.length-1];if(o.is(no("0x47")))i&&i[no("0x5")][no("0x25")](no("0x0"))>-1&&t.pop(),i&&no("0x41")==i[no("0x5")]?i[r]+=o[no("0x10")]:t[no("0x1f")]({type:no("0x41"),add:no("0x37")==r?o[no("0x10")]:"",remove:"remove"==r?o[no("0x10")]:""});else if(this[no("0x21")][no("0x29")](o)){const s=o;if(i&&i[no("0x5")][no("0x25")]("Container")>-1&&t.pop(),no("0x3a")==e[no("0x5")])continue;i&&i[no("0x5")]==r+no("0x2f")&&i[no("0x38")][no("0x3")]==s[no("0x3")]?i.quantity++:t[no("0x1f")]({type:r+no("0x2f"),element:s,quantity:1}),n[no("0x9")]((t=>!(no("0x3a")==t.type&&t.item==o)))}else if(this[no("0x21")][no("0x26")](o,no("0x15"))||o.is(no("0x38"),no("0x24"))){const n=o;if("add"==r&&no("0x3f")==e.type||"remove"==r&&no("0x3a")==e.type)continue;if(i&&-1==i[no("0x5")][no("0x25")]("Container")){"text"==i[no("0x5")]&&(i[r]+="\n");continue}let s;if(s=no("0x37")==r?n[no("0x46")]&&!this._schema[no("0x29")](n[no("0x46")])?n[no("0x46")]:null:n.previousSibling&&!this[no("0x21")][no("0x29")](n[no("0x36")])?n.previousSibling:null,n[no("0x4c")]||s&&s.isEmpty){const e=s&&s[no("0x4c")]?s:n;i&&i.type==r+no("0x3d")&&i[no("0x38")][no("0x3")]==e[no("0x3")]?i[no("0x3b")]++:t[no("0x1f")]({type:r+no("0x3d"),element:e,quantity:1})}else t[no("0x1f")]({type:r+no("0x0"),element:n})}}}_resolveDescriptionItems(t){const e=this[no("0x2e")],n=[],r=[],o=[];for(const i of t)switch(i[no("0x5")]){case no("0x41"):if(i[no("0x37")]=i[no("0x37")][no("0x2")](/(\S)\u000A+(\S)/g,no("0xb"))[no("0x2")](/\u000A/g,""),i[no("0x2b")]=i[no("0x2b")].replace(/(\S)\u000A+(\S)/g,no("0xb"))[no("0x2")](/\u000A/g,""),""!=i[no("0x37")]&&""!=i[no("0x2b")]){n[no("0x1f")]({type:no("0x2"),content:Jr(e,no("0x40"),['"'+i.remove+'"','"'+i.add+'"'])});continue}if(null!=i[no("0x37")][no("0x1c")](/^ +$/)){n.push({type:"insertion",content:Jr(e,no("0x4d"),Jr(e,no("0x34"),i[no("0x37")].length))});continue}if(null!=i[no("0x2b")].match(/^ +$/)){n[no("0x1f")]({type:no("0x23"),content:Jr(e,no("0x20"),Jr(e,no("0x34"),i[no("0x2b")].length))});continue}if(""!=i[no("0x37")]){n.push({type:no("0x2d"),content:Jr(e,no("0x4d"),'"'+i[no("0x37")]+'"')});continue}n.push({type:no("0x23"),content:Jr(e,no("0x20"),'"'+i[no("0x2b")]+'"')});continue;case no("0x3c"):case no("0x33"):n[no("0x1f")]({type:no("0x2d"),content:Jr(e,no("0x4d"),this[no("0x30")](i.element,i[no("0x3b")]))});continue;case no("0xa"):case no("0x48"):n[no("0x1f")]({type:"deletion",content:Jr(e,no("0x20"),this[no("0x30")](i[no("0x38")],i[no("0x3b")]))});continue;case no("0x4"):n[no("0x1f")]({type:no("0x2d"),content:Jr(e,"*Split:* %0",this[no("0x30")](i[no("0x38")],i[no("0x3b")]))});continue;case no("0x4a"):n[no("0x1f")]({type:no("0x23"),content:Jr(e,"*Merge:* %0",this[no("0x30")](i[no("0x38")],i[no("0x3b")]))});continue;case"addFormat":r[no("0x1f")](i.key);continue;case no("0x28"):o[no("0x1f")](i[no("0x1")]);continue;default:n[no("0x1f")](i)}if(r[no("0x1d")]){const t=r.map((t=>this[no("0x39")][no("0x1a")](t)?this._attributeLabels[no("0x8")](t):t))[no("0x42")](", ");n[no("0x1f")]({type:no("0x27"),content:Jr(this[no("0x2e")],no("0x44"),t)})}if(o[no("0x1d")]){const t=o[no("0x49")]((t=>this._attributeLabels.has(t)?this._attributeLabels[no("0x8")](t):t))[no("0x42")](", ");n[no("0x1f")]({type:no("0x27"),content:Jr(this[no("0x2e")],no("0x11"),t)})}return n}[no("0x43")](t){for(const e of this[no("0xf")]){const n=e(t);if(n&&no("0x5")in n)return n}}[no("0x22")](t,e){const n=e.data,r=void 0===n[no("0x18")]?no("0x28"):no("0x12");t[no("0x1f")]({type:r,key:n[no("0x1")]})}[no("0x7")](t,e){t.push({type:no("0x27"),content:Jr(this[no("0x2e")],no("0x35"),this[no("0x30")](e[no("0x13")]()[no("0x2a")][no("0x17")],1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this[no("0x4b")](t,e),n&&n.getFirstRange()&&!e[no("0x13")]().end.isEqual(n[no("0x13")]().start)){const n=t[t[no("0x1d")]-1],r="insertion"==e.type?no("0x37"):no("0x2b");n&&"text"==n[no("0x5")]&&(n[r]+="\n")}}}const oo=["enableCommand","TrackChangesEditing","showAIAssistant","commands","afterInit","get"];var io,so;io=oo,so=208,function(t){for(;--t;)io.push(io.shift())}(++so);const xo=function(t,e){return oo[t-=0]};class ao extends t.Plugin{[xo("0x0")](){const t=this.editor,e=t.plugins.get(xo("0x3"));t[xo("0x5")][xo("0x1")](xo("0x4"))&&e[xo("0x2")](xo("0x4"))}}const co=["editor","has","value","FORMAT_ALIGN_TO_CENTER","afterInit","left","commandName","FORMAT_ALIGN_TO_LEFT","registerDescriptionCallback","plugins","format","type","registerAttributeLabel","right","get","*Format:* %0","FORMAT_JUSTIFY_TEXT","_registerLegacyDescription","formatBlock","FORMAT_ALIGNMENT","_descriptionFactory","justify","TrackChangesEditing","alignment","center","_enableDefaultAttributesIntegration","commandParams","locale"];var lo,uo;lo=co,uo=387,function(t){for(;--t;)lo.push(lo.shift())}(++uo);const go=function(t,e){return co[t-=0]};class fo extends t.Plugin{[go("0x9")](){const t=this[go("0x5")],e=t[go("0x4")];if(!t[go("0xe")][go("0x6")]("AlignmentEditing"))return;const n=t[go("0xe")][go("0x13")]("TrackChangesEditing");n[go("0x2")](go("0x0"),[],[go("0x0")]),n[go("0x19")][go("0x11")](go("0x0"),Jr(e,go("0x18"))),this[go("0x16")]()}[go("0x16")](){const t=this[go("0x5")],e=t.locale;t[go("0xe")].get(go("0x1b"))[go("0x19")][go("0xd")]((t=>{if(go("0x17")!=t[go("0x10")])return;const{data:n}=t;if(n&&go("0x0")==n[go("0xb")]){const t=n[go("0x3")][0][go("0x7")];return{type:go("0xf"),content:Jr(e,go("0x14"),function(t){switch(t){case go("0xa"):return Jr(e,go("0xc"));case go("0x12"):return Jr(e,"FORMAT_ALIGN_TO_RIGHT");case go("0x1"):return Jr(e,go("0x8"));case go("0x1a"):return Jr(e,go("0x15"))}}(t))}}}))}}const ho=["_registerLegacyDescription","subscript","locale","*Format:* %0","slice","_enableDefaultAttributesIntegration","SuperscriptEditing","FORMAT_","underline","SubscriptEditing","CodeEditing","registerDescriptionCallback","get","toUpperCase","commandParams","bold","editor","plugins","formatInline","FORMAT_UNDERLINE","TrackChangesEditing","UnderlineEditing","type","code","FORMAT_SUPERSCRIPT","BoldEditing","format","FORMAT_BOLD","_descriptionFactory","ItalicEditing","FORMAT_CODE","strikethrough","StrikethroughEditing","forceValue","afterInit","FORMAT_STRIKETHROUGH"];var mo,po;mo=ho,po=171,function(t){for(;--t;)mo.push(mo.shift())}(++po);const bo=function(t,e){return ho[t-=0]},Eo=[bo("0x22"),bo("0x2"),bo("0x1e"),bo("0x13"),bo("0x5"),bo("0x12"),bo("0xf")];class _o extends t.Plugin{[bo("0x7")](){const t=this[bo("0x19")],e=t[bo("0x1a")][bo("0x15")](bo("0x1d")),n=t[bo("0xb")];for(const r of Eo){if(!t.plugins.has(r))continue;const o=r[bo("0xd")](0,-7).toLowerCase(),i=bo("0x10")+o[bo("0x16")]();e[bo("0xe")](o,[o]),e[bo("0x1")].registerAttributeLabel(o,Jr(n,i))}this[bo("0x9")]()}_registerLegacyDescription(){const t=this[bo("0x19")],e=t[bo("0xb")],n=t[bo("0x1a")].get(bo("0x1d"));function r(t,r){n[bo("0x1")][bo("0x14")]((n=>{if(bo("0x1b")!=n[bo("0x1f")])return;const{data:o}=n;return o&&o.commandName===t?o[bo("0x17")][0][bo("0x6")]?{type:bo("0x23"),content:Jr(e,bo("0xc"),r)}:{type:bo("0x23"),content:Jr(e,"*Remove format:* %0",r)}:void 0}))}r(bo("0x18"),Jr(e,bo("0x0"))),r("italic",Jr(e,"FORMAT_ITALIC")),r(bo("0x11"),Jr(e,bo("0x1c"))),r(bo("0x20"),Jr(e,bo("0x3"))),r(bo("0x4"),Jr(e,bo("0x8"))),r(bo("0xa"),Jr(e,"FORMAT_SUBSCRIPT")),r("superscript",Jr(e,bo("0x21")))}}const To=["registerDescriptionCallback","model","*Set format:* %0","*Remove format:* %0","selection","change","commandParams","schema","enableCommand","commandName","format","plugins","get","editor","markBlockFormat","_descriptionFactory","has","BlockQuoteEditing","$root","blockQuote","locale","forceValue","value","checkChild","commands","getSelectedBlocks","TrackChangesEditing","afterInit","from","filter"];var yo,Co;yo=To,Co=426,function(t){for(;--t;)yo.push(yo.shift())}(++Co);const Ao=function(t,e){return To[t-=0]};class ko extends t.Plugin{[Ao("0x15")](){const t=this[Ao("0x7")],e=t[Ao("0xe")];if(!t[Ao("0x5")][Ao("0xa")](Ao("0xb")))return;const n=t[Ao("0x5")].get(Ao("0x14")),r=this[Ao("0x7")][Ao("0x12")][Ao("0x6")](Ao("0xd"));n[Ao("0x2")](Ao("0xd"),((e,o={})=>{const i=this.editor[Ao("0x19")].document[Ao("0x1c")],s=o&&void 0!==o[Ao("0xf")]?o[Ao("0xf")]:!r[Ao("0x10")];let x=[];if(s){const e=Array.from(i[Ao("0x13")]())[Ao("0x17")]((t=>Io(t)||function(t,e){const n=e[Ao("0x11")](t.parent,"blockQuote"),r=e[Ao("0x11")]([Ao("0xc"),Ao("0xd")],t);return n&&r}(t,this.editor.model[Ao("0x1")])));x=S(e,t[Ao("0x19")])}else{const e=Array[Ao("0x16")](i[Ao("0x13")]()).filter((t=>Io(t)));x=S(e,t[Ao("0x19")])}t[Ao("0x19")][Ao("0x1d")]((()=>{for(const t of x)n[Ao("0x8")](t,{commandName:"blockQuote",commandParams:[{forceValue:s}]})}))})),n[Ao("0x9")][Ao("0x18")]((t=>{const{data:n}=t;if(n&&Ao("0xd")==n[Ao("0x3")]){const t=Jr(e,"ELEMENT_BLOCK_QUOTE");return n[Ao("0x0")][0][Ao("0xf")]?{type:Ao("0x4"),content:Jr(e,Ao("0x1a"),t)}:{type:"format",content:Jr(e,Ao("0x1b"),t)}}}))}}function Io(t){return Ao("0xd")==t.parent.name}const Ro=["plugins","afterInit","has","changeCaseTitle","CaseChange","TrackChangesEditing","changeCaseLower","enableCommand","get","editor"];var So,vo;So=Ro,vo=139,function(t){for(;--t;)So.push(So.shift())}(++vo);const No=function(t,e){return Ro[t-=0]};class Lo extends t.Plugin{[No("0x2")](){const t=this[No("0x0")];t[No("0x1")][No("0x3")](No("0x5"))&&(t[No("0x1")].get(No("0x6"))[No("0x8")]("changeCaseUpper"),t[No("0x1")][No("0x9")](No("0x6"))[No("0x8")](No("0x7")),t.plugins[No("0x9")]("TrackChangesEditing")[No("0x8")](No("0x4")))}}const Mo=["TrackChangesEditing","get","commands","editor","plugins","afterInit","ckbox"];var wo,Oo;wo=Mo,Oo=265,function(t){for(;--t;)wo.push(wo.shift())}(++Oo);const Fo=function(t,e){return Mo[t-=0]};class Do extends t.Plugin{[Fo("0x6")](){const t=this[Fo("0x4")];t[Fo("0x3")][Fo("0x2")](Fo("0x0"))&&t[Fo("0x5")][Fo("0x2")](Fo("0x1")).enableCommand(Fo("0x0"))}}const Po=["locale","plugins","selection","config","outdentCodeBlock","schema","format","formatBlock","has","checkChild","codeBlock","indentCodeBlock","language","isLimit","*Set format:* %0","registerDescriptionCallback","parent","markBlockFormat","ELEMENT_CODE_BLOCK","value","registerElementLabel","label","commandParams","commandName","filter","rootElement","enableCommand","change","_descriptionFactory","get","CodeBlock","type","getSelectedBlocks","forceValue","from","model"];var Bo,Uo;Bo=Po,Uo=351,function(t){for(;--t;)Bo.push(Bo.shift())}(++Uo);const jo=function(t,e){return Po[t-=0]};class Go extends t.Plugin{afterInit(){const t=this.editor;if(!t[jo("0xa")][jo("0x11")](jo("0x3")))return;const e=t[jo("0xa")][jo("0x2")]("TrackChangesEditing"),n=t[jo("0x9")],r=t[jo("0xc")][jo("0x2")](jo("0x13")).languages,o=t.commands[jo("0x2")](jo("0x13"));e[jo("0x23")](jo("0x14")),e[jo("0x23")](jo("0xd")),e.enableCommand(jo("0x13"),((n,i={})=>{const s=t[jo("0x8")],x=t[jo("0x8")].document[jo("0xb")],a=i&&void 0!==i.forceValue?i.forceValue:!o[jo("0x1c")];let c;i[jo("0x15")]||(i[jo("0x15")]=r[0].language),c=a?Array.from(x[jo("0x5")]())[jo("0x21")]((t=>{return Vo(t)||(e=t,n=s[jo("0xe")],!e.is(jo("0x22"))&&!n[jo("0x16")](e)&&n[jo("0x12")](e[jo("0x19")],jo("0x13")));var e,n})):Array[jo("0x7")](x[jo("0x5")]())[jo("0x21")]((t=>Vo(t)));const l=S(c,s);s[jo("0x0")]((()=>{for(const t of l)e[jo("0x1a")](t,{commandName:jo("0x13"),commandParams:[{...i,forceValue:a}],formatGroupId:"blockName"})}))})),e[jo("0x1")][jo("0x1d")]("codeBlock",(t=>Jr(n,jo("0x1b"),t))),e[jo("0x1")][jo("0x18")]((t=>{if(jo("0x10")!=t[jo("0x4")])return;const e=n.t,{data:o}=t;if(!o||jo("0x13")!=o[jo("0x20")])return;const i=o[jo("0x1f")][0][jo("0x15")],s=e(r.find((t=>t[jo("0x15")]===i))[jo("0x1e")]).toLowerCase();return o[jo("0x1f")][0][jo("0x6")]?{type:"format",content:Jr(n,jo("0x17"),Jr(n,jo("0x1b"),1)+" ("+s+")")}:{type:jo("0xf"),content:Jr(n,"*Remove format:* %0",Jr(n,jo("0x1b"),1))}}))}}function Vo(t){return jo("0x13")==t.name}const Ho=["enableCommand","plugins","afterInit","addCommentThread","CommentsEditing"];var zo,Wo;zo=Ho,Wo=442,function(t){for(;--t;)zo.push(zo.shift())}(++Wo);const Ko=function(t,e){return Ho[t-=0]};class qo extends t.Plugin{[Ko("0x0")](){const t=this.editor;t[Ko("0x4")].has(Ko("0x2"))&&t.plugins.get("TrackChangesEditing")[Ko("0x3")](Ko("0x1"))}}var Xo=n(181);const $o=["schema","listItem","push","hasAttribute","toViewElement","mapper","getAttribute","createUIElement","toViewPosition","writer","getCustomProperty","isContent","get","listIndent","elementEnd","insert","ck-suggestion-marker--active","addClass","plugins","test","getWalker","nextSibling","type","markerRange","element","ck-suggestion-marker-","previousPosition","bindElementToMarker","consumable","markerName","getItems","TrackChangesEditing","isAtEnd","includes","name","span"];var Zo,Yo;Zo=$o,Yo=336,function(t){for(;--t;)Zo.push(Zo.shift())}(++Yo);const Jo=function(t,e){return $o[t-=0]};function Qo(t,e,n){const r=[];for(const o of e[Jo("0x12")]())o[Jo("0x1b")](t)&&r[Jo("0x1a")](n.createRangeOn(o));return r}function ti(t,e,{showActiveMarker:n=!0}={}){const r=t[Jo("0x6")][Jo("0x0")](Jo("0x13"));return(o,i,s)=>{if(!s[Jo("0x10")][Jo("0x7")](i[Jo("0xb")],o[Jo("0x16")]))return;const x=i.markerRange[Jo("0x8")](),a=i[Jo("0xb")].start,c=t.model[Jo("0x18")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c[Jo("0x23")](e);const n=s[Jo("0x1d")][Jo("0x1c")](e);if(n&&n[Jo("0x22")]("addHighlight"))return;Jo("0x2")==t[Jo("0xa")]&&c.isBlock(e)&&!c.isLimit(e)&&(e[Jo("0x9")]||a[Jo("0x14")]?l&&l.parent==e||(l=e,f(t.previousPosition),g=!0):u=u||t[Jo("0xe")])}function f(t){const o=s[Jo("0x21")][Jo("0x1f")](Jo("0x17"),{class:Jo("0xd")+e}),x=s[Jo("0x1d")][Jo("0x20")](t);n&&r.activeMarkers[Jo("0x15")](i[Jo("0x11")])&&s[Jo("0x21")][Jo("0x5")](Jo("0x4"),o),s[Jo("0x21")][Jo("0x3")](x,o),s.mapper[Jo("0xf")](o,i[Jo("0x11")])}d||g||!u||f(u)}}const ei=["getFirstRange","get","buffer","downcastDispatcher","rootName","unbindElementFromMarkerName","data","TrackChangesEditing","fromRange","enqueueChange","$graveyard","uiElement","showSuggestionHighlights","addMarker:suggestion:deletion","batch","markerNameToElements","requires","enableCommand","lock","markerName","document","root","removeMarker:suggestion:deletion","deleteForward","model","setSelection","bind","isCollapsed","start","commands","init","delete","editing","remove","mapper","high","createRange","merge","detach","options","createSelection","selection"];var ni,ri;ni=ei,ri=208,function(t){for(;--t;)ni.push(ni.shift())}(++ri);const oi=function(t,e){return ei[t-=0]};class ii extends t.Plugin{static get[oi("0x12")](){return[Xo.Delete]}[oi("0x20")](){const t=this.editor,e=t.plugins[oi("0x3")](oi("0x9"));e[oi("0x13")](oi("0x21"));const n=t[oi("0x1f")][oi("0x3")]("deleteForward");e[oi("0x13")](oi("0x19"),((e,r={})=>{const o=t.model[oi("0x0")](t[oi("0x1a")][oi("0x16")][oi("0x1")]);o[oi("0x1d")]&&t.model.modifySelection(o,{direction:"forward",unit:r.unit});const i=o[oi("0x2")](),x=s.LiveRange[oi("0xa")](i);let a;e(r),a=oi("0xc")==x[oi("0x17")][oi("0x6")]?t[oi("0x1a")][oi("0x26")](i[oi("0x1e")]):t.model.createRange(x[oi("0x1e")],x.end),x[oi("0x28")](),t[oi("0x1a")][oi("0xb")](n[oi("0x4")][oi("0x10")],(t=>{n[oi("0x4")][oi("0x14")](),t[oi("0x1b")](t.createRange(a.end)),n[oi("0x4")].unlock()}))})),t[oi("0x22")][oi("0x5")].on(oi("0xf"),ti(t,oi("0x27")),{priority:oi("0x25")}),t[oi("0x8")].downcastDispatcher.on(oi("0xf"),((e,n,r)=>{r[oi("0x29")][oi("0xe")]&&ti(t,oi("0x27"),{showActiveMarker:!1})[oi("0x1c")](this)(e,n,r)}),{priority:"high"}),t.editing[oi("0x5")].on(oi("0x18"),((t,e,n)=>{const r=n[oi("0x24")][oi("0x11")](e[oi("0x15")]);if(r)for(const t of r)t.is(oi("0xd"))&&(n[oi("0x24")][oi("0x7")](t,e.markerName),n.writer[oi("0x23")](t))}),{priority:oi("0x25")})}}const si=["groupId","isUndo","format","*Change to:* %0","listItemId","checkTodoList","TrackChangesEditing","change","listStart","batch","outdentList","plugins","document","setSelection","detach","execute","getFirstMarker","indentList","commandParams","*Merge:* list item","*Remove format:* %0","attribute","length","listType","isNextTo","listStyle","filter","from","afterInit","getAttribute","commandName","find","getFirstRange","data","includes","containsItem","getRanges","ELEMENT_BULLETED_LIST","commands","bulletedList","type","ELEMENT_LIST_ITEM","*Format:* remove from %0","bulleted","registerCustomCallback","mergeListItemBackward","push","differ","_supportLegacySuggestions","*Format:* insert into %0","ELEMENT_TODO_LIST","noTrackChangesFixer","next","get","registerElementLabel","todoListChecked","*Indent:* %0","createRange","toUpperCase","removeMarker","nodeAfter","documentList","registerPostFixer","ELEMENT_NUMBERED_LIST","attributeKey","FORMAT_INDENT","listReversed","trackChangesCommand","previousSibling","selection","numbered","_getAttributeKey","editor","meta","start","value","ELEMENT_","newValue","mergeListItemForward","accept","_descriptionFactory","listIndent","formatBlock","forceValue","refresh","default","map","_suggestionFactory","_registerLegacyDescription","range","*Check item*","registerAttributeLabel","has","assureChains","createPositionAt","_enableDefaultAttributesIntegration","head","parent","*Set format:* %0","oldValue","multipleBlocks","registerDescriptionCallback","listItemIdFixer","nextSibling","attributes","numberedList","*Merge:* %0","model","todo","setAttribute","list.multiBlock","suggestion","isLocal","*Split:* list item","fromRange","TodoListEditing","getSuggestions","todoListCheck","config","key","splitListItemAfter"];var xi,ai;xi=si,ai=185,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{[ci("0x55")](){const t=this.editor;if(!t[ci("0x44")][ci("0x1c")]("ListEditing"))return;const e=t.locale,n=t[ci("0x44")][ci("0x6e")]("TrackChangesEditing"),r=t[ci("0x44")][ci("0x1c")](ci("0x33")),o=!!t.config.get(ci("0x2e"));function i(t){return{type:ci("0x3b"),content:""+Jr(e,ci("0x22"),t)}}function s(t){return{type:ci("0x3b"),content:""+Jr(e,ci("0x4d"),t)}}n[ci("0x1f")](ci("0x29"),[],["listItemId",ci("0x50"),ci("0x11")]),n[ci("0x1f")](ci("0x60")),n[ci("0x1f")](ci("0x4a")),n[ci("0x1f")](ci("0x43")),n[ci("0x1f")](ci("0x38")),n._enableDefaultAttributesIntegration("splitListItemBefore"),o&&(n[ci("0x1f")]("mergeListItemBackward"),n[ci("0x1f")](ci("0xe"))),r&&(n._enableDefaultAttributesIntegration("todoList"),n[ci("0x1f")](ci("0x3e"),[],[ci("0x70")]),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&"todoListChecked"==n[ci("0x37")])return{type:ci("0x3b"),content:n[ci("0xd")]?Jr(e,ci("0x1a")):Jr(e,"*Uncheck item*")}})),this[ci("0x8")][ci("0x2b")].document[ci("0x77")]((t=>{if(t[ci("0x42")][ci("0x3a")])return!1;let e=!1;const r=n.getSuggestions({skipNotAttached:!0})[ci("0x53")]((t=>ci("0x70")===n._getAttributeKey(t)));for(const o of r)"todo"!=o[ci("0x59")]()[ci("0xa")].nodeAfter[ci("0x56")](ci("0x50"))&&(n._findSuggestions(o[ci("0x59")](),ci("0x4e"))[ci("0x58")]((t=>ci("0x50")===n[ci("0x7")](t[ci("0x2f")])))||(t[ci("0x74")](o.getFirstMarker()),e=!0));return e}))),n[ci("0x10")][ci("0x1b")]("listIndent",Jr(e,ci("0x1")));const x={type:ci("0x3b"),content:""};n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(!n||"listType"!=n.key)return;let r=t[ci("0x20")];for(;r;){if(r[ci("0x5a")]&&(ci("0x52")==r[ci("0x5a")][ci("0x37")]&&(r[ci("0x5a")].newValue&&ci("0x15")!=r.data[ci("0xd")]||"default"!=r[ci("0x5a")][ci("0x23")]&&!n[ci("0xd")])||!o&&r[ci("0x5a")][ci("0x37")]==Cc))return x;r=r[ci("0x6d")]}if(null==n[ci("0xd")])switch(n[ci("0x23")]){case ci("0x64"):return s(Jr(e,ci("0x5e")));case"numbered":return s(Jr(e,ci("0x78")));case ci("0x2c"):return s(Jr(e,"ELEMENT_TODO_LIST"))}switch(n[ci("0xd")]){case"bulleted":return i(Jr(e,"ELEMENT_BULLETED_LIST"));case ci("0x6"):return i(Jr(e,ci("0x78")));case ci("0x2c"):return i(Jr(e,ci("0x6b")))}})),n[ci("0x10")][ci("0x25")]((t=>{const{data:e}=t;if(e&&"listIndent"==e[ci("0x37")])return null==e[ci("0xd")]||null==e.oldValue&&0==e.newValue?x:void 0})),n._descriptionFactory[ci("0x25")]((t=>{if(ci("0x4e")!=t.type)return;const{data:n}=t;if(!n||ci("0x3d")!=n[ci("0x37")])return;const r=ui(t);return r?ci("0xd")==r?{type:ci("0x3b"),content:Jr(e,ci("0x4c"))}:"oldValue"==r?{type:ci("0x3b"),content:Jr(e,ci("0x31"))}:x:x})),t.model.document[ci("0x77")]((t=>this[ci("0x26")](t))),t.model.document.registerPostFixer((t=>this[ci("0x6c")](t))),t[ci("0x2b")][ci("0x45")][ci("0x77")]((t=>this.assureChains(t))),this[ci("0x69")]()}[ci("0x26")](t){if(t[ci("0x42")][ci("0x3a")]||!t[ci("0x42")][ci("0x30")])return!1;let e=!1;const n=this[ci("0x8")][ci("0x44")][ci("0x6e")](ci("0x3f"))[ci("0x34")]({skipNotAttached:!0}).filter((t=>t[ci("0x5a")]&&ci("0x3d")==t.data[ci("0x37")]))[ci("0x53")]((t=>t[ci("0x5a")].newValue&&t[ci("0x5a")][ci("0x23")]));for(const r of n)ui(r)||(t.removeMarker(r[ci("0x49")]()),e=!0);return e}[ci("0x6c")](t){if(t[ci("0x42")][ci("0x3a")]||!t.batch.isLocal)return!1;const e=this[ci("0x8")][ci("0x44")][ci("0x6e")](ci("0x3f"));if(e[ci("0x3")].value)return!1;let n=!1;const r=["listType","listStyle",ci("0x3d"),"listIndent","listStart",ci("0x2"),ci("0x35")],o=this[ci("0x8")][ci("0x2b")][ci("0x45")][ci("0x68")].getChanges()[ci("0x53")]((t=>ci("0x4e")==t.type))[ci("0x53")]((t=>r[ci("0x5b")](t[ci("0x0")])));if(0==o[ci("0x4f")])return n;for(const i of o){const o=e._findSuggestions(i[ci("0x19")],"attribute").filter((t=>!t[ci("0x9")][ci("0x51")])).map((t=>t.suggestion))[ci("0x53")]((t=>{const n=e._getAttributeKey(t);return r[ci("0x5b")](n)}));if(o.length){for(const e of o)t[ci("0x74")](e[ci("0x49")]());n=!0}}return n}[ci("0x1d")](t){if(t.batch[ci("0x3a")]||!t[ci("0x42")].isLocal)return!1;const e=this[ci("0x8")][ci("0x44")][ci("0x6e")]("TrackChangesEditing");let n=!1;const r=[ci("0x50"),ci("0x52"),ci("0x3d"),"listIndent",ci("0x41"),ci("0x2"),"todoListCheck"];for(const t of e[ci("0x34")]({skipNotAttached:!0})){const o=e._findSuggestions(t[ci("0x59")](),ci("0x4e"))[ci("0x16")]((t=>t[ci("0x2f")]))[ci("0x53")]((t=>t[ci("0x5a")]&&r[ci("0x5b")](t[ci("0x5a")][ci("0x37")])));if(!o.length)continue;const s=o[0].head.attributes[ci("0x39")];if(!o.every((t=>t.attributes[ci("0x39")]===s)))for(const t of o)i(t,s)&&(n=!0)}return n;function o(t,n){for(const r of e[ci("0x34")]({skipNotAttached:!0}).filter((e=>ci("0x4e")==e[ci("0x61")]&&e[ci("0x28")].groupId==t)))r[ci("0x2d")](ci("0x39"),n)}function i(t,e){let n=t.head,r=!1;for(;n;)n[ci("0x28")][ci("0x39")]!=e&&(o(n.attributes[ci("0x39")],e),n[ci("0x2d")](ci("0x39"),e),r=!0),n=n.next;return r}}[ci("0x69")](){const t=this[ci("0x8")],e=t.locale,n=t[ci("0x44")][ci("0x6e")](ci("0x3f"));this[ci("0x18")](),n[ci("0x17")][ci("0x65")](ci("0x12"),ci("0x76"),ci("0xf"),(function(e,n){const r=[];for(let n of e)n[ci("0xa")].nodeAfter===n.end[ci("0x21")]&&(n=t[ci("0x2b")][ci("0x72")](t.model[ci("0x1e")](n[ci("0xa")].nodeAfter,0))),r[ci("0x67")](n);t[ci("0x2b")][ci("0x40")]((e=>{const o=t[ci("0x2b")][ci("0x45")][ci("0x5")],i=Array[ci("0x54")](o[ci("0x5d")]()).map((t=>s.LiveRange[ci("0x32")](t)));e[ci("0x46")](r),t[ci("0x5f")][ci("0x6e")](n[ci("0x57")])[ci("0x14")](),n[ci("0x4b")][ci("0x67")]({forceDefaultExecution:!0}),t[ci("0x48")](n[ci("0x57")],...n[ci("0x4b")]),e.setSelection(i);for(const t of i)t[ci("0x47")]()}))})),n[ci("0x10")][ci("0x6f")]((function(e){const n=!t[ci("0x2b")].schema.isObject(e),r=e.previousSibling,o=e[ci("0x27")],i=e.getAttribute(ci("0x3d")),s=!r||r.getAttribute(ci("0x3d"))!==i,x=!o||o[ci("0x56")](ci("0x3d"))!==i;return n&&Boolean(i)&&s&&x}),(t=>Jr(e,ci("0x62"),t)))}[ci("0x18")](){const t=this[ci("0x8")],e=t.locale;function n(e){const n=t.commands[ci("0x6e")](ci("0x60"))[ci("0xb")],r=t[ci("0x5f")].get(ci("0x29"))[ci("0xb")];return ci("0x29")===e?n:r}t[ci("0x44")][ci("0x6e")](ci("0x3f"))[ci("0x10")].registerDescriptionCallback((function(r){if(ci("0x12")!=r.type)return;const{data:o}=r;if(!o)return;let i,s,x,a;switch(o[ci("0x57")]){case ci("0x60"):x=o[ci("0x4b")][0].forceValue,a=n(o.commandName),i=ci(x?"0x6a":"0x63"),!a&&t.config.get(ci("0x2e"))||(i=ci("0x3c")),s={type:ci("0x3b"),content:Jr(e,i,Jr(e,"ELEMENT_BULLETED_LIST"))};break;case ci("0x29"):x=o.commandParams[0][ci("0x13")],a=n(o[ci("0x57")]),i=ci(x?"0x6a":"0x63"),!a&&t[ci("0x36")][ci("0x6e")](ci("0x2e"))||(i=ci("0x3c")),s={type:ci("0x3b"),content:Jr(e,i,Jr(e,ci("0x78")))};break;case ci("0x4a"):i=ci("0x71"),s={type:"format",content:Jr(e,i,Jr(e,ci("0x62")))};break;case ci("0x43"):i=function(t){const e=t[ci("0x59")]();let n=e[ci("0xa")][ci("0x75")];for(;n&&e[ci("0x5c")](n);){if(n.getAttribute(ci("0x11"))>0)return!1;n=n[ci("0x27")]}return!0}(r)?Jr(e,ci("0x63"),Jr(e,(c=r,ci("0xc")+c[ci("0x59")]()[ci("0xa")][ci("0x75")][ci("0x56")](ci("0x50"))[ci("0x73")]()+"_LIST"))):Jr(e,"*Outdent:* %0",Jr(e,ci("0x62"))),s={type:ci("0x3b"),content:i};break;case ci("0x66"):case ci("0xe"):!1===o[ci("0x24")]&&(i=ci("0x2a"),s={type:"deletion",content:Jr(e,i,Jr(e,ci("0x62")))})}var c;return s}))}}function ui(t){let e=t[ci("0x59")]()[ci("0xa")].nodeAfter[ci("0x4")];for(;e;){const n=e[ci("0x56")](ci("0x3d"));if(!n)return!1;if(n==t[ci("0x5a")].newValue)return ci("0xd");if(n==t.data[ci("0x23")])return ci("0x23");e=e[ci("0x4")]}return!1}const di=["_getAttributeKey","filter","*Remove format:* %0","list.properties","circle","has","commandParams","*Change to:* %0","_descriptionFactory","registerPostFixer","listStyle","disc","editor","reversed","get","model","listType","_LIST_DEFAULT","registerAttributeLabel","upper-latin","numbered","start","getFirstMarker","batch","find","*Format:* set order to reversed","type","key","default","data","commandName","getFirstRange","replace","bind","lower-roman","FORMAT_LIST_REVERSED","_enableDefaultAttributesIntegration","next","_getTranslationKeyForListStyle","lower-latin","decimal-leading-zero","newValue","includes","handleDescriptions","removeMarker","styles","ListPropertiesEditing","listReversed","config","attribute","oldValue","*Format:* set start index to %0","_registerLegacyDescription","decimal","getAttribute","FORMAT_LIST_START","listStart","format","*Set format:* %0","formatBlock","toUpperCase","head","TrackChangesEditing","registerDescriptionCallback","afterInit","nodeAfter","locale","getSuggestions","suggestion","ELEMENT_","startIndex","plugins"];var gi,fi;gi=di,fi=399,function(t){for(;--t;)gi.push(gi.shift())}(++fi);const hi=function(t,e){return di[t-=0]};class mi extends t.Plugin{[hi("0x19")](){if(!this[hi("0x2d")].plugins[hi("0x26")](hi("0x7")))return;const t=this.editor[hi("0x9")][hi("0x2f")](hi("0x24")),e=this[hi("0x2d")][hi("0x20")][hi("0x2f")](hi("0x17"));t[hi("0x6")]&&e[hi("0x45")](hi("0x2b"),[],["listStyle"]),t[hi("0x2e")]&&e[hi("0x45")](hi("0x8"),[],[hi("0x8")]),t[hi("0x1f")]&&e._enableDefaultAttributesIntegration(hi("0x11"),[],["listStart"]);const n={type:hi("0x12"),content:""};e[hi("0x29")][hi("0x18")](this.handleDescriptions[hi("0x42")](this));const r=this.editor[hi("0x1b")];e._descriptionFactory.registerAttributeLabel("listReversed",Jr(r,hi("0x44"))),e[hi("0x29")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&"listReversed"==e[hi("0x3c")])return null==e[hi("0x2")]||0==e.newValue&&null==e[hi("0xb")]?n:void 0})),e._descriptionFactory[hi("0x33")]("listStart",Jr(r,hi("0x10"))),e._descriptionFactory[hi("0x18")]((t=>{const{data:e}=t;if(e&&hi("0x11")==e[hi("0x3c")])return null==e.newValue||1==e[hi("0x2")]&&null==e[hi("0xb")]?n:void 0})),this.editor[hi("0x30")].document[hi("0x2a")]((t=>{if(t[hi("0x38")].isUndo)return!1;let n=!1;const r=e[hi("0x1c")]({skipNotAttached:!0})[hi("0x22")]((t=>{const n=e._getAttributeKey(t);return hi("0x11")==n||"listReversed"==n}));for(const o of r)hi("0x35")!=o[hi("0x40")]().start.nodeAfter.getAttribute(hi("0x31"))&&(e._findSuggestions(o[hi("0x40")](),hi("0xa"))[hi("0x39")]((t=>hi("0x31")==e[hi("0x21")](t[hi("0x1d")])))||(t[hi("0x5")](o[hi("0x37")]()),n=!0));return n})),this[hi("0xd")]()}[hi("0x4")](t){const e=this[hi("0x2d")].locale,{data:n}=t,r={type:"format",content:""};if(!n||hi("0x2b")!=n[hi("0x3c")])return;if(!n[hi("0xb")])return hi("0x3d")==n[hi("0x2")]?r:{type:hi("0x12"),content:""+Jr(e,hi("0x13"),Jr(e,this[hi("0x47")](n.newValue)))};if(!n[hi("0x2")]){if(hi("0x3d")==n[hi("0xb")])return r;let o=t[hi("0x16")];for(;o;){if(o[hi("0x3e")]&&"listType"==o.data.key&&o[hi("0x3e")].newValue)return r;o=o[hi("0x46")]}return{type:"format",content:""+Jr(e,hi("0x23"),Jr(e,this[hi("0x47")](n.oldValue)))}}if("default"!=n[hi("0x2")])return{type:hi("0x12"),content:""+Jr(e,"*Set format:* %0",Jr(e,this[hi("0x47")](n[hi("0x2")])))};let o=t[hi("0x16")];for(;o;){if(o[hi("0x3e")]&&hi("0x31")==o[hi("0x3e")][hi("0x3c")]&&o[hi("0x3e")][hi("0x2")]&&o[hi("0x3e")][hi("0xb")])return r;o=o[hi("0x46")]}const i=t[hi("0x40")]()[hi("0x36")][hi("0x1a")][hi("0xf")]("listType");return{type:hi("0x12"),content:Jr(e,hi("0x13"),Jr(e,"ELEMENT_"+i.toUpperCase()+hi("0x32")))}}_registerLegacyDescription(){const t=this.editor,e=t[hi("0x1b")];t[hi("0x20")][hi("0x2f")](hi("0x17"))[hi("0x29")].registerDescriptionCallback((t=>{if(hi("0x14")!=t.type)return;const{data:n}=t;if(!n)return;let r,o;switch(n[hi("0x3f")]){case hi("0x2b"):r=hi("0x28"),o={type:"format",content:Jr(e,r,Jr(e,this[hi("0x47")](n[hi("0x27")][0][hi("0x3b")])))};break;case hi("0x8"):r=n[hi("0x27")][0][hi("0x2e")]?hi("0x3a"):"*Format:* set order to regular",o={type:hi("0x12"),content:Jr(e,r)};break;case hi("0x11"):r=hi("0xc"),o={type:hi("0x12"),content:Jr(e,r,n[hi("0x27")][0][hi("0x1f")])}}return o}))}_getTranslationKeyForListStyle(t){return hi("0x1e")+(e=t,pi[hi("0x3")](e)?"bulleted":bi[hi("0x3")](e)?hi("0x35"):null).toUpperCase()+"_LIST_"+t[hi("0x15")]()[hi("0x41")](/-/g,"_");var e}}const pi=[hi("0x2c"),hi("0x25"),"square"],bi=[hi("0xe"),hi("0x1"),hi("0x43"),"upper-roman",hi("0x0"),hi("0x34")];var Ei=n(331);const _i=["split","plugins","markerName","fire","markInsertion","detach","bind","downcastDispatcher","getFirstRange","fromRange","getFirstPosition","markerNameToElements","afterExecute","nextSibling","editing","hasClass","selection","ck-suggestion-marker-split","end","setSelection","writer","high","parent","change","init","get","enter","createRange","options","editor","document","addMarker:suggestion:insertion","unbindElementFromMarkerName","remove","model","mapper","enableCommand","showSuggestionHighlights","removeMarker:suggestion:insertion","commands"];var Ti,yi;Ti=_i,yi=224,function(t){for(;--t;)Ti.push(Ti.shift())}(++yi);const Ci=function(t,e){return _i[t-=0]};class Ai extends t.Plugin{static get requires(){return[Ei.Enter]}[Ci("0x0")](){const t=this[Ci("0x5")],e=t[Ci("0x11")][Ci("0x1")]("TrackChangesEditing"),n=t[Ci("0xf")][Ci("0x1")](Ci("0x2"));e[Ci("0xc")]("enter",(()=>{t[Ci("0xa")][Ci("0x27")]((r=>{const o=t[Ci("0xa")][Ci("0x6")][Ci("0x20")],i=o[Ci("0x1a")](),x=s.LiveRange[Ci("0x19")](o[Ci("0x18")]());if(n.enterBlock(r)){const n=t[Ci("0xa")].createPositionAt(i[Ci("0x26")][Ci("0x1d")],0),o=r[Ci("0x3")](i,n);e[Ci("0x14")](o)}else r[Ci("0x23")](r.createRange(x[Ci("0x22")]));x[Ci("0x15")](),n[Ci("0x13")](Ci("0x1c"),{writer:r})}))})),t[Ci("0x1e")][Ci("0x17")].on(Ci("0x7"),ti(t,Ci("0x10")),{priority:"high"}),t[Ci("0x1e")][Ci("0x17")].on(Ci("0xe"),((t,e,n)=>{const r=n[Ci("0xb")][Ci("0x1b")](e[Ci("0x12")]);if(r)for(const t of r)t[Ci("0x1f")](Ci("0x21"))&&(n.mapper[Ci("0x8")](t,e[Ci("0x12")]),n[Ci("0x24")][Ci("0x9")](t))}),{priority:Ci("0x25")}),t.data[Ci("0x17")].on(Ci("0x7"),((e,n,r)=>{r[Ci("0x4")][Ci("0xd")]&&ti(t,Ci("0x10"),{showActiveMarker:!1})[Ci("0x16")](this)(e,n,r)}),{priority:Ci("0x25")})}}const ki=["start","afterInit","plugins","model","filter","get","findPrevious","end","findByTextCallback","editor","find","handleFindCommand","getRange","TrackChangesEditing","replaceAll","getMarkersGroup","enableCommand","markers","createPositionAt","createRange","getIntersection","bind","findNext","_isInDeletionRange","replace"];var Ii,Ri;Ii=ki,Ri=264,function(t){for(;--t;)Ii.push(Ii.shift())}(++Ri);const Si=function(t,e){return ki[t-=0]};class vi extends t.Plugin{[Si("0xc")](){if(!this.editor[Si("0xd")].has("FindAndReplaceEditing"))return;const t=this[Si("0x14")][Si("0xd")][Si("0x10")](Si("0x18"));t[Si("0x2")](Si("0x15"),this[Si("0x16")][Si("0x7")](this)),t[Si("0x2")](Si("0x8")),t[Si("0x2")](Si("0x11")),t[Si("0x2")](Si("0xa")),t.enableCommand(Si("0x0"))}[Si("0x16")](t,e,n={}){const r=this[Si("0x14")].plugins.get("FindAndReplaceUtils");return t((t=>("string"==typeof e?r[Si("0x13")](e,n):e)(t)[Si("0xf")]((e=>!1===this[Si("0x9")](e,t.item)))),n)}_isInDeletionRange(t,e){const n=this[Si("0x14")].model[Si("0x5")](this[Si("0x14")].model[Si("0x4")](e,t[Si("0xb")]),this[Si("0x14")][Si("0xe")][Si("0x4")](e,t[Si("0x12")]));for(const t of this[Si("0x14")].model[Si("0x3")][Si("0x1")]("suggestion:deletion"))if(null!==n[Si("0x6")](t[Si("0x17")]()))return!0;return!1}}const Ni=["_registerLegacyDescription","*Set font background color:* %0","fontColor","label","FORMAT_FONT_FAMILY","fontSize.options","trim","FORMAT_FONT_SIZE","normalizeSizeOptions","plugins","fontBackgroundColor.colors","*Reset font family*","editor","formatInline","format","*Set font size:* %0","FontSize","model","fontFamily","TrackChangesEditing","registerAttributeLabel","type","fontBackgroundColor","fontSize","FontFamilyEditing","locale","title","registerDescriptionCallback","FontBackgroundColorEditing","toLowerCase","get","config","commandParams","*Set font color:* %0","commandName","*Reset font color*","value","_enableDefaultAttributesIntegration","*Reset font size*","find","FontColorEditing","_descriptionFactory"];var Li,Mi;Li=Ni,Mi=429,function(t){for(;--t;)Li.push(Li.shift())}(++Mi);const wi=function(t,e){return Ni[t-=0]},Oi=[{pluginName:"FontSizeEditing",commandName:wi("0xe")},{pluginName:wi("0xf"),commandName:wi("0x9")},{pluginName:wi("0x1f"),commandName:"fontColor"},{pluginName:wi("0x13"),commandName:"fontBackgroundColor"}];class Fi extends t.Plugin{afterInit(){const t=this[wi("0x3")][wi("0x10")],e=this[wi("0x3")].plugins[wi("0x15")](wi("0xa"));for(const{pluginName:t,commandName:n}of Oi)this.editor[wi("0x0")].has(t)&&e[wi("0x1c")](n,[n]);t.t,e[wi("0x20")][wi("0xb")](wi("0xe"),Jr(t,wi("0x28"))),e._descriptionFactory.registerAttributeLabel(wi("0x9"),Jr(t,wi("0x25"))),e._descriptionFactory[wi("0xb")](wi("0x23"),Jr(t,"FORMAT_FONT_COLOR")),e[wi("0x20")][wi("0xb")](wi("0xd"),Jr(t,"FORMAT_FONT_BACKGROUND")),this[wi("0x21")]()}[wi("0x21")](){const t=this[wi("0x3")],e=t[wi("0x10")];t[wi("0x0")].get(wi("0xa"))[wi("0x20")][wi("0x12")]((t=>{const n=e.t;if(wi("0x4")!=t[wi("0xc")])return;const{data:r}=t;if(null!=r){if(wi("0xe")==r.commandName){const t=r[wi("0x17")][0][wi("0x1b")];if(t){const r=n(this[wi("0x3")][wi("0x0")].get(wi("0x7"))[wi("0x29")](this[wi("0x3")][wi("0x16")][wi("0x15")](wi("0x26")))[wi("0x1e")]((e=>e[wi("0x8")]==t))[wi("0x11")])[wi("0x14")]();return{type:wi("0x5"),content:Jr(e,wi("0x6"),r)}}return{type:wi("0x5"),content:Jr(e,wi("0x1d"))}}if("fontFamily"==r.commandName){const t=r[wi("0x17")][0][wi("0x1b")];return t?{type:wi("0x5"),content:Jr(e,"*Set font family:* %0",t)}:{type:wi("0x5"),content:Jr(e,wi("0x2"))}}if("fontColor"==r[wi("0x19")]){const t=r[wi("0x17")][0][wi("0x1b")];if(t){const r=(0,o.normalizeColorOptions)(this.editor[wi("0x16")][wi("0x15")]("fontColor.colors")).find((e=>e.model==t));let i=t,s="";return r&&(i=r[wi("0x24")],s=n(i)[wi("0x14")]()),{type:wi("0x5"),content:Jr(e,wi("0x18"),s)[wi("0x27")](),color:{value:t,title:s||i}}}return{type:wi("0x5"),content:Jr(e,wi("0x1a"))}}if(wi("0xd")==r[wi("0x19")]){const t=r[wi("0x17")][0][wi("0x1b")];if(t){const r=(0,o.normalizeColorOptions)(this[wi("0x3")][wi("0x16")].get(wi("0x1")))[wi("0x1e")]((e=>e[wi("0x8")]==t));let i=t,s="";return r&&(i=r[wi("0x24")],s=n(i)[wi("0x14")]()),{type:wi("0x5"),content:Jr(e,wi("0x22"),s)[wi("0x27")](),color:{value:t,title:s||i}}}return{type:wi("0x5"),content:Jr(e,"*Reset font background color*")}}}}))}}const Di=["find","enableCommand","_descriptionFactory","fontColor","join","_enableDefaultAttributesIntegration","pasteFormat","title","charAt","commandName","_registerLegacyDescription","type","fontSize.options","toUpperCase","fontSize","registerDescriptionCallback","config","toLowerCase","model","locale","get","*Set format to:* %0","slice","label","entries","plugins","fontColor.colors","formatBlock","afterInit","copyFormat","boolean","normalizeSizeOptions","TrackChangesEditing","format","editor","commands"];var Pi,Bi;Pi=Di,Bi=154,function(t){for(;--t;)Pi.push(Pi.shift())}(++Bi);const Ui=function(t,e){return Di[t-=0]};class ji extends t.Plugin{[Ui("0x12")](){const t=this[Ui("0x18")],e=t[Ui("0xf")][Ui("0xa")](Ui("0x16")),n=t.commands[Ui("0xa")](Ui("0x13")),r=t[Ui("0x19")][Ui("0xa")](Ui("0x20"));n&&r&&(e[Ui("0x1f")]("pasteFormat"),e[Ui("0x1b")](Ui("0x13")),this[Ui("0x0")]())}[Ui("0x0")](){const t=this[Ui("0x18")],e=t.locale;t[Ui("0xf")][Ui("0xa")](Ui("0x16"))[Ui("0x1c")][Ui("0x5")]((n=>{if(Ui("0x11")!=n[Ui("0x1")]&&"formatInline"!=n.type)return;const{data:r}=n;if(r&&"pasteFormat"===r[Ui("0x23")]){const n=[],o=r.commandParams[0];for(const[e,r]of Object[Ui("0xe")](o))n.push(Gi(t,e,r));return n.length?{type:"format",content:Jr(e,Ui("0xb"),n[Ui("0x1e")](", "))}:{type:Ui("0x17"),content:Jr(e,"*Remove all formatting*")}}}))}}function Gi(t,e,n){const r=t[Ui("0x9")].t,i=e.split(/(?=[A-Z])/).join(" "),s=r(i[Ui("0x22")](0)[Ui("0x3")]()+i[Ui("0xc")](1))[Ui("0x7")]();if(Ui("0x14")==typeof n)return s;if(Ui("0x1d")===e||"fontBackgroundColor"===e){const e=(0,o.normalizeColorOptions)(t.config[Ui("0xa")](Ui("0x10")))[Ui("0x1a")]((t=>t[Ui("0x8")]==n));return s+" ("+(e?r(e[Ui("0xd")])[Ui("0x7")]():n)+")"}if(Ui("0x4")===e&&isNaN(parseFloat(n))){const e=t.plugins[Ui("0xa")]("FontSize")[Ui("0x15")](t[Ui("0x6")][Ui("0xa")](Ui("0x2")))[Ui("0x1a")]((t=>t[Ui("0x8")]==n));return s+" ("+(e?r(e[Ui("0x21")]).toLowerCase():n)+")"}return s+" ("+n+")"}const Vi=["TrackChangesEditing","registerDescriptionCallback","format","type","title","has","formatBlock","config","_headingOptions","value","ELEMENT_HEADING","heading","commandName","ELEMENT_HEADING_CUSTOM","*Change to:* %0","locale","view","get","model","_getHeadingLevel","editor","plugins","find","match","name","_descriptionFactory","_registerLegacyDescription","afterInit","heading.options","paragraph","registerElementLabel","HeadingEditing"];var Hi,zi;Hi=Vi,zi=126,function(t){for(;--t;)Hi.push(Hi.shift())}(++zi);const Wi=function(t,e){return Vi[t-=0]};class Ki extends t.Plugin{[Wi("0x1d")](){const t=this[Wi("0x16")];if(!t[Wi("0x17")][Wi("0x7")](Wi("0x1")))return;this[Wi("0xa")]=t[Wi("0x9")][Wi("0x13")](Wi("0x1e"));const e=t[Wi("0x11")],n=t.plugins[Wi("0x13")](Wi("0x2"));n._enableDefaultAttributesIntegration(Wi("0xd"));for(const t of this[Wi("0xa")])Wi("0x1f")!=t[Wi("0x14")]&&n[Wi("0x1b")][Wi("0x0")](t[Wi("0x14")],(n=>{const r=this[Wi("0x15")](t[Wi("0x14")]);return null!==r?(s=n,x=r,Jr(e,Wi("0xc"),[s,x])):(o=n,i=t[Wi("0x6")],Jr(e,Wi("0xf"),[o,i]));var o,i,s,x}));this[Wi("0x1c")]()}[Wi("0x1c")](){const t=this.editor,e=t[Wi("0x11")];t[Wi("0x17")][Wi("0x13")](Wi("0x2"))[Wi("0x1b")][Wi("0x3")]((t=>{if(Wi("0x8")!=t[Wi("0x5")])return;const{data:n}=t;if(n&&"heading"==n[Wi("0xe")]){const t=n.commandParams[0][Wi("0xb")],s=this[Wi("0x15")](t);if(null!==s)return{type:Wi("0x4"),content:Jr(e,Wi("0x10"),(1,i=s,Jr(e,"ELEMENT_HEADING",[1,i])))};const x=this[Wi("0xa")][Wi("0x18")]((e=>e[Wi("0x14")]===t))[Wi("0x6")];return{type:Wi("0x4"),content:Jr(e,"*Change to:* %0",(r=1,o=x,Jr(e,Wi("0xf"),[r,o])))}}var r,o,i}))}[Wi("0x15")](t){var e,n;const r=t[Wi("0x19")](/^heading(\d+)/);if(r)return r[1];const o=null===(e=this[Wi("0xa")])||void 0===e?void 0:e[Wi("0x18")]((e=>e.model==t));if(o&&o.view){const t=o[Wi("0x12")],e=(null!==(n=t[Wi("0x1a")])&&void 0!==n?n:t)[Wi("0x19")](/^h(\d+)/);if(e)return e[1]}return null}}const qi=["formatInline","color","title","locale","commandParams","TrackChangesEditing","format","afterInit","_registerLegacyDescription","value","highlight.options","_enableDefaultAttributesIntegration","plugins","find","get","highlight","FORMAT_HIGHLIGHT","has","*Set highlight:* %0","type","config","editor","_descriptionFactory","*Remove highlight*"];var Xi,$i;Xi=qi,$i=390,function(t){for(;--t;)Xi.push(Xi.shift())}(++$i);const Zi=function(t,e){return qi[t-=0]};class Yi extends t.Plugin{[Zi("0x1")](){const t=this[Zi("0xf")];if(!t[Zi("0x6")][Zi("0xb")]("HighlightEditing"))return;const e=t[Zi("0x6")][Zi("0x8")](Zi("0x17")),n=t[Zi("0x15")];e[Zi("0x5")](Zi("0x9"),[Zi("0x9")]),e[Zi("0x10")].registerAttributeLabel(Zi("0x9"),Jr(n,Zi("0xa"))),this[Zi("0x2")]()}[Zi("0x2")](){const t=this[Zi("0xf")],e=t[Zi("0x15")];t[Zi("0x6")][Zi("0x8")](Zi("0x17"))._descriptionFactory.registerDescriptionCallback((n=>{if(Zi("0x12")!=n[Zi("0xd")])return;const{data:r}=n;if(r&&Zi("0x9")==r.commandName){const n=e.t,o=r[Zi("0x16")][0][Zi("0x3")];if(o){const r=t[Zi("0xe")][Zi("0x8")](Zi("0x4"))[Zi("0x7")]((t=>t.model==o)),i=n(r[Zi("0x14")]).toLowerCase();return{type:Zi("0x0"),content:Jr(e,Zi("0xc"),i),color:{value:r[Zi("0x13")],title:r[Zi("0x14")]}}}return{type:Zi("0x0"),content:Jr(e,Zi("0x11"),Jr(e,Zi("0xa")))}}}))}}const Ji=["horizontalLine","createEmptyElement","createContainerElement","registerElementLabel","dataDowncast","conversion","div","for","HorizontalLineEditing","insert","editor","ck-horizontal-line","showSuggestionHighlights","plugins","locale","TrackChangesEditing","enableCommand","addClass","high","get","_descriptionFactory"];var Qi,ts;Qi=Ji,ts=288,function(t){for(;--t;)Qi.push(Qi.shift())}(++ts);const es=function(t,e){return Ji[t-=0]};class ns extends t.Plugin{afterInit(){const t=this[es("0x10")];if(!t[es("0x13")].has(es("0xe")))return;t[es("0x13")][es("0x4")](es("0x0"))[es("0x1")](es("0x6"));const e=t[es("0x13")][es("0x4")](es("0x0")),n=t[es("0x14")];e[es("0x5")][es("0x9")](es("0x6"),(t=>Jr(n,"ELEMENT_HORIZONTAL_LINE",t))),t[es("0xb")][es("0xd")](es("0xa")).elementToStructure({model:es("0x6"),view:(t,{writer:e,options:n})=>{if(!n[es("0x12")])return null;const r=e[es("0x8")](es("0xc")),o=e[es("0x7")]("hr");return e[es("0x2")](es("0x11"),r),e[es("0xf")](e.createPositionAt(r,0),o),r},converterPriority:es("0x3")})}}const rs=["*Change %0 content*","type","locale","_descriptionFactory","TrackChangesEditing","registerElementLabel","registerDescriptionCallback","value","key","start","commandName","nodeAfter","HtmlEmbed","ELEMENT_HTML_EMBED","getFirstRange","rawHtml","htmlEmbed","format","plugins","_registerLegacyDescription"];var os,is;os=rs,is=415,function(t){for(;--t;)os.push(os.shift())}(++is);const ss=function(t,e){return rs[t-=0]};class xs extends t.Plugin{afterInit(){const t=this.editor;if(!t[ss("0x3")].has(ss("0x11")))return;const e=t[ss("0x3")].get("TrackChangesEditing"),n=t.locale;e[ss("0x8")][ss("0xa")](ss("0x0"),(t=>Jr(n,ss("0x12"),t))),e._enableDefaultAttributesIntegration(ss("0x1"),[],[ss("0xc")]),e[ss("0x8")].registerDescriptionCallback((t=>{if("attribute"!=t[ss("0x6")])return;const{data:e}=t;if(e&&ss("0xc")==e[ss("0xd")]&&t[ss("0x13")]()[ss("0xe")][ss("0x10")].is("element",ss("0x0"))){const t=Jr(n,ss("0x12"));return{type:"format",content:Jr(n,"*Change %0 content*",t)}}})),this[ss("0x4")]()}[ss("0x4")](){const t=this.editor,e=t[ss("0x7")];t[ss("0x3")].get(ss("0x9"))[ss("0x8")][ss("0xb")]((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;if(n&&ss("0x1")==n[ss("0xf")]){const t=Jr(e,ss("0x12"));return{type:ss("0x2"),content:Jr(e,ss("0x5"),t)}}}))}}const as=["resizeImage","*Set image text alternative:* %0","registerDescriptionCallback","nodeBefore","ImageUtils","ImageUploadEditing","registerCustomCallback","type","Inline image to block image","format","get","getNearestSelectionRange","findIndex","ImageEditing","ImageInlineEditing","formatBlock","imageCaption","forward","discard","_descriptionFactory","imageTypeInline","isEqual","join","convertBlockImageToInline","getContainedElement","isCollapsed","commandName","imageInline","plugins","getCaptionFromImageModelElement","imageStylePreApply","change","find","imageBlock","insertion","start","attribute","previous","toNext","_findSuggestions","chain","newValue","model","detach","caption","enableCommand","backward","getFirstRange","getClosestSelectedImageElement","createRangeOn","selection","fromPosition","uploadImage","*Remove image text alternative*","editor","imageTextAlternative","resizedWidth","has","_registerLegacyDescription","*Set image width:* %0","isBefore","isBlockImage","removeObject","subType","ImageResize","forceDefaultExecution","width","createRange","locale","formatInline","toggleImageCaption","TrackChangesEditing","registerElementLabel","document","commandParams","nodeAfter","filter","imageTypeBlock","schema","isIntersecting","ImageTextAlternativeEditing","end","length","markInsertion","deletion","_enableDefaultAttributesIntegration","ImageBlockEditing","convertInlineImageToBlock","_suggestionFactory","*Reset image width*","getSuggestionCallback","ImageCaptionEditing","insertImage"];var cs,ls;cs=as,ls=332,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("0x1")];if(!t[us("0x44")][us("0x4")](us("0x35")))return;const e=t[us("0x44")][us("0x32")](us("0x12")),n=t[us("0x44")][us("0x32")](us("0x2c")),r=t.locale;e.enableCommand(us("0x27")),e[us("0x3b")][us("0x13")](us("0x49"),(t=>Jr(r,"ELEMENT_IMAGE",t))),e._descriptionFactory[us("0x13")](us("0x43"),(t=>Jr(r,"ELEMENT_INLINE_IMAGE",t))),e[us("0x3b")][us("0x13")](us("0x54"),(()=>Jr(r,"ELEMENT_CAPTION"))),t[us("0x44")][us("0x4")](us("0x2d"))&&e[us("0x55")](us("0x5c")),t[us("0x44")][us("0x4")](us("0x21"))&&t[us("0x44")].has(us("0x36"))&&(e[us("0x55")]("imageTypeInline",((r,o)=>{const i=n[us("0x58")](t[us("0x52")][us("0x14")][us("0x5a")]);t.model[us("0x47")]((()=>{e.markBlockFormat(i,{commandName:"imageTypeInline",commandParams:[o]},[],us("0x3f"))}))})),e[us("0x55")](us("0x18"),((r,o)=>{t.model.change((i=>{let x=n.getClosestSelectedImageElement(t[us("0x52")][us("0x14")][us("0x5a")]),a=i[us("0x59")](x);const c=s.LivePosition[us("0x5b")](a.start,"toPrevious"),l=s.LivePosition.fromPosition(a[us("0x1c")],us("0x4e"));e[us("0xc")]((()=>r(o))),x=n[us("0x58")](t[us("0x52")][us("0x14")][us("0x5a")]),a=i[us("0x59")](x);const u=i[us("0xe")](c,l);c[us("0x53")](),l[us("0x53")](),e.markBlockFormat(x,{commandName:us("0x3c"),commandParams:[o]},[],us("0x22")),u[us("0x4b")][us("0x7")](a[us("0x4b")])&&e.markInsertion(i[us("0xe")](u[us("0x4b")],a.start),"convertInlineImageToBlock"),a[us("0x1c")][us("0x7")](u.end)&&e[us("0x1e")](i.createRange(a[us("0x1c")],u[us("0x1c")]),us("0x22"))}))})),e[us("0x23")].registerCustomCallback(us("0x37"),"convertInlineImageToBlock",us("0x3e"),(()=>!1)),e[us("0x23")].registerCustomCallback(us("0x37"),us("0x22"),"accept",(()=>!1)),e._suggestionFactory[us("0x2e")](us("0x37"),us("0x22"),us("0x3a"),e[us("0x23")][us("0x25")](us("0x37"),"","accept")),e._suggestionFactory.registerCustomCallback(us("0x4a"),us("0x22"),us("0x3e"),(()=>!1)),e[us("0x23")][us("0x2e")](us("0x4a"),us("0x22"),"discard",(([n])=>{const r=e[us("0x23")][us("0x25")]("insertion","",us("0x3a"));let o=n[us("0x4b")],i=n.end;const s=t[us("0x52")][us("0x19")][us("0x33")](o,us("0x56")),x=t[us("0x52")].schema[us("0x33")](i,us("0x39"));s[us("0x41")]&&(o=s[us("0x4b")]),x[us("0x41")]&&(i=x[us("0x1c")]),r([t[us("0x52")][us("0xe")](o,i)])})),e[us("0x23")][us("0x2e")](us("0x37"),"convertInlineImageToBlock","chain",x),e._suggestionFactory[us("0x2e")](us("0x4a"),us("0x22"),"chain",x)),t.plugins[us("0x4")](us("0x26"))&&(e[us("0x55")](us("0x11"),((r,o)=>{const i=t.plugins[us("0x32")]("ImageCaptionUtils");let s=n.getClosestSelectedImageElement(t[us("0x52")][us("0x14")][us("0x5a")]),x=i[us("0x45")](s);t[us("0x52")].change((()=>{if(x)return void e.markDeletion(t[us("0x52")][us("0x59")](x));const a=n[us("0x8")](s);r(o),s=n.getClosestSelectedImageElement(t.model[us("0x14")][us("0x5a")]),x=i.getCaptionFromImageModelElement(s),e[us("0x1e")](t[us("0x52")][us("0x59")](x),a?null:"imageCaption")}))})),e[us("0x23")][us("0x2e")](us("0x4a"),us("0x38"),us("0x50"),x));const o=[{type:"formatBlock",subType:us("0x46")},{type:us("0x4a"),subType:us("0x38")},{type:us("0x37"),subType:us("0x22")},{type:"insertion",subType:"convertInlineImageToBlock"}];function i(t,r){const i=o[us("0x34")]((({type:e,subType:n})=>t[us("0x2f")]==e&&t[us("0xa")]==n)),s=o[us("0x34")]((({type:t,subType:e})=>r.type==t&&r[us("0xa")]==e));if(i<0||s<0)return!1;const x=t[us("0x57")](),a=r[us("0x57")]();if((0==i||1==i)&&2==s&&x[us("0x1a")](a))return!0;if(2==i&&3==s){const t=e[us("0x4f")](x,us("0x4a"))[us("0x17")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[us("0xa")]));if(t[us("0x1d")]>1&&a[us("0x1c")][us("0x3d")](x[us("0x4b")]))return!0;if(1==t[us("0x1d")]&&(x[us("0x4b")][us("0x3d")](a[us("0x1c")])||x[us("0x1c")][us("0x3d")](a[us("0x4b")])))return!0}if(3==i&&3==s&&x[us("0x4b")][us("0x7")](a.start)){const t=x[us("0x1c")][us("0x16")],e=a.start[us("0x2b")];return n.isBlockImage(t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t[us("0x44")].has(us("0xb"))&&(e[us("0x20")](us("0x28"),[],[us("0x3")]),e._descriptionFactory.registerAttributeLabel(us("0x3"),Jr(r,"FORMAT_IMAGE_SIZE"))),t.plugins.has(us("0x1b"))&&e._enableDefaultAttributesIntegration(us("0x2"),[],["alt"]),e._descriptionFactory[us("0x2a")]((t=>{if(o[us("0x48")]((({type:e,subType:n})=>t[us("0x2f")]==e&&t[us("0xa")]==n)))return t[us("0x4d")]?{}:void 0})),e[us("0x3b")][us("0x2a")]((t=>{if("insertion"==t.type||us("0x1f")==t.type){const e=t[us("0x40")]();if(e&&e.is("element","caption"))return{type:"insertion"==t[us("0x2f")]?"addObject":us("0x9"),element:e,quantity:1}}})),e[us("0x3b")][us("0x2a")]((t=>us("0x37")==t[us("0x2f")]&&us("0x22")==t[us("0xa")]?{type:us("0x31"),content:us("0x30")}:us("0x37")==t[us("0x2f")]&&us("0x3f")==t.subType?{type:us("0x31"),content:"Block image to inline image"}:void 0)),e[us("0x3b")][us("0x2a")]((t=>{if(us("0x4c")!=t.type)return;const{data:e}=t;if(!e||"alt"!=e.key)return;const n=e[us("0x51")];return n?{type:us("0x31"),content:Jr(r,us("0x29"),'"'+n+'"')}:{type:us("0x31"),content:Jr(r,us("0x0"))}})),this[us("0x5")]()}[us("0x5")](){const t=this[us("0x1")],e=t[us("0xf")];t[us("0x44")][us("0x32")](us("0x12"))._descriptionFactory[us("0x2a")]((t=>{if(us("0x37")!=t[us("0x2f")]&&us("0x10")!=t[us("0x2f")])return;const{data:n}=t;if(n){if(us("0x2")==n[us("0x42")]){const t=n[us("0x15")][0][us("0x51")];return t?{type:us("0x31"),content:Jr(e,us("0x29"),'"'+t+'"')}:{type:us("0x31"),content:Jr(e,us("0x0"))}}if("resizeImage"==n[us("0x42")]){const t=n[us("0x15")][0][us("0xd")];return t?{type:us("0x31"),content:Jr(e,us("0x6"),t)}:{type:us("0x31"),content:Jr(e,us("0x24"))}}}}))}}const gs=["key","afterInit","oldValue","editor","_descriptionFactory","type","replaceImageSource","accept","registerCustomCallback","TrackChangesEditing","getSuggestionCallback","get","discard","_enableDefaultAttributesIntegration","src","formatBlock","locale","_handleLegacySuggestions","ImageEditing","newValue","registerDescriptionCallback","_registerLegacyDescription","commandName","format","_suggestionFactory","plugins"];var fs,hs;fs=gs,hs=222,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class ps extends t.Plugin{[ms("0xd")](){if(!this[ms("0xf")][ms("0xb")].has(ms("0x4")))return;const t=this[ms("0xf")][ms("0x2")],e=this[ms("0xf")].plugins[ms("0x17")](ms("0x15"));e[ms("0x19")](ms("0x12"),[],[ms("0x0")]),e._descriptionFactory[ms("0x6")]((e=>{if("attribute"!=e[ms("0x11")])return;const{data:n}=e;return n&&"src"==n[ms("0xc")]?n[ms("0x5")]&&n[ms("0xe")]?{type:ms("0x9"),content:Jr(t,"*Replace image URL*")}:{type:"format",content:""}:void 0})),this[ms("0x3")]()}[ms("0x3")](){const t=this[ms("0xf")][ms("0xb")][ms("0x17")](ms("0x15"));t._suggestionFactory.registerCustomCallback(ms("0x1"),ms("0x12"),"accept",t[ms("0xa")][ms("0x16")]("formatBlock",null,ms("0x18"))),t[ms("0xa")][ms("0x14")](ms("0x1"),ms("0x12"),ms("0x18"),t[ms("0xa")][ms("0x16")]("formatBlock",null,ms("0x13"))),this[ms("0x7")]()}[ms("0x7")](){const t=this[ms("0xf")],e=t[ms("0x2")];t[ms("0xb")][ms("0x17")](ms("0x15"))[ms("0x10")][ms("0x6")]((t=>{if(ms("0x1")!=t.type&&"formatInline"!=t[ms("0x11")])return;const{data:n}=t;return n&&ms("0x12")==n[ms("0x8")]?{type:"format",content:Jr(e,"*Format:* replace image URL")}:void 0}))}}const bs=["forEach","normalizedStyles","model","get","type","newRange","plugins","convertInlineImageToBlock","author","getSuggestionCallback","_suggestionFactory","next","locale","side","chain","setImageNaturalSizeAttributes","registerCustomCallback","_splitMarkerName","differ","markInlineFormat","discard","getContainedElement","isIntersecting","ImageUtils","findIndex","head","accept","join","selection","isEqual","formatInline","isBlockImage","formatBlock","getSuggestion","imageStylePreApply","length","start","document","hasSuggestion","_registerLegacyDescription","_descriptionFactory","imageTypeInline","toLowerCase","shouldConvertImageType","change","suggestion","commandName","end","isInlineImage","getSuggestions","subType","insertion","format","commands","TrackChangesEditing","getClosestSelectedImageElement","editor","imageStylePostApply","refresh","markBlockFormat","imageStyle","discardSuggestion","getChangedMarkers","has","nodeAfter","isInContent","_findSuggestions","createRangeOn","filter","afterInit","commandReversedParams","value","ImageStyleEditing","from","getFirstRange"];var Es,_s;Es=bs,_s=408,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return bs[t-=0]};class ys extends t.Plugin{[Ts("0x24")](){const t=this[Ts("0x17")];if(!t[Ts("0x30")][Ts("0x1e")](Ts("0x27")))return;const n=t[Ts("0x30")][Ts("0x2d")](Ts("0x15")),r=t[Ts("0x30")][Ts("0x2d")](Ts("0x41")),o={};n.enableCommand(Ts("0x1b"),((o,i)=>{const s=t[Ts("0x30")][Ts("0x2d")]("Users").me,x=t[Ts("0x14")][Ts("0x2d")](Ts("0x1b"));let a=r[Ts("0x16")](t.model[Ts("0x4")][Ts("0x46")]),c=t[Ts("0x2c")][Ts("0x22")](a),l=x[Ts("0x26")];if(l==i[Ts("0x26")])return;const u={commandName:Ts("0x1b"),commandParams:[i],formatGroupId:(0,e.uid)()};t.model[Ts("0xb")]((()=>{if(n[Ts("0x10")]()[Ts("0x23")]((t=>t[Ts("0x20")]&&s==t[Ts("0x32")]&&("formatBlock"==t[Ts("0x2e")]||Ts("0x48")==t[Ts("0x2e")])&&(Ts("0x1")==t[Ts("0x11")]||Ts("0x18")==t.subType)&&t[Ts("0x29")]()[Ts("0x47")](c)))[Ts("0x2a")]((t=>n[Ts("0x1c")](t[Ts("0x43")]))),a=r.getClosestSelectedImageElement(t.model[Ts("0x4")][Ts("0x46")]),c=t.model.createRangeOn(a),x[Ts("0x19")](),t[Ts("0x14")][Ts("0x2d")](Ts("0x8"))[Ts("0x19")](),t[Ts("0x14")][Ts("0x2d")]("imageTypeBlock")[Ts("0x19")](),l=x[Ts("0x26")],l!=i[Ts("0x26")])return r[Ts("0xf")](a)&&x[Ts("0xa")](i[Ts("0x26")],a)?(o({...i,setImageSizes:!1}),a=r[Ts("0x16")](t[Ts("0x2c")][Ts("0x4")][Ts("0x46")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],Ts("0x1"))):void(r.isBlockImage(a)?n[Ts("0x1a")](a,u,[],"imageStylePostApply"):n[Ts("0x3d")](c,u,Ts("0x18")))}))}));for(const e of t.plugins[Ts("0x2d")](Ts("0x27"))[Ts("0x2b")])o[e.name]=e.title[Ts("0x9")]();n[Ts("0x34")][Ts("0x3a")](Ts("0x4a"),"imageStylePreApply",Ts("0x45"),(()=>!1)),n[Ts("0x34")][Ts("0x3a")](Ts("0x4a"),"imageStylePostApply","join",(()=>!1)),n._suggestionFactory[Ts("0x3a")](Ts("0x48"),"imageStylePostApply",Ts("0x45"),(()=>!1)),n[Ts("0x34")].registerCustomCallback(Ts("0x4a"),Ts("0x1"),"accept",(([t])=>{r[Ts("0x39")](t[Ts("0x3f")]())})),n._suggestionFactory.registerCustomCallback("formatBlock",Ts("0x1"),Ts("0x3e"),((t,e)=>{n[Ts("0x34")][Ts("0x33")](Ts("0x4a"),"",Ts("0x44"))(t,{commandName:e.commandName,commandParams:e[Ts("0x25")]})})),n[Ts("0x34")].registerCustomCallback(Ts("0x4a"),Ts("0x1"),Ts("0x38"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:"formatBlock",subType:"imageStylePreApply"},{type:Ts("0x12"),subType:"imageCaption"},{type:Ts("0x4a"),subType:"convertInlineImageToBlock"},{type:Ts("0x12"),subType:Ts("0x31")}];function s(t,e){const o=i[Ts("0x42")]((({type:e,subType:n})=>t[Ts("0x2e")]==e&&t[Ts("0x11")]==n)),s=i.findIndex((({type:t,subType:n})=>e[Ts("0x2e")]==t&&e[Ts("0x11")]==n));if(o<0||s<0)return!1;const x=t.getFirstRange(),a=e[Ts("0x29")]();if((0==o||1==o)&&2==s&&x[Ts("0x40")](a))return!0;if(2==o&&3==s){const t=n[Ts("0x21")](x,Ts("0x12")).filter((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[Ts("0x11")]));if(t[Ts("0x2")]>1&&a.end[Ts("0x47")](x[Ts("0x3")]))return!0;if(1==t[Ts("0x2")]&&(x[Ts("0x3")][Ts("0x47")](a[Ts("0xe")])||x.end[Ts("0x47")](a[Ts("0x3")])))return!0}if(3==o&&3==s&&x[Ts("0x3")].isBefore(a[Ts("0x3")])){const t=x[Ts("0xe")][Ts("0x1f")],e=a[Ts("0x3")].nodeBefore;return r.isBlockImage(t)&&t===e}return!1}t[Ts("0x2c")].document.registerPostFixer((()=>{let e=!1;const o=Array[Ts("0x28")](t.model[Ts("0x4")][Ts("0x3c")][Ts("0x1d")]());for(const{name:t,data:i}of o){const{group:o,type:s,subType:x,id:a}=n[Ts("0x3b")](t);if(Ts("0xc")==o&&n[Ts("0x5")](a)){if(Ts("0x4a")==s&&(Ts("0x1")==x||"imageStylePostApply"==x)){const t=n[Ts("0x0")](a);if(i[Ts("0x2f")]){const o=t[Ts("0x29")]()[Ts("0x3f")]();if(r[Ts("0x49")](o))continue;n.discardSuggestion(t),e=!0}}if(Ts("0x12")==s&&"imageCaption"==x&&!i[Ts("0x2f")]){const t=n[Ts("0x0")](a);t[Ts("0x35")]&&t[Ts("0x35")].isInContent&&(n[Ts("0x1c")](t.next),e=!0)}}}return e})),this[Ts("0x6")](o)}[Ts("0x6")](t){const e=this[Ts("0x17")],n=e[Ts("0x36")];e.plugins[Ts("0x2d")](Ts("0x15"))[Ts("0x7")].registerDescriptionCallback((e=>{if(Ts("0x4a")!=e[Ts("0x2e")]&&Ts("0x48")!=e.type)return;const{data:r}=e;if(!r||Ts("0x1b")!=r[Ts("0xd")])return;const o=r.commandParams[0].value;return i=Ts("0x37")===o?Jr(n,"FORMAT_SIDE_IMAGE"):t[o]||o,{type:Ts("0x13"),content:Jr(n,"*Format:* %0",i)};var i}))}}const Cs=["afterInit","TrackChangesEditing","commands","track_changes","high","importWord","execute","_trackChangesExecuted","editor","dataInsert","listenTo","forEach","trackChanges","value","bind","Users","_trackChangesValueDuringImport","collaboration_features","get","_setSuggestionData","plugins"];var As,ks;As=Cs,ks=257,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._trackChangesValueDuringImport=!1,this[Is("0x2")]=!1}[Is("0x10")](){const t=this[Is("0x3")],e=t.commands[Is("0xd")](Is("0x0")),n=t[Is("0x12")][Is("0xd")]("trackChanges");e&&(e.on(Is("0x1"),((t,[,e])=>{this[Is("0xb")]=n[Is("0x8")],e[Is("0xc")][Is("0x13")]=!this[Is("0xb")]}),{priority:Is("0x14")}),this[Is("0x5")](e,Is("0x4"),this._handleImportedData[Is("0x9")](this)),this[Is("0x5")](e,Is("0x4"),(()=>{this[Is("0x2")]&&(n[Is("0x1")](),this[Is("0x2")]=!1)}),{priority:"lowest"}),t[Is("0xf")][Is("0xd")](Is("0x11")).enableCommand("importWord"))}_handleImportedData(t,e){const{suggestions:n}=e,r=this[Is("0x3")][Is("0x12")].get(Is("0x7")),o=r[Is("0x8")];this[Is("0xb")]!==o&&(r[Is("0x1")](),this._trackChangesExecuted=!0),n&&n[Is("0x6")]((({id:t,type:e,author:n,created_at:r})=>{const o={id:t,type:e,authorId:this[Is("0x3")][Is("0xf")].get(Is("0xa")).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("0x3")][Is("0xf")].get(Is("0x11"))[Is("0xe")](o)}))}}const Ss=["commandName","TrackChangesEditing","plugins","format","formatBlock","blockIndent","getItems","*Outdent:* %0","locale","has","*Indent:* %0","indent","indentBlock","_registerLegacyDescription","afterInit","outdentBlock","type","_enableDefaultAttributesIntegration","editor","outdent","get","registerDescriptionCallback","_registerBlockAttribute","enableCommand","_descriptionFactory"];var vs,Ns;vs=Ss,Ns=336,function(t){for(;--t;)vs.push(vs.shift())}(++Ns);const Ls=function(t,e){return Ss[t-=0]};class Ms extends t.Plugin{[Ls("0x3")](){const t=this[Ls("0x7")],e=t[Ls("0x10")][Ls("0x9")](Ls("0xf"));if(t.plugins[Ls("0x17")]("IndentEditing")&&(e[Ls("0xc")](Ls("0x0")),e[Ls("0xc")](Ls("0x8"))),t[Ls("0x10")][Ls("0x17")]("IndentBlock"))for(const t of["indentBlock",Ls("0x4")])e[Ls("0x6")](t);const n=t[Ls("0x16")];e[Ls("0xb")](Ls("0x13")),e._descriptionFactory.registerAttributeLabel(Ls("0x13"),Jr(n,"FORMAT_INDENT")),this[Ls("0x2")]()}_registerLegacyDescription(){const t=this[Ls("0x7")],e=t[Ls("0x16")],n=t.plugins.get(Ls("0xf"));n._descriptionFactory[Ls("0xa")]((t=>{if(Ls("0x12")!=t[Ls("0x5")])return;const{data:r}=t;if(!r)return;if(Ls("0x1")!=r[Ls("0xe")]&&Ls("0x4")!=r[Ls("0xe")])return;const o=t[Ls("0x14")]()[0],i=n[Ls("0xd")].getItemLabel(o);return Ls("0x1")==r[Ls("0xe")]?{type:"format",content:Jr(e,Ls("0x18"),i)}:Ls("0x4")==r.commandName?{type:Ls("0x11"),content:Jr(e,Ls("0x15"),i)}:void 0}))}}var ws,Os,Fs=["enableCommand","input","TrackChangesEditing","requires","plugins"];ws=Fs,Os=353,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[Xo.Input]}init(){this.editor[Ds("0x1")].get(Ds("0x4"))[Ds("0x2")](Ds("0x3"))}}const Bs=["_descriptionFactory","TrackChangesEditing","has","plugins","type","linkHref","formatInline","toLowerCase","registerAttributeLabel","_registerLegacyDescription","editor","afterInit","link (","commands","get","*Set link:* %0","manualDecorators","format","LinkEditing","unlink","commandParams","_enableDefaultAttributesIntegration","registerDescriptionCallback","map","commandName","locale","link","attribute"];var Us,js;Us=Bs,js=307,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Bs[t-=0]};class Vs extends t.Plugin{[Gs("0xc")](){const t=this[Gs("0xb")];if(!t[Gs("0x4")][Gs("0x3")](Gs("0x13")))return;const e=t.plugins[Gs("0xf")](Gs("0x2")),n=t[Gs("0xe")][Gs("0xf")](Gs("0x1b"));e._enableDefaultAttributesIntegration(Gs("0x1b"),["linkHref",...n[Gs("0x11")][Gs("0x18")]((t=>t.id))]),e[Gs("0x16")](Gs("0x14"));for(const t of n[Gs("0x11")])e[Gs("0x1")][Gs("0x9")](t.id,Gs("0xd")+t.label[Gs("0x8")]()+")");e[Gs("0x1")][Gs("0x17")]((e=>{if(Gs("0x0")!=e[Gs("0x5")])return;const{data:n}=e;if(!n||Gs("0x6")!=n.key)return;const r=n.newValue,o=t[Gs("0x1a")];return{type:Gs("0x12"),content:null==r?Jr(o,"*Remove link*"):Jr(o,Gs("0x10"),'"'+r+'"')}})),this[Gs("0xa")]()}[Gs("0xa")](){const t=this[Gs("0xb")],e=t[Gs("0x1a")];t[Gs("0x4")][Gs("0xf")](Gs("0x2"))[Gs("0x1")][Gs("0x17")]((t=>{if(Gs("0x7")!=t[Gs("0x5")])return;const{data:n}=t;if(n){if(Gs("0x1b")==n[Gs("0x19")]){const t=n[Gs("0x15")][0];return{type:Gs("0x12"),content:Jr(e,Gs("0x10"),'"'+t+'"')}}return Gs("0x14")==n.commandName?{type:"format",content:Jr(e,"*Remove link*")}:void 0}}))}}const Hs=["_descriptionFactory","numberedList","getSelectedBlocks","add","listIndent","model","indentList","execute","type","parent","*Change to:* %0","checkTodoList","LegacyListEditing","change","bulleted","value","todoList","filter","*Indent:* %0","selection","commands","createPositionAt","numbered","name","TrackChangesEditing","createRange","*Outdent:* %0","has","commandName","checkChild","document","listItem","outdentList","isObject","replace","commandParams","ELEMENT_BULLETED_LIST","_selectedElements","todoListChecked","get","ELEMENT_LIST_ITEM","todo","getAttribute","previousSibling","bulletedList","enableCommand","listType","locale","plugins","element","format","nextSibling","from","push","formatInline","afterInit","forceValue","markBlockFormat","List","registerDescriptionCallback","findIndex"];var zs,Ws;zs=Hs,Ws=369,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Ks=function(t,e){return Hs[t-=0]};class qs extends t.Plugin{[Ks("0x34")](){const t=this.editor,e=t[Ks("0x2c")];if(!t[Ks("0x2d")][Ks("0x18")](Ks("0x9")))return;const n=t.plugins[Ks("0x24")](Ks("0x15")),r=t[Ks("0x2d")][Ks("0x18")]("LegacyTodoListEditing");function o(e){return()=>{const r=t[Ks("0x2")][Ks("0x1b")][Ks("0x10")],o=t[Ks("0x11")].get(e);if(o[Ks("0xc")])return void t[Ks("0x4")]("paragraph",{});const i=e.slice(0,-4),s=function(t,e,n){let r=Array[Ks("0x31")](t)[Ks("0xe")]((t=>{return e=t,(r=n)[Ks("0x1a")](e[Ks("0x6")],Ks("0x1c"))&&!r[Ks("0x1e")](e);var e,r}));r=r.filter((t=>!t.is("element",Ks("0x1c"))||t[Ks("0x27")](Ks("0x2b"))!=e));const o=new Set;for(const t of r)t.is(Ks("0x2e"),Ks("0x1c"))?o[Ks("0x0")](Xs(t)):o.add(t);return Array[Ks("0x31")](o)}(r[Ks("0x3c")](),i,t[Ks("0x2")].schema);t[Ks("0x2")][Ks("0xa")]((()=>{for(const t of s)n[Ks("0x36")](t,{commandName:e,commandParams:[{forceValue:!o[Ks("0xc")]}],formatGroupId:"blockName"},$s(t))}))}}function i(e){return()=>{const r=function(t){let e=Array[Ks("0x31")](t);const n=e[Ks("0x39")]((t=>Ks("0x1c")!=t.name));return n>-1&&(e=e.slice(0,n)),e}(t[Ks("0x2")][Ks("0x1b")][Ks("0x10")][Ks("0x3c")]()),o=t[Ks("0x2")][Ks("0x16")](t[Ks("0x2")][Ks("0x12")](r[0],"before"),t[Ks("0x2")][Ks("0x12")](r[r.length-1],"end"));t[Ks("0x2")].change((()=>{n[Ks("0x36")](o,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t.getAttribute(Ks("0x1"))>n[Ks("0x27")]("listIndent");)e.add(t),t=t[Ks("0x30")]}return Array[Ks("0x31")](e)}(r))}))}}n[Ks("0x2a")](Ks("0x3b"),o(Ks("0x3b"))),n[Ks("0x2a")](Ks("0x29"),o(Ks("0x29"))),r&&n[Ks("0x2a")](Ks("0xd"),o(Ks("0xd"))),n.enableCommand(Ks("0x3"),i(Ks("0x3"))),n[Ks("0x2a")](Ks("0x1d"),i(Ks("0x1d"))),r&&n[Ks("0x2a")](Ks("0x8"),(()=>{const e=t[Ks("0x11")][Ks("0x24")]("checkTodoList"),r=Array.from(e[Ks("0x22")]);r[Ks("0xe")]((t=>t[Ks("0x27")](Ks("0x23"))!=e.value)),t.model[Ks("0xa")]((()=>{for(const t of r)n[Ks("0x36")](t,{commandName:Ks("0x8"),commandParams:[{forceValue:!e[Ks("0xc")]}]})}))})),n[Ks("0x3a")].registerElementLabel("listItem",(t=>Jr(e,Ks("0x25"),t))),n._descriptionFactory[Ks("0x38")]((t=>{if("formatBlock"!=t.type&&Ks("0x33")!=t[Ks("0x5")])return;const{data:n}=t;if(n){if("numberedList"==n[Ks("0x19")]||Ks("0x29")==n[Ks("0x19")]||Ks("0xd")==n[Ks("0x19")])switch(n[Ks("0x19")][Ks("0x1f")](Ks("0x37"),"")){case Ks("0xb"):return r(Jr(e,Ks("0x21")));case Ks("0x13"):return r(Jr(e,"ELEMENT_NUMBERED_LIST"));case Ks("0x26"):return r(Jr(e,"ELEMENT_TODO_LIST"))}if(Ks("0x3")==n[Ks("0x19")])return{type:"format",content:Jr(e,Ks("0xf"),Jr(e,"ELEMENT_LIST_ITEM"))};if("outdentList"==n.commandName)return{type:Ks("0x2f"),content:Jr(e,Ks("0x17"),Jr(e,"ELEMENT_LIST_ITEM"))};if(Ks("0x8")==n[Ks("0x19")])return n[Ks("0x20")][0][Ks("0x35")]?{type:Ks("0x2f"),content:Jr(e,"*Check item*")}:{type:"format",content:Jr(e,"*Uncheck item*")}}function r(t){return{type:Ks("0x2f"),content:Jr(e,Ks("0x7"),t)}}}))}}function Xs(t){const e=t[Ks("0x27")](Ks("0x1"));if(0==e)return t;let n=t;for(;t[Ks("0x28")]&&t[Ks("0x28")].is(Ks("0x2e"),Ks("0x1c"));){const r=t[Ks("0x28")][Ks("0x27")](Ks("0x1"));if(r==e)n=t[Ks("0x28")];else if(r<e)break;t=t[Ks("0x28")]}return n}function $s(t){const e=[];if(t.is(Ks("0x2e"),"listItem")&&t[Ks("0x27")](Ks("0x1"))>0){let n=t[Ks("0x30")];for(;n&&Ks("0x1c")==n[Ks("0x14")]&&n[Ks("0x27")](Ks("0x1"))==t[Ks("0x27")]("listIndent");)e[Ks("0x32")](n),n=n[Ks("0x30")]}return e}const Zs=["backward","handleListStyleCommand","listStart","config","editor","styles","createPositionAt","commandName","formatInline","ELEMENT_","get","getAttribute","model","plugins","commandParams","length","listReversed","listType","handleListStartCommand","handleDescriptions","filter","markMultiRangeBlockFormat","push","format","reversed","LegacyListUtils","map","change","getSiblingNodes","TrackChangesEditing","replace","handleListReversedCommand","*Format:* set order to reversed","document","list.properties","_getSuggestionBlocksForListStyle","getFirstPosition","registerDescriptionCallback","forward","element","listItem","numbered","_descriptionFactory","selection","toUpperCase","LegacyListPropertiesEditing","bind","parent","getSelectedBlocks","type","createRange","_getTranslationKeyForListStyle","_getSuggestionBlocks","*Format:* set start index to %0","enableCommand","flat","startIndex","listStyle"];var Ys,Js;Ys=Zs,Js=202,function(t){for(;--t;)Ys.push(Ys.shift())}(++Js);const Qs=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{afterInit(){if(!this[Qs("0x22")][Qs("0x2b")].has(Qs("0x11")))return;const t=this[Qs("0x22")][Qs("0x21")][Qs("0x28")](Qs("0x6")),e=this.editor.plugins[Qs("0x28")]("TrackChangesEditing");t[Qs("0x23")]&&e[Qs("0x1a")](Qs("0x1d"),this[Qs("0x1f")][Qs("0x12")](this)),t[Qs("0x36")]&&e[Qs("0x1a")](Qs("0x2e"),this[Qs("0x3")][Qs("0x12")](this)),t[Qs("0x1c")]&&e[Qs("0x1a")](Qs("0x20"),this.handleListStartCommand[Qs("0x12")](this)),e[Qs("0xe")][Qs("0x9")](this[Qs("0x31")].bind(this))}[Qs("0x1f")](t,e={}){const n=this[Qs("0x22")][Qs("0x2b")][Qs("0x28")](Qs("0x1")),r=this[Qs("0x7")]();this[Qs("0x22")].model[Qs("0x39")]((()=>{n[Qs("0x33")](r,{commandName:Qs("0x1d"),commandParams:[{type:e[Qs("0x15")]}],formatGroupId:Qs("0x1d")})}))}[Qs("0x3")](t,e={}){const n=this[Qs("0x22")].plugins[Qs("0x28")](Qs("0x1")),r=this._getSuggestionBlocks((t=>t.is(Qs("0xb"),"listItem")&&Qs("0xd")===t[Qs("0x29")](Qs("0x2f"))));if(r[Qs("0x2d")]<1)return;const o=r[Qs("0x38")]((t=>this[Qs("0x22")][Qs("0x2a")][Qs("0x16")](this[Qs("0x22")].model[Qs("0x24")](t,"before"),this.editor.model[Qs("0x24")](t,0))));this[Qs("0x22")][Qs("0x2a")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:Qs("0x2e"),commandParams:[{reversed:e[Qs("0x36")]}],formatGroupId:Qs("0x2e")})}))}[Qs("0x30")](t,e={}){const n=this[Qs("0x22")][Qs("0x2b")].get("TrackChangesEditing"),r=this[Qs("0x18")]((t=>t.is(Qs("0xb"),Qs("0xc"))&&"numbered"===t[Qs("0x29")](Qs("0x2f"))));if(r[Qs("0x2d")]<1)return;const o=r.map((t=>this[Qs("0x22")][Qs("0x2a")][Qs("0x16")](this[Qs("0x22")][Qs("0x2a")][Qs("0x24")](t,"before"),this.editor.model[Qs("0x24")](t,0))));this[Qs("0x22")][Qs("0x2a")][Qs("0x39")]((()=>{n[Qs("0x33")](o,{commandName:Qs("0x20"),commandParams:[{startIndex:e.startIndex}],formatGroupId:Qs("0x20")})}))}handleDescriptions(t){if("formatBlock"!=t[Qs("0x15")]&&Qs("0x26")!=t[Qs("0x15")])return;const e=this[Qs("0x22")].locale,{data:n}=t;if(!n)return;let r,o;switch(n[Qs("0x25")]){case Qs("0x1d"):r="*Change to:* %0",o={type:Qs("0x35"),content:Jr(e,r,Jr(e,this[Qs("0x17")](n[Qs("0x2c")][0][Qs("0x15")])))};break;case Qs("0x2e"):r=n[Qs("0x2c")][0][Qs("0x36")]?Qs("0x4"):"*Format:* set order to regular",o={type:Qs("0x35"),content:Jr(e,r)};break;case Qs("0x20"):r=Qs("0x19"),o={type:Qs("0x35"),content:Jr(e,r,n.commandParams[0].startIndex)}}return o}[Qs("0x7")](){var t,e,n,r;const o=this[Qs("0x22")].plugins[Qs("0x28")](Qs("0x37"));let i=Array.from(this[Qs("0x22")][Qs("0x2a")][Qs("0x5")][Qs("0xf")][Qs("0x14")]());return(null===(t=i[0])||void 0===t?void 0:t.is(Qs("0xb"),Qs("0xc")))&&i.unshift(...o[Qs("0x0")](this[Qs("0x22")][Qs("0x2a")][Qs("0x5")].selection[Qs("0x8")](),"backward")),(null===(e=i[i.length-1])||void 0===e?void 0:e.is(Qs("0xb"),"listItem"))&&i[Qs("0x34")](...o[Qs("0x0")](this.editor[Qs("0x2a")][Qs("0x5")].selection.getLastPosition(),Qs("0xa"))),i=[...new Set(i)],(null===(r=null===(n=this[Qs("0x22")][Qs("0x2a")][Qs("0x5")][Qs("0xf")][Qs("0x8")]())||void 0===n?void 0:n[Qs("0x13")])||void 0===r?void 0:r.is("element","listItem"))&&(i=i[Qs("0x32")]((t=>t.is(Qs("0xb"),"listItem")))),i}_getSuggestionBlocks(t){const e=this[Qs("0x22")][Qs("0x2b")][Qs("0x28")](Qs("0x37"));let n=Array.from(this[Qs("0x22")][Qs("0x2a")][Qs("0x5")][Qs("0xf")][Qs("0x14")]())[Qs("0x32")](t)[Qs("0x38")]((t=>{const n=this[Qs("0x22")].model[Qs("0x24")](t,0);return[...e[Qs("0x0")](n,Qs("0x1e")),...e[Qs("0x0")](n,"forward")]}))[Qs("0x1b")]();return n=[...new Set(n)],n}[Qs("0x17")](t){return Qs("0x27")+this.editor[Qs("0x2b")][Qs("0x28")](Qs("0x37")).getListTypeFromListStyleType(t)[Qs("0x10")]()+"_LIST_"+t[Qs("0x10")]()[Qs("0x2")](/-/g,"_")}}const ex=["locale","stop","mediaEmbed","MediaEmbedEditing","editor","registerElementLabel","_descriptionFactory","enableCommand","high","TrackChangesEditing","downcastDispatcher","div","media","attribute:url:media","showSuggestionHighlights","has","options","conversion","data","afterInit","plugins","get","for"];var nx,rx;nx=ex,rx=123,function(t){for(;--t;)nx.push(nx.shift())}(++rx);const ox=function(t,e){return ex[t-=0]};class ix extends t.Plugin{[ox("0xb")](){const t=this[ox("0x13")];if(!t.plugins[ox("0x7")](ox("0x12")))return;const e=t[ox("0xc")][ox("0xd")](ox("0x1")),n=t[ox("0xf")];e[ox("0x16")](ox("0x11")),e[ox("0x15")][ox("0x14")](ox("0x4"),(t=>Jr(n,"ELEMENT_MEDIA",t))),t[ox("0x9")][ox("0xe")]("dataDowncast").elementToElement({model:ox("0x4"),view:(t,{writer:e,options:n})=>{if(n[ox("0x6")])return e.createEmptyElement(ox("0x3"))},converterPriority:ox("0x0")}),t[ox("0xa")][ox("0x2")].on(ox("0x5"),((t,e,n)=>{n[ox("0x8")][ox("0x6")]&&t[ox("0x10")]()}),{priority:ox("0x0")})}}const sx=["mention","afterInit","TrackChangesEditing","get","plugins","editor","has"];var xx,ax;xx=sx,ax=458,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{[cx("0x5")](){const t=this[cx("0x2")];t.plugins[cx("0x3")]("MentionEditing")&&t[cx("0x1")][cx("0x0")](cx("0x6")).enableCommand(cx("0x4"))}}const ux=["enableCommand","TrackChangesEditing","ELEMENT_PAGE_BREAK","editor","get","_descriptionFactory","PageBreakEditing","has","locale","afterInit","registerElementLabel","plugins","pageBreak"];var dx,gx;dx=ux,gx=284,function(t){for(;--t;)dx.push(dx.shift())}(++gx);const fx=function(t,e){return ux[t-=0]};class hx extends t.Plugin{[fx("0xb")](){const t=this[fx("0x5")];if(!t.plugins[fx("0x9")](fx("0x8")))return;t[fx("0x0")][fx("0x6")]("TrackChangesEditing")[fx("0x2")](fx("0x1"));const e=t[fx("0x0")][fx("0x6")](fx("0x3")),n=t[fx("0xa")];e[fx("0x7")][fx("0xc")](fx("0x1"),(t=>Jr(n,fx("0x4"),t)))}}const mx=["*Insert:* %0","isBlock","$text","consumable","getFirstRange","plugins","name","locale","insert","type","editing","insertParagraph","get","model","Paragraph","afterInit","ELEMENT_PARAGRAPH","registerDescriptionCallback","isTouching","editor","options","data","showSuggestionHighlights","markerRange","writer","nodeAfter","commandName","ck-suggestion-marker--active","formatBlock","addClass","_enableDefaultAttributesIntegration","TrackChangesEditing","insertion","mapper","paragraph","createUIElement","start","_descriptionFactory","markerName","downcastDispatcher","enableCommand","ck-suggestion-marker-split","*Change to:* %0","getItemLabel","toViewPosition","schema","_registerLegacyDescription","isLimit","addMarker:suggestion:insertion"];var px,bx;px=mx,bx=347,function(t){for(;--t;)px.push(px.shift())}(++bx);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{[Ex("0xb")](){const t=this[Ex("0xf")];if(!t[Ex("0x1")].has(Ex("0xa")))return;const e=t[Ex("0x3")],n=t[Ex("0x1")].get(Ex("0x1b"));n[Ex("0x21")].registerElementLabel("paragraph",(t=>Jr(e,Ex("0xc"),t))),n[Ex("0x1a")](Ex("0x1e")),n[Ex("0x24")](Ex("0x7")),t[Ex("0x6")][Ex("0x23")].on(Ex("0x2c"),Tx(t),{priority:"highest"}),t[Ex("0x11")].downcastDispatcher.on(Ex("0x2c"),((e,n,r)=>{r[Ex("0x10")][Ex("0x12")]&&Tx(t,{showActiveMarker:!1})(e,n,r)}),{priority:"highest"});const r=n[Ex("0x21")];r[Ex("0xd")]((n=>{if(Ex("0x1c")!==n.type)return;const{start:o,end:i}=n[Ex("0x0")]();if(!o[Ex("0xe")](i)||!o.nodeAfter)return;const s=t[Ex("0x9")][Ex("0x29")],x=o[Ex("0x15")];return s[Ex("0x2e")](x)&&!s.isLimit(x)&&s.checkChild(x,Ex("0x2f"))?{type:"insertion",content:Jr(e,Ex("0x2d"),r[Ex("0x27")](x,1))}:void 0})),this[Ex("0x2a")]()}[Ex("0x2a")](){const t=this[Ex("0xf")],e=t[Ex("0x3")];t[Ex("0x1")][Ex("0x8")]("TrackChangesEditing")[Ex("0x21")][Ex("0xd")]((t=>{if(Ex("0x18")!=t[Ex("0x5")])return;const{data:n}=t;return n&&Ex("0x1e")==n[Ex("0x16")]?{type:"format",content:Jr(e,Ex("0x26"),Jr(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,r,o)=>{const i=t[Ex("0x1")][Ex("0x8")](Ex("0x1b")),s=r[Ex("0x13")][Ex("0x20")],x=r[Ex("0x13")].end,a=t[Ex("0x9")][Ex("0x29")];if(!s[Ex("0xe")](x)||!s[Ex("0x15")])return;const c=s[Ex("0x15")];if(a[Ex("0x2e")](c)&&!a[Ex("0x2b")](c)&&a.checkChild(c,"$text")){if(!o[Ex("0x30")].consume(r.markerRange,n[Ex("0x2")]))return;const t=o.writer[Ex("0x1f")]("span",{class:Ex("0x25")}),s=o.mapper[Ex("0x28")](x);e&&i.activeMarkers.includes(r[Ex("0x22")])&&o.writer[Ex("0x19")](Ex("0x17"),t),o[Ex("0x14")][Ex("0x4")](s,t),o[Ex("0x1d")].bindElementToMarker(t,r[Ex("0x22")])}}}const yx=["TrackChangesEditing","_descriptionFactory","RemoveFormatEditing","_enableDefaultAttributesIntegration","editor","plugins","locale","commandName","removeFormat","_registerLegacyDescription","formatInline","*Remove all formatting*","afterInit","registerDescriptionCallback","type","get"];var Cx,Ax;Cx=yx,Ax=105,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Ix extends t.Plugin{[kx("0x3")](){const t=this.editor;t[kx("0xc")].has(kx("0x9"))&&(t[kx("0xc")].get(kx("0x7"))[kx("0xa")]("removeFormat"),this[kx("0x0")]())}[kx("0x0")](){const t=this[kx("0xb")];t[kx("0xc")][kx("0x6")](kx("0x7"))[kx("0x8")][kx("0x4")]((e=>{if("formatBlock"!=e[kx("0x5")]&&kx("0x1")!=e[kx("0x5")])return;const{data:n}=e;return n&&kx("0xf")==n[kx("0xe")]?{type:"format",content:Jr(t[kx("0xd")],kx("0x2"))}:void 0}))}}const Rx=["acceptAllSuggestions","enableCommand","plugins","editor","acceptSuggestion","trackChanges","get","afterInit","TrackChangesEditing","RestrictedEditingModeEditing","discardSuggestion","goToPreviousRestrictedEditingException"];var Sx,vx;Sx=Rx,vx=481,function(t){for(;--t;)Sx.push(Sx.shift())}(++vx);const Nx=function(t,e){return Rx[t-=0]};class Lx extends t.Plugin{[Nx("0x6")](){const t=this[Nx("0x2")];if(!t[Nx("0x1")].has(Nx("0x8")))return;const e=t[Nx("0x1")][Nx("0x5")](Nx("0x7"));e[Nx("0x0")](Nx("0xa")),e[Nx("0x0")]("goToNextRestrictedEditingException");const n=t[Nx("0x1")].get(Nx("0x8"));n[Nx("0x0")](Nx("0x4")),n[Nx("0x0")](Nx("0x3")),n[Nx("0x0")](Nx("0x9")),n[Nx("0x0")](Nx("0xb")),n[Nx("0x0")]("discardAllSuggestions"),n[Nx("0x0")]("acceptSelectedSuggestions"),n[Nx("0x0")]("discardSelectedSuggestions")}}const Mx=["ck-suggestion-marker--active","addMarker:suggestion","createUIElement","name","locale","getItems","includes","_descriptionFactory","model","plugins","markerName","registerElementLabel","data","consumable","split","get","requires","editing","options","span","addMarker:suggestion:deletion","mapper","toViewPosition","element","TrackChangesEditing","createPositionBefore","writer","bindElementToMarker","deletion","showSuggestionHighlights","markerRange","softBreak","shiftEnter","high","activeMarkers","ck-suggestion-marker-","downcastDispatcher","init"];var wx,Ox;wx=Mx,Ox=190,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("0x10")](){return[Ei.ShiftEnter]}[Fx("0x25")](){const t=this.editor,e=t[Fx("0x9")][Fx("0xf")]("TrackChangesEditing");e.enableCommand(Fx("0x20")),t[Fx("0x11")].downcastDispatcher.on("addMarker:suggestion:insertion",Px(t),{priority:Fx("0x21")}),t[Fx("0x11")][Fx("0x24")].on(Fx("0x14"),Px(t),{priority:Fx("0x21")}),t[Fx("0xc")][Fx("0x24")].on(Fx("0x1"),((e,n,r)=>{r[Fx("0x12")][Fx("0x1d")]&&Px(t,{showActiveMarker:!1})(e,n,r)})),e[Fx("0x7")][Fx("0xb")](Fx("0x1f"),(e=>Jr(t[Fx("0x4")],"ELEMENT_LINE_BREAK",e)))}}function Px(t,{showActiveMarker:e=!0}={}){return(n,r,o)=>{const i=t[Fx("0x9")][Fx("0xf")](Fx("0x18"));if(!o[Fx("0xd")].test(r.markerRange,n[Fx("0x3")]))return;const s=t[Fx("0x8")];for(const t of r[Fx("0x1e")][Fx("0x5")]()){if(!t.is(Fx("0x17"),"softBreak"))continue;const n=Fx("0x1c")==r[Fx("0xa")][Fx("0xe")](":")[1]?"merge":Fx("0xe"),x=o[Fx("0x1a")][Fx("0x2")](Fx("0x13"),{class:Fx("0x23")+n}),a=o[Fx("0x15")][Fx("0x16")](s[Fx("0x19")](t));e&&i[Fx("0x22")][Fx("0x6")](r.markerName)&&o[Fx("0x1a")].addClass(Fx("0x0"),x),o.writer.insert(a,x),o[Fx("0x15")][Fx("0x1b")](x,r.markerName)}}}const Bx=["type","getRanges","forceValue","formatInline","_descriptionFactory","document","format","has","change","value","isCollapsed","registerDescriptionCallback","commandParams","afterInit","FORMAT_RESTRICTED_DISABLED","locale","commands","plugins","formatBlock","editor","selection","model","FORMAT_RESTRICTED_ENABLED","get","restrictedEditingException","enableCommand","from"];var Ux,jx;Ux=Bx,jx=106,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Bx[t-=0]};class Vx extends t.Plugin{[Gx("0xf")](){const t=this[Gx("0x15")],e=t[Gx("0x17")],n=t[Gx("0x11")];if(!t[Gx("0x13")][Gx("0x9")]("StandardEditingModeEditing"))return;const r=t[Gx("0x13")][Gx("0x19")]("TrackChangesEditing"),o=Gx("0x1a"),i=t[Gx("0x12")][Gx("0x19")](o);r[Gx("0x0")](o,((t,n={})=>{const s=e[Gx("0x7")][Gx("0x16")];if(s[Gx("0xc")])return void t(n);const x=void 0!==n[Gx("0x4")]?n[Gx("0x4")]:!i[Gx("0xb")];e[Gx("0xa")]((()=>{const t=Array[Gx("0x1")](s[Gx("0x3")]());for(const n of t){const t=x?[n]:Qo(o,n,e);for(const e of t)r.markInlineFormat(e,{commandName:o,commandParams:[{forceValue:x}]})}}))})),r[Gx("0x6")][Gx("0xd")]((t=>{if(Gx("0x14")!=t[Gx("0x2")]&&Gx("0x5")!=t[Gx("0x2")])return;const{data:e}=t;return e&&e.commandName==o?e[Gx("0xe")][0][Gx("0x4")]?{type:Gx("0x8"),content:Jr(n,Gx("0x18"))}:{type:Gx("0x8"),content:Jr(n,Gx("0x10"))}:void 0}))}}const Hx=["plugins","Style","_enableDefaultAttributesIntegration","locale","StyleUtils","_registerBlockAttribute","format","commandName","getGhsAttributeNameForElement","formatBlock","forceValue","*Set format:* %0","formatInline","add","get","inline","TrackChangesEditing","FORMAT_STYLE","styleName","registerAttributeLabel","type","element","block","_registerInlineAttribute","toLowerCase","_descriptionFactory","commandParams","_registerLegacyDescription","style","editor"];var zx,Wx;zx=Hx,Wx=465,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{afterInit(){const t=this[Kx("0xe")];if(!t[Kx("0xf")].has(Kx("0x10"))||!t[Kx("0xf")].has("DataSchema"))return;const e=t.plugins[Kx("0x1d")](Kx("0x1")),n=t[Kx("0x12")],r=t.config[Kx("0x1d")](Kx("0xd")),o=t[Kx("0xf")][Kx("0x1d")]("GeneralHtmlSupport"),i=t.plugins.get(Kx("0x13")).normalizeConfig(t[Kx("0xf")][Kx("0x1d")]("DataSchema"),r.definitions);e[Kx("0x11")](Kx("0xd"));const s=new Set;for(const t of i[Kx("0x7")]){const e=o[Kx("0x17")](t[Kx("0x6")]);s[Kx("0x1c")](e)}const x=new Set;for(const t of i[Kx("0x0")]){const e=o[Kx("0x17")](t.element);x[Kx("0x1c")](e);for(const e of t.ghsAttributes)x[Kx("0x1c")](e)}for(const t of s)e[Kx("0x14")](t),e[Kx("0xa")][Kx("0x4")](t,Jr(n,Kx("0x2")));for(const t of x)e[Kx("0x8")](t),e[Kx("0xa")][Kx("0x4")](t,Jr(n,"FORMAT_STYLE"));this[Kx("0xc")]()}[Kx("0xc")](){const t=this[Kx("0xe")],e=t.locale;t[Kx("0xf")][Kx("0x1d")](Kx("0x1"))[Kx("0xa")].registerDescriptionCallback((t=>{if(Kx("0x18")!=t[Kx("0x5")]&&Kx("0x1b")!=t[Kx("0x5")])return;const{data:n}=t;return n&&"style"===n[Kx("0x16")]?n.commandParams[0][Kx("0x19")]?{type:Kx("0x15"),content:Jr(e,Kx("0x1a"),n.commandParams[0][Kx("0x3")][Kx("0x9")]())}:{type:Kx("0x15"),content:Jr(e,"*Remove format:* %0",n[Kx("0xb")][0].styleName[Kx("0x9")]())}:void 0}))}}const Xx=["getChangedMarkers","_descriptionFactory","from","subType","fromRange","editor","last","removeClass","add","deletion","*Remove:* %0","afterInit","root","isEqual","getAttribute","min","_suggestionFactory","getColumnIndexes","toViewElement","document","showSuggestionHighlights","setSelection","markMultiRangeInsertion","getRanges","model","isInContent","oldRange","getItems","get","ELEMENT_TABLE","map","suggestion","rootName","table","low","forceValue","selectTableRow","length","some","name","maxColumn","order","MIN_SAFE_INTEGER","findAncestor","position","differ","registerPostFixer","end","getContainedElement","createPositionAt","getSelectionAffectedTableCells","insert","createRangeOn","item","ELEMENT_TABLE_ROW_WITH_TEXT","insertTable","insertTableColumnLeft","insertion","data","*Insert:* %0","downcastDispatcher","left","$graveyard","_tableSuggestions","startsWith","selection","type","discard","ELEMENT_TABLE_ROW","addMarker:suggestion","createRangeIn","_splitMarkerName","accept","writer","every","change:data","registerDescriptionCallback","removeTableColumn","toLowerCase","first","ELEMENT_TABLE_COLUMN","rowspan","registerElementLabel","tableColumn","plugins","filter","insertTableRowBelow","tablePaste","classes","execute","substr","TableEditing","ELEMENT_TABLE_WITH_TEXT","start","has","change","above","detach","_setupColumnsRowsFixing","TrackChangesEditing","getRowIndexes","join","refresh","createTableWalker","_tablePostFixingSubtypes","$textProxy","minRow","_getSuggestionCoords","removeTableRow","tableRow","registerCustomCallback","locale","maxRow","minColumn","addClass","enqueueChange","isTouching","TableUtils","MAX_SAFE_INTEGER","hasAttribute","nodeAfter","push","commands","getCellLocation","tableCell","enableCommand","cell","addRange","_getCoordsForCells","_acceptFormatSuggestionCallbackFactory","values","ELEMENT_TABLE_COLUMN_WITH_TEXT","max","selectTableColumn","colspan"];var $x,Zx;$x=Xx,Zx=416,function(t){for(;--t;)$x.push($x.shift())}(++Zx);const Yx=function(t,e){return Xx[t-=0]};class Jx extends t.Plugin{constructor(t){super(t),this[Yx("0x5d")]=[Yx("0x62"),"tableColumn"],this._tableSuggestions=new Set}[Yx("0x0")](){const t=this[Yx("0x81")],e=t[Yx("0xd")][Yx("0x8")][Yx("0x36")];if(!t.plugins[Yx("0x53")](Yx("0x50")))return;const n=t[Yx("0x64")],r=t[Yx("0x49")][Yx("0x11")](Yx("0x58")),o=t[Yx("0x49")][Yx("0x11")](Yx("0x6a"));r[Yx("0x7d")][Yx("0x47")](Yx("0x16"),(t=>Jr(n,Yx("0x12"),t))),this[Yx("0x57")](),r[Yx("0x72")](Yx("0x2c")),r[Yx("0x72")](Yx("0x19")),r.enableCommand(Yx("0x7a"));for(const n of["insertTableRowAbove",Yx("0x4b")]){const i=t[Yx("0x6f")][Yx("0x11")](n);r[Yx("0x72")](n,(n=>{t[Yx("0xd")][Yx("0x54")]((t=>{n();const s=Yx("0x55")===i[Yx("0x1e")],x=o[Yx("0x27")](e),a=o[Yx("0x59")](x),c=s?a.first-1:a.last+1,l=x[0][Yx("0x20")](Yx("0x16")),u=o.createTableWalker(l,{startRow:c,endRow:c}),d=Array[Yx("0x7e")](u)[Yx("0x13")]((e=>t[Yx("0x29")](e[Yx("0x73")])));r[Yx("0xb")](d,Yx("0x62"))}))}))}for(const n of[Yx("0x2d"),"insertTableColumnRight"]){const i=t[Yx("0x6f")][Yx("0x11")](n);r.enableCommand(n,(n=>{t[Yx("0xd")][Yx("0x54")]((t=>{n();const s=Yx("0x32")===i.order,x=o[Yx("0x27")](e),a=o.getColumnIndexes(x),c=s?a[Yx("0x44")]-1:a[Yx("0x82")]+1,l=x[0].findAncestor("table"),u=o[Yx("0x5c")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Yx("0x7e")](u)[Yx("0x13")]((e=>t[Yx("0x29")](e.cell)));r[Yx("0xb")](d,Yx("0x48"))}))}))}for(const n of[Yx("0x61"),Yx("0x42")]){const i=n.substr(11),s=i[Yx("0x43")](),x=s[Yx("0x4f")](0,3)+"span",a=Yx("0x16")+i,c=Yx("0x4")+i,l="max"+i;r[Yx("0x72")](n,(()=>{t[Yx("0xd")][Yx("0x54")]((t=>{const i=o[Yx("0x27")](e),u=i[0].findAncestor(Yx("0x16"));let d;if("removeTableRow"==n){const t=o.getRowIndexes(i);d={startRow:t.first,endRow:t[Yx("0x82")],includeAllSlots:!0}}else{const t=o[Yx("0x6")](i);d={startColumn:t[Yx("0x44")],endColumn:t[Yx("0x82")],includeAllSlots:!0}}const g=o.createTableWalker(u,d),f=Array[Yx("0x7e")](g)[Yx("0x13")]((({cell:t})=>t)),h=Qx(f[Yx("0x4a")]((t=>t[Yx("0x6c")](x)))),m=Qx(f[Yx("0x4a")]((t=>!t[Yx("0x6c")](x)))).map((e=>t.createRangeOn(e))),p=r.markMultiRangeDeletion(m,a);if(p&&(Yx("0x62")==p.subType||Yx("0x48")==p[Yx("0x7f")])){const e=this[Yx("0x60")](p);for(const n of h){const r=t[Yx("0x29")](n),i=o[Yx("0x70")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&p[Yx("0x74")](r)}}}))}))}function i(n){const r=Array.from(e[Yx("0xc")]())[Yx("0x13")]((t=>s.LiveRange[Yx("0x80")](t)));t.model[Yx("0x54")]((e=>{const o=e.batch;n=n[Yx("0x4a")]((t=>Yx("0x33")!=t[Yx("0x1")][Yx("0x15")])),e[Yx("0xa")](n),t.commands[Yx("0x11")](Yx("0x61")).refresh(),t.execute(Yx("0x61"),{forceDefaultExecution:!0}),t[Yx("0xd")][Yx("0x68")]((()=>{t.model.enqueueChange(o,(t=>{const e=r.filter((t=>Yx("0x33")!=t.root[Yx("0x15")]));e[Yx("0x1a")]>0&&t[Yx("0xa")](e);for(const t of r)t[Yx("0x56")]()}))}))}))}function a(n){t[Yx("0xd")].change((r=>{const o=Array[Yx("0x7e")](e[Yx("0xc")]())[Yx("0x13")]((t=>s.LiveRange[Yx("0x80")](t))),i=[];for(const t of n)for(const e of t[Yx("0x10")]({shallow:!0}))i[Yx("0x6e")](e);for(const e of i)Yx("0x33")!=e[Yx("0x1")][Yx("0x15")]&&(r.setSelection(r[Yx("0x26")](e,0)),t.commands.get(Yx("0x42"))[Yx("0x5b")](),t[Yx("0x4e")]("removeTableColumn",{forceDefaultExecution:!0}));const x=o.filter((t=>Yx("0x33")!=t[Yx("0x1")][Yx("0x15")]));x.length>0&&r[Yx("0xa")](x);for(const t of o)t[Yx("0x56")]()}))}function c(t,e){return e[Yx("0x3f")]((e=>t[Yx("0x1b")]((t=>t[Yx("0x24")][Yx("0x2")](e[Yx("0x52")])||e[Yx("0x24")][Yx("0x2")](t[Yx("0x52")])))))}function l(t,e){return t.some((t=>e.some((e=>t[Yx("0x24")][Yx("0x69")](e.start)))))}t[Yx("0x2f")][Yx("0x31")].on(Yx("0x3a"),((t,e,n)=>{if(!n.options[Yx("0x9")])return;const r=e[Yx("0x2a")];if(!r)return;const o=n.mapper[Yx("0x7")](r);function i(t){return Array.isArray(t)?t:[t]}o&&"tableCell"===r[Yx("0x1c")]&&(0,x.setHighlightHandling)(o,n[Yx("0x3e")],((t,e,n)=>n[Yx("0x67")](i(e[Yx("0x4d")]),t)),((t,e,n)=>n[Yx("0x83")](i(e[Yx("0x4d")]),t)))}),{priority:"highest"}),r._descriptionFactory.registerDescriptionCallback((t=>{if(Yx("0x2e")!=t.type&&Yx("0x85")!=t[Yx("0x37")])return;const e=t[Yx("0x25")]();if(null!=e&&e.is("element",Yx("0x16"))){if("insertion"==t[Yx("0x37")]){const e=t[Yx("0x10")]()[Yx("0x4a")]((t=>t.is(Yx("0x5e"))))[Yx("0x13")]((t=>t[Yx("0x2f")]));if(e[Yx("0x1a")])return{type:Yx("0x2e"),content:Jr(n,Yx("0x30"),Jr(n,Yx("0x51"),'"'+e[Yx("0x5a")](" ")+'"'))}}if("deletion"==t[Yx("0x37")]){const e=t[Yx("0x10")]()[Yx("0x4a")]((t=>t.is(Yx("0x5e"))))[Yx("0x13")]((t=>t[Yx("0x2f")]));if(e[Yx("0x1a")])return{type:Yx("0x85"),content:Jr(n,Yx("0x86"),Jr(n,Yx("0x51"),'"'+e[Yx("0x5a")](" ")+'"'))}}}})),r[Yx("0x7d")][Yx("0x41")]((t=>{if(Yx("0x62")==t.subType){const e=t[Yx("0x10")]()[Yx("0x4a")]((t=>t.is(Yx("0x5e"))))[Yx("0x13")]((t=>t.data)),r=this._getSuggestionCoords(t),o=r[Yx("0x65")]-r[Yx("0x5f")]+1;if(Yx("0x2e")==t[Yx("0x37")])return e.length?{type:Yx("0x2e"),content:Jr(n,Yx("0x30"),Jr(n,Yx("0x2b"),[o,'"'+e[Yx("0x5a")](" ")+'"']))}:{type:Yx("0x2e"),content:Jr(n,Yx("0x30"),Jr(n,"ELEMENT_TABLE_ROW",o))};if(Yx("0x85")==t[Yx("0x37")])return e[Yx("0x1a")]?{type:Yx("0x85"),content:Jr(n,Yx("0x86"),Jr(n,Yx("0x2b"),[o,'"'+e[Yx("0x5a")](" ")+'"']))}:{type:"deletion",content:Jr(n,Yx("0x86"),Jr(n,Yx("0x39"),o))}}if(Yx("0x48")==t[Yx("0x7f")]){const e=t.getItems().filter((t=>t.is(Yx("0x5e"))))[Yx("0x13")]((t=>t.data)),r=this[Yx("0x60")](t),o=r[Yx("0x1d")]-r[Yx("0x66")]+1;if(Yx("0x2e")==t[Yx("0x37")])return e[Yx("0x1a")]?{type:Yx("0x2e"),content:Jr(n,Yx("0x30"),Jr(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[o,'"'+e[Yx("0x5a")](" ")+'"']))}:{type:Yx("0x2e"),content:Jr(n,Yx("0x30"),Jr(n,Yx("0x45"),o))};if("deletion"==t[Yx("0x37")])return e[Yx("0x1a")]?{type:Yx("0x85"),content:Jr(n,Yx("0x86"),Jr(n,Yx("0x78"),[o,'"'+e[Yx("0x5a")](" ")+'"']))}:{type:Yx("0x85"),content:Jr(n,"*Remove:* %0",Jr(n,Yx("0x45"),o))}}})),r[Yx("0x5")][Yx("0x63")](Yx("0x2e"),Yx("0x62"),"discard",i),r._suggestionFactory[Yx("0x63")]("deletion",Yx("0x62"),Yx("0x3d"),i),r[Yx("0x5")].registerCustomCallback(Yx("0x2e"),Yx("0x48"),Yx("0x38"),a),r[Yx("0x5")][Yx("0x63")](Yx("0x85"),Yx("0x48"),Yx("0x3d"),a),r[Yx("0x5")][Yx("0x63")]("insertion",Yx("0x48"),"join",c),r[Yx("0x5")][Yx("0x63")](Yx("0x85"),Yx("0x48"),Yx("0x5a"),c),r[Yx("0x5")][Yx("0x63")](Yx("0x2e"),"tableRow",Yx("0x5a"),l),r[Yx("0x5")][Yx("0x63")](Yx("0x85"),Yx("0x62"),Yx("0x5a"),l)}[Yx("0x76")](){const t=this.editor,e=t[Yx("0xd")][Yx("0x8")][Yx("0x36")];return(n,r)=>{t[Yx("0xd")][Yx("0x54")]((o=>{const{commandName:i,commandParams:x}=r;let a=n[0][Yx("0x24")].nodeBefore;x&&x[0]&&!1===x[0][Yx("0x18")]&&(a=n[0][Yx("0x52")][Yx("0x6d")]);const c=o[Yx("0x3b")](a);if(Yx("0x33")==c.root[Yx("0x15")])return;const l=Array.from(e[Yx("0xc")]()).map((t=>s.LiveRange.fromRange(t)));o[Yx("0xa")](c),t[Yx("0x6f")][Yx("0x11")](i)[Yx("0x5b")](),x.push({forceDefaultExecution:!0}),t[Yx("0x4e")](i,...x);const u=l[Yx("0x4a")]((t=>"$graveyard"!=t[Yx("0x1")][Yx("0x15")]));u[Yx("0x1a")]>0&&o.setSelection(u);for(const t of l)t.detach()}))}}[Yx("0x75")](t){const e=this.editor[Yx("0x49")][Yx("0x11")](Yx("0x6a"));let n=Number[Yx("0x6b")],r=Number[Yx("0x1f")],o=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER;for(const s of t){if(Yx("0x33")==s[Yx("0x1")][Yx("0x15")])continue;const{row:t,column:x}=e.getCellLocation(s),a=s[Yx("0x6c")](Yx("0x46"))?s[Yx("0x3")](Yx("0x46"))-1:0,c=s.hasAttribute("colspan")?s.getAttribute(Yx("0x7b"))-1:0;n=t<n?t:n,r=t+a>r?t+a:r,o=x<o?x:o,i=x+c>i?x+c:i}return{minRow:n,maxRow:r,minColumn:o,maxColumn:i}}[Yx("0x57")](){const t=this[Yx("0x81")],e=t[Yx("0x49")][Yx("0x11")](Yx("0x58")),n=t[Yx("0x49")][Yx("0x11")](Yx("0x6a"));t[Yx("0xd")][Yx("0x8")].on(Yx("0x40"),(()=>{const n=Array[Yx("0x7e")](t[Yx("0xd")][Yx("0x8")][Yx("0x22")][Yx("0x7c")]());for(const{name:t,data:r}of n){const{group:n,id:o,subType:i}=e[Yx("0x3c")](t);if(Yx("0x14")!=n)continue;if(null!=r[Yx("0xf")])continue;const s=e.getSuggestion(o);this._tablePostFixingSubtypes.includes(i)&&this[Yx("0x34")][Yx("0x84")](s)}}),{priority:Yx("0x17")});const r=(t,e)=>{let r=!1;const o=e.createRangeOn(t),i=t[Yx("0x20")]("table"),s=n[Yx("0x70")](t);for(const e of this[Yx("0x34")]){const n=e[Yx("0x7f")],x=n[Yx("0x35")](Yx("0x4c")),a=n[Yx("0x4f")](x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+"span",u="min"+a,d=Yx("0x79")+a;if(!e[Yx("0xe")])continue;if(i!=e.getFirstRange()[Yx("0x52")][Yx("0x20")](Yx("0x16")))continue;if(e.isIntersectingWithRange(o))continue;const g=t[Yx("0x6c")](l)?t[Yx("0x3")](l)-1:0,f=this[Yx("0x60")](e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e.addRange(o),r=!0)}return r};t[Yx("0xd")][Yx("0x8")][Yx("0x23")]((e=>{let n=!1;for(const o of t[Yx("0xd")].document[Yx("0x22")].getChanges())if(Yx("0x28")==o.type)if(Yx("0x62")==o.name)for(const t of o.position[Yx("0x6d")].getChildren())n=n||r(t,e);else Yx("0x71")==o.name&&(n=n||r(o[Yx("0x21")][Yx("0x6d")],e));return n}))}[Yx("0x60")](t){return this[Yx("0x75")](t.getRanges().map((t=>t.start[Yx("0x6d")])))}}function Qx(t){return Array.from(new Set(t)[Yx("0x77")]())}const ta=["mergeTableCells","enableCommand","requires","mergeTableCellUp","horizontally","*Split cell:* vertically","return","commands","detach","findAncestor","createRangeOn","$graveyard","_areSelectedCellsMergable","mergeTableCellDown","change","createTableWalker","accept","registerCustomCallback","size","TrackChangesEditing","mergeTableCellRight","highest","getFirstPosition","forceDefaultExecution","*Split cell:* horizontally","plugins","registerDescriptionCallback","value","locale","getRanges","selection","table","type","stop","author","format","deletion","isEnabled","markBlockFormat","subType","TableUtils","map","find","formatBlock","_suggestionFactory","fromRange","length","from","filter","TableEditing","document","has","splitTableCellHorizontally","_descriptionFactory","editor","_tablePostFixingSubtypes","getSuggestions","markMultiRangeBlockFormat","insertion","*Merge cells*","get","getSelectionAffectedTableCells","isInContent","root","getAncestors","tableCell","refresh","_areMergableCells","mergeTableCellLeft","getCellLocation","formatInline","containsRange","setSelection","splitTableCellVertically","cell","model","execute","low","trackChanges","commandName","element"];var ea,na;ea=ta,na=290,function(t){for(;--t;)ea.push(ea.shift())}(++na);const ra=function(t,e){return ta[t-=0]};class oa extends t.Plugin{static get[ra("0x24")](){return[Jx]}afterInit(){const t=this[ra("0x7")],e=t.model[ra("0x3")][ra("0x40")],n=t[ra("0x3e")];if(!t[ra("0x3b")][ra("0x4")](ra("0x2")))return;const r=t[ra("0x3b")][ra("0xd")](ra("0x35")),o=t[ra("0x3b")][ra("0xd")](ra("0x4a")),i=t.plugins[ra("0xd")](Jx);i[ra("0x8")].push(ra("0x22")),r[ra("0x23")]("mergeTableCells",(()=>{const e=o.getSelectionAffectedTableCells(t[ra("0x1c")][ra("0x3")][ra("0x40")]);t.model[ra("0x30")]((()=>{r.markMultiRangeBlockFormat(e,{commandName:"mergeTableCells",commandParams:[]},[],ra("0x22"))}))})),t.commands[ra("0xd")](ra("0x22")).on(ra("0x1d"),((e,n)=>{t.commands[ra("0xd")](ra("0x1f")).value&&(n[ra("0x50")]>0&&n[n[ra("0x50")]-1]&&n[n[ra("0x50")]-1][ra("0x39")]||r._isForcedDefaultExecutionBlock||this[ra("0x2e")]()||e[ra("0x43")]())}),{priority:ra("0x37")});for(const e of["mergeTableCellUp",ra("0x36"),ra("0x2f"),ra("0x15")]){const n=t.commands.get(e);r[ra("0x23")](e,(()=>{const e=t[ra("0x1c")][ra("0x3")][ra("0x40")][ra("0x38")]()[ra("0x11")]()[ra("0x4c")]((t=>t.is(ra("0x21"),ra("0x12")))),o=n[ra("0x3d")];t.model[ra("0x30")]((()=>{r[ra("0xa")]([e,o],{commandName:ra("0x22"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[ra("0x1a"),ra("0x5")]){const n=t[ra("0x29")][ra("0xd")](e);r[ra("0x23")](e,(()=>{const i=o[ra("0xe")](t[ra("0x1c")].document[ra("0x40")])[0],s=i[ra("0x2b")](ra("0x41")),{column:x,row:a}=o[ra("0x16")](i);let c=[];if(ra("0x26")==n.direction){const t=o.createTableWalker(s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ra("0x0")](t)[ra("0x4b")]((t=>t[ra("0x1b")]))}else{const t=o[ra("0x31")](s,{column:x,includeAllSlots:!0});c=Array[ra("0x0")](t).map((t=>t[ra("0x1b")]))}t[ra("0x1c")].change((t=>{r[ra("0x48")](t[ra("0x2c")](i),{commandName:e,commandParams:[]},c,e)}))}))}r[ra("0x6")][ra("0x3c")]((t=>{if(ra("0x4d")!=t[ra("0x42")]&&ra("0x17")!=t[ra("0x42")])return;const{data:e}=t;return e&&ra("0x22")==e[ra("0x20")]?{type:ra("0x45"),content:Jr(n,ra("0xc"))}:void 0})),r._descriptionFactory[ra("0x3c")]((t=>{if(ra("0x4d")!=t[ra("0x42")]&&ra("0x17")!=t[ra("0x42")])return;const{data:e}=t;return e?ra("0x1a")==e[ra("0x20")]?{type:"format",content:Jr(n,ra("0x27"))}:ra("0x5")==e[ra("0x20")]?{type:ra("0x45"),content:Jr(n,ra("0x3a"))}:void 0:void 0}));const x=i._acceptFormatSuggestionCallbackFactory();for(const t of[ra("0x25"),"mergeTableCellRight",ra("0x2f"),ra("0x15")])r._suggestionFactory[ra("0x33")](ra("0x4d"),t,"accept",x);for(const t of["splitTableCellVertically",ra("0x5")])r[ra("0x4e")][ra("0x33")](ra("0x4d"),t,"accept",x);r._suggestionFactory[ra("0x33")](ra("0x4d"),ra("0x22"),ra("0x32"),(n=>{t[ra("0x1c")][ra("0x30")]((r=>{const o=Array[ra("0x0")](e[ra("0x3f")]())[ra("0x4b")]((t=>s.LiveRange[ra("0x4f")](t)));r[ra("0x19")](n),t[ra("0x29")][ra("0xd")]("mergeTableCells")[ra("0x13")](),t.execute("mergeTableCells",{forceDefaultExecution:!0});const i=o[ra("0x1")]((t=>ra("0x2d")!=t[ra("0x10")].rootName));i[ra("0x50")]>0&&r[ra("0x19")](i);for(const t of o)t[ra("0x2a")]()}))}));for(const e of[ra("0x25"),ra("0x2f"),ra("0x15"),ra("0x36")]){const n=t[ra("0x29")][ra("0xd")](e);n.on("set:isEnabled",((e,r,o)=>{if(o){const r=t[ra("0x1c")][ra("0x3")][ra("0x40")][ra("0x38")]().getAncestors()[ra("0x4c")]((t=>t.is(ra("0x21"),ra("0x12"))));this[ra("0x14")](n[ra("0x3d")],r)||(e[ra("0x28")]=!1,e[ra("0x43")]())}}),{priority:ra("0x1e")})}}[ra("0x2e")](){const t=this[ra("0x7")].commands.get(ra("0x22")),e=this[ra("0x7")][ra("0x3b")][ra("0xd")](ra("0x4a"));if(!t[ra("0x47")])return!1;const n=e[ra("0xe")](this.editor[ra("0x1c")].document[ra("0x40")]);for(const t of n)for(const e of n)if(t!=e&&!this[ra("0x14")](t,e))return!1;return!0}[ra("0x14")](t,e){const n=this.editor[ra("0x3b")][ra("0xd")](ra("0x35")),r=this[ra("0x7")][ra("0x1c")][ra("0x2c")](t),o=this[ra("0x7")][ra("0x1c")].createRangeOn(e),i=new Set,s=new Set;for(const t of n[ra("0x9")]())if((ra("0xb")==t[ra("0x42")]||ra("0x46")==t[ra("0x42")]||ra("0x22")==t[ra("0x49")])&&t[ra("0xf")])for(const e of t.getRanges())e.containsRange(r,!0)&&i.add(t[ra("0x42")]+":"+t[ra("0x44")].id),e[ra("0x18")](o,!0)&&s.add(t[ra("0x42")]+":"+t[ra("0x44")].id);if(i[ra("0x34")]!=s.size)return!1;for(const t of i)if(!s.has(t))return!1;return!0}}const ia=["formatBlock","registerDescriptionCallback","FORMAT_HEADER_COLUMN","showSuggestionHighlights","commandName","highest","data-suggestion","type","markerName","FORMAT_REGULAR_ROW","consumable","data","nodeBefore","setTableRowHeader","_enableDefaultAttributesIntegration","addMarker:suggestion","ck-suggestion-marker--active","TableUtils","plugins","cell","removeClass","end","_acceptFormatSuggestionCallbackFactory","includes","getSuggestion","parent","createTableWalker","setAttribute","forceValue","markerNameToElements","consume","headingRows","name","markerRange","_handleLegacySuggestions","editing","nodeAfter","get","_descriptionFactory","afterInit","registerAttributeLabel","writer","requires","locale","registerCustomCallback","editor","TableEditing","*Format:* %0","commandParams","bindElementToMarker","item","ck-suggestion-marker-","TrackChangesEditing","mapper","unbindElementFromMarkerName","addClass","headingColumns","getCellLocation","_registerLegacyDescription","removeMarker:suggestion","setTableColumnHeader","format","has"];var sa,xa;sa=ia,xa=481,function(t){for(;--t;)sa.push(sa.shift())}(++xa);const aa=function(t,e){return ia[t-=0]};class ca extends t.Plugin{static get[aa("0x2")](){return[Jx]}[aa("0x3e")](){const t=this[aa("0x5")];if(!t.plugins[aa("0x16")](aa("0x6")))return;const e=t[aa("0x3")],n=t.plugins[aa("0x3c")](aa("0xc"));n[aa("0x25")](aa("0x24"),[],[aa("0x36")]),n[aa("0x25")](aa("0x14"),[],[aa("0x10")]),n[aa("0x3d")][aa("0x0")](aa("0x36"),Jr(e,"FORMAT_HEADER_ROW")),n[aa("0x3d")][aa("0x0")](aa("0x10"),Jr(e,aa("0x19"))),this[aa("0x39")]()}[aa("0x39")](){const t=this[aa("0x5")][aa("0x29")][aa("0x3c")]("TrackChangesEditing"),e=this[aa("0x5")][aa("0x29")][aa("0x3c")](aa("0x28")),n=this.editor[aa("0x29")][aa("0x3c")](Jx)[aa("0x2d")]();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(o,i,s)=>{const{type:x,id:a}=t._splitMarkerName(i[aa("0x1f")]),c=t.getSuggestion(a),l=c[aa("0x22")];if(aa("0x17")!=c[aa("0x1e")]||!l||aa("0x14")!=l[aa("0x1b")])return;if(i[aa("0xa")])return void o.stop();if(!s[aa("0x21")][aa("0x35")](i[aa("0x38")],o[aa("0x37")]))return;const u=i.markerRange.start[aa("0x3b")],d=i.markerRange[aa("0x2c")][aa("0x23")],g=u.parent[aa("0x30")],{column:f}=e[aa("0x11")](u),{column:h}=e[aa("0x11")](d);for(let o=f;o<=h;o++){const c=e[aa("0x31")](g,{column:o,includeAllSlots:!1});for(const e of c){const o=e[aa("0x2a")],c=s[aa("0xd")].toViewElement(o);s[aa("0x1")][aa("0xf")]("ck-suggestion-marker-"+x,c),r&&s[aa("0x1")][aa("0x32")](aa("0x1d"),a,c),s[aa("0xd")][aa("0x9")](c,i[aa("0x1f")]),n&&(t.activeMarkers[aa("0x2e")](i[aa("0x1f")])?s[aa("0x1")][aa("0xf")]("ck-suggestion-marker--active",c):s.writer.removeClass(aa("0x27"),c))}}}}t._suggestionFactory[aa("0x4")]("formatBlock","setTableRowHeader","accept",n),t._suggestionFactory[aa("0x4")](aa("0x17"),"setTableColumnHeader","accept",n),this.editor[aa("0x3a")].downcastDispatcher.on(aa("0x26"),r(),{priority:aa("0x1c")}),this[aa("0x5")][aa("0x22")].downcastDispatcher.on(aa("0x26"),((t,e,n)=>{n.options[aa("0x1a")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:aa("0x1c")}),this.editor.editing.downcastDispatcher.on(aa("0x13"),((e,n,r)=>{const{type:o,id:i}=t._splitMarkerName(n[aa("0x1f")]),s=t[aa("0x2f")](i),x=s[aa("0x22")];if(aa("0x17")!=s.type||!x||aa("0x14")!=x.commandName)return;const a=r[aa("0xd")][aa("0x34")](n[aa("0x1f")]);if(a)for(const t of a)r.writer[aa("0x2b")](aa("0xb")+o,t),r[aa("0x1")][aa("0x2b")](aa("0x27"),t),r[aa("0x1")].removeAttribute(aa("0x1d"),t),r[aa("0xd")][aa("0xe")](t,n.markerName)}),{priority:aa("0x1c")}),this[aa("0x12")]()}[aa("0x12")](){const t=this[aa("0x5")],e=t[aa("0x3")];function n(t){return{type:aa("0x15"),content:Jr(e,aa("0x7"),t)}}t[aa("0x29")][aa("0x3c")](aa("0xc"))[aa("0x3d")][aa("0x18")]((t=>{if(aa("0x17")!=t[aa("0x1e")])return;const{data:r}=t;if(r){if(aa("0x24")==r[aa("0x1b")]){const t=r[aa("0x8")][0].forceValue;return n(Jr(e,t?"FORMAT_HEADER_ROW":aa("0x20")))}if("setTableColumnHeader"==r[aa("0x1b")]){const t=r[aa("0x8")][0][aa("0x33")];return n(Jr(e,t?aa("0x19"):"FORMAT_REGULAR_COLUMN"))}}}))}}const la=["reduce","redo","add","suggestion:formatBlock:tablePasteCell","createPositionBefore","formatBlock","plugins","documentSelection","rowInsertionRanges","editor","tableCellPadding","document","type","markerToHighlight","afterInit","*Replace table cells*","getSelectionAffectedTableCells","createRangeIn","get","filter","change","removeColumns","getRange","hasSuggestion","length","tablePasteCell","suggestion-td","discard","column","keys","every","columnInsertionIndexes","includes","remove","tableCellBackgroundColor","getItems","getAttributes","high","_createdBatches","insertion","ck-suggestion-marker--active","locale","createRange","map","some","root","markMultiRangeBlockFormat","trackChanges","has","low","table","markerName","getContainedElement","Users","editing","tableCellBorderWidth","clipboardOutput","findAncestor","startsWith","deletion","row","entries","getChild","set","first","createTableWalker","suggestionLoaded","accept","tablePasteColumn","tableCell","name","batch","ck-suggestion-marker","model","setAttribute","insertColumns","showSuggestionHighlights","differ","commands","wrap","isInContent","tablePaste","getRanges","getSuggestions","_suggestionFactory","tableCellBorderStyle","for","columns","_splitMarkerName","deletionRanges","ck-suggestion-marker-insertion","elementToElement","getTableIfOnlyTableInContent","activeMarkers","getChangedMarkers","markMultiRangeDeletion","registerCustomCallback","_replaceTableSlotCell","suggestion","element","from","tableCellSuggestion","unwrap","editingDowncast","getColumns","updateMarker","insert","insertContent","next","markers","forceDefaultExecution","TableClipboard","removeMarker","subType","$graveyard","getChildren","tableCellHorizontalAlignment","columnInsertionRanges","createElement","suggestionUnloaded","isEqual","previousSibling","_isForcedDefaultExecutionBlock","getSuggestionCallback","stop","dataDowncast","selection","tableCellVerticalAlignment","move","rootName","listenTo","containsRange","isEmpty","start","removeRows","oldRange","getAllAdjacentSuggestions","getRows","_getCoordsForCells","markerAttributes","_descriptionFactory","newRange","tablePasteChainId","createRangeOn","attributes","author","registerDescriptionCallback","last","cells","rowInsertionIndexes","paragraph","fromEntries","getRowIndexes","rows","end","markMultiRangeInsertion","push","getMarkers","conversion","join","registerPostFixer","position","schema","getSuggestion","previous","insertRows","tablePasteRow"];var ua,da;ua=la,da=373,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0x10"),"tableCellBorderColor",ga("0x2e"),ga("0x4d"),ga("0x58"),ga("0xa2"),ga("0x8a")],ha=Object[ga("0x70")](fa[ga("0x4")]((t=>[t,null])));class ma extends t.Plugin{static get requires(){return[Jx]}[ga("0x8e")](){const t=this[ga("0x89")];if(!t[ga("0x86")].has(ga("0x48")))return;const n=t.plugins[ga("0x92")]("TrackChangesEditing"),r=t[ga("0x86")][ga("0x92")]("TableUtils"),o=t.plugins[ga("0x92")](Jx),i=t.plugins[ga("0x92")](ga("0x48"));o._tablePostFixingSubtypes.push(ga("0x7f"),"tablePasteColumn"),t[ga("0x22")][ga("0x7b")].register(ga("0x3e"),{allowIn:ga("0x1e"),allowContentOf:"tableCell",isLimit:!0}),t[ga("0x77")][ga("0x34")]({model:ga("0x3e"),view:"suggestion-td"});let s=null;t.model.on(ga("0x44"),((o,x)=>{const[a,c]=x,l=x[x[ga("0x98")]-1];l&&l[ga("0x47")]||n[ga("0x53")]||this[ga("0x89")][ga("0x27")][ga("0x92")](ga("0x8")).value&&function(t,e,n,r,o){if(e&&!e.is(ga("0x87")))return!1;const i=o[ga("0x35")](t,n);if(!i||!ba(i,void 0,r))return!1;const s=r[ga("0x90")](n[ga("0x8b")][ga("0x57")]);if(!s.length)return!1;const x=s[0].findAncestor("table"),a=r[ga("0x71")](s),c=r.getColumnIndexes(s),l={startRow:a[ga("0x19")],endRow:a[ga("0x6c")],startColumn:c[ga("0x19")],endColumn:c.last};return 1==s[ga("0x98")]&&(l.endRow+=r[ga("0x62")](i)-1,l.endColumn+=r[ga("0x41")](i)-1),ba(x,l,r)}(a,c,t.model,r,i)&&(o.stop(),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ga("0x22")][ga("0x94")]((()=>{t.model[ga("0x44")](x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:o,columnInsertionRanges:i,insertionRanges:a,deletionRanges:c,cells:l}=s;o.length&&n.markMultiRangeInsertion(o,ga("0x7f"),{tablePasteChainId:r}),i[ga("0x98")]&&n[ga("0x74")](i,ga("0x1d"),{tablePasteChainId:r}),a[ga("0x98")]&&n[ga("0x74")](a,ga("0x2a"),{tablePasteChainId:r,skipNestingCheck:!0}),c[ga("0x98")]&&n[ga("0x38")](c,ga("0x2a"),{tablePasteChainId:r,skipNestingCheck:!0});const u=n[ga("0x7")](l[ga("0x4")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ga("0x99"),{tablePasteChainId:r});if(u){const e=u.getMarkers(),n=[];for(const{element:r,attributes:o}of l){if(!o)continue;const i=t[ga("0x22")][ga("0x68")](r),s=e.find((t=>t[ga("0x96")]()[ga("0x51")](i)));s&&n[ga("0x75")]([s.name,o])}n.length&&u[ga("0x23")](ga("0x64"),Object[ga("0x70")](n))}s=null})))}),{priority:e.priorities.high+10}),t[ga("0x86")][ga("0x92")](ga("0x48")).on(ga("0x3a"),((t,e)=>{const[n,r,,o]=e;if(!s)return;t[ga("0x55")]();const i=n.cell,x=r,a=pa(i),c=pa(x);t.return=i;let l=null,u=null;if(c||a)if(a&&!c){o[ga("0xa1")](i[ga("0x17")](0));for(const t of Array.from(x[ga("0x4c")]()))o[ga("0x43")](t,i,"end");const t=s[ga("0x6e")][ga("0xa0")](n[ga("0x15")]),e=s[ga("0x9f")][ga("0xa0")](n[ga("0x9c")]);t||e||(l=o.createRangeIn(i))}else c&&!a&&(u=o[ga("0x91")](i));else{const t=o.createElement("tableCellSuggestion"),e=o[ga("0x4f")](ga("0x3e"));o[ga("0x28")](o[ga("0x91")](i),e),o[ga("0x43")](t,i,0);for(const e of Array[ga("0x3d")](x[ga("0x4c")]()))o[ga("0x43")](e,t,ga("0x73"));l=o[ga("0x68")](t),u=o[ga("0x68")](e)}const d=Array[ga("0x3d")](x[ga("0xa4")]()).filter((([t])=>fa[ga("0xa0")](t)));s.cells.push({element:i,attributes:d.length?Object[ga("0x70")](d):null}),l&&s.insertionRanges[ga("0x75")](l),u&&s[ga("0x32")].push(u)}),{priority:ga("0xa5")}),r.on(ga("0x24"),((e,n)=>{const[o,i={}]=n;if(!s)return;const x=i.at||0,a=i[ga("0x30")]||1;s[ga("0x9f")]=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of r[ga("0x1a")](o,{startColumn:x,endColumn:x+a-1}))s[ga("0x4e")][ga("0x75")](t[ga("0x22")][ga("0x68")](e))}),{priority:"low"}),r.on(ga("0x7e"),((e,n)=>{const[o,i={}]=n;if(!s)return;const x=i.at||0,a=i[ga("0x72")]||1;s[ga("0x6e")]=new Array(a).fill(x)[ga("0x4")](((t,e)=>t+e));for(const{cell:e}of r[ga("0x1a")](o,{startRow:x,endRow:x+a-1}))s[ga("0x88")][ga("0x75")](t[ga("0x22")][ga("0x68")](e))}),{priority:ga("0xa")}),n[ga("0x65")][ga("0x6b")]((e=>{if(e[ga("0x4a")]&&e[ga("0x4a")].startsWith(ga("0x2a")))return e[ga("0x7d")]?{}:{type:"insertion",content:Jr(t[ga("0x2")],ga("0x8f"))}}));const x=()=>!1;for(const t of[ga("0x2a"),ga("0x1d"),"tablePasteRow",ga("0x99")])n[ga("0x2d")][ga("0x39")](ga("0x0"),t,"join",x),n._suggestionFactory[ga("0x39")](ga("0x14"),t,"join",x),n[ga("0x2d")][ga("0x39")](ga("0x85"),t,ga("0x78"),x);n[ga("0x2d")].registerCustomCallback(ga("0x85"),"tablePasteCell",ga("0x9b"),x),n[ga("0x2d")][ga("0x39")](ga("0x85"),ga("0x99"),ga("0x1c"),((e,n,r)=>{const o=e[ga("0x4")]((t=>t[ga("0xd")]())).filter((t=>t)),i=new Map(o[ga("0x4")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ga("0x6d")])e&&i[ga("0x18")](t,e);else if(r&&r[ga("0x64")])for(const[e,n]of Object[ga("0x16")](r[ga("0x64")])){const r=t[ga("0x22")][ga("0x46")][ga("0x92")](e),o=r?r[ga("0x96")]()[ga("0xd")]():null;o&&i.set(o,n)}t[ga("0x22")][ga("0x94")]((t=>{for(const[e,n]of i)t.setAttributes({...ha,...n},e)}))}));const a=(e,r)=>{n[ga("0x2d")][ga("0x39")](e,ga("0x2a"),r,((o,i,s)=>{t[ga("0x22")][ga("0x94")]((t=>{const x=[];for(const t of o){const e=t[ga("0x5e")].nodeAfter;e.is(ga("0x3c"),ga("0x3e"))&&x[ga("0x75")](e)}n[ga("0x2d")][ga("0x54")](e,null,r)(o,i,s);for(const e of x)ga("0x4b")!=e[ga("0x6")][ga("0x5a")]&&t.unwrap(e)}))}))};a(ga("0x0"),ga("0x1c")),a(ga("0x0"),"discard"),a(ga("0x14"),ga("0x1c")),a("deletion","discard"),n[ga("0x2d")].registerCustomCallback(ga("0x0"),ga("0x7f"),ga("0x9b"),(t=>{const e=t[ga("0x4")]((t=>t[ga("0xd")]())),n=e[0][ga("0x12")](ga("0xb")),{minRow:i,maxRow:s}=o[ga("0x63")](e);r[ga("0x5f")](n,{at:i,rows:s-i+1})})),n[ga("0x2d")].registerCustomCallback(ga("0x0"),ga("0x1d"),ga("0x9b"),(t=>{const e=t.map((t=>t[ga("0xd")]())),n=e[0][ga("0x12")](ga("0xb")),{minColumn:i,maxColumn:s}=o._getCoordsForCells(e);r[ga("0x95")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e.subType||!e[ga("0x4a")][ga("0x13")](ga("0x2a")))return;const r=e[ga("0x69")][ga("0x67")],o=n[ga("0x2c")]()[ga("0x93")]((t=>t[ga("0x29")]&&t[ga("0x69")]&&t.attributes[ga("0x67")]==r));o[ga("0x98")]&&e[ga("0x61")]().length!=o[ga("0x98")]&&o[ga("0x80")](((t,e)=>(t[ga("0x45")]=e,e[ga("0x7d")]=t,e)))};function l(t,e=!0){const{id:r}=n._splitMarkerName(t[ga("0xc")]),o=[ga("0x21"),ga("0x33")],i=n[ga("0x36")][ga("0xa0")](t[ga("0xc")]);return i&&o[ga("0x75")](ga("0x1")),{classes:o,attributes:{"data-suggestion":r},priority:i&&e?3010:3e3}}n.on(ga("0x1b"),c,{priority:"high"}),n.on(ga("0x50"),c,{priority:"high"}),t.model[ga("0x8b")][ga("0x79")]((()=>{let e=!1;const r=Array[ga("0x3d")](t[ga("0x22")][ga("0x8b")][ga("0x26")][ga("0x37")]());for(const{name:o,data:i}of r){const{group:r,type:s,id:x}=n._splitMarkerName(o);if(ga("0x3b")!=r||ga("0x14")!=s||i[ga("0x60")])continue;if(!n[ga("0x97")](x))continue;const a=n[ga("0x7c")](x).getRanges(),c=t[ga("0x86")].get(ga("0xe")).me;for(const t of n.getSuggestions())if(t[ga("0x29")]&&t[ga("0x6a")]==c&&ga("0x85")==t.type&&ga("0x99")==t[ga("0x4a")]&&t[ga("0x2b")]()[ga("0x9e")]((t=>a[ga("0x5")]((e=>e.containsRange(t,!0))))))for(const n of t[ga("0x61")]())n[ga("0x29")]&&(n[ga("0x9b")](),e=!0)}return e})),t[ga("0x22")].document[ga("0x79")]((e=>{const r=t[ga("0x27")][ga("0x92")](ga("0x81"));if(!r||!r[ga("0xa6")][ga("0x9")](e[ga("0x20")]))return!1;let o=!1;const i=t[ga("0x86")][ga("0x92")](ga("0xe")).me,s=t[ga("0x22")][ga("0x8b")][ga("0x26")].getChanges(),x=Array[ga("0x3d")](t[ga("0x22")][ga("0x8b")][ga("0x26")][ga("0x37")]())[ga("0x93")]((({name:t,data:e})=>{const{group:r,subType:o,authorId:s}=n[ga("0x31")](t);return"suggestion"==r&&"tablePaste"==o&&s==i.id&&!e[ga("0x60")]}));for(const t of s){if("insert"!=t[ga("0x8c")]||"tableCellSuggestion"!=t[ga("0x1f")]||1!=t[ga("0x98")])continue;const n=e[ga("0x3")](t[ga("0x7a")],t[ga("0x7a")].getShiftedBy(1));if(!x.find((({data:t})=>t[ga("0x66")][ga("0x51")](n))))for(const{name:t,data:r}of x)if(n[ga("0x5c")](r.newRange)){e[ga("0x42")](t,{range:n}),o=!0;break}}return o})),t[ga("0x22")][ga("0x8b")][ga("0x79")]((e=>{let r=!1;const o=t.plugins[ga("0x92")]("Users").me,i=n[ga("0x2c")]()[ga("0x93")]((t=>t[ga("0x29")]&&t[ga("0x6a")]==o)),s=new Set,x=new Set;for(const t of i)if(ga("0x2a")==t[ga("0x4a")])for(const e of t[ga("0x76")]()){const n=e[ga("0x96")]()[ga("0xd")]();if(n)if(n.is(ga("0x3c"),ga("0x3e"))&&pa(n)){t[ga("0x49")](e[ga("0x1f")]),s[ga("0x82")](n),r=!0;const o=n.nextSibling,i=n[ga("0x52")],a=o&&o.is(ga("0x3c"),ga("0x3e")),c=i&&i.is("element","tableCellSuggestion");a&&!s.has(o)&&x[ga("0x82")](o),c&&!s[ga("0x9")](i)&&x[ga("0x82")](i)}else n.is(ga("0x3c"),ga("0x6f"))&&n[ga("0x5d")]&&(t[ga("0x49")](e[ga("0x1f")]),r=!0)}else if(ga("0x99")==t.subType){if(!t.attributes||!t[ga("0x69")][ga("0x67")])continue;const e=t[ga("0x69")][ga("0x64")];if(e&&Object[ga("0x9d")](e)[ga("0x98")])continue;const n=t.attributes.tablePasteChainId;let o=!0,s=!0;for(const e of i)if(e[ga("0x4a")]&&e[ga("0x4a")][ga("0x13")]("tablePaste")){if(!e[ga("0x69")].tablePasteChainId){s=!1;break}if(e.id!=t.id&&e[ga("0x69")][ga("0x67")]==n){o=!1;break}}s&&o&&(t.removeMarkers(),r=!0)}for(const t of s)e.remove(t);for(const t of x)e[ga("0x3f")](t);return r})),t[ga("0x77")].for(ga("0x40"))[ga("0x8d")]({model:ga("0x83"),view:(t,e)=>l(t),converterPriority:ga("0xa5")}),t[ga("0x77")][ga("0x2f")](ga("0x56")).markerToHighlight({model:ga("0x83"),view:(t,e)=>e.options[ga("0x25")]?l(t,!1):null,converterPriority:ga("0xa5")});const u=t[ga("0xf")].view;this[ga("0x5b")](u[ga("0x8b")],ga("0x11"),((t,e)=>{const n=[];for(const t of u.createRangeIn(e.content)[ga("0xa3")]())t.is(ga("0x3c"),ga("0x9a"))&&n[ga("0x75")](t);u[ga("0x94")]((t=>{for(const e of n)t[ga("0x59")](t[ga("0x91")](e),t[ga("0x84")](e)),t[ga("0xa1")](e)}))}))}}function pa(t){if(t[ga("0x5d")])return!0;const e=t[ga("0x17")](0);return e.is(ga("0x3c"),ga("0x6f"))&&e[ga("0x5d")]}function ba(t,e={},n){for(const{isAnchor:r,cellHeight:o,cellWidth:i}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!r||1!=o||1!=i)return!1;return!0}const Ea=["handleResizeTableWidthCommand","columnWidths","*Format:* resize table","document","author","tableWidth","locale","_descriptionFactory","data","registerCustomCallback","plugins","TableColumnResizeEditing","resizeTable","model","commandParams","TrackChangesEditing","formatBlock","resizeTableWidth","registerDescriptionCallback","getSuggestions","markBlockFormat","Users","change","table","bind","get","getSelectedElement","selection","afterInit","getAttribute","formatInline","format","type","getContainedElement","getTableColumnsWidths","handleSuggestionDescription","_suggestionFactory","discard","formatGroupId","accept","editor"];var _a,Ta;_a=Ea,Ta=231,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("0xe")][ya("0x19")].has(ya("0x1a")))return;const t=this[ya("0xe")].plugins[ya("0x28")](ya("0x1e"));t.enableCommand("resizeTableWidth",this.handleResizeTableWidthCommand[ya("0x27")](this)),t[ya("0xa")].registerCustomCallback(ya("0x1f"),ya("0x1b"),"accept",t[ya("0xa")].getSuggestionCallback(ya("0x1f"),null,ya("0xb"))),t[ya("0xa")][ya("0x18")](ya("0x1f"),"resizeTable","discard",t._suggestionFactory.getSuggestionCallback(ya("0x1f"),null,ya("0xd"))),t[ya("0x16")][ya("0x21")](this[ya("0x9")].bind(this))}[ya("0xf")](t,e){const n=this.editor.plugins[ya("0x28")]("TrackChangesEditing"),r=this[ya("0xe")][ya("0x19")].get(ya("0x1a")),o=e[ya("0x26")]||this[ya("0xe")][ya("0x1c")][ya("0x12")][ya("0x1")][ya("0x0")]();this.editor.model[ya("0x25")]((()=>{const i=r.getColumnGroupElement(o);let s=i?r[ya("0x8")](i):null,x=o[ya("0x3")](ya("0x14"))||null;const a=e[ya("0x14")]||x,c=e[ya("0x10")]||s,l=this[ya("0xe")][ya("0x19")][ya("0x28")](ya("0x24")).me;for(const t of n[ya("0x22")]()){const e=t[ya("0x7")]();if(ya("0x1b")===t.subType&&e===o){t[ya("0x13")]!==l&&t[ya("0xb")]();const e=t[ya("0x17")][ya("0x1d")];x=e[0][ya("0x14")],s=e[0][ya("0x10")];break}}t({table:o,tableWidth:a,columnWidths:c}),n[ya("0x23")](o,{commandName:ya("0x20"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:ya("0x1b")},[],"resizeTable")}))}[ya("0x9")](t){if(ya("0x1f")!=t[ya("0x6")]&&ya("0x4")!=t[ya("0x6")])return;const{data:e}=t;if(e&&ya("0x1b")===e[ya("0xc")]){const t=ya("0x11");return{type:ya("0x5"),content:Jr(this[ya("0xe")][ya("0x15")],t)}}}}const Aa=["editor","TrackChangesEditing","has","afterInit","enableCommand","get","Template"];var ka,Ia;ka=Aa,Ia=230,function(t){for(;--t;)ka.push(ka.shift())}(++Ia);const Ra=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{[Ra("0x4")](){const t=this[Ra("0x1")];t.plugins[Ra("0x3")](Ra("0x0"))&&t.plugins[Ra("0x6")](Ra("0x2"))[Ra("0x5")]("insertTemplate")}}const va=["plugins","tableOfContents","get","enableCommand","afterInit","editor","locale","_descriptionFactory","commands","insertTableOfContents","TrackChangesEditing"];var Na,La;Na=va,La=259,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[Ma("0xa")];if(!t[Ma("0x2")][Ma("0x7")](Ma("0x3")))return;t[Ma("0x5")][Ma("0x7")](Ma("0x4"))[Ma("0x8")](Ma("0x3"));const e=t.plugins.get(Ma("0x4")),n=t[Ma("0x0")];e[Ma("0x1")].registerElementLabel(Ma("0x6"),(t=>Jr(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const Oa=["forward","start","isCollapsed","Title","afterInit","TrackChangesEditing","model","removeMarker","isTouching","updateMarker","element","createRange","newRange","title-content","isEqual","_descriptionFactory","registerPostFixer","get","ELEMENT_TITLE","has","document","end","plugins","suggestion","locale","getNearestSelectionRange","registerElementLabel"];var Fa,Da;Fa=Oa,Da=101,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Pa=function(t,e){return Oa[t-=0]};class Ba extends t.Plugin{[Pa("0xb")](){const t=this.editor;if(!t[Pa("0x2")][Pa("0x1a")](Pa("0xa")))return;const e=t[Pa("0x2")][Pa("0x18")](Pa("0xc"));e[Pa("0x16")][Pa("0x6")](Pa("0x14"),(()=>Jr(t[Pa("0x4")],Pa("0x19")))),t[Pa("0xd")][Pa("0x0")][Pa("0x17")]((n=>{let r=!1;const o=Array.from(t[Pa("0xd")][Pa("0x0")].differ.getChangedMarkers());for(const{name:i,data:s}of o){const{group:o}=e._splitMarkerName(i);if(Pa("0x3")!==o||!s[Pa("0x13")])continue;const x=s[Pa("0x13")],a=x[Pa("0x1")].nodeBefore;if(!a||!a.is(Pa("0x11"),Pa("0x14")))continue;if(!x[Pa("0x8")][Pa("0xf")](x[Pa("0x1")]))continue;const c=t.model.schema[Pa("0x5")](x.end,Pa("0x7"));if(c&&c[Pa("0x9")]){const t=n[Pa("0x12")](x.start,c[Pa("0x8")]);t[Pa("0x15")](x)||(n[Pa("0x10")](i,{range:t}),r=!0)}r||(n[Pa("0xe")](i),r=!0)}return r}))}}const Ua=["UndoEditing","TrackChangesEditing","afterInit","redo","editor","plugins","enableCommand"];var ja,Ga;ja=Ua,Ga=429,function(t){for(;--t;)ja.push(ja.shift())}(++Ga);const Va=function(t,e){return Ua[t-=0]};class Ha extends t.Plugin{[Va("0x0")](){const t=this[Va("0x2")],e=t.plugins.get(Va("0x6"));t[Va("0x3")].has(Va("0x5"))&&(e[Va("0x4")]("undo"),e[Va("0x4")](Va("0x1")))}}const za=["afterInit","enableCommand","get","plugins","TableCaptionEditing","toggleTableCaption","editor","TrackChangesEditing"];var Wa,Ka;Wa=za,Ka=389,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 requires(){return[Jx]}[qa("0x3")](){const t=this[qa("0x1")];t[qa("0x6")].has(qa("0x7"))&&t[qa("0x6")][qa("0x5")](qa("0x2"))[qa("0x4")](qa("0x0"))}}const $a=["start","tableCellPadding","*Format:* change table properties","tableProperties","getFirstPosition","subType","selection","tableBackgroundColor","TableCellPropertiesEditing","handleSuggestionDescription","accept","pluginName","TableUtils","tableWidth","afterInit","getSelectionAffectedTableCells","nodeAfter","formatBlock","table","handleDiscardAction","tableCellBackgroundColor","_handlePropertyChange","join","enableCommand","registerCustomCallback","TrackChangesEditing","editor","discard","markBlockFormat","change","plugins","tableCellBorderColor","commandParams","getSuggestionCallback","batch","locale","has","setAttribute","tableCellHorizontalAlignment","enqueueChange","tableCellProperties","_suggestionFactory","getContainedElement","removeAttribute","tableCellBorderWidth","*Format:* change table cell properties","get","document","tableAlignment","tableCellBorderStyle","_getSuggestion","registerDescriptionCallback","model","tableBorderWidth","tableCellVerticalAlignment"];var Za,Ya;Za=$a,Ya=364,function(t){for(;--t;)Za.push(Za.shift())}(++Ya);const Ja=function(t,e){return $a[t-=0]};class Qa extends t.Plugin{constructor(t){super(t),this[Ja("0x18")]=["tableBorderColor","tableBorderStyle",Ja("0x13"),Ja("0xe"),Ja("0x22"),"tableHeight",Ja("0x1c")],this.tableCellProperties=[Ja("0x34"),Ja("0xf"),Ja("0xa"),Ja("0x16"),"tableCellWidth","tableCellHeight",Ja("0x29"),Ja("0x4"),Ja("0x14")]}static get[Ja("0x20")](){return"TrackChangesTableProperties"}[Ja("0x23")](){const t=this[Ja("0x2f")][Ja("0x33")][Ja("0xc")](Ja("0x2e"));if(this[Ja("0x2f")].plugins.has("TablePropertiesEditing")){for(const e of this.tableProperties)t.enableCommand(e,((t,n)=>{const r=this[Ja("0x2f")][Ja("0x12")].document[Ja("0x1b")][Ja("0x19")]().findAncestor(Ja("0x27"));this._handlePropertyChange(e,[r],this.tableProperties,"tableProperties",t,n)}));t[Ja("0x7")].registerCustomCallback("formatBlock",Ja("0x18"),Ja("0x1f"),t[Ja("0x7")][Ja("0x36")]("formatBlock",null,Ja("0x30"))),t[Ja("0x7")][Ja("0x2d")]("formatBlock",Ja("0x18"),Ja("0x30"),((t,e)=>this.handleDiscardAction(this.tableProperties,t,e))),t[Ja("0x7")][Ja("0x2d")](Ja("0x26"),Ja("0x18"),"join",(()=>!1))}if(this[Ja("0x2f")][Ja("0x33")][Ja("0x2")](Ja("0x1d"))){for(const e of this[Ja("0x6")])t[Ja("0x2c")](e,((t,n)=>{const r=this[Ja("0x2f")].plugins[Ja("0xc")](Ja("0x21"))[Ja("0x24")](this.editor.model[Ja("0xd")][Ja("0x1b")]);this[Ja("0x2a")](e,r,this[Ja("0x6")],"tableCellProperties",t,n)}));t._suggestionFactory[Ja("0x2d")](Ja("0x26"),"tableCellProperties",Ja("0x1f"),t[Ja("0x7")].getSuggestionCallback(Ja("0x26"),null,Ja("0x30"))),t[Ja("0x7")][Ja("0x2d")]("formatBlock","tableCellProperties",Ja("0x30"),((t,e)=>this.handleDiscardAction(this[Ja("0x6")],t,e))),t[Ja("0x7")][Ja("0x2d")](Ja("0x26"),"tableCellProperties",Ja("0x2b"),(()=>!1))}t._descriptionFactory[Ja("0x11")]((t=>this[Ja("0x1e")](t)))}[Ja("0x2a")](t,e,n,r,o,i){const s=this[Ja("0x2f")][Ja("0x33")][Ja("0xc")](Ja("0x2e"));this.editor.model[Ja("0x5")](i[Ja("0x0")],(()=>{for(const t of e)if(this[Ja("0x10")](t,r))o(i);else{const e={};for(const r of n){const n=t.getAttribute(r);void 0!==n&&(e[r]=n)}o(i),s[Ja("0x31")](t,{commandParams:[e]},[],r)}}))}[Ja("0x28")](t,e,n){const r=e[0][Ja("0x15")][Ja("0x25")],o=n[Ja("0x35")][0];this.editor[Ja("0x12")][Ja("0x32")]((e=>{for(const n of t)void 0!==o[n]?e[Ja("0x3")](n,o[n],r):e[Ja("0x9")](n,r)}))}[Ja("0x1e")](t){if(t.data)switch(t[Ja("0x1a")]){case Ja("0x18"):return{type:"format",content:Jr(this[Ja("0x2f")].locale,Ja("0x17"))};case Ja("0x6"):return{type:"format",content:Jr(this.editor[Ja("0x1")],Ja("0xb"))}}}[Ja("0x10")](t,e){const n=this[Ja("0x2f")][Ja("0x33")][Ja("0xc")](Ja("0x2e"));for(const r of n.getSuggestions({skipNotAttached:!0})){const n=r[Ja("0x8")]();if(r.subType===e&&n===t)return r}return null}}var tc=Function.prototype,ec=Object.prototype,nc=tc.toString,rc=ec.hasOwnProperty,oc=nc.call(Object);const ic=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)==oc};const sc=function(t){return ic(t)?void 0:t};var xc=ot?ot.isConcatSpreadable:void 0;const ac=function(t){return ge(t)||de(t)||!!(xc&&t&&t[xc])};const cc=function t(e,n,r,o,i){var s=-1,x=e.length;for(r||(r=ac),i||(i=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,o,i):sn(i,a):o||(i[i.length]=a)}return i};const 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,o=-1,i=dc(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];o=-1;for(var x=Array(e+1);++o<e;)x[o]=r[o];return x[e]=n(s),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(),o=16-(r-n);if(n=r,o>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})),ie(t,dn(t),n),r&&(n=tr(n,7,sc));for(var o=e.length;o--;)Wr(n,e[o]);return n})),Ec=["insertion:chain","elementToElement","registerPostFixer","getAttribute","enqueueChange","change:data","registerCustomCallback","keys","editing","announce","elementStart","_addSuggestionMarker","createPositionAfter","clone","isIntersectingWithRange","ck-suggestion-marker","track-changes-suggestion-not-found","markInlineFormat","open","markerName","accepted","error-saving-suggestion-data-suggestion-discarded","filter","value","ariaLiveAnnouncer","formatGroupId","documentSelection","groupId","removeAttribute","external:","isMultiRange","dataReady","_processAttributeChanges","backward","change","setAttribute","define","_rangeIsInLocalUserInsertion","markers","_recordAttributeChanges","getChangedMarkers","size","forceDefaultExecution","end","markerReady","_refreshSuggestionsChain","toUpperCase","suggestion-type","addMarkerName","_reduceSuggestionAttributeRange","stop","plugins","isUndo","_model","_registerDefaultCallbacks","_SUGGESTION_ANNOUNCEMENT","ENTER","assign","notReady","_reduceExistingSuggestions","every","insertion","@external","_updateSuggestionData","_refreshAttributeSuggestionsChain","toViewElement","track-changes-enable-command-twice","getCustomProperty","author","normal","adapter","isBefore","ck-suggestion-marker--active","parent","push","formatBlock:","_defaultCallbacks","activeMarkers","addClass","hasSuggestion","previous","widget","_editor","_inlineAttributeKeys","sort","newValue","acceptSuggestion","_setSuggestionRange","formatInline:accept","length","_findSuggestions","consume","nodeBefore","PENDING_ACTION_SUGGESTION","formatInline:","_joinSuggestions","isObject","getUser","lowest","_createSuggestion","trackChanges.mergeNestedSuggestions","acceptAllSuggestions","selection","rename","editor","_registerInlineAttribute","nodeAfter","_isDataLoaded","attribute","discardSuggestion","formatBlock:chain","attribute:accept","createRange","attribute:discard","getSuggestion","addMarker:suggestion","find","removeMarker:suggestion:formatBlock","enableReadOnlyMode","low","isArray","item","includes","multipleBlocks","pluginName","attribute:join","addCommentThread","getNearestSelectionRange","element","pop","originalSuggestionId","suggestionLoaded","concat","_onDiscard","isLocal","editingDowncast","_element","formatInline","formatBlock","_getMarkerAnnouncementText","targetPosition","moveTargetPosition","commands","ready","startsWith","oldValue","isIntersecting","markerToHighlight","suggestion","ck-suggestion-marker-formatBlock","schema","forEach","type","comments","isOwn","differ","dataDowncast","track-changes-suggestion-data-mismatch","detach","createElement","hasCommentThread","authoredAt","high","requires","getFirstRange","_breakSuggestionMarker","hasComments","change:activeMarkers","start","fetchCommentThread","commandName","_isRegisteredAttribute","trackChanges.trackFormatChanges","getContainedElement","from","addSuggestionData","markDeletion","rootName","formatBlock:accept","insertion:join","remove","getRange","_afterChanges","marker-count","update:suggestion","addSuggestion","commentThread","createRangeOn","discardAllSuggestions","isNextTo","after","setSelection","attributeOldValue","newRange","trackChangesCommand","get","howMany","execute","warn","add","$text","_addThreadToSuggestion","toJSON","attributeKey","markMultiRangeInsertion","_isBlockAttribute","_descriptionFactory","splice","attribute:","then","_trackFormatChanges","addMarker","removeMarkers","isCollapsed","key","values","Users","_getAttributeKey","formatInline:chain","collaboration.channelId","accept","range","listenTo","markInsertion","substr","locale","_recordAttributeSuggestions","dataToMarker","$textProxy","getCommentThread","oldRange","_saved","init","discardSelectedSuggestions","acceptSelectedSuggestions","isEqual","name","showSuggestionHighlights","PendingActions","_setSuggestionData","document","skipNestingCheck","addHighlight","suggestion:","track-changes-adapter-already-set","unbind","insertion:","getSuggestions","writer","getMultiRangeId","_mergeNestedSuggestions","createSelection","enableCommand","_splitMarkerName","meta","chain","isLimit","authorName","updateMarker","stopListening","containsPosition","ck-suggestion-marker-","next","_suggestionState","addMarker:suggestion:formatBlock","createdAt","group","data-suggestion","discard","deletion:join","getDifference","getLastMatchingPosition","_checkSuggestionCorrectness","root","$elementName","rejected","unbindElementFromMarkerName","insert","batch","has","forward","setTo","_enabledCommands","map","suggestionChanged","position","fromCharCode","containsRangeInObject","getMarkers","isInContent","highest","formatBlock:join","getItems","deletion:discard","_adapter","TrackChangesEditing","CommentsRepository","split","$graveyard","track-changes-user-not-found","join","_getExternalAuthor","attributes","conversion","trackChanges","markerNameToElements","_getSuggestionData","containsRange","never","formatBlock:discard","_suggestions","set","isBlock","splitPosition","deletion","_blockAttributeKeys","LEAVE","isRemovable","refresh","addMarker:suggestion:attribute","_handleNewSuggestionMarker","upcast","attributeNewValue","unshift","isSelectable","_getAuthorFromId","deletion:chain","change:_saved","markAttributeChange","addRange","_commentsRepository","markerToData","config","consumable","multi","creator","formatInline:join","model","createRangeIn","options","createPositionAt","isAfter","insertContent","addComment","fire","markMultiRangeBlockFormat","data","_initAriaMarkerChangeAnnouncements","_processAttributeSuggestions","removed","getSuggestionCallback","suggestionUnloaded","_customCallbacks","removeMarker","isInsideObject","containsItem","catch","mapper","_cutOutSuggestionMarker","_isForcedDefaultExecutionBlock","subType","buildSuggestion","for","getIntersection","delete","insertion:accept","move","_suggestionFactory","markMultiRangeDeletion","_enableDefaultAttributesIntegration","isAtEnd","createPositionBefore","_joinWithAdjacentSuggestions","getRanges","getFirstMarker","some"];var _c,Tc;_c=Ec,Tc=211,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]},Cc=yc("0x3f");class Ac extends t.Plugin{static get[yc("0x148")](){return["CommentsRepository",i.Users,t.PendingActions,ao,fo,_o,ko,Do,Lo,Go,qo,ii,Ai,vi,Fi,ji,Ki,Yi,ns,xs,ds,ys,ps,Rs,Ms,Ps,qs,tx,Vs,li,mi,ix,lx,hx,_x,Ix,Lx,Dx,Vx,qx,Jx,oa,ca,Xa,ma,Ca,wa,Qa,Sa,Ba,Ha]}static get[yc("0x121")](){return yc("0x54")}constructor(t){function e(t){return t[yc("0x48")]((t=>String[yc("0x4b")](t)))[yc("0x59")]("")}super(t),this._recordAttributeSuggestions=!1,this.set("activeMarkers",[]),this.on(yc("0x14c"),((e,n,r,o)=>{this[yc("0xda")][yc("0xc7")]((()=>{for(const e of[...o,...r])this._model[yc("0xcb")].has(e)&&t[yc("0xad")].reconvertMarker(e)}))})),this[yc("0x173")]=new ro(this[yc("0x10d")][yc("0x7e")][yc("0x13b")],this[yc("0x10d")][yc("0xe")]),this[yc("0x53")]=null,this[yc("0x9c")]=new kc(this[yc("0x10d")]),this[yc("0x63")]=new Map,this[yc("0x77")]=t[yc("0xd8")][yc("0x168")](yc("0x55")),this[yc("0x47")]=new Set,this._model=this[yc("0x10d")].model,this[yc("0x34")]=new WeakMap,this[yc("0x94")]=!1,this[yc("0x68")]=new Set([yc("0x3f")]),this[yc("0xf8")]=new Set,t[yc("0x79")][yc("0xc9")](yc("0x151"),"default"),this[yc("0x177")]=t.config[yc("0x168")](yc("0x151")),t.config[yc("0xc9")](yc("0x109"),!0),this[yc("0x27")]=t[yc("0x79")][yc("0x168")](yc("0x109")),this[yc("0x167")]=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,48])}[yc("0x15")](){const t=this[yc("0x10d")],n=(t,e)=>{if(yc("0x111")!=t)return yc("0x32")+t;const n=e.split("|")[0];return this[yc("0x172")](n)?yc("0x13a"):"ck-suggestion-marker-formatInline"};t.conversion[yc("0x97")](yc("0x12c"))[yc("0x138")]({model:yc("0x139"),view:t=>{const{id:e,type:r,subType:o}=this[yc("0x2a")](t.markerName),i=[yc("0xb4"),n(r,o)];let s=3e3;return this[yc("0xf2")][yc("0x11f")](t[yc("0xb8")])&&(i[yc("0xef")]("ck-suggestion-marker--active"),s=3010),"deletion"==r&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t[yc("0x5c")][yc("0x97")](yc("0x141"))[yc("0x16c")]((e=>{e.on(yc("0x118"),((e,n,r)=>{if(!r.options.showSuggestionHighlights)return;const o=n[yc("0x11e")];if(!o)return;const i=r[yc("0x92")][yc("0xe6")](o);t[yc("0x7e")][yc("0x13b")][yc("0x105")](o)&&i&&!i[yc("0xe8")](yc("0xf6"))&&i.is("containerElement")&&(0,x.toWidget)(i,r[yc("0x25")])}),{priority:"high"})})),t[yc("0x5c")].for(yc("0x141")).markerToHighlight({model:yc("0x139"),view:(t,e)=>{if(!e[yc("0x80")].showSuggestionHighlights)return null;const{type:r,subType:o}=this._splitMarkerName(t[yc("0xb8")]);return{classes:[yc("0xb4"),n(r,o)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,o,i)=>{if(!o.item)return;const{id:s}=this[yc("0x2a")](o[yc("0xb8")]);if(n){const t=this[yc("0x63")].get(s),e=this[yc("0x6")](t);if(!this[yc("0x172")](e))return}if(o.item.is("selection"))return void i[yc("0x7a")][yc("0x100")](o[yc("0x11e")],r[yc("0x19")]);const x=i[yc("0x92")].toViewElement(o.item);if(o.item.is("element")&&t[yc("0x7e")][yc("0x13b")][yc("0x65")](o[yc("0x11e")])&&!x.getCustomProperty("addHighlight")){i[yc("0x25")][yc("0xf3")](["ck-suggestion-marker",yc("0x13a")],x),i.writer[yc("0xc8")](yc("0x38"),s,x),i[yc("0x92")].bindElementToMarker(x,o[yc("0xb8")]),e&&(this[yc("0xf2")][yc("0x11f")](o.markerName)?i[yc("0x25")].addClass("ck-suggestion-marker--active",x):i[yc("0x25")].removeClass("ck-suggestion-marker--active",x));for(const e of t.model[yc("0x7f")](o[yc("0x11e")])[yc("0x51")]())i[yc("0x7a")][yc("0x100")](e,r[yc("0x19")]);i[yc("0x7a")][yc("0x100")](o.item,r[yc("0x19")])}};t[yc("0x5c")][yc("0x97")]("dataDowncast")[yc("0x16c")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,n)=>{n[yc("0x80")].showSuggestionHighlights&&r({showActiveMarkers:!1})(t,e,n)}),{priority:yc("0x4f")})})),t[yc("0x5c")][yc("0x97")](yc("0x141"))[yc("0x16c")]((t=>{t.on(yc("0x6c"),((t,e,n)=>{n[yc("0x80")][yc("0x1a")]&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:yc("0x4f")})})),t[yc("0x5c")].for(yc("0x141"))[yc("0x78")]({model:yc("0x139"),view:(t,e)=>e[yc("0x80")][yc("0x1a")]?null:{group:"suggestion",name:t[yc("0xd")](11)}}),t.conversion.for(yc("0x6e"))[yc("0xa6")]({view:{name:yc("0x139"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=yc("0x20")+t[yc("0xa8")](yc("0xd4"))+":"+t[yc("0xa8")]("id");return t.getAttribute(yc("0x15c"))&&(n+=":"+t.getAttribute(yc("0x15c"))),e[yc("0x144")]("$marker",{"data-name":n})}}),t[yc("0x5c")][yc("0x97")](yc("0x6e"))[yc("0x10")]({view:yc("0x139")}),t.conversion[yc("0x97")](yc("0x12c")).add((t=>{t.on(yc("0x35"),r(),{priority:yc("0x147")})})),t[yc("0x5c")].for("editingDowncast")[yc("0x16c")]((t=>{t.on(yc("0x6c"),r({isAttributeSuggestion:!0}),{priority:"high"})})),t[yc("0x5c")][yc("0x97")](yc("0x12c"))[yc("0x16c")]((t=>{t.on(yc("0x11a"),((t,e,n)=>{const r=n[yc("0x92")][yc("0x5e")](e.markerName);if(r)for(const t of r)t[yc("0xe8")](yc("0x1f"))||(n[yc("0x25")].removeClass([yc("0xb4"),yc("0x13a"),yc("0xed")],t),n.writer.removeAttribute(yc("0x38"),t),n[yc("0x92")][yc("0x41")](t,e[yc("0xb8")]))}),{priority:yc("0x147")})})),t[yc("0x5c")][yc("0x97")](yc("0x12c"))[yc("0x16c")]((t=>{t.on("removeMarker:suggestion:attribute",((t,e,n)=>{const r=n[yc("0x92")][yc("0x5e")](e[yc("0xb8")]);if(!r)return;const{id:o}=this[yc("0x2a")](e[yc("0xb8")]),i=this._suggestions[yc("0x168")](o),s=this[yc("0x6")](i);if(this[yc("0x172")](s))for(const t of r)t[yc("0xe8")]("addHighlight")||(n.writer.removeClass([yc("0xb4"),yc("0x13a"),yc("0xed")],t),n[yc("0x25")].removeAttribute(yc("0x38"),t),n[yc("0x92")][yc("0x41")](t,e[yc("0xb8")]))}),{priority:yc("0x147")})})),t[yc("0x7e")][yc("0x1d")][yc("0xa7")]((e=>{let n=!1;const r=Array[yc("0x153")](t[yc("0x7e")][yc("0x1d")][yc("0x140")][yc("0xcd")]()),o=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this[yc("0x2a")](x);if(yc("0x139")!==r)continue;const d=this[yc("0x63")][yc("0x168")](u);if(null!=a.newRange){yc("0x12e")==c&&(n=n||Sc(a[yc("0x166")],x,e,t[yc("0x7e")][yc("0x13b")]));const r=yc("0x111")==c&&this._isBlockAttribute(l[yc("0x56")]("|")[0]);if(a[yc("0x166")][yc("0x2")]||yc("0x57")==a.newRange[yc("0x3e")].rootName||yc("0x12f")==c&&!Nc(a[yc("0x166")])||r&&!Nc(a[yc("0x166")])||"deletion"==c&&(Rc(s=a[yc("0x166")])||(i=s).start[yc("0xee")]==i[yc("0xd0")][yc("0x101")]&&i[yc("0x14d")][yc("0x9f")]))e[yc("0x8e")](x),n=!0;else{if(!d||!d[yc("0x4e")])continue;o[yc("0x16c")](d)}}}var i,s;return o.size>0&&(n=!!this[yc("0xa1")](o)||n),n})),t[yc("0x7e")][yc("0x1d")][yc("0xa7")]((e=>{let n=!1;for(const r of t.model.document[yc("0x140")].getChanges())if("insert"==r[yc("0x13d")])for(const r of this._suggestions[yc("0x4")]()){if(r[yc("0xc3")]||!r[yc("0x4e")])continue;const o=yc("0x12f")==r[yc("0x13d")],i=this[yc("0x6")](r),s=i&&this[yc("0x172")](i);if(!o&&!s)continue;const x=r[yc("0x149")]();if(x[yc("0x14d")][yc("0xee")]!=x[yc("0xd0")][yc("0xee")]&&!x[yc("0xd0")].isAtEnd){const o=t[yc("0x7e")][yc("0x81")](x.start.nodeAfter,yc("0xd0")),i=t.model.createRange(x.start,o);e[yc("0x2f")](r[yc("0xa3")](),{range:i}),n=!0}}return n})),t.model[yc("0x1d")].registerPostFixer((t=>this[yc("0xc5")](t))),t[yc("0x7e")][yc("0x1d")][yc("0xa7")]((t=>!t[yc("0x43")][yc("0x12b")]&&this._processAttributeSuggestions(t))),t[yc("0x7e")].on(yc("0x15b"),(()=>{this[yc("0xf")]=!1})),t[yc("0x7e")].document.on(yc("0xaa"),((n,r)=>{if(!r[yc("0x12b")]||r.isUndo)return;if(!this[yc("0xf")])return;const o=t.model.document[yc("0x140")].getChanges();if(0==o[yc("0xfe")])return;const i=[],s=o.filter((t=>"attribute"==t[yc("0x13d")])),x=o[yc("0xbb")]((t=>yc("0x42")==t[yc("0x13d")]&&yc("0x16d")!=t[yc("0x19")])),a=o[yc("0xbb")]((t=>"remove"==t[yc("0x13d")]&&yc("0x16d")!=t.name));for(const e of s)this[yc("0x150")](e[yc("0x170")])&&i[yc("0xef")]({key:e.attributeKey,newValue:e[yc("0x6f")],oldValue:e[yc("0x165")],range:Lc(e[yc("0xa")],t[yc("0x7e")])});for(const e of x){const n=a[yc("0x119")]((t=>t[yc("0x12d")]===e[yc("0x12d")]));if(n){const r=Mc(e[yc("0x4a")][yc("0x10f")],t.model);n[yc("0x19")]!==e[yc("0x19")]&&i[yc("0xef")]({key:"$elementName",newValue:e.name,oldValue:n.name,range:r});for(const[t,o]of n[yc("0x5b")]){if(!this[yc("0x150")](t))continue;const n=e[yc("0x5b")][yc("0x168")](t);o!==n&&i.push({key:t,newValue:n,oldValue:o,range:r})}for(const[t,o]of e.attributes)this._isRegisteredAttribute(t)&&(n[yc("0x5b")].has(t)||i[yc("0xef")]({key:t,newValue:o,oldValue:null,range:r}))}}0!=i[yc("0xfe")]&&t[yc("0x7e")][yc("0xa9")](r,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:r,newValue:o}of i)this.markAttributeChange(t,e,r,o,{groupId:n});this[yc("0xe0")](t,i)}))}),{priority:"lowest"}),t[yc("0x7e")][yc("0xcb")].on(yc("0x15d"),((t,e,n)=>{if(null==n){const{id:t}=this[yc("0x2a")](e[yc("0x19")]),n=this[yc("0x63")][yc("0x168")](t);n&&n[yc("0xd5")](e[yc("0x19")])}})),t.model.document.on("change:data",(()=>{const e=Array[yc("0x153")](t[yc("0x7e")][yc("0x1d")][yc("0x140")][yc("0xcd")]())[yc("0xbb")]((t=>"suggestion"===this._splitMarkerName(t.name)[yc("0x37")]));if(0===e[yc("0xfe")])return;e[yc("0xf9")](((t,e)=>{const n=t[yc("0x87")][yc("0x13")],r=e[yc("0x87")].oldRange;return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n[yc("0x14d")][yc("0xec")](r[yc("0x14d")])?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:o}of e){const{id:e}=this[yc("0x2a")](t);if(null===o[yc("0x13")]){const e=this._handleNewSuggestionMarker(t);r[yc("0x16c")](e)}else{const t=this._suggestions[yc("0x168")](e);null!==o[yc("0x166")]||t[yc("0x4e")]?(n[yc("0x16c")](t.head),r[yc("0x16c")](t)):this._removeSuggestion(t)}}r[yc("0xce")]>0&&this[yc("0xd2")](r);for(const t of n)this[yc("0x85")](yc("0x49"),t)})),t[yc("0x7e")].on("applyOperation",((e,n)=>{const r=n[0];if(!this[yc("0x63")][yc("0xce")])return;if(!r.isDocumentOperation)return;if(r.batch[yc("0xd9")]||!r[yc("0x43")][yc("0x12b")])return;let o,i;switch(r[yc("0x13d")]){case yc("0x42"):o=t[yc("0x7e")].createPositionAt(r.position),i=o.getShiftedBy(r[yc("0x169")]);break;case yc("0x56"):o=t[yc("0x7e")][yc("0x81")](r[yc("0x66")]),i=t.model[yc("0x81")](r[yc("0x132")]);break;case yc("0x9b"):o=t[yc("0x7e")].createPositionAt(r[yc("0x131")]),i=o.getShiftedBy(r.howMany);break;default:return}const s=t[yc("0x7e")][yc("0x115")](o,i);t[yc("0x7e")][yc("0xc7")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(s)){if(t.isMultiRange)continue;if(yc("0x12e")==t.type)continue;const n=this[yc("0x6")](t);if(n&&this[yc("0x172")](n)&&yc("0x56")!=r[yc("0x13d")])continue;const x=t[yc("0x87")]&&t[yc("0x87")][yc("0x120")];(yc("0x12f")!=t[yc("0x13d")]||yc("0x56")==r[yc("0x13d")]&&!x)&&(e.containsRangeInObject||yc("0xe2")==t.type&&e[yc("0x13f")]||t.getFirstRange().containsRange(s)&&this._breakSuggestionMarker(t,o,i))}}))}),{priority:yc("0x107")}),t[yc("0x7e")].on("deleteContent",((e,n)=>{const r=n[0],o=n[1];if(o&&o[yc("0xcf")])return;if(this[yc("0x94")])return;if(!this[yc("0x167")][yc("0xbc")])return;if(r[yc("0x2")])return;const i=t[yc("0x7e")][yc("0x13b")],{start:s,end:x}=r[yc("0x149")](),a=s[yc("0x10f")]&&i[yc("0x2d")](s.nodeAfter)?null:i[yc("0x124")](s,yc("0x45")),c=x[yc("0x101")]&&i[yc("0x2d")](x[yc("0x101")])?null:i[yc("0x124")](x,yc("0xc6")),l=t[yc("0x7e")][yc("0x115")](a?a[yc("0x14d")]:s,c?c[yc("0xd0")]:x);t[yc("0x7e")][yc("0xc7")]((e=>{this[yc("0x155")](l);const n=t[yc("0x7e")][yc("0x13b")][yc("0x124")](l[yc("0x14d")]);r.is(yc("0xbf"))?e[yc("0x164")](n):r[yc("0x46")](n)})),e[yc("0xd7")]()}),{priority:e.priorities[yc("0xea")]+10}),t[yc("0x7e")].on(yc("0x83"),((e,n)=>{const r=n[n[yc("0xfe")]-1];r&&r[yc("0xcf")]||this[yc("0x94")]||this.trackChangesCommand[yc("0xbc")]&&(t[yc("0x7e")][yc("0xc7")]((()=>{let r=t[yc("0x7e")][yc("0x83")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e.return=r[yc("0xb2")]();const o=r.end.nodeBefore,i=t[yc("0x7e")].schema;o&&i[yc("0x65")](o)&&!i.isObject(o)&&(r=t[yc("0x7e")][yc("0x115")](r.start,t[yc("0x7e")].createPositionAt(o,yc("0xd0")))),this[yc("0xc")](r)})),e[yc("0xd7")]())}),{priority:yc("0x147")}),this[yc("0x10d")][yc("0x133")].add("trackChanges",this.trackChangesCommand),this[yc("0x29")](yc("0x5d"));const o=new p(t,this._suggestions);t[yc("0x133")].add(yc("0xfb"),o),this[yc("0x29")](yc("0xfb"));const i=new y(t,this[yc("0x63")]);t.commands.add(yc("0x112"),i),this.enableCommand(yc("0x112")),t.commands.add(yc("0x10a"),new F(t,o,this[yc("0x63")])),this[yc("0x29")](yc("0x10a")),t.commands[yc("0x16c")](yc("0x161"),new F(t,i,this[yc("0x63")])),this[yc("0x29")](yc("0x161")),t[yc("0x133")].add(yc("0x17"),new j(t,o,this[yc("0x63")])),this[yc("0x29")]("acceptSelectedSuggestions"),t[yc("0x133")].add(yc("0x16"),new j(t,i,this[yc("0x63")])),this[yc("0x29")]("discardSelectedSuggestions");const s=t[yc("0xd8")].get("CommentsRepository");this.listenTo(s,yc("0x84"),((t,{threadId:e})=>{const n=this[yc("0x63")][yc("0x168")](e);n&&n[yc("0x15f")]&&1===n[yc("0x15f")][yc("0xfe")]&&this[yc("0xe4")](e,{hasComments:!0})}),{priority:yc("0x11c")}),this[yc("0xb")](s,"removeComment",((t,{threadId:e})=>{const n=this[yc("0x63")][yc("0x168")](e);n&&n.commentThread&&!n[yc("0x15f")][yc("0xfe")]&&this[yc("0xe4")](e,{hasComments:!1})}),{priority:yc("0x11c")})}set[yc("0xeb")](t){if(this[yc("0x53")])throw new e.CKEditorError(yc("0x21"),this);this[yc("0x53")]=t}get adapter(){return this[yc("0x53")]}[yc("0x24")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[yc("0x63")].values())t&&!e[yc("0x4e")]||n[yc("0xef")](e);return e?n[yc("0x48")]((t=>t[yc("0x16f")]())):n}[yc("0x117")](t){const n=this[yc("0x63")][yc("0x168")](t);if(!n)throw new e.CKEditorError(yc("0xb5"),this);return n}[yc("0xf4")](t){return this[yc("0x63")][yc("0x44")](t)}[yc("0x154")](t){const{authorId:e,id:n,attributes:r}=t,[o,i]=t[yc("0x13d")].split(":"),s=this[yc("0x63")].get(n)||this._createSuggestion(o,i,n,e,r);if(this._addThreadToSuggestion(s),this._checkSuggestionCorrectness(s,o,i||null,e),s[yc("0x36")]=t[yc("0x36")],s._isDataLoaded=!0,r&&r[yc("0xe3")]){const t=r[yc("0xe3")],e=this[yc("0x5a")](t[yc("0x2e")]);s[yc("0x146")]=t[yc("0x36")],s[yc("0xe9")]=e,s.isExternal=!0}else s[yc("0x146")]=t[yc("0x36")];switch(t[yc("0x87")]&&(s[yc("0x87")]=t[yc("0x87")]),t[yc("0x5b")]&&(s[yc("0x5b")]=t.attributes),this[yc("0x53")]&&this[yc("0x53")][yc("0x15e")]||(s[yc("0x14")]=!0),this[yc("0x34")][yc("0x168")](s)){case yc("0xdf"):this[yc("0x34")][yc("0x64")](s,yc("0xc4"));break;case yc("0xd1"):s[yc("0x4e")]?(this[yc("0xa1")](new Set([s])),this[yc("0xd2")](new Set([s])),this[yc("0x34")][yc("0x64")](s,yc("0x134")),this.fire(yc("0x128"),s)):this[yc("0x34")][yc("0x64")](s,"removed")}return s}acceptSuggestion(t){this[yc("0xcf")]((()=>{this[yc("0x10d")][yc("0x7e")][yc("0xc7")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[yc("0x9")]()}))}))}[yc("0x112")](t){this[yc("0xcf")]((()=>{this.editor[yc("0x7e")].change((()=>{for(const e of t.getAllAdjacentSuggestions())e[yc("0x39")]()}))}))}[yc("0x29")](t,n){const r=this.editor[yc("0x133")][yc("0x168")](t);if(!r)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this._enabledCommands.has(r))throw new e.CKEditorError(yc("0xe7"),this,{commandName:t});this[yc("0x47")][yc("0x16c")](r),n&&r.on(yc("0x16a"),((t,e)=>{this.trackChangesCommand[yc("0xbc")]&&(this[yc("0x94")]||(e.length>0&&e[e[yc("0xfe")]-1]&&e[e[yc("0xfe")]-1][yc("0xcf")]?e[yc("0x126")]():(t.return=n(((...t)=>r[yc("0x16a")](...t,{forceDefaultExecution:!0})),...e),t[yc("0xd7")]())))}),{priority:yc("0x147")})}[yc("0xcf")](t){let n,r;const o=this[yc("0x94")];this[yc("0x94")]=!0;try{n=t()}catch(t){r=t}return o||(this[yc("0x94")]=!1),r&&e.CKEditorError.rethrowUnexpectedError(r,this),n}[yc("0xc")](t,n=null,r={}){if(t[yc("0x2")])return null;const o=this[yc("0x10d")].plugins[yc("0x168")](yc("0x5")).me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,yc("0xe2")))if(o[yc("0x13f")]){if(!o.isNextTo){if(o[yc("0x4c")]){if(!this._mergeNestedSuggestions||!Fc(e,r))continue;return e}if(Fc(e,r))return e;this[yc("0x14a")](e,t[yc("0x14d")],t[yc("0xd0")]);break}if(n==e[yc("0x95")]&&Fc(e,r)){const n=e[yc("0x149")]();return n[yc("0x14d")][yc("0x18")](t.end)?this[yc("0xfc")](e,this._model[yc("0x115")](t[yc("0x14d")],n[yc("0xd0")])):this._setSuggestionRange(e,this._model[yc("0x115")](n[yc("0x14d")],t.end)),e}}const i=(0,e.uid)(),s=o.id,x=n?yc("0x23")+n:yc("0xe2"),a=this._setSuggestionData({id:i,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0xb0")](x,i,s,t),a}[yc("0x171")](t,n="multi",r={}){const o=this[yc("0x10d")][yc("0xd8")][yc("0x168")](yc("0x5")).me,i=this._suggestionFactory[yc("0x8b")](yc("0xe2"),n,yc("0x59"));for(const e of this[yc("0x24")]())if(e[yc("0xe9")].id==o.id&&yc("0xe2")==e[yc("0x13d")]&&e[yc("0x95")]==n&&Fc(e,r)&&(i(e[yc("0xa2")](),t)||i(t,e[yc("0xa2")]()))){for(const n of t)e[yc("0x76")](n);return e}for(const{suggestion:e,meta:n}of this[yc("0xff")](t,yc("0xe2"))){if(!n[yc("0x13f")])continue;if(!this[yc("0x27")]&&n[yc("0x4c")])continue;if(!Fc(e,r))continue;let o=!0;for(const n of e[yc("0xa2")]())for(const e of t)if(!n[yc("0x60")](e)){o=!1;break}if(o)return e}const s=(0,e.uid)(),x=o.id,a=yc("0x23")+n,c=this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this._addSuggestionMarker(a,s,x,e,Yr.getMultiRangeId());return c}[yc("0xb6")](t,n,r=null,o={}){if(r=r||vc(n),t[yc("0x2")])return null;if(yc("0x61")===this[yc("0x177")]){const e=this[yc("0x9c")][yc("0x8b")](yc("0x12e"),r,"accept");return this.forceDefaultExecution((()=>e([t],n,o))),null}const i=this[yc("0x10d")].plugins[yc("0x168")](yc("0x5")).me,s=[];if("always"!==this[yc("0x177")])for(const{suggestion:e,meta:n}of this[yc("0xff")](t,yc("0xe2")))n[yc("0x13f")]&&!n[yc("0x8f")]&&s[yc("0xef")](...e.getRanges());const x=function(t,e){const n=[];for(const r of e){const e=t[yc("0x98")](r);e&&n[yc("0xef")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[yc("0xfe")];){const r=n[e].getDifference(t);n[yc("0x174")](e,1,...r),e+=r[yc("0xfe")]}}return n}(t,s);x.length&&this[yc("0xda")][yc("0xc7")]((()=>{for(const t of x){const e=this[yc("0x9c")][yc("0x8b")](yc("0x12e"),r,"accept");this.forceDefaultExecution((()=>e([t],n,o)))}}));for(const t of a){let s=null,x=t.start,a=t[yc("0xd0")];for(const{suggestion:e,meta:n}of this[yc("0xff")](t,yc("0x12e"))){if(!n[yc("0x13f")])continue;if(e[yc("0x95")]!=r)continue;if(!Fc(e,o))continue;const i=e[yc("0x149")]();if(i.containsRange(t,!0))return null;x=x[yc("0xec")](i[yc("0x14d")])?x:i[yc("0x14d")],a=a[yc("0x82")](i[yc("0xd0")])?a:i[yc("0xd0")],s?i.start[yc("0xec")](s.getFirstRange()[yc("0x14d")])?(s[yc("0x1")](),s=e):e[yc("0x1")]():s=e}const c=this[yc("0xda")][yc("0x115")](x,a);if(s)this._setSuggestionRange(s,c);else{const t=(0,e.uid)(),s=i.id;this[yc("0x1c")]({id:t,type:yc("0x103")+r,data:n,createdAt:new Date,authorId:s,attributes:o}),this[yc("0xb0")](yc("0x103")+r,t,s,c)}}return null}markBlockFormat(t,n,r=[],o=null,i={}){n.formatGroupId||(n[yc("0xbe")]=n[yc("0x14f")]),n[yc("0x120")]=t.is(yc("0xa")),o=o||vc(n);const s=r[yc("0x48")]((t=>Mc(t,this._model))),x=t.is(yc("0xa"))?t:Mc(t,this[yc("0xda")]);if(yc("0x61")===this._trackFormatChanges){const t=this._suggestionFactory[yc("0x8b")](yc("0x12f"),o,yc("0x9"));return this[yc("0xcf")]((()=>t([x],n,i))),null}s[yc("0xef")](x);let a=!0;for(const t of s)if(!this[yc("0xca")](t)){a=!1;break}if(a&&"always"!==this[yc("0x177")]){const t=this[yc("0x9c")][yc("0x8b")]("formatBlock",o,yc("0x9"));return this[yc("0xcf")]((()=>t([x],n,i))),null}let c=null,l=x[yc("0x14d")],u=x[yc("0xd0")];for(const{suggestion:t,meta:e}of this[yc("0xff")](x,yc("0x12f"))){if(!e.isOwn)continue;if(e[yc("0x162")]||e[yc("0x4c")]||e.isInsideObject)continue;if(t.data[yc("0xbe")]!=n.formatGroupId)continue;if(!Fc(t,i))continue;const r=t[yc("0x149")]();if(t[yc("0x95")]==o){if(r[yc("0x60")](x,!0))return null;l=l.isBefore(r[yc("0x14d")])?l:r[yc("0x14d")],u=u.isAfter(r[yc("0xd0")])?u:r[yc("0xd0")],c?r[yc("0x14d")][yc("0xec")](c[yc("0x149")]().start)?(c[yc("0x1")](),c=t):t[yc("0x1")]():c=t}else{const e=x[yc("0x98")](r);this[yc("0x93")](t,e)}}const d=this[yc("0x10d")][yc("0xd8")][yc("0x168")]("Users").me,g=(0,e.uid)(),f=d.id;if(c)return this[yc("0xfc")](c,this[yc("0xda")][yc("0x115")](l,u)),c;{const t=this[yc("0x1c")]({id:g,type:"formatBlock:"+o,data:n,createdAt:new Date,authorId:f,attributes:i});return this[yc("0xb0")](yc("0xf0")+o,g,f,this._model[yc("0x115")](l,u)),t}}[yc("0x86")](t,n,r=[],o=null,i={}){n[yc("0xbe")]||(n[yc("0xbe")]=n[yc("0x14f")]);const s=t[0];n.multipleBlocks=s.is("range"),o=o||vc(n);const x=r[yc("0x48")]((t=>Mc(t,this[yc("0xda")]))),a=s.is("range")?t:t[yc("0x48")]((t=>Mc(t,this._model)));if("never"===this[yc("0x177")]){const t=this[yc("0x9c")][yc("0x8b")](yc("0x12f"),o,yc("0x9"));return this[yc("0xcf")]((()=>t(a,n,i))),null}x[yc("0xef")](...a);let c=!0;for(const t of x)if(!this[yc("0xca")](t)){c=!1;break}if(c&&"always"!==this[yc("0x177")]){const t=this._suggestionFactory[yc("0x8b")]("formatBlock",o,yc("0x9"));return this[yc("0xcf")]((()=>t(a,n,i))),null}const l=this[yc("0x10d")][yc("0xd8")][yc("0x168")](yc("0x5")).me;for(const t of this[yc("0x24")]()){if(t.author.id!=l.id)continue;if("formatBlock"!=t[yc("0x13d")]||t[yc("0x87")][yc("0xbe")]!=n.formatGroupId)continue;if(!Fc(t,i))continue;const e=t.subType==o;for(let n=0;n<a[yc("0xfe")];n++){const r=a[n];for(const o of t[yc("0x4d")]()){const i=o[yc("0x15a")]();if(r.isEqual(i)){e?(a[yc("0x174")](n,1),n--):t[yc("0x8e")](o[yc("0x19")]);break}}}}if(0==a[yc("0xfe")])return null;const u=this[yc("0x9c")][yc("0x8b")](yc("0x12f"),o,yc("0x59"));for(const t of this[yc("0x24")]())if(t.author.id==l.id&&yc("0x12f")==t[yc("0x13d")]&&t[yc("0x87")][yc("0xbe")]==n[yc("0xbe")]&&t[yc("0x95")]==o&&Fc(t,i)&&(u(t[yc("0xa2")](),a)||u(a,t[yc("0xa2")]()))){for(const e of a)t[yc("0x76")](e);return t}const d=(0,e.uid)(),g=l.id,f=yc("0xf0")+o,h=this[yc("0x1c")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[yc("0xb0")](f,d,g,t,Yr[yc("0x26")]());return h}markDeletion(t,n=null,r={}){if(t[yc("0x2")])return null;const o=this.editor[yc("0xd8")][yc("0x168")](yc("0x5")).me,i=new s.LiveRange(t[yc("0x14d")],t[yc("0xd0")]);for(const{suggestion:t,meta:e}of this[yc("0xff")](i,yc("0xe2")))if(e[yc("0x13f")]&&!e[yc("0x162")])if(t[yc("0xc3")]){const e=t[yc("0xa2")]()[yc("0xbb")]((t=>"$graveyard"!=t[yc("0x3e")][yc("0x156")]));if(e.every((t=>i[yc("0x60")](t,!0)))&&t[yc("0x39")](),e.some((t=>t[yc("0x60")](i,!0)))){const t=this[yc("0x9c")][yc("0x8b")](yc("0x67"),n,yc("0x9"));return this[yc("0xcf")]((()=>t([i],null,r))),null}}else{const e=i.getIntersection(t[yc("0x149")]());null!==e&&t[yc("0x12a")]([e],null,r)}if(i[yc("0x143")](),i[yc("0x2")]||yc("0x57")==i[yc("0x3e")].rootName)return null;let x=null,a=i[yc("0x14d")],c=i[yc("0xd0")];const l=this._findSuggestions(i,yc("0x67"));for(const{suggestion:t,meta:e}of l){const n=this._model.createRange(a,c);if(e[yc("0x13f")]&&(this[yc("0x27")]||!e.containsRangeInObject&&!e[yc("0x8f")]))if(t.isMultiRange){if(!Fc(t,r))continue;let e=!0;for(const r of t.getRanges()){if(r[yc("0x60")](n,!0))return t;n[yc("0x60")](r)||(e=!1)}e&&t[yc("0x39")]()}else{const e=t[yc("0x149")]();if(e[yc("0x60")](n,!0))return t;if(!Fc(t,r)){n.containsRange(e)?t[yc("0x1")]():e[yc("0x31")](a)?a=e[yc("0xd0")]:e[yc("0x31")](c)&&(c=e.start);continue}a=a[yc("0xec")](e.start)?a:e[yc("0x14d")],c=c.isAfter(e.end)?c:e[yc("0xd0")],r=Object[yc("0xde")]({},t[yc("0x5b")]),x?e[yc("0x14d")].isBefore(x[yc("0x149")]().start)?(x[yc("0x1")](),x=t):t[yc("0x1")]():x=t}}if(x)return this[yc("0xfc")](x,this[yc("0xda")][yc("0x115")](a,c)),x;{const t=(0,e.uid)(),i=this[yc("0xda")][yc("0x115")](a,c),s=o.id,x=n?"deletion:"+n:yc("0x67"),l=this[yc("0x1c")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0xb0")](x,t,s,i),l}}[yc("0x9d")](t,n=yc("0x7b"),r={}){const o=this[yc("0x10d")].plugins[yc("0x168")]("Users").me,i=t[yc("0x48")]((t=>new s.LiveRange(t[yc("0x14d")],t[yc("0xd0")]))),x=new Set;for(const{suggestion:t,meta:e}of this[yc("0xff")](i,yc("0xe2")))e[yc("0x13f")]&&!e[yc("0x162")]&&x[yc("0x16c")](t);for(const e of x)if(e[yc("0xc3")]){const o=e[yc("0xa2")]();if((!e.attributes||!e[yc("0x5b")][yc("0x1e")])&&o.every((t=>i[yc("0xa4")]((e=>e[yc("0x60")](t,!0)))))&&e[yc("0x39")](),i[yc("0xe1")]((t=>o.some((e=>e[yc("0x60")](t,!0)))))){const e=this[yc("0x9c")][yc("0x8b")](yc("0x67"),n,yc("0x9"));return this[yc("0xcf")]((()=>e(t,null,r))),null}}else{const t=e[yc("0x149")]();if(i[yc("0xa4")]((e=>e.containsRange(t,!0)))&&e[yc("0x39")](),i[yc("0xe1")]((e=>t[yc("0x60")](e,!0)))){const t=this._suggestionFactory[yc("0x8b")]("deletion",n,yc("0x9"));return this[yc("0xcf")]((()=>t(i,null,r))),null}}const a=this[yc("0x9c")][yc("0x8b")](yc("0x67"),n,"join");let c=null;for(const t of this[yc("0x24")]())if(t[yc("0xe9")].id==o.id&&t[yc("0x4e")]&&yc("0x67")==t[yc("0x13d")]&&t[yc("0x95")]==n&&Fc(t,r)&&(a(t[yc("0xa2")](),i)||a(i,t[yc("0xa2")]())))if(c){if(t[yc("0x15f")]&&t[yc("0x15f")][yc("0xfe")])continue;for(const e of t[yc("0xa2")]())c.isIntersectingWithRange(e)||c.addRange(e);t.removeMarkers()}else{c=t;for(const e of i)t[yc("0xb3")](e)||t[yc("0x76")](e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this[yc("0xff")](i,yc("0x67")))e.isOwn&&(this[yc("0x27")]||!e[yc("0x4c")]&&!e[yc("0x8f")])&&Fc(t,r)&&x[yc("0x16c")](t);for(const t of x){const e=t[yc("0xa2")]();if((!r||!r[yc("0x1e")])&&i.every((t=>e[yc("0xa4")]((e=>e[yc("0x60")](t,!0))))))return t;(!t[yc("0x5b")]||!t[yc("0x5b")][yc("0x1e")])&&e[yc("0xe1")]((t=>i[yc("0xa4")]((e=>e[yc("0x60")](t,!0)))))&&t[yc("0x39")]()}const l=(0,e.uid)(),u=o.id,d="deletion:"+n,g=this[yc("0x1c")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of i)t.detach(),t[yc("0x2")]||yc("0x57")==t[yc("0x3e")][yc("0x156")]||this[yc("0xb0")](d,l,u,t,Yr[yc("0x26")]());return g}[yc("0x75")](t,n,r,o,i){if(t.isCollapsed)return[];if(yc("0x61")===this[yc("0x177")])return[];const s=this[yc("0x10d")][yc("0xd8")][yc("0x168")]("Users").me.id,x=Array.from(this[yc("0x63")][yc("0x4")]())[yc("0xbb")]((e=>"attribute"==e.type&&e[yc("0x87")][yc("0x3")]==n&&e[yc("0xb3")](t)));if("default"===this[yc("0x177")]){const e=this[yc("0xff")](t,yc("0xe2")).filter((({meta:t})=>t.isOwn&&!t[yc("0x8f")]&&!t[yc("0x162")]))[yc("0x48")]((({suggestion:t})=>t));x[yc("0x70")](...e)}const a=new Map([[t,r]]);for(const t of x){const e="attribute"==t[yc("0x13d")]?t[yc("0x87")][yc("0x136")]:void 0,i=t[yc("0x149")](),s=Array[yc("0x153")](a.keys())[yc("0x119")]((t=>t[yc("0x137")](i)));if(!s)continue;const x=s.getDifference(i);this[yc("0x172")](n)&&yc("0xe2")==t[yc("0x13d")]&&0!=x[yc("0xfe")]||(a[yc("0x99")](s),x[yc("0x13c")]((t=>{a[yc("0x64")](t,r)})),yc("0xe2")!=t[yc("0x13d")]&&e!=o&&a.set(s[yc("0x98")](i),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:o};n.length>37&&console[yc("0x16b")]("Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.",{key:n});const l=(yc("0x175")+(n+"|")+vc({newValue:o})).substring(0,60),u=this[yc("0x1c")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c[yc("0xef")](u),this._addSuggestionMarker(l,x,s,t)}return c}_registerBlockAttribute(t){this[yc("0x68")][yc("0x16c")](t)}[yc("0x10e")](t){this[yc("0xf8")][yc("0x16c")](t)}[yc("0x9e")](t,e=[],n=[]){this.enableCommand(t,((t,...e)=>{this[yc("0xcc")]((()=>{t(...e)}))}));for(const t of e)this[yc("0x10e")](t);for(const t of n)this._registerBlockAttribute(t)}[yc("0x6")](t){return yc("0x111")==t[yc("0x13d")]?t[yc("0x95")][yc("0x56")]("|")[0]:null}[yc("0xfc")](t,e){const n=t[yc("0xa3")]();this[yc("0xda")][yc("0xc7")]((t=>{t[yc("0x2f")](n,{range:e})}))}[yc("0x16e")](t){const e=t.id,n=this[yc("0x10d")][yc("0x79")].get(yc("0x8"));this[yc("0x77")][yc("0x145")](e)||this._commentsRepository[yc("0x123")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this._commentsRepository[yc("0x12")](e);r[yc("0x22")](yc("0x6a")),r[yc("0x6a")]=!1,t[yc("0x15f")]=r}_checkSuggestionCorrectness(t,n,r,o){if(t[yc("0x13d")]!=n||t[yc("0x95")]!=r||t[yc("0x7c")].id!=o)throw this[yc("0x10d")][yc("0x11b")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(yc("0x142"),this)}[yc("0x93")](t,n){const r=t.getFirstRange();if(n[yc("0x18")](r))t.removeMarkers();else if(r[yc("0x60")](n)){const o=this._model[yc("0x81")](n[yc("0x14d")].nodeBefore,yc("0xd0"));this[yc("0xfc")](t,this[yc("0xda")][yc("0x115")](r.start,o));const i=(0,e.uid)(),s=t.creator.id,x=t[yc("0x13d")]+":"+t[yc("0x95")];this[yc("0x1c")]({id:i,type:x,createdAt:new Date,authorId:s,data:t[yc("0x87")],attributes:t.attributes});const a=this[yc("0xda")][yc("0x81")](n[yc("0xd0")].parent,yc("0x163")),c=this[yc("0xda")][yc("0x115")](a,r[yc("0xd0")]);this[yc("0xb0")](x,i,s,c)}else if(r[yc("0x31")](n[yc("0x14d")])){const e=this[yc("0xda")].createPositionAt(n.start.nodeBefore,yc("0xd0"));this[yc("0xfc")](t,this[yc("0xda")][yc("0x115")](r[yc("0x14d")],e))}else{const e=this[yc("0xda")][yc("0x81")](n[yc("0xd0")][yc("0xee")],"after");this._setSuggestionRange(t,this[yc("0xda")][yc("0x115")](e,r[yc("0xd0")]))}}[yc("0xca")](t){for(const{suggestion:e,meta:n}of this[yc("0xff")](t,yc("0xe2"))){if(!n[yc("0x13f")])continue;const r=e.getRanges();for(const e of r)if(!t.getDifference(e)[yc("0xfe")])return!0}return!1}[yc("0x72")](t){const n=this[yc("0x10d")][yc("0xd8")][yc("0x168")](yc("0x5"))[yc("0x106")](t);if(!n)throw new e.CKEditorError(yc("0x58"),this);return n}[yc("0x5a")](t){const e=this[yc("0x10d")][yc("0xd8")][yc("0x168")](yc("0x5")),n=(0,i.hashObject)(yc("0xc2")+t);return e[yc("0x106")](n)||e.addUser({id:n,name:t})}_createSuggestion(t,e,n,r,o){const i=this[yc("0x72")](r),s=this[yc("0x9c")][yc("0x96")](t,e,n,i,o,(t=>{this[yc("0xe4")](n,{attributes:t});const e=this[yc("0x117")](n);this[yc("0xa1")](new Set([e])),this[yc("0xd2")](new Set([e]))}));return this[yc("0xb")](s,yc("0x9"),(()=>{this[yc("0xe4")](n,{state:yc("0xb9")})}),{priority:yc("0x147")}),this[yc("0xb")](s,yc("0x39"),(()=>{this._updateSuggestionData(n,{state:yc("0x40")})}),{priority:yc("0x147")}),this[yc("0x63")][yc("0x64")](n,s),this[yc("0x34")][yc("0x64")](s,yc("0xdf")),s}[yc("0x2a")](t){const e=t[yc("0x56")](":");return{group:e[0],type:e[1],subType:e[yc("0xfe")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[yc("0xfe")]<5?e[3]:e[4],markerCount:6==e[yc("0xfe")]?e[5]:null}}[yc("0x14a")](t,n,r){const o=t[yc("0x149")](),i=o[yc("0x14d")],s=o[yc("0xd0")];this[yc("0xfc")](t,this[yc("0xda")][yc("0x115")](i,n));const x=(0,e.uid)(),a=t[yc("0x7c")].id,c=t[yc("0x13d")]+(t.subType?":"+t[yc("0x95")]:"");this[yc("0x1c")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[yc("0x87")]});const l=this._getAttributeKey(t);(yc("0x12f")==t.type||l&&this[yc("0x172")](l))&&(r=this[yc("0xda")][yc("0xa0")](r[yc("0xee")])),this[yc("0xb0")](c,x,a,this[yc("0xda")][yc("0x115")](r,s))}[yc("0xff")](t,e=null){const n=[],r=this[yc("0x10d")][yc("0xd8")].get(yc("0x5")).me;Array[yc("0x11d")](t)||(t=[t]);for(const o of this.getSuggestions()){if(!o[yc("0x4e")])continue;if(e&&o[yc("0x13d")]!=e)continue;let i=!1;for(const e of o[yc("0xa2")]()){for(const s of t){const t=s[yc("0x14d")][yc("0x18")](e[yc("0xd0")])||s.end[yc("0x18")](e[yc("0x14d")]);if(t||s[yc("0x98")](e)){const x=s.containsRange(e)&&Ic(this[yc("0xda")].schema,e[yc("0x14d")],s),a=e.containsRange(s)&&Ic(this[yc("0xda")].schema,s[yc("0x14d")],e);n[yc("0xef")]({suggestion:o,meta:{isOwn:r==o[yc("0xe9")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}_addSuggestionMarker(t,e,n,r,o){this[yc("0xda")][yc("0xc7")]((i=>{let s=yc("0x20")+t+":"+e+":"+n;o&&(s=s+":"+o),i[yc("0x0")](s,{range:r,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[yc("0xf5")],n=t[yc("0x33")];t[yc("0xf5")]=null,t[yc("0x33")]=null,null!=e&&e.next==t&&(e[yc("0x33")]=n),null!=n&&n[yc("0xf5")]==t&&(n.previous=e),"ready"==this[yc("0x34")][yc("0x168")](t)&&(this[yc("0x34")][yc("0x64")](t,yc("0x8a")),this[yc("0x85")](yc("0x8c"),t,e,n))}[yc("0x1c")](t){const n=t.id,r=this.addSuggestionData(t);if(this[yc("0x53")]&&this[yc("0x53")][yc("0x15e")]){const o=this[yc("0x10d")][yc("0xd8")][yc("0x168")](yc("0x1b")),i=r[yc("0x14b")],s=r[yc("0x95")]?r.type+":"+r[yc("0x95")]:r[yc("0x13d")],x=this[yc("0x10d")][yc("0xe")],a=o[yc("0x16c")](Jr(x,yc("0x102"))),c={id:n,type:s,hasComments:i,data:t[yc("0x87")]||null,originalSuggestionId:t[yc("0x127")]||null,attributes:r[yc("0x5b")]};this._adapter.addSuggestion(c).then((t=>{r[yc("0x14")]=!0,o[yc("0x159")](a),t&&t[yc("0x36")]&&(this[yc("0x63")][yc("0x168")](n)[yc("0x36")]=t.createdAt)}))[yc("0x91")]((t=>{throw(0,e.logWarning)(yc("0xba")),this.editor[yc("0x7e")][yc("0xa9")]({isUndoable:!1},(()=>{r[yc("0x39")]()})),r[yc("0x30")](),this[yc("0x63")][yc("0x99")](r.id),this[yc("0x34")].delete(r),t}))}return r}[yc("0x172")](t){return this._blockAttributeKeys[yc("0x44")](t)}[yc("0xe4")](t,e){const n=this[yc("0x10d")][yc("0xd8")][yc("0x168")]("PendingActions"),r=this[yc("0x117")](t);if(this[yc("0x53")]&&this._adapter.updateSuggestion)if(r[yc("0x14")]){const r=n[yc("0x16c")](Jr(this[yc("0x10d")][yc("0xe")],yc("0x102")));this._adapter.updateSuggestion(t,e)[yc("0x176")]((()=>{n[yc("0x159")](r)}))}else r.on(yc("0x74"),(()=>{this[yc("0xe4")](t,e)}))}[yc("0x5f")](t){if(!this[yc("0x53")]||!this._adapter[yc("0x117")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[yc("0x53")][yc("0x117")](t)}[yc("0x6d")](t){const{id:e,type:n,subType:r,authorId:o}=this[yc("0x2a")](t),i=this[yc("0x63")].get(e)||this[yc("0x108")](n,r,e,o,{});switch(this[yc("0x3d")](i,n,r,o),this[yc("0x34")].get(i)){case yc("0xdf"):this[yc("0x5f")](e).then((t=>{let n=Promise.resolve();t[yc("0x14b")]&&(n=this[yc("0x77")][yc("0x14e")]({channelId:this[yc("0x10d")][yc("0x79")].get("collaboration.channelId"),threadId:e})),n[yc("0x176")]((()=>{this[yc("0x154")](t)[yc("0x14")]=!0}))})),this._suggestionState[yc("0x64")](i,yc("0xd1"));break;case yc("0x8a"):this[yc("0xe4")](e,{state:yc("0xb7")});case"dataReady":this[yc("0x34")][yc("0x64")](i,yc("0x134")),this[yc("0x85")](yc("0x128"),i);break;case yc("0x134"):this[yc("0x85")]("suggestionChanged",i)}return i.addMarkerName(t),i}[yc("0xd2")](t){const e=Array[yc("0x153")](t),n=e[yc("0xbb")]((t=>"attribute"==t[yc("0x13d")]));this._refreshAttributeSuggestionsChain(n);const r=e[yc("0xbb")]((t=>!t[yc("0xc3")]&&yc("0x111")!=t[yc("0x13d")])),o=this[yc("0x24")]({skipNotAttached:!0}).filter((t=>!t[yc("0xc3")]&&yc("0x111")!=t[yc("0x13d")])),i=o[yc("0xbb")]((e=>!t[yc("0x44")](e))),s=new Map(o[yc("0x48")]((t=>[t,this[yc("0x9c")][yc("0x8b")](t[yc("0x13d")],t[yc("0x95")],yc("0x2c"))]))),x=new Map(o.map((t=>[t,t[yc("0x149")]()]))),a=new Set,c=new Set;for(let t=0;t<r[yc("0xfe")];t++)u(r[t],r,t+1);for(let t=0;t<r[yc("0xfe")];t++)u(r[t],i,0);const l=new Set;for(let t=0;t<r[yc("0xfe")];t++){const e=r[t];!c[yc("0x44")](e)&&e[yc("0xf5")]&&(l[yc("0x16c")](e[yc("0xf5")]),e[yc("0xf5")][yc("0x33")]===e&&(e.previous[yc("0x33")]=null),e.previous=null),!a[yc("0x44")](e)&&e[yc("0x33")]&&(l[yc("0x16c")](e[yc("0x33")]),e[yc("0x33")][yc("0xf5")]===e&&(e.next.previous=null),e[yc("0x33")]=null)}function u(t,e,n){for(let r=n;r<e[yc("0xfe")];r++){const n=d(t,e[r]);n&&(n[0][yc("0x33")]=n[1],n[1][yc("0xf5")]=n[0],a[yc("0x16c")](n[0]),c[yc("0x16c")](n[1]))}}function d(t,e){if(t[yc("0xe9")].id!==e[yc("0xe9")].id)return null;const n=s[yc("0x168")](t)(t,e,x[yc("0x168")](t),x[yc("0x168")](e));return n&&s.get(e)(t,e,x[yc("0x168")](t),x[yc("0x168")](e))?n[1][yc("0x15f")]&&n[1][yc("0x15f")][yc("0xfe")]?null:n:null}l[yc("0xce")]&&this[yc("0xd2")](l)}[yc("0xe5")](t){if(0==t[yc("0xfe")])return;const e=this[yc("0x24")]({skipNotAttached:!0})[yc("0xbb")]((t=>yc("0x111")==t.type&&t[yc("0x110")])),n=[],r=new Map;for(const t of e){const e=(0,i.hashObject)(t[yc("0x5b")]);r[yc("0x44")](e)||(r[yc("0x64")](e,n.length),n.push([]));const o=r.get(e);n[o][yc("0xef")](t)}!function(){n[yc("0xf9")](((t,e)=>{const n=t[0][yc("0x36")],r=e[0].createdAt;return n==r?t[0][yc("0x5b")][yc("0xc0")]<e[0][yc("0x5b")][yc("0xc0")]?-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[yc("0xfe")];t++){if(0==n[t][yc("0xfe")])continue;const e=[];for(let r=t+1;r<n[yc("0xfe")];r++)0!=n[r].length&&o(n[t],n[r])&&e[yc("0xef")](r);for(const r of e)n[t]=n[t][yc("0x129")](n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t.length;e++)t[e][yc("0x33")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[yc("0xfe")];e++)t[e][yc("0xf5")]=t[e-1]||null;function o(t,e){if(t[0][yc("0x5b")][yc("0xc0")]!==e[0].attributes.groupId&&t[0][yc("0xe9")]!==e[0].author)return!1;if(n=t[0],r=e[0],(n[yc("0x14b")]||r[yc("0x14b")])&&(n[yc("0x14b")]&&r.hasComments||!(n[yc("0x14b")]&&r[yc("0x36")]<n[yc("0x15f")][yc("0x13e")][yc("0x168")](0)[yc("0x36")]||r[yc("0x14b")]&&n.createdAt<r[yc("0x15f")][yc("0x13e")][yc("0x168")](0)[yc("0x36")])))return!1;var n,r;const o=bc(t[0][yc("0x5b")],"groupId"),i=bc(e[0].attributes,"groupId");return!!jr(o,i)&&(!!t[yc("0xe1")]((t=>e[yc("0xa4")]((e=>t.getFirstRange()[yc("0x18")](e.getFirstRange())))))&&e[yc("0xe1")]((e=>t[yc("0xa4")]((t=>e.getFirstRange()[yc("0x18")](t[yc("0x149")]()))))))}}[yc("0xa1")](t){const e=Array[yc("0x153")](t),n=this[yc("0x24")]({skipNotAttached:!0}),r=n[yc("0xbb")]((e=>!t[yc("0x44")](e))),o=new Map(e[yc("0x48")]((t=>[t,this._suggestionFactory[yc("0x8b")](t[yc("0x13d")],t[yc("0x95")],"join")]))),i=new Map(n[yc("0x48")]((t=>[t,t[yc("0xa2")]()])));for(let t=0;t<e.length;t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[yc("0xfe")];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("0xfe")];s++){const r=n[s];if(r[yc("0x13d")]!==e[yc("0x13d")]||r[yc("0xe9")].id!==e[yc("0xe9")].id||r[yc("0x95")]!==e[yc("0x95")])continue;if(!Oc(e,r,[yc("0xc0")]))continue;if(yc("0x111")==e[yc("0x13d")]&&e[yc("0x87")][yc("0x136")]!=r.data[yc("0x136")])continue;if(yc("0x111")==e.type&&t._isBlockAttribute(e[yc("0x87")][yc("0x3")]))continue;if("formatBlock"==e[yc("0x13d")]){const n=t.editor.model,r=e[yc("0x152")]();if(r&&(n[yc("0x13b")][yc("0x105")](r)||n[yc("0x13b")][yc("0x2d")](r)))continue}const x=o[yc("0x168")](e),a=i.get(e),c=i[yc("0x168")](r),l=e.commentThread&&e.commentThread[yc("0xfe")],u=r[yc("0x15f")]&&r[yc("0x15f")][yc("0xfe")];if(!l&&x(c,a))return t[yc("0x104")](r,e),i[yc("0x99")](e),!0;if(!u&&x(a,c))return t[yc("0x104")](e,r),i.delete(r),!0}return!1}}[yc("0x104")](t,e){if(t.isMultiRange)for(const n of e[yc("0xa2")]())t[yc("0x76")](n);else{const n=e[yc("0x149")]().end;this[yc("0xfc")](t,this[yc("0xda")].createRange(t[yc("0x149")]()[yc("0x14d")],n))}e.removeMarkers()}[yc("0x130")](t,e){const n=t[yc("0x135")]("format")||t[yc("0x135")](yc("0x111"))?"FORMATTING":t[yc("0xd3")]();return Jr(this[yc("0x10d")][yc("0xe")],e+"_"+n+yc("0xdc"))}[yc("0x88")](){const t=this[yc("0x10d")];(0,i.surroundingMarkersDetector)(this[yc("0xda")],(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this[yc("0x2a")](t.name);if("suggestion"===e){r[yc("0xef")](this._getMarkerAnnouncementText(n,yc("0x69")));break}}for(const t of n){const{group:e,type:n}=this._splitMarkerName(t[yc("0x19")]);if(yc("0x139")===e){r[yc("0xef")](this[yc("0x130")](n,yc("0xdd")));break}}r.length&&t.ui[yc("0xbd")][yc("0xae")](yc("0x5d"),r.join(" "))}))}[yc("0xc5")](t){if(this[yc("0xf")])return!1;const e=this[yc("0x10d")],n=e[yc("0x7e")][yc("0x1d")][yc("0x140")].getChanges();if(0==n[yc("0xfe")])return!1;const r=[],o=n[yc("0xbb")]((t=>yc("0x111")==t[yc("0x13d")])),i=n[yc("0xbb")]((t=>yc("0x42")==t[yc("0x13d")]&&"$text"!=t[yc("0x19")])),s=n.filter((t=>yc("0x159")==t.type&&"$text"!=t[yc("0x19")]));for(const t of o)r.push({key:t.attributeKey,newValue:t[yc("0x6f")],oldValue:t.attributeOldValue,range:Lc(t[yc("0xa")],e.model)});for(const t of i){const n=s.find((e=>e[yc("0x4a")][yc("0x18")](t.position)));n&&r[yc("0xef")]({key:yc("0x3f"),newValue:t[yc("0x19")],oldValue:n.name,range:e.model[yc("0x160")](t.position.nodeAfter)})}return 0!=r[yc("0xfe")]&&this[yc("0xe0")](t,r)}[yc("0x89")](t){let e=!1;const n=this[yc("0x10d")].model.document[yc("0x140")].getChangedMarkers()[yc("0xbb")]((t=>t[yc("0x87")][yc("0x166")]&&t.name.startsWith("suggestion:attribute:")));for(const r of n){const{subType:n,id:o}=this[yc("0x2a")](r[yc("0x19")]),i=n[yc("0x56")]("|")[0];for(const n of this[yc("0x24")]({skipNotAttached:!0}))n.id!=o&&yc("0x111")==n[yc("0x13d")]&&n.data&&n[yc("0x87")].key==i&&n[yc("0x149")]()[yc("0x137")](r[yc("0x87")][yc("0x166")])&&(this[yc("0xd6")](n,r.data.newRange,t),e=!0)}return e}[yc("0xcc")](t){this[yc("0x10d")],this[yc("0xf")]=!0,t()}[yc("0x150")](t){const e=this[yc("0x172")](t),n=this[yc("0xf8")][yc("0x44")](t);return e||n}[yc("0xe0")](t,e){if(0==e[yc("0xfe")])return!1;let n=!1;for(const r of e){const e=this._findSuggestions(r[yc("0xa")],yc("0x111"))[yc("0xbb")]((t=>!t[yc("0x2b")][yc("0x162")]))[yc("0x48")]((t=>t[yc("0x139")])),o=(0,i.hashObject)({newValue:r[yc("0xfa")]});e.filter((t=>{const[e,n]=t.subType.split("|");return e==r[yc("0x3")]&&n!=o})).forEach((e=>{this[yc("0xd6")](e,r[yc("0xa")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const r=t[yc("0x149")]()[yc("0x3b")](e);0!==r.length?1!==r[yc("0xfe")]?this[yc("0x14a")](t,e[yc("0x14d")],e.end):this[yc("0xfc")](t,r[0]):n[yc("0x8e")](t.getFirstMarker())}}class kc{constructor(t){this._editor=t,this[yc("0xda")]=t.model,this[yc("0x8d")]=new Map,this._defaultCallbacks=new Map,this[yc("0xdb")]()}[yc("0x96")](t,e,n,r,o,i){return new Yr(this[yc("0xda")],{type:t,subType:e,id:n,author:r,creator:r,attributes:o,onAttributesChange:i,onAccept:(...n)=>this[yc("0x8b")](t,e,yc("0x9"))(...n),onDiscard:(...n)=>this[yc("0x8b")](t,e,yc("0x39"))(...n)})}[yc("0xab")](t,e,n,r){const o=t+":"+e+":"+n;this[yc("0x8d")][yc("0x64")](o,r)}getSuggestionCallback(t,e,n){const r=t+":"+e+":"+n;return this[yc("0x8d")][yc("0x168")](r)||this[yc("0xf1")][yc("0x168")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[yc("0xf9")](((t,e)=>t[yc("0x14d")].isBefore(e[yc("0x14d")])?1:-1)),this[yc("0xda")][yc("0xc7")]((e=>{for(const n of t){let t;t=n[yc("0xd0")][yc("0x9f")]&&n[yc("0xd0")][yc("0xee")]==n.start[yc("0x10f")]?e.createSelection(n[yc("0x14d")].nodeAfter,"on"):e[yc("0x28")](n),this[yc("0xda")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[yc("0xda")].change((n=>{const{commandName:r,commandParams:o=[]}=e,i=t[yc("0x48")]((t=>(Rc(t)&&(t=this._model[yc("0x115")](t.end)),t)))[yc("0xbb")]((t=>yc("0x57")!==t[yc("0x3e")][yc("0x156")]));if(i[yc("0xfe")]<1)return;const x=Array[yc("0x153")](this[yc("0xda")].document[yc("0x10b")].getRanges())[yc("0x48")]((t=>s.LiveRange.fromRange(t)));n[yc("0x164")](i);for(const t of this[yc("0xf7")][yc("0x133")][yc("0x133")]())t[yc("0x6b")]();o[yc("0xef")]({forceDefaultExecution:!0}),this._editor[yc("0x16a")](r,...o);const a=x[yc("0xbb")]((t=>yc("0x57")!=t[yc("0x3e")][yc("0x156")]));a.length>0&&n[yc("0x164")](a);for(const t of x)t[yc("0x143")]()}))},r=(t,e)=>1==t.length&&1==e[yc("0xfe")]&&t[0][yc("0xd0")][yc("0x18")](e[0][yc("0x14d")]),o=(t,e,n,r)=>wc(t,e,n,r,this[yc("0xda")])?[t,e]:wc(e,t,r,n,this[yc("0xda")])?[e,t]:null;this[yc("0xf1")][yc("0x64")](yc("0x9a"),t),this[yc("0xf1")][yc("0x64")]("insertion:discard",e),this._defaultCallbacks[yc("0x64")](yc("0x158"),r),this._defaultCallbacks[yc("0x64")](yc("0xa5"),o),this[yc("0xf1")].set("deletion:accept",e),this._defaultCallbacks.set(yc("0x52"),t),this._defaultCallbacks[yc("0x64")](yc("0x3a"),r),this._defaultCallbacks[yc("0x64")](yc("0x73"),o),this[yc("0xf1")].set(yc("0xfd"),n),this[yc("0xf1")][yc("0x64")]("formatInline:discard",t),this[yc("0xf1")][yc("0x64")](yc("0x7d"),r),this[yc("0xf1")][yc("0x64")](yc("0x7"),t),this[yc("0xf1")][yc("0x64")](yc("0x157"),n),this[yc("0xf1")].set(yc("0x62"),t),this._defaultCallbacks[yc("0x64")](yc("0x50"),r),this._defaultCallbacks[yc("0x64")](yc("0x113"),t),this._defaultCallbacks[yc("0x64")](yc("0x114"),t),this[yc("0xf1")].set(yc("0x116"),((t,e)=>{if(!e)return;const n=this._editor[yc("0xd8")][yc("0x168")](Ac);this[yc("0xda")][yc("0xc7")]((r=>{if("$elementName"==e.key)for(const n of t){const t=n[yc("0x14d")][yc("0x10f")],o=e[yc("0x136")];r[yc("0x10c")](t,o)}else if(n._isBlockAttribute(e.key))for(const n of t)void 0!==e.oldValue?r[yc("0xc8")](e[yc("0x3")],e.oldValue,n[yc("0x14d")][yc("0x10f")]):r[yc("0xc1")](e[yc("0x3")],n.start.nodeAfter);else for(const n of t)e.oldValue?r.setAttribute(e[yc("0x3")],e.oldValue,n):r[yc("0xc1")](e.key,n)}))})),this[yc("0xf1")][yc("0x64")](yc("0x122"),r)}}function Ic(t,e,n){for(const r of e[yc("0xee")].getAncestors({includeSelf:!0,parentFirst:!0})){if(r[yc("0x3e")]==r)return!1;if(!n[yc("0x90")](r))return!1;if(t[yc("0x105")](r)||t[yc("0x2d")](r))return!0}return!1}function Rc(t){return t[yc("0xd0")][yc("0xee")]==t.start[yc("0x10f")]&&t[yc("0xd0")].isAtStart}function Sc(t,e,n,r){const o=t=>!t.item.is(yc("0x11"))&&!r[yc("0x105")](t[yc("0x11e")]),i=t.start[yc("0x3c")](o),s=t[yc("0xd0")].getLastMatchingPosition(o,{direction:"backward"});return!(t[yc("0x14d")][yc("0x18")](i)&&t[yc("0xd0")][yc("0x18")](s)||(i[yc("0xec")](s)?n[yc("0x2f")](e,{range:n[yc("0x115")](i,s)}):n[yc("0x8e")](e),0))}function vc(t){return(0,i.hashObject)(t)}function Nc(t){const e=t.start.nodeAfter;return e&&e.is(yc("0x125"))}function Lc(t,e){return null==t[yc("0xd0")][yc("0x101")]&&t[yc("0xd0")].parent==t[yc("0x14d")].nodeAfter?Mc(t[yc("0x14d")][yc("0x10f")],e):t}function Mc(t,e){const n=e[yc("0x13b")][yc("0x105")](t)||e[yc("0x13b")][yc("0x71")](t);return e.createRange(e.createPositionAt(t,"before"),n?e[yc("0xb1")](t):e[yc("0x81")](t,yc("0xd0")))}function wc(t,e,n,r,o){if(!Oc(t,e))return!1;if(n.end[yc("0x18")](r[yc("0x14d")]))return!0;if(t[yc("0x13d")]!=e[yc("0x13d")])return!1;if(!n[yc("0xd0")].isTouching(r.start))return!1;const i=o.createRange(n[yc("0xd0")],r.start).getWalker();for(const t of i)if([yc("0xaf"),"elementEnd"].includes(t[yc("0x13d")])&&o[yc("0x13b")].isLimit(t.item))return!1;return!0}function Oc(t,e,n=[]){return!(!t[yc("0x110")]||!e[yc("0x110")])&&jr(bc(t.attributes,n),bc(e[yc("0x5b")],n))}function Fc(t,e){const n=Dc(t[yc("0x5b")]),r=Dc(e);if(!t._isDataLoaded)return!1;for(const t of Object[yc("0xac")](r))if(!jr(n[t],r[t]))return!1;return!0}function Dc(t){const e=Object[yc("0xde")]({},t);return delete e[yc("0x1e")],delete e.tablePasteChainId,e}const Pc=["getRanges","_discardCommand","bind","remove","view","PENDING_ACTION_SUGGESTION","isEnabled","destroy","get","_setPendingAction","commands","PendingActions","_pendingAction","plugins","canAccept","listenTo","acceptSuggestion","isDirty","model","locale","_acceptCommand","stopListening","_editor","add","canDiscard","commentThreadController","unbind","discardSuggestion","canEditAt","execute","_removePendingAction"];var Bc,Uc;Bc=Pc,Uc=164,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("0x9")]=e,this[jc("0x1a")]=n,this.commentThreadController=r,this[jc("0xd")]=t,this[jc("0xb")]=t.commands[jc("0x1e")](jc("0x7")),this[jc("0x17")]=t[jc("0x1")][jc("0x1e")]("discardSuggestion"),this[jc("0x1a")][jc("0x18")](jc("0x1c")).to(this._acceptCommand,this[jc("0x17")],((t,e)=>t||e)),this[jc("0x1a")].bind(jc("0x5")).to(this._acceptCommand,jc("0x1c"),(t=>t&&this[jc("0xd")].model[jc("0x13")](e.getRanges()))),this[jc("0x1a")][jc("0x18")]("canDiscard").to(this._discardCommand,jc("0x1c"),(t=>t&&this[jc("0xd")][jc("0x9")][jc("0x13")](e[jc("0x16")]()))),this._pendingAction=null,n[jc("0x8")]&&this[jc("0x0")](),this[jc("0x6")](n,jc("0x7"),(()=>this[jc("0x7")]())),this.listenTo(n,"discardSuggestion",(()=>this[jc("0x12")]())),this[jc("0x6")](n,"change:isDirty",(()=>{n[jc("0x8")]?this[jc("0x0")]():this[jc("0x15")]()}))}[jc("0x7")](){this[jc("0xb")].execute(this[jc("0x9")].id)}[jc("0x12")](){this[jc("0x17")][jc("0x14")](this.model.id)}[jc("0x1d")](){this.view.unbind("isEnabled"),this.view[jc("0x11")]("canAccept"),this[jc("0x1a")].unbind(jc("0xf")),this[jc("0xc")](),this[jc("0x10")].destroy(),this._pendingAction&&this._removePendingAction()}[jc("0x0")](){const t=Jr(this[jc("0xd")][jc("0xa")],jc("0x1b"));this._pendingAction=this[jc("0xd")].plugins[jc("0x1e")]("PendingActions")[jc("0xe")](t)}_removePendingAction(){null!==this[jc("0x3")]&&this._editor[jc("0x4")][jc("0x1e")](jc("0x2"))[jc("0x19")](this[jc("0x3")]),this._pendingAction=null}}const Vc=["isReadOnly","set","removeComment","updateComment","authoredAt","bind","canDiscard","descriptionParts","length","element","commentThread","_createCommentThreadInputView","hasDirtyComment","commentInputView","commentsListView","isDirty","delegate","_createCommentViews","submit","commentThreadInputView","_localUser","_model","value","editor","focus","fire","_config","isActive","assign","isEnabled","disabledSubmit","destroy","setData"];var Hc,zc;Hc=Vc,zc=100,function(t){for(;--t;)Hc.push(Hc.shift())}(++zc);const Wc=function(t,e){return Vc[t-=0]};class Kc extends o.View{constructor(t,e,n,r){super(t),this[Wc("0xd")]=null,this[Wc("0x12")]=null,this[Wc("0x0")](Wc("0x1a"),!1),this[Wc("0x0")]("authoredAt",e[Wc("0x3")]),this[Wc("0x4")]("authoredAt").to(e),this[Wc("0x0")](Wc("0x6"),[]),this[Wc("0x0")](Wc("0xe"),!1),this.set(Wc("0x1c"),!1),this.set("canAccept",!1),this[Wc("0x0")](Wc("0x5"),!1),this[Wc("0x14")]=e,this._localUser=n,this[Wc("0x19")]=r,r.disableComments?this.set("length",1):this[Wc("0x10")]()}[Wc("0x17")](){this[Wc("0x8")][Wc("0x17")]()}[Wc("0x1e")](){this[Wc("0xd")]&&this[Wc("0xd")][Wc("0x1e")](),this.commentThreadInputView&&this[Wc("0x12")].destroy(),super[Wc("0x1e")]()}[Wc("0x10")](){const{CommentsListView:t}=this[Wc("0x19")];this.commentsListView=new t(this.locale,this._model.commentThread,Object[Wc("0x1b")]({CommentView:this[Wc("0x19")].CommentView},this[Wc("0x19")])),this[Wc("0xd")][Wc("0xf")]("removeComment").to(this),this[Wc("0xd")].delegate(Wc("0x2")).to(this),this[Wc("0xd")][Wc("0x4")](Wc("0x1a")).to(this),this[Wc("0x0")](Wc("0x7"),this[Wc("0xd")][Wc("0x7")]+1),this[Wc("0x4")](Wc("0x7")).to(this[Wc("0xd")],Wc("0x7"),(t=>t+1)),this[Wc("0x12")]=this[Wc("0xa")](),this.on(Wc("0x1"),(()=>this[Wc("0x17")]())),this[Wc("0x4")](Wc("0xe")).to(this[Wc("0xd")],Wc("0xb"),this[Wc("0x12")].commentInputView,Wc("0x15"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[Wc("0x13")],this._config.editorConfig),n=e[Wc("0xc")];return e[Wc("0x4")]("showInput").to(this,Wc("0x1a"),this[Wc("0x14")][Wc("0x9")],Wc("0x20"),n,Wc("0x15"),((t,e,n)=>!!n||t&&!e)),n.on(Wc("0x11"),((t,e)=>{this[Wc("0x18")]("addComment",e),n[Wc("0x16")][Wc("0x1f")]("")})),n.on("cancel",(()=>this[Wc("0x17")]())),n[Wc("0x4")](Wc("0x1d")).to(this._model.commentThread,Wc("0x20")),e}}const qc=["map","innerText","content","importWord","canAccept","isEnabled","isExternal","span","locale","bind","getUserViewNotificationText","discardButton","ck-suggestion--discard","_createButton","set","color","_descriptionElement","fire","value","commentThread","ck-suggestion__actions","EXTERNAL_IMPORT_WORD_AVATAR","bindTemplate","extendTemplate","ck-annotation__actions","ck-annotation__info","_model","type","authoredAt","div","_config","editorDestroyed","EXTERNAL_SUGGESTION","EXTERNAL_AVATAR","ck-suggestion-wrapper","ck-comment__info-time","element","setTemplate","commentThreadInputView","author","change:description","ck-suggestion__user","name","userView","EXTERNAL_IMPORT_WORD_SUGGESTION","description","ck-annotation__info-time","acceptButton","ck-suggestion-wrapper--active","getExternalSuggestionNote","ck-suggestion--disabled-comments","ck-suggestion__main","render","editorReady","ck-suggestion","ck-suggestion--accept","attributes","ck-annotation__info-name","getTemplate","isActive",".ck-annotation__content-wrapper","push","creator","time","Accept suggestion","innerHTML","execute","</span>","delegate","commentsListView","descriptionParts","ck-annotation__content-wrapper","acceptSuggestion","<p>","ck-annotation__main","split","@external",'<span class="ck-suggestion-type">'];var Xc,$c;Xc=qc,$c=432,function(t){for(;--t;)Xc.push(Xc.shift())}(++$c);const Zc=function(t,e){return qc[t-=0]};class Yc extends Kc{constructor(e,n,r,o){super(e,n,r,o),this[Zc("0x32")](Zc("0x3f"),""),this[Zc("0x2d")]("type").to(this,Zc("0x1c"),(t=>t&&t[0]?t[0][Zc("0x3f")]:"")),this[Zc("0x2d")](Zc("0x3")).to(this,"descriptionParts",this,Zc("0x11"),((t,e)=>{let n="";for(const e of t)n+=Zc("0x1f")+Jc(e[Zc("0x26")],e[Zc("0x33")])+"</p>";return e?n:(0,i.trimHtml)(n,{limit:140})})),this[Zc("0x34")]=null,this.acceptButton=this._createButton(Jr(e,Zc("0x16")),t.icons.check,Zc("0xd"),Zc("0x1e"),"sw"),this.acceptButton[Zc("0x2d")](Zc("0x29")).to(this,Zc("0x28")),this[Zc("0x2f")]=this[Zc("0x31")](Jr(e,"Discard suggestion"),t.icons.cancel,Zc("0x30"),"discardSuggestion","sw"),this[Zc("0x2f")][Zc("0x2d")](Zc("0x29")).to(this,"canDiscard"),this[Zc("0x1")]=new i.UserView(e,this[Zc("0x3e")].author,this[Zc("0x2e")]()),this.userView.extendTemplate({attributes:{class:[Zc("0x4d"),"ck-annotation__user"]}}),this[Zc("0x49")](this[Zc("0x10")]())}[Zc("0x10")](){const t=this[Zc("0x3a")],e=[{tag:Zc("0x41"),attributes:{class:["ck-suggestion__info",Zc("0x3d")]},children:[{tag:"span",children:[{text:this[Zc("0x1")][Zc("0x0")]}],attributes:{class:["ck-suggestion__info-name",Zc("0xf")]}},{tag:Zc("0x15"),attributes:{datetime:t.to(Zc("0x40")),class:[Zc("0x47"),Zc("0x4")]},children:[{text:t.to(Zc("0x40"),(t=>this[Zc("0x42")].formatDateTime(t)))}]}]},{tag:Zc("0x41"),attributes:{class:[Zc("0x38"),Zc("0x3c")]},children:[this[Zc("0x5")],this[Zc("0x2f")]]},{tag:Zc("0x41"),attributes:{class:[Zc("0x1d")]}}];this[Zc("0x3e")][Zc("0x2a")]&&e[Zc("0x13")]({tag:Zc("0x41"),attributes:{class:["ck-comment__external"]},children:[{text:this[Zc("0x7")]()}]});const n={tag:"div",attributes:{class:[Zc("0x46"),t.if(Zc("0x11"),Zc("0x6")),t.to(Zc("0x3f"),(t=>"ck-suggestion-"+t)),this[Zc("0x42")].disableComments&&Zc("0x8")],"data-suggestion-id":this[Zc("0x3e")].id,"data-thread-id":this._model[Zc("0x37")].id,"data-author-id":this[Zc("0x3e")][Zc("0x4b")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[Zc("0xc"),"ck-annotation"]},children:[this[Zc("0x1")],{tag:Zc("0x41"),attributes:{class:[Zc("0x9"),Zc("0x20")]},children:e}]}]};return this[Zc("0x1b")]&&this[Zc("0x4a")]&&(n.children[Zc("0x13")](this[Zc("0x1b")],this[Zc("0x4a")]),this[Zc("0x1b")].delegate("editorReady").to(this),this[Zc("0x1b")][Zc("0x1a")](Zc("0x43")).to(this),this.commentThreadInputView.delegate(Zc("0xb")).to(this),this[Zc("0x4a")][Zc("0x1a")](Zc("0x43")).to(this)),n}[Zc("0xa")](){super[Zc("0xa")](),this[Zc("0x34")]=this[Zc("0x48")].querySelector(Zc("0x12")),this[Zc("0x34")][Zc("0x17")]=this[Zc("0x3")],this.on(Zc("0x4c"),((t,e,n)=>{this._descriptionElement[Zc("0x17")]=n}))}[Zc("0x31")](t,e,n,r,i){const s=new o.ButtonView(this[Zc("0x2c")]);return s[Zc("0x32")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s[Zc("0x3b")]({attributes:{class:n}}),s.on(Zc("0x18"),(()=>{this[Zc("0x35")](r,this._model.id)})),s}[Zc("0x7")](){return Zc("0x27")===this._model.attributes[Zc("0x22")].source?Jr(this[Zc("0x2c")],Zc("0x2")):Jr(this.locale,Zc("0x44"))}[Zc("0x2e")](){return this._model[Zc("0x2a")]?"importWord"===this[Zc("0x3e")][Zc("0xe")][Zc("0x22")].source?Jr(this[Zc("0x2c")],Zc("0x39"),this[Zc("0x3e")].creator.name):Jr(this[Zc("0x2c")],Zc("0x45"),this._model[Zc("0x14")].name):null}}function Jc(t,e){let n="";return n+=t[Zc("0x21")]("*")[Zc("0x24")](((t,e)=>e%2!=0?Zc("0x23")+Qc(t)+Zc("0x19"):Qc(t))).join(""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[Zc("0x36")]+'" title="'+e.title+'"></span>'),n}function Qc(t){const e=document.createElement(Zc("0x2b"));return e[Zc("0x25")]=t,e[Zc("0x17")]}const tl=["reduce","suggestion-","isEnabled","commandName","stopListening","_handleControllerBuffer","componentFactory","add","suggestionChanged","focus","createAnnotation","init","bind","change:activeAnnotations","commentThread","requires","some","Accept all suggestions","previous","discardAllSuggestions","locale","addSourceCollector","getRanges","plugins","remove","innerView","trackChanges","delete","arrowView","clear","isDirty","_bindAnnotationToEditors","_createUIButton","_disableComments","isMultiRange","Annotations","CommentsUI","_handleSuggestionControllerDelayed","_viewToController","type","model","lowest","change:previous","discardSelectedSuggestions","set","_suggestionToController","refreshSelectedViews","view","comments","comments.maxThreadTotalWeight","buttonView","commands","get","SuggestionThreadView","actionView","createCommentThreadController","config","head","getMarkers","registerAnnotation","_destroyController","isOn","size","TrackChangesUI","_descriptionFactory","CommentsRepository","activeMarkers","push","activeAnnotations","acceptAllSuggestions","isInContent","addComment","destroy","trackChanges.disableComments","listenTo","suggestionLoaded","descriptionParts","filter","comments.maxCommentCharsWhenCollapsed","mainView","_annotationViews","getDescriptions","switchbutton","from","button","getAllAdjacentSuggestions","_initializeController","getFirstRange","value","pluginName","has","execute","comments.maxCommentsWhenCollapsed","TrackChangesEditing","_refreshActiveMarkers","_updateController","EditorAnnotations","suggestionUnloaded","_unbindEditors","Discard all selected suggestions","Discard all suggestions","editing","define","acceptButton","length","unbind","editor","discardButton"];var el,nl;el=tl,nl=228,function(t){for(;--t;)el.push(el.shift())}(++nl);const rl=function(t,e){return tl[t-=0]};class ol extends t.Plugin{static get[rl("0x3")](){return[Ac,i.Users,rl("0x35"),rl("0x17"),rl("0x54")]}static get[rl("0x4d")](){return rl("0x33")}constructor(t){super(t),this[rl("0x21")]=new Map,this[rl("0x1a")]=new Map,this[rl("0x44")]=new Map,this[rl("0x65")]=new Map;const e=this[rl("0x5e")][rl("0x2c")];e.define("trackChanges.SuggestionThreadView",Yc),e[rl("0x5a")]("trackChanges.disableComments",!1),this[rl("0x15")]=e[rl("0x28")](rl("0x3d"))}[rl("0x19")](t,e){0===this._handleControllerBuffer[rl("0x32")]&&setTimeout((()=>{for(const[t,e]of this[rl("0x65")]){const n=this[rl("0x21")].has(t);n||e?n&&e&&this[rl("0x30")](t):this[rl("0x4a")](t)}this[rl("0x65")][rl("0x11")](),this[rl("0x5e")][rl("0xb")][rl("0x28")](rl("0x54"))[rl("0x22")](),this[rl("0x52")]()}),10),this[rl("0x65")][rl("0x20")](t,e)}[rl("0x6b")](){const t=this.editor,e=t[rl("0xb")][rl("0x28")](rl("0x51")),n=t[rl("0xb")][rl("0x28")](rl("0x17")),r=t[rl("0xb")].get("EditorAnnotations"),o=t[rl("0xb")][rl("0x28")](rl("0x35"));t.ui[rl("0x66")].add(rl("0xe"),(t=>this[rl("0x14")](t))),r[rl("0x9")]((()=>{const t=[];for(const[e,n]of Array.from(this._suggestionToController)){const r=e[rl("0x49")](),o=[];for(const t of r){if(!t.isInContent)continue;if(t[rl("0x16")]){o.push(...t[rl("0xa")]());continue}const e=t[rl("0x4b")]();if(o.length>0){const t=o[0].getJoined(e);if(t){o[0]=t;continue}}o.push(e)}t[rl("0x37")]([n[rl("0x23")],o])}return t})),this.listenTo(e,rl("0x3f"),((t,e)=>{this[rl("0x3e")](e,"change:previous",((t,n,r,o)=>{e[rl("0x3a")]&&(null==r?(this[rl("0x53")](o.head),this[rl("0x19")](e,!1)):(this._updateController(r.head),null==o&&this._handleSuggestionControllerDelayed(e,!0)))})),null!==e[rl("0x6")]?this[rl("0x53")](e[rl("0x2d")]):this._handleSuggestionControllerDelayed(e,!1)})),this[rl("0x3e")](e,rl("0x55"),((t,e,n)=>{this[rl("0x64")](e,rl("0x1e")),this[rl("0x65")][rl("0xf")](e),this[rl("0x21")].has(e)&&this[rl("0x30")](e),n&&this[rl("0x53")](n.head)})),this[rl("0x3e")](e,rl("0x68"),((t,e)=>{this[rl("0x53")](e)})),this.listenTo(n,rl("0x1"),(()=>{this[rl("0x52")]()})),this.listenTo(o,rl("0x3b"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e.hasSuggestion(n))return;const o=e.getSuggestion(n);this._suggestionToController[rl("0x28")](o)[rl("0x23")][rl("0x69")]()}),{priority:rl("0x1d")})}_refreshActiveMarkers(){const t=this[rl("0x5e")].plugins[rl("0x28")](rl("0x17")),e=this[rl("0x5e")][rl("0xb")][rl("0x28")](rl("0x51")),n=Array[rl("0x47")](t[rl("0x38")],(t=>t[rl("0xd")]))[rl("0x41")]((t=>this[rl("0x1a")].has(t))),r=[];for(const t of n){const e=this._viewToController[rl("0x28")](t).model[rl("0x49")]();r[rl("0x37")](...e[rl("0x60")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[rl("0x36")]=r}[rl("0x14")](t){const n=(0,o.createDropdown)(t,o.SplitButtonView),r=this[rl("0x5e")][rl("0x27")][rl("0x28")](rl("0xe")),i=Jr(t,"Track changes");n.buttonView[rl("0x20")]({tooltip:i,label:i,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-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[rl("0x26")].bind(rl("0x31")).to(r,"value"),n.buttonView.on(rl("0x4f"),(()=>{r[rl("0x4f")](),this[rl("0x5e")].editing[rl("0x23")][rl("0x69")]()}));const s=new e.Collection,x=[{type:rl("0x46"),model:{withText:!0,label:i,commandName:rl("0xe")}},{type:"separator"},{type:"button",model:{withText:!0,label:Jr(t,rl("0x5")),commandName:rl("0x39")}},{type:rl("0x48"),model:{withText:!0,label:Jr(t,"Accept all selected suggestions"),commandName:"acceptSelectedSuggestions"}},{type:rl("0x48"),model:{withText:!0,label:Jr(t,rl("0x58")),commandName:rl("0x7")}},{type:rl("0x48"),model:{withText:!0,label:Jr(t,rl("0x57")),commandName:rl("0x1f")}}];for(const t of x){let e={type:"separator"};if(t[rl("0x1c")]){const n=new o.ViewModel(t[rl("0x1c")]),r=this[rl("0x5e")][rl("0x27")][rl("0x28")](n[rl("0x63")]);n[rl("0x0")](rl("0x31"),"isEnabled").to(r,rl("0x4c"),"isEnabled"),e={type:t[rl("0x1b")],model:n}}s[rl("0x67")](e)}(0,o.addListToDropdown)(n,s);const a=x.filter((t=>null!=t[rl("0x1c")])).map((t=>this.editor.commands[rl("0x28")](t[rl("0x1c")][rl("0x63")]))),c=n[rl("0x26")];return c.actionView[rl("0x5d")](rl("0x62")),c[rl("0x10")][rl("0x5d")]("isEnabled"),c[rl("0x2a")][rl("0x0")](rl("0x62")).to(r,rl("0x62")),c[rl("0x10")].bind("isEnabled").toMany(a,rl("0x62"),((...t)=>t[rl("0x4")]((t=>t)))),n.on(rl("0x4f"),(t=>{this.editor[rl("0x4f")](t.source.commandName),this[rl("0x5e")][rl("0x59")].view[rl("0x69")]()})),n}[rl("0x4a")](t){const e=this[rl("0x5e")],n=e[rl("0x2c")],r=e.plugins[rl("0x28")](rl("0x17")),o=e.plugins[rl("0x28")](rl("0x35")),s=e.plugins[rl("0x28")](rl("0x54")),x=e.plugins.get(i.Users).me,a=n.get(rl("0xe"))[rl("0x29")],{CommentsListView:c,CommentThreadInputView:l}=e[rl("0xb")].get(rl("0x18"));let u,d;this[rl("0x44")].has(t.id)?(d=this[rl("0x44")].get(t.id),u=d[rl("0x43")]):(u=new a(e.locale,t,x,{disableComments:this[rl("0x15")],editorConfig:n[rl("0x28")]("comments.editorConfig"),maxCommentsWhenCollapsed:n.get(rl("0x50")),maxThreadTotalWeight:n[rl("0x28")](rl("0x25")),maxCommentCharsWhenCollapsed:n[rl("0x28")](rl("0x42")),formatDateTime:(0,i.getDateTimeFormatter)(n[rl("0x28")](rl("0x8"))),CommentView:n[rl("0x28")](rl("0x24")).CommentView,CommentsListView:c,CommentThreadInputView:l}),u[rl("0x5b")].on("execute",(()=>{e.editing[rl("0x23")][rl("0x69")]()})),u[rl("0x5f")].on(rl("0x4f"),(()=>{e[rl("0x59")][rl("0x23")][rl("0x69")]()})),d=r.createAnnotationView(this[rl("0x5e")][rl("0x8")],u),d[rl("0x0")](rl("0x12")).to(u,rl("0x12")),d[rl("0x0")](rl("0x5c")).to(u),d[rl("0x0")](rl("0x1b")).to(u,rl("0x1b"),(t=>rl("0x61")+t)),this._annotationViews[rl("0x20")](t.id,d));const g=o[rl("0x2b")](t[rl("0x2")],u),f=new Gc(e,t,u,g),h=t[rl("0x49")]().filter((t=>t.isInContent));u[rl("0x40")]=e.plugins[rl("0x28")](rl("0x51"))[rl("0x34")].getDescriptions(h),this[rl("0x21")].set(t,f),this._viewToController[rl("0x20")](u,f);const m=r[rl("0x6a")]({view:d,target:()=>{const n=[],r=t[rl("0x49")]()[rl("0x41")]((t=>t[rl("0x3a")]));for(const t of r)n.push(...t[rl("0x2e")]());return(0,i.getAllMarkersDomElementsSorted)(e[rl("0x59")],n)},type:()=>rl("0x61")+f[rl("0x23")][rl("0x1b")]});o[rl("0x13")](u,m),r[rl("0x67")](m),s[rl("0x2f")](m)}[rl("0x30")](t){const e=this[rl("0x5e")][rl("0xb")].get("CommentsRepository"),n=this[rl("0x5e")].plugins[rl("0x28")](rl("0x17")),r=this[rl("0x21")][rl("0x28")](t),o=r.view,i=n.getByInnerView(o);e[rl("0x56")](o),i&&n[rl("0xc")](i),this[rl("0x21")].delete(t),this._viewToController[rl("0xf")](o),r[rl("0x3c")]()}_updateController(t){if(!t[rl("0x3a")]||!this[rl("0x21")][rl("0x4e")](t))return;const e=this[rl("0x5e")][rl("0xb")][rl("0x28")]("TrackChangesEditing"),n=this[rl("0x21")][rl("0x28")](t),r=t.getAllAdjacentSuggestions();n[rl("0x23")][rl("0x40")]=e[rl("0x34")][rl("0x45")](r)}[rl("0x3c")](){for(const t of this[rl("0x21")].keys())this._destroyController(t);for(const t of this[rl("0x44")].values())t[rl("0x43")][rl("0x3c")]();super[rl("0x3c")]()}}var il,sl,xl=["editor","pluginName","getSuggestions","adapter","getSuggestion","addSuggestionData","requires","get","addSuggestion","plugins"];il=xl,sl=319,function(t){for(;--t;)il.push(il.shift())}(++sl);var al=function(t,e){return xl[t-=0]};class cl extends t.Plugin{static get[al("0x7")](){return[Ac,ol,"Comments"]}static get[al("0x2")](){return"TrackChanges"}set[al("0x4")](t){this.editor[al("0x0")][al("0x8")](Ac)[al("0x4")]=t}get[al("0x4")](){return this[al("0x1")][al("0x0")][al("0x8")](Ac)[al("0x4")]}[al("0x9")](t){return this[al("0x1")][al("0x0")].get(Ac)[al("0x6")](t)}[al("0x3")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[al("0x0")].get(Ac)[al("0x3")]({skipNotAttached:t,toJSON:e})}[al("0x5")](t){return this.editor[al("0x0")].get(Ac)[al("0x5")](t)}}const ll=["init","data","TrackChangesData","discardAllSuggestions","trackChangesData.editorCreator","function","createDocumentFragment","users","getDataWithDiscardedSuggestions","get","rootsAttributes","result","config","editorCreator","trackChangesData","addUser","name","pluginName","div","getFullData","getDataWithAcceptedSuggestions","create","track-changes-data-invalid-editor-creator","set","model","TrackChangesDataGetter","appendChild","destroy","TrackChangesEditing","document","getRootsAttributes","editor","CommentsRepository","_adapter","plugins","useAnonymousUser","Users","addSuggestionData","end","reduce"];var ul,dl;ul=ll,dl=295,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=["Pagination"];class hl extends t.Plugin{static get requires(){return[Ac]}static get pluginName(){return gl("0x1b")}[gl("0x19")](){const t=this[gl("0x10")];if(t.config.define(gl("0x1d"),(e=>{const n=t.model.document.getRootNames()[gl("0x18")](((t,e)=>(t[e]="",t)),{});return t.constructor[gl("0x6")](n,e)})),gl("0x1e")!=typeof t.config[gl("0x22")](gl("0x27"))[gl("0x26")])throw new e.CKEditorError(gl("0x7"))}[gl("0x5")](t){return bl(this[gl("0x10")],!0,t)}[gl("0x21")](t){return bl(this.editor,!1,t)}}class ml extends t.Plugin{static get[gl("0x2")](){return gl("0xa")}constructor(t){super(t),this[gl("0x24")]=gl("0x17")}[gl("0x19")](){this.editor[gl("0x13")][gl("0x22")](gl("0x11"))[gl("0x12")]={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("0x10")].plugins.get(gl("0xd"))[gl("0x12")]=null}}function pl(t){return void 0!==t[gl("0xf")]}async function bl(t,e,n){const r=(0,i.sanitizeEditorConfig)(t,fl);r[gl("0x13")].push(Ac,ml),r[gl("0x23")]=pl(t)?t[gl("0xf")]():void 0;const o=document[gl("0x1f")](),s=t[gl("0x25")][gl("0x22")]("trackChangesData")[gl("0x26")],x=await s(r,(()=>function(t){const e=document.createElement(gl("0x3"));return t[gl("0xb")](e),e}(o)));!function(t,e){const n=t[gl("0x9")][gl("0xe")].getRootNames()[gl("0x18")](((e,n)=>(e[n]=t[gl("0x1a")][gl("0x22")]({rootName:n}),e)),{}),r=t[gl("0x13")][gl("0x22")]("Users")[gl("0x20")].map((t=>({id:t.id,name:t[gl("0x1")]}))),o=t[gl("0x13")][gl("0x22")](gl("0xd")).getSuggestions({skipNotAttached:!0,toJSON:!0}),i=e[gl("0x13")][gl("0x22")](gl("0x15")),s=e[gl("0x13")].get(gl("0xd"));for(const t of r)i.getUser(t.id)||i[gl("0x0")](t);i.me||i[gl("0x14")]();for(const t of o)s[gl("0x16")](t);e[gl("0x1a")][gl("0x8")](n)}(t,x),x.execute(e?"acceptAllSuggestions":gl("0x1c"));const a=pl(x)?x[gl("0x4")](n):x[gl("0x1a")][gl("0x22")](n);return await x[gl("0xc")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();