@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231012.0 → 0.0.0-nightly-20231013.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/build/track-changes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>hc,TrackChanges:()=>Mc,TrackChangesData:()=>jc,TrackChangesEditing:()=>$x});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),a=n(995);const x=["clearForceDisabled","_disableUnsupportedCommands","_enableCommands","_isEnabledBasedOnSelection","refresh","editor","forceDisabled","value","TrackChangesCommand","commands","affectsData","execute","has","_enabledCommands"];var c,l;c=x,l=189,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return x[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x6")]=e,this[u("0x0")]=!1,this.refresh(),this[u("0xa")]=!1}[u("0xb")](){this.isEnabled=!0}[u("0x4")](){this[u("0x0")]=!this[u("0x0")],this[u("0x0")]?this[u("0x8")]():this[u("0x9")]()}[u("0x8")](){for(const t of this[u("0xc")].commands[u("0x2")]())t[u("0x3")]&&!this[u("0x6")][u("0x5")](t)&&t[u("0xd")](u("0x1"))}[u("0x9")](){for(const t of this[u("0xc")][u("0x2")][u("0x2")]())t[u("0x3")]&&!this[u("0x6")][u("0x5")](t)&&t[u("0x7")](u("0x1"))}}const g=["model","_suggestions","getRanges","isEnabled","TrackChangesEditing","refresh","plugins","editor","track-changes-accept-suggestion-not-found","execute"];var m,f;m=g,f=371,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("0x4")](),this._isEnabledBasedOnSelection=!1}[h("0x4")](){this[h("0x2")]=!0}[h("0x8")](t){const n=this[h("0x0")].get(t);if(!n)throw new e.CKEditorError(h("0x7"),this);const o=n[h("0x1")]();this.editor[h("0x9")].canEditAt(o)&&this[h("0x6")][h("0x5")].get(h("0x3")).acceptSuggestion(n)}}const b=["plugins","execute","model","get","refresh","editor","_isEnabledBasedOnSelection","discardSuggestion","_suggestions","TrackChangesEditing","getRanges","isEnabled"];var E,_;E=b,_=468,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("0x8")]=e,this.refresh(),this[T("0x6")]=!1}[T("0x4")](){this[T("0xb")]=!0}[T("0x1")](t){const n=this[T("0x8")][T("0x3")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0xa")]();this[T("0x5")][T("0x2")].canEditAt(o)&&this.editor[T("0x0")].get(T("0x9"))[T("0x7")](n)}}const y=["createPositionBefore","color","join","map","from","createPositionAfter","isInContent","content","getRanges","start","splice","createPositionAt","deletion","type","change","next"," [color ","sort","isMultiRange","length","isArray","isTouching","isCollapsed","schema","replace","end"];var k,A;k=y,A=211,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0xe")](((t,e)=>"deletion"==t[v("0xa")]&&v("0x9")!=e[v("0xa")]?-1:v("0x9")!=t[v("0xa")]&&v("0x9")==e.type?1:0))}function I(t,e){let n,o=0;const s=[],r=e[v("0x14")];for(;o<t[v("0x10")];){const i=t[o],a=t[o+1];n||(n=e[v("0x17")](i)),S(e,i,a)||(s.push(e.createRange(n,r.isObject(i)?e.createPositionAfter(i):e[v("0x8")](i,"end"))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[v("0x2")](e),s=t.createPositionBefore(n);return o[v("0x12")](s)}function L(t,e,n){for(;n[v("0x10")];){const o=n[v("0x7")](0,100);t[v("0xb")]((()=>{for(const t of o)t[v("0x3")]&&e.execute(t.id)}))}}const N=["_isEnabledBasedOnSelection","getRanges","_suggestions","from","refresh","some","_command","canEditAt","isEnabled","values","isInContent","editor"];var w,M;w=N,M=451,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0xb")]=e,this[O("0x7")]=n,this[O("0x9")](),this[O("0x5")]=!1}[O("0x9")](){const t=Array[O("0x8")](this._suggestions[O("0x2")]())[O("0xa")]((t=>t[O("0x3")]));this[O("0x1")]=this[O("0xb")][O("0x1")]&&t}execute(){const t=R(Array[O("0x8")](this[O("0x7")].values()));for(const e of t){const t=e[O("0x6")]();if(!this[O("0x4")].model[O("0x0")](t))return}L(this[O("0x4")].model,this[O("0xb")],t)}}const P=["_suggestions","_command","from","_selectedSuggestions","execute","size","selection","values","document","editor","_isEnabledBasedOnSelection","isEnabled","model"];var D,B;D=P,B=149,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[j("0x7")]=n,this[j("0xa")]=new Set,this.refresh(),this[j("0x4")]=!1}refresh(){const t=this[j("0x3")][j("0x6")][j("0x2")][j("0x0")],e=Array[j("0x9")](this._suggestions[j("0x1")]());this[j("0xa")]=function(t,e){const n=Array[v("0x1")](t.getRanges()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s[v("0x5")]())(e.isIntersecting(n)||t[v("0x13")]&&!s[v("0xf")]&&s[v("0xc")]&&n[v("0x16")][v("0x12")](e[v("0x6")]))&&o.add(s);return o}(t,e),this[j("0x5")]=this[j("0x8")][j("0x5")]&&!!this[j("0xa")][j("0xc")]}[j("0xb")](){const t=R(Array[j("0x9")](this[j("0xa")]));for(const e of t){const t=e.getRanges();if(!this[j("0x3")][j("0x6")].canEditAt(t))return}L(this[j("0x3")][j("0x6")],this[j("0x8")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var V=Array.prototype.splice;const W=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():V.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=W,$.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,at=rt.toString,xt=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,xt),n=t[xt];try{t[xt]=void 0;var o=!0}catch(t){}var s=at.call(t);return o&&(e?t[xt]=n:delete t[xt]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const 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 It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(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 Vt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=Vt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Vt(this,t).get(t)};const qt=function(t){return Vt(this,t).has(t)};const Xt=function(t,e){var n=Vt(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=Wt,$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 a=e[r],x=o?o(n[a],t[a],a,n,t):void 0;void 0===x&&(x=t[a]),s?ne(n,a,x):se(n,a,x)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const ae=function(t){return null!=t&&"object"==typeof t};const xe=function(t){return ae(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=xe(function(){return arguments}())?xe:function(t){return ae(t)&&le.call(t,"callee")&&!ue.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 ae(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 Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,a=i?ie(t.length,String):[],x=a.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,x))||a.push(c);return a};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 Ve=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 We=function(t){return je(t)?we(t,!0):Ve(t)};const Ke=function(t,e){return t&&re(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?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 an=Fe(Object.getPrototypeOf,Object);const xn=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=an(t);return e}:tn;const cn=function(t,e){return re(t,xn(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,We,xn)};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 In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.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(an(t))};const Vn=function(t){return ae(t)&&"[object Map]"==In(t)};var Wn=Ie&&Ie.isMap;const Kn=Wn?ke(Wn):Vn;const qn=function(t){return ae(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.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 a,x=1&n,c=2&n,l=4&n;if(o&&(a=r?o(e,s,r,i):o(e)),void 0!==a)return a;if(!mt(e))return e;var u=ge(e);if(u){if(a=Ln(e),!x)return Ze(e,a)}else{var d=In(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,x);if(d==Zn||d==Jn||g&&!r){if(a=c||g?{}:zn(e),!x)return c?cn(e,Ke(a,e)):sn(e,Ge(a,e))}else{if(!Yn[d])return r?e:{};a=Un(e,d,x)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,a),$n(e)?e.forEach((function(s){a.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){a.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?We:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(a,r,t(s,n,o,r,e,i))})),a};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||ae(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 ao=io;var xo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=ao(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(xo,(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,a=t;null!=a&&++s<r;){var x=bo(e[s]),c=n;if("__proto__"===x||"constructor"===x||"prototype"===x)return t;if(s!=i){var l=a[x];void 0===(c=o?o(l,x,a):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(a,x,c),a=a[x]}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,a=t.length,x=e.length;if(a!=x&&!(i&&x>a))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<a;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!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)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=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 a=Io;case"[object Set]":var x=1&o;if(a||(a=So),t.size!=e.size&&!x)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(a(t),a(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,a=un(t),x=a.length;if(x!=un(e).length&&!i)return!1;for(var c=x;c--;){var l=a[c];if(!(i?l in e:Mo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<x;){var f=t[l=a[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),a=ge(e),x=i?Po:In(t),c=a?Po:In(e),l=(x=x==Fo?Do:x)==Do,u=(c=c==Fo?Do:c)==Do,d=x==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):wo(t,e,x,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&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!!d&&(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||!ae(e)&&!ae(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 Vo=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 Wo=function(t,e){return e.length<2?t:zo(t,Vo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["setAttribute","get","map","author","subType","getFirstMarker","_saved","getAllAdjacentSuggestions","addMarkerName","from","isMultiRange","attributes","set","discard","suggestion:","commentThread","_onAttributesChange","hasComments","getMarkers","removeMarkers","getRanges","add","removeAttribute","push","getMultiRangeId","next","decorate","type","getFirstRange","reduce","getMarkerNames","previous","getRange","onDiscard","onAttributesChange","delete","change","nodeBefore","isExternal","_onDiscard","getContainedElement","data","end","isIntersecting","_model","getItems","_markerNames","substr","nodeAfter","removeMarker","head","markers","_onAccept","_isDataLoaded","creator","authoredAt","length","accept"];var $o,Jo;$o=Xo,Jo=323,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("0x14")]=!1,this.id=e.id,this[Qo("0x34")]=e.type,this.subType=e.subType||null,this[Qo("0x1c")]=e[Qo("0x1c")],this.creator=e[Qo("0x15")]||e[Qo("0x1c")],this[Qo("0x5")]=Boolean(e[Qo("0x24")]&&e[Qo("0x24")]["@external"]),this.data=null,this[Qo("0xb")]=t,this[Qo("0x13")]=e.onAccept,this[Qo("0x6")]=e[Qo("0x0")],this._onAttributesChange=e[Qo("0x1")],this[Qo("0xd")]=new Set,this.createdAt=null,this.set(Qo("0x16"),null),this[Qo("0x25")]("attributes",e[Qo("0x24")]||{}),this.set("previous",null),this[Qo("0x25")](Qo("0x32"),null),this[Qo("0x25")](Qo("0x28"),null),this.set(Qo("0x1f"),!1),this.decorate(Qo("0x18")),this[Qo("0x33")](Qo("0x26"))}get[Qo("0x11")](){let t=this;for(;t[Qo("0x38")];)t=t[Qo("0x38")];return t}get[Qo("0x2a")](){return!!this.commentThread&&this[Qo("0x28")][Qo("0x17")]>0}get[Qo("0x23")](){return 0!=this[Qo("0xd")].size&&6==Array[Qo("0x22")](this[Qo("0xd")])[0].split(":")[Qo("0x17")]}get isInContent(){return null!==this[Qo("0x1e")]()}[Qo("0x21")](t){this[Qo("0xd")][Qo("0x2e")](t)}[Qo("0x37")](){return Array[Qo("0x22")](this[Qo("0xd")])}[Qo("0x2b")](){return this[Qo("0x37")]().map((t=>this[Qo("0xb")][Qo("0x12")][Qo("0x1a")](t))).filter((t=>t))}[Qo("0x1e")](){return this.getMarkers()[0]||null}[Qo("0x2c")](){this[Qo("0xb")].change((t=>{for(const e of this[Qo("0x2b")]())t[Qo("0x10")](e)})),this[Qo("0xd")].clear()}[Qo("0x10")](t){this[Qo("0xb")][Qo("0x3")]((e=>{e.removeMarker(t)})),this[Qo("0xd")][Qo("0x2")](t)}addRange(t){const e=Qo("0x27")+this[Qo("0x34")]+":"+this.subType+":"+this.id+":"+this[Qo("0x15")].id+":"+Zo[Qo("0x31")]();this[Qo("0x21")](e),this._model[Qo("0x3")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x2d")]())if(e[Qo("0xa")](t))return!0;return!1}[Qo("0x2d")](){return this[Qo("0x2b")]()[Qo("0x1b")]((t=>t[Qo("0x39")]()))}[Qo("0xc")](){return this[Qo("0x2d")]()[Qo("0x36")](((t,e)=>[...t,...e[Qo("0xc")]()]),[])}[Qo("0x35")](){var t;return(null===(t=this[Qo("0x1e")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x7")](){const t=this[Qo("0x2d")]();if(1!=t[Qo("0x17")])return null;const e=t[0],n=e.start[Qo("0xf")],o=e[Qo("0x9")][Qo("0x4")];return n instanceof i.Element?n!=o?null:n:null}accept(){this._onAccept(this[Qo("0x2d")](),this.data,this[Qo("0x24")]),this[Qo("0x2c")]()}discard(){this[Qo("0x6")](this[Qo("0x2d")](),this.data,this.attributes),this[Qo("0x2c")]()}[Qo("0x20")](){const t=[];let e=this.head;for(;e;)t[Qo("0x30")](e),e=e[Qo("0x32")];return t}[Qo("0x19")](t,e){const n=eo(this[Qo("0x24")]);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x24")]=n,this[Qo("0x29")](n))}[Qo("0x2f")](t){const e=eo(this.attributes);qo(e,t),Go(e,this.attributes)||(this[Qo("0x24")]=e,this[Qo("0x29")](this[Qo("0x24")]))}toJSON(){return{id:this.id,type:this.subType?this[Qo("0x34")]+":"+this[Qo("0x1d")]:this[Qo("0x34")],authorId:this[Qo("0x15")].id,createdAt:this.createdAt,hasComments:this[Qo("0x2a")],data:this[Qo("0x8")],attributes:this[Qo("0x24")]}}static[Qo("0x31")](){return(0,e.uid)()[Qo("0xe")](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=["previousSibling","$text","removeContainer","elementEnd","_addDescriptionItems","push","deletion","addContainer","$1 $2","Container","indexOf","label","isEqual","get","text","checkChild","*Insert:* %0","*Remove:* %0","_itemLabels","set","Object","start","item","getItemLabel","name","isObject","nextSibling","_itemLabelsCallbacks","match","getDescriptions","addObject","quantity","isInContent","_locale","_schema","length","*Merge:* %0","_customCallbacks","remove","replace","skip","matchingCallback","EmptyContainer","*Split:* %0","getFirstRange","isEmpty","add","element","type","removeObject","ELEMENT_SPACE","registerElementLabel","insertion"];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("0x2b")]=new Map,this._itemLabelsCallbacks=[],this._schema=t,this[os("0x5")]=e}[os("0x1")](t){const e=[];for(let n=0;n<t[os("0x7")];n++){const o=t[n];if(!o[os("0x4")])continue;let s=!1;for(const t of this[os("0x9")]){const n=t(o);if(n){os("0x14")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x1d")](e,o);const s=t[n+1];if(s&&!o[os("0x10")]().end[os("0x25")](s[os("0x10")]()[os("0x2e")])){const t=e[e[os("0x7")]-1],n=os("0x18")==o[os("0x14")]?os("0x12"):os("0xa");t&&os("0x27")==t[os("0x14")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}registerDescriptionCallback(t){this[os("0x9")][os("0x1e")](t)}[os("0x17")](t,n,o=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this[os("0x34")],{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x2c")](t,n)}[os("0x30")](t,e=1){let n;for(const e of this[os("0x34")])if(e[os("0xd")](t)){n=e[os("0x24")];break}return n||(n=this[os("0x2b")][os("0x26")](t[os("0x31")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x31")]}[os("0x1d")](t,e){const n=e[os("0x10")]().getWalker(),o=os("0x18")==e[os("0x14")]?"add":os("0xa");for(const e of n){const s=e[os("0x2f")],r=t[t[os("0x7")]-1];if(s.is("$textProxy"))r&&r[os("0x14")][os("0x23")](os("0x22"))>-1&&t.pop(),r&&"text"==r[os("0x14")]?r[o]+=s.data:t.push({type:os("0x27"),add:"add"==o?s.data:"",remove:"remove"==o?s.data:""});else if(this._schema[os("0x32")](s)){const i=s;if(r&&r[os("0x14")][os("0x23")](os("0x22"))>-1&&t.pop(),"elementEnd"==e.type)continue;r&&r[os("0x14")]==o+"Object"&&r[os("0x13")][os("0x31")]==i.name?r[os("0x3")]++:t[os("0x1e")]({type:o+os("0x2d"),element:i,quantity:1}),n[os("0xc")]((t=>!(os("0x1c")==t.type&&t[os("0x2f")]==s)))}else if(this[os("0x6")][os("0x28")](s,os("0x1a"))||s.is(os("0x13"),"softBreak")){const n=s;if(os("0x12")==o&&"elementStart"==e[os("0x14")]||os("0xa")==o&&"elementEnd"==e[os("0x14")])continue;if(r&&-1==r[os("0x14")].indexOf(os("0x22"))){os("0x27")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x12")==o?n[os("0x33")]&&!this[os("0x6")][os("0x32")](n[os("0x33")])?n[os("0x33")]:null:n[os("0x19")]&&!this[os("0x6")][os("0x32")](n[os("0x19")])?n[os("0x19")]:null,n[os("0x11")]||i&&i[os("0x11")]){const e=i&&i[os("0x11")]?i:n;r&&r.type==o+os("0xe")&&r[os("0x13")][os("0x31")]==e.name?r[os("0x3")]++:t[os("0x1e")]({type:o+"EmptyContainer",element:e,quantity:1})}else t.push({type:o+os("0x22"),element:n})}}}_resolveDescriptionItems(t){const e=this[os("0x5")],n=[];for(const o of t){switch(o.type){case os("0x27"):if(o.add=o[os("0x12")][os("0xb")](/(\S)\u000A+(\S)/g,os("0x21"))[os("0xb")](/\u000A/g,""),o[os("0xa")]=o[os("0xa")][os("0xb")](/(\S)\u000A+(\S)/g,os("0x21"))[os("0xb")](/\u000A/g,""),""!=o[os("0x12")]&&""!=o.remove){n[os("0x1e")]({type:os("0xb"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0xa")]+'"','"'+o.add+'"'])});continue}if(null!=o[os("0x12")].match(/^ +$/)){n[os("0x1e")]({type:os("0x18"),content:Yo(e,"*Insert:* %0",Yo(e,os("0x16"),o[os("0x12")].length))});continue}if(null!=o[os("0xa")][os("0x0")](/^ +$/)){n.push({type:os("0x1f"),content:Yo(e,"*Remove:* %0",Yo(e,"ELEMENT_SPACE",o[os("0xa")][os("0x7")]))});continue}if(""!=o.add){n[os("0x1e")]({type:os("0x18"),content:Yo(e,os("0x29"),'"'+o.add+'"')});continue}n[os("0x1e")]({type:os("0x1f"),content:Yo(e,"*Remove:* %0",'"'+o[os("0xa")]+'"')});continue;case"addEmptyContainer":case os("0x2"):n.push({type:"insertion",content:Yo(e,"*Insert:* %0",this.getItemLabel(o[os("0x13")],o[os("0x3")]))});continue;case"removeEmptyContainer":case os("0x15"):n[os("0x1e")]({type:os("0x1f"),content:Yo(e,os("0x2a"),this[os("0x30")](o[os("0x13")],o[os("0x3")]))});continue;case os("0x20"):n[os("0x1e")]({type:os("0x18"),content:Yo(e,os("0xf"),this.getItemLabel(o[os("0x13")],o.quantity))});continue;case os("0x1b"):n[os("0x1e")]({type:os("0x1f"),content:Yo(e,os("0x8"),this[os("0x30")](o[os("0x13")],o[os("0x3")]))});continue}n[os("0x1e")](o)}return n}}const rs=["showAIAssistant","enableCommand","get","commands","editor","TrackChangesEditing","afterInit"];var is,as;is=rs,as=389,function(t){for(;--t;)is.push(is.shift())}(++as);const xs=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[xs("0x2")](){const t=this[xs("0x0")],e=t.plugins[xs("0x5")](xs("0x1"));t[xs("0x6")][xs("0x5")](xs("0x3"))&&e[xs("0x4")](xs("0x3"))}}const ls=["commandName","afterInit","contentLanguageDirection","_descriptionFactory","value","FORMAT_ALIGN_TO_RIGHT","AlignmentEditing","alignment","commandParams","*Format:* %0","schema","locale","editor","markBlockFormat","TrackChangesEditing","get","registerDescriptionCallback","checkAttribute","enableCommand","selection","filter","FORMAT_ALIGN_TO_LEFT","right","FORMAT_ALIGN_TO_CENTER","format","left","model","plugins","ltr"];var us,ds;us=ls,ds=107,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{[gs("0xa")](){const t=this.editor,e=t[gs("0x14")];if(!t[gs("0x7")].has(gs("0xf")))return;const n=t[gs("0x7")][gs("0x18")](gs("0x17"));n[gs("0x1b")](gs("0x10"),((e,o={})=>{let s=o.value;o[gs("0xd")]||(s=gs("0x8")===t[gs("0x14")][gs("0xb")]?"left":gs("0x2"));const r=Array.from(this[gs("0x15")].model.document[gs("0x1c")].getSelectedBlocks())[gs("0x0")]((t=>function(t,e,n){const o=t.getAttribute("alignment")||null;return e[gs("0x1a")](t,gs("0x10"))&&n!=o}(t,this.editor[gs("0x6")][gs("0x13")],s)));t[gs("0x6")].change((()=>{for(const t of r)n[gs("0x16")](t,{commandName:gs("0x10"),commandParams:[{value:s}]})}))})),n[gs("0xc")][gs("0x19")]((t=>{const{data:n}=t;if(n&&gs("0x10")==n[gs("0x9")]){const t=n[gs("0x11")][0][gs("0xd")];return{type:gs("0x4"),content:Yo(e,gs("0x12"),function(t){switch(t){case gs("0x5"):return Yo(e,gs("0x1"));case gs("0x2"):return Yo(e,gs("0xe"));case"center":return Yo(e,gs("0x3"));case"justify":return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const fs=["elementEnd","toViewElement","createUIElement","start","nextSibling","insert","toViewPosition","type","ck-suggestion-marker--active","isBlock","bindElementToMarker","mapper","listIndent","parent","name","addClass","span","get","test","getItems","TrackChangesEditing","model","getAttribute","activeMarkers","markerName","includes","isContent","element","writer","markerRange","schema","getWalker","getCustomProperty","hasAttribute","listItem","item","push","previousPosition"];var hs,ps;hs=fs,ps=246,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("0x1")]())s[bs("0xf")](t)&&o[bs("0x12")](n.createRangeOn(s));return o}function _s(t){const e=[];if(t.is("element",bs("0x10"))){let n=t[bs("0x18")];for(;n&&n.is(bs("0x9"),bs("0x10"))&&n[bs("0x4")](bs("0x20"))>0;)e[bs("0x12")](n),n=n[bs("0x18")]}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[bs("0x25")](bs("0x2"));return(s,r,i)=>{if(!i.consumable[bs("0x0")](r[bs("0xb")],s[bs("0x22")]))return;const a=r[bs("0xb")][bs("0xd")](),x=r[bs("0xb")][bs("0x17")],c=t[bs("0x3")][bs("0xc")];let l=null,u=null,d=!1,g=!1;for(const t of a){const e=t[bs("0x11")];d=d||c[bs("0x8")](e);const n=i[bs("0x1f")][bs("0x15")](e);if(n&&n[bs("0xe")]("addHighlight"))return;bs("0x14")==t[bs("0x1b")]&&c[bs("0x1d")](e)&&!c.isLimit(e)&&(e[bs("0x18")]||x.isAtEnd?l&&l[bs("0x21")]==e||(l=e,m(t[bs("0x13")]),g=!0):u=u||t.previousPosition)}function m(t){const s=i.writer[bs("0x16")](bs("0x24"),{class:"ck-suggestion-marker-"+e}),a=i.mapper[bs("0x1a")](t);n&&o[bs("0x5")][bs("0x7")](r[bs("0x6")])&&i[bs("0xa")][bs("0x23")](bs("0x1c"),s),i[bs("0xa")][bs("0x19")](a,s),i[bs("0x1f")][bs("0x1e")](s,r[bs("0x6")])}d||g||!u||m(u)}}const Cs=["toLowerCase","FORMAT_ITALIC","FORMAT_UNDERLINE","superscript","format","CodeEditing","commandParams","getRanges","markInlineFormat","underline","forceValue","italic","FORMAT_CODE","code","registerDescriptionCallback","TrackChangesEditing","BoldEditing","commandName","subscript","*Format:* %0","commands","change","FORMAT_SUPERSCRIPT","isCollapsed","slice","UnderlineEditing","ItalicEditing","FORMAT_STRIKETHROUGH","StrikethroughEditing","locale","get","from","model","_descriptionFactory","SubscriptEditing"];var ys,ks;ys=Cs,ks=144,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0xc"),As("0x16"),As("0x15"),As("0x1"),As("0x18"),As("0x1e"),"SuperscriptEditing"];class Rs extends t.Plugin{afterInit(){const t=this.editor,e=t[As("0x1c")],n=t.plugins[As("0x1a")](As("0xb")),o=t[As("0x19")];for(const o of vs){if(!t.plugins.has(o))continue;const s=o[As("0x14")](0,-7)[As("0x1f")](),r=t[As("0x10")][As("0x1a")](s);n.enableCommand(s,((t,o={})=>{const i=e.document.selection;if(i[As("0x13")])return void t(o);const a=void 0!==o[As("0x6")]?o[As("0x6")]:!r.value;e[As("0x11")]((()=>{const t=Array[As("0x1b")](i[As("0x3")]());for(const o of t){const t=a?[o]:Es(s,o,e);for(const e of t)n[As("0x4")](e,{commandName:s,commandParams:[{forceValue:a}]})}}))}))}function s(t,e){n[As("0x1d")][As("0xa")]((n=>{const{data:s}=n;if(s&&s[As("0xd")]===t)return s[As("0x2")][0][As("0x6")]?{type:As("0x0"),content:Yo(o,As("0xf"),e)}:{type:As("0x0"),content:Yo(o,"*Remove format:* %0",e)}}))}s("bold",Yo(o,"FORMAT_BOLD")),s(As("0x7"),Yo(o,As("0x20"))),s(As("0x5"),Yo(o,As("0x21"))),s(As("0x9"),Yo(o,As("0x8"))),s("strikethrough",Yo(o,As("0x17"))),s(As("0xe"),Yo(o,"FORMAT_SUBSCRIPT")),s(As("0x22"),Yo(o,As("0x12")))}}const Is=["filter","TrackChangesEditing","forceValue","*Remove format:* %0","selection","getSelectedBlocks","plugins","get","format","checkChild","value","commands","locale","enableCommand","blockQuote","BlockQuoteEditing","parent","has","registerDescriptionCallback","editor","commandParams","afterInit","*Format:* %0","commandName","name","model","markBlockFormat","from"];var Ss,Ls;Ss=Is,Ls=230,function(t){for(;--t;)Ss.push(Ss.shift())}(++Ls);const Ns=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ns("0xf")](){const t=this.editor,e=t[Ns("0x6")];if(!t[Ns("0x0")][Ns("0xb")](Ns("0x9")))return;const n=t[Ns("0x0")][Ns("0x1")](Ns("0x17")),o=this.editor[Ns("0x5")][Ns("0x1")](Ns("0x8"));n[Ns("0x7")](Ns("0x8"),((e,s={})=>{const r=this[Ns("0xd")][Ns("0x13")].document[Ns("0x1a")],i=s&&void 0!==s.forceValue?s.forceValue:!o[Ns("0x4")];let a=[];if(i){const e=Array[Ns("0x15")](r[Ns("0x1b")]())[Ns("0x16")]((t=>Ms(t)||function(t,e){const n=e.checkChild(t[Ns("0xa")],Ns("0x8")),o=e[Ns("0x3")](["$root",Ns("0x8")],t);return n&&o}(t,this[Ns("0xd")][Ns("0x13")].schema)));a=I(e,t[Ns("0x13")])}else{const e=Array[Ns("0x15")](r[Ns("0x1b")]())[Ns("0x16")]((t=>Ms(t)));a=I(e,t.model)}t[Ns("0x13")].change((()=>{for(const t of a)n[Ns("0x14")](t,{commandName:Ns("0x8"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[Ns("0xc")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[Ns("0x11")]){const t=Yo(e,"ELEMENT_BLOCK_QUOTE");return n[Ns("0xe")][0][Ns("0x18")]?{type:Ns("0x2"),content:Yo(e,Ns("0x10"),t)}:{type:Ns("0x2"),content:Yo(e,Ns("0x19"),t)}}}))}}function Ms(t){return"blockQuote"==t.parent[Ns("0x12")]}const Os=["plugins","enableCommand","ckbox","afterInit","get","editor"];var Fs,Ps;Fs=Os,Ps=345,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x0")](){const t=this[Ds("0x2")];t.commands.get(Ds("0x5"))&&t[Ds("0x3")][Ds("0x1")]("TrackChangesEditing")[Ds("0x4")]("ckbox")}}const js=["*Remove format:* %0","get","has","forceValue","filter","commandParams","*Format:* %0","plugins","change","getSelectedBlocks","checkChild","language","TrackChangesEditing","_descriptionFactory","registerElementLabel","model","selection","afterInit","name","codeBlock","commandName","value","commands","label","locale","find","document","format","from","parent","ELEMENT_CODE_BLOCK","markBlockFormat","isLimit","outdentCodeBlock","enableCommand","formatBlock","languages","indentCodeBlock"];var Us,Gs;Us=js,Gs=351,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{[Hs("0x8")](){const t=this.editor;if(!t[Hs("0x24")][Hs("0x1f")]("CodeBlock"))return;const e=t[Hs("0x24")].get(Hs("0x3")),n=t[Hs("0xf")],o=t.config[Hs("0x1e")](Hs("0xa"))[Hs("0x1b")],s=t[Hs("0xd")][Hs("0x1e")](Hs("0xa"));e[Hs("0x19")](Hs("0x1c")),e[Hs("0x19")](Hs("0x18")),e[Hs("0x19")]("codeBlock",((n,r={})=>{const i=t[Hs("0x6")],a=t[Hs("0x6")][Hs("0x11")][Hs("0x7")],x=r&&void 0!==r.forceValue?r[Hs("0x20")]:!s[Hs("0xc")];let c;r.language||(r[Hs("0x2")]=o[0][Hs("0x2")]),c=x?Array[Hs("0x13")](a[Hs("0x0")]())[Hs("0x21")]((t=>{return Vs(t)||(e=t,n=i.schema,!e.is("rootElement")&&!n[Hs("0x17")](e)&&n[Hs("0x1")](e[Hs("0x14")],"codeBlock"));var e,n})):Array[Hs("0x13")](a.getSelectedBlocks())[Hs("0x21")]((t=>Vs(t)));const l=I(c,i);i[Hs("0x25")]((()=>{for(const t of l)e[Hs("0x16")](t,{commandName:Hs("0xa"),commandParams:[{...r,forceValue:x}],formatGroupId:"blockName"})}))})),e[Hs("0x4")][Hs("0x5")](Hs("0xa"),(t=>Yo(n,Hs("0x15"),t))),e[Hs("0x4")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if(Hs("0x1a")==s&&r&&"codeBlock"==r[Hs("0xb")]){const t=r.commandParams[0][Hs("0x2")],s=e(o[Hs("0x10")]((e=>e[Hs("0x2")]===t))[Hs("0xe")]);return r[Hs("0x22")][0].forceValue?{type:Hs("0x12"),content:Yo(n,Hs("0x23"),Yo(n,Hs("0x15"),1)+" ("+s+")")}:{type:Hs("0x12"),content:Yo(n,Hs("0x1d"),Yo(n,Hs("0x15"),1))}}}))}}function Vs(t){return Hs("0xa")==t[Hs("0x9")]}const Ws=["TrackChangesEditing","afterInit","CommentsEditing","plugins","get","addCommentThread"];var Ks,qs;Ks=Ws,qs=420,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Ws[t-=0]};class $s extends t.Plugin{[Xs("0x1")](){const t=this.editor;t[Xs("0x3")].has(Xs("0x2"))&&t.plugins[Xs("0x4")](Xs("0x0")).enableCommand(Xs("0x5"))}}var Js=n(181);const Qs=["get","data","rootName","forward","showSuggestionHighlights","document","unit","deleteForward","downcastDispatcher","commands","removeMarker:suggestion:deletion","selection","isCollapsed","unlock","uiElement","delete","detach","createSelection","model","enableCommand","writer","buffer","editor","editing","addMarker:suggestion:deletion","TrackChangesEditing","mapper","markerName","requires","unbindElementFromMarkerName","init","enqueueChange","fromRange","merge","start","root","batch","end","high","createRange"];var Zs,Ys;Zs=Qs,Ys=405,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("0x17")](){return[Js.Delete]}[tr("0x19")](){const t=this[tr("0x11")],e=t.plugins[tr("0x23")](tr("0x14"));e[tr("0xe")](tr("0xa"));const n=t[tr("0x4")][tr("0x23")](tr("0x2"));e.enableCommand(tr("0x2"),((e,o={})=>{const s=t.model[tr("0xc")](t.model[tr("0x0")][tr("0x6")]);s[tr("0x7")]&&t[tr("0xd")].modifySelection(s,{direction:tr("0x26"),unit:o[tr("0x1")]});const r=s.getFirstRange(),a=i.LiveRange[tr("0x1b")](r);let x;e(o),x="$graveyard"==a[tr("0x1e")][tr("0x25")]?t.model[tr("0x22")](r[tr("0x1d")]):t[tr("0xd")][tr("0x22")](a[tr("0x1d")],a[tr("0x20")]),a[tr("0xb")](),t[tr("0xd")][tr("0x1a")](n[tr("0x10")][tr("0x1f")],(t=>{n.buffer.lock(),t.setSelection(t[tr("0x22")](x.end)),n[tr("0x10")][tr("0x8")]()}))})),t.editing[tr("0x3")].on(tr("0x13"),Ts(t,tr("0x1c")),{priority:tr("0x21")}),t[tr("0x24")][tr("0x3")].on(tr("0x13"),((e,n,o)=>{o.options[tr("0x27")]&&Ts(t,tr("0x1c"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:tr("0x21")}),t[tr("0x12")][tr("0x3")].on(tr("0x5"),((t,e,n)=>{const o=n[tr("0x15")].markerNameToElements(e[tr("0x16")]);if(o)for(const t of o)t.is(tr("0x9"))&&(n.mapper[tr("0x18")](t,e.markerName),n[tr("0xf")].remove(t))}),{priority:"high"})}}const nr=["containsItem","*Format:* remove from %0","detach","model","editor","_LIST","list.multiBlock","commandParams","selection","after","commandName","next","registerDescriptionCallback","listIndent","*Change to:* %0","*Format:* insert into %0","_suggestionFactory","nodeAfter","isFirstBlockOfListItem","end","from","schema","createPositionAt","numberedList","commands","deletion","multipleBlocks","enableCommand","markMultiRangeBlockFormat","slice","add","setSelection","outdentList","parent","splitListItemAfter","listType","listItemId","get","DocumentListUtils","markBlockFormat","fromRange","config","push","ELEMENT_","getAttribute","splitListItemBefore","documentList","ELEMENT_BULLETED_LIST","bulletedList","accept","has","TrackChangesEditing","document","getSelectedBlocks","paragraph","nextSibling","getRanges","createRange","hasAttribute","length","mergeListItemForward","indentList","start","change","refresh","plugins","mergeListItemBackward","ELEMENT_LIST_ITEM","isObject","*Merge:* %0","afterInit","execute","DocumentListEditing","registerElementLabel","expandListBlocksToCompleteList","previousSibling","value","toUpperCase","getFirstRange","*Indent:* %0","formatBlock","format","forceValue","*Outdent:* %0"];var or,sr;or=nr,sr=124,function(t){for(;--t;)or.push(or.shift())}(++sr);const rr=function(t,e){return nr[t-=0]};class ir extends t.Plugin{[rr("0x1e")](){const t=this[rr("0x30")];if(!t.plugins[rr("0xa")](rr("0x20")))return;const e=t.locale,n=t.plugins[rr("0x51")](rr("0xb")),o=t[rr("0x19")][rr("0x51")](rr("0x52"));function s(e){return()=>{const s=t.commands[rr("0x51")](e);if(s[rr("0x24")]&&!t[rr("0x1")].get("list.multiBlock"))return void t[rr("0x1f")](rr("0xe"),{});let r=Array[rr("0x40")](t[rr("0x2f")][rr("0xc")][rr("0x34")][rr("0xd")]());if(x(e)){r=o[rr("0x22")](r);const t=[];for(const e of r)o[rr("0x3e")](e)&&t[rr("0x2")](e);r=t}t[rr("0x2f")].change((()=>{n[rr("0x48")](r,{commandName:e,commandParams:[{forceValue:!s[rr("0x24")]}],formatGroupId:"listType"},[],rr("0x6"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e.findIndex((t=>!t[rr("0x12")](rr("0x50"))));return n>-1&&(e=e[rr("0x49")](0,n)),e}(t[rr("0x2f")][rr("0xc")][rr("0x34")][rr("0xd")]()),s=o[o[rr("0x13")]-1],r=t[rr("0x2f")][rr("0x41")][rr("0x1c")](s)?rr("0x35"):rr("0x3f"),i=t[rr("0x2f")].createRange(t[rr("0x2f")][rr("0x42")](o[0],"before"),t[rr("0x2f")][rr("0x42")](s,r));t[rr("0x2f")][rr("0x17")]((()=>{n[rr("0x53")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[rr("0xf")];for(;t&&t[rr("0x4")](rr("0x39"))>n[rr("0x4")](rr("0x39"));)e[rr("0x4a")](t),t=t.nextSibling}return Array[rr("0x40")](e)}(o))}))}}function a(e){return()=>{const o=t[rr("0x2f")][rr("0xc")][rr("0x34")][rr("0xd")]()[rr("0x37")]()[rr("0x24")],s=t[rr("0x2f")][rr("0x42")](o,"before"),r=t[rr("0x2f")][rr("0x42")](o,0),i=t[rr("0x2f")].createRange(s,r);t[rr("0x2f")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function x(e){const n=t[rr("0x44")][rr("0x51")](rr("0x8")).value,o=t.commands[rr("0x51")](rr("0x43"))[rr("0x24")];return rr("0x43")===e?n:o}n.enableCommand(rr("0x43"),s("numberedList")),n[rr("0x47")](rr("0x8"),s(rr("0x8"))),n[rr("0x47")](rr("0x15"),r(rr("0x15"))),n[rr("0x47")](rr("0x4c"),r(rr("0x4c"))),n[rr("0x47")](rr("0x4e"),a(rr("0x4e"))),n.enableCommand(rr("0x5"),a("splitListItemBefore")),n._descriptionFactory[rr("0x21")]((function(e){const n=!t.model[rr("0x41")].isObject(e),o=e[rr("0x23")],s=e[rr("0xf")],r=e.getAttribute("listItemId"),i=!o||o[rr("0x4")]("listItemId")!==r,a=!s||s[rr("0x4")]("listItemId")!==r;return n&&Boolean(r)&&i&&a}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory[rr("0x38")]((function(n){const{data:o}=n;if(!o)return;let s,r,i,a;switch(o[rr("0x36")]){case"bulletedList":i=o[rr("0x33")][0][rr("0x2a")],a=x(o[rr("0x36")]),s=i?rr("0x3b"):"*Format:* remove from %0",!a&&t.config[rr("0x51")]("list.multiBlock")||(s=rr("0x3a")),r={type:"format",content:Yo(e,s,Yo(e,rr("0x7")))};break;case rr("0x43"):i=o[rr("0x33")][0][rr("0x2a")],a=x(o.commandName),s=rr(i?"0x3b":"0x2d"),!a&&t[rr("0x1")].get(rr("0x32"))||(s="*Change to:* %0"),r={type:"format",content:Yo(e,s,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case rr("0x15"):s=rr("0x27"),r={type:rr("0x29"),content:Yo(e,s,Yo(e,rr("0x1b")))};break;case rr("0x4c"):s=function(t){const e=t.getFirstRange();let n=e.start[rr("0x3d")];for(;n&&e[rr("0x2c")](n);){if(n[rr("0x4")](rr("0x39"))>0)return!1;n=n[rr("0xf")]}return!0}(n)?Yo(e,rr("0x2d"),Yo(e,function(t){const e=t[rr("0x26")]()[rr("0x16")][rr("0x3d")];return rr("0x3")+e[rr("0x4")](rr("0x4f"))[rr("0x25")]()+rr("0x31")}(n))):Yo(e,rr("0x2b"),Yo(e,"ELEMENT_LIST_ITEM")),r={type:"format",content:s};break;case rr("0x1a"):case rr("0x14"):!1===o[rr("0x46")]&&(s=rr("0x1d"),r={type:rr("0x45"),content:Yo(e,s,Yo(e,rr("0x1b")))})}return r})),n[rr("0x3c")].registerCustomCallback(rr("0x28"),rr("0x6"),rr("0x9"),(function(e,n){const o=[];for(let n of e)n.start.nodeAfter===n.end[rr("0x4d")]&&(n=t.model[rr("0x11")](t[rr("0x2f")][rr("0x42")](n[rr("0x16")][rr("0x3d")],0))),o[rr("0x2")](n);t[rr("0x2f")][rr("0x17")]((e=>{const s=t[rr("0x2f")].document[rr("0x34")],r=Array[rr("0x40")](s[rr("0x10")]()).map((t=>i.LiveRange[rr("0x0")](t)));e[rr("0x4b")](o),t[rr("0x44")][rr("0x51")](n[rr("0x36")])[rr("0x18")](),n[rr("0x33")][rr("0x2")]({forceDefaultExecution:!0}),t.execute(n[rr("0x36")],...n[rr("0x33")]),e.setSelection(r);for(const t of r)t[rr("0x2e")]()}))}))}}var ar=n(331);const xr=["createRange","enableCommand","document","ck-suggestion-marker-split","commands","hasClass","enterBlock","nextSibling","model","TrackChangesEditing","setSelection","fire","mapper","get","enter","markerName","writer","getFirstPosition","createPositionAt","bind","plugins","requires","parent","afterExecute","editing","selection","addMarker:suggestion:insertion","markInsertion","unbindElementFromMarkerName","init","data","showSuggestionHighlights","high","downcastDispatcher","removeMarker:suggestion:insertion","editor","end","split"];var cr,lr;cr=xr,lr=443,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return xr[t-=0]};class dr extends t.Plugin{static get[ur("0x22")](){return[ar.Enter]}[ur("0x4")](){const t=this[ur("0xa")],e=t[ur("0x21")][ur("0x1a")](ur("0x16")),n=t[ur("0x11")][ur("0x1a")](ur("0x1b"));e[ur("0xe")]("enter",(()=>{t[ur("0x15")].change((o=>{const s=t[ur("0x15")][ur("0xf")][ur("0x0")],r=s[ur("0x1e")](),a=i.LiveRange.fromRange(s.getFirstRange());if(n[ur("0x13")](o)){const n=t[ur("0x15")][ur("0x1f")](r[ur("0x23")][ur("0x14")],0),s=o[ur("0xd")](r,n);e[ur("0x2")](s)}else o[ur("0x17")](o.createRange(a[ur("0xb")]));a.detach(),n[ur("0x18")](ur("0x24"),{writer:o})}))})),t[ur("0x25")].downcastDispatcher.on(ur("0x1"),Ts(t,ur("0xc")),{priority:ur("0x7")}),t[ur("0x25")][ur("0x8")].on(ur("0x9"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[ur("0x1c")]);if(o)for(const t of o)t[ur("0x12")](ur("0x10"))&&(n[ur("0x19")][ur("0x3")](t,e[ur("0x1c")]),n[ur("0x1d")].remove(t))}),{priority:ur("0x7")}),t[ur("0x5")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,o)=>{o.options[ur("0x6")]&&Ts(t,ur("0xc"),{showActiveMarker:!1})[ur("0x20")](this)(e,n,o)}),{priority:ur("0x7")})}}const gr=["filter","editor","end","start","enableCommand","suggestion:deletion","item","findNext","get","findByTextCallback","getRange","model","handleFindCommand","_isInDeletionRange","findPrevious","plugins","getIntersection","getMarkersGroup","string","markers","FindAndReplaceUtils","createPositionAt","FindAndReplaceEditing","TrackChangesEditing"];var mr,fr;mr=gr,fr=270,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{afterInit(){if(!this.editor[hr("0x9")].has(hr("0x10")))return;const t=this.editor.plugins[hr("0x2")](hr("0x11"));t[hr("0x16")]("find",this[hr("0x6")].bind(this)),t[hr("0x16")](hr("0x1")),t.enableCommand(hr("0x8")),t[hr("0x16")]("replace"),t[hr("0x16")]("replaceAll")}handleFindCommand(t,e,n={}){const o=this[hr("0x13")].plugins[hr("0x2")](hr("0xe"));void 0!==n&&t((t=>(hr("0xc")==typeof e?o[hr("0x3")](e,n):e)(t)[hr("0x12")]((e=>!1===this[hr("0x7")](e,t[hr("0x0")])))),n)}[hr("0x7")](t,e){const n=this[hr("0x13")][hr("0x5")].createRange(this[hr("0x13")][hr("0x5")][hr("0xf")](e,t[hr("0x15")]),this[hr("0x13")][hr("0x5")].createPositionAt(e,t[hr("0x14")]));for(const t of this[hr("0x13")].model[hr("0xd")][hr("0xb")](hr("0x17")))if(null!==n[hr("0xa")](t[hr("0x4")]()))return!0;return!1}}const br=["toLowerCase","FontSize","fontBackgroundColor","TrackChangesEditing","change","*Reset font size*","document","*Set font size:* %0","model","registerDescriptionCallback","markInlineFormat","fontColor","fontFamily","*Set font family:* %0","value","editor","FontColorEditing","*Set font background color:* %0","*Reset font background color*","_enableCommand","format","locale","*Reset font family*","get","from","commandName","config","getRanges","fontColor.colors","label","isCollapsed","commandParams","title","selection","afterInit","plugins","find","fontSize"];var Er,_r;Er=br,_r=110,function(t){for(;--t;)Er.push(Er.shift())}(++_r);const Tr=function(t,e){return br[t-=0]},Cr=[{pluginName:"FontSizeEditing",commandName:"fontSize"},{pluginName:"FontFamilyEditing",commandName:Tr("0x10")},{pluginName:Tr("0x14"),commandName:"fontColor"},{pluginName:"FontBackgroundColorEditing",commandName:Tr("0x6")}];class yr extends t.Plugin{[Tr("0x0")](){const t=this[Tr("0x13")][Tr("0x19")];for(const{pluginName:t,commandName:e}of Cr)this[Tr("0x13")].plugins.has(t)&&this[Tr("0x17")](e);this[Tr("0x13")].plugins[Tr("0x1b")](Tr("0x7"))._descriptionFactory[Tr("0xd")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(Tr("0x3")==o[Tr("0x1d")]){const e=o[Tr("0x23")][0][Tr("0x12")];if(e){const o=n(this[Tr("0x13")][Tr("0x1")][Tr("0x1b")](Tr("0x5")).normalizeSizeOptions(this.editor[Tr("0x1e")][Tr("0x1b")]("fontSize.options"))[Tr("0x2")]((t=>t[Tr("0xc")]==e))[Tr("0x24")])[Tr("0x4")]();return{type:"format",content:Yo(t,Tr("0xb"),o)}}return{type:Tr("0x18"),content:Yo(t,Tr("0x9"))}}if(Tr("0x10")==o.commandName){const e=o[Tr("0x23")][0].value;return e?{type:"format",content:Yo(t,Tr("0x11"),e)}:{type:Tr("0x18"),content:Yo(t,Tr("0x1a"))}}if(Tr("0xf")==o[Tr("0x1d")]){const e=o[Tr("0x23")][0][Tr("0x12")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x13")][Tr("0x1e")].get(Tr("0x20")))[Tr("0x2")]((t=>t[Tr("0xc")]==e));let r=e,i="";return o&&(r=o[Tr("0x21")],i=n(r)[Tr("0x4")]()),{type:Tr("0x18"),content:Yo(t,"*Set font color:* %0",i).trim(),color:{value:e,title:i||r}}}return{type:Tr("0x18"),content:Yo(t,"*Reset font color*")}}if(Tr("0x6")==o[Tr("0x1d")]){const e=o[Tr("0x23")][0][Tr("0x12")];if(e){const o=(0,s.normalizeColorOptions)(this.editor.config[Tr("0x1b")]("fontBackgroundColor.colors")).find((t=>t[Tr("0xc")]==e));let r=e,i="";return o&&(r=o[Tr("0x21")],i=n(r).toLowerCase()),{type:Tr("0x18"),content:Yo(t,Tr("0x15"),i).trim(),color:{value:e,title:i||r}}}return{type:Tr("0x18"),content:Yo(t,Tr("0x16"))}}}}))}_enableCommand(t){const e=this[Tr("0x13")];e[Tr("0x1")].get(Tr("0x7")).enableCommand(t,((n,o={})=>{const s=e[Tr("0xc")][Tr("0xa")][Tr("0x25")],r=o[Tr("0x12")];s[Tr("0x22")]?n(o):e[Tr("0xc")][Tr("0x8")]((()=>{const n=Array[Tr("0x1c")](s[Tr("0x1f")]());for(const o of n){const n=r?[o]:Es(t,o,e.model);for(const o of n)e[Tr("0x1")][Tr("0x1b")](Tr("0x7"))[Tr("0xe")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const kr=["forward","model","fontColor.colors","word","boolean","commandName","isFormatting","entries","createRange","getItems","enableCommand","fontColor","charAt","createSelection","FontSize","getSelectedBlocks","format","toLowerCase","editor","modifySelection","*Remove all formatting*","from","join","afterInit","TrackChangesEditing","document","find","_descriptionFactory","label","get","isBlock","schema","getFirstPosition","config","getAttributes","toUpperCase","locale","*Set format to:* %0","split","markInlineFormat","fontBackgroundColor","plugins","fontSize","length","keys","selection","isCollapsed","getRanges","slice","normalizeSizeOptions","pasteFormat","commands","push","registerDescriptionCallback"];var Ar,vr;Ar=kr,vr=339,function(t){for(;--t;)Ar.push(Ar.shift())}(++vr);const Rr=function(t,e){return kr[t-=0]};class Ir extends t.Plugin{[Rr("0x8")](){const t=this[Rr("0x3")],n=t[Rr("0x28")],o=n[Rr("0xa")][Rr("0x1e")],s=t[Rr("0x1a")].get(Rr("0x9")),r=t.locale,i=t[Rr("0x24")][Rr("0xe")]("copyFormat"),a=t[Rr("0x24")].get(Rr("0x23"));i&&a&&(s[Rr("0x31")](Rr("0x23"),((t,r={})=>{const i=r;n.change((()=>{const t=Array[Rr("0x6")](o[Rr("0x20")]()),r=o[Rr("0x1f")]?[Sr(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("0x13")]()){const t=e.getAttributeProperties(n);t&&t[Rr("0x2d")]&&(yield n)}}(t,n));for(const e of t[Rr("0x20")]())for(const t of e[Rr("0x30")]())!n[Rr("0xf")](t)&&o(t)&&(yield t);for(const e of t[Rr("0x0")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Rr("0x10")]))||0!==Object[Rr("0x1d")](i)[Rr("0x1c")])for(const t of r)s[Rr("0x18")](t,{commandName:Rr("0x23"),commandParams:[i]})}))})),s[Rr("0xc")][Rr("0x26")]((e=>{const{data:n}=e;if(n&&Rr("0x23")===n[Rr("0x2c")]){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Rr("0x2e")](o))e[Rr("0x25")](Lr(t,n,s));return e.length?{type:Rr("0x1"),content:Yo(r,Rr("0x16"),e.join(", "))}:{type:Rr("0x1"),content:Yo(r,Rr("0x5"))}}})),t[Rr("0x1a")][Rr("0xe")](Rr("0x9")).enableCommand("copyFormat"))}}function Sr(t,e){const n=t[Rr("0x34")](e);t[Rr("0x4")](n,{unit:Rr("0x2a"),direction:"backward"});const o=n[Rr("0x11")]();t[Rr("0x4")](n,{unit:Rr("0x2a"),direction:Rr("0x27")});const s=n.getLastPosition();return t[Rr("0x2f")](o,s)}function Lr(t,e,n){const o=t[Rr("0x15")].t,r=e[Rr("0x17")](/(?=[A-Z])/)[Rr("0x7")](" "),i=o(r[Rr("0x33")](0)[Rr("0x14")]()+r[Rr("0x21")](1)).toLowerCase();if(Rr("0x2b")==typeof n)return i;if(Rr("0x32")===e||Rr("0x19")===e){const e=(0,s.normalizeColorOptions)(t[Rr("0x12")].get(Rr("0x29")))[Rr("0xb")]((t=>t[Rr("0x28")]==n));return i+" ("+(e?o(e[Rr("0xd")]).toLowerCase():n)+")"}if(Rr("0x1b")===e&&isNaN(parseFloat(n))){const e=t[Rr("0x1a")][Rr("0xe")](Rr("0x35"))[Rr("0x22")](t[Rr("0x12")].get("fontSize.options"))[Rr("0xb")]((t=>t[Rr("0x28")]==n));return i+" ("+(e?o(e.title)[Rr("0x2")]():n)+")"}return i+" ("+n+")"}const Nr=["document","selection","locale","heading.options","ELEMENT_HEADING","paragraph","blockName","enableCommand","HeadingEditing","TrackChangesEditing","registerDescriptionCallback","plugins","has","editor","change","formatBlock","model","*Change to:* %0","getSelectedBlocks","config","get","match","ELEMENT_HEADING_CUSTOM","name","filter","find","title","_descriptionFactory","schema","isObject","heading","parent","value","commandParams"];var wr,Mr;wr=Nr,Mr=338,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("0xf")],e=t[Or("0x4")],n=t[Or("0x15")][Or("0x16")](Or("0x5"));if(!t[Or("0xd")][Or("0xe")](Or("0xa")))return;const o=t[Or("0xd")][Or("0x16")](Or("0xb"));o[Or("0x9")](Or("0x20"),((e,n)=>{const s=n.value,r=Array.from(this[Or("0xf")].model[Or("0x2")][Or("0x3")][Or("0x14")]())[Or("0x1a")]((t=>{return e=t,n=s,(o=this.editor[Or("0x12")][Or("0x1e")]).checkChild(e[Or("0x21")],n)&&!o[Or("0x1f")](e)&&e[Or("0x19")]!=n;var e,n,o}));t[Or("0x12")][Or("0x10")]((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Or("0x20"),commandParams:[n],formatGroupId:Or("0x8")},_s(t))}))}));for(const t of n)Or("0x7")!=t[Or("0x12")]&&o._descriptionFactory.registerElementLabel(t[Or("0x12")],(e=>{const n=Pr(t.model);return null!==n?s(e,n):r(e,t[Or("0x1c")])}));function s(t,n){return Yo(e,Or("0x6"),[t,n])}function r(t,n){return Yo(e,Or("0x18"),[t,n])}o[Or("0x1d")][Or("0xc")]((t=>{const{type:o,data:i}=t;if(Or("0x11")==o&&i&&"heading"==i.commandName){const t=i[Or("0x1")][0][Or("0x0")],o=Pr(t);if(null!==o)return{type:"format",content:Yo(e,"*Change to:* %0",s(1,o))};const a=n[Or("0x1b")]((e=>e.model===t))[Or("0x1c")];return{type:"format",content:Yo(e,Or("0x13"),r(1,a))}}}))}}function Pr(t){const e=t[Or("0x17")](/^heading(\d+)$/);return e?e[1]:null}const Dr=["color","toLowerCase","has","editor","locale","model","highlight","value","hasAttribute","getRanges","format","push","get","backward","plugins","getFirstPosition","getLastMatchingPosition","FORMAT_HIGHLIGHT","selection","TrackChangesEditing","title","item","_descriptionFactory","commandParams","find","createRange","getAttribute","change","commandName","*Set highlight:* %0","*Remove highlight*"];var Br,jr;Br=Dr,jr=153,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("0x5")];if(!t[Ur("0x10")][Ur("0x4")]("HighlightEditing"))return;const e=t[Ur("0x10")].get(Ur("0x15"));e.enableCommand(Ur("0x8"),((n,o={})=>{const s=t[Ur("0x7")].document[Ur("0x14")],r=s[Ur("0x1c")](Ur("0x8"));let i=o[Ur("0x9")],a=[];if(s.isCollapsed){const e=s[Ur("0x11")]();if(!s[Ur("0xa")](Ur("0x8")))return void n(o);{const n=t=>t[Ur("0x17")][Ur("0x1c")](Ur("0x8"))===r,o=e[Ur("0x12")](n,{direction:Ur("0xf")}),s=e[Ur("0x12")](n);a=[t[Ur("0x7")][Ur("0x1b")](o,s)],i==r&&(i=null)}}else for(const e of s[Ur("0xb")]())i?a[Ur("0xd")](e):a[Ur("0xd")](...Es(Ur("0x8"),e,t.model));t[Ur("0x7")][Ur("0x1d")]((()=>{for(const t of a)e.markInlineFormat(t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Ur("0x6")];e[Ur("0x18")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Ur("0x8")==s[Ur("0x1e")]){const e=n.t,o=s[Ur("0x19")][0][Ur("0x9")];if(o){const s=t.config[Ur("0xe")]("highlight.options")[Ur("0x1a")]((t=>t[Ur("0x7")]==o)),r=e(s.title)[Ur("0x3")]();return{type:"format",content:Yo(n,Ur("0x0"),r),color:{value:s[Ur("0x2")],title:s[Ur("0x16")]}}}return{type:Ur("0xc"),content:Yo(n,Ur("0x1"),Yo(n,Ur("0x13")))}}}))}}const Hr=["showSuggestionHighlights","locale","_descriptionFactory","ELEMENT_HORIZONTAL_LINE","addClass","get","plugins","elementToStructure","insert","horizontalLine","high","div","afterInit","createContainerElement","has","TrackChangesEditing","editor","createPositionAt"];var zr,Vr;zr=Hr,Vr=382,function(t){for(;--t;)zr.push(zr.shift())}(++Vr);const Wr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Wr("0x8")](){const t=this[Wr("0xc")];if(!t.plugins[Wr("0xa")]("HorizontalLineEditing"))return;t[Wr("0x2")].get(Wr("0xb")).enableCommand(Wr("0x5"));const e=t[Wr("0x2")][Wr("0x1")](Wr("0xb")),n=t[Wr("0xf")];e[Wr("0x10")].registerElementLabel(Wr("0x5"),(t=>Yo(n,Wr("0x11"),t))),t.conversion.for("dataDowncast")[Wr("0x3")]({model:Wr("0x5"),view:(t,{writer:e,options:n})=>{if(!n[Wr("0xe")])return null;const o=e[Wr("0x9")](Wr("0x7")),s=e.createEmptyElement("hr");return e[Wr("0x0")]("ck-horizontal-line",o),e[Wr("0x4")](e[Wr("0xd")](o,0),s),o},converterPriority:Wr("0x6")})}}const qr=["getSelectedElement","commandName","registerDescriptionCallback","view","selection","registerElementLabel","model","TrackChangesEditing","getAttribute","editor","has","getCustomProperty","plugins","element","rawHtml","htmlEmbed","rawHtmlApi","afterInit","change","_descriptionFactory","markBlockFormat","document","locale","enableCommand","editing"];var Xr,$r;Xr=qr,$r=336,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x6")](){const t=this[Jr("0x17")];if(!t[Jr("0x1")][Jr("0x18")]("HtmlEmbed"))return;const e=t[Jr("0x1")].get(Jr("0x15")),n=t[Jr("0xb")],o=t[Jr("0xd")][Jr("0x11")][Jr("0xa")].selection;e[Jr("0x8")][Jr("0x13")]("rawHtml",(t=>Yo(n,"ELEMENT_HTML_EMBED",t))),t.plugins.get("TrackChangesEditing")[Jr("0xc")]("htmlEmbed",((n,s)=>{const r=t[Jr("0x14")],i=r[Jr("0xa")][Jr("0x12")];r[Jr("0x7")]((()=>{const t=function(t){const e=t[Jr("0xe")]();return e&&e.is(Jr("0x2"),Jr("0x3"))?t[Jr("0xe")]():null}(i);if(!t)return void n(null);const r=t[Jr("0x16")]("value")||"";void 0!==s&&s!==r&&(e[Jr("0x9")](t,{commandName:Jr("0x4"),commandParams:[s]}),o[Jr("0xe")]()[Jr("0x0")](Jr("0x5")).cancel())}))})),e[Jr("0x8")][Jr("0x10")]((t=>{const{data:e}=t;if(e&&Jr("0x4")==e[Jr("0xf")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:"format",content:Yo(n,"*Change %0 content*",t)}}}))}}const Zr=["ImageEditing","plugins","from","find","imageStyle","getNearestSelectionRange","getSuggestionCallback","commandReversedParams","isOwn","insertImage","nodeAfter","editor","caption","schema","join","getCaptionFromImageModelElement","isEqual","markInlineFormat","Users","previous","locale","detach","selection","convertBlockImageToInline","createRange","formatBlock","ELEMENT_INLINE_IMAGE","*Set image text alternative:* %0","ImageCaptionUtils","model","createRangeOn","markBlockFormat","side","accept","imageStylePreApply","start","setImageNaturalSizeAttributes","value","_splitMarkerName","toggleImageCaption","type","isInlineImage","afterInit","TrackChangesEditing","newValue","_descriptionFactory","commandName","isInContent","removeObject","ImageUtils","imageTextAlternative","change","isCollapsed","ImageUploadEditing","_suggestionFactory","commandParams","markInsertion","registerPostFixer","insertion","_findSuggestions","Block image to inline image","imageCaption","suggestion","addObject","ImageCaptionEditing","resizeImage","imageTypeBlock","discard","*Remove image text alternative*","refresh","forceDefaultExecution","forward","ImageStyleEditing","getClosestSelectedImageElement","convertInlineImageToBlock","imageStylePostApply","*Format:* %0","enableCommand","has","filter","document","get","findIndex","hasSuggestion","toLowerCase","deletion","imageInline","getChangedMarkers","getContainedElement","subType","backward","format","discardSuggestion","commands","name","nodeBefore","forEach","ELEMENT_IMAGE","ELEMENT_CAPTION","*Reset image width*","shouldConvertImageType","end","element","FORMAT_SIDE_IMAGE","isBlockImage","registerDescriptionCallback","getFirstRange","newRange","toNext","alt","chain","Inline image to block image","author","imageBlock","registerCustomCallback","registerElementLabel","imageTypeInline","next","width","getAttribute","fromPosition","resizedWidth","title","ImageTextAlternativeEditing"];var Yr,ti;Yr=Zr,ti=379,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x23")](){const t=this[ei("0x4")];if(!t[ei("0x76")].has(ei("0x75")))return;const n=t[ei("0x76")][ei("0x4a")](ei("0x24")),o=t[ei("0x76")][ei("0x4a")](ei("0x2a")),s={},r=t[ei("0xd")];if(n[ei("0x46")](ei("0x2")),n[ei("0x26")].registerElementLabel(ei("0x6a"),(t=>Yo(r,ei("0x5a"),t))),n[ei("0x26")][ei("0x6c")](ei("0x4f"),(t=>Yo(r,ei("0x13"),t))),n[ei("0x26")][ei("0x6c")](ei("0x5"),(()=>Yo(r,ei("0x5b")))),t[ei("0x76")][ei("0x47")](ei("0x2e"))&&n[ei("0x46")]("uploadImage"),t.plugins[ei("0x47")]("ImageBlockEditing")&&t[ei("0x76")][ei("0x47")]("ImageInlineEditing")&&(n[ei("0x46")](ei("0x6d"),((e,s)=>{const r=o.getClosestSelectedImageElement(t.model[ei("0x49")].selection);t[ei("0x16")][ei("0x2c")]((()=>{n[ei("0x18")](r,{commandName:ei("0x6d"),commandParams:[s]},[],ei("0x10"))}))})),n.enableCommand(ei("0x3b"),((e,s)=>{t[ei("0x16")][ei("0x2c")]((r=>{let a=o[ei("0x42")](t.model[ei("0x49")].selection),x=r[ei("0x17")](a);const c=i.LivePosition[ei("0x71")](x[ei("0x1c")],"toPrevious"),l=i.LivePosition[ei("0x71")](x[ei("0x5e")],ei("0x65"));n[ei("0x3f")]((()=>e(s))),a=o[ei("0x42")](t.model.document[ei("0xf")]),x=r[ei("0x17")](a);const u=r[ei("0x11")](c,l);c[ei("0xe")](),l[ei("0xe")](),n[ei("0x18")](a,{commandName:ei("0x6d"),commandParams:[s]},[],"convertInlineImageToBlock"),u[ei("0x1c")].isBefore(x.start)&&n[ei("0x31")](r[ei("0x11")](u[ei("0x1c")],x[ei("0x1c")]),ei("0x43")),x[ei("0x5e")].isBefore(u[ei("0x5e")])&&n[ei("0x31")](r.createRange(x[ei("0x5e")],u[ei("0x5e")]),ei("0x43"))}))})),n[ei("0x2f")][ei("0x6b")](ei("0x12"),ei("0x43"),ei("0x7"),(()=>!1)),n._suggestionFactory[ei("0x6b")]("formatBlock",ei("0x43"),"accept",(()=>!1)),n[ei("0x2f")][ei("0x6b")](ei("0x12"),ei("0x43"),ei("0x3c"),n[ei("0x2f")].getSuggestionCallback(ei("0x12"),"","accept")),n[ei("0x2f")][ei("0x6b")](ei("0x33"),ei("0x43"),ei("0x7"),(()=>!1)),n[ei("0x2f")][ei("0x6b")]("insertion","convertInlineImageToBlock",ei("0x3c"),(([e])=>{const o=n[ei("0x2f")][ei("0x7b")](ei("0x33"),"",ei("0x3c"));let s=e.start,r=e.end;const i=t[ei("0x16")][ei("0x6")][ei("0x7a")](s,ei("0x53")),a=t[ei("0x16")][ei("0x6")][ei("0x7a")](r,ei("0x40"));i[ei("0x2d")]&&(s=i[ei("0x1c")]),a[ei("0x2d")]&&(r=a[ei("0x5e")]),o([t.model.createRange(s,r)])})),n._suggestionFactory[ei("0x6b")]("formatBlock","convertInlineImageToBlock",ei("0x67"),c),n[ei("0x2f")][ei("0x6b")](ei("0x33"),ei("0x43"),ei("0x67"),c)),t[ei("0x76")][ei("0x47")](ei("0x39"))&&(n[ei("0x46")](ei("0x20"),((e,s)=>{const r=t[ei("0x76")][ei("0x4a")](ei("0x15"));let i=o[ei("0x42")](t.model[ei("0x49")][ei("0xf")]),a=r[ei("0x8")](i);t.model.change((()=>{if(a)return void n.markDeletion(t.model.createRangeOn(a));const x=o[ei("0x61")](i);e(s),i=o[ei("0x42")](t[ei("0x16")].document[ei("0xf")]),a=r.getCaptionFromImageModelElement(i),n[ei("0x31")](t[ei("0x16")][ei("0x17")](a),x?null:ei("0x36"))}))})),n._suggestionFactory[ei("0x6b")](ei("0x33"),"imageCaption","chain",c)),t[ei("0x76")].has(ei("0x41"))){n.enableCommand(ei("0x79"),((s,r)=>{const i=t[ei("0x76")][ei("0x4a")](ei("0xb")).me,a=t[ei("0x56")][ei("0x4a")](ei("0x79"));let x=o[ei("0x42")](t[ei("0x16")][ei("0x49")][ei("0xf")]),c=t.model[ei("0x17")](x),l=a[ei("0x1e")];if(l==r.value)return;const u={commandName:ei("0x79"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[ei("0x2c")]((()=>{if(n.getSuggestions()[ei("0x48")]((t=>t.isInContent&&i==t[ei("0x69")]&&("formatBlock"==t[ei("0x21")]||"formatInline"==t[ei("0x21")])&&(ei("0x1b")==t[ei("0x52")]||"imageStylePostApply"==t.subType)&&t[ei("0x63")]()[ei("0x9")](c)))[ei("0x59")]((t=>n.discardSuggestion(t.head))),x=o.getClosestSelectedImageElement(t[ei("0x16")][ei("0x49")][ei("0xf")]),c=t[ei("0x16")][ei("0x17")](x),a[ei("0x3e")](),t[ei("0x56")][ei("0x4a")](ei("0x6d"))[ei("0x3e")](),t[ei("0x56")][ei("0x4a")](ei("0x3b")).refresh(),l=a.value,l!=r[ei("0x1e")])return o[ei("0x22")](x)&&a[ei("0x5d")](r.value,x)?(s({...r,setImageSizes:!1}),x=o[ei("0x42")](t[ei("0x16")][ei("0x49")][ei("0xf")]),void n.markBlockFormat(x,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],ei("0x1b"))):void(o[ei("0x61")](x)?n[ei("0x18")](x,u,[],ei("0x44")):n[ei("0xa")](c,u,ei("0x44")))}))}));for(const e of t[ei("0x76")][ei("0x4a")](ei("0x41")).normalizedStyles)s[e[ei("0x57")]]=e[ei("0x73")][ei("0x4d")]();n[ei("0x2f")][ei("0x6b")]("formatBlock",ei("0x1b"),"join",(()=>!1)),n[ei("0x2f")][ei("0x6b")](ei("0x12"),ei("0x44"),ei("0x7"),(()=>!1)),n[ei("0x2f")][ei("0x6b")]("formatInline",ei("0x44"),ei("0x7"),(()=>!1)),n[ei("0x2f")].registerCustomCallback(ei("0x12"),"imageStylePreApply",ei("0x1a"),(([t])=>{o[ei("0x1d")](t[ei("0x51")]())})),n._suggestionFactory[ei("0x6b")]("formatBlock",ei("0x1b"),ei("0x3c"),((t,e)=>{n[ei("0x2f")][ei("0x7b")]("formatBlock","","accept")(t,{commandName:e[ei("0x27")],commandParams:e[ei("0x0")]})})),n[ei("0x2f")][ei("0x6b")]("formatBlock",ei("0x1b"),"chain",c)}const a=[{type:ei("0x12"),subType:"imageStylePreApply"},{type:ei("0x33"),subType:"imageCaption"},{type:ei("0x12"),subType:ei("0x43")},{type:ei("0x33"),subType:ei("0x43")}];function x(t,e){const s=a[ei("0x4b")]((({type:e,subType:n})=>t[ei("0x21")]==e&&t[ei("0x52")]==n)),r=a[ei("0x4b")]((({type:t,subType:n})=>e.type==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[ei("0x63")](),x=e[ei("0x63")]();if((0==s||1==s)&&2==r&&i.isIntersecting(x))return!0;if(2==s&&3==r){const t=n[ei("0x34")](i,"insertion")[ei("0x48")]((({suggestion:t,meta:e})=>e[ei("0x1")]&&ei("0x43")==t.subType));if(t.length>1&&x.end[ei("0x9")](i[ei("0x1c")]))return!0;if(1==t.length&&(i[ei("0x1c")][ei("0x9")](x[ei("0x5e")])||i[ei("0x5e")][ei("0x9")](x[ei("0x1c")])))return!0}if(3==s&&3==r&&i.start.isBefore(x[ei("0x1c")])){const t=i[ei("0x5e")][ei("0x3")],e=x[ei("0x1c")][ei("0x58")];return o[ei("0x61")](t)&&t===e}return!1}function c(t,e){return x(t,e)?[t,e]:x(e,t)?[e,t]:null}t[ei("0x16")][ei("0x49")][ei("0x32")]((()=>{let e=!1;const s=Array[ei("0x77")](t[ei("0x16")][ei("0x49")].differ[ei("0x50")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:a,id:x}=n[ei("0x1f")](t);if(ei("0x37")==s&&n[ei("0x4c")](x)){if(ei("0x12")==i&&("imageStylePreApply"==a||"imageStylePostApply"==a)){const t=n.getSuggestion(x);if(r.newRange){const s=t[ei("0x63")]()[ei("0x51")]();if(o[ei("0x61")](s))continue;n[ei("0x55")](t),e=!0}}if("insertion"==i&&"imageCaption"==a&&!r[ei("0x64")]){const t=n.getSuggestion(x);t[ei("0x6e")]&&t.next[ei("0x28")]&&(n[ei("0x55")](t.next),e=!0)}}}return e})),t[ei("0x76")][ei("0x47")]("ImageResize")&&n[ei("0x46")](ei("0x3a"),((e,s)=>{const r=o[ei("0x42")](t[ei("0x16")].document.selection);r[ei("0x70")](ei("0x72"))!=s.width&&t.model.change((()=>{n[ei("0x18")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t[ei("0x76")].has(ei("0x74"))&&n.enableCommand(ei("0x2b"),((e,s)=>{const r=o[ei("0x42")](t[ei("0x16")][ei("0x49")][ei("0xf")]);(r.hasAttribute("alt")?r[ei("0x70")](ei("0x66")):"")!=s[ei("0x25")]&&t[ei("0x16")][ei("0x2c")]((()=>{n[ei("0x18")](r,{commandName:ei("0x2b"),commandParams:[s]})}))})),n._descriptionFactory[ei("0x62")]((t=>{if(a[ei("0x78")]((({type:e,subType:n})=>t.type==e&&t[ei("0x52")]==n)))return t[ei("0xc")]?{}:void 0})),n._descriptionFactory[ei("0x62")]((t=>{if(ei("0x33")==t[ei("0x21")]||ei("0x4e")==t.type){const e=t[ei("0x51")]();if(e&&e.is(ei("0x5f"),ei("0x5")))return{type:"insertion"==t[ei("0x21")]?ei("0x38"):ei("0x29"),element:e,quantity:1}}})),n[ei("0x26")][ei("0x62")]((t=>ei("0x12")==t[ei("0x21")]&&ei("0x43")==t[ei("0x52")]?{type:ei("0x54"),content:ei("0x68")}:ei("0x12")==t[ei("0x21")]&&ei("0x10")==t[ei("0x52")]?{type:ei("0x54"),content:ei("0x35")}:void 0)),n[ei("0x26")][ei("0x62")]((t=>{const{data:e}=t;if(e){if(ei("0x79")==e.commandName){const t=e[ei("0x30")][0][ei("0x1e")];return n=ei("0x19")===t?Yo(r,ei("0x60")):s[t]||t,{type:ei("0x54"),content:Yo(r,ei("0x45"),n)}}if("imageTextAlternative"==e[ei("0x27")]){const t=e[ei("0x30")][0].newValue;return t?{type:ei("0x54"),content:Yo(r,ei("0x14"),'"'+t+'"')}:{type:"format",content:Yo(r,ei("0x3d"))}}if(ei("0x3a")==e[ei("0x27")]){const t=e.commandParams[0][ei("0x6f")];return t?{type:ei("0x54"),content:Yo(r,"*Set image width:* %0",t)}:{type:ei("0x54"),content:Yo(r,ei("0x5c"))}}}var n}))}}const oi=["author","afterInit","source","model","locale","src","commandParams","has","data","subType","accept","editor","_descriptionFactory","formatBlock","getSuggestionCallback","replaceImageSource","getContainedElement","get","enableCommand","plugins","getSelectedElement","TrackChangesEditing","ImageEditing","handleSuggestionDescription","registerCustomCallback","markBlockFormat","selection","_suggestionFactory","document","Users","handleReplaceImageCommand","getAttribute","*Format:* replace image URL","discard"];var si,ri;si=oi,ri=323,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class ai extends t.Plugin{[ii("0x12")](){if(!this[ii("0x1c")][ii("0x2")][ii("0x18")](ii("0x5")))return;const t=this[ii("0x1c")][ii("0x2")][ii("0x0")](ii("0x4"));t[ii("0x1")]("replaceImageSource",((t,e)=>this[ii("0xd")](t,e))),t[ii("0xa")][ii("0x7")](ii("0x1e"),"replaceImageSource","accept",t[ii("0xa")].getSuggestionCallback(ii("0x1e"),null,ii("0x10"))),t[ii("0xa")][ii("0x7")]("formatBlock","replaceImageSource",ii("0x10"),t._suggestionFactory[ii("0x1f")](ii("0x1e"),null,ii("0x1b"))),t[ii("0x1d")].registerDescriptionCallback((t=>this[ii("0x6")](t)))}[ii("0xd")](t,e){const n=this[ii("0x1c")][ii("0x2")][ii("0x0")](ii("0x4")),o=this[ii("0x1c")][ii("0x14")][ii("0xb")][ii("0x9")][ii("0x3")]();this[ii("0x1c")][ii("0x14")].change((()=>{let s=o[ii("0xe")](ii("0x16"));const r=this[ii("0x1c")][ii("0x2")][ii("0x0")](ii("0xc")).me;for(const t of n.getSuggestions({skipNotAttached:!0})){const e=t[ii("0x21")]();if(ii("0x20")===t[ii("0x1a")]&&e===o){t[ii("0x11")]!==r&&t.discard(),s=t[ii("0x19")][ii("0x17")][0][ii("0x13")];break}}t(e),n[ii("0x8")](o,{commandName:ii("0x20"),commandParams:[{source:s}]},[],ii("0x20"))}))}[ii("0x6")](t){const{data:e}=t;if(e&&ii("0x20")===e.commandName){const t=ii("0xf");return{type:"format",content:Yo(this.editor[ii("0x15")],t)}}}}const xi=["_handleImportedData","trackChanges","high","value","lowest","_trackChangesValueDuringImport","listenTo","forEach","track_changes","TrackChangesEditing","editor","plugins","commands","dataInsert","_setSuggestionData","execute","enableCommand","_trackChangesExecuted","get","afterInit","importWord","bind"];var ci,li;ci=xi,li=391,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return xi[t-=0]};class di extends t.Plugin{constructor(t){super(t),this[ui("0xa")]=!1,this._trackChangesExecuted=!1}[ui("0x2")](){const t=this[ui("0xf")],e=t[ui("0x11")][ui("0x1")](ui("0x3")),n=t[ui("0x11")][ui("0x1")](ui("0x6"));e&&(e.on(ui("0x14"),((t,[,e])=>{this._trackChangesValueDuringImport=n[ui("0x8")],e.collaboration_features[ui("0xd")]=!this._trackChangesValueDuringImport}),{priority:ui("0x7")}),this[ui("0xb")](e,ui("0x12"),this[ui("0x5")][ui("0x4")](this)),this[ui("0xb")](e,ui("0x12"),(()=>{this[ui("0x0")]&&(n.execute(),this._trackChangesExecuted=!1)}),{priority:ui("0x9")}),t.plugins.get(ui("0xe"))[ui("0x15")](ui("0x3")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[ui("0xf")][ui("0x11")][ui("0x1")]("trackChanges"),s=o[ui("0x8")];this[ui("0xa")]!==s&&(o[ui("0x14")](),this[ui("0x0")]=!0),n&&n[ui("0xc")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[ui("0x10")][ui("0x1")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ui("0x3")}}};this[ui("0xf")][ui("0x10")].get(ui("0xe"))[ui("0x13")](s)}))}}const gi=["markBlockFormat","schema","getItemLabel","indentBlock","IndentBlock","get","indent","*Outdent:* %0","from","outdent","enableCommand","afterInit","document","_descriptionFactory","getItems","change","editor","*Indent:* %0","has","getSelectedBlocks","plugins","checkAttribute","model","outdentBlock","registerDescriptionCallback","commandName","locale"];var mi,fi;mi=gi,fi=436,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0x7")](){const t=this[hi("0xc")],e=t[hi("0x10")][hi("0x1")]("TrackChangesEditing");t[hi("0x10")][hi("0xe")]("IndentEditing")&&(e[hi("0x6")](hi("0x2")),e.enableCommand(hi("0x5")));const n=t[hi("0x16")];if(t.plugins.has(hi("0x0"))){for(const n of[hi("0x1a"),hi("0x13")])e[hi("0x6")](n,(()=>{const o=Array[hi("0x4")](this[hi("0xc")].model[hi("0x8")].selection[hi("0xf")]()).filter((t=>this.editor[hi("0x12")][hi("0x18")][hi("0x11")](t,"blockIndent")));t[hi("0x12")][hi("0xb")]((()=>{for(const t of o)e[hi("0x17")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:hi("0x1a")})}))}));e[hi("0x9")][hi("0x14")]((t=>{const{data:o}=t;if(!o)return;if(hi("0x1a")!=o[hi("0x15")]&&"outdentBlock"!=o[hi("0x15")])return;const s=t[hi("0xa")]()[0],r=e._descriptionFactory[hi("0x19")](s);return"indentBlock"==o[hi("0x15")]?{type:"format",content:Yo(n,hi("0xd"),r)}:hi("0x13")==o[hi("0x15")]?{type:"format",content:Yo(n,hi("0x3"),r)}:void 0}))}}}var bi,Ei,_i=["editor","enableCommand","requires","input","plugins","get","TrackChangesEditing"];bi=_i,Ei=387,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);var Ti=function(t,e){return _i[t-=0]};class Ci extends t.Plugin{static get[Ti("0x0")](){return[Js.Input]}init(){this[Ti("0x5")][Ti("0x2")][Ti("0x3")](Ti("0x4"))[Ti("0x6")](Ti("0x1"))}}const yi=["editor","has","commandParams","plugins","unlink","getAttribute","commandName","getFirstRange","markInlineFormat","document","*Remove link*","selection","format","change","from","registerDescriptionCallback","TrackChangesEditing","getFirstPosition","*Set link:* %0","link","enableCommand","LinkEditing","getRanges","locale","linkHref","isCollapsed","hasAttribute","model","_descriptionFactory"];var ki,Ai;ki=yi,Ai=178,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.plugins[vi("0x1a")](vi("0x11")))return;const e=t[vi("0x1c")].get(vi("0xc"));e[vi("0x10")](vi("0xf"),((n,o)=>{const s=t[vi("0x17")][vi("0x5")][vi("0x7")];let r=[];if(s[vi("0x15")]){if(!s[vi("0x16")](vi("0x14")))return void n(o);{const e=(0,Js.findAttributeRange)(s[vi("0xd")](),vi("0x14"),s[vi("0x1")](vi("0x14")),t.model);r=[e]}}else r=Array[vi("0xa")](s[vi("0x12")]());t[vi("0x17")][vi("0x9")]((()=>{for(const t of r)e.markInlineFormat(t,{commandName:vi("0xf"),commandParams:[o]})}))})),e.enableCommand("unlink",(()=>{const n=this[vi("0x19")][vi("0x17")],o=n.document[vi("0x7")];n[vi("0x9")]((()=>{let n=[];n=o[vi("0x15")]?[(0,Js.findAttributeRange)(o[vi("0xd")](),vi("0x14"),o[vi("0x1")]("linkHref"),t[vi("0x17")])]:Es(vi("0x14"),o[vi("0x3")](),t.model);for(const t of n)e[vi("0x4")](t,{commandName:vi("0x0"),commandParams:[]})}))})),e[vi("0x18")][vi("0xb")]((e=>{const{data:n}=e,o=t[vi("0x13")];if(n){if("link"==n[vi("0x2")]){const t=n[vi("0x1b")][0];return{type:"format",content:Yo(o,vi("0xe"),'"'+t+'"')}}return"unlink"==n[vi("0x2")]?{type:vi("0x8"),content:Yo(o,vi("0x6"))}:void 0}}))}}const Ii=["checkChild","*Outdent:* %0","createRange","ELEMENT_NUMBERED_LIST","replace","nextSibling","from","createPositionAt","registerDescriptionCallback","forceValue","value","commandName","model","_descriptionFactory","length","isObject","todoList","*Change to:* %0","listType","format","plugins","indentList","document","bulletedList","previousSibling","TodoListEditing","List","markBlockFormat","checkTodoList","commandParams","add","enableCommand","selection","getAttribute","*Uncheck item*","has","locale","outdentList","name","listItem","listIndent","end","get","slice","element","numberedList","afterInit","getSelectedBlocks","commands","ELEMENT_LIST_ITEM","schema","execute","change","blockName","ELEMENT_BULLETED_LIST","todo","parent","filter","editor","paragraph"];var Si,Li;Si=Ii,Li=450,function(t){for(;--t;)Si.push(Si.shift())}(++Li);const Ni=function(t,e){return Ii[t-=0]};class wi extends t.Plugin{[Ni("0x10")](){const t=this[Ni("0x1c")],e=t[Ni("0x6")];if(!t[Ni("0x32")][Ni("0x5")]("ListEditing"))return;const n=t.plugins[Ni("0xc")]("TrackChangesEditing"),o=t.plugins[Ni("0x5")](Ni("0x37"));function s(e){return()=>{const o=t[Ni("0x2a")][Ni("0x34")][Ni("0x2")],s=t[Ni("0x12")][Ni("0xc")](e);if(s[Ni("0x28")])return void t[Ni("0x15")](Ni("0x1d"),{});const r=e[Ni("0xd")](0,-4),i=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n)[Ni("0x1e")](e[Ni("0x1a")],"listItem")&&!o[Ni("0x2d")](e);var e,o}));o=o[Ni("0x1b")]((t=>!t.is("element","listItem")||t[Ni("0x3")](Ni("0x30"))!=e));const s=new Set;for(const t of o)t.is(Ni("0xe"),"listItem")?s.add(Mi(t)):s[Ni("0x0")](t);return Array.from(s)}(o.getSelectedBlocks(),r,t.model[Ni("0x14")]);t[Ni("0x2a")].change((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[Ni("0x28")]}],formatGroupId:Ni("0x17")},Oi(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ni("0x24")](t);const n=e.findIndex((t=>Ni("0x9")!=t.name));return n>-1&&(e=e[Ni("0xd")](0,n)),e}(t[Ni("0x2a")][Ni("0x34")][Ni("0x2")][Ni("0x11")]()),s=t[Ni("0x2a")][Ni("0x20")](t[Ni("0x2a")][Ni("0x25")](o[0],"before"),t[Ni("0x2a")][Ni("0x25")](o[o[Ni("0x2c")]-1],Ni("0xb")));t.model[Ni("0x16")]((()=>{n[Ni("0x39")](s,{commandName:e,commandParams:[],formatGroupId:Ni("0xa")},function(t){const e=new Set;for(const n of t){let t=n[Ni("0x23")];for(;t&&t[Ni("0x3")](Ni("0xa"))>n[Ni("0x3")]("listIndent");)e.add(t),t=t[Ni("0x23")]}return Array[Ni("0x24")](e)}(o))}))}}n[Ni("0x1")](Ni("0xf"),s(Ni("0xf"))),n[Ni("0x1")]("bulletedList",s(Ni("0x35"))),o&&n[Ni("0x1")](Ni("0x2e"),s(Ni("0x2e"))),n.enableCommand(Ni("0x33"),r(Ni("0x33"))),n[Ni("0x1")](Ni("0x7"),r("outdentList")),o&&n[Ni("0x1")]("checkTodoList",(()=>{const e=t[Ni("0x12")][Ni("0xc")](Ni("0x3a")),o=Array[Ni("0x24")](e._selectedElements);o[Ni("0x1b")]((t=>t[Ni("0x3")]("todoListChecked")!=e.value)),t[Ni("0x2a")][Ni("0x16")]((()=>{for(const t of o)n[Ni("0x39")](t,{commandName:Ni("0x3a"),commandParams:[{forceValue:!e[Ni("0x28")]}]})}))})),n[Ni("0x2b")].registerElementLabel("listItem",(t=>Yo(e,Ni("0x13"),t))),n._descriptionFactory[Ni("0x26")]((t=>{const{data:n}=t;if(n){if(Ni("0xf")==n[Ni("0x29")]||Ni("0x35")==n[Ni("0x29")]||Ni("0x2e")==n.commandName)switch(n[Ni("0x29")][Ni("0x22")](Ni("0x38"),"")){case"bulleted":return o(Yo(e,Ni("0x18")));case"numbered":return o(Yo(e,Ni("0x21")));case Ni("0x19"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if(Ni("0x33")==n.commandName)return{type:Ni("0x31"),content:Yo(e,"*Indent:* %0",Yo(e,Ni("0x13")))};if(Ni("0x7")==n.commandName)return{type:Ni("0x31"),content:Yo(e,Ni("0x1f"),Yo(e,Ni("0x13")))};if(Ni("0x3a")==n[Ni("0x29")])return n[Ni("0x3b")][0][Ni("0x27")]?{type:Ni("0x31"),content:Yo(e,"*Check item*")}:{type:Ni("0x31"),content:Yo(e,Ni("0x4"))}}function o(t){return{type:Ni("0x31"),content:Yo(e,Ni("0x2f"),t)}}}))}}function Mi(t){const e=t.getAttribute(Ni("0xa"));if(0==e)return t;let n=t;for(;t[Ni("0x36")]&&t[Ni("0x36")].is("element","listItem");){const o=t[Ni("0x36")][Ni("0x3")](Ni("0xa"));if(o==e)n=t[Ni("0x36")];else if(o<e)break;t=t[Ni("0x36")]}return n}function Oi(t){const e=[];if(t.is(Ni("0xe"),Ni("0x9"))&&t[Ni("0x3")]("listIndent")>0){let n=t.nextSibling;for(;n&&Ni("0x9")==n[Ni("0x8")]&&n[Ni("0x3")]("listIndent")==t[Ni("0x3")]("listIndent");)e.push(n),n=n[Ni("0x23")]}return e}const Fi=["_getSuggestionBlocksForListStyle","type","listReversed","getListTypeFromListStyleType","enableCommand","length","list.properties","*Format:* set order to regular","getSiblingNodes","get","startIndex","markMultiRangeBlockFormat","plugins","*Format:* set order to reversed","replace","document","getFirstPosition","map","handleDescriptions","listType","commandParams","ListUtils","registerDescriptionCallback","parent","editor","model","handleListReversedCommand","filter","numbered","getAttribute","change","getLastPosition","bind","element","_LIST_","listItem","unshift","from","before","TrackChangesEditing","commandName","toUpperCase","format","*Change to:* %0","listStyle","_getTranslationKeyForListStyle","reversed","_descriptionFactory","createPositionAt","backward","_getSuggestionBlocks","push","forward","selection","createRange","handleListStyleCommand","handleListStartCommand","listStart"];var Pi,Di;Pi=Fi,Di=287,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("0x1b")][Bi("0xf")].has("ListPropertiesEditing"))return;const t=this[Bi("0x1b")].config[Bi("0xc")](Bi("0x9")),e=this[Bi("0x1b")][Bi("0xf")][Bi("0xc")](Bi("0x2a"));t.styles&&e.enableCommand(Bi("0x2f"),this[Bi("0x0")][Bi("0x23")](this)),t.reversed&&e[Bi("0x7")]("listReversed",this[Bi("0x1d")][Bi("0x23")](this)),t[Bi("0xd")]&&e.enableCommand(Bi("0x2"),this[Bi("0x1")].bind(this)),e[Bi("0x32")][Bi("0x19")](this[Bi("0x15")][Bi("0x23")](this))}[Bi("0x0")](t,e={}){const n=this[Bi("0x1b")].plugins[Bi("0xc")]("TrackChangesEditing"),o=this[Bi("0x3")]();this.editor[Bi("0x1c")][Bi("0x21")]((()=>{n[Bi("0xe")](o,{commandName:Bi("0x2f"),commandParams:[{type:e[Bi("0x4")]}],formatGroupId:Bi("0x2f")})}))}[Bi("0x1d")](t,e={}){const n=this[Bi("0x1b")][Bi("0xf")].get("TrackChangesEditing"),o=this[Bi("0x35")]((t=>t.is(Bi("0x24"),"listItem")&&Bi("0x1f")===t[Bi("0x20")](Bi("0x16"))));if(o[Bi("0x8")]<1)return;const s=o[Bi("0x14")]((t=>this[Bi("0x1b")][Bi("0x1c")][Bi("0x39")](this[Bi("0x1b")].model.createPositionAt(t,Bi("0x29")),this[Bi("0x1b")][Bi("0x1c")][Bi("0x33")](t,0))));this[Bi("0x1b")][Bi("0x1c")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:Bi("0x5"),commandParams:[{reversed:e[Bi("0x31")]}],formatGroupId:Bi("0x5")})}))}[Bi("0x1")](t,e={}){const n=this[Bi("0x1b")][Bi("0xf")][Bi("0xc")](Bi("0x2a")),o=this[Bi("0x35")]((t=>t.is(Bi("0x24"),Bi("0x26"))&&Bi("0x1f")===t[Bi("0x20")](Bi("0x16"))));if(o.length<1)return;const s=o[Bi("0x14")]((t=>this[Bi("0x1b")][Bi("0x1c")].createRange(this[Bi("0x1b")][Bi("0x1c")][Bi("0x33")](t,"before"),this[Bi("0x1b")][Bi("0x1c")][Bi("0x33")](t,0))));this.editor[Bi("0x1c")][Bi("0x21")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Bi("0x2"),commandParams:[{startIndex:e[Bi("0xd")]}],formatGroupId:Bi("0x2")})}))}[Bi("0x15")](t){const e=this.editor.locale,{data:n}=t;if(!n)return;let o,s;switch(n[Bi("0x2b")]){case"listStyle":o=Bi("0x2e"),s={type:"format",content:Yo(e,o,Yo(e,this[Bi("0x30")](n[Bi("0x17")][0][Bi("0x4")])))};break;case"listReversed":o=n[Bi("0x17")][0][Bi("0x31")]?Bi("0x10"):Bi("0xa"),s={type:Bi("0x2d"),content:Yo(e,o)};break;case Bi("0x2"):o="*Format:* set start index to %0",s={type:Bi("0x2d"),content:Yo(e,o,n[Bi("0x17")][0][Bi("0xd")])}}return s}[Bi("0x3")](){var t,e,n,o;const s=this[Bi("0x1b")][Bi("0xf")].get("ListUtils");let r=Array.from(this[Bi("0x1b")][Bi("0x1c")][Bi("0x12")].selection.getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is("element","listItem"))&&r[Bi("0x27")](...s[Bi("0xb")](this[Bi("0x1b")].model[Bi("0x12")][Bi("0x38")][Bi("0x13")](),Bi("0x34"))),(null===(e=r[r[Bi("0x8")]-1])||void 0===e?void 0:e.is(Bi("0x24"),Bi("0x26")))&&r[Bi("0x36")](...s.getSiblingNodes(this[Bi("0x1b")][Bi("0x1c")][Bi("0x12")][Bi("0x38")][Bi("0x22")](),"forward")),r=[...new Set(r)],(null===(o=null===(n=this.editor[Bi("0x1c")].document[Bi("0x38")][Bi("0x13")]())||void 0===n?void 0:n[Bi("0x1a")])||void 0===o?void 0:o.is("element",Bi("0x26")))&&(r=r.filter((t=>t.is("element","listItem")))),r}_getSuggestionBlocks(t){const e=this[Bi("0x1b")].plugins[Bi("0xc")](Bi("0x18"));let n=Array[Bi("0x28")](this[Bi("0x1b")][Bi("0x1c")][Bi("0x12")][Bi("0x38")].getSelectedBlocks())[Bi("0x1e")](t)[Bi("0x14")]((t=>{const n=this[Bi("0x1b")].model[Bi("0x33")](t,0);return[...e.getSiblingNodes(n,"backward"),...e[Bi("0xb")](n,Bi("0x37"))]})).flat();return n=[...new Set(n)],n}[Bi("0x30")](t){return"ELEMENT_"+this[Bi("0x1b")][Bi("0xf")][Bi("0xc")]("ListUtils")[Bi("0x6")](t).toUpperCase()+Bi("0x25")+t[Bi("0x2c")]()[Bi("0x11")](/-/g,"_")}}const Ui=["has","registerElementLabel","dataDowncast","_descriptionFactory","TrackChangesEditing","showSuggestionHighlights","editor","for","stop","options","MediaEmbedEditing","createEmptyElement","high","plugins","ELEMENT_MEDIA","enableCommand","div","data","media","afterInit","elementToElement"];var Gi,Hi;Gi=Ui,Hi=199,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Vi extends t.Plugin{[zi("0x9")](){const t=this[zi("0x11")];if(!t[zi("0x3")][zi("0xb")](zi("0x0")))return;const e=t.plugins.get(zi("0xf")),n=t.locale;e[zi("0x5")]("mediaEmbed"),e[zi("0xe")][zi("0xc")]("media",(t=>Yo(n,zi("0x4"),t))),t.conversion[zi("0x12")](zi("0xd"))[zi("0xa")]({model:zi("0x8"),view:(t,{writer:e,options:n})=>{if(n[zi("0x10")])return e[zi("0x1")](zi("0x6"))},converterPriority:zi("0x2")}),t[zi("0x7")].downcastDispatcher.on("attribute:url:media",((t,e,n)=>{n[zi("0x14")][zi("0x10")]&&t[zi("0x13")]()}),{priority:zi("0x2")})}}const Wi=["editor","mention","has","TrackChangesEditing","get","plugins"];var Ki,qi;Ki=Wi,qi=499,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Wi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0x5")];t[Xi("0x4")][Xi("0x1")]("MentionEditing")&&t[Xi("0x4")][Xi("0x3")](Xi("0x2")).enableCommand(Xi("0x0"))}}const Ji=["ELEMENT_PAGE_BREAK","enableCommand","has","PageBreakEditing","locale","_descriptionFactory","plugins","get","editor","TrackChangesEditing"];var Qi,Zi;Qi=Ji,Zi=405,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class ta extends t.Plugin{afterInit(){const t=this[Yi("0x3")];if(!t[Yi("0x1")][Yi("0x7")](Yi("0x8")))return;t.plugins.get(Yi("0x4"))[Yi("0x6")]("pageBreak");const e=t[Yi("0x1")][Yi("0x2")](Yi("0x4")),n=t[Yi("0x9")];e[Yi("0x0")].registerElementLabel("pageBreak",(t=>Yo(n,Yi("0x5"),t)))}}const ea=["end","showSuggestionHighlights","plugins","getItemLabel","ck-suggestion-marker--active","writer","commandName","checkChild","nodeAfter","markerName","downcastDispatcher","consume","parent","activeMarkers","insert","options","type","enableCommand","name","schema","selection","getFirstRange","TrackChangesEditing","editor","*Insert:* %0","paragraph","isBlock","blockName","change","markBlockFormat","isTouching","highest","registerElementLabel","registerDescriptionCallback","Paragraph","isObject","consumable","mapper","afterInit","markerRange","model","$text","get","_descriptionFactory","isLimit","addClass","filter","format","createUIElement","span","getSelectedBlocks","toViewPosition","insertion"];var na,oa;na=ea,oa=249,function(t){for(;--t;)na.push(na.shift())}(++oa);const sa=function(t,e){return ea[t-=0]};class ra extends t.Plugin{[sa("0x1")](){const t=this[sa("0x27")];if(!t[sa("0x12")].has(sa("0x32")))return;const e=t.locale,n=t.plugins.get(sa("0x26"));n[sa("0x6")][sa("0x30")](sa("0x29"),(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n[sa("0x21")](sa("0x29"),((e,o={})=>{const s=t.model.document,r=o[sa("0x24")]||s[sa("0x24")],i=Array.from(r[sa("0xd")]())[sa("0x9")]((t=>{return e=t,(n=this[sa("0x27")][sa("0x3")][sa("0x23")])[sa("0x17")](e[sa("0x1c")],"paragraph")&&!n[sa("0x33")](e)&&"paragraph"!=e[sa("0x22")];var e,n}));t[sa("0x3")][sa("0x2c")]((()=>{for(const t of i)n[sa("0x2d")](t,{commandName:"paragraph",commandParams:[],formatGroupId:sa("0x2b")},_s(t))}))})),n[sa("0x6")][sa("0x31")]((t=>{const{data:n}=t;if(n&&sa("0x29")==n[sa("0x16")])return{type:sa("0xa"),content:Yo(e,"*Change to:* %0",Yo(e,"ELEMENT_PARAGRAPH"))}})),n.enableCommand("insertParagraph"),t.editing[sa("0x1a")].on("addMarker:suggestion:insertion",ia(t),{priority:"highest"}),t.data[sa("0x1a")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[sa("0x1f")][sa("0x11")]&&ia(t,{showActiveMarker:!1})(e,n,o)}),{priority:sa("0x2f")});const o=n._descriptionFactory;o[sa("0x31")]((n=>{if(sa("0xf")!==n[sa("0x20")])return;const{start:s,end:r}=n[sa("0x25")]();if(!s[sa("0x2e")](r)||!s[sa("0x18")])return;const i=t[sa("0x3")].schema,a=s[sa("0x18")];return i[sa("0x2a")](a)&&!i[sa("0x7")](a)&&i[sa("0x17")](a,sa("0x4"))?{type:sa("0xf"),content:Yo(e,sa("0x28"),o[sa("0x13")](a,1))}:void 0}))}}function ia(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[sa("0x12")][sa("0x5")](sa("0x26")),i=o[sa("0x2")].start,a=o[sa("0x2")][sa("0x10")],x=t.model[sa("0x23")];if(!i.isTouching(a)||!i.nodeAfter)return;const c=i[sa("0x18")];if(x[sa("0x2a")](c)&&!x[sa("0x7")](c)&&x[sa("0x17")](c,"$text")){if(!s[sa("0x34")][sa("0x1b")](o[sa("0x2")],n[sa("0x22")]))return;const t=s[sa("0x15")][sa("0xb")](sa("0xc"),{class:"ck-suggestion-marker-split"}),i=s[sa("0x0")][sa("0xe")](a);e&&r[sa("0x1d")].includes(o[sa("0x19")])&&s.writer[sa("0x8")](sa("0x14"),t),s.writer[sa("0x1e")](i,t),s[sa("0x0")].bindElementToMarker(t,o.markerName)}}}const aa=["getAttributes","*Remove all formatting*","enableCommand","schema","RemoveFormatEditing","getRanges","format","afterInit","isFormatting","document","change","selection","markInlineFormat","has","getItems","getAttributeProperties","get","plugins","commandName","removeFormat","editor","model"];var xa,ca;xa=aa,ca=277,function(t){for(;--t;)xa.push(xa.shift())}(++ca);const la=function(t,e){return aa[t-=0]};class ua extends t.Plugin{[la("0x10")](){const t=this[la("0x7")];if(!t[la("0x4")][la("0x0")](la("0xd")))return;const e=t[la("0x4")][la("0x3")]("TrackChangesEditing");e[la("0xb")](la("0x6"),(n=>{const o=t[la("0x8")][la("0x12")][la("0x14")];o.isCollapsed?n():t[la("0x8")][la("0x13")]((()=>{const n=Array.from(o[la("0xe")]());for(const o of n)for(const n of o[la("0x1")]())da(n,t[la("0x8")][la("0xc")])&&e[la("0x15")](t[la("0x8")].createRangeOn(n),{commandName:la("0x6"),commandParams:[]})}))})),e._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e;if(n&&la("0x6")==n[la("0x5")])return{type:la("0xf"),content:Yo(t.locale,la("0xa"))}}))}}function da(t,e){for(const[n]of t[la("0x9")]()){const t=e[la("0x2")](n);if(t&&t[la("0x11")])return!0}return!1}const ga=["TrackChangesEditing","trackChanges","acceptSelectedSuggestions","discardSuggestion","enableCommand","acceptAllSuggestions","RestrictedEditingModeEditing","afterInit","plugins","discardAllSuggestions","discardSelectedSuggestions","goToPreviousRestrictedEditingException","editor","get"];var ma,fa;ma=ga,fa=339,function(t){for(;--t;)ma.push(ma.shift())}(++fa);const ha=function(t,e){return ga[t-=0]};class pa extends t.Plugin{[ha("0x4")](){const t=this[ha("0x9")];if(!t.plugins.has(ha("0x3")))return;const e=t[ha("0x5")].get(ha("0xb"));e[ha("0x1")](ha("0x8")),e.enableCommand("goToNextRestrictedEditingException");const n=t[ha("0x5")][ha("0xa")](ha("0x3"));n[ha("0x1")](ha("0xc")),n[ha("0x1")]("acceptSuggestion"),n[ha("0x1")](ha("0x0")),n.enableCommand(ha("0x2")),n[ha("0x1")](ha("0x6")),n[ha("0x1")](ha("0xd")),n[ha("0x1")](ha("0x7"))}}const ba=["showSuggestionHighlights","ck-suggestion-marker-","element","ELEMENT_LINE_BREAK","span","high","markerRange","enableCommand","editing","downcastDispatcher","softBreak","plugins","editor","createPositionBefore","TrackChangesEditing","get","model","split","data","addMarker:suggestion","markerName","shiftEnter","includes","bindElementToMarker","addMarker:suggestion:insertion","ck-suggestion-marker--active","test","name","registerElementLabel","insert","writer","activeMarkers","deletion","toViewPosition"];var Ea,_a;Ea=ba,_a=388,function(t){for(;--t;)Ea.push(Ea.shift())}(++_a);const Ta=function(t,e){return ba[t-=0]};class Ca extends t.Plugin{static get requires(){return[ar.ShiftEnter]}init(){const t=this[Ta("0x20")],e=t[Ta("0x1f")][Ta("0x1")](Ta("0x0"));e[Ta("0x1b")](Ta("0x7")),t[Ta("0x1c")][Ta("0x1d")].on(Ta("0xa"),ya(t),{priority:"high"}),t.editing[Ta("0x1d")].on("addMarker:suggestion:deletion",ya(t),{priority:Ta("0x19")}),t[Ta("0x4")][Ta("0x1d")].on(Ta("0x5"),((e,n,o)=>{o.options[Ta("0x14")]&&ya(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[Ta("0xe")]("softBreak",(e=>Yo(t.locale,Ta("0x17"),e)))}}function ya(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Ta("0x1f")][Ta("0x1")](Ta("0x0"));if(!s.consumable[Ta("0xc")](o[Ta("0x1a")],n[Ta("0xd")]))return;const i=t[Ta("0x2")];for(const t of o.markerRange.getItems()){if(!t.is(Ta("0x16"),Ta("0x1e")))continue;const n=Ta("0x12")==o[Ta("0x6")][Ta("0x3")](":")[1]?"merge":"split",a=s[Ta("0x10")].createUIElement(Ta("0x18"),{class:Ta("0x15")+n}),x=s.mapper[Ta("0x13")](i[Ta("0x21")](t));e&&r[Ta("0x11")][Ta("0x8")](o[Ta("0x6")])&&s[Ta("0x10")].addClass(Ta("0xb"),a),s[Ta("0x10")][Ta("0xf")](x,a),s.mapper[Ta("0x9")](a,o[Ta("0x6")])}}}const ka=["restrictedEditingException","FORMAT_RESTRICTED_DISABLED","format","selection","StandardEditingModeEditing","document","plugins","markInlineFormat","locale","FORMAT_RESTRICTED_ENABLED","_descriptionFactory","forceValue","commands","isCollapsed","editor","value","afterInit","get","commandName","model","change","enableCommand"];var Aa,va;Aa=ka,va=335,function(t){for(;--t;)Aa.push(Aa.shift())}(++va);const Ra=function(t,e){return ka[t-=0]};class Ia extends t.Plugin{[Ra("0xb")](){const t=this[Ra("0x9")],e=t[Ra("0xe")],n=t[Ra("0x3")];if(!t[Ra("0x1")].has(Ra("0x15")))return;const o=t[Ra("0x1")][Ra("0xc")]("TrackChangesEditing"),s=Ra("0x11"),r=t[Ra("0x7")].get(s);o[Ra("0x10")](s,((t,n={})=>{const i=e[Ra("0x0")][Ra("0x14")];if(i[Ra("0x8")])return void t(n);const a=void 0!==n[Ra("0x6")]?n[Ra("0x6")]:!r[Ra("0xa")];e[Ra("0xf")]((()=>{const t=Array.from(i.getRanges());for(const n of t){const t=a?[n]:Es(s,n,e);for(const e of t)o[Ra("0x2")](e,{commandName:s,commandParams:[{forceValue:a}]})}}))})),o[Ra("0x5")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e[Ra("0xd")]==s)return e.commandParams[0][Ra("0x6")]?{type:Ra("0x13"),content:Yo(n,Ra("0x4"))}:{type:Ra("0x13"),content:Yo(n,Ra("0x12"))}}))}}const Sa=["model","_getStyleDefinition","_descriptionFactory","afterInit","get","from","commandParams","isCollapsed","*Format:* %0","TrackChangesEditing","selection","find","plugins","change","includes","getDefinitionsForView","style.definitions","getRanges","classes","markInlineFormat","push","toLowerCase","isBlock","commandName","value","format","add","style","inline","registerDescriptionCallback","enableCommand","getItems","style:","name","StyleUtils","markBlockFormat","block","has","config","normalizeConfig","every","editor","document","_getRangesWithClasses","locale","styleName","*Remove format:* %0","enabledStyles","Style","forceValue"];var La,Na;La=Sa,Na=214,function(t){for(;--t;)La.push(La.shift())}(++Na);const wa=function(t,e){return Sa[t-=0]};class Ma extends t.Plugin{[wa("0x27")](){const t=this[wa("0x1b")];if(!t[wa("0x30")][wa("0x17")](wa("0x22")))return;const e=t.commands[wa("0x28")]("style"),n=t[wa("0x30")][wa("0x28")](wa("0x2d")),o=t[wa("0x1e")],s=t.plugins[wa("0x28")]("DataSchema"),r=t[wa("0x30")][wa("0x28")](wa("0x14"))[wa("0x19")](s,t[wa("0x18")][wa("0x28")](wa("0x2")));n[wa("0x10")](wa("0xd"),((o,{styleName:i})=>{const a=t[wa("0x24")][wa("0x1c")][wa("0x2e")],x=this[wa("0x25")](i,r);if(!x)return;if(!e[wa("0x21")][wa("0x0")](i))return;if(a[wa("0x2b")]&&!x[wa("0x8")])return void o({styleName:i});const c=!e[wa("0xa")][wa("0x0")](x.name);if(x[wa("0x8")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[wa("0x0")](o.name)){n[wa("0xc")](o);break}}return n}(a.getSelectedBlocks(),x.modelElements);t[wa("0x24")][wa("0x31")]((()=>{for(const t of e)n[wa("0x15")](t,{commandName:wa("0xd"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:wa("0x12")+i})}))}else{let e=Array[wa("0x29")](a[wa("0x3")]());if(!c){const n=Array.from(s[wa("0x1")](x.element,!1))[0][wa("0x24")],o=[];for(const s of e){const e=this[wa("0x1d")](t[wa("0x24")],s,x.classes,n);o[wa("0x6")](...e)}e=o}t[wa("0x24")].change((()=>{for(const t of e)n[wa("0x5")](t,{commandName:wa("0xd"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[wa("0x26")][wa("0xf")]((t=>{const{data:e}=t;if(e&&wa("0xd")===e[wa("0x9")])return e[wa("0x2a")][0][wa("0x23")]?{type:wa("0xb"),content:Yo(o,wa("0x2c"),e[wa("0x2a")][0][wa("0x1f")].toLowerCase())}:{type:"format",content:Yo(o,wa("0x20"),e[wa("0x2a")][0].styleName[wa("0x7")]())}}))}[wa("0x25")](t,e){let n=e[wa("0x16")][wa("0x2f")]((e=>e[wa("0x13")]===t));return n||(n=e[wa("0xe")][wa("0x2f")]((e=>e.name===t))),n}[wa("0x1d")](t,e,n,o){const s=[];for(const r of e[wa("0x11")]()){const e=r.getAttribute(o);e&&n[wa("0x1a")]((t=>e[wa("0x4")][wa("0x0")](t)))&&s.push(t.createRangeOn(r))}return s}}const Oa=["order","change","tableCell","subType","name","rootName","enqueueChange","toViewElement","get","change:data","ELEMENT_TABLE","selection","registerDescriptionCallback","_suggestionFactory","getRowIndexes","accept","isArray","startsWith","MIN_SAFE_INTEGER","$textProxy","cell","detach","TrackChangesEditing","rowspan","enableCommand","removeTableColumn","tablePaste","findAncestor","end","insertTableColumnRight","refresh","registerCustomCallback","getSuggestion","*Insert:* %0","toLowerCase","suggestion","_tableSuggestions","from","*Remove:* %0","values","type","length","getItems","last","maxColumn","position","discard","insertTable","editor","every","first","addMarker:suggestion","min","filter","_getCoordsForCells","minRow","includes","options","map","TableEditing","isEqual","createTableWalker","tableColumn","minColumn","isTouching","downcastDispatcher","isIntersectingWithRange","addRange","createRangeOn","ELEMENT_TABLE_COLUMN","above","getRanges","addClass","push","data","insertTableColumnLeft","root","TableUtils","setSelection","$graveyard","execute","max","plugins","createRangeIn","mapper","removeTableRow","item","start","getColumnIndexes","removeClass","createPositionAt","low","nodeAfter","markMultiRangeInsertion","deletion","commands","tableRow","table","_splitMarkerName","_tablePostFixingSubtypes","ELEMENT_TABLE_COLUMN_WITH_TEXT","substr","ELEMENT_TABLE_ROW_WITH_TEXT","document","_descriptionFactory","insertion","insert","differ","registerElementLabel","_getSuggestionCoords","fromRange","join","some","getAttribute","MAX_SAFE_INTEGER","getFirstRange","hasAttribute","insertTableRowAbove","batch","has","colspan","registerPostFixer","getCellLocation","writer","_setupColumnsRowsFixing","model","maxRow","getSelectionAffectedTableCells","ELEMENT_TABLE_WITH_TEXT"];var Fa,Pa;Fa=Oa,Pa=203,function(t){for(;--t;)Fa.push(Fa.shift())}(++Pa);const Da=function(t,e){return Oa[t-=0]};class Ba extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Da("0x16"),Da("0x75")],this[Da("0x5b")]=new Set}afterInit(){const t=this[Da("0x67")],e=t.model[Da("0x1d")][Da("0x42")];if(!t[Da("0x8")][Da("0x2d")](Da("0x72")))return;const n=t.locale,o=t[Da("0x8")][Da("0x3f")](Da("0x4d")),s=t[Da("0x8")][Da("0x3f")](Da("0x3"));o[Da("0x1e")][Da("0x22")](Da("0x17"),(t=>Yo(n,Da("0x41"),t))),this[Da("0x32")](),o[Da("0x4f")](Da("0x66")),o[Da("0x4f")]("selectTableRow"),o.enableCommand("selectTableColumn");for(const n of[Da("0x2b"),"insertTableRowBelow"]){const r=t.commands[Da("0x3f")](n);o[Da("0x4f")](n,(n=>{t.model[Da("0x38")]((t=>{n();const i=Da("0x7d")===r[Da("0x37")],a=s[Da("0x35")](e),x=s[Da("0x45")](a),c=i?x[Da("0x69")]-1:x[Da("0x62")]+1,l=a[0][Da("0x52")]("table"),u=s[Da("0x74")](l,{startRow:c,endRow:c}),d=Array.from(u)[Da("0x71")]((e=>t[Da("0x7b")](e.cell)));o[Da("0x13")](d,Da("0x16"))}))}))}for(const n of[Da("0x1"),Da("0x54")]){const r=t[Da("0x15")][Da("0x3f")](n);o[Da("0x4f")](n,(n=>{t[Da("0x33")][Da("0x38")]((t=>{n();const i="left"===r[Da("0x37")],a=s[Da("0x35")](e),x=s[Da("0xe")](a),c=i?x[Da("0x69")]-1:x[Da("0x62")]+1,l=a[0].findAncestor(Da("0x17")),u=s[Da("0x74")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Da("0x5c")](u)[Da("0x71")]((e=>t.createRangeOn(e[Da("0x4b")])));o[Da("0x13")](d,"tableColumn")}))}))}for(const n of[Da("0xb"),Da("0x50")]){const r=n.substr(11),i=r.toLowerCase(),a=i[Da("0x1b")](0,3)+"span",x=Da("0x17")+r,c=Da("0x6b")+r,l=Da("0x7")+r;o[Da("0x4f")](n,(()=>{t[Da("0x33")][Da("0x38")]((t=>{const r=s[Da("0x35")](e),u=r[0][Da("0x52")]("table");let d;if("removeTableRow"==n){const t=s[Da("0x45")](r);d={startRow:t.first,endRow:t[Da("0x62")],includeAllSlots:!0}}else{const t=s[Da("0xe")](r);d={startColumn:t[Da("0x69")],endColumn:t[Da("0x62")],includeAllSlots:!0}}const g=s[Da("0x74")](u,d),m=Array[Da("0x5c")](g).map((({cell:t})=>t)),f=ja(m[Da("0x6c")]((t=>t[Da("0x2a")](a)))),h=ja(m[Da("0x6c")]((t=>!t[Da("0x2a")](a))))[Da("0x71")]((e=>t.createRangeOn(e))),p=o.markMultiRangeDeletion(h,x);if(p&&(Da("0x16")==p[Da("0x3a")]||Da("0x75")==p[Da("0x3a")])){const e=this[Da("0x23")](p);for(const n of f){const o=t[Da("0x7b")](n),r=s[Da("0x30")](n),x=n[Da("0x27")](a)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+x<=d&&p[Da("0x7a")](o)}}}))}))}function r(n){const o=Array[Da("0x5c")](e[Da("0x7e")]())[Da("0x71")]((t=>i.LiveRange[Da("0x24")](t)));t[Da("0x33")][Da("0x38")]((e=>{const s=e[Da("0x2c")];n=n[Da("0x6c")]((t=>Da("0x5")!=t[Da("0x2")][Da("0x3c")])),e.setSelection(n),t[Da("0x15")][Da("0x3f")](Da("0xb"))[Da("0x55")](),t[Da("0x6")]("removeTableRow",{forceDefaultExecution:!0}),t[Da("0x33")][Da("0x3d")]((()=>{t[Da("0x33")][Da("0x3d")](s,(t=>{const e=o[Da("0x6c")]((t=>Da("0x5")!=t[Da("0x2")][Da("0x3c")]));e[Da("0x60")]>0&&t[Da("0x4")](e);for(const t of o)t[Da("0x4c")]()}))}))}))}function x(n){t[Da("0x33")][Da("0x38")]((o=>{const s=Array.from(e.getRanges())[Da("0x71")]((t=>i.LiveRange[Da("0x24")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Da("0x80")](e);for(const e of r)"$graveyard"!=e[Da("0x2")][Da("0x3c")]&&(o[Da("0x4")](o[Da("0x10")](e,0)),t.commands[Da("0x3f")](Da("0x50"))[Da("0x55")](),t.execute(Da("0x50"),{forceDefaultExecution:!0}));const a=s.filter((t=>"$graveyard"!=t.root[Da("0x3c")]));a[Da("0x60")]>0&&o[Da("0x4")](a);for(const t of s)t[Da("0x4c")]()}))}function c(t,e){return e[Da("0x68")]((e=>t[Da("0x26")]((t=>t.end[Da("0x73")](e[Da("0xd")])||e.end[Da("0x73")](t.start)))))}function l(t,e){return t[Da("0x26")]((t=>e.some((e=>t[Da("0x53")][Da("0x77")](e.start)))))}t.data[Da("0x78")].on(Da("0x6a"),((t,e,n)=>{if(!n[Da("0x70")].showSuggestionHighlights)return;const o=e[Da("0xc")];if(!o)return;const s=n[Da("0xa")][Da("0x3e")](o);function r(t){return Array[Da("0x47")](t)?t:[t]}s&&Da("0x39")===o.name&&(0,a.setHighlightHandling)(s,n[Da("0x31")],((t,e,n)=>n[Da("0x7f")](r(e.classes),t)),((t,e,n)=>n[Da("0xf")](r(e.classes),t)))}),{priority:"highest"}),o[Da("0x1e")][Da("0x43")]((t=>{if(Da("0x1f")!=t[Da("0x5f")]&&Da("0x14")!=t.type)return;const e=t.getContainedElement();if(null!=e&&e.is("element",Da("0x17"))){if(Da("0x1f")==t[Da("0x5f")]){const e=t[Da("0x61")]()[Da("0x6c")]((t=>t.is(Da("0x4a"))))[Da("0x71")]((t=>t[Da("0x0")]));if(e[Da("0x60")])return{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Da("0x36"),'"'+e[Da("0x25")](" ")+'"'))}}if(Da("0x14")==t[Da("0x5f")]){const e=t[Da("0x61")]()[Da("0x6c")]((t=>t.is(Da("0x4a"))))[Da("0x71")]((t=>t.data));if(e[Da("0x60")])return{type:Da("0x14"),content:Yo(n,Da("0x5d"),Yo(n,Da("0x36"),'"'+e[Da("0x25")](" ")+'"'))}}}})),o._descriptionFactory[Da("0x43")]((t=>{if(Da("0x16")==t[Da("0x3a")]){const e=t.getItems().filter((t=>t.is(Da("0x4a")))).map((t=>t[Da("0x0")])),o=this[Da("0x23")](t),s=o[Da("0x34")]-o[Da("0x6e")]+1;if("insertion"==t[Da("0x5f")])return e[Da("0x60")]?{type:"insertion",content:Yo(n,Da("0x58"),Yo(n,Da("0x1c"),[s,'"'+e[Da("0x25")](" ")+'"']))}:{type:Da("0x1f"),content:Yo(n,Da("0x58"),Yo(n,"ELEMENT_TABLE_ROW",s))};if(Da("0x14")==t[Da("0x5f")])return e.length?{type:Da("0x14"),content:Yo(n,Da("0x5d"),Yo(n,Da("0x1c"),[s,'"'+e[Da("0x25")](" ")+'"']))}:{type:Da("0x14"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Da("0x75")==t[Da("0x3a")]){const e=t[Da("0x61")]().filter((t=>t.is(Da("0x4a"))))[Da("0x71")]((t=>t[Da("0x0")])),o=this[Da("0x23")](t),s=o[Da("0x63")]-o[Da("0x76")]+1;if("insertion"==t.type)return e[Da("0x60")]?{type:Da("0x1f"),content:Yo(n,Da("0x58"),Yo(n,Da("0x1a"),[s,'"'+e[Da("0x25")](" ")+'"']))}:{type:"insertion",content:Yo(n,Da("0x58"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(Da("0x14")==t[Da("0x5f")])return e.length?{type:Da("0x14"),content:Yo(n,"*Remove:* %0",Yo(n,Da("0x1a"),[s,'"'+e.join(" ")+'"']))}:{type:Da("0x14"),content:Yo(n,Da("0x5d"),Yo(n,Da("0x7c"),s))}}})),o[Da("0x44")][Da("0x56")]("insertion",Da("0x16"),Da("0x65"),r),o[Da("0x44")][Da("0x56")](Da("0x14"),Da("0x16"),Da("0x46"),r),o[Da("0x44")].registerCustomCallback(Da("0x1f"),Da("0x75"),Da("0x65"),x),o[Da("0x44")].registerCustomCallback("deletion",Da("0x75"),"accept",x),o[Da("0x44")][Da("0x56")](Da("0x1f"),Da("0x75"),Da("0x25"),c),o[Da("0x44")].registerCustomCallback(Da("0x14"),"tableColumn",Da("0x25"),c),o[Da("0x44")][Da("0x56")](Da("0x1f"),Da("0x16"),Da("0x25"),l),o[Da("0x44")][Da("0x56")](Da("0x14"),Da("0x16"),Da("0x25"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Da("0x67")],e=t[Da("0x33")].document.selection;return(n,o)=>{t[Da("0x33")][Da("0x38")]((s=>{const{commandName:r,commandParams:a}=o;let x=n[0][Da("0x53")].nodeBefore;a&&a[0]&&!1===a[0].forceValue&&(x=n[0][Da("0xd")][Da("0x12")]);const c=s[Da("0x9")](x);if("$graveyard"==c.root[Da("0x3c")])return;const l=Array[Da("0x5c")](e.getRanges())[Da("0x71")]((t=>i.LiveRange[Da("0x24")](t)));s[Da("0x4")](c),t.commands.get(r)[Da("0x55")](),a[Da("0x80")]({forceDefaultExecution:!0}),t[Da("0x6")](r,...a);const u=l.filter((t=>Da("0x5")!=t.root.rootName));u.length>0&&s[Da("0x4")](u);for(const t of l)t[Da("0x4c")]()}))}}[Da("0x6d")](t){const e=this[Da("0x67")][Da("0x8")][Da("0x3f")](Da("0x3"));let n=Number[Da("0x28")],o=Number[Da("0x49")],s=Number[Da("0x28")],r=Number[Da("0x49")];for(const i of t){if("$graveyard"==i[Da("0x2")][Da("0x3c")])continue;const{row:t,column:a}=e[Da("0x30")](i),x=i[Da("0x2a")](Da("0x4e"))?i[Da("0x27")]("rowspan")-1:0,c=i[Da("0x2a")](Da("0x2e"))?i[Da("0x27")]("colspan")-1:0;n=t<n?t:n,o=t+x>o?t+x:o,s=a<s?a:s,r=a+c>r?a+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Da("0x32")](){const t=this[Da("0x67")],e=t.plugins[Da("0x3f")]("TrackChangesEditing"),n=t[Da("0x8")][Da("0x3f")]("TableUtils");t[Da("0x33")][Da("0x1d")].on(Da("0x40"),(()=>{const n=Array[Da("0x5c")](t[Da("0x33")][Da("0x1d")][Da("0x21")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Da("0x18")](t);if(Da("0x5a")!=n)continue;if(null!=o.oldRange)continue;const i=e[Da("0x57")](s);this[Da("0x19")][Da("0x6f")](r)&&this[Da("0x5b")].add(i)}}),{priority:Da("0x11")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t.findAncestor(Da("0x17")),i=n.getCellLocation(t);for(const e of this[Da("0x5b")]){const n=e[Da("0x3a")],a=n[Da("0x48")](Da("0x51")),x=n[Da("0x1b")](a?10:5),c=x[Da("0x59")](),l=c[Da("0x1b")](0,3)+"span",u=Da("0x6b")+x,d=Da("0x7")+x;if(!e.isInContent)continue;if(r!=e[Da("0x29")]()[Da("0xd")].findAncestor(Da("0x17")))continue;if(e[Da("0x79")](s))continue;const g=t.hasAttribute(l)?t[Da("0x27")](l)-1:0,m=this[Da("0x23")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e.addRange(s),o=!0)}return o};t[Da("0x33")][Da("0x1d")][Da("0x2f")]((e=>{let n=!1;for(const s of t[Da("0x33")][Da("0x1d")][Da("0x21")].getChanges())if(Da("0x20")==s.type)if("tableRow"==s[Da("0x3b")])for(const t of s[Da("0x64")][Da("0x12")].getChildren())n=n||o(t,e);else Da("0x39")==s[Da("0x3b")]&&(n=n||o(s[Da("0x64")][Da("0x12")],e));return n}))}[Da("0x23")](t){return this[Da("0x6d")](t[Da("0x7e")]()[Da("0x71")]((t=>t.start[Da("0x12")])))}}function ja(t){return Array.from(new Set(t)[Da("0x5e")]())}const Ua=["stop","TableUtils","detach","has","map","createTableWalker","isEnabled","_acceptFormatSuggestionCallbackFactory","getCellLocation","*Merge cells*","document","element","value","selection","cell","findAncestor","splitTableCellHorizontally","_isForcedDefaultExecutionBlock","_areSelectedCellsMergable","fromRange","add","return","direction","*Split cell:* horizontally","table","mergeTableCells","from","*Split cell:* vertically","getFirstPosition","editor","_descriptionFactory","getRanges","mergeTableCellUp","subType","mergeTableCellDown","formatBlock","splitTableCellVertically","registerCustomCallback","afterInit","accept","tableCell","size","author","format","change","getSelectionAffectedTableCells","deletion","model","commandName","low","forceDefaultExecution","plugins","set:isEnabled","_suggestionFactory","mergeTableCellLeft","TableEditing","locale","length","setSelection","markBlockFormat","_tablePostFixingSubtypes","registerDescriptionCallback","commands","highest","get","getAncestors","_areMergableCells","createRangeOn","trackChanges","type","mergeTableCellRight","TrackChangesEditing","enableCommand","find","horizontally"];var Ga,Ha;Ga=Ua,Ha=310,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Va extends t.Plugin{static get requires(){return[Ba]}[za("0x1c")](){const t=this[za("0x13")],e=t[za("0x25")].document[za("0x3")],n=t[za("0x2e")];if(!t.plugins.has(za("0x2d")))return;const o=t[za("0x29")][za("0x36")](za("0x3d")),s=t[za("0x29")][za("0x36")](za("0x42")),r=t.plugins[za("0x36")](Ba);r[za("0x32")].push(za("0xf")),o.enableCommand(za("0xf"),(()=>{const e=s[za("0x23")](t[za("0x25")][za("0x0")][za("0x3")]);t.model[za("0x22")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:za("0xf"),commandParams:[]},[],za("0xf"))}))})),t[za("0x34")][za("0x36")](za("0xf")).on("execute",((e,n)=>{t[za("0x34")].get(za("0x3a"))[za("0x2")]&&(n[za("0x2f")]>0&&n[n[za("0x2f")]-1]&&n[n.length-1][za("0x28")]||o[za("0x7")]||this._areSelectedCellsMergable()||e[za("0x41")]())}),{priority:za("0x35")});for(const e of[za("0x16"),"mergeTableCellRight",za("0x18"),"mergeTableCellLeft"]){const n=t[za("0x34")].get(e);o[za("0x3e")](e,(()=>{const e=t[za("0x25")].document[za("0x3")].getFirstPosition()[za("0x37")]()[za("0x3f")]((t=>t.is(za("0x1"),za("0x1e")))),s=n[za("0x2")];t[za("0x25")][za("0x22")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:za("0xf"),commandParams:[]},[],za("0xf"))}))}))}for(const e of[za("0x1a"),za("0x6")]){const n=t[za("0x34")][za("0x36")](e);o.enableCommand(e,(()=>{const r=s[za("0x23")](t[za("0x25")][za("0x0")][za("0x3")])[0],i=r[za("0x5")](za("0xe")),{column:a,row:x}=s[za("0x49")](r);let c=[];if(za("0x40")==n[za("0xc")]){const t=s[za("0x46")](i,{startRow:x,endRow:x,includeAllSlots:!0});c=Array[za("0x10")](t).map((t=>t.cell))}else{const t=s[za("0x46")](i,{column:a,includeAllSlots:!0});c=Array.from(t)[za("0x45")]((t=>t[za("0x4")]))}t[za("0x25")].change((t=>{o[za("0x31")](t[za("0x39")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[za("0x14")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return za("0xf")==e[za("0x26")]?{type:za("0x21"),content:Yo(n,za("0x4a"))}:void 0})),o[za("0x14")][za("0x33")]((t=>{const{data:e}=t;if(e)return za("0x1a")==e[za("0x26")]?{type:za("0x21"),content:Yo(n,za("0x11"))}:za("0x6")==e[za("0x26")]?{type:"format",content:Yo(n,za("0xd"))}:void 0}));const a=r[za("0x48")]();for(const t of[za("0x16"),za("0x3c"),za("0x18"),za("0x2c")])o[za("0x2b")][za("0x1b")]("formatBlock",t,za("0x1d"),a);for(const t of["splitTableCellVertically","splitTableCellHorizontally"])o[za("0x2b")][za("0x1b")](za("0x19"),t,za("0x1d"),a);o._suggestionFactory[za("0x1b")]("formatBlock",za("0xf"),"accept",(n=>{t[za("0x25")][za("0x22")]((o=>{const s=Array[za("0x10")](e[za("0x15")]()).map((t=>i.LiveRange[za("0x9")](t)));o[za("0x30")](n),t.commands[za("0x36")](za("0xf")).refresh(),t.execute(za("0xf"),{forceDefaultExecution:!0});const r=s.filter((t=>"$graveyard"!=t.root.rootName));r[za("0x2f")]>0&&o[za("0x30")](r);for(const t of s)t[za("0x43")]()}))}));for(const e of["mergeTableCellUp",za("0x18"),"mergeTableCellLeft",za("0x3c")]){const n=t[za("0x34")].get(e);n.on(za("0x2a"),((e,o,s)=>{if(s){const o=t[za("0x25")][za("0x0")].selection[za("0x12")]().getAncestors()[za("0x3f")]((t=>t.is("element","tableCell")));this._areMergableCells(n[za("0x2")],o)||(e[za("0xb")]=!1,e.stop())}}),{priority:za("0x27")})}}[za("0x8")](){const t=this[za("0x13")][za("0x34")].get(za("0xf")),e=this[za("0x13")][za("0x29")][za("0x36")](za("0x42"));if(!t[za("0x47")])return!1;const n=e[za("0x23")](this.editor[za("0x25")][za("0x0")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[za("0x38")](t,e))return!1;return!0}[za("0x38")](t,e){const n=this.editor[za("0x29")][za("0x36")](za("0x3d")),o=this[za("0x13")][za("0x25")][za("0x39")](t),s=this[za("0x13")][za("0x25")][za("0x39")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if(("insertion"==t[za("0x3b")]||za("0x24")==t[za("0x3b")]||za("0xf")==t[za("0x17")])&&t.isInContent)for(const e of t[za("0x15")]())e.containsRange(o,!0)&&r.add(t[za("0x3b")]+":"+t[za("0x20")].id),e.containsRange(s,!0)&&i[za("0xa")](t[za("0x3b")]+":"+t[za("0x20")].id);if(r[za("0x1f")]!=i[za("0x1f")])return!1;for(const t of r)if(!i[za("0x44")](t))return!1;return!0}}const Wa=["forceValue","TrackChangesEditing","TableUtils","addMarker:suggestion","has","plugins","createTableWalker","cell","value","addClass","item","first","markerNameToElements","markBlockFormat","activeMarkers","markerRange","change","createPositionAfter","parent","requires","document","FORMAT_HEADER_ROW","nodeAfter","toViewElement","from","registerDescriptionCallback","FORMAT_HEADER_COLUMN","getChild","registerCustomCallback","locale","commandParams","headingRows","getAttribute","formatBlock","nodeBefore","options","isBefore","createRange","ck-suggestion-marker-","_acceptFormatSuggestionCallbackFactory","bindElementToMarker","ck-suggestion-marker--active","showSuggestionHighlights","includes","unbindElementFromMarkerName","start","table","highest","_suggestionFactory","index","getSuggestion","mapper","consume","setTableColumnHeader","last","FORMAT_REGULAR_ROW","afterInit","enableCommand","removeAttribute","getColumnIndexes","childCount","editing","_splitMarkerName","get","FORMAT_REGULAR_COLUMN","setTableRowHeader","name","removeClass","accept","selection","createPositionBefore","TableEditing","commands","*Format:* %0","getRowIndexes","end","data-suggestion","markerName","model","getCellLocation","data","commandName","downcastDispatcher","writer","setAttribute"];var Ka,qa;Ka=Wa,qa=117,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Wa[t-=0]};class $a extends t.Plugin{static get[Xa("0x48")](){return[Ba]}[Xa("0x18")](){const t=this.editor;if(!t[Xa("0x3a")][Xa("0x39")](Xa("0x27")))return;const e=t[Xa("0x52")],n=t.plugins[Xa("0x1f")](Xa("0x36")),o=t[Xa("0x3a")][Xa("0x1f")]("TableUtils"),s=t[Xa("0x3a")][Xa("0x1f")](Ba);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:a,id:x}=n[Xa("0x1e")](r[Xa("0x2d")]),c=n[Xa("0x12")](x);if(!c[Xa("0x30")]||Xa("0x15")!=c[Xa("0x30")][Xa("0x31")])return;if(r[Xa("0x3f")])return void s.stop();if(!i.consumable[Xa("0x14")](r.markerRange,s[Xa("0x22")]))return;const l=r.markerRange[Xa("0xd")][Xa("0x4b")],u=r[Xa("0x44")][Xa("0x2b")][Xa("0x2")],d=l[Xa("0x47")][Xa("0x47")],{column:g}=o[Xa("0x2f")](l),{column:m}=o[Xa("0x2f")](u);for(let s=g;s<=m;s++){const c=o[Xa("0x3b")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Xa("0x3c")],c=i[Xa("0x13")][Xa("0x4c")](s);i[Xa("0x33")][Xa("0x3e")]("ck-suggestion-marker-"+a,c),e&&i.writer[Xa("0x34")](Xa("0x2c"),x,c),i[Xa("0x13")][Xa("0x8")](c,r[Xa("0x2d")]),t&&(n[Xa("0x43")][Xa("0xb")](r[Xa("0x2d")])?i[Xa("0x33")][Xa("0x3e")](Xa("0x9"),c):i[Xa("0x33")][Xa("0x23")](Xa("0x9"),c))}}}}n[Xa("0x19")]("setTableRowHeader",((e,s)=>{const r=o.getSelectionAffectedTableCells(t.model[Xa("0x49")][Xa("0x25")]),i=o[Xa("0x2a")](r),a=r[0].findAncestor(Xa("0xe")),x=a[Xa("0x0")](Xa("0x54"))||0,c=s&&null!==s[Xa("0x35")]?s[Xa("0x35")]:!t[Xa("0x28")][Xa("0x1f")](Xa("0x21")).value,l=c?i[Xa("0x16")]:i[Xa("0x40")],u=a[Xa("0x50")](l);let d;if(c){const e=a[Xa("0x50")](x);if(u[Xa("0x11")]<e[Xa("0x11")])return;d=t[Xa("0x2e")][Xa("0x5")](t.model[Xa("0x26")](e.getChild(0)),t[Xa("0x2e")][Xa("0x46")](u[Xa("0x50")](u[Xa("0x1c")]-1)))}else{const e=a[Xa("0x50")](x-1);if(!e)return;d=t[Xa("0x2e")].createRange(t[Xa("0x2e")][Xa("0x26")](u[Xa("0x50")](0)),t.model[Xa("0x46")](e[Xa("0x50")](e.childCount-1)))}t.model[Xa("0x45")]((()=>{n[Xa("0x42")](d,{commandName:Xa("0x21"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[Xa("0x19")](Xa("0x15"),((e,o)=>{const s=t[Xa("0x3a")][Xa("0x1f")](Xa("0x37")),r=s.getSelectionAffectedTableCells(t[Xa("0x2e")][Xa("0x49")][Xa("0x25")]),i=s[Xa("0x1b")](r),a=r[0].findAncestor(Xa("0xe")),x=a[Xa("0x0")]("headingColumns")||0,c=o&&null!==o[Xa("0x35")]?o[Xa("0x35")]:!t[Xa("0x28")].get("setTableColumnHeader")[Xa("0x3d")];let l;const u=a[Xa("0x50")](0),d=c?i[Xa("0x16")]:i[Xa("0x40")],g=s[Xa("0x3b")](a,{startRow:0,column:d,includeAllSlots:!1}),m=Array[Xa("0x4d")](g)[0].cell;if(c){const e=u[Xa("0x50")](x);if(m[Xa("0x4")](e))return;l=t[Xa("0x2e")][Xa("0x5")](t.model[Xa("0x26")](e),t[Xa("0x2e")][Xa("0x46")](m))}else{const e=u.getChild(x-1);if(!e)return;l=t[Xa("0x2e")][Xa("0x5")](t[Xa("0x2e")][Xa("0x26")](m),t[Xa("0x2e")][Xa("0x46")](e))}t[Xa("0x2e")].change((()=>{n.markBlockFormat(l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[Xa("0x1d")][Xa("0x32")].on("addMarker:suggestion",r(),{priority:Xa("0xf")}),t[Xa("0x30")][Xa("0x32")].on(Xa("0x38"),((t,e,n)=>{n[Xa("0x3")][Xa("0xa")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xa("0xf")}),t.editing.downcastDispatcher.on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n[Xa("0x1e")](e.markerName),i=n[Xa("0x12")](r);if(!i[Xa("0x30")]||Xa("0x15")!=i[Xa("0x30")][Xa("0x31")])return;const a=o[Xa("0x13")][Xa("0x41")](e[Xa("0x2d")]);if(a)for(const t of a)o[Xa("0x33")][Xa("0x23")](Xa("0x6")+s,t),o[Xa("0x33")][Xa("0x23")](Xa("0x9"),t),o[Xa("0x33")][Xa("0x1a")](Xa("0x2c"),t),o[Xa("0x13")][Xa("0xc")](t,e[Xa("0x2d")])}),{priority:Xa("0xf")}),n._descriptionFactory[Xa("0x4e")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n[Xa("0x31")]){const t=n[Xa("0x53")][0].forceValue;return o(Yo(e,Xa(t?"0x4a":"0x17")))}if(Xa("0x15")==n[Xa("0x31")]){const t=n[Xa("0x53")][0][Xa("0x35")];return o(Yo(e,Xa(t?"0x4f":"0x20")))}}function o(t){return{type:"format",content:Yo(e,Xa("0x29"),t)}}}));const i=s[Xa("0x7")]();n[Xa("0x10")].registerCustomCallback(Xa("0x1"),Xa("0x21"),"accept",i),n[Xa("0x10")][Xa("0x51")](Xa("0x1"),Xa("0x15"),Xa("0x24"),i)}}const Ja=["getRows","includes","tableCellSuggestion","markerToHighlight","entries","insertionRanges","newRange","root","rowInsertionIndexes","options","name","showSuggestionHighlights","Users","deletionRanges","first","afterInit","rootName","endRow","add","tableCellHorizontalAlignment","createPositionBefore","$graveyard","getRowIndexes","set","for","high","markMultiRangeBlockFormat","next","tablePasteColumn","rows","getSuggestions","differ","tablePasteRow","elementToElement","_createdBatches","getSuggestion","tablePasteCell","tableCellBorderColor","insertColumns","join","length","createTableWalker","suggestionUnloaded","type","move","locale","suggestion-td","TableUtils","createRange","cells","*Replace table cells*","attributes","insertContent","view","removeMarkers","redo","has","oldRange","markMultiRangeDeletion","getRanges","tableCell","getChanges","every","change","createRangeOn","setAttribute","ck-suggestion-marker-insertion","fromEntries","start","nodeAfter","documentSelection","insertRows","createElement","accept","document","tableCellBackgroundColor","insert","last","author","columnInsertionIndexes","unwrap","getChildren","registerDescriptionCallback","_descriptionFactory","tableCellBorderStyle","forceDefaultExecution","paragraph","_isForcedDefaultExecutionBlock","editor","subType","plugins","containsRange","isInContent","discard","_splitMarkerName","map","getAllAdjacentSuggestions","setAttributes","tableCellBorderWidth","listenTo","filter","removeRows","hasSuggestion","insertion","suggestion","isEmpty","cell","stop","getMarkers","getSuggestionCallback","findAncestor","position","formatBlock","model","suggestion:formatBlock:tablePasteCell","tablePasteChainId","markMultiRangeInsertion","remove","registerCustomCallback","deletion","tablePaste","low","push","TrackChangesEditing","_suggestionFactory","from","batch","markerAttributes","updateMarker","value","registerPostFixer","selection","element","previous","getColumnIndexes","TableClipboard","rowInsertionRanges","getContainedElement","_replaceTableSlotCell","commands","get","ck-suggestion-marker--active","startsWith","createRangeIn","isEqual","editingDowncast","getRange","getChangedMarkers","conversion","_getCoordsForCells","find","end","return","getTableIfOnlyTableInContent","editing","wrap","markerName","column","some","markers","previousSibling","getColumns","register","table"];var Qa,Za;Qa=Ja,Za=118,function(t){for(;--t;)Qa.push(Qa.shift())}(++Za);const Ya=function(t,e){return Ja[t-=0]},tx=[Ya("0x90"),Ya("0x53"),Ya("0x82"),Ya("0x41"),"tableCellVerticalAlignment",Ya("0x79"),"tableCellPadding"],ex=Object[Ya("0x71")](tx[Ya("0x8d")]((t=>[t,null])));class nx extends t.Plugin{static get requires(){return[Ba]}[Ya("0x3d")](){const t=this[Ya("0x86")];if(!t[Ya("0x88")].has(Ya("0x11")))return;const n=t[Ya("0x88")].get(Ya("0x5")),o=t.plugins[Ya("0x16")](Ya("0x5d")),s=t.plugins[Ya("0x16")](Ba),r=t[Ya("0x88")][Ya("0x16")](Ya("0x11"));s._tablePostFixingSubtypes[Ya("0x4")](Ya("0x4e"),"tablePasteColumn"),t[Ya("0x9f")].schema[Ya("0x2c")]("tableCellSuggestion",{allowIn:Ya("0x6a"),allowContentOf:Ya("0x6a"),isLimit:!0}),t[Ya("0x1e")][Ya("0x4f")]({model:Ya("0x30"),view:Ya("0x5c")});let i=null;t.model.on(Ya("0x62"),((s,a)=>{const[x,c]=a,l=a[a[Ya("0x56")]-1];l&&l[Ya("0x83")]||n[Ya("0x85")]||this[Ya("0x86")][Ya("0x15")][Ya("0x16")]("trackChanges")[Ya("0xb")]&&function(t,e,n,o,s){if(e&&!e.is(Ya("0x74")))return!1;const r=s[Ya("0x23")](t,n);if(!r||!sx(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n.document[Ya("0xd")]);if(!i.length)return!1;const a=i[0][Ya("0x9c")](Ya("0x2d")),x=o[Ya("0x44")](i),c=o[Ya("0x10")](i),l={startRow:x[Ya("0x3c")],endRow:x[Ya("0x7b")],startColumn:c[Ya("0x3c")],endColumn:c[Ya("0x7b")]};return 1==i[Ya("0x56")]&&(l[Ya("0x3f")]+=o[Ya("0x2e")](r)-1,l.endColumn+=o[Ya("0x2b")](r)-1),sx(a,l,o)}(x,c,t.model,o,r)&&(s[Ya("0x99")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Ya("0x9f")][Ya("0x6d")]((()=>{t[Ya("0x9f")][Ya("0x62")](a[0],a[1],a[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:x,deletionRanges:c,cells:l}=i;s[Ya("0x56")]&&n[Ya("0xa2")](s,"tablePasteRow",{tablePasteChainId:o}),r[Ya("0x56")]&&n.markMultiRangeInsertion(r,Ya("0x4a"),{tablePasteChainId:o}),x.length&&n[Ya("0xa2")](x,Ya("0x2"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Ya("0x56")]&&n[Ya("0x68")](c,Ya("0x2"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Ya("0x48")](l[Ya("0x8d")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Ya("0x52"),{tablePasteChainId:o});if(u){const e=u[Ya("0x9a")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Ya("0x9f")][Ya("0x6e")](o),i=e[Ya("0x20")]((t=>t.getRange()[Ya("0x1a")](r)));i&&n.push([i[Ya("0x38")],s])}n[Ya("0x56")]&&u[Ya("0x6f")]("markerAttributes",Object[Ya("0x71")](n))}i=null})))}),{priority:e.priorities.high+10}),t[Ya("0x88")][Ya("0x16")](Ya("0x11")).on(Ya("0x14"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Ya("0x99")]();const r=n[Ya("0x98")],a=o,x=ox(r),c=ox(a);t[Ya("0x22")]=r;let l=null,u=null;if(c||x)if(x&&!c){s[Ya("0xa3")](r.getChild(0));for(const t of Array[Ya("0x7")](a[Ya("0x7f")]()))s[Ya("0x7a")](t,r,"end");const t=i[Ya("0x36")][Ya("0x2f")](n.row),e=i.columnInsertionIndexes[Ya("0x2f")](n[Ya("0x27")]);t||e||(l=s[Ya("0x19")](r))}else c&&!x&&(u=s[Ya("0x19")](r));else{const t=s[Ya("0x76")](Ya("0x30")),e=s[Ya("0x76")](Ya("0x30"));s[Ya("0x25")](s[Ya("0x19")](r),e),s[Ya("0x7a")](t,r,0);for(const e of Array[Ya("0x7")](a[Ya("0x7f")]()))s[Ya("0x7a")](e,t,Ya("0x21"));l=s[Ya("0x6e")](t),u=s[Ya("0x6e")](e)}const d=Array[Ya("0x7")](a.getAttributes())[Ya("0x92")]((([t])=>tx[Ya("0x2f")](t)));i[Ya("0x5f")].push({element:r,attributes:d[Ya("0x56")]?Object[Ya("0x71")](d):null}),l&&i[Ya("0x33")].push(l),u&&i[Ya("0x3b")][Ya("0x4")](u)}),{priority:Ya("0x47")}),o.on(Ya("0x54"),((e,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r.columns||1;i[Ya("0x7d")]=new Array(x).fill(a)[Ya("0x8d")](((t,e)=>t+e));for(const{cell:e}of o[Ya("0x57")](s,{startColumn:a,endColumn:a+x-1}))i.columnInsertionRanges[Ya("0x4")](t[Ya("0x9f")][Ya("0x6e")](e))}),{priority:Ya("0x3")}),o.on(Ya("0x75"),((e,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r[Ya("0x4b")]||1;i[Ya("0x36")]=new Array(x).fill(a)[Ya("0x8d")](((t,e)=>t+e));for(const{cell:e}of o[Ya("0x57")](s,{startRow:a,endRow:a+x-1}))i[Ya("0x12")].push(t[Ya("0x9f")].createRangeOn(e))}),{priority:Ya("0x3")}),n[Ya("0x81")][Ya("0x80")]((e=>{if(e[Ya("0x87")]&&e[Ya("0x87")][Ya("0x18")]("tablePaste"))return e.previous?{}:{type:Ya("0x95"),content:Yo(t[Ya("0x5b")],Ya("0x60"))}}));const a=()=>!1;for(const t of[Ya("0x2"),Ya("0x4a"),Ya("0x4e"),Ya("0x52")])n[Ya("0x6")][Ya("0x0")](Ya("0x95"),t,"join",a),n[Ya("0x6")].registerCustomCallback(Ya("0x1"),t,Ya("0x55"),a),n[Ya("0x6")].registerCustomCallback(Ya("0x9e"),t,"join",a);n._suggestionFactory.registerCustomCallback(Ya("0x9e"),"tablePasteCell",Ya("0x8b"),a),n[Ya("0x6")].registerCustomCallback(Ya("0x9e"),Ya("0x52"),Ya("0x77"),((e,n,o)=>{const s=e[Ya("0x8d")]((t=>t[Ya("0x13")]()))[Ya("0x92")]((t=>t)),r=new Map(s[Ya("0x8d")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Ya("0x5f")])e&&r[Ya("0x45")](t,e);else if(o&&o[Ya("0x9")])for(const[e,n]of Object[Ya("0x32")](o[Ya("0x9")])){const o=t[Ya("0x9f")][Ya("0x29")].get(e),s=o?o[Ya("0x1c")]().getContainedElement():null;s&&r[Ya("0x45")](s,n)}t[Ya("0x9f")][Ya("0x6d")]((t=>{for(const[e,n]of r)t[Ya("0x8f")]({...ex,...n},e)}))}));const x=(e,o)=>{n[Ya("0x6")].registerCustomCallback(e,Ya("0x2"),o,((s,r,i)=>{t.model[Ya("0x6d")]((t=>{const a=[];for(const t of s){const e=t[Ya("0x72")][Ya("0x73")];e.is(Ya("0xe"),Ya("0x30"))&&a[Ya("0x4")](e)}n[Ya("0x6")][Ya("0x9b")](e,null,o)(s,r,i);for(const e of a)Ya("0x43")!=e[Ya("0x35")][Ya("0x3e")]&&t.unwrap(e)}))}))};x(Ya("0x95"),"accept"),x(Ya("0x95"),Ya("0x8b")),x(Ya("0x1"),Ya("0x77")),x(Ya("0x1"),"discard"),n[Ya("0x6")][Ya("0x0")](Ya("0x95"),"tablePasteRow",Ya("0x8b"),(t=>{const e=t[Ya("0x8d")]((t=>t[Ya("0x13")]())),n=e[0][Ya("0x9c")](Ya("0x2d")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Ya("0x93")](n,{at:r,rows:i-r+1})})),n[Ya("0x6")].registerCustomCallback(Ya("0x95"),Ya("0x4a"),Ya("0x8b"),(t=>{const e=t[Ya("0x8d")]((t=>t[Ya("0x13")]())),n=e[0].findAncestor("table"),{minColumn:r,maxColumn:i}=s[Ya("0x1f")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Ya("0x87")]||!e[Ya("0x87")].startsWith(Ya("0x2")))return;const o=e[Ya("0x61")][Ya("0xa1")],s=n[Ya("0x4c")]()[Ya("0x92")]((t=>t[Ya("0x8a")]&&t[Ya("0x61")]&&t.attributes[Ya("0xa1")]==o));s.length&&e[Ya("0x8e")]()[Ya("0x56")]!=s.length&&s.reduce(((t,e)=>(t[Ya("0x49")]=e,e[Ya("0xf")]=t,e)))};function l(t,e=!0){const{id:o}=n[Ya("0x8c")](t.markerName),s=["ck-suggestion-marker",Ya("0x70")],r=n.activeMarkers[Ya("0x2f")](t[Ya("0x26")]);return r&&s.push(Ya("0x17")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Ya("0x47")}),n.on(Ya("0x58"),c,{priority:"high"}),t[Ya("0x9f")][Ya("0x78")][Ya("0xc")]((()=>{let e=!1;const o=Array[Ya("0x7")](t.model[Ya("0x78")][Ya("0x4d")][Ya("0x1d")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:a}=n[Ya("0x8c")](s);if(Ya("0x96")!=o||Ya("0x1")!=i||r.oldRange)continue;if(!n[Ya("0x94")](a))continue;const x=n[Ya("0x51")](a)[Ya("0x69")](),c=t[Ya("0x88")].get("Users").me;for(const t of n[Ya("0x4c")]())if(t.isInContent&&t[Ya("0x7c")]==c&&Ya("0x9e")==t[Ya("0x59")]&&Ya("0x52")==t[Ya("0x87")]&&t.getRanges()[Ya("0x6c")]((t=>x[Ya("0x28")]((e=>e[Ya("0x89")](t,!0))))))for(const n of t[Ya("0x8e")]())n[Ya("0x8a")]&&(n.discard(),e=!0)}return e})),t.model.document.registerPostFixer((e=>{const o=t.commands[Ya("0x16")](Ya("0x65"));if(!o||!o[Ya("0x50")][Ya("0x66")](e[Ya("0x8")]))return!1;let s=!1;const r=t[Ya("0x88")].get("Users").me,i=t.model[Ya("0x78")][Ya("0x4d")][Ya("0x6b")](),a=Array[Ya("0x7")](t[Ya("0x9f")].document[Ya("0x4d")][Ya("0x1d")]())[Ya("0x92")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n._splitMarkerName(t);return"suggestion"==o&&Ya("0x2")==s&&i==r.id&&!e[Ya("0x67")]}));for(const t of i){if(Ya("0x7a")!=t[Ya("0x59")]||"tableCellSuggestion"!=t[Ya("0x38")]||1!=t[Ya("0x56")])continue;const n=e[Ya("0x5e")](t[Ya("0x9d")],t[Ya("0x9d")].getShiftedBy(1));if(!a[Ya("0x20")]((({data:t})=>t[Ya("0x34")][Ya("0x1a")](n))))for(const{name:t,data:o}of a)if(n[Ya("0x89")](o[Ya("0x34")])){e[Ya("0xa")](t,{range:n}),s=!0;break}}return s})),t[Ya("0x9f")][Ya("0x78")][Ya("0xc")]((e=>{let o=!1;const s=t[Ya("0x88")][Ya("0x16")](Ya("0x3a")).me,r=n[Ya("0x4c")]()[Ya("0x92")]((t=>t[Ya("0x8a")]&&t.author==s)),i=new Set,a=new Set;for(const t of r)if(Ya("0x2")==t[Ya("0x87")])for(const e of t[Ya("0x9a")]()){const n=e.getRange()[Ya("0x13")]();if(n)if(n.is(Ya("0xe"),Ya("0x30"))&&ox(n)){t.removeMarker(e[Ya("0x38")]),i[Ya("0x40")](n),o=!0;const s=n.nextSibling,r=n[Ya("0x2a")],x=s&&s.is("element",Ya("0x30")),c=r&&r.is(Ya("0xe"),Ya("0x30"));x&&!i[Ya("0x66")](s)&&a.add(s),c&&!i.has(r)&&a[Ya("0x40")](r)}else n.is("element",Ya("0x84"))&&n.isEmpty&&(t.removeMarker(e[Ya("0x38")]),o=!0)}else if(Ya("0x52")==t.subType){if(!t.attributes||!t.attributes.tablePasteChainId)continue;const e=t.attributes[Ya("0x9")];if(e&&Object.keys(e).length)continue;const n=t[Ya("0x61")][Ya("0xa1")];let s=!0,i=!0;for(const e of r)if(e[Ya("0x87")]&&e[Ya("0x87")][Ya("0x18")](Ya("0x2"))){if(!e[Ya("0x61")][Ya("0xa1")]){i=!1;break}if(e.id!=t.id&&e.attributes[Ya("0xa1")]==n){s=!1;break}}i&&s&&(t[Ya("0x64")](),o=!0)}for(const t of i)e[Ya("0xa3")](t);for(const t of a)e[Ya("0x7e")](t);return o})),t[Ya("0x1e")].for(Ya("0x1b"))[Ya("0x31")]({model:Ya("0xa0"),view:(t,e)=>l(t),converterPriority:"high"}),t[Ya("0x1e")][Ya("0x46")]("dataDowncast")[Ya("0x31")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[Ya("0x37")][Ya("0x39")]?l(t,!1):null,converterPriority:"high"});const u=t[Ya("0x24")][Ya("0x63")];this[Ya("0x91")](u[Ya("0x78")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[Ya("0x19")](e.content).getItems())t.is(Ya("0xe"),Ya("0x5c"))&&n[Ya("0x4")](t);u[Ya("0x6d")]((t=>{for(const e of n)t[Ya("0x5a")](t[Ya("0x19")](e),t[Ya("0x42")](e)),t[Ya("0xa3")](e)}))}))}}function ox(t){if(t[Ya("0x97")])return!0;const e=t.getChild(0);return e.is(Ya("0xe"),Ya("0x84"))&&e.isEmpty}function sx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Ya("0x57")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const rx=["discard","enableCommand","markBlockFormat","Users","bind","TableColumnResizeEditing","TrackChangesEditing","tableWidth","resizeTableWidth","getSuggestions","resizeColumnWidths","document","registerCustomCallback","editor","handleSuggestionDescription","formatBlock","subType","_suggestionFactory","model","plugins","locale","getContainedElement","accept","getSelectedElement","columnWidths","has","get","change","handleResizeTableWidthCommand","author","data","commandParams","_descriptionFactory","resizeTable","getAttribute","getSuggestionCallback","selection"];var ix,ax;ix=rx,ax=217,function(t){for(;--t;)ix.push(ix.shift())}(++ax);const xx=function(t,e){return rx[t-=0]};class cx extends t.Plugin{afterInit(){if(!this[xx("0x12")][xx("0x18")][xx("0x1e")](xx("0xa")))return;const t=this.editor[xx("0x18")][xx("0x1f")](xx("0xb"));t.enableCommand(xx("0xd"),this[xx("0x21")][xx("0x9")](this)),t[xx("0x6")](xx("0xf"),this[xx("0x21")].bind(this)),t._suggestionFactory[xx("0x11")](xx("0x14"),"resizeTable","accept",t[xx("0x16")][xx("0x3")](xx("0x14"),null,xx("0x5"))),t._suggestionFactory[xx("0x11")]("formatBlock",xx("0x1"),xx("0x5"),t[xx("0x16")][xx("0x3")](xx("0x14"),null,xx("0x1b"))),t[xx("0x0")].registerDescriptionCallback(this[xx("0x13")].bind(this))}handleResizeTableWidthCommand(t,e){const n=this[xx("0x12")].plugins[xx("0x1f")]("TrackChangesEditing"),o=this[xx("0x12")][xx("0x18")][xx("0x1f")](xx("0xa")),s=e.table||this[xx("0x12")][xx("0x17")][xx("0x10")][xx("0x4")][xx("0x1c")]();this[xx("0x12")][xx("0x17")][xx("0x20")]((()=>{const r=o.getColumnGroupElement(s);let i=r?o.getTableColumnsWidths(r):null,a=s[xx("0x2")](xx("0xc"))||null;const x=e[xx("0xc")]||a,c=e[xx("0x1d")]||i,l=this[xx("0x12")][xx("0x18")][xx("0x1f")](xx("0x8")).me;for(const t of n[xx("0xe")]()){const e=t[xx("0x1a")]();if("resizeTable"===t[xx("0x15")]&&e===s){t[xx("0x22")]!==l&&t[xx("0x5")]();const e=t[xx("0x23")][xx("0x24")];a=e[0][xx("0xc")],i=e[0][xx("0x1d")];break}}t({table:s,tableWidth:x,columnWidths:c}),n[xx("0x7")](s,{commandName:xx("0xd"),commandParams:[{tableWidth:a,columnWidths:i}],formatGroupId:"resizeTable"},[],"resizeTable")}))}[xx("0x13")](t){const{data:e}=t;if(e&&xx("0x1")===e.formatGroupId){const t="*Format:* resize table";return{type:"format",content:Yo(this[xx("0x12")][xx("0x19")],t)}}}}const lx=["plugins","Template","insertTemplate","enableCommand","afterInit"];var ux,dx;ux=lx,dx=182,function(t){for(;--t;)ux.push(ux.shift())}(++dx);const gx=function(t,e){return lx[t-=0]};class mx extends t.Plugin{[gx("0x2")](){const t=this.editor;t[gx("0x3")].has(gx("0x4"))&&t[gx("0x3")].get("TrackChangesEditing")[gx("0x1")](gx("0x0"))}}const fx=["editor","plugins","get","insertTableOfContents","afterInit","tableOfContents","enableCommand","TrackChangesEditing","commands"];var hx,px;hx=fx,px=321,function(t){for(;--t;)hx.push(hx.shift())}(++px);const bx=function(t,e){return fx[t-=0]};class Ex extends t.Plugin{[bx("0x7")](){const t=this[bx("0x3")];if(!t[bx("0x2")][bx("0x5")]("insertTableOfContents"))return;t[bx("0x4")][bx("0x5")](bx("0x1"))[bx("0x0")](bx("0x6"));const e=t.plugins[bx("0x5")](bx("0x1")),n=t.locale;e._descriptionFactory.registerElementLabel(bx("0x8"),(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const _x=["suggestion","start","getNearestSelectionRange","Title","newRange","locale","isCollapsed","schema","registerElementLabel","getChangedMarkers","updateMarker","createRange","get","model","has","isTouching","_splitMarkerName","registerPostFixer","_descriptionFactory","end","isEqual","nodeBefore","editor","removeMarker","plugins","document","afterInit","title-content"];var Tx,Cx;Tx=_x,Cx=339,function(t){for(;--t;)Tx.push(Tx.shift())}(++Cx);const yx=function(t,e){return _x[t-=0]};class kx extends t.Plugin{[yx("0x17")](){const t=this[yx("0x13")];if(!t[yx("0x15")][yx("0xb")](yx("0x0")))return;const e=t[yx("0x15")][yx("0x9")]("TrackChangesEditing");e[yx("0xf")][yx("0x5")](yx("0x18"),(()=>Yo(t[yx("0x2")],"ELEMENT_TITLE"))),t[yx("0xa")][yx("0x16")][yx("0xe")]((n=>{let o=!1;const s=Array.from(t[yx("0xa")][yx("0x16")].differ[yx("0x6")]());for(const{name:r,data:i}of s){const{group:s}=e[yx("0xd")](r);if(yx("0x19")!==s||!i[yx("0x1")])continue;const a=i[yx("0x1")],x=a.end[yx("0x12")];if(!x||!x.is("element",yx("0x18")))continue;if(!a[yx("0x1a")][yx("0xc")](a[yx("0x10")]))continue;const c=t[yx("0xa")][yx("0x4")][yx("0x1b")](a.end,"forward");if(c&&c[yx("0x3")]){const t=n[yx("0x8")](a[yx("0x1a")],c.start);t[yx("0x11")](a)||(n[yx("0x7")](r,{range:t}),o=!0)}o||(n[yx("0x14")](r),o=!0)}return o}))}}const Ax=["redo","has","UndoEditing","afterInit","TrackChangesEditing","enableCommand","undo","plugins","editor"];var vx,Rx;vx=Ax,Rx=491,function(t){for(;--t;)vx.push(vx.shift())}(++Rx);const Ix=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{[Ix("0x7")](){const t=this[Ix("0x3")],e=t[Ix("0x2")].get(Ix("0x8"));t[Ix("0x2")][Ix("0x5")](Ix("0x6"))&&(e[Ix("0x0")](Ix("0x1")),e[Ix("0x0")](Ix("0x4")))}}const Lx=["requires","has","get","plugins","afterInit"];var Nx,wx;Nx=Lx,wx=434,function(t){for(;--t;)Nx.push(Nx.shift())}(++wx);const Mx=function(t,e){return Lx[t-=0]};class Ox extends t.Plugin{static get[Mx("0x1")](){return[Ba]}[Mx("0x0")](){const t=this.editor;t[Mx("0x4")][Mx("0x2")]("TableCaptionEditing")&&t[Mx("0x4")][Mx("0x3")]("TrackChangesEditing").enableCommand("toggleTableCaption")}}const Fx=["_LIST_","_getSuggestionBlocksForListStyle","enableCommand","expandListBlocksToCompleteList","DocumentListPropertiesEditing","config","reversed","listReversed","handleListStyleCommand","commandParams","getListTypeFromListStyleType","type","handleListReversedCommand","*Change to:* %0","from","format","afterInit","startIndex","model","numbered","*Format:* set start index to %0","get","DocumentListUtils","ELEMENT_","TrackChangesEditing","handleDescriptions","getAttribute","*Format:* set order to reversed","push","isFirstBlockOfListItem","bind","markMultiRangeBlockFormat","handleListStartCommand","document","locale","*Format:* set order to regular","replace","_getTranslationKeyForListStyle","plugins","isListItemBlock","toUpperCase","registerDescriptionCallback","listStyle","listStart","listType","list.properties","_descriptionFactory","editor","DocumentListPropertiesUtils","change","getSelectedBlocks","selection","length","commandName","styles"];var Px,Dx;Px=Fx,Dx=277,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{[Bx("0xe")](){if(!this[Bx("0x2d")][Bx("0x24")].has(Bx("0x2")))return;const t=this[Bx("0x2d")][Bx("0x3")][Bx("0x13")](Bx("0x2b")),e=this.editor[Bx("0x24")].get(Bx("0x16"));t[Bx("0x34")]&&e.enableCommand(Bx("0x28"),this.handleListStyleCommand[Bx("0x1c")](this)),t.reversed&&e[Bx("0x0")](Bx("0x5"),this[Bx("0xa")][Bx("0x1c")](this)),t.startIndex&&e.enableCommand(Bx("0x29"),this.handleListStartCommand.bind(this)),e[Bx("0x2c")][Bx("0x27")](this[Bx("0x17")][Bx("0x1c")](this))}[Bx("0x6")](t,e={}){const n=this.editor[Bx("0x24")][Bx("0x13")](Bx("0x16")),o=this._getSuggestionBlocksForListStyle();this[Bx("0x2d")][Bx("0x10")][Bx("0x2f")]((()=>{n[Bx("0x1d")](o,{commandName:Bx("0x28"),commandParams:[{type:e[Bx("0x9")]}],formatGroupId:Bx("0x28")})}))}[Bx("0xa")](t,e={}){const n=this[Bx("0x2d")].plugins.get(Bx("0x16")),o=this.editor.plugins[Bx("0x13")](Bx("0x14")),s=this._getSuggestionBlocks((t=>o[Bx("0x25")](t)&&Bx("0x11")===t[Bx("0x18")](Bx("0x2a"))));null!==s&&this[Bx("0x2d")][Bx("0x10")].change((()=>{n[Bx("0x1d")](s,{commandName:Bx("0x5"),commandParams:[{reversed:e[Bx("0x4")]}],formatGroupId:"listReversed"})}))}[Bx("0x1e")](t,e={}){const n=this[Bx("0x2d")].plugins[Bx("0x13")]("TrackChangesEditing"),o=this[Bx("0x2d")][Bx("0x24")].get("DocumentListUtils"),s=this._getSuggestionBlocks((t=>o[Bx("0x25")](t)&&Bx("0x11")===t.getAttribute(Bx("0x2a"))));null!==s&&this.editor[Bx("0x10")][Bx("0x2f")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Bx("0x29"),commandParams:[{startIndex:e[Bx("0xf")]}],formatGroupId:"listStart"})}))}handleDescriptions(t){const e=this[Bx("0x2d")][Bx("0x20")],{data:n}=t;if(!n)return;let o,s;switch(n[Bx("0x33")]){case Bx("0x28"):o=Bx("0xb"),s={type:Bx("0xd"),content:Yo(e,o,Yo(e,this[Bx("0x23")](n.commandParams[0][Bx("0x9")])))};break;case Bx("0x5"):o=n[Bx("0x7")][0].reversed?Bx("0x19"):Bx("0x21"),s={type:"format",content:Yo(e,o)};break;case"listStart":o=Bx("0x12"),s={type:Bx("0xd"),content:Yo(e,o,n[Bx("0x7")][0][Bx("0xf")])}}return s}[Bx("0x36")](){const t=this.editor.plugins[Bx("0x13")](Bx("0x14"));let e=Array[Bx("0xc")](this[Bx("0x2d")][Bx("0x10")].document[Bx("0x31")][Bx("0x30")]());return e[Bx("0x1a")](...t[Bx("0x1")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this.editor[Bx("0x24")].get("DocumentListUtils");let n=Array[Bx("0xc")](this[Bx("0x2d")].model[Bx("0x1f")][Bx("0x31")][Bx("0x30")]()).filter(t);if(!n[Bx("0x32")])return null;n=e[Bx("0x1")](n);const o=[];for(const t of n)e[Bx("0x1b")](t)&&o.push(t);return o}_getTranslationKeyForListStyle(t){return Bx("0x15")+this.editor[Bx("0x24")][Bx("0x13")](Bx("0x2e"))[Bx("0x8")](t)[Bx("0x26")]()+Bx("0x35")+t[Bx("0x26")]()[Bx("0x22")](/-/g,"_")}}const Ux=["tableHeight","join","commandParams","handleSuggestionDescription","getSelectionAffectedTableCells","registerDescriptionCallback","TableCellPropertiesEditing","_suggestionFactory","getSuggestions","getFirstPosition","format","plugins","pluginName","tableProperties","model","subType","editor","data","handleDiscardAction","tableCellBorderColor","TableUtils","tableCellProperties","tableCellHeight","getAttribute","getSuggestionCallback","has","afterInit","tableCellHorizontalAlignment","formatBlock","*Format:* change table cell properties","nodeAfter","accept","tableCellBackgroundColor","batch","findAncestor","tableBackgroundColor","_handlePropertyChange","markBlockFormat","tableCellWidth","discard","tableCellPadding","tableWidth","enableCommand","tableCellBorderWidth","selection","tableCellVerticalAlignment","document","tableBorderColor","*Format:* change table properties","TrackChangesTableProperties","registerCustomCallback","TrackChangesEditing","change","get"];var Gx,Hx;Gx=Ux,Hx=422,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Vx extends t.Plugin{constructor(t){super(t),this[zx("0x17")]=[zx("0x3"),"tableBorderStyle","tableBorderWidth","tableAlignment",zx("0x33"),zx("0xa"),zx("0x2d")],this.tableCellProperties=[zx("0x1d"),"tableCellBorderStyle",zx("0x35"),zx("0x32"),zx("0x30"),zx("0x20"),zx("0x2a"),zx("0x25"),zx("0x1")]}static get[zx("0x16")](){return zx("0x5")}[zx("0x24")](){const t=this.editor[zx("0x15")][zx("0x9")](zx("0x7"));if(this[zx("0x1a")][zx("0x15")][zx("0x23")]("TablePropertiesEditing")){for(const e of this[zx("0x17")])t[zx("0x34")](e,((t,n)=>{const o=this[zx("0x1a")][zx("0x18")][zx("0x2")][zx("0x0")][zx("0x13")]()[zx("0x2c")]("table");this[zx("0x2e")](e,[o],this[zx("0x17")],zx("0x17"),t,n)}));t[zx("0x11")][zx("0x6")](zx("0x26"),zx("0x17"),zx("0x29"),t[zx("0x11")][zx("0x22")](zx("0x26"),null,zx("0x31"))),t[zx("0x11")][zx("0x6")](zx("0x26"),zx("0x17"),"discard",((t,e)=>this.handleDiscardAction(this[zx("0x17")],t,e))),t[zx("0x11")][zx("0x6")]("formatBlock","tableProperties",zx("0xb"),(()=>!1))}if(this.editor.plugins.has(zx("0x10"))){for(const e of this[zx("0x1f")])t[zx("0x34")](e,((t,n)=>{const o=this[zx("0x1a")][zx("0x15")].get(zx("0x1e"))[zx("0xe")](this[zx("0x1a")][zx("0x18")][zx("0x2")][zx("0x0")]);this._handlePropertyChange(e,o,this[zx("0x1f")],zx("0x1f"),t,n)}));t._suggestionFactory[zx("0x6")](zx("0x26"),zx("0x1f"),zx("0x29"),t[zx("0x11")][zx("0x22")](zx("0x26"),null,zx("0x31"))),t[zx("0x11")][zx("0x6")]("formatBlock",zx("0x1f"),zx("0x31"),((t,e)=>this[zx("0x1c")](this[zx("0x1f")],t,e))),t[zx("0x11")][zx("0x6")]("formatBlock",zx("0x1f"),"join",(()=>!1))}t._descriptionFactory[zx("0xf")]((t=>this[zx("0xd")](t)))}[zx("0x2e")](t,e,n,o,s,r){const i=this[zx("0x1a")][zx("0x15")][zx("0x9")](zx("0x7"));this[zx("0x1a")][zx("0x18")].enqueueChange(r[zx("0x2b")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[zx("0x21")](o);void 0!==n&&(e[o]=n)}s(r),i[zx("0x2f")](t,{commandParams:[e]},[],o)}}))}[zx("0x1c")](t,e,n){const o=e[0].start[zx("0x28")],s=n[zx("0xc")][0];this.editor.model[zx("0x8")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e.removeAttribute(n,o)}))}[zx("0xd")](t){if(t[zx("0x1b")])switch(t[zx("0x19")]){case zx("0x17"):return{type:"format",content:Yo(this[zx("0x1a")].locale,zx("0x4"))};case zx("0x1f"):return{type:zx("0x14"),content:Yo(this[zx("0x1a")].locale,zx("0x27"))}}}_getSuggestion(t,e){const n=this[zx("0x1a")][zx("0x15")][zx("0x9")](zx("0x7"));for(const o of n[zx("0x12")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===e&&n===t)return o}return null}}const Wx=["from","marker-count","adapter","refresh","markMultiRangeBlockFormat","deleteContent","data-suggestion","insert","isMultiRange","isIntersectingWithRange","@external","rethrowUnexpectedError","howMany","applyOperation","locale","author","formatInline:chain","authorName","_getExternalAuthor","hasCommentThread","getAttribute","accepted","nodeAfter","sort","isNextTo","formatGroupId","dataToMarker","ready","insertion:discard","createPositionBefore","markBlockFormat","open","end","markInlineFormat","getShiftedBy","_onDiscard","getCommentThread","trackChanges.mergeNestedSuggestions","containerElement","_getAuthorFromId","insertion:chain","insertion:","insertion","containsRangeInObject","elementEnd","containsRange","detach","createdAt","writer","isLimit","has","trackChanges","isOwn","notReady","track-changes-user-not-found","_registerDefaultCallbacks","suggestion","TrackChangesEditing","markerReady","_breakSuggestionMarker","some","value","_addThreadToSuggestion","markerToData","addComment","get","bindElementToMarker","_joinWithAdjacentSuggestions","formatInline:join","catch","insertion:accept","getRange","formatBlock:chain","discardSuggestion","discardAllSuggestions","getLastMatchingPosition","commentThread","_isForcedDefaultExecutionBlock","_splitMarkerName","_setSuggestionData","PENDING_ACTION_SUGGESTION","isBlock","editor","resolve","_trackFormatChanges","fetchCommentThread","isRemovable","schema","$graveyard","_refreshSuggestionsChain","addRange","enqueueChange","commands","_addSuggestionMarker","getSuggestion","createPositionAt","error-saving-suggestion-data-suggestion-discarded","_suggestions","forceDefaultExecution","model","_adapter","getAncestors","getMultiRangeId","insertion:join","getNearestSelectionRange","_cutOutSuggestionMarker","isLocal","default","suggestion-type","_descriptionFactory","move","PendingActions","containsPosition","_removeSuggestion","trackChanges.trackFormatChanges","addUser","after","targetPosition","rejected","dataReady","isAtEnd","_getSuggestionData","item","newRange","document","_createSuggestion","_joinSuggestions","isObject","buildSuggestion","getMarkers","isSelectable","addHighlight","setAttribute","setTo","_checkSuggestionCorrectness","isCollapsed","getDifference","splice","next","data","deletion:join","addCommentThread","change:_saved","trackChangesCommand","getChangedMarkers","clear","documentSelection","_enabledCommands","values","formatInline:","ck-suggestion-marker","start","formatInline","deletion:","acceptAllSuggestions","markDeletion","config","dataDowncast","_setSuggestionRange","getFirstRange","activeMarkers","markInsertion","change","lowest","fire","_rangeIsInLocalUserInsertion","listenTo","originalSuggestionId","updateMarker","execute","mapper","_findSuggestions","suggestionChanged","moveTargetPosition","getUser","pluginName","removeAttribute","chain","assign","name","acceptSuggestion","ck-suggestion-marker--active","getSuggestionCallback","clone","toViewElement","remove","updateSuggestion","hasSuggestion","element","deletion","setSelection","nodeBefore","previous","differ","isInsideObject","backward","CommentsRepository","suggestion:","getRanges","getFirstMarker","range","every","add","creator","addMarkerName","_customCallbacks","update:suggestion","never","skipNestingCheck","Users","includes","change:activeMarkers","isBefore","containsItem","rootName","formatBlock:accept","track-changes-adapter-missing-getsuggestion","upcast","addSuggestion","_mergeNestedSuggestions","size","high","before","removeMarker:suggestion:formatBlock","unbindElementFromMarkerName","isAtStart","removeMarker","filter","_isDataLoaded","init","delete","set","_suggestionFactory","for","getAllAdjacentSuggestions","consumable","then","addSuggestionData","stopListening","removed","markMultiRangeDeletion","return","_model","multipleBlocks","position","track-changes-suggestion-data-mismatch","highest","consume","always","createRange","getSuggestions","insertContent","markerNameToElements","oldRange","ck-suggestion-marker-formatBlock","split","addClass","change:data","enableCommand","getChanges","track-changes-suggestion-not-found","formatInline:accept","createElement","_saved","subType","selection","type","acceptSelectedSuggestions","formatBlock:","_defaultCallbacks","commandName","requires","removeComment","push","root","join","_suggestionState","deletion:discard","isEqual","isTouching","splitPosition","isAfter","track-changes-command-not-found","getWalker","formatBlock","collaboration.channelId","markers","accept","formatBlock:join","length","deletion:chain","plugins","map","markerToHighlight","stop","conversion","discard","_commentsRepository","isDocumentOperation","getCustomProperty","editingDowncast","_editor","head","hasComments","parent","define","showSuggestionHighlights","formatBlock:discard","removeMarkers","editing","markerName","removeClass","_updateSuggestionData","isInContent","multi","attributes","options","registerPostFixer","getIntersection","authoredAt","batch","elementStart","addMarker:suggestion:formatBlock","createSelection","suggestionLoaded","group"];var Kx,qx;Kx=Wx,qx=130,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Wx[t-=0]};class $x extends t.Plugin{static get[Xx("0x8d")](){return[Xx("0x42"),r.Users,t.PendingActions,cs,ms,Rs,ws,Bs,zs,$s,er,ir,jx,dr,pr,yr,Ir,Fr,Gr,Kr,Qr,ni,ai,di,pi,Ci,Ri,wi,ji,Vi,$i,ta,ra,ua,pa,Ca,Ia,Ma,Ba,Va,$a,Ox,nx,cx,Ex,Vx,mx,kx,Sx]}static get[Xx("0x2d")](){return Xx("0xfd")}constructor(t){function e(t){return t[Xx("0xa2")]((t=>String.fromCharCode(t)))[Xx("0x91")]("")}super(t),this[Xx("0x65")](Xx("0x1e"),[]),this.on(Xx("0x51"),((e,n,o,s)=>{this[Xx("0x70")][Xx("0x20")]((()=>{for(const e of[...s,...o])this[Xx("0x70")][Xx("0x9c")].has(e)&&t[Xx("0xb3")].reconvertMarker(e)}))})),this[Xx("0x131")]=new ss(this.editor[Xx("0x127")].schema,this[Xx("0x116")][Xx("0xd2")]),this[Xx("0x128")]=null,this[Xx("0x66")]=new Jx(this.editor),this[Xx("0x125")]=new Map,this[Xx("0xa7")]=t[Xx("0xa1")][Xx("0x105")](Xx("0x42")),this._enabledCommands=new Set,this._model=this[Xx("0x116")][Xx("0x127")],this[Xx("0x92")]=new WeakMap,this[Xx("0x111")]=!1,t[Xx("0x1a")][Xx("0xaf")](Xx("0x136"),Xx("0x12f")),this[Xx("0x118")]=t.config.get(Xx("0x136")),t.config[Xx("0xaf")](Xx("0xe9"),!0),this[Xx("0x59")]=t[Xx("0x1a")][Xx("0x105")](Xx("0xe9")),this[Xx("0xd")]=new d(t,this._enabledCommands),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,48,50,52])}[Xx("0x63")](){const t=this[Xx("0x116")];t[Xx("0xa5")][Xx("0x67")](Xx("0xaa"))[Xx("0xa3")]({model:Xx("0xfc"),view:t=>{const{id:e,type:n}=this[Xx("0x112")](t[Xx("0xb4")]),o=[Xx("0x14"),"ck-suggestion-marker-"+n];let s=3e3;return this[Xx("0x1e")][Xx("0x50")](t[Xx("0xb4")])&&(o.push(Xx("0x33")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion.for(Xx("0x1b")).add((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o[Xx("0xba")][Xx("0xb0")])return;const s=n[Xx("0x13e")];if(!s)return;const r=o[Xx("0x28")].toViewElement(s);t[Xx("0x127")][Xx("0x11b")][Xx("0x143")](s)&&r&&!r.getCustomProperty("widget")&&r.is(Xx("0xea"))&&(0,a.toWidget)(r,o.writer)}),{priority:Xx("0x5b")})})),t[Xx("0xa5")][Xx("0x67")]("dataDowncast")[Xx("0xa3")]({model:Xx("0xfc"),view:(t,e)=>{if(!e[Xx("0xba")][Xx("0xb0")])return null;const{type:n}=this[Xx("0x112")](t[Xx("0xb4")]);return{classes:[Xx("0x14"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[Xx("0x13e")].is("selection"))return void s[Xx("0x69")][Xx("0x75")](o.item,n[Xx("0x31")]);const r=s.mapper[Xx("0x36")](o[Xx("0x13e")]);if(!o[Xx("0x13e")].is(Xx("0x3a"))||!t[Xx("0x127")].schema[Xx("0x115")](o[Xx("0x13e")])||r[Xx("0xa9")](Xx("0x1")))return;const{id:i}=this[Xx("0x112")](o[Xx("0xb4")]);s[Xx("0xf4")][Xx("0x7e")]([Xx("0x14"),Xx("0x7c")],r),s[Xx("0xf4")][Xx("0x2")](Xx("0xca"),i,r),s[Xx("0x28")][Xx("0x106")](r,o[Xx("0xb4")]),e&&(this[Xx("0x1e")][Xx("0x50")](o[Xx("0xb4")])?s[Xx("0xf4")][Xx("0x7e")](Xx("0x33"),r):s[Xx("0xf4")][Xx("0xb5")]("ck-suggestion-marker--active",r));for(const e of t[Xx("0x127")].createRangeIn(o[Xx("0x13e")]).getItems())s[Xx("0x69")][Xx("0x75")](e,n.name);s[Xx("0x69")][Xx("0x75")](o[Xx("0x13e")],n.name)};t[Xx("0xa5")][Xx("0x67")](Xx("0x1b")).add((t=>{t.on(Xx("0xc0"),((t,e,o)=>{o.options[Xx("0xb0")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Xx("0x74")})})),t[Xx("0xa5")][Xx("0x67")]("dataDowncast")[Xx("0x103")]({model:Xx("0xfc"),view:(t,e)=>e[Xx("0xba")][Xx("0xb0")]?null:{group:"suggestion",name:t.substr(11)}}),t[Xx("0xa5")].for(Xx("0x57")).elementToElement({view:{name:Xx("0xfc"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Xx("0x43")+t[Xx("0xd8")](Xx("0x130"))+":"+t.getAttribute("id");return t.getAttribute("marker-count")&&(n+=":"+t[Xx("0xd8")](Xx("0xc5"))),e[Xx("0x84")]("$marker",{"data-name":n})}}),t[Xx("0xa5")][Xx("0x67")]("upcast")[Xx("0xde")]({view:Xx("0xfc")}),t.conversion.for(Xx("0xaa"))[Xx("0x48")]((t=>{t.on(Xx("0xc0"),n(),{priority:Xx("0x5b")})})),t[Xx("0xa5")][Xx("0x67")](Xx("0xaa"))[Xx("0x48")]((t=>{t.on(Xx("0x5d"),((t,e,n)=>{const o=n[Xx("0x28")][Xx("0x7a")](e[Xx("0xb4")]);if(o)for(const t of o)t[Xx("0xa9")](Xx("0x1"))||(n[Xx("0xf4")][Xx("0xb5")]([Xx("0x14"),"ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n[Xx("0xf4")][Xx("0x2e")](Xx("0xca"),t),n[Xx("0x28")][Xx("0x5e")](t,e[Xx("0xb4")]))}),{priority:Xx("0x5b")})})),t[Xx("0x127")].document[Xx("0xbb")]((e=>{let n=!1;const o=Array.from(t[Xx("0x127")][Xx("0x140")][Xx("0x3f")][Xx("0xe")]()),s=new Set;for(const{name:a,data:x}of o){const{group:o,type:c,id:l}=this[Xx("0x112")](a);if("suggestion"!==o)continue;const u=this[Xx("0x125")][Xx("0x105")](l);if(null!=x[Xx("0x13f")])if(Xx("0x16")==c&&(n=n||Yx(x[Xx("0x13f")],a,e,t[Xx("0x127")].schema)),x[Xx("0x13f")].isCollapsed||Xx("0x11c")==x[Xx("0x13f")][Xx("0x90")].rootName||Xx("0x9a")==c&&!ec(x[Xx("0x13f")])||Xx("0x3b")==c&&(Zx(i=x.newRange)||(r=i).start.parent==r[Xx("0xe4")].nodeBefore&&r.start[Xx("0x13c")]))e[Xx("0x60")](a),n=!0;else{if(!u||!u[Xx("0xb7")])continue;s.add(u)}}var r,i;return s[Xx("0x5a")]>0&&(n=!!this[Xx("0x107")](s)||n),n})),t.model[Xx("0x140")][Xx("0xbb")]((e=>{let n=!1;for(const o of t.model[Xx("0x140")][Xx("0x3f")][Xx("0x81")]()){if(Xx("0xcb")!=o[Xx("0x88")])continue;const s=o.position[Xx("0xe6")](o[Xx("0x9f")]);if(s[Xx("0x13c")])for(const r of this._suggestions[Xx("0x12")]()){if(r[Xx("0xcc")]||!r[Xx("0xb7")])continue;if(Xx("0x9a")!=r[Xx("0x88")])continue;const i=r[Xx("0x1d")]();if(i.start[Xx("0xae")]!=i[Xx("0xe4")].parent&&i.end[Xx("0x94")](o[Xx("0x72")])){const o=t[Xx("0x127")][Xx("0x77")](i[Xx("0x15")],s);e[Xx("0x26")](r[Xx("0x45")](),{range:o}),n=!0}}}return n})),t[Xx("0x127")][Xx("0x9c")].on(Xx("0x4c"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[Xx("0x31")]),n=this[Xx("0x125")][Xx("0x105")](t);n&&n[Xx("0x4a")](e[Xx("0x31")])}})),t[Xx("0x127")][Xx("0x140")].on(Xx("0x7f"),(()=>{const e=Array[Xx("0xc4")](t.model[Xx("0x140")][Xx("0x3f")][Xx("0xe")]())[Xx("0x61")]((t=>"suggestion"===this[Xx("0x112")](t[Xx("0x31")])[Xx("0xc3")]));if(0===e[Xx("0x9f")])return;e[Xx("0xdb")](((t,e)=>{const n=t[Xx("0x9")].oldRange,o=e[Xx("0x9")][Xx("0x7b")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Xx("0x15")].isBefore(o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xx("0x112")](t);if(null===s[Xx("0x7b")]){const e=this._handleNewSuggestionMarker(t);o[Xx("0x48")](e)}else{const t=this._suggestions[Xx("0x105")](e);null!==s.newRange||t.isInContent?(n.add(t[Xx("0xac")]),o.add(t)):this[Xx("0x135")](t)}}o.size>0&&this._refreshSuggestionsChain(o);for(const t of n)this[Xx("0x22")](Xx("0x2a"),t)})),t.model.on(Xx("0xd1"),((e,n)=>{const o=n[0];if(!this[Xx("0x125")].size)return;if(!o[Xx("0xa8")])return;if(o.batch.isUndo||!o[Xx("0xbe")][Xx("0x12e")])return;let s,r;switch(o[Xx("0x88")]){case Xx("0xcb"):s=t[Xx("0x127")][Xx("0x123")](o[Xx("0x72")]),r=s[Xx("0xe6")](o.howMany);break;case Xx("0x7d"):s=t[Xx("0x127")].createPositionAt(o[Xx("0x96")]),r=t.model[Xx("0x123")](o[Xx("0x2b")]);break;case Xx("0x132"):s=t.model[Xx("0x123")](o[Xx("0x139")]),r=s[Xx("0xe6")](o[Xx("0xd0")]);break;default:return}const i=t[Xx("0x127")][Xx("0x77")](s,r);t[Xx("0x127")].change((()=>{for(const{suggestion:t,meta:e}of this[Xx("0x29")](i)){if(t[Xx("0xcc")])continue;if(Xx("0x16")==t.type)continue;const n=t.data&&t[Xx("0x9")][Xx("0x71")];("formatBlock"!=t[Xx("0x88")]||Xx("0x7d")==o[Xx("0x88")]&&!n)&&(e[Xx("0xef")]||"insertion"==t[Xx("0x88")]&&e.isOwn||t[Xx("0x1d")]().containsRange(i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:Xx("0x21")}),t[Xx("0x127")].on(Xx("0xc9"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Xx("0x126")])return;if(this[Xx("0x111")])return;if(!this[Xx("0xd")][Xx("0x101")])return;if(o[Xx("0x5")])return;const r=t.model[Xx("0x11b")],{start:i,end:a}=o.getFirstRange(),x=i[Xx("0xda")]&&r[Xx("0xf5")](i[Xx("0xda")])?null:r[Xx("0x12c")](i,"forward"),c=a.nodeBefore&&r[Xx("0xf5")](a.nodeBefore)?null:r.getNearestSelectionRange(a,"backward"),l=t.model[Xx("0x77")](x?x[Xx("0x15")]:i,c?c[Xx("0xe4")]:a);t.model[Xx("0x20")]((e=>{this[Xx("0x19")](l);const n=t[Xx("0x127")].schema[Xx("0x12c")](l.start);o.is(Xx("0x10"))?e.setSelection(n):o[Xx("0x3")](n)})),e[Xx("0xa4")]()}),{priority:e.priorities.normal+10}),t[Xx("0x127")].on(Xx("0x79"),((e,n)=>{const o=n[n[Xx("0x9f")]-1];o&&o[Xx("0x126")]||this._isForcedDefaultExecutionBlock||this[Xx("0xd")][Xx("0x101")]&&(t[Xx("0x127")][Xx("0x20")]((()=>{let o=t[Xx("0x127")][Xx("0x79")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Xx("0x6f")]=o[Xx("0x35")]();const s=o[Xx("0xe4")][Xx("0x3d")],r=t[Xx("0x127")][Xx("0x11b")];s&&r[Xx("0x115")](s)&&!r[Xx("0x143")](s)&&(o=t[Xx("0x127")][Xx("0x77")](o[Xx("0x15")],t[Xx("0x127")][Xx("0x123")](s,Xx("0xe4")))),this.markInsertion(o)})),e[Xx("0xa4")]())}),{priority:Xx("0x5b")}),this[Xx("0x116")][Xx("0x120")][Xx("0x48")](Xx("0xf7"),this[Xx("0xd")]),this.enableCommand(Xx("0xf7"));const o=new p(t,this[Xx("0x125")]);t[Xx("0x120")].add("acceptSuggestion",o),this[Xx("0x80")](Xx("0x32"));const s=new C(t,this[Xx("0x125")]);t[Xx("0x120")][Xx("0x48")](Xx("0x10d"),s),this[Xx("0x80")](Xx("0x10d")),t[Xx("0x120")][Xx("0x48")](Xx("0x18"),new F(t,o,this[Xx("0x125")])),this[Xx("0x80")](Xx("0x18")),t[Xx("0x120")][Xx("0x48")](Xx("0x10e"),new F(t,s,this._suggestions)),this.enableCommand("discardAllSuggestions"),t[Xx("0x120")][Xx("0x48")](Xx("0x89"),new U(t,o,this[Xx("0x125")])),this[Xx("0x80")]("acceptSelectedSuggestions"),t.commands.add("discardSelectedSuggestions",new U(t,s,this._suggestions)),this[Xx("0x80")]("discardSelectedSuggestions");const r=t[Xx("0xa1")].get(Xx("0x42"));this.listenTo(r,Xx("0x104"),((t,{threadId:e})=>{const n=this[Xx("0x125")].get(e);n&&n[Xx("0x110")]&&1===n[Xx("0x110")][Xx("0x9f")]&&this[Xx("0xb6")](e,{hasComments:!0})}),{priority:"low"}),this[Xx("0x24")](r,Xx("0x8e"),((t,{threadId:e})=>{const n=this[Xx("0x125")][Xx("0x105")](e);n&&n[Xx("0x110")]&&!n[Xx("0x110")].length&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:"low"})}set[Xx("0xc6")](t){if(this[Xx("0x128")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[Xx("0x128")]=t}get[Xx("0xc6")](){return this[Xx("0x128")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[Xx("0x12")]())t&&!e[Xx("0xb7")]||n[Xx("0x8f")](e);return e?n[Xx("0xa2")]((t=>t.toJSON())):n}[Xx("0x122")](t){const n=this[Xx("0x125")][Xx("0x105")](t);if(!n)throw new e.CKEditorError(Xx("0x82"),this);return n}[Xx("0x39")](t){return this[Xx("0x125")].has(t)}[Xx("0x6b")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Xx("0x88")][Xx("0x7d")](":"),i=this[Xx("0x125")][Xx("0x105")](n)||this._createSuggestion(s,r,n,e,o);if(this[Xx("0x102")](i),this[Xx("0x4")](i,s,r||null,e),i[Xx("0xf3")]=t.createdAt,i[Xx("0x62")]=!0,o&&o["@external"]){const t=o[Xx("0xce")],e=this[Xx("0xd6")](t[Xx("0xd5")]);i[Xx("0xbd")]=t[Xx("0xf3")],i[Xx("0xd3")]=e,i.isExternal=!0}else i[Xx("0xbd")]=t[Xx("0xf3")];switch(t[Xx("0x9")]&&(i[Xx("0x9")]=t.data),t.attributes&&(i[Xx("0xb9")]=t[Xx("0xb9")]),this[Xx("0x128")]&&this[Xx("0x128")].addSuggestion||(i[Xx("0x85")]=!0),this[Xx("0x92")][Xx("0x105")](i)){case"notReady":this[Xx("0x92")].set(i,"dataReady");break;case"markerReady":i[Xx("0xb7")]?(this._refreshSuggestionsChain(new Set([i])),this._joinWithAdjacentSuggestions(new Set([i])),this[Xx("0x92")][Xx("0x65")](i,Xx("0xdf")),this[Xx("0x22")](Xx("0xc2"),i)):this._suggestionState[Xx("0x65")](i,Xx("0x6d"))}return i}[Xx("0x32")](t){this.forceDefaultExecution((()=>{this[Xx("0x116")][Xx("0x127")][Xx("0x20")]((()=>{for(const e of t[Xx("0x68")]())e[Xx("0x9d")]()}))}))}[Xx("0x10d")](t){this[Xx("0x126")]((()=>{this[Xx("0x116")][Xx("0x127")].change((()=>{for(const e of t[Xx("0x68")]())e[Xx("0xa6")]()}))}))}[Xx("0x80")](t,n){const o=this.editor[Xx("0x120")][Xx("0x105")](t);if(!o)throw new e.CKEditorError(Xx("0x98"),this,{commandName:t});this[Xx("0x11")][Xx("0x48")](o),n&&o.on(Xx("0x27"),((t,e)=>{this[Xx("0xd")].value&&(this._isForcedDefaultExecutionBlock||e[Xx("0x9f")]>0&&e[e[Xx("0x9f")]-1]&&e[e[Xx("0x9f")]-1].forceDefaultExecution||(n(((...t)=>o[Xx("0x27")](...t,{forceDefaultExecution:!0})),...e),t[Xx("0xa4")]()))}),{priority:Xx("0x5b")})}[Xx("0x126")](t){let n,o;const s=this[Xx("0x111")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this[Xx("0x111")]=!1),o&&e.CKEditorError[Xx("0xcf")](o,this),n}[Xx("0x1f")](t,n=null,o={}){if(t[Xx("0x5")])return null;const s=this.editor[Xx("0xa1")][Xx("0x105")]("Users").me;for(const{suggestion:e,meta:s}of this[Xx("0x29")](t,Xx("0xee")))if(s[Xx("0xf8")]){if(!s[Xx("0xdc")]){if(s[Xx("0xef")]){if(!this[Xx("0x59")]||!rc(e,o))continue;return e}if(rc(e,o))return e;this[Xx("0xff")](e,t[Xx("0x15")],t[Xx("0xe4")]);break}if(n==e[Xx("0x86")]&&rc(e,o)){const n=e[Xx("0x1d")]();return n[Xx("0x15")].isEqual(t.end)?this[Xx("0x1c")](e,this[Xx("0x70")].createRange(t[Xx("0x15")],n.end)):this[Xx("0x1c")](e,this[Xx("0x70")][Xx("0x77")](n[Xx("0x15")],t[Xx("0xe4")])),e}}const r=(0,e.uid)(),i=s.id,a=n?Xx("0xed")+n:Xx("0xee"),x=this._setSuggestionData({id:r,type:a,createdAt:new Date,authorId:i,attributes:o});return this[Xx("0x121")](a,r,i,t),x}markMultiRangeInsertion(t,n=Xx("0xb8"),o={}){const s=this[Xx("0x116")][Xx("0xa1")][Xx("0x105")]("Users").me,r=this[Xx("0x66")][Xx("0x34")](Xx("0xee"),n,Xx("0x91"));for(const e of this.getSuggestions())if(e.author.id==s.id&&Xx("0xee")==e[Xx("0x88")]&&e[Xx("0x86")]==n&&rc(e,o)&&(r(e[Xx("0x44")](),t)||r(t,e[Xx("0x44")]()))){for(const n of t)e[Xx("0x11e")](n);return e}for(const{suggestion:e,meta:n}of this[Xx("0x29")](t,Xx("0xee"))){if(!n[Xx("0xf8")])continue;if(!this[Xx("0x59")]&&n[Xx("0xef")])continue;if(!rc(e,o))continue;let s=!0;for(const n of e.getRanges())for(const e of t)if(!n.containsRange(e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),a=s.id,x="insertion:"+n,c=this[Xx("0x113")]({id:i,type:x,createdAt:new Date,authorId:a,attributes:o});for(const e of t)this[Xx("0x121")](x,i,a,e,Zo[Xx("0x12a")]());return c}[Xx("0xe5")](t,n,o=null,s={}){if(o=o||tc(n),t[Xx("0x5")])return null;if("never"===this[Xx("0x118")]){const e=this[Xx("0x66")][Xx("0x34")](Xx("0x16"),o,Xx("0x9d"));return this[Xx("0x126")]((()=>e([t],n,s))),null}const r=this.editor[Xx("0xa1")][Xx("0x105")](Xx("0x4f")).me,i=[];if(Xx("0x76")!==this[Xx("0x118")])for(const{suggestion:e,meta:n}of this[Xx("0x29")](t,"insertion"))n[Xx("0xf8")]&&!n.isInsideObject&&i[Xx("0x8f")](...e.getRanges());const a=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[Xx("0x8f")](e)}return n}(t,i),x=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Xx("0x9f")];){const o=n[e][Xx("0x6")](t);n[Xx("0x7")](e,1,...o),e+=o[Xx("0x9f")]}}return n}(t,i);a[Xx("0x9f")]&&this._model.change((()=>{for(const t of a){const e=this[Xx("0x66")][Xx("0x34")](Xx("0x16"),o,Xx("0x9d"));this[Xx("0x126")]((()=>e([t],n,s)))}}));for(const t of x){let i=null,a=t[Xx("0x15")],x=t[Xx("0xe4")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,"formatInline")){if(!n.isOwn)continue;if(e[Xx("0x86")]!=o)continue;if(!rc(e,s))continue;const r=e.getFirstRange();if(r.containsRange(t,!0))return null;a=a[Xx("0x52")](r[Xx("0x15")])?a:r.start,x=x[Xx("0x97")](r[Xx("0xe4")])?x:r[Xx("0xe4")],i?r[Xx("0x15")][Xx("0x52")](i[Xx("0x1d")]()[Xx("0x15")])?(i.removeMarkers(),i=e):e[Xx("0xb2")]():i=e}const c=this[Xx("0x70")][Xx("0x77")](a,x);if(i)this[Xx("0x1c")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Xx("0x113")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Xx("0x121")](Xx("0x13")+o,t,i,c)}}return null}[Xx("0xe2")](t,n,o=[],s=null,r={}){n[Xx("0xdd")]||(n[Xx("0xdd")]=n[Xx("0x8c")]),n[Xx("0x71")]=t.is("range"),s=s||tc(n);const i=o[Xx("0xa2")]((t=>nc(t,this._model))),a=t.is("range")?t:nc(t,this[Xx("0x70")]);if(Xx("0x4d")===this._trackFormatChanges){const t=this[Xx("0x66")][Xx("0x34")](Xx("0x9a"),s,"accept");return this[Xx("0x126")]((()=>t([a],n,r))),null}i[Xx("0x8f")](a);let x=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){x=!1;break}if(x&&Xx("0x76")!==this[Xx("0x118")]){const t=this._suggestionFactory[Xx("0x34")](Xx("0x9a"),s,Xx("0x9d"));return this[Xx("0x126")]((()=>t([a],n,r))),null}let c=null,l=a[Xx("0x15")],u=a[Xx("0xe4")];for(const{suggestion:t,meta:e}of this._findSuggestions(a,Xx("0x9a"))){if(!e[Xx("0xf8")])continue;if(e[Xx("0xdc")]||e[Xx("0xef")]||e[Xx("0x40")])continue;if(t.data[Xx("0xdd")]!=n.formatGroupId)continue;if(!rc(t,r))continue;const o=t[Xx("0x1d")]();if(t.subType==s){if(o[Xx("0xf1")](a,!0))return null;l=l[Xx("0x52")](o[Xx("0x15")])?l:o[Xx("0x15")],u=u.isAfter(o[Xx("0xe4")])?u:o[Xx("0xe4")],c?o[Xx("0x15")][Xx("0x52")](c.getFirstRange()[Xx("0x15")])?(c[Xx("0xb2")](),c=t):t[Xx("0xb2")]():c=t}else{const e=a[Xx("0xbc")](o);this[Xx("0x12d")](t,e)}}const d=this[Xx("0x116")][Xx("0xa1")].get(Xx("0x4f")).me,g=(0,e.uid)(),m=d.id;if(c)return this[Xx("0x1c")](c,this[Xx("0x70")][Xx("0x77")](l,u)),c;{const t=this._setSuggestionData({id:g,type:Xx("0x8a")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(Xx("0x8a")+s,g,m,this._model[Xx("0x77")](l,u)),t}}[Xx("0xc8")](t,n,o=[],s=null,r={}){n[Xx("0xdd")]||(n[Xx("0xdd")]=n[Xx("0x8c")]);const i=t[0];n[Xx("0x71")]=i.is("range"),s=s||tc(n);const a=o[Xx("0xa2")]((t=>nc(t,this[Xx("0x70")]))),x=i.is(Xx("0x46"))?t:t[Xx("0xa2")]((t=>nc(t,this[Xx("0x70")])));if(Xx("0x4d")===this[Xx("0x118")]){const t=this[Xx("0x66")][Xx("0x34")](Xx("0x9a"),s,Xx("0x9d"));return this.forceDefaultExecution((()=>t(x,n,r))),null}a[Xx("0x8f")](...x);let c=!0;for(const t of a)if(!this[Xx("0x23")](t)){c=!1;break}if(c&&"always"!==this[Xx("0x118")]){const t=this._suggestionFactory[Xx("0x34")](Xx("0x9a"),s,Xx("0x9d"));return this[Xx("0x126")]((()=>t(x,n,r))),null}const l=this[Xx("0x116")][Xx("0xa1")][Xx("0x105")](Xx("0x4f")).me;for(const t of this[Xx("0x78")]()){if(t.author.id!=l.id)continue;if("formatBlock"!=t.type||t[Xx("0x9")][Xx("0xdd")]!=n[Xx("0xdd")])continue;if(!rc(t,r))continue;const e=t[Xx("0x86")]==s;for(let n=0;n<x[Xx("0x9f")];n++){const o=x[n];for(const s of t[Xx("0x145")]()){const r=s[Xx("0x10b")]();if(o[Xx("0x94")](r)){e?(x[Xx("0x7")](n,1),n--):t.removeMarker(s[Xx("0x31")]);break}}}}if(0==x[Xx("0x9f")])return null;const u=this[Xx("0x66")][Xx("0x34")]("formatBlock",s,Xx("0x91"));for(const t of this[Xx("0x78")]())if(t[Xx("0xd3")].id==l.id&&Xx("0x9a")==t.type&&t[Xx("0x9")][Xx("0xdd")]==n.formatGroupId&&t.subType==s&&rc(t,r)&&(u(t[Xx("0x44")](),x)||u(x,t.getRanges()))){for(const e of x)t[Xx("0x11e")](e);return t}const d=(0,e.uid)(),g=l.id,m=Xx("0x8a")+s,f=this[Xx("0x113")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of x)this[Xx("0x121")](m,d,g,t,Zo[Xx("0x12a")]());return f}[Xx("0x19")](t,n=null,o={}){if(t[Xx("0x5")])return null;const s=this[Xx("0x116")][Xx("0xa1")][Xx("0x105")](Xx("0x4f")).me,r=new i.LiveRange(t[Xx("0x15")],t.end);for(const{suggestion:t,meta:e}of this[Xx("0x29")](r,Xx("0xee")))if(e.isOwn&&!e[Xx("0xdc")])if(t[Xx("0xcc")]){const e=t[Xx("0x44")]()[Xx("0x61")]((t=>Xx("0x11c")!=t.root.rootName));if(e[Xx("0x47")]((t=>r[Xx("0xf1")](t,!0)))&&t[Xx("0xa6")](),e[Xx("0x100")]((t=>t.containsRange(r,!0)))){const t=this[Xx("0x66")][Xx("0x34")](Xx("0x3b"),n,Xx("0x9d"));return this[Xx("0x126")]((()=>t([r],null,o))),null}}else{const e=r[Xx("0xbc")](t.getFirstRange());null!==e&&t[Xx("0xe7")]([e],null,o)}if(r[Xx("0xf2")](),r[Xx("0x5")]||"$graveyard"==r[Xx("0x90")].rootName)return null;let a=null,x=r.start,c=r.end;const l=this[Xx("0x29")](r,"deletion");for(const{suggestion:t,meta:e}of l){const n=this[Xx("0x70")][Xx("0x77")](x,c);if(e[Xx("0xf8")]&&(this[Xx("0x59")]||!e.containsRangeInObject&&!e[Xx("0x40")]))if(t[Xx("0xcc")]){if(!rc(t,o))continue;let e=!0;for(const o of t.getRanges()){if(o.containsRange(n,!0))return t;n[Xx("0xf1")](o)||(e=!1)}e&&t[Xx("0xa6")]()}else{const e=t[Xx("0x1d")]();if(e[Xx("0xf1")](n,!0))return t;if(!rc(t,o)){n[Xx("0xf1")](e)?t[Xx("0xb2")]():e[Xx("0x134")](x)?x=e.end:e[Xx("0x134")](c)&&(c=e[Xx("0x15")]);continue}x=x[Xx("0x52")](e[Xx("0x15")])?x:e[Xx("0x15")],c=c[Xx("0x97")](e[Xx("0xe4")])?c:e.end,o=Object[Xx("0x30")]({},t.attributes),a?e[Xx("0x15")][Xx("0x52")](a[Xx("0x1d")]()[Xx("0x15")])?(a[Xx("0xb2")](),a=t):t.removeMarkers():a=t}}if(a)return this[Xx("0x1c")](a,this[Xx("0x70")][Xx("0x77")](x,c)),a;{const t=(0,e.uid)(),r=this[Xx("0x70")][Xx("0x77")](x,c),i=s.id,a=n?Xx("0x17")+n:"deletion",l=this[Xx("0x113")]({id:t,type:a,createdAt:new Date,authorId:i,attributes:o});return this[Xx("0x121")](a,t,i,r),l}}[Xx("0x6e")](t,n=Xx("0xb8"),o={}){const s=this.editor[Xx("0xa1")][Xx("0x105")](Xx("0x4f")).me,r=t.map((t=>new i.LiveRange(t[Xx("0x15")],t[Xx("0xe4")]))),a=new Set;for(const{suggestion:t,meta:e}of this[Xx("0x29")](r,"insertion"))e[Xx("0xf8")]&&!e[Xx("0xdc")]&&a[Xx("0x48")](t);for(const e of a)if(e[Xx("0xcc")]){const s=e.getRanges();if((!e.attributes||!e.attributes[Xx("0x4e")])&&s[Xx("0x47")]((t=>r[Xx("0x100")]((e=>e.containsRange(t,!0)))))&&e[Xx("0xa6")](),r[Xx("0x47")]((t=>s[Xx("0x100")]((e=>e[Xx("0xf1")](t,!0)))))){const e=this._suggestionFactory[Xx("0x34")](Xx("0x3b"),n,Xx("0x9d"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[Xx("0x1d")]();if(r[Xx("0x100")]((e=>e[Xx("0xf1")](t,!0)))&&e.discard(),r.every((e=>t[Xx("0xf1")](e,!0)))){const t=this[Xx("0x66")].getSuggestionCallback("deletion",n,Xx("0x9d"));return this[Xx("0x126")]((()=>t(r,null,o))),null}}const x=this[Xx("0x66")][Xx("0x34")](Xx("0x3b"),n,Xx("0x91"));let c=null;for(const t of this[Xx("0x78")]())if(t[Xx("0xd3")].id==s.id&&t[Xx("0xb7")]&&Xx("0x3b")==t[Xx("0x88")]&&t[Xx("0x86")]==n&&rc(t,o)&&(x(t[Xx("0x44")](),r)||x(r,t[Xx("0x44")]())))if(c){if(t.commentThread&&t[Xx("0x110")][Xx("0x9f")])continue;for(const e of t[Xx("0x44")]())c[Xx("0xcd")](e)||c[Xx("0x11e")](e);t[Xx("0xb2")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[Xx("0x11e")](e)}if(c)return c;a[Xx("0xf")]();for(const{suggestion:t,meta:e}of this[Xx("0x29")](r,Xx("0x3b")))e.isOwn&&(this[Xx("0x59")]||!e.containsRangeInObject&&!e[Xx("0x40")])&&rc(t,o)&&a[Xx("0x48")](t);for(const t of a){const e=t[Xx("0x44")]();if((!o||!o.skipNestingCheck)&&r[Xx("0x47")]((t=>e[Xx("0x100")]((e=>e.containsRange(t,!0))))))return t;(!t[Xx("0xb9")]||!t[Xx("0xb9")][Xx("0x4e")])&&e[Xx("0x47")]((t=>r[Xx("0x100")]((e=>e[Xx("0xf1")](t,!0)))))&&t[Xx("0xa6")]()}const l=(0,e.uid)(),u=s.id,d="deletion:"+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[Xx("0xf2")](),t.isCollapsed||Xx("0x11c")==t.root.rootName||this[Xx("0x121")](d,l,u,t,Zo[Xx("0x12a")]());return g}[Xx("0x1c")](t,e){const n=t[Xx("0x45")]();this[Xx("0x70")][Xx("0x20")]((t=>{t[Xx("0x26")](n,{range:e})}))}[Xx("0x102")](t){const e=t.id,n=this[Xx("0x116")][Xx("0x1a")][Xx("0x105")](Xx("0x9b"));this[Xx("0xa7")][Xx("0xd7")](e)||this[Xx("0xa7")][Xx("0xb")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xx("0xa7")][Xx("0xe8")](e);o.unbind("isRemovable"),o[Xx("0x11a")]=!1,t.commentThread=o}[Xx("0x4")](t,n,o,s){if(t[Xx("0x88")]!=n||t[Xx("0x86")]!=o||t[Xx("0x49")].id!=s)throw this[Xx("0x116")].enableReadOnlyMode(Xx("0x73")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[Xx("0x12d")](t,n){const o=t[Xx("0x1d")]();if(n[Xx("0x94")](o))t[Xx("0xb2")]();else if(o[Xx("0xf1")](n)){const s=this._model[Xx("0x123")](n[Xx("0x15")].nodeBefore,Xx("0xe4"));this[Xx("0x1c")](t,this[Xx("0x70")][Xx("0x77")](o[Xx("0x15")],s));const r=(0,e.uid)(),i=t.creator.id,a=t.type+":"+t[Xx("0x86")];this._setSuggestionData({id:r,type:a,createdAt:new Date,authorId:i,data:t[Xx("0x9")],attributes:t[Xx("0xb9")]});const x=this[Xx("0x70")][Xx("0x123")](n[Xx("0xe4")][Xx("0xae")],"after"),c=this[Xx("0x70")].createRange(x,o[Xx("0xe4")]);this[Xx("0x121")](a,r,i,c)}else if(o[Xx("0x134")](n[Xx("0x15")])){const e=this[Xx("0x70")].createPositionAt(n[Xx("0x15")][Xx("0x3d")],Xx("0xe4"));this[Xx("0x1c")](t,this[Xx("0x70")].createRange(o.start,e))}else{const e=this[Xx("0x70")].createPositionAt(n[Xx("0xe4")].parent,Xx("0x138"));this[Xx("0x1c")](t,this[Xx("0x70")].createRange(e,o[Xx("0xe4")]))}}[Xx("0x23")](t){for(const{suggestion:e,meta:n}of this[Xx("0x29")](t,Xx("0xee"))){if(!n[Xx("0xf8")])continue;const o=e.getRanges();for(const e of o)if(!t[Xx("0x6")](e)[Xx("0x9f")])return!0}return!1}_getAuthorFromId(t){const n=this[Xx("0x116")][Xx("0xa1")].get(Xx("0x4f"))[Xx("0x2c")](t);if(!n)throw new e.CKEditorError(Xx("0xfa"),this);return n}[Xx("0xd6")](t){const e=this[Xx("0x116")][Xx("0xa1")][Xx("0x105")]("Users"),n=(0,r.hashObject)("external:"+t);return e[Xx("0x2c")](n)||e[Xx("0x137")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[Xx("0xeb")](o),i=this[Xx("0x66")][Xx("0x144")](t,e,n,r,s,(t=>this[Xx("0xb6")](n,{attributes:t})));return this[Xx("0x24")](i,"accept",(()=>{this._updateSuggestionData(n,{state:Xx("0xd9")})}),{priority:Xx("0x5b")}),this[Xx("0x24")](i,Xx("0xa6"),(()=>{this._updateSuggestionData(n,{state:Xx("0x13a")})}),{priority:Xx("0x5b")}),this[Xx("0x125")][Xx("0x65")](n,i),this._suggestionState[Xx("0x65")](i,Xx("0xf9")),i}[Xx("0x112")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[Xx("0x9f")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[Xx("0x9f")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[Xx("0xff")](t,n,o){const s=t[Xx("0x1d")](),r=s.start,i=s[Xx("0xe4")];this[Xx("0x1c")](t,this[Xx("0x70")].createRange(r,n));const a=(0,e.uid)(),x=t[Xx("0x49")].id,c=t[Xx("0x88")]+(t[Xx("0x86")]?":"+t[Xx("0x86")]:"");this[Xx("0x113")]({id:a,type:c,createdAt:new Date,authorId:x,originalSuggestionId:t.id,attributes:t[Xx("0xb9")],data:t[Xx("0x9")]}),"formatBlock"==t[Xx("0x88")]&&(o=this._model[Xx("0xe1")](o[Xx("0xae")])),this[Xx("0x121")](c,a,x,this[Xx("0x70")][Xx("0x77")](o,i))}_findSuggestions(t,e=null){const n=[],o=this[Xx("0x116")][Xx("0xa1")][Xx("0x105")](Xx("0x4f")).me;Array.isArray(t)||(t=[t]);for(const s of this.getSuggestions()){if(!s.isInContent)continue;if(e&&s.type!=e)continue;let r=!1;for(const e of s[Xx("0x44")]()){for(const i of t){const t=i[Xx("0x15")][Xx("0x94")](e[Xx("0xe4")])||i[Xx("0xe4")].isEqual(e[Xx("0x15")]);if(t||i[Xx("0xbc")](e)){const a=i[Xx("0xf1")](e)&&Qx(this[Xx("0x70")][Xx("0x11b")],e[Xx("0x15")],i),x=e[Xx("0xf1")](i)&&Qx(this._model[Xx("0x11b")],i.start,e);n[Xx("0x8f")]({suggestion:s,meta:{isOwn:o==s.author,isNextTo:t,isInsideObject:a,containsRangeInObject:x}}),r=!0;break}}if(r)break}}return n}[Xx("0x121")](t,e,n,o,s){this._model[Xx("0x20")]((r=>{let i=Xx("0x43")+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[Xx("0x135")](t){const e=t[Xx("0x3e")],n=t[Xx("0x8")];t[Xx("0x3e")]=null,null!=e&&(e.next=null),t[Xx("0x8")]=null,null!=n&&(n.previous=null),Xx("0xdf")==this[Xx("0x92")][Xx("0x105")](t)&&(this[Xx("0x92")].set(t,Xx("0x6d")),this.fire("suggestionUnloaded",t,e,n))}_setSuggestionData(t){const n=t.id,o=this[Xx("0x6b")](t);if(this[Xx("0x128")]&&this._adapter[Xx("0x58")]){const s=this[Xx("0x116")][Xx("0xa1")][Xx("0x105")]("PendingActions"),r=o[Xx("0xad")],i=o[Xx("0x86")]?o[Xx("0x88")]+":"+o[Xx("0x86")]:o[Xx("0x88")],a=this[Xx("0x116")][Xx("0xd2")],x=s[Xx("0x48")](Yo(a,Xx("0x114"))),c={id:n,type:i,hasComments:r,data:t.data||null,originalSuggestionId:t[Xx("0x25")]||null,attributes:o.attributes};this[Xx("0x128")][Xx("0x58")](c)[Xx("0x6a")]((t=>{o[Xx("0x85")]=!0,s[Xx("0x37")](x),t&&t[Xx("0xf3")]&&(this[Xx("0x125")].get(n)[Xx("0xf3")]=t[Xx("0xf3")])}))[Xx("0x109")]((t=>{throw(0,e.logWarning)(Xx("0x124")),this[Xx("0x116")][Xx("0x127")][Xx("0x11f")]({isUndoable:!1},(()=>{o[Xx("0xa6")]()})),o[Xx("0x6c")](),this[Xx("0x125")][Xx("0x64")](o.id),this[Xx("0x92")][Xx("0x64")](o),t}))}return o}[Xx("0xb6")](t,e){const n=this[Xx("0x116")][Xx("0xa1")][Xx("0x105")](Xx("0x133")),o=this[Xx("0x122")](t);if(this._adapter&&this[Xx("0x128")][Xx("0x38")])if(o[Xx("0x85")]){const o=n[Xx("0x48")](Yo(this[Xx("0x116")][Xx("0xd2")],Xx("0x114")));this[Xx("0x128")].updateSuggestion(t,e).then((()=>{n[Xx("0x37")](o)}))}else o.on(Xx("0xc"),(()=>{this._updateSuggestionData(t,e)}))}_getSuggestionData(t){if(!this[Xx("0x128")]||!this[Xx("0x128")][Xx("0x122")])throw new e.CKEditorError(Xx("0x56"),this);return this[Xx("0x128")][Xx("0x122")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[Xx("0x125")][Xx("0x105")](e)||this[Xx("0x141")](n,o,e,s,{});switch(this[Xx("0x4")](r,n,o,s),this[Xx("0x92")][Xx("0x105")](r)){case Xx("0xf9"):this[Xx("0x13d")](e)[Xx("0x6a")]((t=>{let n=Promise[Xx("0x117")]();t[Xx("0xad")]&&(n=this[Xx("0xa7")][Xx("0x119")]({channelId:this[Xx("0x116")][Xx("0x1a")][Xx("0x105")](Xx("0x9b")),threadId:e})),n[Xx("0x6a")]((()=>{this[Xx("0x6b")](t)[Xx("0x85")]=!0}))})),this[Xx("0x92")].set(r,Xx("0xfe"));break;case Xx("0x6d"):this[Xx("0xb6")](e,{state:Xx("0xe3")});case Xx("0x13b"):this[Xx("0x92")][Xx("0x65")](r,Xx("0xdf")),this[Xx("0x22")](Xx("0xc2"),r);break;case Xx("0xdf"):this[Xx("0x22")](Xx("0x2a"),r)}return r.addMarkerName(t),r}[Xx("0x11d")](t){const e=Array[Xx("0xc4")](t)[Xx("0x61")]((t=>!t[Xx("0xcc")])),n=this[Xx("0x78")]({skipNotAttached:!0})[Xx("0x61")]((t=>!t[Xx("0xcc")])),o=n.filter((e=>!t[Xx("0xf6")](e))),s=new Map(n[Xx("0xa2")]((t=>[t,this[Xx("0x66")][Xx("0x34")](t[Xx("0x88")],t.subType,Xx("0x2f"))]))),r=new Map(n[Xx("0xa2")]((t=>[t,t[Xx("0x1d")]()]))),i=new Set,a=new Set;for(let t=0;t<e[Xx("0x9f")];t++)x(e[t],e,t+1);for(let t=0;t<e.length;t++)x(e[t],o,0);for(let t=0;t<e[Xx("0x9f")];t++){const n=e[t];!a[Xx("0xf6")](n)&&n[Xx("0x3e")]&&(n.previous[Xx("0x8")]===n&&(n[Xx("0x3e")][Xx("0x8")]=null),n[Xx("0x3e")]=null),!i[Xx("0xf6")](n)&&n[Xx("0x8")]&&(n[Xx("0x8")][Xx("0x3e")]===n&&(n[Xx("0x8")][Xx("0x3e")]=null),n.next=null)}function x(t,e,n){for(let o=n;o<e[Xx("0x9f")];o++){const n=c(t,e[o]);n&&(n[0][Xx("0x8")]=n[1],n[1][Xx("0x3e")]=n[0],i.add(n[0]),a[Xx("0x48")](n[1]))}}function c(t,e){if(t[Xx("0xd3")].id!==e.author.id)return null;const n=s[Xx("0x105")](t)(t,e,r.get(t),r.get(e));return n&&s[Xx("0x105")](e)(t,e,r[Xx("0x105")](t),r[Xx("0x105")](e))?n[1][Xx("0x110")]&&n[1].commentThread[Xx("0x9f")]?null:n:null}}[Xx("0x107")](t){const e=Array[Xx("0xc4")](t),n=this[Xx("0x78")]({skipNotAttached:!0}),o=n.filter((e=>!t.has(e))),s=new Map(e.map((t=>[t,this[Xx("0x66")][Xx("0x34")](t[Xx("0x88")],t.subType,"join")]))),r=new Map(n[Xx("0xa2")]((t=>[t,t[Xx("0x44")]()])));for(let t=0;t<e.length;t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Xx("0x9f")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[Xx("0x9f")];i++){const o=n[i];if(o.type!==e.type||o.author.id!==e.author.id||o[Xx("0x86")]!==e.subType)continue;if(!sc(e,o))continue;const a=s.get(e),x=r[Xx("0x105")](e),c=r[Xx("0x105")](o),l=e[Xx("0x110")]&&e.commentThread[Xx("0x9f")],u=o[Xx("0x110")]&&o[Xx("0x110")][Xx("0x9f")];if(!l&&a(c,x))return t._joinSuggestions(o,e),r.delete(e),!0;if(!u&&a(x,c))return t[Xx("0x142")](e,o),r[Xx("0x64")](o),!0}return!1}}[Xx("0x142")](t,e){if(t.isMultiRange)for(const n of e[Xx("0x44")]())t[Xx("0x11e")](n);else{const n=e.getFirstRange()[Xx("0xe4")];this[Xx("0x1c")](t,this[Xx("0x70")][Xx("0x77")](t.getFirstRange()[Xx("0x15")],n))}e[Xx("0xb2")]()}}class Jx{constructor(t){this[Xx("0xab")]=t,this[Xx("0x70")]=t[Xx("0x127")],this[Xx("0x4b")]=new Map,this._defaultCallbacks=new Map,this[Xx("0xfb")]()}[Xx("0x144")](t,e,n,o,s,r){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Xx("0x34")](t,e,"accept")(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,"discard")(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[Xx("0x4b")][Xx("0x65")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[Xx("0x4b")][Xx("0x105")](o)||this[Xx("0x8b")][Xx("0x105")](t+":"+n)}[Xx("0xfb")](){const t=()=>!1,e=t=>{t[Xx("0xdb")](((t,e)=>t[Xx("0x15")][Xx("0x52")](e[Xx("0x15")])?1:-1)),this[Xx("0x70")].change((e=>{for(const n of t){let t;t=n[Xx("0xe4")][Xx("0x13c")]&&n[Xx("0xe4")][Xx("0xae")]==n[Xx("0x15")].nodeAfter?e[Xx("0xc1")](n[Xx("0x15")][Xx("0xda")],"on"):e[Xx("0xc1")](n),this[Xx("0x70")][Xx("0xc9")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Xx("0x70")][Xx("0x20")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Xx("0xa2")]((t=>(Zx(t)&&(t=this[Xx("0x70")][Xx("0x77")](t[Xx("0xe4")])),t)))[Xx("0x61")]((t=>Xx("0x11c")!==t[Xx("0x90")][Xx("0x54")]));if(r[Xx("0x9f")]<1)return;const a=Array[Xx("0xc4")](this[Xx("0x70")][Xx("0x140")][Xx("0x87")][Xx("0x44")]())[Xx("0xa2")]((t=>i.LiveRange.fromRange(t)));n[Xx("0x3c")](r);for(const t of this[Xx("0xab")][Xx("0x120")][Xx("0x120")]())t[Xx("0xc7")]();s[Xx("0x8f")]({forceDefaultExecution:!0}),this[Xx("0xab")][Xx("0x27")](o,...s);const x=a.filter((t=>"$graveyard"!=t[Xx("0x90")][Xx("0x54")]));x.length>0&&n[Xx("0x3c")](x);for(const t of a)t[Xx("0xf2")]()}))},o=(t,e)=>1==t[Xx("0x9f")]&&1==e[Xx("0x9f")]&&t[0][Xx("0xe4")].isEqual(e[0][Xx("0x15")]),s=(t,e,n,o)=>oc(t,e,n,o,this[Xx("0x70")])?[t,e]:oc(e,t,o,n,this[Xx("0x70")])?[e,t]:null;this[Xx("0x8b")][Xx("0x65")](Xx("0x10a"),t),this[Xx("0x8b")][Xx("0x65")](Xx("0xe0"),e),this._defaultCallbacks[Xx("0x65")](Xx("0x12b"),o),this[Xx("0x8b")][Xx("0x65")](Xx("0xec"),s),this._defaultCallbacks[Xx("0x65")]("deletion:accept",e),this[Xx("0x8b")][Xx("0x65")](Xx("0x93"),t),this._defaultCallbacks[Xx("0x65")](Xx("0xa"),o),this[Xx("0x8b")].set(Xx("0xa0"),s),this[Xx("0x8b")][Xx("0x65")](Xx("0x83"),n),this[Xx("0x8b")].set("formatInline:discard",t),this[Xx("0x8b")][Xx("0x65")](Xx("0x108"),o),this[Xx("0x8b")][Xx("0x65")](Xx("0xd4"),t),this._defaultCallbacks[Xx("0x65")](Xx("0x55"),n),this[Xx("0x8b")][Xx("0x65")](Xx("0xb1"),t),this._defaultCallbacks[Xx("0x65")](Xx("0x9e"),o),this[Xx("0x8b")][Xx("0x65")](Xx("0x10c"),t)}}function Qx(t,e,n){for(const o of e.parent[Xx("0x129")]({includeSelf:!0,parentFirst:!0})){if(o[Xx("0x90")]==o)return!1;if(!n[Xx("0x53")](o))return!1;if(t[Xx("0x143")](o)||t.isLimit(o))return!0}return!1}function Zx(t){return t[Xx("0xe4")][Xx("0xae")]==t[Xx("0x15")][Xx("0xda")]&&t.end[Xx("0x5f")]}function Yx(t,e,n,o){const s=t=>!t[Xx("0x13e")].is("$textProxy")&&!o[Xx("0x143")](t[Xx("0x13e")]),r=t[Xx("0x15")][Xx("0x10f")](s),i=t[Xx("0xe4")][Xx("0x10f")](s,{direction:Xx("0x41")});return!(t[Xx("0x15")].isEqual(r)&&t.end.isEqual(i)||(r[Xx("0x52")](i)?n[Xx("0x26")](e,{range:n[Xx("0x77")](r,i)}):n[Xx("0x60")](e),0))}function tc(t){return(0,r.hashObject)(t)}function ec(t){const e=t.start[Xx("0xda")];return e&&e.is(Xx("0x3a"))}function nc(t,e){const n=e.schema.isObject(t)||e[Xx("0x11b")][Xx("0x0")](t);return e[Xx("0x77")](e[Xx("0x123")](t,Xx("0x5c")),n?e.createPositionAfter(t):e[Xx("0x123")](t,Xx("0xe4")))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n[Xx("0xe4")][Xx("0x94")](o.start))return!0;if(t[Xx("0x88")]!=e[Xx("0x88")])return!1;if(!n.end[Xx("0x95")](o.start))return!1;const r=s.createRange(n[Xx("0xe4")],o.start)[Xx("0x99")]();for(const t of r)if([Xx("0xbf"),Xx("0xf0")][Xx("0x50")](t.type)&&s[Xx("0x11b")][Xx("0xf5")](t[Xx("0x13e")]))return!1;return!0}function sc(t,e){return!(!t[Xx("0x62")]||!e[Xx("0x62")])&&Go(t[Xx("0xb9")],e[Xx("0xb9")])}function rc(t,e){const n=ic(t[Xx("0xb9")]),o=ic(e);if(!t[Xx("0x62")])return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function ic(t){const e=Object.assign({},t);return delete e.skipNestingCheck,delete e.tablePasteChainId,e}const ac=["_editor","view","_setPendingAction","_acceptCommand","canDiscard","add","bind","getRanges","change:isDirty","canEditAt","acceptSuggestion","stopListening","listenTo","PENDING_ACTION_SUGGESTION","canAccept","_removePendingAction","commands","isDirty","PendingActions","model","_pendingAction","remove","destroy","get","plugins","execute","unbind","_discardCommand","commentThreadController","discardSuggestion","isEnabled"];var xc,cc;xc=ac,cc=146,function(t){for(;--t;)xc.push(xc.shift())}(++cc);const lc=function(t,e){return ac[t-=0]};class uc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[lc("0x1c")]=e,this.view=n,this.commentThreadController=o,this[lc("0x9")]=t,this[lc("0xc")]=t[lc("0x19")][lc("0x1")](lc("0x13")),this._discardCommand=t.commands.get(lc("0x7")),this.view[lc("0xf")](lc("0x8")).to(this[lc("0xc")],this[lc("0x5")],((t,e)=>t||e)),this[lc("0xa")].bind(lc("0x17")).to(this._acceptCommand,lc("0x8"),(t=>t&&this[lc("0x9")][lc("0x1c")][lc("0x12")](e[lc("0x10")]()))),this[lc("0xa")].bind(lc("0xd")).to(this[lc("0x5")],lc("0x8"),(t=>t&&this[lc("0x9")][lc("0x1c")].canEditAt(e[lc("0x10")]()))),this[lc("0x1d")]=null,n[lc("0x1a")]&&this[lc("0xb")](),this.listenTo(n,"acceptSuggestion",(()=>this[lc("0x13")]())),this[lc("0x15")](n,"discardSuggestion",(()=>this[lc("0x7")]())),this.listenTo(n,lc("0x11"),(()=>{n[lc("0x1a")]?this[lc("0xb")]():this[lc("0x18")]()}))}[lc("0x13")](){this[lc("0xc")].execute(this[lc("0x1c")].id)}[lc("0x7")](){this[lc("0x5")][lc("0x3")](this.model.id)}[lc("0x0")](){this[lc("0xa")][lc("0x4")]("isEnabled"),this.view.unbind(lc("0x17")),this[lc("0xa")][lc("0x4")](lc("0xd")),this[lc("0x14")](),this[lc("0x6")].destroy(),this[lc("0x1d")]&&this[lc("0x18")]()}[lc("0xb")](){const t=Yo(this[lc("0x9")].locale,lc("0x16"));this[lc("0x1d")]=this[lc("0x9")][lc("0x2")].get("PendingActions")[lc("0xe")](t)}[lc("0x18")](){null!==this._pendingAction&&this._editor[lc("0x2")][lc("0x1")](lc("0x1b"))[lc("0x1e")](this[lc("0x1d")]),this[lc("0x1d")]=null}}const dc=["isActive","commentThread","_config","set","setData","authoredAt","isReadOnly","bind","_createCommentViews","length","disableComments","focus","isDirty","addComment","destroy","delegate","descriptionParts","_createCommentThreadInputView","element","commentThreadInputView","fire","commentsListView","editorConfig","hasDirtyComment","editor","canDiscard","isEnabled","commentInputView","removeComment","_model","value","disabledSubmit","showInput","_localUser","locale","cancel","submit"];var gc,mc;gc=dc,mc=207,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return dc[t-=0]};class hc extends s.View{constructor(t,e,n,o){super(t),this[fc("0x24")]=null,this[fc("0x22")]=null,this[fc("0x12")](fc("0xf"),!1),this[fc("0x12")]("authoredAt",e.authoredAt),this[fc("0x16")](fc("0x14")).to(e),this[fc("0x12")](fc("0x1f"),[]),this[fc("0x12")](fc("0x1b"),!1),this.set(fc("0x4"),!1),this[fc("0x12")]("canAccept",!1),this.set(fc("0x3"),!1),this[fc("0x7")]=e,this._localUser=n,this[fc("0x11")]=o,o[fc("0x19")]?this[fc("0x12")]("length",1):this._createCommentViews()}[fc("0x1a")](){this[fc("0x21")][fc("0x1a")]()}destroy(){this[fc("0x24")]&&this.commentsListView[fc("0x1d")](),this[fc("0x22")]&&this[fc("0x22")].destroy(),super[fc("0x1d")]()}[fc("0x17")](){const{CommentsListView:t}=this[fc("0x11")];this[fc("0x24")]=new t(this.locale,this._model[fc("0x10")],Object.assign({CommentView:this[fc("0x11")].CommentView},this._config)),this[fc("0x24")][fc("0x1e")]("removeComment").to(this),this.commentsListView.delegate("updateComment").to(this),this[fc("0x24")][fc("0x16")](fc("0xf")).to(this),this.set("length",this.commentsListView.length+1),this[fc("0x16")](fc("0x18")).to(this[fc("0x24")],fc("0x18"),(t=>t+1)),this[fc("0x22")]=this._createCommentThreadInputView(),this.on(fc("0x6"),(()=>this[fc("0x1a")]())),this[fc("0x16")](fc("0x1b")).to(this[fc("0x24")],fc("0x1"),this[fc("0x22")].commentInputView,fc("0x8"),((t,e)=>t||!!e))}[fc("0x20")](){const{CommentThreadInputView:t}=this[fc("0x11")],e=new t(this[fc("0xc")],this[fc("0xb")],this[fc("0x11")][fc("0x0")]),n=e[fc("0x5")];return e[fc("0x16")](fc("0xa")).to(this,"isActive",this[fc("0x7")][fc("0x10")],fc("0x15"),n,fc("0x8"),((t,e,n)=>!!n||t&&!e)),n.on(fc("0xe"),((t,e)=>{this[fc("0x23")](fc("0x1c"),e),n[fc("0x2")][fc("0x13")]("")})),n.on(fc("0xd"),(()=>this[fc("0x1a")]())),n.bind(fc("0x9")).to(this[fc("0x7")][fc("0x10")],fc("0x15")),e}}const pc=["bindTemplate","querySelector","fire","commentsListView","ck-comment__external","attributes","discardButton","color","children","div","span","name","ck-suggestion__main","innerText","cancel","_descriptionElement","@external",'<span class="ck-suggestion-type">',"EXTERNAL_AVATAR",'"></span>',"extendTemplate","ck-suggestion__info-name","userView","disableComments","ck-suggestion__user","editorReady","ck-suggestion-wrapper--active","ck-suggestion--disabled-comments","ck-comment__info-time","ck-annotation__info-name","description","authoredAt","discardSuggestion","creator","ck-annotation__info-time","push","getExternalSuggestionNote","EXTERNAL_IMPORT_WORD_AVATAR","getTemplate","ck-annotation__main","delegate","isEnabled","time","importWord","ck-suggestion-wrapper","canAccept","locale","check","bind","author","commentThreadInputView","type","descriptionParts","acceptButton","change:description","</p>","<p>","element","_model","ck-annotation__content-wrapper","_createButton","content","set","Accept suggestion",".ck-annotation__content-wrapper","source","editorDestroyed","ck-annotation","ck-annotation__actions","acceptSuggestion","Discard suggestion","value","ck-suggestion--accept","innerHTML","ck-suggestion__info","split","isExternal","ck-annotation__user","setTemplate","formatDateTime","join","ck-annotation__info","ck-suggestion-"];var bc,Ec;bc=pc,Ec=445,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("0x20")]("type",""),this.bind(_c("0x15")).to(this,_c("0x16"),(t=>t&&t[0]?t[0][_c("0x15")]:"")),this.bind(_c("0x0")).to(this,"descriptionParts",this,"isActive",((t,e)=>{let n="";for(const e of t)n+=_c("0x1a")+Cc(e[_c("0x1f")],e[_c("0x3c")])+_c("0x19");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[_c("0x17")]=this[_c("0x1e")](Yo(e,_c("0x21")),t.icons[_c("0x11")],_c("0x2a"),_c("0x27"),"sw"),this[_c("0x17")][_c("0x12")](_c("0xb")).to(this,_c("0xf")),this[_c("0x3b")]=this[_c("0x1e")](Yo(e,_c("0x28")),t.icons[_c("0x43")],"ck-suggestion--discard",_c("0x2"),"sw"),this[_c("0x3b")][_c("0x12")]("isEnabled").to(this,"canDiscard"),this[_c("0x4b")]=new r.UserView(e,this._model[_c("0x13")],this.getUserViewNotificationText()),this.userView[_c("0x49")]({attributes:{class:[_c("0x4d"),_c("0x2f")]}}),this[_c("0x30")](this.getTemplate())}[_c("0x8")](){const t=this[_c("0x35")],e=[{tag:_c("0x3e"),attributes:{class:[_c("0x2c"),_c("0x33")]},children:[{tag:"span",children:[{text:this[_c("0x4b")][_c("0x40")]}],attributes:{class:[_c("0x4a"),_c("0x52")]}},{tag:_c("0xc"),attributes:{datetime:t.to("authoredAt"),class:[_c("0x51"),_c("0x4")]},children:[{text:t.to(_c("0x1"),(t=>this._config[_c("0x31")](t)))}]}]},{tag:"div",attributes:{class:["ck-suggestion__actions",_c("0x26")]},children:[this.acceptButton,this.discardButton]},{tag:"div",attributes:{class:[_c("0x1d")]}}];this[_c("0x1c")][_c("0x2e")]&&e[_c("0x5")]({tag:_c("0x3e"),attributes:{class:[_c("0x39")]},children:[{text:this[_c("0x6")]()}]});const n={tag:_c("0x3e"),attributes:{class:[_c("0xe"),t.if("isActive",_c("0x4f")),t.to("type",(t=>_c("0x34")+t)),this._config[_c("0x4c")]&&_c("0x50")],"data-suggestion-id":this._model.id,"data-thread-id":this[_c("0x1c")].commentThread.id,"data-author-id":this._model[_c("0x13")].id,tabindex:-1},children:[{tag:_c("0x3e"),attributes:{class:["ck-suggestion",_c("0x25")]},children:[this[_c("0x4b")],{tag:_c("0x3e"),attributes:{class:[_c("0x41"),_c("0x9")]},children:e}]}]};return this[_c("0x38")]&&this[_c("0x14")]&&(n[_c("0x3d")][_c("0x5")](this[_c("0x38")],this.commentThreadInputView),this[_c("0x38")][_c("0xa")]("editorReady").to(this),this[_c("0x38")][_c("0xa")](_c("0x24")).to(this),this.commentThreadInputView[_c("0xa")](_c("0x4e")).to(this),this[_c("0x14")][_c("0xa")]("editorDestroyed").to(this)),n}render(){super.render(),this[_c("0x44")]=this[_c("0x1b")][_c("0x36")](_c("0x22")),this._descriptionElement[_c("0x2b")]=this.description,this.on(_c("0x18"),((t,e,n)=>{this[_c("0x44")].innerHTML=n}))}[_c("0x1e")](t,e,n,o,r){const i=new s.ButtonView(this[_c("0x10")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[_c("0x49")]({attributes:{class:n}}),i.on("execute",(()=>{this[_c("0x37")](o,this._model.id)})),i}getExternalSuggestionNote(){return _c("0xd")===this[_c("0x1c")].attributes[_c("0x45")][_c("0x23")]?Yo(this[_c("0x10")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[_c("0x10")],"EXTERNAL_SUGGESTION")}getUserViewNotificationText(){return this[_c("0x1c")][_c("0x2e")]?"importWord"===this._model[_c("0x3a")][_c("0x45")].source?Yo(this[_c("0x10")],_c("0x7"),this[_c("0x1c")][_c("0x3")][_c("0x40")]):Yo(this.locale,_c("0x47"),this[_c("0x1c")][_c("0x3")][_c("0x40")]):null}}function Cc(t,e){let n="";return n+=t[_c("0x2d")]("*").map(((t,e)=>e%2!=0?_c("0x46")+yc(t)+"</span>":yc(t)))[_c("0x32")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[_c("0x29")]+'" title="'+e.title+_c("0x48")),n}function yc(t){const e=document.createElement(_c("0x3f"));return e[_c("0x42")]=t,e[_c("0x2b")]}const kc=["_disableComments","_createUIButton","activeMarkers","getSuggestion","_annotationViews","clear","view","comments.maxCommentsWhenCollapsed","config","Discard all suggestions","discardSelectedSuggestions","acceptAllSuggestions","CommentsUI","head","size","Annotations","commentThread","refreshSelectedViews","CommentsRepository","actionView","model","remove","getAllAdjacentSuggestions","_destroyController","acceptButton","button","Accept all selected suggestions","focus","_handleSuggestionControllerDelayed","TrackChangesEditing","discardAllSuggestions","destroy","SuggestionThreadView","mainView","some","_updateController","pluginName","commandName","separator","toMany","from","type","change:previous","execute","createAnnotationView","locale","getMarkers","comments.editorConfig","isDirty","plugins","comments.maxCommentCharsWhenCollapsed","delete","_viewToController","arrowView","trackChanges.disableComments","suggestionChanged","length","lowest","unbind","has","push","hasSuggestion","comments","define","getByInnerView","isOn","_refreshActiveMarkers","suggestion-","createCommentThreadController","trackChanges.SuggestionThreadView","getFirstRange","acceptSelectedSuggestions","trackChanges","source","createAnnotation","_unbindEditors","switchbutton","editor","map","_descriptionFactory","bind","get","registerAnnotation","isEnabled","activeAnnotations","keys","previous","editing","_bindAnnotationToEditors","reduce","innerView","_initializeController","componentFactory","_handleControllerBuffer","getRanges","filter","values","stopListening","buttonView","_suggestionToController","set","EditorAnnotations","addComment","add","getDescriptions","listenTo","TrackChangesUI","commands","isInContent","getJoined","addSourceCollector"];var Ac,vc;Ac=kc,vc=372,function(t){for(;--t;)Ac.push(Ac.shift())}(++vc);const Rc=function(t,e){return kc[t-=0]};class Ic extends t.Plugin{static get requires(){return[$x,r.Users,Rc("0x5a"),Rc("0x57"),Rc("0x3e")]}static get[Rc("0x6c")](){return Rc("0x43")}constructor(t){super(t),this._suggestionToController=new Map,this._viewToController=new Map,this[Rc("0x4c")]=new Map,this[Rc("0x36")]=new Map;const e=this[Rc("0x26")][Rc("0x50")];e[Rc("0x18")](Rc("0x1e"),Tc),e[Rc("0x18")]("trackChanges.disableComments",!1),this[Rc("0x48")]=e[Rc("0x2a")](Rc("0xf"))}[Rc("0x64")](t,e){0===this[Rc("0x36")][Rc("0x56")]&&setTimeout((()=>{for(const[t,e]of this[Rc("0x36")]){const n=this[Rc("0x3c")][Rc("0x14")](t);n||e?n&&e&&this[Rc("0x5f")](t):this[Rc("0x34")](t)}this[Rc("0x26")][Rc("0xa")][Rc("0x2a")](Rc("0x3e"))[Rc("0x59")](),this[Rc("0x1b")](),this[Rc("0x36")][Rc("0x4d")]()}),10),this[Rc("0x36")][Rc("0x3d")](t,e)}init(){const t=this.editor,e=t.plugins[Rc("0x2a")](Rc("0x65")),n=t.plugins[Rc("0x2a")](Rc("0x57")),o=t.plugins[Rc("0x2a")](Rc("0x3e")),s=t[Rc("0xa")][Rc("0x2a")]("CommentsRepository");t.ui[Rc("0x35")][Rc("0x40")]("trackChanges",(t=>this[Rc("0x49")](t))),o[Rc("0x47")]((()=>{const t=[];for(const[e,n]of Array[Rc("0x1")](this._suggestionToController)){const o=e[Rc("0x5e")](),s=[];for(const t of o){if(!t[Rc("0x45")])continue;if(t.isMultiRange){s[Rc("0x15")](...t[Rc("0x37")]());continue}const e=t[Rc("0x1f")]();if(s[Rc("0x11")]>0){const t=s[0][Rc("0x46")](e);if(t){s[0]=t;continue}}s.push(e)}t.push([n[Rc("0x4e")],s])}return t})),this[Rc("0x42")](e,"suggestionLoaded",((t,e)=>{this.listenTo(e,Rc("0x3"),((t,n,o,s)=>{e.isInContent&&(null==o?(this[Rc("0x6b")](s.head),this[Rc("0x64")](e,!1)):(this[Rc("0x6b")](o[Rc("0x55")]),this[Rc("0x64")](e,!0)))})),null===e[Rc("0x2f")]?this[Rc("0x64")](e,!1):this[Rc("0x6b")](e[Rc("0x55")])})),this.listenTo(e,"suggestionUnloaded",((t,e,n)=>{this[Rc("0x3a")](e,Rc("0x3")),this[Rc("0x36")].delete(e);const o=n?n[Rc("0x55")]:e,s=this._suggestionToController[Rc("0x2a")](o);null!==n&&this._updateController(o),null===n&&s&&this[Rc("0x5f")](e)})),this.listenTo(e,Rc("0x10"),((t,e)=>{this._updateController(e)})),this[Rc("0x42")](n,"change:activeAnnotations",(()=>{this[Rc("0x1b")]()})),this[Rc("0x42")](s,Rc("0x3f"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0x16")](n))return;const s=e[Rc("0x4b")](n);this[Rc("0x3c")][Rc("0x2a")](s)[Rc("0x4e")][Rc("0x63")]()}),{priority:Rc("0x12")})}[Rc("0x1b")](){const t=this[Rc("0x26")].plugins[Rc("0x2a")]("Annotations"),e=this[Rc("0x26")].plugins[Rc("0x2a")](Rc("0x65")),n=Array[Rc("0x1")](t[Rc("0x2d")],(t=>t[Rc("0x33")])).filter((t=>this[Rc("0xd")][Rc("0x14")](t))),o=[];for(const t of n){const e=this[Rc("0xd")][Rc("0x2a")](t)[Rc("0x5c")].getAllAdjacentSuggestions();o[Rc("0x15")](...e[Rc("0x32")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Rc("0x4a")]=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Rc("0x26")][Rc("0x44")][Rc("0x2a")](Rc("0x21")),r=Yo(t,"Track changes");n[Rc("0x3b")][Rc("0x3d")]({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("0x3b")][Rc("0x29")](Rc("0x1a")).to(o,"value"),n[Rc("0x3b")].on(Rc("0x4"),(()=>{o[Rc("0x4")](),this[Rc("0x26")][Rc("0x30")][Rc("0x4e")][Rc("0x63")]()}));const i=new e.Collection,a=[{type:Rc("0x25"),model:{withText:!0,label:r,commandName:Rc("0x21")}},{type:Rc("0x6e")},{type:"button",model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Rc("0x53")}},{type:Rc("0x61"),model:{withText:!0,label:Yo(t,Rc("0x62")),commandName:Rc("0x20")}},{type:Rc("0x61"),model:{withText:!0,label:Yo(t,Rc("0x51")),commandName:Rc("0x66")}},{type:"button",model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:Rc("0x52")}}];for(const t of a){let e={type:"separator"};if(t[Rc("0x5c")]){const n=new s.Model(t[Rc("0x5c")]),o=this[Rc("0x26")][Rc("0x44")][Rc("0x2a")](n.commandName);n[Rc("0x29")](Rc("0x1a"),"isEnabled").to(o,"value",Rc("0x2c")),e={type:t[Rc("0x2")],model:n}}i[Rc("0x40")](e)}(0,s.addListToDropdown)(n,i);const x=a.filter((t=>null!=t[Rc("0x5c")]))[Rc("0x27")]((t=>this[Rc("0x26")][Rc("0x44")].get(t[Rc("0x5c")].commandName))),c=n[Rc("0x3b")];return c[Rc("0x5b")][Rc("0x13")](Rc("0x2c")),c.arrowView.unbind("isEnabled"),c[Rc("0x5b")].bind("isEnabled").to(o,Rc("0x2c")),c[Rc("0xe")][Rc("0x29")](Rc("0x2c"))[Rc("0x0")](x,Rc("0x2c"),((...t)=>t[Rc("0x6a")]((t=>t)))),n.on(Rc("0x4"),(t=>{this[Rc("0x26")][Rc("0x4")](t[Rc("0x22")][Rc("0x6d")]),this[Rc("0x26")][Rc("0x30")].view.focus()})),n}_initializeController(t){const e=this[Rc("0x26")],n=e[Rc("0x50")],o=e[Rc("0xa")].get(Rc("0x57")),s=e[Rc("0xa")][Rc("0x2a")]("CommentsRepository"),i=e[Rc("0xa")].get(Rc("0x3e")),a=e.plugins[Rc("0x2a")](r.Users).me,x=n[Rc("0x2a")](Rc("0x21"))[Rc("0x68")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Rc("0x2a")](Rc("0x54"));let u,d;this[Rc("0x4c")][Rc("0x14")](t.id)?(d=this._annotationViews.get(t.id),u=d[Rc("0x69")]):(u=new x(e[Rc("0x6")],t,a,{disableComments:this[Rc("0x48")],editorConfig:n[Rc("0x2a")](Rc("0x8")),maxCommentsWhenCollapsed:n[Rc("0x2a")](Rc("0x4f")),maxThreadTotalWeight:n[Rc("0x2a")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Rc("0x2a")](Rc("0xb")),formatDateTime:(0,r.getDateTimeFormatter)(n[Rc("0x2a")](Rc("0x6"))),CommentView:n[Rc("0x2a")](Rc("0x17")).CommentView,CommentsListView:c,CommentThreadInputView:l}),u[Rc("0x60")].on(Rc("0x4"),(()=>{e[Rc("0x30")][Rc("0x4e")].focus()})),u.discardButton.on("execute",(()=>{e[Rc("0x30")][Rc("0x4e")].focus()})),d=o[Rc("0x5")](this.editor[Rc("0x6")],u),d[Rc("0x29")](Rc("0x9")).to(u,Rc("0x9")),d[Rc("0x29")](Rc("0x11")).to(u),d[Rc("0x29")](Rc("0x2")).to(u,"type",(t=>Rc("0x1c")+t)),this[Rc("0x4c")][Rc("0x3d")](t.id,d));const g=s[Rc("0x1d")](t[Rc("0x58")],u),m=new uc(e,t,u,g),f=t[Rc("0x5e")]()[Rc("0x38")]((t=>t[Rc("0x45")]));u.descriptionParts=e.plugins.get("TrackChangesEditing")._descriptionFactory[Rc("0x41")](f),this[Rc("0x3c")][Rc("0x3d")](t,m),this[Rc("0xd")].set(u,m);const h=o[Rc("0x23")]({view:d,target:()=>{const n=[],o=t[Rc("0x5e")]()[Rc("0x38")]((t=>t[Rc("0x45")]));for(const t of o)n[Rc("0x15")](...t[Rc("0x7")]());return(0,r.getAllMarkersDomElementsSorted)(e[Rc("0x30")],n)},type:()=>Rc("0x1c")+m[Rc("0x4e")][Rc("0x2")]});s[Rc("0x31")](u,h),o[Rc("0x40")](h),i[Rc("0x2b")](h)}[Rc("0x5f")](t){const e=this[Rc("0x26")][Rc("0xa")][Rc("0x2a")](Rc("0x5a")),n=this[Rc("0x26")][Rc("0xa")].get(Rc("0x57")),o=this[Rc("0x3c")][Rc("0x2a")](t),s=o[Rc("0x4e")],r=n[Rc("0x19")](s);e[Rc("0x24")](s),r&&n[Rc("0x5d")](r),this[Rc("0x3c")][Rc("0xc")](t),this[Rc("0xd")][Rc("0xc")](s),o[Rc("0x67")]()}[Rc("0x6b")](t){if(!t[Rc("0x45")]||!this[Rc("0x3c")][Rc("0x14")](t))return;const e=this.editor[Rc("0xa")][Rc("0x2a")](Rc("0x65")),n=this._suggestionToController[Rc("0x2a")](t),o=t[Rc("0x5e")]();n[Rc("0x4e")].descriptionParts=e[Rc("0x28")][Rc("0x41")](o)}[Rc("0x67")](){for(const t of this[Rc("0x3c")][Rc("0x2e")]())this[Rc("0x5f")](t);for(const t of this[Rc("0x4c")][Rc("0x39")]())t.mainView.destroy();super[Rc("0x67")]()}}var Sc,Lc,Nc=["editor","TrackChanges","getSuggestion","getSuggestions","Comments","get","addSuggestion","plugins","adapter","pluginName","addSuggestionData"];Sc=Nc,Lc=411,function(t){for(;--t;)Sc.push(Sc.shift())}(++Lc);var wc=function(t,e){return Nc[t-=0]};class Mc extends t.Plugin{static get requires(){return[$x,Ic,wc("0x0")]}static get[wc("0x5")](){return wc("0x8")}set adapter(t){this.editor[wc("0x3")][wc("0x1")]($x)[wc("0x4")]=t}get[wc("0x4")](){return this[wc("0x7")][wc("0x3")][wc("0x1")]($x)[wc("0x4")]}[wc("0x2")](t){return this[wc("0x7")][wc("0x3")][wc("0x1")]($x)[wc("0x6")](t)}[wc("0xa")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[wc("0x7")][wc("0x3")][wc("0x1")]($x)[wc("0xa")]({skipNotAttached:t,toJSON:e})}[wc("0x9")](t){return this[wc("0x7")][wc("0x3")][wc("0x1")]($x)[wc("0x9")](t)}}const Oc=["track-changes-data-invalid-editor-creator","config","createDocumentFragment","data","getDataWithDiscardedSuggestions","document","trackChangesData","rootsAttributes","push","getRootNames","editor","_adapter","plugins","map","discardAllSuggestions","Pagination","trackChangesData.editorCreator","TrackChangesDataGetter","CommentsRepository","TrackChangesData","editorCreator","define","reduce","div","get","end","function","getRootsAttributes","name","init","pluginName","TrackChangesEditing","getFullData","getSuggestions","createElement","constructor","execute","model","acceptAllSuggestions"];var Fc,Pc;Fc=Oc,Pc=399,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=[Dc("0x6")];class jc extends t.Plugin{static get requires(){return[$x]}static get[Dc("0x15")](){return Dc("0xa")}[Dc("0x14")](){const t=this.editor;if(t[Dc("0x1f")][Dc("0xc")](Dc("0x7"),(e=>{const n=t[Dc("0x1c")][Dc("0x23")][Dc("0x0")]().reduce(((t,e)=>(t[e]="",t)),{});return t[Dc("0x1a")].create(n,e)})),Dc("0x11")!=typeof t[Dc("0x1f")].get(Dc("0x24"))[Dc("0xb")])throw new e.CKEditorError(Dc("0x1e"))}getDataWithAcceptedSuggestions(t){return Hc(this[Dc("0x1")],!0,t)}[Dc("0x22")](t){return Hc(this.editor,!1,t)}}class Uc extends t.Plugin{static get[Dc("0x15")](){return Dc("0x8")}constructor(t){super(t),this.result=Dc("0x10")}[Dc("0x14")](){this[Dc("0x1")][Dc("0x3")][Dc("0xf")](Dc("0x9"))[Dc("0x2")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Dc("0x1")].plugins[Dc("0xf")](Dc("0x16"))[Dc("0x2")]=null}}function Gc(t){return void 0!==t.getRootsAttributes}async function Hc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Bc);o[Dc("0x3")][Dc("0x26")]($x,Uc),o[Dc("0x25")]=Gc(t)?t[Dc("0x12")]():void 0;const s=document[Dc("0x20")](),i=t[Dc("0x1f")][Dc("0xf")](Dc("0x24"))[Dc("0xb")],a=await i(o,(()=>function(t){const e=document[Dc("0x19")](Dc("0xe"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Dc("0x1c")][Dc("0x23")].getRootNames()[Dc("0xd")](((e,n)=>(e[n]=t[Dc("0x21")][Dc("0xf")]({rootName:n}),e)),{}),o=t.plugins[Dc("0xf")]("Users").users[Dc("0x4")]((t=>({id:t.id,name:t[Dc("0x13")]}))),s=t[Dc("0x3")][Dc("0xf")]("TrackChangesEditing")[Dc("0x18")]({skipNotAttached:!0,toJSON:!0}),r=e[Dc("0x3")][Dc("0xf")]("Users"),i=e.plugins[Dc("0xf")](Dc("0x16"));for(const t of o)r.getUser(t.id)||r.addUser(t);r.me||r.useAnonymousUser();for(const t of s)i.addSuggestionData(t);e.data.set(n)}(t,a),a[Dc("0x1b")](Dc(e?"0x1d":"0x5"));const x=Gc(a)?a[Dc("0x17")](n):a[Dc("0x21")][Dc("0xf")](n);return await a.destroy(),x}})(),(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=["refresh","_disableUnsupportedCommands","clearForceDisabled","_isEnabledBasedOnSelection","TrackChangesCommand","execute","value","commands","isEnabled","affectsData","forceDisabled","has","_enabledCommands","editor"];var c,l;c=a,l=399,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("0x5")]=e,this.value=!1,this[d("0x7")](),this[d("0xa")]=!1}[d("0x7")](){this[d("0x1")]=!0}[d("0xc")](){this[d("0xd")]=!this[d("0xd")],this[d("0xd")]?this[d("0x8")]():this._enableCommands()}_disableUnsupportedCommands(){for(const t of this.editor[d("0x0")][d("0x0")]())t[d("0x2")]&&!this[d("0x5")][d("0x4")](t)&&t[d("0x3")]("TrackChangesCommand")}_enableCommands(){for(const t of this[d("0x6")][d("0x0")][d("0x0")]())t.affectsData&&!this[d("0x5")].has(t)&&t[d("0x9")](d("0xb"))}}const g=["model","isEnabled","_isEnabledBasedOnSelection","refresh","track-changes-accept-suggestion-not-found","_suggestions","canEditAt","get","plugins","getRanges"];var m,f;m=g,f=208,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x7")]=e,this.refresh(),this[h("0x4")]=!1}[h("0x5")](){this[h("0x3")]=!0}execute(t){const n=this[h("0x7")].get(t);if(!n)throw new e.CKEditorError(h("0x6"),this);const o=n[h("0x1")]();this.editor[h("0x2")][h("0x8")](o)&&this.editor[h("0x0")][h("0x9")]("TrackChangesEditing").acceptSuggestion(n)}}const b=["track-changes-discard-suggestion-not-found","editor","plugins","TrackChangesEditing","get","discardSuggestion","refresh","isEnabled","canEditAt"];var E,_;E=b,_=105,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[T("0x0")](){this[T("0x1")]=!0}execute(t){const n=this._suggestions[T("0x7")](t);if(!n)throw new e.CKEditorError(T("0x3"),this);const o=n.getRanges();this[T("0x4")].model[T("0x2")](o)&&this[T("0x4")][T("0x5")][T("0x7")](T("0x6"))[T("0x8")](n)}}const y=["isMultiRange","color","deletion","isCollapsed","value","isInContent","join","length","getRanges","next","createPositionAfter","isObject","map","isArray","createPositionBefore","execute","isIntersecting","push","from","change","isTouching","start","type","schema","createPositionAt","splice","replace","sort","end"];var k,A;k=y,A=115,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x1c")](((t,e)=>v("0x3")==t[v("0x17")]&&v("0x3")!=e[v("0x17")]?-1:v("0x3")!=t.type&&"deletion"==e.type?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x18")];for(;o<t[v("0x8")];){const i=t[o],x=t[o+1];n||(n=e[v("0xf")](i)),I(e,i,x)||(s[v("0x12")](e.createRange(n,r[v("0xc")](i)?e[v("0xb")](i):e[v("0x19")](i,v("0x0")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0xb")](e),s=t[v("0xf")](n);return o[v("0x15")](s)}function L(t,e,n){for(;n[v("0x8")];){const o=n[v("0x1a")](0,100);t[v("0x14")]((()=>{for(const t of o)t[v("0x6")]&&e[v("0x10")](t.id)}))}}const N=["isInContent","values","editor","_suggestions","model","some","canEditAt","isEnabled","_command"];var w,M;w=N,M=491,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("0x3")]=e,this[O("0x7")]=n,this.refresh(),this._isEnabledBasedOnSelection=!1}refresh(){const t=Array.from(this._suggestions.values())[O("0x0")]((t=>t[O("0x4")]));this[O("0x2")]=this[O("0x3")][O("0x2")]&&t}execute(){const t=R(Array.from(this[O("0x7")][O("0x5")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x6")][O("0x8")][O("0x1")](t))return}L(this.editor[O("0x8")],this[O("0x3")],t)}}const P=["_selectedSuggestions","editor","size","getRanges","values","model","_suggestions","canEditAt","from","_command","isEnabled","selection","execute","document"];var D,B;D=P,B=178,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("0xd")]=e,this[j("0xa")]=n,this[j("0x4")]=new Set,this.refresh(),this._isEnabledBasedOnSelection=!1}refresh(){const t=this[j("0x5")][j("0x9")][j("0x3")][j("0x1")],e=Array[j("0xc")](this._suggestions[j("0x8")]());this[j("0x4")]=function(t,e){const n=Array[v("0x13")](t[v("0x9")]()),o=new Set;for(const s of e)if(s[v("0x6")])for(const e of n)for(const n of s.getRanges())(e[v("0x11")](n)||t[v("0x4")]&&!s[v("0x1")]&&s[v("0xa")]&&n[v("0x0")][v("0x15")](e[v("0x16")]))&&o.add(s);return o}(t,e),this[j("0x0")]=this[j("0xd")][j("0x0")]&&!!this[j("0x4")][j("0x6")]}[j("0x2")](){const t=R(Array[j("0xc")](this[j("0x4")]));for(const e of t){const t=e[j("0x7")]();if(!this[j("0x5")][j("0x9")][j("0xb")](t))return}L(this[j("0x5")].model,this._command,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 V=Array.prototype.splice;const W=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():V.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=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Q=$;const J=function(){this.__data__=new Q,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var 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||Q),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 Vt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=Vt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Vt(this,t).get(t)};const qt=function(t){return Vt(this,t).has(t)};const Xt=function(t,e){var n=Vt(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=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Qt=$t;const Jt=function(t,e){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new Q(t);this.size=e.size}Zt.prototype.clear=J,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Jt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const 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 Ve=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 We=function(t){return je(t)?we(t,!0):Ve(t)};const Ke=function(t,e){return t&&re(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Qe=$e?$e.allocUnsafe:void 0;const Je=function(t,e){if(e)return t.slice();var n=t.length,o=Qe?Qe(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,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,We,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 Vn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?ke(Wn):Vn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Qn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Yn={};Yn[Qn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Jn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,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==Jn||"[object GeneratorFunction]"==u;if(be(e))return Je(e,a);if(u==Zn||u==Qn||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?We: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||Qt),n}io.Cache=Qt;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 Qt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,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 Vo=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 Wo=function(t,e){return e.length<2?t:zo(t,Vo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["isExternal","setAttribute","nodeBefore","suggestion:","subType","addMarker","creator","attributes","getMarkers","_onDiscard","end","add","from","nodeAfter","head","type","getFirstMarker","hasComments","filter","commentThread","getMarkerNames","previous","length","getRange","@external","start","clear","onAccept","_saved","set","_isDataLoaded","isIntersectingWithRange","substr","isMultiRange","getFirstRange","_onAttributesChange","onAttributesChange","removeMarkers","next","getAllAdjacentSuggestions","getItems","createdAt","reduce","data","map","author","isInContent","_model","change","markers","authoredAt","accept","push","removeAttribute","get","delete","_markerNames","removeMarker","onDiscard","toJSON","getContainedElement","getMultiRangeId","isIntersecting","addMarkerName","decorate","getRanges"];var $o,Qo;$o=Xo,Qo=439,function(t){for(;--t;)$o.push($o.shift())}(++Qo);const Jo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Jo("0x35")]=!1,this.id=e.id,this[Jo("0x26")]=e[Jo("0x26")],this[Jo("0x1b")]=e[Jo("0x1b")]||null,this[Jo("0x2")]=e[Jo("0x2")],this[Jo("0x1d")]=e[Jo("0x1d")]||e[Jo("0x2")],this[Jo("0x17")]=Boolean(e[Jo("0x1e")]&&e[Jo("0x1e")][Jo("0x2f")]),this[Jo("0x0")]=null,this._model=t,this._onAccept=e[Jo("0x32")],this[Jo("0x20")]=e[Jo("0xf")],this[Jo("0x3a")]=e[Jo("0x3b")],this[Jo("0xd")]=new Set,this[Jo("0x40")]=null,this.set(Jo("0x7"),null),this[Jo("0x34")]("attributes",e[Jo("0x1e")]||{}),this.set(Jo("0x2c"),null),this[Jo("0x34")]("next",null),this[Jo("0x34")](Jo("0x2a"),null),this[Jo("0x34")](Jo("0x33"),!1),this.decorate(Jo("0x8")),this[Jo("0x15")]("discard")}get head(){let t=this;for(;t[Jo("0x2c")];)t=t[Jo("0x2c")];return t}get[Jo("0x28")](){return!!this[Jo("0x2a")]&&this[Jo("0x2a")].length>0}get[Jo("0x38")](){return 0!=this[Jo("0xd")].size&&6==Array[Jo("0x23")](this._markerNames)[0].split(":").length}get[Jo("0x3")](){return null!==this[Jo("0x27")]()}[Jo("0x14")](t){this[Jo("0xd")][Jo("0x22")](t)}[Jo("0x2b")](){return Array[Jo("0x23")](this[Jo("0xd")])}[Jo("0x1f")](){return this.getMarkerNames().map((t=>this[Jo("0x4")][Jo("0x6")][Jo("0xb")](t)))[Jo("0x29")]((t=>t))}[Jo("0x27")](){return this[Jo("0x1f")]()[0]||null}[Jo("0x3c")](){this[Jo("0x4")][Jo("0x5")]((t=>{for(const e of this[Jo("0x1f")]())t[Jo("0xe")](e)})),this[Jo("0xd")][Jo("0x31")]()}[Jo("0xe")](t){this[Jo("0x4")][Jo("0x5")]((e=>{e[Jo("0xe")](t)})),this[Jo("0xd")][Jo("0xc")](t)}addRange(t){const e=Jo("0x1a")+this.type+":"+this[Jo("0x1b")]+":"+this.id+":"+this[Jo("0x1d")].id+":"+Zo[Jo("0x12")]();this[Jo("0x14")](e),this[Jo("0x4")][Jo("0x5")]((n=>{n[Jo("0x1c")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Jo("0x36")](t){for(const e of this[Jo("0x16")]())if(e[Jo("0x13")](t))return!0;return!1}getRanges(){return this[Jo("0x1f")]()[Jo("0x1")]((t=>t[Jo("0x2e")]()))}[Jo("0x3f")](){return this[Jo("0x16")]()[Jo("0x41")](((t,e)=>[...t,...e[Jo("0x3f")]()]),[])}[Jo("0x39")](){var t;return(null===(t=this[Jo("0x27")]())||void 0===t?void 0:t[Jo("0x2e")]())||null}[Jo("0x11")](){const t=this.getRanges();if(1!=t[Jo("0x2d")])return null;const e=t[0],n=e[Jo("0x30")][Jo("0x24")],o=e[Jo("0x21")][Jo("0x19")];return n instanceof i.Element?n!=o?null:n:null}[Jo("0x8")](){this._onAccept(this[Jo("0x16")](),this[Jo("0x0")],this.attributes),this[Jo("0x3c")]()}discard(){this[Jo("0x20")](this[Jo("0x16")](),this.data,this.attributes),this.removeMarkers()}[Jo("0x3e")](){const t=[];let e=this[Jo("0x25")];for(;e;)t[Jo("0x9")](e),e=e[Jo("0x3d")];return t}[Jo("0x18")](t,e){const n=eo(this[Jo("0x1e")]);_o(n,t,e),Go(n,this.attributes)||(this[Jo("0x1e")]=n,this[Jo("0x3a")](n))}[Jo("0xa")](t){const e=eo(this[Jo("0x1e")]);qo(e,t),Go(e,this[Jo("0x1e")])||(this[Jo("0x1e")]=e,this[Jo("0x3a")](this[Jo("0x1e")]))}[Jo("0x10")](){return{id:this.id,type:this[Jo("0x1b")]?this[Jo("0x26")]+":"+this[Jo("0x1b")]:this[Jo("0x26")],authorId:this[Jo("0x1d")].id,createdAt:this[Jo("0x40")],hasComments:this[Jo("0x28")],data:this.data,attributes:this[Jo("0x1e")]}}static[Jo("0x12")](){return(0,e.uid)()[Jo("0x37")](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=["push","getDescriptions","isEmpty","_customCallbacks","addEmptyContainer","name","*Split:* %0","remove","normal","isEqual","text","previousSibling","data","ELEMENT_SPACE","_itemLabelsCallbacks","Container","_itemLabels","deletion","match","type","length","label","elementEnd","*Insert:* %0","*Merge:* %0","EmptyContainer","registerDescriptionCallback","getFirstRange","add","addContainer","_addDescriptionItems","$text","item","replace","REPLACE_TEXT","$1 $2","isObject","_resolveDescriptionItems","matchingCallback","*Remove:* %0","quantity","start","function","elementStart","_schema","indexOf","pop","getItemLabel","softBreak","addObject","removeEmptyContainer","isInContent","$textProxy","removeContainer","getWalker","removeObject","checkChild","Object","nextSibling","insertion","get","element"];var es,ns;es=ts,ns=417,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x14")]=[],this[os("0x21")]=new Map,this._itemLabelsCallbacks=[],this[os("0x3d")]=t,this._locale=e}[os("0x12")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[os("0x6")])continue;let s=!1;for(const t of this[os("0x14")]){const n=t(o);if(n){os("0x24")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x2f")](e,o);const s=t[n+1];if(s&&!o[os("0x2c")]().end[os("0x1a")](s.getFirstRange()[os("0x3a")])){const t=e[e.length-1],n=os("0xe")==o[os("0x24")]?os("0x2d"):os("0x18");t&&os("0x1b")==t[os("0x24")]&&(t[n]+="\n")}}}return this[os("0x36")](e)}[os("0x2b")](t){this[os("0x14")].push(t)}registerElementLabel(t,n,o=e.priorities[os("0x19")]){os("0x3b")==typeof t?(0,e.insertToPriorityArray)(this[os("0x1f")],{matchingCallback:t,label:n,priority:o}):this[os("0x21")].set(t,n)}getItemLabel(t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x37")](t)){n=e[os("0x26")];break}return n||(n=this[os("0x21")][os("0xf")](t[os("0x16")])),n?n(e):1!==e?e+" "+t[os("0x16")]+"s":""+t[os("0x16")]}[os("0x2f")](t,e){const n=e[os("0x2c")]()[os("0x9")](),o=os("0xe")==e[os("0x24")]?os("0x2d"):os("0x18");for(const e of n){const s=e[os("0x31")],r=t[t[os("0x25")]-1];if(s.is(os("0x7")))r&&r.type[os("0x0")](os("0x20"))>-1&&t[os("0x1")](),r&&os("0x1b")==r.type?r[o]+=s[os("0x1d")]:t.push({type:os("0x1b"),add:"add"==o?s[os("0x1d")]:"",remove:os("0x18")==o?s[os("0x1d")]:""});else if(this[os("0x3d")].isObject(s)){const i=s;if(r&&r[os("0x24")][os("0x0")](os("0x20"))>-1&&t[os("0x1")](),"elementEnd"==e.type)continue;r&&r[os("0x24")]==o+os("0xc")&&r.element[os("0x16")]==i[os("0x16")]?r.quantity++:t[os("0x11")]({type:o+os("0xc"),element:i,quantity:1}),n.skip((t=>!("elementEnd"==t[os("0x24")]&&t[os("0x31")]==s)))}else if(this[os("0x3d")][os("0xb")](s,os("0x30"))||s.is("element",os("0x3"))){const n=s;if(os("0x2d")==o&&os("0x3c")==e[os("0x24")]||os("0x18")==o&&os("0x27")==e[os("0x24")])continue;if(r&&-1==r[os("0x24")][os("0x0")](os("0x20"))){os("0x1b")==r[os("0x24")]&&(r[o]+="\n");continue}let i;if(i=os("0x2d")==o?n[os("0xd")]&&!this._schema[os("0x35")](n[os("0xd")])?n.nextSibling:null:n[os("0x1c")]&&!this[os("0x3d")][os("0x35")](n[os("0x1c")])?n[os("0x1c")]:null,n[os("0x13")]||i&&i.isEmpty){const e=i&&i[os("0x13")]?i:n;r&&r.type==o+"EmptyContainer"&&r[os("0x10")][os("0x16")]==e.name?r[os("0x39")]++:t[os("0x11")]({type:o+os("0x2a"),element:e,quantity:1})}else t[os("0x11")]({type:o+os("0x20"),element:n})}}}_resolveDescriptionItems(t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x24")]){case os("0x1b"):if(o[os("0x2d")]=o[os("0x2d")].replace(/(\S)\u000A+(\S)/g,os("0x34"))[os("0x32")](/\u000A/g,""),o[os("0x18")]=o[os("0x18")][os("0x32")](/(\S)\u000A+(\S)/g,os("0x34"))[os("0x32")](/\u000A/g,""),""!=o.add&&""!=o.remove){n[os("0x11")]({type:os("0x32"),content:Yo(e,os("0x33"),['"'+o[os("0x18")]+'"','"'+o[os("0x2d")]+'"'])});continue}if(null!=o[os("0x2d")][os("0x23")](/^ +$/)){n[os("0x11")]({type:os("0xe"),content:Yo(e,os("0x28"),Yo(e,os("0x1e"),o[os("0x2d")][os("0x25")]))});continue}if(null!=o[os("0x18")][os("0x23")](/^ +$/)){n[os("0x11")]({type:"deletion",content:Yo(e,os("0x38"),Yo(e,"ELEMENT_SPACE",o.remove.length))});continue}if(""!=o[os("0x2d")]){n[os("0x11")]({type:os("0xe"),content:Yo(e,os("0x28"),'"'+o[os("0x2d")]+'"')});continue}n[os("0x11")]({type:os("0x22"),content:Yo(e,os("0x38"),'"'+o.remove+'"')});continue;case os("0x15"):case os("0x4"):n[os("0x11")]({type:os("0xe"),content:Yo(e,os("0x28"),this[os("0x2")](o[os("0x10")],o.quantity))});continue;case os("0x5"):case os("0xa"):n[os("0x11")]({type:os("0x22"),content:Yo(e,os("0x38"),this[os("0x2")](o[os("0x10")],o.quantity))});continue;case os("0x2e"):n[os("0x11")]({type:os("0xe"),content:Yo(e,os("0x17"),this[os("0x2")](o[os("0x10")],o[os("0x39")]))});continue;case os("0x8"):n[os("0x11")]({type:os("0x22"),content:Yo(e,os("0x29"),this[os("0x2")](o[os("0x10")],o.quantity))});continue}n[os("0x11")](o)}return n}}const rs=["afterInit","editor","get","commands","plugins","showAIAssistant","TrackChangesEditing"];var is,xs;is=rs,xs=133,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x0")](){const t=this[as("0x1")],e=t[as("0x4")].get(as("0x6"));t[as("0x3")][as("0x2")](as("0x5"))&&e.enableCommand(as("0x5"))}}const ls=["TrackChangesEditing","center","commandName","get","AlignmentEditing","markBlockFormat","left","locale","format","*Format:* %0","FORMAT_ALIGN_TO_CENTER","ltr","filter","from","registerDescriptionCallback","FORMAT_ALIGN_TO_LEFT","has","model","alignment","_descriptionFactory","FORMAT_ALIGN_TO_RIGHT","editor","FORMAT_JUSTIFY_TEXT","getSelectedBlocks","plugins","checkAttribute","contentLanguageDirection","getAttribute","value","selection","schema","commandParams"];var ds,us;ds=ls,us=118,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{afterInit(){const t=this[gs("0x1f")],e=t[gs("0x11")];if(!t[gs("0x2")][gs("0x1a")](gs("0xe")))return;const n=t.plugins[gs("0xd")](gs("0xa"));n.enableCommand(gs("0x1c"),((e,o={})=>{let s=o[gs("0x6")];o[gs("0x6")]||(s=gs("0x15")===t[gs("0x11")][gs("0x4")]?gs("0x10"):"right");const r=Array[gs("0x17")](this[gs("0x1f")][gs("0x1b")].document[gs("0x7")][gs("0x1")]())[gs("0x16")]((t=>function(t,e,n){const o=t[gs("0x5")]("alignment")||null;return e[gs("0x3")](t,gs("0x1c"))&&n!=o}(t,this.editor[gs("0x1b")][gs("0x8")],s)));t[gs("0x1b")].change((()=>{for(const t of r)n[gs("0xf")](t,{commandName:gs("0x1c"),commandParams:[{value:s}]})}))})),n[gs("0x1d")][gs("0x18")]((t=>{const{data:n}=t;if(n&&"alignment"==n[gs("0xc")]){const t=n[gs("0x9")][0][gs("0x6")];return{type:gs("0x12"),content:Yo(e,gs("0x13"),function(t){switch(t){case"left":return Yo(e,gs("0x19"));case"right":return Yo(e,gs("0x1e"));case gs("0xb"):return Yo(e,gs("0x14"));case"justify":return Yo(e,gs("0x0"))}}(t))}}}))}}const fs=["consumable","previousPosition","isLimit","get","type","isBlock","getItems","item","elementEnd","listItem","toViewPosition","nextSibling","includes","insert","bindElementToMarker","name","listIndent","isContent","span","activeMarkers","schema","mapper","createRangeOn","element","toViewElement","writer","addClass","model","ck-suggestion-marker-","plugins","createUIElement","markerName","markerRange","ck-suggestion-marker--active","addHighlight","start","getCustomProperty","parent","push","getWalker","TrackChangesEditing"];var hs,ps;hs=fs,ps=175,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("0x24")]())s.hasAttribute(t)&&o[bs("0x1b")](n[bs("0xb")](s));return o}function _s(t){const e=[];if(t.is(bs("0xc"),bs("0x27"))){let n=t[bs("0x0")];for(;n&&n.is(bs("0xc"),"listItem")&&n.getAttribute(bs("0x5"))>0;)e[bs("0x1b")](n),n=n[bs("0x0")]}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t[bs("0x12")][bs("0x21")](bs("0x1d"));return(s,r,i)=>{if(!i[bs("0x1e")].test(r[bs("0x15")],s[bs("0x4")]))return;const x=r[bs("0x15")][bs("0x1c")](),a=r.markerRange[bs("0x18")],c=t[bs("0x10")][bs("0x9")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[bs("0x25")];u=u||c[bs("0x6")](e);const n=i[bs("0xa")][bs("0xd")](e);if(n&&n[bs("0x19")](bs("0x17")))return;bs("0x26")==t[bs("0x22")]&&c[bs("0x23")](e)&&!c[bs("0x20")](e)&&(e[bs("0x0")]||a.isAtEnd?l&&l[bs("0x1a")]==e||(l=e,m(t[bs("0x1f")]),g=!0):d=d||t[bs("0x1f")])}function m(t){const s=i[bs("0xe")][bs("0x13")](bs("0x7"),{class:bs("0x11")+e}),x=i[bs("0xa")][bs("0x28")](t);n&&o[bs("0x8")][bs("0x1")](r[bs("0x14")])&&i.writer[bs("0xf")](bs("0x16"),s),i[bs("0xe")][bs("0x2")](x,s),i[bs("0xa")][bs("0x3")](s,r.markerName)}u||g||!d||m(d)}}const Cs=["CodeEditing","document","forceValue","SubscriptEditing","commandName","FORMAT_SUPERSCRIPT","get","change","FORMAT_BOLD","has","isCollapsed","FORMAT_SUBSCRIPT","FORMAT_CODE","superscript","commands","FORMAT_ITALIC","subscript","bold","from","UnderlineEditing","format","italic","*Format:* %0","code","BoldEditing","StrikethroughEditing","editor","locale","registerDescriptionCallback","FORMAT_STRIKETHROUGH","markInlineFormat","value","plugins","SuperscriptEditing","*Remove format:* %0","afterInit","getRanges","underline","toLowerCase","FORMAT_UNDERLINE"];var ys,ks;ys=Cs,ks=197,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x1b"),"ItalicEditing",As("0x16"),As("0x3"),As("0x1c"),As("0x6"),As("0x24")];class Rs extends t.Plugin{[As("0x26")](){const t=this[As("0x1d")],e=t.model,n=t[As("0x23")].get("TrackChangesEditing"),o=t[As("0x1e")];for(const o of vs){if(!t[As("0x23")][As("0xc")](o))continue;const s=o.slice(0,-7)[As("0x1")](),r=t[As("0x11")][As("0x9")](s);n.enableCommand(s,((t,o={})=>{const i=e[As("0x4")].selection;if(i[As("0xd")])return void t(o);const x=void 0!==o.forceValue?o[As("0x5")]:!r[As("0x22")];e[As("0xa")]((()=>{const t=Array[As("0x15")](i[As("0x27")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0x21")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory[As("0x1f")]((n=>{const{data:s}=n;if(s&&s[As("0x7")]===t)return s.commandParams[0][As("0x5")]?{type:As("0x17"),content:Yo(o,As("0x19"),e)}:{type:As("0x17"),content:Yo(o,As("0x25"),e)}}))}s(As("0x14"),Yo(o,As("0xb"))),s(As("0x18"),Yo(o,As("0x12"))),s(As("0x0"),Yo(o,As("0x2"))),s(As("0x1a"),Yo(o,As("0xf"))),s("strikethrough",Yo(o,As("0x20"))),s(As("0x13"),Yo(o,As("0xe"))),s(As("0x10"),Yo(o,As("0x8")))}}const Ss=["parent","commandName","format","has","model","value","BlockQuoteEditing","commands","locale","editor","afterInit","registerDescriptionCallback","name","plugins","commandParams","change","forceValue","get","filter","schema","document","markBlockFormat","*Remove format:* %0","$root","checkChild","from","selection","blockQuote","*Format:* %0","enableCommand"];var Is,Ls;Is=Ss,Ls=421,function(t){for(;--t;)Is.push(Is.shift())}(++Ls);const Ns=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ns("0x9")](){const t=this[Ns("0x8")],e=t[Ns("0x7")];if(!t.plugins[Ns("0x2")](Ns("0x5")))return;const n=t[Ns("0xc")][Ns("0x10")]("TrackChangesEditing"),o=this[Ns("0x8")][Ns("0x6")][Ns("0x10")](Ns("0x1a"));n[Ns("0x1c")]("blockQuote",((e,s={})=>{const r=this[Ns("0x8")][Ns("0x3")][Ns("0x13")][Ns("0x19")],i=s&&void 0!==s.forceValue?s.forceValue:!o[Ns("0x4")];let x=[];if(i){const e=Array[Ns("0x18")](r.getSelectedBlocks()).filter((t=>Ms(t)||function(t,e){const n=e[Ns("0x17")](t[Ns("0x1d")],"blockQuote"),o=e.checkChild([Ns("0x16"),Ns("0x1a")],t);return n&&o}(t,this[Ns("0x8")].model[Ns("0x12")])));x=S(e,t[Ns("0x3")])}else{const e=Array.from(r.getSelectedBlocks())[Ns("0x11")]((t=>Ms(t)));x=S(e,t[Ns("0x3")])}t[Ns("0x3")][Ns("0xe")]((()=>{for(const t of x)n[Ns("0x14")](t,{commandName:Ns("0x1a"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[Ns("0xa")]((t=>{const{data:n}=t;if(n&&Ns("0x1a")==n[Ns("0x0")]){const t=Yo(e,"ELEMENT_BLOCK_QUOTE");return n[Ns("0xd")][0][Ns("0xf")]?{type:Ns("0x1"),content:Yo(e,Ns("0x1b"),t)}:{type:Ns("0x1"),content:Yo(e,Ns("0x15"),t)}}}))}}function Ms(t){return"blockQuote"==t.parent[Ns("0xb")]}const Os=["commands","plugins","ckbox","editor"];var Fs,Ps;Fs=Os,Ps=327,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{afterInit(){const t=this[Ds("0x0")];t[Ds("0x1")].get(Ds("0x3"))&&t[Ds("0x2")].get("TrackChangesEditing").enableCommand(Ds("0x3"))}}const js=["indentCodeBlock","get","CodeBlock","commandName","value","has","plugins","selection","editor","from","checkChild","registerDescriptionCallback","filter","find","formatBlock","isLimit","forceValue","language","commands","schema","*Remove format:* %0","markBlockFormat","parent","TrackChangesEditing","change","outdentCodeBlock","enableCommand","model","ELEMENT_CODE_BLOCK","getSelectedBlocks","rootElement","codeBlock","registerElementLabel","name","blockName","_descriptionFactory"];var Us,Gs;Us=js,Gs=380,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{afterInit(){const t=this[Hs("0x18")];if(!t[Hs("0x16")][Hs("0x15")](Hs("0x12")))return;const e=t[Hs("0x16")][Hs("0x11")](Hs("0x3")),n=t.locale,o=t.config[Hs("0x11")](Hs("0xb")).languages,s=t[Hs("0x22")][Hs("0x11")](Hs("0xb"));e.enableCommand(Hs("0x10")),e.enableCommand(Hs("0x5")),e[Hs("0x6")]("codeBlock",((n,r={})=>{const i=t[Hs("0x7")],x=t[Hs("0x7")].document[Hs("0x17")],a=r&&void 0!==r[Hs("0x20")]?r.forceValue:!s[Hs("0x14")];let c;r[Hs("0x21")]||(r[Hs("0x21")]=o[0][Hs("0x21")]),c=a?Array[Hs("0x19")](x[Hs("0x9")]()).filter((t=>{return Vs(t)||(e=t,n=i[Hs("0x23")],!e.is(Hs("0xa"))&&!n[Hs("0x1f")](e)&&n[Hs("0x1a")](e[Hs("0x2")],"codeBlock"));var e,n})):Array[Hs("0x19")](x[Hs("0x9")]())[Hs("0x1c")]((t=>Vs(t)));const l=S(c,i);i[Hs("0x4")]((()=>{for(const t of l)e[Hs("0x1")](t,{commandName:Hs("0xb"),commandParams:[{...r,forceValue:a}],formatGroupId:Hs("0xe")})}))})),e._descriptionFactory[Hs("0xc")]("codeBlock",(t=>Yo(n,Hs("0x8"),t))),e[Hs("0xf")][Hs("0x1b")]((t=>{const e=n.t,{type:s,data:r}=t;if(Hs("0x1e")==s&&r&&Hs("0xb")==r[Hs("0x13")]){const t=r.commandParams[0][Hs("0x21")],s=e(o[Hs("0x1d")]((e=>e[Hs("0x21")]===t)).label);return r.commandParams[0][Hs("0x20")]?{type:"format",content:Yo(n,"*Format:* %0",Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Yo(n,Hs("0x0"),Yo(n,Hs("0x8"),1))}}}))}}function Vs(t){return"codeBlock"==t[Hs("0xd")]}const Ws=["editor","enableCommand","TrackChangesEditing","afterInit","plugins","get","CommentsEditing"];var Ks,qs;Ks=Ws,qs=237,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Ws[t-=0]};class $s extends t.Plugin{[Xs("0x4")](){const t=this[Xs("0x1")];t[Xs("0x5")].has(Xs("0x0"))&&t[Xs("0x5")][Xs("0x6")](Xs("0x3"))[Xs("0x2")]("addCommentThread")}}var Qs=n(181);const Js=["unit","addMarker:suggestion:deletion","removeMarker:suggestion:deletion","downcastDispatcher","editing","bind","lock","data","unbindElementFromMarkerName","model","editor","writer","forward","high","start","rootName","fromRange","enqueueChange","options","mapper","TrackChangesEditing","$graveyard","commands","buffer","markerNameToElements","createRange","detach","showSuggestionHighlights","root","end","requires","setSelection","batch","unlock","markerName","deleteForward","getFirstRange","get","remove","isCollapsed","enableCommand","merge"];var Zs,Ys;Zs=Js,Ys=111,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Js[t-=0]};class er extends t.Plugin{static get[tr("0x3")](){return[Qs.Delete]}init(){const t=this[tr("0x19")],e=t.plugins[tr("0xa")](tr("0x23"));e[tr("0xd")]("delete");const n=t[tr("0x25")][tr("0xa")](tr("0x8"));e[tr("0xd")](tr("0x8"),((e,o={})=>{const s=t[tr("0x18")].createSelection(t[tr("0x18")].document.selection);s[tr("0xc")]&&t.model.modifySelection(s,{direction:tr("0x1b"),unit:o[tr("0xf")]});const r=s[tr("0x9")](),x=i.LiveRange[tr("0x1f")](r);let a;e(o),a=tr("0x24")==x[tr("0x1")][tr("0x1e")]?t[tr("0x18")][tr("0x28")](r[tr("0x1d")]):t[tr("0x18")][tr("0x28")](x[tr("0x1d")],x[tr("0x2")]),x[tr("0x29")](),t[tr("0x18")][tr("0x20")](n[tr("0x26")][tr("0x5")],(t=>{n[tr("0x26")][tr("0x15")](),t[tr("0x4")](t[tr("0x28")](a[tr("0x2")])),n[tr("0x26")][tr("0x6")]()}))})),t[tr("0x13")][tr("0x12")].on("addMarker:suggestion:deletion",Ts(t,tr("0xe")),{priority:tr("0x1c")}),t[tr("0x16")][tr("0x12")].on(tr("0x10"),((e,n,o)=>{o[tr("0x21")][tr("0x0")]&&Ts(t,tr("0xe"),{showActiveMarker:!1})[tr("0x14")](this)(e,n,o)}),{priority:"high"}),t.editing.downcastDispatcher.on(tr("0x11"),((t,e,n)=>{const o=n[tr("0x22")][tr("0x27")](e[tr("0x7")]);if(o)for(const t of o)t.is("uiElement")&&(n.mapper[tr("0x17")](t,e.markerName),n[tr("0x1a")][tr("0xb")](t))}),{priority:"high"})}}const nr=["length","splitListItemBefore","bulletedList","format","ELEMENT_LIST_ITEM","get","ELEMENT_BULLETED_LIST","setSelection","registerElementLabel","end","push","toUpperCase","getAttribute","previousSibling","splitListItemAfter","refresh","numberedList","expandListBlocksToCompleteList","execute","nextSibling","start","enableCommand","schema","listType","isFirstBlockOfListItem","value","mergeListItemBackward","commands","map","multipleBlocks","after","registerCustomCallback","fromRange","commandParams","forceValue","slice","documentList","before","*Format:* insert into %0","plugins","createRange","list.multiBlock","listIndent","outdentList","hasAttribute","getFirstRange","from","document","next","DocumentListUtils","ELEMENT_","getSelectedBlocks","registerDescriptionCallback","containsItem","createPositionAt","commandName","_descriptionFactory","change","markMultiRangeBlockFormat","indentList","*Outdent:* %0","locale","*Change to:* %0","findIndex","*Format:* remove from %0","getRanges","model","*Indent:* %0","config","add","selection","_suggestionFactory","markBlockFormat","isObject","nodeAfter","afterInit","detach"];var or,sr;or=nr,sr=365,function(t){for(;--t;)or.push(or.shift())}(++sr);const rr=function(t,e){return nr[t-=0]};class ir extends t.Plugin{[rr("0x12")](){const t=this.editor;if(!t[rr("0x3b")].has("DocumentListEditing"))return;const e=t[rr("0x4")],n=t[rr("0x3b")].get("TrackChangesEditing"),o=t[rr("0x3b")][rr("0x19")](rr("0x45"));function s(e){return()=>{const s=t[rr("0x2f")].get(e);if(s[rr("0x2d")]&&!t[rr("0xb")][rr("0x19")](rr("0x3d")))return void t[rr("0x26")]("paragraph",{});let r=Array.from(t.model[rr("0x43")].selection[rr("0x47")]());if(a(e)){r=o[rr("0x25")](r);const t=[];for(const e of r)o[rr("0x2c")](e)&&t[rr("0x1e")](e);r=t}t[rr("0x9")][rr("0x0")]((()=>{n[rr("0x1")](r,{commandName:e,commandParams:[{forceValue:!s[rr("0x2d")]}],formatGroupId:"listType"},[],rr("0x38"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[rr("0x6")]((t=>!t[rr("0x40")]("listItemId")));return n>-1&&(e=e[rr("0x37")](0,n)),e}(t[rr("0x9")][rr("0x43")][rr("0xd")][rr("0x47")]()),s=o[o[rr("0x14")]-1],r=t[rr("0x9")][rr("0x2a")][rr("0x10")](s)?rr("0x32"):rr("0x1d"),i=t[rr("0x9")][rr("0x3c")](t[rr("0x9")].createPositionAt(o[0],rr("0x39")),t[rr("0x9")][rr("0x4a")](s,r));t[rr("0x9")][rr("0x0")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[rr("0x27")];for(;t&&t[rr("0x20")]("listIndent")>n.getAttribute(rr("0x3e"));)e[rr("0xc")](t),t=t[rr("0x27")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t.model[rr("0x43")][rr("0xd")][rr("0x47")]()[rr("0x44")]().value,s=t.model[rr("0x4a")](o,"before"),r=t[rr("0x9")][rr("0x4a")](o,0),i=t[rr("0x9")].createRange(s,r);t[rr("0x9")][rr("0x0")]((()=>{n[rr("0xf")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x2b")})}))}}function a(e){const n=t[rr("0x2f")][rr("0x19")](rr("0x16"))[rr("0x2d")],o=t[rr("0x2f")][rr("0x19")](rr("0x24"))[rr("0x2d")];return"numberedList"===e?n:o}n[rr("0x29")](rr("0x24"),s(rr("0x24"))),n[rr("0x29")](rr("0x16"),s(rr("0x16"))),n[rr("0x29")](rr("0x2"),r("indentList")),n[rr("0x29")](rr("0x3f"),r("outdentList")),n[rr("0x29")](rr("0x22"),x(rr("0x22"))),n[rr("0x29")](rr("0x15"),x(rr("0x15"))),n[rr("0x4c")][rr("0x1c")]((function(e){const n=!t.model[rr("0x2a")][rr("0x10")](e),o=e[rr("0x21")],s=e[rr("0x27")],r=e.getAttribute("listItemId"),i=!o||o[rr("0x20")]("listItemId")!==r,x=!s||s[rr("0x20")]("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,rr("0x18"),t))),n[rr("0x4c")][rr("0x48")]((function(n){const{data:o}=n;if(!o)return;let s,r,i,x;switch(o[rr("0x4b")]){case rr("0x16"):i=o[rr("0x35")][0][rr("0x36")],x=a(o.commandName),s=i?"*Format:* insert into %0":rr("0x7"),!x&&t[rr("0xb")].get("list.multiBlock")||(s=rr("0x5")),r={type:rr("0x17"),content:Yo(e,s,Yo(e,rr("0x1a")))};break;case rr("0x24"):i=o[rr("0x35")][0].forceValue,x=a(o[rr("0x4b")]),s=rr(i?"0x3a":"0x7"),!x&&t[rr("0xb")][rr("0x19")]("list.multiBlock")||(s="*Change to:* %0"),r={type:"format",content:Yo(e,s,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case rr("0x2"):s=rr("0xa"),r={type:"format",content:Yo(e,s,Yo(e,rr("0x18")))};break;case rr("0x3f"):s=function(t){const e=t[rr("0x41")]();let n=e[rr("0x28")][rr("0x11")];for(;n&&e[rr("0x49")](n);){if(n[rr("0x20")](rr("0x3e"))>0)return!1;n=n[rr("0x27")]}return!0}(n)?Yo(e,rr("0x7"),Yo(e,function(t){const e=t.getFirstRange()[rr("0x28")][rr("0x11")];return rr("0x46")+e[rr("0x20")](rr("0x2b"))[rr("0x1f")]()+"_LIST"}(n))):Yo(e,rr("0x3"),Yo(e,rr("0x18"))),r={type:rr("0x17"),content:s};break;case rr("0x2e"):case"mergeListItemForward":!1===o[rr("0x31")]&&(s="*Merge:* %0",r={type:"deletion",content:Yo(e,s,Yo(e,rr("0x18")))})}return r})),n[rr("0xe")][rr("0x33")]("formatBlock",rr("0x38"),"accept",(function(e,n){const o=[];for(let n of e)n[rr("0x28")].nodeAfter===n[rr("0x1d")].parent&&(n=t[rr("0x9")][rr("0x3c")](t[rr("0x9")][rr("0x4a")](n[rr("0x28")].nodeAfter,0))),o.push(n);t.model[rr("0x0")]((e=>{const s=t.model[rr("0x43")][rr("0xd")],r=Array[rr("0x42")](s[rr("0x8")]())[rr("0x30")]((t=>i.LiveRange[rr("0x34")](t)));e[rr("0x1b")](o),t[rr("0x2f")][rr("0x19")](n[rr("0x4b")])[rr("0x23")](),n[rr("0x35")][rr("0x1e")]({forceDefaultExecution:!0}),t[rr("0x26")](n[rr("0x4b")],...n[rr("0x35")]),e[rr("0x1b")](r);for(const t of r)t[rr("0x13")]()}))}))}}var xr=n(331);const ar=["TrackChangesEditing","hasClass","init","afterExecute","split","fire","commands","editing","end","getFirstPosition","getFirstRange","enter","createRange","data","get","model","fromRange","downcastDispatcher","detach","options","ck-suggestion-marker-split","change","mapper","nextSibling","unbindElementFromMarkerName","markInsertion","editor","addMarker:suggestion:insertion","enterBlock","selection","bind","setSelection","remove","markerNameToElements","showSuggestionHighlights","high","writer","markerName"];var cr,lr;cr=ar,lr=388,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 requires(){return[xr.Enter]}[dr("0x20")](){const t=this[dr("0x12")],e=t.plugins.get(dr("0x1e")),n=t[dr("0x24")][dr("0x6")](dr("0x3"));e.enableCommand(dr("0x3"),(()=>{t[dr("0x7")][dr("0xd")]((o=>{const s=t[dr("0x7")].document[dr("0x15")],r=s[dr("0x1")](),x=i.LiveRange[dr("0x8")](s[dr("0x2")]());if(n[dr("0x14")](o)){const n=t[dr("0x7")].createPositionAt(r.parent[dr("0xf")],0),s=o[dr("0x4")](r,n);e[dr("0x11")](s)}else o[dr("0x17")](o[dr("0x4")](x[dr("0x0")]));x[dr("0xa")](),n[dr("0x23")](dr("0x21"),{writer:o})}))})),t[dr("0x25")][dr("0x9")].on("addMarker:suggestion:insertion",Ts(t,dr("0x22")),{priority:dr("0x1b")}),t[dr("0x25")].downcastDispatcher.on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[dr("0xe")][dr("0x19")](e[dr("0x1d")]);if(o)for(const t of o)t[dr("0x1f")](dr("0xc"))&&(n[dr("0xe")][dr("0x10")](t,e[dr("0x1d")]),n[dr("0x1c")][dr("0x18")](t))}),{priority:"high"}),t[dr("0x5")][dr("0x9")].on(dr("0x13"),((e,n,o)=>{o[dr("0xb")][dr("0x1a")]&&Ts(t,dr("0x22"),{showActiveMarker:!1})[dr("0x16")](this)(e,n,o)}),{priority:"high"})}}const gr=["editor","get","model","handleFindCommand","enableCommand","find","end","createRange","item","getIntersection","bind","suggestion:deletion","FindAndReplaceUtils","findPrevious","replace","replaceAll","FindAndReplaceEditing","_isInDeletionRange","plugins","findNext","TrackChangesEditing","filter","findByTextCallback","getRange","string","afterInit"];var mr,fr;mr=gr,fr=425,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0x10")](){if(!this[hr("0x11")].plugins.has(hr("0x7")))return;const t=this[hr("0x11")].plugins[hr("0x12")](hr("0xb"));t[hr("0x15")](hr("0x16"),this[hr("0x14")][hr("0x1")](this)),t[hr("0x15")](hr("0xa")),t[hr("0x15")](hr("0x4")),t.enableCommand(hr("0x5")),t.enableCommand(hr("0x6"))}[hr("0x14")](t,e,n={}){const o=this.editor[hr("0x9")].get(hr("0x3"));void 0!==n&&t((t=>(hr("0xf")==typeof e?o[hr("0xd")](e,n):e)(t)[hr("0xc")]((e=>!1===this[hr("0x8")](e,t[hr("0x19")])))),n)}[hr("0x8")](t,e){const n=this[hr("0x11")][hr("0x13")][hr("0x18")](this[hr("0x11")][hr("0x13")].createPositionAt(e,t.start),this.editor.model.createPositionAt(e,t[hr("0x17")]));for(const t of this[hr("0x11")][hr("0x13")].markers.getMarkersGroup(hr("0x2")))if(null!==n[hr("0x0")](t[hr("0xe")]()))return!0;return!1}}const br=["from","FontBackgroundColorEditing","config","trim","FontSizeEditing","plugins","title","editor","format","fontBackgroundColor.colors","label","value","*Set font family:* %0","FontFamilyEditing","model","locale","fontColor","*Reset font background color*","afterInit","_enableCommand","document","fontSize","find","_descriptionFactory","commandParams","commandName","get","*Set font background color:* %0","*Set font size:* %0","*Reset font color*","getRanges","has","TrackChangesEditing","registerDescriptionCallback","enableCommand","normalizeSizeOptions","selection","isCollapsed","fontBackgroundColor","FontSize","fontFamily","markInlineFormat","toLowerCase"];var Er,_r;Er=br,_r=176,function(t){for(;--t;)Er.push(Er.shift())}(++_r);const Tr=function(t,e){return br[t-=0]},Cr=[{pluginName:Tr("0x0"),commandName:Tr("0x11")},{pluginName:Tr("0x9"),commandName:"fontFamily"},{pluginName:"FontColorEditing",commandName:Tr("0xc")},{pluginName:Tr("0x28"),commandName:Tr("0x22")}];class yr extends t.Plugin{[Tr("0xe")](){const t=this[Tr("0x3")][Tr("0xb")];for(const{pluginName:t,commandName:e}of Cr)this[Tr("0x3")].plugins[Tr("0x1b")](t)&&this[Tr("0xf")](e);this[Tr("0x3")][Tr("0x1")][Tr("0x16")](Tr("0x1c"))[Tr("0x13")][Tr("0x1d")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o[Tr("0x15")]){const e=o[Tr("0x14")][0][Tr("0x7")];if(e){const o=n(this.editor[Tr("0x1")].get(Tr("0x23"))[Tr("0x1f")](this[Tr("0x3")][Tr("0x29")][Tr("0x16")]("fontSize.options"))[Tr("0x12")]((t=>t[Tr("0xa")]==e))[Tr("0x2")])[Tr("0x26")]();return{type:Tr("0x4"),content:Yo(t,Tr("0x18"),o)}}return{type:Tr("0x4"),content:Yo(t,"*Reset font size*")}}if(Tr("0x24")==o[Tr("0x15")]){const e=o[Tr("0x14")][0].value;return e?{type:Tr("0x4"),content:Yo(t,Tr("0x8"),e)}:{type:Tr("0x4"),content:Yo(t,"*Reset font family*")}}if(Tr("0xc")==o.commandName){const e=o[Tr("0x14")][0][Tr("0x7")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x3")][Tr("0x29")][Tr("0x16")]("fontColor.colors"))[Tr("0x12")]((t=>t[Tr("0xa")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[Tr("0x26")]()),{type:Tr("0x4"),content:Yo(t,"*Set font color:* %0",i)[Tr("0x2a")](),color:{value:e,title:i||r}}}return{type:Tr("0x4"),content:Yo(t,Tr("0x19"))}}if(Tr("0x22")==o[Tr("0x15")]){const e=o[Tr("0x14")][0][Tr("0x7")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x3")].config[Tr("0x16")](Tr("0x5")))[Tr("0x12")]((t=>t.model==e));let r=e,i="";return o&&(r=o[Tr("0x6")],i=n(r).toLowerCase()),{type:Tr("0x4"),content:Yo(t,Tr("0x17"),i)[Tr("0x2a")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,Tr("0xd"))}}}}))}[Tr("0xf")](t){const e=this[Tr("0x3")];e[Tr("0x1")].get(Tr("0x1c"))[Tr("0x1e")](t,((n,o={})=>{const s=e[Tr("0xa")][Tr("0x10")][Tr("0x20")],r=o[Tr("0x7")];s[Tr("0x21")]?n(o):e[Tr("0xa")].change((()=>{const n=Array[Tr("0x27")](s[Tr("0x1a")]());for(const o of n){const n=r?[o]:Es(t,o,e[Tr("0xa")]);for(const o of n)e[Tr("0x1")].get(Tr("0x1c"))[Tr("0x25")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const kr=["change","commandName","getAttributeProperties","document","pasteFormat","commands","FontSize","fontColor","format","title","normalizeSizeOptions","selection","toUpperCase","toLowerCase","createSelection","model","join","getAttributes","plugins","forward","*Set format to:* %0","modifySelection","getRanges","config","isBlock","boolean","fontBackgroundColor","*Remove all formatting*","TrackChangesEditing","locale","createRange","word","charAt","getFirstPosition","slice","getItems","split","backward","entries","from","label","registerDescriptionCallback","editor","copyFormat","getSelectedBlocks","afterInit","get","enableCommand","_descriptionFactory"];var Ar,vr;Ar=kr,vr=259,function(t){for(;--t;)Ar.push(Ar.shift())}(++vr);const Rr=function(t,e){return kr[t-=0]};class Sr extends t.Plugin{[Rr("0x1f")](){const t=this[Rr("0x1c")],n=t.model,o=n[Rr("0x26")][Rr("0x2e")],s=t.plugins[Rr("0x20")](Rr("0xe")),r=t[Rr("0xf")],i=t[Rr("0x28")].get(Rr("0x1d")),x=t[Rr("0x28")].get("pasteFormat");i&&x&&(s[Rr("0x21")](Rr("0x27"),((t,r={})=>{const i=r;n[Rr("0x23")]((()=>{const t=Array[Rr("0x19")](o[Rr("0x8")]()),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[Rr("0x3")]()){const t=e[Rr("0x25")](n);t&&t.isFormatting&&(yield n)}}(t,n));for(const e of t[Rr("0x8")]())for(const t of e[Rr("0x15")]())!n[Rr("0xa")](t)&&o(t)&&(yield t);for(const e of t[Rr("0x1e")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n.schema))||0!==Object.keys(i).length)for(const t of r)s.markInlineFormat(t,{commandName:Rr("0x27"),commandParams:[i]})}))})),s[Rr("0x22")][Rr("0x1b")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n[Rr("0x24")]){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Rr("0x18")](o))e.push(Lr(t,n,s));return e.length?{type:Rr("0x2b"),content:Yo(r,Rr("0x6"),e.join(", "))}:{type:"format",content:Yo(r,Rr("0xd"))}}})),t[Rr("0x4")][Rr("0x20")](Rr("0xe"))[Rr("0x21")](Rr("0x1d")))}}function Ir(t,e){const n=t[Rr("0x0")](e);t.modifySelection(n,{unit:Rr("0x11"),direction:Rr("0x17")});const o=n[Rr("0x13")]();t[Rr("0x7")](n,{unit:"word",direction:Rr("0x5")});const s=n.getLastPosition();return t[Rr("0x10")](o,s)}function Lr(t,e,n){const o=t[Rr("0xf")].t,r=e[Rr("0x16")](/(?=[A-Z])/)[Rr("0x2")](" "),i=o(r[Rr("0x12")](0)[Rr("0x2f")]()+r[Rr("0x14")](1)).toLowerCase();if(Rr("0xb")==typeof n)return i;if(Rr("0x2a")===e||Rr("0xc")===e){const e=(0,s.normalizeColorOptions)(t[Rr("0x9")].get("fontColor.colors")).find((t=>t[Rr("0x1")]==n));return i+" ("+(e?o(e[Rr("0x1a")])[Rr("0x30")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Rr("0x4")].get(Rr("0x29"))[Rr("0x2d")](t[Rr("0x9")][Rr("0x20")]("fontSize.options")).find((t=>t[Rr("0x1")]==n));return i+" ("+(e?o(e[Rr("0x2c")]).toLowerCase():n)+")"}return i+" ("+n+")"}const Nr=["schema","heading.options","filter","model","paragraph","_descriptionFactory","value","match","ELEMENT_HEADING","commandParams","isObject","registerElementLabel","parent","ELEMENT_HEADING_CUSTOM","editor","from","config","commandName","heading","plugins","HeadingEditing","afterInit","format","formatBlock","selection","document","find","*Change to:* %0","registerDescriptionCallback","markBlockFormat","get","TrackChangesEditing"];var wr,Mr;wr=Nr,Mr=194,function(t){for(;--t;)wr.push(wr.shift())}(++Mr);const Or=function(t,e){return Nr[t-=0]};class Fr extends t.Plugin{[Or("0x13")](){const t=this[Or("0xc")],e=t.locale,n=t[Or("0xe")].get(Or("0x1f"));if(!t[Or("0x11")].has(Or("0x12")))return;const o=t[Or("0x11")][Or("0x1c")](Or("0x1d"));o.enableCommand("heading",((e,n)=>{const s=n[Or("0x4")],r=Array[Or("0xd")](this[Or("0xc")].model[Or("0x17")][Or("0x16")].getSelectedBlocks())[Or("0x0")]((t=>{return e=t,n=s,(o=this[Or("0xc")][Or("0x1")][Or("0x1e")]).checkChild(e[Or("0xa")],n)&&!o[Or("0x8")](e)&&e.name!=n;var e,n,o}));t[Or("0x1")].change((()=>{for(const t of r)o[Or("0x1b")](t,{commandName:Or("0x10"),commandParams:[n],formatGroupId:"blockName"},_s(t))}))}));for(const t of n)Or("0x2")!=t[Or("0x1")]&&o[Or("0x3")][Or("0x9")](t.model,(e=>{const n=Pr(t[Or("0x1")]);return null!==n?s(e,n):r(e,t.title)}));function s(t,n){return Yo(e,Or("0x6"),[t,n])}function r(t,n){return Yo(e,Or("0xb"),[t,n])}o[Or("0x3")][Or("0x1a")]((t=>{const{type:o,data:i}=t;if(Or("0x15")==o&&i&&Or("0x10")==i[Or("0xf")]){const t=i[Or("0x7")][0][Or("0x4")],o=Pr(t);if(null!==o)return{type:Or("0x14"),content:Yo(e,Or("0x19"),s(1,o))};const x=n[Or("0x18")]((e=>e[Or("0x1")]===t)).title;return{type:Or("0x14"),content:Yo(e,Or("0x19"),r(1,x))}}}))}}function Pr(t){const e=t[Or("0x5")](/^heading(\d+)$/);return e?e[1]:null}const Dr=["commandName","editor","get","isCollapsed","hasAttribute","model","enableCommand","title","color","*Set highlight:* %0","afterInit","TrackChangesEditing","push","change","markInlineFormat","find","selection","document","formatInline","_descriptionFactory","FORMAT_HIGHLIGHT","getLastMatchingPosition","HighlightEditing","registerDescriptionCallback","item","has","getAttribute","toLowerCase","commandParams","highlight","createRange","plugins","highlight.options","value"];var Br,jr;Br=Dr,jr=309,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x7")](){const t=this[Ur("0x20")];if(!t[Ur("0x1c")][Ur("0x16")](Ur("0x13")))return;const e=t[Ur("0x1c")][Ur("0x21")](Ur("0x8"));e[Ur("0x3")]("highlight",((n,o={})=>{const s=t[Ur("0x2")][Ur("0xe")][Ur("0xd")],r=s[Ur("0x17")](Ur("0x1a"));let i=o[Ur("0x1e")],x=[];if(s[Ur("0x0")]){const e=s.getFirstPosition();if(!s[Ur("0x1")](Ur("0x1a")))return void n(o);{const n=t=>t[Ur("0x15")][Ur("0x17")](Ur("0x1a"))===r,o=e[Ur("0x12")](n,{direction:"backward"}),s=e.getLastMatchingPosition(n);x=[t[Ur("0x2")][Ur("0x1b")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x[Ur("0x9")](e):x.push(...Es(Ur("0x1a"),e,t[Ur("0x2")]));t[Ur("0x2")][Ur("0xa")]((()=>{for(const t of x)e[Ur("0xb")](t,{commandName:Ur("0x1a"),commandParams:[{value:i}]})}))}));const n=t.locale;e[Ur("0x10")][Ur("0x14")]((e=>{const{type:o,data:s}=e;if(Ur("0xf")==o&&s&&Ur("0x1a")==s[Ur("0x1f")]){const e=n.t,o=s[Ur("0x19")][0][Ur("0x1e")];if(o){const s=t.config[Ur("0x21")](Ur("0x1d"))[Ur("0xc")]((t=>t[Ur("0x2")]==o)),r=e(s[Ur("0x4")])[Ur("0x18")]();return{type:"format",content:Yo(n,Ur("0x6"),r),color:{value:s[Ur("0x5")],title:s[Ur("0x4")]}}}return{type:"format",content:Yo(n,"*Remove highlight*",Yo(n,Ur("0x11")))}}}))}}const Hr=["insert","TrackChangesEditing","has","showSuggestionHighlights","ck-horizontal-line","horizontalLine","div","for","createEmptyElement","dataDowncast","ELEMENT_HORIZONTAL_LINE","editor","registerElementLabel","afterInit","HorizontalLineEditing","get","conversion","locale","enableCommand","plugins"];var zr,Vr;zr=Hr,Vr=320,function(t){for(;--t;)zr.push(zr.shift())}(++Vr);const Wr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Wr("0xd")](){const t=this[Wr("0xb")];if(!t.plugins[Wr("0x2")](Wr("0xe")))return;t[Wr("0x13")][Wr("0xf")](Wr("0x1"))[Wr("0x12")](Wr("0x5"));const e=t[Wr("0x13")].get("TrackChangesEditing"),n=t[Wr("0x11")];e._descriptionFactory[Wr("0xc")](Wr("0x5"),(t=>Yo(n,Wr("0xa"),t))),t[Wr("0x10")][Wr("0x7")](Wr("0x9")).elementToStructure({model:Wr("0x5"),view:(t,{writer:e,options:n})=>{if(!n[Wr("0x3")])return null;const o=e.createContainerElement(Wr("0x6")),s=e[Wr("0x8")]("hr");return e.addClass(Wr("0x4"),o),e[Wr("0x0")](e.createPositionAt(o,0),s),o},converterPriority:"high"})}}const qr=["plugins","rawHtml","getSelectedElement","TrackChangesEditing","element","editor","editing","enableCommand","HtmlEmbed","document","model","get","registerDescriptionCallback","getCustomProperty","locale","*Change %0 content*","view","htmlEmbed","registerElementLabel","commandName","ELEMENT_HTML_EMBED","cancel","_descriptionFactory","selection","format"];var Xr,$r;Xr=qr,$r=178,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Qr=function(t,e){return qr[t-=0]};class Jr extends t.Plugin{afterInit(){const t=this[Qr("0x2")];if(!t.plugins.has(Qr("0x5")))return;const e=t[Qr("0x16")][Qr("0x8")]("TrackChangesEditing"),n=t[Qr("0xb")],o=t[Qr("0x3")][Qr("0xd")][Qr("0x6")].selection;e[Qr("0x13")][Qr("0xf")](Qr("0x17"),(t=>Yo(n,Qr("0x11"),t))),t[Qr("0x16")][Qr("0x8")](Qr("0x0"))[Qr("0x4")](Qr("0xe"),((n,s)=>{const r=t[Qr("0x7")],i=r[Qr("0x6")][Qr("0x14")];r.change((()=>{const t=function(t){const e=t[Qr("0x18")]();return e&&e.is(Qr("0x1"),Qr("0x17"))?t[Qr("0x18")]():null}(i);if(!t)return void n(null);const r=t.getAttribute("value")||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Qr("0xe"),commandParams:[s]}),o[Qr("0x18")]()[Qr("0xa")]("rawHtmlApi")[Qr("0x12")]())}))})),e._descriptionFactory[Qr("0x9")]((t=>{const{data:e}=t;if(e&&Qr("0xe")==e[Qr("0x10")]){const t=Yo(n,Qr("0x11"));return{type:Qr("0x15"),content:Yo(n,Qr("0xc"),t)}}}))}}const Zr=["ImageUploadEditing","isBefore","getAttribute","convertInlineImageToBlock","alt","isBlockImage","imageTextAlternative","from","caption","Inline image to block image","discard","_suggestionFactory","removeObject","format","element","ImageTextAlternativeEditing","width","change","imageTypeBlock","next","registerCustomCallback","ImageBlockEditing","isInContent","setImageNaturalSizeAttributes","createRangeOn","formatBlock","markInlineFormat","commandParams","commandName","suggestion","registerPostFixer","discardSuggestion","imageStylePostApply","forEach","newRange","name","*Format:* %0","value","end","isInlineImage","convertBlockImageToInline","length","forceDefaultExecution","nodeBefore","ImageStyleEditing","afterInit","differ","ELEMENT_INLINE_IMAGE","commands","toLowerCase","getFirstRange","getNearestSelectionRange","start","hasSuggestion","isIntersecting","backward","document","formatInline","selection","deletion","find","_descriptionFactory","FORMAT_SIDE_IMAGE","uploadImage","getSuggestionCallback","hasAttribute","imageStyle","newValue","subType","resizeImage","ELEMENT_IMAGE","ImageCaptionEditing","TrackChangesEditing","detach","previous","refresh","filter","ImageEditing","locale","get","chain","enableCommand","type","isEqual","registerElementLabel","getSuggestion","findIndex","normalizedStyles","insertion","join","insertImage","markDeletion","markBlockFormat","ImageUtils","getClosestSelectedImageElement","ELEMENT_CAPTION","getCaptionFromImageModelElement","has","Block image to inline image","imageInline","*Set image text alternative:* %0","toPrevious","isCollapsed","imageTypeInline","plugins","isOwn","editor","registerDescriptionCallback","model","markInsertion","accept","schema","imageCaption","createRange","fromPosition","ImageResize","ImageInlineEditing","shouldConvertImageType","getContainedElement","imageStylePreApply","ImageCaptionUtils","head","toNext"];var Yr,ti;Yr=Zr,ti=384,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("0x5b")];if(!t[ei("0x59")][ei("0x52")](ei("0x3e")))return;const n=t[ei("0x59")].get(ei("0x39")),o=t.plugins[ei("0x40")](ei("0x4e")),s={},r=t[ei("0x3f")];if(n[ei("0x42")](ei("0x4b")),n[ei("0x2e")][ei("0x45")]("imageBlock",(t=>Yo(r,ei("0x37"),t))),n._descriptionFactory[ei("0x45")](ei("0x54"),(t=>Yo(r,ei("0x20"),t))),n[ei("0x2e")][ei("0x45")](ei("0x74"),(()=>Yo(r,ei("0x50")))),t[ei("0x59")][ei("0x52")](ei("0x6c"))&&n[ei("0x42")](ei("0x30")),t[ei("0x59")][ei("0x52")](ei("0x6"))&&t.plugins[ei("0x52")](ei("0x65"))&&(n[ei("0x42")]("imageTypeInline",((e,s)=>{const r=o[ei("0x4f")](t[ei("0x5d")][ei("0x29")].selection);t.model[ei("0x2")]((()=>{n[ei("0x4d")](r,{commandName:ei("0x58"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[ei("0x42")](ei("0x3"),((e,s)=>{t[ei("0x5d")].change((r=>{let x=o[ei("0x4f")](t[ei("0x5d")].document.selection),a=r[ei("0x9")](x);const c=i.LivePosition[ei("0x63")](a.start,ei("0x56")),l=i.LivePosition[ei("0x63")](a.end,ei("0x6b"));n[ei("0x1b")]((()=>e(s))),x=o[ei("0x4f")](t[ei("0x5d")][ei("0x29")][ei("0x2b")]),a=r.createRangeOn(x);const d=r[ei("0x62")](c,l);c.detach(),l[ei("0x3a")](),n[ei("0x4d")](x,{commandName:ei("0x58"),commandParams:[s]},[],ei("0x6f")),d.start[ei("0x6d")](a.start)&&n[ei("0x5e")](r[ei("0x62")](d[ei("0x25")],a[ei("0x25")]),"convertInlineImageToBlock"),a[ei("0x17")][ei("0x6d")](d[ei("0x17")])&&n[ei("0x5e")](r[ei("0x62")](a[ei("0x17")],d[ei("0x17")]),ei("0x6f"))}))})),n[ei("0x77")][ei("0x5")]("formatBlock",ei("0x6f"),"join",(()=>!1)),n[ei("0x77")][ei("0x5")](ei("0xa"),ei("0x6f"),"accept",(()=>!1)),n[ei("0x77")][ei("0x5")](ei("0xa"),"convertInlineImageToBlock","discard",n._suggestionFactory[ei("0x31")](ei("0xa"),"",ei("0x5f"))),n[ei("0x77")][ei("0x5")]("insertion",ei("0x6f"),ei("0x4a"),(()=>!1)),n[ei("0x77")][ei("0x5")](ei("0x49"),ei("0x6f"),ei("0x76"),(([e])=>{const o=n[ei("0x77")][ei("0x31")]("insertion","","discard");let s=e.start,r=e[ei("0x17")];const i=t[ei("0x5d")][ei("0x60")].getNearestSelectionRange(s,ei("0x28")),x=t.model[ei("0x60")][ei("0x24")](r,"forward");i[ei("0x57")]&&(s=i.start),x[ei("0x57")]&&(r=x[ei("0x17")]),o([t[ei("0x5d")][ei("0x62")](s,r)])})),n._suggestionFactory[ei("0x5")]("formatBlock",ei("0x6f"),"chain",c),n._suggestionFactory[ei("0x5")](ei("0x49"),ei("0x6f"),"chain",c)),t[ei("0x59")][ei("0x52")](ei("0x38"))&&(n[ei("0x42")]("toggleImageCaption",((e,s)=>{const r=t[ei("0x59")][ei("0x40")](ei("0x69"));let i=o[ei("0x4f")](t.model[ei("0x29")][ei("0x2b")]),x=r.getCaptionFromImageModelElement(i);t[ei("0x5d")].change((()=>{if(x)return void n[ei("0x4c")](t[ei("0x5d")][ei("0x9")](x));const a=o[ei("0x71")](i);e(s),i=o[ei("0x4f")](t[ei("0x5d")][ei("0x29")][ei("0x2b")]),x=r[ei("0x51")](i),n[ei("0x5e")](t[ei("0x5d")][ei("0x9")](x),a?null:ei("0x61"))}))})),n[ei("0x77")].registerCustomCallback(ei("0x49"),ei("0x61"),ei("0x41"),c)),t.plugins[ei("0x52")](ei("0x1d"))){n[ei("0x42")]("imageStyle",((s,r)=>{const i=t[ei("0x59")][ei("0x40")]("Users").me,x=t.commands[ei("0x40")](ei("0x33"));let a=o.getClosestSelectedImageElement(t[ei("0x5d")][ei("0x29")][ei("0x2b")]),c=t[ei("0x5d")][ei("0x9")](a),l=x[ei("0x16")];if(l==r[ei("0x16")])return;const d={commandName:ei("0x33"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[ei("0x2")]((()=>{if(n.getSuggestions().filter((t=>t[ei("0x7")]&&i==t.author&&(ei("0xa")==t[ei("0x43")]||ei("0x2a")==t[ei("0x43")])&&(ei("0x68")==t.subType||ei("0x11")==t.subType)&&t[ei("0x23")]()[ei("0x44")](c)))[ei("0x12")]((t=>n[ei("0x10")](t[ei("0x6a")]))),a=o[ei("0x4f")](t.model[ei("0x29")].selection),c=t.model[ei("0x9")](a),x.refresh(),t[ei("0x21")][ei("0x40")](ei("0x58"))[ei("0x3c")](),t.commands[ei("0x40")](ei("0x3"))[ei("0x3c")](),l=x[ei("0x16")],l!=r[ei("0x16")])return o[ei("0x18")](a)&&x[ei("0x66")](r.value,a)?(s({...r,setImageSizes:!1}),a=o[ei("0x4f")](t.model[ei("0x29")][ei("0x2b")]),void n[ei("0x4d")](a,{...d,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],ei("0x68"))):void(o[ei("0x71")](a)?n.markBlockFormat(a,d,[],ei("0x11")):n[ei("0xb")](c,d,ei("0x11")))}))}));for(const e of t.plugins.get(ei("0x1d"))[ei("0x48")])s[e[ei("0x14")]]=e.title[ei("0x22")]();n[ei("0x77")].registerCustomCallback(ei("0xa"),ei("0x68"),"join",(()=>!1)),n._suggestionFactory.registerCustomCallback(ei("0xa"),"imageStylePostApply","join",(()=>!1)),n[ei("0x77")][ei("0x5")](ei("0x2a"),ei("0x11"),"join",(()=>!1)),n[ei("0x77")][ei("0x5")](ei("0xa"),ei("0x68"),ei("0x5f"),(([t])=>{o[ei("0x8")](t[ei("0x67")]())})),n[ei("0x77")][ei("0x5")](ei("0xa"),ei("0x68"),ei("0x76"),((t,e)=>{n[ei("0x77")][ei("0x31")]("formatBlock","",ei("0x5f"))(t,{commandName:e.commandName,commandParams:e.commandReversedParams})})),n[ei("0x77")][ei("0x5")](ei("0xa"),ei("0x68"),"chain",c)}const x=[{type:ei("0xa"),subType:ei("0x68")},{type:"insertion",subType:ei("0x61")},{type:ei("0xa"),subType:ei("0x6f")},{type:"insertion",subType:ei("0x6f")}];function a(t,e){const s=x[ei("0x47")]((({type:e,subType:n})=>t.type==e&&t[ei("0x35")]==n)),r=x.findIndex((({type:t,subType:n})=>e[ei("0x43")]==t&&e[ei("0x35")]==n));if(s<0||r<0)return!1;const i=t[ei("0x23")](),a=e[ei("0x23")]();if((0==s||1==s)&&2==r&&i[ei("0x27")](a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,ei("0x49"))[ei("0x3d")]((({suggestion:t,meta:e})=>e[ei("0x5a")]&&"convertInlineImageToBlock"==t[ei("0x35")]));if(t.length>1&&a[ei("0x17")][ei("0x44")](i.start))return!0;if(1==t[ei("0x1a")]&&(i[ei("0x25")][ei("0x44")](a.end)||i[ei("0x17")].isEqual(a.start)))return!0}if(3==s&&3==r&&i.start[ei("0x6d")](a[ei("0x25")])){const t=i[ei("0x17")].nodeAfter,e=a.start[ei("0x1c")];return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model[ei("0x29")][ei("0xf")]((()=>{let e=!1;const s=Array[ei("0x73")](t.model[ei("0x29")][ei("0x1f")].getChangedMarkers());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n._splitMarkerName(t);if(ei("0xe")==s&&n[ei("0x26")](a)){if(ei("0xa")==i&&(ei("0x68")==x||ei("0x11")==x)){const t=n.getSuggestion(a);if(r[ei("0x13")]){const s=t.getFirstRange()[ei("0x67")]();if(o[ei("0x71")](s))continue;n[ei("0x10")](t),e=!0}}if(ei("0x49")==i&&"imageCaption"==x&&!r.newRange){const t=n[ei("0x46")](a);t[ei("0x4")]&&t[ei("0x4")].isInContent&&(n.discardSuggestion(t[ei("0x4")]),e=!0)}}}return e})),t[ei("0x59")][ei("0x52")](ei("0x64"))&&n.enableCommand(ei("0x36"),((e,s)=>{const r=o[ei("0x4f")](t[ei("0x5d")].document.selection);r[ei("0x6e")]("resizedWidth")!=s[ei("0x1")]&&t.model[ei("0x2")]((()=>{n.markBlockFormat(r,{commandName:"resizeImage",commandParams:[s]})}))})),t[ei("0x59")][ei("0x52")](ei("0x0"))&&n[ei("0x42")](ei("0x72"),((e,s)=>{const r=o[ei("0x4f")](t[ei("0x5d")][ei("0x29")][ei("0x2b")]);(r[ei("0x32")](ei("0x70"))?r.getAttribute(ei("0x70")):"")!=s.newValue&&t[ei("0x5d")].change((()=>{n[ei("0x4d")](r,{commandName:"imageTextAlternative",commandParams:[s]})}))})),n._descriptionFactory[ei("0x5c")]((t=>{if(x[ei("0x2d")]((({type:e,subType:n})=>t.type==e&&t[ei("0x35")]==n)))return t[ei("0x3b")]?{}:void 0})),n._descriptionFactory[ei("0x5c")]((t=>{if(ei("0x49")==t.type||ei("0x2c")==t[ei("0x43")]){const e=t.getContainedElement();if(e&&e.is(ei("0x7a"),"caption"))return{type:"insertion"==t[ei("0x43")]?"addObject":ei("0x78"),element:e,quantity:1}}})),n[ei("0x2e")][ei("0x5c")]((t=>ei("0xa")==t[ei("0x43")]&&ei("0x6f")==t[ei("0x35")]?{type:ei("0x79"),content:ei("0x75")}:"formatBlock"==t[ei("0x43")]&&ei("0x19")==t.subType?{type:ei("0x79"),content:ei("0x53")}:void 0)),n[ei("0x2e")][ei("0x5c")]((t=>{const{data:e}=t;if(e){if(ei("0x33")==e[ei("0xd")]){const t=e[ei("0xc")][0].value;return n="side"===t?Yo(r,ei("0x2f")):s[t]||t,{type:ei("0x79"),content:Yo(r,ei("0x15"),n)}}if(ei("0x72")==e[ei("0xd")]){const t=e[ei("0xc")][0][ei("0x34")];return t?{type:"format",content:Yo(r,ei("0x55"),'"'+t+'"')}:{type:ei("0x79"),content:Yo(r,"*Remove image text alternative*")}}if(ei("0x36")==e[ei("0xd")]){const t=e.commandParams[0].width;return t?{type:ei("0x79"),content:Yo(r,"*Set image width:* %0",t)}:{type:ei("0x79"),content:Yo(r,"*Reset image width*")}}}var n}))}}const oi=["document","author","TrackChangesEditing","markBlockFormat","registerDescriptionCallback","handleReplaceImageCommand","getContainedElement","source","data","formatBlock","commandName","model","_descriptionFactory","accept","replaceImageSource","_suggestionFactory","editor","discard","format","enableCommand","get","getSuggestions","registerCustomCallback","getSelectedElement","locale","ImageEditing","*Format:* replace image URL","getSuggestionCallback","afterInit","change","getAttribute","plugins","commandParams","Users"];var si,ri;si=oi,ri=457,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{[ii("0xd")](){if(!this[ii("0x1")].plugins.has(ii("0xa")))return;const t=this[ii("0x1")][ii("0x10")][ii("0x5")]("TrackChangesEditing");t[ii("0x4")](ii("0x21"),((t,e)=>this[ii("0x18")](t,e))),t[ii("0x0")][ii("0x7")](ii("0x1c"),ii("0x21"),ii("0x20"),t[ii("0x0")][ii("0xc")]("formatBlock",null,ii("0x2"))),t[ii("0x0")][ii("0x7")](ii("0x1c"),ii("0x21"),ii("0x2"),t[ii("0x0")][ii("0xc")]("formatBlock",null,"accept")),t[ii("0x1f")][ii("0x17")]((t=>this.handleSuggestionDescription(t)))}[ii("0x18")](t,e){const n=this[ii("0x1")][ii("0x10")][ii("0x5")](ii("0x15")),o=this[ii("0x1")][ii("0x1e")][ii("0x13")].selection[ii("0x8")]();this[ii("0x1")].model[ii("0xe")]((()=>{let s=o[ii("0xf")]("src");const r=this.editor[ii("0x10")][ii("0x5")](ii("0x12")).me;for(const t of n[ii("0x6")]({skipNotAttached:!0})){const e=t[ii("0x19")]();if(ii("0x21")===t.subType&&e===o){t[ii("0x14")]!==r&&t[ii("0x2")](),s=t[ii("0x1b")][ii("0x11")][0][ii("0x1a")];break}}t(e),n[ii("0x16")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ii("0x21"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&ii("0x21")===e[ii("0x1d")]){const t=ii("0xb");return{type:ii("0x3"),content:Yo(this.editor[ii("0x9")],t)}}}}const ai=["afterInit","_trackChangesValueDuringImport","trackChanges","listenTo","bind","collaboration_features","enableCommand","importWord","forEach","execute","get","high","commands","lowest","plugins","_trackChangesExecuted","track_changes","dataInsert","_handleImportedData","value","editor"];var ci,li;ci=ai,li=297,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("0x13")]=!1,this[di("0xc")]=!1}[di("0x12")](){const t=this[di("0x11")],e=t[di("0x9")][di("0x7")](di("0x4")),n=t[di("0x9")][di("0x7")](di("0x14"));e&&(e.on(di("0x6"),((t,[,e])=>{this[di("0x13")]=n.value,e[di("0x2")][di("0xd")]=!this[di("0x13")]}),{priority:di("0x8")}),this[di("0x0")](e,di("0xe"),this[di("0xf")][di("0x1")](this)),this[di("0x0")](e,di("0xe"),(()=>{this[di("0xc")]&&(n[di("0x6")](),this[di("0xc")]=!1)}),{priority:di("0xa")}),t[di("0xb")][di("0x7")]("TrackChangesEditing")[di("0x3")](di("0x4")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this.editor.commands.get(di("0x14")),s=o[di("0x10")];this[di("0x13")]!==s&&(o.execute(),this._trackChangesExecuted=!0),n&&n[di("0x5")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[di("0x11")].plugins.get("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[di("0x11")][di("0xb")][di("0x7")]("TrackChangesEditing")._setSuggestionData(s)}))}}const gi=["schema","checkAttribute","locale","*Outdent:* %0","enableCommand","_descriptionFactory","getItems","selection","document","markBlockFormat","indent","commandName","*Indent:* %0","from","editor","TrackChangesEditing","blockIndent","afterInit","indentBlock","IndentBlock","outdentBlock","getSelectedBlocks","outdent","model","has","format","plugins"];var mi,fi;mi=gi,fi=483,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0x14")](){const t=this[hi("0x11")],e=t[hi("0x2")].get(hi("0x12"));t[hi("0x2")][hi("0x0")]("IndentEditing")&&(e[hi("0x7")](hi("0xd")),e[hi("0x7")](hi("0x19")));const n=t[hi("0x5")];if(t.plugins[hi("0x0")](hi("0x16"))){for(const n of["indentBlock",hi("0x17")])e.enableCommand(n,(()=>{const o=Array[hi("0x10")](this[hi("0x11")][hi("0x1a")][hi("0xb")][hi("0xa")][hi("0x18")]()).filter((t=>this[hi("0x11")][hi("0x1a")][hi("0x3")][hi("0x4")](t,hi("0x13"))));t.model.change((()=>{for(const t of o)e[hi("0xc")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:hi("0x15")})}))}));e[hi("0x8")].registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if(hi("0x15")!=o.commandName&&hi("0x17")!=o[hi("0xe")])return;const s=t[hi("0x9")]()[0],r=e[hi("0x8")].getItemLabel(s);return hi("0x15")==o[hi("0xe")]?{type:hi("0x1"),content:Yo(n,hi("0xf"),r)}:hi("0x17")==o[hi("0xe")]?{type:"format",content:Yo(n,hi("0x6"),r)}:void 0}))}}}var bi,Ei,_i=["requires","input","editor","enableCommand","TrackChangesEditing","plugins"];bi=_i,Ei=453,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[Qs.Input]}init(){this[Ti("0x5")][Ti("0x2")].get(Ti("0x1"))[Ti("0x0")](Ti("0x4"))}}const yi=["*Remove link*","markInlineFormat","change","afterInit","enableCommand","editor","getAttribute","get","hasAttribute","registerDescriptionCallback","linkHref","_descriptionFactory","commandName","link","model","document","*Set link:* %0","getRanges","locale","getFirstPosition","plugins","has","LinkEditing","format","selection","isCollapsed","unlink"];var ki,Ai;ki=yi,Ai=300,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x0")](){const t=this[vi("0x2")];if(!t[vi("0x11")][vi("0x12")](vi("0x13")))return;const e=t[vi("0x11")][vi("0x4")]("TrackChangesEditing");e[vi("0x1")](vi("0xa"),((n,o)=>{const s=t[vi("0xb")][vi("0xc")][vi("0x15")];let r=[];if(s.isCollapsed){if(!s[vi("0x5")](vi("0x7")))return void n(o);{const e=(0,Qs.findAttributeRange)(s[vi("0x10")](),vi("0x7"),s[vi("0x3")](vi("0x7")),t[vi("0xb")]);r=[e]}}else r=Array.from(s[vi("0xe")]());t.model[vi("0x1a")]((()=>{for(const t of r)e[vi("0x19")](t,{commandName:vi("0xa"),commandParams:[o]})}))})),e[vi("0x1")](vi("0x17"),(()=>{const n=this[vi("0x2")][vi("0xb")],o=n[vi("0xc")][vi("0x15")];n.change((()=>{let n=[];n=o[vi("0x16")]?[(0,Qs.findAttributeRange)(o[vi("0x10")](),vi("0x7"),o[vi("0x3")]("linkHref"),t[vi("0xb")])]:Es("linkHref",o.getFirstRange(),t[vi("0xb")]);for(const t of n)e[vi("0x19")](t,{commandName:vi("0x17"),commandParams:[]})}))})),e[vi("0x8")][vi("0x6")]((e=>{const{data:n}=e,o=t[vi("0xf")];if(n){if(vi("0xa")==n[vi("0x9")]){const t=n.commandParams[0];return{type:vi("0x14"),content:Yo(o,vi("0xd"),'"'+t+'"')}}return vi("0x17")==n[vi("0x9")]?{type:vi("0x14"),content:Yo(o,vi("0x18"))}:void 0}}))}}const Si=["commands","ELEMENT_BULLETED_LIST","change","*Change to:* %0","checkTodoList","forceValue","checkChild","from","createRange","ELEMENT_NUMBERED_LIST","selection","nextSibling","has","registerDescriptionCallback","slice","List","*Indent:* %0","listType","element","createPositionAt","listItem","_selectedElements","ELEMENT_LIST_ITEM","outdentList","previousSibling","commandParams","getSelectedBlocks","numberedList","plugins","document","filter","length","name","markBlockFormat","format","bulleted","enableCommand","parent","numbered","editor","_descriptionFactory","commandName","TrackChangesEditing","findIndex","bulletedList","todoListChecked","end","locale","indentList","value","add","todoList","paragraph","ELEMENT_TODO_LIST","getAttribute","listIndent","before","blockName","model","ListEditing","get","replace"];var Ii,Li;Ii=Si,Li=465,function(t){for(;--t;)Ii.push(Ii.shift())}(++Li);const Ni=function(t,e){return Si[t-=0]};class wi extends t.Plugin{afterInit(){const t=this[Ni("0x8")],e=t[Ni("0x10")];if(!t[Ni("0x3b")][Ni("0x2b")](Ni("0x1c")))return;const n=t[Ni("0x3b")][Ni("0x1d")](Ni("0xb")),o=t[Ni("0x3b")].has("TodoListEditing");function s(e){return()=>{const o=t[Ni("0x1b")][Ni("0x3c")][Ni("0x29")],s=t[Ni("0x1f")][Ni("0x1d")](e);if(s.value)return void t.execute(Ni("0x15"),{});const r=e.slice(0,-4),i=function(t,e,n){let o=Array.from(t)[Ni("0x3d")]((t=>{return e=t,(o=n)[Ni("0x25")](e[Ni("0x6")],Ni("0x33"))&&!o.isObject(e);var e,o}));o=o[Ni("0x3d")]((t=>!t.is(Ni("0x31"),Ni("0x33"))||t.getAttribute(Ni("0x30"))!=e));const s=new Set;for(const t of o)t.is(Ni("0x31"),"listItem")?s[Ni("0x13")](Mi(t)):s.add(t);return Array[Ni("0x26")](s)}(o[Ni("0x39")](),r,t[Ni("0x1b")].schema);t.model[Ni("0x21")]((()=>{for(const t of i)n[Ni("0x2")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:Ni("0x1a")},Oi(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ni("0x26")](t);const n=e[Ni("0xc")]((t=>"listItem"!=t[Ni("0x1")]));return n>-1&&(e=e[Ni("0x2d")](0,n)),e}(t.model[Ni("0x3c")][Ni("0x29")][Ni("0x39")]()),s=t[Ni("0x1b")][Ni("0x27")](t[Ni("0x1b")][Ni("0x32")](o[0],Ni("0x19")),t[Ni("0x1b")][Ni("0x32")](o[o[Ni("0x0")]-1],Ni("0xf")));t[Ni("0x1b")][Ni("0x21")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:Ni("0x18")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[Ni("0x17")](Ni("0x18"))>n[Ni("0x17")](Ni("0x18"));)e[Ni("0x13")](t),t=t[Ni("0x2a")]}return Array[Ni("0x26")](e)}(o))}))}}n[Ni("0x5")](Ni("0x3a"),s(Ni("0x3a"))),n[Ni("0x5")](Ni("0xd"),s(Ni("0xd"))),o&&n[Ni("0x5")]("todoList",s(Ni("0x14"))),n[Ni("0x5")](Ni("0x11"),r(Ni("0x11"))),n[Ni("0x5")](Ni("0x36"),r("outdentList")),o&&n.enableCommand(Ni("0x23"),(()=>{const e=t.commands[Ni("0x1d")](Ni("0x23")),o=Array[Ni("0x26")](e[Ni("0x34")]);o[Ni("0x3d")]((t=>t[Ni("0x17")](Ni("0xe"))!=e.value)),t[Ni("0x1b")][Ni("0x21")]((()=>{for(const t of o)n[Ni("0x2")](t,{commandName:Ni("0x23"),commandParams:[{forceValue:!e[Ni("0x12")]}]})}))})),n[Ni("0x9")].registerElementLabel(Ni("0x33"),(t=>Yo(e,Ni("0x35"),t))),n[Ni("0x9")][Ni("0x2c")]((t=>{const{data:n}=t;if(n){if(Ni("0x3a")==n[Ni("0xa")]||Ni("0xd")==n.commandName||"todoList"==n[Ni("0xa")])switch(n.commandName[Ni("0x1e")](Ni("0x2e"),"")){case Ni("0x4"):return o(Yo(e,Ni("0x20")));case Ni("0x7"):return o(Yo(e,Ni("0x28")));case"todo":return o(Yo(e,Ni("0x16")))}if(Ni("0x11")==n[Ni("0xa")])return{type:Ni("0x3"),content:Yo(e,Ni("0x2f"),Yo(e,"ELEMENT_LIST_ITEM"))};if(Ni("0x36")==n.commandName)return{type:Ni("0x3"),content:Yo(e,"*Outdent:* %0",Yo(e,Ni("0x35")))};if(Ni("0x23")==n[Ni("0xa")])return n[Ni("0x38")][0][Ni("0x24")]?{type:Ni("0x3"),content:Yo(e,"*Check item*")}:{type:Ni("0x3"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:Ni("0x3"),content:Yo(e,Ni("0x22"),t)}}}))}}function Mi(t){const e=t.getAttribute(Ni("0x18"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[Ni("0x37")].is("element","listItem");){const o=t.previousSibling[Ni("0x17")](Ni("0x18"));if(o==e)n=t[Ni("0x37")];else if(o<e)break;t=t[Ni("0x37")]}return n}function Oi(t){const e=[];if(t.is("element",Ni("0x33"))&&t[Ni("0x17")](Ni("0x18"))>0){let n=t.nextSibling;for(;n&&Ni("0x33")==n[Ni("0x1")]&&n[Ni("0x17")](Ni("0x18"))==t.getAttribute("listIndent");)e.push(n),n=n.nextSibling}return e}const Fi=["TrackChangesEditing","_getTranslationKeyForListStyle","model","listStyle","handleListStartCommand","toUpperCase","listType","locale","selection","reversed","getSiblingNodes","listItem","flat","type","unshift","*Format:* set start index to %0","_getSuggestionBlocksForListStyle","*Format:* set order to reversed","markMultiRangeBlockFormat","handleDescriptions","getFirstPosition","commandParams","getAttribute","bind","createRange","replace","ListPropertiesEditing","createPositionAt","change","get","listReversed","editor","list.properties","_descriptionFactory","forward","_LIST_","enableCommand","ELEMENT_","plugins","startIndex","afterInit","listStart","config","getSelectedBlocks","handleListReversedCommand","from","format","before","document","ListUtils","_getSuggestionBlocks","parent","*Change to:* %0","commandName","element","backward","push","length","map","*Format:* set order to regular","numbered"];var Pi,Di;Pi=Fi,Di=293,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x34")](){if(!this[Bi("0x2b")][Bi("0x32")].has(Bi("0x26")))return;const t=this.editor[Bi("0x36")][Bi("0x29")](Bi("0x2c")),e=this[Bi("0x2b")][Bi("0x32")].get("TrackChangesEditing");t.styles&&e[Bi("0x30")](Bi("0xf"),this.handleListStyleCommand[Bi("0x23")](this)),t.reversed&&e[Bi("0x30")]("listReversed",this[Bi("0x38")][Bi("0x23")](this)),t[Bi("0x33")]&&e[Bi("0x30")](Bi("0x35"),this[Bi("0x10")][Bi("0x23")](this)),e[Bi("0x2d")].registerDescriptionCallback(this[Bi("0x1f")][Bi("0x23")](this))}handleListStyleCommand(t,e={}){const n=this.editor[Bi("0x32")][Bi("0x29")](Bi("0xc")),o=this[Bi("0x1c")]();this[Bi("0x2b")].model[Bi("0x28")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Bi("0xf"),commandParams:[{type:e[Bi("0x19")]}],formatGroupId:"listStyle"})}))}[Bi("0x38")](t,e={}){const n=this[Bi("0x2b")][Bi("0x32")].get(Bi("0xc")),o=this[Bi("0x1")]((t=>t.is(Bi("0x5"),Bi("0x17"))&&Bi("0xb")===t[Bi("0x22")](Bi("0x12"))));if(o[Bi("0x8")]<1)return;const s=o[Bi("0x9")]((t=>this[Bi("0x2b")][Bi("0xe")][Bi("0x24")](this.editor[Bi("0xe")].createPositionAt(t,Bi("0x3b")),this[Bi("0x2b")][Bi("0xe")].createPositionAt(t,0))));this.editor.model.change((()=>{n.markMultiRangeBlockFormat(s,{commandName:Bi("0x2a"),commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}handleListStartCommand(t,e={}){const n=this.editor[Bi("0x32")].get(Bi("0xc")),o=this[Bi("0x1")]((t=>t.is(Bi("0x5"),Bi("0x17"))&&Bi("0xb")===t[Bi("0x22")](Bi("0x12"))));if(o[Bi("0x8")]<1)return;const s=o[Bi("0x9")]((t=>this.editor[Bi("0xe")][Bi("0x24")](this[Bi("0x2b")][Bi("0xe")][Bi("0x27")](t,"before"),this[Bi("0x2b")][Bi("0xe")].createPositionAt(t,0))));this[Bi("0x2b")][Bi("0xe")][Bi("0x28")]((()=>{n[Bi("0x1e")](s,{commandName:"listStart",commandParams:[{startIndex:e[Bi("0x33")]}],formatGroupId:Bi("0x35")})}))}handleDescriptions(t){const e=this[Bi("0x2b")][Bi("0x13")],{data:n}=t;if(!n)return;let o,s;switch(n[Bi("0x4")]){case"listStyle":o=Bi("0x3"),s={type:Bi("0x3a"),content:Yo(e,o,Yo(e,this[Bi("0xd")](n[Bi("0x21")][0].type)))};break;case Bi("0x2a"):o=n[Bi("0x21")][0][Bi("0x15")]?Bi("0x1d"):Bi("0xa"),s={type:Bi("0x3a"),content:Yo(e,o)};break;case Bi("0x35"):o=Bi("0x1b"),s={type:Bi("0x3a"),content:Yo(e,o,n[Bi("0x21")][0][Bi("0x33")])}}return s}[Bi("0x1c")](){var t,e,n,o;const s=this.editor.plugins.get("ListUtils");let r=Array.from(this[Bi("0x2b")].model[Bi("0x3c")][Bi("0x14")][Bi("0x37")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Bi("0x5"),"listItem"))&&r[Bi("0x1a")](...s.getSiblingNodes(this[Bi("0x2b")][Bi("0xe")][Bi("0x3c")][Bi("0x14")][Bi("0x20")](),Bi("0x6"))),(null===(e=r[r[Bi("0x8")]-1])||void 0===e?void 0:e.is(Bi("0x5"),Bi("0x17")))&&r[Bi("0x7")](...s[Bi("0x16")](this[Bi("0x2b")][Bi("0xe")].document[Bi("0x14")].getLastPosition(),Bi("0x2e"))),r=[...new Set(r)],(null===(o=null===(n=this[Bi("0x2b")].model[Bi("0x3c")][Bi("0x14")].getFirstPosition())||void 0===n?void 0:n[Bi("0x2")])||void 0===o?void 0:o.is(Bi("0x5"),Bi("0x17")))&&(r=r.filter((t=>t.is(Bi("0x5"),Bi("0x17"))))),r}[Bi("0x1")](t){const e=this.editor[Bi("0x32")][Bi("0x29")](Bi("0x0"));let n=Array[Bi("0x39")](this.editor.model[Bi("0x3c")][Bi("0x14")][Bi("0x37")]()).filter(t)[Bi("0x9")]((t=>{const n=this[Bi("0x2b")][Bi("0xe")][Bi("0x27")](t,0);return[...e[Bi("0x16")](n,Bi("0x6")),...e[Bi("0x16")](n,Bi("0x2e"))]}))[Bi("0x18")]();return n=[...new Set(n)],n}[Bi("0xd")](t){return Bi("0x31")+this.editor[Bi("0x32")][Bi("0x29")](Bi("0x0")).getListTypeFromListStyleType(t)[Bi("0x11")]()+Bi("0x2f")+t[Bi("0x11")]()[Bi("0x25")](/-/g,"_")}}const Ui=["ELEMENT_MEDIA","for","editor","downcastDispatcher","high","createEmptyElement","div","locale","dataDowncast","get","conversion","has","options","afterInit","elementToElement","MediaEmbedEditing","showSuggestionHighlights","TrackChangesEditing","attribute:url:media","media","plugins","data","stop"];var Gi,Hi;Gi=Ui,Hi=244,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Vi extends t.Plugin{[zi("0x16")](){const t=this[zi("0xb")];if(!t[zi("0x6")][zi("0x14")](zi("0x1")))return;const e=t.plugins[zi("0x12")](zi("0x3")),n=t[zi("0x10")];e.enableCommand("mediaEmbed"),e._descriptionFactory.registerElementLabel(zi("0x5"),(t=>Yo(n,zi("0x9"),t))),t[zi("0x13")][zi("0xa")](zi("0x11"))[zi("0x0")]({model:zi("0x5"),view:(t,{writer:e,options:n})=>{if(n[zi("0x2")])return e[zi("0xe")](zi("0xf"))},converterPriority:zi("0xd")}),t[zi("0x7")][zi("0xc")].on(zi("0x4"),((t,e,n)=>{n[zi("0x15")].showSuggestionHighlights&&t[zi("0x8")]()}),{priority:zi("0xd")})}}const Wi=["has","get","afterInit","editor","MentionEditing","mention","plugins","enableCommand"];var Ki,qi;Ki=Wi,qi=138,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Wi[t-=0]};class $i extends t.Plugin{[Xi("0x0")](){const t=this[Xi("0x1")];t[Xi("0x4")][Xi("0x6")](Xi("0x2"))&&t.plugins[Xi("0x7")]("TrackChangesEditing")[Xi("0x5")](Xi("0x3"))}}const Qi=["get","locale","_descriptionFactory","registerElementLabel","TrackChangesEditing","pageBreak","plugins","ELEMENT_PAGE_BREAK","has","editor","PageBreakEditing","enableCommand"];var Ji,Zi;Ji=Qi,Zi=328,function(t){for(;--t;)Ji.push(Ji.shift())}(++Zi);const Yi=function(t,e){return Qi[t-=0]};class tx extends t.Plugin{afterInit(){const t=this[Yi("0x5")];if(!t[Yi("0x2")][Yi("0x4")](Yi("0x6")))return;t[Yi("0x2")][Yi("0x8")](Yi("0x0"))[Yi("0x7")](Yi("0x1"));const e=t[Yi("0x2")].get(Yi("0x0")),n=t[Yi("0x9")];e[Yi("0xa")][Yi("0xb")](Yi("0x1"),(t=>Yo(n,Yi("0x3"),t)))}}const ex=["blockName","markerRange","model","afterInit","from","addMarker:suggestion:insertion","getItemLabel","showSuggestionHighlights","paragraph","editor","nodeAfter","downcastDispatcher","change","insertParagraph","registerDescriptionCallback","*Change to:* %0","isLimit","options","commandName","enableCommand","locale","writer","isObject","ck-suggestion-marker--active","end","$text","type","consumable","addClass","createUIElement","includes","name","document","registerElementLabel","editing","data","isBlock","isTouching","get","checkChild","ELEMENT_PARAGRAPH","markerName","activeMarkers","consume","ck-suggestion-marker-split","insertion","selection","getSelectedBlocks","insert","plugins","parent","start","bindElementToMarker","highest","mapper","_descriptionFactory","TrackChangesEditing","schema"];var nx,ox;nx=ex,ox=379,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{[sx("0x1e")](){const t=this[sx("0x24")];if(!t[sx("0x12")].has("Paragraph"))return;const e=t[sx("0x2f")],n=t.plugins.get(sx("0x19"));n[sx("0x18")][sx("0x2")](sx("0x23"),(t=>Yo(e,sx("0x9"),t))),n[sx("0x2e")](sx("0x23"),((e,o={})=>{const s=t.model[sx("0x1")],r=o[sx("0xf")]||s[sx("0xf")],i=Array[sx("0x1f")](r[sx("0x10")]()).filter((t=>{return e=t,(n=this[sx("0x24")][sx("0x1d")].schema)[sx("0x8")](e[sx("0x13")],sx("0x23"))&&!n[sx("0x31")](e)&&sx("0x23")!=e.name;var e,n}));t[sx("0x1d")][sx("0x27")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:sx("0x23"),commandParams:[],formatGroupId:sx("0x1b")},_s(t))}))})),n[sx("0x18")][sx("0x29")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[sx("0x2d")])return{type:"format",content:Yo(e,sx("0x2a"),Yo(e,sx("0x9")))}})),n[sx("0x2e")](sx("0x28")),t[sx("0x3")][sx("0x26")].on(sx("0x20"),ix(t),{priority:sx("0x16")}),t[sx("0x4")].downcastDispatcher.on(sx("0x20"),((e,n,o)=>{o[sx("0x2c")][sx("0x22")]&&ix(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[sx("0x18")];o[sx("0x29")]((n=>{if("insertion"!==n[sx("0x35")])return;const{start:s,end:r}=n.getFirstRange();if(!s[sx("0x6")](r)||!s[sx("0x25")])return;const i=t[sx("0x1d")][sx("0x1a")],x=s[sx("0x25")];return i[sx("0x5")](x)&&!i[sx("0x2b")](x)&&i.checkChild(x,"$text")?{type:sx("0xe"),content:Yo(e,"*Insert:* %0",o[sx("0x21")](x,1))}:void 0}))}}function ix(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[sx("0x12")][sx("0x7")](sx("0x19")),i=o.markerRange[sx("0x14")],x=o.markerRange[sx("0x33")],a=t[sx("0x1d")].schema;if(!i.isTouching(x)||!i[sx("0x25")])return;const c=i[sx("0x25")];if(a[sx("0x5")](c)&&!a[sx("0x2b")](c)&&a[sx("0x8")](c,sx("0x34"))){if(!s[sx("0x36")][sx("0xc")](o[sx("0x1c")],n[sx("0x0")]))return;const t=s[sx("0x30")][sx("0x38")]("span",{class:sx("0xd")}),i=s.mapper.toViewPosition(x);e&&r[sx("0xb")][sx("0x39")](o.markerName)&&s[sx("0x30")][sx("0x37")](sx("0x32"),t),s[sx("0x30")][sx("0x11")](i,t),s[sx("0x17")][sx("0x15")](t,o[sx("0xa")])}}}const xx=["model","afterInit","*Remove all formatting*","removeFormat","plugins","commandName","isFormatting","RemoveFormatEditing","isCollapsed","editor","locale","markInlineFormat","TrackChangesEditing","document","getAttributeProperties","registerDescriptionCallback","createRangeOn","enableCommand","format","change","selection","has","getItems"];var ax,cx;ax=xx,cx=205,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class dx extends t.Plugin{[lx("0x3")](){const t=this[lx("0xb")];if(!t[lx("0x6")][lx("0x0")](lx("0x9")))return;const e=t.plugins.get(lx("0xe"));e[lx("0x13")](lx("0x5"),(n=>{const o=t[lx("0x2")][lx("0xf")][lx("0x16")];o[lx("0xa")]?n():t.model[lx("0x15")]((()=>{const n=Array.from(o.getRanges());for(const o of n)for(const n of o[lx("0x1")]())ux(n,t[lx("0x2")].schema)&&e[lx("0xd")](t[lx("0x2")][lx("0x12")](n),{commandName:lx("0x5"),commandParams:[]})}))})),e._descriptionFactory[lx("0x11")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[lx("0x7")])return{type:lx("0x14"),content:Yo(t[lx("0xc")],lx("0x4"))}}))}}function ux(t,e){for(const[n]of t.getAttributes()){const t=e[lx("0x10")](n);if(t&&t[lx("0x8")])return!0}return!1}const gx=["has","trackChanges","enableCommand","plugins","TrackChangesEditing","RestrictedEditingModeEditing","discardSuggestion","acceptSuggestion","acceptSelectedSuggestions","afterInit","get","goToPreviousRestrictedEditingException","acceptAllSuggestions"];var mx,fx;mx=gx,fx=170,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0x8")](){const t=this.editor;if(!t.plugins[hx("0xc")]("RestrictedEditingModeEditing"))return;const e=t[hx("0x2")][hx("0x9")](hx("0x3"));e.enableCommand(hx("0xa")),e.enableCommand("goToNextRestrictedEditingException");const n=t[hx("0x2")][hx("0x9")](hx("0x4"));n[hx("0x1")](hx("0x0")),n.enableCommand(hx("0x6")),n.enableCommand(hx("0x5")),n[hx("0x1")](hx("0xb")),n.enableCommand("discardAllSuggestions"),n[hx("0x1")](hx("0x7")),n[hx("0x1")]("discardSelectedSuggestions")}}const bx=["insert","high","get","includes","bindElementToMarker","createPositionBefore","writer","ELEMENT_LINE_BREAK","locale","deletion","init","data","element","model","consumable","toViewPosition","ck-suggestion-marker-","markerRange","TrackChangesEditing","split","activeMarkers","softBreak","enableCommand","createUIElement","markerName","span","mapper","merge","ck-suggestion-marker--active","editor","options","registerElementLabel","requires","plugins","addClass","addMarker:suggestion:deletion","name","addMarker:suggestion","downcastDispatcher","addMarker:suggestion:insertion","test"];var Ex,_x;Ex=bx,_x=477,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const Tx=function(t,e){return bx[t-=0]};class Cx extends t.Plugin{static get[Tx("0x6")](){return[xr.ShiftEnter]}[Tx("0x19")](){const t=this[Tx("0x3")],e=t[Tx("0x7")].get(Tx("0x21"));e[Tx("0x25")]("shiftEnter"),t.editing[Tx("0xc")].on(Tx("0xd"),yx(t),{priority:Tx("0x10")}),t.editing[Tx("0xc")].on(Tx("0x9"),yx(t),{priority:Tx("0x10")}),t[Tx("0x1a")].downcastDispatcher.on(Tx("0xb"),((e,n,o)=>{o[Tx("0x4")].showSuggestionHighlights&&yx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[Tx("0x5")](Tx("0x24"),(e=>Yo(t[Tx("0x17")],Tx("0x16"),e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Tx("0x11")]("TrackChangesEditing");if(!s[Tx("0x1d")][Tx("0xe")](o[Tx("0x20")],n[Tx("0xa")]))return;const i=t[Tx("0x1c")];for(const t of o[Tx("0x20")].getItems()){if(!t.is(Tx("0x1b"),Tx("0x24")))continue;const n=Tx("0x18")==o[Tx("0x27")][Tx("0x22")](":")[1]?Tx("0x1"):Tx("0x22"),x=s[Tx("0x15")][Tx("0x26")](Tx("0x28"),{class:Tx("0x1f")+n}),a=s[Tx("0x0")][Tx("0x1e")](i[Tx("0x14")](t));e&&r[Tx("0x23")][Tx("0x12")](o[Tx("0x27")])&&s.writer[Tx("0x8")](Tx("0x2"),x),s[Tx("0x15")][Tx("0xf")](a,x),s[Tx("0x0")][Tx("0x13")](x,o[Tx("0x27")])}}}const kx=["registerDescriptionCallback","selection","format","plugins","isCollapsed","FORMAT_RESTRICTED_ENABLED","markInlineFormat","from","document","TrackChangesEditing","change","get","_descriptionFactory","commandParams","forceValue","model","locale","enableCommand","FORMAT_RESTRICTED_DISABLED","afterInit","editor","has","commandName","getRanges"];var Ax,vx;Ax=kx,vx=179,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("0x9")],e=t[Rx("0x4")],n=t[Rx("0x5")];if(!t[Rx("0x10")][Rx("0xa")]("StandardEditingModeEditing"))return;const o=t[Rx("0x10")][Rx("0x0")](Rx("0x16")),s="restrictedEditingException",r=t.commands[Rx("0x0")](s);o[Rx("0x6")](s,((t,n={})=>{const i=e[Rx("0x15")][Rx("0xe")];if(i[Rx("0x11")])return void t(n);const x=void 0!==n[Rx("0x3")]?n.forceValue:!r.value;e[Rx("0x17")]((()=>{const t=Array[Rx("0x14")](i[Rx("0xc")]());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0x13")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0x1")][Rx("0xd")]((t=>{const{data:e}=t;if(e&&e[Rx("0xb")]==s)return e[Rx("0x2")][0][Rx("0x3")]?{type:"format",content:Yo(n,Rx("0x12"))}:{type:Rx("0xf"),content:Yo(n,Rx("0x7"))}}))}}const Ix=["locale","markInlineFormat","has","toLowerCase","afterInit","getAncestors","block","commandParams","style.definitions","TrackChangesEditing","value","styleName","Style","markBlockFormat","change","DataSchema","_getStyleDefinition","model","includes","normalizeConfig","plugins","selection","getDefinitionsForView","inline","push","commands","modelElements","isBlock","*Remove format:* %0","classes","*Format:* %0","getRanges","registerDescriptionCallback","createRangeOn","getAttribute","format","get","style:","isCollapsed","add","commandName","name","config","find","style","_getRangesWithClasses","editor","every","from"];var Lx,Nx;Lx=Ix,Nx=126,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{[wx("0x19")](){const t=this[wx("0x12")];if(!t.plugins[wx("0x17")](wx("0x21")))return;const e=t[wx("0x2e")][wx("0x8")](wx("0x10")),n=t[wx("0x29")][wx("0x8")](wx("0x1e")),o=t[wx("0x15")],s=t[wx("0x29")][wx("0x8")](wx("0x24")),r=t[wx("0x29")][wx("0x8")]("StyleUtils")[wx("0x28")](s,t[wx("0xe")][wx("0x8")](wx("0x1d")));n.enableCommand(wx("0x10"),((o,{styleName:i})=>{const x=t[wx("0x26")].document[wx("0x2a")],a=this._getStyleDefinition(i,r);if(!a)return;if(!e.enabledStyles[wx("0x27")](i))return;if(x[wx("0xa")]&&!a[wx("0x30")])return void o({styleName:i});const c=!e[wx("0x1f")].includes(a[wx("0xd")]);if(a[wx("0x30")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[wx("0x1a")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[wx("0x27")](o[wx("0xd")])){n[wx("0xb")](o);break}}return n}(x.getSelectedBlocks(),a[wx("0x2f")]);t[wx("0x26")][wx("0x23")]((()=>{for(const t of e)n[wx("0x22")](t,{commandName:wx("0x10"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:wx("0x9")+i})}))}else{let e=Array[wx("0x14")](x[wx("0x3")]());if(!c){const n=Array[wx("0x14")](s[wx("0x2b")](a.element,!1))[0][wx("0x26")],o=[];for(const s of e){const e=this[wx("0x11")](t[wx("0x26")],s,a[wx("0x1")],n);o[wx("0x2d")](...e)}e=o}t.model[wx("0x23")]((()=>{for(const t of e)n[wx("0x16")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory[wx("0x4")]((t=>{const{data:e}=t;if(e&&"style"===e[wx("0xc")])return e[wx("0x1c")][0].forceValue?{type:"format",content:Yo(o,wx("0x2"),e[wx("0x1c")][0][wx("0x20")][wx("0x18")]())}:{type:wx("0x7"),content:Yo(o,wx("0x0"),e.commandParams[0][wx("0x20")][wx("0x18")]())}}))}[wx("0x25")](t,e){let n=e[wx("0x1b")][wx("0xf")]((e=>e[wx("0xd")]===t));return n||(n=e[wx("0x2c")][wx("0xf")]((e=>e[wx("0xd")]===t))),n}[wx("0x11")](t,e,n,o){const s=[];for(const r of e.getItems()){const e=r[wx("0x6")](o);e&&n[wx("0x13")]((t=>e[wx("0x1")][wx("0x27")](t)))&&s[wx("0x2d")](t[wx("0x5")](r))}return s}}const Ox=["tableRow","push","insertTableRowAbove","substr","values","change:data","low","removeTableColumn","isEqual","isTouching","selectTableRow","last","plugins","data","MAX_SAFE_INTEGER","insert","model","accept","_descriptionFactory","$graveyard","change","$textProxy","insertTableColumnRight","from","getContainedElement","order","isIntersectingWithRange","addRange","position","toViewElement","insertTable","max","map","length","oldRange","*Insert:* %0","has","maxColumn","element","item","includes","cell","left","mapper","suggestion","startsWith","getChangedMarkers","some","insertTableColumnLeft","getColumnIndexes","above","tableCell","createRangeOn","start","downcastDispatcher","getCellLocation","getAttribute","_acceptFormatSuggestionCallbackFactory","registerPostFixer","batch","name","createTableWalker","nodeAfter","writer","TrackChangesEditing","getRanges","_splitMarkerName","tablePaste","registerDescriptionCallback","hasAttribute","_getCoordsForCells","_tableSuggestions","colspan","commands","getItems","MIN_SAFE_INTEGER","_getSuggestionCoords","get","TableUtils","_tablePostFixingSubtypes","execute","markMultiRangeInsertion","deletion","ELEMENT_TABLE_WITH_TEXT","enqueueChange","ELEMENT_TABLE_ROW_WITH_TEXT","findAncestor","minRow","options","first","getChildren","registerCustomCallback","getSelectionAffectedTableCells","differ","rowspan","isInContent","filter","selection","afterInit","root","span","addClass","fromRange","selectTableColumn","nodeBefore","type","getChanges","getFirstRange","createRangeIn","tableColumn","ELEMENT_TABLE_COLUMN_WITH_TEXT","table","removeClass","toLowerCase","end","join","subType","insertion","_setupColumnsRowsFixing","document","every","ELEMENT_TABLE","rootName","minColumn","detach","refresh","enableCommand","showSuggestionHighlights","discard","insertTableRowBelow","getSuggestion","setSelection","*Remove:* %0","getRowIndexes","editor","removeTableRow","_suggestionFactory","classes"];var Fx,Px;Fx=Ox,Px=484,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("0x9")]=[Dx("0x44"),Dx("0x27")],this[Dx("0x1")]=new Set}[Dx("0x1c")](){const t=this[Dx("0x40")],e=t.model[Dx("0x31")].selection;if(!t[Dx("0x50")][Dx("0x68")]("TableEditing"))return;const n=t.locale,o=t[Dx("0x50")].get(Dx("0x84")),s=t[Dx("0x50")][Dx("0x7")](Dx("0x8"));o[Dx("0x56")].registerElementLabel(Dx("0x29"),(t=>Yo(n,Dx("0x33"),t))),this[Dx("0x30")](),o[Dx("0x38")](Dx("0x62")),o.enableCommand(Dx("0x4e")),o.enableCommand(Dx("0x21"));for(const n of[Dx("0x46"),Dx("0x3b")]){const r=t[Dx("0x3")].get(n);o[Dx("0x38")](n,(n=>{t.model.change((t=>{n();const i=Dx("0x76")===r.order,x=s[Dx("0x16")](e),a=s[Dx("0x3f")](x),c=i?a[Dx("0x13")]-1:a[Dx("0x4f")]+1,l=x[0].findAncestor(Dx("0x29")),d=s[Dx("0x81")](l,{startRow:c,endRow:c}),u=Array[Dx("0x5b")](d).map((e=>t[Dx("0x78")](e.cell)));o[Dx("0xb")](u,Dx("0x44"))}))}))}for(const n of[Dx("0x74"),Dx("0x5a")]){const r=t[Dx("0x3")][Dx("0x7")](n);o[Dx("0x38")](n,(n=>{t[Dx("0x54")][Dx("0x58")]((t=>{n();const i=Dx("0x6e")===r[Dx("0x5d")],x=s[Dx("0x16")](e),a=s[Dx("0x75")](x),c=i?a[Dx("0x13")]-1:a[Dx("0x4f")]+1,l=x[0].findAncestor(Dx("0x29")),d=s[Dx("0x81")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Dx("0x5b")](d)[Dx("0x64")]((e=>t[Dx("0x78")](e[Dx("0x6d")])));o[Dx("0xb")](u,Dx("0x27"))}))}))}for(const n of["removeTableRow",Dx("0x4b")]){const r=n[Dx("0x47")](11),i=r.toLowerCase(),x=i.substr(0,3)+Dx("0x1e"),a=Dx("0x29")+r,c="min"+r,l=Dx("0x63")+r;o[Dx("0x38")](n,(()=>{t[Dx("0x54")][Dx("0x58")]((t=>{const r=s.getSelectionAffectedTableCells(e),d=r[0][Dx("0x10")]("table");let u;if(Dx("0x41")==n){const t=s[Dx("0x3f")](r);u={startRow:t[Dx("0x13")],endRow:t.last,includeAllSlots:!0}}else{const t=s[Dx("0x75")](r);u={startColumn:t.first,endColumn:t[Dx("0x4f")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[Dx("0x5b")](g).map((({cell:t})=>t)),f=jx(m.filter((t=>t[Dx("0x89")](x)))),h=jx(m[Dx("0x1a")]((t=>!t[Dx("0x89")](x))))[Dx("0x64")]((e=>t[Dx("0x78")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Dx("0x44")==p.subType||Dx("0x27")==p[Dx("0x2e")])){const e=this[Dx("0x6")](p);for(const n of f){const o=t.createRangeOn(n),r=s[Dx("0x7b")](n),a=n.getAttribute(x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Dx("0x5f")](o)}}}))}))}function r(n){const o=Array[Dx("0x5b")](e[Dx("0x85")]())[Dx("0x64")]((t=>i.LiveRange[Dx("0x20")](t)));t[Dx("0x54")][Dx("0x58")]((e=>{const s=e[Dx("0x7f")];n=n[Dx("0x1a")]((t=>Dx("0x57")!=t.root.rootName)),e[Dx("0x3d")](n),t[Dx("0x3")][Dx("0x7")](Dx("0x41"))[Dx("0x37")](),t[Dx("0xa")](Dx("0x41"),{forceDefaultExecution:!0}),t[Dx("0x54")][Dx("0xe")]((()=>{t[Dx("0x54")][Dx("0xe")](s,(t=>{const e=o[Dx("0x1a")]((t=>Dx("0x57")!=t[Dx("0x1d")].rootName));e[Dx("0x65")]>0&&t[Dx("0x3d")](e);for(const t of o)t[Dx("0x36")]()}))}))}))}function a(n){t.model.change((o=>{const s=Array[Dx("0x5b")](e[Dx("0x85")]()).map((t=>i.LiveRange[Dx("0x20")](t))),r=[];for(const t of n)for(const e of t[Dx("0x4")]({shallow:!0}))r[Dx("0x45")](e);for(const e of r)"$graveyard"!=e[Dx("0x1d")][Dx("0x34")]&&(o[Dx("0x3d")](o.createPositionAt(e,0)),t[Dx("0x3")][Dx("0x7")](Dx("0x4b"))[Dx("0x37")](),t[Dx("0xa")](Dx("0x4b"),{forceDefaultExecution:!0}));const x=s[Dx("0x1a")]((t=>Dx("0x57")!=t[Dx("0x1d")][Dx("0x34")]));x.length>0&&o[Dx("0x3d")](x);for(const t of s)t.detach()}))}function c(t,e){return e[Dx("0x32")]((e=>t[Dx("0x73")]((t=>t[Dx("0x2c")][Dx("0x4c")](e.start)||e.end[Dx("0x4c")](t[Dx("0x79")])))))}function l(t,e){return t[Dx("0x73")]((t=>e[Dx("0x73")]((e=>t[Dx("0x2c")][Dx("0x4d")](e[Dx("0x79")])))))}t[Dx("0x51")][Dx("0x7a")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Dx("0x12")][Dx("0x39")])return;const o=e[Dx("0x6b")];if(!o)return;const s=n[Dx("0x6f")][Dx("0x61")](o);function r(t){return Array.isArray(t)?t:[t]}s&&Dx("0x77")===o.name&&(0,x.setHighlightHandling)(s,n[Dx("0x83")],((t,e,n)=>n[Dx("0x1f")](r(e[Dx("0x43")]),t)),((t,e,n)=>n[Dx("0x2a")](r(e.classes),t)))}),{priority:"highest"}),o[Dx("0x56")][Dx("0x88")]((t=>{if(Dx("0x2f")!=t[Dx("0x23")]&&Dx("0xc")!=t[Dx("0x23")])return;const e=t[Dx("0x5c")]();if(null!=e&&e.is(Dx("0x6a"),Dx("0x29"))){if(Dx("0x2f")==t[Dx("0x23")]){const e=t[Dx("0x4")]()[Dx("0x1a")]((t=>t.is("$textProxy")))[Dx("0x64")]((t=>t[Dx("0x51")]));if(e.length)return{type:Dx("0x2f"),content:Yo(n,Dx("0x67"),Yo(n,Dx("0xd"),'"'+e.join(" ")+'"'))}}if(Dx("0xc")==t[Dx("0x23")]){const e=t[Dx("0x4")]()[Dx("0x1a")]((t=>t.is(Dx("0x59"))))[Dx("0x64")]((t=>t[Dx("0x51")]));if(e[Dx("0x65")])return{type:Dx("0xc"),content:Yo(n,Dx("0x3e"),Yo(n,Dx("0xd"),'"'+e[Dx("0x2d")](" ")+'"'))}}}})),o[Dx("0x56")].registerDescriptionCallback((t=>{if("tableRow"==t[Dx("0x2e")]){const e=t[Dx("0x4")]()[Dx("0x1a")]((t=>t.is(Dx("0x59"))))[Dx("0x64")]((t=>t[Dx("0x51")])),o=this[Dx("0x6")](t),s=o.maxRow-o[Dx("0x11")]+1;if("insertion"==t[Dx("0x23")])return e.length?{type:"insertion",content:Yo(n,Dx("0x67"),Yo(n,Dx("0xf"),[s,'"'+e[Dx("0x2d")](" ")+'"']))}:{type:Dx("0x2f"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_ROW",s))};if(Dx("0xc")==t.type)return e[Dx("0x65")]?{type:Dx("0xc"),content:Yo(n,Dx("0x3e"),Yo(n,Dx("0xf"),[s,'"'+e.join(" ")+'"']))}:{type:Dx("0xc"),content:Yo(n,Dx("0x3e"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Dx("0x27")==t.subType){const e=t[Dx("0x4")]().filter((t=>t.is(Dx("0x59"))))[Dx("0x64")]((t=>t.data)),o=this._getSuggestionCoords(t),s=o[Dx("0x69")]-o[Dx("0x35")]+1;if(Dx("0x2f")==t[Dx("0x23")])return e[Dx("0x65")]?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x28"),[s,'"'+e[Dx("0x2d")](" ")+'"']))}:{type:Dx("0x2f"),content:Yo(n,Dx("0x67"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(Dx("0xc")==t[Dx("0x23")])return e.length?{type:Dx("0xc"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Dx("0x2d")](" ")+'"']))}:{type:Dx("0xc"),content:Yo(n,Dx("0x3e"),Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o[Dx("0x42")][Dx("0x15")](Dx("0x2f"),Dx("0x44"),Dx("0x3a"),r),o[Dx("0x42")][Dx("0x15")]("deletion",Dx("0x44"),Dx("0x55"),r),o[Dx("0x42")][Dx("0x15")](Dx("0x2f"),Dx("0x27"),Dx("0x3a"),a),o[Dx("0x42")][Dx("0x15")](Dx("0xc"),Dx("0x27"),Dx("0x55"),a),o._suggestionFactory[Dx("0x15")](Dx("0x2f"),"tableColumn",Dx("0x2d"),c),o[Dx("0x42")][Dx("0x15")](Dx("0xc"),Dx("0x27"),Dx("0x2d"),c),o[Dx("0x42")].registerCustomCallback(Dx("0x2f"),Dx("0x44"),Dx("0x2d"),l),o._suggestionFactory.registerCustomCallback(Dx("0xc"),Dx("0x44"),Dx("0x2d"),l)}[Dx("0x7d")](){const t=this[Dx("0x40")],e=t[Dx("0x54")][Dx("0x31")][Dx("0x1b")];return(n,o)=>{t[Dx("0x54")][Dx("0x58")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Dx("0x2c")][Dx("0x22")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Dx("0x79")][Dx("0x82")]);const c=s[Dx("0x26")](a);if(Dx("0x57")==c[Dx("0x1d")][Dx("0x34")])return;const l=Array[Dx("0x5b")](e[Dx("0x85")]())[Dx("0x64")]((t=>i.LiveRange[Dx("0x20")](t)));s[Dx("0x3d")](c),t.commands[Dx("0x7")](r)[Dx("0x37")](),x[Dx("0x45")]({forceDefaultExecution:!0}),t[Dx("0xa")](r,...x);const d=l[Dx("0x1a")]((t=>Dx("0x57")!=t[Dx("0x1d")][Dx("0x34")]));d[Dx("0x65")]>0&&s[Dx("0x3d")](d);for(const t of l)t[Dx("0x36")]()}))}}[Dx("0x0")](t){const e=this[Dx("0x40")][Dx("0x50")].get(Dx("0x8"));let n=Number[Dx("0x52")],o=Number[Dx("0x5")],s=Number.MAX_SAFE_INTEGER,r=Number[Dx("0x5")];for(const i of t){if("$graveyard"==i[Dx("0x1d")][Dx("0x34")])continue;const{row:t,column:x}=e[Dx("0x7b")](i),a=i[Dx("0x89")]("rowspan")?i.getAttribute(Dx("0x18"))-1:0,c=i.hasAttribute(Dx("0x2"))?i[Dx("0x7c")](Dx("0x2"))-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("0x30")](){const t=this.editor,e=t.plugins[Dx("0x7")](Dx("0x84")),n=t.plugins[Dx("0x7")](Dx("0x8"));t.model[Dx("0x31")].on(Dx("0x49"),(()=>{const n=Array[Dx("0x5b")](t.model[Dx("0x31")].differ[Dx("0x72")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Dx("0x86")](t);if(Dx("0x70")!=n)continue;if(null!=o[Dx("0x66")])continue;const i=e[Dx("0x3c")](s);this[Dx("0x9")][Dx("0x6c")](r)&&this[Dx("0x1")].add(i)}}),{priority:Dx("0x4a")});const o=(t,e)=>{let o=!1;const s=e[Dx("0x78")](t),r=t.findAncestor(Dx("0x29")),i=n.getCellLocation(t);for(const e of this[Dx("0x1")]){const n=e.subType,x=n[Dx("0x71")](Dx("0x87")),a=n[Dx("0x47")](x?10:5),c=a[Dx("0x2b")](),l=c[Dx("0x47")](0,3)+"span",d="min"+a,u="max"+a;if(!e[Dx("0x19")])continue;if(r!=e[Dx("0x25")]().start[Dx("0x10")](Dx("0x29")))continue;if(e[Dx("0x5e")](s))continue;const g=t.hasAttribute(l)?t[Dx("0x7c")](l)-1:0,m=this[Dx("0x6")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Dx("0x5f")](s),o=!0)}return o};t[Dx("0x54")][Dx("0x31")][Dx("0x7e")]((e=>{let n=!1;for(const s of t.model[Dx("0x31")][Dx("0x17")][Dx("0x24")]())if(Dx("0x53")==s[Dx("0x23")])if(Dx("0x44")==s[Dx("0x80")])for(const t of s[Dx("0x60")][Dx("0x82")][Dx("0x14")]())n=n||o(t,e);else Dx("0x77")==s[Dx("0x80")]&&(n=n||o(s.position[Dx("0x82")],e));return n}))}[Dx("0x6")](t){return this[Dx("0x0")](t.getRanges().map((t=>t[Dx("0x79")][Dx("0x82")])))}}function jx(t){return Array[Dx("0x5b")](new Set(t)[Dx("0x48")]())}const Ux=["_areSelectedCellsMergable","table","plugins","registerDescriptionCallback","direction","length","editor","TableUtils","setSelection","model","return","$graveyard","getRanges","markMultiRangeBlockFormat","accept","from","_acceptFormatSuggestionCallbackFactory","createRangeOn","find","execute","_tablePostFixingSubtypes","horizontally","registerCustomCallback","createTableWalker","splitTableCellHorizontally","format","findAncestor","document","markBlockFormat","commandName","commands","_descriptionFactory","mergeTableCellUp","add","selection","cell","afterInit","_isForcedDefaultExecutionBlock","fromRange","mergeTableCellLeft","getCellLocation","has","tableCell","splitTableCellVertically","type","root","size","_areMergableCells","containsRange","enableCommand","set:isEnabled","rootName","value","_suggestionFactory","isEnabled","getAncestors","forceDefaultExecution","locale","author","element","getFirstPosition","stop","getSelectionAffectedTableCells","mergeTableCells","TableEditing","refresh","TrackChangesEditing","getSuggestions","get","*Split cell:* horizontally","mergeTableCellRight","mergeTableCellDown","change","map"];var Gx,Hx;Gx=Ux,Hx=171,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Vx extends t.Plugin{static get requires(){return[Bx]}[zx("0xd")](){const t=this[zx("0x39")],e=t[zx("0x3c")][zx("0x4")][zx("0xb")],n=t[zx("0x22")];if(!t[zx("0x35")].has(zx("0x29")))return;const o=t.plugins[zx("0x2d")](zx("0x2b")),s=t[zx("0x35")][zx("0x2d")](zx("0x3a")),r=t[zx("0x35")][zx("0x2d")](Bx);r[zx("0x47")].push(zx("0x28")),o[zx("0x1a")](zx("0x28"),(()=>{const e=s[zx("0x27")](t[zx("0x3c")][zx("0x4")].selection);t[zx("0x3c")][zx("0x31")]((()=>{o[zx("0x40")](e,{commandName:"mergeTableCells",commandParams:[]},[],zx("0x28"))}))})),t.commands.get(zx("0x28")).on(zx("0x46"),((e,n)=>{t[zx("0x7")][zx("0x2d")]("trackChanges").value&&(n.length>0&&n[n.length-1]&&n[n[zx("0x38")]-1][zx("0x21")]||o[zx("0xe")]||this[zx("0x33")]()||e[zx("0x26")]())}),{priority:"highest"});for(const e of[zx("0x9"),zx("0x2f"),"mergeTableCellDown",zx("0x10")]){const n=t[zx("0x7")][zx("0x2d")](e);o[zx("0x1a")](e,(()=>{const e=t[zx("0x3c")][zx("0x4")][zx("0xb")].getFirstPosition()[zx("0x20")]()[zx("0x45")]((t=>t.is(zx("0x24"),zx("0x13")))),s=n.value;t[zx("0x3c")][zx("0x31")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:zx("0x28"),commandParams:[]},[],zx("0x28"))}))}))}for(const e of[zx("0x14"),zx("0x1")]){const n=t[zx("0x7")][zx("0x2d")](e);o.enableCommand(e,(()=>{const r=s.getSelectionAffectedTableCells(t[zx("0x3c")][zx("0x4")][zx("0xb")])[0],i=r[zx("0x3")](zx("0x34")),{column:x,row:a}=s[zx("0x11")](r);let c=[];if(zx("0x48")==n[zx("0x37")]){const t=s[zx("0x0")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[zx("0x42")](t).map((t=>t[zx("0xc")]))}else{const t=s[zx("0x0")](i,{column:x,includeAllSlots:!0});c=Array[zx("0x42")](t)[zx("0x32")]((t=>t[zx("0xc")]))}t[zx("0x3c")][zx("0x31")]((t=>{o[zx("0x5")](t[zx("0x44")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[zx("0x8")][zx("0x36")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[zx("0x6")]?{type:zx("0x2"),content:Yo(n,"*Merge cells*")}:void 0})),o._descriptionFactory[zx("0x36")]((t=>{const{data:e}=t;if(e)return zx("0x14")==e[zx("0x6")]?{type:zx("0x2"),content:Yo(n,"*Split cell:* vertically")}:"splitTableCellHorizontally"==e[zx("0x6")]?{type:"format",content:Yo(n,zx("0x2e"))}:void 0}));const x=r[zx("0x43")]();for(const t of["mergeTableCellUp",zx("0x2f"),"mergeTableCellDown",zx("0x10")])o[zx("0x1e")].registerCustomCallback("formatBlock",t,zx("0x41"),x);for(const t of[zx("0x14"),zx("0x1")])o[zx("0x1e")][zx("0x49")]("formatBlock",t,zx("0x41"),x);o._suggestionFactory[zx("0x49")]("formatBlock",zx("0x28"),"accept",(n=>{t[zx("0x3c")][zx("0x31")]((o=>{const s=Array[zx("0x42")](e[zx("0x3f")]())[zx("0x32")]((t=>i.LiveRange[zx("0xf")](t)));o[zx("0x3b")](n),t[zx("0x7")][zx("0x2d")]("mergeTableCells")[zx("0x2a")](),t[zx("0x46")](zx("0x28"),{forceDefaultExecution:!0});const r=s.filter((t=>zx("0x3e")!=t[zx("0x16")][zx("0x1c")]));r[zx("0x38")]>0&&o[zx("0x3b")](r);for(const t of s)t.detach()}))}));for(const e of["mergeTableCellUp",zx("0x30"),zx("0x10"),"mergeTableCellRight"]){const n=t.commands[zx("0x2d")](e);n.on(zx("0x1b"),((e,o,s)=>{if(s){const o=t.model.document[zx("0xb")][zx("0x25")]()[zx("0x20")]()[zx("0x45")]((t=>t.is(zx("0x24"),zx("0x13"))));this._areMergableCells(n[zx("0x1d")],o)||(e[zx("0x3d")]=!1,e[zx("0x26")]())}}),{priority:"low"})}}[zx("0x33")](){const t=this[zx("0x39")].commands.get("mergeTableCells"),e=this.editor.plugins[zx("0x2d")](zx("0x3a"));if(!t[zx("0x1f")])return!1;const n=e[zx("0x27")](this[zx("0x39")][zx("0x3c")][zx("0x4")][zx("0xb")]);for(const t of n)for(const e of n)if(t!=e&&!this[zx("0x18")](t,e))return!1;return!0}[zx("0x18")](t,e){const n=this[zx("0x39")][zx("0x35")][zx("0x2d")](zx("0x2b")),o=this[zx("0x39")].model[zx("0x44")](t),s=this[zx("0x39")][zx("0x3c")].createRangeOn(e),r=new Set,i=new Set;for(const t of n[zx("0x2c")]())if(("insertion"==t[zx("0x15")]||"deletion"==t.type||"mergeTableCells"==t.subType)&&t.isInContent)for(const e of t[zx("0x3f")]())e[zx("0x19")](o,!0)&&r.add(t[zx("0x15")]+":"+t.author.id),e[zx("0x19")](s,!0)&&i[zx("0xa")](t[zx("0x15")]+":"+t[zx("0x23")].id);if(r[zx("0x17")]!=i[zx("0x17")])return!1;for(const t of r)if(!i[zx("0x12")](t))return!1;return!0}}const Wx=["removeClass","showSuggestionHighlights","addMarker:suggestion","editor","createPositionBefore","getChild","getCellLocation","getAttribute","writer","start","table","first","removeAttribute","nodeBefore","from","setAttribute","commandName","TrackChangesEditing","bindElementToMarker","findAncestor","forceValue","unbindElementFromMarkerName","createTableWalker","markBlockFormat","data","item","change","FORMAT_HEADER_COLUMN","downcastDispatcher","*Format:* %0","FORMAT_REGULAR_COLUMN","consume","_splitMarkerName","getSelectionAffectedTableCells","format","get","includes","getColumnIndexes","getRowIndexes","isBefore","requires","highest","last","commandParams","createRange","setTableRowHeader","markerName","model","enableCommand","FORMAT_HEADER_ROW","registerDescriptionCallback","removeMarker:suggestion","_suggestionFactory","value","headingRows","_descriptionFactory","data-suggestion","parent","mapper","end","accept","getSuggestion","markerRange","options","createPositionAfter","editing","registerCustomCallback","activeMarkers","stop","addClass","ck-suggestion-marker--active","childCount","markerNameToElements","selection","_acceptFormatSuggestionCallbackFactory","setTableColumnHeader","cell","nodeAfter","plugins","ck-suggestion-marker-","TableUtils"];var Kx,qx;Kx=Wx,qx=207,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Wx[t-=0]};class $x extends t.Plugin{static get[Xx("0x4c")](){return[Bx]}afterInit(){const t=this[Xx("0x27")];if(!t.plugins.has("TableEditing"))return;const e=t.locale,n=t[Xx("0x21")][Xx("0x47")](Xx("0x35")),o=t.plugins[Xx("0x47")]("TableUtils"),s=t[Xx("0x21")][Xx("0x47")](Bx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Xx("0x44")](r[Xx("0x1")]),c=n.getSuggestion(a);if(!c[Xx("0x3c")]||Xx("0x1e")!=c.data.commandName)return;if(r[Xx("0x3d")])return void s[Xx("0x17")]();if(!i.consumable[Xx("0x43")](r[Xx("0x11")],s.name))return;const l=r[Xx("0x11")][Xx("0x2d")][Xx("0x20")],d=r[Xx("0x11")][Xx("0xe")][Xx("0x31")],u=l[Xx("0xc")][Xx("0xc")],{column:g}=o[Xx("0x2a")](l),{column:m}=o[Xx("0x2a")](d);for(let s=g;s<=m;s++){const c=o[Xx("0x3a")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Xx("0x1f")],c=i.mapper.toViewElement(s);i.writer[Xx("0x18")](Xx("0x22")+x,c),e&&i[Xx("0x2c")][Xx("0x33")](Xx("0xb"),a,c),i[Xx("0xd")][Xx("0x36")](c,r[Xx("0x1")]),t&&(n[Xx("0x16")][Xx("0x48")](r[Xx("0x1")])?i.writer[Xx("0x18")](Xx("0x19"),c):i[Xx("0x2c")][Xx("0x24")]("ck-suggestion-marker--active",c))}}}}n.enableCommand(Xx("0x0"),((e,s)=>{const r=o[Xx("0x45")](t[Xx("0x2")].document[Xx("0x1c")]),i=o[Xx("0x4a")](r),x=r[0][Xx("0x37")](Xx("0x2e")),a=x[Xx("0x2b")](Xx("0x9"))||0,c=s&&null!==s[Xx("0x38")]?s.forceValue:!t.commands[Xx("0x47")](Xx("0x0")).value,l=c?i[Xx("0x4e")]:i[Xx("0x2f")],d=x[Xx("0x29")](l);let u;if(c){const e=x[Xx("0x29")](a);if(d.index<e.index)return;u=t[Xx("0x2")][Xx("0x50")](t[Xx("0x2")][Xx("0x28")](e.getChild(0)),t[Xx("0x2")][Xx("0x13")](d[Xx("0x29")](d.childCount-1)))}else{const e=x[Xx("0x29")](a-1);if(!e)return;u=t[Xx("0x2")][Xx("0x50")](t.model[Xx("0x28")](d[Xx("0x29")](0)),t[Xx("0x2")][Xx("0x13")](e[Xx("0x29")](e[Xx("0x1a")]-1)))}t[Xx("0x2")].change((()=>{n[Xx("0x3b")](u,{commandName:Xx("0x0"),commandParams:[{forceValue:c}]},[],Xx("0x0"))}))})),n[Xx("0x3")](Xx("0x1e"),((e,o)=>{const s=t.plugins.get(Xx("0x23")),r=s[Xx("0x45")](t[Xx("0x2")].document[Xx("0x1c")]),i=s[Xx("0x49")](r),x=r[0][Xx("0x37")]("table"),a=x.getAttribute("headingColumns")||0,c=o&&null!==o.forceValue?o.forceValue:!t.commands[Xx("0x47")](Xx("0x1e"))[Xx("0x8")];let l;const d=x.getChild(0),u=c?i[Xx("0x4e")]:i.first,g=s[Xx("0x3a")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Xx("0x32")](g)[0][Xx("0x1f")];if(c){const e=d[Xx("0x29")](a);if(m[Xx("0x4b")](e))return;l=t[Xx("0x2")][Xx("0x50")](t[Xx("0x2")][Xx("0x28")](e),t[Xx("0x2")].createPositionAfter(m))}else{const e=d[Xx("0x29")](a-1);if(!e)return;l=t[Xx("0x2")].createRange(t[Xx("0x2")][Xx("0x28")](m),t[Xx("0x2")][Xx("0x13")](e))}t[Xx("0x2")][Xx("0x3e")]((()=>{n[Xx("0x3b")](l,{commandName:Xx("0x1e"),commandParams:[{forceValue:c}]},[],Xx("0x1e"))}))})),t.editing[Xx("0x40")].on(Xx("0x26"),r(),{priority:Xx("0x4d")}),t[Xx("0x3c")][Xx("0x40")].on(Xx("0x26"),((t,e,n)=>{n[Xx("0x12")][Xx("0x25")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0x4d")}),t[Xx("0x14")][Xx("0x40")].on(Xx("0x6"),((t,e,o)=>{const{type:s,id:r}=n[Xx("0x44")](e[Xx("0x1")]),i=n[Xx("0x10")](r);if(!i[Xx("0x3c")]||Xx("0x1e")!=i.data[Xx("0x34")])return;const x=o[Xx("0xd")][Xx("0x1b")](e[Xx("0x1")]);if(x)for(const t of x)o[Xx("0x2c")][Xx("0x24")](Xx("0x22")+s,t),o.writer[Xx("0x24")]("ck-suggestion-marker--active",t),o.writer[Xx("0x30")](Xx("0xb"),t),o.mapper[Xx("0x39")](t,e[Xx("0x1")])}),{priority:Xx("0x4d")}),n[Xx("0xa")][Xx("0x5")]((t=>{const{data:n}=t;if(n){if(Xx("0x0")==n.commandName){const t=n.commandParams[0][Xx("0x38")];return o(Yo(e,t?Xx("0x4"):"FORMAT_REGULAR_ROW"))}if(Xx("0x1e")==n[Xx("0x34")]){const t=n[Xx("0x4f")][0].forceValue;return o(Yo(e,Xx(t?"0x3f":"0x42")))}}function o(t){return{type:Xx("0x46"),content:Yo(e,Xx("0x41"),t)}}}));const i=s[Xx("0x1d")]();n._suggestionFactory[Xx("0x15")]("formatBlock",Xx("0x0"),Xx("0xf"),i),n[Xx("0x7")][Xx("0x15")]("formatBlock",Xx("0x1e"),Xx("0xf"),i)}}const Qx=["suggestionLoaded","dataDowncast","tableCell","reduce","content","editing","getAllAdjacentSuggestions","model","high","conversion","next","subType","tableCellBorderWidth","_getCoordsForCells","getColumnIndexes","options","tablePasteRow","endColumn","ck-suggestion-marker--active","start","getChanges","accept","editor","stop","last","tablePaste","createRangeIn","*Replace table cells*","every","rowInsertionRanges","Users","cells","type","name","getSuggestionCallback","isEqual","isEmpty","getRows","editingDowncast","elementToElement","requires","keys","getSuggestions","oldRange","rows","from","wrap","containsRange","TrackChangesEditing","ck-suggestion-marker-insertion","createElement","get","tablePasteCell","endRow","suggestionUnloaded","getRowIndexes","insertRows","has","commands","previousSibling","tableCellHorizontalAlignment","getTableIfOnlyTableInContent","getChildren","TableClipboard","removeRows","getContainedElement","some","rowInsertionIndexes","add","low","markerName","listenTo","tableCellBackgroundColor","selection","register","getAttributes","createPositionBefore","table","columns","change","_suggestionFactory","$graveyard","tableCellSuggestion","insert","markerToHighlight","updateMarker","createRange","discard","view","isInContent","_splitMarkerName","nodeAfter","_createdBatches","columnInsertionIndexes","getSuggestion","fromEntries","return","markers","tableCellPadding","forceDefaultExecution","insertColumns","fill","deletion","removeMarker","createRangeOn","previous","_descriptionFactory","suggestion:formatBlock:tablePasteCell","registerPostFixer","documentSelection","createTableWalker","insertionRanges","getShiftedBy","newRange","schema","startsWith","formatBlock","position","getRanges","attributes","move","getChild","ck-suggestion-marker","differ","paragraph","getItems","locale","map","tablePasteChainId","suggestion-td","clipboardOutput","author","entries","redo","filter","remove","deletionRanges","push","getMarkers","findAncestor","nextSibling","afterInit","insertion","showSuggestionHighlights","TableUtils","end","tablePasteColumn","join","document","removeMarkers","markerAttributes","tableCellVerticalAlignment","removeColumns","getColumns","row","markMultiRangeInsertion","find","setAttributes","set","registerCustomCallback","for","rootName","suggestion","plugins","insertContent","element","unwrap","length","activeMarkers","root","_tablePostFixingSubtypes","getRange","includes","markMultiRangeDeletion","hasSuggestion","getChangedMarkers","first"];var Jx,Zx;Jx=Qx,Zx=477,function(t){for(;--t;)Jx.push(Jx.shift())}(++Zx);const Yx=function(t,e){return Qx[t-=0]},ta=[Yx("0x42"),"tableCellBorderColor","tableCellBorderStyle",Yx("0x72"),Yx("0x1c"),Yx("0x7e"),Yx("0x98")],ea=Object[Yx("0x95")](ta[Yx("0x4")]((t=>[t,null])));class na extends t.Plugin{static get[Yx("0x5e")](){return[Bx]}[Yx("0x12")](){const t=this[Yx("0x4c")];if(!t[Yx("0x28")][Yx("0x6f")]("TableClipboard"))return;const n=t.plugins[Yx("0x69")](Yx("0x66")),o=t[Yx("0x28")].get(Yx("0x15")),s=t[Yx("0x28")].get(Bx),r=t.plugins.get(Yx("0x75"));s[Yx("0x2f")].push("tablePasteRow",Yx("0x17")),t[Yx("0x3d")][Yx("0xa8")][Yx("0x80")]("tableCellSuggestion",{allowIn:Yx("0x38"),allowContentOf:Yx("0x38"),isLimit:!0}),t[Yx("0x3f")][Yx("0x5d")]({model:"tableCellSuggestion",view:Yx("0x6")});let i=null;t.model.on(Yx("0x29"),((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Yx("0x99")]||n._isForcedDefaultExecutionBlock||this[Yx("0x4c")][Yx("0x70")].get("trackChanges").value&&function(t,e,n,o,s){if(e&&!e.is(Yx("0xa3")))return!1;const r=s[Yx("0x73")](t,n);if(!r||!sa(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n.document[Yx("0x7f")]);if(!i[Yx("0x2c")])return!1;const x=i[0].findAncestor(Yx("0x83")),a=o[Yx("0x6d")](i),c=o[Yx("0x44")](i),l={startRow:a.first,endRow:a[Yx("0x4e")],startColumn:c[Yx("0x35")],endColumn:c[Yx("0x4e")]};return 1==i[Yx("0x2c")]&&(l[Yx("0x6b")]+=o[Yx("0x5b")](r)-1,l[Yx("0x47")]+=o[Yx("0x1e")](r)-1),sa(x,l,o)}(a,c,t[Yx("0x3d")],o,r)&&(s[Yx("0x4d")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Yx("0x3d")][Yx("0x85")]((()=>{t[Yx("0x3d")][Yx("0x29")](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("0x2c")]&&n[Yx("0x20")](s,Yx("0x46"),{tablePasteChainId:o}),r[Yx("0x2c")]&&n[Yx("0x20")](r,Yx("0x17"),{tablePasteChainId:o}),a.length&&n.markMultiRangeInsertion(a,Yx("0x4f"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0x2c")]&&n[Yx("0x32")](c,Yx("0x4f"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n.markMultiRangeBlockFormat(l[Yx("0x4")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0x6a"),{tablePasteChainId:o});if(d){const e=d.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Yx("0x3d")][Yx("0x9e")](o),i=e[Yx("0x21")]((t=>t[Yx("0x30")]()[Yx("0x59")](r)));i&&n[Yx("0xe")]([i[Yx("0x57")],s])}n[Yx("0x2c")]&&d.setAttribute("markerAttributes",Object[Yx("0x95")](n))}i=null})))}),{priority:e.priorities.high+10}),t[Yx("0x28")][Yx("0x69")](Yx("0x75")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n.cell,x=o,a=oa(r),c=oa(x);t[Yx("0x96")]=r;let l=null,d=null;if(c||a)if(a&&!c){s[Yx("0xc")](r[Yx("0xaf")](0));for(const t of Array.from(x[Yx("0x74")]()))s[Yx("0x89")](t,r,Yx("0x16"));const t=i[Yx("0x79")][Yx("0x31")](n[Yx("0x1f")]),e=i[Yx("0x93")].includes(n.column);t||e||(l=s[Yx("0x50")](r))}else c&&!a&&(d=s.createRangeIn(r));else{const t=s[Yx("0x68")]("tableCellSuggestion"),e=s[Yx("0x68")](Yx("0x88"));s[Yx("0x64")](s.createRangeIn(r),e),s[Yx("0x89")](t,r,0);for(const e of Array.from(x[Yx("0x74")]()))s[Yx("0x89")](e,t,"end");l=s.createRangeOn(t),d=s[Yx("0x9e")](e)}const u=Array[Yx("0x63")](x[Yx("0x81")]()).filter((([t])=>ta[Yx("0x31")](t)));i[Yx("0x55")].push({element:r,attributes:u[Yx("0x2c")]?Object[Yx("0x95")](u):null}),l&&i[Yx("0xa5")][Yx("0xe")](l),d&&i[Yx("0xd")].push(d)}),{priority:Yx("0x3e")}),o.on(Yx("0x9a"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x84")]||1;i.columnInsertionIndexes=new Array(a).fill(x)[Yx("0x4")](((t,e)=>t+e));for(const{cell:e}of o[Yx("0xa4")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges.push(t.model[Yx("0x9e")](e))}),{priority:Yx("0x7b")}),o.on(Yx("0x6e"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x62")]||1;i[Yx("0x79")]=new Array(a)[Yx("0x9b")](x)[Yx("0x4")](((t,e)=>t+e));for(const{cell:e}of o[Yx("0xa4")](s,{startRow:x,endRow:x+a-1}))i[Yx("0x53")].push(t[Yx("0x3d")][Yx("0x9e")](e))}),{priority:Yx("0x7b")}),n[Yx("0xa0")].registerDescriptionCallback((e=>{if(e[Yx("0x41")]&&e[Yx("0x41")][Yx("0xa9")](Yx("0x4f")))return e.previous?{}:{type:Yx("0x13"),content:Yo(t[Yx("0x3")],Yx("0x51"))}}));const x=()=>!1;for(const t of[Yx("0x4f"),Yx("0x17"),Yx("0x46"),Yx("0x6a")])n[Yx("0x86")][Yx("0x24")](Yx("0x13"),t,Yx("0x18"),x),n[Yx("0x86")].registerCustomCallback("deletion",t,Yx("0x18"),x),n[Yx("0x86")][Yx("0x24")](Yx("0xaa"),t,Yx("0x18"),x);n._suggestionFactory[Yx("0x24")]("formatBlock",Yx("0x6a"),Yx("0x8d"),x),n[Yx("0x86")][Yx("0x24")](Yx("0xaa"),"tablePasteCell",Yx("0x4b"),((e,n,o)=>{const s=e[Yx("0x4")]((t=>t[Yx("0x77")]()))[Yx("0xb")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Yx("0x55")])e&&r[Yx("0x23")](t,e);else if(o&&o[Yx("0x1b")])for(const[e,n]of Object[Yx("0x9")](o[Yx("0x1b")])){const o=t[Yx("0x3d")][Yx("0x97")].get(e),s=o?o[Yx("0x30")]()[Yx("0x77")]():null;s&&r.set(s,n)}t.model[Yx("0x85")]((t=>{for(const[e,n]of r)t[Yx("0x22")]({...ea,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[Yx("0x24")](e,Yx("0x4f"),o,((s,r,i)=>{t.model[Yx("0x85")]((t=>{const x=[];for(const t of s){const e=t[Yx("0x49")][Yx("0x91")];e.is(Yx("0x2a"),"tableCellSuggestion")&&x[Yx("0xe")](e)}n[Yx("0x86")][Yx("0x58")](e,null,o)(s,r,i);for(const e of x)Yx("0x87")!=e[Yx("0x2e")][Yx("0x26")]&&t[Yx("0x2b")](e)}))}))};a(Yx("0x13"),Yx("0x4b")),a(Yx("0x13"),Yx("0x8d")),a(Yx("0x9c"),"accept"),a("deletion","discard"),n[Yx("0x86")][Yx("0x24")]("insertion","tablePasteRow","discard",(t=>{const e=t[Yx("0x4")]((t=>t[Yx("0x77")]())),n=e[0][Yx("0x10")]("table"),{minRow:r,maxRow:i}=s[Yx("0x43")](e);o[Yx("0x76")](n,{at:r,rows:i-r+1})})),n[Yx("0x86")].registerCustomCallback(Yx("0x13"),"tablePasteColumn","discard",(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0][Yx("0x10")](Yx("0x83")),{minColumn:r,maxColumn:i}=s[Yx("0x43")](e);o[Yx("0x1d")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Yx("0x41")]||!e.subType[Yx("0xa9")](Yx("0x4f")))return;const o=e[Yx("0xad")][Yx("0x5")],s=n[Yx("0x60")]()[Yx("0xb")]((t=>t.isInContent&&t[Yx("0xad")]&&t[Yx("0xad")].tablePasteChainId==o));s[Yx("0x2c")]&&e[Yx("0x3c")]()[Yx("0x2c")]!=s[Yx("0x2c")]&&s[Yx("0x39")](((t,e)=>(t[Yx("0x40")]=e,e[Yx("0x9f")]=t,e)))};function l(t,e=!0){const{id:o}=n[Yx("0x90")](t[Yx("0x7c")]),s=[Yx("0xb0"),Yx("0x67")],r=n[Yx("0x2d")][Yx("0x31")](t[Yx("0x7c")]);return r&&s[Yx("0xe")](Yx("0x48")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Yx("0x36"),c,{priority:Yx("0x3e")}),n.on(Yx("0x6c"),c,{priority:"high"}),t[Yx("0x3d")][Yx("0x19")][Yx("0xa2")]((()=>{let e=!1;const o=Array.from(t[Yx("0x3d")][Yx("0x19")].differ[Yx("0x34")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Yx("0x90")](s);if(Yx("0x27")!=o||Yx("0x9c")!=i||r[Yx("0x61")])continue;if(!n[Yx("0x33")](x))continue;const a=n[Yx("0x94")](x)[Yx("0xac")](),c=t[Yx("0x28")][Yx("0x69")](Yx("0x54")).me;for(const t of n.getSuggestions())if(t[Yx("0x8f")]&&t[Yx("0x8")]==c&&Yx("0xaa")==t.type&&Yx("0x6a")==t[Yx("0x41")]&&t[Yx("0xac")]()[Yx("0x52")]((t=>a[Yx("0x78")]((e=>e[Yx("0x65")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n.isInContent&&(n[Yx("0x8d")](),e=!0)}return e})),t[Yx("0x3d")].document.registerPostFixer((e=>{const o=t.commands[Yx("0x69")](Yx("0xa"));if(!o||!o[Yx("0x92")][Yx("0x6f")](e.batch))return!1;let s=!1;const r=t.plugins[Yx("0x69")](Yx("0x54")).me,i=t[Yx("0x3d")][Yx("0x19")][Yx("0x0")][Yx("0x4a")](),x=Array[Yx("0x63")](t.model.document[Yx("0x0")][Yx("0x34")]()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Yx("0x90")](t);return Yx("0x27")==o&&"tablePaste"==s&&i==r.id&&!e[Yx("0x61")]}));for(const t of i){if(Yx("0x89")!=t[Yx("0x56")]||Yx("0x88")!=t[Yx("0x57")]||1!=t.length)continue;const n=e[Yx("0x8c")](t[Yx("0xab")],t[Yx("0xab")][Yx("0xa6")](1));if(!x[Yx("0x21")]((({data:t})=>t[Yx("0xa7")][Yx("0x59")](n))))for(const{name:t,data:o}of x)if(n[Yx("0x65")](o[Yx("0xa7")])){e[Yx("0x8b")](t,{range:n}),s=!0;break}}return s})),t[Yx("0x3d")][Yx("0x19")][Yx("0xa2")]((e=>{let o=!1;const s=t[Yx("0x28")][Yx("0x69")](Yx("0x54")).me,r=n[Yx("0x60")]()[Yx("0xb")]((t=>t.isInContent&&t.author==s)),i=new Set,x=new Set;for(const t of r)if(Yx("0x4f")==t.subType)for(const e of t[Yx("0xf")]()){const n=e.getRange()[Yx("0x77")]();if(n)if(n.is(Yx("0x2a"),Yx("0x88"))&&oa(n)){t[Yx("0x9d")](e.name),i.add(n),o=!0;const s=n[Yx("0x11")],r=n[Yx("0x71")],a=s&&s.is(Yx("0x2a"),Yx("0x88")),c=r&&r.is(Yx("0x2a"),Yx("0x88"));a&&!i[Yx("0x6f")](s)&&x[Yx("0x7a")](s),c&&!i[Yx("0x6f")](r)&&x[Yx("0x7a")](r)}else n.is(Yx("0x2a"),Yx("0x1"))&&n[Yx("0x5a")]&&(t.removeMarker(e[Yx("0x57")]),o=!0)}else if(Yx("0x6a")==t[Yx("0x41")]){if(!t.attributes||!t[Yx("0xad")].tablePasteChainId)continue;const e=t[Yx("0xad")][Yx("0x1b")];if(e&&Object[Yx("0x5f")](e)[Yx("0x2c")])continue;const n=t[Yx("0xad")].tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e[Yx("0x41")]&&e[Yx("0x41")].startsWith(Yx("0x4f"))){if(!e[Yx("0xad")][Yx("0x5")]){i=!1;break}if(e.id!=t.id&&e[Yx("0xad")][Yx("0x5")]==n){s=!1;break}}i&&s&&(t[Yx("0x1a")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e.unwrap(t);return o})),t[Yx("0x3f")][Yx("0x25")](Yx("0x5c"))[Yx("0x8a")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:"high"}),t[Yx("0x3f")][Yx("0x25")](Yx("0x37"))[Yx("0x8a")]({model:Yx("0xa1"),view:(t,e)=>e[Yx("0x45")][Yx("0x14")]?l(t,!1):null,converterPriority:Yx("0x3e")});const d=t[Yx("0x3b")][Yx("0x8e")];this[Yx("0x7d")](d.document,Yx("0x7"),((t,e)=>{const n=[];for(const t of d[Yx("0x50")](e[Yx("0x3a")])[Yx("0x2")]())t.is(Yx("0x2a"),Yx("0x6"))&&n[Yx("0xe")](t);d[Yx("0x85")]((t=>{for(const e of n)t[Yx("0xae")](t[Yx("0x50")](e),t[Yx("0x82")](e)),t.remove(e)}))}))}}function oa(t){if(t[Yx("0x5a")])return!0;const e=t[Yx("0xaf")](0);return e.is(Yx("0x2a"),"paragraph")&&e[Yx("0x5a")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Yx("0xa4")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ra=["formatBlock","resizeColumnWidths","afterInit","getAttribute","document","tableWidth","TrackChangesEditing","resizeTable","table","commandParams","handleSuggestionDescription","change","columnWidths","editor","registerDescriptionCallback","getColumnGroupElement","get","enableCommand","_suggestionFactory","subType","accept","TableColumnResizeEditing","resizeTableWidth","bind","data","getTableColumnsWidths","Users","model","formatGroupId","plugins","discard","registerCustomCallback","handleResizeTableWidthCommand","has","*Format:* resize table"];var ia,xa;ia=ra,xa=286,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x1f")](){if(!this.editor[aa("0x17")][aa("0x1b")](aa("0xf")))return;const t=this[aa("0x7")][aa("0x17")][aa("0xa")]("TrackChangesEditing");t.enableCommand(aa("0x10"),this.handleResizeTableWidthCommand[aa("0x11")](this)),t[aa("0xb")](aa("0x1e"),this[aa("0x1a")].bind(this)),t[aa("0xc")].registerCustomCallback("formatBlock",aa("0x1"),aa("0xe"),t._suggestionFactory.getSuggestionCallback(aa("0x1d"),null,"discard")),t[aa("0xc")][aa("0x19")](aa("0x1d"),aa("0x1"),aa("0x18"),t[aa("0xc")].getSuggestionCallback("formatBlock",null,aa("0xe"))),t._descriptionFactory[aa("0x8")](this[aa("0x4")][aa("0x11")](this))}[aa("0x1a")](t,e){const n=this[aa("0x7")][aa("0x17")][aa("0xa")](aa("0x0")),o=this[aa("0x7")][aa("0x17")][aa("0xa")](aa("0xf")),s=e[aa("0x2")]||this[aa("0x7")][aa("0x15")][aa("0x21")].selection.getSelectedElement();this[aa("0x7")][aa("0x15")][aa("0x5")]((()=>{const r=o[aa("0x9")](s);let i=r?o[aa("0x13")](r):null,x=s[aa("0x20")](aa("0x22"))||null;const a=e[aa("0x22")]||x,c=e[aa("0x6")]||i,l=this[aa("0x7")][aa("0x17")][aa("0xa")](aa("0x14")).me;for(const t of n.getSuggestions()){const e=t.getContainedElement();if(aa("0x1")===t[aa("0xd")]&&e===s){t.author!==l&&t[aa("0x18")]();const e=t[aa("0x12")][aa("0x3")];x=e[0][aa("0x22")],i=e[0][aa("0x6")];break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:aa("0x10"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],"resizeTable")}))}[aa("0x4")](t){const{data:e}=t;if(e&&aa("0x1")===e[aa("0x16")]){const t=aa("0x1c");return{type:"format",content:Yo(this[aa("0x7")].locale,t)}}}}const la=["plugins","editor","insertTemplate"];var da,ua;da=la,ua=318,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{afterInit(){const t=this[ga("0x1")];t[ga("0x0")].has("Template")&&t[ga("0x0")].get("TrackChangesEditing").enableCommand(ga("0x2"))}}const fa=["plugins","insertTableOfContents","tableOfContents","commands","get","enableCommand","TrackChangesEditing","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS"];var ha,pa;ha=fa,pa=493,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.editor;if(!t[ba("0x5")][ba("0x6")]("insertTableOfContents"))return;t.plugins[ba("0x6")](ba("0x8"))[ba("0x7")](ba("0x3"));const e=t[ba("0x2")][ba("0x6")](ba("0x8")),n=t.locale;e._descriptionFactory[ba("0x0")](ba("0x4"),(t=>Yo(n,ba("0x1"),t)))}}const _a=["newRange","editor","suggestion","locale","has","TrackChangesEditing","afterInit","_descriptionFactory","model","createRange","get","plugins","registerPostFixer","schema","differ","isCollapsed","removeMarker","title-content","getChangedMarkers","start","Title","document","ELEMENT_TITLE","updateMarker","isTouching"];var Ta,Ca;Ta=_a,Ca=289,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x11")](){const t=this[ya("0xc")];if(!t[ya("0x16")][ya("0xf")](ya("0x6")))return;const e=t[ya("0x16")][ya("0x15")](ya("0x10"));e[ya("0x12")].registerElementLabel("title-content",(()=>Yo(t[ya("0xe")],ya("0x8")))),t[ya("0x13")].document[ya("0x17")]((n=>{let o=!1;const s=Array.from(t[ya("0x13")][ya("0x7")][ya("0x0")][ya("0x4")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ya("0xd")!==s||!i[ya("0xb")])continue;const x=i[ya("0xb")],a=x.end.nodeBefore;if(!a||!a.is("element",ya("0x3")))continue;if(!x.start[ya("0xa")](x.end))continue;const c=t[ya("0x13")][ya("0x18")].getNearestSelectionRange(x.end,"forward");if(c&&c[ya("0x1")]){const t=n[ya("0x14")](x[ya("0x5")],c[ya("0x5")]);t.isEqual(x)||(n[ya("0x9")](r,{range:t}),o=!0)}o||(n[ya("0x2")](r),o=!0)}return o}))}}const Aa=["editor","enableCommand","undo","plugins","get","UndoEditing","afterInit","has","TrackChangesEditing"];var va,Ra;va=Aa,Ra=110,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{[Sa("0x4")](){const t=this[Sa("0x7")],e=t[Sa("0x1")][Sa("0x2")](Sa("0x6"));t[Sa("0x1")][Sa("0x5")](Sa("0x3"))&&(e[Sa("0x8")](Sa("0x0")),e.enableCommand("redo"))}}const La=["plugins","editor","afterInit","has","requires","TableCaptionEditing","get"];var Na,wa;Na=La,wa=313,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("0x6")](){return[Bx]}[Ma("0x4")](){const t=this[Ma("0x3")];t.plugins[Ma("0x5")](Ma("0x0"))&&t[Ma("0x2")][Ma("0x1")]("TrackChangesEditing").enableCommand("toggleTableCaption")}}const Fa=["model","numbered","replace","_getTranslationKeyForListStyle","get","_getSuggestionBlocksForListStyle","from","editor","reversed","styles","*Format:* set order to reversed","startIndex","change","*Format:* set order to regular","toUpperCase","commandName","handleDescriptions","DocumentListPropertiesUtils","bind","commandParams","getSelectedBlocks","filter","*Format:* set start index to %0","has","TrackChangesEditing","handleListStyleCommand","handleListStartCommand","getListTypeFromListStyleType","listStyle","selection","markMultiRangeBlockFormat","isFirstBlockOfListItem","format","handleListReversedCommand","_LIST_","push","isListItemBlock","afterInit","type","DocumentListPropertiesEditing","getAttribute","enableCommand","registerDescriptionCallback","document","listType","_getSuggestionBlocks","ELEMENT_","DocumentListUtils","listStart","expandListBlocksToCompleteList","plugins","listReversed","config","length"];var Pa,Da;Pa=Fa,Da=235,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0x12")](){if(!this[Ba("0x2a")].plugins[Ba("0x4")](Ba("0x14")))return;const t=this[Ba("0x2a")][Ba("0x21")][Ba("0x27")]("list.properties"),e=this[Ba("0x2a")][Ba("0x1f")][Ba("0x27")](Ba("0x5"));t[Ba("0x2c")]&&e[Ba("0x16")](Ba("0x9"),this[Ba("0x6")][Ba("0x35")](this)),t[Ba("0x2b")]&&e[Ba("0x16")]("listReversed",this.handleListReversedCommand.bind(this)),t[Ba("0x2e")]&&e.enableCommand(Ba("0x1d"),this[Ba("0x7")][Ba("0x35")](this)),e._descriptionFactory[Ba("0x17")](this[Ba("0x33")][Ba("0x35")](this))}[Ba("0x6")](t,e={}){const n=this[Ba("0x2a")][Ba("0x1f")][Ba("0x27")](Ba("0x5")),o=this[Ba("0x28")]();this[Ba("0x2a")].model[Ba("0x2f")]((()=>{n[Ba("0xb")](o,{commandName:Ba("0x9"),commandParams:[{type:e.type}],formatGroupId:Ba("0x9")})}))}[Ba("0xe")](t,e={}){const n=this[Ba("0x2a")][Ba("0x1f")][Ba("0x27")](Ba("0x5")),o=this[Ba("0x2a")][Ba("0x1f")][Ba("0x27")]("DocumentListUtils"),s=this[Ba("0x1a")]((t=>o[Ba("0x11")](t)&&Ba("0x24")===t[Ba("0x15")](Ba("0x19"))));null!==s&&this.editor[Ba("0x23")][Ba("0x2f")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Ba("0x20"),commandParams:[{reversed:e[Ba("0x2b")]}],formatGroupId:Ba("0x20")})}))}handleListStartCommand(t,e={}){const n=this.editor[Ba("0x1f")][Ba("0x27")](Ba("0x5")),o=this[Ba("0x2a")][Ba("0x1f")][Ba("0x27")](Ba("0x1c")),s=this[Ba("0x1a")]((t=>o[Ba("0x11")](t)&&Ba("0x24")===t[Ba("0x15")](Ba("0x19"))));null!==s&&this[Ba("0x2a")][Ba("0x23")][Ba("0x2f")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listStart",commandParams:[{startIndex:e[Ba("0x2e")]}],formatGroupId:Ba("0x1d")})}))}[Ba("0x33")](t){const e=this.editor.locale,{data:n}=t;if(!n)return;let o,s;switch(n[Ba("0x32")]){case Ba("0x9"):o="*Change to:* %0",s={type:Ba("0xd"),content:Yo(e,o,Yo(e,this[Ba("0x26")](n[Ba("0x0")][0][Ba("0x13")])))};break;case Ba("0x20"):o=n[Ba("0x0")][0][Ba("0x2b")]?Ba("0x2d"):Ba("0x30"),s={type:"format",content:Yo(e,o)};break;case Ba("0x1d"):o=Ba("0x3"),s={type:Ba("0xd"),content:Yo(e,o,n.commandParams[0][Ba("0x2e")])}}return s}_getSuggestionBlocksForListStyle(){const t=this[Ba("0x2a")][Ba("0x1f")][Ba("0x27")](Ba("0x1c"));let e=Array[Ba("0x29")](this[Ba("0x2a")][Ba("0x23")].document[Ba("0xa")][Ba("0x1")]());return e.push(...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}[Ba("0x1a")](t){const e=this[Ba("0x2a")][Ba("0x1f")].get(Ba("0x1c"));let n=Array[Ba("0x29")](this[Ba("0x2a")][Ba("0x23")][Ba("0x18")][Ba("0xa")].getSelectedBlocks())[Ba("0x2")](t);if(!n[Ba("0x22")])return null;n=e[Ba("0x1e")](n);const o=[];for(const t of n)e[Ba("0xc")](t)&&o[Ba("0x10")](t);return o}[Ba("0x26")](t){return Ba("0x1b")+this.editor[Ba("0x1f")][Ba("0x27")](Ba("0x34"))[Ba("0x8")](t)[Ba("0x31")]()+Ba("0xf")+t[Ba("0x31")]()[Ba("0x25")](/-/g,"_")}}const Ua=["nodeAfter","commandParams","has","document","TablePropertiesEditing","handleDiscardAction","registerDescriptionCallback","accept","findAncestor","TableCellPropertiesEditing","_getSuggestion","*Format:* change table cell properties","_handlePropertyChange","subType","_suggestionFactory","tableCellVerticalAlignment","tableCellHeight","discard","tableCellPadding","registerCustomCallback","tableCellProperties","tableWidth","tableCellWidth","_descriptionFactory","getContainedElement","editor","join","selection","change","locale","tableAlignment","formatBlock","get","getFirstPosition","afterInit","plugins","tableHeight","tableProperties","TableUtils","model","*Format:* change table properties","enableCommand","getSuggestionCallback","start","format","pluginName","TrackChangesEditing","TrackChangesTableProperties","tableBackgroundColor","enqueueChange","removeAttribute","tableCellBorderColor","tableBorderStyle","markBlockFormat","data","handleSuggestionDescription","tableCellHorizontalAlignment","setAttribute","batch"];var Ga,Ha;Ga=Ua,Ha=407,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Va extends t.Plugin{constructor(t){super(t),this.tableProperties=["tableBorderColor",za("0x3a"),"tableBorderWidth",za("0x24"),za("0x1b"),za("0x2a"),za("0x36")],this.tableCellProperties=[za("0x39"),"tableCellBorderStyle","tableCellBorderWidth",za("0x18"),za("0x1c"),za("0x16"),"tableCellBackgroundColor",za("0x3"),za("0x15")]}static get[za("0x33")](){return za("0x35")}[za("0x28")](){const t=this.editor[za("0x29")].get("TrackChangesEditing");if(this[za("0x1f")][za("0x29")][za("0x8")](za("0xa"))){for(const e of this[za("0x2b")])t.enableCommand(e,((t,n)=>{const o=this[za("0x1f")][za("0x2d")][za("0x9")].selection[za("0x27")]()[za("0xe")]("table");this[za("0x12")](e,[o],this[za("0x2b")],za("0x2b"),t,n)}));t[za("0x14")][za("0x19")](za("0x25"),"tableProperties",za("0xd"),t[za("0x14")][za("0x30")](za("0x25"),null,"discard")),t[za("0x14")].registerCustomCallback(za("0x25"),za("0x2b"),za("0x17"),((t,e)=>this[za("0xb")](this.tableProperties,t,e))),t[za("0x14")][za("0x19")](za("0x25"),"tableProperties",za("0x20"),(()=>!1))}if(this[za("0x1f")].plugins[za("0x8")](za("0xf"))){for(const e of this[za("0x1a")])t[za("0x2f")](e,((t,n)=>{const o=this[za("0x1f")][za("0x29")][za("0x26")](za("0x2c")).getSelectionAffectedTableCells(this[za("0x1f")][za("0x2d")].document[za("0x21")]);this[za("0x12")](e,o,this[za("0x1a")],za("0x1a"),t,n)}));t[za("0x14")][za("0x19")]("formatBlock",za("0x1a"),za("0xd"),t._suggestionFactory[za("0x30")](za("0x25"),null,"discard")),t._suggestionFactory.registerCustomCallback("formatBlock",za("0x1a"),za("0x17"),((t,e)=>this.handleDiscardAction(this[za("0x1a")],t,e))),t[za("0x14")].registerCustomCallback(za("0x25"),za("0x1a"),za("0x20"),(()=>!1))}t[za("0x1d")][za("0xc")]((t=>this[za("0x2")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this[za("0x1f")][za("0x29")].get(za("0x34"));this[za("0x1f")][za("0x2d")][za("0x37")](r[za("0x5")],(()=>{for(const t of e)if(this._getSuggestion(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("0x0")](t,{commandParams:[e]},[],o)}}))}[za("0xb")](t,e,n){const o=e[0][za("0x31")][za("0x6")],s=n[za("0x7")][0];this[za("0x1f")][za("0x2d")][za("0x22")]((e=>{for(const n of t)void 0!==s[n]?e[za("0x4")](n,s[n],o):e[za("0x38")](n,o)}))}[za("0x2")](t){if(t[za("0x1")])switch(t.subType){case za("0x2b"):return{type:za("0x32"),content:Yo(this[za("0x1f")][za("0x23")],za("0x2e"))};case za("0x1a"):return{type:za("0x32"),content:Yo(this[za("0x1f")][za("0x23")],za("0x11"))}}}[za("0x10")](t,e){const n=this[za("0x1f")].plugins[za("0x26")](za("0x34"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[za("0x1e")]();if(o[za("0x13")]===e&&n===t)return o}return null}}const Wa=["plugins","isArray","_commentsRepository","range","removeMarkers","discardSelectedSuggestions","data","track-changes-suggestion-not-found","getSuggestion","_registerDefaultCallbacks","discard","some","_splitMarkerName","buildSuggestion","options","markers","getShiftedBy","delete","isInContent","markMultiRangeInsertion","insertContent","createdAt","getWalker","discardSuggestion","registerCustomCallback","isExternal","suggestion","assign","includes","head","updateSuggestion","_enabledCommands","createPositionBefore","insertion:accept","createElement","_updateSuggestionData","$graveyard","commandName","accept","$marker","ck-suggestion-marker","insert","getAttribute","unbind","rootName","stopListening","consume","_joinSuggestions","define","deleteContent","addMarker","getRange","elementEnd","split","conversion","move","every","formatBlock:chain","getSuggestions","addHighlight","removeMarker:suggestion:formatBlock","trackChanges.mergeNestedSuggestions","getAllAdjacentSuggestions","getLastMatchingPosition","getAncestors","dataToMarker","isAtEnd","formatBlock:","insertion:","fire","item","model","@external","hasCommentThread","getCustomProperty","open","then","toJSON","update:suggestion","authorName","removeClass","change:activeMarkers","document","multipleBlocks","getDifference","addCommentThread","createSelection","containsPosition","isCollapsed","getIntersection","markInsertion","_addSuggestionMarker","deletion:accept","writer","normal","originalSuggestionId","keys","data-suggestion","from","_cutOutSuggestionMarker","formatInline:discard","trackChangesCommand","set","removeMarker","rethrowUnexpectedError","isMultiRange","addMarker:suggestion:formatBlock","applyOperation","createRangeIn","fromCharCode","editor","default","stop","isOwn","containsRange","getRanges","_defaultCallbacks","_isDataLoaded","markMultiRangeDeletion","_createSuggestion","insertion:chain","reconvertMarker","group","locale","isRemovable","setTo","howMany","accepted","fromRange","never","_suggestionState","addRange","differ","toViewElement","dataDowncast","get","TrackChangesEditing","return","removed","suggestionChanged","insertion:join","formatInline:join","_rangeIsInLocalUserInsertion","isLocal","isUndo","enableCommand","_refreshSuggestionsChain","authoredAt","showSuggestionHighlights","elementStart","trackChanges","fetchCommentThread","PENDING_ACTION_SUGGESTION","_onDiscard","addMarker:suggestion","nodeBefore","acceptSelectedSuggestions","_getAuthorFromId","external:","commands","position","author","dataReady","insertion","ready","highest","getChanges","ck-suggestion-marker-","adapter","isDocumentOperation","addMarkerName","track-changes-adapter-missing-getsuggestion","subType","_setSuggestionRange","name","_model","multi","collaboration.channelId","marker-count","track-changes-user-not-found","clear","_removeSuggestion","getItems","_findSuggestions","addSuggestion","addComment","markerName","for","markMultiRangeBlockFormat","length","_handleNewSuggestionMarker","isAtStart","rejected","moveTargetPosition","_joinWithAdjacentSuggestions","notReady","addSuggestionData","schema","_trackFormatChanges","formatInline","_breakSuggestionMarker","suggestion:","add","_adapter","deletion:discard","high","markBlockFormat","markDeletion","trackChanges.trackFormatChanges","has","registerPostFixer","PendingActions","type","batch","ck-suggestion-marker--active","nodeAfter","element","previous","_suggestions","$textProxy","start","markerToHighlight","isInsideObject","root","_saved","insertion:discard","getFirstMarker","always","activeMarkers","getSuggestionCallback","splitPosition","suggestion-type","createRange","documentSelection","getNearestSelectionRange","values","next","editingDowncast","change","containsRangeInObject","markInlineFormat","sort","attributes","removeAttribute","skipNestingCheck","formatInline:","editing","getChangedMarkers","mapper","end","createPositionAfter","widget","formatBlock:discard","resolve","acceptSuggestion","track-changes-suggestion-data-mismatch","join","value","_mergeNestedSuggestions","creator","getUser","_setSuggestionData","updateMarker","push","low","listenTo","backward","map","CommentsRepository","newRange","_checkSuggestionCorrectness","_getSuggestionData","targetPosition","_getExternalAuthor","deletion","setSelection","unbindElementFromMarkerName","execute","catch","upcast","getMultiRangeId","change:data","consumable","detach","change:_saved","setAttribute","splice","getMarkers","chain","track-changes-adapter-already-set","addUser","parent","remove","config","Users","getFirstRange","markerReady","filter","clone","formatGroupId","forceDefaultExecution","formatBlock","createPositionAt","_descriptionFactory","isLimit","enableReadOnlyMode","isAfter","isObject","elementToElement","refresh","containerElement","addClass","suggestionUnloaded","deletion:chain","isEqual","isBefore","_suggestionFactory","_addThreadToSuggestion","_editor","oldRange","after","track-changes-command-not-found","_isForcedDefaultExecutionBlock","discardAllSuggestions","deletion:","hasComments","isBlock","getCommentThread","selection","isNextTo","commentThread","size"];var Ka,qa;Ka=Wa,qa=278,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Wa[t-=0]};class $a extends t.Plugin{static get requires(){return["CommentsRepository",r.Users,t.PendingActions,cs,ms,Rs,ws,Bs,zs,$s,er,ir,ja,ur,pr,yr,Sr,Fr,Gr,Kr,Jr,ni,xi,ui,pi,Ci,Ri,wi,ji,Vi,$i,tx,rx,dx,px,Cx,Sx,Mx,Bx,Vx,$x,Oa,na,ca,Ea,Va,ma,ka,Ia]}static get pluginName(){return Xa("0xbe")}constructor(t){function e(t){return t[Xa("0x141")]((t=>String[Xa("0xa3")](t)))[Xa("0x136")]("")}super(t),this[Xa("0x9c")]("activeMarkers",[]),this.on(Xa("0x87"),((e,n,o,s)=>{this[Xa("0xe5")][Xa("0x124")]((()=>{for(const e of[...s,...o])this[Xa("0xe5")][Xa("0x45")][Xa("0x107")](e)&&t[Xa("0x12c")][Xa("0xaf")](e)}))})),this[Xa("0x19")]=new ss(this[Xa("0xa4")][Xa("0x7d")][Xa("0xfb")],this[Xa("0xa4")].locale),this[Xa("0x101")]=null,this[Xa("0x26")]=new Qa(this[Xa("0xa4")]),this[Xa("0x110")]=new Map,this[Xa("0x38")]=t[Xa("0x36")][Xa("0xbd")](Xa("0x142")),this[Xa("0x55")]=new Set,this[Xa("0xe5")]=this[Xa("0xa4")][Xa("0x7d")],this[Xa("0xb8")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[Xa("0xf")][Xa("0x66")]("trackChanges.trackFormatChanges",Xa("0xa5")),this[Xa("0xfc")]=t[Xa("0xf")][Xa("0xbd")](Xa("0x106")),t[Xa("0xf")][Xa("0x66")]("trackChanges.mergeNestedSuggestions",!0),this[Xa("0x138")]=t[Xa("0xf")].get(Xa("0x73")),this[Xa("0x9b")]=new u(t,this[Xa("0x55")]),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,50,54])}init(){const t=this[Xa("0xa4")];t.conversion[Xa("0xf1")]("editingDowncast").markerToHighlight({model:"suggestion",view:t=>{const{id:e,type:n}=this._splitMarkerName(t[Xa("0xf0")]),o=[Xa("0x5e"),Xa("0xdd")+n];let s=3e3;return this[Xa("0x11a")][Xa("0x52")](t[Xa("0xf0")])&&(o[Xa("0x13d")]("ck-suggestion-marker--active"),s=3010),Xa("0x148")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[Xa("0xf1")]("dataDowncast")[Xa("0x100")]((e=>{e.on(Xa("0xd0"),((e,n,o)=>{if(!o[Xa("0x44")][Xa("0xca")])return;const s=n.item;if(!s)return;const r=o.mapper[Xa("0xbb")](s);t[Xa("0x7d")].schema[Xa("0x1d")](s)&&r&&!r[Xa("0x80")](Xa("0x131"))&&r.is(Xa("0x20"))&&(0,x.toWidget)(r,o[Xa("0x93")])}),{priority:"high"})})),t[Xa("0x6c")][Xa("0xf1")](Xa("0xbc"))[Xa("0x113")]({model:"suggestion",view:(t,e)=>{if(!e[Xa("0x44")].showSuggestionHighlights)return null;const{type:n}=this._splitMarkerName(t[Xa("0xf0")]);return{classes:[Xa("0x5e"),Xa("0xdd")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Xa("0x7c")])return;if(o[Xa("0x7c")].is(Xa("0x32")))return void s[Xa("0x4")].consume(o.item,n[Xa("0xe4")]);const r=s[Xa("0x12e")].toViewElement(o[Xa("0x7c")]);if(!o[Xa("0x7c")].is(Xa("0x10e"))||!t[Xa("0x7d")].schema[Xa("0x30")](o[Xa("0x7c")])||r[Xa("0x80")](Xa("0x71")))return;const{id:i}=this[Xa("0x42")](o.markerName);s[Xa("0x93")][Xa("0x21")]([Xa("0x5e"),"ck-suggestion-marker-formatBlock"],r),s.writer[Xa("0x7")](Xa("0x97"),i,r),s[Xa("0x12e")].bindElementToMarker(r,o.markerName),e&&(this[Xa("0x11a")][Xa("0x52")](o[Xa("0xf0")])?s[Xa("0x93")][Xa("0x21")](Xa("0x10c"),r):s[Xa("0x93")].removeClass(Xa("0x10c"),r));for(const e of t.model[Xa("0xa2")](o[Xa("0x7c")])[Xa("0xec")]())s[Xa("0x4")][Xa("0x64")](e,n[Xa("0xe4")]);s[Xa("0x4")][Xa("0x64")](o[Xa("0x7c")],n.name)};t[Xa("0x6c")].for(Xa("0xbc"))[Xa("0x100")]((t=>{t.on(Xa("0xa0"),((t,e,o)=>{o.options[Xa("0xca")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Xa("0xdb")})})),t.conversion[Xa("0xf1")]("dataDowncast").markerToData({model:Xa("0x50"),view:(t,e)=>e[Xa("0x44")][Xa("0xca")]?null:{group:Xa("0x50"),name:t.substr(11)}}),t[Xa("0x6c")][Xa("0xf1")](Xa("0x1"))[Xa("0x1e")]({view:{name:Xa("0x50"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Xa("0xff")+t[Xa("0x60")](Xa("0x11d"))+":"+t.getAttribute("id");return t[Xa("0x60")](Xa("0xe8"))&&(n+=":"+t[Xa("0x60")](Xa("0xe8"))),e[Xa("0x58")](Xa("0x5d"),{"data-name":n})}}),t.conversion.for(Xa("0x1"))[Xa("0x77")]({view:"suggestion"}),t.conversion.for("editingDowncast").add((t=>{t.on(Xa("0xa0"),n(),{priority:Xa("0x103")})})),t[Xa("0x6c")][Xa("0xf1")](Xa("0x123")).add((t=>{t.on(Xa("0x72"),((t,e,n)=>{const o=n[Xa("0x12e")].markerNameToElements(e.markerName);if(o)for(const t of o)t.getCustomProperty(Xa("0x71"))||(n.writer[Xa("0x86")]([Xa("0x5e"),"ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n[Xa("0x93")][Xa("0x129")](Xa("0x97"),t),n.mapper[Xa("0x14a")](t,e.markerName))}),{priority:Xa("0x103")})})),t[Xa("0x7d")][Xa("0x88")][Xa("0x108")]((e=>{let n=!1;const o=Array[Xa("0x98")](t[Xa("0x7d")].document[Xa("0xba")][Xa("0x12d")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0x42")](x);if(Xa("0x50")!==o)continue;const d=this[Xa("0x110")][Xa("0xbd")](l);if(null!=a[Xa("0x143")])if(Xa("0xfd")==c&&(n=n||Ya(a[Xa("0x143")],x,e,t[Xa("0x7d")][Xa("0xfb")])),a.newRange[Xa("0x8e")]||Xa("0x5a")==a[Xa("0x143")][Xa("0x115")][Xa("0x62")]||Xa("0x17")==c&&!ec(a[Xa("0x143")])||Xa("0x148")==c&&(Za(i=a.newRange)||(r=i)[Xa("0x112")][Xa("0xd")]==r[Xa("0x12f")].nodeBefore&&r[Xa("0x112")][Xa("0x78")]))e[Xa("0x9d")](x),n=!0;else{if(!d||!d.isInContent)continue;s[Xa("0x100")](d)}}var r,i;return s[Xa("0x35")]>0&&(n=!!this[Xa("0xf8")](s)||n),n})),t[Xa("0x7d")][Xa("0x88")].registerPostFixer((e=>{let n=!1;for(const o of t[Xa("0x7d")].document.differ[Xa("0xdc")]()){if(Xa("0x5f")!=o[Xa("0x10a")])continue;const s=o[Xa("0xd6")].getShiftedBy(o[Xa("0xf3")]);if(s[Xa("0x78")])for(const r of this._suggestions[Xa("0x121")]()){if(r.isMultiRange||!r[Xa("0x48")])continue;if(Xa("0x17")!=r.type)continue;const i=r[Xa("0x11")]();if(i[Xa("0x112")].parent!=i[Xa("0x12f")][Xa("0xd")]&&i[Xa("0x12f")].isEqual(o[Xa("0xd6")])){const o=t.model[Xa("0x11e")](i[Xa("0x112")],s);e[Xa("0x13c")](r[Xa("0x118")](),{range:o}),n=!0}}}return n})),t[Xa("0x7d")].markers.on(Xa("0x84"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[Xa("0xe4")]),n=this[Xa("0x110")][Xa("0xbd")](t);n&&n[Xa("0xe0")](e.name)}})),t.model[Xa("0x88")].on(Xa("0x3"),(()=>{const e=Array.from(t.model[Xa("0x88")][Xa("0xba")][Xa("0x12d")]()).filter((t=>"suggestion"===this[Xa("0x42")](t.name)[Xa("0xb0")]));if(0===e.length)return;e.sort(((t,e)=>{const n=t[Xa("0x3c")][Xa("0x29")],o=e[Xa("0x3c")][Xa("0x29")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[Xa("0x25")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0x42")](t);if(null===s.oldRange){const e=this[Xa("0xf4")](t);o.add(e)}else{const t=this._suggestions[Xa("0xbd")](e);null!==s[Xa("0x143")]||t[Xa("0x48")]?(n[Xa("0x100")](t[Xa("0x53")]),o[Xa("0x100")](t)):this[Xa("0xeb")](t)}}o[Xa("0x35")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[Xa("0x7b")]("suggestionChanged",t)})),t[Xa("0x7d")].on(Xa("0xa1"),((e,n)=>{const o=n[0];if(!this[Xa("0x110")][Xa("0x35")])return;if(!o[Xa("0xdf")])return;if(o[Xa("0x10b")][Xa("0xc6")]||!o[Xa("0x10b")][Xa("0xc5")])return;let s,r;switch(o[Xa("0x10a")]){case Xa("0x5f"):s=t[Xa("0x7d")].createPositionAt(o[Xa("0xd6")]),r=s[Xa("0x46")](o[Xa("0xb4")]);break;case"split":s=t[Xa("0x7d")][Xa("0x18")](o[Xa("0x11c")]),r=t[Xa("0x7d")][Xa("0x18")](o[Xa("0xf7")]);break;case Xa("0x6d"):s=t[Xa("0x7d")][Xa("0x18")](o[Xa("0x146")]),r=s[Xa("0x46")](o.howMany);break;default:return}const i=t[Xa("0x7d")][Xa("0x11e")](s,r);t[Xa("0x7d")][Xa("0x124")]((()=>{for(const{suggestion:t,meta:e}of this[Xa("0xed")](i)){if(t[Xa("0x9f")])continue;if(Xa("0xfd")==t.type)continue;const n=t[Xa("0x3c")]&&t.data[Xa("0x89")];(Xa("0x17")!=t[Xa("0x10a")]||Xa("0x6b")==o[Xa("0x10a")]&&!n)&&(e[Xa("0x125")]||"insertion"==t[Xa("0x10a")]&&e.isOwn||t[Xa("0x11")]().containsRange(i)&&this[Xa("0xfe")](t,s,r))}}))}),{priority:"lowest"}),t[Xa("0x7d")].on(Xa("0x67"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Xa("0x16")])return;if(this[Xa("0x2c")])return;if(!this[Xa("0x9b")][Xa("0x137")])return;if(o.isCollapsed)return;const r=t[Xa("0x7d")][Xa("0xfb")],{start:i,end:x}=o[Xa("0x11")](),a=i[Xa("0x10d")]&&r[Xa("0x1a")](i.nodeAfter)?null:r[Xa("0x120")](i,"forward"),c=x.nodeBefore&&r[Xa("0x1a")](x[Xa("0xd1")])?null:r.getNearestSelectionRange(x,Xa("0x140")),l=t[Xa("0x7d")].createRange(a?a[Xa("0x112")]:i,c?c[Xa("0x12f")]:x);t[Xa("0x7d")][Xa("0x124")]((e=>{this[Xa("0x105")](l);const n=t[Xa("0x7d")][Xa("0xfb")][Xa("0x120")](l[Xa("0x112")]);o.is(Xa("0x11f"))?e[Xa("0x149")](n):o[Xa("0xb3")](n)})),e[Xa("0xa6")]()}),{priority:e.priorities[Xa("0x94")]+10}),t[Xa("0x7d")].on(Xa("0x4a"),((e,n)=>{const o=n[n[Xa("0xf3")]-1];o&&o[Xa("0x16")]||this._isForcedDefaultExecutionBlock||this.trackChangesCommand[Xa("0x137")]&&(t[Xa("0x7d")][Xa("0x124")]((()=>{let o=t[Xa("0x7d")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Xa("0xbf")]=o[Xa("0x14")]();const s=o[Xa("0x12f")][Xa("0xd1")],r=t.model.schema;s&&r[Xa("0x30")](s)&&!r[Xa("0x1d")](s)&&(o=t.model.createRange(o[Xa("0x112")],t[Xa("0x7d")][Xa("0x18")](s,Xa("0x12f")))),this[Xa("0x90")](o)})),e[Xa("0xa6")]())}),{priority:"high"}),this[Xa("0xa4")][Xa("0xd5")][Xa("0x100")](Xa("0xcc"),this[Xa("0x9b")]),this[Xa("0xc7")]("trackChanges");const o=new p(t,this[Xa("0x110")]);t[Xa("0xd5")][Xa("0x100")](Xa("0x134"),o),this[Xa("0xc7")](Xa("0x134"));const s=new C(t,this[Xa("0x110")]);t.commands[Xa("0x100")]("discardSuggestion",s),this[Xa("0xc7")](Xa("0x4d")),t[Xa("0xd5")].add("acceptAllSuggestions",new F(t,o,this._suggestions)),this[Xa("0xc7")]("acceptAllSuggestions"),t[Xa("0xd5")][Xa("0x100")](Xa("0x2d"),new F(t,s,this[Xa("0x110")])),this[Xa("0xc7")](Xa("0x2d")),t.commands.add(Xa("0xd2"),new U(t,o,this[Xa("0x110")])),this[Xa("0xc7")](Xa("0xd2")),t[Xa("0xd5")][Xa("0x100")](Xa("0x3b"),new U(t,s,this[Xa("0x110")])),this[Xa("0xc7")]("discardSelectedSuggestions");const r=t[Xa("0x36")][Xa("0xbd")](Xa("0x142"));this[Xa("0x13f")](r,Xa("0xef"),((t,{threadId:e})=>{const n=this[Xa("0x110")].get(e);n&&n.commentThread&&1===n[Xa("0x34")][Xa("0xf3")]&&this[Xa("0x59")](e,{hasComments:!0})}),{priority:Xa("0x13e")}),this[Xa("0x13f")](r,"removeComment",((t,{threadId:e})=>{const n=this[Xa("0x110")].get(e);n&&n[Xa("0x34")]&&!n.commentThread[Xa("0xf3")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:"low"})}set[Xa("0xde")](t){if(this[Xa("0x101")])throw new e.CKEditorError(Xa("0xb"),this);this._adapter=t}get[Xa("0xde")](){return this._adapter}[Xa("0x70")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Xa("0x110")][Xa("0x121")]())t&&!e.isInContent||n[Xa("0x13d")](e);return e?n[Xa("0x141")]((t=>t[Xa("0x83")]())):n}[Xa("0x3e")](t){const n=this[Xa("0x110")][Xa("0xbd")](t);if(!n)throw new e.CKEditorError(Xa("0x3d"),this);return n}hasSuggestion(t){return this[Xa("0x110")][Xa("0x107")](t)}[Xa("0xfa")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Xa("0x10a")][Xa("0x6b")](":"),i=this[Xa("0x110")][Xa("0xbd")](n)||this[Xa("0xad")](s,r,n,e,o);if(this._addThreadToSuggestion(i),this._checkSuggestionCorrectness(i,s,r||null,e),i[Xa("0x4b")]=t[Xa("0x4b")],i[Xa("0xab")]=!0,o&&o[Xa("0x7e")]){const t=o["@external"],e=this._getExternalAuthor(t[Xa("0x85")]);i[Xa("0xc9")]=t[Xa("0x4b")],i[Xa("0xd7")]=e,i[Xa("0x4f")]=!0}else i.authoredAt=t.createdAt;switch(t.data&&(i[Xa("0x3c")]=t[Xa("0x3c")]),t[Xa("0x128")]&&(i[Xa("0x128")]=t.attributes),this._adapter&&this[Xa("0x101")][Xa("0xee")]||(i._saved=!0),this[Xa("0xb8")][Xa("0xbd")](i)){case Xa("0xf9"):this[Xa("0xb8")][Xa("0x9c")](i,"dataReady");break;case Xa("0x12"):i[Xa("0x48")]?(this._refreshSuggestionsChain(new Set([i])),this[Xa("0xf8")](new Set([i])),this._suggestionState[Xa("0x9c")](i,Xa("0xda")),this[Xa("0x7b")]("suggestionLoaded",i)):this[Xa("0xb8")][Xa("0x9c")](i,"removed")}return i}[Xa("0x134")](t){this[Xa("0x16")]((()=>{this[Xa("0xa4")][Xa("0x7d")][Xa("0x124")]((()=>{for(const e of t[Xa("0x74")]())e[Xa("0x5c")]()}))}))}[Xa("0x4d")](t){this[Xa("0x16")]((()=>{this[Xa("0xa4")][Xa("0x7d")].change((()=>{for(const e of t[Xa("0x74")]())e[Xa("0x40")]()}))}))}enableCommand(t,n){const o=this[Xa("0xa4")][Xa("0xd5")][Xa("0xbd")](t);if(!o)throw new e.CKEditorError(Xa("0x2b"),this,{commandName:t});this[Xa("0x55")][Xa("0x100")](o),n&&o.on(Xa("0x14b"),((t,e)=>{this[Xa("0x9b")][Xa("0x137")]&&(this[Xa("0x2c")]||e[Xa("0xf3")]>0&&e[e[Xa("0xf3")]-1]&&e[e.length-1].forceDefaultExecution||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[Xa("0xa6")]()))}),{priority:Xa("0x103")})}[Xa("0x16")](t){let n,o;const s=this[Xa("0x2c")];this[Xa("0x2c")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[Xa("0x9e")](o,this),n}[Xa("0x90")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[Xa("0xa4")].plugins[Xa("0xbd")]("Users").me;for(const{suggestion:e,meta:s}of this[Xa("0xed")](t,"insertion"))if(s[Xa("0xa7")]){if(!s.isNextTo){if(s.containsRangeInObject){if(!this[Xa("0x138")]||!rc(e,o))continue;return e}if(rc(e,o))return e;this[Xa("0xfe")](e,t[Xa("0x112")],t[Xa("0x12f")]);break}if(n==e[Xa("0xe2")]&&rc(e,o)){const n=e.getFirstRange();return n[Xa("0x112")][Xa("0x24")](t.end)?this[Xa("0xe3")](e,this._model[Xa("0x11e")](t.start,n.end)):this[Xa("0xe3")](e,this[Xa("0xe5")][Xa("0x11e")](n.start,t[Xa("0x12f")])),e}}const r=(0,e.uid)(),i=s.id,x=n?Xa("0x7a")+n:Xa("0xd9"),a=this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0x91")](x,r,i,t),a}[Xa("0x49")](t,n=Xa("0xe6"),o={}){const s=this[Xa("0xa4")][Xa("0x36")][Xa("0xbd")]("Users").me,r=this[Xa("0x26")][Xa("0x11b")](Xa("0xd9"),n,Xa("0x136"));for(const e of this[Xa("0x70")]())if(e[Xa("0xd7")].id==s.id&&Xa("0xd9")==e[Xa("0x10a")]&&e[Xa("0xe2")]==n&&rc(e,o)&&(r(e[Xa("0xa9")](),t)||r(t,e[Xa("0xa9")]()))){for(const n of t)e.addRange(n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,Xa("0xd9"))){if(!n[Xa("0xa7")])continue;if(!this._mergeNestedSuggestions&&n.containsRangeInObject)continue;if(!rc(e,o))continue;let s=!0;for(const n of e[Xa("0xa9")]())for(const e of t)if(!n[Xa("0xa8")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=Xa("0x7a")+n,c=this[Xa("0x13b")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Xa("0x91")](a,i,x,e,Zo.getMultiRangeId());return c}[Xa("0x126")](t,n,o=null,s={}){if(o=o||tc(n),t[Xa("0x8e")])return null;if("never"===this[Xa("0xfc")]){const e=this[Xa("0x26")].getSuggestionCallback("formatInline",o,Xa("0x5c"));return this[Xa("0x16")]((()=>e([t],n,s))),null}const r=this.editor[Xa("0x36")][Xa("0xbd")](Xa("0x10")).me,i=[];if(Xa("0x119")!==this[Xa("0xfc")])for(const{suggestion:e,meta:n}of this[Xa("0xed")](t,Xa("0xd9")))n[Xa("0xa7")]&&!n[Xa("0x114")]&&i[Xa("0x13d")](...e[Xa("0xa9")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Xa("0x8f")](o);e&&n[Xa("0x13d")](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("0x8a")](t);n[Xa("0x8")](e,1,...o),e+=o[Xa("0xf3")]}}return n}(t,i);x[Xa("0xf3")]&&this._model[Xa("0x124")]((()=>{for(const t of x){const e=this[Xa("0x26")][Xa("0x11b")]("formatInline",o,"accept");this.forceDefaultExecution((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Xa("0x112")],a=t[Xa("0x12f")];for(const{suggestion:e,meta:n}of this[Xa("0xed")](t,Xa("0xfd"))){if(!n[Xa("0xa7")])continue;if(e.subType!=o)continue;if(!rc(e,s))continue;const r=e[Xa("0x11")]();if(r.containsRange(t,!0))return null;x=x[Xa("0x25")](r[Xa("0x112")])?x:r[Xa("0x112")],a=a.isAfter(r[Xa("0x12f")])?a:r.end,i?r[Xa("0x112")].isBefore(i.getFirstRange()[Xa("0x112")])?(i.removeMarkers(),i=e):e[Xa("0x3a")]():i=e}const c=this._model[Xa("0x11e")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[Xa("0x13b")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker(Xa("0x12b")+o,t,i,c)}}return null}[Xa("0x104")](t,n,o=[],s=null,r={}){n[Xa("0x15")]||(n[Xa("0x15")]=n[Xa("0x5b")]),n[Xa("0x89")]=t.is(Xa("0x39")),s=s||tc(n);const i=o[Xa("0x141")]((t=>nc(t,this[Xa("0xe5")]))),x=t.is(Xa("0x39"))?t:nc(t,this[Xa("0xe5")]);if(Xa("0xb7")===this[Xa("0xfc")]){const t=this._suggestionFactory[Xa("0x11b")](Xa("0x17"),s,Xa("0x5c"));return this.forceDefaultExecution((()=>t([x],n,r))),null}i[Xa("0x13d")](x);let a=!0;for(const t of i)if(!this[Xa("0xc4")](t)){a=!1;break}if(a&&Xa("0x119")!==this[Xa("0xfc")]){const t=this[Xa("0x26")][Xa("0x11b")](Xa("0x17"),s,Xa("0x5c"));return this[Xa("0x16")]((()=>t([x],n,r))),null}let c=null,l=x.start,d=x[Xa("0x12f")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,Xa("0x17"))){if(!e.isOwn)continue;if(e[Xa("0x33")]||e[Xa("0x125")]||e[Xa("0x114")])continue;if(t.data[Xa("0x15")]!=n.formatGroupId)continue;if(!rc(t,r))continue;const o=t[Xa("0x11")]();if(t[Xa("0xe2")]==s){if(o[Xa("0xa8")](x,!0))return null;l=l[Xa("0x25")](o[Xa("0x112")])?l:o.start,d=d[Xa("0x1c")](o[Xa("0x12f")])?d:o[Xa("0x12f")],c?o[Xa("0x112")][Xa("0x25")](c.getFirstRange()[Xa("0x112")])?(c[Xa("0x3a")](),c=t):t[Xa("0x3a")]():c=t}else{const e=x.getIntersection(o);this._cutOutSuggestionMarker(t,e)}}const u=this[Xa("0xa4")][Xa("0x36")][Xa("0xbd")](Xa("0x10")).me,g=(0,e.uid)(),m=u.id;if(c)return this[Xa("0xe3")](c,this[Xa("0xe5")][Xa("0x11e")](l,d)),c;{const t=this._setSuggestionData({id:g,type:Xa("0x79")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(Xa("0x79")+s,g,m,this[Xa("0xe5")].createRange(l,d)),t}}[Xa("0xf2")](t,n,o=[],s=null,r={}){n[Xa("0x15")]||(n.formatGroupId=n[Xa("0x5b")]);const i=t[0];n[Xa("0x89")]=i.is(Xa("0x39")),s=s||tc(n);const x=o.map((t=>nc(t,this[Xa("0xe5")]))),a=i.is(Xa("0x39"))?t:t[Xa("0x141")]((t=>nc(t,this[Xa("0xe5")])));if("never"===this[Xa("0xfc")]){const t=this[Xa("0x26")].getSuggestionCallback(Xa("0x17"),s,Xa("0x5c"));return this[Xa("0x16")]((()=>t(a,n,r))),null}x[Xa("0x13d")](...a);let c=!0;for(const t of x)if(!this[Xa("0xc4")](t)){c=!1;break}if(c&&"always"!==this._trackFormatChanges){const t=this[Xa("0x26")].getSuggestionCallback(Xa("0x17"),s,"accept");return this[Xa("0x16")]((()=>t(a,n,r))),null}const l=this[Xa("0xa4")][Xa("0x36")][Xa("0xbd")]("Users").me;for(const t of this[Xa("0x70")]()){if(t[Xa("0xd7")].id!=l.id)continue;if(Xa("0x17")!=t.type||t.data[Xa("0x15")]!=n[Xa("0x15")])continue;if(!rc(t,r))continue;const e=t[Xa("0xe2")]==s;for(let n=0;n<a[Xa("0xf3")];n++){const o=a[n];for(const s of t[Xa("0x9")]()){const r=s[Xa("0x69")]();if(o[Xa("0x24")](r)){e?(a.splice(n,1),n--):t[Xa("0x9d")](s[Xa("0xe4")]);break}}}}if(0==a[Xa("0xf3")])return null;const d=this[Xa("0x26")].getSuggestionCallback("formatBlock",s,Xa("0x136"));for(const t of this[Xa("0x70")]())if(t[Xa("0xd7")].id==l.id&&Xa("0x17")==t.type&&t[Xa("0x3c")][Xa("0x15")]==n[Xa("0x15")]&&t[Xa("0xe2")]==s&&rc(t,r)&&(d(t[Xa("0xa9")](),a)||d(a,t[Xa("0xa9")]()))){for(const e of a)t[Xa("0xb9")](e);return t}const u=(0,e.uid)(),g=l.id,m=Xa("0x79")+s,f=this[Xa("0x13b")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(m,u,g,t,Zo[Xa("0x2")]());return f}[Xa("0x105")](t,n=null,o={}){if(t[Xa("0x8e")])return null;const s=this[Xa("0xa4")][Xa("0x36")][Xa("0xbd")]("Users").me,r=new i.LiveRange(t[Xa("0x112")],t[Xa("0x12f")]);for(const{suggestion:t,meta:e}of this[Xa("0xed")](r,Xa("0xd9")))if(e[Xa("0xa7")]&&!e[Xa("0x33")])if(t[Xa("0x9f")]){const e=t.getRanges()[Xa("0x13")]((t=>"$graveyard"!=t[Xa("0x115")][Xa("0x62")]));if(e[Xa("0x6e")]((t=>r[Xa("0xa8")](t,!0)))&&t.discard(),e[Xa("0x41")]((t=>t.containsRange(r,!0)))){const t=this[Xa("0x26")][Xa("0x11b")]("deletion",n,"accept");return this[Xa("0x16")]((()=>t([r],null,o))),null}}else{const e=r[Xa("0x8f")](t[Xa("0x11")]());null!==e&&t[Xa("0xcf")]([e],null,o)}if(r.detach(),r[Xa("0x8e")]||Xa("0x5a")==r[Xa("0x115")].rootName)return null;let x=null,a=r.start,c=r.end;const l=this._findSuggestions(r,Xa("0x148"));for(const{suggestion:t,meta:e}of l){const n=this._model[Xa("0x11e")](a,c);if(e.isOwn&&(this._mergeNestedSuggestions||!e.containsRangeInObject&&!e[Xa("0x114")]))if(t[Xa("0x9f")]){if(!rc(t,o))continue;let e=!0;for(const o of t[Xa("0xa9")]()){if(o.containsRange(n,!0))return t;n.containsRange(o)||(e=!1)}e&&t[Xa("0x40")]()}else{const e=t[Xa("0x11")]();if(e[Xa("0xa8")](n,!0))return t;if(!rc(t,o)){n[Xa("0xa8")](e)?t[Xa("0x3a")]():e[Xa("0x8d")](a)?a=e[Xa("0x12f")]:e[Xa("0x8d")](c)&&(c=e[Xa("0x112")]);continue}a=a[Xa("0x25")](e[Xa("0x112")])?a:e[Xa("0x112")],c=c[Xa("0x1c")](e[Xa("0x12f")])?c:e.end,o=Object[Xa("0x51")]({},t[Xa("0x128")]),x?e[Xa("0x112")][Xa("0x25")](x.getFirstRange()[Xa("0x112")])?(x[Xa("0x3a")](),x=t):t[Xa("0x3a")]():x=t}}if(x)return this._setSuggestionRange(x,this._model[Xa("0x11e")](a,c)),x;{const t=(0,e.uid)(),r=this[Xa("0xe5")].createRange(a,c),i=s.id,x=n?Xa("0x2e")+n:Xa("0x148"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0x91")](x,t,i,r),l}}[Xa("0xac")](t,n=Xa("0xe6"),o={}){const s=this.editor.plugins[Xa("0xbd")](Xa("0x10")).me,r=t[Xa("0x141")]((t=>new i.LiveRange(t[Xa("0x112")],t[Xa("0x12f")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Xa("0xed")](r,Xa("0xd9")))e[Xa("0xa7")]&&!e[Xa("0x33")]&&x[Xa("0x100")](t);for(const e of x)if(e[Xa("0x9f")]){const s=e[Xa("0xa9")]();if((!e.attributes||!e[Xa("0x128")][Xa("0x12a")])&&s[Xa("0x6e")]((t=>r.some((e=>e.containsRange(t,!0)))))&&e[Xa("0x40")](),r[Xa("0x6e")]((t=>s[Xa("0x41")]((e=>e[Xa("0xa8")](t,!0)))))){const e=this[Xa("0x26")][Xa("0x11b")](Xa("0x148"),n,Xa("0x5c"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[Xa("0x11")]();if(r[Xa("0x41")]((e=>e[Xa("0xa8")](t,!0)))&&e[Xa("0x40")](),r[Xa("0x6e")]((e=>t[Xa("0xa8")](e,!0)))){const t=this[Xa("0x26")].getSuggestionCallback(Xa("0x148"),n,Xa("0x5c"));return this[Xa("0x16")]((()=>t(r,null,o))),null}}const a=this._suggestionFactory.getSuggestionCallback("deletion",n,Xa("0x136"));let c=null;for(const t of this[Xa("0x70")]())if(t[Xa("0xd7")].id==s.id&&t[Xa("0x48")]&&"deletion"==t.type&&t[Xa("0xe2")]==n&&rc(t,o)&&(a(t.getRanges(),r)||a(r,t[Xa("0xa9")]())))if(c){if(t[Xa("0x34")]&&t.commentThread[Xa("0xf3")])continue;for(const e of t.getRanges())c.isIntersectingWithRange(e)||c[Xa("0xb9")](e);t.removeMarkers()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[Xa("0xb9")](e)}if(c)return c;x[Xa("0xea")]();for(const{suggestion:t,meta:e}of this[Xa("0xed")](r,Xa("0x148")))e.isOwn&&(this[Xa("0x138")]||!e[Xa("0x125")]&&!e[Xa("0x114")])&&rc(t,o)&&x[Xa("0x100")](t);for(const t of x){const e=t[Xa("0xa9")]();if((!o||!o[Xa("0x12a")])&&r[Xa("0x6e")]((t=>e[Xa("0x41")]((e=>e[Xa("0xa8")](t,!0))))))return t;(!t[Xa("0x128")]||!t[Xa("0x128")][Xa("0x12a")])&&e[Xa("0x6e")]((t=>r[Xa("0x41")]((e=>e[Xa("0xa8")](t,!0)))))&&t[Xa("0x40")]()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[Xa("0x5")](),t[Xa("0x8e")]||Xa("0x5a")==t[Xa("0x115")][Xa("0x62")]||this[Xa("0x91")](u,l,d,t,Zo.getMultiRangeId());return g}[Xa("0xe3")](t,e){const n=t[Xa("0x118")]();this._model.change((t=>{t[Xa("0x13c")](n,{range:e})}))}[Xa("0x27")](t){const e=t.id,n=this.editor[Xa("0xf")][Xa("0xbd")](Xa("0xe7"));this[Xa("0x38")][Xa("0x7f")](e)||this[Xa("0x38")][Xa("0x8b")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xa("0x38")][Xa("0x31")](e);o[Xa("0x61")]("isRemovable"),o[Xa("0xb2")]=!1,t[Xa("0x34")]=o}[Xa("0x144")](t,n,o,s){if(t[Xa("0x10a")]!=n||t[Xa("0xe2")]!=o||t[Xa("0x139")].id!=s)throw this[Xa("0xa4")][Xa("0x1b")](Xa("0x135")),new e.CKEditorError(Xa("0x135"),this)}[Xa("0x99")](t,n){const o=t[Xa("0x11")]();if(n[Xa("0x24")](o))t[Xa("0x3a")]();else if(o[Xa("0xa8")](n)){const s=this._model[Xa("0x18")](n[Xa("0x112")][Xa("0xd1")],Xa("0x12f"));this[Xa("0xe3")](t,this[Xa("0xe5")][Xa("0x11e")](o[Xa("0x112")],s));const r=(0,e.uid)(),i=t[Xa("0x139")].id,x=t[Xa("0x10a")]+":"+t[Xa("0xe2")];this[Xa("0x13b")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[Xa("0x3c")],attributes:t[Xa("0x128")]});const a=this[Xa("0xe5")].createPositionAt(n[Xa("0x12f")][Xa("0xd")],Xa("0x2a")),c=this[Xa("0xe5")].createRange(a,o.end);this[Xa("0x91")](x,r,i,c)}else if(o[Xa("0x8d")](n[Xa("0x112")])){const e=this._model[Xa("0x18")](n[Xa("0x112")][Xa("0xd1")],"end");this[Xa("0xe3")](t,this[Xa("0xe5")][Xa("0x11e")](o[Xa("0x112")],e))}else{const e=this._model[Xa("0x18")](n[Xa("0x12f")].parent,Xa("0x2a"));this._setSuggestionRange(t,this[Xa("0xe5")].createRange(e,o[Xa("0x12f")]))}}[Xa("0xc4")](t){for(const{suggestion:e,meta:n}of this[Xa("0xed")](t,Xa("0xd9"))){if(!n[Xa("0xa7")])continue;const o=e.getRanges();for(const e of o)if(!t[Xa("0x8a")](e)[Xa("0xf3")])return!0}return!1}_getAuthorFromId(t){const n=this[Xa("0xa4")][Xa("0x36")].get(Xa("0x10"))[Xa("0x13a")](t);if(!n)throw new e.CKEditorError(Xa("0xe9"),this);return n}[Xa("0x147")](t){const e=this[Xa("0xa4")].plugins.get(Xa("0x10")),n=(0,r.hashObject)(Xa("0xd4")+t);return e[Xa("0x13a")](n)||e[Xa("0xc")]({id:n,name:t})}[Xa("0xad")](t,e,n,o,s){const r=this[Xa("0xd3")](o),i=this[Xa("0x26")].buildSuggestion(t,e,n,r,s,(t=>this[Xa("0x59")](n,{attributes:t})));return this[Xa("0x13f")](i,Xa("0x5c"),(()=>{this[Xa("0x59")](n,{state:Xa("0xb5")})}),{priority:Xa("0x103")}),this.listenTo(i,Xa("0x40"),(()=>{this[Xa("0x59")](n,{state:Xa("0xf6")})}),{priority:Xa("0x103")}),this[Xa("0x110")][Xa("0x9c")](n,i),this[Xa("0xb8")][Xa("0x9c")](i,Xa("0xf9")),i}_splitMarkerName(t){const e=t[Xa("0x6b")](":");return{group:e[0],type:e[1],subType:e[Xa("0xf3")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[Xa("0xf3")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t[Xa("0x11")](),r=s.start,i=s[Xa("0x12f")];this[Xa("0xe3")](t,this._model[Xa("0x11e")](r,n));const x=(0,e.uid)(),a=t[Xa("0x139")].id,c=t.type+(t[Xa("0xe2")]?":"+t.subType:"");this[Xa("0x13b")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0x128")],data:t[Xa("0x3c")]}),Xa("0x17")==t[Xa("0x10a")]&&(o=this[Xa("0xe5")][Xa("0x56")](o.parent)),this[Xa("0x91")](c,x,a,this[Xa("0xe5")][Xa("0x11e")](o,i))}[Xa("0xed")](t,e=null){const n=[],o=this[Xa("0xa4")][Xa("0x36")][Xa("0xbd")](Xa("0x10")).me;Array[Xa("0x37")](t)||(t=[t]);for(const s of this.getSuggestions()){if(!s[Xa("0x48")])continue;if(e&&s[Xa("0x10a")]!=e)continue;let r=!1;for(const e of s[Xa("0xa9")]()){for(const i of t){const t=i[Xa("0x112")][Xa("0x24")](e.end)||i[Xa("0x12f")][Xa("0x24")](e[Xa("0x112")]);if(t||i[Xa("0x8f")](e)){const x=i[Xa("0xa8")](e)&&Ja(this[Xa("0xe5")][Xa("0xfb")],e[Xa("0x112")],i),a=e.containsRange(i)&&Ja(this[Xa("0xe5")].schema,i.start,e);n[Xa("0x13d")]({suggestion:s,meta:{isOwn:o==s.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[Xa("0x91")](t,e,n,o,s){this._model[Xa("0x124")]((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r[Xa("0x68")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0xeb")](t){const e=t[Xa("0x10f")],n=t[Xa("0x122")];t[Xa("0x10f")]=null,null!=e&&(e[Xa("0x122")]=null),t[Xa("0x122")]=null,null!=n&&(n[Xa("0x10f")]=null),"ready"==this[Xa("0xb8")][Xa("0xbd")](t)&&(this[Xa("0xb8")][Xa("0x9c")](t,Xa("0xc0")),this[Xa("0x7b")](Xa("0x22"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this.addSuggestionData(t);if(this[Xa("0x101")]&&this[Xa("0x101")][Xa("0xee")]){const s=this[Xa("0xa4")][Xa("0x36")].get("PendingActions"),r=o[Xa("0x2f")],i=o[Xa("0xe2")]?o[Xa("0x10a")]+":"+o.subType:o[Xa("0x10a")],x=this[Xa("0xa4")][Xa("0xb1")],a=s[Xa("0x100")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t[Xa("0x3c")]||null,originalSuggestionId:t[Xa("0x95")]||null,attributes:o[Xa("0x128")]};this._adapter[Xa("0xee")](c)[Xa("0x82")]((t=>{o[Xa("0x116")]=!0,s[Xa("0xe")](a),t&&t[Xa("0x4b")]&&(this[Xa("0x110")].get(n).createdAt=t[Xa("0x4b")])}))[Xa("0x0")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[Xa("0xa4")][Xa("0x7d")].enqueueChange({isUndoable:!1},(()=>{o[Xa("0x40")]()})),o[Xa("0x63")](),this[Xa("0x110")][Xa("0x47")](o.id),this[Xa("0xb8")][Xa("0x47")](o),t}))}return o}[Xa("0x59")](t,e){const n=this[Xa("0xa4")][Xa("0x36")][Xa("0xbd")](Xa("0x109")),o=this.getSuggestion(t);if(this[Xa("0x101")]&&this[Xa("0x101")][Xa("0x54")])if(o[Xa("0x116")]){const o=n[Xa("0x100")](Yo(this[Xa("0xa4")][Xa("0xb1")],Xa("0xce")));this[Xa("0x101")][Xa("0x54")](t,e)[Xa("0x82")]((()=>{n[Xa("0xe")](o)}))}else o.on(Xa("0x6"),(()=>{this[Xa("0x59")](t,e)}))}[Xa("0x145")](t){if(!this[Xa("0x101")]||!this._adapter[Xa("0x3e")])throw new e.CKEditorError(Xa("0xe1"),this);return this._adapter[Xa("0x3e")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[Xa("0x42")](t),r=this[Xa("0x110")][Xa("0xbd")](e)||this[Xa("0xad")](n,o,e,s,{});switch(this[Xa("0x144")](r,n,o,s),this._suggestionState.get(r)){case"notReady":this[Xa("0x145")](e)[Xa("0x82")]((t=>{let n=Promise[Xa("0x133")]();t[Xa("0x2f")]&&(n=this[Xa("0x38")][Xa("0xcd")]({channelId:this.editor.config[Xa("0xbd")](Xa("0xe7")),threadId:e})),n[Xa("0x82")]((()=>{this.addSuggestionData(t)[Xa("0x116")]=!0}))})),this[Xa("0xb8")][Xa("0x9c")](r,Xa("0x12"));break;case Xa("0xc0"):this[Xa("0x59")](e,{state:Xa("0x81")});case Xa("0xd8"):this[Xa("0xb8")][Xa("0x9c")](r,"ready"),this.fire("suggestionLoaded",r);break;case Xa("0xda"):this[Xa("0x7b")](Xa("0xc1"),r)}return r.addMarkerName(t),r}[Xa("0xc8")](t){const e=Array[Xa("0x98")](t).filter((t=>!t.isMultiRange)),n=this.getSuggestions({skipNotAttached:!0})[Xa("0x13")]((t=>!t[Xa("0x9f")])),o=n[Xa("0x13")]((e=>!t[Xa("0x107")](e))),s=new Map(n[Xa("0x141")]((t=>[t,this[Xa("0x26")][Xa("0x11b")](t[Xa("0x10a")],t.subType,Xa("0xa"))]))),r=new Map(n[Xa("0x141")]((t=>[t,t[Xa("0x11")]()]))),i=new Set,x=new Set;for(let t=0;t<e[Xa("0xf3")];t++)a(e[t],e,t+1);for(let t=0;t<e.length;t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[Xa("0x107")](n)&&n[Xa("0x10f")]&&(n[Xa("0x10f")].next===n&&(n[Xa("0x10f")][Xa("0x122")]=null),n[Xa("0x10f")]=null),!i[Xa("0x107")](n)&&n[Xa("0x122")]&&(n[Xa("0x122")].previous===n&&(n[Xa("0x122")].previous=null),n[Xa("0x122")]=null)}function a(t,e,n){for(let o=n;o<e[Xa("0xf3")];o++){const n=c(t,e[o]);n&&(n[0][Xa("0x122")]=n[1],n[1].previous=n[0],i.add(n[0]),x.add(n[1]))}}function c(t,e){if(t[Xa("0xd7")].id!==e[Xa("0xd7")].id)return null;const n=s[Xa("0xbd")](t)(t,e,r[Xa("0xbd")](t),r[Xa("0xbd")](e));return n&&s.get(e)(t,e,r[Xa("0xbd")](t),r[Xa("0xbd")](e))?n[1][Xa("0x34")]&&n[1].commentThread.length?null:n:null}}[Xa("0xf8")](t){const e=Array[Xa("0x98")](t),n=this[Xa("0x70")]({skipNotAttached:!0}),o=n.filter((e=>!t.has(e))),s=new Map(e[Xa("0x141")]((t=>[t,this[Xa("0x26")].getSuggestionCallback(t[Xa("0x10a")],t[Xa("0xe2")],Xa("0x136"))]))),r=new Map(n[Xa("0x141")]((t=>[t,t[Xa("0xa9")]()])));for(let t=0;t<e.length;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("0xf3")];i++){const o=n[i];if(o.type!==e[Xa("0x10a")]||o[Xa("0xd7")].id!==e[Xa("0xd7")].id||o[Xa("0xe2")]!==e[Xa("0xe2")])continue;if(!sc(e,o))continue;const x=s[Xa("0xbd")](e),a=r[Xa("0xbd")](e),c=r[Xa("0xbd")](o),l=e.commentThread&&e[Xa("0x34")][Xa("0xf3")],d=o.commentThread&&o[Xa("0x34")][Xa("0xf3")];if(!l&&x(c,a))return t[Xa("0x65")](o,e),r[Xa("0x47")](e),!0;if(!d&&x(a,c))return t[Xa("0x65")](e,o),r[Xa("0x47")](o),!0}return!1}}[Xa("0x65")](t,e){if(t[Xa("0x9f")])for(const n of e.getRanges())t[Xa("0xb9")](n);else{const n=e.getFirstRange()[Xa("0x12f")];this._setSuggestionRange(t,this[Xa("0xe5")][Xa("0x11e")](t[Xa("0x11")]()[Xa("0x112")],n))}e[Xa("0x3a")]()}}class Qa{constructor(t){this[Xa("0x28")]=t,this._model=t[Xa("0x7d")],this._customCallbacks=new Map,this[Xa("0xaa")]=new Map,this[Xa("0x3f")]()}[Xa("0x43")](t,e,n,o,s,r){return new Zo(this[Xa("0xe5")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Xa("0x11b")](t,e,Xa("0x5c"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,Xa("0x40"))(...n)})}[Xa("0x4e")](t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[Xa("0x9c")](s,o)}[Xa("0x11b")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[Xa("0xbd")](o)||this._defaultCallbacks[Xa("0xbd")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[Xa("0x127")](((t,e)=>t[Xa("0x112")].isBefore(e[Xa("0x112")])?1:-1)),this._model[Xa("0x124")]((e=>{for(const n of t){let t;t=n[Xa("0x12f")][Xa("0x78")]&&n[Xa("0x12f")][Xa("0xd")]==n.start[Xa("0x10d")]?e[Xa("0x8c")](n[Xa("0x112")][Xa("0x10d")],"on"):e[Xa("0x8c")](n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Xa("0xe5")][Xa("0x124")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Xa("0x141")]((t=>(Za(t)&&(t=this[Xa("0xe5")][Xa("0x11e")](t[Xa("0x12f")])),t)))[Xa("0x13")]((t=>Xa("0x5a")!==t[Xa("0x115")].rootName));if(r[Xa("0xf3")]<1)return;const x=Array[Xa("0x98")](this._model[Xa("0x88")][Xa("0x32")].getRanges())[Xa("0x141")]((t=>i.LiveRange[Xa("0xb6")](t)));n[Xa("0x149")](r);for(const t of this[Xa("0x28")].commands[Xa("0xd5")]())t[Xa("0x1f")]();s[Xa("0x13d")]({forceDefaultExecution:!0}),this[Xa("0x28")][Xa("0x14b")](o,...s);const a=x[Xa("0x13")]((t=>Xa("0x5a")!=t.root[Xa("0x62")]));a[Xa("0xf3")]>0&&n.setSelection(a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[Xa("0xf3")]&&1==e[Xa("0xf3")]&&t[0][Xa("0x12f")][Xa("0x24")](e[0][Xa("0x112")]),s=(t,e,n,o)=>oc(t,e,n,o,this[Xa("0xe5")])?[t,e]:oc(e,t,o,n,this[Xa("0xe5")])?[e,t]:null;this[Xa("0xaa")].set(Xa("0x57"),t),this[Xa("0xaa")].set(Xa("0x117"),e),this[Xa("0xaa")][Xa("0x9c")](Xa("0xc2"),o),this[Xa("0xaa")][Xa("0x9c")](Xa("0xae"),s),this._defaultCallbacks[Xa("0x9c")](Xa("0x92"),e),this[Xa("0xaa")][Xa("0x9c")](Xa("0x102"),t),this[Xa("0xaa")].set("deletion:join",o),this[Xa("0xaa")][Xa("0x9c")](Xa("0x23"),s),this._defaultCallbacks.set("formatInline:accept",n),this[Xa("0xaa")][Xa("0x9c")](Xa("0x9a"),t),this._defaultCallbacks[Xa("0x9c")](Xa("0xc3"),o),this._defaultCallbacks[Xa("0x9c")]("formatInline:chain",t),this[Xa("0xaa")][Xa("0x9c")]("formatBlock:accept",n),this._defaultCallbacks.set(Xa("0x132"),t),this[Xa("0xaa")][Xa("0x9c")]("formatBlock:join",o),this[Xa("0xaa")][Xa("0x9c")](Xa("0x6f"),t)}}function Ja(t,e,n){for(const o of e[Xa("0xd")][Xa("0x76")]({includeSelf:!0,parentFirst:!0})){if(o[Xa("0x115")]==o)return!1;if(!n.containsItem(o))return!1;if(t[Xa("0x1d")](o)||t[Xa("0x1a")](o))return!0}return!1}function Za(t){return t.end[Xa("0xd")]==t[Xa("0x112")][Xa("0x10d")]&&t[Xa("0x12f")][Xa("0xf5")]}function Ya(t,e,n,o){const s=t=>!t.item.is(Xa("0x111"))&&!o.isObject(t.item),r=t[Xa("0x112")][Xa("0x75")](s),i=t[Xa("0x12f")].getLastMatchingPosition(s,{direction:"backward"});return!(t.start[Xa("0x24")](r)&&t[Xa("0x12f")][Xa("0x24")](i)||(r[Xa("0x25")](i)?n[Xa("0x13c")](e,{range:n[Xa("0x11e")](r,i)}):n.removeMarker(e),0))}function tc(t){return(0,r.hashObject)(t)}function ec(t){const e=t[Xa("0x112")][Xa("0x10d")];return e&&e.is("element")}function nc(t,e){const n=e[Xa("0xfb")][Xa("0x1d")](t)||e[Xa("0xfb")].isSelectable(t);return e.createRange(e[Xa("0x18")](t,"before"),n?e[Xa("0x130")](t):e[Xa("0x18")](t,Xa("0x12f")))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n.end[Xa("0x24")](o.start))return!0;if(t[Xa("0x10a")]!=e[Xa("0x10a")])return!1;if(!n[Xa("0x12f")].isTouching(o.start))return!1;const r=s[Xa("0x11e")](n[Xa("0x12f")],o[Xa("0x112")])[Xa("0x4c")]();for(const t of r)if([Xa("0xcb"),Xa("0x6a")][Xa("0x52")](t[Xa("0x10a")])&&s[Xa("0xfb")][Xa("0x1a")](t[Xa("0x7c")]))return!1;return!0}function sc(t,e){return!(!t[Xa("0xab")]||!e[Xa("0xab")])&&Go(t[Xa("0x128")],e[Xa("0x128")])}function rc(t,e){const n=ic(t.attributes),o=ic(e);if(!t._isDataLoaded)return!1;for(const t of Object[Xa("0x96")](o))if(!Go(n[t],o[t]))return!1;return!0}function ic(t){const e=Object[Xa("0x51")]({},t);return delete e[Xa("0x12a")],delete e.tablePasteChainId,e}const xc=["_editor","isEnabled","acceptSuggestion","remove","commands","getRanges","canDiscard","_removePendingAction","locale","destroy","model","get","_discardCommand","isDirty","plugins","canAccept","listenTo","change:isDirty","unbind","PendingActions","PENDING_ACTION_SUGGESTION","discardSuggestion","bind","canEditAt","_acceptCommand","add","_setPendingAction","view","_pendingAction"];var ac,cc;ac=xc,cc=317,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[lc("0xc")]=e,this[lc("0x0")]=n,this.commentThreadController=o,this._editor=t,this[lc("0x1a")]=t[lc("0x6")][lc("0xd")](lc("0x4")),this[lc("0xe")]=t.commands[lc("0xd")]("discardSuggestion"),this[lc("0x0")][lc("0x18")](lc("0x3")).to(this[lc("0x1a")],this[lc("0xe")],((t,e)=>t||e)),this[lc("0x0")][lc("0x18")](lc("0x11")).to(this._acceptCommand,"isEnabled",(t=>t&&this[lc("0x2")][lc("0xc")][lc("0x19")](e[lc("0x7")]()))),this[lc("0x0")][lc("0x18")](lc("0x8")).to(this[lc("0xe")],lc("0x3"),(t=>t&&this[lc("0x2")][lc("0xc")].canEditAt(e[lc("0x7")]()))),this[lc("0x1")]=null,n[lc("0xf")]&&this[lc("0x1c")](),this[lc("0x12")](n,"acceptSuggestion",(()=>this.acceptSuggestion())),this[lc("0x12")](n,lc("0x17"),(()=>this[lc("0x17")]())),this.listenTo(n,lc("0x13"),(()=>{n.isDirty?this[lc("0x1c")]():this[lc("0x9")]()}))}[lc("0x4")](){this._acceptCommand.execute(this[lc("0xc")].id)}discardSuggestion(){this._discardCommand.execute(this[lc("0xc")].id)}[lc("0xb")](){this[lc("0x0")].unbind(lc("0x3")),this.view[lc("0x14")](lc("0x11")),this[lc("0x0")][lc("0x14")](lc("0x8")),this.stopListening(),this.commentThreadController.destroy(),this._pendingAction&&this._removePendingAction()}[lc("0x1c")](){const t=Yo(this[lc("0x2")][lc("0xa")],lc("0x16"));this[lc("0x1")]=this[lc("0x2")][lc("0x10")][lc("0xd")](lc("0x15"))[lc("0x1b")](t)}[lc("0x9")](){null!==this._pendingAction&&this[lc("0x2")].plugins[lc("0xd")](lc("0x15"))[lc("0x5")](this[lc("0x1")]),this[lc("0x1")]=null}}const uc=["disabledSubmit","focus","cancel","descriptionParts","isActive","_createCommentViews","assign","locale","commentThread","commentsListView","addComment","_localUser","length","destroy","_createCommentThreadInputView","showInput","canAccept","value","bind","commentInputView","commentThreadInputView","_model","_config","editor","set","updateComment","isReadOnly","delegate","isDirty","fire","removeComment","authoredAt"];var gc,mc;gc=uc,mc=359,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.commentsListView=null,this[fc("0xd")]=null,this[fc("0x11")](fc("0x1d"),!1),this.set("authoredAt",e[fc("0x18")]),this[fc("0xb")]("authoredAt").to(e),this.set(fc("0x1c"),[]),this[fc("0x11")](fc("0x15"),!1),this[fc("0x11")]("isEnabled",!1),this[fc("0x11")](fc("0x9"),!1),this[fc("0x11")]("canDiscard",!1),this._model=e,this[fc("0x4")]=n,this._config=o,o.disableComments?this[fc("0x11")]("length",1):this[fc("0x1e")]()}[fc("0x1a")](){this.element[fc("0x1a")]()}[fc("0x6")](){this[fc("0x2")]&&this[fc("0x2")].destroy(),this.commentThreadInputView&&this.commentThreadInputView.destroy(),super[fc("0x6")]()}[fc("0x1e")](){const{CommentsListView:t}=this[fc("0xf")];this[fc("0x2")]=new t(this[fc("0x0")],this[fc("0xe")][fc("0x1")],Object[fc("0x1f")]({CommentView:this[fc("0xf")].CommentView},this[fc("0xf")])),this[fc("0x2")][fc("0x14")](fc("0x17")).to(this),this[fc("0x2")][fc("0x14")](fc("0x12")).to(this),this.commentsListView.bind(fc("0x1d")).to(this),this.set(fc("0x5"),this[fc("0x2")].length+1),this[fc("0xb")](fc("0x5")).to(this[fc("0x2")],fc("0x5"),(t=>t+1)),this.commentThreadInputView=this[fc("0x7")](),this.on(fc("0x17"),(()=>this[fc("0x1a")]())),this[fc("0xb")]("isDirty").to(this[fc("0x2")],"hasDirtyComment",this[fc("0xd")][fc("0xc")],fc("0xa"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this._config,e=new t(this[fc("0x0")],this._localUser,this[fc("0xf")].editorConfig),n=e[fc("0xc")];return e[fc("0xb")](fc("0x8")).to(this,fc("0x1d"),this[fc("0xe")][fc("0x1")],fc("0x13"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[fc("0x16")](fc("0x3"),e),n[fc("0x10")].setData("")})),n.on(fc("0x1b"),(()=>this[fc("0x1a")]())),n[fc("0xb")](fc("0x19")).to(this[fc("0xe")][fc("0x1")],"isReadOnly"),e}}const pc=["creator","Accept suggestion","Discard suggestion","attributes","EXTERNAL_IMPORT_WORD_AVATAR","name","author","@external","title","ck-suggestion__info","type","userView","ck-annotation__info","getUserViewNotificationText","disableComments",'"></span>',"span","getExternalSuggestionNote","commentsListView","ck-comment__info-time","ck-suggestion__actions","canDiscard","_model","_descriptionElement","split","acceptSuggestion","isEnabled","discardButton","locale","_createButton","ck-suggestion__user","formatDateTime","_config","extendTemplate","push","<p>","join","change:description","getTemplate","descriptionParts","delegate","createElement","EXTERNAL_IMPORT_WORD_SUGGESTION","querySelector",'" title="',"</span>","ck-suggestion","render","discardSuggestion","source","children","content","EXTERNAL_SUGGESTION","ck-annotation","ck-suggestion-","bindTemplate","acceptButton","ck-suggestion--disabled-comments","ck-annotation__actions","ck-suggestion--discard","cancel",'<span class="ck-suggestion-type">',"div","innerHTML","color","time",".ck-annotation__content-wrapper","setTemplate","commentThreadInputView","ck-annotation__user","description","importWord","</p>","editorDestroyed","commentThread","isActive","bind","set","editorReady","EXTERNAL_AVATAR","ck-annotation__content-wrapper","authoredAt","map","isExternal","ck-suggestion__info-name","ck-suggestion-wrapper","innerText","execute"];var bc,Ec;bc=pc,Ec=461,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("0x38")](_c("0x4d"),""),this.bind("type").to(this,_c("0x12"),(t=>t&&t[0]?t[0].type:"")),this[_c("0x37")](_c("0x31")).to(this,"descriptionParts",this,_c("0x36"),((t,e)=>{let n="";for(const e of t)n+=_c("0xe")+Cc(e[_c("0x1e")],e[_c("0x2b")])+_c("0x33");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[_c("0x23")]=this._createButton(Yo(e,_c("0x44")),t.icons.check,"ck-suggestion--accept",_c("0x4"),"sw"),this.acceptButton[_c("0x37")]("isEnabled").to(this,"canAccept"),this.discardButton=this[_c("0x8")](Yo(e,_c("0x45")),t.icons[_c("0x27")],_c("0x26"),_c("0x1b"),"sw"),this[_c("0x6")][_c("0x37")](_c("0x5")).to(this,_c("0x0")),this[_c("0x4e")]=new r.UserView(e,this._model[_c("0x49")],this.getUserViewNotificationText()),this[_c("0x4e")][_c("0xc")]({attributes:{class:[_c("0x9"),_c("0x30")]}}),this[_c("0x2e")](this[_c("0x11")]())}[_c("0x11")](){const t=this[_c("0x22")],e=[{tag:_c("0x29"),attributes:{class:[_c("0x4c"),_c("0x4f")]},children:[{tag:"span",children:[{text:this[_c("0x4e")][_c("0x48")]}],attributes:{class:[_c("0x3f"),"ck-annotation__info-name"]}},{tag:_c("0x2c"),attributes:{datetime:t.to(_c("0x3c")),class:[_c("0x56"),"ck-annotation__info-time"]},children:[{text:t.to(_c("0x3c"),(t=>this[_c("0xb")][_c("0xa")](t)))}]}]},{tag:_c("0x29"),attributes:{class:[_c("0x57"),_c("0x25")]},children:[this[_c("0x23")],this[_c("0x6")]]},{tag:_c("0x29"),attributes:{class:[_c("0x3b")]}}];this[_c("0x1")].isExternal&&e[_c("0xd")]({tag:_c("0x29"),attributes:{class:["ck-comment__external"]},children:[{text:this[_c("0x54")]()}]});const n={tag:_c("0x29"),attributes:{class:[_c("0x40"),t.if(_c("0x36"),"ck-suggestion-wrapper--active"),t.to("type",(t=>_c("0x21")+t)),this[_c("0xb")][_c("0x51")]&&_c("0x24")],"data-suggestion-id":this[_c("0x1")].id,"data-thread-id":this[_c("0x1")][_c("0x35")].id,"data-author-id":this._model[_c("0x49")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[_c("0x19"),_c("0x20")]},children:[this[_c("0x4e")],{tag:_c("0x29"),attributes:{class:["ck-suggestion__main","ck-annotation__main"]},children:e}]}]};return this[_c("0x55")]&&this.commentThreadInputView&&(n[_c("0x1d")][_c("0xd")](this[_c("0x55")],this[_c("0x2f")]),this.commentsListView.delegate("editorReady").to(this),this[_c("0x55")][_c("0x13")]("editorDestroyed").to(this),this[_c("0x2f")][_c("0x13")](_c("0x39")).to(this),this[_c("0x2f")][_c("0x13")](_c("0x34")).to(this)),n}render(){super[_c("0x1a")](),this._descriptionElement=this.element[_c("0x16")](_c("0x2d")),this[_c("0x2")][_c("0x2a")]=this[_c("0x31")],this.on(_c("0x10"),((t,e,n)=>{this[_c("0x2")][_c("0x2a")]=n}))}[_c("0x8")](t,e,n,o,r){const i=new s.ButtonView(this[_c("0x7")]);return i[_c("0x38")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[_c("0xc")]({attributes:{class:n}}),i.on(_c("0x42"),(()=>{this.fire(o,this[_c("0x1")].id)})),i}getExternalSuggestionNote(){return _c("0x32")===this._model[_c("0x46")][_c("0x4a")][_c("0x1c")]?Yo(this.locale,_c("0x15")):Yo(this[_c("0x7")],_c("0x1f"))}[_c("0x50")](){return this[_c("0x1")][_c("0x3e")]?_c("0x32")===this[_c("0x1")][_c("0x46")][_c("0x4a")][_c("0x1c")]?Yo(this[_c("0x7")],_c("0x47"),this[_c("0x1")].creator[_c("0x48")]):Yo(this[_c("0x7")],_c("0x3a"),this[_c("0x1")][_c("0x43")].name):null}}function Cc(t,e){let n="";return n+=t[_c("0x3")]("*")[_c("0x3d")](((t,e)=>e%2!=0?_c("0x28")+yc(t)+_c("0x18"):yc(t)))[_c("0xf")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e.value+_c("0x17")+e[_c("0x4b")]+_c("0x52")),n}function yc(t){const e=document[_c("0x14")](_c("0x53"));return e[_c("0x41")]=t,e[_c("0x2a")]}const kc=["filter","button","Annotations","from","comments","define","head","suggestion-","isDirty","values","createAnnotation","createCommentThreadController","discardSelectedSuggestions","registerAnnotation","discardButton","suggestionLoaded","focus","isEnabled","getAllAdjacentSuggestions","listenTo","comments.maxCommentCharsWhenCollapsed","_disableComments","TrackChangesUI","pluginName","value","some","Discard all selected suggestions","getMarkerNames","actionView","commands","Accept all selected suggestions","componentFactory","type","_unbindEditors","addComment","isInContent","getSuggestion","_destroyController","clear","_handleSuggestionControllerDelayed","destroy","descriptionParts","EditorAnnotations","_updateController","getDescriptions","length","view","buttonView","innerView","trackChanges","refreshSelectedViews","activeMarkers","discardAllSuggestions","comments.editorConfig","trackChanges.SuggestionThreadView","size","addSourceCollector","get","mainView","delete","_handleControllerBuffer","change:previous","separator","keys","previous","editor","acceptAllSuggestions","Discard all suggestions","_bindAnnotationToEditors","execute","bind","push","getFirstRange","getMarkers","init","_createUIButton","remove","_annotationViews","editing","switchbutton","acceptSelectedSuggestions","_initializeController","_suggestionToController","has","model","suggestionUnloaded","add","getByInnerView","_viewToController","map","Track changes","CommentsRepository","isOn","CommentView","source","config","hasSuggestion","TrackChangesEditing","comments.maxThreadTotalWeight","requires","_refreshActiveMarkers","locale","set","plugins","arrowView","trackChanges.disableComments","commandName","_descriptionFactory","toMany","suggestionChanged"];var Ac,vc;Ac=kc,vc=397,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("0x20")](){return[$a,r.Users,Rc("0x18"),Rc("0x2d"),Rc("0x55")]}static get[Rc("0x42")](){return Rc("0x41")}constructor(t){super(t),this[Rc("0xf")]=new Map,this[Rc("0x15")]=new Map,this[Rc("0xa")]=new Map,this._handleControllerBuffer=new Map;const e=this.editor[Rc("0x1c")];e[Rc("0x30")](Rc("0x61"),Tc),e[Rc("0x30")](Rc("0x26"),!1),this[Rc("0x40")]=e[Rc("0x64")](Rc("0x26"))}[Rc("0x52")](t,e){0===this._handleControllerBuffer[Rc("0x62")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Rc("0xf")].has(t);n||e?n&&e&&this[Rc("0x50")](t):this[Rc("0xe")](t)}this[Rc("0x6c")].plugins.get(Rc("0x55"))[Rc("0x5d")](),this[Rc("0x21")](),this[Rc("0x67")][Rc("0x51")]()}),10),this[Rc("0x67")][Rc("0x23")](t,e)}[Rc("0x7")](){const t=this[Rc("0x6c")],e=t.plugins[Rc("0x64")]("TrackChangesEditing"),n=t[Rc("0x24")][Rc("0x64")](Rc("0x2d")),o=t[Rc("0x24")][Rc("0x64")]("EditorAnnotations"),s=t.plugins[Rc("0x64")](Rc("0x18"));t.ui[Rc("0x4a")][Rc("0x13")]("trackChanges",(t=>this[Rc("0x8")](t))),o[Rc("0x63")]((()=>{const t=[];for(const[e,n]of Array[Rc("0x2e")](this[Rc("0xf")])){const o=e[Rc("0x3d")](),s=[];for(const t of o){if(!t[Rc("0x4e")])continue;if(t.isMultiRange){s[Rc("0x4")](...t.getRanges());continue}const e=t[Rc("0x5")]();if(s[Rc("0x58")]>0){const t=s[0].getJoined(e);if(t){s[0]=t;continue}}s[Rc("0x4")](e)}t[Rc("0x4")]([n[Rc("0x59")],s])}return t})),this[Rc("0x3e")](e,Rc("0x3a"),((t,e)=>{this[Rc("0x3e")](e,Rc("0x68"),((t,n,o,s)=>{e[Rc("0x4e")]&&(null==o?(this._updateController(s[Rc("0x31")]),this[Rc("0x52")](e,!1)):(this[Rc("0x56")](o[Rc("0x31")]),this[Rc("0x52")](e,!0)))})),null===e[Rc("0x6b")]?this[Rc("0x52")](e,!1):this[Rc("0x56")](e.head)})),this[Rc("0x3e")](e,Rc("0x12"),((t,e,n)=>{this.stopListening(e,Rc("0x68")),this._handleControllerBuffer[Rc("0x66")](e);const o=n?n[Rc("0x31")]:e,s=this[Rc("0xf")][Rc("0x64")](o);null!==n&&this._updateController(o),null===n&&s&&this[Rc("0x50")](e)})),this[Rc("0x3e")](e,Rc("0x2a"),((t,e)=>{this[Rc("0x56")](e)})),this.listenTo(n,"change:activeAnnotations",(()=>{this._refreshActiveMarkers()})),this[Rc("0x3e")](s,Rc("0x4d"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0x1d")](n))return;const s=e[Rc("0x4f")](n);this[Rc("0xf")][Rc("0x64")](s).view[Rc("0x3b")]()}),{priority:"lowest"})}[Rc("0x21")](){const t=this[Rc("0x6c")][Rc("0x24")][Rc("0x64")](Rc("0x2d")),e=this[Rc("0x6c")][Rc("0x24")][Rc("0x64")](Rc("0x1e")),n=Array[Rc("0x2e")](t.activeAnnotations,(t=>t[Rc("0x5b")]))[Rc("0x2b")]((t=>this[Rc("0x15")][Rc("0x10")](t))),o=[];for(const t of n){const e=this[Rc("0x15")].get(t)[Rc("0x11")][Rc("0x3d")]();o[Rc("0x4")](...e.reduce(((t,e)=>[...t,...e[Rc("0x46")]()]),[]))}e[Rc("0x5e")]=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Rc("0x6c")][Rc("0x48")][Rc("0x64")](Rc("0x5c")),r=Yo(t,Rc("0x17"));n[Rc("0x5a")][Rc("0x23")]({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("0x3")]("isOn").to(o,Rc("0x43")),n[Rc("0x5a")].on(Rc("0x2"),(()=>{o[Rc("0x2")](),this.editor[Rc("0xb")][Rc("0x59")][Rc("0x3b")]()}));const i=new e.Collection,x=[{type:Rc("0xc"),model:{withText:!0,label:r,commandName:Rc("0x5c")}},{type:Rc("0x69")},{type:"button",model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Rc("0x6d")}},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x49")),commandName:Rc("0xd")}},{type:Rc("0x2c"),model:{withText:!0,label:Yo(t,Rc("0x0")),commandName:Rc("0x5f")}},{type:Rc("0x2c"),model:{withText:!0,label:Yo(t,Rc("0x45")),commandName:Rc("0x37")}}];for(const t of x){let e={type:Rc("0x69")};if(t[Rc("0x11")]){const n=new s.Model(t.model),o=this.editor[Rc("0x48")].get(n.commandName);n[Rc("0x3")](Rc("0x19"),Rc("0x3c")).to(o,"value",Rc("0x3c")),e={type:t[Rc("0x4b")],model:n}}i[Rc("0x13")](e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Rc("0x11")]))[Rc("0x16")]((t=>this[Rc("0x6c")][Rc("0x48")][Rc("0x64")](t.model[Rc("0x27")]))),c=n.buttonView;return c[Rc("0x47")].unbind(Rc("0x3c")),c[Rc("0x25")].unbind(Rc("0x3c")),c.actionView[Rc("0x3")](Rc("0x3c")).to(o,"isEnabled"),c[Rc("0x25")][Rc("0x3")](Rc("0x3c"))[Rc("0x29")](a,Rc("0x3c"),((...t)=>t[Rc("0x44")]((t=>t)))),n.on("execute",(t=>{this[Rc("0x6c")][Rc("0x2")](t[Rc("0x1b")].commandName),this[Rc("0x6c")][Rc("0xb")][Rc("0x59")][Rc("0x3b")]()})),n}[Rc("0xe")](t){const e=this.editor,n=e[Rc("0x1c")],o=e[Rc("0x24")][Rc("0x64")](Rc("0x2d")),s=e[Rc("0x24")][Rc("0x64")](Rc("0x18")),i=e[Rc("0x24")][Rc("0x64")](Rc("0x55")),x=e[Rc("0x24")][Rc("0x64")](r.Users).me,a=n[Rc("0x64")]("trackChanges").SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x24")][Rc("0x64")]("CommentsUI");let d,u;this[Rc("0xa")][Rc("0x10")](t.id)?(u=this[Rc("0xa")].get(t.id),d=u.mainView):(d=new a(e[Rc("0x22")],t,x,{disableComments:this._disableComments,editorConfig:n[Rc("0x64")](Rc("0x60")),maxCommentsWhenCollapsed:n[Rc("0x64")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n.get(Rc("0x1f")),maxCommentCharsWhenCollapsed:n[Rc("0x64")](Rc("0x3f")),formatDateTime:(0,r.getDateTimeFormatter)(n[Rc("0x64")]("locale")),CommentView:n[Rc("0x64")](Rc("0x2f"))[Rc("0x1a")],CommentsListView:c,CommentThreadInputView:l}),d.acceptButton.on(Rc("0x2"),(()=>{e[Rc("0xb")][Rc("0x59")].focus()})),d[Rc("0x39")].on(Rc("0x2"),(()=>{e[Rc("0xb")][Rc("0x59")][Rc("0x3b")]()})),u=o.createAnnotationView(this[Rc("0x6c")][Rc("0x22")],d),u[Rc("0x3")](Rc("0x33")).to(d,Rc("0x33")),u[Rc("0x3")](Rc("0x58")).to(d),u[Rc("0x3")](Rc("0x4b")).to(d,Rc("0x4b"),(t=>Rc("0x32")+t)),this._annotationViews.set(t.id,u));const g=s[Rc("0x36")](t.commentThread,d),m=new dc(e,t,d,g),f=t[Rc("0x3d")]().filter((t=>t[Rc("0x4e")]));d[Rc("0x54")]=e[Rc("0x24")][Rc("0x64")](Rc("0x1e"))[Rc("0x28")].getDescriptions(f),this._suggestionToController[Rc("0x23")](t,m),this._viewToController[Rc("0x23")](d,m);const h=o[Rc("0x35")]({view:u,target:()=>{const n=[],o=t[Rc("0x3d")]().filter((t=>t[Rc("0x4e")]));for(const t of o)n[Rc("0x4")](...t[Rc("0x6")]());return(0,r.getAllMarkersDomElementsSorted)(e[Rc("0xb")],n)},type:()=>Rc("0x32")+m[Rc("0x59")][Rc("0x4b")]});s[Rc("0x1")](d,h),o.add(h),i[Rc("0x38")](h)}[Rc("0x50")](t){const e=this[Rc("0x6c")][Rc("0x24")].get(Rc("0x18")),n=this[Rc("0x6c")][Rc("0x24")][Rc("0x64")]("Annotations"),o=this[Rc("0xf")].get(t),s=o[Rc("0x59")],r=n[Rc("0x14")](s);e[Rc("0x4c")](s),r&&n[Rc("0x9")](r),this[Rc("0xf")][Rc("0x66")](t),this[Rc("0x15")][Rc("0x66")](s),o.destroy()}[Rc("0x56")](t){if(!t.isInContent||!this[Rc("0xf")].has(t))return;const e=this.editor.plugins[Rc("0x64")](Rc("0x1e")),n=this[Rc("0xf")].get(t),o=t[Rc("0x3d")]();n.view[Rc("0x54")]=e[Rc("0x28")][Rc("0x57")](o)}[Rc("0x53")](){for(const t of this[Rc("0xf")][Rc("0x6a")]())this[Rc("0x50")](t);for(const t of this[Rc("0xa")][Rc("0x34")]())t[Rc("0x65")][Rc("0x53")]();super[Rc("0x53")]()}}var Ic,Lc,Nc=["pluginName","editor","requires","plugins","get","addSuggestion","getSuggestion","getSuggestions","Comments","adapter"];Ic=Nc,Lc=185,function(t){for(;--t;)Ic.push(Ic.shift())}(++Lc);var wc=function(t,e){return Nc[t-=0]};class Mc extends t.Plugin{static get[wc("0x7")](){return[$a,Sc,wc("0x3")]}static get[wc("0x5")](){return"TrackChanges"}set[wc("0x4")](t){this[wc("0x6")][wc("0x8")].get($a)[wc("0x4")]=t}get[wc("0x4")](){return this[wc("0x6")][wc("0x8")][wc("0x9")]($a)[wc("0x4")]}[wc("0x0")](t){return this[wc("0x6")][wc("0x8")][wc("0x9")]($a).addSuggestionData(t)}[wc("0x2")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[wc("0x6")].plugins[wc("0x9")]($a).getSuggestions({skipNotAttached:t,toJSON:e})}[wc("0x1")](t){return this[wc("0x6")][wc("0x8")].get($a)[wc("0x1")](t)}}const Oc=["config","TrackChangesEditing","getRootNames","editorCreator","users","trackChangesData","plugins","map","CommentsRepository","div","discardAllSuggestions","getRootsAttributes","function","acceptAllSuggestions","get","createDocumentFragment","createElement","editor","reduce","Pagination","init","track-changes-data-invalid-editor-creator","end","getFullData","data","appendChild","useAnonymousUser","define","constructor","Users","set","pluginName","TrackChangesData","requires","result","document","getDataWithDiscardedSuggestions","rootsAttributes","execute","TrackChangesDataGetter"];var Fc,Pc;Fc=Oc,Pc=422,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=[Dc("0x25")];class jc extends t.Plugin{static get[Dc("0xb")](){return[$a]}static get pluginName(){return Dc("0xa")}init(){const t=this.editor;if(t[Dc("0x12")][Dc("0x5")]("trackChangesData.editorCreator",(e=>{const n=t.model[Dc("0xd")].getRootNames()[Dc("0x24")](((t,e)=>(t[e]="",t)),{});return t[Dc("0x6")].create(n,e)})),Dc("0x1e")!=typeof t[Dc("0x12")].get(Dc("0x17")).editorCreator)throw new e.CKEditorError(Dc("0x27"))}getDataWithAcceptedSuggestions(t){return Hc(this[Dc("0x23")],!0,t)}[Dc("0xe")](t){return Hc(this.editor,!1,t)}}class Uc extends t.Plugin{static get[Dc("0x9")](){return Dc("0x11")}constructor(t){super(t),this[Dc("0xc")]=Dc("0x0")}[Dc("0x26")](){this[Dc("0x23")][Dc("0x18")][Dc("0x20")](Dc("0x1a"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Dc("0x23")][Dc("0x18")].get(Dc("0x13"))._adapter=null}}function Gc(t){return void 0!==t.getRootsAttributes}async function Hc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Bc);o[Dc("0x18")].push($a,Uc),o[Dc("0xf")]=Gc(t)?t[Dc("0x1d")]():void 0;const s=document[Dc("0x21")](),i=t[Dc("0x12")][Dc("0x20")](Dc("0x17"))[Dc("0x15")],x=await i(o,(()=>function(t){const e=document[Dc("0x22")](Dc("0x1b"));return t[Dc("0x3")](e),e}(s)));!function(t,e){const n=t.model[Dc("0xd")][Dc("0x14")]().reduce(((e,n)=>(e[n]=t[Dc("0x2")].get({rootName:n}),e)),{}),o=t[Dc("0x18")].get(Dc("0x7"))[Dc("0x16")][Dc("0x19")]((t=>({id:t.id,name:t.name}))),s=t[Dc("0x18")].get(Dc("0x13")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e[Dc("0x18")].get("Users"),i=e[Dc("0x18")][Dc("0x20")](Dc("0x13"));for(const t of o)r.getUser(t.id)||r.addUser(t);r.me||r[Dc("0x4")]();for(const t of s)i.addSuggestionData(t);e[Dc("0x2")][Dc("0x8")](n)}(t,x),x[Dc("0x10")](Dc(e?"0x1f":"0x1c"));const a=Gc(x)?x[Dc("0x1")](n):x.data[Dc("0x20")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|