@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231005.0 → 0.0.0-nightly-20231007.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.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/build/track-changes.js
CHANGED
|
@@ -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:()=>hc,TrackChanges:()=>Mc,TrackChangesData:()=>jc,TrackChangesEditing:()=>$a});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["_enabledCommands","TrackChangesCommand","isEnabled","_isEnabledBasedOnSelection","value","_disableUnsupportedCommands","affectsData","forceDisabled","_enableCommands","commands","clearForceDisabled","editor","execute"];var c,l;c=a,l=222,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("0xc")]=e,this[d("0x3")]=!1,this.refresh(),this[d("0x2")]=!1}refresh(){this[d("0x1")]=!0}[d("0xb")](){this.value=!this[d("0x3")],this[d("0x3")]?this[d("0x4")]():this[d("0x7")]()}[d("0x4")](){for(const t of this[d("0xa")][d("0x8")][d("0x8")]())t[d("0x5")]&&!this[d("0xc")].has(t)&&t[d("0x6")](d("0x0"))}[d("0x7")](){for(const t of this.editor[d("0x8")][d("0x8")]())t.affectsData&&!this[d("0xc")].has(t)&&t[d("0x9")](d("0x0"))}}const g=["refresh","get","_suggestions","TrackChangesEditing","plugins","isEnabled","editor","canEditAt","_isEnabledBasedOnSelection"];var m,f;m=g,f=411,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("0x5")]=e,this[h("0x3")](),this[h("0x2")]=!1}[h("0x3")](){this[h("0x8")]=!0}execute(t){const n=this[h("0x5")][h("0x4")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n.getRanges();this[h("0x0")].model[h("0x1")](o)&&this.editor[h("0x7")][h("0x4")](h("0x6")).acceptSuggestion(n)}}const b=["isEnabled","model","TrackChangesEditing","editor","discardSuggestion","get","execute","canEditAt","getRanges","_isEnabledBasedOnSelection","_suggestions","refresh"];var E,_;E=b,_=423,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("0x7")]=e,this[T("0x8")](),this[T("0x6")]=!1}[T("0x8")](){this[T("0x9")]=!0}[T("0x3")](t){const n=this[T("0x7")][T("0x2")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x5")]();this.editor[T("0xa")][T("0x4")](o)&&this[T("0x0")].plugins[T("0x2")](T("0xb"))[T("0x1")](n)}}const y=["isIntersecting","from","end","push","isInContent"," [color ","color","createPositionAfter","length","createPositionAt","isObject","replace","isMultiRange","getRanges","map","type","deletion","isArray","next","add","createPositionBefore","splice","isTouching","execute"];var k,A;k=y,A=287,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t.sort(((t,e)=>v("0x11")==t[v("0x10")]&&"deletion"!=e.type?-1:v("0x11")!=t[v("0x10")]&&v("0x11")==e.type?1:0))}function S(t,e){let n,o=0;const s=[],r=e.schema;for(;o<t[v("0x9")];){const i=t[o],x=t[o+1];n||(n=e[v("0x15")](i)),I(e,i,x)||(s[v("0x4")](e.createRange(n,r[v("0xb")](i)?e[v("0x8")](i):e[v("0xa")](i,v("0x3")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x8")](e),s=t[v("0x15")](n);return o[v("0x17")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0x16")](0,100);t.change((()=>{for(const t of o)t[v("0x5")]&&e[v("0x0")](t.id)}))}}const N=["some","isInContent","canEditAt","editor","_command","values","execute","refresh","from","_isEnabledBasedOnSelection","model","_suggestions"];var w,M;w=N,M=452,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._command=e,this[O("0x3")]=n,this[O("0xb")](),this[O("0x1")]=!1}refresh(){const t=Array[O("0x0")](this[O("0x3")][O("0x9")]())[O("0x4")]((t=>t[O("0x5")]));this.isEnabled=this[O("0x8")].isEnabled&&t}[O("0xa")](){const t=R(Array[O("0x0")](this[O("0x3")][O("0x9")]()));for(const e of t){const t=e.getRanges();if(!this.editor[O("0x2")][O("0x6")](t))return}L(this[O("0x7")][O("0x2")],this[O("0x8")],t)}}const P=["refresh","selection","isEnabled","editor","execute","_command","values","_suggestions","from","document","canEditAt","_selectedSuggestions","model"];var D,B;D=P,B=218,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("0x8")]=e,this[j("0xa")]=n,this[j("0x1")]=new Set,this.refresh(),this._isEnabledBasedOnSelection=!1}[j("0x3")](){const t=this[j("0x6")][j("0x2")][j("0xc")][j("0x4")],e=Array[j("0xb")](this._suggestions[j("0x9")]());this._selectedSuggestions=function(t,e){const n=Array[v("0x2")](t[v("0xe")]()),o=new Set;for(const s of e)if(s[v("0x5")])for(const e of n)for(const n of s.getRanges())(e[v("0x1")](n)||t.isCollapsed&&!s[v("0xd")]&&s[v("0x13")]&&n[v("0x3")][v("0x17")](e.start))&&o[v("0x14")](s);return o}(t,e),this[j("0x5")]=this[j("0x8")].isEnabled&&!!this[j("0x1")].size}[j("0x7")](){const t=R(Array.from(this._selectedSuggestions));for(const e of t){const t=e.getRanges();if(!this[j("0x6")][j("0x2")][j("0x0")](t))return}L(this[j("0x6")][j("0x2")],this[j("0x8")],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 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,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 we=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 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 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 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(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 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 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]",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&&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):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=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=["getRanges","size","_markerNames","_saved","author","addMarkerName","discard","onAccept","filter","head","reduce","substr","hasComments","removeAttribute","getMarkerNames","add","addRange","clear","_onAttributesChange","data","change","decorate","type","commentThread","onAttributesChange","creator","attributes","set","next","getMarkers","getFirstMarker","getAllAdjacentSuggestions","getItems","createdAt","nodeBefore","map","removeMarkers","onDiscard","@external","isMultiRange","setAttribute","_model","_onDiscard","addMarker","length","_onAccept","_isDataLoaded","start","from","getContainedElement","nodeAfter","authoredAt","getFirstRange","isIntersecting","getRange","previous","isInContent","subType","accept","removeMarker"];var $o,Jo;$o=Xo,Jo=127,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("0x27")]=!1,this.id=e.id,this.type=e[Qo("0xf")],this[Qo("0x32")]=e[Qo("0x32")]||null,this[Qo("0x39")]=e[Qo("0x39")],this.creator=e[Qo("0x12")]||e[Qo("0x39")],this.isExternal=Boolean(e[Qo("0x13")]&&e[Qo("0x13")][Qo("0x1f")]),this[Qo("0xc")]=null,this[Qo("0x22")]=t,this[Qo("0x26")]=e[Qo("0x0")],this[Qo("0x23")]=e[Qo("0x1e")],this[Qo("0xb")]=e[Qo("0x11")],this[Qo("0x37")]=new Set,this[Qo("0x1a")]=null,this.set(Qo("0x2c"),null),this[Qo("0x14")](Qo("0x13"),e[Qo("0x13")]||{}),this[Qo("0x14")](Qo("0x30"),null),this[Qo("0x14")](Qo("0x15"),null),this[Qo("0x14")](Qo("0x10"),null),this[Qo("0x14")](Qo("0x38"),!1),this[Qo("0xe")](Qo("0x33")),this[Qo("0xe")](Qo("0x3b"))}get head(){let t=this;for(;t[Qo("0x30")];)t=t[Qo("0x30")];return t}get[Qo("0x5")](){return!!this[Qo("0x10")]&&this[Qo("0x10")].length>0}get[Qo("0x20")](){return 0!=this._markerNames[Qo("0x36")]&&6==Array[Qo("0x29")](this[Qo("0x37")])[0].split(":")[Qo("0x25")]}get[Qo("0x31")](){return null!==this.getFirstMarker()}[Qo("0x3a")](t){this[Qo("0x37")][Qo("0x8")](t)}[Qo("0x7")](){return Array.from(this[Qo("0x37")])}getMarkers(){return this.getMarkerNames()[Qo("0x1c")]((t=>this[Qo("0x22")].markers.get(t)))[Qo("0x1")]((t=>t))}[Qo("0x17")](){return this.getMarkers()[0]||null}removeMarkers(){this._model[Qo("0xd")]((t=>{for(const e of this[Qo("0x16")]())t[Qo("0x34")](e)})),this[Qo("0x37")][Qo("0xa")]()}[Qo("0x34")](t){this[Qo("0x22")][Qo("0xd")]((e=>{e[Qo("0x34")](t)})),this[Qo("0x37")].delete(t)}[Qo("0x9")](t){const e="suggestion:"+this[Qo("0xf")]+":"+this[Qo("0x32")]+":"+this.id+":"+this.creator.id+":"+Zo.getMultiRangeId();this[Qo("0x3a")](e),this[Qo("0x22")][Qo("0xd")]((n=>{n[Qo("0x24")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x35")]())if(e[Qo("0x2e")](t))return!0;return!1}[Qo("0x35")](){return this[Qo("0x16")]().map((t=>t[Qo("0x2f")]()))}[Qo("0x19")](){return this.getRanges()[Qo("0x3")](((t,e)=>[...t,...e[Qo("0x19")]()]),[])}[Qo("0x2d")](){var t;return(null===(t=this[Qo("0x17")]())||void 0===t?void 0:t[Qo("0x2f")]())||null}[Qo("0x2a")](){const t=this[Qo("0x35")]();if(1!=t[Qo("0x25")])return null;const e=t[0],n=e[Qo("0x28")][Qo("0x2b")],o=e.end[Qo("0x1b")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x33")](){this[Qo("0x26")](this.getRanges(),this[Qo("0xc")],this[Qo("0x13")]),this[Qo("0x1d")]()}[Qo("0x3b")](){this._onDiscard(this[Qo("0x35")](),this.data,this[Qo("0x13")]),this.removeMarkers()}[Qo("0x18")](){const t=[];let e=this[Qo("0x2")];for(;e;)t.push(e),e=e[Qo("0x15")];return t}[Qo("0x21")](t,e){const n=eo(this[Qo("0x13")]);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x13")]=n,this[Qo("0xb")](n))}[Qo("0x6")](t){const e=eo(this[Qo("0x13")]);qo(e,t),Go(e,this[Qo("0x13")])||(this[Qo("0x13")]=e,this._onAttributesChange(this[Qo("0x13")]))}toJSON(){return{id:this.id,type:this[Qo("0x32")]?this[Qo("0xf")]+":"+this.subType:this[Qo("0xf")],authorId:this[Qo("0x12")].id,createdAt:this[Qo("0x1a")],hasComments:this[Qo("0x5")],data:this[Qo("0xc")],attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)()[Qo("0x4")](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=["isObject","matchingCallback","$text","item","_resolveDescriptionItems","removeObject","nextSibling","add","getWalker","length","registerDescriptionCallback","_itemLabelsCallbacks","text","quantity","*Remove:* %0","deletion","addObject","ELEMENT_SPACE","replace","Object","isEqual","elementStart","EmptyContainer","*Split:* %0","skip","_addDescriptionItems","label","elementEnd","previousSibling","addContainer","pop","_customCallbacks","_schema","end","type","element","_locale","set","Container","getItemLabel","get","_itemLabels","insertion","*Merge:* %0","indexOf","removeContainer","match","getFirstRange","function","name","push","isEmpty","*Insert:* %0","data","remove"];var es,ns;es=ts,ns=379,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("0x25")]=[],this[os("0x2f")]=new Map,this[os("0x11")]=[],this[os("0x26")]=t,this._locale=e}getDescriptions(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this[os("0x25")]){const n=t(o);if(n){"type"in n&&e[os("0x1")](n),s=!0;break}}if(!s){this[os("0x1f")](e,o);const s=t[n+1];if(s&&!o[os("0x35")]()[os("0x27")][os("0x1a")](s.getFirstRange().start)){const t=e[e[os("0xf")]-1],n=os("0x30")==o[os("0x28")]?os("0xd"):os("0x5");t&&os("0x12")==t[os("0x28")]&&(t[n]+="\n")}}}return this[os("0xa")](e)}[os("0x10")](t){this[os("0x25")][os("0x1")](t)}registerElementLabel(t,n,o=e.priorities.normal){os("0x36")==typeof t?(0,e.insertToPriorityArray)(this[os("0x11")],{matchingCallback:t,label:n,priority:o}):this[os("0x2f")][os("0x2b")](t,n)}[os("0x2d")](t,e=1){let n;for(const e of this[os("0x11")])if(e[os("0x7")](t)){n=e[os("0x20")];break}return n||(n=this[os("0x2f")][os("0x2e")](t[os("0x0")])),n?n(e):1!==e?e+" "+t[os("0x0")]+"s":""+t[os("0x0")]}_addDescriptionItems(t,e){const n=e[os("0x35")]()[os("0xe")](),o=os("0x30")==e.type?os("0xd"):os("0x5");for(const e of n){const s=e[os("0x9")],r=t[t[os("0xf")]-1];if(s.is("$textProxy"))r&&r[os("0x28")][os("0x32")](os("0x2c"))>-1&&t.pop(),r&&os("0x12")==r.type?r[o]+=s[os("0x4")]:t[os("0x1")]({type:os("0x12"),add:os("0xd")==o?s.data:"",remove:os("0x5")==o?s[os("0x4")]:""});else if(this._schema[os("0x6")](s)){const i=s;if(r&&r[os("0x28")].indexOf(os("0x2c"))>-1&&t[os("0x24")](),os("0x21")==e[os("0x28")])continue;r&&r.type==o+os("0x19")&&r[os("0x29")][os("0x0")]==i[os("0x0")]?r[os("0x13")]++:t.push({type:o+"Object",element:i,quantity:1}),n[os("0x1e")]((t=>!(os("0x21")==t[os("0x28")]&&t[os("0x9")]==s)))}else if(this._schema.checkChild(s,os("0x8"))||s.is("element","softBreak")){const n=s;if(os("0xd")==o&&os("0x1b")==e[os("0x28")]||os("0x5")==o&&os("0x21")==e[os("0x28")])continue;if(r&&-1==r[os("0x28")][os("0x32")](os("0x2c"))){"text"==r[os("0x28")]&&(r[o]+="\n");continue}let i;if(i=os("0xd")==o?n[os("0xc")]&&!this[os("0x26")][os("0x6")](n[os("0xc")])?n[os("0xc")]:null:n[os("0x22")]&&!this[os("0x26")][os("0x6")](n[os("0x22")])?n[os("0x22")]:null,n[os("0x2")]||i&&i[os("0x2")]){const e=i&&i[os("0x2")]?i:n;r&&r.type==o+"EmptyContainer"&&r[os("0x29")][os("0x0")]==e[os("0x0")]?r.quantity++:t[os("0x1")]({type:o+os("0x1c"),element:e,quantity:1})}else t[os("0x1")]({type:o+os("0x2c"),element:n})}}}[os("0xa")](t){const e=this[os("0x2a")],n=[];for(const o of t){switch(o[os("0x28")]){case"text":if(o[os("0xd")]=o[os("0xd")][os("0x18")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x18")](/\u000A/g,""),o[os("0x5")]=o[os("0x5")][os("0x18")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x18")](/\u000A/g,""),""!=o.add&&""!=o[os("0x5")]){n[os("0x1")]({type:os("0x18"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x5")]+'"','"'+o[os("0xd")]+'"'])});continue}if(null!=o[os("0xd")][os("0x34")](/^ +$/)){n[os("0x1")]({type:"insertion",content:Yo(e,os("0x3"),Yo(e,"ELEMENT_SPACE",o[os("0xd")][os("0xf")]))});continue}if(null!=o.remove[os("0x34")](/^ +$/)){n.push({type:"deletion",content:Yo(e,os("0x14"),Yo(e,os("0x17"),o[os("0x5")].length))});continue}if(""!=o[os("0xd")]){n[os("0x1")]({type:"insertion",content:Yo(e,os("0x3"),'"'+o.add+'"')});continue}n.push({type:os("0x15"),content:Yo(e,"*Remove:* %0",'"'+o[os("0x5")]+'"')});continue;case"addEmptyContainer":case os("0x16"):n.push({type:os("0x30"),content:Yo(e,os("0x3"),this[os("0x2d")](o.element,o.quantity))});continue;case"removeEmptyContainer":case os("0xb"):n[os("0x1")]({type:os("0x15"),content:Yo(e,"*Remove:* %0",this[os("0x2d")](o[os("0x29")],o[os("0x13")]))});continue;case os("0x23"):n[os("0x1")]({type:os("0x30"),content:Yo(e,os("0x1d"),this.getItemLabel(o[os("0x29")],o.quantity))});continue;case os("0x33"):n[os("0x1")]({type:"deletion",content:Yo(e,os("0x31"),this[os("0x2d")](o[os("0x29")],o[os("0x13")]))});continue}n[os("0x1")](o)}return n}}const rs=["showAIAssistant","enableCommand","get","editor","plugins","commands","TrackChangesEditing"];var is,xs;is=rs,xs=110,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[as("0x5")],e=t[as("0x6")][as("0x4")](as("0x1"));t[as("0x0")][as("0x4")](as("0x2"))&&e[as("0x3")](as("0x2"))}}const ls=["plugins","FORMAT_ALIGN_TO_CENTER","markBlockFormat","filter","AlignmentEditing","format","commandName","selection","getSelectedBlocks","getAttribute","contentLanguageDirection","enableCommand","commandParams","left","TrackChangesEditing","justify","FORMAT_JUSTIFY_TEXT","center","value","editor","alignment","FORMAT_ALIGN_TO_LEFT","from","_descriptionFactory","ltr","right","get","document","model","registerDescriptionCallback","checkAttribute"];var ds,us;ds=ls,us=196,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{afterInit(){const t=this.editor,e=t.locale;if(!t[gs("0x15")].has(gs("0x19")))return;const n=t.plugins[gs("0x10")](gs("0x4"));n[gs("0x1")](gs("0xa"),((e,o={})=>{let s=o[gs("0x8")];o.value||(s=gs("0xe")===t.locale[gs("0x0")]?gs("0x3"):gs("0xf"));const r=Array[gs("0xc")](this.editor.model[gs("0x11")][gs("0x1c")][gs("0x1d")]())[gs("0x18")]((t=>function(t,e,n){const o=t[gs("0x1e")](gs("0xa"))||null;return e[gs("0x14")](t,gs("0xa"))&&n!=o}(t,this[gs("0x9")][gs("0x12")].schema,s)));t[gs("0x12")].change((()=>{for(const t of r)n[gs("0x17")](t,{commandName:gs("0xa"),commandParams:[{value:s}]})}))})),n[gs("0xd")][gs("0x13")]((t=>{const{data:n}=t;if(n&&gs("0xa")==n[gs("0x1b")]){const t=n[gs("0x2")][0].value;return{type:gs("0x1a"),content:Yo(e,"*Format:* %0",function(t){switch(t){case gs("0x3"):return Yo(e,gs("0xb"));case gs("0xf"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case gs("0x7"):return Yo(e,gs("0x16"));case gs("0x5"):return Yo(e,gs("0x6"))}}(t))}}}))}}const fs=["isBlock","parent","insert","isAtEnd","ck-suggestion-marker-","toViewElement","markerName","item","plugins","createRangeOn","previousPosition","listItem","createUIElement","schema","listIndent","addHighlight","activeMarkers","element","markerRange","ck-suggestion-marker--active","hasAttribute","push","bindElementToMarker","get","writer","mapper","toViewPosition","isContent","name","model","start","addClass","nextSibling","TrackChangesEditing","getCustomProperty"];var hs,ps;hs=fs,ps=122,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return fs[t-=0]};function Es(t,e,n){const o=[];for(const s of e.getItems())s[bs("0x3")](t)&&o[bs("0x4")](n[bs("0x1b")](s));return o}function _s(t){const e=[];if(t.is(bs("0x0"),bs("0x1d"))){let n=t[bs("0xf")];for(;n&&n.is(bs("0x0"),bs("0x1d"))&&n.getAttribute(bs("0x20"))>0;)e.push(n),n=n[bs("0xf")]}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t[bs("0x1a")][bs("0x6")](bs("0x10"));return(s,r,i)=>{if(!i.consumable.test(r[bs("0x1")],s[bs("0xb")]))return;const x=r[bs("0x1")].getWalker(),a=r[bs("0x1")][bs("0xd")],c=t[bs("0xc")][bs("0x1f")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[bs("0x19")];u=u||c[bs("0xa")](e);const n=i.mapper[bs("0x17")](e);if(n&&n[bs("0x11")](bs("0x21")))return;"elementEnd"==t.type&&c[bs("0x12")](e)&&!c.isLimit(e)&&(e[bs("0xf")]||a[bs("0x15")]?l&&l[bs("0x13")]==e||(l=e,m(t[bs("0x1c")]),g=!0):d=d||t.previousPosition)}function m(t){const s=i[bs("0x7")][bs("0x1e")]("span",{class:bs("0x16")+e}),x=i[bs("0x8")][bs("0x9")](t);n&&o[bs("0x22")].includes(r[bs("0x18")])&&i.writer[bs("0xe")](bs("0x2"),s),i[bs("0x7")][bs("0x14")](x,s),i.mapper[bs("0x5")](s,r.markerName)}u||g||!d||m(d)}}const Cs=["*Format:* %0","isCollapsed","FORMAT_BOLD","markInlineFormat","FORMAT_ITALIC","italic","SubscriptEditing","change","UnderlineEditing","editor","BoldEditing","selection","locale","value","slice","CodeEditing","_descriptionFactory","ItalicEditing","document","from","subscript","enableCommand","plugins","registerDescriptionCallback","getRanges","forceValue","code","commandParams","FORMAT_CODE","commandName","TrackChangesEditing","bold","toLowerCase","SuperscriptEditing","get","*Remove format:* %0","FORMAT_UNDERLINE","format","FORMAT_STRIKETHROUGH"];var ys,ks;ys=Cs,ks=371,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x1d"),As("0x24"),As("0x1b"),As("0x22"),"StrikethroughEditing",As("0x19"),As("0xd")];class Rs extends t.Plugin{afterInit(){const t=this[As("0x1c")],e=t.model,n=t[As("0x2")][As("0xe")](As("0xa")),o=t[As("0x1f")];for(const o of vs){if(!t.plugins.has(o))continue;const s=o[As("0x21")](0,-7)[As("0xc")](),r=t.commands.get(s);n[As("0x1")](s,((t,o={})=>{const i=e[As("0x25")][As("0x1e")];if(i[As("0x14")])return void t(o);const x=void 0!==o[As("0x5")]?o[As("0x5")]:!r[As("0x20")];e[As("0x1a")]((()=>{const t=Array[As("0x26")](i[As("0x4")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0x16")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[As("0x23")][As("0x3")]((n=>{const{data:s}=n;if(s&&s[As("0x9")]===t)return s[As("0x7")][0][As("0x5")]?{type:As("0x11"),content:Yo(o,As("0x13"),e)}:{type:As("0x11"),content:Yo(o,As("0xf"),e)}}))}s(As("0xb"),Yo(o,As("0x15"))),s(As("0x18"),Yo(o,As("0x17"))),s("underline",Yo(o,As("0x10"))),s(As("0x6"),Yo(o,As("0x8"))),s("strikethrough",Yo(o,As("0x12"))),s(As("0x0"),Yo(o,"FORMAT_SUBSCRIPT")),s("superscript",Yo(o,"FORMAT_SUPERSCRIPT"))}}const Ss=["forceValue","schema","blockQuote","_descriptionFactory","parent","selection","checkChild","TrackChangesEditing","editor","from","enableCommand","afterInit","ELEMENT_BLOCK_QUOTE","format","*Format:* %0","commandParams","commands","value","locale","change","plugins","getSelectedBlocks","registerDescriptionCallback","model","get","BlockQuoteEditing","name","filter","*Remove format:* %0","$root","markBlockFormat"];var Is,Ls;Is=Ss,Ls=147,function(t){for(;--t;)Is.push(Is.shift())}(++Ls);const Ns=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ns("0x13")](){const t=this[Ns("0x10")],e=t[Ns("0x1a")];if(!t.plugins.has(Ns("0x2")))return;const n=t[Ns("0x1c")][Ns("0x1")](Ns("0xf")),o=this[Ns("0x10")][Ns("0x18")].get(Ns("0xa"));n[Ns("0x12")](Ns("0xa"),((e,s={})=>{const r=this[Ns("0x10")].model.document[Ns("0xd")],i=s&&void 0!==s[Ns("0x8")]?s.forceValue:!o[Ns("0x19")];let x=[];if(i){const e=Array[Ns("0x11")](r[Ns("0x1d")]())[Ns("0x4")]((t=>Ms(t)||function(t,e){const n=e[Ns("0xe")](t[Ns("0xc")],Ns("0xa")),o=e[Ns("0xe")]([Ns("0x6"),Ns("0xa")],t);return n&&o}(t,this.editor[Ns("0x0")][Ns("0x9")])));x=S(e,t[Ns("0x0")])}else{const e=Array.from(r[Ns("0x1d")]())[Ns("0x4")]((t=>Ms(t)));x=S(e,t[Ns("0x0")])}t.model[Ns("0x1b")]((()=>{for(const t of x)n[Ns("0x7")](t,{commandName:Ns("0xa"),commandParams:[{forceValue:i}]})}))})),n[Ns("0xb")][Ns("0x1e")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n.commandName){const t=Yo(e,Ns("0x14"));return n[Ns("0x17")][0][Ns("0x8")]?{type:"format",content:Yo(e,Ns("0x16"),t)}:{type:Ns("0x15"),content:Yo(e,Ns("0x5"),t)}}}))}}function Ms(t){return Ns("0xa")==t[Ns("0xc")][Ns("0x3")]}const Os=["ckbox","afterInit","editor","commands","get","TrackChangesEditing"];var Fs,Ps;Fs=Os,Ps=312,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1")](){const t=this[Ds("0x2")];t[Ds("0x3")].get(Ds("0x0"))&&t.plugins[Ds("0x4")](Ds("0x5")).enableCommand(Ds("0x0"))}}const js=["CodeBlock","find","commandParams","editor","model","registerDescriptionCallback","selection","document","has","markBlockFormat","plugins","value","schema","ELEMENT_CODE_BLOCK","name","languages","*Remove format:* %0","afterInit","commandName","registerElementLabel","enableCommand","from","getSelectedBlocks","_descriptionFactory","*Format:* %0","change","forceValue","commands","language","indentCodeBlock","get","codeBlock","filter"];var Us,Gs;Us=js,Gs=410,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{[Hs("0x3")](){const t=this[Hs("0x16")];if(!t[Hs("0x1d")][Hs("0x1b")](Hs("0x13")))return;const e=t[Hs("0x1d")].get("TrackChangesEditing"),n=t.locale,o=t.config.get(Hs("0x11"))[Hs("0x1")],s=t[Hs("0xd")][Hs("0x10")](Hs("0x11"));e.enableCommand(Hs("0xf")),e.enableCommand("outdentCodeBlock"),e[Hs("0x6")]("codeBlock",((n,r={})=>{const i=t[Hs("0x17")],x=t[Hs("0x17")][Hs("0x1a")][Hs("0x19")],a=r&&void 0!==r.forceValue?r[Hs("0xc")]:!s[Hs("0x1e")];let c;r[Hs("0xe")]||(r.language=o[0][Hs("0xe")]),c=a?Array.from(x.getSelectedBlocks()).filter((t=>{return Ws(t)||(e=t,n=i[Hs("0x1f")],!e.is("rootElement")&&!n.isLimit(e)&&n.checkChild(e.parent,Hs("0x11")));var e,n})):Array[Hs("0x7")](x[Hs("0x8")]())[Hs("0x12")]((t=>Ws(t)));const l=S(c,i);i[Hs("0xb")]((()=>{for(const t of l)e[Hs("0x1c")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e._descriptionFactory[Hs("0x5")]("codeBlock",(t=>Yo(n,Hs("0x20"),t))),e[Hs("0x9")][Hs("0x18")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&Hs("0x11")==r[Hs("0x4")]){const t=r[Hs("0x15")][0][Hs("0xe")],s=e(o[Hs("0x14")]((e=>e[Hs("0xe")]===t)).label);return r[Hs("0x15")][0].forceValue?{type:"format",content:Yo(n,Hs("0xa"),Yo(n,Hs("0x20"),1)+" ("+s+")")}:{type:"format",content:Yo(n,Hs("0x2"),Yo(n,Hs("0x20"),1))}}}))}}function Ws(t){return"codeBlock"==t[Hs("0x0")]}const Vs=["enableCommand","get","plugins","editor","has","CommentsEditing"];var Ks,qs;Ks=Vs,qs=405,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Vs[t-=0]};class $s extends t.Plugin{afterInit(){const t=this[Xs("0x0")];t[Xs("0x5")][Xs("0x1")](Xs("0x2"))&&t[Xs("0x5")][Xs("0x4")]("TrackChangesEditing")[Xs("0x3")]("addCommentThread")}}var Js=n(181);const Qs=["model","get","setSelection","buffer","mapper","$graveyard","isCollapsed","downcastDispatcher","commands","markerName","selection","showSuggestionHighlights","init","enableCommand","lock","createRange","enqueueChange","deleteForward","remove","addMarker:suggestion:deletion","markerNameToElements","end","requires","start","getFirstRange","unbindElementFromMarkerName","unit","bind","removeMarker:suggestion:deletion","merge","high","rootName","document"];var Zs,Ys;Zs=Qs,Ys=346,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{static get[tr("0x6")](){return[Js.Delete]}[tr("0x1d")](){const t=this.editor,e=t.plugins[tr("0x12")]("TrackChangesEditing");e[tr("0x1e")]("delete");const n=t[tr("0x19")].get(tr("0x1"));e[tr("0x1e")](tr("0x1"),((e,o={})=>{const s=t.model.createSelection(t[tr("0x11")][tr("0x10")][tr("0x1b")]);s[tr("0x17")]&&t[tr("0x11")].modifySelection(s,{direction:"forward",unit:o[tr("0xa")]});const r=s[tr("0x8")](),x=i.LiveRange.fromRange(r);let a;e(o),a=tr("0x16")==x.root[tr("0xf")]?t.model[tr("0x20")](r.start):t[tr("0x11")][tr("0x20")](x[tr("0x7")],x[tr("0x5")]),x.detach(),t[tr("0x11")][tr("0x0")](n[tr("0x14")].batch,(t=>{n[tr("0x14")][tr("0x1f")](),t[tr("0x13")](t[tr("0x20")](a[tr("0x5")])),n[tr("0x14")].unlock()}))})),t.editing[tr("0x18")].on("addMarker:suggestion:deletion",Ts(t,"merge"),{priority:tr("0xe")}),t.data[tr("0x18")].on(tr("0x3"),((e,n,o)=>{o.options[tr("0x1c")]&&Ts(t,tr("0xd"),{showActiveMarker:!1})[tr("0xb")](this)(e,n,o)}),{priority:"high"}),t.editing[tr("0x18")].on(tr("0xc"),((t,e,n)=>{const o=n[tr("0x15")][tr("0x4")](e[tr("0x1a")]);if(o)for(const t of o)t.is("uiElement")&&(n[tr("0x15")][tr("0x9")](t,e[tr("0x1a")]),n.writer[tr("0x2")](t))}),{priority:tr("0xe")})}}const nr=["add","getFirstRange","*Merge:* %0","*Format:* remove from %0","containsItem","nextSibling","ELEMENT_","splitListItemBefore","nodeAfter","bulletedList","execute","plugins","start","toUpperCase","getSelectedBlocks","commandParams","setSelection","push","model","isFirstBlockOfListItem","change","has","*Outdent:* %0","*Format:* insert into %0","getRanges","document","from","enableCommand","commands","markMultiRangeBlockFormat","isObject","markBlockFormat","schema","getAttribute","locale","registerCustomCallback","ELEMENT_NUMBERED_LIST","forceValue","before","_LIST","hasAttribute","get","fromRange","documentList","ELEMENT_BULLETED_LIST","splitListItemAfter","value","slice","config","*Change to:* %0","parent","map","format","listItemId","next","createPositionAt","ELEMENT_LIST_ITEM","_descriptionFactory","createRange","DocumentListEditing","list.multiBlock","listType","indentList","editor","outdentList","expandListBlocksToCompleteList","refresh","numberedList","selection","commandName","multipleBlocks","detach","previousSibling","listIndent","registerElementLabel","deletion","registerDescriptionCallback"];var or,sr;or=nr,sr=228,function(t){for(;--t;)or.push(or.shift())}(++sr);const rr=function(t,e){return nr[t-=0]};class ir extends t.Plugin{afterInit(){const t=this[rr("0x42")];if(!t[rr("0xe")][rr("0x18")](rr("0x3e")))return;const e=t[rr("0x25")],n=t[rr("0xe")][rr("0x2c")]("TrackChangesEditing"),o=t.plugins[rr("0x2c")]("DocumentListUtils");function s(e){return()=>{const s=t[rr("0x1f")][rr("0x2c")](e);if(s.value&&!t.config[rr("0x2c")](rr("0x3f")))return void t[rr("0xd")]("paragraph",{});let r=Array[rr("0x1d")](t[rr("0x15")][rr("0x1c")][rr("0x47")][rr("0x11")]());if(a(e)){r=o[rr("0x44")](r);const t=[];for(const e of r)o[rr("0x16")](e)&&t[rr("0x14")](e);r=t}t[rr("0x15")][rr("0x17")]((()=>{n[rr("0x20")](r,{commandName:e,commandParams:[{forceValue:!s[rr("0x31")]}],formatGroupId:rr("0x40")},[],"documentList")}))}}function r(e){return()=>{const o=function(t){let e=Array[rr("0x1d")](t);const n=e.findIndex((t=>!t[rr("0x2b")](rr("0x38"))));return n>-1&&(e=e[rr("0x32")](0,n)),e}(t[rr("0x15")].document[rr("0x47")].getSelectedBlocks()),s=o[o.length-1],r=t.model[rr("0x23")][rr("0x21")](s)?"after":"end",i=t[rr("0x15")][rr("0x3d")](t.model[rr("0x3a")](o[0],"before"),t.model[rr("0x3a")](s,r));t[rr("0x15")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:rr("0x40")},function(t){const e=new Set;for(const n of t){let t=n[rr("0x8")];for(;t&&t[rr("0x24")](rr("0x4c"))>n[rr("0x24")](rr("0x4c"));)e[rr("0x3")](t),t=t[rr("0x8")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[rr("0x15")][rr("0x1c")][rr("0x47")][rr("0x11")]()[rr("0x39")]().value,s=t[rr("0x15")][rr("0x3a")](o,rr("0x29")),r=t[rr("0x15")][rr("0x3a")](o,0),i=t[rr("0x15")][rr("0x3d")](s,r);t[rr("0x15")][rr("0x17")]((()=>{n[rr("0x22")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x40")})}))}}function a(e){const n=t[rr("0x1f")][rr("0x2c")](rr("0xc"))[rr("0x31")],o=t[rr("0x1f")].get(rr("0x46")).value;return rr("0x46")===e?n:o}n[rr("0x1e")]("numberedList",s(rr("0x46"))),n[rr("0x1e")](rr("0xc"),s("bulletedList")),n[rr("0x1e")](rr("0x41"),r(rr("0x41"))),n[rr("0x1e")](rr("0x43"),r("outdentList")),n[rr("0x1e")](rr("0x30"),x(rr("0x30"))),n[rr("0x1e")](rr("0xa"),x(rr("0xa"))),n._descriptionFactory[rr("0x0")]((function(e){const n=!t[rr("0x15")][rr("0x23")][rr("0x21")](e),o=e[rr("0x4b")],s=e[rr("0x8")],r=e[rr("0x24")](rr("0x38")),i=!o||o.getAttribute(rr("0x38"))!==r,x=!s||s[rr("0x24")](rr("0x38"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,rr("0x3b"),t))),n[rr("0x3c")][rr("0x2")]((function(n){const{data:o}=n;if(!o)return;let s,r,i,x;switch(o.commandName){case rr("0xc"):i=o.commandParams[0].forceValue,x=a(o[rr("0x48")]),s=rr(i?"0x1a":"0x6"),!x&&t[rr("0x33")].get(rr("0x3f"))||(s=rr("0x34")),r={type:rr("0x37"),content:Yo(e,s,Yo(e,rr("0x2f")))};break;case rr("0x46"):i=o[rr("0x12")][0][rr("0x28")],x=a(o[rr("0x48")]),s=i?rr("0x1a"):"*Format:* remove from %0",!x&&t[rr("0x33")][rr("0x2c")](rr("0x3f"))||(s="*Change to:* %0"),r={type:rr("0x37"),content:Yo(e,s,Yo(e,rr("0x27")))};break;case rr("0x41"):s="*Indent:* %0",r={type:rr("0x37"),content:Yo(e,s,Yo(e,rr("0x3b")))};break;case rr("0x43"):s=function(t){const e=t[rr("0x4")]();let n=e[rr("0xf")].nodeAfter;for(;n&&e[rr("0x7")](n);){if(n[rr("0x24")](rr("0x4c"))>0)return!1;n=n[rr("0x8")]}return!0}(n)?Yo(e,rr("0x6"),Yo(e,function(t){const e=t[rr("0x4")]()[rr("0xf")].nodeAfter;return rr("0x9")+e[rr("0x24")](rr("0x40"))[rr("0x10")]()+rr("0x2a")}(n))):Yo(e,rr("0x19"),Yo(e,rr("0x3b"))),r={type:"format",content:s};break;case"mergeListItemBackward":case"mergeListItemForward":!1===o[rr("0x49")]&&(s=rr("0x5"),r={type:rr("0x1"),content:Yo(e,s,Yo(e,rr("0x3b")))})}return r})),n._suggestionFactory[rr("0x26")]("formatBlock",rr("0x2e"),"accept",(function(e,n){const o=[];for(let n of e)n[rr("0xf")].nodeAfter===n.end[rr("0x35")]&&(n=t.model[rr("0x3d")](t[rr("0x15")][rr("0x3a")](n[rr("0xf")][rr("0xb")],0))),o[rr("0x14")](n);t[rr("0x15")][rr("0x17")]((e=>{const s=t.model[rr("0x1c")][rr("0x47")],r=Array[rr("0x1d")](s[rr("0x1b")]())[rr("0x36")]((t=>i.LiveRange[rr("0x2d")](t)));e.setSelection(o),t.commands[rr("0x2c")](n.commandName)[rr("0x45")](),n[rr("0x12")][rr("0x14")]({forceDefaultExecution:!0}),t[rr("0xd")](n.commandName,...n[rr("0x12")]),e[rr("0x13")](r);for(const t of r)t[rr("0x4a")]()}))}))}}var xr=n(331);const ar=["enterBlock","writer","selection","model","hasClass","getFirstRange","bind","ck-suggestion-marker-split","split","plugins","get","createRange","setSelection","remove","markerNameToElements","fromRange","showSuggestionHighlights","markInsertion","nextSibling","getFirstPosition","createPositionAt","mapper","addMarker:suggestion:insertion","unbindElementFromMarkerName","data","requires","parent","editing","document","high","markerName","downcastDispatcher","change","fire","detach","end","enter"];var cr,lr;cr=ar,lr=316,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{static get[dr("0x5")](){return[xr.Enter]}init(){const t=this.editor,e=t[dr("0x1a")].get("TrackChangesEditing"),n=t.commands[dr("0x1b")](dr("0x10"));e.enableCommand(dr("0x10"),(()=>{t[dr("0x14")][dr("0xc")]((o=>{const s=t[dr("0x14")][dr("0x8")][dr("0x13")],r=s[dr("0x24")](),x=i.LiveRange[dr("0x20")](s[dr("0x16")]());if(n[dr("0x11")](o)){const n=t.model[dr("0x0")](r[dr("0x6")][dr("0x23")],0),s=o[dr("0x1c")](r,n);e[dr("0x22")](s)}else o[dr("0x1d")](o[dr("0x1c")](x[dr("0xf")]));x[dr("0xe")](),n[dr("0xd")]("afterExecute",{writer:o})}))})),t.editing[dr("0xb")].on(dr("0x2"),Ts(t,dr("0x19")),{priority:dr("0x9")}),t[dr("0x7")].downcastDispatcher.on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n.mapper[dr("0x1f")](e[dr("0xa")]);if(o)for(const t of o)t[dr("0x15")](dr("0x18"))&&(n[dr("0x1")][dr("0x3")](t,e[dr("0xa")]),n[dr("0x12")][dr("0x1e")](t))}),{priority:dr("0x9")}),t[dr("0x4")].downcastDispatcher.on(dr("0x2"),((e,n,o)=>{o.options[dr("0x21")]&&Ts(t,dr("0x19"),{showActiveMarker:!1})[dr("0x17")](this)(e,n,o)}),{priority:"high"})}}const gr=["getRange","enableCommand","_isInDeletionRange","start","has","replace","afterInit","findByTextCallback","suggestion:deletion","findPrevious","model","createPositionAt","handleFindCommand","getMarkersGroup","plugins","editor","TrackChangesEditing","find","createRange","bind","filter","end","get","item","findNext","FindAndReplaceUtils"];var mr,fr;mr=gr,fr=329,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0xf")](){if(!this[hr("0x18")][hr("0x17")][hr("0xd")]("FindAndReplaceEditing"))return;const t=this[hr("0x18")][hr("0x17")][hr("0x5")](hr("0x19"));t[hr("0xa")](hr("0x0"),this[hr("0x15")][hr("0x2")](this)),t[hr("0xa")](hr("0x7")),t[hr("0xa")](hr("0x12")),t.enableCommand(hr("0xe")),t.enableCommand("replaceAll")}[hr("0x15")](t,e,n={}){const o=this[hr("0x18")][hr("0x17")][hr("0x5")](hr("0x8"));void 0!==n&&t((t=>("string"==typeof e?o[hr("0x10")](e,n):e)(t)[hr("0x3")]((e=>!1===this[hr("0xb")](e,t[hr("0x6")])))),n)}_isInDeletionRange(t,e){const n=this.editor[hr("0x13")][hr("0x1")](this[hr("0x18")][hr("0x13")][hr("0x14")](e,t[hr("0xc")]),this.editor[hr("0x13")].createPositionAt(e,t[hr("0x4")]));for(const t of this[hr("0x18")].model.markers[hr("0x16")](hr("0x11")))if(null!==n.getIntersection(t[hr("0x9")]()))return!0;return!1}}const br=["*Reset font color*","selection","*Set font family:* %0","has","getRanges","value","change","*Set font background color:* %0","fontColor","get","_descriptionFactory","fontSize","commandName","config","*Set font color:* %0","trim","fontBackgroundColor","document","*Reset font family*","locale","title","commandParams","toLowerCase","*Reset font background color*","normalizeSizeOptions","model","fontFamily","from","format","*Reset font size*","enableCommand","*Set font size:* %0","isCollapsed","fontSize.options","TrackChangesEditing","plugins","fontColor.colors","_enableCommand","markInlineFormat","editor","FontSizeEditing","FontColorEditing","FontSize"];var Er,_r;Er=br,_r=105,function(t){for(;--t;)Er.push(Er.shift())}(++_r);const Tr=function(t,e){return br[t-=0]},Cr=[{pluginName:Tr("0x15"),commandName:Tr("0x23")},{pluginName:"FontFamilyEditing",commandName:Tr("0x7")},{pluginName:Tr("0x16"),commandName:Tr("0x20")},{pluginName:"FontBackgroundColorEditing",commandName:Tr("0x28")}];class yr extends t.Plugin{afterInit(){const t=this[Tr("0x14")][Tr("0x0")];for(const{pluginName:t,commandName:e}of Cr)this[Tr("0x14")][Tr("0x10")][Tr("0x1b")](t)&&this._enableCommand(e);this[Tr("0x14")].plugins[Tr("0x21")](Tr("0xf"))[Tr("0x22")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(Tr("0x23")==o[Tr("0x24")]){const e=o[Tr("0x2")][0][Tr("0x1d")];if(e){const o=n(this[Tr("0x14")].plugins.get(Tr("0x17"))[Tr("0x5")](this[Tr("0x14")][Tr("0x25")][Tr("0x21")](Tr("0xe"))).find((t=>t[Tr("0x6")]==e))[Tr("0x1")])[Tr("0x3")]();return{type:Tr("0x9"),content:Yo(t,Tr("0xc"),o)}}return{type:"format",content:Yo(t,Tr("0xa"))}}if("fontFamily"==o[Tr("0x24")]){const e=o[Tr("0x2")][0][Tr("0x1d")];return e?{type:Tr("0x9"),content:Yo(t,Tr("0x1a"),e)}:{type:"format",content:Yo(t,Tr("0x2a"))}}if(Tr("0x20")==o[Tr("0x24")]){const e=o[Tr("0x2")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x14")].config.get(Tr("0x11"))).find((t=>t[Tr("0x6")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[Tr("0x3")]()),{type:Tr("0x9"),content:Yo(t,Tr("0x26"),i)[Tr("0x27")](),color:{value:e,title:i||r}}}return{type:Tr("0x9"),content:Yo(t,Tr("0x18"))}}if(Tr("0x28")==o[Tr("0x24")]){const e=o[Tr("0x2")][0][Tr("0x1d")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x14")].config[Tr("0x21")]("fontBackgroundColor.colors")).find((t=>t.model==e));let r=e,i="";return o&&(r=o.label,i=n(r)[Tr("0x3")]()),{type:Tr("0x9"),content:Yo(t,Tr("0x1f"),i)[Tr("0x27")](),color:{value:e,title:i||r}}}return{type:Tr("0x9"),content:Yo(t,Tr("0x4"))}}}}))}[Tr("0x12")](t){const e=this.editor;e[Tr("0x10")][Tr("0x21")](Tr("0xf"))[Tr("0xb")](t,((n,o={})=>{const s=e[Tr("0x6")][Tr("0x29")][Tr("0x19")],r=o[Tr("0x1d")];s[Tr("0xd")]?n(o):e[Tr("0x6")][Tr("0x1e")]((()=>{const n=Array[Tr("0x8")](s[Tr("0x1c")]());for(const o of n){const n=r?[o]:Es(t,o,e[Tr("0x6")]);for(const o of n)e[Tr("0x10")][Tr("0x21")](Tr("0xf"))[Tr("0x13")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const kr=["commandName","charAt","forward","toUpperCase","modifySelection","enableCommand","label","slice","*Set format to:* %0","pasteFormat","from","title","fontSize.options","getAttributeProperties","TrackChangesEditing","normalizeSizeOptions","format","selection","fontBackgroundColor","getFirstPosition","join","backward","length","fontSize","change","get","model","keys","copyFormat","getSelectedBlocks","registerDescriptionCallback","commands","getLastPosition","afterInit","plugins","markInlineFormat","commandParams","editor","toLowerCase","isBlock","word","entries","isFormatting","fontColor","getItems","getAttributes","createSelection","schema","boolean","getRanges","document","find","FontSize","isCollapsed","config"];var Ar,vr;Ar=kr,vr=222,function(t){for(;--t;)Ar.push(Ar.shift())}(++vr);const Rr=function(t,e){return kr[t-=0]};class Sr extends t.Plugin{[Rr("0x1f")](){const t=this[Rr("0x23")],n=t.model,o=n[Rr("0x30")][Rr("0xf")],s=t[Rr("0x20")][Rr("0x17")](Rr("0xc")),r=t.locale,i=t[Rr("0x1d")][Rr("0x17")](Rr("0x1a")),x=t[Rr("0x1d")][Rr("0x17")](Rr("0x7"));i&&x&&(s[Rr("0x3")](Rr("0x7"),((t,r={})=>{const i=r;n[Rr("0x16")]((()=>{const t=Array[Rr("0x8")](o[Rr("0x2f")]()),r=o[Rr("0x33")]?[Ir(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Rr("0x2b")]()){const t=e[Rr("0xb")](n);t&&t[Rr("0x28")]&&(yield n)}}(t,n));for(const e of t[Rr("0x2f")]())for(const t of e[Rr("0x2a")]())!n[Rr("0x25")](t)&&o(t)&&(yield t);for(const e of t[Rr("0x1b")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Rr("0x2d")]))||0!==Object[Rr("0x19")](i)[Rr("0x14")])for(const t of r)s[Rr("0x21")](t,{commandName:Rr("0x7"),commandParams:[i]})}))})),s._descriptionFactory[Rr("0x1c")]((e=>{const{data:n}=e;if(n&&Rr("0x7")===n[Rr("0x35")]){const e=[],o=n[Rr("0x22")][0];for(const[n,s]of Object[Rr("0x27")](o))e.push(Lr(t,n,s));return e[Rr("0x14")]?{type:Rr("0xe"),content:Yo(r,Rr("0x6"),e.join(", "))}:{type:Rr("0xe"),content:Yo(r,"*Remove all formatting*")}}})),t[Rr("0x20")][Rr("0x17")]("TrackChangesEditing")[Rr("0x3")]("copyFormat"))}}function Ir(t,e){const n=t[Rr("0x2c")](e);t.modifySelection(n,{unit:Rr("0x26"),direction:Rr("0x13")});const o=n[Rr("0x11")]();t[Rr("0x2")](n,{unit:Rr("0x26"),direction:Rr("0x0")});const s=n[Rr("0x1e")]();return t.createRange(o,s)}function Lr(t,e,n){const o=t.locale.t,r=e.split(/(?=[A-Z])/)[Rr("0x12")](" "),i=o(r[Rr("0x36")](0)[Rr("0x1")]()+r[Rr("0x5")](1))[Rr("0x24")]();if(Rr("0x2e")==typeof n)return i;if(Rr("0x29")===e||Rr("0x10")===e){const e=(0,s.normalizeColorOptions)(t[Rr("0x34")][Rr("0x17")]("fontColor.colors"))[Rr("0x31")]((t=>t[Rr("0x18")]==n));return i+" ("+(e?o(e[Rr("0x4")])[Rr("0x24")]():n)+")"}if(Rr("0x15")===e&&isNaN(parseFloat(n))){const e=t.plugins[Rr("0x17")](Rr("0x32"))[Rr("0xd")](t.config[Rr("0x17")](Rr("0xa"))).find((t=>t.model==n));return i+" ("+(e?o(e[Rr("0x9")])[Rr("0x24")]():n)+")"}return i+" ("+n+")"}const Nr=["selection","from","plugins","has","parent","document","get","model","heading","*Change to:* %0","_descriptionFactory","checkChild","getSelectedBlocks","paragraph","registerDescriptionCallback","markBlockFormat","change","value","TrackChangesEditing","name","commandParams","HeadingEditing","blockName","locale","ELEMENT_HEADING_CUSTOM","format","find","afterInit","heading.options","formatBlock","registerElementLabel","editor","config"];var wr,Mr;wr=Nr,Mr=465,function(t){for(;--t;)wr.push(wr.shift())}(++Mr);const Or=function(t,e){return Nr[t-=0]};class Fr extends t.Plugin{[Or("0x18")](){const t=this.editor,e=t[Or("0x14")],n=t[Or("0x1d")][Or("0x3")](Or("0x19"));if(!t.plugins[Or("0x0")](Or("0x12")))return;const o=t[Or("0x20")][Or("0x3")](Or("0xf"));o.enableCommand(Or("0x5"),((e,n)=>{const s=n[Or("0xe")],r=Array[Or("0x1f")](this[Or("0x1c")].model[Or("0x2")][Or("0x1e")][Or("0x9")]()).filter((t=>{return e=t,n=s,(o=this[Or("0x1c")][Or("0x4")].schema)[Or("0x8")](e[Or("0x1")],n)&&!o.isObject(e)&&e[Or("0x10")]!=n;var e,n,o}));t.model[Or("0xd")]((()=>{for(const t of r)o[Or("0xc")](t,{commandName:Or("0x5"),commandParams:[n],formatGroupId:Or("0x13")},_s(t))}))}));for(const t of n)Or("0xa")!=t.model&&o[Or("0x7")][Or("0x1b")](t.model,(e=>{const n=Pr(t[Or("0x4")]);return null!==n?s(e,n):r(e,t.title)}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,Or("0x15"),[t,n])}o._descriptionFactory[Or("0xb")]((t=>{const{type:o,data:i}=t;if(Or("0x1a")==o&&i&&"heading"==i.commandName){const t=i[Or("0x11")][0][Or("0xe")],o=Pr(t);if(null!==o)return{type:"format",content:Yo(e,Or("0x6"),s(1,o))};const x=n[Or("0x17")]((e=>e[Or("0x4")]===t)).title;return{type:Or("0x16"),content:Yo(e,Or("0x6"),r(1,x))}}}))}}function Pr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Dr=["locale","registerDescriptionCallback","FORMAT_HIGHLIGHT","find","commandParams","commandName","format","enableCommand","afterInit","getLastMatchingPosition","editor","item","backward","toLowerCase","highlight.options","formatInline","push","config","getRanges","plugins","TrackChangesEditing","markInlineFormat","model","selection","_descriptionFactory","title","HighlightEditing","hasAttribute","highlight","has","getAttribute","get","change"];var Br,jr;Br=Dr,jr=146,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x1b")](){const t=this[Ur("0x1d")];if(!t.plugins[Ur("0xf")](Ur("0xc")))return;const e=t[Ur("0x5")][Ur("0x11")](Ur("0x6"));e[Ur("0x1a")](Ur("0xe"),((n,o={})=>{const s=t.model.document[Ur("0x9")],r=s[Ur("0x10")]("highlight");let i=o.value,x=[];if(s.isCollapsed){const e=s.getFirstPosition();if(!s[Ur("0xd")]("highlight"))return void n(o);{const n=t=>t[Ur("0x1e")][Ur("0x10")](Ur("0xe"))===r,o=e[Ur("0x1c")](n,{direction:Ur("0x1f")}),s=e[Ur("0x1c")](n);x=[t[Ur("0x8")].createRange(o,s)],i==r&&(i=null)}}else for(const e of s[Ur("0x4")]())i?x[Ur("0x2")](e):x.push(...Es(Ur("0xe"),e,t[Ur("0x8")]));t[Ur("0x8")][Ur("0x12")]((()=>{for(const t of x)e[Ur("0x7")](t,{commandName:Ur("0xe"),commandParams:[{value:i}]})}))}));const n=t[Ur("0x13")];e[Ur("0xa")][Ur("0x14")]((e=>{const{type:o,data:s}=e;if(Ur("0x1")==o&&s&&"highlight"==s[Ur("0x18")]){const e=n.t,o=s[Ur("0x17")][0].value;if(o){const s=t[Ur("0x3")][Ur("0x11")](Ur("0x0"))[Ur("0x16")]((t=>t.model==o)),r=e(s[Ur("0xb")])[Ur("0x20")]();return{type:Ur("0x19"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s.color,title:s[Ur("0xb")]}}}return{type:Ur("0x19"),content:Yo(n,"*Remove highlight*",Yo(n,Ur("0x15")))}}}))}}const Hr=["dataDowncast","plugins","registerElementLabel","horizontalLine","for","ck-horizontal-line","locale","conversion","createPositionAt","showSuggestionHighlights","editor","get","insert","ELEMENT_HORIZONTAL_LINE","HorizontalLineEditing","div","addClass","TrackChangesEditing","_descriptionFactory","elementToStructure"];var zr,Wr;zr=Hr,Wr=213,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("0x11")];if(!t[Vr("0x8")].has(Vr("0x1")))return;t[Vr("0x8")].get("TrackChangesEditing").enableCommand(Vr("0xa"));const e=t[Vr("0x8")][Vr("0x12")](Vr("0x4")),n=t[Vr("0xd")];e[Vr("0x5")][Vr("0x9")](Vr("0xa"),(t=>Yo(n,Vr("0x0"),t))),t[Vr("0xe")][Vr("0xb")](Vr("0x7"))[Vr("0x6")]({model:Vr("0xa"),view:(t,{writer:e,options:n})=>{if(!n[Vr("0x10")])return null;const o=e.createContainerElement(Vr("0x2")),s=e.createEmptyElement("hr");return e[Vr("0x3")](Vr("0xc"),o),e[Vr("0x13")](e[Vr("0xf")](o,0),s),o},converterPriority:"high"})}}const qr=["TrackChangesEditing","_descriptionFactory","editor","registerElementLabel","element","selection","model","registerDescriptionCallback","value","format","editing","ELEMENT_HTML_EMBED","change","commandName","getAttribute","*Change %0 content*","markBlockFormat","has","getSelectedElement","document","get","afterInit","plugins","htmlEmbed","rawHtml","rawHtmlApi","cancel","enableCommand"];var Xr,$r;Xr=qr,$r=456,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0xd")](){const t=this[Jr("0x16")];if(!t[Jr("0xe")][Jr("0x9")]("HtmlEmbed"))return;const e=t.plugins[Jr("0xc")](Jr("0x14")),n=t.locale,o=t[Jr("0x2")].view[Jr("0xb")][Jr("0x19")];e[Jr("0x15")][Jr("0x17")](Jr("0x10"),(t=>Yo(n,Jr("0x3"),t))),t[Jr("0xe")].get("TrackChangesEditing")[Jr("0x13")](Jr("0xf"),((n,s)=>{const r=t[Jr("0x1a")],i=r.document[Jr("0x19")];r[Jr("0x4")]((()=>{const t=function(t){const e=t[Jr("0xa")]();return e&&e.is(Jr("0x18"),Jr("0x10"))?t[Jr("0xa")]():null}(i);if(!t)return void n(null);const r=t[Jr("0x6")](Jr("0x0"))||"";void 0!==s&&s!==r&&(e[Jr("0x8")](t,{commandName:Jr("0xf"),commandParams:[s]}),o.getSelectedElement().getCustomProperty(Jr("0x11"))[Jr("0x12")]())}))})),e[Jr("0x15")][Jr("0x1b")]((t=>{const{data:e}=t;if(e&&Jr("0xf")==e[Jr("0x5")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Jr("0x1"),content:Yo(n,Jr("0x7"),t)}}}))}}const Zr=["toggleImageCaption","markInsertion","markInlineFormat","_suggestionFactory","schema","chain","isBlockImage","accept","forceDefaultExecution","commandReversedParams","isCollapsed","end","imageCaption","getSuggestionCallback","findIndex","subType","addObject","getContainedElement","ELEMENT_IMAGE","newRange","imageStylePreApply","markBlockFormat","isOwn","commandName","document","get","getChangedMarkers","ImageUtils","registerCustomCallback","hasSuggestion","Inline image to block image","refresh","registerElementLabel","has","from","name","discard","getFirstRange","removeObject","Block image to inline image","toLowerCase","getAttribute","detach","*Format:* %0","width","selection","model","fromPosition","imageTypeBlock","head","change","_descriptionFactory","type","toPrevious","value","differ","*Remove image text alternative*","getCaptionFromImageModelElement","ImageTextAlternativeEditing","nodeBefore","formatBlock","join","format","side","imageTypeInline","formatInline","commands","ELEMENT_CAPTION","deletion","ImageResize","createRange","alt","plugins","convertInlineImageToBlock","commandParams","*Set image text alternative:* %0","ImageCaptionUtils","getClosestSelectedImageElement","convertBlockImageToInline","getSuggestion","insertImage","title","getSuggestions","discardSuggestion","shouldConvertImageType","next","ImageInlineEditing","newValue","element","getNearestSelectionRange","isIntersecting","enableCommand","nodeAfter","ImageCaptionEditing","isBefore","imageStylePostApply","setImageNaturalSizeAttributes","suggestion","*Set image width:* %0","isInContent","imageStyle","toNext","locale","FORMAT_SIDE_IMAGE","ImageStyleEditing","uploadImage","createRangeOn","registerPostFixer","start","author","TrackChangesEditing","resizeImage","filter","registerDescriptionCallback","normalizedStyles","*Reset image width*","afterInit","backward","insertion","isEqual","resizedWidth","imageTextAlternative"];var Yr,ti;Yr=Zr,ti=109,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x7")](){const t=this.editor;if(!t[ei("0x55")].has("ImageEditing"))return;const n=t[ei("0x55")][ei("0x26")](ei("0x1")),o=t[ei("0x55")][ei("0x26")](ei("0x28")),s={},r=t[ei("0x73")];if(n[ei("0x68")](ei("0x5d")),n[ei("0x40")].registerElementLabel("imageBlock",(t=>Yo(r,ei("0x1f"),t))),n[ei("0x40")].registerElementLabel("imageInline",(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[ei("0x40")][ei("0x2d")]("caption",(()=>Yo(r,ei("0x50")))),t.plugins[ei("0x2e")]("ImageUploadEditing")&&n[ei("0x68")](ei("0x76")),t[ei("0x55")][ei("0x2e")]("ImageBlockEditing")&&t[ei("0x55")].has(ei("0x63"))&&(n[ei("0x68")](ei("0x4d"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[ei("0x3b")].document[ei("0x3a")]);t.model.change((()=>{n[ei("0x22")](r,{commandName:ei("0x4d"),commandParams:[s]},[],ei("0x5b"))}))})),n[ei("0x68")](ei("0x3d"),((e,s)=>{t[ei("0x3b")][ei("0x3f")]((r=>{let x=o[ei("0x5a")](t.model[ei("0x25")].selection),a=r[ei("0x77")](x);const c=i.LivePosition[ei("0x3c")](a[ei("0x79")],ei("0x42")),l=i.LivePosition[ei("0x3c")](a[ei("0x18")],ei("0x72"));n[ei("0x15")]((()=>e(s))),x=o[ei("0x5a")](t[ei("0x3b")].document.selection),a=r.createRangeOn(x);const d=r.createRange(c,l);c[ei("0x37")](),l[ei("0x37")](),n.markBlockFormat(x,{commandName:ei("0x4d"),commandParams:[s]},[],"convertInlineImageToBlock"),d[ei("0x79")].isBefore(a.start)&&n[ei("0xe")](r[ei("0x53")](d[ei("0x79")],a[ei("0x79")]),ei("0x56")),a[ei("0x18")][ei("0x6b")](d.end)&&n.markInsertion(r[ei("0x53")](a[ei("0x18")],d.end),ei("0x56"))}))})),n[ei("0x10")][ei("0x29")](ei("0x49"),ei("0x56"),ei("0x4a"),(()=>!1)),n[ei("0x10")][ei("0x29")](ei("0x49"),"convertInlineImageToBlock","accept",(()=>!1)),n._suggestionFactory[ei("0x29")](ei("0x49"),"convertInlineImageToBlock",ei("0x31"),n[ei("0x10")].getSuggestionCallback("formatBlock","",ei("0x14"))),n._suggestionFactory[ei("0x29")](ei("0x9"),ei("0x56"),ei("0x4a"),(()=>!1)),n[ei("0x10")].registerCustomCallback(ei("0x9"),ei("0x56"),ei("0x31"),(([e])=>{const o=n[ei("0x10")][ei("0x1a")]("insertion","",ei("0x31"));let s=e[ei("0x79")],r=e[ei("0x18")];const i=t[ei("0x3b")][ei("0x11")][ei("0x66")](s,ei("0x8")),x=t[ei("0x3b")][ei("0x11")][ei("0x66")](r,"forward");i.isCollapsed&&(s=i[ei("0x79")]),x[ei("0x17")]&&(r=x[ei("0x18")]),o([t.model[ei("0x53")](s,r)])})),n[ei("0x10")][ei("0x29")](ei("0x49"),ei("0x56"),ei("0x12"),c),n[ei("0x10")][ei("0x29")](ei("0x9"),ei("0x56"),ei("0x12"),c)),t[ei("0x55")].has(ei("0x6a"))&&(n[ei("0x68")](ei("0xd"),((e,s)=>{const r=t[ei("0x55")].get(ei("0x59"));let i=o.getClosestSelectedImageElement(t[ei("0x3b")][ei("0x25")].selection),x=r[ei("0x46")](i);t[ei("0x3b")][ei("0x3f")]((()=>{if(x)return void n.markDeletion(t[ei("0x3b")][ei("0x77")](x));const a=o.isBlockImage(i);e(s),i=o[ei("0x5a")](t[ei("0x3b")].document[ei("0x3a")]),x=r.getCaptionFromImageModelElement(i),n[ei("0xe")](t[ei("0x3b")].createRangeOn(x),a?null:ei("0x19"))}))})),n[ei("0x10")][ei("0x29")](ei("0x9"),ei("0x19"),ei("0x12"),c)),t[ei("0x55")][ei("0x2e")](ei("0x75"))){n.enableCommand("imageStyle",((s,r)=>{const i=t.plugins[ei("0x26")]("Users").me,x=t[ei("0x4f")][ei("0x26")](ei("0x71"));let a=o[ei("0x5a")](t[ei("0x3b")].document[ei("0x3a")]),c=t[ei("0x3b")][ei("0x77")](a),l=x[ei("0x43")];if(l==r.value)return;const d={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t[ei("0x3b")][ei("0x3f")]((()=>{if(n[ei("0x5f")]()[ei("0x3")]((t=>t[ei("0x70")]&&i==t[ei("0x0")]&&(ei("0x49")==t[ei("0x41")]||ei("0x4e")==t.type)&&(ei("0x21")==t[ei("0x1c")]||"imageStylePostApply"==t.subType)&&t[ei("0x32")]()[ei("0xa")](c))).forEach((t=>n[ei("0x60")](t[ei("0x3e")]))),a=o[ei("0x5a")](t[ei("0x3b")].document[ei("0x3a")]),c=t.model[ei("0x77")](a),x[ei("0x2c")](),t[ei("0x4f")].get(ei("0x4d"))[ei("0x2c")](),t.commands[ei("0x26")](ei("0x3d")).refresh(),l=x.value,l!=r[ei("0x43")])return o.isInlineImage(a)&&x[ei("0x61")](r[ei("0x43")],a)?(s({...r,setImageSizes:!1}),a=o[ei("0x5a")](t.model.document[ei("0x3a")]),void n[ei("0x22")](a,{...d,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],ei("0x21"))):void(o[ei("0x13")](a)?n.markBlockFormat(a,d,[],ei("0x6c")):n[ei("0xf")](c,d,ei("0x6c")))}))}));for(const e of t[ei("0x55")].get(ei("0x75"))[ei("0x5")])s[e[ei("0x30")]]=e[ei("0x5e")][ei("0x35")]();n[ei("0x10")][ei("0x29")](ei("0x49"),"imageStylePreApply","join",(()=>!1)),n._suggestionFactory.registerCustomCallback(ei("0x49"),ei("0x6c"),"join",(()=>!1)),n[ei("0x10")].registerCustomCallback(ei("0x4e"),ei("0x6c"),ei("0x4a"),(()=>!1)),n[ei("0x10")][ei("0x29")](ei("0x49"),ei("0x21"),"accept",(([t])=>{o[ei("0x6d")](t[ei("0x1e")]())})),n._suggestionFactory.registerCustomCallback(ei("0x49"),ei("0x21"),ei("0x31"),((t,e)=>{n[ei("0x10")][ei("0x1a")](ei("0x49"),"",ei("0x14"))(t,{commandName:e.commandName,commandParams:e[ei("0x16")]})})),n[ei("0x10")].registerCustomCallback(ei("0x49"),"imageStylePreApply",ei("0x12"),c)}const x=[{type:ei("0x49"),subType:ei("0x21")},{type:"insertion",subType:ei("0x19")},{type:"formatBlock",subType:ei("0x56")},{type:"insertion",subType:ei("0x56")}];function a(t,e){const s=x[ei("0x1b")]((({type:e,subType:n})=>t.type==e&&t[ei("0x1c")]==n)),r=x[ei("0x1b")]((({type:t,subType:n})=>e[ei("0x41")]==t&&e[ei("0x1c")]==n));if(s<0||r<0)return!1;const i=t[ei("0x32")](),a=e[ei("0x32")]();if((0==s||1==s)&&2==r&&i[ei("0x67")](a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,ei("0x9"))[ei("0x3")]((({suggestion:t,meta:e})=>e[ei("0x23")]&&ei("0x56")==t.subType));if(t.length>1&&a[ei("0x18")][ei("0xa")](i[ei("0x79")]))return!0;if(1==t.length&&(i[ei("0x79")][ei("0xa")](a[ei("0x18")])||i.end.isEqual(a[ei("0x79")])))return!0}if(3==s&&3==r&&i.start[ei("0x6b")](a.start)){const t=i[ei("0x18")][ei("0x69")],e=a[ei("0x79")][ei("0x48")];return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model[ei("0x25")][ei("0x78")]((()=>{let e=!1;const s=Array[ei("0x2f")](t.model[ei("0x25")][ei("0x44")][ei("0x27")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n._splitMarkerName(t);if(ei("0x6e")==s&&n[ei("0x2a")](a)){if(ei("0x49")==i&&(ei("0x21")==x||"imageStylePostApply"==x)){const t=n[ei("0x5c")](a);if(r.newRange){const s=t[ei("0x32")]()[ei("0x1e")]();if(o[ei("0x13")](s))continue;n.discardSuggestion(t),e=!0}}if("insertion"==i&&ei("0x19")==x&&!r[ei("0x20")]){const t=n[ei("0x5c")](a);t.next&&t[ei("0x62")].isInContent&&(n[ei("0x60")](t[ei("0x62")]),e=!0)}}}return e})),t.plugins[ei("0x2e")](ei("0x52"))&&n[ei("0x68")](ei("0x2"),((e,s)=>{const r=o[ei("0x5a")](t.model.document.selection);r[ei("0x36")](ei("0xb"))!=s[ei("0x39")]&&t[ei("0x3b")][ei("0x3f")]((()=>{n[ei("0x22")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t.plugins[ei("0x2e")](ei("0x47"))&&n.enableCommand(ei("0xc"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[ei("0x3b")][ei("0x25")][ei("0x3a")]);(r.hasAttribute(ei("0x54"))?r[ei("0x36")]("alt"):"")!=s[ei("0x64")]&&t[ei("0x3b")][ei("0x3f")]((()=>{n.markBlockFormat(r,{commandName:ei("0xc"),commandParams:[s]})}))})),n._descriptionFactory[ei("0x4")]((t=>{if(x.find((({type:e,subType:n})=>t[ei("0x41")]==e&&t[ei("0x1c")]==n)))return t.previous?{}:void 0})),n[ei("0x40")][ei("0x4")]((t=>{if("insertion"==t[ei("0x41")]||ei("0x51")==t[ei("0x41")]){const e=t[ei("0x1e")]();if(e&&e.is(ei("0x65"),"caption"))return{type:ei("0x9")==t[ei("0x41")]?ei("0x1d"):ei("0x33"),element:e,quantity:1}}})),n[ei("0x40")][ei("0x4")]((t=>ei("0x49")==t[ei("0x41")]&&ei("0x56")==t[ei("0x1c")]?{type:"format",content:ei("0x2b")}:ei("0x49")==t[ei("0x41")]&&"convertBlockImageToInline"==t.subType?{type:"format",content:ei("0x34")}:void 0)),n._descriptionFactory[ei("0x4")]((t=>{const{data:e}=t;if(e){if(ei("0x71")==e[ei("0x24")]){const t=e[ei("0x57")][0][ei("0x43")];return n=ei("0x4c")===t?Yo(r,ei("0x74")):s[t]||t,{type:ei("0x4b"),content:Yo(r,ei("0x38"),n)}}if(ei("0xc")==e[ei("0x24")]){const t=e[ei("0x57")][0][ei("0x64")];return t?{type:"format",content:Yo(r,ei("0x58"),'"'+t+'"')}:{type:ei("0x4b"),content:Yo(r,ei("0x45"))}}if(ei("0x2")==e.commandName){const t=e[ei("0x57")][0].width;return t?{type:"format",content:Yo(r,ei("0x6f"),t)}:{type:"format",content:Yo(r,ei("0x6"))}}}var n}))}}const oi=["Users","getSelectedElement","plugins","_suggestionFactory","get","*Format:* replace image URL","enableCommand","getSuggestionCallback","registerDescriptionCallback","editor","accept","commandParams","commandName","document","src","afterInit","author","ImageEditing","locale","getAttribute","getContainedElement","handleReplaceImageCommand","handleSuggestionDescription","markBlockFormat","subType","TrackChangesEditing","change","replaceImageSource","data","format","model","registerCustomCallback","formatBlock","discard","getSuggestions","source"];var si,ri;si=oi,ri=304,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{[ii("0x23")](){if(!this.editor[ii("0x16")].has(ii("0x1")))return;const t=this.editor.plugins.get(ii("0x9"));t[ii("0x1a")](ii("0xb"),((t,e)=>this[ii("0x5")](t,e))),t[ii("0x17")].registerCustomCallback(ii("0x10"),ii("0xb"),"accept",t._suggestionFactory[ii("0x1b")](ii("0x10"),null,"discard")),t[ii("0x17")][ii("0xf")](ii("0x10"),ii("0xb"),ii("0x11"),t[ii("0x17")].getSuggestionCallback("formatBlock",null,ii("0x1e"))),t._descriptionFactory[ii("0x1c")]((t=>this[ii("0x6")](t)))}[ii("0x5")](t,e){const n=this[ii("0x1d")][ii("0x16")][ii("0x18")]("TrackChangesEditing"),o=this[ii("0x1d")][ii("0xe")][ii("0x21")].selection[ii("0x15")]();this[ii("0x1d")][ii("0xe")][ii("0xa")]((()=>{let s=o[ii("0x3")](ii("0x22"));const r=this[ii("0x1d")][ii("0x16")][ii("0x18")](ii("0x14")).me;for(const t of n[ii("0x12")]({skipNotAttached:!0})){const e=t[ii("0x4")]();if("replaceImageSource"===t[ii("0x8")]&&e===o){t[ii("0x0")]!==r&&t[ii("0x11")](),s=t[ii("0xc")][ii("0x1f")][0][ii("0x13")];break}}t(e),n[ii("0x7")](o,{commandName:ii("0xb"),commandParams:[{source:s}]},[],ii("0xb"))}))}[ii("0x6")](t){const{data:e}=t;if(e&&ii("0xb")===e[ii("0x20")]){const t=ii("0x19");return{type:ii("0xd"),content:Yo(this.editor[ii("0x2")],t)}}}}const ai=["collaboration_features","lowest","listenTo","commands","_trackChangesExecuted","execute","afterInit","_handleImportedData","bind","editor","_trackChangesValueDuringImport","forEach","value","Users","enableCommand","get","importWord","trackChanges","plugins"];var ci,li;ci=ai,li=161,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{constructor(t){super(t),this[di("0x1")]=!1,this[di("0xe")]=!1}[di("0x10")](){const t=this[di("0x0")],e=t[di("0xd")].get(di("0x7")),n=t[di("0xd")][di("0x6")](di("0x8"));e&&(e.on("execute",((t,[,e])=>{this[di("0x1")]=n[di("0x3")],e[di("0xa")].track_changes=!this[di("0x1")]}),{priority:"high"}),this[di("0xc")](e,"dataInsert",this[di("0x11")][di("0x12")](this)),this[di("0xc")](e,"dataInsert",(()=>{this._trackChangesExecuted&&(n.execute(),this[di("0xe")]=!1)}),{priority:di("0xb")}),t[di("0x9")][di("0x6")]("TrackChangesEditing")[di("0x5")]("importWord"))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[di("0x0")][di("0xd")][di("0x6")](di("0x8")),s=o[di("0x3")];this._trackChangesValueDuringImport!==s&&(o[di("0xf")](),this[di("0xe")]=!0),n&&n[di("0x2")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[di("0x9")].get(di("0x4")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:di("0x7")}}};this[di("0x0")][di("0x9")].get("TrackChangesEditing")._setSuggestionData(s)}))}}const gi=["locale","outdentBlock","plugins","indentBlock","filter","IndentEditing","blockIndent","indent","*Outdent:* %0","*Indent:* %0","registerDescriptionCallback","document","_descriptionFactory","editor","getItemLabel","enableCommand","checkAttribute","model","schema","has","afterInit","outdent","IndentBlock","format","change","TrackChangesEditing","commandName"];var mi,fi;mi=gi,fi=335,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0x9")](){const t=this.editor,e=t[hi("0x12")].get(hi("0xe"));t.plugins[hi("0x8")](hi("0x15"))&&(e.enableCommand(hi("0x17")),e.enableCommand(hi("0xa")));const n=t[hi("0x10")];if(t[hi("0x12")][hi("0x8")](hi("0xb"))){for(const n of[hi("0x13"),"outdentBlock"])e[hi("0x4")](n,(()=>{const o=Array.from(this[hi("0x2")].model[hi("0x0")].selection.getSelectedBlocks())[hi("0x14")]((t=>this[hi("0x2")].model[hi("0x7")][hi("0x5")](t,hi("0x16"))));t[hi("0x6")][hi("0xd")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[hi("0x1")][hi("0x1a")]((t=>{const{data:o}=t;if(!o)return;if(hi("0x13")!=o[hi("0xf")]&&hi("0x11")!=o[hi("0xf")])return;const s=t.getItems()[0],r=e._descriptionFactory[hi("0x3")](s);return hi("0x13")==o[hi("0xf")]?{type:"format",content:Yo(n,hi("0x19"),r)}:hi("0x11")==o[hi("0xf")]?{type:hi("0xc"),content:Yo(n,hi("0x18"),r)}:void 0}))}}}var bi,Ei,_i=["TrackChangesEditing","get","requires"];bi=_i,Ei=485,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);var Ti=function(t,e){return _i[t-=0]};class Ci extends t.Plugin{static get[Ti("0x0")](){return[Js.Input]}init(){this.editor.plugins[Ti("0x2")](Ti("0x1")).enableCommand("input")}}const yi=["document","change","getAttribute","unlink","getFirstPosition","LinkEditing","*Set link:* %0","format","markInlineFormat","locale","linkHref","_descriptionFactory","plugins","editor","commandName","link","isCollapsed","TrackChangesEditing","model","*Remove link*","registerDescriptionCallback","has","enableCommand"];var ki,Ai;ki=yi,Ai=268,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this[vi("0x15")];if(!t.plugins[vi("0x6")](vi("0xd")))return;const e=t[vi("0x14")].get(vi("0x2"));e[vi("0x7")](vi("0x0"),((n,o)=>{const s=t[vi("0x3")][vi("0x8")].selection;let r=[];if(s.isCollapsed){if(!s.hasAttribute(vi("0x12")))return void n(o);{const e=(0,Js.findAttributeRange)(s[vi("0xc")](),vi("0x12"),s.getAttribute(vi("0x12")),t[vi("0x3")]);r=[e]}}else r=Array.from(s.getRanges());t[vi("0x3")][vi("0x9")]((()=>{for(const t of r)e[vi("0x10")](t,{commandName:vi("0x0"),commandParams:[o]})}))})),e.enableCommand(vi("0xb"),(()=>{const n=this[vi("0x15")][vi("0x3")],o=n.document.selection;n[vi("0x9")]((()=>{let n=[];n=o[vi("0x1")]?[(0,Js.findAttributeRange)(o.getFirstPosition(),vi("0x12"),o[vi("0xa")](vi("0x12")),t[vi("0x3")])]:Es(vi("0x12"),o.getFirstRange(),t[vi("0x3")]);for(const t of n)e[vi("0x10")](t,{commandName:"unlink",commandParams:[]})}))})),e[vi("0x13")][vi("0x5")]((e=>{const{data:n}=e,o=t[vi("0x11")];if(n){if(vi("0x0")==n[vi("0x16")]){const t=n.commandParams[0];return{type:vi("0xf"),content:Yo(o,vi("0xe"),'"'+t+'"')}}return vi("0xb")==n[vi("0x16")]?{type:vi("0xf"),content:Yo(o,vi("0x4"))}:void 0}}))}}const Si=["bulletedList","*Outdent:* %0","indentList","element","commandName","createPositionAt","checkChild","selection","checkTodoList","numberedList","*Check item*","model","todo","previousSibling","value","markBlockFormat","before","add","List","get","has","document","listItem","*Change to:* %0","outdentList","getAttribute","ELEMENT_LIST_ITEM","name","_descriptionFactory","commands","bulleted","nextSibling","parent","todoListChecked","registerDescriptionCallback","forceValue","slice","ELEMENT_NUMBERED_LIST","replace","ELEMENT_TODO_LIST","todoList","listType","from","listIndent","registerElementLabel","numbered","_selectedElements","editor","afterInit","findIndex","commandParams","TrackChangesEditing","format","*Uncheck item*","enableCommand","plugins","push","createRange","schema","ELEMENT_BULLETED_LIST","ListEditing","change","filter","length","getSelectedBlocks"];var Ii,Li;Ii=Si,Li=463,function(t){for(;--t;)Ii.push(Ii.shift())}(++Li);const Ni=function(t,e){return Si[t-=0]};class wi extends t.Plugin{[Ni("0x28")](){const t=this[Ni("0x27")],e=t.locale;if(!t.plugins[Ni("0xc")](Ni("0x34")))return;const n=t[Ni("0x2f")][Ni("0xb")](Ni("0x2b")),o=t[Ni("0x2f")][Ni("0xc")]("TodoListEditing");function s(e){return()=>{const o=t[Ni("0x3")][Ni("0xd")][Ni("0x40")],s=t.commands[Ni("0xb")](e);if(s[Ni("0x6")])return void t.execute("paragraph",{});const r=e[Ni("0x1c")](0,-4),i=function(t,e,n){let o=Array[Ni("0x22")](t)[Ni("0x36")]((t=>{return e=t,(o=n)[Ni("0x3f")](e[Ni("0x18")],Ni("0xe"))&&!o.isObject(e);var e,o}));o=o[Ni("0x36")]((t=>!t.is(Ni("0x3c"),Ni("0xe"))||t[Ni("0x11")](Ni("0x21"))!=e));const s=new Set;for(const t of o)t.is(Ni("0x3c"),Ni("0xe"))?s[Ni("0x9")](Mi(t)):s[Ni("0x9")](t);return Array[Ni("0x22")](s)}(o[Ni("0x38")](),r,t.model[Ni("0x32")]);t[Ni("0x3")][Ni("0x35")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[Ni("0x6")]}],formatGroupId:"blockName"},Oi(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ni("0x22")](t);const n=e[Ni("0x29")]((t=>Ni("0xe")!=t.name));return n>-1&&(e=e[Ni("0x1c")](0,n)),e}(t[Ni("0x3")][Ni("0xd")][Ni("0x40")][Ni("0x38")]()),s=t.model[Ni("0x31")](t[Ni("0x3")].createPositionAt(o[0],Ni("0x8")),t[Ni("0x3")][Ni("0x3e")](o[o[Ni("0x37")]-1],"end"));t[Ni("0x3")].change((()=>{n[Ni("0x7")](s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[Ni("0x17")];for(;t&&t[Ni("0x11")](Ni("0x23"))>n[Ni("0x11")](Ni("0x23"));)e[Ni("0x9")](t),t=t[Ni("0x17")]}return Array[Ni("0x22")](e)}(o))}))}}n.enableCommand(Ni("0x1"),s(Ni("0x1"))),n.enableCommand("bulletedList",s(Ni("0x39"))),o&&n[Ni("0x2e")](Ni("0x20"),s(Ni("0x20"))),n[Ni("0x2e")](Ni("0x3b"),r(Ni("0x3b"))),n[Ni("0x2e")](Ni("0x10"),r(Ni("0x10"))),o&&n[Ni("0x2e")](Ni("0x0"),(()=>{const e=t[Ni("0x15")][Ni("0xb")]("checkTodoList"),o=Array.from(e[Ni("0x26")]);o[Ni("0x36")]((t=>t[Ni("0x11")](Ni("0x19"))!=e[Ni("0x6")])),t[Ni("0x3")][Ni("0x35")]((()=>{for(const t of o)n[Ni("0x7")](t,{commandName:Ni("0x0"),commandParams:[{forceValue:!e[Ni("0x6")]}]})}))})),n._descriptionFactory[Ni("0x24")](Ni("0xe"),(t=>Yo(e,Ni("0x12"),t))),n[Ni("0x14")][Ni("0x1a")]((t=>{const{data:n}=t;if(n){if("numberedList"==n[Ni("0x3d")]||Ni("0x39")==n[Ni("0x3d")]||Ni("0x20")==n[Ni("0x3d")])switch(n.commandName[Ni("0x1e")](Ni("0xa"),"")){case Ni("0x16"):return o(Yo(e,Ni("0x33")));case Ni("0x25"):return o(Yo(e,Ni("0x1d")));case Ni("0x4"):return o(Yo(e,Ni("0x1f")))}if(Ni("0x3b")==n[Ni("0x3d")])return{type:Ni("0x2c"),content:Yo(e,"*Indent:* %0",Yo(e,Ni("0x12")))};if("outdentList"==n[Ni("0x3d")])return{type:"format",content:Yo(e,Ni("0x3a"),Yo(e,Ni("0x12")))};if(Ni("0x0")==n[Ni("0x3d")])return n[Ni("0x2a")][0][Ni("0x1b")]?{type:Ni("0x2c"),content:Yo(e,Ni("0x2"))}:{type:"format",content:Yo(e,Ni("0x2d"))}}function o(t){return{type:Ni("0x2c"),content:Yo(e,Ni("0xf"),t)}}}))}}function Mi(t){const e=t[Ni("0x11")](Ni("0x23"));if(0==e)return t;let n=t;for(;t[Ni("0x5")]&&t[Ni("0x5")].is(Ni("0x3c"),Ni("0xe"));){const o=t[Ni("0x5")].getAttribute(Ni("0x23"));if(o==e)n=t[Ni("0x5")];else if(o<e)break;t=t.previousSibling}return n}function Oi(t){const e=[];if(t.is(Ni("0x3c"),"listItem")&&t.getAttribute(Ni("0x23"))>0){let n=t[Ni("0x17")];for(;n&&Ni("0xe")==n[Ni("0x13")]&&n[Ni("0x11")](Ni("0x23"))==t[Ni("0x11")]("listIndent");)e[Ni("0x30")](n),n=n.nextSibling}return e}const Fi=["config","length","ELEMENT_","markMultiRangeBlockFormat","createRange","has","_getSuggestionBlocksForListStyle","push","getAttribute","backward","*Format:* set order to reversed","listItem","*Change to:* %0","list.properties","handleDescriptions","bind","document","filter","startIndex","unshift","parent","*Format:* set order to regular","_LIST_","createPositionAt","_descriptionFactory","change","ListPropertiesEditing","TrackChangesEditing","commandParams","ListUtils","commandName","_getTranslationKeyForListStyle","get","getSiblingNodes","format","getSelectedBlocks","*Format:* set start index to %0","handleListStyleCommand","reversed","element","before","enableCommand","styles","plugins","listStart","numbered","getFirstPosition","_getSuggestionBlocks","listReversed","toUpperCase","listType","selection","listStyle","registerDescriptionCallback","model","editor","map","forward","getListTypeFromListStyleType","handleListStartCommand","type","handleListReversedCommand"];var Pi,Di;Pi=Fi,Di=395,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){if(!this[Bi("0x20")].plugins[Bi("0x2c")](Bi("0x3")))return;const t=this[Bi("0x20")][Bi("0x27")][Bi("0x9")](Bi("0x34")),e=this[Bi("0x20")][Bi("0x14")][Bi("0x9")](Bi("0x4"));t[Bi("0x13")]&&e.enableCommand(Bi("0x1d"),this[Bi("0xe")][Bi("0x36")](this)),t.reversed&&e[Bi("0x12")](Bi("0x19"),this[Bi("0x26")][Bi("0x36")](this)),t[Bi("0x39")]&&e[Bi("0x12")](Bi("0x15"),this.handleListStartCommand[Bi("0x36")](this)),e[Bi("0x1")][Bi("0x1e")](this[Bi("0x35")][Bi("0x36")](this))}handleListStyleCommand(t,e={}){const n=this[Bi("0x20")].plugins[Bi("0x9")](Bi("0x4")),o=this._getSuggestionBlocksForListStyle();this[Bi("0x20")][Bi("0x1f")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:Bi("0x1d"),commandParams:[{type:e.type}],formatGroupId:Bi("0x1d")})}))}handleListReversedCommand(t,e={}){const n=this[Bi("0x20")][Bi("0x14")][Bi("0x9")]("TrackChangesEditing"),o=this[Bi("0x18")]((t=>t.is(Bi("0x10"),Bi("0x32"))&&Bi("0x16")===t.getAttribute(Bi("0x1b"))));if(o[Bi("0x28")]<1)return;const s=o.map((t=>this[Bi("0x20")].model[Bi("0x2b")](this[Bi("0x20")].model[Bi("0x0")](t,Bi("0x11")),this[Bi("0x20")][Bi("0x1f")].createPositionAt(t,0))));this[Bi("0x20")][Bi("0x1f")].change((()=>{n[Bi("0x2a")](s,{commandName:Bi("0x19"),commandParams:[{reversed:e[Bi("0xf")]}],formatGroupId:Bi("0x19")})}))}[Bi("0x24")](t,e={}){const n=this[Bi("0x20")][Bi("0x14")][Bi("0x9")](Bi("0x4")),o=this[Bi("0x18")]((t=>t.is(Bi("0x10"),"listItem")&&Bi("0x16")===t[Bi("0x2f")](Bi("0x1b"))));if(o[Bi("0x28")]<1)return;const s=o[Bi("0x21")]((t=>this[Bi("0x20")][Bi("0x1f")][Bi("0x2b")](this.editor[Bi("0x1f")][Bi("0x0")](t,"before"),this.editor[Bi("0x1f")][Bi("0x0")](t,0))));this[Bi("0x20")].model[Bi("0x2")]((()=>{n[Bi("0x2a")](s,{commandName:Bi("0x15"),commandParams:[{startIndex:e[Bi("0x39")]}],formatGroupId:Bi("0x15")})}))}handleDescriptions(t){const e=this.editor.locale,{data:n}=t;if(!n)return;let o,s;switch(n[Bi("0x7")]){case Bi("0x1d"):o=Bi("0x33"),s={type:Bi("0xb"),content:Yo(e,o,Yo(e,this[Bi("0x8")](n[Bi("0x5")][0][Bi("0x25")])))};break;case"listReversed":o=n[Bi("0x5")][0].reversed?Bi("0x31"):Bi("0x3c"),s={type:Bi("0xb"),content:Yo(e,o)};break;case Bi("0x15"):o=Bi("0xd"),s={type:Bi("0xb"),content:Yo(e,o,n[Bi("0x5")][0][Bi("0x39")])}}return s}[Bi("0x2d")](){var t,e,n,o;const s=this[Bi("0x20")].plugins[Bi("0x9")](Bi("0x6"));let r=Array.from(this.editor.model[Bi("0x37")][Bi("0x1c")][Bi("0xc")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Bi("0x10"),Bi("0x32")))&&r[Bi("0x3a")](...s[Bi("0xa")](this[Bi("0x20")].model.document[Bi("0x1c")][Bi("0x17")](),"backward")),(null===(e=r[r.length-1])||void 0===e?void 0:e.is(Bi("0x10"),Bi("0x32")))&&r[Bi("0x2e")](...s.getSiblingNodes(this[Bi("0x20")].model[Bi("0x37")][Bi("0x1c")].getLastPosition(),"forward")),r=[...new Set(r)],(null===(o=null===(n=this[Bi("0x20")][Bi("0x1f")].document[Bi("0x1c")].getFirstPosition())||void 0===n?void 0:n[Bi("0x3b")])||void 0===o?void 0:o.is(Bi("0x10"),"listItem"))&&(r=r.filter((t=>t.is(Bi("0x10"),"listItem")))),r}_getSuggestionBlocks(t){const e=this[Bi("0x20")][Bi("0x14")].get(Bi("0x6"));let n=Array.from(this[Bi("0x20")][Bi("0x1f")][Bi("0x37")].selection[Bi("0xc")]())[Bi("0x38")](t)[Bi("0x21")]((t=>{const n=this[Bi("0x20")][Bi("0x1f")][Bi("0x0")](t,0);return[...e[Bi("0xa")](n,Bi("0x30")),...e.getSiblingNodes(n,Bi("0x22"))]})).flat();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Bi("0x29")+this[Bi("0x20")].plugins.get("ListUtils")[Bi("0x23")](t)[Bi("0x1a")]()+Bi("0x3d")+t.toUpperCase().replace(/-/g,"_")}}const Ui=["data","attribute:url:media","dataDowncast","plugins","has","ELEMENT_MEDIA","stop","editor","get","MediaEmbedEditing","options","high","createEmptyElement","afterInit","enableCommand","locale","media","elementToElement","downcastDispatcher","mediaEmbed","showSuggestionHighlights"];var Gi,Hi;Gi=Ui,Hi=390,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x1")](){const t=this[zi("0x10")];if(!t[zi("0xc")][zi("0xd")](zi("0x12")))return;const e=t[zi("0xc")][zi("0x11")]("TrackChangesEditing"),n=t[zi("0x3")];e[zi("0x2")](zi("0x7")),e._descriptionFactory.registerElementLabel(zi("0x4"),(t=>Yo(n,zi("0xe"),t))),t.conversion.for(zi("0xb"))[zi("0x5")]({model:zi("0x4"),view:(t,{writer:e,options:n})=>{if(n[zi("0x8")])return e[zi("0x0")]("div")},converterPriority:zi("0x14")}),t[zi("0x9")][zi("0x6")].on(zi("0xa"),((t,e,n)=>{n[zi("0x13")][zi("0x8")]&&t[zi("0xf")]()}),{priority:zi("0x14")})}}const Vi=["MentionEditing","get","editor","mention","plugins","TrackChangesEditing","afterInit","enableCommand"];var Ki,qi;Ki=Vi,qi=216,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x6")](){const t=this[Xi("0x2")];t[Xi("0x4")].has(Xi("0x0"))&&t[Xi("0x4")][Xi("0x1")](Xi("0x5"))[Xi("0x7")](Xi("0x3"))}}const Ji=["_descriptionFactory","registerElementLabel","locale","enableCommand","PageBreakEditing","ELEMENT_PAGE_BREAK","afterInit","TrackChangesEditing","get","pageBreak","plugins","editor"];var Qi,Zi;Qi=Ji,Zi=479,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x7")](){const t=this[Yi("0x0")];if(!t.plugins.has(Yi("0x5")))return;t[Yi("0xb")][Yi("0x9")](Yi("0x8"))[Yi("0x4")](Yi("0xa"));const e=t[Yi("0xb")][Yi("0x9")](Yi("0x8")),n=t[Yi("0x3")];e[Yi("0x1")][Yi("0x2")](Yi("0xa"),(t=>Yo(n,Yi("0x6"),t)))}}const ex=["filter","isLimit","*Change to:* %0","insertion","ck-suggestion-marker--active","selection","isObject","registerDescriptionCallback","end","getSelectedBlocks","parent","*Insert:* %0","isBlock","span","document","name","highest","commandName","getItemLabel","insertParagraph","activeMarkers","Paragraph","start","isTouching","get","editing","addMarker:suggestion:insertion","registerElementLabel","data","markBlockFormat","from","consume","showSuggestionHighlights","ELEMENT_PARAGRAPH","nodeAfter","writer","paragraph","downcastDispatcher","locale","markerName","type","afterInit","has","toViewPosition","createUIElement","editor","model","markerRange","bindElementToMarker","change","$text","getFirstRange","mapper","TrackChangesEditing","includes","plugins","schema","_descriptionFactory"];var nx,ox;nx=ex,ox=458,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{[sx("0x2f")](){const t=this.editor;if(!t.plugins[sx("0x30")](sx("0x1b")))return;const e=t[sx("0x2c")],n=t[sx("0x3")][sx("0x1e")](sx("0x1"));n._descriptionFactory[sx("0x21")]("paragraph",(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n.enableCommand(sx("0x2a"),((e,o={})=>{const s=t.model[sx("0x14")],r=o.selection||s[sx("0xb")],i=Array[sx("0x24")](r[sx("0xf")]())[sx("0x6")]((t=>{return e=t,(n=this[sx("0x33")][sx("0x34")][sx("0x4")]).checkChild(e[sx("0x10")],sx("0x2a"))&&!n[sx("0xc")](e)&&"paragraph"!=e[sx("0x15")];var e,n}));t[sx("0x34")][sx("0x37")]((()=>{for(const t of i)n[sx("0x23")](t,{commandName:sx("0x2a"),commandParams:[],formatGroupId:"blockName"},_s(t))}))})),n[sx("0x5")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&sx("0x2a")==n[sx("0x17")])return{type:"format",content:Yo(e,sx("0x8"),Yo(e,sx("0x27")))}})),n.enableCommand(sx("0x19")),t[sx("0x1f")].downcastDispatcher.on("addMarker:suggestion:insertion",ix(t),{priority:"highest"}),t[sx("0x22")][sx("0x2b")].on(sx("0x20"),((e,n,o)=>{o.options[sx("0x26")]&&ix(t,{showActiveMarker:!1})(e,n,o)}),{priority:sx("0x16")});const o=n[sx("0x5")];o[sx("0xd")]((n=>{if(sx("0x9")!==n[sx("0x2e")])return;const{start:s,end:r}=n[sx("0x39")]();if(!s[sx("0x1d")](r)||!s[sx("0x28")])return;const i=t[sx("0x34")].schema,x=s[sx("0x28")];return i.isBlock(x)&&!i[sx("0x7")](x)&&i.checkChild(x,sx("0x38"))?{type:sx("0x9"),content:Yo(e,sx("0x11"),o[sx("0x18")](x,1))}:void 0}))}}function ix(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[sx("0x3")].get("TrackChangesEditing"),i=o[sx("0x35")][sx("0x1c")],x=o[sx("0x35")][sx("0xe")],a=t[sx("0x34")][sx("0x4")];if(!i[sx("0x1d")](x)||!i[sx("0x28")])return;const c=i[sx("0x28")];if(a[sx("0x12")](c)&&!a[sx("0x7")](c)&&a.checkChild(c,sx("0x38"))){if(!s.consumable[sx("0x25")](o.markerRange,n[sx("0x15")]))return;const t=s[sx("0x29")][sx("0x32")](sx("0x13"),{class:"ck-suggestion-marker-split"}),i=s[sx("0x0")][sx("0x31")](x);e&&r[sx("0x1a")][sx("0x2")](o[sx("0x2d")])&&s.writer.addClass(sx("0xa"),t),s[sx("0x29")].insert(i,t),s[sx("0x0")][sx("0x36")](t,o[sx("0x2d")])}}}const xx=["getAttributes","*Remove all formatting*","model","enableCommand","format","schema","change","getItems","has","TrackChangesEditing","isFormatting","from","getAttributeProperties","editor","isCollapsed","document","afterInit","plugins","commandName","removeFormat"];var ax,cx;ax=xx,cx=235,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class dx extends t.Plugin{[lx("0x1")](){const t=this[lx("0x12")];if(!t[lx("0x2")][lx("0xd")]("RemoveFormatEditing"))return;const e=t.plugins.get(lx("0xe"));e[lx("0x8")](lx("0x4"),(n=>{const o=t[lx("0x7")][lx("0x0")].selection;o[lx("0x13")]?n():t[lx("0x7")][lx("0xb")]((()=>{const n=Array[lx("0x10")](o.getRanges());for(const o of n)for(const n of o[lx("0xc")]())ux(n,t.model[lx("0xa")])&&e.markInlineFormat(t.model.createRangeOn(n),{commandName:"removeFormat",commandParams:[]})}))})),e._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e;if(n&&lx("0x4")==n[lx("0x3")])return{type:lx("0x9"),content:Yo(t.locale,lx("0x6"))}}))}}function ux(t,e){for(const[n]of t[lx("0x5")]()){const t=e[lx("0x11")](n);if(t&&t[lx("0xf")])return!0}return!1}const gx=["acceptAllSuggestions","enableCommand","plugins","trackChanges","editor","afterInit","discardSuggestion","TrackChangesEditing","has","RestrictedEditingModeEditing","acceptSelectedSuggestions","goToNextRestrictedEditingException","get","discardAllSuggestions"];var mx,fx;mx=gx,fx=299,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0x0")](){const t=this[hx("0xd")];if(!t[hx("0xb")][hx("0x3")](hx("0x4")))return;const e=t[hx("0xb")][hx("0x7")](hx("0x2"));e[hx("0xa")]("goToPreviousRestrictedEditingException"),e[hx("0xa")](hx("0x6"));const n=t[hx("0xb")].get(hx("0x4"));n[hx("0xa")](hx("0xc")),n[hx("0xa")]("acceptSuggestion"),n[hx("0xa")](hx("0x1")),n[hx("0xa")](hx("0x9")),n.enableCommand(hx("0x8")),n[hx("0xa")](hx("0x5")),n[hx("0xa")]("discardSelectedSuggestions")}}const bx=["merge","TrackChangesEditing","plugins","markerRange","writer","ck-suggestion-marker-","enableCommand","high","markerName","editor","editing","element","name","includes","get","softBreak","toViewPosition","data","bindElementToMarker","addMarker:suggestion:insertion","mapper","model","addMarker:suggestion:deletion","_descriptionFactory","downcastDispatcher","ck-suggestion-marker--active","activeMarkers","deletion","createPositionBefore","addMarker:suggestion","requires","insert","createUIElement","addClass","split","locale"];var Ex,_x;Ex=bx,_x=380,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const Tx=function(t,e){return bx[t-=0]};class Cx extends t.Plugin{static get[Tx("0xa")](){return[xr.ShiftEnter]}init(){const t=this[Tx("0x19")],e=t[Tx("0x12")].get("TrackChangesEditing");e[Tx("0x16")]("shiftEnter"),t[Tx("0x1a")][Tx("0x4")].on(Tx("0x23"),yx(t),{priority:Tx("0x17")}),t[Tx("0x1a")].downcastDispatcher.on(Tx("0x2"),yx(t),{priority:Tx("0x17")}),t[Tx("0x21")][Tx("0x4")].on(Tx("0x9"),((e,n,o)=>{o.options.showSuggestionHighlights&&yx(t,{showActiveMarker:!1})(e,n,o)})),e[Tx("0x3")].registerElementLabel(Tx("0x1f"),(e=>Yo(t[Tx("0xf")],"ELEMENT_LINE_BREAK",e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Tx("0x12")][Tx("0x1e")](Tx("0x11"));if(!s.consumable.test(o.markerRange,n[Tx("0x1c")]))return;const i=t[Tx("0x1")];for(const t of o[Tx("0x13")].getItems()){if(!t.is(Tx("0x1b"),Tx("0x1f")))continue;const n=Tx("0x7")==o[Tx("0x18")][Tx("0xe")](":")[1]?Tx("0x10"):Tx("0xe"),x=s.writer[Tx("0xc")]("span",{class:Tx("0x15")+n}),a=s[Tx("0x0")][Tx("0x20")](i[Tx("0x8")](t));e&&r[Tx("0x6")][Tx("0x1d")](o[Tx("0x18")])&&s[Tx("0x14")][Tx("0xd")](Tx("0x5"),x),s[Tx("0x14")][Tx("0xb")](a,x),s.mapper[Tx("0x22")](x,o[Tx("0x18")])}}}const kx=["getRanges","locale","enableCommand","StandardEditingModeEditing","document","markInlineFormat","FORMAT_RESTRICTED_DISABLED","isCollapsed","model","registerDescriptionCallback","commands","change","get","commandName","from","selection","_descriptionFactory","commandParams","TrackChangesEditing","forceValue","value","format","editor","FORMAT_RESTRICTED_ENABLED"];var Ax,vx;Ax=kx,vx=257,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("0x5")],e=t[Rx("0xf")],n=t[Rx("0x8")];if(!t.plugins.has(Rx("0xa")))return;const o=t.plugins.get(Rx("0x1")),s="restrictedEditingException",r=t[Rx("0x11")][Rx("0x13")](s);o[Rx("0x9")](s,((t,n={})=>{const i=e[Rx("0xb")][Rx("0x16")];if(i[Rx("0xe")])return void t(n);const x=void 0!==n[Rx("0x2")]?n[Rx("0x2")]:!r[Rx("0x3")];e[Rx("0x12")]((()=>{const t=Array[Rx("0x15")](i[Rx("0x7")]());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0xc")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0x17")][Rx("0x10")]((t=>{const{data:e}=t;if(e&&e[Rx("0x14")]==s)return e[Rx("0x0")][0].forceValue?{type:"format",content:Yo(n,Rx("0x6"))}:{type:Rx("0x4"),content:Yo(n,Rx("0xd"))}}))}}const Ix=["getDefinitionsForView","model","plugins","Style","_getRangesWithClasses","getAttribute","style.definitions","locale","registerDescriptionCallback","normalizeConfig","forceValue","commandName","*Remove format:* %0","config","getItems","StyleUtils","get","selection","createRangeOn","enabledStyles","classes","DataSchema","modelElements","document","toLowerCase","_getStyleDefinition","isBlock","isCollapsed","*Format:* %0","includes","markBlockFormat","getRanges","element","find","_descriptionFactory","style","format","value","push","has","from","commands","enableCommand","getAncestors","change","name"];var Lx,Nx;Lx=Ix,Nx=107,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{afterInit(){const t=this.editor;if(!t[wx("0x21")][wx("0x18")](wx("0x22")))return;const e=t[wx("0x1a")].get(wx("0x14")),n=t.plugins[wx("0x1")]("TrackChangesEditing"),o=t[wx("0x26")],s=t[wx("0x21")][wx("0x1")](wx("0x6")),r=t[wx("0x21")][wx("0x1")](wx("0x0"))[wx("0x28")](s,t[wx("0x2c")].get(wx("0x25")));n[wx("0x1b")](wx("0x14"),((o,{styleName:i})=>{const x=t.model[wx("0x8")][wx("0x2")],a=this[wx("0xa")](i,r);if(!a)return;if(!e[wx("0x4")][wx("0xe")](i))return;if(x[wx("0xc")]&&!a[wx("0xb")])return void o({styleName:i});const c=!e[wx("0x16")].includes(a[wx("0x1e")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[wx("0x1c")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[wx("0x1e")])){n.add(o);break}}return n}(x.getSelectedBlocks(),a[wx("0x7")]);t.model.change((()=>{for(const t of e)n[wx("0xf")](t,{commandName:wx("0x14"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[wx("0x19")](x[wx("0x10")]());if(!c){const n=Array[wx("0x19")](s[wx("0x1f")](a[wx("0x11")],!1))[0][wx("0x20")],o=[];for(const s of e){const e=this[wx("0x23")](t[wx("0x20")],s,a[wx("0x5")],n);o.push(...e)}e=o}t.model[wx("0x1d")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:wx("0x14"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[wx("0x13")][wx("0x27")]((t=>{const{data:e}=t;if(e&&"style"===e[wx("0x2a")])return e.commandParams[0][wx("0x29")]?{type:wx("0x15"),content:Yo(o,wx("0xd"),e.commandParams[0].styleName[wx("0x9")]())}:{type:"format",content:Yo(o,wx("0x2b"),e.commandParams[0].styleName.toLowerCase())}}))}[wx("0xa")](t,e){let n=e.block[wx("0x12")]((e=>e[wx("0x1e")]===t));return n||(n=e.inline[wx("0x12")]((e=>e[wx("0x1e")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[wx("0x2d")]()){const e=r[wx("0x24")](o);e&&n.every((t=>e.classes[wx("0xe")](t)))&&s[wx("0x17")](t[wx("0x3")](r))}return s}}const Ox=["toViewElement","ELEMENT_TABLE_COLUMN_WITH_TEXT","nodeBefore","markMultiRangeDeletion","registerElementLabel","low","findAncestor","span","colspan","tablePaste","data","_setupColumnsRowsFixing","deletion","join","from","getChanges","downcastDispatcher","_descriptionFactory","options","some","above","registerPostFixer","addRange","get","isArray","TrackChangesEditing","add","insertTableRowAbove","document","last","locale","$textProxy","removeTableColumn","push","insert","markMultiRangeInsertion","classes","refresh","enqueueChange","addClass","change","change:data","MIN_SAFE_INTEGER","max","insertTableRowBelow","subType","ELEMENT_TABLE_ROW_WITH_TEXT","every","createTableWalker","getItems","getRanges","oldRange","maxRow","start","end","_getSuggestionCoords","min","selectTableRow","ELEMENT_TABLE_COLUMN","addMarker:suggestion","tableRow","selectTableColumn","model","root","insertTableColumnRight","TableUtils","getContainedElement","ELEMENT_TABLE_WITH_TEXT","isEqual","tableCell","left","*Remove:* %0","commands","getAttribute","editor","type","TableEditing","length","removeTableRow","toLowerCase","table","first","_tableSuggestions","cell","registerDescriptionCallback","nodeAfter","isTouching","hasAttribute","removeClass","fromRange","getCellLocation","insertTable","highest","ELEMENT_TABLE","detach","map","substr","_tablePostFixingSubtypes","setSelection","*Insert:* %0","accept","isInContent","createPositionAt","ELEMENT_TABLE_ROW","enableCommand","discard","$graveyard","differ","position","getRowIndexes","writer","includes","insertion","filter","insertTableColumnLeft","MAX_SAFE_INTEGER","_suggestionFactory","afterInit","createRangeOn","getSelectionAffectedTableCells","_acceptFormatSuggestionCallbackFactory","maxColumn","tableColumn","plugins","_splitMarkerName","item","createRangeIn","selection","execute","values","rootName","getFirstRange","rowspan","registerCustomCallback","order","name"];var Fx,Px;Fx=Ox,Px=344,function(t){for(;--t;)Fx.push(Fx.shift())}(++Px);const Dx=function(t,e){return Ox[t-=0]};class Bx extends t.Plugin{constructor(t){super(t),this[Dx("0x19")]=["tableRow",Dx("0x32")],this[Dx("0xa")]=new Set}[Dx("0x2d")](){const t=this[Dx("0x2")],e=t.model[Dx("0x5c")].selection;if(!t[Dx("0x33")].has(Dx("0x4")))return;const n=t[Dx("0x5e")],o=t[Dx("0x33")][Dx("0x57")](Dx("0x59")),s=t.plugins.get(Dx("0x81"));o[Dx("0x51")][Dx("0x44")]("table",(t=>Yo(n,Dx("0x15"),t))),this._setupColumnsRowsFixing(),o[Dx("0x20")](Dx("0x13")),o[Dx("0x20")](Dx("0x79")),o[Dx("0x20")](Dx("0x7d"));for(const n of[Dx("0x5b"),Dx("0x6c")]){const r=t[Dx("0x0")][Dx("0x57")](n);o[Dx("0x20")](n,(n=>{t.model[Dx("0x68")]((t=>{n();const i=Dx("0x54")===r[Dx("0x3e")],x=s.getSelectionAffectedTableCells(e),a=s[Dx("0x25")](x),c=i?a.first-1:a[Dx("0x5d")]+1,l=x[0][Dx("0x46")](Dx("0x8")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array[Dx("0x4e")](d)[Dx("0x17")]((e=>t[Dx("0x2e")](e[Dx("0xb")])));o[Dx("0x63")](u,"tableRow")}))}))}for(const n of[Dx("0x2a"),Dx("0x80")]){const r=t.commands[Dx("0x57")](n);o[Dx("0x20")](n,(n=>{t.model[Dx("0x68")]((t=>{n();const i=Dx("0x86")===r.order,x=s[Dx("0x2f")](e),a=s.getColumnIndexes(x),c=i?a.first-1:a[Dx("0x5d")]+1,l=x[0].findAncestor(Dx("0x8")),d=s[Dx("0x70")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Dx("0x4e")](d)[Dx("0x17")]((e=>t[Dx("0x2e")](e[Dx("0xb")])));o[Dx("0x63")](u,Dx("0x32"))}))}))}for(const n of[Dx("0x6"),Dx("0x60")]){const r=n[Dx("0x18")](11),i=r[Dx("0x7")](),x=i[Dx("0x18")](0,3)+"span",a=Dx("0x8")+r,c=Dx("0x78")+r,l="max"+r;o.enableCommand(n,(()=>{t.model[Dx("0x68")]((t=>{const r=s[Dx("0x2f")](e),d=r[0][Dx("0x46")]("table");let u;if(Dx("0x6")==n){const t=s[Dx("0x25")](r);u={startRow:t.first,endRow:t.last,includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t[Dx("0x9")],endColumn:t[Dx("0x5d")],includeAllSlots:!0}}const g=s[Dx("0x70")](d,u),m=Array[Dx("0x4e")](g)[Dx("0x17")]((({cell:t})=>t)),f=jx(m[Dx("0x29")]((t=>t.hasAttribute(x)))),h=jx(m.filter((t=>!t[Dx("0xf")](x))))[Dx("0x17")]((e=>t[Dx("0x2e")](e))),p=o[Dx("0x43")](h,a);if(p&&(Dx("0x7c")==p[Dx("0x6d")]||Dx("0x32")==p[Dx("0x6d")])){const e=this[Dx("0x77")](p);for(const n of f){const o=t.createRangeOn(n),r=s[Dx("0x12")](n),a=n[Dx("0x1")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Dx("0x56")](o)}}}))}))}function r(n){const o=Array.from(e.getRanges())[Dx("0x17")]((t=>i.LiveRange.fromRange(t)));t[Dx("0x7e")][Dx("0x68")]((e=>{const s=e.batch;n=n[Dx("0x29")]((t=>"$graveyard"!=t[Dx("0x7f")][Dx("0x3a")])),e[Dx("0x1a")](n),t[Dx("0x0")].get(Dx("0x6"))[Dx("0x65")](),t[Dx("0x38")]("removeTableRow",{forceDefaultExecution:!0}),t.model[Dx("0x66")]((()=>{t.model[Dx("0x66")](s,(t=>{const e=o[Dx("0x29")]((t=>Dx("0x22")!=t[Dx("0x7f")].rootName));e.length>0&&t[Dx("0x1a")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[Dx("0x7e")].change((o=>{const s=Array[Dx("0x4e")](e[Dx("0x72")]())[Dx("0x17")]((t=>i.LiveRange[Dx("0x11")](t))),r=[];for(const t of n)for(const e of t[Dx("0x71")]({shallow:!0}))r[Dx("0x61")](e);for(const e of r)Dx("0x22")!=e[Dx("0x7f")][Dx("0x3a")]&&(o[Dx("0x1a")](o[Dx("0x1e")](e,0)),t[Dx("0x0")][Dx("0x57")](Dx("0x60")).refresh(),t[Dx("0x38")](Dx("0x60"),{forceDefaultExecution:!0}));const x=s[Dx("0x29")]((t=>Dx("0x22")!=t[Dx("0x7f")][Dx("0x3a")]));x[Dx("0x5")]>0&&o[Dx("0x1a")](x);for(const t of s)t.detach()}))}function c(t,e){return e[Dx("0x6f")]((e=>t[Dx("0x53")]((t=>t.end[Dx("0x84")](e[Dx("0x75")])||e[Dx("0x76")][Dx("0x84")](t[Dx("0x75")])))))}function l(t,e){return t[Dx("0x53")]((t=>e[Dx("0x53")]((e=>t[Dx("0x76")][Dx("0xe")](e[Dx("0x75")])))))}t[Dx("0x4a")][Dx("0x50")].on(Dx("0x7b"),((t,e,n)=>{if(!n[Dx("0x52")].showSuggestionHighlights)return;const o=e[Dx("0x35")];if(!o)return;const s=n.mapper[Dx("0x40")](o);function r(t){return Array[Dx("0x58")](t)?t:[t]}s&&Dx("0x85")===o.name&&(0,x.setHighlightHandling)(s,n[Dx("0x26")],((t,e,n)=>n[Dx("0x67")](r(e.classes),t)),((t,e,n)=>n[Dx("0x10")](r(e[Dx("0x64")]),t)))}),{priority:Dx("0x14")}),o[Dx("0x51")].registerDescriptionCallback((t=>{if(Dx("0x28")!=t[Dx("0x3")]&&Dx("0x4c")!=t.type)return;const e=t[Dx("0x82")]();if(null!=e&&e.is("element",Dx("0x8"))){if("insertion"==t[Dx("0x3")]){const e=t[Dx("0x71")]().filter((t=>t.is(Dx("0x5f"))))[Dx("0x17")]((t=>t.data));if(e.length)return{type:"insertion",content:Yo(n,Dx("0x1b"),Yo(n,Dx("0x83"),'"'+e[Dx("0x4d")](" ")+'"'))}}if(Dx("0x4c")==t[Dx("0x3")]){const e=t[Dx("0x71")]()[Dx("0x29")]((t=>t.is(Dx("0x5f"))))[Dx("0x17")]((t=>t[Dx("0x4a")]));if(e[Dx("0x5")])return{type:Dx("0x4c"),content:Yo(n,Dx("0x87"),Yo(n,Dx("0x83"),'"'+e.join(" ")+'"'))}}}})),o[Dx("0x51")][Dx("0xc")]((t=>{if("tableRow"==t[Dx("0x6d")]){const e=t.getItems()[Dx("0x29")]((t=>t.is("$textProxy")))[Dx("0x17")]((t=>t[Dx("0x4a")])),o=this[Dx("0x77")](t),s=o[Dx("0x74")]-o.minRow+1;if("insertion"==t[Dx("0x3")])return e.length?{type:Dx("0x28"),content:Yo(n,Dx("0x1b"),Yo(n,Dx("0x6e"),[s,'"'+e[Dx("0x4d")](" ")+'"']))}:{type:Dx("0x28"),content:Yo(n,Dx("0x1b"),Yo(n,Dx("0x1f"),s))};if(Dx("0x4c")==t.type)return e[Dx("0x5")]?{type:Dx("0x4c"),content:Yo(n,Dx("0x87"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Dx("0x4d")](" ")+'"']))}:{type:Dx("0x4c"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Dx("0x32")==t[Dx("0x6d")]){const e=t[Dx("0x71")]()[Dx("0x29")]((t=>t.is(Dx("0x5f"))))[Dx("0x17")]((t=>t[Dx("0x4a")])),o=this[Dx("0x77")](t),s=o[Dx("0x31")]-o.minColumn+1;if(Dx("0x28")==t[Dx("0x3")])return e[Dx("0x5")]?{type:Dx("0x28"),content:Yo(n,Dx("0x1b"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Dx("0x4d")](" ")+'"']))}:{type:Dx("0x28"),content:Yo(n,Dx("0x1b"),Yo(n,Dx("0x7a"),s))};if(Dx("0x4c")==t[Dx("0x3")])return e[Dx("0x5")]?{type:Dx("0x4c"),content:Yo(n,Dx("0x87"),Yo(n,Dx("0x41"),[s,'"'+e[Dx("0x4d")](" ")+'"']))}:{type:Dx("0x4c"),content:Yo(n,Dx("0x87"),Yo(n,Dx("0x7a"),s))}}})),o._suggestionFactory[Dx("0x3d")](Dx("0x28"),Dx("0x7c"),Dx("0x21"),r),o[Dx("0x2c")][Dx("0x3d")](Dx("0x4c"),Dx("0x7c"),"accept",r),o[Dx("0x2c")][Dx("0x3d")](Dx("0x28"),Dx("0x32"),Dx("0x21"),a),o[Dx("0x2c")][Dx("0x3d")]("deletion",Dx("0x32"),Dx("0x1c"),a),o._suggestionFactory[Dx("0x3d")](Dx("0x28"),Dx("0x32"),"join",c),o._suggestionFactory[Dx("0x3d")](Dx("0x4c"),Dx("0x32"),Dx("0x4d"),c),o[Dx("0x2c")][Dx("0x3d")]("insertion",Dx("0x7c"),Dx("0x4d"),l),o[Dx("0x2c")][Dx("0x3d")](Dx("0x4c"),Dx("0x7c"),"join",l)}[Dx("0x30")](){const t=this.editor,e=t.model[Dx("0x5c")][Dx("0x37")];return(n,o)=>{t[Dx("0x7e")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Dx("0x76")][Dx("0x42")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Dx("0x75")][Dx("0xd")]);const c=s[Dx("0x36")](a);if(Dx("0x22")==c[Dx("0x7f")].rootName)return;const l=Array[Dx("0x4e")](e[Dx("0x72")]()).map((t=>i.LiveRange[Dx("0x11")](t)));s.setSelection(c),t.commands.get(r)[Dx("0x65")](),x[Dx("0x61")]({forceDefaultExecution:!0}),t.execute(r,...x);const d=l[Dx("0x29")]((t=>Dx("0x22")!=t[Dx("0x7f")][Dx("0x3a")]));d[Dx("0x5")]>0&&s[Dx("0x1a")](d);for(const t of l)t[Dx("0x16")]()}))}}_getCoordsForCells(t){const e=this[Dx("0x2")][Dx("0x33")][Dx("0x57")](Dx("0x81"));let n=Number[Dx("0x2b")],o=Number.MIN_SAFE_INTEGER,s=Number[Dx("0x2b")],r=Number[Dx("0x6a")];for(const i of t){if(Dx("0x22")==i[Dx("0x7f")][Dx("0x3a")])continue;const{row:t,column:x}=e[Dx("0x12")](i),a=i[Dx("0xf")]("rowspan")?i[Dx("0x1")](Dx("0x3c"))-1:0,c=i[Dx("0xf")](Dx("0x48"))?i.getAttribute("colspan")-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}}[Dx("0x4b")](){const t=this[Dx("0x2")],e=t[Dx("0x33")][Dx("0x57")](Dx("0x59")),n=t.plugins[Dx("0x57")](Dx("0x81"));t[Dx("0x7e")][Dx("0x5c")].on(Dx("0x69"),(()=>{const n=Array[Dx("0x4e")](t[Dx("0x7e")][Dx("0x5c")][Dx("0x23")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Dx("0x34")](t);if("suggestion"!=n)continue;if(null!=o[Dx("0x73")])continue;const i=e.getSuggestion(s);this[Dx("0x19")][Dx("0x27")](r)&&this[Dx("0xa")][Dx("0x5a")](i)}}),{priority:Dx("0x45")});const o=(t,e)=>{let o=!1;const s=e[Dx("0x2e")](t),r=t[Dx("0x46")](Dx("0x8")),i=n.getCellLocation(t);for(const e of this[Dx("0xa")]){const n=e[Dx("0x6d")],x=n.startsWith(Dx("0x49")),a=n[Dx("0x18")](x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+Dx("0x47"),d="min"+a,u=Dx("0x6b")+a;if(!e[Dx("0x1d")])continue;if(r!=e[Dx("0x3b")]()[Dx("0x75")].findAncestor("table"))continue;if(e.isIntersectingWithRange(s))continue;const g=t[Dx("0xf")](l)?t[Dx("0x1")](l)-1:0,m=this[Dx("0x77")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Dx("0x56")](s),o=!0)}return o};t[Dx("0x7e")].document[Dx("0x55")]((e=>{let n=!1;for(const s of t[Dx("0x7e")][Dx("0x5c")].differ[Dx("0x4f")]())if(Dx("0x62")==s.type)if(Dx("0x7c")==s.name)for(const t of s.position.nodeAfter.getChildren())n=n||o(t,e);else Dx("0x85")==s[Dx("0x3f")]&&(n=n||o(s[Dx("0x24")][Dx("0xd")],e));return n}))}[Dx("0x77")](t){return this._getCoordsForCells(t.getRanges().map((t=>t[Dx("0x75")][Dx("0xd")])))}}function jx(t){return Array[Dx("0x4e")](new Set(t)[Dx("0x39")]())}const Ux=["*Merge cells*","size","commandName","mergeTableCellDown","_areSelectedCellsMergable","registerCustomCallback","_areMergableCells","formatBlock","type","execute","splitTableCellHorizontally","splitTableCellVertically","push","format","model","getFirstPosition","enableCommand","containsRange","createRangeOn","cell","TableEditing","isEnabled","createTableWalker","document","deletion","findAncestor","add","forceDefaultExecution","markMultiRangeBlockFormat","registerDescriptionCallback","_suggestionFactory","change","filter","detach","commands","plugins","stop","has","low","getAncestors","getCellLocation","tableCell","_descriptionFactory","editor","accept","mergeTableCells","value","length","getRanges","trackChanges","TableUtils","mergeTableCellUp","getSelectionAffectedTableCells","setSelection","insertion","isInContent","horizontally","element","fromRange","refresh","selection","mergeTableCellLeft","_tablePostFixingSubtypes","direction","map","author","mergeTableCellRight","getSuggestions","TrackChangesEditing","*Split cell:* horizontally","get","from","$graveyard","set:isEnabled","_acceptFormatSuggestionCallbackFactory"];var Gx,Hx;Gx=Ux,Hx=136,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 requires(){return[Bx]}afterInit(){const t=this[zx("0x39")],e=t[zx("0x1c")].document[zx("0x4a")],n=t.locale;if(!t[zx("0x31")][zx("0x33")](zx("0x22")))return;const o=t[zx("0x31")][zx("0x9")](zx("0x7")),s=t.plugins.get(zx("0x40")),r=t.plugins.get(Bx);r[zx("0x1")][zx("0x1a")](zx("0x3b")),o[zx("0x1e")]("mergeTableCells",(()=>{const e=s.getSelectionAffectedTableCells(t[zx("0x1c")][zx("0x25")][zx("0x4a")]);t[zx("0x1c")][zx("0x2d")]((()=>{o[zx("0x2a")](e,{commandName:zx("0x3b"),commandParams:[]},[],zx("0x3b"))}))})),t[zx("0x30")][zx("0x9")](zx("0x3b")).on(zx("0x17"),((e,n)=>{t[zx("0x30")][zx("0x9")](zx("0x3f"))[zx("0x3c")]&&(n[zx("0x3d")]>0&&n[n[zx("0x3d")]-1]&&n[n[zx("0x3d")]-1][zx("0x29")]||o._isForcedDefaultExecutionBlock||this[zx("0x12")]()||e[zx("0x32")]())}),{priority:"highest"});for(const e of[zx("0x41"),"mergeTableCellRight",zx("0x11"),zx("0x0")]){const n=t[zx("0x30")][zx("0x9")](e);o.enableCommand(e,(()=>{const e=t.model[zx("0x25")][zx("0x4a")][zx("0x1d")]()[zx("0x35")]().find((t=>t.is(zx("0x47"),zx("0x37")))),s=n[zx("0x3c")];t.model[zx("0x2d")]((()=>{o[zx("0x2a")]([e,s],{commandName:zx("0x3b"),commandParams:[]},[],zx("0x3b"))}))}))}for(const e of["splitTableCellVertically",zx("0x18")]){const n=t.commands[zx("0x9")](e);o[zx("0x1e")](e,(()=>{const r=s[zx("0x42")](t[zx("0x1c")][zx("0x25")][zx("0x4a")])[0],i=r[zx("0x27")]("table"),{column:x,row:a}=s[zx("0x36")](r);let c=[];if(zx("0x46")==n[zx("0x2")]){const t=s[zx("0x24")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[zx("0xa")](t)[zx("0x3")]((t=>t[zx("0x21")]))}else{const t=s[zx("0x24")](i,{column:x,includeAllSlots:!0});c=Array[zx("0xa")](t)[zx("0x3")]((t=>t[zx("0x21")]))}t[zx("0x1c")][zx("0x2d")]((t=>{o.markBlockFormat(t[zx("0x20")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[zx("0x38")][zx("0x2b")]((t=>{const{data:e}=t;if(e)return zx("0x3b")==e[zx("0x10")]?{type:"format",content:Yo(n,zx("0xe"))}:void 0})),o[zx("0x38")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return zx("0x19")==e.commandName?{type:zx("0x1b"),content:Yo(n,"*Split cell:* vertically")}:"splitTableCellHorizontally"==e[zx("0x10")]?{type:zx("0x1b"),content:Yo(n,zx("0x8"))}:void 0}));const x=r[zx("0xd")]();for(const t of[zx("0x41"),zx("0x5"),"mergeTableCellDown",zx("0x0")])o[zx("0x2c")][zx("0x13")](zx("0x15"),t,"accept",x);for(const t of[zx("0x19"),zx("0x18")])o[zx("0x2c")][zx("0x13")](zx("0x15"),t,zx("0x3a"),x);o[zx("0x2c")][zx("0x13")](zx("0x15"),"mergeTableCells","accept",(n=>{t[zx("0x1c")][zx("0x2d")]((o=>{const s=Array[zx("0xa")](e[zx("0x3e")]())[zx("0x3")]((t=>i.LiveRange[zx("0x48")](t)));o[zx("0x43")](n),t.commands.get(zx("0x3b"))[zx("0x49")](),t[zx("0x17")]("mergeTableCells",{forceDefaultExecution:!0});const r=s[zx("0x2e")]((t=>zx("0xb")!=t.root.rootName));r[zx("0x3d")]>0&&o.setSelection(r);for(const t of s)t[zx("0x2f")]()}))}));for(const e of["mergeTableCellUp",zx("0x11"),zx("0x0"),zx("0x5")]){const n=t[zx("0x30")][zx("0x9")](e);n.on(zx("0xc"),((e,o,s)=>{if(s){const o=t[zx("0x1c")][zx("0x25")][zx("0x4a")].getFirstPosition()[zx("0x35")]().find((t=>t.is(zx("0x47"),zx("0x37"))));this[zx("0x14")](n.value,o)||(e.return=!1,e.stop())}}),{priority:zx("0x34")})}}[zx("0x12")](){const t=this.editor[zx("0x30")][zx("0x9")](zx("0x3b")),e=this[zx("0x39")][zx("0x31")][zx("0x9")]("TableUtils");if(!t[zx("0x23")])return!1;const n=e[zx("0x42")](this[zx("0x39")][zx("0x1c")][zx("0x25")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[zx("0x14")](t,e))return!1;return!0}[zx("0x14")](t,e){const n=this[zx("0x39")][zx("0x31")][zx("0x9")](zx("0x7")),o=this[zx("0x39")][zx("0x1c")].createRangeOn(t),s=this[zx("0x39")][zx("0x1c")][zx("0x20")](e),r=new Set,i=new Set;for(const t of n[zx("0x6")]())if((zx("0x44")==t.type||zx("0x26")==t[zx("0x16")]||zx("0x3b")==t.subType)&&t[zx("0x45")])for(const e of t.getRanges())e[zx("0x1f")](o,!0)&&r[zx("0x28")](t.type+":"+t.author.id),e[zx("0x1f")](s,!0)&&i[zx("0x28")](t.type+":"+t[zx("0x4")].id);if(r[zx("0xf")]!=i[zx("0xf")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Vx=["highest","last","consume","cell","_descriptionFactory","registerCustomCallback","commands","showSuggestionHighlights","removeAttribute","registerDescriptionCallback","getRowIndexes","index","getAttribute","removeMarker:suggestion","setAttribute","formatBlock","_splitMarkerName","item","addClass","setTableRowHeader","first","FORMAT_HEADER_ROW","enableCommand","headingColumns","requires","selection","childCount","getChild","commandName","afterInit","document","isBefore","nodeBefore","toViewElement","get","setTableColumnHeader","editing","downcastDispatcher","createPositionAfter","unbindElementFromMarkerName","FORMAT_REGULAR_ROW","markBlockFormat","parent","ck-suggestion-marker--active","getSelectionAffectedTableCells","markerName","model","_acceptFormatSuggestionCallbackFactory","mapper","consumable","TableUtils","_suggestionFactory","markerRange","data","createRange","accept","removeClass","commandParams","value","headingRows","locale","getColumnIndexes","createPositionBefore","findAncestor","writer","activeMarkers","getSuggestion","start","getCellLocation","markerNameToElements","table","forceValue","data-suggestion","plugins","editor","stop","*Format:* %0","ck-suggestion-marker-","nodeAfter","from"];var Kx,qx;Kx=Vx,qx=109,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]};class $x extends t.Plugin{static get[Xx("0x4b")](){return[Bx]}[Xx("0x0")](){const t=this[Xx("0x2d")];if(!t.plugins.has("TableEditing"))return;const e=t[Xx("0x1f")],n=t.plugins[Xx("0x5")]("TrackChangesEditing"),o=t.plugins[Xx("0x5")](Xx("0x15")),s=t[Xx("0x2c")][Xx("0x5")](Bx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Xx("0x43")](r[Xx("0x10")]),c=n[Xx("0x25")](a);if(!c.data||Xx("0x6")!=c[Xx("0x18")][Xx("0x4f")])return;if(r[Xx("0x44")])return void s[Xx("0x2e")]();if(!i[Xx("0x14")][Xx("0x35")](r[Xx("0x17")],s.name))return;const l=r[Xx("0x17")][Xx("0x26")][Xx("0x31")],d=r[Xx("0x17")].end[Xx("0x3")],u=l[Xx("0xd")].parent,{column:g}=o[Xx("0x27")](l),{column:m}=o[Xx("0x27")](d);for(let s=g;s<=m;s++){const c=o.createTableWalker(u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Xx("0x36")],c=i[Xx("0x13")][Xx("0x4")](s);i.writer[Xx("0x45")](Xx("0x30")+x,c),e&&i[Xx("0x23")][Xx("0x41")](Xx("0x2b"),a,c),i[Xx("0x13")].bindElementToMarker(c,r.markerName),t&&(n[Xx("0x24")].includes(r[Xx("0x10")])?i[Xx("0x23")].addClass(Xx("0xe"),c):i[Xx("0x23")][Xx("0x1b")]("ck-suggestion-marker--active",c))}}}}n[Xx("0x49")](Xx("0x46"),((e,s)=>{const r=o[Xx("0xf")](t[Xx("0x11")][Xx("0x1")][Xx("0x4c")]),i=o[Xx("0x3d")](r),x=r[0][Xx("0x22")](Xx("0x29")),a=x[Xx("0x3f")](Xx("0x1e"))||0,c=s&&null!==s[Xx("0x2a")]?s[Xx("0x2a")]:!t.commands[Xx("0x5")](Xx("0x46"))[Xx("0x1d")],l=c?i[Xx("0x34")]:i[Xx("0x47")],d=x.getChild(l);let u;if(c){const e=x[Xx("0x4e")](a);if(d.index<e[Xx("0x3e")])return;u=t.model[Xx("0x19")](t[Xx("0x11")][Xx("0x21")](e[Xx("0x4e")](0)),t[Xx("0x11")][Xx("0x9")](d[Xx("0x4e")](d[Xx("0x4d")]-1)))}else{const e=x[Xx("0x4e")](a-1);if(!e)return;u=t[Xx("0x11")][Xx("0x19")](t[Xx("0x11")].createPositionBefore(d[Xx("0x4e")](0)),t[Xx("0x11")].createPositionAfter(e[Xx("0x4e")](e.childCount-1)))}t[Xx("0x11")].change((()=>{n[Xx("0xc")](u,{commandName:Xx("0x46"),commandParams:[{forceValue:c}]},[],Xx("0x46"))}))})),n.enableCommand(Xx("0x6"),((e,o)=>{const s=t[Xx("0x2c")][Xx("0x5")](Xx("0x15")),r=s[Xx("0xf")](t[Xx("0x11")].document[Xx("0x4c")]),i=s[Xx("0x20")](r),x=r[0][Xx("0x22")](Xx("0x29")),a=x[Xx("0x3f")](Xx("0x4a"))||0,c=o&&null!==o[Xx("0x2a")]?o[Xx("0x2a")]:!t[Xx("0x39")][Xx("0x5")](Xx("0x6")).value;let l;const d=x.getChild(0),u=c?i[Xx("0x34")]:i[Xx("0x47")],g=s.createTableWalker(x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Xx("0x32")](g)[0][Xx("0x36")];if(c){const e=d.getChild(a);if(m[Xx("0x2")](e))return;l=t[Xx("0x11")][Xx("0x19")](t[Xx("0x11")][Xx("0x21")](e),t[Xx("0x11")][Xx("0x9")](m))}else{const e=d[Xx("0x4e")](a-1);if(!e)return;l=t.model.createRange(t[Xx("0x11")][Xx("0x21")](m),t[Xx("0x11")][Xx("0x9")](e))}t[Xx("0x11")].change((()=>{n[Xx("0xc")](l,{commandName:Xx("0x6"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[Xx("0x7")][Xx("0x8")].on("addMarker:suggestion",r(),{priority:Xx("0x33")}),t.data[Xx("0x8")].on("addMarker:suggestion",((t,e,n)=>{n.options[Xx("0x3a")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0x33")}),t.editing.downcastDispatcher.on(Xx("0x40"),((t,e,o)=>{const{type:s,id:r}=n[Xx("0x43")](e[Xx("0x10")]),i=n[Xx("0x25")](r);if(!i[Xx("0x18")]||"setTableColumnHeader"!=i[Xx("0x18")].commandName)return;const x=o[Xx("0x13")][Xx("0x28")](e.markerName);if(x)for(const t of x)o[Xx("0x23")].removeClass("ck-suggestion-marker-"+s,t),o[Xx("0x23")].removeClass(Xx("0xe"),t),o[Xx("0x23")][Xx("0x3b")](Xx("0x2b"),t),o[Xx("0x13")][Xx("0xa")](t,e[Xx("0x10")])}),{priority:"highest"}),n[Xx("0x37")][Xx("0x3c")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n[Xx("0x4f")]){const t=n.commandParams[0].forceValue;return o(Yo(e,Xx(t?"0x48":"0xb")))}if(Xx("0x6")==n.commandName){const t=n[Xx("0x1c")][0][Xx("0x2a")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:"format",content:Yo(e,Xx("0x2f"),t)}}}));const i=s[Xx("0x12")]();n[Xx("0x16")].registerCustomCallback(Xx("0x42"),Xx("0x46"),Xx("0x1a"),i),n[Xx("0x16")][Xx("0x38")]("formatBlock","setTableColumnHeader",Xx("0x1a"),i)}}const Jx=["getRows","oldRange","elementToElement","document","suggestion","insertRows","formatBlock","tableCellHorizontalAlignment","getChangedMarkers","tableCellVerticalAlignment","filter","author","value","position","fromEntries","markerToHighlight","name","startsWith","forceDefaultExecution","add","cell","find","suggestionLoaded","tablePasteColumn","markerAttributes","_createdBatches","previous","activeMarkers","tablePasteRow","getMarkers","tableCellSuggestion","rows","type","end","createElement","TableClipboard","ck-suggestion-marker-insertion","unwrap","deletionRanges","move","map","tablePasteChainId","getTableIfOnlyTableInContent","nextSibling","registerPostFixer","plugins","stop","getSelectionAffectedTableCells","remove","isEmpty","push","accept","get","every","_getCoordsForCells","_tablePostFixingSubtypes","options","endRow","isEqual","insertion","discard","removeMarker","getColumns","register","requires","has","createPositionBefore","includes","_descriptionFactory","change","redo","$graveyard","editor","createRange","clipboardOutput","columnInsertionIndexes","updateMarker","content","rootName","locale","findAncestor","model","some","low","tableCell","deletion","commands","newRange","ck-suggestion-marker","next","documentSelection","suggestionUnloaded","high","first","_isForcedDefaultExecutionBlock","for","isInContent","getAllAdjacentSuggestions","ck-suggestion-marker--active","tablePaste","tableCellBorderStyle","_suggestionFactory","*Replace table cells*","column","getShiftedBy","view","root","tablePasteCell","createRangeOn","Users","setAttributes","getContainedElement","start","editingDowncast","conversion","registerDescriptionCallback","batch","nodeAfter","markMultiRangeInsertion","element","from","length","registerCustomCallback","fill","cells","createRangeIn","_replaceTableSlotCell","columns","entries","subType","columnInsertionRanges","rowInsertionRanges","insertContent","TrackChangesEditing","insert","row","dataDowncast","paragraph","tableCellPadding","table","selection","markerName","suggestion-td","getSuggestions","differ","suggestion:formatBlock:tablePasteCell","join","reduce","getSuggestion","TableUtils","attributes","last","keys","removeColumns","getChanges","rowInsertionIndexes","getRanges","hasSuggestion","getChildren","getRange","endColumn","wrap","set","createTableWalker"];var Qx,Zx;Qx=Jx,Zx=229,function(t){for(;--t;)Qx.push(Qx.shift())}(++Zx);const Yx=function(t,e){return Jx[t-=0]},ta=["tableCellBorderWidth","tableCellBorderColor",Yx("0x23"),Yx("0x6a"),Yx("0x6c"),"tableCellBackgroundColor",Yx("0x49")],ea=Object[Yx("0x71")](ta[Yx("0x8b")]((t=>[t,null])));class na extends t.Plugin{static get[Yx("0xa3")](){return[Bx]}afterInit(){const t=this[Yx("0x7")];if(!t[Yx("0x90")][Yx("0x0")](Yx("0x86")))return;const n=t[Yx("0x90")].get(Yx("0x44")),o=t.plugins.get(Yx("0x54")),s=t[Yx("0x90")][Yx("0x97")](Bx),r=t[Yx("0x90")].get(Yx("0x86"));s[Yx("0x9a")][Yx("0x95")](Yx("0x7f"),Yx("0x7a")),t[Yx("0x10")].schema[Yx("0xa2")](Yx("0x81"),{allowIn:Yx("0x13"),allowContentOf:Yx("0x13"),isLimit:!0}),t[Yx("0x31")][Yx("0x65")]({model:Yx("0x81"),view:Yx("0x4d")});let i=null;t.model.on(Yx("0x43"),((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Yx("0x75")]||n[Yx("0x1d")]||this[Yx("0x7")][Yx("0x15")][Yx("0x97")]("trackChanges")[Yx("0x6f")]&&function(t,e,n,o,s){if(e&&!e.is(Yx("0x19")))return!1;const r=s[Yx("0x8d")](t,n);if(!r||!sa(r,void 0,o))return!1;const i=o[Yx("0x92")](n[Yx("0x66")][Yx("0x4b")]);if(!i[Yx("0x38")])return!1;const x=i[0].findAncestor("table"),a=o.getRowIndexes(i),c=o.getColumnIndexes(i),l={startRow:a[Yx("0x1c")],endRow:a[Yx("0x56")],startColumn:c[Yx("0x1c")],endColumn:c[Yx("0x56")]};return 1==i[Yx("0x38")]&&(l[Yx("0x9c")]+=o[Yx("0x63")](r)-1,l[Yx("0x5f")]+=o[Yx("0xa1")](r)-1),sa(x,l,o)}(a,c,t[Yx("0x10")],o,r)&&(s[Yx("0x91")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Yx("0x10")].change((()=>{t[Yx("0x10")][Yx("0x43")](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[Yx("0x38")]&&n[Yx("0x35")](s,Yx("0x7f"),{tablePasteChainId:o}),r[Yx("0x38")]&&n[Yx("0x35")](r,Yx("0x7a"),{tablePasteChainId:o}),a.length&&n[Yx("0x35")](a,Yx("0x22"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n.markMultiRangeDeletion(c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n.markMultiRangeBlockFormat(l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0x2a"),{tablePasteChainId:o});if(d){const e=d[Yx("0x80")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Yx("0x10")].createRangeOn(o),i=e[Yx("0x78")]((t=>t[Yx("0x5e")]()[Yx("0x9d")](r)));i&&n[Yx("0x95")]([i.name,s])}n[Yx("0x38")]&&d.setAttribute("markerAttributes",Object[Yx("0x71")](n))}i=null})))}),{priority:e.priorities[Yx("0x1b")]+10}),t[Yx("0x90")][Yx("0x97")](Yx("0x86")).on(Yx("0x3d"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Yx("0x91")]();const r=n[Yx("0x77")],x=o,a=oa(r),c=oa(x);t.return=r;let l=null,d=null;if(c||a)if(a&&!c){s[Yx("0x93")](r.getChild(0));for(const t of Array[Yx("0x37")](x[Yx("0x5d")]()))s.insert(t,r,Yx("0x84"));const t=i[Yx("0x5a")][Yx("0x2")](n[Yx("0x46")]),e=i[Yx("0xa")][Yx("0x2")](n[Yx("0x26")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(d=s[Yx("0x3c")](r));else{const t=s[Yx("0x85")](Yx("0x81")),e=s.createElement(Yx("0x81"));s[Yx("0x60")](s.createRangeIn(r),e),s[Yx("0x45")](t,r,0);for(const e of Array[Yx("0x37")](x[Yx("0x5d")]()))s[Yx("0x45")](e,t,Yx("0x84"));l=s[Yx("0x2b")](t),d=s[Yx("0x2b")](e)}const u=Array[Yx("0x37")](x.getAttributes())[Yx("0x6d")]((([t])=>ta[Yx("0x2")](t)));i[Yx("0x3b")].push({element:r,attributes:u[Yx("0x38")]?Object.fromEntries(u):null}),l&&i.insertionRanges[Yx("0x95")](l),d&&i[Yx("0x89")][Yx("0x95")](d)}),{priority:Yx("0x1b")}),o.on("insertColumns",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x3e")]||1;i[Yx("0xa")]=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of o[Yx("0x62")](s,{startColumn:x,endColumn:x+a-1}))i[Yx("0x41")].push(t[Yx("0x10")][Yx("0x2b")](e))}),{priority:Yx("0x12")}),o.on(Yx("0x68"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x82")]||1;i[Yx("0x5a")]=new Array(a)[Yx("0x3a")](x).map(((t,e)=>t+e));for(const{cell:e}of o[Yx("0x62")](s,{startRow:x,endRow:x+a-1}))i[Yx("0x42")].push(t.model[Yx("0x2b")](e))}),{priority:"low"}),n[Yx("0x3")][Yx("0x32")]((e=>{if(e[Yx("0x40")]&&e[Yx("0x40")][Yx("0x74")](Yx("0x22")))return e[Yx("0x7d")]?{}:{type:Yx("0x9e"),content:Yo(t[Yx("0xe")],Yx("0x25"))}}));const x=()=>!1;for(const t of[Yx("0x22"),Yx("0x7a"),"tablePasteRow","tablePasteCell"])n[Yx("0x24")][Yx("0x39")]("insertion",t,"join",x),n[Yx("0x24")][Yx("0x39")](Yx("0x14"),t,Yx("0x51"),x),n[Yx("0x24")][Yx("0x39")](Yx("0x69"),t,"join",x);n._suggestionFactory[Yx("0x39")]("formatBlock",Yx("0x2a"),"discard",x),n[Yx("0x24")][Yx("0x39")](Yx("0x69"),Yx("0x2a"),Yx("0x96"),((e,n,o)=>{const s=e.map((t=>t[Yx("0x2e")]()))[Yx("0x6d")]((t=>t)),r=new Map(s[Yx("0x8b")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Yx("0x3b")])e&&r[Yx("0x61")](t,e);else if(o&&o[Yx("0x7b")])for(const[e,n]of Object[Yx("0x3f")](o.markerAttributes)){const o=t.model.markers.get(e),s=o?o[Yx("0x5e")]()[Yx("0x2e")]():null;s&&r[Yx("0x61")](s,n)}t.model.change((t=>{for(const[e,n]of r)t[Yx("0x2d")]({...ea,...n},e)}))}));const a=(e,o)=>{n[Yx("0x24")][Yx("0x39")](e,Yx("0x22"),o,((s,r,i)=>{t[Yx("0x10")].change((t=>{const x=[];for(const t of s){const e=t[Yx("0x2f")][Yx("0x34")];e.is(Yx("0x36"),Yx("0x81"))&&x[Yx("0x95")](e)}n[Yx("0x24")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Yx("0x6")!=e[Yx("0x29")][Yx("0xd")]&&t.unwrap(e)}))}))};a(Yx("0x9e"),"accept"),a(Yx("0x9e"),Yx("0x9f")),a(Yx("0x14"),"accept"),a(Yx("0x14"),Yx("0x9f")),n[Yx("0x24")][Yx("0x39")](Yx("0x9e"),Yx("0x7f"),Yx("0x9f"),(t=>{const e=t[Yx("0x8b")]((t=>t[Yx("0x2e")]())),n=e[0][Yx("0xf")](Yx("0x4a")),{minRow:r,maxRow:i}=s[Yx("0x99")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[Yx("0x24")].registerCustomCallback(Yx("0x9e"),Yx("0x7a"),Yx("0x9f"),(t=>{const e=t[Yx("0x8b")]((t=>t[Yx("0x2e")]())),n=e[0][Yx("0xf")](Yx("0x4a")),{minColumn:r,maxColumn:i}=s[Yx("0x99")](e);o[Yx("0x58")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Yx("0x40")]||!e.subType[Yx("0x74")](Yx("0x22")))return;const o=e[Yx("0x55")][Yx("0x8c")],s=n.getSuggestions().filter((t=>t[Yx("0x1f")]&&t.attributes&&t[Yx("0x55")].tablePasteChainId==o));s[Yx("0x38")]&&e[Yx("0x20")]().length!=s[Yx("0x38")]&&s[Yx("0x52")](((t,e)=>(t[Yx("0x18")]=e,e[Yx("0x7d")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[Yx("0x4c")]),s=[Yx("0x17"),Yx("0x87")],r=n[Yx("0x7e")].includes(t[Yx("0x4c")]);return r&&s[Yx("0x95")](Yx("0x21")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Yx("0x79"),c,{priority:Yx("0x1b")}),n.on(Yx("0x1a"),c,{priority:Yx("0x1b")}),t[Yx("0x10")][Yx("0x66")][Yx("0x8f")]((()=>{let e=!1;const o=Array[Yx("0x37")](t[Yx("0x10")].document[Yx("0x4f")][Yx("0x6b")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n._splitMarkerName(s);if("suggestion"!=o||"deletion"!=i||r[Yx("0x64")])continue;if(!n[Yx("0x5c")](x))continue;const a=n[Yx("0x53")](x)[Yx("0x5b")](),c=t[Yx("0x90")][Yx("0x97")](Yx("0x2c")).me;for(const t of n[Yx("0x4e")]())if(t[Yx("0x1f")]&&t.author==c&&Yx("0x69")==t.type&&Yx("0x2a")==t[Yx("0x40")]&&t[Yx("0x5b")]()[Yx("0x98")]((t=>a[Yx("0x11")]((e=>e.containsRange(t,!0))))))for(const n of t[Yx("0x20")]())n[Yx("0x1f")]&&(n[Yx("0x9f")](),e=!0)}return e})),t[Yx("0x10")][Yx("0x66")][Yx("0x8f")]((e=>{const o=t[Yx("0x15")].get(Yx("0x5"));if(!o||!o[Yx("0x7c")][Yx("0x0")](e[Yx("0x33")]))return!1;let s=!1;const r=t.plugins[Yx("0x97")](Yx("0x2c")).me,i=t.model[Yx("0x66")][Yx("0x4f")][Yx("0x59")](),x=Array[Yx("0x37")](t[Yx("0x10")][Yx("0x66")][Yx("0x4f")][Yx("0x6b")]()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n._splitMarkerName(t);return Yx("0x67")==o&&Yx("0x22")==s&&i==r.id&&!e[Yx("0x64")]}));for(const t of i){if("insert"!=t[Yx("0x83")]||Yx("0x81")!=t[Yx("0x73")]||1!=t[Yx("0x38")])continue;const n=e[Yx("0x8")](t[Yx("0x70")],t[Yx("0x70")][Yx("0x27")](1));if(!x[Yx("0x78")]((({data:t})=>t[Yx("0x16")][Yx("0x9d")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[Yx("0x16")])){e[Yx("0xb")](t,{range:n}),s=!0;break}}return s})),t[Yx("0x10")][Yx("0x66")].registerPostFixer((e=>{let o=!1;const s=t.plugins[Yx("0x97")](Yx("0x2c")).me,r=n[Yx("0x4e")]()[Yx("0x6d")]((t=>t.isInContent&&t[Yx("0x6e")]==s)),i=new Set,x=new Set;for(const t of r)if(Yx("0x22")==t[Yx("0x40")])for(const e of t[Yx("0x80")]()){const n=e.getRange()[Yx("0x2e")]();if(n)if(n.is(Yx("0x36"),Yx("0x81"))&&oa(n)){t[Yx("0xa0")](e[Yx("0x73")]),i.add(n),o=!0;const s=n[Yx("0x8e")],r=n.previousSibling,a=s&&s.is("element",Yx("0x81")),c=r&&r.is(Yx("0x36"),Yx("0x81"));a&&!i[Yx("0x0")](s)&&x[Yx("0x76")](s),c&&!i.has(r)&&x[Yx("0x76")](r)}else n.is("element",Yx("0x48"))&&n[Yx("0x94")]&&(t[Yx("0xa0")](e[Yx("0x73")]),o=!0)}else if("tablePasteCell"==t.subType){if(!t[Yx("0x55")]||!t[Yx("0x55")][Yx("0x8c")])continue;const e=t[Yx("0x55")][Yx("0x7b")];if(e&&Object[Yx("0x57")](e)[Yx("0x38")])continue;const n=t.attributes.tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e[Yx("0x40")]&&e[Yx("0x40")][Yx("0x74")](Yx("0x22"))){if(!e[Yx("0x55")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[Yx("0x55")][Yx("0x8c")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Yx("0x88")](t);return o})),t.conversion[Yx("0x1e")](Yx("0x30")).markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:Yx("0x1b")}),t[Yx("0x31")][Yx("0x1e")](Yx("0x47"))[Yx("0x72")]({model:Yx("0x50"),view:(t,e)=>e[Yx("0x9b")].showSuggestionHighlights?l(t,!1):null,converterPriority:Yx("0x1b")});const d=t.editing[Yx("0x28")];this.listenTo(d[Yx("0x66")],Yx("0x9"),((t,e)=>{const n=[];for(const t of d[Yx("0x3c")](e[Yx("0xc")]).getItems())t.is("element",Yx("0x4d"))&&n[Yx("0x95")](t);d[Yx("0x4")]((t=>{for(const e of n)t[Yx("0x8a")](t.createRangeIn(e),t[Yx("0x1")](e)),t[Yx("0x93")](e)}))}))}}function oa(t){if(t.isEmpty)return!0;const e=t.getChild(0);return e.is(Yx("0x36"),Yx("0x48"))&&e[Yx("0x94")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Yx("0x62")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ra=["selection","handleSuggestionDescription","handleResizeTableWidthCommand","get","commandParams","TableColumnResizeEditing","data","getSuggestions","columnWidths","resizeColumnWidths","formatBlock","bind","_suggestionFactory","discard","enableCommand","locale","TrackChangesEditing","change","getSelectedElement","tableWidth","editor","has","author","resizeTable","getContainedElement","plugins","getAttribute","formatGroupId","getColumnGroupElement","model","resizeTableWidth","afterInit","registerDescriptionCallback","document","subType"];var ia,xa;ia=ra,xa=116,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x14")](){if(!this.editor.plugins[aa("0xa")](aa("0x1d")))return;const t=this[aa("0x9")].plugins.get(aa("0x5"));t[aa("0x3")]("resizeTableWidth",this[aa("0x1a")].bind(this)),t.enableCommand(aa("0x21"),this.handleResizeTableWidthCommand[aa("0x0")](this)),t[aa("0x1")].registerCustomCallback(aa("0x22"),aa("0xc"),"accept",t[aa("0x1")].getSuggestionCallback(aa("0x22"),null,aa("0x2"))),t._suggestionFactory.registerCustomCallback(aa("0x22"),"resizeTable","discard",t[aa("0x1")].getSuggestionCallback("formatBlock",null,"accept")),t._descriptionFactory[aa("0x15")](this[aa("0x19")][aa("0x0")](this))}[aa("0x1a")](t,e){const n=this[aa("0x9")][aa("0xe")][aa("0x1b")](aa("0x5")),o=this.editor[aa("0xe")][aa("0x1b")](aa("0x1d")),s=e.table||this[aa("0x9")][aa("0x12")][aa("0x16")][aa("0x18")][aa("0x7")]();this.editor[aa("0x12")][aa("0x6")]((()=>{const r=o[aa("0x11")](s);let i=r?o.getTableColumnsWidths(r):null,x=s[aa("0xf")](aa("0x8"))||null;const a=e.tableWidth||x,c=e[aa("0x20")]||i,l=this.editor[aa("0xe")][aa("0x1b")]("Users").me;for(const t of n[aa("0x1f")]()){const e=t[aa("0xd")]();if("resizeTable"===t[aa("0x17")]&&e===s){t[aa("0xb")]!==l&&t[aa("0x2")]();const e=t[aa("0x1e")][aa("0x1c")];x=e[0][aa("0x8")],i=e[0][aa("0x20")];break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:aa("0x13"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:aa("0xc")},[],aa("0xc"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&aa("0xc")===e[aa("0x10")]){const t="*Format:* resize table";return{type:"format",content:Yo(this[aa("0x9")][aa("0x4")],t)}}}}const la=["plugins","get","has","enableCommand","editor","Template"];var da,ua;da=la,ua=290,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{afterInit(){const t=this[ga("0x2")];t.plugins[ga("0x0")](ga("0x3"))&&t[ga("0x4")][ga("0x5")]("TrackChangesEditing")[ga("0x1")]("insertTemplate")}}const fa=["get","enableCommand","tableOfContents","ELEMENT_TABLE_OF_CONTENTS","_descriptionFactory","locale","insertTableOfContents","afterInit","plugins","TrackChangesEditing","commands"];var ha,pa;ha=fa,pa=261,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0xa")](){const t=this.editor;if(!t[ba("0x2")][ba("0x3")](ba("0x9")))return;t[ba("0x0")].get(ba("0x1"))[ba("0x4")](ba("0x9"));const e=t[ba("0x0")][ba("0x3")](ba("0x1")),n=t[ba("0x8")];e[ba("0x7")].registerElementLabel(ba("0x5"),(t=>Yo(n,ba("0x6"),t)))}}const _a=["plugins","has","createRange","document","ELEMENT_TITLE","schema","start","Title","TrackChangesEditing","model","isCollapsed","nodeBefore","removeMarker","_splitMarkerName","_descriptionFactory","end","element","title-content","suggestion","registerPostFixer","locale","isEqual","updateMarker","newRange"];var Ta,Ca;Ta=_a,Ca=476,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.editor;if(!t[ya("0x4")][ya("0x5")](ya("0xb")))return;const e=t[ya("0x4")].get(ya("0xc"));e[ya("0x12")].registerElementLabel(ya("0x15"),(()=>Yo(t[ya("0x0")],ya("0x8")))),t[ya("0xd")][ya("0x7")][ya("0x17")]((n=>{let o=!1;const s=Array.from(t.model.document.differ.getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e[ya("0x11")](r);if(ya("0x16")!==s||!i.newRange)continue;const x=i[ya("0x3")],a=x.end[ya("0xf")];if(!a||!a.is(ya("0x14"),ya("0x15")))continue;if(!x[ya("0xa")].isTouching(x[ya("0x13")]))continue;const c=t.model[ya("0x9")].getNearestSelectionRange(x[ya("0x13")],"forward");if(c&&c[ya("0xe")]){const t=n[ya("0x6")](x[ya("0xa")],c[ya("0xa")]);t[ya("0x1")](x)||(n[ya("0x2")](r,{range:t}),o=!0)}o||(n[ya("0x10")](r),o=!0)}return o}))}}const Aa=["afterInit","redo","UndoEditing","has","get","editor","TrackChangesEditing","undo","enableCommand","plugins"];var va,Ra;va=Aa,Ra=130,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{[Sa("0x0")](){const t=this[Sa("0x5")],e=t[Sa("0x9")][Sa("0x4")](Sa("0x6"));t.plugins[Sa("0x3")](Sa("0x2"))&&(e.enableCommand(Sa("0x7")),e[Sa("0x8")](Sa("0x1")))}}const La=["TrackChangesEditing","get","TableCaptionEditing","plugins","editor","has","requires","afterInit"];var Na,wa;Na=La,wa=101,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{static get[Ma("0x1")](){return[Bx]}[Ma("0x2")](){const t=this[Ma("0x7")];t[Ma("0x6")][Ma("0x0")](Ma("0x5"))&&t[Ma("0x6")][Ma("0x4")](Ma("0x3")).enableCommand("toggleTableCaption")}}const Fa=["styles","listStart","DocumentListUtils","reversed","replace","toUpperCase","startIndex","_descriptionFactory","config","listReversed","handleListReversedCommand","markMultiRangeBlockFormat","handleListStyleCommand","expandListBlocksToCompleteList","handleListStartCommand","numbered","change","*Change to:* %0","list.properties","getListTypeFromListStyleType","format","handleDescriptions","TrackChangesEditing","listStyle","get","enableCommand","isListItemBlock","model","locale","type","plugins","*Format:* set order to regular","ELEMENT_","document","commandParams","isFirstBlockOfListItem","from","filter","_getTranslationKeyForListStyle","getSelectedBlocks","_getSuggestionBlocks","DocumentListPropertiesUtils","afterInit","_getSuggestionBlocksForListStyle","selection","registerDescriptionCallback","push","*Format:* set order to reversed","*Format:* set start index to %0","editor","bind","commandName"];var Pa,Da;Pa=Fa,Da=330,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0x18")](){if(!this[Ba("0x1f")][Ba("0xc")].has("DocumentListPropertiesEditing"))return;const t=this.editor[Ba("0x2a")].get(Ba("0x0")),e=this[Ba("0x1f")].plugins[Ba("0x6")](Ba("0x4"));t[Ba("0x22")]&&e[Ba("0x7")]("listStyle",this[Ba("0x2e")][Ba("0x20")](this)),t[Ba("0x25")]&&e[Ba("0x7")](Ba("0x2b"),this.handleListReversedCommand[Ba("0x20")](this)),t[Ba("0x28")]&&e[Ba("0x7")](Ba("0x23"),this.handleListStartCommand[Ba("0x20")](this)),e[Ba("0x29")][Ba("0x1b")](this[Ba("0x3")][Ba("0x20")](this))}[Ba("0x2e")](t,e={}){const n=this.editor[Ba("0xc")][Ba("0x6")]("TrackChangesEditing"),o=this[Ba("0x19")]();this[Ba("0x1f")][Ba("0x9")][Ba("0x32")]((()=>{n[Ba("0x2d")](o,{commandName:Ba("0x5"),commandParams:[{type:e.type}],formatGroupId:Ba("0x5")})}))}[Ba("0x2c")](t,e={}){const n=this.editor[Ba("0xc")][Ba("0x6")]("TrackChangesEditing"),o=this.editor[Ba("0xc")].get(Ba("0x24")),s=this[Ba("0x16")]((t=>o[Ba("0x8")](t)&&Ba("0x31")===t.getAttribute("listType")));null!==s&&this.editor.model[Ba("0x32")]((()=>{n[Ba("0x2d")](s,{commandName:"listReversed",commandParams:[{reversed:e[Ba("0x25")]}],formatGroupId:Ba("0x2b")})}))}[Ba("0x30")](t,e={}){const n=this[Ba("0x1f")][Ba("0xc")].get(Ba("0x4")),o=this[Ba("0x1f")][Ba("0xc")][Ba("0x6")]("DocumentListUtils"),s=this[Ba("0x16")]((t=>o[Ba("0x8")](t)&&"numbered"===t.getAttribute("listType")));null!==s&&this[Ba("0x1f")][Ba("0x9")][Ba("0x32")]((()=>{n[Ba("0x2d")](s,{commandName:Ba("0x23"),commandParams:[{startIndex:e.startIndex}],formatGroupId:Ba("0x23")})}))}[Ba("0x3")](t){const e=this[Ba("0x1f")][Ba("0xa")],{data:n}=t;if(!n)return;let o,s;switch(n[Ba("0x21")]){case Ba("0x5"):o=Ba("0x33"),s={type:Ba("0x2"),content:Yo(e,o,Yo(e,this[Ba("0x14")](n.commandParams[0][Ba("0xb")])))};break;case Ba("0x2b"):o=n[Ba("0x10")][0][Ba("0x25")]?Ba("0x1d"):Ba("0xd"),s={type:Ba("0x2"),content:Yo(e,o)};break;case Ba("0x23"):o=Ba("0x1e"),s={type:Ba("0x2"),content:Yo(e,o,n.commandParams[0][Ba("0x28")])}}return s}_getSuggestionBlocksForListStyle(){const t=this[Ba("0x1f")][Ba("0xc")][Ba("0x6")](Ba("0x24"));let e=Array[Ba("0x12")](this.editor.model[Ba("0xf")][Ba("0x1a")][Ba("0x15")]());return e[Ba("0x1c")](...t[Ba("0x2f")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[Ba("0x1f")][Ba("0xc")].get(Ba("0x24"));let n=Array[Ba("0x12")](this[Ba("0x1f")][Ba("0x9")][Ba("0xf")].selection[Ba("0x15")]())[Ba("0x13")](t);if(!n.length)return null;n=e[Ba("0x2f")](n);const o=[];for(const t of n)e[Ba("0x11")](t)&&o[Ba("0x1c")](t);return o}[Ba("0x14")](t){return Ba("0xe")+this[Ba("0x1f")][Ba("0xc")].get(Ba("0x17"))[Ba("0x1")](t)[Ba("0x27")]()+"_LIST_"+t[Ba("0x27")]()[Ba("0x26")](/-/g,"_")}}const Ua=["start","tableBackgroundColor","tableCellBorderStyle","registerCustomCallback","accept","change","_getSuggestion","getFirstPosition","data","document","handleSuggestionDescription","format","_suggestionFactory","formatBlock","commandParams","tableCellBorderColor","tableHeight","model","_handlePropertyChange","enqueueChange","tableCellBackgroundColor","pluginName","getSuggestions","tableBorderColor","tableCellBorderWidth","markBlockFormat","tableCellPadding","getContainedElement","*Format:* change table properties","TablePropertiesEditing","selection","join","tableAlignment","batch","enableCommand","plugins","nodeAfter","has","afterInit","tableCellProperties","locale","editor","getSuggestionCallback","tableProperties","*Format:* change table cell properties","table","registerDescriptionCallback","tableBorderWidth","tableCellWidth","tableWidth","tableCellVerticalAlignment","discard","findAncestor","removeAttribute","tableCellHeight","get","subType","TrackChangesEditing","handleDiscardAction"];var Ga,Ha;Ga=Ua,Ha=186,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x22")]=[za("0xe"),"tableBorderStyle",za("0x26"),za("0x17"),za("0x28"),za("0x7"),za("0x33")],this[za("0x1e")]=[za("0x6"),za("0x34"),za("0xf"),za("0x11"),za("0x27"),za("0x2d"),za("0xb"),"tableCellHorizontalAlignment",za("0x29")]}static get[za("0xc")](){return"TrackChangesTableProperties"}[za("0x1d")](){const t=this.editor[za("0x1a")].get(za("0x30"));if(this[za("0x20")][za("0x1a")].has(za("0x14"))){for(const e of this[za("0x22")])t[za("0x19")](e,((t,n)=>{const o=this[za("0x20")].model[za("0x0")][za("0x15")][za("0x39")]()[za("0x2b")](za("0x24"));this._handlePropertyChange(e,[o],this[za("0x22")],za("0x22"),t,n)}));t[za("0x3")][za("0x35")](za("0x4"),za("0x22"),"accept",t._suggestionFactory[za("0x21")](za("0x4"),null,"discard")),t._suggestionFactory[za("0x35")]("formatBlock",za("0x22"),za("0x2a"),((t,e)=>this[za("0x31")](this[za("0x22")],t,e))),t[za("0x3")][za("0x35")](za("0x4"),za("0x22"),za("0x16"),(()=>!1))}if(this.editor[za("0x1a")][za("0x1c")]("TableCellPropertiesEditing")){for(const e of this[za("0x1e")])t[za("0x19")](e,((t,n)=>{const o=this[za("0x20")][za("0x1a")][za("0x2e")]("TableUtils").getSelectionAffectedTableCells(this[za("0x20")][za("0x8")][za("0x0")].selection);this[za("0x9")](e,o,this[za("0x1e")],za("0x1e"),t,n)}));t._suggestionFactory[za("0x35")](za("0x4"),za("0x1e"),za("0x36"),t[za("0x3")].getSuggestionCallback(za("0x4"),null,"discard")),t[za("0x3")][za("0x35")]("formatBlock",za("0x1e"),za("0x2a"),((t,e)=>this[za("0x31")](this[za("0x1e")],t,e))),t[za("0x3")][za("0x35")]("formatBlock","tableCellProperties","join",(()=>!1))}t._descriptionFactory[za("0x25")]((t=>this.handleSuggestionDescription(t)))}[za("0x9")](t,e,n,o,s,r){const i=this[za("0x20")][za("0x1a")][za("0x2e")](za("0x30"));this[za("0x20")][za("0x8")][za("0xa")](r[za("0x18")],(()=>{for(const t of e)if(this[za("0x38")](t,o))s(r);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}s(r),i[za("0x10")](t,{commandParams:[e]},[],o)}}))}[za("0x31")](t,e,n){const o=e[0][za("0x32")][za("0x1b")],s=n[za("0x5")][0];this[za("0x20")][za("0x8")][za("0x37")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[za("0x2c")](n,o)}))}[za("0x1")](t){if(t[za("0x3a")])switch(t[za("0x2f")]){case"tableProperties":return{type:"format",content:Yo(this.editor[za("0x1f")],za("0x13"))};case za("0x1e"):return{type:za("0x2"),content:Yo(this.editor.locale,za("0x23"))}}}[za("0x38")](t,e){const n=this[za("0x20")].plugins.get("TrackChangesEditing");for(const o of n[za("0xd")]({skipNotAttached:!0})){const n=o[za("0x12")]();if(o.subType===e&&n===t)return o}return null}}const Va=["init","_updateSuggestionData","getSuggestions","return","isInsideObject","getAttribute","getNearestSelectionRange","track-changes-adapter-already-set","position","_setSuggestionData","registerPostFixer","containsRangeInObject","getDifference","setSelection","isCollapsed","name","options","addClass","isLimit","root","detach","ck-suggestion-marker-formatBlock","addMarker:suggestion","hasComments","stop","formatInline:discard","data","_addThreadToSuggestion","forceDefaultExecution","editingDowncast","pluginName","deletion:discard","nodeBefore","default","suggestion","fromCharCode","define","@external","error-saving-suggestion-data-suggestion-discarded","isEqual","_enabledCommands","low","_saved","trackChanges","elementToElement","acceptSelectedSuggestions","high","PENDING_ACTION_SUGGESTION","isAtEnd","dataDowncast","formatInline:","delete","isAfter","parent","getCommentThread","isRemovable","previous","refresh","setAttribute","_findSuggestions","has","_commentsRepository","toViewElement","newRange","discardSuggestion","insertion:accept","stopListening","every","moveTargetPosition","deletion:accept","_rangeIsInLocalUserInsertion","model","markerNameToElements","enableCommand","Users","update:suggestion","elementStart","clone","_joinSuggestions","PendingActions","assign","rootName","for","hasSuggestion","getCustomProperty","external:","_trackFormatChanges","addMarkerName","splitPosition","ready","isOwn","originalSuggestionId","multi","keys","multipleBlocks","getAllAdjacentSuggestions","createPositionAt","data-suggestion","markDeletion","start","formatInline:chain","_suggestionFactory","_mergeNestedSuggestions","widget","authorName","getMultiRangeId","_suggestionState","always","fromRange","getSuggestionCallback","acceptAllSuggestions","activeMarkers","removeMarkers","getSuggestion","batch","getFirstMarker","_getAuthorFromId","forward","getWalker","value","addRange","writer","attributes","commandName","range","markers","addMarker:suggestion:formatBlock","tablePasteChainId","markInlineFormat","oldRange","containsItem","getChangedMarkers","getShiftedBy","item","consume","_createSuggestion","documentSelection","ck-suggestion-marker","unbind","containerElement","isTouching","addComment","_refreshSuggestionsChain","map","createRange","skipNestingCheck","subType","_checkSuggestionCorrectness","_getSuggestionData","buildSuggestion","addSuggestionData","addHighlight","end","schema","split","enableReadOnlyMode","isNextTo","$graveyard","markInsertion","_cutOutSuggestionMarker","discardSelectedSuggestions","formatInline","addSuggestion","removeAttribute","isAtStart","head","author","isArray","dataToMarker","collaboration.channelId","discard","includes","deletion:chain","isBlock","$marker","join","showSuggestionHighlights","$textProxy","trackChangesCommand","document","_onDiscard","_customCallbacks","formatBlock:accept","removeComment","filter","commentThread","containsRange","differ","suggestion:","addCommentThread","setTo","updateMarker","formatGroupId","track-changes-suggestion-data-mismatch","change:data","isBefore","ck-suggestion-marker--active","push","markMultiRangeBlockFormat","insert","isInContent","bindElementToMarker","_setSuggestionRange","getFirstRange","splice","size","dataReady","change:activeMarkers","addUser","_adapter","_breakSuggestionMarker","elementEnd","change","isObject","move","getRange","consumable","_editor","formatBlock","before","conversion","listenTo","suggestion-type","element","_splitMarkerName","locale","formatInline:join","_addSuggestionMarker","insertion:join","normal","insertion:","removeClass","getLastMatchingPosition","createSelection","applyOperation","_model","substr","createPositionAfter","type","formatBlock:discard","deletion:","fetchCommentThread","rethrowUnexpectedError","fire","toJSON","length","suggestionLoaded","get","reconvertMarker","_isDataLoaded","TrackChangesEditing","isSelectable","set","CommentsRepository","getRanges","addMarker","editor","_descriptionFactory","ck-suggestion-marker-","_handleNewSuggestionMarker","registerCustomCallback","formatBlock:join","upcast","markerName","_isForcedDefaultExecutionBlock","marker-count","mapper","next","formatBlock:","isDocumentOperation","plugins","getIntersection","createPositionBefore","deleteContent","trackChanges.trackFormatChanges","notReady","isIntersectingWithRange","adapter","authoredAt","_defaultCallbacks","backward","isLocal","track-changes-suggestion-not-found","deletion","markerToData","then","markMultiRangeDeletion","creator","isMultiRange","acceptSuggestion","never","createElement","enqueueChange","add","markerReady","removeMarker:suggestion:formatBlock","unbindElementFromMarkerName","sort","from","commands","_getExternalAuthor","getMarkers","values","discardAllSuggestions","accept","execute","howMany","insertion:discard","createdAt","insertion","nodeAfter","_suggestions","track-changes-command-not-found","getUser","markerToHighlight","suggestionChanged","some","_removeSuggestion","config","insertContent","_joinWithAdjacentSuggestions","change:_saved","removeMarker"];var Ka,qa;Ka=Va,qa=470,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Va[t-=0]};class $a extends t.Plugin{static get requires(){return[Xa("0x6a"),r.Users,t.PendingActions,cs,ms,Rs,ws,Bs,zs,$s,er,ir,ja,ur,pr,yr,Sr,Fr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,wi,ji,Wi,$i,tx,rx,dx,px,Cx,Sx,Mx,Bx,Wx,$x,Oa,na,ca,Ea,Wa,ma,ka,Ia]}static get[Xa("0xce")](){return Xa("0x67")}constructor(t){function e(t){return t[Xa("0x13f")]((t=>String[Xa("0xd3")](t))).join("")}super(t),this[Xa("0x69")](Xa("0x11f"),[]),this.on(Xa("0x3c"),((e,n,o,s)=>{this[Xa("0x58")][Xa("0x41")]((()=>{for(const e of[...s,...o])this[Xa("0x58")][Xa("0x12d")][Xa("0xec")](e)&&t.editing[Xa("0x65")](e)}))})),this[Xa("0x6e")]=new ss(this[Xa("0x6d")][Xa("0xf7")][Xa("0x6")],this[Xa("0x6d")].locale),this[Xa("0x3e")]=null,this[Xa("0x115")]=new Ja(this[Xa("0x6d")]),this[Xa("0xa4")]=new Map,this[Xa("0xed")]=t[Xa("0x7b")][Xa("0x64")](Xa("0x6a")),this[Xa("0xd8")]=new Set,this[Xa("0x58")]=this.editor[Xa("0xf7")],this[Xa("0x11a")]=new WeakMap,this[Xa("0x75")]=!1,t[Xa("0xab")][Xa("0xd4")](Xa("0x7f"),Xa("0xd1")),this[Xa("0x106")]=t[Xa("0xab")][Xa("0x64")]("trackChanges.trackFormatChanges"),t[Xa("0xab")][Xa("0xd4")]("trackChanges.mergeNestedSuggestions",!0),this[Xa("0x116")]=t[Xa("0xab")][Xa("0x64")]("trackChanges.mergeNestedSuggestions"),this[Xa("0x1f")]=new u(t,this._enabledCommands),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,48,49,48])}[Xa("0xb0")](){const t=this[Xa("0x6d")];t.conversion[Xa("0x102")](Xa("0xcd"))[Xa("0xa7")]({model:Xa("0xd2"),view:t=>{const{id:e,type:n}=this[Xa("0x4d")](t[Xa("0x74")]),o=[Xa("0x139"),Xa("0x6f")+n];let s=3e3;return this[Xa("0x11f")][Xa("0x18")](t[Xa("0x74")])&&(o[Xa("0x32")]("ck-suggestion-marker--active"),s=3010),Xa("0x88")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Xa("0x49")][Xa("0x102")](Xa("0xe1"))[Xa("0x92")]((e=>{e.on(Xa("0xc6"),((e,n,o)=>{if(!o[Xa("0xc0")][Xa("0x1d")])return;const s=n[Xa("0x135")];if(!s)return;const r=o.mapper[Xa("0xee")](s);t.model[Xa("0x6")][Xa("0x42")](s)&&r&&!r[Xa("0x104")](Xa("0x117"))&&r.is(Xa("0x13b"))&&(0,x.toWidget)(r,o[Xa("0x129")])}),{priority:Xa("0xde")})})),t.conversion[Xa("0x102")](Xa("0xe1"))[Xa("0xa7")]({model:"suggestion",view:(t,e)=>{if(!e[Xa("0xc0")][Xa("0x1d")])return null;const{type:n}=this[Xa("0x4d")](t[Xa("0x74")]);return{classes:[Xa("0x139"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[Xa("0x135")].is("selection"))return void s[Xa("0x45")][Xa("0x136")](o[Xa("0x135")],n[Xa("0xbf")]);const r=s[Xa("0x77")][Xa("0xee")](o.item);if(!o[Xa("0x135")].is(Xa("0x4c"))||!t[Xa("0xf7")][Xa("0x6")][Xa("0x1a")](o[Xa("0x135")])||r.getCustomProperty(Xa("0x4")))return;const{id:i}=this[Xa("0x4d")](o[Xa("0x74")]);s[Xa("0x129")][Xa("0xc1")]([Xa("0x139"),Xa("0xc5")],r),s[Xa("0x129")][Xa("0xea")](Xa("0x111"),i,r),s[Xa("0x77")][Xa("0x36")](r,o.markerName),e&&(this.activeMarkers[Xa("0x18")](o[Xa("0x74")])?s[Xa("0x129")].addClass(Xa("0x31"),r):s.writer[Xa("0x54")](Xa("0x31"),r));for(const e of t.model.createRangeIn(o.item).getItems())s[Xa("0x45")][Xa("0x136")](e,n[Xa("0xbf")]);s.consumable[Xa("0x136")](o[Xa("0x135")],n[Xa("0xbf")])};t[Xa("0x49")][Xa("0x102")](Xa("0xe1")).add((t=>{t.on(Xa("0x12e"),((t,e,o)=>{o[Xa("0xc0")][Xa("0x1d")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[Xa("0x49")][Xa("0x102")]("dataDowncast")[Xa("0x89")]({model:Xa("0xd2"),view:(t,e)=>e[Xa("0xc0")][Xa("0x1d")]?null:{group:Xa("0xd2"),name:t[Xa("0x59")](11)}}),t.conversion[Xa("0x102")](Xa("0x73"))[Xa("0xdc")]({view:{name:Xa("0xd2"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Xa("0x29")+t[Xa("0xb5")](Xa("0x4b"))+":"+t.getAttribute("id");return t[Xa("0xb5")](Xa("0x76"))&&(n+=":"+t[Xa("0xb5")](Xa("0x76"))),e[Xa("0x90")](Xa("0x1b"),{"data-name":n})}}),t[Xa("0x49")][Xa("0x102")](Xa("0x73"))[Xa("0x15")]({view:Xa("0xd2")}),t[Xa("0x49")][Xa("0x102")](Xa("0xcd"))[Xa("0x92")]((t=>{t.on(Xa("0x12e"),n(),{priority:Xa("0xde")})})),t[Xa("0x49")].for("editingDowncast")[Xa("0x92")]((t=>{t.on(Xa("0x94"),((t,e,n)=>{const o=n[Xa("0x77")][Xa("0xf8")](e[Xa("0x74")]);if(o)for(const t of o)t[Xa("0x104")](Xa("0x4"))||(n[Xa("0x129")][Xa("0x54")]([Xa("0x139"),Xa("0xc5"),Xa("0x31")],t),n[Xa("0x129")][Xa("0x10")](Xa("0x111"),t),n[Xa("0x77")][Xa("0x95")](t,e[Xa("0x74")]))}),{priority:Xa("0xde")})})),t[Xa("0xf7")][Xa("0x20")][Xa("0xba")]((e=>{let n=!1;const o=Array[Xa("0x97")](t[Xa("0xf7")][Xa("0x20")][Xa("0x28")].getChangedMarkers()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0x4d")](x);if(Xa("0xd2")!==o)continue;const d=this[Xa("0xa4")][Xa("0x64")](l);if(null!=a.newRange)if("formatInline"==c&&(n=n||Ya(a[Xa("0xef")],x,e,t.model[Xa("0x6")])),a.newRange[Xa("0xbe")]||"$graveyard"==a[Xa("0xef")].root[Xa("0x101")]||Xa("0x47")==c&&!ec(a.newRange)||Xa("0x88")==c&&(Za(i=a[Xa("0xef")])||(r=i).start[Xa("0xe5")]==r.end[Xa("0xd0")]&&r[Xa("0x113")][Xa("0xe0")]))e[Xa("0xaf")](x),n=!0;else{if(!d||!d.isInContent)continue;s[Xa("0x92")](d)}}var r,i;return s[Xa("0x3a")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[Xa("0xf7")][Xa("0x20")][Xa("0xba")]((e=>{let n=!1;for(const o of t[Xa("0xf7")][Xa("0x20")][Xa("0x28")].getChanges()){if("insert"!=o.type)continue;const s=o[Xa("0xb8")][Xa("0x134")](o.length);if(s[Xa("0xe0")])for(const r of this[Xa("0xa4")][Xa("0x9b")]()){if(r[Xa("0x8d")]||!r[Xa("0x35")])continue;if("formatBlock"!=r[Xa("0x5b")])continue;const i=r[Xa("0x38")]();if(i[Xa("0x113")].parent!=i[Xa("0x5")][Xa("0xe5")]&&i[Xa("0x5")].isEqual(o.position)){const o=t.model[Xa("0x140")](i[Xa("0x113")],s);e[Xa("0x2c")](r[Xa("0x123")](),{range:o}),n=!0}}}return n})),t.model[Xa("0x12d")].on(Xa("0xfb"),((t,e,n)=>{if(null==n){const{id:t}=this[Xa("0x4d")](e[Xa("0xbf")]),n=this[Xa("0xa4")][Xa("0x64")](t);n&&n[Xa("0x107")](e[Xa("0xbf")])}})),t[Xa("0xf7")][Xa("0x20")].on(Xa("0x2f"),(()=>{const e=Array[Xa("0x97")](t.model.document[Xa("0x28")][Xa("0x133")]()).filter((t=>Xa("0xd2")===this[Xa("0x4d")](t[Xa("0xbf")]).group));if(0===e[Xa("0x62")])return;e[Xa("0x96")](((t,e)=>{const n=t[Xa("0xca")][Xa("0x131")],o=e[Xa("0xca")][Xa("0x131")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[Xa("0x30")](o[Xa("0x113")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0x4d")](t);if(null===s[Xa("0x131")]){const e=this[Xa("0x70")](t);o[Xa("0x92")](e)}else{const t=this[Xa("0xa4")].get(e);null!==s.newRange||t[Xa("0x35")]?(n[Xa("0x92")](t[Xa("0x12")]),o[Xa("0x92")](t)):this[Xa("0xaa")](t)}}o[Xa("0x3a")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this.fire("suggestionChanged",t)})),t[Xa("0xf7")].on(Xa("0x57"),((e,n)=>{const o=n[0];if(!this[Xa("0xa4")].size)return;if(!o[Xa("0x7a")])return;if(o[Xa("0x122")].isUndo||!o.batch[Xa("0x86")])return;let s,r;switch(o[Xa("0x5b")]){case Xa("0x34"):s=t[Xa("0xf7")][Xa("0x110")](o[Xa("0xb8")]),r=s[Xa("0x134")](o[Xa("0x9f")]);break;case Xa("0x7"):s=t[Xa("0xf7")][Xa("0x110")](o[Xa("0x108")]),r=t.model[Xa("0x110")](o[Xa("0xf4")]);break;case Xa("0x43"):s=t[Xa("0xf7")][Xa("0x110")](o.targetPosition),r=s.getShiftedBy(o[Xa("0x9f")]);break;default:return}const i=t.model[Xa("0x140")](s,r);t[Xa("0xf7")][Xa("0x41")]((()=>{for(const{suggestion:t,meta:e}of this[Xa("0xeb")](i)){if(t[Xa("0x8d")])continue;if(Xa("0xe")==t[Xa("0x5b")])continue;const n=t[Xa("0xca")]&&t[Xa("0xca")].multipleBlocks;("formatBlock"!=t[Xa("0x5b")]||Xa("0x7")==o[Xa("0x5b")]&&!n)&&(e[Xa("0xbb")]||Xa("0xa2")==t[Xa("0x5b")]&&e.isOwn||t.getFirstRange()[Xa("0x27")](i)&&this[Xa("0x3f")](t,s,r))}}))}),{priority:"lowest"}),t[Xa("0xf7")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[Xa("0xcc")])return;if(this[Xa("0x75")])return;if(!this[Xa("0x1f")].value)return;if(o[Xa("0xbe")])return;const r=t[Xa("0xf7")][Xa("0x6")],{start:i,end:x}=o[Xa("0x38")](),a=i[Xa("0xa3")]&&r[Xa("0xc2")](i[Xa("0xa3")])?null:r[Xa("0xb6")](i,Xa("0x125")),c=x[Xa("0xd0")]&&r[Xa("0xc2")](x[Xa("0xd0")])?null:r[Xa("0xb6")](x,Xa("0x85")),l=t[Xa("0xf7")][Xa("0x140")](a?a[Xa("0x113")]:i,c?c[Xa("0x5")]:x);t[Xa("0xf7")][Xa("0x41")]((e=>{this[Xa("0x112")](l);const n=t[Xa("0xf7")][Xa("0x6")].getNearestSelectionRange(l[Xa("0x113")]);o.is(Xa("0x138"))?e.setSelection(n):o[Xa("0x2b")](n)})),e[Xa("0xc8")]()}),{priority:e.priorities[Xa("0x52")]+10}),t[Xa("0xf7")].on(Xa("0xac"),((e,n)=>{const o=n[n[Xa("0x62")]-1];o&&o.forceDefaultExecution||this[Xa("0x75")]||this[Xa("0x1f")][Xa("0x127")]&&(t[Xa("0xf7")][Xa("0x41")]((()=>{let o=t[Xa("0xf7")][Xa("0xac")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Xa("0xb3")]=o[Xa("0xfd")]();const s=o.end[Xa("0xd0")],r=t[Xa("0xf7")].schema;s&&r[Xa("0x1a")](s)&&!r[Xa("0x42")](s)&&(o=t[Xa("0xf7")].createRange(o[Xa("0x113")],t[Xa("0xf7")].createPositionAt(s,Xa("0x5")))),this[Xa("0xb")](o)})),e[Xa("0xc8")]())}),{priority:Xa("0xde")}),this[Xa("0x6d")][Xa("0x98")][Xa("0x92")](Xa("0xdb"),this.trackChangesCommand),this[Xa("0xf9")](Xa("0xdb"));const o=new p(t,this[Xa("0xa4")]);t[Xa("0x98")].add(Xa("0x8e"),o),this[Xa("0xf9")]("acceptSuggestion");const s=new C(t,this[Xa("0xa4")]);t[Xa("0x98")][Xa("0x92")](Xa("0xf0"),s),this[Xa("0xf9")](Xa("0xf0")),t[Xa("0x98")][Xa("0x92")]("acceptAllSuggestions",new F(t,o,this._suggestions)),this[Xa("0xf9")](Xa("0x11e")),t[Xa("0x98")][Xa("0x92")](Xa("0x9c"),new F(t,s,this[Xa("0xa4")])),this[Xa("0xf9")](Xa("0x9c")),t[Xa("0x98")].add(Xa("0xdd"),new U(t,o,this[Xa("0xa4")])),this[Xa("0xf9")](Xa("0xdd")),t.commands[Xa("0x92")](Xa("0xd"),new U(t,s,this._suggestions)),this[Xa("0xf9")]("discardSelectedSuggestions");const r=t[Xa("0x7b")][Xa("0x64")]("CommentsRepository");this[Xa("0x4a")](r,Xa("0x13d"),((t,{threadId:e})=>{const n=this[Xa("0xa4")][Xa("0x64")](e);n&&n[Xa("0x26")]&&1===n[Xa("0x26")][Xa("0x62")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:"low"}),this.listenTo(r,Xa("0x24"),((t,{threadId:e})=>{const n=this._suggestions[Xa("0x64")](e);n&&n[Xa("0x26")]&&!n[Xa("0x26")].length&&this[Xa("0xb1")](e,{hasComments:!1})}),{priority:Xa("0xd9")})}set[Xa("0x82")](t){if(this._adapter)throw new e.CKEditorError(Xa("0xb7"),this);this[Xa("0x3e")]=t}get adapter(){return this._adapter}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Xa("0xa4")].values())t&&!e[Xa("0x35")]||n[Xa("0x32")](e);return e?n[Xa("0x13f")]((t=>t[Xa("0x61")]())):n}getSuggestion(t){const n=this[Xa("0xa4")].get(t);if(!n)throw new e.CKEditorError(Xa("0x87"),this);return n}[Xa("0x103")](t){return this[Xa("0xa4")][Xa("0xec")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Xa("0x5b")][Xa("0x7")](":"),i=this[Xa("0xa4")][Xa("0x64")](n)||this[Xa("0x137")](s,r,n,e,o);if(this._addThreadToSuggestion(i),this[Xa("0x0")](i,s,r||null,e),i[Xa("0xa1")]=t[Xa("0xa1")],i[Xa("0x66")]=!0,o&&o[Xa("0xd5")]){const t=o[Xa("0xd5")],e=this[Xa("0x99")](t[Xa("0x118")]);i.authoredAt=t[Xa("0xa1")],i[Xa("0x13")]=e,i.isExternal=!0}else i[Xa("0x83")]=t.createdAt;switch(t[Xa("0xca")]&&(i.data=t.data),t[Xa("0x12a")]&&(i.attributes=t[Xa("0x12a")]),this[Xa("0x3e")]&&this[Xa("0x3e")][Xa("0xf")]||(i._saved=!0),this[Xa("0x11a")][Xa("0x64")](i)){case Xa("0x80"):this[Xa("0x11a")].set(i,Xa("0x3b"));break;case Xa("0x93"):i.isInContent?(this[Xa("0x13e")](new Set([i])),this[Xa("0xad")](new Set([i])),this[Xa("0x11a")][Xa("0x69")](i,Xa("0x109")),this[Xa("0x60")](Xa("0x63"),i)):this[Xa("0x11a")][Xa("0x69")](i,"removed")}return i}acceptSuggestion(t){this.forceDefaultExecution((()=>{this.editor[Xa("0xf7")][Xa("0x41")]((()=>{for(const e of t[Xa("0x10f")]())e.accept()}))}))}discardSuggestion(t){this[Xa("0xcc")]((()=>{this[Xa("0x6d")][Xa("0xf7")][Xa("0x41")]((()=>{for(const e of t[Xa("0x10f")]())e[Xa("0x17")]()}))}))}enableCommand(t,n){const o=this[Xa("0x6d")][Xa("0x98")].get(t);if(!o)throw new e.CKEditorError(Xa("0xa5"),this,{commandName:t});this._enabledCommands[Xa("0x92")](o),n&&o.on(Xa("0x9e"),((t,e)=>{this[Xa("0x1f")][Xa("0x127")]&&(this[Xa("0x75")]||e.length>0&&e[e[Xa("0x62")]-1]&&e[e[Xa("0x62")]-1][Xa("0xcc")]||(n(((...t)=>o[Xa("0x9e")](...t,{forceDefaultExecution:!0})),...e),t[Xa("0xc8")]()))}),{priority:Xa("0xde")})}forceDefaultExecution(t){let n,o;const s=this._isForcedDefaultExecutionBlock;this[Xa("0x75")]=!0;try{n=t()}catch(t){o=t}return s||(this[Xa("0x75")]=!1),o&&e.CKEditorError[Xa("0x5f")](o,this),n}[Xa("0xb")](t,n=null,o={}){if(t[Xa("0xbe")])return null;const s=this.editor[Xa("0x7b")].get(Xa("0xfa")).me;for(const{suggestion:e,meta:s}of this[Xa("0xeb")](t,Xa("0xa2")))if(s[Xa("0x10a")]){if(!s[Xa("0x9")]){if(s.containsRangeInObject){if(!this[Xa("0x116")]||!rc(e,o))continue;return e}if(rc(e,o))return e;this._breakSuggestionMarker(e,t[Xa("0x113")],t[Xa("0x5")]);break}if(n==e.subType&&rc(e,o)){const n=e.getFirstRange();return n[Xa("0x113")][Xa("0xd7")](t[Xa("0x5")])?this._setSuggestionRange(e,this[Xa("0x58")][Xa("0x140")](t[Xa("0x113")],n.end)):this._setSuggestionRange(e,this[Xa("0x58")].createRange(n.start,t[Xa("0x5")])),e}}const r=(0,e.uid)(),i=s.id,x=n?Xa("0x53")+n:Xa("0xa2"),a=this[Xa("0xb9")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0x50")](x,r,i,t),a}markMultiRangeInsertion(t,n=Xa("0x10c"),o={}){const s=this[Xa("0x6d")][Xa("0x7b")][Xa("0x64")](Xa("0xfa")).me,r=this[Xa("0x115")][Xa("0x11d")](Xa("0xa2"),n,Xa("0x1c"));for(const e of this[Xa("0xb2")]())if(e.author.id==s.id&&"insertion"==e.type&&e[Xa("0x142")]==n&&rc(e,o)&&(r(e.getRanges(),t)||r(t,e[Xa("0x6b")]()))){for(const n of t)e[Xa("0x128")](n);return e}for(const{suggestion:e,meta:n}of this[Xa("0xeb")](t,"insertion")){if(!n[Xa("0x10a")])continue;if(!this._mergeNestedSuggestions&&n[Xa("0xbb")])continue;if(!rc(e,o))continue;let s=!0;for(const n of e.getRanges())for(const e of t)if(!n[Xa("0x27")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a="insertion:"+n,c=this[Xa("0xb9")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Xa("0x50")](a,i,x,e,Zo[Xa("0x119")]());return c}[Xa("0x130")](t,n,o=null,s={}){if(o=o||tc(n),t[Xa("0xbe")])return null;if(Xa("0x8f")===this[Xa("0x106")]){const e=this[Xa("0x115")][Xa("0x11d")](Xa("0xe"),o,"accept");return this[Xa("0xcc")]((()=>e([t],n,s))),null}const r=this[Xa("0x6d")][Xa("0x7b")][Xa("0x64")](Xa("0xfa")).me,i=[];if("always"!==this[Xa("0x106")])for(const{suggestion:e,meta:n}of this[Xa("0xeb")](t,Xa("0xa2")))n[Xa("0x10a")]&&!n[Xa("0xb4")]&&i[Xa("0x32")](...e[Xa("0x6b")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[Xa("0x32")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Xa("0x62")];){const o=n[e].getDifference(t);n.splice(e,1,...o),e+=o[Xa("0x62")]}}return n}(t,i);x[Xa("0x62")]&&this[Xa("0x58")][Xa("0x41")]((()=>{for(const t of x){const e=this[Xa("0x115")][Xa("0x11d")](Xa("0xe"),o,Xa("0x9d"));this[Xa("0xcc")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t[Xa("0x5")];for(const{suggestion:e,meta:n}of this[Xa("0xeb")](t,"formatInline")){if(!n[Xa("0x10a")])continue;if(e[Xa("0x142")]!=o)continue;if(!rc(e,s))continue;const r=e[Xa("0x38")]();if(r[Xa("0x27")](t,!0))return null;x=x.isBefore(r.start)?x:r[Xa("0x113")],a=a[Xa("0xe4")](r[Xa("0x5")])?a:r[Xa("0x5")],i?r[Xa("0x113")][Xa("0x30")](i.getFirstRange()[Xa("0x113")])?(i.removeMarkers(),i=e):e[Xa("0x120")]():i=e}const c=this._model[Xa("0x140")](x,a);if(i)this[Xa("0x37")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Xa("0xb9")]({id:t,type:Xa("0xe2")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Xa("0x50")]("formatInline:"+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n.formatGroupId||(n[Xa("0x2d")]=n.commandName),n[Xa("0x10e")]=t.is(Xa("0x12c")),s=s||tc(n);const i=o.map((t=>nc(t,this[Xa("0x58")]))),x=t.is(Xa("0x12c"))?t:nc(t,this[Xa("0x58")]);if("never"===this[Xa("0x106")]){const t=this[Xa("0x115")][Xa("0x11d")](Xa("0x47"),s,Xa("0x9d"));return this[Xa("0xcc")]((()=>t([x],n,r))),null}i[Xa("0x32")](x);let a=!0;for(const t of i)if(!this[Xa("0xf6")](t)){a=!1;break}if(a&&Xa("0x11b")!==this._trackFormatChanges){const t=this._suggestionFactory.getSuggestionCallback(Xa("0x47"),s,Xa("0x9d"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[Xa("0x113")],d=x[Xa("0x5")];for(const{suggestion:t,meta:e}of this[Xa("0xeb")](x,Xa("0x47"))){if(!e[Xa("0x10a")])continue;if(e.isNextTo||e[Xa("0xbb")]||e[Xa("0xb4")])continue;if(t[Xa("0xca")][Xa("0x2d")]!=n[Xa("0x2d")])continue;if(!rc(t,r))continue;const o=t[Xa("0x38")]();if(t[Xa("0x142")]==s){if(o[Xa("0x27")](x,!0))return null;l=l[Xa("0x30")](o.start)?l:o.start,d=d.isAfter(o[Xa("0x5")])?d:o[Xa("0x5")],c?o[Xa("0x113")][Xa("0x30")](c[Xa("0x38")]()[Xa("0x113")])?(c[Xa("0x120")](),c=t):t.removeMarkers():c=t}else{const e=x[Xa("0x7c")](o);this._cutOutSuggestionMarker(t,e)}}const u=this.editor.plugins[Xa("0x64")](Xa("0xfa")).me,g=(0,e.uid)(),m=u.id;if(c)return this[Xa("0x37")](c,this._model.createRange(l,d)),c;{const t=this[Xa("0xb9")]({id:g,type:Xa("0x79")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Xa("0x50")](Xa("0x79")+s,g,m,this[Xa("0x58")][Xa("0x140")](l,d)),t}}[Xa("0x33")](t,n,o=[],s=null,r={}){n[Xa("0x2d")]||(n[Xa("0x2d")]=n[Xa("0x12b")]);const i=t[0];n.multipleBlocks=i.is("range"),s=s||tc(n);const x=o[Xa("0x13f")]((t=>nc(t,this._model))),a=i.is(Xa("0x12c"))?t:t[Xa("0x13f")]((t=>nc(t,this[Xa("0x58")])));if(Xa("0x8f")===this._trackFormatChanges){const t=this[Xa("0x115")].getSuggestionCallback(Xa("0x47"),s,Xa("0x9d"));return this[Xa("0xcc")]((()=>t(a,n,r))),null}x[Xa("0x32")](...a);let c=!0;for(const t of x)if(!this[Xa("0xf6")](t)){c=!1;break}if(c&&Xa("0x11b")!==this._trackFormatChanges){const t=this[Xa("0x115")].getSuggestionCallback("formatBlock",s,Xa("0x9d"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[Xa("0x6d")][Xa("0x7b")][Xa("0x64")](Xa("0xfa")).me;for(const t of this[Xa("0xb2")]()){if(t[Xa("0x13")].id!=l.id)continue;if("formatBlock"!=t[Xa("0x5b")]||t[Xa("0xca")][Xa("0x2d")]!=n.formatGroupId)continue;if(!rc(t,r))continue;const e=t[Xa("0x142")]==s;for(let n=0;n<a[Xa("0x62")];n++){const o=a[n];for(const s of t[Xa("0x9a")]()){const r=s[Xa("0x44")]();if(o[Xa("0xd7")](r)){e?(a[Xa("0x39")](n,1),n--):t[Xa("0xaf")](s[Xa("0xbf")]);break}}}}if(0==a[Xa("0x62")])return null;const d=this._suggestionFactory[Xa("0x11d")](Xa("0x47"),s,"join");for(const t of this.getSuggestions())if(t[Xa("0x13")].id==l.id&&Xa("0x47")==t[Xa("0x5b")]&&t[Xa("0xca")].formatGroupId==n[Xa("0x2d")]&&t.subType==s&&rc(t,r)&&(d(t[Xa("0x6b")](),a)||d(a,t.getRanges()))){for(const e of a)t[Xa("0x128")](e);return t}const u=(0,e.uid)(),g=l.id,m=Xa("0x79")+s,f=this[Xa("0xb9")]({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[Xa("0x119")]());return f}[Xa("0x112")](t,n=null,o={}){if(t[Xa("0xbe")])return null;const s=this[Xa("0x6d")][Xa("0x7b")][Xa("0x64")](Xa("0xfa")).me,r=new i.LiveRange(t[Xa("0x113")],t[Xa("0x5")]);for(const{suggestion:t,meta:e}of this[Xa("0xeb")](r,"insertion"))if(e[Xa("0x10a")]&&!e[Xa("0x9")])if(t.isMultiRange){const e=t[Xa("0x6b")]().filter((t=>Xa("0xa")!=t[Xa("0xc3")][Xa("0x101")]));if(e[Xa("0xf3")]((t=>r.containsRange(t,!0)))&&t[Xa("0x17")](),e[Xa("0xa9")]((t=>t[Xa("0x27")](r,!0)))){const t=this._suggestionFactory.getSuggestionCallback(Xa("0x88"),n,Xa("0x9d"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[Xa("0x7c")](t[Xa("0x38")]());null!==e&&t[Xa("0x21")]([e],null,o)}if(r[Xa("0xc4")](),r.isCollapsed||Xa("0xa")==r[Xa("0xc3")][Xa("0x101")])return null;let x=null,a=r[Xa("0x113")],c=r.end;const l=this[Xa("0xeb")](r,Xa("0x88"));for(const{suggestion:t,meta:e}of l){const n=this._model.createRange(a,c);if(e[Xa("0x10a")]&&(this[Xa("0x116")]||!e[Xa("0xbb")]&&!e[Xa("0xb4")]))if(t.isMultiRange){if(!rc(t,o))continue;let e=!0;for(const o of t[Xa("0x6b")]()){if(o[Xa("0x27")](n,!0))return t;n[Xa("0x27")](o)||(e=!1)}e&&t[Xa("0x17")]()}else{const e=t[Xa("0x38")]();if(e[Xa("0x27")](n,!0))return t;if(!rc(t,o)){n.containsRange(e)?t[Xa("0x120")]():e.containsPosition(a)?a=e.end:e.containsPosition(c)&&(c=e[Xa("0x113")]);continue}a=a.isBefore(e[Xa("0x113")])?a:e[Xa("0x113")],c=c[Xa("0xe4")](e.end)?c:e[Xa("0x5")],o=Object.assign({},t[Xa("0x12a")]),x?e[Xa("0x113")][Xa("0x30")](x[Xa("0x38")]()[Xa("0x113")])?(x[Xa("0x120")](),x=t):t[Xa("0x120")]():x=t}}if(x)return this[Xa("0x37")](x,this[Xa("0x58")].createRange(a,c)),x;{const t=(0,e.uid)(),r=this._model.createRange(a,c),i=s.id,x=n?"deletion:"+n:"deletion",l=this[Xa("0xb9")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0x50")](x,t,i,r),l}}[Xa("0x8b")](t,n=Xa("0x10c"),o={}){const s=this[Xa("0x6d")][Xa("0x7b")][Xa("0x64")](Xa("0xfa")).me,r=t[Xa("0x13f")]((t=>new i.LiveRange(t[Xa("0x113")],t[Xa("0x5")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Xa("0xeb")](r,"insertion"))e[Xa("0x10a")]&&!e.isNextTo&&x[Xa("0x92")](t);for(const e of x)if(e.isMultiRange){const s=e[Xa("0x6b")]();if((!e[Xa("0x12a")]||!e.attributes[Xa("0x141")])&&s[Xa("0xf3")]((t=>r[Xa("0xa9")]((e=>e[Xa("0x27")](t,!0)))))&&e.discard(),r[Xa("0xf3")]((t=>s[Xa("0xa9")]((e=>e[Xa("0x27")](t,!0)))))){const e=this[Xa("0x115")][Xa("0x11d")](Xa("0x88"),n,"accept");return this[Xa("0xcc")]((()=>e(t,null,o))),null}}else{const t=e[Xa("0x38")]();if(r.some((e=>e[Xa("0x27")](t,!0)))&&e[Xa("0x17")](),r[Xa("0xf3")]((e=>t[Xa("0x27")](e,!0)))){const t=this[Xa("0x115")][Xa("0x11d")]("deletion",n,Xa("0x9d"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[Xa("0x115")][Xa("0x11d")](Xa("0x88"),n,"join");let c=null;for(const t of this.getSuggestions())if(t.author.id==s.id&&t[Xa("0x35")]&&"deletion"==t[Xa("0x5b")]&&t[Xa("0x142")]==n&&rc(t,o)&&(a(t.getRanges(),r)||a(r,t.getRanges())))if(c){if(t[Xa("0x26")]&&t[Xa("0x26")][Xa("0x62")])continue;for(const e of t.getRanges())c[Xa("0x81")](e)||c[Xa("0x128")](e);t[Xa("0x120")]()}else{c=t;for(const e of r)t[Xa("0x81")](e)||t[Xa("0x128")](e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this._findSuggestions(r,Xa("0x88")))e[Xa("0x10a")]&&(this[Xa("0x116")]||!e[Xa("0xbb")]&&!e[Xa("0xb4")])&&rc(t,o)&&x.add(t);for(const t of x){const e=t[Xa("0x6b")]();if((!o||!o[Xa("0x141")])&&r[Xa("0xf3")]((t=>e.some((e=>e[Xa("0x27")](t,!0))))))return t;(!t[Xa("0x12a")]||!t[Xa("0x12a")][Xa("0x141")])&&e[Xa("0xf3")]((t=>r.some((e=>e[Xa("0x27")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u=Xa("0x5d")+n,g=this[Xa("0xb9")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t.detach(),t[Xa("0xbe")]||Xa("0xa")==t[Xa("0xc3")][Xa("0x101")]||this[Xa("0x50")](u,l,d,t,Zo.getMultiRangeId());return g}[Xa("0x37")](t,e){const n=t[Xa("0x123")]();this._model[Xa("0x41")]((t=>{t[Xa("0x2c")](n,{range:e})}))}[Xa("0xcb")](t){const e=t.id,n=this[Xa("0x6d")][Xa("0xab")][Xa("0x64")](Xa("0x16"));this._commentsRepository.hasCommentThread(e)||this._commentsRepository[Xa("0x2a")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xa("0xed")][Xa("0xe6")](e);o[Xa("0x13a")](Xa("0xe7")),o[Xa("0xe7")]=!1,t.commentThread=o}_checkSuggestionCorrectness(t,n,o,s){if(t.type!=n||t[Xa("0x142")]!=o||t.creator.id!=s)throw this[Xa("0x6d")][Xa("0x8")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(Xa("0x2e"),this)}[Xa("0xc")](t,n){const o=t.getFirstRange();if(n[Xa("0xd7")](o))t[Xa("0x120")]();else if(o[Xa("0x27")](n)){const s=this[Xa("0x58")][Xa("0x110")](n[Xa("0x113")].nodeBefore,"end");this[Xa("0x37")](t,this[Xa("0x58")][Xa("0x140")](o[Xa("0x113")],s));const r=(0,e.uid)(),i=t[Xa("0x8c")].id,x=t.type+":"+t.subType;this[Xa("0xb9")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[Xa("0xca")],attributes:t[Xa("0x12a")]});const a=this[Xa("0x58")].createPositionAt(n.end[Xa("0xe5")],"after"),c=this[Xa("0x58")][Xa("0x140")](a,o[Xa("0x5")]);this[Xa("0x50")](x,r,i,c)}else if(o.containsPosition(n[Xa("0x113")])){const e=this[Xa("0x58")][Xa("0x110")](n[Xa("0x113")][Xa("0xd0")],"end");this[Xa("0x37")](t,this[Xa("0x58")][Xa("0x140")](o[Xa("0x113")],e))}else{const e=this[Xa("0x58")][Xa("0x110")](n[Xa("0x5")][Xa("0xe5")],"after");this[Xa("0x37")](t,this[Xa("0x58")][Xa("0x140")](e,o[Xa("0x5")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[Xa("0xeb")](t,Xa("0xa2"))){if(!n[Xa("0x10a")])continue;const o=e[Xa("0x6b")]();for(const e of o)if(!t[Xa("0xbc")](e)[Xa("0x62")])return!0}return!1}[Xa("0x124")](t){const n=this[Xa("0x6d")].plugins[Xa("0x64")](Xa("0xfa"))[Xa("0xa6")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}_getExternalAuthor(t){const e=this.editor[Xa("0x7b")][Xa("0x64")]("Users"),n=(0,r.hashObject)(Xa("0x105")+t);return e.getUser(n)||e[Xa("0x3d")]({id:n,name:t})}[Xa("0x137")](t,e,n,o,s){const r=this[Xa("0x124")](o),i=this[Xa("0x115")][Xa("0x2")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this[Xa("0x4a")](i,"accept",(()=>{this[Xa("0xb1")](n,{state:"accepted"})}),{priority:Xa("0xde")}),this[Xa("0x4a")](i,"discard",(()=>{this[Xa("0xb1")](n,{state:"rejected"})}),{priority:Xa("0xde")}),this[Xa("0xa4")][Xa("0x69")](n,i),this[Xa("0x11a")][Xa("0x69")](i,Xa("0x80")),i}[Xa("0x4d")](t){const e=t[Xa("0x7")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[Xa("0x62")]?e[5]:null}}[Xa("0x3f")](t,n,o){const s=t.getFirstRange(),r=s[Xa("0x113")],i=s.end;this[Xa("0x37")](t,this[Xa("0x58")][Xa("0x140")](r,n));const x=(0,e.uid)(),a=t[Xa("0x8c")].id,c=t[Xa("0x5b")]+(t[Xa("0x142")]?":"+t.subType:"");this[Xa("0xb9")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0x12a")],data:t[Xa("0xca")]}),Xa("0x47")==t.type&&(o=this[Xa("0x58")][Xa("0x7d")](o[Xa("0xe5")])),this[Xa("0x50")](c,x,a,this._model[Xa("0x140")](o,i))}[Xa("0xeb")](t,e=null){const n=[],o=this.editor[Xa("0x7b")][Xa("0x64")](Xa("0xfa")).me;Array[Xa("0x14")](t)||(t=[t]);for(const s of this[Xa("0xb2")]()){if(!s[Xa("0x35")])continue;if(e&&s[Xa("0x5b")]!=e)continue;let r=!1;for(const e of s[Xa("0x6b")]()){for(const i of t){const t=i[Xa("0x113")][Xa("0xd7")](e.end)||i.end[Xa("0xd7")](e.start);if(t||i.getIntersection(e)){const x=i.containsRange(e)&&Qa(this[Xa("0x58")].schema,e[Xa("0x113")],i),a=e[Xa("0x27")](i)&&Qa(this[Xa("0x58")][Xa("0x6")],i[Xa("0x113")],e);n.push({suggestion:s,meta:{isOwn:o==s[Xa("0x13")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[Xa("0x50")](t,e,n,o,s){this[Xa("0x58")][Xa("0x41")]((r=>{let i=Xa("0x29")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Xa("0x6c")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0xaa")](t){const e=t.previous,n=t.next;t[Xa("0xe8")]=null,null!=e&&(e[Xa("0x78")]=null),t[Xa("0x78")]=null,null!=n&&(n[Xa("0xe8")]=null),Xa("0x109")==this[Xa("0x11a")][Xa("0x64")](t)&&(this[Xa("0x11a")][Xa("0x69")](t,"removed"),this[Xa("0x60")]("suggestionUnloaded",t,e,n))}[Xa("0xb9")](t){const n=t.id,o=this[Xa("0x3")](t);if(this[Xa("0x3e")]&&this[Xa("0x3e")][Xa("0xf")]){const s=this.editor[Xa("0x7b")].get(Xa("0xff")),r=o[Xa("0xc7")],i=o[Xa("0x142")]?o.type+":"+o.subType:o[Xa("0x5b")],x=this[Xa("0x6d")][Xa("0x4e")],a=s[Xa("0x92")](Yo(x,Xa("0xdf"))),c={id:n,type:i,hasComments:r,data:t[Xa("0xca")]||null,originalSuggestionId:t[Xa("0x10b")]||null,attributes:o[Xa("0x12a")]};this._adapter.addSuggestion(c)[Xa("0x8a")]((t=>{o[Xa("0xda")]=!0,s.remove(a),t&&t.createdAt&&(this._suggestions[Xa("0x64")](n)[Xa("0xa1")]=t[Xa("0xa1")])})).catch((t=>{throw(0,e.logWarning)(Xa("0xd6")),this[Xa("0x6d")][Xa("0xf7")][Xa("0x91")]({isUndoable:!1},(()=>{o[Xa("0x17")]()})),o[Xa("0xf2")](),this[Xa("0xa4")][Xa("0xe3")](o.id),this[Xa("0x11a")][Xa("0xe3")](o),t}))}return o}[Xa("0xb1")](t,e){const n=this[Xa("0x6d")][Xa("0x7b")].get("PendingActions"),o=this[Xa("0x121")](t);if(this[Xa("0x3e")]&&this[Xa("0x3e")].updateSuggestion)if(o[Xa("0xda")]){const o=n[Xa("0x92")](Yo(this[Xa("0x6d")][Xa("0x4e")],Xa("0xdf")));this._adapter.updateSuggestion(t,e)[Xa("0x8a")]((()=>{n.remove(o)}))}else o.on(Xa("0xae"),(()=>{this[Xa("0xb1")](t,e)}))}[Xa("0x1")](t){if(!this[Xa("0x3e")]||!this[Xa("0x3e")][Xa("0x121")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[Xa("0x3e")][Xa("0x121")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[Xa("0xa4")][Xa("0x64")](e)||this[Xa("0x137")](n,o,e,s,{});switch(this[Xa("0x0")](r,n,o,s),this[Xa("0x11a")][Xa("0x64")](r)){case Xa("0x80"):this._getSuggestionData(e)[Xa("0x8a")]((t=>{let n=Promise.resolve();t[Xa("0xc7")]&&(n=this._commentsRepository[Xa("0x5e")]({channelId:this[Xa("0x6d")][Xa("0xab")][Xa("0x64")](Xa("0x16")),threadId:e})),n[Xa("0x8a")]((()=>{this.addSuggestionData(t)[Xa("0xda")]=!0}))})),this[Xa("0x11a")].set(r,Xa("0x93"));break;case"removed":this[Xa("0xb1")](e,{state:"open"});case Xa("0x3b"):this[Xa("0x11a")][Xa("0x69")](r,Xa("0x109")),this[Xa("0x60")](Xa("0x63"),r);break;case Xa("0x109"):this[Xa("0x60")](Xa("0xa8"),r)}return r[Xa("0x107")](t),r}[Xa("0x13e")](t){const e=Array[Xa("0x97")](t).filter((t=>!t[Xa("0x8d")])),n=this[Xa("0xb2")]({skipNotAttached:!0})[Xa("0x25")]((t=>!t[Xa("0x8d")])),o=n[Xa("0x25")]((e=>!t[Xa("0xec")](e))),s=new Map(n[Xa("0x13f")]((t=>[t,this._suggestionFactory[Xa("0x11d")](t[Xa("0x5b")],t.subType,"chain")]))),r=new Map(n[Xa("0x13f")]((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e[Xa("0x62")];t++)a(e[t],e,t+1);for(let t=0;t<e[Xa("0x62")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[Xa("0xec")](n)&&n.previous&&(n[Xa("0xe8")][Xa("0x78")]===n&&(n[Xa("0xe8")][Xa("0x78")]=null),n[Xa("0xe8")]=null),!i[Xa("0xec")](n)&&n[Xa("0x78")]&&(n[Xa("0x78")][Xa("0xe8")]===n&&(n[Xa("0x78")][Xa("0xe8")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1].previous=n[0],i[Xa("0x92")](n[0]),x[Xa("0x92")](n[1]))}}function c(t,e){if(t[Xa("0x13")].id!==e[Xa("0x13")].id)return null;const n=s.get(t)(t,e,r.get(t),r.get(e));return n&&s.get(e)(t,e,r[Xa("0x64")](t),r[Xa("0x64")](e))?n[1][Xa("0x26")]&&n[1][Xa("0x26")][Xa("0x62")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array[Xa("0x97")](t),n=this[Xa("0xb2")]({skipNotAttached:!0}),o=n[Xa("0x25")]((e=>!t[Xa("0xec")](e))),s=new Map(e.map((t=>[t,this._suggestionFactory.getSuggestionCallback(t.type,t[Xa("0x142")],"join")]))),r=new Map(n[Xa("0x13f")]((t=>[t,t[Xa("0x6b")]()])));for(let t=0;t<e[Xa("0x62")];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[Xa("0x5b")]!==e[Xa("0x5b")]||o[Xa("0x13")].id!==e.author.id||o[Xa("0x142")]!==e.subType)continue;if(!sc(e,o))continue;const x=s.get(e),a=r[Xa("0x64")](e),c=r.get(o),l=e[Xa("0x26")]&&e[Xa("0x26")][Xa("0x62")],d=o[Xa("0x26")]&&o[Xa("0x26")][Xa("0x62")];if(!l&&x(c,a))return t[Xa("0xfe")](o,e),r[Xa("0xe3")](e),!0;if(!d&&x(a,c))return t[Xa("0xfe")](e,o),r.delete(o),!0}return!1}}[Xa("0xfe")](t,e){if(t[Xa("0x8d")])for(const n of e.getRanges())t[Xa("0x128")](n);else{const n=e[Xa("0x38")]().end;this._setSuggestionRange(t,this[Xa("0x58")][Xa("0x140")](t[Xa("0x38")]()[Xa("0x113")],n))}e[Xa("0x120")]()}}class Ja{constructor(t){this[Xa("0x46")]=t,this._model=t[Xa("0xf7")],this[Xa("0x22")]=new Map,this[Xa("0x84")]=new Map,this._registerDefaultCallbacks()}[Xa("0x2")](t,e,n,o,s,r){return new Zo(this[Xa("0x58")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Xa("0x11d")](t,e,Xa("0x9d"))(...n),onDiscard:(...n)=>this[Xa("0x11d")](t,e,Xa("0x17"))(...n)})}[Xa("0x71")](t,e,n,o){const s=t+":"+e+":"+n;this[Xa("0x22")].set(s,o)}[Xa("0x11d")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[Xa("0x64")](o)||this[Xa("0x84")].get(t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[Xa("0x96")](((t,e)=>t.start[Xa("0x30")](e[Xa("0x113")])?1:-1)),this[Xa("0x58")].change((e=>{for(const n of t){let t;t=n.end[Xa("0xe0")]&&n.end[Xa("0xe5")]==n[Xa("0x113")].nodeAfter?e[Xa("0x56")](n.start.nodeAfter,"on"):e[Xa("0x56")](n),this[Xa("0x58")][Xa("0x7e")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[Xa("0x41")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Xa("0x13f")]((t=>(Za(t)&&(t=this[Xa("0x58")][Xa("0x140")](t.end)),t)))[Xa("0x25")]((t=>Xa("0xa")!==t.root[Xa("0x101")]));if(r[Xa("0x62")]<1)return;const x=Array.from(this[Xa("0x58")].document.selection[Xa("0x6b")]()).map((t=>i.LiveRange[Xa("0x11c")](t)));n.setSelection(r);for(const t of this._editor[Xa("0x98")][Xa("0x98")]())t[Xa("0xe9")]();s[Xa("0x32")]({forceDefaultExecution:!0}),this[Xa("0x46")][Xa("0x9e")](o,...s);const a=x[Xa("0x25")]((t=>Xa("0xa")!=t[Xa("0xc3")][Xa("0x101")]));a[Xa("0x62")]>0&&n[Xa("0xbd")](a);for(const t of x)t[Xa("0xc4")]()}))},o=(t,e)=>1==t[Xa("0x62")]&&1==e[Xa("0x62")]&&t[0][Xa("0x5")][Xa("0xd7")](e[0][Xa("0x113")]),s=(t,e,n,o)=>oc(t,e,n,o,this[Xa("0x58")])?[t,e]:oc(e,t,o,n,this[Xa("0x58")])?[e,t]:null;this[Xa("0x84")][Xa("0x69")](Xa("0xf1"),t),this[Xa("0x84")][Xa("0x69")](Xa("0xa0"),e),this[Xa("0x84")][Xa("0x69")](Xa("0x51"),o),this._defaultCallbacks.set("insertion:chain",s),this[Xa("0x84")][Xa("0x69")](Xa("0xf5"),e),this[Xa("0x84")][Xa("0x69")](Xa("0xcf"),t),this[Xa("0x84")][Xa("0x69")]("deletion:join",o),this[Xa("0x84")].set(Xa("0x19"),s),this[Xa("0x84")].set("formatInline:accept",n),this[Xa("0x84")][Xa("0x69")](Xa("0xc9"),t),this[Xa("0x84")][Xa("0x69")](Xa("0x4f"),o),this[Xa("0x84")][Xa("0x69")](Xa("0x114"),t),this[Xa("0x84")][Xa("0x69")](Xa("0x23"),n),this[Xa("0x84")][Xa("0x69")](Xa("0x5c"),t),this[Xa("0x84")][Xa("0x69")](Xa("0x72"),o),this[Xa("0x84")][Xa("0x69")]("formatBlock:chain",t)}}function Qa(t,e,n){for(const o of e[Xa("0xe5")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[Xa("0xc3")]==o)return!1;if(!n[Xa("0x132")](o))return!1;if(t.isObject(o)||t.isLimit(o))return!0}return!1}function Za(t){return t[Xa("0x5")].parent==t[Xa("0x113")].nodeAfter&&t[Xa("0x5")][Xa("0x11")]}function Ya(t,e,n,o){const s=t=>!t[Xa("0x135")].is(Xa("0x1e"))&&!o[Xa("0x42")](t[Xa("0x135")]),r=t[Xa("0x113")][Xa("0x55")](s),i=t[Xa("0x5")][Xa("0x55")](s,{direction:Xa("0x85")});return!(t[Xa("0x113")][Xa("0xd7")](r)&&t[Xa("0x5")][Xa("0xd7")](i)||(r[Xa("0x30")](i)?n[Xa("0x2c")](e,{range:n[Xa("0x140")](r,i)}):n[Xa("0xaf")](e),0))}function tc(t){return(0,r.hashObject)(t)}function ec(t){const e=t[Xa("0x113")][Xa("0xa3")];return e&&e.is("element")}function nc(t,e){const n=e[Xa("0x6")][Xa("0x42")](t)||e[Xa("0x6")][Xa("0x68")](t);return e[Xa("0x140")](e[Xa("0x110")](t,Xa("0x48")),n?e[Xa("0x5a")](t):e[Xa("0x110")](t,"end"))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n.end.isEqual(o.start))return!0;if(t[Xa("0x5b")]!=e[Xa("0x5b")])return!1;if(!n[Xa("0x5")][Xa("0x13c")](o.start))return!1;const r=s.createRange(n[Xa("0x5")],o[Xa("0x113")])[Xa("0x126")]();for(const t of r)if([Xa("0xfc"),Xa("0x40")][Xa("0x18")](t[Xa("0x5b")])&&s.schema[Xa("0xc2")](t.item))return!1;return!0}function sc(t,e){return!(!t[Xa("0x66")]||!e._isDataLoaded)&&Go(t.attributes,e[Xa("0x12a")])}function rc(t,e){const n=ic(t[Xa("0x12a")]),o=ic(e);if(!t[Xa("0x66")])return!1;for(const t of Object[Xa("0x10d")](o))if(!Go(n[t],o[t]))return!1;return!0}function ic(t){const e=Object[Xa("0x100")]({},t);return delete e[Xa("0x141")],delete e[Xa("0x12f")],e}const xc=["acceptSuggestion","model","destroy","_pendingAction","commands","add","listenTo","_acceptCommand","_discardCommand","isDirty","_removePendingAction","get","_setPendingAction","commentThreadController","stopListening","PendingActions","_editor","canEditAt","view","plugins","execute","getRanges","isEnabled","bind","PENDING_ACTION_SUGGESTION","locale","unbind","discardSuggestion","canAccept"];var ac,cc;ac=xc,cc=368,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this.model=e,this[lc("0x1b")]=n,this[lc("0x16")]=o,this[lc("0x19")]=t,this[lc("0x10")]=t[lc("0xd")][lc("0x14")](lc("0x9")),this._discardCommand=t.commands[lc("0x14")]("discardSuggestion"),this[lc("0x1b")][lc("0x3")]("isEnabled").to(this._acceptCommand,this[lc("0x11")],((t,e)=>t||e)),this[lc("0x1b")].bind(lc("0x8")).to(this[lc("0x10")],lc("0x2"),(t=>t&&this[lc("0x19")][lc("0xa")][lc("0x1a")](e[lc("0x1")]()))),this[lc("0x1b")][lc("0x3")]("canDiscard").to(this[lc("0x11")],lc("0x2"),(t=>t&&this[lc("0x19")].model.canEditAt(e[lc("0x1")]()))),this[lc("0xc")]=null,n[lc("0x12")]&&this[lc("0x15")](),this.listenTo(n,lc("0x9"),(()=>this[lc("0x9")]())),this[lc("0xf")](n,"discardSuggestion",(()=>this[lc("0x7")]())),this[lc("0xf")](n,"change:isDirty",(()=>{n[lc("0x12")]?this._setPendingAction():this[lc("0x13")]()}))}acceptSuggestion(){this._acceptCommand.execute(this[lc("0xa")].id)}[lc("0x7")](){this._discardCommand[lc("0x0")](this[lc("0xa")].id)}[lc("0xb")](){this[lc("0x1b")][lc("0x6")](lc("0x2")),this[lc("0x1b")][lc("0x6")](lc("0x8")),this.view.unbind("canDiscard"),this[lc("0x17")](),this.commentThreadController[lc("0xb")](),this[lc("0xc")]&&this[lc("0x13")]()}_setPendingAction(){const t=Yo(this[lc("0x19")][lc("0x5")],lc("0x4"));this[lc("0xc")]=this[lc("0x19")].plugins.get(lc("0x18"))[lc("0xe")](t)}[lc("0x13")](){null!==this._pendingAction&&this[lc("0x19")][lc("0x1c")][lc("0x14")](lc("0x18")).remove(this._pendingAction),this[lc("0xc")]=null}}const uc=["showInput","editor","commentInputView","canDiscard","locale","updateComment","cancel","_createCommentViews","commentThreadInputView","canAccept","commentThread","commentsListView","set","_createCommentThreadInputView","hasDirtyComment","disabledSubmit","element","value","delegate","isReadOnly","focus","descriptionParts","length","authoredAt","_config","CommentView","setData","_model","bind","fire","destroy","removeComment","isActive","isDirty"];var gc,mc;gc=uc,mc=267,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends s.View{constructor(t,e,n,o){super(t),this[fc("0x10")]=null,this.commentThreadInputView=null,this[fc("0x11")](fc("0x3"),!1),this[fc("0x11")](fc("0x1c"),e[fc("0x1c")]),this.bind(fc("0x1c")).to(e),this.set(fc("0x1a"),[]),this[fc("0x11")]("isDirty",!1),this[fc("0x11")]("isEnabled",!1),this[fc("0x11")](fc("0xe"),!1),this.set(fc("0x8"),!1),this[fc("0x20")]=e,this._localUser=n,this[fc("0x1d")]=o,o.disableComments?this.set(fc("0x1b"),1):this[fc("0xc")]()}[fc("0x19")](){this[fc("0x15")][fc("0x19")]()}[fc("0x1")](){this[fc("0x10")]&&this[fc("0x10")][fc("0x1")](),this[fc("0xd")]&&this[fc("0xd")][fc("0x1")](),super[fc("0x1")]()}[fc("0xc")](){const{CommentsListView:t}=this[fc("0x1d")];this.commentsListView=new t(this[fc("0x9")],this[fc("0x20")].commentThread,Object.assign({CommentView:this[fc("0x1d")][fc("0x1e")]},this[fc("0x1d")])),this[fc("0x10")][fc("0x17")](fc("0x2")).to(this),this[fc("0x10")].delegate(fc("0xa")).to(this),this[fc("0x10")][fc("0x21")](fc("0x3")).to(this),this[fc("0x11")](fc("0x1b"),this[fc("0x10")].length+1),this[fc("0x21")]("length").to(this.commentsListView,fc("0x1b"),(t=>t+1)),this[fc("0xd")]=this[fc("0x12")](),this.on(fc("0x2"),(()=>this[fc("0x19")]())),this[fc("0x21")](fc("0x4")).to(this.commentsListView,fc("0x13"),this.commentThreadInputView.commentInputView,fc("0x16"),((t,e)=>t||!!e))}[fc("0x12")](){const{CommentThreadInputView:t}=this._config,e=new t(this[fc("0x9")],this._localUser,this[fc("0x1d")].editorConfig),n=e[fc("0x7")];return e.bind(fc("0x5")).to(this,fc("0x3"),this[fc("0x20")].commentThread,"isReadOnly",n,fc("0x16"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[fc("0x0")]("addComment",e),n[fc("0x6")][fc("0x1f")]("")})),n.on(fc("0xb"),(()=>this[fc("0x19")]())),n[fc("0x21")](fc("0x14")).to(this[fc("0x20")][fc("0xf")],fc("0x18")),e}}const pc=["_model",'<span class="ck-suggestion-type">',"getExternalSuggestionNote","delegate","bind","commentThread","ck-suggestion--disabled-comments","join","ck-suggestion","span","render","getUserViewNotificationText","commentThreadInputView","locale","type","ck-suggestion--discard","ck-comment__external","authoredAt","innerHTML","color","Discard suggestion","source","attributes","element","description",'" title="',"execute","map","author","@external","ck-suggestion__info-name","Accept suggestion","discardButton","ck-suggestion__actions","ck-annotation","</p>","setTemplate","name","_createButton","disableComments","canAccept","importWord","ck-annotation__info","descriptionParts","getTemplate","check","ck-suggestion-wrapper","EXTERNAL_SUGGESTION","creator","createElement","EXTERNAL_IMPORT_WORD_AVATAR","formatDateTime","split","userView",'"></span>',"ck-annotation__main","querySelector","value","isActive","editorDestroyed","</span>","time","ck-suggestion--accept","extendTemplate","ck-suggestion-wrapper--active","commentsListView","<p>","isExternal","push","ck-annotation__info-time","acceptButton","_config","div","ck-suggestion__user","cancel","innerText","canDiscard","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-annotation__content-wrapper","set","isEnabled","children","content",'<span class="ck-suggestion-color" style="background-color: ',"acceptSuggestion","EXTERNAL_AVATAR","_descriptionElement"];var bc,Ec;bc=pc,Ec=173,function(t){for(;--t;)bc.push(bc.shift())}(++Ec);const _c=function(t,e){return pc[t-=0]};class Tc extends hc{constructor(e,n,o,s){super(e,n,o,s),this[_c("0x50")]("type",""),this[_c("0x5")](_c("0xf")).to(this,"descriptionParts",(t=>t&&t[0]?t[0][_c("0xf")]:"")),this.bind(_c("0x19")).to(this,_c("0x2c"),this,_c("0x3b"),((t,e)=>{let n="";for(const e of t)n+=_c("0x43")+Cc(e[_c("0x53")],e[_c("0x14")])+_c("0x24");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[_c("0x0")]=null,this[_c("0x47")]=this[_c("0x27")](Yo(e,_c("0x20")),t.icons[_c("0x2e")],_c("0x3f"),_c("0x55"),"sw"),this.acceptButton[_c("0x5")]("isEnabled").to(this,_c("0x29")),this.discardButton=this[_c("0x27")](Yo(e,_c("0x15")),t.icons[_c("0x4b")],_c("0x10"),"discardSuggestion","sw"),this.discardButton.bind(_c("0x51")).to(this,_c("0x4d")),this.userView=new r.UserView(e,this[_c("0x1")][_c("0x1d")],this[_c("0xc")]()),this.userView[_c("0x40")]({attributes:{class:[_c("0x4a"),"ck-annotation__user"]}}),this[_c("0x25")](this[_c("0x2d")]())}[_c("0x2d")](){const t=this.bindTemplate,e=[{tag:_c("0x49"),attributes:{class:["ck-suggestion__info",_c("0x2b")]},children:[{tag:_c("0xa"),children:[{text:this.userView[_c("0x26")]}],attributes:{class:[_c("0x1f"),"ck-annotation__info-name"]}},{tag:_c("0x3e"),attributes:{datetime:t.to(_c("0x12")),class:["ck-comment__info-time",_c("0x46")]},children:[{text:t.to("authoredAt",(t=>this[_c("0x48")][_c("0x34")](t)))}]}]},{tag:_c("0x49"),attributes:{class:[_c("0x22"),"ck-annotation__actions"]},children:[this[_c("0x47")],this[_c("0x21")]]},{tag:_c("0x49"),attributes:{class:[_c("0x4f")]}}];this[_c("0x1")][_c("0x44")]&&e[_c("0x45")]({tag:_c("0x49"),attributes:{class:[_c("0x11")]},children:[{text:this[_c("0x3")]()}]});const n={tag:_c("0x49"),attributes:{class:[_c("0x2f"),t.if("isActive",_c("0x41")),t.to("type",(t=>"ck-suggestion-"+t)),this[_c("0x48")][_c("0x28")]&&_c("0x7")],"data-suggestion-id":this[_c("0x1")].id,"data-thread-id":this._model[_c("0x6")].id,"data-author-id":this._model[_c("0x1d")].id,tabindex:-1},children:[{tag:_c("0x49"),attributes:{class:[_c("0x9"),_c("0x23")]},children:[this[_c("0x36")],{tag:"div",attributes:{class:["ck-suggestion__main",_c("0x38")]},children:e}]}]};return this[_c("0x42")]&&this[_c("0xd")]&&(n[_c("0x52")].push(this.commentsListView,this[_c("0xd")]),this[_c("0x42")][_c("0x4")]("editorReady").to(this),this[_c("0x42")].delegate("editorDestroyed").to(this),this[_c("0xd")][_c("0x4")]("editorReady").to(this),this.commentThreadInputView[_c("0x4")](_c("0x3c")).to(this)),n}[_c("0xb")](){super[_c("0xb")](),this[_c("0x0")]=this[_c("0x18")][_c("0x39")](".ck-annotation__content-wrapper"),this[_c("0x0")][_c("0x13")]=this[_c("0x19")],this.on("change:description",((t,e,n)=>{this._descriptionElement[_c("0x13")]=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this.locale);return i[_c("0x50")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[_c("0x40")]({attributes:{class:n}}),i.on(_c("0x1b"),(()=>{this.fire(o,this[_c("0x1")].id)})),i}[_c("0x3")](){return _c("0x2a")===this[_c("0x1")][_c("0x17")][_c("0x1e")].source?Yo(this[_c("0xe")],_c("0x4e")):Yo(this[_c("0xe")],_c("0x30"))}getUserViewNotificationText(){return this[_c("0x1")].isExternal?"importWord"===this[_c("0x1")][_c("0x17")][_c("0x1e")][_c("0x16")]?Yo(this[_c("0xe")],_c("0x33"),this[_c("0x1")][_c("0x31")].name):Yo(this.locale,_c("0x56"),this[_c("0x1")][_c("0x31")].name):null}}function Cc(t,e){let n="";return n+=t[_c("0x35")]("*")[_c("0x1c")](((t,e)=>e%2!=0?_c("0x2")+yc(t)+_c("0x3d"):yc(t)))[_c("0x8")](""),e&&(n+=_c("0x54")+e[_c("0x3a")]+_c("0x1a")+e.title+_c("0x37")),n}function yc(t){const e=document[_c("0x32")](_c("0xa"));return e[_c("0x4c")]=t,e[_c("0x13")]}const kc=["getFirstRange","head","discardAllSuggestions","comments.maxThreadTotalWeight","arrowView","getByInnerView","unbind","discardSelectedSuggestions","mainView","type","requires","getJoined","delete","getMarkers","change:previous","commandName","get","plugins","getRanges","define","_disableComments","Annotations","comments.editorConfig","actionView","filter","model","getDescriptions","isDirty","config","toMany","discardButton","getAllAdjacentSuggestions","separator","suggestion-","Discard all suggestions","Accept all selected suggestions","editor","_refreshActiveMarkers","activeMarkers","getMarkerNames","isInContent","componentFactory","_updateController","createAnnotationView","comments","registerAnnotation","TrackChangesUI","pluginName","trackChanges.disableComments","keys","set","acceptSelectedSuggestions","isEnabled","value","suggestionLoaded","_viewToController","length","map","destroy","execute","commands","locale","suggestionChanged","_suggestionToController","descriptionParts","suggestionUnloaded","add","change:activeAnnotations","init","buttonView","button","getSuggestion","comments.maxCommentsWhenCollapsed","trackChanges","CommentsUI","_descriptionFactory","isOn","push","isMultiRange","editing","EditorAnnotations","has","bind","_handleControllerBuffer","activeAnnotations","values","_annotationViews","Discard all selected suggestions","_initializeController","createAnnotation","trackChanges.SuggestionThreadView","from","CommentsRepository","_destroyController","_createUIButton","acceptAllSuggestions","switchbutton","hasSuggestion","view","focus","_handleSuggestionControllerDelayed","_bindAnnotationToEditors","refreshSelectedViews","listenTo","acceptButton","TrackChangesEditing"];var Ac,vc;Ac=kc,vc=431,function(t){for(;--t;)Ac.push(Ac.shift())}(++vc);const Rc=function(t,e){return kc[t-=0]};class Sc extends t.Plugin{static get[Rc("0x3")](){return[$a,r.Users,Rc("0x55"),Rc("0xe"),"EditorAnnotations"]}static get[Rc("0x28")](){return Rc("0x27")}constructor(t){super(t),this[Rc("0x38")]=new Map,this[Rc("0x30")]=new Map,this[Rc("0x4f")]=new Map,this[Rc("0x4c")]=new Map;const e=this.editor[Rc("0x15")];e[Rc("0xc")](Rc("0x53"),Tc),e.define(Rc("0x29"),!1),this[Rc("0xd")]=e.get(Rc("0x29"))}[Rc("0x5d")](t,e){0===this[Rc("0x4c")].size&&setTimeout((()=>{for(const[t,e]of this[Rc("0x4c")]){const n=this[Rc("0x38")][Rc("0x4a")](t);n||e?n&&e&&this[Rc("0x56")](t):this[Rc("0x51")](t)}this[Rc("0x1d")][Rc("0xa")][Rc("0x9")](Rc("0x49"))[Rc("0x5f")](),this[Rc("0x1e")](),this._handleControllerBuffer.clear()}),10),this[Rc("0x4c")][Rc("0x2b")](t,e)}[Rc("0x3d")](){const t=this[Rc("0x1d")],e=t[Rc("0xa")][Rc("0x9")](Rc("0x62")),n=t[Rc("0xa")][Rc("0x9")](Rc("0xe")),o=t[Rc("0xa")].get(Rc("0x49")),s=t[Rc("0xa")][Rc("0x9")](Rc("0x55"));t.ui[Rc("0x22")][Rc("0x3b")](Rc("0x42"),(t=>this[Rc("0x57")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array.from(this[Rc("0x38")])){const o=e[Rc("0x18")](),s=[];for(const t of o){if(!t[Rc("0x21")])continue;if(t[Rc("0x47")]){s[Rc("0x46")](...t[Rc("0xb")]());continue}const e=t[Rc("0x63")]();if(s[Rc("0x31")]>0){const t=s[0][Rc("0x4")](e);if(t){s[0]=t;continue}}s[Rc("0x46")](e)}t.push([n[Rc("0x5b")],s])}return t})),this.listenTo(e,Rc("0x2f"),((t,e)=>{this[Rc("0x60")](e,Rc("0x7"),((t,n,o,s)=>{e.isInContent&&(null==o?(this[Rc("0x23")](s[Rc("0x64")]),this[Rc("0x5d")](e,!1)):(this[Rc("0x23")](o[Rc("0x64")]),this[Rc("0x5d")](e,!0)))})),null===e.previous?this[Rc("0x5d")](e,!1):this[Rc("0x23")](e[Rc("0x64")])})),this[Rc("0x60")](e,Rc("0x3a"),((t,e,n)=>{this.stopListening(e,"change:previous"),this[Rc("0x4c")][Rc("0x5")](e);const o=n?n.head:e,s=this[Rc("0x38")][Rc("0x9")](o);null!==n&&this._updateController(o),null===n&&s&&this[Rc("0x56")](e)})),this[Rc("0x60")](e,Rc("0x37"),((t,e)=>{this[Rc("0x23")](e)})),this[Rc("0x60")](n,Rc("0x3c"),(()=>{this[Rc("0x1e")]()})),this[Rc("0x60")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0x5a")](n))return;const s=e[Rc("0x40")](n);this[Rc("0x38")].get(s).view.focus()}),{priority:"lowest"})}_refreshActiveMarkers(){const t=this[Rc("0x1d")][Rc("0xa")][Rc("0x9")](Rc("0xe")),e=this.editor.plugins.get(Rc("0x62")),n=Array[Rc("0x54")](t[Rc("0x4d")],(t=>t.innerView)).filter((t=>this[Rc("0x30")][Rc("0x4a")](t))),o=[];for(const t of n){const e=this._viewToController.get(t).model.getAllAdjacentSuggestions();o[Rc("0x46")](...e.reduce(((t,e)=>[...t,...e[Rc("0x20")]()]),[]))}e[Rc("0x1f")]=o}[Rc("0x57")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Rc("0x1d")].commands[Rc("0x9")](Rc("0x42")),r=Yo(t,"Track changes");n.buttonView[Rc("0x2b")]({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-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n.buttonView.bind(Rc("0x45")).to(o,"value"),n.buttonView.on(Rc("0x34"),(()=>{o[Rc("0x34")](),this[Rc("0x1d")].editing.view[Rc("0x5c")]()}));const i=new e.Collection,x=[{type:Rc("0x59"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:Rc("0x19")},{type:Rc("0x3f"),model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Rc("0x58")}},{type:Rc("0x3f"),model:{withText:!0,label:Yo(t,Rc("0x1c")),commandName:Rc("0x2c")}},{type:Rc("0x3f"),model:{withText:!0,label:Yo(t,Rc("0x1b")),commandName:Rc("0x65")}},{type:Rc("0x3f"),model:{withText:!0,label:Yo(t,Rc("0x50")),commandName:Rc("0x0")}}];for(const t of x){let e={type:Rc("0x19")};if(t[Rc("0x12")]){const n=new s.Model(t[Rc("0x12")]),o=this[Rc("0x1d")][Rc("0x35")].get(n[Rc("0x8")]);n[Rc("0x4b")]("isOn",Rc("0x2d")).to(o,Rc("0x2e"),"isEnabled"),e={type:t[Rc("0x2")],model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x[Rc("0x11")]((t=>null!=t[Rc("0x12")]))[Rc("0x32")]((t=>this[Rc("0x1d")].commands[Rc("0x9")](t[Rc("0x12")][Rc("0x8")]))),c=n[Rc("0x3e")];return c[Rc("0x10")][Rc("0x69")](Rc("0x2d")),c.arrowView[Rc("0x69")](Rc("0x2d")),c[Rc("0x10")][Rc("0x4b")](Rc("0x2d")).to(o,Rc("0x2d")),c[Rc("0x67")][Rc("0x4b")](Rc("0x2d"))[Rc("0x16")](a,"isEnabled",((...t)=>t.some((t=>t)))),n.on(Rc("0x34"),(t=>{this[Rc("0x1d")][Rc("0x34")](t.source[Rc("0x8")]),this[Rc("0x1d")].editing[Rc("0x5b")].focus()})),n}_initializeController(t){const e=this.editor,n=e[Rc("0x15")],o=e[Rc("0xa")][Rc("0x9")](Rc("0xe")),s=e[Rc("0xa")][Rc("0x9")](Rc("0x55")),i=e[Rc("0xa")][Rc("0x9")]("EditorAnnotations"),x=e[Rc("0xa")][Rc("0x9")](r.Users).me,a=n.get(Rc("0x42")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0xa")][Rc("0x9")](Rc("0x43"));let d,u;this[Rc("0x4f")][Rc("0x4a")](t.id)?(u=this[Rc("0x4f")][Rc("0x9")](t.id),d=u[Rc("0x1")]):(d=new a(e[Rc("0x36")],t,x,{disableComments:this._disableComments,editorConfig:n.get(Rc("0xf")),maxCommentsWhenCollapsed:n.get(Rc("0x41")),maxThreadTotalWeight:n.get(Rc("0x66")),maxCommentCharsWhenCollapsed:n[Rc("0x9")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[Rc("0x9")](Rc("0x36"))),CommentView:n[Rc("0x9")](Rc("0x25")).CommentView,CommentsListView:c,CommentThreadInputView:l}),d[Rc("0x61")].on(Rc("0x34"),(()=>{e[Rc("0x48")][Rc("0x5b")].focus()})),d[Rc("0x17")].on(Rc("0x34"),(()=>{e.editing[Rc("0x5b")].focus()})),u=o[Rc("0x24")](this[Rc("0x1d")].locale,d),u.bind(Rc("0x14")).to(d,"isDirty"),u[Rc("0x4b")](Rc("0x31")).to(d),u[Rc("0x4b")](Rc("0x2")).to(d,Rc("0x2"),(t=>"suggestion-"+t)),this[Rc("0x4f")][Rc("0x2b")](t.id,u));const g=s.createCommentThreadController(t.commentThread,d),m=new dc(e,t,d,g),f=t[Rc("0x18")]()[Rc("0x11")]((t=>t.isInContent));d.descriptionParts=e[Rc("0xa")][Rc("0x9")](Rc("0x62"))._descriptionFactory[Rc("0x13")](f),this[Rc("0x38")][Rc("0x2b")](t,m),this[Rc("0x30")][Rc("0x2b")](d,m);const h=o[Rc("0x52")]({view:u,target:()=>{const n=[],o=t[Rc("0x18")]().filter((t=>t[Rc("0x21")]));for(const t of o)n[Rc("0x46")](...t[Rc("0x6")]());return(0,r.getAllMarkersDomElementsSorted)(e[Rc("0x48")],n)},type:()=>Rc("0x1a")+m.view[Rc("0x2")]});s[Rc("0x5e")](d,h),o[Rc("0x3b")](h),i[Rc("0x26")](h)}[Rc("0x56")](t){const e=this.editor[Rc("0xa")][Rc("0x9")](Rc("0x55")),n=this.editor[Rc("0xa")][Rc("0x9")](Rc("0xe")),o=this[Rc("0x38")][Rc("0x9")](t),s=o[Rc("0x5b")],r=n[Rc("0x68")](s);e._unbindEditors(s),r&&n.remove(r),this[Rc("0x38")].delete(t),this._viewToController.delete(s),o[Rc("0x33")]()}[Rc("0x23")](t){if(!t[Rc("0x21")]||!this[Rc("0x38")].has(t))return;const e=this[Rc("0x1d")][Rc("0xa")][Rc("0x9")]("TrackChangesEditing"),n=this[Rc("0x38")][Rc("0x9")](t),o=t.getAllAdjacentSuggestions();n[Rc("0x5b")][Rc("0x39")]=e[Rc("0x44")].getDescriptions(o)}[Rc("0x33")](){for(const t of this[Rc("0x38")][Rc("0x2a")]())this._destroyController(t);for(const t of this[Rc("0x4f")][Rc("0x4e")]())t[Rc("0x1")][Rc("0x33")]();super[Rc("0x33")]()}}var Ic,Lc,Nc=["plugins","editor","adapter","TrackChanges","get","requires","pluginName","getSuggestion","Comments","getSuggestions"];Ic=Nc,Lc=162,function(t){for(;--t;)Ic.push(Ic.shift())}(++Lc);var wc=function(t,e){return Nc[t-=0]};class Mc extends t.Plugin{static get[wc("0x3")](){return[$a,Sc,wc("0x6")]}static get[wc("0x4")](){return wc("0x1")}set[wc("0x0")](t){this[wc("0x9")].plugins[wc("0x2")]($a)[wc("0x0")]=t}get[wc("0x0")](){return this[wc("0x9")][wc("0x8")][wc("0x2")]($a)[wc("0x0")]}addSuggestion(t){return this[wc("0x9")][wc("0x8")].get($a).addSuggestionData(t)}[wc("0x7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[wc("0x9")][wc("0x8")][wc("0x2")]($a)[wc("0x7")]({skipNotAttached:t,toJSON:e})}[wc("0x5")](t){return this[wc("0x9")].plugins[wc("0x2")]($a)[wc("0x5")](t)}}const Oc=["editor","discardAllSuggestions","rootsAttributes","getRootNames","useAnonymousUser","data","createDocumentFragment","getSuggestions","destroy","config","editorCreator","get","getRootsAttributes","getFullData","model","users","TrackChangesEditing","plugins","define","init","requires","map","getUser","function","trackChangesData","addUser","pluginName","create","result","document","TrackChangesData","CommentsRepository","getDataWithDiscardedSuggestions","getDataWithAcceptedSuggestions","end","name","execute","div","appendChild","constructor","_adapter","reduce","TrackChangesDataGetter","addSuggestionData"];var Fc,Pc;Fc=Oc,Pc=237,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=["Pagination"];class jc extends t.Plugin{static get[Dc("0x3")](){return[$a]}static get[Dc("0x9")](){return Dc("0xd")}[Dc("0x2")](){const t=this.editor;if(t[Dc("0x24")][Dc("0x1")]("trackChangesData.editorCreator",(e=>{const n=t[Dc("0x29")][Dc("0xc")].getRootNames()[Dc("0x18")](((t,e)=>(t[e]="",t)),{});return t[Dc("0x16")][Dc("0xa")](n,e)})),Dc("0x6")!=typeof t[Dc("0x24")][Dc("0x26")]("trackChangesData")[Dc("0x25")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Dc("0x10")](t){return Hc(this.editor,!0,t)}[Dc("0xf")](t){return Hc(this[Dc("0x1b")],!1,t)}}class Uc extends t.Plugin{static get pluginName(){return Dc("0x19")}constructor(t){super(t),this[Dc("0xb")]=Dc("0x11")}[Dc("0x2")](){this[Dc("0x1b")][Dc("0x0")].get(Dc("0xe"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Dc("0x1b")].plugins.get(Dc("0x2b"))[Dc("0x17")]=null}}function Gc(t){return void 0!==t[Dc("0x27")]}async function Hc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Bc);o[Dc("0x0")].push($a,Uc),o[Dc("0x1d")]=Gc(t)?t[Dc("0x27")]():void 0;const s=document[Dc("0x21")](),i=t[Dc("0x24")][Dc("0x26")](Dc("0x7"))[Dc("0x25")],x=await i(o,(()=>function(t){const e=document.createElement(Dc("0x14"));return t[Dc("0x15")](e),e}(s)));!function(t,e){const n=t[Dc("0x29")].document[Dc("0x1e")]().reduce(((e,n)=>(e[n]=t.data[Dc("0x26")]({rootName:n}),e)),{}),o=t.plugins[Dc("0x26")]("Users")[Dc("0x2a")][Dc("0x4")]((t=>({id:t.id,name:t[Dc("0x12")]}))),s=t.plugins.get(Dc("0x2b"))[Dc("0x22")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins.get("Users"),i=e.plugins.get(Dc("0x2b"));for(const t of o)r[Dc("0x5")](t.id)||r[Dc("0x8")](t);r.me||r[Dc("0x1f")]();for(const t of s)i[Dc("0x1a")](t);e[Dc("0x20")].set(n)}(t,x),x[Dc("0x13")](e?"acceptAllSuggestions":Dc("0x1c"));const a=Gc(x)?x[Dc("0x28")](n):x.data[Dc("0x26")](n);return await x[Dc("0x23")](),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:()=>hc,TrackChanges:()=>wc,TrackChangesData:()=>jc,TrackChangesEditing:()=>$a});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["editor","affectsData","value","_enabledCommands","_disableUnsupportedCommands","has","TrackChangesCommand","clearForceDisabled","_enableCommands","refresh","commands","forceDisabled","isEnabled"];var c,l;c=a,l=137,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("0x8")]=!1,this.refresh(),this._isEnabledBasedOnSelection=!1}[d("0x2")](){this[d("0x5")]=!0}execute(){this.value=!this[d("0x8")],this.value?this[d("0xa")]():this[d("0x1")]()}[d("0xa")](){for(const t of this[d("0x6")][d("0x3")][d("0x3")]())t.affectsData&&!this[d("0x9")][d("0xb")](t)&&t[d("0x4")](d("0xc"))}_enableCommands(){for(const t of this[d("0x6")][d("0x3")].commands())t[d("0x7")]&&!this[d("0x9")][d("0xb")](t)&&t[d("0x0")](d("0xc"))}}const g=["model","track-changes-accept-suggestion-not-found","TrackChangesEditing","get","getRanges","refresh","editor"];var m,f;m=g,f=121,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._suggestions=e,this[h("0x3")](),this._isEnabledBasedOnSelection=!1}refresh(){this.isEnabled=!0}execute(t){const n=this._suggestions[h("0x1")](t);if(!n)throw new e.CKEditorError(h("0x6"),this);const o=n[h("0x2")]();this[h("0x4")][h("0x5")].canEditAt(o)&&this[h("0x4")].plugins[h("0x1")](h("0x0")).acceptSuggestion(n)}}const b=["canEditAt","execute","refresh","isEnabled","model","discardSuggestion","get","editor","getRanges","TrackChangesEditing","_isEnabledBasedOnSelection","plugins"];var E,_;E=b,_=168,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._suggestions=e,this[T("0x2")](),this[T("0xa")]=!1}[T("0x2")](){this[T("0x3")]=!0}[T("0x1")](t){const n=this._suggestions[T("0x6")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x8")]();this.editor[T("0x4")][T("0x0")](o)&&this[T("0x7")][T("0xb")][T("0x6")](T("0x9"))[T("0x5")](n)}}const y=["isArray","join","end","isMultiRange","push","type","isIntersecting","map","length","replace","sort","add","isObject","value","schema","createRange","getRanges","next","deletion","color","start","isTouching","createPositionAt","createPositionBefore","execute","isInContent","createPositionAfter","content"];var k,A;k=y,A=142,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x8")](((t,e)=>v("0x10")==t[v("0x3")]&&v("0x10")!=e.type?-1:v("0x10")!=t[v("0x3")]&&"deletion"==e[v("0x3")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0xc")];for(;o<t[v("0x6")];){const i=t[o],x=t[o+1];n||(n=e[v("0x15")](i)),I(e,i,x)||(s[v("0x2")](e[v("0xd")](n,r[v("0xa")](i)?e[v("0x18")](i):e[v("0x14")](i,v("0x0")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x18")](e),s=t[v("0x15")](n);return o.isTouching(s)}function L(t,e,n){for(;n[v("0x6")];){const o=n.splice(0,100);t.change((()=>{for(const t of o)t.isInContent&&e[v("0x16")](t.id)}))}}const N=["refresh","isEnabled","_isEnabledBasedOnSelection","_command","canEditAt","getRanges","model","_suggestions","execute","from","values","isInContent","editor"];var M,w;M=N,w=374,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("0x6")]=e,this[O("0xa")]=n,this[O("0x3")](),this[O("0x5")]=!1}[O("0x3")](){const t=Array[O("0xc")](this[O("0xa")][O("0x0")]()).some((t=>t[O("0x1")]));this[O("0x4")]=this[O("0x6")][O("0x4")]&&t}[O("0xb")](){const t=R(Array[O("0xc")](this._suggestions[O("0x0")]()));for(const e of t){const t=e[O("0x8")]();if(!this.editor[O("0x9")][O("0x7")](t))return}L(this[O("0x2")][O("0x9")],this[O("0x6")],t)}}const D=["values","_selectedSuggestions","_command","getRanges","isEnabled","_isEnabledBasedOnSelection","from","document","model","size","selection","execute","refresh","editor"];var P,B;P=D,B=124,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[j("0x4")]=e,this._suggestions=n,this._selectedSuggestions=new Set,this[j("0x0")](),this[j("0x7")]=!1}[j("0x0")](){const t=this[j("0x1")].model[j("0x9")][j("0xc")],e=Array[j("0x8")](this._suggestions[j("0x2")]());this[j("0x3")]=function(t,e){const n=Array.from(t[v("0xe")]()),o=new Set;for(const s of e)if(s[v("0x17")])for(const e of n)for(const n of s.getRanges())(e[v("0x4")](n)||t.isCollapsed&&!s[v("0x1")]&&s[v("0xf")]&&n[v("0x0")][v("0x13")](e[v("0x12")]))&&o[v("0x9")](s);return o}(t,e),this.isEnabled=this[j("0x4")][j("0x6")]&&!!this[j("0x3")][j("0xb")]}[j("0xd")](){const t=R(Array[j("0x8")](this[j("0x3")]));for(const e of t){const t=e[j("0x5")]();if(!this.editor[j("0xa")].canEditAt(t))return}L(this[j("0x1")][j("0xa")],this[j("0x4")],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=["discard","isMultiRange","start","type","data","clear","_markerNames","toJSON","attributes","length","getMultiRangeId","getRanges","creator","author","accept","_onDiscard","onAccept","removeMarkers","removeAttribute","set","push","removeMarker","addMarkerName","subType","getContainedElement","getMarkers","isIntersecting","getFirstMarker","addMarker","hasComments","@external","change","decorate","map","setAttribute","split","delete","getRange","getAllAdjacentSuggestions","previous","suggestion:","getItems","isInContent","_model","createdAt","next","from","end","head","_onAttributesChange","onAttributesChange","_onAccept","filter","authoredAt","getMarkerNames","commentThread"];var $o,Jo;$o=Xo,Jo=322,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.type=e.type,this[Qo("0x25")]=e.subType||null,this[Qo("0x1b")]=e[Qo("0x1b")],this[Qo("0x1a")]=e[Qo("0x1a")]||e[Qo("0x1b")],this.isExternal=Boolean(e[Qo("0x16")]&&e[Qo("0x16")][Qo("0x2c")]),this[Qo("0x12")]=null,this[Qo("0x1")]=t,this._onAccept=e[Qo("0x1e")],this[Qo("0x1d")]=e.onDiscard,this[Qo("0x7")]=e[Qo("0x8")],this._markerNames=new Set,this[Qo("0x2")]=null,this[Qo("0x21")](Qo("0xb"),null),this[Qo("0x21")](Qo("0x16"),e.attributes||{}),this[Qo("0x21")](Qo("0x35"),null),this[Qo("0x21")](Qo("0x3"),null),this[Qo("0x21")]("commentThread",null),this.set("_saved",!1),this.decorate(Qo("0x1c")),this[Qo("0x2e")](Qo("0xe"))}get[Qo("0x6")](){let t=this;for(;t[Qo("0x35")];)t=t[Qo("0x35")];return t}get[Qo("0x2b")](){return!!this[Qo("0xd")]&&this[Qo("0xd")][Qo("0x17")]>0}get[Qo("0xf")](){return 0!=this[Qo("0x14")].size&&6==Array[Qo("0x4")](this[Qo("0x14")])[0][Qo("0x31")](":").length}get[Qo("0x0")](){return null!==this.getFirstMarker()}addMarkerName(t){this[Qo("0x14")].add(t)}[Qo("0xc")](){return Array[Qo("0x4")](this._markerNames)}getMarkers(){return this[Qo("0xc")]().map((t=>this._model.markers.get(t)))[Qo("0xa")]((t=>t))}[Qo("0x29")](){return this[Qo("0x27")]()[0]||null}[Qo("0x1f")](){this._model[Qo("0x2d")]((t=>{for(const e of this[Qo("0x27")]())t.removeMarker(e)})),this[Qo("0x14")][Qo("0x13")]()}[Qo("0x23")](t){this[Qo("0x1")].change((e=>{e[Qo("0x23")](t)})),this[Qo("0x14")][Qo("0x32")](t)}addRange(t){const e=Qo("0x36")+this.type+":"+this[Qo("0x25")]+":"+this.id+":"+this.creator.id+":"+Zo[Qo("0x18")]();this[Qo("0x24")](e),this[Qo("0x1")][Qo("0x2d")]((n=>{n[Qo("0x2a")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x19")]())if(e[Qo("0x28")](t))return!0;return!1}getRanges(){return this[Qo("0x27")]()[Qo("0x2f")]((t=>t[Qo("0x33")]()))}[Qo("0x37")](){return this[Qo("0x19")]().reduce(((t,e)=>[...t,...e[Qo("0x37")]()]),[])}getFirstRange(){var t;return(null===(t=this[Qo("0x29")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x26")](){const t=this[Qo("0x19")]();if(1!=t.length)return null;const e=t[0],n=e[Qo("0x10")].nodeAfter,o=e[Qo("0x5")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}accept(){this[Qo("0x9")](this.getRanges(),this.data,this.attributes),this[Qo("0x1f")]()}[Qo("0xe")](){this._onDiscard(this[Qo("0x19")](),this[Qo("0x12")],this.attributes),this.removeMarkers()}[Qo("0x34")](){const t=[];let e=this.head;for(;e;)t[Qo("0x22")](e),e=e[Qo("0x3")];return t}[Qo("0x30")](t,e){const n=eo(this[Qo("0x16")]);_o(n,t,e),Go(n,this[Qo("0x16")])||(this[Qo("0x16")]=n,this[Qo("0x7")](n))}[Qo("0x20")](t){const e=eo(this[Qo("0x16")]);qo(e,t),Go(e,this.attributes)||(this.attributes=e,this[Qo("0x7")](this[Qo("0x16")]))}[Qo("0x15")](){return{id:this.id,type:this.subType?this[Qo("0x11")]+":"+this[Qo("0x25")]:this[Qo("0x11")],authorId:this[Qo("0x1a")].id,createdAt:this.createdAt,hasComments:this[Qo("0x2b")],data:this[Qo("0x12")],attributes:this[Qo("0x16")]}}static[Qo("0x18")](){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=["REPLACE_TEXT","function","checkChild","$1 $2","add","removeObject","*Remove:* %0","$textProxy","data","element","registerElementLabel","nextSibling","normal","isObject","length","Container","item","name","getDescriptions","Object","end","label","quantity","elementStart","_locale","addEmptyContainer","_resolveDescriptionItems","EmptyContainer","registerDescriptionCallback","remove","_itemLabels","pop","type","push","getFirstRange","*Merge:* %0","elementEnd","insertion","replace","get","match","isEmpty","_itemLabelsCallbacks","skip","ELEMENT_SPACE","deletion","previousSibling","isInContent","_schema","removeEmptyContainer","indexOf","addObject","addContainer","_addDescriptionItems","*Insert:* %0","removeContainer","text","getItemLabel"];var es,ns;es=ts,ns=495,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this._customCallbacks=[],this[os("0x39")]=new Map,this[os("0xb")]=[],this[os("0x11")]=t,this[os("0x33")]=e}[os("0x2d")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[os("0x10")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x1")in n&&e[os("0x2")](n),s=!0;break}}if(!s){this[os("0x16")](e,o);const s=t[n+1];if(s&&!o[os("0x3")]()[os("0x2f")].isEqual(s[os("0x3")]().start)){const t=e[e[os("0x29")]-1],n=os("0x6")==o[os("0x1")]?os("0x1f"):os("0x38");t&&os("0x19")==t[os("0x1")]&&(t[n]+="\n")}}}return this[os("0x35")](e)}[os("0x37")](t){this._customCallbacks.push(t)}[os("0x25")](t,n,o=e.priorities[os("0x27")]){os("0x1c")==typeof t?(0,e.insertToPriorityArray)(this[os("0xb")],{matchingCallback:t,label:n,priority:o}):this._itemLabels.set(t,n)}[os("0x1a")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[os("0x30")];break}return n||(n=this[os("0x39")][os("0x8")](t.name)),n?n(e):1!==e?e+" "+t[os("0x2c")]+"s":""+t[os("0x2c")]}_addDescriptionItems(t,e){const n=e.getFirstRange().getWalker(),o=os("0x6")==e[os("0x1")]?os("0x1f"):os("0x38");for(const e of n){const s=e[os("0x2b")],r=t[t[os("0x29")]-1];if(s.is(os("0x22")))r&&r.type.indexOf(os("0x2a"))>-1&&t.pop(),r&&os("0x19")==r[os("0x1")]?r[o]+=s[os("0x23")]:t.push({type:os("0x19"),add:"add"==o?s.data:"",remove:os("0x38")==o?s[os("0x23")]:""});else if(this[os("0x11")][os("0x28")](s)){const i=s;if(r&&r[os("0x1")][os("0x13")](os("0x2a"))>-1&&t[os("0x0")](),os("0x5")==e[os("0x1")])continue;r&&r[os("0x1")]==o+os("0x2e")&&r[os("0x24")][os("0x2c")]==i.name?r.quantity++:t[os("0x2")]({type:o+os("0x2e"),element:i,quantity:1}),n[os("0xc")]((t=>!("elementEnd"==t[os("0x1")]&&t[os("0x2b")]==s)))}else if(this[os("0x11")][os("0x1d")](s,"$text")||s.is(os("0x24"),"softBreak")){const n=s;if(os("0x1f")==o&&os("0x32")==e[os("0x1")]||os("0x38")==o&&"elementEnd"==e.type)continue;if(r&&-1==r[os("0x1")][os("0x13")](os("0x2a"))){os("0x19")==r[os("0x1")]&&(r[o]+="\n");continue}let i;if(i="add"==o?n[os("0x26")]&&!this._schema[os("0x28")](n[os("0x26")])?n[os("0x26")]:null:n.previousSibling&&!this[os("0x11")][os("0x28")](n[os("0xf")])?n.previousSibling:null,n.isEmpty||i&&i.isEmpty){const e=i&&i[os("0xa")]?i:n;r&&r[os("0x1")]==o+os("0x36")&&r[os("0x24")][os("0x2c")]==e[os("0x2c")]?r.quantity++:t[os("0x2")]({type:o+os("0x36"),element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}[os("0x35")](t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x1")]){case os("0x19"):if(o.add=o[os("0x1f")][os("0x7")](/(\S)\u000A+(\S)/g,os("0x1e")).replace(/\u000A/g,""),o[os("0x38")]=o[os("0x38")][os("0x7")](/(\S)\u000A+(\S)/g,os("0x1e")).replace(/\u000A/g,""),""!=o[os("0x1f")]&&""!=o[os("0x38")]){n[os("0x2")]({type:os("0x7"),content:Yo(e,os("0x1b"),['"'+o[os("0x38")]+'"','"'+o[os("0x1f")]+'"'])});continue}if(null!=o[os("0x1f")][os("0x9")](/^ +$/)){n[os("0x2")]({type:os("0x6"),content:Yo(e,os("0x17"),Yo(e,os("0xd"),o.add[os("0x29")]))});continue}if(null!=o[os("0x38")].match(/^ +$/)){n[os("0x2")]({type:os("0xe"),content:Yo(e,os("0x21"),Yo(e,"ELEMENT_SPACE",o.remove[os("0x29")]))});continue}if(""!=o.add){n.push({type:os("0x6"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x1f")]+'"')});continue}n[os("0x2")]({type:os("0xe"),content:Yo(e,"*Remove:* %0",'"'+o[os("0x38")]+'"')});continue;case os("0x34"):case os("0x14"):n[os("0x2")]({type:os("0x6"),content:Yo(e,os("0x17"),this.getItemLabel(o[os("0x24")],o[os("0x31")]))});continue;case os("0x12"):case os("0x20"):n[os("0x2")]({type:os("0xe"),content:Yo(e,"*Remove:* %0",this.getItemLabel(o[os("0x24")],o[os("0x31")]))});continue;case os("0x15"):n[os("0x2")]({type:"insertion",content:Yo(e,"*Split:* %0",this[os("0x1a")](o[os("0x24")],o.quantity))});continue;case os("0x18"):n.push({type:os("0xe"),content:Yo(e,os("0x4"),this[os("0x1a")](o[os("0x24")],o[os("0x31")]))});continue}n[os("0x2")](o)}return n}}const rs=["showAIAssistant","editor","commands","TrackChangesEditing","get"];var is,xs;is=rs,xs=238,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[as("0x3")],e=t.plugins[as("0x1")](as("0x0"));t[as("0x4")].get(as("0x2"))&&e.enableCommand(as("0x2"))}}const ls=["get","registerDescriptionCallback","FORMAT_ALIGN_TO_LEFT","TrackChangesEditing","model","justify","getAttribute","alignment","change","document","FORMAT_ALIGN_TO_RIGHT","right","getSelectedBlocks","contentLanguageDirection","value","checkAttribute","markBlockFormat","locale","_descriptionFactory","schema","commandName","afterInit","enableCommand","FORMAT_ALIGN_TO_CENTER","has","editor","FORMAT_JUSTIFY_TEXT","from","format","selection","plugins","*Format:* %0"];var ds,us;ds=ls,us=140,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{[gs("0x9")](){const t=this[gs("0xd")],e=t[gs("0x5")];if(!t[gs("0x12")][gs("0xc")]("AlignmentEditing"))return;const n=t[gs("0x12")][gs("0x14")](gs("0x17"));n[gs("0xa")](gs("0x1b"),((e,o={})=>{let s=o[gs("0x2")];o[gs("0x2")]||(s="ltr"===t[gs("0x5")][gs("0x1")]?"left":gs("0x1f"));const r=Array[gs("0xf")](this[gs("0xd")][gs("0x18")][gs("0x1d")][gs("0x11")][gs("0x0")]()).filter((t=>function(t,e,n){const o=t[gs("0x1a")](gs("0x1b"))||null;return e[gs("0x3")](t,gs("0x1b"))&&n!=o}(t,this.editor.model[gs("0x7")],s)));t[gs("0x18")][gs("0x1c")]((()=>{for(const t of r)n[gs("0x4")](t,{commandName:gs("0x1b"),commandParams:[{value:s}]})}))})),n[gs("0x6")][gs("0x15")]((t=>{const{data:n}=t;if(n&&"alignment"==n[gs("0x8")]){const t=n.commandParams[0][gs("0x2")];return{type:gs("0x10"),content:Yo(e,gs("0x13"),function(t){switch(t){case"left":return Yo(e,gs("0x16"));case gs("0x1f"):return Yo(e,gs("0x1e"));case"center":return Yo(e,gs("0xb"));case gs("0x19"):return Yo(e,gs("0xe"))}}(t))}}}))}}const fs=["isBlock","getItems","nextSibling","createRangeOn","getAttribute","push","toViewPosition","TrackChangesEditing","mapper","element","activeMarkers","item","markerRange","markerName","consumable","hasAttribute","getWalker","get","includes","listIndent","schema","writer","test","plugins","ck-suggestion-marker-","previousPosition","addHighlight","model","addClass","listItem","span","elementEnd","isContent","ck-suggestion-marker--active","name","bindElementToMarker","toViewElement"];var hs,ps;hs=fs,ps=309,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return fs[t-=0]};function Es(t,e,n){const o=[];for(const s of e[bs("0x19")]())s[bs("0x2")](t)&&o[bs("0x1d")](n[bs("0x1b")](s));return o}function _s(t){const e=[];if(t.is(bs("0x21"),bs("0x10"))){let n=t.nextSibling;for(;n&&n.is(bs("0x21"),bs("0x10"))&&n[bs("0x1c")](bs("0x6"))>0;)e[bs("0x1d")](n),n=n[bs("0x1a")]}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t[bs("0xa")][bs("0x4")](bs("0x1f"));return(s,r,i)=>{if(!i[bs("0x1")][bs("0x9")](r[bs("0x24")],s[bs("0x15")]))return;const x=r[bs("0x24")][bs("0x3")](),a=r[bs("0x24")].start,c=t[bs("0xe")][bs("0x7")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[bs("0x23")];u=u||c[bs("0x13")](e);const n=i[bs("0x20")][bs("0x17")](e);if(n&&n.getCustomProperty(bs("0xd")))return;bs("0x12")==t.type&&c[bs("0x18")](e)&&!c.isLimit(e)&&(e.nextSibling||a.isAtEnd?l&&l.parent==e||(l=e,m(t.previousPosition),g=!0):d=d||t[bs("0xc")])}function m(t){const s=i[bs("0x8")].createUIElement(bs("0x11"),{class:bs("0xb")+e}),x=i[bs("0x20")][bs("0x1e")](t);n&&o[bs("0x22")][bs("0x5")](r[bs("0x0")])&&i[bs("0x8")][bs("0xf")](bs("0x14"),s),i[bs("0x8")].insert(x,s),i[bs("0x20")][bs("0x16")](s,r[bs("0x0")])}u||g||!d||m(d)}}const Cs=["toLowerCase","FORMAT_CODE","italic","slice","getRanges","editor","afterInit","subscript","commandName","superscript","UnderlineEditing","*Remove format:* %0","BoldEditing","CodeEditing","markInlineFormat","forceValue","locale","commandParams","*Format:* %0","FORMAT_ITALIC","_descriptionFactory","document","TrackChangesEditing","enableCommand","value","change","FORMAT_BOLD","underline","FORMAT_SUBSCRIPT","format","model","has","selection","code","commands","registerDescriptionCallback","StrikethroughEditing","plugins","SubscriptEditing"];var ys,ks;ys=Cs,ks=141,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x1b"),"ItalicEditing",As("0x19"),As("0x1c"),As("0xc"),As("0xe"),"SuperscriptEditing"];class Rs extends t.Plugin{[As("0x15")](){const t=this[As("0x14")],e=t[As("0x6")],n=t[As("0xd")].get(As("0x25")),o=t[As("0x1f")];for(const o of vs){if(!t[As("0xd")][As("0x7")](o))continue;const s=o[As("0x12")](0,-7)[As("0xf")](),r=t[As("0xa")].get(s);n[As("0x26")](s,((t,o={})=>{const i=e[As("0x24")][As("0x8")];if(i.isCollapsed)return void t(o);const x=void 0!==o[As("0x1e")]?o.forceValue:!r[As("0x0")];e[As("0x1")]((()=>{const t=Array.from(i[As("0x13")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0x1d")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[As("0x23")][As("0xb")]((n=>{const{data:s}=n;if(s&&s[As("0x17")]===t)return s[As("0x20")][0][As("0x1e")]?{type:As("0x5"),content:Yo(o,As("0x21"),e)}:{type:As("0x5"),content:Yo(o,As("0x1a"),e)}}))}s("bold",Yo(o,As("0x2"))),s(As("0x11"),Yo(o,As("0x22"))),s(As("0x3"),Yo(o,"FORMAT_UNDERLINE")),s(As("0x9"),Yo(o,As("0x10"))),s("strikethrough",Yo(o,"FORMAT_STRIKETHROUGH")),s(As("0x16"),Yo(o,As("0x4"))),s(As("0x18"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const Ss=["get","BlockQuoteEditing","from","schema","commandParams","commands","has","forceValue","selection","commandName","markBlockFormat","parent","ELEMENT_BLOCK_QUOTE","checkChild","blockQuote","locale","filter","model","_descriptionFactory","document","value","afterInit","*Format:* %0","registerDescriptionCallback","format","getSelectedBlocks","editor"];var Is,Ls;Is=Ss,Ls=174,function(t){for(;--t;)Is.push(Is.shift())}(++Ls);const Ns=function(t,e){return Ss[t-=0]};class Ms extends t.Plugin{[Ns("0x9")](){const t=this[Ns("0xe")],e=t[Ns("0x3")];if(!t.plugins[Ns("0x15")](Ns("0x10")))return;const n=t.plugins[Ns("0xf")]("TrackChangesEditing"),o=this[Ns("0xe")][Ns("0x14")].get(Ns("0x2"));n.enableCommand(Ns("0x2"),((e,s={})=>{const r=this[Ns("0xe")][Ns("0x5")][Ns("0x7")][Ns("0x17")],i=s&&void 0!==s[Ns("0x16")]?s[Ns("0x16")]:!o[Ns("0x8")];let x=[];if(i){const e=Array[Ns("0x11")](r[Ns("0xd")]())[Ns("0x4")]((t=>ws(t)||function(t,e){const n=e[Ns("0x1")](t[Ns("0x1a")],Ns("0x2")),o=e[Ns("0x1")](["$root","blockQuote"],t);return n&&o}(t,this.editor[Ns("0x5")][Ns("0x12")])));x=S(e,t[Ns("0x5")])}else{const e=Array[Ns("0x11")](r[Ns("0xd")]())[Ns("0x4")]((t=>ws(t)));x=S(e,t[Ns("0x5")])}t[Ns("0x5")].change((()=>{for(const t of x)n[Ns("0x19")](t,{commandName:Ns("0x2"),commandParams:[{forceValue:i}]})}))})),n[Ns("0x6")][Ns("0xb")]((t=>{const{data:n}=t;if(n&&Ns("0x2")==n[Ns("0x18")]){const t=Yo(e,Ns("0x0"));return n[Ns("0x13")][0][Ns("0x16")]?{type:Ns("0xc"),content:Yo(e,Ns("0xa"),t)}:{type:Ns("0xc"),content:Yo(e,"*Remove format:* %0",t)}}}))}}function ws(t){return Ns("0x2")==t.parent.name}const Os=["TrackChangesEditing","afterInit","get","ckbox","commands","editor"];var Fs,Ds;Fs=Os,Ds=314,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ds);const Ps=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ps("0x5")](){const t=this[Ps("0x3")];t[Ps("0x2")][Ps("0x0")]("ckbox")&&t.plugins[Ps("0x0")](Ps("0x4")).enableCommand(Ps("0x1"))}}const js=["rootElement","_descriptionFactory","selection","isLimit","name","ELEMENT_CODE_BLOCK","commands","config","getSelectedBlocks","forceValue","languages","change","schema","get","commandParams","enableCommand","plugins","label","document","*Format:* %0","filter","blockName","*Remove format:* %0","checkChild","from","editor","language","parent","codeBlock","formatBlock","markBlockFormat","locale","find","registerDescriptionCallback"];var Us,Gs;Us=js,Gs=251,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{afterInit(){const t=this[Hs("0xc")];if(!t[Hs("0x3")].has("CodeBlock"))return;const e=t[Hs("0x3")][Hs("0x0")]("TrackChangesEditing"),n=t[Hs("0x12")],o=t[Hs("0x1c")].get(Hs("0xf"))[Hs("0x1f")],s=t[Hs("0x1b")].get(Hs("0xf"));e.enableCommand("indentCodeBlock"),e.enableCommand("outdentCodeBlock"),e[Hs("0x2")]("codeBlock",((n,r={})=>{const i=t.model,x=t.model[Hs("0x5")][Hs("0x17")],a=r&&void 0!==r[Hs("0x1e")]?r[Hs("0x1e")]:!s.value;let c;r[Hs("0xd")]||(r[Hs("0xd")]=o[0][Hs("0xd")]),c=a?Array.from(x.getSelectedBlocks())[Hs("0x7")]((t=>{return Ws(t)||(e=t,n=i[Hs("0x21")],!e.is(Hs("0x15"))&&!n[Hs("0x18")](e)&&n[Hs("0xa")](e[Hs("0xe")],Hs("0xf")));var e,n})):Array[Hs("0xb")](x[Hs("0x1d")]())[Hs("0x7")]((t=>Ws(t)));const l=S(c,i);i[Hs("0x20")]((()=>{for(const t of l)e[Hs("0x11")](t,{commandName:Hs("0xf"),commandParams:[{...r,forceValue:a}],formatGroupId:Hs("0x8")})}))})),e[Hs("0x16")].registerElementLabel(Hs("0xf"),(t=>Yo(n,Hs("0x1a"),t))),e[Hs("0x16")][Hs("0x14")]((t=>{const e=n.t,{type:s,data:r}=t;if(Hs("0x10")==s&&r&&Hs("0xf")==r.commandName){const t=r[Hs("0x1")][0][Hs("0xd")],s=e(o[Hs("0x13")]((e=>e[Hs("0xd")]===t))[Hs("0x4")]);return r[Hs("0x1")][0][Hs("0x1e")]?{type:"format",content:Yo(n,Hs("0x6"),Yo(n,Hs("0x1a"),1)+" ("+s+")")}:{type:"format",content:Yo(n,Hs("0x9"),Yo(n,Hs("0x1a"),1))}}}))}}function Ws(t){return Hs("0xf")==t[Hs("0x19")]}const Vs=["has","enableCommand","get","CommentsEditing","afterInit","plugins"];var Ks,qs;Ks=Vs,qs=148,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Vs[t-=0]};class $s extends t.Plugin{[Xs("0x0")](){const t=this.editor;t[Xs("0x1")][Xs("0x2")](Xs("0x5"))&&t.plugins[Xs("0x4")]("TrackChangesEditing")[Xs("0x3")]("addCommentThread")}}var Js=n(181);const Qs=["start","plugins","buffer","mapper","markerName","detach","fromRange","isCollapsed","selection","commands","root","TrackChangesEditing","markerNameToElements","editing","document","downcastDispatcher","enableCommand","removeMarker:suggestion:deletion","createRange","modifySelection","uiElement","model","$graveyard","forward","unlock","addMarker:suggestion:deletion","get","deleteForward","unit","high","rootName","delete","showSuggestionHighlights","requires","data","options","batch","createSelection","remove","lock","merge"];var Zs,Ys;Zs=Qs,Ys=499,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{static get[tr("0x1a")](){return[Js.Delete]}init(){const t=this.editor,e=t[tr("0x23")][tr("0x13")](tr("0x4"));e[tr("0x9")](tr("0x18"));const n=t[tr("0x2")][tr("0x13")](tr("0x14"));e[tr("0x9")](tr("0x14"),((e,o={})=>{const s=t[tr("0xe")][tr("0x1e")](t[tr("0xe")][tr("0x7")][tr("0x1")]);s[tr("0x0")]&&t[tr("0xe")][tr("0xc")](s,{direction:tr("0x10"),unit:o[tr("0x15")]});const r=s.getFirstRange(),x=i.LiveRange[tr("0x28")](r);let a;e(o),a=tr("0xf")==x[tr("0x3")][tr("0x17")]?t[tr("0xe")].createRange(r[tr("0x22")]):t.model[tr("0xb")](x[tr("0x22")],x.end),x[tr("0x27")](),t[tr("0xe")].enqueueChange(n[tr("0x24")][tr("0x1d")],(t=>{n.buffer[tr("0x20")](),t.setSelection(t.createRange(a.end)),n[tr("0x24")][tr("0x11")]()}))})),t[tr("0x6")][tr("0x8")].on(tr("0x12"),Ts(t,tr("0x21")),{priority:tr("0x16")}),t[tr("0x1b")][tr("0x8")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[tr("0x1c")][tr("0x19")]&&Ts(t,"merge",{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:"high"}),t[tr("0x6")][tr("0x8")].on(tr("0xa"),((t,e,n)=>{const o=n[tr("0x25")][tr("0x5")](e[tr("0x26")]);if(o)for(const t of o)t.is(tr("0xd"))&&(n.mapper.unbindElementFromMarkerName(t,e.markerName),n.writer[tr("0x1f")](t))}),{priority:tr("0x16")})}}const nr=["registerCustomCallback","list.multiBlock","forceValue","outdentList","plugins","*Format:* insert into %0","schema","ELEMENT_LIST_ITEM","markMultiRangeBlockFormat","start","_LIST","model","config","locale","indentList","registerDescriptionCallback","format","numberedList","commands","splitListItemAfter","containsItem","documentList","editor","document","has","getAttribute","findIndex","execute","splitListItemBefore","bulletedList","before","change","nextSibling","previousSibling","getFirstRange","add","commandName","ELEMENT_BULLETED_LIST","enableCommand","listIndent","getRanges","markBlockFormat","fromRange","isObject","toUpperCase","commandParams","_descriptionFactory","*Change to:* %0","setSelection","value","mergeListItemBackward","*Merge:* %0","listType","from","map","createRange","isFirstBlockOfListItem","nodeAfter","ELEMENT_","get","*Outdent:* %0","end","listItemId","DocumentListUtils","next","push","after","*Format:* remove from %0","hasAttribute","selection","paragraph","createPositionAt","TrackChangesEditing","mergeListItemForward","expandListBlocksToCompleteList"];var or,sr;or=nr,sr=313,function(t){for(;--t;)or.push(or.shift())}(++sr);const rr=function(t,e){return nr[t-=0]};class ir extends t.Plugin{afterInit(){const t=this[rr("0x9")];if(!t[rr("0x42")][rr("0xb")]("DocumentListEditing"))return;const e=t[rr("0x0")],n=t[rr("0x42")][rr("0x2e")](rr("0x3b")),o=t.plugins[rr("0x2e")](rr("0x32"));function s(e){return()=>{const s=t[rr("0x5")][rr("0x2e")](e);if(s[rr("0x24")]&&!t[rr("0x4a")][rr("0x2e")](rr("0x3f")))return void t[rr("0xe")](rr("0x39"),{});let r=Array[rr("0x28")](t.model[rr("0xa")][rr("0x38")].getSelectedBlocks());if(a(e)){r=o[rr("0x3d")](r);const t=[];for(const e of r)o[rr("0x2b")](e)&&t[rr("0x34")](e);r=t}t[rr("0x49")].change((()=>{n[rr("0x46")](r,{commandName:e,commandParams:[{forceValue:!s[rr("0x24")]}],formatGroupId:rr("0x27")},[],rr("0x8"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[rr("0xd")]((t=>!t[rr("0x37")](rr("0x31"))));return n>-1&&(e=e.slice(0,n)),e}(t[rr("0x49")][rr("0xa")][rr("0x38")].getSelectedBlocks()),s=o[o.length-1],r=t[rr("0x49")][rr("0x44")][rr("0x1e")](s)?rr("0x35"):"end",i=t[rr("0x49")][rr("0x2a")](t[rr("0x49")][rr("0x3a")](o[0],rr("0x11")),t[rr("0x49")][rr("0x3a")](s,r));t[rr("0x49")][rr("0x12")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:rr("0x27")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t.getAttribute(rr("0x1a"))>n[rr("0xc")](rr("0x1a"));)e[rr("0x16")](t),t=t[rr("0x13")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[rr("0x49")][rr("0xa")][rr("0x38")].getSelectedBlocks()[rr("0x33")]()[rr("0x24")],s=t[rr("0x49")][rr("0x3a")](o,rr("0x11")),r=t[rr("0x49")][rr("0x3a")](o,0),i=t[rr("0x49")][rr("0x2a")](s,r);t[rr("0x49")][rr("0x12")]((()=>{n[rr("0x1c")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x27")})}))}}function a(e){const n=t[rr("0x5")][rr("0x2e")](rr("0x10"))[rr("0x24")],o=t.commands[rr("0x2e")](rr("0x4"))[rr("0x24")];return"numberedList"===e?n:o}n[rr("0x19")](rr("0x4"),s(rr("0x4"))),n[rr("0x19")](rr("0x10"),s(rr("0x10"))),n[rr("0x19")](rr("0x1"),r(rr("0x1"))),n[rr("0x19")](rr("0x41"),r(rr("0x41"))),n[rr("0x19")](rr("0x6"),x("splitListItemAfter")),n[rr("0x19")]("splitListItemBefore",x(rr("0xf"))),n[rr("0x21")].registerElementLabel((function(e){const n=!t.model[rr("0x44")][rr("0x1e")](e),o=e[rr("0x14")],s=e[rr("0x13")],r=e[rr("0xc")](rr("0x31")),i=!o||o.getAttribute(rr("0x31"))!==r,x=!s||s[rr("0xc")](rr("0x31"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,rr("0x45"),t))),n[rr("0x21")][rr("0x2")]((function(n){const{data:o}=n;if(!o)return;let s,r,i,x;switch(o.commandName){case rr("0x10"):i=o[rr("0x20")][0][rr("0x40")],x=a(o[rr("0x17")]),s=i?rr("0x43"):"*Format:* remove from %0",!x&&t[rr("0x4a")].get(rr("0x3f"))||(s=rr("0x22")),r={type:rr("0x3"),content:Yo(e,s,Yo(e,rr("0x18")))};break;case"numberedList":i=o.commandParams[0][rr("0x40")],x=a(o[rr("0x17")]),s=rr(i?"0x43":"0x36"),!x&&t.config.get(rr("0x3f"))||(s=rr("0x22")),r={type:rr("0x3"),content:Yo(e,s,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case rr("0x1"):s="*Indent:* %0",r={type:rr("0x3"),content:Yo(e,s,Yo(e,rr("0x45")))};break;case rr("0x41"):s=function(t){const e=t[rr("0x15")]();let n=e[rr("0x47")].nodeAfter;for(;n&&e[rr("0x7")](n);){if(n[rr("0xc")](rr("0x1a"))>0)return!1;n=n[rr("0x13")]}return!0}(n)?Yo(e,rr("0x36"),Yo(e,function(t){const e=t[rr("0x15")]()[rr("0x47")].nodeAfter;return rr("0x2d")+e.getAttribute("listType")[rr("0x1f")]()+rr("0x48")}(n))):Yo(e,rr("0x2f"),Yo(e,rr("0x45"))),r={type:rr("0x3"),content:s};break;case rr("0x25"):case rr("0x3c"):!1===o.multipleBlocks&&(s=rr("0x26"),r={type:"deletion",content:Yo(e,s,Yo(e,rr("0x45")))})}return r})),n._suggestionFactory[rr("0x3e")]("formatBlock",rr("0x8"),"accept",(function(e,n){const o=[];for(let n of e)n[rr("0x47")][rr("0x2c")]===n[rr("0x30")].parent&&(n=t.model[rr("0x2a")](t[rr("0x49")][rr("0x3a")](n.start[rr("0x2c")],0))),o[rr("0x34")](n);t.model.change((e=>{const s=t.model.document[rr("0x38")],r=Array.from(s[rr("0x1b")]())[rr("0x29")]((t=>i.LiveRange[rr("0x1d")](t)));e[rr("0x23")](o),t[rr("0x5")].get(n.commandName).refresh(),n.commandParams[rr("0x34")]({forceDefaultExecution:!0}),t[rr("0xe")](n[rr("0x17")],...n.commandParams),e[rr("0x23")](r);for(const t of r)t.detach()}))}))}}var xr=n(331);const ar=["unbindElementFromMarkerName","markerName","end","requires","high","markerNameToElements","model","enter","split","fire","downcastDispatcher","remove","getFirstPosition","setSelection","detach","addMarker:suggestion:insertion","writer","TrackChangesEditing","options","get","hasClass","nextSibling","fromRange","selection","parent","data","change","commands","document","init","editor","enableCommand","enterBlock","getFirstRange","mapper","removeMarker:suggestion:insertion"];var cr,lr;cr=ar,lr=123,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{static get[dr("0x18")](){return[xr.Enter]}[dr("0xe")](){const t=this[dr("0xf")],e=t.plugins[dr("0x4")](dr("0x2")),n=t[dr("0xc")][dr("0x4")](dr("0x1c"));e[dr("0x10")](dr("0x1c"),(()=>{t[dr("0x1b")][dr("0xb")]((o=>{const s=t[dr("0x1b")][dr("0xd")][dr("0x8")],r=s[dr("0x21")](),x=i.LiveRange[dr("0x7")](s[dr("0x12")]());if(n[dr("0x11")](o)){const n=t[dr("0x1b")].createPositionAt(r[dr("0x9")][dr("0x6")],0),s=o.createRange(r,n);e.markInsertion(s)}else o[dr("0x22")](o.createRange(x[dr("0x17")]));x[dr("0x23")](),n[dr("0x1e")]("afterExecute",{writer:o})}))})),t.editing.downcastDispatcher.on(dr("0x0"),Ts(t,dr("0x1d")),{priority:dr("0x19")}),t.editing[dr("0x1f")].on(dr("0x14"),((t,e,n)=>{const o=n[dr("0x13")][dr("0x1a")](e[dr("0x16")]);if(o)for(const t of o)t[dr("0x5")]("ck-suggestion-marker-split")&&(n.mapper[dr("0x15")](t,e[dr("0x16")]),n[dr("0x1")][dr("0x20")](t))}),{priority:dr("0x19")}),t[dr("0xa")].downcastDispatcher.on(dr("0x0"),((e,n,o)=>{o[dr("0x3")].showSuggestionHighlights&&Ts(t,dr("0x1d"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:dr("0x19")})}}const gr=["_isInDeletionRange","findByTextCallback","getIntersection","get","bind","suggestion:deletion","createPositionAt","editor","end","afterInit","model","enableCommand","getRange","markers","handleFindCommand","string","replace","plugins","item","has","FindAndReplaceEditing","find","TrackChangesEditing","replaceAll"];var mr,fr;mr=gr,fr=335,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0xa")](){if(!this[hr("0x8")][hr("0x12")][hr("0x14")](hr("0x15")))return;const t=this[hr("0x8")][hr("0x12")][hr("0x4")](hr("0x17"));t[hr("0xc")](hr("0x16"),this.handleFindCommand[hr("0x5")](this)),t.enableCommand("findNext"),t.enableCommand("findPrevious"),t.enableCommand(hr("0x11")),t[hr("0xc")](hr("0x0"))}[hr("0xf")](t,e,n={}){const o=this.editor[hr("0x12")][hr("0x4")]("FindAndReplaceUtils");void 0!==n&&t((t=>(hr("0x10")==typeof e?o[hr("0x2")](e,n):e)(t).filter((e=>!1===this[hr("0x1")](e,t[hr("0x13")])))),n)}_isInDeletionRange(t,e){const n=this[hr("0x8")][hr("0xb")].createRange(this[hr("0x8")][hr("0xb")][hr("0x7")](e,t.start),this[hr("0x8")][hr("0xb")][hr("0x7")](e,t[hr("0x9")]));for(const t of this.editor[hr("0xb")][hr("0xe")].getMarkersGroup(hr("0x6")))if(null!==n[hr("0x3")](t[hr("0xd")]()))return!0;return!1}}const br=["from","markInlineFormat","normalizeSizeOptions","fontColor.colors","model","FontFamilyEditing","document","TrackChangesEditing","enableCommand","change","value","fontBackgroundColor.colors","find","*Reset font family*","fontColor","FontColorEditing","fontFamily","_enableCommand","title","_descriptionFactory","*Set font size:* %0","*Reset font size*","editor","locale","toLowerCase","format","FontSizeEditing","*Reset font color*","get","fontBackgroundColor","*Set font color:* %0","plugins","fontSize","commandParams","FontSize","*Reset font background color*","label","*Set font family:* %0","commandName","config","afterInit","registerDescriptionCallback"];var Er,_r;Er=br,_r=178,function(t){for(;--t;)Er.push(Er.shift())}(++_r);const Tr=function(t,e){return br[t-=0]},Cr=[{pluginName:Tr("0x10"),commandName:Tr("0x16")},{pluginName:Tr("0x25"),commandName:"fontFamily"},{pluginName:Tr("0x5"),commandName:"fontColor"},{pluginName:"FontBackgroundColorEditing",commandName:Tr("0x13")}];class yr extends t.Plugin{[Tr("0x1e")](){const t=this[Tr("0xc")][Tr("0xd")];for(const{pluginName:t,commandName:e}of Cr)this[Tr("0xc")][Tr("0x15")].has(t)&&this[Tr("0x7")](e);this.editor[Tr("0x15")][Tr("0x12")](Tr("0x27"))[Tr("0x9")][Tr("0x1f")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(Tr("0x16")==o[Tr("0x1c")]){const e=o[Tr("0x17")][0][Tr("0x0")];if(e){const o=n(this[Tr("0xc")][Tr("0x15")][Tr("0x12")](Tr("0x18"))[Tr("0x22")](this[Tr("0xc")][Tr("0x1d")][Tr("0x12")]("fontSize.options"))[Tr("0x2")]((t=>t[Tr("0x24")]==e))[Tr("0x8")])[Tr("0xe")]();return{type:"format",content:Yo(t,Tr("0xa"),o)}}return{type:Tr("0xf"),content:Yo(t,Tr("0xb"))}}if(Tr("0x6")==o.commandName){const e=o[Tr("0x17")][0].value;return e?{type:Tr("0xf"),content:Yo(t,Tr("0x1b"),e)}:{type:Tr("0xf"),content:Yo(t,Tr("0x3"))}}if(Tr("0x4")==o[Tr("0x1c")]){const e=o[Tr("0x17")][0][Tr("0x0")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0xc")][Tr("0x1d")][Tr("0x12")](Tr("0x23")))[Tr("0x2")]((t=>t.model==e));let r=e,i="";return o&&(r=o[Tr("0x1a")],i=n(r).toLowerCase()),{type:Tr("0xf"),content:Yo(t,Tr("0x14"),i).trim(),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,Tr("0x11"))}}if(Tr("0x13")==o[Tr("0x1c")]){const e=o[Tr("0x17")][0][Tr("0x0")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0xc")][Tr("0x1d")][Tr("0x12")](Tr("0x1")))[Tr("0x2")]((t=>t[Tr("0x24")]==e));let r=e,i="";return o&&(r=o[Tr("0x1a")],i=n(r)[Tr("0xe")]()),{type:"format",content:Yo(t,"*Set font background color:* %0",i).trim(),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,Tr("0x19"))}}}}))}[Tr("0x7")](t){const e=this.editor;e.plugins.get(Tr("0x27"))[Tr("0x28")](t,((n,o={})=>{const s=e[Tr("0x24")][Tr("0x26")].selection,r=o[Tr("0x0")];s.isCollapsed?n(o):e[Tr("0x24")][Tr("0x29")]((()=>{const n=Array[Tr("0x20")](s.getRanges());for(const o of n){const n=r?[o]:Es(t,o,e.model);for(const o of n)e[Tr("0x15")][Tr("0x12")](Tr("0x27"))[Tr("0x21")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const kr=["getItems","commandParams","editor","isFormatting","keys","word","markInlineFormat","pasteFormat","model","createSelection","toLowerCase","fontColor.colors","modifySelection","document","locale","config","title","find","fontSize.options","toUpperCase","enableCommand","copyFormat","isBlock","join","label","push","split","_descriptionFactory","slice","afterInit","backward","*Remove all formatting*","commandName","plugins","registerDescriptionCallback","createRange","get","selection","fontSize","boolean","TrackChangesEditing","getAttributeProperties","format","getRanges","commands","length","change","fontBackgroundColor","getLastPosition","forward"];var Ar,vr;Ar=kr,vr=497,function(t){for(;--t;)Ar.push(Ar.shift())}(++vr);const Rr=function(t,e){return kr[t-=0]};class Sr extends t.Plugin{[Rr("0x20")](){const t=this[Rr("0x5")],n=t[Rr("0xb")],o=n[Rr("0x10")][Rr("0x28")],s=t[Rr("0x24")][Rr("0x27")](Rr("0x2b")),r=t[Rr("0x11")],i=t.commands[Rr("0x27")](Rr("0x18")),x=t[Rr("0x2f")].get(Rr("0xa"));i&&x&&(s[Rr("0x17")]("pasteFormat",((t,r={})=>{const i=r;n[Rr("0x31")]((()=>{const t=Array.from(o.getRanges()),r=o.isCollapsed?[Ir(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t.getAttributes()){const t=e[Rr("0x2c")](n);t&&t[Rr("0x6")]&&(yield n)}}(t,n));for(const e of t[Rr("0x2e")]())for(const t of e[Rr("0x3")]())!n[Rr("0x19")](t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n.schema))||0!==Object[Rr("0x7")](i)[Rr("0x30")])for(const t of r)s[Rr("0x9")](t,{commandName:Rr("0xa"),commandParams:[i]})}))})),s[Rr("0x1e")][Rr("0x25")]((e=>{const{data:n}=e;if(n&&Rr("0xa")===n[Rr("0x23")]){const e=[],o=n[Rr("0x4")][0];for(const[n,s]of Object.entries(o))e[Rr("0x1c")](Lr(t,n,s));return e[Rr("0x30")]?{type:"format",content:Yo(r,"*Set format to:* %0",e[Rr("0x1a")](", "))}:{type:Rr("0x2d"),content:Yo(r,Rr("0x22"))}}})),t[Rr("0x24")][Rr("0x27")](Rr("0x2b"))[Rr("0x17")](Rr("0x18")))}}function Ir(t,e){const n=t[Rr("0xc")](e);t.modifySelection(n,{unit:Rr("0x8"),direction:Rr("0x21")});const o=n.getFirstPosition();t[Rr("0xf")](n,{unit:Rr("0x8"),direction:Rr("0x2")});const s=n[Rr("0x1")]();return t[Rr("0x26")](o,s)}function Lr(t,e,n){const o=t[Rr("0x11")].t,r=e[Rr("0x1d")](/(?=[A-Z])/)[Rr("0x1a")](" "),i=o(r.charAt(0)[Rr("0x16")]()+r[Rr("0x1f")](1)).toLowerCase();if(Rr("0x2a")==typeof n)return i;if("fontColor"===e||Rr("0x0")===e){const e=(0,s.normalizeColorOptions)(t.config.get(Rr("0xe")))[Rr("0x14")]((t=>t[Rr("0xb")]==n));return i+" ("+(e?o(e[Rr("0x1b")])[Rr("0xd")]():n)+")"}if(Rr("0x29")===e&&isNaN(parseFloat(n))){const e=t[Rr("0x24")][Rr("0x27")]("FontSize").normalizeSizeOptions(t[Rr("0x12")][Rr("0x27")](Rr("0x15")))[Rr("0x14")]((t=>t.model==n));return i+" ("+(e?o(e[Rr("0x13")]).toLowerCase():n)+")"}return i+" ("+n+")"}const Nr=["getSelectedBlocks","name","markBlockFormat","title","model","locale","plugins","change","has","isObject","schema","config","registerDescriptionCallback","editor","HeadingEditing","selection","heading","enableCommand","format","get","commandParams","*Change to:* %0","paragraph","value","from","checkChild","registerElementLabel","filter","formatBlock","TrackChangesEditing","ELEMENT_HEADING","commandName","_descriptionFactory","find"];var Mr,wr;Mr=Nr,wr=499,function(t){for(;--t;)Mr.push(Mr.shift())}(++wr);const Or=function(t,e){return Nr[t-=0]};class Fr extends t.Plugin{afterInit(){const t=this[Or("0x18")],e=t[Or("0x10")],n=t[Or("0x16")][Or("0x1e")]("heading.options");if(!t[Or("0x11")][Or("0x13")](Or("0x19")))return;const o=t[Or("0x11")].get(Or("0x6"));o[Or("0x1c")](Or("0x1b"),((e,n)=>{const s=n[Or("0x0")],r=Array[Or("0x1")](this[Or("0x18")][Or("0xf")].document[Or("0x1a")][Or("0xb")]())[Or("0x4")]((t=>{return e=t,n=s,(o=this[Or("0x18")][Or("0xf")][Or("0x15")])[Or("0x2")](e.parent,n)&&!o[Or("0x14")](e)&&e[Or("0xc")]!=n;var e,n,o}));t.model[Or("0x12")]((()=>{for(const t of r)o[Or("0xd")](t,{commandName:"heading",commandParams:[n],formatGroupId:"blockName"},_s(t))}))}));for(const t of n)Or("0x21")!=t[Or("0xf")]&&o[Or("0x9")][Or("0x3")](t[Or("0xf")],(e=>{const n=Dr(t[Or("0xf")]);return null!==n?s(e,n):r(e,t[Or("0xe")])}));function s(t,n){return Yo(e,Or("0x7"),[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Or("0x9")][Or("0x17")]((t=>{const{type:o,data:i}=t;if(Or("0x5")==o&&i&&Or("0x1b")==i[Or("0x8")]){const t=i[Or("0x1f")][0][Or("0x0")],o=Dr(t);if(null!==o)return{type:Or("0x1d"),content:Yo(e,"*Change to:* %0",s(1,o))};const x=n[Or("0xa")]((e=>e[Or("0xf")]===t))[Or("0xe")];return{type:Or("0x1d"),content:Yo(e,Or("0x20"),r(1,x))}}}))}}function Dr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Pr=["commandParams","change","value","_descriptionFactory","FORMAT_HIGHLIGHT","model","getLastMatchingPosition","item","isCollapsed","format","get","markInlineFormat","toLowerCase","*Remove highlight*","document","editor","TrackChangesEditing","config","enableCommand","getAttribute","highlight.options","push","selection","title","locale","plugins","formatInline","afterInit","highlight","HighlightEditing"];var Br,jr;Br=Pr,jr=288,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Pr[t-=0]};class Gr extends t.Plugin{[Ur("0x9")](){const t=this[Ur("0x1b")];if(!t[Ur("0x7")].has(Ur("0xb")))return;const e=t[Ur("0x7")][Ur("0x16")](Ur("0x1c"));e[Ur("0x0")]("highlight",((n,o={})=>{const s=t[Ur("0x11")][Ur("0x1a")][Ur("0x4")],r=s[Ur("0x1")](Ur("0xa"));let i=o[Ur("0xe")],x=[];if(s[Ur("0x14")]){const e=s.getFirstPosition();if(!s.hasAttribute(Ur("0xa")))return void n(o);{const n=t=>t[Ur("0x13")][Ur("0x1")]("highlight")===r,o=e[Ur("0x12")](n,{direction:"backward"}),s=e[Ur("0x12")](n);x=[t.model.createRange(o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x[Ur("0x3")](e):x[Ur("0x3")](...Es(Ur("0xa"),e,t[Ur("0x11")]));t[Ur("0x11")][Ur("0xd")]((()=>{for(const t of x)e[Ur("0x17")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Ur("0x6")];e[Ur("0xf")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if(Ur("0x8")==o&&s&&Ur("0xa")==s.commandName){const e=n.t,o=s[Ur("0xc")][0][Ur("0xe")];if(o){const s=t[Ur("0x1d")].get(Ur("0x2")).find((t=>t[Ur("0x11")]==o)),r=e(s[Ur("0x5")])[Ur("0x18")]();return{type:Ur("0x15"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s.color,title:s.title}}}return{type:Ur("0x15"),content:Yo(n,Ur("0x19"),Yo(n,Ur("0x10")))}}}))}}const Hr=["registerElementLabel","enableCommand","HorizontalLineEditing","createEmptyElement","ELEMENT_HORIZONTAL_LINE","_descriptionFactory","for","horizontalLine","createContainerElement","plugins","locale","get","TrackChangesEditing","elementToStructure","ck-horizontal-line","div","has","editor","createPositionAt"];var zr,Wr;zr=Hr,Wr=176,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("0xc")];if(!t[Vr("0x4")][Vr("0xb")](Vr("0x10")))return;t[Vr("0x4")][Vr("0x6")]("TrackChangesEditing")[Vr("0xf")]("horizontalLine");const e=t[Vr("0x4")][Vr("0x6")](Vr("0x7")),n=t[Vr("0x5")];e[Vr("0x0")][Vr("0xe")](Vr("0x2"),(t=>Yo(n,Vr("0x12"),t))),t.conversion[Vr("0x1")]("dataDowncast")[Vr("0x8")]({model:Vr("0x2"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Vr("0x3")](Vr("0xa")),s=e[Vr("0x11")]("hr");return e.addClass(Vr("0x9"),o),e.insert(e[Vr("0xd")](o,0),s),o},converterPriority:"high"})}}const qr=["*Change %0 content*","get","value","registerDescriptionCallback","getAttribute","markBlockFormat","selection","TrackChangesEditing","view","registerElementLabel","editor","format","locale","getCustomProperty","plugins","document","element","htmlEmbed","getSelectedElement","rawHtml","_descriptionFactory","HtmlEmbed","rawHtmlApi","commandName"];var Xr,$r;Xr=qr,$r=424,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x12")];if(!t[Jr("0x16")].has(Jr("0x5")))return;const e=t[Jr("0x16")][Jr("0x9")](Jr("0xf")),n=t[Jr("0x14")],o=t.editing[Jr("0x10")][Jr("0x17")].selection;e[Jr("0x4")][Jr("0x11")](Jr("0x3"),(t=>Yo(n,"ELEMENT_HTML_EMBED",t))),t[Jr("0x16")][Jr("0x9")](Jr("0xf")).enableCommand(Jr("0x1"),((n,s)=>{const r=t.model,i=r[Jr("0x17")][Jr("0xe")];r.change((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Jr("0x0"),Jr("0x3"))?t[Jr("0x2")]():null}(i);if(!t)return void n(null);const r=t[Jr("0xc")](Jr("0xa"))||"";void 0!==s&&s!==r&&(e[Jr("0xd")](t,{commandName:Jr("0x1"),commandParams:[s]}),o[Jr("0x2")]()[Jr("0x15")](Jr("0x6")).cancel())}))})),e[Jr("0x4")][Jr("0xb")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Jr("0x7")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Jr("0x13"),content:Yo(n,Jr("0x8"),t)}}}))}}const Zr=["plugins","ImageCaptionUtils","isInlineImage","isEqual","getSuggestionCallback","hasSuggestion","element","find","previous","*Set image text alternative:* %0","getNearestSelectionRange","markDeletion","insertion","end","getChangedMarkers","markInlineFormat","discardSuggestion","isCollapsed","imageBlock","detach","*Format:* %0","getCaptionFromImageModelElement","createRangeOn","Block image to inline image","normalizedStyles","markInsertion","isBlockImage","value","formatInline","imageInline","imageTypeInline","isOwn","forEach","title","filter","toLowerCase","discard","ELEMENT_CAPTION","*Remove image text alternative*","subType","change","isInContent","imageStylePostApply","join","addObject","getFirstRange","format","ImageStyleEditing","*Reset image width*","Users","commandReversedParams","imageCaption","get","side","name","getSuggestion","selection","hasAttribute","start","forceDefaultExecution","imageTypeBlock","createRange","registerDescriptionCallback","*Set image width:* %0","nodeAfter","convertInlineImageToBlock","newRange","uploadImage","Inline image to block image","width","markBlockFormat","getContainedElement","ELEMENT_IMAGE","toggleImageCaption","formatBlock","imageTextAlternative","afterInit","commandParams","caption","_suggestionFactory","imageStyle","TrackChangesEditing","ImageUtils","commands","resizeImage","ImageResize","accept","ImageEditing","getAttribute","removeObject","document","convertBlockImageToInline","from","enableCommand","ImageTextAlternativeEditing","toPrevious","registerElementLabel","length","has","getSuggestions","registerCustomCallback","ImageInlineEditing","model","imageStylePreApply","refresh","differ","FORMAT_SIDE_IMAGE","isIntersecting","schema","next","_splitMarkerName","locale","commandName","fromPosition","getClosestSelectedImageElement","type","_descriptionFactory","findIndex","resizedWidth","ImageBlockEditing","alt","nodeBefore"];var Yr,ti;Yr=Zr,ti=146,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x34")](){const t=this.editor;if(!t.plugins[ei("0x4a")](ei("0x3f")))return;const n=t.plugins[ei("0x1c")](ei("0x39")),o=t[ei("0x62")].get(ei("0x3a")),s={},r=t[ei("0x57")];if(n[ei("0x45")]("insertImage"),n[ei("0x5c")][ei("0x48")](ei("0x74"),(t=>Yo(r,ei("0x30"),t))),n._descriptionFactory[ei("0x48")](ei("0x5"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[ei("0x5c")].registerElementLabel(ei("0x36"),(()=>Yo(r,ei("0xd")))),t[ei("0x62")][ei("0x4a")]("ImageUploadEditing")&&n.enableCommand(ei("0x2b")),t.plugins[ei("0x4a")](ei("0x5f"))&&t[ei("0x62")][ei("0x4a")](ei("0x4d"))&&(n[ei("0x45")](ei("0x6"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[ei("0x4e")][ei("0x42")][ei("0x20")]);t[ei("0x4e")].change((()=>{n[ei("0x2e")](r,{commandName:ei("0x6"),commandParams:[s]},[],ei("0x43"))}))})),n[ei("0x45")](ei("0x24"),((e,s)=>{t[ei("0x4e")][ei("0x10")]((r=>{let x=o[ei("0x5a")](t[ei("0x4e")][ei("0x42")][ei("0x20")]),a=r[ei("0x78")](x);const c=i.LivePosition[ei("0x59")](a.start,ei("0x47")),l=i.LivePosition.fromPosition(a[ei("0x6f")],"toNext");n[ei("0x23")]((()=>e(s))),x=o[ei("0x5a")](t[ei("0x4e")][ei("0x42")][ei("0x20")]),a=r.createRangeOn(x);const d=r[ei("0x25")](c,l);c[ei("0x75")](),l[ei("0x75")](),n[ei("0x2e")](x,{commandName:ei("0x6"),commandParams:[s]},[],ei("0x29")),d.start.isBefore(a[ei("0x22")])&&n.markInsertion(r[ei("0x25")](d[ei("0x22")],a[ei("0x22")]),ei("0x29")),a.end.isBefore(d[ei("0x6f")])&&n[ei("0x1")](r[ei("0x25")](a[ei("0x6f")],d.end),ei("0x29"))}))})),n._suggestionFactory[ei("0x4c")]("formatBlock","convertInlineImageToBlock","join",(()=>!1)),n[ei("0x37")][ei("0x4c")](ei("0x32"),ei("0x29"),"accept",(()=>!1)),n[ei("0x37")].registerCustomCallback(ei("0x32"),ei("0x29"),ei("0xc"),n[ei("0x37")][ei("0x66")](ei("0x32"),"","accept")),n[ei("0x37")].registerCustomCallback(ei("0x6e"),"convertInlineImageToBlock","join",(()=>!1)),n[ei("0x37")].registerCustomCallback("insertion","convertInlineImageToBlock",ei("0xc"),(([e])=>{const o=n[ei("0x37")][ei("0x66")]("insertion","",ei("0xc"));let s=e[ei("0x22")],r=e[ei("0x6f")];const i=t[ei("0x4e")][ei("0x54")][ei("0x6c")](s,"backward"),x=t[ei("0x4e")][ei("0x54")][ei("0x6c")](r,"forward");i[ei("0x73")]&&(s=i[ei("0x22")]),x[ei("0x73")]&&(r=x.end),o([t[ei("0x4e")][ei("0x25")](s,r)])})),n[ei("0x37")][ei("0x4c")](ei("0x32"),ei("0x29"),"chain",c),n._suggestionFactory[ei("0x4c")](ei("0x6e"),ei("0x29"),"chain",c)),t.plugins[ei("0x4a")]("ImageCaptionEditing")&&(n[ei("0x45")](ei("0x31"),((e,s)=>{const r=t[ei("0x62")].get(ei("0x63"));let i=o[ei("0x5a")](t.model[ei("0x42")].selection),x=r[ei("0x77")](i);t[ei("0x4e")].change((()=>{if(x)return void n[ei("0x6d")](t[ei("0x4e")][ei("0x78")](x));const a=o[ei("0x2")](i);e(s),i=o[ei("0x5a")](t.model.document[ei("0x20")]),x=r[ei("0x77")](i),n[ei("0x1")](t.model[ei("0x78")](x),a?null:ei("0x1b"))}))})),n[ei("0x37")][ei("0x4c")](ei("0x6e"),ei("0x1b"),"chain",c)),t[ei("0x62")][ei("0x4a")]("ImageStyleEditing")){n.enableCommand(ei("0x38"),((s,r)=>{const i=t[ei("0x62")][ei("0x1c")](ei("0x19")).me,x=t.commands[ei("0x1c")](ei("0x38"));let a=o[ei("0x5a")](t[ei("0x4e")][ei("0x42")][ei("0x20")]),c=t[ei("0x4e")][ei("0x78")](a),l=x.value;if(l==r[ei("0x3")])return;const d={commandName:ei("0x38"),commandParams:[r],formatGroupId:(0,e.uid)()};t[ei("0x4e")][ei("0x10")]((()=>{if(n[ei("0x4b")]().filter((t=>t[ei("0x11")]&&i==t.author&&(ei("0x32")==t.type||ei("0x4")==t[ei("0x5b")])&&(ei("0x4f")==t[ei("0xf")]||"imageStylePostApply"==t[ei("0xf")])&&t[ei("0x15")]()[ei("0x65")](c)))[ei("0x8")]((t=>n[ei("0x72")](t.head))),a=o[ei("0x5a")](t[ei("0x4e")].document[ei("0x20")]),c=t[ei("0x4e")][ei("0x78")](a),x[ei("0x50")](),t[ei("0x3b")][ei("0x1c")]("imageTypeInline")[ei("0x50")](),t.commands[ei("0x1c")](ei("0x24"))[ei("0x50")](),l=x.value,l!=r.value)return o[ei("0x64")](a)&&x.shouldConvertImageType(r.value,a)?(s({...r,setImageSizes:!1}),a=o[ei("0x5a")](t.model[ei("0x42")][ei("0x20")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],ei("0x4f"))):void(o[ei("0x2")](a)?n.markBlockFormat(a,d,[],ei("0x12")):n[ei("0x71")](c,d,ei("0x12")))}))}));for(const e of t.plugins.get(ei("0x17"))[ei("0x0")])s[e[ei("0x1e")]]=e[ei("0x9")][ei("0xb")]();n._suggestionFactory[ei("0x4c")]("formatBlock",ei("0x4f"),ei("0x13"),(()=>!1)),n[ei("0x37")][ei("0x4c")](ei("0x32"),ei("0x12"),ei("0x13"),(()=>!1)),n._suggestionFactory.registerCustomCallback(ei("0x4"),ei("0x12"),ei("0x13"),(()=>!1)),n[ei("0x37")][ei("0x4c")](ei("0x32"),ei("0x4f"),ei("0x3e"),(([t])=>{o.setImageNaturalSizeAttributes(t[ei("0x2f")]())})),n._suggestionFactory.registerCustomCallback("formatBlock",ei("0x4f"),ei("0xc"),((t,e)=>{n[ei("0x37")][ei("0x66")]("formatBlock","",ei("0x3e"))(t,{commandName:e[ei("0x58")],commandParams:e[ei("0x1a")]})})),n[ei("0x37")][ei("0x4c")]("formatBlock",ei("0x4f"),"chain",c)}const x=[{type:ei("0x32"),subType:"imageStylePreApply"},{type:"insertion",subType:ei("0x1b")},{type:ei("0x32"),subType:ei("0x29")},{type:ei("0x6e"),subType:ei("0x29")}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t[ei("0x5b")]==e&&t[ei("0xf")]==n)),r=x[ei("0x5d")]((({type:t,subType:n})=>e[ei("0x5b")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[ei("0x15")](),a=e[ei("0x15")]();if((0==s||1==s)&&2==r&&i[ei("0x53")](a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,ei("0x6e"))[ei("0xa")]((({suggestion:t,meta:e})=>e[ei("0x7")]&&ei("0x29")==t[ei("0xf")]));if(t.length>1&&a[ei("0x6f")][ei("0x65")](i[ei("0x22")]))return!0;if(1==t[ei("0x49")]&&(i[ei("0x22")][ei("0x65")](a[ei("0x6f")])||i.end[ei("0x65")](a[ei("0x22")])))return!0}if(3==s&&3==r&&i[ei("0x22")].isBefore(a[ei("0x22")])){const t=i[ei("0x6f")][ei("0x28")],e=a[ei("0x22")][ei("0x61")];return o[ei("0x2")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[ei("0x4e")][ei("0x42")].registerPostFixer((()=>{let e=!1;const s=Array[ei("0x44")](t.model.document[ei("0x51")][ei("0x70")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[ei("0x56")](t);if("suggestion"==s&&n[ei("0x67")](a)){if(ei("0x32")==i&&(ei("0x4f")==x||ei("0x12")==x)){const t=n[ei("0x1f")](a);if(r[ei("0x2a")]){const s=t[ei("0x15")]()[ei("0x2f")]();if(o[ei("0x2")](s))continue;n[ei("0x72")](t),e=!0}}if(ei("0x6e")==i&&"imageCaption"==x&&!r[ei("0x2a")]){const t=n[ei("0x1f")](a);t[ei("0x55")]&&t[ei("0x55")][ei("0x11")]&&(n.discardSuggestion(t[ei("0x55")]),e=!0)}}}return e})),t[ei("0x62")][ei("0x4a")](ei("0x3d"))&&n[ei("0x45")]("resizeImage",((e,s)=>{const r=o[ei("0x5a")](t.model[ei("0x42")][ei("0x20")]);r[ei("0x40")](ei("0x5e"))!=s[ei("0x2d")]&&t[ei("0x4e")][ei("0x10")]((()=>{n[ei("0x2e")](r,{commandName:ei("0x3c"),commandParams:[s]})}))})),t[ei("0x62")][ei("0x4a")](ei("0x46"))&&n[ei("0x45")]("imageTextAlternative",((e,s)=>{const r=o[ei("0x5a")](t[ei("0x4e")][ei("0x42")][ei("0x20")]);(r[ei("0x21")](ei("0x60"))?r[ei("0x40")](ei("0x60")):"")!=s.newValue&&t[ei("0x4e")][ei("0x10")]((()=>{n.markBlockFormat(r,{commandName:ei("0x33"),commandParams:[s]})}))})),n[ei("0x5c")][ei("0x26")]((t=>{if(x[ei("0x69")]((({type:e,subType:n})=>t[ei("0x5b")]==e&&t[ei("0xf")]==n)))return t[ei("0x6a")]?{}:void 0})),n[ei("0x5c")][ei("0x26")]((t=>{if(ei("0x6e")==t[ei("0x5b")]||"deletion"==t[ei("0x5b")]){const e=t[ei("0x2f")]();if(e&&e.is(ei("0x68"),ei("0x36")))return{type:ei("0x6e")==t[ei("0x5b")]?ei("0x14"):ei("0x41"),element:e,quantity:1}}})),n[ei("0x5c")][ei("0x26")]((t=>ei("0x32")==t[ei("0x5b")]&&ei("0x29")==t[ei("0xf")]?{type:ei("0x16"),content:ei("0x2c")}:ei("0x32")==t.type&&ei("0x43")==t[ei("0xf")]?{type:ei("0x16"),content:ei("0x79")}:void 0)),n[ei("0x5c")][ei("0x26")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e[ei("0x58")]){const t=e[ei("0x35")][0].value;return n=ei("0x1d")===t?Yo(r,ei("0x52")):s[t]||t,{type:"format",content:Yo(r,ei("0x76"),n)}}if(ei("0x33")==e[ei("0x58")]){const t=e.commandParams[0].newValue;return t?{type:ei("0x16"),content:Yo(r,ei("0x6b"),'"'+t+'"')}:{type:"format",content:Yo(r,ei("0xe"))}}if(ei("0x3c")==e[ei("0x58")]){const t=e[ei("0x35")][0][ei("0x2d")];return t?{type:ei("0x16"),content:Yo(r,ei("0x27"),t)}:{type:"format",content:Yo(r,ei("0x18"))}}}var n}))}}const oi=["src","get","selection","afterInit","getSuggestionCallback","editor","formatBlock","has","author","registerCustomCallback","enableCommand","change","plugins","getSelectedElement","handleReplaceImageCommand","discard","model","data","getContainedElement","TrackChangesEditing","accept","replaceImageSource","commandParams","handleSuggestionDescription","commandName","registerDescriptionCallback","document","markBlockFormat","_descriptionFactory","locale","Users","subType","_suggestionFactory","getSuggestions"];var si,ri;si=oi,ri=488,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{[ii("0x19")](){if(!this[ii("0x1b")].plugins[ii("0x1d")]("ImageEditing"))return;const t=this[ii("0x1b")][ii("0x0")][ii("0x17")](ii("0x7"));t[ii("0x20")](ii("0x9"),((t,e)=>this[ii("0x2")](t,e))),t[ii("0x14")][ii("0x1f")](ii("0x1c"),"replaceImageSource",ii("0x8"),t._suggestionFactory[ii("0x1a")](ii("0x1c"),null,ii("0x3"))),t[ii("0x14")][ii("0x1f")]("formatBlock","replaceImageSource","discard",t[ii("0x14")][ii("0x1a")](ii("0x1c"),null,ii("0x8"))),t[ii("0x10")][ii("0xd")]((t=>this[ii("0xb")](t)))}[ii("0x2")](t,e){const n=this[ii("0x1b")][ii("0x0")].get("TrackChangesEditing"),o=this[ii("0x1b")][ii("0x4")][ii("0xe")][ii("0x18")][ii("0x1")]();this[ii("0x1b")].model[ii("0x21")]((()=>{let s=o.getAttribute(ii("0x16"));const r=this.editor.plugins[ii("0x17")](ii("0x12")).me;for(const t of n[ii("0x15")]({skipNotAttached:!0})){const e=t[ii("0x6")]();if("replaceImageSource"===t[ii("0x13")]&&e===o){t[ii("0x1e")]!==r&&t[ii("0x3")](),s=t[ii("0x5")][ii("0xa")][0].source;break}}t(e),n[ii("0xf")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ii("0x9"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&ii("0x9")===e[ii("0xc")]){const t="*Format:* replace image URL";return{type:"format",content:Yo(this[ii("0x1b")][ii("0x11")],t)}}}}const ai=["trackChanges","_setSuggestionData","bind","listenTo","plugins","_trackChangesValueDuringImport","value","_handleImportedData","forEach","TrackChangesEditing","importWord","Users","_trackChangesExecuted","dataInsert","editor","lowest","execute","commands","get"];var ci,li;ci=ai,li=398,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{constructor(t){super(t),this[di("0x6")]=!1,this[di("0xd")]=!1}afterInit(){const t=this.editor,e=t.commands.get(di("0xb")),n=t.commands.get("trackChanges");e&&(e.on(di("0x11"),((t,[,e])=>{this._trackChangesValueDuringImport=n.value,e.collaboration_features.track_changes=!this[di("0x6")]}),{priority:"high"}),this[di("0x4")](e,di("0xe"),this._handleImportedData[di("0x3")](this)),this.listenTo(e,di("0xe"),(()=>{this[di("0xd")]&&(n[di("0x11")](),this._trackChangesExecuted=!1)}),{priority:di("0x10")}),t[di("0x5")][di("0x0")](di("0xa")).enableCommand(di("0xb")))}[di("0x8")](t,e){const{suggestions:n}=e,o=this[di("0xf")][di("0x12")][di("0x0")](di("0x1")),s=o[di("0x7")];this[di("0x6")]!==s&&(o[di("0x11")](),this._trackChangesExecuted=!0),n&&n[di("0x9")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[di("0xf")][di("0x5")].get(di("0xc")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:di("0xb")}}};this[di("0xf")][di("0x5")][di("0x0")](di("0xa"))[di("0x2")](s)}))}}const gi=["selection","enableCommand","change","getSelectedBlocks","schema","plugins","filter","_descriptionFactory","getItems","model","from","format","editor","commandName","get","outdent","checkAttribute","IndentBlock","indentBlock","getItemLabel","*Outdent:* %0","registerDescriptionCallback","outdentBlock","has","TrackChangesEditing"];var mi,fi;mi=gi,fi=135,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{afterInit(){const t=this.editor,e=t[hi("0x14")][hi("0x4")](hi("0xe"));t.plugins.has("IndentEditing")&&(e[hi("0x10")]("indent"),e.enableCommand(hi("0x5")));const n=t.locale;if(t.plugins[hi("0xd")](hi("0x7"))){for(const n of[hi("0x8"),hi("0xc")])e[hi("0x10")](n,(()=>{const o=Array[hi("0x0")](this[hi("0x2")][hi("0x18")].document[hi("0xf")][hi("0x12")]())[hi("0x15")]((t=>this.editor[hi("0x18")][hi("0x13")][hi("0x6")](t,"blockIndent")));t[hi("0x18")][hi("0x11")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[hi("0x16")][hi("0xb")]((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o[hi("0x3")]&&"outdentBlock"!=o.commandName)return;const s=t[hi("0x17")]()[0],r=e[hi("0x16")][hi("0x9")](s);return hi("0x8")==o[hi("0x3")]?{type:hi("0x1"),content:Yo(n,"*Indent:* %0",r)}:hi("0xc")==o[hi("0x3")]?{type:hi("0x1"),content:Yo(n,hi("0xa"),r)}:void 0}))}}}var bi,Ei,_i=["init","get","plugins","requires","TrackChangesEditing","input","editor"];bi=_i,Ei=142,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);var Ti=function(t,e){return _i[t-=0]};class Ci extends t.Plugin{static get[Ti("0x1")](){return[Js.Input]}[Ti("0x5")](){this[Ti("0x4")][Ti("0x0")][Ti("0x6")](Ti("0x2")).enableCommand(Ti("0x3"))}}const yi=["commandParams","LinkEditing","isCollapsed","format","registerDescriptionCallback","link","markInlineFormat","commandName","enableCommand","model","unlink","*Remove link*","locale","selection","_descriptionFactory","afterInit","TrackChangesEditing","document","change","getFirstPosition","editor","*Set link:* %0","hasAttribute","plugins","linkHref","getAttribute"];var ki,Ai;ki=yi,Ai=111,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x8")](){const t=this[vi("0xd")];if(!t[vi("0x10")].has(vi("0x14")))return;const e=t[vi("0x10")].get(vi("0x9"));e[vi("0x1")](vi("0x18"),((n,o)=>{const s=t[vi("0x2")][vi("0xa")][vi("0x6")];let r=[];if(s[vi("0x15")]){if(!s[vi("0xf")](vi("0x11")))return void n(o);{const e=(0,Js.findAttributeRange)(s[vi("0xc")](),vi("0x11"),s[vi("0x12")]("linkHref"),t.model);r=[e]}}else r=Array.from(s.getRanges());t[vi("0x2")][vi("0xb")]((()=>{for(const t of r)e[vi("0x19")](t,{commandName:vi("0x18"),commandParams:[o]})}))})),e[vi("0x1")]("unlink",(()=>{const n=this.editor[vi("0x2")],o=n[vi("0xa")][vi("0x6")];n[vi("0xb")]((()=>{let n=[];n=o.isCollapsed?[(0,Js.findAttributeRange)(o[vi("0xc")](),vi("0x11"),o[vi("0x12")]("linkHref"),t[vi("0x2")])]:Es(vi("0x11"),o.getFirstRange(),t[vi("0x2")]);for(const t of n)e[vi("0x19")](t,{commandName:vi("0x3"),commandParams:[]})}))})),e[vi("0x7")][vi("0x17")]((e=>{const{data:n}=e,o=t[vi("0x5")];if(n){if("link"==n[vi("0x0")]){const t=n[vi("0x13")][0];return{type:vi("0x16"),content:Yo(o,vi("0xe"),'"'+t+'"')}}return vi("0x3")==n[vi("0x0")]?{type:vi("0x16"),content:Yo(o,vi("0x4"))}:void 0}}))}}const Si=["getSelectedBlocks","_selectedElements","format","editor","end","bulleted","get","paragraph","ELEMENT_LIST_ITEM","parent","_descriptionFactory","schema","locale","element","replace","checkTodoList","document","ELEMENT_BULLETED_LIST","push","slice","has","*Change to:* %0","numbered","listType","blockName","execute","TodoListEditing","commands","bulletedList","createPositionAt","outdentList","selection","numberedList","enableCommand","from","afterInit","markBlockFormat","value","name","add","listIndent","registerDescriptionCallback","commandParams","nextSibling","createRange","getAttribute","isObject","plugins","length","TrackChangesEditing","*Check item*","before","registerElementLabel","findIndex","List","indentList","todoList","commandName","previousSibling","model","*Uncheck item*","listItem","change","todoListChecked"];var Ii,Li;Ii=Si,Li=203,function(t){for(;--t;)Ii.push(Ii.shift())}(++Li);const Ni=function(t,e){return Si[t-=0]};class Mi extends t.Plugin{[Ni("0x18")](){const t=this[Ni("0x38")],e=t[Ni("0x1")];if(!t.plugins[Ni("0x9")]("ListEditing"))return;const n=t[Ni("0x24")][Ni("0x3b")](Ni("0x26")),o=t[Ni("0x24")].has(Ni("0xf"));function s(e){return()=>{const o=t.model[Ni("0x5")][Ni("0x14")],s=t.commands[Ni("0x3b")](e);if(s[Ni("0x1a")])return void t[Ni("0xe")](Ni("0x3c"),{});const r=e[Ni("0x8")](0,-4),i=function(t,e,n){let o=Array[Ni("0x17")](t).filter((t=>{return e=t,(o=n).checkChild(e[Ni("0x3e")],"listItem")&&!o[Ni("0x23")](e);var e,o}));o=o.filter((t=>!t.is(Ni("0x2"),Ni("0x32"))||t[Ni("0x22")](Ni("0xc"))!=e));const s=new Set;for(const t of o)t.is("element",Ni("0x32"))?s[Ni("0x1c")](wi(t)):s.add(t);return Array[Ni("0x17")](s)}(o[Ni("0x35")](),r,t[Ni("0x30")][Ni("0x0")]);t.model[Ni("0x33")]((()=>{for(const t of i)n[Ni("0x19")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:Ni("0xd")},Oi(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ni("0x17")](t);const n=e[Ni("0x2a")]((t=>Ni("0x32")!=t[Ni("0x1b")]));return n>-1&&(e=e.slice(0,n)),e}(t[Ni("0x30")][Ni("0x5")].selection[Ni("0x35")]()),s=t.model[Ni("0x21")](t.model[Ni("0x12")](o[0],Ni("0x28")),t[Ni("0x30")].createPositionAt(o[o[Ni("0x25")]-1],Ni("0x39")));t[Ni("0x30")][Ni("0x33")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[Ni("0x20")];for(;t&&t[Ni("0x22")](Ni("0x1d"))>n.getAttribute(Ni("0x1d"));)e[Ni("0x1c")](t),t=t[Ni("0x20")]}return Array[Ni("0x17")](e)}(o))}))}}n[Ni("0x16")]("numberedList",s("numberedList")),n[Ni("0x16")](Ni("0x11"),s("bulletedList")),o&&n.enableCommand(Ni("0x2d"),s("todoList")),n[Ni("0x16")](Ni("0x2c"),r(Ni("0x2c"))),n[Ni("0x16")](Ni("0x13"),r(Ni("0x13"))),o&&n[Ni("0x16")](Ni("0x4"),(()=>{const e=t[Ni("0x10")][Ni("0x3b")](Ni("0x4")),o=Array[Ni("0x17")](e[Ni("0x36")]);o.filter((t=>t[Ni("0x22")](Ni("0x34"))!=e[Ni("0x1a")])),t[Ni("0x30")][Ni("0x33")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[Ni("0x1a")]}]})}))})),n[Ni("0x3f")][Ni("0x29")](Ni("0x32"),(t=>Yo(e,Ni("0x3d"),t))),n._descriptionFactory[Ni("0x1e")]((t=>{const{data:n}=t;if(n){if(Ni("0x15")==n[Ni("0x2e")]||Ni("0x11")==n[Ni("0x2e")]||"todoList"==n[Ni("0x2e")])switch(n[Ni("0x2e")][Ni("0x3")](Ni("0x2b"),"")){case Ni("0x3a"):return o(Yo(e,Ni("0x6")));case Ni("0xb"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case"todo":return o(Yo(e,"ELEMENT_TODO_LIST"))}if(Ni("0x2c")==n[Ni("0x2e")])return{type:"format",content:Yo(e,"*Indent:* %0",Yo(e,Ni("0x3d")))};if(Ni("0x13")==n[Ni("0x2e")])return{type:Ni("0x37"),content:Yo(e,"*Outdent:* %0",Yo(e,Ni("0x3d")))};if(Ni("0x4")==n[Ni("0x2e")])return n[Ni("0x1f")][0].forceValue?{type:"format",content:Yo(e,Ni("0x27"))}:{type:Ni("0x37"),content:Yo(e,Ni("0x31"))}}function o(t){return{type:Ni("0x37"),content:Yo(e,Ni("0xa"),t)}}}))}}function wi(t){const e=t[Ni("0x22")](Ni("0x1d"));if(0==e)return t;let n=t;for(;t[Ni("0x2f")]&&t[Ni("0x2f")].is("element",Ni("0x32"));){const o=t.previousSibling[Ni("0x22")](Ni("0x1d"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[Ni("0x2f")]}return n}function Oi(t){const e=[];if(t.is(Ni("0x2"),Ni("0x32"))&&t[Ni("0x22")](Ni("0x1d"))>0){let n=t[Ni("0x20")];for(;n&&Ni("0x32")==n[Ni("0x1b")]&&n[Ni("0x22")](Ni("0x1d"))==t[Ni("0x22")](Ni("0x1d"));)e[Ni("0x7")](n),n=n[Ni("0x20")]}return e}const Fi=["_LIST_","createRange","listStart","map","listStyle","getSiblingNodes","_getTranslationKeyForListStyle","backward","document","startIndex","styles","markMultiRangeBlockFormat","get","listType","element","change","getFirstPosition","commandName","format","reversed","config","listItem","_descriptionFactory","*Change to:* %0","handleListStartCommand","handleListStyleCommand","getListTypeFromListStyleType","unshift","commandParams","createPositionAt","plugins","TrackChangesEditing","_getSuggestionBlocksForListStyle","getLastPosition","editor","handleDescriptions","filter","enableCommand","push","length","from","handleListReversedCommand","forward","toUpperCase","type","*Format:* set order to reversed","afterInit","*Format:* set start index to %0","getSelectedBlocks","listReversed","flat","_getSuggestionBlocks","bind","replace","selection","getAttribute","parent","locale","numbered","model","ListUtils"];var Di,Pi;Di=Fi,Pi=492,function(t){for(;--t;)Di.push(Di.shift())}(++Pi);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x2a")](){if(!this[Bi("0x1e")][Bi("0x1a")].has("ListPropertiesEditing"))return;const t=this[Bi("0x1e")][Bi("0x10")].get("list.properties"),e=this[Bi("0x1e")].plugins[Bi("0x8")](Bi("0x1b"));t[Bi("0x6")]&&e[Bi("0x21")](Bi("0x0"),this.handleListStyleCommand[Bi("0x30")](this)),t.reversed&&e[Bi("0x21")](Bi("0x2d"),this[Bi("0x25")][Bi("0x30")](this)),t[Bi("0x5")]&&e.enableCommand(Bi("0x3b"),this[Bi("0x14")][Bi("0x30")](this)),e[Bi("0x12")].registerDescriptionCallback(this[Bi("0x1f")][Bi("0x30")](this))}[Bi("0x15")](t,e={}){const n=this[Bi("0x1e")].plugins[Bi("0x8")](Bi("0x1b")),o=this._getSuggestionBlocksForListStyle();this[Bi("0x1e")].model[Bi("0xb")]((()=>{n[Bi("0x7")](o,{commandName:Bi("0x0"),commandParams:[{type:e[Bi("0x28")]}],formatGroupId:Bi("0x0")})}))}handleListReversedCommand(t,e={}){const n=this[Bi("0x1e")].plugins.get(Bi("0x1b")),o=this[Bi("0x2f")]((t=>t.is("element","listItem")&&Bi("0x36")===t[Bi("0x33")](Bi("0x9"))));if(o[Bi("0x23")]<1)return;const s=o[Bi("0x3c")]((t=>this.editor[Bi("0x37")][Bi("0x3a")](this[Bi("0x1e")][Bi("0x37")][Bi("0x19")](t,"before"),this[Bi("0x1e")][Bi("0x37")][Bi("0x19")](t,0))));this[Bi("0x1e")][Bi("0x37")][Bi("0xb")]((()=>{n[Bi("0x7")](s,{commandName:"listReversed",commandParams:[{reversed:e[Bi("0xf")]}],formatGroupId:"listReversed"})}))}[Bi("0x14")](t,e={}){const n=this[Bi("0x1e")][Bi("0x1a")][Bi("0x8")](Bi("0x1b")),o=this[Bi("0x2f")]((t=>t.is("element",Bi("0x11"))&&Bi("0x36")===t.getAttribute("listType")));if(o.length<1)return;const s=o.map((t=>this[Bi("0x1e")][Bi("0x37")][Bi("0x3a")](this[Bi("0x1e")].model.createPositionAt(t,"before"),this[Bi("0x1e")].model[Bi("0x19")](t,0))));this.editor[Bi("0x37")][Bi("0xb")]((()=>{n[Bi("0x7")](s,{commandName:"listStart",commandParams:[{startIndex:e[Bi("0x5")]}],formatGroupId:"listStart"})}))}[Bi("0x1f")](t){const e=this[Bi("0x1e")][Bi("0x35")],{data:n}=t;if(!n)return;let o,s;switch(n[Bi("0xd")]){case Bi("0x0"):o=Bi("0x13"),s={type:Bi("0xe"),content:Yo(e,o,Yo(e,this[Bi("0x2")](n[Bi("0x18")][0][Bi("0x28")])))};break;case"listReversed":o=n[Bi("0x18")][0][Bi("0xf")]?Bi("0x29"):"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case Bi("0x3b"):o=Bi("0x2b"),s={type:Bi("0xe"),content:Yo(e,o,n.commandParams[0].startIndex)}}return s}[Bi("0x1c")](){var t,e,n,o;const s=this[Bi("0x1e")].plugins[Bi("0x8")](Bi("0x38"));let r=Array[Bi("0x24")](this[Bi("0x1e")][Bi("0x37")][Bi("0x4")][Bi("0x32")][Bi("0x2c")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element",Bi("0x11")))&&r[Bi("0x17")](...s[Bi("0x1")](this[Bi("0x1e")][Bi("0x37")].document[Bi("0x32")][Bi("0xc")](),Bi("0x3"))),(null===(e=r[r[Bi("0x23")]-1])||void 0===e?void 0:e.is(Bi("0xa"),Bi("0x11")))&&r[Bi("0x22")](...s[Bi("0x1")](this.editor.model[Bi("0x4")].selection[Bi("0x1d")](),Bi("0x26"))),r=[...new Set(r)],(null===(o=null===(n=this[Bi("0x1e")][Bi("0x37")][Bi("0x4")][Bi("0x32")][Bi("0xc")]())||void 0===n?void 0:n[Bi("0x34")])||void 0===o?void 0:o.is(Bi("0xa"),Bi("0x11")))&&(r=r.filter((t=>t.is(Bi("0xa"),Bi("0x11"))))),r}[Bi("0x2f")](t){const e=this[Bi("0x1e")][Bi("0x1a")][Bi("0x8")](Bi("0x38"));let n=Array[Bi("0x24")](this[Bi("0x1e")].model[Bi("0x4")][Bi("0x32")][Bi("0x2c")]())[Bi("0x20")](t).map((t=>{const n=this.editor.model[Bi("0x19")](t,0);return[...e[Bi("0x1")](n,Bi("0x3")),...e[Bi("0x1")](n,"forward")]}))[Bi("0x2e")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this[Bi("0x1e")].plugins[Bi("0x8")](Bi("0x38"))[Bi("0x16")](t).toUpperCase()+Bi("0x39")+t[Bi("0x27")]()[Bi("0x31")](/-/g,"_")}}const Ui=["elementToElement","_descriptionFactory","dataDowncast","div","media","has","locale","for","MediaEmbedEditing","enableCommand","createEmptyElement","high","downcastDispatcher","mediaEmbed","plugins","TrackChangesEditing","data","showSuggestionHighlights","options","get","ELEMENT_MEDIA","attribute:url:media","conversion","editor"];var Gi,Hi;Gi=Ui,Hi=170,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{afterInit(){const t=this[zi("0x15")];if(!t[zi("0xc")][zi("0x3")](zi("0x6")))return;const e=t[zi("0xc")][zi("0x11")](zi("0xd")),n=t[zi("0x4")];e[zi("0x7")](zi("0xb")),e[zi("0x17")].registerElementLabel(zi("0x2"),(t=>Yo(n,zi("0x12"),t))),t[zi("0x14")][zi("0x5")](zi("0x0"))[zi("0x16")]({model:zi("0x2"),view:(t,{writer:e,options:n})=>{if(n[zi("0xf")])return e[zi("0x8")](zi("0x1"))},converterPriority:zi("0x9")}),t[zi("0xe")][zi("0xa")].on(zi("0x13"),((t,e,n)=>{n[zi("0x10")][zi("0xf")]&&t.stop()}),{priority:zi("0x9")})}}const Vi=["mention","editor","enableCommand","MentionEditing","plugins","afterInit"];var Ki,qi;Ki=Vi,qi=128,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x3")](){const t=this[Xi("0x5")];t[Xi("0x2")].has(Xi("0x1"))&&t[Xi("0x2")].get("TrackChangesEditing")[Xi("0x0")](Xi("0x4"))}}const Ji=["editor","plugins","enableCommand","afterInit","get","pageBreak","ELEMENT_PAGE_BREAK","_descriptionFactory","PageBreakEditing","registerElementLabel","has"];var Qi,Zi;Qi=Ji,Zi=245,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x0")](){const t=this[Yi("0x8")];if(!t[Yi("0x9")][Yi("0x7")](Yi("0x5")))return;t[Yi("0x9")][Yi("0x1")]("TrackChangesEditing")[Yi("0xa")](Yi("0x2"));const e=t.plugins.get("TrackChangesEditing"),n=t.locale;e[Yi("0x4")][Yi("0x6")](Yi("0x2"),(t=>Yo(n,Yi("0x3"),t)))}}const ex=["*Change to:* %0","getItemLabel","has","paragraph","ck-suggestion-marker--active","markerName","ELEMENT_PARAGRAPH","isTouching","parent","format","mapper","from","writer","span","end","markBlockFormat","consumable","highest","change","markerRange","checkChild","activeMarkers","schema","nodeAfter","data","_descriptionFactory","createUIElement","insertion","model","toViewPosition","get","type","addMarker:suggestion:insertion","isLimit","$text","afterInit","ck-suggestion-marker-split","getSelectedBlocks","registerElementLabel","consume","plugins","document","filter","name","commandName","isBlock","Paragraph","selection","addClass","registerDescriptionCallback","editing","TrackChangesEditing","editor","enableCommand","isObject","showSuggestionHighlights","bindElementToMarker","options"];var nx,ox;nx=ex,ox=199,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{[sx("0xa")](){const t=this[sx("0x1b")];if(!t[sx("0xf")][sx("0x23")](sx("0x15")))return;const e=t.locale,n=t.plugins[sx("0x5")]("TrackChangesEditing");n[sx("0x0")][sx("0xd")](sx("0x24"),(t=>Yo(e,sx("0x27"),t))),n.enableCommand("paragraph",((e,o={})=>{const s=t[sx("0x3")][sx("0x10")],r=o[sx("0x16")]||s[sx("0x16")],i=Array[sx("0x2c")](r[sx("0xc")]())[sx("0x11")]((t=>{return e=t,(n=this.editor[sx("0x3")].schema)[sx("0x35")](e[sx("0x29")],sx("0x24"))&&!n[sx("0x1d")](e)&&sx("0x24")!=e.name;var e,n}));t.model[sx("0x33")]((()=>{for(const t of i)n[sx("0x30")](t,{commandName:sx("0x24"),commandParams:[],formatGroupId:"blockName"},_s(t))}))})),n[sx("0x0")][sx("0x18")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[sx("0x13")])return{type:sx("0x2a"),content:Yo(e,sx("0x21"),Yo(e,sx("0x27")))}})),n[sx("0x1c")]("insertParagraph"),t[sx("0x19")].downcastDispatcher.on(sx("0x7"),ix(t),{priority:sx("0x32")}),t[sx("0x39")].downcastDispatcher.on(sx("0x7"),((e,n,o)=>{o[sx("0x20")][sx("0x1e")]&&ix(t,{showActiveMarker:!1})(e,n,o)}),{priority:sx("0x32")});const o=n[sx("0x0")];o[sx("0x18")]((n=>{if(sx("0x2")!==n[sx("0x6")])return;const{start:s,end:r}=n.getFirstRange();if(!s[sx("0x28")](r)||!s.nodeAfter)return;const i=t.model[sx("0x37")],x=s.nodeAfter;return i.isBlock(x)&&!i[sx("0x8")](x)&&i[sx("0x35")](x,sx("0x9"))?{type:sx("0x2"),content:Yo(e,"*Insert:* %0",o[sx("0x22")](x,1))}:void 0}))}}function ix(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[sx("0xf")][sx("0x5")](sx("0x1a")),i=o[sx("0x34")].start,x=o[sx("0x34")][sx("0x2f")],a=t.model[sx("0x37")];if(!i[sx("0x28")](x)||!i[sx("0x38")])return;const c=i[sx("0x38")];if(a[sx("0x14")](c)&&!a[sx("0x8")](c)&&a[sx("0x35")](c,"$text")){if(!s[sx("0x31")][sx("0xe")](o.markerRange,n[sx("0x12")]))return;const t=s[sx("0x2d")][sx("0x1")](sx("0x2e"),{class:sx("0xb")}),i=s[sx("0x2b")][sx("0x4")](x);e&&r[sx("0x36")].includes(o[sx("0x26")])&&s[sx("0x2d")][sx("0x17")](sx("0x25"),t),s.writer.insert(i,t),s[sx("0x2b")][sx("0x1f")](t,o[sx("0x26")])}}}const xx=["RemoveFormatEditing","has","get","isFormatting","format","TrackChangesEditing","change","removeFormat","*Remove all formatting*","plugins","schema","editor","markInlineFormat","getAttributes","afterInit","isCollapsed","_descriptionFactory","model","getItems"];var ax,cx;ax=xx,cx=235,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class dx extends t.Plugin{[lx("0x7")](){const t=this[lx("0x4")];if(!t[lx("0x2")][lx("0xd")](lx("0xc")))return;const e=t[lx("0x2")][lx("0xe")](lx("0x11"));e.enableCommand(lx("0x0"),(n=>{const o=t[lx("0xa")].document.selection;o[lx("0x8")]?n():t[lx("0xa")][lx("0x12")]((()=>{const n=Array.from(o.getRanges());for(const o of n)for(const n of o[lx("0xb")]())ux(n,t[lx("0xa")][lx("0x3")])&&e[lx("0x5")](t[lx("0xa")].createRangeOn(n),{commandName:"removeFormat",commandParams:[]})}))})),e[lx("0x9")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&lx("0x0")==n.commandName)return{type:lx("0x10"),content:Yo(t.locale,lx("0x1"))}}))}}function ux(t,e){for(const[n]of t[lx("0x6")]()){const t=e.getAttributeProperties(n);if(t&&t[lx("0xf")])return!0}return!1}const gx=["get","editor","trackChanges","discardSelectedSuggestions","has","goToNextRestrictedEditingException","enableCommand","acceptSelectedSuggestions","acceptAllSuggestions","discardAllSuggestions","goToPreviousRestrictedEditingException"];var mx,fx;mx=gx,fx=107,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{afterInit(){const t=this[hx("0x4")];if(!t.plugins[hx("0x7")]("RestrictedEditingModeEditing"))return;const e=t.plugins[hx("0x3")]("TrackChangesEditing");e[hx("0x9")](hx("0x2")),e.enableCommand(hx("0x8"));const n=t.plugins[hx("0x3")]("RestrictedEditingModeEditing");n[hx("0x9")](hx("0x5")),n[hx("0x9")]("acceptSuggestion"),n.enableCommand("discardSuggestion"),n[hx("0x9")](hx("0x0")),n[hx("0x9")](hx("0x1")),n[hx("0x9")](hx("0xa")),n.enableCommand(hx("0x6"))}}const bx=["locale","model","get","getItems","markerRange","insert","markerName","showSuggestionHighlights","enableCommand","editor","options","element","addMarker:suggestion:insertion","writer","_descriptionFactory","registerElementLabel","includes","TrackChangesEditing","softBreak","test","editing","high","createPositionBefore","data","bindElementToMarker","plugins","span","merge","deletion","requires","addMarker:suggestion:deletion","addMarker:suggestion","name","ELEMENT_LINE_BREAK","split","shiftEnter","downcastDispatcher","toViewPosition","mapper"];var Ex,_x;Ex=bx,_x=293,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const Tx=function(t,e){return bx[t-=0]};class Cx extends t.Plugin{static get[Tx("0x9")](){return[xr.ShiftEnter]}init(){const t=this[Tx("0x1c")],e=t[Tx("0x5")][Tx("0x15")](Tx("0x24"));e[Tx("0x1b")](Tx("0xf")),t[Tx("0x0")][Tx("0x10")].on(Tx("0x1f"),yx(t),{priority:"high"}),t[Tx("0x0")][Tx("0x10")].on(Tx("0xa"),yx(t),{priority:Tx("0x1")}),t[Tx("0x3")][Tx("0x10")].on(Tx("0xb"),((e,n,o)=>{o[Tx("0x1d")][Tx("0x1a")]&&yx(t,{showActiveMarker:!1})(e,n,o)})),e[Tx("0x21")][Tx("0x22")](Tx("0x25"),(e=>Yo(t[Tx("0x13")],Tx("0xd"),e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Tx("0x5")][Tx("0x15")](Tx("0x24"));if(!s.consumable[Tx("0x26")](o[Tx("0x17")],n[Tx("0xc")]))return;const i=t[Tx("0x14")];for(const t of o[Tx("0x17")][Tx("0x16")]()){if(!t.is(Tx("0x1e"),"softBreak"))continue;const n=Tx("0x8")==o[Tx("0x19")].split(":")[1]?Tx("0x7"):Tx("0xe"),x=s.writer.createUIElement(Tx("0x6"),{class:"ck-suggestion-marker-"+n}),a=s[Tx("0x12")][Tx("0x11")](i[Tx("0x2")](t));e&&r.activeMarkers[Tx("0x23")](o[Tx("0x19")])&&s[Tx("0x20")].addClass("ck-suggestion-marker--active",x),s[Tx("0x20")][Tx("0x18")](a,x),s[Tx("0x12")][Tx("0x4")](x,o[Tx("0x19")])}}}const kx=["get","commands","_descriptionFactory","has","restrictedEditingException","selection","document","format","from","forceValue","markInlineFormat","TrackChangesEditing","plugins","isCollapsed","editor","commandParams","value","change","FORMAT_RESTRICTED_ENABLED","locale","StandardEditingModeEditing","FORMAT_RESTRICTED_DISABLED","commandName"];var Ax,vx;Ax=kx,vx=320,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("0x10")],e=t.model,n=t[Rx("0x15")];if(!t[Rx("0xe")][Rx("0x5")](Rx("0x16")))return;const o=t[Rx("0xe")].get(Rx("0xd")),s=Rx("0x6"),r=t[Rx("0x3")][Rx("0x2")](s);o.enableCommand(s,((t,n={})=>{const i=e[Rx("0x8")][Rx("0x7")];if(i[Rx("0xf")])return void t(n);const x=void 0!==n.forceValue?n[Rx("0xb")]:!r[Rx("0x12")];e[Rx("0x13")]((()=>{const t=Array[Rx("0xa")](i.getRanges());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0xc")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0x4")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e[Rx("0x1")]==s)return e[Rx("0x11")][0][Rx("0xb")]?{type:"format",content:Yo(n,Rx("0x14"))}:{type:Rx("0x9"),content:Yo(n,Rx("0x0"))}}))}}const Ix=["get","has","getAncestors","includes","model","every","isCollapsed","normalizeConfig","element","add","styleName","value","StyleUtils","classes","isBlock","getAttribute","format","style.definitions","style","locale","config","name","getItems","getRanges","push","toLowerCase","_getRangesWithClasses","commandName","forceValue","markBlockFormat","find","plugins","from","*Remove format:* %0","enableCommand","editor","change","_getStyleDefinition","commandParams","enabledStyles","*Format:* %0","getDefinitionsForView"];var Lx,Nx;Lx=Ix,Nx=485,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{afterInit(){const t=this[Mx("0xc")];if(!t[Mx("0x8")][Mx("0x14")]("Style"))return;const e=t.commands[Mx("0x13")](Mx("0x25")),n=t[Mx("0x8")].get("TrackChangesEditing"),o=t[Mx("0x26")],s=t[Mx("0x8")].get("DataSchema"),r=t.plugins.get(Mx("0x1f"))[Mx("0x1a")](s,t[Mx("0x27")].get(Mx("0x24")));n[Mx("0xb")]("style",((o,{styleName:i})=>{const x=t[Mx("0x17")].document.selection,a=this[Mx("0xe")](i,r);if(!a)return;if(!e[Mx("0x10")][Mx("0x16")](i))return;if(x[Mx("0x19")]&&!a[Mx("0x21")])return void o({styleName:i});const c=!e[Mx("0x1e")].includes(a.name);if(a[Mx("0x21")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Mx("0x15")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Mx("0x16")](o[Mx("0x28")])){n[Mx("0x1c")](o);break}}return n}(x.getSelectedBlocks(),a.modelElements);t[Mx("0x17")][Mx("0xd")]((()=>{for(const t of e)n[Mx("0x6")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[Mx("0x9")](x[Mx("0x0")]());if(!c){const n=Array.from(s[Mx("0x12")](a[Mx("0x1b")],!1))[0].model,o=[];for(const s of e){const e=this[Mx("0x3")](t[Mx("0x17")],s,a[Mx("0x20")],n);o[Mx("0x1")](...e)}e=o}t[Mx("0x17")][Mx("0xd")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:Mx("0x25"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Mx("0x25")===e[Mx("0x4")])return e[Mx("0xf")][0][Mx("0x5")]?{type:Mx("0x23"),content:Yo(o,Mx("0x11"),e[Mx("0xf")][0][Mx("0x1d")][Mx("0x2")]())}:{type:Mx("0x23"),content:Yo(o,Mx("0xa"),e[Mx("0xf")][0][Mx("0x1d")][Mx("0x2")]())}}))}[Mx("0xe")](t,e){let n=e.block[Mx("0x7")]((e=>e[Mx("0x28")]===t));return n||(n=e.inline[Mx("0x7")]((e=>e[Mx("0x28")]===t))),n}[Mx("0x3")](t,e,n,o){const s=[];for(const r of e[Mx("0x29")]()){const e=r[Mx("0x22")](o);e&&n[Mx("0x18")]((t=>e[Mx("0x20")][Mx("0x16")](t)))&&s[Mx("0x1")](t.createRangeOn(r))}return s}}const Ox=["type","ELEMENT_TABLE","downcastDispatcher","$graveyard","removeTableRow","setSelection","getSelectionAffectedTableCells","values","span","maxRow","addMarker:suggestion","removeTableColumn","differ","join","TableEditing","nodeAfter","getChildren","last","ELEMENT_TABLE_COLUMN_WITH_TEXT","filter","addRange","min","TrackChangesEditing","insertTable","order","createPositionAt","isIntersectingWithRange","fromRange","model","addClass","detach","element","rootName","getRowIndexes","_getCoordsForCells","get","TableUtils","insertTableColumnLeft","end","registerElementLabel","position","document","ELEMENT_TABLE_ROW","selectTableColumn","push","findAncestor","enableCommand","markMultiRangeInsertion","suggestion","_acceptFormatSuggestionCallbackFactory","rowspan","insertion","map","maxColumn","tableCell","refresh","*Remove:* %0","createRangeOn","$textProxy","_descriptionFactory","substr","getCellLocation","enqueueChange","afterInit","insertTableColumnRight","registerCustomCallback","locale","getRanges","low","editor","minColumn","isEqual","deletion","highest","minRow","length","commands","getItems","start","tablePaste","insert","mapper","change:data","data","startsWith","_setupColumnsRowsFixing","table","item","every","tableColumn","from","batch","toViewElement","subType","cell","getFirstRange","nodeBefore","_tableSuggestions","_splitMarkerName","isArray","writer","getColumnIndexes","execute","hasAttribute","oldRange","classes","_suggestionFactory","some","MIN_SAFE_INTEGER","first","registerDescriptionCallback","isInContent","toLowerCase","ELEMENT_TABLE_COLUMN","tableRow","createRangeIn","colspan","_getSuggestionCoords","isTouching","name","_tablePostFixingSubtypes","registerPostFixer","left","getAttribute","root","change","getChanges","ELEMENT_TABLE_ROW_WITH_TEXT","MAX_SAFE_INTEGER","markMultiRangeDeletion","ELEMENT_TABLE_WITH_TEXT","getSuggestion","accept","has","discard","plugins","*Insert:* %0","insertTableRowBelow"];var Fx,Dx;Fx=Ox,Dx=479,function(t){for(;--t;)Fx.push(Fx.shift())}(++Dx);const Px=function(t,e){return Ox[t-=0]};class Bx extends t.Plugin{constructor(t){super(t),this[Px("0x37")]=[Px("0x31"),Px("0x18")],this[Px("0x20")]=new Set}[Px("0x88")](){const t=this.editor,e=t.model[Px("0x72")].selection;if(!t.plugins[Px("0x44")](Px("0x57")))return;const n=t[Px("0x1")],o=t[Px("0x46")].get(Px("0x5f")),s=t[Px("0x46")][Px("0x6c")](Px("0x6d"));o[Px("0x84")][Px("0x70")](Px("0x15"),(t=>Yo(n,Px("0x4a"),t))),this[Px("0x14")](),o[Px("0x77")](Px("0x60")),o[Px("0x77")]("selectTableRow"),o[Px("0x77")](Px("0x74"));for(const n of["insertTableRowAbove",Px("0x48")]){const r=t[Px("0xb")].get(n);o[Px("0x77")](n,(n=>{t[Px("0x65")][Px("0x3c")]((t=>{n();const i="above"===r[Px("0x61")],x=s[Px("0x4f")](e),a=s[Px("0x6a")](x),c=i?a[Px("0x2c")]-1:a[Px("0x5a")]+1,l=x[0][Px("0x76")](Px("0x15")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array[Px("0x19")](d)[Px("0x7d")]((e=>t[Px("0x82")](e.cell)));o.markMultiRangeInsertion(u,Px("0x31"))}))}))}for(const n of[Px("0x6e"),Px("0x89")]){const r=t[Px("0xb")][Px("0x6c")](n);o[Px("0x77")](n,(n=>{t[Px("0x65")].change((t=>{n();const i=Px("0x39")===r[Px("0x61")],x=s[Px("0x4f")](e),a=s[Px("0x24")](x),c=i?a[Px("0x2c")]-1:a[Px("0x5a")]+1,l=x[0][Px("0x76")](Px("0x15")),d=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Px("0x19")](d)[Px("0x7d")]((e=>t[Px("0x82")](e[Px("0x1d")])));o[Px("0x78")](u,Px("0x18"))}))}))}for(const n of["removeTableRow",Px("0x54")]){const r=n[Px("0x85")](11),i=r[Px("0x2f")](),x=i[Px("0x85")](0,3)+Px("0x51"),a=Px("0x15")+r,c=Px("0x5e")+r,l="max"+r;o.enableCommand(n,(()=>{t[Px("0x65")][Px("0x3c")]((t=>{const r=s.getSelectionAffectedTableCells(e),d=r[0][Px("0x76")]("table");let u;if("removeTableRow"==n){const t=s[Px("0x6a")](r);u={startRow:t[Px("0x2c")],endRow:t[Px("0x5a")],includeAllSlots:!0}}else{const t=s[Px("0x24")](r);u={startColumn:t[Px("0x2c")],endColumn:t.last,includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[Px("0x19")](g).map((({cell:t})=>t)),f=jx(m[Px("0x5c")]((t=>t.hasAttribute(x)))),h=jx(m[Px("0x5c")]((t=>!t.hasAttribute(x))))[Px("0x7d")]((e=>t[Px("0x82")](e))),p=o[Px("0x40")](h,a);if(p&&("tableRow"==p[Px("0x1c")]||Px("0x18")==p[Px("0x1c")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s[Px("0x86")](n),a=n[Px("0x3a")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Px("0x5d")](o)}}}))}))}function r(n){const o=Array[Px("0x19")](e[Px("0x2")]()).map((t=>i.LiveRange[Px("0x64")](t)));t.model[Px("0x3c")]((e=>{const s=e[Px("0x1a")];n=n.filter((t=>Px("0x4c")!=t.root[Px("0x69")])),e[Px("0x4e")](n),t[Px("0xb")][Px("0x6c")]("removeTableRow")[Px("0x80")](),t[Px("0x25")](Px("0x4d"),{forceDefaultExecution:!0}),t[Px("0x65")][Px("0x87")]((()=>{t[Px("0x65")][Px("0x87")](s,(t=>{const e=o[Px("0x5c")]((t=>Px("0x4c")!=t[Px("0x3b")][Px("0x69")]));e.length>0&&t[Px("0x4e")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[Px("0x65")][Px("0x3c")]((o=>{const s=Array[Px("0x19")](e[Px("0x2")]())[Px("0x7d")]((t=>i.LiveRange[Px("0x64")](t))),r=[];for(const t of n)for(const e of t[Px("0xc")]({shallow:!0}))r[Px("0x75")](e);for(const e of r)"$graveyard"!=e[Px("0x3b")][Px("0x69")]&&(o[Px("0x4e")](o[Px("0x62")](e,0)),t[Px("0xb")][Px("0x6c")](Px("0x54")).refresh(),t[Px("0x25")](Px("0x54"),{forceDefaultExecution:!0}));const x=s[Px("0x5c")]((t=>"$graveyard"!=t.root.rootName));x.length>0&&o[Px("0x4e")](x);for(const t of s)t[Px("0x67")]()}))}function c(t,e){return e[Px("0x17")]((e=>t[Px("0x2a")]((t=>t.end[Px("0x6")](e[Px("0xd")])||e[Px("0x6f")].isEqual(t.start)))))}function l(t,e){return t.some((t=>e.some((e=>t[Px("0x6f")][Px("0x35")](e[Px("0xd")])))))}t[Px("0x12")][Px("0x4b")].on(Px("0x53"),((t,e,n)=>{if(!n.options.showSuggestionHighlights)return;const o=e[Px("0x16")];if(!o)return;const s=n[Px("0x10")][Px("0x1b")](o);function r(t){return Array[Px("0x22")](t)?t:[t]}s&&Px("0x7f")===o[Px("0x36")]&&(0,x.setHighlightHandling)(s,n[Px("0x23")],((t,e,n)=>n[Px("0x66")](r(e.classes),t)),((t,e,n)=>n.removeClass(r(e[Px("0x28")]),t)))}),{priority:Px("0x8")}),o[Px("0x84")][Px("0x2d")]((t=>{if(Px("0x7c")!=t[Px("0x49")]&&"deletion"!=t[Px("0x49")])return;const e=t.getContainedElement();if(null!=e&&e.is(Px("0x68"),Px("0x15"))){if(Px("0x7c")==t[Px("0x49")]){const e=t.getItems().filter((t=>t.is(Px("0x83"))))[Px("0x7d")]((t=>t[Px("0x12")]));if(e[Px("0xa")])return{type:Px("0x7c"),content:Yo(n,Px("0x47"),Yo(n,Px("0x41"),'"'+e[Px("0x56")](" ")+'"'))}}if("deletion"==t[Px("0x49")]){const e=t[Px("0xc")]()[Px("0x5c")]((t=>t.is(Px("0x83"))))[Px("0x7d")]((t=>t[Px("0x12")]));if(e[Px("0xa")])return{type:Px("0x7"),content:Yo(n,Px("0x81"),Yo(n,Px("0x41"),'"'+e[Px("0x56")](" ")+'"'))}}}})),o[Px("0x84")][Px("0x2d")]((t=>{if(Px("0x31")==t[Px("0x1c")]){const e=t.getItems()[Px("0x5c")]((t=>t.is(Px("0x83")))).map((t=>t[Px("0x12")])),o=this[Px("0x34")](t),s=o[Px("0x52")]-o[Px("0x9")]+1;if(Px("0x7c")==t[Px("0x49")])return e[Px("0xa")]?{type:"insertion",content:Yo(n,Px("0x47"),Yo(n,Px("0x3e"),[s,'"'+e[Px("0x56")](" ")+'"']))}:{type:Px("0x7c"),content:Yo(n,Px("0x47"),Yo(n,Px("0x73"),s))};if(Px("0x7")==t[Px("0x49")])return e.length?{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,Px("0x3e"),[s,'"'+e[Px("0x56")](" ")+'"']))}:{type:Px("0x7"),content:Yo(n,Px("0x81"),Yo(n,Px("0x73"),s))}}if(Px("0x18")==t[Px("0x1c")]){const e=t.getItems()[Px("0x5c")]((t=>t.is(Px("0x83")))).map((t=>t[Px("0x12")])),o=this[Px("0x34")](t),s=o[Px("0x7e")]-o[Px("0x5")]+1;if(Px("0x7c")==t[Px("0x49")])return e[Px("0xa")]?{type:Px("0x7c"),content:Yo(n,Px("0x47"),Yo(n,Px("0x5b"),[s,'"'+e.join(" ")+'"']))}:{type:Px("0x7c"),content:Yo(n,Px("0x47"),Yo(n,Px("0x30"),s))};if("deletion"==t[Px("0x49")])return e[Px("0xa")]?{type:"deletion",content:Yo(n,Px("0x81"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:Px("0x7"),content:Yo(n,Px("0x81"),Yo(n,Px("0x30"),s))}}})),o[Px("0x29")][Px("0x0")]("insertion",Px("0x31"),Px("0x45"),r),o[Px("0x29")].registerCustomCallback(Px("0x7"),Px("0x31"),Px("0x43"),r),o[Px("0x29")].registerCustomCallback("insertion",Px("0x18"),Px("0x45"),a),o[Px("0x29")][Px("0x0")](Px("0x7"),Px("0x18"),"accept",a),o[Px("0x29")][Px("0x0")](Px("0x7c"),"tableColumn",Px("0x56"),c),o[Px("0x29")][Px("0x0")]("deletion",Px("0x18"),Px("0x56"),c),o[Px("0x29")][Px("0x0")](Px("0x7c"),"tableRow","join",l),o._suggestionFactory[Px("0x0")](Px("0x7"),Px("0x31"),Px("0x56"),l)}[Px("0x7a")](){const t=this.editor,e=t[Px("0x65")][Px("0x72")].selection;return(n,o)=>{t.model[Px("0x3c")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Px("0x6f")][Px("0x1f")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Px("0xd")][Px("0x58")]);const c=s[Px("0x32")](a);if("$graveyard"==c[Px("0x3b")].rootName)return;const l=Array.from(e[Px("0x2")]())[Px("0x7d")]((t=>i.LiveRange[Px("0x64")](t)));s.setSelection(c),t[Px("0xb")][Px("0x6c")](r)[Px("0x80")](),x[Px("0x75")]({forceDefaultExecution:!0}),t[Px("0x25")](r,...x);const d=l.filter((t=>Px("0x4c")!=t[Px("0x3b")][Px("0x69")]));d[Px("0xa")]>0&&s[Px("0x4e")](d);for(const t of l)t[Px("0x67")]()}))}}_getCoordsForCells(t){const e=this[Px("0x4")][Px("0x46")][Px("0x6c")](Px("0x6d"));let n=Number[Px("0x3f")],o=Number.MIN_SAFE_INTEGER,s=Number[Px("0x3f")],r=Number[Px("0x2b")];for(const i of t){if(Px("0x4c")==i[Px("0x3b")].rootName)continue;const{row:t,column:x}=e[Px("0x86")](i),a=i[Px("0x26")](Px("0x7b"))?i.getAttribute(Px("0x7b"))-1:0,c=i[Px("0x26")]("colspan")?i[Px("0x3a")](Px("0x33"))-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}}[Px("0x14")](){const t=this.editor,e=t.plugins[Px("0x6c")](Px("0x5f")),n=t.plugins[Px("0x6c")](Px("0x6d"));t.model[Px("0x72")].on(Px("0x11"),(()=>{const n=Array[Px("0x19")](t[Px("0x65")][Px("0x72")][Px("0x55")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Px("0x21")](t);if(Px("0x79")!=n)continue;if(null!=o[Px("0x27")])continue;const i=e[Px("0x42")](s);this[Px("0x37")].includes(r)&&this[Px("0x20")].add(i)}}),{priority:Px("0x3")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[Px("0x76")](Px("0x15")),i=n.getCellLocation(t);for(const e of this._tableSuggestions){const n=e[Px("0x1c")],x=n[Px("0x13")](Px("0xe")),a=n[Px("0x85")](x?10:5),c=a[Px("0x2f")](),l=c[Px("0x85")](0,3)+Px("0x51"),d=Px("0x5e")+a,u="max"+a;if(!e[Px("0x2e")])continue;if(r!=e[Px("0x1e")]().start[Px("0x76")]("table"))continue;if(e[Px("0x63")](s))continue;const g=t[Px("0x26")](l)?t[Px("0x3a")](l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Px("0x5d")](s),o=!0)}return o};t[Px("0x65")][Px("0x72")][Px("0x38")]((e=>{let n=!1;for(const s of t.model[Px("0x72")][Px("0x55")][Px("0x3d")]())if(Px("0xf")==s[Px("0x49")])if(Px("0x31")==s[Px("0x36")])for(const t of s[Px("0x71")].nodeAfter[Px("0x59")]())n=n||o(t,e);else Px("0x7f")==s[Px("0x36")]&&(n=n||o(s[Px("0x71")][Px("0x58")],e));return n}))}[Px("0x34")](t){return this[Px("0x6b")](t[Px("0x2")]()[Px("0x7d")]((t=>t[Px("0xd")][Px("0x58")])))}}function jx(t){return Array.from(new Set(t)[Px("0x50")]())}const Ux=["getSelectionAffectedTableCells","commands","_descriptionFactory","mergeTableCellRight","detach","find","containsRange","filter","value","*Split cell:* vertically","length","stop","document","from","subType","setSelection","_suggestionFactory","author","model","low","mergeTableCells","mergeTableCellLeft","map","getAncestors","add","execute","deletion","direction","locale","_isForcedDefaultExecutionBlock","findAncestor","registerCustomCallback","TableEditing","editor","selection","_acceptFormatSuggestionCallbackFactory","getFirstPosition","splitTableCellVertically","createTableWalker","push","getCellLocation","table","formatBlock","registerDescriptionCallback","plugins","mergeTableCellUp","commandName","_areMergableCells","tableCell","get","return","mergeTableCellDown","TrackChangesEditing","cell","isInContent","markMultiRangeBlockFormat","createRangeOn","format","splitTableCellHorizontally","$graveyard","rootName","change","*Merge cells*","element","TableUtils","set:isEnabled","fromRange","size","*Split cell:* horizontally","_areSelectedCellsMergable","getSuggestions","accept","enableCommand","markBlockFormat","type","refresh","horizontally"];var Gx,Hx;Gx=Ux,Hx=410,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 requires(){return[Bx]}afterInit(){const t=this.editor,e=t[zx("0x46")].document[zx("0x9")],n=t[zx("0x3")];if(!t.plugins.has(zx("0x7")))return;const o=t[zx("0x13")][zx("0x18")](zx("0x1b")),s=t[zx("0x13")][zx("0x18")](zx("0x27")),r=t[zx("0x13")][zx("0x18")](Bx);r._tablePostFixingSubtypes[zx("0xe")](zx("0x48")),o[zx("0x2f")]("mergeTableCells",(()=>{const e=s.getSelectionAffectedTableCells(t[zx("0x46")][zx("0x40")][zx("0x9")]);t[zx("0x46")][zx("0x24")]((()=>{o[zx("0x1e")](e,{commandName:zx("0x48"),commandParams:[]},[],zx("0x48"))}))})),t.commands[zx("0x18")](zx("0x48")).on("execute",((e,n)=>{t[zx("0x35")][zx("0x18")]("trackChanges")[zx("0x3c")]&&(n[zx("0x3e")]>0&&n[n[zx("0x3e")]-1]&&n[n[zx("0x3e")]-1].forceDefaultExecution||o[zx("0x4")]||this[zx("0x2c")]()||e[zx("0x3f")]())}),{priority:"highest"});for(const e of[zx("0x14"),zx("0x37"),zx("0x1a"),"mergeTableCellLeft"]){const n=t[zx("0x35")][zx("0x18")](e);o[zx("0x2f")](e,(()=>{const e=t[zx("0x46")].document[zx("0x9")][zx("0xb")]().getAncestors().find((t=>t.is(zx("0x26"),"tableCell"))),s=n.value;t[zx("0x46")][zx("0x24")]((()=>{o[zx("0x1e")]([e,s],{commandName:"mergeTableCells",commandParams:[]},[],zx("0x48"))}))}))}for(const e of["splitTableCellVertically",zx("0x21")]){const n=t[zx("0x35")].get(e);o[zx("0x2f")](e,(()=>{const r=s[zx("0x34")](t.model[zx("0x40")].selection)[0],i=r[zx("0x5")](zx("0x10")),{column:x,row:a}=s[zx("0xf")](r);let c=[];if(zx("0x33")==n[zx("0x2")]){const t=s.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[zx("0x41")](t)[zx("0x4a")]((t=>t[zx("0x1c")]))}else{const t=s[zx("0xd")](i,{column:x,includeAllSlots:!0});c=Array[zx("0x41")](t).map((t=>t[zx("0x1c")]))}t[zx("0x46")].change((t=>{o[zx("0x30")](t[zx("0x1f")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[zx("0x36")][zx("0x12")]((t=>{const{data:e}=t;if(e)return zx("0x48")==e[zx("0x15")]?{type:zx("0x20"),content:Yo(n,zx("0x25"))}:void 0})),o[zx("0x36")][zx("0x12")]((t=>{const{data:e}=t;if(e)return zx("0xc")==e[zx("0x15")]?{type:zx("0x20"),content:Yo(n,zx("0x3d"))}:zx("0x21")==e[zx("0x15")]?{type:zx("0x20"),content:Yo(n,zx("0x2b"))}:void 0}));const x=r[zx("0xa")]();for(const t of[zx("0x14"),zx("0x37"),zx("0x1a"),zx("0x49")])o[zx("0x44")][zx("0x6")](zx("0x11"),t,zx("0x2e"),x);for(const t of[zx("0xc"),zx("0x21")])o._suggestionFactory[zx("0x6")](zx("0x11"),t,zx("0x2e"),x);o[zx("0x44")][zx("0x6")](zx("0x11"),zx("0x48"),"accept",(n=>{t[zx("0x46")][zx("0x24")]((o=>{const s=Array[zx("0x41")](e.getRanges()).map((t=>i.LiveRange[zx("0x29")](t)));o[zx("0x43")](n),t[zx("0x35")][zx("0x18")]("mergeTableCells")[zx("0x32")](),t[zx("0x0")](zx("0x48"),{forceDefaultExecution:!0});const r=s[zx("0x3b")]((t=>zx("0x22")!=t.root[zx("0x23")]));r[zx("0x3e")]>0&&o[zx("0x43")](r);for(const t of s)t[zx("0x38")]()}))}));for(const e of[zx("0x14"),"mergeTableCellDown",zx("0x49"),zx("0x37")]){const n=t[zx("0x35")][zx("0x18")](e);n.on(zx("0x28"),((e,o,s)=>{if(s){const o=t.model.document[zx("0x9")][zx("0xb")]()[zx("0x4b")]()[zx("0x39")]((t=>t.is(zx("0x26"),zx("0x17"))));this[zx("0x16")](n[zx("0x3c")],o)||(e[zx("0x19")]=!1,e[zx("0x3f")]())}}),{priority:zx("0x47")})}}[zx("0x2c")](){const t=this[zx("0x8")].commands.get(zx("0x48")),e=this[zx("0x8")][zx("0x13")].get(zx("0x27"));if(!t.isEnabled)return!1;const n=e.getSelectionAffectedTableCells(this[zx("0x8")][zx("0x46")][zx("0x40")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[zx("0x16")](t,e))return!1;return!0}[zx("0x16")](t,e){const n=this[zx("0x8")][zx("0x13")].get("TrackChangesEditing"),o=this[zx("0x8")][zx("0x46")][zx("0x1f")](t),s=this.editor[zx("0x46")].createRangeOn(e),r=new Set,i=new Set;for(const t of n[zx("0x2d")]())if(("insertion"==t[zx("0x31")]||zx("0x1")==t[zx("0x31")]||zx("0x48")==t[zx("0x42")])&&t[zx("0x1d")])for(const e of t.getRanges())e[zx("0x3a")](o,!0)&&r[zx("0x4c")](t[zx("0x31")]+":"+t[zx("0x45")].id),e[zx("0x3a")](s,!0)&&i.add(t[zx("0x31")]+":"+t[zx("0x45")].id);if(r[zx("0x2a")]!=i[zx("0x2a")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Vx=["getColumnIndexes","headingColumns","name","unbindElementFromMarkerName","parent","_descriptionFactory","registerCustomCallback","createTableWalker","stop","getCellLocation","addClass","consume","ck-suggestion-marker--active","data","commandParams","commands","isBefore","getAttribute","selection","childCount","format","forceValue","createPositionAfter","getRowIndexes","getSelectionAffectedTableCells","writer","getSuggestion","editor","setTableRowHeader","*Format:* %0","_suggestionFactory","cell","highest","formatBlock","enableCommand","ck-suggestion-marker-","removeClass","locale","FORMAT_REGULAR_COLUMN","removeMarker:suggestion","_splitMarkerName","options","value","from","includes","nodeAfter","commandName","removeAttribute","addMarker:suggestion","markerName","headingRows","bindElementToMarker","findAncestor","getChild","editing","markerRange","FORMAT_REGULAR_ROW","last","createPositionBefore","setTableColumnHeader","createRange","data-suggestion","requires","downcastDispatcher","FORMAT_HEADER_COLUMN","_acceptFormatSuggestionCallbackFactory","index","setAttribute","nodeBefore","mapper","markerNameToElements","toViewElement","FORMAT_HEADER_ROW","model","plugins","registerDescriptionCallback","first","start","activeMarkers","get","has","change","document"];var Kx,qx;Kx=Vx,qx=255,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]};class $x extends t.Plugin{static get[Xx("0x38")](){return[Bx]}afterInit(){const t=this[Xx("0x15")];if(!t.plugins[Xx("0x4a")]("TableEditing"))return;const e=t[Xx("0x1f")],n=t[Xx("0x44")][Xx("0x49")]("TrackChangesEditing"),o=t[Xx("0x44")][Xx("0x49")]("TableUtils"),s=t[Xx("0x44")][Xx("0x49")](Bx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Xx("0x22")](r[Xx("0x2b")]),c=n[Xx("0x14")](a);if(!c.data||Xx("0x35")!=c.data[Xx("0x28")])return;if(r.item)return void s[Xx("0x2")]();if(!i.consumable[Xx("0x5")](r[Xx("0x31")],s[Xx("0x4f")]))return;const l=r[Xx("0x31")][Xx("0x47")][Xx("0x27")],d=r.markerRange.end[Xx("0x3e")],u=l[Xx("0x51")][Xx("0x51")],{column:g}=o[Xx("0x3")](l),{column:m}=o.getCellLocation(d);for(let s=g;s<=m;s++){const c=o.createTableWalker(u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Xx("0x19")],c=i[Xx("0x3f")][Xx("0x41")](s);i[Xx("0x13")][Xx("0x4")](Xx("0x1d")+x,c),e&&i[Xx("0x13")][Xx("0x3d")](Xx("0x37"),a,c),i[Xx("0x3f")][Xx("0x2d")](c,r.markerName),t&&(n[Xx("0x48")][Xx("0x26")](r[Xx("0x2b")])?i[Xx("0x13")][Xx("0x4")]("ck-suggestion-marker--active",c):i.writer[Xx("0x1e")](Xx("0x6"),c))}}}}n[Xx("0x1c")]("setTableRowHeader",((e,s)=>{const r=o[Xx("0x12")](t[Xx("0x43")][Xx("0x4c")].selection),i=o[Xx("0x11")](r),x=r[0][Xx("0x2e")]("table"),a=x[Xx("0xb")](Xx("0x2c"))||0,c=s&&null!==s[Xx("0xf")]?s[Xx("0xf")]:!t.commands[Xx("0x49")](Xx("0x16"))[Xx("0x24")],l=c?i[Xx("0x33")]:i[Xx("0x46")],d=x[Xx("0x2f")](l);let u;if(c){const e=x.getChild(a);if(d[Xx("0x3c")]<e[Xx("0x3c")])return;u=t[Xx("0x43")][Xx("0x36")](t[Xx("0x43")][Xx("0x34")](e[Xx("0x2f")](0)),t[Xx("0x43")][Xx("0x10")](d.getChild(d[Xx("0xd")]-1)))}else{const e=x[Xx("0x2f")](a-1);if(!e)return;u=t[Xx("0x43")][Xx("0x36")](t.model.createPositionBefore(d[Xx("0x2f")](0)),t[Xx("0x43")].createPositionAfter(e[Xx("0x2f")](e[Xx("0xd")]-1)))}t[Xx("0x43")][Xx("0x4b")]((()=>{n.markBlockFormat(u,{commandName:Xx("0x16"),commandParams:[{forceValue:c}]},[],Xx("0x16"))}))})),n.enableCommand(Xx("0x35"),((e,o)=>{const s=t.plugins[Xx("0x49")]("TableUtils"),r=s.getSelectionAffectedTableCells(t[Xx("0x43")][Xx("0x4c")][Xx("0xc")]),i=s[Xx("0x4d")](r),x=r[0].findAncestor("table"),a=x.getAttribute(Xx("0x4e"))||0,c=o&&null!==o[Xx("0xf")]?o[Xx("0xf")]:!t[Xx("0x9")][Xx("0x49")](Xx("0x35")).value;let l;const d=x[Xx("0x2f")](0),u=c?i[Xx("0x33")]:i[Xx("0x46")],g=s[Xx("0x1")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Xx("0x25")](g)[0][Xx("0x19")];if(c){const e=d.getChild(a);if(m[Xx("0xa")](e))return;l=t.model[Xx("0x36")](t[Xx("0x43")][Xx("0x34")](e),t.model[Xx("0x10")](m))}else{const e=d.getChild(a-1);if(!e)return;l=t.model[Xx("0x36")](t.model[Xx("0x34")](m),t[Xx("0x43")][Xx("0x10")](e))}t.model.change((()=>{n.markBlockFormat(l,{commandName:Xx("0x35"),commandParams:[{forceValue:c}]},[],Xx("0x35"))}))})),t[Xx("0x30")][Xx("0x39")].on(Xx("0x2a"),r(),{priority:Xx("0x1a")}),t[Xx("0x7")][Xx("0x39")].on("addMarker:suggestion",((t,e,n)=>{n[Xx("0x23")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0x1a")}),t[Xx("0x30")][Xx("0x39")].on(Xx("0x21"),((t,e,o)=>{const{type:s,id:r}=n[Xx("0x22")](e[Xx("0x2b")]),i=n[Xx("0x14")](r);if(!i[Xx("0x7")]||Xx("0x35")!=i.data.commandName)return;const x=o.mapper[Xx("0x40")](e[Xx("0x2b")]);if(x)for(const t of x)o[Xx("0x13")][Xx("0x1e")](Xx("0x1d")+s,t),o[Xx("0x13")].removeClass(Xx("0x6"),t),o[Xx("0x13")][Xx("0x29")](Xx("0x37"),t),o[Xx("0x3f")][Xx("0x50")](t,e.markerName)}),{priority:Xx("0x1a")}),n[Xx("0x52")][Xx("0x45")]((t=>{const{data:n}=t;if(n){if(Xx("0x16")==n[Xx("0x28")]){const t=n[Xx("0x8")][0][Xx("0xf")];return o(Yo(e,Xx(t?"0x42":"0x32")))}if(Xx("0x35")==n.commandName){const t=n[Xx("0x8")][0][Xx("0xf")];return o(Yo(e,Xx(t?"0x3a":"0x20")))}}function o(t){return{type:Xx("0xe"),content:Yo(e,Xx("0x17"),t)}}}));const i=s[Xx("0x3b")]();n[Xx("0x18")][Xx("0x0")]("formatBlock","setTableRowHeader","accept",i),n[Xx("0x18")][Xx("0x0")](Xx("0x1b"),Xx("0x35"),"accept",i)}}const Jx=["batch","filter","removeMarkers","markers","TrackChangesEditing","getSuggestion","Users","document","author","model","tableCellSuggestion","nodeAfter","element","map","previousSibling","accept","showSuggestionHighlights","newRange","row","getChangedMarkers","high","insertion","for","cells","formatBlock","isEmpty","columns","tableCellHorizontalAlignment","end","suggestionUnloaded","listenTo","ck-suggestion-marker","columnInsertionRanges","editing","editor","some","plugins","tablePasteColumn","length","name","getColumnIndexes","getChild","attributes","getChildren","startsWith","rowInsertionIndexes","tablePaste","oldRange","root","rows","containsRange","conversion","deletion","*Replace table cells*","tablePasteChainId","change","_suggestionFactory","columnInsertionIndexes","removeRows","createRange","view","elementToElement","getSelectionAffectedTableCells","setAttributes","tablePasteCell","editingDowncast","commands","markMultiRangeDeletion","getRanges","content","_createdBatches","last","$graveyard","schema","getTableIfOnlyTableInContent","keys","tableCellBorderColor","getAttributes","has","registerDescriptionCallback","value","getShiftedBy","type","suggestion","tableCellPadding","TableClipboard","_isForcedDefaultExecutionBlock","suggestion-td","get","locale","getChanges","deletionRanges","dataDowncast","insertColumns","activeMarkers","removeMarker","find","registerCustomCallback","from","subType","tablePasteRow","_descriptionFactory","markerToHighlight","tableCellBorderWidth","fromEntries","every","createRangeOn","includes","afterInit","selection","paragraph","_getCoordsForCells","getItems","insertContent","redo","getSuggestions","differ","getSuggestionCallback","position","createTableWalker","previous","getRange","first","next","forceDefaultExecution","markMultiRangeBlockFormat","insertRows","getRowIndexes","getAllAdjacentSuggestions","tableCell","getContainedElement","join","_splitMarkerName","low","getColumns","registerPostFixer","createPositionBefore","setAttribute","column","documentSelection","set","tableCellBorderStyle","insertionRanges","isEqual","remove","ck-suggestion-marker-insertion","markerAttributes","getRows","fill","markerName","table","stop","endColumn","suggestion:formatBlock:tablePasteCell","wrap","findAncestor","requires","tableCellBackgroundColor","options","_tablePostFixingSubtypes","add","TableUtils","updateMarker","isInContent","trackChanges","markMultiRangeInsertion","createRangeIn","unwrap","createElement","discard","removeColumns","endRow","push","insert"];var Qx,Zx;Qx=Jx,Zx=467,function(t){for(;--t;)Qx.push(Qx.shift())}(++Zx);const Yx=function(t,e){return Jx[t-=0]},ta=[Yx("0x9e"),Yx("0x83"),Yx("0x16"),Yx("0x52"),"tableCellVerticalAlignment",Yx("0x26"),Yx("0x8b")],ea=Object[Yx("0x9f")](ta[Yx("0x44")]((t=>[t,null])));class na extends t.Plugin{static get[Yx("0x25")](){return[Bx]}[Yx("0xa3")](){const t=this[Yx("0x59")];if(!t.plugins[Yx("0x85")](Yx("0x8c")))return;const n=t[Yx("0x5b")][Yx("0x8f")](Yx("0x3b")),o=t[Yx("0x5b")][Yx("0x8f")](Yx("0x2a")),s=t.plugins.get(Bx),r=t[Yx("0x5b")][Yx("0x8f")](Yx("0x8c"));s[Yx("0x28")][Yx("0x35")](Yx("0x9b"),Yx("0x5c")),t[Yx("0x40")][Yx("0x80")].register(Yx("0x41"),{allowIn:Yx("0xa"),allowContentOf:"tableCell",isLimit:!0}),t.conversion[Yx("0x74")]({model:Yx("0x41"),view:"suggestion-td"});let i=null;t[Yx("0x40")].on(Yx("0xa8"),((s,x)=>{const[a,c]=x,l=x[x[Yx("0x5d")]-1];l&&l[Yx("0x5")]||n[Yx("0x8d")]||this[Yx("0x59")][Yx("0x79")][Yx("0x8f")](Yx("0x2d"))[Yx("0x87")]&&function(t,e,n,o,s){if(e&&!e.is(Yx("0x14")))return!1;const r=s[Yx("0x81")](t,n);if(!r||!sa(r,void 0,o))return!1;const i=o[Yx("0x75")](n[Yx("0x3e")][Yx("0xa4")]);if(!i[Yx("0x5d")])return!1;const x=i[0][Yx("0x24")](Yx("0x1f")),a=o[Yx("0x8")](i),c=o[Yx("0x5f")](i),l={startRow:a[Yx("0x3")],endRow:a[Yx("0x7e")],startColumn:c[Yx("0x3")],endColumn:c[Yx("0x7e")]};return 1==i[Yx("0x5d")]&&(l[Yx("0x34")]+=o[Yx("0x1c")](r)-1,l[Yx("0x21")]+=o[Yx("0xf")](r)-1),sa(x,l,o)}(a,c,t[Yx("0x40")],o,r)&&(s[Yx("0x20")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Yx("0x40")][Yx("0x6e")]((()=>{t.model[Yx("0xa8")](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[Yx("0x2e")](s,Yx("0x9b"),{tablePasteChainId:o}),r.length&&n[Yx("0x2e")](r,Yx("0x5c"),{tablePasteChainId:o}),a[Yx("0x5d")]&&n[Yx("0x2e")](a,Yx("0x65"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0x5d")]&&n[Yx("0x7a")](c,Yx("0x65"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Yx("0x6")](l[Yx("0x44")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0x77"),{tablePasteChainId:o});if(d){const e=d.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model.createRangeOn(o),i=e[Yx("0x97")]((t=>t.getRange()[Yx("0x18")](r)));i&&n[Yx("0x35")]([i.name,s])}n[Yx("0x5d")]&&d[Yx("0x12")](Yx("0x1b"),Object[Yx("0x9f")](n))}i=null})))}),{priority:e.priorities.high+10}),t[Yx("0x5b")][Yx("0x8f")](Yx("0x8c")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n.cell,x=o,a=oa(r),c=oa(x);t.return=r;let l=null,d=null;if(c||a)if(a&&!c){s[Yx("0x19")](r[Yx("0x60")](0));for(const t of Array.from(x[Yx("0x62")]()))s[Yx("0x36")](t,r,Yx("0x53"));const t=i[Yx("0x64")][Yx("0xa2")](n[Yx("0x49")]),e=i[Yx("0x70")].includes(n[Yx("0x13")]);t||e||(l=s[Yx("0x2f")](r))}else c&&!a&&(d=s.createRangeIn(r));else{const t=s[Yx("0x31")](Yx("0x41")),e=s.createElement(Yx("0x41"));s[Yx("0x23")](s.createRangeIn(r),e),s[Yx("0x36")](t,r,0);for(const e of Array[Yx("0x99")](x.getChildren()))s[Yx("0x36")](e,t,Yx("0x53"));l=s[Yx("0xa1")](t),d=s.createRangeOn(e)}const u=Array[Yx("0x99")](x[Yx("0x84")]())[Yx("0x38")]((([t])=>ta[Yx("0xa2")](t)));i[Yx("0x4e")][Yx("0x35")]({element:r,attributes:u[Yx("0x5d")]?Object[Yx("0x9f")](u):null}),l&&i[Yx("0x17")].push(l),d&&i[Yx("0x92")][Yx("0x35")](d)}),{priority:Yx("0x4b")}),o.on(Yx("0x94"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x51")]||1;i.columnInsertionIndexes=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of o[Yx("0x0")](s,{startColumn:x,endColumn:x+a-1}))i[Yx("0x57")][Yx("0x35")](t[Yx("0x40")][Yx("0xa1")](e))}),{priority:"low"}),o.on(Yx("0x7"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x68")]||1;i[Yx("0x64")]=new Array(a)[Yx("0x1d")](x)[Yx("0x44")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[Yx("0x35")](t.model[Yx("0xa1")](e))}),{priority:Yx("0xe")}),n[Yx("0x9c")][Yx("0x86")]((e=>{if(e[Yx("0x9a")]&&e[Yx("0x9a")].startsWith(Yx("0x65")))return e[Yx("0x1")]?{}:{type:Yx("0x4c"),content:Yo(t[Yx("0x90")],Yx("0x6c"))}}));const x=()=>!1;for(const t of["tablePaste","tablePasteColumn",Yx("0x9b"),Yx("0x77")])n[Yx("0x6f")][Yx("0x98")](Yx("0x4c"),t,Yx("0xc"),x),n[Yx("0x6f")][Yx("0x98")]("deletion",t,Yx("0xc"),x),n[Yx("0x6f")].registerCustomCallback("formatBlock",t,Yx("0xc"),x);n[Yx("0x6f")][Yx("0x98")](Yx("0x4f"),Yx("0x77"),"discard",x),n[Yx("0x6f")][Yx("0x98")](Yx("0x4f"),Yx("0x77"),Yx("0x46"),((e,n,o)=>{const s=e.map((t=>t[Yx("0xb")]())).filter((t=>t)),r=new Map(s[Yx("0x44")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Yx("0x4e")])e&&r[Yx("0x15")](t,e);else if(o&&o[Yx("0x1b")])for(const[e,n]of Object.entries(o[Yx("0x1b")])){const o=t[Yx("0x40")][Yx("0x3a")][Yx("0x8f")](e),s=o?o.getRange()[Yx("0xb")]():null;s&&r[Yx("0x15")](s,n)}t[Yx("0x40")].change((t=>{for(const[e,n]of r)t[Yx("0x76")]({...ea,...n},e)}))}));const a=(e,o)=>{n[Yx("0x6f")][Yx("0x98")](e,"tablePaste",o,((s,r,i)=>{t[Yx("0x40")][Yx("0x6e")]((t=>{const x=[];for(const t of s){const e=t.start[Yx("0x42")];e.is(Yx("0x43"),Yx("0x41"))&&x[Yx("0x35")](e)}n[Yx("0x6f")][Yx("0xac")](e,null,o)(s,r,i);for(const e of x)Yx("0x7f")!=e[Yx("0x67")].rootName&&t[Yx("0x30")](e)}))}))};a(Yx("0x4c"),Yx("0x46")),a("insertion",Yx("0x32")),a(Yx("0x6b"),Yx("0x46")),a(Yx("0x6b"),Yx("0x32")),n[Yx("0x6f")][Yx("0x98")](Yx("0x4c"),"tablePasteRow",Yx("0x32"),(t=>{const e=t.map((t=>t[Yx("0xb")]())),n=e[0][Yx("0x24")](Yx("0x1f")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Yx("0x71")](n,{at:r,rows:i-r+1})})),n[Yx("0x6f")].registerCustomCallback(Yx("0x4c"),Yx("0x5c"),Yx("0x32"),(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0][Yx("0x24")](Yx("0x1f")),{minColumn:r,maxColumn:i}=s[Yx("0xa6")](e);o[Yx("0x33")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e[Yx("0x9a")][Yx("0x63")](Yx("0x65")))return;const o=e[Yx("0x61")].tablePasteChainId,s=n.getSuggestions()[Yx("0x38")]((t=>t[Yx("0x2c")]&&t[Yx("0x61")]&&t[Yx("0x61")][Yx("0x6d")]==o));s[Yx("0x5d")]&&e.getAllAdjacentSuggestions()[Yx("0x5d")]!=s[Yx("0x5d")]&&s.reduce(((t,e)=>(t[Yx("0x4")]=e,e[Yx("0x1")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[Yx("0x1e")]),s=[Yx("0x56"),Yx("0x1a")],r=n[Yx("0x95")].includes(t[Yx("0x1e")]);return r&&s[Yx("0x35")]("ck-suggestion-marker--active"),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Yx("0x4b")}),n.on(Yx("0x54"),c,{priority:Yx("0x4b")}),t[Yx("0x40")][Yx("0x3e")][Yx("0x10")]((()=>{let e=!1;const o=Array.from(t[Yx("0x40")][Yx("0x3e")][Yx("0xab")].getChangedMarkers());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n._splitMarkerName(s);if(Yx("0x8a")!=o||Yx("0x6b")!=i||r[Yx("0x66")])continue;if(!n.hasSuggestion(x))continue;const a=n[Yx("0x3c")](x)[Yx("0x7b")](),c=t.plugins.get(Yx("0x3d")).me;for(const t of n[Yx("0xaa")]())if(t.isInContent&&t[Yx("0x3f")]==c&&"formatBlock"==t[Yx("0x89")]&&Yx("0x77")==t.subType&&t.getRanges()[Yx("0xa0")]((t=>a[Yx("0x5a")]((e=>e[Yx("0x69")](t,!0))))))for(const n of t[Yx("0x9")]())n[Yx("0x2c")]&&(n[Yx("0x32")](),e=!0)}return e})),t[Yx("0x40")][Yx("0x3e")][Yx("0x10")]((e=>{const o=t[Yx("0x79")].get(Yx("0xa9"));if(!o||!o[Yx("0x7d")].has(e[Yx("0x37")]))return!1;let s=!1;const r=t[Yx("0x5b")][Yx("0x8f")]("Users").me,i=t[Yx("0x40")][Yx("0x3e")][Yx("0xab")][Yx("0x91")](),x=Array[Yx("0x99")](t[Yx("0x40")].document[Yx("0xab")][Yx("0x4a")]()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Yx("0xd")](t);return Yx("0x8a")==o&&Yx("0x65")==s&&i==r.id&&!e[Yx("0x66")]}));for(const t of i){if(Yx("0x36")!=t[Yx("0x89")]||Yx("0x41")!=t[Yx("0x5e")]||1!=t[Yx("0x5d")])continue;const n=e[Yx("0x72")](t[Yx("0xad")],t[Yx("0xad")][Yx("0x88")](1));if(!x[Yx("0x97")]((({data:t})=>t.newRange[Yx("0x18")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[Yx("0x48")])){e[Yx("0x2b")](t,{range:n}),s=!0;break}}return s})),t[Yx("0x40")][Yx("0x3e")].registerPostFixer((e=>{let o=!1;const s=t[Yx("0x5b")].get(Yx("0x3d")).me,r=n[Yx("0xaa")]()[Yx("0x38")]((t=>t[Yx("0x2c")]&&t[Yx("0x3f")]==s)),i=new Set,x=new Set;for(const t of r)if(Yx("0x65")==t.subType)for(const e of t.getMarkers()){const n=e[Yx("0x2")]()[Yx("0xb")]();if(n)if(n.is(Yx("0x43"),Yx("0x41"))&&oa(n)){t[Yx("0x96")](e[Yx("0x5e")]),i[Yx("0x29")](n),o=!0;const s=n.nextSibling,r=n[Yx("0x45")],a=s&&s.is(Yx("0x43"),Yx("0x41")),c=r&&r.is(Yx("0x43"),Yx("0x41"));a&&!i[Yx("0x85")](s)&&x[Yx("0x29")](s),c&&!i[Yx("0x85")](r)&&x[Yx("0x29")](r)}else n.is(Yx("0x43"),Yx("0xa5"))&&n[Yx("0x50")]&&(t[Yx("0x96")](e[Yx("0x5e")]),o=!0)}else if(Yx("0x77")==t[Yx("0x9a")]){if(!t[Yx("0x61")]||!t[Yx("0x61")][Yx("0x6d")])continue;const e=t[Yx("0x61")].markerAttributes;if(e&&Object[Yx("0x82")](e)[Yx("0x5d")])continue;const n=t.attributes[Yx("0x6d")];let s=!0,i=!0;for(const e of r)if(e.subType&&e[Yx("0x9a")][Yx("0x63")](Yx("0x65"))){if(!e[Yx("0x61")][Yx("0x6d")]){i=!1;break}if(e.id!=t.id&&e[Yx("0x61")][Yx("0x6d")]==n){s=!1;break}}i&&s&&(t[Yx("0x39")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Yx("0x30")](t);return o})),t[Yx("0x6a")][Yx("0x4d")](Yx("0x78"))[Yx("0x9d")]({model:Yx("0x22"),view:(t,e)=>l(t),converterPriority:Yx("0x4b")}),t[Yx("0x6a")][Yx("0x4d")](Yx("0x93")).markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[Yx("0x27")][Yx("0x47")]?l(t,!1):null,converterPriority:Yx("0x4b")});const d=t[Yx("0x58")][Yx("0x73")];this[Yx("0x55")](d[Yx("0x3e")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d[Yx("0x2f")](e[Yx("0x7c")])[Yx("0xa7")]())t.is(Yx("0x43"),Yx("0x8e"))&&n[Yx("0x35")](t);d[Yx("0x6e")]((t=>{for(const e of n)t.move(t[Yx("0x2f")](e),t[Yx("0x11")](e)),t.remove(e)}))}))}}function oa(t){if(t.isEmpty)return!0;const e=t[Yx("0x60")](0);return e.is(Yx("0x43"),Yx("0xa5"))&&e[Yx("0x50")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Yx("0x0")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ra=["registerCustomCallback","locale","resizeColumnWidths","selection","resizeTable","document","columnWidths","editor","getContainedElement","resizeTableWidth","plugins","handleResizeTableWidthCommand","registerDescriptionCallback","format","getSuggestionCallback","subType","table","discard","commandParams","handleSuggestionDescription","get","getSuggestions","formatBlock","_descriptionFactory","getColumnGroupElement","has","Users","afterInit","_suggestionFactory","getSelectedElement","TrackChangesEditing","*Format:* resize table","model","getAttribute","formatGroupId","enableCommand","accept","bind","tableWidth","getTableColumnsWidths"];var ia,xa;ia=ra,xa=307,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x0")](){if(!this.editor.plugins[aa("0x26")]("TableColumnResizeEditing"))return;const t=this[aa("0x14")][aa("0x17")].get(aa("0x3"));t[aa("0x8")](aa("0x16"),this[aa("0x18")][aa("0xa")](this)),t[aa("0x8")](aa("0xf"),this[aa("0x18")][aa("0xa")](this)),t[aa("0x1")].registerCustomCallback(aa("0x23"),"resizeTable","accept",t[aa("0x1")][aa("0x1b")](aa("0x23"),null,"discard")),t[aa("0x1")][aa("0xd")](aa("0x23"),"resizeTable",aa("0x1e"),t._suggestionFactory[aa("0x1b")](aa("0x23"),null,aa("0x9"))),t[aa("0x24")][aa("0x19")](this.handleSuggestionDescription.bind(this))}[aa("0x18")](t,e){const n=this.editor[aa("0x17")][aa("0x21")](aa("0x3")),o=this[aa("0x14")][aa("0x17")][aa("0x21")]("TableColumnResizeEditing"),s=e[aa("0x1d")]||this[aa("0x14")][aa("0x5")][aa("0x12")][aa("0x10")][aa("0x2")]();this[aa("0x14")].model.change((()=>{const r=o[aa("0x25")](s);let i=r?o[aa("0xc")](r):null,x=s[aa("0x6")](aa("0xb"))||null;const a=e[aa("0xb")]||x,c=e[aa("0x13")]||i,l=this[aa("0x14")][aa("0x17")][aa("0x21")](aa("0x27")).me;for(const t of n[aa("0x22")]()){const e=t[aa("0x15")]();if(aa("0x11")===t[aa("0x1c")]&&e===s){t.author!==l&&t[aa("0x1e")]();const e=t.data[aa("0x1f")];x=e[0][aa("0xb")],i=e[0][aa("0x13")];break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:aa("0x16"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:aa("0x11")},[],aa("0x11"))}))}[aa("0x20")](t){const{data:e}=t;if(e&&aa("0x11")===e[aa("0x7")]){const t=aa("0x4");return{type:aa("0x1a"),content:Yo(this[aa("0x14")][aa("0xe")],t)}}}}const la=["afterInit","has","plugins","TrackChangesEditing","enableCommand","get","editor","insertTemplate"];var da,ua;da=la,ua=206,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x2")](){const t=this[ga("0x0")];t[ga("0x4")][ga("0x3")]("Template")&&t[ga("0x4")][ga("0x7")](ga("0x5"))[ga("0x6")](ga("0x1"))}}const fa=["_descriptionFactory","insertTableOfContents","locale","registerElementLabel","tableOfContents","get","commands","TrackChangesEditing","ELEMENT_TABLE_OF_CONTENTS","editor","enableCommand","plugins"];var ha,pa;ha=fa,pa=366,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this[ba("0x3")];if(!t[ba("0x0")].get(ba("0x7")))return;t[ba("0x5")][ba("0xb")]("TrackChangesEditing")[ba("0x4")]("insertTableOfContents");const e=t[ba("0x5")][ba("0xb")](ba("0x1")),n=t[ba("0x8")];e[ba("0x6")][ba("0x9")](ba("0xa"),(t=>Yo(n,ba("0x2"),t)))}}const _a=["updateMarker","isTouching","suggestion","start","registerElementLabel","isEqual","Title","plugins","_splitMarkerName","end","_descriptionFactory","title-content","schema","removeMarker","TrackChangesEditing","nodeBefore","from","model","forward","ELEMENT_TITLE","editor","locale","differ","document","has","element","get","afterInit"];var Ta,Ca;Ta=_a,Ca=410,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x9")](){const t=this[ya("0x2")];if(!t[ya("0x11")][ya("0x6")](ya("0x10")))return;const e=t[ya("0x11")][ya("0x8")](ya("0x18"));e[ya("0x14")][ya("0xe")](ya("0x15"),(()=>Yo(t[ya("0x3")],ya("0x1")))),t[ya("0x1b")][ya("0x5")].registerPostFixer((n=>{let o=!1;const s=Array[ya("0x1a")](t.model[ya("0x5")][ya("0x4")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e[ya("0x12")](r);if(ya("0xc")!==s||!i.newRange)continue;const x=i.newRange,a=x[ya("0x13")][ya("0x19")];if(!a||!a.is(ya("0x7"),ya("0x15")))continue;if(!x[ya("0xd")][ya("0xb")](x[ya("0x13")]))continue;const c=t[ya("0x1b")][ya("0x16")].getNearestSelectionRange(x[ya("0x13")],ya("0x0"));if(c&&c.isCollapsed){const t=n.createRange(x.start,c[ya("0xd")]);t[ya("0xf")](x)||(n[ya("0xa")](r,{range:t}),o=!0)}o||(n[ya("0x17")](r),o=!0)}return o}))}}const Aa=["editor","UndoEditing","enableCommand","undo","redo","has","TrackChangesEditing","get","plugins"];var va,Ra;va=Aa,Ra=206,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{afterInit(){const t=this[Sa("0x1")],e=t[Sa("0x0")][Sa("0x8")](Sa("0x7"));t[Sa("0x0")][Sa("0x6")](Sa("0x2"))&&(e[Sa("0x3")](Sa("0x4")),e[Sa("0x3")](Sa("0x5")))}}const La=["requires","plugins","toggleTableCaption","TrackChangesEditing","afterInit","get","has","editor"];var Na,Ma;Na=La,Ma=377,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{static get[wa("0x7")](){return[Bx]}[wa("0x3")](){const t=this[wa("0x6")];t[wa("0x0")][wa("0x5")]("TableCaptionEditing")&&t[wa("0x0")][wa("0x4")](wa("0x2")).enableCommand(wa("0x1"))}}const Fa=["handleListStartCommand","DocumentListPropertiesEditing","_descriptionFactory","ELEMENT_","enableCommand","selection","_LIST_","length","listStart","type","_getSuggestionBlocksForListStyle","handleListReversedCommand","registerDescriptionCallback","editor","handleListStyleCommand","plugins","_getSuggestionBlocks","_getTranslationKeyForListStyle","push","listStyle","handleDescriptions","afterInit","reversed","*Change to:* %0","has","listReversed","getSelectedBlocks","DocumentListUtils","isFirstBlockOfListItem","getListTypeFromListStyleType","getAttribute","get","listType","DocumentListPropertiesUtils","from","numbered","styles","startIndex","change","isListItemBlock","*Format:* set order to reversed","locale","markMultiRangeBlockFormat","document","TrackChangesEditing","list.properties","commandParams","format","model","toUpperCase","replace","expandListBlocksToCompleteList","bind"];var Da,Pa;Da=Fa,Pa=343,function(t){for(;--t;)Da.push(Da.shift())}(++Pa);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0x31")](){if(!this[Ba("0x29")][Ba("0x2b")][Ba("0x34")](Ba("0x1d")))return;const t=this[Ba("0x29")].config.get(Ba("0x14")),e=this.editor[Ba("0x2b")][Ba("0x6")](Ba("0x13"));t[Ba("0xb")]&&e[Ba("0x20")](Ba("0x2f"),this[Ba("0x2a")][Ba("0x1b")](this)),t[Ba("0x32")]&&e[Ba("0x20")]("listReversed",this[Ba("0x27")][Ba("0x1b")](this)),t[Ba("0xc")]&&e[Ba("0x20")](Ba("0x24"),this[Ba("0x1c")][Ba("0x1b")](this)),e[Ba("0x1e")][Ba("0x28")](this[Ba("0x30")][Ba("0x1b")](this))}[Ba("0x2a")](t,e={}){const n=this.editor[Ba("0x2b")][Ba("0x6")](Ba("0x13")),o=this[Ba("0x26")]();this.editor[Ba("0x17")][Ba("0xd")]((()=>{n[Ba("0x11")](o,{commandName:Ba("0x2f"),commandParams:[{type:e.type}],formatGroupId:Ba("0x2f")})}))}handleListReversedCommand(t,e={}){const n=this[Ba("0x29")][Ba("0x2b")][Ba("0x6")](Ba("0x13")),o=this[Ba("0x29")].plugins[Ba("0x6")](Ba("0x2")),s=this[Ba("0x2c")]((t=>o[Ba("0xe")](t)&&Ba("0xa")===t[Ba("0x5")](Ba("0x7"))));null!==s&&this[Ba("0x29")][Ba("0x17")][Ba("0xd")]((()=>{n[Ba("0x11")](s,{commandName:Ba("0x0"),commandParams:[{reversed:e[Ba("0x32")]}],formatGroupId:Ba("0x0")})}))}[Ba("0x1c")](t,e={}){const n=this[Ba("0x29")][Ba("0x2b")][Ba("0x6")](Ba("0x13")),o=this[Ba("0x29")].plugins[Ba("0x6")]("DocumentListUtils"),s=this[Ba("0x2c")]((t=>o[Ba("0xe")](t)&&Ba("0xa")===t.getAttribute("listType")));null!==s&&this[Ba("0x29")].model[Ba("0xd")]((()=>{n[Ba("0x11")](s,{commandName:Ba("0x24"),commandParams:[{startIndex:e[Ba("0xc")]}],formatGroupId:Ba("0x24")})}))}handleDescriptions(t){const e=this[Ba("0x29")][Ba("0x10")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case"listStyle":o=Ba("0x33"),s={type:Ba("0x16"),content:Yo(e,o,Yo(e,this[Ba("0x2d")](n[Ba("0x15")][0][Ba("0x25")])))};break;case Ba("0x0"):o=n[Ba("0x15")][0].reversed?Ba("0xf"):"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case Ba("0x24"):o="*Format:* set start index to %0",s={type:Ba("0x16"),content:Yo(e,o,n[Ba("0x15")][0][Ba("0xc")])}}return s}_getSuggestionBlocksForListStyle(){const t=this.editor[Ba("0x2b")][Ba("0x6")]("DocumentListUtils");let e=Array[Ba("0x9")](this[Ba("0x29")][Ba("0x17")].document[Ba("0x21")][Ba("0x1")]());return e[Ba("0x2e")](...t[Ba("0x1a")](e)),e=[...new Set(e)],e}[Ba("0x2c")](t){const e=this[Ba("0x29")].plugins[Ba("0x6")]("DocumentListUtils");let n=Array[Ba("0x9")](this[Ba("0x29")][Ba("0x17")][Ba("0x12")][Ba("0x21")][Ba("0x1")]()).filter(t);if(!n[Ba("0x23")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[Ba("0x3")](t)&&o[Ba("0x2e")](t);return o}[Ba("0x2d")](t){return Ba("0x1f")+this.editor[Ba("0x2b")].get(Ba("0x8"))[Ba("0x4")](t)[Ba("0x18")]()+Ba("0x22")+t[Ba("0x18")]()[Ba("0x19")](/-/g,"_")}}const Ua=["tableCellBorderColor","tableAlignment","getSuggestionCallback","tableCellProperties","tableBackgroundColor","enableCommand","registerDescriptionCallback","table","model","editor","plugins","get","getContainedElement","enqueueChange","discard","tableHeight","tableCellBackgroundColor","tableBorderColor","handleSuggestionDescription","start","has","tableBorderWidth","locale","data","tableCellBorderWidth","document","accept","join","TrackChangesEditing","afterInit","commandParams","tableCellVerticalAlignment","getAttribute","TableCellPropertiesEditing","formatBlock","tableCellWidth","pluginName","tableBorderStyle","_suggestionFactory","selection","tableCellHorizontalAlignment","removeAttribute","TableUtils","getSelectionAffectedTableCells","subType","tableProperties","registerCustomCallback","_getSuggestion","getSuggestions","findAncestor","format","TrackChangesTableProperties","change","*Format:* change table cell properties","tableWidth","setAttribute"];var Ga,Ha;Ga=Ua,Ha=343,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x26")]=[za("0xa"),za("0x1e"),za("0xe"),za("0x32"),za("0x2f"),za("0x8"),za("0x35")],this[za("0x34")]=[za("0x31"),"tableCellBorderStyle",za("0x11"),"tableCellPadding",za("0x1c"),"tableCellHeight",za("0x9"),za("0x21"),za("0x18")]}static get[za("0x1d")](){return za("0x2c")}[za("0x16")](){const t=this[za("0x2")][za("0x3")].get(za("0x15"));if(this[za("0x2")][za("0x3")][za("0xd")]("TablePropertiesEditing")){for(const e of this[za("0x26")])t.enableCommand(e,((t,n)=>{const o=this[za("0x2")][za("0x1")][za("0x12")][za("0x20")].getFirstPosition()[za("0x2a")](za("0x0"));this._handlePropertyChange(e,[o],this[za("0x26")],za("0x26"),t,n)}));t[za("0x1f")][za("0x27")](za("0x1b"),za("0x26"),za("0x13"),t[za("0x1f")][za("0x33")](za("0x1b"),null,za("0x7"))),t[za("0x1f")][za("0x27")](za("0x1b"),za("0x26"),"discard",((t,e)=>this.handleDiscardAction(this[za("0x26")],t,e))),t[za("0x1f")].registerCustomCallback(za("0x1b"),za("0x26"),"join",(()=>!1))}if(this.editor[za("0x3")].has(za("0x1a"))){for(const e of this[za("0x34")])t[za("0x36")](e,((t,n)=>{const o=this[za("0x2")][za("0x3")][za("0x4")](za("0x23"))[za("0x24")](this[za("0x2")].model[za("0x12")].selection);this._handlePropertyChange(e,o,this[za("0x34")],za("0x34"),t,n)}));t[za("0x1f")][za("0x27")]("formatBlock",za("0x34"),za("0x13"),t[za("0x1f")][za("0x33")](za("0x1b"),null,za("0x7"))),t[za("0x1f")][za("0x27")]("formatBlock",za("0x34"),"discard",((t,e)=>this.handleDiscardAction(this[za("0x34")],t,e))),t._suggestionFactory[za("0x27")]("formatBlock",za("0x34"),za("0x14"),(()=>!1))}t._descriptionFactory[za("0x37")]((t=>this[za("0xb")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this.editor.plugins[za("0x4")](za("0x15"));this.editor.model[za("0x6")](r.batch,(()=>{for(const t of e)if(this[za("0x28")](t,o))s(r);else{const e={};for(const o of n){const n=t[za("0x19")](o);void 0!==n&&(e[o]=n)}s(r),i.markBlockFormat(t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][za("0xc")].nodeAfter,s=n[za("0x17")][0];this[za("0x2")][za("0x1")][za("0x2d")]((e=>{for(const n of t)void 0!==s[n]?e[za("0x30")](n,s[n],o):e[za("0x22")](n,o)}))}handleSuggestionDescription(t){if(t[za("0x10")])switch(t[za("0x25")]){case za("0x26"):return{type:za("0x2b"),content:Yo(this[za("0x2")][za("0xf")],"*Format:* change table properties")};case za("0x34"):return{type:za("0x2b"),content:Yo(this.editor[za("0xf")],za("0x2e"))}}}_getSuggestion(t,e){const n=this.editor[za("0x3")][za("0x4")](za("0x15"));for(const o of n[za("0x29")]({skipNotAttached:!0})){const n=o[za("0x5")]();if(o[za("0x25")]===e&&n===t)return o}return null}}const Va=["never","has","isMultiRange","getMultiRangeId","detach","after","removeMarker","insertion:","insert","editor","ck-suggestion-marker","insertion","_cutOutSuggestionMarker","originalSuggestionId","$textProxy","change","getNearestSelectionRange","notReady","filter","containerElement","writer","bindElementToMarker","_createSuggestion","multipleBlocks","data-suggestion","buildSuggestion","forceDefaultExecution","hasComments","includes","start","fromRange","isBlock","formatBlock:","suggestionChanged","ck-suggestion-marker--active","discardSuggestion","multi","_getSuggestionData","showSuggestionHighlights","isSelectable","_suggestionFactory","formatGroupId","registerPostFixer","formatBlock:discard","PendingActions","commandName","open","_isDataLoaded","removeComment","fire","consume","upcast","nodeAfter","getCommentThread","_enabledCommands","updateSuggestion","createElement","PENDING_ACTION_SUGGESTION","data","containsRange","_addSuggestionMarker","acceptSelectedSuggestions","batch","marker-count","isAfter","oldRange","item","accepted","keys","enableCommand","remove","editingDowncast","getAttribute","_getAuthorFromId","tablePasteChainId","range","deletion:discard","targetPosition","suggestion-type","getRanges","isNextTo","deletion","get","_updateSuggestionData","fromCharCode","createPositionAfter","assign","from","createdAt","widget","name","addMarker:suggestion:formatBlock","acceptSuggestion","isDocumentOperation","$graveyard","attributes","change:activeMarkers","activeMarkers","authoredAt","track-changes-adapter-already-set","insertion:discard","addComment","formatInline:accept","every","_editor","_refreshSuggestionsChain","addRange","markerToData","acceptAllSuggestions","map","dataToMarker","stopListening","split","_mergeNestedSuggestions","addMarker:suggestion","push","registerCustomCallback","$marker","getChangedMarkers","author","add","track-changes-suggestion-not-found","model","removeMarker:suggestion:formatBlock","createRange","locale","markDeletion","chain","removeClass","low","hasSuggestion","removed","insertion:join","_adapter","adapter","addSuggestion","parent","documentSelection","deletion:join","plugins","suggestion:","getLastMatchingPosition","mapper","@external","high","rethrowUnexpectedError","subType","ck-suggestion-marker-","_getExternalAuthor","discardAllSuggestions","options","removeAttribute","_splitMarkerName","value","markBlockFormat","return","isObject","backward","commands","isTouching","containsRangeInObject","resolve","getAllAdjacentSuggestions","unbind","_addThreadToSuggestion","_onDiscard","nodeBefore","_suggestionState","document","conversion","refresh","addSuggestionData","discard","isInContent","isOwn","rootName","getMarkers","end","insertContent","isInsideObject","delete","stop","set","_commentsRepository","_findSuggestions","isAtStart","before","trackChanges.trackFormatChanges","addHighlight","commentThread","howMany","deletion:chain","track-changes-command-not-found","values","creator","ck-suggestion-marker-formatBlock","newRange","addMarker","updateMarker","length","forward","size","clear","authorName","splitPosition","getShiftedBy","consumable","some","_suggestions","type","_setSuggestionData","addCommentThread","getCustomProperty","track-changes-suggestion-data-mismatch","formatInline:join","_breakSuggestionMarker","formatInline:chain","position","removeMarkers","normal","join","differ","isRemovable","setAttribute","substr","getIntersection","setSelection","isAtEnd","TrackChangesEditing","unbindElementFromMarkerName","splice","trackChangesCommand","isBefore","_registerDefaultCallbacks","getFirstRange","root","always","formatBlock:accept","dataDowncast","formatInline:discard","formatInline","_joinSuggestions","editing","_defaultCallbacks","change:data","getSuggestionCallback","config","_isForcedDefaultExecutionBlock","_rangeIsInLocalUserInsertion","trackChanges","group","markerName","markerToHighlight","_removeSuggestion","lowest","collaboration.channelId","formatBlock","addClass","getWalker","Users","setTo","previous","isLimit","elementStart","deletion:accept","_trackFormatChanges","then","execute","listenTo","_handleNewSuggestionMarker","track-changes-user-not-found","_checkSuggestionCorrectness","isEqual","enableReadOnlyMode","next","createSelection","getSuggestion","applyOperation","schema","_joinWithAdjacentSuggestions","suggestion","highest","addMarkerName","suggestionLoaded","markInsertion","element","rejected","elementToElement","toViewElement","isIntersectingWithRange","markMultiRangeDeletion","CommentsRepository","for","getSuggestions","createPositionBefore","deleteContent","elementEnd","containsPosition","skipNestingCheck","getDifference","isCollapsed","_descriptionFactory","formatBlock:join","isUndo","ready","markMultiRangeInsertion","markers","createRangeIn","getChanges","getUser","pluginName","trackChanges.mergeNestedSuggestions","isLocal","_model","accept","markMultiRangeBlockFormat","define","insertion:accept","selection","sort","_customCallbacks","createPositionAt","dataReady","_setSuggestionRange"];var Ka,qa;Ka=Va,qa=129,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Va[t-=0]};class $a extends t.Plugin{static get requires(){return[Xa("0xa2"),r.Users,t.PendingActions,cs,ms,Rs,Ms,Bs,zs,$s,er,ir,ja,ur,pr,yr,Sr,Fr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Mi,ji,Wi,$i,tx,rx,dx,px,Cx,Sx,wx,Bx,Wx,$x,Oa,na,ca,Ea,Wa,ma,ka,Ia]}static get[Xa("0xb5")](){return Xa("0x63")}constructor(t){function e(t){return t.map((t=>String[Xa("0x117")](t)))[Xa("0x5b")]("")}super(t),this[Xa("0x35")](Xa("0x124"),[]),this.on(Xa("0x123"),((e,n,o,s)=>{this[Xa("0xb8")].change((()=>{for(const e of[...s,...o])this[Xa("0xb8")][Xa("0xb1")].has(e)&&t[Xa("0x71")].reconvertMarker(e)}))})),this[Xa("0xac")]=new ss(this[Xa("0xcc")][Xa("0x13d")].schema,this[Xa("0xcc")].locale),this[Xa("0x4")]=null,this[Xa("0xeb")]=new Ja(this[Xa("0xcc")]),this[Xa("0x4f")]=new Map,this[Xa("0x36")]=t[Xa("0xa")][Xa("0x115")]("CommentsRepository"),this._enabledCommands=new Set,this._model=this[Xa("0xcc")].model,this[Xa("0x26")]=new WeakMap,this[Xa("0x76")]=!1,t[Xa("0x75")].define("trackChanges.trackFormatChanges","default"),this._trackFormatChanges=t.config.get(Xa("0x3a")),t[Xa("0x75")][Xa("0xbb")](Xa("0xb6"),!0),this[Xa("0x134")]=t.config[Xa("0x115")]("trackChanges.mergeNestedSuggestions"),this[Xa("0x66")]=new u(t,this[Xa("0xf9")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,48,49,52])}init(){const t=this.editor;t.conversion[Xa("0xa3")]("editingDowncast")[Xa("0x7b")]({model:Xa("0x97"),view:t=>{const{id:e,type:n}=this[Xa("0x17")](t[Xa("0x7a")]),o=[Xa("0xcd"),Xa("0x12")+n];let s=3e3;return this.activeMarkers.includes(t.markerName)&&(o.push(Xa("0xe5")),s=3010),Xa("0x114")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Xa("0x28")][Xa("0xa3")](Xa("0x6d")).add((e=>{e.on(Xa("0x135"),((e,n,o)=>{if(!o[Xa("0x15")][Xa("0xe9")])return;const s=n[Xa("0x105")];if(!s)return;const r=o[Xa("0xd")][Xa("0x9f")](s);t.model.schema[Xa("0x1b")](s)&&r&&!r[Xa("0x53")](Xa("0x11c"))&&r.is(Xa("0xd6"))&&(0,x.toWidget)(r,o.writer)}),{priority:Xa("0xf")})})),t[Xa("0x28")][Xa("0xa3")](Xa("0x6d"))[Xa("0x7b")]({model:Xa("0x97"),view:(t,e)=>{if(!e[Xa("0x15")][Xa("0xe9")])return null;const{type:n}=this[Xa("0x17")](t[Xa("0x7a")]);return{classes:[Xa("0xcd"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Xa("0x105")])return;if(o[Xa("0x105")].is(Xa("0xbd")))return void s[Xa("0x4d")].consume(o[Xa("0x105")],n.name);const r=s[Xa("0xd")][Xa("0x9f")](o[Xa("0x105")]);if(!o.item.is(Xa("0x9c"))||!t.model[Xa("0x95")].isBlock(o[Xa("0x105")])||r[Xa("0x53")](Xa("0x3b")))return;const{id:i}=this[Xa("0x17")](o.markerName);s[Xa("0xd7")][Xa("0x80")]([Xa("0xcd"),Xa("0x42")],r),s[Xa("0xd7")][Xa("0x5e")](Xa("0xdb"),i,r),s[Xa("0xd")][Xa("0xd8")](r,o[Xa("0x7a")]),e&&(this[Xa("0x124")][Xa("0xdf")](o[Xa("0x7a")])?s.writer[Xa("0x80")](Xa("0xe5"),r):s[Xa("0xd7")][Xa("0x143")](Xa("0xe5"),r));for(const e of t.model[Xa("0xb2")](o[Xa("0x105")]).getItems())s[Xa("0x4d")].consume(e,n.name);s[Xa("0x4d")][Xa("0xf5")](o.item,n.name)};t[Xa("0x28")].for(Xa("0x6d"))[Xa("0x13b")]((t=>{t.on(Xa("0x11e"),((t,e,o)=>{o.options[Xa("0xe9")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Xa("0x98")})})),t[Xa("0x28")][Xa("0xa3")](Xa("0x6d"))[Xa("0x12e")]({model:"suggestion",view:(t,e)=>e[Xa("0x15")][Xa("0xe9")]?null:{group:Xa("0x97"),name:t[Xa("0x5f")](11)}}),t[Xa("0x28")][Xa("0xa3")]("upcast")[Xa("0x9e")]({view:{name:Xa("0x97"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Xa("0xb")+t[Xa("0x10b")](Xa("0x111"))+":"+t[Xa("0x10b")]("id");return t[Xa("0x10b")]("marker-count")&&(n+=":"+t[Xa("0x10b")](Xa("0x102"))),e[Xa("0xfb")](Xa("0x138"),{"data-name":n})}}),t[Xa("0x28")][Xa("0xa3")](Xa("0xf6"))[Xa("0x131")]({view:Xa("0x97")}),t.conversion[Xa("0xa3")](Xa("0x10a")).add((t=>{t.on(Xa("0x11e"),n(),{priority:"high"})})),t[Xa("0x28")][Xa("0xa3")](Xa("0x10a"))[Xa("0x13b")]((t=>{t.on(Xa("0x13e"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[Xa("0x7a")]);if(o)for(const t of o)t.getCustomProperty(Xa("0x3b"))||(n[Xa("0xd7")].removeClass([Xa("0xcd"),Xa("0x42"),"ck-suggestion-marker--active"],t),n[Xa("0xd7")][Xa("0x16")]("data-suggestion",t),n[Xa("0xd")][Xa("0x64")](t,e[Xa("0x7a")]))}),{priority:"high"})})),t[Xa("0x13d")][Xa("0x27")][Xa("0xed")]((e=>{let n=!1;const o=Array[Xa("0x11a")](t[Xa("0x13d")][Xa("0x27")][Xa("0x5c")].getChangedMarkers()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0x17")](x);if(Xa("0x97")!==o)continue;const d=this[Xa("0x4f")][Xa("0x115")](l);if(null!=a[Xa("0x43")])if(Xa("0x6f")==c&&(n=n||Ya(a[Xa("0x43")],x,e,t.model[Xa("0x95")])),a.newRange.isCollapsed||"$graveyard"==a[Xa("0x43")].root[Xa("0x2e")]||Xa("0x7f")==c&&!ec(a[Xa("0x43")])||Xa("0x114")==c&&(Za(i=a[Xa("0x43")])||(r=i)[Xa("0xe0")].parent==r[Xa("0x30")][Xa("0x25")]&&r.start[Xa("0x62")]))e.removeMarker(x),n=!0;else{if(!d||!d[Xa("0x2c")])continue;s[Xa("0x13b")](d)}}var r,i;return s[Xa("0x48")]>0&&(n=!!this[Xa("0x96")](s)||n),n})),t[Xa("0x13d")][Xa("0x27")][Xa("0xed")]((e=>{let n=!1;for(const o of t[Xa("0x13d")][Xa("0x27")][Xa("0x5c")][Xa("0xb3")]()){if(Xa("0xcb")!=o.type)continue;const s=o[Xa("0x58")].getShiftedBy(o[Xa("0x46")]);if(s[Xa("0x62")])for(const r of this[Xa("0x4f")][Xa("0x40")]()){if(r.isMultiRange||!r[Xa("0x2c")])continue;if(Xa("0x7f")!=r.type)continue;const i=r[Xa("0x69")]();if(i[Xa("0xe0")][Xa("0x7")]!=i.end[Xa("0x7")]&&i[Xa("0x30")].isEqual(o.position)){const o=t.model[Xa("0x13f")](i[Xa("0xe0")],s);e[Xa("0x45")](r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[Xa("0x13d")][Xa("0xb1")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[Xa("0x17")](e.name),n=this[Xa("0x4f")][Xa("0x115")](t);n&&n.addMarkerName(e[Xa("0x11d")])}})),t[Xa("0x13d")].document.on(Xa("0x73"),(()=>{const e=Array[Xa("0x11a")](t.model[Xa("0x27")][Xa("0x5c")][Xa("0x139")]())[Xa("0xd5")]((t=>Xa("0x97")===this._splitMarkerName(t[Xa("0x11d")])[Xa("0x79")]));if(0===e[Xa("0x46")])return;e[Xa("0xbe")](((t,e)=>{const n=t[Xa("0xfd")][Xa("0x104")],o=e[Xa("0xfd")][Xa("0x104")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Xa("0xe0")][Xa("0x67")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0x17")](t);if(null===s.oldRange){const e=this[Xa("0x8c")](t);o.add(e)}else{const t=this._suggestions[Xa("0x115")](e);null!==s[Xa("0x43")]||t[Xa("0x2c")]?(n[Xa("0x13b")](t.head),o.add(t)):this[Xa("0x7c")](t)}}o.size>0&&this[Xa("0x12c")](o);for(const t of n)this.fire(Xa("0xe4"),t)})),t[Xa("0x13d")].on(Xa("0x94"),((e,n)=>{const o=n[0];if(!this[Xa("0x4f")][Xa("0x48")])return;if(!o[Xa("0x120")])return;if(o[Xa("0x101")][Xa("0xae")]||!o[Xa("0x101")][Xa("0xb7")])return;let s,r;switch(o[Xa("0x50")]){case Xa("0xcb"):s=t.model[Xa("0xc0")](o[Xa("0x58")]),r=s[Xa("0x4c")](o[Xa("0x3d")]);break;case"split":s=t.model.createPositionAt(o[Xa("0x4b")]),r=t[Xa("0x13d")][Xa("0xc0")](o.moveTargetPosition);break;case"move":s=t[Xa("0x13d")].createPositionAt(o[Xa("0x110")]),r=s[Xa("0x4c")](o.howMany);break;default:return}const i=t[Xa("0x13d")][Xa("0x13f")](s,r);t.model[Xa("0xd2")]((()=>{for(const{suggestion:t,meta:e}of this[Xa("0x37")](i)){if(t[Xa("0xc5")])continue;if("formatInline"==t[Xa("0x50")])continue;const n=t[Xa("0xfd")]&&t.data[Xa("0xda")];(Xa("0x7f")!=t[Xa("0x50")]||"split"==o[Xa("0x50")]&&!n)&&(e.containsRangeInObject||Xa("0xce")==t.type&&e[Xa("0x2d")]||t[Xa("0x69")]().containsRange(i)&&this[Xa("0x56")](t,s,r))}}))}),{priority:Xa("0x7d")}),t.model.on(Xa("0xa6"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Xa("0xdd")])return;if(this[Xa("0x76")])return;if(!this[Xa("0x66")][Xa("0x18")])return;if(o[Xa("0xab")])return;const r=t.model[Xa("0x95")],{start:i,end:x}=o[Xa("0x69")](),a=i[Xa("0xf7")]&&r[Xa("0x85")](i[Xa("0xf7")])?null:r[Xa("0xd3")](i,Xa("0x47")),c=x[Xa("0x25")]&&r[Xa("0x85")](x.nodeBefore)?null:r[Xa("0xd3")](x,"backward"),l=t.model[Xa("0x13f")](a?a[Xa("0xe0")]:i,c?c[Xa("0x30")]:x);t[Xa("0x13d")][Xa("0xd2")]((e=>{this[Xa("0x141")](l);const n=t[Xa("0x13d")].schema[Xa("0xd3")](l[Xa("0xe0")]);o.is(Xa("0x8"))?e[Xa("0x61")](n):o[Xa("0x83")](n)})),e[Xa("0x34")]()}),{priority:e.priorities[Xa("0x5a")]+10}),t[Xa("0x13d")].on(Xa("0x31"),((e,n)=>{const o=n[n.length-1];o&&o.forceDefaultExecution||this._isForcedDefaultExecutionBlock||this.trackChangesCommand[Xa("0x18")]&&(t[Xa("0x13d")][Xa("0xd2")]((()=>{let o=t[Xa("0x13d")][Xa("0x31")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Xa("0x1a")]=o.clone();const s=o.end[Xa("0x25")],r=t[Xa("0x13d")].schema;s&&r[Xa("0xe2")](s)&&!r.isObject(s)&&(o=t[Xa("0x13d")][Xa("0x13f")](o.start,t[Xa("0x13d")][Xa("0xc0")](s,"end"))),this[Xa("0x9b")](o)})),e.stop())}),{priority:Xa("0xf")}),this[Xa("0xcc")][Xa("0x1d")][Xa("0x13b")](Xa("0x78"),this[Xa("0x66")]),this[Xa("0x108")](Xa("0x78"));const o=new p(t,this[Xa("0x4f")]);t.commands[Xa("0x13b")]("acceptSuggestion",o),this[Xa("0x108")]("acceptSuggestion");const s=new C(t,this[Xa("0x4f")]);t[Xa("0x1d")][Xa("0x13b")]("discardSuggestion",s),this.enableCommand(Xa("0xe6")),t.commands.add("acceptAllSuggestions",new F(t,o,this[Xa("0x4f")])),this[Xa("0x108")](Xa("0x12f")),t[Xa("0x1d")].add(Xa("0x14"),new F(t,s,this[Xa("0x4f")])),this[Xa("0x108")]("discardAllSuggestions"),t[Xa("0x1d")][Xa("0x13b")](Xa("0x100"),new U(t,o,this[Xa("0x4f")])),this.enableCommand(Xa("0x100")),t[Xa("0x1d")][Xa("0x13b")]("discardSelectedSuggestions",new U(t,s,this[Xa("0x4f")])),this.enableCommand("discardSelectedSuggestions");const r=t.plugins[Xa("0x115")](Xa("0xa2"));this[Xa("0x8b")](r,Xa("0x128"),((t,{threadId:e})=>{const n=this[Xa("0x4f")][Xa("0x115")](e);n&&n[Xa("0x3c")]&&1===n[Xa("0x3c")].length&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:Xa("0x0")}),this[Xa("0x8b")](r,Xa("0xf3"),((t,{threadId:e})=>{const n=this._suggestions[Xa("0x115")](e);n&&n[Xa("0x3c")]&&!n[Xa("0x3c")][Xa("0x46")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:"low"})}set[Xa("0x5")](t){if(this._adapter)throw new e.CKEditorError(Xa("0x126"),this);this[Xa("0x4")]=t}get[Xa("0x5")](){return this[Xa("0x4")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[Xa("0x40")]())t&&!e[Xa("0x2c")]||n[Xa("0x136")](e);return e?n[Xa("0x130")]((t=>t.toJSON())):n}[Xa("0x93")](t){const n=this[Xa("0x4f")][Xa("0x115")](t);if(!n)throw new e.CKEditorError(Xa("0x13c"),this);return n}[Xa("0x1")](t){return this[Xa("0x4f")][Xa("0xc4")](t)}[Xa("0x2a")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Xa("0x50")].split(":"),i=this[Xa("0x4f")][Xa("0x115")](n)||this[Xa("0xd9")](s,r,n,e,o);if(this[Xa("0x23")](i),this._checkSuggestionCorrectness(i,s,r||null,e),i[Xa("0x11b")]=t[Xa("0x11b")],i._isDataLoaded=!0,o&&o[Xa("0xe")]){const t=o["@external"],e=this[Xa("0x13")](t[Xa("0x4a")]);i.authoredAt=t[Xa("0x11b")],i[Xa("0x13a")]=e,i.isExternal=!0}else i[Xa("0x125")]=t[Xa("0x11b")];switch(t.data&&(i[Xa("0xfd")]=t[Xa("0xfd")]),t.attributes&&(i.attributes=t[Xa("0x122")]),this[Xa("0x4")]&&this[Xa("0x4")].addSuggestion||(i._saved=!0),this[Xa("0x26")][Xa("0x115")](i)){case"notReady":this[Xa("0x26")][Xa("0x35")](i,Xa("0xc1"));break;case"markerReady":i[Xa("0x2c")]?(this[Xa("0x12c")](new Set([i])),this[Xa("0x96")](new Set([i])),this[Xa("0x26")][Xa("0x35")](i,Xa("0xaf")),this[Xa("0xf4")](Xa("0x9a"),i)):this._suggestionState[Xa("0x35")](i,Xa("0x2"))}return i}[Xa("0x11f")](t){this[Xa("0xdd")]((()=>{this[Xa("0xcc")].model[Xa("0xd2")]((()=>{for(const e of t[Xa("0x21")]())e[Xa("0xb9")]()}))}))}[Xa("0xe6")](t){this[Xa("0xdd")]((()=>{this[Xa("0xcc")].model[Xa("0xd2")]((()=>{for(const e of t[Xa("0x21")]())e[Xa("0x2b")]()}))}))}[Xa("0x108")](t,n){const o=this[Xa("0xcc")][Xa("0x1d")][Xa("0x115")](t);if(!o)throw new e.CKEditorError(Xa("0x3f"),this,{commandName:t});this[Xa("0xf9")][Xa("0x13b")](o),n&&o.on("execute",((t,e)=>{this[Xa("0x66")].value&&(this._isForcedDefaultExecutionBlock||e.length>0&&e[e[Xa("0x46")]-1]&&e[e.length-1][Xa("0xdd")]||(n(((...t)=>o[Xa("0x8a")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:Xa("0xf")})}[Xa("0xdd")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this[Xa("0x76")]=!0;try{n=t()}catch(t){o=t}return s||(this[Xa("0x76")]=!1),o&&e.CKEditorError[Xa("0x10")](o,this),n}[Xa("0x9b")](t,n=null,o={}){if(t[Xa("0xab")])return null;const s=this.editor[Xa("0xa")][Xa("0x115")](Xa("0x82")).me;for(const{suggestion:e,meta:s}of this[Xa("0x37")](t,Xa("0xce")))if(s[Xa("0x2d")]){if(!s[Xa("0x113")]){if(s[Xa("0x1f")]){if(!this[Xa("0x134")]||!rc(e,o))continue;return e}if(rc(e,o))return e;this[Xa("0x56")](e,t[Xa("0xe0")],t[Xa("0x30")]);break}if(n==e[Xa("0x11")]&&rc(e,o)){const n=e[Xa("0x69")]();return n.start[Xa("0x8f")](t[Xa("0x30")])?this[Xa("0xc2")](e,this._model.createRange(t.start,n[Xa("0x30")])):this[Xa("0xc2")](e,this[Xa("0xb8")][Xa("0x13f")](n[Xa("0xe0")],t[Xa("0x30")])),e}}const r=(0,e.uid)(),i=s.id,x=n?"insertion:"+n:Xa("0xce"),a=this[Xa("0x51")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0xff")](x,r,i,t),a}[Xa("0xb0")](t,n=Xa("0xe7"),o={}){const s=this[Xa("0xcc")][Xa("0xa")][Xa("0x115")](Xa("0x82")).me,r=this[Xa("0xeb")][Xa("0x74")](Xa("0xce"),n,Xa("0x5b"));for(const e of this[Xa("0xa4")]())if(e[Xa("0x13a")].id==s.id&&Xa("0xce")==e[Xa("0x50")]&&e[Xa("0x11")]==n&&rc(e,o)&&(r(e[Xa("0x112")](),t)||r(t,e[Xa("0x112")]()))){for(const n of t)e[Xa("0x12d")](n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion")){if(!n.isOwn)continue;if(!this[Xa("0x134")]&&n[Xa("0x1f")])continue;if(!rc(e,o))continue;let s=!0;for(const n of e[Xa("0x112")]())for(const e of t)if(!n[Xa("0xfe")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=Xa("0xca")+n,c=this[Xa("0x51")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Xa("0xff")](a,i,x,e,Zo[Xa("0xc6")]());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||tc(n),t[Xa("0xab")])return null;if(Xa("0xc3")===this._trackFormatChanges){const e=this[Xa("0xeb")][Xa("0x74")](Xa("0x6f"),o,"accept");return this[Xa("0xdd")]((()=>e([t],n,s))),null}const r=this[Xa("0xcc")][Xa("0xa")].get(Xa("0x82")).me,i=[];if(Xa("0x6b")!==this[Xa("0x88")])for(const{suggestion:e,meta:n}of this[Xa("0x37")](t,Xa("0xce")))n.isOwn&&!n[Xa("0x32")]&&i.push(...e[Xa("0x112")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[Xa("0x136")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Xa("0x46")];){const o=n[e][Xa("0xaa")](t);n[Xa("0x65")](e,1,...o),e+=o[Xa("0x46")]}}return n}(t,i);x[Xa("0x46")]&&this._model[Xa("0xd2")]((()=>{for(const t of x){const e=this[Xa("0xeb")].getSuggestionCallback(Xa("0x6f"),o,Xa("0xb9"));this[Xa("0xdd")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Xa("0xe0")],a=t[Xa("0x30")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,Xa("0x6f"))){if(!n[Xa("0x2d")])continue;if(e[Xa("0x11")]!=o)continue;if(!rc(e,s))continue;const r=e[Xa("0x69")]();if(r[Xa("0xfe")](t,!0))return null;x=x[Xa("0x67")](r[Xa("0xe0")])?x:r[Xa("0xe0")],a=a[Xa("0x103")](r[Xa("0x30")])?a:r[Xa("0x30")],i?r[Xa("0xe0")][Xa("0x67")](i[Xa("0x69")]().start)?(i[Xa("0x59")](),i=e):e[Xa("0x59")]():i=e}const c=this[Xa("0xb8")][Xa("0x13f")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this._setSuggestionData({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Xa("0xff")]("formatInline:"+o,t,i,c)}}return null}[Xa("0x19")](t,n,o=[],s=null,r={}){n[Xa("0xec")]||(n[Xa("0xec")]=n[Xa("0xf0")]),n[Xa("0xda")]=t.is("range"),s=s||tc(n);const i=o[Xa("0x130")]((t=>nc(t,this[Xa("0xb8")]))),x=t.is(Xa("0x10e"))?t:nc(t,this[Xa("0xb8")]);if(Xa("0xc3")===this[Xa("0x88")]){const t=this[Xa("0xeb")].getSuggestionCallback(Xa("0x7f"),s,Xa("0xb9"));return this[Xa("0xdd")]((()=>t([x],n,r))),null}i[Xa("0x136")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&Xa("0x6b")!==this._trackFormatChanges){const t=this[Xa("0xeb")][Xa("0x74")](Xa("0x7f"),s,"accept");return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[Xa("0xe0")],d=x.end;for(const{suggestion:t,meta:e}of this[Xa("0x37")](x,Xa("0x7f"))){if(!e.isOwn)continue;if(e[Xa("0x113")]||e.containsRangeInObject||e[Xa("0x32")])continue;if(t.data.formatGroupId!=n[Xa("0xec")])continue;if(!rc(t,r))continue;const o=t[Xa("0x69")]();if(t[Xa("0x11")]==s){if(o[Xa("0xfe")](x,!0))return null;l=l[Xa("0x67")](o[Xa("0xe0")])?l:o.start,d=d[Xa("0x103")](o[Xa("0x30")])?d:o.end,c?o.start[Xa("0x67")](c.getFirstRange()[Xa("0xe0")])?(c[Xa("0x59")](),c=t):t.removeMarkers():c=t}else{const e=x.getIntersection(o);this[Xa("0xcf")](t,e)}}const u=this[Xa("0xcc")][Xa("0xa")][Xa("0x115")](Xa("0x82")).me,g=(0,e.uid)(),m=u.id;if(c)return this[Xa("0xc2")](c,this._model[Xa("0x13f")](l,d)),c;{const t=this[Xa("0x51")]({id:g,type:Xa("0xe3")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Xa("0xff")](Xa("0xe3")+s,g,m,this[Xa("0xb8")][Xa("0x13f")](l,d)),t}}[Xa("0xba")](t,n,o=[],s=null,r={}){n[Xa("0xec")]||(n[Xa("0xec")]=n[Xa("0xf0")]);const i=t[0];n[Xa("0xda")]=i.is(Xa("0x10e")),s=s||tc(n);const x=o.map((t=>nc(t,this[Xa("0xb8")]))),a=i.is(Xa("0x10e"))?t:t[Xa("0x130")]((t=>nc(t,this._model)));if("never"===this[Xa("0x88")]){const t=this._suggestionFactory[Xa("0x74")](Xa("0x7f"),s,Xa("0xb9"));return this[Xa("0xdd")]((()=>t(a,n,r))),null}x[Xa("0x136")](...a);let c=!0;for(const t of x)if(!this[Xa("0x77")](t)){c=!1;break}if(c&&"always"!==this._trackFormatChanges){const t=this[Xa("0xeb")][Xa("0x74")](Xa("0x7f"),s,Xa("0xb9"));return this[Xa("0xdd")]((()=>t(a,n,r))),null}const l=this[Xa("0xcc")].plugins[Xa("0x115")]("Users").me;for(const t of this[Xa("0xa4")]()){if(t.author.id!=l.id)continue;if(Xa("0x7f")!=t.type||t[Xa("0xfd")][Xa("0xec")]!=n[Xa("0xec")])continue;if(!rc(t,r))continue;const e=t.subType==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t[Xa("0x2f")]()){const r=s.getRange();if(o.isEqual(r)){e?(a[Xa("0x65")](n,1),n--):t[Xa("0xc9")](s.name);break}}}}if(0==a[Xa("0x46")])return null;const d=this[Xa("0xeb")].getSuggestionCallback(Xa("0x7f"),s,Xa("0x5b"));for(const t of this.getSuggestions())if(t[Xa("0x13a")].id==l.id&&Xa("0x7f")==t[Xa("0x50")]&&t[Xa("0xfd")][Xa("0xec")]==n.formatGroupId&&t.subType==s&&rc(t,r)&&(d(t[Xa("0x112")](),a)||d(a,t[Xa("0x112")]()))){for(const e of a)t[Xa("0x12d")](e);return t}const u=(0,e.uid)(),g=l.id,m=Xa("0xe3")+s,f=this[Xa("0x51")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Xa("0xff")](m,u,g,t,Zo[Xa("0xc6")]());return f}[Xa("0x141")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this.editor[Xa("0xa")][Xa("0x115")](Xa("0x82")).me,r=new i.LiveRange(t[Xa("0xe0")],t[Xa("0x30")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,"insertion"))if(e[Xa("0x2d")]&&!e[Xa("0x113")])if(t[Xa("0xc5")]){const e=t[Xa("0x112")]()[Xa("0xd5")]((t=>Xa("0x121")!=t[Xa("0x6a")].rootName));if(e[Xa("0x12a")]((t=>r[Xa("0xfe")](t,!0)))&&t[Xa("0x2b")](),e.some((t=>t[Xa("0xfe")](r,!0)))){const t=this[Xa("0xeb")][Xa("0x74")](Xa("0x114"),n,Xa("0xb9"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[Xa("0x60")](t[Xa("0x69")]());null!==e&&t[Xa("0x24")]([e],null,o)}if(r[Xa("0xc7")](),r[Xa("0xab")]||Xa("0x121")==r[Xa("0x6a")][Xa("0x2e")])return null;let x=null,a=r[Xa("0xe0")],c=r[Xa("0x30")];const l=this[Xa("0x37")](r,Xa("0x114"));for(const{suggestion:t,meta:e}of l){const n=this._model[Xa("0x13f")](a,c);if(e[Xa("0x2d")]&&(this[Xa("0x134")]||!e[Xa("0x1f")]&&!e[Xa("0x32")]))if(t.isMultiRange){if(!rc(t,o))continue;let e=!0;for(const o of t[Xa("0x112")]()){if(o.containsRange(n,!0))return t;n[Xa("0xfe")](o)||(e=!1)}e&&t[Xa("0x2b")]()}else{const e=t[Xa("0x69")]();if(e[Xa("0xfe")](n,!0))return t;if(!rc(t,o)){n.containsRange(e)?t[Xa("0x59")]():e[Xa("0xa8")](a)?a=e[Xa("0x30")]:e.containsPosition(c)&&(c=e.start);continue}a=a[Xa("0x67")](e[Xa("0xe0")])?a:e.start,c=c[Xa("0x103")](e[Xa("0x30")])?c:e[Xa("0x30")],o=Object[Xa("0x119")]({},t[Xa("0x122")]),x?e[Xa("0xe0")][Xa("0x67")](x[Xa("0x69")]().start)?(x.removeMarkers(),x=t):t.removeMarkers():x=t}}if(x)return this[Xa("0xc2")](x,this[Xa("0xb8")][Xa("0x13f")](a,c)),x;{const t=(0,e.uid)(),r=this[Xa("0xb8")][Xa("0x13f")](a,c),i=s.id,x=n?"deletion:"+n:Xa("0x114"),l=this[Xa("0x51")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0xff")](x,t,i,r),l}}[Xa("0xa1")](t,n=Xa("0xe7"),o={}){const s=this.editor[Xa("0xa")][Xa("0x115")](Xa("0x82")).me,r=t[Xa("0x130")]((t=>new i.LiveRange(t[Xa("0xe0")],t.end))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(r,Xa("0xce")))e[Xa("0x2d")]&&!e[Xa("0x113")]&&x.add(t);for(const e of x)if(e[Xa("0xc5")]){const s=e[Xa("0x112")]();if((!e[Xa("0x122")]||!e.attributes.skipNestingCheck)&&s[Xa("0x12a")]((t=>r[Xa("0x4e")]((e=>e[Xa("0xfe")](t,!0)))))&&e[Xa("0x2b")](),r[Xa("0x12a")]((t=>s[Xa("0x4e")]((e=>e.containsRange(t,!0)))))){const e=this[Xa("0xeb")].getSuggestionCallback(Xa("0x114"),n,Xa("0xb9"));return this[Xa("0xdd")]((()=>e(t,null,o))),null}}else{const t=e[Xa("0x69")]();if(r[Xa("0x4e")]((e=>e[Xa("0xfe")](t,!0)))&&e[Xa("0x2b")](),r[Xa("0x12a")]((e=>t.containsRange(e,!0)))){const t=this._suggestionFactory[Xa("0x74")]("deletion",n,Xa("0xb9"));return this[Xa("0xdd")]((()=>t(r,null,o))),null}}const a=this._suggestionFactory[Xa("0x74")](Xa("0x114"),n,Xa("0x5b"));let c=null;for(const t of this[Xa("0xa4")]())if(t[Xa("0x13a")].id==s.id&&t[Xa("0x2c")]&&Xa("0x114")==t[Xa("0x50")]&&t[Xa("0x11")]==n&&rc(t,o)&&(a(t[Xa("0x112")](),r)||a(r,t.getRanges())))if(c){if(t[Xa("0x3c")]&&t[Xa("0x3c")].length)continue;for(const e of t.getRanges())c[Xa("0xa0")](e)||c[Xa("0x12d")](e);t.removeMarkers()}else{c=t;for(const e of r)t[Xa("0xa0")](e)||t[Xa("0x12d")](e)}if(c)return c;x[Xa("0x49")]();for(const{suggestion:t,meta:e}of this[Xa("0x37")](r,Xa("0x114")))e[Xa("0x2d")]&&(this[Xa("0x134")]||!e[Xa("0x1f")]&&!e.isInsideObject)&&rc(t,o)&&x[Xa("0x13b")](t);for(const t of x){const e=t[Xa("0x112")]();if((!o||!o[Xa("0xa9")])&&r[Xa("0x12a")]((t=>e[Xa("0x4e")]((e=>e[Xa("0xfe")](t,!0))))))return t;(!t.attributes||!t.attributes[Xa("0xa9")])&&e.every((t=>r.some((e=>e[Xa("0xfe")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[Xa("0xc7")](),t[Xa("0xab")]||Xa("0x121")==t[Xa("0x6a")].rootName||this[Xa("0xff")](u,l,d,t,Zo[Xa("0xc6")]());return g}[Xa("0xc2")](t,e){const n=t.getFirstMarker();this._model[Xa("0xd2")]((t=>{t[Xa("0x45")](n,{range:e})}))}[Xa("0x23")](t){const e=t.id,n=this[Xa("0xcc")][Xa("0x75")][Xa("0x115")](Xa("0x7e"));this._commentsRepository.hasCommentThread(e)||this[Xa("0x36")][Xa("0x52")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xa("0x36")][Xa("0xf8")](e);o[Xa("0x22")](Xa("0x5d")),o.isRemovable=!1,t[Xa("0x3c")]=o}[Xa("0x8e")](t,n,o,s){if(t[Xa("0x50")]!=n||t[Xa("0x11")]!=o||t[Xa("0x41")].id!=s)throw this[Xa("0xcc")][Xa("0x90")](Xa("0x54")),new e.CKEditorError(Xa("0x54"),this)}[Xa("0xcf")](t,n){const o=t.getFirstRange();if(n[Xa("0x8f")](o))t[Xa("0x59")]();else if(o[Xa("0xfe")](n)){const s=this[Xa("0xb8")].createPositionAt(n[Xa("0xe0")][Xa("0x25")],Xa("0x30"));this[Xa("0xc2")](t,this._model[Xa("0x13f")](o.start,s));const r=(0,e.uid)(),i=t.creator.id,x=t[Xa("0x50")]+":"+t[Xa("0x11")];this[Xa("0x51")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[Xa("0x122")]});const a=this[Xa("0xb8")][Xa("0xc0")](n.end.parent,Xa("0xc8")),c=this[Xa("0xb8")][Xa("0x13f")](a,o[Xa("0x30")]);this._addSuggestionMarker(x,r,i,c)}else if(o[Xa("0xa8")](n[Xa("0xe0")])){const e=this[Xa("0xb8")][Xa("0xc0")](n.start.nodeBefore,Xa("0x30"));this[Xa("0xc2")](t,this._model.createRange(o[Xa("0xe0")],e))}else{const e=this[Xa("0xb8")][Xa("0xc0")](n.end[Xa("0x7")],Xa("0xc8"));this[Xa("0xc2")](t,this[Xa("0xb8")][Xa("0x13f")](e,o[Xa("0x30")]))}}[Xa("0x77")](t){for(const{suggestion:e,meta:n}of this[Xa("0x37")](t,Xa("0xce"))){if(!n.isOwn)continue;const o=e[Xa("0x112")]();for(const e of o)if(!t.getDifference(e)[Xa("0x46")])return!0}return!1}_getAuthorFromId(t){const n=this[Xa("0xcc")][Xa("0xa")][Xa("0x115")](Xa("0x82"))[Xa("0xb4")](t);if(!n)throw new e.CKEditorError(Xa("0x8d"),this);return n}[Xa("0x13")](t){const e=this.editor[Xa("0xa")][Xa("0x115")]("Users"),n=(0,r.hashObject)("external:"+t);return e.getUser(n)||e.addUser({id:n,name:t})}[Xa("0xd9")](t,e,n,o,s){const r=this[Xa("0x10c")](o),i=this._suggestionFactory[Xa("0xdc")](t,e,n,r,s,(t=>this[Xa("0x116")](n,{attributes:t})));return this[Xa("0x8b")](i,Xa("0xb9"),(()=>{this[Xa("0x116")](n,{state:Xa("0x106")})}),{priority:"high"}),this.listenTo(i,Xa("0x2b"),(()=>{this[Xa("0x116")](n,{state:Xa("0x9d")})}),{priority:"high"}),this[Xa("0x4f")][Xa("0x35")](n,i),this[Xa("0x26")][Xa("0x35")](i,"notReady"),i}[Xa("0x17")](t){const e=t[Xa("0x133")](":");return{group:e[0],type:e[1],subType:e[Xa("0x46")]>=5?e[2]:null,id:e[Xa("0x46")]<5?e[2]:e[3],authorId:e[Xa("0x46")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t[Xa("0x69")](),r=s[Xa("0xe0")],i=s[Xa("0x30")];this[Xa("0xc2")](t,this[Xa("0xb8")].createRange(r,n));const x=(0,e.uid)(),a=t[Xa("0x41")].id,c=t[Xa("0x50")]+(t[Xa("0x11")]?":"+t[Xa("0x11")]:"");this[Xa("0x51")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t.data}),Xa("0x7f")==t[Xa("0x50")]&&(o=this[Xa("0xb8")][Xa("0xa5")](o[Xa("0x7")])),this[Xa("0xff")](c,x,a,this[Xa("0xb8")].createRange(o,i))}[Xa("0x37")](t,e=null){const n=[],o=this[Xa("0xcc")][Xa("0xa")][Xa("0x115")](Xa("0x82")).me;Array.isArray(t)||(t=[t]);for(const s of this[Xa("0xa4")]()){if(!s.isInContent)continue;if(e&&s[Xa("0x50")]!=e)continue;let r=!1;for(const e of s[Xa("0x112")]()){for(const i of t){const t=i[Xa("0xe0")].isEqual(e[Xa("0x30")])||i[Xa("0x30")].isEqual(e[Xa("0xe0")]);if(t||i[Xa("0x60")](e)){const x=i[Xa("0xfe")](e)&&Qa(this._model[Xa("0x95")],e.start,i),a=e.containsRange(i)&&Qa(this[Xa("0xb8")].schema,i.start,e);n[Xa("0x136")]({suggestion:s,meta:{isOwn:o==s[Xa("0x13a")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[Xa("0xff")](t,e,n,o,s){this._model[Xa("0xd2")]((r=>{let i=Xa("0xb")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Xa("0x44")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0x7c")](t){const e=t[Xa("0x84")],n=t[Xa("0x91")];t[Xa("0x84")]=null,null!=e&&(e.next=null),t[Xa("0x91")]=null,null!=n&&(n.previous=null),Xa("0xaf")==this._suggestionState[Xa("0x115")](t)&&(this._suggestionState[Xa("0x35")](t,"removed"),this[Xa("0xf4")]("suggestionUnloaded",t,e,n))}[Xa("0x51")](t){const n=t.id,o=this.addSuggestionData(t);if(this[Xa("0x4")]&&this[Xa("0x4")][Xa("0x6")]){const s=this[Xa("0xcc")][Xa("0xa")][Xa("0x115")](Xa("0xef")),r=o[Xa("0xde")],i=o[Xa("0x11")]?o[Xa("0x50")]+":"+o.subType:o.type,x=this[Xa("0xcc")][Xa("0x140")],a=s[Xa("0x13b")](Yo(x,Xa("0xfc"))),c={id:n,type:i,hasComments:r,data:t.data||null,originalSuggestionId:t[Xa("0xd0")]||null,attributes:o[Xa("0x122")]};this[Xa("0x4")].addSuggestion(c)[Xa("0x89")]((t=>{o._saved=!0,s[Xa("0x109")](a),t&&t.createdAt&&(this[Xa("0x4f")].get(n).createdAt=t[Xa("0x11b")])})).catch((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[Xa("0xcc")].model.enqueueChange({isUndoable:!1},(()=>{o[Xa("0x2b")]()})),o[Xa("0x132")](),this[Xa("0x4f")].delete(o.id),this[Xa("0x26")][Xa("0x33")](o),t}))}return o}[Xa("0x116")](t,e){const n=this[Xa("0xcc")][Xa("0xa")][Xa("0x115")](Xa("0xef")),o=this[Xa("0x93")](t);if(this._adapter&&this._adapter[Xa("0xfa")])if(o._saved){const o=n.add(Yo(this.editor[Xa("0x140")],Xa("0xfc")));this[Xa("0x4")][Xa("0xfa")](t,e)[Xa("0x89")]((()=>{n[Xa("0x109")](o)}))}else o.on("change:_saved",(()=>{this._updateSuggestionData(t,e)}))}[Xa("0xe8")](t){if(!this[Xa("0x4")]||!this[Xa("0x4")][Xa("0x93")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[Xa("0x4")][Xa("0x93")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[Xa("0x17")](t),r=this[Xa("0x4f")][Xa("0x115")](e)||this._createSuggestion(n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this._suggestionState[Xa("0x115")](r)){case Xa("0xd4"):this[Xa("0xe8")](e)[Xa("0x89")]((t=>{let n=Promise[Xa("0x20")]();t[Xa("0xde")]&&(n=this[Xa("0x36")].fetchCommentThread({channelId:this[Xa("0xcc")][Xa("0x75")][Xa("0x115")](Xa("0x7e")),threadId:e})),n[Xa("0x89")]((()=>{this[Xa("0x2a")](t)._saved=!0}))})),this[Xa("0x26")][Xa("0x35")](r,"markerReady");break;case Xa("0x2"):this[Xa("0x116")](e,{state:Xa("0xf1")});case Xa("0xc1"):this[Xa("0x26")][Xa("0x35")](r,Xa("0xaf")),this[Xa("0xf4")](Xa("0x9a"),r);break;case Xa("0xaf"):this[Xa("0xf4")](Xa("0xe4"),r)}return r[Xa("0x99")](t),r}_refreshSuggestionsChain(t){const e=Array.from(t)[Xa("0xd5")]((t=>!t[Xa("0xc5")])),n=this[Xa("0xa4")]({skipNotAttached:!0}).filter((t=>!t[Xa("0xc5")])),o=n[Xa("0xd5")]((e=>!t[Xa("0xc4")](e))),s=new Map(n.map((t=>[t,this[Xa("0xeb")][Xa("0x74")](t.type,t[Xa("0x11")],Xa("0x142"))]))),r=new Map(n.map((t=>[t,t[Xa("0x69")]()]))),i=new Set,x=new Set;for(let t=0;t<e[Xa("0x46")];t++)a(e[t],e,t+1);for(let t=0;t<e[Xa("0x46")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[Xa("0xc4")](n)&&n.previous&&(n.previous[Xa("0x91")]===n&&(n[Xa("0x84")].next=null),n.previous=null),!i[Xa("0xc4")](n)&&n[Xa("0x91")]&&(n[Xa("0x91")][Xa("0x84")]===n&&(n.next.previous=null),n.next=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][Xa("0x84")]=n[0],i[Xa("0x13b")](n[0]),x[Xa("0x13b")](n[1]))}}function c(t,e){if(t[Xa("0x13a")].id!==e[Xa("0x13a")].id)return null;const n=s[Xa("0x115")](t)(t,e,r[Xa("0x115")](t),r.get(e));return n&&s[Xa("0x115")](e)(t,e,r[Xa("0x115")](t),r[Xa("0x115")](e))?n[1].commentThread&&n[1][Xa("0x3c")][Xa("0x46")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array.from(t),n=this.getSuggestions({skipNotAttached:!0}),o=n.filter((e=>!t[Xa("0xc4")](e))),s=new Map(e.map((t=>[t,this._suggestionFactory.getSuggestionCallback(t[Xa("0x50")],t.subType,Xa("0x5b"))]))),r=new Map(n.map((t=>[t,t[Xa("0x112")]()])));for(let t=0;t<e[Xa("0x46")];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[Xa("0x50")]!==e[Xa("0x50")]||o[Xa("0x13a")].id!==e[Xa("0x13a")].id||o[Xa("0x11")]!==e.subType)continue;if(!sc(e,o))continue;const x=s[Xa("0x115")](e),a=r.get(e),c=r[Xa("0x115")](o),l=e[Xa("0x3c")]&&e.commentThread.length,d=o[Xa("0x3c")]&&o[Xa("0x3c")].length;if(!l&&x(c,a))return t[Xa("0x70")](o,e),r[Xa("0x33")](e),!0;if(!d&&x(a,c))return t[Xa("0x70")](e,o),r.delete(o),!0}return!1}}[Xa("0x70")](t,e){if(t[Xa("0xc5")])for(const n of e[Xa("0x112")]())t[Xa("0x12d")](n);else{const n=e[Xa("0x69")]()[Xa("0x30")];this[Xa("0xc2")](t,this._model[Xa("0x13f")](t[Xa("0x69")]()[Xa("0xe0")],n))}e[Xa("0x59")]()}}class Ja{constructor(t){this[Xa("0x12b")]=t,this[Xa("0xb8")]=t.model,this[Xa("0xbf")]=new Map,this[Xa("0x72")]=new Map,this[Xa("0x68")]()}[Xa("0xdc")](t,e,n,o,s,r){return new Zo(this[Xa("0xb8")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,Xa("0xb9"))(...n),onDiscard:(...n)=>this[Xa("0x74")](t,e,"discard")(...n)})}[Xa("0x137")](t,e,n,o){const s=t+":"+e+":"+n;this[Xa("0xbf")][Xa("0x35")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks.get(o)||this[Xa("0x72")].get(t+":"+n)}[Xa("0x68")](){const t=()=>!1,e=t=>{t.sort(((t,e)=>t.start[Xa("0x67")](e[Xa("0xe0")])?1:-1)),this[Xa("0xb8")][Xa("0xd2")]((e=>{for(const n of t){let t;t=n[Xa("0x30")].isAtEnd&&n[Xa("0x30")][Xa("0x7")]==n[Xa("0xe0")][Xa("0xf7")]?e[Xa("0x92")](n[Xa("0xe0")][Xa("0xf7")],"on"):e.createSelection(n),this[Xa("0xb8")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Xa("0xb8")].change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Xa("0x130")]((t=>(Za(t)&&(t=this[Xa("0xb8")][Xa("0x13f")](t[Xa("0x30")])),t)))[Xa("0xd5")]((t=>Xa("0x121")!==t[Xa("0x6a")][Xa("0x2e")]));if(r.length<1)return;const x=Array.from(this[Xa("0xb8")][Xa("0x27")].selection[Xa("0x112")]())[Xa("0x130")]((t=>i.LiveRange[Xa("0xe1")](t)));n.setSelection(r);for(const t of this[Xa("0x12b")][Xa("0x1d")][Xa("0x1d")]())t[Xa("0x29")]();s[Xa("0x136")]({forceDefaultExecution:!0}),this[Xa("0x12b")][Xa("0x8a")](o,...s);const a=x[Xa("0xd5")]((t=>"$graveyard"!=t[Xa("0x6a")][Xa("0x2e")]));a[Xa("0x46")]>0&&n[Xa("0x61")](a);for(const t of x)t[Xa("0xc7")]()}))},o=(t,e)=>1==t[Xa("0x46")]&&1==e.length&&t[0][Xa("0x30")].isEqual(e[0].start),s=(t,e,n,o)=>oc(t,e,n,o,this._model)?[t,e]:oc(e,t,o,n,this[Xa("0xb8")])?[e,t]:null;this[Xa("0x72")][Xa("0x35")](Xa("0xbc"),t),this._defaultCallbacks[Xa("0x35")](Xa("0x127"),e),this[Xa("0x72")].set(Xa("0x3"),o),this._defaultCallbacks.set("insertion:chain",s),this[Xa("0x72")][Xa("0x35")](Xa("0x87"),e),this[Xa("0x72")][Xa("0x35")](Xa("0x10f"),t),this[Xa("0x72")].set(Xa("0x9"),o),this[Xa("0x72")][Xa("0x35")](Xa("0x3e"),s),this[Xa("0x72")].set(Xa("0x129"),n),this._defaultCallbacks[Xa("0x35")](Xa("0x6e"),t),this[Xa("0x72")][Xa("0x35")](Xa("0x55"),o),this._defaultCallbacks.set(Xa("0x57"),t),this[Xa("0x72")][Xa("0x35")](Xa("0x6c"),n),this[Xa("0x72")][Xa("0x35")](Xa("0xee"),t),this._defaultCallbacks.set(Xa("0xad"),o),this[Xa("0x72")].set("formatBlock:chain",t)}}function Qa(t,e,n){for(const o of e[Xa("0x7")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n.containsItem(o))return!1;if(t[Xa("0x1b")](o)||t.isLimit(o))return!0}return!1}function Za(t){return t[Xa("0x30")][Xa("0x7")]==t[Xa("0xe0")].nodeAfter&&t.end[Xa("0x38")]}function Ya(t,e,n,o){const s=t=>!t[Xa("0x105")].is(Xa("0xd1"))&&!o.isObject(t.item),r=t.start[Xa("0xc")](s),i=t[Xa("0x30")].getLastMatchingPosition(s,{direction:Xa("0x1c")});return!(t[Xa("0xe0")].isEqual(r)&&t.end[Xa("0x8f")](i)||(r[Xa("0x67")](i)?n[Xa("0x45")](e,{range:n.createRange(r,i)}):n[Xa("0xc9")](e),0))}function tc(t){return(0,r.hashObject)(t)}function ec(t){const e=t[Xa("0xe0")][Xa("0xf7")];return e&&e.is(Xa("0x9c"))}function nc(t,e){const n=e.schema.isObject(t)||e[Xa("0x95")][Xa("0xea")](t);return e[Xa("0x13f")](e[Xa("0xc0")](t,Xa("0x39")),n?e[Xa("0x118")](t):e[Xa("0xc0")](t,Xa("0x30")))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n[Xa("0x30")][Xa("0x8f")](o[Xa("0xe0")]))return!0;if(t.type!=e[Xa("0x50")])return!1;if(!n[Xa("0x30")][Xa("0x1e")](o[Xa("0xe0")]))return!1;const r=s[Xa("0x13f")](n.end,o[Xa("0xe0")])[Xa("0x81")]();for(const t of r)if([Xa("0x86"),Xa("0xa7")].includes(t[Xa("0x50")])&&s[Xa("0x95")][Xa("0x85")](t.item))return!1;return!0}function sc(t,e){return!(!t[Xa("0xf2")]||!e[Xa("0xf2")])&&Go(t[Xa("0x122")],e[Xa("0x122")])}function rc(t,e){const n=ic(t.attributes),o=ic(e);if(!t[Xa("0xf2")])return!1;for(const t of Object[Xa("0x107")](o))if(!Go(n[t],o[t]))return!1;return!0}function ic(t){const e=Object.assign({},t);return delete e[Xa("0xa9")],delete e[Xa("0x10d")],e}const xc=["_pendingAction","canDiscard","_setPendingAction","commentThreadController","PendingActions","acceptSuggestion","_removePendingAction","bind","_editor","canAccept","isDirty","destroy","plugins","discardSuggestion","canEditAt","add","unbind","_acceptCommand","locale","execute","PENDING_ACTION_SUGGESTION","_discardCommand","remove","getRanges","commands","get","model","listenTo","change:isDirty","isEnabled","view"];var ac,cc;ac=xc,cc=352,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[lc("0xf")]=e,this[lc("0x13")]=n,this[lc("0x17")]=o,this[lc("0x1c")]=t,this[lc("0x6")]=t[lc("0xd")][lc("0xe")]("acceptSuggestion"),this._discardCommand=t[lc("0xd")][lc("0xe")](lc("0x2")),this[lc("0x13")][lc("0x1b")](lc("0x12")).to(this._acceptCommand,this._discardCommand,((t,e)=>t||e)),this[lc("0x13")][lc("0x1b")]("canAccept").to(this[lc("0x6")],lc("0x12"),(t=>t&&this[lc("0x1c")].model[lc("0x3")](e[lc("0xc")]()))),this.view.bind(lc("0x15")).to(this._discardCommand,lc("0x12"),(t=>t&&this[lc("0x1c")][lc("0xf")][lc("0x3")](e[lc("0xc")]()))),this[lc("0x14")]=null,n[lc("0x1e")]&&this[lc("0x16")](),this[lc("0x10")](n,lc("0x19"),(()=>this[lc("0x19")]())),this[lc("0x10")](n,"discardSuggestion",(()=>this[lc("0x2")]())),this[lc("0x10")](n,lc("0x11"),(()=>{n[lc("0x1e")]?this[lc("0x16")]():this[lc("0x1a")]()}))}[lc("0x19")](){this[lc("0x6")][lc("0x8")](this[lc("0xf")].id)}[lc("0x2")](){this[lc("0xa")].execute(this[lc("0xf")].id)}[lc("0x0")](){this[lc("0x13")].unbind(lc("0x12")),this.view[lc("0x5")](lc("0x1d")),this[lc("0x13")][lc("0x5")]("canDiscard"),this.stopListening(),this[lc("0x17")][lc("0x0")](),this[lc("0x14")]&&this._removePendingAction()}[lc("0x16")](){const t=Yo(this[lc("0x1c")][lc("0x7")],lc("0x9"));this[lc("0x14")]=this[lc("0x1c")][lc("0x1")].get(lc("0x18"))[lc("0x4")](t)}[lc("0x1a")](){null!==this[lc("0x14")]&&this._editor[lc("0x1")][lc("0xe")](lc("0x18"))[lc("0xb")](this[lc("0x14")]),this[lc("0x14")]=null}}const uc=["_config","commentThreadInputView","disabledSubmit","locale","commentThread","editor","length","hasDirtyComment","isActive","isDirty","_createCommentThreadInputView","removeComment","cancel","_model","isEnabled","commentInputView","destroy","disableComments","focus","value","_createCommentViews","canDiscard","isReadOnly","editorConfig","descriptionParts","set","element","fire","submit","delegate","_localUser","commentsListView","addComment","canAccept","updateComment","assign","bind","authoredAt"];var gc,mc;gc=uc,mc=383,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends s.View{constructor(t,e,n,o){super(t),this[fc("0x1c")]=null,this.commentThreadInputView=null,this.set(fc("0x5"),!1),this[fc("0x16")]("authoredAt",e.authoredAt),this[fc("0x21")](fc("0x22")).to(e),this[fc("0x16")](fc("0x15"),[]),this.set(fc("0x6"),!1),this.set(fc("0xb"),!1),this[fc("0x16")](fc("0x1e"),!1),this.set(fc("0x12"),!1),this[fc("0xa")]=e,this._localUser=n,this[fc("0x23")]=o,o[fc("0xe")]?this[fc("0x16")](fc("0x3"),1):this[fc("0x11")]()}[fc("0xf")](){this[fc("0x17")][fc("0xf")]()}[fc("0xd")](){this[fc("0x1c")]&&this.commentsListView[fc("0xd")](),this[fc("0x24")]&&this[fc("0x24")][fc("0xd")](),super[fc("0xd")]()}[fc("0x11")](){const{CommentsListView:t}=this._config;this[fc("0x1c")]=new t(this[fc("0x0")],this[fc("0xa")][fc("0x1")],Object[fc("0x20")]({CommentView:this[fc("0x23")].CommentView},this._config)),this[fc("0x1c")][fc("0x1a")](fc("0x8")).to(this),this.commentsListView.delegate(fc("0x1f")).to(this),this[fc("0x1c")].bind(fc("0x5")).to(this),this[fc("0x16")](fc("0x3"),this.commentsListView[fc("0x3")]+1),this[fc("0x21")]("length").to(this.commentsListView,fc("0x3"),(t=>t+1)),this[fc("0x24")]=this._createCommentThreadInputView(),this.on("removeComment",(()=>this.focus())),this[fc("0x21")](fc("0x6")).to(this[fc("0x1c")],fc("0x4"),this[fc("0x24")][fc("0xc")],fc("0x10"),((t,e)=>t||!!e))}[fc("0x7")](){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[fc("0x1b")],this[fc("0x23")][fc("0x14")]),n=e[fc("0xc")];return e.bind("showInput").to(this,fc("0x5"),this[fc("0xa")][fc("0x1")],fc("0x13"),n,fc("0x10"),((t,e,n)=>!!n||t&&!e)),n.on(fc("0x19"),((t,e)=>{this[fc("0x18")](fc("0x1d"),e),n[fc("0x2")].setData("")})),n.on(fc("0x9"),(()=>this[fc("0xf")]())),n[fc("0x21")](fc("0x25")).to(this[fc("0xa")][fc("0x1")],"isReadOnly"),e}}const pc=["delegate","getTemplate","ck-comment__info-time","canAccept","title","acceptSuggestion","source","fire","div","canDiscard","discardSuggestion","getExternalSuggestionNote","bindTemplate","render","formatDateTime","commentThreadInputView","querySelector","disableComments","value","ck-annotation__info","_createButton","ck-suggestion",'<span class="ck-suggestion-type">',"ck-annotation__info-time","type","content","ck-suggestion-wrapper","Accept suggestion","_model","element","split","extendTemplate","ck-comment__external","description","check","cancel","importWord","EXTERNAL_SUGGESTION","set","ck-annotation__content-wrapper","discardButton","</p>","locale","push","userView","attributes","descriptionParts","ck-suggestion__info-name","span","change:description","authoredAt","setTemplate","isActive","children","_config","ck-suggestion__actions","ck-suggestion-","ck-suggestion__info","ck-suggestion--discard","ck-annotation__info-name","name","createElement","author","color","isEnabled","ck-suggestion--accept","EXTERNAL_IMPORT_WORD_AVATAR","EXTERNAL_AVATAR","_descriptionElement","getUserViewNotificationText","editorDestroyed","innerHTML","<p>",'" title="',"isExternal","editorReady","acceptButton","creator",'"></span>',"EXTERNAL_IMPORT_WORD_SUGGESTION","commentsListView","ck-suggestion--disabled-comments","join","@external","bind"];var bc,Ec;bc=pc,Ec=385,function(t){for(;--t;)bc.push(bc.shift())}(++Ec);const _c=function(t,e){return pc[t-=0]};class Tc extends hc{constructor(e,n,o,s){super(e,n,o,s),this[_c("0x4e")]("type",""),this.bind("type").to(this,_c("0x1"),(t=>t&&t[0]?t[0].type:"")),this[_c("0x27")]("description").to(this,_c("0x1"),this,_c("0x7"),((t,e)=>{let n="";for(const e of t)n+=_c("0x1b")+Cc(e[_c("0x41")],e[_c("0x12")])+_c("0x51");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[_c("0x17")]=null,this[_c("0x1f")]=this[_c("0x3c")](Yo(e,_c("0x43")),t.icons[_c("0x4a")],_c("0x14"),_c("0x2d"),"sw"),this.acceptButton.bind(_c("0x13")).to(this,_c("0x2b")),this[_c("0x50")]=this[_c("0x3c")](Yo(e,"Discard suggestion"),t.icons[_c("0x4b")],_c("0xd"),_c("0x32"),"sw"),this[_c("0x50")].bind("isEnabled").to(this,_c("0x31")),this[_c("0x54")]=new r.UserView(e,this[_c("0x44")][_c("0x11")],this[_c("0x18")]()),this[_c("0x54")].extendTemplate({attributes:{class:["ck-suggestion__user","ck-annotation__user"]}}),this[_c("0x6")](this[_c("0x29")]())}[_c("0x29")](){const t=this[_c("0x34")],e=[{tag:_c("0x30"),attributes:{class:[_c("0xc"),_c("0x3b")]},children:[{tag:"span",children:[{text:this[_c("0x54")][_c("0xf")]}],attributes:{class:[_c("0x2"),_c("0xe")]}},{tag:"time",attributes:{datetime:t.to(_c("0x5")),class:[_c("0x2a"),_c("0x3f")]},children:[{text:t.to(_c("0x5"),(t=>this[_c("0x9")][_c("0x36")](t)))}]}]},{tag:_c("0x30"),attributes:{class:[_c("0xa"),"ck-annotation__actions"]},children:[this[_c("0x1f")],this[_c("0x50")]]},{tag:_c("0x30"),attributes:{class:[_c("0x4f")]}}];this[_c("0x44")][_c("0x1d")]&&e.push({tag:"div",attributes:{class:[_c("0x48")]},children:[{text:this[_c("0x33")]()}]});const n={tag:_c("0x30"),attributes:{class:[_c("0x42"),t.if(_c("0x7"),"ck-suggestion-wrapper--active"),t.to(_c("0x40"),(t=>_c("0xb")+t)),this[_c("0x9")][_c("0x39")]&&_c("0x24")],"data-suggestion-id":this[_c("0x44")].id,"data-thread-id":this[_c("0x44")].commentThread.id,"data-author-id":this._model[_c("0x11")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[_c("0x3d"),"ck-annotation"]},children:[this[_c("0x54")],{tag:_c("0x30"),attributes:{class:["ck-suggestion__main","ck-annotation__main"]},children:e}]}]};return this[_c("0x23")]&&this[_c("0x37")]&&(n[_c("0x8")][_c("0x53")](this[_c("0x23")],this[_c("0x37")]),this[_c("0x23")][_c("0x28")](_c("0x1e")).to(this),this[_c("0x23")][_c("0x28")](_c("0x19")).to(this),this[_c("0x37")][_c("0x28")]("editorReady").to(this),this[_c("0x37")][_c("0x28")](_c("0x19")).to(this)),n}render(){super[_c("0x35")](),this._descriptionElement=this[_c("0x45")][_c("0x38")](".ck-annotation__content-wrapper"),this[_c("0x17")][_c("0x1a")]=this[_c("0x49")],this.on(_c("0x4"),((t,e,n)=>{this[_c("0x17")][_c("0x1a")]=n}))}[_c("0x3c")](t,e,n,o,r){const i=new s.ButtonView(this[_c("0x52")]);return i[_c("0x4e")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[_c("0x47")]({attributes:{class:n}}),i.on("execute",(()=>{this[_c("0x2f")](o,this[_c("0x44")].id)})),i}[_c("0x33")](){return _c("0x4c")===this[_c("0x44")].attributes[_c("0x26")][_c("0x2e")]?Yo(this[_c("0x52")],_c("0x22")):Yo(this[_c("0x52")],_c("0x4d"))}getUserViewNotificationText(){return this[_c("0x44")].isExternal?"importWord"===this[_c("0x44")][_c("0x0")][_c("0x26")].source?Yo(this[_c("0x52")],_c("0x15"),this._model[_c("0x20")][_c("0xf")]):Yo(this[_c("0x52")],_c("0x16"),this._model[_c("0x20")][_c("0xf")]):null}}function Cc(t,e){let n="";return n+=t[_c("0x46")]("*").map(((t,e)=>e%2!=0?_c("0x3e")+yc(t)+"</span>":yc(t)))[_c("0x25")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[_c("0x3a")]+_c("0x1c")+e[_c("0x2c")]+_c("0x21")),n}function yc(t){const e=document[_c("0x10")](_c("0x3"));return e.innerText=t,e.innerHTML}const kc=["model","value","bind","plugins","getMarkers","head","_updateController","length","reduce","lowest","_handleSuggestionControllerDelayed","discardAllSuggestions","addComment","createAnnotation","editing","pluginName","commentThread","getByInnerView","suggestionChanged","comments.maxThreadTotalWeight","switchbutton","_handleControllerBuffer","unbind","previous","isMultiRange","arrowView","execute","destroy","get","EditorAnnotations","keys","discardSelectedSuggestions","button","Accept all selected suggestions","_disableComments","getSuggestion","Accept all suggestions","_destroyController","refreshSelectedViews","isInContent","suggestionLoaded","comments.maxCommentsWhenCollapsed","config","addSourceCollector","type","acceptSelectedSuggestions","init","Discard all selected suggestions","_descriptionFactory","toMany","getMarkerNames","Annotations","values","view","acceptButton","innerView","trackChanges.disableComments","isOn","push","componentFactory","_viewToController","_annotationViews","actionView","acceptAllSuggestions","locale","remove","comments","delete","has","getJoined","filter","getDescriptions","clear","SuggestionThreadView","isEnabled","getAllAdjacentSuggestions","listenTo","Discard all suggestions","_unbindEditors","TrackChangesEditing","CommentView","createCommentThreadController","define","add","trackChanges","focus","_bindAnnotationToEditors","CommentsUI","from","mainView","map","change:activeAnnotations","requires","isDirty","stopListening","comments.maxCommentCharsWhenCollapsed","editor","change:previous","set","activeMarkers","size","suggestion-","getRanges","_suggestionToController","commandName","some","_refreshActiveMarkers","hasSuggestion","commands","buttonView","CommentsRepository","descriptionParts"];var Ac,vc;Ac=kc,vc=222,function(t){for(;--t;)Ac.push(Ac.shift())}(++vc);const Rc=function(t,e){return kc[t-=0]};class Sc extends t.Plugin{static get[Rc("0x5e")](){return[$a,r.Users,Rc("0x0"),Rc("0x35"),Rc("0x1f")]}static get[Rc("0x11")](){return"TrackChangesUI"}constructor(t){super(t),this[Rc("0x69")]=new Map,this[Rc("0x3e")]=new Map,this[Rc("0x3f")]=new Map,this[Rc("0x17")]=new Map;const e=this.editor[Rc("0x2c")];e[Rc("0x54")]("trackChanges.SuggestionThreadView",Tc),e[Rc("0x54")](Rc("0x3a"),!1),this[Rc("0x24")]=e.get("trackChanges.disableComments")}[Rc("0xc")](t,e){0===this._handleControllerBuffer[Rc("0x66")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Rc("0x69")][Rc("0x46")](t);n||e?n&&e&&this[Rc("0x27")](t):this._initializeController(t)}this[Rc("0x62")][Rc("0x5")][Rc("0x1e")]("EditorAnnotations")[Rc("0x28")](),this[Rc("0x6c")](),this._handleControllerBuffer[Rc("0x4a")]()}),10),this[Rc("0x17")][Rc("0x64")](t,e)}[Rc("0x30")](){const t=this.editor,e=t.plugins[Rc("0x1e")](Rc("0x51")),n=t[Rc("0x5")][Rc("0x1e")](Rc("0x35")),o=t[Rc("0x5")][Rc("0x1e")](Rc("0x1f")),s=t.plugins[Rc("0x1e")]("CommentsRepository");t.ui[Rc("0x3d")][Rc("0x55")](Rc("0x56"),(t=>this._createUIButton(t))),o[Rc("0x2d")]((()=>{const t=[];for(const[e,n]of Array[Rc("0x5a")](this[Rc("0x69")])){const o=e[Rc("0x4d")](),s=[];for(const t of o){if(!t[Rc("0x29")])continue;if(t[Rc("0x1a")]){s[Rc("0x3c")](...t[Rc("0x68")]());continue}const e=t.getFirstRange();if(s[Rc("0x9")]>0){const t=s[0][Rc("0x47")](e);if(t){s[0]=t;continue}}s[Rc("0x3c")](e)}t.push([n[Rc("0x37")],s])}return t})),this[Rc("0x4e")](e,Rc("0x2a"),((t,e)=>{this[Rc("0x4e")](e,Rc("0x63"),((t,n,o,s)=>{e[Rc("0x29")]&&(null==o?(this[Rc("0x8")](s[Rc("0x7")]),this[Rc("0xc")](e,!1)):(this[Rc("0x8")](o.head),this._handleSuggestionControllerDelayed(e,!0)))})),null===e[Rc("0x19")]?this[Rc("0xc")](e,!1):this[Rc("0x8")](e.head)})),this[Rc("0x4e")](e,"suggestionUnloaded",((t,e,n)=>{this[Rc("0x60")](e,Rc("0x63")),this._handleControllerBuffer[Rc("0x45")](e);const o=n?n.head:e,s=this[Rc("0x69")].get(o);null!==n&&this[Rc("0x8")](o),null===n&&s&&this[Rc("0x27")](e)})),this.listenTo(e,Rc("0x14"),((t,e)=>{this[Rc("0x8")](e)})),this[Rc("0x4e")](n,Rc("0x5d"),(()=>{this[Rc("0x6c")]()})),this.listenTo(s,Rc("0xe"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0x6d")](n))return;const s=e[Rc("0x25")](n);this[Rc("0x69")].get(s).view[Rc("0x57")]()}),{priority:Rc("0xb")})}[Rc("0x6c")](){const t=this[Rc("0x62")][Rc("0x5")][Rc("0x1e")](Rc("0x35")),e=this[Rc("0x62")][Rc("0x5")][Rc("0x1e")](Rc("0x51")),n=Array[Rc("0x5a")](t.activeAnnotations,(t=>t[Rc("0x39")]))[Rc("0x48")]((t=>this[Rc("0x3e")][Rc("0x46")](t))),o=[];for(const t of n){const e=this[Rc("0x3e")][Rc("0x1e")](t)[Rc("0x2")][Rc("0x4d")]();o[Rc("0x3c")](...e[Rc("0xa")](((t,e)=>[...t,...e[Rc("0x34")]()]),[]))}e[Rc("0x65")]=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Rc("0x62")][Rc("0x6e")].get(Rc("0x56")),r=Yo(t,"Track changes");n[Rc("0x6f")][Rc("0x64")]({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-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Rc("0x6f")][Rc("0x4")](Rc("0x3b")).to(o,Rc("0x3")),n[Rc("0x6f")].on("execute",(()=>{o[Rc("0x1c")](),this[Rc("0x62")][Rc("0x10")][Rc("0x37")][Rc("0x57")]()}));const i=new e.Collection,x=[{type:Rc("0x16"),model:{withText:!0,label:r,commandName:Rc("0x56")}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x26")),commandName:Rc("0x41")}},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x23")),commandName:Rc("0x2f")}},{type:Rc("0x22"),model:{withText:!0,label:Yo(t,Rc("0x4f")),commandName:Rc("0xd")}},{type:Rc("0x22"),model:{withText:!0,label:Yo(t,Rc("0x31")),commandName:Rc("0x21")}}];for(const t of x){let e={type:"separator"};if(t[Rc("0x2")]){const n=new s.Model(t[Rc("0x2")]),o=this[Rc("0x62")][Rc("0x6e")][Rc("0x1e")](n[Rc("0x6a")]);n[Rc("0x4")](Rc("0x3b"),"isEnabled").to(o,Rc("0x3"),"isEnabled"),e={type:t[Rc("0x2e")],model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Rc("0x2")]))[Rc("0x5c")]((t=>this.editor.commands[Rc("0x1e")](t[Rc("0x2")].commandName))),c=n[Rc("0x6f")];return c[Rc("0x40")].unbind(Rc("0x4c")),c[Rc("0x1b")][Rc("0x18")]("isEnabled"),c[Rc("0x40")][Rc("0x4")](Rc("0x4c")).to(o,Rc("0x4c")),c[Rc("0x1b")].bind(Rc("0x4c"))[Rc("0x33")](a,"isEnabled",((...t)=>t[Rc("0x6b")]((t=>t)))),n.on("execute",(t=>{this.editor[Rc("0x1c")](t.source.commandName),this[Rc("0x62")][Rc("0x10")][Rc("0x37")].focus()})),n}_initializeController(t){const e=this[Rc("0x62")],n=e[Rc("0x2c")],o=e[Rc("0x5")].get(Rc("0x35")),s=e[Rc("0x5")][Rc("0x1e")](Rc("0x0")),i=e[Rc("0x5")][Rc("0x1e")]("EditorAnnotations"),x=e[Rc("0x5")][Rc("0x1e")](r.Users).me,a=n[Rc("0x1e")](Rc("0x56"))[Rc("0x4b")],{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x5")][Rc("0x1e")](Rc("0x59"));let d,u;this[Rc("0x3f")].has(t.id)?(u=this[Rc("0x3f")].get(t.id),d=u[Rc("0x5b")]):(d=new a(e.locale,t,x,{disableComments:this[Rc("0x24")],editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n[Rc("0x1e")](Rc("0x2b")),maxThreadTotalWeight:n[Rc("0x1e")](Rc("0x15")),maxCommentCharsWhenCollapsed:n.get(Rc("0x61")),formatDateTime:(0,r.getDateTimeFormatter)(n[Rc("0x1e")]("locale")),CommentView:n.get(Rc("0x44"))[Rc("0x52")],CommentsListView:c,CommentThreadInputView:l}),d[Rc("0x38")].on(Rc("0x1c"),(()=>{e.editing.view[Rc("0x57")]()})),d.discardButton.on(Rc("0x1c"),(()=>{e[Rc("0x10")][Rc("0x37")][Rc("0x57")]()})),u=o.createAnnotationView(this[Rc("0x62")][Rc("0x42")],d),u[Rc("0x4")](Rc("0x5f")).to(d,Rc("0x5f")),u.bind(Rc("0x9")).to(d),u[Rc("0x4")](Rc("0x2e")).to(d,"type",(t=>Rc("0x67")+t)),this[Rc("0x3f")][Rc("0x64")](t.id,u));const g=s[Rc("0x53")](t[Rc("0x12")],d),m=new dc(e,t,d,g),f=t[Rc("0x4d")]().filter((t=>t[Rc("0x29")]));d[Rc("0x1")]=e[Rc("0x5")][Rc("0x1e")](Rc("0x51"))[Rc("0x32")].getDescriptions(f),this[Rc("0x69")].set(t,m),this[Rc("0x3e")][Rc("0x64")](d,m);const h=o[Rc("0xf")]({view:u,target:()=>{const n=[],o=t[Rc("0x4d")]()[Rc("0x48")]((t=>t[Rc("0x29")]));for(const t of o)n[Rc("0x3c")](...t[Rc("0x6")]());return(0,r.getAllMarkersDomElementsSorted)(e[Rc("0x10")],n)},type:()=>"suggestion-"+m[Rc("0x37")][Rc("0x2e")]});s[Rc("0x58")](d,h),o.add(h),i.registerAnnotation(h)}[Rc("0x27")](t){const e=this[Rc("0x62")][Rc("0x5")].get(Rc("0x0")),n=this[Rc("0x62")][Rc("0x5")][Rc("0x1e")]("Annotations"),o=this._suggestionToController[Rc("0x1e")](t),s=o[Rc("0x37")],r=n[Rc("0x13")](s);e[Rc("0x50")](s),r&&n[Rc("0x43")](r),this._suggestionToController[Rc("0x45")](t),this[Rc("0x3e")][Rc("0x45")](s),o[Rc("0x1d")]()}[Rc("0x8")](t){if(!t[Rc("0x29")]||!this[Rc("0x69")][Rc("0x46")](t))return;const e=this[Rc("0x62")][Rc("0x5")].get("TrackChangesEditing"),n=this[Rc("0x69")].get(t),o=t[Rc("0x4d")]();n.view[Rc("0x1")]=e[Rc("0x32")][Rc("0x49")](o)}[Rc("0x1d")](){for(const t of this[Rc("0x69")][Rc("0x20")]())this[Rc("0x27")](t);for(const t of this[Rc("0x3f")][Rc("0x36")]())t[Rc("0x5b")][Rc("0x1d")]();super.destroy()}}var Ic,Lc,Nc=["getSuggestions","adapter","requires","plugins","TrackChanges","getSuggestion","get","Comments","editor","addSuggestionData"];Ic=Nc,Lc=345,function(t){for(;--t;)Ic.push(Ic.shift())}(++Lc);var Mc=function(t,e){return Nc[t-=0]};class wc extends t.Plugin{static get[Mc("0x7")](){return[$a,Sc,Mc("0x2")]}static get pluginName(){return Mc("0x9")}set adapter(t){this.editor[Mc("0x8")].get($a)[Mc("0x6")]=t}get[Mc("0x6")](){return this[Mc("0x3")][Mc("0x8")].get($a)[Mc("0x6")]}addSuggestion(t){return this[Mc("0x3")][Mc("0x8")][Mc("0x1")]($a)[Mc("0x4")](t)}[Mc("0x5")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Mc("0x3")][Mc("0x8")][Mc("0x1")]($a).getSuggestions({skipNotAttached:t,toJSON:e})}[Mc("0x0")](t){return this[Mc("0x3")][Mc("0x8")][Mc("0x1")]($a).getSuggestion(t)}}const Oc=["track-changes-data-invalid-editor-creator","model","getRootNames","getRootsAttributes","reduce","execute","users","config","function","trackChangesData.editorCreator","trackChangesData","_adapter","plugins","rootsAttributes","useAnonymousUser","acceptAllSuggestions","TrackChangesDataGetter","TrackChangesData","pluginName","editor","create","document","getUser","init","destroy","appendChild","createElement","map","Pagination","data","getDataWithDiscardedSuggestions","result","TrackChangesEditing","discardAllSuggestions","createDocumentFragment","addUser","end","Users","push","get","getSuggestions","CommentsRepository"];var Fc,Dc;Fc=Oc,Dc=480,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Pc=function(t,e){return Oc[t-=0]},Bc=[Pc("0xa")];class jc extends t.Plugin{static get requires(){return[$a]}static get[Pc("0x0")](){return Pc("0x29")}[Pc("0x5")](){const t=this[Pc("0x1")];if(t[Pc("0x1f")].define(Pc("0x21"),(e=>{const n=t.model[Pc("0x3")].getRootNames()[Pc("0x1c")](((t,e)=>(t[e]="",t)),{});return t.constructor[Pc("0x2")](n,e)})),Pc("0x20")!=typeof t.config[Pc("0x15")](Pc("0x22")).editorCreator)throw new e.CKEditorError(Pc("0x18"))}getDataWithAcceptedSuggestions(t){return Hc(this[Pc("0x1")],!0,t)}[Pc("0xc")](t){return Hc(this[Pc("0x1")],!1,t)}}class Uc extends t.Plugin{static get[Pc("0x0")](){return Pc("0x28")}constructor(t){super(t),this[Pc("0xd")]=Pc("0x12")}[Pc("0x5")](){this.editor[Pc("0x24")].get(Pc("0x17"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Pc("0x1")][Pc("0x24")][Pc("0x15")](Pc("0xe"))[Pc("0x23")]=null}}function Gc(t){return void 0!==t[Pc("0x1b")]}async function Hc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Bc);o[Pc("0x24")][Pc("0x14")]($a,Uc),o[Pc("0x25")]=Gc(t)?t[Pc("0x1b")]():void 0;const s=document[Pc("0x10")](),i=t.config.get("trackChangesData").editorCreator,x=await i(o,(()=>function(t){const e=document[Pc("0x8")]("div");return t[Pc("0x7")](e),e}(s)));!function(t,e){const n=t[Pc("0x19")][Pc("0x3")][Pc("0x1a")]()[Pc("0x1c")](((e,n)=>(e[n]=t.data[Pc("0x15")]({rootName:n}),e)),{}),o=t[Pc("0x24")][Pc("0x15")](Pc("0x13"))[Pc("0x1e")][Pc("0x9")]((t=>({id:t.id,name:t.name}))),s=t[Pc("0x24")][Pc("0x15")]("TrackChangesEditing")[Pc("0x16")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins.get("Users"),i=e[Pc("0x24")][Pc("0x15")](Pc("0xe"));for(const t of o)r[Pc("0x4")](t.id)||r[Pc("0x11")](t);r.me||r[Pc("0x26")]();for(const t of s)i.addSuggestionData(t);e.data.set(n)}(t,x),x[Pc("0x1d")](Pc(e?"0x27":"0xf"));const a=Gc(x)?x.getFullData(n):x[Pc("0xb")][Pc("0x15")](n);return await x[Pc("0x6")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|