@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231025.0 → 0.0.0-nightly-20231026.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:()=>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=["has","clearForceDisabled","execute","value","affectsData","refresh","_enabledCommands","_enableCommands","editor","_disableUnsupportedCommands","commands","forceDisabled","TrackChangesCommand","_isEnabledBasedOnSelection"];var c,l;c=a,l=424,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("0x2")]=e,this[d("0xd")]=!1,this[d("0x1")](),this[d("0x9")]=!1}[d("0x1")](){this.isEnabled=!0}[d("0xc")](){this.value=!this.value,this[d("0xd")]?this[d("0x5")]():this._enableCommands()}[d("0x5")](){for(const t of this[d("0x4")][d("0x6")][d("0x6")]())t[d("0x0")]&&!this[d("0x2")][d("0xa")](t)&&t[d("0x7")](d("0x8"))}[d("0x3")](){for(const t of this[d("0x4")].commands[d("0x6")]())t[d("0x0")]&&!this[d("0x2")][d("0xa")](t)&&t[d("0xb")]("TrackChangesCommand")}}const g=["isEnabled","acceptSuggestion","model","editor","canEditAt","track-changes-accept-suggestion-not-found","getRanges","refresh","get","plugins","_suggestions","_isEnabledBasedOnSelection"];var m,f;m=g,f=291,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x7")]=e,this[h("0x4")](),this[h("0x8")]=!1}refresh(){this[h("0x9")]=!0}execute(t){const n=this[h("0x7")][h("0x5")](t);if(!n)throw new e.CKEditorError(h("0x2"),this);const o=n[h("0x3")]();this[h("0x0")][h("0xb")][h("0x1")](o)&&this[h("0x0")][h("0x6")][h("0x5")]("TrackChangesEditing")[h("0xa")](n)}}const b=["discardSuggestion","canEditAt","isEnabled","get","track-changes-discard-suggestion-not-found","editor","getRanges","plugins","model","refresh","_suggestions","_isEnabledBasedOnSelection"];var E,_;E=b,_=414,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("0x3")](),this[T("0x5")]=!1}[T("0x3")](){this[T("0x8")]=!0}execute(t){const n=this[T("0x4")][T("0x9")](t);if(!n)throw new e.CKEditorError(T("0xa"),this);const o=n[T("0x0")]();this[T("0xb")][T("0x2")][T("0x7")](o)&&this[T("0xb")][T("0x1")].get("TrackChangesEditing")[T("0x6")](n)}}const y=["from","replace","content","next","isCollapsed","createPositionAfter","change","createPositionBefore","push","schema","getRanges","type","sort","value","add","map","isInContent","isMultiRange","end","execute","isObject","splice","length","deletion","isTouching"];var k,A;k=y,A=453,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x9")](((t,e)=>v("0x14")==t.type&&v("0x14")!=e[v("0x8")]?-1:v("0x14")!=t[v("0x8")]&&v("0x14")==e[v("0x8")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x6")];for(;o<t[v("0x13")];){const i=t[o],x=t[o+1];n||(n=e[v("0x4")](i)),I(e,i,x)||(s[v("0x5")](e.createRange(n,r[v("0x11")](i)?e[v("0x2")](i):e.createPositionAt(i,v("0xf")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x2")](e),s=t[v("0x4")](n);return o[v("0x15")](s)}function L(t,e,n){for(;n[v("0x13")];){const o=n[v("0x12")](0,100);t[v("0x3")]((()=>{for(const t of o)t.isInContent&&e[v("0x10")](t.id)}))}}const N=["canEditAt","_isEnabledBasedOnSelection","execute","from","values","getRanges","model","_suggestions","refresh","some","editor","isEnabled","_command"];var M,w;M=N,w=301,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("0xa")]=e,this._suggestions=n,this[O("0x6")](),this[O("0xc")]=!1}[O("0x6")](){const t=Array[O("0x1")](this[O("0x5")][O("0x2")]())[O("0x7")]((t=>t.isInContent));this[O("0x9")]=this[O("0xa")].isEnabled&&t}[O("0x0")](){const t=R(Array[O("0x1")](this._suggestions[O("0x2")]()));for(const e of t){const t=e[O("0x3")]();if(!this[O("0x8")].model[O("0xb")](t))return}L(this[O("0x8")][O("0x4")],this._command,t)}}const P=["_selectedSuggestions","values","model","document","getRanges","refresh","_command","size","isEnabled","_suggestions","_isEnabledBasedOnSelection","editor"];var D,B;D=P,B=388,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("0x2")]=e,this[j("0x5")]=n,this[j("0x8")]=new Set,this[j("0x1")](),this[j("0x6")]=!1}[j("0x1")](){const t=this[j("0x7")][j("0xa")][j("0xb")].selection,e=Array.from(this[j("0x5")][j("0x9")]());this._selectedSuggestions=function(t,e){const n=Array[v("0x16")](t[v("0x7")]()),o=new Set;for(const s of e)if(s[v("0xd")])for(const e of n)for(const n of s[v("0x7")]())(e.isIntersecting(n)||t[v("0x1")]&&!s[v("0xe")]&&s[v("0x0")]&&n.end[v("0x15")](e.start))&&o[v("0xb")](s);return o}(t,e),this[j("0x4")]=this._command.isEnabled&&!!this[j("0x8")][j("0x3")]}execute(){const t=R(Array.from(this._selectedSuggestions));for(const e of t){const t=e[j("0x0")]();if(!this[j("0x7")][j("0xa")].canEditAt(t))return}L(this.editor.model,this[j("0x2")],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 Pt=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 Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?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]=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=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 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 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)?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 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?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]",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):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=["_onAccept","createdAt","next","getFirstRange","_model","author","@external","removeMarker","getMarkerNames","getRanges","from","getContainedElement","getFirstMarker","reduce","start","accept","addRange","map","commentThread","head","toJSON","set","_isDataLoaded","discard","split","decorate","substr","data","size","getRange","previous","onAccept","delete","change","getMultiRangeId","subType","getMarkers","end","length","isMultiRange","hasComments","nodeBefore","addMarkerName","creator","onDiscard","filter","addMarker","removeAttribute","isExternal","_onAttributesChange","_markerNames","removeMarkers","_onDiscard","type","attributes","add","get"];var $o,Jo;$o=Xo,Jo=113,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("0x17")]=!1,this.id=e.id,this[Qo("0x36")]=e[Qo("0x36")],this.subType=e[Qo("0x24")]||null,this[Qo("0x6")]=e[Qo("0x6")],this[Qo("0x2c")]=e[Qo("0x2c")]||e[Qo("0x6")],this[Qo("0x31")]=Boolean(e[Qo("0x37")]&&e.attributes[Qo("0x7")]),this[Qo("0x1c")]=null,this[Qo("0x5")]=t,this[Qo("0x1")]=e[Qo("0x20")],this[Qo("0x35")]=e[Qo("0x2d")],this._onAttributesChange=e.onAttributesChange,this[Qo("0x33")]=new Set,this[Qo("0x2")]=null,this[Qo("0x16")]("authoredAt",null),this[Qo("0x16")](Qo("0x37"),e.attributes||{}),this[Qo("0x16")]("previous",null),this[Qo("0x16")](Qo("0x3"),null),this.set(Qo("0x13"),null),this[Qo("0x16")]("_saved",!1),this[Qo("0x1a")](Qo("0x10")),this[Qo("0x1a")](Qo("0x18"))}get[Qo("0x14")](){let t=this;for(;t.previous;)t=t[Qo("0x1f")];return t}get[Qo("0x29")](){return!!this[Qo("0x13")]&&this.commentThread[Qo("0x27")]>0}get[Qo("0x28")](){return 0!=this[Qo("0x33")][Qo("0x1d")]&&6==Array[Qo("0xb")](this._markerNames)[0][Qo("0x19")](":")[Qo("0x27")]}get isInContent(){return null!==this[Qo("0xd")]()}[Qo("0x2b")](t){this._markerNames[Qo("0x38")](t)}[Qo("0x9")](){return Array[Qo("0xb")](this._markerNames)}[Qo("0x25")](){return this[Qo("0x9")]().map((t=>this._model.markers[Qo("0x0")](t)))[Qo("0x2e")]((t=>t))}[Qo("0xd")](){return this[Qo("0x25")]()[0]||null}[Qo("0x34")](){this._model[Qo("0x22")]((t=>{for(const e of this.getMarkers())t[Qo("0x8")](e)})),this[Qo("0x33")].clear()}[Qo("0x8")](t){this._model[Qo("0x22")]((e=>{e.removeMarker(t)})),this[Qo("0x33")][Qo("0x21")](t)}[Qo("0x11")](t){const e="suggestion:"+this[Qo("0x36")]+":"+this[Qo("0x24")]+":"+this.id+":"+this[Qo("0x2c")].id+":"+Zo[Qo("0x23")]();this[Qo("0x2b")](e),this[Qo("0x5")].change((n=>{n[Qo("0x2f")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0xa")]())if(e.isIntersecting(t))return!0;return!1}[Qo("0xa")](){return this[Qo("0x25")]()[Qo("0x12")]((t=>t[Qo("0x1e")]()))}getItems(){return this.getRanges()[Qo("0xe")](((t,e)=>[...t,...e.getItems()]),[])}[Qo("0x4")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Qo("0x1e")]())||null}[Qo("0xc")](){const t=this.getRanges();if(1!=t.length)return null;const e=t[0],n=e[Qo("0xf")].nodeAfter,o=e[Qo("0x26")][Qo("0x2a")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x10")](){this[Qo("0x1")](this[Qo("0xa")](),this[Qo("0x1c")],this[Qo("0x37")]),this[Qo("0x34")]()}[Qo("0x18")](){this[Qo("0x35")](this[Qo("0xa")](),this[Qo("0x1c")],this.attributes),this[Qo("0x34")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x14")];for(;e;)t.push(e),e=e.next;return t}setAttribute(t,e){const n=eo(this[Qo("0x37")]);_o(n,t,e),Go(n,this.attributes)||(this.attributes=n,this._onAttributesChange(n))}[Qo("0x30")](t){const e=eo(this.attributes);qo(e,t),Go(e,this.attributes)||(this[Qo("0x37")]=e,this[Qo("0x32")](this[Qo("0x37")]))}[Qo("0x15")](){return{id:this.id,type:this[Qo("0x24")]?this[Qo("0x36")]+":"+this.subType:this[Qo("0x36")],authorId:this[Qo("0x2c")].id,createdAt:this[Qo("0x2")],hasComments:this[Qo("0x29")],data:this.data,attributes:this[Qo("0x37")]}}static[Qo("0x23")](){return(0,e.uid)()[Qo("0x1b")](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=["pop","isEmpty","getDescriptions","set","_resolveDescriptionItems","elementStart","_schema","softBreak","_locale","getWalker","removeContainer","$1 $2","EmptyContainer","removeEmptyContainer","getItemLabel","getFirstRange","indexOf","matchingCallback","*Insert:* %0","get","removeObject","start","isObject","replace","previousSibling","end","push","nextSibling","element","type","add","*Remove:* %0","deletion","item","Container","_customCallbacks","$textProxy","length","remove","quantity","_itemLabels","name","_addDescriptionItems","ELEMENT_SPACE","*Merge:* %0","text","*Split:* %0","isEqual","REPLACE_TEXT","$text","data","_itemLabelsCallbacks","skip","registerDescriptionCallback","normal","insertion","elementEnd"];var es,ns;es=ts,ns=187,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("0x18")]=new Map,this[os("0x23")]=[],this[os("0x2f")]=t,this[os("0x31")]=e}[os("0x2b")](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("0x13")]){const n=t(o);if(n){os("0xd")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x1a")](e,o);const s=t[n+1];if(s&&!o[os("0x38")]()[os("0x9")][os("0x1f")](s[os("0x38")]()[os("0x5")])){const t=e[e[os("0x15")]-1],n="insertion"==o[os("0xd")]?"add":os("0x16");t&&os("0x1d")==t[os("0xd")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x25")](t){this[os("0x13")][os("0xa")](t)}registerElementLabel(t,n,o=e.priorities[os("0x26")]){"function"==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0x18")][os("0x2c")](t,n)}[os("0x37")](t,e=1){let n;for(const e of this[os("0x23")])if(e[os("0x1")](t)){n=e.label;break}return n||(n=this._itemLabels[os("0x3")](t[os("0x19")])),n?n(e):1!==e?e+" "+t[os("0x19")]+"s":""+t.name}[os("0x1a")](t,e){const n=e[os("0x38")]()[os("0x32")](),o=os("0x27")==e[os("0xd")]?"add":os("0x16");for(const e of n){const s=e[os("0x11")],r=t[t.length-1];if(s.is(os("0x14")))r&&r.type[os("0x0")](os("0x12"))>-1&&t.pop(),r&&"text"==r[os("0xd")]?r[o]+=s[os("0x22")]:t.push({type:os("0x1d"),add:os("0xe")==o?s[os("0x22")]:"",remove:"remove"==o?s[os("0x22")]:""});else if(this[os("0x2f")][os("0x6")](s)){const i=s;if(r&&r[os("0xd")][os("0x0")](os("0x12"))>-1&&t[os("0x29")](),os("0x28")==e[os("0xd")])continue;r&&r.type==o+"Object"&&r[os("0xc")][os("0x19")]==i.name?r[os("0x17")]++:t[os("0xa")]({type:o+"Object",element:i,quantity:1}),n[os("0x24")]((t=>!(os("0x28")==t[os("0xd")]&&t[os("0x11")]==s)))}else if(this[os("0x2f")].checkChild(s,os("0x21"))||s.is(os("0xc"),os("0x30"))){const n=s;if(os("0xe")==o&&os("0x2e")==e[os("0xd")]||"remove"==o&&os("0x28")==e[os("0xd")])continue;if(r&&-1==r[os("0xd")].indexOf(os("0x12"))){"text"==r[os("0xd")]&&(r[o]+="\n");continue}let i;if(i=os("0xe")==o?n.nextSibling&&!this._schema[os("0x6")](n[os("0xb")])?n[os("0xb")]:null:n[os("0x8")]&&!this[os("0x2f")][os("0x6")](n.previousSibling)?n.previousSibling:null,n[os("0x2a")]||i&&i[os("0x2a")]){const e=i&&i.isEmpty?i:n;r&&r[os("0xd")]==o+os("0x35")&&r.element.name==e.name?r[os("0x17")]++:t[os("0xa")]({type:o+"EmptyContainer",element:e,quantity:1})}else t.push({type:o+os("0x12"),element:n})}}}[os("0x2d")](t){const e=this[os("0x31")],n=[];for(const o of t){switch(o[os("0xd")]){case os("0x1d"):if(o[os("0xe")]=o.add[os("0x7")](/(\S)\u000A+(\S)/g,os("0x34"))[os("0x7")](/\u000A/g,""),o.remove=o[os("0x16")][os("0x7")](/(\S)\u000A+(\S)/g,os("0x34")).replace(/\u000A/g,""),""!=o[os("0xe")]&&""!=o[os("0x16")]){n[os("0xa")]({type:os("0x7"),content:Yo(e,os("0x20"),['"'+o[os("0x16")]+'"','"'+o[os("0xe")]+'"'])});continue}if(null!=o[os("0xe")].match(/^ +$/)){n[os("0xa")]({type:os("0x27"),content:Yo(e,"*Insert:* %0",Yo(e,os("0x1b"),o.add[os("0x15")]))});continue}if(null!=o[os("0x16")].match(/^ +$/)){n[os("0xa")]({type:os("0x10"),content:Yo(e,"*Remove:* %0",Yo(e,os("0x1b"),o[os("0x16")][os("0x15")]))});continue}if(""!=o[os("0xe")]){n[os("0xa")]({type:os("0x27"),content:Yo(e,os("0x2"),'"'+o.add+'"')});continue}n[os("0xa")]({type:os("0x10"),content:Yo(e,os("0xf"),'"'+o[os("0x16")]+'"')});continue;case"addEmptyContainer":case"addObject":n[os("0xa")]({type:os("0x27"),content:Yo(e,"*Insert:* %0",this[os("0x37")](o[os("0xc")],o[os("0x17")]))});continue;case os("0x36"):case os("0x4"):n[os("0xa")]({type:os("0x10"),content:Yo(e,"*Remove:* %0",this.getItemLabel(o.element,o[os("0x17")]))});continue;case"addContainer":n[os("0xa")]({type:os("0x27"),content:Yo(e,os("0x1e"),this[os("0x37")](o[os("0xc")],o[os("0x17")]))});continue;case os("0x33"):n.push({type:os("0x10"),content:Yo(e,os("0x1c"),this[os("0x37")](o[os("0xc")],o[os("0x17")]))});continue}n.push(o)}return n}}const rs=["TrackChangesEditing","afterInit","get","plugins","showAIAssistant","enableCommand"];var is,xs;is=rs,xs=425,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x2")](){const t=this.editor,e=t[as("0x4")][as("0x3")](as("0x1"));t.commands[as("0x3")](as("0x5"))&&e[as("0x0")](as("0x5"))}}const ls=["commandParams","document","value","model","FORMAT_ALIGN_TO_CENTER","commandName","get","checkAttribute","change","alignment","markBlockFormat","justify","AlignmentEditing","ltr","_descriptionFactory","selection","left","right","enableCommand","schema","editor","TrackChangesEditing","afterInit","from","FORMAT_ALIGN_TO_LEFT","plugins","locale","FORMAT_ALIGN_TO_RIGHT","*Format:* %0","filter","getSelectedBlocks","getAttribute"];var ds,us;ds=ls,us=467,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{[gs("0x3")](){const t=this[gs("0x1")],e=t[gs("0x7")];if(!t.plugins.has(gs("0x19")))return;const n=t[gs("0x6")][gs("0x13")](gs("0x2"));n[gs("0x1f")](gs("0x16"),((e,o={})=>{let s=o.value;o[gs("0xf")]||(s=gs("0x1a")===t[gs("0x7")].contentLanguageDirection?gs("0x1d"):gs("0x1e"));const r=Array[gs("0x4")](this[gs("0x1")][gs("0x10")][gs("0xe")][gs("0x1c")][gs("0xb")]())[gs("0xa")]((t=>function(t,e,n){const o=t[gs("0xc")](gs("0x16"))||null;return e[gs("0x14")](t,gs("0x16"))&&n!=o}(t,this.editor[gs("0x10")][gs("0x0")],s)));t[gs("0x10")][gs("0x15")]((()=>{for(const t of r)n[gs("0x17")](t,{commandName:gs("0x16"),commandParams:[{value:s}]})}))})),n[gs("0x1b")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&gs("0x16")==n[gs("0x12")]){const t=n[gs("0xd")][0][gs("0xf")];return{type:"format",content:Yo(e,gs("0x9"),function(t){switch(t){case gs("0x1d"):return Yo(e,gs("0x5"));case gs("0x1e"):return Yo(e,gs("0x8"));case"center":return Yo(e,gs("0x11"));case gs("0x18"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const fs=["bindElementToMarker","getAttribute","mapper","parent","getCustomProperty","activeMarkers","markerRange","writer","test","item","TrackChangesEditing","insert","ck-suggestion-marker--active","getItems","createRangeOn","listIndent","plugins","getWalker","previousPosition","listItem","elementEnd","element","consumable","addHighlight","get","includes","schema","ck-suggestion-marker-","nextSibling","span","isLimit","createUIElement","toViewElement","toViewPosition","markerName","isAtEnd","name","push"];var hs,ps;hs=fs,ps=144,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("0x15")]())s.hasAttribute(t)&&o.push(n[bs("0x16")](s));return o}function _s(t){const e=[];if(t.is(bs("0x1d"),bs("0x1b"))){let n=t[bs("0x24")];for(;n&&n.is(bs("0x1d"),"listItem")&&n[bs("0x9")](bs("0x17"))>0;)e[bs("0x7")](n),n=n[bs("0x24")]}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t[bs("0x18")][bs("0x20")](bs("0x12"));return(s,r,i)=>{if(!i[bs("0x1e")][bs("0x10")](r[bs("0xe")],s[bs("0x6")]))return;const x=r.markerRange[bs("0x19")](),a=r.markerRange.start,c=t.model[bs("0x22")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[bs("0x11")];u=u||c.isContent(e);const n=i.mapper[bs("0x2")](e);if(n&&n[bs("0xc")](bs("0x1f")))return;bs("0x1c")==t.type&&c.isBlock(e)&&!c[bs("0x0")](e)&&(e[bs("0x24")]||a[bs("0x5")]?l&&l[bs("0xb")]==e||(l=e,m(t[bs("0x1a")]),g=!0):d=d||t.previousPosition)}function m(t){const s=i[bs("0xf")][bs("0x1")](bs("0x25"),{class:bs("0x23")+e}),x=i.mapper[bs("0x3")](t);n&&o[bs("0xd")][bs("0x21")](r.markerName)&&i[bs("0xf")].addClass(bs("0x14"),s),i[bs("0xf")][bs("0x13")](x,s),i[bs("0xa")][bs("0x8")](s,r[bs("0x4")])}u||g||!d||m(d)}}const Cs=["FORMAT_UNDERLINE","document","markInlineFormat","afterInit","has","SuperscriptEditing","*Format:* %0","from","format","model","FORMAT_BOLD","isCollapsed","get","editor","StrikethroughEditing","FORMAT_STRIKETHROUGH","bold","TrackChangesEditing","strikethrough","getRanges","commandName","toLowerCase","locale","slice","italic","forceValue","UnderlineEditing","FORMAT_SUPERSCRIPT","commandParams","registerDescriptionCallback","selection","commands","underline","change","CodeEditing","*Remove format:* %0","plugins","code","BoldEditing"];var ys,ks;ys=Cs,ks=341,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x9"),"ItalicEditing",As("0x24"),As("0x5"),As("0x18"),"SubscriptEditing",As("0xf")];class Rs extends t.Plugin{[As("0xd")](){const t=this[As("0x17")],e=t[As("0x13")],n=t.plugins.get(As("0x1b")),o=t[As("0x20")];for(const o of vs){if(!t[As("0x7")][As("0xe")](o))continue;const s=o[As("0x21")](0,-7)[As("0x1f")](),r=t[As("0x2")][As("0x16")](s);n.enableCommand(s,((t,o={})=>{const i=e[As("0xb")][As("0x1")];if(i[As("0x15")])return void t(o);const x=void 0!==o[As("0x23")]?o[As("0x23")]:!r.value;e[As("0x4")]((()=>{const t=Array[As("0x11")](i[As("0x1d")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0xc")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory[As("0x0")]((n=>{const{data:s}=n;if(s&&s[As("0x1e")]===t)return s[As("0x26")][0][As("0x23")]?{type:As("0x12"),content:Yo(o,As("0x10"),e)}:{type:As("0x12"),content:Yo(o,As("0x6"),e)}}))}s(As("0x1a"),Yo(o,As("0x14"))),s(As("0x22"),Yo(o,"FORMAT_ITALIC")),s(As("0x3"),Yo(o,As("0xa"))),s(As("0x8"),Yo(o,"FORMAT_CODE")),s(As("0x1c"),Yo(o,As("0x19"))),s("subscript",Yo(o,"FORMAT_SUBSCRIPT")),s("superscript",Yo(o,As("0x25")))}}const Ss=["value","locale","enableCommand","parent","blockQuote","filter","name","getSelectedBlocks","get","$root","afterInit","editor","registerDescriptionCallback","plugins","model","from","has","BlockQuoteEditing","checkChild","ELEMENT_BLOCK_QUOTE","schema","format","document","forceValue","*Remove format:* %0","commands","commandParams"];var Is,Ls;Is=Ss,Ls=138,function(t){for(;--t;)Is.push(Is.shift())}(++Ls);const Ns=function(t,e){return Ss[t-=0]};class Ms extends t.Plugin{[Ns("0x7")](){const t=this[Ns("0x8")],e=t[Ns("0x19")];if(!t[Ns("0xa")][Ns("0xd")](Ns("0xe")))return;const n=t[Ns("0xa")].get("TrackChangesEditing"),o=this[Ns("0x8")][Ns("0x16")][Ns("0x5")](Ns("0x1"));n[Ns("0x1a")]("blockQuote",((e,s={})=>{const r=this.editor.model[Ns("0x13")].selection,i=s&&void 0!==s[Ns("0x14")]?s.forceValue:!o[Ns("0x18")];let x=[];if(i){const e=Array.from(r[Ns("0x4")]()).filter((t=>ws(t)||function(t,e){const n=e.checkChild(t[Ns("0x0")],Ns("0x1")),o=e[Ns("0xf")]([Ns("0x6"),Ns("0x1")],t);return n&&o}(t,this[Ns("0x8")].model[Ns("0x11")])));x=S(e,t[Ns("0xb")])}else{const e=Array[Ns("0xc")](r.getSelectedBlocks())[Ns("0x2")]((t=>ws(t)));x=S(e,t[Ns("0xb")])}t[Ns("0xb")].change((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ns("0x1"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[Ns("0x9")]((t=>{const{data:n}=t;if(n&&Ns("0x1")==n.commandName){const t=Yo(e,Ns("0x10"));return n[Ns("0x17")][0][Ns("0x14")]?{type:Ns("0x12"),content:Yo(e,"*Format:* %0",t)}:{type:Ns("0x12"),content:Yo(e,Ns("0x15"),t)}}}))}}function ws(t){return Ns("0x1")==t[Ns("0x0")][Ns("0x3")]}const Os=["afterInit","enableCommand","TrackChangesEditing","ckbox","plugins","get","commands"];var Fs,Ps;Fs=Os,Ps=200,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x3")](){const t=this.editor;t[Ds("0x2")][Ds("0x1")](Ds("0x6"))&&t[Ds("0x0")][Ds("0x1")](Ds("0x5"))[Ds("0x4")](Ds("0x6"))}}const js=["editor","_descriptionFactory","parent","commandName","enableCommand","languages","rootElement","codeBlock","forceValue","label","checkChild","getSelectedBlocks","has","schema","format","find","outdentCodeBlock","document","model","from","filter","CodeBlock","indentCodeBlock","formatBlock","get","*Remove format:* %0","blockName","plugins","config","TrackChangesEditing","*Format:* %0","markBlockFormat","commandParams","registerDescriptionCallback","afterInit","ELEMENT_CODE_BLOCK","name","language"];var Us,Gs;Us=js,Gs=104,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{[Hs("0x6")](){const t=this[Hs("0xa")];if(!t.plugins[Hs("0x16")](Hs("0x1f")))return;const e=t[Hs("0x25")][Hs("0x22")](Hs("0x1")),n=t.locale,o=t[Hs("0x0")][Hs("0x22")]("codeBlock")[Hs("0xf")],s=t.commands[Hs("0x22")](Hs("0x11"));e.enableCommand(Hs("0x20")),e[Hs("0xe")](Hs("0x1a")),e.enableCommand(Hs("0x11"),((n,r={})=>{const i=t[Hs("0x1c")],x=t[Hs("0x1c")][Hs("0x1b")].selection,a=r&&void 0!==r[Hs("0x12")]?r[Hs("0x12")]:!s.value;let c;r[Hs("0x9")]||(r.language=o[0][Hs("0x9")]),c=a?Array[Hs("0x1d")](x[Hs("0x15")]())[Hs("0x1e")]((t=>{return Ws(t)||(e=t,n=i[Hs("0x17")],!e.is(Hs("0x10"))&&!n.isLimit(e)&&n[Hs("0x14")](e[Hs("0xc")],Hs("0x11")));var e,n})):Array[Hs("0x1d")](x[Hs("0x15")]()).filter((t=>Ws(t)));const l=S(c,i);i.change((()=>{for(const t of l)e[Hs("0x3")](t,{commandName:Hs("0x11"),commandParams:[{...r,forceValue:a}],formatGroupId:Hs("0x24")})}))})),e[Hs("0xb")].registerElementLabel(Hs("0x11"),(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e._descriptionFactory[Hs("0x5")]((t=>{const e=n.t,{type:s,data:r}=t;if(Hs("0x21")==s&&r&&"codeBlock"==r[Hs("0xd")]){const t=r[Hs("0x4")][0][Hs("0x9")],s=e(o[Hs("0x19")]((e=>e.language===t))[Hs("0x13")]);return r[Hs("0x4")][0].forceValue?{type:Hs("0x18"),content:Yo(n,Hs("0x2"),Yo(n,Hs("0x7"),1)+" ("+s+")")}:{type:Hs("0x18"),content:Yo(n,Hs("0x23"),Yo(n,"ELEMENT_CODE_BLOCK",1))}}}))}}function Ws(t){return Hs("0x11")==t[Hs("0x8")]}const Vs=["editor","CommentsEditing","get","plugins","afterInit"];var Ks,qs;Ks=Vs,qs=400,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Vs[t-=0]};class $s extends t.Plugin{[Xs("0x4")](){const t=this[Xs("0x0")];t[Xs("0x3")].has(Xs("0x1"))&&t[Xs("0x3")][Xs("0x2")]("TrackChangesEditing").enableCommand("addCommentThread")}}var Js=n(181);const Qs=["uiElement","showSuggestionHighlights","markerName","downcastDispatcher","markerNameToElements","commands","enableCommand","data","end","buffer","merge","batch","editing","editor","model","remove","high","lock","requires","TrackChangesEditing","detach","createRange","selection","delete","start","unbindElementFromMarkerName","mapper","options","unlock","deleteForward","isCollapsed","unit","fromRange","bind","get","root","$graveyard","plugins","addMarker:suggestion:deletion","createSelection","removeMarker:suggestion:deletion","writer"];var Zs,Ys;Zs=Qs,Ys=318,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("0x24")](){return[Js.Delete]}init(){const t=this[tr("0x1f")],e=t[tr("0xd")][tr("0xa")](tr("0x25"));e[tr("0x18")](tr("0x29"));const n=t[tr("0x17")].get(tr("0x5"));e.enableCommand(tr("0x5"),((e,o={})=>{const s=t[tr("0x20")][tr("0xf")](t[tr("0x20")].document[tr("0x28")]);s[tr("0x6")]&&t[tr("0x20")].modifySelection(s,{direction:"forward",unit:o[tr("0x7")]});const r=s.getFirstRange(),x=i.LiveRange[tr("0x8")](r);let a;e(o),a=tr("0xc")==x[tr("0xb")].rootName?t[tr("0x20")][tr("0x27")](r[tr("0x0")]):t.model.createRange(x[tr("0x0")],x[tr("0x1a")]),x[tr("0x26")](),t[tr("0x20")].enqueueChange(n[tr("0x1b")][tr("0x1d")],(t=>{n[tr("0x1b")][tr("0x23")](),t.setSelection(t[tr("0x27")](a[tr("0x1a")])),n.buffer[tr("0x4")]()}))})),t.editing.downcastDispatcher.on(tr("0xe"),Ts(t,tr("0x1c")),{priority:tr("0x22")}),t[tr("0x19")][tr("0x15")].on(tr("0xe"),((e,n,o)=>{o[tr("0x3")][tr("0x13")]&&Ts(t,"merge",{showActiveMarker:!1})[tr("0x9")](this)(e,n,o)}),{priority:"high"}),t[tr("0x1e")][tr("0x15")].on(tr("0x10"),((t,e,n)=>{const o=n[tr("0x2")][tr("0x16")](e[tr("0x14")]);if(o)for(const t of o)t.is(tr("0x12"))&&(n.mapper[tr("0x1")](t,e[tr("0x14")]),n[tr("0x11")][tr("0x21")](t))}),{priority:"high"})}}const nr=["locale","editor","*Format:* insert into %0","commandName","document","registerCustomCallback","*Merge:* %0","paragraph","ELEMENT_","*Indent:* %0","isObject","nodeAfter","getSelectedBlocks","containsItem","_suggestionFactory","_descriptionFactory","has","listIndent","*Outdent:* %0","commands","expandListBlocksToCompleteList","numberedList","deletion","outdentList","toUpperCase","enableCommand","model","getAttribute","documentList","getFirstRange","selection","*Change to:* %0","execute","start","DocumentListEditing","schema","map","listType","next","accept","from","TrackChangesEditing","list.multiBlock","nextSibling","DocumentListUtils","previousSibling","ELEMENT_LIST_ITEM","format","_LIST","markBlockFormat","parent","indentList","forceValue","refresh","ELEMENT_NUMBERED_LIST","plugins","add","end","get","fromRange","change","multipleBlocks","value","afterInit","length","*Format:* remove from %0","ELEMENT_BULLETED_LIST","createPositionAt","splitListItemAfter","bulletedList","mergeListItemForward","createRange","setSelection","commandParams","detach","after","listItemId","splitListItemBefore","findIndex","config"];var or,sr;or=nr,sr=252,function(t){for(;--t;)or.push(or.shift())}(++sr);const rr=function(t,e){return nr[t-=0]};class ir extends t.Plugin{[rr("0x33")](){const t=this[rr("0x45")];if(!t[rr("0x2b")][rr("0x4")](rr("0x16")))return;const e=t[rr("0x44")],n=t[rr("0x2b")][rr("0x2e")](rr("0x1d")),o=t[rr("0x2b")][rr("0x2e")](rr("0x20"));function s(e){return()=>{const s=t[rr("0x7")].get(e);if(s[rr("0x32")]&&!t[rr("0x43")][rr("0x2e")](rr("0x1e")))return void t[rr("0x14")](rr("0x4b"),{});let r=Array.from(t[rr("0xe")].document[rr("0x12")][rr("0x0")]());if(a(e)){r=o[rr("0x8")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t.push(e);r=t}t[rr("0xe")][rr("0x30")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:e,commandParams:[{forceValue:!s[rr("0x32")]}],formatGroupId:rr("0x19")},[],rr("0x10"))}))}}function r(e){return()=>{const o=function(t){let e=Array[rr("0x1c")](t);const n=e[rr("0x42")]((t=>!t.hasAttribute("listItemId")));return n>-1&&(e=e.slice(0,n)),e}(t[rr("0xe")].document.selection[rr("0x0")]()),s=o[o[rr("0x34")]-1],r=t[rr("0xe")][rr("0x17")][rr("0x4e")](s)?rr("0x3f"):rr("0x2d"),i=t.model[rr("0x3b")](t[rr("0xe")][rr("0x37")](o[0],"before"),t[rr("0xe")][rr("0x37")](s,r));t.model[rr("0x30")]((()=>{n[rr("0x25")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[rr("0x1f")];for(;t&&t[rr("0xf")]("listIndent")>n[rr("0xf")](rr("0x5"));)e[rr("0x2c")](t),t=t.nextSibling}return Array[rr("0x1c")](e)}(o))}))}}function x(e){return()=>{const o=t[rr("0xe")][rr("0x48")][rr("0x12")][rr("0x0")]()[rr("0x1a")]()[rr("0x32")],s=t[rr("0xe")][rr("0x37")](o,"before"),r=t[rr("0xe")][rr("0x37")](o,0),i=t[rr("0xe")][rr("0x3b")](s,r);t[rr("0xe")][rr("0x30")]((()=>{n[rr("0x25")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[rr("0x7")][rr("0x2e")](rr("0x39"))[rr("0x32")],o=t.commands[rr("0x2e")]("numberedList")[rr("0x32")];return rr("0x9")===e?n:o}n.enableCommand("numberedList",s(rr("0x9"))),n[rr("0xd")](rr("0x39"),s(rr("0x39"))),n[rr("0xd")](rr("0x27"),r(rr("0x27"))),n[rr("0xd")](rr("0xb"),r(rr("0xb"))),n.enableCommand(rr("0x38"),x(rr("0x38"))),n[rr("0xd")](rr("0x41"),x(rr("0x41"))),n._descriptionFactory.registerElementLabel((function(e){const n=!t[rr("0xe")][rr("0x17")][rr("0x4e")](e),o=e[rr("0x21")],s=e[rr("0x1f")],r=e.getAttribute(rr("0x40")),i=!o||o[rr("0xf")](rr("0x40"))!==r,x=!s||s[rr("0xf")]("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,rr("0x22"),t))),n[rr("0x3")].registerDescriptionCallback((function(n){const{data:o}=n;if(!o)return;let s,r,i,x;switch(o[rr("0x47")]){case rr("0x39"):i=o[rr("0x3d")][0][rr("0x28")],x=a(o[rr("0x47")]),s=i?"*Format:* insert into %0":"*Format:* remove from %0",!x&&t[rr("0x43")].get(rr("0x1e"))||(s=rr("0x13")),r={type:rr("0x23"),content:Yo(e,s,Yo(e,rr("0x36")))};break;case"numberedList":i=o[rr("0x3d")][0][rr("0x28")],x=a(o.commandName),s=rr(i?"0x46":"0x35"),!x&&t[rr("0x43")][rr("0x2e")]("list.multiBlock")||(s=rr("0x13")),r={type:rr("0x23"),content:Yo(e,s,Yo(e,rr("0x2a")))};break;case"indentList":s=rr("0x4d"),r={type:rr("0x23"),content:Yo(e,s,Yo(e,rr("0x22")))};break;case"outdentList":s=function(t){const e=t.getFirstRange();let n=e[rr("0x15")][rr("0x4f")];for(;n&&e[rr("0x1")](n);){if(n[rr("0xf")](rr("0x5"))>0)return!1;n=n[rr("0x1f")]}return!0}(n)?Yo(e,rr("0x35"),Yo(e,function(t){const e=t[rr("0x11")]().start.nodeAfter;return rr("0x4c")+e.getAttribute(rr("0x19"))[rr("0xc")]()+rr("0x24")}(n))):Yo(e,rr("0x6"),Yo(e,rr("0x22"))),r={type:rr("0x23"),content:s};break;case"mergeListItemBackward":case rr("0x3a"):!1===o[rr("0x31")]&&(s=rr("0x4a"),r={type:rr("0xa"),content:Yo(e,s,Yo(e,"ELEMENT_LIST_ITEM"))})}return r})),n[rr("0x2")][rr("0x49")]("formatBlock","documentList",rr("0x1b"),(function(e,n){const o=[];for(let n of e)n[rr("0x15")][rr("0x4f")]===n.end[rr("0x26")]&&(n=t.model.createRange(t[rr("0xe")][rr("0x37")](n[rr("0x15")][rr("0x4f")],0))),o.push(n);t[rr("0xe")][rr("0x30")]((e=>{const s=t[rr("0xe")][rr("0x48")][rr("0x12")],r=Array[rr("0x1c")](s.getRanges())[rr("0x18")]((t=>i.LiveRange[rr("0x2f")](t)));e.setSelection(o),t.commands[rr("0x2e")](n[rr("0x47")])[rr("0x29")](),n[rr("0x3d")].push({forceDefaultExecution:!0}),t[rr("0x14")](n[rr("0x47")],...n[rr("0x3d")]),e[rr("0x3c")](r);for(const t of r)t[rr("0x3e")]()}))}))}}var xr=n(331);const ar=["ck-suggestion-marker-split","showSuggestionHighlights","fire","document","change","downcastDispatcher","addMarker:suggestion:insertion","selection","editing","nextSibling","mapper","afterExecute","createPositionAt","hasClass","end","removeMarker:suggestion:insertion","TrackChangesEditing","plugins","high","enter","markerNameToElements","split","get","unbindElementFromMarkerName","commands","markerName","requires","writer","init","createRange","data","model","enableCommand"];var cr,lr;cr=ar,lr=424,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("0x1f")](){return[xr.Enter]}[dr("0x0")](){const t=this.editor,e=t[dr("0x16")].get(dr("0x15")),n=t[dr("0x1d")][dr("0x1b")](dr("0x18"));e[dr("0x4")](dr("0x18"),(()=>{t[dr("0x3")][dr("0x9")]((o=>{const s=t[dr("0x3")][dr("0x8")][dr("0xc")],r=s.getFirstPosition(),x=i.LiveRange.fromRange(s.getFirstRange());if(n.enterBlock(o)){const n=t[dr("0x3")][dr("0x11")](r.parent[dr("0xe")],0),s=o.createRange(r,n);e.markInsertion(s)}else o.setSelection(o[dr("0x1")](x[dr("0x13")]));x.detach(),n[dr("0x7")](dr("0x10"),{writer:o})}))})),t[dr("0xd")][dr("0xa")].on(dr("0xb"),Ts(t,dr("0x1a")),{priority:dr("0x17")}),t[dr("0xd")][dr("0xa")].on(dr("0x14"),((t,e,n)=>{const o=n[dr("0xf")][dr("0x19")](e[dr("0x1e")]);if(o)for(const t of o)t[dr("0x12")](dr("0x5"))&&(n[dr("0xf")][dr("0x1c")](t,e[dr("0x1e")]),n[dr("0x20")].remove(t))}),{priority:dr("0x17")}),t[dr("0x2")].downcastDispatcher.on(dr("0xb"),((e,n,o)=>{o.options[dr("0x6")]&&Ts(t,"split",{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:dr("0x17")})}}const gr=["plugins","markers","TrackChangesEditing","createPositionAt","get","editor","suggestion:deletion","filter","FindAndReplaceUtils","handleFindCommand","start","findNext","item","enableCommand","getRange","findPrevious","getIntersection","FindAndReplaceEditing","findByTextCallback","_isInDeletionRange","string","has","afterInit","createRange","bind","end","replace","model","replaceAll"];var mr,fr;mr=gr,fr=254,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0x0")](){if(!this[hr("0xc")][hr("0x7")][hr("0x1c")](hr("0x18")))return;const t=this[hr("0xc")][hr("0x7")][hr("0xb")](hr("0x9"));t[hr("0x14")]("find",this.handleFindCommand[hr("0x2")](this)),t[hr("0x14")](hr("0x12")),t[hr("0x14")](hr("0x16")),t.enableCommand(hr("0x4")),t[hr("0x14")](hr("0x6"))}[hr("0x10")](t,e,n={}){const o=this[hr("0xc")][hr("0x7")][hr("0xb")](hr("0xf"));if(void 0!==n)return t((t=>(hr("0x1b")==typeof e?o[hr("0x19")](e,n):e)(t)[hr("0xe")]((e=>!1===this[hr("0x1a")](e,t[hr("0x13")])))),n)}[hr("0x1a")](t,e){const n=this[hr("0xc")][hr("0x5")][hr("0x1")](this[hr("0xc")][hr("0x5")][hr("0xa")](e,t[hr("0x11")]),this[hr("0xc")][hr("0x5")][hr("0xa")](e,t[hr("0x3")]));for(const t of this.editor[hr("0x5")][hr("0x8")].getMarkersGroup(hr("0xd")))if(null!==n[hr("0x17")](t[hr("0x15")]()))return!0;return!1}}const br=["commandName","editor","*Reset font size*","markInlineFormat","plugins","*Set font family:* %0","FontSize","fontFamily","label","TrackChangesEditing","fontBackgroundColor","fontBackgroundColor.colors","model","value","*Set font color:* %0","fontColor","format","toLowerCase","from","trim","*Reset font background color*","commandParams","change","*Reset font family*","_enableCommand","*Set font background color:* %0","has","get","isCollapsed","normalizeSizeOptions","config","registerDescriptionCallback","FontBackgroundColorEditing","fontSize","fontColor.colors","find"];var Er,_r;Er=br,_r=472,function(t){for(;--t;)Er.push(Er.shift())}(++_r);const Tr=function(t,e){return br[t-=0]},Cr=[{pluginName:"FontSizeEditing",commandName:Tr("0x1d")},{pluginName:"FontFamilyEditing",commandName:Tr("0x3")},{pluginName:"FontColorEditing",commandName:Tr("0xb")},{pluginName:Tr("0x1c"),commandName:Tr("0x6")}];class yr extends t.Plugin{afterInit(){const t=this[Tr("0x21")].locale;for(const{pluginName:t,commandName:e}of Cr)this[Tr("0x21")].plugins[Tr("0x16")](t)&&this[Tr("0x14")](e);this[Tr("0x21")][Tr("0x0")][Tr("0x17")](Tr("0x5"))._descriptionFactory[Tr("0x1b")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(Tr("0x1d")==o[Tr("0x20")]){const e=o[Tr("0x11")][0][Tr("0x9")];if(e){const o=n(this[Tr("0x21")][Tr("0x0")][Tr("0x17")](Tr("0x2"))[Tr("0x19")](this[Tr("0x21")][Tr("0x1a")][Tr("0x17")]("fontSize.options"))[Tr("0x1f")]((t=>t[Tr("0x8")]==e)).title)[Tr("0xd")]();return{type:"format",content:Yo(t,"*Set font size:* %0",o)}}return{type:"format",content:Yo(t,Tr("0x22"))}}if(Tr("0x3")==o[Tr("0x20")]){const e=o[Tr("0x11")][0][Tr("0x9")];return e?{type:Tr("0xc"),content:Yo(t,Tr("0x1"),e)}:{type:Tr("0xc"),content:Yo(t,Tr("0x13"))}}if("fontColor"==o[Tr("0x20")]){const e=o[Tr("0x11")][0][Tr("0x9")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x21")][Tr("0x1a")][Tr("0x17")](Tr("0x1e")))[Tr("0x1f")]((t=>t[Tr("0x8")]==e));let r=e,i="";return o&&(r=o[Tr("0x4")],i=n(r).toLowerCase()),{type:Tr("0xc"),content:Yo(t,Tr("0xa"),i)[Tr("0xf")](),color:{value:e,title:i||r}}}return{type:Tr("0xc"),content:Yo(t,"*Reset font color*")}}if(Tr("0x6")==o[Tr("0x20")]){const e=o[Tr("0x11")][0][Tr("0x9")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x21")][Tr("0x1a")][Tr("0x17")](Tr("0x7"))).find((t=>t[Tr("0x8")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[Tr("0xd")]()),{type:Tr("0xc"),content:Yo(t,Tr("0x15"),i)[Tr("0xf")](),color:{value:e,title:i||r}}}return{type:Tr("0xc"),content:Yo(t,Tr("0x10"))}}}}))}[Tr("0x14")](t){const e=this[Tr("0x21")];e[Tr("0x0")][Tr("0x17")](Tr("0x5")).enableCommand(t,((n,o={})=>{const s=e[Tr("0x8")].document.selection,r=o[Tr("0x9")];s[Tr("0x18")]?n(o):e[Tr("0x8")][Tr("0x12")]((()=>{const n=Array[Tr("0xe")](s.getRanges());for(const o of n){const n=r?[o]:Es(t,o,e.model);for(const o of n)e[Tr("0x0")][Tr("0x17")](Tr("0x5"))[Tr("0x23")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const kr=["model","getSelectedBlocks","FontSize","get","locale","_descriptionFactory","title","schema","commands","markInlineFormat","fontSize.options","find","pasteFormat","format","config","*Set format to:* %0","modifySelection","fontColor.colors","commandParams","getAttributes","selection","from","isCollapsed","copyFormat","editor","isBlock","createRange","length","push","getFirstPosition","backward","charAt","toLowerCase","label","*Remove all formatting*","commandName","TrackChangesEditing","entries","createSelection","slice","normalizeSizeOptions","getItems","enableCommand","fontBackgroundColor","getLastPosition","fontColor","forward","plugins"];var Ar,vr;Ar=kr,vr=472,function(t){for(;--t;)Ar.push(Ar.shift())}(++vr);const Rr=function(t,e){return kr[t-=0]};class Sr extends t.Plugin{afterInit(){const t=this[Rr("0x20")],n=t[Rr("0x8")],o=n.document[Rr("0x1c")],s=t.plugins[Rr("0xb")](Rr("0x2c")),r=t[Rr("0xc")],i=t[Rr("0x10")].get("copyFormat"),x=t.commands[Rr("0xb")](Rr("0x14"));i&&x&&(s[Rr("0x2")](Rr("0x14"),((t,r={})=>{const i=r;n.change((()=>{const t=Array[Rr("0x1d")](o.getRanges()),r=o[Rr("0x1e")]?[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("0x1b")]()){const t=e.getAttributeProperties(n);t&&t.isFormatting&&(yield n)}}(t,n));for(const e of t.getRanges())for(const t of e[Rr("0x1")]())!n[Rr("0x21")](t)&&o(t)&&(yield t);for(const e of t[Rr("0x9")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Rr("0xf")]))||0!==Object.keys(i)[Rr("0x23")])for(const t of r)s[Rr("0x11")](t,{commandName:Rr("0x14"),commandParams:[i]})}))})),s[Rr("0xd")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&"pasteFormat"===n[Rr("0x2b")]){const e=[],o=n[Rr("0x1a")][0];for(const[n,s]of Object[Rr("0x2d")](o))e[Rr("0x24")](Lr(t,n,s));return e[Rr("0x23")]?{type:Rr("0x15"),content:Yo(r,Rr("0x17"),e.join(", "))}:{type:Rr("0x15"),content:Yo(r,Rr("0x2a"))}}})),t[Rr("0x7")].get("TrackChangesEditing")[Rr("0x2")](Rr("0x1f")))}}function Ir(t,e){const n=t[Rr("0x2e")](e);t[Rr("0x18")](n,{unit:"word",direction:Rr("0x26")});const o=n[Rr("0x25")]();t[Rr("0x18")](n,{unit:"word",direction:Rr("0x6")});const s=n[Rr("0x4")]();return t[Rr("0x22")](o,s)}function Lr(t,e,n){const o=t[Rr("0xc")].t,r=e.split(/(?=[A-Z])/).join(" "),i=o(r[Rr("0x27")](0).toUpperCase()+r[Rr("0x2f")](1)).toLowerCase();if("boolean"==typeof n)return i;if(Rr("0x5")===e||Rr("0x3")===e){const e=(0,s.normalizeColorOptions)(t.config[Rr("0xb")](Rr("0x19")))[Rr("0x13")]((t=>t.model==n));return i+" ("+(e?o(e[Rr("0x29")])[Rr("0x28")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Rr("0x7")][Rr("0xb")](Rr("0xa"))[Rr("0x0")](t[Rr("0x16")][Rr("0xb")](Rr("0x12")))[Rr("0x13")]((t=>t.model==n));return i+" ("+(e?o(e[Rr("0xe")])[Rr("0x28")]():n)+")"}return i+" ("+n+")"}const Nr=["ELEMENT_HEADING_CUSTOM","heading","isObject","name","editor","HeadingEditing","paragraph","markBlockFormat","title","_descriptionFactory","formatBlock","match","commandName","format","has","selection","schema","from","get","document","checkChild","filter","config","afterInit","value","*Change to:* %0","registerElementLabel","ELEMENT_HEADING","parent","heading.options","locale","model","plugins","commandParams"];var Mr,wr;Mr=Nr,wr=473,function(t){for(;--t;)Mr.push(Mr.shift())}(++wr);const Or=function(t,e){return Nr[t-=0]};class Fr extends t.Plugin{[Or("0x1a")](){const t=this[Or("0x7")],e=t[Or("0x21")],n=t[Or("0x19")][Or("0x15")](Or("0x20"));if(!t[Or("0x1")][Or("0x11")](Or("0x8")))return;const o=t[Or("0x1")][Or("0x15")]("TrackChangesEditing");o.enableCommand(Or("0x4"),((e,n)=>{const s=n[Or("0x1b")],r=Array[Or("0x14")](this.editor[Or("0x0")][Or("0x16")][Or("0x12")].getSelectedBlocks())[Or("0x18")]((t=>{return e=t,n=s,(o=this[Or("0x7")][Or("0x0")][Or("0x13")])[Or("0x17")](e[Or("0x1f")],n)&&!o[Or("0x5")](e)&&e[Or("0x6")]!=n;var e,n,o}));t[Or("0x0")].change((()=>{for(const t of r)o[Or("0xa")](t,{commandName:Or("0x4"),commandParams:[n],formatGroupId:"blockName"},_s(t))}))}));for(const t of n)Or("0x9")!=t[Or("0x0")]&&o[Or("0xc")][Or("0x1d")](t[Or("0x0")],(e=>{const n=Pr(t[Or("0x0")]);return null!==n?s(e,n):r(e,t[Or("0xb")])}));function s(t,n){return Yo(e,Or("0x1e"),[t,n])}function r(t,n){return Yo(e,Or("0x3"),[t,n])}o[Or("0xc")].registerDescriptionCallback((t=>{const{type:o,data:i}=t;if(Or("0xd")==o&&i&&Or("0x4")==i[Or("0xf")]){const t=i[Or("0x2")][0][Or("0x1b")],o=Pr(t);if(null!==o)return{type:"format",content:Yo(e,Or("0x1c"),s(1,o))};const x=n.find((e=>e[Or("0x0")]===t)).title;return{type:Or("0x10"),content:Yo(e,Or("0x1c"),r(1,x))}}}))}}function Pr(t){const e=t[Or("0xe")](/^heading(\d+)$/);return e?e[1]:null}const Dr=["config","createRange","getRanges","get","*Remove highlight*","getLastMatchingPosition","*Set highlight:* %0","commandName","format","highlight.options","HighlightEditing","title","highlight","FORMAT_HIGHLIGHT","item","markInlineFormat","has","formatInline","toLowerCase","value","_descriptionFactory","selection","backward","commandParams","plugins","getFirstPosition","push","hasAttribute","getAttribute","enableCommand","model","editor"];var Br,jr;Br=Dr,jr=166,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{afterInit(){const t=this[Ur("0x19")];if(!t[Ur("0x12")][Ur("0xa")](Ur("0x4")))return;const e=t[Ur("0x12")].get("TrackChangesEditing");e[Ur("0x17")](Ur("0x6"),((n,o={})=>{const s=t[Ur("0x18")].document[Ur("0xf")],r=s[Ur("0x16")](Ur("0x6"));let i=o.value,x=[];if(s.isCollapsed){const e=s[Ur("0x13")]();if(!s[Ur("0x15")](Ur("0x6")))return void n(o);{const n=t=>t[Ur("0x8")].getAttribute(Ur("0x6"))===r,o=e[Ur("0x1f")](n,{direction:Ur("0x10")}),s=e.getLastMatchingPosition(n);x=[t[Ur("0x18")][Ur("0x1b")](o,s)],i==r&&(i=null)}}else for(const e of s[Ur("0x1c")]())i?x[Ur("0x14")](e):x[Ur("0x14")](...Es(Ur("0x6"),e,t.model));t.model.change((()=>{for(const t of x)e[Ur("0x9")](t,{commandName:Ur("0x6"),commandParams:[{value:i}]})}))}));const n=t.locale;e[Ur("0xe")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if(Ur("0xb")==o&&s&&Ur("0x6")==s[Ur("0x1")]){const e=n.t,o=s[Ur("0x11")][0][Ur("0xd")];if(o){const s=t[Ur("0x1a")][Ur("0x1d")](Ur("0x3")).find((t=>t[Ur("0x18")]==o)),r=e(s[Ur("0x5")])[Ur("0xc")]();return{type:Ur("0x2"),content:Yo(n,Ur("0x0"),r),color:{value:s.color,title:s[Ur("0x5")]}}}return{type:"format",content:Yo(n,Ur("0x1e"),Yo(n,Ur("0x7")))}}}))}}const Hr=["addClass","registerElementLabel","high","has","showSuggestionHighlights","div","horizontalLine","for","get","enableCommand","HorizontalLineEditing","plugins","TrackChangesEditing","conversion","createPositionAt","locale","dataDowncast"];var zr,Wr;zr=Hr,Wr=404,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.editor;if(!t[Vr("0xf")][Vr("0x7")](Vr("0xe")))return;t.plugins[Vr("0xc")](Vr("0x10"))[Vr("0xd")]("horizontalLine");const e=t[Vr("0xf")][Vr("0xc")](Vr("0x10")),n=t[Vr("0x2")];e._descriptionFactory[Vr("0x5")]("horizontalLine",(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Vr("0x0")][Vr("0xb")](Vr("0x3")).elementToStructure({model:Vr("0xa"),view:(t,{writer:e,options:n})=>{if(!n[Vr("0x8")])return null;const o=e.createContainerElement(Vr("0x9")),s=e.createEmptyElement("hr");return e[Vr("0x4")]("ck-horizontal-line",o),e.insert(e[Vr("0x1")](o,0),s),o},converterPriority:Vr("0x6")})}}const qr=["ELEMENT_HTML_EMBED","rawHtmlApi","rawHtml","change","selection","htmlEmbed","has","get","document","getSelectedElement","*Change %0 content*","registerElementLabel","getAttribute","model","TrackChangesEditing","getCustomProperty","commandName","_descriptionFactory","view","markBlockFormat","registerDescriptionCallback","format","HtmlEmbed","plugins","cancel"];var Xr,$r;Xr=qr,$r=298,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.editor;if(!t[Jr("0x0")][Jr("0x8")](Jr("0x18")))return;const e=t.plugins[Jr("0x9")](Jr("0x10")),n=t.locale,o=t.editing[Jr("0x14")][Jr("0xa")][Jr("0x6")];e[Jr("0x13")][Jr("0xd")](Jr("0x4"),(t=>Yo(n,Jr("0x2"),t))),t.plugins.get(Jr("0x10")).enableCommand("htmlEmbed",((n,s)=>{const r=t[Jr("0xf")],i=r.document[Jr("0x6")];r[Jr("0x5")]((()=>{const t=function(t){const e=t[Jr("0xb")]();return e&&e.is("element",Jr("0x4"))?t[Jr("0xb")]():null}(i);if(!t)return void n(null);const r=t[Jr("0xe")]("value")||"";void 0!==s&&s!==r&&(e[Jr("0x15")](t,{commandName:Jr("0x7"),commandParams:[s]}),o[Jr("0xb")]()[Jr("0x11")](Jr("0x3"))[Jr("0x1")]())}))})),e[Jr("0x13")][Jr("0x16")]((t=>{const{data:e}=t;if(e&&Jr("0x7")==e[Jr("0x12")]){const t=Yo(n,Jr("0x2"));return{type:Jr("0x17"),content:Yo(n,Jr("0xc"),t)}}}))}}const Zr=["markInsertion","*Remove image text alternative*","refresh","commandParams","backward","alt","previous","format","resizeImage","ImageUtils","ImageEditing","side","newRange","convertBlockImageToInline","from","markBlockFormat","removeObject","ImageInlineEditing","afterInit","ELEMENT_IMAGE","convertInlineImageToBlock","_descriptionFactory","Inline image to block image","getSuggestion","editor","get","next","imageBlock","toPrevious","isInlineImage","getClosestSelectedImageElement","toNext","end","imageCaption","registerElementLabel","markDeletion","type","ELEMENT_CAPTION","Users","*Set image text alternative:* %0","selection","ImageCaptionUtils","formatInline","author","chain","join","change","length","getAttribute","find","nodeBefore","enableCommand","imageTextAlternative","has","ImageTextAlternativeEditing","filter","isBlockImage","imageStylePostApply","isEqual","findIndex","imageInline","forward","ImageUploadEditing","TrackChangesEditing","registerCustomCallback","title","markInlineFormat","getSuggestionCallback","formatBlock","fromPosition","accept","ImageResize","forceDefaultExecution","document","schema","imageTypeInline","registerPostFixer","normalizedStyles","toLowerCase","getChangedMarkers","caption","getContainedElement","plugins","isCollapsed","commands","getNearestSelectionRange","insertion","setImageNaturalSizeAttributes","forEach","detach","*Set image width:* %0","width","isInContent","uploadImage","locale","_suggestionFactory","ImageStyleEditing","imageStylePreApply","Block image to inline image","commandName","model","getFirstRange","element","createRange","ELEMENT_INLINE_IMAGE","insertImage","isOwn","FORMAT_SIDE_IMAGE","createRangeOn","getCaptionFromImageModelElement","differ","value","start","*Format:* %0","registerDescriptionCallback","resizedWidth","subType","imageStyle","getSuggestions","hasSuggestion","isBefore","shouldConvertImageType","discard"];var Yr,ti;Yr=Zr,ti=420,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x5a")](){const t=this[ei("0x60")];if(!t[ei("0x1f")].has(ei("0x52")))return;const n=t[ei("0x1f")][ei("0x61")](ei("0xc")),o=t[ei("0x1f")].get(ei("0x51")),s={},r=t[ei("0x2b")];if(n[ei("0x0")](ei("0x36")),n[ei("0x5d")][ei("0x6a")](ei("0x63"),(t=>Yo(r,ei("0x5b"),t))),n[ei("0x5d")][ei("0x6a")](ei("0x9"),(t=>Yo(r,ei("0x35"),t))),n[ei("0x5d")][ei("0x6a")]("caption",(()=>Yo(r,ei("0x6d")))),t[ei("0x1f")][ei("0x2")](ei("0xb"))&&n.enableCommand(ei("0x2a")),t[ei("0x1f")].has("ImageBlockEditing")&&t.plugins[ei("0x2")](ei("0x59"))&&(n.enableCommand("imageTypeInline",((e,s)=>{const r=o[ei("0x66")](t[ei("0x31")].document[ei("0x70")]);t.model[ei("0x76")]((()=>{n[ei("0x57")](r,{commandName:"imageTypeInline",commandParams:[s]},[],ei("0x55"))}))})),n[ei("0x0")]("imageTypeBlock",((e,s)=>{t[ei("0x31")][ei("0x76")]((r=>{let x=o.getClosestSelectedImageElement(t[ei("0x31")][ei("0x16")].selection),a=r.createRangeOn(x);const c=i.LivePosition[ei("0x12")](a[ei("0x3d")],ei("0x64")),l=i.LivePosition.fromPosition(a[ei("0x68")],ei("0x67"));n[ei("0x15")]((()=>e(s))),x=o[ei("0x66")](t.model[ei("0x16")].selection),a=r[ei("0x39")](x);const d=r[ei("0x34")](c,l);c[ei("0x26")](),l[ei("0x26")](),n[ei("0x57")](x,{commandName:ei("0x18"),commandParams:[s]},[],ei("0x5c")),d.start[ei("0x45")](a.start)&&n.markInsertion(r.createRange(d[ei("0x3d")],a[ei("0x3d")]),"convertInlineImageToBlock"),a[ei("0x68")][ei("0x45")](d[ei("0x68")])&&n[ei("0x48")](r[ei("0x34")](a[ei("0x68")],d.end),ei("0x5c"))}))})),n[ei("0x2c")][ei("0xd")]("formatBlock",ei("0x5c"),ei("0x75"),(()=>!1)),n[ei("0x2c")][ei("0xd")](ei("0x11"),ei("0x5c"),ei("0x13"),(()=>!1)),n[ei("0x2c")][ei("0xd")](ei("0x11"),ei("0x5c"),ei("0x47"),n._suggestionFactory[ei("0x10")](ei("0x11"),"",ei("0x13"))),n._suggestionFactory.registerCustomCallback("insertion",ei("0x5c"),"join",(()=>!1)),n[ei("0x2c")].registerCustomCallback(ei("0x23"),"convertInlineImageToBlock",ei("0x47"),(([e])=>{const o=n._suggestionFactory[ei("0x10")](ei("0x23"),"",ei("0x47"));let s=e.start,r=e[ei("0x68")];const i=t[ei("0x31")][ei("0x17")][ei("0x22")](s,ei("0x4c")),x=t[ei("0x31")][ei("0x17")][ei("0x22")](r,ei("0xa"));i[ei("0x20")]&&(s=i[ei("0x3d")]),x.isCollapsed&&(r=x[ei("0x68")]),o([t[ei("0x31")][ei("0x34")](s,r)])})),n._suggestionFactory[ei("0xd")](ei("0x11"),ei("0x5c"),ei("0x74"),c),n[ei("0x2c")][ei("0xd")](ei("0x23"),ei("0x5c"),ei("0x74"),c)),t[ei("0x1f")][ei("0x2")]("ImageCaptionEditing")&&(n[ei("0x0")]("toggleImageCaption",((e,s)=>{const r=t.plugins[ei("0x61")](ei("0x71"));let i=o[ei("0x66")](t.model[ei("0x16")][ei("0x70")]),x=r[ei("0x3a")](i);t[ei("0x31")][ei("0x76")]((()=>{if(x)return void n[ei("0x6b")](t[ei("0x31")][ei("0x39")](x));const a=o[ei("0x5")](i);e(s),i=o[ei("0x66")](t[ei("0x31")][ei("0x16")].selection),x=r[ei("0x3a")](i),n[ei("0x48")](t[ei("0x31")][ei("0x39")](x),a?null:ei("0x69"))}))})),n[ei("0x2c")][ei("0xd")](ei("0x23"),ei("0x69"),"chain",c)),t[ei("0x1f")][ei("0x2")](ei("0x2d"))){n[ei("0x0")](ei("0x42"),((s,r)=>{const i=t[ei("0x1f")][ei("0x61")](ei("0x6e")).me,x=t.commands[ei("0x61")](ei("0x42"));let a=o[ei("0x66")](t[ei("0x31")][ei("0x16")][ei("0x70")]),c=t[ei("0x31")][ei("0x39")](a),l=x[ei("0x3c")];if(l==r[ei("0x3c")])return;const d={commandName:ei("0x42"),commandParams:[r],formatGroupId:(0,e.uid)()};t[ei("0x31")].change((()=>{if(n[ei("0x43")]()[ei("0x4")]((t=>t[ei("0x29")]&&i==t[ei("0x73")]&&("formatBlock"==t[ei("0x6c")]||ei("0x72")==t[ei("0x6c")])&&(ei("0x2e")==t[ei("0x41")]||"imageStylePostApply"==t[ei("0x41")])&&t[ei("0x32")]().isEqual(c)))[ei("0x25")]((t=>n.discardSuggestion(t.head))),a=o[ei("0x66")](t[ei("0x31")][ei("0x16")][ei("0x70")]),c=t[ei("0x31")][ei("0x39")](a),x[ei("0x4a")](),t[ei("0x21")][ei("0x61")](ei("0x18")).refresh(),t[ei("0x21")][ei("0x61")]("imageTypeBlock")[ei("0x4a")](),l=x[ei("0x3c")],l!=r[ei("0x3c")])return o[ei("0x65")](a)&&x[ei("0x46")](r[ei("0x3c")],a)?(s({...r,setImageSizes:!1}),a=o[ei("0x66")](t[ei("0x31")][ei("0x16")][ei("0x70")]),void n[ei("0x57")](a,{...d,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(o[ei("0x5")](a)?n[ei("0x57")](a,d,[],ei("0x6")):n[ei("0xf")](c,d,"imageStylePostApply"))}))}));for(const e of t[ei("0x1f")][ei("0x61")](ei("0x2d"))[ei("0x1a")])s[e.name]=e[ei("0xe")][ei("0x1b")]();n[ei("0x2c")][ei("0xd")](ei("0x11"),ei("0x2e"),ei("0x75"),(()=>!1)),n[ei("0x2c")][ei("0xd")](ei("0x11"),"imageStylePostApply",ei("0x75"),(()=>!1)),n[ei("0x2c")][ei("0xd")](ei("0x72"),ei("0x6"),"join",(()=>!1)),n._suggestionFactory[ei("0xd")]("formatBlock",ei("0x2e"),ei("0x13"),(([t])=>{o[ei("0x24")](t.getContainedElement())})),n._suggestionFactory[ei("0xd")]("formatBlock",ei("0x2e"),"discard",((t,e)=>{n._suggestionFactory[ei("0x10")]("formatBlock","","accept")(t,{commandName:e.commandName,commandParams:e.commandReversedParams})})),n[ei("0x2c")][ei("0xd")](ei("0x11"),"imageStylePreApply",ei("0x74"),c)}const x=[{type:ei("0x11"),subType:ei("0x2e")},{type:ei("0x23"),subType:ei("0x69")},{type:ei("0x11"),subType:ei("0x5c")},{type:ei("0x23"),subType:ei("0x5c")}];function a(t,e){const s=x[ei("0x8")]((({type:e,subType:n})=>t[ei("0x6c")]==e&&t[ei("0x41")]==n)),r=x[ei("0x8")]((({type:t,subType:n})=>e.type==t&&e[ei("0x41")]==n));if(s<0||r<0)return!1;const i=t[ei("0x32")](),a=e.getFirstRange();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,ei("0x23"))[ei("0x4")]((({suggestion:t,meta:e})=>e[ei("0x37")]&&ei("0x5c")==t[ei("0x41")]));if(t[ei("0x77")]>1&&a[ei("0x68")][ei("0x7")](i[ei("0x3d")]))return!0;if(1==t[ei("0x77")]&&(i.start[ei("0x7")](a[ei("0x68")])||i[ei("0x68")][ei("0x7")](a[ei("0x3d")])))return!0}if(3==s&&3==r&&i[ei("0x3d")][ei("0x45")](a[ei("0x3d")])){const t=i.end.nodeAfter,e=a[ei("0x3d")][ei("0x7a")];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[ei("0x31")][ei("0x16")][ei("0x19")]((()=>{let e=!1;const s=Array[ei("0x56")](t[ei("0x31")][ei("0x16")][ei("0x3b")][ei("0x1c")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n._splitMarkerName(t);if("suggestion"==s&&n[ei("0x44")](a)){if(ei("0x11")==i&&(ei("0x2e")==x||ei("0x6")==x)){const t=n.getSuggestion(a);if(r.newRange){const s=t.getFirstRange()[ei("0x1e")]();if(o.isBlockImage(s))continue;n.discardSuggestion(t),e=!0}}if("insertion"==i&&"imageCaption"==x&&!r[ei("0x54")]){const t=n[ei("0x5f")](a);t[ei("0x62")]&&t[ei("0x62")][ei("0x29")]&&(n.discardSuggestion(t[ei("0x62")]),e=!0)}}}return e})),t[ei("0x1f")][ei("0x2")](ei("0x14"))&&n[ei("0x0")](ei("0x50"),((e,s)=>{const r=o[ei("0x66")](t[ei("0x31")][ei("0x16")].selection);r[ei("0x78")](ei("0x40"))!=s[ei("0x28")]&&t.model[ei("0x76")]((()=>{n[ei("0x57")](r,{commandName:ei("0x50"),commandParams:[s]})}))})),t[ei("0x1f")][ei("0x2")](ei("0x3"))&&n[ei("0x0")](ei("0x1"),((e,s)=>{const r=o[ei("0x66")](t[ei("0x31")][ei("0x16")].selection);(r.hasAttribute(ei("0x4d"))?r[ei("0x78")]("alt"):"")!=s.newValue&&t[ei("0x31")][ei("0x76")]((()=>{n[ei("0x57")](r,{commandName:ei("0x1"),commandParams:[s]})}))})),n[ei("0x5d")][ei("0x3f")]((t=>{if(x[ei("0x79")]((({type:e,subType:n})=>t[ei("0x6c")]==e&&t.subType==n)))return t[ei("0x4e")]?{}:void 0})),n[ei("0x5d")][ei("0x3f")]((t=>{if("insertion"==t[ei("0x6c")]||"deletion"==t[ei("0x6c")]){const e=t[ei("0x1e")]();if(e&&e.is(ei("0x33"),ei("0x1d")))return{type:ei("0x23")==t[ei("0x6c")]?"addObject":ei("0x58"),element:e,quantity:1}}})),n[ei("0x5d")][ei("0x3f")]((t=>ei("0x11")==t[ei("0x6c")]&&ei("0x5c")==t.subType?{type:"format",content:ei("0x5e")}:ei("0x11")==t.type&&"convertBlockImageToInline"==t[ei("0x41")]?{type:ei("0x4f"),content:ei("0x2f")}:void 0)),n._descriptionFactory[ei("0x3f")]((t=>{const{data:e}=t;if(e){if(ei("0x42")==e[ei("0x30")]){const t=e[ei("0x4b")][0][ei("0x3c")];return n=ei("0x53")===t?Yo(r,ei("0x38")):s[t]||t,{type:ei("0x4f"),content:Yo(r,ei("0x3e"),n)}}if(ei("0x1")==e[ei("0x30")]){const t=e[ei("0x4b")][0].newValue;return t?{type:ei("0x4f"),content:Yo(r,ei("0x6f"),'"'+t+'"')}:{type:"format",content:Yo(r,ei("0x49"))}}if("resizeImage"==e.commandName){const t=e.commandParams[0][ei("0x28")];return t?{type:ei("0x4f"),content:Yo(r,ei("0x27"),t)}:{type:ei("0x4f"),content:Yo(r,"*Reset image width*")}}}var n}))}}const oi=["ImageEditing","_suggestionFactory","enableCommand","registerCustomCallback","Users","selection","getAttribute","accept","subType","replaceImageSource","getContainedElement","discard","change","*Format:* replace image URL","plugins","registerDescriptionCallback","get","markBlockFormat","author","handleSuggestionDescription","TrackChangesEditing","handleReplaceImageCommand","formatBlock","model","document","commandName","source","locale","getSuggestionCallback","editor"];var si,ri;si=oi,ri=193,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{afterInit(){if(!this[ii("0x10")][ii("0x1")].has(ii("0x11")))return;const t=this.editor[ii("0x1")][ii("0x3")](ii("0x7"));t[ii("0x13")](ii("0x1a"),((t,e)=>this[ii("0x8")](t,e))),t[ii("0x12")][ii("0x14")](ii("0x9"),ii("0x1a"),ii("0x18"),t[ii("0x12")].getSuggestionCallback("formatBlock",null,ii("0x1c"))),t[ii("0x12")].registerCustomCallback(ii("0x9"),"replaceImageSource",ii("0x1c"),t._suggestionFactory[ii("0xf")]("formatBlock",null,ii("0x18"))),t._descriptionFactory[ii("0x2")]((t=>this[ii("0x6")](t)))}handleReplaceImageCommand(t,e){const n=this[ii("0x10")].plugins[ii("0x3")]("TrackChangesEditing"),o=this[ii("0x10")][ii("0xa")][ii("0xb")][ii("0x16")].getSelectedElement();this[ii("0x10")].model[ii("0x1d")]((()=>{let s=o[ii("0x17")]("src");const r=this.editor[ii("0x1")][ii("0x3")](ii("0x15")).me;for(const t of n.getSuggestions({skipNotAttached:!0})){const e=t[ii("0x1b")]();if("replaceImageSource"===t[ii("0x19")]&&e===o){t[ii("0x5")]!==r&&t[ii("0x1c")](),s=t.data.commandParams[0][ii("0xd")];break}}t(e),n[ii("0x4")](o,{commandName:ii("0x1a"),commandParams:[{source:s}]},[],ii("0x1a"))}))}[ii("0x6")](t){const{data:e}=t;if(e&&ii("0x1a")===e[ii("0xc")]){const t=ii("0x0");return{type:"format",content:Yo(this[ii("0x10")][ii("0xe")],t)}}}}const ai=["_trackChangesExecuted","track_changes","forEach","_handleImportedData","TrackChangesEditing","afterInit","editor","bind","commands","listenTo","plugins","Users","collaboration_features","get","execute","trackChanges","dataInsert","enableCommand","_trackChangesValueDuringImport","_setSuggestionData","importWord","value"];var ci,li;ci=ai,li=450,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("0x8")]=!1,this[di("0xc")]=!1}[di("0x11")](){const t=this[di("0x12")],e=t[di("0x14")].get("importWord"),n=t[di("0x14")].get(di("0x5"));e&&(e.on("execute",((t,[,e])=>{this._trackChangesValueDuringImport=n[di("0xb")],e[di("0x2")][di("0xd")]=!this[di("0x8")]}),{priority:"high"}),this[di("0x15")](e,"dataInsert",this[di("0xf")][di("0x13")](this)),this[di("0x15")](e,di("0x6"),(()=>{this._trackChangesExecuted&&(n[di("0x4")](),this._trackChangesExecuted=!1)}),{priority:"lowest"}),t.plugins[di("0x3")](di("0x10"))[di("0x7")]("importWord"))}[di("0xf")](t,e){const{suggestions:n}=e,o=this[di("0x12")][di("0x14")].get(di("0x5")),s=o[di("0xb")];this._trackChangesValueDuringImport!==s&&(o[di("0x4")](),this[di("0xc")]=!0),n&&n[di("0xe")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor.plugins[di("0x3")](di("0x1")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:di("0xa")}}};this[di("0x12")][di("0x0")][di("0x3")](di("0x10"))[di("0x9")](s)}))}}const gi=["checkAttribute","outdent","TrackChangesEditing","model","from","format","outdentBlock","markBlockFormat","has","IndentEditing","schema","IndentBlock","*Outdent:* %0","blockIndent","locale","afterInit","editor","getSelectedBlocks","registerDescriptionCallback","plugins","indent","filter","document","enableCommand","*Indent:* %0","_descriptionFactory","indentBlock","get","commandName"];var mi,fi;mi=gi,fi=231,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0x10")](){const t=this[hi("0x11")],e=t[hi("0x14")][hi("0x1c")](hi("0x3"));t[hi("0x14")][hi("0x9")](hi("0xa"))&&(e.enableCommand(hi("0x15")),e[hi("0x18")](hi("0x2")));const n=t[hi("0xf")];if(t[hi("0x14")][hi("0x9")](hi("0xc"))){for(const n of[hi("0x1b"),"outdentBlock"])e.enableCommand(n,(()=>{const o=Array[hi("0x5")](this.editor[hi("0x4")][hi("0x17")].selection[hi("0x12")]())[hi("0x16")]((t=>this[hi("0x11")][hi("0x4")][hi("0xb")][hi("0x1")](t,hi("0xe"))));t[hi("0x4")].change((()=>{for(const t of o)e[hi("0x8")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:hi("0x1b")})}))}));e[hi("0x1a")][hi("0x13")]((t=>{const{data:o}=t;if(!o)return;if(hi("0x1b")!=o[hi("0x0")]&&hi("0x7")!=o[hi("0x0")])return;const s=t.getItems()[0],r=e[hi("0x1a")].getItemLabel(s);return hi("0x1b")==o[hi("0x0")]?{type:hi("0x6"),content:Yo(n,hi("0x19"),r)}:hi("0x7")==o[hi("0x0")]?{type:"format",content:Yo(n,hi("0xd"),r)}:void 0}))}}}var bi,Ei,_i=["requires","editor","TrackChangesEditing","input","enableCommand","init","get","plugins"];bi=_i,Ei=312,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]}[Ti("0x5")](){this[Ti("0x1")][Ti("0x7")][Ti("0x6")](Ti("0x2"))[Ti("0x4")](Ti("0x3"))}}const yi=["LinkEditing","format","selection","getFirstPosition","plugins","getRanges","unlink","afterInit","editor","getFirstRange","isCollapsed","getAttribute","change","link","markInlineFormat","linkHref","*Remove link*","_descriptionFactory","registerDescriptionCallback","document","locale","from","commandName","model","enableCommand"];var ki,Ai;ki=yi,Ai=362,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x14")](){const t=this[vi("0x15")];if(!t[vi("0x11")].has(vi("0xd")))return;const e=t[vi("0x11")].get("TrackChangesEditing");e[vi("0xc")]("link",((n,o)=>{const s=t[vi("0xb")][vi("0x7")][vi("0xf")];let r=[];if(s[vi("0x17")]){if(!s.hasAttribute("linkHref"))return void n(o);{const e=(0,Js.findAttributeRange)(s.getFirstPosition(),vi("0x3"),s[vi("0x18")](vi("0x3")),t[vi("0xb")]);r=[e]}}else r=Array[vi("0x9")](s[vi("0x12")]());t[vi("0xb")][vi("0x0")]((()=>{for(const t of r)e[vi("0x2")](t,{commandName:vi("0x1"),commandParams:[o]})}))})),e.enableCommand(vi("0x13"),(()=>{const n=this[vi("0x15")].model,o=n.document[vi("0xf")];n.change((()=>{let n=[];n=o[vi("0x17")]?[(0,Js.findAttributeRange)(o[vi("0x10")](),vi("0x3"),o[vi("0x18")](vi("0x3")),t[vi("0xb")])]:Es(vi("0x3"),o[vi("0x16")](),t[vi("0xb")]);for(const t of n)e[vi("0x2")](t,{commandName:vi("0x13"),commandParams:[]})}))})),e[vi("0x5")][vi("0x6")]((e=>{const{data:n}=e,o=t[vi("0x8")];if(n){if(vi("0x1")==n[vi("0xa")]){const t=n.commandParams[0];return{type:vi("0xe"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return"unlink"==n[vi("0xa")]?{type:vi("0xe"),content:Yo(o,vi("0x4"))}:void 0}}))}}const Si=["previousSibling","commands","todoList","forceValue","length","push","List","execute","createPositionAt","ELEMENT_TODO_LIST","getAttribute","commandName","add","checkChild","editor","markBlockFormat","name","format","schema","checkTodoList","selection","before","todo","ELEMENT_BULLETED_LIST","locale","isObject","model","nextSibling","commandParams","afterInit","getSelectedBlocks","numberedList","filter","end","listItem","enableCommand","*Change to:* %0","blockName","outdentList","ListEditing","slice","replace","indentList","plugins","paragraph","*Indent:* %0","_descriptionFactory","numbered","TodoListEditing","element","get","*Check item*","ELEMENT_NUMBERED_LIST","createRange","TrackChangesEditing","*Uncheck item*","parent","has","registerDescriptionCallback","listIndent","bulletedList","listType","change","value"];var Ii,Li;Ii=Si,Li=359,function(t){for(;--t;)Ii.push(Ii.shift())}(++Li);const Ni=function(t,e){return Si[t-=0]};class Mi extends t.Plugin{[Ni("0x36")](){const t=this[Ni("0x27")],e=t[Ni("0x31")];if(!t[Ni("0x4")][Ni("0x12")](Ni("0x0")))return;const n=t[Ni("0x4")].get(Ni("0xf")),o=t[Ni("0x4")][Ni("0x12")](Ni("0x9"));function s(e){return()=>{const o=t[Ni("0x33")].document[Ni("0x2d")],s=t[Ni("0x1a")][Ni("0xb")](e);if(s[Ni("0x18")])return void t[Ni("0x20")](Ni("0x5"),{});const r=e[Ni("0x1")](0,-4),i=function(t,e,n){let o=Array.from(t)[Ni("0x39")]((t=>{return e=t,(o=n)[Ni("0x26")](e[Ni("0x11")],Ni("0x3b"))&&!o[Ni("0x32")](e);var e,o}));o=o[Ni("0x39")]((t=>!t.is(Ni("0xa"),"listItem")||t[Ni("0x23")](Ni("0x16"))!=e));const s=new Set;for(const t of o)t.is(Ni("0xa"),Ni("0x3b"))?s.add(wi(t)):s[Ni("0x25")](t);return Array.from(s)}(o[Ni("0x37")](),r,t[Ni("0x33")][Ni("0x2b")]);t.model[Ni("0x17")]((()=>{for(const t of i)n[Ni("0x28")](t,{commandName:e,commandParams:[{forceValue:!s[Ni("0x18")]}],formatGroupId:Ni("0x3e")},Oi(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e.findIndex((t=>Ni("0x3b")!=t[Ni("0x29")]));return n>-1&&(e=e[Ni("0x1")](0,n)),e}(t.model.document.selection[Ni("0x37")]()),s=t.model[Ni("0xe")](t[Ni("0x33")][Ni("0x21")](o[0],Ni("0x2e")),t.model[Ni("0x21")](o[o[Ni("0x1d")]-1],Ni("0x3a")));t[Ni("0x33")][Ni("0x17")]((()=>{n[Ni("0x28")](s,{commandName:e,commandParams:[],formatGroupId:Ni("0x14")},function(t){const e=new Set;for(const n of t){let t=n[Ni("0x34")];for(;t&&t[Ni("0x23")](Ni("0x14"))>n[Ni("0x23")](Ni("0x14"));)e[Ni("0x25")](t),t=t.nextSibling}return Array.from(e)}(o))}))}}n.enableCommand("numberedList",s(Ni("0x38"))),n[Ni("0x3c")](Ni("0x15"),s(Ni("0x15"))),o&&n[Ni("0x3c")](Ni("0x1b"),s(Ni("0x1b"))),n.enableCommand(Ni("0x3"),r(Ni("0x3"))),n[Ni("0x3c")]("outdentList",r(Ni("0x3f"))),o&&n.enableCommand(Ni("0x2c"),(()=>{const e=t[Ni("0x1a")][Ni("0xb")]("checkTodoList"),o=Array.from(e._selectedElements);o[Ni("0x39")]((t=>t[Ni("0x23")]("todoListChecked")!=e.value)),t[Ni("0x33")][Ni("0x17")]((()=>{for(const t of o)n[Ni("0x28")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[Ni("0x18")]}]})}))})),n[Ni("0x7")].registerElementLabel(Ni("0x3b"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[Ni("0x7")][Ni("0x13")]((t=>{const{data:n}=t;if(n){if(Ni("0x38")==n[Ni("0x24")]||Ni("0x15")==n[Ni("0x24")]||Ni("0x1b")==n.commandName)switch(n[Ni("0x24")][Ni("0x2")](Ni("0x1f"),"")){case"bulleted":return o(Yo(e,Ni("0x30")));case Ni("0x8"):return o(Yo(e,Ni("0xd")));case Ni("0x2f"):return o(Yo(e,Ni("0x22")))}if("indentList"==n[Ni("0x24")])return{type:Ni("0x2a"),content:Yo(e,Ni("0x6"),Yo(e,"ELEMENT_LIST_ITEM"))};if(Ni("0x3f")==n[Ni("0x24")])return{type:"format",content:Yo(e,"*Outdent:* %0",Yo(e,"ELEMENT_LIST_ITEM"))};if(Ni("0x2c")==n[Ni("0x24")])return n[Ni("0x35")][0][Ni("0x1c")]?{type:Ni("0x2a"),content:Yo(e,Ni("0xc"))}:{type:"format",content:Yo(e,Ni("0x10"))}}function o(t){return{type:Ni("0x2a"),content:Yo(e,Ni("0x3d"),t)}}}))}}function wi(t){const e=t[Ni("0x23")]("listIndent");if(0==e)return t;let n=t;for(;t[Ni("0x19")]&&t[Ni("0x19")].is("element",Ni("0x3b"));){const o=t[Ni("0x19")][Ni("0x23")](Ni("0x14"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[Ni("0x19")]}return n}function Oi(t){const e=[];if(t.is(Ni("0xa"),Ni("0x3b"))&&t.getAttribute(Ni("0x14"))>0){let n=t[Ni("0x34")];for(;n&&Ni("0x3b")==n[Ni("0x29")]&&n[Ni("0x23")](Ni("0x14"))==t.getAttribute(Ni("0x14"));)e[Ni("0x1e")](n),n=n[Ni("0x34")]}return e}const Fi=["selection","format","listItem","change","element","document","length","ListPropertiesEditing","forward","getSelectedBlocks","commandParams","handleDescriptions","toUpperCase","afterInit","getFirstPosition","listReversed","*Format:* set order to regular","registerDescriptionCallback","numbered","parent","list.properties","getSiblingNodes","type","markMultiRangeBlockFormat","startIndex","backward","ELEMENT_","_LIST_","get","enableCommand","handleListStartCommand","editor","reversed","commandName","listStyle","getListTypeFromListStyleType","handleListStyleCommand","from","listType","_getTranslationKeyForListStyle","ListUtils","TrackChangesEditing","map","listStart","has","model","styles","*Format:* set order to reversed","_getSuggestionBlocks","unshift","_descriptionFactory","filter","plugins","*Change to:* %0","getAttribute","push","handleListReversedCommand","bind","getLastPosition","createRange","createPositionAt","_getSuggestionBlocksForListStyle","before"];var Pi,Di;Pi=Fi,Di=264,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x1")](){if(!this[Bi("0x13")][Bi("0x28")][Bi("0x20")](Bi("0x3a")))return;const t=this[Bi("0x13")].config[Bi("0x10")](Bi("0x8")),e=this[Bi("0x13")].plugins[Bi("0x10")](Bi("0x1d"));t[Bi("0x22")]&&e[Bi("0x11")]("listStyle",this[Bi("0x18")][Bi("0x2d")](this)),t[Bi("0x14")]&&e[Bi("0x11")](Bi("0x3"),this[Bi("0x2c")][Bi("0x2d")](this)),t[Bi("0xc")]&&e.enableCommand(Bi("0x1f"),this.handleListStartCommand[Bi("0x2d")](this)),e[Bi("0x26")][Bi("0x5")](this[Bi("0x3e")][Bi("0x2d")](this))}[Bi("0x18")](t,e={}){const n=this.editor.plugins.get("TrackChangesEditing"),o=this._getSuggestionBlocksForListStyle();this.editor[Bi("0x21")][Bi("0x36")]((()=>{n[Bi("0xb")](o,{commandName:"listStyle",commandParams:[{type:e[Bi("0xa")]}],formatGroupId:"listStyle"})}))}[Bi("0x2c")](t,e={}){const n=this.editor[Bi("0x28")][Bi("0x10")](Bi("0x1d")),o=this[Bi("0x24")]((t=>t.is("element",Bi("0x35"))&&Bi("0x6")===t.getAttribute(Bi("0x1a"))));if(o.length<1)return;const s=o[Bi("0x1e")]((t=>this[Bi("0x13")][Bi("0x21")][Bi("0x2f")](this[Bi("0x13")][Bi("0x21")][Bi("0x30")](t,Bi("0x32")),this[Bi("0x13")][Bi("0x21")][Bi("0x30")](t,0))));this[Bi("0x13")][Bi("0x21")][Bi("0x36")]((()=>{n[Bi("0xb")](s,{commandName:Bi("0x3"),commandParams:[{reversed:e[Bi("0x14")]}],formatGroupId:"listReversed"})}))}[Bi("0x12")](t,e={}){const n=this[Bi("0x13")][Bi("0x28")].get(Bi("0x1d")),o=this[Bi("0x24")]((t=>t.is(Bi("0x37"),Bi("0x35"))&&"numbered"===t[Bi("0x2a")](Bi("0x1a"))));if(o[Bi("0x39")]<1)return;const s=o.map((t=>this[Bi("0x13")][Bi("0x21")].createRange(this.editor[Bi("0x21")].createPositionAt(t,"before"),this.editor[Bi("0x21")][Bi("0x30")](t,0))));this[Bi("0x13")][Bi("0x21")][Bi("0x36")]((()=>{n[Bi("0xb")](s,{commandName:Bi("0x1f"),commandParams:[{startIndex:e.startIndex}],formatGroupId:Bi("0x1f")})}))}handleDescriptions(t){const e=this.editor.locale,{data:n}=t;if(!n)return;let o,s;switch(n[Bi("0x15")]){case Bi("0x16"):o=Bi("0x29"),s={type:Bi("0x34"),content:Yo(e,o,Yo(e,this[Bi("0x1b")](n.commandParams[0][Bi("0xa")])))};break;case Bi("0x3"):o=n.commandParams[0][Bi("0x14")]?Bi("0x23"):Bi("0x4"),s={type:"format",content:Yo(e,o)};break;case Bi("0x1f"):o="*Format:* set start index to %0",s={type:Bi("0x34"),content:Yo(e,o,n[Bi("0x3d")][0][Bi("0xc")])}}return s}[Bi("0x31")](){var t,e,n,o;const s=this.editor[Bi("0x28")].get(Bi("0x1c"));let r=Array[Bi("0x19")](this.editor[Bi("0x21")][Bi("0x38")][Bi("0x33")][Bi("0x3c")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Bi("0x37"),Bi("0x35")))&&r[Bi("0x25")](...s[Bi("0x9")](this.editor.model[Bi("0x38")][Bi("0x33")].getFirstPosition(),"backward")),(null===(e=r[r[Bi("0x39")]-1])||void 0===e?void 0:e.is(Bi("0x37"),Bi("0x35")))&&r[Bi("0x2b")](...s[Bi("0x9")](this[Bi("0x13")][Bi("0x21")].document[Bi("0x33")][Bi("0x2e")](),Bi("0x3b"))),r=[...new Set(r)],(null===(o=null===(n=this[Bi("0x13")].model[Bi("0x38")].selection[Bi("0x2")]())||void 0===n?void 0:n[Bi("0x7")])||void 0===o?void 0:o.is(Bi("0x37"),Bi("0x35")))&&(r=r[Bi("0x27")]((t=>t.is(Bi("0x37"),Bi("0x35"))))),r}[Bi("0x24")](t){const e=this.editor[Bi("0x28")][Bi("0x10")](Bi("0x1c"));let n=Array[Bi("0x19")](this[Bi("0x13")][Bi("0x21")].document.selection[Bi("0x3c")]()).filter(t)[Bi("0x1e")]((t=>{const n=this[Bi("0x13")][Bi("0x21")][Bi("0x30")](t,0);return[...e[Bi("0x9")](n,Bi("0xd")),...e.getSiblingNodes(n,Bi("0x3b"))]})).flat();return n=[...new Set(n)],n}[Bi("0x1b")](t){return Bi("0xe")+this[Bi("0x13")].plugins[Bi("0x10")]("ListUtils")[Bi("0x17")](t).toUpperCase()+Bi("0xf")+t[Bi("0x0")]().replace(/-/g,"_")}}const Ui=["media","conversion","ELEMENT_MEDIA","has","_descriptionFactory","registerElementLabel","dataDowncast","get","showSuggestionHighlights","elementToElement","downcastDispatcher","plugins","MediaEmbedEditing","div","high","createEmptyElement","locale"];var Gi,Hi;Gi=Ui,Hi=137,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.editor;if(!t[zi("0xa")][zi("0x2")](zi("0xb")))return;const e=t.plugins[zi("0x6")]("TrackChangesEditing"),n=t[zi("0xf")];e.enableCommand("mediaEmbed"),e[zi("0x3")][zi("0x4")]("media",(t=>Yo(n,zi("0x1"),t))),t[zi("0x0")].for(zi("0x5"))[zi("0x8")]({model:zi("0x10"),view:(t,{writer:e,options:n})=>{if(n[zi("0x7")])return e[zi("0xe")](zi("0xc"))},converterPriority:"high"}),t.data[zi("0x9")].on("attribute:url:media",((t,e,n)=>{n.options.showSuggestionHighlights&&t.stop()}),{priority:zi("0xd")})}}const Vi=["MentionEditing","enableCommand","TrackChangesEditing","has","editor","plugins","get","afterInit"];var Ki,qi;Ki=Vi,qi=355,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x4")](){const t=this[Xi("0x1")];t[Xi("0x2")][Xi("0x0")](Xi("0x5"))&&t[Xi("0x2")][Xi("0x3")](Xi("0x7"))[Xi("0x6")]("mention")}}const Ji=["has","editor","plugins","locale","afterInit","pageBreak","get","TrackChangesEditing","registerElementLabel"];var Qi,Zi;Qi=Ji,Zi=107,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x5")](){const t=this[Yi("0x2")];if(!t[Yi("0x3")][Yi("0x1")]("PageBreakEditing"))return;t[Yi("0x3")][Yi("0x7")](Yi("0x8")).enableCommand(Yi("0x6"));const e=t.plugins[Yi("0x7")](Yi("0x8")),n=t[Yi("0x4")];e._descriptionFactory[Yi("0x0")]("pageBreak",(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const ex=["registerElementLabel","commandName","markerName","editing","options","model","get","nodeAfter","editor","includes","highest","TrackChangesEditing","plugins","isLimit","parent","markerRange","downcastDispatcher","activeMarkers","addClass","insertParagraph","blockName","consume","createUIElement","getFirstRange","checkChild","toViewPosition","showSuggestionHighlights","isTouching","getItemLabel","writer","Paragraph","ELEMENT_PARAGRAPH","schema","afterInit","enableCommand","addMarker:suggestion:insertion","selection","*Change to:* %0","registerDescriptionCallback","bindElementToMarker","isObject","markBlockFormat","mapper","from","isBlock","insertion","start","ck-suggestion-marker-split","end","insert","type","locale","name","filter","change","_descriptionFactory","paragraph","getSelectedBlocks"];var nx,ox;nx=ex,ox=292,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{[sx("0x1f")](){const t=this.editor;if(!t.plugins.has(sx("0x1c")))return;const e=t[sx("0x31")],n=t[sx("0xa")][sx("0x4")]("TrackChangesEditing");n[sx("0x35")][sx("0x38")]("paragraph",(t=>Yo(e,sx("0x1d"),t))),n[sx("0x20")](sx("0x36"),((e,o={})=>{const s=t.model.document,r=o[sx("0x22")]||s[sx("0x22")],i=Array[sx("0x29")](r[sx("0x37")]())[sx("0x33")]((t=>{return e=t,(n=this[sx("0x6")][sx("0x3")][sx("0x1e")])[sx("0x16")](e[sx("0xc")],sx("0x36"))&&!n[sx("0x26")](e)&&"paragraph"!=e[sx("0x32")];var e,n}));t[sx("0x3")][sx("0x34")]((()=>{for(const t of i)n[sx("0x27")](t,{commandName:sx("0x36"),commandParams:[],formatGroupId:sx("0x12")},_s(t))}))})),n[sx("0x35")][sx("0x24")]((t=>{const{data:n}=t;if(n&&sx("0x36")==n[sx("0x39")])return{type:"format",content:Yo(e,sx("0x23"),Yo(e,sx("0x1d")))}})),n[sx("0x20")](sx("0x11")),t[sx("0x1")].downcastDispatcher.on("addMarker:suggestion:insertion",ix(t),{priority:sx("0x8")}),t.data[sx("0xe")].on(sx("0x21"),((e,n,o)=>{o[sx("0x2")][sx("0x18")]&&ix(t,{showActiveMarker:!1})(e,n,o)}),{priority:sx("0x8")});const o=n[sx("0x35")];o.registerDescriptionCallback((n=>{if(sx("0x2b")!==n[sx("0x30")])return;const{start:s,end:r}=n[sx("0x15")]();if(!s[sx("0x19")](r)||!s.nodeAfter)return;const i=t[sx("0x3")][sx("0x1e")],x=s.nodeAfter;return i[sx("0x2a")](x)&&!i[sx("0xb")](x)&&i.checkChild(x,"$text")?{type:sx("0x2b"),content:Yo(e,"*Insert:* %0",o[sx("0x1a")](x,1))}:void 0}))}}function ix(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[sx("0x4")](sx("0x9")),i=o[sx("0xd")][sx("0x2c")],x=o.markerRange[sx("0x2e")],a=t[sx("0x3")][sx("0x1e")];if(!i[sx("0x19")](x)||!i[sx("0x5")])return;const c=i[sx("0x5")];if(a[sx("0x2a")](c)&&!a.isLimit(c)&&a[sx("0x16")](c,"$text")){if(!s.consumable[sx("0x13")](o[sx("0xd")],n[sx("0x32")]))return;const t=s.writer[sx("0x14")]("span",{class:sx("0x2d")}),i=s[sx("0x28")][sx("0x17")](x);e&&r[sx("0xf")][sx("0x7")](o[sx("0x0")])&&s[sx("0x1b")][sx("0x10")]("ck-suggestion-marker--active",t),s[sx("0x1b")][sx("0x2f")](i,t),s[sx("0x28")][sx("0x25")](t,o[sx("0x0")])}}}const xx=["getItems","createRangeOn","format","from","getRanges","registerDescriptionCallback","getAttributes","change","RemoveFormatEditing","afterInit","*Remove all formatting*","enableCommand","model","plugins","get","editor","commandName","selection","has","getAttributeProperties","schema","document"];var ax,cx;ax=xx,cx=294,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("0x7")];if(!t[lx("0x5")][lx("0xa")](lx("0x0")))return;const e=t[lx("0x5")][lx("0x6")]("TrackChangesEditing");e[lx("0x3")]("removeFormat",(n=>{const o=t[lx("0x4")][lx("0xd")][lx("0x9")];o.isCollapsed?n():t[lx("0x4")][lx("0x15")]((()=>{const n=Array[lx("0x11")](o[lx("0x12")]());for(const o of n)for(const n of o[lx("0xe")]())ux(n,t[lx("0x4")][lx("0xc")])&&e.markInlineFormat(t[lx("0x4")][lx("0xf")](n),{commandName:"removeFormat",commandParams:[]})}))})),e._descriptionFactory[lx("0x13")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[lx("0x8")])return{type:lx("0x10"),content:Yo(t.locale,lx("0x2"))}}))}}function ux(t,e){for(const[n]of t[lx("0x14")]()){const t=e[lx("0xb")](n);if(t&&t.isFormatting)return!0}return!1}const gx=["acceptAllSuggestions","enableCommand","discardSuggestion","goToNextRestrictedEditingException","RestrictedEditingModeEditing","goToPreviousRestrictedEditingException","acceptSuggestion","trackChanges","plugins","acceptSelectedSuggestions","afterInit","get","editor","has"];var mx,fx;mx=gx,fx=398,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0x4")](){const t=this[hx("0x6")];if(!t.plugins[hx("0x7")](hx("0xc")))return;const e=t.plugins[hx("0x5")]("TrackChangesEditing");e[hx("0x9")](hx("0xd")),e[hx("0x9")](hx("0xb"));const n=t[hx("0x2")][hx("0x5")](hx("0xc"));n[hx("0x9")](hx("0x1")),n[hx("0x9")](hx("0x0")),n[hx("0x9")](hx("0xa")),n[hx("0x9")](hx("0x8")),n[hx("0x9")]("discardAllSuggestions"),n[hx("0x9")](hx("0x3")),n[hx("0x9")]("discardSelectedSuggestions")}}const bx=["addMarker:suggestion:deletion","activeMarkers","high","softBreak","test","mapper","ELEMENT_LINE_BREAK","addMarker:suggestion","model","markerName","bindElementToMarker","editing","split","addClass","getItems","writer","element","options","TrackChangesEditing","enableCommand","editor","ck-suggestion-marker-","init","createUIElement","plugins","downcastDispatcher","get","_descriptionFactory","registerElementLabel","addMarker:suggestion:insertion","shiftEnter","locale","markerRange","showSuggestionHighlights","createPositionBefore","toViewPosition","name","deletion"];var Ex,_x;Ex=bx,_x=328,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 requires(){return[xr.ShiftEnter]}[Tx("0x24")](){const t=this[Tx("0x22")],e=t[Tx("0x0")][Tx("0x2")]("TrackChangesEditing");e[Tx("0x21")](Tx("0x6")),t[Tx("0x19")].downcastDispatcher.on(Tx("0x5"),yx(t),{priority:Tx("0x10")}),t[Tx("0x19")][Tx("0x1")].on(Tx("0xe"),yx(t),{priority:Tx("0x10")}),t.data[Tx("0x1")].on(Tx("0x15"),((e,n,o)=>{o[Tx("0x1f")][Tx("0x9")]&&yx(t,{showActiveMarker:!1})(e,n,o)})),e[Tx("0x3")][Tx("0x4")]("softBreak",(e=>Yo(t[Tx("0x7")],Tx("0x14"),e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Tx("0x0")][Tx("0x2")](Tx("0x20"));if(!s.consumable[Tx("0x12")](o[Tx("0x8")],n[Tx("0xc")]))return;const i=t[Tx("0x16")];for(const t of o[Tx("0x8")][Tx("0x1c")]()){if(!t.is(Tx("0x1e"),Tx("0x11")))continue;const n=Tx("0xd")==o[Tx("0x17")][Tx("0x1a")](":")[1]?"merge":"split",x=s.writer[Tx("0x25")]("span",{class:Tx("0x23")+n}),a=s[Tx("0x13")][Tx("0xb")](i[Tx("0xa")](t));e&&r[Tx("0xf")].includes(o.markerName)&&s[Tx("0x1d")][Tx("0x1b")]("ck-suggestion-marker--active",x),s[Tx("0x1d")].insert(a,x),s[Tx("0x13")][Tx("0x18")](x,o.markerName)}}}const kx=["format","isCollapsed","enableCommand","forceValue","editor","get","change","restrictedEditingException","commands","TrackChangesEditing","selection","document","FORMAT_RESTRICTED_DISABLED","afterInit","registerDescriptionCallback","commandName","markInlineFormat","_descriptionFactory","StandardEditingModeEditing","commandParams","plugins","value"];var Ax,vx;Ax=kx,vx=213,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x14")](){const t=this[Rx("0xb")],e=t.model,n=t.locale;if(!t[Rx("0x5")].has(Rx("0x3")))return;const o=t[Rx("0x5")][Rx("0xc")](Rx("0x10")),s=Rx("0xe"),r=t[Rx("0xf")][Rx("0xc")](s);o[Rx("0x9")](s,((t,n={})=>{const i=e[Rx("0x12")][Rx("0x11")];if(i[Rx("0x8")])return void t(n);const x=void 0!==n.forceValue?n[Rx("0xa")]:!r[Rx("0x6")];e[Rx("0xd")]((()=>{const t=Array.from(i.getRanges());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0x1")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0x2")][Rx("0x15")]((t=>{const{data:e}=t;if(e&&e[Rx("0x0")]==s)return e[Rx("0x4")][0][Rx("0xa")]?{type:Rx("0x7"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Rx("0x7"),content:Yo(n,Rx("0x13"))}}))}}const Ix=["registerDescriptionCallback","value","StyleUtils","getAncestors","markInlineFormat","find","commandName","normalizeConfig","from","push","Style","_descriptionFactory","style:","style","style.definitions","add","getSelectedBlocks","plugins","getItems","get","editor","TrackChangesEditing","afterInit","styleName","commands","name","markBlockFormat","format","locale","includes","has","getRanges","forceValue","document","classes","_getStyleDefinition","isBlock","model","_getRangesWithClasses","createRangeOn","every","enableCommand","*Remove format:* %0","DataSchema","commandParams","config","toLowerCase","isCollapsed"];var Lx,Nx;Lx=Ix,Nx=154,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{[Mx("0xc")](){const t=this[Mx("0xa")];if(!t[Mx("0x7")][Mx("0x14")](Mx("0x0")))return;const e=t[Mx("0xe")].get(Mx("0x3")),n=t[Mx("0x7")][Mx("0x9")](Mx("0xb")),o=t[Mx("0x12")],s=t[Mx("0x7")][Mx("0x9")](Mx("0x21")),r=t[Mx("0x7")][Mx("0x9")](Mx("0x28"))[Mx("0x2d")](s,t[Mx("0x23")][Mx("0x9")](Mx("0x4")));n[Mx("0x1f")](Mx("0x3"),((o,{styleName:i})=>{const x=t.model[Mx("0x17")].selection,a=this[Mx("0x19")](i,r);if(!a)return;if(!e.enabledStyles[Mx("0x13")](i))return;if(x[Mx("0x25")]&&!a[Mx("0x1a")])return void o({styleName:i});const c=!e[Mx("0x27")][Mx("0x13")](a[Mx("0xf")]);if(a[Mx("0x1a")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Mx("0x29")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Mx("0x13")](o.name)){n[Mx("0x5")](o);break}}return n}(x[Mx("0x6")](),a.modelElements);t[Mx("0x1b")].change((()=>{for(const t of e)n[Mx("0x10")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:Mx("0x2")+i})}))}else{let e=Array.from(x[Mx("0x15")]());if(!c){const n=Array[Mx("0x2e")](s.getDefinitionsForView(a.element,!1))[0][Mx("0x1b")],o=[];for(const s of e){const e=this[Mx("0x1c")](t.model,s,a[Mx("0x18")],n);o.push(...e)}e=o}t.model.change((()=>{for(const t of e)n[Mx("0x2a")](t,{commandName:Mx("0x3"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Mx("0x1")][Mx("0x26")]((t=>{const{data:e}=t;if(e&&Mx("0x3")===e[Mx("0x2c")])return e[Mx("0x22")][0][Mx("0x16")]?{type:"format",content:Yo(o,"*Format:* %0",e[Mx("0x22")][0].styleName[Mx("0x24")]())}:{type:Mx("0x11"),content:Yo(o,Mx("0x20"),e[Mx("0x22")][0][Mx("0xd")][Mx("0x24")]())}}))}_getStyleDefinition(t,e){let n=e.block.find((e=>e[Mx("0xf")]===t));return n||(n=e.inline[Mx("0x2b")]((e=>e[Mx("0xf")]===t))),n}[Mx("0x1c")](t,e,n,o){const s=[];for(const r of e[Mx("0x8")]()){const e=r.getAttribute(o);e&&n[Mx("0x1e")]((t=>e[Mx("0x18")].includes(t)))&&s[Mx("0x2f")](t[Mx("0x1d")](r))}return s}}const Ox=["end","getChanges","substr","getChangedMarkers","$graveyard","rowspan","get","registerElementLabel","ELEMENT_TABLE_COLUMN","getRowIndexes","subType","add","_setupColumnsRowsFixing","mapper","getSelectionAffectedTableCells","maxColumn","_splitMarkerName","isTouching","rootName","cell","accept","length","*Remove:* %0","highest","getSuggestion","document","_getSuggestionCoords","isEqual","model","tableRow","name","tableCell","addClass","getCellLocation","minColumn","hasAttribute","classes","enableCommand","toViewElement","first","_suggestionFactory","_acceptFormatSuggestionCallbackFactory","options","low","ELEMENT_TABLE_ROW","nodeBefore","selectTableColumn","markMultiRangeDeletion","_descriptionFactory","last","change","getAttribute","change:data","ELEMENT_TABLE_ROW_WITH_TEXT","insert","ELEMENT_TABLE_WITH_TEXT","showSuggestionHighlights","commands","isArray","_tableSuggestions","suggestion","_getCoordsForCells","nodeAfter","item","insertTableRowBelow","plugins","has","TrackChangesEditing","colspan","removeTableColumn","enqueueChange","MAX_SAFE_INTEGER","TableUtils","removeClass","insertTable","writer","filter","_tablePostFixingSubtypes","map","oldRange","batch","span","insertTableRowAbove","execute","refresh","position","createTableWalker","afterInit","removeTableRow","max","selection","$textProxy","data","discard","type","registerPostFixer","getRanges","downcastDispatcher","element","push","join","registerCustomCallback","MIN_SAFE_INTEGER","table","markMultiRangeInsertion","fromRange","addRange","insertTableColumnLeft","differ","getContainedElement","insertion","every","tablePaste","root","start","getChildren","setSelection","includes","getColumnIndexes","locale","deletion","min","toLowerCase","detach","isIntersectingWithRange","editor","TableEditing","maxRow","from","left","findAncestor","getItems","tableColumn","some","createRangeOn","ELEMENT_TABLE_COLUMN_WITH_TEXT","above","getFirstRange","registerDescriptionCallback","*Insert:* %0"];var Fx,Px;Fx=Ox,Px=220,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("0x89")]=[Dx("0x59"),Dx("0x34")],this[Dx("0x77")]=new Set}[Dx("0x7")](){const t=this[Dx("0x2d")],e=t.model[Dx("0x55")][Dx("0xa")];if(!t[Dx("0x7d")][Dx("0x7e")](Dx("0x2e")))return;const n=t[Dx("0x27")],o=t[Dx("0x7d")][Dx("0x42")]("TrackChangesEditing"),s=t.plugins[Dx("0x42")](Dx("0x84"));o._descriptionFactory[Dx("0x43")](Dx("0x17"),(t=>Yo(n,"ELEMENT_TABLE",t))),this[Dx("0x48")](),o[Dx("0x61")](Dx("0x86")),o[Dx("0x61")]("selectTableRow"),o[Dx("0x61")](Dx("0x6a"));for(const n of[Dx("0x2"),Dx("0x7c")]){const r=t[Dx("0x75")][Dx("0x42")](n);o[Dx("0x61")](n,(n=>{t[Dx("0x58")][Dx("0x6e")]((t=>{n();const i=Dx("0x38")===r.order,x=s.getSelectionAffectedTableCells(e),a=s[Dx("0x45")](x),c=i?a.first-1:a.last+1,l=x[0].findAncestor(Dx("0x17")),d=s[Dx("0x6")](l,{startRow:c,endRow:c}),u=Array[Dx("0x30")](d)[Dx("0x8a")]((e=>t.createRangeOn(e[Dx("0x4f")])));o[Dx("0x18")](u,Dx("0x59"))}))}))}for(const n of[Dx("0x1b"),"insertTableColumnRight"]){const r=t[Dx("0x75")][Dx("0x42")](n);o[Dx("0x61")](n,(n=>{t.model.change((t=>{n();const i=Dx("0x31")===r.order,x=s[Dx("0x4a")](e),a=s.getColumnIndexes(x),c=i?a[Dx("0x63")]-1:a[Dx("0x6d")]+1,l=x[0][Dx("0x32")](Dx("0x17")),d=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Dx("0x30")](d)[Dx("0x8a")]((e=>t[Dx("0x36")](e[Dx("0x4f")])));o.markMultiRangeInsertion(u,Dx("0x34"))}))}))}for(const n of["removeTableRow",Dx("0x81")]){const r=n[Dx("0x3e")](11),i=r[Dx("0x2a")](),x=i.substr(0,3)+Dx("0x1"),a="table"+r,c=Dx("0x29")+r,l=Dx("0x9")+r;o.enableCommand(n,(()=>{t[Dx("0x58")][Dx("0x6e")]((t=>{const r=s.getSelectionAffectedTableCells(e),d=r[0][Dx("0x32")](Dx("0x17"));let u;if(Dx("0x8")==n){const t=s.getRowIndexes(r);u={startRow:t.first,endRow:t[Dx("0x6d")],includeAllSlots:!0}}else{const t=s[Dx("0x26")](r);u={startColumn:t[Dx("0x63")],endColumn:t[Dx("0x6d")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array.from(g).map((({cell:t})=>t)),f=jx(m[Dx("0x88")]((t=>t[Dx("0x5f")](x)))),h=jx(m[Dx("0x88")]((t=>!t[Dx("0x5f")](x))))[Dx("0x8a")]((e=>t[Dx("0x36")](e))),p=o[Dx("0x6b")](h,a);if(p&&(Dx("0x59")==p[Dx("0x46")]||"tableColumn"==p[Dx("0x46")])){const e=this[Dx("0x56")](p);for(const n of f){const o=t.createRangeOn(n),r=s.getCellLocation(n),a=n[Dx("0x6f")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Dx("0x1a")](o)}}}))}))}function r(n){const o=Array[Dx("0x30")](e[Dx("0x10")]())[Dx("0x8a")]((t=>i.LiveRange[Dx("0x19")](t)));t[Dx("0x58")].change((e=>{const s=e[Dx("0x0")];n=n[Dx("0x88")]((t=>Dx("0x40")!=t[Dx("0x21")][Dx("0x4e")])),e[Dx("0x24")](n),t[Dx("0x75")].get(Dx("0x8"))[Dx("0x4")](),t.execute(Dx("0x8"),{forceDefaultExecution:!0}),t[Dx("0x58")][Dx("0x82")]((()=>{t[Dx("0x58")][Dx("0x82")](s,(t=>{const e=o[Dx("0x88")]((t=>Dx("0x40")!=t.root[Dx("0x4e")]));e[Dx("0x51")]>0&&t.setSelection(e);for(const t of o)t[Dx("0x2b")]()}))}))}))}function a(n){t[Dx("0x58")][Dx("0x6e")]((o=>{const s=Array[Dx("0x30")](e.getRanges()).map((t=>i.LiveRange[Dx("0x19")](t))),r=[];for(const t of n)for(const e of t[Dx("0x33")]({shallow:!0}))r[Dx("0x13")](e);for(const e of r)Dx("0x40")!=e[Dx("0x21")][Dx("0x4e")]&&(o[Dx("0x24")](o.createPositionAt(e,0)),t[Dx("0x75")][Dx("0x42")]("removeTableColumn")[Dx("0x4")](),t[Dx("0x3")](Dx("0x81"),{forceDefaultExecution:!0}));const x=s[Dx("0x88")]((t=>Dx("0x40")!=t[Dx("0x21")].rootName));x.length>0&&o[Dx("0x24")](x);for(const t of s)t[Dx("0x2b")]()}))}function c(t,e){return e[Dx("0x1f")]((e=>t.some((t=>t[Dx("0x3c")][Dx("0x57")](e[Dx("0x22")])||e[Dx("0x3c")][Dx("0x57")](t[Dx("0x22")])))))}function l(t,e){return t[Dx("0x35")]((t=>e[Dx("0x35")]((e=>t[Dx("0x3c")][Dx("0x4d")](e[Dx("0x22")])))))}t[Dx("0xc")][Dx("0x11")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Dx("0x66")][Dx("0x74")])return;const o=e[Dx("0x7b")];if(!o)return;const s=n[Dx("0x49")][Dx("0x62")](o);function r(t){return Array[Dx("0x76")](t)?t:[t]}s&&Dx("0x5b")===o[Dx("0x5a")]&&(0,x.setHighlightHandling)(s,n[Dx("0x87")],((t,e,n)=>n[Dx("0x5c")](r(e[Dx("0x60")]),t)),((t,e,n)=>n[Dx("0x85")](r(e.classes),t)))}),{priority:Dx("0x53")}),o[Dx("0x6c")][Dx("0x3a")]((t=>{if(Dx("0x1e")!=t[Dx("0xe")]&&Dx("0x28")!=t.type)return;const e=t[Dx("0x1d")]();if(null!=e&&e.is(Dx("0x12"),Dx("0x17"))){if("insertion"==t[Dx("0xe")]){const e=t[Dx("0x33")]().filter((t=>t.is("$textProxy")))[Dx("0x8a")]((t=>t[Dx("0xc")]));if(e[Dx("0x51")])return{type:"insertion",content:Yo(n,Dx("0x3b"),Yo(n,Dx("0x73"),'"'+e[Dx("0x14")](" ")+'"'))}}if(Dx("0x28")==t[Dx("0xe")]){const e=t.getItems()[Dx("0x88")]((t=>t.is(Dx("0xb"))))[Dx("0x8a")]((t=>t[Dx("0xc")]));if(e.length)return{type:Dx("0x28"),content:Yo(n,"*Remove:* %0",Yo(n,Dx("0x73"),'"'+e[Dx("0x14")](" ")+'"'))}}}})),o[Dx("0x6c")].registerDescriptionCallback((t=>{if("tableRow"==t[Dx("0x46")]){const e=t[Dx("0x33")]()[Dx("0x88")]((t=>t.is("$textProxy")))[Dx("0x8a")]((t=>t.data)),o=this._getSuggestionCoords(t),s=o[Dx("0x2f")]-o.minRow+1;if(Dx("0x1e")==t.type)return e[Dx("0x51")]?{type:Dx("0x1e"),content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x71"),[s,'"'+e[Dx("0x14")](" ")+'"']))}:{type:Dx("0x1e"),content:Yo(n,Dx("0x3b"),Yo(n,Dx("0x68"),s))};if(Dx("0x28")==t[Dx("0xe")])return e.length?{type:Dx("0x28"),content:Yo(n,Dx("0x52"),Yo(n,Dx("0x71"),[s,'"'+e[Dx("0x14")](" ")+'"']))}:{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,Dx("0x68"),s))}}if(Dx("0x34")==t[Dx("0x46")]){const e=t[Dx("0x33")]().filter((t=>t.is(Dx("0xb")))).map((t=>t[Dx("0xc")])),o=this[Dx("0x56")](t),s=o[Dx("0x4b")]-o[Dx("0x5e")]+1;if(Dx("0x1e")==t[Dx("0xe")])return e[Dx("0x51")]?{type:Dx("0x1e"),content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x37"),[s,'"'+e[Dx("0x14")](" ")+'"']))}:{type:Dx("0x1e"),content:Yo(n,Dx("0x3b"),Yo(n,Dx("0x44"),s))};if(Dx("0x28")==t[Dx("0xe")])return e[Dx("0x51")]?{type:"deletion",content:Yo(n,Dx("0x52"),Yo(n,Dx("0x37"),[s,'"'+e.join(" ")+'"']))}:{type:Dx("0x28"),content:Yo(n,Dx("0x52"),Yo(n,Dx("0x44"),s))}}})),o[Dx("0x64")][Dx("0x15")](Dx("0x1e"),Dx("0x59"),"discard",r),o._suggestionFactory[Dx("0x15")](Dx("0x28"),Dx("0x59"),Dx("0x50"),r),o._suggestionFactory.registerCustomCallback(Dx("0x1e"),"tableColumn",Dx("0xd"),a),o[Dx("0x64")][Dx("0x15")](Dx("0x28"),Dx("0x34"),Dx("0x50"),a),o._suggestionFactory[Dx("0x15")](Dx("0x1e"),Dx("0x34"),Dx("0x14"),c),o._suggestionFactory[Dx("0x15")](Dx("0x28"),Dx("0x34"),Dx("0x14"),c),o[Dx("0x64")].registerCustomCallback(Dx("0x1e"),Dx("0x59"),Dx("0x14"),l),o[Dx("0x64")][Dx("0x15")](Dx("0x28"),Dx("0x59"),"join",l)}[Dx("0x65")](){const t=this.editor,e=t[Dx("0x58")][Dx("0x55")][Dx("0xa")];return(n,o)=>{t[Dx("0x58")][Dx("0x6e")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Dx("0x3c")][Dx("0x69")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start.nodeAfter);const c=s.createRangeIn(a);if(Dx("0x40")==c[Dx("0x21")][Dx("0x4e")])return;const l=Array[Dx("0x30")](e.getRanges())[Dx("0x8a")]((t=>i.LiveRange.fromRange(t)));s[Dx("0x24")](c),t[Dx("0x75")][Dx("0x42")](r)[Dx("0x4")](),x[Dx("0x13")]({forceDefaultExecution:!0}),t[Dx("0x3")](r,...x);const d=l[Dx("0x88")]((t=>"$graveyard"!=t[Dx("0x21")][Dx("0x4e")]));d[Dx("0x51")]>0&&s[Dx("0x24")](d);for(const t of l)t.detach()}))}}[Dx("0x79")](t){const e=this[Dx("0x2d")][Dx("0x7d")][Dx("0x42")](Dx("0x84"));let n=Number.MAX_SAFE_INTEGER,o=Number[Dx("0x16")],s=Number[Dx("0x83")],r=Number.MIN_SAFE_INTEGER;for(const i of t){if("$graveyard"==i[Dx("0x21")][Dx("0x4e")])continue;const{row:t,column:x}=e[Dx("0x5d")](i),a=i[Dx("0x5f")](Dx("0x41"))?i[Dx("0x6f")](Dx("0x41"))-1:0,c=i.hasAttribute(Dx("0x80"))?i[Dx("0x6f")]("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("0x48")](){const t=this[Dx("0x2d")],e=t[Dx("0x7d")].get(Dx("0x7f")),n=t[Dx("0x7d")].get(Dx("0x84"));t[Dx("0x58")][Dx("0x55")].on(Dx("0x70"),(()=>{const n=Array[Dx("0x30")](t[Dx("0x58")][Dx("0x55")][Dx("0x1c")][Dx("0x3f")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Dx("0x4c")](t);if(Dx("0x78")!=n)continue;if(null!=o[Dx("0x8b")])continue;const i=e[Dx("0x54")](s);this[Dx("0x89")][Dx("0x25")](r)&&this._tableSuggestions[Dx("0x47")](i)}}),{priority:Dx("0x67")});const o=(t,e)=>{let o=!1;const s=e[Dx("0x36")](t),r=t[Dx("0x32")](Dx("0x17")),i=n[Dx("0x5d")](t);for(const e of this[Dx("0x77")]){const n=e[Dx("0x46")],x=n.startsWith(Dx("0x20")),a=n.substr(x?10:5),c=a[Dx("0x2a")](),l=c[Dx("0x3e")](0,3)+Dx("0x1"),d=Dx("0x29")+a,u=Dx("0x9")+a;if(!e.isInContent)continue;if(r!=e[Dx("0x39")]()[Dx("0x22")].findAncestor(Dx("0x17")))continue;if(e[Dx("0x2c")](s))continue;const g=t[Dx("0x5f")](l)?t.getAttribute(l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Dx("0x1a")](s),o=!0)}return o};t[Dx("0x58")][Dx("0x55")][Dx("0xf")]((e=>{let n=!1;for(const s of t.model[Dx("0x55")][Dx("0x1c")][Dx("0x3d")]())if(Dx("0x72")==s[Dx("0xe")])if(Dx("0x59")==s[Dx("0x5a")])for(const t of s[Dx("0x5")][Dx("0x7a")][Dx("0x23")]())n=n||o(t,e);else Dx("0x5b")==s[Dx("0x5a")]&&(n=n||o(s[Dx("0x5")][Dx("0x7a")],e));return n}))}[Dx("0x56")](t){return this[Dx("0x79")](t.getRanges()[Dx("0x8a")]((t=>t[Dx("0x22")].nodeAfter)))}}function jx(t){return Array[Dx("0x30")](new Set(t).values())}const Ux=["mergeTableCellDown","value","commandName","refresh","_areMergableCells","TrackChangesEditing","splitTableCellVertically","find","low","registerDescriptionCallback","from","_isForcedDefaultExecutionBlock","createTableWalker","author","map","_suggestionFactory","push","table","getSuggestions","plugins","root","mergeTableCellLeft","change","_tablePostFixingSubtypes","markMultiRangeBlockFormat","getSelectionAffectedTableCells","element","get","format","fromRange","*Split cell:* horizontally","$graveyard","detach","_descriptionFactory","enableCommand","mergeTableCellRight","setSelection","tableCell","createRangeOn","selection","afterInit","model","forceDefaultExecution","highest","getRanges","containsRange","getAncestors","accept","locale","has","stop","horizontally","add","direction","filter","formatBlock","type","getFirstPosition","registerCustomCallback","TableUtils","size","mergeTableCellUp","_areSelectedCellsMergable","findAncestor","commands","isEnabled","splitTableCellHorizontally","mergeTableCells","set:isEnabled","_acceptFormatSuggestionCallbackFactory","*Split cell:* vertically","rootName","*Merge cells*","markBlockFormat","insertion","cell","document","editor","length"];var Gx,Hx;Gx=Ux,Hx=372,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]}[zx("0x3f")](){const t=this[zx("0x15")],e=t[zx("0x40")].document[zx("0x3e")],n=t[zx("0x47")];if(!t.plugins.has("TableEditing"))return;const o=t[zx("0x2a")].get("TrackChangesEditing"),s=t[zx("0x2a")].get(zx("0x3")),r=t[zx("0x2a")][zx("0x32")](Bx);r[zx("0x2e")][zx("0x27")]("mergeTableCells"),o[zx("0x39")](zx("0xb"),(()=>{const e=s.getSelectionAffectedTableCells(t.model[zx("0x14")][zx("0x3e")]);t[zx("0x40")][zx("0x2d")]((()=>{o[zx("0x2f")](e,{commandName:"mergeTableCells",commandParams:[]},[],zx("0xb"))}))})),t[zx("0x8")][zx("0x32")](zx("0xb")).on("execute",((e,n)=>{t[zx("0x8")].get("trackChanges")[zx("0x18")]&&(n[zx("0x16")]>0&&n[n[zx("0x16")]-1]&&n[n[zx("0x16")]-1][zx("0x41")]||o[zx("0x22")]||this[zx("0x6")]()||e[zx("0x49")]())}),{priority:zx("0x42")});for(const e of[zx("0x5"),zx("0x3a"),"mergeTableCellDown",zx("0x2c")]){const n=t[zx("0x8")][zx("0x32")](e);o[zx("0x39")](e,(()=>{const e=t[zx("0x40")].document[zx("0x3e")][zx("0x1")]()[zx("0x45")]()[zx("0x1e")]((t=>t.is("element","tableCell"))),s=n[zx("0x18")];t[zx("0x40")].change((()=>{o[zx("0x2f")]([e,s],{commandName:zx("0xb"),commandParams:[]},[],zx("0xb"))}))}))}for(const e of["splitTableCellVertically",zx("0xa")]){const n=t[zx("0x8")][zx("0x32")](e);o[zx("0x39")](e,(()=>{const r=s[zx("0x30")](t[zx("0x40")][zx("0x14")][zx("0x3e")])[0],i=r[zx("0x7")](zx("0x28")),{column:x,row:a}=s.getCellLocation(r);let c=[];if(zx("0x4a")==n[zx("0x4c")]){const t=s[zx("0x23")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[zx("0x21")](t)[zx("0x25")]((t=>t[zx("0x13")]))}else{const t=s[zx("0x23")](i,{column:x,includeAllSlots:!0});c=Array[zx("0x21")](t)[zx("0x25")]((t=>t.cell))}t[zx("0x40")][zx("0x2d")]((t=>{o[zx("0x11")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[zx("0x20")]((t=>{const{data:e}=t;if(e)return zx("0xb")==e[zx("0x19")]?{type:zx("0x33"),content:Yo(n,zx("0x10"))}:void 0})),o[zx("0x38")][zx("0x20")]((t=>{const{data:e}=t;if(e)return zx("0x1d")==e.commandName?{type:"format",content:Yo(n,zx("0xe"))}:"splitTableCellHorizontally"==e[zx("0x19")]?{type:"format",content:Yo(n,zx("0x35"))}:void 0}));const x=r[zx("0xd")]();for(const t of["mergeTableCellUp","mergeTableCellRight",zx("0x17"),zx("0x2c")])o[zx("0x26")].registerCustomCallback("formatBlock",t,zx("0x46"),x);for(const t of[zx("0x1d"),zx("0xa")])o[zx("0x26")][zx("0x2")]("formatBlock",t,zx("0x46"),x);o[zx("0x26")][zx("0x2")](zx("0x4e"),zx("0xb"),zx("0x46"),(n=>{t[zx("0x40")][zx("0x2d")]((o=>{const s=Array[zx("0x21")](e.getRanges())[zx("0x25")]((t=>i.LiveRange[zx("0x34")](t)));o[zx("0x3b")](n),t[zx("0x8")][zx("0x32")](zx("0xb"))[zx("0x1a")](),t.execute(zx("0xb"),{forceDefaultExecution:!0});const r=s[zx("0x4d")]((t=>zx("0x36")!=t[zx("0x2b")][zx("0xf")]));r.length>0&&o[zx("0x3b")](r);for(const t of s)t[zx("0x37")]()}))}));for(const e of[zx("0x5"),"mergeTableCellDown",zx("0x2c"),zx("0x3a")]){const n=t[zx("0x8")][zx("0x32")](e);n.on(zx("0xc"),((e,o,s)=>{if(s){const o=t.model.document.selection[zx("0x1")]()[zx("0x45")]()[zx("0x1e")]((t=>t.is(zx("0x31"),zx("0x3c"))));this._areMergableCells(n[zx("0x18")],o)||(e.return=!1,e[zx("0x49")]())}}),{priority:zx("0x1f")})}}[zx("0x6")](){const t=this[zx("0x15")][zx("0x8")][zx("0x32")](zx("0xb")),e=this[zx("0x15")].plugins[zx("0x32")]("TableUtils");if(!t[zx("0x9")])return!1;const n=e[zx("0x30")](this[zx("0x15")][zx("0x40")][zx("0x14")][zx("0x3e")]);for(const t of n)for(const e of n)if(t!=e&&!this[zx("0x1b")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[zx("0x15")][zx("0x2a")].get(zx("0x1c")),o=this[zx("0x15")][zx("0x40")][zx("0x3d")](t),s=this.editor[zx("0x40")][zx("0x3d")](e),r=new Set,i=new Set;for(const t of n[zx("0x29")]())if((zx("0x12")==t[zx("0x0")]||"deletion"==t[zx("0x0")]||zx("0xb")==t.subType)&&t.isInContent)for(const e of t[zx("0x43")]())e[zx("0x44")](o,!0)&&r[zx("0x4b")](t[zx("0x0")]+":"+t[zx("0x24")].id),e.containsRange(s,!0)&&i[zx("0x4b")](t[zx("0x0")]+":"+t[zx("0x24")].id);if(r.size!=i[zx("0x4")])return!1;for(const t of r)if(!i[zx("0x48")](t))return!1;return!0}}const Vx=["TableEditing","getAttribute","enableCommand","unbindElementFromMarkerName","start","markerNameToElements","afterInit","createTableWalker","get","options","_acceptFormatSuggestionCallbackFactory","forceValue","data","removeAttribute","commands","removeMarker:suggestion","consume","from","setTableRowHeader","addClass","mapper","registerDescriptionCallback","createPositionAfter","ck-suggestion-marker-","has","bindElementToMarker","FORMAT_REGULAR_COLUMN","addMarker:suggestion","getCellLocation","commandName","last","first","ck-suggestion-marker--active","_suggestionFactory","getSelectionAffectedTableCells","model","plugins","name","registerCustomCallback","data-suggestion","value","createRange","getSuggestion","change","FORMAT_HEADER_ROW","markerRange","editing","consumable","formatBlock","selection","removeClass","getChild","downcastDispatcher","accept","writer","parent","activeMarkers","document","setTableColumnHeader","end","TableUtils","childCount","nodeAfter","markerName","createPositionBefore","getColumnIndexes","headingColumns","includes","markBlockFormat","commandParams","format","item","requires","highest","FORMAT_REGULAR_ROW","_splitMarkerName","toViewElement","table","TrackChangesEditing"];var Kx,qx;Kx=Vx,qx=254,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("0x37")](){return[Bx]}[Xx("0x44")](){const t=this.editor;if(!t.plugins[Xx("0x7")](Xx("0x3e")))return;const e=t.locale,n=t[Xx("0x13")][Xx("0x46")](Xx("0x3d")),o=t[Xx("0x13")][Xx("0x46")]("TableUtils"),s=t[Xx("0x13")][Xx("0x46")](Bx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[Xx("0x2e")]),c=n[Xx("0x19")](a);if(!c[Xx("0x4a")]||Xx("0x29")!=c.data[Xx("0xc")])return;if(r[Xx("0x36")])return void s.stop();if(!i[Xx("0x1e")][Xx("0x4e")](r[Xx("0x1c")],s[Xx("0x14")]))return;const l=r[Xx("0x1c")][Xx("0x42")][Xx("0x2d")],d=r[Xx("0x1c")][Xx("0x2a")].nodeBefore,u=l.parent[Xx("0x26")],{column:g}=o[Xx("0xb")](l),{column:m}=o[Xx("0xb")](d);for(let s=g;s<=m;s++){const c=o[Xx("0x45")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i.mapper[Xx("0x3b")](s);i[Xx("0x25")][Xx("0x2")](Xx("0x6")+x,c),e&&i[Xx("0x25")].setAttribute(Xx("0x16"),a,c),i[Xx("0x3")][Xx("0x8")](c,r[Xx("0x2e")]),t&&(n[Xx("0x27")][Xx("0x32")](r[Xx("0x2e")])?i[Xx("0x25")].addClass(Xx("0xf"),c):i[Xx("0x25")][Xx("0x21")](Xx("0xf"),c))}}}}n[Xx("0x40")](Xx("0x1"),((e,s)=>{const r=o[Xx("0x11")](t[Xx("0x12")][Xx("0x28")][Xx("0x20")]),i=o.getRowIndexes(r),x=r[0].findAncestor(Xx("0x3c")),a=x[Xx("0x3f")]("headingRows")||0,c=s&&null!==s[Xx("0x49")]?s[Xx("0x49")]:!t[Xx("0x4c")].get(Xx("0x1"))[Xx("0x17")],l=c?i[Xx("0xd")]:i.first,d=x[Xx("0x22")](l);let u;if(c){const e=x[Xx("0x22")](a);if(d.index<e.index)return;u=t.model.createRange(t[Xx("0x12")][Xx("0x2f")](e[Xx("0x22")](0)),t[Xx("0x12")][Xx("0x5")](d.getChild(d[Xx("0x2c")]-1)))}else{const e=x.getChild(a-1);if(!e)return;u=t[Xx("0x12")][Xx("0x18")](t[Xx("0x12")].createPositionBefore(d.getChild(0)),t[Xx("0x12")][Xx("0x5")](e[Xx("0x22")](e[Xx("0x2c")]-1)))}t[Xx("0x12")].change((()=>{n[Xx("0x33")](u,{commandName:Xx("0x1"),commandParams:[{forceValue:c}]},[],Xx("0x1"))}))})),n.enableCommand(Xx("0x29"),((e,o)=>{const s=t.plugins[Xx("0x46")](Xx("0x2b")),r=s.getSelectionAffectedTableCells(t[Xx("0x12")].document[Xx("0x20")]),i=s[Xx("0x30")](r),x=r[0].findAncestor("table"),a=x[Xx("0x3f")](Xx("0x31"))||0,c=o&&null!==o[Xx("0x49")]?o[Xx("0x49")]:!t.commands[Xx("0x46")](Xx("0x29"))[Xx("0x17")];let l;const d=x.getChild(0),u=c?i[Xx("0xd")]:i[Xx("0xe")],g=s[Xx("0x45")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Xx("0x0")](g)[0].cell;if(c){const e=d[Xx("0x22")](a);if(m.isBefore(e))return;l=t.model.createRange(t[Xx("0x12")][Xx("0x2f")](e),t.model[Xx("0x5")](m))}else{const e=d[Xx("0x22")](a-1);if(!e)return;l=t[Xx("0x12")][Xx("0x18")](t[Xx("0x12")][Xx("0x2f")](m),t[Xx("0x12")][Xx("0x5")](e))}t.model[Xx("0x1a")]((()=>{n.markBlockFormat(l,{commandName:Xx("0x29"),commandParams:[{forceValue:c}]},[],Xx("0x29"))}))})),t[Xx("0x1d")][Xx("0x23")].on(Xx("0xa"),r(),{priority:Xx("0x38")}),t.data[Xx("0x23")].on(Xx("0xa"),((t,e,n)=>{n[Xx("0x47")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t.editing.downcastDispatcher.on(Xx("0x4d"),((t,e,o)=>{const{type:s,id:r}=n[Xx("0x3a")](e[Xx("0x2e")]),i=n.getSuggestion(r);if(!i[Xx("0x4a")]||Xx("0x29")!=i[Xx("0x4a")][Xx("0xc")])return;const x=o[Xx("0x3")][Xx("0x43")](e[Xx("0x2e")]);if(x)for(const t of x)o[Xx("0x25")][Xx("0x21")](Xx("0x6")+s,t),o.writer[Xx("0x21")](Xx("0xf"),t),o.writer[Xx("0x4b")](Xx("0x16"),t),o[Xx("0x3")][Xx("0x41")](t,e[Xx("0x2e")])}),{priority:Xx("0x38")}),n._descriptionFactory[Xx("0x4")]((t=>{const{data:n}=t;if(n){if(Xx("0x1")==n[Xx("0xc")]){const t=n.commandParams[0].forceValue;return o(Yo(e,Xx(t?"0x1b":"0x39")))}if(Xx("0x29")==n.commandName){const t=n[Xx("0x34")][0][Xx("0x49")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":Xx("0x9")))}}function o(t){return{type:Xx("0x35"),content:Yo(e,"*Format:* %0",t)}}}));const i=s[Xx("0x48")]();n[Xx("0x10")][Xx("0x15")](Xx("0x1f"),"setTableRowHeader",Xx("0x24"),i),n._suggestionFactory[Xx("0x15")](Xx("0x1f"),Xx("0x29"),"accept",i)}}const Jx=["findAncestor","forceDefaultExecution","isInContent","dataDowncast","last","getAttributes","getColumns","getSelectionAffectedTableCells","stop","createPositionBefore","wrap","insertColumns","subType","paragraph","registerDescriptionCallback","rootName","_splitMarkerName","keys","options","author","createRangeIn","nextSibling","tableCellPadding","getChildren","set","getChild","differ","tableCellVerticalAlignment","accept","registerPostFixer","registerCustomCallback","ck-suggestion-marker--active","startsWith","entries","conversion","start","position","cells","plugins","tableCellBorderStyle","name","insertionRanges","columnInsertionIndexes","suggestion-td","insertRows","getChanges","first","endRow","suggestionUnloaded","add","TableUtils","push","createElement","tableCellBorderWidth","getRange","getItems","tableCellBackgroundColor","isEmpty","document","map","hasSuggestion","markerToHighlight","afterInit","_descriptionFactory","*Replace table cells*","requires","listenTo","low","deletion","end","trackChanges","newRange","filter","markers","rowInsertionRanges","markerName","tableCellBorderColor","model","some","tablePasteChainId","clipboardOutput","find","getContainedElement","suggestion","tablePasteColumn","getRows","type","Users","editingDowncast","getShiftedBy","getAllAdjacentSuggestions","remove","fill","_getCoordsForCells","locale","createTableWalker","row","TrackChangesEditing","getMarkers","getChangedMarkers","TableClipboard","reduce","tablePasteRow","move","tablePasteCell","removeColumns","documentSelection","root","tableCellSuggestion","suggestionLoaded","element","columns","commands","column","attributes","isEqual","insert","has","_tablePostFixingSubtypes","unwrap","fromEntries","removeMarkers","join","table","$graveyard","rowInsertionIndexes","discard","markerAttributes","ck-suggestion-marker","setAttributes","containsRange","insertContent","formatBlock","getSuggestion","change","activeMarkers","markMultiRangeBlockFormat","endColumn","_suggestionFactory","insertion","schema","includes","from","getRanges","register","get","showSuggestionHighlights","_createdBatches","_isForcedDefaultExecutionBlock","setAttribute","redo","getSuggestionCallback","length","oldRange","tablePaste","removeMarker","getSuggestions","markMultiRangeInsertion","high","_replaceTableSlotCell","batch","getColumnIndexes","tableCell","editor","removeRows","createRangeOn","tableCellHorizontalAlignment","view","previous","for"];var Qx,Zx;Qx=Jx,Zx=134,function(t){for(;--t;)Qx.push(Qx.shift())}(++Zx);const Yx=function(t,e){return Jx[t-=0]},ta=[Yx("0x59"),Yx("0x70"),Yx("0x4b"),Yx("0x20"),Yx("0x3f"),Yx("0x5c"),Yx("0x3a")],ea=Object.fromEntries(ta[Yx("0x5f")]((t=>[t,null])));class na extends t.Plugin{static get[Yx("0x65")](){return[Bx]}[Yx("0x62")](){const t=this[Yx("0x1d")];if(!t[Yx("0x4a")].has(Yx("0x88")))return;const n=t.plugins[Yx("0xb")](Yx("0x85")),o=t[Yx("0x4a")][Yx("0xb")](Yx("0x56")),s=t[Yx("0x4a")][Yx("0xb")](Bx),r=t[Yx("0x4a")][Yx("0xb")](Yx("0x88"));s[Yx("0x9a")][Yx("0x57")]("tablePasteRow","tablePasteColumn"),t.model[Yx("0x6")][Yx("0xa")]("tableCellSuggestion",{allowIn:Yx("0x1c"),allowContentOf:Yx("0x1c"),isLimit:!0}),t[Yx("0x46")].elementToElement({model:Yx("0x90"),view:"suggestion-td"});let i=null;t[Yx("0x71")].on(Yx("0xa7"),((s,x)=>{const[a,c]=x,l=x[x[Yx("0x12")]-1];l&&l[Yx("0x25")]||n[Yx("0xe")]||this.editor.commands[Yx("0xb")](Yx("0x6a")).value&&function(t,e,n,o,s){if(e&&!e.is(Yx("0x8e")))return!1;const r=s.getTableIfOnlyTableInContent(t,n);if(!r||!sa(r,void 0,o))return!1;const i=o[Yx("0x2b")](n[Yx("0x5e")].selection);if(!i[Yx("0x12")])return!1;const x=i[0][Yx("0x24")](Yx("0x9f")),a=o.getRowIndexes(i),c=o[Yx("0x1b")](i),l={startRow:a[Yx("0x52")],endRow:a[Yx("0x28")],startColumn:c[Yx("0x52")],endColumn:c.last};return 1==i.length&&(l[Yx("0x53")]+=o[Yx("0x79")](r)-1,l[Yx("0x3")]+=o[Yx("0x2a")](r)-1),sa(x,l,o)}(a,c,t[Yx("0x71")],o,r)&&(s[Yx("0x2c")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Yx("0x71")][Yx("0x0")]((()=>{t[Yx("0x71")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n.markMultiRangeInsertion(s,"tablePasteRow",{tablePasteChainId:o}),r[Yx("0x12")]&&n[Yx("0x17")](r,Yx("0x78"),{tablePasteChainId:o}),a[Yx("0x12")]&&n.markMultiRangeInsertion(a,Yx("0x14"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n.markMultiRangeDeletion(c,Yx("0x14"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Yx("0x2")](l[Yx("0x5f")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0x8c"),{tablePasteChainId:o});if(d){const e=d[Yx("0x86")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Yx("0x1f")](o),i=e.find((t=>t[Yx("0x5a")]().isEqual(r)));i&&n.push([i[Yx("0x4c")],s])}n[Yx("0x12")]&&d[Yx("0xf")](Yx("0xa3"),Object[Yx("0x9c")](n))}i=null})))}),{priority:e.priorities[Yx("0x18")]+10}),t[Yx("0x4a")].get(Yx("0x88")).on(Yx("0x19"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Yx("0x2c")]();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("0x7f")](r.getChild(0));for(const t of Array.from(x[Yx("0x3b")]()))s[Yx("0x98")](t,r,Yx("0x69"));const t=i[Yx("0xa1")].includes(n[Yx("0x84")]),e=i[Yx("0x4e")].includes(n[Yx("0x95")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(d=s[Yx("0x38")](r));else{const t=s[Yx("0x58")](Yx("0x90")),e=s[Yx("0x58")](Yx("0x90"));s[Yx("0x2e")](s[Yx("0x38")](r),e),s.insert(t,r,0);for(const e of Array[Yx("0x8")](x[Yx("0x3b")]()))s[Yx("0x98")](e,t,Yx("0x69"));l=s[Yx("0x1f")](t),d=s[Yx("0x1f")](e)}const u=Array[Yx("0x8")](x[Yx("0x29")]())[Yx("0x6c")]((([t])=>ta[Yx("0x7")](t)));i[Yx("0x49")].push({element:r,attributes:u[Yx("0x12")]?Object[Yx("0x9c")](u):null}),l&&i[Yx("0x4d")][Yx("0x57")](l),d&&i.deletionRanges[Yx("0x57")](d)}),{priority:Yx("0x18")}),o.on(Yx("0x2f"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x93")]||1;i[Yx("0x4e")]=new Array(a)[Yx("0x80")](x)[Yx("0x5f")](((t,e)=>t+e));for(const{cell:e}of o[Yx("0x83")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges[Yx("0x57")](t[Yx("0x71")][Yx("0x1f")](e))}),{priority:"low"}),o.on(Yx("0x50"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Yx("0xa1")]=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of o[Yx("0x83")](s,{startRow:x,endRow:x+a-1}))i[Yx("0x6e")].push(t[Yx("0x71")].createRangeOn(e))}),{priority:Yx("0x67")}),n[Yx("0x63")][Yx("0x32")]((e=>{if(e.subType&&e.subType[Yx("0x44")](Yx("0x14")))return e[Yx("0x22")]?{}:{type:Yx("0x5"),content:Yo(t[Yx("0x82")],Yx("0x64"))}}));const x=()=>!1;for(const t of["tablePaste",Yx("0x78"),Yx("0x8a"),"tablePasteCell"])n._suggestionFactory[Yx("0x42")](Yx("0x5"),t,Yx("0x9e"),x),n[Yx("0x4")][Yx("0x42")](Yx("0x68"),t,"join",x),n[Yx("0x4")][Yx("0x42")](Yx("0xa8"),t,Yx("0x9e"),x);n[Yx("0x4")][Yx("0x42")](Yx("0xa8"),Yx("0x8c"),Yx("0xa2"),x),n._suggestionFactory[Yx("0x42")](Yx("0xa8"),"tablePasteCell",Yx("0x40"),((e,n,o)=>{const s=e.map((t=>t[Yx("0x76")]()))[Yx("0x6c")]((t=>t)),r=new Map(s[Yx("0x5f")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i.cells)e&&r[Yx("0x3c")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[Yx("0x45")](o[Yx("0xa3")])){const o=t.model[Yx("0x6d")][Yx("0xb")](e),s=o?o[Yx("0x5a")]().getContainedElement():null;s&&r[Yx("0x3c")](s,n)}t[Yx("0x71")][Yx("0x0")]((t=>{for(const[e,n]of r)t[Yx("0xa5")]({...ea,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[Yx("0x42")](e,Yx("0x14"),o,((s,r,i)=>{t[Yx("0x71")][Yx("0x0")]((t=>{const x=[];for(const t of s){const e=t[Yx("0x47")].nodeAfter;e.is(Yx("0x92"),"tableCellSuggestion")&&x.push(e)}n._suggestionFactory[Yx("0x11")](e,null,o)(s,r,i);for(const e of x)Yx("0xa0")!=e[Yx("0x8f")][Yx("0x33")]&&t[Yx("0x9b")](e)}))}))};a("insertion",Yx("0x40")),a(Yx("0x5"),"discard"),a("deletion",Yx("0x40")),a(Yx("0x68"),Yx("0xa2")),n[Yx("0x4")].registerCustomCallback(Yx("0x5"),Yx("0x8a"),Yx("0xa2"),(t=>{const e=t.map((t=>t[Yx("0x76")]())),n=e[0][Yx("0x24")]("table"),{minRow:r,maxRow:i}=s[Yx("0x81")](e);o[Yx("0x1e")](n,{at:r,rows:i-r+1})})),n[Yx("0x4")].registerCustomCallback(Yx("0x5"),Yx("0x78"),"discard",(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0][Yx("0x24")]("table"),{minColumn:r,maxColumn:i}=s[Yx("0x81")](e);o[Yx("0x8d")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Yx("0x30")]||!e.subType[Yx("0x44")](Yx("0x14")))return;const o=e[Yx("0x96")][Yx("0x73")],s=n[Yx("0x16")]()[Yx("0x6c")]((t=>t.isInContent&&t[Yx("0x96")]&&t.attributes[Yx("0x73")]==o));s.length&&e[Yx("0x7e")]()[Yx("0x12")]!=s.length&&s[Yx("0x89")](((t,e)=>(t.next=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[Yx("0x34")](t[Yx("0x6f")]),s=[Yx("0xa4"),"ck-suggestion-marker-insertion"],r=n[Yx("0x1")].includes(t[Yx("0x6f")]);return r&&s[Yx("0x57")](Yx("0x43")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Yx("0x91"),c,{priority:Yx("0x18")}),n.on(Yx("0x54"),c,{priority:Yx("0x18")}),t.model[Yx("0x5e")].registerPostFixer((()=>{let e=!1;const o=Array[Yx("0x8")](t[Yx("0x71")].document[Yx("0x3e")][Yx("0x87")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Yx("0x34")](s);if("suggestion"!=o||"deletion"!=i||r[Yx("0x13")])continue;if(!n[Yx("0x60")](x))continue;const a=n[Yx("0xa9")](x).getRanges(),c=t.plugins[Yx("0xb")](Yx("0x7b")).me;for(const t of n[Yx("0x16")]())if(t[Yx("0x26")]&&t[Yx("0x37")]==c&&Yx("0xa8")==t.type&&Yx("0x8c")==t[Yx("0x30")]&&t[Yx("0x9")]().every((t=>a[Yx("0x72")]((e=>e[Yx("0xa6")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Yx("0x26")]&&(n[Yx("0xa2")](),e=!0)}return e})),t[Yx("0x71")][Yx("0x5e")].registerPostFixer((e=>{const o=t[Yx("0x94")].get(Yx("0x10"));if(!o||!o[Yx("0xd")][Yx("0x99")](e[Yx("0x1a")]))return!1;let s=!1;const r=t[Yx("0x4a")][Yx("0xb")]("Users").me,i=t.model[Yx("0x5e")][Yx("0x3e")][Yx("0x51")](),x=Array[Yx("0x8")](t.model[Yx("0x5e")][Yx("0x3e")][Yx("0x87")]())[Yx("0x6c")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n._splitMarkerName(t);return Yx("0x77")==o&&"tablePaste"==s&&i==r.id&&!e[Yx("0x13")]}));for(const t of i){if(Yx("0x98")!=t[Yx("0x7a")]||"tableCellSuggestion"!=t[Yx("0x4c")]||1!=t[Yx("0x12")])continue;const n=e.createRange(t.position,t[Yx("0x48")][Yx("0x7d")](1));if(!x[Yx("0x75")]((({data:t})=>t[Yx("0x6b")][Yx("0x97")](n))))for(const{name:t,data:o}of x)if(n[Yx("0xa6")](o.newRange)){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[Yx("0x71")][Yx("0x5e")][Yx("0x41")]((e=>{let o=!1;const s=t[Yx("0x4a")].get(Yx("0x7b")).me,r=n.getSuggestions()[Yx("0x6c")]((t=>t[Yx("0x26")]&&t[Yx("0x37")]==s)),i=new Set,x=new Set;for(const t of r)if(Yx("0x14")==t[Yx("0x30")])for(const e of t[Yx("0x86")]()){const n=e[Yx("0x5a")]().getContainedElement();if(n)if(n.is(Yx("0x92"),Yx("0x90"))&&oa(n)){t[Yx("0x15")](e[Yx("0x4c")]),i[Yx("0x55")](n),o=!0;const s=n[Yx("0x39")],r=n.previousSibling,a=s&&s.is(Yx("0x92"),"tableCellSuggestion"),c=r&&r.is(Yx("0x92"),Yx("0x90"));a&&!i.has(s)&&x[Yx("0x55")](s),c&&!i[Yx("0x99")](r)&&x[Yx("0x55")](r)}else n.is(Yx("0x92"),"paragraph")&&n[Yx("0x5d")]&&(t[Yx("0x15")](e[Yx("0x4c")]),o=!0)}else if(Yx("0x8c")==t[Yx("0x30")]){if(!t[Yx("0x96")]||!t[Yx("0x96")][Yx("0x73")])continue;const e=t[Yx("0x96")][Yx("0xa3")];if(e&&Object[Yx("0x35")](e)[Yx("0x12")])continue;const n=t[Yx("0x96")].tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e[Yx("0x30")]&&e.subType.startsWith(Yx("0x14"))){if(!e.attributes.tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[Yx("0x96")][Yx("0x73")]==n){s=!1;break}}i&&s&&(t[Yx("0x9d")](),o=!0)}for(const t of i)e[Yx("0x7f")](t);for(const t of x)e[Yx("0x9b")](t);return o})),t.conversion[Yx("0x23")](Yx("0x7c"))[Yx("0x61")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:"high"}),t.conversion[Yx("0x23")](Yx("0x27")).markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[Yx("0x36")][Yx("0xc")]?l(t,!1):null,converterPriority:Yx("0x18")});const d=t.editing[Yx("0x21")];this[Yx("0x66")](d[Yx("0x5e")],Yx("0x74"),((t,e)=>{const n=[];for(const t of d[Yx("0x38")](e.content)[Yx("0x5b")]())t.is(Yx("0x92"),Yx("0x4f"))&&n[Yx("0x57")](t);d[Yx("0x0")]((t=>{for(const e of n)t[Yx("0x8b")](t[Yx("0x38")](e),t[Yx("0x2d")](e)),t[Yx("0x7f")](e)}))}))}}function oa(t){if(t[Yx("0x5d")])return!0;const e=t[Yx("0x3d")](0);return e.is(Yx("0x92"),Yx("0x31"))&&e[Yx("0x5d")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ra=["formatGroupId","has","model","locale","handleSuggestionDescription","tableWidth","get","getAttribute","getSuggestionCallback","bind","markBlockFormat","Users","formatBlock","document","author","columnWidths","_suggestionFactory","data","commandParams","plugins","getContainedElement","discard","getSelectedElement","resizeColumnWidths","table","subType","resizeTable","resizeTableWidth","TableColumnResizeEditing","editor","afterInit","TrackChangesEditing","handleResizeTableWidthCommand","registerDescriptionCallback","registerCustomCallback","_descriptionFactory","selection","format","enableCommand"];var ia,xa;ia=ra,xa=361,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[aa("0x9")][aa("0x1e")](aa("0x12")))return;const t=this[aa("0x13")][aa("0x9")][aa("0x23")]("TrackChangesEditing");t[aa("0x1c")](aa("0x11"),this[aa("0x16")][aa("0x26")](this)),t[aa("0x1c")](aa("0xd"),this.handleResizeTableWidthCommand[aa("0x26")](this)),t[aa("0x6")][aa("0x18")](aa("0x2"),aa("0x10"),"accept",t[aa("0x6")][aa("0x25")](aa("0x2"),null,aa("0xb"))),t[aa("0x6")][aa("0x18")]("formatBlock",aa("0x10"),aa("0xb"),t[aa("0x6")][aa("0x25")]("formatBlock",null,"accept")),t[aa("0x19")][aa("0x17")](this[aa("0x21")][aa("0x26")](this))}handleResizeTableWidthCommand(t,e){const n=this[aa("0x13")][aa("0x9")][aa("0x23")](aa("0x15")),o=this[aa("0x13")][aa("0x9")][aa("0x23")](aa("0x12")),s=e[aa("0xe")]||this[aa("0x13")].model[aa("0x3")][aa("0x1a")][aa("0xc")]();this.editor[aa("0x1f")].change((()=>{const r=o.getColumnGroupElement(s);let i=r?o.getTableColumnsWidths(r):null,x=s[aa("0x24")](aa("0x22"))||null;const a=e[aa("0x22")]||x,c=e[aa("0x5")]||i,l=this[aa("0x13")][aa("0x9")][aa("0x23")](aa("0x1")).me;for(const t of n.getSuggestions()){const e=t[aa("0xa")]();if(aa("0x10")===t[aa("0xf")]&&e===s){t[aa("0x4")]!==l&&t[aa("0xb")]();const e=t[aa("0x7")][aa("0x8")];x=e[0].tableWidth,i=e[0][aa("0x5")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[aa("0x0")](s,{commandName:aa("0x11"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:aa("0x10")},[],aa("0x10"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&aa("0x10")===e[aa("0x1d")]){const t="*Format:* resize table";return{type:aa("0x1b"),content:Yo(this[aa("0x13")][aa("0x20")],t)}}}}const la=["enableCommand","get","afterInit","editor","has","Template","insertTemplate","TrackChangesEditing"];var da,ua;da=la,ua=297,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x1")](){const t=this[ga("0x2")];t.plugins[ga("0x3")](ga("0x4"))&&t.plugins[ga("0x0")](ga("0x6"))[ga("0x7")](ga("0x5"))}}const fa=["editor","ELEMENT_TABLE_OF_CONTENTS","_descriptionFactory","commands","plugins","get","tableOfContents","insertTableOfContents","locale","enableCommand","TrackChangesEditing"];var ha,pa;ha=fa,pa=231,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("0x0")];if(!t[ba("0x3")][ba("0x5")](ba("0x7")))return;t[ba("0x4")][ba("0x5")](ba("0xa"))[ba("0x9")]("insertTableOfContents");const e=t[ba("0x4")][ba("0x5")](ba("0xa")),n=t[ba("0x8")];e[ba("0x2")].registerElementLabel(ba("0x6"),(t=>Yo(n,ba("0x1"),t)))}}const _a=["TrackChangesEditing","afterInit","registerPostFixer","Title","_descriptionFactory","getChangedMarkers","editor","createRange","plugins","nodeBefore","isCollapsed","element","isEqual","forward","suggestion","model","registerElementLabel","isTouching","locale","schema","title-content","ELEMENT_TITLE","has","_splitMarkerName","newRange","get","end","start","from","updateMarker"];var Ta,Ca;Ta=_a,Ca=235,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x6")](){const t=this[ya("0xb")];if(!t.plugins[ya("0x1b")](ya("0x8")))return;const e=t[ya("0xd")][ya("0x0")](ya("0x5"));e[ya("0x9")][ya("0x15")](ya("0x19"),(()=>Yo(t[ya("0x17")],ya("0x1a")))),t.model.document[ya("0x7")]((n=>{let o=!1;const s=Array[ya("0x3")](t[ya("0x14")].document.differ[ya("0xa")]());for(const{name:r,data:i}of s){const{group:s}=e[ya("0x1c")](r);if(ya("0x13")!==s||!i[ya("0x1d")])continue;const x=i.newRange,a=x[ya("0x1")][ya("0xe")];if(!a||!a.is(ya("0x10"),ya("0x19")))continue;if(!x[ya("0x2")][ya("0x16")](x.end))continue;const c=t.model[ya("0x18")].getNearestSelectionRange(x[ya("0x1")],ya("0x12"));if(c&&c[ya("0xf")]){const t=n[ya("0xc")](x.start,c[ya("0x2")]);t[ya("0x11")](x)||(n[ya("0x4")](r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const Aa=["afterInit","redo","UndoEditing","TrackChangesEditing","editor","get","plugins","enableCommand"];var va,Ra;va=Aa,Ra=154,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{[Sa("0x6")](){const t=this[Sa("0x2")],e=t[Sa("0x4")][Sa("0x3")](Sa("0x1"));t[Sa("0x4")].has(Sa("0x0"))&&(e[Sa("0x5")]("undo"),e.enableCommand(Sa("0x7")))}}const La=["TableCaptionEditing","enableCommand","plugins","TrackChangesEditing","editor","toggleTableCaption","requires","has"];var Na,Ma;Na=La,Ma=427,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("0x3")](){return[Bx]}afterInit(){const t=this[wa("0x1")];t[wa("0x7")][wa("0x4")](wa("0x5"))&&t[wa("0x7")].get(wa("0x0"))[wa("0x6")](wa("0x2"))}}const Fa=["list.properties","listReversed","listType","document","push","bind","registerDescriptionCallback","*Format:* set order to reversed","DocumentListUtils","enableCommand","listStart","change","get","commandParams","plugins","_getSuggestionBlocksForListStyle","*Format:* set order to regular","isListItemBlock","replace","filter","markMultiRangeBlockFormat","_getTranslationKeyForListStyle","TrackChangesEditing","config","format","getSelectedBlocks","numbered","expandListBlocksToCompleteList","reversed","type","getAttribute","ELEMENT_","startIndex","handleDescriptions","handleListReversedCommand","_LIST_","handleListStartCommand","handleListStyleCommand","has","commandName","listStyle","*Format:* set start index to %0","from","editor","_getSuggestionBlocks","afterInit","selection","model","DocumentListPropertiesEditing"];var Pa,Da;Pa=Fa,Da=140,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0x3")](){if(!this.editor[Ba("0x15")][Ba("0x2d")](Ba("0x6")))return;const t=this[Ba("0x1")][Ba("0x1e")][Ba("0x13")](Ba("0x7")),e=this[Ba("0x1")][Ba("0x15")][Ba("0x13")]("TrackChangesEditing");t.styles&&e.enableCommand(Ba("0x2f"),this[Ba("0x2c")][Ba("0xc")](this)),t.reversed&&e[Ba("0x10")](Ba("0x8"),this[Ba("0x29")][Ba("0xc")](this)),t[Ba("0x27")]&&e[Ba("0x10")](Ba("0x11"),this[Ba("0x2b")][Ba("0xc")](this)),e._descriptionFactory[Ba("0xd")](this[Ba("0x28")][Ba("0xc")](this))}[Ba("0x2c")](t,e={}){const n=this[Ba("0x1")][Ba("0x15")].get(Ba("0x1d")),o=this[Ba("0x16")]();this[Ba("0x1")].model[Ba("0x12")]((()=>{n[Ba("0x1b")](o,{commandName:Ba("0x2f"),commandParams:[{type:e.type}],formatGroupId:"listStyle"})}))}[Ba("0x29")](t,e={}){const n=this.editor[Ba("0x15")][Ba("0x13")](Ba("0x1d")),o=this[Ba("0x1")].plugins[Ba("0x13")](Ba("0xf")),s=this._getSuggestionBlocks((t=>o[Ba("0x18")](t)&&Ba("0x21")===t[Ba("0x25")](Ba("0x9"))));null!==s&&this[Ba("0x1")][Ba("0x5")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:Ba("0x8"),commandParams:[{reversed:e[Ba("0x23")]}],formatGroupId:Ba("0x8")})}))}handleListStartCommand(t,e={}){const n=this.editor[Ba("0x15")][Ba("0x13")](Ba("0x1d")),o=this[Ba("0x1")][Ba("0x15")][Ba("0x13")](Ba("0xf")),s=this[Ba("0x2")]((t=>o[Ba("0x18")](t)&&Ba("0x21")===t[Ba("0x25")]("listType")));null!==s&&this[Ba("0x1")][Ba("0x5")][Ba("0x12")]((()=>{n[Ba("0x1b")](s,{commandName:Ba("0x11"),commandParams:[{startIndex:e[Ba("0x27")]}],formatGroupId:Ba("0x11")})}))}[Ba("0x28")](t){const e=this[Ba("0x1")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[Ba("0x2e")]){case Ba("0x2f"):o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[Ba("0x14")][0][Ba("0x24")])))};break;case Ba("0x8"):o=n.commandParams[0].reversed?Ba("0xe"):Ba("0x17"),s={type:Ba("0x1f"),content:Yo(e,o)};break;case Ba("0x11"):o=Ba("0x30"),s={type:Ba("0x1f"),content:Yo(e,o,n[Ba("0x14")][0][Ba("0x27")])}}return s}[Ba("0x16")](){const t=this[Ba("0x1")][Ba("0x15")][Ba("0x13")](Ba("0xf"));let e=Array[Ba("0x0")](this.editor[Ba("0x5")][Ba("0xa")][Ba("0x4")][Ba("0x20")]());return e[Ba("0xb")](...t[Ba("0x22")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[Ba("0x1")].plugins[Ba("0x13")]("DocumentListUtils");let n=Array[Ba("0x0")](this[Ba("0x1")][Ba("0x5")][Ba("0xa")].selection[Ba("0x20")]())[Ba("0x1a")](t);if(!n.length)return null;n=e[Ba("0x22")](n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[Ba("0xb")](t);return o}[Ba("0x1c")](t){return Ba("0x26")+this.editor.plugins.get("DocumentListPropertiesUtils").getListTypeFromListStyleType(t).toUpperCase()+Ba("0x2a")+t.toUpperCase()[Ba("0x19")](/-/g,"_")}}const Ua=["_handlePropertyChange","TrackChangesEditing","handleSuggestionDescription","document","tableCellBorderWidth","accept","tableCellHorizontalAlignment","model","batch","tableBorderStyle","_suggestionFactory","registerCustomCallback","tableProperties","tableBackgroundColor","setAttribute","plugins","handleDiscardAction","tableBorderColor","tableHeight","formatBlock","editor","tableCellBorderStyle","getFirstPosition","findAncestor","afterInit","discard","*Format:* change table cell properties","tableBorderWidth","data","commandParams","locale","markBlockFormat","subType","*Format:* change table properties","join","format","get","getSelectionAffectedTableCells","nodeAfter","_getSuggestion","tableCellVerticalAlignment","tableCellBorderColor","table","tableCellHeight","selection","TableCellPropertiesEditing","enableCommand","TrackChangesTableProperties","tableAlignment","tableCellWidth","tableCellBackgroundColor","enqueueChange","tableWidth","removeAttribute","has","_descriptionFactory","tableCellProperties"];var Ga,Ha;Ga=Ua,Ha=199,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("0x29")]=[za("0x2e"),za("0x26"),za("0x38"),za("0x14"),za("0x18"),za("0x2f"),za("0x2a")],this.tableCellProperties=[za("0xd"),za("0x32"),za("0x21"),"tableCellPadding",za("0x15"),za("0xf"),za("0x16"),za("0x23"),za("0xc")]}static get pluginName(){return za("0x13")}[za("0x35")](){const t=this[za("0x31")][za("0x2c")][za("0x8")](za("0x1e"));if(this[za("0x31")][za("0x2c")].has("TablePropertiesEditing")){for(const e of this[za("0x29")])t.enableCommand(e,((t,n)=>{const o=this[za("0x31")][za("0x24")][za("0x20")][za("0x10")][za("0x33")]()[za("0x34")](za("0xe"));this._handlePropertyChange(e,[o],this[za("0x29")],za("0x29"),t,n)}));t[za("0x27")][za("0x28")](za("0x30"),"tableProperties",za("0x22"),t[za("0x27")].getSuggestionCallback(za("0x30"),null,za("0x36"))),t[za("0x27")][za("0x28")](za("0x30"),"tableProperties",za("0x36"),((t,e)=>this.handleDiscardAction(this[za("0x29")],t,e))),t[za("0x27")][za("0x28")](za("0x30"),za("0x29"),za("0x6"),(()=>!1))}if(this[za("0x31")][za("0x2c")][za("0x1a")](za("0x11"))){for(const e of this[za("0x1c")])t[za("0x12")](e,((t,n)=>{const o=this[za("0x31")][za("0x2c")][za("0x8")]("TableUtils")[za("0x9")](this[za("0x31")][za("0x24")][za("0x20")].selection);this[za("0x1d")](e,o,this[za("0x1c")],za("0x1c"),t,n)}));t[za("0x27")][za("0x28")](za("0x30"),za("0x1c"),za("0x22"),t._suggestionFactory.getSuggestionCallback(za("0x30"),null,za("0x36"))),t[za("0x27")][za("0x28")](za("0x30"),"tableCellProperties",za("0x36"),((t,e)=>this[za("0x2d")](this[za("0x1c")],t,e))),t[za("0x27")][za("0x28")]("formatBlock",za("0x1c"),za("0x6"),(()=>!1))}t[za("0x1b")].registerDescriptionCallback((t=>this[za("0x1f")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this.editor[za("0x2c")].get(za("0x1e"));this[za("0x31")][za("0x24")][za("0x17")](r[za("0x25")],(()=>{for(const t of e)if(this[za("0xb")](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("0x3")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start[za("0xa")],s=n[za("0x1")][0];this[za("0x31")][za("0x24")].change((e=>{for(const n of t)void 0!==s[n]?e[za("0x2b")](n,s[n],o):e[za("0x19")](n,o)}))}handleSuggestionDescription(t){if(t[za("0x0")])switch(t.subType){case"tableProperties":return{type:za("0x7"),content:Yo(this[za("0x31")][za("0x2")],za("0x5"))};case za("0x1c"):return{type:"format",content:Yo(this[za("0x31")].locale,za("0x37"))}}}[za("0xb")](t,e){const n=this[za("0x31")].plugins.get(za("0x1e"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o.getContainedElement();if(o[za("0x4")]===e&&n===t)return o}return null}}const Va=["_suggestionState","elementToElement","track-changes-adapter-missing-getsuggestion","markMultiRangeDeletion","_saved","updateMarker","next","_joinWithAdjacentSuggestions","_removeSuggestion","isArray","high","suggestionChanged","createRange","data","getMultiRangeId","filter","authoredAt","isBefore","nodeBefore","deletion:","end","addSuggestionData","formatInline:","getCustomProperty","createPositionBefore","isSelectable","low","_registerDefaultCallbacks","isIntersectingWithRange","notReady","isNextTo","values","_splitMarkerName","change:activeMarkers","_breakSuggestionMarker","enableReadOnlyMode","normal","formatInline:chain","detach","formatBlock:","getChanges","stopListening","markerToHighlight","get","getWalker","splice","group","value","formatBlock:join","insertion:discard","isLocal","trackChangesCommand","parent","hasCommentThread","removeAttribute","suggestionUnloaded","_updateSuggestionData","authorName","addUser","addMarker:suggestion:formatBlock","delete","add","_checkSuggestionCorrectness","createPositionAfter","stop","getAttribute","author","init","formatInline:accept","subType","markInsertion","_setSuggestionData","removeMarker:suggestion:formatBlock","removeClass","getShiftedBy","commands","markBlockFormat","type","insert","_createSuggestion","commandName","marker-count","rethrowUnexpectedError","getRange","always","item","ck-suggestion-marker-","sort","collaboration.channelId","options","has","deletion","setTo","never","formatInline:discard","markers","clear","nodeAfter","removeMarkers","getIntersection","getFirstMarker","trackChanges.trackFormatChanges","ck-suggestion-marker","_adapter","plugins","oldRange","hasSuggestion","ck-suggestion-marker-formatBlock","config","insertion:chain","forceDefaultExecution","acceptSuggestion","consumable","change","getUser","markDeletion","_descriptionFactory","getChangedMarkers","addClass","addRange","insertion:accept","bindElementToMarker","assign","before","markerName","getSuggestion","createElement","_commentsRepository","model","_cutOutSuggestionMarker","_suggestionFactory","adapter","schema","previous","differ","markerToData","PendingActions","creator","isMultiRange","insertion:","external:","map","data-suggestion","_addSuggestionMarker","isUndo","track-changes-user-not-found","_isForcedDefaultExecutionBlock","getDifference","addMarker:suggestion","accept","resolve","change:_saved","multipleBlocks","PENDING_ACTION_SUGGESTION","isAtEnd","howMany","suggestionLoaded","execute","isRemovable","toJSON","containsRange","suggestion:","range","size","track-changes-suggestion-data-mismatch","addSuggestion","containsPosition","_handleNewSuggestionMarker","_getExternalAuthor","unbind","position","insertion","return","_enabledCommands","keys","selection","length","formatBlock","acceptSelectedSuggestions","_rangeIsInLocalUserInsertion","getAllAdjacentSuggestions","activeMarkers","rootName","isExternal","some","fire","setSelection","setAttribute","markMultiRangeInsertion","@external","_joinSuggestions","catch","backward","trackChanges.mergeNestedSuggestions","_getSuggestionData","containsRangeInObject","discard","Users","createdAt","batch","markerReady","$marker","_customCallbacks","editing","markerNameToElements","consume","discardSuggestion","root","fromRange","getAncestors","suggestion","markMultiRangeBlockFormat","splitPosition","_findSuggestions","every","isInContent","refresh","conversion","attributes","ck-suggestion-marker--active","clone","_addThreadToSuggestion","isBlock","createSelection","containsItem","trackChanges","isCollapsed","_getAuthorFromId","isObject","updateSuggestion","ready","_onDiscard","removeComment","getItems","isEqual","elementStart","_editor","_isDataLoaded","_refreshSuggestionsChain","$graveyard","getNearestSelectionRange","removed","editingDowncast","_setSuggestionRange","open","formatInline:join","insertion:join","error-saving-suggestion-data-suggestion-discarded","enableCommand","for","insertContent","multi","_trackFormatChanges","_mergeNestedSuggestions","addCommentThread","markInlineFormat","deletion:chain","newRange","then","head","lowest","CommentsRepository","removeMarker","getRanges","isLimit","listenTo","rejected","getSuggestions","join","reconvertMarker","formatInline","addMarkerName","moveTargetPosition","locale","addHighlight","getFirstRange","commentThread","after","_model","define","isAfter","dataDowncast","upcast","isTouching","acceptAllSuggestions","set","formatBlock:accept","formatGroupId","track-changes-command-not-found","mapper","targetPosition","toViewElement","dataReady","containerElement","_defaultCallbacks","buildSuggestion","start","discardSelectedSuggestions","createPositionAt","hasComments","addComment","document","track-changes-adapter-already-set","isInsideObject","editor","deletion:accept","getSuggestionCallback","push","name","skipNestingCheck","pluginName","includes","update:suggestion","discardAllSuggestions","remove","showSuggestionHighlights","chain","element","split","registerPostFixer","writer","_suggestions","$textProxy","from","isDocumentOperation","suggestion-type","addMarker","isOwn","createRangeIn"];var Ka,qa;Ka=Va,qa=454,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("0x88"),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("0xb9")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[Xa("0x10")]((t=>String.fromCharCode(t)))[Xa("0x8f")]("")}super(t),this[Xa("0xa0")](Xa("0x38"),[]),this.on(Xa("0xed"),((e,n,o,s)=>{this[Xa("0x99")].change((()=>{for(const e of[...s,...o])this._model[Xa("0x12b")][Xa("0x126")](e)&&t[Xa("0x4e")][Xa("0x90")](e)}))})),this[Xa("0x140")]=new ss(this[Xa("0xb3")][Xa("0x3")][Xa("0x7")],this.editor[Xa("0x94")]),this[Xa("0x133")]=null,this[Xa("0x5")]=new Ja(this[Xa("0xb3")]),this[Xa("0xc4")]=new Map,this[Xa("0x2")]=t.plugins[Xa("0xf7")](Xa("0x88")),this[Xa("0x30")]=new Set,this[Xa("0x99")]=this.editor[Xa("0x3")],this._suggestionState=new WeakMap,this[Xa("0x15")]=!1,t[Xa("0x138")].define(Xa("0x131"),"default"),this[Xa("0x7f")]=t.config[Xa("0xf7")](Xa("0x131")),t[Xa("0x138")][Xa("0x9a")]("trackChanges.mergeNestedSuggestions",!0),this[Xa("0x80")]=t[Xa("0x138")][Xa("0xf7")](Xa("0x44")),this[Xa("0xff")]=new u(t,this[Xa("0x30")]),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,53,48])}[Xa("0x10f")](){const t=this[Xa("0xb3")];t[Xa("0x5c")][Xa("0x7c")](Xa("0x75"))[Xa("0xf6")]({model:Xa("0x55"),view:t=>{const{id:e,type:n}=this[Xa("0xec")](t[Xa("0x148")]),o=[Xa("0x132"),"ck-suggestion-marker-"+n];let s=3e3;return this[Xa("0x38")][Xa("0xba")](t[Xa("0x148")])&&(o.push(Xa("0x5e")),s=3010),Xa("0x127")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Xa("0x5c")][Xa("0x7c")](Xa("0x9c"))[Xa("0x109")]((e=>{e.on(Xa("0x17"),((e,n,o)=>{if(!o.options[Xa("0xbe")])return;const s=n[Xa("0x121")];if(!s)return;const r=o[Xa("0xa4")][Xa("0xa6")](s);t.model[Xa("0x7")][Xa("0x67")](s)&&r&&!r[Xa("0xe3")]("widget")&&r.is(Xa("0xa8"))&&(0,x.toWidget)(r,o[Xa("0xc3")])}),{priority:Xa("0xd6")})})),t[Xa("0x5c")][Xa("0x7c")]("dataDowncast")[Xa("0xf6")]({model:Xa("0x55"),view:(t,e)=>{if(!e[Xa("0x125")].showSuggestionHighlights)return null;const{type:n}=this._splitMarkerName(t[Xa("0x148")]);return{classes:["ck-suggestion-marker",Xa("0x122")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Xa("0x121")])return;if(o[Xa("0x121")].is(Xa("0x32")))return void s[Xa("0x13c")][Xa("0x50")](o[Xa("0x121")],n.name);const r=s[Xa("0xa4")][Xa("0xa6")](o[Xa("0x121")]);if(!o[Xa("0x121")].is(Xa("0xc0"))||!t[Xa("0x3")][Xa("0x7")][Xa("0x61")](o[Xa("0x121")])||r[Xa("0xe3")](Xa("0x95")))return;const{id:i}=this._splitMarkerName(o[Xa("0x148")]);s.writer[Xa("0x142")]([Xa("0x132"),Xa("0x137")],r),s.writer[Xa("0x3e")](Xa("0x11"),i,r),s[Xa("0xa4")][Xa("0x145")](r,o[Xa("0x148")]),e&&(this[Xa("0x38")].includes(o.markerName)?s.writer[Xa("0x142")]("ck-suggestion-marker--active",r):s.writer.removeClass("ck-suggestion-marker--active",r));for(const e of t[Xa("0x3")][Xa("0xcb")](o[Xa("0x121")])[Xa("0x6c")]())s.consumable[Xa("0x50")](e,n[Xa("0xb7")]);s[Xa("0x13c")].consume(o[Xa("0x121")],n[Xa("0xb7")])};t[Xa("0x5c")][Xa("0x7c")](Xa("0x9c"))[Xa("0x109")]((t=>{t.on(Xa("0x107"),((t,e,o)=>{o[Xa("0x125")][Xa("0xbe")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t.conversion[Xa("0x7c")](Xa("0x9c"))[Xa("0xa")]({model:"suggestion",view:(t,e)=>e[Xa("0x125")][Xa("0xbe")]?null:{group:"suggestion",name:t.substr(11)}}),t.conversion[Xa("0x7c")]("upcast")[Xa("0xcd")]({view:{name:Xa("0x55"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Xa("0x24")+t[Xa("0x10d")](Xa("0xc8"))+":"+t[Xa("0x10d")]("id");return t[Xa("0x10d")](Xa("0x11d"))&&(n+=":"+t[Xa("0x10d")](Xa("0x11d"))),e[Xa("0x1")](Xa("0x4c"),{"data-name":n})}}),t.conversion[Xa("0x7c")](Xa("0x9d")).dataToMarker({view:Xa("0x55")}),t[Xa("0x5c")][Xa("0x7c")](Xa("0x75")).add((t=>{t.on(Xa("0x107"),n(),{priority:"high"})})),t[Xa("0x5c")].for(Xa("0x75"))[Xa("0x109")]((t=>{t.on(Xa("0x114"),((t,e,n)=>{const o=n[Xa("0xa4")][Xa("0x4f")](e[Xa("0x148")]);if(o)for(const t of o)t[Xa("0xe3")](Xa("0x95"))||(n[Xa("0xc3")][Xa("0x115")]([Xa("0x132"),Xa("0x137"),Xa("0x5e")],t),n[Xa("0xc3")][Xa("0x102")](Xa("0x11"),t),n[Xa("0xa4")].unbindElementFromMarkerName(t,e[Xa("0x148")]))}),{priority:Xa("0xd6")})})),t[Xa("0x3")][Xa("0xb0")][Xa("0xc2")]((e=>{let n=!1;const o=Array[Xa("0xc6")](t[Xa("0x3")][Xa("0xb0")].differ[Xa("0x141")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0xec")](x);if(Xa("0x55")!==o)continue;const d=this[Xa("0xc4")][Xa("0xf7")](l);if(null!=a[Xa("0x84")])if(Xa("0x91")==c&&(n=n||Ya(a[Xa("0x84")],x,e,t[Xa("0x3")][Xa("0x7")])),a.newRange.isCollapsed||Xa("0x72")==a[Xa("0x84")][Xa("0x52")][Xa("0x39")]||Xa("0x34")==c&&!ec(a[Xa("0x84")])||Xa("0x127")==c&&(Za(i=a[Xa("0x84")])||(r=i).start[Xa("0x100")]==r[Xa("0xe0")].nodeBefore&&r[Xa("0xab")][Xa("0x1d")]))e.removeMarker(x),n=!0;else{if(!d||!d.isInContent)continue;s.add(d)}}var r,i;return s[Xa("0x26")]>0&&(n=!!this[Xa("0xd3")](s)||n),n})),t.model[Xa("0xb0")][Xa("0xc2")]((e=>{let n=!1;for(const o of t.model.document[Xa("0x9")][Xa("0xf4")]()){if(Xa("0x11a")!=o.type)continue;const s=o[Xa("0x2d")][Xa("0x116")](o[Xa("0x33")]);if(s[Xa("0x1d")])for(const r of this[Xa("0xc4")][Xa("0xeb")]()){if(r[Xa("0xd")]||!r[Xa("0x5a")])continue;if(Xa("0x34")!=r.type)continue;const i=r.getFirstRange();if(i[Xa("0xab")].parent!=i[Xa("0xe0")].parent&&i[Xa("0xe0")][Xa("0x6d")](o[Xa("0x2d")])){const o=t[Xa("0x3")][Xa("0xd8")](i[Xa("0xab")],s);e[Xa("0xd1")](r[Xa("0x130")](),{range:o}),n=!0}}}return n})),t.model[Xa("0x12b")].on(Xa("0xbb"),((t,e,n)=>{if(null==n){const{id:t}=this[Xa("0xec")](e[Xa("0xb7")]),n=this[Xa("0xc4")][Xa("0xf7")](t);n&&n[Xa("0x92")](e[Xa("0xb7")])}})),t[Xa("0x3")].document.on("change:data",(()=>{const e=Array.from(t.model.document[Xa("0x9")][Xa("0x141")]())[Xa("0xdb")]((t=>Xa("0x55")===this._splitMarkerName(t[Xa("0xb7")])[Xa("0xfa")]));if(0===e[Xa("0x33")])return;e[Xa("0x123")](((t,e)=>{const n=t[Xa("0xd9")][Xa("0x135")],o=e[Xa("0xd9")][Xa("0x135")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start.isBefore(o[Xa("0xab")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this._splitMarkerName(t);if(null===s.oldRange){const e=this[Xa("0x2a")](t);o[Xa("0x109")](e)}else{const t=this._suggestions[Xa("0xf7")](e);null!==s[Xa("0x84")]||t[Xa("0x5a")]?(n[Xa("0x109")](t[Xa("0x86")]),o[Xa("0x109")](t)):this[Xa("0xd4")](t)}}o[Xa("0x26")]>0&&this[Xa("0x71")](o);for(const t of n)this[Xa("0x3c")](Xa("0xd7"),t)})),t.model.on("applyOperation",((e,n)=>{const o=n[0];if(!this[Xa("0xc4")][Xa("0x26")])return;if(!o[Xa("0xc7")])return;if(o.batch[Xa("0x13")]||!o[Xa("0x4a")][Xa("0xfe")])return;let s,r;switch(o[Xa("0x119")]){case"insert":s=t[Xa("0x3")][Xa("0xad")](o[Xa("0x2d")]),r=s[Xa("0x116")](o[Xa("0x1e")]);break;case"split":s=t[Xa("0x3")][Xa("0xad")](o[Xa("0x57")]),r=t[Xa("0x3")].createPositionAt(o[Xa("0x93")]);break;case"move":s=t.model[Xa("0xad")](o[Xa("0xa5")]),r=s[Xa("0x116")](o[Xa("0x1e")]);break;default:return}const i=t[Xa("0x3")][Xa("0xd8")](s,r);t[Xa("0x3")][Xa("0x13d")]((()=>{for(const{suggestion:t,meta:e}of this[Xa("0x58")](i)){if(t[Xa("0xd")])continue;if(Xa("0x91")==t[Xa("0x119")])continue;const n=t[Xa("0xd9")]&&t.data.multipleBlocks;(Xa("0x34")!=t[Xa("0x119")]||Xa("0xc1")==o.type&&!n)&&(e[Xa("0x46")]||Xa("0x2e")==t[Xa("0x119")]&&e[Xa("0xca")]||t[Xa("0x96")]()[Xa("0x23")](i)&&this[Xa("0xee")](t,s,r))}}))}),{priority:Xa("0x87")}),t[Xa("0x3")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[Xa("0x13a")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[Xa("0xff")][Xa("0xfb")])return;if(o[Xa("0x65")])return;const r=t.model[Xa("0x7")],{start:i,end:x}=o.getFirstRange(),a=i[Xa("0x12d")]&&r[Xa("0x8b")](i[Xa("0x12d")])?null:r[Xa("0x73")](i,"forward"),c=x[Xa("0xde")]&&r.isLimit(x[Xa("0xde")])?null:r[Xa("0x73")](x,"backward"),l=t[Xa("0x3")][Xa("0xd8")](a?a[Xa("0xab")]:i,c?c[Xa("0xe0")]:x);t[Xa("0x3")][Xa("0x13d")]((e=>{this.markDeletion(l);const n=t[Xa("0x3")][Xa("0x7")][Xa("0x73")](l[Xa("0xab")]);o.is("documentSelection")?e[Xa("0x3d")](n):o[Xa("0x128")](n)})),e[Xa("0x10c")]()}),{priority:e.priorities[Xa("0xf0")]+10}),t[Xa("0x3")].on(Xa("0x7d"),((e,n)=>{const o=n[n.length-1];o&&o.forceDefaultExecution||this._isForcedDefaultExecutionBlock||this[Xa("0xff")].value&&(t[Xa("0x3")][Xa("0x13d")]((()=>{let o=t[Xa("0x3")][Xa("0x7d")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Xa("0x2f")]=o[Xa("0x5f")]();const s=o[Xa("0xe0")][Xa("0xde")],r=t.model.schema;s&&r[Xa("0x61")](s)&&!r[Xa("0x67")](s)&&(o=t[Xa("0x3")][Xa("0xd8")](o.start,t[Xa("0x3")][Xa("0xad")](s,Xa("0xe0")))),this[Xa("0x112")](o)})),e[Xa("0x10c")]())}),{priority:Xa("0xd6")}),this.editor[Xa("0x117")][Xa("0x109")]("trackChanges",this[Xa("0xff")]),this.enableCommand(Xa("0x64"));const o=new p(t,this[Xa("0xc4")]);t[Xa("0x117")].add(Xa("0x13b"),o),this.enableCommand(Xa("0x13b"));const s=new C(t,this[Xa("0xc4")]);t[Xa("0x117")][Xa("0x109")](Xa("0x51"),s),this[Xa("0x7b")](Xa("0x51")),t[Xa("0x117")][Xa("0x109")](Xa("0x9f"),new F(t,o,this._suggestions)),this[Xa("0x7b")]("acceptAllSuggestions"),t.commands[Xa("0x109")](Xa("0xbc"),new F(t,s,this[Xa("0xc4")])),this.enableCommand(Xa("0xbc")),t.commands[Xa("0x109")]("acceptSelectedSuggestions",new U(t,o,this[Xa("0xc4")])),this.enableCommand(Xa("0x35")),t[Xa("0x117")][Xa("0x109")](Xa("0xac"),new U(t,s,this[Xa("0xc4")])),this.enableCommand(Xa("0xac"));const r=t.plugins.get(Xa("0x88"));this.listenTo(r,Xa("0xaf"),((t,{threadId:e})=>{const n=this[Xa("0xc4")][Xa("0xf7")](e);n&&n.commentThread&&1===n[Xa("0x97")][Xa("0x33")]&&this[Xa("0x104")](e,{hasComments:!0})}),{priority:Xa("0xe6")}),this[Xa("0x8c")](r,Xa("0x6b"),((t,{threadId:e})=>{const n=this[Xa("0xc4")][Xa("0xf7")](e);n&&n.commentThread&&!n[Xa("0x97")][Xa("0x33")]&&this[Xa("0x104")](e,{hasComments:!1})}),{priority:Xa("0xe6")})}set[Xa("0x6")](t){if(this._adapter)throw new e.CKEditorError(Xa("0xb1"),this);this[Xa("0x133")]=t}get adapter(){return this[Xa("0x133")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Xa("0xc4")][Xa("0xeb")]())t&&!e[Xa("0x5a")]||n.push(e);return e?n[Xa("0x10")]((t=>t[Xa("0x22")]())):n}getSuggestion(t){const n=this[Xa("0xc4")][Xa("0xf7")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[Xa("0x136")](t){return this[Xa("0xc4")][Xa("0x126")](t)}[Xa("0xe1")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Xa("0x119")][Xa("0xc1")](":"),i=this[Xa("0xc4")].get(n)||this._createSuggestion(s,r,n,e,o);if(this[Xa("0x60")](i),this[Xa("0x10a")](i,s,r||null,e),i[Xa("0x49")]=t[Xa("0x49")],i[Xa("0x70")]=!0,o&&o[Xa("0x40")]){const t=o[Xa("0x40")],e=this[Xa("0x2b")](t[Xa("0x105")]);i[Xa("0xdc")]=t.createdAt,i[Xa("0x10e")]=e,i[Xa("0x3a")]=!0}else i[Xa("0xdc")]=t.createdAt;switch(t[Xa("0xd9")]&&(i.data=t[Xa("0xd9")]),t[Xa("0x5d")]&&(i.attributes=t[Xa("0x5d")]),this._adapter&&this[Xa("0x133")][Xa("0x28")]||(i._saved=!0),this[Xa("0xcc")][Xa("0xf7")](i)){case"notReady":this[Xa("0xcc")][Xa("0xa0")](i,Xa("0xa7"));break;case Xa("0x4b"):i[Xa("0x5a")]?(this._refreshSuggestionsChain(new Set([i])),this[Xa("0xd3")](new Set([i])),this[Xa("0xcc")][Xa("0xa0")](i,Xa("0x69")),this[Xa("0x3c")]("suggestionLoaded",i)):this[Xa("0xcc")][Xa("0xa0")](i,Xa("0x74"))}return i}acceptSuggestion(t){this[Xa("0x13a")]((()=>{this[Xa("0xb3")][Xa("0x3")][Xa("0x13d")]((()=>{for(const e of t[Xa("0x37")]())e[Xa("0x18")]()}))}))}[Xa("0x51")](t){this.forceDefaultExecution((()=>{this[Xa("0xb3")][Xa("0x3")][Xa("0x13d")]((()=>{for(const e of t[Xa("0x37")]())e[Xa("0x47")]()}))}))}enableCommand(t,n){const o=this.editor[Xa("0x117")][Xa("0xf7")](t);if(!o)throw new e.CKEditorError(Xa("0xa3"),this,{commandName:t});this[Xa("0x30")][Xa("0x109")](o),n&&o.on(Xa("0x20"),((t,e)=>{this[Xa("0xff")][Xa("0xfb")]&&(this[Xa("0x15")]||e[Xa("0x33")]>0&&e[e[Xa("0x33")]-1]&&e[e[Xa("0x33")]-1].forceDefaultExecution||(t[Xa("0x2f")]=n(((...t)=>o[Xa("0x20")](...t,{forceDefaultExecution:!0})),...e),t[Xa("0x10c")]()))}),{priority:Xa("0xd6")})}[Xa("0x13a")](t){let n,o;const s=this[Xa("0x15")];this[Xa("0x15")]=!0;try{n=t()}catch(t){o=t}return s||(this[Xa("0x15")]=!1),o&&e.CKEditorError[Xa("0x11e")](o,this),n}markInsertion(t,n=null,o={}){if(t[Xa("0x65")])return null;const s=this[Xa("0xb3")][Xa("0x134")][Xa("0xf7")](Xa("0x48")).me;for(const{suggestion:e,meta:s}of this[Xa("0x58")](t,Xa("0x2e")))if(s[Xa("0xca")]){if(!s[Xa("0xea")]){if(s[Xa("0x46")]){if(!this[Xa("0x80")]||!rc(e,o))continue;return e}if(rc(e,o))return e;this[Xa("0xee")](e,t[Xa("0xab")],t[Xa("0xe0")]);break}if(n==e.subType&&rc(e,o)){const n=e[Xa("0x96")]();return n[Xa("0xab")][Xa("0x6d")](t[Xa("0xe0")])?this[Xa("0x76")](e,this[Xa("0x99")][Xa("0xd8")](t[Xa("0xab")],n[Xa("0xe0")])):this[Xa("0x76")](e,this[Xa("0x99")][Xa("0xd8")](n[Xa("0xab")],t[Xa("0xe0")])),e}}const r=(0,e.uid)(),i=s.id,x=n?Xa("0xe")+n:Xa("0x2e"),a=this[Xa("0x113")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}[Xa("0x3f")](t,n=Xa("0x7e"),o={}){const s=this.editor[Xa("0x134")].get(Xa("0x48")).me,r=this[Xa("0x5")].getSuggestionCallback("insertion",n,Xa("0x8f"));for(const e of this[Xa("0x8e")]())if(e[Xa("0x10e")].id==s.id&&Xa("0x2e")==e[Xa("0x119")]&&e[Xa("0x111")]==n&&rc(e,o)&&(r(e[Xa("0x8a")](),t)||r(t,e[Xa("0x8a")]()))){for(const n of t)e[Xa("0x143")](n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,Xa("0x2e"))){if(!n[Xa("0xca")])continue;if(!this[Xa("0x80")]&&n[Xa("0x46")])continue;if(!rc(e,o))continue;let s=!0;for(const n of e[Xa("0x8a")]())for(const e of t)if(!n[Xa("0x23")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=Xa("0xe")+n,c=this[Xa("0x113")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo[Xa("0xda")]());return c}[Xa("0x82")](t,n,o=null,s={}){if(o=o||tc(n),t.isCollapsed)return null;if(Xa("0x129")===this[Xa("0x7f")]){const e=this[Xa("0x5")].getSuggestionCallback("formatInline",o,"accept");return this[Xa("0x13a")]((()=>e([t],n,s))),null}const r=this[Xa("0xb3")][Xa("0x134")][Xa("0xf7")](Xa("0x48")).me,i=[];if("always"!==this[Xa("0x7f")])for(const{suggestion:e,meta:n}of this[Xa("0x58")](t,Xa("0x2e")))n[Xa("0xca")]&&!n[Xa("0xb2")]&&i[Xa("0xb6")](...e[Xa("0x8a")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Xa("0x12f")](o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Xa("0x33")];){const o=n[e][Xa("0x16")](t);n[Xa("0xf9")](e,1,...o),e+=o.length}}return n}(t,i);x.length&&this[Xa("0x99")][Xa("0x13d")]((()=>{for(const t of x){const e=this._suggestionFactory[Xa("0xb5")](Xa("0x91"),o,Xa("0x18"));this[Xa("0x13a")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Xa("0xab")],a=t.end;for(const{suggestion:e,meta:n}of this[Xa("0x58")](t,"formatInline")){if(!n[Xa("0xca")])continue;if(e[Xa("0x111")]!=o)continue;if(!rc(e,s))continue;const r=e[Xa("0x96")]();if(r.containsRange(t,!0))return null;x=x[Xa("0xdd")](r.start)?x:r[Xa("0xab")],a=a[Xa("0x9b")](r[Xa("0xe0")])?a:r[Xa("0xe0")],i?r[Xa("0xab")][Xa("0xdd")](i[Xa("0x96")]()[Xa("0xab")])?(i[Xa("0x12e")](),i=e):e[Xa("0x12e")]():i=e}const c=this[Xa("0x99")][Xa("0xd8")](x,a);if(i)this[Xa("0x76")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Xa("0x113")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Xa("0x12")](Xa("0xe2")+o,t,i,c)}}return null}[Xa("0x118")](t,n,o=[],s=null,r={}){n[Xa("0xa2")]||(n[Xa("0xa2")]=n.commandName),n[Xa("0x1b")]=t.is(Xa("0x25")),s=s||tc(n);const i=o[Xa("0x10")]((t=>nc(t,this[Xa("0x99")]))),x=t.is(Xa("0x25"))?t:nc(t,this[Xa("0x99")]);if("never"===this[Xa("0x7f")]){const t=this._suggestionFactory[Xa("0xb5")](Xa("0x34"),s,Xa("0x18"));return this[Xa("0x13a")]((()=>t([x],n,r))),null}i[Xa("0xb6")](x);let a=!0;for(const t of i)if(!this[Xa("0x36")](t)){a=!1;break}if(a&&Xa("0x120")!==this[Xa("0x7f")]){const t=this[Xa("0x5")][Xa("0xb5")](Xa("0x34"),s,Xa("0x18"));return this[Xa("0x13a")]((()=>t([x],n,r))),null}let c=null,l=x[Xa("0xab")],d=x[Xa("0xe0")];for(const{suggestion:t,meta:e}of this[Xa("0x58")](x,Xa("0x34"))){if(!e[Xa("0xca")])continue;if(e[Xa("0xea")]||e[Xa("0x46")]||e[Xa("0xb2")])continue;if(t[Xa("0xd9")].formatGroupId!=n[Xa("0xa2")])continue;if(!rc(t,r))continue;const o=t[Xa("0x96")]();if(t[Xa("0x111")]==s){if(o.containsRange(x,!0))return null;l=l.isBefore(o.start)?l:o[Xa("0xab")],d=d.isAfter(o[Xa("0xe0")])?d:o[Xa("0xe0")],c?o.start.isBefore(c[Xa("0x96")]().start)?(c.removeMarkers(),c=t):t[Xa("0x12e")]():c=t}else{const e=x[Xa("0x12f")](o);this[Xa("0x4")](t,e)}}const u=this.editor.plugins[Xa("0xf7")](Xa("0x48")).me,g=(0,e.uid)(),m=u.id;if(c)return this[Xa("0x76")](c,this[Xa("0x99")][Xa("0xd8")](l,d)),c;{const t=this[Xa("0x113")]({id:g,type:Xa("0xf3")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(Xa("0xf3")+s,g,m,this._model[Xa("0xd8")](l,d)),t}}[Xa("0x56")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[Xa("0xa2")]=n[Xa("0x11c")]);const i=t[0];n.multipleBlocks=i.is("range"),s=s||tc(n);const x=o.map((t=>nc(t,this[Xa("0x99")]))),a=i.is("range")?t:t.map((t=>nc(t,this[Xa("0x99")])));if("never"===this[Xa("0x7f")]){const t=this[Xa("0x5")].getSuggestionCallback(Xa("0x34"),s,"accept");return this[Xa("0x13a")]((()=>t(a,n,r))),null}x[Xa("0xb6")](...a);let c=!0;for(const t of x)if(!this[Xa("0x36")](t)){c=!1;break}if(c&&Xa("0x120")!==this[Xa("0x7f")]){const t=this._suggestionFactory[Xa("0xb5")]("formatBlock",s,Xa("0x18"));return this[Xa("0x13a")]((()=>t(a,n,r))),null}const l=this[Xa("0xb3")][Xa("0x134")].get("Users").me;for(const t of this[Xa("0x8e")]()){if(t[Xa("0x10e")].id!=l.id)continue;if("formatBlock"!=t[Xa("0x119")]||t[Xa("0xd9")][Xa("0xa2")]!=n[Xa("0xa2")])continue;if(!rc(t,r))continue;const e=t[Xa("0x111")]==s;for(let n=0;n<a[Xa("0x33")];n++){const o=a[n];for(const s of t.getMarkers()){const r=s[Xa("0x11f")]();if(o[Xa("0x6d")](r)){e?(a.splice(n,1),n--):t[Xa("0x89")](s[Xa("0xb7")]);break}}}}if(0==a[Xa("0x33")])return null;const d=this[Xa("0x5")][Xa("0xb5")]("formatBlock",s,Xa("0x8f"));for(const t of this[Xa("0x8e")]())if(t[Xa("0x10e")].id==l.id&&Xa("0x34")==t[Xa("0x119")]&&t[Xa("0xd9")].formatGroupId==n[Xa("0xa2")]&&t.subType==s&&rc(t,r)&&(d(t[Xa("0x8a")](),a)||d(a,t[Xa("0x8a")]()))){for(const e of a)t[Xa("0x143")](e);return t}const u=(0,e.uid)(),g=l.id,m="formatBlock:"+s,f=this[Xa("0x113")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Xa("0x12")](m,u,g,t,Zo.getMultiRangeId());return f}[Xa("0x13f")](t,n=null,o={}){if(t[Xa("0x65")])return null;const s=this[Xa("0xb3")][Xa("0x134")][Xa("0xf7")](Xa("0x48")).me,r=new i.LiveRange(t.start,t[Xa("0xe0")]);for(const{suggestion:t,meta:e}of this[Xa("0x58")](r,Xa("0x2e")))if(e[Xa("0xca")]&&!e[Xa("0xea")])if(t.isMultiRange){const e=t[Xa("0x8a")]()[Xa("0xdb")]((t=>Xa("0x72")!=t.root[Xa("0x39")]));if(e[Xa("0x59")]((t=>r[Xa("0x23")](t,!0)))&&t[Xa("0x47")](),e[Xa("0x3b")]((t=>t[Xa("0x23")](r,!0)))){const t=this[Xa("0x5")][Xa("0xb5")]("deletion",n,"accept");return this[Xa("0x13a")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[Xa("0x96")]());null!==e&&t[Xa("0x6a")]([e],null,o)}if(r.detach(),r[Xa("0x65")]||Xa("0x72")==r[Xa("0x52")][Xa("0x39")])return null;let x=null,a=r[Xa("0xab")],c=r[Xa("0xe0")];const l=this[Xa("0x58")](r,Xa("0x127"));for(const{suggestion:t,meta:e}of l){const n=this[Xa("0x99")][Xa("0xd8")](a,c);if(e[Xa("0xca")]&&(this[Xa("0x80")]||!e[Xa("0x46")]&&!e[Xa("0xb2")]))if(t.isMultiRange){if(!rc(t,o))continue;let e=!0;for(const o of t[Xa("0x8a")]()){if(o[Xa("0x23")](n,!0))return t;n[Xa("0x23")](o)||(e=!1)}e&&t.discard()}else{const e=t[Xa("0x96")]();if(e[Xa("0x23")](n,!0))return t;if(!rc(t,o)){n.containsRange(e)?t.removeMarkers():e[Xa("0x29")](a)?a=e.end:e.containsPosition(c)&&(c=e[Xa("0xab")]);continue}a=a.isBefore(e[Xa("0xab")])?a:e[Xa("0xab")],c=c[Xa("0x9b")](e[Xa("0xe0")])?c:e[Xa("0xe0")],o=Object[Xa("0x146")]({},t[Xa("0x5d")]),x?e.start[Xa("0xdd")](x[Xa("0x96")]().start)?(x[Xa("0x12e")](),x=t):t[Xa("0x12e")]():x=t}}if(x)return this[Xa("0x76")](x,this._model[Xa("0xd8")](a,c)),x;{const t=(0,e.uid)(),r=this[Xa("0x99")][Xa("0xd8")](a,c),i=s.id,x=n?Xa("0xdf")+n:Xa("0x127"),l=this[Xa("0x113")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0x12")](x,t,i,r),l}}[Xa("0xcf")](t,n=Xa("0x7e"),o={}){const s=this[Xa("0xb3")][Xa("0x134")][Xa("0xf7")](Xa("0x48")).me,r=t[Xa("0x10")]((t=>new i.LiveRange(t.start,t[Xa("0xe0")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Xa("0x58")](r,"insertion"))e[Xa("0xca")]&&!e[Xa("0xea")]&&x[Xa("0x109")](t);for(const e of x)if(e[Xa("0xd")]){const s=e[Xa("0x8a")]();if((!e.attributes||!e[Xa("0x5d")][Xa("0xb8")])&&s.every((t=>r[Xa("0x3b")]((e=>e[Xa("0x23")](t,!0)))))&&e[Xa("0x47")](),r[Xa("0x59")]((t=>s[Xa("0x3b")]((e=>e[Xa("0x23")](t,!0)))))){const e=this[Xa("0x5")][Xa("0xb5")]("deletion",n,Xa("0x18"));return this[Xa("0x13a")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[Xa("0x3b")]((e=>e[Xa("0x23")](t,!0)))&&e[Xa("0x47")](),r.every((e=>t.containsRange(e,!0)))){const t=this._suggestionFactory[Xa("0xb5")](Xa("0x127"),n,Xa("0x18"));return this[Xa("0x13a")]((()=>t(r,null,o))),null}}const a=this[Xa("0x5")].getSuggestionCallback(Xa("0x127"),n,Xa("0x8f"));let c=null;for(const t of this[Xa("0x8e")]())if(t[Xa("0x10e")].id==s.id&&t[Xa("0x5a")]&&Xa("0x127")==t[Xa("0x119")]&&t[Xa("0x111")]==n&&rc(t,o)&&(a(t[Xa("0x8a")](),r)||a(r,t[Xa("0x8a")]())))if(c){if(t[Xa("0x97")]&&t[Xa("0x97")][Xa("0x33")])continue;for(const e of t[Xa("0x8a")]())c[Xa("0xe8")](e)||c[Xa("0x143")](e);t[Xa("0x12e")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[Xa("0x143")](e)}if(c)return c;x[Xa("0x12c")]();for(const{suggestion:t,meta:e}of this._findSuggestions(r,Xa("0x127")))e.isOwn&&(this._mergeNestedSuggestions||!e[Xa("0x46")]&&!e[Xa("0xb2")])&&rc(t,o)&&x[Xa("0x109")](t);for(const t of x){const e=t[Xa("0x8a")]();if((!o||!o[Xa("0xb8")])&&r[Xa("0x59")]((t=>e[Xa("0x3b")]((e=>e[Xa("0x23")](t,!0))))))return t;(!t[Xa("0x5d")]||!t[Xa("0x5d")][Xa("0xb8")])&&e.every((t=>r[Xa("0x3b")]((e=>e.containsRange(t,!0)))))&&t[Xa("0x47")]()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this[Xa("0x113")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[Xa("0xf2")](),t[Xa("0x65")]||"$graveyard"==t[Xa("0x52")][Xa("0x39")]||this._addSuggestionMarker(u,l,d,t,Zo[Xa("0xda")]());return g}[Xa("0x76")](t,e){const n=t[Xa("0x130")]();this[Xa("0x99")][Xa("0x13d")]((t=>{t[Xa("0xd1")](n,{range:e})}))}[Xa("0x60")](t){const e=t.id,n=this[Xa("0xb3")].config.get(Xa("0x124"));this._commentsRepository[Xa("0x101")](e)||this._commentsRepository[Xa("0x81")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository.getCommentThread(e);o[Xa("0x2c")](Xa("0x21")),o[Xa("0x21")]=!1,t.commentThread=o}_checkSuggestionCorrectness(t,n,o,s){if(t.type!=n||t[Xa("0x111")]!=o||t[Xa("0xc")].id!=s)throw this[Xa("0xb3")][Xa("0xef")](Xa("0x27")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[Xa("0x4")](t,n){const o=t.getFirstRange();if(n.isEqual(o))t[Xa("0x12e")]();else if(o[Xa("0x23")](n)){const s=this[Xa("0x99")].createPositionAt(n.start[Xa("0xde")],"end");this[Xa("0x76")](t,this[Xa("0x99")][Xa("0xd8")](o[Xa("0xab")],s));const r=(0,e.uid)(),i=t[Xa("0xc")].id,x=t[Xa("0x119")]+":"+t[Xa("0x111")];this[Xa("0x113")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t.attributes});const a=this[Xa("0x99")][Xa("0xad")](n[Xa("0xe0")][Xa("0x100")],Xa("0x98")),c=this[Xa("0x99")][Xa("0xd8")](a,o[Xa("0xe0")]);this[Xa("0x12")](x,r,i,c)}else if(o.containsPosition(n[Xa("0xab")])){const e=this[Xa("0x99")][Xa("0xad")](n.start[Xa("0xde")],Xa("0xe0"));this._setSuggestionRange(t,this[Xa("0x99")][Xa("0xd8")](o[Xa("0xab")],e))}else{const e=this[Xa("0x99")].createPositionAt(n[Xa("0xe0")][Xa("0x100")],Xa("0x98"));this[Xa("0x76")](t,this[Xa("0x99")][Xa("0xd8")](e,o[Xa("0xe0")]))}}[Xa("0x36")](t){for(const{suggestion:e,meta:n}of this[Xa("0x58")](t,Xa("0x2e"))){if(!n[Xa("0xca")])continue;const o=e[Xa("0x8a")]();for(const e of o)if(!t[Xa("0x16")](e)[Xa("0x33")])return!0}return!1}_getAuthorFromId(t){const n=this.editor[Xa("0x134")][Xa("0xf7")](Xa("0x48"))[Xa("0x13e")](t);if(!n)throw new e.CKEditorError(Xa("0x14"),this);return n}[Xa("0x2b")](t){const e=this.editor[Xa("0x134")][Xa("0xf7")](Xa("0x48")),n=(0,r.hashObject)(Xa("0xf")+t);return e[Xa("0x13e")](n)||e[Xa("0x106")]({id:n,name:t})}[Xa("0x11b")](t,e,n,o,s){const r=this[Xa("0x66")](o),i=this[Xa("0x5")].buildSuggestion(t,e,n,r,s,(t=>this[Xa("0x104")](n,{attributes:t})));return this[Xa("0x8c")](i,"accept",(()=>{this[Xa("0x104")](n,{state:"accepted"})}),{priority:Xa("0xd6")}),this[Xa("0x8c")](i,Xa("0x47"),(()=>{this._updateSuggestionData(n,{state:Xa("0x8d")})}),{priority:Xa("0xd6")}),this[Xa("0xc4")][Xa("0xa0")](n,i),this[Xa("0xcc")][Xa("0xa0")](i,Xa("0xe9")),i}_splitMarkerName(t){const e=t[Xa("0xc1")](":");return{group:e[0],type:e[1],subType:e[Xa("0x33")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[Xa("0x33")]<5?e[3]:e[4],markerCount:6==e[Xa("0x33")]?e[5]:null}}[Xa("0xee")](t,n,o){const s=t.getFirstRange(),r=s.start,i=s[Xa("0xe0")];this[Xa("0x76")](t,this[Xa("0x99")][Xa("0xd8")](r,n));const x=(0,e.uid)(),a=t[Xa("0xc")].id,c=t[Xa("0x119")]+(t.subType?":"+t.subType:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t.data}),Xa("0x34")==t[Xa("0x119")]&&(o=this[Xa("0x99")][Xa("0xe4")](o.parent)),this[Xa("0x12")](c,x,a,this[Xa("0x99")][Xa("0xd8")](o,i))}[Xa("0x58")](t,e=null){const n=[],o=this[Xa("0xb3")].plugins[Xa("0xf7")](Xa("0x48")).me;Array[Xa("0xd5")](t)||(t=[t]);for(const s of this[Xa("0x8e")]()){if(!s[Xa("0x5a")])continue;if(e&&s.type!=e)continue;let r=!1;for(const e of s.getRanges()){for(const i of t){const t=i.start[Xa("0x6d")](e[Xa("0xe0")])||i.end[Xa("0x6d")](e.start);if(t||i[Xa("0x12f")](e)){const x=i[Xa("0x23")](e)&&Qa(this[Xa("0x99")].schema,e[Xa("0xab")],i),a=e[Xa("0x23")](i)&&Qa(this[Xa("0x99")].schema,i.start,e);n[Xa("0xb6")]({suggestion:s,meta:{isOwn:o==s[Xa("0x10e")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[Xa("0x12")](t,e,n,o,s){this[Xa("0x99")].change((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r[Xa("0xc9")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0xd4")](t){const e=t[Xa("0x8")],n=t[Xa("0xd2")];t[Xa("0x8")]=null,null!=e&&(e.next=null),t[Xa("0xd2")]=null,null!=n&&(n[Xa("0x8")]=null),Xa("0x69")==this[Xa("0xcc")].get(t)&&(this[Xa("0xcc")][Xa("0xa0")](t,Xa("0x74")),this[Xa("0x3c")](Xa("0x103"),t,e,n))}[Xa("0x113")](t){const n=t.id,o=this[Xa("0xe1")](t);if(this._adapter&&this[Xa("0x133")][Xa("0x28")]){const s=this.editor[Xa("0x134")][Xa("0xf7")]("PendingActions"),r=o[Xa("0xae")],i=o[Xa("0x111")]?o.type+":"+o.subType:o[Xa("0x119")],x=this[Xa("0xb3")][Xa("0x94")],a=s[Xa("0x109")](Yo(x,Xa("0x1c"))),c={id:n,type:i,hasComments:r,data:t[Xa("0xd9")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[Xa("0x5d")]};this[Xa("0x133")][Xa("0x28")](c)[Xa("0x85")]((t=>{o._saved=!0,s[Xa("0xbd")](a),t&&t[Xa("0x49")]&&(this[Xa("0xc4")][Xa("0xf7")](n)[Xa("0x49")]=t[Xa("0x49")])}))[Xa("0x42")]((t=>{throw(0,e.logWarning)(Xa("0x7a")),this[Xa("0xb3")][Xa("0x3")].enqueueChange({isUndoable:!1},(()=>{o.discard()})),o[Xa("0xf5")](),this[Xa("0xc4")][Xa("0x108")](o.id),this[Xa("0xcc")][Xa("0x108")](o),t}))}return o}_updateSuggestionData(t,e){const n=this[Xa("0xb3")][Xa("0x134")][Xa("0xf7")](Xa("0xb")),o=this[Xa("0x0")](t);if(this[Xa("0x133")]&&this[Xa("0x133")][Xa("0x68")])if(o._saved){const o=n[Xa("0x109")](Yo(this.editor[Xa("0x94")],Xa("0x1c")));this[Xa("0x133")][Xa("0x68")](t,e)[Xa("0x85")]((()=>{n[Xa("0xbd")](o)}))}else o.on(Xa("0x1a"),(()=>{this[Xa("0x104")](t,e)}))}[Xa("0x45")](t){if(!this._adapter||!this[Xa("0x133")][Xa("0x0")])throw new e.CKEditorError(Xa("0xce"),this);return this[Xa("0x133")][Xa("0x0")](t)}[Xa("0x2a")](t){const{id:e,type:n,subType:o,authorId:s}=this[Xa("0xec")](t),r=this[Xa("0xc4")][Xa("0xf7")](e)||this[Xa("0x11b")](n,o,e,s,{});switch(this[Xa("0x10a")](r,n,o,s),this[Xa("0xcc")][Xa("0xf7")](r)){case"notReady":this[Xa("0x45")](e)[Xa("0x85")]((t=>{let n=Promise[Xa("0x19")]();t[Xa("0xae")]&&(n=this._commentsRepository.fetchCommentThread({channelId:this.editor.config[Xa("0xf7")](Xa("0x124")),threadId:e})),n[Xa("0x85")]((()=>{this[Xa("0xe1")](t)[Xa("0xd0")]=!0}))})),this[Xa("0xcc")][Xa("0xa0")](r,Xa("0x4b"));break;case"removed":this[Xa("0x104")](e,{state:Xa("0x77")});case"dataReady":this[Xa("0xcc")][Xa("0xa0")](r,"ready"),this[Xa("0x3c")](Xa("0x1f"),r);break;case"ready":this[Xa("0x3c")]("suggestionChanged",r)}return r.addMarkerName(t),r}[Xa("0x71")](t){const e=Array[Xa("0xc6")](t)[Xa("0xdb")]((t=>!t[Xa("0xd")])),n=this.getSuggestions({skipNotAttached:!0}).filter((t=>!t.isMultiRange)),o=n[Xa("0xdb")]((e=>!t[Xa("0x126")](e))),s=new Map(n[Xa("0x10")]((t=>[t,this._suggestionFactory[Xa("0xb5")](t[Xa("0x119")],t.subType,Xa("0xbf"))]))),r=new Map(n[Xa("0x10")]((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e[Xa("0x33")];t++)a(e[t],e,t+1);for(let t=0;t<e[Xa("0x33")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[Xa("0x126")](n)&&n[Xa("0x8")]&&(n[Xa("0x8")][Xa("0xd2")]===n&&(n[Xa("0x8")][Xa("0xd2")]=null),n[Xa("0x8")]=null),!i[Xa("0x126")](n)&&n[Xa("0xd2")]&&(n.next[Xa("0x8")]===n&&(n[Xa("0xd2")][Xa("0x8")]=null),n[Xa("0xd2")]=null)}function a(t,e,n){for(let o=n;o<e[Xa("0x33")];o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][Xa("0x8")]=n[0],i[Xa("0x109")](n[0]),x[Xa("0x109")](n[1]))}}function c(t,e){if(t[Xa("0x10e")].id!==e[Xa("0x10e")].id)return null;const n=s[Xa("0xf7")](t)(t,e,r.get(t),r[Xa("0xf7")](e));return n&&s[Xa("0xf7")](e)(t,e,r[Xa("0xf7")](t),r[Xa("0xf7")](e))?n[1].commentThread&&n[1][Xa("0x97")].length?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array[Xa("0xc6")](t),n=this[Xa("0x8e")]({skipNotAttached:!0}),o=n.filter((e=>!t[Xa("0x126")](e))),s=new Map(e[Xa("0x10")]((t=>[t,this._suggestionFactory[Xa("0xb5")](t[Xa("0x119")],t.subType,"join")]))),r=new Map(n[Xa("0x10")]((t=>[t,t[Xa("0x8a")]()])));for(let t=0;t<e[Xa("0x33")];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[Xa("0x33")];i++){const o=n[i];if(o[Xa("0x119")]!==e[Xa("0x119")]||o[Xa("0x10e")].id!==e.author.id||o[Xa("0x111")]!==e[Xa("0x111")])continue;if(!sc(e,o))continue;const x=s[Xa("0xf7")](e),a=r.get(e),c=r[Xa("0xf7")](o),l=e[Xa("0x97")]&&e[Xa("0x97")][Xa("0x33")],d=o.commentThread&&o.commentThread[Xa("0x33")];if(!l&&x(c,a))return t[Xa("0x41")](o,e),r[Xa("0x108")](e),!0;if(!d&&x(a,c))return t[Xa("0x41")](e,o),r[Xa("0x108")](o),!0}return!1}}_joinSuggestions(t,e){if(t[Xa("0xd")])for(const n of e[Xa("0x8a")]())t[Xa("0x143")](n);else{const n=e[Xa("0x96")]()[Xa("0xe0")];this._setSuggestionRange(t,this._model[Xa("0xd8")](t[Xa("0x96")]()[Xa("0xab")],n))}e[Xa("0x12e")]()}}class Ja{constructor(t){this[Xa("0x6f")]=t,this[Xa("0x99")]=t.model,this[Xa("0x4d")]=new Map,this[Xa("0xa9")]=new Map,this._registerDefaultCallbacks()}[Xa("0xaa")](t,e,n,o,s,r){return new Zo(this[Xa("0x99")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Xa("0xb5")](t,e,Xa("0x18"))(...n),onDiscard:(...n)=>this[Xa("0xb5")](t,e,Xa("0x47"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[Xa("0xa0")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[Xa("0xf7")](o)||this._defaultCallbacks[Xa("0xf7")](t+":"+n)}[Xa("0xe7")](){const t=()=>!1,e=t=>{t[Xa("0x123")](((t,e)=>t[Xa("0xab")][Xa("0xdd")](e[Xa("0xab")])?1:-1)),this._model[Xa("0x13d")]((e=>{for(const n of t){let t;t=n[Xa("0xe0")].isAtEnd&&n.end[Xa("0x100")]==n[Xa("0xab")][Xa("0x12d")]?e[Xa("0x62")](n[Xa("0xab")][Xa("0x12d")],"on"):e.createSelection(n),this[Xa("0x99")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Xa("0x99")][Xa("0x13d")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t.map((t=>(Za(t)&&(t=this._model[Xa("0xd8")](t[Xa("0xe0")])),t)))[Xa("0xdb")]((t=>Xa("0x72")!==t[Xa("0x52")].rootName));if(r[Xa("0x33")]<1)return;const x=Array[Xa("0xc6")](this[Xa("0x99")][Xa("0xb0")].selection.getRanges())[Xa("0x10")]((t=>i.LiveRange[Xa("0x53")](t)));n[Xa("0x3d")](r);for(const t of this._editor[Xa("0x117")][Xa("0x117")]())t[Xa("0x5b")]();s[Xa("0xb6")]({forceDefaultExecution:!0}),this[Xa("0x6f")][Xa("0x20")](o,...s);const a=x[Xa("0xdb")]((t=>"$graveyard"!=t[Xa("0x52")][Xa("0x39")]));a[Xa("0x33")]>0&&n[Xa("0x3d")](a);for(const t of x)t[Xa("0xf2")]()}))},o=(t,e)=>1==t[Xa("0x33")]&&1==e[Xa("0x33")]&&t[0].end[Xa("0x6d")](e[0][Xa("0xab")]),s=(t,e,n,o)=>oc(t,e,n,o,this._model)?[t,e]:oc(e,t,o,n,this[Xa("0x99")])?[e,t]:null;this[Xa("0xa9")][Xa("0xa0")](Xa("0x144"),t),this[Xa("0xa9")].set(Xa("0xfd"),e),this._defaultCallbacks[Xa("0xa0")](Xa("0x79"),o),this[Xa("0xa9")][Xa("0xa0")](Xa("0x139"),s),this[Xa("0xa9")][Xa("0xa0")](Xa("0xb4"),e),this[Xa("0xa9")][Xa("0xa0")]("deletion:discard",t),this[Xa("0xa9")][Xa("0xa0")]("deletion:join",o),this[Xa("0xa9")][Xa("0xa0")](Xa("0x83"),s),this._defaultCallbacks[Xa("0xa0")](Xa("0x110"),n),this[Xa("0xa9")][Xa("0xa0")](Xa("0x12a"),t),this[Xa("0xa9")].set(Xa("0x78"),o),this._defaultCallbacks.set(Xa("0xf1"),t),this._defaultCallbacks[Xa("0xa0")](Xa("0xa1"),n),this[Xa("0xa9")][Xa("0xa0")]("formatBlock:discard",t),this[Xa("0xa9")].set(Xa("0xfc"),o),this[Xa("0xa9")][Xa("0xa0")]("formatBlock:chain",t)}}function Qa(t,e,n){for(const o of e[Xa("0x100")][Xa("0x54")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[Xa("0x63")](o))return!1;if(t[Xa("0x67")](o)||t.isLimit(o))return!0}return!1}function Za(t){return t[Xa("0xe0")].parent==t[Xa("0xab")][Xa("0x12d")]&&t[Xa("0xe0")].isAtStart}function Ya(t,e,n,o){const s=t=>!t[Xa("0x121")].is(Xa("0xc5"))&&!o[Xa("0x67")](t[Xa("0x121")]),r=t[Xa("0xab")].getLastMatchingPosition(s),i=t[Xa("0xe0")].getLastMatchingPosition(s,{direction:Xa("0x43")});return!(t[Xa("0xab")][Xa("0x6d")](r)&&t[Xa("0xe0")][Xa("0x6d")](i)||(r[Xa("0xdd")](i)?n.updateMarker(e,{range:n.createRange(r,i)}):n[Xa("0x89")](e),0))}function tc(t){return(0,r.hashObject)(t)}function ec(t){const e=t.start[Xa("0x12d")];return e&&e.is(Xa("0xc0"))}function nc(t,e){const n=e[Xa("0x7")].isObject(t)||e[Xa("0x7")][Xa("0xe5")](t);return e[Xa("0xd8")](e[Xa("0xad")](t,Xa("0x147")),n?e[Xa("0x10b")](t):e[Xa("0xad")](t,Xa("0xe0")))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n.end[Xa("0x6d")](o[Xa("0xab")]))return!0;if(t.type!=e.type)return!1;if(!n[Xa("0xe0")][Xa("0x9e")](o.start))return!1;const r=s[Xa("0xd8")](n.end,o[Xa("0xab")])[Xa("0xf8")]();for(const t of r)if([Xa("0x6e"),"elementEnd"][Xa("0xba")](t[Xa("0x119")])&&s[Xa("0x7")][Xa("0x8b")](t[Xa("0x121")]))return!1;return!0}function sc(t,e){return!(!t[Xa("0x70")]||!e[Xa("0x70")])&&Go(t[Xa("0x5d")],e[Xa("0x5d")])}function rc(t,e){const n=ic(t[Xa("0x5d")]),o=ic(e);if(!t[Xa("0x70")])return!1;for(const t of Object[Xa("0x31")](o))if(!Go(n[t],o[t]))return!1;return!0}function ic(t){const e=Object[Xa("0x146")]({},t);return delete e[Xa("0xb8")],delete e.tablePasteChainId,e}const xc=["PendingActions","isDirty","listenTo","locale","view","canDiscard","_editor","_acceptCommand","remove","_pendingAction","_discardCommand","add","_setPendingAction","acceptSuggestion","canEditAt","commentThreadController","_removePendingAction","stopListening","get","change:isDirty","model","unbind","getRanges","discardSuggestion","isEnabled","bind","execute","commands","destroy","canAccept","plugins"];var ac,cc;ac=xc,cc=460,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("0x9")]=n,this[lc("0x14")]=o,this._editor=t,this[lc("0xc")]=t[lc("0x1")].get(lc("0x12")),this[lc("0xf")]=t.commands.get(lc("0x1c")),this[lc("0x9")][lc("0x1e")](lc("0x1d")).to(this._acceptCommand,this[lc("0xf")],((t,e)=>t||e)),this[lc("0x9")][lc("0x1e")](lc("0x3")).to(this[lc("0xc")],lc("0x1d"),(t=>t&&this[lc("0xb")][lc("0x19")][lc("0x13")](e[lc("0x1b")]()))),this[lc("0x9")][lc("0x1e")](lc("0xa")).to(this._discardCommand,lc("0x1d"),(t=>t&&this[lc("0xb")][lc("0x19")][lc("0x13")](e[lc("0x1b")]()))),this[lc("0xe")]=null,n[lc("0x6")]&&this[lc("0x11")](),this.listenTo(n,lc("0x12"),(()=>this[lc("0x12")]())),this[lc("0x7")](n,lc("0x1c"),(()=>this[lc("0x1c")]())),this.listenTo(n,lc("0x18"),(()=>{n.isDirty?this[lc("0x11")]():this[lc("0x15")]()}))}[lc("0x12")](){this[lc("0xc")].execute(this[lc("0x19")].id)}[lc("0x1c")](){this[lc("0xf")][lc("0x0")](this[lc("0x19")].id)}[lc("0x2")](){this[lc("0x9")][lc("0x1a")]("isEnabled"),this.view.unbind(lc("0x3")),this[lc("0x9")][lc("0x1a")](lc("0xa")),this[lc("0x16")](),this[lc("0x14")][lc("0x2")](),this[lc("0xe")]&&this[lc("0x15")]()}[lc("0x11")](){const t=Yo(this._editor[lc("0x8")],"PENDING_ACTION_SUGGESTION");this[lc("0xe")]=this[lc("0xb")][lc("0x4")][lc("0x17")]("PendingActions")[lc("0x10")](t)}[lc("0x15")](){null!==this[lc("0xe")]&&this._editor[lc("0x4")][lc("0x17")](lc("0x5"))[lc("0xd")](this[lc("0xe")]),this[lc("0xe")]=null}}const uc=["_createCommentThreadInputView","commentsListView","_model","destroy","isReadOnly","locale","showInput","isEnabled","editorConfig","isDirty","element","value","removeComment","disableComments","editor","commentInputView","_localUser","disabledSubmit","assign","commentThread","bind","descriptionParts","isActive","authoredAt","_createCommentViews","hasDirtyComment","set","setData","_config","length","CommentView","commentThreadInputView","focus","canDiscard","addComment"];var gc,mc;gc=uc,mc=194,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("0x11")]=null,this[fc("0xc")]=null,this.set(fc("0x3"),!1),this[fc("0x7")]("authoredAt",e.authoredAt),this[fc("0x1")](fc("0x4")).to(e),this[fc("0x7")](fc("0x2"),[]),this.set("isDirty",!1),this[fc("0x7")](fc("0x17"),!1),this[fc("0x7")]("canAccept",!1),this.set(fc("0xe"),!1),this[fc("0x12")]=e,this[fc("0x20")]=n,this[fc("0x9")]=o,o[fc("0x1d")]?this.set(fc("0xa"),1):this._createCommentViews()}[fc("0xd")](){this[fc("0x1a")].focus()}destroy(){this[fc("0x11")]&&this.commentsListView[fc("0x13")](),this[fc("0xc")]&&this[fc("0xc")].destroy(),super.destroy()}[fc("0x5")](){const{CommentsListView:t}=this._config;this[fc("0x11")]=new t(this.locale,this[fc("0x12")][fc("0x0")],Object[fc("0x22")]({CommentView:this[fc("0x9")][fc("0xb")]},this._config)),this[fc("0x11")].delegate(fc("0x1c")).to(this),this[fc("0x11")].delegate("updateComment").to(this),this[fc("0x11")][fc("0x1")](fc("0x3")).to(this),this.set(fc("0xa"),this[fc("0x11")][fc("0xa")]+1),this[fc("0x1")](fc("0xa")).to(this.commentsListView,fc("0xa"),(t=>t+1)),this[fc("0xc")]=this[fc("0x10")](),this.on(fc("0x1c"),(()=>this.focus())),this.bind(fc("0x19")).to(this.commentsListView,fc("0x6"),this.commentThreadInputView[fc("0x1f")],fc("0x1b"),((t,e)=>t||!!e))}[fc("0x10")](){const{CommentThreadInputView:t}=this[fc("0x9")],e=new t(this[fc("0x15")],this[fc("0x20")],this[fc("0x9")][fc("0x18")]),n=e[fc("0x1f")];return e[fc("0x1")](fc("0x16")).to(this,fc("0x3"),this[fc("0x12")][fc("0x0")],fc("0x14"),n,fc("0x1b"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this.fire(fc("0xf"),e),n[fc("0x1e")][fc("0x8")]("")})),n.on("cancel",(()=>this[fc("0xd")]())),n.bind(fc("0x21")).to(this._model[fc("0x0")],fc("0x14")),e}}const pc=["_createButton","canDiscard","split","getTemplate","creator","ck-annotation__info","commentsListView","querySelector","source","canAccept","set","div","cancel","ck-suggestion-wrapper","element","commentThread","formatDateTime",'<span class="ck-suggestion-type">',"setTemplate","attributes","_model","delegate","value","render","discardSuggestion","importWord","isActive",'" title="',"editorReady","discardButton","ck-annotation","ck-comment__info-time","</span>","extendTemplate","disableComments","type","ck-annotation__info-time","ck-annotation__info-name","ck-suggestion--accept","acceptSuggestion","ck-suggestion","editorDestroyed","_descriptionElement","isExternal","content","push","@external","_config","getUserViewNotificationText","ck-suggestion__main","color",'"></span>',"ck-suggestion-","execute","commentThreadInputView","ck-suggestion-wrapper--active","locale","createElement","getExternalSuggestionNote","description",'<span class="ck-suggestion-color" style="background-color: ',".ck-annotation__content-wrapper","ck-annotation__actions","isEnabled","name","ck-annotation__content-wrapper","</p>","<p>","ck-suggestion__user","ck-suggestion--disabled-comments","EXTERNAL_IMPORT_WORD_AVATAR","map","userView","Discard suggestion","authoredAt","innerHTML","change:description","bind","ck-suggestion__info","ck-suggestion__info-name","author","acceptButton"];var bc,Ec;bc=pc,Ec=107,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("0x43")](_c("0xa"),""),this[_c("0x34")]("type").to(this,"descriptionParts",(t=>t&&t[0]?t[0][_c("0xa")]:"")),this[_c("0x34")](_c("0x22")).to(this,"descriptionParts",this,_c("0x1"),((t,e)=>{let n="";for(const e of t)n+=_c("0x2a")+Cc(e[_c("0x13")],e[_c("0x19")])+_c("0x29");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[_c("0x11")]=null,this[_c("0x38")]=this[_c("0x39")](Yo(e,"Accept suggestion"),t.icons.check,_c("0xd"),_c("0xe"),"sw"),this[_c("0x38")].bind(_c("0x26")).to(this,_c("0x42")),this[_c("0x4")]=this[_c("0x39")](Yo(e,_c("0x30")),t.icons[_c("0x45")],"ck-suggestion--discard",_c("0x51"),"sw"),this[_c("0x4")][_c("0x34")](_c("0x26")).to(this,_c("0x3a")),this[_c("0x2f")]=new r.UserView(e,this[_c("0x4d")][_c("0x37")],this[_c("0x17")]()),this[_c("0x2f")][_c("0x8")]({attributes:{class:[_c("0x2b"),"ck-annotation__user"]}}),this[_c("0x4b")](this[_c("0x3c")]())}[_c("0x3c")](){const t=this.bindTemplate,e=[{tag:"div",attributes:{class:[_c("0x35"),_c("0x3e")]},children:[{tag:"span",children:[{text:this.userView[_c("0x27")]}],attributes:{class:[_c("0x36"),_c("0xc")]}},{tag:"time",attributes:{datetime:t.to(_c("0x31")),class:[_c("0x6"),_c("0xb")]},children:[{text:t.to(_c("0x31"),(t=>this._config[_c("0x49")](t)))}]}]},{tag:_c("0x44"),attributes:{class:["ck-suggestion__actions",_c("0x25")]},children:[this[_c("0x38")],this[_c("0x4")]]},{tag:_c("0x44"),attributes:{class:[_c("0x28")]}}];this[_c("0x4d")][_c("0x12")]&&e[_c("0x14")]({tag:_c("0x44"),attributes:{class:["ck-comment__external"]},children:[{text:this[_c("0x21")]()}]});const n={tag:"div",attributes:{class:[_c("0x46"),t.if(_c("0x1"),_c("0x1e")),t.to("type",(t=>_c("0x1b")+t)),this[_c("0x16")][_c("0x9")]&&_c("0x2c")],"data-suggestion-id":this[_c("0x4d")].id,"data-thread-id":this[_c("0x4d")][_c("0x48")].id,"data-author-id":this[_c("0x4d")][_c("0x37")].id,tabindex:-1},children:[{tag:_c("0x44"),attributes:{class:[_c("0xf"),_c("0x5")]},children:[this[_c("0x2f")],{tag:"div",attributes:{class:[_c("0x18"),"ck-annotation__main"]},children:e}]}]};return this.commentsListView&&this[_c("0x1d")]&&(n.children[_c("0x14")](this.commentsListView,this[_c("0x1d")]),this[_c("0x3f")].delegate(_c("0x3")).to(this),this[_c("0x3f")][_c("0x4e")](_c("0x10")).to(this),this[_c("0x1d")][_c("0x4e")]("editorReady").to(this),this[_c("0x1d")][_c("0x4e")](_c("0x10")).to(this)),n}[_c("0x50")](){super[_c("0x50")](),this[_c("0x11")]=this[_c("0x47")][_c("0x40")](_c("0x24")),this[_c("0x11")].innerHTML=this[_c("0x22")],this.on(_c("0x33"),((t,e,n)=>{this._descriptionElement[_c("0x32")]=n}))}[_c("0x39")](t,e,n,o,r){const i=new s.ButtonView(this[_c("0x1f")]);return i[_c("0x43")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[_c("0x8")]({attributes:{class:n}}),i.on(_c("0x1c"),(()=>{this.fire(o,this[_c("0x4d")].id)})),i}[_c("0x21")](){return _c("0x0")===this[_c("0x4d")][_c("0x4c")]["@external"].source?Yo(this[_c("0x1f")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[_c("0x1f")],"EXTERNAL_SUGGESTION")}getUserViewNotificationText(){return this[_c("0x4d")].isExternal?_c("0x0")===this._model.attributes[_c("0x15")][_c("0x41")]?Yo(this[_c("0x1f")],_c("0x2d"),this[_c("0x4d")][_c("0x3d")][_c("0x27")]):Yo(this[_c("0x1f")],"EXTERNAL_AVATAR",this[_c("0x4d")].creator[_c("0x27")]):null}}function Cc(t,e){let n="";return n+=t[_c("0x3b")]("*")[_c("0x2e")](((t,e)=>e%2!=0?_c("0x4a")+yc(t)+_c("0x7"):yc(t))).join(""),e&&(n+=_c("0x23")+e[_c("0x4f")]+_c("0x2")+e.title+_c("0x1a")),n}function yc(t){const e=document[_c("0x20")]("span");return e.innerText=t,e.innerHTML}const kc=["clear","innerView","getMarkerNames","_viewToController","switchbutton","getAllAdjacentSuggestions","set","from","commandName","getMarkers","destroy","_bindAnnotationToEditors","execute","SuggestionThreadView","push","trackChanges.SuggestionThreadView","createAnnotationView","Accept all selected suggestions","requires","pluginName","bind","suggestionChanged","_destroyController","head","buttonView","_disableComments","acceptButton","plugins","discardButton","getByInnerView","type","separator","hasSuggestion","_initializeController","filter","_descriptionFactory","suggestion-","descriptionParts","_suggestionToController","some","TrackChangesEditing","config","createCommentThreadController","value","comments","TrackChangesUI","unbind","get","commands","isMultiRange","activeMarkers","getJoined","toMany","locale","editor","isInContent","Track changes","_unbindEditors","createAnnotation","_createUIButton","EditorAnnotations","mainView","isOn","isEnabled","comments.maxCommentCharsWhenCollapsed","change:previous","trackChanges","acceptAllSuggestions","getDescriptions","change:activeAnnotations","suggestionUnloaded","editing","discardAllSuggestions","view","add","activeAnnotations","_annotationViews","comments.maxThreadTotalWeight","comments.maxCommentsWhenCollapsed","CommentsRepository","commentThread","button","define","CommentView","refreshSelectedViews","_handleControllerBuffer","map","values","comments.editorConfig","_updateController","init","focus","delete","discardSelectedSuggestions","listenTo","length","_handleSuggestionControllerDelayed","keys","isDirty","CommentsUI","Annotations","lowest","trackChanges.disableComments","model","Discard all suggestions","stopListening","arrowView","_refreshActiveMarkers","has","reduce","source"];var Ac,vc;Ac=kc,vc=339,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("0xc")](){return[$a,r.Users,Rc("0x49"),"Annotations",Rc("0x36")]}static get[Rc("0xd")](){return Rc("0x27")}constructor(t){super(t),this._suggestionToController=new Map,this[Rc("0x6c")]=new Map,this[Rc("0x46")]=new Map,this[Rc("0x4f")]=new Map;const e=this[Rc("0x30")][Rc("0x23")];e[Rc("0x4c")](Rc("0x9"),Tc),e[Rc("0x4c")](Rc("0x60"),!1),this[Rc("0x13")]=e[Rc("0x29")](Rc("0x60"))}[Rc("0x5a")](t,e){0===this[Rc("0x4f")].size&&setTimeout((()=>{for(const[t,e]of this[Rc("0x4f")]){const n=this._suggestionToController[Rc("0x66")](t);n||e?n&&e&&this._destroyController(t):this[Rc("0x1b")](t)}this[Rc("0x30")][Rc("0x15")][Rc("0x29")](Rc("0x36"))[Rc("0x4e")](),this._refreshActiveMarkers(),this[Rc("0x4f")][Rc("0x69")]()}),10),this[Rc("0x4f")][Rc("0x0")](t,e)}[Rc("0x54")](){const t=this[Rc("0x30")],e=t[Rc("0x15")][Rc("0x29")](Rc("0x22")),n=t[Rc("0x15")].get(Rc("0x5e")),o=t[Rc("0x15")][Rc("0x29")](Rc("0x36")),s=t[Rc("0x15")][Rc("0x29")](Rc("0x49"));t.ui.componentFactory[Rc("0x44")]("trackChanges",(t=>this._createUIButton(t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array.from(this[Rc("0x20")])){const o=e[Rc("0x6e")](),s=[];for(const t of o){if(!t[Rc("0x31")])continue;if(t[Rc("0x2b")]){s[Rc("0x8")](...t.getRanges());continue}const e=t.getFirstRange();if(s[Rc("0x59")]>0){const t=s[0][Rc("0x2d")](e);if(t){s[0]=t;continue}}s[Rc("0x8")](e)}t[Rc("0x8")]([n[Rc("0x43")],s])}return t})),this.listenTo(e,"suggestionLoaded",((t,e)=>{this[Rc("0x58")](e,Rc("0x3b"),((t,n,o,s)=>{e[Rc("0x31")]&&(null==o?(this[Rc("0x53")](s[Rc("0x11")]),this[Rc("0x5a")](e,!1)):(this[Rc("0x53")](o[Rc("0x11")]),this[Rc("0x5a")](e,!0)))})),null===e.previous?this[Rc("0x5a")](e,!1):this[Rc("0x53")](e[Rc("0x11")])})),this[Rc("0x58")](e,Rc("0x40"),((t,e,n)=>{this[Rc("0x63")](e,Rc("0x3b")),this[Rc("0x4f")][Rc("0x56")](e);const o=n?n.head:e,s=this._suggestionToController[Rc("0x29")](o);null!==n&&this[Rc("0x53")](o),null===n&&s&&this._destroyController(e)})),this.listenTo(e,Rc("0xf"),((t,e)=>{this._updateController(e)})),this[Rc("0x58")](n,Rc("0x3f"),(()=>{this[Rc("0x65")]()})),this[Rc("0x58")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0x1a")](n))return;const s=e.getSuggestion(n);this[Rc("0x20")][Rc("0x29")](s).view.focus()}),{priority:Rc("0x5f")})}[Rc("0x65")](){const t=this[Rc("0x30")][Rc("0x15")][Rc("0x29")]("Annotations"),e=this[Rc("0x30")][Rc("0x15")][Rc("0x29")](Rc("0x22")),n=Array[Rc("0x1")](t[Rc("0x45")],(t=>t[Rc("0x6a")]))[Rc("0x1c")]((t=>this[Rc("0x6c")][Rc("0x66")](t))),o=[];for(const t of n){const e=this._viewToController.get(t)[Rc("0x61")][Rc("0x6e")]();o[Rc("0x8")](...e[Rc("0x67")](((t,e)=>[...t,...e[Rc("0x6b")]()]),[]))}e[Rc("0x2c")]=o}[Rc("0x35")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Rc("0x2a")][Rc("0x29")]("trackChanges"),r=Yo(t,Rc("0x32"));n[Rc("0x12")][Rc("0x0")]({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[Rc("0xe")](Rc("0x38")).to(o,Rc("0x25")),n[Rc("0x12")].on(Rc("0x6"),(()=>{o[Rc("0x6")](),this[Rc("0x30")][Rc("0x41")][Rc("0x43")][Rc("0x55")]()}));const i=new e.Collection,x=[{type:Rc("0x6d"),model:{withText:!0,label:r,commandName:Rc("0x3c")}},{type:Rc("0x19")},{type:Rc("0x4b"),model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Rc("0x3d")}},{type:Rc("0x4b"),model:{withText:!0,label:Yo(t,Rc("0xb")),commandName:"acceptSelectedSuggestions"}},{type:Rc("0x4b"),model:{withText:!0,label:Yo(t,Rc("0x62")),commandName:Rc("0x42")}},{type:Rc("0x4b"),model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:Rc("0x57")}}];for(const t of x){let e={type:Rc("0x19")};if(t[Rc("0x61")]){const n=new s.Model(t[Rc("0x61")]),o=this[Rc("0x30")].commands[Rc("0x29")](n.commandName);n.bind(Rc("0x38"),Rc("0x39")).to(o,"value",Rc("0x39")),e={type:t[Rc("0x18")],model:n}}i[Rc("0x44")](e)}(0,s.addListToDropdown)(n,i);const a=x[Rc("0x1c")]((t=>null!=t[Rc("0x61")]))[Rc("0x50")]((t=>this.editor[Rc("0x2a")][Rc("0x29")](t[Rc("0x61")][Rc("0x2")]))),c=n[Rc("0x12")];return c.actionView[Rc("0x28")](Rc("0x39")),c[Rc("0x64")][Rc("0x28")]("isEnabled"),c.actionView[Rc("0xe")]("isEnabled").to(o,Rc("0x39")),c.arrowView[Rc("0xe")]("isEnabled")[Rc("0x2e")](a,"isEnabled",((...t)=>t[Rc("0x21")]((t=>t)))),n.on("execute",(t=>{this[Rc("0x30")][Rc("0x6")](t[Rc("0x68")][Rc("0x2")]),this[Rc("0x30")][Rc("0x41")][Rc("0x43")][Rc("0x55")]()})),n}[Rc("0x1b")](t){const e=this[Rc("0x30")],n=e[Rc("0x23")],o=e[Rc("0x15")][Rc("0x29")](Rc("0x5e")),s=e[Rc("0x15")][Rc("0x29")](Rc("0x49")),i=e[Rc("0x15")][Rc("0x29")](Rc("0x36")),x=e[Rc("0x15")][Rc("0x29")](r.Users).me,a=n[Rc("0x29")](Rc("0x3c"))[Rc("0x7")],{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x15")].get(Rc("0x5d"));let d,u;this[Rc("0x46")][Rc("0x66")](t.id)?(u=this._annotationViews[Rc("0x29")](t.id),d=u[Rc("0x37")]):(d=new a(e[Rc("0x2f")],t,x,{disableComments:this[Rc("0x13")],editorConfig:n[Rc("0x29")](Rc("0x52")),maxCommentsWhenCollapsed:n[Rc("0x29")](Rc("0x48")),maxThreadTotalWeight:n[Rc("0x29")](Rc("0x47")),maxCommentCharsWhenCollapsed:n[Rc("0x29")](Rc("0x3a")),formatDateTime:(0,r.getDateTimeFormatter)(n[Rc("0x29")](Rc("0x2f"))),CommentView:n[Rc("0x29")](Rc("0x26"))[Rc("0x4d")],CommentsListView:c,CommentThreadInputView:l}),d[Rc("0x14")].on("execute",(()=>{e[Rc("0x41")][Rc("0x43")][Rc("0x55")]()})),d[Rc("0x16")].on(Rc("0x6"),(()=>{e[Rc("0x41")].view[Rc("0x55")]()})),u=o[Rc("0xa")](this[Rc("0x30")].locale,d),u[Rc("0xe")]("isDirty").to(d,Rc("0x5c")),u[Rc("0xe")](Rc("0x59")).to(d),u.bind(Rc("0x18")).to(d,Rc("0x18"),(t=>Rc("0x1e")+t)),this[Rc("0x46")][Rc("0x0")](t.id,u));const g=s[Rc("0x24")](t[Rc("0x4a")],d),m=new dc(e,t,d,g),f=t[Rc("0x6e")]()[Rc("0x1c")]((t=>t[Rc("0x31")]));d[Rc("0x1f")]=e.plugins[Rc("0x29")]("TrackChangesEditing")._descriptionFactory[Rc("0x3e")](f),this[Rc("0x20")][Rc("0x0")](t,m),this[Rc("0x6c")][Rc("0x0")](d,m);const h=o[Rc("0x34")]({view:u,target:()=>{const n=[],o=t[Rc("0x6e")]()[Rc("0x1c")]((t=>t[Rc("0x31")]));for(const t of o)n[Rc("0x8")](...t[Rc("0x3")]());return(0,r.getAllMarkersDomElementsSorted)(e[Rc("0x41")],n)},type:()=>Rc("0x1e")+m[Rc("0x43")][Rc("0x18")]});s[Rc("0x5")](d,h),o.add(h),i.registerAnnotation(h)}[Rc("0x10")](t){const e=this[Rc("0x30")][Rc("0x15")][Rc("0x29")](Rc("0x49")),n=this.editor[Rc("0x15")].get(Rc("0x5e")),o=this[Rc("0x20")].get(t),s=o[Rc("0x43")],r=n[Rc("0x17")](s);e[Rc("0x33")](s),r&&n.remove(r),this._suggestionToController.delete(t),this[Rc("0x6c")][Rc("0x56")](s),o[Rc("0x4")]()}[Rc("0x53")](t){if(!t[Rc("0x31")]||!this[Rc("0x20")].has(t))return;const e=this.editor[Rc("0x15")][Rc("0x29")](Rc("0x22")),n=this[Rc("0x20")][Rc("0x29")](t),o=t[Rc("0x6e")]();n[Rc("0x43")][Rc("0x1f")]=e[Rc("0x1d")].getDescriptions(o)}destroy(){for(const t of this[Rc("0x20")][Rc("0x5b")]())this[Rc("0x10")](t);for(const t of this[Rc("0x46")][Rc("0x51")]())t[Rc("0x37")][Rc("0x4")]();super[Rc("0x4")]()}}var Ic,Lc,Nc=["getSuggestion","pluginName","plugins","TrackChanges","addSuggestionData","adapter","getSuggestions","get","editor","requires","Comments"];Ic=Nc,Lc=354,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("0x8")]}static get[Mc("0xa")](){return Mc("0x1")}set[Mc("0x3")](t){this[Mc("0x6")].plugins.get($a)[Mc("0x3")]=t}get[Mc("0x3")](){return this[Mc("0x6")].plugins[Mc("0x5")]($a)[Mc("0x3")]}addSuggestion(t){return this[Mc("0x6")].plugins[Mc("0x5")]($a)[Mc("0x2")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Mc("0x6")][Mc("0x0")][Mc("0x5")]($a)[Mc("0x4")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this.editor.plugins.get($a)[Mc("0x9")](t)}}const Oc=["getDataWithDiscardedSuggestions","config","document","_adapter","Users","requires","map","model","acceptAllSuggestions","plugins","Pagination","trackChangesData.editorCreator","div","rootsAttributes","get","getRootNames","TrackChangesEditing","init","function","reduce","define","trackChangesData","TrackChangesDataGetter","data","destroy","CommentsRepository","track-changes-data-invalid-editor-creator","result","getSuggestions","TrackChangesData","addSuggestionData","constructor","users","set","pluginName","name","editor","getDataWithAcceptedSuggestions","editorCreator","addUser","getRootsAttributes","createDocumentFragment"];var Fc,Pc;Fc=Oc,Pc=283,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=[Dc("0x15")];class jc extends t.Plugin{static get[Dc("0x10")](){return[$a]}static get[Dc("0x3")](){return Dc("0x28")}[Dc("0x1c")](){const t=this[Dc("0x5")];if(t.config[Dc("0x1f")](Dc("0x16"),(e=>{const n=t[Dc("0x12")][Dc("0xd")][Dc("0x1a")]()[Dc("0x1e")](((t,e)=>(t[e]="",t)),{});return t[Dc("0x0")].create(n,e)})),Dc("0x1d")!=typeof t[Dc("0xc")].get(Dc("0x20"))[Dc("0x7")])throw new e.CKEditorError(Dc("0x25"))}[Dc("0x6")](t){return Hc(this.editor,!0,t)}[Dc("0xb")](t){return Hc(this.editor,!1,t)}}class Uc extends t.Plugin{static get[Dc("0x3")](){return Dc("0x21")}constructor(t){super(t),this[Dc("0x26")]="end"}init(){this[Dc("0x5")][Dc("0x14")][Dc("0x19")](Dc("0x24"))._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.editor[Dc("0x14")][Dc("0x19")](Dc("0x1b"))[Dc("0xe")]=null}}function Gc(t){return void 0!==t.getRootsAttributes}async function Hc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Bc);o[Dc("0x14")].push($a,Uc),o[Dc("0x18")]=Gc(t)?t[Dc("0x9")]():void 0;const s=document[Dc("0xa")](),i=t[Dc("0xc")][Dc("0x19")]("trackChangesData")[Dc("0x7")],x=await i(o,(()=>function(t){const e=document.createElement(Dc("0x17"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Dc("0x12")][Dc("0xd")][Dc("0x1a")]()[Dc("0x1e")](((e,n)=>(e[n]=t[Dc("0x22")][Dc("0x19")]({rootName:n}),e)),{}),o=t[Dc("0x14")][Dc("0x19")](Dc("0xf"))[Dc("0x1")][Dc("0x11")]((t=>({id:t.id,name:t[Dc("0x4")]}))),s=t[Dc("0x14")][Dc("0x19")]("TrackChangesEditing")[Dc("0x27")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Dc("0x19")](Dc("0xf")),i=e[Dc("0x14")][Dc("0x19")](Dc("0x1b"));for(const t of o)r.getUser(t.id)||r[Dc("0x8")](t);r.me||r.useAnonymousUser();for(const t of s)i[Dc("0x29")](t);e[Dc("0x22")][Dc("0x2")](n)}(t,x),x.execute(e?Dc("0x13"):"discardAllSuggestions");const a=Gc(x)?x.getFullData(n):x.data[Dc("0x19")](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 i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>hc,TrackChanges:()=>Mc,TrackChangesData:()=>jc,TrackChangesEditing:()=>$a});var t=n(704),e=n(209),s=n(273),i=n(417),r=n(492),x=n(995);const a=["_disableUnsupportedCommands","affectsData","value","TrackChangesCommand","forceDisabled","_enabledCommands","refresh","execute","editor","clearForceDisabled","commands","_enableCommands","isEnabled","has"];var c,l;c=a,l=280,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("0x2")]=!1,this[d("0x6")](),this._isEnabledBasedOnSelection=!1}[d("0x6")](){this[d("0xc")]=!0}[d("0x7")](){this[d("0x2")]=!this[d("0x2")],this[d("0x2")]?this[d("0x0")]():this[d("0xb")]()}[d("0x0")](){for(const t of this[d("0x8")][d("0xa")][d("0xa")]())t.affectsData&&!this[d("0x5")].has(t)&&t[d("0x4")](d("0x3"))}[d("0xb")](){for(const t of this[d("0x8")][d("0xa")][d("0xa")]())t[d("0x1")]&&!this[d("0x5")][d("0xd")](t)&&t[d("0x9")](d("0x3"))}}const g=["isEnabled","plugins","TrackChangesEditing","_suggestions","acceptSuggestion","get","canEditAt","refresh","getRanges","track-changes-accept-suggestion-not-found","model","_isEnabledBasedOnSelection"];var m,f;m=g,f=392,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("0xb")](),this[h("0x3")]=!1}refresh(){this[h("0x4")]=!0}execute(t){const n=this[h("0x7")].get(t);if(!n)throw new e.CKEditorError(h("0x1"),this);const o=n[h("0x0")]();this.editor[h("0x2")][h("0xa")](o)&&this.editor[h("0x5")][h("0x9")](h("0x6"))[h("0x8")](n)}}const b=["_isEnabledBasedOnSelection","model","editor","TrackChangesEditing","get","canEditAt","discardSuggestion","_suggestions","plugins","getRanges","refresh"];var E,_;E=b,_=372,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.refresh(),this[T("0x2")]=!1}[T("0x1")](){this.isEnabled=!0}execute(t){const n=this[T("0x9")].get(t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x0")]();this[T("0x4")][T("0x3")][T("0x7")](o)&&this[T("0x4")][T("0xa")][T("0x6")](T("0x5"))[T("0x8")](n)}}const y=["type","from","createPositionAt","start","map","change","end","value","length","color","sort","isTouching","join","deletion","schema","content","getRanges","isMultiRange","isObject","add"," [color ","isIntersecting","isInContent","createPositionAfter","isCollapsed","replace","createRange","push","execute","createPositionBefore"];var k,A;k=y,A=274,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x6")](((t,e)=>v("0x9")==t.type&&v("0x9")!=e[v("0x1a")]?-1:"deletion"!=t.type&&v("0x9")==e[v("0x1a")]?1:0))}function S(t,e){let n,o=0;const s=[],i=e[v("0xa")];for(;o<t.length;){const r=t[o],x=t[o+1];n||(n=e[v("0x19")](r)),I(e,r,x)||(s[v("0x17")](e[v("0x16")](n,i[v("0xe")](r)?e[v("0x13")](r):e[v("0x1c")](r,v("0x2")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x13")](e),s=t[v("0x19")](n);return o[v("0x7")](s)}function L(t,e,n){for(;n[v("0x4")];){const o=n.splice(0,100);t[v("0x1")]((()=>{for(const t of o)t[v("0x12")]&&e[v("0x18")](t.id)}))}}const N=["values","editor","isInContent","refresh","from","_isEnabledBasedOnSelection","isEnabled","model","_command","canEditAt","some","_suggestions"];var w,M;w=N,M=462,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x2")]=e,this._suggestions=n,this[O("0x9")](),this[O("0xb")]=!1}[O("0x9")](){const t=Array[O("0xa")](this[O("0x5")][O("0x6")]())[O("0x4")]((t=>t[O("0x8")]));this[O("0x0")]=this[O("0x2")][O("0x0")]&&t}execute(){const t=R(Array[O("0xa")](this[O("0x5")][O("0x6")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x7")][O("0x1")][O("0x3")](t))return}L(this[O("0x7")][O("0x1")],this[O("0x2")],t)}}const P=["editor","_suggestions","getRanges","from","document","isEnabled","canEditAt","model","_isEnabledBasedOnSelection","refresh","size","_selectedSuggestions","selection","_command","values"];var D,B;D=P,B=200,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._suggestions=n,this[j("0x6")]=new Set,this[j("0x4")](),this[j("0x3")]=!1}refresh(){const t=this[j("0xa")][j("0x2")][j("0xe")][j("0x7")],e=Array[j("0xd")](this[j("0xb")][j("0x9")]());this[j("0x6")]=function(t,e){const n=Array[v("0x1b")](t[v("0xc")]()),o=new Set;for(const s of e)if(s[v("0x12")])for(const e of n)for(const n of s[v("0xc")]())(e[v("0x11")](n)||t[v("0x14")]&&!s[v("0xd")]&&s.next&&n[v("0x2")][v("0x7")](e[v("0x1d")]))&&o[v("0xf")](s);return o}(t,e),this[j("0x0")]=this._command[j("0x0")]&&!!this._selectedSuggestions[j("0x5")]}execute(){const t=R(Array[j("0xd")](this[j("0x6")]));for(const e of t){const t=e[j("0xc")]();if(!this[j("0xa")][j("0x2")][j("0x1")](t))return}L(this[j("0xa")][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 W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const V=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const q=function(t){return W(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=W(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 Q=$;const J=function(){this.__data__=new Q,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 it=Object.prototype,rt=it.hasOwnProperty,xt=it.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=rt.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||Q),string:new Gt}};const Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Qt=$t;const Jt=function(t,e){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new Q(t);this.size=e.size}Zt.prototype.clear=J,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Jt;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 ie=function(t,e,n,o){var s=!n;n||(n={});for(var i=-1,r=e.length;++i<r;){var x=e[i],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 re=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),i=!n&&!o&&!s&&Le(t),r=n||o||s||i,x=r?re(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||r&&("length"==c||s&&("offset"==c||"parent"==c)||i&&("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&&ie(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 We=Object.prototype.hasOwnProperty;const ze=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):ze(t)};const Ke=function(t,e){return t&&ie(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,Qe=$e?$e.allocUnsafe:void 0;const Je=function(t,e){if(e)return t.slice();var n=t.length,o=Qe?Qe(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,i=[];++n<o;){var r=t[n];e(r,n,t)&&(i[s++]=r)}return i};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return ie(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 ie(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 Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Qn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Yn={};Yn[Qn]=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[Jn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,i,r){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=i?o(e,s,i,r):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==Jn||"[object GeneratorFunction]"==u;if(be(e))return Je(e,a);if(u==Zn||u==Qn||g&&!i){if(x=c||g?{}:Wn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return i?e:{};x=Un(e,u,a)}}r||(r=new Yt);var m=r.get(e);if(m)return m;r.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,r))})):Kn(e)&&e.forEach((function(s,i){x.set(i,t(s,n,o,i,e,r))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,i){f&&(s=e[i=s]),se(x,i,t(s,n,o,i,e,r))})),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 io=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 ro(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],i=n.cache;if(i.has(s))return i.get(s);var r=t.apply(this,o);return n.cache=i.set(s,r)||i,r};return n.cache=new(ro.Cache||Qt),n}ro.Cache=Qt;const xo=ro;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:io(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,i=(e=po(e,t)).length,r=i-1,x=t;null!=x&&++s<i;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=r){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 Qt;++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,i){var r=1&n,x=t.length,a=e.length;if(x!=a&&!(r&&a>x))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(i.set(t,e),i.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=r?o(f,m,d,e,t,i):o(m,f,d,t,e,i);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,i)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,i)){u=!1;break}}return i.delete(t),i.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,i,r){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new 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=r.get(t);if(c)return c==e;o|=2,r.set(t,e);var l=Ro(x(t),x(e),o,s,i,r);return r.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,i){var r=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!r)return!1;for(var c=a;c--;){var l=x[c];if(!(r?l in e:Mo.call(e,l)))return!1}var d=i.get(t),u=i.get(e);if(d&&u)return d==e&&u==t;var g=!0;i.set(t,e),i.set(e,t);for(var m=r;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=r?o(h,f,l,e,t,i):o(f,h,l,t,e,i);if(!(void 0===p?f===h||s(f,h,n,o,i):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 i.delete(t),i.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,i){var r=ge(t),x=ge(e),a=r?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;r=!0,l=!1}if(u&&!l)return i||(i=new Yt),r||Le(t)?Ro(t,e,n,o,s,i):wo(t,e,a,n,o,s,i);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 i||(i=new Yt),s(f,h,n,o,i)}}return!!u&&(i||(i=new Yt),Oo(t,e,n,o,s,i))};const Uo=function t(e,n,o,s,i){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,i))};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 Wo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,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 i=Array(s);++o<s;)i[o]=t[o+e];return i};const Vo=function(t,e){return e.length<2?t:Wo(t,zo(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=["creator","decorate","getRanges","_model","getRange","suggestion:","getFirstRange","_onAccept","start","clear","_onAttributesChange","type","removeAttribute","isIntersectingWithRange","substr","setAttribute","next","_saved","addMarkerName","filter","head","_markerNames","isIntersecting","get","set","data","onDiscard","onAttributesChange","getItems","change","removeMarker","getFirstMarker","_isDataLoaded","_onDiscard","addMarker","previous","split","getContainedElement","markers","push","length","author","getMarkers","subType","@external","getMarkerNames","commentThread","addRange","nodeBefore","from","reduce","toJSON","attributes","nodeAfter","authoredAt","isExternal","discard","delete","map","getAllAdjacentSuggestions","removeMarkers","isMultiRange"];var $o,Qo;$o=Xo,Qo=247,function(t){for(;--t;)$o.push($o.shift())}(++Qo);const Jo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Jo("0x21")]=!1,this.id=e.id,this[Jo("0xc")]=e.type,this[Jo("0x2c")]=e.subType||null,this[Jo("0x2a")]=e[Jo("0x2a")],this[Jo("0x1")]=e[Jo("0x1")]||e[Jo("0x2a")],this[Jo("0x38")]=Boolean(e[Jo("0x35")]&&e[Jo("0x35")][Jo("0x2d")]),this[Jo("0x1a")]=null,this._model=t,this[Jo("0x8")]=e.onAccept,this[Jo("0x22")]=e[Jo("0x1b")],this._onAttributesChange=e[Jo("0x1c")],this[Jo("0x16")]=new Set,this.createdAt=null,this[Jo("0x19")](Jo("0x37"),null),this[Jo("0x19")](Jo("0x35"),e[Jo("0x35")]||{}),this[Jo("0x19")](Jo("0x24"),null),this[Jo("0x19")](Jo("0x11"),null),this.set("commentThread",null),this[Jo("0x19")](Jo("0x12"),!1),this[Jo("0x2")]("accept"),this[Jo("0x2")](Jo("0x39"))}get[Jo("0x15")](){let t=this;for(;t[Jo("0x24")];)t=t[Jo("0x24")];return t}get hasComments(){return!!this[Jo("0x2f")]&&this[Jo("0x2f")][Jo("0x29")]>0}get[Jo("0x0")](){return 0!=this._markerNames.size&&6==Array[Jo("0x32")](this._markerNames)[0][Jo("0x25")](":").length}get isInContent(){return null!==this[Jo("0x20")]()}[Jo("0x13")](t){this[Jo("0x16")].add(t)}[Jo("0x2e")](){return Array[Jo("0x32")](this._markerNames)}[Jo("0x2b")](){return this[Jo("0x2e")]()[Jo("0x3b")]((t=>this[Jo("0x4")][Jo("0x27")][Jo("0x18")](t)))[Jo("0x14")]((t=>t))}[Jo("0x20")](){return this[Jo("0x2b")]()[0]||null}[Jo("0x3d")](){this[Jo("0x4")][Jo("0x1e")]((t=>{for(const e of this[Jo("0x2b")]())t[Jo("0x1f")](e)})),this[Jo("0x16")][Jo("0xa")]()}[Jo("0x1f")](t){this[Jo("0x4")][Jo("0x1e")]((e=>{e[Jo("0x1f")](t)})),this[Jo("0x16")][Jo("0x3a")](t)}[Jo("0x30")](t){const e=Jo("0x6")+this.type+":"+this[Jo("0x2c")]+":"+this.id+":"+this[Jo("0x1")].id+":"+Zo.getMultiRangeId();this[Jo("0x13")](e),this[Jo("0x4")].change((n=>{n[Jo("0x23")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Jo("0xe")](t){for(const e of this[Jo("0x3")]())if(e[Jo("0x17")](t))return!0;return!1}[Jo("0x3")](){return this[Jo("0x2b")]().map((t=>t[Jo("0x5")]()))}[Jo("0x1d")](){return this[Jo("0x3")]()[Jo("0x33")](((t,e)=>[...t,...e[Jo("0x1d")]()]),[])}[Jo("0x7")](){var t;return(null===(t=this[Jo("0x20")]())||void 0===t?void 0:t[Jo("0x5")]())||null}[Jo("0x26")](){const t=this.getRanges();if(1!=t[Jo("0x29")])return null;const e=t[0],n=e[Jo("0x9")][Jo("0x36")],o=e.end[Jo("0x31")];return n instanceof r.Element?n!=o?null:n:null}accept(){this[Jo("0x8")](this[Jo("0x3")](),this[Jo("0x1a")],this.attributes),this[Jo("0x3d")]()}[Jo("0x39")](){this._onDiscard(this.getRanges(),this[Jo("0x1a")],this.attributes),this[Jo("0x3d")]()}[Jo("0x3c")](){const t=[];let e=this[Jo("0x15")];for(;e;)t[Jo("0x28")](e),e=e[Jo("0x11")];return t}[Jo("0x10")](t,e){const n=eo(this[Jo("0x35")]);_o(n,t,e),Go(n,this[Jo("0x35")])||(this[Jo("0x35")]=n,this._onAttributesChange(n))}[Jo("0xd")](t){const e=eo(this[Jo("0x35")]);qo(e,t),Go(e,this[Jo("0x35")])||(this[Jo("0x35")]=e,this[Jo("0xb")](this[Jo("0x35")]))}[Jo("0x34")](){return{id:this.id,type:this[Jo("0x2c")]?this.type+":"+this[Jo("0x2c")]:this.type,authorId:this.creator.id,createdAt:this.createdAt,hasComments:this.hasComments,data:this[Jo("0x1a")],attributes:this[Jo("0x35")]}}static getMultiRangeId(){return(0,e.uid)()[Jo("0xf")](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=["Container","add","elementStart","addContainer","ELEMENT_SPACE","matchingCallback","push","*Insert:* %0","addObject","$text","checkChild","pop","get","registerElementLabel","insertion","EmptyContainer","match","label","_resolveDescriptionItems","item","quantity","indexOf","remove","length","deletion","isInContent","text","previousSibling","_locale","*Split:* %0","set","registerDescriptionCallback","*Merge:* %0","element","isEmpty","type","addEmptyContainer","elementEnd","softBreak","nextSibling","Object","skip","data","_customCallbacks","function","getItemLabel","end","getDescriptions","removeObject","getFirstRange","getWalker","_itemLabels","isEqual","normal","name","isObject","*Remove:* %0","_schema","replace"];var es,ns;es=ts,ns=317,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("0x1d")]=new Map,this._itemLabelsCallbacks=[],this[os("0x23")]=t,this[os("0x6")]=e}[os("0x19")](t){const e=[];for(let n=0;n<t[os("0x1")];n++){const o=t[n];if(!o[os("0x3")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){"type"in n&&e.push(n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x18")][os("0x1e")](s[os("0x1b")]().start)){const t=e[e[os("0x1")]-1],n="insertion"==o.type?"add":os("0x0");t&&os("0x4")==t[os("0xd")]&&(t[n]+="\n")}}}return this[os("0x37")](e)}[os("0x9")](t){this[os("0x15")].push(t)}[os("0x32")](t,n,o=e.priorities[os("0x1f")]){os("0x16")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0x1d")][os("0x8")](t,n)}[os("0x17")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x2a")](t)){n=e[os("0x36")];break}return n||(n=this._itemLabels[os("0x31")](t[os("0x20")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x20")]}_addDescriptionItems(t,e){const n=e[os("0x1b")]()[os("0x1c")](),o="insertion"==e[os("0xd")]?"add":os("0x0");for(const e of n){const s=e[os("0x38")],i=t[t[os("0x1")]-1];if(s.is("$textProxy"))i&&i[os("0xd")][os("0x3a")]("Container")>-1&&t[os("0x30")](),i&&os("0x4")==i[os("0xd")]?i[o]+=s[os("0x14")]:t[os("0x2b")]({type:os("0x4"),add:os("0x26")==o?s.data:"",remove:os("0x0")==o?s[os("0x14")]:""});else if(this[os("0x23")][os("0x21")](s)){const r=s;if(i&&i[os("0xd")][os("0x3a")]("Container")>-1&&t.pop(),os("0xf")==e[os("0xd")])continue;i&&i[os("0xd")]==o+os("0x12")&&i[os("0xb")][os("0x20")]==r[os("0x20")]?i[os("0x39")]++:t[os("0x2b")]({type:o+os("0x12"),element:r,quantity:1}),n[os("0x13")]((t=>!("elementEnd"==t[os("0xd")]&&t[os("0x38")]==s)))}else if(this[os("0x23")][os("0x2f")](s,os("0x2e"))||s.is(os("0xb"),os("0x10"))){const n=s;if(os("0x26")==o&&os("0x27")==e[os("0xd")]||os("0x0")==o&&"elementEnd"==e.type)continue;if(i&&-1==i[os("0xd")][os("0x3a")](os("0x25"))){os("0x4")==i[os("0xd")]&&(i[o]+="\n");continue}let r;if(r=os("0x26")==o?n[os("0x11")]&&!this[os("0x23")][os("0x21")](n.nextSibling)?n[os("0x11")]:null:n[os("0x5")]&&!this[os("0x23")].isObject(n.previousSibling)?n.previousSibling:null,n[os("0xc")]||r&&r[os("0xc")]){const e=r&&r.isEmpty?r:n;i&&i[os("0xd")]==o+os("0x34")&&i[os("0xb")][os("0x20")]==e[os("0x20")]?i[os("0x39")]++:t[os("0x2b")]({type:o+os("0x34"),element:e,quantity:1})}else t.push({type:o+os("0x25"),element:n})}}}[os("0x37")](t){const e=this._locale,n=[];for(const o of t){switch(o.type){case os("0x4"):if(o[os("0x26")]=o[os("0x26")].replace(/(\S)\u000A+(\S)/g,"$1 $2")[os("0x24")](/\u000A/g,""),o[os("0x0")]=o.remove[os("0x24")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x24")](/\u000A/g,""),""!=o[os("0x26")]&&""!=o[os("0x0")]){n[os("0x2b")]({type:os("0x24"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x0")]+'"','"'+o[os("0x26")]+'"'])});continue}if(null!=o[os("0x26")][os("0x35")](/^ +$/)){n.push({type:os("0x33"),content:Yo(e,os("0x2c"),Yo(e,os("0x29"),o[os("0x26")][os("0x1")]))});continue}if(null!=o[os("0x0")][os("0x35")](/^ +$/)){n.push({type:os("0x2"),content:Yo(e,os("0x22"),Yo(e,os("0x29"),o[os("0x0")][os("0x1")]))});continue}if(""!=o[os("0x26")]){n[os("0x2b")]({type:os("0x33"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x26")]+'"')});continue}n[os("0x2b")]({type:os("0x2"),content:Yo(e,"*Remove:* %0",'"'+o[os("0x0")]+'"')});continue;case os("0xe"):case os("0x2d"):n[os("0x2b")]({type:os("0x33"),content:Yo(e,"*Insert:* %0",this[os("0x17")](o[os("0xb")],o.quantity))});continue;case"removeEmptyContainer":case os("0x1a"):n[os("0x2b")]({type:os("0x2"),content:Yo(e,os("0x22"),this.getItemLabel(o[os("0xb")],o[os("0x39")]))});continue;case os("0x28"):n.push({type:os("0x33"),content:Yo(e,os("0x7"),this[os("0x17")](o.element,o[os("0x39")]))});continue;case"removeContainer":n[os("0x2b")]({type:os("0x2"),content:Yo(e,os("0xa"),this[os("0x17")](o[os("0xb")],o[os("0x39")]))});continue}n[os("0x2b")](o)}return n}}const is=["showAIAssistant","enableCommand","TrackChangesEditing","afterInit","get","editor","plugins","commands"];var rs,xs;rs=is,xs=201,function(t){for(;--t;)rs.push(rs.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{[as("0x2")](){const t=this[as("0x4")],e=t[as("0x5")][as("0x3")](as("0x1"));t[as("0x6")][as("0x3")](as("0x7"))&&e[as("0x0")](as("0x7"))}}const ls=["schema","commandParams","plugins","FORMAT_JUSTIFY_TEXT","locale","has","checkAttribute","format","contentLanguageDirection","model","document","FORMAT_ALIGN_TO_CENTER","get","right","afterInit","TrackChangesEditing","markBlockFormat","*Format:* %0","enableCommand","value","left","_descriptionFactory","commandName","alignment","registerDescriptionCallback","editor","getSelectedBlocks","FORMAT_ALIGN_TO_RIGHT","change","justify","from","selection"];var ds,us;ds=ls,us=289,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{[gs("0xd")](){const t=this[gs("0x18")],e=t[gs("0x3")];if(!t[gs("0x1")][gs("0x4")]("AlignmentEditing"))return;const n=t.plugins[gs("0xb")](gs("0xe"));n[gs("0x11")](gs("0x16"),((e,o={})=>{let s=o[gs("0x12")];o.value||(s="ltr"===t[gs("0x3")][gs("0x7")]?gs("0x13"):gs("0xc"));const i=Array[gs("0x1d")](this[gs("0x18")][gs("0x8")][gs("0x9")][gs("0x1e")][gs("0x19")]()).filter((t=>function(t,e,n){const o=t.getAttribute(gs("0x16"))||null;return e[gs("0x5")](t,gs("0x16"))&&n!=o}(t,this[gs("0x18")][gs("0x8")][gs("0x1f")],s)));t[gs("0x8")][gs("0x1b")]((()=>{for(const t of i)n[gs("0xf")](t,{commandName:gs("0x16"),commandParams:[{value:s}]})}))})),n[gs("0x14")][gs("0x17")]((t=>{const{data:n}=t;if(n&&gs("0x16")==n[gs("0x15")]){const t=n[gs("0x0")][0][gs("0x12")];return{type:gs("0x6"),content:Yo(e,gs("0x10"),function(t){switch(t){case"left":return Yo(e,"FORMAT_ALIGN_TO_LEFT");case gs("0xc"):return Yo(e,gs("0x1a"));case"center":return Yo(e,gs("0xa"));case gs("0x1c"):return Yo(e,gs("0x2"))}}(t))}}}))}}const fs=["element","addClass","name","createRangeOn","markerRange","TrackChangesEditing","getAttribute","span","elementEnd","getCustomProperty","start","get","mapper","toViewElement","activeMarkers","plugins","markerName","item","isLimit","listIndent","test","createUIElement","insert","ck-suggestion-marker--active","bindElementToMarker","getItems","previousPosition","addHighlight","isContent","ck-suggestion-marker-","isAtEnd","nextSibling","writer","push","schema","listItem"];var hs,ps;hs=fs,ps=278,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("0x23")]())s.hasAttribute(t)&&o[bs("0x7")](n[bs("0xd")](s));return o}function _s(t){const e=[];if(t.is(bs("0xa"),bs("0x9"))){let n=t.nextSibling;for(;n&&n.is("element",bs("0x9"))&&n[bs("0x10")](bs("0x1d"))>0;)e[bs("0x7")](n),n=n[bs("0x5")]}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t[bs("0x19")][bs("0x15")](bs("0xf"));return(s,i,r)=>{if(!r.consumable[bs("0x1e")](i[bs("0xe")],s[bs("0xc")]))return;const x=i[bs("0xe")].getWalker(),a=i[bs("0xe")][bs("0x14")],c=t.model[bs("0x8")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[bs("0x1b")];u=u||c[bs("0x2")](e);const n=r.mapper[bs("0x17")](e);if(n&&n[bs("0x13")](bs("0x1")))return;bs("0x12")==t.type&&c.isBlock(e)&&!c[bs("0x1c")](e)&&(e[bs("0x5")]||a[bs("0x4")]?l&&l.parent==e||(l=e,m(t[bs("0x0")]),g=!0):d=d||t.previousPosition)}function m(t){const s=r.writer[bs("0x1f")](bs("0x11"),{class:bs("0x3")+e}),x=r.mapper.toViewPosition(t);n&&o[bs("0x18")].includes(i[bs("0x1a")])&&r[bs("0x6")][bs("0xb")](bs("0x21"),s),r[bs("0x6")][bs("0x20")](x,s),r[bs("0x16")][bs("0x22")](s,i[bs("0x1a")])}u||g||!d||m(d)}}const Cs=["CodeEditing","isCollapsed","UnderlineEditing","format","BoldEditing","slice","FORMAT_BOLD","FORMAT_STRIKETHROUGH","forceValue","commands","StrikethroughEditing","SuperscriptEditing","value","getRanges","editor","underline","FORMAT_CODE","ItalicEditing","enableCommand","selection","bold","model","FORMAT_UNDERLINE","get","TrackChangesEditing","*Remove format:* %0","from","*Format:* %0","markInlineFormat","locale","FORMAT_SUBSCRIPT","plugins","commandParams"];var ys,ks;ys=Cs,ks=346,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x15"),As("0x1"),As("0x13"),As("0x11"),As("0x1b"),"SubscriptEditing",As("0x1c")];class Rs extends t.Plugin{afterInit(){const t=this[As("0x1f")],e=t[As("0x5")],n=t[As("0xf")][As("0x7")](As("0x8")),o=t[As("0xd")];for(const o of vs){if(!t[As("0xf")].has(o))continue;const s=o[As("0x16")](0,-7).toLowerCase(),i=t[As("0x1a")].get(s);n[As("0x2")](s,((t,o={})=>{const r=e.document[As("0x3")];if(r[As("0x12")])return void t(o);const x=void 0!==o[As("0x19")]?o[As("0x19")]:!i[As("0x1d")];e.change((()=>{const t=Array[As("0xa")](r[As("0x1e")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0xc")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory.registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[As("0x10")][0][As("0x19")]?{type:"format",content:Yo(o,As("0xb"),e)}:{type:As("0x14"),content:Yo(o,As("0x9"),e)}}))}s(As("0x4"),Yo(o,As("0x17"))),s("italic",Yo(o,"FORMAT_ITALIC")),s(As("0x20"),Yo(o,As("0x6"))),s("code",Yo(o,As("0x0"))),s("strikethrough",Yo(o,As("0x18"))),s("subscript",Yo(o,As("0xe"))),s("superscript",Yo(o,"FORMAT_SUPERSCRIPT"))}}const Ss=["_descriptionFactory","registerDescriptionCallback","name","document","plugins","blockQuote","getSelectedBlocks","change","ELEMENT_BLOCK_QUOTE","*Remove format:* %0","BlockQuoteEditing","locale","commandName","enableCommand","get","checkChild","markBlockFormat","*Format:* %0","model","parent","format","afterInit","commandParams","value","filter","editor","has","schema","forceValue","from"];var Is,Ls;Is=Ss,Ls=136,function(t){for(;--t;)Is.push(Is.shift())}(++Ls);const Ns=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ns("0x5")](){const t=this[Ns("0x9")],e=t[Ns("0x19")];if(!t[Ns("0x12")][Ns("0xa")](Ns("0x18")))return;const n=t[Ns("0x12")][Ns("0x1c")]("TrackChangesEditing"),o=this.editor.commands[Ns("0x1c")](Ns("0x13"));n[Ns("0x1b")]("blockQuote",((e,s={})=>{const i=this[Ns("0x9")][Ns("0x2")][Ns("0x11")].selection,r=s&&void 0!==s[Ns("0xc")]?s[Ns("0xc")]:!o[Ns("0x7")];let x=[];if(r){const e=Array[Ns("0xd")](i[Ns("0x14")]())[Ns("0x8")]((t=>Ms(t)||function(t,e){const n=e.checkChild(t[Ns("0x3")],Ns("0x13")),o=e[Ns("0x1d")](["$root","blockQuote"],t);return n&&o}(t,this[Ns("0x9")][Ns("0x2")][Ns("0xb")])));x=S(e,t[Ns("0x2")])}else{const e=Array[Ns("0xd")](i[Ns("0x14")]()).filter((t=>Ms(t)));x=S(e,t[Ns("0x2")])}t[Ns("0x2")][Ns("0x15")]((()=>{for(const t of x)n[Ns("0x0")](t,{commandName:Ns("0x13"),commandParams:[{forceValue:r}]})}))})),n[Ns("0xe")][Ns("0xf")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[Ns("0x1a")]){const t=Yo(e,Ns("0x16"));return n[Ns("0x6")][0][Ns("0xc")]?{type:Ns("0x4"),content:Yo(e,Ns("0x1"),t)}:{type:Ns("0x4"),content:Yo(e,Ns("0x17"),t)}}}))}}function Ms(t){return"blockQuote"==t[Ns("0x3")][Ns("0x10")]}const Os=["ckbox","plugins","get","TrackChangesEditing"];var Fs,Ps;Fs=Os,Ps=412,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{afterInit(){const t=this.editor;t.commands.get(Ds("0x0"))&&t[Ds("0x1")][Ds("0x2")](Ds("0x3")).enableCommand(Ds("0x0"))}}const js=["get","commandName","plugins","TrackChangesEditing","getSelectedBlocks","parent","model","*Remove format:* %0","codeBlock","markBlockFormat","change","checkChild","from","indentCodeBlock","formatBlock","_descriptionFactory","find","format","languages","forceValue","blockName","editor","afterInit","label","locale","commands","outdentCodeBlock","registerElementLabel","rootElement","document","config","ELEMENT_CODE_BLOCK","CodeBlock","language","registerDescriptionCallback","commandParams","enableCommand"];var Us,Gs;Us=js,Gs=130,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class Ws extends t.Plugin{[Hs("0x3")](){const t=this[Hs("0x2")];if(!t[Hs("0x14")].has(Hs("0xd")))return;const e=t[Hs("0x14")][Hs("0x12")](Hs("0x15")),n=t[Hs("0x5")],o=t[Hs("0xb")].get(Hs("0x1a"))[Hs("0x24")],s=t[Hs("0x6")].get(Hs("0x1a"));e[Hs("0x11")](Hs("0x1f")),e.enableCommand(Hs("0x7")),e[Hs("0x11")](Hs("0x1a"),((n,i={})=>{const r=t[Hs("0x18")],x=t.model[Hs("0xa")].selection,a=i&&void 0!==i.forceValue?i[Hs("0x0")]:!s.value;let c;i.language||(i[Hs("0xe")]=o[0][Hs("0xe")]),c=a?Array[Hs("0x1e")](x[Hs("0x16")]()).filter((t=>{return zs(t)||(e=t,n=r.schema,!e.is(Hs("0x9"))&&!n.isLimit(e)&&n[Hs("0x1d")](e[Hs("0x17")],Hs("0x1a")));var e,n})):Array[Hs("0x1e")](x[Hs("0x16")]()).filter((t=>zs(t)));const l=S(c,r);r[Hs("0x1c")]((()=>{for(const t of l)e[Hs("0x1b")](t,{commandName:Hs("0x1a"),commandParams:[{...i,forceValue:a}],formatGroupId:Hs("0x1")})}))})),e[Hs("0x21")][Hs("0x8")](Hs("0x1a"),(t=>Yo(n,Hs("0xc"),t))),e[Hs("0x21")][Hs("0xf")]((t=>{const e=n.t,{type:s,data:i}=t;if(Hs("0x20")==s&&i&&Hs("0x1a")==i[Hs("0x13")]){const t=i.commandParams[0].language,s=e(o[Hs("0x22")]((e=>e[Hs("0xe")]===t))[Hs("0x4")]);return i[Hs("0x10")][0][Hs("0x0")]?{type:"format",content:Yo(n,"*Format:* %0",Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Hs("0x23"),content:Yo(n,Hs("0x19"),Yo(n,Hs("0xc"),1))}}}))}}function zs(t){return Hs("0x1a")==t.name}const Vs=["editor","enableCommand","has","plugins","addCommentThread","get"];var Ks,qs;Ks=Vs,qs=379,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("0x5")];t[Xs("0x2")][Xs("0x1")]("CommentsEditing")&&t.plugins[Xs("0x4")]("TrackChangesEditing")[Xs("0x0")](Xs("0x3"))}}var Qs=n(181);const Js=["editor","setSelection","init","bind","deleteForward","commands","getFirstRange","enqueueChange","high","fromRange","buffer","delete","start","lock","showSuggestionHighlights","editing","TrackChangesEditing","requires","removeMarker:suggestion:deletion","isCollapsed","modifySelection","model","root","markerName","markerNameToElements","downcastDispatcher","unbindElementFromMarkerName","get","unlock","remove","writer","createRange","selection","mapper","detach","document","forward","createSelection","uiElement","unit","merge","enableCommand"];var Zs,Ys;Zs=Js,Ys=437,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const ti=function(t,e){return Js[t-=0]};class ei extends t.Plugin{static get[ti("0x0")](){return[Qs.Delete]}[ti("0x1b")](){const t=this[ti("0x19")],e=t.plugins[ti("0xa")](ti("0x29"));e[ti("0x18")](ti("0x24"));const n=t[ti("0x1e")][ti("0xa")](ti("0x1d"));e.enableCommand(ti("0x1d"),((e,o={})=>{const s=t[ti("0x4")][ti("0x14")](t[ti("0x4")][ti("0x12")][ti("0xf")]);s[ti("0x2")]&&t[ti("0x4")][ti("0x3")](s,{direction:ti("0x13"),unit:o[ti("0x16")]});const i=s[ti("0x1f")](),x=r.LiveRange[ti("0x22")](i);let a;e(o),a="$graveyard"==x[ti("0x5")].rootName?t[ti("0x4")][ti("0xe")](i[ti("0x25")]):t[ti("0x4")].createRange(x[ti("0x25")],x.end),x[ti("0x11")](),t.model[ti("0x20")](n.buffer.batch,(t=>{n[ti("0x23")][ti("0x26")](),t[ti("0x1a")](t[ti("0xe")](a.end)),n[ti("0x23")][ti("0xb")]()}))})),t[ti("0x28")][ti("0x8")].on("addMarker:suggestion:deletion",Ts(t,ti("0x17")),{priority:"high"}),t.data.downcastDispatcher.on("addMarker:suggestion:deletion",((e,n,o)=>{o.options[ti("0x27")]&&Ts(t,ti("0x17"),{showActiveMarker:!1})[ti("0x1c")](this)(e,n,o)}),{priority:ti("0x21")}),t[ti("0x28")][ti("0x8")].on(ti("0x1"),((t,e,n)=>{const o=n.mapper[ti("0x7")](e.markerName);if(o)for(const t of o)t.is(ti("0x15"))&&(n[ti("0x10")][ti("0x9")](t,e[ti("0x6")]),n[ti("0xd")][ti("0xc")](t))}),{priority:ti("0x21")})}}const ni=["enableCommand","ELEMENT_BULLETED_LIST","documentList","setSelection","registerCustomCallback","config","map","model","DocumentListEditing","findIndex","length","registerElementLabel","change","getFirstRange","bulletedList","commandParams","splitListItemBefore","ELEMENT_NUMBERED_LIST","start","editor","markMultiRangeBlockFormat","execute","containsItem","list.multiBlock","paragraph","_suggestionFactory","ELEMENT_","schema","before","markBlockFormat","listItemId","has","isObject","push","*Format:* insert into %0","expandListBlocksToCompleteList","TrackChangesEditing","_LIST","registerDescriptionCallback","nextSibling","afterInit","getRanges","splitListItemAfter","format","multipleBlocks","nodeAfter","forceValue","deletion","*Outdent:* %0","*Indent:* %0","after","end","_descriptionFactory","add","getAttribute","document","listType","refresh","commands","ELEMENT_LIST_ITEM","formatBlock","hasAttribute","selection","slice","indentList","value","*Format:* remove from %0","createPositionAt","get","previousSibling","mergeListItemForward","plugins","commandName","*Merge:* %0","numberedList","createRange","from","*Change to:* %0","getSelectedBlocks","outdentList"];var oi,si;oi=ni,si=308,function(t){for(;--t;)oi.push(oi.shift())}(++si);const ii=function(t,e){return ni[t-=0]};class ri extends t.Plugin{[ii("0x34")](){const t=this[ii("0x1f")];if(!t[ii("0x3")][ii("0x2b")](ii("0x14")))return;const e=t.locale,n=t[ii("0x3")][ii("0x0")](ii("0x30")),o=t.plugins[ii("0x0")]("DocumentListUtils");function s(e){return()=>{const s=t[ii("0x46")][ii("0x0")](e);if(s[ii("0x4d")]&&!t[ii("0x11")].get(ii("0x23")))return void t[ii("0x21")](ii("0x24"),{});let i=Array.from(t.model[ii("0x43")][ii("0x4a")][ii("0xa")]());if(a(e)){i=o[ii("0x2f")](i);const t=[];for(const e of i)o.isFirstBlockOfListItem(e)&&t[ii("0x2d")](e);i=t}t.model[ii("0x18")]((()=>{n[ii("0x20")](i,{commandName:e,commandParams:[{forceValue:!s[ii("0x4d")]}],formatGroupId:ii("0x44")},[],ii("0xe"))}))}}function i(e){return()=>{const o=function(t){let e=Array[ii("0x8")](t);const n=e[ii("0x15")]((t=>!t[ii("0x49")](ii("0x2a"))));return n>-1&&(e=e[ii("0x4b")](0,n)),e}(t[ii("0x13")][ii("0x43")].selection.getSelectedBlocks()),s=o[o[ii("0x16")]-1],i=t[ii("0x13")][ii("0x27")][ii("0x2c")](s)?ii("0x3e"):"end",r=t[ii("0x13")][ii("0x7")](t.model[ii("0x4f")](o[0],"before"),t[ii("0x13")].createPositionAt(s,i));t[ii("0x13")].change((()=>{n[ii("0x29")](r,{commandName:e,commandParams:[],formatGroupId:ii("0x44")},function(t){const e=new Set;for(const n of t){let t=n[ii("0x33")];for(;t&&t[ii("0x42")]("listIndent")>n[ii("0x42")]("listIndent");)e[ii("0x41")](t),t=t[ii("0x33")]}return Array[ii("0x8")](e)}(o))}))}}function x(e){return()=>{const o=t.model[ii("0x43")][ii("0x4a")].getSelectedBlocks().next()[ii("0x4d")],s=t[ii("0x13")].createPositionAt(o,ii("0x28")),i=t[ii("0x13")][ii("0x4f")](o,0),r=t.model[ii("0x7")](s,i);t[ii("0x13")][ii("0x18")]((()=>{n.markBlockFormat(r,{commandName:e,commandParams:[],formatGroupId:ii("0x44")})}))}}function a(e){const n=t[ii("0x46")][ii("0x0")](ii("0x1a"))[ii("0x4d")],o=t[ii("0x46")][ii("0x0")]("numberedList")[ii("0x4d")];return"numberedList"===e?n:o}n.enableCommand(ii("0x6"),s(ii("0x6"))),n[ii("0xc")](ii("0x1a"),s(ii("0x1a"))),n.enableCommand(ii("0x4c"),i(ii("0x4c"))),n[ii("0xc")](ii("0xb"),i(ii("0xb"))),n[ii("0xc")](ii("0x36"),x(ii("0x36"))),n[ii("0xc")](ii("0x1c"),x(ii("0x1c"))),n[ii("0x40")][ii("0x17")]((function(e){const n=!t[ii("0x13")][ii("0x27")][ii("0x2c")](e),o=e[ii("0x1")],s=e[ii("0x33")],i=e[ii("0x42")](ii("0x2a")),r=!o||o.getAttribute("listItemId")!==i,x=!s||s[ii("0x42")](ii("0x2a"))!==i;return n&&Boolean(i)&&r&&x}),(t=>Yo(e,ii("0x47"),t))),n[ii("0x40")][ii("0x32")]((function(n){const{data:o}=n;if(!o)return;let s,i,r,x;switch(o[ii("0x4")]){case"bulletedList":r=o[ii("0x1b")][0].forceValue,x=a(o[ii("0x4")]),s=ii(r?"0x2e":"0x4e"),!x&&t.config.get("list.multiBlock")||(s=ii("0x9")),i={type:ii("0x37"),content:Yo(e,s,Yo(e,ii("0xd")))};break;case ii("0x6"):r=o[ii("0x1b")][0][ii("0x3a")],x=a(o[ii("0x4")]),s=ii(r?"0x2e":"0x4e"),!x&&t[ii("0x11")][ii("0x0")](ii("0x23"))||(s=ii("0x9")),i={type:ii("0x37"),content:Yo(e,s,Yo(e,ii("0x1d")))};break;case ii("0x4c"):s=ii("0x3d"),i={type:ii("0x37"),content:Yo(e,s,Yo(e,"ELEMENT_LIST_ITEM"))};break;case ii("0xb"):s=function(t){const e=t[ii("0x19")]();let n=e[ii("0x1e")].nodeAfter;for(;n&&e[ii("0x22")](n);){if(n[ii("0x42")]("listIndent")>0)return!1;n=n.nextSibling}return!0}(n)?Yo(e,ii("0x4e"),Yo(e,function(t){const e=t[ii("0x19")]()[ii("0x1e")][ii("0x39")];return ii("0x26")+e.getAttribute(ii("0x44")).toUpperCase()+ii("0x31")}(n))):Yo(e,ii("0x3c"),Yo(e,ii("0x47"))),i={type:ii("0x37"),content:s};break;case"mergeListItemBackward":case ii("0x2"):!1===o[ii("0x38")]&&(s=ii("0x5"),i={type:ii("0x3b"),content:Yo(e,s,Yo(e,"ELEMENT_LIST_ITEM"))})}return i})),n[ii("0x25")][ii("0x10")](ii("0x48"),ii("0xe"),"accept",(function(e,n){const o=[];for(let n of e)n.start[ii("0x39")]===n[ii("0x3f")].parent&&(n=t.model[ii("0x7")](t.model.createPositionAt(n[ii("0x1e")][ii("0x39")],0))),o[ii("0x2d")](n);t[ii("0x13")][ii("0x18")]((e=>{const s=t[ii("0x13")][ii("0x43")][ii("0x4a")],i=Array.from(s[ii("0x35")]())[ii("0x12")]((t=>r.LiveRange.fromRange(t)));e[ii("0xf")](o),t[ii("0x46")][ii("0x0")](n[ii("0x4")])[ii("0x45")](),n[ii("0x1b")][ii("0x2d")]({forceDefaultExecution:!0}),t[ii("0x21")](n[ii("0x4")],...n[ii("0x1b")]),e.setSelection(i);for(const t of i)t.detach()}))}))}}var xi=n(331);const ai=["parent","options","selection","high","split","downcastDispatcher","showSuggestionHighlights","plugins","end","detach","init","fire","hasClass","data","setSelection","nextSibling","requires","model","unbindElementFromMarkerName","ck-suggestion-marker-split","afterExecute","bind","createRange","writer","remove","document","markerName","get","enterBlock","getFirstPosition","editing","mapper","change","editor","addMarker:suggestion:insertion"];var ci,li;ci=ai,li=219,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{static get[di("0x7")](){return[xi.Enter]}[di("0x1")](){const t=this[di("0x18")],e=t[di("0x21")][di("0x12")]("TrackChangesEditing"),n=t.commands.get("enter");e.enableCommand("enter",(()=>{t[di("0x8")][di("0x17")]((o=>{const s=t[di("0x8")][di("0x10")][di("0x1c")],i=s[di("0x14")](),x=r.LiveRange.fromRange(s.getFirstRange());if(n[di("0x13")](o)){const n=t[di("0x8")].createPositionAt(i[di("0x1a")][di("0x6")],0),s=o[di("0xd")](i,n);e.markInsertion(s)}else o[di("0x5")](o[di("0xd")](x[di("0x22")]));x[di("0x0")](),n[di("0x2")](di("0xb"),{writer:o})}))})),t[di("0x15")][di("0x1f")].on(di("0x19"),Ts(t,di("0x1e")),{priority:"high"}),t.editing.downcastDispatcher.on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n.mapper.markerNameToElements(e[di("0x11")]);if(o)for(const t of o)t[di("0x3")](di("0xa"))&&(n[di("0x16")][di("0x9")](t,e[di("0x11")]),n[di("0xe")][di("0xf")](t))}),{priority:di("0x1d")}),t[di("0x4")][di("0x1f")].on(di("0x19"),((e,n,o)=>{o[di("0x1b")][di("0x20")]&&Ts(t,"split",{showActiveMarker:!1})[di("0xc")](this)(e,n,o)}),{priority:di("0x1d")})}}const gi=["replace","find","createPositionAt","findByTextCallback","findNext","FindAndReplaceEditing","createRange","afterInit","TrackChangesEditing","_isInDeletionRange","model","plugins","string","getIntersection","findPrevious","get","editor","enableCommand","start","item","has","getRange","suggestion:deletion","handleFindCommand","filter","getMarkersGroup","replaceAll"];var mi,fi;mi=gi,fi=377,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0x8")](){if(!this[hi("0x11")].plugins[hi("0x15")](hi("0x6")))return;const t=this.editor.plugins[hi("0x10")](hi("0x9"));t[hi("0x12")](hi("0x2"),this[hi("0x18")].bind(this)),t.enableCommand(hi("0x5")),t[hi("0x12")](hi("0xf")),t.enableCommand(hi("0x1")),t[hi("0x12")](hi("0x0"))}[hi("0x18")](t,e,n={}){const o=this[hi("0x11")][hi("0xc")][hi("0x10")]("FindAndReplaceUtils");if(void 0!==n)return t((t=>(hi("0xd")==typeof e?o[hi("0x4")](e,n):e)(t)[hi("0x19")]((e=>!1===this[hi("0xa")](e,t[hi("0x14")])))),n)}[hi("0xa")](t,e){const n=this.editor[hi("0xb")][hi("0x7")](this[hi("0x11")].model[hi("0x3")](e,t[hi("0x13")]),this[hi("0x11")][hi("0xb")][hi("0x3")](e,t.end));for(const t of this.editor[hi("0xb")].markers[hi("0x1a")](hi("0x17")))if(null!==n[hi("0xe")](t[hi("0x16")]()))return!0;return!1}}const bi=["change","TrackChangesEditing","get","config","_descriptionFactory","fontFamily","fontBackgroundColor.colors","commandParams","FontSizeEditing","*Reset font size*","markInlineFormat","plugins","FontFamilyEditing","*Set font color:* %0","_enableCommand","*Set font size:* %0","fontSize.options","value","commandName","fontColor","from","enableCommand","selection","fontSize","trim","format","*Reset font color*","toLowerCase","editor","FontBackgroundColorEditing","fontColor.colors","model","fontBackgroundColor","registerDescriptionCallback","FontColorEditing","find","isCollapsed","FontSize","*Set font background color:* %0"];var Ei,_i;Ei=bi,_i=308,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]},Ci=[{pluginName:Ti("0xc"),commandName:"fontSize"},{pluginName:Ti("0x10"),commandName:Ti("0x9")},{pluginName:Ti("0x26"),commandName:Ti("0x17")},{pluginName:Ti("0x21"),commandName:Ti("0x24")}];class yi extends t.Plugin{afterInit(){const t=this.editor.locale;for(const{pluginName:t,commandName:e}of Ci)this[Ti("0x20")][Ti("0xf")].has(t)&&this[Ti("0x12")](e);this.editor[Ti("0xf")].get("TrackChangesEditing")[Ti("0x8")][Ti("0x25")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(Ti("0x1b")==o[Ti("0x16")]){const e=o[Ti("0xb")][0][Ti("0x15")];if(e){const o=n(this[Ti("0x20")][Ti("0xf")].get(Ti("0x2")).normalizeSizeOptions(this[Ti("0x20")][Ti("0x7")].get(Ti("0x14"))).find((t=>t[Ti("0x23")]==e)).title)[Ti("0x1f")]();return{type:Ti("0x1d"),content:Yo(t,Ti("0x13"),o)}}return{type:Ti("0x1d"),content:Yo(t,Ti("0xd"))}}if("fontFamily"==o[Ti("0x16")]){const e=o.commandParams[0][Ti("0x15")];return e?{type:Ti("0x1d"),content:Yo(t,"*Set font family:* %0",e)}:{type:"format",content:Yo(t,"*Reset font family*")}}if(Ti("0x17")==o[Ti("0x16")]){const e=o[Ti("0xb")][0][Ti("0x15")];if(e){const o=(0,s.normalizeColorOptions)(this[Ti("0x20")][Ti("0x7")][Ti("0x6")](Ti("0x22")))[Ti("0x0")]((t=>t[Ti("0x23")]==e));let i=e,r="";return o&&(i=o.label,r=n(i)[Ti("0x1f")]()),{type:Ti("0x1d"),content:Yo(t,Ti("0x11"),r)[Ti("0x1c")](),color:{value:e,title:r||i}}}return{type:Ti("0x1d"),content:Yo(t,Ti("0x1e"))}}if("fontBackgroundColor"==o[Ti("0x16")]){const e=o[Ti("0xb")][0][Ti("0x15")];if(e){const o=(0,s.normalizeColorOptions)(this[Ti("0x20")][Ti("0x7")][Ti("0x6")](Ti("0xa")))[Ti("0x0")]((t=>t[Ti("0x23")]==e));let i=e,r="";return o&&(i=o.label,r=n(i).toLowerCase()),{type:Ti("0x1d"),content:Yo(t,Ti("0x3"),r)[Ti("0x1c")](),color:{value:e,title:r||i}}}return{type:Ti("0x1d"),content:Yo(t,"*Reset font background color*")}}}}))}[Ti("0x12")](t){const e=this[Ti("0x20")];e.plugins[Ti("0x6")]("TrackChangesEditing")[Ti("0x19")](t,((n,o={})=>{const s=e.model.document[Ti("0x1a")],i=o.value;s[Ti("0x1")]?n(o):e[Ti("0x23")][Ti("0x4")]((()=>{const n=Array[Ti("0x18")](s.getRanges());for(const o of n){const n=i?[o]:Es(t,o,e.model);for(const o of n)e[Ti("0xf")][Ti("0x6")](Ti("0x5"))[Ti("0xe")](o,{commandName:t,commandParams:[{value:i}]})}}))}))}}const ki=["TrackChangesEditing","title","join","change","from","slice","forward","fontColor.colors","getSelectedBlocks","locale","getLastPosition","pasteFormat","_descriptionFactory","charAt","getRanges","fontSize","copyFormat","enableCommand","plugins","toUpperCase","*Set format to:* %0","afterInit","commands","createSelection","isBlock","FontSize","get","createRange","getFirstPosition","model","schema","boolean","entries","*Remove all formatting*","getAttributeProperties","config","fontBackgroundColor","toLowerCase","registerDescriptionCallback","format","length","label","word","keys","document","isFormatting","find","split","fontColor","normalizeSizeOptions","getAttributes","modifySelection","backward","selection","isCollapsed","getItems","editor"];var Ai,vi;Ai=ki,vi=405,function(t){for(;--t;)Ai.push(Ai.shift())}(++vi);const Ri=function(t,e){return ki[t-=0]};class Si extends t.Plugin{[Ri("0xf")](){const t=this[Ri("0x32")],n=t[Ri("0x17")],o=n[Ri("0x26")][Ri("0x2f")],s=t.plugins[Ri("0x14")](Ri("0x33")),i=t.locale,r=t[Ri("0x10")][Ri("0x14")](Ri("0xa")),x=t[Ri("0x10")].get(Ri("0x5"));r&&x&&(s[Ri("0xb")](Ri("0x5"),((t,i={})=>{const r=i;n[Ri("0x36")]((()=>{const t=Array[Ri("0x37")](o.getRanges()),i=o[Ri("0x30")]?[Ii(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Ri("0x2c")]()){const t=e[Ri("0x1c")](n);t&&t[Ri("0x27")]&&(yield n)}}(t,n));for(const e of t[Ri("0x8")]())for(const t of e[Ri("0x31")]())!n[Ri("0x12")](t)&&o(t)&&(yield t);for(const e of t[Ri("0x2")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Ri("0x18")]))||0!==Object[Ri("0x25")](r)[Ri("0x22")])for(const t of i)s.markInlineFormat(t,{commandName:Ri("0x5"),commandParams:[r]})}))})),s[Ri("0x6")][Ri("0x20")]((e=>{const{data:n}=e;if(n&&Ri("0x5")===n.commandName){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Ri("0x1a")](o))e.push(Li(t,n,s));return e.length?{type:Ri("0x21"),content:Yo(i,Ri("0xe"),e[Ri("0x35")](", "))}:{type:Ri("0x21"),content:Yo(i,Ri("0x1b"))}}})),t[Ri("0xc")].get(Ri("0x33"))[Ri("0xb")](Ri("0xa")))}}function Ii(t,e){const n=t[Ri("0x11")](e);t[Ri("0x2d")](n,{unit:Ri("0x24"),direction:Ri("0x2e")});const o=n[Ri("0x16")]();t[Ri("0x2d")](n,{unit:"word",direction:Ri("0x0")});const s=n[Ri("0x4")]();return t[Ri("0x15")](o,s)}function Li(t,e,n){const o=t[Ri("0x3")].t,i=e[Ri("0x29")](/(?=[A-Z])/)[Ri("0x35")](" "),r=o(i[Ri("0x7")](0)[Ri("0xd")]()+i[Ri("0x38")](1))[Ri("0x1f")]();if(Ri("0x19")==typeof n)return r;if(Ri("0x2a")===e||Ri("0x1e")===e){const e=(0,s.normalizeColorOptions)(t[Ri("0x1d")][Ri("0x14")](Ri("0x1")))[Ri("0x28")]((t=>t.model==n));return r+" ("+(e?o(e[Ri("0x23")])[Ri("0x1f")]():n)+")"}if(Ri("0x9")===e&&isNaN(parseFloat(n))){const e=t[Ri("0xc")][Ri("0x14")](Ri("0x13"))[Ri("0x2b")](t[Ri("0x1d")].get("fontSize.options"))[Ri("0x28")]((t=>t[Ri("0x17")]==n));return r+" ("+(e?o(e[Ri("0x34")])[Ri("0x1f")]():n)+")"}return r+" ("+n+")"}const Ni=["document","getSelectedBlocks","parent","registerElementLabel","format","paragraph","commandParams","match","heading","name","find","HeadingEditing","value","has","get","enableCommand","markBlockFormat","heading.options","filter","config","model","editor","checkChild","plugins","selection","blockName","ELEMENT_HEADING_CUSTOM","_descriptionFactory","formatBlock","title","isObject","locale"];var wi,Mi;wi=Ni,Mi=247,function(t){for(;--t;)wi.push(wi.shift())}(++Mi);const Oi=function(t,e){return Ni[t-=0]};class Fi extends t.Plugin{afterInit(){const t=this[Oi("0x1e")],e=t[Oi("0x8")],n=t[Oi("0x1c")].get(Oi("0x1a"));if(!t[Oi("0x0")][Oi("0x16")](Oi("0x14")))return;const o=t[Oi("0x0")][Oi("0x17")]("TrackChangesEditing");o[Oi("0x18")](Oi("0x11"),((e,n)=>{const s=n[Oi("0x15")],i=Array.from(this[Oi("0x1e")][Oi("0x1d")][Oi("0x9")][Oi("0x1")][Oi("0xa")]())[Oi("0x1b")]((t=>{return e=t,n=s,(o=this[Oi("0x1e")].model.schema)[Oi("0x1f")](e[Oi("0xb")],n)&&!o[Oi("0x7")](e)&&e[Oi("0x12")]!=n;var e,n,o}));t[Oi("0x1d")].change((()=>{for(const t of i)o[Oi("0x19")](t,{commandName:"heading",commandParams:[n],formatGroupId:Oi("0x2")},_s(t))}))}));for(const t of n)Oi("0xe")!=t[Oi("0x1d")]&&o[Oi("0x4")][Oi("0xc")](t[Oi("0x1d")],(e=>{const n=Pi(t[Oi("0x1d")]);return null!==n?s(e,n):i(e,t[Oi("0x6")])}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function i(t,n){return Yo(e,Oi("0x3"),[t,n])}o[Oi("0x4")].registerDescriptionCallback((t=>{const{type:o,data:r}=t;if(Oi("0x5")==o&&r&&Oi("0x11")==r.commandName){const t=r[Oi("0xf")][0][Oi("0x15")],o=Pi(t);if(null!==o)return{type:Oi("0xd"),content:Yo(e,"*Change to:* %0",s(1,o))};const x=n[Oi("0x13")]((e=>e[Oi("0x1d")]===t))[Oi("0x6")];return{type:Oi("0xd"),content:Yo(e,"*Change to:* %0",i(1,x))}}}))}}function Pi(t){const e=t[Oi("0x10")](/^heading(\d+)$/);return e?e[1]:null}const Di=["editor","push","item","hasAttribute","title","getAttribute","TrackChangesEditing","highlight","registerDescriptionCallback","getFirstPosition","backward","change","createRange","toLowerCase","find","plugins","formatInline","has","afterInit","model","enableCommand","commandName","HighlightEditing","format","selection","isCollapsed","getRanges","get","commandParams","_descriptionFactory","document","FORMAT_HIGHLIGHT","*Remove highlight*","markInlineFormat","value","color","locale"];var Bi,ji;Bi=Di,ji=314,function(t){for(;--t;)Bi.push(Bi.shift())}(++ji);const Ui=function(t,e){return Di[t-=0]};class Gi extends t.Plugin{[Ui("0x0")](){const t=this[Ui("0x13")];if(!t[Ui("0x22")][Ui("0x24")](Ui("0x4")))return;const e=t[Ui("0x22")][Ui("0x9")](Ui("0x19"));e[Ui("0x2")]("highlight",((n,o={})=>{const s=t[Ui("0x1")][Ui("0xc")][Ui("0x6")],i=s.getAttribute(Ui("0x1a"));let r=o[Ui("0x10")],x=[];if(s[Ui("0x7")]){const e=s[Ui("0x1c")]();if(!s[Ui("0x16")](Ui("0x1a")))return void n(o);{const n=t=>t[Ui("0x15")][Ui("0x18")](Ui("0x1a"))===i,o=e.getLastMatchingPosition(n,{direction:Ui("0x1d")}),s=e.getLastMatchingPosition(n);x=[t[Ui("0x1")][Ui("0x1f")](o,s)],r==i&&(r=null)}}else for(const e of s[Ui("0x8")]())r?x[Ui("0x14")](e):x[Ui("0x14")](...Es(Ui("0x1a"),e,t[Ui("0x1")]));t.model[Ui("0x1e")]((()=>{for(const t of x)e[Ui("0xf")](t,{commandName:Ui("0x1a"),commandParams:[{value:r}]})}))}));const n=t[Ui("0x12")];e[Ui("0xb")][Ui("0x1b")]((e=>{const{type:o,data:s}=e;if(Ui("0x23")==o&&s&&"highlight"==s[Ui("0x3")]){const e=n.t,o=s[Ui("0xa")][0][Ui("0x10")];if(o){const s=t.config[Ui("0x9")]("highlight.options")[Ui("0x21")]((t=>t[Ui("0x1")]==o)),i=e(s[Ui("0x17")])[Ui("0x20")]();return{type:Ui("0x5"),content:Yo(n,"*Set highlight:* %0",i),color:{value:s[Ui("0x11")],title:s.title}}}return{type:Ui("0x5"),content:Yo(n,Ui("0xe"),Yo(n,Ui("0xd")))}}}))}}const Hi=["conversion","horizontalLine","HorizontalLineEditing","locale","enableCommand","addClass","afterInit","get","ELEMENT_HORIZONTAL_LINE","registerElementLabel","plugins","_descriptionFactory","createPositionAt","createEmptyElement","TrackChangesEditing","editor","createContainerElement","dataDowncast","insert"];var Wi,zi;Wi=Hi,zi=149,function(t){for(;--t;)Wi.push(Wi.shift())}(++zi);const Vi=function(t,e){return Hi[t-=0]};class Ki extends t.Plugin{[Vi("0x9")](){const t=this[Vi("0x12")];if(!t[Vi("0xd")].has(Vi("0x5")))return;t[Vi("0xd")][Vi("0xa")]("TrackChangesEditing")[Vi("0x7")](Vi("0x4"));const e=t[Vi("0xd")][Vi("0xa")](Vi("0x11")),n=t[Vi("0x6")];e[Vi("0xe")][Vi("0xc")](Vi("0x4"),(t=>Yo(n,Vi("0xb"),t))),t[Vi("0x3")].for(Vi("0x1")).elementToStructure({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Vi("0x0")]("div"),s=e[Vi("0x10")]("hr");return e[Vi("0x8")]("ck-horizontal-line",o),e[Vi("0x2")](e[Vi("0xf")](o,0),s),o},converterPriority:"high"})}}const qi=["enableCommand","selection","HtmlEmbed","rawHtmlApi","editing","document","value","plugins","cancel","htmlEmbed","commandName","ELEMENT_HTML_EMBED","TrackChangesEditing","change","getSelectedElement","markBlockFormat","model","afterInit","rawHtml","registerDescriptionCallback","_descriptionFactory","*Change %0 content*","element","get","locale"];var Xi,$i;Xi=qi,$i=130,function(t){for(;--t;)Xi.push(Xi.shift())}(++$i);const Qi=function(t,e){return qi[t-=0]};class Ji extends t.Plugin{[Qi("0xc")](){const t=this.editor;if(!t[Qi("0x2")].has(Qi("0x16")))return;const e=t.plugins.get(Qi("0x7")),n=t[Qi("0x13")],o=t[Qi("0x18")].view.document[Qi("0x15")];e[Qi("0xf")].registerElementLabel(Qi("0xd"),(t=>Yo(n,Qi("0x6"),t))),t[Qi("0x2")][Qi("0x12")]("TrackChangesEditing")[Qi("0x14")](Qi("0x4"),((n,s)=>{const i=t[Qi("0xb")],r=i[Qi("0x0")][Qi("0x15")];i[Qi("0x8")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Qi("0x11"),Qi("0xd"))?t[Qi("0x9")]():null}(r);if(!t)return void n(null);const i=t.getAttribute(Qi("0x1"))||"";void 0!==s&&s!==i&&(e[Qi("0xa")](t,{commandName:Qi("0x4"),commandParams:[s]}),o[Qi("0x9")]().getCustomProperty(Qi("0x17"))[Qi("0x3")]())}))})),e[Qi("0xf")][Qi("0xe")]((t=>{const{data:e}=t;if(e&&Qi("0x4")==e[Qi("0x5")]){const t=Yo(n,Qi("0x6"));return{type:"format",content:Yo(n,Qi("0x10"),t)}}}))}}const Zi=["imageCaption","schema","toggleImageCaption","hasAttribute","formatBlock","subType","Users","join","ImageTextAlternativeEditing","ImageUploadEditing","refresh","resizedWidth","_suggestionFactory","isBlockImage","imageTextAlternative","toLowerCase","chain","createRange","registerPostFixer","hasSuggestion","differ","author","discard","shouldConvertImageType","side","name","imageTypeInline","ImageCaptionEditing","start","Inline image to block image","has","getSuggestions","removeObject","nodeAfter","isInContent","imageStylePreApply","_descriptionFactory","imageStyle","getClosestSelectedImageElement","change","previous","formatInline","element","format","_splitMarkerName","getChangedMarkers","getCaptionFromImageModelElement","registerDescriptionCallback","commands","suggestion","editor","registerCustomCallback","imageInline","backward","normalizedStyles","get","markBlockFormat","alt","ImageUtils","*Reset image width*","*Format:* %0","deletion","getNearestSelectionRange","setImageNaturalSizeAttributes","findIndex","getSuggestionCallback","*Remove image text alternative*","forceDefaultExecution","markInlineFormat","end","caption","value","toPrevious","getContainedElement","insertion","commandReversedParams","addObject","insertImage","ELEMENT_CAPTION","ImageBlockEditing","getFirstRange","markDeletion","*Set image width:* %0","isIntersecting","imageBlock","convertInlineImageToBlock","accept","imageStylePostApply","getAttribute","newRange","isCollapsed","isEqual","registerElementLabel","discardSuggestion","ImageStyleEditing","type","createRangeOn","plugins","title","imageTypeBlock","ELEMENT_IMAGE","convertBlockImageToInline","length","next","newValue","find","enableCommand","head","document","markInsertion","forward","ImageInlineEditing","filter","commandParams","isBefore","nodeBefore","getSuggestion","resizeImage","model","selection","commandName","ImageCaptionUtils"];var Yi,tr;Yi=Zi,tr=429,function(t){for(;--t;)Yi.push(Yi.shift())}(++tr);const er=function(t,e){return Zi[t-=0]};class nr extends t.Plugin{afterInit(){const t=this[er("0x6d")];if(!t[er("0x22")][er("0x59")]("ImageEditing"))return;const n=t.plugins[er("0x72")]("TrackChangesEditing"),o=t.plugins[er("0x72")](er("0x75")),s={},i=t.locale;if(n[er("0x2b")](er("0xe")),n[er("0x5f")][er("0x1d")](er("0x15"),(t=>Yo(i,er("0x25"),t))),n[er("0x5f")][er("0x1d")](er("0x6f"),(t=>Yo(i,"ELEMENT_INLINE_IMAGE",t))),n[er("0x5f")].registerElementLabel(er("0x7"),(()=>Yo(i,er("0xf")))),t[er("0x22")][er("0x59")](er("0x44"))&&n[er("0x2b")]("uploadImage"),t[er("0x22")][er("0x59")](er("0x10"))&&t[er("0x22")].has(er("0x30"))&&(n[er("0x2b")](er("0x55"),((e,s)=>{const i=o.getClosestSelectedImageElement(t[er("0x37")][er("0x2d")][er("0x38")]);t[er("0x37")][er("0x62")]((()=>{n[er("0x73")](i,{commandName:"imageTypeInline",commandParams:[s]},[],er("0x26"))}))})),n[er("0x2b")](er("0x24"),((e,s)=>{t.model[er("0x62")]((i=>{let x=o.getClosestSelectedImageElement(t[er("0x37")][er("0x2d")][er("0x38")]),a=i[er("0x21")](x);const c=r.LivePosition.fromPosition(a[er("0x57")],er("0x9")),l=r.LivePosition.fromPosition(a.end,"toNext");n[er("0x4")]((()=>e(s))),x=o[er("0x61")](t[er("0x37")].document.selection),a=i[er("0x21")](x);const d=i[er("0x4c")](c,l);c.detach(),l.detach(),n[er("0x73")](x,{commandName:er("0x55"),commandParams:[s]},[],er("0x16")),d.start[er("0x33")](a.start)&&n[er("0x2e")](i[er("0x4c")](d[er("0x57")],a[er("0x57")]),er("0x16")),a[er("0x6")].isBefore(d[er("0x6")])&&n[er("0x2e")](i[er("0x4c")](a[er("0x6")],d[er("0x6")]),"convertInlineImageToBlock")}))})),n[er("0x47")][er("0x6e")](er("0x3f"),er("0x16"),"join",(()=>!1)),n[er("0x47")].registerCustomCallback(er("0x3f"),er("0x16"),er("0x17"),(()=>!1)),n[er("0x47")].registerCustomCallback(er("0x3f"),er("0x16"),er("0x51"),n[er("0x47")][er("0x2")](er("0x3f"),"",er("0x17"))),n[er("0x47")][er("0x6e")]("insertion","convertInlineImageToBlock",er("0x42"),(()=>!1)),n[er("0x47")][er("0x6e")](er("0xb"),er("0x16"),er("0x51"),(([e])=>{const o=n._suggestionFactory[er("0x2")](er("0xb"),"","discard");let s=e[er("0x57")],i=e[er("0x6")];const r=t.model[er("0x3c")][er("0x79")](s,er("0x70")),x=t[er("0x37")][er("0x3c")][er("0x79")](i,er("0x2f"));r[er("0x1b")]&&(s=r[er("0x57")]),x[er("0x1b")]&&(i=x[er("0x6")]),o([t[er("0x37")][er("0x4c")](s,i)])})),n[er("0x47")][er("0x6e")](er("0x3f"),er("0x16"),"chain",c),n[er("0x47")][er("0x6e")](er("0xb"),er("0x16"),er("0x4b"),c)),t[er("0x22")][er("0x59")](er("0x56"))&&(n[er("0x2b")](er("0x3d"),((e,s)=>{const i=t[er("0x22")][er("0x72")](er("0x3a"));let r=o[er("0x61")](t[er("0x37")][er("0x2d")].selection),x=i[er("0x69")](r);t[er("0x37")].change((()=>{if(x)return void n[er("0x12")](t[er("0x37")][er("0x21")](x));const a=o[er("0x48")](r);e(s),r=o.getClosestSelectedImageElement(t[er("0x37")].document[er("0x38")]),x=i[er("0x69")](r),n[er("0x2e")](t[er("0x37")].createRangeOn(x),a?null:er("0x3b"))}))})),n[er("0x47")].registerCustomCallback("insertion","imageCaption",er("0x4b"),c)),t[er("0x22")][er("0x59")]("ImageStyleEditing")){n[er("0x2b")](er("0x60"),((s,i)=>{const r=t[er("0x22")].get(er("0x41")).me,x=t[er("0x6b")][er("0x72")](er("0x60"));let a=o.getClosestSelectedImageElement(t[er("0x37")][er("0x2d")][er("0x38")]),c=t.model[er("0x21")](a),l=x[er("0x8")];if(l==i[er("0x8")])return;const d={commandName:"imageStyle",commandParams:[i],formatGroupId:(0,e.uid)()};t[er("0x37")][er("0x62")]((()=>{if(n[er("0x5a")]()[er("0x31")]((t=>t[er("0x5d")]&&r==t[er("0x50")]&&(er("0x3f")==t.type||er("0x64")==t[er("0x20")])&&(er("0x5e")==t[er("0x40")]||er("0x18")==t[er("0x40")])&&t[er("0x11")]().isEqual(c))).forEach((t=>n.discardSuggestion(t[er("0x2c")]))),a=o[er("0x61")](t[er("0x37")][er("0x2d")][er("0x38")]),c=t[er("0x37")].createRangeOn(a),x[er("0x45")](),t[er("0x6b")][er("0x72")](er("0x55"))[er("0x45")](),t[er("0x6b")][er("0x72")](er("0x24")).refresh(),l=x.value,l!=i[er("0x8")])return o.isInlineImage(a)&&x[er("0x52")](i[er("0x8")],a)?(s({...i,setImageSizes:!1}),a=o[er("0x61")](t.model[er("0x2d")][er("0x38")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],er("0x5e"))):void(o[er("0x48")](a)?n[er("0x73")](a,d,[],"imageStylePostApply"):n[er("0x5")](c,d,"imageStylePostApply"))}))}));for(const e of t.plugins[er("0x72")](er("0x1f"))[er("0x71")])s[e[er("0x54")]]=e[er("0x23")][er("0x4a")]();n[er("0x47")].registerCustomCallback(er("0x3f"),er("0x5e"),er("0x42"),(()=>!1)),n[er("0x47")].registerCustomCallback(er("0x3f"),er("0x18"),er("0x42"),(()=>!1)),n[er("0x47")][er("0x6e")](er("0x64"),"imageStylePostApply",er("0x42"),(()=>!1)),n._suggestionFactory[er("0x6e")](er("0x3f"),"imageStylePreApply",er("0x17"),(([t])=>{o[er("0x0")](t.getContainedElement())})),n[er("0x47")][er("0x6e")](er("0x3f"),er("0x5e"),er("0x51"),((t,e)=>{n[er("0x47")].getSuggestionCallback(er("0x3f"),"",er("0x17"))(t,{commandName:e[er("0x39")],commandParams:e[er("0xc")]})})),n._suggestionFactory[er("0x6e")](er("0x3f"),er("0x5e"),er("0x4b"),c)}const x=[{type:er("0x3f"),subType:er("0x5e")},{type:"insertion",subType:er("0x3b")},{type:"formatBlock",subType:er("0x16")},{type:er("0xb"),subType:er("0x16")}];function a(t,e){const s=x[er("0x1")]((({type:e,subType:n})=>t[er("0x20")]==e&&t[er("0x40")]==n)),i=x[er("0x1")]((({type:t,subType:n})=>e[er("0x20")]==t&&e[er("0x40")]==n));if(s<0||i<0)return!1;const r=t[er("0x11")](),a=e[er("0x11")]();if((0==s||1==s)&&2==i&&r[er("0x14")](a))return!0;if(2==s&&3==i){const t=n._findSuggestions(r,er("0xb")).filter((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[er("0x40")]));if(t[er("0x27")]>1&&a[er("0x6")][er("0x1c")](r[er("0x57")]))return!0;if(1==t.length&&(r[er("0x57")][er("0x1c")](a[er("0x6")])||r[er("0x6")][er("0x1c")](a[er("0x57")])))return!0}if(3==s&&3==i&&r[er("0x57")][er("0x33")](a.start)){const t=r[er("0x6")][er("0x5c")],e=a[er("0x57")][er("0x34")];return o[er("0x48")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[er("0x37")].document[er("0x4d")]((()=>{let e=!1;const s=Array.from(t[er("0x37")][er("0x2d")][er("0x4f")][er("0x68")]());for(const{name:t,data:i}of s){const{group:s,type:r,subType:x,id:a}=n[er("0x67")](t);if(er("0x6c")==s&&n[er("0x4e")](a)){if("formatBlock"==r&&("imageStylePreApply"==x||"imageStylePostApply"==x)){const t=n[er("0x35")](a);if(i[er("0x1a")]){const s=t[er("0x11")]()[er("0xa")]();if(o[er("0x48")](s))continue;n[er("0x1e")](t),e=!0}}if(er("0xb")==r&&"imageCaption"==x&&!i[er("0x1a")]){const t=n[er("0x35")](a);t.next&&t[er("0x28")][er("0x5d")]&&(n[er("0x1e")](t[er("0x28")]),e=!0)}}}return e})),t[er("0x22")][er("0x59")]("ImageResize")&&n[er("0x2b")](er("0x36"),((e,s)=>{const i=o.getClosestSelectedImageElement(t[er("0x37")].document.selection);i.getAttribute(er("0x46"))!=s.width&&t[er("0x37")][er("0x62")]((()=>{n[er("0x73")](i,{commandName:er("0x36"),commandParams:[s]})}))})),t[er("0x22")].has(er("0x43"))&&n[er("0x2b")](er("0x49"),((e,s)=>{const i=o[er("0x61")](t[er("0x37")][er("0x2d")].selection);(i[er("0x3e")](er("0x74"))?i[er("0x19")](er("0x74")):"")!=s[er("0x29")]&&t.model[er("0x62")]((()=>{n[er("0x73")](i,{commandName:er("0x49"),commandParams:[s]})}))})),n._descriptionFactory[er("0x6a")]((t=>{if(x[er("0x2a")]((({type:e,subType:n})=>t[er("0x20")]==e&&t[er("0x40")]==n)))return t[er("0x63")]?{}:void 0})),n._descriptionFactory[er("0x6a")]((t=>{if(er("0xb")==t[er("0x20")]||er("0x78")==t.type){const e=t[er("0xa")]();if(e&&e.is(er("0x65"),er("0x7")))return{type:er("0xb")==t[er("0x20")]?er("0xd"):er("0x5b"),element:e,quantity:1}}})),n._descriptionFactory[er("0x6a")]((t=>er("0x3f")==t[er("0x20")]&&er("0x16")==t[er("0x40")]?{type:er("0x66"),content:er("0x58")}:er("0x3f")==t[er("0x20")]&&er("0x26")==t[er("0x40")]?{type:er("0x66"),content:"Block image to inline image"}:void 0)),n[er("0x5f")][er("0x6a")]((t=>{const{data:e}=t;if(e){if(er("0x60")==e[er("0x39")]){const t=e[er("0x32")][0][er("0x8")];return n=er("0x53")===t?Yo(i,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:er("0x66"),content:Yo(i,er("0x77"),n)}}if(er("0x49")==e[er("0x39")]){const t=e.commandParams[0][er("0x29")];return t?{type:er("0x66"),content:Yo(i,"*Set image text alternative:* %0",'"'+t+'"')}:{type:er("0x66"),content:Yo(i,er("0x3"))}}if(er("0x36")==e[er("0x39")]){const t=e[er("0x32")][0].width;return t?{type:er("0x66"),content:Yo(i,er("0x13"),t)}:{type:er("0x66"),content:Yo(i,er("0x76"))}}}var n}))}}const or=["enableCommand","getAttribute","markBlockFormat","get","replaceImageSource","src","handleReplaceImageCommand","handleSuggestionDescription","afterInit","selection","locale","discard","formatBlock","*Format:* replace image URL","_suggestionFactory","getSuggestionCallback","commandName","plugins","_descriptionFactory","accept","editor","getSuggestions","Users","model","change","getSelectedElement","registerCustomCallback","registerDescriptionCallback","TrackChangesEditing","source"];var sr,ir;sr=or,ir=346,function(t){for(;--t;)sr.push(sr.shift())}(++ir);const rr=function(t,e){return or[t-=0]};class xr extends t.Plugin{[rr("0x16")](){if(!this[rr("0x4")].plugins.has("ImageEditing"))return;const t=this[rr("0x4")][rr("0x1")][rr("0x11")](rr("0xc"));t[rr("0xe")](rr("0x12"),((t,e)=>this.handleReplaceImageCommand(t,e))),t._suggestionFactory[rr("0xa")](rr("0x1a"),"replaceImageSource",rr("0x3"),t._suggestionFactory.getSuggestionCallback(rr("0x1a"),null,"discard")),t[rr("0x1c")][rr("0xa")](rr("0x1a"),rr("0x12"),rr("0x19"),t._suggestionFactory[rr("0x1d")](rr("0x1a"),null,rr("0x3"))),t[rr("0x2")][rr("0xb")]((t=>this[rr("0x15")](t)))}[rr("0x14")](t,e){const n=this[rr("0x4")][rr("0x1")][rr("0x11")](rr("0xc")),o=this.editor[rr("0x7")].document[rr("0x17")][rr("0x9")]();this[rr("0x4")][rr("0x7")][rr("0x8")]((()=>{let s=o[rr("0xf")](rr("0x13"));const i=this.editor.plugins[rr("0x11")](rr("0x6")).me;for(const t of n[rr("0x5")]({skipNotAttached:!0})){const e=t.getContainedElement();if(rr("0x12")===t.subType&&e===o){t.author!==i&&t.discard(),s=t.data.commandParams[0][rr("0xd")];break}}t(e),n[rr("0x10")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],"replaceImageSource")}))}[rr("0x15")](t){const{data:e}=t;if(e&&rr("0x12")===e[rr("0x0")]){const t=rr("0x1b");return{type:"format",content:Yo(this[rr("0x4")][rr("0x18")],t)}}}}const ar=["forEach","enableCommand","_trackChangesValueDuringImport","get","execute","_trackChangesExecuted","_setSuggestionData","commands","value","dataInsert","lowest","listenTo","afterInit","editor","importWord","collaboration_features","high","_handleImportedData","plugins","trackChanges","TrackChangesEditing"];var cr,lr;cr=ar,lr=252,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{constructor(t){super(t),this[dr("0x2")]=!1,this._trackChangesExecuted=!1}[dr("0xc")](){const t=this[dr("0xd")],e=t[dr("0x7")].get("importWord"),n=t[dr("0x7")][dr("0x3")](dr("0x13"));e&&(e.on("execute",((t,[,e])=>{this[dr("0x2")]=n[dr("0x8")],e[dr("0xf")].track_changes=!this[dr("0x2")]}),{priority:dr("0x10")}),this[dr("0xb")](e,dr("0x9"),this[dr("0x11")].bind(this)),this.listenTo(e,dr("0x9"),(()=>{this[dr("0x5")]&&(n.execute(),this[dr("0x5")]=!1)}),{priority:dr("0xa")}),t[dr("0x12")][dr("0x3")]("TrackChangesEditing")[dr("0x1")]("importWord"))}[dr("0x11")](t,e){const{suggestions:n}=e,o=this[dr("0xd")][dr("0x7")][dr("0x3")](dr("0x13")),s=o[dr("0x8")];this._trackChangesValueDuringImport!==s&&(o[dr("0x4")](),this[dr("0x5")]=!0),n&&n[dr("0x0")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[dr("0xd")][dr("0x12")][dr("0x3")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:dr("0xe")}}};this[dr("0xd")].plugins[dr("0x3")](dr("0x14"))[dr("0x6")](s)}))}}const gr=["outdent","has","get","commandName","_descriptionFactory","filter","*Outdent:* %0","plugins","indentBlock","change","afterInit","document","blockIndent","registerDescriptionCallback","enableCommand","format","indent","locale","TrackChangesEditing","outdentBlock","markBlockFormat","getItemLabel","*Indent:* %0","editor","from","model","getItems"];var mr,fr;mr=gr,fr=295,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0xc")](){const t=this[hr("0x19")],e=t[hr("0x9")][hr("0x4")](hr("0x14"));t[hr("0x9")][hr("0x3")]("IndentEditing")&&(e[hr("0x10")](hr("0x12")),e.enableCommand(hr("0x2")));const n=t[hr("0x13")];if(t.plugins[hr("0x3")]("IndentBlock")){for(const n of[hr("0xa"),"outdentBlock"])e[hr("0x10")](n,(()=>{const o=Array[hr("0x1a")](this[hr("0x19")].model[hr("0xd")].selection.getSelectedBlocks())[hr("0x7")]((t=>this[hr("0x19")][hr("0x0")].schema.checkAttribute(t,hr("0xe"))));t[hr("0x0")][hr("0xb")]((()=>{for(const t of o)e[hr("0x16")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:hr("0xa")})}))}));e[hr("0x6")][hr("0xf")]((t=>{const{data:o}=t;if(!o)return;if(hr("0xa")!=o[hr("0x5")]&&hr("0x15")!=o[hr("0x5")])return;const s=t[hr("0x1")]()[0],i=e._descriptionFactory[hr("0x17")](s);return"indentBlock"==o.commandName?{type:hr("0x11"),content:Yo(n,hr("0x18"),i)}:hr("0x15")==o[hr("0x5")]?{type:hr("0x11"),content:Yo(n,hr("0x8"),i)}:void 0}))}}}var br,Er,_r=["TrackChangesEditing","requires","enableCommand","get","plugins","init","editor"];br=_r,Er=478,function(t){for(;--t;)br.push(br.shift())}(++Er);var Tr=function(t,e){return _r[t-=0]};class Cr extends t.Plugin{static get[Tr("0x6")](){return[Qs.Input]}[Tr("0x3")](){this[Tr("0x4")][Tr("0x2")][Tr("0x1")](Tr("0x5"))[Tr("0x0")]("input")}}const yr=["afterInit","editor","*Set link:* %0","LinkEditing","link","_descriptionFactory","format","model","locale","change","getRanges","markInlineFormat","registerDescriptionCallback","from","document","plugins","linkHref","getFirstRange","has","getAttribute","enableCommand","commandName","commandParams","get","TrackChangesEditing","selection","*Remove link*","unlink","getFirstPosition"];var kr,Ar;kr=yr,Ar=475,function(t){for(;--t;)kr.push(kr.shift())}(++Ar);const vr=function(t,e){return yr[t-=0]};class Rr extends t.Plugin{[vr("0x12")](){const t=this[vr("0x13")];if(!t[vr("0x4")][vr("0x7")](vr("0x15")))return;const e=t[vr("0x4")][vr("0xc")](vr("0xd"));e[vr("0x9")]("link",((n,o)=>{const s=t[vr("0x19")][vr("0x3")][vr("0xe")];let i=[];if(s.isCollapsed){if(!s.hasAttribute(vr("0x5")))return void n(o);{const e=(0,Qs.findAttributeRange)(s[vr("0x11")](),vr("0x5"),s[vr("0x8")](vr("0x5")),t[vr("0x19")]);i=[e]}}else i=Array[vr("0x2")](s[vr("0x1c")]());t[vr("0x19")][vr("0x1b")]((()=>{for(const t of i)e[vr("0x0")](t,{commandName:vr("0x16"),commandParams:[o]})}))})),e[vr("0x9")](vr("0x10"),(()=>{const n=this[vr("0x13")][vr("0x19")],o=n[vr("0x3")][vr("0xe")];n.change((()=>{let n=[];n=o.isCollapsed?[(0,Qs.findAttributeRange)(o.getFirstPosition(),"linkHref",o[vr("0x8")](vr("0x5")),t[vr("0x19")])]:Es(vr("0x5"),o[vr("0x6")](),t[vr("0x19")]);for(const t of n)e[vr("0x0")](t,{commandName:vr("0x10"),commandParams:[]})}))})),e[vr("0x17")][vr("0x1")]((e=>{const{data:n}=e,o=t[vr("0x1a")];if(n){if(vr("0x16")==n[vr("0xa")]){const t=n[vr("0xb")][0];return{type:vr("0x18"),content:Yo(o,vr("0x14"),'"'+t+'"')}}return vr("0x10")==n[vr("0xa")]?{type:vr("0x18"),content:Yo(o,vr("0xf"))}:void 0}}))}}const Sr=["paragraph","execute","todoListChecked","registerDescriptionCallback","_descriptionFactory","element","TodoListEditing","findIndex","afterInit","nextSibling","numberedList","name","model","parent","ELEMENT_TODO_LIST","List","get","filter","TrackChangesEditing","commands","change","getAttribute","commandParams","*Change to:* %0","markBlockFormat","slice","bulletedList","todo","listItem","bulleted","add","*Indent:* %0","length","listIndent","locale","document","getSelectedBlocks","selection","push","_selectedElements","editor","before","replace","ELEMENT_LIST_ITEM","outdentList","ListEditing","end","checkChild","checkTodoList","createRange","createPositionAt","previousSibling","has","todoList","*Outdent:* %0","plugins","enableCommand","commandName","value","format","from"];var Ir,Lr;Ir=Sr,Lr=104,function(t){for(;--t;)Ir.push(Ir.shift())}(++Lr);const Nr=function(t,e){return Sr[t-=0]};class wr extends t.Plugin{[Nr("0x1a")](){const t=this[Nr("0x3a")],e=t[Nr("0x34")];if(!t[Nr("0xc")].has(Nr("0x2")))return;const n=t[Nr("0xc")].get(Nr("0x24")),o=t.plugins[Nr("0x9")](Nr("0x18"));function s(e){return()=>{const o=t[Nr("0x1e")][Nr("0x35")][Nr("0x37")],s=t[Nr("0x25")][Nr("0x22")](e);if(s[Nr("0xf")])return void t[Nr("0x13")](Nr("0x12"),{});const i=e[Nr("0x2b")](0,-4),r=function(t,e,n){let o=Array[Nr("0x11")](t).filter((t=>{return e=t,(o=n)[Nr("0x4")](e[Nr("0x1f")],Nr("0x2e"))&&!o.isObject(e);var e,o}));o=o[Nr("0x23")]((t=>!t.is(Nr("0x17"),Nr("0x2e"))||t.getAttribute("listType")!=e));const s=new Set;for(const t of o)t.is(Nr("0x17"),Nr("0x2e"))?s.add(Mr(t)):s[Nr("0x30")](t);return Array[Nr("0x11")](s)}(o[Nr("0x36")](),i,t.model.schema);t[Nr("0x1e")][Nr("0x26")]((()=>{for(const t of r)n[Nr("0x2a")](t,{commandName:e,commandParams:[{forceValue:!s[Nr("0xf")]}],formatGroupId:"blockName"},Or(t))}))}}function i(e){return()=>{const o=function(t){let e=Array[Nr("0x11")](t);const n=e[Nr("0x19")]((t=>Nr("0x2e")!=t[Nr("0x1d")]));return n>-1&&(e=e[Nr("0x2b")](0,n)),e}(t[Nr("0x1e")][Nr("0x35")][Nr("0x37")][Nr("0x36")]()),s=t[Nr("0x1e")][Nr("0x6")](t[Nr("0x1e")][Nr("0x7")](o[0],Nr("0x3b")),t.model.createPositionAt(o[o[Nr("0x32")]-1],Nr("0x3")));t.model[Nr("0x26")]((()=>{n[Nr("0x2a")](s,{commandName:e,commandParams:[],formatGroupId:Nr("0x33")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[Nr("0x27")]("listIndent")>n[Nr("0x27")]("listIndent");)e.add(t),t=t[Nr("0x1b")]}return Array[Nr("0x11")](e)}(o))}))}}n[Nr("0xd")](Nr("0x1c"),s(Nr("0x1c"))),n[Nr("0xd")](Nr("0x2c"),s(Nr("0x2c"))),o&&n[Nr("0xd")]("todoList",s(Nr("0xa"))),n.enableCommand("indentList",i("indentList")),n[Nr("0xd")](Nr("0x1"),i("outdentList")),o&&n[Nr("0xd")]("checkTodoList",(()=>{const e=t[Nr("0x25")][Nr("0x22")](Nr("0x5")),o=Array[Nr("0x11")](e[Nr("0x39")]);o.filter((t=>t.getAttribute(Nr("0x14"))!=e[Nr("0xf")])),t.model[Nr("0x26")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:"checkTodoList",commandParams:[{forceValue:!e.value}]})}))})),n[Nr("0x16")].registerElementLabel(Nr("0x2e"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[Nr("0x16")][Nr("0x15")]((t=>{const{data:n}=t;if(n){if(Nr("0x1c")==n[Nr("0xe")]||Nr("0x2c")==n[Nr("0xe")]||Nr("0xa")==n[Nr("0xe")])switch(n.commandName[Nr("0x3c")](Nr("0x21"),"")){case Nr("0x2f"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case Nr("0x2d"):return o(Yo(e,Nr("0x20")))}if("indentList"==n.commandName)return{type:Nr("0x10"),content:Yo(e,Nr("0x31"),Yo(e,"ELEMENT_LIST_ITEM"))};if(Nr("0x1")==n.commandName)return{type:Nr("0x10"),content:Yo(e,Nr("0xb"),Yo(e,Nr("0x0")))};if("checkTodoList"==n[Nr("0xe")])return n[Nr("0x28")][0].forceValue?{type:Nr("0x10"),content:Yo(e,"*Check item*")}:{type:Nr("0x10"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:"format",content:Yo(e,Nr("0x29"),t)}}}))}}function Mr(t){const e=t[Nr("0x27")](Nr("0x33"));if(0==e)return t;let n=t;for(;t[Nr("0x8")]&&t[Nr("0x8")].is(Nr("0x17"),Nr("0x2e"));){const o=t[Nr("0x8")][Nr("0x27")](Nr("0x33"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[Nr("0x8")]}return n}function Or(t){const e=[];if(t.is("element",Nr("0x2e"))&&t[Nr("0x27")](Nr("0x33"))>0){let n=t[Nr("0x1b")];for(;n&&Nr("0x2e")==n.name&&n[Nr("0x27")](Nr("0x33"))==t[Nr("0x27")](Nr("0x33"));)e[Nr("0x38")](n),n=n[Nr("0x1b")]}return e}const Fr=["handleListStyleCommand","map","listStyle","model","_LIST_","ListUtils","forward","_getTranslationKeyForListStyle","ListPropertiesEditing","_getSuggestionBlocks","backward","listReversed","bind","handleListReversedCommand","reversed","registerDescriptionCallback","commandParams","element","getAttribute","unshift","from","getFirstPosition","commandName","*Format:* set order to reversed","replace","change","document","listItem","numbered","handleDescriptions","length","getSelectedBlocks","enableCommand","startIndex","_getSuggestionBlocksForListStyle","has","before","editor","listType","plugins","get","toUpperCase","TrackChangesEditing","handleListStartCommand","createPositionAt","createRange","parent","getSiblingNodes","afterInit","getLastPosition","type","filter","selection","styles","_descriptionFactory","markMultiRangeBlockFormat","listStart"];var Pr,Dr;Pr=Fr,Dr=203,function(t){for(;--t;)Pr.push(Pr.shift())}(++Dr);const Br=function(t,e){return Fr[t-=0]};class jr extends t.Plugin{[Br("0x10")](){if(!this.editor[Br("0x7")][Br("0x3")](Br("0x21")))return;const t=this[Br("0x5")].config.get("list.properties"),e=this[Br("0x5")][Br("0x7")][Br("0x8")]("TrackChangesEditing");t[Br("0x15")]&&e[Br("0x0")]("listStyle",this.handleListStyleCommand[Br("0x25")](this)),t[Br("0x27")]&&e[Br("0x0")](Br("0x24"),this[Br("0x26")][Br("0x25")](this)),t[Br("0x1")]&&e[Br("0x0")](Br("0x18"),this[Br("0xb")][Br("0x25")](this)),e[Br("0x16")][Br("0x28")](this[Br("0x36")][Br("0x25")](this))}[Br("0x19")](t,e={}){const n=this[Br("0x5")][Br("0x7")].get(Br("0xa")),o=this[Br("0x2")]();this[Br("0x5")][Br("0x1c")][Br("0x32")]((()=>{n[Br("0x17")](o,{commandName:"listStyle",commandParams:[{type:e[Br("0x12")]}],formatGroupId:Br("0x1b")})}))}[Br("0x26")](t,e={}){const n=this[Br("0x5")][Br("0x7")][Br("0x8")](Br("0xa")),o=this._getSuggestionBlocks((t=>t.is(Br("0x2a"),Br("0x34"))&&"numbered"===t[Br("0x2b")](Br("0x6"))));if(o[Br("0x37")]<1)return;const s=o[Br("0x1a")]((t=>this[Br("0x5")].model[Br("0xd")](this[Br("0x5")][Br("0x1c")][Br("0xc")](t,Br("0x4")),this[Br("0x5")].model[Br("0xc")](t,0))));this[Br("0x5")][Br("0x1c")].change((()=>{n[Br("0x17")](s,{commandName:Br("0x24"),commandParams:[{reversed:e.reversed}],formatGroupId:Br("0x24")})}))}[Br("0xb")](t,e={}){const n=this[Br("0x5")][Br("0x7")][Br("0x8")]("TrackChangesEditing"),o=this[Br("0x22")]((t=>t.is("element",Br("0x34"))&&Br("0x35")===t.getAttribute("listType")));if(o[Br("0x37")]<1)return;const s=o[Br("0x1a")]((t=>this[Br("0x5")][Br("0x1c")][Br("0xd")](this[Br("0x5")][Br("0x1c")][Br("0xc")](t,"before"),this[Br("0x5")][Br("0x1c")].createPositionAt(t,0))));this.editor[Br("0x1c")][Br("0x32")]((()=>{n[Br("0x17")](s,{commandName:Br("0x18"),commandParams:[{startIndex:e[Br("0x1")]}],formatGroupId:Br("0x18")})}))}handleDescriptions(t){const e=this[Br("0x5")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[Br("0x2f")]){case Br("0x1b"):o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this[Br("0x20")](n[Br("0x29")][0].type)))};break;case Br("0x24"):o=n.commandParams[0][Br("0x27")]?Br("0x30"):"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case Br("0x18"):o="*Format:* set start index to %0",s={type:"format",content:Yo(e,o,n[Br("0x29")][0][Br("0x1")])}}return s}[Br("0x2")](){var t,e,n,o;const s=this.editor[Br("0x7")].get(Br("0x1e"));let i=Array.from(this.editor[Br("0x1c")][Br("0x33")][Br("0x14")][Br("0x38")]());return(null===(t=i[0])||void 0===t?void 0:t.is(Br("0x2a"),Br("0x34")))&&i[Br("0x2c")](...s[Br("0xf")](this[Br("0x5")][Br("0x1c")][Br("0x33")][Br("0x14")][Br("0x2e")](),Br("0x23"))),(null===(e=i[i[Br("0x37")]-1])||void 0===e?void 0:e.is(Br("0x2a"),Br("0x34")))&&i.push(...s[Br("0xf")](this[Br("0x5")][Br("0x1c")][Br("0x33")][Br("0x14")][Br("0x11")](),Br("0x1f"))),i=[...new Set(i)],(null===(o=null===(n=this[Br("0x5")].model[Br("0x33")][Br("0x14")][Br("0x2e")]())||void 0===n?void 0:n[Br("0xe")])||void 0===o?void 0:o.is(Br("0x2a"),"listItem"))&&(i=i.filter((t=>t.is(Br("0x2a"),"listItem")))),i}_getSuggestionBlocks(t){const e=this.editor.plugins[Br("0x8")](Br("0x1e"));let n=Array[Br("0x2d")](this[Br("0x5")].model.document[Br("0x14")][Br("0x38")]())[Br("0x13")](t)[Br("0x1a")]((t=>{const n=this.editor[Br("0x1c")][Br("0xc")](t,0);return[...e[Br("0xf")](n,Br("0x23")),...e[Br("0xf")](n,Br("0x1f"))]})).flat();return n=[...new Set(n)],n}[Br("0x20")](t){return"ELEMENT_"+this[Br("0x5")][Br("0x7")][Br("0x8")]("ListUtils").getListTypeFromListStyleType(t)[Br("0x9")]()+Br("0x1d")+t[Br("0x9")]()[Br("0x31")](/-/g,"_")}}const Ur=["high","ELEMENT_MEDIA","stop","conversion","createEmptyElement","_descriptionFactory","dataDowncast","MediaEmbedEditing","TrackChangesEditing","get","locale","editor","has","afterInit","options","plugins","media","showSuggestionHighlights","mediaEmbed","attribute:url:media"];var Gr,Hr;Gr=Ur,Hr=371,function(t){for(;--t;)Gr.push(Gr.shift())}(++Hr);const Wr=function(t,e){return Ur[t-=0]};class zr extends t.Plugin{[Wr("0x2")](){const t=this[Wr("0x0")];if(!t[Wr("0x4")][Wr("0x1")](Wr("0x10")))return;const e=t[Wr("0x4")][Wr("0x12")](Wr("0x11")),n=t[Wr("0x13")];e.enableCommand(Wr("0x7")),e[Wr("0xe")].registerElementLabel(Wr("0x5"),(t=>Yo(n,Wr("0xa"),t))),t[Wr("0xc")].for(Wr("0xf")).elementToElement({model:"media",view:(t,{writer:e,options:n})=>{if(n[Wr("0x6")])return e[Wr("0xd")]("div")},converterPriority:"high"}),t.data.downcastDispatcher.on(Wr("0x8"),((t,e,n)=>{n[Wr("0x3")].showSuggestionHighlights&&t[Wr("0xb")]()}),{priority:Wr("0x9")})}}const Vr=["mention","editor","TrackChangesEditing","enableCommand","MentionEditing","has"];var Kr,qr;Kr=Vr,qr=375,function(t){for(;--t;)Kr.push(Kr.shift())}(++qr);const Xr=function(t,e){return Vr[t-=0]};class $r extends t.Plugin{afterInit(){const t=this[Xr("0x4")];t.plugins[Xr("0x2")](Xr("0x1"))&&t.plugins.get(Xr("0x5"))[Xr("0x0")](Xr("0x3"))}}const Qr=["get","afterInit","editor","plugins","enableCommand","locale","registerElementLabel","_descriptionFactory","TrackChangesEditing"];var Jr,Zr;Jr=Qr,Zr=304,function(t){for(;--t;)Jr.push(Jr.shift())}(++Zr);const Yr=function(t,e){return Qr[t-=0]};class tx extends t.Plugin{[Yr("0x3")](){const t=this[Yr("0x4")];if(!t[Yr("0x5")].has("PageBreakEditing"))return;t[Yr("0x5")][Yr("0x2")](Yr("0x1"))[Yr("0x6")]("pageBreak");const e=t[Yr("0x5")][Yr("0x2")](Yr("0x1")),n=t[Yr("0x7")];e[Yr("0x0")][Yr("0x8")]("pageBreak",(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const ex=["markBlockFormat","markerRange","has","commandName","insertion","locale","consume","isTouching","registerElementLabel","ELEMENT_PARAGRAPH","ck-suggestion-marker-split","data","insert","$text","end","selection","paragraph","nodeAfter","enableCommand","registerDescriptionCallback","TrackChangesEditing","markerName","model","schema","bindElementToMarker","isObject","*Insert:* %0","activeMarkers","addClass","addMarker:suggestion:insertion","span","checkChild","change","toViewPosition","blockName","plugins","getFirstRange","editor","mapper","options","isLimit","getItemLabel","get","Paragraph","afterInit","from","filter","type","parent","writer","getSelectedBlocks","_descriptionFactory","name","isBlock"];var nx,ox;nx=ex,ox=309,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class ix extends t.Plugin{[sx("0x5")](){const t=this[sx("0x34")];if(!t[sx("0x32")][sx("0x11")](sx("0x4")))return;const e=t[sx("0x14")],n=t[sx("0x32")][sx("0x3")](sx("0x23"));n[sx("0xc")][sx("0x17")](sx("0x1f"),(t=>Yo(e,sx("0x18"),t))),n[sx("0x21")](sx("0x1f"),((e,o={})=>{const s=t.model.document,i=o.selection||s[sx("0x1e")],r=Array[sx("0x6")](i[sx("0xb")]())[sx("0x7")]((t=>{return e=t,(n=this[sx("0x34")][sx("0x25")][sx("0x26")])[sx("0x2e")](e[sx("0x9")],"paragraph")&&!n[sx("0x28")](e)&&sx("0x1f")!=e.name;var e,n}));t.model[sx("0x2f")]((()=>{for(const t of r)n[sx("0xf")](t,{commandName:sx("0x1f"),commandParams:[],formatGroupId:sx("0x31")},_s(t))}))})),n._descriptionFactory[sx("0x22")]((t=>{const{data:n}=t;if(n&&sx("0x1f")==n[sx("0x12")])return{type:"format",content:Yo(e,"*Change to:* %0",Yo(e,sx("0x18")))}})),n[sx("0x21")]("insertParagraph"),t.editing.downcastDispatcher.on("addMarker:suggestion:insertion",rx(t),{priority:"highest"}),t[sx("0x1a")].downcastDispatcher.on(sx("0x2c"),((e,n,o)=>{o[sx("0x0")].showSuggestionHighlights&&rx(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[sx("0xc")];o[sx("0x22")]((n=>{if(sx("0x13")!==n[sx("0x8")])return;const{start:s,end:i}=n[sx("0x33")]();if(!s[sx("0x16")](i)||!s[sx("0x20")])return;const r=t[sx("0x25")][sx("0x26")],x=s[sx("0x20")];return r[sx("0xe")](x)&&!r.isLimit(x)&&r[sx("0x2e")](x,sx("0x1c"))?{type:sx("0x13"),content:Yo(e,sx("0x29"),o[sx("0x2")](x,1))}:void 0}))}}function rx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const i=t[sx("0x32")][sx("0x3")]("TrackChangesEditing"),r=o[sx("0x10")].start,x=o[sx("0x10")][sx("0x1d")],a=t[sx("0x25")][sx("0x26")];if(!r[sx("0x16")](x)||!r.nodeAfter)return;const c=r[sx("0x20")];if(a.isBlock(c)&&!a[sx("0x1")](c)&&a[sx("0x2e")](c,"$text")){if(!s.consumable[sx("0x15")](o[sx("0x10")],n[sx("0xd")]))return;const t=s[sx("0xa")].createUIElement(sx("0x2d"),{class:sx("0x19")}),r=s[sx("0x35")][sx("0x30")](x);e&&i[sx("0x2a")].includes(o.markerName)&&s[sx("0xa")][sx("0x2b")]("ck-suggestion-marker--active",t),s.writer[sx("0x1b")](r,t),s[sx("0x35")][sx("0x27")](t,o[sx("0x24")])}}}const xx=["TrackChangesEditing","isFormatting","schema","removeFormat","enableCommand","editor","createRangeOn","get","document","*Remove all formatting*","getAttributes","_descriptionFactory","from","has","getItems","selection","registerDescriptionCallback","RemoveFormatEditing","getAttributeProperties","afterInit","commandName","locale","model","change","plugins"];var ax,cx;ax=xx,cx=387,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("0x12")];if(!t[lx("0xc")][lx("0x1")](lx("0x5")))return;const e=t[lx("0xc")][lx("0x14")](lx("0xd"));e[lx("0x11")](lx("0x10"),(n=>{const o=t.model[lx("0x15")][lx("0x3")];o.isCollapsed?n():t.model[lx("0xb")]((()=>{const n=Array[lx("0x0")](o.getRanges());for(const o of n)for(const n of o[lx("0x2")]())ux(n,t[lx("0xa")][lx("0xf")])&&e.markInlineFormat(t[lx("0xa")][lx("0x13")](n),{commandName:lx("0x10"),commandParams:[]})}))})),e[lx("0x18")][lx("0x4")]((e=>{const{data:n}=e;if(n&&lx("0x10")==n[lx("0x8")])return{type:"format",content:Yo(t[lx("0x9")],lx("0x16"))}}))}}function ux(t,e){for(const[n]of t[lx("0x17")]()){const t=e[lx("0x6")](n);if(t&&t[lx("0xe")])return!0}return!1}const gx=["acceptSelectedSuggestions","enableCommand","discardSelectedSuggestions","goToNextRestrictedEditingException","discardAllSuggestions","RestrictedEditingModeEditing","plugins","acceptAllSuggestions","afterInit","trackChanges","TrackChangesEditing","discardSuggestion","editor","goToPreviousRestrictedEditingException","get"];var mx,fx;mx=gx,fx=191,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0xc")](){const t=this[hx("0x1")];if(!t.plugins.has(hx("0x9")))return;const e=t.plugins[hx("0x3")](hx("0xe"));e[hx("0x5")](hx("0x2")),e[hx("0x5")](hx("0x7"));const n=t[hx("0xa")][hx("0x3")](hx("0x9"));n.enableCommand(hx("0xd")),n[hx("0x5")]("acceptSuggestion"),n.enableCommand(hx("0x0")),n.enableCommand(hx("0xb")),n[hx("0x5")](hx("0x8")),n.enableCommand(hx("0x4")),n.enableCommand(hx("0x6"))}}const bx=["bindElementToMarker","split","createPositionBefore","createUIElement","merge","editor","includes","ck-suggestion-marker--active","activeMarkers","ck-suggestion-marker-","getItems","ELEMENT_LINE_BREAK","deletion","locale","consumable","addMarker:suggestion:insertion","mapper","editing","get","TrackChangesEditing","markerName","registerElementLabel","options","shiftEnter","addClass","requires","high","toViewPosition","showSuggestionHighlights","downcastDispatcher","insert","writer","plugins","markerRange","span","_descriptionFactory","softBreak","test"];var Ex,_x;Ex=bx,_x=223,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("0x1e")](){return[xi.ShiftEnter]}init(){const t=this[Tx("0xa")],e=t[Tx("0x25")][Tx("0x17")]("TrackChangesEditing");e.enableCommand(Tx("0x1c")),t.editing[Tx("0x22")].on(Tx("0x14"),yx(t),{priority:"high"}),t[Tx("0x16")][Tx("0x22")].on("addMarker:suggestion:deletion",yx(t),{priority:Tx("0x1f")}),t.data.downcastDispatcher.on("addMarker:suggestion",((e,n,o)=>{o[Tx("0x1b")][Tx("0x21")]&&yx(t,{showActiveMarker:!1})(e,n,o)})),e[Tx("0x2")][Tx("0x1a")](Tx("0x3"),(e=>Yo(t[Tx("0x12")],Tx("0x10"),e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const i=t[Tx("0x25")][Tx("0x17")](Tx("0x18"));if(!s[Tx("0x13")][Tx("0x4")](o[Tx("0x0")],n.name))return;const r=t.model;for(const t of o[Tx("0x0")][Tx("0xf")]()){if(!t.is("element",Tx("0x3")))continue;const n=Tx("0x11")==o[Tx("0x19")][Tx("0x6")](":")[1]?Tx("0x9"):Tx("0x6"),x=s[Tx("0x24")][Tx("0x8")](Tx("0x1"),{class:Tx("0xe")+n}),a=s[Tx("0x15")][Tx("0x20")](r[Tx("0x7")](t));e&&i[Tx("0xd")][Tx("0xb")](o.markerName)&&s[Tx("0x24")][Tx("0x1d")](Tx("0xc"),x),s[Tx("0x24")][Tx("0x23")](a,x),s[Tx("0x15")][Tx("0x5")](x,o[Tx("0x19")])}}}const kx=["selection","value","enableCommand","FORMAT_RESTRICTED_ENABLED","registerDescriptionCallback","forceValue","_descriptionFactory","has","commandParams","commands","markInlineFormat","FORMAT_RESTRICTED_DISABLED","change","getRanges","from","get","restrictedEditingException","format","document","locale","plugins"];var Ax,vx;Ax=kx,vx=393,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.editor,e=t.model,n=t[Rx("0x4")];if(!t[Rx("0x5")][Rx("0xd")]("StandardEditingModeEditing"))return;const o=t.plugins[Rx("0x0")]("TrackChangesEditing"),s=Rx("0x1"),i=t[Rx("0xf")][Rx("0x0")](s);o[Rx("0x8")](s,((t,n={})=>{const r=e[Rx("0x3")][Rx("0x6")];if(r.isCollapsed)return void t(n);const x=void 0!==n.forceValue?n[Rx("0xb")]:!i[Rx("0x7")];e[Rx("0x12")]((()=>{const t=Array[Rx("0x14")](r[Rx("0x13")]());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0x10")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0xc")][Rx("0xa")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e[Rx("0xe")][0][Rx("0xb")]?{type:Rx("0x2"),content:Yo(n,Rx("0x9"))}:{type:Rx("0x2"),content:Yo(n,Rx("0x11"))}}))}}const Ix=["getRanges","commandName","find","name","isBlock","every","createRangeOn","afterInit","getItems","model","push","_descriptionFactory","styleName","getSelectedBlocks","DataSchema","element","style","config","plugins","markBlockFormat","getDefinitionsForView","TrackChangesEditing","document","Style","StyleUtils","getAttribute","get","commands","inline","_getStyleDefinition","_getRangesWithClasses","style:","*Remove format:* %0","selection","modelElements","format","change","includes","locale","style.definitions","toLowerCase","classes","block","*Format:* %0","getAncestors","add","commandParams","value","from","editor"];var Lx,Nx;Lx=Ix,Nx=498,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{[wx("0x9")](){const t=this[wx("0x1")];if(!t[wx("0x14")].has(wx("0x19")))return;const e=t[wx("0x1d")][wx("0x1c")](wx("0x12")),n=t.plugins[wx("0x1c")](wx("0x17")),o=t[wx("0x28")],s=t.plugins[wx("0x1c")](wx("0x10")),i=t[wx("0x14")][wx("0x1c")](wx("0x1a")).normalizeConfig(s,t[wx("0x13")].get(wx("0x29")));n.enableCommand(wx("0x12"),((o,{styleName:r})=>{const x=t[wx("0xb")][wx("0x18")][wx("0x23")],a=this[wx("0x1f")](r,i);if(!a)return;if(!e.enabledStyles[wx("0x27")](r))return;if(x.isCollapsed&&!a[wx("0x6")])return void o({styleName:r});const c=!e[wx("0x31")][wx("0x27")](a.name);if(a[wx("0x6")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[wx("0x2e")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[wx("0x27")](o.name)){n[wx("0x2f")](o);break}}return n}(x[wx("0xf")](),a[wx("0x24")]);t[wx("0xb")][wx("0x26")]((()=>{for(const t of e)n[wx("0x15")](t,{commandName:wx("0x12"),commandParams:[{styleName:r,forceValue:c}],formatGroupId:wx("0x21")+r})}))}else{let e=Array[wx("0x0")](x[wx("0x2")]());if(!c){const n=Array.from(s[wx("0x16")](a[wx("0x11")],!1))[0].model,o=[];for(const s of e){const e=this[wx("0x20")](t[wx("0xb")],s,a[wx("0x2b")],n);o[wx("0xc")](...e)}e=o}t[wx("0xb")][wx("0x26")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:wx("0x12"),commandParams:[{styleName:r,forceValue:c}]})}))}})),n[wx("0xd")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&wx("0x12")===e[wx("0x3")])return e.commandParams[0].forceValue?{type:wx("0x25"),content:Yo(o,wx("0x2d"),e[wx("0x30")][0].styleName[wx("0x2a")]())}:{type:wx("0x25"),content:Yo(o,wx("0x22"),e.commandParams[0][wx("0xe")][wx("0x2a")]())}}))}_getStyleDefinition(t,e){let n=e[wx("0x2c")][wx("0x4")]((e=>e[wx("0x5")]===t));return n||(n=e[wx("0x1e")][wx("0x4")]((e=>e[wx("0x5")]===t))),n}[wx("0x20")](t,e,n,o){const s=[];for(const i of e[wx("0xa")]()){const e=i[wx("0x1b")](o);e&&n[wx("0x7")]((t=>e[wx("0x2b")][wx("0x27")](t)))&&s[wx("0xc")](t[wx("0x8")](i))}return s}}const Ox=["TableEditing","span","max","writer","position","detach","left","fromRange","maxRow","registerPostFixer","removeClass","downcastDispatcher","addClass","name","toViewElement","tableCell","document","createPositionAt","classes","ELEMENT_TABLE_WITH_TEXT","_getSuggestionCoords","isInContent","last","nodeAfter","TrackChangesEditing","deletion","nodeBefore","getSelectionAffectedTableCells","type","toLowerCase","ELEMENT_TABLE_ROW","root","insertion","length","*Insert:* %0","getItems","MAX_SAFE_INTEGER","join","enableCommand","enqueueChange","low","_tableSuggestions","refresh","oldRange","getRowIndexes","tablePaste","min","ELEMENT_TABLE_COLUMN_WITH_TEXT","registerElementLabel","data","createTableWalker","forceValue","setSelection","ELEMENT_TABLE_COLUMN","start","options","markMultiRangeInsertion","findAncestor","commands","_suggestionFactory","insertTableRowBelow","tableColumn","selection","getFirstRange","getAttribute","highest","_setupColumnsRowsFixing","includes","above","cell","colspan","TableUtils","_descriptionFactory","model","insertTableRowAbove","isEqual","$graveyard","values","_tablePostFixingSubtypes","ELEMENT_TABLE_ROW_WITH_TEXT","every","end","rootName","discard","removeTableColumn","*Remove:* %0","filter","order","_acceptFormatSuggestionCallbackFactory","tableRow","hasAttribute","some","insertTableColumnRight","editor","insert","table","accept","from","afterInit","map","item","getSuggestion","change","element","execute","getRanges","add","$textProxy","has","insertTable","isTouching","_splitMarkerName","differ","subType","maxColumn","registerCustomCallback","createRangeOn","removeTableRow","_getCoordsForCells","getCellLocation","insertTableColumnLeft","push","plugins","registerDescriptionCallback","minColumn","substr","get","addRange","getChildren","first"];var Fx,Px;Fx=Ox,Px=308,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("0x1e")]=["tableRow",Dx("0xd")],this[Dx("0x7b")]=new Set}[Dx("0x32")](){const t=this[Dx("0x2d")],e=t[Dx("0x19")][Dx("0x62")][Dx("0xe")];if(!t[Dx("0x4a")][Dx("0x3c")](Dx("0x52")))return;const n=t.locale,o=t.plugins.get(Dx("0x6a")),s=t.plugins.get(Dx("0x17"));o[Dx("0x18")][Dx("0x0")]("table",(t=>Yo(n,"ELEMENT_TABLE",t))),this[Dx("0x12")](),o.enableCommand(Dx("0x3d")),o[Dx("0x78")]("selectTableRow"),o[Dx("0x78")]("selectTableColumn");for(const n of[Dx("0x1a"),Dx("0xc")]){const i=t[Dx("0xa")][Dx("0x4e")](n);o.enableCommand(n,(n=>{t.model[Dx("0x36")]((t=>{n();const r=Dx("0x14")===i[Dx("0x27")],x=s.getSelectionAffectedTableCells(e),a=s[Dx("0x7e")](x),c=r?a[Dx("0x51")]-1:a[Dx("0x68")]+1,l=x[0][Dx("0x9")](Dx("0x2f")),d=s[Dx("0x2")](l,{startRow:c,endRow:c}),u=Array.from(d)[Dx("0x33")]((e=>t[Dx("0x44")](e[Dx("0x15")])));o[Dx("0x8")](u,Dx("0x29"))}))}))}for(const n of[Dx("0x48"),Dx("0x2c")]){const i=t.commands[Dx("0x4e")](n);o[Dx("0x78")](n,(n=>{t[Dx("0x19")].change((t=>{n();const r=Dx("0x58")===i.order,x=s[Dx("0x6d")](e),a=s.getColumnIndexes(x),c=r?a.first-1:a[Dx("0x68")]+1,l=x[0][Dx("0x9")](Dx("0x2f")),d=s[Dx("0x2")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array.from(d).map((e=>t[Dx("0x44")](e[Dx("0x15")])));o[Dx("0x8")](u,Dx("0xd"))}))}))}for(const n of[Dx("0x45"),Dx("0x24")]){const i=n[Dx("0x4d")](11),r=i[Dx("0x6f")](),x=r[Dx("0x4d")](0,3)+Dx("0x53"),a="table"+i,c=Dx("0x80")+i,l=Dx("0x54")+i;o[Dx("0x78")](n,(()=>{t[Dx("0x19")][Dx("0x36")]((t=>{const i=s[Dx("0x6d")](e),d=i[0].findAncestor(Dx("0x2f"));let u;if(Dx("0x45")==n){const t=s[Dx("0x7e")](i);u={startRow:t[Dx("0x51")],endRow:t.last,includeAllSlots:!0}}else{const t=s.getColumnIndexes(i);u={startColumn:t[Dx("0x51")],endColumn:t.last,includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[Dx("0x31")](g).map((({cell:t})=>t)),f=jx(m[Dx("0x26")]((t=>t[Dx("0x2a")](x)))),h=jx(m.filter((t=>!t.hasAttribute(x))))[Dx("0x33")]((e=>t[Dx("0x44")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Dx("0x29")==p.subType||Dx("0xd")==p[Dx("0x41")])){const e=this[Dx("0x66")](p);for(const n of f){const o=t[Dx("0x44")](n),i=s[Dx("0x47")](n),a=n[Dx("0x10")](x)-1,d=e[c],u=e[l];d<=i[r]&&i[r]+a<=u&&p[Dx("0x4f")](o)}}}))}))}function i(n){const o=Array[Dx("0x31")](e.getRanges())[Dx("0x33")]((t=>r.LiveRange.fromRange(t)));t[Dx("0x19")][Dx("0x36")]((e=>{const s=e.batch;n=n[Dx("0x26")]((t=>Dx("0x1c")!=t[Dx("0x71")].rootName)),e[Dx("0x4")](n),t[Dx("0xa")].get(Dx("0x45"))[Dx("0x7c")](),t.execute(Dx("0x45"),{forceDefaultExecution:!0}),t[Dx("0x19")][Dx("0x79")]((()=>{t[Dx("0x19")][Dx("0x79")](s,(t=>{const e=o[Dx("0x26")]((t=>Dx("0x1c")!=t[Dx("0x71")][Dx("0x22")]));e.length>0&&t[Dx("0x4")](e);for(const t of o)t[Dx("0x57")]()}))}))}))}function a(n){t[Dx("0x19")][Dx("0x36")]((o=>{const s=Array[Dx("0x31")](e[Dx("0x39")]()).map((t=>r.LiveRange.fromRange(t))),i=[];for(const t of n)for(const e of t[Dx("0x75")]({shallow:!0}))i[Dx("0x49")](e);for(const e of i)Dx("0x1c")!=e[Dx("0x71")].rootName&&(o[Dx("0x4")](o[Dx("0x63")](e,0)),t[Dx("0xa")][Dx("0x4e")]("removeTableColumn")[Dx("0x7c")](),t.execute(Dx("0x24"),{forceDefaultExecution:!0}));const x=s[Dx("0x26")]((t=>Dx("0x1c")!=t[Dx("0x71")][Dx("0x22")]));x[Dx("0x73")]>0&&o[Dx("0x4")](x);for(const t of s)t[Dx("0x57")]()}))}function c(t,e){return e[Dx("0x20")]((e=>t.some((t=>t.end[Dx("0x1b")](e.start)||e[Dx("0x21")][Dx("0x1b")](t[Dx("0x6")])))))}function l(t,e){return t[Dx("0x2b")]((t=>e[Dx("0x2b")]((e=>t.end[Dx("0x3e")](e[Dx("0x6")])))))}t[Dx("0x1")][Dx("0x5d")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Dx("0x7")].showSuggestionHighlights)return;const o=e[Dx("0x34")];if(!o)return;const s=n.mapper[Dx("0x60")](o);function i(t){return Array.isArray(t)?t:[t]}s&&Dx("0x61")===o[Dx("0x5f")]&&(0,x.setHighlightHandling)(s,n[Dx("0x55")],((t,e,n)=>n[Dx("0x5e")](i(e[Dx("0x64")]),t)),((t,e,n)=>n[Dx("0x5c")](i(e[Dx("0x64")]),t)))}),{priority:Dx("0x11")}),o[Dx("0x18")][Dx("0x4b")]((t=>{if(Dx("0x72")!=t[Dx("0x6e")]&&Dx("0x6b")!=t[Dx("0x6e")])return;const e=t.getContainedElement();if(null!=e&&e.is(Dx("0x37"),"table")){if(Dx("0x72")==t[Dx("0x6e")]){const e=t.getItems()[Dx("0x26")]((t=>t.is(Dx("0x3b"))))[Dx("0x33")]((t=>t[Dx("0x1")]));if(e[Dx("0x73")])return{type:"insertion",content:Yo(n,Dx("0x74"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Dx("0x77")](" ")+'"'))}}if(Dx("0x6b")==t[Dx("0x6e")]){const e=t[Dx("0x75")]().filter((t=>t.is(Dx("0x3b"))))[Dx("0x33")]((t=>t[Dx("0x1")]));if(e[Dx("0x73")])return{type:Dx("0x6b"),content:Yo(n,Dx("0x25"),Yo(n,Dx("0x65"),'"'+e[Dx("0x77")](" ")+'"'))}}}})),o[Dx("0x18")][Dx("0x4b")]((t=>{if(Dx("0x29")==t[Dx("0x41")]){const e=t[Dx("0x75")]().filter((t=>t.is(Dx("0x3b")))).map((t=>t[Dx("0x1")])),o=this._getSuggestionCoords(t),s=o[Dx("0x5a")]-o.minRow+1;if(Dx("0x72")==t.type)return e[Dx("0x73")]?{type:"insertion",content:Yo(n,Dx("0x74"),Yo(n,Dx("0x1f"),[s,'"'+e[Dx("0x77")](" ")+'"']))}:{type:Dx("0x72"),content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x70"),s))};if(Dx("0x6b")==t[Dx("0x6e")])return e[Dx("0x73")]?{type:"deletion",content:Yo(n,Dx("0x25"),Yo(n,Dx("0x1f"),[s,'"'+e[Dx("0x77")](" ")+'"']))}:{type:Dx("0x6b"),content:Yo(n,Dx("0x25"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Dx("0xd")==t[Dx("0x41")]){const e=t[Dx("0x75")]()[Dx("0x26")]((t=>t.is("$textProxy")))[Dx("0x33")]((t=>t[Dx("0x1")])),o=this[Dx("0x66")](t),s=o[Dx("0x42")]-o[Dx("0x4c")]+1;if(Dx("0x72")==t[Dx("0x6e")])return e[Dx("0x73")]?{type:Dx("0x72"),content:Yo(n,Dx("0x74"),Yo(n,Dx("0x81"),[s,'"'+e[Dx("0x77")](" ")+'"']))}:{type:Dx("0x72"),content:Yo(n,Dx("0x74"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(Dx("0x6b")==t[Dx("0x6e")])return e[Dx("0x73")]?{type:"deletion",content:Yo(n,Dx("0x25"),Yo(n,Dx("0x81"),[s,'"'+e[Dx("0x77")](" ")+'"']))}:{type:Dx("0x6b"),content:Yo(n,Dx("0x25"),Yo(n,Dx("0x5"),s))}}})),o[Dx("0xb")][Dx("0x43")](Dx("0x72"),Dx("0x29"),Dx("0x23"),i),o[Dx("0xb")][Dx("0x43")](Dx("0x6b"),Dx("0x29"),Dx("0x30"),i),o._suggestionFactory.registerCustomCallback("insertion",Dx("0xd"),Dx("0x23"),a),o[Dx("0xb")][Dx("0x43")]("deletion",Dx("0xd"),"accept",a),o[Dx("0xb")][Dx("0x43")](Dx("0x72"),Dx("0xd"),Dx("0x77"),c),o[Dx("0xb")][Dx("0x43")](Dx("0x6b"),Dx("0xd"),"join",c),o[Dx("0xb")][Dx("0x43")](Dx("0x72"),Dx("0x29"),"join",l),o[Dx("0xb")][Dx("0x43")](Dx("0x6b"),Dx("0x29"),"join",l)}[Dx("0x28")](){const t=this[Dx("0x2d")],e=t[Dx("0x19")].document[Dx("0xe")];return(n,o)=>{t[Dx("0x19")][Dx("0x36")]((s=>{const{commandName:i,commandParams:x}=o;let a=n[0].end[Dx("0x6c")];x&&x[0]&&!1===x[0][Dx("0x3")]&&(a=n[0].start[Dx("0x69")]);const c=s.createRangeIn(a);if(Dx("0x1c")==c[Dx("0x71")].rootName)return;const l=Array.from(e.getRanges())[Dx("0x33")]((t=>r.LiveRange[Dx("0x59")](t)));s[Dx("0x4")](c),t[Dx("0xa")][Dx("0x4e")](i)[Dx("0x7c")](),x[Dx("0x49")]({forceDefaultExecution:!0}),t[Dx("0x38")](i,...x);const d=l[Dx("0x26")]((t=>Dx("0x1c")!=t.root.rootName));d[Dx("0x73")]>0&&s[Dx("0x4")](d);for(const t of l)t[Dx("0x57")]()}))}}[Dx("0x46")](t){const e=this[Dx("0x2d")][Dx("0x4a")][Dx("0x4e")](Dx("0x17"));let n=Number[Dx("0x76")],o=Number.MIN_SAFE_INTEGER,s=Number[Dx("0x76")],i=Number.MIN_SAFE_INTEGER;for(const r of t){if(Dx("0x1c")==r[Dx("0x71")][Dx("0x22")])continue;const{row:t,column:x}=e[Dx("0x47")](r),a=r[Dx("0x2a")]("rowspan")?r.getAttribute("rowspan")-1:0,c=r.hasAttribute(Dx("0x16"))?r[Dx("0x10")](Dx("0x16"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,i=x+c>i?x+c:i}return{minRow:n,maxRow:o,minColumn:s,maxColumn:i}}[Dx("0x12")](){const t=this[Dx("0x2d")],e=t[Dx("0x4a")][Dx("0x4e")]("TrackChangesEditing"),n=t[Dx("0x4a")].get(Dx("0x17"));t[Dx("0x19")].document.on("change:data",(()=>{const n=Array[Dx("0x31")](t[Dx("0x19")][Dx("0x62")][Dx("0x40")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:i}=e[Dx("0x3f")](t);if("suggestion"!=n)continue;if(null!=o[Dx("0x7d")])continue;const r=e[Dx("0x35")](s);this[Dx("0x1e")][Dx("0x13")](i)&&this[Dx("0x7b")][Dx("0x3a")](r)}}),{priority:Dx("0x7a")});const o=(t,e)=>{let o=!1;const s=e[Dx("0x44")](t),i=t[Dx("0x9")](Dx("0x2f")),r=n.getCellLocation(t);for(const e of this._tableSuggestions){const n=e[Dx("0x41")],x=n.startsWith(Dx("0x7f")),a=n[Dx("0x4d")](x?10:5),c=a.toLowerCase(),l=c[Dx("0x4d")](0,3)+Dx("0x53"),d=Dx("0x80")+a,u=Dx("0x54")+a;if(!e[Dx("0x67")])continue;if(i!=e[Dx("0xf")]().start[Dx("0x9")](Dx("0x2f")))continue;if(e.isIntersectingWithRange(s))continue;const g=t.hasAttribute(l)?t[Dx("0x10")](l)-1:0,m=this[Dx("0x66")](e),f=m[d],h=m[u];f<=r[c]&&r[c]+g<=h&&(e[Dx("0x4f")](s),o=!0)}return o};t[Dx("0x19")][Dx("0x62")][Dx("0x5b")]((e=>{let n=!1;for(const s of t.model[Dx("0x62")][Dx("0x40")].getChanges())if(Dx("0x2e")==s[Dx("0x6e")])if(Dx("0x29")==s.name)for(const t of s.position[Dx("0x69")][Dx("0x50")]())n=n||o(t,e);else"tableCell"==s.name&&(n=n||o(s[Dx("0x56")][Dx("0x69")],e));return n}))}[Dx("0x66")](t){return this[Dx("0x46")](t[Dx("0x39")]().map((t=>t[Dx("0x6")][Dx("0x69")])))}}function jx(t){return Array[Dx("0x31")](new Set(t)[Dx("0x1d")]())}const Ux=["filter","set:isEnabled","$graveyard","commandName","length","getAncestors","getRanges","registerDescriptionCallback","push","accept","author","afterInit","registerCustomCallback","TrackChangesEditing","selection","TableUtils","detach","mergeTableCellLeft","splitTableCellVertically","getSelectionAffectedTableCells","*Split cell:* vertically","editor","splitTableCellHorizontally","root","markMultiRangeBlockFormat","element","return","commands","value","document","refresh","createRangeOn","type","_isForcedDefaultExecutionBlock","_suggestionFactory","*Split cell:* horizontally","getCellLocation","has","map","tableCell","plugins","locale","format","insertion","getFirstPosition","enableCommand","size","mergeTableCells","table","mergeTableCellDown","TableEditing","add","direction","forceDefaultExecution","model","execute","_areMergableCells","mergeTableCellRight","find","formatBlock","get","from","cell","containsRange","findAncestor","fromRange","horizontally","change","deletion","_descriptionFactory","mergeTableCellUp","createTableWalker","_areSelectedCellsMergable","subType","_tablePostFixingSubtypes"];var Gx,Hx;Gx=Ux,Hx=387,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Wx=function(t,e){return Ux[t-=0]};class zx extends t.Plugin{static get requires(){return[Bx]}[Wx("0x4a")](){const t=this[Wx("0x9")],e=t[Wx("0x2a")][Wx("0x11")][Wx("0x2")],n=t[Wx("0x1d")];if(!t.plugins[Wx("0x19")](Wx("0x26")))return;const o=t[Wx("0x1c")][Wx("0x30")](Wx("0x1")),s=t.plugins[Wx("0x30")](Wx("0x3")),i=t[Wx("0x1c")].get(Bx);i[Wx("0x3e")][Wx("0x47")](Wx("0x23")),o.enableCommand(Wx("0x23"),(()=>{const e=s[Wx("0x7")](t[Wx("0x2a")][Wx("0x11")][Wx("0x2")]);t.model.change((()=>{o[Wx("0xc")](e,{commandName:"mergeTableCells",commandParams:[]},[],Wx("0x23"))}))})),t.commands[Wx("0x30")](Wx("0x23")).on(Wx("0x2b"),((e,n)=>{t[Wx("0xf")].get("trackChanges")[Wx("0x10")]&&(n[Wx("0x43")]>0&&n[n[Wx("0x43")]-1]&&n[n[Wx("0x43")]-1][Wx("0x29")]||o[Wx("0x15")]||this[Wx("0x3c")]()||e.stop())}),{priority:"highest"});for(const e of["mergeTableCellUp",Wx("0x2d"),Wx("0x25"),Wx("0x5")]){const n=t.commands.get(e);o[Wx("0x21")](e,(()=>{const e=t[Wx("0x2a")].document[Wx("0x2")].getFirstPosition()[Wx("0x44")]()[Wx("0x2e")]((t=>t.is(Wx("0xd"),Wx("0x1b")))),s=n[Wx("0x10")];t[Wx("0x2a")][Wx("0x37")]((()=>{o[Wx("0xc")]([e,s],{commandName:Wx("0x23"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[Wx("0x6"),"splitTableCellHorizontally"]){const n=t[Wx("0xf")][Wx("0x30")](e);o.enableCommand(e,(()=>{const i=s[Wx("0x7")](t[Wx("0x2a")].document.selection)[0],r=i[Wx("0x34")](Wx("0x24")),{column:x,row:a}=s[Wx("0x18")](i);let c=[];if(Wx("0x36")==n[Wx("0x28")]){const t=s[Wx("0x3b")](r,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Wx("0x31")](t)[Wx("0x1a")]((t=>t.cell))}else{const t=s[Wx("0x3b")](r,{column:x,includeAllSlots:!0});c=Array.from(t)[Wx("0x1a")]((t=>t[Wx("0x32")]))}t.model[Wx("0x37")]((t=>{o.markBlockFormat(t[Wx("0x13")](i),{commandName:e,commandParams:[]},c,e)}))}))}o[Wx("0x39")][Wx("0x46")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Wx("0x42")]?{type:Wx("0x1e"),content:Yo(n,"*Merge cells*")}:void 0})),o[Wx("0x39")][Wx("0x46")]((t=>{const{data:e}=t;if(e)return Wx("0x6")==e[Wx("0x42")]?{type:Wx("0x1e"),content:Yo(n,Wx("0x8"))}:Wx("0xa")==e[Wx("0x42")]?{type:Wx("0x1e"),content:Yo(n,Wx("0x17"))}:void 0}));const x=i._acceptFormatSuggestionCallbackFactory();for(const t of[Wx("0x3a"),"mergeTableCellRight",Wx("0x25"),"mergeTableCellLeft"])o[Wx("0x16")][Wx("0x0")]("formatBlock",t,"accept",x);for(const t of[Wx("0x6"),Wx("0xa")])o._suggestionFactory.registerCustomCallback(Wx("0x2f"),t,Wx("0x48"),x);o[Wx("0x16")][Wx("0x0")](Wx("0x2f"),Wx("0x23"),"accept",(n=>{t[Wx("0x2a")][Wx("0x37")]((o=>{const s=Array[Wx("0x31")](e[Wx("0x45")]())[Wx("0x1a")]((t=>r.LiveRange[Wx("0x35")](t)));o.setSelection(n),t.commands[Wx("0x30")](Wx("0x23"))[Wx("0x12")](),t[Wx("0x2b")](Wx("0x23"),{forceDefaultExecution:!0});const i=s[Wx("0x3f")]((t=>Wx("0x41")!=t[Wx("0xb")].rootName));i.length>0&&o.setSelection(i);for(const t of s)t[Wx("0x4")]()}))}));for(const e of["mergeTableCellUp",Wx("0x25"),Wx("0x5"),"mergeTableCellRight"]){const n=t[Wx("0xf")][Wx("0x30")](e);n.on(Wx("0x40"),((e,o,s)=>{if(s){const o=t[Wx("0x2a")].document[Wx("0x2")][Wx("0x20")]()[Wx("0x44")]()[Wx("0x2e")]((t=>t.is(Wx("0xd"),Wx("0x1b"))));this._areMergableCells(n[Wx("0x10")],o)||(e[Wx("0xe")]=!1,e.stop())}}),{priority:"low"})}}[Wx("0x3c")](){const t=this[Wx("0x9")][Wx("0xf")].get(Wx("0x23")),e=this.editor[Wx("0x1c")].get("TableUtils");if(!t.isEnabled)return!1;const n=e[Wx("0x7")](this[Wx("0x9")].model[Wx("0x11")][Wx("0x2")]);for(const t of n)for(const e of n)if(t!=e&&!this[Wx("0x2c")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Wx("0x9")].plugins[Wx("0x30")](Wx("0x1")),o=this.editor[Wx("0x2a")][Wx("0x13")](t),s=this[Wx("0x9")].model[Wx("0x13")](e),i=new Set,r=new Set;for(const t of n.getSuggestions())if((Wx("0x1f")==t[Wx("0x14")]||Wx("0x38")==t[Wx("0x14")]||Wx("0x23")==t[Wx("0x3d")])&&t.isInContent)for(const e of t[Wx("0x45")]())e[Wx("0x33")](o,!0)&&i[Wx("0x27")](t[Wx("0x14")]+":"+t[Wx("0x49")].id),e[Wx("0x33")](s,!0)&&r[Wx("0x27")](t[Wx("0x14")]+":"+t[Wx("0x49")].id);if(i[Wx("0x22")]!=r[Wx("0x22")])return!1;for(const t of i)if(!r[Wx("0x19")](t))return!1;return!0}}const Vx=["_suggestionFactory","createPositionAfter","TrackChangesEditing","markerName","markerRange","markerNameToElements","format","getChild","findAncestor","getRowIndexes","table","getSuggestion","removeMarker:suggestion","enableCommand","removeAttribute","highest","ck-suggestion-marker-","childCount","TableUtils","get","addClass","TableEditing","value","last","getAttribute","showSuggestionHighlights","commandName","activeMarkers","consume","model","consumable","change","end","data","forceValue","item","setAttribute","writer","from","FORMAT_HEADER_COLUMN","FORMAT_REGULAR_ROW","getCellLocation","accept","createPositionBefore","commands","toViewElement","removeClass","setTableRowHeader","includes","nodeBefore","formatBlock","headingRows","getColumnIndexes","addMarker:suggestion","registerDescriptionCallback","registerCustomCallback","createRange","editing","stop","options","parent","_splitMarkerName","getSelectionAffectedTableCells","_descriptionFactory","plugins","downcastDispatcher","start","nodeAfter","selection","document","name","first","markBlockFormat","ck-suggestion-marker--active","setTableColumnHeader","mapper","cell","headingColumns","FORMAT_REGULAR_COLUMN","FORMAT_HEADER_ROW","commandParams"];var Kx,qx;Kx=Vx,qx=407,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 requires(){return[Bx]}afterInit(){const t=this.editor;if(!t.plugins.has(Xx("0x13")))return;const e=t.locale,n=t[Xx("0x3e")][Xx("0x11")](Xx("0x0")),o=t[Xx("0x3e")].get("TableUtils"),s=t[Xx("0x3e")][Xx("0x11")](Bx);function i({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,i,r)=>{const{type:x,id:a}=n[Xx("0x3b")](i.markerName),c=n[Xx("0x9")](a);if(!c[Xx("0x1f")]||Xx("0x48")!=c[Xx("0x1f")].commandName)return;if(i[Xx("0x21")])return void s[Xx("0x38")]();if(!r[Xx("0x1c")][Xx("0x1a")](i[Xx("0x2")],s[Xx("0x44")]))return;const l=i[Xx("0x2")][Xx("0x40")][Xx("0x41")],d=i[Xx("0x2")][Xx("0x1e")][Xx("0x2f")],u=l[Xx("0x3a")][Xx("0x3a")],{column:g}=o.getCellLocation(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.cell,c=r.mapper[Xx("0x2b")](s);r[Xx("0x23")].addClass(Xx("0xe")+x,c),e&&r[Xx("0x23")][Xx("0x22")]("data-suggestion",a,c),r.mapper.bindElementToMarker(c,i[Xx("0x1")]),t&&(n[Xx("0x19")][Xx("0x2e")](i.markerName)?r[Xx("0x23")][Xx("0x12")](Xx("0x47"),c):r[Xx("0x23")][Xx("0x2c")](Xx("0x47"),c))}}}}n[Xx("0xb")](Xx("0x2d"),((e,s)=>{const i=o.getSelectionAffectedTableCells(t[Xx("0x1b")][Xx("0x43")][Xx("0x42")]),r=o[Xx("0x7")](i),x=i[0][Xx("0x6")](Xx("0x8")),a=x[Xx("0x16")](Xx("0x31"))||0,c=s&&null!==s[Xx("0x20")]?s[Xx("0x20")]:!t[Xx("0x2a")][Xx("0x11")](Xx("0x2d"))[Xx("0x14")],l=c?r[Xx("0x15")]:r[Xx("0x45")],d=x.getChild(l);let u;if(c){const e=x[Xx("0x5")](a);if(d.index<e.index)return;u=t[Xx("0x1b")].createRange(t[Xx("0x1b")][Xx("0x29")](e.getChild(0)),t.model[Xx("0x50")](d[Xx("0x5")](d[Xx("0xf")]-1)))}else{const e=x[Xx("0x5")](a-1);if(!e)return;u=t[Xx("0x1b")][Xx("0x36")](t[Xx("0x1b")].createPositionBefore(d[Xx("0x5")](0)),t[Xx("0x1b")][Xx("0x50")](e[Xx("0x5")](e[Xx("0xf")]-1)))}t[Xx("0x1b")][Xx("0x1d")]((()=>{n[Xx("0x46")](u,{commandName:Xx("0x2d"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[Xx("0xb")](Xx("0x48"),((e,o)=>{const s=t[Xx("0x3e")][Xx("0x11")](Xx("0x10")),i=s[Xx("0x3c")](t.model[Xx("0x43")][Xx("0x42")]),r=s[Xx("0x32")](i),x=i[0][Xx("0x6")]("table"),a=x[Xx("0x16")](Xx("0x4b"))||0,c=o&&null!==o[Xx("0x20")]?o[Xx("0x20")]:!t[Xx("0x2a")][Xx("0x11")](Xx("0x48"))[Xx("0x14")];let l;const d=x.getChild(0),u=c?r[Xx("0x15")]:r[Xx("0x45")],g=s.createTableWalker(x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Xx("0x24")](g)[0][Xx("0x4a")];if(c){const e=d.getChild(a);if(m.isBefore(e))return;l=t[Xx("0x1b")][Xx("0x36")](t[Xx("0x1b")].createPositionBefore(e),t[Xx("0x1b")][Xx("0x50")](m))}else{const e=d.getChild(a-1);if(!e)return;l=t[Xx("0x1b")][Xx("0x36")](t[Xx("0x1b")][Xx("0x29")](m),t.model[Xx("0x50")](e))}t[Xx("0x1b")][Xx("0x1d")]((()=>{n[Xx("0x46")](l,{commandName:Xx("0x48"),commandParams:[{forceValue:c}]},[],Xx("0x48"))}))})),t.editing[Xx("0x3f")].on(Xx("0x33"),i(),{priority:Xx("0xd")}),t[Xx("0x1f")][Xx("0x3f")].on(Xx("0x33"),((t,e,n)=>{n[Xx("0x39")][Xx("0x17")]&&i({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0xd")}),t[Xx("0x37")][Xx("0x3f")].on(Xx("0xa"),((t,e,o)=>{const{type:s,id:i}=n[Xx("0x3b")](e.markerName),r=n.getSuggestion(i);if(!r[Xx("0x1f")]||"setTableColumnHeader"!=r[Xx("0x1f")][Xx("0x18")])return;const x=o[Xx("0x49")][Xx("0x3")](e[Xx("0x1")]);if(x)for(const t of x)o[Xx("0x23")][Xx("0x2c")]("ck-suggestion-marker-"+s,t),o.writer.removeClass("ck-suggestion-marker--active",t),o.writer[Xx("0xc")]("data-suggestion",t),o[Xx("0x49")].unbindElementFromMarkerName(t,e[Xx("0x1")])}),{priority:Xx("0xd")}),n[Xx("0x3d")][Xx("0x34")]((t=>{const{data:n}=t;if(n){if(Xx("0x2d")==n[Xx("0x18")]){const t=n[Xx("0x4e")][0][Xx("0x20")];return o(Yo(e,Xx(t?"0x4d":"0x26")))}if(Xx("0x48")==n.commandName){const t=n[Xx("0x4e")][0][Xx("0x20")];return o(Yo(e,Xx(t?"0x25":"0x4c")))}}function o(t){return{type:Xx("0x4"),content:Yo(e,"*Format:* %0",t)}}}));const r=s._acceptFormatSuggestionCallbackFactory();n[Xx("0x4f")][Xx("0x35")](Xx("0x30"),"setTableRowHeader",Xx("0x28"),r),n[Xx("0x4f")][Xx("0x35")](Xx("0x30"),"setTableColumnHeader",Xx("0x28"),r)}}const Qx=["add","registerPostFixer","getSelectionAffectedTableCells","options","tableCellBorderWidth","getChangedMarkers","editing","tableCellHorizontalAlignment","selection","cell","*Replace table cells*","reduce","startsWith","map","editingDowncast","rowInsertionRanges","tablePaste","removeMarker","getContainedElement","updateMarker","previous","plugins","first","next","registerDescriptionCallback","nodeAfter","accept","suggestion","keys","remove","documentSelection","getRanges","document","subType","markerToHighlight","TableUtils","markers","length","insertion","get","set","suggestionLoaded","conversion","view","rootName","ck-suggestion-marker-insertion","createRangeIn","getAttributes","low","discard","for","insert","insertColumns","createTableWalker","columns","deletionRanges","unwrap","_isForcedDefaultExecutionBlock","_createdBatches","has","registerCustomCallback","markMultiRangeInsertion","elementToElement","tableCellSuggestion","attributes","join","find","change","cells","_replaceTableSlotCell","some","previousSibling","clipboardOutput","rowInsertionIndexes","markMultiRangeBlockFormat","formatBlock","TrackChangesEditing","getChanges","isEqual","_tablePostFixingSubtypes","oldRange","getShiftedBy","requires","schema","push","getRange","paragraph","afterInit","suggestion:formatBlock:tablePasteCell","insertionRanges","findAncestor","isInContent","createRange","getRowIndexes","name","editor","tablePasteRow","stop","fill","getChildren","tableCellVerticalAlignment","high","getColumns","tablePasteCell","root","suggestionUnloaded","redo","insertRows","wrap","type","tableCellBorderColor","getMarkers","setAttribute","tablePasteChainId","end","nextSibling","endRow","ck-suggestion-marker--active","differ","getItems","column","TableClipboard","$graveyard","hasSuggestion","removeMarkers","model","getSuggestion","_suggestionFactory","columnInsertionIndexes","getRows","tableCell","containsRange","newRange","getSuggestionCallback","removeColumns","endColumn","value","register","commands","position","author","_splitMarkerName","isEmpty","tablePasteColumn","Users","tableCellBackgroundColor","markerName","createElement","createRangeOn","markerAttributes","forceDefaultExecution","locale","from","return","getSuggestions","filter","element","suggestion-td","fromEntries","getTableIfOnlyTableInContent","_getCoordsForCells","activeMarkers","includes","deletion","columnInsertionRanges"];var Jx,Zx;Jx=Qx,Zx=278,function(t){for(;--t;)Jx.push(Jx.shift())}(++Zx);const Yx=function(t,e){return Qx[t-=0]},ta=[Yx("0x38"),Yx("0xa2"),"tableCellBorderStyle",Yx("0x3b"),Yx("0x98"),Yx("0x20"),"tableCellPadding"],ea=Object.fromEntries(ta.map((t=>[t,null])));class na extends t.Plugin{static get[Yx("0x86")](){return[Bx]}[Yx("0x8b")](){const t=this[Yx("0x93")];if(!t[Yx("0x49")][Yx("0x6f")](Yx("0x8")))return;const n=t[Yx("0x49")][Yx("0x5b")](Yx("0x80")),o=t[Yx("0x49")][Yx("0x5b")](Yx("0x57")),s=t[Yx("0x49")][Yx("0x5b")](Bx),i=t[Yx("0x49")][Yx("0x5b")]("TableClipboard");s[Yx("0x83")][Yx("0x88")](Yx("0x94"),Yx("0x1e")),t.model[Yx("0x87")][Yx("0x18")](Yx("0x73"),{allowIn:Yx("0x11"),allowContentOf:Yx("0x11"),isLimit:!0}),t.conversion[Yx("0x72")]({model:Yx("0x73"),view:Yx("0x2c")});let r=null;t[Yx("0xc")].on("insertContent",((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Yx("0x25")]||n[Yx("0x6d")]||this[Yx("0x93")][Yx("0x19")][Yx("0x5b")]("trackChanges")[Yx("0x17")]&&function(t,e,n,o,s){if(e&&!e.is(Yx("0x52")))return!1;const i=s[Yx("0x2e")](t,n);if(!i||!sa(i,void 0,o))return!1;const r=o[Yx("0x36")](n[Yx("0x54")][Yx("0x3c")]);if(!r[Yx("0x59")])return!1;const x=r[0][Yx("0x8e")]("table"),a=o[Yx("0x91")](r),c=o.getColumnIndexes(r),l={startRow:a[Yx("0x4a")],endRow:a.last,startColumn:c[Yx("0x4a")],endColumn:c.last};return 1==r[Yx("0x59")]&&(l[Yx("0x3")]+=o[Yx("0x10")](i)-1,l[Yx("0x16")]+=o[Yx("0x9a")](i)-1),sa(x,l,o)}(a,c,t[Yx("0xc")],o,i)&&(s[Yx("0x95")](),r={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Yx("0xc")][Yx("0x77")]((()=>{t.model.insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:i,insertionRanges:a,deletionRanges:c,cells:l}=r;s.length&&n[Yx("0x71")](s,Yx("0x94"),{tablePasteChainId:o}),i[Yx("0x59")]&&n[Yx("0x71")](i,"tablePasteColumn",{tablePasteChainId:o}),a[Yx("0x59")]&&n[Yx("0x71")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0x59")]&&n.markMultiRangeDeletion(c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Yx("0x7e")](l[Yx("0x41")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0x9b"),{tablePasteChainId:o});if(d){const e=d[Yx("0xa3")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const i=t[Yx("0xc")][Yx("0x23")](o),r=e[Yx("0x76")]((t=>t[Yx("0x89")]()[Yx("0x82")](i)));r&&n[Yx("0x88")]([r.name,s])}n[Yx("0x59")]&&d[Yx("0xa4")](Yx("0x24"),Object[Yx("0x2d")](n))}r=null})))}),{priority:e.priorities.high+10}),t[Yx("0x49")][Yx("0x5b")]("TableClipboard").on(Yx("0x79"),((t,e)=>{const[n,o,,s]=e;if(!r)return;t.stop();const i=n[Yx("0x3d")],x=o,a=oa(i),c=oa(x);t[Yx("0x28")]=i;let l=null,d=null;if(c||a)if(a&&!c){s[Yx("0x51")](i.getChild(0));for(const t of Array[Yx("0x27")](x[Yx("0x97")]()))s[Yx("0x67")](t,i,Yx("0x1"));const t=r[Yx("0x7d")][Yx("0x31")](n.row),e=r[Yx("0xf")][Yx("0x31")](n[Yx("0x7")]);t||e||(l=s[Yx("0x62")](i))}else c&&!a&&(d=s[Yx("0x62")](i));else{const t=s[Yx("0x22")](Yx("0x73")),e=s[Yx("0x22")](Yx("0x73"));s[Yx("0xa0")](s.createRangeIn(i),e),s.insert(t,i,0);for(const e of Array[Yx("0x27")](x[Yx("0x97")]()))s.insert(e,t,Yx("0x1"));l=s[Yx("0x23")](t),d=s[Yx("0x23")](e)}const u=Array[Yx("0x27")](x[Yx("0x63")]())[Yx("0x2a")]((([t])=>ta[Yx("0x31")](t)));r[Yx("0x78")].push({element:i,attributes:u[Yx("0x59")]?Object.fromEntries(u):null}),l&&r[Yx("0x8d")][Yx("0x88")](l),d&&r[Yx("0x6b")][Yx("0x88")](d)}),{priority:Yx("0x99")}),o.on(Yx("0x68"),((e,n)=>{const[s,i={}]=n;if(!r)return;const x=i.at||0,a=i[Yx("0x6a")]||1;r[Yx("0xf")]=new Array(a)[Yx("0x96")](x)[Yx("0x41")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))r[Yx("0x33")][Yx("0x88")](t[Yx("0xc")].createRangeOn(e))}),{priority:Yx("0x64")}),o.on(Yx("0x9f"),((e,n)=>{const[s,i={}]=n;if(!r)return;const x=i.at||0,a=i.rows||1;r[Yx("0x7d")]=new Array(a).fill(x)[Yx("0x41")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))r[Yx("0x43")][Yx("0x88")](t[Yx("0xc")][Yx("0x23")](e))}),{priority:"low"}),n._descriptionFactory[Yx("0x4c")]((e=>{if(e.subType&&e[Yx("0x55")][Yx("0x40")](Yx("0x44")))return e[Yx("0x48")]?{}:{type:"insertion",content:Yo(t[Yx("0x26")],Yx("0x3e"))}}));const x=()=>!1;for(const t of[Yx("0x44"),Yx("0x1e"),"tablePasteRow",Yx("0x9b")])n._suggestionFactory.registerCustomCallback(Yx("0x5a"),t,Yx("0x75"),x),n[Yx("0xe")][Yx("0x70")]("deletion",t,Yx("0x75"),x),n[Yx("0xe")][Yx("0x70")](Yx("0x7f"),t,Yx("0x75"),x);n[Yx("0xe")].registerCustomCallback(Yx("0x7f"),Yx("0x9b"),"discard",x),n._suggestionFactory[Yx("0x70")](Yx("0x7f"),Yx("0x9b"),Yx("0x4e"),((e,n,o)=>{const s=e[Yx("0x41")]((t=>t.getContainedElement())).filter((t=>t)),i=new Map(s[Yx("0x41")]((t=>[t,null])));if(r)for(const{element:t,attributes:e}of r[Yx("0x78")])e&&i[Yx("0x5c")](t,e);else if(o&&o[Yx("0x24")])for(const[e,n]of Object.entries(o[Yx("0x24")])){const o=t.model[Yx("0x58")][Yx("0x5b")](e),s=o?o[Yx("0x89")]()[Yx("0x46")]():null;s&&i[Yx("0x5c")](s,n)}t[Yx("0xc")][Yx("0x77")]((t=>{for(const[e,n]of i)t.setAttributes({...ea,...n},e)}))}));const a=(e,o)=>{n[Yx("0xe")][Yx("0x70")](e,Yx("0x44"),o,((s,i,r)=>{t[Yx("0xc")].change((t=>{const x=[];for(const t of s){const e=t.start[Yx("0x4d")];e.is(Yx("0x2b"),Yx("0x73"))&&x[Yx("0x88")](e)}n[Yx("0xe")][Yx("0x14")](e,null,o)(s,i,r);for(const e of x)Yx("0x9")!=e[Yx("0x9c")][Yx("0x60")]&&t[Yx("0x6c")](e)}))}))};a("insertion","accept"),a(Yx("0x5a"),Yx("0x65")),a(Yx("0x32"),"accept"),a("deletion",Yx("0x65")),n[Yx("0xe")][Yx("0x70")](Yx("0x5a"),Yx("0x94"),Yx("0x65"),(t=>{const e=t[Yx("0x41")]((t=>t.getContainedElement())),n=e[0].findAncestor("table"),{minRow:i,maxRow:r}=s[Yx("0x2f")](e);o.removeRows(n,{at:i,rows:r-i+1})})),n._suggestionFactory[Yx("0x70")](Yx("0x5a"),"tablePasteColumn",Yx("0x65"),(t=>{const e=t[Yx("0x41")]((t=>t.getContainedElement())),n=e[0].findAncestor("table"),{minColumn:i,maxColumn:r}=s._getCoordsForCells(e);o[Yx("0x15")](n,{at:i,columns:r-i+1})}));const c=(t,e)=>{if(!e.subType||!e[Yx("0x55")].startsWith(Yx("0x44")))return;const o=e[Yx("0x74")][Yx("0x0")],s=n[Yx("0x29")]()[Yx("0x2a")]((t=>t[Yx("0x8f")]&&t.attributes&&t[Yx("0x74")].tablePasteChainId==o));s[Yx("0x59")]&&e.getAllAdjacentSuggestions()[Yx("0x59")]!=s[Yx("0x59")]&&s[Yx("0x3f")](((t,e)=>(t[Yx("0x4b")]=e,e[Yx("0x48")]=t,e)))};function l(t,e=!0){const{id:o}=n[Yx("0x1c")](t[Yx("0x21")]),s=["ck-suggestion-marker",Yx("0x61")],i=n[Yx("0x30")][Yx("0x31")](t[Yx("0x21")]);return i&&s[Yx("0x88")](Yx("0x4")),{classes:s,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on(Yx("0x5d"),c,{priority:Yx("0x99")}),n.on(Yx("0x9d"),c,{priority:Yx("0x99")}),t[Yx("0xc")][Yx("0x54")][Yx("0x35")]((()=>{let e=!1;const o=Array[Yx("0x27")](t[Yx("0xc")].document[Yx("0x5")][Yx("0x39")]());for(const{name:s,data:i}of o){const{group:o,type:r,id:x}=n._splitMarkerName(s);if(Yx("0x4f")!=o||Yx("0x32")!=r||i.oldRange)continue;if(!n[Yx("0xa")](x))continue;const a=n[Yx("0xd")](x).getRanges(),c=t[Yx("0x49")].get("Users").me;for(const t of n.getSuggestions())if(t[Yx("0x8f")]&&t[Yx("0x1b")]==c&&Yx("0x7f")==t[Yx("0xa1")]&&Yx("0x9b")==t[Yx("0x55")]&&t[Yx("0x53")]().every((t=>a[Yx("0x7a")]((e=>e.containsRange(t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Yx("0x8f")]&&(n[Yx("0x65")](),e=!0)}return e})),t[Yx("0xc")].document[Yx("0x35")]((e=>{const o=t[Yx("0x19")][Yx("0x5b")](Yx("0x9e"));if(!o||!o[Yx("0x6e")].has(e.batch))return!1;let s=!1;const i=t[Yx("0x49")].get(Yx("0x1f")).me,r=t[Yx("0xc")][Yx("0x54")][Yx("0x5")][Yx("0x81")](),x=Array[Yx("0x27")](t[Yx("0xc")][Yx("0x54")][Yx("0x5")][Yx("0x39")]()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:r}=n[Yx("0x1c")](t);return Yx("0x4f")==o&&Yx("0x44")==s&&r==i.id&&!e[Yx("0x84")]}));for(const t of r){if(Yx("0x67")!=t.type||Yx("0x73")!=t[Yx("0x92")]||1!=t[Yx("0x59")])continue;const n=e[Yx("0x90")](t.position,t[Yx("0x1a")][Yx("0x85")](1));if(!x[Yx("0x76")]((({data:t})=>t[Yx("0x13")][Yx("0x82")](n))))for(const{name:t,data:o}of x)if(n[Yx("0x12")](o.newRange)){e[Yx("0x47")](t,{range:n}),s=!0;break}}return s})),t.model[Yx("0x54")][Yx("0x35")]((e=>{let o=!1;const s=t[Yx("0x49")][Yx("0x5b")](Yx("0x1f")).me,i=n.getSuggestions().filter((t=>t[Yx("0x8f")]&&t[Yx("0x1b")]==s)),r=new Set,x=new Set;for(const t of i)if("tablePaste"==t.subType)for(const e of t[Yx("0xa3")]()){const n=e[Yx("0x89")]()[Yx("0x46")]();if(n)if(n.is("element",Yx("0x73"))&&oa(n)){t[Yx("0x45")](e[Yx("0x92")]),r[Yx("0x34")](n),o=!0;const s=n[Yx("0x2")],i=n[Yx("0x7b")],a=s&&s.is("element",Yx("0x73")),c=i&&i.is(Yx("0x2b"),Yx("0x73"));a&&!r[Yx("0x6f")](s)&&x[Yx("0x34")](s),c&&!r[Yx("0x6f")](i)&&x.add(i)}else n.is(Yx("0x2b"),"paragraph")&&n[Yx("0x1d")]&&(t[Yx("0x45")](e[Yx("0x92")]),o=!0)}else if("tablePasteCell"==t[Yx("0x55")]){if(!t[Yx("0x74")]||!t[Yx("0x74")][Yx("0x0")])continue;const e=t[Yx("0x74")].markerAttributes;if(e&&Object[Yx("0x50")](e).length)continue;const n=t.attributes[Yx("0x0")];let s=!0,r=!0;for(const e of i)if(e[Yx("0x55")]&&e[Yx("0x55")].startsWith(Yx("0x44"))){if(!e[Yx("0x74")][Yx("0x0")]){r=!1;break}if(e.id!=t.id&&e[Yx("0x74")].tablePasteChainId==n){s=!1;break}}r&&s&&(t[Yx("0xb")](),o=!0)}for(const t of r)e.remove(t);for(const t of x)e[Yx("0x6c")](t);return o})),t[Yx("0x5e")].for(Yx("0x42")).markerToHighlight({model:Yx("0x8c"),view:(t,e)=>l(t),converterPriority:"high"}),t[Yx("0x5e")][Yx("0x66")]("dataDowncast")[Yx("0x56")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[Yx("0x37")].showSuggestionHighlights?l(t,!1):null,converterPriority:"high"});const d=t[Yx("0x3a")][Yx("0x5f")];this.listenTo(d[Yx("0x54")],Yx("0x7c"),((t,e)=>{const n=[];for(const t of d[Yx("0x62")](e.content)[Yx("0x6")]())t.is(Yx("0x2b"),Yx("0x2c"))&&n.push(t);d[Yx("0x77")]((t=>{for(const e of n)t.move(t.createRangeIn(e),t.createPositionBefore(e)),t[Yx("0x51")](e)}))}))}}function oa(t){if(t.isEmpty)return!0;const e=t.getChild(0);return e.is(Yx("0x2b"),Yx("0x8a"))&&e[Yx("0x1d")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:i}of n[Yx("0x69")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=i)return!1;return!0}const ia=["TrackChangesEditing","handleSuggestionDescription","format","model","resizeTable","document","selection","getSelectedElement","getAttribute","data","plugins","discard","table","resizeTableWidth","getSuggestionCallback","handleResizeTableWidthCommand","getTableColumnsWidths","bind","change","getColumnGroupElement","*Format:* resize table","resizeColumnWidths","afterInit","markBlockFormat","formatBlock","TableColumnResizeEditing","tableWidth","get","_suggestionFactory","registerDescriptionCallback","getContainedElement","getSuggestions","editor","formatGroupId","_descriptionFactory","locale","commandParams"];var ra,xa;ra=ia,xa=110,function(t){for(;--t;)ra.push(ra.shift())}(++xa);const aa=function(t,e){return ia[t-=0]};class ca extends t.Plugin{[aa("0x17")](){if(!this[aa("0x21")][aa("0xb")].has(aa("0x1a")))return;const t=this[aa("0x21")][aa("0xb")][aa("0x1c")](aa("0x1"));t.enableCommand("resizeTableWidth",this.handleResizeTableWidthCommand[aa("0x12")](this)),t.enableCommand(aa("0x16"),this[aa("0x10")][aa("0x12")](this)),t[aa("0x1d")].registerCustomCallback(aa("0x19"),aa("0x5"),"accept",t[aa("0x1d")][aa("0xf")](aa("0x19"),null,aa("0xc"))),t._suggestionFactory.registerCustomCallback(aa("0x19"),"resizeTable",aa("0xc"),t[aa("0x1d")][aa("0xf")](aa("0x19"),null,"accept")),t[aa("0x23")][aa("0x1e")](this.handleSuggestionDescription[aa("0x12")](this))}handleResizeTableWidthCommand(t,e){const n=this[aa("0x21")][aa("0xb")][aa("0x1c")](aa("0x1")),o=this.editor.plugins[aa("0x1c")](aa("0x1a")),s=e[aa("0xd")]||this[aa("0x21")].model[aa("0x6")][aa("0x7")][aa("0x8")]();this[aa("0x21")][aa("0x4")][aa("0x13")]((()=>{const i=o[aa("0x14")](s);let r=i?o[aa("0x11")](i):null,x=s[aa("0x9")](aa("0x1b"))||null;const a=e[aa("0x1b")]||x,c=e.columnWidths||r,l=this.editor[aa("0xb")].get("Users").me;for(const t of n[aa("0x20")]()){const e=t[aa("0x1f")]();if(aa("0x5")===t.subType&&e===s){t.author!==l&&t.discard();const e=t[aa("0xa")][aa("0x0")];x=e[0][aa("0x1b")],r=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[aa("0x18")](s,{commandName:aa("0xe"),commandParams:[{tableWidth:x,columnWidths:r}],formatGroupId:aa("0x5")},[],aa("0x5"))}))}[aa("0x2")](t){const{data:e}=t;if(e&&aa("0x5")===e[aa("0x22")]){const t=aa("0x15");return{type:aa("0x3"),content:Yo(this[aa("0x21")][aa("0x24")],t)}}}}const la=["insertTemplate","plugins","Template","TrackChangesEditing","get"];var da,ua;da=la,ua=479,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.editor;t[ga("0x2")].has(ga("0x3"))&&t[ga("0x2")][ga("0x0")](ga("0x4")).enableCommand(ga("0x1"))}}const fa=["get","enableCommand","tableOfContents","plugins","editor","_descriptionFactory","TrackChangesEditing","registerElementLabel","insertTableOfContents","commands","afterInit"];var ha,pa;ha=fa,pa=334,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x6")](){const t=this[ba("0x0")];if(!t[ba("0x5")][ba("0x7")]("insertTableOfContents"))return;t[ba("0xa")][ba("0x7")](ba("0x2"))[ba("0x8")](ba("0x4"));const e=t.plugins[ba("0x7")](ba("0x2")),n=t.locale;e[ba("0x1")][ba("0x3")](ba("0x9"),(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const _a=["plugins","Title","_splitMarkerName","document","locale","has","registerPostFixer","nodeBefore","TrackChangesEditing","newRange","registerElementLabel","editor","isCollapsed","model","end","isEqual","isTouching","element","start","schema","differ","afterInit","suggestion","ELEMENT_TITLE","title-content","forward","get","getChangedMarkers"];var Ta,Ca;Ta=_a,Ca=497,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x0")](){const t=this[ya("0x12")];if(!t[ya("0x7")][ya("0xc")](ya("0x8")))return;const e=t[ya("0x7")][ya("0x5")](ya("0xf"));e._descriptionFactory[ya("0x11")](ya("0x3"),(()=>Yo(t[ya("0xb")],ya("0x2")))),t[ya("0x14")].document[ya("0xd")]((n=>{let o=!1;const s=Array.from(t[ya("0x14")][ya("0xa")][ya("0x1b")][ya("0x6")]());for(const{name:i,data:r}of s){const{group:s}=e[ya("0x9")](i);if(ya("0x1")!==s||!r[ya("0x10")])continue;const x=r[ya("0x10")],a=x[ya("0x15")][ya("0xe")];if(!a||!a.is(ya("0x18"),ya("0x3")))continue;if(!x[ya("0x19")][ya("0x17")](x[ya("0x15")]))continue;const c=t[ya("0x14")][ya("0x1a")].getNearestSelectionRange(x[ya("0x15")],ya("0x4"));if(c&&c[ya("0x13")]){const t=n.createRange(x.start,c[ya("0x19")]);t[ya("0x16")](x)||(n.updateMarker(i,{range:t}),o=!0)}o||(n.removeMarker(i),o=!0)}return o}))}}const Aa=["UndoEditing","plugins","afterInit","has","get","undo","redo","enableCommand"];var va,Ra;va=Aa,Ra=427,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{[Sa("0x7")](){const t=this.editor,e=t[Sa("0x6")][Sa("0x1")]("TrackChangesEditing");t.plugins[Sa("0x0")](Sa("0x5"))&&(e[Sa("0x4")](Sa("0x2")),e.enableCommand(Sa("0x3")))}}const La=["get","has","afterInit","requires","editor","enableCommand","plugins"];var Na,wa;Na=La,wa=490,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("0x3")](){return[Bx]}[Ma("0x2")](){const t=this[Ma("0x4")];t[Ma("0x6")][Ma("0x1")]("TableCaptionEditing")&&t.plugins[Ma("0x0")]("TrackChangesEditing")[Ma("0x5")]("toggleTableCaption")}}const Fa=["format","filter","bind","document","getAttribute","list.properties","listStart","editor","DocumentListUtils","*Format:* set start index to %0","_getSuggestionBlocks","*Format:* set order to reversed","change","reversed","handleListStartCommand","_descriptionFactory","toUpperCase","handleDescriptions","listType","locale","_LIST_","listReversed","length","_getTranslationKeyForListStyle","plugins","afterInit","handleListStyleCommand","from","_getSuggestionBlocksForListStyle","listStyle","commandParams","handleListReversedCommand","*Change to:* %0","model","TrackChangesEditing","selection","push","startIndex","has","numbered","isListItemBlock","get","markMultiRangeBlockFormat","getSelectedBlocks","enableCommand","isFirstBlockOfListItem","config","ELEMENT_","type","DocumentListPropertiesEditing","commandName","styles","DocumentListPropertiesUtils"];var Pa,Da;Pa=Fa,Da=329,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0xe")](){if(!this[Ba("0x31")][Ba("0xd")][Ba("0x1b")](Ba("0x26")))return;const t=this[Ba("0x31")][Ba("0x23")][Ba("0x1e")](Ba("0x2f")),e=this[Ba("0x31")][Ba("0xd")].get("TrackChangesEditing");t[Ba("0x28")]&&e[Ba("0x21")](Ba("0x12"),this[Ba("0xf")].bind(this)),t[Ba("0x2")]&&e.enableCommand(Ba("0xa"),this[Ba("0x14")][Ba("0x2c")](this)),t[Ba("0x1a")]&&e[Ba("0x21")](Ba("0x30"),this[Ba("0x3")][Ba("0x2c")](this)),e[Ba("0x4")].registerDescriptionCallback(this[Ba("0x6")].bind(this))}[Ba("0xf")](t,e={}){const n=this.editor[Ba("0xd")].get(Ba("0x17")),o=this[Ba("0x11")]();this[Ba("0x31")][Ba("0x16")].change((()=>{n[Ba("0x1f")](o,{commandName:"listStyle",commandParams:[{type:e[Ba("0x25")]}],formatGroupId:"listStyle"})}))}[Ba("0x14")](t,e={}){const n=this[Ba("0x31")][Ba("0xd")][Ba("0x1e")](Ba("0x17")),o=this[Ba("0x31")][Ba("0xd")][Ba("0x1e")](Ba("0x32")),s=this[Ba("0x34")]((t=>o[Ba("0x1d")](t)&&Ba("0x1c")===t.getAttribute(Ba("0x7"))));null!==s&&this[Ba("0x31")][Ba("0x16")][Ba("0x1")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Ba("0xa"),commandParams:[{reversed:e.reversed}],formatGroupId:Ba("0xa")})}))}[Ba("0x3")](t,e={}){const n=this.editor[Ba("0xd")][Ba("0x1e")](Ba("0x17")),o=this[Ba("0x31")][Ba("0xd")][Ba("0x1e")](Ba("0x32")),s=this[Ba("0x34")]((t=>o[Ba("0x1d")](t)&&Ba("0x1c")===t[Ba("0x2e")]("listType")));null!==s&&this[Ba("0x31")][Ba("0x16")][Ba("0x1")]((()=>{n[Ba("0x1f")](s,{commandName:Ba("0x30"),commandParams:[{startIndex:e[Ba("0x1a")]}],formatGroupId:Ba("0x30")})}))}[Ba("0x6")](t){const e=this[Ba("0x31")][Ba("0x8")],{data:n}=t;if(!n)return;let o,s;switch(n[Ba("0x27")]){case Ba("0x12"):o=Ba("0x15"),s={type:"format",content:Yo(e,o,Yo(e,this[Ba("0xc")](n.commandParams[0].type)))};break;case Ba("0xa"):o=n[Ba("0x13")][0].reversed?Ba("0x0"):"*Format:* set order to regular",s={type:Ba("0x2a"),content:Yo(e,o)};break;case"listStart":o=Ba("0x33"),s={type:Ba("0x2a"),content:Yo(e,o,n.commandParams[0][Ba("0x1a")])}}return s}[Ba("0x11")](){const t=this[Ba("0x31")].plugins[Ba("0x1e")](Ba("0x32"));let e=Array[Ba("0x10")](this[Ba("0x31")].model[Ba("0x2d")].selection[Ba("0x20")]());return e[Ba("0x19")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}[Ba("0x34")](t){const e=this[Ba("0x31")].plugins[Ba("0x1e")](Ba("0x32"));let n=Array[Ba("0x10")](this[Ba("0x31")][Ba("0x16")].document[Ba("0x18")][Ba("0x20")]())[Ba("0x2b")](t);if(!n[Ba("0xb")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[Ba("0x22")](t)&&o[Ba("0x19")](t);return o}[Ba("0xc")](t){return Ba("0x24")+this[Ba("0x31")][Ba("0xd")][Ba("0x1e")](Ba("0x29")).getListTypeFromListStyleType(t)[Ba("0x5")]()+Ba("0x9")+t[Ba("0x5")]().replace(/-/g,"_")}}const Ua=["registerCustomCallback","enqueueChange","accept","model","afterInit","has","tableCellHeight","tableBackgroundColor","getAttribute","subType","tableProperties","enableCommand","removeAttribute","document","editor","tableHeight","_getSuggestion","tableCellVerticalAlignment","tableWidth","getFirstPosition","join","get","tableBorderStyle","table","plugins","tableCellBorderWidth","*Format:* change table properties","start","getContainedElement","_suggestionFactory","_descriptionFactory","commandParams","formatBlock","data","getSuggestions","handleDiscardAction","getSuggestionCallback","_handlePropertyChange","TrackChangesTableProperties","discard","tableCellPadding","TablePropertiesEditing","TableUtils","handleSuggestionDescription","TrackChangesEditing","selection","tableCellHorizontalAlignment","tableCellProperties","format"];var Ga,Ha;Ga=Ua,Ha=260,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Wa=function(t,e){return Ua[t-=0]};class za extends t.Plugin{constructor(t){super(t),this[Wa("0x2c")]=["tableBorderColor",Wa("0x7"),"tableBorderWidth","tableAlignment",Wa("0x3"),Wa("0x0"),Wa("0x29")],this[Wa("0x20")]=["tableCellBorderColor","tableCellBorderStyle",Wa("0xa"),Wa("0x19"),"tableCellWidth",Wa("0x28"),"tableCellBackgroundColor",Wa("0x1f"),Wa("0x2")]}static get pluginName(){return Wa("0x17")}[Wa("0x26")](){const t=this[Wa("0x30")][Wa("0x9")][Wa("0x6")](Wa("0x1d"));if(this[Wa("0x30")][Wa("0x9")][Wa("0x27")](Wa("0x1a"))){for(const e of this.tableProperties)t[Wa("0x2d")](e,((t,n)=>{const o=this[Wa("0x30")][Wa("0x25")][Wa("0x2f")][Wa("0x1e")][Wa("0x4")]().findAncestor(Wa("0x8"));this._handlePropertyChange(e,[o],this.tableProperties,"tableProperties",t,n)}));t[Wa("0xe")][Wa("0x22")](Wa("0x11"),Wa("0x2c"),Wa("0x24"),t[Wa("0xe")][Wa("0x15")]("formatBlock",null,Wa("0x18"))),t[Wa("0xe")][Wa("0x22")]("formatBlock",Wa("0x2c"),Wa("0x18"),((t,e)=>this[Wa("0x14")](this.tableProperties,t,e))),t._suggestionFactory[Wa("0x22")](Wa("0x11"),"tableProperties",Wa("0x5"),(()=>!1))}if(this[Wa("0x30")][Wa("0x9")].has("TableCellPropertiesEditing")){for(const e of this.tableCellProperties)t[Wa("0x2d")](e,((t,n)=>{const o=this[Wa("0x30")][Wa("0x9")].get(Wa("0x1b")).getSelectionAffectedTableCells(this[Wa("0x30")][Wa("0x25")][Wa("0x2f")][Wa("0x1e")]);this[Wa("0x16")](e,o,this.tableCellProperties,Wa("0x20"),t,n)}));t[Wa("0xe")][Wa("0x22")](Wa("0x11"),Wa("0x20"),Wa("0x24"),t._suggestionFactory.getSuggestionCallback(Wa("0x11"),null,Wa("0x18"))),t._suggestionFactory[Wa("0x22")](Wa("0x11"),Wa("0x20"),Wa("0x18"),((t,e)=>this[Wa("0x14")](this[Wa("0x20")],t,e))),t[Wa("0xe")][Wa("0x22")](Wa("0x11"),"tableCellProperties","join",(()=>!1))}t[Wa("0xf")].registerDescriptionCallback((t=>this[Wa("0x1c")](t)))}[Wa("0x16")](t,e,n,o,s,i){const r=this[Wa("0x30")].plugins[Wa("0x6")]("TrackChangesEditing");this[Wa("0x30")][Wa("0x25")][Wa("0x23")](i.batch,(()=>{for(const t of e)if(this[Wa("0x1")](t,o))s(i);else{const e={};for(const o of n){const n=t[Wa("0x2a")](o);void 0!==n&&(e[o]=n)}s(i),r.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[Wa("0x14")](t,e,n){const o=e[0][Wa("0xc")].nodeAfter,s=n[Wa("0x10")][0];this[Wa("0x30")][Wa("0x25")].change((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Wa("0x2e")](n,o)}))}handleSuggestionDescription(t){if(t[Wa("0x12")])switch(t[Wa("0x2b")]){case Wa("0x2c"):return{type:Wa("0x21"),content:Yo(this[Wa("0x30")].locale,Wa("0xb"))};case Wa("0x20"):return{type:"format",content:Yo(this[Wa("0x30")].locale,"*Format:* change table cell properties")}}}[Wa("0x1")](t,e){const n=this.editor[Wa("0x9")][Wa("0x6")](Wa("0x1d"));for(const o of n[Wa("0x13")]({skipNotAttached:!0})){const n=o[Wa("0xd")]();if(o[Wa("0x2b")]===e&&n===t)return o}return null}}const Va=["getSuggestions","_adapter","_rangeIsInLocalUserInsertion","containerElement","formatInline","addSuggestion","getAttribute","clone","updateSuggestion","selection","pluginName","never","isInContent","substr","acceptSuggestion","always","consumable","_updateSuggestionData","after","_model","markInsertion","markMultiRangeDeletion","isBefore","removeClass","element","getShiftedBy","setTo","plugins","authorName","next","newRange","isObject","get","split","Users","for","_trackFormatChanges","sort","type","addComment","length","_checkSuggestionCorrectness","notReady","_mergeNestedSuggestions","hasCommentThread","size","getFirstRange","_cutOutSuggestionMarker","trackChanges","isInsideObject","writer","elementStart","suggestion","set","_createSuggestion","schema","enqueueChange","assign","isAtEnd","addMarkerName","rejected","commandName","editor","delete","clear","trackChanges.mergeNestedSuggestions","track-changes-user-not-found","_getSuggestionData","lowest","from","markers","isAfter","high","isNextTo","createRange","isExternal","removeMarker:suggestion:formatBlock","removeComment","insert","discardSelectedSuggestions","_suggestionFactory","return","forceDefaultExecution","values","dataDowncast","containsPosition","requires","adapter","highest","setAttribute","attributes","change:data","editing","registerPostFixer","filter","value","ck-suggestion-marker","createSelection","containsRange","change:_saved","insertion:discard","_refreshSuggestionsChain","@external","ck-suggestion-marker-formatBlock","isBlock","insertion:chain","trackChangesCommand","bindElementToMarker","some","track-changes-suggestion-not-found","marker-count","has","differ","discardAllSuggestions","addRange","_defaultCallbacks","_customCallbacks","deletion:join","$graveyard","deletion","before","getRanges","_joinWithAdjacentSuggestions","then","join","formatGroupId","discardSuggestion","addSuggestionData","locale","getAllAdjacentSuggestions","_handleNewSuggestionMarker","markerToHighlight","splice","originalSuggestionId","createPositionAt","getMarkers","suggestionLoaded","insertion","insertContent","isArray","define","author","acceptSelectedSuggestions","deletion:accept","addMarker:suggestion","insertion:accept","insertion:","isUndo","chain","isLimit","fetchCommentThread","showSuggestionHighlights","addUser","$textProxy","formatInline:","_commentsRepository","end","root","item","subType","splitPosition","consume","buildSuggestion","getChanges","accept","_splitMarkerName","listenTo","_removeSuggestion","formatBlock:discard","isAtStart","getChangedMarkers","elementEnd","markBlockFormat","_editor","targetPosition","getWalker","_isForcedDefaultExecutionBlock","conversion","deletion:chain","CommentsRepository","default","move","commentThread","_findSuggestions","activeMarkers","previous","_joinSuggestions","accepted","multipleBlocks","every","document","getAncestors","change","getSuggestionCallback","formatBlock:join","removeMarker","keys","isOwn","removed","discard","markInlineFormat","unbind","getIntersection","_getExternalAuthor","formatBlock:","change:activeMarkers","isRemovable","deletion:discard","track-changes-command-not-found","enableReadOnlyMode","suggestion-type","getDifference","map","external:","_enabledCommands","creator","formatBlock","isIntersectingWithRange","range","formatInline:discard","addMarker:suggestion:formatBlock","_setSuggestionRange","deletion:","stopListening","getUser","position","markerName","tablePasteChainId","PENDING_ACTION_SUGGESTION","authoredAt","push","parent","fire","markerNameToElements","addCommentThread","updateMarker","nodeAfter","markerReady","oldRange","_suggestions","howMany","mapper","_registerDefaultCallbacks","dataToMarker","detach","batch","nodeBefore","acceptAllSuggestions","hasComments","containsRangeInObject","formatInline:chain","multi","add","_descriptionFactory","ck-suggestion-marker-","options","error-saving-suggestion-data-suggestion-discarded","forward","ready","data","trackChanges.trackFormatChanges","isSelectable","config","getItems","getMultiRangeId","update:suggestion","isDocumentOperation","model","execute","_saved","getFirstMarker","reconvertMarker","init","_setSuggestionData","createdAt","getLastMatchingPosition","_addThreadToSuggestion","catch","track-changes-adapter-missing-getsuggestion","toViewElement","PendingActions","data-suggestion","dataReady","remove","isLocal","stop","refresh","suggestionUnloaded","_suggestionState","addHighlight","start","setSelection","_isDataLoaded","_addSuggestionMarker","markerToData","isCollapsed","backward","createElement","getCustomProperty","removeMarkers","isMultiRange","editingDowncast","name","deleteContent","track-changes-suggestion-data-mismatch","widget","_getAuthorFromId","markDeletion","suggestionChanged","rootName","addClass","moveTargetPosition","isEqual","commands","enableCommand","ck-suggestion-marker--active","low","getSuggestion","elementToElement","upcast","getNearestSelectionRange","_breakSuggestionMarker","includes"];var Ka,qa;Ka=Va,qa=162,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[Xa("0xf7")](){return["CommentsRepository",i.Users,t.PendingActions,cs,ms,Rs,ws,Bs,Ws,$s,ei,ri,ja,ui,pi,yi,Si,Fi,Gi,Ki,Ji,nr,xr,ur,pr,Cr,Rr,wr,jr,zr,$r,tx,ix,dx,px,Cx,Sx,Mx,Bx,zx,$x,Oa,na,ca,Ea,za,ma,ka,Ia]}static get[Xa("0xab")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[Xa("0x32")]((t=>String.fromCharCode(t))).join("")}super(t),this.set(Xa("0x16"),[]),this.on(Xa("0x2b"),((e,n,o,s)=>{this._model.change((()=>{for(const e of[...s,...o])this[Xa("0xb4")].markers[Xa("0x110")](e)&&t[Xa("0xfd")][Xa("0x6d")](e)}))})),this[Xa("0x5b")]=new ss(this.editor.model[Xa("0xd8")],this[Xa("0xdf")][Xa("0x121")]),this[Xa("0xa2")]=null,this[Xa("0xf1")]=new Qa(this[Xa("0xdf")]),this._suggestions=new Map,this._commentsRepository=t[Xa("0xbc")][Xa("0xc1")](Xa("0x11")),this._enabledCommands=new Set,this._model=this[Xa("0xdf")][Xa("0x69")],this[Xa("0x7e")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[Xa("0x64")].define(Xa("0x62"),Xa("0x12")),this[Xa("0xc5")]=t.config[Xa("0xc1")]("trackChanges.trackFormatChanges"),t[Xa("0x64")][Xa("0x12d")](Xa("0xe2"),!0),this[Xa("0xcc")]=t[Xa("0x64")][Xa("0xc1")](Xa("0xe2")),this[Xa("0x10b")]=new u(t,this[Xa("0x34")]),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,53,50])}[Xa("0x6e")](){const t=this[Xa("0xdf")];t[Xa("0xf")][Xa("0xc4")]("editingDowncast")[Xa("0x124")]({model:Xa("0xd5"),view:t=>{const{id:e,type:n}=this[Xa("0x3")](t[Xa("0x40")]),o=[Xa("0x101"),"ck-suggestion-marker-"+n];let s=3e3;return this[Xa("0x16")][Xa("0xa0")](t[Xa("0x40")])&&(o[Xa("0x44")](Xa("0x99")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[Xa("0xc4")](Xa("0xf5"))[Xa("0x5a")]((e=>{e.on(Xa("0x131"),((e,n,o)=>{if(!o[Xa("0x5d")].showSuggestionHighlights)return;const s=n[Xa("0x13f")];if(!s)return;const i=o[Xa("0x4f")][Xa("0x75")](s);t[Xa("0x69")][Xa("0xd8")][Xa("0xc0")](s)&&i&&!i[Xa("0x88")](Xa("0x8f"))&&i.is(Xa("0xa4"))&&(0,x.toWidget)(i,o[Xa("0xd3")])}),{priority:Xa("0xe9")})})),t[Xa("0xf")][Xa("0xc4")]("dataDowncast")[Xa("0x124")]({model:Xa("0xd5"),view:(t,e)=>{if(!e[Xa("0x5d")].showSuggestionHighlights)return null;const{type:n}=this[Xa("0x3")](t.markerName);return{classes:[Xa("0x101"),Xa("0x5c")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[Xa("0x13f")].is(Xa("0xaa")))return void s[Xa("0xb1")].consume(o[Xa("0x13f")],n[Xa("0x8c")]);const i=s[Xa("0x4f")][Xa("0x75")](o[Xa("0x13f")]);if(!o.item.is(Xa("0xb9"))||!t[Xa("0x69")][Xa("0xd8")][Xa("0x109")](o[Xa("0x13f")])||i[Xa("0x88")](Xa("0x7f")))return;const{id:r}=this[Xa("0x3")](o[Xa("0x40")]);s.writer[Xa("0x94")]([Xa("0x101"),Xa("0x108")],i),s.writer[Xa("0xfa")](Xa("0x77"),r,i),s[Xa("0x4f")][Xa("0x10c")](i,o.markerName),e&&(this[Xa("0x16")][Xa("0xa0")](o[Xa("0x40")])?s[Xa("0xd3")][Xa("0x94")](Xa("0x99"),i):s[Xa("0xd3")][Xa("0xb8")](Xa("0x99"),i));for(const e of t[Xa("0x69")].createRangeIn(o[Xa("0x13f")])[Xa("0x65")]())s.consumable[Xa("0x142")](e,n[Xa("0x8c")]);s[Xa("0xb1")][Xa("0x142")](o[Xa("0x13f")],n[Xa("0x8c")])};t[Xa("0xf")][Xa("0xc4")](Xa("0xf5")).add((t=>{t.on(Xa("0x3a"),((t,e,o)=>{o[Xa("0x5d")][Xa("0x138")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Xa("0xf9")})})),t[Xa("0xf")][Xa("0xc4")](Xa("0xf5"))[Xa("0x84")]({model:Xa("0xd5"),view:(t,e)=>e[Xa("0x5d")].showSuggestionHighlights?null:{group:Xa("0xd5"),name:t[Xa("0xae")](11)}}),t.conversion[Xa("0xc4")](Xa("0x9d"))[Xa("0x9c")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[Xa("0xa7")](Xa("0x30"))+":"+t.getAttribute("id");return t.getAttribute(Xa("0x10f"))&&(n+=":"+t[Xa("0xa7")](Xa("0x10f"))),e[Xa("0x87")]("$marker",{"data-name":n})}}),t[Xa("0xf")][Xa("0xc4")](Xa("0x9d"))[Xa("0x51")]({view:Xa("0xd5")}),t.conversion[Xa("0xc4")](Xa("0x8b")).add((t=>{t.on(Xa("0x3a"),n(),{priority:Xa("0xe9")})})),t.conversion[Xa("0xc4")](Xa("0x8b")).add((t=>{t.on(Xa("0xed"),((t,e,n)=>{const o=n.mapper[Xa("0x47")](e[Xa("0x40")]);if(o)for(const t of o)t[Xa("0x88")](Xa("0x7f"))||(n[Xa("0xd3")][Xa("0xb8")]([Xa("0x101"),Xa("0x108"),Xa("0x99")],t),n[Xa("0xd3")].removeAttribute(Xa("0x77"),t),n.mapper.unbindElementFromMarkerName(t,e[Xa("0x40")]))}),{priority:"high"})})),t[Xa("0x69")][Xa("0x1c")][Xa("0xfe")]((e=>{let n=!1;const o=Array[Xa("0xe6")](t[Xa("0x69")].document.differ[Xa("0x8")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0x3")](x);if(Xa("0xd5")!==o)continue;const d=this[Xa("0x4d")][Xa("0xc1")](l);if(null!=a.newRange)if(Xa("0xa5")==c&&(n=n||Ya(a[Xa("0xbf")],x,e,t[Xa("0x69")][Xa("0xd8")])),a[Xa("0xbf")].isCollapsed||"$graveyard"==a[Xa("0xbf")][Xa("0x13e")].rootName||Xa("0x36")==c&&!ec(a[Xa("0xbf")])||Xa("0x118")==c&&(Za(r=a[Xa("0xbf")])||(i=r).start[Xa("0x45")]==i[Xa("0x13d")][Xa("0x54")]&&i[Xa("0x80")][Xa("0xdb")]))e[Xa("0x21")](x),n=!0;else{if(!d||!d.isInContent)continue;s[Xa("0x5a")](d)}}var i,r;return s[Xa("0xce")]>0&&(n=!!this[Xa("0x11b")](s)||n),n})),t[Xa("0x69")][Xa("0x1c")].registerPostFixer((e=>{let n=!1;for(const o of t[Xa("0x69")][Xa("0x1c")][Xa("0x111")][Xa("0x1")]()){if(Xa("0xef")!=o[Xa("0xc7")])continue;const s=o[Xa("0x3f")][Xa("0xba")](o[Xa("0xc9")]);if(s.isAtEnd)for(const i of this[Xa("0x4d")][Xa("0xf4")]()){if(i.isMultiRange||!i[Xa("0xad")])continue;if(Xa("0x36")!=i.type)continue;const r=i[Xa("0xcf")]();if(r[Xa("0x80")].parent!=r.end[Xa("0x45")]&&r[Xa("0x13d")].isEqual(o[Xa("0x3f")])){const o=t[Xa("0x69")][Xa("0xeb")](r[Xa("0x80")],s);e[Xa("0x49")](i[Xa("0x6c")](),{range:o}),n=!0}}}return n})),t.model[Xa("0xe7")].on(Xa("0x67"),((t,e,n)=>{if(null==n){const{id:t}=this[Xa("0x3")](e[Xa("0x8c")]),n=this[Xa("0x4d")][Xa("0xc1")](t);n&&n[Xa("0xdc")](e[Xa("0x8c")])}})),t[Xa("0x69")][Xa("0x1c")].on(Xa("0xfc"),(()=>{const e=Array[Xa("0xe6")](t[Xa("0x69")].document[Xa("0x111")][Xa("0x8")]())[Xa("0xff")]((t=>Xa("0xd5")===this[Xa("0x3")](t[Xa("0x8c")]).group));if(0===e[Xa("0xc9")])return;e[Xa("0xc6")](((t,e)=>{const n=t[Xa("0x61")][Xa("0x4c")],o=e[Xa("0x61")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Xa("0x80")][Xa("0xb7")](o[Xa("0x80")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0x3")](t);if(null===s[Xa("0x4c")]){const e=this[Xa("0x123")](t);o.add(e)}else{const t=this[Xa("0x4d")].get(e);null!==s[Xa("0xbf")]||t.isInContent?(n[Xa("0x5a")](t.head),o[Xa("0x5a")](t)):this[Xa("0x5")](t)}}o[Xa("0xce")]>0&&this[Xa("0x106")](o);for(const t of n)this[Xa("0x46")](Xa("0x92"),t)})),t.model.on("applyOperation",((e,n)=>{const o=n[0];if(!this[Xa("0x4d")][Xa("0xce")])return;if(!o[Xa("0x68")])return;if(o.batch[Xa("0x134")]||!o[Xa("0x53")][Xa("0x7a")])return;let s,i;switch(o[Xa("0xc7")]){case Xa("0xef"):s=t.model[Xa("0x127")](o[Xa("0x3f")]),i=s[Xa("0xba")](o[Xa("0x4e")]);break;case Xa("0xc2"):s=t[Xa("0x69")][Xa("0x127")](o[Xa("0x141")]),i=t[Xa("0x69")][Xa("0x127")](o[Xa("0x95")]);break;case Xa("0x13"):s=t[Xa("0x69")].createPositionAt(o[Xa("0xc")]),i=s.getShiftedBy(o.howMany);break;default:return}const r=t[Xa("0x69")][Xa("0xeb")](s,i);t.model[Xa("0x1e")]((()=>{for(const{suggestion:t,meta:e}of this[Xa("0x15")](r)){if(t.isMultiRange)continue;if("formatInline"==t[Xa("0xc7")])continue;const n=t[Xa("0x61")]&&t.data[Xa("0x1a")];(Xa("0x36")!=t.type||Xa("0xc2")==o.type&&!n)&&(e.containsRangeInObject||Xa("0x12a")==t[Xa("0xc7")]&&e[Xa("0x23")]||t.getFirstRange().containsRange(r)&&this[Xa("0x9f")](t,s,i))}}))}),{priority:Xa("0xe5")}),t[Xa("0x69")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this._isForcedDefaultExecutionBlock)return;if(!this[Xa("0x10b")][Xa("0x100")])return;if(o[Xa("0x85")])return;const i=t.model[Xa("0xd8")],{start:r,end:x}=o[Xa("0xcf")](),a=r[Xa("0x4a")]&&i[Xa("0x136")](r[Xa("0x4a")])?null:i.getNearestSelectionRange(r,Xa("0x5f")),c=x.nodeBefore&&i[Xa("0x136")](x.nodeBefore)?null:i[Xa("0x9e")](x,Xa("0x86")),l=t.model[Xa("0xeb")](a?a.start:r,c?c[Xa("0x13d")]:x);t.model[Xa("0x1e")]((e=>{this[Xa("0x91")](l);const n=t[Xa("0x69")][Xa("0xd8")][Xa("0x9e")](l[Xa("0x80")]);o.is("documentSelection")?e.setSelection(n):o[Xa("0xbb")](n)})),e[Xa("0x7b")]()}),{priority:e.priorities.normal+10}),t[Xa("0x69")].on(Xa("0x12b"),((e,n)=>{const o=n[n[Xa("0xc9")]-1];o&&o[Xa("0xf3")]||this[Xa("0xe")]||this[Xa("0x10b")].value&&(t[Xa("0x69")][Xa("0x1e")]((()=>{let o=t[Xa("0x69")][Xa("0x12b")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o[Xa("0xa8")]();const s=o[Xa("0x13d")][Xa("0x54")],i=t[Xa("0x69")][Xa("0xd8")];s&&i.isBlock(s)&&!i[Xa("0xc0")](s)&&(o=t[Xa("0x69")][Xa("0xeb")](o[Xa("0x80")],t.model[Xa("0x127")](s,Xa("0x13d")))),this[Xa("0xb5")](o)})),e[Xa("0x7b")]())}),{priority:"high"}),this[Xa("0xdf")][Xa("0x97")][Xa("0x5a")]("trackChanges",this[Xa("0x10b")]),this[Xa("0x98")](Xa("0xd1"));const o=new p(t,this[Xa("0x4d")]);t[Xa("0x97")].add("acceptSuggestion",o),this[Xa("0x98")](Xa("0xaf"));const s=new C(t,this[Xa("0x4d")]);t[Xa("0x97")][Xa("0x5a")](Xa("0x11f"),s),this[Xa("0x98")](Xa("0x11f")),t.commands[Xa("0x5a")](Xa("0x55"),new F(t,o,this._suggestions)),this[Xa("0x98")](Xa("0x55")),t[Xa("0x97")].add(Xa("0x112"),new F(t,s,this._suggestions)),this[Xa("0x98")]("discardAllSuggestions"),t[Xa("0x97")][Xa("0x5a")](Xa("0x12f"),new U(t,o,this[Xa("0x4d")])),this[Xa("0x98")](Xa("0x12f")),t.commands[Xa("0x5a")](Xa("0xf0"),new U(t,s,this[Xa("0x4d")])),this[Xa("0x98")](Xa("0xf0"));const i=t.plugins[Xa("0xc1")](Xa("0x11"));this[Xa("0x4")](i,Xa("0xc8"),((t,{threadId:e})=>{const n=this[Xa("0x4d")][Xa("0xc1")](e);n&&n[Xa("0x14")]&&1===n[Xa("0x14")][Xa("0xc9")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:Xa("0x9a")}),this.listenTo(i,Xa("0xee"),((t,{threadId:e})=>{const n=this[Xa("0x4d")].get(e);n&&n[Xa("0x14")]&&!n[Xa("0x14")][Xa("0xc9")]&&this[Xa("0xb2")](e,{hasComments:!1})}),{priority:"low"})}set[Xa("0xf8")](t){if(this[Xa("0xa2")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[Xa("0xa2")]=t}get[Xa("0xf8")](){return this[Xa("0xa2")]}[Xa("0xa1")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[Xa("0xf4")]())t&&!e[Xa("0xad")]||n[Xa("0x44")](e);return e?n[Xa("0x32")]((t=>t.toJSON())):n}[Xa("0x9b")](t){const n=this[Xa("0x4d")][Xa("0xc1")](t);if(!n)throw new e.CKEditorError(Xa("0x10e"),this);return n}hasSuggestion(t){return this[Xa("0x4d")].has(t)}[Xa("0x120")](t){const{authorId:e,id:n,attributes:o}=t,[s,i]=t[Xa("0xc7")][Xa("0xc2")](":"),r=this[Xa("0x4d")][Xa("0xc1")](n)||this[Xa("0xd7")](s,i,n,e,o);if(this[Xa("0x72")](r),this[Xa("0xca")](r,s,i||null,e),r.createdAt=t[Xa("0x70")],r._isDataLoaded=!0,o&&o[Xa("0x107")]){const t=o[Xa("0x107")],e=this[Xa("0x29")](t[Xa("0xbd")]);r[Xa("0x43")]=t[Xa("0x70")],r.author=e,r[Xa("0xec")]=!0}else r[Xa("0x43")]=t.createdAt;switch(t[Xa("0x61")]&&(r[Xa("0x61")]=t.data),t[Xa("0xfb")]&&(r[Xa("0xfb")]=t.attributes),this[Xa("0xa2")]&&this[Xa("0xa2")][Xa("0xa6")]||(r[Xa("0x6b")]=!0),this[Xa("0x7e")][Xa("0xc1")](r)){case Xa("0xcb"):this._suggestionState[Xa("0xd6")](r,"dataReady");break;case"markerReady":r.isInContent?(this._refreshSuggestionsChain(new Set([r])),this._joinWithAdjacentSuggestions(new Set([r])),this[Xa("0x7e")][Xa("0xd6")](r,Xa("0x60")),this[Xa("0x46")](Xa("0x129"),r)):this[Xa("0x7e")][Xa("0xd6")](r,Xa("0x24"))}return r}[Xa("0xaf")](t){this[Xa("0xf3")]((()=>{this[Xa("0xdf")].model[Xa("0x1e")]((()=>{for(const e of t[Xa("0x122")]())e[Xa("0x2")]()}))}))}[Xa("0x11f")](t){this[Xa("0xf3")]((()=>{this.editor[Xa("0x69")][Xa("0x1e")]((()=>{for(const e of t[Xa("0x122")]())e[Xa("0x25")]()}))}))}[Xa("0x98")](t,n){const o=this[Xa("0xdf")].commands[Xa("0xc1")](t);if(!o)throw new e.CKEditorError(Xa("0x2e"),this,{commandName:t});this[Xa("0x34")].add(o),n&&o.on("execute",((t,e)=>{this.trackChangesCommand[Xa("0x100")]&&(this[Xa("0xe")]||e.length>0&&e[e.length-1]&&e[e[Xa("0xc9")]-1][Xa("0xf3")]||(t[Xa("0xf2")]=n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[Xa("0x7b")]()))}),{priority:"high"})}[Xa("0xf3")](t){let n,o;const s=this[Xa("0xe")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[Xa("0xb5")](t,n=null,o={}){if(t[Xa("0x85")])return null;const s=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")]("Users").me;for(const{suggestion:e,meta:s}of this._findSuggestions(t,Xa("0x12a")))if(s.isOwn){if(!s[Xa("0xea")]){if(s.containsRangeInObject){if(!this._mergeNestedSuggestions||!ic(e,o))continue;return e}if(ic(e,o))return e;this[Xa("0x9f")](e,t.start,t[Xa("0x13d")]);break}if(n==e[Xa("0x140")]&&ic(e,o)){const n=e[Xa("0xcf")]();return n.start[Xa("0x96")](t[Xa("0x13d")])?this[Xa("0x3b")](e,this[Xa("0xb4")][Xa("0xeb")](t.start,n[Xa("0x13d")])):this._setSuggestionRange(e,this[Xa("0xb4")][Xa("0xeb")](n[Xa("0x80")],t[Xa("0x13d")])),e}}const i=(0,e.uid)(),r=s.id,x=n?Xa("0x133")+n:Xa("0x12a"),a=this[Xa("0x6f")]({id:i,type:x,createdAt:new Date,authorId:r,attributes:o});return this[Xa("0x83")](x,i,r,t),a}markMultiRangeInsertion(t,n=Xa("0x59"),o={}){const s=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")](Xa("0xc3")).me,i=this._suggestionFactory[Xa("0x1f")](Xa("0x12a"),n,Xa("0x11d"));for(const e of this[Xa("0xa1")]())if(e.author.id==s.id&&"insertion"==e[Xa("0xc7")]&&e[Xa("0x140")]==n&&ic(e,o)&&(i(e.getRanges(),t)||i(t,e[Xa("0x11a")]()))){for(const n of t)e[Xa("0x113")](n);return e}for(const{suggestion:e,meta:n}of this[Xa("0x15")](t,"insertion")){if(!n[Xa("0x23")])continue;if(!this[Xa("0xcc")]&&n.containsRangeInObject)continue;if(!ic(e,o))continue;let s=!0;for(const n of e.getRanges())for(const e of t)if(!n[Xa("0x103")](e)){s=!1;break}if(s)return e}const r=(0,e.uid)(),x=s.id,a=Xa("0x133")+n,c=this[Xa("0x6f")]({id:r,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Xa("0x83")](a,r,x,e,Zo[Xa("0x66")]());return c}[Xa("0x26")](t,n,o=null,s={}){if(o=o||tc(n),t.isCollapsed)return null;if(Xa("0xac")===this[Xa("0xc5")]){const e=this._suggestionFactory[Xa("0x1f")]("formatInline",o,Xa("0x2"));return this[Xa("0xf3")]((()=>e([t],n,s))),null}const i=this.editor[Xa("0xbc")][Xa("0xc1")]("Users").me,r=[];if("always"!==this[Xa("0xc5")])for(const{suggestion:e,meta:n}of this[Xa("0x15")](t,Xa("0x12a")))n[Xa("0x23")]&&!n.isInsideObject&&r[Xa("0x44")](...e[Xa("0x11a")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Xa("0x28")](o);e&&n.push(e)}return n}(t,r),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Xa("0xc9")];){const o=n[e][Xa("0x31")](t);n[Xa("0x125")](e,1,...o),e+=o.length}}return n}(t,r);x[Xa("0xc9")]&&this[Xa("0xb4")][Xa("0x1e")]((()=>{for(const t of x){const e=this[Xa("0xf1")][Xa("0x1f")](Xa("0xa5"),o,Xa("0x2"));this[Xa("0xf3")]((()=>e([t],n,s)))}}));for(const t of a){let r=null,x=t[Xa("0x80")],a=t.end;for(const{suggestion:e,meta:n}of this[Xa("0x15")](t,Xa("0xa5"))){if(!n[Xa("0x23")])continue;if(e[Xa("0x140")]!=o)continue;if(!ic(e,s))continue;const i=e[Xa("0xcf")]();if(i[Xa("0x103")](t,!0))return null;x=x.isBefore(i[Xa("0x80")])?x:i[Xa("0x80")],a=a.isAfter(i.end)?a:i[Xa("0x13d")],r?i[Xa("0x80")][Xa("0xb7")](r[Xa("0xcf")]()[Xa("0x80")])?(r[Xa("0x89")](),r=e):e.removeMarkers():r=e}const c=this[Xa("0xb4")][Xa("0xeb")](x,a);if(r)this[Xa("0x3b")](r,c);else{const t=(0,e.uid)(),r=i.id;this[Xa("0x6f")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:r,attributes:s}),this[Xa("0x83")](Xa("0x13b")+o,t,r,c)}}return null}[Xa("0xa")](t,n,o=[],s=null,i={}){n.formatGroupId||(n[Xa("0x11e")]=n[Xa("0xde")]),n.multipleBlocks=t.is(Xa("0x38")),s=s||tc(n);const r=o.map((t=>nc(t,this[Xa("0xb4")]))),x=t.is(Xa("0x38"))?t:nc(t,this._model);if(Xa("0xac")===this._trackFormatChanges){const t=this._suggestionFactory.getSuggestionCallback(Xa("0x36"),s,"accept");return this[Xa("0xf3")]((()=>t([x],n,i))),null}r[Xa("0x44")](x);let a=!0;for(const t of r)if(!this[Xa("0xa3")](t)){a=!1;break}if(a&&Xa("0xb0")!==this[Xa("0xc5")]){const t=this[Xa("0xf1")].getSuggestionCallback(Xa("0x36"),s,Xa("0x2"));return this.forceDefaultExecution((()=>t([x],n,i))),null}let c=null,l=x[Xa("0x80")],d=x[Xa("0x13d")];for(const{suggestion:t,meta:e}of this[Xa("0x15")](x,Xa("0x36"))){if(!e[Xa("0x23")])continue;if(e.isNextTo||e.containsRangeInObject||e[Xa("0xd2")])continue;if(t[Xa("0x61")][Xa("0x11e")]!=n.formatGroupId)continue;if(!ic(t,i))continue;const o=t[Xa("0xcf")]();if(t[Xa("0x140")]==s){if(o[Xa("0x103")](x,!0))return null;l=l[Xa("0xb7")](o[Xa("0x80")])?l:o[Xa("0x80")],d=d.isAfter(o[Xa("0x13d")])?d:o[Xa("0x13d")],c?o.start[Xa("0xb7")](c[Xa("0xcf")]()[Xa("0x80")])?(c[Xa("0x89")](),c=t):t[Xa("0x89")]():c=t}else{const e=x[Xa("0x28")](o);this._cutOutSuggestionMarker(t,e)}}const u=this.editor.plugins[Xa("0xc1")](Xa("0xc3")).me,g=(0,e.uid)(),m=u.id;if(c)return this[Xa("0x3b")](c,this[Xa("0xb4")][Xa("0xeb")](l,d)),c;{const t=this._setSuggestionData({id:g,type:Xa("0x2a")+s,data:n,createdAt:new Date,authorId:m,attributes:i});return this[Xa("0x83")](Xa("0x2a")+s,g,m,this[Xa("0xb4")][Xa("0xeb")](l,d)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,i={}){n[Xa("0x11e")]||(n[Xa("0x11e")]=n.commandName);const r=t[0];n.multipleBlocks=r.is(Xa("0x38")),s=s||tc(n);const x=o.map((t=>nc(t,this._model))),a=r.is(Xa("0x38"))?t:t.map((t=>nc(t,this._model)));if("never"===this[Xa("0xc5")]){const t=this[Xa("0xf1")].getSuggestionCallback(Xa("0x36"),s,Xa("0x2"));return this[Xa("0xf3")]((()=>t(a,n,i))),null}x[Xa("0x44")](...a);let c=!0;for(const t of x)if(!this[Xa("0xa3")](t)){c=!1;break}if(c&&Xa("0xb0")!==this[Xa("0xc5")]){const t=this._suggestionFactory[Xa("0x1f")](Xa("0x36"),s,"accept");return this[Xa("0xf3")]((()=>t(a,n,i))),null}const l=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")]("Users").me;for(const t of this.getSuggestions()){if(t[Xa("0x12e")].id!=l.id)continue;if(Xa("0x36")!=t.type||t[Xa("0x61")][Xa("0x11e")]!=n[Xa("0x11e")])continue;if(!ic(t,i))continue;const e=t[Xa("0x140")]==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t[Xa("0x128")]()){const i=s.getRange();if(o[Xa("0x96")](i)){e?(a[Xa("0x125")](n,1),n--):t.removeMarker(s[Xa("0x8c")]);break}}}}if(0==a.length)return null;const d=this[Xa("0xf1")][Xa("0x1f")](Xa("0x36"),s,Xa("0x11d"));for(const t of this.getSuggestions())if(t[Xa("0x12e")].id==l.id&&Xa("0x36")==t[Xa("0xc7")]&&t[Xa("0x61")][Xa("0x11e")]==n.formatGroupId&&t.subType==s&&ic(t,i)&&(d(t[Xa("0x11a")](),a)||d(a,t[Xa("0x11a")]()))){for(const e of a)t[Xa("0x113")](e);return t}const u=(0,e.uid)(),g=l.id,m=Xa("0x2a")+s,f=this[Xa("0x6f")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[Xa("0x83")](m,u,g,t,Zo.getMultiRangeId());return f}[Xa("0x91")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")](Xa("0xc3")).me,i=new r.LiveRange(t[Xa("0x80")],t[Xa("0x13d")]);for(const{suggestion:t,meta:e}of this[Xa("0x15")](i,"insertion"))if(e[Xa("0x23")]&&!e[Xa("0xea")])if(t[Xa("0x8a")]){const e=t[Xa("0x11a")]()[Xa("0xff")]((t=>Xa("0x117")!=t[Xa("0x13e")][Xa("0x93")]));if(e[Xa("0x1b")]((t=>i[Xa("0x103")](t,!0)))&&t[Xa("0x25")](),e.some((t=>t[Xa("0x103")](i,!0)))){const t=this._suggestionFactory[Xa("0x1f")]("deletion",n,Xa("0x2"));return this.forceDefaultExecution((()=>t([i],null,o))),null}}else{const e=i[Xa("0x28")](t[Xa("0xcf")]());null!==e&&t._onDiscard([e],null,o)}if(i[Xa("0x52")](),i[Xa("0x85")]||Xa("0x117")==i[Xa("0x13e")].rootName)return null;let x=null,a=i.start,c=i[Xa("0x13d")];const l=this[Xa("0x15")](i,"deletion");for(const{suggestion:t,meta:e}of l){const n=this._model[Xa("0xeb")](a,c);if(e[Xa("0x23")]&&(this[Xa("0xcc")]||!e[Xa("0x57")]&&!e[Xa("0xd2")]))if(t[Xa("0x8a")]){if(!ic(t,o))continue;let e=!0;for(const o of t[Xa("0x11a")]()){if(o[Xa("0x103")](n,!0))return t;n.containsRange(o)||(e=!1)}e&&t[Xa("0x25")]()}else{const e=t[Xa("0xcf")]();if(e[Xa("0x103")](n,!0))return t;if(!ic(t,o)){n[Xa("0x103")](e)?t[Xa("0x89")]():e.containsPosition(a)?a=e[Xa("0x13d")]:e.containsPosition(c)&&(c=e[Xa("0x80")]);continue}a=a[Xa("0xb7")](e.start)?a:e.start,c=c[Xa("0xe8")](e.end)?c:e[Xa("0x13d")],o=Object[Xa("0xda")]({},t[Xa("0xfb")]),x?e.start[Xa("0xb7")](x[Xa("0xcf")]()[Xa("0x80")])?(x[Xa("0x89")](),x=t):t[Xa("0x89")]():x=t}}if(x)return this._setSuggestionRange(x,this[Xa("0xb4")][Xa("0xeb")](a,c)),x;{const t=(0,e.uid)(),i=this._model.createRange(a,c),r=s.id,x=n?Xa("0x3c")+n:Xa("0x118"),l=this[Xa("0x6f")]({id:t,type:x,createdAt:new Date,authorId:r,attributes:o});return this._addSuggestionMarker(x,t,r,i),l}}[Xa("0xb6")](t,n=Xa("0x59"),o={}){const s=this[Xa("0xdf")][Xa("0xbc")].get(Xa("0xc3")).me,i=t[Xa("0x32")]((t=>new r.LiveRange(t[Xa("0x80")],t[Xa("0x13d")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Xa("0x15")](i,Xa("0x12a")))e[Xa("0x23")]&&!e.isNextTo&&x[Xa("0x5a")](t);for(const e of x)if(e[Xa("0x8a")]){const s=e[Xa("0x11a")]();if((!e[Xa("0xfb")]||!e[Xa("0xfb")].skipNestingCheck)&&s[Xa("0x1b")]((t=>i[Xa("0x10d")]((e=>e[Xa("0x103")](t,!0)))))&&e.discard(),i[Xa("0x1b")]((t=>s[Xa("0x10d")]((e=>e.containsRange(t,!0)))))){const e=this[Xa("0xf1")][Xa("0x1f")](Xa("0x118"),n,"accept");return this[Xa("0xf3")]((()=>e(t,null,o))),null}}else{const t=e[Xa("0xcf")]();if(i[Xa("0x10d")]((e=>e.containsRange(t,!0)))&&e[Xa("0x25")](),i[Xa("0x1b")]((e=>t[Xa("0x103")](e,!0)))){const t=this[Xa("0xf1")][Xa("0x1f")](Xa("0x118"),n,Xa("0x2"));return this[Xa("0xf3")]((()=>t(i,null,o))),null}}const a=this[Xa("0xf1")][Xa("0x1f")](Xa("0x118"),n,Xa("0x11d"));let c=null;for(const t of this[Xa("0xa1")]())if(t[Xa("0x12e")].id==s.id&&t.isInContent&&Xa("0x118")==t[Xa("0xc7")]&&t[Xa("0x140")]==n&&ic(t,o)&&(a(t[Xa("0x11a")](),i)||a(i,t[Xa("0x11a")]())))if(c){if(t[Xa("0x14")]&&t.commentThread.length)continue;for(const e of t[Xa("0x11a")]())c[Xa("0x37")](e)||c[Xa("0x113")](e);t.removeMarkers()}else{c=t;for(const e of i)t[Xa("0x37")](e)||t[Xa("0x113")](e)}if(c)return c;x[Xa("0xe1")]();for(const{suggestion:t,meta:e}of this._findSuggestions(i,Xa("0x118")))e[Xa("0x23")]&&(this[Xa("0xcc")]||!e[Xa("0x57")]&&!e[Xa("0xd2")])&&ic(t,o)&&x[Xa("0x5a")](t);for(const t of x){const e=t[Xa("0x11a")]();if((!o||!o.skipNestingCheck)&&i[Xa("0x1b")]((t=>e[Xa("0x10d")]((e=>e[Xa("0x103")](t,!0))))))return t;(!t[Xa("0xfb")]||!t[Xa("0xfb")].skipNestingCheck)&&e.every((t=>i.some((e=>e[Xa("0x103")](t,!0)))))&&t[Xa("0x25")]()}const l=(0,e.uid)(),d=s.id,u=Xa("0x3c")+n,g=this[Xa("0x6f")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of i)t[Xa("0x52")](),t[Xa("0x85")]||Xa("0x117")==t[Xa("0x13e")][Xa("0x93")]||this[Xa("0x83")](u,l,d,t,Zo.getMultiRangeId());return g}_setSuggestionRange(t,e){const n=t[Xa("0x6c")]();this[Xa("0xb4")][Xa("0x1e")]((t=>{t.updateMarker(n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this.editor[Xa("0x64")].get("collaboration.channelId");this[Xa("0x13c")][Xa("0xcd")](e)||this._commentsRepository[Xa("0x48")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xa("0x13c")].getCommentThread(e);o[Xa("0x27")](Xa("0x2c")),o[Xa("0x2c")]=!1,t[Xa("0x14")]=o}[Xa("0xca")](t,n,o,s){if(t.type!=n||t[Xa("0x140")]!=o||t.creator.id!=s)throw this[Xa("0xdf")][Xa("0x2f")](Xa("0x8e")),new e.CKEditorError(Xa("0x8e"),this)}[Xa("0xd0")](t,n){const o=t[Xa("0xcf")]();if(n[Xa("0x96")](o))t[Xa("0x89")]();else if(o[Xa("0x103")](n)){const s=this[Xa("0xb4")][Xa("0x127")](n.start[Xa("0x54")],Xa("0x13d"));this._setSuggestionRange(t,this[Xa("0xb4")].createRange(o[Xa("0x80")],s));const i=(0,e.uid)(),r=t[Xa("0x35")].id,x=t[Xa("0xc7")]+":"+t[Xa("0x140")];this[Xa("0x6f")]({id:i,type:x,createdAt:new Date,authorId:r,data:t.data,attributes:t[Xa("0xfb")]});const a=this[Xa("0xb4")][Xa("0x127")](n[Xa("0x13d")].parent,Xa("0xb3")),c=this[Xa("0xb4")].createRange(a,o[Xa("0x13d")]);this[Xa("0x83")](x,i,r,c)}else if(o[Xa("0xf6")](n[Xa("0x80")])){const e=this[Xa("0xb4")][Xa("0x127")](n.start.nodeBefore,Xa("0x13d"));this[Xa("0x3b")](t,this[Xa("0xb4")][Xa("0xeb")](o[Xa("0x80")],e))}else{const e=this[Xa("0xb4")][Xa("0x127")](n.end.parent,"after");this[Xa("0x3b")](t,this._model.createRange(e,o[Xa("0x13d")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[Xa("0x15")](t,Xa("0x12a"))){if(!n[Xa("0x23")])continue;const o=e[Xa("0x11a")]();for(const e of o)if(!t[Xa("0x31")](e)[Xa("0xc9")])return!0}return!1}[Xa("0x90")](t){const n=this[Xa("0xdf")].plugins.get(Xa("0xc3"))[Xa("0x3e")](t);if(!n)throw new e.CKEditorError(Xa("0xe3"),this);return n}_getExternalAuthor(t){const e=this.editor.plugins[Xa("0xc1")](Xa("0xc3")),n=(0,i.hashObject)(Xa("0x33")+t);return e[Xa("0x3e")](n)||e[Xa("0x139")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const i=this[Xa("0x90")](o),r=this[Xa("0xf1")][Xa("0x0")](t,e,n,i,s,(t=>this[Xa("0xb2")](n,{attributes:t})));return this.listenTo(r,Xa("0x2"),(()=>{this[Xa("0xb2")](n,{state:Xa("0x19")})}),{priority:"high"}),this[Xa("0x4")](r,"discard",(()=>{this[Xa("0xb2")](n,{state:Xa("0xdd")})}),{priority:Xa("0xe9")}),this[Xa("0x4d")][Xa("0xd6")](n,r),this[Xa("0x7e")].set(r,Xa("0xcb")),r}[Xa("0x3")](t){const e=t[Xa("0xc2")](":");return{group:e[0],type:e[1],subType:e[Xa("0xc9")]>=5?e[2]:null,id:e[Xa("0xc9")]<5?e[2]:e[3],authorId:e[Xa("0xc9")]<5?e[3]:e[4],markerCount:6==e[Xa("0xc9")]?e[5]:null}}[Xa("0x9f")](t,n,o){const s=t[Xa("0xcf")](),i=s.start,r=s[Xa("0x13d")];this[Xa("0x3b")](t,this[Xa("0xb4")][Xa("0xeb")](i,n));const x=(0,e.uid)(),a=t[Xa("0x35")].id,c=t.type+(t[Xa("0x140")]?":"+t[Xa("0x140")]:"");this[Xa("0x6f")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0xfb")],data:t[Xa("0x61")]}),"formatBlock"==t[Xa("0xc7")]&&(o=this[Xa("0xb4")].createPositionBefore(o[Xa("0x45")])),this[Xa("0x83")](c,x,a,this._model[Xa("0xeb")](o,r))}[Xa("0x15")](t,e=null){const n=[],o=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")](Xa("0xc3")).me;Array[Xa("0x12c")](t)||(t=[t]);for(const s of this[Xa("0xa1")]()){if(!s[Xa("0xad")])continue;if(e&&s[Xa("0xc7")]!=e)continue;let i=!1;for(const e of s[Xa("0x11a")]()){for(const r of t){const t=r[Xa("0x80")][Xa("0x96")](e[Xa("0x13d")])||r[Xa("0x13d")].isEqual(e[Xa("0x80")]);if(t||r[Xa("0x28")](e)){const x=r[Xa("0x103")](e)&&Ja(this[Xa("0xb4")][Xa("0xd8")],e[Xa("0x80")],r),a=e[Xa("0x103")](r)&&Ja(this._model[Xa("0xd8")],r.start,e);n[Xa("0x44")]({suggestion:s,meta:{isOwn:o==s[Xa("0x12e")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[Xa("0x83")](t,e,n,o,s){this[Xa("0xb4")].change((i=>{let r="suggestion:"+t+":"+e+":"+n;s&&(r=r+":"+s),i.addMarker(r,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0x5")](t){const e=t[Xa("0x17")],n=t.next;t.previous=null,null!=e&&(e.next=null),t[Xa("0xbe")]=null,null!=n&&(n[Xa("0x17")]=null),"ready"==this._suggestionState[Xa("0xc1")](t)&&(this[Xa("0x7e")][Xa("0xd6")](t,Xa("0x24")),this[Xa("0x46")](Xa("0x7d"),t,e,n))}[Xa("0x6f")](t){const n=t.id,o=this[Xa("0x120")](t);if(this[Xa("0xa2")]&&this._adapter[Xa("0xa6")]){const s=this.editor[Xa("0xbc")][Xa("0xc1")](Xa("0x76")),i=o[Xa("0x56")],r=o[Xa("0x140")]?o.type+":"+o.subType:o[Xa("0xc7")],x=this[Xa("0xdf")].locale,a=s[Xa("0x5a")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:r,hasComments:i,data:t[Xa("0x61")]||null,originalSuggestionId:t[Xa("0x126")]||null,attributes:o[Xa("0xfb")]};this[Xa("0xa2")][Xa("0xa6")](c)[Xa("0x11c")]((t=>{o[Xa("0x6b")]=!0,s[Xa("0x79")](a),t&&t[Xa("0x70")]&&(this[Xa("0x4d")][Xa("0xc1")](n).createdAt=t[Xa("0x70")])}))[Xa("0x73")]((t=>{throw(0,e.logWarning)(Xa("0x5e")),this.editor[Xa("0x69")][Xa("0xd9")]({isUndoable:!1},(()=>{o[Xa("0x25")]()})),o[Xa("0x3d")](),this[Xa("0x4d")][Xa("0xe0")](o.id),this._suggestionState[Xa("0xe0")](o),t}))}return o}[Xa("0xb2")](t,e){const n=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")](Xa("0x76")),o=this.getSuggestion(t);if(this[Xa("0xa2")]&&this._adapter[Xa("0xa9")])if(o[Xa("0x6b")]){const o=n[Xa("0x5a")](Yo(this[Xa("0xdf")].locale,Xa("0x42")));this[Xa("0xa2")][Xa("0xa9")](t,e)[Xa("0x11c")]((()=>{n[Xa("0x79")](o)}))}else o.on(Xa("0x104"),(()=>{this[Xa("0xb2")](t,e)}))}[Xa("0xe4")](t){if(!this._adapter||!this[Xa("0xa2")][Xa("0x9b")])throw new e.CKEditorError(Xa("0x74"),this);return this[Xa("0xa2")][Xa("0x9b")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[Xa("0x3")](t),i=this[Xa("0x4d")].get(e)||this._createSuggestion(n,o,e,s,{});switch(this[Xa("0xca")](i,n,o,s),this[Xa("0x7e")][Xa("0xc1")](i)){case Xa("0xcb"):this[Xa("0xe4")](e).then((t=>{let n=Promise.resolve();t[Xa("0x56")]&&(n=this[Xa("0x13c")][Xa("0x137")]({channelId:this[Xa("0xdf")][Xa("0x64")][Xa("0xc1")]("collaboration.channelId"),threadId:e})),n[Xa("0x11c")]((()=>{this[Xa("0x120")](t)[Xa("0x6b")]=!0}))})),this._suggestionState.set(i,Xa("0x4b"));break;case Xa("0x24"):this[Xa("0xb2")](e,{state:"open"});case Xa("0x78"):this[Xa("0x7e")].set(i,Xa("0x60")),this[Xa("0x46")]("suggestionLoaded",i);break;case"ready":this[Xa("0x46")](Xa("0x92"),i)}return i[Xa("0xdc")](t),i}[Xa("0x106")](t){const e=Array[Xa("0xe6")](t)[Xa("0xff")]((t=>!t[Xa("0x8a")])),n=this[Xa("0xa1")]({skipNotAttached:!0}).filter((t=>!t[Xa("0x8a")])),o=n[Xa("0xff")]((e=>!t[Xa("0x110")](e))),s=new Map(n[Xa("0x32")]((t=>[t,this[Xa("0xf1")][Xa("0x1f")](t[Xa("0xc7")],t[Xa("0x140")],Xa("0x135"))]))),i=new Map(n[Xa("0x32")]((t=>[t,t[Xa("0xcf")]()]))),r=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e[Xa("0xc9")];t++)a(e[t],o,0);for(let t=0;t<e[Xa("0xc9")];t++){const n=e[t];!x.has(n)&&n.previous&&(n[Xa("0x17")][Xa("0xbe")]===n&&(n.previous.next=null),n[Xa("0x17")]=null),!r.has(n)&&n.next&&(n[Xa("0xbe")][Xa("0x17")]===n&&(n[Xa("0xbe")][Xa("0x17")]=null),n[Xa("0xbe")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][Xa("0xbe")]=n[1],n[1][Xa("0x17")]=n[0],r[Xa("0x5a")](n[0]),x.add(n[1]))}}function c(t,e){if(t.author.id!==e[Xa("0x12e")].id)return null;const n=s[Xa("0xc1")](t)(t,e,i.get(t),i[Xa("0xc1")](e));return n&&s[Xa("0xc1")](e)(t,e,i[Xa("0xc1")](t),i.get(e))?n[1][Xa("0x14")]&&n[1][Xa("0x14")].length?null:n:null}}[Xa("0x11b")](t){const e=Array[Xa("0xe6")](t),n=this[Xa("0xa1")]({skipNotAttached:!0}),o=n[Xa("0xff")]((e=>!t.has(e))),s=new Map(e.map((t=>[t,this[Xa("0xf1")][Xa("0x1f")](t[Xa("0xc7")],t[Xa("0x140")],"join")]))),i=new Map(n.map((t=>[t,t[Xa("0x11a")]()])));for(let t=0;t<e[Xa("0xc9")];t++)if(r(this,e[t],e,t+1))return!0;for(let t=0;t<e[Xa("0xc9")];t++)if(r(this,e[t],o,0))return!0;return!1;function r(t,e,n,o){for(let r=o;r<n[Xa("0xc9")];r++){const o=n[r];if(o[Xa("0xc7")]!==e[Xa("0xc7")]||o[Xa("0x12e")].id!==e[Xa("0x12e")].id||o.subType!==e[Xa("0x140")])continue;if(!sc(e,o))continue;const x=s.get(e),a=i[Xa("0xc1")](e),c=i[Xa("0xc1")](o),l=e[Xa("0x14")]&&e.commentThread[Xa("0xc9")],d=o[Xa("0x14")]&&o[Xa("0x14")][Xa("0xc9")];if(!l&&x(c,a))return t[Xa("0x18")](o,e),i[Xa("0xe0")](e),!0;if(!d&&x(a,c))return t[Xa("0x18")](e,o),i[Xa("0xe0")](o),!0}return!1}}[Xa("0x18")](t,e){if(t[Xa("0x8a")])for(const n of e.getRanges())t[Xa("0x113")](n);else{const n=e[Xa("0xcf")]().end;this[Xa("0x3b")](t,this[Xa("0xb4")][Xa("0xeb")](t[Xa("0xcf")]().start,n))}e[Xa("0x89")]()}}class Qa{constructor(t){this[Xa("0xb")]=t,this[Xa("0xb4")]=t.model,this[Xa("0x115")]=new Map,this._defaultCallbacks=new Map,this._registerDefaultCallbacks()}buildSuggestion(t,e,n,o,s,i){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:i,onAccept:(...n)=>this[Xa("0x1f")](t,e,Xa("0x2"))(...n),onDiscard:(...n)=>this[Xa("0x1f")](t,e,Xa("0x25"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[Xa("0x115")][Xa("0xd6")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[Xa("0x115")][Xa("0xc1")](o)||this[Xa("0x114")][Xa("0xc1")](t+":"+n)}[Xa("0x50")](){const t=()=>!1,e=t=>{t[Xa("0xc6")](((t,e)=>t[Xa("0x80")][Xa("0xb7")](e[Xa("0x80")])?1:-1)),this[Xa("0xb4")].change((e=>{for(const n of t){let t;t=n[Xa("0x13d")][Xa("0xdb")]&&n.end.parent==n.start[Xa("0x4a")]?e[Xa("0x102")](n[Xa("0x80")][Xa("0x4a")],"on"):e.createSelection(n),this._model[Xa("0x8d")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[Xa("0x1e")]((n=>{const{commandName:o,commandParams:s=[]}=e,i=t[Xa("0x32")]((t=>(Za(t)&&(t=this[Xa("0xb4")].createRange(t[Xa("0x13d")])),t)))[Xa("0xff")]((t=>Xa("0x117")!==t[Xa("0x13e")][Xa("0x93")]));if(i.length<1)return;const x=Array.from(this._model[Xa("0x1c")].selection[Xa("0x11a")]()).map((t=>r.LiveRange.fromRange(t)));n[Xa("0x81")](i);for(const t of this._editor[Xa("0x97")].commands())t[Xa("0x7c")]();s.push({forceDefaultExecution:!0}),this[Xa("0xb")][Xa("0x6a")](o,...s);const a=x[Xa("0xff")]((t=>Xa("0x117")!=t.root.rootName));a[Xa("0xc9")]>0&&n.setSelection(a);for(const t of x)t[Xa("0x52")]()}))},o=(t,e)=>1==t.length&&1==e[Xa("0xc9")]&&t[0].end[Xa("0x96")](e[0][Xa("0x80")]),s=(t,e,n,o)=>oc(t,e,n,o,this._model)?[t,e]:oc(e,t,o,n,this._model)?[e,t]:null;this._defaultCallbacks[Xa("0xd6")](Xa("0x132"),t),this[Xa("0x114")][Xa("0xd6")](Xa("0x105"),e),this._defaultCallbacks[Xa("0xd6")]("insertion:join",o),this[Xa("0x114")].set(Xa("0x10a"),s),this[Xa("0x114")][Xa("0xd6")](Xa("0x130"),e),this[Xa("0x114")][Xa("0xd6")](Xa("0x2d"),t),this[Xa("0x114")][Xa("0xd6")](Xa("0x116"),o),this[Xa("0x114")].set(Xa("0x10"),s),this._defaultCallbacks.set("formatInline:accept",n),this._defaultCallbacks.set(Xa("0x39"),t),this[Xa("0x114")][Xa("0xd6")]("formatInline:join",o),this[Xa("0x114")][Xa("0xd6")](Xa("0x58"),t),this[Xa("0x114")][Xa("0xd6")]("formatBlock:accept",n),this[Xa("0x114")][Xa("0xd6")](Xa("0x6"),t),this[Xa("0x114")][Xa("0xd6")](Xa("0x20"),o),this[Xa("0x114")].set("formatBlock:chain",t)}}function Ja(t,e,n){for(const o of e[Xa("0x45")][Xa("0x1d")]({includeSelf:!0,parentFirst:!0})){if(o[Xa("0x13e")]==o)return!1;if(!n.containsItem(o))return!1;if(t.isObject(o)||t[Xa("0x136")](o))return!0}return!1}function Za(t){return t[Xa("0x13d")][Xa("0x45")]==t[Xa("0x80")].nodeAfter&&t[Xa("0x13d")][Xa("0x7")]}function Ya(t,e,n,o){const s=t=>!t[Xa("0x13f")].is(Xa("0x13a"))&&!o[Xa("0xc0")](t[Xa("0x13f")]),i=t[Xa("0x80")][Xa("0x71")](s),r=t[Xa("0x13d")][Xa("0x71")](s,{direction:Xa("0x86")});return!(t[Xa("0x80")][Xa("0x96")](i)&&t[Xa("0x13d")][Xa("0x96")](r)||(i[Xa("0xb7")](r)?n[Xa("0x49")](e,{range:n.createRange(i,r)}):n.removeMarker(e),0))}function tc(t){return(0,i.hashObject)(t)}function ec(t){const e=t[Xa("0x80")][Xa("0x4a")];return e&&e.is(Xa("0xb9"))}function nc(t,e){const n=e[Xa("0xd8")][Xa("0xc0")](t)||e[Xa("0xd8")][Xa("0x63")](t);return e[Xa("0xeb")](e[Xa("0x127")](t,Xa("0x119")),n?e.createPositionAfter(t):e[Xa("0x127")](t,"end"))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n.end.isEqual(o[Xa("0x80")]))return!0;if(t[Xa("0xc7")]!=e.type)return!1;if(!n[Xa("0x13d")].isTouching(o[Xa("0x80")]))return!1;const i=s[Xa("0xeb")](n[Xa("0x13d")],o.start)[Xa("0xd")]();for(const t of i)if([Xa("0xd4"),Xa("0x9")][Xa("0xa0")](t[Xa("0xc7")])&&s[Xa("0xd8")][Xa("0x136")](t[Xa("0x13f")]))return!1;return!0}function sc(t,e){return!(!t._isDataLoaded||!e[Xa("0x82")])&&Go(t[Xa("0xfb")],e[Xa("0xfb")])}function ic(t,e){const n=rc(t[Xa("0xfb")]),o=rc(e);if(!t[Xa("0x82")])return!1;for(const t of Object[Xa("0x22")](o))if(!Go(n[t],o[t]))return!1;return!0}function rc(t){const e=Object[Xa("0xda")]({},t);return delete e.skipNestingCheck,delete e[Xa("0x41")],e}const xc=["_pendingAction","_discardCommand","discardSuggestion","bind","_setPendingAction","destroy","PendingActions","unbind","commentThreadController","stopListening","canEditAt","execute","add","canAccept","isEnabled","_editor","_acceptCommand","listenTo","commands","change:isDirty","locale","view","remove","model","get","plugins","_removePendingAction","isDirty","canDiscard","acceptSuggestion"];var ac,cc;ac=xc,cc=292,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("0x1")]=e,this[lc("0x1d")]=n,this[lc("0x10")]=o,this[lc("0x17")]=t,this[lc("0x18")]=t[lc("0x1a")][lc("0x2")](lc("0x7")),this[lc("0x9")]=t[lc("0x1a")][lc("0x2")](lc("0xa")),this.view[lc("0xb")](lc("0x16")).to(this._acceptCommand,this[lc("0x9")],((t,e)=>t||e)),this[lc("0x1d")][lc("0xb")](lc("0x15")).to(this[lc("0x18")],"isEnabled",(t=>t&&this[lc("0x17")].model[lc("0x12")](e.getRanges()))),this[lc("0x1d")].bind(lc("0x6")).to(this[lc("0x9")],lc("0x16"),(t=>t&&this[lc("0x17")][lc("0x1")][lc("0x12")](e.getRanges()))),this[lc("0x8")]=null,n[lc("0x5")]&&this[lc("0xc")](),this[lc("0x19")](n,lc("0x7"),(()=>this[lc("0x7")]())),this[lc("0x19")](n,lc("0xa"),(()=>this[lc("0xa")]())),this[lc("0x19")](n,lc("0x1b"),(()=>{n[lc("0x5")]?this[lc("0xc")]():this._removePendingAction()}))}[lc("0x7")](){this[lc("0x18")][lc("0x13")](this.model.id)}[lc("0xa")](){this[lc("0x9")][lc("0x13")](this.model.id)}[lc("0xd")](){this[lc("0x1d")][lc("0xf")](lc("0x16")),this[lc("0x1d")].unbind("canAccept"),this[lc("0x1d")].unbind(lc("0x6")),this[lc("0x11")](),this.commentThreadController[lc("0xd")](),this[lc("0x8")]&&this[lc("0x4")]()}[lc("0xc")](){const t=Yo(this[lc("0x17")][lc("0x1c")],"PENDING_ACTION_SUGGESTION");this[lc("0x8")]=this[lc("0x17")][lc("0x3")][lc("0x2")]("PendingActions")[lc("0x14")](t)}_removePendingAction(){null!==this._pendingAction&&this._editor[lc("0x3")][lc("0x2")](lc("0xe"))[lc("0x0")](this._pendingAction),this[lc("0x8")]=null}}const uc=["commentsListView","_config","element","commentInputView","bind","cancel","canDiscard","submit","setData","length","destroy","delegate","locale","focus","removeComment","_localUser","value","disabledSubmit","_createCommentThreadInputView","CommentView","commentThreadInputView","commentThread","addComment","set","isDirty","updateComment","_createCommentViews","isReadOnly","authoredAt","showInput","editor","fire","_model","isActive"];var gc,mc;gc=uc,mc=315,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("0x19")]=null,this[fc("0xb")]=null,this[fc("0xe")]("isActive",!1),this[fc("0xe")]("authoredAt",e[fc("0x13")]),this[fc("0x1d")](fc("0x13")).to(e),this[fc("0xe")]("descriptionParts",[]),this[fc("0xe")](fc("0xf"),!1),this[fc("0xe")]("isEnabled",!1),this[fc("0xe")]("canAccept",!1),this[fc("0xe")](fc("0x1f"),!1),this._model=e,this._localUser=n,this._config=o,o.disableComments?this[fc("0xe")](fc("0x0"),1):this[fc("0x11")]()}focus(){this[fc("0x1b")][fc("0x4")]()}[fc("0x1")](){this[fc("0x19")]&&this[fc("0x19")][fc("0x1")](),this[fc("0xb")]&&this.commentThreadInputView[fc("0x1")](),super[fc("0x1")]()}[fc("0x11")](){const{CommentsListView:t}=this._config;this[fc("0x19")]=new t(this[fc("0x3")],this[fc("0x17")][fc("0xc")],Object.assign({CommentView:this[fc("0x1a")][fc("0xa")]},this._config)),this.commentsListView[fc("0x2")]("removeComment").to(this),this[fc("0x19")][fc("0x2")](fc("0x10")).to(this),this[fc("0x19")][fc("0x1d")](fc("0x18")).to(this),this[fc("0xe")]("length",this[fc("0x19")].length+1),this[fc("0x1d")](fc("0x0")).to(this.commentsListView,"length",(t=>t+1)),this.commentThreadInputView=this[fc("0x9")](),this.on(fc("0x5"),(()=>this[fc("0x4")]())),this[fc("0x1d")](fc("0xf")).to(this[fc("0x19")],"hasDirtyComment",this[fc("0xb")][fc("0x1c")],fc("0x7"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this._config,e=new t(this[fc("0x3")],this[fc("0x6")],this._config.editorConfig),n=e[fc("0x1c")];return e.bind(fc("0x14")).to(this,fc("0x18"),this._model[fc("0xc")],fc("0x12"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(fc("0x20"),((t,e)=>{this[fc("0x16")](fc("0xd"),e),n[fc("0x15")][fc("0x21")]("")})),n.on(fc("0x1e"),(()=>this.focus())),n[fc("0x1d")](fc("0x8")).to(this[fc("0x17")][fc("0xc")],fc("0x12")),e}}const pc=["map",".ck-annotation__content-wrapper","div","set","children","ck-suggestion-","span","ck-suggestion__info","isExternal","bind","isActive","ck-annotation__info","content","_model","execute","userView","editorReady","acceptSuggestion","source","element","ck-annotation__info-name","ck-annotation__user","editorDestroyed","bindTemplate","getTemplate","name","join","discardButton","value","_config","EXTERNAL_IMPORT_WORD_SUGGESTION","querySelector","ck-suggestion__main","attributes","commentThread",'<span class="ck-suggestion-type">',"descriptionParts","creator","_createButton","setTemplate","time","formatDateTime","innerText","discardSuggestion","author","importWord","type",'"></span>',"cancel","</p>","ck-suggestion",'<span class="ck-suggestion-color" style="background-color: ',"render","acceptButton","EXTERNAL_AVATAR","ck-annotation__info-time","push","locale","description","color","EXTERNAL_IMPORT_WORD_AVATAR","commentsListView","change:description","delegate","ck-suggestion--disabled-comments","EXTERNAL_SUGGESTION","ck-suggestion__info-name","ck-suggestion--discard","ck-suggestion__user","commentThreadInputView","_descriptionElement","ck-suggestion--accept","check","ck-suggestion-wrapper--active","innerHTML","createElement","split","extendTemplate","@external","canAccept","getUserViewNotificationText","ck-annotation__content-wrapper","authoredAt","isEnabled"];var bc,Ec;bc=pc,Ec=134,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("0x25")](_c("0x50"),""),this.bind(_c("0x50")).to(this,_c("0x46"),(t=>t&&t[0]?t[0].type:"")),this[_c("0x2b")](_c("0x8")).to(this,_c("0x46"),this,_c("0x2c"),((t,e)=>{let n="";for(const e of t)n+="<p>"+Cc(e[_c("0x2e")],e[_c("0x9")])+_c("0x53");return e?n:(0,i.trimHtml)(n,{limit:140})})),this[_c("0x14")]=null,this[_c("0x3")]=this[_c("0x48")](Yo(e,"Accept suggestion"),t.icons[_c("0x16")],_c("0x15"),_c("0x33"),"sw"),this[_c("0x3")].bind(_c("0x21")).to(this,_c("0x1d")),this[_c("0x3d")]=this[_c("0x48")](Yo(e,"Discard suggestion"),t.icons[_c("0x52")],_c("0x11"),_c("0x4d"),"sw"),this[_c("0x3d")][_c("0x2b")](_c("0x21")).to(this,"canDiscard"),this[_c("0x31")]=new i.UserView(e,this._model[_c("0x4e")],this[_c("0x1e")]()),this.userView[_c("0x1b")]({attributes:{class:[_c("0x12"),_c("0x37")]}}),this[_c("0x49")](this[_c("0x3a")]())}getTemplate(){const t=this[_c("0x39")],e=[{tag:_c("0x24"),attributes:{class:[_c("0x29"),_c("0x2d")]},children:[{tag:_c("0x28"),children:[{text:this[_c("0x31")][_c("0x3b")]}],attributes:{class:[_c("0x10"),_c("0x36")]}},{tag:_c("0x4a"),attributes:{datetime:t.to(_c("0x20")),class:["ck-comment__info-time",_c("0x5")]},children:[{text:t.to(_c("0x20"),(t=>this[_c("0x3f")][_c("0x4b")](t)))}]}]},{tag:_c("0x24"),attributes:{class:["ck-suggestion__actions","ck-annotation__actions"]},children:[this.acceptButton,this[_c("0x3d")]]},{tag:_c("0x24"),attributes:{class:[_c("0x1f")]}}];this._model[_c("0x2a")]&&e[_c("0x6")]({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:_c("0x24"),attributes:{class:["ck-suggestion-wrapper",t.if(_c("0x2c"),_c("0x17")),t.to("type",(t=>_c("0x27")+t)),this[_c("0x3f")].disableComments&&_c("0xe")],"data-suggestion-id":this._model.id,"data-thread-id":this[_c("0x2f")][_c("0x44")].id,"data-author-id":this[_c("0x2f")][_c("0x4e")].id,tabindex:-1},children:[{tag:_c("0x24"),attributes:{class:[_c("0x0"),"ck-annotation"]},children:[this[_c("0x31")],{tag:_c("0x24"),attributes:{class:[_c("0x42"),"ck-annotation__main"]},children:e}]}]};return this[_c("0xb")]&&this[_c("0x13")]&&(n[_c("0x26")].push(this[_c("0xb")],this[_c("0x13")]),this[_c("0xb")][_c("0xd")](_c("0x32")).to(this),this[_c("0xb")][_c("0xd")](_c("0x38")).to(this),this.commentThreadInputView[_c("0xd")](_c("0x32")).to(this),this[_c("0x13")][_c("0xd")](_c("0x38")).to(this)),n}[_c("0x2")](){super[_c("0x2")](),this[_c("0x14")]=this[_c("0x35")][_c("0x41")](_c("0x23")),this[_c("0x14")][_c("0x18")]=this[_c("0x8")],this.on(_c("0xc"),((t,e,n)=>{this._descriptionElement[_c("0x18")]=n}))}[_c("0x48")](t,e,n,o,i){const r=new s.ButtonView(this[_c("0x7")]);return r[_c("0x25")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),r[_c("0x1b")]({attributes:{class:n}}),r.on(_c("0x30"),(()=>{this.fire(o,this[_c("0x2f")].id)})),r}getExternalSuggestionNote(){return _c("0x4f")===this[_c("0x2f")][_c("0x43")][_c("0x1c")].source?Yo(this.locale,_c("0x40")):Yo(this[_c("0x7")],_c("0xf"))}[_c("0x1e")](){return this[_c("0x2f")][_c("0x2a")]?_c("0x4f")===this[_c("0x2f")][_c("0x43")]["@external"][_c("0x34")]?Yo(this[_c("0x7")],_c("0xa"),this[_c("0x2f")].creator[_c("0x3b")]):Yo(this[_c("0x7")],_c("0x4"),this[_c("0x2f")][_c("0x47")].name):null}}function Cc(t,e){let n="";return n+=t[_c("0x1a")]("*")[_c("0x22")](((t,e)=>e%2!=0?_c("0x45")+yc(t)+"</span>":yc(t)))[_c("0x3c")](""),e&&(n+=_c("0x1")+e[_c("0x3e")]+'" title="'+e.title+_c("0x51")),n}function yc(t){const e=document[_c("0x19")]("span");return e[_c("0x4c")]=t,e[_c("0x18")]}const kc=["lowest","acceptSelectedSuggestions","createCommentThreadController","pluginName","map","buttonView","Discard all selected suggestions","getJoined","Annotations","suggestionChanged","TrackChangesEditing","head","acceptButton","activeAnnotations","_disableComments","_bindAnnotationToEditors","delete","commentThread","has","size","change:previous","init","locale","unbind","getFirstRange","actionView","some","remove","getRanges","plugins","trackChanges.SuggestionThreadView","button","add","getSuggestion","editing","type","listenTo","isInContent","refreshSelectedViews","comments.maxThreadTotalWeight","CommentsRepository","requires","destroy","push","_viewToController","arrowView","filter","Discard all suggestions","bind","isEnabled","_handleControllerBuffer","set","isOn","_descriptionFactory","get","_handleSuggestionControllerDelayed","_unbindEditors","config","getDescriptions","_createUIButton","focus","separator","reduce","commands","change:activeAnnotations","_suggestionToController","getMarkerNames","mainView","addComment","getAllAdjacentSuggestions","CommentsUI","_updateController","comments.editorConfig","discardButton","acceptAllSuggestions","keys","_annotationViews","TrackChangesUI","Accept all selected suggestions","registerAnnotation","define","suggestion-","model","descriptionParts","clear","editor","_initializeController","length","view","execute","comments","commandName","source","isMultiRange","from","isDirty","trackChanges.disableComments","_destroyController","value","suggestionLoaded","_refreshActiveMarkers","addSourceCollector","getByInnerView","Accept all suggestions","createAnnotationView","trackChanges","EditorAnnotations","stopListening","switchbutton"];var Ac,vc;Ac=kc,vc=387,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("0x5a")](){return[$a,i.Users,"CommentsRepository",Rc("0x39"),"EditorAnnotations"]}static get[Rc("0x34")](){return Rc("0x11")}constructor(t){super(t),this[Rc("0x5")]=new Map,this[Rc("0x5d")]=new Map,this[Rc("0x10")]=new Map,this[Rc("0x63")]=new Map;const e=this.editor.config;e[Rc("0x14")](Rc("0x4f"),Tc),e[Rc("0x14")](Rc("0x24"),!1),this[Rc("0x3f")]=e[Rc("0x67")]("trackChanges.disableComments")}[Rc("0x68")](t,e){0===this[Rc("0x63")][Rc("0x44")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Rc("0x5")][Rc("0x43")](t);n||e?n&&e&&this._destroyController(t):this[Rc("0x1a")](t)}this[Rc("0x19")][Rc("0x4e")][Rc("0x67")]("EditorAnnotations")[Rc("0x57")](),this[Rc("0x28")](),this[Rc("0x63")][Rc("0x18")]()}),10),this[Rc("0x63")][Rc("0x64")](t,e)}[Rc("0x46")](){const t=this.editor,e=t[Rc("0x4e")][Rc("0x67")](Rc("0x3b")),n=t.plugins[Rc("0x67")](Rc("0x39")),o=t.plugins[Rc("0x67")](Rc("0x2e")),s=t[Rc("0x4e")][Rc("0x67")](Rc("0x59"));t.ui.componentFactory[Rc("0x51")]("trackChanges",(t=>this[Rc("0x6c")](t))),o[Rc("0x29")]((()=>{const t=[];for(const[e,n]of Array[Rc("0x22")](this._suggestionToController)){const o=e[Rc("0x9")](),s=[];for(const t of o){if(!t[Rc("0x56")])continue;if(t[Rc("0x21")]){s[Rc("0x5c")](...t[Rc("0x4d")]());continue}const e=t[Rc("0x49")]();if(s[Rc("0x1b")]>0){const t=s[0][Rc("0x38")](e);if(t){s[0]=t;continue}}s[Rc("0x5c")](e)}t[Rc("0x5c")]([n[Rc("0x1c")],s])}return t})),this[Rc("0x55")](e,Rc("0x27"),((t,e)=>{this.listenTo(e,Rc("0x45"),((t,n,o,s)=>{e[Rc("0x56")]&&(null==o?(this[Rc("0xb")](s[Rc("0x3c")]),this[Rc("0x68")](e,!1)):(this[Rc("0xb")](o[Rc("0x3c")]),this[Rc("0x68")](e,!0)))})),null===e.previous?this._handleSuggestionControllerDelayed(e,!1):this[Rc("0xb")](e[Rc("0x3c")])})),this[Rc("0x55")](e,"suggestionUnloaded",((t,e,n)=>{this[Rc("0x2f")](e,Rc("0x45")),this[Rc("0x63")][Rc("0x41")](e);const o=n?n[Rc("0x3c")]:e,s=this[Rc("0x5")][Rc("0x67")](o);null!==n&&this[Rc("0xb")](o),null===n&&s&&this[Rc("0x25")](e)})),this[Rc("0x55")](e,Rc("0x3a"),((t,e)=>{this[Rc("0xb")](e)})),this[Rc("0x55")](n,Rc("0x4"),(()=>{this[Rc("0x28")]()})),this[Rc("0x55")](s,Rc("0x8"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[Rc("0x52")](n);this._suggestionToController[Rc("0x67")](s)[Rc("0x1c")][Rc("0x0")]()}),{priority:Rc("0x31")})}_refreshActiveMarkers(){const t=this[Rc("0x19")][Rc("0x4e")][Rc("0x67")](Rc("0x39")),e=this.editor[Rc("0x4e")][Rc("0x67")](Rc("0x3b")),n=Array.from(t[Rc("0x3e")],(t=>t.innerView))[Rc("0x5f")]((t=>this[Rc("0x5d")][Rc("0x43")](t))),o=[];for(const t of n){const e=this._viewToController[Rc("0x67")](t)[Rc("0x16")].getAllAdjacentSuggestions();o[Rc("0x5c")](...e[Rc("0x2")](((t,e)=>[...t,...e[Rc("0x6")]()]),[]))}e.activeMarkers=o}[Rc("0x6c")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Rc("0x19")][Rc("0x3")][Rc("0x67")](Rc("0x2d")),i=Yo(t,"Track changes");n[Rc("0x36")][Rc("0x64")]({tooltip:i,label:i,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Rc("0x36")][Rc("0x61")](Rc("0x65")).to(o,Rc("0x26")),n[Rc("0x36")].on(Rc("0x1d"),(()=>{o[Rc("0x1d")](),this[Rc("0x19")][Rc("0x53")][Rc("0x1c")].focus()}));const r=new e.Collection,x=[{type:Rc("0x30"),model:{withText:!0,label:i,commandName:Rc("0x2d")}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x2b")),commandName:Rc("0xe")}},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x12")),commandName:Rc("0x32")}},{type:Rc("0x50"),model:{withText:!0,label:Yo(t,Rc("0x60")),commandName:"discardAllSuggestions"}},{type:Rc("0x50"),model:{withText:!0,label:Yo(t,Rc("0x37")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:Rc("0x1")};if(t[Rc("0x16")]){const n=new s.Model(t[Rc("0x16")]),o=this[Rc("0x19")].commands[Rc("0x67")](n[Rc("0x1f")]);n[Rc("0x61")](Rc("0x65"),Rc("0x62")).to(o,Rc("0x26"),Rc("0x62")),e={type:t[Rc("0x54")],model:n}}r[Rc("0x51")](e)}(0,s.addListToDropdown)(n,r);const a=x.filter((t=>null!=t[Rc("0x16")]))[Rc("0x35")]((t=>this[Rc("0x19")][Rc("0x3")].get(t[Rc("0x16")][Rc("0x1f")]))),c=n[Rc("0x36")];return c.actionView[Rc("0x48")](Rc("0x62")),c.arrowView.unbind("isEnabled"),c[Rc("0x4a")][Rc("0x61")]("isEnabled").to(o,"isEnabled"),c[Rc("0x5e")][Rc("0x61")]("isEnabled").toMany(a,Rc("0x62"),((...t)=>t[Rc("0x4b")]((t=>t)))),n.on(Rc("0x1d"),(t=>{this[Rc("0x19")][Rc("0x1d")](t[Rc("0x20")][Rc("0x1f")]),this[Rc("0x19")][Rc("0x53")][Rc("0x1c")][Rc("0x0")]()})),n}[Rc("0x1a")](t){const e=this[Rc("0x19")],n=e[Rc("0x6a")],o=e.plugins[Rc("0x67")](Rc("0x39")),s=e[Rc("0x4e")][Rc("0x67")](Rc("0x59")),r=e[Rc("0x4e")][Rc("0x67")]("EditorAnnotations"),x=e[Rc("0x4e")][Rc("0x67")](i.Users).me,a=n[Rc("0x67")](Rc("0x2d")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x4e")].get(Rc("0xa"));let d,u;this[Rc("0x10")][Rc("0x43")](t.id)?(u=this[Rc("0x10")][Rc("0x67")](t.id),d=u[Rc("0x7")]):(d=new a(e[Rc("0x47")],t,x,{disableComments:this[Rc("0x3f")],editorConfig:n[Rc("0x67")](Rc("0xc")),maxCommentsWhenCollapsed:n[Rc("0x67")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n.get(Rc("0x58")),maxCommentCharsWhenCollapsed:n[Rc("0x67")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,i.getDateTimeFormatter)(n[Rc("0x67")]("locale")),CommentView:n[Rc("0x67")](Rc("0x1e")).CommentView,CommentsListView:c,CommentThreadInputView:l}),d[Rc("0x3d")].on(Rc("0x1d"),(()=>{e.editing.view.focus()})),d[Rc("0xd")].on(Rc("0x1d"),(()=>{e.editing[Rc("0x1c")][Rc("0x0")]()})),u=o[Rc("0x2c")](this[Rc("0x19")][Rc("0x47")],d),u[Rc("0x61")](Rc("0x23")).to(d,Rc("0x23")),u[Rc("0x61")](Rc("0x1b")).to(d),u[Rc("0x61")](Rc("0x54")).to(d,Rc("0x54"),(t=>Rc("0x15")+t)),this[Rc("0x10")].set(t.id,u));const g=s[Rc("0x33")](t[Rc("0x42")],d),m=new dc(e,t,d,g),f=t[Rc("0x9")]()[Rc("0x5f")]((t=>t.isInContent));d[Rc("0x17")]=e[Rc("0x4e")][Rc("0x67")](Rc("0x3b"))._descriptionFactory[Rc("0x6b")](f),this[Rc("0x5")][Rc("0x64")](t,m),this[Rc("0x5d")][Rc("0x64")](d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t[Rc("0x9")]()[Rc("0x5f")]((t=>t[Rc("0x56")]));for(const t of o)n[Rc("0x5c")](...t.getMarkers());return(0,i.getAllMarkersDomElementsSorted)(e[Rc("0x53")],n)},type:()=>"suggestion-"+m.view.type});s[Rc("0x40")](d,h),o.add(h),r[Rc("0x13")](h)}_destroyController(t){const e=this.editor[Rc("0x4e")].get(Rc("0x59")),n=this.editor.plugins[Rc("0x67")](Rc("0x39")),o=this[Rc("0x5")].get(t),s=o.view,i=n[Rc("0x2a")](s);e[Rc("0x69")](s),i&&n[Rc("0x4c")](i),this[Rc("0x5")].delete(t),this[Rc("0x5d")][Rc("0x41")](s),o[Rc("0x5b")]()}[Rc("0xb")](t){if(!t[Rc("0x56")]||!this._suggestionToController[Rc("0x43")](t))return;const e=this[Rc("0x19")][Rc("0x4e")].get("TrackChangesEditing"),n=this[Rc("0x5")][Rc("0x67")](t),o=t.getAllAdjacentSuggestions();n.view[Rc("0x17")]=e[Rc("0x66")][Rc("0x6b")](o)}[Rc("0x5b")](){for(const t of this[Rc("0x5")][Rc("0xf")]())this[Rc("0x25")](t);for(const t of this._annotationViews.values())t[Rc("0x7")][Rc("0x5b")]();super[Rc("0x5b")]()}}var Ic,Lc,Nc=["adapter","addSuggestion","getSuggestions","get","plugins","TrackChanges","Comments","editor"];Ic=Nc,Lc=461,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 requires(){return[$a,Sc,wc("0x1")]}static get pluginName(){return wc("0x0")}set[wc("0x3")](t){this[wc("0x2")][wc("0x7")][wc("0x6")]($a)[wc("0x3")]=t}get[wc("0x3")](){return this[wc("0x2")].plugins[wc("0x6")]($a)[wc("0x3")]}[wc("0x4")](t){return this[wc("0x2")].plugins[wc("0x6")]($a).addSuggestionData(t)}[wc("0x5")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[wc("0x2")].plugins[wc("0x6")]($a)[wc("0x5")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[wc("0x2")][wc("0x7")][wc("0x6")]($a).getSuggestion(t)}}const Oc=["getRootNames","getRootsAttributes","TrackChangesDataGetter","Users","TrackChangesData","data","acceptAllSuggestions","getUser","function","plugins","trackChangesData.editorCreator","init","discardAllSuggestions","editor","constructor","getFullData","editorCreator","getSuggestions","pluginName","reduce","_adapter","trackChangesData","rootsAttributes","define","useAnonymousUser","end","document","destroy","track-changes-data-invalid-editor-creator","TrackChangesEditing","name","addUser","execute","config","set","result","create","get","getDataWithAcceptedSuggestions","model","CommentsRepository","Pagination"];var Fc,Pc;Fc=Oc,Pc=297,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=[Dc("0x26")];class jc extends t.Plugin{static get requires(){return[$a]}static get pluginName(){return Dc("0x1")}[Dc("0x8")](){const t=this[Dc("0xa")];if(t[Dc("0x1e")][Dc("0x14")](Dc("0x7"),(e=>{const n=t[Dc("0x24")][Dc("0x17")][Dc("0x27")]()[Dc("0x10")](((t,e)=>(t[e]="",t)),{});return t[Dc("0xb")][Dc("0x21")](n,e)})),Dc("0x5")!=typeof t.config[Dc("0x22")](Dc("0x12"))[Dc("0xd")])throw new e.CKEditorError(Dc("0x19"))}[Dc("0x23")](t){return Hc(this[Dc("0xa")],!0,t)}getDataWithDiscardedSuggestions(t){return Hc(this.editor,!1,t)}}class Uc extends t.Plugin{static get[Dc("0xf")](){return Dc("0x29")}constructor(t){super(t),this[Dc("0x20")]=Dc("0x16")}init(){this[Dc("0xa")][Dc("0x6")][Dc("0x22")](Dc("0x25"))[Dc("0x11")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[Dc("0x6")].get(Dc("0x1a"))[Dc("0x11")]=null}}function Gc(t){return void 0!==t[Dc("0x28")]}async function Hc(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,Bc);o[Dc("0x6")].push($a,Uc),o[Dc("0x13")]=Gc(t)?t[Dc("0x28")]():void 0;const s=document.createDocumentFragment(),r=t[Dc("0x1e")].get(Dc("0x12"))[Dc("0xd")],x=await r(o,(()=>function(t){const e=document.createElement("div");return t.appendChild(e),e}(s)));!function(t,e){const n=t[Dc("0x24")][Dc("0x17")][Dc("0x27")]()[Dc("0x10")](((e,n)=>(e[n]=t[Dc("0x2")].get({rootName:n}),e)),{}),o=t[Dc("0x6")][Dc("0x22")](Dc("0x0")).users.map((t=>({id:t.id,name:t[Dc("0x1b")]}))),s=t[Dc("0x6")][Dc("0x22")]("TrackChangesEditing")[Dc("0xe")]({skipNotAttached:!0,toJSON:!0}),i=e[Dc("0x6")][Dc("0x22")]("Users"),r=e[Dc("0x6")].get(Dc("0x1a"));for(const t of o)i[Dc("0x4")](t.id)||i[Dc("0x1c")](t);i.me||i[Dc("0x15")]();for(const t of s)r.addSuggestionData(t);e[Dc("0x2")][Dc("0x1f")](n)}(t,x),x[Dc("0x1d")](Dc(e?"0x3":"0x9"));const a=Gc(x)?x[Dc("0xc")](n):x[Dc("0x2")][Dc("0x22")](n);return await x[Dc("0x18")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|