@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230906.0 → 0.0.0-nightly-20230907.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 (64) 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/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.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/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>dc,TrackChanges:()=>Sc,TrackChangesData:()=>Oc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["editor","forceDisabled","TrackChangesCommand","clearForceDisabled","commands","value","_isEnabledBasedOnSelection","_enabledCommands","isEnabled","execute","affectsData","refresh","_enableCommands","has","_disableUnsupportedCommands"];var c,l;c=a,l=127,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[d("0xd")]=!1,this.refresh(),this[d("0xe")]=!1}[d("0x4")](){this[d("0x1")]=!0}[d("0x2")](){this[d("0xd")]=!this[d("0xd")],this[d("0xd")]?this[d("0x7")]():this[d("0x5")]()}[d("0x7")](){for(const t of this[d("0x8")][d("0xc")][d("0xc")]())t[d("0x3")]&&!this[d("0x0")].has(t)&&t[d("0x9")](d("0xa"))}[d("0x5")](){for(const t of this.editor[d("0xc")][d("0xc")]())t[d("0x3")]&&!this[d("0x0")][d("0x6")](t)&&t[d("0xb")](d("0xa"))}}const g=["execute","model","TrackChangesEditing","_suggestions","refresh","track-changes-accept-suggestion-not-found","canEditAt","editor","acceptSuggestion","get","getRanges"];var m,f;m=g,f=318,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[h("0x4")]=e,this[h("0x5")](),this._isEnabledBasedOnSelection=!1}[h("0x5")](){this.isEnabled=!0}[h("0x1")](t){const n=this[h("0x4")].get(t);if(!n)throw new e.CKEditorError(h("0x6"),this);const o=n[h("0x0")]();this[h("0x8")][h("0x2")][h("0x7")](o)&&this[h("0x8")].plugins[h("0xa")](h("0x3"))[h("0x9")](n)}}const p=["refresh","editor","model","track-changes-discard-suggestion-not-found","isEnabled","execute","discardSuggestion","TrackChangesEditing","plugins","get","_isEnabledBasedOnSelection"];var E,_;E=p,_=479,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return p[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x5")](),this[T("0x4")]=!1}[T("0x5")](){this[T("0x9")]=!0}[T("0xa")](t){const n=this._suggestions[T("0x3")](t);if(!n)throw new e.CKEditorError(T("0x8"),this);const o=n.getRanges();this.editor[T("0x7")].canEditAt(o)&&this[T("0x6")][T("0x2")][T("0x3")](T("0x1"))[T("0x0")](n)}}const y=["getRanges","color","content","createPositionAt","isInContent","join","change","createPositionBefore","deletion","createPositionAfter","replace","createRange","length","splice","value"," [color ","start","type","end","isCollapsed","execute","sort","isTouching"];var k,A;k=y,A=368,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x15")](((t,e)=>"deletion"==t[v("0x11")]&&v("0x8")!=e[v("0x11")]?-1:v("0x8")!=t[v("0x11")]&&v("0x8")==e[v("0x11")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e.schema;for(;o<t[v("0xc")];){const i=t[o],x=t[o+1];n||(n=e[v("0x7")](i)),I(e,i,x)||(s.push(e[v("0xb")](n,r.isObject(i)?e[v("0x9")](i):e[v("0x3")](i,"end"))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),s=t[v("0x7")](n);return o[v("0x16")](s)}function L(t,e,n){for(;n[v("0xc")];){const o=n[v("0xd")](0,100);t[v("0x6")]((()=>{for(const t of o)t[v("0x4")]&&e[v("0x14")](t.id)}))}}const N=["isEnabled","model","refresh","canEditAt","_command","_isEnabledBasedOnSelection","from","isInContent","_suggestions","values","editor"];var w,M;w=N,M=451,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x4")]=e,this._suggestions=n,this[O("0x2")](),this[O("0x5")]=!1}refresh(){const t=Array.from(this[O("0x8")].values()).some((t=>t[O("0x7")]));this[O("0x0")]=this[O("0x4")].isEnabled&&t}execute(){const t=R(Array[O("0x6")](this[O("0x8")][O("0x9")]()));for(const e of t){const t=e.getRanges();if(!this[O("0xa")][O("0x1")][O("0x3")](t))return}L(this[O("0xa")].model,this[O("0x4")],t)}}const P=["document","isEnabled","size","editor","_suggestions","values","refresh","getRanges","execute","model","_command","from","_selectedSuggestions"];var D,B;D=P,B=479,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0xc")]=e,this._suggestions=n,this[j("0x1")]=new Set,this.refresh(),this._isEnabledBasedOnSelection=!1}[j("0x8")](){const t=this.editor[j("0xb")][j("0x2")].selection,e=Array.from(this[j("0x6")][j("0x7")]());this[j("0x1")]=function(t,e){const n=Array.from(t[v("0x0")]()),o=new Set;for(const s of e)if(s[v("0x4")])for(const e of n)for(const n of s[v("0x0")]())(e.isIntersecting(n)||t[v("0x13")]&&!s.isMultiRange&&s.next&&n[v("0x12")][v("0x16")](e[v("0x10")]))&&o.add(s);return o}(t,e),this[j("0x3")]=this._command[j("0x3")]&&!!this[j("0x1")][j("0x4")]}[j("0xa")](){const t=R(Array[j("0x0")](this[j("0x1")]));for(const e of t){const t=e[j("0x9")]();if(!this[j("0x5")][j("0xb")].canEditAt(t))return}L(this.editor.model,this[j("0xc")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var bt,pt=(bt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"";const Et=function(t){return!!pt&&pt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(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 Pt=function(t){var e=this.__data__;if(wt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,be=he&&he.exports===fe?ot.Buffer:void 0;const pe=(be?be.isBuffer:void 0)||me;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 Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&pe(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?we(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=bn||mn&&Rn(mn.resolve())!=pn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return bn;case kn:return pn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(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 Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(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 jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(pe(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const bo=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const po=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=bo(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=po(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Mo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var b=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===b?f===h||s(f,h,n,o,r):b)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var p=t.constructor,E=e.constructor;p==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof p&&p instanceof p&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&pe(t)){if(!pe(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=bo(e,t)).length;null!=t&&n<o;)t=t[po(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=bo(e,t),null==(t=Vo(t,e))||delete t[po(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["authoredAt","commentThread","getMultiRangeId","filter","end","getFirstRange","addRange","getMarkerNames","clear","suggestion:","hasComments","_onAccept","toJSON","_saved","head","discard","markers","change","isInContent","decorate","addMarkerName","getRange","_onDiscard","set","removeMarkers","subType","data","removeMarker","onAccept","_markerNames","reduce","getMarkers","next","accept","createdAt","from","isIntersectingWithRange","removeAttribute","type","addMarker","getAllAdjacentSuggestions","onDiscard","size","nodeAfter","isExternal","getContainedElement","isIntersecting","setAttribute","push","nodeBefore","length","_model","previous","map","_isDataLoaded","creator","start","author","_onAttributesChange","getRanges","attributes","getFirstMarker"];var $o,Jo;$o=Xo,Jo=424,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Qo("0x2")]=!1,this.id=e.id,this[Qo("0x30")]=e.type,this[Qo("0x23")]=e[Qo("0x23")]||null,this.author=e[Qo("0x5")],this[Qo("0x3")]=e[Qo("0x3")]||e[Qo("0x5")],this[Qo("0x36")]=Boolean(e.attributes&&e[Qo("0x8")]["@external"]),this[Qo("0x24")]=null,this[Qo("0x3d")]=t,this[Qo("0x15")]=e[Qo("0x26")],this[Qo("0x20")]=e[Qo("0x33")],this._onAttributesChange=e.onAttributesChange,this._markerNames=new Set,this[Qo("0x2c")]=null,this.set(Qo("0xa"),null),this.set(Qo("0x8"),e.attributes||{}),this[Qo("0x21")](Qo("0x0"),null),this[Qo("0x21")]("next",null),this[Qo("0x21")](Qo("0xb"),null),this[Qo("0x21")](Qo("0x17"),!1),this[Qo("0x1d")](Qo("0x2b")),this[Qo("0x1d")](Qo("0x19"))}get[Qo("0x18")](){let t=this;for(;t[Qo("0x0")];)t=t.previous;return t}get[Qo("0x14")](){return!!this[Qo("0xb")]&&this[Qo("0xb")][Qo("0x3c")]>0}get isMultiRange(){return 0!=this[Qo("0x27")][Qo("0x34")]&&6==Array[Qo("0x2d")](this._markerNames)[0].split(":")[Qo("0x3c")]}get[Qo("0x1c")](){return null!==this[Qo("0x9")]()}[Qo("0x1e")](t){this[Qo("0x27")].add(t)}[Qo("0x11")](){return Array[Qo("0x2d")](this[Qo("0x27")])}[Qo("0x29")](){return this[Qo("0x11")]()[Qo("0x1")]((t=>this[Qo("0x3d")][Qo("0x1a")].get(t)))[Qo("0xd")]((t=>t))}[Qo("0x9")](){return this[Qo("0x29")]()[0]||null}[Qo("0x22")](){this[Qo("0x3d")][Qo("0x1b")]((t=>{for(const e of this.getMarkers())t[Qo("0x25")](e)})),this[Qo("0x27")][Qo("0x12")]()}[Qo("0x25")](t){this[Qo("0x3d")][Qo("0x1b")]((e=>{e[Qo("0x25")](t)})),this[Qo("0x27")].delete(t)}[Qo("0x10")](t){const e=Qo("0x13")+this[Qo("0x30")]+":"+this[Qo("0x23")]+":"+this.id+":"+this[Qo("0x3")].id+":"+Zo[Qo("0xc")]();this.addMarkerName(e),this._model[Qo("0x1b")]((n=>{n[Qo("0x31")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x2e")](t){for(const e of this[Qo("0x7")]())if(e[Qo("0x38")](t))return!0;return!1}[Qo("0x7")](){return this.getMarkers()[Qo("0x1")]((t=>t[Qo("0x1f")]()))}getItems(){return this[Qo("0x7")]()[Qo("0x28")](((t,e)=>[...t,...e.getItems()]),[])}[Qo("0xf")](){var t;return(null===(t=this[Qo("0x9")]())||void 0===t?void 0:t[Qo("0x1f")]())||null}[Qo("0x37")](){const t=this[Qo("0x7")]();if(1!=t[Qo("0x3c")])return null;const e=t[0],n=e[Qo("0x4")][Qo("0x35")],o=e[Qo("0xe")][Qo("0x3b")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x2b")](){this._onAccept(this[Qo("0x7")](),this[Qo("0x24")],this[Qo("0x8")]),this[Qo("0x22")]()}[Qo("0x19")](){this[Qo("0x20")](this.getRanges(),this[Qo("0x24")],this[Qo("0x8")]),this[Qo("0x22")]()}[Qo("0x32")](){const t=[];let e=this[Qo("0x18")];for(;e;)t[Qo("0x3a")](e),e=e[Qo("0x2a")];return t}[Qo("0x39")](t,e){const n=eo(this[Qo("0x8")]);_o(n,t,e),Go(n,this.attributes)||(this.attributes=n,this._onAttributesChange(n))}[Qo("0x2f")](t){const e=eo(this[Qo("0x8")]);qo(e,t),Go(e,this[Qo("0x8")])||(this.attributes=e,this[Qo("0x6")](this[Qo("0x8")]))}[Qo("0x16")](){return{id:this.id,type:this.subType?this[Qo("0x30")]+":"+this.subType:this[Qo("0x30")],authorId:this[Qo("0x3")].id,createdAt:this[Qo("0x2c")],hasComments:this[Qo("0x14")],data:this[Qo("0x24")],attributes:this[Qo("0x8")]}}static[Qo("0xc")](){return(0,e.uid)().substr(1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["getDescriptions","isEqual","add","_itemLabelsCallbacks","registerDescriptionCallback","get","function","removeObject","_customCallbacks","getFirstRange","REPLACE_TEXT","insertion","Object","pop","*Remove:* %0","_schema","$textProxy","end","previousSibling","skip","$text","length","deletion","name","removeEmptyContainer","$1 $2","nextSibling","isObject","_itemLabels","replace","*Merge:* %0","getWalker","element","text","_locale","type","registerElementLabel","item","Container","*Split:* %0","isEmpty","*Insert:* %0","match","addContainer","getItemLabel","ELEMENT_SPACE","push","data","elementStart","EmptyContainer","isInContent","elementEnd","_addDescriptionItems","_resolveDescriptionItems","indexOf","set","quantity","remove"];var es,ns;es=ts,ns=283,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0xf")]=[],this[os("0x23")]=new Map,this._itemLabelsCallbacks=[],this[os("0x16")]=t,this[os("0x29")]=e}[os("0x7")](t){const e=[];for(let n=0;n<t[os("0x1c")];n++){const o=t[n];if(!o[os("0x39")])continue;let s=!1;for(const t of this[os("0xf")]){const n=t(o);if(n){os("0x2a")in n&&e[os("0x35")](n),s=!0;break}}if(!s){this[os("0x1")](e,o);const s=t[n+1];if(s&&!o[os("0x10")]()[os("0x18")][os("0x8")](s[os("0x10")]().start)){const t=e[e[os("0x1c")]-1],n=os("0x12")==o[os("0x2a")]?os("0x9"):os("0x6");t&&os("0x28")==t.type&&(t[n]+="\n")}}}return this[os("0x2")](e)}[os("0xb")](t){this[os("0xf")][os("0x35")](t)}[os("0x2b")](t,n,o=e.priorities.normal){os("0xd")==typeof t?(0,e.insertToPriorityArray)(this[os("0xa")],{matchingCallback:t,label:n,priority:o}):this[os("0x23")][os("0x4")](t,n)}getItemLabel(t,e=1){let n;for(const e of this[os("0xa")])if(e.matchingCallback(t)){n=e.label;break}return n||(n=this[os("0x23")][os("0xc")](t[os("0x1e")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x1e")]}_addDescriptionItems(t,e){const n=e[os("0x10")]()[os("0x26")](),o=os("0x12")==e[os("0x2a")]?"add":os("0x6");for(const e of n){const s=e[os("0x2c")],r=t[t[os("0x1c")]-1];if(s.is(os("0x17")))r&&r[os("0x2a")][os("0x3")](os("0x2d"))>-1&&t[os("0x14")](),r&&os("0x28")==r.type?r[o]+=s[os("0x36")]:t.push({type:os("0x28"),add:os("0x9")==o?s[os("0x36")]:"",remove:os("0x6")==o?s[os("0x36")]:""});else if(this._schema[os("0x22")](s)){const i=s;if(r&&r[os("0x2a")][os("0x3")](os("0x2d"))>-1&&t[os("0x14")](),os("0x0")==e[os("0x2a")])continue;r&&r.type==o+os("0x13")&&r.element[os("0x1e")]==i[os("0x1e")]?r.quantity++:t[os("0x35")]({type:o+"Object",element:i,quantity:1}),n[os("0x1a")]((t=>!("elementEnd"==t[os("0x2a")]&&t[os("0x2c")]==s)))}else if(this._schema.checkChild(s,os("0x1b"))||s.is(os("0x27"),"softBreak")){const n=s;if(os("0x9")==o&&os("0x37")==e[os("0x2a")]||os("0x6")==o&&os("0x0")==e[os("0x2a")])continue;if(r&&-1==r[os("0x2a")][os("0x3")]("Container")){os("0x28")==r[os("0x2a")]&&(r[o]+="\n");continue}let i;if(i=os("0x9")==o?n[os("0x21")]&&!this[os("0x16")][os("0x22")](n[os("0x21")])?n.nextSibling:null:n.previousSibling&&!this[os("0x16")][os("0x22")](n[os("0x19")])?n[os("0x19")]:null,n.isEmpty||i&&i[os("0x2f")]){const e=i&&i[os("0x2f")]?i:n;r&&r[os("0x2a")]==o+os("0x38")&&r[os("0x27")][os("0x1e")]==e[os("0x1e")]?r[os("0x5")]++:t[os("0x35")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x35")]({type:o+os("0x2d"),element:n})}}}[os("0x2")](t){const e=this[os("0x29")],n=[];for(const o of t){switch(o[os("0x2a")]){case os("0x28"):if(o[os("0x9")]=o.add[os("0x24")](/(\S)\u000A+(\S)/g,os("0x20"))[os("0x24")](/\u000A/g,""),o[os("0x6")]=o[os("0x6")][os("0x24")](/(\S)\u000A+(\S)/g,os("0x20"))[os("0x24")](/\u000A/g,""),""!=o[os("0x9")]&&""!=o.remove){n[os("0x35")]({type:os("0x24"),content:Yo(e,os("0x11"),['"'+o.remove+'"','"'+o[os("0x9")]+'"'])});continue}if(null!=o[os("0x9")][os("0x31")](/^ +$/)){n.push({type:os("0x12"),content:Yo(e,os("0x30"),Yo(e,os("0x34"),o[os("0x9")][os("0x1c")]))});continue}if(null!=o.remove[os("0x31")](/^ +$/)){n.push({type:os("0x1d"),content:Yo(e,os("0x15"),Yo(e,os("0x34"),o[os("0x6")][os("0x1c")]))});continue}if(""!=o[os("0x9")]){n[os("0x35")]({type:os("0x12"),content:Yo(e,os("0x30"),'"'+o[os("0x9")]+'"')});continue}n[os("0x35")]({type:os("0x1d"),content:Yo(e,os("0x15"),'"'+o[os("0x6")]+'"')});continue;case"addEmptyContainer":case"addObject":n.push({type:"insertion",content:Yo(e,os("0x30"),this.getItemLabel(o.element,o.quantity))});continue;case os("0x1f"):case os("0xe"):n.push({type:os("0x1d"),content:Yo(e,os("0x15"),this[os("0x33")](o[os("0x27")],o.quantity))});continue;case os("0x32"):n[os("0x35")]({type:os("0x12"),content:Yo(e,os("0x2e"),this[os("0x33")](o[os("0x27")],o[os("0x5")]))});continue;case"removeContainer":n[os("0x35")]({type:os("0x1d"),content:Yo(e,os("0x25"),this[os("0x33")](o[os("0x27")],o.quantity))});continue}n[os("0x35")](o)}return n}}const rs=["document","checkAttribute","AlignmentEditing","getAttribute","editor","justify","has","getSelectedBlocks","format","_descriptionFactory","center","right","model","markBlockFormat","locale","TrackChangesEditing","from","value","get","FORMAT_ALIGN_TO_CENTER","FORMAT_ALIGN_TO_LEFT","alignment","change"];var is,xs;is=rs,xs=276,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this.editor,e=t[as("0xe")];if(!t.plugins[as("0x6")](as("0x2")))return;const n=t.plugins[as("0x12")](as("0xf"));n.enableCommand(as("0x15"),((e,o={})=>{let s=o.value;o[as("0x11")]||(s="ltr"===t.locale.contentLanguageDirection?"left":as("0xb"));const r=Array[as("0x10")](this[as("0x4")].model[as("0x0")].selection[as("0x7")]()).filter((t=>function(t,e,n){const o=t[as("0x3")](as("0x15"))||null;return e[as("0x1")](t,"alignment")&&n!=o}(t,this[as("0x4")][as("0xc")].schema,s)));t.model[as("0x16")]((()=>{for(const t of r)n[as("0xd")](t,{commandName:as("0x15"),commandParams:[{value:s}]})}))})),n[as("0x9")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0x15")==n.commandName){const t=n.commandParams[0][as("0x11")];return{type:as("0x8"),content:Yo(e,"*Format:* %0",function(t){switch(t){case"left":return Yo(e,as("0x14"));case"right":return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case as("0xa"):return Yo(e,as("0x13"));case as("0x5"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["isContent","start","elementEnd","model","writer","getItems","TrackChangesEditing","getCustomProperty","isAtEnd","previousPosition","test","get","insert","span","element","hasAttribute","mapper","listIndent","listItem","getWalker","includes","markerRange","isLimit","addClass","toViewElement","nextSibling","schema","createRangeOn","type","push","isBlock","item","markerName"];var ds,us;ds=ls,us=261,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x8")]())s[gs("0x12")](t)&&o[gs("0x20")](n[gs("0x1e")](s));return o}function fs(t){const e=[];if(t.is(gs("0x11"),gs("0x15"))){let n=t.nextSibling;for(;n&&n.is("element",gs("0x15"))&&n.getAttribute(gs("0x14"))>0;)e[gs("0x20")](n),n=n.nextSibling}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0xe")](gs("0x9"));return(s,r,i)=>{if(!i.consumable[gs("0xd")](r[gs("0x18")],s.name))return;const x=r[gs("0x18")][gs("0x16")](),a=r.markerRange[gs("0x4")],c=t[gs("0x6")][gs("0x1d")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x1")];u=u||c[gs("0x3")](e);const n=i[gs("0x13")][gs("0x1b")](e);if(n&&n[gs("0xa")]("addHighlight"))return;gs("0x5")==t[gs("0x1f")]&&c[gs("0x0")](e)&&!c[gs("0x19")](e)&&(e[gs("0x1c")]||a[gs("0xb")]?l&&l.parent==e||(l=e,m(t[gs("0xc")]),g=!0):d=d||t.previousPosition)}function m(t){const s=i[gs("0x7")].createUIElement(gs("0x10"),{class:"ck-suggestion-marker-"+e}),x=i[gs("0x13")].toViewPosition(t);n&&o.activeMarkers[gs("0x17")](r[gs("0x2")])&&i[gs("0x7")][gs("0x1a")]("ck-suggestion-marker--active",s),i[gs("0x7")][gs("0xf")](x,s),i.mapper.bindElementToMarker(s,r[gs("0x2")])}u||g||!d||m(d)}}const bs=["*Remove format:* %0","FORMAT_SUBSCRIPT","BoldEditing","FORMAT_ITALIC","format","value","ItalicEditing","StrikethroughEditing","italic","from","isCollapsed","SubscriptEditing","slice","locale","*Format:* %0","model","TrackChangesEditing","FORMAT_SUPERSCRIPT","superscript","document","markInlineFormat","registerDescriptionCallback","has","SuperscriptEditing","get","FORMAT_BOLD","FORMAT_UNDERLINE","CodeEditing","underline","commandParams","commands","forceValue","subscript","strikethrough","toLowerCase","_descriptionFactory","plugins","getRanges","selection"];var ps,Es;ps=bs,Es=472,function(t){for(;--t;)ps.push(ps.shift())}(++Es);const _s=function(t,e){return bs[t-=0]},Ts=[_s("0x25"),_s("0x2"),"UnderlineEditing",_s("0x17"),_s("0x3"),_s("0x7"),_s("0x13")];class Cs extends t.Plugin{afterInit(){const t=this.editor,e=t[_s("0xb")],n=t[_s("0x20")][_s("0x14")](_s("0xc")),o=t[_s("0x9")];for(const o of Ts){if(!t[_s("0x20")][_s("0x12")](o))continue;const s=o[_s("0x8")](0,-7)[_s("0x1e")](),r=t[_s("0x1a")][_s("0x14")](s);n.enableCommand(s,((t,o={})=>{const i=e[_s("0xf")][_s("0x22")];if(i[_s("0x6")])return void t(o);const x=void 0!==o.forceValue?o[_s("0x1b")]:!r[_s("0x1")];e.change((()=>{const t=Array[_s("0x5")](i[_s("0x21")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x10")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x1f")][_s("0x11")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[_s("0x19")][0].forceValue?{type:_s("0x0"),content:Yo(o,_s("0xa"),e)}:{type:_s("0x0"),content:Yo(o,_s("0x23"),e)}}))}s("bold",Yo(o,_s("0x15"))),s(_s("0x4"),Yo(o,_s("0x26"))),s(_s("0x18"),Yo(o,_s("0x16"))),s("code",Yo(o,"FORMAT_CODE")),s(_s("0x1d"),Yo(o,"FORMAT_STRIKETHROUGH")),s(_s("0x1c"),Yo(o,_s("0x24"))),s(_s("0xe"),Yo(o,_s("0xd")))}}const ys=["from","getSelectedBlocks","editor","commands","document","name","$root","model","parent","TrackChangesEditing","value","checkChild","BlockQuoteEditing","change","filter","locale","schema","forceValue","get","registerDescriptionCallback","markBlockFormat","blockQuote","commandParams","*Remove format:* %0","afterInit","*Format:* %0"];var ks,As;ks=ys,As=424,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x10")](){const t=this[vs("0x14")],e=t[vs("0x7")];if(!t.plugins.has(vs("0x4")))return;const n=t.plugins[vs("0xa")](vs("0x1")),o=this[vs("0x14")][vs("0x15")][vs("0xa")](vs("0xd"));n.enableCommand(vs("0xd"),((e,s={})=>{const r=this[vs("0x14")][vs("0x19")][vs("0x16")].selection,i=s&&void 0!==s[vs("0x9")]?s[vs("0x9")]:!o[vs("0x2")];let x=[];if(i){const e=Array[vs("0x12")](r[vs("0x13")]())[vs("0x6")]((t=>Ss(t)||function(t,e){const n=e.checkChild(t.parent,"blockQuote"),o=e[vs("0x3")]([vs("0x18"),vs("0xd")],t);return n&&o}(t,this.editor.model[vs("0x8")])));x=S(e,t[vs("0x19")])}else{const e=Array[vs("0x12")](r[vs("0x13")]()).filter((t=>Ss(t)));x=S(e,t[vs("0x19")])}t[vs("0x19")][vs("0x5")]((()=>{for(const t of x)n[vs("0xc")](t,{commandName:vs("0xd"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0xb")]((t=>{const{data:n}=t;if(n&&vs("0xd")==n.commandName){const t=Yo(e,"ELEMENT_BLOCK_QUOTE");return n[vs("0xe")][0][vs("0x9")]?{type:"format",content:Yo(e,vs("0x11"),t)}:{type:"format",content:Yo(e,vs("0xf"),t)}}}))}}function Ss(t){return vs("0xd")==t[vs("0x0")][vs("0x17")]}const Is=["enableCommand","get","TrackChangesEditing","ckbox","plugins","commands"];var Ls,Ns;Ls=Is,Ns=191,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const ws=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{afterInit(){const t=this.editor;t[ws("0x0")][ws("0x2")](ws("0x4"))&&t[ws("0x5")].get(ws("0x3"))[ws("0x1")](ws("0x4"))}}const Os=["editor","commands","plugins","checkChild","registerDescriptionCallback","formatBlock","codeBlock","get","from","locale","model","TrackChangesEditing","format","registerElementLabel","blockName","_descriptionFactory","enableCommand","*Format:* %0","label","language","languages","commandParams","markBlockFormat","indentCodeBlock","ELEMENT_CODE_BLOCK","afterInit","parent","name","value","find","getSelectedBlocks","config","CodeBlock","forceValue","*Remove format:* %0","isLimit"];var Fs,Ps;Fs=Os,Ps=273,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x4")](){const t=this[Ds("0xf")];if(!t.plugins.has(Ds("0xb")))return;const e=t[Ds("0x11")][Ds("0x16")](Ds("0x1a")),n=t[Ds("0x18")],o=t[Ds("0xa")][Ds("0x16")](Ds("0x15"))[Ds("0x23")],s=t[Ds("0x10")].get(Ds("0x15"));e.enableCommand(Ds("0x2")),e[Ds("0x1f")]("outdentCodeBlock"),e[Ds("0x1f")]("codeBlock",((n,r={})=>{const i=t.model,x=t[Ds("0x19")].document.selection,a=r&&void 0!==r[Ds("0xc")]?r[Ds("0xc")]:!s[Ds("0x7")];let c;r[Ds("0x22")]||(r[Ds("0x22")]=o[0][Ds("0x22")]),c=a?Array.from(x[Ds("0x9")]()).filter((t=>{return js(t)||(e=t,n=i.schema,!e.is("rootElement")&&!n[Ds("0xe")](e)&&n[Ds("0x12")](e[Ds("0x5")],"codeBlock"));var e,n})):Array[Ds("0x17")](x[Ds("0x9")]()).filter((t=>js(t)));const l=S(c,i);i.change((()=>{for(const t of l)e[Ds("0x1")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x1d")})}))})),e[Ds("0x1e")][Ds("0x1c")](Ds("0x15"),(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e._descriptionFactory[Ds("0x13")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x14")==s&&r&&Ds("0x15")==r.commandName){const t=r[Ds("0x0")][0][Ds("0x22")],s=e(o[Ds("0x8")]((e=>e.language===t))[Ds("0x21")]);return r[Ds("0x0")][0].forceValue?{type:Ds("0x1b"),content:Yo(n,Ds("0x20"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Yo(n,Ds("0xd"),Yo(n,Ds("0x3"),1))}}}))}}function js(t){return Ds("0x15")==t[Ds("0x6")]}const Us=["enableCommand","get","plugins","TrackChangesEditing","afterInit","editor","addCommentThread"];var Gs,Hs;Gs=Us,Hs=461,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x5")](){const t=this[zs("0x6")];t[zs("0x3")].has("CommentsEditing")&&t[zs("0x3")][zs("0x2")](zs("0x4"))[zs("0x1")](zs("0x0"))}}var Vs=n(181);const Ks=["showSuggestionHighlights","buffer","editing","isCollapsed","fromRange","enableCommand","forward","unbindElementFromMarkerName","commands","uiElement","merge","requires","unit","mapper","get","remove","high","end","bind","markerName","plugins","options","writer","setSelection","model","deleteForward","addMarker:suggestion:deletion","enqueueChange","removeMarker:suggestion:deletion","$graveyard","lock","start","batch","downcastDispatcher","rootName","createRange"];var qs,Xs;qs=Ks,Xs=352,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x13")](){return[Vs.Delete]}init(){const t=this.editor,e=t[$s("0x1c")][$s("0x16")]("TrackChangesEditing");e[$s("0xd")]("delete");const n=t[$s("0x10")][$s("0x16")]("deleteForward");e[$s("0xd")]($s("0x21"),((e,o={})=>{const s=t[$s("0x20")].createSelection(t[$s("0x20")].document.selection);s[$s("0xb")]&&t[$s("0x20")].modifySelection(s,{direction:$s("0xe"),unit:o[$s("0x14")]});const r=s.getFirstRange(),x=i.LiveRange[$s("0xc")](r);let a;e(o),a=$s("0x1")==x.root[$s("0x6")]?t[$s("0x20")].createRange(r[$s("0x3")]):t[$s("0x20")].createRange(x[$s("0x3")],x[$s("0x19")]),x.detach(),t[$s("0x20")][$s("0x23")](n[$s("0x9")][$s("0x4")],(t=>{n[$s("0x9")][$s("0x2")](),t[$s("0x1f")](t[$s("0x7")](a[$s("0x19")])),n.buffer.unlock()}))})),t[$s("0xa")][$s("0x5")].on($s("0x22"),hs(t,"merge"),{priority:$s("0x18")}),t.data[$s("0x5")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[$s("0x1d")][$s("0x8")]&&hs(t,$s("0x12"),{showActiveMarker:!1})[$s("0x1a")](this)(e,n,o)}),{priority:$s("0x18")}),t[$s("0xa")][$s("0x5")].on($s("0x0"),((t,e,n)=>{const o=n[$s("0x15")].markerNameToElements(e[$s("0x1b")]);if(o)for(const t of o)t.is($s("0x11"))&&(n[$s("0x15")][$s("0xf")](t,e[$s("0x1b")]),n[$s("0x1e")][$s("0x17")](t))}),{priority:$s("0x18")})}}const Qs=["numberedList","getAttribute","forceValue","ELEMENT_LIST_ITEM","*Change to:* %0","mergeListItemForward","splitListItemBefore","registerCustomCallback","listItemId","commands","end","bulletedList","detach","_descriptionFactory","commandName","deletion","ELEMENT_NUMBERED_LIST","plugins","markBlockFormat","listIndent","has","getFirstRange","findIndex","commandParams","add","nextSibling","schema","map","registerElementLabel","before","value","createRange","toUpperCase","DocumentListUtils","get","locale","documentList","change","splitListItemAfter","isObject","parent","length","slice","model","indentList","start","format","from","TrackChangesEditing","ELEMENT_","fromRange","push","DocumentListEditing","expandListBlocksToCompleteList","nodeAfter","mergeListItemBackward","getSelectedBlocks","refresh","setSelection","document","markMultiRangeBlockFormat","createPositionAt","outdentList","registerDescriptionCallback","after","listType","hasAttribute","enableCommand","selection","execute","*Format:* remove from %0","previousSibling"];var Zs,Ys;Zs=Qs,Ys=358,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[tr("0x16")](tr("0x36")))return;const e=t[tr("0x25")],n=t[tr("0x13")].get(tr("0x32")),o=t[tr("0x13")][tr("0x24")](tr("0x23"));function s(e){return()=>{const s=t[tr("0xb")][tr("0x24")](e);let r=Array[tr("0x31")](t[tr("0x2d")][tr("0x3d")][tr("0x46")][tr("0x3a")]());if(a(e)){r=o[tr("0x37")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t[tr("0x35")](e);r=t}t[tr("0x2d")][tr("0x27")]((()=>{n[tr("0x3e")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x20")]}],formatGroupId:tr("0x43")},[],tr("0x26"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x31")](t);const n=e[tr("0x18")]((t=>!t[tr("0x44")]("listItemId")));return n>-1&&(e=e[tr("0x2c")](0,n)),e}(t[tr("0x2d")][tr("0x3d")][tr("0x46")][tr("0x3a")]()),s=o[o[tr("0x2b")]-1],r=t[tr("0x2d")][tr("0x1c")][tr("0x29")](s)?tr("0x42"):tr("0xc"),i=t[tr("0x2d")][tr("0x21")](t.model[tr("0x3f")](o[0],"before"),t[tr("0x2d")][tr("0x3f")](s,r));t[tr("0x2d")][tr("0x27")]((()=>{n[tr("0x14")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[tr("0x1b")];for(;t&&t[tr("0x3")](tr("0x15"))>n[tr("0x3")](tr("0x15"));)e[tr("0x1a")](t),t=t[tr("0x1b")]}return Array[tr("0x31")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x2d")][tr("0x3d")][tr("0x46")].getSelectedBlocks().next()[tr("0x20")],s=t.model[tr("0x3f")](o,tr("0x1f")),r=t[tr("0x2d")].createPositionAt(o,0),i=t[tr("0x2d")][tr("0x21")](s,r);t[tr("0x2d")].change((()=>{n[tr("0x14")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x43")})}))}}function a(e){const n=t[tr("0xb")][tr("0x24")](tr("0xd")).value,o=t[tr("0xb")][tr("0x24")](tr("0x2"))[tr("0x20")];return tr("0x2")===e?n:o}n[tr("0x45")](tr("0x2"),s(tr("0x2"))),n[tr("0x45")](tr("0xd"),s(tr("0xd"))),n[tr("0x45")](tr("0x2e"),r(tr("0x2e"))),n[tr("0x45")](tr("0x40"),r("outdentList")),n[tr("0x45")](tr("0x28"),x("splitListItemAfter")),n.enableCommand(tr("0x8"),x("splitListItemBefore")),n[tr("0xf")][tr("0x1e")]((function(e){const n=!t[tr("0x2d")][tr("0x1c")][tr("0x29")](e),o=e[tr("0x1")],s=e[tr("0x1b")],r=e[tr("0x3")](tr("0xa")),i=!o||o[tr("0x3")](tr("0xa"))!==r,x=!s||s[tr("0x3")](tr("0xa"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[tr("0xf")][tr("0x41")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x10")]){case tr("0xd"):r=n[tr("0x19")][0][tr("0x4")],i=a(n.commandName),o=r?"*Format:* insert into %0":tr("0x0"),i&&(o=tr("0x6")),s={type:tr("0x30"),content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case"numberedList":r=n[tr("0x19")][0][tr("0x4")],i=a(n[tr("0x10")]),o=r?"*Format:* insert into %0":tr("0x0"),i&&(o=tr("0x6")),s={type:tr("0x30"),content:Yo(e,o,Yo(e,tr("0x12")))};break;case"indentList":o="*Indent:* %0",s={type:tr("0x30"),content:Yo(e,o,Yo(e,tr("0x5")))};break;case"outdentList":o=function(t){const e=t[tr("0x17")]();let n=e[tr("0x2f")].nodeAfter;for(;n&&e.containsItem(n);){if(n.getAttribute(tr("0x15"))>0)return!1;n=n[tr("0x1b")]}return!0}(t)?Yo(e,tr("0x0"),Yo(e,function(t){const e=t[tr("0x17")]()[tr("0x2f")][tr("0x38")];return tr("0x33")+e[tr("0x3")](tr("0x43"))[tr("0x22")]()+"_LIST"}(t))):Yo(e,"*Outdent:* %0",Yo(e,tr("0x5"))),s={type:tr("0x30"),content:o};break;case tr("0x39"):case tr("0x7"):!1===n.multipleBlocks&&(o="*Merge:* %0",s={type:tr("0x11"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))})}return s})),n._suggestionFactory[tr("0x9")]("formatBlock",tr("0x26"),"accept",(function(e,n){const o=[];for(let n of e)n[tr("0x2f")][tr("0x38")]===n[tr("0xc")][tr("0x2a")]&&(n=t[tr("0x2d")][tr("0x21")](t.model[tr("0x3f")](n[tr("0x2f")][tr("0x38")],0))),o[tr("0x35")](n);t[tr("0x2d")][tr("0x27")]((e=>{const s=t[tr("0x2d")][tr("0x3d")].selection,r=Array[tr("0x31")](s.getRanges())[tr("0x1d")]((t=>i.LiveRange[tr("0x34")](t)));e[tr("0x3c")](o),t.commands[tr("0x24")](n[tr("0x10")])[tr("0x3b")](),n[tr("0x19")][tr("0x35")]({forceDefaultExecution:!0}),t[tr("0x47")](n.commandName,...n[tr("0x19")]),e[tr("0x3c")](r);for(const t of r)t[tr("0xe")]()}))}))}}var nr=n(331);const or=["mapper","addMarker:suggestion:insertion","commands","init","editing","markerNameToElements","afterExecute","remove","createPositionAt","split","data","enableCommand","writer","high","model","removeMarker:suggestion:insertion","getFirstRange","unbindElementFromMarkerName","change","enter","document","markerName","plugins","ck-suggestion-marker-split","downcastDispatcher","fire","detach","getFirstPosition","fromRange","markInsertion","TrackChangesEditing","showSuggestionHighlights","setSelection"];var sr,rr;sr=or,rr=226,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get requires(){return[nr.Enter]}[ir("0x8")](){const t=this.editor,e=t[ir("0x1b")].get(ir("0x2")),n=t[ir("0x7")].get(ir("0x18"));e[ir("0x10")]("enter",(()=>{t[ir("0x13")][ir("0x17")]((o=>{const s=t[ir("0x13")][ir("0x19")].selection,r=s[ir("0x20")](),x=i.LiveRange[ir("0x0")](s[ir("0x15")]());if(n.enterBlock(o)){const n=t[ir("0x13")][ir("0xd")](r.parent.nextSibling,0),s=o.createRange(r,n);e[ir("0x1")](s)}else o[ir("0x4")](o.createRange(x.end));x[ir("0x1f")](),n[ir("0x1e")](ir("0xb"),{writer:o})}))})),t[ir("0x9")][ir("0x1d")].on(ir("0x6"),hs(t,"split"),{priority:ir("0x12")}),t[ir("0x9")].downcastDispatcher.on(ir("0x14"),((t,e,n)=>{const o=n[ir("0x5")][ir("0xa")](e.markerName);if(o)for(const t of o)t.hasClass(ir("0x1c"))&&(n[ir("0x5")][ir("0x16")](t,e[ir("0x1a")]),n[ir("0x11")][ir("0xc")](t))}),{priority:ir("0x12")}),t[ir("0xf")][ir("0x1d")].on(ir("0x6"),((e,n,o)=>{o.options[ir("0x3")]&&hs(t,ir("0xe"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:ir("0x12")})}}const ar=["_isInDeletionRange","replaceAll","end","TrackChangesEditing","enableCommand","string","findPrevious","createPositionAt","getMarkersGroup","find","replace","item","editor","findNext","createRange","findByTextCallback","get","suggestion:deletion","markers","handleFindCommand","model","plugins","start","getIntersection"];var cr,lr;cr=ar,lr=452,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{afterInit(){if(!this[dr("0x10")].plugins.has("FindAndReplaceEditing"))return;const t=this[dr("0x10")][dr("0x1")].get(dr("0x7"));t[dr("0x8")](dr("0xd"),this[dr("0x17")].bind(this)),t.enableCommand(dr("0x11")),t[dr("0x8")](dr("0xa")),t[dr("0x8")](dr("0xe")),t[dr("0x8")](dr("0x5"))}[dr("0x17")](t,e,n={}){const o=this[dr("0x10")][dr("0x1")][dr("0x14")]("FindAndReplaceUtils");void 0!==n&&t((t=>(dr("0x9")==typeof e?o[dr("0x13")](e,n):e)(t).filter((e=>!1===this[dr("0x4")](e,t[dr("0xf")])))),n)}[dr("0x4")](t,e){const n=this.editor[dr("0x0")][dr("0x12")](this.editor.model[dr("0xb")](e,t[dr("0x2")]),this[dr("0x10")][dr("0x0")][dr("0xb")](e,t[dr("0x6")]));for(const t of this[dr("0x10")][dr("0x0")][dr("0x16")][dr("0xc")](dr("0x15")))if(null!==n[dr("0x3")](t.getRange()))return!0;return!1}}const gr=["*Set font family:* %0","FontSize","TrackChangesEditing","editor","from","*Reset font color*","fontSize.options","fontBackgroundColor","config","get","locale","FontColorEditing","document","FontSizeEditing","label","FontFamilyEditing","*Set font color:* %0","title","toLowerCase","model","_descriptionFactory","enableCommand","find","getRanges","afterInit","*Set font size:* %0","fontSize","*Set font background color:* %0","registerDescriptionCallback","has","value","_enableCommand","commandParams","FontBackgroundColorEditing","selection","commandName","plugins","trim","isCollapsed","*Reset font background color*","format","change","normalizeSizeOptions","fontColor","*Reset font size*"];var mr,fr;mr=gr,fr=397,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},br=[{pluginName:hr("0x15"),commandName:hr("0x22")},{pluginName:hr("0x17"),commandName:"fontFamily"},{pluginName:hr("0x13"),commandName:hr("0x6")},{pluginName:hr("0x29"),commandName:hr("0xf")}];class pr extends t.Plugin{[hr("0x20")](){const t=this[hr("0xb")][hr("0x12")];for(const{pluginName:t,commandName:e}of br)this[hr("0xb")][hr("0x2c")][hr("0x25")](t)&&this[hr("0x27")](e);this[hr("0xb")][hr("0x2c")][hr("0x11")]("TrackChangesEditing")[hr("0x1c")][hr("0x24")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x22")==o[hr("0x2b")]){const e=o[hr("0x28")][0][hr("0x26")];if(e){const o=n(this[hr("0xb")][hr("0x2c")][hr("0x11")](hr("0x9"))[hr("0x5")](this[hr("0xb")].config[hr("0x11")](hr("0xe")))[hr("0x1e")]((t=>t[hr("0x1b")]==e))[hr("0x19")]).toLowerCase();return{type:hr("0x3"),content:Yo(t,hr("0x21"),o)}}return{type:hr("0x3"),content:Yo(t,hr("0x7"))}}if("fontFamily"==o.commandName){const e=o[hr("0x28")][0][hr("0x26")];return e?{type:hr("0x3"),content:Yo(t,hr("0x8"),e)}:{type:"format",content:Yo(t,"*Reset font family*")}}if(hr("0x6")==o[hr("0x2b")]){const e=o[hr("0x28")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0xb")][hr("0x10")][hr("0x11")]("fontColor.colors"))[hr("0x1e")]((t=>t[hr("0x1b")]==e));let r=e,i="";return o&&(r=o[hr("0x16")],i=n(r)[hr("0x1a")]()),{type:"format",content:Yo(t,hr("0x18"),i)[hr("0x0")](),color:{value:e,title:i||r}}}return{type:hr("0x3"),content:Yo(t,hr("0xd"))}}if(hr("0xf")==o[hr("0x2b")]){const e=o[hr("0x28")][0][hr("0x26")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x10")][hr("0x11")]("fontBackgroundColor.colors"))[hr("0x1e")]((t=>t[hr("0x1b")]==e));let r=e,i="";return o&&(r=o[hr("0x16")],i=n(r)[hr("0x1a")]()),{type:hr("0x3"),content:Yo(t,hr("0x23"),i)[hr("0x0")](),color:{value:e,title:i||r}}}return{type:hr("0x3"),content:Yo(t,hr("0x2"))}}}}))}_enableCommand(t){const e=this[hr("0xb")];e.plugins[hr("0x11")]("TrackChangesEditing")[hr("0x1d")](t,((n,o={})=>{const s=e[hr("0x1b")][hr("0x14")][hr("0x2a")],r=o[hr("0x26")];s[hr("0x1")]?n(o):e[hr("0x1b")][hr("0x4")]((()=>{const n=Array[hr("0xc")](s[hr("0x1f")]());for(const o of n){const n=r?[o]:ms(t,o,e.model);for(const o of n)e.plugins[hr("0x11")](hr("0xa")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["push","isCollapsed","commandParams","TrackChangesEditing","fontSize.options","markInlineFormat","keys","config","fontSize","_descriptionFactory","model","fontBackgroundColor","toLowerCase","editor","*Set format to:* %0","backward","getFirstPosition","find","commands","getRanges","document","locale","format","copyFormat","forward","boolean","isBlock","modifySelection","change","word","normalizeSizeOptions","createSelection","*Remove all formatting*","fontColor.colors","afterInit","pasteFormat","registerDescriptionCallback","entries","createRange","get","enableCommand","getLastPosition","slice","getAttributes","toUpperCase","label","title","join","charAt","getItems","plugins"];var _r,Tr;_r=Er,Tr=316,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x18")](){const t=this[Cr("0x3")],n=t[Cr("0x0")],o=n[Cr("0xa")].selection,s=t[Cr("0x28")].get(Cr("0x2c")),r=t[Cr("0xb")],i=t[Cr("0x8")][Cr("0x1d")](Cr("0xd")),x=t.commands[Cr("0x1d")]("pasteFormat");i&&x&&(s[Cr("0x1e")](Cr("0x19"),((t,r={})=>{const i=r;n[Cr("0x12")]((()=>{const t=Array.from(o[Cr("0x9")]()),r=o[Cr("0x2a")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x21")]()){const t=e.getAttributeProperties(n);t&&t.isFormatting&&(yield n)}}(t,n));for(const e of t[Cr("0x9")]())for(const t of e[Cr("0x27")]())!n[Cr("0x10")](t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n.schema))||0!==Object[Cr("0x2f")](i).length)for(const t of r)s[Cr("0x2e")](t,{commandName:Cr("0x19"),commandParams:[i]})}))})),s[Cr("0x32")][Cr("0x1a")]((e=>{const{data:n}=e;if(n&&Cr("0x19")===n.commandName){const e=[],o=n[Cr("0x2b")][0];for(const[n,s]of Object[Cr("0x1b")](o))e[Cr("0x29")](Ar(t,n,s));return e.length?{type:Cr("0xc"),content:Yo(r,Cr("0x4"),e[Cr("0x25")](", "))}:{type:Cr("0xc"),content:Yo(r,Cr("0x16"))}}})),t.plugins.get("TrackChangesEditing").enableCommand("copyFormat"))}}function kr(t,e){const n=t[Cr("0x15")](e);t.modifySelection(n,{unit:Cr("0x13"),direction:Cr("0x5")});const o=n[Cr("0x6")]();t[Cr("0x11")](n,{unit:Cr("0x13"),direction:Cr("0xe")});const s=n[Cr("0x1f")]();return t[Cr("0x1c")](o,s)}function Ar(t,e,n){const o=t[Cr("0xb")].t,r=e.split(/(?=[A-Z])/)[Cr("0x25")](" "),i=o(r[Cr("0x26")](0)[Cr("0x22")]()+r[Cr("0x20")](1))[Cr("0x2")]();if(Cr("0xf")==typeof n)return i;if("fontColor"===e||Cr("0x1")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x30")][Cr("0x1d")](Cr("0x17")))[Cr("0x7")]((t=>t[Cr("0x0")]==n));return i+" ("+(e?o(e[Cr("0x23")]).toLowerCase():n)+")"}if(Cr("0x31")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x28")][Cr("0x1d")]("FontSize")[Cr("0x14")](t[Cr("0x30")][Cr("0x1d")](Cr("0x2d")))[Cr("0x7")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x24")])[Cr("0x2")]():n)+")"}return i+" ("+n+")"}const vr=["plugins","ELEMENT_HEADING","markBlockFormat","format","match","from","document","isObject","afterInit","registerElementLabel","change","config","checkChild","getSelectedBlocks","title","model","HeadingEditing","commandName","selection","schema","blockName","formatBlock","commandParams","get","heading.options","heading","registerDescriptionCallback","value","*Change to:* %0","locale","_descriptionFactory","editor"];var Rr,Sr;Rr=vr,Sr=158,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0xa")](){const t=this[Ir("0x1")],e=t[Ir("0x1f")],n=t[Ir("0xd")][Ir("0x19")](Ir("0x1a"));if(!t[Ir("0x2")].has(Ir("0x12")))return;const o=t.plugins.get("TrackChangesEditing");o.enableCommand(Ir("0x1b"),((e,n)=>{const s=n[Ir("0x1d")],r=Array[Ir("0x7")](this.editor[Ir("0x11")][Ir("0x8")][Ir("0x14")][Ir("0xf")]()).filter((t=>{return e=t,n=s,(o=this[Ir("0x1")][Ir("0x11")][Ir("0x15")])[Ir("0xe")](e.parent,n)&&!o[Ir("0x9")](e)&&e.name!=n;var e,n,o}));t[Ir("0x11")][Ir("0xc")]((()=>{for(const t of r)o[Ir("0x4")](t,{commandName:"heading",commandParams:[n],formatGroupId:Ir("0x16")},fs(t))}))}));for(const t of n)"paragraph"!=t[Ir("0x11")]&&o[Ir("0x0")][Ir("0xb")](t[Ir("0x11")],(e=>{const n=Nr(t[Ir("0x11")]);return null!==n?s(e,n):r(e,t[Ir("0x10")])}));function s(t,n){return Yo(e,Ir("0x3"),[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Ir("0x0")][Ir("0x1c")]((t=>{const{type:o,data:i}=t;if(Ir("0x17")==o&&i&&"heading"==i[Ir("0x13")]){const t=i[Ir("0x18")][0][Ir("0x1d")],o=Nr(t);if(null!==o)return{type:Ir("0x5"),content:Yo(e,Ir("0x1e"),s(1,o))};const x=n.find((e=>e.model===t))[Ir("0x10")];return{type:Ir("0x5"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x6")](/^heading(\d+)$/);return e?e[1]:null}const wr=["value","getRanges","getAttribute","createRange","change","commandParams","plugins","getFirstPosition","item","config","isCollapsed","model","document","find","format","commandName","HighlightEditing","push","get","TrackChangesEditing","markInlineFormat","hasAttribute","enableCommand","has","highlight.options","editor","highlight","toLowerCase","registerDescriptionCallback","color"];var Mr,Or;Mr=wr,Or=426,function(t){for(;--t;)Mr.push(Mr.shift())}(++Or);const Fr=function(t,e){return wr[t-=0]};class Pr extends t.Plugin{afterInit(){const t=this[Fr("0x13")];if(!t[Fr("0x0")][Fr("0x11")](Fr("0xa")))return;const e=t[Fr("0x0")][Fr("0xc")](Fr("0xd"));e[Fr("0x10")]("highlight",((n,o={})=>{const s=t[Fr("0x5")][Fr("0x6")].selection,r=s[Fr("0x1a")](Fr("0x14"));let i=o[Fr("0x18")],x=[];if(s[Fr("0x4")]){const e=s[Fr("0x1")]();if(!s[Fr("0xf")](Fr("0x14")))return void n(o);{const n=t=>t[Fr("0x2")][Fr("0x1a")](Fr("0x14"))===r,o=e.getLastMatchingPosition(n,{direction:"backward"}),s=e.getLastMatchingPosition(n);x=[t.model[Fr("0x1b")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x19")]())i?x[Fr("0xb")](e):x[Fr("0xb")](...ms(Fr("0x14"),e,t[Fr("0x5")]));t[Fr("0x5")][Fr("0x1c")]((()=>{for(const t of x)e[Fr("0xe")](t,{commandName:Fr("0x14"),commandParams:[{value:i}]})}))}));const n=t.locale;e._descriptionFactory[Fr("0x16")]((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Fr("0x14")==s[Fr("0x9")]){const e=n.t,o=s[Fr("0x1d")][0][Fr("0x18")];if(o){const s=t[Fr("0x3")][Fr("0xc")](Fr("0x12"))[Fr("0x7")]((t=>t[Fr("0x5")]==o)),r=e(s.title)[Fr("0x15")]();return{type:"format",content:Yo(n,"*Set highlight:* %0",r),color:{value:s[Fr("0x17")],title:s.title}}}return{type:Fr("0x8"),content:Yo(n,"*Remove highlight*",Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["TrackChangesEditing","div","horizontalLine","locale","createContainerElement","editor","has","showSuggestionHighlights","createEmptyElement","afterInit","ck-horizontal-line","addClass","_descriptionFactory","for","plugins","HorizontalLineEditing","insert"];var Br,jr;Br=Dr,jr=443,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x8")](){const t=this[Ur("0x4")];if(!t[Ur("0xd")][Ur("0x5")](Ur("0xe")))return;t[Ur("0xd")].get(Ur("0x10")).enableCommand("horizontalLine");const e=t[Ur("0xd")].get(Ur("0x10")),n=t[Ur("0x2")];e[Ur("0xb")].registerElementLabel("horizontalLine",(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t.conversion[Ur("0xc")]("dataDowncast").elementToStructure({model:Ur("0x1"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x6")])return null;const o=e[Ur("0x3")](Ur("0x0")),s=e[Ur("0x7")]("hr");return e[Ur("0xa")](Ur("0x9"),o),e[Ur("0xf")](e.createPositionAt(o,0),s),o},converterPriority:"high"})}}const Hr=["element","editing","get","format","enableCommand","markBlockFormat","_descriptionFactory","getCustomProperty","document","htmlEmbed","ELEMENT_HTML_EMBED","commandName","editor","TrackChangesEditing","locale","getSelectedElement","has","change","getAttribute","rawHtml","rawHtmlApi","plugins","selection","registerElementLabel","HtmlEmbed"];var zr,Wr;zr=Hr,Wr=355,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this[Vr("0x7")];if(!t[Vr("0x10")][Vr("0xb")](Vr("0x13")))return;const e=t[Vr("0x10")][Vr("0x16")](Vr("0x8")),n=t[Vr("0x9")],o=t[Vr("0x15")].view[Vr("0x3")][Vr("0x11")];e[Vr("0x1")][Vr("0x12")]("rawHtml",(t=>Yo(n,Vr("0x5"),t))),t[Vr("0x10")][Vr("0x16")](Vr("0x8"))[Vr("0x18")](Vr("0x4"),((n,s)=>{const r=t.model,i=r[Vr("0x3")][Vr("0x11")];r[Vr("0xc")]((()=>{const t=function(t){const e=t[Vr("0xa")]();return e&&e.is(Vr("0x14"),Vr("0xe"))?t[Vr("0xa")]():null}(i);if(!t)return void n(null);const r=t[Vr("0xd")]("value")||"";void 0!==s&&s!==r&&(e[Vr("0x0")](t,{commandName:"htmlEmbed",commandParams:[s]}),o[Vr("0xa")]()[Vr("0x2")](Vr("0xf")).cancel())}))})),e[Vr("0x1")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Vr("0x4")==e[Vr("0x6")]){const t=Yo(n,Vr("0x5"));return{type:Vr("0x17"),content:Yo(n,"*Change %0 content*",t)}}}))}}const qr=["backward","formatInline","hasSuggestion","formatBlock","discard","Block image to inline image","getSuggestionCallback","next","imageTextAlternative","get","newRange","title","imageStyle","*Set image text alternative:* %0","ImageEditing","markBlockFormat","caption","isInContent","_suggestionFactory","isEqual","imageTypeInline","registerCustomCallback","imageCaption","commandName","editor","commandParams","imageStylePreApply","author","from","toLowerCase","*Remove image text alternative*","_splitMarkerName","*Format:* %0","afterInit","getClosestSelectedImageElement","FORMAT_SIDE_IMAGE","*Reset image width*","registerElementLabel","forceDefaultExecution","_descriptionFactory","normalizedStyles","createRangeOn","Users","convertBlockImageToInline","toNext","locale","previous","accept","model","isBlockImage","selection","resizeImage","change","plugins","forEach","hasAttribute","end","refresh","detach","registerDescriptionCallback","createRange","value","*Set image width:* %0","markInlineFormat","element","imageStylePostApply","format","isCollapsed","deletion","enableCommand","document","commandReversedParams","convertInlineImageToBlock","subType","getContainedElement","join","isOwn","isBefore","fromPosition","toPrevious","removeObject","markInsertion","TrackChangesEditing","getSuggestion","uploadImage","has","getAttribute","head","getFirstRange","imageTypeBlock","type","getNearestSelectionRange","toggleImageCaption","width","ImageUtils","commands","discardSuggestion","filter","ImageBlockEditing","findIndex","insertImage","getSuggestions","isInlineImage","alt","ImageInlineEditing","name","side","length","ImageStyleEditing","addObject","getCaptionFromImageModelElement","newValue","chain","suggestion","insertion","start"];var Xr,$r;Xr=qr,$r=261,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x4")](){const t=this[Jr("0x6f")];if(!t.plugins[Jr("0x38")](Jr("0x65")))return;const n=t[Jr("0x18")][Jr("0x60")](Jr("0x35")),o=t[Jr("0x18")][Jr("0x60")](Jr("0x41")),s={},r=t[Jr("0x10")];if(n[Jr("0x28")](Jr("0x47")),n[Jr("0xa")][Jr("0x8")]("imageBlock",(t=>Yo(r,"ELEMENT_IMAGE",t))),n._descriptionFactory[Jr("0x8")]("imageInline",(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[Jr("0xa")].registerElementLabel(Jr("0x67"),(()=>Yo(r,"ELEMENT_CAPTION"))),t[Jr("0x18")][Jr("0x38")]("ImageUploadEditing")&&n[Jr("0x28")](Jr("0x37")),t[Jr("0x18")][Jr("0x38")](Jr("0x45"))&&t[Jr("0x18")][Jr("0x38")](Jr("0x4b"))&&(n.enableCommand(Jr("0x6b"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x13")][Jr("0x29")].selection);t[Jr("0x13")][Jr("0x17")]((()=>{n[Jr("0x66")](r,{commandName:"imageTypeInline",commandParams:[s]},[],Jr("0xe"))}))})),n[Jr("0x28")](Jr("0x3c"),((e,s)=>{t[Jr("0x13")].change((r=>{let x=o[Jr("0x5")](t.model[Jr("0x29")][Jr("0x15")]),a=r[Jr("0xc")](x);const c=i.LivePosition[Jr("0x31")](a.start,Jr("0x32")),l=i.LivePosition[Jr("0x31")](a[Jr("0x1b")],Jr("0xf"));n[Jr("0x9")]((()=>e(s))),x=o[Jr("0x5")](t.model.document.selection),a=r[Jr("0xc")](x);const d=r.createRange(c,l);c.detach(),l[Jr("0x1d")](),n[Jr("0x66")](x,{commandName:"imageTypeInline",commandParams:[]},[],Jr("0x2b")),d[Jr("0x56")].isBefore(a[Jr("0x56")])&&n[Jr("0x34")](r.createRange(d[Jr("0x56")],a[Jr("0x56")]),Jr("0x2b")),a.end[Jr("0x30")](d.end)&&n.markInsertion(r[Jr("0x1f")](a.end,d[Jr("0x1b")]),"convertInlineImageToBlock")}))})),n[Jr("0x69")][Jr("0x6c")]("formatBlock",Jr("0x2b"),Jr("0x2e"),(()=>!1)),n[Jr("0x69")][Jr("0x6c")](Jr("0x5a"),"convertInlineImageToBlock",Jr("0x12"),(()=>!1)),n[Jr("0x69")].registerCustomCallback(Jr("0x5a"),Jr("0x2b"),Jr("0x5b"),n[Jr("0x69")][Jr("0x5d")](Jr("0x5a"),"",Jr("0x12"))),n[Jr("0x69")].registerCustomCallback(Jr("0x55"),Jr("0x2b"),Jr("0x2e"),(()=>!1)),n._suggestionFactory[Jr("0x6c")]("insertion",Jr("0x2b"),"discard",(([e])=>{const o=n[Jr("0x69")][Jr("0x5d")](Jr("0x55"),"",Jr("0x5b"));let s=e[Jr("0x56")],r=e[Jr("0x1b")];const i=t[Jr("0x13")].schema[Jr("0x3e")](s,Jr("0x57")),x=t[Jr("0x13")].schema[Jr("0x3e")](r,"forward");i.isCollapsed&&(s=i[Jr("0x56")]),x[Jr("0x26")]&&(r=x[Jr("0x1b")]),o([t[Jr("0x13")][Jr("0x1f")](s,r)])})),n[Jr("0x69")].registerCustomCallback(Jr("0x5a"),Jr("0x2b"),Jr("0x53"),c),n[Jr("0x69")].registerCustomCallback(Jr("0x55"),Jr("0x2b"),Jr("0x53"),c)),t[Jr("0x18")][Jr("0x38")]("ImageCaptionEditing")&&(n[Jr("0x28")](Jr("0x3f"),((e,s)=>{const r=t[Jr("0x18")][Jr("0x60")]("ImageCaptionUtils");let i=o[Jr("0x5")](t[Jr("0x13")].document[Jr("0x15")]),x=r[Jr("0x51")](i);t[Jr("0x13")][Jr("0x17")]((()=>{if(x)return void n.markDeletion(t[Jr("0x13")].createRangeOn(x));const a=o.isBlockImage(i);e(s),i=o.getClosestSelectedImageElement(t[Jr("0x13")][Jr("0x29")][Jr("0x15")]),x=r[Jr("0x51")](i),n[Jr("0x34")](t[Jr("0x13")][Jr("0xc")](x),a?null:Jr("0x6d"))}))})),n[Jr("0x69")][Jr("0x6c")](Jr("0x55"),Jr("0x6d"),Jr("0x53"),c)),t.plugins[Jr("0x38")](Jr("0x4f"))){n[Jr("0x28")]("imageStyle",((s,r)=>{const i=t.plugins[Jr("0x60")](Jr("0xd")).me,x=t.commands[Jr("0x60")](Jr("0x63"));let a=o[Jr("0x5")](t[Jr("0x13")].document.selection),c=t[Jr("0x13")].createRangeOn(a),l=x[Jr("0x20")];if(l==r[Jr("0x20")])return;const d={commandName:Jr("0x63"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x13")][Jr("0x17")]((()=>{if(n[Jr("0x48")]()[Jr("0x44")]((t=>t[Jr("0x68")]&&i==t[Jr("0x72")]&&(Jr("0x5a")==t[Jr("0x3d")]||Jr("0x58")==t.type)&&(Jr("0x71")==t[Jr("0x2c")]||Jr("0x24")==t[Jr("0x2c")])&&t[Jr("0x3b")]().isEqual(c)))[Jr("0x19")]((t=>n[Jr("0x43")](t[Jr("0x3a")]))),a=o[Jr("0x5")](t[Jr("0x13")][Jr("0x29")][Jr("0x15")]),c=t.model[Jr("0xc")](a),x[Jr("0x1c")](),t[Jr("0x42")][Jr("0x60")]("imageTypeInline")[Jr("0x1c")](),t[Jr("0x42")][Jr("0x60")](Jr("0x3c"))[Jr("0x1c")](),l=x[Jr("0x20")],l!=r[Jr("0x20")])return o[Jr("0x49")](a)&&x.shouldConvertImageType(r[Jr("0x20")],a)?(s(r),a=o[Jr("0x5")](t[Jr("0x13")][Jr("0x29")][Jr("0x15")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x71"))):void(o[Jr("0x14")](a)?n[Jr("0x66")](a,d,[],Jr("0x24")):n[Jr("0x22")](c,d,Jr("0x24")))}))}));for(const e of t[Jr("0x18")][Jr("0x60")]("ImageStyleEditing")[Jr("0xb")])s[e[Jr("0x4c")]]=e[Jr("0x62")][Jr("0x0")]();n._suggestionFactory[Jr("0x6c")](Jr("0x5a"),"imageStylePreApply",Jr("0x2e"),(()=>!1)),n[Jr("0x69")][Jr("0x6c")]("formatBlock",Jr("0x24"),"join",(()=>!1)),n[Jr("0x69")][Jr("0x6c")](Jr("0x58"),"imageStylePostApply",Jr("0x2e"),(()=>!1)),n[Jr("0x69")][Jr("0x6c")](Jr("0x5a"),Jr("0x71"),Jr("0x12"),(()=>!1)),n._suggestionFactory.registerCustomCallback(Jr("0x5a"),Jr("0x71"),Jr("0x5b"),((t,e)=>{n[Jr("0x69")][Jr("0x5d")]("formatBlock","",Jr("0x12"))(t,{commandName:e.commandName,commandParams:e[Jr("0x2a")]})})),n._suggestionFactory[Jr("0x6c")](Jr("0x5a"),Jr("0x71"),"chain",c)}const x=[{type:Jr("0x5a"),subType:Jr("0x71")},{type:Jr("0x55"),subType:Jr("0x6d")},{type:"formatBlock",subType:Jr("0x2b")},{type:Jr("0x55"),subType:Jr("0x2b")}];function a(t,e){const s=x[Jr("0x46")]((({type:e,subType:n})=>t[Jr("0x3d")]==e&&t[Jr("0x2c")]==n)),r=x[Jr("0x46")]((({type:t,subType:n})=>e[Jr("0x3d")]==t&&e[Jr("0x2c")]==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e[Jr("0x3b")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,Jr("0x55"))[Jr("0x44")]((({suggestion:t,meta:e})=>e[Jr("0x2f")]&&"convertInlineImageToBlock"==t[Jr("0x2c")]));if(t[Jr("0x4e")]>1&&a[Jr("0x1b")][Jr("0x6a")](i[Jr("0x56")]))return!0;if(1==t[Jr("0x4e")]&&(i.start[Jr("0x6a")](a[Jr("0x1b")])||i[Jr("0x1b")][Jr("0x6a")](a[Jr("0x56")])))return!0}if(3==s&&3==r&&i[Jr("0x56")][Jr("0x30")](a[Jr("0x56")])){const t=i[Jr("0x1b")].nodeAfter,e=a[Jr("0x56")].nodeBefore;return o[Jr("0x14")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x13")][Jr("0x29")].registerPostFixer((()=>{let e=!1;const s=Array[Jr("0x73")](t[Jr("0x13")][Jr("0x29")].differ.getChangedMarkers());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x2")](t);if(Jr("0x54")==s&&n[Jr("0x59")](a)){if(Jr("0x5a")==i&&(Jr("0x71")==x||"imageStylePostApply"==x)){const t=n[Jr("0x36")](a);if(r.newRange){const s=t[Jr("0x3b")]().getContainedElement();if(o[Jr("0x14")](s))continue;n[Jr("0x43")](t),e=!0}}if(Jr("0x55")==i&&Jr("0x6d")==x&&!r[Jr("0x61")]){const t=n[Jr("0x36")](a);t[Jr("0x5e")]&&t[Jr("0x5e")].isInContent&&(n[Jr("0x43")](t[Jr("0x5e")]),e=!0)}}}return e})),t[Jr("0x18")][Jr("0x38")]("ImageResize")&&n[Jr("0x28")](Jr("0x16"),((e,s)=>{const r=o.getClosestSelectedImageElement(t.model.document.selection);r[Jr("0x39")](Jr("0x40"))!=s[Jr("0x40")]&&t[Jr("0x13")][Jr("0x17")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x16"),commandParams:[s]})}))})),t[Jr("0x18")][Jr("0x38")]("ImageTextAlternativeEditing")&&n[Jr("0x28")](Jr("0x5f"),((e,s)=>{const r=o[Jr("0x5")](t[Jr("0x13")].document.selection);(r[Jr("0x1a")](Jr("0x4a"))?r[Jr("0x39")](Jr("0x4a")):"")!=s[Jr("0x52")]&&t[Jr("0x13")][Jr("0x17")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x5f"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x1e")]((t=>{if(x.find((({type:e,subType:n})=>t.type==e&&t[Jr("0x2c")]==n)))return t[Jr("0x11")]?{}:void 0})),n._descriptionFactory.registerDescriptionCallback((t=>{if(Jr("0x55")==t[Jr("0x3d")]||Jr("0x27")==t.type){const e=t[Jr("0x2d")]();if(e&&e.is(Jr("0x23"),"caption"))return{type:"insertion"==t[Jr("0x3d")]?Jr("0x50"):Jr("0x33"),element:e,quantity:1}}})),n._descriptionFactory[Jr("0x1e")]((t=>Jr("0x5a")==t[Jr("0x3d")]&&"convertInlineImageToBlock"==t[Jr("0x2c")]?{type:"format",content:"Inline image to block image"}:Jr("0x5a")==t.type&&Jr("0xe")==t.subType?{type:Jr("0x25"),content:Jr("0x5c")}:void 0)),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(Jr("0x63")==e.commandName){const t=e[Jr("0x70")][0][Jr("0x20")];return n=Jr("0x4d")===t?Yo(r,Jr("0x6")):s[t]||t,{type:Jr("0x25"),content:Yo(r,Jr("0x3"),n)}}if(Jr("0x5f")==e[Jr("0x6e")]){const t=e[Jr("0x70")][0][Jr("0x52")];return t?{type:Jr("0x25"),content:Yo(r,Jr("0x64"),'"'+t+'"')}:{type:Jr("0x25"),content:Yo(r,Jr("0x1"))}}if(Jr("0x16")==e[Jr("0x6e")]){const t=e[Jr("0x70")][0].width;return t?{type:"format",content:Yo(r,Jr("0x21"),t)}:{type:"format",content:Yo(r,Jr("0x7"))}}}var n}))}}const Zr=["handleSuggestionDescription","document","change","subType","formatBlock","getSuggestionCallback","enableCommand","*Format:* replace image URL","TrackChangesEditing","editor","plugins","selection","model","_suggestionFactory","source","commandName","replaceImageSource","data","get","locale","getSuggestions","discard","author","handleReplaceImageCommand","registerCustomCallback","has","markBlockFormat","accept","getSelectedElement","getAttribute"];var Yr,ti;Yr=Zr,ti=327,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0xc")][ei("0xd")][ei("0x1c")]("ImageEditing"))return;const t=this[ei("0xc")].plugins.get(ei("0xb"));t[ei("0x9")](ei("0x13"),((t,e)=>this[ei("0x1a")](t,e))),t[ei("0x10")][ei("0x1b")](ei("0x7"),ei("0x13"),ei("0x0"),t[ei("0x10")][ei("0x8")](ei("0x7"),null,"discard")),t._suggestionFactory.registerCustomCallback(ei("0x7"),ei("0x13"),ei("0x18"),t[ei("0x10")][ei("0x8")]("formatBlock",null,"accept")),t._descriptionFactory.registerDescriptionCallback((t=>this[ei("0x3")](t)))}[ei("0x1a")](t,e){const n=this[ei("0xc")].plugins[ei("0x15")](ei("0xb")),o=this[ei("0xc")][ei("0xf")][ei("0x4")][ei("0xe")][ei("0x1")]();this[ei("0xc")][ei("0xf")][ei("0x5")]((()=>{let s=o[ei("0x2")]("src");const r=this[ei("0xc")][ei("0xd")][ei("0x15")]("Users").me;for(const t of n[ei("0x17")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0x13")===t[ei("0x6")]&&e===o){t[ei("0x19")]!==r&&t[ei("0x18")](),s=t[ei("0x14")].commandParams[0][ei("0x11")];break}}t(e),n[ei("0x1d")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ei("0x13"))}))}[ei("0x3")](t){const{data:e}=t;if(e&&ei("0x13")===e[ei("0x12")]){const t=ei("0xa");return{type:"format",content:Yo(this[ei("0xc")][ei("0x16")],t)}}}}const oi=["track_changes","dataInsert","lowest","_setSuggestionData","value","get","afterInit","_trackChangesExecuted","editor","enableCommand","_trackChangesValueDuringImport","_handleImportedData","commands","TrackChangesEditing","plugins","listenTo","execute","trackChanges","importWord"];var si,ri;si=oi,ri=196,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0x4")]=!1,this[ii("0x1")]=!1}[ii("0x0")](){const t=this.editor,e=t[ii("0x6")][ii("0x12")]("importWord"),n=t[ii("0x6")].get(ii("0xb"));e&&(e.on(ii("0xa"),((t,[,e])=>{this._trackChangesValueDuringImport=n[ii("0x11")],e.collaboration_features[ii("0xd")]=!this[ii("0x4")]}),{priority:"high"}),this[ii("0x9")](e,ii("0xe"),this._handleImportedData.bind(this)),this[ii("0x9")](e,ii("0xe"),(()=>{this[ii("0x1")]&&(n[ii("0xa")](),this[ii("0x1")]=!1)}),{priority:ii("0xf")}),t[ii("0x8")][ii("0x12")]("TrackChangesEditing")[ii("0x3")](ii("0xc")))}[ii("0x5")](t,e){const{suggestions:n}=e,o=this[ii("0x2")][ii("0x6")][ii("0x12")](ii("0xb")),s=o[ii("0x11")];this[ii("0x4")]!==s&&(o[ii("0xa")](),this._trackChangesExecuted=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x2")][ii("0x8")][ii("0x12")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0xc")}}};this[ii("0x2")][ii("0x8")][ii("0x12")](ii("0x7"))[ii("0x10")](s)}))}}const ai=["get","markBlockFormat","model","checkAttribute","TrackChangesEditing","outdentBlock","filter","indentBlock","commandName","format","*Outdent:* %0","from","locale","plugins","_descriptionFactory","selection","IndentEditing","getSelectedBlocks","enableCommand","*Indent:* %0","registerDescriptionCallback","getItems","IndentBlock","editor","has","document","indent","outdent","afterInit","blockIndent"];var ci,li;ci=ai,li=195,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0xd")](){const t=this[di("0x8")],e=t[di("0x1c")][di("0xf")](di("0x13"));t.plugins.has(di("0x1"))&&(e[di("0x3")](di("0xb")),e[di("0x3")](di("0xc")));const n=t[di("0x1b")];if(t.plugins[di("0x9")](di("0x7"))){for(const n of[di("0x16"),di("0x14")])e[di("0x3")](n,(()=>{const o=Array[di("0x1a")](this[di("0x8")][di("0x11")][di("0xa")][di("0x0")][di("0x2")]())[di("0x15")]((t=>this.editor[di("0x11")].schema[di("0x12")](t,di("0xe"))));t[di("0x11")].change((()=>{for(const t of o)e[di("0x10")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x16")})}))}));e[di("0x1d")][di("0x5")]((t=>{const{data:o}=t;if(!o)return;if(di("0x16")!=o.commandName&&di("0x14")!=o[di("0x17")])return;const s=t[di("0x6")]()[0],r=e._descriptionFactory.getItemLabel(s);return di("0x16")==o[di("0x17")]?{type:di("0x18"),content:Yo(n,di("0x4"),r)}:di("0x14")==o[di("0x17")]?{type:di("0x18"),content:Yo(n,di("0x19"),r)}:void 0}))}}}var gi,mi,fi=["plugins","get","init","editor","enableCommand"];gi=fi,mi=454,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class bi extends t.Plugin{static get requires(){return[Vs.Input]}[hi("0x3")](){this[hi("0x4")][hi("0x1")][hi("0x2")]("TrackChangesEditing")[hi("0x0")]("input")}}const pi=["plugins","afterInit","commandName","change","_descriptionFactory","unlink","getAttribute","linkHref","hasAttribute","get","link","getFirstPosition","selection","format","isCollapsed","TrackChangesEditing","markInlineFormat","from","has","model","locale","editor","enableCommand","getFirstRange","LinkEditing","getRanges"];var Ei,_i;Ei=pi,_i=192,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return pi[t-=0]};class Ci extends t.Plugin{[Ti("0x11")](){const t=this[Ti("0xb")];if(!t.plugins[Ti("0x8")](Ti("0xe")))return;const e=t[Ti("0x10")][Ti("0x19")](Ti("0x5"));e[Ti("0xc")](Ti("0x0"),((n,o)=>{const s=t[Ti("0x9")].document[Ti("0x2")];let r=[];if(s.isCollapsed){if(!s[Ti("0x18")](Ti("0x17")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0x1")](),Ti("0x17"),s[Ti("0x16")](Ti("0x17")),t[Ti("0x9")]);r=[e]}}else r=Array[Ti("0x7")](s[Ti("0xf")]());t[Ti("0x9")][Ti("0x13")]((()=>{for(const t of r)e.markInlineFormat(t,{commandName:Ti("0x0"),commandParams:[o]})}))})),e[Ti("0xc")](Ti("0x15"),(()=>{const n=this[Ti("0xb")].model,o=n.document[Ti("0x2")];n[Ti("0x13")]((()=>{let n=[];n=o[Ti("0x4")]?[(0,Vs.findAttributeRange)(o[Ti("0x1")](),"linkHref",o.getAttribute(Ti("0x17")),t[Ti("0x9")])]:ms("linkHref",o[Ti("0xd")](),t[Ti("0x9")]);for(const t of n)e[Ti("0x6")](t,{commandName:Ti("0x15"),commandParams:[]})}))})),e[Ti("0x14")].registerDescriptionCallback((e=>{const{data:n}=e,o=t[Ti("0xa")];if(n){if("link"==n[Ti("0x12")]){return{type:"format",content:Yo(o,"*Set link:* %0",'"'+n.commandParams[0]+'"')}}return Ti("0x15")==n[Ti("0x12")]?{type:Ti("0x3"),content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["format","add","listIndent","indentList","value","getAttribute","*Indent:* %0","replace","findIndex","*Uncheck item*","*Change to:* %0","createRange","filter","change","before","registerElementLabel","forceValue","createPositionAt","TodoListEditing","paragraph","parent","execute","List","end","bulleted","numberedList","numbered","name","commandName","nextSibling","ELEMENT_TODO_LIST","checkChild","todoList","selection","todoListChecked","bulletedList","get","length","from","plugins","blockName","ELEMENT_LIST_ITEM","*Outdent:* %0","afterInit","document","getSelectedBlocks","editor","_descriptionFactory","TrackChangesEditing","commandParams","slice","model","locale","checkTodoList","enableCommand","outdentList","previousSibling","listItem","listType","markBlockFormat","schema"];var ki,Ai;ki=yi,Ai=454,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x10")](){const t=this[vi("0x13")],e=t[vi("0x19")];if(!t[vi("0xc")].has("ListEditing"))return;const n=t[vi("0xc")][vi("0x9")](vi("0x15")),o=t[vi("0xc")].has(vi("0x34"));function s(e){return()=>{const o=t.model.document[vi("0x6")],s=t.commands[vi("0x9")](e);if(s[vi("0x26")])return void t[vi("0x37")](vi("0x35"),{});const r=e[vi("0x17")](0,-4),i=function(t,e,n){let o=Array[vi("0xb")](t)[vi("0x2e")]((t=>{return e=t,(o=n)[vi("0x4")](e[vi("0x36")],vi("0x1e"))&&!o.isObject(e);var e,o}));o=o.filter((t=>!t.is("element","listItem")||t[vi("0x27")](vi("0x1f"))!=e));const s=new Set;for(const t of o)t.is("element","listItem")?s[vi("0x23")](Si(t)):s[vi("0x23")](t);return Array[vi("0xb")](s)}(o[vi("0x12")](),r,t.model[vi("0x21")]);t[vi("0x18")].change((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[vi("0x26")]}],formatGroupId:vi("0xd")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[vi("0x2a")]((t=>vi("0x1e")!=t.name));return n>-1&&(e=e[vi("0x17")](0,n)),e}(t[vi("0x18")][vi("0x11")][vi("0x6")][vi("0x12")]()),s=t[vi("0x18")][vi("0x2d")](t.model[vi("0x33")](o[0],vi("0x30")),t[vi("0x18")][vi("0x33")](o[o[vi("0xa")]-1],vi("0x39")));t[vi("0x18")].change((()=>{n[vi("0x20")](s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[vi("0x2")];for(;t&&t.getAttribute(vi("0x24"))>n[vi("0x27")](vi("0x24"));)e[vi("0x23")](t),t=t[vi("0x2")]}return Array[vi("0xb")](e)}(o))}))}}n[vi("0x1b")](vi("0x3b"),s("numberedList")),n[vi("0x1b")]("bulletedList",s(vi("0x8"))),o&&n[vi("0x1b")](vi("0x5"),s(vi("0x5"))),n.enableCommand(vi("0x25"),r("indentList")),n[vi("0x1b")](vi("0x1c"),r(vi("0x1c"))),o&&n[vi("0x1b")]("checkTodoList",(()=>{const e=t.commands[vi("0x9")](vi("0x1a")),o=Array.from(e._selectedElements);o[vi("0x2e")]((t=>t[vi("0x27")](vi("0x7"))!=e.value)),t[vi("0x18")][vi("0x2f")]((()=>{for(const t of o)n[vi("0x20")](t,{commandName:vi("0x1a"),commandParams:[{forceValue:!e[vi("0x26")]}]})}))})),n[vi("0x14")][vi("0x31")](vi("0x1e"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x14")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if("numberedList"==n[vi("0x1")]||vi("0x8")==n.commandName||vi("0x5")==n[vi("0x1")])switch(n[vi("0x1")][vi("0x29")](vi("0x38"),"")){case vi("0x3a"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case vi("0x3c"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case"todo":return o(Yo(e,vi("0x3")))}if(vi("0x25")==n[vi("0x1")])return{type:"format",content:Yo(e,vi("0x28"),Yo(e,vi("0xe")))};if(vi("0x1c")==n[vi("0x1")])return{type:vi("0x22"),content:Yo(e,vi("0xf"),Yo(e,vi("0xe")))};if("checkTodoList"==n.commandName)return n[vi("0x16")][0][vi("0x32")]?{type:vi("0x22"),content:Yo(e,"*Check item*")}:{type:vi("0x22"),content:Yo(e,vi("0x2b"))}}function o(t){return{type:vi("0x22"),content:Yo(e,vi("0x2c"),t)}}}))}}function Si(t){const e=t[vi("0x27")](vi("0x24"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x1d")].is("element",vi("0x1e"));){const o=t[vi("0x1d")][vi("0x27")](vi("0x24"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[vi("0x1d")]}return n}function Ii(t){const e=[];if(t.is("element",vi("0x1e"))&&t[vi("0x27")]("listIndent")>0){let n=t[vi("0x2")];for(;n&&vi("0x1e")==n[vi("0x0")]&&n[vi("0x27")](vi("0x24"))==t[vi("0x27")](vi("0x24"));)e.push(n),n=n[vi("0x2")]}return e}const Li=["afterInit","filter","model","format","backward","parent","listType","createPositionAt","bind","getAttribute","document","getLastPosition","before","change","getSiblingNodes","getFirstPosition","listStart","plugins","ELEMENT_","*Format:* set order to reversed","handleDescriptions","getListTypeFromListStyleType","ListUtils","element","forward","handleListReversedCommand","config","push","editor","list.properties","unshift","enableCommand","toUpperCase","length","TrackChangesEditing","_getSuggestionBlocks","commandName","handleListStartCommand","replace","ListPropertiesEditing","listItem","get","_descriptionFactory","markMultiRangeBlockFormat","*Format:* set order to regular","reversed","has","map","handleListStyleCommand","listStyle","styles","createRange","_LIST_","listReversed","_getSuggestionBlocksForListStyle","getSelectedBlocks","_getTranslationKeyForListStyle","from","startIndex","commandParams","selection"];var Ni,wi;Ni=Li,wi=409,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[Mi("0x12")](){if(!this.editor[Mi("0x23")][Mi("0x3")](Mi("0x39")))return;const t=this.editor[Mi("0x2c")][Mi("0x3b")](Mi("0x2f")),e=this[Mi("0x2e")][Mi("0x23")][Mi("0x3b")]("TrackChangesEditing");t[Mi("0x7")]&&e[Mi("0x31")](Mi("0x6"),this[Mi("0x5")][Mi("0x1a")](this)),t[Mi("0x2")]&&e[Mi("0x31")](Mi("0xa"),this.handleListReversedCommand[Mi("0x1a")](this)),t[Mi("0xf")]&&e[Mi("0x31")]("listStart",this[Mi("0x37")][Mi("0x1a")](this)),e[Mi("0x3c")].registerDescriptionCallback(this[Mi("0x26")][Mi("0x1a")](this))}handleListStyleCommand(t,e={}){const n=this[Mi("0x2e")].plugins[Mi("0x3b")](Mi("0x34")),o=this._getSuggestionBlocksForListStyle();this[Mi("0x2e")][Mi("0x14")][Mi("0x1f")]((()=>{n[Mi("0x0")](o,{commandName:Mi("0x6"),commandParams:[{type:e.type}],formatGroupId:Mi("0x6")})}))}[Mi("0x2b")](t,e={}){const n=this[Mi("0x2e")][Mi("0x23")][Mi("0x3b")](Mi("0x34")),o=this._getSuggestionBlocks((t=>t.is(Mi("0x29"),Mi("0x3a"))&&"numbered"===t.getAttribute("listType")));if(o.length<1)return;const s=o[Mi("0x4")]((t=>this[Mi("0x2e")].model[Mi("0x8")](this[Mi("0x2e")][Mi("0x14")][Mi("0x19")](t,Mi("0x1e")),this[Mi("0x2e")].model[Mi("0x19")](t,0))));this[Mi("0x2e")][Mi("0x14")].change((()=>{n[Mi("0x0")](s,{commandName:Mi("0xa"),commandParams:[{reversed:e[Mi("0x2")]}],formatGroupId:"listReversed"})}))}[Mi("0x37")](t,e={}){const n=this.editor[Mi("0x23")][Mi("0x3b")](Mi("0x34")),o=this[Mi("0x35")]((t=>t.is("element",Mi("0x3a"))&&"numbered"===t[Mi("0x1b")](Mi("0x18"))));if(o[Mi("0x33")]<1)return;const s=o[Mi("0x4")]((t=>this[Mi("0x2e")][Mi("0x14")][Mi("0x8")](this[Mi("0x2e")][Mi("0x14")][Mi("0x19")](t,Mi("0x1e")),this[Mi("0x2e")][Mi("0x14")][Mi("0x19")](t,0))));this[Mi("0x2e")].model[Mi("0x1f")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Mi("0x22"),commandParams:[{startIndex:e[Mi("0xf")]}],formatGroupId:"listStart"})}))}[Mi("0x26")](t){const e=this[Mi("0x2e")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[Mi("0x36")]){case Mi("0x6"):o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this[Mi("0xd")](n.commandParams[0].type)))};break;case Mi("0xa"):o=n.commandParams[0].reversed?Mi("0x25"):Mi("0x1"),s={type:Mi("0x15"),content:Yo(e,o)};break;case"listStart":o="*Format:* set start index to %0",s={type:Mi("0x15"),content:Yo(e,o,n[Mi("0x10")][0][Mi("0xf")])}}return s}[Mi("0xb")](){var t,e,n,o;const s=this[Mi("0x2e")][Mi("0x23")][Mi("0x3b")](Mi("0x28"));let r=Array[Mi("0xe")](this[Mi("0x2e")][Mi("0x14")].document.selection[Mi("0xc")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Mi("0x29"),Mi("0x3a")))&&r[Mi("0x30")](...s.getSiblingNodes(this[Mi("0x2e")][Mi("0x14")][Mi("0x1c")][Mi("0x11")][Mi("0x21")](),Mi("0x16"))),(null===(e=r[r[Mi("0x33")]-1])||void 0===e?void 0:e.is(Mi("0x29"),Mi("0x3a")))&&r[Mi("0x2d")](...s[Mi("0x20")](this.editor[Mi("0x14")][Mi("0x1c")][Mi("0x11")][Mi("0x1d")](),Mi("0x2a"))),r=[...new Set(r)],(null===(o=null===(n=this[Mi("0x2e")][Mi("0x14")][Mi("0x1c")][Mi("0x11")][Mi("0x21")]())||void 0===n?void 0:n[Mi("0x17")])||void 0===o?void 0:o.is(Mi("0x29"),"listItem"))&&(r=r[Mi("0x13")]((t=>t.is(Mi("0x29"),"listItem")))),r}[Mi("0x35")](t){const e=this[Mi("0x2e")][Mi("0x23")].get(Mi("0x28"));let n=Array[Mi("0xe")](this[Mi("0x2e")][Mi("0x14")][Mi("0x1c")][Mi("0x11")][Mi("0xc")]())[Mi("0x13")](t)[Mi("0x4")]((t=>{const n=this[Mi("0x2e")].model[Mi("0x19")](t,0);return[...e[Mi("0x20")](n,Mi("0x16")),...e[Mi("0x20")](n,Mi("0x2a"))]})).flat();return n=[...new Set(n)],n}[Mi("0xd")](t){return Mi("0x24")+this[Mi("0x2e")][Mi("0x23")][Mi("0x3b")](Mi("0x28"))[Mi("0x27")](t)[Mi("0x32")]()+Mi("0x9")+t[Mi("0x32")]()[Mi("0x38")](/-/g,"_")}}const Fi=["stop","data","media","dataDowncast","attribute:url:media","TrackChangesEditing","options","downcastDispatcher","get","showSuggestionHighlights","div","afterInit","ELEMENT_MEDIA","createEmptyElement","high","mediaEmbed","conversion","_descriptionFactory","elementToElement","registerElementLabel"];var Pi,Di;Pi=Fi,Di=258,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xd")](){const t=this.editor;if(!t.plugins.has("MediaEmbedEditing"))return;const e=t.plugins[Bi("0xa")](Bi("0x7")),n=t.locale;e.enableCommand(Bi("0x11")),e[Bi("0x13")][Bi("0x1")](Bi("0x4"),(t=>Yo(n,Bi("0xe"),t))),t[Bi("0x12")].for(Bi("0x5"))[Bi("0x0")]({model:Bi("0x4"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Bi("0xf")](Bi("0xc"))},converterPriority:Bi("0x10")}),t[Bi("0x3")][Bi("0x9")].on(Bi("0x6"),((t,e,n)=>{n[Bi("0x8")][Bi("0xb")]&&t[Bi("0x2")]()}),{priority:Bi("0x10")})}}const Ui=["editor","get","afterInit","plugins","mention","has","enableCommand","TrackChangesEditing"];var Gi,Hi;Gi=Ui,Hi=298,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x0")](){const t=this[zi("0x6")];t[zi("0x1")][zi("0x3")]("MentionEditing")&&t[zi("0x1")][zi("0x7")](zi("0x5"))[zi("0x4")](zi("0x2"))}}const Vi=["plugins","get","has","PageBreakEditing","_descriptionFactory","pageBreak","locale","editor","registerElementLabel"];var Ki,qi;Ki=Vi,qi=165,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0x4")];if(!t[Xi("0x6")][Xi("0x8")](Xi("0x0")))return;t[Xi("0x6")][Xi("0x7")]("TrackChangesEditing").enableCommand(Xi("0x2"));const e=t[Xi("0x6")][Xi("0x7")]("TrackChangesEditing"),n=t[Xi("0x3")];e[Xi("0x1")][Xi("0x5")]("pageBreak",(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const Ji=["filter","highest","enableCommand","from","markBlockFormat","blockName","name","createUIElement","registerElementLabel","ELEMENT_PARAGRAPH","get","data","model","TrackChangesEditing","activeMarkers","insertion","markerRange","getSelectedBlocks","schema","addClass","addMarker:suggestion:insertion","editor","document","span","options","checkChild","paragraph","nodeAfter","registerDescriptionCallback","editing","isObject","locale","end","insert","parent","ck-suggestion-marker-split","consumable","ck-suggestion-marker--active","plugins","*Change to:* %0","writer","_descriptionFactory","selection","$text","start","Paragraph","afterInit","format","isBlock","type","isTouching","bindElementToMarker","downcastDispatcher","isLimit","showSuggestionHighlights","commandName"];var Qi,Zi;Qi=Ji,Zi=389,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x31")](){const t=this[Yi("0x18")];if(!t[Yi("0x29")].has(Yi("0x30")))return;const e=t[Yi("0x22")],n=t[Yi("0x29")].get(Yi("0x10"));n[Yi("0x2c")][Yi("0xb")](Yi("0x1d"),(t=>Yo(e,Yi("0xc"),t))),n[Yi("0x5")]("paragraph",((e,o={})=>{const s=t[Yi("0xf")][Yi("0x19")],r=o[Yi("0x2d")]||s.selection,i=Array[Yi("0x6")](r[Yi("0x14")]())[Yi("0x3")]((t=>{return e=t,(n=this.editor[Yi("0xf")][Yi("0x15")]).checkChild(e[Yi("0x25")],Yi("0x1d"))&&!n[Yi("0x21")](e)&&Yi("0x1d")!=e[Yi("0x9")];var e,n}));t.model.change((()=>{for(const t of i)n[Yi("0x7")](t,{commandName:Yi("0x1d"),commandParams:[],formatGroupId:Yi("0x8")},fs(t))}))})),n[Yi("0x2c")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Yi("0x1d")==n[Yi("0x2")])return{type:Yi("0x32"),content:Yo(e,Yi("0x2a"),Yo(e,Yi("0xc")))}})),n.enableCommand("insertParagraph"),t[Yi("0x20")][Yi("0x37")].on(Yi("0x17"),ex(t),{priority:Yi("0x4")}),t[Yi("0xe")][Yi("0x37")].on(Yi("0x17"),((e,n,o)=>{o[Yi("0x1b")][Yi("0x1")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x4")});const o=n[Yi("0x2c")];o[Yi("0x1f")]((n=>{if(Yi("0x12")!==n[Yi("0x34")])return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x35")](r)||!s[Yi("0x1e")])return;const i=t[Yi("0xf")][Yi("0x15")],x=s[Yi("0x1e")];return i[Yi("0x33")](x)&&!i[Yi("0x0")](x)&&i[Yi("0x1c")](x,Yi("0x2e"))?{type:"insertion",content:Yo(e,"*Insert:* %0",o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x29")][Yi("0xd")]("TrackChangesEditing"),i=o[Yi("0x13")][Yi("0x2f")],x=o.markerRange[Yi("0x23")],a=t[Yi("0xf")][Yi("0x15")];if(!i.isTouching(x)||!i[Yi("0x1e")])return;const c=i[Yi("0x1e")];if(a[Yi("0x33")](c)&&!a.isLimit(c)&&a[Yi("0x1c")](c,"$text")){if(!s[Yi("0x27")].consume(o[Yi("0x13")],n[Yi("0x9")]))return;const t=s.writer[Yi("0xa")](Yi("0x1a"),{class:Yi("0x26")}),i=s.mapper.toViewPosition(x);e&&r[Yi("0x11")].includes(o.markerName)&&s.writer[Yi("0x16")](Yi("0x28"),t),s[Yi("0x2b")][Yi("0x24")](i,t),s.mapper[Yi("0x36")](t,o.markerName)}}}const nx=["commandName","format","model","schema","getAttributeProperties","selection","plugins","change","*Remove all formatting*","markInlineFormat","RemoveFormatEditing","getItems","getRanges","locale","enableCommand","getAttributes","isFormatting","isCollapsed","registerDescriptionCallback","TrackChangesEditing","from"];var ox,sx;ox=nx,sx=363,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{afterInit(){const t=this.editor;if(!t[rx("0x0")].has(rx("0x4")))return;const e=t[rx("0x0")].get(rx("0xd"));e[rx("0x8")]("removeFormat",(n=>{const o=t[rx("0x11")].document[rx("0x14")];o[rx("0xb")]?n():t[rx("0x11")][rx("0x1")]((()=>{const n=Array[rx("0xe")](o[rx("0x6")]());for(const o of n)for(const n of o[rx("0x5")]())xx(n,t[rx("0x11")][rx("0x12")])&&e[rx("0x3")](t[rx("0x11")].createRangeOn(n),{commandName:"removeFormat",commandParams:[]})}))})),e._descriptionFactory[rx("0xc")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[rx("0xf")])return{type:rx("0x10"),content:Yo(t[rx("0x7")],rx("0x2"))}}))}}function xx(t,e){for(const[n]of t[rx("0x9")]()){const t=e[rx("0x13")](n);if(t&&t[rx("0xa")])return!0}return!1}const ax=["acceptSuggestion","get","goToNextRestrictedEditingException","enableCommand","discardSuggestion","plugins","discardAllSuggestions","has","afterInit","acceptSelectedSuggestions","goToPreviousRestrictedEditingException","trackChanges"];var cx,lx;cx=ax,lx=172,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x4")](){const t=this.editor;if(!t[dx("0x1")][dx("0x3")]("RestrictedEditingModeEditing"))return;const e=t[dx("0x1")][dx("0x9")]("TrackChangesEditing");e[dx("0xb")](dx("0x6")),e[dx("0xb")](dx("0xa"));const n=t.plugins.get("RestrictedEditingModeEditing");n[dx("0xb")](dx("0x7")),n[dx("0xb")](dx("0x8")),n[dx("0xb")](dx("0x0")),n[dx("0xb")]("acceptAllSuggestions"),n.enableCommand(dx("0x2")),n.enableCommand(dx("0x5")),n[dx("0xb")]("discardSelectedSuggestions")}}const gx=["test","enableCommand","get","addMarker:suggestion","insert","writer","createUIElement","addMarker:suggestion:insertion","plugins","requires","addClass","includes","TrackChangesEditing","markerRange","markerName","element","split","span","locale","activeMarkers","ck-suggestion-marker-","model","bindElementToMarker","mapper","ck-suggestion-marker--active","_descriptionFactory","showSuggestionHighlights","high","registerElementLabel","ELEMENT_LINE_BREAK","name","shiftEnter","downcastDispatcher","addMarker:suggestion:deletion","toViewPosition","deletion","init","editing"];var mx,fx;mx=gx,fx=153,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class bx extends t.Plugin{static get[hx("0x8")](){return[nr.ShiftEnter]}[hx("0x23")](){const t=this.editor,e=t[hx("0x7")][hx("0x1")](hx("0xb"));e[hx("0x0")](hx("0x1e")),t[hx("0x24")][hx("0x1f")].on(hx("0x6"),px(t),{priority:hx("0x1a")}),t[hx("0x24")][hx("0x1f")].on(hx("0x20"),px(t),{priority:hx("0x1a")}),t.data.downcastDispatcher.on(hx("0x2"),((e,n,o)=>{o.options[hx("0x19")]&&px(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x18")][hx("0x1b")]("softBreak",(e=>Yo(t[hx("0x11")],hx("0x1c"),e)))}}function px(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x7")][hx("0x1")](hx("0xb"));if(!s.consumable[hx("0x25")](o[hx("0xc")],n[hx("0x1d")]))return;const i=t[hx("0x14")];for(const t of o[hx("0xc")].getItems()){if(!t.is(hx("0xe"),"softBreak"))continue;const n=hx("0x22")==o[hx("0xd")][hx("0xf")](":")[1]?"merge":hx("0xf"),x=s[hx("0x4")][hx("0x5")](hx("0x10"),{class:hx("0x13")+n}),a=s[hx("0x16")][hx("0x21")](i.createPositionBefore(t));e&&r[hx("0x12")][hx("0xa")](o[hx("0xd")])&&s.writer[hx("0x9")](hx("0x17"),x),s.writer[hx("0x3")](a,x),s.mapper[hx("0x15")](x,o[hx("0xd")])}}}const Ex=["document","registerDescriptionCallback","locale","TrackChangesEditing","afterInit","enableCommand","forceValue","getRanges","format","commandName","from","plugins","FORMAT_RESTRICTED_DISABLED","_descriptionFactory","restrictedEditingException","change","StandardEditingModeEditing","FORMAT_RESTRICTED_ENABLED","selection","commandParams","get","has"];var _x,Tx;_x=Ex,Tx=369,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x9")](){const t=this.editor,e=t.model,n=t[Cx("0x7")];if(!t[Cx("0x10")][Cx("0x4")](Cx("0x15")))return;const o=t[Cx("0x10")].get(Cx("0x8")),s=Cx("0x13"),r=t.commands[Cx("0x3")](s);o[Cx("0xa")](s,((t,n={})=>{const i=e[Cx("0x5")][Cx("0x1")];if(i.isCollapsed)return void t(n);const x=void 0!==n[Cx("0xb")]?n.forceValue:!r.value;e[Cx("0x14")]((()=>{const t=Array[Cx("0xf")](i[Cx("0xc")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x12")][Cx("0x6")]((t=>{const{data:e}=t;if(e&&e[Cx("0xe")]==s)return e[Cx("0x2")][0][Cx("0xb")]?{type:Cx("0xd"),content:Yo(n,Cx("0x0"))}:{type:"format",content:Yo(n,Cx("0x11"))}}))}}const kx=["format","getDefinitionsForView","classes","*Remove format:* %0","change","_getStyleDefinition","has","element","TrackChangesEditing","getSelectedBlocks","config","from","_getRangesWithClasses","createRangeOn","afterInit","locale","inline","includes","style","_descriptionFactory","markInlineFormat","DataSchema","registerDescriptionCallback","get","isBlock","normalizeConfig","styleName","Style","getRanges","StyleUtils","document","modelElements","isCollapsed","block","name","value","plugins","getAttribute","push","commands","enabledStyles","commandName","commandParams","getItems","forceValue","every","find","model","toLowerCase"];var Ax,vx;Ax=kx,vx=163,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x2f")](){const t=this.editor;if(!t.plugins[Rx("0x27")](Rx("0xb")))return;const e=t[Rx("0x17")].get(Rx("0x2")),n=t[Rx("0x14")][Rx("0x7")](Rx("0x29")),o=t[Rx("0x30")],s=t[Rx("0x14")][Rx("0x7")](Rx("0x5")),r=t[Rx("0x14")][Rx("0x7")](Rx("0xd"))[Rx("0x9")](s,t[Rx("0x2b")].get("style.definitions"));n.enableCommand("style",((o,{styleName:i})=>{const x=t[Rx("0x1f")][Rx("0xe")].selection,a=this._getStyleDefinition(i,r);if(!a)return;if(!e[Rx("0x18")][Rx("0x1")](i))return;if(x[Rx("0x10")]&&!a[Rx("0x8")])return void o({styleName:i});const c=!e[Rx("0x13")].includes(a[Rx("0x12")]);if(a[Rx("0x8")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x1")](o[Rx("0x12")])){n.add(o);break}}return n}(x[Rx("0x2a")](),a[Rx("0xf")]);t.model[Rx("0x25")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array.from(x[Rx("0xc")]());if(!c){const n=Array[Rx("0x2c")](s[Rx("0x22")](a[Rx("0x28")],!1))[0].model,o=[];for(const s of e){const e=this[Rx("0x2d")](t[Rx("0x1f")],s,a[Rx("0x23")],n);o[Rx("0x16")](...e)}e=o}t.model.change((()=>{for(const t of e)n[Rx("0x4")](t,{commandName:Rx("0x2"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x3")][Rx("0x6")]((t=>{const{data:e}=t;if(e&&Rx("0x2")===e[Rx("0x19")])return e[Rx("0x1a")][0][Rx("0x1c")]?{type:"format",content:Yo(o,"*Format:* %0",e.commandParams[0][Rx("0xa")][Rx("0x20")]())}:{type:Rx("0x21"),content:Yo(o,Rx("0x24"),e[Rx("0x1a")][0][Rx("0xa")].toLowerCase())}}))}[Rx("0x26")](t,e){let n=e[Rx("0x11")][Rx("0x1e")]((e=>e.name===t));return n||(n=e[Rx("0x0")][Rx("0x1e")]((e=>e.name===t))),n}[Rx("0x2d")](t,e,n,o){const s=[];for(const r of e[Rx("0x1b")]()){const e=r[Rx("0x15")](o);e&&n[Rx("0x1d")]((t=>e[Rx("0x23")][Rx("0x1")](t)))&&s[Rx("0x16")](t[Rx("0x2e")](r))}return s}}const Ix=["classes","startsWith","accept","tableColumn","tableRow","registerDescriptionCallback","markMultiRangeDeletion","selectTableColumn","model","setSelection","_suggestionFactory","min","TrackChangesEditing","insertTableRowBelow","deletion","enableCommand","left","registerCustomCallback","getChangedMarkers","minRow","filter","mapper","data","MIN_SAFE_INTEGER","insertion","colspan","getRanges","getCellLocation","max","getColumnIndexes","rootName","options","enqueueChange","editor","getChanges","includes","execute","batch","*Remove:* %0","nodeBefore","ELEMENT_TABLE_ROW_WITH_TEXT","last","_descriptionFactory","isInContent","addClass","_tablePostFixingSubtypes","registerPostFixer","change","markMultiRangeInsertion","change:data","oldRange","removeTableRow","element","first","suggestion","minColumn","some","commands","getSuggestion","tablePaste","type","locale","hasAttribute","_splitMarkerName","toLowerCase","findAncestor","root","MAX_SAFE_INTEGER","isTouching","isEqual","*Insert:* %0","cell","fromRange","position","join","getSelectionAffectedTableCells","ELEMENT_TABLE_ROW","registerElementLabel","ELEMENT_TABLE_COLUMN_WITH_TEXT","order","subType","ELEMENT_TABLE_COLUMN","rowspan","insertTable","maxRow","start","insertTableColumnRight","isArray","_getSuggestionCoords","createPositionAt","push","table","_tableSuggestions","getChildren","getAttribute","map","addRange","createRangeOn","every","getRowIndexes","end","_acceptFormatSuggestionCallbackFactory","has","add","insertTableRowAbove","isIntersectingWithRange","TableUtils","length","selection","$graveyard","from","plugins","get","name","discard","selectTableRow","createTableWalker","removeClass","nodeAfter","differ","above","insert","tableCell","getItems","ELEMENT_TABLE_WITH_TEXT","$textProxy","item","low","showSuggestionHighlights","substr","document","refresh"];var Lx,Nx;Lx=Ix,Nx=317,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{constructor(t){super(t),this[wx("0x7c")]=[wx("0x53"),wx("0x52")],this._tableSuggestions=new Set}afterInit(){const t=this[wx("0x70")],e=t[wx("0x57")][wx("0x4d")][wx("0x37")];if(!t[wx("0x3a")][wx("0x31")]("TableEditing"))return;const n=t[wx("0x8")],o=t.plugins[wx("0x3b")](wx("0x5b")),s=t[wx("0x3a")].get("TableUtils");o[wx("0x79")][wx("0x18")](wx("0x26"),(t=>Yo(n,"ELEMENT_TABLE",t))),this._setupColumnsRowsFixing(),o[wx("0x5e")](wx("0x1e")),o[wx("0x5e")](wx("0x3e")),o.enableCommand(wx("0x56"));for(const n of[wx("0x33"),wx("0x5c")]){const r=t[wx("0x4")][wx("0x3b")](n);o[wx("0x5e")](n,(n=>{t[wx("0x57")].change((t=>{n();const i=wx("0x43")===r[wx("0x1a")],x=s[wx("0x16")](e),a=s[wx("0x2e")](x),c=i?a[wx("0x0")]-1:a[wx("0x78")]+1,l=x[0][wx("0xc")](wx("0x26")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array[wx("0x39")](d)[wx("0x2a")]((e=>t.createRangeOn(e.cell)));o[wx("0x7f")](u,wx("0x53"))}))}))}for(const n of["insertTableColumnLeft",wx("0x21")]){const r=t[wx("0x4")][wx("0x3b")](n);o[wx("0x5e")](n,(n=>{t[wx("0x57")][wx("0x7e")]((t=>{n();const i=wx("0x5f")===r[wx("0x1a")],x=s[wx("0x16")](e),a=s[wx("0x6c")](x),c=i?a[wx("0x0")]-1:a[wx("0x78")]+1,l=x[0][wx("0xc")]("table"),d=s[wx("0x3f")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[wx("0x39")](d).map((e=>t[wx("0x2c")](e[wx("0x12")])));o[wx("0x7f")](u,wx("0x52"))}))}))}for(const n of[wx("0x82"),"removeTableColumn"]){const r=n[wx("0x4c")](11),i=r[wx("0xb")](),x=i.substr(0,3)+"span",a=wx("0x26")+r,c=wx("0x5a")+r,l=wx("0x6b")+r;o.enableCommand(n,(()=>{t.model[wx("0x7e")]((t=>{const r=s[wx("0x16")](e),d=r[0][wx("0xc")](wx("0x26"));let u;if("removeTableRow"==n){const t=s[wx("0x2e")](r);u={startRow:t[wx("0x0")],endRow:t.last,includeAllSlots:!0}}else{const t=s[wx("0x6c")](r);u={startColumn:t.first,endColumn:t[wx("0x78")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[wx("0x39")](g)[wx("0x2a")]((({cell:t})=>t)),f=Ox(m.filter((t=>t[wx("0x9")](x)))),h=Ox(m[wx("0x63")]((t=>!t[wx("0x9")](x))))[wx("0x2a")]((e=>t[wx("0x2c")](e))),b=o[wx("0x55")](h,a);if(b&&("tableRow"==b[wx("0x1b")]||wx("0x52")==b[wx("0x1b")])){const e=this[wx("0x23")](b);for(const n of f){const o=t[wx("0x2c")](n),r=s[wx("0x6a")](n),a=n[wx("0x29")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&b[wx("0x2b")](o)}}}))}))}function r(n){const o=Array[wx("0x39")](e.getRanges())[wx("0x2a")]((t=>i.LiveRange.fromRange(t)));t.model[wx("0x7e")]((e=>{const s=e[wx("0x74")];n=n[wx("0x63")]((t=>wx("0x38")!=t[wx("0xd")].rootName)),e[wx("0x58")](n),t[wx("0x4")][wx("0x3b")](wx("0x82"))[wx("0x4e")](),t[wx("0x73")](wx("0x82"),{forceDefaultExecution:!0}),t.model[wx("0x6f")]((()=>{t[wx("0x57")][wx("0x6f")](s,(t=>{const e=o[wx("0x63")]((t=>wx("0x38")!=t[wx("0xd")][wx("0x6d")]));e[wx("0x36")]>0&&t[wx("0x58")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[wx("0x57")][wx("0x7e")]((o=>{const s=Array[wx("0x39")](e[wx("0x69")]()).map((t=>i.LiveRange[wx("0x13")](t))),r=[];for(const t of n)for(const e of t[wx("0x46")]({shallow:!0}))r[wx("0x25")](e);for(const e of r)wx("0x38")!=e[wx("0xd")][wx("0x6d")]&&(o.setSelection(o[wx("0x24")](e,0)),t.commands[wx("0x3b")]("removeTableColumn")[wx("0x4e")](),t[wx("0x73")]("removeTableColumn",{forceDefaultExecution:!0}));const x=s.filter((t=>"$graveyard"!=t[wx("0xd")].rootName));x[wx("0x36")]>0&&o.setSelection(x);for(const t of s)t.detach()}))}function c(t,e){return e[wx("0x2d")]((e=>t[wx("0x3")]((t=>t[wx("0x2f")][wx("0x10")](e[wx("0x20")])||e.end[wx("0x10")](t[wx("0x20")])))))}function l(t,e){return t[wx("0x3")]((t=>e[wx("0x3")]((e=>t.end[wx("0xf")](e.start)))))}t[wx("0x65")].downcastDispatcher.on("addMarker:suggestion",((t,e,n)=>{if(!n[wx("0x6e")][wx("0x4b")])return;const o=e[wx("0x49")];if(!o)return;const s=n[wx("0x64")].toViewElement(o);function r(t){return Array[wx("0x22")](t)?t:[t]}s&&wx("0x45")===o[wx("0x3c")]&&(0,x.setHighlightHandling)(s,n.writer,((t,e,n)=>n[wx("0x7b")](r(e.classes),t)),((t,e,n)=>n[wx("0x40")](r(e[wx("0x4f")]),t)))}),{priority:"highest"}),o._descriptionFactory.registerDescriptionCallback((t=>{if(wx("0x67")!=t.type&&wx("0x5d")!=t.type)return;const e=t.getContainedElement();if(null!=e&&e.is(wx("0x83"),wx("0x26"))){if(wx("0x67")==t[wx("0x7")]){const e=t[wx("0x46")]().filter((t=>t.is(wx("0x48"))))[wx("0x2a")]((t=>t[wx("0x65")]));if(e[wx("0x36")])return{type:wx("0x67"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if(wx("0x5d")==t[wx("0x7")]){const e=t[wx("0x46")]().filter((t=>t.is(wx("0x48"))))[wx("0x2a")]((t=>t[wx("0x65")]));if(e[wx("0x36")])return{type:wx("0x5d"),content:Yo(n,"*Remove:* %0",Yo(n,wx("0x47"),'"'+e[wx("0x15")](" ")+'"'))}}}})),o[wx("0x79")][wx("0x54")]((t=>{if(wx("0x53")==t[wx("0x1b")]){const e=t.getItems()[wx("0x63")]((t=>t.is("$textProxy")))[wx("0x2a")]((t=>t[wx("0x65")])),o=this[wx("0x23")](t),s=o[wx("0x1f")]-o[wx("0x62")]+1;if(wx("0x67")==t[wx("0x7")])return e[wx("0x36")]?{type:wx("0x67"),content:Yo(n,"*Insert:* %0",Yo(n,wx("0x77"),[s,'"'+e.join(" ")+'"']))}:{type:wx("0x67"),content:Yo(n,wx("0x11"),Yo(n,wx("0x17"),s))};if("deletion"==t[wx("0x7")])return e[wx("0x36")]?{type:wx("0x5d"),content:Yo(n,wx("0x75"),Yo(n,wx("0x77"),[s,'"'+e.join(" ")+'"']))}:{type:wx("0x5d"),content:Yo(n,wx("0x75"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(wx("0x52")==t.subType){const e=t[wx("0x46")]().filter((t=>t.is(wx("0x48"))))[wx("0x2a")]((t=>t[wx("0x65")])),o=this[wx("0x23")](t),s=o.maxColumn-o[wx("0x2")]+1;if(wx("0x67")==t[wx("0x7")])return e[wx("0x36")]?{type:wx("0x67"),content:Yo(n,wx("0x11"),Yo(n,wx("0x19"),[s,'"'+e[wx("0x15")](" ")+'"']))}:{type:wx("0x67"),content:Yo(n,wx("0x11"),Yo(n,wx("0x1c"),s))};if("deletion"==t[wx("0x7")])return e[wx("0x36")]?{type:wx("0x5d"),content:Yo(n,wx("0x75"),Yo(n,wx("0x19"),[s,'"'+e[wx("0x15")](" ")+'"']))}:{type:wx("0x5d"),content:Yo(n,wx("0x75"),Yo(n,wx("0x1c"),s))}}})),o[wx("0x59")][wx("0x60")](wx("0x67"),wx("0x53"),wx("0x3d"),r),o[wx("0x59")].registerCustomCallback(wx("0x5d"),wx("0x53"),wx("0x51"),r),o[wx("0x59")][wx("0x60")]("insertion",wx("0x52"),"discard",a),o[wx("0x59")][wx("0x60")](wx("0x5d"),wx("0x52"),"accept",a),o[wx("0x59")].registerCustomCallback(wx("0x67"),"tableColumn","join",c),o[wx("0x59")][wx("0x60")](wx("0x5d"),wx("0x52"),wx("0x15"),c),o[wx("0x59")][wx("0x60")]("insertion",wx("0x53"),wx("0x15"),l),o._suggestionFactory.registerCustomCallback(wx("0x5d"),wx("0x53"),"join",l)}[wx("0x30")](){const t=this[wx("0x70")],e=t.model[wx("0x4d")][wx("0x37")];return(n,o)=>{t.model[wx("0x7e")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][wx("0x2f")][wx("0x76")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][wx("0x20")][wx("0x41")]);const c=s.createRangeIn(a);if("$graveyard"==c[wx("0xd")][wx("0x6d")])return;const l=Array.from(e[wx("0x69")]()).map((t=>i.LiveRange[wx("0x13")](t)));s.setSelection(c),t[wx("0x4")][wx("0x3b")](r).refresh(),x[wx("0x25")]({forceDefaultExecution:!0}),t[wx("0x73")](r,...x);const d=l.filter((t=>"$graveyard"!=t[wx("0xd")].rootName));d[wx("0x36")]>0&&s[wx("0x58")](d);for(const t of l)t.detach()}))}}_getCoordsForCells(t){const e=this[wx("0x70")][wx("0x3a")][wx("0x3b")](wx("0x35"));let n=Number.MAX_SAFE_INTEGER,o=Number[wx("0x66")],s=Number[wx("0xe")],r=Number[wx("0x66")];for(const i of t){if(wx("0x38")==i[wx("0xd")][wx("0x6d")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[wx("0x9")]("rowspan")?i.getAttribute(wx("0x1d"))-1:0,c=i.hasAttribute(wx("0x68"))?i[wx("0x29")](wx("0x68"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this[wx("0x70")],e=t[wx("0x3a")][wx("0x3b")](wx("0x5b")),n=t.plugins.get(wx("0x35"));t.model[wx("0x4d")].on(wx("0x80"),(()=>{const n=Array.from(t[wx("0x57")][wx("0x4d")][wx("0x42")][wx("0x61")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[wx("0xa")](t);if(wx("0x1")!=n)continue;if(null!=o[wx("0x81")])continue;const i=e[wx("0x5")](s);this[wx("0x7c")][wx("0x72")](r)&&this[wx("0x27")][wx("0x32")](i)}}),{priority:wx("0x4a")});const o=(t,e)=>{let o=!1;const s=e[wx("0x2c")](t),r=t[wx("0xc")](wx("0x26")),i=n[wx("0x6a")](t);for(const e of this[wx("0x27")]){const n=e.subType,x=n[wx("0x50")](wx("0x6")),a=n[wx("0x4c")](x?10:5),c=a[wx("0xb")](),l=c.substr(0,3)+"span",d=wx("0x5a")+a,u=wx("0x6b")+a;if(!e[wx("0x7a")])continue;if(r!=e.getFirstRange()[wx("0x20")].findAncestor(wx("0x26")))continue;if(e[wx("0x34")](s))continue;const g=t[wx("0x9")](l)?t[wx("0x29")](l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[wx("0x2b")](s),o=!0)}return o};t[wx("0x57")].document[wx("0x7d")]((e=>{let n=!1;for(const s of t[wx("0x57")][wx("0x4d")].differ[wx("0x71")]())if(wx("0x44")==s.type)if(wx("0x53")==s[wx("0x3c")])for(const t of s.position[wx("0x41")][wx("0x28")]())n=n||o(t,e);else wx("0x45")==s[wx("0x3c")]&&(n=n||o(s[wx("0x14")][wx("0x41")],e));return n}))}[wx("0x23")](t){return this._getCoordsForCells(t[wx("0x69")]()[wx("0x2a")]((t=>t[wx("0x20")][wx("0x41")])))}}function Ox(t){return Array.from(new Set(t).values())}const Fx=["value","document","subType","TableUtils","cell","refresh","map","getCellLocation","format","markMultiRangeBlockFormat","formatBlock","enableCommand","TrackChangesEditing","return","afterInit","*Merge cells*","change","_isForcedDefaultExecutionBlock","$graveyard","add","commands","locale","trackChanges","getFirstPosition","markBlockFormat","from","model","author","tableCell","fromRange","_tablePostFixingSubtypes","registerCustomCallback","mergeTableCellLeft","type","_acceptFormatSuggestionCallbackFactory","commandName","createRangeOn","_areSelectedCellsMergable","_descriptionFactory","has","mergeTableCells","getAncestors","accept","plugins","_areMergableCells","forceDefaultExecution","getSuggestions","rootName","isEnabled","mergeTableCellDown","splitTableCellVertically","_suggestionFactory","horizontally","set:isEnabled","*Split cell:* horizontally","getSelectionAffectedTableCells","selection","mergeTableCellUp","direction","splitTableCellHorizontally","root","editor","insertion","getRanges","mergeTableCellRight","get","element","length","size","low","detach","execute","isInContent","createTableWalker","containsRange","find","registerDescriptionCallback","setSelection"];var Px,Dx;Px=Fx,Dx=123,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get requires(){return[Mx]}[Bx("0x2f")](){const t=this[Bx("0x10")],e=t[Bx("0x3b")][Bx("0x22")].selection,n=t[Bx("0x36")];if(!t.plugins[Bx("0x48")]("TableEditing"))return;const o=t[Bx("0x4c")][Bx("0x14")]("TrackChangesEditing"),s=t[Bx("0x4c")][Bx("0x14")](Bx("0x24")),r=t.plugins.get(Mx);r[Bx("0x3f")].push(Bx("0x49")),o.enableCommand("mergeTableCells",(()=>{const e=s[Bx("0xa")](t[Bx("0x3b")][Bx("0x22")].selection);t[Bx("0x3b")][Bx("0x31")]((()=>{o[Bx("0x2a")](e,{commandName:Bx("0x49"),commandParams:[]},[],Bx("0x49"))}))})),t.commands.get("mergeTableCells").on(Bx("0x1a"),((e,n)=>{t[Bx("0x35")][Bx("0x14")](Bx("0x37")).value&&(n[Bx("0x16")]>0&&n[n[Bx("0x16")]-1]&&n[n[Bx("0x16")]-1][Bx("0x0")]||o[Bx("0x32")]||this[Bx("0x46")]()||e.stop())}),{priority:"highest"});for(const e of["mergeTableCellUp",Bx("0x13"),"mergeTableCellDown","mergeTableCellLeft"]){const n=t[Bx("0x35")].get(e);o[Bx("0x2c")](e,(()=>{const e=t[Bx("0x3b")][Bx("0x22")][Bx("0xb")][Bx("0x38")]()[Bx("0x4a")]().find((t=>t.is(Bx("0x15"),Bx("0x3d")))),s=n.value;t[Bx("0x3b")][Bx("0x31")]((()=>{o[Bx("0x2a")]([e,s],{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[Bx("0x5"),"splitTableCellHorizontally"]){const n=t[Bx("0x35")].get(e);o[Bx("0x2c")](e,(()=>{const r=s[Bx("0xa")](t[Bx("0x3b")][Bx("0x22")][Bx("0xb")])[0],i=r.findAncestor("table"),{column:x,row:a}=s[Bx("0x28")](r);let c=[];if(Bx("0x7")==n[Bx("0xd")]){const t=s.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x3a")](t)[Bx("0x27")]((t=>t.cell))}else{const t=s[Bx("0x1c")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x3a")](t).map((t=>t[Bx("0x25")]))}t[Bx("0x3b")][Bx("0x31")]((t=>{o[Bx("0x39")](t[Bx("0x45")](r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x44")]?{type:Bx("0x29"),content:Yo(n,Bx("0x30"))}:void 0})),o[Bx("0x47")][Bx("0x1f")]((t=>{const{data:e}=t;if(e)return Bx("0x5")==e[Bx("0x44")]?{type:Bx("0x29"),content:Yo(n,"*Split cell:* vertically")}:Bx("0xe")==e[Bx("0x44")]?{type:Bx("0x29"),content:Yo(n,Bx("0x9"))}:void 0}));const x=r[Bx("0x43")]();for(const t of[Bx("0xc"),Bx("0x13"),Bx("0x4"),"mergeTableCellLeft"])o[Bx("0x6")][Bx("0x40")]("formatBlock",t,Bx("0x4b"),x);for(const t of[Bx("0x5"),Bx("0xe")])o._suggestionFactory.registerCustomCallback(Bx("0x2b"),t,Bx("0x4b"),x);o[Bx("0x6")].registerCustomCallback(Bx("0x2b"),Bx("0x49"),"accept",(n=>{t[Bx("0x3b")][Bx("0x31")]((o=>{const s=Array[Bx("0x3a")](e[Bx("0x12")]()).map((t=>i.LiveRange[Bx("0x3e")](t)));o[Bx("0x20")](n),t.commands[Bx("0x14")](Bx("0x49"))[Bx("0x26")](),t[Bx("0x1a")](Bx("0x49"),{forceDefaultExecution:!0});const r=s.filter((t=>Bx("0x33")!=t[Bx("0xf")][Bx("0x2")]));r.length>0&&o[Bx("0x20")](r);for(const t of s)t[Bx("0x19")]()}))}));for(const e of[Bx("0xc"),"mergeTableCellDown",Bx("0x41"),Bx("0x13")]){const n=t.commands.get(e);n.on(Bx("0x8"),((e,o,s)=>{if(s){const o=t[Bx("0x3b")][Bx("0x22")][Bx("0xb")][Bx("0x38")]()[Bx("0x4a")]()[Bx("0x1e")]((t=>t.is(Bx("0x15"),Bx("0x3d"))));this[Bx("0x4d")](n[Bx("0x21")],o)||(e[Bx("0x2e")]=!1,e.stop())}}),{priority:Bx("0x18")})}}_areSelectedCellsMergable(){const t=this[Bx("0x10")][Bx("0x35")][Bx("0x14")]("mergeTableCells"),e=this.editor[Bx("0x4c")][Bx("0x14")]("TableUtils");if(!t[Bx("0x3")])return!1;const n=e[Bx("0xa")](this.editor[Bx("0x3b")][Bx("0x22")][Bx("0xb")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x4d")](t,e))return!1;return!0}[Bx("0x4d")](t,e){const n=this[Bx("0x10")][Bx("0x4c")][Bx("0x14")](Bx("0x2d")),o=this.editor[Bx("0x3b")][Bx("0x45")](t),s=this[Bx("0x10")][Bx("0x3b")][Bx("0x45")](e),r=new Set,i=new Set;for(const t of n[Bx("0x1")]())if((Bx("0x11")==t[Bx("0x42")]||"deletion"==t[Bx("0x42")]||Bx("0x49")==t[Bx("0x23")])&&t[Bx("0x1b")])for(const e of t[Bx("0x12")]())e[Bx("0x1d")](o,!0)&&r[Bx("0x34")](t[Bx("0x42")]+":"+t.author.id),e.containsRange(s,!0)&&i[Bx("0x34")](t[Bx("0x42")]+":"+t[Bx("0x3c")].id);if(r[Bx("0x17")]!=i.size)return!1;for(const t of r)if(!i[Bx("0x48")](t))return!1;return!0}}const Ux=["selection","formatBlock","mapper","from","headingColumns","isBefore","getColumnIndexes","data-suggestion","createRange","parent","markerRange","commandParams","TableEditing","childCount","markBlockFormat","data","ck-suggestion-marker-","editor","getRowIndexes","commandName","TableUtils","TrackChangesEditing","consumable","requires","*Format:* %0","change","downcastDispatcher","first","markerName","accept","commands","table","setTableRowHeader","getCellLocation","createPositionAfter","model","index","addClass","_splitMarkerName","addMarker:suggestion","document","enableCommand","end","registerCustomCallback","FORMAT_REGULAR_ROW","findAncestor","options","includes","createPositionBefore","showSuggestionHighlights","forceValue","getSelectionAffectedTableCells","registerDescriptionCallback","ck-suggestion-marker--active","writer","markerNameToElements","_suggestionFactory","get","afterInit","setTableColumnHeader","_descriptionFactory","value","getChild","getAttribute","last","item","plugins","has","getSuggestion","_acceptFormatSuggestionCallbackFactory","removeMarker:suggestion","locale","unbindElementFromMarkerName","createTableWalker","nodeBefore","editing","stop","format","removeClass","highest","nodeAfter"];var Gx,Hx;Gx=Ux,Hx=221,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x2d")](){return[Mx]}[zx("0x50")](){const t=this[zx("0x27")];if(!t.plugins[zx("0x8")](zx("0x22")))return;const e=t[zx("0xc")],n=t.plugins[zx("0x4f")](zx("0x2b")),o=t[zx("0x7")][zx("0x4f")](zx("0x2a")),s=t[zx("0x7")][zx("0x4f")](Mx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[zx("0x32")]),c=n[zx("0x9")](a);if(!c[zx("0x25")]||zx("0x0")!=c[zx("0x25")].commandName)return;if(r[zx("0x6")])return void s[zx("0x11")]();if(!i[zx("0x2c")].consume(r.markerRange,s.name))return;const l=r[zx("0x20")].start[zx("0x15")],d=r[zx("0x20")][zx("0x40")][zx("0xf")],u=l[zx("0x1f")][zx("0x1f")],{column:g}=o[zx("0x37")](l),{column:m}=o[zx("0x37")](d);for(let s=g;s<=m;s++){const c=o[zx("0xe")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i.mapper.toViewElement(s);i[zx("0x4c")][zx("0x3b")](zx("0x26")+x,c),e&&i.writer.setAttribute(zx("0x1d"),a,c),i[zx("0x18")].bindElementToMarker(c,r[zx("0x32")]),t&&(n.activeMarkers[zx("0x45")](r[zx("0x32")])?i[zx("0x4c")].addClass(zx("0x4b"),c):i.writer[zx("0x13")](zx("0x4b"),c))}}}}n[zx("0x3f")]("setTableRowHeader",((e,s)=>{const r=o[zx("0x49")](t[zx("0x39")][zx("0x3e")].selection),i=o[zx("0x28")](r),x=r[0][zx("0x43")]("table"),a=x[zx("0x4")]("headingRows")||0,c=s&&null!==s[zx("0x48")]?s[zx("0x48")]:!t[zx("0x34")][zx("0x4f")](zx("0x36"))[zx("0x2")],l=c?i[zx("0x5")]:i[zx("0x31")],d=x[zx("0x3")](l);let u;if(c){const e=x[zx("0x3")](a);if(d[zx("0x3a")]<e[zx("0x3a")])return;u=t[zx("0x39")][zx("0x1e")](t[zx("0x39")][zx("0x46")](e[zx("0x3")](0)),t[zx("0x39")][zx("0x38")](d[zx("0x3")](d.childCount-1)))}else{const e=x[zx("0x3")](a-1);if(!e)return;u=t[zx("0x39")][zx("0x1e")](t[zx("0x39")].createPositionBefore(d[zx("0x3")](0)),t[zx("0x39")][zx("0x38")](e[zx("0x3")](e[zx("0x23")]-1)))}t[zx("0x39")][zx("0x2f")]((()=>{n.markBlockFormat(u,{commandName:zx("0x36"),commandParams:[{forceValue:c}]},[],zx("0x36"))}))})),n[zx("0x3f")]("setTableColumnHeader",((e,o)=>{const s=t[zx("0x7")][zx("0x4f")](zx("0x2a")),r=s[zx("0x49")](t.model[zx("0x3e")][zx("0x16")]),i=s[zx("0x1c")](r),x=r[0][zx("0x43")](zx("0x35")),a=x[zx("0x4")](zx("0x1a"))||0,c=o&&null!==o[zx("0x48")]?o[zx("0x48")]:!t[zx("0x34")][zx("0x4f")](zx("0x0"))[zx("0x2")];let l;const d=x[zx("0x3")](0),u=c?i[zx("0x5")]:i[zx("0x31")],g=s[zx("0xe")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x19")](g)[0].cell;if(c){const e=d[zx("0x3")](a);if(m[zx("0x1b")](e))return;l=t[zx("0x39")][zx("0x1e")](t[zx("0x39")][zx("0x46")](e),t[zx("0x39")][zx("0x38")](m))}else{const e=d[zx("0x3")](a-1);if(!e)return;l=t[zx("0x39")][zx("0x1e")](t.model[zx("0x46")](m),t[zx("0x39")].createPositionAfter(e))}t[zx("0x39")].change((()=>{n[zx("0x24")](l,{commandName:zx("0x0"),commandParams:[{forceValue:c}]},[],zx("0x0"))}))})),t[zx("0x10")][zx("0x30")].on(zx("0x3d"),r(),{priority:zx("0x14")}),t[zx("0x25")][zx("0x30")].on(zx("0x3d"),((t,e,n)=>{n[zx("0x44")][zx("0x47")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x14")}),t.editing[zx("0x30")].on(zx("0xb"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x3c")](e[zx("0x32")]),i=n[zx("0x9")](r);if(!i[zx("0x25")]||zx("0x0")!=i[zx("0x25")][zx("0x29")])return;const x=o[zx("0x18")][zx("0x4d")](e.markerName);if(x)for(const t of x)o[zx("0x4c")][zx("0x13")](zx("0x26")+s,t),o[zx("0x4c")].removeClass(zx("0x4b"),t),o.writer.removeAttribute("data-suggestion",t),o[zx("0x18")][zx("0xd")](t,e[zx("0x32")])}),{priority:zx("0x14")}),n[zx("0x1")][zx("0x4a")]((t=>{const{data:n}=t;if(n){if(zx("0x36")==n.commandName){const t=n[zx("0x21")][0][zx("0x48")];return o(Yo(e,t?"FORMAT_HEADER_ROW":zx("0x42")))}if(zx("0x0")==n[zx("0x29")]){const t=n[zx("0x21")][0][zx("0x48")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:zx("0x12"),content:Yo(e,zx("0x2e"),t)}}}));const i=s[zx("0xa")]();n[zx("0x4e")][zx("0x41")](zx("0x17"),"setTableRowHeader",zx("0x33"),i),n[zx("0x4e")].registerCustomCallback(zx("0x17"),zx("0x0"),zx("0x33"),i)}}const Vx=["start","ck-suggestion-marker","paragraph","columnInsertionRanges","join","documentSelection","first","tableCellBorderStyle","name","Users","register","_splitMarkerName","getShiftedBy","getAttributes","removeMarker","dataDowncast","element","change","registerPostFixer","tableCellVerticalAlignment","ck-suggestion-marker--active","set","getSuggestionCallback","suggestion-td","differ","getSelectionAffectedTableCells","rowInsertionIndexes","createRange","findAncestor","markMultiRangeDeletion","suggestion","endColumn","requires","getChangedMarkers","createRangeOn","accept","insertContent","move","fill","getRange","trackChanges","for","TrackChangesEditing","setAttribute","getAllAdjacentSuggestions","hasSuggestion","createTableWalker","tableCellBorderColor","getSuggestions","getContainedElement","getSuggestion","tablePasteColumn","redo","suggestion:formatBlock:tablePasteCell","view","stop","getMarkers","low","from","isEqual","createPositionBefore","createRangeIn","selection","getChanges","setAttributes","commands","TableUtils","nextSibling","table","insertionRanges","markMultiRangeInsertion","tableCellHorizontalAlignment","editing","previous","tableCellBorderWidth","conversion","add","filter","cell","tablePasteChainId","tableCell","entries","clipboardOutput","end","last","includes","editor","discard","afterInit","activeMarkers","column","oldRange","every","tablePaste","_replaceTableSlotCell","markers","_suggestionFactory","locale","insertion","getRowIndexes","previousSibling","getItems","tableCellBackgroundColor","find","markerToHighlight","tablePasteCell","push","plugins","getColumns","getRows","showSuggestionHighlights","map","_getCoordsForCells","next","model","startsWith","updateMarker","fromEntries","$graveyard","remove","endRow","getTableIfOnlyTableInContent","author","suggestionUnloaded","get","newRange","formatBlock","cells","some","type","insert","high","row","schema","deletionRanges","removeMarkers","has","attributes","elementToElement","length","TableClipboard","rowInsertionRanges","value","document","_descriptionFactory","getRanges","unwrap","batch","markerName","listenTo","root","registerCustomCallback","position","tableCellSuggestion","subType","deletion","registerDescriptionCallback","isInContent","markerAttributes","isEmpty","getChild","tablePasteRow"];var Kx,qx;Kx=Vx,qx=484,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x4c"),Xx("0x31"),Xx("0x9"),Xx("0x49"),Xx("0x15"),Xx("0x68"),"tableCellPadding"],Jx=Object[Xx("0x77")]($x.map((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x22")](){return[Mx]}[Xx("0x5a")](){const t=this[Xx("0x58")];if(!t.plugins[Xx("0x8a")](Xx("0x8e")))return;const n=t[Xx("0x6d")].get(Xx("0x2c")),o=t[Xx("0x6d")][Xx("0x7e")](Xx("0x44")),s=t.plugins.get(Mx),r=t[Xx("0x6d")].get(Xx("0x8e"));s._tablePostFixingSubtypes.push(Xx("0x1"),Xx("0x35")),t[Xx("0x74")][Xx("0x87")][Xx("0xc")](Xx("0x9b"),{allowIn:"tableCell",allowContentOf:Xx("0x52"),isLimit:!0}),t[Xx("0x4d")][Xx("0x8c")]({model:Xx("0x9b"),view:Xx("0x19")});let i=null;t[Xx("0x74")].on(Xx("0x26"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x8d")]-1];l&&l.forceDefaultExecution||n._isForcedDefaultExecutionBlock||this.editor[Xx("0x43")][Xx("0x7e")](Xx("0x2a"))[Xx("0x90")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x7")))return!1;const r=s[Xx("0x7b")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x1b")](n.document[Xx("0x40")]);if(!i.length)return!1;const x=i[0].findAncestor(Xx("0x46")),a=o[Xx("0x65")](i),c=o.getColumnIndexes(i),l={startRow:a[Xx("0x8")],endRow:a[Xx("0x56")],startColumn:c[Xx("0x8")],endColumn:c[Xx("0x56")]};return 1==i[Xx("0x8d")]&&(l[Xx("0x7a")]+=o[Xx("0x6f")](r)-1,l[Xx("0x21")]+=o[Xx("0x6e")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x74")],o,r)&&(s[Xx("0x39")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x74")][Xx("0x13")]((()=>{t[Xx("0x74")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Xx("0x8d")]&&n[Xx("0x48")](s,"tablePasteRow",{tablePasteChainId:o}),r[Xx("0x8d")]&&n[Xx("0x48")](r,"tablePasteColumn",{tablePasteChainId:o}),a.length&&n[Xx("0x48")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[Xx("0x1f")](c,Xx("0x5f"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n.markMultiRangeBlockFormat(l[Xx("0x71")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x6b"),{tablePasteChainId:o});if(d){const e=d[Xx("0x3a")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x74")][Xx("0x24")](o),i=e[Xx("0x69")]((t=>t[Xx("0x29")]()[Xx("0x3d")](r)));i&&n[Xx("0x6c")]([i[Xx("0xa")],s])}n.length&&d[Xx("0x2d")](Xx("0xa0"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xx("0x85")]+10}),t.plugins[Xx("0x7e")](Xx("0x8e")).on(Xx("0x60"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x39")]();const r=n[Xx("0x50")],x=o,a=Zx(r),c=Zx(x);t.return=r;let l=null,d=null;if(c||a)if(a&&!c){s[Xx("0x79")](r[Xx("0x0")](0));for(const t of Array[Xx("0x3c")](x.getChildren()))s[Xx("0x84")](t,r,Xx("0x55"));const t=i[Xx("0x1c")][Xx("0x57")](n[Xx("0x86")]),e=i.columnInsertionIndexes[Xx("0x57")](n[Xx("0x5c")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(d=s[Xx("0x3f")](r));else{const t=s.createElement(Xx("0x9b")),e=s.createElement("tableCellSuggestion");s.wrap(s[Xx("0x3f")](r),e),s[Xx("0x84")](t,r,0);for(const e of Array.from(x.getChildren()))s[Xx("0x84")](e,t,"end");l=s[Xx("0x24")](t),d=s[Xx("0x24")](e)}const u=Array[Xx("0x3c")](x[Xx("0xf")]())[Xx("0x4f")]((([t])=>$x.includes(t)));i.cells.push({element:r,attributes:u[Xx("0x8d")]?Object[Xx("0x77")](u):null}),l&&i[Xx("0x47")][Xx("0x6c")](l),d&&i[Xx("0x88")][Xx("0x6c")](d)}),{priority:Xx("0x85")}),o.on("insertColumns",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.columns||1;i.columnInsertionIndexes=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of o[Xx("0x30")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x5")].push(t[Xx("0x74")][Xx("0x24")](e))}),{priority:"low"}),o.on("insertRows",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x1c")]=new Array(a)[Xx("0x28")](x).map(((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))i[Xx("0x8f")][Xx("0x6c")](t[Xx("0x74")][Xx("0x24")](e))}),{priority:Xx("0x3b")}),n[Xx("0x92")][Xx("0x9e")]((e=>{if(e.subType&&e[Xx("0x9c")][Xx("0x75")](Xx("0x5f")))return e[Xx("0x4b")]?{}:{type:Xx("0x64"),content:Yo(t[Xx("0x63")],"*Replace table cells*")}}));const x=()=>!1;for(const t of[Xx("0x5f"),Xx("0x35"),"tablePasteRow",Xx("0x6b")])n[Xx("0x62")].registerCustomCallback(Xx("0x64"),t,Xx("0x6"),x),n[Xx("0x62")][Xx("0x99")](Xx("0x9d"),t,"join",x),n[Xx("0x62")].registerCustomCallback(Xx("0x80"),t,"join",x);n[Xx("0x62")][Xx("0x99")](Xx("0x80"),Xx("0x6b"),Xx("0x59"),x),n[Xx("0x62")].registerCustomCallback(Xx("0x80"),"tablePasteCell","accept",((e,n,o)=>{const s=e.map((t=>t[Xx("0x33")]()))[Xx("0x4f")]((t=>t)),r=new Map(s[Xx("0x71")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x81")])e&&r[Xx("0x17")](t,e);else if(o&&o[Xx("0xa0")])for(const[e,n]of Object[Xx("0x53")](o[Xx("0xa0")])){const o=t[Xx("0x74")][Xx("0x61")][Xx("0x7e")](e),s=o?o[Xx("0x29")]()[Xx("0x33")]():null;s&&r[Xx("0x17")](s,n)}t[Xx("0x74")][Xx("0x13")]((t=>{for(const[e,n]of r)t[Xx("0x42")]({...Jx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory.registerCustomCallback(e,Xx("0x5f"),o,((s,r,i)=>{t[Xx("0x74")][Xx("0x13")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x2")].nodeAfter;e.is(Xx("0x12"),"tableCellSuggestion")&&x[Xx("0x6c")](e)}n._suggestionFactory[Xx("0x18")](e,null,o)(s,r,i);for(const e of x)Xx("0x78")!=e[Xx("0x98")].rootName&&t[Xx("0x94")](e)}))}))};a(Xx("0x64"),Xx("0x25")),a(Xx("0x64"),Xx("0x59")),a(Xx("0x9d"),Xx("0x25")),a(Xx("0x9d"),Xx("0x59")),n[Xx("0x62")][Xx("0x99")](Xx("0x64"),Xx("0x1"),Xx("0x59"),(t=>{const e=t[Xx("0x71")]((t=>t[Xx("0x33")]())),n=e[0][Xx("0x1e")](Xx("0x46")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o.removeRows(n,{at:r,rows:i-r+1})})),n._suggestionFactory.registerCustomCallback(Xx("0x64"),"tablePasteColumn","discard",(t=>{const e=t[Xx("0x71")]((t=>t.getContainedElement())),n=e[0][Xx("0x1e")](Xx("0x46")),{minColumn:r,maxColumn:i}=s[Xx("0x72")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x9c")]||!e.subType[Xx("0x75")]("tablePaste"))return;const o=e[Xx("0x8b")].tablePasteChainId,s=n[Xx("0x32")]()[Xx("0x4f")]((t=>t.isInContent&&t[Xx("0x8b")]&&t.attributes[Xx("0x51")]==o));s[Xx("0x8d")]&&e[Xx("0x2e")]()[Xx("0x8d")]!=s[Xx("0x8d")]&&s.reduce(((t,e)=>(t[Xx("0x73")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0xd")](t[Xx("0x96")]),s=[Xx("0x3"),"ck-suggestion-marker-insertion"],r=n[Xx("0x5b")][Xx("0x57")](t[Xx("0x96")]);return r&&s.push(Xx("0x16")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Xx("0x85")}),n.on(Xx("0x7d"),c,{priority:Xx("0x85")}),t[Xx("0x74")][Xx("0x91")][Xx("0x14")]((()=>{let e=!1;const o=Array[Xx("0x3c")](t.model[Xx("0x91")][Xx("0x1a")][Xx("0x23")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0xd")](s);if(Xx("0x20")!=o||"deletion"!=i||r.oldRange)continue;if(!n[Xx("0x2f")](x))continue;const a=n[Xx("0x34")](x).getRanges(),c=t[Xx("0x6d")][Xx("0x7e")](Xx("0xb")).me;for(const t of n.getSuggestions())if(t[Xx("0x9f")]&&t[Xx("0x7c")]==c&&"formatBlock"==t.type&&Xx("0x6b")==t.subType&&t[Xx("0x93")]()[Xx("0x5e")]((t=>a[Xx("0x82")]((e=>e.containsRange(t,!0))))))for(const n of t[Xx("0x2e")]())n[Xx("0x9f")]&&(n[Xx("0x59")](),e=!0)}return e})),t[Xx("0x74")][Xx("0x91")][Xx("0x14")]((e=>{const o=t[Xx("0x43")][Xx("0x7e")](Xx("0x36"));if(!o||!o._createdBatches[Xx("0x8a")](e[Xx("0x95")]))return!1;let s=!1;const r=t[Xx("0x6d")][Xx("0x7e")](Xx("0xb")).me,i=t[Xx("0x74")][Xx("0x91")][Xx("0x1a")][Xx("0x41")](),x=Array[Xx("0x3c")](t[Xx("0x74")].document[Xx("0x1a")][Xx("0x23")]()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0xd")](t);return"suggestion"==o&&Xx("0x5f")==s&&i==r.id&&!e[Xx("0x5d")]}));for(const t of i){if(Xx("0x84")!=t[Xx("0x83")]||Xx("0x9b")!=t.name||1!=t[Xx("0x8d")])continue;const n=e[Xx("0x1d")](t[Xx("0x9a")],t.position[Xx("0xe")](1));if(!x[Xx("0x69")]((({data:t})=>t[Xx("0x7f")][Xx("0x3d")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e[Xx("0x76")](t,{range:n}),s=!0;break}}return s})),t.model.document[Xx("0x14")]((e=>{let o=!1;const s=t[Xx("0x6d")][Xx("0x7e")](Xx("0xb")).me,r=n.getSuggestions()[Xx("0x4f")]((t=>t.isInContent&&t[Xx("0x7c")]==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t[Xx("0x9c")])for(const e of t[Xx("0x3a")]()){const n=e[Xx("0x29")]()[Xx("0x33")]();if(n)if(n.is("element","tableCellSuggestion")&&Zx(n)){t.removeMarker(e[Xx("0xa")]),i[Xx("0x4e")](n),o=!0;const s=n[Xx("0x45")],r=n[Xx("0x66")],a=s&&s.is(Xx("0x12"),Xx("0x9b")),c=r&&r.is("element",Xx("0x9b"));a&&!i[Xx("0x8a")](s)&&x[Xx("0x4e")](s),c&&!i[Xx("0x8a")](r)&&x[Xx("0x4e")](r)}else n.is("element",Xx("0x4"))&&n[Xx("0xa1")]&&(t[Xx("0x10")](e[Xx("0xa")]),o=!0)}else if(Xx("0x6b")==t[Xx("0x9c")]){if(!t[Xx("0x8b")]||!t[Xx("0x8b")][Xx("0x51")])continue;const e=t[Xx("0x8b")].markerAttributes;if(e&&Object.keys(e).length)continue;const n=t[Xx("0x8b")][Xx("0x51")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x9c")]&&e[Xx("0x9c")][Xx("0x75")](Xx("0x5f"))){if(!e[Xx("0x8b")][Xx("0x51")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x8b")][Xx("0x51")]==n){s=!1;break}}i&&s&&(t[Xx("0x89")](),o=!0)}for(const t of i)e[Xx("0x79")](t);for(const t of x)e[Xx("0x94")](t);return o})),t[Xx("0x4d")][Xx("0x2b")]("editingDowncast")[Xx("0x6a")]({model:Xx("0x37"),view:(t,e)=>l(t),converterPriority:Xx("0x85")}),t[Xx("0x4d")][Xx("0x2b")](Xx("0x11")).markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e.options[Xx("0x70")]?l(t,!1):null,converterPriority:Xx("0x85")});const d=t[Xx("0x4a")][Xx("0x38")];this[Xx("0x97")](d[Xx("0x91")],Xx("0x54"),((t,e)=>{const n=[];for(const t of d.createRangeIn(e.content)[Xx("0x67")]())t.is(Xx("0x12"),"suggestion-td")&&n[Xx("0x6c")](t);d[Xx("0x13")]((t=>{for(const e of n)t[Xx("0x27")](t[Xx("0x3f")](e),t[Xx("0x3e")](e)),t.remove(e)}))}))}}function Zx(t){if(t[Xx("0xa1")])return!0;const e=t[Xx("0x0")](0);return e.is(Xx("0x12"),Xx("0x4"))&&e[Xx("0xa1")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x30")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["_suggestionFactory","formatBlock","subType","registerCustomCallback","discard","format","has","tableWidth","editor","model","getContainedElement","getAttribute","commandParams","getSuggestionCallback","accept","_descriptionFactory","get","resizeTable","plugins","handleSuggestionDescription","getSuggestions","handleResizeTableWidthCommand","getSelectedElement","columnWidths","bind","table","TableColumnResizeEditing","resizeTableWidth","enableCommand","afterInit","selection","*Format:* resize table","formatGroupId","markBlockFormat","locale","author","TrackChangesEditing"];var ea,na;ea=ta,na=388,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0xb")](){if(!this.editor.plugins[oa("0x19")](oa("0x8")))return;const t=this[oa("0x1b")][oa("0x0")][oa("0x23")](oa("0x12"));t[oa("0xa")]("resizeTableWidth",this[oa("0x3")].bind(this)),t[oa("0xa")]("resizeColumnWidths",this[oa("0x3")].bind(this)),t._suggestionFactory[oa("0x16")](oa("0x14"),oa("0x24"),oa("0x21"),t[oa("0x13")][oa("0x20")](oa("0x14"),null,"discard")),t[oa("0x13")].registerCustomCallback(oa("0x14"),"resizeTable",oa("0x17"),t[oa("0x13")].getSuggestionCallback(oa("0x14"),null,"accept")),t[oa("0x22")].registerDescriptionCallback(this[oa("0x1")][oa("0x6")](this))}handleResizeTableWidthCommand(t,e){const n=this.editor.plugins.get("TrackChangesEditing"),o=this[oa("0x1b")][oa("0x0")][oa("0x23")](oa("0x8")),s=e[oa("0x7")]||this[oa("0x1b")][oa("0x1c")].document[oa("0xc")][oa("0x4")]();this.editor[oa("0x1c")].change((()=>{const r=o.getColumnGroupElement(s);let i=r?o.getTableColumnsWidths(r):null,x=s[oa("0x1e")](oa("0x1a"))||null;const a=e.tableWidth||x,c=e[oa("0x5")]||i,l=this[oa("0x1b")][oa("0x0")].get("Users").me;for(const t of n[oa("0x2")]()){const e=t[oa("0x1d")]();if(oa("0x24")===t[oa("0x15")]&&e===s){t[oa("0x11")]!==l&&t[oa("0x17")]();const e=t.data[oa("0x1f")];x=e[0][oa("0x1a")],i=e[0][oa("0x5")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0xf")](s,{commandName:oa("0x9"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x24")},[],"resizeTable")}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&oa("0x24")===e[oa("0xe")]){const t=oa("0xd");return{type:oa("0x18"),content:Yo(this.editor[oa("0x10")],t)}}}}const ra=["get","TrackChangesEditing","enableCommand","afterInit","insertTemplate","Template"];var ia,xa;ia=ra,xa=290,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x1")](){const t=this.editor;t.plugins.has(aa("0x3"))&&t.plugins[aa("0x4")](aa("0x5"))[aa("0x0")](aa("0x2"))}}const la=["insertTableOfContents","enableCommand","afterInit","tableOfContents","plugins","editor","commands","get","locale","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS","TrackChangesEditing","_descriptionFactory"];var da,ua;da=la,ua=297,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x4")](){const t=this[ga("0x7")];if(!t[ga("0x8")][ga("0x9")](ga("0x2")))return;t[ga("0x6")][ga("0x9")](ga("0x0"))[ga("0x3")](ga("0x2"));const e=t[ga("0x6")][ga("0x9")](ga("0x0")),n=t[ga("0xa")];e[ga("0x1")][ga("0xb")](ga("0x5"),(t=>Yo(n,ga("0xc"),t)))}}const fa=["removeMarker","getChangedMarkers","isTouching","differ","model","has","newRange","start","get","registerPostFixer","editor","getNearestSelectionRange","_splitMarkerName","_descriptionFactory","title-content","end","nodeBefore","element","createRange","plugins","afterInit","Title","document"];var ha,ba;ha=fa,ba=263,function(t){for(;--t;)ha.push(ha.shift())}(++ba);const pa=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[pa("0xa")](){const t=this[pa("0x0")];if(!t.plugins[pa("0x12")](pa("0xb")))return;const e=t[pa("0x9")][pa("0x15")]("TrackChangesEditing");e[pa("0x3")].registerElementLabel("title-content",(()=>Yo(t.locale,"ELEMENT_TITLE"))),t.model[pa("0xc")][pa("0x16")]((n=>{let o=!1;const s=Array.from(t.model[pa("0xc")][pa("0x10")][pa("0xe")]());for(const{name:r,data:i}of s){const{group:s}=e[pa("0x2")](r);if("suggestion"!==s||!i.newRange)continue;const x=i[pa("0x13")],a=x[pa("0x5")][pa("0x6")];if(!a||!a.is(pa("0x7"),pa("0x4")))continue;if(!x[pa("0x14")][pa("0xf")](x.end))continue;const c=t[pa("0x11")].schema[pa("0x1")](x[pa("0x5")],"forward");if(c&&c.isCollapsed){const t=n[pa("0x8")](x[pa("0x14")],c[pa("0x14")]);t.isEqual(x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[pa("0xd")](r),o=!0)}return o}))}}const _a=["plugins","enableCommand","redo","afterInit","has","TrackChangesEditing","undo","editor"];var Ta,Ca;Ta=_a,Ca=273,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x2")](){const t=this[ya("0x6")],e=t[ya("0x7")].get(ya("0x4"));t[ya("0x7")][ya("0x3")]("UndoEditing")&&(e.enableCommand(ya("0x5")),e[ya("0x0")](ya("0x1")))}}const Aa=["editor","TableCaptionEditing","plugins","get","enableCommand","requires","TrackChangesEditing","toggleTableCaption","afterInit"];var va,Ra;va=Aa,Ra=484,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x7")](){return[Mx]}[Sa("0x1")](){const t=this[Sa("0x2")];t[Sa("0x4")].has(Sa("0x3"))&&t[Sa("0x4")][Sa("0x5")](Sa("0x8"))[Sa("0x6")](Sa("0x0"))}}const La=["change","_getTranslationKeyForListStyle","styles","get","toUpperCase","bind","_getSuggestionBlocksForListStyle","numbered","startIndex","isFirstBlockOfListItem","*Format:* set order to regular","replace","editor","TrackChangesEditing","*Format:* set order to reversed","listReversed","format","locale","commandParams","listStyle","handleListStyleCommand","has","expandListBlocksToCompleteList","_getSuggestionBlocks","length","model","getListTypeFromListStyleType","ELEMENT_","isListItemBlock","commandName","enableCommand","document","DocumentListPropertiesUtils","list.properties","getSelectedBlocks","getAttribute","reversed","handleListStartCommand","*Format:* set start index to %0","selection","handleListReversedCommand","*Change to:* %0","listStart","markMultiRangeBlockFormat","DocumentListUtils","DocumentListPropertiesEditing","push","type","plugins","config","handleDescriptions"];var Na,wa;Na=La,wa=118,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{afterInit(){if(!this.editor.plugins[Ma("0x5")](Ma("0x1d")))return;const t=this[Ma("0x2f")][Ma("0x21")].get(Ma("0x11")),e=this[Ma("0x2f")][Ma("0x20")][Ma("0x26")]("TrackChangesEditing");t[Ma("0x25")]&&e.enableCommand(Ma("0x3"),this[Ma("0x4")].bind(this)),t[Ma("0x14")]&&e[Ma("0xe")](Ma("0x32"),this[Ma("0x18")][Ma("0x28")](this)),t[Ma("0x2b")]&&e[Ma("0xe")](Ma("0x1a"),this[Ma("0x15")][Ma("0x28")](this)),e._descriptionFactory.registerDescriptionCallback(this[Ma("0x22")][Ma("0x28")](this))}handleListStyleCommand(t,e={}){const n=this[Ma("0x2f")][Ma("0x20")][Ma("0x26")]("TrackChangesEditing"),o=this._getSuggestionBlocksForListStyle();this[Ma("0x2f")][Ma("0x9")].change((()=>{n[Ma("0x1b")](o,{commandName:Ma("0x3"),commandParams:[{type:e.type}],formatGroupId:Ma("0x3")})}))}[Ma("0x18")](t,e={}){const n=this[Ma("0x2f")].plugins[Ma("0x26")](Ma("0x30")),o=this.editor[Ma("0x20")].get(Ma("0x1c")),s=this[Ma("0x7")]((t=>o[Ma("0xc")](t)&&Ma("0x2a")===t[Ma("0x13")]("listType")));null!==s&&this[Ma("0x2f")][Ma("0x9")][Ma("0x23")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Ma("0x32"),commandParams:[{reversed:e[Ma("0x14")]}],formatGroupId:Ma("0x32")})}))}[Ma("0x15")](t,e={}){const n=this[Ma("0x2f")][Ma("0x20")][Ma("0x26")](Ma("0x30")),o=this.editor[Ma("0x20")][Ma("0x26")](Ma("0x1c")),s=this[Ma("0x7")]((t=>o.isListItemBlock(t)&&"numbered"===t[Ma("0x13")]("listType")));null!==s&&this[Ma("0x2f")][Ma("0x9")].change((()=>{n[Ma("0x1b")](s,{commandName:Ma("0x1a"),commandParams:[{startIndex:e[Ma("0x2b")]}],formatGroupId:Ma("0x1a")})}))}[Ma("0x22")](t){const e=this[Ma("0x2f")][Ma("0x1")],{data:n}=t;if(!n)return;let o,s;switch(n[Ma("0xd")]){case"listStyle":o=Ma("0x19"),s={type:Ma("0x0"),content:Yo(e,o,Yo(e,this[Ma("0x24")](n[Ma("0x2")][0][Ma("0x1f")])))};break;case Ma("0x32"):o=n[Ma("0x2")][0][Ma("0x14")]?Ma("0x31"):Ma("0x2d"),s={type:Ma("0x0"),content:Yo(e,o)};break;case Ma("0x1a"):o=Ma("0x16"),s={type:"format",content:Yo(e,o,n[Ma("0x2")][0].startIndex)}}return s}[Ma("0x29")](){const t=this[Ma("0x2f")][Ma("0x20")].get(Ma("0x1c"));let e=Array.from(this.editor.model[Ma("0xf")][Ma("0x17")][Ma("0x12")]());return e.push(...t[Ma("0x6")](e)),e=[...new Set(e)],e}[Ma("0x7")](t){const e=this[Ma("0x2f")][Ma("0x20")][Ma("0x26")](Ma("0x1c"));let n=Array.from(this.editor[Ma("0x9")].document.selection[Ma("0x12")]()).filter(t);if(!n[Ma("0x8")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[Ma("0x2c")](t)&&o[Ma("0x1e")](t);return o}[Ma("0x24")](t){return Ma("0xb")+this[Ma("0x2f")].plugins.get(Ma("0x10"))[Ma("0xa")](t)[Ma("0x27")]()+"_LIST_"+t[Ma("0x27")]()[Ma("0x2e")](/-/g,"_")}}const Fa=["editor","nodeAfter","_suggestionFactory","document","tableBorderColor","data","_getSuggestion","registerCustomCallback","TrackChangesTableProperties","tableCellProperties","afterInit","TableUtils","discard","handleSuggestionDescription","subType","TablePropertiesEditing","format","table","tableProperties","TableCellPropertiesEditing","selection","tableHeight","registerDescriptionCallback","accept","_handlePropertyChange","change","getAttribute","markBlockFormat","TrackChangesEditing","batch","tableCellBackgroundColor","locale","plugins","model","getSelectionAffectedTableCells","enqueueChange","tableCellHeight","formatBlock","tableCellBorderColor","get","enableCommand","tableCellPadding","commandParams","tableAlignment","getContainedElement","tableCellVerticalAlignment","has","getSuggestionCallback","join","*Format:* change table properties","setAttribute","getFirstPosition","tableBorderWidth","tableCellHorizontalAlignment","tableCellBorderStyle"];var Pa,Da;Pa=Fa,Da=167,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x10")]=[Ba("0x2"),"tableBorderStyle",Ba("0x32"),Ba("0x29"),"tableWidth",Ba("0x13"),"tableBackgroundColor"],this[Ba("0x7")]=[Ba("0x24"),Ba("0x34"),"tableCellBorderWidth",Ba("0x27"),"tableCellWidth",Ba("0x22"),Ba("0x1c"),Ba("0x33"),Ba("0x2b")]}static get pluginName(){return Ba("0x6")}[Ba("0x8")](){const t=this[Ba("0x35")][Ba("0x1e")].get(Ba("0x1a"));if(this[Ba("0x35")].plugins[Ba("0x2c")](Ba("0xd"))){for(const e of this[Ba("0x10")])t[Ba("0x26")](e,((t,n)=>{const o=this[Ba("0x35")].model.document[Ba("0x12")][Ba("0x31")]().findAncestor(Ba("0xf"));this._handlePropertyChange(e,[o],this[Ba("0x10")],Ba("0x10"),t,n)}));t._suggestionFactory.registerCustomCallback(Ba("0x23"),Ba("0x10"),Ba("0x15"),t[Ba("0x0")][Ba("0x2d")](Ba("0x23"),null,Ba("0xa"))),t[Ba("0x0")][Ba("0x5")]("formatBlock","tableProperties",Ba("0xa"),((t,e)=>this.handleDiscardAction(this.tableProperties,t,e))),t[Ba("0x0")][Ba("0x5")](Ba("0x23"),"tableProperties",Ba("0x2e"),(()=>!1))}if(this[Ba("0x35")][Ba("0x1e")][Ba("0x2c")](Ba("0x11"))){for(const e of this[Ba("0x7")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x35")][Ba("0x1e")][Ba("0x25")](Ba("0x9"))[Ba("0x20")](this[Ba("0x35")][Ba("0x1f")][Ba("0x1")][Ba("0x12")]);this._handlePropertyChange(e,o,this[Ba("0x7")],Ba("0x7"),t,n)}));t[Ba("0x0")].registerCustomCallback("formatBlock","tableCellProperties",Ba("0x15"),t[Ba("0x0")].getSuggestionCallback("formatBlock",null,"discard")),t[Ba("0x0")][Ba("0x5")](Ba("0x23"),"tableCellProperties",Ba("0xa"),((t,e)=>this.handleDiscardAction(this.tableCellProperties,t,e))),t[Ba("0x0")].registerCustomCallback(Ba("0x23"),"tableCellProperties",Ba("0x2e"),(()=>!1))}t._descriptionFactory[Ba("0x14")]((t=>this.handleSuggestionDescription(t)))}[Ba("0x16")](t,e,n,o,s,r){const i=this[Ba("0x35")][Ba("0x1e")][Ba("0x25")](Ba("0x1a"));this[Ba("0x35")].model[Ba("0x21")](r[Ba("0x1b")],(()=>{for(const t of e)if(this[Ba("0x4")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x18")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x19")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start[Ba("0x36")],s=n[Ba("0x28")][0];this[Ba("0x35")][Ba("0x1f")][Ba("0x17")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x30")](n,s[n],o):e.removeAttribute(n,o)}))}[Ba("0xb")](t){if(t[Ba("0x3")])switch(t[Ba("0xc")]){case Ba("0x10"):return{type:Ba("0xe"),content:Yo(this.editor[Ba("0x1d")],Ba("0x2f"))};case Ba("0x7"):return{type:Ba("0xe"),content:Yo(this.editor[Ba("0x1d")],"*Format:* change table cell properties")}}}[Ba("0x4")](t,e){const n=this[Ba("0x35")][Ba("0x1e")][Ba("0x25")]("TrackChangesEditing");for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[Ba("0x2a")]();if(o[Ba("0xc")]===e&&n===t)return o}return null}}const Ua=["getFirstRange","locale","moveTargetPosition","isAfter","authoredAt","containerElement","then","stop","oldRange","getWalker","resolve","accepted","commandName","track-changes-adapter-already-set","markerToData","removeMarker:suggestion:formatBlock","ck-suggestion-marker","addClass","start","getNearestSelectionRange","discardSelectedSuggestions","createRange","data","editingDowncast","_registerDefaultCallbacks","addSuggestion","formatBlock:join","_splitMarkerName","originalSuggestionId","formatGroupId","normal","insertion","getSuggestionCallback","config","_handleNewSuggestionMarker","error-saving-suggestion-data-suggestion-discarded","change","setSelection","markerToHighlight","change:data","isMultiRange","isExternal","acceptSelectedSuggestions","add","forceDefaultExecution","root","head","splice","track-changes-suggestion-not-found","define","removed","ck-suggestion-marker-","formatInline:join","backward","from","for","low","selection","_editor","move","@external","updateMarker","formatInline:accept","addSuggestionData","targetPosition","join","_saved","PendingActions","track-changes-adapter-missing-getsuggestion","listenTo","containsItem","group","value","addRange","_suggestionState","creator","isSelectable","isDocumentOperation","ck-suggestion-marker-formatBlock","_customCallbacks","_setSuggestionData","plugins","_onDiscard","_commentsRepository","deletion:chain","_joinWithAdjacentSuggestions","suggestion","applyOperation","track-changes-user-not-found","refresh","_setSuggestionRange","_updateSuggestionData","element","always","editing","isBefore","stopListening","deletion:discard","$textProxy","_addThreadToSuggestion","addMarker:suggestion:formatBlock","_rangeIsInLocalUserInsertion","accept","length","updateSuggestion","ready","_adapter","suggestionUnloaded","previous","discardSuggestion","writer","markers","insertion:chain","getRange","detach","deletion","discard","suggestion:","getChangedMarkers","unbind","_refreshSuggestionsChain","_defaultCallbacks","clone","howMany","_removeSuggestion","discardAllSuggestions","getUser","never","commentThread","track-changes-suggestion-data-mismatch","setAttribute","chain","options","nodeBefore","addUser","_suggestions","getMarkers","removeClass","reconvertMarker","createPositionBefore","_breakSuggestionMarker","widget","end","hasCommentThread","isArray","isNextTo","elementToElement","conversion","insertion:join","remove","item","position","markerReady","isBlock","containsRange","catch","trackChangesCommand","toViewElement","getAllAdjacentSuggestions","createPositionAt","deletion:accept","formatInline","attributes","dataToMarker","isCollapsed","nodeAfter","registerCustomCallback","next","values","_mergeNestedSuggestions","activeMarkers","containsPosition","splitPosition","fire","model","addHighlight","_suggestionFactory","isObject","fromCharCode","substr","rejected","_isForcedDefaultExecutionBlock","getIntersection","notReady","update:suggestion","PENDING_ACTION_SUGGESTION","sort","newRange","some","size","getCustomProperty","_getExternalAuthor","multi","documentSelection","createSelection","multipleBlocks","acceptSuggestion","markInsertion","_getSuggestionData","markMultiRangeDeletion","removeMarker","_findSuggestions","dataReady","_addSuggestionMarker","range","createElement","_joinSuggestions","mapper","change:activeMarkers","_getAuthorFromId","formatBlock","collaboration.channelId","formatInline:","editor","consumable","tablePasteChainId","enableCommand","batch","dataDowncast","getShiftedBy","commands","document","rootName","trackChanges.mergeNestedSuggestions","formatBlock:","addMarkerName","trackChanges","isRemovable","deletion:","bindElementToMarker","consume","push","showSuggestionHighlights","markMultiRangeInsertion","elementStart","markerName","parent","formatBlock:accept","trackChanges.trackFormatChanges","init","_enabledCommands","_model","upcast","acceptAllSuggestions","every","_createSuggestion","skipNestingCheck","addCommentThread","buildSuggestion","type","split","getMultiRangeId","registerPostFixer","get","addComment","insertContent","Users","high","assign","isAtStart","formatInline:discard","includes","differ","getChanges","ck-suggestion-marker--active","has","schema","external:","change:_saved","addMarker","getLastMatchingPosition","rethrowUnexpectedError","name","_checkSuggestionCorrectness","_cutOutSuggestionMarker","open","containsRangeInObject","_trackFormatChanges","author","isInsideObject","subType","suggestionChanged","isInContent","map","getCommentThread","deleteContent","requires","isIntersectingWithRange","set","delete","createdAt","addMarker:suggestion","removeMarkers","getFirstMarker","isAtEnd","hasSuggestion","isEqual","suggestion-type","suggestionLoaded","getItems","isLimit","after","insertion:","$graveyard","_isDataLoaded","getAncestors","adapter","getDifference","isOwn","getRanges","execute","CommentsRepository","filter","getAttribute","marker-count","hasComments","getSuggestion","formatBlock:discard","toJSON","unbindElementFromMarkerName","insertion:discard","clear","getSuggestions"];var Ga,Ha;Ga=Ua,Ha=164,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0x7a")](){return[za("0x93"),r.Users,t.PendingActions,cs,Cs,Rs,Ms,Bs,Ws,Js,er,Oa,xr,ur,pr,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,bi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,bx,yx,Sx,Mx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get pluginName(){return"TrackChangesEditing"}constructor(t){function e(t){return t[za("0x77")]((t=>String[za("0xe")](t))).join("")}super(t),this[za("0x7c")](za("0x6"),[]),this.on(za("0x2c"),((e,n,o,s)=>{this[za("0x4d")][za("0xc3")]((()=>{for(const e of[...s,...o])this._model[za("0x10e")][za("0x65")](e)&&t[za("0xfd")][za("0x129")](e)}))})),this._descriptionFactory=new ss(this[za("0x31")][za("0xa")][za("0x66")],this.editor[za("0xa0")]),this[za("0x109")]=null,this._suggestionFactory=new Va(this[za("0x31")]),this[za("0x126")]=new Map,this[za("0xf2")]=t.plugins.get(za("0x93")),this[za("0x4c")]=new Set,this[za("0x4d")]=this.editor[za("0xa")],this._suggestionState=new WeakMap,this[za("0x11")]=!1,t[za("0xc0")][za("0xd0")](za("0x4a"),"default"),this[za("0x71")]=t[za("0xc0")][za("0x59")](za("0x4a")),t[za("0xc0")][za("0xd0")](za("0x3b"),!0),this[za("0x5")]=t.config[za("0x59")]("trackChanges.mergeNestedSuggestions"),this[za("0x13b")]=new u(t,this[za("0x4c")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,56,49,50])}[za("0x4b")](){const t=this[za("0x31")];t[za("0x132")][za("0xd6")]("editingDowncast")[za("0xc5")]({model:za("0xf5"),view:t=>{const{id:e,type:n}=this[za("0xba")](t.markerName),o=["ck-suggestion-marker",za("0xd2")+n];let s=3e3;return this[za("0x6")][za("0x61")](t[za("0x47")])&&(o[za("0x43")](za("0x64")),s=3010),za("0x112")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x132")][za("0xd6")]("dataDowncast")[za("0xca")]((e=>{e.on(za("0x7f"),((e,n,o)=>{if(!o[za("0x123")].showSuggestionHighlights)return;const s=n.item;if(!s)return;const r=o.mapper[za("0x13c")](s);t[za("0xa")][za("0x66")][za("0xd")](s)&&r&&!r[za("0x1a")](za("0x12c"))&&r.is(za("0xa4"))&&(0,x.toWidget)(r,o.writer)}),{priority:za("0x5d")})})),t[za("0x132")][za("0xd6")](za("0x36"))[za("0xc5")]({model:za("0xf5"),view:(t,e)=>{if(!e[za("0x123")][za("0x44")])return null;const{type:n}=this._splitMarkerName(t[za("0x47")]);return{classes:[za("0xaf"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x135")])return;if(o.item.is(za("0xd8")))return void s[za("0x32")][za("0x42")](o.item,n[za("0x6c")]);const r=s.mapper[za("0x13c")](o[za("0x135")]);if(!o.item.is(za("0xfb"))||!t[za("0xa")][za("0x66")].isBlock(o[za("0x135")])||r[za("0x1a")](za("0xb")))return;const{id:i}=this[za("0xba")](o[za("0x47")]);s[za("0x10d")].addClass(["ck-suggestion-marker",za("0xed")],r),s.writer[za("0x121")]("data-suggestion",i,r),s[za("0x2b")][za("0x41")](r,o.markerName),e&&(this.activeMarkers[za("0x61")](o[za("0x47")])?s.writer[za("0xb0")](za("0x64"),r):s[za("0x10d")][za("0x128")](za("0x64"),r));for(const e of t[za("0xa")].createRangeIn(o[za("0x135")])[za("0x87")]())s[za("0x32")][za("0x42")](e,n.name);s[za("0x32")][za("0x42")](o[za("0x135")],n[za("0x6c")])};t[za("0x132")].for(za("0x36")).add((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[za("0x123")][za("0x44")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[za("0x132")][za("0xd6")](za("0x36"))[za("0xad")]({model:za("0xf5"),view:(t,e)=>e[za("0x123")].showSuggestionHighlights?null:{group:za("0xf5"),name:t[za("0xf")](11)}}),t[za("0x132")][za("0xd6")](za("0x4e"))[za("0x131")]({view:{name:za("0xf5"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x114")+t.getAttribute(za("0x85"))+":"+t[za("0x95")]("id");return t[za("0x95")](za("0x96"))&&(n+=":"+t[za("0x95")](za("0x96"))),e[za("0x29")]("$marker",{"data-name":n})}}),t.conversion.for(za("0x4e"))[za("0x142")]({view:za("0xf5")}),t[za("0x132")][za("0xd6")]("editingDowncast")[za("0xca")]((t=>{t.on(za("0x103"),n(),{priority:za("0x5d")})})),t[za("0x132")][za("0xd6")](za("0xb6")).add((t=>{t.on(za("0xae"),((t,e,n)=>{const o=n[za("0x2b")].markerNameToElements(e[za("0x47")]);if(o)for(const t of o)t.getCustomProperty(za("0xb"))||(n.writer[za("0x128")]([za("0xaf"),"ck-suggestion-marker-formatBlock",za("0x64")],t),n[za("0x10d")].removeAttribute("data-suggestion",t),n[za("0x2b")][za("0x9b")](t,e[za("0x47")]))}),{priority:za("0x5d")})})),t[za("0xa")][za("0x39")][za("0x58")]((e=>{let n=!1;const o=Array[za("0xd5")](t[za("0xa")][za("0x39")][za("0x62")][za("0x115")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0xba")](x);if(za("0xf5")!==o)continue;const d=this._suggestions[za("0x59")](l);if(null!=a[za("0x17")])if(za("0x140")==c&&(n=n||Xa(a.newRange,x,e,t[za("0xa")][za("0x66")])),a[za("0x17")].isCollapsed||za("0x8b")==a[za("0x17")][za("0xcc")][za("0x3a")]||za("0x2e")==c&&!Ja(a[za("0x17")])||"deletion"==c&&(qa(i=a[za("0x17")])||(r=i)[za("0xb1")][za("0x48")]==r.end[za("0x124")]&&r[za("0xb1")][za("0x82")]))e[za("0x24")](x),n=!0;else{if(!d||!d[za("0x76")])continue;s[za("0xca")](d)}}var r,i;return s[za("0x19")]>0&&(n=!!this[za("0xf4")](s)||n),n})),t[za("0xa")][za("0x39")].registerPostFixer((e=>{let n=!1;for(const o of t[za("0xa")][za("0x39")].differ[za("0x63")]()){if("insert"!=o[za("0x55")])continue;const s=o[za("0x136")][za("0x37")](o[za("0x106")]);if(s[za("0x82")])for(const r of this._suggestions[za("0x4")]()){if(r.isMultiRange||!r[za("0x76")])continue;if(za("0x2e")!=r.type)continue;const i=r[za("0x9f")]();if(i[za("0xb1")][za("0x48")]!=i[za("0x12d")][za("0x48")]&&i[za("0x12d")][za("0x84")](o.position)){const o=t[za("0xa")][za("0xb4")](i.start,s);e.updateMarker(r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[za("0xa")][za("0x10e")].on(za("0x14"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0xba")](e[za("0x6c")]),n=this[za("0x126")][za("0x59")](t);n&&n[za("0x3d")](e[za("0x6c")])}})),t[za("0xa")][za("0x39")].on(za("0xc6"),(()=>{const e=Array.from(t[za("0xa")][za("0x39")][za("0x62")].getChangedMarkers())[za("0x94")]((t=>za("0xf5")===this._splitMarkerName(t[za("0x6c")])[za("0xe6")]));if(0===e[za("0x106")])return;e[za("0x16")](((t,e)=>{const n=t.data[za("0xa7")],o=e[za("0xb5")][za("0xa7")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0xb1")][za("0xfe")](o[za("0xb1")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xba")](t);if(null===s[za("0xa7")]){const e=this._handleNewSuggestionMarker(t);o[za("0xca")](e)}else{const t=this[za("0x126")][za("0x59")](e);null!==s[za("0x17")]||t[za("0x76")]?(n[za("0xca")](t[za("0xcd")]),o[za("0xca")](t)):this[za("0x11b")](t)}}o[za("0x19")]>0&&this[za("0x117")](o);for(const t of n)this[za("0x9")]("suggestionChanged",t)})),t[za("0xa")].on(za("0xf6"),((e,n)=>{const o=n[0];if(!this[za("0x126")][za("0x19")])return;if(!o[za("0xec")])return;if(o[za("0x35")].isUndo||!o[za("0x35")].isLocal)return;let s,r;switch(o[za("0x55")]){case"insert":s=t.model[za("0x13e")](o[za("0x136")]),r=s[za("0x37")](o[za("0x11a")]);break;case za("0x56"):s=t[za("0xa")][za("0x13e")](o[za("0x8")]),r=t[za("0xa")][za("0x13e")](o[za("0xa1")]);break;case za("0xda"):s=t[za("0xa")][za("0x13e")](o[za("0xdf")]),r=s[za("0x37")](o[za("0x11a")]);break;default:return}const i=t[za("0xa")][za("0xb4")](s,r);t[za("0xa")][za("0xc3")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t[za("0xc7")])continue;if("formatInline"==t[za("0x55")])continue;const n=t[za("0xb5")]&&t[za("0xb5")][za("0x1f")];(za("0x2e")!=t[za("0x55")]||za("0x56")==o[za("0x55")]&&!n)&&(e.containsRangeInObject||za("0xbe")==t[za("0x55")]&&e[za("0x90")]||t[za("0x9f")]()[za("0x139")](i)&&this[za("0x12b")](t,s,r))}}))}),{priority:"lowest"}),t.model.on(za("0x79"),((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this[za("0x11")])return;if(!this[za("0x13b")][za("0xe7")])return;if(o[za("0x0")])return;const r=t[za("0xa")][za("0x66")],{start:i,end:x}=o.getFirstRange(),a=i[za("0x1")]&&r.isLimit(i[za("0x1")])?null:r[za("0xb2")](i,"forward"),c=x[za("0x124")]&&r[za("0x88")](x.nodeBefore)?null:r[za("0xb2")](x,za("0xd4")),l=t[za("0xa")][za("0xb4")](a?a.start:i,c?c.end:x);t[za("0xa")][za("0xc3")]((e=>{this.markDeletion(l);const n=t[za("0xa")][za("0x66")][za("0xb2")](l[za("0xb1")]);o.is(za("0x1d"))?e[za("0xc4")](n):o.setTo(n)})),e.stop()}),{priority:e.priorities[za("0xbd")]+10}),t[za("0xa")].on(za("0x5b"),((e,n)=>{const o=n[n[za("0x106")]-1];o&&o[za("0xcb")]||this[za("0x11")]||this[za("0x13b")][za("0xe7")]&&(t[za("0xa")].change((()=>{let o=t[za("0xa")][za("0x5b")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o[za("0x119")]();const s=o[za("0x12d")][za("0x124")],r=t[za("0xa")].schema;s&&r[za("0x138")](s)&&!r.isObject(s)&&(o=t[za("0xa")][za("0xb4")](o[za("0xb1")],t[za("0xa")][za("0x13e")](s,za("0x12d")))),this[za("0x21")](o)})),e[za("0xa6")]())}),{priority:za("0x5d")}),this[za("0x31")][za("0x38")][za("0xca")]("trackChanges",this[za("0x13b")]),this[za("0x34")](za("0x3e"));const o=new b(t,this[za("0x126")]);t[za("0x38")][za("0xca")]("acceptSuggestion",o),this[za("0x34")](za("0x20"));const s=new C(t,this[za("0x126")]);t.commands[za("0xca")]("discardSuggestion",s),this[za("0x34")](za("0x10c")),t.commands[za("0xca")](za("0x4f"),new F(t,o,this[za("0x126")])),this.enableCommand(za("0x4f")),t[za("0x38")][za("0xca")]("discardAllSuggestions",new F(t,s,this[za("0x126")])),this[za("0x34")](za("0x11c")),t[za("0x38")].add("acceptSelectedSuggestions",new U(t,o,this[za("0x126")])),this.enableCommand(za("0xc9")),t[za("0x38")][za("0xca")](za("0xb3"),new U(t,s,this._suggestions)),this[za("0x34")]("discardSelectedSuggestions");const r=t[za("0xf0")][za("0x59")](za("0x93"));this[za("0xe4")](r,za("0x5a"),((t,{threadId:e})=>{const n=this[za("0x126")][za("0x59")](e);n&&n[za("0x11f")]&&1===n[za("0x11f")][za("0x106")]&&this[za("0xfa")](e,{hasComments:!0})}),{priority:"low"}),this[za("0xe4")](r,"removeComment",((t,{threadId:e})=>{const n=this._suggestions[za("0x59")](e);n&&n[za("0x11f")]&&!n[za("0x11f")][za("0x106")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:za("0xd7")})}set[za("0x8e")](t){if(this[za("0x109")])throw new e.CKEditorError(za("0xac"),this);this[za("0x109")]=t}get[za("0x8e")](){return this[za("0x109")]}[za("0x9e")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x126")].values())t&&!e[za("0x76")]||n[za("0x43")](e);return e?n[za("0x77")]((t=>t[za("0x9a")]())):n}[za("0x98")](t){const n=this[za("0x126")][za("0x59")](t);if(!n)throw new e.CKEditorError(za("0xcf"),this);return n}[za("0x83")](t){return this[za("0x126")][za("0x65")](t)}[za("0xde")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t.type.split(":"),i=this[za("0x126")][za("0x59")](n)||this[za("0x51")](s,r,n,e,o);if(this[za("0x102")](i),this[za("0x6d")](i,s,r||null,e),i[za("0x7e")]=t[za("0x7e")],i[za("0x8c")]=!0,o&&o[za("0xdb")]){const t=o[za("0xdb")],e=this[za("0x1b")](t.authorName);i[za("0xa3")]=t[za("0x7e")],i[za("0x72")]=e,i[za("0xc8")]=!0}else i[za("0xa3")]=t[za("0x7e")];switch(t.data&&(i[za("0xb5")]=t[za("0xb5")]),t.attributes&&(i[za("0x141")]=t[za("0x141")]),this[za("0x109")]&&this[za("0x109")][za("0xb8")]||(i[za("0xe1")]=!0),this._suggestionState[za("0x59")](i)){case za("0x13"):this[za("0xe9")][za("0x7c")](i,za("0x26"));break;case za("0x137"):i[za("0x76")]?(this[za("0x117")](new Set([i])),this._joinWithAdjacentSuggestions(new Set([i])),this[za("0xe9")][za("0x7c")](i,"ready"),this.fire(za("0x86"),i)):this[za("0xe9")][za("0x7c")](i,"removed")}return i}[za("0x20")](t){this[za("0xcb")]((()=>{this.editor[za("0xa")].change((()=>{for(const e of t.getAllAdjacentSuggestions())e[za("0x105")]()}))}))}discardSuggestion(t){this[za("0xcb")]((()=>{this[za("0x31")].model[za("0xc3")]((()=>{for(const e of t[za("0x13d")]())e[za("0x113")]()}))}))}enableCommand(t,n){const o=this[za("0x31")].commands[za("0x59")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[za("0x4c")][za("0xca")](o),n&&o.on("execute",((t,e)=>{this[za("0x13b")].value&&(this[za("0x11")]||e[za("0x106")]>0&&e[e[za("0x106")]-1]&&e[e[za("0x106")]-1].forceDefaultExecution||(n(((...t)=>o[za("0x92")](...t,{forceDefaultExecution:!0})),...e),t[za("0xa6")]()))}),{priority:za("0x5d")})}[za("0xcb")](t){let n,o;const s=this[za("0x11")];this[za("0x11")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x11")]=!1),o&&e.CKEditorError[za("0x6b")](o,this),n}[za("0x21")](t,n=null,o={}){if(t[za("0x0")])return null;const s=this[za("0x31")].plugins[za("0x59")](za("0x5c")).me;for(const{suggestion:e,meta:s}of this[za("0x25")](t,za("0xbe")))if(s.isOwn){if(!s[za("0x130")]){if(s[za("0x70")]){if(!this._mergeNestedSuggestions||!tc(e,o))continue;return e}if(tc(e,o))return e;this._breakSuggestionMarker(e,t[za("0xb1")],t.end);break}if(n==e[za("0x74")]&&tc(e,o)){const n=e[za("0x9f")]();return n[za("0xb1")][za("0x84")](t.end)?this[za("0xf9")](e,this[za("0x4d")][za("0xb4")](t[za("0xb1")],n[za("0x12d")])):this[za("0xf9")](e,this[za("0x4d")][za("0xb4")](n[za("0xb1")],t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x8a")+n:za("0xbe"),a=this[za("0xef")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x27")](x,r,i,t),a}[za("0x45")](t,n=za("0x1c"),o={}){const s=this[za("0x31")].plugins.get(za("0x5c")).me,r=this._suggestionFactory[za("0xbf")](za("0xbe"),n,za("0xe0"));for(const e of this[za("0x9e")]())if(e[za("0x72")].id==s.id&&za("0xbe")==e[za("0x55")]&&e[za("0x74")]==n&&tc(e,o)&&(r(e.getRanges(),t)||r(t,e[za("0x91")]()))){for(const n of t)e.addRange(n);return e}for(const{suggestion:e,meta:n}of this[za("0x25")](t,za("0xbe"))){if(!n[za("0x90")])continue;if(!this[za("0x5")]&&n[za("0x70")])continue;if(!tc(e,o))continue;let s=!0;for(const n of e[za("0x91")]())for(const e of t)if(!n[za("0x139")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a="insertion:"+n,c=this[za("0xef")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x27")](a,i,x,e,Zo.getMultiRangeId());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t[za("0x0")])return null;if("never"===this[za("0x71")]){const e=this[za("0xc")][za("0xbf")](za("0x140"),o,za("0x105"));return this[za("0xcb")]((()=>e([t],n,s))),null}const r=this[za("0x31")].plugins[za("0x59")](za("0x5c")).me,i=[];if(za("0xfc")!==this[za("0x71")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0xbe")))n[za("0x90")]&&!n[za("0x73")]&&i[za("0x43")](...e[za("0x91")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x12")](o);e&&n[za("0x43")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x106")];){const o=n[e][za("0x8f")](t);n[za("0xce")](e,1,...o),e+=o[za("0x106")]}}return n}(t,i);x[za("0x106")]&&this[za("0x4d")].change((()=>{for(const t of x){const e=this[za("0xc")][za("0xbf")](za("0x140"),o,za("0x105"));this[za("0xcb")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t[za("0x12d")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,"formatInline")){if(!n[za("0x90")])continue;if(e[za("0x74")]!=o)continue;if(!tc(e,s))continue;const r=e.getFirstRange();if(r[za("0x139")](t,!0))return null;x=x[za("0xfe")](r[za("0xb1")])?x:r[za("0xb1")],a=a.isAfter(r[za("0x12d")])?a:r[za("0x12d")],i?r[za("0xb1")][za("0xfe")](i[za("0x9f")]()[za("0xb1")])?(i.removeMarkers(),i=e):e.removeMarkers():i=e}const c=this[za("0x4d")][za("0xb4")](x,a);if(i)this[za("0xf9")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0xef")]({id:t,type:za("0x30")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x27")]("formatInline:"+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[za("0xbc")]||(n[za("0xbc")]=n[za("0xab")]),n[za("0x1f")]=t.is(za("0x28")),s=s||$a(n);const i=o.map((t=>Qa(t,this[za("0x4d")]))),x=t.is(za("0x28"))?t:Qa(t,this[za("0x4d")]);if(za("0x11e")===this[za("0x71")]){const t=this._suggestionFactory.getSuggestionCallback(za("0x2e"),s,za("0x105"));return this[za("0xcb")]((()=>t([x],n,r))),null}i[za("0x43")](x);let a=!0;for(const t of i)if(!this[za("0x104")](t)){a=!1;break}if(a&&za("0xfc")!==this._trackFormatChanges){const t=this[za("0xc")].getSuggestionCallback(za("0x2e"),s,za("0x105"));return this[za("0xcb")]((()=>t([x],n,r))),null}let c=null,l=x[za("0xb1")],d=x.end;for(const{suggestion:t,meta:e}of this._findSuggestions(x,za("0x2e"))){if(!e[za("0x90")])continue;if(e[za("0x130")]||e[za("0x70")]||e[za("0x73")])continue;if(t[za("0xb5")][za("0xbc")]!=n.formatGroupId)continue;if(!tc(t,r))continue;const o=t[za("0x9f")]();if(t[za("0x74")]==s){if(o.containsRange(x,!0))return null;l=l[za("0xfe")](o.start)?l:o[za("0xb1")],d=d[za("0xa2")](o.end)?d:o[za("0x12d")],c?o.start.isBefore(c[za("0x9f")]()[za("0xb1")])?(c[za("0x80")](),c=t):t[za("0x80")]():c=t}else{const e=x[za("0x12")](o);this[za("0x6e")](t,e)}}const u=this.editor.plugins.get(za("0x5c")).me,g=(0,e.uid)(),m=u.id;if(c)return this._setSuggestionRange(c,this[za("0x4d")][za("0xb4")](l,d)),c;{const t=this[za("0xef")]({id:g,type:za("0x3c")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker("formatBlock:"+s,g,m,this[za("0x4d")][za("0xb4")](l,d)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n[za("0xbc")]||(n.formatGroupId=n.commandName);const i=t[0];n[za("0x1f")]=i.is(za("0x28")),s=s||$a(n);const x=o.map((t=>Qa(t,this._model))),a=i.is(za("0x28"))?t:t[za("0x77")]((t=>Qa(t,this[za("0x4d")])));if(za("0x11e")===this[za("0x71")]){const t=this._suggestionFactory[za("0xbf")](za("0x2e"),s,za("0x105"));return this[za("0xcb")]((()=>t(a,n,r))),null}x[za("0x43")](...a);let c=!0;for(const t of x)if(!this[za("0x104")](t)){c=!1;break}if(c&&za("0xfc")!==this[za("0x71")]){const t=this[za("0xc")][za("0xbf")]("formatBlock",s,"accept");return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[za("0x31")][za("0xf0")].get(za("0x5c")).me;for(const t of this.getSuggestions()){if(t[za("0x72")].id!=l.id)continue;if(za("0x2e")!=t[za("0x55")]||t[za("0xb5")][za("0xbc")]!=n[za("0xbc")])continue;if(!tc(t,r))continue;const e=t[za("0x74")]==s;for(let n=0;n<a[za("0x106")];n++){const o=a[n];for(const s of t[za("0x127")]()){const r=s[za("0x110")]();if(o.isEqual(r)){e?(a[za("0xce")](n,1),n--):t[za("0x24")](s[za("0x6c")]);break}}}}if(0==a[za("0x106")])return null;const d=this[za("0xc")][za("0xbf")](za("0x2e"),s,za("0xe0"));for(const t of this[za("0x9e")]())if(t[za("0x72")].id==l.id&&za("0x2e")==t[za("0x55")]&&t.data[za("0xbc")]==n[za("0xbc")]&&t[za("0x74")]==s&&tc(t,r)&&(d(t.getRanges(),a)||d(a,t[za("0x91")]()))){for(const e of a)t.addRange(e);return t}const u=(0,e.uid)(),g=l.id,m="formatBlock:"+s,f=this[za("0xef")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(m,u,g,t,Zo[za("0x57")]());return f}markDeletion(t,n=null,o={}){if(t[za("0x0")])return null;const s=this[za("0x31")][za("0xf0")][za("0x59")](za("0x5c")).me,r=new i.LiveRange(t[za("0xb1")],t[za("0x12d")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0xbe")))if(e[za("0x90")]&&!e[za("0x130")])if(t[za("0xc7")]){const e=t[za("0x91")]()[za("0x94")]((t=>za("0x8b")!=t[za("0xcc")][za("0x3a")]));if(e.every((t=>r[za("0x139")](t,!0)))&&t[za("0x113")](),e[za("0x18")]((t=>t[za("0x139")](r,!0)))){const t=this[za("0xc")][za("0xbf")](za("0x112"),n,za("0x105"));return this[za("0xcb")]((()=>t([r],null,o))),null}}else{const e=r[za("0x12")](t.getFirstRange());null!==e&&t[za("0xf1")]([e],null,o)}if(r[za("0x111")](),r[za("0x0")]||za("0x8b")==r[za("0xcc")][za("0x3a")])return null;let x=null,a=r[za("0xb1")],c=r.end;const l=this[za("0x25")](r,za("0x112"));for(const{suggestion:t,meta:e}of l){const n=this[za("0x4d")][za("0xb4")](a,c);if(e.isOwn&&(this[za("0x5")]||!e.containsRangeInObject&&!e[za("0x73")]))if(t.isMultiRange){if(!tc(t,o))continue;let e=!0;for(const o of t[za("0x91")]()){if(o[za("0x139")](n,!0))return t;n[za("0x139")](o)||(e=!1)}e&&t[za("0x113")]()}else{const e=t[za("0x9f")]();if(e[za("0x139")](n,!0))return t;if(!tc(t,o)){n[za("0x139")](e)?t[za("0x80")]():e[za("0x7")](a)?a=e.end:e[za("0x7")](c)&&(c=e[za("0xb1")]);continue}a=a[za("0xfe")](e[za("0xb1")])?a:e[za("0xb1")],c=c[za("0xa2")](e[za("0x12d")])?c:e[za("0x12d")],o=Object.assign({},t[za("0x141")]),x?e[za("0xb1")].isBefore(x[za("0x9f")]()[za("0xb1")])?(x[za("0x80")](),x=t):t[za("0x80")]():x=t}}if(x)return this[za("0xf9")](x,this._model[za("0xb4")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x4d")].createRange(a,c),i=s.id,x=n?za("0x40")+n:za("0x112"),l=this[za("0xef")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x27")](x,t,i,r),l}}[za("0x23")](t,n=za("0x1c"),o={}){const s=this[za("0x31")].plugins.get(za("0x5c")).me,r=t[za("0x77")]((t=>new i.LiveRange(t[za("0xb1")],t[za("0x12d")]))),x=new Set;for(const{suggestion:t,meta:e}of this[za("0x25")](r,za("0xbe")))e[za("0x90")]&&!e[za("0x130")]&&x[za("0xca")](t);for(const e of x)if(e[za("0xc7")]){const s=e.getRanges();if((!e[za("0x141")]||!e[za("0x141")][za("0x52")])&&s[za("0x50")]((t=>r[za("0x18")]((e=>e[za("0x139")](t,!0)))))&&e[za("0x113")](),r[za("0x50")]((t=>s[za("0x18")]((e=>e[za("0x139")](t,!0)))))){const e=this[za("0xc")][za("0xbf")](za("0x112"),n,za("0x105"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[za("0x9f")]();if(r[za("0x18")]((e=>e[za("0x139")](t,!0)))&&e[za("0x113")](),r[za("0x50")]((e=>t[za("0x139")](e,!0)))){const t=this[za("0xc")][za("0xbf")]("deletion",n,za("0x105"));return this[za("0xcb")]((()=>t(r,null,o))),null}}const a=this[za("0xc")].getSuggestionCallback(za("0x112"),n,"join");let c=null;for(const t of this[za("0x9e")]())if(t[za("0x72")].id==s.id&&t[za("0x76")]&&za("0x112")==t[za("0x55")]&&t[za("0x74")]==n&&tc(t,o)&&(a(t[za("0x91")](),r)||a(r,t[za("0x91")]())))if(c){if(t.commentThread&&t[za("0x11f")][za("0x106")])continue;for(const e of t.getRanges())c[za("0x7b")](e)||c[za("0xe8")](e);t[za("0x80")]()}else{c=t;for(const e of r)t[za("0x7b")](e)||t[za("0xe8")](e)}if(c)return c;x[za("0x9d")]();for(const{suggestion:t,meta:e}of this[za("0x25")](r,"deletion"))e[za("0x90")]&&(this[za("0x5")]||!e.containsRangeInObject&&!e[za("0x73")])&&tc(t,o)&&x.add(t);for(const t of x){const e=t[za("0x91")]();if((!o||!o[za("0x52")])&&r[za("0x50")]((t=>e[za("0x18")]((e=>e.containsRange(t,!0))))))return t;(!t[za("0x141")]||!t[za("0x141")][za("0x52")])&&e[za("0x50")]((t=>r[za("0x18")]((e=>e.containsRange(t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u=za("0x40")+n,g=this[za("0xef")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0x111")](),t[za("0x0")]||"$graveyard"==t[za("0xcc")][za("0x3a")]||this[za("0x27")](u,l,d,t,Zo.getMultiRangeId());return g}[za("0xf9")](t,e){const n=t[za("0x81")]();this._model[za("0xc3")]((t=>{t[za("0xdc")](n,{range:e})}))}[za("0x102")](t){const e=t.id,n=this[za("0x31")].config[za("0x59")](za("0x2f"));this[za("0xf2")][za("0x12e")](e)||this[za("0xf2")][za("0x53")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[za("0x78")](e);o[za("0x116")]("isRemovable"),o[za("0x3f")]=!1,t[za("0x11f")]=o}_checkSuggestionCorrectness(t,n,o,s){if(t[za("0x55")]!=n||t[za("0x74")]!=o||t[za("0xea")].id!=s)throw this[za("0x31")].enableReadOnlyMode(za("0x120")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[za("0x6e")](t,n){const o=t.getFirstRange();if(n[za("0x84")](o))t.removeMarkers();else if(o.containsRange(n)){const s=this[za("0x4d")].createPositionAt(n.start[za("0x124")],za("0x12d"));this[za("0xf9")](t,this[za("0x4d")][za("0xb4")](o[za("0xb1")],s));const r=(0,e.uid)(),i=t[za("0xea")].id,x=t.type+":"+t[za("0x74")];this[za("0xef")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0xb5")],attributes:t[za("0x141")]});const a=this[za("0x4d")].createPositionAt(n.end.parent,za("0x89")),c=this[za("0x4d")][za("0xb4")](a,o[za("0x12d")]);this._addSuggestionMarker(x,r,i,c)}else if(o[za("0x7")](n.start)){const e=this._model.createPositionAt(n[za("0xb1")][za("0x124")],za("0x12d"));this._setSuggestionRange(t,this[za("0x4d")][za("0xb4")](o[za("0xb1")],e))}else{const e=this[za("0x4d")][za("0x13e")](n[za("0x12d")].parent,za("0x89"));this[za("0xf9")](t,this._model[za("0xb4")](e,o.end))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[za("0x25")](t,za("0xbe"))){if(!n[za("0x90")])continue;const o=e.getRanges();for(const e of o)if(!t.getDifference(e)[za("0x106")])return!0}return!1}[za("0x2d")](t){const n=this[za("0x31")][za("0xf0")][za("0x59")](za("0x5c"))[za("0x11d")](t);if(!n)throw new e.CKEditorError(za("0xf7"),this);return n}[za("0x1b")](t){const e=this.editor[za("0xf0")][za("0x59")](za("0x5c")),n=(0,r.hashObject)(za("0x67")+t);return e[za("0x11d")](n)||e[za("0x125")]({id:n,name:t})}[za("0x51")](t,e,n,o,s){const r=this[za("0x2d")](o),i=this[za("0xc")][za("0x54")](t,e,n,r,s,(t=>this[za("0xfa")](n,{attributes:t})));return this[za("0xe4")](i,za("0x105"),(()=>{this._updateSuggestionData(n,{state:za("0xaa")})}),{priority:za("0x5d")}),this.listenTo(i,za("0x113"),(()=>{this[za("0xfa")](n,{state:za("0x10")})}),{priority:"high"}),this[za("0x126")][za("0x7c")](n,i),this._suggestionState[za("0x7c")](i,"notReady"),i}[za("0xba")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[za("0x106")]<5?e[2]:e[3],authorId:e[za("0x106")]<5?e[3]:e[4],markerCount:6==e[za("0x106")]?e[5]:null}}[za("0x12b")](t,n,o){const s=t[za("0x9f")](),r=s[za("0xb1")],i=s[za("0x12d")];this._setSuggestionRange(t,this[za("0x4d")].createRange(r,n));const x=(0,e.uid)(),a=t[za("0xea")].id,c=t[za("0x55")]+(t[za("0x74")]?":"+t[za("0x74")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x141")],data:t[za("0xb5")]}),za("0x2e")==t[za("0x55")]&&(o=this[za("0x4d")][za("0x12a")](o[za("0x48")])),this._addSuggestionMarker(c,x,a,this[za("0x4d")][za("0xb4")](o,i))}[za("0x25")](t,e=null){const n=[],o=this.editor[za("0xf0")][za("0x59")](za("0x5c")).me;Array[za("0x12f")](t)||(t=[t]);for(const s of this[za("0x9e")]()){if(!s[za("0x76")])continue;if(e&&s[za("0x55")]!=e)continue;let r=!1;for(const e of s.getRanges()){for(const i of t){const t=i.start[za("0x84")](e[za("0x12d")])||i[za("0x12d")][za("0x84")](e[za("0xb1")]);if(t||i[za("0x12")](e)){const x=i[za("0x139")](e)&&Ka(this[za("0x4d")].schema,e[za("0xb1")],i),a=e.containsRange(i)&&Ka(this._model[za("0x66")],i.start,e);n[za("0x43")]({suggestion:s,meta:{isOwn:o==s[za("0x72")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[za("0x27")](t,e,n,o,s){this[za("0x4d")][za("0xc3")]((r=>{let i=za("0x114")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x69")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t.previous,n=t.next;t[za("0x10b")]=null,null!=e&&(e[za("0x3")]=null),t[za("0x3")]=null,null!=n&&(n[za("0x10b")]=null),za("0x108")==this._suggestionState[za("0x59")](t)&&(this[za("0xe9")][za("0x7c")](t,za("0xd1")),this[za("0x9")](za("0x10a"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this.addSuggestionData(t);if(this[za("0x109")]&&this[za("0x109")][za("0xb8")]){const s=this[za("0x31")][za("0xf0")][za("0x59")](za("0xe2")),r=o[za("0x97")],i=o.subType?o[za("0x55")]+":"+o[za("0x74")]:o[za("0x55")],x=this[za("0x31")].locale,a=s[za("0xca")](Yo(x,za("0x15"))),c={id:n,type:i,hasComments:r,data:t[za("0xb5")]||null,originalSuggestionId:t[za("0xbb")]||null,attributes:o.attributes};this[za("0x109")].addSuggestion(c).then((t=>{o[za("0xe1")]=!0,s[za("0x134")](a),t&&t[za("0x7e")]&&(this[za("0x126")][za("0x59")](n).createdAt=t.createdAt)}))[za("0x13a")]((t=>{throw(0,e.logWarning)(za("0xc2")),this[za("0x31")].model.enqueueChange({isUndoable:!1},(()=>{o[za("0x113")]()})),o[za("0xff")](),this[za("0x126")].delete(o.id),this[za("0xe9")].delete(o),t}))}return o}[za("0xfa")](t,e){const n=this[za("0x31")].plugins[za("0x59")]("PendingActions"),o=this.getSuggestion(t);if(this[za("0x109")]&&this[za("0x109")][za("0x107")])if(o._saved){const o=n.add(Yo(this.editor[za("0xa0")],za("0x15")));this[za("0x109")][za("0x107")](t,e)[za("0xa5")]((()=>{n[za("0x134")](o)}))}else o.on(za("0x68"),(()=>{this[za("0xfa")](t,e)}))}[za("0x22")](t){if(!this[za("0x109")]||!this[za("0x109")][za("0x98")])throw new e.CKEditorError(za("0xe3"),this);return this[za("0x109")].getSuggestion(t)}[za("0xc1")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xba")](t),r=this[za("0x126")][za("0x59")](e)||this[za("0x51")](n,o,e,s,{});switch(this[za("0x6d")](r,n,o,s),this._suggestionState[za("0x59")](r)){case za("0x13"):this[za("0x22")](e)[za("0xa5")]((t=>{let n=Promise[za("0xa9")]();t[za("0x97")]&&(n=this[za("0xf2")].fetchCommentThread({channelId:this[za("0x31")].config.get(za("0x2f")),threadId:e})),n.then((()=>{this[za("0xde")](t)[za("0xe1")]=!0}))})),this[za("0xe9")][za("0x7c")](r,za("0x137"));break;case za("0xd1"):this[za("0xfa")](e,{state:za("0x6f")});case za("0x26"):this[za("0xe9")][za("0x7c")](r,za("0x108")),this[za("0x9")](za("0x86"),r);break;case za("0x108"):this[za("0x9")](za("0x75"),r)}return r[za("0x3d")](t),r}[za("0x117")](t){const e=Array[za("0xd5")](t)[za("0x94")]((t=>!t[za("0xc7")])),n=this[za("0x9e")]({skipNotAttached:!0}).filter((t=>!t[za("0xc7")])),o=n.filter((e=>!t[za("0x65")](e))),s=new Map(n[za("0x77")]((t=>[t,this._suggestionFactory[za("0xbf")](t[za("0x55")],t[za("0x74")],za("0x122"))]))),r=new Map(n[za("0x77")]((t=>[t,t[za("0x9f")]()]))),i=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x106")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x106")];t++){const n=e[t];!x.has(n)&&n[za("0x10b")]&&(n[za("0x10b")][za("0x3")]===n&&(n[za("0x10b")][za("0x3")]=null),n[za("0x10b")]=null),!i[za("0x65")](n)&&n[za("0x3")]&&(n[za("0x3")][za("0x10b")]===n&&(n[za("0x3")][za("0x10b")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e[za("0x106")];o++){const n=c(t,e[o]);n&&(n[0][za("0x3")]=n[1],n[1].previous=n[0],i[za("0xca")](n[0]),x.add(n[1]))}}function c(t,e){if(t[za("0x72")].id!==e[za("0x72")].id)return null;const n=s[za("0x59")](t)(t,e,r[za("0x59")](t),r[za("0x59")](e));return n&&s[za("0x59")](e)(t,e,r[za("0x59")](t),r[za("0x59")](e))?n[1][za("0x11f")]&&n[1].commentThread[za("0x106")]?null:n:null}}[za("0xf4")](t){const e=Array.from(t),n=this.getSuggestions({skipNotAttached:!0}),o=n[za("0x94")]((e=>!t[za("0x65")](e))),s=new Map(e[za("0x77")]((t=>[t,this[za("0xc")][za("0xbf")](t[za("0x55")],t.subType,za("0xe0"))]))),r=new Map(n.map((t=>[t,t[za("0x91")]()])));for(let t=0;t<e[za("0x106")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o.type!==e[za("0x55")]||o[za("0x72")].id!==e[za("0x72")].id||o[za("0x74")]!==e[za("0x74")])continue;if(!Ya(e,o))continue;const x=s[za("0x59")](e),a=r[za("0x59")](e),c=r[za("0x59")](o),l=e[za("0x11f")]&&e[za("0x11f")][za("0x106")],d=o.commentThread&&o[za("0x11f")][za("0x106")];if(!l&&x(c,a))return t[za("0x2a")](o,e),r[za("0x7d")](e),!0;if(!d&&x(a,c))return t[za("0x2a")](e,o),r[za("0x7d")](o),!0}return!1}}[za("0x2a")](t,e){if(t[za("0xc7")])for(const n of e.getRanges())t.addRange(n);else{const n=e[za("0x9f")]()[za("0x12d")];this[za("0xf9")](t,this[za("0x4d")][za("0xb4")](t[za("0x9f")]()[za("0xb1")],n))}e[za("0x80")]()}}class Va{constructor(t){this[za("0xd9")]=t,this[za("0x4d")]=t[za("0xa")],this[za("0xee")]=new Map,this._defaultCallbacks=new Map,this[za("0xb7")]()}[za("0x54")](t,e,n,o,s,r){return new Zo(this[za("0x4d")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,za("0x105"))(...n),onDiscard:(...n)=>this[za("0xbf")](t,e,za("0x113"))(...n)})}[za("0x2")](t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[za("0x7c")](s,o)}[za("0xbf")](t,e,n){const o=t+":"+e+":"+n;return this[za("0xee")][za("0x59")](o)||this[za("0x118")][za("0x59")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[za("0x16")](((t,e)=>t[za("0xb1")][za("0xfe")](e[za("0xb1")])?1:-1)),this[za("0x4d")][za("0xc3")]((e=>{for(const n of t){let t;t=n[za("0x12d")].isAtEnd&&n.end[za("0x48")]==n[za("0xb1")][za("0x1")]?e.createSelection(n[za("0xb1")].nodeAfter,"on"):e[za("0x1e")](n),this[za("0x4d")][za("0x79")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x4d")][za("0xc3")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t.map((t=>(qa(t)&&(t=this[za("0x4d")][za("0xb4")](t[za("0x12d")])),t))).filter((t=>"$graveyard"!==t[za("0xcc")][za("0x3a")]));if(r[za("0x106")]<1)return;const x=Array[za("0xd5")](this[za("0x4d")].document.selection[za("0x91")]())[za("0x77")]((t=>i.LiveRange.fromRange(t)));n.setSelection(r);for(const t of this[za("0xd9")].commands[za("0x38")]())t[za("0xf8")]();s.push({forceDefaultExecution:!0}),this[za("0xd9")].execute(o,...s);const a=x.filter((t=>"$graveyard"!=t.root[za("0x3a")]));a[za("0x106")]>0&&n[za("0xc4")](a);for(const t of x)t[za("0x111")]()}))},o=(t,e)=>1==t[za("0x106")]&&1==e[za("0x106")]&&t[0][za("0x12d")][za("0x84")](e[0][za("0xb1")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x4d")])?[t,e]:Za(e,t,o,n,this[za("0x4d")])?[e,t]:null;this[za("0x118")][za("0x7c")]("insertion:accept",t),this[za("0x118")].set(za("0x9c"),e),this[za("0x118")][za("0x7c")](za("0x133"),o),this._defaultCallbacks[za("0x7c")](za("0x10f"),s),this[za("0x118")][za("0x7c")](za("0x13f"),e),this[za("0x118")].set(za("0x100"),t),this._defaultCallbacks[za("0x7c")]("deletion:join",o),this[za("0x118")].set(za("0xf3"),s),this._defaultCallbacks.set(za("0xdd"),n),this[za("0x118")][za("0x7c")](za("0x60"),t),this[za("0x118")][za("0x7c")](za("0xd3"),o),this._defaultCallbacks.set("formatInline:chain",t),this[za("0x118")][za("0x7c")](za("0x49"),n),this._defaultCallbacks.set(za("0x99"),t),this[za("0x118")][za("0x7c")](za("0xb9"),o),this[za("0x118")][za("0x7c")]("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e[za("0x48")][za("0x8d")]({includeSelf:!0,parentFirst:!0})){if(o[za("0xcc")]==o)return!1;if(!n[za("0xe5")](o))return!1;if(t[za("0xd")](o)||t[za("0x88")](o))return!0}return!1}function qa(t){return t[za("0x12d")][za("0x48")]==t[za("0xb1")][za("0x1")]&&t[za("0x12d")][za("0x5f")]}function Xa(t,e,n,o){const s=t=>!t.item.is(za("0x101"))&&!o[za("0xd")](t.item),r=t[za("0xb1")][za("0x6a")](s),i=t[za("0x12d")][za("0x6a")](s,{direction:za("0xd4")});return!(t[za("0xb1")][za("0x84")](r)&&t[za("0x12d")][za("0x84")](i)||(r[za("0xfe")](i)?n.updateMarker(e,{range:n.createRange(r,i)}):n.removeMarker(e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0xb1")][za("0x1")];return e&&e.is(za("0xfb"))}function Qa(t,e){const n=e[za("0x66")].isObject(t)||e[za("0x66")][za("0xeb")](t);return e[za("0xb4")](e.createPositionAt(t,"before"),n?e.createPositionAfter(t):e[za("0x13e")](t,za("0x12d")))}function Za(t,e,n,o,s){if(!Ya(t,e))return!1;if(n[za("0x12d")][za("0x84")](o[za("0xb1")]))return!0;if(t[za("0x55")]!=e[za("0x55")])return!1;if(!n.end.isTouching(o[za("0xb1")]))return!1;const r=s.createRange(n[za("0x12d")],o[za("0xb1")])[za("0xa8")]();for(const t of r)if([za("0x46"),"elementEnd"][za("0x61")](t.type)&&s[za("0x66")][za("0x88")](t.item))return!1;return!0}function Ya(t,e){return!(!t[za("0x8c")]||!e[za("0x8c")])&&Go(t[za("0x141")],e[za("0x141")])}function tc(t,e){const n=ec(t[za("0x141")]),o=ec(e);if(!t[za("0x8c")])return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function ec(t){const e=Object[za("0x5e")]({},t);return delete e[za("0x52")],delete e[za("0x33")],e}const nc=["_acceptCommand","bind","PENDING_ACTION_SUGGESTION","listenTo","_removePendingAction","change:isDirty","isEnabled","execute","isDirty","model","_editor","view","commands","_discardCommand","acceptSuggestion","getRanges","PendingActions","plugins","unbind","stopListening","commentThreadController","locale","canAccept","canDiscard","_pendingAction","get","canEditAt","discardSuggestion","_setPendingAction"];var oc,sc;oc=nc,sc=130,function(t){for(;--t;)oc.push(oc.shift())}(++sc);const rc=function(t,e){return nc[t-=0]};class ic extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[rc("0x18")]=e,this[rc("0x1a")]=n,this[rc("0x6")]=o,this[rc("0x19")]=t,this._acceptCommand=t[rc("0x1b")][rc("0xb")](rc("0x0")),this._discardCommand=t[rc("0x1b")][rc("0xb")](rc("0xd")),this[rc("0x1a")][rc("0x10")](rc("0x15")).to(this[rc("0xf")],this[rc("0x1c")],((t,e)=>t||e)),this[rc("0x1a")][rc("0x10")](rc("0x8")).to(this._acceptCommand,rc("0x15"),(t=>t&&this[rc("0x19")][rc("0x18")].canEditAt(e[rc("0x1")]()))),this.view[rc("0x10")](rc("0x9")).to(this[rc("0x1c")],rc("0x15"),(t=>t&&this[rc("0x19")][rc("0x18")][rc("0xc")](e.getRanges()))),this[rc("0xa")]=null,n[rc("0x17")]&&this[rc("0xe")](),this[rc("0x12")](n,rc("0x0"),(()=>this[rc("0x0")]())),this[rc("0x12")](n,rc("0xd"),(()=>this.discardSuggestion())),this.listenTo(n,rc("0x14"),(()=>{n[rc("0x17")]?this[rc("0xe")]():this[rc("0x13")]()}))}[rc("0x0")](){this[rc("0xf")].execute(this[rc("0x18")].id)}[rc("0xd")](){this[rc("0x1c")][rc("0x16")](this[rc("0x18")].id)}destroy(){this[rc("0x1a")].unbind(rc("0x15")),this[rc("0x1a")][rc("0x4")]("canAccept"),this.view[rc("0x4")](rc("0x9")),this[rc("0x5")](),this[rc("0x6")].destroy(),this._pendingAction&&this._removePendingAction()}[rc("0xe")](){const t=Yo(this._editor[rc("0x7")],rc("0x11"));this._pendingAction=this[rc("0x19")][rc("0x3")][rc("0xb")](rc("0x2")).add(t)}[rc("0x13")](){null!==this._pendingAction&&this[rc("0x19")][rc("0x3")][rc("0xb")](rc("0x2")).remove(this._pendingAction),this[rc("0xa")]=null}}const xc=["commentsListView","value","disabledSubmit","descriptionParts","editor","authoredAt","destroy","commentInputView","isReadOnly","_model","addComment","disableComments","_localUser","CommentView","delegate","_config","bind","commentThreadInputView","assign","commentThread","canDiscard","set","focus","isActive","editorConfig","isDirty","length","removeComment","submit","showInput","_createCommentViews","cancel","isEnabled","canAccept"];var ac,cc;ac=xc,cc=238,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends s.View{constructor(t,e,n,o){super(t),this[lc("0x0")]=null,this[lc("0x11")]=null,this[lc("0x15")]("isActive",!1),this[lc("0x15")](lc("0x5"),e[lc("0x5")]),this.bind(lc("0x5")).to(e),this.set(lc("0x3"),[]),this[lc("0x15")](lc("0x19"),!1),this[lc("0x15")](lc("0x20"),!1),this[lc("0x15")](lc("0x21"),!1),this[lc("0x15")](lc("0x14"),!1),this[lc("0x9")]=e,this[lc("0xc")]=n,this._config=o,o[lc("0xb")]?this[lc("0x15")](lc("0x1a"),1):this[lc("0x1e")]()}[lc("0x16")](){this.element[lc("0x16")]()}destroy(){this[lc("0x0")]&&this[lc("0x0")][lc("0x6")](),this[lc("0x11")]&&this[lc("0x11")][lc("0x6")](),super[lc("0x6")]()}[lc("0x1e")](){const{CommentsListView:t}=this[lc("0xf")];this[lc("0x0")]=new t(this.locale,this[lc("0x9")].commentThread,Object[lc("0x12")]({CommentView:this._config[lc("0xd")]},this[lc("0xf")])),this[lc("0x0")][lc("0xe")](lc("0x1b")).to(this),this.commentsListView[lc("0xe")]("updateComment").to(this),this[lc("0x0")][lc("0x10")](lc("0x17")).to(this),this[lc("0x15")](lc("0x1a"),this[lc("0x0")][lc("0x1a")]+1),this[lc("0x10")](lc("0x1a")).to(this[lc("0x0")],lc("0x1a"),(t=>t+1)),this[lc("0x11")]=this._createCommentThreadInputView(),this.on(lc("0x1b"),(()=>this[lc("0x16")]())),this[lc("0x10")](lc("0x19")).to(this.commentsListView,"hasDirtyComment",this[lc("0x11")][lc("0x7")],"value",((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[lc("0xf")],e=new t(this.locale,this[lc("0xc")],this[lc("0xf")][lc("0x18")]),n=e[lc("0x7")];return e[lc("0x10")](lc("0x1d")).to(this,lc("0x17"),this[lc("0x9")].commentThread,lc("0x8"),n,lc("0x1"),((t,e,n)=>!!n||t&&!e)),n.on(lc("0x1c"),((t,e)=>{this.fire(lc("0xa"),e),n[lc("0x4")].setData("")})),n.on(lc("0x1f"),(()=>this[lc("0x16")]())),n[lc("0x10")](lc("0x2")).to(this[lc("0x9")][lc("0x13")],lc("0x8")),e}}const uc=["innerHTML","map","delegate","getTemplate","EXTERNAL_IMPORT_WORD_AVATAR","source","bindTemplate","innerText","getExternalSuggestionNote","ck-suggestion--disabled-comments","_config",'"></span>',"cancel","</span>","description","editorDestroyed","ck-suggestion__user","extendTemplate","ck-annotation__main","</p>","editorReady","fire","canDiscard","creator","div","Accept suggestion","ck-annotation__actions","_model","render","isEnabled","color","isExternal","isActive","ck-suggestion-","span","acceptButton","type","title","ck-annotation__info",'<span class="ck-suggestion-type">',"author","set","ck-annotation__info-name","getUserViewNotificationText","split","canAccept","descriptionParts","userView","createElement","acceptSuggestion","EXTERNAL_SUGGESTION",'" title="',"EXTERNAL_AVATAR","value","attributes","discardSuggestion","push","ck-annotation__user","check","element","_descriptionElement","time","ck-suggestion-wrapper--active","_createButton","content","commentsListView","@external","locale","bind","ck-suggestion--accept","ck-annotation__content-wrapper","ck-comment__info-time","name","ck-suggestion__info",".ck-annotation__content-wrapper","discardButton","ck-annotation","disableComments","commentThreadInputView"];var gc,mc;gc=uc,mc=420,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends dc{constructor(e,n,o,s){super(e,n,o,s),this.set(fc("0xb"),""),this.bind(fc("0xb")).to(this,"descriptionParts",(t=>t&&t[0]?t[0][fc("0xb")]:"")),this.bind(fc("0x44")).to(this,fc("0x15"),this,fc("0x7"),((t,e)=>{let n="";for(const e of t)n+="<p>"+bc(e[fc("0x27")],e[fc("0x5")])+fc("0x49");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[fc("0x23")]=null,this[fc("0xa")]=this[fc("0x26")](Yo(e,fc("0x0")),t.icons[fc("0x21")],fc("0x2c"),fc("0x18"),"sw"),this.acceptButton.bind(fc("0x4")).to(this,fc("0x14")),this[fc("0x32")]=this[fc("0x26")](Yo(e,"Discard suggestion"),t.icons[fc("0x42")],"ck-suggestion--discard",fc("0x1e"),"sw"),this.discardButton[fc("0x2b")](fc("0x4")).to(this,fc("0x4c")),this[fc("0x16")]=new r.UserView(e,this._model.author,this[fc("0x12")]()),this[fc("0x16")][fc("0x47")]({attributes:{class:[fc("0x46"),fc("0x20")]}}),this.setTemplate(this.getTemplate())}[fc("0x39")](){const t=this[fc("0x3c")],e=[{tag:"div",attributes:{class:[fc("0x30"),fc("0xd")]},children:[{tag:fc("0x9"),children:[{text:this[fc("0x16")].name}],attributes:{class:["ck-suggestion__info-name",fc("0x11")]}},{tag:fc("0x24"),attributes:{datetime:t.to("authoredAt"),class:[fc("0x2e"),"ck-annotation__info-time"]},children:[{text:t.to("authoredAt",(t=>this[fc("0x40")].formatDateTime(t)))}]}]},{tag:fc("0x4e"),attributes:{class:["ck-suggestion__actions",fc("0x1")]},children:[this[fc("0xa")],this.discardButton]},{tag:fc("0x4e"),attributes:{class:[fc("0x2d")]}}];this._model.isExternal&&e[fc("0x1f")]({tag:fc("0x4e"),attributes:{class:["ck-comment__external"]},children:[{text:this[fc("0x3e")]()}]});const n={tag:"div",attributes:{class:["ck-suggestion-wrapper",t.if(fc("0x7"),fc("0x25")),t.to("type",(t=>fc("0x8")+t)),this[fc("0x40")][fc("0x34")]&&fc("0x3f")],"data-suggestion-id":this._model.id,"data-thread-id":this[fc("0x2")].commentThread.id,"data-author-id":this[fc("0x2")][fc("0xf")].id,tabindex:-1},children:[{tag:fc("0x4e"),attributes:{class:["ck-suggestion",fc("0x33")]},children:[this[fc("0x16")],{tag:fc("0x4e"),attributes:{class:["ck-suggestion__main",fc("0x48")]},children:e}]}]};return this[fc("0x28")]&&this[fc("0x35")]&&(n.children[fc("0x1f")](this.commentsListView,this[fc("0x35")]),this[fc("0x28")][fc("0x38")](fc("0x4a")).to(this),this[fc("0x28")][fc("0x38")](fc("0x45")).to(this),this.commentThreadInputView[fc("0x38")](fc("0x4a")).to(this),this.commentThreadInputView[fc("0x38")]("editorDestroyed").to(this)),n}[fc("0x3")](){super[fc("0x3")](),this[fc("0x23")]=this[fc("0x22")].querySelector(fc("0x31")),this[fc("0x23")][fc("0x36")]=this.description,this.on("change:description",((t,e,n)=>{this[fc("0x23")][fc("0x36")]=n}))}[fc("0x26")](t,e,n,o,r){const i=new s.ButtonView(this[fc("0x2a")]);return i[fc("0x10")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[fc("0x47")]({attributes:{class:n}}),i.on("execute",(()=>{this[fc("0x4b")](o,this[fc("0x2")].id)})),i}[fc("0x3e")](){return"importWord"===this[fc("0x2")].attributes[fc("0x29")][fc("0x3b")]?Yo(this[fc("0x2a")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[fc("0x2a")],fc("0x19"))}[fc("0x12")](){return this[fc("0x2")][fc("0x6")]?"importWord"===this[fc("0x2")][fc("0x1d")]["@external"][fc("0x3b")]?Yo(this.locale,fc("0x3a"),this[fc("0x2")][fc("0x4d")][fc("0x2f")]):Yo(this[fc("0x2a")],fc("0x1b"),this[fc("0x2")][fc("0x4d")][fc("0x2f")]):null}}function bc(t,e){let n="";return n+=t[fc("0x13")]("*")[fc("0x37")](((t,e)=>e%2!=0?fc("0xe")+pc(t)+fc("0x43"):pc(t))).join(""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[fc("0x1c")]+fc("0x1a")+e[fc("0xc")]+fc("0x41")),n}function pc(t){const e=document[fc("0x17")]("span");return e[fc("0x3d")]=t,e[fc("0x36")]}const Ec=["commentThread","editing","plugins","registerAnnotation","TrackChangesUI","toMany","innerView","suggestionChanged","trackChanges.SuggestionThreadView","arrowView","createAnnotation","commands","createCommentThreadController","suggestionLoaded","config","push","define","isDirty","getMarkerNames","filter","view","listenTo","comments.maxCommentsWhenCollapsed","_suggestionToController","activeMarkers","hasSuggestion","_createUIButton","suggestion-","getAllAdjacentSuggestions","trackChanges","size","_bindAnnotationToEditors","pluginName","actionView","getMarkers","destroy","length","clear","getDescriptions","editor","Accept all suggestions","addComment","CommentView","type","source","head","_refreshActiveMarkers","has","_disableComments","previous","comments.maxCommentCharsWhenCollapsed","CommentsUI","focus","TrackChangesEditing","trackChanges.disableComments","change:previous","mainView","Discard all selected suggestions","activeAnnotations","_viewToController","button","acceptAllSuggestions","switchbutton","suggestionUnloaded","_updateController","model","getFirstRange","stopListening","locale","Accept all selected suggestions","_initializeController","componentFactory","execute","separator","delete","get","_handleSuggestionControllerDelayed","discardButton","buttonView","set","isOn","map","_descriptionFactory","_annotationViews","isEnabled","_handleControllerBuffer","commandName","lowest","Annotations","unbind","change:activeAnnotations","CommentsRepository","value","from","_destroyController","isInContent","EditorAnnotations","Discard all suggestions","getRanges","add","descriptionParts","getSuggestion","some","bind"];var _c,Tc;_c=Ec,Tc=423,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const Cc=function(t,e){return Ec[t-=0]};class yc extends t.Plugin{static get requires(){return[Wa,r.Users,"CommentsRepository",Cc("0x51"),Cc("0x59")]}static get[Cc("0x19")](){return Cc("0x65")}constructor(t){super(t),this._suggestionToController=new Map,this[Cc("0x34")]=new Map,this[Cc("0x4c")]=new Map,this._handleControllerBuffer=new Map;const e=this[Cc("0x20")][Cc("0x7")];e[Cc("0x9")](Cc("0x1"),hc),e[Cc("0x9")](Cc("0x2f"),!1),this._disableComments=e[Cc("0x44")](Cc("0x2f"))}[Cc("0x45")](t,e){0===this[Cc("0x4e")][Cc("0x17")]&&setTimeout((()=>{for(const[t,e]of this[Cc("0x4e")]){const n=this[Cc("0x10")][Cc("0x28")](t);n||e?n&&e&&this[Cc("0x57")](t):this[Cc("0x3f")](t)}this[Cc("0x20")][Cc("0x63")][Cc("0x44")](Cc("0x59")).refreshSelectedViews(),this._refreshActiveMarkers(),this[Cc("0x4e")][Cc("0x1e")]()}),10),this[Cc("0x4e")][Cc("0x48")](t,e)}init(){const t=this.editor,e=t[Cc("0x63")].get("TrackChangesEditing"),n=t[Cc("0x63")].get(Cc("0x51")),o=t[Cc("0x63")][Cc("0x44")](Cc("0x59")),s=t[Cc("0x63")].get(Cc("0x54"));t.ui[Cc("0x40")].add(Cc("0x16"),(t=>this._createUIButton(t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Cc("0x56")](this[Cc("0x10")])){const o=e[Cc("0x15")](),s=[];for(const t of o){if(!t[Cc("0x58")])continue;if(t.isMultiRange){s[Cc("0x8")](...t[Cc("0x5b")]());continue}const e=t[Cc("0x3b")]();if(s[Cc("0x1d")]>0){const t=s[0].getJoined(e);if(t){s[0]=t;continue}}s[Cc("0x8")](e)}t.push([n[Cc("0xd")],s])}return t})),this.listenTo(e,Cc("0x6"),((t,e)=>{this[Cc("0xe")](e,"change:previous",((t,n,o,s)=>{e[Cc("0x58")]&&(null==o?(this._updateController(s[Cc("0x26")]),this[Cc("0x45")](e,!1)):(this._updateController(o[Cc("0x26")]),this[Cc("0x45")](e,!0)))})),null===e[Cc("0x2a")]?this._handleSuggestionControllerDelayed(e,!1):this._updateController(e[Cc("0x26")])})),this[Cc("0xe")](e,Cc("0x38"),((t,e,n)=>{this[Cc("0x3c")](e,Cc("0x30")),this[Cc("0x4e")][Cc("0x43")](e);const o=n?n[Cc("0x26")]:e,s=this[Cc("0x10")].get(o);null!==n&&this[Cc("0x39")](o),null===n&&s&&this[Cc("0x57")](e)})),this[Cc("0xe")](e,Cc("0x0"),((t,e)=>{this[Cc("0x39")](e)})),this.listenTo(n,Cc("0x53"),(()=>{this._refreshActiveMarkers()})),this[Cc("0xe")](s,Cc("0x22"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Cc("0x12")](n))return;const s=e[Cc("0x5e")](n);this[Cc("0x10")][Cc("0x44")](s).view[Cc("0x2d")]()}),{priority:Cc("0x50")})}[Cc("0x27")](){const t=this[Cc("0x20")][Cc("0x63")][Cc("0x44")](Cc("0x51")),e=this[Cc("0x20")][Cc("0x63")].get(Cc("0x2e")),n=Array[Cc("0x56")](t[Cc("0x33")],(t=>t[Cc("0x67")])).filter((t=>this._viewToController[Cc("0x28")](t))),o=[];for(const t of n){const e=this._viewToController[Cc("0x44")](t).model[Cc("0x15")]();o.push(...e.reduce(((t,e)=>[...t,...e[Cc("0xb")]()]),[]))}e[Cc("0x11")]=o}[Cc("0x13")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Cc("0x20")][Cc("0x4")].get("trackChanges"),r=Yo(t,"Track changes");n[Cc("0x47")][Cc("0x48")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, 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[Cc("0x47")].bind("isOn").to(o,Cc("0x55")),n[Cc("0x47")].on(Cc("0x41"),(()=>{o.execute(),this[Cc("0x20")][Cc("0x62")][Cc("0xd")][Cc("0x2d")]()}));const i=new e.Collection,x=[{type:Cc("0x37"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:"separator"},{type:Cc("0x35"),model:{withText:!0,label:Yo(t,Cc("0x21")),commandName:Cc("0x36")}},{type:Cc("0x35"),model:{withText:!0,label:Yo(t,Cc("0x3e")),commandName:"acceptSelectedSuggestions"}},{type:Cc("0x35"),model:{withText:!0,label:Yo(t,Cc("0x5a")),commandName:"discardAllSuggestions"}},{type:Cc("0x35"),model:{withText:!0,label:Yo(t,Cc("0x32")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:Cc("0x42")};if(t[Cc("0x3a")]){const n=new s.Model(t[Cc("0x3a")]),o=this[Cc("0x20")][Cc("0x4")][Cc("0x44")](n[Cc("0x4f")]);n[Cc("0x60")](Cc("0x49"),"isEnabled").to(o,Cc("0x55"),"isEnabled"),e={type:t[Cc("0x24")],model:n}}i[Cc("0x5c")](e)}(0,s.addListToDropdown)(n,i);const a=x[Cc("0xc")]((t=>null!=t[Cc("0x3a")]))[Cc("0x4a")]((t=>this.editor[Cc("0x4")][Cc("0x44")](t[Cc("0x3a")][Cc("0x4f")]))),c=n[Cc("0x47")];return c[Cc("0x1a")][Cc("0x52")](Cc("0x4d")),c.arrowView[Cc("0x52")](Cc("0x4d")),c[Cc("0x1a")][Cc("0x60")]("isEnabled").to(o,Cc("0x4d")),c[Cc("0x2")][Cc("0x60")]("isEnabled")[Cc("0x66")](a,Cc("0x4d"),((...t)=>t[Cc("0x5f")]((t=>t)))),n.on(Cc("0x41"),(t=>{this.editor[Cc("0x41")](t[Cc("0x25")][Cc("0x4f")]),this[Cc("0x20")][Cc("0x62")][Cc("0xd")].focus()})),n}[Cc("0x3f")](t){const e=this[Cc("0x20")],n=e.config,o=e.plugins[Cc("0x44")]("Annotations"),s=e.plugins[Cc("0x44")]("CommentsRepository"),i=e.plugins[Cc("0x44")](Cc("0x59")),x=e.plugins[Cc("0x44")](r.Users).me,a=n[Cc("0x44")](Cc("0x16")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Cc("0x63")][Cc("0x44")](Cc("0x2c"));let d,u;this[Cc("0x4c")][Cc("0x28")](t.id)?(u=this[Cc("0x4c")][Cc("0x44")](t.id),d=u[Cc("0x31")]):(d=new a(e[Cc("0x3d")],t,x,{disableComments:this[Cc("0x29")],editorConfig:n[Cc("0x44")]("comments.editorConfig"),maxCommentsWhenCollapsed:n.get(Cc("0xf")),maxThreadTotalWeight:n[Cc("0x44")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Cc("0x44")](Cc("0x2b")),formatDateTime:(0,r.getDateTimeFormatter)(n[Cc("0x44")](Cc("0x3d"))),CommentView:n[Cc("0x44")]("comments")[Cc("0x23")],CommentsListView:c,CommentThreadInputView:l}),d.acceptButton.on("execute",(()=>{e[Cc("0x62")][Cc("0xd")].focus()})),d[Cc("0x46")].on(Cc("0x41"),(()=>{e.editing[Cc("0xd")][Cc("0x2d")]()})),u=o.createAnnotationView(this[Cc("0x20")][Cc("0x3d")],d),u[Cc("0x60")](Cc("0xa")).to(d,Cc("0xa")),u[Cc("0x60")]("length").to(d),u[Cc("0x60")](Cc("0x24")).to(d,Cc("0x24"),(t=>Cc("0x14")+t)),this[Cc("0x4c")][Cc("0x48")](t.id,u));const g=s[Cc("0x5")](t[Cc("0x61")],d),m=new ic(e,t,d,g),f=t[Cc("0x15")]()[Cc("0xc")]((t=>t[Cc("0x58")]));d[Cc("0x5d")]=e[Cc("0x63")][Cc("0x44")]("TrackChangesEditing")[Cc("0x4b")][Cc("0x1f")](f),this[Cc("0x10")][Cc("0x48")](t,m),this._viewToController.set(d,m);const h=o[Cc("0x3")]({view:u,target:()=>{const n=[],o=t[Cc("0x15")]()[Cc("0xc")]((t=>t[Cc("0x58")]));for(const t of o)n.push(...t[Cc("0x1b")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Cc("0x14")+m[Cc("0xd")][Cc("0x24")]});s[Cc("0x18")](d,h),o.add(h),i[Cc("0x64")](h)}[Cc("0x57")](t){const e=this[Cc("0x20")][Cc("0x63")].get("Annotations"),n=this[Cc("0x10")][Cc("0x44")](t),o=n[Cc("0xd")],s=e.getByInnerView(o);s&&e.remove(s),this[Cc("0x10")].delete(t),this[Cc("0x34")].delete(o),n[Cc("0x1c")]()}[Cc("0x39")](t){if(!t[Cc("0x58")]||!this._suggestionToController[Cc("0x28")](t))return;const e=this[Cc("0x20")][Cc("0x63")][Cc("0x44")](Cc("0x2e")),n=this[Cc("0x10")][Cc("0x44")](t),o=t.getAllAdjacentSuggestions();n[Cc("0xd")].descriptionParts=e[Cc("0x4b")].getDescriptions(o)}[Cc("0x1c")](){for(const t of this[Cc("0x10")].keys())this[Cc("0x57")](t);for(const t of this[Cc("0x4c")].values())t[Cc("0x31")][Cc("0x1c")]();super.destroy()}}var kc,Ac,vc=["adapter","getSuggestions","TrackChanges","get","editor","Comments","pluginName","getSuggestion","plugins","addSuggestion","requires"];kc=vc,Ac=137,function(t){for(;--t;)kc.push(kc.shift())}(++Ac);var Rc=function(t,e){return vc[t-=0]};class Sc extends t.Plugin{static get[Rc("0x5")](){return[Wa,yc,Rc("0x0")]}static get[Rc("0x1")](){return Rc("0x8")}set[Rc("0x6")](t){this.editor.plugins[Rc("0x9")](Wa)[Rc("0x6")]=t}get adapter(){return this[Rc("0xa")][Rc("0x3")][Rc("0x9")](Wa).adapter}[Rc("0x4")](t){return this[Rc("0xa")][Rc("0x3")][Rc("0x9")](Wa).addSuggestionData(t)}[Rc("0x7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Rc("0xa")][Rc("0x3")].get(Wa)[Rc("0x7")]({skipNotAttached:t,toJSON:e})}[Rc("0x2")](t){return this.editor[Rc("0x3")][Rc("0x9")](Wa)[Rc("0x2")](t)}}const Ic=["plugins","addUser","name","_adapter","editorCreator","model","destroy","editor","getRootsAttributes","define","Pagination","config","addSuggestionData","useAnonymousUser","TrackChangesDataGetter","document","TrackChangesData","track-changes-data-invalid-editor-creator","createElement","set","push","discardAllSuggestions","TrackChangesEditing","appendChild","data","div","rootsAttributes","constructor","pluginName","requires","trackChangesData","create","getDataWithDiscardedSuggestions","init","getFullData","get","end","reduce","trackChangesData.editorCreator","getRootNames"];var Lc,Nc;Lc=Ic,Nc=407,function(t){for(;--t;)Lc.push(Lc.shift())}(++Nc);const wc=function(t,e){return Ic[t-=0]},Mc=[wc("0x3")];class Oc extends t.Plugin{static get[wc("0x16")](){return[Wa]}static get[wc("0x15")](){return wc("0x9")}init(){const t=this.editor;if(t[wc("0x4")][wc("0x2")](wc("0x1f"),(e=>{const n=t[wc("0x26")][wc("0x8")].getRootNames()[wc("0x1e")](((t,e)=>(t[e]="",t)),{});return t[wc("0x14")][wc("0x18")](n,e)})),"function"!=typeof t[wc("0x4")][wc("0x1c")](wc("0x17"))[wc("0x25")])throw new e.CKEditorError(wc("0xa"))}getDataWithAcceptedSuggestions(t){return Dc(this[wc("0x0")],!0,t)}[wc("0x19")](t){return Dc(this.editor,!1,t)}}class Fc extends t.Plugin{static get[wc("0x15")](){return wc("0x7")}constructor(t){super(t),this.result=wc("0x1d")}[wc("0x1a")](){this[wc("0x0")][wc("0x21")].get("CommentsRepository")[wc("0x24")]={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[wc("0x0")][wc("0x21")][wc("0x1c")](wc("0xf"))._adapter=null}}function Pc(t){return void 0!==t.getRootsAttributes}async function Dc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Mc);o[wc("0x21")][wc("0xd")](Wa,Fc),o[wc("0x13")]=Pc(t)?t[wc("0x1")]():void 0;const s=document.createDocumentFragment(),i=t[wc("0x4")].get(wc("0x17"))[wc("0x25")],x=await i(o,(()=>function(t){const e=document[wc("0xb")](wc("0x12"));return t[wc("0x10")](e),e}(s)));!function(t,e){const n=t[wc("0x26")][wc("0x8")][wc("0x20")]().reduce(((e,n)=>(e[n]=t[wc("0x11")][wc("0x1c")]({rootName:n}),e)),{}),o=t.plugins.get("Users").users.map((t=>({id:t.id,name:t[wc("0x23")]}))),s=t[wc("0x21")].get(wc("0xf")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e[wc("0x21")][wc("0x1c")]("Users"),i=e[wc("0x21")][wc("0x1c")]("TrackChangesEditing");for(const t of o)r.getUser(t.id)||r[wc("0x22")](t);r.me||r[wc("0x6")]();for(const t of s)i[wc("0x5")](t);e.data[wc("0xc")](n)}(t,x),x.execute(e?"acceptAllSuggestions":wc("0xe"));const a=Pc(x)?x[wc("0x1b")](n):x.data[wc("0x1c")](n);return await x[wc("0x27")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>dc,TrackChanges:()=>Sc,TrackChangesData:()=>Oc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["has","forceDisabled","_enabledCommands","_disableUnsupportedCommands","refresh","value","isEnabled","commands","_enableCommands","affectsData","TrackChangesCommand","editor","execute","clearForceDisabled"];var c,l;c=a,l=243,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0xb")]=e,this[d("0x0")]=!1,this[d("0xd")](),this._isEnabledBasedOnSelection=!1}[d("0xd")](){this[d("0x1")]=!0}[d("0x7")](){this[d("0x0")]=!this.value,this[d("0x0")]?this[d("0xc")]():this._enableCommands()}_disableUnsupportedCommands(){for(const t of this.editor[d("0x2")].commands())t[d("0x4")]&&!this._enabledCommands[d("0x9")](t)&&t[d("0xa")](d("0x5"))}[d("0x3")](){for(const t of this[d("0x6")][d("0x2")][d("0x2")]())t[d("0x4")]&&!this[d("0xb")][d("0x9")](t)&&t[d("0x8")]("TrackChangesCommand")}}const g=["model","editor","_suggestions","execute","canEditAt","isEnabled","acceptSuggestion","TrackChangesEditing","track-changes-accept-suggestion-not-found","_isEnabledBasedOnSelection","getRanges","get"];var m,f;m=g,f=379,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x7")]=e,this.refresh(),this[h("0x2")]=!1}refresh(){this[h("0xa")]=!0}[h("0x8")](t){const n=this[h("0x7")][h("0x4")](t);if(!n)throw new e.CKEditorError(h("0x1"),this);const o=n[h("0x3")]();this[h("0x6")][h("0x5")][h("0x9")](o)&&this[h("0x6")].plugins.get(h("0x0"))[h("0xb")](n)}}const b=["get","TrackChangesEditing","refresh","model","track-changes-discard-suggestion-not-found","_suggestions","getRanges","_isEnabledBasedOnSelection","canEditAt","execute","discardSuggestion","editor","isEnabled"];var E,_;E=b,_=261,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x4")]=e,this[T("0x1")](),this[T("0x6")]=!1}[T("0x1")](){this[T("0xb")]=!0}[T("0x8")](t){const n=this[T("0x4")][T("0xc")](t);if(!n)throw new e.CKEditorError(T("0x3"),this);const o=n[T("0x5")]();this.editor[T("0x2")][T("0x7")](o)&&this[T("0xa")].plugins[T("0xc")](T("0x0"))[T("0x9")](n)}}const y=["end","deletion","content","join"," [color ","isIntersecting","add","isObject","type","createPositionBefore","push","createPositionAfter","createRange","execute","length","sort","replace","isInContent","value","start","splice","getRanges","createPositionAt","isCollapsed","schema","next","isTouching"];var k,A;k=y,A=158,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x13")](((t,e)=>v("0x5")==t[v("0xc")]&&"deletion"!=e[v("0xc")]?-1:v("0x5")!=t.type&&v("0x5")==e[v("0xc")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x1")];for(;o<t[v("0x12")];){const i=t[o],x=t[o+1];n||(n=e[v("0xd")](i)),I(e,i,x)||(s[v("0xe")](e[v("0x10")](n,r[v("0xb")](i)?e[v("0xf")](i):e[v("0x1a")](i,v("0x4")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0xf")](e),s=t.createPositionBefore(n);return o[v("0x3")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0x18")](0,100);t.change((()=>{for(const t of o)t[v("0x15")]&&e[v("0x11")](t.id)}))}}const N=["_command","values","isEnabled","from","model","_suggestions","editor","getRanges","refresh","_isEnabledBasedOnSelection","some","execute","isInContent"];var M,w;M=N,w=326,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0xc")]=e,this[O("0x4")]=n,this.refresh(),this[O("0x8")]=!1}[O("0x7")](){const t=Array[O("0x2")](this._suggestions[O("0x0")]())[O("0x9")]((t=>t[O("0xb")]));this[O("0x1")]=this._command[O("0x1")]&&t}[O("0xa")](){const t=R(Array[O("0x2")](this[O("0x4")][O("0x0")]()));for(const e of t){const t=e[O("0x6")]();if(!this[O("0x5")][O("0x3")].canEditAt(t))return}L(this.editor.model,this._command,t)}}const D=["refresh","from","editor","model","_suggestions","getRanges","size","execute","_command","isEnabled","_selectedSuggestions","canEditAt"];var P,B;P=D,B=175,function(t){for(;--t;)P.push(P.shift())}(++B);const j=function(t,e){return D[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this._command=e,this._suggestions=n,this[j("0x3")]=new Set,this[j("0x5")](),this._isEnabledBasedOnSelection=!1}[j("0x5")](){const t=this[j("0x7")][j("0x8")].document.selection,e=Array[j("0x6")](this[j("0x9")].values());this[j("0x3")]=function(t,e){const n=Array.from(t[v("0x19")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s.getRanges())(e[v("0x9")](n)||t[v("0x0")]&&!s.isMultiRange&&s[v("0x2")]&&n[v("0x4")][v("0x3")](e[v("0x17")]))&&o[v("0xa")](s);return o}(t,e),this[j("0x2")]=this[j("0x1")][j("0x2")]&&!!this[j("0x3")][j("0xb")]}[j("0x0")](){const t=R(Array[j("0x6")](this._selectedSuggestions));for(const e of t){const t=e[j("0xa")]();if(!this.editor.model[j("0x4")](t))return}L(this[j("0x7")][j("0x8")],this[j("0x1")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Pt.call(e,t)};const jt=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 Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Dt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;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 Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var 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 je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=st?st.prototype:void 0,Pn=Dn?Dn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){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 r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Po="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Do:Sn(t),c=x?Do:Sn(e),l=(a=a==Fo?Po:a)==Po,d=(c=c==Fo?Po:c)==Po,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["add","onDiscard","getRanges","length","toJSON","_onAccept","onAttributesChange","author","_onDiscard","suggestion:","head","createdAt","_saved","getFirstRange","previous","from","getFirstMarker","removeMarker","_model","nodeBefore","getMultiRangeId","split","filter","type","set","setAttribute","next","_markerNames","push","commentThread","getItems","removeAttribute","isExternal","addMarker","isMultiRange","@external","isInContent","data","creator","getMarkerNames","authoredAt","attributes","_onAttributesChange","markers","change","delete","accept","getMarkers","addMarkerName","map","decorate","getRange","start","addRange","isIntersectingWithRange","subType"];var $o,Jo;$o=Xo,Jo=344,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this._isDataLoaded=!1,this.id=e.id,this[Qo("0xf")]=e[Qo("0xf")],this[Qo("0x2f")]=e.subType||null,this.author=e[Qo("0x37")],this[Qo("0x1e")]=e.creator||e[Qo("0x37")],this[Qo("0x18")]=Boolean(e[Qo("0x21")]&&e[Qo("0x21")][Qo("0x1b")]),this[Qo("0x1d")]=null,this[Qo("0xa")]=t,this[Qo("0x35")]=e.onAccept,this[Qo("0x0")]=e[Qo("0x31")],this[Qo("0x22")]=e[Qo("0x36")],this[Qo("0x13")]=new Set,this[Qo("0x3")]=null,this[Qo("0x10")](Qo("0x20"),null),this.set(Qo("0x21"),e[Qo("0x21")]||{}),this[Qo("0x10")](Qo("0x6"),null),this[Qo("0x10")](Qo("0x12"),null),this[Qo("0x10")](Qo("0x15"),null),this.set(Qo("0x4"),!1),this[Qo("0x2a")](Qo("0x26")),this[Qo("0x2a")]("discard")}get head(){let t=this;for(;t[Qo("0x6")];)t=t[Qo("0x6")];return t}get hasComments(){return!!this[Qo("0x15")]&&this[Qo("0x15")][Qo("0x33")]>0}get[Qo("0x1a")](){return 0!=this[Qo("0x13")].size&&6==Array[Qo("0x7")](this[Qo("0x13")])[0][Qo("0xd")](":")[Qo("0x33")]}get[Qo("0x1c")](){return null!==this.getFirstMarker()}addMarkerName(t){this._markerNames[Qo("0x30")](t)}[Qo("0x1f")](){return Array.from(this[Qo("0x13")])}getMarkers(){return this[Qo("0x1f")]()[Qo("0x29")]((t=>this._model[Qo("0x23")].get(t)))[Qo("0xe")]((t=>t))}getFirstMarker(){return this[Qo("0x27")]()[0]||null}removeMarkers(){this[Qo("0xa")][Qo("0x24")]((t=>{for(const e of this[Qo("0x27")]())t[Qo("0x9")](e)})),this._markerNames.clear()}[Qo("0x9")](t){this._model[Qo("0x24")]((e=>{e.removeMarker(t)})),this[Qo("0x13")][Qo("0x25")](t)}[Qo("0x2d")](t){const e=Qo("0x1")+this.type+":"+this.subType+":"+this.id+":"+this.creator.id+":"+Zo[Qo("0xc")]();this[Qo("0x28")](e),this[Qo("0xa")].change((n=>{n[Qo("0x19")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x2e")](t){for(const e of this[Qo("0x32")]())if(e.isIntersecting(t))return!0;return!1}[Qo("0x32")](){return this.getMarkers().map((t=>t[Qo("0x2b")]()))}[Qo("0x16")](){return this[Qo("0x32")]().reduce(((t,e)=>[...t,...e[Qo("0x16")]()]),[])}[Qo("0x5")](){var t;return(null===(t=this[Qo("0x8")]())||void 0===t?void 0:t[Qo("0x2b")]())||null}getContainedElement(){const t=this.getRanges();if(1!=t.length)return null;const e=t[0],n=e[Qo("0x2c")].nodeAfter,o=e.end[Qo("0xb")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x26")](){this[Qo("0x35")](this[Qo("0x32")](),this.data,this[Qo("0x21")]),this.removeMarkers()}discard(){this[Qo("0x0")](this[Qo("0x32")](),this[Qo("0x1d")],this[Qo("0x21")]),this.removeMarkers()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x2")];for(;e;)t[Qo("0x14")](e),e=e[Qo("0x12")];return t}[Qo("0x11")](t,e){const n=eo(this[Qo("0x21")]);_o(n,t,e),Go(n,this[Qo("0x21")])||(this.attributes=n,this[Qo("0x22")](n))}[Qo("0x17")](t){const e=eo(this[Qo("0x21")]);qo(e,t),Go(e,this[Qo("0x21")])||(this[Qo("0x21")]=e,this[Qo("0x22")](this.attributes))}[Qo("0x34")](){return{id:this.id,type:this[Qo("0x2f")]?this[Qo("0xf")]+":"+this[Qo("0x2f")]:this.type,authorId:this.creator.id,createdAt:this[Qo("0x3")],hasComments:this.hasComments,data:this[Qo("0x1d")],attributes:this[Qo("0x21")]}}static[Qo("0xc")](){return(0,e.uid)().substr(1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["_locale","length","EmptyContainer","type","removeEmptyContainer","*Remove:* %0","set","ELEMENT_SPACE","data","$1 $2","Object","_customCallbacks","elementEnd","isEmpty","replace","start","insertion","addEmptyContainer","*Split:* %0","skip","registerDescriptionCallback","_addDescriptionItems","name","previousSibling","normal","checkChild","elementStart","end","*Merge:* %0","isObject","add","addContainer","getFirstRange","softBreak","pop","*Insert:* %0","nextSibling","removeObject","Container","text","push","remove","isInContent","_itemLabels","get","isEqual","_resolveDescriptionItems","_itemLabelsCallbacks","deletion","addObject","label","_schema","indexOf","function","getItemLabel","quantity","element","removeContainer","registerElementLabel"];var es,ns;es=ts,ns=489,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x35")]=[],this._itemLabels=new Map,this[os("0x1e")]=[],this[os("0x22")]=t,this[os("0x2a")]=e}getDescriptions(t){const e=[];for(let n=0;n<t[os("0x2b")];n++){const o=t[n];if(!o[os("0x19")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x2d")in n&&e.push(n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0xf")]()[os("0xa")][os("0x1c")](s[os("0xf")]()[os("0x39")])){const t=e[e.length-1],n="insertion"==o[os("0x2d")]?os("0xd"):os("0x18");t&&os("0x16")==t.type&&(t[n]+="\n")}}}return this[os("0x1d")](e)}[os("0x3")](t){this[os("0x35")][os("0x17")](t)}[os("0x29")](t,n,o=e.priorities[os("0x7")]){os("0x24")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0x1a")][os("0x30")](t,n)}[os("0x25")](t,e=1){let n;for(const e of this[os("0x1e")])if(e.matchingCallback(t)){n=e[os("0x21")];break}return n||(n=this._itemLabels[os("0x1b")](t.name)),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x5")]}[os("0x4")](t,e){const n=e[os("0xf")]().getWalker(),o="insertion"==e.type?os("0xd"):"remove";for(const e of n){const s=e.item,r=t[t[os("0x2b")]-1];if(s.is("$textProxy"))r&&r[os("0x2d")][os("0x23")](os("0x15"))>-1&&t[os("0x11")](),r&&os("0x16")==r.type?r[o]+=s[os("0x32")]:t[os("0x17")]({type:"text",add:"add"==o?s[os("0x32")]:"",remove:os("0x18")==o?s[os("0x32")]:""});else if(this._schema[os("0xc")](s)){const i=s;if(r&&r[os("0x2d")][os("0x23")]("Container")>-1&&t.pop(),os("0x36")==e.type)continue;r&&r[os("0x2d")]==o+os("0x34")&&r[os("0x27")][os("0x5")]==i[os("0x5")]?r[os("0x26")]++:t[os("0x17")]({type:o+os("0x34"),element:i,quantity:1}),n[os("0x2")]((t=>!(os("0x36")==t[os("0x2d")]&&t.item==s)))}else if(this._schema[os("0x8")](s,"$text")||s.is(os("0x27"),os("0x10"))){const n=s;if("add"==o&&os("0x9")==e[os("0x2d")]||os("0x18")==o&&os("0x36")==e[os("0x2d")])continue;if(r&&-1==r[os("0x2d")][os("0x23")](os("0x15"))){os("0x16")==r[os("0x2d")]&&(r[o]+="\n");continue}let i;if(i=os("0xd")==o?n[os("0x13")]&&!this[os("0x22")].isObject(n[os("0x13")])?n[os("0x13")]:null:n[os("0x6")]&&!this[os("0x22")][os("0xc")](n[os("0x6")])?n[os("0x6")]:null,n[os("0x37")]||i&&i[os("0x37")]){const e=i&&i.isEmpty?i:n;r&&r.type==o+"EmptyContainer"&&r[os("0x27")][os("0x5")]==e[os("0x5")]?r[os("0x26")]++:t.push({type:o+os("0x2c"),element:e,quantity:1})}else t[os("0x17")]({type:o+"Container",element:n})}}}[os("0x1d")](t){const e=this[os("0x2a")],n=[];for(const o of t){switch(o[os("0x2d")]){case os("0x16"):if(o.add=o.add[os("0x38")](/(\S)\u000A+(\S)/g,os("0x33")).replace(/\u000A/g,""),o.remove=o[os("0x18")][os("0x38")](/(\S)\u000A+(\S)/g,os("0x33"))[os("0x38")](/\u000A/g,""),""!=o[os("0xd")]&&""!=o.remove){n.push({type:"replace",content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x18")]+'"','"'+o.add+'"'])});continue}if(null!=o.add.match(/^ +$/)){n[os("0x17")]({type:os("0x3a"),content:Yo(e,"*Insert:* %0",Yo(e,os("0x31"),o.add[os("0x2b")]))});continue}if(null!=o.remove.match(/^ +$/)){n[os("0x17")]({type:os("0x1f"),content:Yo(e,"*Remove:* %0",Yo(e,os("0x31"),o.remove[os("0x2b")]))});continue}if(""!=o[os("0xd")]){n[os("0x17")]({type:os("0x3a"),content:Yo(e,os("0x12"),'"'+o[os("0xd")]+'"')});continue}n[os("0x17")]({type:os("0x1f"),content:Yo(e,os("0x2f"),'"'+o.remove+'"')});continue;case os("0x0"):case os("0x20"):n[os("0x17")]({type:os("0x3a"),content:Yo(e,os("0x12"),this[os("0x25")](o[os("0x27")],o[os("0x26")]))});continue;case os("0x2e"):case os("0x14"):n[os("0x17")]({type:"deletion",content:Yo(e,os("0x2f"),this.getItemLabel(o[os("0x27")],o.quantity))});continue;case os("0xe"):n[os("0x17")]({type:os("0x3a"),content:Yo(e,os("0x1"),this[os("0x25")](o.element,o[os("0x26")]))});continue;case os("0x28"):n[os("0x17")]({type:"deletion",content:Yo(e,os("0xb"),this[os("0x25")](o[os("0x27")],o[os("0x26")]))});continue}n.push(o)}return n}}const rs=["value","afterInit","document","FORMAT_ALIGN_TO_LEFT","model","getSelectedBlocks","markBlockFormat","filter","FORMAT_ALIGN_TO_RIGHT","getAttribute","enableCommand","contentLanguageDirection","has","*Format:* %0","_descriptionFactory","alignment","editor","FORMAT_JUSTIFY_TEXT","FORMAT_ALIGN_TO_CENTER","plugins","commandName","TrackChangesEditing","selection","left","locale"];var is,xs;is=rs,xs=333,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x12")](){const t=this[as("0x8")],e=t.locale;if(!t[as("0xb")][as("0x4")]("AlignmentEditing"))return;const n=t.plugins.get(as("0xd"));n[as("0x2")](as("0x7"),((e,o={})=>{let s=o[as("0x11")];o.value||(s="ltr"===t[as("0x10")][as("0x3")]?as("0xf"):"right");const r=Array.from(this[as("0x8")][as("0x15")][as("0x13")][as("0xe")][as("0x16")]())[as("0x18")]((t=>function(t,e,n){const o=t[as("0x1")]("alignment")||null;return e.checkAttribute(t,as("0x7"))&&n!=o}(t,this[as("0x8")].model.schema,s)));t[as("0x15")].change((()=>{for(const t of r)n[as("0x17")](t,{commandName:as("0x7"),commandParams:[{value:s}]})}))})),n[as("0x6")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0x7")==n[as("0xc")]){const t=n.commandParams[0].value;return{type:"format",content:Yo(e,as("0x5"),function(t){switch(t){case as("0xf"):return Yo(e,as("0x14"));case"right":return Yo(e,as("0x0"));case"center":return Yo(e,as("0xa"));case"justify":return Yo(e,as("0x9"))}}(t))}}}))}}const ls=["schema","bindElementToMarker","listItem","hasAttribute","addClass","name","includes","parent","previousPosition","elementEnd","type","createRangeOn","TrackChangesEditing","item","element","markerName","listIndent","isLimit","addHighlight","toViewElement","activeMarkers","isContent","getWalker","get","push","ck-suggestion-marker--active","isAtEnd","markerRange","getAttribute","getCustomProperty","nextSibling","insert","model","mapper","start","toViewPosition","writer"];var ds,us;ds=ls,us=342,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e.getItems())s[gs("0x1f")](t)&&o[gs("0xf")](n[gs("0x2")](s));return o}function fs(t){const e=[];if(t.is("element",gs("0x1e"))){let n=t.nextSibling;for(;n&&n.is(gs("0x5"),gs("0x1e"))&&n[gs("0x13")](gs("0x7"))>0;)e[gs("0xf")](n),n=n[gs("0x15")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0xe")](gs("0x3"));return(s,r,i)=>{if(!i.consumable.test(r[gs("0x12")],s[gs("0x21")]))return;const x=r[gs("0x12")][gs("0xd")](),a=r.markerRange[gs("0x19")],c=t[gs("0x17")][gs("0x1c")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x4")];u=u||c[gs("0xc")](e);const n=i.mapper[gs("0xa")](e);if(n&&n[gs("0x14")](gs("0x9")))return;gs("0x0")==t[gs("0x1")]&&c.isBlock(e)&&!c[gs("0x8")](e)&&(e.nextSibling||a[gs("0x11")]?l&&l[gs("0x23")]==e||(l=e,m(t[gs("0x24")]),g=!0):d=d||t[gs("0x24")])}function m(t){const s=i[gs("0x1b")].createUIElement("span",{class:"ck-suggestion-marker-"+e}),x=i.mapper[gs("0x1a")](t);n&&o[gs("0xb")][gs("0x22")](r.markerName)&&i[gs("0x1b")][gs("0x20")](gs("0x10"),s),i[gs("0x1b")][gs("0x16")](x,s),i[gs("0x18")][gs("0x1d")](s,r[gs("0x6")])}u||g||!d||m(d)}}const ps=["toLowerCase","FORMAT_SUBSCRIPT","FORMAT_SUPERSCRIPT","editor","FORMAT_STRIKETHROUGH","value","model","BoldEditing","bold","*Remove format:* %0","registerDescriptionCallback","code","from","selection","forceValue","SuperscriptEditing","FORMAT_BOLD","*Format:* %0","commandName","format","change","ItalicEditing","has","superscript","SubscriptEditing","enableCommand","FORMAT_ITALIC","underline","FORMAT_UNDERLINE","italic","UnderlineEditing","StrikethroughEditing","TrackChangesEditing","locale","plugins","markInlineFormat"];var bs,Es;bs=ps,Es=150,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x1"),_s("0xf"),_s("0x18"),"CodeEditing",_s("0x19"),_s("0x12"),_s("0x9")];class Cs extends t.Plugin{afterInit(){const t=this[_s("0x21")],e=t[_s("0x0")],n=t[_s("0x1c")].get(_s("0x1a")),o=t[_s("0x1b")];for(const o of Ts){if(!t[_s("0x1c")][_s("0x10")](o))continue;const s=o.slice(0,-7)[_s("0x1e")](),r=t.commands.get(s);n[_s("0x13")](s,((t,o={})=>{const i=e.document[_s("0x7")];if(i.isCollapsed)return void t(o);const x=void 0!==o.forceValue?o[_s("0x8")]:!r[_s("0x23")];e[_s("0xe")]((()=>{const t=Array[_s("0x6")](i.getRanges());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x1d")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory[_s("0x4")]((n=>{const{data:s}=n;if(s&&s[_s("0xc")]===t)return s.commandParams[0][_s("0x8")]?{type:_s("0xd"),content:Yo(o,_s("0xb"),e)}:{type:"format",content:Yo(o,_s("0x3"),e)}}))}s(_s("0x2"),Yo(o,_s("0xa"))),s(_s("0x17"),Yo(o,_s("0x14"))),s(_s("0x15"),Yo(o,_s("0x16"))),s(_s("0x5"),Yo(o,"FORMAT_CODE")),s("strikethrough",Yo(o,_s("0x22"))),s("subscript",Yo(o,_s("0x1f"))),s(_s("0x11"),Yo(o,_s("0x20")))}}const ys=["afterInit","value","editor","blockQuote","parent","model","filter","schema","ELEMENT_BLOCK_QUOTE","registerDescriptionCallback","BlockQuoteEditing","$root","markBlockFormat","*Remove format:* %0","_descriptionFactory","plugins","get","format","commandName","forceValue","name","checkChild","from","*Format:* %0","commandParams","has","change","selection"];var ks,As;ks=ys,As=404,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x10")](){const t=this.editor,e=t.locale;if(!t[vs("0x3")][vs("0xd")](vs("0x1a")))return;const n=t[vs("0x3")][vs("0x4")]("TrackChangesEditing"),o=this.editor.commands[vs("0x4")](vs("0x13"));n.enableCommand(vs("0x13"),((e,s={})=>{const r=this[vs("0x12")].model.document[vs("0xf")],i=s&&void 0!==s[vs("0x7")]?s[vs("0x7")]:!o[vs("0x11")];let x=[];if(i){const e=Array.from(r.getSelectedBlocks())[vs("0x16")]((t=>Ss(t)||function(t,e){const n=e[vs("0x9")](t[vs("0x14")],vs("0x13")),o=e[vs("0x9")]([vs("0x1b"),vs("0x13")],t);return n&&o}(t,this[vs("0x12")].model[vs("0x17")])));x=S(e,t.model)}else{const e=Array[vs("0xa")](r.getSelectedBlocks())[vs("0x16")]((t=>Ss(t)));x=S(e,t[vs("0x15")])}t[vs("0x15")][vs("0xe")]((()=>{for(const t of x)n[vs("0x0")](t,{commandName:vs("0x13"),commandParams:[{forceValue:i}]})}))})),n[vs("0x2")][vs("0x19")]((t=>{const{data:n}=t;if(n&&vs("0x13")==n[vs("0x6")]){const t=Yo(e,vs("0x18"));return n[vs("0xc")][0][vs("0x7")]?{type:vs("0x5"),content:Yo(e,vs("0xb"),t)}:{type:vs("0x5"),content:Yo(e,vs("0x1"),t)}}}))}}function Ss(t){return"blockQuote"==t.parent[vs("0x8")]}const Is=["editor","enableCommand","plugins","ckbox","commands"];var Ls,Ns;Ls=Is,Ns=261,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{afterInit(){const t=this[Ms("0x4")];t[Ms("0x3")].get(Ms("0x2"))&&t[Ms("0x1")].get("TrackChangesEditing")[Ms("0x0")](Ms("0x2"))}}const Os=["indentCodeBlock","ELEMENT_CODE_BLOCK","get","markBlockFormat","model","registerDescriptionCallback","language","forceValue","schema","checkChild","blockName","config","isLimit","commandParams","codeBlock","*Format:* %0","commandName","registerElementLabel","commands","value","formatBlock","languages","getSelectedBlocks","outdentCodeBlock","afterInit","enableCommand","parent","*Remove format:* %0","from","name","plugins","locale","label","editor"];var Fs,Ds;Fs=Os,Ds=185,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ds);const Ps=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ps("0x9")](){const t=this[Ps("0x12")];if(!t[Ps("0xf")].has("CodeBlock"))return;const e=t[Ps("0xf")][Ps("0x15")]("TrackChangesEditing"),n=t[Ps("0x10")],o=t[Ps("0x1e")].get(Ps("0x21"))[Ps("0x6")],s=t[Ps("0x3")][Ps("0x15")](Ps("0x21"));e[Ps("0xa")](Ps("0x13")),e[Ps("0xa")](Ps("0x8")),e[Ps("0xa")](Ps("0x21"),((n,r={})=>{const i=t[Ps("0x17")],x=t[Ps("0x17")].document.selection,a=r&&void 0!==r[Ps("0x1a")]?r[Ps("0x1a")]:!s[Ps("0x4")];let c;r.language||(r.language=o[0].language),c=a?Array[Ps("0xd")](x[Ps("0x7")]()).filter((t=>{return js(t)||(e=t,n=i[Ps("0x1b")],!e.is("rootElement")&&!n[Ps("0x1f")](e)&&n[Ps("0x1c")](e[Ps("0xb")],Ps("0x21")));var e,n})):Array[Ps("0xd")](x[Ps("0x7")]()).filter((t=>js(t)));const l=S(c,i);i.change((()=>{for(const t of l)e[Ps("0x16")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Ps("0x1d")})}))})),e._descriptionFactory[Ps("0x2")](Ps("0x21"),(t=>Yo(n,Ps("0x14"),t))),e._descriptionFactory[Ps("0x18")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ps("0x5")==s&&r&&Ps("0x21")==r[Ps("0x1")]){const t=r[Ps("0x20")][0][Ps("0x19")],s=e(o.find((e=>e[Ps("0x19")]===t))[Ps("0x11")]);return r[Ps("0x20")][0][Ps("0x1a")]?{type:"format",content:Yo(n,Ps("0x0"),Yo(n,Ps("0x14"),1)+" ("+s+")")}:{type:"format",content:Yo(n,Ps("0xc"),Yo(n,Ps("0x14"),1))}}}))}}function js(t){return Ps("0x21")==t[Ps("0xe")]}const Us=["has","CommentsEditing","enableCommand","get","TrackChangesEditing","editor","addCommentThread","plugins","afterInit"];var Gs,Hs;Gs=Us,Hs=308,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x6")](){const t=this[zs("0x3")];t.plugins[zs("0x7")](zs("0x8"))&&t[zs("0x5")][zs("0x1")](zs("0x2"))[zs("0x0")](zs("0x4"))}}var Vs=n(181);const Ks=["data","enqueueChange","editor","lock","downcastDispatcher","requires","removeMarker:suggestion:deletion","addMarker:suggestion:deletion","createSelection","high","delete","merge","detach","document","bind","init","$graveyard","get","start","options","isCollapsed","showSuggestionHighlights","enableCommand","selection","editing","mapper","getFirstRange","remove","markerName","end","model","writer","createRange","forward","deleteForward","markerNameToElements","modifySelection","plugins","buffer","root","fromRange","unit","TrackChangesEditing"];var qs,Xs;qs=Ks,Xs=490,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x1f")](){return[Vs.Delete]}[$s("0x29")](){const t=this[$s("0x1c")],e=t[$s("0x14")].get($s("0x19"));e[$s("0x5")]($s("0x24"));const n=t.commands[$s("0x0")]($s("0x11"));e[$s("0x5")]($s("0x11"),((e,o={})=>{const s=t[$s("0xd")][$s("0x22")](t[$s("0xd")][$s("0x27")][$s("0x6")]);s[$s("0x3")]&&t[$s("0xd")][$s("0x13")](s,{direction:$s("0x10"),unit:o[$s("0x18")]});const r=s[$s("0x9")](),x=i.LiveRange[$s("0x17")](r);let a;e(o),a=$s("0x2a")==x[$s("0x16")].rootName?t.model[$s("0xf")](r[$s("0x1")]):t[$s("0xd")].createRange(x[$s("0x1")],x[$s("0xc")]),x[$s("0x26")](),t[$s("0xd")][$s("0x1b")](n.buffer.batch,(t=>{n[$s("0x15")][$s("0x1d")](),t.setSelection(t[$s("0xf")](a[$s("0xc")])),n[$s("0x15")].unlock()}))})),t[$s("0x7")][$s("0x1e")].on($s("0x21"),hs(t,$s("0x25")),{priority:$s("0x23")}),t[$s("0x1a")].downcastDispatcher.on($s("0x21"),((e,n,o)=>{o[$s("0x2")][$s("0x4")]&&hs(t,"merge",{showActiveMarker:!1})[$s("0x28")](this)(e,n,o)}),{priority:$s("0x23")}),t[$s("0x7")][$s("0x1e")].on($s("0x20"),((t,e,n)=>{const o=n[$s("0x8")][$s("0x12")](e[$s("0xb")]);if(o)for(const t of o)t.is("uiElement")&&(n.mapper.unbindElementFromMarkerName(t,e[$s("0xb")]),n[$s("0xe")][$s("0xa")](t))}),{priority:$s("0x23")})}}const Qs=["deletion","_suggestionFactory","accept","plugins","_descriptionFactory","multipleBlocks","getFirstRange","selection","ELEMENT_","enableCommand","push","nextSibling","end","length","toUpperCase","registerDescriptionCallback","*Format:* remove from %0","*Outdent:* %0","createRange","outdentList","*Merge:* %0","nodeAfter","registerCustomCallback","containsItem","isFirstBlockOfListItem","after","detach","splitListItemAfter","afterInit","numberedList","locale","bulletedList","mergeListItemForward","ELEMENT_NUMBERED_LIST","change","schema","before","commandName","splitListItemBefore","listIndent","*Indent:* %0","*Change to:* %0","editor","fromRange","_LIST","map","setSelection","createPositionAt","listType","get","listItemId","findIndex","document","execute","DocumentListUtils","refresh","documentList","commands","from","expandListBlocksToCompleteList","slice","getAttribute","indentList","format","markBlockFormat","commandParams","model","ELEMENT_LIST_ITEM","start","getRanges","*Format:* insert into %0","value","markMultiRangeBlockFormat","getSelectedBlocks","hasAttribute","add","formatBlock","forceValue"];var Zs,Ys;Zs=Qs,Ys=294,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x2e")](){const t=this[tr("0x3c")];if(!t[tr("0x15")].has("DocumentListEditing"))return;const e=t[tr("0x30")],n=t[tr("0x15")][tr("0x43")]("TrackChangesEditing"),o=t[tr("0x15")].get(tr("0x48"));function s(e){return()=>{const s=t[tr("0x4b")].get(e);let r=Array[tr("0x4c")](t.model.document[tr("0x19")][tr("0xd")]());if(a(e)){r=o[tr("0x4d")](r);const t=[];for(const e of r)o[tr("0x2a")](e)&&t.push(e);r=t}t[tr("0x6")][tr("0x34")]((()=>{n[tr("0xc")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0xb")]}],formatGroupId:tr("0x42")},[],tr("0x4a"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[tr("0x45")]((t=>!t[tr("0xe")](tr("0x44"))));return n>-1&&(e=e[tr("0x0")](0,n)),e}(t.model[tr("0x46")].selection[tr("0xd")]()),s=o[o[tr("0x1f")]-1],r=t[tr("0x6")].schema.isObject(s)?tr("0x2b"):tr("0x1e"),i=t[tr("0x6")][tr("0x24")](t[tr("0x6")][tr("0x41")](o[0],tr("0x36")),t[tr("0x6")][tr("0x41")](s,r));t[tr("0x6")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[tr("0x1d")];for(;t&&t[tr("0x1")](tr("0x39"))>n.getAttribute(tr("0x39"));)e[tr("0xf")](t),t=t[tr("0x1d")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x6")][tr("0x46")][tr("0x19")][tr("0xd")]().next()[tr("0xb")],s=t[tr("0x6")][tr("0x41")](o,"before"),r=t.model.createPositionAt(o,0),i=t[tr("0x6")].createRange(s,r);t[tr("0x6")][tr("0x34")]((()=>{n[tr("0x4")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x42")})}))}}function a(e){const n=t[tr("0x4b")][tr("0x43")](tr("0x31"))[tr("0xb")],o=t[tr("0x4b")].get(tr("0x2f")).value;return tr("0x2f")===e?n:o}n[tr("0x1b")](tr("0x2f"),s("numberedList")),n[tr("0x1b")](tr("0x31"),s(tr("0x31"))),n[tr("0x1b")](tr("0x2"),r("indentList")),n[tr("0x1b")](tr("0x25"),r(tr("0x25"))),n[tr("0x1b")](tr("0x2d"),x(tr("0x2d"))),n[tr("0x1b")](tr("0x38"),x(tr("0x38"))),n[tr("0x16")].registerElementLabel((function(e){const n=!t.model[tr("0x35")].isObject(e),o=e.previousSibling,s=e[tr("0x1d")],r=e[tr("0x1")]("listItemId"),i=!o||o[tr("0x1")](tr("0x44"))!==r,x=!s||s[tr("0x1")](tr("0x44"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x7"),t))),n[tr("0x16")][tr("0x21")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x37")]){case tr("0x31"):r=n[tr("0x5")][0][tr("0x11")],i=a(n[tr("0x37")]),o=tr(r?"0xa":"0x22"),i&&(o="*Change to:* %0"),s={type:"format",content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case"numberedList":r=n.commandParams[0].forceValue,i=a(n[tr("0x37")]),o=tr(r?"0xa":"0x22"),i&&(o=tr("0x3b")),s={type:tr("0x3"),content:Yo(e,o,Yo(e,tr("0x33")))};break;case tr("0x2"):o=tr("0x3a"),s={type:"format",content:Yo(e,o,Yo(e,tr("0x7")))};break;case tr("0x25"):o=function(t){const e=t[tr("0x18")]();let n=e.start.nodeAfter;for(;n&&e[tr("0x29")](n);){if(n.getAttribute(tr("0x39"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x22"),Yo(e,function(t){const e=t.getFirstRange()[tr("0x8")][tr("0x27")];return tr("0x1a")+e[tr("0x1")](tr("0x42"))[tr("0x20")]()+tr("0x3e")}(t))):Yo(e,tr("0x23"),Yo(e,tr("0x7"))),s={type:"format",content:o};break;case"mergeListItemBackward":case tr("0x32"):!1===n[tr("0x17")]&&(o=tr("0x26"),s={type:tr("0x12"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))})}return s})),n[tr("0x13")][tr("0x28")](tr("0x10"),"documentList",tr("0x14"),(function(e,n){const o=[];for(let n of e)n[tr("0x8")].nodeAfter===n.end.parent&&(n=t[tr("0x6")][tr("0x24")](t.model[tr("0x41")](n[tr("0x8")].nodeAfter,0))),o[tr("0x1c")](n);t[tr("0x6")].change((e=>{const s=t[tr("0x6")][tr("0x46")][tr("0x19")],r=Array.from(s[tr("0x9")]())[tr("0x3f")]((t=>i.LiveRange[tr("0x3d")](t)));e[tr("0x40")](o),t[tr("0x4b")][tr("0x43")](n[tr("0x37")])[tr("0x49")](),n[tr("0x5")][tr("0x1c")]({forceDefaultExecution:!0}),t[tr("0x47")](n[tr("0x37")],...n[tr("0x5")]),e[tr("0x40")](r);for(const t of r)t[tr("0x2c")]()}))}))}}var nr=n(331);const or=["selection","getFirstPosition","remove","markerNameToElements","mapper","createPositionAt","createRange","model","detach","markInsertion","options","fromRange","addMarker:suggestion:insertion","bind","TrackChangesEditing","enableCommand","afterExecute","get","plugins","showSuggestionHighlights","markerName","requires","init","commands","split","downcastDispatcher","editor","end","hasClass","editing","document","nextSibling","data","ck-suggestion-marker-split","enter","getFirstRange","high","writer","setSelection"];var sr,rr;sr=or,rr=446,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x4")](){return[nr.Enter]}[ir("0x5")](){const t=this[ir("0x9")],e=t[ir("0x1")][ir("0x0")](ir("0x24")),n=t[ir("0x6")][ir("0x0")](ir("0x11"));e[ir("0x25")](ir("0x11"),(()=>{t.model.change((o=>{const s=t[ir("0x1d")][ir("0xd")][ir("0x16")],r=s[ir("0x17")](),x=i.LiveRange[ir("0x21")](s[ir("0x12")]());if(n.enterBlock(o)){const n=t[ir("0x1d")][ir("0x1b")](r.parent[ir("0xe")],0),s=o[ir("0x1c")](r,n);e[ir("0x1f")](s)}else o[ir("0x15")](o[ir("0x1c")](x[ir("0xa")]));x[ir("0x1e")](),n.fire(ir("0x26"),{writer:o})}))})),t[ir("0xc")][ir("0x8")].on(ir("0x22"),hs(t,ir("0x7")),{priority:ir("0x13")}),t[ir("0xc")][ir("0x8")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[ir("0x1a")][ir("0x19")](e[ir("0x3")]);if(o)for(const t of o)t[ir("0xb")](ir("0x10"))&&(n[ir("0x1a")].unbindElementFromMarkerName(t,e.markerName),n[ir("0x14")][ir("0x18")](t))}),{priority:ir("0x13")}),t[ir("0xf")][ir("0x8")].on(ir("0x22"),((e,n,o)=>{o[ir("0x20")][ir("0x2")]&&hs(t,ir("0x7"),{showActiveMarker:!1})[ir("0x23")](this)(e,n,o)}),{priority:ir("0x13")})}}const ar=["string","getMarkersGroup","suggestion:deletion","enableCommand","replace","item","markers","FindAndReplaceEditing","handleFindCommand","replaceAll","filter","find","findPrevious","plugins","has","model","end","_isInDeletionRange","createPositionAt","editor","createRange","get"];var cr,lr;cr=ar,lr=434,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{afterInit(){if(!this.editor[dr("0x13")][dr("0x14")](dr("0xd")))return;const t=this[dr("0x3")][dr("0x13")][dr("0x5")]("TrackChangesEditing");t.enableCommand(dr("0x11"),this[dr("0xe")].bind(this)),t[dr("0x9")]("findNext"),t[dr("0x9")](dr("0x12")),t.enableCommand(dr("0xa")),t[dr("0x9")](dr("0xf"))}handleFindCommand(t,e,n={}){const o=this[dr("0x3")][dr("0x13")].get("FindAndReplaceUtils");void 0!==n&&t((t=>(dr("0x6")==typeof e?o.findByTextCallback(e,n):e)(t)[dr("0x10")]((e=>!1===this[dr("0x1")](e,t[dr("0xb")])))),n)}_isInDeletionRange(t,e){const n=this[dr("0x3")][dr("0x15")][dr("0x4")](this[dr("0x3")][dr("0x15")][dr("0x2")](e,t.start),this[dr("0x3")].model[dr("0x2")](e,t[dr("0x0")]));for(const t of this[dr("0x3")][dr("0x15")][dr("0xc")][dr("0x7")](dr("0x8")))if(null!==n.getIntersection(t.getRange()))return!0;return!1}}const gr=["has","normalizeSizeOptions","change","selection","value","fontSize.options","*Set font size:* %0","model","*Set font color:* %0","FontSizeEditing","*Set font background color:* %0","trim","*Reset font family*","registerDescriptionCallback","*Reset font color*","commandName","*Set font family:* %0","label","_enableCommand","*Reset font size*","fontBackgroundColor.colors","format","plugins","toLowerCase","get","_descriptionFactory","fontBackgroundColor","fontColor","find","FontFamilyEditing","fontSize","fontFamily","config","from","*Reset font background color*","TrackChangesEditing","getRanges","editor","commandParams","FontColorEditing","enableCommand","fontColor.colors","FontBackgroundColorEditing"];var mr,fr;mr=gr,fr=227,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x28"),commandName:hr("0x12")},{pluginName:hr("0x11"),commandName:"fontFamily"},{pluginName:hr("0x1b"),commandName:hr("0xf")},{pluginName:hr("0x1e"),commandName:hr("0xe")}];class br extends t.Plugin{afterInit(){const t=this[hr("0x19")].locale;for(const{pluginName:t,commandName:e}of pr)this[hr("0x19")][hr("0xa")][hr("0x1f")](t)&&this[hr("0x6")](e);this[hr("0x19")][hr("0xa")][hr("0xc")](hr("0x17"))[hr("0xd")][hr("0x1")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x12")==o.commandName){const e=o.commandParams[0][hr("0x23")];if(e){const o=n(this[hr("0x19")][hr("0xa")][hr("0xc")]("FontSize")[hr("0x20")](this[hr("0x19")][hr("0x14")][hr("0xc")](hr("0x24"))).find((t=>t[hr("0x26")]==e)).title)[hr("0xb")]();return{type:hr("0x9"),content:Yo(t,hr("0x25"),o)}}return{type:hr("0x9"),content:Yo(t,hr("0x7"))}}if(hr("0x13")==o[hr("0x3")]){const e=o.commandParams[0].value;return e?{type:hr("0x9"),content:Yo(t,hr("0x4"),e)}:{type:"format",content:Yo(t,hr("0x0"))}}if(hr("0xf")==o[hr("0x3")]){const e=o[hr("0x1a")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x19")].config.get(hr("0x1d"))).find((t=>t[hr("0x26")]==e));let r=e,i="";return o&&(r=o[hr("0x5")],i=n(r)[hr("0xb")]()),{type:hr("0x9"),content:Yo(t,hr("0x27"),i)[hr("0x2a")](),color:{value:e,title:i||r}}}return{type:hr("0x9"),content:Yo(t,hr("0x2"))}}if(hr("0xe")==o[hr("0x3")]){const e=o[hr("0x1a")][0][hr("0x23")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x19")][hr("0x14")].get(hr("0x8")))[hr("0x10")]((t=>t[hr("0x26")]==e));let r=e,i="";return o&&(r=o[hr("0x5")],i=n(r)[hr("0xb")]()),{type:hr("0x9"),content:Yo(t,hr("0x29"),i)[hr("0x2a")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x16"))}}}}))}_enableCommand(t){const e=this.editor;e[hr("0xa")].get("TrackChangesEditing")[hr("0x1c")](t,((n,o={})=>{const s=e.model.document[hr("0x22")],r=o[hr("0x23")];s.isCollapsed?n(o):e[hr("0x26")][hr("0x21")]((()=>{const n=Array[hr("0x15")](s[hr("0x18")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x26")]);for(const o of n)e[hr("0xa")][hr("0xc")]("TrackChangesEditing").markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["*Remove all formatting*","isCollapsed","schema","fontSize.options","getItems","getLastPosition","fontColor.colors","TrackChangesEditing","fontColor","label","markInlineFormat","editor","document","getSelectedBlocks","join","copyFormat","find","selection","enableCommand","boolean","get","toUpperCase","change","config","modifySelection","afterInit","word","commandParams","length","slice","fontSize","entries","format","from","split","isFormatting","locale","forward","keys","plugins","backward","_descriptionFactory","createRange","toLowerCase","getRanges","commands","model","FontSize","pasteFormat","*Set format to:* %0","createSelection","charAt","getAttributes"];var _r,Tr;_r=Er,Tr=478,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x18")](){const t=this[Cr("0xa")],n=t[Cr("0x2d")],o=n[Cr("0xb")][Cr("0x10")],s=t[Cr("0x26")].get("TrackChangesEditing"),r=t[Cr("0x23")],i=t[Cr("0x2c")][Cr("0x13")](Cr("0xe")),x=t[Cr("0x2c")][Cr("0x13")](Cr("0x2f"));i&&x&&(s[Cr("0x11")](Cr("0x2f"),((t,r={})=>{const i=r;n[Cr("0x15")]((()=>{const t=Array[Cr("0x20")](o[Cr("0x2b")]()),r=o[Cr("0x0")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x33")]()){const t=e.getAttributeProperties(n);t&&t[Cr("0x22")]&&(yield n)}}(t,n));for(const e of t[Cr("0x2b")]())for(const t of e[Cr("0x3")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[Cr("0xc")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x1")]))||0!==Object[Cr("0x25")](i)[Cr("0x1b")])for(const t of r)s[Cr("0x9")](t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Cr("0x28")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&"pasteFormat"===n.commandName){const e=[],o=n[Cr("0x1a")][0];for(const[n,s]of Object[Cr("0x1e")](o))e.push(Ar(t,n,s));return e[Cr("0x1b")]?{type:Cr("0x1f"),content:Yo(r,Cr("0x30"),e[Cr("0xd")](", "))}:{type:Cr("0x1f"),content:Yo(r,Cr("0x34"))}}})),t.plugins[Cr("0x13")](Cr("0x6"))[Cr("0x11")]("copyFormat"))}}function kr(t,e){const n=t[Cr("0x31")](e);t[Cr("0x17")](n,{unit:Cr("0x19"),direction:Cr("0x27")});const o=n.getFirstPosition();t[Cr("0x17")](n,{unit:Cr("0x19"),direction:Cr("0x24")});const s=n[Cr("0x4")]();return t[Cr("0x29")](o,s)}function Ar(t,e,n){const o=t[Cr("0x23")].t,r=e[Cr("0x21")](/(?=[A-Z])/)[Cr("0xd")](" "),i=o(r[Cr("0x32")](0)[Cr("0x14")]()+r[Cr("0x1c")](1))[Cr("0x2a")]();if(Cr("0x12")==typeof n)return i;if(Cr("0x7")===e||"fontBackgroundColor"===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x16")][Cr("0x13")](Cr("0x5")))[Cr("0xf")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x8")])[Cr("0x2a")]():n)+")"}if(Cr("0x1d")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x26")][Cr("0x13")](Cr("0x2e")).normalizeSizeOptions(t[Cr("0x16")][Cr("0x13")](Cr("0x2"))).find((t=>t[Cr("0x2d")]==n));return i+" ("+(e?o(e.title).toLowerCase():n)+")"}return i+" ("+n+")"}const vr=["selection","match","getSelectedBlocks","afterInit","paragraph","blockName","markBlockFormat","heading","change","parent","config","heading.options","schema","value","filter","name","document","ELEMENT_HEADING_CUSTOM","enableCommand","find","registerDescriptionCallback","get","checkChild","*Change to:* %0","formatBlock","format","registerElementLabel","TrackChangesEditing","plugins","_descriptionFactory","ELEMENT_HEADING","from","title","has","locale","commandName","editor","model"];var Rr,Sr;Rr=vr,Sr=103,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0xe")](){const t=this.editor,e=t[Ir("0x7")],n=t[Ir("0x15")].get(Ir("0x16"));if(!t[Ir("0x1")][Ir("0x6")]("HeadingEditing"))return;const o=t[Ir("0x1")][Ir("0x20")](Ir("0x0"));o[Ir("0x1d")](Ir("0x12"),((e,n)=>{const s=n[Ir("0x18")],r=Array[Ir("0x4")](this[Ir("0x9")][Ir("0xa")][Ir("0x1b")][Ir("0xb")][Ir("0xd")]())[Ir("0x19")]((t=>{return e=t,n=s,(o=this[Ir("0x9")].model[Ir("0x17")])[Ir("0x21")](e[Ir("0x14")],n)&&!o.isObject(e)&&e[Ir("0x1a")]!=n;var e,n,o}));t[Ir("0xa")][Ir("0x13")]((()=>{for(const t of r)o[Ir("0x11")](t,{commandName:Ir("0x12"),commandParams:[n],formatGroupId:Ir("0x10")},fs(t))}))}));for(const t of n)Ir("0xf")!=t[Ir("0xa")]&&o[Ir("0x2")][Ir("0x25")](t[Ir("0xa")],(e=>{const n=Nr(t[Ir("0xa")]);return null!==n?s(e,n):r(e,t[Ir("0x5")])}));function s(t,n){return Yo(e,Ir("0x3"),[t,n])}function r(t,n){return Yo(e,Ir("0x1c"),[t,n])}o[Ir("0x2")][Ir("0x1f")]((t=>{const{type:o,data:i}=t;if(Ir("0x23")==o&&i&&Ir("0x12")==i[Ir("0x8")]){const t=i.commandParams[0][Ir("0x18")],o=Nr(t);if(null!==o)return{type:Ir("0x24"),content:Yo(e,"*Change to:* %0",s(1,o))};const x=n[Ir("0x1e")]((e=>e[Ir("0xa")]===t))[Ir("0x5")];return{type:Ir("0x24"),content:Yo(e,Ir("0x22"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0xc")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["config","change","get","FORMAT_HIGHLIGHT","getFirstPosition","value","backward","editor","format","selection","push","commandName","document","getLastMatchingPosition","enableCommand","highlight.options","locale","find","*Remove highlight*","toLowerCase","highlight","has","getRanges","getAttribute","model","markInlineFormat","registerDescriptionCallback","createRange","formatInline","title","item","plugins","TrackChangesEditing"];var wr,Or;wr=Mr,Or=399,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{afterInit(){const t=this[Fr("0x4")];if(!t[Fr("0x1c")][Fr("0x12")]("HighlightEditing"))return;const e=t[Fr("0x1c")].get(Fr("0x1d"));e[Fr("0xb")](Fr("0x11"),((n,o={})=>{const s=t[Fr("0x15")][Fr("0x9")][Fr("0x6")],r=s.getAttribute(Fr("0x11"));let i=o[Fr("0x2")],x=[];if(s.isCollapsed){const e=s[Fr("0x1")]();if(!s.hasAttribute("highlight"))return void n(o);{const n=t=>t[Fr("0x1b")][Fr("0x14")]("highlight")===r,o=e[Fr("0xa")](n,{direction:Fr("0x3")}),s=e[Fr("0xa")](n);x=[t.model[Fr("0x18")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x13")]())i?x[Fr("0x7")](e):x[Fr("0x7")](...ms(Fr("0x11"),e,t[Fr("0x15")]));t[Fr("0x15")][Fr("0x1f")]((()=>{for(const t of x)e[Fr("0x16")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0xd")];e._descriptionFactory[Fr("0x17")]((e=>{const{type:o,data:s}=e;if(Fr("0x19")==o&&s&&Fr("0x11")==s[Fr("0x8")]){const e=n.t,o=s.commandParams[0][Fr("0x2")];if(o){const s=t[Fr("0x1e")][Fr("0x20")](Fr("0xc"))[Fr("0xe")]((t=>t[Fr("0x15")]==o)),r=e(s[Fr("0x1a")])[Fr("0x10")]();return{type:Fr("0x5"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s.color,title:s[Fr("0x1a")]}}}return{type:"format",content:Yo(n,Fr("0xf"),Yo(n,Fr("0x0")))}}}))}}const Pr=["registerElementLabel","elementToStructure","HorizontalLineEditing","horizontalLine","dataDowncast","enableCommand","plugins","get","insert","afterInit","createPositionAt","for","high","_descriptionFactory","TrackChangesEditing","ELEMENT_HORIZONTAL_LINE"];var Br,jr;Br=Pr,jr=173,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Pr[t-=0]};class Gr extends t.Plugin{[Ur("0xc")](){const t=this.editor;if(!t[Ur("0x9")].has(Ur("0x5")))return;t[Ur("0x9")].get("TrackChangesEditing")[Ur("0x8")](Ur("0x6"));const e=t.plugins[Ur("0xa")](Ur("0x1")),n=t.locale;e[Ur("0x0")][Ur("0x3")](Ur("0x6"),(t=>Yo(n,Ur("0x2"),t))),t.conversion[Ur("0xe")](Ur("0x7"))[Ur("0x4")]({model:Ur("0x6"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e.createContainerElement("div"),s=e.createEmptyElement("hr");return e.addClass("ck-horizontal-line",o),e[Ur("0xb")](e[Ur("0xd")](o,0),s),o},converterPriority:Ur("0xf")})}}const Hr=["TrackChangesEditing","htmlEmbed","get","rawHtmlApi","has","change","_descriptionFactory","HtmlEmbed","format","registerElementLabel","rawHtml","ELEMENT_HTML_EMBED","afterInit","*Change %0 content*","document","plugins","getSelectedElement","getCustomProperty","enableCommand","locale","editor","selection","cancel","registerDescriptionCallback"];var zr,Wr;zr=Hr,Wr=445,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x17")](){const t=this[Vr("0x7")];if(!t[Vr("0x2")][Vr("0xf")](Vr("0x12")))return;const e=t[Vr("0x2")][Vr("0xd")](Vr("0xb")),n=t[Vr("0x6")],o=t.editing.view[Vr("0x1")][Vr("0x8")];e[Vr("0x11")][Vr("0x14")](Vr("0x15"),(t=>Yo(n,Vr("0x16"),t))),t.plugins[Vr("0xd")]("TrackChangesEditing")[Vr("0x5")](Vr("0xc"),((n,s)=>{const r=t.model,i=r[Vr("0x1")][Vr("0x8")];r[Vr("0x10")]((()=>{const t=function(t){const e=t[Vr("0x3")]();return e&&e.is("element",Vr("0x15"))?t[Vr("0x3")]():null}(i);if(!t)return void n(null);const r=t.getAttribute("value")||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0xc"),commandParams:[s]}),o.getSelectedElement()[Vr("0x4")](Vr("0xe"))[Vr("0x9")]())}))})),e._descriptionFactory[Vr("0xa")]((t=>{const{data:e}=t;if(e&&Vr("0xc")==e.commandName){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0x13"),content:Yo(n,Vr("0x0"),t)}}}))}}const qr=["type","accept","ELEMENT_IMAGE","imageStylePostApply","formatInline","getAttribute","ImageResize","convertInlineImageToBlock","getChangedMarkers","forEach","registerElementLabel","isInlineImage","isInContent","markDeletion","enableCommand","shouldConvertImageType","imageTextAlternative","isBlockImage","_splitMarkerName","has","getSuggestion","schema","newValue","element","getSuggestionCallback","ImageTextAlternativeEditing","caption","toNext","ImageInlineEditing","commands","registerDescriptionCallback","createRange","nodeAfter","from","markBlockFormat","plugins","imageTypeInline","chain","detach","title","get","markInlineFormat","hasSuggestion","format","markInsertion","convertBlockImageToInline","hasAttribute","normalizedStyles","suggestion","subType","addObject","toLowerCase","name","getSuggestions","ImageCaptionEditing","imageStyle","Users","imageCaption","*Set image text alternative:* %0","previous","getContainedElement","removeObject","commandName","document","getCaptionFromImageModelElement","backward","imageStylePreApply","ELEMENT_INLINE_IMAGE","editor","*Set image width:* %0","insertion","afterInit","end","FORMAT_SIDE_IMAGE","selection","_descriptionFactory","isEqual","side","author","uploadImage","value","registerCustomCallback","formatBlock","resizeImage","ImageBlockEditing","ELEMENT_CAPTION","isCollapsed","head","*Reset image width*","forceDefaultExecution","alt","forward","getFirstRange","getClosestSelectedImageElement","ImageCaptionUtils","*Remove image text alternative*","toggleImageCaption","next","TrackChangesEditing","width","refresh","start","discardSuggestion","commandParams","getNearestSelectionRange","insertImage","deletion","registerPostFixer","ImageStyleEditing","imageTypeBlock","createRangeOn","ImageUploadEditing","discard","model","ImageUtils","length","join","change","isBefore","differ","_suggestionFactory","filter"];var Xr,$r;Xr=qr,$r=303,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0xc")](){const t=this[Jr("0x9")];if(!t[Jr("0x62")][Jr("0x52")]("ImageEditing"))return;const n=t[Jr("0x62")][Jr("0x67")](Jr("0x27")),o=t[Jr("0x62")][Jr("0x67")](Jr("0x37")),s={},r=t.locale;if(n[Jr("0x4d")](Jr("0x2e")),n[Jr("0x10")][Jr("0x49")]("imageBlock",(t=>Yo(r,Jr("0x41"),t))),n[Jr("0x10")][Jr("0x49")]("imageInline",(t=>Yo(r,Jr("0x8"),t))),n[Jr("0x10")][Jr("0x49")](Jr("0x59"),(()=>Yo(r,Jr("0x1a")))),t[Jr("0x62")].has(Jr("0x34"))&&n.enableCommand(Jr("0x14")),t[Jr("0x62")][Jr("0x52")](Jr("0x19"))&&t[Jr("0x62")].has(Jr("0x5b"))&&(n[Jr("0x4d")](Jr("0x63"),((e,s)=>{const r=o[Jr("0x22")](t[Jr("0x36")][Jr("0x4")][Jr("0xf")]);t.model[Jr("0x3a")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x63"),commandParams:[s]},[],Jr("0x6c"))}))})),n[Jr("0x4d")](Jr("0x32"),((e,s)=>{t[Jr("0x36")].change((r=>{let x=o[Jr("0x22")](t[Jr("0x36")].document[Jr("0xf")]),a=r[Jr("0x33")](x);const c=i.LivePosition.fromPosition(a[Jr("0x2a")],"toPrevious"),l=i.LivePosition.fromPosition(a.end,Jr("0x5a"));n[Jr("0x1e")]((()=>e(s))),x=o[Jr("0x22")](t[Jr("0x36")].document[Jr("0xf")]),a=r.createRangeOn(x);const d=r[Jr("0x5e")](c,l);c[Jr("0x65")](),l[Jr("0x65")](),n.markBlockFormat(x,{commandName:Jr("0x63"),commandParams:[]},[],Jr("0x46")),d.start[Jr("0x3b")](a.start)&&n.markInsertion(r[Jr("0x5e")](d[Jr("0x2a")],a[Jr("0x2a")]),"convertInlineImageToBlock"),a[Jr("0xd")].isBefore(d[Jr("0xd")])&&n[Jr("0x6b")](r[Jr("0x5e")](a[Jr("0xd")],d[Jr("0xd")]),Jr("0x46"))}))})),n[Jr("0x3d")][Jr("0x16")](Jr("0x17"),Jr("0x46"),Jr("0x39"),(()=>!1)),n[Jr("0x3d")][Jr("0x16")](Jr("0x17"),Jr("0x46"),Jr("0x40"),(()=>!1)),n[Jr("0x3d")][Jr("0x16")](Jr("0x17"),Jr("0x46"),Jr("0x35"),n[Jr("0x3d")][Jr("0x57")](Jr("0x17"),"",Jr("0x40"))),n._suggestionFactory[Jr("0x16")]("insertion",Jr("0x46"),Jr("0x39"),(()=>!1)),n[Jr("0x3d")][Jr("0x16")](Jr("0xb"),"convertInlineImageToBlock",Jr("0x35"),(([e])=>{const o=n[Jr("0x3d")][Jr("0x57")](Jr("0xb"),"",Jr("0x35"));let s=e[Jr("0x2a")],r=e[Jr("0xd")];const i=t[Jr("0x36")][Jr("0x54")].getNearestSelectionRange(s,Jr("0x6")),x=t[Jr("0x36")].schema[Jr("0x2d")](r,Jr("0x20"));i[Jr("0x1b")]&&(s=i.start),x[Jr("0x1b")]&&(r=x[Jr("0xd")]),o([t[Jr("0x36")][Jr("0x5e")](s,r)])})),n._suggestionFactory[Jr("0x16")](Jr("0x17"),Jr("0x46"),Jr("0x64"),c),n[Jr("0x3d")][Jr("0x16")](Jr("0xb"),Jr("0x46"),Jr("0x64"),c)),t[Jr("0x62")][Jr("0x52")](Jr("0x75"))&&(n[Jr("0x4d")](Jr("0x25"),((e,s)=>{const r=t.plugins[Jr("0x67")](Jr("0x23"));let i=o[Jr("0x22")](t[Jr("0x36")].document.selection),x=r.getCaptionFromImageModelElement(i);t[Jr("0x36")][Jr("0x3a")]((()=>{if(x)return void n[Jr("0x4c")](t[Jr("0x36")][Jr("0x33")](x));const a=o[Jr("0x50")](i);e(s),i=o[Jr("0x22")](t[Jr("0x36")][Jr("0x4")][Jr("0xf")]),x=r[Jr("0x5")](i),n[Jr("0x6b")](t.model[Jr("0x33")](x),a?null:"imageCaption")}))})),n[Jr("0x3d")][Jr("0x16")]("insertion",Jr("0x78"),"chain",c)),t[Jr("0x62")][Jr("0x52")](Jr("0x31"))){n[Jr("0x4d")](Jr("0x76"),((s,r)=>{const i=t.plugins[Jr("0x67")](Jr("0x77")).me,x=t[Jr("0x5c")][Jr("0x67")](Jr("0x76"));let a=o.getClosestSelectedImageElement(t.model.document[Jr("0xf")]),c=t[Jr("0x36")][Jr("0x33")](a),l=x[Jr("0x15")];if(l==r[Jr("0x15")])return;const d={commandName:Jr("0x76"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[Jr("0x3a")]((()=>{if(n[Jr("0x74")]()[Jr("0x3e")]((t=>t[Jr("0x4b")]&&i==t[Jr("0x13")]&&(Jr("0x17")==t[Jr("0x3f")]||"formatInline"==t[Jr("0x3f")])&&(Jr("0x7")==t[Jr("0x70")]||Jr("0x42")==t.subType)&&t[Jr("0x21")]().isEqual(c)))[Jr("0x48")]((t=>n[Jr("0x2b")](t[Jr("0x1c")]))),a=o[Jr("0x22")](t[Jr("0x36")][Jr("0x4")][Jr("0xf")]),c=t[Jr("0x36")][Jr("0x33")](a),x.refresh(),t[Jr("0x5c")].get("imageTypeInline")[Jr("0x29")](),t[Jr("0x5c")][Jr("0x67")](Jr("0x32")).refresh(),l=x[Jr("0x15")],l!=r[Jr("0x15")])return o[Jr("0x4a")](a)&&x[Jr("0x4e")](r[Jr("0x15")],a)?(s(r),a=o[Jr("0x22")](t.model[Jr("0x4")][Jr("0xf")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x7"))):void(o[Jr("0x50")](a)?n[Jr("0x61")](a,d,[],Jr("0x42")):n[Jr("0x68")](c,d,Jr("0x42")))}))}));for(const e of t[Jr("0x62")][Jr("0x67")]("ImageStyleEditing")[Jr("0x6e")])s[e[Jr("0x73")]]=e[Jr("0x66")][Jr("0x72")]();n[Jr("0x3d")][Jr("0x16")]("formatBlock",Jr("0x7"),Jr("0x39"),(()=>!1)),n[Jr("0x3d")][Jr("0x16")]("formatBlock","imageStylePostApply",Jr("0x39"),(()=>!1)),n[Jr("0x3d")][Jr("0x16")](Jr("0x43"),Jr("0x42"),Jr("0x39"),(()=>!1)),n[Jr("0x3d")][Jr("0x16")](Jr("0x17"),"imageStylePreApply","accept",(()=>!1)),n._suggestionFactory.registerCustomCallback(Jr("0x17"),Jr("0x7"),Jr("0x35"),((t,e)=>{n._suggestionFactory[Jr("0x57")](Jr("0x17"),"",Jr("0x40"))(t,{commandName:e[Jr("0x3")],commandParams:e.commandReversedParams})})),n[Jr("0x3d")][Jr("0x16")]("formatBlock","imageStylePreApply",Jr("0x64"),c)}const x=[{type:"formatBlock",subType:"imageStylePreApply"},{type:Jr("0xb"),subType:Jr("0x78")},{type:"formatBlock",subType:Jr("0x46")},{type:Jr("0xb"),subType:Jr("0x46")}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t[Jr("0x3f")]==e&&t[Jr("0x70")]==n)),r=x.findIndex((({type:t,subType:n})=>e.type==t&&e[Jr("0x70")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x21")](),a=e[Jr("0x21")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,Jr("0xb"))[Jr("0x3e")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[Jr("0x70")]));if(t[Jr("0x38")]>1&&a[Jr("0xd")][Jr("0x11")](i[Jr("0x2a")]))return!0;if(1==t.length&&(i[Jr("0x2a")].isEqual(a.end)||i[Jr("0xd")].isEqual(a.start)))return!0}if(3==s&&3==r&&i.start[Jr("0x3b")](a[Jr("0x2a")])){const t=i[Jr("0xd")][Jr("0x5f")],e=a[Jr("0x2a")].nodeBefore;return o[Jr("0x50")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x36")][Jr("0x4")][Jr("0x30")]((()=>{let e=!1;const s=Array[Jr("0x60")](t[Jr("0x36")][Jr("0x4")][Jr("0x3c")][Jr("0x47")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x51")](t);if(Jr("0x6f")==s&&n[Jr("0x69")](a)){if(Jr("0x17")==i&&(Jr("0x7")==x||Jr("0x42")==x)){const t=n[Jr("0x53")](a);if(r.newRange){const s=t[Jr("0x21")]().getContainedElement();if(o.isBlockImage(s))continue;n.discardSuggestion(t),e=!0}}if(Jr("0xb")==i&&Jr("0x78")==x&&!r.newRange){const t=n[Jr("0x53")](a);t[Jr("0x26")]&&t.next[Jr("0x4b")]&&(n[Jr("0x2b")](t[Jr("0x26")]),e=!0)}}}return e})),t[Jr("0x62")][Jr("0x52")](Jr("0x45"))&&n[Jr("0x4d")](Jr("0x18"),((e,s)=>{const r=o[Jr("0x22")](t[Jr("0x36")].document[Jr("0xf")]);r.getAttribute("width")!=s[Jr("0x28")]&&t[Jr("0x36")].change((()=>{n.markBlockFormat(r,{commandName:"resizeImage",commandParams:[s]})}))})),t[Jr("0x62")][Jr("0x52")](Jr("0x58"))&&n[Jr("0x4d")](Jr("0x4f"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x36")][Jr("0x4")][Jr("0xf")]);(r[Jr("0x6d")](Jr("0x1f"))?r[Jr("0x44")](Jr("0x1f")):"")!=s[Jr("0x55")]&&t[Jr("0x36")].change((()=>{n[Jr("0x61")](r,{commandName:Jr("0x4f"),commandParams:[s]})}))})),n[Jr("0x10")][Jr("0x5d")]((t=>{if(x.find((({type:e,subType:n})=>t[Jr("0x3f")]==e&&t[Jr("0x70")]==n)))return t[Jr("0x0")]?{}:void 0})),n._descriptionFactory[Jr("0x5d")]((t=>{if(Jr("0xb")==t[Jr("0x3f")]||Jr("0x2f")==t[Jr("0x3f")]){const e=t[Jr("0x1")]();if(e&&e.is(Jr("0x56"),Jr("0x59")))return{type:"insertion"==t[Jr("0x3f")]?Jr("0x71"):Jr("0x2"),element:e,quantity:1}}})),n[Jr("0x10")][Jr("0x5d")]((t=>Jr("0x17")==t[Jr("0x3f")]&&Jr("0x46")==t[Jr("0x70")]?{type:Jr("0x6a"),content:"Inline image to block image"}:"formatBlock"==t[Jr("0x3f")]&&Jr("0x6c")==t[Jr("0x70")]?{type:Jr("0x6a"),content:"Block image to inline image"}:void 0)),n[Jr("0x10")][Jr("0x5d")]((t=>{const{data:e}=t;if(e){if(Jr("0x76")==e[Jr("0x3")]){const t=e[Jr("0x2c")][0][Jr("0x15")];return n=Jr("0x12")===t?Yo(r,Jr("0xe")):s[t]||t,{type:"format",content:Yo(r,"*Format:* %0",n)}}if(Jr("0x4f")==e.commandName){const t=e[Jr("0x2c")][0][Jr("0x55")];return t?{type:Jr("0x6a"),content:Yo(r,Jr("0x79"),'"'+t+'"')}:{type:Jr("0x6a"),content:Yo(r,Jr("0x24"))}}if("resizeImage"==e[Jr("0x3")]){const t=e[Jr("0x2c")][0][Jr("0x28")];return t?{type:"format",content:Yo(r,Jr("0xa"),t)}:{type:Jr("0x6a"),content:Yo(r,Jr("0x1d"))}}}var n}))}}const Zr=["get","formatBlock","locale","registerCustomCallback","replaceImageSource","data","enableCommand","getSuggestions","accept","author","*Format:* replace image URL","discard","editor","plugins","selection","getContainedElement","getSuggestionCallback","model","document","source","getAttribute","commandName","handleSuggestionDescription","TrackChangesEditing","afterInit","change","handleReplaceImageCommand","_suggestionFactory","markBlockFormat","getSelectedElement"];var Yr,ti;Yr=Zr,ti=457,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x11")](){if(!this[ei("0x5")].plugins.has("ImageEditing"))return;const t=this[ei("0x5")][ei("0x6")][ei("0x17")](ei("0x10"));t[ei("0x1d")](ei("0x1b"),((t,e)=>this[ei("0x13")](t,e))),t[ei("0x14")][ei("0x1a")](ei("0x18"),ei("0x1b"),ei("0x1"),t[ei("0x14")][ei("0x9")](ei("0x18"),null,ei("0x4"))),t[ei("0x14")].registerCustomCallback(ei("0x18"),ei("0x1b"),ei("0x4"),t._suggestionFactory.getSuggestionCallback("formatBlock",null,ei("0x1"))),t._descriptionFactory.registerDescriptionCallback((t=>this[ei("0xf")](t)))}handleReplaceImageCommand(t,e){const n=this[ei("0x5")][ei("0x6")].get(ei("0x10")),o=this[ei("0x5")][ei("0xa")][ei("0xb")][ei("0x7")][ei("0x16")]();this.editor[ei("0xa")][ei("0x12")]((()=>{let s=o[ei("0xd")]("src");const r=this[ei("0x5")].plugins[ei("0x17")]("Users").me;for(const t of n[ei("0x0")]({skipNotAttached:!0})){const e=t[ei("0x8")]();if(ei("0x1b")===t.subType&&e===o){t[ei("0x2")]!==r&&t[ei("0x4")](),s=t[ei("0x1c")].commandParams[0][ei("0xc")];break}}t(e),n[ei("0x15")](o,{commandName:ei("0x1b"),commandParams:[{source:s}]},[],ei("0x1b"))}))}[ei("0xf")](t){const{data:e}=t;if(e&&ei("0x1b")===e[ei("0xe")]){const t=ei("0x3");return{type:"format",content:Yo(this.editor[ei("0x19")],t)}}}}const oi=["execute","trackChanges","value","_setSuggestionData","_handleImportedData","TrackChangesEditing","get","editor","enableCommand","collaboration_features","bind","listenTo","_trackChangesValueDuringImport","plugins","track_changes","commands","Users","dataInsert","_trackChangesExecuted","importWord"];var si,ri;si=oi,ri=459,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0xd")]=!1,this[ii("0x13")]=!1}afterInit(){const t=this[ii("0x8")],e=t.commands[ii("0x7")](ii("0x0")),n=t[ii("0x10")][ii("0x7")](ii("0x2"));e&&(e.on(ii("0x1"),((t,[,e])=>{this[ii("0xd")]=n[ii("0x3")],e[ii("0xa")][ii("0xf")]=!this[ii("0xd")]}),{priority:"high"}),this[ii("0xc")](e,ii("0x12"),this[ii("0x5")][ii("0xb")](this)),this[ii("0xc")](e,"dataInsert",(()=>{this[ii("0x13")]&&(n[ii("0x1")](),this[ii("0x13")]=!1)}),{priority:"lowest"}),t[ii("0xe")].get(ii("0x6"))[ii("0x9")](ii("0x0")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[ii("0x8")][ii("0x10")][ii("0x7")]("trackChanges"),s=o.value;this[ii("0xd")]!==s&&(o[ii("0x1")](),this[ii("0x13")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x8")][ii("0xe")][ii("0x7")](ii("0x11")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[ii("0x8")][ii("0xe")][ii("0x7")](ii("0x6"))[ii("0x4")](s)}))}}const ai=["editor","document","model","change","outdentBlock","selection","checkAttribute","outdent","IndentBlock","from","indentBlock","blockIndent","markBlockFormat","_descriptionFactory","IndentEditing","registerDescriptionCallback","filter","*Outdent:* %0","format","get","TrackChangesEditing","afterInit","getItemLabel","getSelectedBlocks","enableCommand","has","plugins","getItems","commandName","indent"];var ci,li;ci=ai,li=197,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x4")](){const t=this.editor,e=t[di("0x9")][di("0x2")](di("0x3"));t[di("0x9")][di("0x8")](di("0x1b"))&&(e[di("0x7")](di("0xc")),e[di("0x7")](di("0x14")));const n=t.locale;if(t.plugins[di("0x8")](di("0x15"))){for(const n of[di("0x17"),di("0x11")])e.enableCommand(n,(()=>{const o=Array[di("0x16")](this[di("0xd")][di("0xf")][di("0xe")][di("0x12")][di("0x6")]())[di("0x1d")]((t=>this[di("0xd")][di("0xf")].schema[di("0x13")](t,di("0x18"))));t[di("0xf")][di("0x10")]((()=>{for(const t of o)e[di("0x19")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x17")})}))}));e[di("0x1a")][di("0x1c")]((t=>{const{data:o}=t;if(!o)return;if(di("0x17")!=o[di("0xb")]&&di("0x11")!=o[di("0xb")])return;const s=t[di("0xa")]()[0],r=e[di("0x1a")][di("0x5")](s);return di("0x17")==o.commandName?{type:"format",content:Yo(n,"*Indent:* %0",r)}:di("0x11")==o.commandName?{type:di("0x1"),content:Yo(n,di("0x0"),r)}:void 0}))}}}var gi,mi,fi=["plugins","requires","init","TrackChangesEditing","input","editor","enableCommand"];gi=fi,mi=209,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x2")](){return[Vs.Input]}[hi("0x3")](){this[hi("0x6")][hi("0x1")].get(hi("0x4"))[hi("0x0")](hi("0x5"))}}const bi=["editor","from","LinkEditing","get","getFirstRange","registerDescriptionCallback","has","link","getFirstPosition","document","enableCommand","getRanges","selection","plugins","commandName","linkHref","locale","unlink","model","TrackChangesEditing","isCollapsed","*Set link:* %0","change","getAttribute","_descriptionFactory","format","markInlineFormat","afterInit","commandParams","*Remove link*"];var Ei,_i;Ei=bi,_i=468,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x9")](){const t=this[Ti("0xc")];if(!t[Ti("0x19")][Ti("0x12")](Ti("0xe")))return;const e=t.plugins[Ti("0xf")](Ti("0x1"));e[Ti("0x16")](Ti("0x13"),((n,o)=>{const s=t[Ti("0x0")][Ti("0x15")][Ti("0x18")];let r=[];if(s[Ti("0x2")]){if(!s.hasAttribute("linkHref"))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0x14")](),Ti("0x1b"),s.getAttribute(Ti("0x1b")),t[Ti("0x0")]);r=[e]}}else r=Array[Ti("0xd")](s[Ti("0x17")]());t[Ti("0x0")][Ti("0x4")]((()=>{for(const t of r)e[Ti("0x8")](t,{commandName:Ti("0x13"),commandParams:[o]})}))})),e[Ti("0x16")](Ti("0x1d"),(()=>{const n=this[Ti("0xc")][Ti("0x0")],o=n.document[Ti("0x18")];n[Ti("0x4")]((()=>{let n=[];n=o.isCollapsed?[(0,Vs.findAttributeRange)(o[Ti("0x14")](),"linkHref",o[Ti("0x5")](Ti("0x1b")),t[Ti("0x0")])]:ms("linkHref",o[Ti("0x10")](),t.model);for(const t of n)e.markInlineFormat(t,{commandName:Ti("0x1d"),commandParams:[]})}))})),e[Ti("0x6")][Ti("0x11")]((e=>{const{data:n}=e,o=t[Ti("0x1c")];if(n){if("link"==n[Ti("0x1a")]){const t=n[Ti("0xa")][0];return{type:Ti("0x7"),content:Yo(o,Ti("0x3"),'"'+t+'"')}}return Ti("0x1d")==n[Ti("0x1a")]?{type:"format",content:Yo(o,Ti("0xb"))}:void 0}}))}}const yi=["findIndex","length","ELEMENT_NUMBERED_LIST","from","has","outdentList","afterInit","indentList","locale","document","registerDescriptionCallback","*Check item*","List","registerElementLabel","editor","_descriptionFactory","end","parent","get","*Outdent:* %0","bulletedList","ListEditing","name","blockName","todoListChecked","createRange","push","listIndent","filter","*Indent:* %0","commandName","slice","selection","createPositionAt","TodoListEditing","enableCommand","execute","format","isObject","paragraph","model","markBlockFormat","*Change to:* %0","getAttribute","element","checkChild","listType","ELEMENT_LIST_ITEM","ELEMENT_TODO_LIST","todoList","getSelectedBlocks","todo","plugins","add","value","before","commands","_selectedElements","checkTodoList","commandParams","nextSibling","listItem","numberedList","schema","change","replace","previousSibling"];var ki,Ai;ki=yi,Ai=174,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x21")](){const t=this[vi("0x29")],e=t[vi("0x23")];if(!t.plugins[vi("0x1f")](vi("0x30")))return;const n=t[vi("0xc")].get("TrackChangesEditing"),o=t[vi("0xc")].has(vi("0x3d"));function s(e){return()=>{const o=t[vi("0x0")][vi("0x24")][vi("0x3b")],s=t[vi("0x10")][vi("0x2d")](e);if(s.value)return void t[vi("0x3f")](vi("0x42"),{});const r=e[vi("0x3a")](0,-4),i=function(t,e,n){let o=Array[vi("0x1e")](t)[vi("0x37")]((t=>{return e=t,(o=n)[vi("0x5")](e[vi("0x2c")],vi("0x15"))&&!o[vi("0x41")](e);var e,o}));o=o[vi("0x37")]((t=>!t.is(vi("0x4"),vi("0x15"))||t[vi("0x3")](vi("0x6"))!=e));const s=new Set;for(const t of o)t.is(vi("0x4"),"listItem")?s[vi("0xd")](Si(t)):s.add(t);return Array.from(s)}(o[vi("0xa")](),r,t[vi("0x0")][vi("0x17")]);t[vi("0x0")][vi("0x18")]((()=>{for(const t of i)n[vi("0x1")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0xe")]}],formatGroupId:vi("0x32")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x1e")](t);const n=e[vi("0x1b")]((t=>vi("0x15")!=t[vi("0x31")]));return n>-1&&(e=e.slice(0,n)),e}(t.model[vi("0x24")][vi("0x3b")][vi("0xa")]()),s=t[vi("0x0")][vi("0x34")](t[vi("0x0")][vi("0x3c")](o[0],vi("0xf")),t[vi("0x0")].createPositionAt(o[o[vi("0x1c")]-1],vi("0x2b")));t[vi("0x0")].change((()=>{n[vi("0x1")](s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[vi("0x14")];for(;t&&t[vi("0x3")](vi("0x36"))>n[vi("0x3")](vi("0x36"));)e[vi("0xd")](t),t=t.nextSibling}return Array[vi("0x1e")](e)}(o))}))}}n[vi("0x3e")](vi("0x16"),s(vi("0x16"))),n[vi("0x3e")](vi("0x2f"),s(vi("0x2f"))),o&&n[vi("0x3e")](vi("0x9"),s(vi("0x9"))),n.enableCommand(vi("0x22"),r(vi("0x22"))),n[vi("0x3e")](vi("0x20"),r("outdentList")),o&&n.enableCommand(vi("0x12"),(()=>{const e=t[vi("0x10")].get(vi("0x12")),o=Array[vi("0x1e")](e[vi("0x11")]);o[vi("0x37")]((t=>t[vi("0x3")](vi("0x33"))!=e[vi("0xe")])),t[vi("0x0")][vi("0x18")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:vi("0x12"),commandParams:[{forceValue:!e[vi("0xe")]}]})}))})),n._descriptionFactory[vi("0x28")]("listItem",(t=>Yo(e,vi("0x7"),t))),n[vi("0x2a")][vi("0x25")]((t=>{const{data:n}=t;if(n){if(vi("0x16")==n[vi("0x39")]||"bulletedList"==n[vi("0x39")]||vi("0x9")==n[vi("0x39")])switch(n.commandName[vi("0x19")](vi("0x27"),"")){case"bulleted":return o(Yo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Yo(e,vi("0x1d")));case vi("0xb"):return o(Yo(e,vi("0x8")))}if(vi("0x22")==n[vi("0x39")])return{type:vi("0x40"),content:Yo(e,vi("0x38"),Yo(e,vi("0x7")))};if(vi("0x20")==n.commandName)return{type:"format",content:Yo(e,vi("0x2e"),Yo(e,vi("0x7")))};if("checkTodoList"==n[vi("0x39")])return n[vi("0x13")][0].forceValue?{type:vi("0x40"),content:Yo(e,vi("0x26"))}:{type:vi("0x40"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:vi("0x40"),content:Yo(e,vi("0x2"),t)}}}))}}function Si(t){const e=t[vi("0x3")](vi("0x36"));if(0==e)return t;let n=t;for(;t[vi("0x1a")]&&t[vi("0x1a")].is(vi("0x4"),"listItem");){const o=t.previousSibling.getAttribute("listIndent");if(o==e)n=t[vi("0x1a")];else if(o<e)break;t=t.previousSibling}return n}function Ii(t){const e=[];if(t.is(vi("0x4"),vi("0x15"))&&t[vi("0x3")]("listIndent")>0){let n=t.nextSibling;for(;n&&vi("0x15")==n[vi("0x31")]&&n[vi("0x3")](vi("0x36"))==t[vi("0x3")](vi("0x36"));)e[vi("0x35")](n),n=n.nextSibling}return e}const Li=["getFirstPosition","flat","numbered","_LIST_","startIndex","afterInit","selection","_getSuggestionBlocks","getAttribute","commandParams","*Format:* set order to regular","listItem","handleDescriptions","listStyle","handleListStartCommand","TrackChangesEditing","map","change","document","getSelectedBlocks","model","length","*Format:* set order to reversed","plugins","locale","forward","listType","list.properties","backward","ListUtils","reversed","parent","unshift","enableCommand","editor","_getTranslationKeyForListStyle","createPositionAt","listReversed","toUpperCase","before","getLastPosition","listStart","element","format","handleListReversedCommand","ELEMENT_","*Format:* set start index to %0","_getSuggestionBlocksForListStyle","_descriptionFactory","filter","getSiblingNodes","createRange","*Change to:* %0","markMultiRangeBlockFormat","config","bind","getListTypeFromListStyleType","get","replace","push"];var Ni,Mi;Ni=Li,Mi=224,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x15")](){if(!this[wi("0x32")][wi("0x27")].has("ListPropertiesEditing"))return;const t=this[wi("0x32")][wi("0xa")][wi("0xd")](wi("0x2b")),e=this[wi("0x32")][wi("0x27")][wi("0xd")](wi("0x1f"));t.styles&&e[wi("0x31")](wi("0x1d"),this.handleListStyleCommand[wi("0xb")](this)),t[wi("0x2e")]&&e[wi("0x31")](wi("0x35"),this[wi("0x0")][wi("0xb")](this)),t.startIndex&&e.enableCommand(wi("0x39"),this[wi("0x1e")][wi("0xb")](this)),e[wi("0x4")].registerDescriptionCallback(this.handleDescriptions[wi("0xb")](this))}handleListStyleCommand(t,e={}){const n=this[wi("0x32")][wi("0x27")][wi("0xd")](wi("0x1f")),o=this._getSuggestionBlocksForListStyle();this[wi("0x32")].model[wi("0x21")]((()=>{n[wi("0x9")](o,{commandName:wi("0x1d"),commandParams:[{type:e.type}],formatGroupId:wi("0x1d")})}))}[wi("0x0")](t,e={}){const n=this.editor[wi("0x27")][wi("0xd")](wi("0x1f")),o=this._getSuggestionBlocks((t=>t.is(wi("0x3a"),wi("0x1b"))&&wi("0x12")===t[wi("0x18")]("listType")));if(o[wi("0x25")]<1)return;const s=o[wi("0x20")]((t=>this[wi("0x32")].model[wi("0x7")](this.editor[wi("0x24")][wi("0x34")](t,wi("0x37")),this[wi("0x32")][wi("0x24")][wi("0x34")](t,0))));this[wi("0x32")][wi("0x24")].change((()=>{n[wi("0x9")](s,{commandName:wi("0x35"),commandParams:[{reversed:e[wi("0x2e")]}],formatGroupId:wi("0x35")})}))}[wi("0x1e")](t,e={}){const n=this[wi("0x32")][wi("0x27")][wi("0xd")](wi("0x1f")),o=this[wi("0x17")]((t=>t.is(wi("0x3a"),wi("0x1b"))&&wi("0x12")===t[wi("0x18")](wi("0x2a"))));if(o[wi("0x25")]<1)return;const s=o[wi("0x20")]((t=>this[wi("0x32")][wi("0x24")][wi("0x7")](this[wi("0x32")][wi("0x24")][wi("0x34")](t,wi("0x37")),this[wi("0x32")].model[wi("0x34")](t,0))));this[wi("0x32")].model[wi("0x21")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wi("0x39"),commandParams:[{startIndex:e[wi("0x14")]}],formatGroupId:wi("0x39")})}))}[wi("0x1c")](t){const e=this[wi("0x32")][wi("0x28")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wi("0x1d"):o=wi("0x8"),s={type:wi("0x3b"),content:Yo(e,o,Yo(e,this[wi("0x33")](n[wi("0x19")][0].type)))};break;case wi("0x35"):o=n[wi("0x19")][0].reversed?wi("0x26"):wi("0x1a"),s={type:wi("0x3b"),content:Yo(e,o)};break;case"listStart":o=wi("0x2"),s={type:wi("0x3b"),content:Yo(e,o,n.commandParams[0][wi("0x14")])}}return s}[wi("0x3")](){var t,e,n,o;const s=this[wi("0x32")][wi("0x27")].get(wi("0x2d"));let r=Array.from(this.editor[wi("0x24")][wi("0x22")][wi("0x16")][wi("0x23")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x3a"),"listItem"))&&r[wi("0x30")](...s[wi("0x6")](this[wi("0x32")][wi("0x24")][wi("0x22")][wi("0x16")][wi("0x10")](),wi("0x2c"))),(null===(e=r[r[wi("0x25")]-1])||void 0===e?void 0:e.is("element",wi("0x1b")))&&r[wi("0xf")](...s[wi("0x6")](this[wi("0x32")][wi("0x24")][wi("0x22")][wi("0x16")][wi("0x38")](),wi("0x29"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x32")][wi("0x24")][wi("0x22")][wi("0x16")].getFirstPosition())||void 0===n?void 0:n[wi("0x2f")])||void 0===o?void 0:o.is(wi("0x3a"),wi("0x1b")))&&(r=r[wi("0x5")]((t=>t.is("element",wi("0x1b"))))),r}[wi("0x17")](t){const e=this.editor[wi("0x27")][wi("0xd")](wi("0x2d"));let n=Array.from(this[wi("0x32")].model[wi("0x22")].selection[wi("0x23")]())[wi("0x5")](t)[wi("0x20")]((t=>{const n=this[wi("0x32")][wi("0x24")][wi("0x34")](t,0);return[...e[wi("0x6")](n,wi("0x2c")),...e[wi("0x6")](n,"forward")]}))[wi("0x11")]();return n=[...new Set(n)],n}[wi("0x33")](t){return wi("0x1")+this[wi("0x32")][wi("0x27")][wi("0xd")](wi("0x2d"))[wi("0xc")](t)[wi("0x36")]()+wi("0x13")+t[wi("0x36")]()[wi("0xe")](/-/g,"_")}}const Fi=["registerElementLabel","ELEMENT_MEDIA","conversion","TrackChangesEditing","high","media","plugins","editor","get","div","downcastDispatcher","locale","createEmptyElement","enableCommand","MediaEmbedEditing","showSuggestionHighlights","afterInit","options","dataDowncast"];var Di,Pi;Di=Fi,Pi=338,function(t){for(;--t;)Di.push(Di.shift())}(++Pi);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x1")](){const t=this[Bi("0xb")];if(!t[Bi("0xa")].has(Bi("0x12")))return;const e=t[Bi("0xa")][Bi("0xc")](Bi("0x7")),n=t[Bi("0xf")];e[Bi("0x11")]("mediaEmbed"),e._descriptionFactory[Bi("0x4")](Bi("0x9"),(t=>Yo(n,Bi("0x5"),t))),t[Bi("0x6")].for(Bi("0x3")).elementToElement({model:Bi("0x9"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x0")])return e[Bi("0x10")](Bi("0xd"))},converterPriority:Bi("0x8")}),t.data[Bi("0xe")].on("attribute:url:media",((t,e,n)=>{n[Bi("0x2")][Bi("0x0")]&&t.stop()}),{priority:Bi("0x8")})}}const Ui=["editor","get","plugins","has","afterInit","enableCommand","MentionEditing","mention"];var Gi,Hi;Gi=Ui,Hi=270,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x6")](){const t=this[zi("0x2")];t[zi("0x4")][zi("0x5")](zi("0x0"))&&t[zi("0x4")][zi("0x3")]("TrackChangesEditing")[zi("0x7")](zi("0x1"))}}const Vi=["_descriptionFactory","get","afterInit","TrackChangesEditing","plugins","pageBreak","ELEMENT_PAGE_BREAK","editor"];var Ki,qi;Ki=Vi,qi=339,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x7")](){const t=this[Xi("0x4")];if(!t.plugins.has("PageBreakEditing"))return;t[Xi("0x1")][Xi("0x6")](Xi("0x0")).enableCommand(Xi("0x2"));const e=t[Xi("0x1")].get(Xi("0x0")),n=t.locale;e[Xi("0x5")].registerElementLabel(Xi("0x2"),(t=>Yo(n,Xi("0x3"),t)))}}const Ji=["markerName","*Insert:* %0","change","selection","from","isLimit","commandName","end","get","document","highest","insertion","markerRange","nodeAfter","checkChild","span","writer","ELEMENT_PARAGRAPH","getFirstRange","format","consumable","plugins","schema","type","*Change to:* %0","registerElementLabel","isBlock","getSelectedBlocks","editing","parent","data","createUIElement","TrackChangesEditing","blockName","enableCommand","paragraph","insertParagraph","registerDescriptionCallback","isTouching","_descriptionFactory","options","Paragraph","name","isObject","toViewPosition","model","afterInit","editor","addMarker:suggestion:insertion","includes","mapper","consume","$text"];var Qi,Zi;Qi=Ji,Zi=139,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0xd")](){const t=this[Yi("0xe")];if(!t.plugins.has(Yi("0x8")))return;const e=t.locale,n=t[Yi("0x29")][Yi("0x1c")](Yi("0x34"));n[Yi("0x6")][Yi("0x2d")]("paragraph",(t=>Yo(e,Yi("0x25"),t))),n[Yi("0x1")]("paragraph",((e,o={})=>{const s=t.model[Yi("0x1d")],r=o[Yi("0x17")]||s[Yi("0x17")],i=Array[Yi("0x18")](r[Yi("0x2f")]()).filter((t=>{return e=t,(n=this[Yi("0xe")][Yi("0xc")][Yi("0x2a")]).checkChild(e[Yi("0x31")],Yi("0x2"))&&!n[Yi("0xa")](e)&&Yi("0x2")!=e[Yi("0x9")];var e,n}));t[Yi("0xc")][Yi("0x16")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0x2"),commandParams:[],formatGroupId:Yi("0x0")},fs(t))}))})),n[Yi("0x6")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Yi("0x2")==n[Yi("0x1a")])return{type:Yi("0x27"),content:Yo(e,Yi("0x2c"),Yo(e,Yi("0x25")))}})),n[Yi("0x1")](Yi("0x3")),t[Yi("0x30")].downcastDispatcher.on(Yi("0xf"),ex(t),{priority:Yi("0x1e")}),t[Yi("0x32")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,o)=>{o[Yi("0x7")].showSuggestionHighlights&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x1e")});const o=n._descriptionFactory;o[Yi("0x4")]((n=>{if("insertion"!==n[Yi("0x2b")])return;const{start:s,end:r}=n[Yi("0x26")]();if(!s[Yi("0x5")](r)||!s[Yi("0x21")])return;const i=t[Yi("0xc")][Yi("0x2a")],x=s.nodeAfter;return i[Yi("0x2e")](x)&&!i[Yi("0x19")](x)&&i.checkChild(x,"$text")?{type:Yi("0x1f"),content:Yo(e,Yi("0x15"),o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x29")][Yi("0x1c")](Yi("0x34")),i=o.markerRange.start,x=o[Yi("0x20")][Yi("0x1b")],a=t[Yi("0xc")].schema;if(!i[Yi("0x5")](x)||!i[Yi("0x21")])return;const c=i[Yi("0x21")];if(a[Yi("0x2e")](c)&&!a.isLimit(c)&&a[Yi("0x22")](c,Yi("0x13"))){if(!s[Yi("0x28")][Yi("0x12")](o[Yi("0x20")],n.name))return;const t=s[Yi("0x24")][Yi("0x33")](Yi("0x23"),{class:"ck-suggestion-marker-split"}),i=s[Yi("0x11")][Yi("0xb")](x);e&&r.activeMarkers[Yi("0x10")](o[Yi("0x14")])&&s[Yi("0x24")].addClass("ck-suggestion-marker--active",t),s[Yi("0x24")].insert(i,t),s.mapper.bindElementToMarker(t,o[Yi("0x14")])}}}const nx=["isFormatting","getAttributes","schema","RemoveFormatEditing","has","selection","locale","change","document","isCollapsed","get","registerDescriptionCallback","TrackChangesEditing","afterInit","_descriptionFactory","model","createRangeOn","enableCommand","markInlineFormat","editor","getItems","format","removeFormat","*Remove all formatting*"];var ox,sx;ox=nx,sx=352,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x15")](){const t=this[rx("0x3")];if(!t.plugins[rx("0xc")](rx("0xb")))return;const e=t.plugins[rx("0x12")](rx("0x14"));e[rx("0x1")](rx("0x6"),(n=>{const o=t.model[rx("0x10")][rx("0xd")];o[rx("0x11")]?n():t[rx("0x17")][rx("0xf")]((()=>{const n=Array.from(o.getRanges());for(const o of n)for(const n of o[rx("0x4")]())xx(n,t[rx("0x17")][rx("0xa")])&&e[rx("0x2")](t[rx("0x17")][rx("0x0")](n),{commandName:rx("0x6"),commandParams:[]})}))})),e[rx("0x16")][rx("0x13")]((e=>{const{data:n}=e;if(n&&rx("0x6")==n.commandName)return{type:rx("0x5"),content:Yo(t[rx("0xe")],rx("0x7"))}}))}}function xx(t,e){for(const[n]of t[rx("0x9")]()){const t=e.getAttributeProperties(n);if(t&&t[rx("0x8")])return!0}return!1}const ax=["goToNextRestrictedEditingException","get","afterInit","RestrictedEditingModeEditing","acceptAllSuggestions","enableCommand","TrackChangesEditing","discardSuggestion","discardSelectedSuggestions","acceptSuggestion","editor","plugins","acceptSelectedSuggestions","has"];var cx,lx;cx=ax,lx=163,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x7")](){const t=this[dx("0x1")];if(!t.plugins[dx("0x4")](dx("0x8")))return;const e=t[dx("0x2")][dx("0x6")](dx("0xb"));e[dx("0xa")]("goToPreviousRestrictedEditingException"),e[dx("0xa")](dx("0x5"));const n=t[dx("0x2")][dx("0x6")]("RestrictedEditingModeEditing");n.enableCommand("trackChanges"),n.enableCommand(dx("0x0")),n[dx("0xa")](dx("0xc")),n[dx("0xa")](dx("0x9")),n[dx("0xa")]("discardAllSuggestions"),n.enableCommand(dx("0x3")),n[dx("0xa")](dx("0xd"))}}const gx=["addMarker:suggestion","plugins","model","activeMarkers","includes","data","get","merge","editor","writer","shiftEnter","element","test","name","markerName","getItems","requires","consumable","addMarker:suggestion:insertion","ELEMENT_LINE_BREAK","createUIElement","addClass","enableCommand","mapper","span","init","markerRange","editing","locale","showSuggestionHighlights","_descriptionFactory","registerElementLabel","options","TrackChangesEditing","high","softBreak"];var mx,fx;mx=gx,fx=490,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x1e")](){return[nr.ShiftEnter]}[hx("0x3")](){const t=this[hx("0x16")],e=t[hx("0xf")][hx("0x14")](hx("0xb"));e[hx("0x0")](hx("0x18")),t[hx("0x5")].downcastDispatcher.on(hx("0x20"),bx(t),{priority:hx("0xc")}),t.editing.downcastDispatcher.on("addMarker:suggestion:deletion",bx(t),{priority:hx("0xc")}),t[hx("0x13")].downcastDispatcher.on(hx("0xe"),((e,n,o)=>{o[hx("0xa")][hx("0x7")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x8")][hx("0x9")](hx("0xd"),(e=>Yo(t[hx("0x6")],hx("0x21"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0xf")][hx("0x14")](hx("0xb"));if(!s[hx("0x1f")][hx("0x1a")](o[hx("0x4")],n[hx("0x1b")]))return;const i=t[hx("0x10")];for(const t of o.markerRange[hx("0x1d")]()){if(!t.is(hx("0x19"),"softBreak"))continue;const n="deletion"==o[hx("0x1c")].split(":")[1]?hx("0x15"):"split",x=s[hx("0x17")][hx("0x22")](hx("0x2"),{class:"ck-suggestion-marker-"+n}),a=s[hx("0x1")].toViewPosition(i.createPositionBefore(t));e&&r[hx("0x11")][hx("0x12")](o[hx("0x1c")])&&s[hx("0x17")][hx("0x23")]("ck-suggestion-marker--active",x),s[hx("0x17")].insert(a,x),s[hx("0x1")].bindElementToMarker(x,o[hx("0x1c")])}}}const Ex=["has","commandParams","FORMAT_RESTRICTED_DISABLED","locale","isCollapsed","selection","model","forceValue","FORMAT_RESTRICTED_ENABLED","get","afterInit","document","TrackChangesEditing","value","_descriptionFactory","editor","from","markInlineFormat","restrictedEditingException","enableCommand","format","StandardEditingModeEditing"];var _x,Tx;_x=Ex,Tx=388,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x12")](){const t=this[Cx("0x1")],e=t[Cx("0xe")],n=t[Cx("0xb")];if(!t.plugins[Cx("0x8")](Cx("0x7")))return;const o=t.plugins[Cx("0x11")](Cx("0x14")),s=Cx("0x4"),r=t.commands.get(s);o[Cx("0x5")](s,((t,n={})=>{const i=e[Cx("0x13")][Cx("0xd")];if(i[Cx("0xc")])return void t(n);const x=void 0!==n[Cx("0xf")]?n[Cx("0xf")]:!r[Cx("0x15")];e.change((()=>{const t=Array[Cx("0x2")](i.getRanges());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x3")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x0")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e.commandName==s)return e[Cx("0x9")][0][Cx("0xf")]?{type:"format",content:Yo(n,Cx("0x10"))}:{type:Cx("0x6"),content:Yo(n,Cx("0xa"))}}))}}const kx=["styleName","commands","includes","block","style","has","markInlineFormat","document","locale","push","getDefinitionsForView","isCollapsed","getAttribute","modelElements","enableCommand","createRangeOn","name","from","classes","normalizeConfig","inline","editor","enabledStyles","find","commandName","format","toLowerCase","markBlockFormat","_descriptionFactory","model","config","registerDescriptionCallback","getAncestors","style:","StyleUtils","change","element","get","commandParams","_getRangesWithClasses","style.definitions","TrackChangesEditing","getItems","_getStyleDefinition","isBlock","plugins","*Format:* %0","getRanges"];var Ax,vx;Ax=kx,vx=363,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{afterInit(){const t=this[Rx("0x2a")];if(!t[Rx("0x12")][Rx("0x1a")]("Style"))return;const e=t[Rx("0x16")][Rx("0xa")]("style"),n=t.plugins[Rx("0xa")](Rx("0xe")),o=t[Rx("0x1d")],s=t.plugins[Rx("0xa")]("DataSchema"),r=t.plugins[Rx("0xa")](Rx("0x7"))[Rx("0x28")](s,t[Rx("0x3")][Rx("0xa")](Rx("0xd")));n[Rx("0x23")](Rx("0x19"),((o,{styleName:i})=>{const x=t[Rx("0x2")][Rx("0x1c")].selection,a=this[Rx("0x10")](i,r);if(!a)return;if(!e[Rx("0x2b")][Rx("0x17")](i))return;if(x[Rx("0x20")]&&!a[Rx("0x11")])return void o({styleName:i});const c=!e.value[Rx("0x17")](a[Rx("0x25")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x5")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[Rx("0x25")])){n.add(o);break}}return n}(x.getSelectedBlocks(),a[Rx("0x22")]);t[Rx("0x2")][Rx("0x8")]((()=>{for(const t of e)n[Rx("0x0")](t,{commandName:Rx("0x19"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x6")+i})}))}else{let e=Array[Rx("0x26")](x[Rx("0x14")]());if(!c){const n=Array[Rx("0x26")](s[Rx("0x1f")](a[Rx("0x9")],!1))[0].model,o=[];for(const s of e){const e=this[Rx("0xc")](t[Rx("0x2")],s,a[Rx("0x27")],n);o[Rx("0x1e")](...e)}e=o}t[Rx("0x2")].change((()=>{for(const t of e)n[Rx("0x1b")](t,{commandName:Rx("0x19"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x1")][Rx("0x4")]((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x2d")])return e[Rx("0xb")][0].forceValue?{type:Rx("0x2e"),content:Yo(o,Rx("0x13"),e.commandParams[0].styleName[Rx("0x2f")]())}:{type:"format",content:Yo(o,"*Remove format:* %0",e[Rx("0xb")][0][Rx("0x15")][Rx("0x2f")]())}}))}[Rx("0x10")](t,e){let n=e[Rx("0x18")][Rx("0x2c")]((e=>e.name===t));return n||(n=e[Rx("0x29")][Rx("0x2c")]((e=>e[Rx("0x25")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Rx("0xf")]()){const e=r[Rx("0x21")](o);e&&n.every((t=>e[Rx("0x27")][Rx("0x17")](t)))&&s.push(t[Rx("0x24")](r))}return s}}const Ix=["getColumnIndexes","*Remove:* %0","findAncestor","TableUtils","add","ELEMENT_TABLE_ROW","hasAttribute","oldRange","registerElementLabel","editor","plugins","nodeBefore","first","maxRow","selectTableColumn","isIntersectingWithRange","tableCell","getSelectionAffectedTableCells","refresh","_splitMarkerName","getRanges","createRangeOn","getChildren","_tablePostFixingSubtypes","markMultiRangeInsertion","nodeAfter","position","name","colspan","forceValue","ELEMENT_TABLE_COLUMN","length","type","detach","registerDescriptionCallback","getCellLocation","addClass","start","tableRow","_acceptFormatSuggestionCallbackFactory","setSelection","end","discard","addRange","values","from","createTableWalker","execute","mapper","TableEditing","enableCommand","afterInit","_getCoordsForCells","includes","_getSuggestionCoords","createRangeIn","span","order","ELEMENT_TABLE_COLUMN_WITH_TEXT","insertTableRowAbove","deletion","$graveyard","toViewElement","subType","min","filter","minColumn","item","enqueueChange","getFirstRange","getChangedMarkers","getAttribute","selectTableRow","root","removeTableRow","MAX_SAFE_INTEGER","getItems","change","data","writer","classes","selection","some","startsWith","insertTable","_descriptionFactory","isEqual","table","_tableSuggestions","rootName","model","addMarker:suggestion","tableColumn","differ","*Insert:* %0","registerCustomCallback","registerPostFixer","document","last","_suggestionFactory","toLowerCase","insertTableColumnRight","$textProxy","fromRange","change:data","_setupColumnsRowsFixing","commands","ELEMENT_TABLE","join","cell","suggestion","push","tablePaste","getRowIndexes","accept","substr","get","insertTableColumnLeft","element","map","removeTableColumn","isInContent","insertion","ELEMENT_TABLE_WITH_TEXT","TrackChangesEditing","isTouching","showSuggestionHighlights","has","ELEMENT_TABLE_ROW_WITH_TEXT","max","low"];var Lx,Nx;Lx=Ix,Nx=304,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x70")]=[Mx("0x7f"),Mx("0x32")],this._tableSuggestions=new Set}[Mx("0x9")](){const t=this[Mx("0x62")],e=t.model[Mx("0x37")][Mx("0x27")];if(!t[Mx("0x63")][Mx("0x55")](Mx("0x7")))return;const n=t.locale,o=t[Mx("0x63")][Mx("0x4a")](Mx("0x52")),s=t[Mx("0x63")][Mx("0x4a")]("TableUtils");o[Mx("0x2b")][Mx("0x61")](Mx("0x2d"),(t=>Yo(n,Mx("0x41"),t))),this[Mx("0x3f")](),o[Mx("0x8")](Mx("0x2a")),o[Mx("0x8")](Mx("0x1e")),o.enableCommand(Mx("0x67"));for(const n of[Mx("0x11"),"insertTableRowBelow"]){const r=t[Mx("0x40")][Mx("0x4a")](n);o[Mx("0x8")](n,(n=>{t[Mx("0x30")].change((t=>{n();const i="above"===r[Mx("0xf")],x=s[Mx("0x6a")](e),a=s[Mx("0x47")](x),c=i?a[Mx("0x65")]-1:a[Mx("0x38")]+1,l=x[0][Mx("0x5b")](Mx("0x2d")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array[Mx("0x3")](d)[Mx("0x4d")]((e=>t[Mx("0x6e")](e[Mx("0x43")])));o.markMultiRangeInsertion(u,Mx("0x7f"))}))}))}for(const n of[Mx("0x4b"),Mx("0x3b")]){const r=t[Mx("0x40")][Mx("0x4a")](n);o[Mx("0x8")](n,(n=>{t[Mx("0x30")][Mx("0x23")]((t=>{n();const i="left"===r[Mx("0xf")],x=s[Mx("0x6a")](e),a=s[Mx("0x59")](x),c=i?a[Mx("0x65")]-1:a[Mx("0x38")]+1,l=x[0][Mx("0x5b")](Mx("0x2d")),d=s[Mx("0x4")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x3")](d).map((e=>t[Mx("0x6e")](e[Mx("0x43")])));o[Mx("0x71")](u,Mx("0x32"))}))}))}for(const n of[Mx("0x20"),Mx("0x4e")]){const r=n[Mx("0x49")](11),i=r.toLowerCase(),x=i[Mx("0x49")](0,3)+Mx("0xe"),a=Mx("0x2d")+r,c="min"+r,l=Mx("0x57")+r;o[Mx("0x8")](n,(()=>{t[Mx("0x30")].change((t=>{const r=s[Mx("0x6a")](e),d=r[0][Mx("0x5b")](Mx("0x2d"));let u;if(Mx("0x20")==n){const t=s[Mx("0x47")](r);u={startRow:t.first,endRow:t[Mx("0x38")],includeAllSlots:!0}}else{const t=s[Mx("0x59")](r);u={startColumn:t.first,endColumn:t[Mx("0x38")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[Mx("0x3")](g).map((({cell:t})=>t)),f=Ox(m[Mx("0x17")]((t=>t[Mx("0x5f")](x)))),h=Ox(m[Mx("0x17")]((t=>!t[Mx("0x5f")](x))))[Mx("0x4d")]((e=>t[Mx("0x6e")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Mx("0x7f")==p[Mx("0x15")]||Mx("0x32")==p.subType)){const e=this[Mx("0xc")](p);for(const n of f){const o=t[Mx("0x6e")](n),r=s[Mx("0x7c")](n),a=n[Mx("0x1d")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Mx("0x1")](o)}}}))}))}function r(n){const o=Array[Mx("0x3")](e[Mx("0x6d")]())[Mx("0x4d")]((t=>i.LiveRange.fromRange(t)));t.model[Mx("0x23")]((e=>{const s=e.batch;n=n[Mx("0x17")]((t=>Mx("0x13")!=t[Mx("0x1f")][Mx("0x2f")])),e[Mx("0x81")](n),t[Mx("0x40")][Mx("0x4a")](Mx("0x20")).refresh(),t[Mx("0x5")](Mx("0x20"),{forceDefaultExecution:!0}),t[Mx("0x30")].enqueueChange((()=>{t.model[Mx("0x1a")](s,(t=>{const e=o.filter((t=>Mx("0x13")!=t[Mx("0x1f")][Mx("0x2f")]));e[Mx("0x78")]>0&&t[Mx("0x81")](e);for(const t of o)t[Mx("0x7a")]()}))}))}))}function a(n){t[Mx("0x30")][Mx("0x23")]((o=>{const s=Array[Mx("0x3")](e[Mx("0x6d")]()).map((t=>i.LiveRange[Mx("0x3d")](t))),r=[];for(const t of n)for(const e of t[Mx("0x22")]({shallow:!0}))r[Mx("0x45")](e);for(const e of r)Mx("0x13")!=e[Mx("0x1f")][Mx("0x2f")]&&(o[Mx("0x81")](o.createPositionAt(e,0)),t[Mx("0x40")][Mx("0x4a")](Mx("0x4e"))[Mx("0x6b")](),t[Mx("0x5")](Mx("0x4e"),{forceDefaultExecution:!0}));const x=s.filter((t=>"$graveyard"!=t[Mx("0x1f")][Mx("0x2f")]));x[Mx("0x78")]>0&&o[Mx("0x81")](x);for(const t of s)t[Mx("0x7a")]()}))}function c(t,e){return e.every((e=>t[Mx("0x28")]((t=>t[Mx("0x82")][Mx("0x2c")](e.start)||e[Mx("0x82")][Mx("0x2c")](t[Mx("0x7e")])))))}function l(t,e){return t[Mx("0x28")]((t=>e[Mx("0x28")]((e=>t[Mx("0x82")][Mx("0x53")](e[Mx("0x7e")])))))}t.data.downcastDispatcher.on(Mx("0x31"),((t,e,n)=>{if(!n.options[Mx("0x54")])return;const o=e[Mx("0x19")];if(!o)return;const s=n[Mx("0x6")][Mx("0x14")](o);function r(t){return Array.isArray(t)?t:[t]}s&&Mx("0x69")===o[Mx("0x74")]&&(0,x.setHighlightHandling)(s,n[Mx("0x25")],((t,e,n)=>n[Mx("0x7d")](r(e[Mx("0x26")]),t)),((t,e,n)=>n.removeClass(r(e[Mx("0x26")]),t)))}),{priority:"highest"}),o._descriptionFactory.registerDescriptionCallback((t=>{if(Mx("0x50")!=t.type&&Mx("0x12")!=t[Mx("0x79")])return;const e=t.getContainedElement();if(null!=e&&e.is(Mx("0x4c"),Mx("0x2d"))){if(Mx("0x50")==t[Mx("0x79")]){const e=t[Mx("0x22")]()[Mx("0x17")]((t=>t.is(Mx("0x3c"))))[Mx("0x4d")]((t=>t[Mx("0x24")]));if(e[Mx("0x78")])return{type:Mx("0x50"),content:Yo(n,Mx("0x34"),Yo(n,Mx("0x51"),'"'+e[Mx("0x42")](" ")+'"'))}}if(Mx("0x12")==t[Mx("0x79")]){const e=t[Mx("0x22")]()[Mx("0x17")]((t=>t.is(Mx("0x3c"))))[Mx("0x4d")]((t=>t[Mx("0x24")]));if(e[Mx("0x78")])return{type:Mx("0x12"),content:Yo(n,Mx("0x5a"),Yo(n,Mx("0x51"),'"'+e[Mx("0x42")](" ")+'"'))}}}})),o[Mx("0x2b")][Mx("0x7b")]((t=>{if(Mx("0x7f")==t[Mx("0x15")]){const e=t[Mx("0x22")]()[Mx("0x17")]((t=>t.is(Mx("0x3c"))))[Mx("0x4d")]((t=>t[Mx("0x24")])),o=this._getSuggestionCoords(t),s=o[Mx("0x66")]-o.minRow+1;if(Mx("0x50")==t[Mx("0x79")])return e[Mx("0x78")]?{type:"insertion",content:Yo(n,Mx("0x34"),Yo(n,Mx("0x56"),[s,'"'+e[Mx("0x42")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x34"),Yo(n,"ELEMENT_TABLE_ROW",s))};if(Mx("0x12")==t[Mx("0x79")])return e[Mx("0x78")]?{type:Mx("0x12"),content:Yo(n,Mx("0x5a"),Yo(n,Mx("0x56"),[s,'"'+e[Mx("0x42")](" ")+'"']))}:{type:Mx("0x12"),content:Yo(n,Mx("0x5a"),Yo(n,Mx("0x5e"),s))}}if(Mx("0x32")==t.subType){const e=t[Mx("0x22")]()[Mx("0x17")]((t=>t.is(Mx("0x3c"))))[Mx("0x4d")]((t=>t.data)),o=this[Mx("0xc")](t),s=o.maxColumn-o[Mx("0x18")]+1;if("insertion"==t.type)return e.length?{type:Mx("0x50"),content:Yo(n,Mx("0x34"),Yo(n,Mx("0x10"),[s,'"'+e[Mx("0x42")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x34"),Yo(n,Mx("0x77"),s))};if("deletion"==t[Mx("0x79")])return e.length?{type:Mx("0x12"),content:Yo(n,Mx("0x5a"),Yo(n,Mx("0x10"),[s,'"'+e[Mx("0x42")](" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0x5a"),Yo(n,Mx("0x77"),s))}}})),o[Mx("0x39")][Mx("0x35")](Mx("0x50"),Mx("0x7f"),Mx("0x0"),r),o._suggestionFactory[Mx("0x35")](Mx("0x12"),Mx("0x7f"),"accept",r),o[Mx("0x39")][Mx("0x35")](Mx("0x50"),Mx("0x32"),Mx("0x0"),a),o[Mx("0x39")][Mx("0x35")](Mx("0x12"),Mx("0x32"),Mx("0x48"),a),o._suggestionFactory[Mx("0x35")](Mx("0x50"),Mx("0x32"),Mx("0x42"),c),o[Mx("0x39")].registerCustomCallback(Mx("0x12"),Mx("0x32"),Mx("0x42"),c),o[Mx("0x39")][Mx("0x35")](Mx("0x50"),Mx("0x7f"),Mx("0x42"),l),o[Mx("0x39")][Mx("0x35")](Mx("0x12"),Mx("0x7f"),Mx("0x42"),l)}[Mx("0x80")](){const t=this[Mx("0x62")],e=t[Mx("0x30")][Mx("0x37")][Mx("0x27")];return(n,o)=>{t.model[Mx("0x23")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x82")][Mx("0x64")];x&&x[0]&&!1===x[0][Mx("0x76")]&&(a=n[0][Mx("0x7e")][Mx("0x72")]);const c=s[Mx("0xd")](a);if(Mx("0x13")==c.root[Mx("0x2f")])return;const l=Array[Mx("0x3")](e[Mx("0x6d")]())[Mx("0x4d")]((t=>i.LiveRange.fromRange(t)));s[Mx("0x81")](c),t[Mx("0x40")].get(r)[Mx("0x6b")](),x[Mx("0x45")]({forceDefaultExecution:!0}),t.execute(r,...x);const d=l[Mx("0x17")]((t=>Mx("0x13")!=t.root[Mx("0x2f")]));d[Mx("0x78")]>0&&s[Mx("0x81")](d);for(const t of l)t[Mx("0x7a")]()}))}}[Mx("0xa")](t){const e=this[Mx("0x62")][Mx("0x63")][Mx("0x4a")](Mx("0x5c"));let n=Number[Mx("0x21")],o=Number.MIN_SAFE_INTEGER,s=Number[Mx("0x21")],r=Number.MIN_SAFE_INTEGER;for(const i of t){if(Mx("0x13")==i[Mx("0x1f")][Mx("0x2f")])continue;const{row:t,column:x}=e[Mx("0x7c")](i),a=i[Mx("0x5f")]("rowspan")?i.getAttribute("rowspan")-1:0,c=i[Mx("0x5f")](Mx("0x75"))?i[Mx("0x1d")](Mx("0x75"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Mx("0x3f")](){const t=this[Mx("0x62")],e=t[Mx("0x63")][Mx("0x4a")]("TrackChangesEditing"),n=t[Mx("0x63")].get(Mx("0x5c"));t.model[Mx("0x37")].on(Mx("0x3e"),(()=>{const n=Array[Mx("0x3")](t.model.document[Mx("0x33")][Mx("0x1c")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x6c")](t);if(Mx("0x44")!=n)continue;if(null!=o[Mx("0x60")])continue;const i=e.getSuggestion(s);this[Mx("0x70")][Mx("0xb")](r)&&this[Mx("0x2e")][Mx("0x5d")](i)}}),{priority:Mx("0x58")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x6e")](t),r=t[Mx("0x5b")](Mx("0x2d")),i=n[Mx("0x7c")](t);for(const e of this[Mx("0x2e")]){const n=e[Mx("0x15")],x=n[Mx("0x29")](Mx("0x46")),a=n.substr(x?10:5),c=a[Mx("0x3a")](),l=c.substr(0,3)+Mx("0xe"),d=Mx("0x16")+a,u=Mx("0x57")+a;if(!e[Mx("0x4f")])continue;if(r!=e[Mx("0x1b")]()[Mx("0x7e")][Mx("0x5b")](Mx("0x2d")))continue;if(e[Mx("0x68")](s))continue;const g=t[Mx("0x5f")](l)?t[Mx("0x1d")](l)-1:0,m=this[Mx("0xc")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e.addRange(s),o=!0)}return o};t[Mx("0x30")][Mx("0x37")][Mx("0x36")]((e=>{let n=!1;for(const s of t[Mx("0x30")][Mx("0x37")][Mx("0x33")].getChanges())if("insert"==s[Mx("0x79")])if(Mx("0x7f")==s.name)for(const t of s[Mx("0x73")][Mx("0x72")][Mx("0x6f")]())n=n||o(t,e);else Mx("0x69")==s.name&&(n=n||o(s[Mx("0x73")].nodeAfter,e));return n}))}_getSuggestionCoords(t){return this[Mx("0xa")](t[Mx("0x6d")]()[Mx("0x4d")]((t=>t[Mx("0x7e")][Mx("0x72")])))}}function Ox(t){return Array[Mx("0x3")](new Set(t)[Mx("0x2")]())}const Fx=["table","type","*Merge cells*","registerDescriptionCallback","value","selection","TableUtils","has","containsRange","get","execute","map","editor","change","horizontally","forceDefaultExecution","registerCustomCallback","_descriptionFactory","element","TrackChangesEditing","document","size","getAncestors","createTableWalker","mergeTableCellUp","tableCell","getSuggestions","from","cell","set:isEnabled","splitTableCellVertically","model","mergeTableCellDown","setSelection","mergeTableCells","author","find","length","markBlockFormat","enableCommand","accept","markMultiRangeBlockFormat","locale","detach","requires","subType","mergeTableCellRight","formatBlock","splitTableCellHorizontally","refresh","insertion","getFirstPosition","_isForcedDefaultExecutionBlock","_suggestionFactory","TableEditing","isEnabled","root","$graveyard","getCellLocation","commands","mergeTableCellLeft","format","rootName","direction","_areMergableCells","_areSelectedCellsMergable","findAncestor","stop","_tablePostFixingSubtypes","commandName","plugins","fromRange","highest","getSelectionAffectedTableCells"];var Dx,Px;Dx=Fx,Px=178,function(t){for(;--t;)Dx.push(Dx.shift())}(++Px);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0xe")](){return[wx]}afterInit(){const t=this[Bx("0x38")],e=t[Bx("0x1")][Bx("0x40")][Bx("0x31")],n=t[Bx("0xc")];if(!t.plugins.has(Bx("0x18")))return;const o=t[Bx("0x28")][Bx("0x35")](Bx("0x3f")),s=t.plugins[Bx("0x35")](Bx("0x32")),r=t[Bx("0x28")][Bx("0x35")](wx);r[Bx("0x26")].push(Bx("0x4")),o[Bx("0x9")]("mergeTableCells",(()=>{const e=s.getSelectionAffectedTableCells(t[Bx("0x1")][Bx("0x40")][Bx("0x31")]);t[Bx("0x1")][Bx("0x39")]((()=>{o[Bx("0xb")](e,{commandName:"mergeTableCells",commandParams:[]},[],Bx("0x4"))}))})),t.commands.get(Bx("0x4")).on(Bx("0x36"),((e,n)=>{t[Bx("0x1d")][Bx("0x35")]("trackChanges").value&&(n[Bx("0x7")]>0&&n[n.length-1]&&n[n[Bx("0x7")]-1][Bx("0x3b")]||o[Bx("0x16")]||this[Bx("0x23")]()||e[Bx("0x25")]())}),{priority:Bx("0x2a")});for(const e of[Bx("0x44"),Bx("0x10"),Bx("0x2"),Bx("0x1e")]){const n=t.commands[Bx("0x35")](e);o[Bx("0x9")](e,(()=>{const e=t[Bx("0x1")][Bx("0x40")][Bx("0x31")][Bx("0x15")]()[Bx("0x42")]()[Bx("0x6")]((t=>t.is(Bx("0x3e"),"tableCell"))),s=n[Bx("0x30")];t[Bx("0x1")][Bx("0x39")]((()=>{o[Bx("0xb")]([e,s],{commandName:Bx("0x4"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of["splitTableCellVertically",Bx("0x12")]){const n=t.commands[Bx("0x35")](e);o[Bx("0x9")](e,(()=>{const r=s.getSelectionAffectedTableCells(t[Bx("0x1")][Bx("0x40")][Bx("0x31")])[0],i=r[Bx("0x24")](Bx("0x2c")),{column:x,row:a}=s[Bx("0x1c")](r);let c=[];if(Bx("0x3a")==n[Bx("0x21")]){const t=s.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[Bx("0x37")]((t=>t[Bx("0x48")]))}else{const t=s[Bx("0x43")](i,{column:x,includeAllSlots:!0});c=Array.from(t)[Bx("0x37")]((t=>t[Bx("0x48")]))}t.model.change((t=>{o[Bx("0x8")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x3d")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x4")==e[Bx("0x27")]?{type:Bx("0x1f"),content:Yo(n,Bx("0x2e"))}:void 0})),o[Bx("0x3d")][Bx("0x2f")]((t=>{const{data:e}=t;if(e)return Bx("0x0")==e.commandName?{type:Bx("0x1f"),content:Yo(n,"*Split cell:* vertically")}:"splitTableCellHorizontally"==e.commandName?{type:Bx("0x1f"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of[Bx("0x44"),"mergeTableCellRight",Bx("0x2"),Bx("0x1e")])o[Bx("0x17")].registerCustomCallback(Bx("0x11"),t,Bx("0xa"),x);for(const t of[Bx("0x0"),Bx("0x12")])o[Bx("0x17")][Bx("0x3c")]("formatBlock",t,Bx("0xa"),x);o[Bx("0x17")][Bx("0x3c")](Bx("0x11"),Bx("0x4"),Bx("0xa"),(n=>{t.model[Bx("0x39")]((o=>{const s=Array[Bx("0x47")](e.getRanges()).map((t=>i.LiveRange[Bx("0x29")](t)));o.setSelection(n),t[Bx("0x1d")][Bx("0x35")](Bx("0x4"))[Bx("0x13")](),t.execute(Bx("0x4"),{forceDefaultExecution:!0});const r=s.filter((t=>Bx("0x1b")!=t[Bx("0x1a")][Bx("0x20")]));r[Bx("0x7")]>0&&o[Bx("0x3")](r);for(const t of s)t[Bx("0xd")]()}))}));for(const e of[Bx("0x44"),Bx("0x2"),"mergeTableCellLeft",Bx("0x10")]){const n=t[Bx("0x1d")][Bx("0x35")](e);n.on(Bx("0x49"),((e,o,s)=>{if(s){const o=t.model.document.selection[Bx("0x15")]()[Bx("0x42")]()[Bx("0x6")]((t=>t.is(Bx("0x3e"),Bx("0x45"))));this._areMergableCells(n[Bx("0x30")],o)||(e.return=!1,e[Bx("0x25")]())}}),{priority:"low"})}}_areSelectedCellsMergable(){const t=this[Bx("0x38")][Bx("0x1d")][Bx("0x35")]("mergeTableCells"),e=this[Bx("0x38")][Bx("0x28")][Bx("0x35")](Bx("0x32"));if(!t[Bx("0x19")])return!1;const n=e[Bx("0x2b")](this[Bx("0x38")][Bx("0x1")].document[Bx("0x31")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Bx("0x22")](t,e){const n=this[Bx("0x38")][Bx("0x28")][Bx("0x35")](Bx("0x3f")),o=this[Bx("0x38")][Bx("0x1")].createRangeOn(t),s=this.editor.model.createRangeOn(e),r=new Set,i=new Set;for(const t of n[Bx("0x46")]())if((Bx("0x14")==t[Bx("0x2d")]||"deletion"==t[Bx("0x2d")]||Bx("0x4")==t[Bx("0xf")])&&t.isInContent)for(const e of t.getRanges())e.containsRange(o,!0)&&r.add(t[Bx("0x2d")]+":"+t.author.id),e[Bx("0x34")](s,!0)&&i.add(t.type+":"+t[Bx("0x5")].id);if(r[Bx("0x41")]!=i[Bx("0x41")])return!1;for(const t of r)if(!i[Bx("0x33")](t))return!1;return!0}}const Ux=["commandName","index","accept","commands","isBefore","nodeBefore","requires","setTableRowHeader","editing","includes","_acceptFormatSuggestionCallbackFactory","document","headingColumns","getSelectionAffectedTableCells","setAttribute","createTableWalker","highest","downcastDispatcher","mapper","get","stop","nodeAfter","ck-suggestion-marker-","data","ck-suggestion-marker--active","unbindElementFromMarkerName","getChild","forceValue","getAttribute","FORMAT_HEADER_ROW","createPositionBefore","cell","removeMarker:suggestion","markerName","has","from","value","editor","plugins","FORMAT_REGULAR_COLUMN","table","model","start","options","headingRows","parent","setTableColumnHeader","writer","toViewElement","registerDescriptionCallback","markBlockFormat","change","getColumnIndexes","childCount","getSuggestion","last","_descriptionFactory","data-suggestion","name","getCellLocation","FORMAT_REGULAR_ROW","markerNameToElements","getRowIndexes","commandParams","addMarker:suggestion","findAncestor","_suggestionFactory","first","TableEditing","_splitMarkerName","consumable","createRange","markerRange","removeClass","createPositionAfter","registerCustomCallback","bindElementToMarker","formatBlock","TableUtils","TrackChangesEditing"];var Gx,Hx;Gx=Ux,Hx=477,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x9")](){return[wx]}afterInit(){const t=this[zx("0x28")];if(!t[zx("0x29")][zx("0x25")](zx("0x47")))return;const e=t.locale,n=t[zx("0x29")][zx("0x16")](zx("0x2")),o=t[zx("0x29")][zx("0x16")](zx("0x1")),s=t.plugins[zx("0x16")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x48")](r[zx("0x24")]),c=n[zx("0x39")](a);if(!c[zx("0x1a")]||"setTableColumnHeader"!=c.data[zx("0x3")])return;if(r.item)return void s[zx("0x17")]();if(!i[zx("0x49")].consume(r[zx("0x4b")],s[zx("0x3d")]))return;const l=r.markerRange[zx("0x2d")][zx("0x18")],d=r[zx("0x4b")].end[zx("0x8")],u=l[zx("0x30")].parent,{column:g}=o[zx("0x3e")](l),{column:m}=o.getCellLocation(d);for(let s=g;s<=m;s++){const c=o[zx("0x12")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i[zx("0x15")][zx("0x33")](s);i.writer.addClass(zx("0x19")+x,c),e&&i[zx("0x32")][zx("0x11")](zx("0x3c"),a,c),i[zx("0x15")][zx("0x4f")](c,r[zx("0x24")]),t&&(n.activeMarkers[zx("0xc")](r[zx("0x24")])?i[zx("0x32")].addClass(zx("0x1b"),c):i[zx("0x32")][zx("0x4c")](zx("0x1b"),c))}}}}n.enableCommand("setTableRowHeader",((e,s)=>{const r=o[zx("0x10")](t[zx("0x2c")][zx("0xe")].selection),i=o[zx("0x41")](r),x=r[0][zx("0x44")](zx("0x2b")),a=x[zx("0x1f")](zx("0x2f"))||0,c=s&&null!==s.forceValue?s.forceValue:!t[zx("0x6")][zx("0x16")](zx("0xa"))[zx("0x27")],l=c?i[zx("0x3a")]:i[zx("0x46")],d=x[zx("0x1d")](l);let u;if(c){const e=x[zx("0x1d")](a);if(d[zx("0x4")]<e[zx("0x4")])return;u=t.model[zx("0x4a")](t[zx("0x2c")][zx("0x21")](e.getChild(0)),t[zx("0x2c")][zx("0x4d")](d[zx("0x1d")](d[zx("0x38")]-1)))}else{const e=x[zx("0x1d")](a-1);if(!e)return;u=t[zx("0x2c")][zx("0x4a")](t[zx("0x2c")][zx("0x21")](d[zx("0x1d")](0)),t.model[zx("0x4d")](e[zx("0x1d")](e.childCount-1)))}t.model.change((()=>{n[zx("0x35")](u,{commandName:zx("0xa"),commandParams:[{forceValue:c}]},[],zx("0xa"))}))})),n.enableCommand("setTableColumnHeader",((e,o)=>{const s=t[zx("0x29")][zx("0x16")](zx("0x1")),r=s.getSelectionAffectedTableCells(t.model[zx("0xe")].selection),i=s[zx("0x37")](r),x=r[0][zx("0x44")](zx("0x2b")),a=x[zx("0x1f")](zx("0xf"))||0,c=o&&null!==o.forceValue?o[zx("0x1e")]:!t.commands.get(zx("0x31"))[zx("0x27")];let l;const d=x.getChild(0),u=c?i[zx("0x3a")]:i[zx("0x46")],g=s[zx("0x12")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x26")](g)[0][zx("0x22")];if(c){const e=d[zx("0x1d")](a);if(m[zx("0x7")](e))return;l=t[zx("0x2c")].createRange(t[zx("0x2c")][zx("0x21")](e),t[zx("0x2c")][zx("0x4d")](m))}else{const e=d.getChild(a-1);if(!e)return;l=t[zx("0x2c")][zx("0x4a")](t[zx("0x2c")][zx("0x21")](m),t[zx("0x2c")][zx("0x4d")](e))}t[zx("0x2c")][zx("0x36")]((()=>{n.markBlockFormat(l,{commandName:zx("0x31"),commandParams:[{forceValue:c}]},[],zx("0x31"))}))})),t[zx("0xb")][zx("0x14")].on("addMarker:suggestion",r(),{priority:zx("0x13")}),t[zx("0x1a")][zx("0x14")].on(zx("0x43"),((t,e,n)=>{n[zx("0x2e")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x13")}),t.editing.downcastDispatcher.on(zx("0x23"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[zx("0x24")]),i=n.getSuggestion(r);if(!i.data||zx("0x31")!=i[zx("0x1a")][zx("0x3")])return;const x=o.mapper[zx("0x40")](e[zx("0x24")]);if(x)for(const t of x)o.writer.removeClass(zx("0x19")+s,t),o[zx("0x32")][zx("0x4c")](zx("0x1b"),t),o[zx("0x32")].removeAttribute(zx("0x3c"),t),o.mapper[zx("0x1c")](t,e[zx("0x24")])}),{priority:zx("0x13")}),n[zx("0x3b")][zx("0x34")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n[zx("0x3")]){const t=n[zx("0x42")][0].forceValue;return o(Yo(e,zx(t?"0x20":"0x3f")))}if(zx("0x31")==n[zx("0x3")]){const t=n[zx("0x42")][0].forceValue;return o(Yo(e,t?"FORMAT_HEADER_COLUMN":zx("0x2a")))}}function o(t){return{type:"format",content:Yo(e,"*Format:* %0",t)}}}));const i=s[zx("0xd")]();n._suggestionFactory[zx("0x4e")]("formatBlock",zx("0xa"),zx("0x5"),i),n[zx("0x45")][zx("0x4e")](zx("0x0"),zx("0x31"),zx("0x5"),i)}}const Vx=["insertion","suggestion:formatBlock:tablePasteCell","has","getShiftedBy","low","batch","markMultiRangeInsertion","createRangeOn","getItems","model","locale","keys","formatBlock","createRange","entries","oldRange","name","createElement","createRangeIn","activeMarkers","isEqual","from","type","TableClipboard","element","tableCellSuggestion","getContainedElement","last","getRanges","_tablePostFixingSubtypes","first","deletion","clipboardOutput","move","ck-suggestion-marker","suggestionUnloaded","markerName","tablePasteCell","columnInsertionRanges","startsWith","tableCellPadding","ck-suggestion-marker--active","root","getSuggestion","containsRange","getSuggestionCallback","column","table","insertContent","subType","tablePasteRow","rowInsertionIndexes","plugins","_createdBatches","newRange","_replaceTableSlotCell","endRow","registerDescriptionCallback","hasSuggestion","getChild","suggestion-td","high","nextSibling","redo","*Replace table cells*","find","columns","commands","suggestion","filter","join","TableUtils","remove","includes","createPositionBefore","getRowIndexes","isEmpty","_suggestionFactory","removeMarkers","view","getTableIfOnlyTableInContent","previous","content","for","register","insertRows","getSuggestions","change","fromEntries","tablePaste","discard","get","tableCellBorderColor","createTableWalker","Users","some","tableCellBorderWidth","getSelectionAffectedTableCells","length","tableCell","removeRows","add","nodeAfter","rows","editor","_descriptionFactory","previousSibling","getChildren","rootName","showSuggestionHighlights","afterInit","tableCellVerticalAlignment","removeMarker","_splitMarkerName","documentSelection","tablePasteColumn","row","schema","markerToHighlight","getMarkers","_getCoordsForCells","set","position","fill","value","getAllAdjacentSuggestions","markMultiRangeDeletion","reduce","isInContent","push","listenTo","document","markerAttributes","columnInsertionIndexes","getAttributes","getChangedMarkers","return","_isForcedDefaultExecutionBlock","attributes","getRange","paragraph","map","unwrap","elementToElement","differ","dataDowncast","registerPostFixer","tablePasteChainId","TrackChangesEditing","cells","end","insert","setAttribute","conversion","accept","suggestionLoaded","tableCellHorizontalAlignment","registerCustomCallback","findAncestor"];var Kx,qx;Kx=Vx,qx=387,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x1b"),Xx("0x17"),"tableCellBorderStyle",Xx("0x57"),Xx("0x2a"),"tableCellBackgroundColor",Xx("0x82")],Jx=Object[Xx("0x13")]($x[Xx("0x48")]((t=>[t,null])));class Qx extends t.Plugin{static get requires(){return[wx]}[Xx("0x29")](){const t=this[Xx("0x23")];if(!t[Xx("0x8e")][Xx("0x5c")]("TableClipboard"))return;const n=t[Xx("0x8e")][Xx("0x16")](Xx("0x4f")),o=t[Xx("0x8e")][Xx("0x16")](Xx("0x2")),s=t[Xx("0x8e")][Xx("0x16")](wx),r=t[Xx("0x8e")][Xx("0x16")](Xx("0x71"));s[Xx("0x77")][Xx("0x3c")](Xx("0x8c"),"tablePasteColumn"),t[Xx("0x63")][Xx("0x30")][Xx("0xf")](Xx("0x73"),{allowIn:Xx("0x1e"),allowContentOf:Xx("0x1e"),isLimit:!0}),t[Xx("0x54")][Xx("0x4a")]({model:Xx("0x73"),view:Xx("0x96")});let i=null;t[Xx("0x63")].on(Xx("0x8a"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x1d")]-1];l&&l.forceDefaultExecution||n[Xx("0x44")]||this[Xx("0x23")].commands[Xx("0x16")]("trackChanges")[Xx("0x37")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x2d")))return!1;const r=s[Xx("0xb")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x1c")](n[Xx("0x3e")].selection);if(!i[Xx("0x1d")])return!1;const x=i[0].findAncestor(Xx("0x89")),a=o[Xx("0x6")](i),c=o.getColumnIndexes(i),l={startRow:a[Xx("0x78")],endRow:a[Xx("0x75")],startColumn:c[Xx("0x78")],endColumn:c[Xx("0x75")]};return 1==i.length&&(l[Xx("0x92")]+=o.getRows(r)-1,l.endColumn+=o.getColumns(r)-1),Yx(x,l,o)}(a,c,t[Xx("0x63")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x63")][Xx("0x12")]((()=>{t[Xx("0x63")][Xx("0x8a")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n[Xx("0x60")](s,Xx("0x8c"),{tablePasteChainId:o}),r.length&&n[Xx("0x60")](r,Xx("0x2e"),{tablePasteChainId:o}),a[Xx("0x1d")]&&n[Xx("0x60")](a,Xx("0x14"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x1d")]&&n[Xx("0x39")](c,Xx("0x14"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n.markMultiRangeBlockFormat(l[Xx("0x48")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x7f"),{tablePasteChainId:o});if(d){const e=d[Xx("0x32")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Xx("0x61")](o),i=e.find((t=>t[Xx("0x46")]()[Xx("0x6e")](r)));i&&n[Xx("0x3c")]([i.name,s])}n[Xx("0x1d")]&&d[Xx("0x53")]("markerAttributes",Object.fromEntries(n))}i=null})))}),{priority:e.priorities.high+10}),t[Xx("0x8e")][Xx("0x16")](Xx("0x71")).on(Xx("0x91"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n.cell,x=o,a=Zx(r),c=Zx(x);t[Xx("0x43")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r.getChild(0));for(const t of Array[Xx("0x6f")](x.getChildren()))s[Xx("0x52")](t,r,Xx("0x51"));const t=i[Xx("0x8d")][Xx("0x4")](n[Xx("0x2f")]),e=i[Xx("0x40")][Xx("0x4")](n[Xx("0x88")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(d=s[Xx("0x6c")](r));else{const t=s[Xx("0x6b")]("tableCellSuggestion"),e=s[Xx("0x6b")](Xx("0x73"));s.wrap(s.createRangeIn(r),e),s[Xx("0x52")](t,r,0);for(const e of Array[Xx("0x6f")](x[Xx("0x26")]()))s.insert(e,t,Xx("0x51"));l=s[Xx("0x61")](t),d=s.createRangeOn(e)}const u=Array[Xx("0x6f")](x[Xx("0x41")]())[Xx("0x0")]((([t])=>$x[Xx("0x4")](t)));i[Xx("0x50")][Xx("0x3c")]({element:r,attributes:u[Xx("0x1d")]?Object[Xx("0x13")](u):null}),l&&i.insertionRanges[Xx("0x3c")](l),d&&i.deletionRanges[Xx("0x3c")](d)}),{priority:Xx("0x97")}),o.on("insertColumns",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x9c")]||1;i[Xx("0x40")]=new Array(a)[Xx("0x36")](x)[Xx("0x48")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x18")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x80")][Xx("0x3c")](t[Xx("0x63")][Xx("0x61")](e))}),{priority:"low"}),o.on(Xx("0x10"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x22")]||1;i[Xx("0x8d")]=new Array(a)[Xx("0x36")](x)[Xx("0x48")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x18")](s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges.push(t[Xx("0x63")][Xx("0x61")](e))}),{priority:Xx("0x5e")}),n[Xx("0x24")][Xx("0x93")]((e=>{if(e[Xx("0x8b")]&&e.subType[Xx("0x81")](Xx("0x14")))return e[Xx("0xc")]?{}:{type:Xx("0x5a"),content:Yo(t[Xx("0x64")],Xx("0x9a"))}}));const x=()=>!1;for(const t of["tablePaste","tablePasteColumn",Xx("0x8c"),Xx("0x7f")])n[Xx("0x8")].registerCustomCallback(Xx("0x5a"),t,Xx("0x1"),x),n[Xx("0x8")].registerCustomCallback(Xx("0x79"),t,Xx("0x1"),x),n._suggestionFactory[Xx("0x58")](Xx("0x66"),t,Xx("0x1"),x);n[Xx("0x8")][Xx("0x58")](Xx("0x66"),Xx("0x7f"),"discard",x),n[Xx("0x8")][Xx("0x58")](Xx("0x66"),Xx("0x7f"),Xx("0x55"),((e,n,o)=>{const s=e[Xx("0x48")]((t=>t[Xx("0x74")]())).filter((t=>t)),r=new Map(s[Xx("0x48")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x50")])e&&r[Xx("0x34")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[Xx("0x68")](o[Xx("0x3f")])){const o=t.model.markers[Xx("0x16")](e),s=o?o.getRange()[Xx("0x74")]():null;s&&r.set(s,n)}t[Xx("0x63")].change((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x8")][Xx("0x58")](e,Xx("0x14"),o,((s,r,i)=>{t[Xx("0x63")][Xx("0x12")]((t=>{const x=[];for(const t of s){const e=t.start[Xx("0x21")];e.is(Xx("0x72"),Xx("0x73"))&&x[Xx("0x3c")](e)}n[Xx("0x8")][Xx("0x87")](e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e[Xx("0x84")][Xx("0x27")]&&t[Xx("0x49")](e)}))}))};a(Xx("0x5a"),"accept"),a(Xx("0x5a"),Xx("0x15")),a(Xx("0x79"),"accept"),a(Xx("0x79"),"discard"),n[Xx("0x8")][Xx("0x58")](Xx("0x5a"),Xx("0x8c"),Xx("0x15"),(t=>{const e=t[Xx("0x48")]((t=>t[Xx("0x74")]())),n=e[0][Xx("0x59")](Xx("0x89")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Xx("0x1f")](n,{at:r,rows:i-r+1})})),n[Xx("0x8")][Xx("0x58")]("insertion",Xx("0x2e"),Xx("0x15"),(t=>{const e=t[Xx("0x48")]((t=>t.getContainedElement())),n=e[0][Xx("0x59")]("table"),{minColumn:r,maxColumn:i}=s[Xx("0x33")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x8b")]||!e[Xx("0x8b")].startsWith(Xx("0x14")))return;const o=e[Xx("0x45")][Xx("0x4e")],s=n[Xx("0x11")]().filter((t=>t[Xx("0x3b")]&&t.attributes&&t[Xx("0x45")].tablePasteChainId==o));s.length&&e[Xx("0x38")]()[Xx("0x1d")]!=s[Xx("0x1d")]&&s[Xx("0x3a")](((t,e)=>(t.next=e,e[Xx("0xc")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x2c")](t[Xx("0x7e")]),s=[Xx("0x7c"),"ck-suggestion-marker-insertion"],r=n[Xx("0x6d")].includes(t.markerName);return r&&s[Xx("0x3c")](Xx("0x83")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x56"),c,{priority:Xx("0x97")}),n.on(Xx("0x7d"),c,{priority:Xx("0x97")}),t[Xx("0x63")].document[Xx("0x4d")]((()=>{let e=!1;const o=Array[Xx("0x6f")](t[Xx("0x63")].document[Xx("0x4b")][Xx("0x42")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x2c")](s);if(Xx("0x9e")!=o||Xx("0x79")!=i||r[Xx("0x69")])continue;if(!n[Xx("0x94")](x))continue;const a=n[Xx("0x85")](x)[Xx("0x76")](),c=t[Xx("0x8e")].get(Xx("0x19")).me;for(const t of n[Xx("0x11")]())if(t[Xx("0x3b")]&&t.author==c&&"formatBlock"==t[Xx("0x70")]&&Xx("0x7f")==t[Xx("0x8b")]&&t.getRanges().every((t=>a[Xx("0x1a")]((e=>e[Xx("0x86")](t,!0))))))for(const n of t[Xx("0x38")]())n.isInContent&&(n[Xx("0x15")](),e=!0)}return e})),t[Xx("0x63")][Xx("0x3e")][Xx("0x4d")]((e=>{const o=t[Xx("0x9d")].get(Xx("0x99"));if(!o||!o[Xx("0x8f")][Xx("0x5c")](e[Xx("0x5f")]))return!1;let s=!1;const r=t[Xx("0x8e")][Xx("0x16")](Xx("0x19")).me,i=t[Xx("0x63")].document[Xx("0x4b")].getChanges(),x=Array[Xx("0x6f")](t.model.document[Xx("0x4b")][Xx("0x42")]())[Xx("0x0")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x2c")](t);return Xx("0x9e")==o&&Xx("0x14")==s&&i==r.id&&!e[Xx("0x69")]}));for(const t of i){if("insert"!=t[Xx("0x70")]||Xx("0x73")!=t[Xx("0x6a")]||1!=t[Xx("0x1d")])continue;const n=e[Xx("0x67")](t[Xx("0x35")],t[Xx("0x35")][Xx("0x5d")](1));if(!x[Xx("0x9b")]((({data:t})=>t[Xx("0x90")][Xx("0x6e")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x86")](o[Xx("0x90")])){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[Xx("0x63")].document[Xx("0x4d")]((e=>{let o=!1;const s=t.plugins[Xx("0x16")]("Users").me,r=n[Xx("0x11")]()[Xx("0x0")]((t=>t[Xx("0x3b")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x14")==t[Xx("0x8b")])for(const e of t[Xx("0x32")]()){const n=e[Xx("0x46")]().getContainedElement();if(n)if(n.is(Xx("0x72"),"tableCellSuggestion")&&Zx(n)){t[Xx("0x2b")](e[Xx("0x6a")]),i[Xx("0x20")](n),o=!0;const s=n[Xx("0x98")],r=n[Xx("0x25")],a=s&&s.is(Xx("0x72"),"tableCellSuggestion"),c=r&&r.is(Xx("0x72"),Xx("0x73"));a&&!i[Xx("0x5c")](s)&&x[Xx("0x20")](s),c&&!i.has(r)&&x[Xx("0x20")](r)}else n.is(Xx("0x72"),"paragraph")&&n[Xx("0x7")]&&(t[Xx("0x2b")](e[Xx("0x6a")]),o=!0)}else if(Xx("0x7f")==t.subType){if(!t.attributes||!t.attributes[Xx("0x4e")])continue;const e=t[Xx("0x45")][Xx("0x3f")];if(e&&Object[Xx("0x65")](e).length)continue;const n=t[Xx("0x45")][Xx("0x4e")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x8b")]&&e[Xx("0x8b")][Xx("0x81")](Xx("0x14"))){if(!e[Xx("0x45")][Xx("0x4e")]){i=!1;break}if(e.id!=t.id&&e.attributes[Xx("0x4e")]==n){s=!1;break}}i&&s&&(t[Xx("0x9")](),o=!0)}for(const t of i)e[Xx("0x3")](t);for(const t of x)e[Xx("0x49")](t);return o})),t[Xx("0x54")].for("editingDowncast")[Xx("0x31")]({model:Xx("0x5b"),view:(t,e)=>l(t),converterPriority:Xx("0x97")}),t.conversion[Xx("0xe")](Xx("0x4c")).markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e.options[Xx("0x28")]?l(t,!1):null,converterPriority:Xx("0x97")});const d=t.editing[Xx("0xa")];this[Xx("0x3d")](d[Xx("0x3e")],Xx("0x7a"),((t,e)=>{const n=[];for(const t of d.createRangeIn(e[Xx("0xd")])[Xx("0x62")]())t.is(Xx("0x72"),"suggestion-td")&&n[Xx("0x3c")](t);d[Xx("0x12")]((t=>{for(const e of n)t[Xx("0x7b")](t[Xx("0x6c")](e),t[Xx("0x5")](e)),t[Xx("0x3")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x95")](0);return e.is(Xx("0x72"),Xx("0x47"))&&e[Xx("0x7")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x18")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["getSuggestionCallback","bind","accept","document","*Format:* resize table","formatBlock","getContainedElement","formatGroupId","markBlockFormat","afterInit","getAttribute","author","Users","handleResizeTableWidthCommand","get","plugins","table","change","has","getColumnGroupElement","selection","subType","_descriptionFactory","editor","commandParams","resizeTable","TrackChangesEditing","model","handleSuggestionDescription","discard","TableColumnResizeEditing","tableWidth","_suggestionFactory","getSuggestions","registerCustomCallback","locale","getSelectedElement","format"];var ea,na;ea=ta,na=148,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0xd")](){if(!this[oa("0x1b")][oa("0x13")][oa("0x16")](oa("0x22")))return;const t=this[oa("0x1b")][oa("0x13")].get(oa("0x1e"));t.enableCommand("resizeTableWidth",this[oa("0x11")][oa("0x5")](this)),t.enableCommand("resizeColumnWidths",this[oa("0x11")][oa("0x5")](this)),t[oa("0x24")][oa("0x0")](oa("0x9"),oa("0x1d"),oa("0x6"),t[oa("0x24")][oa("0x4")]("formatBlock",null,oa("0x21"))),t._suggestionFactory.registerCustomCallback(oa("0x9"),"resizeTable",oa("0x21"),t[oa("0x24")][oa("0x4")]("formatBlock",null,oa("0x6"))),t[oa("0x1a")].registerDescriptionCallback(this[oa("0x20")][oa("0x5")](this))}[oa("0x11")](t,e){const n=this[oa("0x1b")][oa("0x13")][oa("0x12")]("TrackChangesEditing"),o=this[oa("0x1b")][oa("0x13")].get(oa("0x22")),s=e[oa("0x14")]||this.editor[oa("0x1f")][oa("0x7")][oa("0x18")][oa("0x2")]();this.editor[oa("0x1f")][oa("0x15")]((()=>{const r=o[oa("0x17")](s);let i=r?o.getTableColumnsWidths(r):null,x=s[oa("0xe")](oa("0x23"))||null;const a=e[oa("0x23")]||x,c=e.columnWidths||i,l=this[oa("0x1b")].plugins[oa("0x12")](oa("0x10")).me;for(const t of n[oa("0x25")]()){const e=t[oa("0xa")]();if(oa("0x1d")===t[oa("0x19")]&&e===s){t[oa("0xf")]!==l&&t[oa("0x21")]();const e=t.data[oa("0x1c")];x=e[0].tableWidth,i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0xc")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x1d")},[],"resizeTable")}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0xb")]){const t=oa("0x8");return{type:oa("0x3"),content:Yo(this[oa("0x1b")][oa("0x1")],t)}}}}const ra=["Template","enableCommand","insertTemplate","has","editor","plugins","get"];var ia,xa;ia=ra,xa=403,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){const t=this[aa("0x0")];t[aa("0x1")][aa("0x6")](aa("0x3"))&&t[aa("0x1")][aa("0x2")]("TrackChangesEditing")[aa("0x4")](aa("0x5"))}}const la=["registerElementLabel","insertTableOfContents","TrackChangesEditing","get","editor","plugins","commands","ELEMENT_TABLE_OF_CONTENTS","afterInit","tableOfContents","locale"];var da,ua;da=la,ua=194,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x1")](){const t=this[ga("0x8")];if(!t[ga("0xa")].get("insertTableOfContents"))return;t.plugins[ga("0x7")](ga("0x6")).enableCommand(ga("0x5"));const e=t[ga("0x9")][ga("0x7")](ga("0x6")),n=t[ga("0x3")];e._descriptionFactory[ga("0x4")](ga("0x2"),(t=>Yo(n,ga("0x0"),t)))}}const fa=["locale","_descriptionFactory","isTouching","createRange","getNearestSelectionRange","editor","model","differ","schema","end","element","updateMarker","Title","suggestion","get","from","plugins","document","has","title-content","newRange","afterInit","start","nodeBefore","removeMarker","TrackChangesEditing"];var ha,pa;ha=fa,pa=454,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x9")](){const t=this[ba("0x13")];if(!t[ba("0x4")][ba("0x6")](ba("0x0")))return;const e=t[ba("0x4")][ba("0x2")](ba("0xd"));e[ba("0xf")].registerElementLabel("title-content",(()=>Yo(t[ba("0xe")],"ELEMENT_TITLE"))),t[ba("0x14")][ba("0x5")].registerPostFixer((n=>{let o=!1;const s=Array[ba("0x3")](t[ba("0x14")][ba("0x5")][ba("0x15")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x1")!==s||!i.newRange)continue;const x=i[ba("0x8")],a=x.end[ba("0xb")];if(!a||!a.is(ba("0x18"),ba("0x7")))continue;if(!x[ba("0xa")][ba("0x10")](x[ba("0x17")]))continue;const c=t[ba("0x14")][ba("0x16")][ba("0x12")](x[ba("0x17")],"forward");if(c&&c.isCollapsed){const t=n[ba("0x11")](x[ba("0xa")],c[ba("0xa")]);t.isEqual(x)||(n[ba("0x19")](r,{range:t}),o=!0)}o||(n[ba("0xc")](r),o=!0)}return o}))}}const _a=["has","TrackChangesEditing","redo","undo","plugins","editor","get","enableCommand"];var Ta,Ca;Ta=_a,Ca=318,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[ya("0x7")],e=t[ya("0x6")][ya("0x0")](ya("0x3"));t.plugins[ya("0x2")]("UndoEditing")&&(e[ya("0x1")](ya("0x5")),e[ya("0x1")](ya("0x4")))}}const Aa=["requires","TrackChangesEditing","TableCaptionEditing","plugins","enableCommand","get","toggleTableCaption"];var va,Ra;va=Aa,Ra=372,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x6")](){return[wx]}afterInit(){const t=this.editor;t[Sa("0x2")].has(Sa("0x1"))&&t.plugins[Sa("0x4")](Sa("0x0"))[Sa("0x3")](Sa("0x5"))}}const La=["reversed","numbered","toUpperCase","_LIST_","listReversed","model","DocumentListPropertiesEditing","_getSuggestionBlocksForListStyle","getAttribute","_getTranslationKeyForListStyle","listStart","handleListStartCommand","markMultiRangeBlockFormat","replace","editor","change","handleListReversedCommand","document","commandParams","push","_getSuggestionBlocks","get","DocumentListUtils","ELEMENT_","enableCommand","afterInit","getSelectedBlocks","*Format:* set order to reversed","has","getListTypeFromListStyleType","handleDescriptions","format","listStyle","DocumentListPropertiesUtils","isListItemBlock","isFirstBlockOfListItem","from","bind","*Format:* set order to regular","*Format:* set start index to %0","startIndex","length","TrackChangesEditing","listType","expandListBlocksToCompleteList","plugins","*Change to:* %0","handleListStyleCommand","config","locale","styles"];var Na,Ma;Na=La,Ma=426,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x7")](){if(!this[wa("0x2f")][wa("0x1b")][wa("0xa")](wa("0x27")))return;const t=this[wa("0x2f")][wa("0x1e")].get("list.properties"),e=this[wa("0x2f")][wa("0x1b")][wa("0x3")](wa("0x18"));t[wa("0x20")]&&e[wa("0x6")](wa("0xe"),this[wa("0x1d")][wa("0x13")](this)),t[wa("0x21")]&&e[wa("0x6")](wa("0x25"),this.handleListReversedCommand.bind(this)),t[wa("0x16")]&&e[wa("0x6")](wa("0x2b"),this[wa("0x2c")][wa("0x13")](this)),e._descriptionFactory.registerDescriptionCallback(this.handleDescriptions.bind(this))}[wa("0x1d")](t,e={}){const n=this[wa("0x2f")].plugins[wa("0x3")]("TrackChangesEditing"),o=this[wa("0x28")]();this[wa("0x2f")][wa("0x26")][wa("0x30")]((()=>{n[wa("0x2d")](o,{commandName:wa("0xe"),commandParams:[{type:e.type}],formatGroupId:wa("0xe")})}))}[wa("0x31")](t,e={}){const n=this.editor[wa("0x1b")][wa("0x3")](wa("0x18")),o=this.editor[wa("0x1b")][wa("0x3")](wa("0x4")),s=this._getSuggestionBlocks((t=>o[wa("0x10")](t)&&wa("0x22")===t[wa("0x29")]("listType")));null!==s&&this[wa("0x2f")][wa("0x26")][wa("0x30")]((()=>{n[wa("0x2d")](s,{commandName:wa("0x25"),commandParams:[{reversed:e.reversed}],formatGroupId:wa("0x25")})}))}[wa("0x2c")](t,e={}){const n=this[wa("0x2f")][wa("0x1b")][wa("0x3")](wa("0x18")),o=this.editor[wa("0x1b")][wa("0x3")](wa("0x4")),s=this._getSuggestionBlocks((t=>o[wa("0x10")](t)&&wa("0x22")===t[wa("0x29")](wa("0x19"))));null!==s&&this.editor.model.change((()=>{n[wa("0x2d")](s,{commandName:wa("0x2b"),commandParams:[{startIndex:e.startIndex}],formatGroupId:wa("0x2b")})}))}[wa("0xc")](t){const e=this[wa("0x2f")][wa("0x1f")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wa("0xe"):o=wa("0x1c"),s={type:wa("0xd"),content:Yo(e,o,Yo(e,this[wa("0x2a")](n[wa("0x0")][0].type)))};break;case wa("0x25"):o=n[wa("0x0")][0][wa("0x21")]?wa("0x9"):wa("0x14"),s={type:"format",content:Yo(e,o)};break;case wa("0x2b"):o=wa("0x15"),s={type:wa("0xd"),content:Yo(e,o,n.commandParams[0][wa("0x16")])}}return s}[wa("0x28")](){const t=this[wa("0x2f")].plugins[wa("0x3")]("DocumentListUtils");let e=Array.from(this[wa("0x2f")][wa("0x26")][wa("0x32")].selection[wa("0x8")]());return e[wa("0x1")](...t[wa("0x1a")](e)),e=[...new Set(e)],e}[wa("0x2")](t){const e=this[wa("0x2f")].plugins.get(wa("0x4"));let n=Array[wa("0x12")](this.editor[wa("0x26")][wa("0x32")].selection.getSelectedBlocks()).filter(t);if(!n[wa("0x17")])return null;n=e[wa("0x1a")](n);const o=[];for(const t of n)e[wa("0x11")](t)&&o[wa("0x1")](t);return o}_getTranslationKeyForListStyle(t){return wa("0x5")+this[wa("0x2f")][wa("0x1b")][wa("0x3")](wa("0xf"))[wa("0xb")](t)[wa("0x23")]()+wa("0x24")+t.toUpperCase()[wa("0x2e")](/-/g,"_")}}const Fa=["join","change","registerDescriptionCallback","locale","plugins","TrackChangesEditing","tableCellWidth","getAttribute","selection","editor","*Format:* change table cell properties","enableCommand","getFirstPosition","tableBorderColor","get","table","tableCellBorderStyle","accept","tableCellVerticalAlignment","enqueueChange","formatBlock","_descriptionFactory","data","subType","_suggestionFactory","discard","tableCellBorderColor","_getSuggestion","tableAlignment","pluginName","TrackChangesTableProperties","TablePropertiesEditing","model","getSuggestionCallback","tableBorderWidth","batch","findAncestor","tableProperties","setAttribute","tableWidth","registerCustomCallback","format","tableCellProperties","handleSuggestionDescription","has","start","_handlePropertyChange","handleDiscardAction","tableCellBorderWidth","tableCellHeight","getSelectionAffectedTableCells","TableCellPropertiesEditing","tableCellPadding"];var Da,Pa;Da=Fa,Pa=387,function(t){for(;--t;)Da.push(Da.shift())}(++Pa);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x15")]=[Ba("0x32"),"tableBorderStyle",Ba("0x12"),Ba("0xc"),Ba("0x17"),"tableHeight","tableBackgroundColor"],this.tableCellProperties=[Ba("0xa"),Ba("0x0"),Ba("0x20"),Ba("0x24"),Ba("0x2b"),Ba("0x21"),"tableCellBackgroundColor","tableCellHorizontalAlignment",Ba("0x2")]}static get[Ba("0xd")](){return Ba("0xe")}afterInit(){const t=this[Ba("0x2e")][Ba("0x29")].get(Ba("0x2a"));if(this[Ba("0x2e")].plugins[Ba("0x1c")](Ba("0xf"))){for(const e of this[Ba("0x15")])t[Ba("0x30")](e,((t,n)=>{const o=this[Ba("0x2e")][Ba("0x10")].document[Ba("0x2d")][Ba("0x31")]()[Ba("0x14")](Ba("0x34"));this[Ba("0x1e")](e,[o],this[Ba("0x15")],Ba("0x15"),t,n)}));t[Ba("0x8")][Ba("0x18")](Ba("0x4"),Ba("0x15"),Ba("0x1"),t[Ba("0x8")][Ba("0x11")]("formatBlock",null,Ba("0x9"))),t[Ba("0x8")][Ba("0x18")](Ba("0x4"),Ba("0x15"),Ba("0x9"),((t,e)=>this[Ba("0x1f")](this[Ba("0x15")],t,e))),t[Ba("0x8")][Ba("0x18")]("formatBlock",Ba("0x15"),Ba("0x25"),(()=>!1))}if(this.editor[Ba("0x29")][Ba("0x1c")](Ba("0x23"))){for(const e of this[Ba("0x1a")])t[Ba("0x30")](e,((t,n)=>{const o=this.editor[Ba("0x29")][Ba("0x33")]("TableUtils")[Ba("0x22")](this[Ba("0x2e")][Ba("0x10")].document.selection);this[Ba("0x1e")](e,o,this[Ba("0x1a")],Ba("0x1a"),t,n)}));t[Ba("0x8")].registerCustomCallback(Ba("0x4"),Ba("0x1a"),Ba("0x1"),t[Ba("0x8")][Ba("0x11")](Ba("0x4"),null,Ba("0x9"))),t[Ba("0x8")][Ba("0x18")](Ba("0x4"),"tableCellProperties",Ba("0x9"),((t,e)=>this[Ba("0x1f")](this[Ba("0x1a")],t,e))),t[Ba("0x8")][Ba("0x18")]("formatBlock",Ba("0x1a"),Ba("0x25"),(()=>!1))}t[Ba("0x5")][Ba("0x27")]((t=>this[Ba("0x1b")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this[Ba("0x2e")][Ba("0x29")].get("TrackChangesEditing");this.editor[Ba("0x10")][Ba("0x3")](r[Ba("0x13")],(()=>{for(const t of e)if(this[Ba("0xb")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x2c")](o);void 0!==n&&(e[o]=n)}s(r),i.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[Ba("0x1f")](t,e,n){const o=e[0][Ba("0x1d")].nodeAfter,s=n.commandParams[0];this[Ba("0x2e")][Ba("0x10")][Ba("0x26")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x16")](n,s[n],o):e.removeAttribute(n,o)}))}[Ba("0x1b")](t){if(t[Ba("0x6")])switch(t.subType){case Ba("0x15"):return{type:Ba("0x19"),content:Yo(this.editor[Ba("0x28")],"*Format:* change table properties")};case Ba("0x1a"):return{type:Ba("0x19"),content:Yo(this[Ba("0x2e")].locale,Ba("0x2f"))}}}[Ba("0xb")](t,e){const n=this.editor[Ba("0x29")][Ba("0x33")]("TrackChangesEditing");for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o.getContainedElement();if(o[Ba("0x7")]===e&&n===t)return o}return null}}const Ua=["track-changes-user-not-found","formatInline:discard","_mergeNestedSuggestions","isObject","PendingActions","_getAuthorFromId","_updateSuggestionData","_splitMarkerName","createElement","$graveyard","catch","isAfter","document","mapper","addMarker","formatInline","position","addMarker:suggestion","after","normal","_registerDefaultCallbacks","suggestion","group","insertion:accept","suggestionLoaded","_suggestionFactory","_handleNewSuggestionMarker","resolve","_getSuggestionData","deletion:chain","getFirstRange","getCustomProperty","previous","root","isDocumentOperation","_trackFormatChanges","addSuggestion","dataReady","hasCommentThread","discardAllSuggestions","consume","formatBlock","ck-suggestion-marker-","markMultiRangeInsertion","isRemovable","trackChanges","filter","formatInline:chain","formatBlock:accept","getUser","for","size","detach","_customCallbacks","updateMarker","getSuggestionCallback","listenTo","setSelection","substr","toJSON","end","containsRangeInObject","trackChanges.mergeNestedSuggestions","createPositionAt","_suggestions","always","suggestionChanged","stop","commandName","fire","accepted","_saved","model","collaboration.channelId","remove","@external","change:data","widget","addHighlight","commands","options","_addThreadToSuggestion","_getExternalAuthor","containsRange","removed","activeMarkers","_rangeIsInLocalUserInsertion","join","element","registerCustomCallback","isUndo","plugins","isInsideObject","map","getRanges","insertContent","every","ready","isOwn","insertion:","_setSuggestionRange","addComment","$marker","get","nodeBefore","_checkSuggestionCorrectness","formatInline:join","setTo","editor","createSelection","removeMarkers","getRange","track-changes-suggestion-data-mismatch","registerPostFixer","deletion:discard","delete","deletion:accept","getIntersection","formatGroupId","containsPosition","item","formatBlock:join","assign","fromCharCode","markMultiRangeBlockFormat","rejected","head","_isForcedDefaultExecutionBlock","_suggestionState","markInsertion","originalSuggestionId","requires","pluginName","getSuggestions","author","return","insertion:join","isEqual","value","ck-suggestion-marker--active","high","name","addMarkerName","addCommentThread","dataDowncast","getSuggestion","createPositionAfter","define","skipNestingCheck","enableCommand","howMany","containsItem","_joinSuggestions","hasSuggestion","isLocal","markInlineFormat","backward","isBlock","deletion:join","newRange","splice","getFirstMarker","creator","moveTargetPosition","init","createRange","isNextTo","isAtEnd","setAttribute","removeClass","isExternal","showSuggestionHighlights","_enabledCommands","_joinWithAdjacentSuggestions","writer","never","length","_defaultCallbacks","stopListening","updateSuggestion","getItems","formatInline:accept","_editor","isBefore","attributes","change:_saved","markerReady","elementToElement","multipleBlocks","isAtStart","forceDefaultExecution","CommentsRepository","addRange","notReady","elementStart","multi","removeMarker:suggestion:formatBlock","discard","rootName","_breakSuggestionMarker","getShiftedBy","createdAt","ck-suggestion-marker-formatBlock","_cutOutSuggestionMarker","default","_onDiscard","external:","discardSelectedSuggestions","parent","from","accept","isCollapsed","track-changes-suggestion-not-found","consumable","sort","move","lowest","low","_adapter","toViewElement","data","_createSuggestion","suggestion-type","_refreshSuggestionsChain","enableReadOnlyMode","_model","open","commentThread","formatBlock:discard","adapter","insertion","push","update:suggestion","insertion:discard","buildSuggestion","acceptSuggestion","conversion","change","markerToHighlight","editingDowncast","getChanges","track-changes-command-not-found","differ","schema","getWalker","execute","getMarkers","getMultiRangeId","getChangedMarkers","authoredAt","dataToMarker","then","track-changes-adapter-missing-getsuggestion","isInContent","removeMarker","Users","TrackChangesEditing","addClass","getLastMatchingPosition","locale","getDifference","track-changes-adapter-already-set","subType","trackChanges.trackFormatChanges","selection","chain","_setSuggestionData","removeComment","isLimit","rethrowUnexpectedError","change:activeMarkers","trackChangesCommand","isMultiRange","start","some","type","deleteContent","bindElementToMarker","addSuggestionData","data-suggestion","reconvertMarker","_findSuggestions","_addSuggestionMarker","fetchCommentThread","isIntersectingWithRange","authorName","getAttribute","insertion:chain","_descriptionFactory","config","next","suggestionUnloaded","nodeAfter","add","getNearestSelectionRange","split","addMarker:suggestion:formatBlock","isSelectable","_commentsRepository","batch","hasComments","markerName","range","markers","oldRange","includes","has","_removeSuggestion","discardSuggestion","set","acceptAllSuggestions","createPositionBefore","_isDataLoaded","values","markerNameToElements","marker-count","ck-suggestion-marker","formatBlock:","enqueueChange","addUser","targetPosition","deletion"];var Ga,Ha;Ga=Ua,Ha=136,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0x13d")](){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Dr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x13e")](){return za("0x78")}constructor(t){function e(t){return t[za("0x117")]((t=>String[za("0x135")](t)))[za("0x111")]("")}super(t),this[za("0xad")](za("0x10f"),[]),this.on(za("0x86"),((e,n,o,s)=>{this._model[za("0x65")]((()=>{for(const e of[...s,...o])this._model.markers[za("0xaa")](e)&&t.editing[za("0x90")](e)}))})),this[za("0x98")]=new ss(this[za("0x126")][za("0x102")].schema,this[za("0x126")].locale),this[za("0x52")]=null,this[za("0xd3")]=new Va(this[za("0x126")]),this[za("0xfa")]=new Map,this._commentsRepository=t[za("0x115")][za("0x121")](za("0x37")),this[za("0x24")]=new Set,this._model=this[za("0x126")][za("0x102")],this[za("0x13a")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t.config[za("0xb")](za("0x7f"),za("0x44")),this[za("0xdd")]=t[za("0x99")][za("0x121")](za("0x7f")),t.config.define(za("0xf8"),!0),this._mergeNestedSuggestions=t[za("0x99")][za("0x121")](za("0xf8")),this[za("0x87")]=new u(t,this[za("0x24")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,56,49,52])}[za("0x1c")](){const t=this[za("0x126")];t[za("0x64")][za("0xec")](za("0x67"))[za("0x66")]({model:za("0xcf"),view:t=>{const{id:e,type:n}=this[za("0xc1")](t[za("0xa5")]),o=[za("0xb4"),za("0xe4")+n];let s=3e3;return this[za("0x10f")][za("0xa9")](t.markerName)&&(o[za("0x5f")](za("0x3")),s=3010),za("0xb9")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x64")].for(za("0x8"))[za("0x9d")]((e=>{e.on(za("0xcb"),((e,n,o)=>{if(!o[za("0x10a")][za("0x23")])return;const s=n[za("0x132")];if(!s)return;const r=o[za("0xc7")][za("0x53")](s);t.model[za("0x6b")][za("0xbd")](s)&&r&&!r[za("0xd9")](za("0x107"))&&r.is("containerElement")&&(0,x.toWidget)(r,o[za("0x26")])}),{priority:za("0x4")})})),t[za("0x64")][za("0xec")](za("0x8"))[za("0x66")]({model:za("0xcf"),view:(t,e)=>{if(!e.options[za("0x23")])return null;const{type:n}=this[za("0xc1")](t[za("0xa5")]);return{classes:[za("0xb4"),za("0xe4")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x132")])return;if(o[za("0x132")].is(za("0x80")))return void s[za("0x4d")][za("0xe2")](o[za("0x132")],n[za("0x5")]);const r=s[za("0xc7")][za("0x53")](o[za("0x132")]);if(!o[za("0x132")].is(za("0x112"))||!t.model[za("0x6b")][za("0x15")](o.item)||r[za("0xd9")](za("0x108")))return;const{id:i}=this[za("0xc1")](o[za("0xa5")]);s.writer[za("0x79")](["ck-suggestion-marker",za("0x42")],r),s[za("0x26")][za("0x20")](za("0x8f"),i,r),s[za("0xc7")][za("0x8d")](r,o[za("0xa5")]),e&&(this.activeMarkers[za("0xa9")](o[za("0xa5")])?s[za("0x26")][za("0x79")]("ck-suggestion-marker--active",r):s.writer[za("0x21")](za("0x3"),r));for(const e of t[za("0x102")].createRangeIn(o[za("0x132")])[za("0x2c")]())s[za("0x4d")].consume(e,n[za("0x5")]);s[za("0x4d")].consume(o[za("0x132")],n.name)};t.conversion.for(za("0x8"))[za("0x9d")]((t=>{t.on(za("0xa0"),((t,e,o)=>{o[za("0x10a")][za("0x23")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t.conversion[za("0xec")]("dataDowncast").markerToData({model:za("0xcf"),view:(t,e)=>e.options[za("0x23")]?null:{group:za("0xcf"),name:t[za("0xf4")](11)}}),t[za("0x64")].for("upcast")[za("0x33")]({view:{name:za("0xcf"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[za("0x96")](za("0x56"))+":"+t[za("0x96")]("id");return t.getAttribute(za("0xb3"))&&(n+=":"+t[za("0x96")](za("0xb3"))),e[za("0xc2")](za("0x120"),{"data-name":n})}}),t[za("0x64")][za("0xec")]("upcast")[za("0x72")]({view:za("0xcf")}),t.conversion.for(za("0x67"))[za("0x9d")]((t=>{t.on(za("0xa0"),n(),{priority:za("0x4")})})),t[za("0x64")][za("0xec")]("editingDowncast")[za("0x9d")]((t=>{t.on(za("0x3c"),((t,e,n)=>{const o=n.mapper[za("0xb2")](e[za("0xa5")]);if(o)for(const t of o)t.getCustomProperty(za("0x108"))||(n[za("0x26")][za("0x21")]([za("0xb4"),"ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n[za("0x26")].removeAttribute(za("0x8f"),t),n[za("0xc7")].unbindElementFromMarkerName(t,e.markerName))}),{priority:za("0x4")})})),t.model.document.registerPostFixer((e=>{let n=!1;const o=Array[za("0x49")](t[za("0x102")][za("0xc6")][za("0x6a")][za("0x70")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0xc1")](x);if(za("0xcf")!==o)continue;const d=this[za("0xfa")].get(l);if(null!=a[za("0x17")])if(za("0xc9")==c&&(n=n||Xa(a[za("0x17")],x,e,t[za("0x102")][za("0x6b")])),a.newRange[za("0x4b")]||za("0xc3")==a[za("0x17")][za("0xdb")][za("0x3e")]||za("0xe3")==c&&!Ja(a[za("0x17")])||za("0xb9")==c&&(qa(i=a[za("0x17")])||(r=i)[za("0x89")][za("0x48")]==r[za("0xf6")][za("0x122")]&&r[za("0x89")][za("0x1f")]))e[za("0x76")](x),n=!0;else{if(!d||!d[za("0x75")])continue;s[za("0x9d")](d)}}var r,i;return s.size>0&&(n=!!this[za("0x25")](s)||n),n})),t[za("0x102")][za("0xc6")][za("0x12b")]((e=>{let n=!1;for(const o of t[za("0x102")].document[za("0x6a")][za("0x68")]()){if("insert"!=o[za("0x8b")])continue;const s=o[za("0xca")][za("0x40")](o[za("0x28")]);if(s[za("0x1f")])for(const r of this[za("0xfa")].values()){if(r[za("0x88")]||!r[za("0x75")])continue;if(za("0xe3")!=r[za("0x8b")])continue;const i=r.getFirstRange();if(i[za("0x89")][za("0x48")]!=i[za("0xf6")][za("0x48")]&&i[za("0xf6")][za("0x1")](o.position)){const o=t[za("0x102")][za("0x1d")](i[za("0x89")],s);e[za("0xf0")](r[za("0x19")](),{range:o}),n=!0}}}return n})),t[za("0x102")][za("0xa7")].on(za("0x60"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[za("0x5")]),n=this[za("0xfa")][za("0x121")](t);n&&n[za("0x6")](e[za("0x5")])}})),t[za("0x102")].document.on(za("0x106"),(()=>{const e=Array[za("0x49")](t[za("0x102")][za("0xc6")].differ[za("0x70")]())[za("0xe8")]((t=>za("0xcf")===this[za("0xc1")](t[za("0x5")])[za("0xd0")]));if(0===e.length)return;e.sort(((t,e)=>{const n=t.data[za("0xa8")],o=e.data[za("0xa8")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x89")][za("0x2f")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xc1")](t);if(null===s[za("0xa8")]){const e=this[za("0xd4")](t);o[za("0x9d")](e)}else{const t=this[za("0xfa")][za("0x121")](e);null!==s.newRange||t[za("0x75")]?(n[za("0x9d")](t[za("0x138")]),o[za("0x9d")](t)):this[za("0xab")](t)}}o.size>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0xff")](za("0xfc"),t)})),t.model.on("applyOperation",((e,n)=>{const o=n[0];if(!this[za("0xfa")][za("0xed")])return;if(!o[za("0xdc")])return;if(o[za("0xa3")][za("0x114")]||!o.batch[za("0x12")])return;let s,r;switch(o.type){case"insert":s=t[za("0x102")].createPositionAt(o[za("0xca")]),r=s[za("0x40")](o.howMany);break;case za("0x9f"):s=t[za("0x102")][za("0xf9")](o.splitPosition),r=t[za("0x102")][za("0xf9")](o[za("0x1b")]);break;case za("0x4f"):s=t[za("0x102")][za("0xf9")](o[za("0xb8")]),r=s[za("0x40")](o[za("0xe")]);break;default:return}const i=t.model[za("0x1d")](s,r);t[za("0x102")].change((()=>{for(const{suggestion:t,meta:e}of this[za("0x91")](i)){if(t[za("0x88")])continue;if("formatInline"==t.type)continue;const n=t.data&&t[za("0x54")].multipleBlocks;(za("0xe3")!=t.type||"split"==o[za("0x8b")]&&!n)&&(e[za("0xf7")]||"insertion"==t[za("0x8b")]&&e.isOwn||t[za("0xd8")]()[za("0x10d")](i)&&this[za("0x3f")](t,s,r))}}))}),{priority:za("0x50")}),t[za("0x102")].on(za("0x8c"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x36")])return;if(this[za("0x139")])return;if(!this[za("0x87")].value)return;if(o[za("0x4b")])return;const r=t.model.schema,{start:i,end:x}=o[za("0xd8")](),a=i[za("0x9c")]&&r[za("0x84")](i[za("0x9c")])?null:r[za("0x9e")](i,"forward"),c=x[za("0x122")]&&r.isLimit(x[za("0x122")])?null:r[za("0x9e")](x,za("0x14")),l=t[za("0x102")][za("0x1d")](a?a[za("0x89")]:i,c?c.end:x);t[za("0x102")][za("0x65")]((e=>{this.markDeletion(l);const n=t.model[za("0x6b")][za("0x9e")](l.start);o.is("documentSelection")?e[za("0xf3")](n):o[za("0x125")](n)})),e[za("0xfd")]()}),{priority:e.priorities[za("0xcd")]+10}),t[za("0x102")].on(za("0x119"),((e,n)=>{const o=n[n[za("0x28")]-1];o&&o[za("0x36")]||this[za("0x139")]||this[za("0x87")][za("0x2")]&&(t[za("0x102")][za("0x65")]((()=>{let o=t[za("0x102")][za("0x119")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x141")]=o.clone();const s=o.end[za("0x122")],r=t[za("0x102")][za("0x6b")];s&&r[za("0x15")](s)&&!r[za("0xbd")](s)&&(o=t[za("0x102")][za("0x1d")](o[za("0x89")],t[za("0x102")][za("0xf9")](s,za("0xf6")))),this[za("0x13b")](o)})),e[za("0xfd")]())}),{priority:za("0x4")}),this.editor.commands[za("0x9d")](za("0xe7"),this[za("0x87")]),this[za("0xd")](za("0xe7"));const o=new p(t,this[za("0xfa")]);t[za("0x109")][za("0x9d")](za("0x63"),o),this[za("0xd")](za("0x63"));const s=new C(t,this[za("0xfa")]);t[za("0x109")][za("0x9d")](za("0xac"),s),this[za("0xd")](za("0xac")),t[za("0x109")][za("0x9d")](za("0xae"),new F(t,o,this[za("0xfa")])),this.enableCommand(za("0xae")),t[za("0x109")][za("0x9d")]("discardAllSuggestions",new F(t,s,this._suggestions)),this[za("0xd")](za("0xe1")),t.commands[za("0x9d")]("acceptSelectedSuggestions",new U(t,o,this[za("0xfa")])),this.enableCommand("acceptSelectedSuggestions"),t[za("0x109")][za("0x9d")](za("0x47"),new U(t,s,this._suggestions)),this[za("0xd")](za("0x47"));const r=t.plugins[za("0x121")](za("0x37"));this.listenTo(r,za("0x11f"),((t,{threadId:e})=>{const n=this[za("0xfa")][za("0x121")](e);n&&n[za("0x5b")]&&1===n[za("0x5b")][za("0x28")]&&this[za("0xc0")](e,{hasComments:!0})}),{priority:za("0x51")}),this[za("0xf2")](r,za("0x83"),((t,{threadId:e})=>{const n=this[za("0xfa")][za("0x121")](e);n&&n[za("0x5b")]&&!n[za("0x5b")][za("0x28")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:za("0x51")})}set[za("0x5d")](t){if(this[za("0x52")])throw new e.CKEditorError(za("0x7d"),this);this[za("0x52")]=t}get[za("0x5d")](){return this[za("0x52")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[za("0xb1")]())t&&!e[za("0x75")]||n[za("0x5f")](e);return e?n[za("0x117")]((t=>t[za("0xf5")]())):n}getSuggestion(t){const n=this[za("0xfa")].get(t);if(!n)throw new e.CKEditorError(za("0x4c"),this);return n}[za("0x11")](t){return this[za("0xfa")][za("0xaa")](t)}[za("0x8e")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x8b")][za("0x9f")](":"),i=this[za("0xfa")].get(n)||this[za("0x55")](s,r,n,e,o);if(this[za("0x10b")](i),this[za("0x123")](i,s,r||null,e),i[za("0x41")]=t.createdAt,i[za("0xb0")]=!0,o&&o[za("0x105")]){const t=o[za("0x105")],e=this[za("0x10c")](t[za("0x95")]);i[za("0x71")]=t.createdAt,i[za("0x140")]=e,i[za("0x22")]=!0}else i[za("0x71")]=t.createdAt;switch(t[za("0x54")]&&(i.data=t[za("0x54")]),t[za("0x30")]&&(i[za("0x30")]=t[za("0x30")]),this[za("0x52")]&&this[za("0x52")][za("0xde")]||(i._saved=!0),this[za("0x13a")][za("0x121")](i)){case za("0x39"):this[za("0x13a")][za("0xad")](i,za("0xdf"));break;case za("0x32"):i[za("0x75")]?(this[za("0x57")](new Set([i])),this[za("0x25")](new Set([i])),this[za("0x13a")][za("0xad")](i,"ready"),this[za("0xff")](za("0xd2"),i)):this._suggestionState.set(i,za("0x10e"))}return i}acceptSuggestion(t){this[za("0x36")]((()=>{this[za("0x126")][za("0x102")][za("0x65")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[za("0x4a")]()}))}))}[za("0xac")](t){this[za("0x36")]((()=>{this.editor.model[za("0x65")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[za("0x3d")]()}))}))}[za("0xd")](t,n){const o=this.editor[za("0x109")][za("0x121")](t);if(!o)throw new e.CKEditorError(za("0x69"),this,{commandName:t});this[za("0x24")].add(o),n&&o.on(za("0x6d"),((t,e)=>{this[za("0x87")][za("0x2")]&&(this[za("0x139")]||e.length>0&&e[e[za("0x28")]-1]&&e[e.length-1].forceDefaultExecution||(n(((...t)=>o[za("0x6d")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:"high"})}[za("0x36")](t){let n,o;const s=this[za("0x139")];this[za("0x139")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x139")]=!1),o&&e.CKEditorError[za("0x85")](o,this),n}markInsertion(t,n=null,o={}){if(t[za("0x4b")])return null;const s=this[za("0x126")][za("0x115")][za("0x121")](za("0x77")).me;for(const{suggestion:e,meta:s}of this[za("0x91")](t,za("0x5e")))if(s[za("0x11c")]){if(!s.isNextTo){if(s[za("0xf7")]){if(!this[za("0xbc")]||!tc(e,o))continue;return e}if(tc(e,o))return e;this[za("0x3f")](e,t[za("0x89")],t[za("0xf6")]);break}if(n==e.subType&&tc(e,o)){const n=e[za("0xd8")]();return n[za("0x89")][za("0x1")](t[za("0xf6")])?this[za("0x11e")](e,this[za("0x59")].createRange(t[za("0x89")],n[za("0xf6")])):this[za("0x11e")](e,this[za("0x59")].createRange(n.start,t[za("0xf6")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x11d")+n:za("0x5e"),a=this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x92")](x,r,i,t),a}[za("0xe5")](t,n="multi",o={}){const s=this[za("0x126")][za("0x115")][za("0x121")](za("0x77")).me,r=this[za("0xd3")][za("0xf1")]("insertion",n,za("0x111"));for(const e of this[za("0x13f")]())if(e[za("0x140")].id==s.id&&za("0x5e")==e[za("0x8b")]&&e[za("0x7e")]==n&&tc(e,o)&&(r(e.getRanges(),t)||r(t,e[za("0x118")]()))){for(const n of t)e[za("0x38")](n);return e}for(const{suggestion:e,meta:n}of this[za("0x91")](t,"insertion")){if(!n.isOwn)continue;if(!this[za("0xbc")]&&n.containsRangeInObject)continue;if(!tc(e,o))continue;let s=!0;for(const n of e.getRanges())for(const e of t)if(!n.containsRange(e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a="insertion:"+n,c=this[za("0x82")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo.getMultiRangeId());return c}[za("0x13")](t,n,o=null,s={}){if(o=o||$a(n),t.isCollapsed)return null;if("never"===this[za("0xdd")]){const e=this[za("0xd3")][za("0xf1")](za("0xc9"),o,za("0x4a"));return this[za("0x36")]((()=>e([t],n,s))),null}const r=this[za("0x126")].plugins[za("0x121")](za("0x77")).me,i=[];if(za("0xfb")!==this[za("0xdd")])for(const{suggestion:e,meta:n}of this[za("0x91")](t,"insertion"))n[za("0x11c")]&&!n[za("0x116")]&&i.push(...e[za("0x118")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x12f")](o);e&&n[za("0x5f")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x28")];){const o=n[e][za("0x7c")](t);n[za("0x18")](e,1,...o),e+=o[za("0x28")]}}return n}(t,i);x[za("0x28")]&&this[za("0x59")].change((()=>{for(const t of x){const e=this[za("0xd3")].getSuggestionCallback(za("0xc9"),o,za("0x4a"));this[za("0x36")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x89")],a=t.end;for(const{suggestion:e,meta:n}of this[za("0x91")](t,za("0xc9"))){if(!n[za("0x11c")])continue;if(e[za("0x7e")]!=o)continue;if(!tc(e,s))continue;const r=e[za("0xd8")]();if(r[za("0x10d")](t,!0))return null;x=x[za("0x2f")](r[za("0x89")])?x:r[za("0x89")],a=a[za("0xc5")](r.end)?a:r[za("0xf6")],i?r[za("0x89")][za("0x2f")](i.getFirstRange()[za("0x89")])?(i.removeMarkers(),i=e):e[za("0x128")]():i=e}const c=this[za("0x59")][za("0x1d")](x,a);if(i)this[za("0x11e")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x82")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x92")]("formatInline:"+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[za("0x130")]||(n[za("0x130")]=n.commandName),n[za("0x34")]=t.is(za("0xa6")),s=s||$a(n);const i=o[za("0x117")]((t=>Qa(t,this[za("0x59")]))),x=t.is(za("0xa6"))?t:Qa(t,this[za("0x59")]);if("never"===this[za("0xdd")]){const t=this[za("0xd3")].getSuggestionCallback(za("0xe3"),s,za("0x4a"));return this.forceDefaultExecution((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this[za("0x110")](t)){a=!1;break}if(a&&za("0xfb")!==this[za("0xdd")]){const t=this[za("0xd3")].getSuggestionCallback("formatBlock",s,za("0x4a"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[za("0x89")],d=x[za("0xf6")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,za("0xe3"))){if(!e.isOwn)continue;if(e[za("0x1e")]||e.containsRangeInObject||e.isInsideObject)continue;if(t[za("0x54")][za("0x130")]!=n[za("0x130")])continue;if(!tc(t,r))continue;const o=t[za("0xd8")]();if(t[za("0x7e")]==s){if(o[za("0x10d")](x,!0))return null;l=l[za("0x2f")](o.start)?l:o[za("0x89")],d=d[za("0xc5")](o[za("0xf6")])?d:o[za("0xf6")],c?o[za("0x89")][za("0x2f")](c[za("0xd8")]().start)?(c[za("0x128")](),c=t):t[za("0x128")]():c=t}else{const e=x[za("0x12f")](o);this[za("0x43")](t,e)}}const u=this[za("0x126")][za("0x115")][za("0x121")]("Users").me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x11e")](c,this[za("0x59")].createRange(l,d)),c;{const t=this._setSuggestionData({id:g,type:za("0xb5")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x92")]("formatBlock:"+s,g,m,this._model[za("0x1d")](l,d)),t}}[za("0x136")](t,n,o=[],s=null,r={}){n[za("0x130")]||(n[za("0x130")]=n[za("0xfe")]);const i=t[0];n[za("0x34")]=i.is("range"),s=s||$a(n);const x=o[za("0x117")]((t=>Qa(t,this[za("0x59")]))),a=i.is(za("0xa6"))?t:t.map((t=>Qa(t,this[za("0x59")])));if(za("0x27")===this[za("0xdd")]){const t=this[za("0xd3")].getSuggestionCallback(za("0xe3"),s,za("0x4a"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x[za("0x5f")](...a);let c=!0;for(const t of x)if(!this[za("0x110")](t)){c=!1;break}if(c&&za("0xfb")!==this[za("0xdd")]){const t=this._suggestionFactory[za("0xf1")](za("0xe3"),s,za("0x4a"));return this[za("0x36")]((()=>t(a,n,r))),null}const l=this[za("0x126")][za("0x115")][za("0x121")](za("0x77")).me;for(const t of this[za("0x13f")]()){if(t[za("0x140")].id!=l.id)continue;if(za("0xe3")!=t.type||t[za("0x54")][za("0x130")]!=n[za("0x130")])continue;if(!tc(t,r))continue;const e=t.subType==s;for(let n=0;n<a[za("0x28")];n++){const o=a[n];for(const s of t[za("0x6e")]()){const r=s[za("0x129")]();if(o.isEqual(r)){e?(a[za("0x18")](n,1),n--):t[za("0x76")](s[za("0x5")]);break}}}}if(0==a[za("0x28")])return null;const d=this._suggestionFactory[za("0xf1")](za("0xe3"),s,za("0x111"));for(const t of this[za("0x13f")]())if(t[za("0x140")].id==l.id&&za("0xe3")==t[za("0x8b")]&&t[za("0x54")][za("0x130")]==n.formatGroupId&&t[za("0x7e")]==s&&tc(t,r)&&(d(t[za("0x118")](),a)||d(a,t.getRanges()))){for(const e of a)t[za("0x38")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0xb5")+s,f=this._setSuggestionData({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x92")](m,u,g,t,Zo[za("0x6f")]());return f}markDeletion(t,n=null,o={}){if(t[za("0x4b")])return null;const s=this[za("0x126")][za("0x115")][za("0x121")]("Users").me,r=new i.LiveRange(t.start,t[za("0xf6")]);for(const{suggestion:t,meta:e}of this[za("0x91")](r,za("0x5e")))if(e[za("0x11c")]&&!e[za("0x1e")])if(t[za("0x88")]){const e=t[za("0x118")]()[za("0xe8")]((t=>"$graveyard"!=t.root[za("0x3e")]));if(e[za("0x11a")]((t=>r[za("0x10d")](t,!0)))&&t.discard(),e[za("0x8a")]((t=>t[za("0x10d")](r,!0)))){const t=this[za("0xd3")][za("0xf1")](za("0xb9"),n,za("0x4a"));return this[za("0x36")]((()=>t([r],null,o))),null}}else{const e=r[za("0x12f")](t[za("0xd8")]());null!==e&&t[za("0x45")]([e],null,o)}if(r[za("0xee")](),r[za("0x4b")]||za("0xc3")==r[za("0xdb")][za("0x3e")])return null;let x=null,a=r[za("0x89")],c=r[za("0xf6")];const l=this._findSuggestions(r,"deletion");for(const{suggestion:t,meta:e}of l){const n=this._model[za("0x1d")](a,c);if(e[za("0x11c")]&&(this[za("0xbc")]||!e[za("0xf7")]&&!e[za("0x116")]))if(t[za("0x88")]){if(!tc(t,o))continue;let e=!0;for(const o of t[za("0x118")]()){if(o.containsRange(n,!0))return t;n[za("0x10d")](o)||(e=!1)}e&&t.discard()}else{const e=t[za("0xd8")]();if(e[za("0x10d")](n,!0))return t;if(!tc(t,o)){n.containsRange(e)?t[za("0x128")]():e.containsPosition(a)?a=e[za("0xf6")]:e[za("0x131")](c)&&(c=e[za("0x89")]);continue}a=a[za("0x2f")](e.start)?a:e[za("0x89")],c=c[za("0xc5")](e.end)?c:e[za("0xf6")],o=Object[za("0x134")]({},t.attributes),x?e[za("0x89")][za("0x2f")](x.getFirstRange()[za("0x89")])?(x[za("0x128")](),x=t):t[za("0x128")]():x=t}}if(x)return this[za("0x11e")](x,this[za("0x59")][za("0x1d")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x59")][za("0x1d")](a,c),i=s.id,x=n?"deletion:"+n:za("0xb9"),l=this[za("0x82")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x92")](x,t,i,r),l}}markMultiRangeDeletion(t,n=za("0x3b"),o={}){const s=this.editor[za("0x115")][za("0x121")]("Users").me,r=t[za("0x117")]((t=>new i.LiveRange(t[za("0x89")],t[za("0xf6")]))),x=new Set;for(const{suggestion:t,meta:e}of this[za("0x91")](r,"insertion"))e[za("0x11c")]&&!e[za("0x1e")]&&x[za("0x9d")](t);for(const e of x)if(e.isMultiRange){const s=e[za("0x118")]();if((!e[za("0x30")]||!e[za("0x30")][za("0xc")])&&s[za("0x11a")]((t=>r[za("0x8a")]((e=>e.containsRange(t,!0)))))&&e[za("0x3d")](),r.every((t=>s[za("0x8a")]((e=>e.containsRange(t,!0)))))){const e=this[za("0xd3")].getSuggestionCallback(za("0xb9"),n,za("0x4a"));return this[za("0x36")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[za("0x8a")]((e=>e.containsRange(t,!0)))&&e[za("0x3d")](),r[za("0x11a")]((e=>t[za("0x10d")](e,!0)))){const t=this._suggestionFactory.getSuggestionCallback(za("0xb9"),n,za("0x4a"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[za("0xd3")][za("0xf1")](za("0xb9"),n,"join");let c=null;for(const t of this[za("0x13f")]())if(t[za("0x140")].id==s.id&&t[za("0x75")]&&"deletion"==t[za("0x8b")]&&t.subType==n&&tc(t,o)&&(a(t.getRanges(),r)||a(r,t.getRanges())))if(c){if(t[za("0x5b")]&&t[za("0x5b")][za("0x28")])continue;for(const e of t[za("0x118")]())c[za("0x94")](e)||c.addRange(e);t[za("0x128")]()}else{c=t;for(const e of r)t[za("0x94")](e)||t[za("0x38")](e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this[za("0x91")](r,za("0xb9")))e[za("0x11c")]&&(this[za("0xbc")]||!e.containsRangeInObject&&!e[za("0x116")])&&tc(t,o)&&x[za("0x9d")](t);for(const t of x){const e=t[za("0x118")]();if((!o||!o[za("0xc")])&&r[za("0x11a")]((t=>e[za("0x8a")]((e=>e[za("0x10d")](t,!0))))))return t;(!t[za("0x30")]||!t[za("0x30")][za("0xc")])&&e[za("0x11a")]((t=>r[za("0x8a")]((e=>e[za("0x10d")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this[za("0x82")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0xee")](),t[za("0x4b")]||za("0xc3")==t[za("0xdb")][za("0x3e")]||this[za("0x92")](u,l,d,t,Zo[za("0x6f")]());return g}[za("0x11e")](t,e){const n=t[za("0x19")]();this[za("0x59")][za("0x65")]((t=>{t.updateMarker(n,{range:e})}))}[za("0x10b")](t){const e=t.id,n=this.editor.config.get(za("0x103"));this[za("0xa2")][za("0xe0")](e)||this._commentsRepository[za("0x7")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0xa2")].getCommentThread(e);o.unbind(za("0xe6")),o[za("0xe6")]=!1,t[za("0x5b")]=o}[za("0x123")](t,n,o,s){if(t[za("0x8b")]!=n||t.subType!=o||t[za("0x1a")].id!=s)throw this.editor[za("0x58")](za("0x12a")),new e.CKEditorError(za("0x12a"),this)}_cutOutSuggestionMarker(t,n){const o=t.getFirstRange();if(n.isEqual(o))t[za("0x128")]();else if(o.containsRange(n)){const s=this[za("0x59")][za("0xf9")](n[za("0x89")].nodeBefore,za("0xf6"));this[za("0x11e")](t,this._model[za("0x1d")](o.start,s));const r=(0,e.uid)(),i=t[za("0x1a")].id,x=t[za("0x8b")]+":"+t[za("0x7e")];this[za("0x82")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x54")],attributes:t[za("0x30")]});const a=this[za("0x59")].createPositionAt(n.end[za("0x48")],za("0xcc")),c=this[za("0x59")][za("0x1d")](a,o.end);this[za("0x92")](x,r,i,c)}else if(o.containsPosition(n[za("0x89")])){const e=this[za("0x59")].createPositionAt(n[za("0x89")].nodeBefore,"end");this[za("0x11e")](t,this._model[za("0x1d")](o[za("0x89")],e))}else{const e=this._model[za("0xf9")](n[za("0xf6")].parent,za("0xcc"));this[za("0x11e")](t,this[za("0x59")][za("0x1d")](e,o.end))}}[za("0x110")](t){for(const{suggestion:e,meta:n}of this[za("0x91")](t,za("0x5e"))){if(!n.isOwn)continue;const o=e.getRanges();for(const e of o)if(!t[za("0x7c")](e).length)return!0}return!1}[za("0xbf")](t){const n=this[za("0x126")].plugins[za("0x121")](za("0x77"))[za("0xeb")](t);if(!n)throw new e.CKEditorError(za("0xba"),this);return n}_getExternalAuthor(t){const e=this[za("0x126")].plugins[za("0x121")](za("0x77")),n=(0,r.hashObject)(za("0x46")+t);return e[za("0xeb")](n)||e[za("0xb7")]({id:n,name:t})}[za("0x55")](t,e,n,o,s){const r=this[za("0xbf")](o),i=this._suggestionFactory[za("0x62")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this[za("0xf2")](i,za("0x4a"),(()=>{this[za("0xc0")](n,{state:za("0x100")})}),{priority:za("0x4")}),this.listenTo(i,za("0x3d"),(()=>{this._updateSuggestionData(n,{state:za("0x137")})}),{priority:za("0x4")}),this[za("0xfa")][za("0xad")](n,i),this[za("0x13a")][za("0xad")](i,za("0x39")),i}_splitMarkerName(t){const e=t[za("0x9f")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[za("0x28")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[za("0x28")]?e[5]:null}}[za("0x3f")](t,n,o){const s=t[za("0xd8")](),r=s.start,i=s[za("0xf6")];this[za("0x11e")](t,this[za("0x59")].createRange(r,n));const x=(0,e.uid)(),a=t.creator.id,c=t[za("0x8b")]+(t.subType?":"+t[za("0x7e")]:"");this[za("0x82")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t.data}),za("0xe3")==t.type&&(o=this[za("0x59")][za("0xaf")](o[za("0x48")])),this[za("0x92")](c,x,a,this._model[za("0x1d")](o,i))}[za("0x91")](t,e=null){const n=[],o=this.editor[za("0x115")][za("0x121")]("Users").me;Array.isArray(t)||(t=[t]);for(const s of this[za("0x13f")]()){if(!s[za("0x75")])continue;if(e&&s[za("0x8b")]!=e)continue;let r=!1;for(const e of s[za("0x118")]()){for(const i of t){const t=i[za("0x89")][za("0x1")](e[za("0xf6")])||i[za("0xf6")][za("0x1")](e[za("0x89")]);if(t||i[za("0x12f")](e)){const x=i.containsRange(e)&&Ka(this[za("0x59")][za("0x6b")],e[za("0x89")],i),a=e.containsRange(i)&&Ka(this[za("0x59")][za("0x6b")],i[za("0x89")],e);n[za("0x5f")]({suggestion:s,meta:{isOwn:o==s[za("0x140")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[za("0x92")](t,e,n,o,s){this[za("0x59")][za("0x65")]((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0xc8")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xab")](t){const e=t[za("0xda")],n=t[za("0x9a")];t[za("0xda")]=null,null!=e&&(e[za("0x9a")]=null),t[za("0x9a")]=null,null!=n&&(n.previous=null),za("0x11b")==this[za("0x13a")][za("0x121")](t)&&(this[za("0x13a")][za("0xad")](t,za("0x10e")),this[za("0xff")](za("0x9b"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this[za("0x8e")](t);if(this[za("0x52")]&&this[za("0x52")][za("0xde")]){const s=this[za("0x126")][za("0x115")].get("PendingActions"),r=o[za("0xa4")],i=o.subType?o.type+":"+o[za("0x7e")]:o[za("0x8b")],x=this[za("0x126")][za("0x7b")],a=s[za("0x9d")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t[za("0x54")]||null,originalSuggestionId:t[za("0x13c")]||null,attributes:o.attributes};this[za("0x52")][za("0xde")](c)[za("0x73")]((t=>{o[za("0x101")]=!0,s[za("0x104")](a),t&&t[za("0x41")]&&(this._suggestions[za("0x121")](n).createdAt=t[za("0x41")])}))[za("0xc4")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[za("0x126")][za("0x102")][za("0xb6")]({isUndoable:!1},(()=>{o[za("0x3d")]()})),o[za("0x2a")](),this._suggestions.delete(o.id),this[za("0x13a")][za("0x12d")](o),t}))}return o}[za("0xc0")](t,e){const n=this[za("0x126")].plugins.get(za("0xbe")),o=this.getSuggestion(t);if(this[za("0x52")]&&this[za("0x52")][za("0x2b")])if(o._saved){const o=n[za("0x9d")](Yo(this[za("0x126")][za("0x7b")],"PENDING_ACTION_SUGGESTION"));this[za("0x52")][za("0x2b")](t,e)[za("0x73")]((()=>{n[za("0x104")](o)}))}else o.on(za("0x31"),(()=>{this[za("0xc0")](t,e)}))}[za("0xd6")](t){if(!this[za("0x52")]||!this[za("0x52")].getSuggestion)throw new e.CKEditorError(za("0x74"),this);return this[za("0x52")][za("0x9")](t)}[za("0xd4")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xc1")](t),r=this[za("0xfa")][za("0x121")](e)||this[za("0x55")](n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this[za("0x13a")].get(r)){case za("0x39"):this[za("0xd6")](e)[za("0x73")]((t=>{let n=Promise[za("0xd5")]();t.hasComments&&(n=this._commentsRepository[za("0x93")]({channelId:this[za("0x126")][za("0x99")].get(za("0x103")),threadId:e})),n[za("0x73")]((()=>{this[za("0x8e")](t)[za("0x101")]=!0}))})),this[za("0x13a")].set(r,"markerReady");break;case za("0x10e"):this[za("0xc0")](e,{state:za("0x5a")});case"dataReady":this[za("0x13a")].set(r,za("0x11b")),this[za("0xff")](za("0xd2"),r);break;case"ready":this[za("0xff")](za("0xfc"),r)}return r[za("0x6")](t),r}[za("0x57")](t){const e=Array[za("0x49")](t)[za("0xe8")]((t=>!t[za("0x88")])),n=this.getSuggestions({skipNotAttached:!0}).filter((t=>!t[za("0x88")])),o=n[za("0xe8")]((e=>!t[za("0xaa")](e))),s=new Map(n[za("0x117")]((t=>[t,this[za("0xd3")][za("0xf1")](t[za("0x8b")],t[za("0x7e")],za("0x81"))]))),r=new Map(n.map((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x28")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x28")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[za("0xaa")](n)&&n[za("0xda")]&&(n[za("0xda")][za("0x9a")]===n&&(n.previous[za("0x9a")]=null),n[za("0xda")]=null),!i[za("0xaa")](n)&&n[za("0x9a")]&&(n[za("0x9a")][za("0xda")]===n&&(n[za("0x9a")][za("0xda")]=null),n[za("0x9a")]=null)}function a(t,e,n){for(let o=n;o<e[za("0x28")];o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][za("0xda")]=n[0],i[za("0x9d")](n[0]),x.add(n[1]))}}function c(t,e){if(t.author.id!==e[za("0x140")].id)return null;const n=s[za("0x121")](t)(t,e,r[za("0x121")](t),r[za("0x121")](e));return n&&s[za("0x121")](e)(t,e,r[za("0x121")](t),r[za("0x121")](e))?n[1][za("0x5b")]&&n[1].commentThread[za("0x28")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array[za("0x49")](t),n=this[za("0x13f")]({skipNotAttached:!0}),o=n[za("0xe8")]((e=>!t.has(e))),s=new Map(e[za("0x117")]((t=>[t,this._suggestionFactory.getSuggestionCallback(t[za("0x8b")],t.subType,za("0x111"))]))),r=new Map(n[za("0x117")]((t=>[t,t.getRanges()])));for(let t=0;t<e.length;t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x28")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0x28")];i++){const o=n[i];if(o[za("0x8b")]!==e[za("0x8b")]||o[za("0x140")].id!==e[za("0x140")].id||o.subType!==e.subType)continue;if(!Ya(e,o))continue;const x=s[za("0x121")](e),a=r.get(e),c=r[za("0x121")](o),l=e[za("0x5b")]&&e[za("0x5b")][za("0x28")],d=o[za("0x5b")]&&o[za("0x5b")][za("0x28")];if(!l&&x(c,a))return t[za("0x10")](o,e),r.delete(e),!0;if(!d&&x(a,c))return t._joinSuggestions(e,o),r.delete(o),!0}return!1}}[za("0x10")](t,e){if(t[za("0x88")])for(const n of e[za("0x118")]())t[za("0x38")](n);else{const n=e.getFirstRange().end;this[za("0x11e")](t,this._model[za("0x1d")](t[za("0xd8")]()[za("0x89")],n))}e[za("0x128")]()}}class Va{constructor(t){this[za("0x2e")]=t,this[za("0x59")]=t[za("0x102")],this[za("0xef")]=new Map,this[za("0x29")]=new Map,this[za("0xce")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0xf1")](t,e,za("0x4a"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,"discard")(...n)})}[za("0x113")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0xef")].set(s,o)}[za("0xf1")](t,e,n){const o=t+":"+e+":"+n;return this[za("0xef")][za("0x121")](o)||this[za("0x29")][za("0x121")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[za("0x4e")](((t,e)=>t[za("0x89")].isBefore(e[za("0x89")])?1:-1)),this[za("0x59")][za("0x65")]((e=>{for(const n of t){let t;t=n[za("0xf6")][za("0x1f")]&&n[za("0xf6")].parent==n.start.nodeAfter?e[za("0x127")](n[za("0x89")][za("0x9c")],"on"):e[za("0x127")](n),this[za("0x59")][za("0x8c")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x59")][za("0x65")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t.map((t=>(qa(t)&&(t=this._model.createRange(t[za("0xf6")])),t)))[za("0xe8")]((t=>za("0xc3")!==t[za("0xdb")][za("0x3e")]));if(r[za("0x28")]<1)return;const x=Array[za("0x49")](this[za("0x59")][za("0xc6")][za("0x80")].getRanges())[za("0x117")]((t=>i.LiveRange.fromRange(t)));n[za("0xf3")](r);for(const t of this[za("0x2e")][za("0x109")][za("0x109")]())t.refresh();s[za("0x5f")]({forceDefaultExecution:!0}),this[za("0x2e")][za("0x6d")](o,...s);const a=x[za("0xe8")]((t=>za("0xc3")!=t[za("0xdb")][za("0x3e")]));a[za("0x28")]>0&&n[za("0xf3")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[za("0x28")]&&1==e[za("0x28")]&&t[0][za("0xf6")][za("0x1")](e[0][za("0x89")]),s=(t,e,n,o)=>Za(t,e,n,o,this._model)?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[za("0x29")].set(za("0xd1"),t),this[za("0x29")][za("0xad")](za("0x61"),e),this[za("0x29")].set(za("0x0"),o),this[za("0x29")][za("0xad")](za("0x97"),s),this._defaultCallbacks[za("0xad")](za("0x12e"),e),this[za("0x29")][za("0xad")](za("0x12c"),t),this[za("0x29")][za("0xad")](za("0x16"),o),this._defaultCallbacks[za("0xad")](za("0xd7"),s),this[za("0x29")][za("0xad")](za("0x2d"),n),this._defaultCallbacks[za("0xad")](za("0xbb"),t),this[za("0x29")][za("0xad")](za("0x124"),o),this[za("0x29")][za("0xad")](za("0xe9"),t),this[za("0x29")][za("0xad")](za("0xea"),n),this._defaultCallbacks[za("0xad")](za("0x5c"),t),this._defaultCallbacks[za("0xad")](za("0x133"),o),this[za("0x29")][za("0xad")]("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e[za("0x48")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0xdb")]==o)return!1;if(!n[za("0xf")](o))return!1;if(t[za("0xbd")](o)||t[za("0x84")](o))return!0}return!1}function qa(t){return t[za("0xf6")][za("0x48")]==t[za("0x89")][za("0x9c")]&&t[za("0xf6")][za("0x35")]}function Xa(t,e,n,o){const s=t=>!t[za("0x132")].is("$textProxy")&&!o[za("0xbd")](t.item),r=t.start.getLastMatchingPosition(s),i=t.end[za("0x7a")](s,{direction:"backward"});return!(t[za("0x89")][za("0x1")](r)&&t[za("0xf6")][za("0x1")](i)||(r.isBefore(i)?n.updateMarker(e,{range:n[za("0x1d")](r,i)}):n[za("0x76")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t.start[za("0x9c")];return e&&e.is("element")}function Qa(t,e){const n=e[za("0x6b")][za("0xbd")](t)||e[za("0x6b")][za("0xa1")](t);return e.createRange(e[za("0xf9")](t,"before"),n?e[za("0xa")](t):e[za("0xf9")](t,za("0xf6")))}function Za(t,e,n,o,s){if(!Ya(t,e))return!1;if(n.end[za("0x1")](o.start))return!0;if(t[za("0x8b")]!=e[za("0x8b")])return!1;if(!n[za("0xf6")].isTouching(o[za("0x89")]))return!1;const r=s[za("0x1d")](n[za("0xf6")],o[za("0x89")])[za("0x6c")]();for(const t of r)if([za("0x3a"),"elementEnd"][za("0xa9")](t[za("0x8b")])&&s[za("0x6b")][za("0x84")](t[za("0x132")]))return!1;return!0}function Ya(t,e){return!(!t._isDataLoaded||!e._isDataLoaded)&&Go(t[za("0x30")],e[za("0x30")])}function tc(t,e){const n=ec(t[za("0x30")]),o=ec(e);if(!t[za("0xb0")])return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function ec(t){const e=Object[za("0x134")]({},t);return delete e[za("0xc")],delete e.tablePasteChainId,e}const nc=["_discardCommand","execute","add","PendingActions","_pendingAction","change:isDirty","acceptSuggestion","isEnabled","get","canDiscard","locale","_removePendingAction","PENDING_ACTION_SUGGESTION","model","plugins","bind","_setPendingAction","stopListening","_editor","view","discardSuggestion","isDirty","_acceptCommand","listenTo","commentThreadController","getRanges","commands","canAccept","canEditAt","unbind"];var oc,sc;oc=nc,sc=331,function(t){for(;--t;)oc.push(oc.shift())}(++sc);const rc=function(t,e){return nc[t-=0]};class ic extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this.model=e,this.view=n,this[rc("0x17")]=o,this[rc("0x11")]=t,this[rc("0x15")]=t.commands[rc("0x7")]("acceptSuggestion"),this[rc("0x1d")]=t[rc("0x19")][rc("0x7")]("discardSuggestion"),this.view[rc("0xe")](rc("0x6")).to(this[rc("0x15")],this._discardCommand,((t,e)=>t||e)),this[rc("0x12")][rc("0xe")](rc("0x1a")).to(this[rc("0x15")],"isEnabled",(t=>t&&this._editor.model[rc("0x1b")](e[rc("0x18")]()))),this[rc("0x12")].bind(rc("0x8")).to(this._discardCommand,rc("0x6"),(t=>t&&this._editor[rc("0xc")][rc("0x1b")](e[rc("0x18")]()))),this._pendingAction=null,n[rc("0x14")]&&this[rc("0xf")](),this[rc("0x16")](n,"acceptSuggestion",(()=>this[rc("0x5")]())),this.listenTo(n,rc("0x13"),(()=>this.discardSuggestion())),this.listenTo(n,rc("0x4"),(()=>{n.isDirty?this[rc("0xf")]():this[rc("0xa")]()}))}[rc("0x5")](){this._acceptCommand[rc("0x0")](this[rc("0xc")].id)}discardSuggestion(){this[rc("0x1d")][rc("0x0")](this[rc("0xc")].id)}destroy(){this.view[rc("0x1c")](rc("0x6")),this.view.unbind(rc("0x1a")),this[rc("0x12")][rc("0x1c")](rc("0x8")),this[rc("0x10")](),this[rc("0x17")].destroy(),this[rc("0x3")]&&this[rc("0xa")]()}[rc("0xf")](){const t=Yo(this[rc("0x11")][rc("0x9")],rc("0xb"));this[rc("0x3")]=this[rc("0x11")].plugins[rc("0x7")](rc("0x2"))[rc("0x1")](t)}_removePendingAction(){null!==this._pendingAction&&this._editor[rc("0xd")][rc("0x7")]("PendingActions").remove(this[rc("0x3")]),this[rc("0x3")]=null}}const xc=["bind","_config","authoredAt","canAccept","isDirty","isReadOnly","fire","canDiscard","commentThread","_localUser","commentsListView","locale","commentInputView","hasDirtyComment","destroy","element","_createCommentViews","isEnabled","cancel","length","setData","showInput","CommentView","_model","commentThreadInputView","disableComments","editorConfig","addComment","removeComment","set","focus","delegate"];var ac,cc;ac=xc,cc=121,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[lc("0x1f")]=null,this[lc("0x4")]("isActive",!1),this[lc("0x4")](lc("0x9"),e[lc("0x9")]),this.bind(lc("0x9")).to(e),this[lc("0x4")]("descriptionParts",[]),this.set(lc("0xb"),!1),this.set(lc("0x18"),!1),this[lc("0x4")](lc("0xa"),!1),this.set(lc("0xe"),!1),this[lc("0x1e")]=e,this[lc("0x10")]=n,this[lc("0x8")]=o,o[lc("0x0")]?this[lc("0x4")](lc("0x1a"),1):this._createCommentViews()}[lc("0x5")](){this[lc("0x16")][lc("0x5")]()}destroy(){this[lc("0x11")]&&this.commentsListView[lc("0x15")](),this[lc("0x1f")]&&this[lc("0x1f")].destroy(),super[lc("0x15")]()}[lc("0x17")](){const{CommentsListView:t}=this._config;this.commentsListView=new t(this[lc("0x12")],this._model[lc("0xf")],Object.assign({CommentView:this._config[lc("0x1d")]},this[lc("0x8")])),this[lc("0x11")][lc("0x6")](lc("0x3")).to(this),this[lc("0x11")][lc("0x6")]("updateComment").to(this),this[lc("0x11")][lc("0x7")]("isActive").to(this),this[lc("0x4")](lc("0x1a"),this[lc("0x11")][lc("0x1a")]+1),this[lc("0x7")]("length").to(this.commentsListView,lc("0x1a"),(t=>t+1)),this[lc("0x1f")]=this._createCommentThreadInputView(),this.on(lc("0x3"),(()=>this[lc("0x5")]())),this[lc("0x7")]("isDirty").to(this[lc("0x11")],lc("0x14"),this[lc("0x1f")][lc("0x13")],"value",((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[lc("0x8")],e=new t(this[lc("0x12")],this[lc("0x10")],this[lc("0x8")][lc("0x1")]),n=e[lc("0x13")];return e[lc("0x7")](lc("0x1c")).to(this,"isActive",this._model[lc("0xf")],"isReadOnly",n,"value",((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[lc("0xd")](lc("0x2"),e),n.editor[lc("0x1b")]("")})),n.on(lc("0x19"),(()=>this[lc("0x5")]())),n[lc("0x7")]("disabledSubmit").to(this[lc("0x1e")][lc("0xf")],lc("0xc")),e}}const uc=["bind","ck-suggestion__main","isEnabled",'" title="',"time","innerText","push","extendTemplate","ck-annotation__main","commentThreadInputView","formatDateTime","ck-annotation__info",".ck-annotation__content-wrapper","bindTemplate","ck-suggestion--disabled-comments","map","commentThread","execute","ck-annotation","author","discardButton","isActive","@external","ck-suggestion-wrapper","ck-suggestion__info-name","getExternalSuggestionNote",'<span class="ck-suggestion-color" style="background-color: ',"ck-suggestion__info","creator","isExternal","delegate","setTemplate","authoredAt","userView","importWord","canAccept","EXTERNAL_AVATAR","acceptButton","</p>","ck-annotation__info-name","commentsListView","source","canDiscard","div","_createButton","element","ck-suggestion__user","descriptionParts","ck-annotation__actions","locale","editorReady","acceptSuggestion","EXTERNAL_IMPORT_WORD_AVATAR","name",'"></span>',"type","ck-comment__info-time","description","Accept suggestion","render","disableComments","title","content","innerHTML","attributes","editorDestroyed","EXTERNAL_SUGGESTION","ck-suggestion","ck-suggestion-","ck-comment__external","ck-suggestion__actions","_descriptionElement","set","Discard suggestion","_model","getUserViewNotificationText","check","getTemplate","span"];var gc,mc;gc=uc,mc=287,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends dc{constructor(e,n,o,s){super(e,n,o,s),this[fc("0x16")]("type",""),this[fc("0x1d")](fc("0x5")).to(this,fc("0x4c"),(t=>t&&t[0]?t[0][fc("0x5")]:"")),this[fc("0x1d")](fc("0x7")).to(this,"descriptionParts",this,fc("0x32"),((t,e)=>{let n="";for(const e of t)n+="<p>"+pc(e[fc("0xc")],e.color)+fc("0x43");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[fc("0x15")]=null,this.acceptButton=this[fc("0x49")](Yo(e,fc("0x8")),t.icons[fc("0x1a")],"ck-suggestion--accept",fc("0x1"),"sw"),this[fc("0x42")].bind(fc("0x1f")).to(this,fc("0x40")),this[fc("0x31")]=this[fc("0x49")](Yo(e,fc("0x17")),t.icons.cancel,"ck-suggestion--discard","discardSuggestion","sw"),this[fc("0x31")][fc("0x1d")](fc("0x1f")).to(this,fc("0x47")),this.userView=new r.UserView(e,this[fc("0x18")].author,this[fc("0x19")]()),this.userView[fc("0x24")]({attributes:{class:[fc("0x4b"),"ck-annotation__user"]}}),this[fc("0x3c")](this[fc("0x1b")]())}getTemplate(){const t=this[fc("0x2a")],e=[{tag:fc("0x48"),attributes:{class:[fc("0x38"),fc("0x28")]},children:[{tag:fc("0x1c"),children:[{text:this[fc("0x3e")][fc("0x3")]}],attributes:{class:[fc("0x35"),fc("0x44")]}},{tag:fc("0x21"),attributes:{datetime:t.to(fc("0x3d")),class:[fc("0x6"),"ck-annotation__info-time"]},children:[{text:t.to(fc("0x3d"),(t=>this._config[fc("0x27")](t)))}]}]},{tag:fc("0x48"),attributes:{class:[fc("0x14"),fc("0x4d")]},children:[this[fc("0x42")],this.discardButton]},{tag:fc("0x48"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[fc("0x18")][fc("0x3a")]&&e[fc("0x23")]({tag:fc("0x48"),attributes:{class:[fc("0x13")]},children:[{text:this[fc("0x36")]()}]});const n={tag:fc("0x48"),attributes:{class:[fc("0x34"),t.if(fc("0x32"),"ck-suggestion-wrapper--active"),t.to(fc("0x5"),(t=>fc("0x12")+t)),this._config[fc("0xa")]&&fc("0x2b")],"data-suggestion-id":this[fc("0x18")].id,"data-thread-id":this[fc("0x18")][fc("0x2d")].id,"data-author-id":this[fc("0x18")][fc("0x30")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[fc("0x11"),fc("0x2f")]},children:[this[fc("0x3e")],{tag:fc("0x48"),attributes:{class:[fc("0x1e"),fc("0x25")]},children:e}]}]};return this[fc("0x45")]&&this[fc("0x26")]&&(n.children[fc("0x23")](this[fc("0x45")],this[fc("0x26")]),this[fc("0x45")][fc("0x3b")](fc("0x0")).to(this),this[fc("0x45")][fc("0x3b")](fc("0xf")).to(this),this[fc("0x26")].delegate("editorReady").to(this),this[fc("0x26")][fc("0x3b")](fc("0xf")).to(this)),n}[fc("0x9")](){super[fc("0x9")](),this[fc("0x15")]=this[fc("0x4a")].querySelector(fc("0x29")),this._descriptionElement.innerHTML=this[fc("0x7")],this.on("change:description",((t,e,n)=>{this[fc("0x15")][fc("0xd")]=n}))}[fc("0x49")](t,e,n,o,r){const i=new s.ButtonView(this[fc("0x4e")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[fc("0x24")]({attributes:{class:n}}),i.on(fc("0x2e"),(()=>{this.fire(o,this[fc("0x18")].id)})),i}[fc("0x36")](){return fc("0x3f")===this._model[fc("0xe")][fc("0x33")][fc("0x46")]?Yo(this.locale,"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[fc("0x4e")],fc("0x10"))}[fc("0x19")](){return this[fc("0x18")][fc("0x3a")]?"importWord"===this[fc("0x18")][fc("0xe")]["@external"].source?Yo(this[fc("0x4e")],fc("0x2"),this[fc("0x18")][fc("0x39")][fc("0x3")]):Yo(this[fc("0x4e")],fc("0x41"),this[fc("0x18")][fc("0x39")][fc("0x3")]):null}}function pc(t,e){let n="";return n+=t.split("*")[fc("0x2c")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+bc(t)+"</span>":bc(t))).join(""),e&&(n+=fc("0x37")+e.value+fc("0x20")+e[fc("0xb")]+fc("0x4")),n}function bc(t){const e=document.createElement(fc("0x1c"));return e[fc("0x22")]=t,e.innerHTML}const Ec=["createAnnotation","getDescriptions","hasSuggestion","set","actionView","add","remove","_refreshActiveMarkers","view","createAnnotationView","registerAnnotation","getJoined","change:previous","source","EditorAnnotations","type","CommentView","_updateController","_handleControllerBuffer","discardButton","isOn","innerView","isInContent","separator","commands","execute","buttonView","change:activeAnnotations","switchbutton","clear","listenTo","getRanges","comments.editorConfig","toMany","_createUIButton","previous","_initializeController","arrowView","_viewToController","getMarkers","some","length","value","filter","init","trackChanges","head","map","locale","size","unbind","getMarkerNames","getFirstRange","delete","Track changes","getSuggestion","trackChanges.disableComments","TrackChangesEditing","button","_annotationViews","discardAllSuggestions","comments.maxCommentsWhenCollapsed","CommentsUI","CommentsRepository","define","stopListening","commandName","suggestionUnloaded","from","addSourceCollector","isDirty","isMultiRange","pluginName","focus","config","_destroyController","push","get","_handleSuggestionControllerDelayed","reduce","activeMarkers","bind","suggestion-","comments","getByInnerView","Accept all suggestions","Discard all selected suggestions","refreshSelectedViews","editing","plugins","editor","destroy","model","TrackChangesUI","activeAnnotations","mainView","_suggestionToController","descriptionParts","Annotations","getAllAdjacentSuggestions","acceptButton","acceptSelectedSuggestions","discardSelectedSuggestions","has","isEnabled","_descriptionFactory","commentThread","_disableComments"];var _c,Tc;_c=Ec,Tc=353,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const Cc=function(t,e){return Ec[t-=0]};class yc extends t.Plugin{static get requires(){return[Wa,r.Users,"CommentsRepository",Cc("0x45"),Cc("0x5d")]}static get[Cc("0x2b")](){return Cc("0x40")}constructor(t){super(t),this[Cc("0x43")]=new Map,this[Cc("0x9")]=new Map,this[Cc("0x1e")]=new Map,this[Cc("0x61")]=new Map;const e=this[Cc("0x3d")].config;e[Cc("0x23")]("trackChanges.SuggestionThreadView",hc),e[Cc("0x23")]("trackChanges.disableComments",!1),this._disableComments=e[Cc("0x30")](Cc("0x1b"))}[Cc("0x31")](t,e){0===this[Cc("0x61")][Cc("0x14")]&&setTimeout((()=>{for(const[t,e]of this[Cc("0x61")]){const n=this[Cc("0x43")].has(t);n||e?n&&e&&this[Cc("0x2e")](t):this[Cc("0x7")](t)}this[Cc("0x3d")].plugins[Cc("0x30")]("EditorAnnotations")[Cc("0x3a")](),this[Cc("0x56")](),this[Cc("0x61")][Cc("0x0")]()}),10),this[Cc("0x61")][Cc("0x52")](t,e)}[Cc("0xf")](){const t=this[Cc("0x3d")],e=t.plugins[Cc("0x30")](Cc("0x1c")),n=t[Cc("0x3c")][Cc("0x30")]("Annotations"),o=t.plugins[Cc("0x30")]("EditorAnnotations"),s=t[Cc("0x3c")][Cc("0x30")]("CommentsRepository");t.ui.componentFactory[Cc("0x54")](Cc("0x10"),(t=>this._createUIButton(t))),o[Cc("0x28")]((()=>{const t=[];for(const[e,n]of Array[Cc("0x27")](this._suggestionToController)){const o=e[Cc("0x46")](),s=[];for(const t of o){if(!t[Cc("0x65")])continue;if(t[Cc("0x2a")]){s[Cc("0x2f")](...t[Cc("0x2")]());continue}const e=t[Cc("0x17")]();if(s[Cc("0xc")]>0){const t=s[0][Cc("0x5a")](e);if(t){s[0]=t;continue}}s.push(e)}t[Cc("0x2f")]([n[Cc("0x57")],s])}return t})),this[Cc("0x1")](e,"suggestionLoaded",((t,e)=>{this[Cc("0x1")](e,"change:previous",((t,n,o,s)=>{e[Cc("0x65")]&&(null==o?(this[Cc("0x60")](s.head),this[Cc("0x31")](e,!1)):(this[Cc("0x60")](o[Cc("0x11")]),this._handleSuggestionControllerDelayed(e,!0)))})),null===e[Cc("0x6")]?this._handleSuggestionControllerDelayed(e,!1):this[Cc("0x60")](e.head)})),this[Cc("0x1")](e,Cc("0x26"),((t,e,n)=>{this[Cc("0x24")](e,Cc("0x5b")),this[Cc("0x61")][Cc("0x18")](e);const o=n?n.head:e,s=this._suggestionToController[Cc("0x30")](o);null!==n&&this[Cc("0x60")](o),null===n&&s&&this[Cc("0x2e")](e)})),this.listenTo(e,"suggestionChanged",((t,e)=>{this[Cc("0x60")](e)})),this[Cc("0x1")](n,Cc("0x6a"),(()=>{this[Cc("0x56")]()})),this[Cc("0x1")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Cc("0x51")](n))return;const s=e[Cc("0x1a")](n);this[Cc("0x43")][Cc("0x30")](s)[Cc("0x57")][Cc("0x2c")]()}),{priority:"lowest"})}[Cc("0x56")](){const t=this[Cc("0x3d")][Cc("0x3c")][Cc("0x30")]("Annotations"),e=this[Cc("0x3d")].plugins[Cc("0x30")](Cc("0x1c")),n=Array[Cc("0x27")](t[Cc("0x41")],(t=>t[Cc("0x64")])).filter((t=>this._viewToController[Cc("0x4a")](t))),o=[];for(const t of n){const e=this[Cc("0x9")][Cc("0x30")](t).model.getAllAdjacentSuggestions();o.push(...e[Cc("0x32")](((t,e)=>[...t,...e[Cc("0x16")]()]),[]))}e[Cc("0x33")]=o}[Cc("0x5")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Cc("0x3d")].commands.get(Cc("0x10")),r=Yo(t,Cc("0x19"));n[Cc("0x69")].set({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, 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[Cc("0x69")].bind(Cc("0x63")).to(o,Cc("0xd")),n[Cc("0x69")].on(Cc("0x68"),(()=>{o[Cc("0x68")](),this.editor[Cc("0x3b")][Cc("0x57")][Cc("0x2c")]()}));const i=new e.Collection,x=[{type:Cc("0x6b"),model:{withText:!0,label:r,commandName:Cc("0x10")}},{type:Cc("0x66")},{type:Cc("0x1d"),model:{withText:!0,label:Yo(t,Cc("0x38")),commandName:"acceptAllSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Cc("0x48")}},{type:Cc("0x1d"),model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:Cc("0x1f")}},{type:Cc("0x1d"),model:{withText:!0,label:Yo(t,Cc("0x39")),commandName:Cc("0x49")}}];for(const t of x){let e={type:"separator"};if(t[Cc("0x3f")]){const n=new s.Model(t.model),o=this[Cc("0x3d")][Cc("0x67")][Cc("0x30")](n.commandName);n.bind(Cc("0x63"),Cc("0x4b")).to(o,Cc("0xd"),"isEnabled"),e={type:t[Cc("0x5e")],model:n}}i[Cc("0x54")](e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Cc("0x3f")]))[Cc("0x12")]((t=>this.editor[Cc("0x67")].get(t[Cc("0x3f")][Cc("0x25")]))),c=n[Cc("0x69")];return c[Cc("0x53")][Cc("0x15")](Cc("0x4b")),c.arrowView[Cc("0x15")](Cc("0x4b")),c[Cc("0x53")].bind("isEnabled").to(o,Cc("0x4b")),c[Cc("0x8")][Cc("0x34")](Cc("0x4b"))[Cc("0x4")](a,Cc("0x4b"),((...t)=>t[Cc("0xb")]((t=>t)))),n.on(Cc("0x68"),(t=>{this.editor[Cc("0x68")](t[Cc("0x5c")].commandName),this[Cc("0x3d")][Cc("0x3b")][Cc("0x57")][Cc("0x2c")]()})),n}[Cc("0x7")](t){const e=this.editor,n=e[Cc("0x2d")],o=e[Cc("0x3c")][Cc("0x30")](Cc("0x45")),s=e[Cc("0x3c")][Cc("0x30")](Cc("0x22")),i=e[Cc("0x3c")][Cc("0x30")](Cc("0x5d")),x=e[Cc("0x3c")].get(r.Users).me,a=n.get(Cc("0x10")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Cc("0x3c")][Cc("0x30")](Cc("0x21"));let d,u;this[Cc("0x1e")].has(t.id)?(u=this._annotationViews[Cc("0x30")](t.id),d=u[Cc("0x42")]):(d=new a(e.locale,t,x,{disableComments:this[Cc("0x4e")],editorConfig:n.get(Cc("0x3")),maxCommentsWhenCollapsed:n[Cc("0x30")](Cc("0x20")),maxThreadTotalWeight:n[Cc("0x30")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Cc("0x30")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[Cc("0x30")](Cc("0x13"))),CommentView:n[Cc("0x30")](Cc("0x36"))[Cc("0x5f")],CommentsListView:c,CommentThreadInputView:l}),d[Cc("0x47")].on(Cc("0x68"),(()=>{e[Cc("0x3b")].view[Cc("0x2c")]()})),d[Cc("0x62")].on("execute",(()=>{e[Cc("0x3b")][Cc("0x57")][Cc("0x2c")]()})),u=o[Cc("0x58")](this[Cc("0x3d")][Cc("0x13")],d),u[Cc("0x34")]("isDirty").to(d,Cc("0x29")),u[Cc("0x34")](Cc("0xc")).to(d),u[Cc("0x34")](Cc("0x5e")).to(d,Cc("0x5e"),(t=>Cc("0x35")+t)),this[Cc("0x1e")].set(t.id,u));const g=s.createCommentThreadController(t[Cc("0x4d")],d),m=new ic(e,t,d,g),f=t[Cc("0x46")]()[Cc("0xe")]((t=>t[Cc("0x65")]));d[Cc("0x44")]=e[Cc("0x3c")][Cc("0x30")](Cc("0x1c"))[Cc("0x4c")][Cc("0x50")](f),this._suggestionToController[Cc("0x52")](t,m),this._viewToController[Cc("0x52")](d,m);const h=o[Cc("0x4f")]({view:u,target:()=>{const n=[],o=t.getAllAdjacentSuggestions()[Cc("0xe")]((t=>t[Cc("0x65")]));for(const t of o)n.push(...t[Cc("0xa")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Cc("0x35")+m[Cc("0x57")][Cc("0x5e")]});s._bindAnnotationToEditors(d,h),o[Cc("0x54")](h),i[Cc("0x59")](h)}_destroyController(t){const e=this[Cc("0x3d")].plugins.get(Cc("0x22")),n=this[Cc("0x3d")][Cc("0x3c")][Cc("0x30")](Cc("0x45")),o=this[Cc("0x43")][Cc("0x30")](t),s=o[Cc("0x57")],r=n[Cc("0x37")](s);e._unbindEditors(s),r&&n[Cc("0x55")](r),this[Cc("0x43")][Cc("0x18")](t),this._viewToController[Cc("0x18")](s),o[Cc("0x3e")]()}[Cc("0x60")](t){if(!t.isInContent||!this[Cc("0x43")][Cc("0x4a")](t))return;const e=this[Cc("0x3d")][Cc("0x3c")][Cc("0x30")]("TrackChangesEditing"),n=this[Cc("0x43")][Cc("0x30")](t),o=t[Cc("0x46")]();n[Cc("0x57")][Cc("0x44")]=e[Cc("0x4c")][Cc("0x50")](o)}[Cc("0x3e")](){for(const t of this._suggestionToController.keys())this._destroyController(t);for(const t of this[Cc("0x1e")].values())t.mainView[Cc("0x3e")]();super[Cc("0x3e")]()}}var kc,Ac,vc=["editor","getSuggestions","getSuggestion","TrackChanges","Comments","adapter","get","plugins","addSuggestion"];kc=vc,Ac=432,function(t){for(;--t;)kc.push(kc.shift())}(++Ac);var Rc=function(t,e){return vc[t-=0]};class Sc extends t.Plugin{static get requires(){return[Wa,yc,Rc("0x4")]}static get pluginName(){return Rc("0x3")}set[Rc("0x5")](t){this[Rc("0x0")][Rc("0x7")][Rc("0x6")](Wa).adapter=t}get[Rc("0x5")](){return this[Rc("0x0")][Rc("0x7")].get(Wa)[Rc("0x5")]}[Rc("0x8")](t){return this.editor[Rc("0x7")].get(Wa).addSuggestionData(t)}[Rc("0x1")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Rc("0x0")][Rc("0x7")].get(Wa).getSuggestions({skipNotAttached:t,toJSON:e})}[Rc("0x2")](t){return this.editor[Rc("0x7")][Rc("0x6")](Wa)[Rc("0x2")](t)}}const Ic=["function","model","TrackChangesDataGetter","CommentsRepository","pluginName","trackChangesData.editorCreator","init","addUser","name","data","destroy","reduce","define","trackChangesData","Users","editor","create","plugins","execute","createElement","requires","TrackChangesEditing","_adapter","useAnonymousUser","getDataWithAcceptedSuggestions","rootsAttributes","editorCreator","Pagination","getFullData","discardAllSuggestions","appendChild","document","acceptAllSuggestions","constructor","users","getRootsAttributes","config","track-changes-data-invalid-editor-creator","createDocumentFragment","get"];var Lc,Nc;Lc=Ic,Nc=116,function(t){for(;--t;)Lc.push(Lc.shift())}(++Nc);const Mc=function(t,e){return Ic[t-=0]},wc=[Mc("0x1f")];class Oc extends t.Plugin{static get[Mc("0x18")](){return[Wa]}static get[Mc("0x8")](){return"TrackChangesData"}[Mc("0xa")](){const t=this[Mc("0x13")];if(t[Mc("0x0")][Mc("0x10")](Mc("0x9"),(e=>{const n=t.model.document.getRootNames()[Mc("0xf")](((t,e)=>(t[e]="",t)),{});return t[Mc("0x25")][Mc("0x14")](n,e)})),Mc("0x4")!=typeof t.config[Mc("0x3")](Mc("0x11"))[Mc("0x1e")])throw new e.CKEditorError(Mc("0x1"))}[Mc("0x1c")](t){return Pc(this[Mc("0x13")],!0,t)}getDataWithDiscardedSuggestions(t){return Pc(this[Mc("0x13")],!1,t)}}class Fc extends t.Plugin{static get[Mc("0x8")](){return Mc("0x6")}constructor(t){super(t),this.result="end"}[Mc("0xa")](){this[Mc("0x13")][Mc("0x15")][Mc("0x3")](Mc("0x7"))[Mc("0x1a")]={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[Mc("0x13")][Mc("0x15")].get(Mc("0x19"))[Mc("0x1a")]=null}}function Dc(t){return void 0!==t[Mc("0x27")]}async function Pc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,wc);o[Mc("0x15")].push(Wa,Fc),o[Mc("0x1d")]=Dc(t)?t[Mc("0x27")]():void 0;const s=document[Mc("0x2")](),i=t[Mc("0x0")][Mc("0x3")](Mc("0x11"))[Mc("0x1e")],x=await i(o,(()=>function(t){const e=document[Mc("0x17")]("div");return t[Mc("0x22")](e),e}(s)));!function(t,e){const n=t[Mc("0x5")][Mc("0x23")].getRootNames()[Mc("0xf")](((e,n)=>(e[n]=t[Mc("0xd")][Mc("0x3")]({rootName:n}),e)),{}),o=t[Mc("0x15")][Mc("0x3")]("Users")[Mc("0x26")].map((t=>({id:t.id,name:t[Mc("0xc")]}))),s=t.plugins[Mc("0x3")](Mc("0x19")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Mc("0x3")](Mc("0x12")),i=e[Mc("0x15")][Mc("0x3")](Mc("0x19"));for(const t of o)r.getUser(t.id)||r[Mc("0xb")](t);r.me||r[Mc("0x1b")]();for(const t of s)i.addSuggestionData(t);e[Mc("0xd")].set(n)}(t,x),x[Mc("0x16")](Mc(e?"0x24":"0x21"));const a=Dc(x)?x[Mc("0x20")](n):x.data[Mc("0x3")](n);return await x[Mc("0xe")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();