@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231025.0 → 0.0.0-nightly-20231027.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 r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>hc,TrackChanges:()=>Mc,TrackChangesData:()=>jc,TrackChangesEditing:()=>$a});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["_isEnabledBasedOnSelection","forceDisabled","commands","_enableCommands","value","clearForceDisabled","_disableUnsupportedCommands","_enabledCommands","TrackChangesCommand","has","refresh","isEnabled","editor","execute","affectsData"];var c,l;c=a,l=195,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("0x4")]=!1,this[d("0xa")](),this[d("0x0")]=!1}[d("0xa")](){this[d("0xb")]=!0}[d("0xd")](){this[d("0x4")]=!this[d("0x4")],this[d("0x4")]?this[d("0x6")]():this[d("0x3")]()}[d("0x6")](){for(const t of this[d("0xc")][d("0x2")][d("0x2")]())t[d("0xe")]&&!this[d("0x7")][d("0x9")](t)&&t[d("0x1")](d("0x8"))}[d("0x3")](){for(const t of this[d("0xc")][d("0x2")].commands())t[d("0xe")]&&!this[d("0x7")][d("0x9")](t)&&t[d("0x5")](d("0x8"))}}const g=["_isEnabledBasedOnSelection","model","acceptSuggestion","_suggestions","get","refresh","isEnabled","execute","getRanges","TrackChangesEditing","plugins","editor","track-changes-accept-suggestion-not-found"];var m,f;m=g,f=223,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[h("0x3")](),this[h("0xb")]=!1}refresh(){this[h("0x4")]=!0}[h("0x5")](t){const n=this[h("0x1")][h("0x2")](t);if(!n)throw new e.CKEditorError(h("0xa"),this);const o=n[h("0x6")]();this[h("0x9")][h("0xc")].canEditAt(o)&&this[h("0x9")][h("0x8")][h("0x2")](h("0x7"))[h("0x0")](n)}}const b=["track-changes-discard-suggestion-not-found","plugins","canEditAt","_suggestions","get","editor","getRanges","refresh","isEnabled"];var E,_;E=b,_=369,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x3")]=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[T("0x7")](){this[T("0x8")]=!0}execute(t){const n=this[T("0x3")][T("0x4")](t);if(!n)throw new e.CKEditorError(T("0x0"),this);const o=n[T("0x6")]();this[T("0x5")].model[T("0x2")](o)&&this[T("0x5")][T("0x1")][T("0x4")]("TrackChangesEditing").discardSuggestion(n)}}const y=["push","content","change","sort","color","createPositionBefore","createPositionAfter","schema","map","deletion","type","isIntersecting","replace","createPositionAt","isArray","splice","isInContent","length","start","end","join","getRanges","isObject","execute","next","isMultiRange","value","isCollapsed","from"];var k,A;k=y,A=137,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0xb")](((t,e)=>v("0x11")==t.type&&v("0x11")!=e[v("0x12")]?-1:v("0x11")!=t.type&&v("0x11")==e[v("0x12")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0xf")];for(;o<t[v("0x19")];){const i=t[o],x=t[o+1];n||(n=e[v("0xd")](i)),I(e,i,x)||(s[v("0x8")](e.createRange(n,r[v("0x1")](i)?e[v("0xe")](i):e[v("0x15")](i,"end"))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0xe")](e),s=t[v("0xd")](n);return o.isTouching(s)}function L(t,e,n){for(;n[v("0x19")];){const o=n[v("0x17")](0,100);t[v("0xa")]((()=>{for(const t of o)t.isInContent&&e[v("0x2")](t.id)}))}}const N=["model","_suggestions","_command","values","some","isInContent","_isEnabledBasedOnSelection","canEditAt","isEnabled","from","refresh","editor"];var w,M;w=N,M=490,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x4")]=e,this[O("0x3")]=n,this[O("0x0")](),this[O("0x8")]=!1}[O("0x0")](){const t=Array[O("0xb")](this._suggestions[O("0x5")]())[O("0x6")]((t=>t[O("0x7")]));this[O("0xa")]=this[O("0x4")][O("0xa")]&&t}execute(){const t=R(Array[O("0xb")](this[O("0x3")][O("0x5")]()));for(const e of t){const t=e.getRanges();if(!this.editor[O("0x2")][O("0x9")](t))return}L(this[O("0x1")][O("0x2")],this[O("0x4")],t)}}const P=["document","canEditAt","refresh","editor","isEnabled","selection","_selectedSuggestions","getRanges","_isEnabledBasedOnSelection","model","from","_command","_suggestions"];var D,B;D=P,B=225,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._command=e,this._suggestions=n,this._selectedSuggestions=new Set,this[j("0xb")](),this[j("0x4")]=!1}[j("0xb")](){const t=this[j("0xc")][j("0x5")][j("0x9")][j("0x1")],e=Array[j("0x6")](this[j("0x8")].values());this[j("0x2")]=function(t,e){const n=Array[v("0x7")](t[v("0x0")]()),o=new Set;for(const s of e)if(s[v("0x18")])for(const e of n)for(const n of s[v("0x0")]())(e[v("0x13")](n)||t[v("0x6")]&&!s[v("0x4")]&&s[v("0x3")]&&n[v("0x1b")].isTouching(e[v("0x1a")]))&&o.add(s);return o}(t,e),this[j("0x0")]=this[j("0x7")][j("0x0")]&&!!this[j("0x2")].size}execute(){const t=R(Array[j("0x6")](this._selectedSuggestions));for(const e of t){const t=e[j("0x3")]();if(!this[j("0xc")][j("0x5")][j("0xa")](t))return}L(this[j("0xc")][j("0x5")],this[j("0x7")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(wt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?we(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Mo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["_onAttributesChange","reduce","set","next","attributes","isExternal","end","setAttribute","from","getFirstMarker","getMarkers","isIntersectingWithRange","removeMarkers","addMarkerName","_isDataLoaded","getFirstRange","isMultiRange","suggestion:","previous","_onDiscard","getRanges","isInContent","@external","nodeAfter","accept","onAttributesChange","_markerNames","clear","head","creator","removeAttribute","split","type","onDiscard","nodeBefore","getMarkerNames","markers","decorate","subType","get","createdAt","data","push","addMarker","getItems","_onAccept","_model","change","getMultiRangeId","filter","getRange","map","discard","authoredAt","removeMarker","getAllAdjacentSuggestions","commentThread","substr","add","author","length","toJSON"];var $o,Jo;$o=Xo,Jo=358,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("0x1c")]=!1,this.id=e.id,this[Qo("0x2e")]=e[Qo("0x2e")],this[Qo("0x34")]=e[Qo("0x34")]||null,this[Qo("0xb")]=e.author,this.creator=e[Qo("0x2b")]||e.author,this[Qo("0x13")]=Boolean(e[Qo("0x12")]&&e[Qo("0x12")][Qo("0x24")]),this[Qo("0x37")]=null,this[Qo("0x3c")]=t,this[Qo("0x3b")]=e.onAccept,this[Qo("0x21")]=e[Qo("0x2f")],this._onAttributesChange=e[Qo("0x27")],this[Qo("0x28")]=new Set,this[Qo("0x36")]=null,this[Qo("0x10")](Qo("0x5"),null),this.set(Qo("0x12"),e[Qo("0x12")]||{}),this.set(Qo("0x20"),null),this[Qo("0x10")]("next",null),this[Qo("0x10")](Qo("0x8"),null),this[Qo("0x10")]("_saved",!1),this[Qo("0x33")]("accept"),this.decorate(Qo("0x4"))}get[Qo("0x2a")](){let t=this;for(;t[Qo("0x20")];)t=t.previous;return t}get hasComments(){return!!this[Qo("0x8")]&&this.commentThread[Qo("0xc")]>0}get[Qo("0x1e")](){return 0!=this._markerNames.size&&6==Array[Qo("0x16")](this[Qo("0x28")])[0][Qo("0x2d")](":").length}get[Qo("0x23")](){return null!==this[Qo("0x17")]()}[Qo("0x1b")](t){this[Qo("0x28")][Qo("0xa")](t)}getMarkerNames(){return Array[Qo("0x16")](this._markerNames)}[Qo("0x18")](){return this[Qo("0x31")]()[Qo("0x3")]((t=>this[Qo("0x3c")][Qo("0x32")][Qo("0x35")](t)))[Qo("0x1")]((t=>t))}[Qo("0x17")](){return this[Qo("0x18")]()[0]||null}[Qo("0x1a")](){this._model[Qo("0x3d")]((t=>{for(const e of this[Qo("0x18")]())t[Qo("0x6")](e)})),this[Qo("0x28")][Qo("0x29")]()}removeMarker(t){this._model[Qo("0x3d")]((e=>{e[Qo("0x6")](t)})),this[Qo("0x28")].delete(t)}addRange(t){const e=Qo("0x1f")+this[Qo("0x2e")]+":"+this.subType+":"+this.id+":"+this[Qo("0x2b")].id+":"+Zo[Qo("0x0")]();this[Qo("0x1b")](e),this[Qo("0x3c")][Qo("0x3d")]((n=>{n[Qo("0x39")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x19")](t){for(const e of this[Qo("0x22")]())if(e.isIntersecting(t))return!0;return!1}[Qo("0x22")](){return this[Qo("0x18")]()[Qo("0x3")]((t=>t.getRange()))}[Qo("0x3a")](){return this[Qo("0x22")]()[Qo("0xf")](((t,e)=>[...t,...e[Qo("0x3a")]()]),[])}[Qo("0x1d")](){var t;return(null===(t=this[Qo("0x17")]())||void 0===t?void 0:t[Qo("0x2")]())||null}getContainedElement(){const t=this[Qo("0x22")]();if(1!=t.length)return null;const e=t[0],n=e.start[Qo("0x25")],o=e[Qo("0x14")][Qo("0x30")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x26")](){this[Qo("0x3b")](this[Qo("0x22")](),this[Qo("0x37")],this[Qo("0x12")]),this[Qo("0x1a")]()}[Qo("0x4")](){this[Qo("0x21")](this.getRanges(),this[Qo("0x37")],this[Qo("0x12")]),this.removeMarkers()}[Qo("0x7")](){const t=[];let e=this[Qo("0x2a")];for(;e;)t[Qo("0x38")](e),e=e[Qo("0x11")];return t}[Qo("0x15")](t,e){const n=eo(this[Qo("0x12")]);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x12")]=n,this[Qo("0xe")](n))}[Qo("0x2c")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0x12")])||(this.attributes=e,this._onAttributesChange(this[Qo("0x12")]))}[Qo("0xd")](){return{id:this.id,type:this[Qo("0x34")]?this[Qo("0x2e")]+":"+this[Qo("0x34")]:this.type,authorId:this[Qo("0x2b")].id,createdAt:this[Qo("0x36")],hasComments:this.hasComments,data:this.data,attributes:this[Qo("0x12")]}}static[Qo("0x0")](){return(0,e.uid)()[Qo("0x9")](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=["get","getDescriptions","isEqual","_itemLabelsCallbacks","previousSibling","elementEnd","removeObject","function","Container","_schema","*Split:* %0","label","normal","element","softBreak","matchingCallback","REPLACE_TEXT","push","length","text","addEmptyContainer","addContainer","isEmpty","quantity","isInContent","EmptyContainer","nextSibling","registerDescriptionCallback","_addDescriptionItems","removeContainer","type","_itemLabels","skip","addObject","data","*Insert:* %0","$textProxy","add","remove","match","ELEMENT_SPACE","_locale","isObject","deletion","Object","replace","elementStart","*Remove:* %0","_resolveDescriptionItems","end","getFirstRange","pop","insertion","getItemLabel","indexOf","$1 $2","name","*Merge:* %0","set"];var es,ns;es=ts,ns=151,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this._customCallbacks=[],this[os("0x39")]=new Map,this[os("0x1d")]=[],this[os("0x23")]=t,this._locale=e}[os("0x1b")](t){const e=[];for(let n=0;n<t[os("0x2c")];n++){const o=t[n];if(!o[os("0x32")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x38")in n&&e[os("0x2b")](n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x10")][os("0x1c")](s[os("0x11")]().start)){const t=e[e[os("0x2c")]-1],n=os("0x13")==o.type?os("0x4"):os("0x5");t&&"text"==t[os("0x38")]&&(t[n]+="\n")}}}return this[os("0xf")](e)}[os("0x35")](t){this._customCallbacks[os("0x2b")](t)}registerElementLabel(t,n,o=e.priorities[os("0x26")]){os("0x21")==typeof t?(0,e.insertToPriorityArray)(this[os("0x1d")],{matchingCallback:t,label:n,priority:o}):this[os("0x39")][os("0x19")](t,n)}[os("0x14")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x29")](t)){n=e[os("0x25")];break}return n||(n=this[os("0x39")][os("0x1a")](t.name)),n?n(e):1!==e?e+" "+t[os("0x17")]+"s":""+t.name}[os("0x36")](t,e){const n=e[os("0x11")]().getWalker(),o="insertion"==e.type?os("0x4"):os("0x5");for(const e of n){const s=e.item,r=t[t.length-1];if(s.is(os("0x3")))r&&r.type[os("0x15")](os("0x22"))>-1&&t.pop(),r&&os("0x2d")==r.type?r[o]+=s[os("0x1")]:t[os("0x2b")]({type:os("0x2d"),add:os("0x4")==o?s[os("0x1")]:"",remove:"remove"==o?s[os("0x1")]:""});else if(this[os("0x23")].isObject(s)){const i=s;if(r&&r[os("0x38")][os("0x15")](os("0x22"))>-1&&t[os("0x12")](),os("0x1f")==e[os("0x38")])continue;r&&r[os("0x38")]==o+os("0xb")&&r[os("0x27")].name==i[os("0x17")]?r[os("0x31")]++:t.push({type:o+os("0xb"),element:i,quantity:1}),n[os("0x3a")]((t=>!("elementEnd"==t.type&&t.item==s)))}else if(this[os("0x23")].checkChild(s,"$text")||s.is(os("0x27"),os("0x28"))){const n=s;if("add"==o&&os("0xd")==e.type||"remove"==o&&"elementEnd"==e[os("0x38")])continue;if(r&&-1==r[os("0x38")].indexOf(os("0x22"))){os("0x2d")==r[os("0x38")]&&(r[o]+="\n");continue}let i;if(i=os("0x4")==o?n[os("0x34")]&&!this._schema.isObject(n[os("0x34")])?n[os("0x34")]:null:n.previousSibling&&!this[os("0x23")][os("0x9")](n[os("0x1e")])?n[os("0x1e")]:null,n[os("0x30")]||i&&i.isEmpty){const e=i&&i.isEmpty?i:n;r&&r.type==o+os("0x33")&&r[os("0x27")].name==e[os("0x17")]?r[os("0x31")]++:t[os("0x2b")]({type:o+os("0x33"),element:e,quantity:1})}else t[os("0x2b")]({type:o+os("0x22"),element:n})}}}[os("0xf")](t){const e=this[os("0x8")],n=[];for(const o of t){switch(o[os("0x38")]){case os("0x2d"):if(o[os("0x4")]=o[os("0x4")].replace(/(\S)\u000A+(\S)/g,os("0x16"))[os("0xc")](/\u000A/g,""),o[os("0x5")]=o[os("0x5")][os("0xc")](/(\S)\u000A+(\S)/g,os("0x16"))[os("0xc")](/\u000A/g,""),""!=o[os("0x4")]&&""!=o.remove){n.push({type:os("0xc"),content:Yo(e,os("0x2a"),['"'+o[os("0x5")]+'"','"'+o[os("0x4")]+'"'])});continue}if(null!=o[os("0x4")][os("0x6")](/^ +$/)){n[os("0x2b")]({type:"insertion",content:Yo(e,"*Insert:* %0",Yo(e,os("0x7"),o[os("0x4")][os("0x2c")]))});continue}if(null!=o.remove[os("0x6")](/^ +$/)){n[os("0x2b")]({type:os("0xa"),content:Yo(e,os("0xe"),Yo(e,os("0x7"),o.remove[os("0x2c")]))});continue}if(""!=o[os("0x4")]){n.push({type:os("0x13"),content:Yo(e,os("0x2"),'"'+o[os("0x4")]+'"')});continue}n[os("0x2b")]({type:os("0xa"),content:Yo(e,os("0xe"),'"'+o[os("0x5")]+'"')});continue;case os("0x2e"):case os("0x0"):n[os("0x2b")]({type:"insertion",content:Yo(e,os("0x2"),this.getItemLabel(o[os("0x27")],o[os("0x31")]))});continue;case"removeEmptyContainer":case os("0x20"):n.push({type:os("0xa"),content:Yo(e,os("0xe"),this.getItemLabel(o.element,o[os("0x31")]))});continue;case os("0x2f"):n[os("0x2b")]({type:os("0x13"),content:Yo(e,os("0x24"),this[os("0x14")](o.element,o.quantity))});continue;case os("0x37"):n[os("0x2b")]({type:"deletion",content:Yo(e,os("0x18"),this[os("0x14")](o[os("0x27")],o[os("0x31")]))});continue}n[os("0x2b")](o)}return n}}const rs=["TrackChangesEditing","showAIAssistant","commands","enableCommand","plugins"];var is,xs;is=rs,xs=446,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this.editor,e=t[as("0x3")].get(as("0x4"));t[as("0x1")].get(as("0x0"))&&e[as("0x2")](as("0x0"))}}const ls=["checkAttribute","getAttribute","afterInit","center","alignment","schema","model","locale","enableCommand","FORMAT_ALIGN_TO_CENTER","*Format:* %0","getSelectedBlocks","format","get","right","left","value","from","FORMAT_ALIGN_TO_RIGHT","AlignmentEditing","filter","selection","markBlockFormat","TrackChangesEditing","ltr","editor","plugins","has","document","change","commandName","justify","FORMAT_ALIGN_TO_LEFT"];var ds,us;ds=ls,us=438,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{[gs("0x1a")](){const t=this[gs("0x10")],e=t.locale;if(!t[gs("0x11")][gs("0x12")](gs("0xa")))return;const n=t[gs("0x11")][gs("0x4")](gs("0xe"));n[gs("0x20")]("alignment",((e,o={})=>{let s=o[gs("0x7")];o[gs("0x7")]||(s=gs("0xf")===t[gs("0x1f")].contentLanguageDirection?"left":"right");const r=Array[gs("0x8")](this[gs("0x10")].model[gs("0x13")][gs("0xc")][gs("0x2")]())[gs("0xb")]((t=>function(t,e,n){const o=t[gs("0x19")](gs("0x1c"))||null;return e[gs("0x18")](t,gs("0x1c"))&&n!=o}(t,this.editor[gs("0x1e")][gs("0x1d")],s)));t.model[gs("0x14")]((()=>{for(const t of r)n[gs("0xd")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&gs("0x1c")==n[gs("0x15")]){const t=n.commandParams[0][gs("0x7")];return{type:gs("0x3"),content:Yo(e,gs("0x1"),function(t){switch(t){case gs("0x6"):return Yo(e,gs("0x17"));case gs("0x5"):return Yo(e,gs("0x9"));case gs("0x1b"):return Yo(e,gs("0x0"));case gs("0x16"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const fs=["getCustomProperty","ck-suggestion-marker-","createUIElement","isLimit","writer","item","insert","type","start","plugins","includes","listIndent","consumable","getWalker","get","nextSibling","TrackChangesEditing","name","getItems","element","addHighlight","activeMarkers","test","model","toViewPosition","mapper","isContent","schema","previousPosition","addClass","createRangeOn","markerName","getAttribute","push","markerRange","toViewElement","isBlock","listItem"];var hs,ps;hs=fs,ps=500,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("0xc")]())s.hasAttribute(t)&&o[bs("0x1b")](n[bs("0x18")](s));return o}function _s(t){const e=[];if(t.is(bs("0xd"),"listItem")){let n=t[bs("0x9")];for(;n&&n.is(bs("0xd"),bs("0x1f"))&&n[bs("0x1a")](bs("0x5"))>0;)e.push(n),n=n.nextSibling}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t[bs("0x3")][bs("0x8")](bs("0xa"));return(s,r,i)=>{if(!i[bs("0x6")][bs("0x10")](r[bs("0x1c")],s[bs("0xb")]))return;const x=r[bs("0x1c")][bs("0x7")](),a=r[bs("0x1c")][bs("0x2")],c=t[bs("0x11")][bs("0x15")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[bs("0x25")];u=u||c[bs("0x14")](e);const n=i.mapper[bs("0x1d")](e);if(n&&n[bs("0x20")](bs("0xe")))return;"elementEnd"==t[bs("0x1")]&&c[bs("0x1e")](e)&&!c[bs("0x23")](e)&&(e[bs("0x9")]||a.isAtEnd?l&&l.parent==e||(l=e,m(t[bs("0x16")]),g=!0):d=d||t[bs("0x16")])}function m(t){const s=i[bs("0x24")][bs("0x22")]("span",{class:bs("0x21")+e}),x=i.mapper[bs("0x12")](t);n&&o[bs("0xf")][bs("0x4")](r[bs("0x19")])&&i[bs("0x24")][bs("0x17")]("ck-suggestion-marker--active",s),i[bs("0x24")][bs("0x0")](x,s),i[bs("0x13")].bindElementToMarker(s,r[bs("0x19")])}u||g||!d||m(d)}}const Cs=["TrackChangesEditing","commandParams","format","commands","get","slice","FORMAT_ITALIC","markInlineFormat","StrikethroughEditing","code","value","FORMAT_SUPERSCRIPT","editor","plugins","subscript","toLowerCase","*Format:* %0","CodeEditing","from","change","strikethrough","UnderlineEditing","registerDescriptionCallback","SubscriptEditing","_descriptionFactory","afterInit","bold","enableCommand","ItalicEditing","BoldEditing","getRanges","italic","superscript","selection","forceValue","*Remove format:* %0","document","locale","underline","has","SuperscriptEditing","FORMAT_CODE","FORMAT_SUBSCRIPT"];var ys,ks;ys=Cs,ks=281,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x6"),As("0x5"),As("0x29"),As("0x25"),As("0x1c"),As("0x0"),As("0x11")];class Rs extends t.Plugin{[As("0x2")](){const t=this[As("0x20")],e=t.model,n=t.plugins[As("0x18")](As("0x14")),o=t[As("0xe")];for(const o of vs){if(!t[As("0x21")][As("0x10")](o))continue;const s=o[As("0x19")](0,-7)[As("0x23")](),r=t[As("0x17")][As("0x18")](s);n[As("0x4")](s,((t,o={})=>{const i=e[As("0xd")][As("0xa")];if(i.isCollapsed)return void t(o);const x=void 0!==o[As("0xb")]?o[As("0xb")]:!r[As("0x1e")];e[As("0x27")]((()=>{const t=Array[As("0x26")](i[As("0x7")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0x1b")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[As("0x1")][As("0x2a")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[As("0x15")][0].forceValue?{type:As("0x16"),content:Yo(o,As("0x24"),e)}:{type:As("0x16"),content:Yo(o,As("0xc"),e)}}))}s(As("0x3"),Yo(o,"FORMAT_BOLD")),s(As("0x8"),Yo(o,As("0x1a"))),s(As("0xf"),Yo(o,"FORMAT_UNDERLINE")),s(As("0x1d"),Yo(o,As("0x12"))),s(As("0x28"),Yo(o,"FORMAT_STRIKETHROUGH")),s(As("0x22"),Yo(o,As("0x13"))),s(As("0x9"),Yo(o,As("0x1f")))}}const Ss=["name","blockQuote","_descriptionFactory","*Format:* %0","enableCommand","plugins","*Remove format:* %0","ELEMENT_BLOCK_QUOTE","$root","format","document","BlockQuoteEditing","schema","filter","commandName","from","TrackChangesEditing","commandParams","locale","getSelectedBlocks","registerDescriptionCallback","parent","afterInit","selection","editor","value","change","get","model","forceValue"];var Is,Ls;Is=Ss,Ls=237,function(t){for(;--t;)Is.push(Is.shift())}(++Ls);const Ns=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ns("0x19")](){const t=this[Ns("0x1b")],e=t[Ns("0x15")];if(!t[Ns("0x8")].has(Ns("0xe")))return;const n=t[Ns("0x8")][Ns("0x0")](Ns("0x13")),o=this[Ns("0x1b")].commands.get("blockQuote");n[Ns("0x7")]("blockQuote",((e,s={})=>{const r=this.editor.model[Ns("0xd")][Ns("0x1a")],i=s&&void 0!==s.forceValue?s[Ns("0x2")]:!o[Ns("0x1c")];let x=[];if(i){const e=Array[Ns("0x12")](r.getSelectedBlocks())[Ns("0x10")]((t=>Ms(t)||function(t,e){const n=e.checkChild(t.parent,Ns("0x4")),o=e.checkChild([Ns("0xb"),Ns("0x4")],t);return n&&o}(t,this[Ns("0x1b")][Ns("0x1")][Ns("0xf")])));x=S(e,t[Ns("0x1")])}else{const e=Array[Ns("0x12")](r[Ns("0x16")]())[Ns("0x10")]((t=>Ms(t)));x=S(e,t[Ns("0x1")])}t[Ns("0x1")][Ns("0x1d")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ns("0x4"),commandParams:[{forceValue:i}]})}))})),n[Ns("0x5")][Ns("0x17")]((t=>{const{data:n}=t;if(n&&Ns("0x4")==n[Ns("0x11")]){const t=Yo(e,Ns("0xa"));return n[Ns("0x14")][0][Ns("0x2")]?{type:"format",content:Yo(e,Ns("0x6"),t)}:{type:Ns("0xc"),content:Yo(e,Ns("0x9"),t)}}}))}}function Ms(t){return Ns("0x4")==t[Ns("0x18")][Ns("0x3")]}const Os=["commands","enableCommand","afterInit","editor","TrackChangesEditing","ckbox","plugins"];var Fs,Ps;Fs=Os,Ps=169,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1")](){const t=this[Ds("0x2")];t[Ds("0x6")].get("ckbox")&&t[Ds("0x5")].get(Ds("0x3"))[Ds("0x0")](Ds("0x4"))}}const js=["CodeBlock","registerElementLabel","schema","indentCodeBlock","*Remove format:* %0","name","registerDescriptionCallback","_descriptionFactory","rootElement","languages","has","model","from","forceValue","document","locale","config","isLimit","ELEMENT_CODE_BLOCK","editor","format","getSelectedBlocks","checkChild","language","commandParams","filter","commands","TrackChangesEditing","afterInit","enableCommand","codeBlock","plugins","*Format:* %0","label","outdentCodeBlock","get"];var Us,Gs;Us=js,Gs=361,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{[Hs("0x1b")](){const t=this[Hs("0x12")];if(!t[Hs("0x1e")][Hs("0x9")](Hs("0x23")))return;const e=t[Hs("0x1e")][Hs("0x22")](Hs("0x1a")),n=t[Hs("0xe")],o=t[Hs("0xf")][Hs("0x22")]("codeBlock")[Hs("0x8")],s=t[Hs("0x19")][Hs("0x22")]("codeBlock");e[Hs("0x1c")](Hs("0x2")),e[Hs("0x1c")](Hs("0x21")),e[Hs("0x1c")](Hs("0x1d"),((n,r={})=>{const i=t[Hs("0xa")],x=t[Hs("0xa")][Hs("0xd")].selection,a=r&&void 0!==r[Hs("0xc")]?r[Hs("0xc")]:!s.value;let c;r[Hs("0x16")]||(r[Hs("0x16")]=o[0].language),c=a?Array[Hs("0xb")](x[Hs("0x14")]())[Hs("0x18")]((t=>{return Ws(t)||(e=t,n=i[Hs("0x1")],!e.is(Hs("0x7"))&&!n[Hs("0x10")](e)&&n[Hs("0x15")](e.parent,Hs("0x1d")));var e,n})):Array[Hs("0xb")](x[Hs("0x14")]())[Hs("0x18")]((t=>Ws(t)));const l=S(c,i);i.change((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Hs("0x1d"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e._descriptionFactory[Hs("0x0")]("codeBlock",(t=>Yo(n,Hs("0x11"),t))),e[Hs("0x6")][Hs("0x5")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&Hs("0x1d")==r.commandName){const t=r[Hs("0x17")][0][Hs("0x16")],s=e(o.find((e=>e[Hs("0x16")]===t))[Hs("0x20")]);return r[Hs("0x17")][0][Hs("0xc")]?{type:Hs("0x13"),content:Yo(n,Hs("0x1f"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Yo(n,Hs("0x3"),Yo(n,Hs("0x11"),1))}}}))}}function Ws(t){return"codeBlock"==t[Hs("0x4")]}const Vs=["has","get","editor","plugins","addCommentThread","afterInit","CommentsEditing","TrackChangesEditing"];var Ks,qs;Ks=Vs,qs=235,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Vs[t-=0]};class $s extends t.Plugin{[Xs("0x2")](){const t=this[Xs("0x7")];t[Xs("0x0")][Xs("0x5")](Xs("0x3"))&&t[Xs("0x0")][Xs("0x6")](Xs("0x4")).enableCommand(Xs("0x1"))}}var Js=n(181);const Qs=["enqueueChange","end","isCollapsed","createRange","mapper","data","requires","detach","enableCommand","high","unbindElementFromMarkerName","selection","root","merge","commands","fromRange","setSelection","unit","lock","start","markerNameToElements","remove","downcastDispatcher","forward","unlock","addMarker:suggestion:deletion","TrackChangesEditing","editor","deleteForward","buffer","bind","model","options","$graveyard","editing","writer","modifySelection","rootName","delete","showSuggestionHighlights","batch","getFirstRange","get","plugins","uiElement"];var Zs,Ys;Zs=Qs,Ys=302,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("0x13")](){return[Js.Delete]}init(){const t=this[tr("0x28")],e=t[tr("0xb")][tr("0xa")](tr("0x27"));e[tr("0x15")](tr("0x6"));const n=t[tr("0x1b")][tr("0xa")](tr("0x29"));e[tr("0x15")](tr("0x29"),((e,o={})=>{const s=t[tr("0x2c")].createSelection(t.model.document[tr("0x18")]);s[tr("0xf")]&&t[tr("0x2c")][tr("0x4")](s,{direction:tr("0x24"),unit:o[tr("0x1e")]});const r=s[tr("0x9")](),x=i.LiveRange[tr("0x1c")](r);let a;e(o),a=tr("0x1")==x[tr("0x19")][tr("0x5")]?t[tr("0x2c")][tr("0x10")](r.start):t.model[tr("0x10")](x[tr("0x20")],x[tr("0xe")]),x[tr("0x14")](),t[tr("0x2c")][tr("0xd")](n[tr("0x2a")][tr("0x8")],(t=>{n[tr("0x2a")][tr("0x1f")](),t[tr("0x1d")](t[tr("0x10")](a[tr("0xe")])),n[tr("0x2a")][tr("0x25")]()}))})),t[tr("0x2")][tr("0x23")].on(tr("0x26"),Ts(t,tr("0x1a")),{priority:tr("0x16")}),t[tr("0x12")].downcastDispatcher.on(tr("0x26"),((e,n,o)=>{o[tr("0x0")][tr("0x7")]&&Ts(t,"merge",{showActiveMarker:!1})[tr("0x2b")](this)(e,n,o)}),{priority:tr("0x16")}),t[tr("0x2")][tr("0x23")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[tr("0x11")][tr("0x21")](e.markerName);if(o)for(const t of o)t.is(tr("0xc"))&&(n.mapper[tr("0x17")](t,e.markerName),n[tr("0x3")][tr("0x22")](t))}),{priority:tr("0x16")})}}const nr=["getRanges","change","start","nextSibling","setSelection","schema","paragraph","execute","mergeListItemForward","multipleBlocks","commands","*Format:* insert into %0","push","config","has","markMultiRangeBlockFormat","toUpperCase","end","*Change to:* %0","model","list.multiBlock","outdentList","selection","numberedList","deletion","_LIST","getAttribute","accept","indentList","enableCommand","add","format","getSelectedBlocks","ELEMENT_LIST_ITEM","get","commandName","*Format:* remove from %0","fromRange","slice","listItemId","length","plugins","listIndent","after","documentList","value","bulletedList","registerDescriptionCallback","map","refresh","locale","before","ELEMENT_BULLETED_LIST","createRange","document","parent","from","listType","commandParams","isFirstBlockOfListItem","registerCustomCallback","forceValue","markBlockFormat","ELEMENT_NUMBERED_LIST","DocumentListEditing","createPositionAt","nodeAfter","expandListBlocksToCompleteList","afterInit","isObject","ELEMENT_","splitListItemBefore","formatBlock","*Outdent:* %0","getFirstRange","registerElementLabel","_descriptionFactory","containsItem","DocumentListUtils","splitListItemAfter"];var or,sr;or=nr,sr=377,function(t){for(;--t;)or.push(or.shift())}(++sr);const rr=function(t,e){return nr[t-=0]};class ir extends t.Plugin{[rr("0xb")](){const t=this.editor;if(!t[rr("0x40")][rr("0x25")](rr("0x7")))return;const e=t[rr("0x49")],n=t[rr("0x40")][rr("0x39")]("TrackChangesEditing"),o=t[rr("0x40")][rr("0x39")](rr("0x15"));function s(e){return()=>{const s=t[rr("0x21")][rr("0x39")](e);if(s.value&&!t[rr("0x24")][rr("0x39")](rr("0x2b")))return void t.execute(rr("0x1d"),{});let r=Array.from(t[rr("0x2a")][rr("0x4d")].selection[rr("0x37")]());if(a(e)){r=o[rr("0xa")](r);const t=[];for(const e of r)o[rr("0x2")](e)&&t[rr("0x23")](e);r=t}t.model[rr("0x18")]((()=>{n[rr("0x26")](r,{commandName:e,commandParams:[{forceValue:!s[rr("0x44")]}],formatGroupId:rr("0x0")},[],rr("0x43"))}))}}function r(e){return()=>{const o=function(t){let e=Array[rr("0x4f")](t);const n=e.findIndex((t=>!t.hasAttribute(rr("0x3e"))));return n>-1&&(e=e[rr("0x3d")](0,n)),e}(t.model[rr("0x4d")][rr("0x2d")].getSelectedBlocks()),s=o[o[rr("0x3f")]-1],r=t.model[rr("0x1c")][rr("0xc")](s)?rr("0x42"):rr("0x28"),i=t[rr("0x2a")][rr("0x4c")](t[rr("0x2a")][rr("0x8")](o[0],"before"),t[rr("0x2a")].createPositionAt(s,r));t[rr("0x2a")].change((()=>{n[rr("0x5")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x0")},function(t){const e=new Set;for(const n of t){let t=n[rr("0x1a")];for(;t&&t[rr("0x31")]("listIndent")>n.getAttribute("listIndent");)e[rr("0x35")](t),t=t.nextSibling}return Array[rr("0x4f")](e)}(o))}))}}function x(e){return()=>{const o=t[rr("0x2a")][rr("0x4d")][rr("0x2d")][rr("0x37")]().next().value,s=t[rr("0x2a")][rr("0x8")](o,rr("0x4a")),r=t[rr("0x2a")][rr("0x8")](o,0),i=t[rr("0x2a")][rr("0x4c")](s,r);t[rr("0x2a")][rr("0x18")]((()=>{n[rr("0x5")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x0")})}))}}function a(e){const n=t.commands[rr("0x39")]("bulletedList")[rr("0x44")],o=t.commands[rr("0x39")](rr("0x2e"))[rr("0x44")];return rr("0x2e")===e?n:o}n.enableCommand(rr("0x2e"),s(rr("0x2e"))),n.enableCommand(rr("0x45"),s(rr("0x45"))),n[rr("0x34")](rr("0x33"),r(rr("0x33"))),n[rr("0x34")](rr("0x2c"),r("outdentList")),n[rr("0x34")](rr("0x16"),x(rr("0x16"))),n.enableCommand("splitListItemBefore",x(rr("0xe"))),n[rr("0x13")][rr("0x12")]((function(e){const n=!t[rr("0x2a")].schema[rr("0xc")](e),o=e.previousSibling,s=e[rr("0x1a")],r=e.getAttribute("listItemId"),i=!o||o[rr("0x31")](rr("0x3e"))!==r,x=!s||s[rr("0x31")](rr("0x3e"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[rr("0x13")][rr("0x46")]((function(n){const{data:o}=n;if(!o)return;let s,r,i,x;switch(o[rr("0x3a")]){case"bulletedList":i=o[rr("0x1")][0].forceValue,x=a(o[rr("0x3a")]),s=rr(i?"0x22":"0x3b"),!x&&t[rr("0x24")][rr("0x39")](rr("0x2b"))||(s=rr("0x29")),r={type:rr("0x36"),content:Yo(e,s,Yo(e,rr("0x4b")))};break;case rr("0x2e"):i=o[rr("0x1")][0][rr("0x4")],x=a(o[rr("0x3a")]),s=rr(i?"0x22":"0x3b"),!x&&t[rr("0x24")][rr("0x39")](rr("0x2b"))||(s="*Change to:* %0"),r={type:rr("0x36"),content:Yo(e,s,Yo(e,rr("0x6")))};break;case"indentList":s="*Indent:* %0",r={type:"format",content:Yo(e,s,Yo(e,rr("0x38")))};break;case"outdentList":s=function(t){const e=t[rr("0x11")]();let n=e[rr("0x19")][rr("0x9")];for(;n&&e[rr("0x14")](n);){if(n.getAttribute(rr("0x41"))>0)return!1;n=n[rr("0x1a")]}return!0}(n)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[rr("0x11")]()[rr("0x19")].nodeAfter;return rr("0xd")+e[rr("0x31")](rr("0x0"))[rr("0x27")]()+rr("0x30")}(n))):Yo(e,rr("0x10"),Yo(e,rr("0x38"))),r={type:rr("0x36"),content:s};break;case"mergeListItemBackward":case rr("0x1f"):!1===o[rr("0x20")]&&(s="*Merge:* %0",r={type:rr("0x2f"),content:Yo(e,s,Yo(e,rr("0x38")))})}return r})),n._suggestionFactory[rr("0x3")](rr("0xf"),rr("0x43"),rr("0x32"),(function(e,n){const o=[];for(let n of e)n[rr("0x19")][rr("0x9")]===n.end[rr("0x4e")]&&(n=t.model[rr("0x4c")](t[rr("0x2a")].createPositionAt(n.start.nodeAfter,0))),o[rr("0x23")](n);t.model[rr("0x18")]((e=>{const s=t[rr("0x2a")][rr("0x4d")][rr("0x2d")],r=Array.from(s[rr("0x17")]())[rr("0x47")]((t=>i.LiveRange[rr("0x3c")](t)));e[rr("0x1b")](o),t[rr("0x21")][rr("0x39")](n[rr("0x3a")])[rr("0x48")](),n[rr("0x1")][rr("0x23")]({forceDefaultExecution:!0}),t[rr("0x1e")](n[rr("0x3a")],...n[rr("0x1")]),e[rr("0x1b")](r);for(const t of r)t.detach()}))}))}}var xr=n(331);const ar=["enableCommand","options","parent","getFirstRange","markInsertion","markerName","get","enter","addMarker:suggestion:insertion","mapper","fromRange","getFirstPosition","setSelection","init","TrackChangesEditing","ck-suggestion-marker-split","editor","remove","split","detach","downcastDispatcher","removeMarker:suggestion:insertion","hasClass","document","high","writer","createRange","editing","plugins","showSuggestionHighlights","fire","commands","afterExecute","data","model","createPositionAt","requires","selection","change"];var cr,lr;cr=ar,lr=430,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("0x23")](){return[xr.Enter]}[dr("0xc")](){const t=this[dr("0xf")],e=t[dr("0x1b")][dr("0x5")](dr("0xd")),n=t[dr("0x1e")][dr("0x5")](dr("0x6"));e[dr("0x26")](dr("0x6"),(()=>{t[dr("0x21")][dr("0x25")]((o=>{const s=t.model[dr("0x16")][dr("0x24")],r=s[dr("0xa")](),x=i.LiveRange[dr("0x9")](s[dr("0x2")]());if(n.enterBlock(o)){const n=t[dr("0x21")][dr("0x22")](r[dr("0x1")].nextSibling,0),s=o[dr("0x19")](r,n);e[dr("0x3")](s)}else o[dr("0xb")](o.createRange(x.end));x[dr("0x12")](),n[dr("0x1d")](dr("0x1f"),{writer:o})}))})),t[dr("0x1a")][dr("0x13")].on(dr("0x7"),Ts(t,dr("0x11")),{priority:dr("0x17")}),t[dr("0x1a")][dr("0x13")].on(dr("0x14"),((t,e,n)=>{const o=n[dr("0x8")].markerNameToElements(e[dr("0x4")]);if(o)for(const t of o)t[dr("0x15")](dr("0xe"))&&(n.mapper.unbindElementFromMarkerName(t,e[dr("0x4")]),n[dr("0x18")][dr("0x10")](t))}),{priority:"high"}),t[dr("0x20")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,o)=>{o[dr("0x0")][dr("0x1c")]&&Ts(t,dr("0x11"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:dr("0x17")})}}const gr=["filter","getIntersection","handleFindCommand","get","findByTextCallback","createRange","FindAndReplaceUtils","has","enableCommand","model","markers","replaceAll","afterInit","editor","suggestion:deletion","bind","getRange","start","TrackChangesEditing","findNext","getMarkersGroup","end","string","plugins","findPrevious","FindAndReplaceEditing","_isInDeletionRange"];var mr,fr;mr=gr,fr=245,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0xa")](){if(!this.editor[hr("0x15")][hr("0x5")](hr("0x17")))return;const t=this[hr("0xb")][hr("0x15")][hr("0x1")](hr("0x10"));t[hr("0x6")]("find",this.handleFindCommand[hr("0xd")](this)),t[hr("0x6")](hr("0x11")),t[hr("0x6")](hr("0x16")),t[hr("0x6")]("replace"),t[hr("0x6")](hr("0x9"))}[hr("0x0")](t,e,n={}){const o=this[hr("0xb")][hr("0x15")][hr("0x1")](hr("0x4"));if(void 0!==n)return t((t=>(hr("0x14")==typeof e?o[hr("0x2")](e,n):e)(t)[hr("0x19")]((e=>!1===this._isInDeletionRange(e,t.item)))),n)}[hr("0x18")](t,e){const n=this[hr("0xb")].model[hr("0x3")](this[hr("0xb")][hr("0x7")].createPositionAt(e,t[hr("0xf")]),this[hr("0xb")].model.createPositionAt(e,t[hr("0x13")]));for(const t of this[hr("0xb")][hr("0x7")][hr("0x8")][hr("0x12")](hr("0xc")))if(null!==n[hr("0x1a")](t[hr("0xe")]()))return!0;return!1}}const br=["FontFamilyEditing","afterInit","get","getRanges","_enableCommand","*Set font family:* %0","document","change","fontBackgroundColor","value","trim","toLowerCase","*Reset font color*","fontSize","FontColorEditing","isCollapsed","has","locale","commandName","fontColor.colors","*Set font background color:* %0","_descriptionFactory","from","*Set font color:* %0","fontBackgroundColor.colors","TrackChangesEditing","plugins","*Reset font family*","find","label","format","enableCommand","*Set font size:* %0","FontSize","*Reset font size*","fontColor","model","commandParams","editor","config"];var Er,_r;Er=br,_r=189,function(t){for(;--t;)Er.push(Er.shift())}(++_r);const Tr=function(t,e){return br[t-=0]},Cr=[{pluginName:"FontSizeEditing",commandName:Tr("0x18")},{pluginName:Tr("0xb"),commandName:"fontFamily"},{pluginName:Tr("0x19"),commandName:Tr("0x6")},{pluginName:"FontBackgroundColorEditing",commandName:Tr("0x13")}];class yr extends t.Plugin{[Tr("0xc")](){const t=this[Tr("0x9")][Tr("0x1c")];for(const{pluginName:t,commandName:e}of Cr)this[Tr("0x9")].plugins[Tr("0x1b")](t)&&this[Tr("0xf")](e);this[Tr("0x9")][Tr("0x25")][Tr("0xd")](Tr("0x24"))[Tr("0x20")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(Tr("0x18")==o[Tr("0x1d")]){const e=o[Tr("0x8")][0].value;if(e){const o=n(this[Tr("0x9")].plugins[Tr("0xd")](Tr("0x4")).normalizeSizeOptions(this[Tr("0x9")].config[Tr("0xd")]("fontSize.options"))[Tr("0x27")]((t=>t[Tr("0x7")]==e)).title)[Tr("0x16")]();return{type:Tr("0x1"),content:Yo(t,Tr("0x3"),o)}}return{type:Tr("0x1"),content:Yo(t,Tr("0x5"))}}if("fontFamily"==o[Tr("0x1d")]){const e=o.commandParams[0][Tr("0x14")];return e?{type:Tr("0x1"),content:Yo(t,Tr("0x10"),e)}:{type:Tr("0x1"),content:Yo(t,Tr("0x26"))}}if(Tr("0x6")==o[Tr("0x1d")]){const e=o[Tr("0x8")][0][Tr("0x14")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x9")][Tr("0xa")].get(Tr("0x1e")))[Tr("0x27")]((t=>t[Tr("0x7")]==e));let r=e,i="";return o&&(r=o[Tr("0x0")],i=n(r).toLowerCase()),{type:Tr("0x1"),content:Yo(t,Tr("0x22"),i)[Tr("0x15")](),color:{value:e,title:i||r}}}return{type:Tr("0x1"),content:Yo(t,Tr("0x17"))}}if("fontBackgroundColor"==o[Tr("0x1d")]){const e=o.commandParams[0][Tr("0x14")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[Tr("0xa")].get(Tr("0x23")))[Tr("0x27")]((t=>t[Tr("0x7")]==e));let r=e,i="";return o&&(r=o[Tr("0x0")],i=n(r)[Tr("0x16")]()),{type:Tr("0x1"),content:Yo(t,Tr("0x1f"),i)[Tr("0x15")](),color:{value:e,title:i||r}}}return{type:Tr("0x1"),content:Yo(t,"*Reset font background color*")}}}}))}[Tr("0xf")](t){const e=this.editor;e[Tr("0x25")].get("TrackChangesEditing")[Tr("0x2")](t,((n,o={})=>{const s=e[Tr("0x7")][Tr("0x11")].selection,r=o[Tr("0x14")];s[Tr("0x1a")]?n(o):e[Tr("0x7")][Tr("0x12")]((()=>{const n=Array[Tr("0x21")](s[Tr("0xe")]());for(const o of n){const n=r?[o]:Es(t,o,e[Tr("0x7")]);for(const o of n)e[Tr("0x25")].get(Tr("0x24")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const kr=["*Remove all formatting*","getLastPosition","commandParams","fontBackgroundColor","getSelectedBlocks","slice","find","enableCommand","backward","change","from","plugins","registerDescriptionCallback","word","fontColor.colors","format","title","getFirstPosition","normalizeSizeOptions","document","commands","length","editor","schema","markInlineFormat","fontColor","selection","toLowerCase","getRanges","FontSize","copyFormat","modifySelection","config","pasteFormat","boolean","fontSize","afterInit","_descriptionFactory","commandName","entries","get","isFormatting","join","createSelection","toUpperCase","model","locale","getAttributeProperties","forward","getItems","*Set format to:* %0"];var Ar,vr;Ar=kr,vr=318,function(t){for(;--t;)Ar.push(Ar.shift())}(++vr);const Rr=function(t,e){return kr[t-=0]};class Sr extends t.Plugin{[Rr("0x18")](){const t=this[Rr("0xa")],n=t[Rr("0x21")],o=n[Rr("0x7")][Rr("0xe")],s=t.plugins.get("TrackChangesEditing"),r=t[Rr("0x22")],i=t[Rr("0x8")][Rr("0x1c")](Rr("0x12")),x=t[Rr("0x8")][Rr("0x1c")](Rr("0x15"));i&&x&&(s[Rr("0x2e")]("pasteFormat",((t,r={})=>{const i=r;n[Rr("0x30")]((()=>{const t=Array[Rr("0x31")](o[Rr("0x10")]()),r=o.isCollapsed?[Ir(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t.getAttributes()){const t=e[Rr("0x23")](n);t&&t[Rr("0x1d")]&&(yield n)}}(t,n));for(const e of t[Rr("0x10")]())for(const t of e[Rr("0x25")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[Rr("0x2b")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Rr("0xb")]))||0!==Object.keys(i)[Rr("0x9")])for(const t of r)s[Rr("0xc")](t,{commandName:Rr("0x15"),commandParams:[i]})}))})),s[Rr("0x19")][Rr("0x0")]((e=>{const{data:n}=e;if(n&&Rr("0x15")===n[Rr("0x1a")]){const e=[],o=n[Rr("0x29")][0];for(const[n,s]of Object[Rr("0x1b")](o))e.push(Lr(t,n,s));return e.length?{type:"format",content:Yo(r,Rr("0x26"),e.join(", "))}:{type:Rr("0x3"),content:Yo(r,Rr("0x27"))}}})),t[Rr("0x32")][Rr("0x1c")]("TrackChangesEditing")[Rr("0x2e")](Rr("0x12")))}}function Ir(t,e){const n=t[Rr("0x1f")](e);t[Rr("0x13")](n,{unit:"word",direction:Rr("0x2f")});const o=n[Rr("0x5")]();t.modifySelection(n,{unit:Rr("0x1"),direction:Rr("0x24")});const s=n[Rr("0x28")]();return t.createRange(o,s)}function Lr(t,e,n){const o=t[Rr("0x22")].t,r=e.split(/(?=[A-Z])/)[Rr("0x1e")](" "),i=o(r.charAt(0)[Rr("0x20")]()+r[Rr("0x2c")](1)).toLowerCase();if(Rr("0x16")==typeof n)return i;if(Rr("0xd")===e||Rr("0x2a")===e){const e=(0,s.normalizeColorOptions)(t.config[Rr("0x1c")](Rr("0x2"))).find((t=>t[Rr("0x21")]==n));return i+" ("+(e?o(e.label)[Rr("0xf")]():n)+")"}if(Rr("0x17")===e&&isNaN(parseFloat(n))){const e=t[Rr("0x32")][Rr("0x1c")](Rr("0x11"))[Rr("0x6")](t[Rr("0x14")][Rr("0x1c")]("fontSize.options"))[Rr("0x2d")]((t=>t.model==n));return i+" ("+(e?o(e[Rr("0x4")])[Rr("0xf")]():n)+")"}return i+" ("+n+")"}const Nr=["isObject","getSelectedBlocks","heading","markBlockFormat","formatBlock","checkChild","model","get","HeadingEditing","ELEMENT_HEADING_CUSTOM","*Change to:* %0","filter","title","commandParams","enableCommand","paragraph","name","has","plugins","match","heading.options","format","blockName","editor","ELEMENT_HEADING","_descriptionFactory","registerDescriptionCallback","selection","value","find","document","parent","schema"];var wr,Mr;wr=Nr,Mr=373,function(t){for(;--t;)wr.push(wr.shift())}(++Mr);const Or=function(t,e){return Nr[t-=0]};class Fr extends t.Plugin{afterInit(){const t=this[Or("0xd")],e=t.locale,n=t.config[Or("0x1e")](Or("0xa"));if(!t[Or("0x8")][Or("0x7")](Or("0x1f")))return;const o=t.plugins[Or("0x1e")]("TrackChangesEditing");o[Or("0x4")](Or("0x19"),((e,n)=>{const s=n[Or("0x12")],r=Array.from(this[Or("0xd")].model[Or("0x14")][Or("0x11")][Or("0x18")]())[Or("0x1")]((t=>{return e=t,n=s,(o=this.editor[Or("0x1d")][Or("0x16")])[Or("0x1c")](e[Or("0x15")],n)&&!o[Or("0x17")](e)&&e[Or("0x6")]!=n;var e,n,o}));t[Or("0x1d")].change((()=>{for(const t of r)o[Or("0x1a")](t,{commandName:Or("0x19"),commandParams:[n],formatGroupId:Or("0xc")},_s(t))}))}));for(const t of n)Or("0x5")!=t[Or("0x1d")]&&o[Or("0xf")].registerElementLabel(t[Or("0x1d")],(e=>{const n=Pr(t[Or("0x1d")]);return null!==n?s(e,n):r(e,t[Or("0x2")])}));function s(t,n){return Yo(e,Or("0xe"),[t,n])}function r(t,n){return Yo(e,Or("0x20"),[t,n])}o[Or("0xf")][Or("0x10")]((t=>{const{type:o,data:i}=t;if(Or("0x1b")==o&&i&&Or("0x19")==i.commandName){const t=i[Or("0x3")][0][Or("0x12")],o=Pr(t);if(null!==o)return{type:Or("0xb"),content:Yo(e,Or("0x0"),s(1,o))};const x=n[Or("0x13")]((e=>e[Or("0x1d")]===t))[Or("0x2")];return{type:Or("0xb"),content:Yo(e,Or("0x0"),r(1,x))}}}))}}function Pr(t){const e=t[Or("0x9")](/^heading(\d+)$/);return e?e[1]:null}const Dr=["backward","registerDescriptionCallback","editor","*Remove highlight*","createRange","config","selection","highlight","item","plugins","format","value","_descriptionFactory","TrackChangesEditing","getAttribute","markInlineFormat","model","*Set highlight:* %0","commandName","find","push","getLastMatchingPosition","FORMAT_HIGHLIGHT","isCollapsed","color","afterInit","has","toLowerCase","title"];var Br,jr;Br=Dr,jr=239,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x12")](){const t=this[Ur("0x18")];if(!t[Ur("0x2")][Ur("0x13")]("HighlightEditing"))return;const e=t[Ur("0x2")].get(Ur("0x6"));e.enableCommand(Ur("0x0"),((n,o={})=>{const s=t[Ur("0x9")].document[Ur("0x1c")],r=s[Ur("0x7")](Ur("0x0"));let i=o.value,x=[];if(s[Ur("0x10")]){const e=s.getFirstPosition();if(!s.hasAttribute(Ur("0x0")))return void n(o);{const n=t=>t[Ur("0x1")][Ur("0x7")]("highlight")===r,o=e[Ur("0xe")](n,{direction:Ur("0x16")}),s=e[Ur("0xe")](n);x=[t[Ur("0x9")][Ur("0x1a")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x[Ur("0xd")](e):x[Ur("0xd")](...Es(Ur("0x0"),e,t[Ur("0x9")]));t[Ur("0x9")].change((()=>{for(const t of x)e[Ur("0x8")](t,{commandName:Ur("0x0"),commandParams:[{value:i}]})}))}));const n=t.locale;e[Ur("0x5")][Ur("0x17")]((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Ur("0x0")==s[Ur("0xb")]){const e=n.t,o=s.commandParams[0][Ur("0x4")];if(o){const s=t[Ur("0x1b")].get("highlight.options")[Ur("0xc")]((t=>t[Ur("0x9")]==o)),r=e(s[Ur("0x15")])[Ur("0x14")]();return{type:Ur("0x3"),content:Yo(n,Ur("0xa"),r),color:{value:s[Ur("0x11")],title:s[Ur("0x15")]}}}return{type:Ur("0x3"),content:Yo(n,Ur("0x19"),Yo(n,Ur("0xf")))}}}))}}const Hr=["ELEMENT_HORIZONTAL_LINE","dataDowncast","_descriptionFactory","for","high","has","afterInit","createContainerElement","horizontalLine","elementToStructure","showSuggestionHighlights","conversion","get","div","plugins","TrackChangesEditing","editor","registerElementLabel","HorizontalLineEditing"];var zr,Wr;zr=Hr,Wr=290,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x1")](){const t=this[Vr("0xb")];if(!t.plugins[Vr("0x0")](Vr("0xd")))return;t[Vr("0x9")][Vr("0x7")]("TrackChangesEditing").enableCommand(Vr("0x3"));const e=t[Vr("0x9")][Vr("0x7")](Vr("0xa")),n=t.locale;e[Vr("0x10")][Vr("0xc")](Vr("0x3"),(t=>Yo(n,Vr("0xe"),t))),t[Vr("0x6")][Vr("0x11")](Vr("0xf"))[Vr("0x4")]({model:Vr("0x3"),view:(t,{writer:e,options:n})=>{if(!n[Vr("0x5")])return null;const o=e[Vr("0x2")](Vr("0x8")),s=e.createEmptyElement("hr");return e.addClass("ck-horizontal-line",o),e.insert(e.createPositionAt(o,0),s),o},converterPriority:Vr("0x12")})}}const qr=["change","TrackChangesEditing","htmlEmbed","getSelectedElement","has","model","cancel","value","enableCommand","ELEMENT_HTML_EMBED","editing","registerElementLabel","markBlockFormat","view","rawHtml","locale","*Change %0 content*","getAttribute","commandName","getCustomProperty","rawHtmlApi","get","plugins","_descriptionFactory","document","element"];var Xr,$r;Xr=qr,$r=256,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")]("HtmlEmbed"))return;const e=t.plugins[Jr("0x19")](Jr("0x5")),n=t[Jr("0x13")],o=t[Jr("0xe")][Jr("0x11")][Jr("0x2")].selection;e[Jr("0x1")][Jr("0xf")](Jr("0x12"),(t=>Yo(n,Jr("0xd"),t))),t.plugins[Jr("0x19")](Jr("0x5"))[Jr("0xc")](Jr("0x6"),((n,s)=>{const r=t[Jr("0x9")],i=r[Jr("0x2")].selection;r[Jr("0x4")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Jr("0x3"),Jr("0x12"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t[Jr("0x15")](Jr("0xb"))||"";void 0!==s&&s!==r&&(e[Jr("0x10")](t,{commandName:"htmlEmbed",commandParams:[s]}),o[Jr("0x7")]()[Jr("0x17")](Jr("0x18"))[Jr("0xa")]())}))})),e[Jr("0x1")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Jr("0x6")==e[Jr("0x16")]){const t=Yo(n,Jr("0xd"));return{type:"format",content:Yo(n,Jr("0x14"),t)}}}))}}const Zr=["getContainedElement","accept","fromPosition","imageTypeInline","commandName","schema","formatInline","isCollapsed","registerDescriptionCallback","*Set image text alternative:* %0","hasAttribute","nodeAfter","shouldConvertImageType","side","markInsertion","length","has","ImageResize","imageTypeBlock","imageStyle","value","getClosestSelectedImageElement","join","ImageEditing","alt","next","insertion","ImageTextAlternativeEditing","*Format:* %0","filter","createRangeOn","suggestion","toNext","detach","registerElementLabel","model","getCaptionFromImageModelElement","caption","backward","selection","*Remove image text alternative*","_suggestionFactory","getAttribute","imageStylePreApply","imageInline","commandReversedParams","ELEMENT_INLINE_IMAGE","getSuggestionCallback","toggleImageCaption","format","findIndex","editor","uploadImage","_splitMarkerName","ELEMENT_IMAGE","commandParams","ImageUploadEditing","type","document","ImageInlineEditing","discardSuggestion","subType","getChangedMarkers","enableCommand","change","author","_findSuggestions","hasSuggestion","convertInlineImageToBlock","convertBlockImageToInline","toLowerCase","imageStylePostApply","createRange","markBlockFormat","_descriptionFactory","refresh","ImageBlockEditing","newRange","getNearestSelectionRange","width","normalizedStyles","*Set image width:* %0","ImageStyleEditing","start","isBefore","forceDefaultExecution","get","ELEMENT_CAPTION","plugins","isBlockImage","find","*Reset image width*","previous","ImageCaptionUtils","afterInit","head","isOwn","commands","isEqual","formatBlock","imageCaption","markInlineFormat","element","getFirstRange","Users","imageTextAlternative","isInContent","registerPostFixer","insertImage","end","discard","name","setImageNaturalSizeAttributes","FORMAT_SIDE_IMAGE","chain","resizeImage","newValue","forward","imageBlock","registerCustomCallback"];var Yr,ti;Yr=Zr,ti=424,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x1e")](){const t=this[ei("0x6b")];if(!t[ei("0x18")][ei("0x48")](ei("0x4f")))return;const n=t[ei("0x18")].get("TrackChangesEditing"),o=t[ei("0x18")].get("ImageUtils"),s={},r=t.locale;if(n[ei("0x77")](ei("0x2c")),n._descriptionFactory[ei("0x5a")](ei("0x36"),(t=>Yo(r,ei("0x6e"),t))),n[ei("0xa")][ei("0x5a")](ei("0x64"),(t=>Yo(r,ei("0x66"),t))),n[ei("0xa")][ei("0x5a")](ei("0x5d"),(()=>Yo(r,ei("0x17")))),t[ei("0x18")][ei("0x48")](ei("0x70"))&&n[ei("0x77")](ei("0x6c")),t[ei("0x18")][ei("0x48")](ei("0xc"))&&t[ei("0x18")][ei("0x48")](ei("0x73"))&&(n[ei("0x77")](ei("0x3b"),((e,s)=>{const r=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")][ei("0x5f")]);t[ei("0x5b")][ei("0x0")]((()=>{n[ei("0x9")](r,{commandName:ei("0x3b"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[ei("0x77")](ei("0x4a"),((e,s)=>{t[ei("0x5b")][ei("0x0")]((r=>{let x=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")][ei("0x5f")]),a=r[ei("0x56")](x);const c=i.LivePosition.fromPosition(a[ei("0x13")],"toPrevious"),l=i.LivePosition[ei("0x3a")](a[ei("0x2d")],ei("0x58"));n[ei("0x15")]((()=>e(s))),x=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")].selection),a=r[ei("0x56")](x);const d=r.createRange(c,l);c[ei("0x59")](),l.detach(),n[ei("0x9")](x,{commandName:ei("0x3b"),commandParams:[s]},[],ei("0x4")),d[ei("0x13")].isBefore(a.start)&&n[ei("0x46")](r[ei("0x8")](d.start,a.start),ei("0x4")),a[ei("0x2d")][ei("0x14")](d.end)&&n.markInsertion(r[ei("0x8")](a[ei("0x2d")],d.end),ei("0x4"))}))})),n[ei("0x61")][ei("0x37")](ei("0x23"),"convertInlineImageToBlock",ei("0x4e"),(()=>!1)),n[ei("0x61")][ei("0x37")](ei("0x23"),ei("0x4"),ei("0x39"),(()=>!1)),n._suggestionFactory.registerCustomCallback(ei("0x23"),ei("0x4"),"discard",n[ei("0x61")].getSuggestionCallback(ei("0x23"),"",ei("0x39"))),n[ei("0x61")][ei("0x37")](ei("0x52"),ei("0x4"),ei("0x4e"),(()=>!1)),n._suggestionFactory[ei("0x37")](ei("0x52"),ei("0x4"),ei("0x2e"),(([e])=>{const o=n._suggestionFactory[ei("0x67")](ei("0x52"),"",ei("0x2e"));let s=e[ei("0x13")],r=e[ei("0x2d")];const i=t.model.schema.getNearestSelectionRange(s,ei("0x5e")),x=t.model[ei("0x3d")][ei("0xe")](r,ei("0x35"));i.isCollapsed&&(s=i[ei("0x13")]),x[ei("0x3f")]&&(r=x[ei("0x2d")]),o([t[ei("0x5b")][ei("0x8")](s,r)])})),n[ei("0x61")][ei("0x37")](ei("0x23"),ei("0x4"),ei("0x32"),c),n[ei("0x61")][ei("0x37")]("insertion",ei("0x4"),"chain",c)),t[ei("0x18")][ei("0x48")]("ImageCaptionEditing")&&(n[ei("0x77")](ei("0x68"),((e,s)=>{const r=t.plugins[ei("0x16")](ei("0x1d"));let i=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")][ei("0x5f")]),x=r[ei("0x5c")](i);t.model[ei("0x0")]((()=>{if(x)return void n.markDeletion(t.model[ei("0x56")](x));const a=o[ei("0x19")](i);e(s),i=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")].selection),x=r[ei("0x5c")](i),n[ei("0x46")](t[ei("0x5b")].createRangeOn(x),a?null:ei("0x24"))}))})),n[ei("0x61")].registerCustomCallback(ei("0x52"),ei("0x24"),ei("0x32"),c)),t[ei("0x18")][ei("0x48")](ei("0x12"))){n[ei("0x77")]("imageStyle",((s,r)=>{const i=t[ei("0x18")].get(ei("0x28")).me,x=t.commands[ei("0x16")]("imageStyle");let a=o.getClosestSelectedImageElement(t[ei("0x5b")][ei("0x72")][ei("0x5f")]),c=t[ei("0x5b")][ei("0x56")](a),l=x[ei("0x4c")];if(l==r[ei("0x4c")])return;const d={commandName:ei("0x4b"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[ei("0x0")]((()=>{if(n.getSuggestions().filter((t=>t.isInContent&&i==t[ei("0x1")]&&(ei("0x23")==t[ei("0x71")]||ei("0x3e")==t[ei("0x71")])&&(ei("0x63")==t.subType||"imageStylePostApply"==t[ei("0x75")])&&t[ei("0x27")]().isEqual(c))).forEach((t=>n.discardSuggestion(t[ei("0x1f")]))),a=o.getClosestSelectedImageElement(t.model.document[ei("0x5f")]),c=t.model[ei("0x56")](a),x[ei("0xb")](),t[ei("0x21")][ei("0x16")]("imageTypeInline").refresh(),t[ei("0x21")][ei("0x16")]("imageTypeBlock")[ei("0xb")](),l=x[ei("0x4c")],l!=r[ei("0x4c")])return o.isInlineImage(a)&&x[ei("0x44")](r[ei("0x4c")],a)?(s({...r,setImageSizes:!1}),a=o.getClosestSelectedImageElement(t.model[ei("0x72")].selection),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(o[ei("0x19")](a)?n.markBlockFormat(a,d,[],ei("0x7")):n[ei("0x25")](c,d,"imageStylePostApply"))}))}));for(const e of t[ei("0x18")][ei("0x16")](ei("0x12"))[ei("0x10")])s[e[ei("0x2f")]]=e.title[ei("0x6")]();n[ei("0x61")][ei("0x37")](ei("0x23"),ei("0x63"),ei("0x4e"),(()=>!1)),n[ei("0x61")].registerCustomCallback(ei("0x23"),ei("0x7"),ei("0x4e"),(()=>!1)),n[ei("0x61")][ei("0x37")](ei("0x3e"),ei("0x7"),"join",(()=>!1)),n[ei("0x61")][ei("0x37")](ei("0x23"),ei("0x63"),"accept",(([t])=>{o[ei("0x30")](t[ei("0x38")]())})),n._suggestionFactory[ei("0x37")](ei("0x23"),"imageStylePreApply","discard",((t,e)=>{n._suggestionFactory[ei("0x67")](ei("0x23"),"",ei("0x39"))(t,{commandName:e[ei("0x3c")],commandParams:e[ei("0x65")]})})),n[ei("0x61")][ei("0x37")](ei("0x23"),ei("0x63"),ei("0x32"),c)}const x=[{type:ei("0x23"),subType:"imageStylePreApply"},{type:"insertion",subType:ei("0x24")},{type:ei("0x23"),subType:ei("0x4")},{type:"insertion",subType:ei("0x4")}];function a(t,e){const s=x[ei("0x6a")]((({type:e,subType:n})=>t[ei("0x71")]==e&&t[ei("0x75")]==n)),r=x.findIndex((({type:t,subType:n})=>e[ei("0x71")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[ei("0x27")](),a=e[ei("0x27")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[ei("0x2")](i,"insertion")[ei("0x55")]((({suggestion:t,meta:e})=>e[ei("0x20")]&&ei("0x4")==t[ei("0x75")]));if(t[ei("0x47")]>1&&a[ei("0x2d")].isEqual(i.start))return!0;if(1==t[ei("0x47")]&&(i.start[ei("0x22")](a.end)||i[ei("0x2d")][ei("0x22")](a.start)))return!0}if(3==s&&3==r&&i[ei("0x13")][ei("0x14")](a[ei("0x13")])){const t=i[ei("0x2d")][ei("0x43")],e=a[ei("0x13")].nodeBefore;return o[ei("0x19")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[ei("0x5b")].document[ei("0x2b")]((()=>{let e=!1;const s=Array.from(t[ei("0x5b")][ei("0x72")].differ[ei("0x76")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[ei("0x6d")](t);if(ei("0x57")==s&&n[ei("0x3")](a)){if(ei("0x23")==i&&(ei("0x63")==x||ei("0x7")==x)){const t=n.getSuggestion(a);if(r[ei("0xd")]){const s=t[ei("0x27")]().getContainedElement();if(o[ei("0x19")](s))continue;n[ei("0x74")](t),e=!0}}if(ei("0x52")==i&&"imageCaption"==x&&!r[ei("0xd")]){const t=n.getSuggestion(a);t[ei("0x51")]&&t[ei("0x51")][ei("0x2a")]&&(n[ei("0x74")](t[ei("0x51")]),e=!0)}}}return e})),t[ei("0x18")][ei("0x48")](ei("0x49"))&&n[ei("0x77")]("resizeImage",((e,s)=>{const r=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")][ei("0x5f")]);r[ei("0x62")]("resizedWidth")!=s[ei("0xf")]&&t[ei("0x5b")].change((()=>{n[ei("0x9")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t.plugins[ei("0x48")](ei("0x53"))&&n[ei("0x77")](ei("0x29"),((e,s)=>{const r=o[ei("0x4d")](t.model[ei("0x72")].selection);(r[ei("0x42")](ei("0x50"))?r.getAttribute("alt"):"")!=s[ei("0x34")]&&t[ei("0x5b")][ei("0x0")]((()=>{n[ei("0x9")](r,{commandName:"imageTextAlternative",commandParams:[s]})}))})),n[ei("0xa")][ei("0x40")]((t=>{if(x[ei("0x1a")]((({type:e,subType:n})=>t[ei("0x71")]==e&&t.subType==n)))return t[ei("0x1c")]?{}:void 0})),n[ei("0xa")][ei("0x40")]((t=>{if("insertion"==t[ei("0x71")]||"deletion"==t[ei("0x71")]){const e=t[ei("0x38")]();if(e&&e.is(ei("0x26"),ei("0x5d")))return{type:"insertion"==t[ei("0x71")]?"addObject":"removeObject",element:e,quantity:1}}})),n._descriptionFactory[ei("0x40")]((t=>ei("0x23")==t[ei("0x71")]&&"convertInlineImageToBlock"==t.subType?{type:"format",content:"Inline image to block image"}:ei("0x23")==t.type&&ei("0x5")==t.subType?{type:ei("0x69"),content:"Block image to inline image"}:void 0)),n[ei("0xa")][ei("0x40")]((t=>{const{data:e}=t;if(e){if(ei("0x4b")==e[ei("0x3c")]){const t=e[ei("0x6f")][0].value;return n=ei("0x45")===t?Yo(r,ei("0x31")):s[t]||t,{type:"format",content:Yo(r,ei("0x54"),n)}}if(ei("0x29")==e[ei("0x3c")]){const t=e.commandParams[0].newValue;return t?{type:ei("0x69"),content:Yo(r,ei("0x41"),'"'+t+'"')}:{type:ei("0x69"),content:Yo(r,ei("0x60"))}}if(ei("0x33")==e[ei("0x3c")]){const t=e.commandParams[0][ei("0xf")];return t?{type:"format",content:Yo(r,ei("0x11"),t)}:{type:ei("0x69"),content:Yo(r,ei("0x1b"))}}}var n}))}}const oi=["document","ImageEditing","registerCustomCallback","commandName","locale","get","author","model","replaceImageSource","editor","format","subType","discard","handleReplaceImageCommand","commandParams","formatBlock","src","plugins","registerDescriptionCallback","TrackChangesEditing","accept","getSuggestions","selection","getSuggestionCallback","getContainedElement","enableCommand","has","markBlockFormat","_descriptionFactory","getAttribute","_suggestionFactory","handleSuggestionDescription","change"];var si,ri;si=oi,ri=295,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("0xb")][ii("0x13")][ii("0x1c")](ii("0x3")))return;const t=this.editor[ii("0x13")][ii("0x7")](ii("0x15"));t[ii("0x1b")](ii("0xa"),((t,e)=>this[ii("0xf")](t,e))),t._suggestionFactory.registerCustomCallback("formatBlock","replaceImageSource",ii("0x16"),t[ii("0x20")].getSuggestionCallback(ii("0x11"),null,ii("0xe"))),t._suggestionFactory[ii("0x4")]("formatBlock",ii("0xa"),ii("0xe"),t[ii("0x20")][ii("0x19")](ii("0x11"),null,ii("0x16"))),t[ii("0x1e")][ii("0x14")]((t=>this.handleSuggestionDescription(t)))}[ii("0xf")](t,e){const n=this[ii("0xb")].plugins[ii("0x7")](ii("0x15")),o=this[ii("0xb")][ii("0x9")][ii("0x2")][ii("0x18")].getSelectedElement();this[ii("0xb")][ii("0x9")][ii("0x1")]((()=>{let s=o[ii("0x1f")](ii("0x12"));const r=this[ii("0xb")][ii("0x13")][ii("0x7")]("Users").me;for(const t of n[ii("0x17")]({skipNotAttached:!0})){const e=t[ii("0x1a")]();if(ii("0xa")===t[ii("0xd")]&&e===o){t[ii("0x8")]!==r&&t[ii("0xe")](),s=t.data[ii("0x10")][0].source;break}}t(e),n[ii("0x1d")](o,{commandName:ii("0xa"),commandParams:[{source:s}]},[],"replaceImageSource")}))}[ii("0x0")](t){const{data:e}=t;if(e&&ii("0xa")===e[ii("0x5")]){const t="*Format:* replace image URL";return{type:ii("0xc"),content:Yo(this[ii("0xb")][ii("0x6")],t)}}}}const ai=["TrackChangesEditing","dataInsert","_trackChangesValueDuringImport","high","plugins","get","value","trackChanges","Users","commands","listenTo","_handleImportedData","forEach","_setSuggestionData","enableCommand","editor","bind","_trackChangesExecuted","importWord","lowest","execute","track_changes"];var ci,li;ci=ai,li=388,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._trackChangesValueDuringImport=!1,this[di("0x3")]=!1}afterInit(){const t=this[di("0x1")],e=t.commands[di("0xd")](di("0x4")),n=t[di("0x11")][di("0xd")](di("0xf"));e&&(e.on(di("0x6"),((t,[,e])=>{this[di("0xa")]=n.value,e.collaboration_features[di("0x7")]=!this[di("0xa")]}),{priority:di("0xb")}),this.listenTo(e,di("0x9"),this._handleImportedData[di("0x2")](this)),this[di("0x12")](e,"dataInsert",(()=>{this._trackChangesExecuted&&(n.execute(),this[di("0x3")]=!1)}),{priority:di("0x5")}),t[di("0xc")][di("0xd")](di("0x8"))[di("0x0")](di("0x4")))}[di("0x13")](t,e){const{suggestions:n}=e,o=this[di("0x1")][di("0x11")].get(di("0xf")),s=o[di("0xe")];this[di("0xa")]!==s&&(o[di("0x6")](),this[di("0x3")]=!0),n&&n[di("0x14")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[di("0x1")].plugins[di("0xd")](di("0x10")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[di("0x1")][di("0xc")][di("0xd")](di("0x8"))[di("0x15")](s)}))}}const gi=["indent","afterInit","enableCommand","commandName","model","from","getSelectedBlocks","_descriptionFactory","*Outdent:* %0","markBlockFormat","indentBlock","*Indent:* %0","document","format","registerDescriptionCallback","locale","get","editor","plugins","getItems","outdentBlock","has","getItemLabel","change","checkAttribute","filter","IndentEditing"];var mi,fi;mi=gi,fi=330,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0x16")](){const t=this.editor,e=t.plugins[hi("0xa")]("TrackChangesEditing");t[hi("0xc")][hi("0xf")](hi("0x14"))&&(e[hi("0x17")](hi("0x15")),e.enableCommand("outdent"));const n=t[hi("0x9")];if(t[hi("0xc")][hi("0xf")]("IndentBlock")){for(const n of[hi("0x4"),hi("0xe")])e.enableCommand(n,(()=>{const o=Array[hi("0x1a")](this[hi("0xb")][hi("0x19")][hi("0x6")].selection[hi("0x0")]())[hi("0x13")]((t=>this[hi("0xb")][hi("0x19")].schema[hi("0x12")](t,"blockIndent")));t[hi("0x19")][hi("0x11")]((()=>{for(const t of o)e[hi("0x3")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:hi("0x4")})}))}));e._descriptionFactory[hi("0x8")]((t=>{const{data:o}=t;if(!o)return;if(hi("0x4")!=o[hi("0x18")]&&hi("0xe")!=o[hi("0x18")])return;const s=t[hi("0xd")]()[0],r=e[hi("0x1")][hi("0x10")](s);return hi("0x4")==o[hi("0x18")]?{type:hi("0x7"),content:Yo(n,hi("0x5"),r)}:hi("0xe")==o.commandName?{type:hi("0x7"),content:Yo(n,hi("0x2"),r)}:void 0}))}}}var bi,Ei,_i=["TrackChangesEditing","plugins","input","init","get","requires"];bi=_i,Ei=464,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("0x3")](){return[Js.Input]}[Ti("0x1")](){this.editor[Ti("0x5")][Ti("0x2")](Ti("0x4")).enableCommand(Ti("0x0"))}}const yi=["getRanges","enableCommand","link","commandName","locale","format","plugins","document","markInlineFormat","isCollapsed","get","*Set link:* %0","getAttribute","TrackChangesEditing","change","selection","commandParams","from","getFirstPosition","_descriptionFactory","unlink","linkHref","model","editor","LinkEditing"];var ki,Ai;ki=yi,Ai=406,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this.editor;if(!t[vi("0x0")].has(vi("0x12")))return;const e=t[vi("0x0")][vi("0x4")](vi("0x7"));e[vi("0x14")]("link",((n,o)=>{const s=t.model.document[vi("0x9")];let r=[];if(s[vi("0x3")]){if(!s.hasAttribute(vi("0xf")))return void n(o);{const e=(0,Js.findAttributeRange)(s[vi("0xc")](),vi("0xf"),s.getAttribute(vi("0xf")),t[vi("0x10")]);r=[e]}}else r=Array[vi("0xb")](s[vi("0x13")]());t[vi("0x10")][vi("0x8")]((()=>{for(const t of r)e[vi("0x2")](t,{commandName:"link",commandParams:[o]})}))})),e.enableCommand(vi("0xe"),(()=>{const n=this[vi("0x11")][vi("0x10")],o=n[vi("0x1")].selection;n[vi("0x8")]((()=>{let n=[];n=o.isCollapsed?[(0,Js.findAttributeRange)(o[vi("0xc")](),vi("0xf"),o[vi("0x6")]("linkHref"),t[vi("0x10")])]:Es(vi("0xf"),o.getFirstRange(),t[vi("0x10")]);for(const t of n)e[vi("0x2")](t,{commandName:vi("0xe"),commandParams:[]})}))})),e[vi("0xd")].registerDescriptionCallback((e=>{const{data:n}=e,o=t[vi("0x17")];if(n){if(vi("0x15")==n[vi("0x16")]){const t=n[vi("0xa")][0];return{type:vi("0x18"),content:Yo(o,vi("0x5"),'"'+t+'"')}}return vi("0xe")==n[vi("0x16")]?{type:"format",content:Yo(o,"*Remove link*")}:void 0}}))}}const Si=["name","numberedList","before","todoList","previousSibling","add","slice","isObject","listIndent","ELEMENT_NUMBERED_LIST","TrackChangesEditing","document","filter","change","indentList","end","ELEMENT_TODO_LIST","commandName","value","selection","getSelectedBlocks","has","plugins","listType","replace","checkTodoList","enableCommand","bulletedList","ELEMENT_LIST_ITEM","checkChild","parent","*Check item*","nextSibling","element","bulleted","model","editor","format","List","get","_selectedElements","_descriptionFactory","push","TodoListEditing","afterInit","length","todoListChecked","findIndex","forceValue","paragraph","outdentList","from","commands","registerElementLabel","createRange","ListEditing","commandParams","numbered","*Indent:* %0","execute","registerDescriptionCallback","createPositionAt","*Outdent:* %0","getAttribute","listItem","markBlockFormat","*Change to:* %0"];var Ii,Li;Ii=Si,Li=428,function(t){for(;--t;)Ii.push(Ii.shift())}(++Li);const Ni=function(t,e){return Si[t-=0]};class wi extends t.Plugin{[Ni("0x12")](){const t=this[Ni("0xa")],e=t.locale;if(!t[Ni("0x3f")][Ni("0x3e")](Ni("0x1d")))return;const n=t[Ni("0x3f")][Ni("0xd")](Ni("0x33")),o=t[Ni("0x3f")][Ni("0x3e")](Ni("0x11"));function s(e){return()=>{const o=t[Ni("0x9")][Ni("0x34")][Ni("0x3c")],s=t[Ni("0x1a")][Ni("0xd")](e);if(s[Ni("0x3b")])return void t[Ni("0x21")](Ni("0x17"),{});const r=e[Ni("0x2f")](0,-4),i=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n)[Ni("0x3")](e[Ni("0x4")],Ni("0x26"))&&!o[Ni("0x30")](e);var e,o}));o=o.filter((t=>!t.is("element","listItem")||t.getAttribute(Ni("0x40"))!=e));const s=new Set;for(const t of o)t.is(Ni("0x7"),Ni("0x26"))?s[Ni("0x2e")](Mi(t)):s[Ni("0x2e")](t);return Array[Ni("0x19")](s)}(o[Ni("0x3d")](),r,t[Ni("0x9")].schema);t[Ni("0x9")][Ni("0x36")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:"blockName"},Oi(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ni("0x19")](t);const n=e[Ni("0x15")]((t=>"listItem"!=t[Ni("0x29")]));return n>-1&&(e=e[Ni("0x2f")](0,n)),e}(t[Ni("0x9")].document[Ni("0x3c")][Ni("0x3d")]()),s=t[Ni("0x9")][Ni("0x1c")](t[Ni("0x9")][Ni("0x23")](o[0],Ni("0x2b")),t.model[Ni("0x23")](o[o[Ni("0x13")]-1],Ni("0x38")));t[Ni("0x9")][Ni("0x36")]((()=>{n[Ni("0x27")](s,{commandName:e,commandParams:[],formatGroupId:Ni("0x31")},function(t){const e=new Set;for(const n of t){let t=n[Ni("0x6")];for(;t&&t.getAttribute(Ni("0x31"))>n[Ni("0x25")](Ni("0x31"));)e[Ni("0x2e")](t),t=t[Ni("0x6")]}return Array.from(e)}(o))}))}}n.enableCommand("numberedList",s(Ni("0x2a"))),n[Ni("0x0")]("bulletedList",s(Ni("0x1"))),o&&n[Ni("0x0")]("todoList",s(Ni("0x2c"))),n[Ni("0x0")](Ni("0x37"),r(Ni("0x37"))),n.enableCommand(Ni("0x18"),r("outdentList")),o&&n.enableCommand(Ni("0x42"),(()=>{const e=t.commands[Ni("0xd")](Ni("0x42")),o=Array[Ni("0x19")](e[Ni("0xe")]);o[Ni("0x35")]((t=>t[Ni("0x25")](Ni("0x14"))!=e.value)),t[Ni("0x9")][Ni("0x36")]((()=>{for(const t of o)n[Ni("0x27")](t,{commandName:Ni("0x42"),commandParams:[{forceValue:!e[Ni("0x3b")]}]})}))})),n._descriptionFactory[Ni("0x1b")](Ni("0x26"),(t=>Yo(e,Ni("0x2"),t))),n[Ni("0xf")][Ni("0x22")]((t=>{const{data:n}=t;if(n){if(Ni("0x2a")==n[Ni("0x3a")]||Ni("0x1")==n[Ni("0x3a")]||Ni("0x2c")==n.commandName)switch(n[Ni("0x3a")][Ni("0x41")](Ni("0xc"),"")){case Ni("0x8"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case Ni("0x1f"):return o(Yo(e,Ni("0x32")));case"todo":return o(Yo(e,Ni("0x39")))}if("indentList"==n[Ni("0x3a")])return{type:"format",content:Yo(e,Ni("0x20"),Yo(e,"ELEMENT_LIST_ITEM"))};if(Ni("0x18")==n[Ni("0x3a")])return{type:Ni("0xb"),content:Yo(e,Ni("0x24"),Yo(e,Ni("0x2")))};if("checkTodoList"==n[Ni("0x3a")])return n[Ni("0x1e")][0][Ni("0x16")]?{type:"format",content:Yo(e,Ni("0x5"))}:{type:Ni("0xb"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:Ni("0xb"),content:Yo(e,Ni("0x28"),t)}}}))}}function Mi(t){const e=t[Ni("0x25")](Ni("0x31"));if(0==e)return t;let n=t;for(;t[Ni("0x2d")]&&t.previousSibling.is(Ni("0x7"),"listItem");){const o=t[Ni("0x2d")][Ni("0x25")](Ni("0x31"));if(o==e)n=t[Ni("0x2d")];else if(o<e)break;t=t[Ni("0x2d")]}return n}function Oi(t){const e=[];if(t.is(Ni("0x7"),Ni("0x26"))&&t[Ni("0x25")](Ni("0x31"))>0){let n=t[Ni("0x6")];for(;n&&"listItem"==n[Ni("0x29")]&&n.getAttribute(Ni("0x31"))==t.getAttribute("listIndent");)e[Ni("0x10")](n),n=n.nextSibling}return e}const Fi=["listReversed","push","commandParams","handleListReversedCommand","getLastPosition","length","markMultiRangeBlockFormat","toUpperCase","reversed","numbered","getAttribute","document","forward","startIndex","list.properties","format","createRange","createPositionAt","has","listStart","commandName","element","*Change to:* %0","backward","selection","model","_descriptionFactory","filter","handleDescriptions","map","getSiblingNodes","editor","_getSuggestionBlocksForListStyle","_LIST_","registerDescriptionCallback","handleListStartCommand","getSelectedBlocks","replace","change","listStyle","config","handleListStyleCommand","from","*Format:* set order to reversed","bind","plugins","TrackChangesEditing","type","before","listType","flat","*Format:* set start index to %0","get","_getTranslationKeyForListStyle","ListUtils","listItem","getFirstPosition","_getSuggestionBlocks"];var Pi,Di;Pi=Fi,Di=166,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){if(!this[Bi("0x27")][Bi("0x35")][Bi("0x1a")]("ListPropertiesEditing"))return;const t=this[Bi("0x27")][Bi("0x30")][Bi("0x2")](Bi("0x16")),e=this[Bi("0x27")][Bi("0x35")].get("TrackChangesEditing");t.styles&&e.enableCommand(Bi("0x2f"),this[Bi("0x31")][Bi("0x34")](this)),t[Bi("0x10")]&&e.enableCommand(Bi("0x8"),this.handleListReversedCommand[Bi("0x34")](this)),t.startIndex&&e.enableCommand(Bi("0x1b"),this[Bi("0x2b")][Bi("0x34")](this)),e[Bi("0x22")][Bi("0x2a")](this.handleDescriptions[Bi("0x34")](this))}[Bi("0x31")](t,e={}){const n=this.editor[Bi("0x35")][Bi("0x2")](Bi("0x36")),o=this[Bi("0x28")]();this.editor.model[Bi("0x2e")]((()=>{n[Bi("0xe")](o,{commandName:"listStyle",commandParams:[{type:e[Bi("0x37")]}],formatGroupId:Bi("0x2f")})}))}[Bi("0xb")](t,e={}){const n=this[Bi("0x27")][Bi("0x35")][Bi("0x2")]("TrackChangesEditing"),o=this[Bi("0x7")]((t=>t.is("element",Bi("0x5"))&&Bi("0x11")===t[Bi("0x12")](Bi("0x39"))));if(o.length<1)return;const s=o.map((t=>this.editor[Bi("0x21")][Bi("0x18")](this.editor[Bi("0x21")][Bi("0x19")](t,Bi("0x38")),this[Bi("0x27")].model[Bi("0x19")](t,0))));this[Bi("0x27")].model[Bi("0x2e")]((()=>{n[Bi("0xe")](s,{commandName:Bi("0x8"),commandParams:[{reversed:e.reversed}],formatGroupId:Bi("0x8")})}))}[Bi("0x2b")](t,e={}){const n=this[Bi("0x27")].plugins[Bi("0x2")](Bi("0x36")),o=this[Bi("0x7")]((t=>t.is(Bi("0x1d"),"listItem")&&Bi("0x11")===t[Bi("0x12")](Bi("0x39"))));if(o[Bi("0xd")]<1)return;const s=o[Bi("0x25")]((t=>this[Bi("0x27")][Bi("0x21")][Bi("0x18")](this[Bi("0x27")][Bi("0x21")][Bi("0x19")](t,Bi("0x38")),this[Bi("0x27")][Bi("0x21")][Bi("0x19")](t,0))));this.editor[Bi("0x21")][Bi("0x2e")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listStart",commandParams:[{startIndex:e[Bi("0x15")]}],formatGroupId:Bi("0x1b")})}))}[Bi("0x24")](t){const e=this[Bi("0x27")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[Bi("0x1c")]){case Bi("0x2f"):o=Bi("0x1e"),s={type:Bi("0x17"),content:Yo(e,o,Yo(e,this[Bi("0x3")](n[Bi("0xa")][0].type)))};break;case Bi("0x8"):o=n[Bi("0xa")][0].reversed?Bi("0x33"):"*Format:* set order to regular",s={type:Bi("0x17"),content:Yo(e,o)};break;case"listStart":o=Bi("0x1"),s={type:Bi("0x17"),content:Yo(e,o,n[Bi("0xa")][0][Bi("0x15")])}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this[Bi("0x27")].plugins[Bi("0x2")](Bi("0x4"));let r=Array[Bi("0x32")](this[Bi("0x27")][Bi("0x21")][Bi("0x13")][Bi("0x20")][Bi("0x2c")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element","listItem"))&&r.unshift(...s[Bi("0x26")](this[Bi("0x27")][Bi("0x21")].document[Bi("0x20")].getFirstPosition(),Bi("0x1f"))),(null===(e=r[r[Bi("0xd")]-1])||void 0===e?void 0:e.is(Bi("0x1d"),Bi("0x5")))&&r[Bi("0x9")](...s[Bi("0x26")](this[Bi("0x27")][Bi("0x21")][Bi("0x13")][Bi("0x20")][Bi("0xc")](),Bi("0x14"))),r=[...new Set(r)],(null===(o=null===(n=this[Bi("0x27")][Bi("0x21")][Bi("0x13")][Bi("0x20")][Bi("0x6")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Bi("0x1d"),"listItem"))&&(r=r[Bi("0x23")]((t=>t.is(Bi("0x1d"),Bi("0x5"))))),r}_getSuggestionBlocks(t){const e=this[Bi("0x27")].plugins[Bi("0x2")](Bi("0x4"));let n=Array[Bi("0x32")](this[Bi("0x27")].model[Bi("0x13")][Bi("0x20")].getSelectedBlocks()).filter(t)[Bi("0x25")]((t=>{const n=this[Bi("0x27")][Bi("0x21")][Bi("0x19")](t,0);return[...e.getSiblingNodes(n,Bi("0x1f")),...e[Bi("0x26")](n,"forward")]}))[Bi("0x0")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this[Bi("0x27")][Bi("0x35")][Bi("0x2")](Bi("0x4")).getListTypeFromListStyleType(t).toUpperCase()+Bi("0x29")+t[Bi("0xf")]()[Bi("0x2d")](/-/g,"_")}}const Ui=["data","high","locale","_descriptionFactory","stop","plugins","mediaEmbed","showSuggestionHighlights","afterInit","TrackChangesEditing","get","ELEMENT_MEDIA","downcastDispatcher","for","options","conversion","media","MediaEmbedEditing","has","div","editor","dataDowncast","attribute:url:media"];var Gi,Hi;Gi=Ui,Hi=167,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x2")](){const t=this[zi("0xe")];if(!t[zi("0x16")][zi("0xc")](zi("0xb")))return;const e=t[zi("0x16")][zi("0x4")](zi("0x3")),n=t[zi("0x13")];e.enableCommand(zi("0x0")),e[zi("0x14")].registerElementLabel(zi("0xa"),(t=>Yo(n,zi("0x5"),t))),t[zi("0x9")][zi("0x7")](zi("0xf")).elementToElement({model:zi("0xa"),view:(t,{writer:e,options:n})=>{if(n[zi("0x1")])return e.createEmptyElement(zi("0xd"))},converterPriority:zi("0x12")}),t[zi("0x11")][zi("0x6")].on(zi("0x10"),((t,e,n)=>{n[zi("0x8")][zi("0x1")]&&t[zi("0x15")]()}),{priority:"high"})}}const Vi=["editor","has","enableCommand","TrackChangesEditing","afterInit","plugins","mention"];var Ki,qi;Ki=Vi,qi=174,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x5")](){const t=this[Xi("0x1")];t.plugins[Xi("0x2")]("MentionEditing")&&t[Xi("0x6")].get(Xi("0x4"))[Xi("0x3")](Xi("0x0"))}}const Ji=["ELEMENT_PAGE_BREAK","_descriptionFactory","afterInit","PageBreakEditing","locale","enableCommand","plugins","TrackChangesEditing","get","pageBreak","registerElementLabel"];var Qi,Zi;Qi=Ji,Zi=315,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x6")](){const t=this.editor;if(!t[Yi("0xa")].has(Yi("0x7")))return;t[Yi("0xa")].get(Yi("0x0"))[Yi("0x9")](Yi("0x2"));const e=t.plugins[Yi("0x1")](Yi("0x0")),n=t[Yi("0x8")];e[Yi("0x5")][Yi("0x3")](Yi("0x2"),(t=>Yo(n,Yi("0x4"),t)))}}const ex=["data","isLimit","model","isBlock","addClass","ELEMENT_PARAGRAPH","format","insertion","getFirstRange","name","enableCommand","commandName","downcastDispatcher","parent","$text","checkChild","start","locale","registerDescriptionCallback","change","TrackChangesEditing","ck-suggestion-marker-split","mapper","end","blockName","selection","*Insert:* %0","showSuggestionHighlights","options","Paragraph","*Change to:* %0","writer","span","markerRange","afterInit","markerName","registerElementLabel","paragraph","plugins","insertParagraph","bindElementToMarker","schema","isTouching","document","get","addMarker:suggestion:insertion","_descriptionFactory","editor","nodeAfter","toViewPosition","activeMarkers","includes","getSelectedBlocks","markBlockFormat","highest"];var nx,ox;nx=ex,ox=347,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{[sx("0x11")](){const t=this[sx("0x1e")];if(!t[sx("0x15")].has(sx("0xc")))return;const e=t[sx("0x0")],n=t[sx("0x15")][sx("0x1b")]("TrackChangesEditing");n._descriptionFactory[sx("0x13")](sx("0x14"),(t=>Yo(e,sx("0x2b"),t))),n.enableCommand(sx("0x14"),((e,o={})=>{const s=t[sx("0x28")][sx("0x1a")],r=o[sx("0x8")]||s[sx("0x8")],i=Array.from(r[sx("0x23")]()).filter((t=>{return e=t,(n=this.editor[sx("0x28")].schema)[sx("0x35")](e[sx("0x33")],sx("0x14"))&&!n.isObject(e)&&sx("0x14")!=e[sx("0x2f")];var e,n}));t[sx("0x28")][sx("0x2")]((()=>{for(const t of i)n[sx("0x24")](t,{commandName:sx("0x14"),commandParams:[],formatGroupId:sx("0x7")},_s(t))}))})),n[sx("0x1d")][sx("0x1")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[sx("0x31")])return{type:sx("0x2c"),content:Yo(e,sx("0xd"),Yo(e,sx("0x2b")))}})),n[sx("0x30")](sx("0x16")),t.editing[sx("0x32")].on(sx("0x1c"),ix(t),{priority:sx("0x25")}),t[sx("0x26")][sx("0x32")].on(sx("0x1c"),((e,n,o)=>{o[sx("0xb")][sx("0xa")]&&ix(t,{showActiveMarker:!1})(e,n,o)}),{priority:sx("0x25")});const o=n[sx("0x1d")];o[sx("0x1")]((n=>{if(sx("0x2d")!==n.type)return;const{start:s,end:r}=n[sx("0x2e")]();if(!s[sx("0x19")](r)||!s[sx("0x1f")])return;const i=t[sx("0x28")][sx("0x18")],x=s[sx("0x1f")];return i[sx("0x29")](x)&&!i[sx("0x27")](x)&&i[sx("0x35")](x,sx("0x34"))?{type:sx("0x2d"),content:Yo(e,sx("0x9"),o.getItemLabel(x,1))}:void 0}))}}function ix(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[sx("0x15")][sx("0x1b")](sx("0x3")),i=o[sx("0x10")][sx("0x36")],x=o[sx("0x10")][sx("0x6")],a=t[sx("0x28")][sx("0x18")];if(!i[sx("0x19")](x)||!i[sx("0x1f")])return;const c=i[sx("0x1f")];if(a[sx("0x29")](c)&&!a[sx("0x27")](c)&&a[sx("0x35")](c,"$text")){if(!s.consumable.consume(o.markerRange,n.name))return;const t=s[sx("0xe")].createUIElement(sx("0xf"),{class:sx("0x4")}),i=s.mapper[sx("0x20")](x);e&&r[sx("0x21")][sx("0x22")](o[sx("0x12")])&&s[sx("0xe")][sx("0x2a")]("ck-suggestion-marker--active",t),s.writer.insert(i,t),s[sx("0x5")][sx("0x17")](t,o[sx("0x12")])}}}const xx=["RemoveFormatEditing","getRanges","markInlineFormat","locale","afterInit","removeFormat","change","model","isCollapsed","document","from","_descriptionFactory","isFormatting","get","createRangeOn","getAttributes","commandName","has","registerDescriptionCallback","getAttributeProperties","format"];var ax,cx;ax=xx,cx=301,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class dx extends t.Plugin{[lx("0x12")](){const t=this.editor;if(!t.plugins[lx("0xa")](lx("0xe")))return;const e=t.plugins[lx("0x6")]("TrackChangesEditing");e.enableCommand(lx("0x13"),(n=>{const o=t[lx("0x0")][lx("0x2")].selection;o[lx("0x1")]?n():t[lx("0x0")][lx("0x14")]((()=>{const n=Array[lx("0x3")](o[lx("0xf")]());for(const o of n)for(const n of o.getItems())ux(n,t[lx("0x0")].schema)&&e[lx("0x10")](t[lx("0x0")][lx("0x7")](n),{commandName:lx("0x13"),commandParams:[]})}))})),e[lx("0x4")][lx("0xb")]((e=>{const{data:n}=e;if(n&&lx("0x13")==n[lx("0x9")])return{type:lx("0xd"),content:Yo(t[lx("0x11")],"*Remove all formatting*")}}))}}function ux(t,e){for(const[n]of t[lx("0x8")]()){const t=e[lx("0xc")](n);if(t&&t[lx("0x5")])return!0}return!1}const gx=["discardSuggestion","enableCommand","plugins","afterInit","RestrictedEditingModeEditing","editor","acceptAllSuggestions","goToNextRestrictedEditingException","discardAllSuggestions","acceptSelectedSuggestions","TrackChangesEditing","get"];var mx,fx;mx=gx,fx=297,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0x6")](){const t=this[hx("0x8")];if(!t[hx("0x5")].has(hx("0x7")))return;const e=t.plugins[hx("0x2")](hx("0x1"));e[hx("0x4")]("goToPreviousRestrictedEditingException"),e[hx("0x4")](hx("0xa"));const n=t.plugins[hx("0x2")](hx("0x7"));n[hx("0x4")]("trackChanges"),n[hx("0x4")]("acceptSuggestion"),n.enableCommand(hx("0x3")),n.enableCommand(hx("0x9")),n.enableCommand(hx("0xb")),n.enableCommand(hx("0x0")),n[hx("0x4")]("discardSelectedSuggestions")}}const bx=["test","markerRange","registerElementLabel","writer","editor","locale","_descriptionFactory","createPositionBefore","markerName","editing","showSuggestionHighlights","data","createUIElement","init","shiftEnter","model","includes","addMarker:suggestion:deletion","deletion","merge","addMarker:suggestion:insertion","getItems","TrackChangesEditing","plugins","softBreak","high","insert","ck-suggestion-marker-","get","span","element","toViewPosition","addMarker:suggestion","addClass","mapper","split"];var Ex,_x;Ex=bx,_x=310,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("0x1b")](){const t=this[Tx("0x12")],e=t[Tx("0x1")][Tx("0x6")](Tx("0x0"));e.enableCommand(Tx("0x1c")),t.editing.downcastDispatcher.on(Tx("0x22"),yx(t),{priority:Tx("0x3")}),t[Tx("0x17")].downcastDispatcher.on(Tx("0x1f"),yx(t),{priority:Tx("0x3")}),t[Tx("0x19")].downcastDispatcher.on(Tx("0xa"),((e,n,o)=>{o.options[Tx("0x18")]&&yx(t,{showActiveMarker:!1})(e,n,o)})),e[Tx("0x14")][Tx("0x10")](Tx("0x2"),(e=>Yo(t[Tx("0x13")],"ELEMENT_LINE_BREAK",e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Tx("0x6")](Tx("0x0"));if(!s.consumable[Tx("0xe")](o[Tx("0xf")],n.name))return;const i=t[Tx("0x1d")];for(const t of o[Tx("0xf")][Tx("0x23")]()){if(!t.is(Tx("0x8"),Tx("0x2")))continue;const n=Tx("0x20")==o.markerName.split(":")[1]?Tx("0x21"):Tx("0xd"),x=s[Tx("0x11")][Tx("0x1a")](Tx("0x7"),{class:Tx("0x5")+n}),a=s[Tx("0xc")][Tx("0x9")](i[Tx("0x15")](t));e&&r.activeMarkers[Tx("0x1e")](o.markerName)&&s[Tx("0x11")][Tx("0xb")]("ck-suggestion-marker--active",x),s[Tx("0x11")][Tx("0x4")](a,x),s[Tx("0xc")].bindElementToMarker(x,o[Tx("0x16")])}}}const kx=["document","afterInit","from","enableCommand","registerDescriptionCallback","value","commandName","restrictedEditingException","selection","TrackChangesEditing","forceValue","FORMAT_RESTRICTED_DISABLED","plugins","commandParams","markInlineFormat","has","StandardEditingModeEditing","commands","_descriptionFactory","isCollapsed","FORMAT_RESTRICTED_ENABLED","editor","format"];var Ax,vx;Ax=kx,vx=177,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x8")](){const t=this[Rx("0x5")],e=t.model,n=t.locale;if(!t[Rx("0x13")][Rx("0x16")](Rx("0x0")))return;const o=t[Rx("0x13")].get(Rx("0x10")),s=Rx("0xe"),r=t[Rx("0x1")].get(s);o[Rx("0xa")](s,((t,n={})=>{const i=e[Rx("0x7")][Rx("0xf")];if(i[Rx("0x3")])return void t(n);const x=void 0!==n[Rx("0x11")]?n[Rx("0x11")]:!r[Rx("0xc")];e.change((()=>{const t=Array[Rx("0x9")](i.getRanges());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0x15")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0x2")][Rx("0xb")]((t=>{const{data:e}=t;if(e&&e[Rx("0xd")]==s)return e[Rx("0x14")][0][Rx("0x11")]?{type:Rx("0x6"),content:Yo(n,Rx("0x4"))}:{type:Rx("0x6"),content:Yo(n,Rx("0x12"))}}))}}const Ix=["add","editor","toLowerCase","modelElements","element","normalizeConfig","get","isCollapsed","styleName","plugins","includes","find","_descriptionFactory","commandName","every","commands","DataSchema","model","isBlock","createRangeOn","getAttribute","*Remove format:* %0","document","inline","forceValue","getRanges","markBlockFormat","getItems","push","commandParams","change","TrackChangesEditing","has","format","enableCommand","afterInit","value","_getStyleDefinition","config","_getRangesWithClasses","from","style","block","name","Style","markInlineFormat"];var Lx,Nx;Lx=Ix,Nx=328,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{[wx("0x1d")](){const t=this[wx("0x29")];if(!t[wx("0x3")][wx("0x1a")](wx("0x26")))return;const e=t[wx("0x9")][wx("0x0")](wx("0x23")),n=t[wx("0x3")][wx("0x0")](wx("0x19")),o=t.locale,s=t[wx("0x3")].get(wx("0xa")),r=t[wx("0x3")].get("StyleUtils")[wx("0x2d")](s,t[wx("0x20")][wx("0x0")]("style.definitions"));n[wx("0x1c")](wx("0x23"),((o,{styleName:i})=>{const x=t.model[wx("0x10")].selection,a=this[wx("0x1f")](i,r);if(!a)return;if(!e.enabledStyles[wx("0x4")](i))return;if(x[wx("0x1")]&&!a[wx("0xc")])return void o({styleName:i});const c=!e[wx("0x1e")][wx("0x4")](a[wx("0x25")]);if(a[wx("0xc")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[wx("0x25")])){n[wx("0x28")](o);break}}return n}(x.getSelectedBlocks(),a[wx("0x2b")]);t[wx("0xb")][wx("0x18")]((()=>{for(const t of e)n[wx("0x14")](t,{commandName:wx("0x23"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array.from(x[wx("0x13")]());if(!c){const n=Array[wx("0x22")](s.getDefinitionsForView(a[wx("0x2c")],!1))[0].model,o=[];for(const s of e){const e=this[wx("0x21")](t.model,s,a.classes,n);o[wx("0x16")](...e)}e=o}t[wx("0xb")][wx("0x18")]((()=>{for(const t of e)n[wx("0x27")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[wx("0x6")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&wx("0x23")===e[wx("0x7")])return e.commandParams[0][wx("0x12")]?{type:"format",content:Yo(o,"*Format:* %0",e[wx("0x17")][0][wx("0x2")][wx("0x2a")]())}:{type:wx("0x1b"),content:Yo(o,wx("0xf"),e[wx("0x17")][0][wx("0x2")].toLowerCase())}}))}[wx("0x1f")](t,e){let n=e[wx("0x24")][wx("0x5")]((e=>e[wx("0x25")]===t));return n||(n=e[wx("0x11")].find((e=>e[wx("0x25")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[wx("0x15")]()){const e=r[wx("0xe")](o);e&&n[wx("0x8")]((t=>e.classes[wx("0x4")](t)))&&s[wx("0x16")](t[wx("0xd")](r))}return s}}const Ox=["createRangeIn","isInContent","name","push","removeTableRow","isEqual","getRanges","createRangeOn","options","createPositionAt","ELEMENT_TABLE_ROW_WITH_TEXT","discard","substr","refresh","locale","selectTableRow","span","TableEditing","nodeBefore","getChildren","markMultiRangeInsertion","includes","minRow","_tableSuggestions","isIntersectingWithRange","model","getSelectionAffectedTableCells","order","isArray","editor","batch","filter","change:data","above","tablePaste","getFirstRange","nodeAfter","hasAttribute","registerCustomCallback","end","colspan","insertion","values","data","change","getCellLocation","insert","showSuggestionHighlights","last","document","detach","insertTableColumnRight","startsWith","registerElementLabel","MAX_SAFE_INTEGER","tableRow","element","selection","addMarker:suggestion","add","enableCommand","setSelection","maxColumn","_getCoordsForCells","root","enqueueChange","fromRange","ELEMENT_TABLE_ROW","rowspan","length","*Insert:* %0","_descriptionFactory","position","createTableWalker","$graveyard","accept","tableColumn","_suggestionFactory","left","_tablePostFixingSubtypes","rootName","max","getRowIndexes","toLowerCase","ELEMENT_TABLE_COLUMN_WITH_TEXT","execute","ELEMENT_TABLE_WITH_TEXT","from","TrackChangesEditing","insertTableRowAbove","classes","map","get","addClass","some","removeClass","_acceptFormatSuggestionCallbackFactory","tableCell","removeTableColumn","getAttribute","getChangedMarkers","item","type","getItems","isTouching","*Remove:* %0","addRange","table","highest","deletion","forceValue","cell","findAncestor","min","_setupColumnsRowsFixing","subType","join","getSuggestion","downcastDispatcher","has","$textProxy","registerPostFixer","ELEMENT_TABLE_COLUMN","insertTable","MIN_SAFE_INTEGER","oldRange","commands","insertTableColumnLeft","TableUtils","writer","_getSuggestionCoords","plugins","start","first","maxRow"];var Fx,Px;Fx=Ox,Px=263,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("0x56")]=[Dx("0x3e"),Dx("0x53")],this._tableSuggestions=new Set}afterInit(){const t=this[Dx("0x24")],e=t.model[Dx("0x38")][Dx("0x40")];if(!t.plugins[Dx("0x7e")](Dx("0x18")))return;const n=t[Dx("0x15")],o=t.plugins[Dx("0x63")](Dx("0x5f")),s=t[Dx("0x3")][Dx("0x63")]("TableUtils");o[Dx("0x4e")][Dx("0x3c")](Dx("0x72"),(t=>Yo(n,"ELEMENT_TABLE",t))),this._setupColumnsRowsFixing(),o[Dx("0x43")](Dx("0x82")),o[Dx("0x43")](Dx("0x16")),o.enableCommand("selectTableColumn");for(const n of[Dx("0x60"),"insertTableRowBelow"]){const r=t[Dx("0x85")][Dx("0x63")](n);o[Dx("0x43")](n,(n=>{t[Dx("0x20")][Dx("0x33")]((t=>{n();const i=Dx("0x28")===r.order,x=s[Dx("0x21")](e),a=s.getRowIndexes(x),c=i?a.first-1:a[Dx("0x37")]+1,l=x[0][Dx("0x77")]("table"),d=s[Dx("0x50")](l,{startRow:c,endRow:c}),u=Array[Dx("0x5e")](d)[Dx("0x62")]((e=>t[Dx("0xe")](e[Dx("0x76")])));o[Dx("0x1b")](u,Dx("0x3e"))}))}))}for(const n of[Dx("0x86"),Dx("0x3a")]){const r=t[Dx("0x85")].get(n);o[Dx("0x43")](n,(n=>{t[Dx("0x20")][Dx("0x33")]((t=>{n();const i=Dx("0x55")===r[Dx("0x22")],x=s[Dx("0x21")](e),a=s.getColumnIndexes(x),c=i?a[Dx("0x5")]-1:a[Dx("0x37")]+1,l=x[0][Dx("0x77")]("table"),d=s[Dx("0x50")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Dx("0x5e")](d)[Dx("0x62")]((e=>t[Dx("0xe")](e[Dx("0x76")])));o[Dx("0x1b")](u,Dx("0x53"))}))}))}for(const n of["removeTableRow",Dx("0x69")]){const r=n.substr(11),i=r[Dx("0x5a")](),x=i[Dx("0x13")](0,3)+Dx("0x17"),a=Dx("0x72")+r,c=Dx("0x78")+r,l=Dx("0x58")+r;o[Dx("0x43")](n,(()=>{t.model[Dx("0x33")]((t=>{const r=s.getSelectionAffectedTableCells(e),d=r[0][Dx("0x77")](Dx("0x72"));let u;if("removeTableRow"==n){const t=s[Dx("0x59")](r);u={startRow:t.first,endRow:t.last,includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t[Dx("0x5")],endColumn:t[Dx("0x37")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array.from(g)[Dx("0x62")]((({cell:t})=>t)),f=jx(m[Dx("0x26")]((t=>t[Dx("0x2c")](x)))),h=jx(m[Dx("0x26")]((t=>!t.hasAttribute(x))))[Dx("0x62")]((e=>t.createRangeOn(e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Dx("0x3e")==p[Dx("0x7a")]||Dx("0x53")==p[Dx("0x7a")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s[Dx("0x34")](n),a=n[Dx("0x6a")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Dx("0x71")](o)}}}))}))}function r(n){const o=Array[Dx("0x5e")](e[Dx("0xd")]()).map((t=>i.LiveRange.fromRange(t)));t[Dx("0x20")][Dx("0x33")]((e=>{const s=e[Dx("0x25")];n=n[Dx("0x26")]((t=>Dx("0x51")!=t[Dx("0x47")][Dx("0x57")])),e[Dx("0x44")](n),t[Dx("0x85")][Dx("0x63")](Dx("0xb")).refresh(),t[Dx("0x5c")](Dx("0xb"),{forceDefaultExecution:!0}),t[Dx("0x20")][Dx("0x48")]((()=>{t[Dx("0x20")][Dx("0x48")](s,(t=>{const e=o[Dx("0x26")]((t=>Dx("0x51")!=t[Dx("0x47")][Dx("0x57")]));e[Dx("0x4c")]>0&&t[Dx("0x44")](e);for(const t of o)t[Dx("0x39")]()}))}))}))}function a(n){t.model[Dx("0x33")]((o=>{const s=Array[Dx("0x5e")](e[Dx("0xd")]())[Dx("0x62")]((t=>i.LiveRange[Dx("0x49")](t))),r=[];for(const t of n)for(const e of t[Dx("0x6e")]({shallow:!0}))r.push(e);for(const e of r)Dx("0x51")!=e.root.rootName&&(o.setSelection(o[Dx("0x10")](e,0)),t[Dx("0x85")][Dx("0x63")](Dx("0x69"))[Dx("0x14")](),t[Dx("0x5c")](Dx("0x69"),{forceDefaultExecution:!0}));const x=s[Dx("0x26")]((t=>Dx("0x51")!=t[Dx("0x47")][Dx("0x57")]));x[Dx("0x4c")]>0&&o[Dx("0x44")](x);for(const t of s)t[Dx("0x39")]()}))}function c(t,e){return e.every((e=>t[Dx("0x65")]((t=>t[Dx("0x2e")][Dx("0xc")](e[Dx("0x4")])||e.end[Dx("0xc")](t[Dx("0x4")])))))}function l(t,e){return t[Dx("0x65")]((t=>e[Dx("0x65")]((e=>t[Dx("0x2e")][Dx("0x6f")](e[Dx("0x4")])))))}t[Dx("0x32")][Dx("0x7d")].on(Dx("0x41"),((t,e,n)=>{if(!n[Dx("0xf")][Dx("0x36")])return;const o=e[Dx("0x6c")];if(!o)return;const s=n.mapper.toViewElement(o);function r(t){return Array[Dx("0x23")](t)?t:[t]}s&&"tableCell"===o[Dx("0x9")]&&(0,x.setHighlightHandling)(s,n[Dx("0x1")],((t,e,n)=>n[Dx("0x64")](r(e[Dx("0x61")]),t)),((t,e,n)=>n[Dx("0x66")](r(e[Dx("0x61")]),t)))}),{priority:Dx("0x73")}),o._descriptionFactory.registerDescriptionCallback((t=>{if(Dx("0x30")!=t[Dx("0x6d")]&&Dx("0x74")!=t[Dx("0x6d")])return;const e=t.getContainedElement();if(null!=e&&e.is(Dx("0x3f"),Dx("0x72"))){if(Dx("0x30")==t.type){const e=t.getItems()[Dx("0x26")]((t=>t.is("$textProxy"))).map((t=>t[Dx("0x32")]));if(e[Dx("0x4c")])return{type:Dx("0x30"),content:Yo(n,Dx("0x4d"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Dx("0x7b")](" ")+'"'))}}if("deletion"==t.type){const e=t[Dx("0x6e")]()[Dx("0x26")]((t=>t.is(Dx("0x7f"))))[Dx("0x62")]((t=>t[Dx("0x32")]));if(e.length)return{type:Dx("0x74"),content:Yo(n,Dx("0x70"),Yo(n,Dx("0x5d"),'"'+e[Dx("0x7b")](" ")+'"'))}}}})),o[Dx("0x4e")].registerDescriptionCallback((t=>{if(Dx("0x3e")==t.subType){const e=t[Dx("0x6e")]()[Dx("0x26")]((t=>t.is(Dx("0x7f"))))[Dx("0x62")]((t=>t[Dx("0x32")])),o=this[Dx("0x2")](t),s=o[Dx("0x6")]-o[Dx("0x1d")]+1;if("insertion"==t[Dx("0x6d")])return e[Dx("0x4c")]?{type:Dx("0x30"),content:Yo(n,Dx("0x4d"),Yo(n,Dx("0x11"),[s,'"'+e[Dx("0x7b")](" ")+'"']))}:{type:Dx("0x30"),content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x4a"),s))};if("deletion"==t[Dx("0x6d")])return e[Dx("0x4c")]?{type:"deletion",content:Yo(n,Dx("0x70"),Yo(n,Dx("0x11"),[s,'"'+e[Dx("0x7b")](" ")+'"']))}:{type:Dx("0x74"),content:Yo(n,"*Remove:* %0",Yo(n,Dx("0x4a"),s))}}if(Dx("0x53")==t.subType){const e=t[Dx("0x6e")]()[Dx("0x26")]((t=>t.is(Dx("0x7f"))))[Dx("0x62")]((t=>t[Dx("0x32")])),o=this[Dx("0x2")](t),s=o[Dx("0x45")]-o.minColumn+1;if(Dx("0x30")==t[Dx("0x6d")])return e[Dx("0x4c")]?{type:Dx("0x30"),content:Yo(n,Dx("0x4d"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:Dx("0x30"),content:Yo(n,Dx("0x4d"),Yo(n,Dx("0x81"),s))};if("deletion"==t.type)return e[Dx("0x4c")]?{type:Dx("0x74"),content:Yo(n,Dx("0x70"),Yo(n,Dx("0x5b"),[s,'"'+e[Dx("0x7b")](" ")+'"']))}:{type:Dx("0x74"),content:Yo(n,Dx("0x70"),Yo(n,Dx("0x81"),s))}}})),o[Dx("0x54")][Dx("0x2d")](Dx("0x30"),Dx("0x3e"),Dx("0x12"),r),o[Dx("0x54")][Dx("0x2d")](Dx("0x74"),"tableRow","accept",r),o[Dx("0x54")][Dx("0x2d")]("insertion",Dx("0x53"),"discard",a),o._suggestionFactory.registerCustomCallback(Dx("0x74"),Dx("0x53"),Dx("0x52"),a),o._suggestionFactory[Dx("0x2d")](Dx("0x30"),Dx("0x53"),Dx("0x7b"),c),o[Dx("0x54")][Dx("0x2d")](Dx("0x74"),Dx("0x53"),"join",c),o[Dx("0x54")].registerCustomCallback(Dx("0x30"),"tableRow",Dx("0x7b"),l),o._suggestionFactory.registerCustomCallback(Dx("0x74"),Dx("0x3e"),"join",l)}[Dx("0x67")](){const t=this.editor,e=t[Dx("0x20")][Dx("0x38")].selection;return(n,o)=>{t[Dx("0x20")][Dx("0x33")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Dx("0x2e")][Dx("0x19")];x&&x[0]&&!1===x[0][Dx("0x75")]&&(a=n[0].start[Dx("0x2b")]);const c=s[Dx("0x7")](a);if("$graveyard"==c.root[Dx("0x57")])return;const l=Array.from(e[Dx("0xd")]())[Dx("0x62")]((t=>i.LiveRange[Dx("0x49")](t)));s[Dx("0x44")](c),t[Dx("0x85")].get(r).refresh(),x[Dx("0xa")]({forceDefaultExecution:!0}),t[Dx("0x5c")](r,...x);const d=l[Dx("0x26")]((t=>Dx("0x51")!=t.root[Dx("0x57")]));d[Dx("0x4c")]>0&&s[Dx("0x44")](d);for(const t of l)t[Dx("0x39")]()}))}}[Dx("0x46")](t){const e=this[Dx("0x24")][Dx("0x3")].get(Dx("0x0"));let n=Number[Dx("0x3d")],o=Number[Dx("0x83")],s=Number[Dx("0x3d")],r=Number[Dx("0x83")];for(const i of t){if(Dx("0x51")==i.root[Dx("0x57")])continue;const{row:t,column:x}=e[Dx("0x34")](i),a=i[Dx("0x2c")](Dx("0x4b"))?i[Dx("0x6a")](Dx("0x4b"))-1:0,c=i.hasAttribute("colspan")?i[Dx("0x6a")](Dx("0x2f"))-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("0x79")](){const t=this[Dx("0x24")],e=t.plugins[Dx("0x63")](Dx("0x5f")),n=t[Dx("0x3")].get(Dx("0x0"));t[Dx("0x20")][Dx("0x38")].on(Dx("0x27"),(()=>{const n=Array[Dx("0x5e")](t[Dx("0x20")][Dx("0x38")].differ[Dx("0x6b")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o[Dx("0x84")])continue;const i=e[Dx("0x7c")](s);this._tablePostFixingSubtypes[Dx("0x1c")](r)&&this[Dx("0x1e")][Dx("0x42")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[Dx("0x77")](Dx("0x72")),i=n[Dx("0x34")](t);for(const e of this[Dx("0x1e")]){const n=e[Dx("0x7a")],x=n[Dx("0x3b")](Dx("0x29")),a=n[Dx("0x13")](x?10:5),c=a.toLowerCase(),l=c[Dx("0x13")](0,3)+Dx("0x17"),d=Dx("0x78")+a,u=Dx("0x58")+a;if(!e[Dx("0x8")])continue;if(r!=e[Dx("0x2a")]()[Dx("0x4")][Dx("0x77")](Dx("0x72")))continue;if(e[Dx("0x1f")](s))continue;const g=t[Dx("0x2c")](l)?t[Dx("0x6a")](l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Dx("0x71")](s),o=!0)}return o};t[Dx("0x20")][Dx("0x38")][Dx("0x80")]((e=>{let n=!1;for(const s of t.model[Dx("0x38")].differ.getChanges())if(Dx("0x35")==s.type)if("tableRow"==s[Dx("0x9")])for(const t of s.position[Dx("0x2b")][Dx("0x1a")]())n=n||o(t,e);else Dx("0x68")==s[Dx("0x9")]&&(n=n||o(s[Dx("0x4f")][Dx("0x2b")],e));return n}))}[Dx("0x2")](t){return this[Dx("0x46")](t[Dx("0xd")]()[Dx("0x62")]((t=>t.start[Dx("0x2b")])))}}function jx(t){return Array[Dx("0x5e")](new Set(t)[Dx("0x31")]())}const Ux=["type","mergeTableCellRight","deletion","set:isEnabled","return","TrackChangesEditing","plugins","afterInit","document","element","findAncestor","from","createRangeOn","stop","TableUtils","execute","locale","accept","root","length","_descriptionFactory","splitTableCellVertically","mergeTableCellDown","markBlockFormat","format","getRanges","push","has","tableCell","registerDescriptionCallback","map","TableEditing","forceDefaultExecution","_areSelectedCellsMergable","enableCommand","change","requires","horizontally","formatBlock","_suggestionFactory","direction","value","author","getCellLocation","setSelection","get","refresh","highest","trackChanges","_isForcedDefaultExecutionBlock","*Merge cells*","registerCustomCallback","model","filter","commandName","_areMergableCells","low","editor","getFirstPosition","splitTableCellHorizontally","mergeTableCells","getSelectionAffectedTableCells","rootName","find","selection","createTableWalker","mergeTableCellLeft","commands","detach","subType","add","$graveyard","mergeTableCellUp","containsRange"];var Gx,Hx;Gx=Ux,Hx=215,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x2b")](){return[Bx]}[zx("0xe")](){const t=this[zx("0x40")],e=t[zx("0x3b")].document[zx("0x47")],n=t[zx("0x17")];if(!t[zx("0xd")][zx("0x22")](zx("0x26")))return;const o=t.plugins[zx("0x34")](zx("0xc")),s=t[zx("0xd")][zx("0x34")](zx("0x15")),r=t.plugins[zx("0x34")](Bx);r._tablePostFixingSubtypes[zx("0x21")](zx("0x43")),o[zx("0x29")](zx("0x43"),(()=>{const e=s[zx("0x44")](t[zx("0x3b")][zx("0xf")].selection);t[zx("0x3b")][zx("0x2a")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:zx("0x43"),commandParams:[]},[],"mergeTableCells")}))})),t[zx("0x0")][zx("0x34")](zx("0x43")).on(zx("0x16"),((e,n)=>{t[zx("0x0")][zx("0x34")](zx("0x37"))[zx("0x30")]&&(n.length>0&&n[n.length-1]&&n[n[zx("0x1a")]-1][zx("0x27")]||o[zx("0x38")]||this[zx("0x28")]()||e[zx("0x14")]())}),{priority:zx("0x36")});for(const e of[zx("0x5"),"mergeTableCellRight","mergeTableCellDown",zx("0x49")]){const n=t.commands.get(e);o.enableCommand(e,(()=>{const e=t[zx("0x3b")][zx("0xf")][zx("0x47")].getFirstPosition().getAncestors().find((t=>t.is(zx("0x10"),zx("0x23")))),s=n[zx("0x30")];t[zx("0x3b")].change((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:"mergeTableCells",commandParams:[]},[],zx("0x43"))}))}))}for(const e of[zx("0x1c"),zx("0x42")]){const n=t[zx("0x0")][zx("0x34")](e);o.enableCommand(e,(()=>{const r=s[zx("0x44")](t.model[zx("0xf")][zx("0x47")])[0],i=r[zx("0x11")]("table"),{column:x,row:a}=s[zx("0x32")](r);let c=[];if(zx("0x2c")==n[zx("0x2f")]){const t=s[zx("0x48")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[zx("0x25")]((t=>t.cell))}else{const t=s[zx("0x48")](i,{column:x,includeAllSlots:!0});c=Array.from(t)[zx("0x25")]((t=>t.cell))}t[zx("0x3b")][zx("0x2a")]((t=>{o[zx("0x1e")](t[zx("0x13")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[zx("0x1b")][zx("0x24")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[zx("0x3d")]?{type:zx("0x1f"),content:Yo(n,zx("0x39"))}:void 0})),o[zx("0x1b")][zx("0x24")]((t=>{const{data:e}=t;if(e)return zx("0x1c")==e[zx("0x3d")]?{type:zx("0x1f"),content:Yo(n,"*Split cell:* vertically")}:zx("0x42")==e[zx("0x3d")]?{type:"format",content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of[zx("0x5"),zx("0x8"),zx("0x1d"),zx("0x49")])o[zx("0x2e")][zx("0x3a")]("formatBlock",t,zx("0x18"),x);for(const t of[zx("0x1c"),"splitTableCellHorizontally"])o[zx("0x2e")][zx("0x3a")](zx("0x2d"),t,"accept",x);o[zx("0x2e")][zx("0x3a")](zx("0x2d"),zx("0x43"),zx("0x18"),(n=>{t[zx("0x3b")].change((o=>{const s=Array[zx("0x12")](e.getRanges())[zx("0x25")]((t=>i.LiveRange.fromRange(t)));o.setSelection(n),t.commands[zx("0x34")](zx("0x43"))[zx("0x35")](),t.execute("mergeTableCells",{forceDefaultExecution:!0});const r=s[zx("0x3c")]((t=>zx("0x4")!=t[zx("0x19")][zx("0x45")]));r[zx("0x1a")]>0&&o[zx("0x33")](r);for(const t of s)t[zx("0x1")]()}))}));for(const e of[zx("0x5"),zx("0x1d"),zx("0x49"),"mergeTableCellRight"]){const n=t.commands[zx("0x34")](e);n.on(zx("0xa"),((e,o,s)=>{if(s){const o=t[zx("0x3b")][zx("0xf")][zx("0x47")][zx("0x41")]().getAncestors()[zx("0x46")]((t=>t.is("element",zx("0x23"))));this[zx("0x3e")](n[zx("0x30")],o)||(e[zx("0xb")]=!1,e[zx("0x14")]())}}),{priority:zx("0x3f")})}}_areSelectedCellsMergable(){const t=this.editor[zx("0x0")][zx("0x34")](zx("0x43")),e=this[zx("0x40")][zx("0xd")][zx("0x34")](zx("0x15"));if(!t.isEnabled)return!1;const n=e[zx("0x44")](this[zx("0x40")][zx("0x3b")].document[zx("0x47")]);for(const t of n)for(const e of n)if(t!=e&&!this[zx("0x3e")](t,e))return!1;return!0}[zx("0x3e")](t,e){const n=this[zx("0x40")][zx("0xd")][zx("0x34")](zx("0xc")),o=this.editor[zx("0x3b")][zx("0x13")](t),s=this[zx("0x40")][zx("0x3b")][zx("0x13")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if(("insertion"==t[zx("0x7")]||zx("0x9")==t[zx("0x7")]||zx("0x43")==t[zx("0x2")])&&t.isInContent)for(const e of t[zx("0x20")]())e[zx("0x6")](o,!0)&&r[zx("0x3")](t[zx("0x7")]+":"+t[zx("0x31")].id),e[zx("0x6")](s,!0)&&i[zx("0x3")](t[zx("0x7")]+":"+t[zx("0x31")].id);if(r.size!=i.size)return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Vx=["headingColumns","_splitMarkerName","includes","addClass","last","selection","markBlockFormat","removeAttribute","cell","model","document","registerDescriptionCallback","getSelectionAffectedTableCells","setTableRowHeader","editing","data","editor","plugins","data-suggestion","showSuggestionHighlights","enableCommand","createTableWalker","getChild","mapper","childCount","table","TrackChangesEditing","getRowIndexes","index","consume","ck-suggestion-marker--active","setTableColumnHeader","*Format:* %0","getAttribute","createRange","from","setAttribute","FORMAT_HEADER_ROW","value","isBefore","accept","options","getSuggestion","first","consumable","FORMAT_HEADER_COLUMN","highest","markerName","commands","get","change","writer","stop","createPositionAfter","formatBlock","activeMarkers","TableEditing","markerRange","TableUtils","findAncestor","commandParams","afterInit","forceValue","removeClass","downcastDispatcher","_suggestionFactory","registerCustomCallback","getCellLocation","FORMAT_REGULAR_ROW","FORMAT_REGULAR_COLUMN","name","unbindElementFromMarkerName","createPositionBefore","addMarker:suggestion","parent","nodeBefore","commandName","format"];var Kx,qx;Kx=Vx,qx=262,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]}[Xx("0x21")](){const t=this[Xx("0x42")];if(!t[Xx("0x43")].has(Xx("0x1c")))return;const e=t.locale,n=t[Xx("0x43")][Xx("0x15")](Xx("0x4c")),o=t.plugins.get(Xx("0x1e")),s=t[Xx("0x43")][Xx("0x15")](Bx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Xx("0x33")](r[Xx("0x13")]),c=n[Xx("0xe")](a);if(!c[Xx("0x41")]||Xx("0x3")!=c[Xx("0x41")][Xx("0x30")])return;if(r.item)return void s[Xx("0x18")]();if(!i[Xx("0x10")][Xx("0x1")](r[Xx("0x1d")],s[Xx("0x2a")]))return;const l=r[Xx("0x1d")].start.nodeAfter,d=r[Xx("0x1d")].end[Xx("0x2f")],u=l.parent[Xx("0x2e")],{column:g}=o.getCellLocation(l),{column:m}=o[Xx("0x27")](d);for(let s=g;s<=m;s++){const c=o[Xx("0x47")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i[Xx("0x49")].toViewElement(s);i.writer.addClass("ck-suggestion-marker-"+x,c),e&&i[Xx("0x17")][Xx("0x8")]("data-suggestion",a,c),i[Xx("0x49")].bindElementToMarker(c,r.markerName),t&&(n[Xx("0x1b")][Xx("0x34")](r[Xx("0x13")])?i[Xx("0x17")][Xx("0x35")](Xx("0x2"),c):i[Xx("0x17")][Xx("0x23")](Xx("0x2"),c))}}}}n[Xx("0x46")]("setTableRowHeader",((e,s)=>{const r=o[Xx("0x3e")](t[Xx("0x3b")][Xx("0x3c")].selection),i=o[Xx("0x4d")](r),x=r[0].findAncestor(Xx("0x4b")),a=x.getAttribute("headingRows")||0,c=s&&null!==s[Xx("0x22")]?s.forceValue:!t[Xx("0x14")][Xx("0x15")]("setTableRowHeader")[Xx("0xa")],l=c?i[Xx("0x36")]:i[Xx("0xf")],d=x.getChild(l);let u;if(c){const e=x.getChild(a);if(d[Xx("0x0")]<e[Xx("0x0")])return;u=t[Xx("0x3b")][Xx("0x6")](t[Xx("0x3b")][Xx("0x2c")](e[Xx("0x48")](0)),t[Xx("0x3b")].createPositionAfter(d[Xx("0x48")](d[Xx("0x4a")]-1)))}else{const e=x.getChild(a-1);if(!e)return;u=t[Xx("0x3b")][Xx("0x6")](t[Xx("0x3b")][Xx("0x2c")](d[Xx("0x48")](0)),t.model[Xx("0x19")](e[Xx("0x48")](e[Xx("0x4a")]-1)))}t.model[Xx("0x16")]((()=>{n[Xx("0x38")](u,{commandName:Xx("0x3f"),commandParams:[{forceValue:c}]},[],Xx("0x3f"))}))})),n.enableCommand("setTableColumnHeader",((e,o)=>{const s=t[Xx("0x43")].get(Xx("0x1e")),r=s[Xx("0x3e")](t.model[Xx("0x3c")][Xx("0x37")]),i=s.getColumnIndexes(r),x=r[0][Xx("0x1f")]("table"),a=x[Xx("0x5")](Xx("0x32"))||0,c=o&&null!==o[Xx("0x22")]?o[Xx("0x22")]:!t[Xx("0x14")][Xx("0x15")](Xx("0x3"))[Xx("0xa")];let l;const d=x.getChild(0),u=c?i[Xx("0x36")]:i[Xx("0xf")],g=s[Xx("0x47")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Xx("0x7")](g)[0][Xx("0x3a")];if(c){const e=d[Xx("0x48")](a);if(m[Xx("0xb")](e))return;l=t[Xx("0x3b")][Xx("0x6")](t[Xx("0x3b")][Xx("0x2c")](e),t.model[Xx("0x19")](m))}else{const e=d[Xx("0x48")](a-1);if(!e)return;l=t[Xx("0x3b")][Xx("0x6")](t.model[Xx("0x2c")](m),t[Xx("0x3b")].createPositionAfter(e))}t[Xx("0x3b")][Xx("0x16")]((()=>{n[Xx("0x38")](l,{commandName:Xx("0x3"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t.editing[Xx("0x24")].on(Xx("0x2d"),r(),{priority:Xx("0x12")}),t[Xx("0x41")][Xx("0x24")].on("addMarker:suggestion",((t,e,n)=>{n[Xx("0xd")][Xx("0x45")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0x12")}),t[Xx("0x40")][Xx("0x24")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n[Xx("0x33")](e[Xx("0x13")]),i=n[Xx("0xe")](r);if(!i[Xx("0x41")]||Xx("0x3")!=i[Xx("0x41")][Xx("0x30")])return;const x=o[Xx("0x49")].markerNameToElements(e[Xx("0x13")]);if(x)for(const t of x)o[Xx("0x17")][Xx("0x23")]("ck-suggestion-marker-"+s,t),o[Xx("0x17")][Xx("0x23")](Xx("0x2"),t),o[Xx("0x17")][Xx("0x39")](Xx("0x44"),t),o[Xx("0x49")][Xx("0x2b")](t,e[Xx("0x13")])}),{priority:Xx("0x12")}),n._descriptionFactory[Xx("0x3d")]((t=>{const{data:n}=t;if(n){if(Xx("0x3f")==n.commandName){const t=n[Xx("0x20")][0][Xx("0x22")];return o(Yo(e,Xx(t?"0x9":"0x28")))}if("setTableColumnHeader"==n[Xx("0x30")]){const t=n[Xx("0x20")][0].forceValue;return o(Yo(e,Xx(t?"0x11":"0x29")))}}function o(t){return{type:Xx("0x31"),content:Yo(e,Xx("0x4"),t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n[Xx("0x25")][Xx("0x26")]("formatBlock",Xx("0x3f"),Xx("0xc"),i),n[Xx("0x25")][Xx("0x26")](Xx("0x1a"),"setTableColumnHeader","accept",i)}}const Jx=["isInContent","Users","getColumnIndexes","_getCoordsForCells","table","next","low","markerToHighlight","removeMarkers","add","some","subType","getRanges","insertion","getAllAdjacentSuggestions","getShiftedBy","tableCellBorderStyle","_splitMarkerName","editor","getAttributes","createTableWalker","findAncestor","view","columnInsertionRanges","tablePasteCell","keys","suggestionLoaded","containsRange","registerPostFixer","$graveyard","getTableIfOnlyTableInContent","conversion","suggestionUnloaded","getSelectionAffectedTableCells","newRange","activeMarkers","tableCellSuggestion","rootName","move","set","suggestion","getSuggestionCallback","options","createRangeOn","removeMarker","model","value","last","position","map","change","entries","isEqual","elementToElement","markMultiRangeInsertion","selection","tablePasteRow","batch","cell","getRange","registerCustomCallback","first","_isForcedDefaultExecutionBlock","nodeAfter","commands","ck-suggestion-marker-insertion","paragraph","insertionRanges","removeRows","get","_replaceTableSlotCell","deletion","find","fromEntries","editingDowncast","fill","getRows","formatBlock","TableClipboard","forceDefaultExecution","oldRange","getChildren","tablePaste","listenTo","length","content","insertRows","endColumn","setAttribute","suggestion:formatBlock:tablePasteCell","insertContent","ck-suggestion-marker--active","markerName","hasSuggestion","markerAttributes","reduce","getSuggestion","endRow","tableCellHorizontalAlignment","setAttributes","tableCellPadding","column","remove","getSuggestions","insert","start","getChild","updateMarker","ck-suggestion-marker","discard","tableCellBackgroundColor","getChanges","getColumns","high","dataDowncast","cells","removeColumns","root","author","unwrap","_suggestionFactory","element","for","columns","showSuggestionHighlights","isEmpty","differ","getMarkers","documentSelection","tablePasteColumn","createRangeIn","has","wrap","insertColumns","registerDescriptionCallback","schema","afterInit","rowInsertionRanges","_createdBatches","name","createPositionBefore","rows","columnInsertionIndexes","from","push","register","*Replace table cells*","tablePasteChainId","return","previous","startsWith","join","editing","tableCell","_descriptionFactory","getChangedMarkers","end","suggestion-td","plugins","document","every","getContainedElement","tableCellBorderColor","rowInsertionIndexes","attributes","markers","includes","type","TableUtils","filter"];var Qx,Zx;Qx=Jx,Zx=183,function(t){for(;--t;)Qx.push(Qx.shift())}(++Zx);const Yx=function(t,e){return Jx[t-=0]},ta=["tableCellBorderWidth",Yx("0x95"),Yx("0x3"),Yx("0x55"),"tableCellVerticalAlignment",Yx("0x61"),Yx("0x57")],ea=Object.fromEntries(ta[Yx("0x24")]((t=>[t,null])));class na extends t.Plugin{static get requires(){return[Bx]}[Yx("0x7b")](){const t=this[Yx("0x5")];if(!t[Yx("0x91")][Yx("0x76")](Yx("0x41")))return;const n=t.plugins.get("TrackChangesEditing"),o=t[Yx("0x91")][Yx("0x38")](Yx("0x9b")),s=t[Yx("0x91")].get(Bx),r=t[Yx("0x91")][Yx("0x38")](Yx("0x41"));s._tablePostFixingSubtypes.push("tablePasteRow",Yx("0x74")),t[Yx("0x20")][Yx("0x7a")][Yx("0x84")](Yx("0x17"),{allowIn:Yx("0x8c"),allowContentOf:Yx("0x8c"),isLimit:!0}),t[Yx("0x12")][Yx("0x28")]({model:Yx("0x17"),view:Yx("0x90")});let i=null;t[Yx("0x20")].on(Yx("0x4d"),((s,x)=>{const[a,c]=x,l=x[x[Yx("0x47")]-1];l&&l[Yx("0x42")]||n[Yx("0x31")]||this[Yx("0x5")].commands[Yx("0x38")]("trackChanges")[Yx("0x21")]&&function(t,e,n,o,s){if(e&&!e.is(Yx("0x73")))return!1;const r=s[Yx("0x11")](t,n);if(!r||!sa(r,void 0,o))return!1;const i=o[Yx("0x14")](n[Yx("0x92")][Yx("0x2a")]);if(!i[Yx("0x47")])return!1;const x=i[0][Yx("0x8")](Yx("0xa1")),a=o.getRowIndexes(i),c=o[Yx("0x9f")](i),l={startRow:a[Yx("0x30")],endRow:a.last,startColumn:c[Yx("0x30")],endColumn:c[Yx("0x22")]};return 1==i[Yx("0x47")]&&(l[Yx("0x54")]+=o[Yx("0x3f")](r)-1,l[Yx("0x4a")]+=o[Yx("0x63")](r)-1),sa(x,l,o)}(a,c,t[Yx("0x20")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[Yx("0x25")]((()=>{t[Yx("0x20")][Yx("0x4d")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Yx("0x47")]&&n[Yx("0x29")](s,Yx("0x2b"),{tablePasteChainId:o}),r.length&&n[Yx("0x29")](r,Yx("0x74"),{tablePasteChainId:o}),a[Yx("0x47")]&&n[Yx("0x29")](a,Yx("0x45"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0x47")]&&n.markMultiRangeDeletion(c,Yx("0x45"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n.markMultiRangeBlockFormat(l[Yx("0x24")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0xb"),{tablePasteChainId:o});if(d){const e=d[Yx("0x72")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Yx("0x1e")](o),i=e[Yx("0x3b")]((t=>t[Yx("0x2e")]()[Yx("0x27")](r)));i&&n[Yx("0x83")]([i[Yx("0x7e")],s])}n[Yx("0x47")]&&d[Yx("0x4b")](Yx("0x51"),Object[Yx("0x3c")](n))}i=null})))}),{priority:e.priorities[Yx("0x64")]+10}),t.plugins[Yx("0x38")](Yx("0x41")).on(Yx("0x39"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[Yx("0x2d")],x=o,a=oa(r),c=oa(x);t[Yx("0x87")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Yx("0x5d")](0));for(const t of Array[Yx("0x82")](x[Yx("0x44")]()))s[Yx("0x5b")](t,r,Yx("0x8f"));const t=i.rowInsertionIndexes.includes(n.row),e=i[Yx("0x81")][Yx("0x99")](n[Yx("0x58")]);t||e||(l=s[Yx("0x75")](r))}else c&&!a&&(d=s[Yx("0x75")](r));else{const t=s.createElement(Yx("0x17")),e=s.createElement("tableCellSuggestion");s[Yx("0x77")](s.createRangeIn(r),e),s[Yx("0x5b")](t,r,0);for(const e of Array.from(x[Yx("0x44")]()))s.insert(e,t,Yx("0x8f"));l=s[Yx("0x1e")](t),d=s[Yx("0x1e")](e)}const u=Array[Yx("0x82")](x[Yx("0x6")]())[Yx("0x9c")]((([t])=>ta[Yx("0x99")](t)));i[Yx("0x66")][Yx("0x83")]({element:r,attributes:u[Yx("0x47")]?Object.fromEntries(u):null}),l&&i[Yx("0x36")][Yx("0x83")](l),d&&i.deletionRanges[Yx("0x83")](d)}),{priority:Yx("0x64")}),o.on(Yx("0x78"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x6e")]||1;i[Yx("0x81")]=new Array(a)[Yx("0x3e")](x)[Yx("0x24")](((t,e)=>t+e));for(const{cell:e}of o[Yx("0x7")](s,{startColumn:x,endColumn:x+a-1}))i[Yx("0xa")].push(t.model[Yx("0x1e")](e))}),{priority:"low"}),o.on(Yx("0x49"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x80")]||1;i[Yx("0x96")]=new Array(a)[Yx("0x3e")](x).map(((t,e)=>t+e));for(const{cell:e}of o[Yx("0x7")](s,{startRow:x,endRow:x+a-1}))i[Yx("0x7c")][Yx("0x83")](t.model[Yx("0x1e")](e))}),{priority:Yx("0xa3")}),n[Yx("0x8d")][Yx("0x79")]((e=>{if(e[Yx("0xa8")]&&e[Yx("0xa8")][Yx("0x89")](Yx("0x45")))return e[Yx("0x88")]?{}:{type:Yx("0x0"),content:Yo(t.locale,Yx("0x85"))}}));const x=()=>!1;for(const t of[Yx("0x45"),Yx("0x74"),"tablePasteRow",Yx("0xb")])n[Yx("0x6b")][Yx("0x2f")]("insertion",t,Yx("0x8a"),x),n._suggestionFactory[Yx("0x2f")](Yx("0x3a"),t,Yx("0x8a"),x),n[Yx("0x6b")][Yx("0x2f")](Yx("0x40"),t,"join",x);n._suggestionFactory.registerCustomCallback(Yx("0x40"),Yx("0xb"),Yx("0x60"),x),n._suggestionFactory.registerCustomCallback(Yx("0x40"),"tablePasteCell","accept",((e,n,o)=>{const s=e[Yx("0x24")]((t=>t.getContainedElement()))[Yx("0x9c")]((t=>t)),r=new Map(s[Yx("0x24")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Yx("0x66")])e&&r[Yx("0x1a")](t,e);else if(o&&o[Yx("0x51")])for(const[e,n]of Object[Yx("0x26")](o[Yx("0x51")])){const o=t.model[Yx("0x98")][Yx("0x38")](e),s=o?o[Yx("0x2e")]().getContainedElement():null;s&&r.set(s,n)}t[Yx("0x20")][Yx("0x25")]((t=>{for(const[e,n]of r)t[Yx("0x56")]({...ea,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[Yx("0x2f")](e,Yx("0x45"),o,((s,r,i)=>{t[Yx("0x20")][Yx("0x25")]((t=>{const x=[];for(const t of s){const e=t[Yx("0x5c")][Yx("0x32")];e.is("element",Yx("0x17"))&&x[Yx("0x83")](e)}n[Yx("0x6b")][Yx("0x1c")](e,null,o)(s,r,i);for(const e of x)Yx("0x10")!=e[Yx("0x68")][Yx("0x18")]&&t[Yx("0x6a")](e)}))}))};a("insertion","accept"),a(Yx("0x0"),"discard"),a(Yx("0x3a"),"accept"),a(Yx("0x3a"),Yx("0x60")),n[Yx("0x6b")].registerCustomCallback(Yx("0x0"),Yx("0x2b"),Yx("0x60"),(t=>{const e=t[Yx("0x24")]((t=>t[Yx("0x94")]())),n=e[0][Yx("0x8")](Yx("0xa1")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Yx("0x37")](n,{at:r,rows:i-r+1})})),n[Yx("0x6b")][Yx("0x2f")]("insertion",Yx("0x74"),Yx("0x60"),(t=>{const e=t[Yx("0x24")]((t=>t[Yx("0x94")]())),n=e[0][Yx("0x8")](Yx("0xa1")),{minColumn:r,maxColumn:i}=s[Yx("0xa0")](e);o[Yx("0x67")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Yx("0xa8")]||!e.subType[Yx("0x89")](Yx("0x45")))return;const o=e[Yx("0x97")][Yx("0x86")],s=n[Yx("0x5a")]()[Yx("0x9c")]((t=>t.isInContent&&t[Yx("0x97")]&&t.attributes[Yx("0x86")]==o));s[Yx("0x47")]&&e[Yx("0x1")]().length!=s[Yx("0x47")]&&s[Yx("0x52")](((t,e)=>(t[Yx("0xa2")]=e,e[Yx("0x88")]=t,e)))};function l(t,e=!0){const{id:o}=n[Yx("0x4")](t[Yx("0x4f")]),s=[Yx("0x5f"),Yx("0x34")],r=n[Yx("0x16")].includes(t[Yx("0x4f")]);return r&&s[Yx("0x83")](Yx("0x4e")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Yx("0xd"),c,{priority:Yx("0x64")}),n.on(Yx("0x13"),c,{priority:Yx("0x64")}),t[Yx("0x20")][Yx("0x92")].registerPostFixer((()=>{let e=!1;const o=Array[Yx("0x82")](t.model[Yx("0x92")][Yx("0x71")].getChangedMarkers());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Yx("0x4")](s);if(Yx("0x1b")!=o||Yx("0x3a")!=i||r[Yx("0x43")])continue;if(!n[Yx("0x50")](x))continue;const a=n[Yx("0x53")](x)[Yx("0xa9")](),c=t[Yx("0x91")][Yx("0x38")](Yx("0x9e")).me;for(const t of n[Yx("0x5a")]())if(t[Yx("0x9d")]&&t[Yx("0x69")]==c&&Yx("0x40")==t[Yx("0x9a")]&&Yx("0xb")==t[Yx("0xa8")]&&t.getRanges()[Yx("0x93")]((t=>a[Yx("0xa7")]((e=>e[Yx("0xe")](t,!0))))))for(const n of t[Yx("0x1")]())n[Yx("0x9d")]&&(n[Yx("0x60")](),e=!0)}return e})),t.model[Yx("0x92")][Yx("0xf")]((e=>{const o=t[Yx("0x33")][Yx("0x38")]("redo");if(!o||!o[Yx("0x7d")][Yx("0x76")](e[Yx("0x2c")]))return!1;let s=!1;const r=t.plugins[Yx("0x38")](Yx("0x9e")).me,i=t.model.document.differ[Yx("0x62")](),x=Array.from(t[Yx("0x20")][Yx("0x92")].differ[Yx("0x8e")]())[Yx("0x9c")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Yx("0x4")](t);return Yx("0x1b")==o&&Yx("0x45")==s&&i==r.id&&!e[Yx("0x43")]}));for(const t of i){if("insert"!=t.type||Yx("0x17")!=t[Yx("0x7e")]||1!=t[Yx("0x47")])continue;const n=e.createRange(t.position,t[Yx("0x23")][Yx("0x2")](1));if(!x[Yx("0x3b")]((({data:t})=>t[Yx("0x15")].isEqual(n))))for(const{name:t,data:o}of x)if(n[Yx("0xe")](o[Yx("0x15")])){e[Yx("0x5e")](t,{range:n}),s=!0;break}}return s})),t[Yx("0x20")][Yx("0x92")][Yx("0xf")]((e=>{let o=!1;const s=t[Yx("0x91")].get(Yx("0x9e")).me,r=n[Yx("0x5a")]()[Yx("0x9c")]((t=>t[Yx("0x9d")]&&t[Yx("0x69")]==s)),i=new Set,x=new Set;for(const t of r)if(Yx("0x45")==t[Yx("0xa8")])for(const e of t.getMarkers()){const n=e[Yx("0x2e")]()[Yx("0x94")]();if(n)if(n.is("element",Yx("0x17"))&&oa(n)){t[Yx("0x1f")](e[Yx("0x7e")]),i[Yx("0xa6")](n),o=!0;const s=n.nextSibling,r=n.previousSibling,a=s&&s.is("element",Yx("0x17")),c=r&&r.is(Yx("0x6c"),Yx("0x17"));a&&!i.has(s)&&x[Yx("0xa6")](s),c&&!i[Yx("0x76")](r)&&x.add(r)}else n.is(Yx("0x6c"),Yx("0x35"))&&n[Yx("0x70")]&&(t[Yx("0x1f")](e.name),o=!0)}else if(Yx("0xb")==t[Yx("0xa8")]){if(!t[Yx("0x97")]||!t[Yx("0x97")][Yx("0x86")])continue;const e=t[Yx("0x97")][Yx("0x51")];if(e&&Object[Yx("0xc")](e)[Yx("0x47")])continue;const n=t[Yx("0x97")][Yx("0x86")];let s=!0,i=!0;for(const e of r)if(e.subType&&e[Yx("0xa8")][Yx("0x89")](Yx("0x45"))){if(!e[Yx("0x97")][Yx("0x86")]){i=!1;break}if(e.id!=t.id&&e[Yx("0x97")][Yx("0x86")]==n){s=!1;break}}i&&s&&(t[Yx("0xa5")](),o=!0)}for(const t of i)e[Yx("0x59")](t);for(const t of x)e[Yx("0x6a")](t);return o})),t.conversion[Yx("0x6d")](Yx("0x3d"))[Yx("0xa4")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:Yx("0x64")}),t[Yx("0x12")][Yx("0x6d")](Yx("0x65"))[Yx("0xa4")]({model:Yx("0x4c"),view:(t,e)=>e[Yx("0x1d")][Yx("0x6f")]?l(t,!1):null,converterPriority:Yx("0x64")});const d=t[Yx("0x8b")][Yx("0x9")];this[Yx("0x46")](d[Yx("0x92")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d[Yx("0x75")](e[Yx("0x48")]).getItems())t.is("element",Yx("0x90"))&&n.push(t);d[Yx("0x25")]((t=>{for(const e of n)t[Yx("0x19")](t[Yx("0x75")](e),t[Yx("0x7f")](e)),t[Yx("0x59")](e)}))}))}}function oa(t){if(t.isEmpty)return!0;const e=t[Yx("0x5d")](0);return e.is(Yx("0x6c"),Yx("0x35"))&&e[Yx("0x70")]}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=["resizeColumnWidths","_suggestionFactory","commandParams","format","subType","formatBlock","registerDescriptionCallback","editor","resizeTable","selection","enableCommand","tableWidth","formatGroupId","getSuggestionCallback","plugins","getContainedElement","handleSuggestionDescription","bind","data","*Format:* resize table","Users","document","change","handleResizeTableWidthCommand","model","author","table","get","markBlockFormat","TrackChangesEditing","accept","getSelectedElement","discard","registerCustomCallback","TableColumnResizeEditing","columnWidths"];var ia,xa;ia=ra,xa=210,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){if(!this[aa("0xd")].plugins.has(aa("0x4")))return;const t=this[aa("0xd")][aa("0x14")][aa("0x21")](aa("0x23"));t[aa("0x10")]("resizeTableWidth",this.handleResizeTableWidthCommand[aa("0x17")](this)),t.enableCommand(aa("0x6"),this[aa("0x1d")].bind(this)),t[aa("0x7")][aa("0x3")](aa("0xb"),aa("0xe"),aa("0x0"),t._suggestionFactory[aa("0x13")]("formatBlock",null,aa("0x2"))),t[aa("0x7")].registerCustomCallback(aa("0xb"),aa("0xe"),"discard",t[aa("0x7")][aa("0x13")](aa("0xb"),null,aa("0x0"))),t._descriptionFactory[aa("0xc")](this[aa("0x16")][aa("0x17")](this))}[aa("0x1d")](t,e){const n=this.editor.plugins.get(aa("0x23")),o=this[aa("0xd")][aa("0x14")][aa("0x21")](aa("0x4")),s=e[aa("0x20")]||this[aa("0xd")].model[aa("0x1b")][aa("0xf")][aa("0x1")]();this[aa("0xd")][aa("0x1e")][aa("0x1c")]((()=>{const r=o.getColumnGroupElement(s);let i=r?o.getTableColumnsWidths(r):null,x=s.getAttribute("tableWidth")||null;const a=e.tableWidth||x,c=e[aa("0x5")]||i,l=this[aa("0xd")].plugins[aa("0x21")](aa("0x1a")).me;for(const t of n.getSuggestions()){const e=t[aa("0x15")]();if("resizeTable"===t[aa("0xa")]&&e===s){t[aa("0x1f")]!==l&&t.discard();const e=t[aa("0x18")][aa("0x8")];x=e[0][aa("0x11")],i=e[0][aa("0x5")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[aa("0x22")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],aa("0xe"))}))}[aa("0x16")](t){const{data:e}=t;if(e&&"resizeTable"===e[aa("0x12")]){const t=aa("0x19");return{type:aa("0x9"),content:Yo(this[aa("0xd")].locale,t)}}}}const la=["insertTemplate","enableCommand","afterInit","Template","plugins"];var da,ua;da=la,ua=128,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x4")](){const t=this.editor;t.plugins.has(ga("0x0"))&&t[ga("0x1")].get("TrackChangesEditing")[ga("0x3")](ga("0x2"))}}const fa=["ELEMENT_TABLE_OF_CONTENTS","insertTableOfContents","registerElementLabel","get","locale","tableOfContents","editor","_descriptionFactory","plugins","TrackChangesEditing","afterInit","enableCommand","commands"];var ha,pa;ha=fa,pa=410,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x3")](){const t=this[ba("0xc")];if(!t[ba("0x5")][ba("0x9")](ba("0x7")))return;t[ba("0x1")].get(ba("0x2"))[ba("0x4")](ba("0x7"));const e=t[ba("0x1")][ba("0x9")](ba("0x2")),n=t[ba("0xa")];e[ba("0x0")][ba("0x8")](ba("0xb"),(t=>Yo(n,ba("0x6"),t)))}}const _a=["createRange","_splitMarkerName","_descriptionFactory","model","ELEMENT_TITLE","isTouching","afterInit","editor","locale","getNearestSelectionRange","updateMarker","forward","differ","isEqual","start","get","title-content","removeMarker","schema","suggestion","Title","getChangedMarkers","newRange","has","document","nodeBefore","isCollapsed","from","registerElementLabel","plugins","end"];var Ta,Ca;Ta=_a,Ca=383,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x1a")](){const t=this[ya("0x1b")];if(!t[ya("0x12")][ya("0xc")](ya("0x9")))return;const e=t[ya("0x12")][ya("0x4")]("TrackChangesEditing");e[ya("0x16")][ya("0x11")]("title-content",(()=>Yo(t[ya("0x1c")],ya("0x18")))),t[ya("0x17")][ya("0xd")].registerPostFixer((n=>{let o=!1;const s=Array[ya("0x10")](t[ya("0x17")][ya("0xd")][ya("0x1")][ya("0xa")]());for(const{name:r,data:i}of s){const{group:s}=e[ya("0x15")](r);if(ya("0x8")!==s||!i.newRange)continue;const x=i[ya("0xb")],a=x[ya("0x13")][ya("0xe")];if(!a||!a.is("element",ya("0x5")))continue;if(!x.start[ya("0x19")](x[ya("0x13")]))continue;const c=t[ya("0x17")][ya("0x7")][ya("0x1d")](x[ya("0x13")],ya("0x0"));if(c&&c[ya("0xf")]){const t=n[ya("0x14")](x[ya("0x3")],c.start);t[ya("0x2")](x)||(n[ya("0x1e")](r,{range:t}),o=!0)}o||(n[ya("0x6")](r),o=!0)}return o}))}}const Aa=["has","editor","UndoEditing","enableCommand","TrackChangesEditing","undo","get","redo","plugins"];var va,Ra;va=Aa,Ra=222,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{afterInit(){const t=this[Sa("0x4")],e=t[Sa("0x2")][Sa("0x0")](Sa("0x7"));t.plugins[Sa("0x3")](Sa("0x5"))&&(e.enableCommand(Sa("0x8")),e[Sa("0x6")](Sa("0x1")))}}const La=["TrackChangesEditing","requires","has","toggleTableCaption","afterInit","editor"];var Na,wa;Na=La,wa=310,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("0x0")](){const t=this[Ma("0x1")];t.plugins[Ma("0x4")]("TableCaptionEditing")&&t.plugins.get(Ma("0x2")).enableCommand(Ma("0x5"))}}const Fa=["TrackChangesEditing","config","toUpperCase","selection","_getTranslationKeyForListStyle","listStart","ELEMENT_","getAttribute","expandListBlocksToCompleteList","get","format","listType","afterInit","handleListReversedCommand","from","numbered","handleDescriptions","getListTypeFromListStyleType","_getSuggestionBlocksForListStyle","DocumentListPropertiesEditing","startIndex","DocumentListPropertiesUtils","enableCommand","locale","model","plugins","*Change to:* %0","bind","DocumentListUtils","editor","commandName","isFirstBlockOfListItem","registerDescriptionCallback","markMultiRangeBlockFormat","getSelectedBlocks","commandParams","*Format:* set order to regular","push","isListItemBlock","reversed","listReversed","change","has","type","filter","handleListStartCommand"];var Pa,Da;Pa=Fa,Da=272,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0x10")](){if(!this[Ba("0x21")][Ba("0x1d")][Ba("0x0")](Ba("0x17")))return;const t=this[Ba("0x21")][Ba("0x5")][Ba("0xd")]("list.properties"),e=this.editor[Ba("0x1d")][Ba("0xd")]("TrackChangesEditing");t.styles&&e[Ba("0x1a")]("listStyle",this.handleListStyleCommand.bind(this)),t[Ba("0x2b")]&&e[Ba("0x1a")](Ba("0x2c"),this[Ba("0x11")][Ba("0x1f")](this)),t[Ba("0x18")]&&e[Ba("0x1a")]("listStart",this[Ba("0x3")][Ba("0x1f")](this)),e._descriptionFactory[Ba("0x24")](this.handleDescriptions[Ba("0x1f")](this))}handleListStyleCommand(t,e={}){const n=this[Ba("0x21")][Ba("0x1d")][Ba("0xd")](Ba("0x4")),o=this[Ba("0x16")]();this[Ba("0x21")].model[Ba("0x2d")]((()=>{n[Ba("0x25")](o,{commandName:"listStyle",commandParams:[{type:e[Ba("0x1")]}],formatGroupId:"listStyle"})}))}[Ba("0x11")](t,e={}){const n=this.editor[Ba("0x1d")][Ba("0xd")](Ba("0x4")),o=this[Ba("0x21")][Ba("0x1d")].get(Ba("0x20")),s=this._getSuggestionBlocks((t=>o[Ba("0x2a")](t)&&"numbered"===t[Ba("0xb")]("listType")));null!==s&&this[Ba("0x21")][Ba("0x1c")][Ba("0x2d")]((()=>{n[Ba("0x25")](s,{commandName:Ba("0x2c"),commandParams:[{reversed:e[Ba("0x2b")]}],formatGroupId:Ba("0x2c")})}))}handleListStartCommand(t,e={}){const n=this[Ba("0x21")][Ba("0x1d")][Ba("0xd")](Ba("0x4")),o=this[Ba("0x21")].plugins[Ba("0xd")]("DocumentListUtils"),s=this._getSuggestionBlocks((t=>o[Ba("0x2a")](t)&&Ba("0x13")===t[Ba("0xb")](Ba("0xf"))));null!==s&&this.editor[Ba("0x1c")].change((()=>{n[Ba("0x25")](s,{commandName:Ba("0x9"),commandParams:[{startIndex:e[Ba("0x18")]}],formatGroupId:Ba("0x9")})}))}[Ba("0x14")](t){const e=this[Ba("0x21")][Ba("0x1b")],{data:n}=t;if(!n)return;let o,s;switch(n[Ba("0x22")]){case"listStyle":o=Ba("0x1e"),s={type:Ba("0xe"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0].type)))};break;case Ba("0x2c"):o=n[Ba("0x27")][0][Ba("0x2b")]?"*Format:* set order to reversed":Ba("0x28"),s={type:Ba("0xe"),content:Yo(e,o)};break;case Ba("0x9"):o="*Format:* set start index to %0",s={type:Ba("0xe"),content:Yo(e,o,n[Ba("0x27")][0].startIndex)}}return s}[Ba("0x16")](){const t=this.editor[Ba("0x1d")].get("DocumentListUtils");let e=Array[Ba("0x12")](this[Ba("0x21")][Ba("0x1c")].document[Ba("0x7")][Ba("0x26")]());return e[Ba("0x29")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[Ba("0x21")][Ba("0x1d")][Ba("0xd")](Ba("0x20"));let n=Array.from(this[Ba("0x21")].model.document.selection[Ba("0x26")]())[Ba("0x2")](t);if(!n.length)return null;n=e[Ba("0xc")](n);const o=[];for(const t of n)e[Ba("0x23")](t)&&o[Ba("0x29")](t);return o}[Ba("0x8")](t){return Ba("0xa")+this[Ba("0x21")][Ba("0x1d")][Ba("0xd")](Ba("0x19"))[Ba("0x15")](t).toUpperCase()+"_LIST_"+t[Ba("0x6")]().replace(/-/g,"_")}}const Ua=["registerCustomCallback","TableCellPropertiesEditing","plugins","join","TrackChangesTableProperties","*Format:* change table cell properties","subType","formatBlock","handleSuggestionDescription","editor","getSelectionAffectedTableCells","_getSuggestion","_handlePropertyChange","getContainedElement","TablePropertiesEditing","_suggestionFactory","TrackChangesEditing","tableCellBackgroundColor","registerDescriptionCallback","tableCellHeight","tableBorderStyle","change","pluginName","getAttribute","tableHeight","*Format:* change table properties","handleDiscardAction","getSuggestionCallback","removeAttribute","nodeAfter","getFirstPosition","get","table","tableCellBorderColor","enableCommand","tableCellPadding","has","findAncestor","document","data","markBlockFormat","model","tableCellProperties","accept","tableWidth","tableBorderWidth","format","afterInit","selection","tableCellHorizontalAlignment","tableCellWidth","getSuggestions","locale","tableProperties","discard","TableUtils"];var Ga,Ha;Ga=Ua,Ha=327,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("0x6")]=["tableBorderColor",za("0x1d"),za("0x36"),"tableAlignment",za("0x35"),za("0x21"),"tableBackgroundColor"],this.tableCellProperties=[za("0x2a"),"tableCellBorderStyle","tableCellBorderWidth",za("0x2c"),za("0x3"),za("0x1c"),za("0x1a"),za("0x2"),"tableCellVerticalAlignment"]}static get[za("0x1f")](){return za("0xd")}[za("0x0")](){const t=this[za("0x12")].plugins[za("0x28")]("TrackChangesEditing");if(this[za("0x12")][za("0xb")][za("0x2d")](za("0x17"))){for(const e of this.tableProperties)t[za("0x2b")](e,((t,n)=>{const o=this[za("0x12")][za("0x32")].document[za("0x1")][za("0x27")]()[za("0x2e")](za("0x29"));this[za("0x15")](e,[o],this.tableProperties,za("0x6"),t,n)}));t[za("0x18")].registerCustomCallback(za("0x10"),za("0x6"),za("0x34"),t[za("0x18")][za("0x24")]("formatBlock",null,"discard")),t[za("0x18")][za("0x9")](za("0x10"),za("0x6"),"discard",((t,e)=>this[za("0x23")](this[za("0x6")],t,e))),t._suggestionFactory[za("0x9")](za("0x10"),"tableProperties",za("0xc"),(()=>!1))}if(this[za("0x12")][za("0xb")][za("0x2d")](za("0xa"))){for(const e of this.tableCellProperties)t[za("0x2b")](e,((t,n)=>{const o=this[za("0x12")][za("0xb")].get(za("0x8"))[za("0x13")](this[za("0x12")][za("0x32")][za("0x2f")][za("0x1")]);this._handlePropertyChange(e,o,this[za("0x33")],za("0x33"),t,n)}));t._suggestionFactory.registerCustomCallback("formatBlock",za("0x33"),"accept",t[za("0x18")].getSuggestionCallback(za("0x10"),null,za("0x7"))),t._suggestionFactory[za("0x9")](za("0x10"),za("0x33"),za("0x7"),((t,e)=>this[za("0x23")](this[za("0x33")],t,e))),t[za("0x18")][za("0x9")](za("0x10"),za("0x33"),za("0xc"),(()=>!1))}t._descriptionFactory[za("0x1b")]((t=>this.handleSuggestionDescription(t)))}[za("0x15")](t,e,n,o,s,r){const i=this[za("0x12")][za("0xb")][za("0x28")]("TrackChangesEditing");this.editor.model.enqueueChange(r.batch,(()=>{for(const t of e)if(this[za("0x14")](t,o))s(r);else{const e={};for(const o of n){const n=t[za("0x20")](o);void 0!==n&&(e[o]=n)}s(r),i[za("0x31")](t,{commandParams:[e]},[],o)}}))}[za("0x23")](t,e,n){const o=e[0].start[za("0x26")],s=n.commandParams[0];this[za("0x12")][za("0x32")][za("0x1e")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[za("0x25")](n,o)}))}[za("0x11")](t){if(t[za("0x30")])switch(t[za("0xf")]){case za("0x6"):return{type:za("0x37"),content:Yo(this[za("0x12")].locale,za("0x22"))};case"tableCellProperties":return{type:"format",content:Yo(this.editor[za("0x5")],za("0xe"))}}}[za("0x14")](t,e){const n=this[za("0x12")].plugins[za("0x28")](za("0x19"));for(const o of n[za("0x4")]({skipNotAttached:!0})){const n=o[za("0x16")]();if(o[za("0xf")]===e&&n===t)return o}return null}}const Va=["formatBlock:chain","length","ck-suggestion-marker","range","_createSuggestion","createSelection","markInlineFormat","addRange","always","isCollapsed","markerToData","lowest","buildSuggestion","some","requires","insertion","model","trackChanges.mergeNestedSuggestions","substr","rootName","item","formatInline:accept","high","mapper","parent","isMultiRange","editingDowncast","containsItem","trackChanges","CommentsRepository","size","element","isBefore","detach","consume","formatInline:chain","$marker","ready","deletion:accept","return","listenTo","getMultiRangeId","hasComments","execute","deletion:chain","addSuggestionData","containsRange","_splitMarkerName","toJSON","registerPostFixer","getFirstMarker","fromCharCode","getItems","getAttribute","filter","_setSuggestionRange","push","activeMarkers","ck-suggestion-marker-","_adapter","getUser","_suggestions","originalSuggestionId","suggestionLoaded","collaboration.channelId","head","stopListening","commentThread","rejected","removeMarker","isAtEnd","elementToElement","adapter","init","formatBlock:","oldRange","markMultiRangeInsertion","map","editing","highest","previous","_enabledCommands","_customCallbacks","markerNameToElements","markDeletion","multi","value","add","getAllAdjacentSuggestions","_defaultCallbacks","_addThreadToSuggestion","isLimit","consumable","suggestionChanged","setTo","low","$textProxy","acceptAllSuggestions","deletion:join","dataDowncast","clear","getCustomProperty","_breakSuggestionMarker","unbindElementFromMarkerName","update:suggestion","assign","@external","insert","includes","removeComment","writer","removeMarkers","type","addUser","accepted","Users","acceptSuggestion","getRanges","getFirstRange","suggestion","_registerDefaultCallbacks","PENDING_ACTION_SUGGESTION","commands","addMarkerName","locale","isIntersectingWithRange","isDocumentOperation","trackChanges.trackFormatChanges","before","deletion","_setSuggestionData","track-changes-adapter-already-set","deleteContent","author","markBlockFormat","name","getDifference","discardSelectedSuggestions","enableReadOnlyMode","showSuggestionHighlights","_saved","backward","_onDiscard","_model","getIntersection","createRangeIn","_isDataLoaded","skipNestingCheck","markerName","insertion:discard","track-changes-suggestion-data-mismatch","updateMarker","_updateSuggestionData","toViewElement","removeMarker:suggestion:formatBlock","values","keys","normal","getAncestors","marker-count","then","selection","fire","trackChangesCommand","suggestionUnloaded","subType","end","get","_getAuthorFromId","isInContent","hasSuggestion","removed","_joinSuggestions","addMarker:suggestion:formatBlock","_suggestionState","removeClass","nodeAfter","isArray","setSelection","formatInline:","splice","_rangeIsInLocalUserInsertion","getMarkers","authorName","containerElement","isOwn","notReady","after","creator","conversion","getSuggestionCallback","stop","data","addClass","_refreshSuggestionsChain","open","isUndo","forward","getSuggestion","root","from","isRemovable","isInsideObject","insertion:chain","define","_findSuggestions","getCommentThread","suggestion-type","PendingActions","splitPosition","isNextTo","isObject","_cutOutSuggestionMarker","suggestion:","options","getChanges","updateSuggestion","deletion:discard","getSuggestions","nodeBefore","upcast","containsRangeInObject","elementEnd","accept","has","next","getShiftedBy","_removeSuggestion","ck-suggestion-marker-formatBlock","insertion:accept","batch","delete","insertContent","addMarker","createPositionAt","discardSuggestion","insertion:","markMultiRangeBlockFormat","schema","createElement","split","isAfter","clone","multipleBlocks","formatBlock:accept","attributes","config","change","elementStart","_trackFormatChanges","for","track-changes-adapter-missing-getsuggestion","_getSuggestionData","markers","start","$graveyard","formatBlock:discard","sort","_editor","default","formatBlock","_suggestionFactory","markerToHighlight","position","refresh","editor","_addSuggestionMarker","getChangedMarkers","createPositionBefore","chain","differ","_checkSuggestionCorrectness","formatGroupId","howMany","ck-suggestion-marker--active","set","remove","enableCommand","_getExternalAuthor","containsPosition","fetchCommentThread","getRange","acceptSelectedSuggestions","addSuggestion","getNearestSelectionRange","unbind","data-suggestion","discardAllSuggestions","isBlock","bindElementToMarker","every","move","formatInline:join","tablePasteChainId","track-changes-command-not-found","markerReady","isAtStart","discard","newRange","formatInline","addCommentThread","_isForcedDefaultExecutionBlock","applyOperation","track-changes-suggestion-not-found","createRange","external:","forceDefaultExecution","createdAt","isSelectable","dataReady","isEqual","plugins","document","deletion:","hasCommentThread","markInsertion","resolve","_commentsRepository","_mergeNestedSuggestions","join","_joinWithAdjacentSuggestions"];var Ka,qa;Ka=Va,qa=407,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("0xf9")](){return[Xa("0x108"),r.Users,t.PendingActions,cs,ms,Rs,ws,Bs,zs,$s,er,ir,ja,ur,pr,yr,Sr,Fr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,wi,ji,Wi,$i,tx,rx,dx,px,Cx,Sx,Mx,Bx,Wx,$x,Oa,na,ca,Ea,Wa,ma,ka,Ia]}static get pluginName(){return"TrackChangesEditing"}constructor(t){function e(t){return t[Xa("0x138")]((t=>String[Xa("0x11e")](t)))[Xa("0xe9")]("")}super(t),this[Xa("0xbd")](Xa("0x124"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[Xa("0x39")][Xa("0xa1")]((()=>{for(const e of[...s,...o])this[Xa("0x39")][Xa("0xa7")].has(e)&&t[Xa("0x139")].reconvertMarker(e)}))})),this._descriptionFactory=new ss(this[Xa("0xb3")].model.schema,this.editor.locale),this[Xa("0x126")]=null,this[Xa("0xaf")]=new Ja(this[Xa("0xb3")]),this[Xa("0x128")]=new Map,this[Xa("0xe7")]=t[Xa("0xe1")][Xa("0x51")](Xa("0x108")),this[Xa("0x13c")]=new Set,this[Xa("0x39")]=this[Xa("0xb3")][Xa("0xfb")],this[Xa("0x58")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[Xa("0xa0")][Xa("0x76")](Xa("0x29"),Xa("0xad")),this[Xa("0xa3")]=t[Xa("0xa0")][Xa("0x51")](Xa("0x29")),t[Xa("0xa0")][Xa("0x76")](Xa("0xfc"),!0),this._mergeNestedSuggestions=t[Xa("0xa0")][Xa("0x51")](Xa("0xfc")),this[Xa("0x4d")]=new u(t,this[Xa("0x13c")]),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,52])}[Xa("0x134")](){const t=this.editor;t[Xa("0x67")][Xa("0xa4")](Xa("0x105"))[Xa("0xb0")]({model:Xa("0x21"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[Xa("0x3e")]),o=[Xa("0xed"),Xa("0x125")+n];let s=3e3;return this[Xa("0x124")][Xa("0x16")](t[Xa("0x3e")])&&(o[Xa("0x123")](Xa("0xbc")),s=3010),Xa("0x2b")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Xa("0x67")][Xa("0xa4")](Xa("0xd"))[Xa("0x1")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o.options.showSuggestionHighlights)return;const s=n[Xa("0xff")];if(!s)return;const r=o.mapper[Xa("0x43")](s);t[Xa("0xfb")][Xa("0x98")][Xa("0x7d")](s)&&r&&!r.getCustomProperty("widget")&&r.is(Xa("0x62"))&&(0,x.toWidget)(r,o[Xa("0x18")])}),{priority:Xa("0x101")})})),t.conversion[Xa("0xa4")]("dataDowncast").markerToHighlight({model:Xa("0x21"),view:(t,e)=>{if(!e[Xa("0x80")][Xa("0x35")])return null;const{type:n}=this[Xa("0x11a")](t[Xa("0x3e")]);return{classes:[Xa("0xed"),Xa("0x125")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Xa("0xff")])return;if(o[Xa("0xff")].is(Xa("0x4b")))return void s[Xa("0x6")].consume(o.item,n[Xa("0x31")]);const r=s[Xa("0x102")][Xa("0x43")](o[Xa("0xff")]);if(!o[Xa("0xff")].is(Xa("0x10a"))||!t[Xa("0xfb")][Xa("0x98")][Xa("0xca")](o[Xa("0xff")])||r.getCustomProperty("addHighlight"))return;const{id:i}=this[Xa("0x11a")](o[Xa("0x3e")]);s[Xa("0x18")].addClass([Xa("0xed"),Xa("0x8e")],r),s[Xa("0x18")].setAttribute(Xa("0xc8"),i,r),s[Xa("0x102")][Xa("0xcb")](r,o.markerName),e&&(this[Xa("0x124")][Xa("0x16")](o[Xa("0x3e")])?s[Xa("0x18")][Xa("0x6b")](Xa("0xbc"),r):s[Xa("0x18")][Xa("0x59")]("ck-suggestion-marker--active",r));for(const e of t.model[Xa("0x3b")](o.item)[Xa("0x11f")]())s[Xa("0x6")][Xa("0x10d")](e,n.name);s[Xa("0x6")].consume(o[Xa("0xff")],n[Xa("0x31")])};t[Xa("0x67")].for(Xa("0xd"))[Xa("0x1")]((t=>{t.on(Xa("0x57"),((t,e,o)=>{o.options[Xa("0x35")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Xa("0x13a")})})),t[Xa("0x67")][Xa("0xa4")]("dataDowncast")[Xa("0xf5")]({model:Xa("0x21"),view:(t,e)=>e.options.showSuggestionHighlights?null:{group:"suggestion",name:t[Xa("0xfd")](11)}}),t[Xa("0x67")].for(Xa("0x86"))[Xa("0x132")]({view:{name:Xa("0x21"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Xa("0x7f")+t.getAttribute(Xa("0x79"))+":"+t[Xa("0x120")]("id");return t[Xa("0x120")](Xa("0x49"))&&(n+=":"+t[Xa("0x120")](Xa("0x49"))),e[Xa("0x99")](Xa("0x10f"),{"data-name":n})}}),t[Xa("0x67")][Xa("0xa4")](Xa("0x86")).dataToMarker({view:Xa("0x21")}),t[Xa("0x67")][Xa("0xa4")](Xa("0x105")).add((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:"high"})})),t.conversion[Xa("0xa4")](Xa("0x105"))[Xa("0x1")]((t=>{t.on(Xa("0x44"),((t,e,n)=>{const o=n[Xa("0x102")][Xa("0x13e")](e.markerName);if(o)for(const t of o)t[Xa("0xf")]("addHighlight")||(n[Xa("0x18")][Xa("0x59")]([Xa("0xed"),"ck-suggestion-marker-formatBlock",Xa("0xbc")],t),n[Xa("0x18")].removeAttribute(Xa("0xc8"),t),n[Xa("0x102")][Xa("0x11")](t,e[Xa("0x3e")]))}),{priority:Xa("0x101")})})),t.model[Xa("0xe2")][Xa("0x11c")]((e=>{let n=!1;const o=Array.from(t[Xa("0xfb")][Xa("0xe2")][Xa("0xb8")].getChangedMarkers()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0x11a")](x);if(Xa("0x21")!==o)continue;const d=this._suggestions[Xa("0x51")](l);if(null!=a[Xa("0xd4")])if(Xa("0xd5")==c&&(n=n||Ya(a.newRange,x,e,t.model.schema)),a.newRange[Xa("0xf4")]||Xa("0xa9")==a.newRange[Xa("0x71")][Xa("0xfe")]||Xa("0xae")==c&&!ec(a.newRange)||Xa("0x2b")==c&&(Za(i=a.newRange)||(r=i)[Xa("0xa8")][Xa("0x103")]==r.end[Xa("0x85")]&&r[Xa("0xa8")][Xa("0x131")]))e[Xa("0x130")](x),n=!0;else{if(!d||!d[Xa("0x53")])continue;s[Xa("0x1")](d)}}var r,i;return s[Xa("0x109")]>0&&(n=!!this[Xa("0xea")](s)||n),n})),t[Xa("0xfb")][Xa("0xe2")].registerPostFixer((e=>{let n=!1;for(const o of t.model.document.differ[Xa("0x81")]()){if(Xa("0x15")!=o[Xa("0x1a")])continue;const s=o[Xa("0xb1")][Xa("0x8c")](o[Xa("0xec")]);if(s.isAtEnd)for(const r of this._suggestions[Xa("0x45")]()){if(r[Xa("0x104")]||!r[Xa("0x53")])continue;if("formatBlock"!=r.type)continue;const i=r[Xa("0x20")]();if(i[Xa("0xa8")][Xa("0x103")]!=i.end[Xa("0x103")]&&i[Xa("0x50")].isEqual(o.position)){const o=t[Xa("0xfb")].createRange(i[Xa("0xa8")],s);e[Xa("0x41")](r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[Xa("0xfb")][Xa("0xa7")].on(Xa("0x12"),((t,e,n)=>{if(null==n){const{id:t}=this[Xa("0x11a")](e[Xa("0x31")]),n=this._suggestions[Xa("0x51")](t);n&&n[Xa("0x25")](e.name)}})),t[Xa("0xfb")][Xa("0xe2")].on("change:data",(()=>{const e=Array.from(t[Xa("0xfb")][Xa("0xe2")][Xa("0xb8")][Xa("0xb5")]()).filter((t=>"suggestion"===this[Xa("0x11a")](t[Xa("0x31")]).group));if(0===e[Xa("0xec")])return;e[Xa("0xab")](((t,e)=>{const n=t[Xa("0x6a")][Xa("0x136")],o=e[Xa("0x6a")][Xa("0x136")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Xa("0xa8")].isBefore(o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0x11a")](t);if(null===s[Xa("0x136")]){const e=this._handleNewSuggestionMarker(t);o[Xa("0x1")](e)}else{const t=this._suggestions[Xa("0x51")](e);null!==s[Xa("0xd4")]||t[Xa("0x53")]?(n[Xa("0x1")](t[Xa("0x12c")]),o.add(t)):this[Xa("0x8d")](t)}}o[Xa("0x109")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[Xa("0x4c")](Xa("0x7"),t)})),t[Xa("0xfb")].on(Xa("0xd8"),((e,n)=>{const o=n[0];if(!this[Xa("0x128")][Xa("0x109")])return;if(!o[Xa("0x28")])return;if(o[Xa("0x90")][Xa("0x6e")]||!o.batch.isLocal)return;let s,r;switch(o.type){case Xa("0x15"):s=t[Xa("0xfb")][Xa("0x94")](o[Xa("0xb1")]),r=s[Xa("0x8c")](o[Xa("0xbb")]);break;case Xa("0x9a"):s=t[Xa("0xfb")].createPositionAt(o[Xa("0x7b")]),r=t[Xa("0xfb")][Xa("0x94")](o.moveTargetPosition);break;case Xa("0xcd"):s=t[Xa("0xfb")][Xa("0x94")](o.targetPosition),r=s[Xa("0x8c")](o[Xa("0xbb")]);break;default:return}const i=t[Xa("0xfb")][Xa("0xda")](s,r);t[Xa("0xfb")][Xa("0xa1")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t[Xa("0x104")])continue;if(Xa("0xd5")==t[Xa("0x1a")])continue;const n=t[Xa("0x6a")]&&t[Xa("0x6a")][Xa("0x9d")];(Xa("0xae")!=t[Xa("0x1a")]||Xa("0x9a")==o[Xa("0x1a")]&&!n)&&(e.containsRangeInObject||Xa("0xfa")==t[Xa("0x1a")]&&e.isOwn||t.getFirstRange()[Xa("0x119")](i)&&this[Xa("0x10")](t,s,r))}}))}),{priority:Xa("0xf6")}),t[Xa("0xfb")].on(Xa("0x2e"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Xa("0xdc")])return;if(this[Xa("0xd7")])return;if(!this[Xa("0x4d")][Xa("0x0")])return;if(o[Xa("0xf4")])return;const r=t.model[Xa("0x98")],{start:i,end:x}=o.getFirstRange(),a=i[Xa("0x5a")]&&r[Xa("0x5")](i.nodeAfter)?null:r[Xa("0xc6")](i,Xa("0x6f")),c=x.nodeBefore&&r[Xa("0x5")](x[Xa("0x85")])?null:r[Xa("0xc6")](x,Xa("0x37")),l=t[Xa("0xfb")][Xa("0xda")](a?a[Xa("0xa8")]:i,c?c[Xa("0x50")]:x);t[Xa("0xfb")][Xa("0xa1")]((e=>{this[Xa("0x13f")](l);const n=t[Xa("0xfb")].schema.getNearestSelectionRange(l[Xa("0xa8")]);o.is("documentSelection")?e[Xa("0x5c")](n):o[Xa("0x8")](n)})),e.stop()}),{priority:e.priorities[Xa("0x47")]+10}),t.model.on(Xa("0x92"),((e,n)=>{const o=n[n[Xa("0xec")]-1];o&&o[Xa("0xdc")]||this[Xa("0xd7")]||this[Xa("0x4d")][Xa("0x0")]&&(t[Xa("0xfb")][Xa("0xa1")]((()=>{let o=t.model[Xa("0x92")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Xa("0x112")]=o[Xa("0x9c")]();const s=o[Xa("0x50")][Xa("0x85")],r=t[Xa("0xfb")][Xa("0x98")];s&&r.isBlock(s)&&!r.isObject(s)&&(o=t[Xa("0xfb")][Xa("0xda")](o[Xa("0xa8")],t[Xa("0xfb")][Xa("0x94")](s,Xa("0x50")))),this[Xa("0xe5")](o)})),e[Xa("0x69")]())}),{priority:"high"}),this[Xa("0xb3")][Xa("0x24")][Xa("0x1")](Xa("0x107"),this[Xa("0x4d")]),this[Xa("0xbf")](Xa("0x107"));const o=new p(t,this[Xa("0x128")]);t[Xa("0x24")][Xa("0x1")](Xa("0x1e"),o),this.enableCommand("acceptSuggestion");const s=new C(t,this[Xa("0x128")]);t[Xa("0x24")][Xa("0x1")](Xa("0x95"),s),this[Xa("0xbf")](Xa("0x95")),t[Xa("0x24")][Xa("0x1")](Xa("0xb"),new F(t,o,this[Xa("0x128")])),this[Xa("0xbf")]("acceptAllSuggestions"),t.commands[Xa("0x1")](Xa("0xc9"),new F(t,s,this._suggestions)),this[Xa("0xbf")](Xa("0xc9")),t[Xa("0x24")][Xa("0x1")](Xa("0xc4"),new U(t,o,this[Xa("0x128")])),this[Xa("0xbf")](Xa("0xc4")),t[Xa("0x24")][Xa("0x1")](Xa("0x33"),new U(t,s,this[Xa("0x128")])),this.enableCommand(Xa("0x33"));const r=t[Xa("0xe1")][Xa("0x51")](Xa("0x108"));this[Xa("0x113")](r,"addComment",((t,{threadId:e})=>{const n=this[Xa("0x128")][Xa("0x51")](e);n&&n.commentThread&&1===n[Xa("0x12e")][Xa("0xec")]&&this[Xa("0x42")](e,{hasComments:!0})}),{priority:Xa("0x9")}),this[Xa("0x113")](r,Xa("0x17"),((t,{threadId:e})=>{const n=this[Xa("0x128")][Xa("0x51")](e);n&&n.commentThread&&!n[Xa("0x12e")][Xa("0xec")]&&this[Xa("0x42")](e,{hasComments:!1})}),{priority:Xa("0x9")})}set[Xa("0x133")](t){if(this[Xa("0x126")])throw new e.CKEditorError(Xa("0x2d"),this);this[Xa("0x126")]=t}get[Xa("0x133")](){return this[Xa("0x126")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Xa("0x128")][Xa("0x45")]())t&&!e[Xa("0x53")]||n[Xa("0x123")](e);return e?n[Xa("0x138")]((t=>t[Xa("0x11b")]())):n}[Xa("0x70")](t){const n=this[Xa("0x128")].get(t);if(!n)throw new e.CKEditorError(Xa("0xd9"),this);return n}[Xa("0x54")](t){return this._suggestions[Xa("0x8a")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Xa("0x1a")][Xa("0x9a")](":"),i=this[Xa("0x128")][Xa("0x51")](n)||this[Xa("0xef")](s,r,n,e,o);if(this[Xa("0x4")](i),this[Xa("0xb9")](i,s,r||null,e),i[Xa("0xdd")]=t[Xa("0xdd")],i[Xa("0x3c")]=!0,o&&o["@external"]){const t=o[Xa("0x14")],e=this[Xa("0xc0")](t[Xa("0x61")]);i.authoredAt=t[Xa("0xdd")],i[Xa("0x2f")]=e,i.isExternal=!0}else i.authoredAt=t[Xa("0xdd")];switch(t[Xa("0x6a")]&&(i[Xa("0x6a")]=t[Xa("0x6a")]),t[Xa("0x9f")]&&(i[Xa("0x9f")]=t[Xa("0x9f")]),this[Xa("0x126")]&&this[Xa("0x126")][Xa("0xc5")]||(i[Xa("0x36")]=!0),this[Xa("0x58")][Xa("0x51")](i)){case Xa("0x64"):this[Xa("0x58")][Xa("0xbd")](i,Xa("0xdf"));break;case Xa("0xd1"):i[Xa("0x53")]?(this[Xa("0x6c")](new Set([i])),this[Xa("0xea")](new Set([i])),this[Xa("0x58")].set(i,"ready"),this[Xa("0x4c")](Xa("0x12a"),i)):this[Xa("0x58")][Xa("0xbd")](i,"removed")}return i}[Xa("0x1e")](t){this[Xa("0xdc")]((()=>{this.editor[Xa("0xfb")].change((()=>{for(const e of t[Xa("0x2")]())e[Xa("0x89")]()}))}))}discardSuggestion(t){this[Xa("0xdc")]((()=>{this.editor[Xa("0xfb")][Xa("0xa1")]((()=>{for(const e of t[Xa("0x2")]())e.discard()}))}))}enableCommand(t,n){const o=this.editor.commands[Xa("0x51")](t);if(!o)throw new e.CKEditorError(Xa("0xd0"),this,{commandName:t});this._enabledCommands[Xa("0x1")](o),n&&o.on("execute",((t,e)=>{this[Xa("0x4d")].value&&(this._isForcedDefaultExecutionBlock||e[Xa("0xec")]>0&&e[e[Xa("0xec")]-1]&&e[e[Xa("0xec")]-1][Xa("0xdc")]||(t.return=n(((...t)=>o[Xa("0x116")](...t,{forceDefaultExecution:!0})),...e),t[Xa("0x69")]()))}),{priority:Xa("0x101")})}[Xa("0xdc")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this[Xa("0xd7")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[Xa("0xe5")](t,n=null,o={}){if(t[Xa("0xf4")])return null;const s=this.editor.plugins[Xa("0x51")](Xa("0x1d")).me;for(const{suggestion:e,meta:s}of this[Xa("0x77")](t,Xa("0xfa")))if(s[Xa("0x63")]){if(!s[Xa("0x7c")]){if(s[Xa("0x87")]){if(!this[Xa("0xe8")]||!rc(e,o))continue;return e}if(rc(e,o))return e;this._breakSuggestionMarker(e,t[Xa("0xa8")],t[Xa("0x50")]);break}if(n==e[Xa("0x4f")]&&rc(e,o)){const n=e[Xa("0x20")]();return n[Xa("0xa8")][Xa("0xe0")](t[Xa("0x50")])?this._setSuggestionRange(e,this._model[Xa("0xda")](t.start,n.end)):this._setSuggestionRange(e,this._model[Xa("0xda")](n[Xa("0xa8")],t[Xa("0x50")])),e}}const r=(0,e.uid)(),i=s.id,x=n?Xa("0x96")+n:Xa("0xfa"),a=this[Xa("0x2c")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0xb4")](x,r,i,t),a}[Xa("0x137")](t,n=Xa("0x140"),o={}){const s=this[Xa("0xb3")][Xa("0xe1")][Xa("0x51")](Xa("0x1d")).me,r=this[Xa("0xaf")].getSuggestionCallback("insertion",n,Xa("0xe9"));for(const e of this[Xa("0x84")]())if(e[Xa("0x2f")].id==s.id&&Xa("0xfa")==e[Xa("0x1a")]&&e[Xa("0x4f")]==n&&rc(e,o)&&(r(e[Xa("0x1f")](),t)||r(t,e[Xa("0x1f")]()))){for(const n of t)e[Xa("0xf2")](n);return e}for(const{suggestion:e,meta:n}of this[Xa("0x77")](t,"insertion")){if(!n.isOwn)continue;if(!this[Xa("0xe8")]&&n[Xa("0x87")])continue;if(!rc(e,o))continue;let s=!0;for(const n of e.getRanges())for(const e of t)if(!n[Xa("0x119")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=Xa("0x96")+n,c=this[Xa("0x2c")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Xa("0xb4")](a,i,x,e,Zo.getMultiRangeId());return c}[Xa("0xf1")](t,n,o=null,s={}){if(o=o||tc(n),t[Xa("0xf4")])return null;if("never"===this._trackFormatChanges){const e=this[Xa("0xaf")][Xa("0x68")](Xa("0xd5"),o,Xa("0x89"));return this[Xa("0xdc")]((()=>e([t],n,s))),null}const r=this.editor[Xa("0xe1")].get("Users").me,i=[];if(Xa("0xf3")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this._findSuggestions(t,Xa("0xfa")))n.isOwn&&!n[Xa("0x74")]&&i[Xa("0x123")](...e[Xa("0x1f")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[Xa("0x123")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e][Xa("0x32")](t);n[Xa("0x5e")](e,1,...o),e+=o[Xa("0xec")]}}return n}(t,i);x[Xa("0xec")]&&this[Xa("0x39")][Xa("0xa1")]((()=>{for(const t of x){const e=this[Xa("0xaf")][Xa("0x68")](Xa("0xd5"),o,"accept");this[Xa("0xdc")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Xa("0xa8")],a=t[Xa("0x50")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,"formatInline")){if(!n[Xa("0x63")])continue;if(e[Xa("0x4f")]!=o)continue;if(!rc(e,s))continue;const r=e[Xa("0x20")]();if(r[Xa("0x119")](t,!0))return null;x=x[Xa("0x10b")](r.start)?x:r[Xa("0xa8")],a=a.isAfter(r.end)?a:r[Xa("0x50")],i?r[Xa("0xa8")][Xa("0x10b")](i.getFirstRange().start)?(i[Xa("0x19")](),i=e):e.removeMarkers():i=e}const c=this[Xa("0x39")][Xa("0xda")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[Xa("0x2c")]({id:t,type:Xa("0x5d")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Xa("0xb4")](Xa("0x5d")+o,t,i,c)}}return null}[Xa("0x30")](t,n,o=[],s=null,r={}){n[Xa("0xba")]||(n[Xa("0xba")]=n.commandName),n[Xa("0x9d")]=t.is(Xa("0xee")),s=s||tc(n);const i=o.map((t=>nc(t,this[Xa("0x39")]))),x=t.is(Xa("0xee"))?t:nc(t,this[Xa("0x39")]);if("never"===this[Xa("0xa3")]){const t=this._suggestionFactory[Xa("0x68")](Xa("0xae"),s,Xa("0x89"));return this[Xa("0xdc")]((()=>t([x],n,r))),null}i[Xa("0x123")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&"always"!==this._trackFormatChanges){const t=this._suggestionFactory[Xa("0x68")](Xa("0xae"),s,Xa("0x89"));return this[Xa("0xdc")]((()=>t([x],n,r))),null}let c=null,l=x[Xa("0xa8")],d=x[Xa("0x50")];for(const{suggestion:t,meta:e}of this[Xa("0x77")](x,Xa("0xae"))){if(!e[Xa("0x63")])continue;if(e.isNextTo||e[Xa("0x87")]||e[Xa("0x74")])continue;if(t[Xa("0x6a")][Xa("0xba")]!=n[Xa("0xba")])continue;if(!rc(t,r))continue;const o=t[Xa("0x20")]();if(t[Xa("0x4f")]==s){if(o.containsRange(x,!0))return null;l=l[Xa("0x10b")](o.start)?l:o[Xa("0xa8")],d=d.isAfter(o.end)?d:o[Xa("0x50")],c?o[Xa("0xa8")][Xa("0x10b")](c[Xa("0x20")]()[Xa("0xa8")])?(c[Xa("0x19")](),c=t):t[Xa("0x19")]():c=t}else{const e=x[Xa("0x3a")](o);this[Xa("0x7e")](t,e)}}const u=this[Xa("0xb3")][Xa("0xe1")][Xa("0x51")]("Users").me,g=(0,e.uid)(),m=u.id;if(c)return this[Xa("0x122")](c,this._model[Xa("0xda")](l,d)),c;{const t=this[Xa("0x2c")]({id:g,type:Xa("0x135")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Xa("0xb4")](Xa("0x135")+s,g,m,this[Xa("0x39")][Xa("0xda")](l,d)),t}}[Xa("0x97")](t,n,o=[],s=null,r={}){n[Xa("0xba")]||(n[Xa("0xba")]=n.commandName);const i=t[0];n[Xa("0x9d")]=i.is("range"),s=s||tc(n);const x=o[Xa("0x138")]((t=>nc(t,this._model))),a=i.is("range")?t:t[Xa("0x138")]((t=>nc(t,this._model)));if("never"===this[Xa("0xa3")]){const t=this[Xa("0xaf")][Xa("0x68")](Xa("0xae"),s,"accept");return this.forceDefaultExecution((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[Xa("0x5f")](t)){c=!1;break}if(c&&"always"!==this[Xa("0xa3")]){const t=this[Xa("0xaf")][Xa("0x68")]("formatBlock",s,Xa("0x89"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[Xa("0xb3")][Xa("0xe1")][Xa("0x51")](Xa("0x1d")).me;for(const t of this[Xa("0x84")]()){if(t[Xa("0x2f")].id!=l.id)continue;if("formatBlock"!=t[Xa("0x1a")]||t[Xa("0x6a")][Xa("0xba")]!=n[Xa("0xba")])continue;if(!rc(t,r))continue;const e=t[Xa("0x4f")]==s;for(let n=0;n<a[Xa("0xec")];n++){const o=a[n];for(const s of t[Xa("0x60")]()){const r=s[Xa("0xc3")]();if(o[Xa("0xe0")](r)){e?(a.splice(n,1),n--):t.removeMarker(s[Xa("0x31")]);break}}}}if(0==a[Xa("0xec")])return null;const d=this[Xa("0xaf")][Xa("0x68")](Xa("0xae"),s,"join");for(const t of this[Xa("0x84")]())if(t[Xa("0x2f")].id==l.id&&"formatBlock"==t[Xa("0x1a")]&&t.data[Xa("0xba")]==n[Xa("0xba")]&&t.subType==s&&rc(t,r)&&(d(t.getRanges(),a)||d(a,t[Xa("0x1f")]()))){for(const e of a)t[Xa("0xf2")](e);return t}const u=(0,e.uid)(),g=l.id,m=Xa("0x135")+s,f=this[Xa("0x2c")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Xa("0xb4")](m,u,g,t,Zo[Xa("0x114")]());return f}[Xa("0x13f")](t,n=null,o={}){if(t[Xa("0xf4")])return null;const s=this.editor[Xa("0xe1")][Xa("0x51")](Xa("0x1d")).me,r=new i.LiveRange(t.start,t.end);for(const{suggestion:t,meta:e}of this[Xa("0x77")](r,"insertion"))if(e[Xa("0x63")]&&!e[Xa("0x7c")])if(t[Xa("0x104")]){const e=t[Xa("0x1f")]()[Xa("0x121")]((t=>"$graveyard"!=t[Xa("0x71")][Xa("0xfe")]));if(e[Xa("0xcc")]((t=>r[Xa("0x119")](t,!0)))&&t[Xa("0xd3")](),e.some((t=>t[Xa("0x119")](r,!0)))){const t=this[Xa("0xaf")].getSuggestionCallback(Xa("0x2b"),n,Xa("0x89"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[Xa("0x3a")](t[Xa("0x20")]());null!==e&&t[Xa("0x38")]([e],null,o)}if(r[Xa("0x10c")](),r[Xa("0xf4")]||"$graveyard"==r.root[Xa("0xfe")])return null;let x=null,a=r[Xa("0xa8")],c=r[Xa("0x50")];const l=this[Xa("0x77")](r,Xa("0x2b"));for(const{suggestion:t,meta:e}of l){const n=this[Xa("0x39")][Xa("0xda")](a,c);if(e[Xa("0x63")]&&(this[Xa("0xe8")]||!e[Xa("0x87")]&&!e[Xa("0x74")]))if(t[Xa("0x104")]){if(!rc(t,o))continue;let e=!0;for(const o of t[Xa("0x1f")]()){if(o[Xa("0x119")](n,!0))return t;n.containsRange(o)||(e=!1)}e&&t[Xa("0xd3")]()}else{const e=t[Xa("0x20")]();if(e[Xa("0x119")](n,!0))return t;if(!rc(t,o)){n[Xa("0x119")](e)?t.removeMarkers():e[Xa("0xc1")](a)?a=e[Xa("0x50")]:e[Xa("0xc1")](c)&&(c=e[Xa("0xa8")]);continue}a=a[Xa("0x10b")](e[Xa("0xa8")])?a:e.start,c=c[Xa("0x9b")](e[Xa("0x50")])?c:e.end,o=Object[Xa("0x13")]({},t[Xa("0x9f")]),x?e[Xa("0xa8")][Xa("0x10b")](x.getFirstRange()[Xa("0xa8")])?(x[Xa("0x19")](),x=t):t[Xa("0x19")]():x=t}}if(x)return this[Xa("0x122")](x,this._model.createRange(a,c)),x;{const t=(0,e.uid)(),r=this[Xa("0x39")].createRange(a,c),i=s.id,x=n?Xa("0xe3")+n:Xa("0x2b"),l=this[Xa("0x2c")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0xb4")](x,t,i,r),l}}markMultiRangeDeletion(t,n="multi",o={}){const s=this.editor[Xa("0xe1")][Xa("0x51")](Xa("0x1d")).me,r=t.map((t=>new i.LiveRange(t[Xa("0xa8")],t.end))),x=new Set;for(const{suggestion:t,meta:e}of this[Xa("0x77")](r,Xa("0xfa")))e[Xa("0x63")]&&!e[Xa("0x7c")]&&x[Xa("0x1")](t);for(const e of x)if(e[Xa("0x104")]){const s=e[Xa("0x1f")]();if((!e[Xa("0x9f")]||!e[Xa("0x9f")][Xa("0x3d")])&&s[Xa("0xcc")]((t=>r.some((e=>e[Xa("0x119")](t,!0)))))&&e[Xa("0xd3")](),r.every((t=>s[Xa("0xf8")]((e=>e.containsRange(t,!0)))))){const e=this._suggestionFactory[Xa("0x68")](Xa("0x2b"),n,Xa("0x89"));return this[Xa("0xdc")]((()=>e(t,null,o))),null}}else{const t=e[Xa("0x20")]();if(r.some((e=>e.containsRange(t,!0)))&&e[Xa("0xd3")](),r.every((e=>t[Xa("0x119")](e,!0)))){const t=this[Xa("0xaf")].getSuggestionCallback(Xa("0x2b"),n,"accept");return this[Xa("0xdc")]((()=>t(r,null,o))),null}}const a=this[Xa("0xaf")].getSuggestionCallback(Xa("0x2b"),n,"join");let c=null;for(const t of this.getSuggestions())if(t[Xa("0x2f")].id==s.id&&t[Xa("0x53")]&&Xa("0x2b")==t[Xa("0x1a")]&&t[Xa("0x4f")]==n&&rc(t,o)&&(a(t[Xa("0x1f")](),r)||a(r,t[Xa("0x1f")]())))if(c){if(t[Xa("0x12e")]&&t[Xa("0x12e")][Xa("0xec")])continue;for(const e of t[Xa("0x1f")]())c[Xa("0x27")](e)||c.addRange(e);t.removeMarkers()}else{c=t;for(const e of r)t[Xa("0x27")](e)||t[Xa("0xf2")](e)}if(c)return c;x[Xa("0xe")]();for(const{suggestion:t,meta:e}of this[Xa("0x77")](r,Xa("0x2b")))e.isOwn&&(this._mergeNestedSuggestions||!e[Xa("0x87")]&&!e[Xa("0x74")])&&rc(t,o)&&x[Xa("0x1")](t);for(const t of x){const e=t[Xa("0x1f")]();if((!o||!o[Xa("0x3d")])&&r[Xa("0xcc")]((t=>e.some((e=>e[Xa("0x119")](t,!0))))))return t;(!t[Xa("0x9f")]||!t[Xa("0x9f")][Xa("0x3d")])&&e[Xa("0xcc")]((t=>r.some((e=>e[Xa("0x119")](t,!0)))))&&t[Xa("0xd3")]()}const l=(0,e.uid)(),d=s.id,u=Xa("0xe3")+n,g=this[Xa("0x2c")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[Xa("0x10c")](),t[Xa("0xf4")]||"$graveyard"==t[Xa("0x71")][Xa("0xfe")]||this[Xa("0xb4")](u,l,d,t,Zo[Xa("0x114")]());return g}[Xa("0x122")](t,e){const n=t[Xa("0x11d")]();this[Xa("0x39")][Xa("0xa1")]((t=>{t[Xa("0x41")](n,{range:e})}))}[Xa("0x4")](t){const e=t.id,n=this[Xa("0xb3")].config[Xa("0x51")](Xa("0x12b"));this[Xa("0xe7")][Xa("0xe4")](e)||this._commentsRepository[Xa("0xd6")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xa("0xe7")][Xa("0x78")](e);o[Xa("0xc7")](Xa("0x73")),o[Xa("0x73")]=!1,t.commentThread=o}[Xa("0xb9")](t,n,o,s){if(t[Xa("0x1a")]!=n||t[Xa("0x4f")]!=o||t[Xa("0x66")].id!=s)throw this[Xa("0xb3")][Xa("0x34")](Xa("0x40")),new e.CKEditorError(Xa("0x40"),this)}[Xa("0x7e")](t,n){const o=t[Xa("0x20")]();if(n[Xa("0xe0")](o))t[Xa("0x19")]();else if(o[Xa("0x119")](n)){const s=this[Xa("0x39")][Xa("0x94")](n[Xa("0xa8")].nodeBefore,Xa("0x50"));this[Xa("0x122")](t,this[Xa("0x39")].createRange(o.start,s));const r=(0,e.uid)(),i=t[Xa("0x66")].id,x=t[Xa("0x1a")]+":"+t[Xa("0x4f")];this[Xa("0x2c")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t.attributes});const a=this[Xa("0x39")].createPositionAt(n[Xa("0x50")][Xa("0x103")],"after"),c=this[Xa("0x39")][Xa("0xda")](a,o[Xa("0x50")]);this[Xa("0xb4")](x,r,i,c)}else if(o.containsPosition(n.start)){const e=this[Xa("0x39")].createPositionAt(n[Xa("0xa8")][Xa("0x85")],"end");this[Xa("0x122")](t,this[Xa("0x39")][Xa("0xda")](o.start,e))}else{const e=this._model.createPositionAt(n[Xa("0x50")][Xa("0x103")],Xa("0x65"));this._setSuggestionRange(t,this[Xa("0x39")][Xa("0xda")](e,o.end))}}[Xa("0x5f")](t){for(const{suggestion:e,meta:n}of this[Xa("0x77")](t,"insertion")){if(!n[Xa("0x63")])continue;const o=e[Xa("0x1f")]();for(const e of o)if(!t[Xa("0x32")](e).length)return!0}return!1}[Xa("0x52")](t){const n=this[Xa("0xb3")].plugins[Xa("0x51")]("Users").getUser(t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[Xa("0xc0")](t){const e=this[Xa("0xb3")].plugins[Xa("0x51")](Xa("0x1d")),n=(0,r.hashObject)(Xa("0xdb")+t);return e[Xa("0x127")](n)||e[Xa("0x1b")]({id:n,name:t})}[Xa("0xef")](t,e,n,o,s){const r=this._getAuthorFromId(o),i=this[Xa("0xaf")][Xa("0xf7")](t,e,n,r,s,(t=>this[Xa("0x42")](n,{attributes:t})));return this.listenTo(i,"accept",(()=>{this[Xa("0x42")](n,{state:Xa("0x1c")})}),{priority:"high"}),this[Xa("0x113")](i,Xa("0xd3"),(()=>{this[Xa("0x42")](n,{state:Xa("0x12f")})}),{priority:Xa("0x101")}),this[Xa("0x128")][Xa("0xbd")](n,i),this[Xa("0x58")][Xa("0xbd")](i,Xa("0x64")),i}[Xa("0x11a")](t){const e=t[Xa("0x9a")](":");return{group:e[0],type:e[1],subType:e[Xa("0xec")]>=5?e[2]:null,id:e[Xa("0xec")]<5?e[2]:e[3],authorId:e[Xa("0xec")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[Xa("0x10")](t,n,o){const s=t[Xa("0x20")](),r=s[Xa("0xa8")],i=s[Xa("0x50")];this[Xa("0x122")](t,this[Xa("0x39")].createRange(r,n));const x=(0,e.uid)(),a=t[Xa("0x66")].id,c=t[Xa("0x1a")]+(t.subType?":"+t[Xa("0x4f")]:"");this[Xa("0x2c")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0x9f")],data:t.data}),"formatBlock"==t.type&&(o=this[Xa("0x39")][Xa("0xb6")](o.parent)),this[Xa("0xb4")](c,x,a,this._model[Xa("0xda")](o,i))}[Xa("0x77")](t,e=null){const n=[],o=this[Xa("0xb3")][Xa("0xe1")][Xa("0x51")](Xa("0x1d")).me;Array[Xa("0x5b")](t)||(t=[t]);for(const s of this[Xa("0x84")]()){if(!s[Xa("0x53")])continue;if(e&&s[Xa("0x1a")]!=e)continue;let r=!1;for(const e of s[Xa("0x1f")]()){for(const i of t){const t=i[Xa("0xa8")][Xa("0xe0")](e[Xa("0x50")])||i[Xa("0x50")][Xa("0xe0")](e.start);if(t||i[Xa("0x3a")](e)){const x=i[Xa("0x119")](e)&&Qa(this[Xa("0x39")][Xa("0x98")],e[Xa("0xa8")],i),a=e[Xa("0x119")](i)&&Qa(this._model[Xa("0x98")],i[Xa("0xa8")],e);n[Xa("0x123")]({suggestion:s,meta:{isOwn:o==s.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}_addSuggestionMarker(t,e,n,o,s){this[Xa("0x39")].change((r=>{let i=Xa("0x7f")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Xa("0x93")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0x8d")](t){const e=t[Xa("0x13b")],n=t.next;t[Xa("0x13b")]=null,null!=e&&(e[Xa("0x8b")]=null),t.next=null,null!=n&&(n.previous=null),Xa("0x110")==this._suggestionState.get(t)&&(this[Xa("0x58")][Xa("0xbd")](t,Xa("0x55")),this.fire(Xa("0x4e"),t,e,n))}[Xa("0x2c")](t){const n=t.id,o=this.addSuggestionData(t);if(this[Xa("0x126")]&&this[Xa("0x126")][Xa("0xc5")]){const s=this[Xa("0xb3")][Xa("0xe1")].get(Xa("0x7a")),r=o[Xa("0x115")],i=o[Xa("0x4f")]?o[Xa("0x1a")]+":"+o.subType:o[Xa("0x1a")],x=this[Xa("0xb3")][Xa("0x26")],a=s[Xa("0x1")](Yo(x,Xa("0x23"))),c={id:n,type:i,hasComments:r,data:t[Xa("0x6a")]||null,originalSuggestionId:t[Xa("0x129")]||null,attributes:o[Xa("0x9f")]};this[Xa("0x126")][Xa("0xc5")](c)[Xa("0x4a")]((t=>{o[Xa("0x36")]=!0,s[Xa("0xbe")](a),t&&t[Xa("0xdd")]&&(this._suggestions[Xa("0x51")](n)[Xa("0xdd")]=t[Xa("0xdd")])})).catch((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[Xa("0xb3")].model.enqueueChange({isUndoable:!1},(()=>{o[Xa("0xd3")]()})),o[Xa("0x12d")](),this[Xa("0x128")][Xa("0x91")](o.id),this[Xa("0x58")].delete(o),t}))}return o}[Xa("0x42")](t,e){const n=this.editor[Xa("0xe1")][Xa("0x51")]("PendingActions"),o=this[Xa("0x70")](t);if(this[Xa("0x126")]&&this[Xa("0x126")].updateSuggestion)if(o[Xa("0x36")]){const o=n.add(Yo(this.editor[Xa("0x26")],Xa("0x23")));this._adapter[Xa("0x82")](t,e).then((()=>{n[Xa("0xbe")](o)}))}else o.on("change:_saved",(()=>{this[Xa("0x42")](t,e)}))}[Xa("0xa6")](t){if(!this._adapter||!this[Xa("0x126")][Xa("0x70")])throw new e.CKEditorError(Xa("0xa5"),this);return this[Xa("0x126")][Xa("0x70")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[Xa("0x11a")](t),r=this[Xa("0x128")][Xa("0x51")](e)||this._createSuggestion(n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this._suggestionState.get(r)){case"notReady":this[Xa("0xa6")](e)[Xa("0x4a")]((t=>{let n=Promise[Xa("0xe6")]();t.hasComments&&(n=this[Xa("0xe7")][Xa("0xc2")]({channelId:this.editor[Xa("0xa0")][Xa("0x51")](Xa("0x12b")),threadId:e})),n[Xa("0x4a")]((()=>{this[Xa("0x118")](t)[Xa("0x36")]=!0}))})),this[Xa("0x58")][Xa("0xbd")](r,Xa("0xd1"));break;case Xa("0x55"):this._updateSuggestionData(e,{state:Xa("0x6d")});case Xa("0xdf"):this[Xa("0x58")][Xa("0xbd")](r,Xa("0x110")),this[Xa("0x4c")](Xa("0x12a"),r);break;case Xa("0x110"):this.fire("suggestionChanged",r)}return r.addMarkerName(t),r}[Xa("0x6c")](t){const e=Array[Xa("0x72")](t)[Xa("0x121")]((t=>!t[Xa("0x104")])),n=this.getSuggestions({skipNotAttached:!0})[Xa("0x121")]((t=>!t.isMultiRange)),o=n.filter((e=>!t.has(e))),s=new Map(n.map((t=>[t,this[Xa("0xaf")][Xa("0x68")](t[Xa("0x1a")],t[Xa("0x4f")],Xa("0xb7"))]))),r=new Map(n.map((t=>[t,t[Xa("0x20")]()]))),i=new Set,x=new Set;for(let t=0;t<e[Xa("0xec")];t++)a(e[t],e,t+1);for(let t=0;t<e[Xa("0xec")];t++)a(e[t],o,0);for(let t=0;t<e[Xa("0xec")];t++){const n=e[t];!x[Xa("0x8a")](n)&&n.previous&&(n[Xa("0x13b")][Xa("0x8b")]===n&&(n[Xa("0x13b")][Xa("0x8b")]=null),n[Xa("0x13b")]=null),!i[Xa("0x8a")](n)&&n[Xa("0x8b")]&&(n[Xa("0x8b")][Xa("0x13b")]===n&&(n[Xa("0x8b")].previous=null),n[Xa("0x8b")]=null)}function a(t,e,n){for(let o=n;o<e[Xa("0xec")];o++){const n=c(t,e[o]);n&&(n[0][Xa("0x8b")]=n[1],n[1][Xa("0x13b")]=n[0],i.add(n[0]),x[Xa("0x1")](n[1]))}}function c(t,e){if(t[Xa("0x2f")].id!==e.author.id)return null;const n=s[Xa("0x51")](t)(t,e,r[Xa("0x51")](t),r[Xa("0x51")](e));return n&&s[Xa("0x51")](e)(t,e,r[Xa("0x51")](t),r[Xa("0x51")](e))?n[1][Xa("0x12e")]&&n[1][Xa("0x12e")][Xa("0xec")]?null:n:null}}[Xa("0xea")](t){const e=Array[Xa("0x72")](t),n=this[Xa("0x84")]({skipNotAttached:!0}),o=n.filter((e=>!t[Xa("0x8a")](e))),s=new Map(e[Xa("0x138")]((t=>[t,this[Xa("0xaf")][Xa("0x68")](t.type,t[Xa("0x4f")],Xa("0xe9"))]))),r=new Map(n[Xa("0x138")]((t=>[t,t.getRanges()])));for(let t=0;t<e[Xa("0xec")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Xa("0xec")];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("0xec")];i++){const o=n[i];if(o[Xa("0x1a")]!==e[Xa("0x1a")]||o[Xa("0x2f")].id!==e[Xa("0x2f")].id||o[Xa("0x4f")]!==e[Xa("0x4f")])continue;if(!sc(e,o))continue;const x=s[Xa("0x51")](e),a=r.get(e),c=r.get(o),l=e[Xa("0x12e")]&&e.commentThread[Xa("0xec")],d=o.commentThread&&o[Xa("0x12e")][Xa("0xec")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[Xa("0x91")](e),!0;if(!d&&x(a,c))return t._joinSuggestions(e,o),r[Xa("0x91")](o),!0}return!1}}[Xa("0x56")](t,e){if(t.isMultiRange)for(const n of e[Xa("0x1f")]())t[Xa("0xf2")](n);else{const n=e[Xa("0x20")]().end;this[Xa("0x122")](t,this[Xa("0x39")].createRange(t[Xa("0x20")]()[Xa("0xa8")],n))}e.removeMarkers()}}class Ja{constructor(t){this[Xa("0xac")]=t,this[Xa("0x39")]=t[Xa("0xfb")],this[Xa("0x13d")]=new Map,this._defaultCallbacks=new Map,this[Xa("0x22")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this[Xa("0x39")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Xa("0x68")](t,e,"accept")(...n),onDiscard:(...n)=>this[Xa("0x68")](t,e,Xa("0xd3"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[Xa("0x13d")][Xa("0xbd")](s,o)}[Xa("0x68")](t,e,n){const o=t+":"+e+":"+n;return this[Xa("0x13d")].get(o)||this[Xa("0x3")].get(t+":"+n)}[Xa("0x22")](){const t=()=>!1,e=t=>{t[Xa("0xab")](((t,e)=>t[Xa("0xa8")].isBefore(e[Xa("0xa8")])?1:-1)),this[Xa("0x39")][Xa("0xa1")]((e=>{for(const n of t){let t;t=n[Xa("0x50")][Xa("0x131")]&&n[Xa("0x50")].parent==n[Xa("0xa8")].nodeAfter?e[Xa("0xf0")](n[Xa("0xa8")][Xa("0x5a")],"on"):e[Xa("0xf0")](n),this[Xa("0x39")][Xa("0x2e")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Xa("0x39")].change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t.map((t=>(Za(t)&&(t=this[Xa("0x39")][Xa("0xda")](t[Xa("0x50")])),t)))[Xa("0x121")]((t=>Xa("0xa9")!==t.root[Xa("0xfe")]));if(r[Xa("0xec")]<1)return;const x=Array[Xa("0x72")](this[Xa("0x39")].document[Xa("0x4b")][Xa("0x1f")]()).map((t=>i.LiveRange.fromRange(t)));n.setSelection(r);for(const t of this._editor[Xa("0x24")][Xa("0x24")]())t[Xa("0xb2")]();s.push({forceDefaultExecution:!0}),this[Xa("0xac")][Xa("0x116")](o,...s);const a=x[Xa("0x121")]((t=>Xa("0xa9")!=t.root[Xa("0xfe")]));a[Xa("0xec")]>0&&n[Xa("0x5c")](a);for(const t of x)t[Xa("0x10c")]()}))},o=(t,e)=>1==t[Xa("0xec")]&&1==e.length&&t[0][Xa("0x50")][Xa("0xe0")](e[0].start),s=(t,e,n,o)=>oc(t,e,n,o,this[Xa("0x39")])?[t,e]:oc(e,t,o,n,this._model)?[e,t]:null;this[Xa("0x3")][Xa("0xbd")](Xa("0x8f"),t),this[Xa("0x3")][Xa("0xbd")](Xa("0x3f"),e),this[Xa("0x3")][Xa("0xbd")]("insertion:join",o),this[Xa("0x3")].set(Xa("0x75"),s),this[Xa("0x3")][Xa("0xbd")](Xa("0x111"),e),this[Xa("0x3")][Xa("0xbd")](Xa("0x83"),t),this[Xa("0x3")][Xa("0xbd")](Xa("0xc"),o),this[Xa("0x3")].set(Xa("0x117"),s),this._defaultCallbacks.set(Xa("0x100"),n),this[Xa("0x3")][Xa("0xbd")]("formatInline:discard",t),this._defaultCallbacks.set(Xa("0xce"),o),this[Xa("0x3")][Xa("0xbd")](Xa("0x10e"),t),this[Xa("0x3")].set(Xa("0x9e"),n),this[Xa("0x3")][Xa("0xbd")](Xa("0xaa"),t),this._defaultCallbacks[Xa("0xbd")]("formatBlock:join",o),this[Xa("0x3")][Xa("0xbd")](Xa("0xeb"),t)}}function Qa(t,e,n){for(const o of e.parent[Xa("0x48")]({includeSelf:!0,parentFirst:!0})){if(o[Xa("0x71")]==o)return!1;if(!n[Xa("0x106")](o))return!1;if(t[Xa("0x7d")](o)||t[Xa("0x5")](o))return!0}return!1}function Za(t){return t[Xa("0x50")][Xa("0x103")]==t[Xa("0xa8")][Xa("0x5a")]&&t[Xa("0x50")][Xa("0xd2")]}function Ya(t,e,n,o){const s=t=>!t[Xa("0xff")].is(Xa("0xa"))&&!o[Xa("0x7d")](t[Xa("0xff")]),r=t.start.getLastMatchingPosition(s),i=t[Xa("0x50")].getLastMatchingPosition(s,{direction:Xa("0x37")});return!(t[Xa("0xa8")][Xa("0xe0")](r)&&t[Xa("0x50")][Xa("0xe0")](i)||(r[Xa("0x10b")](i)?n[Xa("0x41")](e,{range:n.createRange(r,i)}):n[Xa("0x130")](e),0))}function tc(t){return(0,r.hashObject)(t)}function ec(t){const e=t.start[Xa("0x5a")];return e&&e.is(Xa("0x10a"))}function nc(t,e){const n=e[Xa("0x98")][Xa("0x7d")](t)||e[Xa("0x98")][Xa("0xde")](t);return e[Xa("0xda")](e[Xa("0x94")](t,Xa("0x2a")),n?e.createPositionAfter(t):e[Xa("0x94")](t,Xa("0x50")))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n[Xa("0x50")].isEqual(o[Xa("0xa8")]))return!0;if(t.type!=e.type)return!1;if(!n[Xa("0x50")].isTouching(o.start))return!1;const r=s.createRange(n[Xa("0x50")],o[Xa("0xa8")]).getWalker();for(const t of r)if([Xa("0xa2"),Xa("0x88")][Xa("0x16")](t[Xa("0x1a")])&&s[Xa("0x98")].isLimit(t.item))return!1;return!0}function sc(t,e){return!(!t[Xa("0x3c")]||!e._isDataLoaded)&&Go(t[Xa("0x9f")],e[Xa("0x9f")])}function rc(t,e){const n=ic(t[Xa("0x9f")]),o=ic(e);if(!t[Xa("0x3c")])return!1;for(const t of Object[Xa("0x46")](o))if(!Go(n[t],o[t]))return!1;return!0}function ic(t){const e=Object[Xa("0x13")]({},t);return delete e[Xa("0x3d")],delete e[Xa("0xcf")],e}const xc=["PENDING_ACTION_SUGGESTION","change:isDirty","canAccept","listenTo","unbind","isDirty","commands","execute","_pendingAction","view","_setPendingAction","bind","PendingActions","getRanges","canDiscard","_removePendingAction","add","isEnabled","stopListening","plugins","commentThreadController","canEditAt","discardSuggestion","_acceptCommand","get","model","_editor","_discardCommand","acceptSuggestion"];var ac,cc;ac=xc,cc=493,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.view=n,this[lc("0x14")]=o,this._editor=t,this[lc("0x17")]=t[lc("0x6")][lc("0x18")](lc("0x1c")),this._discardCommand=t.commands[lc("0x18")]("discardSuggestion"),this[lc("0x9")][lc("0xb")](lc("0x11")).to(this[lc("0x17")],this[lc("0x1b")],((t,e)=>t||e)),this[lc("0x9")][lc("0xb")]("canAccept").to(this[lc("0x17")],lc("0x11"),(t=>t&&this._editor.model[lc("0x15")](e[lc("0xd")]()))),this[lc("0x9")][lc("0xb")]("canDiscard").to(this[lc("0x1b")],"isEnabled",(t=>t&&this._editor.model[lc("0x15")](e.getRanges()))),this[lc("0x8")]=null,n[lc("0x5")]&&this[lc("0xa")](),this[lc("0x3")](n,lc("0x1c"),(()=>this[lc("0x1c")]())),this.listenTo(n,lc("0x16"),(()=>this.discardSuggestion())),this[lc("0x3")](n,lc("0x1"),(()=>{n[lc("0x5")]?this._setPendingAction():this._removePendingAction()}))}[lc("0x1c")](){this[lc("0x17")][lc("0x7")](this[lc("0x19")].id)}[lc("0x16")](){this[lc("0x1b")][lc("0x7")](this[lc("0x19")].id)}destroy(){this.view.unbind("isEnabled"),this[lc("0x9")].unbind(lc("0x2")),this[lc("0x9")][lc("0x4")](lc("0xe")),this[lc("0x12")](),this[lc("0x14")].destroy(),this[lc("0x8")]&&this[lc("0xf")]()}[lc("0xa")](){const t=Yo(this[lc("0x1a")].locale,lc("0x0"));this[lc("0x8")]=this[lc("0x1a")][lc("0x13")][lc("0x18")](lc("0xc"))[lc("0x10")](t)}[lc("0xf")](){null!==this._pendingAction&&this[lc("0x1a")].plugins[lc("0x18")]("PendingActions").remove(this[lc("0x8")]),this[lc("0x8")]=null}}const uc=["bind","assign","_createCommentThreadInputView","_model","showInput","_config","canDiscard","locale","disabledSubmit","_localUser","submit","removeComment","disableComments","descriptionParts","isReadOnly","set","commentsListView","CommentView","addComment","commentThreadInputView","isDirty","length","commentThread","hasDirtyComment","_createCommentViews","isActive","editorConfig","destroy","delegate","commentInputView","value","cancel","focus"];var gc,mc;gc=uc,mc=320,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("0x1a")]=null,this.commentThreadInputView=null,this[fc("0x19")](fc("0x2"),!1),this.set("authoredAt",e.authoredAt),this.bind("authoredAt").to(e),this[fc("0x19")](fc("0x17"),[]),this.set("isDirty",!1),this[fc("0x19")]("isEnabled",!1),this[fc("0x19")]("canAccept",!1),this[fc("0x19")](fc("0x10"),!1),this[fc("0xd")]=e,this[fc("0x13")]=n,this[fc("0xf")]=o,o[fc("0x16")]?this[fc("0x19")](fc("0x1f"),1):this[fc("0x1")]()}[fc("0x9")](){this.element[fc("0x9")]()}[fc("0x4")](){this[fc("0x1a")]&&this[fc("0x1a")][fc("0x4")](),this[fc("0x1d")]&&this[fc("0x1d")][fc("0x4")](),super[fc("0x4")]()}_createCommentViews(){const{CommentsListView:t}=this[fc("0xf")];this[fc("0x1a")]=new t(this[fc("0x11")],this._model[fc("0x20")],Object[fc("0xb")]({CommentView:this[fc("0xf")][fc("0x1b")]},this._config)),this.commentsListView[fc("0x5")]("removeComment").to(this),this.commentsListView.delegate("updateComment").to(this),this[fc("0x1a")][fc("0xa")](fc("0x2")).to(this),this.set("length",this.commentsListView[fc("0x1f")]+1),this[fc("0xa")]("length").to(this[fc("0x1a")],fc("0x1f"),(t=>t+1)),this[fc("0x1d")]=this[fc("0xc")](),this.on(fc("0x15"),(()=>this[fc("0x9")]())),this[fc("0xa")](fc("0x1e")).to(this[fc("0x1a")],fc("0x0"),this.commentThreadInputView[fc("0x6")],fc("0x7"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[fc("0x13")],this[fc("0xf")][fc("0x3")]),n=e[fc("0x6")];return e[fc("0xa")](fc("0xe")).to(this,fc("0x2"),this[fc("0xd")][fc("0x20")],fc("0x18"),n,fc("0x7"),((t,e,n)=>!!n||t&&!e)),n.on(fc("0x14"),((t,e)=>{this.fire(fc("0x1c"),e),n.editor.setData("")})),n.on(fc("0x8"),(()=>this.focus())),n[fc("0xa")](fc("0x12")).to(this._model[fc("0x20")],fc("0x18")),e}}const pc=["ck-comment__info-time","EXTERNAL_SUGGESTION","</span>","discardButton","@external","ck-suggestion__main","isEnabled",'<span class="ck-suggestion-type">',"ck-suggestion__actions","userView","disableComments","description","commentsListView","render","getTemplate","join","canAccept","bind","commentThreadInputView","attributes","author","createElement","ck-suggestion","ck-suggestion__info","_createButton",'<span class="ck-suggestion-color" style="background-color: ',"div","time","_config","source","innerText","importWord","discardSuggestion","ck-annotation__info","creator","authoredAt","isExternal",".ck-annotation__content-wrapper","ck-suggestion__user","acceptSuggestion","title","ck-comment__external","type","push","querySelector","ck-annotation__main","canDiscard","ck-suggestion--discard","getUserViewNotificationText","ck-annotation","span","name","map","ck-annotation__info-time","<p>","descriptionParts","element",'" title="',"locale","split","setTemplate",'"></span>',"Discard suggestion","ck-suggestion__info-name","change:description","isActive","content","innerHTML","editorReady","Accept suggestion","acceptButton","ck-suggestion--disabled-comments","delegate","EXTERNAL_AVATAR","formatDateTime","value","editorDestroyed","ck-annotation__content-wrapper","check","_descriptionElement","extendTemplate","_model"];var bc,Ec;bc=pc,Ec=214,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.set("type",""),this.bind(_c("0x4a")).to(this,_c("0x5"),(t=>t&&t[0]?t[0][_c("0x4a")]:"")),this[_c("0x31")](_c("0x2b")).to(this,_c("0x5"),this,_c("0xf"),((t,e)=>{let n="";for(const e of t)n+=_c("0x4")+Cc(e[_c("0x10")],e.color)+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this[_c("0x1d")]=null,this.acceptButton=this[_c("0x38")](Yo(e,_c("0x13")),t.icons[_c("0x1c")],"ck-suggestion--accept",_c("0x47"),"sw"),this.acceptButton[_c("0x31")](_c("0x26")).to(this,_c("0x30")),this[_c("0x23")]=this[_c("0x38")](Yo(e,_c("0xc")),t.icons.cancel,_c("0x4f"),_c("0x40"),"sw"),this[_c("0x23")][_c("0x31")](_c("0x26")).to(this,_c("0x4e")),this[_c("0x29")]=new r.UserView(e,this[_c("0x1f")].author,this[_c("0x50")]()),this[_c("0x29")][_c("0x1e")]({attributes:{class:[_c("0x46"),"ck-annotation__user"]}}),this[_c("0xa")](this[_c("0x2e")]())}[_c("0x2e")](){const t=this.bindTemplate,e=[{tag:"div",attributes:{class:[_c("0x37"),_c("0x41")]},children:[{tag:_c("0x0"),children:[{text:this[_c("0x29")][_c("0x1")]}],attributes:{class:[_c("0xd"),"ck-annotation__info-name"]}},{tag:_c("0x3b"),attributes:{datetime:t.to(_c("0x43")),class:[_c("0x20"),_c("0x3")]},children:[{text:t.to(_c("0x43"),(t=>this[_c("0x3c")][_c("0x18")](t)))}]}]},{tag:_c("0x3a"),attributes:{class:[_c("0x28"),"ck-annotation__actions"]},children:[this[_c("0x14")],this.discardButton]},{tag:_c("0x3a"),attributes:{class:[_c("0x1b")]}}];this._model[_c("0x44")]&&e[_c("0x4b")]({tag:"div",attributes:{class:[_c("0x49")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:_c("0x3a"),attributes:{class:["ck-suggestion-wrapper",t.if(_c("0xf"),"ck-suggestion-wrapper--active"),t.to(_c("0x4a"),(t=>"ck-suggestion-"+t)),this._config[_c("0x2a")]&&_c("0x15")],"data-suggestion-id":this[_c("0x1f")].id,"data-thread-id":this[_c("0x1f")].commentThread.id,"data-author-id":this._model[_c("0x34")].id,tabindex:-1},children:[{tag:_c("0x3a"),attributes:{class:[_c("0x36"),_c("0x51")]},children:[this.userView,{tag:"div",attributes:{class:[_c("0x25"),_c("0x4d")]},children:e}]}]};return this[_c("0x2c")]&&this.commentThreadInputView&&(n.children[_c("0x4b")](this[_c("0x2c")],this[_c("0x32")]),this[_c("0x2c")].delegate(_c("0x12")).to(this),this[_c("0x2c")][_c("0x16")](_c("0x1a")).to(this),this.commentThreadInputView.delegate(_c("0x12")).to(this),this[_c("0x32")].delegate(_c("0x1a")).to(this)),n}[_c("0x2d")](){super[_c("0x2d")](),this[_c("0x1d")]=this[_c("0x6")][_c("0x4c")](_c("0x45")),this[_c("0x1d")][_c("0x11")]=this[_c("0x2b")],this.on(_c("0xe"),((t,e,n)=>{this._descriptionElement[_c("0x11")]=n}))}[_c("0x38")](t,e,n,o,r){const i=new s.ButtonView(this[_c("0x8")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[_c("0x1e")]({attributes:{class:n}}),i.on("execute",(()=>{this.fire(o,this[_c("0x1f")].id)})),i}getExternalSuggestionNote(){return _c("0x3f")===this[_c("0x1f")][_c("0x33")][_c("0x24")].source?Yo(this.locale,"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[_c("0x8")],_c("0x21"))}[_c("0x50")](){return this[_c("0x1f")][_c("0x44")]?_c("0x3f")===this[_c("0x1f")].attributes[_c("0x24")][_c("0x3d")]?Yo(this[_c("0x8")],"EXTERNAL_IMPORT_WORD_AVATAR",this[_c("0x1f")][_c("0x42")].name):Yo(this[_c("0x8")],_c("0x17"),this[_c("0x1f")][_c("0x42")][_c("0x1")]):null}}function Cc(t,e){let n="";return n+=t[_c("0x9")]("*")[_c("0x2")](((t,e)=>e%2!=0?_c("0x27")+yc(t)+_c("0x22"):yc(t)))[_c("0x2f")](""),e&&(n+=_c("0x39")+e[_c("0x19")]+_c("0x7")+e[_c("0x48")]+_c("0xb")),n}function yc(t){const e=document[_c("0x35")]("span");return e[_c("0x3e")]=t,e[_c("0x11")]}const kc=["trackChanges","get","CommentsUI","getDescriptions","commandName","getMarkerNames","change:activeAnnotations","acceptSelectedSuggestions","reduce","getRanges","focus","Track changes","_disableComments","trackChanges.SuggestionThreadView","commentThread","isDirty","createCommentThreadController","push","pluginName","suggestion-","addComment","bind","descriptionParts","comments.maxThreadTotalWeight","execute","innerView","isEnabled","unbind","clear","activeMarkers","button","previous","SuggestionThreadView","length","from","arrowView","Discard all suggestions","suggestionChanged","getMarkers","getAllAdjacentSuggestions","locale","switchbutton","comments","comments.maxCommentCharsWhenCollapsed","refreshSelectedViews","createAnnotationView","createAnnotation","suggestionLoaded","commands","_destroyController","getSuggestion","_initializeController","delete","lowest","init","_handleControllerBuffer","_createUIButton","acceptAllSuggestions","map","define","change:previous","editing","keys","_viewToController","set","getJoined","_descriptionFactory","type","remove","_handleSuggestionControllerDelayed","filter","model","plugins","add","EditorAnnotations","mainView","_updateController","_unbindEditors","CommentView","editor","TrackChangesUI","hasSuggestion","isOn","Accept all selected suggestions","_suggestionToController","toMany","listenTo","_annotationViews","values","componentFactory","getFirstRange","trackChanges.disableComments","_refreshActiveMarkers","Annotations","getByInnerView","Accept all suggestions","buttonView","destroy","Discard all selected suggestions","isInContent","view","TrackChangesEditing","CommentsRepository","has","discardButton","head","acceptButton","actionView"];var Ac,vc;Ac=kc,vc=148,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 requires(){return[$a,r.Users,Rc("0x3e"),"Annotations",Rc("0x22")]}static get[Rc("0x56")](){return Rc("0x28")}constructor(t){super(t),this[Rc("0x2c")]=new Map,this[Rc("0x17")]=new Map,this[Rc("0x2f")]=new Map,this[Rc("0xf")]=new Map;const e=this[Rc("0x27")].config;e[Rc("0x13")](Rc("0x51"),Tc),e[Rc("0x13")](Rc("0x33"),!1),this[Rc("0x50")]=e[Rc("0x45")](Rc("0x33"))}[Rc("0x1d")](t,e){0===this[Rc("0xf")].size&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Rc("0x2c")][Rc("0x3f")](t);n||e?n&&e&&this[Rc("0x9")](t):this[Rc("0xb")](t)}this.editor[Rc("0x20")][Rc("0x45")](Rc("0x22"))[Rc("0x4")](),this[Rc("0x34")](),this._handleControllerBuffer[Rc("0x60")]()}),10),this[Rc("0xf")].set(t,e)}[Rc("0xe")](){const t=this[Rc("0x27")],e=t[Rc("0x20")][Rc("0x45")](Rc("0x3d")),n=t[Rc("0x20")][Rc("0x45")]("Annotations"),o=t[Rc("0x20")][Rc("0x45")]("EditorAnnotations"),s=t[Rc("0x20")][Rc("0x45")](Rc("0x3e"));t.ui[Rc("0x31")][Rc("0x21")]("trackChanges",(t=>this[Rc("0x10")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Rc("0x66")](this[Rc("0x2c")])){const o=e[Rc("0x6b")](),s=[];for(const t of o){if(!t[Rc("0x3b")])continue;if(t.isMultiRange){s.push(...t[Rc("0x4d")]());continue}const e=t[Rc("0x32")]();if(s[Rc("0x65")]>0){const t=s[0][Rc("0x19")](e);if(t){s[0]=t;continue}}s[Rc("0x55")](e)}t[Rc("0x55")]([n.view,s])}return t})),this[Rc("0x2e")](e,Rc("0x7"),((t,e)=>{this[Rc("0x2e")](e,Rc("0x14"),((t,n,o,s)=>{e[Rc("0x3b")]&&(null==o?(this[Rc("0x24")](s.head),this[Rc("0x1d")](e,!1)):(this[Rc("0x24")](o[Rc("0x41")]),this[Rc("0x1d")](e,!0)))})),null===e[Rc("0x63")]?this[Rc("0x1d")](e,!1):this[Rc("0x24")](e[Rc("0x41")])})),this[Rc("0x2e")](e,"suggestionUnloaded",((t,e,n)=>{this.stopListening(e,Rc("0x14")),this[Rc("0xf")][Rc("0xc")](e);const o=n?n[Rc("0x41")]:e,s=this._suggestionToController.get(o);null!==n&&this[Rc("0x24")](o),null===n&&s&&this[Rc("0x9")](e)})),this[Rc("0x2e")](e,Rc("0x69"),((t,e)=>{this[Rc("0x24")](e)})),this.listenTo(n,Rc("0x4a"),(()=>{this[Rc("0x34")]()})),this[Rc("0x2e")](s,Rc("0x58"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0x29")](n))return;const s=e[Rc("0xa")](n);this[Rc("0x2c")][Rc("0x45")](s)[Rc("0x3c")][Rc("0x4e")]()}),{priority:Rc("0xd")})}[Rc("0x34")](){const t=this[Rc("0x27")][Rc("0x20")][Rc("0x45")]("Annotations"),e=this.editor[Rc("0x20")][Rc("0x45")](Rc("0x3d")),n=Array.from(t.activeAnnotations,(t=>t[Rc("0x5d")])).filter((t=>this[Rc("0x17")][Rc("0x3f")](t))),o=[];for(const t of n){const e=this[Rc("0x17")][Rc("0x45")](t)[Rc("0x1f")].getAllAdjacentSuggestions();o[Rc("0x55")](...e[Rc("0x4c")](((t,e)=>[...t,...e[Rc("0x49")]()]),[]))}e[Rc("0x61")]=o}[Rc("0x10")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Rc("0x27")][Rc("0x8")].get(Rc("0x44")),r=Yo(t,Rc("0x4f"));n[Rc("0x38")].set({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-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("0x38")][Rc("0x59")](Rc("0x2a")).to(o,"value"),n.buttonView.on(Rc("0x5c"),(()=>{o[Rc("0x5c")](),this.editor[Rc("0x15")][Rc("0x3c")][Rc("0x4e")]()}));const i=new e.Collection,x=[{type:Rc("0x1"),model:{withText:!0,label:r,commandName:Rc("0x44")}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x37")),commandName:Rc("0x11")}},{type:Rc("0x62"),model:{withText:!0,label:Yo(t,Rc("0x2b")),commandName:Rc("0x4b")}},{type:Rc("0x62"),model:{withText:!0,label:Yo(t,Rc("0x68")),commandName:"discardAllSuggestions"}},{type:Rc("0x62"),model:{withText:!0,label:Yo(t,Rc("0x3a")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:"separator"};if(t[Rc("0x1f")]){const n=new s.Model(t[Rc("0x1f")]),o=this[Rc("0x27")].commands[Rc("0x45")](n[Rc("0x48")]);n.bind(Rc("0x2a"),Rc("0x5e")).to(o,"value",Rc("0x5e")),e={type:t[Rc("0x1b")],model:n}}i[Rc("0x21")](e)}(0,s.addListToDropdown)(n,i);const a=x[Rc("0x1e")]((t=>null!=t.model))[Rc("0x12")]((t=>this[Rc("0x27")][Rc("0x8")][Rc("0x45")](t.model[Rc("0x48")]))),c=n[Rc("0x38")];return c[Rc("0x43")][Rc("0x5f")](Rc("0x5e")),c[Rc("0x67")].unbind(Rc("0x5e")),c[Rc("0x43")][Rc("0x59")]("isEnabled").to(o,"isEnabled"),c[Rc("0x67")][Rc("0x59")](Rc("0x5e"))[Rc("0x2d")](a,Rc("0x5e"),((...t)=>t.some((t=>t)))),n.on(Rc("0x5c"),(t=>{this.editor[Rc("0x5c")](t.source[Rc("0x48")]),this[Rc("0x27")][Rc("0x15")][Rc("0x3c")][Rc("0x4e")]()})),n}[Rc("0xb")](t){const e=this[Rc("0x27")],n=e.config,o=e[Rc("0x20")][Rc("0x45")](Rc("0x35")),s=e[Rc("0x20")].get(Rc("0x3e")),i=e.plugins.get(Rc("0x22")),x=e[Rc("0x20")][Rc("0x45")](r.Users).me,a=n[Rc("0x45")](Rc("0x44"))[Rc("0x64")],{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x20")][Rc("0x45")](Rc("0x46"));let d,u;this[Rc("0x2f")][Rc("0x3f")](t.id)?(u=this[Rc("0x2f")][Rc("0x45")](t.id),d=u[Rc("0x23")]):(d=new a(e[Rc("0x0")],t,x,{disableComments:this[Rc("0x50")],editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n[Rc("0x45")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Rc("0x45")](Rc("0x5b")),maxCommentCharsWhenCollapsed:n.get(Rc("0x3")),formatDateTime:(0,r.getDateTimeFormatter)(n.get(Rc("0x0"))),CommentView:n.get(Rc("0x2"))[Rc("0x26")],CommentsListView:c,CommentThreadInputView:l}),d[Rc("0x42")].on(Rc("0x5c"),(()=>{e[Rc("0x15")].view[Rc("0x4e")]()})),d[Rc("0x40")].on(Rc("0x5c"),(()=>{e.editing[Rc("0x3c")][Rc("0x4e")]()})),u=o[Rc("0x5")](this[Rc("0x27")][Rc("0x0")],d),u.bind(Rc("0x53")).to(d,Rc("0x53")),u[Rc("0x59")](Rc("0x65")).to(d),u.bind(Rc("0x1b")).to(d,"type",(t=>Rc("0x57")+t)),this[Rc("0x2f")][Rc("0x18")](t.id,u));const g=s[Rc("0x54")](t[Rc("0x52")],d),m=new dc(e,t,d,g),f=t[Rc("0x6b")]()[Rc("0x1e")]((t=>t[Rc("0x3b")]));d[Rc("0x5a")]=e.plugins.get(Rc("0x3d"))._descriptionFactory[Rc("0x47")](f),this[Rc("0x2c")].set(t,m),this[Rc("0x17")].set(d,m);const h=o[Rc("0x6")]({view:u,target:()=>{const n=[],o=t[Rc("0x6b")]()[Rc("0x1e")]((t=>t.isInContent));for(const t of o)n.push(...t[Rc("0x6a")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Rc("0x57")+m[Rc("0x3c")][Rc("0x1b")]});s._bindAnnotationToEditors(d,h),o[Rc("0x21")](h),i.registerAnnotation(h)}[Rc("0x9")](t){const e=this.editor.plugins[Rc("0x45")](Rc("0x3e")),n=this.editor.plugins[Rc("0x45")](Rc("0x35")),o=this._suggestionToController[Rc("0x45")](t),s=o[Rc("0x3c")],r=n[Rc("0x36")](s);e[Rc("0x25")](s),r&&n[Rc("0x1c")](r),this[Rc("0x2c")].delete(t),this[Rc("0x17")][Rc("0xc")](s),o[Rc("0x39")]()}[Rc("0x24")](t){if(!t[Rc("0x3b")]||!this[Rc("0x2c")][Rc("0x3f")](t))return;const e=this.editor[Rc("0x20")][Rc("0x45")]("TrackChangesEditing"),n=this[Rc("0x2c")].get(t),o=t.getAllAdjacentSuggestions();n[Rc("0x3c")][Rc("0x5a")]=e[Rc("0x1a")][Rc("0x47")](o)}[Rc("0x39")](){for(const t of this[Rc("0x2c")][Rc("0x16")]())this[Rc("0x9")](t);for(const t of this[Rc("0x2f")][Rc("0x30")]())t[Rc("0x23")].destroy();super[Rc("0x39")]()}}var Ic,Lc,Nc=["getSuggestion","pluginName","plugins","get","TrackChanges","adapter","getSuggestions","Comments","editor"];Ic=Nc,Lc=156,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("0x4")]}static get[wc("0x7")](){return wc("0x1")}set adapter(t){this[wc("0x5")][wc("0x8")].get($a)[wc("0x2")]=t}get adapter(){return this.editor[wc("0x8")][wc("0x0")]($a)[wc("0x2")]}addSuggestion(t){return this[wc("0x5")][wc("0x8")][wc("0x0")]($a).addSuggestionData(t)}[wc("0x3")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[wc("0x8")][wc("0x0")]($a)[wc("0x3")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[wc("0x5")].plugins[wc("0x0")]($a)[wc("0x6")](t)}}const Oc=["addUser","rootsAttributes","name","getSuggestions","document","getDataWithDiscardedSuggestions","getRootsAttributes","requires","editorCreator","getDataWithAcceptedSuggestions","plugins","config","getFullData","set","_adapter","destroy","define","execute","constructor","editor","get","function","createDocumentFragment","Pagination","result","end","createElement","users","TrackChangesEditing","Users","pluginName","useAnonymousUser","init","discardAllSuggestions","getUser","create","trackChangesData","TrackChangesDataGetter","map","div","model","data"];var Fc,Pc;Fc=Oc,Pc=128,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("0x5")](){return[$a]}static get[Dc("0x1c")](){return"TrackChangesData"}init(){const t=this[Dc("0x11")];if(t[Dc("0x9")][Dc("0xe")]("trackChangesData.editorCreator",(e=>{const n=t[Dc("0x26")][Dc("0x2")].getRootNames().reduce(((t,e)=>(t[e]="",t)),{});return t[Dc("0x10")][Dc("0x21")](n,e)})),Dc("0x13")!=typeof t[Dc("0x9")][Dc("0x12")](Dc("0x22"))[Dc("0x6")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Dc("0x7")](t){return Hc(this[Dc("0x11")],!0,t)}[Dc("0x3")](t){return Hc(this.editor,!1,t)}}class Uc extends t.Plugin{static get pluginName(){return Dc("0x23")}constructor(t){super(t),this[Dc("0x16")]=Dc("0x17")}[Dc("0x1e")](){this[Dc("0x11")][Dc("0x8")][Dc("0x12")]("CommentsRepository")[Dc("0xc")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Dc("0x11")][Dc("0x8")][Dc("0x12")](Dc("0x1a"))[Dc("0xc")]=null}}function Gc(t){return void 0!==t[Dc("0x4")]}async function Hc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Bc);o.plugins.push($a,Uc),o[Dc("0x29")]=Gc(t)?t[Dc("0x4")]():void 0;const s=document[Dc("0x14")](),i=t[Dc("0x9")][Dc("0x12")](Dc("0x22"))[Dc("0x6")],x=await i(o,(()=>function(t){const e=document[Dc("0x18")](Dc("0x25"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Dc("0x26")][Dc("0x2")].getRootNames().reduce(((e,n)=>(e[n]=t[Dc("0x27")][Dc("0x12")]({rootName:n}),e)),{}),o=t[Dc("0x8")][Dc("0x12")](Dc("0x1b"))[Dc("0x19")][Dc("0x24")]((t=>({id:t.id,name:t[Dc("0x0")]}))),s=t[Dc("0x8")][Dc("0x12")](Dc("0x1a"))[Dc("0x1")]({skipNotAttached:!0,toJSON:!0}),r=e[Dc("0x8")][Dc("0x12")](Dc("0x1b")),i=e[Dc("0x8")][Dc("0x12")](Dc("0x1a"));for(const t of o)r[Dc("0x20")](t.id)||r[Dc("0x28")](t);r.me||r[Dc("0x1d")]();for(const t of s)i.addSuggestionData(t);e[Dc("0x27")][Dc("0xb")](n)}(t,x),x[Dc("0xf")](e?"acceptAllSuggestions":Dc("0x1f"));const a=Gc(x)?x[Dc("0xa")](n):x.data[Dc("0x12")](n);return await x[Dc("0xd")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|