@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230710.1 → 0.0.0-nightly-20230712.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/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.d.ts +12 -0
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.d.ts +2 -2
- 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:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Mc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["commands","TrackChangesCommand","has","execute","_enableCommands","isEnabled","forceDisabled","clearForceDisabled","_isEnabledBasedOnSelection","_disableUnsupportedCommands","editor","refresh","_enabledCommands","value"];var c,l;c=a,l=434,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0xd")]=!1,this[u("0xb")](),this[u("0x8")]=!1}[u("0xb")](){this[u("0x5")]=!0}[u("0x3")](){this[u("0xd")]=!this[u("0xd")],this[u("0xd")]?this[u("0x9")]():this[u("0x4")]()}_disableUnsupportedCommands(){for(const t of this.editor.commands.commands())t.affectsData&&!this._enabledCommands[u("0x2")](t)&&t[u("0x6")](u("0x1"))}[u("0x4")](){for(const t of this[u("0xa")][u("0x0")][u("0x0")]())t.affectsData&&!this[u("0xc")][u("0x2")](t)&&t[u("0x7")](u("0x1"))}}const g=["get","_suggestions","plugins","isEnabled","TrackChangesEditing","track-changes-accept-suggestion-not-found","refresh","execute","editor","canEditAt","model"];var m,f;m=g,f=250,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("0x4")]=e,this[h("0x9")](),this._isEnabledBasedOnSelection=!1}refresh(){this[h("0x6")]=!0}[h("0xa")](t){const n=this[h("0x4")][h("0x3")](t);if(!n)throw new e.CKEditorError(h("0x8"),this);const o=n.getRanges();this.editor[h("0x2")][h("0x1")](o)&&this[h("0x0")][h("0x5")][h("0x3")](h("0x7")).acceptSuggestion(n)}}const b=["get","refresh","canEditAt","isEnabled","track-changes-discard-suggestion-not-found","_suggestions","model","plugins","execute","getRanges","editor","TrackChangesEditing"];var E,_;E=b,_=428,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("0x9")]=e,this[T("0x5")](),this._isEnabledBasedOnSelection=!1}refresh(){this[T("0x7")]=!0}[T("0x0")](t){const n=this._suggestions[T("0x4")](t);if(!n)throw new e.CKEditorError(T("0x8"),this);const o=n[T("0x1")]();this[T("0x2")][T("0xa")][T("0x6")](o)&&this[T("0x2")][T("0xb")][T("0x4")](T("0x3")).discardSuggestion(n)}}const y=["isMultiRange","next","deletion","createPositionAfter","isObject","content","end","map","push","replace","createPositionBefore","value","getMarkers","isInContent","getRange","type","splice","createPositionAt","isIntersecting","color"," [color ","sort","schema","isTouching","isCollapsed","createRange","join"];var k,A;k=y,A=464,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x10")](((t,e)=>"deletion"==t.type&&v("0x18")!=e[v("0xa")]?-1:v("0x18")!=t[v("0xa")]&&v("0x18")==e[v("0xa")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x11")];for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[v("0x5")](i)),I(e,i,x)||(s[v("0x3")](e[v("0x14")](n,r[v("0x1a")](i)?e[v("0x19")](i):e[v("0xc")](i,"end"))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),s=t[v("0x5")](n);return o[v("0x12")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0xb")](0,100);t.change((()=>{for(const t of o)t[v("0x8")]&&e.execute(t.id)}))}}const N=["isEnabled","from","values","editor","_command","_suggestions","refresh","isInContent","model"];var M,w;M=N,w=183,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x1")]=e,this._suggestions=n,this[O("0x3")](),this._isEnabledBasedOnSelection=!1}[O("0x3")](){const t=Array.from(this[O("0x2")].values()).some((t=>t[O("0x4")]));this[O("0x6")]=this[O("0x1")][O("0x6")]&&t}execute(){const t=R(Array[O("0x7")](this[O("0x2")][O("0x8")]()));for(const e of t){const t=e.getRanges();if(!this.editor[O("0x5")].canEditAt(t))return}L(this[O("0x0")][O("0x5")],this[O("0x1")],t)}}const P=["_command","_selectedSuggestions","model","canEditAt","_isEnabledBasedOnSelection","from","editor","document","isEnabled","_suggestions","size","refresh","values","getRanges","selection"];var D,B;D=P,B=135,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("0x0")]=e,this[j("0x9")]=n,this[j("0x1")]=new Set,this[j("0xb")](),this[j("0x4")]=!1}[j("0xb")](){const t=this[j("0x6")][j("0x2")][j("0x7")][j("0xe")],e=Array[j("0x5")](this[j("0x9")][j("0xc")]());this[j("0x1")]=function(t,e){const n=Array.from(t.getRanges()),o=new Set;for(const s of e)if(s[v("0x8")])for(const e of n)for(const n of s[v("0x7")]()){const r=n[v("0x9")]();(e[v("0xd")](r)||t[v("0x13")]&&!s[v("0x16")]&&s[v("0x17")]&&r[v("0x1")][v("0x12")](e.start))&&o.add(s)}return o}(t,e),this[j("0x8")]=this[j("0x0")][j("0x8")]&&!!this[j("0x1")][j("0xa")]}execute(){const t=R(Array[j("0x5")](this[j("0x1")]));for(const e of t){const t=e[j("0xd")]();if(!this[j("0x6")][j("0x2")][j("0x3")](t))return}L(this[j("0x6")][j("0x2")],this[j("0x0")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const 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 St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(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 xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=Sn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,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=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){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 So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var 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<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,u=(c=c==Fo?Do:c)==Do,d=a==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):Mo(t,e,a,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||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["nodeBefore","decorate","_markerNames","removeAttribute","addMarkerName","accept","getMultiRangeId","next","@external","previous","getItems","getMarkerNames","_saved","getFirstRange","removeMarker","attributes","subType","data","get","type","change","isIntersectingWithRange","isExternal","getMarkers","map","head","size","substr","delete","filter","length","set","addRange","_model","onAccept","toJSON","onAttributesChange","_onDiscard","reduce","_onAccept","hasComments","start","isInContent","from","_onAttributesChange","getRanges","getRange","add","createdAt","markers","removeMarkers","getContainedElement","commentThread","discard","getFirstMarker","setAttribute","creator","author","isIntersecting"];var $o,Jo;$o=Xo,Jo=416,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.id=e.id,this[Qo("0x10")]=e[Qo("0x10")],this[Qo("0xd")]=e[Qo("0xd")]||null,this[Qo("0x36")]=e[Qo("0x36")],this.creator=e[Qo("0x35")]||e[Qo("0x36")],this[Qo("0x13")]=Boolean(e[Qo("0xc")]&&e[Qo("0xc")][Qo("0x5")]),this[Qo("0xe")]=null,this[Qo("0x1e")]=t,this._onAccept=e[Qo("0x1f")],this[Qo("0x22")]=e.onDiscard,this[Qo("0x29")]=e[Qo("0x21")],this[Qo("0x3a")]=new Set,this.createdAt=null,this[Qo("0x1c")]("authoredAt",null),this[Qo("0x1c")](Qo("0xc"),e.attributes||{}),this[Qo("0x1c")](Qo("0x6"),null),this[Qo("0x1c")]("next",null),this.set("commentThread",null),this[Qo("0x1c")](Qo("0x9"),!1),this[Qo("0x39")](Qo("0x2")),this.decorate(Qo("0x32"))}get[Qo("0x16")](){let t=this;for(;t.previous;)t=t[Qo("0x6")];return t}get[Qo("0x25")](){return!!this[Qo("0x31")]&&this[Qo("0x31")].length>0}get isMultiRange(){return 0!=this[Qo("0x3a")][Qo("0x17")]&&6==Array[Qo("0x28")](this[Qo("0x3a")])[0].split(":").length}get[Qo("0x27")](){return null!==this[Qo("0x33")]()}[Qo("0x1")](t){this._markerNames[Qo("0x2c")](t)}[Qo("0x8")](){return Array.from(this._markerNames)}[Qo("0x14")](){return this[Qo("0x8")]()[Qo("0x15")]((t=>this._model[Qo("0x2e")][Qo("0xf")](t)))[Qo("0x1a")]((t=>t))}[Qo("0x33")](){return this.getMarkers()[0]||null}removeMarkers(){this[Qo("0x1e")][Qo("0x11")]((t=>{for(const e of this.getMarkers())t[Qo("0xb")](e)})),this[Qo("0x3a")].clear()}[Qo("0xb")](t){this._model[Qo("0x11")]((e=>{e[Qo("0xb")](t)})),this[Qo("0x3a")][Qo("0x19")](t)}[Qo("0x1d")](t){const e="suggestion:"+this[Qo("0x10")]+":"+this[Qo("0xd")]+":"+this.id+":"+this[Qo("0x35")].id+":"+Zo[Qo("0x3")]();this[Qo("0x1")](e),this[Qo("0x1e")].change((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x12")](t){for(const e of this[Qo("0x2a")]())if(e[Qo("0x37")](t))return!0;return!1}[Qo("0x2a")](){return this[Qo("0x14")]().map((t=>t[Qo("0x2b")]()))}getItems(){return this[Qo("0x2a")]()[Qo("0x23")](((t,e)=>[...t,...e[Qo("0x7")]()]),[])}[Qo("0xa")](){var t;return(null===(t=this[Qo("0x33")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x30")](){const t=this[Qo("0x2a")]();if(1!=t[Qo("0x1b")])return null;const e=t[0],n=e[Qo("0x26")].nodeAfter,o=e.end[Qo("0x38")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x2")](){this[Qo("0x24")](this[Qo("0x2a")](),this.data,this[Qo("0xc")]),this[Qo("0x2f")]()}[Qo("0x32")](){this[Qo("0x22")](this.getRanges(),this[Qo("0xe")],this.attributes),this[Qo("0x2f")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x16")];for(;e;)t.push(e),e=e[Qo("0x4")];return t}[Qo("0x34")](t,e){const n=eo(this[Qo("0xc")]);_o(n,t,e),Go(n,this[Qo("0xc")])||(this[Qo("0xc")]=n,this[Qo("0x29")](n))}[Qo("0x0")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0xc")])||(this[Qo("0xc")]=e,this[Qo("0x29")](this.attributes))}[Qo("0x20")](){return{id:this.id,type:this[Qo("0xd")]?this.type+":"+this.subType:this[Qo("0x10")],authorId:this.creator.id,createdAt:this[Qo("0x2d")],hasComments:this.hasComments,data:this[Qo("0xe")],attributes:this[Qo("0xc")]}}static[Qo("0x3")](){return(0,e.uid)()[Qo("0x18")](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=["skip","get","*Merge:* %0","$text","*Remove:* %0","isInContent","$textProxy","item","previousSibling","replace","_locale","name","elementEnd","deletion","Container","type","indexOf","_addDescriptionItems","isObject","checkChild","ELEMENT_SPACE","Object","text","normal","_resolveDescriptionItems","data","*Insert:* %0","nextSibling","match","remove","length","_customCallbacks","removeContainer","insertion","getFirstRange","function","_schema","EmptyContainer","pop","_itemLabelsCallbacks","isEmpty","start","$1 $2","_itemLabels","getDescriptions","registerDescriptionCallback","add","removeObject","push","getItemLabel","*Split:* %0","quantity","element"];var es,ns;es=ts,ns=177,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("0xd")]=[],this[os("0x19")]=new Map,this[os("0x15")]=[],this[os("0x12")]=t,this[os("0x2d")]=e}[os("0x1a")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[os("0x28")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x32")in n&&e.push(n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x10")]().end.isEqual(s[os("0x10")]()[os("0x17")])){const t=e[e[os("0xc")]-1],n=os("0xf")==o.type?os("0x1c"):os("0xb");t&&os("0x4")==t[os("0x32")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x1b")](t){this[os("0xd")][os("0x1e")](t)}registerElementLabel(t,n,o=e.priorities[os("0x5")]){os("0x11")==typeof t?(0,e.insertToPriorityArray)(this[os("0x15")],{matchingCallback:t,label:n,priority:o}):this._itemLabels.set(t,n)}[os("0x1f")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e.label;break}return n||(n=this[os("0x19")][os("0x24")](t[os("0x2e")])),n?n(e):1!==e?e+" "+t[os("0x2e")]+"s":""+t[os("0x2e")]}[os("0x34")](t,e){const n=e.getFirstRange().getWalker(),o="insertion"==e[os("0x32")]?os("0x1c"):"remove";for(const e of n){const s=e[os("0x2a")],r=t[t[os("0xc")]-1];if(s.is(os("0x29")))r&&r[os("0x32")][os("0x33")](os("0x31"))>-1&&t[os("0x14")](),r&&os("0x4")==r.type?r[o]+=s[os("0x7")]:t[os("0x1e")]({type:os("0x4"),add:os("0x1c")==o?s[os("0x7")]:"",remove:os("0xb")==o?s.data:""});else if(this[os("0x12")][os("0x0")](s)){const i=s;if(r&&r[os("0x32")][os("0x33")](os("0x31"))>-1&&t[os("0x14")](),os("0x2f")==e[os("0x32")])continue;r&&r.type==o+os("0x3")&&r[os("0x22")][os("0x2e")]==i.name?r.quantity++:t.push({type:o+os("0x3"),element:i,quantity:1}),n[os("0x23")]((t=>!("elementEnd"==t[os("0x32")]&&t[os("0x2a")]==s)))}else if(this[os("0x12")][os("0x1")](s,os("0x26"))||s.is(os("0x22"),"softBreak")){const n=s;if("add"==o&&"elementStart"==e[os("0x32")]||"remove"==o&&os("0x2f")==e[os("0x32")])continue;if(r&&-1==r.type[os("0x33")](os("0x31"))){os("0x4")==r[os("0x32")]&&(r[o]+="\n");continue}let i;if(i=os("0x1c")==o?n[os("0x9")]&&!this[os("0x12")].isObject(n.nextSibling)?n[os("0x9")]:null:n[os("0x2b")]&&!this[os("0x12")][os("0x0")](n[os("0x2b")])?n[os("0x2b")]:null,n.isEmpty||i&&i[os("0x16")]){const e=i&&i[os("0x16")]?i:n;r&&r[os("0x32")]==o+os("0x13")&&r[os("0x22")][os("0x2e")]==e.name?r.quantity++:t[os("0x1e")]({type:o+os("0x13"),element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}[os("0x6")](t){const e=this[os("0x2d")],n=[];for(const o of t){switch(o[os("0x32")]){case"text":if(o.add=o[os("0x1c")][os("0x2c")](/(\S)\u000A+(\S)/g,os("0x18"))[os("0x2c")](/\u000A/g,""),o[os("0xb")]=o[os("0xb")].replace(/(\S)\u000A+(\S)/g,"$1 $2")[os("0x2c")](/\u000A/g,""),""!=o[os("0x1c")]&&""!=o[os("0xb")]){n.push({type:os("0x2c"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0xb")]+'"','"'+o[os("0x1c")]+'"'])});continue}if(null!=o[os("0x1c")][os("0xa")](/^ +$/)){n[os("0x1e")]({type:os("0xf"),content:Yo(e,os("0x8"),Yo(e,"ELEMENT_SPACE",o.add.length))});continue}if(null!=o[os("0xb")][os("0xa")](/^ +$/)){n.push({type:os("0x30"),content:Yo(e,os("0x27"),Yo(e,os("0x2"),o[os("0xb")].length))});continue}if(""!=o[os("0x1c")]){n.push({type:"insertion",content:Yo(e,os("0x8"),'"'+o.add+'"')});continue}n[os("0x1e")]({type:"deletion",content:Yo(e,os("0x27"),'"'+o[os("0xb")]+'"')});continue;case"addEmptyContainer":case"addObject":n[os("0x1e")]({type:"insertion",content:Yo(e,os("0x8"),this.getItemLabel(o.element,o[os("0x21")]))});continue;case"removeEmptyContainer":case os("0x1d"):n[os("0x1e")]({type:os("0x30"),content:Yo(e,os("0x27"),this.getItemLabel(o.element,o[os("0x21")]))});continue;case"addContainer":n[os("0x1e")]({type:os("0xf"),content:Yo(e,os("0x20"),this[os("0x1f")](o[os("0x22")],o[os("0x21")]))});continue;case os("0xe"):n.push({type:os("0x30"),content:Yo(e,os("0x25"),this[os("0x1f")](o.element,o.quantity))});continue}n.push(o)}return n}}const rs=["commandName","has","get","value","locale","enableCommand","TrackChangesEditing","filter","center","_descriptionFactory","*Format:* %0","contentLanguageDirection","document","getAttribute","alignment","selection","model","FORMAT_ALIGN_TO_RIGHT","commandParams","FORMAT_ALIGN_TO_LEFT","AlignmentEditing","from","change","plugins","right","afterInit","left","markBlockFormat","getSelectedBlocks","FORMAT_ALIGN_TO_CENTER","justify","editor","format","FORMAT_JUSTIFY_TEXT"];var is,xs;is=rs,xs=479,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x16")](){const t=this[as("0x1c")],e=t[as("0x1")];if(!t[as("0x14")][as("0x20")](as("0x11")))return;const n=t.plugins[as("0x21")](as("0x3"));n[as("0x2")]("alignment",((e,o={})=>{let s=o.value;o.value||(s="ltr"===t[as("0x1")][as("0x8")]?"left":as("0x15"));const r=Array[as("0x12")](this.editor[as("0xd")][as("0x9")][as("0xc")][as("0x19")]())[as("0x4")]((t=>function(t,e,n){const o=t[as("0xa")](as("0xb"))||null;return e.checkAttribute(t,as("0xb"))&&n!=o}(t,this[as("0x1c")][as("0xd")].schema,s)));t[as("0xd")][as("0x13")]((()=>{for(const t of r)n[as("0x18")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[as("0x6")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0xb")==n[as("0x1f")]){const t=n[as("0xf")][0][as("0x0")];return{type:as("0x1d"),content:Yo(e,as("0x7"),function(t){switch(t){case as("0x17"):return Yo(e,as("0x10"));case as("0x15"):return Yo(e,as("0xe"));case as("0x5"):return Yo(e,as("0x1a"));case as("0x1b"):return Yo(e,as("0x1e"))}}(t))}}}))}}const ls=["getAttribute","includes","consumable","hasAttribute","isLimit","createRangeOn","addHighlight","name","getItems","insert","nextSibling","mapper","test","parent","bindElementToMarker","get","plugins","ck-suggestion-marker--active","activeMarkers","markerRange","ck-suggestion-marker-","listItem","previousPosition","addClass","markerName","writer","schema","push","getWalker","element","elementEnd","toViewPosition","isBlock","model","toViewElement","TrackChangesEditing","start","getCustomProperty"];var us,ds;us=ls,ds=365,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x17")]())s[gs("0x12")](t)&&o[gs("0x4")](n[gs("0x14")](s));return o}function fs(t){const e=[];if(t.is("element","listItem")){let n=t[gs("0x19")];for(;n&&n.is(gs("0x6"),gs("0x24"))&&n[gs("0xf")]("listIndent")>0;)e.push(n),n=n[gs("0x19")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x1f")][gs("0x1e")](gs("0xc"));return(s,r,i)=>{if(!i[gs("0x11")][gs("0x1b")](r.markerRange,s[gs("0x16")]))return;const x=r[gs("0x22")][gs("0x5")](),a=r[gs("0x22")][gs("0xd")],c=t[gs("0xa")][gs("0x3")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c.isContent(e);const n=i[gs("0x1a")][gs("0xb")](e);if(n&&n[gs("0xe")](gs("0x15")))return;gs("0x7")==t.type&&c[gs("0x9")](e)&&!c[gs("0x13")](e)&&(e[gs("0x19")]||a.isAtEnd?l&&l[gs("0x1c")]==e||(l=e,m(t[gs("0x25")]),g=!0):u=u||t.previousPosition)}function m(t){const s=i[gs("0x2")].createUIElement("span",{class:gs("0x23")+e}),x=i[gs("0x1a")][gs("0x8")](t);n&&o[gs("0x21")][gs("0x10")](r[gs("0x1")])&&i[gs("0x2")][gs("0x0")](gs("0x20"),s),i[gs("0x2")][gs("0x18")](x,s),i[gs("0x1a")][gs("0x1d")](s,r.markerName)}d||g||!u||m(u)}}const ps=["forceValue","*Remove format:* %0","getRanges","afterInit","commands","plugins","SuperscriptEditing","from","StrikethroughEditing","FORMAT_STRIKETHROUGH","change","selection","get","model","ItalicEditing","document","subscript","underline","value","format","FORMAT_UNDERLINE","enableCommand","SubscriptEditing","slice","editor","commandParams","UnderlineEditing","code","strikethrough","*Format:* %0","superscript","registerDescriptionCallback","BoldEditing","FORMAT_CODE","italic","TrackChangesEditing","CodeEditing","locale"];var bs,Es;bs=ps,Es=137,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x9"),_s("0x1d"),_s("0x3"),_s("0xd"),_s("0x17"),_s("0x25"),_s("0x15")];class Cs extends t.Plugin{[_s("0x12")](){const t=this[_s("0x1")],e=t[_s("0x1c")],n=t[_s("0x14")][_s("0x1b")](_s("0xc")),o=t[_s("0xe")];for(const o of Ts){if(!t[_s("0x14")].has(o))continue;const s=o[_s("0x0")](0,-7).toLowerCase(),r=t[_s("0x13")][_s("0x1b")](s);n[_s("0x24")](s,((t,o={})=>{const i=e[_s("0x1e")][_s("0x1a")];if(i.isCollapsed)return void t(o);const x=void 0!==o[_s("0xf")]?o.forceValue:!r[_s("0x21")];e[_s("0x19")]((()=>{const t=Array[_s("0x16")](i[_s("0x11")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory[_s("0x8")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[_s("0x2")][0].forceValue?{type:"format",content:Yo(o,_s("0x6"),e)}:{type:_s("0x22"),content:Yo(o,_s("0x10"),e)}}))}s("bold",Yo(o,"FORMAT_BOLD")),s(_s("0xb"),Yo(o,"FORMAT_ITALIC")),s(_s("0x20"),Yo(o,_s("0x23"))),s(_s("0x4"),Yo(o,_s("0xa"))),s(_s("0x5"),Yo(o,_s("0x18"))),s(_s("0x1f"),Yo(o,"FORMAT_SUBSCRIPT")),s(_s("0x7"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const ys=["*Remove format:* %0","filter","schema","commandName","has","TrackChangesEditing","model","$root","locale","enableCommand","checkChild","document","blockQuote","selection","get","name","getSelectedBlocks","editor","*Format:* %0","forceValue","markBlockFormat","afterInit","plugins","ELEMENT_BLOCK_QUOTE","format","_descriptionFactory","parent","BlockQuoteEditing"];var ks,As;ks=ys,As=267,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x6")](){const t=this[vs("0x2")],e=t[vs("0x15")];if(!t[vs("0x7")][vs("0x11")](vs("0xc")))return;const n=t[vs("0x7")][vs("0x1b")](vs("0x12")),o=this[vs("0x2")].commands.get("blockQuote");n[vs("0x16")](vs("0x19"),((e,s={})=>{const r=this[vs("0x2")][vs("0x13")][vs("0x18")][vs("0x1a")],i=s&&void 0!==s.forceValue?s[vs("0x4")]:!o.value;let x=[];if(i){const e=Array.from(r[vs("0x1")]()).filter((t=>Ss(t)||function(t,e){const n=e[vs("0x17")](t[vs("0xb")],"blockQuote"),o=e[vs("0x17")]([vs("0x14"),vs("0x19")],t);return n&&o}(t,this[vs("0x2")][vs("0x13")][vs("0xf")])));x=S(e,t[vs("0x13")])}else{const e=Array.from(r[vs("0x1")]())[vs("0xe")]((t=>Ss(t)));x=S(e,t[vs("0x13")])}t.model.change((()=>{for(const t of x)n[vs("0x5")](t,{commandName:vs("0x19"),commandParams:[{forceValue:i}]})}))})),n[vs("0xa")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x19")==n[vs("0x10")]){const t=Yo(e,vs("0x8"));return n.commandParams[0][vs("0x4")]?{type:vs("0x9"),content:Yo(e,vs("0x3"),t)}:{type:"format",content:Yo(e,vs("0xd"),t)}}}))}}function Ss(t){return vs("0x19")==t[vs("0xb")][vs("0x0")]}const Is=["editor","ckbox","get","enableCommand","afterInit","plugins","TrackChangesEditing"];var Ls,Ns;Ls=Is,Ns=130,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x0")](){const t=this[Ms("0x3")];t.commands.get(Ms("0x4"))&&t[Ms("0x1")][Ms("0x5")](Ms("0x2"))[Ms("0x6")](Ms("0x4"))}}const Os=["blockName","commandParams","commandName","isLimit","filter","markBlockFormat","plugins","document","enableCommand","name","checkChild","format","ELEMENT_CODE_BLOCK","find","locale","registerDescriptionCallback","afterInit","parent","_descriptionFactory","outdentCodeBlock","*Remove format:* %0","languages","has","*Format:* %0","from","forceValue","registerElementLabel","rootElement","get","selection","language","getSelectedBlocks","label","config","indentCodeBlock","codeBlock","change","model"];var Fs,Ps;Fs=Os,Ps=224,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x14")](){const t=this.editor;if(!t.plugins[Ds("0x1a")]("CodeBlock"))return;const e=t[Ds("0xa")][Ds("0x20")]("TrackChangesEditing"),n=t[Ds("0x12")],o=t[Ds("0x25")][Ds("0x20")](Ds("0x1"))[Ds("0x19")],s=t.commands[Ds("0x20")](Ds("0x1"));e[Ds("0xc")](Ds("0x0")),e.enableCommand(Ds("0x17")),e.enableCommand(Ds("0x1"),((n,r={})=>{const i=t.model,x=t[Ds("0x3")][Ds("0xb")][Ds("0x21")],a=r&&void 0!==r[Ds("0x1d")]?r[Ds("0x1d")]:!s.value;let c;r[Ds("0x22")]||(r[Ds("0x22")]=o[0][Ds("0x22")]),c=a?Array[Ds("0x1c")](x[Ds("0x23")]())[Ds("0x8")]((t=>{return js(t)||(e=t,n=i.schema,!e.is(Ds("0x1f"))&&!n[Ds("0x7")](e)&&n[Ds("0xe")](e[Ds("0x15")],Ds("0x1")));var e,n})):Array.from(x[Ds("0x23")]())[Ds("0x8")]((t=>js(t)));const l=S(c,i);i[Ds("0x2")]((()=>{for(const t of l)e[Ds("0x9")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x4")})}))})),e[Ds("0x16")][Ds("0x1e")](Ds("0x1"),(t=>Yo(n,Ds("0x10"),t))),e[Ds("0x16")][Ds("0x13")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&Ds("0x1")==r[Ds("0x6")]){const t=r[Ds("0x5")][0][Ds("0x22")],s=e(o[Ds("0x11")]((e=>e[Ds("0x22")]===t))[Ds("0x24")]);return r[Ds("0x5")][0][Ds("0x1d")]?{type:Ds("0xf"),content:Yo(n,Ds("0x1b"),Yo(n,Ds("0x10"),1)+" ("+s+")")}:{type:Ds("0xf"),content:Yo(n,Ds("0x18"),Yo(n,Ds("0x10"),1))}}}))}}function js(t){return Ds("0x1")==t[Ds("0xd")]}const Us=["addCommentThread","editor","CommentsEditing","get","enableCommand","plugins","afterInit"];var Gs,Hs;Gs=Us,Hs=243,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x1")](){const t=this[zs("0x3")];t.plugins.has(zs("0x4"))&&t[zs("0x0")][zs("0x5")]("TrackChangesEditing")[zs("0x6")](zs("0x2"))}}var Vs=n(181);const Ks=["enqueueChange","buffer","high","writer","getFirstRange","start","model","init","createSelection","TrackChangesEditing","markerNameToElements","detach","$graveyard","addMarker:suggestion:deletion","isCollapsed","editor","fromRange","enableCommand","unlock","unit","mapper","setSelection","deleteForward","end","commands","merge","selection","remove","editing","downcastDispatcher","bind","batch","createRange","markerName","get","uiElement","data","root","requires","delete"];var qs,Xs;qs=Ks,Xs=237,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x1")](){return[Vs.Delete]}[$s("0xa")](){const t=this[$s("0x12")],e=t.plugins[$s("0x25")]($s("0xc"));e[$s("0x14")]($s("0x2"));const n=t[$s("0x1b")][$s("0x25")]($s("0x19"));e[$s("0x14")]($s("0x19"),((e,o={})=>{const s=t.model[$s("0xb")](t[$s("0x9")].document[$s("0x1d")]);s[$s("0x11")]&&t[$s("0x9")].modifySelection(s,{direction:"forward",unit:o[$s("0x16")]});const r=s[$s("0x7")](),x=i.LiveRange[$s("0x13")](r);let a;e(o),a=$s("0xf")==x[$s("0x0")].rootName?t.model[$s("0x23")](r[$s("0x8")]):t.model[$s("0x23")](x[$s("0x8")],x[$s("0x1a")]),x[$s("0xe")](),t[$s("0x9")][$s("0x3")](n[$s("0x4")][$s("0x22")],(t=>{n.buffer.lock(),t[$s("0x18")](t.createRange(a[$s("0x1a")])),n[$s("0x4")][$s("0x15")]()}))})),t[$s("0x1f")][$s("0x20")].on($s("0x10"),hs(t,$s("0x1c")),{priority:"high"}),t[$s("0x27")][$s("0x20")].on($s("0x10"),((e,n,o)=>{o.options.showSuggestionHighlights&&hs(t,$s("0x1c"),{showActiveMarker:!1})[$s("0x21")](this)(e,n,o)}),{priority:$s("0x5")}),t.editing.downcastDispatcher.on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n.mapper[$s("0xd")](e.markerName);if(o)for(const t of o)t.is($s("0x26"))&&(n[$s("0x17")].unbindElementFromMarkerName(t,e[$s("0x24")]),n[$s("0x6")][$s("0x1e")](t))}),{priority:$s("0x5")})}}const Qs=["isFirstBlockOfListItem","model","detach","ELEMENT_NUMBERED_LIST","setSelection","plugins","TrackChangesEditing","DocumentListUtils","fromRange","createPositionAt","document","slice","createRange","getFirstRange","*Change to:* %0","format","previousSibling","bulletedList","*Merge:* %0","toUpperCase","selection","enableCommand","registerCustomCallback","length","listIndent","push","_LIST","ELEMENT_LIST_ITEM","add","from","schema","markMultiRangeBlockFormat","accept","get","mergeListItemForward","_descriptionFactory","splitListItemBefore","change","getRanges","listItemId","registerElementLabel","*Outdent:* %0","multipleBlocks","getAttribute","commands","DocumentListEditing","refresh","containsItem","has","getSelectedBlocks","commandName","*Format:* remove from %0","listType","forceValue","execute","markBlockFormat","formatBlock","editor","afterInit","parent","indentList","value","start","next","after","end","documentList","before","outdentList","locale","nextSibling","splitListItemAfter","isObject","*Format:* insert into %0","*Indent:* %0","hasAttribute","deletion","commandParams","numberedList","nodeAfter"];var Zs,Ys;Zs=Qs,Ys=150,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x44")](){const t=this[tr("0x43")];if(!t[tr("0xf")][tr("0x3a")](tr("0x37")))return;const e=t[tr("0x4f")],n=t[tr("0xf")].get(tr("0x10")),o=t[tr("0xf")].get(tr("0x11"));function s(e){return()=>{const s=t[tr("0x36")][tr("0x2b")](e);let r=Array[tr("0x27")](t.model[tr("0x14")].selection[tr("0x3b")]());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o[tr("0xa")](e)&&t[tr("0x23")](e);r=t}t[tr("0xb")].change((()=>{n[tr("0x29")](r,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:tr("0x3e")},[],tr("0x4c"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x27")](t);const n=e.findIndex((t=>!t[tr("0x5")](tr("0x31"))));return n>-1&&(e=e[tr("0x15")](0,n)),e}(t.model[tr("0x14")][tr("0x1e")][tr("0x3b")]()),s=o[o[tr("0x21")]-1],r=t.model[tr("0x28")][tr("0x2")](s)?tr("0x4a"):"end",i=t[tr("0xb")][tr("0x16")](t[tr("0xb")][tr("0x13")](o[0],tr("0x4d")),t[tr("0xb")].createPositionAt(s,r));t.model[tr("0x2f")]((()=>{n[tr("0x41")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[tr("0x0")];for(;t&&t[tr("0x35")](tr("0x22"))>n.getAttribute(tr("0x22"));)e[tr("0x26")](t),t=t[tr("0x0")]}return Array[tr("0x27")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0xb")][tr("0x14")].selection.getSelectedBlocks()[tr("0x49")]()[tr("0x47")],s=t[tr("0xb")][tr("0x13")](o,tr("0x4d")),r=t[tr("0xb")][tr("0x13")](o,0),i=t[tr("0xb")][tr("0x16")](s,r);t.model[tr("0x2f")]((()=>{n[tr("0x41")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x3e")})}))}}function a(e){const n=t[tr("0x36")][tr("0x2b")](tr("0x1b"))[tr("0x47")],o=t[tr("0x36")][tr("0x2b")]("numberedList")[tr("0x47")];return tr("0x8")===e?n:o}n[tr("0x1f")]("numberedList",s(tr("0x8"))),n[tr("0x1f")](tr("0x1b"),s(tr("0x1b"))),n[tr("0x1f")](tr("0x46"),r(tr("0x46"))),n[tr("0x1f")](tr("0x4e"),r("outdentList")),n[tr("0x1f")](tr("0x1"),x(tr("0x1"))),n[tr("0x1f")](tr("0x2e"),x(tr("0x2e"))),n[tr("0x2d")][tr("0x32")]((function(e){const n=!t[tr("0xb")][tr("0x28")][tr("0x2")](e),o=e[tr("0x1a")],s=e[tr("0x0")],r=e[tr("0x35")](tr("0x31")),i=!o||o[tr("0x35")](tr("0x31"))!==r,x=!s||s.getAttribute("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x25"),t))),n[tr("0x2d")].registerDescriptionCallback((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x3c")]){case tr("0x1b"):r=n[tr("0x7")][0][tr("0x3f")],i=a(n.commandName),o=tr(r?"0x3":"0x3d"),i&&(o=tr("0x18")),s={type:"format",content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case tr("0x8"):r=n[tr("0x7")][0].forceValue,i=a(n[tr("0x3c")]),o=r?tr("0x3"):"*Format:* remove from %0",i&&(o="*Change to:* %0"),s={type:"format",content:Yo(e,o,Yo(e,tr("0xd")))};break;case tr("0x46"):o=tr("0x4"),s={type:"format",content:Yo(e,o,Yo(e,tr("0x25")))};break;case tr("0x4e"):o=function(t){const e=t[tr("0x17")]();let n=e[tr("0x48")][tr("0x9")];for(;n&&e[tr("0x39")](n);){if(n.getAttribute(tr("0x22"))>0)return!1;n=n[tr("0x0")]}return!0}(t)?Yo(e,tr("0x3d"),Yo(e,"ELEMENT_"+t[tr("0x17")]()[tr("0x48")].nodeAfter[tr("0x35")](tr("0x3e"))[tr("0x1d")]()+tr("0x24"))):Yo(e,tr("0x33"),Yo(e,tr("0x25"))),s={type:tr("0x19"),content:o};break;case"mergeListItemBackward":case tr("0x2c"):!1===n[tr("0x34")]&&(o=tr("0x1c"),s={type:tr("0x6"),content:Yo(e,o,Yo(e,tr("0x25")))})}return s})),n._suggestionFactory[tr("0x20")](tr("0x42"),tr("0x4c"),tr("0x2a"),(function(e,n){const o=[];for(let n of e)n[tr("0x48")][tr("0x9")]===n[tr("0x4b")][tr("0x45")]&&(n=t[tr("0xb")][tr("0x16")](t[tr("0xb")][tr("0x13")](n.start[tr("0x9")],0))),o[tr("0x23")](n);t[tr("0xb")][tr("0x2f")]((e=>{const s=t.model[tr("0x14")][tr("0x1e")],r=Array[tr("0x27")](s[tr("0x30")]()).map((t=>i.LiveRange[tr("0x12")](t)));e[tr("0xe")](o),t.commands[tr("0x2b")](n[tr("0x3c")])[tr("0x38")](),n.commandParams[tr("0x23")]({forceDefaultExecution:!0}),t[tr("0x40")](n.commandName,...n[tr("0x7")]),e.setSelection(r);for(const t of r)t[tr("0xc")]()}))}))}}var nr=n(331);const or=["createRange","split","commands","showSuggestionHighlights","downcastDispatcher","remove","change","data","nextSibling","ck-suggestion-marker-split","mapper","fromRange","end","model","requires","addMarker:suggestion:insertion","bind","high","markerNameToElements","editing","fire","options","writer","editor","detach","init","getFirstRange","markInsertion","removeMarker:suggestion:insertion","setSelection","createPositionAt","enter","markerName","unbindElementFromMarkerName","parent"];var sr,rr;sr=or,rr=386,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0xd")](){return[nr.Enter]}[ir("0x18")](){const t=this[ir("0x16")],e=t.plugins.get("TrackChangesEditing"),n=t[ir("0x1")].get(ir("0x1e"));e.enableCommand(ir("0x1e"),(()=>{t[ir("0xc")][ir("0x5")]((o=>{const s=t[ir("0xc")].document.selection,r=s.getFirstPosition(),x=i.LiveRange[ir("0xa")](s[ir("0x19")]());if(n.enterBlock(o)){const n=t[ir("0xc")][ir("0x1d")](r[ir("0x21")][ir("0x7")],0),s=o[ir("0x22")](r,n);e[ir("0x1a")](s)}else o[ir("0x1c")](o[ir("0x22")](x[ir("0xb")]));x[ir("0x17")](),n[ir("0x13")]("afterExecute",{writer:o})}))})),t.editing[ir("0x3")].on(ir("0xe"),hs(t,"split"),{priority:ir("0x10")}),t[ir("0x12")][ir("0x3")].on(ir("0x1b"),((t,e,n)=>{const o=n[ir("0x9")][ir("0x11")](e.markerName);if(o)for(const t of o)t.hasClass(ir("0x8"))&&(n[ir("0x9")][ir("0x20")](t,e[ir("0x1f")]),n[ir("0x15")][ir("0x4")](t))}),{priority:ir("0x10")}),t[ir("0x6")][ir("0x3")].on(ir("0xe"),((e,n,o)=>{o[ir("0x14")][ir("0x2")]&&hs(t,ir("0x0"),{showActiveMarker:!1})[ir("0xf")](this)(e,n,o)}),{priority:ir("0x10")})}}const ar=["markers","get","has","replaceAll","createPositionAt","filter","enableCommand","findByTextCallback","_isInDeletionRange","FindAndReplaceEditing","getMarkersGroup","model","suggestion:deletion","plugins","bind","handleFindCommand","createRange","findPrevious","start","string","TrackChangesEditing","editor","find"];var cr,lr;cr=ar,lr=398,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{afterInit(){if(!this[ur("0xe")][ur("0x6")][ur("0x12")](ur("0x2")))return;const t=this[ur("0xe")][ur("0x6")][ur("0x11")](ur("0xd"));t[ur("0x16")](ur("0xf"),this.handleFindCommand[ur("0x7")](this)),t[ur("0x16")]("findNext"),t[ur("0x16")](ur("0xa")),t[ur("0x16")]("replace"),t[ur("0x16")](ur("0x13"))}[ur("0x8")](t,e,n={}){const o=this.editor[ur("0x6")][ur("0x11")]("FindAndReplaceUtils");void 0!==n&&t((t=>(ur("0xc")==typeof e?o[ur("0x0")](e,n):e)(t)[ur("0x15")]((e=>!1===this[ur("0x1")](e,t.item)))),n)}_isInDeletionRange(t,e){const n=this[ur("0xe")][ur("0x4")][ur("0x9")](this.editor.model[ur("0x14")](e,t[ur("0xb")]),this[ur("0xe")][ur("0x4")][ur("0x14")](e,t.end));for(const t of this[ur("0xe")].model[ur("0x10")][ur("0x3")](ur("0x5")))if(null!==n.getIntersection(t.getRange()))return!0;return!1}}const gr=["fontBackgroundColor","value","registerDescriptionCallback","FontFamilyEditing","_descriptionFactory","selection","change","toLowerCase","find","fontFamily","*Set font color:* %0","normalizeSizeOptions","commandName","fontSize.options","FontSizeEditing","format","*Set font size:* %0","locale","get","commandParams","editor","getRanges","config","*Reset font background color*","TrackChangesEditing","label","*Reset font color*","FontBackgroundColorEditing","from","afterInit","*Reset font size*","*Reset font family*","_enableCommand","trim","*Set font background color:* %0","plugins","fontColor","enableCommand","has","fontSize","model"];var mr,fr;mr=gr,fr=395,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1d"),commandName:hr("0xd")},{pluginName:hr("0x12"),commandName:hr("0x18")},{pluginName:"FontColorEditing",commandName:hr("0xa")},{pluginName:hr("0x1"),commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x3")](){const t=this[hr("0x23")][hr("0x20")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x23")][hr("0x9")][hr("0xc")](t)&&this[hr("0x6")](e);this[hr("0x23")].plugins.get(hr("0x27"))[hr("0x13")][hr("0x11")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0xd")==o[hr("0x1b")]){const e=o[hr("0x22")][0][hr("0x10")];if(e){const o=n(this[hr("0x23")].plugins[hr("0x21")]("FontSize")[hr("0x1a")](this[hr("0x23")][hr("0x25")][hr("0x21")](hr("0x1c")))[hr("0x17")]((t=>t[hr("0xe")]==e)).title)[hr("0x16")]();return{type:hr("0x1e"),content:Yo(t,hr("0x1f"),o)}}return{type:hr("0x1e"),content:Yo(t,hr("0x4"))}}if(hr("0x18")==o[hr("0x1b")]){const e=o[hr("0x22")][0][hr("0x10")];return e?{type:"format",content:Yo(t,"*Set font family:* %0",e)}:{type:hr("0x1e"),content:Yo(t,hr("0x5"))}}if(hr("0xa")==o[hr("0x1b")]){const e=o[hr("0x22")][0][hr("0x10")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x25")][hr("0x21")]("fontColor.colors"))[hr("0x17")]((t=>t[hr("0xe")]==e));let r=e,i="";return o&&(r=o[hr("0x28")],i=n(r)[hr("0x16")]()),{type:hr("0x1e"),content:Yo(t,hr("0x19"),i)[hr("0x7")](),color:{value:e,title:i||r}}}return{type:hr("0x1e"),content:Yo(t,hr("0x0"))}}if(hr("0xf")==o[hr("0x1b")]){const e=o[hr("0x22")][0][hr("0x10")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x25")][hr("0x21")]("fontBackgroundColor.colors"))[hr("0x17")]((t=>t[hr("0xe")]==e));let r=e,i="";return o&&(r=o[hr("0x28")],i=n(r)[hr("0x16")]()),{type:hr("0x1e"),content:Yo(t,hr("0x8"),i)[hr("0x7")](),color:{value:e,title:i||r}}}return{type:hr("0x1e"),content:Yo(t,hr("0x26"))}}}}))}[hr("0x6")](t){const e=this[hr("0x23")];e.plugins.get(hr("0x27"))[hr("0xb")](t,((n,o={})=>{const s=e.model.document[hr("0x14")],r=o[hr("0x10")];s.isCollapsed?n(o):e.model[hr("0x15")]((()=>{const n=Array[hr("0x2")](s[hr("0x24")]());for(const o of n){const n=r?[o]:ms(t,o,e.model);for(const o of n)e.plugins[hr("0x21")](hr("0x27")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["TrackChangesEditing","selection","fontSize","length","markInlineFormat","format","locale","registerDescriptionCallback","slice","entries","*Remove all formatting*","createRange","copyFormat","fontSize.options","toLowerCase","boolean","fontColor","getRanges","document","find","FontSize","_descriptionFactory","word","model","pasteFormat","from","isFormatting","join","split","isCollapsed","title","getAttributes","plugins","editor","change","commands","isBlock","commandName","get","getFirstPosition","push","*Set format to:* %0","getLastPosition","enableCommand","fontBackgroundColor","getAttributeProperties","backward","getSelectedBlocks","getItems","afterInit","charAt","keys","modifySelection","commandParams","label","schema"];var _r,Tr;_r=Er,Tr=416,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x19")](){const t=this[Cr("0x9")],n=t.model,o=n[Cr("0x32")][Cr("0x21")],s=t[Cr("0x8")][Cr("0xe")]("TrackChangesEditing"),r=t[Cr("0x26")],i=t.commands[Cr("0xe")]("copyFormat"),x=t[Cr("0xb")][Cr("0xe")](Cr("0x0"));i&&x&&(s.enableCommand(Cr("0x0"),((t,r={})=>{const i=r;n[Cr("0xa")]((()=>{const t=Array[Cr("0x1")](o[Cr("0x31")]()),r=o[Cr("0x5")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x7")]()){const t=e[Cr("0x15")](n);t&&t[Cr("0x2")]&&(yield n)}}(t,n));for(const e of t[Cr("0x31")]())for(const t of e[Cr("0x18")]())!n[Cr("0xc")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x17")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x1f")]))||0!==Object[Cr("0x1b")](i)[Cr("0x23")])for(const t of r)s[Cr("0x24")](t,{commandName:Cr("0x0"),commandParams:[i]})}))})),s[Cr("0x35")][Cr("0x27")]((e=>{const{data:n}=e;if(n&&Cr("0x0")===n[Cr("0xd")]){const e=[],o=n[Cr("0x1d")][0];for(const[n,s]of Object[Cr("0x29")](o))e[Cr("0x10")](Ar(t,n,s));return e[Cr("0x23")]?{type:Cr("0x25"),content:Yo(r,Cr("0x11"),e[Cr("0x3")](", "))}:{type:Cr("0x25"),content:Yo(r,Cr("0x2a"))}}})),t[Cr("0x8")].get(Cr("0x20"))[Cr("0x13")](Cr("0x2c")))}}function kr(t,e){const n=t.createSelection(e);t[Cr("0x1c")](n,{unit:Cr("0x36"),direction:Cr("0x16")});const o=n[Cr("0xf")]();t[Cr("0x1c")](n,{unit:Cr("0x36"),direction:"forward"});const s=n[Cr("0x12")]();return t[Cr("0x2b")](o,s)}function Ar(t,e,n){const o=t[Cr("0x26")].t,r=e[Cr("0x4")](/(?=[A-Z])/)[Cr("0x3")](" "),i=o(r[Cr("0x1a")](0).toUpperCase()+r[Cr("0x28")](1))[Cr("0x2e")]();if(Cr("0x2f")==typeof n)return i;if(Cr("0x30")===e||Cr("0x14")===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0xe")]("fontColor.colors")).find((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x1e")])[Cr("0x2e")]():n)+")"}if(Cr("0x22")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0xe")](Cr("0x34")).normalizeSizeOptions(t.config[Cr("0xe")](Cr("0x2d")))[Cr("0x33")]((t=>t[Cr("0x37")]==n));return i+" ("+(e?o(e[Cr("0x6")])[Cr("0x2e")]():n)+")"}return i+" ("+n+")"}const vr=["find","registerElementLabel","config","filter","enableCommand","_descriptionFactory","has","ELEMENT_HEADING_CUSTOM","title","commandParams","registerDescriptionCallback","afterInit","change","name","HeadingEditing","heading","editor","document","*Change to:* %0","model","value","checkChild","get","formatBlock","format","heading.options","ELEMENT_HEADING","markBlockFormat","commandName","plugins","TrackChangesEditing"];var Rr,Sr;Rr=vr,Sr=221,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x7")](){const t=this[Ir("0xc")],e=t.locale,n=t[Ir("0x1d")][Ir("0x12")](Ir("0x15"));if(!t[Ir("0x19")][Ir("0x2")](Ir("0xa")))return;const o=t[Ir("0x19")][Ir("0x12")](Ir("0x1a"));o[Ir("0x0")](Ir("0xb"),((e,n)=>{const s=n.value,r=Array.from(this.editor[Ir("0xf")][Ir("0xd")].selection.getSelectedBlocks())[Ir("0x1e")]((t=>{return e=t,n=s,(o=this[Ir("0xc")][Ir("0xf")].schema)[Ir("0x11")](e.parent,n)&&!o.isObject(e)&&e[Ir("0x9")]!=n;var e,n,o}));t.model[Ir("0x8")]((()=>{for(const t of r)o[Ir("0x17")](t,{commandName:Ir("0xb"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)"paragraph"!=t[Ir("0xf")]&&o._descriptionFactory[Ir("0x1c")](t[Ir("0xf")],(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0x4")])}));function s(t,n){return Yo(e,Ir("0x16"),[t,n])}function r(t,n){return Yo(e,Ir("0x3"),[t,n])}o[Ir("0x1")][Ir("0x6")]((t=>{const{type:o,data:i}=t;if(Ir("0x13")==o&&i&&"heading"==i[Ir("0x18")]){const t=i[Ir("0x5")][0][Ir("0x10")],o=Nr(t);if(null!==o)return{type:"format",content:Yo(e,Ir("0xe"),s(1,o))};const x=n[Ir("0x1b")]((e=>e[Ir("0xf")]===t))[Ir("0x4")];return{type:Ir("0x14"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Mr=["getAttribute","isCollapsed","formatInline","has","editor","document","afterInit","getRanges","markInlineFormat","title","getFirstPosition","model","createRange","item","config","find","get","commandParams","registerDescriptionCallback","toLowerCase","*Remove highlight*","push","getLastMatchingPosition","format","change","_descriptionFactory","TrackChangesEditing","*Set highlight:* %0","selection","value","highlight.options","locale","highlight","HighlightEditing","color","plugins","commandName"];var wr,Or;wr=Mr,Or=200,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x1c")](){const t=this[Fr("0x1a")];if(!t[Fr("0x14")][Fr("0x19")](Fr("0x12")))return;const e=t.plugins.get(Fr("0xb"));e.enableCommand(Fr("0x11"),((n,o={})=>{const s=t[Fr("0x21")][Fr("0x1b")][Fr("0xd")],r=s[Fr("0x16")](Fr("0x11"));let i=o.value,x=[];if(s[Fr("0x17")]){const e=s[Fr("0x20")]();if(!s.hasAttribute("highlight"))return void n(o);{const n=t=>t[Fr("0x23")].getAttribute("highlight")===r,o=e[Fr("0x7")](n,{direction:"backward"}),s=e[Fr("0x7")](n);x=[t[Fr("0x21")][Fr("0x22")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x1d")]())i?x.push(e):x[Fr("0x6")](...ms(Fr("0x11"),e,t.model));t[Fr("0x21")][Fr("0x9")]((()=>{for(const t of x)e[Fr("0x1e")](t,{commandName:Fr("0x11"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x10")];e[Fr("0xa")][Fr("0x3")]((e=>{const{type:o,data:s}=e;if(Fr("0x18")==o&&s&&Fr("0x11")==s[Fr("0x15")]){const e=n.t,o=s[Fr("0x2")][0][Fr("0xe")];if(o){const s=t[Fr("0x24")][Fr("0x1")](Fr("0xf"))[Fr("0x0")]((t=>t.model==o)),r=e(s[Fr("0x1f")])[Fr("0x4")]();return{type:Fr("0x8"),content:Yo(n,Fr("0xc"),r),color:{value:s[Fr("0x13")],title:s.title}}}return{type:"format",content:Yo(n,Fr("0x5"),Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["createContainerElement","plugins","has","editor","locale","get","elementToStructure","div","enableCommand","high","createPositionAt","ck-horizontal-line","ELEMENT_HORIZONTAL_LINE","TrackChangesEditing","_descriptionFactory","dataDowncast","HorizontalLineEditing","insert","horizontalLine","for","addClass"];var Br,jr;Br=Dr,jr=478,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("0x8")];if(!t[Ur("0x6")][Ur("0x7")](Ur("0x0")))return;t[Ur("0x6")][Ur("0xa")]("TrackChangesEditing")[Ur("0xd")]("horizontalLine");const e=t[Ur("0x6")].get(Ur("0x12")),n=t[Ur("0x9")];e[Ur("0x13")].registerElementLabel("horizontalLine",(t=>Yo(n,Ur("0x11"),t))),t.conversion[Ur("0x3")](Ur("0x14"))[Ur("0xb")]({model:Ur("0x2"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0x5")](Ur("0xc")),s=e.createEmptyElement("hr");return e[Ur("0x4")](Ur("0x10"),o),e[Ur("0x1")](e[Ur("0xf")](o,0),s),o},converterPriority:Ur("0xe")})}}const Hr=["cancel","get","change","document","rawHtmlApi","rawHtml","registerDescriptionCallback","TrackChangesEditing","afterInit","getAttribute","*Change %0 content*","view","element","ELEMENT_HTML_EMBED","value","plugins","enableCommand","htmlEmbed","registerElementLabel","has","locale","getCustomProperty","getSelectedElement","markBlockFormat","editing","model","selection","_descriptionFactory"];var zr,Wr;zr=Hr,Wr=468,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x10")](){const t=this.editor;if(!t[Vr("0x17")][Vr("0x1b")]("HtmlEmbed"))return;const e=t[Vr("0x17")][Vr("0x9")](Vr("0xf")),n=t[Vr("0x0")],o=t[Vr("0x4")][Vr("0x13")][Vr("0xb")][Vr("0x6")];e._descriptionFactory[Vr("0x1a")]("rawHtml",(t=>Yo(n,Vr("0x15"),t))),t[Vr("0x17")][Vr("0x9")](Vr("0xf"))[Vr("0x18")](Vr("0x19"),((n,s)=>{const r=t[Vr("0x5")],i=r[Vr("0xb")][Vr("0x6")];r[Vr("0xa")]((()=>{const t=function(t){const e=t[Vr("0x2")]();return e&&e.is(Vr("0x14"),Vr("0xd"))?t[Vr("0x2")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x11")](Vr("0x16"))||"";void 0!==s&&s!==r&&(e[Vr("0x3")](t,{commandName:"htmlEmbed",commandParams:[s]}),o.getSelectedElement()[Vr("0x1")](Vr("0xc"))[Vr("0x8")]())}))})),e[Vr("0x7")][Vr("0xe")]((t=>{const{data:e}=t;if(e&&Vr("0x19")==e.commandName){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:"format",content:Yo(n,Vr("0x12"),t)}}}))}}const qr=["head","ImageResize","has","addObject","findIndex","newValue","caption","deletion","ImageInlineEditing","isCollapsed","createRange","isInlineImage","registerPostFixer","markBlockFormat","markDeletion","toNext","change","discardSuggestion","from","shouldConvertImageType","chain","width","previous","type","ELEMENT_INLINE_IMAGE","selection","_descriptionFactory","commandParams","end","ELEMENT_CAPTION","hasSuggestion","getCaptionFromImageModelElement","isInContent","imageStyle","isIntersecting","resizeImage","imageStylePostApply","find","commandName","filter","format","ImageUtils","model","_suggestionFactory","newRange","normalizedStyles","alt","hasAttribute","element","markInlineFormat","document","imageStylePreApply","imageTypeInline","isEqual","enableCommand","createRangeOn","uploadImage","title","suggestion","getChangedMarkers","accept","imageCaption","_splitMarkerName","differ","start","formatInline","fromPosition","convertBlockImageToInline","getNearestSelectionRange","ImageBlockEditing","getAttribute","*Format:* %0","commands","locale","getClosestSelectedImageElement","forward","backward","plugins","isBlockImage","insertImage","detach","getContainedElement","discard","*Set image text alternative:* %0","subType","registerCustomCallback","ImageEditing","registerElementLabel","nodeAfter","side","toggleImageCaption","toLowerCase","schema","get","formatBlock","registerDescriptionCallback","forceDefaultExecution","*Remove image text alternative*","length","isBefore","ImageTextAlternativeEditing","Inline image to block image","*Set image width:* %0","markInsertion","imageTypeBlock","ELEMENT_IMAGE","getSuggestionCallback","getSuggestions","Users","insertion","getSuggestion","refresh","next","value","join","*Reset image width*","toPrevious","imageTextAlternative","TrackChangesEditing","convertInlineImageToBlock","afterInit","editor","getFirstRange","Block image to inline image","ImageStyleEditing"];var Xr,$r;Xr=qr,$r=409,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x56")](){const t=this[Jr("0x57")];if(!t[Jr("0x2b")][Jr("0x5d")](Jr("0x34")))return;const n=t[Jr("0x2b")][Jr("0x3b")](Jr("0x54")),o=t[Jr("0x2b")][Jr("0x3b")](Jr("0x7")),s={},r=t[Jr("0x27")];if(n[Jr("0x14")](Jr("0x2d")),n[Jr("0x75")][Jr("0x35")]("imageBlock",(t=>Yo(r,Jr("0x47"),t))),n[Jr("0x75")][Jr("0x35")]("imageInline",(t=>Yo(r,Jr("0x73"),t))),n[Jr("0x75")][Jr("0x35")]("caption",(()=>Yo(r,Jr("0x78")))),t[Jr("0x2b")][Jr("0x5d")]("ImageUploadEditing")&&n.enableCommand(Jr("0x16")),t.plugins[Jr("0x5d")](Jr("0x23"))&&t[Jr("0x2b")][Jr("0x5d")](Jr("0x63"))&&(n[Jr("0x14")](Jr("0x12"),((e,s)=>{const r=o[Jr("0x28")](t[Jr("0x8")][Jr("0x10")][Jr("0x74")]);t.model[Jr("0x6b")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x12"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[Jr("0x14")](Jr("0x46"),((e,s)=>{t.model[Jr("0x6b")]((r=>{let x=o[Jr("0x28")](t.model[Jr("0x10")][Jr("0x74")]),a=r[Jr("0x15")](x);const c=i.LivePosition[Jr("0x20")](a[Jr("0x1e")],Jr("0x52")),l=i.LivePosition.fromPosition(a[Jr("0x77")],Jr("0x6a"));n[Jr("0x3e")]((()=>e(s))),x=o[Jr("0x28")](t.model[Jr("0x10")][Jr("0x74")]),a=r.createRangeOn(x);const u=r[Jr("0x65")](c,l);c[Jr("0x2e")](),l.detach(),n.markBlockFormat(x,{commandName:Jr("0x12"),commandParams:[]},[],Jr("0x55")),u[Jr("0x1e")][Jr("0x41")](a.start)&&n[Jr("0x45")](r[Jr("0x65")](u.start,a.start),Jr("0x55")),a.end[Jr("0x41")](u.end)&&n.markInsertion(r[Jr("0x65")](a[Jr("0x77")],u[Jr("0x77")]),Jr("0x55"))}))})),n[Jr("0x9")][Jr("0x33")](Jr("0x3c"),Jr("0x55"),Jr("0x50"),(()=>{})),n[Jr("0x9")][Jr("0x33")]("formatBlock","convertInlineImageToBlock","accept",(()=>{})),n[Jr("0x9")][Jr("0x33")](Jr("0x3c"),"convertInlineImageToBlock",Jr("0x30"),n[Jr("0x9")][Jr("0x48")](Jr("0x3c"),"","accept")),n[Jr("0x9")][Jr("0x33")]("insertion","convertInlineImageToBlock","join",(()=>{})),n[Jr("0x9")][Jr("0x33")](Jr("0x4b"),Jr("0x55"),Jr("0x30"),(([e])=>{const o=n[Jr("0x9")][Jr("0x48")](Jr("0x4b"),"",Jr("0x30"));let s=e[Jr("0x1e")],r=e[Jr("0x77")];const i=t[Jr("0x8")][Jr("0x3a")][Jr("0x22")](s,Jr("0x2a")),x=t[Jr("0x8")][Jr("0x3a")].getNearestSelectionRange(r,Jr("0x29"));i[Jr("0x64")]&&(s=i.start),x[Jr("0x64")]&&(r=x[Jr("0x77")]),o([t[Jr("0x8")][Jr("0x65")](s,r)])})),n[Jr("0x9")][Jr("0x33")]("formatBlock",Jr("0x55"),"chain",c),n[Jr("0x9")].registerCustomCallback(Jr("0x4b"),Jr("0x55"),"chain",c)),t[Jr("0x2b")][Jr("0x5d")]("ImageCaptionEditing")&&(n.enableCommand(Jr("0x38"),((e,s)=>{const r=t[Jr("0x2b")].get("ImageCaptionUtils");let i=o[Jr("0x28")](t.model.document[Jr("0x74")]),x=r[Jr("0x7a")](i);t[Jr("0x8")].change((()=>{if(x)return void n[Jr("0x69")](t[Jr("0x8")][Jr("0x15")](x));const a=o[Jr("0x2c")](i);e(s),i=o[Jr("0x28")](t.model[Jr("0x10")][Jr("0x74")]),x=r[Jr("0x7a")](i),n[Jr("0x45")](t[Jr("0x8")][Jr("0x15")](x),a?null:Jr("0x1b"))}))})),n[Jr("0x9")][Jr("0x33")](Jr("0x4b"),Jr("0x1b"),Jr("0x6f"),c)),t[Jr("0x2b")][Jr("0x5d")](Jr("0x5a"))){n[Jr("0x14")](Jr("0x7c"),((s,r)=>{const i=t[Jr("0x2b")][Jr("0x3b")](Jr("0x4a")).me,x=t[Jr("0x26")][Jr("0x3b")](Jr("0x7c"));let a=o[Jr("0x28")](t[Jr("0x8")][Jr("0x10")].selection),c=t[Jr("0x8")][Jr("0x15")](a),l=x[Jr("0x4f")];if(l==r[Jr("0x4f")])return;const u={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x8")][Jr("0x6b")]((()=>{if(n[Jr("0x49")]()[Jr("0x5")]((t=>t.isInContent&&i==t.author&&(Jr("0x3c")==t[Jr("0x72")]||Jr("0x1f")==t[Jr("0x72")])&&(Jr("0x11")==t[Jr("0x32")]||Jr("0x2")==t[Jr("0x32")])&&t.getFirstRange()[Jr("0x13")](c))).forEach((t=>n[Jr("0x6c")](t[Jr("0x5b")]))),a=o[Jr("0x28")](t[Jr("0x8")][Jr("0x10")].selection),c=t[Jr("0x8")][Jr("0x15")](a),x[Jr("0x4d")](),t[Jr("0x26")][Jr("0x3b")](Jr("0x12")).refresh(),t[Jr("0x26")][Jr("0x3b")](Jr("0x46"))[Jr("0x4d")](),l=x[Jr("0x4f")],l!=r.value)return o[Jr("0x66")](a)&&x[Jr("0x6e")](r.value,a)?(s(r),a=o[Jr("0x28")](t.model.document[Jr("0x74")]),void n[Jr("0x68")](a,{...u,commandReversedParams:[{value:l||null}]},[],Jr("0x11"))):void(o[Jr("0x2c")](a)?n[Jr("0x68")](a,u,[],"imageStylePostApply"):n[Jr("0xf")](c,u,Jr("0x2")))}))}));for(const e of t[Jr("0x2b")][Jr("0x3b")](Jr("0x5a"))[Jr("0xb")])s[e.name]=e[Jr("0x17")][Jr("0x39")]();n._suggestionFactory[Jr("0x33")](Jr("0x3c"),Jr("0x11"),"join",(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0x3c"),"imageStylePostApply",Jr("0x50"),(()=>{})),n._suggestionFactory[Jr("0x33")](Jr("0x1f"),Jr("0x2"),"join",(()=>{})),n[Jr("0x9")].registerCustomCallback("formatBlock",Jr("0x11"),Jr("0x1a"),(()=>{})),n._suggestionFactory[Jr("0x33")](Jr("0x3c"),Jr("0x11"),"discard",((t,e)=>{n[Jr("0x9")][Jr("0x48")](Jr("0x3c"),"",Jr("0x1a"))(t,{commandName:e[Jr("0x4")],commandParams:e.commandReversedParams})})),n[Jr("0x9")][Jr("0x33")](Jr("0x3c"),Jr("0x11"),Jr("0x6f"),c)}const x=[{type:"formatBlock",subType:"imageStylePreApply"},{type:Jr("0x4b"),subType:Jr("0x1b")},{type:"formatBlock",subType:Jr("0x55")},{type:"insertion",subType:Jr("0x55")}];function a(t,e){const s=x[Jr("0x5f")]((({type:e,subType:n})=>t[Jr("0x72")]==e&&t[Jr("0x32")]==n)),r=x[Jr("0x5f")]((({type:t,subType:n})=>e[Jr("0x72")]==t&&e[Jr("0x32")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x58")](),a=e[Jr("0x58")]();if((0==s||1==s)&&2==r&&i[Jr("0x0")](a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,Jr("0x4b"))[Jr("0x5")]((({suggestion:t,meta:e})=>e.isOwn&&Jr("0x55")==t[Jr("0x32")]));if(t[Jr("0x40")]>1&&a[Jr("0x77")][Jr("0x13")](i[Jr("0x1e")]))return!0;if(1==t[Jr("0x40")]&&(i[Jr("0x1e")][Jr("0x13")](a.end)||i[Jr("0x77")][Jr("0x13")](a[Jr("0x1e")])))return!0}if(3==s&&3==r&&i[Jr("0x1e")][Jr("0x41")](a.start)){const t=i.end[Jr("0x36")],e=a[Jr("0x1e")].nodeBefore;return o[Jr("0x2c")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x8")][Jr("0x10")][Jr("0x67")]((()=>{let e=!1;const s=Array[Jr("0x6d")](t.model.document[Jr("0x1d")][Jr("0x19")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x1c")](t);if(Jr("0x18")==s&&n[Jr("0x79")](a)){if(Jr("0x3c")==i&&(Jr("0x11")==x||"imageStylePostApply"==x)){const t=n.getSuggestion(a);if(r[Jr("0xa")]){const s=t[Jr("0x58")]()[Jr("0x2f")]();if(o[Jr("0x2c")](s))continue;n.discardSuggestion(t),e=!0}}if(Jr("0x4b")==i&&Jr("0x1b")==x&&!r[Jr("0xa")]){const t=n[Jr("0x4c")](a);t[Jr("0x4e")]&&t[Jr("0x4e")][Jr("0x7b")]&&(n[Jr("0x6c")](t[Jr("0x4e")]),e=!0)}}}return e})),t[Jr("0x2b")][Jr("0x5d")](Jr("0x5c"))&&n[Jr("0x14")]("resizeImage",((e,s)=>{const r=o[Jr("0x28")](t.model[Jr("0x10")].selection);r[Jr("0x24")](Jr("0x70"))!=s[Jr("0x70")]&&t[Jr("0x8")][Jr("0x6b")]((()=>{n[Jr("0x68")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t[Jr("0x2b")][Jr("0x5d")](Jr("0x42"))&&n.enableCommand("imageTextAlternative",((e,s)=>{const r=o[Jr("0x28")](t[Jr("0x8")][Jr("0x10")][Jr("0x74")]);(r[Jr("0xd")](Jr("0xc"))?r.getAttribute("alt"):"")!=s.newValue&&t.model[Jr("0x6b")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x53"),commandParams:[s]})}))})),n[Jr("0x75")].registerDescriptionCallback((t=>{if(x[Jr("0x3")]((({type:e,subType:n})=>t[Jr("0x72")]==e&&t[Jr("0x32")]==n)))return t[Jr("0x71")]?{}:void 0})),n[Jr("0x75")][Jr("0x3d")]((t=>{if(Jr("0x4b")==t[Jr("0x72")]||Jr("0x62")==t[Jr("0x72")]){const e=t[Jr("0x2f")]();if(e&&e.is(Jr("0xe"),Jr("0x61")))return{type:Jr("0x4b")==t[Jr("0x72")]?Jr("0x5e"):"removeObject",element:e,quantity:1}}})),n[Jr("0x75")].registerDescriptionCallback((t=>Jr("0x3c")==t.type&&Jr("0x55")==t.subType?{type:"format",content:Jr("0x43")}:"formatBlock"==t.type&&Jr("0x21")==t[Jr("0x32")]?{type:Jr("0x6"),content:Jr("0x59")}:void 0)),n[Jr("0x75")][Jr("0x3d")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e.commandName){const t=e.commandParams[0][Jr("0x4f")];return n=Jr("0x37")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Jr("0x6"),content:Yo(r,Jr("0x25"),n)}}if(Jr("0x53")==e[Jr("0x4")]){const t=e[Jr("0x76")][0][Jr("0x60")];return t?{type:Jr("0x6"),content:Yo(r,Jr("0x31"),'"'+t+'"')}:{type:Jr("0x6"),content:Yo(r,Jr("0x3f"))}}if(Jr("0x1")==e.commandName){const t=e[Jr("0x76")][0].width;return t?{type:Jr("0x6"),content:Yo(r,Jr("0x44"),t)}:{type:Jr("0x6"),content:Yo(r,Jr("0x51"))}}}var n}))}}const Zr=["change","format","registerDescriptionCallback","TrackChangesEditing","getSuggestionCallback","handleSuggestionDescription","author","discard","editor","get","data","accept","plugins","_suggestionFactory","_descriptionFactory","handleReplaceImageCommand","registerCustomCallback","afterInit","source","src","getSuggestions","has","Users","commandParams","replaceImageSource","selection","commandName","getSelectedElement","locale","*Format:* replace image URL"];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("0x17")](){if(!this.editor[ei("0x12")][ei("0x1b")]("ImageEditing"))return;const t=this.editor[ei("0x12")].get(ei("0x9"));t.enableCommand(ei("0x0"),((t,e)=>this[ei("0x15")](t,e))),t[ei("0x13")][ei("0x16")]("formatBlock",ei("0x0"),"accept",t._suggestionFactory[ei("0xa")]("formatBlock",null,ei("0xd"))),t[ei("0x13")][ei("0x16")]("formatBlock",ei("0x0"),"discard",t[ei("0x13")][ei("0xa")]("formatBlock",null,ei("0x11"))),t[ei("0x14")][ei("0x8")]((t=>this[ei("0xb")](t)))}[ei("0x15")](t,e){const n=this[ei("0xe")][ei("0x12")].get(ei("0x9")),o=this[ei("0xe")].model.document[ei("0x1")][ei("0x3")]();this.editor.model[ei("0x6")]((()=>{let s=o.getAttribute(ei("0x19"));const r=this[ei("0xe")][ei("0x12")][ei("0xf")](ei("0x1c")).me;for(const t of n[ei("0x1a")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0x0")===t.subType&&e===o){t[ei("0xc")]!==r&&t[ei("0xd")](),s=t[ei("0x10")][ei("0x1d")][0][ei("0x18")];break}}t(e),n.markBlockFormat(o,{commandName:ei("0x0"),commandParams:[{source:s}]},[],ei("0x0"))}))}[ei("0xb")](t){const{data:e}=t;if(e&&ei("0x0")===e[ei("0x2")]){const t=ei("0x5");return{type:ei("0x7"),content:Yo(this[ei("0xe")][ei("0x4")],t)}}}}const oi=["_trackChangesValueDuringImport","lowest","TrackChangesEditing","high","Users","_setSuggestionData","execute","bind","enableCommand","_handleImportedData","trackChanges","commands","track_changes","importWord","listenTo","_trackChangesExecuted","value","dataInsert","get","plugins"];var si,ri;si=oi,ri=424,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[ii("0xb")]=!1}afterInit(){const t=this.editor,e=t[ii("0x7")][ii("0xe")]("importWord"),n=t[ii("0x7")][ii("0xe")]("trackChanges");e&&(e.on(ii("0x2"),((t,[,e])=>{this[ii("0x10")]=n[ii("0xc")],e.collaboration_features[ii("0x8")]=!this[ii("0x10")]}),{priority:ii("0x13")}),this.listenTo(e,ii("0xd"),this._handleImportedData[ii("0x3")](this)),this[ii("0xa")](e,ii("0xd"),(()=>{this._trackChangesExecuted&&(n.execute(),this[ii("0xb")]=!1)}),{priority:ii("0x11")}),t.plugins[ii("0xe")](ii("0x12"))[ii("0x4")](ii("0x9")))}[ii("0x5")](t,e){const{suggestions:n}=e,o=this.editor[ii("0x7")][ii("0xe")](ii("0x6")),s=o[ii("0xc")];this[ii("0x10")]!==s&&(o[ii("0x2")](),this[ii("0xb")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[ii("0xf")][ii("0xe")](ii("0x0")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x9")}}};this.editor[ii("0xf")].get("TrackChangesEditing")[ii("0x1")](s)}))}}const ai=["enableCommand","TrackChangesEditing","commandName","getItemLabel","format","model","registerDescriptionCallback","change","_descriptionFactory","*Indent:* %0","get","from","filter","blockIndent","markBlockFormat","editor","getSelectedBlocks","checkAttribute","indentBlock","*Outdent:* %0","plugins","has","locale","afterInit","schema","outdentBlock"];var ci,li;ci=ai,li=263,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0x14")](){const t=this.editor,e=t.plugins[ui("0x7")](ui("0x18"));t[ui("0x11")][ui("0x12")]("IndentEditing")&&(e.enableCommand("indent"),e[ui("0x17")]("outdent"));const n=t[ui("0x13")];if(t[ui("0x11")].has("IndentBlock")){for(const n of[ui("0xf"),ui("0x16")])e.enableCommand(n,(()=>{const o=Array[ui("0x8")](this.editor[ui("0x2")].document.selection[ui("0xd")]())[ui("0x9")]((t=>this[ui("0xc")].model[ui("0x15")][ui("0xe")](t,ui("0xa"))));t[ui("0x2")][ui("0x4")]((()=>{for(const t of o)e[ui("0xb")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0xf")})}))}));e[ui("0x5")][ui("0x3")]((t=>{const{data:o}=t;if(!o)return;if(ui("0xf")!=o.commandName&&"outdentBlock"!=o[ui("0x19")])return;const s=t.getItems()[0],r=e[ui("0x5")][ui("0x0")](s);return ui("0xf")==o[ui("0x19")]?{type:ui("0x1"),content:Yo(n,ui("0x6"),r)}:"outdentBlock"==o[ui("0x19")]?{type:ui("0x1"),content:Yo(n,ui("0x10"),r)}:void 0}))}}}var gi,mi,fi=["requires","input","init","enableCommand","get","plugins","TrackChangesEditing","editor"];gi=fi,mi=468,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x4")](){return[Vs.Input]}[hi("0x6")](){this[hi("0x3")][hi("0x1")][hi("0x0")](hi("0x2"))[hi("0x7")](hi("0x5"))}}const bi=["getAttribute","TrackChangesEditing","link","get","_descriptionFactory","isCollapsed","change","markInlineFormat","*Set link:* %0","registerDescriptionCallback","*Remove link*","format","editor","getFirstPosition","document","unlink","plugins","from","model","selection","enableCommand","getFirstRange","commandName","hasAttribute","linkHref","LinkEditing"];var Ei,_i;Ei=bi,_i=336,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{afterInit(){const t=this.editor;if(!t[Ti("0x12")].has(Ti("0x1")))return;const e=t[Ti("0x12")][Ti("0x5")](Ti("0x3"));e[Ti("0x16")](Ti("0x4"),((n,o)=>{const s=t[Ti("0x14")][Ti("0x10")][Ti("0x15")];let r=[];if(s[Ti("0x7")]){if(!s[Ti("0x19")](Ti("0x0")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xf")](),Ti("0x0"),s[Ti("0x2")]("linkHref"),t.model);r=[e]}}else r=Array[Ti("0x13")](s.getRanges());t.model[Ti("0x8")]((()=>{for(const t of r)e[Ti("0x9")](t,{commandName:"link",commandParams:[o]})}))})),e[Ti("0x16")](Ti("0x11"),(()=>{const n=this[Ti("0xe")][Ti("0x14")],o=n[Ti("0x10")][Ti("0x15")];n[Ti("0x8")]((()=>{let n=[];n=o[Ti("0x7")]?[(0,Vs.findAttributeRange)(o[Ti("0xf")](),Ti("0x0"),o[Ti("0x2")]("linkHref"),t[Ti("0x14")])]:ms("linkHref",o[Ti("0x17")](),t[Ti("0x14")]);for(const t of n)e[Ti("0x9")](t,{commandName:Ti("0x11"),commandParams:[]})}))})),e[Ti("0x6")][Ti("0xb")]((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x4")==n[Ti("0x18")]){const t=n.commandParams[0];return{type:Ti("0xd"),content:Yo(o,Ti("0xa"),'"'+t+'"')}}return Ti("0x11")==n[Ti("0x18")]?{type:"format",content:Yo(o,Ti("0xc"))}:void 0}}))}}const yi=["ELEMENT_TODO_LIST","enableCommand","execute","name","plugins","_selectedElements","bulleted","end","replace","todo","bulletedList","isObject","getSelectedBlocks","createRange","document","createPositionAt","registerElementLabel","_descriptionFactory","editor","add","length","*Indent:* %0","findIndex","ELEMENT_NUMBERED_LIST","element","change","paragraph","ELEMENT_LIST_ITEM","selection","commands","nextSibling","outdentList","before","format","previousSibling","getAttribute","ListEditing","listType","push","TodoListEditing","*Uncheck item*","filter","commandName","checkTodoList","slice","*Check item*","listItem","afterInit","blockName","get","listIndent","List","numberedList","model","commandParams","has","forceValue","from","todoListChecked","todoList","*Outdent:* %0","value","schema","locale"];var ki,Ai;ki=yi,Ai=406,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x19")](){const t=this[vi("0x3c")],e=t[vi("0x29")];if(!t[vi("0x2e")].has(vi("0xe")))return;const n=t[vi("0x2e")][vi("0x1b")]("TrackChangesEditing"),o=t[vi("0x2e")][vi("0x21")](vi("0x11"));function s(e){return()=>{const o=t[vi("0x1f")].document[vi("0x6")],s=t[vi("0x7")][vi("0x1b")](e);if(s[vi("0x27")])return void t[vi("0x2c")](vi("0x4"),{});const r=e[vi("0x16")](0,-4),i=function(t,e,n){let o=Array.from(t)[vi("0x13")]((t=>{return e=t,(o=n).checkChild(e.parent,vi("0x18"))&&!o[vi("0x35")](e);var e,o}));o=o.filter((t=>!t.is(vi("0x2"),vi("0x18"))||t[vi("0xd")](vi("0xf"))!=e));const s=new Set;for(const t of o)t.is(vi("0x2"),vi("0x18"))?s.add(Si(t)):s[vi("0x3d")](t);return Array[vi("0x23")](s)}(o.getSelectedBlocks(),r,t.model[vi("0x28")]);t[vi("0x1f")][vi("0x3")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[vi("0x27")]}],formatGroupId:vi("0x1a")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x23")](t);const n=e[vi("0x0")]((t=>vi("0x18")!=t[vi("0x2d")]));return n>-1&&(e=e[vi("0x16")](0,n)),e}(t[vi("0x1f")][vi("0x38")][vi("0x6")][vi("0x36")]()),s=t[vi("0x1f")][vi("0x37")](t[vi("0x1f")].createPositionAt(o[0],vi("0xa")),t[vi("0x1f")][vi("0x39")](o[o[vi("0x3e")]-1],vi("0x31")));t[vi("0x1f")][vi("0x3")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[vi("0x8")];for(;t&&t[vi("0xd")](vi("0x1c"))>n[vi("0xd")](vi("0x1c"));)e.add(t),t=t[vi("0x8")]}return Array[vi("0x23")](e)}(o))}))}}n[vi("0x2b")](vi("0x1e"),s(vi("0x1e"))),n[vi("0x2b")](vi("0x34"),s("bulletedList")),o&&n[vi("0x2b")](vi("0x25"),s(vi("0x25"))),n.enableCommand("indentList",r("indentList")),n[vi("0x2b")](vi("0x9"),r(vi("0x9"))),o&&n[vi("0x2b")](vi("0x15"),(()=>{const e=t[vi("0x7")][vi("0x1b")](vi("0x15")),o=Array[vi("0x23")](e[vi("0x2f")]);o.filter((t=>t[vi("0xd")](vi("0x24"))!=e[vi("0x27")])),t[vi("0x1f")][vi("0x3")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[vi("0x27")]}]})}))})),n[vi("0x3b")][vi("0x3a")](vi("0x18"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x3b")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(vi("0x1e")==n[vi("0x14")]||vi("0x34")==n[vi("0x14")]||vi("0x25")==n.commandName)switch(n[vi("0x14")][vi("0x32")](vi("0x1d"),"")){case vi("0x30"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Yo(e,vi("0x1")));case vi("0x33"):return o(Yo(e,vi("0x2a")))}if("indentList"==n[vi("0x14")])return{type:vi("0xb"),content:Yo(e,vi("0x3f"),Yo(e,vi("0x5")))};if(vi("0x9")==n[vi("0x14")])return{type:"format",content:Yo(e,vi("0x26"),Yo(e,vi("0x5")))};if(vi("0x15")==n.commandName)return n[vi("0x20")][0][vi("0x22")]?{type:vi("0xb"),content:Yo(e,vi("0x17"))}:{type:vi("0xb"),content:Yo(e,vi("0x12"))}}function o(t){return{type:"format",content:Yo(e,"*Change to:* %0",t)}}}))}}function Si(t){const e=t.getAttribute(vi("0x1c"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0xc")].is(vi("0x2"),vi("0x18"));){const o=t[vi("0xc")].getAttribute("listIndent");if(o==e)n=t[vi("0xc")];else if(o<e)break;t=t[vi("0xc")]}return n}function Ii(t){const e=[];if(t.is(vi("0x2"),"listItem")&&t[vi("0xd")]("listIndent")>0){let n=t.nextSibling;for(;n&&vi("0x18")==n[vi("0x2d")]&&n.getAttribute(vi("0x1c"))==t.getAttribute(vi("0x1c"));)e[vi("0x10")](n),n=n[vi("0x8")]}return e}const Li=["listReversed","list.properties","model","unshift","commandName","handleListStartCommand","filter","startIndex","listStyle","ListPropertiesEditing","afterInit","type","plugins","registerDescriptionCallback","ListUtils","push","*Change to:* %0","TrackChangesEditing","handleListStyleCommand","getAttribute","change","editor","_getSuggestionBlocks","config","map","length","markMultiRangeBlockFormat","get","commandParams","listStart","getFirstPosition","*Format:* set order to regular","selection","getSelectedBlocks","replace","createPositionAt","enableCommand","forward","listItem","_getSuggestionBlocksForListStyle","numbered","element","bind","has","getLastPosition","_descriptionFactory","toUpperCase","getSiblingNodes","document","styles","reversed","from","before","handleDescriptions","_getTranslationKeyForListStyle","createRange","listType","parent","format","backward","handleListReversedCommand","ELEMENT_"];var Ni,Mi;Ni=Li,Mi=298,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x16")](){if(!this[wi("0x21")][wi("0x18")][wi("0x37")](wi("0x15")))return;const t=this[wi("0x21")][wi("0x23")][wi("0x27")](wi("0xd")),e=this[wi("0x21")][wi("0x18")].get("TrackChangesEditing");t[wi("0x3d")]&&e[wi("0x30")](wi("0x14"),this[wi("0x1e")][wi("0x36")](this)),t[wi("0x0")]&&e[wi("0x30")](wi("0xc"),this[wi("0xa")][wi("0x36")](this)),t[wi("0x13")]&&e[wi("0x30")](wi("0x29"),this.handleListStartCommand[wi("0x36")](this)),e[wi("0x39")][wi("0x19")](this[wi("0x3")][wi("0x36")](this))}[wi("0x1e")](t,e={}){const n=this[wi("0x21")][wi("0x18")][wi("0x27")](wi("0x1d")),o=this._getSuggestionBlocksForListStyle();this[wi("0x21")][wi("0xe")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:wi("0x14"),commandParams:[{type:e[wi("0x17")]}],formatGroupId:wi("0x14")})}))}handleListReversedCommand(t,e={}){const n=this[wi("0x21")].plugins.get("TrackChangesEditing"),o=this[wi("0x22")]((t=>t.is(wi("0x35"),wi("0x32"))&&"numbered"===t[wi("0x1f")]("listType")));if(o[wi("0x25")]<1)return;const s=o[wi("0x24")]((t=>this[wi("0x21")][wi("0xe")][wi("0x5")](this[wi("0x21")][wi("0xe")][wi("0x2f")](t,wi("0x2")),this[wi("0x21")][wi("0xe")][wi("0x2f")](t,0))));this[wi("0x21")][wi("0xe")][wi("0x20")]((()=>{n[wi("0x26")](s,{commandName:wi("0xc"),commandParams:[{reversed:e[wi("0x0")]}],formatGroupId:wi("0xc")})}))}[wi("0x11")](t,e={}){const n=this.editor.plugins.get(wi("0x1d")),o=this[wi("0x22")]((t=>t.is(wi("0x35"),wi("0x32"))&&wi("0x34")===t[wi("0x1f")](wi("0x6"))));if(o[wi("0x25")]<1)return;const s=o[wi("0x24")]((t=>this[wi("0x21")][wi("0xe")].createRange(this[wi("0x21")].model[wi("0x2f")](t,"before"),this[wi("0x21")][wi("0xe")][wi("0x2f")](t,0))));this.editor[wi("0xe")][wi("0x20")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wi("0x29"),commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[wi("0x3")](t){const e=this[wi("0x21")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x10")]){case"listStyle":o=wi("0x1c"),s={type:wi("0x8"),content:Yo(e,o,Yo(e,this[wi("0x4")](n.commandParams[0][wi("0x17")])))};break;case wi("0xc"):o=n[wi("0x28")][0][wi("0x0")]?"*Format:* set order to reversed":wi("0x2b"),s={type:wi("0x8"),content:Yo(e,o)};break;case wi("0x29"):o="*Format:* set start index to %0",s={type:wi("0x8"),content:Yo(e,o,n[wi("0x28")][0][wi("0x13")])}}return s}[wi("0x33")](){var t,e,n,o;const s=this.editor.plugins[wi("0x27")]("ListUtils");let r=Array[wi("0x1")](this.editor.model[wi("0x3c")][wi("0x2c")][wi("0x2d")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element","listItem"))&&r[wi("0xf")](...s[wi("0x3b")](this.editor[wi("0xe")][wi("0x3c")][wi("0x2c")].getFirstPosition(),"backward")),(null===(e=r[r[wi("0x25")]-1])||void 0===e?void 0:e.is(wi("0x35"),wi("0x32")))&&r[wi("0x1b")](...s[wi("0x3b")](this[wi("0x21")][wi("0xe")][wi("0x3c")][wi("0x2c")][wi("0x38")](),wi("0x31"))),r=[...new Set(r)],(null===(o=null===(n=this.editor.model[wi("0x3c")].selection[wi("0x2a")]())||void 0===n?void 0:n[wi("0x7")])||void 0===o?void 0:o.is(wi("0x35"),wi("0x32")))&&(r=r[wi("0x12")]((t=>t.is(wi("0x35"),wi("0x32"))))),r}[wi("0x22")](t){const e=this[wi("0x21")][wi("0x18")].get(wi("0x1a"));let n=Array.from(this[wi("0x21")][wi("0xe")][wi("0x3c")][wi("0x2c")][wi("0x2d")]()).filter(t)[wi("0x24")]((t=>{const n=this[wi("0x21")].model[wi("0x2f")](t,0);return[...e[wi("0x3b")](n,wi("0x9")),...e[wi("0x3b")](n,wi("0x31"))]})).flat();return n=[...new Set(n)],n}[wi("0x4")](t){return wi("0xb")+this[wi("0x21")][wi("0x18")].get(wi("0x1a")).getListTypeFromListStyleType(t).toUpperCase()+"_LIST_"+t[wi("0x3a")]()[wi("0x2e")](/-/g,"_")}}const Fi=["afterInit","data","enableCommand","elementToElement","plugins","stop","div","get","downcastDispatcher","showSuggestionHighlights","options","_descriptionFactory","attribute:url:media","conversion","ELEMENT_MEDIA","mediaEmbed","TrackChangesEditing","media","MediaEmbedEditing","has","dataDowncast","high"];var Pi,Di;Pi=Fi,Di=382,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xe")](){const t=this.editor;if(!t[Bi("0x12")][Bi("0xb")](Bi("0xa")))return;const e=t[Bi("0x12")][Bi("0x15")](Bi("0x8")),n=t.locale;e[Bi("0x10")](Bi("0x7")),e[Bi("0x3")].registerElementLabel(Bi("0x9"),(t=>Yo(n,Bi("0x6"),t))),t[Bi("0x5")].for(Bi("0xc"))[Bi("0x11")]({model:Bi("0x9"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x1")])return e.createEmptyElement(Bi("0x14"))},converterPriority:Bi("0xd")}),t[Bi("0xf")][Bi("0x0")].on(Bi("0x4"),((t,e,n)=>{n[Bi("0x2")][Bi("0x1")]&&t[Bi("0x13")]()}),{priority:Bi("0xd")})}}const Ui=["get","MentionEditing","afterInit","enableCommand","plugins","TrackChangesEditing","has","mention"];var Gi,Hi;Gi=Ui,Hi=388,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x6")](){const t=this.editor;t[zi("0x0")][zi("0x2")](zi("0x5"))&&t.plugins[zi("0x4")](zi("0x1"))[zi("0x7")](zi("0x3"))}}const Vi=["afterInit","has","registerElementLabel","_descriptionFactory","plugins","TrackChangesEditing","locale","ELEMENT_PAGE_BREAK","PageBreakEditing","editor"];var Ki,qi;Ki=Vi,qi=208,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x2")](){const t=this[Xi("0x1")];if(!t.plugins[Xi("0x3")](Xi("0x0")))return;t.plugins.get(Xi("0x7")).enableCommand("pageBreak");const e=t[Xi("0x6")].get(Xi("0x7")),n=t[Xi("0x8")];e[Xi("0x5")][Xi("0x4")]("pageBreak",(t=>Yo(n,Xi("0x9"),t)))}}const Ji=["insert","toViewPosition","ELEMENT_PARAGRAPH","*Change to:* %0","downcastDispatcher","activeMarkers","type","selection","Paragraph","paragraph","span","markerRange","highest","isObject","name","getItemLabel","$text","isTouching","afterInit","createUIElement","getFirstRange","locale","checkChild","schema","isBlock","insertParagraph","editor","markerName","*Insert:* %0","change","mapper","ck-suggestion-marker--active","model","has","start","ck-suggestion-marker-split","getSelectedBlocks","showSuggestionHighlights","blockName","addClass","writer","format","plugins","insertion","end","isLimit","editing","consumable","parent","bindElementToMarker","registerElementLabel","data","addMarker:suggestion:insertion","registerDescriptionCallback","nodeAfter","get","enableCommand","TrackChangesEditing"];var Qi,Zi;Qi=Ji,Zi=415,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x9")](){const t=this.editor;if(!t.plugins[Yi("0x18")](Yi("0x39")))return;const e=t[Yi("0xc")],n=t.plugins[Yi("0x2e")](Yi("0x30"));n._descriptionFactory[Yi("0x29")](Yi("0x0"),(t=>Yo(e,Yi("0x33"),t))),n[Yi("0x2f")](Yi("0x0"),((e,o={})=>{const s=t[Yi("0x17")].document,r=o[Yi("0x38")]||s[Yi("0x38")],i=Array.from(r[Yi("0x1b")]()).filter((t=>{return e=t,(n=this[Yi("0x11")][Yi("0x17")][Yi("0xe")]).checkChild(e[Yi("0x27")],Yi("0x0"))&&!n[Yi("0x4")](e)&&"paragraph"!=e[Yi("0x5")];var e,n}));t[Yi("0x17")][Yi("0x14")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0x0"),commandParams:[],formatGroupId:Yi("0x1d")},fs(t))}))})),n._descriptionFactory[Yi("0x2c")]((t=>{const{data:n}=t;if(n&&Yi("0x0")==n.commandName)return{type:Yi("0x20"),content:Yo(e,Yi("0x34"),Yo(e,Yi("0x33")))}})),n[Yi("0x2f")](Yi("0x10")),t[Yi("0x25")][Yi("0x35")].on(Yi("0x2b"),ex(t),{priority:Yi("0x3")}),t[Yi("0x2a")][Yi("0x35")].on(Yi("0x2b"),((e,n,o)=>{o.options[Yi("0x1c")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x3")});const o=n._descriptionFactory;o[Yi("0x2c")]((n=>{if(Yi("0x22")!==n[Yi("0x37")])return;const{start:s,end:r}=n[Yi("0xb")]();if(!s[Yi("0x8")](r)||!s[Yi("0x2d")])return;const i=t[Yi("0x17")][Yi("0xe")],x=s.nodeAfter;return i.isBlock(x)&&!i[Yi("0x24")](x)&&i[Yi("0xd")](x,Yi("0x7"))?{type:Yi("0x22"),content:Yo(e,Yi("0x13"),o[Yi("0x6")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x21")][Yi("0x2e")](Yi("0x30")),i=o[Yi("0x2")][Yi("0x19")],x=o[Yi("0x2")][Yi("0x23")],a=t[Yi("0x17")][Yi("0xe")];if(!i.isTouching(x)||!i[Yi("0x2d")])return;const c=i.nodeAfter;if(a[Yi("0xf")](c)&&!a[Yi("0x24")](c)&&a.checkChild(c,Yi("0x7"))){if(!s[Yi("0x26")].consume(o.markerRange,n[Yi("0x5")]))return;const t=s[Yi("0x1f")][Yi("0xa")](Yi("0x1"),{class:Yi("0x1a")}),i=s.mapper[Yi("0x32")](x);e&&r[Yi("0x36")].includes(o[Yi("0x12")])&&s[Yi("0x1f")][Yi("0x1e")](Yi("0x16"),t),s[Yi("0x1f")][Yi("0x31")](i,t),s[Yi("0x15")][Yi("0x28")](t,o[Yi("0x12")])}}}const nx=["isFormatting","plugins","from","RemoveFormatEditing","get","getAttributes","afterInit","removeFormat","isCollapsed","*Remove all formatting*","document","_descriptionFactory","getItems","model","getAttributeProperties","commandName","has","getRanges","createRangeOn","editor","selection","change"];var ox,sx;ox=nx,sx=372,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x8")](){const t=this[rx("0x15")];if(!t.plugins[rx("0x12")](rx("0x5")))return;const e=t[rx("0x3")][rx("0x6")]("TrackChangesEditing");e.enableCommand("removeFormat",(n=>{const o=t.model[rx("0xc")][rx("0x0")];o[rx("0xa")]?n():t.model[rx("0x1")]((()=>{const n=Array[rx("0x4")](o[rx("0x13")]());for(const o of n)for(const n of o[rx("0xe")]())xx(n,t[rx("0xf")].schema)&&e.markInlineFormat(t[rx("0xf")][rx("0x14")](n),{commandName:rx("0x9"),commandParams:[]})}))})),e[rx("0xd")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&rx("0x9")==n[rx("0x11")])return{type:"format",content:Yo(t.locale,rx("0xb"))}}))}}function xx(t,e){for(const[n]of t[rx("0x7")]()){const t=e[rx("0x10")](n);if(t&&t[rx("0x2")])return!0}return!1}const ax=["TrackChangesEditing","enableCommand","RestrictedEditingModeEditing","afterInit","trackChanges","acceptSuggestion","acceptSelectedSuggestions","editor","get","goToNextRestrictedEditingException","discardSuggestion","has","plugins","discardSelectedSuggestions"];var cx,lx;cx=ax,lx=176,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x9")](){const t=this[ux("0xd")];if(!t[ux("0x4")][ux("0x3")](ux("0x8")))return;const e=t[ux("0x4")][ux("0x0")](ux("0x6"));e.enableCommand("goToPreviousRestrictedEditingException"),e[ux("0x7")](ux("0x1"));const n=t[ux("0x4")].get(ux("0x8"));n[ux("0x7")](ux("0xa")),n.enableCommand(ux("0xb")),n[ux("0x7")](ux("0x2")),n[ux("0x7")]("acceptAllSuggestions"),n[ux("0x7")]("discardAllSuggestions"),n.enableCommand(ux("0xc")),n[ux("0x7")](ux("0x5"))}}const gx=["plugins","addMarker:suggestion:deletion","addClass","addMarker:suggestion:insertion","ck-suggestion-marker--active","markerRange","showSuggestionHighlights","consumable","TrackChangesEditing","options","editing","enableCommand","ELEMENT_LINE_BREAK","writer","model","span","split","getItems","createUIElement","addMarker:suggestion","high","insert","merge","downcastDispatcher","requires","get","shiftEnter","activeMarkers","mapper","softBreak","ck-suggestion-marker-","init","registerElementLabel","test","markerName","name","element"];var mx,fx;mx=gx,fx=315,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x5")](){return[nr.ShiftEnter]}[hx("0xc")](){const t=this.editor,e=t[hx("0x12")][hx("0x6")](hx("0x1a"));e[hx("0x1d")](hx("0x7")),t[hx("0x1c")][hx("0x4")].on(hx("0x15"),bx(t),{priority:hx("0x1")}),t.editing[hx("0x4")].on(hx("0x13"),bx(t),{priority:hx("0x1")}),t.data.downcastDispatcher.on(hx("0x0"),((e,n,o)=>{o[hx("0x1b")][hx("0x18")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[hx("0xd")]("softBreak",(e=>Yo(t.locale,hx("0x1e"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x12")][hx("0x6")](hx("0x1a"));if(!s[hx("0x19")][hx("0xe")](o[hx("0x17")],n[hx("0x10")]))return;const i=t[hx("0x20")];for(const t of o[hx("0x17")][hx("0x23")]()){if(!t.is(hx("0x11"),hx("0xa")))continue;const n="deletion"==o[hx("0xf")][hx("0x22")](":")[1]?hx("0x3"):hx("0x22"),x=s[hx("0x1f")][hx("0x24")](hx("0x21"),{class:hx("0xb")+n}),a=s[hx("0x9")].toViewPosition(i.createPositionBefore(t));e&&r[hx("0x8")].includes(o[hx("0xf")])&&s[hx("0x1f")][hx("0x14")](hx("0x16"),x),s[hx("0x1f")][hx("0x2")](a,x),s[hx("0x9")].bindElementToMarker(x,o.markerName)}}}const Ex=["restrictedEditingException","getRanges","isCollapsed","forceValue","plugins","locale","_descriptionFactory","afterInit","get","FORMAT_RESTRICTED_DISABLED","markInlineFormat","commandParams","selection","FORMAT_RESTRICTED_ENABLED","change","editor","value","enableCommand","from","commandName","format"];var _x,Tx;_x=Ex,Tx=367,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x12")](){const t=this[Cx("0x5")],e=t.model,n=t[Cx("0x10")];if(!t[Cx("0xf")].has("StandardEditingModeEditing"))return;const o=t[Cx("0xf")][Cx("0x13")]("TrackChangesEditing"),s=Cx("0xb"),r=t.commands[Cx("0x13")](s);o[Cx("0x7")](s,((t,n={})=>{const i=e.document[Cx("0x2")];if(i[Cx("0xd")])return void t(n);const x=void 0!==n[Cx("0xe")]?n.forceValue:!r[Cx("0x6")];e[Cx("0x4")]((()=>{const t=Array[Cx("0x8")](i[Cx("0xc")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x0")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x11")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e[Cx("0x9")]==s)return e[Cx("0x1")][0][Cx("0xe")]?{type:Cx("0xa"),content:Yo(n,Cx("0x3"))}:{type:Cx("0xa"),content:Yo(n,Cx("0x14"))}}))}}const kx=["every","_getRangesWithClasses","config","registerDescriptionCallback","getAncestors","block","locale","has","_descriptionFactory","push","format","StyleUtils","styleName","plugins","editor","document","selection","commandName","style","modelElements","commandParams","add","DataSchema","model","from","createRangeOn","toLowerCase","name","style:","forceValue","get","change","getSelectedBlocks","isBlock","Style","*Remove format:* %0","getItems","commands","find","element","style.definitions","_getStyleDefinition","afterInit","value","includes","classes","enableCommand"];var Ax,vx;Ax=kx,vx=471,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x29")](){const t=this[Rx("0xd")];if(!t[Rx("0xc")][Rx("0x6")](Rx("0x21")))return;const e=t[Rx("0x24")].get("style"),n=t.plugins[Rx("0x1d")]("TrackChangesEditing"),o=t[Rx("0x5")],s=t[Rx("0xc")].get(Rx("0x15")),r=t[Rx("0xc")][Rx("0x1d")](Rx("0xa")).normalizeConfig(s,t[Rx("0x1")][Rx("0x1d")](Rx("0x27")));n[Rx("0x2d")](Rx("0x11"),((o,{styleName:i})=>{const x=t.model[Rx("0xe")][Rx("0xf")],a=this._getStyleDefinition(i,r);if(!a)return;if(!e.enabledStyles[Rx("0x2b")](i))return;if(x.isCollapsed&&!a[Rx("0x20")])return void o({styleName:i});const c=!e[Rx("0x2a")][Rx("0x2b")](a[Rx("0x1a")]);if(a[Rx("0x20")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x3")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x2b")](o[Rx("0x1a")])){n[Rx("0x14")](o);break}}return n}(x[Rx("0x1f")](),a[Rx("0x12")]);t[Rx("0x16")][Rx("0x1e")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:Rx("0x11"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x1b")+i})}))}else{let e=Array[Rx("0x17")](x.getRanges());if(!c){const n=Array.from(s.getDefinitionsForView(a[Rx("0x26")],!1))[0][Rx("0x16")],o=[];for(const s of e){const e=this[Rx("0x0")](t[Rx("0x16")],s,a.classes,n);o[Rx("0x8")](...e)}e=o}t[Rx("0x16")][Rx("0x1e")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:Rx("0x11"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x7")][Rx("0x2")]((t=>{const{data:e}=t;if(e&&Rx("0x11")===e[Rx("0x10")])return e[Rx("0x13")][0][Rx("0x1c")]?{type:Rx("0x9"),content:Yo(o,"*Format:* %0",e.commandParams[0][Rx("0xb")][Rx("0x19")]())}:{type:Rx("0x9"),content:Yo(o,Rx("0x22"),e[Rx("0x13")][0].styleName[Rx("0x19")]())}}))}[Rx("0x28")](t,e){let n=e[Rx("0x4")][Rx("0x25")]((e=>e[Rx("0x1a")]===t));return n||(n=e.inline.find((e=>e.name===t))),n}[Rx("0x0")](t,e,n,o){const s=[];for(const r of e[Rx("0x23")]()){const e=r.getAttribute(o);e&&n[Rx("0x2e")]((t=>e[Rx("0x2c")][Rx("0x2b")](t)))&&s.push(t[Rx("0x18")](r))}return s}}const Ix=["item","toLowerCase","removeTableColumn","order","every","minRow","markMultiRangeInsertion","insertTableColumnLeft","ELEMENT_TABLE","createTableWalker","setSelection","toViewElement","map","markMultiRangeDeletion","registerCustomCallback","element","locale","discard","refresh","some","ELEMENT_TABLE_COLUMN","MIN_SAFE_INTEGER","insertion","getSuggestion","low","getColumnIndexes","getFirstRange","type","isIntersectingWithRange","highest","filter","oldRange","subType","editor","nodeAfter","ELEMENT_TABLE_COLUMN_WITH_TEXT","change","fromRange","tableColumn","addRange","left","span","afterInit","_getCoordsForCells","change:data","findAncestor","getCellLocation","ELEMENT_TABLE_ROW","isInContent","enqueueChange","_suggestionFactory","_getSuggestionCoords","classes","document","plugins","deletion","cell","insertTableRowBelow","from","substr","first","getChangedMarkers","ELEMENT_TABLE_WITH_TEXT","_tablePostFixingSubtypes","$textProxy","TableUtils","mapper","commands","values","_splitMarkerName","*Insert:* %0","isEqual","_setupColumnsRowsFixing","selectTableColumn","writer","tableCell","_descriptionFactory","accept","insertTableRowAbove","*Remove:* %0","min","getItems","length","detach","removeClass","batch","add","_tableSuggestions","registerDescriptionCallback","TrackChangesEditing","downcastDispatcher","enableCommand","name","getAttribute","registerPostFixer","get","$graveyard","start","nodeBefore","getRanges","minColumn","above","createPositionAt","getRowIndexes","max","rowspan","_acceptFormatSuggestionCallbackFactory","last","join","createRangeOn","insert","execute","hasAttribute","getSelectionAffectedTableCells","includes","push","colspan","position","removeTableRow","showSuggestionHighlights","isTouching","ELEMENT_TABLE_ROW_WITH_TEXT","data","model","tableRow","table","MAX_SAFE_INTEGER","root","rootName","end"];var Lx,Nx;Lx=Ix,Nx=319,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=["tableRow",Mx("0x6d")],this[Mx("0x1c")]=new Set}[Mx("0x71")](){const t=this[Mx("0x68")],e=t[Mx("0x40")][Mx("0x7c")].selection;if(!t[Mx("0x7d")].has("TableEditing"))return;const n=t[Mx("0x57")],o=t.plugins[Mx("0x24")](Mx("0x1e")),s=t.plugins[Mx("0x24")](Mx("0x6"));o[Mx("0x11")].registerElementLabel("table",(t=>Yo(n,Mx("0x4f"),t))),this[Mx("0xd")](),o[Mx("0x20")]("insertTable"),o.enableCommand("selectTableRow"),o[Mx("0x20")](Mx("0xe"));for(const n of[Mx("0x13"),Mx("0x80")]){const r=t[Mx("0x8")].get(n);o[Mx("0x20")](n,(n=>{t[Mx("0x40")][Mx("0x6b")]((t=>{n();const i=Mx("0x2a")===r[Mx("0x4a")],x=s.getSelectionAffectedTableCells(e),a=s[Mx("0x2c")](x),c=i?a[Mx("0x1")]-1:a.last+1,l=x[0][Mx("0x74")](Mx("0x42")),u=s[Mx("0x50")](l,{startRow:c,endRow:c}),d=Array[Mx("0x81")](u)[Mx("0x53")]((e=>t.createRangeOn(e[Mx("0x7f")])));o[Mx("0x4d")](d,Mx("0x41"))}))}))}for(const n of[Mx("0x4e"),"insertTableColumnRight"]){const r=t[Mx("0x8")][Mx("0x24")](n);o[Mx("0x20")](n,(n=>{t.model[Mx("0x6b")]((t=>{n();const i=Mx("0x6f")===r[Mx("0x4a")],x=s[Mx("0x36")](e),a=s.getColumnIndexes(x),c=i?a.first-1:a[Mx("0x30")]+1,l=x[0].findAncestor("table"),u=s[Mx("0x50")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Mx("0x53")]((e=>t[Mx("0x32")](e[Mx("0x7f")])));o[Mx("0x4d")](d,Mx("0x6d"))}))}))}for(const n of[Mx("0x3b"),Mx("0x49")]){const r=n[Mx("0x0")](11),i=r[Mx("0x48")](),x=i[Mx("0x0")](0,3)+Mx("0x70"),a=Mx("0x42")+r,c=Mx("0x15")+r,l=Mx("0x2d")+r;o[Mx("0x20")](n,(()=>{t[Mx("0x40")][Mx("0x6b")]((t=>{const r=s[Mx("0x36")](e),u=r[0][Mx("0x74")](Mx("0x42"));let d;if(Mx("0x3b")==n){const t=s[Mx("0x2c")](r);d={startRow:t[Mx("0x1")],endRow:t[Mx("0x30")],includeAllSlots:!0}}else{const t=s[Mx("0x60")](r);d={startColumn:t.first,endColumn:t[Mx("0x30")],includeAllSlots:!0}}const g=s[Mx("0x50")](u,d),m=Array[Mx("0x81")](g)[Mx("0x53")]((({cell:t})=>t)),f=Ox(m[Mx("0x65")]((t=>t[Mx("0x35")](x)))),h=Ox(m[Mx("0x65")]((t=>!t[Mx("0x35")](x)))).map((e=>t[Mx("0x32")](e))),p=o[Mx("0x54")](h,a);if(p&&(Mx("0x41")==p[Mx("0x67")]||Mx("0x6d")==p.subType)){const e=this[Mx("0x7a")](p);for(const n of f){const o=t[Mx("0x32")](n),r=s[Mx("0x75")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[Mx("0x6e")](o)}}}))}))}function r(n){const o=Array[Mx("0x81")](e[Mx("0x28")]())[Mx("0x53")]((t=>i.LiveRange.fromRange(t)));t[Mx("0x40")][Mx("0x6b")]((e=>{const s=e[Mx("0x1a")];n=n[Mx("0x65")]((t=>Mx("0x25")!=t[Mx("0x44")].rootName)),e[Mx("0x51")](n),t[Mx("0x8")][Mx("0x24")](Mx("0x3b"))[Mx("0x59")](),t.execute(Mx("0x3b"),{forceDefaultExecution:!0}),t[Mx("0x40")][Mx("0x78")]((()=>{t.model[Mx("0x78")](s,(t=>{const e=o[Mx("0x65")]((t=>Mx("0x25")!=t[Mx("0x44")][Mx("0x45")]));e.length>0&&t[Mx("0x51")](e);for(const t of o)t[Mx("0x18")]()}))}))}))}function a(n){t.model[Mx("0x6b")]((o=>{const s=Array[Mx("0x81")](e[Mx("0x28")]())[Mx("0x53")]((t=>i.LiveRange[Mx("0x6c")](t))),r=[];for(const t of n)for(const e of t[Mx("0x16")]({shallow:!0}))r.push(e);for(const e of r)Mx("0x25")!=e[Mx("0x44")][Mx("0x45")]&&(o[Mx("0x51")](o[Mx("0x2b")](e,0)),t.commands[Mx("0x24")](Mx("0x49"))[Mx("0x59")](),t[Mx("0x34")](Mx("0x49"),{forceDefaultExecution:!0}));const x=s[Mx("0x65")]((t=>Mx("0x25")!=t[Mx("0x44")][Mx("0x45")]));x[Mx("0x17")]>0&&o.setSelection(x);for(const t of s)t[Mx("0x18")]()}))}function c(t,e){return e[Mx("0x4b")]((e=>t[Mx("0x5a")]((t=>t[Mx("0x46")][Mx("0xc")](e[Mx("0x26")])||e.end[Mx("0xc")](t[Mx("0x26")])))))}function l(t,e){return t[Mx("0x5a")]((t=>e.some((e=>t[Mx("0x46")][Mx("0x3d")](e[Mx("0x26")])))))}t[Mx("0x3f")][Mx("0x1f")].on("addMarker:suggestion",((t,e,n)=>{if(!n.options[Mx("0x3c")])return;const o=e[Mx("0x47")];if(!o)return;const s=n[Mx("0x7")][Mx("0x52")](o);function r(t){return Array.isArray(t)?t:[t]}s&&Mx("0x10")===o[Mx("0x21")]&&(0,x.setHighlightHandling)(s,n[Mx("0xf")],((t,e,n)=>n.addClass(r(e[Mx("0x7b")]),t)),((t,e,n)=>n[Mx("0x19")](r(e[Mx("0x7b")]),t)))}),{priority:Mx("0x64")}),o[Mx("0x11")][Mx("0x1d")]((t=>{if("insertion"!=t[Mx("0x62")]&&Mx("0x7e")!=t.type)return;const e=t.getContainedElement();if(null!=e&&e.is(Mx("0x56"),"table")){if(Mx("0x5d")==t[Mx("0x62")]){const e=t[Mx("0x16")]()[Mx("0x65")]((t=>t.is(Mx("0x5"))))[Mx("0x53")]((t=>t.data));if(e[Mx("0x17")])return{type:Mx("0x5d"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x3"),'"'+e.join(" ")+'"'))}}if(Mx("0x7e")==t[Mx("0x62")]){const e=t[Mx("0x16")]()[Mx("0x65")]((t=>t.is(Mx("0x5"))))[Mx("0x53")]((t=>t[Mx("0x3f")]));if(e[Mx("0x17")])return{type:"deletion",content:Yo(n,Mx("0x14"),Yo(n,Mx("0x3"),'"'+e.join(" ")+'"'))}}}})),o[Mx("0x11")].registerDescriptionCallback((t=>{if(Mx("0x41")==t[Mx("0x67")]){const e=t.getItems().filter((t=>t.is("$textProxy"))).map((t=>t[Mx("0x3f")])),o=this[Mx("0x7a")](t),s=o.maxRow-o[Mx("0x4c")]+1;if("insertion"==t[Mx("0x62")])return e.length?{type:"insertion",content:Yo(n,Mx("0xb"),Yo(n,Mx("0x3e"),[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x5d"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x76"),s))};if(Mx("0x7e")==t[Mx("0x62")])return e[Mx("0x17")]?{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x3e"),[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x7e"),content:Yo(n,Mx("0x14"),Yo(n,Mx("0x76"),s))}}if("tableColumn"==t[Mx("0x67")]){const e=t[Mx("0x16")]()[Mx("0x65")]((t=>t.is(Mx("0x5"))))[Mx("0x53")]((t=>t.data)),o=this[Mx("0x7a")](t),s=o.maxColumn-o[Mx("0x29")]+1;if(Mx("0x5d")==t[Mx("0x62")])return e[Mx("0x17")]?{type:Mx("0x5d"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x6a"),[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x5d"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x5b"),s))};if(Mx("0x7e")==t[Mx("0x62")])return e[Mx("0x17")]?{type:Mx("0x7e"),content:Yo(n,Mx("0x14"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x7e"),content:Yo(n,Mx("0x14"),Yo(n,Mx("0x5b"),s))}}})),o[Mx("0x79")][Mx("0x55")](Mx("0x5d"),Mx("0x41"),Mx("0x58"),r),o._suggestionFactory.registerCustomCallback(Mx("0x7e"),Mx("0x41"),Mx("0x12"),r),o[Mx("0x79")][Mx("0x55")]("insertion","tableColumn",Mx("0x58"),a),o[Mx("0x79")][Mx("0x55")](Mx("0x7e"),"tableColumn","accept",a),o[Mx("0x79")][Mx("0x55")](Mx("0x5d"),"tableColumn",Mx("0x31"),c),o[Mx("0x79")].registerCustomCallback(Mx("0x7e"),"tableColumn",Mx("0x31"),c),o._suggestionFactory[Mx("0x55")]("insertion",Mx("0x41"),Mx("0x31"),l),o[Mx("0x79")][Mx("0x55")](Mx("0x7e"),Mx("0x41"),Mx("0x31"),l)}[Mx("0x2f")](){const t=this[Mx("0x68")],e=t.model[Mx("0x7c")].selection;return(n,o)=>{t[Mx("0x40")][Mx("0x6b")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end[Mx("0x27")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start.nodeAfter);const c=s.createRangeIn(a);if(Mx("0x25")==c.root[Mx("0x45")])return;const l=Array[Mx("0x81")](e[Mx("0x28")]()).map((t=>i.LiveRange.fromRange(t)));s[Mx("0x51")](c),t[Mx("0x8")][Mx("0x24")](r)[Mx("0x59")](),x[Mx("0x38")]({forceDefaultExecution:!0}),t.execute(r,...x);const u=l[Mx("0x65")]((t=>Mx("0x25")!=t[Mx("0x44")][Mx("0x45")]));u[Mx("0x17")]>0&&s[Mx("0x51")](u);for(const t of l)t[Mx("0x18")]()}))}}_getCoordsForCells(t){const e=this[Mx("0x68")][Mx("0x7d")][Mx("0x24")](Mx("0x6"));let n=Number[Mx("0x43")],o=Number.MIN_SAFE_INTEGER,s=Number[Mx("0x43")],r=Number[Mx("0x5c")];for(const i of t){if(Mx("0x25")==i[Mx("0x44")].rootName)continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Mx("0x35")](Mx("0x2e"))?i.getAttribute(Mx("0x2e"))-1:0,c=i[Mx("0x35")](Mx("0x39"))?i[Mx("0x22")](Mx("0x39"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this[Mx("0x68")],e=t.plugins[Mx("0x24")](Mx("0x1e")),n=t[Mx("0x7d")].get(Mx("0x6"));t[Mx("0x40")][Mx("0x7c")].on(Mx("0x73"),(()=>{const n=Array[Mx("0x81")](t[Mx("0x40")][Mx("0x7c")].differ[Mx("0x2")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0xa")](t);if("suggestion"!=n)continue;if(null!=o[Mx("0x66")])continue;const i=e[Mx("0x5e")](s);this[Mx("0x4")][Mx("0x37")](r)&&this[Mx("0x1c")][Mx("0x1b")](i)}}),{priority:Mx("0x5f")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x32")](t),r=t[Mx("0x74")]("table"),i=n[Mx("0x75")](t);for(const e of this[Mx("0x1c")]){const n=e[Mx("0x67")],x=n.startsWith("tablePaste"),a=n[Mx("0x0")](x?10:5),c=a.toLowerCase(),l=c[Mx("0x0")](0,3)+Mx("0x70"),u="min"+a,d=Mx("0x2d")+a;if(!e[Mx("0x77")])continue;if(r!=e[Mx("0x61")]()[Mx("0x26")][Mx("0x74")](Mx("0x42")))continue;if(e[Mx("0x63")](s))continue;const g=t.hasAttribute(l)?t.getAttribute(l)-1:0,m=this[Mx("0x7a")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x6e")](s),o=!0)}return o};t[Mx("0x40")][Mx("0x7c")][Mx("0x23")]((e=>{let n=!1;for(const s of t[Mx("0x40")].document.differ.getChanges())if(Mx("0x33")==s[Mx("0x62")])if("tableRow"==s[Mx("0x21")])for(const t of s[Mx("0x3a")].nodeAfter.getChildren())n=n||o(t,e);else Mx("0x10")==s[Mx("0x21")]&&(n=n||o(s.position[Mx("0x69")],e));return n}))}[Mx("0x7a")](t){return this[Mx("0x72")](t[Mx("0x28")]()[Mx("0x53")]((t=>t.start[Mx("0x69")])))}}function Ox(t){return Array[Mx("0x81")](new Set(t)[Mx("0x9")]())}const Fx=["highest","tableCell","execute","enableCommand","fromRange","cell","registerDescriptionCallback","getSelectionAffectedTableCells","horizontally","commands","TableUtils","mergeTableCellUp","find","TrackChangesEditing","getRanges","mergeTableCellLeft","setSelection","trackChanges","size","createTableWalker","stop","from","isEnabled","requires","locale","registerCustomCallback","markBlockFormat","markMultiRangeBlockFormat","_areMergableCells","editor","*Merge cells*","element","return","containsRange","author","map","add","_areSelectedCellsMergable","selection","low","getFirstPosition","change","push","filter","findAncestor","*Split cell:* vertically","rootName","createRangeOn","accept","_acceptFormatSuggestionCallbackFactory","has","length","direction","mergeTableCellDown","splitTableCellHorizontally","plugins","get","root","model","afterInit","getAncestors","formatBlock","type","detach","value","format","commandName","_suggestionFactory","_tablePostFixingSubtypes","subType","document","set:isEnabled","refresh","mergeTableCells","mergeTableCellRight","isInContent","insertion","table","splitTableCellVertically"];var Px,Dx;Px=Fx,Dx=424,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x49")](){return[wx]}[Bx("0x1e")](){const t=this[Bx("0x0")],e=t[Bx("0x1d")][Bx("0x29")].selection,n=t[Bx("0x4a")];if(!t[Bx("0x1a")][Bx("0x15")]("TableEditing"))return;const o=t[Bx("0x1a")][Bx("0x1b")](Bx("0x3f")),s=t[Bx("0x1a")].get(Bx("0x3c")),r=t[Bx("0x1a")][Bx("0x1b")](wx);r[Bx("0x27")][Bx("0xd")](Bx("0x2c")),o.enableCommand("mergeTableCells",(()=>{const e=s[Bx("0x39")](t[Bx("0x1d")][Bx("0x29")][Bx("0x9")]);t.model[Bx("0xc")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:Bx("0x2c"),commandParams:[]},[],Bx("0x2c"))}))})),t[Bx("0x3b")][Bx("0x1b")]("mergeTableCells").on(Bx("0x34"),((e,n)=>{t.commands[Bx("0x1b")](Bx("0x43")).value&&(n.length>0&&n[n[Bx("0x16")]-1]&&n[n.length-1].forceDefaultExecution||o._isForcedDefaultExecutionBlock||this[Bx("0x8")]()||e[Bx("0x46")]())}),{priority:Bx("0x32")});for(const e of[Bx("0x3d"),Bx("0x2d"),Bx("0x18"),Bx("0x41")]){const n=t.commands[Bx("0x1b")](e);o[Bx("0x35")](e,(()=>{const e=t[Bx("0x1d")][Bx("0x29")][Bx("0x9")][Bx("0xb")]().getAncestors().find((t=>t.is(Bx("0x2"),Bx("0x33")))),s=n[Bx("0x23")];t[Bx("0x1d")][Bx("0xc")]((()=>{o[Bx("0x4d")]([e,s],{commandName:Bx("0x2c"),commandParams:[]},[],Bx("0x2c"))}))}))}for(const e of["splitTableCellVertically",Bx("0x19")]){const n=t[Bx("0x3b")][Bx("0x1b")](e);o.enableCommand(e,(()=>{const r=s.getSelectionAffectedTableCells(t[Bx("0x1d")][Bx("0x29")].selection)[0],i=r[Bx("0xf")](Bx("0x30")),{column:x,row:a}=s.getCellLocation(r);let c=[];if(Bx("0x3a")==n[Bx("0x17")]){const t=s[Bx("0x45")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[Bx("0x6")]((t=>t[Bx("0x37")]))}else{const t=s.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Bx("0x47")](t)[Bx("0x6")]((t=>t[Bx("0x37")]))}t[Bx("0x1d")][Bx("0xc")]((t=>{o[Bx("0x4c")](t[Bx("0x12")](r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Bx("0x38")]((t=>{const{data:e}=t;if(e)return Bx("0x2c")==e[Bx("0x25")]?{type:Bx("0x24"),content:Yo(n,Bx("0x1"))}:void 0})),o._descriptionFactory[Bx("0x38")]((t=>{const{data:e}=t;if(e)return Bx("0x31")==e[Bx("0x25")]?{type:"format",content:Yo(n,Bx("0x10"))}:Bx("0x19")==e[Bx("0x25")]?{type:Bx("0x24"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x14")]();for(const t of[Bx("0x3d"),Bx("0x2d"),"mergeTableCellDown","mergeTableCellLeft"])o[Bx("0x26")][Bx("0x4b")](Bx("0x20"),t,Bx("0x13"),x);for(const t of[Bx("0x31"),"splitTableCellHorizontally"])o[Bx("0x26")][Bx("0x4b")](Bx("0x20"),t,Bx("0x13"),x);o._suggestionFactory[Bx("0x4b")](Bx("0x20"),Bx("0x2c"),Bx("0x13"),(n=>{t[Bx("0x1d")][Bx("0xc")]((o=>{const s=Array.from(e[Bx("0x40")]()).map((t=>i.LiveRange[Bx("0x36")](t)));o.setSelection(n),t.commands[Bx("0x1b")](Bx("0x2c"))[Bx("0x2b")](),t[Bx("0x34")](Bx("0x2c"),{forceDefaultExecution:!0});const r=s[Bx("0xe")]((t=>"$graveyard"!=t[Bx("0x1c")][Bx("0x11")]));r[Bx("0x16")]>0&&o[Bx("0x42")](r);for(const t of s)t[Bx("0x22")]()}))}));for(const e of[Bx("0x3d"),Bx("0x18"),Bx("0x41"),Bx("0x2d")]){const n=t.commands[Bx("0x1b")](e);n.on(Bx("0x2a"),((e,o,s)=>{if(s){const o=t[Bx("0x1d")][Bx("0x29")][Bx("0x9")][Bx("0xb")]()[Bx("0x1f")]()[Bx("0x3e")]((t=>t.is("element",Bx("0x33"))));this._areMergableCells(n[Bx("0x23")],o)||(e[Bx("0x3")]=!1,e[Bx("0x46")]())}}),{priority:Bx("0xa")})}}[Bx("0x8")](){const t=this[Bx("0x0")][Bx("0x3b")][Bx("0x1b")](Bx("0x2c")),e=this[Bx("0x0")][Bx("0x1a")][Bx("0x1b")](Bx("0x3c"));if(!t[Bx("0x48")])return!1;const n=e[Bx("0x39")](this.editor.model[Bx("0x29")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x4e")](t,e))return!1;return!0}[Bx("0x4e")](t,e){const n=this[Bx("0x0")][Bx("0x1a")].get("TrackChangesEditing"),o=this[Bx("0x0")][Bx("0x1d")][Bx("0x12")](t),s=this[Bx("0x0")].model[Bx("0x12")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if((Bx("0x2f")==t[Bx("0x21")]||"deletion"==t[Bx("0x21")]||"mergeTableCells"==t[Bx("0x28")])&&t[Bx("0x2e")])for(const e of t[Bx("0x40")]())e[Bx("0x4")](o,!0)&&r[Bx("0x7")](t[Bx("0x21")]+":"+t[Bx("0x5")].id),e[Bx("0x4")](s,!0)&&i.add(t.type+":"+t[Bx("0x5")].id);if(r[Bx("0x44")]!=i[Bx("0x44")])return!1;for(const t of r)if(!i[Bx("0x15")](t))return!1;return!0}}const Ux=["nodeBefore","FORMAT_HEADER_ROW","table","_suggestionFactory","createRange","model","stop","FORMAT_REGULAR_ROW","highest","getColumnIndexes","_descriptionFactory","index","document","createPositionBefore","removeClass","markerNameToElements","enableCommand","setAttribute","activeMarkers","_splitMarkerName","setTableRowHeader","registerCustomCallback","data-suggestion","TableUtils","removeMarker:suggestion","getRowIndexes","getAttribute","name","findAncestor","from","parent","markerRange","getChild","editing","formatBlock","ck-suggestion-marker--active","item","cell","TrackChangesEditing","isBefore","headingRows","showSuggestionHighlights","plugins","nodeAfter","data","forceValue","consumable","createPositionAfter","downcastDispatcher","removeAttribute","markBlockFormat","markerName","commands","headingColumns","consume","locale","mapper","setTableColumnHeader","ck-suggestion-marker-","selection","get","editor","commandName","change","afterInit","childCount","end","first","getSuggestion","getCellLocation","addMarker:suggestion","FORMAT_HEADER_COLUMN","getSelectionAffectedTableCells","commandParams","TableEditing","createTableWalker","last","writer","requires","start","value","accept","addClass","*Format:* %0","bindElementToMarker","has"];var Gx,Hx;Gx=Ux,Hx=399,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x17")](){return[wx]}[zx("0x9")](){const t=this[zx("0x6")];if(!t.plugins[zx("0x1e")](zx("0x13")))return;const e=t[zx("0x0")],n=t[zx("0x49")].get(zx("0x45")),o=t[zx("0x49")][zx("0x5")]("TableUtils"),s=t[zx("0x49")].get(wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x32")](r[zx("0x52")]),c=n[zx("0xd")](a);if(!c.data||zx("0x2")!=c[zx("0x4b")][zx("0x7")])return;if(r[zx("0x43")])return void s[zx("0x25")]();if(!i[zx("0x4d")][zx("0x55")](r[zx("0x3e")],s[zx("0x3a")]))return;const l=r[zx("0x3e")][zx("0x18")][zx("0x4a")],u=r[zx("0x3e")][zx("0xb")][zx("0x1f")],d=l.parent[zx("0x3d")],{column:g}=o[zx("0xe")](l),{column:m}=o[zx("0xe")](u);for(let s=g;s<=m;s++){const c=o[zx("0x14")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x44")],c=i[zx("0x1")].toViewElement(s);i[zx("0x16")][zx("0x1b")](zx("0x3")+x,c),e&&i[zx("0x16")][zx("0x30")](zx("0x35"),a,c),i[zx("0x1")][zx("0x1d")](c,r[zx("0x52")]),t&&(n[zx("0x31")].includes(r[zx("0x52")])?i[zx("0x16")][zx("0x1b")]("ck-suggestion-marker--active",c):i.writer[zx("0x2d")](zx("0x42"),c))}}}}n.enableCommand(zx("0x33"),((e,s)=>{const r=o[zx("0x11")](t[zx("0x24")][zx("0x2b")][zx("0x4")]),i=o[zx("0x38")](r),x=r[0][zx("0x3b")](zx("0x21")),a=x[zx("0x39")](zx("0x47"))||0,c=s&&null!==s.forceValue?s[zx("0x4c")]:!t[zx("0x53")].get(zx("0x33")).value,l=c?i[zx("0x15")]:i.first,u=x.getChild(l);let d;if(c){const e=x[zx("0x3f")](a);if(u[zx("0x2a")]<e.index)return;d=t.model[zx("0x23")](t[zx("0x24")][zx("0x2c")](e[zx("0x3f")](0)),t[zx("0x24")].createPositionAfter(u[zx("0x3f")](u[zx("0xa")]-1)))}else{const e=x[zx("0x3f")](a-1);if(!e)return;d=t[zx("0x24")][zx("0x23")](t[zx("0x24")][zx("0x2c")](u[zx("0x3f")](0)),t[zx("0x24")][zx("0x4e")](e[zx("0x3f")](e[zx("0xa")]-1)))}t.model[zx("0x8")]((()=>{n[zx("0x51")](d,{commandName:zx("0x33"),commandParams:[{forceValue:c}]},[],zx("0x33"))}))})),n[zx("0x2f")](zx("0x2"),((e,o)=>{const s=t.plugins[zx("0x5")](zx("0x36")),r=s[zx("0x11")](t[zx("0x24")].document[zx("0x4")]),i=s[zx("0x28")](r),x=r[0][zx("0x3b")](zx("0x21")),a=x[zx("0x39")](zx("0x54"))||0,c=o&&null!==o[zx("0x4c")]?o[zx("0x4c")]:!t[zx("0x53")][zx("0x5")](zx("0x2"))[zx("0x19")];let l;const u=x[zx("0x3f")](0),d=c?i[zx("0x15")]:i[zx("0xc")],g=s[zx("0x14")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[zx("0x3c")](g)[0][zx("0x44")];if(c){const e=u[zx("0x3f")](a);if(m[zx("0x46")](e))return;l=t[zx("0x24")][zx("0x23")](t.model[zx("0x2c")](e),t[zx("0x24")].createPositionAfter(m))}else{const e=u[zx("0x3f")](a-1);if(!e)return;l=t[zx("0x24")][zx("0x23")](t[zx("0x24")][zx("0x2c")](m),t[zx("0x24")].createPositionAfter(e))}t[zx("0x24")][zx("0x8")]((()=>{n.markBlockFormat(l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],zx("0x2"))}))})),t[zx("0x40")][zx("0x4f")].on(zx("0xf"),r(),{priority:"highest"}),t.data[zx("0x4f")].on("addMarker:suggestion",((t,e,n)=>{n.options[zx("0x48")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x27")}),t[zx("0x40")][zx("0x4f")].on(zx("0x37"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x32")](e.markerName),i=n.getSuggestion(r);if(!i[zx("0x4b")]||zx("0x2")!=i.data[zx("0x7")])return;const x=o[zx("0x1")][zx("0x2e")](e.markerName);if(x)for(const t of x)o.writer[zx("0x2d")](zx("0x3")+s,t),o[zx("0x16")].removeClass(zx("0x42"),t),o[zx("0x16")][zx("0x50")](zx("0x35"),t),o.mapper.unbindElementFromMarkerName(t,e.markerName)}),{priority:"highest"}),n[zx("0x29")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(zx("0x33")==n[zx("0x7")]){const t=n[zx("0x12")][0].forceValue;return o(Yo(e,zx(t?"0x20":"0x26")))}if(zx("0x2")==n[zx("0x7")]){const t=n.commandParams[0].forceValue;return o(Yo(e,t?zx("0x10"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:"format",content:Yo(e,zx("0x1c"),t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n[zx("0x22")][zx("0x34")](zx("0x41"),"setTableRowHeader",zx("0x1a"),i),n[zx("0x22")][zx("0x34")](zx("0x41"),"setTableColumnHeader",zx("0x1a"),i)}}const Vx=["ck-suggestion-marker--active","_suggestionFactory","clipboardOutput","ck-suggestion-marker-insertion","author","removeColumns","push","tableCellHorizontalAlignment","schema","tableCellBackgroundColor","registerPostFixer","registerDescriptionCallback","hasSuggestion","deletionRanges","tableCellPadding","insertion","tableCellBorderWidth","tablePasteChainId","getContainedElement","table","_descriptionFactory","fill","newRange","_isForcedDefaultExecutionBlock","filter","_splitMarkerName","wrap","suggestion:formatBlock:tablePasteCell","stop","start","dataDowncast","markMultiRangeDeletion","tableCellBorderStyle","suggestionUnloaded","cell","TableClipboard","from","previousSibling","createTableWalker","columns","registerCustomCallback","getSuggestions","deletion","for","commands","paragraph","getAttributes","selection","getSelectionAffectedTableCells","afterInit","getRange","Users","fromEntries","suggestion-td","has","content","join","column","row","keys","reduce","rows","documentSelection","get","getChanges","tableCell","insert","set","getSuggestion","rowInsertionIndexes","map","next","markMultiRangeBlockFormat","activeMarkers","getAllAdjacentSuggestions","_replaceTableSlotCell","cells","end","_getCoordsForCells","showSuggestionHighlights","document","length","*Replace table cells*","createElement","listenTo","updateMarker","rowInsertionRanges","markerName","markerToHighlight","name","register","startsWith","createPositionBefore","accept","tablePasteRow","getColumns","remove","move","editingDowncast","last","isEmpty","getMarkers","getColumnIndexes","ck-suggestion-marker","tableCellSuggestion","some","conversion","getChildren","getRanges","type","markMultiRangeInsertion","insertRows","formatBlock","createRange","findAncestor","value","removeRows","differ","markers","plugins","columnInsertionIndexes","nextSibling","discard","getShiftedBy","requires","removeMarker","batch","element","getItems","model","insertionRanges","getChild","TrackChangesEditing","includes","attributes","isInContent","tablePaste","redo","entries","oldRange","getSuggestionCallback","_tablePostFixingSubtypes","isEqual","nodeAfter","insertContent","getRowIndexes","high","createRangeOn","markerAttributes","add","getChangedMarkers","editor","return","forceDefaultExecution","insertColumns","view","_createdBatches","options","position","tablePasteColumn","root","change","previous","createRangeIn","suggestionLoaded","subType","tablePasteCell"];var Kx,qx;Kx=Vx,qx=476,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x29"),"tableCellBorderColor",Xx("0x39"),Xx("0x20"),"tableCellVerticalAlignment",Xx("0x22"),Xx("0x27")],Jx=Object[Xx("0x4d")]($x.map((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x95")](){return[wx]}[Xx("0x4a")](){const t=this[Xx("0x9")];if(!t[Xx("0x90")][Xx("0x4f")](Xx("0x3c")))return;const n=t[Xx("0x90")][Xx("0x58")](Xx("0x9d")),o=t[Xx("0x90")].get("TableUtils"),s=t[Xx("0x90")][Xx("0x58")](wx),r=t[Xx("0x90")][Xx("0x58")]("TableClipboard");s[Xx("0xa6")][Xx("0x1f")](Xx("0x77"),Xx("0x11")),t[Xx("0x9a")][Xx("0x21")][Xx("0x73")](Xx("0x81"),{allowIn:Xx("0x5a"),allowContentOf:Xx("0x5a"),isLimit:!0}),t[Xx("0x83")].elementToElement({model:Xx("0x81"),view:Xx("0x4e")});let i=null;t[Xx("0x9a")].on(Xx("0x2"),((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Xx("0xb")]||n[Xx("0x30")]||this.editor[Xx("0x45")].get("trackChanges")[Xx("0x8c")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x57")))return!1;const r=s.getTableIfOnlyTableInContent(t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x49")](n[Xx("0x69")][Xx("0x48")]);if(!i[Xx("0x6a")])return!1;const x=i[0][Xx("0x8b")](Xx("0x2c")),a=o[Xx("0x3")](i),c=o[Xx("0x7f")](i),l={startRow:a.first,endRow:a[Xx("0x7c")],startColumn:c.first,endColumn:c[Xx("0x7c")]};return 1==i[Xx("0x6a")]&&(l.endRow+=o.getRows(r)-1,l.endColumn+=o[Xx("0x78")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x9a")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x9a")].change((()=>{t[Xx("0x9a")][Xx("0x2")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n[Xx("0x87")](s,"tablePasteRow",{tablePasteChainId:o}),r[Xx("0x6a")]&&n.markMultiRangeInsertion(r,Xx("0x11"),{tablePasteChainId:o}),a[Xx("0x6a")]&&n[Xx("0x87")](a,Xx("0xa1"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[Xx("0x38")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Xx("0x61")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(u){const e=u[Xx("0x7e")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Xx("0x5")](o),i=e.find((t=>t[Xx("0x4b")]().isEqual(r)));i&&n.push([i[Xx("0x72")],s])}n.length&&u.setAttribute("markerAttributes",Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xx("0x4")]+10}),t[Xx("0x90")][Xx("0x58")](Xx("0x3c")).on(Xx("0x64"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x35")]();const r=n[Xx("0x3b")],x=o,a=Zx(r),c=Zx(x);t[Xx("0xa")]=r;let l=null,u=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x9c")](0));for(const t of Array[Xx("0x3d")](x[Xx("0x84")]()))s[Xx("0x5b")](t,r,Xx("0x66"));const t=i[Xx("0x5e")][Xx("0x9e")](n[Xx("0x53")]),e=i.columnInsertionIndexes[Xx("0x9e")](n[Xx("0x52")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(u=s.createRangeIn(r));else{const t=s[Xx("0x6c")](Xx("0x81")),e=s[Xx("0x6c")]("tableCellSuggestion");s[Xx("0x33")](s[Xx("0x15")](r),e),s[Xx("0x5b")](t,r,0);for(const e of Array.from(x[Xx("0x84")]()))s[Xx("0x5b")](e,t,Xx("0x66"));l=s[Xx("0x5")](t),u=s[Xx("0x5")](e)}const d=Array[Xx("0x3d")](x[Xx("0x47")]())[Xx("0x31")]((([t])=>$x[Xx("0x9e")](t)));i[Xx("0x65")][Xx("0x1f")]({element:r,attributes:d.length?Object.fromEntries(d):null}),l&&i[Xx("0x9b")][Xx("0x1f")](l),u&&i[Xx("0x26")][Xx("0x1f")](u)}),{priority:Xx("0x4")}),o.on(Xx("0xc"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x40")]||1;i[Xx("0x91")]=new Array(a)[Xx("0x2e")](x)[Xx("0x5f")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x3f")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges.push(t[Xx("0x9a")][Xx("0x5")](e))}),{priority:"low"}),o.on(Xx("0x88"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x56")]||1;i[Xx("0x5e")]=new Array(a)[Xx("0x2e")](x)[Xx("0x5f")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x3f")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x6f")].push(t[Xx("0x9a")][Xx("0x5")](e))}),{priority:"low"}),n[Xx("0x2d")][Xx("0x24")]((e=>{if(e[Xx("0x17")]&&e.subType[Xx("0x74")](Xx("0xa1")))return e[Xx("0x14")]?{}:{type:"insertion",content:Yo(t.locale,Xx("0x6b"))}}));const x=()=>{};for(const t of[Xx("0xa1"),Xx("0x11"),Xx("0x77"),"tablePasteCell"])n[Xx("0x1a")][Xx("0x41")](Xx("0x28"),t,Xx("0x51"),x),n[Xx("0x1a")].registerCustomCallback(Xx("0x43"),t,"join",x);n[Xx("0x1a")][Xx("0x41")](Xx("0x89"),Xx("0x18"),Xx("0x93"),x),n[Xx("0x1a")][Xx("0x41")](Xx("0x89"),Xx("0x18"),"accept",((e,n,o)=>{const s=e[Xx("0x5f")]((t=>t[Xx("0x2b")]()))[Xx("0x31")]((t=>t)),r=new Map(s[Xx("0x5f")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x65")])e&&r[Xx("0x5c")](t,e);else if(o&&o[Xx("0x6")])for(const[e,n]of Object[Xx("0xa3")](o[Xx("0x6")])){const o=t[Xx("0x9a")][Xx("0x8f")][Xx("0x58")](e),s=o?o.getRange().getContainedElement():null;s&&r[Xx("0x5c")](s,n)}t[Xx("0x9a")][Xx("0x13")]((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[Xx("0x41")](e,Xx("0xa1"),o,((s,r,i)=>{t[Xx("0x9a")][Xx("0x13")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x36")][Xx("0x1")];e.is(Xx("0x98"),Xx("0x81"))&&x.push(e)}n[Xx("0x1a")][Xx("0xa5")](e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e[Xx("0x12")].rootName&&t.unwrap(e)}))}))};a("insertion","accept"),a(Xx("0x28"),Xx("0x93")),a(Xx("0x43"),Xx("0x76")),a(Xx("0x43"),Xx("0x93")),n[Xx("0x1a")][Xx("0x41")]("insertion",Xx("0x77"),Xx("0x93"),(t=>{const e=t[Xx("0x5f")]((t=>t[Xx("0x2b")]())),n=e[0][Xx("0x8b")](Xx("0x2c")),{minRow:r,maxRow:i}=s[Xx("0x67")](e);o[Xx("0x8d")](n,{at:r,rows:i-r+1})})),n[Xx("0x1a")][Xx("0x41")](Xx("0x28"),Xx("0x11"),Xx("0x93"),(t=>{const e=t[Xx("0x5f")]((t=>t[Xx("0x2b")]())),n=e[0].findAncestor("table"),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[Xx("0x1e")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x17")]||!e[Xx("0x17")].startsWith(Xx("0xa1")))return;const o=e[Xx("0x9f")][Xx("0x2a")],s=n[Xx("0x42")]()[Xx("0x31")]((t=>t[Xx("0xa0")]&&t[Xx("0x9f")]&&t.attributes.tablePasteChainId==o));s[Xx("0x6a")]&&e[Xx("0x63")]().length!=s.length&&s[Xx("0x55")](((t,e)=>(t[Xx("0x60")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x32")](t[Xx("0x70")]),s=[Xx("0x80"),Xx("0x1c")],r=n[Xx("0x62")][Xx("0x9e")](t.markerName);return r&&s[Xx("0x1f")](Xx("0x19")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x16"),c,{priority:Xx("0x4")}),n.on(Xx("0x3a"),c,{priority:Xx("0x4")}),t.model[Xx("0x69")][Xx("0x23")]((()=>{let e=!1;const o=Array[Xx("0x3d")](t.model[Xx("0x69")][Xx("0x8e")][Xx("0x8")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x32")](s);if("suggestion"!=o||Xx("0x43")!=i||r[Xx("0xa4")])continue;if(!n[Xx("0x25")](x))continue;const a=n[Xx("0x5d")](x).getRanges(),c=t[Xx("0x90")].get(Xx("0x4c")).me;for(const t of n.getSuggestions())if(t[Xx("0xa0")]&&t[Xx("0x1d")]==c&&Xx("0x89")==t.type&&"tablePasteCell"==t.subType&&t[Xx("0x85")]().every((t=>a[Xx("0x82")]((e=>e.containsRange(t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Xx("0xa0")]&&(n[Xx("0x93")](),e=!0)}return e})),t.model[Xx("0x69")][Xx("0x23")]((e=>{const o=t[Xx("0x45")][Xx("0x58")](Xx("0xa2"));if(!o||!o[Xx("0xe")][Xx("0x4f")](e[Xx("0x97")]))return!1;let s=!1;const r=t[Xx("0x90")].get(Xx("0x4c")).me,i=t[Xx("0x9a")][Xx("0x69")][Xx("0x8e")][Xx("0x59")](),x=Array.from(t[Xx("0x9a")][Xx("0x69")][Xx("0x8e")].getChangedMarkers()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x32")](t);return"suggestion"==o&&Xx("0xa1")==s&&i==r.id&&!e[Xx("0xa4")]}));for(const t of i){if(Xx("0x5b")!=t[Xx("0x86")]||Xx("0x81")!=t.name||1!=t[Xx("0x6a")])continue;const n=e[Xx("0x8a")](t[Xx("0x10")],t[Xx("0x10")][Xx("0x94")](1));if(!x.find((({data:t})=>t[Xx("0x2f")][Xx("0x0")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[Xx("0x2f")])){e[Xx("0x6e")](t,{range:n}),s=!0;break}}return s})),t[Xx("0x9a")][Xx("0x69")][Xx("0x23")]((e=>{let o=!1;const s=t.plugins[Xx("0x58")](Xx("0x4c")).me,r=n[Xx("0x42")]()[Xx("0x31")]((t=>t[Xx("0xa0")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t[Xx("0x17")])for(const e of t.getMarkers()){const n=e[Xx("0x4b")]()[Xx("0x2b")]();if(n)if(n.is(Xx("0x98"),"tableCellSuggestion")&&Zx(n)){t[Xx("0x96")](e[Xx("0x72")]),i.add(n),o=!0;const s=n[Xx("0x92")],r=n[Xx("0x3e")],a=s&&s.is(Xx("0x98"),Xx("0x81")),c=r&&r.is(Xx("0x98"),Xx("0x81"));a&&!i[Xx("0x4f")](s)&&x[Xx("0x7")](s),c&&!i[Xx("0x4f")](r)&&x[Xx("0x7")](r)}else n.is(Xx("0x98"),"paragraph")&&n[Xx("0x7d")]&&(t[Xx("0x96")](e.name),o=!0)}else if("tablePasteCell"==t[Xx("0x17")]){if(!t[Xx("0x9f")]||!t[Xx("0x9f")][Xx("0x2a")])continue;const e=t[Xx("0x9f")][Xx("0x6")];if(e&&Object[Xx("0x54")](e)[Xx("0x6a")])continue;const n=t.attributes[Xx("0x2a")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x17")]&&e.subType[Xx("0x74")]("tablePaste")){if(!e[Xx("0x9f")][Xx("0x2a")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x9f")][Xx("0x2a")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e[Xx("0x79")](t);for(const t of x)e.unwrap(t);return o})),t.conversion[Xx("0x44")](Xx("0x7b")).markerToHighlight({model:Xx("0x34"),view:(t,e)=>l(t),converterPriority:Xx("0x4")}),t[Xx("0x83")].for(Xx("0x37"))[Xx("0x71")]({model:Xx("0x34"),view:(t,e)=>e[Xx("0xf")][Xx("0x68")]?l(t,!1):null,converterPriority:Xx("0x4")});const u=t.editing[Xx("0xd")];this[Xx("0x6d")](u.document,Xx("0x1b"),((t,e)=>{const n=[];for(const t of u[Xx("0x15")](e[Xx("0x50")])[Xx("0x99")]())t.is(Xx("0x98"),"suggestion-td")&&n[Xx("0x1f")](t);u.change((t=>{for(const e of n)t[Xx("0x7a")](t[Xx("0x15")](e),t[Xx("0x75")](e)),t[Xx("0x79")](e)}))}))}}function Zx(t){if(t[Xx("0x7d")])return!0;const e=t[Xx("0x9c")](0);return e.is(Xx("0x98"),Xx("0x46"))&&e[Xx("0x7d")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x3f")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["_descriptionFactory","formatGroupId","document","tableWidth","subType","resizeColumnWidths","*Format:* resize table","bind","commandParams","author","table","editor","enableCommand","resizeTable","registerDescriptionCallback","TrackChangesEditing","model","discard","plugins","accept","handleResizeTableWidthCommand","getTableColumnsWidths","getColumnGroupElement","selection","get","locale","resizeTableWidth","_suggestionFactory","has","data","registerCustomCallback","handleSuggestionDescription","getSuggestionCallback","getAttribute","columnWidths","format","formatBlock","markBlockFormat"];var ea,na;ea=ta,na=281,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{afterInit(){if(!this[oa("0x22")][oa("0x3")][oa("0xd")]("TableColumnResizeEditing"))return;const t=this[oa("0x22")][oa("0x3")][oa("0x9")](oa("0x0"));t[oa("0x23")]("resizeTableWidth",this[oa("0x5")][oa("0x1e")](this)),t[oa("0x23")](oa("0x1c"),this[oa("0x5")].bind(this)),t[oa("0xc")][oa("0xf")](oa("0x15"),oa("0x24"),oa("0x4"),t[oa("0xc")][oa("0x11")]("formatBlock",null,oa("0x2"))),t._suggestionFactory.registerCustomCallback("formatBlock",oa("0x24"),oa("0x2"),t[oa("0xc")][oa("0x11")](oa("0x15"),null,oa("0x4"))),t[oa("0x17")][oa("0x25")](this[oa("0x10")][oa("0x1e")](this))}[oa("0x5")](t,e){const n=this[oa("0x22")].plugins[oa("0x9")](oa("0x0")),o=this[oa("0x22")][oa("0x3")][oa("0x9")]("TableColumnResizeEditing"),s=e[oa("0x21")]||this[oa("0x22")][oa("0x1")][oa("0x19")][oa("0x8")].getSelectedElement();this.editor[oa("0x1")].change((()=>{const r=o[oa("0x7")](s);let i=r?o[oa("0x6")](r):null,x=s[oa("0x12")](oa("0x1a"))||null;const a=e.tableWidth||x,c=e[oa("0x13")]||i,l=this[oa("0x22")][oa("0x3")][oa("0x9")]("Users").me;for(const t of n.getSuggestions()){const e=t.getContainedElement();if(oa("0x24")===t[oa("0x1b")]&&e===s){t[oa("0x20")]!==l&&t[oa("0x2")]();const e=t[oa("0xe")][oa("0x1f")];x=e[0][oa("0x1a")],i=e[0][oa("0x13")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x16")](s,{commandName:oa("0xb"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x24")},[],oa("0x24"))}))}[oa("0x10")](t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0x18")]){const t=oa("0x1d");return{type:oa("0x14"),content:Yo(this.editor[oa("0xa")],t)}}}}const ra=["Template","get","plugins","insertTemplate","afterInit","TrackChangesEditing"];var ia,xa;ia=ra,xa=114,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x4")](){const t=this.editor;t[aa("0x2")].has(aa("0x0"))&&t[aa("0x2")][aa("0x1")](aa("0x5")).enableCommand(aa("0x3"))}}const la=["TrackChangesEditing","afterInit","commands","get","tableOfContents","plugins","ELEMENT_TABLE_OF_CONTENTS","_descriptionFactory","insertTableOfContents","locale"];var ua,da;ua=la,da=493,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x8")](){const t=this.editor;if(!t[ga("0x9")][ga("0x0")](ga("0x5")))return;t[ga("0x2")].get("TrackChangesEditing").enableCommand("insertTableOfContents");const e=t[ga("0x2")][ga("0x0")](ga("0x7")),n=t[ga("0x6")];e[ga("0x4")].registerElementLabel(ga("0x1"),(t=>Yo(n,ga("0x3"),t)))}}const fa=["title-content","getNearestSelectionRange","start","model","updateMarker","document","registerPostFixer","Title","has","differ","get","afterInit","_splitMarkerName","getChangedMarkers","locale","schema","editor","createRange","element","suggestion","isCollapsed","forward","ELEMENT_TITLE","end","newRange"];var ha,pa;ha=fa,pa=236,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x0")](){const t=this[ba("0x5")];if(!t.plugins[ba("0x16")](ba("0x15")))return;const e=t.plugins[ba("0x18")]("TrackChangesEditing");e._descriptionFactory.registerElementLabel(ba("0xe"),(()=>Yo(t[ba("0x3")],ba("0xb")))),t[ba("0x11")][ba("0x13")][ba("0x14")]((n=>{let o=!1;const s=Array.from(t[ba("0x11")][ba("0x13")][ba("0x17")][ba("0x2")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x1")](r);if(ba("0x8")!==s||!i[ba("0xd")])continue;const x=i[ba("0xd")],a=x[ba("0xc")].nodeBefore;if(!a||!a.is(ba("0x7"),ba("0xe")))continue;if(!x[ba("0x10")].isTouching(x[ba("0xc")]))continue;const c=t[ba("0x11")][ba("0x4")][ba("0xf")](x.end,ba("0xa"));if(c&&c[ba("0x9")]){const t=n[ba("0x6")](x[ba("0x10")],c[ba("0x10")]);t.isEqual(x)||(n[ba("0x12")](r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const _a=["editor","has","redo","plugins","TrackChangesEditing","undo","get","enableCommand"];var Ta,Ca;Ta=_a,Ca=145,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[ya("0x7")],e=t[ya("0x2")][ya("0x5")](ya("0x3"));t[ya("0x2")][ya("0x0")]("UndoEditing")&&(e[ya("0x6")](ya("0x4")),e[ya("0x6")](ya("0x1")))}}const Aa=["editor","get","toggleTableCaption","TrackChangesEditing","TableCaptionEditing","requires","plugins","enableCommand"];var va,Ra;va=Aa,Ra=458,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x3")](){return[wx]}afterInit(){const t=this[Sa("0x6")];t[Sa("0x4")].has(Sa("0x2"))&&t[Sa("0x4")][Sa("0x7")](Sa("0x1"))[Sa("0x5")](Sa("0x0"))}}const La=["config","DocumentListUtils","listStart","TrackChangesEditing","styles","handleListReversedCommand","_getSuggestionBlocks","isFirstBlockOfListItem","getSelectedBlocks","has","model","filter","_descriptionFactory","listStyle","*Format:* set start index to %0","get","handleListStartCommand","afterInit","*Format:* set order to regular","handleDescriptions","push","list.properties","handleListStyleCommand","selection","ELEMENT_","getListTypeFromListStyleType","from","reversed","document","markMultiRangeBlockFormat","startIndex","getAttribute","listReversed","enableCommand","_LIST_","registerDescriptionCallback","commandName","listType","format","editor","*Format:* set order to reversed","DocumentListPropertiesEditing","_getSuggestionBlocksForListStyle","isListItemBlock","expandListBlocksToCompleteList","numbered","commandParams","locale","toUpperCase","type","change","bind","plugins","DocumentListPropertiesUtils","replace","length","_getTranslationKeyForListStyle"];var Na,Ma;Na=La,Ma=257,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x2d")](){if(!this[wa("0xa")][wa("0x17")][wa("0x25")](wa("0xc")))return;const t=this[wa("0xa")][wa("0x1c")][wa("0x2b")](wa("0x31")),e=this[wa("0xa")][wa("0x17")][wa("0x2b")](wa("0x1f"));t[wa("0x20")]&&e.enableCommand(wa("0x29"),this.handleListStyleCommand[wa("0x16")](this)),t[wa("0x37")]&&e.enableCommand(wa("0x3"),this[wa("0x21")][wa("0x16")](this)),t[wa("0x1")]&&e[wa("0x4")](wa("0x1e"),this.handleListStartCommand[wa("0x16")](this)),e[wa("0x28")][wa("0x6")](this.handleDescriptions[wa("0x16")](this))}[wa("0x32")](t,e={}){const n=this[wa("0xa")][wa("0x17")][wa("0x2b")](wa("0x1f")),o=this._getSuggestionBlocksForListStyle();this[wa("0xa")][wa("0x26")][wa("0x15")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:wa("0x29"),commandParams:[{type:e[wa("0x14")]}],formatGroupId:wa("0x29")})}))}[wa("0x21")](t,e={}){const n=this[wa("0xa")][wa("0x17")][wa("0x2b")](wa("0x1f")),o=this[wa("0xa")].plugins[wa("0x2b")](wa("0x1d")),s=this[wa("0x22")]((t=>o[wa("0xe")](t)&&wa("0x10")===t[wa("0x2")](wa("0x8"))));null!==s&&this[wa("0xa")][wa("0x26")].change((()=>{n[wa("0x0")](s,{commandName:wa("0x3"),commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}[wa("0x2c")](t,e={}){const n=this[wa("0xa")][wa("0x17")][wa("0x2b")](wa("0x1f")),o=this[wa("0xa")].plugins[wa("0x2b")](wa("0x1d")),s=this._getSuggestionBlocks((t=>o[wa("0xe")](t)&&wa("0x10")===t[wa("0x2")](wa("0x8"))));null!==s&&this[wa("0xa")][wa("0x26")].change((()=>{n[wa("0x0")](s,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[wa("0x2f")](t){const e=this[wa("0xa")][wa("0x12")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x7")]){case wa("0x29"):o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0][wa("0x14")])))};break;case wa("0x3"):o=n.commandParams[0].reversed?wa("0xb"):wa("0x2e"),s={type:wa("0x9"),content:Yo(e,o)};break;case"listStart":o=wa("0x2a"),s={type:wa("0x9"),content:Yo(e,o,n[wa("0x11")][0][wa("0x1")])}}return s}[wa("0xd")](){const t=this.editor[wa("0x17")][wa("0x2b")](wa("0x1d"));let e=Array[wa("0x36")](this[wa("0xa")][wa("0x26")][wa("0x38")][wa("0x33")].getSelectedBlocks());return e[wa("0x30")](...t[wa("0xf")](e)),e=[...new Set(e)],e}[wa("0x22")](t){const e=this.editor[wa("0x17")].get(wa("0x1d"));let n=Array.from(this[wa("0xa")][wa("0x26")][wa("0x38")][wa("0x33")][wa("0x24")]())[wa("0x27")](t);if(!n[wa("0x1a")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[wa("0x23")](t)&&o[wa("0x30")](t);return o}[wa("0x1b")](t){return wa("0x34")+this[wa("0xa")].plugins[wa("0x2b")](wa("0x18"))[wa("0x35")](t)[wa("0x13")]()+wa("0x5")+t[wa("0x13")]()[wa("0x19")](/-/g,"_")}}const Fa=["TableCellPropertiesEditing","plugins","enableCommand","getSuggestions","afterInit","tableCellVerticalAlignment","tableHeight","_descriptionFactory","handleDiscardAction","get","pluginName","getSuggestionCallback","tableBorderWidth","tableCellBorderWidth","registerCustomCallback","findAncestor","_getSuggestion","change","tableCellHeight","*Format:* change table cell properties","model","tableCellHorizontalAlignment","data","markBlockFormat","tableProperties","tableCellWidth","format","subType","discard","accept","TrackChangesEditing","getAttribute","editor","tableCellPadding","handleSuggestionDescription","tableCellProperties","_handlePropertyChange","_suggestionFactory","locale","formatBlock","document","selection","tableBorderStyle","table","join","*Format:* change table properties","getFirstPosition","getSelectionAffectedTableCells","TablePropertiesEditing","has","nodeAfter","TrackChangesTableProperties","tableWidth","batch","tableCellBorderColor"];var Pa,Da;Pa=Fa,Da=218,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x1a")]=["tableBorderColor",Ba("0x2c"),Ba("0xe"),"tableAlignment",Ba("0x36"),Ba("0x8"),"tableBackgroundColor"],this[Ba("0x25")]=[Ba("0x1"),"tableCellBorderStyle",Ba("0xf"),Ba("0x23"),Ba("0x1b"),Ba("0x14"),"tableCellBackgroundColor",Ba("0x17"),Ba("0x7")]}static get[Ba("0xc")](){return Ba("0x35")}[Ba("0x6")](){const t=this[Ba("0x22")][Ba("0x3")][Ba("0xb")]("TrackChangesEditing");if(this.editor[Ba("0x3")].has(Ba("0x32"))){for(const e of this[Ba("0x1a")])t[Ba("0x4")](e,((t,n)=>{const o=this.editor[Ba("0x16")][Ba("0x2a")][Ba("0x2b")][Ba("0x30")]()[Ba("0x11")](Ba("0x2d"));this[Ba("0x26")](e,[o],this[Ba("0x1a")],Ba("0x1a"),t,n)}));t[Ba("0x27")].registerCustomCallback(Ba("0x29"),Ba("0x1a"),Ba("0x1f"),t._suggestionFactory[Ba("0xd")](Ba("0x29"),null,Ba("0x1e"))),t[Ba("0x27")][Ba("0x10")]("formatBlock",Ba("0x1a"),Ba("0x1e"),((t,e)=>this[Ba("0xa")](this.tableProperties,t,e))),t[Ba("0x27")][Ba("0x10")](Ba("0x29"),"tableProperties",Ba("0x2e"),(()=>!1))}if(this[Ba("0x22")][Ba("0x3")][Ba("0x33")](Ba("0x2"))){for(const e of this[Ba("0x25")])t[Ba("0x4")](e,((t,n)=>{const o=this[Ba("0x22")][Ba("0x3")][Ba("0xb")]("TableUtils")[Ba("0x31")](this[Ba("0x22")][Ba("0x16")][Ba("0x2a")][Ba("0x2b")]);this[Ba("0x26")](e,o,this[Ba("0x25")],Ba("0x25"),t,n)}));t[Ba("0x27")][Ba("0x10")](Ba("0x29"),Ba("0x25"),Ba("0x1f"),t[Ba("0x27")][Ba("0xd")](Ba("0x29"),null,"discard")),t[Ba("0x27")][Ba("0x10")](Ba("0x29"),Ba("0x25"),Ba("0x1e"),((t,e)=>this[Ba("0xa")](this[Ba("0x25")],t,e))),t[Ba("0x27")][Ba("0x10")](Ba("0x29"),"tableCellProperties",Ba("0x2e"),(()=>!1))}t[Ba("0x9")].registerDescriptionCallback((t=>this[Ba("0x24")](t)))}[Ba("0x26")](t,e,n,o,s,r){const i=this[Ba("0x22")].plugins[Ba("0xb")](Ba("0x20"));this[Ba("0x22")][Ba("0x16")].enqueueChange(r[Ba("0x0")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x21")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x19")](t,{commandParams:[e]},[],o)}}))}[Ba("0xa")](t,e,n){const o=e[0].start[Ba("0x34")],s=n.commandParams[0];this[Ba("0x22")][Ba("0x16")][Ba("0x13")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e.removeAttribute(n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x18")])switch(t[Ba("0x1d")]){case Ba("0x1a"):return{type:Ba("0x1c"),content:Yo(this[Ba("0x22")][Ba("0x28")],Ba("0x2f"))};case Ba("0x25"):return{type:"format",content:Yo(this.editor[Ba("0x28")],Ba("0x15"))}}}[Ba("0x12")](t,e){const n=this[Ba("0x22")].plugins.get(Ba("0x20"));for(const o of n[Ba("0x5")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===e&&n===t)return o}return null}}const Ua=["execute","for","getFirstMarker","_enabledCommands","end","getChanges","filter","removed","suggestion","_saved","_findSuggestions","nodeAfter","_createSuggestion","notReady","$marker","isBefore","formatInline:discard","deletion:","document","createdAt","addMarker","removeComment","data-suggestion","trackChanges.mergeNestedSuggestions","isAtStart","push","item","_splitMarkerName","insertion","createPositionAt","createElement","before","marker-count","targetPosition","registerPostFixer","updateSuggestion","acceptSelectedSuggestions","_removeSuggestion","insertContent","formatInline:join","normal","deletion:chain","size","move","external:","_rangeIsInLocalUserInsertion","ck-suggestion-marker","isNextTo","markers","markerToHighlight","isAtEnd","_setSuggestionData","PendingActions","_updateSuggestionData","getAllAdjacentSuggestions","containsRangeInObject","_suggestionState","insertion:discard","clone","getRange","markInsertion","enableReadOnlyMode","updateMarker","remove","getAttribute","deletion:accept","CommentsRepository","toViewElement","track-changes-suggestion-data-mismatch","addMarkerName","addComment","isObject","formatInline:accept","multipleBlocks","fetchCommentThread","deleteContent","value","insertion:","accept","author","adapter","getChangedMarkers","previous","_commentsRepository","markMultiRangeDeletion","track-changes-suggestion-not-found","getSuggestions","includes","removeMarkers","init","multi","discardSuggestion","stop","formatInline:chain","getMarkers","skipNestingCheck","sort","change:data","addMarker:suggestion:formatBlock","discard","insertion:accept","always","then","isBlock","trackChanges","start","change:activeMarkers","batch","consumable","$textProxy","ck-suggestion-marker-","default","data","enqueueChange","unbindElementFromMarkerName","addSuggestion","nodeBefore","some","name","markerReady","dataReady","_addSuggestionMarker","parent","conversion","join","mapper","_adapter","forceDefaultExecution","addSuggestionData","addHighlight","highest","isRemovable","formatBlock","add","unbind","track-changes-user-not-found","getCustomProperty","isIntersectingWithRange","range","@external","markDeletion","track-changes-command-not-found","formatBlock:","removeClass","elementToElement","config","isOwn","has","attributes","setAttribute","_defaultCallbacks","writer","getLastMatchingPosition","formatInline:","activeMarkers","_breakSuggestionMarker","trackChanges.trackFormatChanges","element","backward","_getExternalAuthor","rethrowUnexpectedError","update:suggestion","stopListening","isMultiRange","isDocumentOperation","listenTo","newRange","options","resolve","hasComments","fire","getNearestSelectionRange","buildSuggestion","commandName","track-changes-adapter-missing-getsuggestion","bindElementToMarker","subType","getUser","_mergeNestedSuggestions","schema","markMultiRangeInsertion","oldRange","_descriptionFactory","_onDiscard","removeMarker","isInContent","_setSuggestionRange","acceptAllSuggestions","markerName","isSelectable","getItems","get","ck-suggestion-marker-formatBlock","plugins","addRange","acceptSuggestion","formatGroupId","registerCustomCallback","type","clear","getSuggestion","pluginName","markBlockFormat","moveTargetPosition","reconvertMarker","formatInline","containsPosition","markerNameToElements","fromRange","change","consume","position","_isForcedDefaultExecutionBlock","dataDowncast","trackChangesCommand","PENDING_ACTION_SUGGESTION","enableCommand","upcast","change:_saved","low","never","originalSuggestionId","track-changes-adapter-already-set","elementStart","error-saving-suggestion-data-suggestion-discarded","ready","showSuggestionHighlights","TrackChangesEditing","_refreshSuggestionsChain","discardAllSuggestions","containsRange","suggestion:","addCommentThread","Users","_trackFormatChanges","getMultiRangeId","return","isExternal","_customCallbacks","getRanges","dataToMarker","map","catch","isInsideObject","addClass","from","model","chain","splitPosition","insertion:chain","getIntersection","commands","substr","rejected","fromCharCode","creator","insert","setSelection","differ","addMarker:suggestion","_suggestions","getSuggestionCallback","suggestionLoaded","getFirstRange","_suggestionFactory","elementEnd","editor","markerToData","_registerDefaultCallbacks","toJSON","authorName","authoredAt","isLocal","commentThread","howMany","addUser","formatBlock:discard","editingDowncast","insertion:join","detach","collaboration.channelId","isTouching","$graveyard","isUndo","_checkSuggestionCorrectness","high","getDifference","createPositionAfter","isLimit","selection","next","_joinWithAdjacentSuggestions","markMultiRangeBlockFormat","length","_cutOutSuggestionMarker","getShiftedBy","hasSuggestion","isEqual","split","_model","open","delete","root","deletion","_getAuthorFromId","locale","createSelection","_editor","ck-suggestion-marker--active","every","_addThreadToSuggestion","group","formatBlock:join","accepted","rootName","isCollapsed","after","createRange","_joinSuggestions","splice","set","isAfter"];var Ga,Ha;Ga=Ua,Ha=165,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get requires(){return[za("0xdf"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,dx,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x24")](){return za("0x3e")}constructor(t){function e(t){return t.map((t=>String[za("0x59")](t))).join("")}super(t),this[za("0x9b")](za("0x137"),[]),this.on(za("0x107"),((e,n,o,s)=>{this[za("0x86")][za("0x2c")]((()=>{for(const e of[...s,...o])this._model.markers[za("0x130")](e)&&t.editing[za("0x27")](e)}))})),this[za("0x11")]=new ss(this[za("0x65")][za("0x51")][za("0xe")],this[za("0x65")][za("0x8c")]),this._adapter=null,this._suggestionFactory=new Va(this[za("0x65")]),this[za("0x5f")]=new Map,this._commentsRepository=t[za("0x1c")][za("0x1a")](za("0xdf")),this[za("0xa0")]=new Set,this[za("0x86")]=this[za("0x65")].model,this[za("0xd5")]=new WeakMap,this[za("0x2f")]=!1,t[za("0x12e")].define("trackChanges.trackFormatChanges",za("0x10c")),this._trackFormatChanges=t.config[za("0x1a")](za("0x139")),t[za("0x12e")].define(za("0xb4"),!0),this[za("0xd")]=t[za("0x12e")][za("0x1a")](za("0xb4")),this[za("0x31")]=new d(t,this[za("0xa0")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,52,50,48])}[za("0xf6")](){const t=this[za("0x65")];t[za("0x118")][za("0x9e")]("editingDowncast").markerToHighlight({model:za("0xa5"),view:t=>{const{id:e,type:n}=this[za("0xb8")](t[za("0x17")]),o=[za("0xcb"),za("0x10b")+n];let s=3e3;return this[za("0x137")][za("0xf4")](t[za("0x17")])&&(o.push(za("0x8f")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x118")][za("0x9e")](za("0x30")).add((e=>{e.on(za("0x5e"),((e,n,o)=>{if(!o[za("0x2")][za("0x3d")])return;const s=n[za("0xb7")];if(!s)return;const r=o[za("0x11a")][za("0xe0")](s);t[za("0x51")][za("0xe")][za("0xe4")](s)&&r&&!r[za("0x125")]("widget")&&r.is("containerElement")&&(0,x.toWidget)(r,o[za("0x134")])}),{priority:za("0x78")})})),t.conversion[za("0x9e")](za("0x30"))[za("0xce")]({model:"suggestion",view:(t,e)=>{if(!e.options[za("0x3d")])return null;const{type:n}=this._splitMarkerName(t[za("0x17")]);return{classes:[za("0xcb"),za("0x10b")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0xb7")])return;if(o[za("0xb7")].is(za("0x7c")))return void s[za("0x109")][za("0x2d")](o[za("0xb7")],n[za("0x113")]);const r=s.mapper[za("0xe0")](o[za("0xb7")]);if(!o.item.is(za("0x13a"))||!t[za("0x51")][za("0xe")][za("0x104")](o[za("0xb7")])||r[za("0x125")]("addHighlight"))return;const{id:i}=this._splitMarkerName(o[za("0x17")]);s[za("0x134")][za("0x4f")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock"],r),s[za("0x134")][za("0x132")](za("0xb3"),i,r),s[za("0x11a")][za("0xa")](r,o.markerName),e&&(this[za("0x137")].includes(o.markerName)?s.writer[za("0x4f")](za("0x8f"),r):s[za("0x134")][za("0x12c")](za("0x8f"),r));for(const e of t[za("0x51")].createRangeIn(o.item)[za("0x19")]())s[za("0x109")].consume(e,n[za("0x113")]);s.consumable[za("0x2d")](o[za("0xb7")],n[za("0x113")])};t[za("0x118")][za("0x9e")]("dataDowncast")[za("0x122")]((t=>{t.on(za("0xff"),((t,e,o)=>{o.options[za("0x3d")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x11f")})})),t[za("0x118")][za("0x9e")](za("0x30"))[za("0x66")]({model:za("0xa5"),view:(t,e)=>e.options[za("0x3d")]?null:{group:"suggestion",name:t[za("0x57")](11)}}),t[za("0x118")].for("upcast")[za("0x12d")]({view:{name:za("0xa5"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x42")+t[za("0xdd")]("suggestion-type")+":"+t[za("0xdd")]("id");return t[za("0xdd")](za("0xbd"))&&(n+=":"+t[za("0xdd")]("marker-count")),e[za("0xbb")](za("0xab"),{"data-name":n})}}),t[za("0x118")][za("0x9e")](za("0x34"))[za("0x4b")]({view:za("0xa5")}),t.conversion[za("0x9e")](za("0x70"))[za("0x122")]((t=>{t.on(za("0xff"),n(),{priority:"high"})})),t[za("0x118")][za("0x9e")](za("0x70")).add((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[za("0x11a")][za("0x2a")](e[za("0x17")]);if(o)for(const t of o)t.getCustomProperty(za("0x11e"))||(n[za("0x134")][za("0x12c")]([za("0xcb"),za("0x1b"),za("0x8f")],t),n[za("0x134")].removeAttribute(za("0xb3"),t),n[za("0x11a")][za("0x10f")](t,e[za("0x17")]))}),{priority:za("0x78")})})),t[za("0x51")][za("0xaf")][za("0xbf")]((e=>{let n=!1;const o=Array[za("0x50")](t[za("0x51")][za("0xaf")][za("0x5d")][za("0xee")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0xb8")](x);if(za("0xa5")!==o)continue;const u=this._suggestions.get(l);if(null!=a[za("0x1")])if(za("0x28")==c&&(n=n||Xa(a[za("0x1")],x,e,t[za("0x51")][za("0xe")])),a[za("0x1")].isCollapsed||za("0x75")==a[za("0x1")][za("0x89")][za("0x95")]||za("0x121")==c&&!Ja(a.newRange)||"deletion"==c&&(qa(i=a[za("0x1")])||(r=i).start[za("0x117")]==r[za("0xa1")][za("0x111")]&&r.start.isAtEnd))e[za("0x13")](x),n=!0;else{if(!u||!u[za("0x14")])continue;s.add(u)}}var r,i;return s[za("0xc7")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[za("0x51")][za("0xaf")][za("0xbf")]((e=>{let n=!1;for(const o of t[za("0x51")][za("0xaf")][za("0x5d")][za("0xa2")]()){if(za("0x5b")!=o[za("0x21")])continue;const s=o[za("0x2e")].getShiftedBy(o.length);if(s[za("0xcf")])for(const r of this[za("0x5f")].values()){if(r[za("0x140")]||!r[za("0x14")])continue;if("formatBlock"!=r[za("0x21")])continue;const i=r[za("0x62")]();if(i.start.parent!=i[za("0xa1")].parent&&i.end[za("0x84")](o[za("0x2e")])){const o=t[za("0x51")].createRange(i[za("0x106")],s);e[za("0xdb")](r[za("0x9f")](),{range:o}),n=!0}}}return n})),t[za("0x51")][za("0xcd")].on(za("0x13e"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[za("0x113")]),n=this[za("0x5f")][za("0x1a")](t);n&&n.addMarkerName(e[za("0x113")])}})),t[za("0x51")][za("0xaf")].on(za("0xfe"),(()=>{const e=Array.from(t[za("0x51")][za("0xaf")][za("0x5d")][za("0xee")]())[za("0xa3")]((t=>za("0xa5")===this[za("0xb8")](t[za("0x113")])[za("0x92")]));if(0===e[za("0x80")])return;e[za("0xfd")](((t,e)=>{const n=t.data[za("0x10")],o=e[za("0x10d")][za("0x10")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start.isBefore(o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xb8")](t);if(null===s[za("0x10")]){const e=this._handleNewSuggestionMarker(t);o[za("0x122")](e)}else{const t=this[za("0x5f")].get(e);null!==s[za("0x1")]||t[za("0x14")]?(n[za("0x122")](t.head),o.add(t)):this[za("0xc2")](t)}}o[za("0xc7")]>0&&this[za("0x3f")](o);for(const t of n)this.fire("suggestionChanged",t)})),t[za("0x51")].on("applyOperation",((e,n)=>{const o=n[0];if(!this[za("0x5f")][za("0xc7")])return;if(!o[za("0x141")])return;if(o[za("0x108")][za("0x76")]||!o.batch[za("0x6b")])return;let s,r;switch(o[za("0x21")]){case"insert":s=t[za("0x51")][za("0xba")](o[za("0x2e")]),r=s[za("0x82")](o[za("0x6d")]);break;case za("0x85"):s=t[za("0x51")][za("0xba")](o[za("0x53")]),r=t[za("0x51")][za("0xba")](o[za("0x26")]);break;case za("0xc8"):s=t[za("0x51")].createPositionAt(o[za("0xbe")]),r=s.getShiftedBy(o[za("0x6d")]);break;default:return}const i=t[za("0x51")][za("0x98")](s,r);t[za("0x51")][za("0x2c")]((()=>{for(const{suggestion:t,meta:e}of this[za("0xa7")](i)){if(t.isMultiRange)continue;if(za("0x28")==t[za("0x21")])continue;const n=t.data&&t[za("0x10d")][za("0xe6")];(za("0x121")!=t[za("0x21")]||za("0x85")==o[za("0x21")]&&!n)&&(e.containsRangeInObject||"insertion"==t[za("0x21")]&&e[za("0x12f")]||t[za("0x62")]()[za("0x41")](i)&&this[za("0x138")](t,s,r))}}))}),{priority:"lowest"}),t[za("0x51")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x11c")])return;if(this[za("0x2f")])return;if(!this[za("0x31")][za("0xe9")])return;if(o.isCollapsed)return;const r=t[za("0x51")][za("0xe")],{start:i,end:x}=o.getFirstRange(),a=i[za("0xa8")]&&r[za("0x7b")](i.nodeAfter)?null:r[za("0x6")](i,"forward"),c=x[za("0x111")]&&r[za("0x7b")](x.nodeBefore)?null:r[za("0x6")](x,za("0x13b")),l=t[za("0x51")][za("0x98")](a?a[za("0x106")]:i,c?c[za("0xa1")]:x);t[za("0x51")].change((e=>{this[za("0x129")](l);const n=t[za("0x51")][za("0xe")].getNearestSelectionRange(l[za("0x106")]);o.is("documentSelection")?e[za("0x5c")](n):o.setTo(n)})),e[za("0xf9")]()}),{priority:e.priorities[za("0xc5")]+10}),t[za("0x51")].on("insertContent",((e,n)=>{const o=n[n.length-1];o&&o.forceDefaultExecution||this._isForcedDefaultExecutionBlock||this.trackChangesCommand[za("0xe9")]&&(t[za("0x51")][za("0x2c")]((()=>{let o=t[za("0x51")][za("0xc3")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x47")]=o[za("0xd7")]();const s=o[za("0xa1")][za("0x111")],r=t[za("0x51")][za("0xe")];s&&r.isBlock(s)&&!r[za("0xe4")](s)&&(o=t.model.createRange(o.start,t[za("0x51")][za("0xba")](s,za("0xa1")))),this[za("0xd9")](o)})),e.stop())}),{priority:za("0x78")}),this.editor[za("0x56")].add(za("0x105"),this[za("0x31")]),this[za("0x33")](za("0x105"));const o=new p(t,this[za("0x5f")]);t[za("0x56")][za("0x122")](za("0x1e"),o),this[za("0x33")](za("0x1e"));const s=new C(t,this._suggestions);t[za("0x56")][za("0x122")](za("0xf8"),s),this.enableCommand(za("0xf8")),t[za("0x56")].add("acceptAllSuggestions",new F(t,o,this[za("0x5f")])),this[za("0x33")](za("0x16")),t[za("0x56")].add(za("0x40"),new F(t,s,this[za("0x5f")])),this[za("0x33")](za("0x40")),t[za("0x56")].add(za("0xc1"),new U(t,o,this[za("0x5f")])),this[za("0x33")](za("0xc1")),t[za("0x56")][za("0x122")]("discardSelectedSuggestions",new U(t,s,this._suggestions)),this[za("0x33")]("discardSelectedSuggestions");const r=t[za("0x1c")].get("CommentsRepository");this[za("0x0")](r,za("0xe3"),((t,{threadId:e})=>{const n=this[za("0x5f")][za("0x1a")](e);n&&n[za("0x6c")]&&1===n[za("0x6c")][za("0x80")]&&this[za("0xd2")](e,{hasComments:!0})}),{priority:"low"}),this[za("0x0")](r,za("0xb2"),((t,{threadId:e})=>{const n=this[za("0x5f")][za("0x1a")](e);n&&n[za("0x6c")]&&!n[za("0x6c")][za("0x80")]&&this[za("0xd2")](e,{hasComments:!1})}),{priority:za("0x36")})}set[za("0xed")](t){if(this[za("0x11b")])throw new e.CKEditorError(za("0x39"),this);this._adapter=t}get[za("0xed")](){return this._adapter}[za("0xf3")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions.values())t&&!e.isInContent||n[za("0xb6")](e);return e?n[za("0x4c")]((t=>t[za("0x68")]())):n}getSuggestion(t){const n=this[za("0x5f")][za("0x1a")](t);if(!n)throw new e.CKEditorError(za("0xf2"),this);return n}[za("0x83")](t){return this[za("0x5f")][za("0x130")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x21")].split(":"),i=this._suggestions.get(n)||this._createSuggestion(s,r,n,e,o);if(this._addThreadToSuggestion(i),this[za("0x77")](i,s,r||null,e),i[za("0xb0")]=t[za("0xb0")],o&&o[za("0x128")]){const t=o[za("0x128")],e=this[za("0x13c")](t[za("0x69")]);i[za("0x6a")]=t[za("0xb0")],i[za("0xec")]=e,i[za("0x48")]=!0}else i[za("0x6a")]=t[za("0xb0")];switch(t[za("0x10d")]&&(i[za("0x10d")]=t[za("0x10d")]),t[za("0x131")]&&(i[za("0x131")]=t[za("0x131")]),this[za("0x11b")]&&this[za("0x11b")][za("0x110")]||(i[za("0xa6")]=!0),this[za("0xd5")][za("0x1a")](i)){case"notReady":this[za("0xd5")][za("0x9b")](i,za("0x115"));break;case za("0x114"):i.isInContent?(this[za("0xd5")].set(i,za("0x3c")),this[za("0x5")]("suggestionLoaded",i)):this[za("0xd5")][za("0x9b")](i,za("0xa4"))}return i}[za("0x1e")](t){this.forceDefaultExecution((()=>{this[za("0x65")][za("0x51")][za("0x2c")]((()=>{for(const e of t[za("0xd3")]())e[za("0xeb")]()}))}))}discardSuggestion(t){this[za("0x11c")]((()=>{this[za("0x65")].model.change((()=>{for(const e of t[za("0xd3")]())e[za("0x100")]()}))}))}[za("0x33")](t,n){const o=this[za("0x65")].commands[za("0x1a")](t);if(!o)throw new e.CKEditorError(za("0x12a"),this,{commandName:t});this[za("0xa0")][za("0x122")](o),n&&o.on(za("0x9d"),((t,e)=>{this.trackChangesCommand[za("0xe9")]&&(this[za("0x2f")]||e[za("0x80")]>0&&e[e[za("0x80")]-1]&&e[e[za("0x80")]-1][za("0x11c")]||(n(((...t)=>o[za("0x9d")](...t,{forceDefaultExecution:!0})),...e),t[za("0xf9")]()))}),{priority:za("0x78")})}[za("0x11c")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this[za("0x2f")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x2f")]=!1),o&&e.CKEditorError[za("0x13d")](o,this),n}[za("0xd9")](t,n=null,o={}){if(t[za("0x96")])return null;const s=this[za("0x65")].plugins.get("Users").me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,za("0xb9")))if(o[za("0x12f")]){if(!o[za("0xcc")]){if(!this[za("0xd")]&&o.containsRangeInObject)continue;return e}if(n==e[za("0xb")]){const n=e.getFirstRange();return n.start.isEqual(t[za("0xa1")])?this[za("0x15")](e,this._model[za("0x98")](t[za("0x106")],n[za("0xa1")])):this[za("0x15")](e,this._model[za("0x98")](n.start,t[za("0xa1")])),e}}const r=(0,e.uid)(),i=s.id,x=n?"insertion:"+n:za("0xb9"),a=this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x116")](x,r,i,t),a}[za("0xf")](t,n=za("0xf7"),o={}){const s=this[za("0x65")][za("0x1c")][za("0x1a")](za("0x44")).me,r=this[za("0x63")][za("0x60")]("insertion",n,za("0x119"));for(const e of this.getSuggestions())if(e[za("0xec")].id==s.id&&za("0xb9")==e[za("0x21")]&&e[za("0xb")]==n&&(r(e[za("0x4a")](),t)||r(t,e.getRanges()))){for(const n of t)e[za("0x1d")](n);return e}if(this._mergeNestedSuggestions)for(const e of t)for(const{suggestion:n,meta:o}of this[za("0xa7")](e,za("0xb9"))){if(!o.isOwn)continue;let e=!0;for(const o of n.getRanges())for(const n of t)if(!o[za("0x41")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0xea")+n,c=this[za("0xd0")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo.getMultiRangeId());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t[za("0x96")])return null;if(za("0x37")===this[za("0x45")]){const e=this._suggestionFactory[za("0x60")](za("0x28"),o,za("0xeb"));return this[za("0x11c")]((()=>e([t],n,s))),null}const r=this[za("0x65")].plugins[za("0x1a")](za("0x44")).me,i=[];if("always"!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[za("0xa7")](t,za("0xb9")))n[za("0x12f")]&&!n[za("0x4e")]&&i[za("0xb6")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x80")];){const o=n[e][za("0x79")](t);n[za("0x9a")](e,1,...o),e+=o[za("0x80")]}}return n}(t,i);x[za("0x80")]&&this[za("0x86")][za("0x2c")]((()=>{for(const t of x){const e=this[za("0x63")][za("0x60")]("formatInline",o,za("0xeb"));this[za("0x11c")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x106")],a=t[za("0xa1")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x28"))){if(!n[za("0x12f")])continue;if(e[za("0xb")]!=o)continue;const s=e[za("0x62")]();if(s[za("0x41")](t,!0))return null;x=x[za("0xac")](s[za("0x106")])?x:s[za("0x106")],a=a[za("0x9c")](s[za("0xa1")])?a:s[za("0xa1")],i?s[za("0x106")][za("0xac")](i[za("0x62")]()[za("0x106")])?(i[za("0xf5")](),i=e):e[za("0xf5")]():i=e}const c=this._model.createRange(x,a);if(i)this[za("0x15")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0xd0")]({id:t,type:za("0x136")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x116")](za("0x136")+o,t,i,c)}}return null}[za("0x25")](t,n,o=[],s=null,r={}){n[za("0x1f")]||(n.formatGroupId=n[za("0x8")]),n[za("0xe6")]=t.is(za("0x127")),s=s||$a(n);const i=o[za("0x4c")]((t=>Qa(t,this._model))),x=t.is(za("0x127"))?t:Qa(t,this[za("0x86")]);if("never"===this[za("0x45")]){const t=this[za("0x63")][za("0x60")](za("0x121"),s,za("0xeb"));return this[za("0x11c")]((()=>t([x],n,r))),null}i[za("0xb6")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&za("0x102")!==this[za("0x45")]){const t=this._suggestionFactory[za("0x60")]("formatBlock",s,za("0xeb"));return this[za("0x11c")]((()=>t([x],n,r))),null}let c=null,l=x.start,u=x[za("0xa1")];for(const{suggestion:t,meta:e}of this[za("0xa7")](x,za("0x121"))){if(!e.isOwn||e.isNextTo||e[za("0xd4")]||e[za("0x4e")])continue;if(t[za("0x10d")][za("0x1f")]!=n[za("0x1f")])continue;const o=t[za("0x62")]();if(t[za("0xb")]==s){if(o.containsRange(x,!0))return null;l=l[za("0xac")](o[za("0x106")])?l:o.start,u=u.isAfter(o[za("0xa1")])?u:o[za("0xa1")],c?o.start[za("0xac")](c[za("0x62")]()[za("0x106")])?(c.removeMarkers(),c=t):t[za("0xf5")]():c=t}else{const e=x[za("0x55")](o);this[za("0x81")](t,e)}}const d=this[za("0x65")][za("0x1c")][za("0x1a")](za("0x44")).me,g=(0,e.uid)(),m=d.id;if(c)return this[za("0x15")](c,this[za("0x86")].createRange(l,u)),c;{const t=this[za("0xd0")]({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker("formatBlock:"+s,g,m,this[za("0x86")][za("0x98")](l,u)),t}}[za("0x7f")](t,n,o=[],s=null,r={}){n[za("0x1f")]||(n.formatGroupId=n.commandName);const i=t[0];n.multipleBlocks=i.is("range"),s=s||$a(n);const x=o[za("0x4c")]((t=>Qa(t,this[za("0x86")]))),a=i.is(za("0x127"))?t:t[za("0x4c")]((t=>Qa(t,this._model)));if(za("0x37")===this[za("0x45")]){const t=this[za("0x63")][za("0x60")](za("0x121"),s,za("0xeb"));return this[za("0x11c")]((()=>t(a,n,r))),null}x[za("0xb6")](...a);let c=!0;for(const t of x)if(!this[za("0xca")](t)){c=!1;break}if(c&&za("0x102")!==this[za("0x45")]){const t=this._suggestionFactory[za("0x60")](za("0x121"),s,za("0xeb"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this.editor[za("0x1c")][za("0x1a")](za("0x44")).me;for(const t of this[za("0xf3")]()){if(t[za("0xec")].id!=l.id)continue;if(za("0x121")!=t[za("0x21")]||t[za("0x10d")][za("0x1f")]!=n.formatGroupId)continue;const e=t.subType==s;for(let n=0;n<a[za("0x80")];n++){const o=a[n];for(const s of t[za("0xfb")]()){const r=s[za("0xd8")]();if(o[za("0x84")](r)){e?(a[za("0x9a")](n,1),n--):t.removeMarker(s[za("0x113")]);break}}}}if(0==a.length)return null;const u=this._suggestionFactory[za("0x60")](za("0x121"),s,za("0x119"));for(const t of this[za("0xf3")]())if(t.author.id==l.id&&"formatBlock"==t[za("0x21")]&&t[za("0x10d")].formatGroupId==n[za("0x1f")]&&t[za("0xb")]==s&&(u(t[za("0x4a")](),a)||u(a,t[za("0x4a")]()))){for(const e of a)t[za("0x1d")](e);return t}const d=(0,e.uid)(),g=l.id,m=za("0x12b")+s,f=this[za("0xd0")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x116")](m,d,g,t,Zo[za("0x46")]());return f}[za("0x129")](t,n=null,o={}){if(t[za("0x96")])return null;const s=this[za("0x65")].plugins.get(za("0x44")).me,r=new i.LiveRange(t[za("0x106")],t.end);for(const{suggestion:t,meta:e}of this[za("0xa7")](r,za("0xb9")))if(e.isOwn&&!e[za("0xcc")])if(t[za("0x140")]){const e=t[za("0x4a")]()[za("0xa3")]((t=>za("0x75")!=t[za("0x89")][za("0x95")]));if(e[za("0x90")]((t=>r[za("0x41")](t,!0)))&&t.discard(),e[za("0x112")]((t=>t[za("0x41")](r,!0)))){const t=this._suggestionFactory[za("0x60")]("deletion",n,za("0xeb"));return this[za("0x11c")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[za("0x62")]());null!==e&&t[za("0x12")]([e],null,o)}if(r.detach(),r.isCollapsed||za("0x75")==r[za("0x89")].rootName)return null;let x=null,a=r.start,c=r[za("0xa1")];for(const{suggestion:t,meta:e}of this[za("0xa7")](r,za("0x8a")))if(e.isOwn)if(t[za("0x140")]&&this[za("0xd")]){let e=!0;for(const n of t[za("0x4a")]()){if(n[za("0x41")](r,!0))return t;r[za("0x41")](n)||(e=!1)}e&&t[za("0x100")]()}else{const n=t[za("0x62")]();if(n.containsRange(r,!0)){if(!this._mergeNestedSuggestions&&e[za("0xd4")])continue;return t}a=a[za("0xac")](n[za("0x106")])?a:n[za("0x106")],c=c[za("0x9c")](n[za("0xa1")])?c:n[za("0xa1")],x?n[za("0x106")].isBefore(x[za("0x62")]()[za("0x106")])?(x[za("0xf5")](),x=t):t[za("0xf5")]():x=t}if(x)return this._setSuggestionRange(x,this[za("0x86")][za("0x98")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x86")][za("0x98")](a,c),i=s.id,x=n?za("0xae")+n:za("0x8a"),l=this[za("0xd0")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,r),l}}[za("0xf1")](t,n=za("0xf7"),o={}){const s=this[za("0x65")][za("0x1c")].get(za("0x44")).me,r=t[za("0x4c")]((t=>new i.LiveRange(t[za("0x106")],t.end))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xa7")](t,za("0xb9")))n[za("0x12f")]&&!n.isNextTo&&x.add(e);for(const e of x)if(e[za("0x140")]){const s=e[za("0x4a")]();if((!e[za("0x131")]||!e[za("0x131")][za("0xfc")])&&s[za("0x90")]((t=>r[za("0x112")]((e=>e[za("0x41")](t,!0)))))&&e[za("0x100")](),r[za("0x90")]((t=>s[za("0x112")]((e=>e[za("0x41")](t,!0)))))){const e=this[za("0x63")][za("0x60")](za("0x8a"),n,za("0xeb"));return this[za("0x11c")]((()=>e(t,null,o))),null}}else{const t=e[za("0x62")]();if(r.some((e=>e.containsRange(t,!0)))&&e.discard(),r.every((e=>t[za("0x41")](e,!0)))){const t=this._suggestionFactory.getSuggestionCallback(za("0x8a"),n,"accept");return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[za("0x63")][za("0x60")](za("0x8a"),n,za("0x119"));let c=null;for(const t of this[za("0xf3")]())if(t[za("0xec")].id==s.id&&t[za("0x14")]&&"deletion"==t[za("0x21")]&&t[za("0xb")]==n&&(a(t[za("0x4a")](),r)||a(r,t[za("0x4a")]())))if(c){if(t[za("0x6c")]&&t[za("0x6c")].length)continue;for(const e of t[za("0x4a")]())c.isIntersectingWithRange(e)||c[za("0x1d")](e);t[za("0xf5")]()}else{c=t;for(const e of r)t[za("0x126")](e)||t.addRange(e)}if(c)return c;x[za("0x22")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xa7")](t,za("0x8a")))n.isOwn&&x[za("0x122")](e);for(const t of x){const e=t[za("0x4a")]();if((!o||!o[za("0xfc")])&&r[za("0x90")]((t=>e[za("0x112")]((e=>e[za("0x41")](t,!0))))))return t;(!t.attributes||!t[za("0x131")][za("0xfc")])&&e[za("0x90")]((t=>r[za("0x112")]((e=>e[za("0x41")](t,!0)))))&&t[za("0x100")]()}const l=(0,e.uid)(),u=s.id,d=za("0xae")+n,g=this[za("0xd0")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t.detach(),t[za("0x96")]||za("0x75")==t[za("0x89")].rootName||this[za("0x116")](d,l,u,t,Zo[za("0x46")]());return g}_setSuggestionRange(t,e){const n=t[za("0x9f")]();this[za("0x86")][za("0x2c")]((t=>{t[za("0xdb")](n,{range:e})}))}[za("0x91")](t){const e=t.id,n=this[za("0x65")].config[za("0x1a")](za("0x73"));this._commentsRepository.hasCommentThread(e)||this[za("0xf0")][za("0x43")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0xf0")].getCommentThread(e);o[za("0x123")](za("0x120")),o[za("0x120")]=!1,t[za("0x6c")]=o}[za("0x77")](t,n,o,s){if(t[za("0x21")]!=n||t[za("0xb")]!=o||t[za("0x5a")].id!=s)throw this[za("0x65")][za("0xda")](za("0xe1")),new e.CKEditorError(za("0xe1"),this)}[za("0x81")](t,n){const o=t.getFirstRange();if(n[za("0x84")](o))t[za("0xf5")]();else if(o[za("0x41")](n)){const s=this[za("0x86")][za("0xba")](n[za("0x106")][za("0x111")],za("0xa1"));this[za("0x15")](t,this[za("0x86")].createRange(o[za("0x106")],s));const r=(0,e.uid)(),i=t[za("0x5a")].id,x=t[za("0x21")]+":"+t[za("0xb")];this[za("0xd0")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[za("0x131")]});const a=this[za("0x86")].createPositionAt(n.end.parent,"after"),c=this[za("0x86")][za("0x98")](a,o[za("0xa1")]);this._addSuggestionMarker(x,r,i,c)}else if(o[za("0x29")](n[za("0x106")])){const e=this[za("0x86")][za("0xba")](n[za("0x106")].nodeBefore,za("0xa1"));this[za("0x15")](t,this[za("0x86")][za("0x98")](o.start,e))}else{const e=this[za("0x86")].createPositionAt(n[za("0xa1")][za("0x117")],za("0x97"));this[za("0x15")](t,this[za("0x86")][za("0x98")](e,o[za("0xa1")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[za("0xa7")](t,"insertion")){if(!n.isOwn)continue;const o=e[za("0x4a")]();for(const e of o)if(!t[za("0x79")](e).length)return!0}return!1}[za("0x8b")](t){const n=this[za("0x65")].plugins[za("0x1a")](za("0x44"))[za("0xc")](t);if(!n)throw new e.CKEditorError(za("0x124"),this);return n}[za("0x13c")](t){const e=this[za("0x65")].plugins[za("0x1a")](za("0x44")),n=(0,r.hashObject)(za("0xc9")+t);return e[za("0xc")](n)||e[za("0x6e")]({id:n,name:t})}[za("0xa9")](t,e,n,o,s){const r=this[za("0x8b")](o),i=this[za("0x63")][za("0x7")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(i,"accept",(()=>{this[za("0xd2")](n,{state:za("0x94")})}),{priority:za("0x78")}),this[za("0x0")](i,"discard",(()=>{this[za("0xd2")](n,{state:za("0x58")})}),{priority:za("0x78")}),this._suggestions.set(n,i),this[za("0xd5")][za("0x9b")](i,za("0xaa")),i}[za("0xb8")](t){const e=t[za("0x85")](":");return{group:e[0],type:e[1],subType:e[za("0x80")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[za("0x80")]?e[5]:null}}[za("0x138")](t,n,o){const s=t[za("0x62")](),r=s[za("0x106")],i=s[za("0xa1")];this[za("0x15")](t,this[za("0x86")][za("0x98")](r,n));const x=(0,e.uid)(),a=t[za("0x5a")].id,c=t[za("0x21")]+(t[za("0xb")]?":"+t.subType:"");this[za("0xd0")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x131")],data:t[za("0x10d")]}),"formatBlock"==t[za("0x21")]&&(o=this._model.createPositionBefore(o[za("0x117")])),this[za("0x116")](c,x,a,this[za("0x86")].createRange(o,i))}[za("0xa7")](t,e=null){const n=[],o=this[za("0x86")][za("0xe")],s=this[za("0x65")].plugins.get(za("0x44")).me;for(const r of this[za("0xf3")]())if(r[za("0x14")]&&(!e||r.type==e))for(const e of r[za("0x4a")]()){const i=t.start[za("0x84")](e[za("0xa1")])||t[za("0xa1")][za("0x84")](e[za("0x106")]);if(i||t[za("0x55")](e)){const x=t.containsRange(e)&&Ka(o,e[za("0x106")],t),a=e[za("0x41")](t)&&Ka(o,t[za("0x106")],e);n[za("0xb6")]({suggestion:r,meta:{isOwn:s==r[za("0xec")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x116")](t,e,n,o,s){this[za("0x86")][za("0x2c")]((r=>{let i=za("0x42")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0xb1")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[za("0xef")],n=t[za("0x7d")];t.previous=null,null!=e&&(e[za("0x7d")]=null),t[za("0x7d")]=null,null!=n&&(n[za("0xef")]=null),za("0x3c")==this[za("0xd5")][za("0x1a")](t)&&(this._suggestionState[za("0x9b")](t,"removed"),this[za("0x5")]("suggestionUnloaded",t,e,n))}[za("0xd0")](t){const n=t.id,o=this.addSuggestionData(t);if(this._adapter&&this[za("0x11b")].addSuggestion){const s=this[za("0x65")][za("0x1c")][za("0x1a")](za("0xd1")),r=o[za("0x4")],i=o[za("0xb")]?o.type+":"+o[za("0xb")]:o[za("0x21")],x=this[za("0x65")][za("0x8c")],a=s[za("0x122")](Yo(x,za("0x32"))),c={id:n,type:i,hasComments:r,data:t[za("0x10d")]||null,originalSuggestionId:t[za("0x38")]||null,attributes:o[za("0x131")]};this[za("0x11b")][za("0x110")](c)[za("0x103")]((t=>{o[za("0xa6")]=!0,s[za("0xdc")](a),t&&t[za("0xb0")]&&(this[za("0x5f")][za("0x1a")](n)[za("0xb0")]=t[za("0xb0")])}))[za("0x4d")]((t=>{throw(0,e.logWarning)(za("0x3b")),this[za("0x65")][za("0x51")][za("0x10e")]({isUndoable:!1},(()=>{o[za("0x100")]()})),o[za("0x13f")](),this[za("0x5f")][za("0x88")](o.id),this[za("0xd5")][za("0x88")](o),t}))}return o}[za("0xd2")](t,e){const n=this.editor.plugins[za("0x1a")](za("0xd1")),o=this[za("0x23")](t);if(this[za("0x11b")]&&this._adapter[za("0xc0")])if(o._saved){const o=n[za("0x122")](Yo(this[za("0x65")][za("0x8c")],za("0x32")));this[za("0x11b")][za("0xc0")](t,e)[za("0x103")]((()=>{n.remove(o)}))}else o.on(za("0x35"),(()=>{this[za("0xd2")](t,e)}))}_getSuggestionData(t){if(!this[za("0x11b")]||!this[za("0x11b")][za("0x23")])throw new e.CKEditorError(za("0x9"),this);return this[za("0x11b")][za("0x23")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xb8")](t),r=this._suggestions.get(e)||this._createSuggestion(n,o,e,s,{});switch(this[za("0x77")](r,n,o,s),this[za("0xd5")].get(r)){case za("0xaa"):this._getSuggestionData(e).then((t=>{let n=Promise[za("0x3")]();t.hasComments&&(n=this._commentsRepository[za("0xe7")]({channelId:this[za("0x65")][za("0x12e")][za("0x1a")](za("0x73")),threadId:e})),n[za("0x103")]((()=>{this[za("0x11d")](t)._saved=!0}))})),this[za("0xd5")][za("0x9b")](r,"markerReady");break;case za("0xa4"):this[za("0xd2")](e,{state:za("0x87")});case za("0x115"):this._suggestionState[za("0x9b")](r,za("0x3c")),this[za("0x5")](za("0x61"),r);break;case"ready":this[za("0x5")]("suggestionChanged",r)}return r[za("0xe2")](t),r}[za("0x3f")](t){const e=Array[za("0x50")](t)[za("0xa3")]((t=>!t.isMultiRange)),n=this[za("0xf3")]({skipNotAttached:!0})[za("0xa3")]((t=>!t[za("0x140")])),o=n[za("0xa3")]((e=>!t[za("0x130")](e))),s=new Map(n[za("0x4c")]((t=>[t,this[za("0x63")].getSuggestionCallback(t[za("0x21")],t[za("0xb")],za("0x52"))]))),r=new Map(n[za("0x4c")]((t=>[t,t[za("0x62")]()]))),i=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x80")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x80")];t++){const n=e[t];!x[za("0x130")](n)&&n[za("0xef")]&&(n[za("0xef")][za("0x7d")]===n&&(n[za("0xef")][za("0x7d")]=null),n[za("0xef")]=null),!i[za("0x130")](n)&&n[za("0x7d")]&&(n[za("0x7d")].previous===n&&(n[za("0x7d")][za("0xef")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][za("0x7d")]=n[1],n[1][za("0xef")]=n[0],i[za("0x122")](n[0]),x[za("0x122")](n[1]))}}function c(t,e){if(t.author.id!==e[za("0xec")].id)return null;const n=s.get(t)(t,e,r[za("0x1a")](t),r[za("0x1a")](e));return n&&s[za("0x1a")](e)(t,e,r[za("0x1a")](t),r.get(e))?n[1].commentThread&&n[1].commentThread[za("0x80")]?null:n:null}}[za("0x7e")](t){const e=Array[za("0x50")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[za("0xa3")]((e=>!t.has(e))),s=new Map(e[za("0x4c")]((t=>[t,this[za("0x63")].getSuggestionCallback(t[za("0x21")],t[za("0xb")],za("0x119"))]))),r=new Map(n[za("0x4c")]((t=>[t,t.getRanges()])));for(let t=0;t<e[za("0x80")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x80")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0x80")];i++){const o=n[i];if(o[za("0x21")]!==e[za("0x21")]||o[za("0xec")].id!==e[za("0xec")].id||o.subType!==e[za("0xb")])continue;const x=s.get(e),a=r[za("0x1a")](e),c=r[za("0x1a")](o),l=e[za("0x6c")]&&e[za("0x6c")].length,u=o[za("0x6c")]&&o[za("0x6c")][za("0x80")];if(!l&&x(c,a))return t[za("0x99")](o,e),r[za("0x88")](e),!0;if(!u&&x(a,c))return t[za("0x99")](e,o),r[za("0x88")](o),!0}return!1}}_joinSuggestions(t,e){if(t[za("0x140")])for(const n of e[za("0x4a")]())t[za("0x1d")](n);else{const n=e[za("0x62")]()[za("0xa1")];this[za("0x15")](t,this[za("0x86")][za("0x98")](t.getFirstRange()[za("0x106")],n))}e.removeMarkers()}}class Va{constructor(t){this[za("0x8e")]=t,this[za("0x86")]=t[za("0x51")],this[za("0x49")]=new Map,this[za("0x133")]=new Map,this[za("0x67")]()}[za("0x7")](t,e,n,o,s,r){return new Zo(this[za("0x86")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x60")](t,e,za("0xeb"))(...n),onDiscard:(...n)=>this[za("0x60")](t,e,"discard")(...n)})}[za("0x20")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x49")][za("0x9b")](s,o)}[za("0x60")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x49")][za("0x1a")](o)||this[za("0x133")][za("0x1a")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t[za("0xfd")](((t,e)=>t[za("0x106")][za("0xac")](e.start)?1:-1)),this._model.change((e=>{for(const n of t){let t;t=n[za("0xa1")][za("0xcf")]&&n[za("0xa1")][za("0x117")]==n[za("0x106")][za("0xa8")]?e[za("0x8d")](n.start[za("0xa8")],"on"):e[za("0x8d")](n),this[za("0x86")][za("0xe8")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[za("0x2c")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x4c")]((t=>(qa(t)&&(t=this[za("0x86")][za("0x98")](t[za("0xa1")])),t))).filter((t=>za("0x75")!==t.root.rootName));if(r[za("0x80")]<1)return;const x=Array[za("0x50")](this[za("0x86")][za("0xaf")][za("0x7c")][za("0x4a")]())[za("0x4c")]((t=>i.LiveRange[za("0x2b")](t)));n[za("0x5c")](r);for(const t of this._editor.commands[za("0x56")]())t.refresh();s[za("0xb6")]({forceDefaultExecution:!0}),this[za("0x8e")].execute(o,...s);const a=x[za("0xa3")]((t=>za("0x75")!=t[za("0x89")][za("0x95")]));a[za("0x80")]>0&&n.setSelection(a);for(const t of x)t[za("0x72")]()}))},o=(t,e)=>1==t[za("0x80")]&&1==e[za("0x80")]&&t[0].end.isEqual(e[0][za("0x106")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x86")])?[t,e]:Za(e,t,o,n,this[za("0x86")])?[e,t]:null;this._defaultCallbacks.set(za("0x101"),t),this[za("0x133")][za("0x9b")](za("0xd6"),e),this[za("0x133")].set(za("0x71"),o),this[za("0x133")][za("0x9b")](za("0x54"),s),this._defaultCallbacks.set(za("0xde"),e),this[za("0x133")][za("0x9b")]("deletion:discard",t),this[za("0x133")][za("0x9b")]("deletion:join",o),this[za("0x133")][za("0x9b")](za("0xc6"),s),this[za("0x133")].set(za("0xe5"),n),this[za("0x133")].set(za("0xad"),t),this[za("0x133")][za("0x9b")](za("0xc4"),o),this._defaultCallbacks.set(za("0xfa"),t),this[za("0x133")][za("0x9b")]("formatBlock:accept",n),this[za("0x133")][za("0x9b")](za("0x6f"),t),this[za("0x133")][za("0x9b")](za("0x93"),o),this[za("0x133")].set("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e[za("0x117")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0x89")]==o)return!1;if(!n.containsItem(o))return!1;if(t.isObject(o)||t[za("0x7b")](o))return!0}return!1}function qa(t){return t[za("0xa1")][za("0x117")]==t[za("0x106")][za("0xa8")]&&t[za("0xa1")][za("0xb5")]}function Xa(t,e,n,o){const s=t=>!t[za("0xb7")].is(za("0x10a"))&&!o[za("0xe4")](t.item),r=t[za("0x106")][za("0x135")](s),i=t[za("0xa1")][za("0x135")](s,{direction:za("0x13b")});return!(t.start[za("0x84")](r)&&t[za("0xa1")][za("0x84")](i)||(r.isBefore(i)?n[za("0xdb")](e,{range:n.createRange(r,i)}):n.removeMarker(e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x106")][za("0xa8")];return e&&e.is(za("0x13a"))}function Qa(t,e){const n=e.schema[za("0xe4")](t)||e[za("0xe")][za("0x18")](t);return e[za("0x98")](e[za("0xba")](t,za("0xbc")),n?e[za("0x7a")](t):e[za("0xba")](t,"end"))}function Za(t,e,n,o,s){if(n[za("0xa1")][za("0x84")](o[za("0x106")]))return!0;if(t[za("0x21")]!=e[za("0x21")])return!1;if(!n[za("0xa1")][za("0x74")](o[za("0x106")]))return!1;const r=s[za("0x98")](n[za("0xa1")],o[za("0x106")]).getWalker();for(const t of r)if([za("0x3a"),za("0x64")].includes(t[za("0x21")])&&s[za("0xe")].isLimit(t[za("0xb7")]))return!1;return!0}const Ya=["_editor","canEditAt","canDiscard","add","_acceptCommand","commands","destroy","isEnabled","discardSuggestion","execute","_setPendingAction","_pendingAction","stopListening","change:isDirty","_removePendingAction","get","view","commentThreadController","unbind","getRanges","bind","acceptSuggestion","model","remove","canAccept","_discardCommand","PendingActions","plugins","listenTo"];var tc,ec;tc=Ya,ec=448,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x9")]=e,this[nc("0x3")]=n,this[nc("0x4")]=o,this[nc("0x10")]=t,this[nc("0x14")]=t[nc("0x15")][nc("0x2")](nc("0x8")),this[nc("0xc")]=t.commands[nc("0x2")](nc("0x18")),this[nc("0x3")].bind(nc("0x17")).to(this[nc("0x14")],this[nc("0xc")],((t,e)=>t||e)),this[nc("0x3")][nc("0x7")](nc("0xb")).to(this._acceptCommand,nc("0x17"),(t=>t&&this[nc("0x10")][nc("0x9")].canEditAt(e[nc("0x6")]()))),this[nc("0x3")][nc("0x7")]("canDiscard").to(this[nc("0xc")],nc("0x17"),(t=>t&&this._editor[nc("0x9")][nc("0x11")](e[nc("0x6")]()))),this[nc("0x1b")]=null,n.isDirty&&this[nc("0x1a")](),this[nc("0xf")](n,nc("0x8"),(()=>this[nc("0x8")]())),this[nc("0xf")](n,nc("0x18"),(()=>this[nc("0x18")]())),this.listenTo(n,nc("0x0"),(()=>{n.isDirty?this[nc("0x1a")]():this[nc("0x1")]()}))}acceptSuggestion(){this._acceptCommand.execute(this.model.id)}discardSuggestion(){this[nc("0xc")][nc("0x19")](this[nc("0x9")].id)}[nc("0x16")](){this.view[nc("0x5")](nc("0x17")),this[nc("0x3")][nc("0x5")](nc("0xb")),this[nc("0x3")].unbind(nc("0x12")),this[nc("0x1c")](),this[nc("0x4")][nc("0x16")](),this[nc("0x1b")]&&this[nc("0x1")]()}_setPendingAction(){const t=Yo(this[nc("0x10")].locale,"PENDING_ACTION_SUGGESTION");this._pendingAction=this[nc("0x10")].plugins[nc("0x2")](nc("0xd"))[nc("0x13")](t)}_removePendingAction(){null!==this[nc("0x1b")]&&this._editor[nc("0xe")][nc("0x2")](nc("0xd"))[nc("0xa")](this._pendingAction),this[nc("0x1b")]=null}}const sc=["setData","isActive","addComment","bind","commentThread","editorConfig","length","isReadOnly","commentThreadInputView","commentsListView","destroy","_model","focus","_createCommentViews","_createCommentThreadInputView","isEnabled","element","locale","disableComments","cancel","delegate","commentInputView","hasDirtyComment","value","canAccept","editor","authoredAt","set","_config","removeComment"];var rc,ic;rc=sc,ic=484,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x5")]=null,this[xc("0x4")]=null,this[xc("0x17")]("isActive",!1),this[xc("0x17")](xc("0x16"),e.authoredAt),this[xc("0x1d")](xc("0x16")).to(e),this.set("descriptionParts",[]),this[xc("0x17")]("isDirty",!1),this[xc("0x17")](xc("0xb"),!1),this[xc("0x17")](xc("0x14"),!1),this.set("canDiscard",!1),this[xc("0x7")]=e,this._localUser=n,this[xc("0x18")]=o,o[xc("0xe")]?this[xc("0x17")]("length",1):this._createCommentViews()}[xc("0x8")](){this[xc("0xc")][xc("0x8")]()}[xc("0x6")](){this.commentsListView&&this[xc("0x5")][xc("0x6")](),this[xc("0x4")]&&this[xc("0x4")].destroy(),super[xc("0x6")]()}[xc("0x9")](){const{CommentsListView:t}=this[xc("0x18")];this[xc("0x5")]=new t(this[xc("0xd")],this[xc("0x7")].commentThread,Object.assign({CommentView:this[xc("0x18")].CommentView},this._config)),this[xc("0x5")][xc("0x10")](xc("0x19")).to(this),this[xc("0x5")][xc("0x10")]("updateComment").to(this),this.commentsListView.bind(xc("0x1b")).to(this),this[xc("0x17")](xc("0x2"),this[xc("0x5")].length+1),this[xc("0x1d")](xc("0x2")).to(this.commentsListView,xc("0x2"),(t=>t+1)),this[xc("0x4")]=this[xc("0xa")](),this.on(xc("0x19"),(()=>this[xc("0x8")]())),this[xc("0x1d")]("isDirty").to(this[xc("0x5")],xc("0x12"),this[xc("0x4")][xc("0x11")],xc("0x13"),((t,e)=>t||!!e))}[xc("0xa")](){const{CommentThreadInputView:t}=this[xc("0x18")],e=new t(this[xc("0xd")],this._localUser,this[xc("0x18")][xc("0x1")]),n=e[xc("0x11")];return e[xc("0x1d")]("showInput").to(this,xc("0x1b"),this[xc("0x7")].commentThread,"isReadOnly",n,xc("0x13"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this.fire(xc("0x1c"),e),n[xc("0x15")][xc("0x1a")]("")})),n.on(xc("0xf"),(()=>this[xc("0x8")]())),n.bind("disabledSubmit").to(this[xc("0x7")][xc("0x0")],xc("0x3")),e}}const cc=["creator",".ck-annotation__content-wrapper","_model","canAccept","ck-annotation__info","span","commentsListView","EXTERNAL_IMPORT_WORD_SUGGESTION","name","render","locale","ck-suggestion-","descriptionParts","acceptButton","innerHTML","</p>","push","color","getTemplate","ck-suggestion--accept","formatDateTime","_descriptionElement","@external","value","description","Accept suggestion","join","getUserViewNotificationText","author","canDiscard","children","commentThreadInputView","ck-comment__external","discardSuggestion","ck-annotation__info-time","source","ck-annotation__info-name","ck-suggestion__main","_createButton","ck-suggestion__info","<p>","change:description","_config","acceptSuggestion","isActive","content","isExternal","ck-annotation__actions","isEnabled","authoredAt","setTemplate","userView","attributes","disableComments","EXTERNAL_IMPORT_WORD_AVATAR","set","EXTERNAL_AVATAR","bind","getExternalSuggestionNote","fire","commentThread","type","ck-annotation__user","ck-suggestion__user","Discard suggestion","div","discardButton","time","split","innerText",'<span class="ck-suggestion-color" style="background-color: ',"extendTemplate","importWord","ck-annotation","ck-suggestion--disabled-comments","cancel",'<span class="ck-suggestion-type">',"title","EXTERNAL_SUGGESTION","ck-annotation__main","createElement","ck-suggestion__info-name","map","ck-suggestion"];var lc,uc;lc=cc,uc=199,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[dc("0x18")](dc("0x1e"),""),this[dc("0x1a")](dc("0x1e")).to(this,dc("0x41"),(t=>t&&t[0]?t[0].type:"")),this.bind(dc("0x4d")).to(this,dc("0x41"),this,dc("0xd"),((t,e)=>{let n="";for(const e of t)n+=dc("0x9")+mc(e[dc("0xe")],e[dc("0x46")])+dc("0x44");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[dc("0x4a")]=null,this.acceptButton=this[dc("0x7")](Yo(e,dc("0x4e")),t.icons.check,dc("0x48"),dc("0xc"),"sw"),this[dc("0x42")][dc("0x1a")](dc("0x11")).to(this,dc("0x38")),this.discardButton=this._createButton(Yo(e,dc("0x21")),t.icons[dc("0x2c")],"ck-suggestion--discard",dc("0x2"),"sw"),this[dc("0x23")][dc("0x1a")](dc("0x11")).to(this,dc("0x52")),this[dc("0x14")]=new r.UserView(e,this[dc("0x37")][dc("0x51")],this[dc("0x50")]()),this[dc("0x14")].extendTemplate({attributes:{class:[dc("0x20"),dc("0x1f")]}}),this[dc("0x13")](this[dc("0x47")]())}[dc("0x47")](){const t=this.bindTemplate,e=[{tag:dc("0x22"),attributes:{class:[dc("0x8"),dc("0x39")]},children:[{tag:dc("0x3a"),children:[{text:this[dc("0x14")][dc("0x3d")]}],attributes:{class:[dc("0x32"),dc("0x5")]}},{tag:dc("0x24"),attributes:{datetime:t.to(dc("0x12")),class:["ck-comment__info-time",dc("0x3")]},children:[{text:t.to(dc("0x12"),(t=>this[dc("0xb")][dc("0x49")](t)))}]}]},{tag:dc("0x22"),attributes:{class:["ck-suggestion__actions",dc("0x10")]},children:[this.acceptButton,this.discardButton]},{tag:dc("0x22"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[dc("0x37")][dc("0xf")]&&e[dc("0x45")]({tag:dc("0x22"),attributes:{class:[dc("0x1")]},children:[{text:this[dc("0x1b")]()}]});const n={tag:dc("0x22"),attributes:{class:["ck-suggestion-wrapper",t.if(dc("0xd"),"ck-suggestion-wrapper--active"),t.to(dc("0x1e"),(t=>dc("0x40")+t)),this[dc("0xb")][dc("0x16")]&&dc("0x2b")],"data-suggestion-id":this._model.id,"data-thread-id":this[dc("0x37")][dc("0x1d")].id,"data-author-id":this[dc("0x37")].author.id,tabindex:-1},children:[{tag:dc("0x22"),attributes:{class:[dc("0x34"),dc("0x2a")]},children:[this[dc("0x14")],{tag:dc("0x22"),attributes:{class:[dc("0x6"),dc("0x30")]},children:e}]}]};return this.commentsListView&&this[dc("0x0")]&&n[dc("0x53")][dc("0x45")](this[dc("0x3b")],this[dc("0x0")]),n}[dc("0x3e")](){super[dc("0x3e")](),this[dc("0x4a")]=this.element.querySelector(dc("0x36")),this._descriptionElement[dc("0x43")]=this.description,this.on(dc("0xa"),((t,e,n)=>{this._descriptionElement[dc("0x43")]=n}))}[dc("0x7")](t,e,n,o,r){const i=new s.ButtonView(this.locale);return i[dc("0x18")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[dc("0x28")]({attributes:{class:n}}),i.on("execute",(()=>{this[dc("0x1c")](o,this[dc("0x37")].id)})),i}[dc("0x1b")](){return dc("0x29")===this._model[dc("0x15")][dc("0x4b")].source?Yo(this[dc("0x3f")],dc("0x3c")):Yo(this.locale,dc("0x2f"))}[dc("0x50")](){return this[dc("0x37")][dc("0xf")]?dc("0x29")===this[dc("0x37")][dc("0x15")][dc("0x4b")][dc("0x4")]?Yo(this[dc("0x3f")],dc("0x17"),this._model.creator.name):Yo(this[dc("0x3f")],dc("0x19"),this[dc("0x37")][dc("0x35")].name):null}}function mc(t,e){let n="";return n+=t[dc("0x25")]("*")[dc("0x33")](((t,e)=>e%2!=0?dc("0x2d")+fc(t)+"</span>":fc(t)))[dc("0x4f")](""),e&&(n+=dc("0x27")+e[dc("0x4c")]+'" title="'+e[dc("0x2e")]+'"></span>'),n}function fc(t){const e=document[dc("0x31")]("span");return e[dc("0x26")]=t,e[dc("0x43")]}const hc=["commandName","model","trackChanges","EditorAnnotations","isDirty","buttonView","_initializeController","comments.editorConfig","size","remove","CommentsUI","getRanges","CommentsRepository","source","comments","head","isEnabled","has","unbind","push","from","_descriptionFactory","toMany","_annotationViews","focus","TrackChangesUI","suggestion-","pluginName","config","some","isInContent","stopListening","createAnnotation","isOn","requires","type","suggestionChanged","destroy","descriptionParts","Annotations","init","_destroyController","acceptButton","commands","TrackChangesEditing","map","_disableComments","view","getMarkers","bind","comments.maxCommentCharsWhenCollapsed","getByInnerView","change:previous","button","_updateController","acceptSelectedSuggestions","innerView","previous","execute","activeMarkers","CommentView","Accept all suggestions","_createUIButton","switchbutton","filter","refreshSelectedViews","createCommentThreadController","_handleSuggestionControllerDelayed","isMultiRange","componentFactory","_viewToController","actionView","Discard all suggestions","activeAnnotations","_handleControllerBuffer","discardButton","define","locale","set","getAllAdjacentSuggestions","delete","editing","get","length","editor","Track changes","getJoined","acceptAllSuggestions","_suggestionToController","value","comments.maxCommentsWhenCollapsed","trackChanges.disableComments","change:activeAnnotations","mainView","add","separator","keys","discardSelectedSuggestions","clear","lowest","suggestionLoaded","addSourceCollector","getDescriptions","listenTo","plugins","discardAllSuggestions","suggestionUnloaded","createAnnotationView"];var pc,bc;pc=hc,bc=368,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x62")](){return[Wa,r.Users,Ec("0x4c"),Ec("0x67"),Ec("0x43")]}static get[Ec("0x5b")](){return Ec("0x59")}constructor(t){super(t),this[Ec("0x2c")]=new Map,this._viewToController=new Map,this[Ec("0x57")]=new Map,this[Ec("0x1e")]=new Map;const e=this[Ec("0x28")].config;e[Ec("0x20")]("trackChanges.SuggestionThreadView",gc),e[Ec("0x20")](Ec("0x2f"),!1),this[Ec("0x2")]=e[Ec("0x26")]("trackChanges.disableComments")}[Ec("0x17")](t,e){0===this[Ec("0x1e")][Ec("0x48")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x1e")]){const n=this[Ec("0x2c")].has(t);n||e?n&&e&&this._destroyController(t):this._initializeController(t)}this.editor[Ec("0x3c")].get(Ec("0x43"))[Ec("0x15")](),this._refreshActiveMarkers(),this[Ec("0x1e")][Ec("0x36")]()}),10),this[Ec("0x1e")][Ec("0x22")](t,e)}[Ec("0x68")](){const t=this[Ec("0x28")],e=t[Ec("0x3c")][Ec("0x26")]("TrackChangesEditing"),n=t[Ec("0x3c")][Ec("0x26")]("Annotations"),o=t[Ec("0x3c")][Ec("0x26")](Ec("0x43")),s=t[Ec("0x3c")][Ec("0x26")]("CommentsRepository");t.ui[Ec("0x19")].add(Ec("0x42"),(t=>this[Ec("0x12")](t))),o[Ec("0x39")]((()=>{const t=[];for(const[e,n]of Array.from(this._suggestionToController)){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x18")]){s.push(...t[Ec("0x4b")]());continue}const e=t.getFirstRange();if(s[Ec("0x27")]>0){const t=s[0][Ec("0x2a")](e);if(t){s[0]=t;continue}}s.push(e)}t[Ec("0x53")]([n[Ec("0x3")],s])}return t})),this[Ec("0x3b")](e,Ec("0x38"),((t,e)=>{this[Ec("0x3b")](e,"change:previous",((t,n,o,s)=>{e.isInContent&&(null==o?(this[Ec("0xa")](s[Ec("0x4f")]),this[Ec("0x17")](e,!1)):(this[Ec("0xa")](o.head),this[Ec("0x17")](e,!0)))})),null===e[Ec("0xd")]?this[Ec("0x17")](e,!1):this._updateController(e[Ec("0x4f")])})),this[Ec("0x3b")](e,Ec("0x3e"),((t,e,n)=>{this[Ec("0x5f")](e,Ec("0x8")),this._handleControllerBuffer[Ec("0x24")](e);const o=n?n[Ec("0x4f")]:e,s=this[Ec("0x2c")][Ec("0x26")](o);null!==n&&this[Ec("0xa")](o),null===n&&s&&this[Ec("0x69")](e)})),this[Ec("0x3b")](e,Ec("0x64"),((t,e)=>{this[Ec("0xa")](e)})),this[Ec("0x3b")](n,Ec("0x30"),(()=>{this._refreshActiveMarkers()})),this[Ec("0x3b")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e.getSuggestion(n);this[Ec("0x2c")][Ec("0x26")](s)[Ec("0x3")].focus()}),{priority:Ec("0x37")})}_refreshActiveMarkers(){const t=this.editor[Ec("0x3c")][Ec("0x26")](Ec("0x67")),e=this[Ec("0x28")][Ec("0x3c")][Ec("0x26")](Ec("0x0")),n=Array[Ec("0x54")](t[Ec("0x1d")],(t=>t[Ec("0xc")])).filter((t=>this[Ec("0x1a")][Ec("0x51")](t))),o=[];for(const t of n){const e=this[Ec("0x1a")].get(t)[Ec("0x41")][Ec("0x23")]();o[Ec("0x53")](...e.reduce(((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Ec("0xf")]=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x28")].commands[Ec("0x26")](Ec("0x42")),r=Yo(t,Ec("0x29"));n[Ec("0x45")][Ec("0x22")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x45")][Ec("0x5")](Ec("0x61")).to(o,Ec("0x2d")),n[Ec("0x45")].on(Ec("0xe"),(()=>{o[Ec("0xe")](),this.editor[Ec("0x25")].view[Ec("0x58")]()}));const i=new e.Collection,x=[{type:Ec("0x13"),model:{withText:!0,label:r,commandName:Ec("0x42")}},{type:"separator"},{type:Ec("0x9"),model:{withText:!0,label:Yo(t,Ec("0x11")),commandName:Ec("0x2b")}},{type:Ec("0x9"),model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Ec("0xb")}},{type:Ec("0x9"),model:{withText:!0,label:Yo(t,Ec("0x1c")),commandName:Ec("0x3d")}},{type:Ec("0x9"),model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:Ec("0x35")}}];for(const t of x){let e={type:Ec("0x33")};if(t[Ec("0x41")]){const n=new s.Model(t[Ec("0x41")]),o=this[Ec("0x28")].commands[Ec("0x26")](n[Ec("0x40")]);n[Ec("0x5")](Ec("0x61"),"isEnabled").to(o,Ec("0x2d"),Ec("0x50")),e={type:t[Ec("0x63")],model:n}}i[Ec("0x32")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x14")]((t=>null!=t[Ec("0x41")]))[Ec("0x1")]((t=>this[Ec("0x28")][Ec("0x6b")][Ec("0x26")](t[Ec("0x41")].commandName))),c=n[Ec("0x45")];return c[Ec("0x1b")][Ec("0x52")](Ec("0x50")),c.arrowView.unbind(Ec("0x50")),c[Ec("0x1b")][Ec("0x5")]("isEnabled").to(o,Ec("0x50")),c.arrowView.bind(Ec("0x50"))[Ec("0x56")](a,Ec("0x50"),((...t)=>t[Ec("0x5d")]((t=>t)))),n.on(Ec("0xe"),(t=>{this.editor.execute(t[Ec("0x4d")][Ec("0x40")]),this[Ec("0x28")].editing.view[Ec("0x58")]()})),n}[Ec("0x46")](t){const e=this[Ec("0x28")],n=e[Ec("0x5c")],o=e[Ec("0x3c")][Ec("0x26")](Ec("0x67")),s=e[Ec("0x3c")][Ec("0x26")](Ec("0x4c")),i=e.plugins[Ec("0x26")](Ec("0x43")),x=e.plugins[Ec("0x26")](r.Users).me,a=n[Ec("0x26")](Ec("0x42")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x3c")].get(Ec("0x4a"));let u,d;this[Ec("0x57")].has(t.id)?(d=this[Ec("0x57")][Ec("0x26")](t.id),u=d[Ec("0x31")]):(u=new a(e[Ec("0x21")],t,x,{disableComments:this[Ec("0x2")],editorConfig:n[Ec("0x26")](Ec("0x47")),maxCommentsWhenCollapsed:n[Ec("0x26")](Ec("0x2e")),maxThreadTotalWeight:n[Ec("0x26")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Ec("0x26")](Ec("0x6")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x26")](Ec("0x21"))),CommentView:n[Ec("0x26")](Ec("0x4e"))[Ec("0x10")],CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x6a")].on(Ec("0xe"),(()=>{e[Ec("0x25")][Ec("0x3")][Ec("0x58")]()})),u[Ec("0x1f")].on(Ec("0xe"),(()=>{e[Ec("0x25")][Ec("0x3")][Ec("0x58")]()})),d=o[Ec("0x3f")](this[Ec("0x28")][Ec("0x21")],u),d[Ec("0x5")]("isDirty").to(u,Ec("0x44")),d[Ec("0x5")]("length").to(u),d[Ec("0x5")](Ec("0x63")).to(u,Ec("0x63"),(t=>Ec("0x5a")+t)),this[Ec("0x57")][Ec("0x22")](t.id,d));const g=s[Ec("0x16")](t.commentThread,u),m=new oc(e,t,u,g),f=t.getAllAdjacentSuggestions()[Ec("0x14")]((t=>t[Ec("0x5e")]));u[Ec("0x66")]=e.plugins[Ec("0x26")](Ec("0x0"))[Ec("0x55")][Ec("0x3a")](f),this[Ec("0x2c")][Ec("0x22")](t,m),this[Ec("0x1a")][Ec("0x22")](u,m);const h=o[Ec("0x60")]({view:d,target:()=>{const n=[],o=t[Ec("0x23")]()[Ec("0x14")]((t=>t[Ec("0x5e")]));for(const t of o)n[Ec("0x53")](...t[Ec("0x4")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x25")],n)},type:()=>Ec("0x5a")+m.view.type});o[Ec("0x32")](h),i.registerAnnotation(h)}[Ec("0x69")](t){const e=this[Ec("0x28")][Ec("0x3c")][Ec("0x26")](Ec("0x67")),n=this._suggestionToController[Ec("0x26")](t),o=n.view,s=e[Ec("0x7")](o);s&&e[Ec("0x49")](s),this[Ec("0x2c")][Ec("0x24")](t),this._viewToController[Ec("0x24")](o),n[Ec("0x65")]()}[Ec("0xa")](t){if(!t[Ec("0x5e")]||!this._suggestionToController[Ec("0x51")](t))return;const e=this[Ec("0x28")][Ec("0x3c")][Ec("0x26")](Ec("0x0")),n=this[Ec("0x2c")][Ec("0x26")](t),o=t[Ec("0x23")]();n[Ec("0x3")][Ec("0x66")]=e._descriptionFactory[Ec("0x3a")](o)}[Ec("0x65")](){for(const t of this[Ec("0x2c")][Ec("0x34")]())this._destroyController(t);for(const t of this._annotationViews.values())t[Ec("0x31")][Ec("0x65")]();super[Ec("0x65")]()}}var Tc,Cc,yc=["addSuggestion","pluginName","Comments","addSuggestionData","adapter","editor","get","plugins"];Tc=yc,Cc=500,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get requires(){return[Wa,_c,kc("0x6")]}static get[kc("0x5")](){return"TrackChanges"}set[kc("0x0")](t){this.editor[kc("0x3")].get(Wa).adapter=t}get[kc("0x0")](){return this[kc("0x1")][kc("0x3")][kc("0x2")](Wa).adapter}[kc("0x4")](t){return this[kc("0x1")][kc("0x3")][kc("0x2")](Wa)[kc("0x7")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x1")].plugins[kc("0x2")](Wa).getSuggestions({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[kc("0x1")][kc("0x3")][kc("0x2")](Wa).getSuggestion(t)}}const vc=["WebSocketGateway","getSuggestions","builtinPlugins","context","result","execute","requires","model","toolbar","includes","DocumentOutline","track-changes-data-invalid-editor-creator","WordCount","editorCreator","_context","addUser","config","has","filter","init","appendChild","div","TrackChangesEditing","Autosave","extraPlugins","string","plugins","end","pluginName","constructor","CommentsRepository","find","every","Pagination","map","get","destroy","from","acceptAllSuggestions","trackChangesData.editorCreator","editor","create","names","set","trackChangesData","data","users","RevisionTracker","addSuggestionData","tokenUrl","concat","push","initialData","getDataWithDiscardedSuggestions","discardAllSuggestions","getRootNames","useAnonymousUser","getUser","cloudServices","TrackChangesDataGetter"];var Rc,Sc;Rc=vc,Sc=361,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x33"),Ic("0x2"),Ic("0x7")],Nc=[Ic("0x3b"),Ic("0x2e"),Ic("0x16"),Ic("0xb"),Ic("0x20"),Ic("0x9")];class Mc extends t.Plugin{static get requires(){return[Wa]}static get[Ic("0x1b")](){return"TrackChangesData"}[Ic("0x12")](){const t=this[Ic("0x27")];if(t[Ic("0xf")].define(Ic("0x26"),(e=>t[Ic("0x1c")][Ic("0x28")]("",e))),"function"!=typeof t[Ic("0xf")][Ic("0x22")](Ic("0x2b")).editorCreator)throw new e.CKEditorError(Ic("0xa"))}getDataWithAcceptedSuggestions(t){return Oc(this[Ic("0x27")],!0,t)}[Ic("0x34")](t){return Oc(this.editor,!1,t)}}class wc extends t.Plugin{static get[Ic("0x1b")](){return Ic("0x3a")}constructor(t){super(t),this[Ic("0x3")]=Ic("0x1a")}[Ic("0x12")](){this.editor[Ic("0x19")][Ic("0x22")](Ic("0x1d"))._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[Ic("0x27")][Ic("0x19")][Ic("0x22")](Ic("0x15"))._adapter=null}}async function Oc(t,e,n){const o=function(t){const e={};for(const n of t[Ic("0xf")][Ic("0x29")]())Lc.includes(n)||(e[n]=t[Ic("0xf")][Ic("0x22")](n));e[Ic("0x39")]&&e[Ic("0x39")].tokenUrl&&delete e[Ic("0x39")][Ic("0x30")];const n=t[Ic("0x1c")][Ic("0x1")]||[],o=e.extraPlugins||[];delete e[Ic("0x17")];const s=t[Ic("0xd")][Ic("0xf")].get(Ic("0x19"))||[],r=n[Ic("0x31")](e[Ic("0x19")]).concat(o)[Ic("0x31")](s)[Ic("0x21")]((t=>Ic("0x18")==typeof t?n[Ic("0x1e")]((e=>e[Ic("0x1b")]==t)):t)),i=Array[Ic("0x24")](new Set(r)),x=new Map;return e[Ic("0x19")]=i[Ic("0x11")]((t=>Fc(t,x))),e[Ic("0x19")].push(Wa),e[Ic("0x19")][Ic("0x32")](wc),e}(t),s=document.createDocumentFragment(),r=t.config[Ic("0x22")]("trackChangesData")[Ic("0xc")],i=await r(o,(()=>function(t){const e=document.createElement(Ic("0x14"));return t[Ic("0x13")](e),e}(s)));!function(t,e){const n=t[Ic("0x6")].document[Ic("0x36")]().reduce(((e,n)=>(e[n]=t[Ic("0x2c")][Ic("0x22")]({rootName:n}),e)),{}),o=t.plugins.get("Users")[Ic("0x2d")][Ic("0x21")]((t=>({id:t.id,name:t.name}))),s=t[Ic("0x19")][Ic("0x22")]("TrackChangesEditing")[Ic("0x0")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x19")][Ic("0x22")]("Users"),i=e[Ic("0x19")][Ic("0x22")](Ic("0x15"));for(const t of o)r[Ic("0x38")](t.id)||r[Ic("0xe")](t);r.me||r[Ic("0x37")]();for(const t of s)i[Ic("0x2f")](t);e[Ic("0x2c")][Ic("0x2a")](n)}(t,i),i[Ic("0x4")](Ic(e?"0x25":"0x35"));const x=i.data[Ic("0x22")](n);return await i[Ic("0x23")](),x}function Fc(t,e){const n="function"==typeof t?t[Ic("0x1b")]||t.name:t;if(e[Ic("0x10")](n))return e[Ic("0x22")](n);if(e[Ic("0x2a")](n,!0),n&&Nc[Ic("0x8")](n))return e[Ic("0x2a")](n,!1),!1;if(!t[Ic("0x5")])return e[Ic("0x2a")](n,!0),!0;const o=t.requires[Ic("0x1f")]((t=>Fc(t,e)));return e[Ic("0x2a")](n,o),o}})(),(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:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["_isEnabledBasedOnSelection","refresh","value","_enableCommands","affectsData","clearForceDisabled","TrackChangesCommand","has","forceDisabled","commands","editor","_enabledCommands","_disableUnsupportedCommands"];var c,l;c=a,l=133,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x8")]=e,this[u("0xc")]=!1,this[u("0xb")](),this[u("0xa")]=!1}[u("0xb")](){this.isEnabled=!0}execute(){this.value=!this[u("0xc")],this.value?this[u("0x9")]():this[u("0x0")]()}[u("0x9")](){for(const t of this[u("0x7")][u("0x6")][u("0x6")]())t[u("0x1")]&&!this[u("0x8")][u("0x4")](t)&&t[u("0x5")](u("0x3"))}[u("0x0")](){for(const t of this[u("0x7")].commands[u("0x6")]())t[u("0x1")]&&!this[u("0x8")][u("0x4")](t)&&t[u("0x2")](u("0x3"))}}const g=["editor","TrackChangesEditing","model","get","track-changes-accept-suggestion-not-found","isEnabled","plugins","getRanges","_suggestions","execute","canEditAt","acceptSuggestion","refresh"];var m,f;m=g,f=351,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("0x8")]=e,this[h("0xc")](),this._isEnabledBasedOnSelection=!1}[h("0xc")](){this[h("0x5")]=!0}[h("0x9")](t){const n=this._suggestions.get(t);if(!n)throw new e.CKEditorError(h("0x4"),this);const o=n[h("0x7")]();this[h("0x0")][h("0x2")][h("0xa")](o)&&this[h("0x0")][h("0x6")][h("0x3")](h("0x1"))[h("0xb")](n)}}const b=["isEnabled","canEditAt","refresh","editor","get","_suggestions","plugins","model","TrackChangesEditing","discardSuggestion","getRanges"];var E,_;E=b,_=383,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x7")]=e,this[T("0x4")](),this._isEnabledBasedOnSelection=!1}[T("0x4")](){this[T("0x2")]=!0}execute(t){const n=this._suggestions[T("0x6")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x1")]();this[T("0x5")][T("0x9")][T("0x3")](o)&&this[T("0x5")][T("0x8")][T("0x6")](T("0xa"))[T("0x0")](n)}}const y=["getMarkers","value","execute","content","getRange","type","isInContent","deletion","from","length","sort","isMultiRange","getRanges","next","createPositionBefore","push","color","schema","end","start","createPositionAfter","map","isTouching","splice","change","isObject"];var k,A;k=y,A=491,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0xd")](((t,e)=>"deletion"==t.type&&v("0xa")!=e[v("0x8")]?-1:v("0xa")!=t[v("0x8")]&&v("0xa")==e.type?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x14")];for(;o<t[v("0xc")];){const i=t[o],x=t[o+1];n||(n=e.createPositionBefore(i)),I(e,i,x)||(s[v("0x12")](e.createRange(n,r[v("0x2")](i)?e[v("0x17")](i):e.createPositionAt(i,v("0x15")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x17")](e),s=t[v("0x11")](n);return o[v("0x19")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0x0")](0,100);t[v("0x1")]((()=>{for(const t of o)t[v("0x9")]&&e[v("0x5")](t.id)}))}}const N=["_suggestions","_isEnabledBasedOnSelection","refresh","_command","model","isEnabled","getRanges","from","isInContent","some","values","execute","editor"];var w,M;w=N,M=113,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("0x7")]=e,this[O("0x4")]=n,this[O("0x6")](),this[O("0x5")]=!1}refresh(){const t=Array[O("0xb")](this._suggestions[O("0x1")]())[O("0x0")]((t=>t[O("0xc")]));this.isEnabled=this[O("0x7")][O("0x9")]&&t}[O("0x2")](){const t=R(Array[O("0xb")](this[O("0x4")].values()));for(const e of t){const t=e[O("0xa")]();if(!this.editor[O("0x8")].canEditAt(t))return}L(this[O("0x3")].model,this[O("0x7")],t)}}const P=["refresh","_selectedSuggestions","canEditAt","model","_suggestions","execute","size","values","_isEnabledBasedOnSelection","_command","editor","isEnabled","from","getRanges","document","selection"];var D,B;D=P,B=243,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("0x6")]=e,this._suggestions=n,this._selectedSuggestions=new Set,this.refresh(),this[j("0x5")]=!1}[j("0xd")](){const t=this.editor[j("0x0")][j("0xb")][j("0xc")],e=Array[j("0x9")](this[j("0x1")][j("0x4")]());this[j("0xe")]=function(t,e){const n=Array[v("0xb")](t[v("0xf")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s[v("0x3")]()){const r=n[v("0x7")]();(e.isIntersecting(r)||t.isCollapsed&&!s[v("0xe")]&&s[v("0x10")]&&r[v("0x15")][v("0x19")](e[v("0x16")]))&&o.add(s)}return o}(t,e),this[j("0x8")]=this._command[j("0x8")]&&!!this[j("0xe")][j("0x3")]}[j("0x2")](){const t=R(Array[j("0x9")](this[j("0xe")]));for(const e of t){const t=e[j("0xa")]();if(!this[j("0x7")].model[j("0xf")](t))return}L(this.editor[j("0x0")],this[j("0x6")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const 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 St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(wt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(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 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&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?we(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=Sn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,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=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){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 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=un(t),a=x.length;if(a!=un(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 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<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,u=(c=c==Fo?Do:c)==Do,d=a==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,a,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||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["substr","clear","reduce","_model","isInContent","head","creator","getRanges","from","size","push","setAttribute","addMarkerName","change","_onAccept","author","getMultiRangeId","set","nodeBefore","decorate","next","getFirstMarker","getItems","_onDiscard","removeMarkers","onAttributesChange","addMarker","nodeAfter","previous","subType","removeMarker","_markerNames","discard","end","delete","commentThread","data","type","hasComments","_onAttributesChange","map","createdAt","getAllAdjacentSuggestions","suggestion:","length","getMarkerNames","isIntersecting","start","getFirstRange","attributes","authoredAt","isExternal","onAccept","markers","get","split","removeAttribute","isMultiRange","getMarkers","accept","toJSON"];var $o,Jo;$o=Xo,Jo=122,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.id=e.id,this[Qo("0x25")]=e[Qo("0x25")],this[Qo("0x1d")]=e[Qo("0x1d")]||null,this.author=e[Qo("0xf")],this[Qo("0x6")]=e[Qo("0x6")]||e[Qo("0xf")],this[Qo("0x33")]=Boolean(e[Qo("0x31")]&&e.attributes["@external"]),this[Qo("0x24")]=null,this[Qo("0x3")]=t,this._onAccept=e[Qo("0x34")],this[Qo("0x17")]=e.onDiscard,this[Qo("0x27")]=e[Qo("0x19")],this._markerNames=new Set,this[Qo("0x29")]=null,this[Qo("0x11")](Qo("0x32"),null),this[Qo("0x11")](Qo("0x31"),e.attributes||{}),this.set(Qo("0x1c"),null),this[Qo("0x11")](Qo("0x14"),null),this[Qo("0x11")](Qo("0x23"),null),this[Qo("0x11")]("_saved",!1),this[Qo("0x13")](Qo("0x3b")),this[Qo("0x13")](Qo("0x20"))}get[Qo("0x5")](){let t=this;for(;t.previous;)t=t.previous;return t}get hasComments(){return!!this[Qo("0x23")]&&this[Qo("0x23")].length>0}get[Qo("0x39")](){return 0!=this[Qo("0x1f")][Qo("0x9")]&&6==Array[Qo("0x8")](this[Qo("0x1f")])[0][Qo("0x37")](":")[Qo("0x2c")]}get[Qo("0x4")](){return null!==this.getFirstMarker()}[Qo("0xc")](t){this[Qo("0x1f")].add(t)}[Qo("0x2d")](){return Array[Qo("0x8")](this._markerNames)}[Qo("0x3a")](){return this[Qo("0x2d")]()[Qo("0x28")]((t=>this._model[Qo("0x35")][Qo("0x36")](t))).filter((t=>t))}[Qo("0x15")](){return this.getMarkers()[0]||null}[Qo("0x18")](){this._model[Qo("0xd")]((t=>{for(const e of this[Qo("0x3a")]())t[Qo("0x1e")](e)})),this[Qo("0x1f")][Qo("0x1")]()}[Qo("0x1e")](t){this[Qo("0x3")].change((e=>{e[Qo("0x1e")](t)})),this[Qo("0x1f")][Qo("0x22")](t)}addRange(t){const e=Qo("0x2b")+this.type+":"+this[Qo("0x1d")]+":"+this.id+":"+this[Qo("0x6")].id+":"+Zo[Qo("0x10")]();this[Qo("0xc")](e),this._model[Qo("0xd")]((n=>{n[Qo("0x1a")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x7")]())if(e[Qo("0x2e")](t))return!0;return!1}[Qo("0x7")](){return this.getMarkers()[Qo("0x28")]((t=>t.getRange()))}[Qo("0x16")](){return this.getRanges()[Qo("0x2")](((t,e)=>[...t,...e[Qo("0x16")]()]),[])}[Qo("0x30")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t.getRange())||null}getContainedElement(){const t=this[Qo("0x7")]();if(1!=t[Qo("0x2c")])return null;const e=t[0],n=e[Qo("0x2f")][Qo("0x1b")],o=e[Qo("0x21")][Qo("0x12")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x3b")](){this[Qo("0xe")](this.getRanges(),this[Qo("0x24")],this[Qo("0x31")]),this.removeMarkers()}[Qo("0x20")](){this._onDiscard(this[Qo("0x7")](),this[Qo("0x24")],this[Qo("0x31")]),this.removeMarkers()}[Qo("0x2a")](){const t=[];let e=this[Qo("0x5")];for(;e;)t[Qo("0xa")](e),e=e[Qo("0x14")];return t}[Qo("0xb")](t,e){const n=eo(this[Qo("0x31")]);_o(n,t,e),Go(n,this[Qo("0x31")])||(this[Qo("0x31")]=n,this._onAttributesChange(n))}[Qo("0x38")](t){const e=eo(this[Qo("0x31")]);qo(e,t),Go(e,this.attributes)||(this[Qo("0x31")]=e,this[Qo("0x27")](this.attributes))}[Qo("0x3c")](){return{id:this.id,type:this[Qo("0x1d")]?this[Qo("0x25")]+":"+this[Qo("0x1d")]:this.type,authorId:this[Qo("0x6")].id,createdAt:this[Qo("0x29")],hasComments:this[Qo("0x26")],data:this[Qo("0x24")],attributes:this.attributes}}static[Qo("0x10")](){return(0,e.uid)()[Qo("0x0")](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=["$textProxy","text","deletion","end","_addDescriptionItems","quantity","data","_customCallbacks","isEmpty","addContainer","normal","elementStart","Container","function","_locale","replace","getItemLabel","Object","push","_schema","type","ELEMENT_SPACE","start","element","addObject","isObject","$1 $2","pop","*Insert:* %0","get","removeEmptyContainer","remove","indexOf","*Merge:* %0","skip","*Split:* %0","previousSibling","match","*Remove:* %0","_resolveDescriptionItems","name","isInContent","nextSibling","removeObject","_itemLabels","getFirstRange","length","softBreak","add","isEqual","getWalker","matchingCallback","elementEnd","set","insertion","EmptyContainer","_itemLabelsCallbacks"];var es,ns;es=ts,ns=475,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("0x2d")]=[],this[os("0x19")]=new Map,this[os("0x25")]=[],this._schema=t,this._locale=e}getDescriptions(t){const e=[];for(let n=0;n<t[os("0x1b")];n++){const o=t[n];if(!o[os("0x16")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x1")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x2a")](e,o);const s=t[n+1];if(s&&!o[os("0x1a")]()[os("0x29")][os("0x1e")](s[os("0x1a")]()[os("0x3")])){const t=e[e.length-1],n="insertion"==o.type?os("0x1d"):os("0xc");t&&os("0x27")==t[os("0x1")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}registerDescriptionCallback(t){this[os("0x2d")][os("0x38")](t)}registerElementLabel(t,n,o=e.priorities[os("0x30")]){os("0x33")==typeof t?(0,e.insertToPriorityArray)(this[os("0x25")],{matchingCallback:t,label:n,priority:o}):this[os("0x19")][os("0x22")](t,n)}getItemLabel(t,e=1){let n;for(const e of this[os("0x25")])if(e[os("0x20")](t)){n=e.label;break}return n||(n=this._itemLabels[os("0xa")](t.name)),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x15")]}[os("0x2a")](t,e){const n=e[os("0x1a")]()[os("0x1f")](),o=os("0x23")==e.type?os("0x1d"):os("0xc");for(const e of n){const s=e.item,r=t[t[os("0x1b")]-1];if(s.is(os("0x26")))r&&r[os("0x1")][os("0xd")](os("0x32"))>-1&&t[os("0x8")](),r&&os("0x27")==r[os("0x1")]?r[o]+=s[os("0x2c")]:t.push({type:os("0x27"),add:os("0x1d")==o?s[os("0x2c")]:"",remove:os("0xc")==o?s[os("0x2c")]:""});else if(this[os("0x0")].isObject(s)){const i=s;if(r&&r[os("0x1")][os("0xd")](os("0x32"))>-1&&t.pop(),os("0x21")==e[os("0x1")])continue;r&&r[os("0x1")]==o+"Object"&&r[os("0x4")][os("0x15")]==i[os("0x15")]?r.quantity++:t.push({type:o+os("0x37"),element:i,quantity:1}),n[os("0xf")]((t=>!(os("0x21")==t[os("0x1")]&&t.item==s)))}else if(this[os("0x0")].checkChild(s,"$text")||s.is(os("0x4"),os("0x1c"))){const n=s;if(os("0x1d")==o&&os("0x31")==e[os("0x1")]||os("0xc")==o&&os("0x21")==e[os("0x1")])continue;if(r&&-1==r[os("0x1")][os("0xd")]("Container")){os("0x27")==r[os("0x1")]&&(r[o]+="\n");continue}let i;if(i=os("0x1d")==o?n.nextSibling&&!this._schema.isObject(n[os("0x17")])?n[os("0x17")]:null:n[os("0x11")]&&!this[os("0x0")][os("0x6")](n[os("0x11")])?n[os("0x11")]:null,n[os("0x2e")]||i&&i[os("0x2e")]){const e=i&&i[os("0x2e")]?i:n;r&&r[os("0x1")]==o+os("0x24")&&r[os("0x4")][os("0x15")]==e.name?r[os("0x2b")]++:t[os("0x38")]({type:o+os("0x24"),element:e,quantity:1})}else t[os("0x38")]({type:o+os("0x32"),element:n})}}}[os("0x14")](t){const e=this[os("0x34")],n=[];for(const o of t){switch(o.type){case os("0x27"):if(o[os("0x1d")]=o[os("0x1d")][os("0x35")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x35")](/\u000A/g,""),o[os("0xc")]=o[os("0xc")][os("0x35")](/(\S)\u000A+(\S)/g,os("0x7"))[os("0x35")](/\u000A/g,""),""!=o[os("0x1d")]&&""!=o.remove){n[os("0x38")]({type:"replace",content:Yo(e,"REPLACE_TEXT",['"'+o[os("0xc")]+'"','"'+o[os("0x1d")]+'"'])});continue}if(null!=o.add[os("0x12")](/^ +$/)){n[os("0x38")]({type:os("0x23"),content:Yo(e,os("0x9"),Yo(e,os("0x2"),o[os("0x1d")].length))});continue}if(null!=o[os("0xc")][os("0x12")](/^ +$/)){n.push({type:os("0x28"),content:Yo(e,"*Remove:* %0",Yo(e,os("0x2"),o[os("0xc")][os("0x1b")]))});continue}if(""!=o[os("0x1d")]){n[os("0x38")]({type:os("0x23"),content:Yo(e,os("0x9"),'"'+o[os("0x1d")]+'"')});continue}n.push({type:os("0x28"),content:Yo(e,os("0x13"),'"'+o[os("0xc")]+'"')});continue;case"addEmptyContainer":case os("0x5"):n[os("0x38")]({type:os("0x23"),content:Yo(e,os("0x9"),this.getItemLabel(o[os("0x4")],o.quantity))});continue;case os("0xb"):case os("0x18"):n[os("0x38")]({type:os("0x28"),content:Yo(e,os("0x13"),this[os("0x36")](o.element,o[os("0x2b")]))});continue;case os("0x2f"):n.push({type:os("0x23"),content:Yo(e,os("0x10"),this[os("0x36")](o[os("0x4")],o[os("0x2b")]))});continue;case"removeContainer":n[os("0x38")]({type:"deletion",content:Yo(e,os("0xe"),this[os("0x36")](o[os("0x4")],o[os("0x2b")]))});continue}n[os("0x38")](o)}return n}}const rs=["locale","from","left","commandName","FORMAT_ALIGN_TO_CENTER","ltr","afterInit","FORMAT_JUSTIFY_TEXT","enableCommand","change","schema","document","TrackChangesEditing","editor","checkAttribute","filter","center","alignment","*Format:* %0","get","commandParams","FORMAT_ALIGN_TO_RIGHT","selection","value","has","plugins","model","contentLanguageDirection","registerDescriptionCallback"];var is,xs;is=rs,xs=494,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x5")](){const t=this[as("0xc")],e=t[as("0x1c")];if(!t[as("0x18")][as("0x17")]("AlignmentEditing"))return;const n=t[as("0x18")][as("0x12")](as("0xb"));n[as("0x7")](as("0x10"),((e,o={})=>{let s=o[as("0x16")];o[as("0x16")]||(s=as("0x4")===t[as("0x1c")][as("0x1a")]?as("0x1"):"right");const r=Array[as("0x0")](this[as("0xc")][as("0x19")][as("0xa")][as("0x15")].getSelectedBlocks())[as("0xe")]((t=>function(t,e,n){const o=t.getAttribute(as("0x10"))||null;return e[as("0xd")](t,as("0x10"))&&n!=o}(t,this[as("0xc")][as("0x19")][as("0x9")],s)));t[as("0x19")][as("0x8")]((()=>{for(const t of r)n.markBlockFormat(t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n._descriptionFactory[as("0x1b")]((t=>{const{data:n}=t;if(n&&as("0x10")==n[as("0x2")]){const t=n[as("0x13")][0][as("0x16")];return{type:"format",content:Yo(e,as("0x11"),function(t){switch(t){case as("0x1"):return Yo(e,"FORMAT_ALIGN_TO_LEFT");case"right":return Yo(e,as("0x14"));case as("0xf"):return Yo(e,as("0x3"));case"justify":return Yo(e,as("0x6"))}}(t))}}}))}}const ls=["model","addHighlight","addClass","markerName","getAttribute","listItem","bindElementToMarker","hasAttribute","TrackChangesEditing","elementEnd","span","parent","toViewElement","ck-suggestion-marker--active","nextSibling","test","writer","get","getCustomProperty","type","isLimit","plugins","activeMarkers","mapper","element","consumable","getWalker","isBlock","push","isAtEnd","toViewPosition","getItems","ck-suggestion-marker-","previousPosition","name","markerRange","item"];var us,ds;us=ls,ds=274,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x10")]())s[gs("0x1d")](t)&&o.push(n.createRangeOn(s));return o}function fs(t){const e=[];if(t.is(gs("0x9"),gs("0x1b"))){let n=t[gs("0x24")];for(;n&&n.is(gs("0x9"),"listItem")&&n[gs("0x1a")]("listIndent")>0;)e[gs("0xd")](n),n=n[gs("0x24")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x6")][gs("0x2")](gs("0x1e"));return(s,r,i)=>{if(!i[gs("0xa")][gs("0x0")](r[gs("0x14")],s[gs("0x13")]))return;const x=r[gs("0x14")][gs("0xb")](),a=r.markerRange.start,c=t[gs("0x16")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gs("0x15")];d=d||c.isContent(e);const n=i.mapper[gs("0x22")](e);if(n&&n[gs("0x3")](gs("0x17")))return;gs("0x1f")==t[gs("0x4")]&&c[gs("0xc")](e)&&!c[gs("0x5")](e)&&(e.nextSibling||a[gs("0xe")]?l&&l[gs("0x21")]==e||(l=e,m(t[gs("0x12")]),g=!0):u=u||t[gs("0x12")])}function m(t){const s=i[gs("0x1")].createUIElement(gs("0x20"),{class:gs("0x11")+e}),x=i[gs("0x8")][gs("0xf")](t);n&&o[gs("0x7")].includes(r.markerName)&&i[gs("0x1")][gs("0x18")](gs("0x23"),s),i.writer.insert(x,s),i[gs("0x8")][gs("0x1c")](s,r[gs("0x19")])}d||g||!u||m(u)}}const ps=["FORMAT_ITALIC","code","enableCommand","*Remove format:* %0","forceValue","BoldEditing","format","commandParams","getRanges","commandName","FORMAT_SUBSCRIPT","plugins","underline","commands","get","ItalicEditing","FORMAT_UNDERLINE","change","markInlineFormat","slice","CodeEditing","FORMAT_BOLD","from","toLowerCase","afterInit","subscript","UnderlineEditing","registerDescriptionCallback","_descriptionFactory","has","locale","bold","SuperscriptEditing","TrackChangesEditing","isCollapsed","model","SubscriptEditing","editor","FORMAT_SUPERSCRIPT","*Format:* %0","italic"];var bs,Es;bs=ps,Es=403,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0xc"),_s("0x16"),_s("0x21"),_s("0x1b"),"StrikethroughEditing",_s("0x2"),_s("0x27")];class Cs extends t.Plugin{[_s("0x1f")](){const t=this[_s("0x3")],e=t[_s("0x1")],n=t[_s("0x12")][_s("0x15")](_s("0x28")),o=t[_s("0x25")];for(const o of Ts){if(!t.plugins[_s("0x24")](o))continue;const s=o[_s("0x1a")](0,-7)[_s("0x1e")](),r=t[_s("0x14")][_s("0x15")](s);n[_s("0x9")](s,((t,o={})=>{const i=e.document.selection;if(i[_s("0x0")])return void t(o);const x=void 0!==o[_s("0xb")]?o[_s("0xb")]:!r.value;e[_s("0x18")]((()=>{const t=Array[_s("0x1d")](i[_s("0xf")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x19")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x23")][_s("0x22")]((n=>{const{data:s}=n;if(s&&s[_s("0x10")]===t)return s[_s("0xe")][0].forceValue?{type:_s("0xd"),content:Yo(o,_s("0x5"),e)}:{type:"format",content:Yo(o,_s("0xa"),e)}}))}s(_s("0x26"),Yo(o,_s("0x1c"))),s(_s("0x6"),Yo(o,_s("0x7"))),s(_s("0x13"),Yo(o,_s("0x17"))),s(_s("0x8"),Yo(o,"FORMAT_CODE")),s("strikethrough",Yo(o,"FORMAT_STRIKETHROUGH")),s(_s("0x20"),Yo(o,_s("0x11"))),s("superscript",Yo(o,_s("0x4")))}}const ys=["get","parent","registerDescriptionCallback","format","checkChild","model","getSelectedBlocks","blockQuote","$root","commandName","plugins","*Remove format:* %0","forceValue","enableCommand","document","value","editor","TrackChangesEditing","selection","commands","BlockQuoteEditing","afterInit","ELEMENT_BLOCK_QUOTE","has","change","from","schema","commandParams","markBlockFormat","filter","*Format:* %0"];var ks,As;ks=ys,As=479,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x7")](){const t=this.editor,e=t.locale;if(!t[vs("0x1b")][vs("0x9")](vs("0x6")))return;const n=t[vs("0x1b")][vs("0x11")](vs("0x3")),o=this[vs("0x2")][vs("0x5")][vs("0x11")](vs("0x18"));n[vs("0x1e")](vs("0x18"),((e,s={})=>{const r=this[vs("0x2")].model[vs("0x0")][vs("0x4")],i=s&&void 0!==s[vs("0x1d")]?s.forceValue:!o[vs("0x1")];let x=[];if(i){const e=Array[vs("0xb")](r[vs("0x17")]()).filter((t=>Ss(t)||function(t,e){const n=e[vs("0x15")](t[vs("0x12")],"blockQuote"),o=e[vs("0x15")]([vs("0x19"),vs("0x18")],t);return n&&o}(t,this.editor[vs("0x16")][vs("0xc")])));x=S(e,t.model)}else{const e=Array[vs("0xb")](r[vs("0x17")]())[vs("0xf")]((t=>Ss(t)));x=S(e,t[vs("0x16")])}t[vs("0x16")][vs("0xa")]((()=>{for(const t of x)n[vs("0xe")](t,{commandName:vs("0x18"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0x13")]((t=>{const{data:n}=t;if(n&&vs("0x18")==n[vs("0x1a")]){const t=Yo(e,vs("0x8"));return n[vs("0xd")][0][vs("0x1d")]?{type:vs("0x14"),content:Yo(e,vs("0x10"),t)}:{type:vs("0x14"),content:Yo(e,vs("0x1c"),t)}}}))}}function Ss(t){return vs("0x18")==t[vs("0x12")].name}const Is=["commands","editor","TrackChangesEditing","get","enableCommand","ckbox","plugins"];var Ls,Ns;Ls=Is,Ns=455,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const ws=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{afterInit(){const t=this[ws("0x1")];t[ws("0x0")][ws("0x3")](ws("0x5"))&&t[ws("0x6")][ws("0x3")](ws("0x2"))[ws("0x4")]("ckbox")}}const Os=["commandName","selection","registerDescriptionCallback","ELEMENT_CODE_BLOCK","plugins","_descriptionFactory","parent","has","value","commandParams","name","config","isLimit","commands","find","model","checkChild","format","language","rootElement","forceValue","from","getSelectedBlocks","indentCodeBlock","enableCommand","filter","codeBlock","get","label","*Remove format:* %0","formatBlock","registerElementLabel","locale","document","outdentCodeBlock","afterInit"];var Fs,Ps;Fs=Os,Ps=218,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x21")](){const t=this.editor;if(!t[Ds("0x2")][Ds("0x5")]("CodeBlock"))return;const e=t[Ds("0x2")][Ds("0x19")]("TrackChangesEditing"),n=t[Ds("0x1e")],o=t[Ds("0x9")][Ds("0x19")](Ds("0x18")).languages,s=t[Ds("0xb")][Ds("0x19")](Ds("0x18"));e.enableCommand(Ds("0x15")),e[Ds("0x16")](Ds("0x20")),e.enableCommand(Ds("0x18"),((n,r={})=>{const i=t[Ds("0xd")],x=t[Ds("0xd")][Ds("0x1f")][Ds("0x23")],a=r&&void 0!==r[Ds("0x12")]?r[Ds("0x12")]:!s[Ds("0x6")];let c;r[Ds("0x10")]||(r[Ds("0x10")]=o[0][Ds("0x10")]),c=a?Array[Ds("0x13")](x[Ds("0x14")]()).filter((t=>{return js(t)||(e=t,n=i.schema,!e.is(Ds("0x11"))&&!n[Ds("0xa")](e)&&n[Ds("0xe")](e[Ds("0x4")],Ds("0x18")));var e,n})):Array.from(x[Ds("0x14")]())[Ds("0x17")]((t=>js(t)));const l=S(c,i);i.change((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Ds("0x18"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e._descriptionFactory[Ds("0x1d")](Ds("0x18"),(t=>Yo(n,Ds("0x1"),t))),e[Ds("0x3")][Ds("0x0")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x1c")==s&&r&&Ds("0x18")==r[Ds("0x22")]){const t=r[Ds("0x7")][0].language,s=e(o[Ds("0xc")]((e=>e[Ds("0x10")]===t))[Ds("0x1a")]);return r[Ds("0x7")][0].forceValue?{type:"format",content:Yo(n,"*Format:* %0",Yo(n,Ds("0x1"),1)+" ("+s+")")}:{type:Ds("0xf"),content:Yo(n,Ds("0x1b"),Yo(n,Ds("0x1"),1))}}}))}}function js(t){return Ds("0x18")==t[Ds("0x8")]}const Us=["afterInit","TrackChangesEditing","has","addCommentThread","plugins","editor","enableCommand","CommentsEditing"];var Gs,Hs;Gs=Us,Hs=460,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x4")](){const t=this[zs("0x1")];t[zs("0x0")][zs("0x6")](zs("0x3"))&&t[zs("0x0")].get(zs("0x5"))[zs("0x2")](zs("0x7"))}}var Vs=n(181);const Ks=["TrackChangesEditing","model","$graveyard","buffer","plugins","removeMarker:suggestion:deletion","unit","selection","mapper","setSelection","high","markerName","commands","init","get","detach","createSelection","getFirstRange","addMarker:suggestion:deletion","deleteForward","delete","isCollapsed","fromRange","editor","createRange","start","data","remove","writer","merge","downcastDispatcher","enableCommand","uiElement","unbindElementFromMarkerName","showSuggestionHighlights","forward","modifySelection","editing"];var qs,Xs;qs=Ks,Xs=382,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get requires(){return[Vs.Delete]}[$s("0xb")](){const t=this[$s("0x15")],e=t[$s("0x2")][$s("0xc")]($s("0x24"));e[$s("0x1d")]($s("0x12"));const n=t[$s("0xa")][$s("0xc")]($s("0x11"));e.enableCommand($s("0x11"),((e,o={})=>{const s=t[$s("0x25")][$s("0xe")](t[$s("0x25")].document[$s("0x5")]);s[$s("0x13")]&&t[$s("0x25")][$s("0x22")](s,{direction:$s("0x21"),unit:o[$s("0x4")]});const r=s[$s("0xf")](),x=i.LiveRange[$s("0x14")](r);let a;e(o),a=$s("0x0")==x.root.rootName?t[$s("0x25")][$s("0x16")](r.start):t.model.createRange(x[$s("0x17")],x.end),x[$s("0xd")](),t[$s("0x25")].enqueueChange(n[$s("0x1")].batch,(t=>{n[$s("0x1")].lock(),t[$s("0x7")](t.createRange(a.end)),n[$s("0x1")].unlock()}))})),t[$s("0x23")].downcastDispatcher.on($s("0x10"),hs(t,$s("0x1b")),{priority:$s("0x8")}),t[$s("0x18")][$s("0x1c")].on($s("0x10"),((e,n,o)=>{o.options[$s("0x20")]&&hs(t,$s("0x1b"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:$s("0x8")}),t[$s("0x23")][$s("0x1c")].on($s("0x3"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e.markerName);if(o)for(const t of o)t.is($s("0x1e"))&&(n[$s("0x6")][$s("0x1f")](t,e[$s("0x9")]),n[$s("0x1a")][$s("0x19")](t))}),{priority:$s("0x8")})}}const Qs=["enableCommand","multipleBlocks","ELEMENT_NUMBERED_LIST","commandParams","before","DocumentListUtils","deletion","listIndent","next","start","editor","format","*Change to:* %0","documentList","commands","createPositionAt","fromRange","afterInit","hasAttribute","execute","isObject","registerDescriptionCallback","value","isFirstBlockOfListItem","*Indent:* %0","get","length","nodeAfter","end","outdentList","containsItem","mergeListItemBackward","bulletedList","plugins","ELEMENT_LIST_ITEM","getAttribute","listType","createRange","markMultiRangeBlockFormat","selection","formatBlock","expandListBlocksToCompleteList","commandName","_suggestionFactory","detach","locale","slice","document","getFirstRange","setSelection","*Format:* insert into %0","map","has","_LIST","registerElementLabel","ELEMENT_BULLETED_LIST","mergeListItemForward","_descriptionFactory","refresh","markBlockFormat","schema","change","*Outdent:* %0","*Format:* remove from %0","after","getRanges","add","numberedList","indentList","model","push","splitListItemAfter","nextSibling","toUpperCase","TrackChangesEditing","forceValue","splitListItemBefore","getSelectedBlocks","listItemId","from"];var Zs,Ys;Zs=Qs,Ys=143,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x22")](){const t=this[tr("0x1b")];if(!t[tr("0x32")][tr("0x45")]("DocumentListEditing"))return;const e=t[tr("0x3e")],n=t[tr("0x32")][tr("0x2a")](tr("0xb")),o=t.plugins[tr("0x2a")](tr("0x16"));function s(e){return()=>{const s=t[tr("0x1f")][tr("0x2a")](e);let r=Array[tr("0x10")](t[tr("0x6")][tr("0x40")][tr("0x38")][tr("0xe")]());if(a(e)){r=o[tr("0x3a")](r);const t=[];for(const e of r)o[tr("0x28")](e)&&t.push(e);r=t}t[tr("0x6")][tr("0x4e")]((()=>{n[tr("0x37")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x27")]}],formatGroupId:"listType"},[],tr("0x1e"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x10")](t);const n=e.findIndex((t=>!t[tr("0x23")]("listItemId")));return n>-1&&(e=e[tr("0x3f")](0,n)),e}(t[tr("0x6")][tr("0x40")][tr("0x38")].getSelectedBlocks()),s=o[o[tr("0x2b")]-1],r=t[tr("0x6")][tr("0x4d")][tr("0x25")](s)?tr("0x1"):tr("0x2d"),i=t.model[tr("0x36")](t[tr("0x6")][tr("0x20")](o[0],tr("0x15")),t.model[tr("0x20")](s,r));t[tr("0x6")][tr("0x4e")]((()=>{n[tr("0x4c")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x35")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x9")];for(;t&&t[tr("0x34")](tr("0x18"))>n.getAttribute(tr("0x18"));)e[tr("0x3")](t),t=t[tr("0x9")]}return Array[tr("0x10")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x6")][tr("0x40")][tr("0x38")].getSelectedBlocks()[tr("0x19")]().value,s=t.model[tr("0x20")](o,"before"),r=t.model[tr("0x20")](o,0),i=t[tr("0x6")][tr("0x36")](s,r);t[tr("0x6")].change((()=>{n[tr("0x4c")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x35")})}))}}function a(e){const n=t[tr("0x1f")][tr("0x2a")](tr("0x31"))[tr("0x27")],o=t.commands.get("numberedList")[tr("0x27")];return tr("0x4")===e?n:o}n[tr("0x11")](tr("0x4"),s(tr("0x4"))),n[tr("0x11")](tr("0x31"),s(tr("0x31"))),n[tr("0x11")](tr("0x5"),r(tr("0x5"))),n[tr("0x11")](tr("0x2e"),r(tr("0x2e"))),n[tr("0x11")](tr("0x8"),x(tr("0x8"))),n.enableCommand(tr("0xd"),x(tr("0xd"))),n[tr("0x4a")][tr("0x47")]((function(e){const n=!t[tr("0x6")][tr("0x4d")][tr("0x25")](e),o=e.previousSibling,s=e[tr("0x9")],r=e[tr("0x34")](tr("0xf")),i=!o||o[tr("0x34")](tr("0xf"))!==r,x=!s||s.getAttribute(tr("0xf"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x33"),t))),n._descriptionFactory[tr("0x26")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x3b")]){case tr("0x31"):r=n[tr("0x14")][0].forceValue,i=a(n[tr("0x3b")]),o=r?"*Format:* insert into %0":tr("0x0"),i&&(o=tr("0x1d")),s={type:tr("0x1c"),content:Yo(e,o,Yo(e,tr("0x48")))};break;case tr("0x4"):r=n[tr("0x14")][0][tr("0xc")],i=a(n[tr("0x3b")]),o=tr(r?"0x43":"0x0"),i&&(o="*Change to:* %0"),s={type:tr("0x1c"),content:Yo(e,o,Yo(e,tr("0x13")))};break;case tr("0x5"):o=tr("0x29"),s={type:tr("0x1c"),content:Yo(e,o,Yo(e,tr("0x33")))};break;case tr("0x2e"):o=function(t){const e=t[tr("0x41")]();let n=e[tr("0x1a")].nodeAfter;for(;n&&e[tr("0x2f")](n);){if(n[tr("0x34")]("listIndent")>0)return!1;n=n[tr("0x9")]}return!0}(t)?Yo(e,tr("0x0"),Yo(e,"ELEMENT_"+t.getFirstRange()[tr("0x1a")][tr("0x2c")][tr("0x34")](tr("0x35"))[tr("0xa")]()+tr("0x46"))):Yo(e,tr("0x4f"),Yo(e,tr("0x33"))),s={type:tr("0x1c"),content:o};break;case tr("0x30"):case tr("0x49"):!1===n[tr("0x12")]&&(o="*Merge:* %0",s={type:tr("0x17"),content:Yo(e,o,Yo(e,tr("0x33")))})}return s})),n[tr("0x3c")].registerCustomCallback(tr("0x39"),"documentList","accept",(function(e,n){const o=[];for(let n of e)n[tr("0x1a")].nodeAfter===n.end.parent&&(n=t[tr("0x6")][tr("0x36")](t[tr("0x6")].createPositionAt(n[tr("0x1a")][tr("0x2c")],0))),o[tr("0x7")](n);t[tr("0x6")][tr("0x4e")]((e=>{const s=t[tr("0x6")].document.selection,r=Array[tr("0x10")](s[tr("0x2")]())[tr("0x44")]((t=>i.LiveRange[tr("0x21")](t)));e[tr("0x42")](o),t[tr("0x1f")][tr("0x2a")](n.commandName)[tr("0x4b")](),n[tr("0x14")][tr("0x7")]({forceDefaultExecution:!0}),t[tr("0x24")](n.commandName,...n[tr("0x14")]),e.setSelection(r);for(const t of r)t[tr("0x3d")]()}))}))}}var nr=n(331);const or=["nextSibling","data","ck-suggestion-marker-split","removeMarker:suggestion:insertion","detach","mapper","plugins","createPositionAt","change","commands","markerNameToElements","getFirstPosition","bind","end","writer","hasClass","setSelection","addMarker:suggestion:insertion","downcastDispatcher","afterExecute","get","markerName","createRange","unbindElementFromMarkerName","model","editing","showSuggestionHighlights","remove","split","high","parent","init","getFirstRange","enter","enterBlock"];var sr,rr;sr=or,rr=289,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get requires(){return[nr.Enter]}[ir("0x16")](){const t=this.editor,e=t[ir("0x20")][ir("0xb")]("TrackChangesEditing"),n=t[ir("0x0")].get(ir("0x18"));e.enableCommand("enter",(()=>{t[ir("0xf")][ir("0x22")]((o=>{const s=t[ir("0xf")].document.selection,r=s[ir("0x2")](),x=i.LiveRange.fromRange(s[ir("0x17")]());if(n[ir("0x19")](o)){const n=t[ir("0xf")][ir("0x21")](r[ir("0x15")][ir("0x1a")],0),s=o[ir("0xd")](r,n);e.markInsertion(s)}else o[ir("0x7")](o[ir("0xd")](x[ir("0x4")]));x[ir("0x1e")](),n.fire(ir("0xa"),{writer:o})}))})),t[ir("0x10")][ir("0x9")].on("addMarker:suggestion:insertion",hs(t,ir("0x13")),{priority:"high"}),t[ir("0x10")].downcastDispatcher.on(ir("0x1d"),((t,e,n)=>{const o=n[ir("0x1f")][ir("0x1")](e[ir("0xc")]);if(o)for(const t of o)t[ir("0x6")](ir("0x1c"))&&(n.mapper[ir("0xe")](t,e.markerName),n[ir("0x5")][ir("0x12")](t))}),{priority:ir("0x14")}),t[ir("0x1b")][ir("0x9")].on(ir("0x8"),((e,n,o)=>{o.options[ir("0x11")]&&hs(t,ir("0x13"),{showActiveMarker:!1})[ir("0x3")](this)(e,n,o)}),{priority:ir("0x14")})}}const ar=["findByTextCallback","end","createRange","afterInit","bind","plugins","getRange","find","FindAndReplaceUtils","_isInDeletionRange","findNext","filter","model","getIntersection","enableCommand","handleFindCommand","start","string","createPositionAt","FindAndReplaceEditing","replaceAll","get","has","item","editor","getMarkersGroup","suggestion:deletion"];var cr,lr;cr=ar,lr=187,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0x5")](){if(!this[ur("0x1a")][ur("0x7")][ur("0x18")](ur("0x15")))return;const t=this[ur("0x1a")][ur("0x7")][ur("0x17")]("TrackChangesEditing");t[ur("0x10")](ur("0x9"),this[ur("0x11")][ur("0x6")](this)),t.enableCommand(ur("0xc")),t[ur("0x10")]("findPrevious"),t[ur("0x10")]("replace"),t.enableCommand(ur("0x16"))}[ur("0x11")](t,e,n={}){const o=this.editor[ur("0x7")][ur("0x17")](ur("0xa"));void 0!==n&&t((t=>(ur("0x13")==typeof e?o[ur("0x2")](e,n):e)(t)[ur("0xd")]((e=>!1===this[ur("0xb")](e,t[ur("0x19")])))),n)}[ur("0xb")](t,e){const n=this[ur("0x1a")][ur("0xe")][ur("0x4")](this[ur("0x1a")][ur("0xe")][ur("0x14")](e,t[ur("0x12")]),this[ur("0x1a")].model[ur("0x14")](e,t[ur("0x3")]));for(const t of this[ur("0x1a")][ur("0xe")].markers[ur("0x0")](ur("0x1")))if(null!==n[ur("0xf")](t[ur("0x8")]()))return!0;return!1}}const gr=["commandName","*Set font background color:* %0","from","FontBackgroundColorEditing","selection","commandParams","fontFamily","afterInit","*Set font size:* %0","change","toLowerCase","normalizeSizeOptions","get","TrackChangesEditing","_enableCommand","locale","*Reset font background color*","*Reset font size*","fontBackgroundColor","editor","FontSizeEditing","find","getRanges","fontColor.colors","has","FontColorEditing","*Reset font color*","model","FontFamilyEditing","*Set font family:* %0","config","title","label","format","*Set font color:* %0","registerDescriptionCallback","fontSize.options","value","enableCommand","markInlineFormat","isCollapsed","plugins","_descriptionFactory","fontColor"];var mr,fr;mr=gr,fr=209,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1f"),commandName:"fontSize"},{pluginName:hr("0x27"),commandName:hr("0x11")},{pluginName:hr("0x24"),commandName:hr("0xa")},{pluginName:hr("0xe"),commandName:hr("0x1d")}];class br extends t.Plugin{[hr("0x12")](){const t=this.editor[hr("0x1a")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x1e")][hr("0x8")][hr("0x23")](t)&&this[hr("0x19")](e);this[hr("0x1e")][hr("0x8")][hr("0x17")](hr("0x18"))[hr("0x9")][hr("0x2")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o.commandName){const e=o[hr("0x10")][0][hr("0x4")];if(e){const o=n(this[hr("0x1e")].plugins[hr("0x17")]("FontSize")[hr("0x16")](this[hr("0x1e")][hr("0x29")][hr("0x17")](hr("0x3")))[hr("0x20")]((t=>t[hr("0x26")]==e))[hr("0x2a")])[hr("0x15")]();return{type:hr("0x0"),content:Yo(t,hr("0x13"),o)}}return{type:hr("0x0"),content:Yo(t,hr("0x1c"))}}if(hr("0x11")==o[hr("0xb")]){const e=o[hr("0x10")][0][hr("0x4")];return e?{type:hr("0x0"),content:Yo(t,hr("0x28"),e)}:{type:"format",content:Yo(t,"*Reset font family*")}}if(hr("0xa")==o.commandName){const e=o[hr("0x10")][0][hr("0x4")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x29")].get(hr("0x22")))[hr("0x20")]((t=>t[hr("0x26")]==e));let r=e,i="";return o&&(r=o[hr("0x2b")],i=n(r)[hr("0x15")]()),{type:hr("0x0"),content:Yo(t,hr("0x1"),i).trim(),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x25"))}}if(hr("0x1d")==o[hr("0xb")]){const e=o.commandParams[0][hr("0x4")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x29")][hr("0x17")]("fontBackgroundColor.colors"))[hr("0x20")]((t=>t.model==e));let r=e,i="";return o&&(r=o[hr("0x2b")],i=n(r)[hr("0x15")]()),{type:hr("0x0"),content:Yo(t,hr("0xc"),i).trim(),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x1b"))}}}}))}[hr("0x19")](t){const e=this[hr("0x1e")];e[hr("0x8")][hr("0x17")]("TrackChangesEditing")[hr("0x5")](t,((n,o={})=>{const s=e[hr("0x26")].document[hr("0xf")],r=o[hr("0x4")];s[hr("0x7")]?n(o):e[hr("0x26")][hr("0x14")]((()=>{const n=Array[hr("0xd")](s[hr("0x21")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x26")]);for(const o of n)e[hr("0x8")][hr("0x17")](hr("0x18"))[hr("0x6")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["label","getRanges","fontSize","length","copyFormat","FontSize","push","getItems","toLowerCase","schema","getSelectedBlocks","model","markInlineFormat","selection","*Remove all formatting*","format","entries","fontColor.colors","boolean","forward","change","isFormatting","createSelection","_descriptionFactory","plugins","commands","createRange","*Set format to:* %0","modifySelection","commandName","registerDescriptionCallback","config","pasteFormat","normalizeSizeOptions","join","afterInit","keys","from","enableCommand","locale","TrackChangesEditing","commandParams","fontBackgroundColor","word","find","get","fontSize.options","isCollapsed","fontColor","title","getAttributes"];var _r,Tr;_r=Er,Tr=278,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0xc")](){const t=this.editor,n=t.model,o=n.document[Cr("0x29")],s=t[Cr("0x1")].get("TrackChangesEditing"),r=t[Cr("0x10")],i=t[Cr("0x2")][Cr("0x16")](Cr("0x20")),x=t[Cr("0x2")][Cr("0x16")](Cr("0x9"));i&&x&&(s[Cr("0xf")]("pasteFormat",((t,r={})=>{const i=r;n[Cr("0x30")]((()=>{const t=Array[Cr("0xe")](o[Cr("0x1d")]()),r=o[Cr("0x18")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x1b")]()){const t=e.getAttributeProperties(n);t&&t[Cr("0x31")]&&(yield n)}}(t,n));for(const e of t[Cr("0x1d")]())for(const t of e[Cr("0x23")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[Cr("0x26")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x25")]))||0!==Object[Cr("0xd")](i)[Cr("0x1f")])for(const t of r)s[Cr("0x28")](t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Cr("0x0")][Cr("0x7")]((e=>{const{data:n}=e;if(n&&Cr("0x9")===n[Cr("0x6")]){const e=[],o=n[Cr("0x12")][0];for(const[n,s]of Object[Cr("0x2c")](o))e[Cr("0x22")](Ar(t,n,s));return e.length?{type:"format",content:Yo(r,Cr("0x4"),e[Cr("0xb")](", "))}:{type:Cr("0x2b"),content:Yo(r,Cr("0x2a"))}}})),t[Cr("0x1")][Cr("0x16")](Cr("0x11"))[Cr("0xf")](Cr("0x20")))}}function kr(t,e){const n=t[Cr("0x32")](e);t[Cr("0x5")](n,{unit:Cr("0x14"),direction:"backward"});const o=n.getFirstPosition();t[Cr("0x5")](n,{unit:Cr("0x14"),direction:Cr("0x2f")});const s=n.getLastPosition();return t[Cr("0x3")](o,s)}function Ar(t,e,n){const o=t[Cr("0x10")].t,r=e.split(/(?=[A-Z])/)[Cr("0xb")](" "),i=o(r.charAt(0).toUpperCase()+r.slice(1))[Cr("0x24")]();if(Cr("0x2e")==typeof n)return i;if(Cr("0x19")===e||Cr("0x13")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x8")][Cr("0x16")](Cr("0x2d")))[Cr("0x15")]((t=>t[Cr("0x27")]==n));return i+" ("+(e?o(e[Cr("0x1c")]).toLowerCase():n)+")"}if(Cr("0x1e")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x1")].get(Cr("0x21"))[Cr("0xa")](t[Cr("0x8")][Cr("0x16")](Cr("0x17")))[Cr("0x15")]((t=>t[Cr("0x27")]==n));return i+" ("+(e?o(e[Cr("0x1a")])[Cr("0x24")]():n)+")"}return i+" ("+n+")"}const vr=["heading","ELEMENT_HEADING_CUSTOM","*Change to:* %0","get","title","markBlockFormat","ELEMENT_HEADING","formatBlock","blockName","name","commandParams","model","change","afterInit","enableCommand","HeadingEditing","value","heading.options","registerDescriptionCallback","config","TrackChangesEditing","locale","has","document","checkChild","find","plugins","format","filter","_descriptionFactory","match","editor","registerElementLabel"];var Rr,Sr;Rr=vr,Sr=171,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x7")](){const t=this[Ir("0x19")],e=t[Ir("0xf")],n=t[Ir("0xd")][Ir("0x1e")](Ir("0xb"));if(!t[Ir("0x14")][Ir("0x10")](Ir("0x9")))return;const o=t[Ir("0x14")].get(Ir("0xe"));o[Ir("0x8")](Ir("0x1b"),((e,n)=>{const s=n[Ir("0xa")],r=Array.from(this.editor.model[Ir("0x11")].selection.getSelectedBlocks())[Ir("0x16")]((t=>{return e=t,n=s,(o=this[Ir("0x19")][Ir("0x5")].schema)[Ir("0x12")](e.parent,n)&&!o.isObject(e)&&e[Ir("0x3")]!=n;var e,n,o}));t[Ir("0x5")][Ir("0x6")]((()=>{for(const t of r)o[Ir("0x20")](t,{commandName:"heading",commandParams:[n],formatGroupId:Ir("0x2")},fs(t))}))}));for(const t of n)"paragraph"!=t.model&&o[Ir("0x17")][Ir("0x1a")](t[Ir("0x5")],(e=>{const n=Nr(t[Ir("0x5")]);return null!==n?s(e,n):r(e,t[Ir("0x1f")])}));function s(t,n){return Yo(e,Ir("0x0"),[t,n])}function r(t,n){return Yo(e,Ir("0x1c"),[t,n])}o[Ir("0x17")][Ir("0xc")]((t=>{const{type:o,data:i}=t;if(Ir("0x1")==o&&i&&"heading"==i.commandName){const t=i[Ir("0x4")][0].value,o=Nr(t);if(null!==o)return{type:Ir("0x15"),content:Yo(e,"*Change to:* %0",s(1,o))};const x=n[Ir("0x13")]((e=>e[Ir("0x5")]===t))[Ir("0x1f")];return{type:Ir("0x15"),content:Yo(e,Ir("0x1d"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x18")](/^heading(\d+)$/);return e?e[1]:null}const wr=["enableCommand","*Remove highlight*","HighlightEditing","toLowerCase","editor","getAttribute","markInlineFormat","document","plugins","getRanges","hasAttribute","getLastMatchingPosition","title","change","format","afterInit","getFirstPosition","item","commandName","model","backward","_descriptionFactory","registerDescriptionCallback","value","selection","highlight","push","get","isCollapsed","createRange","FORMAT_HIGHLIGHT","has"];var Mr,Or;Mr=wr,Or=488,function(t){for(;--t;)Mr.push(Mr.shift())}(++Or);const Fr=function(t,e){return wr[t-=0]};class Pr extends t.Plugin{[Fr("0x7")](){const t=this[Fr("0x1c")];if(!t[Fr("0x0")][Fr("0x17")](Fr("0x1a")))return;const e=t[Fr("0x0")][Fr("0x13")]("TrackChangesEditing");e[Fr("0x18")](Fr("0x11"),((n,o={})=>{const s=t[Fr("0xb")][Fr("0x1f")][Fr("0x10")],r=s.getAttribute(Fr("0x11"));let i=o.value,x=[];if(s[Fr("0x14")]){const e=s[Fr("0x8")]();if(!s[Fr("0x2")](Fr("0x11")))return void n(o);{const n=t=>t[Fr("0x9")][Fr("0x1d")](Fr("0x11"))===r,o=e[Fr("0x3")](n,{direction:Fr("0xc")}),s=e[Fr("0x3")](n);x=[t[Fr("0xb")][Fr("0x15")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x1")]())i?x[Fr("0x12")](e):x[Fr("0x12")](...ms(Fr("0x11"),e,t.model));t[Fr("0xb")][Fr("0x5")]((()=>{for(const t of x)e[Fr("0x1e")](t,{commandName:Fr("0x11"),commandParams:[{value:i}]})}))}));const n=t.locale;e[Fr("0xd")][Fr("0xe")]((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&"highlight"==s[Fr("0xa")]){const e=n.t,o=s.commandParams[0][Fr("0xf")];if(o){const s=t.config[Fr("0x13")]("highlight.options").find((t=>t.model==o)),r=e(s[Fr("0x4")])[Fr("0x1b")]();return{type:Fr("0x6"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s.color,title:s[Fr("0x4")]}}}return{type:Fr("0x6"),content:Yo(n,Fr("0x19"),Yo(n,Fr("0x16")))}}}))}}const Dr=["createPositionAt","insert","showSuggestionHighlights","get","TrackChangesEditing","ELEMENT_HORIZONTAL_LINE","dataDowncast","createContainerElement","ck-horizontal-line","has","createEmptyElement","afterInit","addClass","high","horizontalLine","for","plugins","registerElementLabel","HorizontalLineEditing","div","enableCommand","conversion","_descriptionFactory","elementToStructure"];var Br,jr;Br=Dr,jr=280,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x13")](){const t=this.editor;if(!t[Ur("0x0")][Ur("0x11")](Ur("0x2")))return;t[Ur("0x0")].get(Ur("0xc"))[Ur("0x4")](Ur("0x16"));const e=t[Ur("0x0")][Ur("0xb")]("TrackChangesEditing"),n=t.locale;e[Ur("0x6")][Ur("0x1")]("horizontalLine",(t=>Yo(n,Ur("0xd"),t))),t[Ur("0x5")][Ur("0x17")](Ur("0xe"))[Ur("0x7")]({model:Ur("0x16"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0xa")])return null;const o=e[Ur("0xf")](Ur("0x3")),s=e[Ur("0x12")]("hr");return e[Ur("0x14")](Ur("0x10"),o),e[Ur("0x9")](e[Ur("0x8")](o,0),s),o},converterPriority:Ur("0x15")})}}const Hr=["value","markBlockFormat","selection","get","enableCommand","has","HtmlEmbed","rawHtml","registerDescriptionCallback","rawHtmlApi","*Change %0 content*","element","getCustomProperty","getSelectedElement","editing","plugins","_descriptionFactory","model","format","TrackChangesEditing","document"];var zr,Wr;zr=Hr,Wr=364,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[Vr("0x13")](Vr("0x14")))return;const e=t[Vr("0x8")][Vr("0x11")](Vr("0xc")),n=t.locale,o=t[Vr("0x7")].view[Vr("0xd")][Vr("0x10")];e[Vr("0x9")].registerElementLabel(Vr("0x0"),(t=>Yo(n,"ELEMENT_HTML_EMBED",t))),t.plugins[Vr("0x11")](Vr("0xc"))[Vr("0x12")]("htmlEmbed",((n,s)=>{const r=t[Vr("0xa")],i=r[Vr("0xd")][Vr("0x10")];r.change((()=>{const t=function(t){const e=t[Vr("0x6")]();return e&&e.is(Vr("0x4"),Vr("0x0"))?t[Vr("0x6")]():null}(i);if(!t)return void n(null);const r=t.getAttribute(Vr("0xe"))||"";void 0!==s&&s!==r&&(e[Vr("0xf")](t,{commandName:"htmlEmbed",commandParams:[s]}),o[Vr("0x6")]()[Vr("0x5")](Vr("0x2")).cancel())}))})),e[Vr("0x9")][Vr("0x1")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e.commandName){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0xb"),content:Yo(n,Vr("0x3"),t)}}}))}}const qr=["commandReversedParams","ELEMENT_IMAGE","getChangedMarkers","newValue","discardSuggestion","registerPostFixer","isIntersecting","isInlineImage","plugins","markInsertion","ImageCaptionUtils","*Reset image width*","registerElementLabel","commandName","markBlockFormat","markDeletion","imageBlock","from","ImageStyleEditing","Users","commandParams","imageStylePreApply","locale","Inline image to block image","_suggestionFactory","commands","_findSuggestions","*Remove image text alternative*","getAttribute","selection","detach","markInlineFormat","discard","length","differ","change","refresh","getSuggestions","filter","forward","ImageBlockEditing","ImageUploadEditing","registerDescriptionCallback","uploadImage","ELEMENT_CAPTION","toPrevious","formatBlock","imageCaption","nodeAfter","getFirstRange","fromPosition","hasAttribute","width","end","imageTypeBlock","imageTextAlternative","isBefore","formatInline","imageTypeInline","title","ImageEditing","getClosestSelectedImageElement","imageStyle","convertBlockImageToInline","isOwn","type","caption","side","value","*Set image text alternative:* %0","head","getCaptionFromImageModelElement","schema","isEqual","createRange","ImageUtils","registerCustomCallback","hasSuggestion","document","convertInlineImageToBlock","_descriptionFactory","subType","chain","join","previous","author","backward","toggleImageCaption","has","getSuggestionCallback","*Format:* %0","ImageTextAlternativeEditing","enableCommand","getSuggestion","TrackChangesEditing","toNext","isBlockImage","nodeBefore","getContainedElement","isInContent","_splitMarkerName","accept","model","start","insertion","isCollapsed","format","deletion","findIndex","next","find","get","newRange","getNearestSelectionRange","imageStylePostApply","alt","resizeImage","forceDefaultExecution","name","createRangeOn"];var Xr,$r;Xr=qr,$r=168,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this.editor;if(!t[Jr("0x50")][Jr("0x28")](Jr("0xc")))return;const n=t[Jr("0x50")].get(Jr("0x2e")),o=t[Jr("0x50")][Jr("0x3f")](Jr("0x1b")),s={},r=t[Jr("0x5e")];if(n[Jr("0x2c")]("insertImage"),n._descriptionFactory[Jr("0x54")](Jr("0x58"),(t=>Yo(r,Jr("0x49"),t))),n._descriptionFactory[Jr("0x54")]("imageInline",(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[Jr("0x20")][Jr("0x54")](Jr("0x12"),(()=>Yo(r,Jr("0x74")))),t[Jr("0x50")][Jr("0x28")](Jr("0x71"))&&n[Jr("0x2c")](Jr("0x73")),t[Jr("0x50")].has(Jr("0x70"))&&t[Jr("0x50")][Jr("0x28")]("ImageInlineEditing")&&(n[Jr("0x2c")](Jr("0xa"),((e,s)=>{const r=o[Jr("0xd")](t[Jr("0x36")][Jr("0x1e")][Jr("0x65")]);t[Jr("0x36")][Jr("0x6b")]((()=>{n[Jr("0x56")](r,{commandName:"imageTypeInline",commandParams:[s]},[],Jr("0xf"))}))})),n[Jr("0x2c")]("imageTypeBlock",((e,s)=>{t[Jr("0x36")].change((r=>{let x=o[Jr("0xd")](t[Jr("0x36")][Jr("0x1e")].selection),a=r[Jr("0x47")](x);const c=i.LivePosition[Jr("0x2")](a[Jr("0x37")],Jr("0x75")),l=i.LivePosition[Jr("0x2")](a[Jr("0x5")],Jr("0x2f"));n[Jr("0x45")]((()=>e(s))),x=o[Jr("0xd")](t[Jr("0x36")].document[Jr("0x65")]),a=r[Jr("0x47")](x);const u=r[Jr("0x1a")](c,l);c[Jr("0x66")](),l[Jr("0x66")](),n[Jr("0x56")](x,{commandName:"imageTypeInline",commandParams:[]},[],"convertInlineImageToBlock"),u[Jr("0x37")][Jr("0x8")](a.start)&&n[Jr("0x51")](r[Jr("0x1a")](u[Jr("0x37")],a[Jr("0x37")]),Jr("0x1f")),a[Jr("0x5")][Jr("0x8")](u[Jr("0x5")])&&n[Jr("0x51")](r.createRange(a[Jr("0x5")],u.end),Jr("0x1f"))}))})),n._suggestionFactory[Jr("0x1c")](Jr("0x76"),Jr("0x1f"),Jr("0x23"),(()=>{})),n[Jr("0x60")][Jr("0x1c")](Jr("0x76"),Jr("0x1f"),"accept",(()=>{})),n[Jr("0x60")][Jr("0x1c")](Jr("0x76"),Jr("0x1f"),"discard",n[Jr("0x60")][Jr("0x29")]("formatBlock","",Jr("0x35"))),n[Jr("0x60")].registerCustomCallback(Jr("0x38"),"convertInlineImageToBlock",Jr("0x23"),(()=>{})),n[Jr("0x60")].registerCustomCallback(Jr("0x38"),Jr("0x1f"),Jr("0x68"),(([e])=>{const o=n[Jr("0x60")].getSuggestionCallback(Jr("0x38"),"",Jr("0x68"));let s=e.start,r=e[Jr("0x5")];const i=t.model.schema.getNearestSelectionRange(s,Jr("0x26")),x=t[Jr("0x36")][Jr("0x18")][Jr("0x41")](r,Jr("0x6f"));i[Jr("0x39")]&&(s=i.start),x.isCollapsed&&(r=x[Jr("0x5")]),o([t[Jr("0x36")][Jr("0x1a")](s,r)])})),n[Jr("0x60")].registerCustomCallback("formatBlock",Jr("0x1f"),"chain",c),n[Jr("0x60")][Jr("0x1c")](Jr("0x38"),Jr("0x1f"),"chain",c)),t[Jr("0x50")].has("ImageCaptionEditing")&&(n.enableCommand(Jr("0x27"),((e,s)=>{const r=t[Jr("0x50")][Jr("0x3f")](Jr("0x52"));let i=o.getClosestSelectedImageElement(t[Jr("0x36")][Jr("0x1e")][Jr("0x65")]),x=r[Jr("0x17")](i);t.model[Jr("0x6b")]((()=>{if(x)return void n[Jr("0x57")](t[Jr("0x36")].createRangeOn(x));const a=o[Jr("0x30")](i);e(s),i=o[Jr("0xd")](t[Jr("0x36")][Jr("0x1e")][Jr("0x65")]),x=r.getCaptionFromImageModelElement(i),n[Jr("0x51")](t.model[Jr("0x47")](x),a?null:Jr("0x77"))}))})),n._suggestionFactory.registerCustomCallback(Jr("0x38"),Jr("0x77"),Jr("0x22"),c)),t.plugins[Jr("0x28")](Jr("0x5a"))){n[Jr("0x2c")](Jr("0xe"),((s,r)=>{const i=t[Jr("0x50")][Jr("0x3f")](Jr("0x5b")).me,x=t[Jr("0x61")].get(Jr("0xe"));let a=o[Jr("0xd")](t[Jr("0x36")][Jr("0x1e")][Jr("0x65")]),c=t[Jr("0x36")][Jr("0x47")](a),l=x.value;if(l==r[Jr("0x14")])return;const u={commandName:Jr("0xe"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x36")][Jr("0x6b")]((()=>{if(n[Jr("0x6d")]()[Jr("0x6e")]((t=>t[Jr("0x33")]&&i==t[Jr("0x25")]&&(Jr("0x76")==t[Jr("0x11")]||Jr("0x9")==t[Jr("0x11")])&&("imageStylePreApply"==t.subType||Jr("0x42")==t[Jr("0x21")])&&t[Jr("0x1")]().isEqual(c))).forEach((t=>n.discardSuggestion(t[Jr("0x16")]))),a=o[Jr("0xd")](t.model[Jr("0x1e")][Jr("0x65")]),c=t[Jr("0x36")][Jr("0x47")](a),x[Jr("0x6c")](),t[Jr("0x61")][Jr("0x3f")]("imageTypeInline")[Jr("0x6c")](),t[Jr("0x61")][Jr("0x3f")](Jr("0x6")).refresh(),l=x[Jr("0x14")],l!=r[Jr("0x14")])return o[Jr("0x4f")](a)&&x.shouldConvertImageType(r[Jr("0x14")],a)?(s(r),a=o.getClosestSelectedImageElement(t[Jr("0x36")][Jr("0x1e")][Jr("0x65")]),void n[Jr("0x56")](a,{...u,commandReversedParams:[{value:l||null}]},[],Jr("0x5d"))):void(o[Jr("0x30")](a)?n[Jr("0x56")](a,u,[],"imageStylePostApply"):n[Jr("0x67")](c,u,Jr("0x42")))}))}));for(const e of t.plugins[Jr("0x3f")](Jr("0x5a")).normalizedStyles)s[e[Jr("0x46")]]=e[Jr("0xb")].toLowerCase();n[Jr("0x60")].registerCustomCallback(Jr("0x76"),Jr("0x5d"),Jr("0x23"),(()=>{})),n[Jr("0x60")][Jr("0x1c")]("formatBlock",Jr("0x42"),Jr("0x23"),(()=>{})),n[Jr("0x60")][Jr("0x1c")](Jr("0x9"),Jr("0x42"),Jr("0x23"),(()=>{})),n._suggestionFactory[Jr("0x1c")](Jr("0x76"),Jr("0x5d"),"accept",(()=>{})),n[Jr("0x60")].registerCustomCallback("formatBlock",Jr("0x5d"),"discard",((t,e)=>{n[Jr("0x60")][Jr("0x29")]("formatBlock","","accept")(t,{commandName:e.commandName,commandParams:e[Jr("0x48")]})})),n._suggestionFactory[Jr("0x1c")]("formatBlock",Jr("0x5d"),Jr("0x22"),c)}const x=[{type:Jr("0x76"),subType:"imageStylePreApply"},{type:Jr("0x38"),subType:Jr("0x77")},{type:Jr("0x76"),subType:"convertInlineImageToBlock"},{type:Jr("0x38"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t.type==e&&t.subType==n)),r=x[Jr("0x3c")]((({type:t,subType:n})=>e[Jr("0x11")]==t&&e[Jr("0x21")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x1")](),a=e[Jr("0x1")]();if((0==s||1==s)&&2==r&&i[Jr("0x4e")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x62")](i,"insertion")[Jr("0x6e")]((({suggestion:t,meta:e})=>e[Jr("0x10")]&&"convertInlineImageToBlock"==t[Jr("0x21")]));if(t[Jr("0x69")]>1&&a[Jr("0x5")][Jr("0x19")](i[Jr("0x37")]))return!0;if(1==t.length&&(i[Jr("0x37")][Jr("0x19")](a[Jr("0x5")])||i[Jr("0x5")][Jr("0x19")](a[Jr("0x37")])))return!0}if(3==s&&3==r&&i.start[Jr("0x8")](a[Jr("0x37")])){const t=i[Jr("0x5")][Jr("0x0")],e=a[Jr("0x37")][Jr("0x31")];return o[Jr("0x30")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x36")][Jr("0x1e")][Jr("0x4d")]((()=>{let e=!1;const s=Array[Jr("0x59")](t[Jr("0x36")][Jr("0x1e")][Jr("0x6a")][Jr("0x4a")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x34")](t);if("suggestion"==s&&n[Jr("0x1d")](a)){if(Jr("0x76")==i&&(Jr("0x5d")==x||"imageStylePostApply"==x)){const t=n.getSuggestion(a);if(r[Jr("0x40")]){const s=t.getFirstRange()[Jr("0x32")]();if(o[Jr("0x30")](s))continue;n.discardSuggestion(t),e=!0}}if(Jr("0x38")==i&&Jr("0x77")==x&&!r.newRange){const t=n[Jr("0x2d")](a);t[Jr("0x3d")]&&t[Jr("0x3d")][Jr("0x33")]&&(n[Jr("0x4c")](t[Jr("0x3d")]),e=!0)}}}return e})),t[Jr("0x50")][Jr("0x28")]("ImageResize")&&n[Jr("0x2c")](Jr("0x44"),((e,s)=>{const r=o[Jr("0xd")](t.model.document[Jr("0x65")]);r[Jr("0x64")](Jr("0x4"))!=s.width&&t.model[Jr("0x6b")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x44"),commandParams:[s]})}))})),t[Jr("0x50")][Jr("0x28")](Jr("0x2b"))&&n.enableCommand("imageTextAlternative",((e,s)=>{const r=o[Jr("0xd")](t[Jr("0x36")][Jr("0x1e")][Jr("0x65")]);(r[Jr("0x3")](Jr("0x43"))?r.getAttribute(Jr("0x43")):"")!=s[Jr("0x4b")]&&t[Jr("0x36")].change((()=>{n.markBlockFormat(r,{commandName:Jr("0x7"),commandParams:[s]})}))})),n[Jr("0x20")][Jr("0x72")]((t=>{if(x[Jr("0x3e")]((({type:e,subType:n})=>t[Jr("0x11")]==e&&t.subType==n)))return t[Jr("0x24")]?{}:void 0})),n[Jr("0x20")].registerDescriptionCallback((t=>{if(Jr("0x38")==t[Jr("0x11")]||Jr("0x3b")==t[Jr("0x11")]){const e=t[Jr("0x32")]();if(e&&e.is("element",Jr("0x12")))return{type:Jr("0x38")==t[Jr("0x11")]?"addObject":"removeObject",element:e,quantity:1}}})),n._descriptionFactory.registerDescriptionCallback((t=>Jr("0x76")==t[Jr("0x11")]&&Jr("0x1f")==t[Jr("0x21")]?{type:Jr("0x3a"),content:Jr("0x5f")}:Jr("0x76")==t[Jr("0x11")]&&"convertBlockImageToInline"==t[Jr("0x21")]?{type:Jr("0x3a"),content:"Block image to inline image"}:void 0)),n[Jr("0x20")][Jr("0x72")]((t=>{const{data:e}=t;if(e){if(Jr("0xe")==e[Jr("0x55")]){const t=e[Jr("0x5c")][0].value;return n=Jr("0x13")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Jr("0x3a"),content:Yo(r,Jr("0x2a"),n)}}if("imageTextAlternative"==e[Jr("0x55")]){const t=e[Jr("0x5c")][0][Jr("0x4b")];return t?{type:Jr("0x3a"),content:Yo(r,Jr("0x15"),'"'+t+'"')}:{type:Jr("0x3a"),content:Yo(r,Jr("0x63"))}}if(Jr("0x44")==e[Jr("0x55")]){const t=e.commandParams[0][Jr("0x4")];return t?{type:Jr("0x3a"),content:Yo(r,"*Set image width:* %0",t)}:{type:"format",content:Yo(r,Jr("0x53"))}}}var n}))}}const Zr=["getAttribute","formatBlock","author","discard","has","replaceImageSource","handleSuggestionDescription","model","selection","getContainedElement","registerCustomCallback","change","src","document","data","Users","registerDescriptionCallback","get","_suggestionFactory","editor","enableCommand","plugins","commandName","_descriptionFactory","accept","handleReplaceImageCommand","getSuggestionCallback","format","TrackChangesEditing","subType","ImageEditing"];var Yr,ti;Yr=Zr,ti=335,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0x19")][ei("0x1b")][ei("0xa")](ei("0x5")))return;const t=this.editor[ei("0x1b")][ei("0x17")](ei("0x3"));t[ei("0x1a")](ei("0xb"),((t,e)=>this[ei("0x0")](t,e))),t[ei("0x18")][ei("0x10")](ei("0x7"),ei("0xb"),ei("0x1e"),t._suggestionFactory[ei("0x1")](ei("0x7"),null,ei("0x9"))),t[ei("0x18")][ei("0x10")](ei("0x7"),"replaceImageSource","discard",t[ei("0x18")][ei("0x1")](ei("0x7"),null,ei("0x1e"))),t[ei("0x1d")][ei("0x16")]((t=>this[ei("0xc")](t)))}[ei("0x0")](t,e){const n=this[ei("0x19")][ei("0x1b")].get(ei("0x3")),o=this[ei("0x19")][ei("0xd")][ei("0x13")][ei("0xe")].getSelectedElement();this.editor[ei("0xd")][ei("0x11")]((()=>{let s=o[ei("0x6")](ei("0x12"));const r=this[ei("0x19")].plugins[ei("0x17")](ei("0x15")).me;for(const t of n.getSuggestions({skipNotAttached:!0})){const e=t[ei("0xf")]();if("replaceImageSource"===t[ei("0x4")]&&e===o){t[ei("0x8")]!==r&&t.discard(),s=t[ei("0x14")].commandParams[0].source;break}}t(e),n.markBlockFormat(o,{commandName:ei("0xb"),commandParams:[{source:s}]},[],ei("0xb"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&ei("0xb")===e[ei("0x1c")]){const t="*Format:* replace image URL";return{type:ei("0x2"),content:Yo(this.editor.locale,t)}}}}const oi=["editor","get","_trackChangesExecuted","importWord","trackChanges","_handleImportedData","_setSuggestionData","value","Users","plugins","TrackChangesEditing","track_changes","listenTo","collaboration_features","commands","execute","afterInit","forEach","dataInsert","high","lowest","_trackChangesValueDuringImport"];var si,ri;si=oi,ri=390,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0x5")]=!1,this[ii("0x8")]=!1}[ii("0x0")](){const t=this.editor,e=t[ii("0x14")][ii("0x7")](ii("0x9")),n=t[ii("0x14")][ii("0x7")](ii("0xa"));e&&(e.on(ii("0x15"),((t,[,e])=>{this[ii("0x5")]=n.value,e[ii("0x13")][ii("0x11")]=!this[ii("0x5")]}),{priority:ii("0x3")}),this[ii("0x12")](e,"dataInsert",this[ii("0xb")].bind(this)),this[ii("0x12")](e,ii("0x2"),(()=>{this[ii("0x8")]&&(n[ii("0x15")](),this[ii("0x8")]=!1)}),{priority:ii("0x4")}),t[ii("0xf")].get(ii("0x10")).enableCommand(ii("0x9")))}[ii("0xb")](t,e){const{suggestions:n}=e,o=this[ii("0x6")][ii("0x14")][ii("0x7")](ii("0xa")),s=o[ii("0xd")];this[ii("0x5")]!==s&&(o[ii("0x15")](),this[ii("0x8")]=!0),n&&n[ii("0x1")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x6")][ii("0xf")][ii("0x7")](ii("0xe")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x9")}}};this.editor.plugins[ii("0x7")](ii("0x10"))[ii("0xc")](s)}))}}const ai=["editor","*Indent:* %0","document","IndentEditing","_descriptionFactory","schema","afterInit","outdent","IndentBlock","enableCommand","*Outdent:* %0","getItems","indentBlock","has","getItemLabel","commandName","outdentBlock","locale","selection","model","getSelectedBlocks","get","plugins","registerDescriptionCallback"];var ci,li;ci=ai,li=153,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0x15")](){const t=this[ui("0xf")],e=t[ui("0xd")][ui("0xc")]("TrackChangesEditing");t[ui("0xd")][ui("0x4")](ui("0x12"))&&(e[ui("0x0")]("indent"),e[ui("0x0")](ui("0x16")));const n=t[ui("0x8")];if(t[ui("0xd")].has(ui("0x17"))){for(const n of[ui("0x3"),ui("0x7")])e[ui("0x0")](n,(()=>{const o=Array.from(this[ui("0xf")][ui("0xa")][ui("0x11")][ui("0x9")][ui("0xb")]()).filter((t=>this.editor.model[ui("0x14")].checkAttribute(t,"blockIndent")));t[ui("0xa")].change((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0x3")})}))}));e[ui("0x13")][ui("0xe")]((t=>{const{data:o}=t;if(!o)return;if(ui("0x3")!=o[ui("0x6")]&&ui("0x7")!=o.commandName)return;const s=t[ui("0x2")]()[0],r=e[ui("0x13")][ui("0x5")](s);return ui("0x3")==o[ui("0x6")]?{type:"format",content:Yo(n,ui("0x10"),r)}:ui("0x7")==o[ui("0x6")]?{type:"format",content:Yo(n,ui("0x1"),r)}:void 0}))}}}var gi,mi,fi=["get","plugins","TrackChangesEditing","init","enableCommand","requires","input","editor"];gi=fi,mi=134,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x7")](){return[Vs.Input]}[hi("0x5")](){this[hi("0x1")][hi("0x3")][hi("0x2")](hi("0x4"))[hi("0x6")](hi("0x0"))}}const bi=["*Set link:* %0","has","getFirstRange","from","link","selection","getAttribute","hasAttribute","unlink","format","enableCommand","commandParams","document","isCollapsed","change","commandName","editor","model","afterInit","*Remove link*","linkHref","get","LinkEditing","getFirstPosition","markInlineFormat","plugins"];var Ei,_i;Ei=bi,_i=168,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x6")](){const t=this[Ti("0x4")];if(!t[Ti("0xd")][Ti("0xf")](Ti("0xa")))return;const e=t[Ti("0xd")][Ti("0x9")]("TrackChangesEditing");e[Ti("0x18")](Ti("0x12"),((n,o)=>{const s=t[Ti("0x5")][Ti("0x0")].selection;let r=[];if(s[Ti("0x1")]){if(!s[Ti("0x15")](Ti("0x8")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xb")](),Ti("0x8"),s[Ti("0x14")](Ti("0x8")),t[Ti("0x5")]);r=[e]}}else r=Array[Ti("0x11")](s.getRanges());t[Ti("0x5")][Ti("0x2")]((()=>{for(const t of r)e[Ti("0xc")](t,{commandName:Ti("0x12"),commandParams:[o]})}))})),e[Ti("0x18")](Ti("0x16"),(()=>{const n=this[Ti("0x4")].model,o=n.document[Ti("0x13")];n[Ti("0x2")]((()=>{let n=[];n=o[Ti("0x1")]?[(0,Vs.findAttributeRange)(o[Ti("0xb")](),Ti("0x8"),o[Ti("0x14")](Ti("0x8")),t[Ti("0x5")])]:ms("linkHref",o[Ti("0x10")](),t[Ti("0x5")]);for(const t of n)e[Ti("0xc")](t,{commandName:Ti("0x16"),commandParams:[]})}))})),e._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x12")==n[Ti("0x3")]){const t=n[Ti("0x19")][0];return{type:"format",content:Yo(o,Ti("0xe"),'"'+t+'"')}}return Ti("0x16")==n.commandName?{type:Ti("0x17"),content:Yo(o,Ti("0x7"))}:void 0}}))}}const yi=["add","format","get","ELEMENT_BULLETED_LIST","execute","getSelectedBlocks","parent","from","*Outdent:* %0","_selectedElements","getAttribute","selection","*Change to:* %0","registerElementLabel","document","previousSibling","commandParams","name","length","commandName","afterInit","_descriptionFactory","schema","bulleted","commands","markBlockFormat","enableCommand","filter","nextSibling","checkTodoList","slice","checkChild","ELEMENT_LIST_ITEM","TrackChangesEditing","plugins","element","model","outdentList","replace","registerDescriptionCallback","numbered","ELEMENT_TODO_LIST","ELEMENT_NUMBERED_LIST","blockName","findIndex","TodoListEditing","editor","before","forceValue","has","numberedList","isObject","createPositionAt","listItem","listIndent","indentList","todoList","locale","paragraph","*Indent:* %0","change","value","bulletedList","ListEditing","*Check item*"];var ki,Ai;ki=yi,Ai=393,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x11")](){const t=this[vi("0x2b")],e=t[vi("0x36")];if(!t[vi("0x1f")][vi("0x2e")](vi("0x3c")))return;const n=t[vi("0x1f")][vi("0x40")](vi("0x1e")),o=t.plugins.has(vi("0x2a"));function s(e){return()=>{const o=t[vi("0x21")].document.selection,s=t[vi("0x15")][vi("0x40")](e);if(s.value)return void t[vi("0x1")](vi("0x37"),{});const r=e.slice(0,-4),i=function(t,e,n){let o=Array[vi("0x4")](t)[vi("0x18")]((t=>{return e=t,(o=n)[vi("0x1c")](e[vi("0x3")],vi("0x32"))&&!o[vi("0x30")](e);var e,o}));o=o[vi("0x18")]((t=>!t.is(vi("0x20"),vi("0x32"))||t[vi("0x7")]("listType")!=e));const s=new Set;for(const t of o)t.is(vi("0x20"),vi("0x32"))?s[vi("0x3e")](Si(t)):s.add(t);return Array[vi("0x4")](s)}(o[vi("0x2")](),r,t[vi("0x21")][vi("0x13")]);t[vi("0x21")][vi("0x39")]((()=>{for(const t of i)n[vi("0x16")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0x28")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[vi("0x29")]((t=>"listItem"!=t[vi("0xe")]));return n>-1&&(e=e[vi("0x1b")](0,n)),e}(t[vi("0x21")][vi("0xb")][vi("0x8")][vi("0x2")]()),s=t[vi("0x21")].createRange(t[vi("0x21")][vi("0x31")](o[0],vi("0x2c")),t[vi("0x21")][vi("0x31")](o[o[vi("0xf")]-1],"end"));t[vi("0x21")][vi("0x39")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:vi("0x33")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x19")];for(;t&&t[vi("0x7")](vi("0x33"))>n[vi("0x7")](vi("0x33"));)e[vi("0x3e")](t),t=t.nextSibling}return Array[vi("0x4")](e)}(o))}))}}n[vi("0x17")](vi("0x2f"),s(vi("0x2f"))),n[vi("0x17")](vi("0x3b"),s("bulletedList")),o&&n[vi("0x17")](vi("0x35"),s(vi("0x35"))),n[vi("0x17")](vi("0x34"),r("indentList")),n[vi("0x17")](vi("0x22"),r(vi("0x22"))),o&&n[vi("0x17")](vi("0x1a"),(()=>{const e=t.commands[vi("0x40")](vi("0x1a")),o=Array[vi("0x4")](e[vi("0x6")]);o[vi("0x18")]((t=>t[vi("0x7")]("todoListChecked")!=e[vi("0x3a")])),t.model[vi("0x39")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:vi("0x1a"),commandParams:[{forceValue:!e[vi("0x3a")]}]})}))})),n[vi("0x12")][vi("0xa")]("listItem",(t=>Yo(e,vi("0x1d"),t))),n[vi("0x12")][vi("0x24")]((t=>{const{data:n}=t;if(n){if(vi("0x2f")==n.commandName||vi("0x3b")==n[vi("0x10")]||"todoList"==n[vi("0x10")])switch(n[vi("0x10")][vi("0x23")]("List","")){case vi("0x14"):return o(Yo(e,vi("0x0")));case vi("0x25"):return o(Yo(e,vi("0x27")));case"todo":return o(Yo(e,vi("0x26")))}if(vi("0x34")==n[vi("0x10")])return{type:vi("0x3f"),content:Yo(e,vi("0x38"),Yo(e,vi("0x1d")))};if(vi("0x22")==n[vi("0x10")])return{type:vi("0x3f"),content:Yo(e,vi("0x5"),Yo(e,vi("0x1d")))};if(vi("0x1a")==n.commandName)return n[vi("0xd")][0][vi("0x2d")]?{type:vi("0x3f"),content:Yo(e,vi("0x3d"))}:{type:vi("0x3f"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:vi("0x3f"),content:Yo(e,vi("0x9"),t)}}}))}}function Si(t){const e=t[vi("0x7")](vi("0x33"));if(0==e)return t;let n=t;for(;t[vi("0xc")]&&t[vi("0xc")].is(vi("0x20"),"listItem");){const o=t[vi("0xc")].getAttribute(vi("0x33"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[vi("0xc")]}return n}function Ii(t){const e=[];if(t.is(vi("0x20"),vi("0x32"))&&t.getAttribute(vi("0x33"))>0){let n=t[vi("0x19")];for(;n&&vi("0x32")==n[vi("0xe")]&&n[vi("0x7")]("listIndent")==t[vi("0x7")](vi("0x33"));)e.push(n),n=n.nextSibling}return e}const Li=["ListPropertiesEditing","createRange","editor","enableCommand","handleListStyleCommand","config","ListUtils","has","startIndex","unshift","length","map","getFirstPosition","forward","backward","reversed","handleListStartCommand","filter","get","listReversed","parent","listItem","document","createPositionAt","bind","list.properties","change","TrackChangesEditing","element","listStart","listType","registerDescriptionCallback","handleListReversedCommand","toUpperCase","_getTranslationKeyForListStyle","_getSuggestionBlocksForListStyle","_descriptionFactory","getAttribute","commandParams","markMultiRangeBlockFormat","from","handleDescriptions","before","ELEMENT_","listStyle","model","numbered","replace","getListTypeFromListStyleType","selection","*Change to:* %0","type","getSelectedBlocks","_getSuggestionBlocks","getSiblingNodes","styles","plugins","commandName","locale","format"];var Ni,wi;Ni=Li,wi=500,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{afterInit(){if(!this[Mi("0x2a")][Mi("0x24")][Mi("0x2f")](Mi("0x28")))return;const t=this.editor[Mi("0x2d")][Mi("0x3a")](Mi("0x5")),e=this[Mi("0x2a")][Mi("0x24")][Mi("0x3a")](Mi("0x7"));t[Mi("0x23")]&&e[Mi("0x2b")](Mi("0x18"),this.handleListStyleCommand[Mi("0x4")](this)),t.reversed&&e[Mi("0x2b")]("listReversed",this[Mi("0xc")][Mi("0x4")](this)),t.startIndex&&e[Mi("0x2b")](Mi("0x9"),this[Mi("0x38")][Mi("0x4")](this)),e[Mi("0x10")][Mi("0xb")](this[Mi("0x15")].bind(this))}[Mi("0x2c")](t,e={}){const n=this.editor[Mi("0x24")][Mi("0x3a")](Mi("0x7")),o=this[Mi("0xf")]();this[Mi("0x2a")][Mi("0x19")][Mi("0x6")]((()=>{n[Mi("0x13")](o,{commandName:Mi("0x18"),commandParams:[{type:e[Mi("0x1f")]}],formatGroupId:"listStyle"})}))}[Mi("0xc")](t,e={}){const n=this[Mi("0x2a")][Mi("0x24")][Mi("0x3a")](Mi("0x7")),o=this[Mi("0x21")]((t=>t.is("element",Mi("0x1"))&&Mi("0x1a")===t[Mi("0x11")](Mi("0xa"))));if(o[Mi("0x32")]<1)return;const s=o[Mi("0x33")]((t=>this[Mi("0x2a")][Mi("0x19")][Mi("0x29")](this[Mi("0x2a")][Mi("0x19")].createPositionAt(t,Mi("0x16")),this[Mi("0x2a")].model.createPositionAt(t,0))));this[Mi("0x2a")][Mi("0x19")][Mi("0x6")]((()=>{n[Mi("0x13")](s,{commandName:Mi("0x3b"),commandParams:[{reversed:e[Mi("0x37")]}],formatGroupId:"listReversed"})}))}[Mi("0x38")](t,e={}){const n=this[Mi("0x2a")][Mi("0x24")].get("TrackChangesEditing"),o=this[Mi("0x21")]((t=>t.is(Mi("0x8"),Mi("0x1"))&&Mi("0x1a")===t[Mi("0x11")](Mi("0xa"))));if(o[Mi("0x32")]<1)return;const s=o[Mi("0x33")]((t=>this[Mi("0x2a")][Mi("0x19")].createRange(this[Mi("0x2a")][Mi("0x19")].createPositionAt(t,Mi("0x16")),this[Mi("0x2a")][Mi("0x19")][Mi("0x3")](t,0))));this[Mi("0x2a")][Mi("0x19")][Mi("0x6")]((()=>{n[Mi("0x13")](s,{commandName:Mi("0x9"),commandParams:[{startIndex:e[Mi("0x30")]}],formatGroupId:"listStart"})}))}[Mi("0x15")](t){const e=this[Mi("0x2a")][Mi("0x26")],{data:n}=t;if(!n)return;let o,s;switch(n[Mi("0x25")]){case Mi("0x18"):o=Mi("0x1e"),s={type:Mi("0x27"),content:Yo(e,o,Yo(e,this[Mi("0xe")](n[Mi("0x12")][0][Mi("0x1f")])))};break;case"listReversed":o=n[Mi("0x12")][0].reversed?"*Format:* set order to reversed":"*Format:* set order to regular",s={type:Mi("0x27"),content:Yo(e,o)};break;case"listStart":o="*Format:* set start index to %0",s={type:Mi("0x27"),content:Yo(e,o,n.commandParams[0][Mi("0x30")])}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this[Mi("0x2a")][Mi("0x24")][Mi("0x3a")](Mi("0x2e"));let r=Array[Mi("0x14")](this[Mi("0x2a")].model.document.selection[Mi("0x20")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Mi("0x8"),"listItem"))&&r[Mi("0x31")](...s.getSiblingNodes(this.editor[Mi("0x19")][Mi("0x2")][Mi("0x1d")][Mi("0x34")](),Mi("0x36"))),(null===(e=r[r[Mi("0x32")]-1])||void 0===e?void 0:e.is(Mi("0x8"),Mi("0x1")))&&r.push(...s[Mi("0x22")](this[Mi("0x2a")][Mi("0x19")][Mi("0x2")][Mi("0x1d")].getLastPosition(),Mi("0x35"))),r=[...new Set(r)],(null===(o=null===(n=this.editor[Mi("0x19")][Mi("0x2")].selection[Mi("0x34")]())||void 0===n?void 0:n[Mi("0x0")])||void 0===o?void 0:o.is("element",Mi("0x1")))&&(r=r[Mi("0x39")]((t=>t.is(Mi("0x8"),Mi("0x1"))))),r}_getSuggestionBlocks(t){const e=this[Mi("0x2a")][Mi("0x24")][Mi("0x3a")](Mi("0x2e"));let n=Array[Mi("0x14")](this[Mi("0x2a")][Mi("0x19")][Mi("0x2")][Mi("0x1d")][Mi("0x20")]()).filter(t)[Mi("0x33")]((t=>{const n=this[Mi("0x2a")].model.createPositionAt(t,0);return[...e[Mi("0x22")](n,"backward"),...e[Mi("0x22")](n,Mi("0x35"))]})).flat();return n=[...new Set(n)],n}[Mi("0xe")](t){return Mi("0x17")+this[Mi("0x2a")][Mi("0x24")][Mi("0x3a")]("ListUtils")[Mi("0x1c")](t).toUpperCase()+"_LIST_"+t[Mi("0xd")]()[Mi("0x1b")](/-/g,"_")}}const Fi=["downcastDispatcher","get","media","high","afterInit","mediaEmbed","options","attribute:url:media","stop","has","conversion","createEmptyElement","registerElementLabel","for","ELEMENT_MEDIA","elementToElement","showSuggestionHighlights","data","MediaEmbedEditing","_descriptionFactory"];var Pi,Di;Pi=Fi,Di=170,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xe")](){const t=this.editor;if(!t.plugins[Bi("0x13")](Bi("0x8")))return;const e=t.plugins[Bi("0xb")]("TrackChangesEditing"),n=t.locale;e.enableCommand(Bi("0xf")),e[Bi("0x9")][Bi("0x2")](Bi("0xc"),(t=>Yo(n,Bi("0x4"),t))),t[Bi("0x0")][Bi("0x3")]("dataDowncast")[Bi("0x5")]({model:Bi("0xc"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x6")])return e[Bi("0x1")]("div")},converterPriority:Bi("0xd")}),t[Bi("0x7")][Bi("0xa")].on(Bi("0x11"),((t,e,n)=>{n[Bi("0x10")].showSuggestionHighlights&&t[Bi("0x12")]()}),{priority:Bi("0xd")})}}const Ui=["plugins","TrackChangesEditing","afterInit","get","has","editor","enableCommand"];var Gi,Hi;Gi=Ui,Hi=124,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x4")](){const t=this[zi("0x0")];t[zi("0x2")][zi("0x6")]("MentionEditing")&&t[zi("0x2")][zi("0x5")](zi("0x3"))[zi("0x1")]("mention")}}const Vi=["enableCommand","pageBreak","PageBreakEditing","_descriptionFactory","editor","ELEMENT_PAGE_BREAK","has","plugins","get","afterInit","locale","registerElementLabel","TrackChangesEditing"];var Ki,qi;Ki=Vi,qi=264,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x5")](){const t=this[Xi("0x0")];if(!t[Xi("0x3")][Xi("0x2")](Xi("0xb")))return;t[Xi("0x3")][Xi("0x4")](Xi("0x8"))[Xi("0x9")](Xi("0xa"));const e=t.plugins[Xi("0x4")]("TrackChangesEditing"),n=t[Xi("0x6")];e[Xi("0xc")][Xi("0x7")](Xi("0xa"),(t=>Yo(n,Xi("0x1"),t)))}}const Ji=["document","getFirstRange","schema","end","mapper","registerDescriptionCallback","markerRange","filter","includes","nodeAfter","data","ELEMENT_PARAGRAPH","checkChild","locale","editor","editing","afterInit","Paragraph","_descriptionFactory","start","selection","markerName","*Change to:* %0","ck-suggestion-marker--active","options","span","from","addMarker:suggestion:insertion","get","highest","insertParagraph","insert","getItemLabel","bindElementToMarker","activeMarkers","type","has","insertion","isTouching","blockName","plugins","enableCommand","downcastDispatcher","*Insert:* %0","commandName","showSuggestionHighlights","markBlockFormat","parent","isObject","model","writer","isBlock","isLimit","change","name","paragraph"];var Qi,Zi;Qi=Ji,Zi=469,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x33")](){const t=this.editor;if(!t[Yi("0x13")][Yi("0xf")](Yi("0x34")))return;const e=t[Yi("0x30")],n=t[Yi("0x13")][Yi("0x7")]("TrackChangesEditing");n[Yi("0x35")].registerElementLabel(Yi("0x22"),(t=>Yo(e,Yi("0x2e"),t))),n[Yi("0x14")](Yi("0x22"),((e,o={})=>{const s=t[Yi("0x1c")][Yi("0x23")],r=o[Yi("0x37")]||s.selection,i=Array[Yi("0x5")](r.getSelectedBlocks())[Yi("0x2a")]((t=>{return e=t,(n=this[Yi("0x31")].model[Yi("0x25")])[Yi("0x2f")](e[Yi("0x1a")],Yi("0x22"))&&!n[Yi("0x1b")](e)&&Yi("0x22")!=e[Yi("0x21")];var e,n}));t[Yi("0x1c")][Yi("0x20")]((()=>{for(const t of i)n[Yi("0x19")](t,{commandName:"paragraph",commandParams:[],formatGroupId:Yi("0x12")},fs(t))}))})),n[Yi("0x35")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&"paragraph"==n[Yi("0x17")])return{type:"format",content:Yo(e,Yi("0x1"),Yo(e,Yi("0x2e")))}})),n[Yi("0x14")](Yi("0x9")),t[Yi("0x32")].downcastDispatcher.on(Yi("0x6"),ex(t),{priority:Yi("0x8")}),t[Yi("0x2d")][Yi("0x15")].on(Yi("0x6"),((e,n,o)=>{o[Yi("0x3")][Yi("0x18")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x8")});const o=n._descriptionFactory;o[Yi("0x28")]((n=>{if(Yi("0x10")!==n[Yi("0xe")])return;const{start:s,end:r}=n[Yi("0x24")]();if(!s[Yi("0x11")](r)||!s[Yi("0x2c")])return;const i=t[Yi("0x1c")][Yi("0x25")],x=s[Yi("0x2c")];return i[Yi("0x1e")](x)&&!i[Yi("0x1f")](x)&&i[Yi("0x2f")](x,"$text")?{type:Yi("0x10"),content:Yo(e,Yi("0x16"),o[Yi("0xb")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x13")][Yi("0x7")]("TrackChangesEditing"),i=o[Yi("0x29")][Yi("0x36")],x=o[Yi("0x29")][Yi("0x26")],a=t[Yi("0x1c")].schema;if(!i[Yi("0x11")](x)||!i[Yi("0x2c")])return;const c=i[Yi("0x2c")];if(a[Yi("0x1e")](c)&&!a[Yi("0x1f")](c)&&a.checkChild(c,"$text")){if(!s.consumable.consume(o[Yi("0x29")],n[Yi("0x21")]))return;const t=s[Yi("0x1d")].createUIElement(Yi("0x4"),{class:"ck-suggestion-marker-split"}),i=s[Yi("0x27")].toViewPosition(x);e&&r[Yi("0xd")][Yi("0x2b")](o[Yi("0x0")])&&s.writer.addClass(Yi("0x2"),t),s.writer[Yi("0xa")](i,t),s[Yi("0x27")][Yi("0xc")](t,o[Yi("0x0")])}}}const nx=["_descriptionFactory","schema","removeFormat","afterInit","isFormatting","selection","commandName","getAttributeProperties","document","has","*Remove all formatting*","model","isCollapsed","RemoveFormatEditing","change","plugins","registerDescriptionCallback","from","get","format","locale","enableCommand","getItems"];var ox,sx;ox=nx,sx=333,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0xf")](){const t=this.editor;if(!t[rx("0x4")][rx("0x15")](rx("0x2")))return;const e=t[rx("0x4")][rx("0x7")]("TrackChangesEditing");e[rx("0xa")](rx("0xe"),(n=>{const o=t.model[rx("0x14")][rx("0x11")];o[rx("0x1")]?n():t[rx("0x0")][rx("0x3")]((()=>{const n=Array[rx("0x6")](o.getRanges());for(const o of n)for(const n of o[rx("0xb")]())xx(n,t[rx("0x0")][rx("0xd")])&&e.markInlineFormat(t[rx("0x0")].createRangeOn(n),{commandName:"removeFormat",commandParams:[]})}))})),e[rx("0xc")][rx("0x5")]((e=>{const{data:n}=e;if(n&&rx("0xe")==n[rx("0x12")])return{type:rx("0x8"),content:Yo(t[rx("0x9")],rx("0x16"))}}))}}function xx(t,e){for(const[n]of t.getAttributes()){const t=e[rx("0x13")](n);if(t&&t[rx("0x10")])return!0}return!1}const ax=["acceptAllSuggestions","discardSuggestion","goToNextRestrictedEditingException","enableCommand","editor","trackChanges","plugins","has","goToPreviousRestrictedEditingException","get","RestrictedEditingModeEditing"];var cx,lx;cx=ax,lx=282,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{afterInit(){const t=this[ux("0x8")];if(!t[ux("0xa")][ux("0x0")](ux("0x3")))return;const e=t.plugins[ux("0x2")]("TrackChangesEditing");e[ux("0x7")](ux("0x1")),e[ux("0x7")](ux("0x6"));const n=t[ux("0xa")][ux("0x2")](ux("0x3"));n[ux("0x7")](ux("0x9")),n[ux("0x7")]("acceptSuggestion"),n[ux("0x7")](ux("0x5")),n[ux("0x7")](ux("0x4")),n[ux("0x7")]("discardAllSuggestions"),n[ux("0x7")]("acceptSelectedSuggestions"),n[ux("0x7")]("discardSelectedSuggestions")}}const gx=["enableCommand","locale","softBreak","merge","getItems","activeMarkers","init","markerRange","model","span","editing","mapper","get","insert","element","data","consumable","downcastDispatcher","shiftEnter","plugins","markerName","createPositionBefore","requires","_descriptionFactory","split","options","addMarker:suggestion:insertion","writer"];var mx,fx;mx=gx,fx=385,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x1")](){return[nr.ShiftEnter]}[hx("0xd")](){const t=this.editor,e=t.plugins.get("TrackChangesEditing");e[hx("0x7")](hx("0x19")),t[hx("0x11")][hx("0x18")].on(hx("0x5"),bx(t),{priority:"high"}),t[hx("0x11")].downcastDispatcher.on("addMarker:suggestion:deletion",bx(t),{priority:"high"}),t[hx("0x16")][hx("0x18")].on("addMarker:suggestion",((e,n,o)=>{o[hx("0x4")].showSuggestionHighlights&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x2")].registerElementLabel(hx("0x9"),(e=>Yo(t[hx("0x8")],"ELEMENT_LINE_BREAK",e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x1a")][hx("0x13")]("TrackChangesEditing");if(!s[hx("0x17")].test(o[hx("0xe")],n.name))return;const i=t[hx("0xf")];for(const t of o.markerRange[hx("0xb")]()){if(!t.is(hx("0x15"),hx("0x9")))continue;const n="deletion"==o.markerName.split(":")[1]?hx("0xa"):hx("0x3"),x=s.writer.createUIElement(hx("0x10"),{class:"ck-suggestion-marker-"+n}),a=s.mapper.toViewPosition(i[hx("0x0")](t));e&&r[hx("0xc")].includes(o.markerName)&&s[hx("0x6")].addClass("ck-suggestion-marker--active",x),s[hx("0x6")][hx("0x14")](a,x),s[hx("0x12")].bindElementToMarker(x,o[hx("0x1b")])}}}const Ex=["forceValue","FORMAT_RESTRICTED_ENABLED","locale","getRanges","markInlineFormat","value","commandName","editor","restrictedEditingException","StandardEditingModeEditing","has","plugins","registerDescriptionCallback","format","isCollapsed","selection","TrackChangesEditing","_descriptionFactory","model","enableCommand","get","commands"];var _x,Tx;_x=Ex,Tx=319,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{afterInit(){const t=this[Cx("0x12")],e=t[Cx("0x7")],n=t[Cx("0xd")];if(!t[Cx("0x0")][Cx("0x15")](Cx("0x14")))return;const o=t.plugins.get(Cx("0x5")),s=Cx("0x13"),r=t[Cx("0xa")][Cx("0x9")](s);o[Cx("0x8")](s,((t,n={})=>{const i=e.document[Cx("0x4")];if(i[Cx("0x3")])return void t(n);const x=void 0!==n.forceValue?n[Cx("0xb")]:!r[Cx("0x10")];e.change((()=>{const t=Array.from(i[Cx("0xe")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0xf")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x6")][Cx("0x1")]((t=>{const{data:e}=t;if(e&&e[Cx("0x11")]==s)return e.commandParams[0][Cx("0xb")]?{type:Cx("0x2"),content:Yo(n,Cx("0xc"))}:{type:Cx("0x2"),content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const kx=["commands","editor","document","block","markBlockFormat","locale","getItems","name","enableCommand","change","getAncestors","*Format:* %0","isBlock","element","markInlineFormat","selection","StyleUtils","modelElements","getSelectedBlocks","_descriptionFactory","classes","includes","_getRangesWithClasses","getRanges","normalizeConfig","plugins","TrackChangesEditing","get","model","push","commandParams","toLowerCase","inline","registerDescriptionCallback","getDefinitionsForView","styleName","getAttribute","_getStyleDefinition","afterInit","Style","commandName","format","from","add","value","forceValue","find","style"];var Ax,vx;Ax=kx,vx=416,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x6")](){const t=this[Rx("0x11")];if(!t[Rx("0x29")].has(Rx("0x7")))return;const e=t[Rx("0x10")].get(Rx("0xf")),n=t[Rx("0x29")].get(Rx("0x2a")),o=t[Rx("0x15")],s=t[Rx("0x29")][Rx("0x2b")]("DataSchema"),r=t[Rx("0x29")][Rx("0x2b")](Rx("0x20"))[Rx("0x28")](s,t.config[Rx("0x2b")]("style.definitions"));n[Rx("0x18")](Rx("0xf"),((o,{styleName:i})=>{const x=t[Rx("0x2c")][Rx("0x12")][Rx("0x1f")],a=this[Rx("0x5")](i,r);if(!a)return;if(!e.enabledStyles.includes(i))return;if(x.isCollapsed&&!a[Rx("0x1c")])return void o({styleName:i});const c=!e[Rx("0xc")][Rx("0x25")](a.name);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x1a")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x25")](o[Rx("0x17")])){n[Rx("0xb")](o);break}}return n}(x[Rx("0x22")](),a[Rx("0x21")]);t[Rx("0x2c")].change((()=>{for(const t of e)n[Rx("0x14")](t,{commandName:Rx("0xf"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[Rx("0xa")](x[Rx("0x27")]());if(!c){const n=Array.from(s[Rx("0x2")](a[Rx("0x1d")],!1))[0].model,o=[];for(const s of e){const e=this[Rx("0x26")](t[Rx("0x2c")],s,a[Rx("0x24")],n);o[Rx("0x2d")](...e)}e=o}t[Rx("0x2c")][Rx("0x19")]((()=>{for(const t of e)n[Rx("0x1e")](t,{commandName:Rx("0xf"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x23")][Rx("0x1")]((t=>{const{data:e}=t;if(e&&Rx("0xf")===e[Rx("0x8")])return e[Rx("0x2e")][0][Rx("0xd")]?{type:Rx("0x9"),content:Yo(o,Rx("0x1b"),e.commandParams[0][Rx("0x3")].toLowerCase())}:{type:"format",content:Yo(o,"*Remove format:* %0",e[Rx("0x2e")][0][Rx("0x3")][Rx("0x2f")]())}}))}[Rx("0x5")](t,e){let n=e[Rx("0x13")][Rx("0xe")]((e=>e[Rx("0x17")]===t));return n||(n=e[Rx("0x0")][Rx("0xe")]((e=>e[Rx("0x17")]===t))),n}[Rx("0x26")](t,e,n,o){const s=[];for(const r of e[Rx("0x16")]()){const e=r[Rx("0x4")](o);e&&n.every((t=>e[Rx("0x24")][Rx("0x25")](t)))&&s[Rx("0x2d")](t.createRangeOn(r))}return s}}const Ix=["selection","map","add","execute","locale","toViewElement","insertTableColumnRight","order","isEqual","position","length","findAncestor","refresh","ELEMENT_TABLE_WITH_TEXT","change:data","tableCell","join","createTableWalker","_setupColumnsRowsFixing","*Remove:* %0","insertion","substr","ELEMENT_TABLE_ROW_WITH_TEXT","item","hasAttribute","createRangeOn","accept","getSelectionAffectedTableCells","registerDescriptionCallback","values","_suggestionFactory","enqueueChange","TrackChangesEditing","registerPostFixer","classes","maxRow","ELEMENT_TABLE_COLUMN","insert","nodeBefore","getColumnIndexes","data","options","last","element","subType","getChildren","selectTableColumn","insertTableRowAbove","get","name","selectTableRow","from","nodeAfter","getRowIndexes","forceValue","isTouching","ELEMENT_TABLE_COLUMN_WITH_TEXT","every","plugins","suggestion","minRow","ELEMENT_TABLE_ROW","removeTableRow","registerElementLabel","_acceptFormatSuggestionCallbackFactory","document","includes","root","commands","markMultiRangeDeletion","first","getCellLocation","$textProxy","createPositionAt","cell","_descriptionFactory","registerCustomCallback","model","enableCommand","getItems","$graveyard","toLowerCase","_getSuggestionCoords","insertTable","getAttribute","table","isInContent","start","tableRow","getChangedMarkers","oldRange","getContainedElement","max","removeTableColumn","min","rowspan","afterInit","getRanges","left","fromRange","differ","markMultiRangeInsertion","addMarker:suggestion","TableUtils","MAX_SAFE_INTEGER","createRangeIn","getSuggestion","span","tableColumn","editor","showSuggestionHighlights","detach","tablePaste","deletion","rootName","end","maxColumn","minColumn","filter","MIN_SAFE_INTEGER","colspan","getFirstRange","type","ELEMENT_TABLE","_tableSuggestions","change","batch","setSelection","removeClass","push","*Insert:* %0","some","addRange","isIntersectingWithRange","_tablePostFixingSubtypes"];var Lx,Nx;Lx=Ix,Nx=424,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{constructor(t){super(t),this[wx("0x73")]=["tableRow",wx("0x59")],this._tableSuggestions=new Set}[wx("0x4d")](){const t=this.editor,e=t[wx("0x3a")][wx("0x2e")][wx("0x74")];if(!t[wx("0x27")].has("TableEditing"))return;const n=t[wx("0x78")],o=t[wx("0x27")][wx("0x1d")](wx("0xd")),s=t[wx("0x27")][wx("0x1d")](wx("0x54"));o[wx("0x38")][wx("0x2c")]("table",(t=>Yo(n,wx("0x68"),t))),this[wx("0x86")](),o[wx("0x3b")](wx("0x40")),o.enableCommand(wx("0x1f")),o.enableCommand(wx("0x1b"));for(const n of[wx("0x1c"),"insertTableRowBelow"]){const r=t[wx("0x31")][wx("0x1d")](n);o.enableCommand(n,(n=>{t[wx("0x3a")][wx("0x6a")]((t=>{n();const i="above"===r[wx("0x7b")],x=s[wx("0x8")](e),a=s.getRowIndexes(x),c=i?a[wx("0x33")]-1:a.last+1,l=x[0][wx("0x7f")](wx("0x42")),u=s[wx("0x85")](l,{startRow:c,endRow:c}),d=Array.from(u).map((e=>t.createRangeOn(e.cell)));o.markMultiRangeInsertion(d,wx("0x45"))}))}))}for(const n of["insertTableColumnLeft",wx("0x7a")]){const r=t[wx("0x31")][wx("0x1d")](n);o[wx("0x3b")](n,(n=>{t[wx("0x3a")][wx("0x6a")]((t=>{n();const i=wx("0x4f")===r[wx("0x7b")],x=s[wx("0x8")](e),a=s[wx("0x14")](x),c=i?a[wx("0x33")]-1:a[wx("0x17")]+1,l=x[0].findAncestor(wx("0x42")),u=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[wx("0x20")](u)[wx("0x75")]((e=>t.createRangeOn(e[wx("0x37")])));o[wx("0x52")](d,wx("0x59"))}))}))}for(const n of[wx("0x2b"),wx("0x4a")]){const r=n[wx("0x2")](11),i=r[wx("0x3e")](),x=i.substr(0,3)+wx("0x58"),a="table"+r,c=wx("0x4b")+r,l=wx("0x49")+r;o[wx("0x3b")](n,(()=>{t[wx("0x3a")][wx("0x6a")]((t=>{const r=s[wx("0x8")](e),u=r[0][wx("0x7f")](wx("0x42"));let d;if(wx("0x2b")==n){const t=s[wx("0x22")](r);d={startRow:t[wx("0x33")],endRow:t.last,includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);d={startColumn:t[wx("0x33")],endColumn:t[wx("0x17")],includeAllSlots:!0}}const g=s[wx("0x85")](u,d),m=Array.from(g)[wx("0x75")]((({cell:t})=>t)),f=Ox(m.filter((t=>t[wx("0x5")](x)))),h=Ox(m.filter((t=>!t.hasAttribute(x)))).map((e=>t[wx("0x6")](e))),p=o[wx("0x32")](h,a);if(p&&("tableRow"==p.subType||wx("0x59")==p.subType)){const e=this[wx("0x3f")](p);for(const n of f){const o=t.createRangeOn(n),r=s[wx("0x34")](n),a=n[wx("0x41")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[wx("0x71")](o)}}}))}))}function r(n){const o=Array.from(e[wx("0x4e")]())[wx("0x75")]((t=>i.LiveRange[wx("0x50")](t)));t.model.change((e=>{const s=e[wx("0x6b")];n=n[wx("0x63")]((t=>wx("0x3d")!=t[wx("0x30")].rootName)),e.setSelection(n),t.commands[wx("0x1d")](wx("0x2b"))[wx("0x80")](),t[wx("0x77")]("removeTableRow",{forceDefaultExecution:!0}),t[wx("0x3a")][wx("0xc")]((()=>{t.model[wx("0xc")](s,(t=>{const e=o[wx("0x63")]((t=>"$graveyard"!=t[wx("0x30")][wx("0x5f")]));e[wx("0x7e")]>0&&t[wx("0x6c")](e);for(const t of o)t[wx("0x5c")]()}))}))}))}function a(n){t[wx("0x3a")][wx("0x6a")]((o=>{const s=Array[wx("0x20")](e[wx("0x4e")]())[wx("0x75")]((t=>i.LiveRange[wx("0x50")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[wx("0x6e")](e);for(const e of r)wx("0x3d")!=e[wx("0x30")][wx("0x5f")]&&(o[wx("0x6c")](o[wx("0x36")](e,0)),t[wx("0x31")][wx("0x1d")]("removeTableColumn")[wx("0x80")](),t[wx("0x77")](wx("0x4a"),{forceDefaultExecution:!0}));const x=s[wx("0x63")]((t=>"$graveyard"!=t[wx("0x30")][wx("0x5f")]));x[wx("0x7e")]>0&&o.setSelection(x);for(const t of s)t[wx("0x5c")]()}))}function c(t,e){return e[wx("0x26")]((e=>t.some((t=>t[wx("0x60")][wx("0x7c")](e[wx("0x44")])||e[wx("0x60")].isEqual(t[wx("0x44")])))))}function l(t,e){return t[wx("0x70")]((t=>e[wx("0x70")]((e=>t[wx("0x60")][wx("0x24")](e[wx("0x44")])))))}t[wx("0x15")].downcastDispatcher.on(wx("0x53"),((t,e,n)=>{if(!n[wx("0x16")][wx("0x5b")])return;const o=e[wx("0x4")];if(!o)return;const s=n.mapper[wx("0x79")](o);function r(t){return Array.isArray(t)?t:[t]}s&&"tableCell"===o[wx("0x1e")]&&(0,x.setHighlightHandling)(s,n.writer,((t,e,n)=>n.addClass(r(e[wx("0xf")]),t)),((t,e,n)=>n[wx("0x6d")](r(e[wx("0xf")]),t)))}),{priority:"highest"}),o[wx("0x38")].registerDescriptionCallback((t=>{if(wx("0x1")!=t[wx("0x67")]&&wx("0x5e")!=t.type)return;const e=t[wx("0x48")]();if(null!=e&&e.is(wx("0x18"),wx("0x42"))){if(wx("0x1")==t[wx("0x67")]){const e=t[wx("0x3c")]().filter((t=>t.is(wx("0x35"))))[wx("0x75")]((t=>t[wx("0x15")]));if(e.length)return{type:wx("0x1"),content:Yo(n,wx("0x6f"),Yo(n,wx("0x81"),'"'+e[wx("0x84")](" ")+'"'))}}if("deletion"==t[wx("0x67")]){const e=t[wx("0x3c")]()[wx("0x63")]((t=>t.is(wx("0x35"))))[wx("0x75")]((t=>t[wx("0x15")]));if(e.length)return{type:wx("0x5e"),content:Yo(n,wx("0x0"),Yo(n,wx("0x81"),'"'+e[wx("0x84")](" ")+'"'))}}}})),o[wx("0x38")][wx("0x9")]((t=>{if(wx("0x45")==t.subType){const e=t.getItems().filter((t=>t.is(wx("0x35"))))[wx("0x75")]((t=>t[wx("0x15")])),o=this[wx("0x3f")](t),s=o[wx("0x10")]-o[wx("0x29")]+1;if(wx("0x1")==t[wx("0x67")])return e.length?{type:wx("0x1"),content:Yo(n,wx("0x6f"),Yo(n,wx("0x3"),[s,'"'+e[wx("0x84")](" ")+'"']))}:{type:wx("0x1"),content:Yo(n,wx("0x6f"),Yo(n,"ELEMENT_TABLE_ROW",s))};if(wx("0x5e")==t[wx("0x67")])return e[wx("0x7e")]?{type:wx("0x5e"),content:Yo(n,wx("0x0"),Yo(n,wx("0x3"),[s,'"'+e[wx("0x84")](" ")+'"']))}:{type:wx("0x5e"),content:Yo(n,wx("0x0"),Yo(n,wx("0x2a"),s))}}if(wx("0x59")==t[wx("0x19")]){const e=t[wx("0x3c")]()[wx("0x63")]((t=>t.is(wx("0x35"))))[wx("0x75")]((t=>t[wx("0x15")])),o=this[wx("0x3f")](t),s=o[wx("0x61")]-o[wx("0x62")]+1;if(wx("0x1")==t[wx("0x67")])return e.length?{type:"insertion",content:Yo(n,wx("0x6f"),Yo(n,wx("0x25"),[s,'"'+e.join(" ")+'"']))}:{type:wx("0x1"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(wx("0x5e")==t[wx("0x67")])return e[wx("0x7e")]?{type:wx("0x5e"),content:Yo(n,"*Remove:* %0",Yo(n,wx("0x25"),[s,'"'+e[wx("0x84")](" ")+'"']))}:{type:"deletion",content:Yo(n,wx("0x0"),Yo(n,wx("0x11"),s))}}})),o[wx("0xb")][wx("0x39")](wx("0x1"),wx("0x45"),"discard",r),o[wx("0xb")].registerCustomCallback(wx("0x5e"),wx("0x45"),wx("0x7"),r),o[wx("0xb")][wx("0x39")](wx("0x1"),wx("0x59"),"discard",a),o[wx("0xb")].registerCustomCallback("deletion",wx("0x59"),"accept",a),o[wx("0xb")][wx("0x39")]("insertion",wx("0x59"),wx("0x84"),c),o[wx("0xb")][wx("0x39")](wx("0x5e"),wx("0x59"),wx("0x84"),c),o[wx("0xb")][wx("0x39")]("insertion",wx("0x45"),wx("0x84"),l),o[wx("0xb")][wx("0x39")](wx("0x5e"),wx("0x45"),"join",l)}[wx("0x2d")](){const t=this[wx("0x5a")],e=t.model[wx("0x2e")][wx("0x74")];return(n,o)=>{t[wx("0x3a")][wx("0x6a")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end[wx("0x13")];x&&x[0]&&!1===x[0][wx("0x23")]&&(a=n[0][wx("0x44")].nodeAfter);const c=s[wx("0x56")](a);if(wx("0x3d")==c[wx("0x30")][wx("0x5f")])return;const l=Array[wx("0x20")](e.getRanges()).map((t=>i.LiveRange[wx("0x50")](t)));s[wx("0x6c")](c),t[wx("0x31")][wx("0x1d")](r)[wx("0x80")](),x[wx("0x6e")]({forceDefaultExecution:!0}),t[wx("0x77")](r,...x);const u=l[wx("0x63")]((t=>"$graveyard"!=t.root[wx("0x5f")]));u[wx("0x7e")]>0&&s.setSelection(u);for(const t of l)t[wx("0x5c")]()}))}}_getCoordsForCells(t){const e=this[wx("0x5a")][wx("0x27")][wx("0x1d")](wx("0x54"));let n=Number.MAX_SAFE_INTEGER,o=Number[wx("0x64")],s=Number[wx("0x55")],r=Number[wx("0x64")];for(const i of t){if(wx("0x3d")==i[wx("0x30")][wx("0x5f")])continue;const{row:t,column:x}=e[wx("0x34")](i),a=i.hasAttribute(wx("0x4c"))?i[wx("0x41")](wx("0x4c"))-1:0,c=i[wx("0x5")](wx("0x65"))?i.getAttribute(wx("0x65"))-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}}[wx("0x86")](){const t=this[wx("0x5a")],e=t.plugins.get("TrackChangesEditing"),n=t[wx("0x27")][wx("0x1d")](wx("0x54"));t[wx("0x3a")][wx("0x2e")].on(wx("0x82"),(()=>{const n=Array[wx("0x20")](t[wx("0x3a")][wx("0x2e")][wx("0x51")][wx("0x46")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if(wx("0x28")!=n)continue;if(null!=o[wx("0x47")])continue;const i=e[wx("0x57")](s);this[wx("0x73")][wx("0x2f")](r)&&this[wx("0x69")][wx("0x76")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[wx("0x7f")](wx("0x42")),i=n[wx("0x34")](t);for(const e of this._tableSuggestions){const n=e[wx("0x19")],x=n.startsWith(wx("0x5d")),a=n.substr(x?10:5),c=a[wx("0x3e")](),l=c.substr(0,3)+wx("0x58"),u=wx("0x4b")+a,d=wx("0x49")+a;if(!e[wx("0x43")])continue;if(r!=e[wx("0x66")]()[wx("0x44")][wx("0x7f")](wx("0x42")))continue;if(e[wx("0x72")](s))continue;const g=t[wx("0x5")](l)?t[wx("0x41")](l)-1:0,m=this[wx("0x3f")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e.addRange(s),o=!0)}return o};t[wx("0x3a")][wx("0x2e")][wx("0xe")]((e=>{let n=!1;for(const s of t[wx("0x3a")][wx("0x2e")][wx("0x51")].getChanges())if(wx("0x12")==s[wx("0x67")])if(wx("0x45")==s[wx("0x1e")])for(const t of s.position[wx("0x21")][wx("0x1a")]())n=n||o(t,e);else wx("0x83")==s[wx("0x1e")]&&(n=n||o(s[wx("0x7d")][wx("0x21")],e));return n}))}[wx("0x3f")](t){return this._getCoordsForCells(t[wx("0x4e")]().map((t=>t[wx("0x44")][wx("0x21")])))}}function Ox(t){return Array[wx("0x20")](new Set(t)[wx("0xa")]())}const Fx=["element","fromRange","_isForcedDefaultExecutionBlock","author","splitTableCellVertically","getSuggestions","*Split cell:* horizontally","push","document","value","*Merge cells*","plugins","mergeTableCellDown","mergeTableCells","TrackChangesEditing","tableCell","requires","splitTableCellHorizontally","detach","createRangeOn","get","commands","table","TableUtils","trackChanges","*Split cell:* vertically","_areSelectedCellsMergable","low","formatBlock","mergeTableCellUp","change","forceDefaultExecution","_tablePostFixingSubtypes","length","_descriptionFactory","subType","mergeTableCellLeft","getCellLocation","execute","mergeTableCellRight","filter","registerCustomCallback","rootName","model","$graveyard","type","_areMergableCells","createTableWalker","getSelectionAffectedTableCells","getFirstPosition","direction","horizontally","TableEditing","selection","map","stop","afterInit","accept","from","isInContent","enableCommand","root","registerDescriptionCallback","containsRange","find","return","setSelection","cell","commandName","editor","markBlockFormat","isEnabled","set:isEnabled","format","size","_suggestionFactory","markMultiRangeBlockFormat","getAncestors","highest","add"];var Px,Dx;Px=Fx,Dx=218,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x26")](){return[Mx]}[Bx("0x4e")](){const t=this[Bx("0xb")],e=t[Bx("0x41")][Bx("0x1e")][Bx("0x4b")],n=t.locale;if(!t[Bx("0x21")].has(Bx("0x4a")))return;const o=t[Bx("0x21")][Bx("0x2a")](Bx("0x24")),s=t[Bx("0x21")][Bx("0x2a")](Bx("0x2d")),r=t[Bx("0x21")][Bx("0x2a")](Mx);r[Bx("0x36")][Bx("0x1d")](Bx("0x23")),o[Bx("0x2")]("mergeTableCells",(()=>{const e=s[Bx("0x46")](t.model.document[Bx("0x4b")]);t[Bx("0x41")].change((()=>{o.markMultiRangeBlockFormat(e,{commandName:Bx("0x23"),commandParams:[]},[],Bx("0x23"))}))})),t.commands[Bx("0x2a")]("mergeTableCells").on(Bx("0x3c"),((e,n)=>{t[Bx("0x2b")][Bx("0x2a")](Bx("0x2e")).value&&(n[Bx("0x37")]>0&&n[n[Bx("0x37")]-1]&&n[n.length-1][Bx("0x35")]||o[Bx("0x18")]||this[Bx("0x30")]()||e.stop())}),{priority:Bx("0x14")});for(const e of[Bx("0x33"),"mergeTableCellRight",Bx("0x22"),Bx("0x3a")]){const n=t.commands[Bx("0x2a")](e);o.enableCommand(e,(()=>{const e=t[Bx("0x41")].document[Bx("0x4b")][Bx("0x47")]()[Bx("0x13")]().find((t=>t.is(Bx("0x16"),Bx("0x25")))),s=n[Bx("0x1f")];t[Bx("0x41")][Bx("0x34")]((()=>{o[Bx("0x12")]([e,s],{commandName:Bx("0x23"),commandParams:[]},[],Bx("0x23"))}))}))}for(const e of[Bx("0x1a"),"splitTableCellHorizontally"]){const n=t[Bx("0x2b")][Bx("0x2a")](e);o[Bx("0x2")](e,(()=>{const r=s[Bx("0x46")](t[Bx("0x41")][Bx("0x1e")][Bx("0x4b")])[0],i=r.findAncestor(Bx("0x2c")),{column:x,row:a}=s[Bx("0x3b")](r);let c=[];if(Bx("0x49")==n[Bx("0x48")]){const t=s.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x0")](t)[Bx("0x4c")]((t=>t[Bx("0x9")]))}else{const t=s[Bx("0x45")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x0")](t)[Bx("0x4c")]((t=>t.cell))}t[Bx("0x41")][Bx("0x34")]((t=>{o[Bx("0xc")](t[Bx("0x29")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x38")][Bx("0x4")]((t=>{const{data:e}=t;if(e)return Bx("0x23")==e[Bx("0xa")]?{type:Bx("0xf"),content:Yo(n,Bx("0x20"))}:void 0})),o[Bx("0x38")][Bx("0x4")]((t=>{const{data:e}=t;if(e)return Bx("0x1a")==e[Bx("0xa")]?{type:Bx("0xf"),content:Yo(n,Bx("0x2f"))}:Bx("0x27")==e[Bx("0xa")]?{type:"format",content:Yo(n,Bx("0x1c"))}:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of[Bx("0x33"),Bx("0x3d"),Bx("0x22"),"mergeTableCellLeft"])o[Bx("0x11")][Bx("0x3f")](Bx("0x32"),t,Bx("0x4f"),x);for(const t of["splitTableCellVertically",Bx("0x27")])o[Bx("0x11")][Bx("0x3f")]("formatBlock",t,"accept",x);o[Bx("0x11")][Bx("0x3f")](Bx("0x32"),Bx("0x23"),Bx("0x4f"),(n=>{t.model.change((o=>{const s=Array[Bx("0x0")](e.getRanges())[Bx("0x4c")]((t=>i.LiveRange[Bx("0x17")](t)));o[Bx("0x8")](n),t[Bx("0x2b")][Bx("0x2a")]("mergeTableCells").refresh(),t[Bx("0x3c")](Bx("0x23"),{forceDefaultExecution:!0});const r=s[Bx("0x3e")]((t=>Bx("0x42")!=t[Bx("0x3")][Bx("0x40")]));r[Bx("0x37")]>0&&o[Bx("0x8")](r);for(const t of s)t[Bx("0x28")]()}))}));for(const e of["mergeTableCellUp",Bx("0x22"),Bx("0x3a"),"mergeTableCellRight"]){const n=t[Bx("0x2b")][Bx("0x2a")](e);n.on(Bx("0xe"),((e,o,s)=>{if(s){const o=t[Bx("0x41")][Bx("0x1e")].selection[Bx("0x47")]()[Bx("0x13")]()[Bx("0x6")]((t=>t.is(Bx("0x16"),"tableCell")));this[Bx("0x44")](n[Bx("0x1f")],o)||(e[Bx("0x7")]=!1,e[Bx("0x4d")]())}}),{priority:Bx("0x31")})}}[Bx("0x30")](){const t=this[Bx("0xb")][Bx("0x2b")].get(Bx("0x23")),e=this[Bx("0xb")][Bx("0x21")][Bx("0x2a")]("TableUtils");if(!t[Bx("0xd")])return!1;const n=e[Bx("0x46")](this[Bx("0xb")].model[Bx("0x1e")][Bx("0x4b")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x44")](t,e))return!1;return!0}[Bx("0x44")](t,e){const n=this[Bx("0xb")][Bx("0x21")].get("TrackChangesEditing"),o=this[Bx("0xb")][Bx("0x41")][Bx("0x29")](t),s=this.editor.model[Bx("0x29")](e),r=new Set,i=new Set;for(const t of n[Bx("0x1b")]())if(("insertion"==t[Bx("0x43")]||"deletion"==t.type||"mergeTableCells"==t[Bx("0x39")])&&t[Bx("0x1")])for(const e of t.getRanges())e[Bx("0x5")](o,!0)&&r.add(t[Bx("0x43")]+":"+t.author.id),e[Bx("0x5")](s,!0)&&i[Bx("0x15")](t.type+":"+t[Bx("0x19")].id);if(r.size!=i[Bx("0x10")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Ux=["createRange","options","markerNameToElements","getChild","data","removeAttribute","TableEditing","isBefore","FORMAT_REGULAR_ROW","requires","table","writer","headingColumns","commands","_descriptionFactory","markerRange","registerCustomCallback","getRowIndexes","editing","consumable","getSuggestion","plugins","enableCommand","FORMAT_HEADER_COLUMN","_splitMarkerName","registerDescriptionCallback","markBlockFormat","*Format:* %0","first","TrackChangesEditing","commandParams","value","accept","setAttribute","createPositionAfter","index","includes","createTableWalker","formatBlock","get","nodeBefore","ck-suggestion-marker-","bindElementToMarker","ck-suggestion-marker--active","setTableColumnHeader","highest","createPositionBefore","last","data-suggestion","removeMarker:suggestion","setTableRowHeader","toViewElement","model","from","document","findAncestor","consume","activeMarkers","_suggestionFactory","getColumnIndexes","start","FORMAT_REGULAR_COLUMN","has","commandName","childCount","getSelectionAffectedTableCells","markerName","cell","getAttribute","removeClass","getCellLocation","downcastDispatcher","addClass","change","mapper","forceValue","addMarker:suggestion","stop","parent","FORMAT_HEADER_ROW","TableUtils"];var Gx,Hx;Gx=Ux,Hx=270,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x3f")](){return[Mx]}afterInit(){const t=this.editor;if(!t[zx("0x4b")][zx("0x23")](zx("0x3c")))return;const e=t.locale,n=t[zx("0x4b")][zx("0xc")](zx("0x2")),o=t[zx("0x4b")].get(zx("0x35")),s=t.plugins[zx("0xc")](Mx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x4e")](r[zx("0x27")]),c=n[zx("0x4a")](a);if(!c[zx("0x3a")]||"setTableColumnHeader"!=c[zx("0x3a")][zx("0x24")])return;if(r.item)return void s[zx("0x32")]();if(!i[zx("0x49")][zx("0x1d")](r[zx("0x45")],s.name))return;const l=r[zx("0x45")][zx("0x21")].nodeAfter,u=r[zx("0x45")].end[zx("0xd")],d=l.parent[zx("0x33")],{column:g}=o[zx("0x2b")](l),{column:m}=o.getCellLocation(u);for(let s=g;s<=m;s++){const c=o.createTableWalker(d,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i[zx("0x2f")][zx("0x18")](s);i[zx("0x41")][zx("0x2d")](zx("0xe")+x,c),e&&i[zx("0x41")][zx("0x6")]("data-suggestion",a,c),i[zx("0x2f")][zx("0xf")](c,r[zx("0x27")]),t&&(n[zx("0x1e")][zx("0x9")](r[zx("0x27")])?i[zx("0x41")][zx("0x2d")](zx("0x10"),c):i[zx("0x41")][zx("0x2a")](zx("0x10"),c))}}}}n[zx("0x4c")]("setTableRowHeader",((e,s)=>{const r=o[zx("0x26")](t[zx("0x19")][zx("0x1b")].selection),i=o[zx("0x47")](r),x=r[0][zx("0x1c")](zx("0x40")),a=x.getAttribute("headingRows")||0,c=s&&null!==s[zx("0x30")]?s.forceValue:!t.commands[zx("0xc")](zx("0x17"))[zx("0x4")],l=c?i.last:i[zx("0x1")],u=x[zx("0x39")](l);let d;if(c){const e=x[zx("0x39")](a);if(u[zx("0x8")]<e[zx("0x8")])return;d=t[zx("0x19")][zx("0x36")](t[zx("0x19")][zx("0x13")](e[zx("0x39")](0)),t[zx("0x19")].createPositionAfter(u[zx("0x39")](u[zx("0x25")]-1)))}else{const e=x[zx("0x39")](a-1);if(!e)return;d=t[zx("0x19")][zx("0x36")](t.model[zx("0x13")](u[zx("0x39")](0)),t[zx("0x19")][zx("0x7")](e[zx("0x39")](e.childCount-1)))}t.model[zx("0x2e")]((()=>{n[zx("0x50")](d,{commandName:"setTableRowHeader",commandParams:[{forceValue:c}]},[],zx("0x17"))}))})),n.enableCommand(zx("0x11"),((e,o)=>{const s=t.plugins.get(zx("0x35")),r=s[zx("0x26")](t[zx("0x19")][zx("0x1b")].selection),i=s[zx("0x20")](r),x=r[0][zx("0x1c")]("table"),a=x[zx("0x29")](zx("0x42"))||0,c=o&&null!==o[zx("0x30")]?o.forceValue:!t[zx("0x43")][zx("0xc")](zx("0x11")).value;let l;const u=x[zx("0x39")](0),d=c?i[zx("0x14")]:i[zx("0x1")],g=s[zx("0xa")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[zx("0x1a")](g)[0][zx("0x28")];if(c){const e=u[zx("0x39")](a);if(m[zx("0x3d")](e))return;l=t[zx("0x19")][zx("0x36")](t.model[zx("0x13")](e),t.model[zx("0x7")](m))}else{const e=u[zx("0x39")](a-1);if(!e)return;l=t[zx("0x19")][zx("0x36")](t.model[zx("0x13")](m),t[zx("0x19")].createPositionAfter(e))}t[zx("0x19")][zx("0x2e")]((()=>{n[zx("0x50")](l,{commandName:zx("0x11"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[zx("0x48")][zx("0x2c")].on(zx("0x31"),r(),{priority:"highest"}),t[zx("0x3a")].downcastDispatcher.on(zx("0x31"),((t,e,n)=>{n[zx("0x37")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x12")}),t.editing[zx("0x2c")].on(zx("0x16"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x4e")](e[zx("0x27")]),i=n[zx("0x4a")](r);if(!i[zx("0x3a")]||zx("0x11")!=i.data[zx("0x24")])return;const x=o[zx("0x2f")][zx("0x38")](e[zx("0x27")]);if(x)for(const t of x)o[zx("0x41")][zx("0x2a")](zx("0xe")+s,t),o[zx("0x41")][zx("0x2a")](zx("0x10"),t),o.writer[zx("0x3b")](zx("0x15"),t),o[zx("0x2f")].unbindElementFromMarkerName(t,e[zx("0x27")])}),{priority:zx("0x12")}),n[zx("0x44")][zx("0x4f")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n.commandName){const t=n[zx("0x3")][0][zx("0x30")];return o(Yo(e,zx(t?"0x34":"0x3e")))}if(zx("0x11")==n[zx("0x24")]){const t=n[zx("0x3")][0].forceValue;return o(Yo(e,zx(t?"0x4d":"0x22")))}}function o(t){return{type:"format",content:Yo(e,zx("0x0"),t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n[zx("0x1f")].registerCustomCallback(zx("0xb"),"setTableRowHeader","accept",i),n._suggestionFactory[zx("0x46")]("formatBlock",zx("0x11"),zx("0x5"),i)}}const Vx=["entries","find","_descriptionFactory","remove","tablePasteColumn","endColumn","previous","tableCellBorderColor","insertionRanges","insertContent","suggestionLoaded","removeColumns","dataDowncast","locale","registerCustomCallback","register","getChild","previousSibling","editingDowncast","map","createRangeIn","_getCoordsForCells","getShiftedBy","getColumnIndexes","getAllAdjacentSuggestions","has","add","row","subType","tableCellHorizontalAlignment","options","join","tablePaste","markerAttributes","fromEntries","createRangeOn","rowInsertionRanges","for","forceDefaultExecution","removeRows","endRow","high","cells","tablePasteCell","discard","tableCellSuggestion","author","redo","document","getSuggestion","some","root","trackChanges","getRange","return","table","requires","newRange","*Replace table cells*","tableCellBackgroundColor","suggestion:formatBlock:tablePasteCell","set","markerToHighlight","TableClipboard","registerPostFixer","setAttributes","commands","ck-suggestion-marker--active","removeMarkers","getSuggestions","suggestion-td","findAncestor","markMultiRangeInsertion","getRows","unwrap","deletion","includes","markMultiRangeDeletion","conversion","differ","filter","listenTo","getChangedMarkers","editor","model","activeMarkers","paragraph","wrap","markerName","columnInsertionIndexes","insert","name","type","Users","attributes","documentSelection","createTableWalker","getTableIfOnlyTableInContent","hasSuggestion","isEmpty","get","_splitMarkerName","createElement","content","isInContent","accept","stop","rowInsertionIndexes","getSuggestionCallback","removeMarker","_isForcedDefaultExecutionBlock","suggestionUnloaded","formatBlock","end","element","deletionRanges","_suggestionFactory","getColumns","tableCellBorderWidth","suggestion","insertion","push","from","position","getMarkers","length","_replaceTableSlotCell","columnInsertionRanges","markMultiRangeBlockFormat","tableCell","oldRange","columns","batch","view","containsRange","plugins","getContainedElement","tablePasteRow","value","getSelectionAffectedTableCells","change","registerDescriptionCallback","startsWith","tablePasteChainId","TrackChangesEditing","first","reduce","selection","low","next","cell","nodeAfter","isEqual","getRowIndexes","_tablePostFixingSubtypes","fill","TableUtils","column"];var Kx,qx;Kx=Vx,qx=226,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x32"),Xx("0x61"),"tableCellBorderStyle",Xx("0x77"),"tableCellVerticalAlignment",Xx("0x95"),"tableCellPadding"],Jx=Object.fromEntries($x.map((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x92")](){return[Mx]}afterInit(){const t=this[Xx("0xf")];if(!t[Xx("0x43")][Xx("0x73")](Xx("0x99")))return;const n=t.plugins[Xx("0x20")](Xx("0x4c")),o=t[Xx("0x43")][Xx("0x20")](Xx("0x58")),s=t[Xx("0x43")].get(Mx),r=t[Xx("0x43")][Xx("0x20")](Xx("0x99"));s[Xx("0x56")][Xx("0x35")]("tablePasteRow",Xx("0x5e")),t[Xx("0x10")].schema[Xx("0x69")](Xx("0x87"),{allowIn:Xx("0x3d"),allowContentOf:Xx("0x3d"),isLimit:!0}),t[Xx("0xa")].elementToElement({model:"tableCellSuggestion",view:Xx("0x2")});let i=null;t[Xx("0x10")].on(Xx("0x63"),((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Xx("0x80")]||n[Xx("0x2a")]||this[Xx("0xf")][Xx("0x9c")].get(Xx("0x8e"))[Xx("0x46")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x1b")))return!1;const r=s[Xx("0x1d")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x47")](n[Xx("0x8a")][Xx("0x4f")]);if(!i[Xx("0x39")])return!1;const x=i[0][Xx("0x3")](Xx("0x91")),a=o[Xx("0x55")](i),c=o[Xx("0x71")](i),l={startRow:a[Xx("0x4d")],endRow:a.last,startColumn:c[Xx("0x4d")],endColumn:c.last};return 1==i.length&&(l[Xx("0x82")]+=o[Xx("0x5")](r)-1,l[Xx("0x5f")]+=o[Xx("0x31")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x10")],o,r)&&(s[Xx("0x26")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[Xx("0x48")]((()=>{t[Xx("0x10")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Xx("0x39")]&&n[Xx("0x4")](s,Xx("0x45"),{tablePasteChainId:o}),r[Xx("0x39")]&&n[Xx("0x4")](r,"tablePasteColumn",{tablePasteChainId:o}),a[Xx("0x39")]&&n[Xx("0x4")](a,Xx("0x7a"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x39")]&&n[Xx("0x9")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Xx("0x3c")](l[Xx("0x6d")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x85"),{tablePasteChainId:o});if(u){const e=u[Xx("0x38")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Xx("0x7d")](o),i=e[Xx("0x5b")]((t=>t[Xx("0x8f")]()[Xx("0x54")](r)));i&&n.push([i[Xx("0x17")],s])}n[Xx("0x39")]&&u.setAttribute(Xx("0x7b"),Object[Xx("0x7c")](n))}i=null})))}),{priority:e.priorities[Xx("0x83")]+10}),t[Xx("0x43")].get("TableClipboard").on(Xx("0x3a"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x26")]();const r=n[Xx("0x52")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x90")]=r;let l=null,u=null;if(c||a)if(a&&!c){s[Xx("0x5d")](r[Xx("0x6a")](0));for(const t of Array[Xx("0x36")](x.getChildren()))s.insert(t,r,Xx("0x2d"));const t=i[Xx("0x27")].includes(n[Xx("0x75")]),e=i[Xx("0x15")][Xx("0x8")](n[Xx("0x59")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(u=s[Xx("0x6e")](r));else{const t=s[Xx("0x22")]("tableCellSuggestion"),e=s[Xx("0x22")](Xx("0x87"));s[Xx("0x13")](s.createRangeIn(r),e),s[Xx("0x16")](t,r,0);for(const e of Array[Xx("0x36")](x.getChildren()))s[Xx("0x16")](e,t,"end");l=s[Xx("0x7d")](t),u=s.createRangeOn(e)}const d=Array[Xx("0x36")](x.getAttributes())[Xx("0xc")]((([t])=>$x.includes(t)));i[Xx("0x84")][Xx("0x35")]({element:r,attributes:d.length?Object[Xx("0x7c")](d):null}),l&&i[Xx("0x62")][Xx("0x35")](l),u&&i[Xx("0x2f")][Xx("0x35")](u)}),{priority:Xx("0x83")}),o.on("insertColumns",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x3f")]||1;i.columnInsertionIndexes=new Array(a)[Xx("0x57")](x)[Xx("0x6d")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x3b")][Xx("0x35")](t[Xx("0x10")][Xx("0x7d")](e))}),{priority:Xx("0x50")}),o.on("insertRows",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x27")]=new Array(a).fill(x)[Xx("0x6d")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x1c")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x7e")].push(t.model[Xx("0x7d")](e))}),{priority:Xx("0x50")}),n[Xx("0x5c")][Xx("0x49")]((e=>{if(e[Xx("0x76")]&&e[Xx("0x76")][Xx("0x4a")](Xx("0x7a")))return e.previous?{}:{type:"insertion",content:Yo(t[Xx("0x67")],Xx("0x94"))}}));const x=()=>{};for(const t of[Xx("0x7a"),Xx("0x5e"),Xx("0x45"),"tablePasteCell"])n[Xx("0x30")].registerCustomCallback(Xx("0x34"),t,Xx("0x79"),x),n[Xx("0x30")][Xx("0x68")]("deletion",t,Xx("0x79"),x);n[Xx("0x30")][Xx("0x68")]("formatBlock",Xx("0x85"),Xx("0x86"),x),n[Xx("0x30")][Xx("0x68")]("formatBlock",Xx("0x85"),Xx("0x25"),((e,n,o)=>{const s=e[Xx("0x6d")]((t=>t[Xx("0x44")]()))[Xx("0xc")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x84")])e&&r[Xx("0x97")](t,e);else if(o&&o[Xx("0x7b")])for(const[e,n]of Object[Xx("0x5a")](o.markerAttributes)){const o=t[Xx("0x10")].markers[Xx("0x20")](e),s=o?o[Xx("0x8f")]()[Xx("0x44")]():null;s&&r[Xx("0x97")](s,n)}t.model.change((t=>{for(const[e,n]of r)t[Xx("0x9b")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x30")].registerCustomCallback(e,Xx("0x7a"),o,((s,r,i)=>{t[Xx("0x10")][Xx("0x48")]((t=>{const x=[];for(const t of s){const e=t.start[Xx("0x53")];e.is(Xx("0x2e"),"tableCellSuggestion")&&x[Xx("0x35")](e)}n._suggestionFactory[Xx("0x28")](e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e[Xx("0x8d")].rootName&&t[Xx("0x6")](e)}))}))};a("insertion",Xx("0x25")),a("insertion",Xx("0x86")),a(Xx("0x7"),Xx("0x25")),a(Xx("0x7"),"discard"),n[Xx("0x30")][Xx("0x68")]("insertion",Xx("0x45"),Xx("0x86"),(t=>{const e=t.map((t=>t[Xx("0x44")]())),n=e[0][Xx("0x3")]("table"),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Xx("0x81")](n,{at:r,rows:i-r+1})})),n[Xx("0x30")][Xx("0x68")](Xx("0x34"),Xx("0x5e"),Xx("0x86"),(t=>{const e=t[Xx("0x6d")]((t=>t[Xx("0x44")]())),n=e[0][Xx("0x3")](Xx("0x91")),{minColumn:r,maxColumn:i}=s[Xx("0x6f")](e);o[Xx("0x65")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e.subType[Xx("0x4a")](Xx("0x7a")))return;const o=e.attributes[Xx("0x4b")],s=n[Xx("0x1")]().filter((t=>t[Xx("0x24")]&&t[Xx("0x1a")]&&t[Xx("0x1a")].tablePasteChainId==o));s[Xx("0x39")]&&e[Xx("0x72")]()[Xx("0x39")]!=s[Xx("0x39")]&&s[Xx("0x4e")](((t,e)=>(t[Xx("0x51")]=e,e[Xx("0x60")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x21")](t[Xx("0x14")]),s=["ck-suggestion-marker","ck-suggestion-marker-insertion"],r=n[Xx("0x11")][Xx("0x8")](t[Xx("0x14")]);return r&&s.push(Xx("0x9d")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x64"),c,{priority:"high"}),n.on(Xx("0x2b"),c,{priority:Xx("0x83")}),t[Xx("0x10")].document[Xx("0x9a")]((()=>{let e=!1;const o=Array.from(t[Xx("0x10")].document[Xx("0xb")].getChangedMarkers());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x21")](s);if(Xx("0x33")!=o||Xx("0x7")!=i||r[Xx("0x3e")])continue;if(!n[Xx("0x1e")](x))continue;const a=n[Xx("0x8b")](x).getRanges(),c=t[Xx("0x43")].get(Xx("0x19")).me;for(const t of n[Xx("0x1")]())if(t.isInContent&&t[Xx("0x88")]==c&&Xx("0x2c")==t[Xx("0x18")]&&"tablePasteCell"==t.subType&&t.getRanges().every((t=>a[Xx("0x8c")]((e=>e[Xx("0x42")](t,!0))))))for(const n of t[Xx("0x72")]())n[Xx("0x24")]&&(n[Xx("0x86")](),e=!0)}return e})),t.model.document[Xx("0x9a")]((e=>{const o=t[Xx("0x9c")][Xx("0x20")](Xx("0x89"));if(!o||!o._createdBatches.has(e[Xx("0x40")]))return!1;let s=!1;const r=t[Xx("0x43")][Xx("0x20")](Xx("0x19")).me,i=t[Xx("0x10")][Xx("0x8a")].differ.getChanges(),x=Array[Xx("0x36")](t[Xx("0x10")][Xx("0x8a")].differ[Xx("0xe")]()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x21")](t);return Xx("0x33")==o&&Xx("0x7a")==s&&i==r.id&&!e[Xx("0x3e")]}));for(const t of i){if(Xx("0x16")!=t[Xx("0x18")]||Xx("0x87")!=t[Xx("0x17")]||1!=t[Xx("0x39")])continue;const n=e.createRange(t[Xx("0x37")],t[Xx("0x37")][Xx("0x70")](1));if(!x[Xx("0x5b")]((({data:t})=>t[Xx("0x93")].isEqual(n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[Xx("0x10")][Xx("0x8a")][Xx("0x9a")]((e=>{let o=!1;const s=t[Xx("0x43")].get(Xx("0x19")).me,r=n.getSuggestions()[Xx("0xc")]((t=>t[Xx("0x24")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x7a")==t.subType)for(const e of t[Xx("0x38")]()){const n=e[Xx("0x8f")]()[Xx("0x44")]();if(n)if(n.is(Xx("0x2e"),Xx("0x87"))&&Zx(n)){t[Xx("0x29")](e[Xx("0x17")]),i[Xx("0x74")](n),o=!0;const s=n.nextSibling,r=n[Xx("0x6b")],a=s&&s.is(Xx("0x2e"),"tableCellSuggestion"),c=r&&r.is("element",Xx("0x87"));a&&!i[Xx("0x73")](s)&&x[Xx("0x74")](s),c&&!i[Xx("0x73")](r)&&x[Xx("0x74")](r)}else n.is(Xx("0x2e"),Xx("0x12"))&&n[Xx("0x1f")]&&(t.removeMarker(e[Xx("0x17")]),o=!0)}else if(Xx("0x85")==t[Xx("0x76")]){if(!t[Xx("0x1a")]||!t[Xx("0x1a")][Xx("0x4b")])continue;const e=t[Xx("0x1a")].markerAttributes;if(e&&Object.keys(e)[Xx("0x39")])continue;const n=t.attributes[Xx("0x4b")];let s=!0,i=!0;for(const e of r)if(e.subType&&e[Xx("0x76")][Xx("0x4a")]("tablePaste")){if(!e[Xx("0x1a")][Xx("0x4b")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x1a")][Xx("0x4b")]==n){s=!1;break}}i&&s&&(t[Xx("0x0")](),o=!0)}for(const t of i)e[Xx("0x5d")](t);for(const t of x)e[Xx("0x6")](t);return o})),t[Xx("0xa")][Xx("0x7f")](Xx("0x6c"))[Xx("0x98")]({model:Xx("0x96"),view:(t,e)=>l(t),converterPriority:Xx("0x83")}),t.conversion[Xx("0x7f")](Xx("0x66")).markerToHighlight({model:Xx("0x96"),view:(t,e)=>e[Xx("0x78")].showSuggestionHighlights?l(t,!1):null,converterPriority:Xx("0x83")});const u=t.editing[Xx("0x41")];this[Xx("0xd")](u.document,"clipboardOutput",((t,e)=>{const n=[];for(const t of u.createRangeIn(e[Xx("0x23")]).getItems())t.is(Xx("0x2e"),Xx("0x2"))&&n.push(t);u.change((t=>{for(const e of n)t.move(t[Xx("0x6e")](e),t.createPositionBefore(e)),t[Xx("0x5d")](e)}))}))}}function Zx(t){if(t[Xx("0x1f")])return!0;const e=t[Xx("0x6a")](0);return e.is(Xx("0x2e"),Xx("0x12"))&&e[Xx("0x1f")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x1c")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["getSuggestionCallback","getSelectedElement","markBlockFormat","author","plugins","get","editor","tableWidth","change","selection","model","data","format","getSuggestions","getAttribute","resizeColumnWidths","formatBlock","getTableColumnsWidths","handleResizeTableWidthCommand","_suggestionFactory","registerCustomCallback","discard","TableColumnResizeEditing","resizeTable","registerDescriptionCallback","locale","commandParams","bind","accept","getColumnGroupElement","Users"];var ea,na;ea=ta,na=295,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{afterInit(){if(!this[oa("0x15")][oa("0x13")].has(oa("0x6")))return;const t=this[oa("0x15")][oa("0x13")][oa("0x14")]("TrackChangesEditing");t.enableCommand("resizeTableWidth",this.handleResizeTableWidthCommand[oa("0xb")](this)),t.enableCommand(oa("0x1e"),this[oa("0x2")][oa("0xb")](this)),t[oa("0x3")].registerCustomCallback(oa("0x0"),oa("0x7"),oa("0xc"),t._suggestionFactory[oa("0xf")](oa("0x0"),null,oa("0x5"))),t[oa("0x3")][oa("0x4")]("formatBlock",oa("0x7"),oa("0x5"),t[oa("0x3")][oa("0xf")](oa("0x0"),null,oa("0xc"))),t._descriptionFactory[oa("0x8")](this.handleSuggestionDescription[oa("0xb")](this))}handleResizeTableWidthCommand(t,e){const n=this[oa("0x15")][oa("0x13")][oa("0x14")]("TrackChangesEditing"),o=this.editor.plugins[oa("0x14")](oa("0x6")),s=e.table||this.editor[oa("0x19")].document[oa("0x18")][oa("0x10")]();this[oa("0x15")].model[oa("0x17")]((()=>{const r=o[oa("0xd")](s);let i=r?o[oa("0x1")](r):null,x=s[oa("0x1d")]("tableWidth")||null;const a=e.tableWidth||x,c=e.columnWidths||i,l=this[oa("0x15")][oa("0x13")][oa("0x14")](oa("0xe")).me;for(const t of n[oa("0x1c")]()){const e=t.getContainedElement();if(oa("0x7")===t.subType&&e===s){t[oa("0x12")]!==l&&t[oa("0x5")]();const e=t[oa("0x1a")][oa("0xa")];x=e[0][oa("0x16")],i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x11")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],oa("0x7"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&oa("0x7")===e.formatGroupId){const t="*Format:* resize table";return{type:oa("0x1b"),content:Yo(this[oa("0x15")][oa("0x9")],t)}}}}const ra=["get","plugins","editor","afterInit","Template","has"];var ia,xa;ia=ra,xa=170,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x1")](){const t=this[aa("0x0")];t[aa("0x5")][aa("0x3")](aa("0x2"))&&t[aa("0x5")][aa("0x4")]("TrackChangesEditing").enableCommand("insertTemplate")}}const la=["commands","enableCommand","get","plugins","TrackChangesEditing","insertTableOfContents","tableOfContents","afterInit","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS","locale"];var ua,da;ua=la,da=412,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x2")](){const t=this.editor;if(!t[ga("0x6")][ga("0x8")](ga("0x0")))return;t[ga("0x9")][ga("0x8")]("TrackChangesEditing")[ga("0x7")](ga("0x0"));const e=t[ga("0x9")][ga("0x8")](ga("0xa")),n=t[ga("0x5")];e._descriptionFactory[ga("0x3")](ga("0x1"),(t=>Yo(n,ga("0x4"),t)))}}const fa=["start","from","getChangedMarkers","locale","getNearestSelectionRange","editor","newRange","Title","end","registerPostFixer","nodeBefore","element","updateMarker","differ","_descriptionFactory","plugins","isTouching","forward","model","_splitMarkerName","registerElementLabel","isEqual","schema","suggestion","get","document","has","title-content","isCollapsed"];var ha,pa;ha=fa,pa=129,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this[ba("0x15")];if(!t.plugins[ba("0xd")](ba("0x17")))return;const e=t[ba("0x2")][ba("0xb")]("TrackChangesEditing");e[ba("0x1")][ba("0x7")](ba("0xe"),(()=>Yo(t[ba("0x13")],"ELEMENT_TITLE"))),t.model.document[ba("0x19")]((n=>{let o=!1;const s=Array[ba("0x11")](t[ba("0x5")][ba("0xc")][ba("0x0")][ba("0x12")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x6")](r);if(ba("0xa")!==s||!i[ba("0x16")])continue;const x=i[ba("0x16")],a=x[ba("0x18")][ba("0x1a")];if(!a||!a.is(ba("0x1b"),ba("0xe")))continue;if(!x[ba("0x10")][ba("0x3")](x[ba("0x18")]))continue;const c=t[ba("0x5")][ba("0x9")][ba("0x14")](x.end,ba("0x4"));if(c&&c[ba("0xf")]){const t=n.createRange(x[ba("0x10")],c.start);t[ba("0x8")](x)||(n[ba("0x1c")](r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const _a=["plugins","enableCommand","TrackChangesEditing","has","get","undo","afterInit"];var Ta,Ca;Ta=_a,Ca=393,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x5")](){const t=this.editor,e=t[ya("0x6")][ya("0x3")](ya("0x1"));t.plugins[ya("0x2")]("UndoEditing")&&(e[ya("0x0")](ya("0x4")),e.enableCommand("redo"))}}const Aa=["requires","afterInit","TableCaptionEditing","TrackChangesEditing","has","editor","toggleTableCaption","plugins","get"];var va,Ra;va=Aa,Ra=446,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x4")](){return[Mx]}[Sa("0x5")](){const t=this[Sa("0x0")];t[Sa("0x2")][Sa("0x8")](Sa("0x6"))&&t[Sa("0x2")][Sa("0x3")](Sa("0x7")).enableCommand(Sa("0x1"))}}const La=["document","handleListReversedCommand","styles","*Format:* set order to reversed","ELEMENT_","isFirstBlockOfListItem","listStyle","push","selection","from","_getSuggestionBlocks","DocumentListPropertiesUtils","locale","_descriptionFactory","enableCommand","replace","toUpperCase","listReversed","afterInit","listType","_getTranslationKeyForListStyle","change","DocumentListUtils","config","getSelectedBlocks","commandParams","editor","has","get","handleListStyleCommand","numbered","format","listStart","_LIST_","markMultiRangeBlockFormat","model","startIndex","bind","filter","_getSuggestionBlocksForListStyle","TrackChangesEditing","reversed","plugins","getAttribute","isListItemBlock","expandListBlocksToCompleteList","handleDescriptions","type"];var Na,wa;Na=La,wa=267,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[Ma("0x27")](){if(!this.editor.plugins[Ma("0x0")]("DocumentListPropertiesEditing"))return;const t=this[Ma("0x2f")][Ma("0x2c")][Ma("0x1")]("list.properties"),e=this[Ma("0x2f")][Ma("0xf")][Ma("0x1")]("TrackChangesEditing");t[Ma("0x17")]&&e.enableCommand(Ma("0x1b"),this[Ma("0x2")][Ma("0xa")](this)),t.reversed&&e[Ma("0x23")](Ma("0x26"),this.handleListReversedCommand.bind(this)),t[Ma("0x9")]&&e[Ma("0x23")](Ma("0x5"),this.handleListStartCommand[Ma("0xa")](this)),e[Ma("0x22")].registerDescriptionCallback(this[Ma("0x13")][Ma("0xa")](this))}[Ma("0x2")](t,e={}){const n=this[Ma("0x2f")].plugins[Ma("0x1")](Ma("0xd")),o=this._getSuggestionBlocksForListStyle();this.editor[Ma("0x8")][Ma("0x2a")]((()=>{n[Ma("0x7")](o,{commandName:Ma("0x1b"),commandParams:[{type:e.type}],formatGroupId:Ma("0x1b")})}))}[Ma("0x16")](t,e={}){const n=this[Ma("0x2f")].plugins[Ma("0x1")](Ma("0xd")),o=this[Ma("0x2f")][Ma("0xf")][Ma("0x1")](Ma("0x2b")),s=this._getSuggestionBlocks((t=>o.isListItemBlock(t)&&Ma("0x3")===t[Ma("0x10")](Ma("0x28"))));null!==s&&this[Ma("0x2f")].model[Ma("0x2a")]((()=>{n[Ma("0x7")](s,{commandName:Ma("0x26"),commandParams:[{reversed:e[Ma("0xe")]}],formatGroupId:Ma("0x26")})}))}handleListStartCommand(t,e={}){const n=this.editor.plugins.get("TrackChangesEditing"),o=this[Ma("0x2f")][Ma("0xf")].get(Ma("0x2b")),s=this[Ma("0x1f")]((t=>o[Ma("0x11")](t)&&"numbered"===t[Ma("0x10")](Ma("0x28"))));null!==s&&this[Ma("0x2f")][Ma("0x8")].change((()=>{n[Ma("0x7")](s,{commandName:"listStart",commandParams:[{startIndex:e[Ma("0x9")]}],formatGroupId:Ma("0x5")})}))}[Ma("0x13")](t){const e=this[Ma("0x2f")][Ma("0x21")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case"listStyle":o="*Change to:* %0",s={type:Ma("0x4"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[Ma("0x2e")][0][Ma("0x14")])))};break;case Ma("0x26"):o=n.commandParams[0][Ma("0xe")]?Ma("0x18"):"*Format:* set order to regular",s={type:Ma("0x4"),content:Yo(e,o)};break;case Ma("0x5"):o="*Format:* set start index to %0",s={type:"format",content:Yo(e,o,n[Ma("0x2e")][0][Ma("0x9")])}}return s}[Ma("0xc")](){const t=this.editor.plugins.get(Ma("0x2b"));let e=Array[Ma("0x1e")](this[Ma("0x2f")][Ma("0x8")][Ma("0x15")][Ma("0x1d")][Ma("0x2d")]());return e[Ma("0x1c")](...t[Ma("0x12")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[Ma("0x2f")][Ma("0xf")][Ma("0x1")](Ma("0x2b"));let n=Array[Ma("0x1e")](this[Ma("0x2f")][Ma("0x8")][Ma("0x15")][Ma("0x1d")][Ma("0x2d")]())[Ma("0xb")](t);if(!n.length)return null;n=e[Ma("0x12")](n);const o=[];for(const t of n)e[Ma("0x1a")](t)&&o[Ma("0x1c")](t);return o}[Ma("0x29")](t){return Ma("0x19")+this[Ma("0x2f")][Ma("0xf")].get(Ma("0x20")).getListTypeFromListStyleType(t).toUpperCase()+Ma("0x6")+t[Ma("0x25")]()[Ma("0x24")](/-/g,"_")}}const Fa=["TrackChangesEditing","tableCellBorderStyle","discard","_handlePropertyChange","handleDiscardAction","tableBackgroundColor","model","batch","handleSuggestionDescription","tableCellBorderColor","getAttribute","tableCellWidth","tableProperties","getSuggestionCallback","enableCommand","pluginName","data","get","nodeAfter","_descriptionFactory","accept","tableBorderColor","editor","enqueueChange","getFirstPosition","subType","tableCellHeight","plugins","locale","removeAttribute","formatBlock","_suggestionFactory","change","getSuggestions","tableBorderWidth","markBlockFormat","tableCellPadding","table","*Format:* change table cell properties","TableCellPropertiesEditing","tableCellProperties","tableBorderStyle","format","tableCellBackgroundColor","afterInit","findAncestor","tableAlignment","document","has","registerCustomCallback","getContainedElement","tableHeight","join","selection","tableCellVerticalAlignment","_getSuggestion","tableCellHorizontalAlignment"];var Pa,Da;Pa=Fa,Da=113,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this.tableProperties=[Ba("0x16"),Ba("0x2a"),Ba("0x23"),Ba("0x2f"),"tableWidth",Ba("0x34"),Ba("0x6")],this[Ba("0x29")]=[Ba("0xa"),Ba("0x2"),"tableCellBorderWidth",Ba("0x25"),Ba("0xc"),Ba("0x1b"),Ba("0x2c"),Ba("0x0"),Ba("0x37")]}static get[Ba("0x10")](){return"TrackChangesTableProperties"}[Ba("0x2d")](){const t=this[Ba("0x17")][Ba("0x1c")][Ba("0x12")](Ba("0x1"));if(this.editor[Ba("0x1c")].has("TablePropertiesEditing")){for(const e of this.tableProperties)t[Ba("0xf")](e,((t,n)=>{const o=this.editor.model[Ba("0x30")][Ba("0x36")][Ba("0x19")]()[Ba("0x2e")](Ba("0x26"));this._handlePropertyChange(e,[o],this[Ba("0xd")],"tableProperties",t,n)}));t[Ba("0x20")][Ba("0x32")](Ba("0x1f"),Ba("0xd"),"accept",t._suggestionFactory[Ba("0xe")](Ba("0x1f"),null,Ba("0x3"))),t[Ba("0x20")][Ba("0x32")](Ba("0x1f"),Ba("0xd"),Ba("0x3"),((t,e)=>this[Ba("0x5")](this[Ba("0xd")],t,e))),t[Ba("0x20")][Ba("0x32")](Ba("0x1f"),Ba("0xd"),Ba("0x35"),(()=>!1))}if(this[Ba("0x17")][Ba("0x1c")][Ba("0x31")](Ba("0x28"))){for(const e of this[Ba("0x29")])t[Ba("0xf")](e,((t,n)=>{const o=this[Ba("0x17")][Ba("0x1c")][Ba("0x12")]("TableUtils").getSelectionAffectedTableCells(this.editor[Ba("0x7")][Ba("0x30")][Ba("0x36")]);this[Ba("0x4")](e,o,this.tableCellProperties,Ba("0x29"),t,n)}));t[Ba("0x20")][Ba("0x32")](Ba("0x1f"),"tableCellProperties",Ba("0x15"),t._suggestionFactory[Ba("0xe")](Ba("0x1f"),null,"discard")),t[Ba("0x20")][Ba("0x32")]("formatBlock",Ba("0x29"),Ba("0x3"),((t,e)=>this[Ba("0x5")](this[Ba("0x29")],t,e))),t[Ba("0x20")].registerCustomCallback(Ba("0x1f"),"tableCellProperties",Ba("0x35"),(()=>!1))}t[Ba("0x14")].registerDescriptionCallback((t=>this[Ba("0x9")](t)))}[Ba("0x4")](t,e,n,o,s,r){const i=this[Ba("0x17")][Ba("0x1c")][Ba("0x12")](Ba("0x1"));this[Ba("0x17")][Ba("0x7")][Ba("0x18")](r[Ba("0x8")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0xb")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x24")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start[Ba("0x13")],s=n.commandParams[0];this[Ba("0x17")][Ba("0x7")][Ba("0x21")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Ba("0x1e")](n,o)}))}[Ba("0x9")](t){if(t[Ba("0x11")])switch(t[Ba("0x1a")]){case Ba("0xd"):return{type:Ba("0x2b"),content:Yo(this[Ba("0x17")][Ba("0x1d")],"*Format:* change table properties")};case Ba("0x29"):return{type:Ba("0x2b"),content:Yo(this[Ba("0x17")][Ba("0x1d")],Ba("0x27"))}}}[Ba("0x38")](t,e){const n=this[Ba("0x17")][Ba("0x1c")].get(Ba("0x1"));for(const o of n[Ba("0x22")]({skipNotAttached:!0})){const n=o[Ba("0x33")]();if(o[Ba("0x1a")]===e&&n===t)return o}return null}}const Ua=["attributes","isInContent","refresh","_addThreadToSuggestion","isObject","widget","toViewElement","insertion:chain","getShiftedBy","subType","isEqual","nodeBefore","acceptSuggestion","isSelectable","formatBlock:discard","getAncestors","collaboration.channelId","change:activeMarkers","getMarkers","_mergeNestedSuggestions","track-changes-user-not-found","pluginName","deletion:accept","createSelection","containsPosition","isRemovable","dataDowncast","_setSuggestionData","createPositionBefore","clone","locale","ready","suggestion:","PENDING_ACTION_SUGGESTION","bindElementToMarker","_registerDefaultCallbacks","_createSuggestion","define","CommentsRepository","schema","formatGroupId","forceDefaultExecution","buildSuggestion","options","discardSuggestion","addMarker:suggestion:formatBlock","insertion:accept","getFirstMarker","every","getSuggestionCallback","fromRange","removeMarker:suggestion:formatBlock","markBlockFormat","toJSON","_onDiscard","_saved","set","getChangedMarkers","consume","isTouching","formatBlock:accept","insert","name","isCollapsed","formatBlock:join","removeComment","then","markerToHighlight","editor","containsRangeInObject","TrackChangesEditing","nodeAfter","isBefore","range","ck-suggestion-marker--active","addRange","return","createdAt","ck-suggestion-marker","for","always","createRangeIn","never","resolve","high","editing","trackChanges.mergeNestedSuggestions","insertion:","addClass","creator","addMarkerName","track-changes-adapter-already-set","addSuggestionData","length","fire","_splitMarkerName","isLimit","forward","removeMarker","createPositionAt","splitPosition","_removeSuggestion","showSuggestionHighlights","_joinWithAdjacentSuggestions","_trackFormatChanges","reconvertMarker","_rangeIsInLocalUserInsertion","change:data","size","after","skipNestingCheck","track-changes-adapter-missing-getsuggestion","registerCustomCallback","authorName","add","unbind","_handleNewSuggestionMarker","howMany","formatInline:accept","removeMarkers","getAllAdjacentSuggestions","next","_commentsRepository","deletion:","_getExternalAuthor","getSuggestions","insertContent","_customCallbacks","suggestion","ck-suggestion-marker-","deletion","targetPosition","getAttribute","$graveyard","sort","getUser","formatBlock:chain","join","notReady","markerToData","formatInline:chain","markInsertion","isUndo","document","addMarker:suggestion","_checkSuggestionCorrectness","getRanges","_getAuthorFromId","isAtEnd","selection","formatInline:join","get","type","getDifference","end","addCommentThread","newRange","documentSelection","removeClass","hasComments","default","acceptAllSuggestions","filter","_joinSuggestions","error-saving-suggestion-data-suggestion-discarded","suggestion-type","_addSuggestionMarker","differ","discardSelectedSuggestions","_suggestionFactory","fetchCommentThread","batch","_model","normal","enableReadOnlyMode","createRange","getSuggestion","editingDowncast","getLastMatchingPosition","detach","conversion","_findSuggestions","plugins","marker-count","remove","commentThread","parent","formatInline:discard","backward","setTo","elementStart","ck-suggestion-marker-formatBlock","track-changes-suggestion-data-mismatch","getRange","getNearestSelectionRange","writer","deletion:discard","discard","rootName","change:_saved","includes","updateMarker","removeAttribute","group","element","acceptSelectedSuggestions","track-changes-command-not-found","markers","markerName","createPositionAfter","model","isOwn","trackChanges","low","has","_isForcedDefaultExecutionBlock","formatInline","enableCommand","map","root","markMultiRangeDeletion","rejected","registerPostFixer","move","addUser","_cutOutSuggestionMarker","highest","multi","chain","splice","getCustomProperty","_breakSuggestionMarker","markerReady","formatBlock:","position","upcast","discardAllSuggestions","insertion","accept","suggestionLoaded","getMultiRangeId","_updateSuggestionData","_enabledCommands","_getSuggestionData","values","isBlock","before","_suggestions","dataReady","getFirstRange","markerNameToElements","_editor","hasSuggestion","data-suggestion","author","_suggestionState","oldRange","containsRange","clear","authoredAt","isMultiRange","multipleBlocks","trackChanges.trackFormatChanges","external:","markDeletion","isAfter","enqueueChange","stopListening","listenTo","head","updateSuggestion","setAttribute","_descriptionFactory","isNextTo","value","from","commandName","suggestionChanged","data","rethrowUnexpectedError","formatInline:","isIntersectingWithRange","trackChangesCommand","previous","getItems","_setSuggestionRange","delete","getIntersection","some","change","adapter","stop","commands","Users","addHighlight","$marker","fromCharCode","deletion:chain","_adapter","deletion:join","deleteContent","hasCommentThread","substr","_defaultCallbacks","start","PendingActions","setSelection","elementToElement","config","getWalker","push","consumable","mapper","formatBlock","isInsideObject","item","removed","isExternal","split"];var Ga,Ha;Ga=Ua,Ha=351,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get requires(){return[za("0x6"),r.Users,t.PendingActions,cs,Cs,Rs,Ms,Bs,Ws,Js,er,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,dx,px,yx,Sx,Mx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x134")](){return za("0x26")}constructor(t){function e(t){return t.map((t=>String[za("0x108")](t)))[za("0x69")]("")}super(t),this.set("activeMarkers",[]),this.on(za("0x130"),((e,n,o,s)=>{this._model.change((()=>{for(const e of[...s,...o])this[za("0x8c")][za("0xaf")][za("0xb6")](e)&&t[za("0x35")][za("0x49")](e)}))})),this[za("0xf0")]=new ss(this[za("0x24")][za("0xb2")].schema,this.editor[za("0x13d")]),this._adapter=null,this[za("0x89")]=new Va(this[za("0x24")]),this[za("0xd7")]=new Map,this[za("0x5a")]=t[za("0x96")][za("0x77")](za("0x6")),this._enabledCommands=new Set,this._model=this[za("0x24")].model,this._suggestionState=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[za("0x114")][za("0x5")](za("0xe6"),za("0x80")),this[za("0x48")]=t[za("0x114")][za("0x77")]("trackChanges.trackFormatChanges"),t[za("0x114")][za("0x5")](za("0x36"),!0),this[za("0x132")]=t[za("0x114")].get(za("0x36")),this.trackChangesCommand=new d(t,this[za("0xd2")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,52,50,52])}init(){const t=this[za("0x24")];t.conversion[za("0x2f")](za("0x91"))[za("0x23")]({model:za("0x60"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t.markerName),o=["ck-suggestion-marker",za("0x61")+n];let s=3e3;return this.activeMarkers[za("0xa8")](t[za("0xb0")])&&(o[za("0x116")](za("0x2a")),s=3010),za("0x62")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion.for(za("0x139"))[za("0x52")]((e=>{e.on(za("0x70"),((e,n,o)=>{if(!o[za("0xb")][za("0x46")])return;const s=n[za("0x11b")];if(!s)return;const r=o[za("0x118")][za("0x125")](s);t[za("0xb2")].schema[za("0x123")](s)&&r&&!r[za("0xc6")](za("0x124"))&&r.is("containerElement")&&(0,x.toWidget)(r,o[za("0xa3")])}),{priority:za("0x34")})})),t[za("0x94")][za("0x2f")](za("0x139"))[za("0x23")]({model:"suggestion",view:(t,e)=>{if(!e[za("0xb")].showSuggestionHighlights)return null;const{type:n}=this[za("0x3f")](t[za("0xb0")]);return{classes:[za("0x2e"),za("0x61")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x11b")])return;if(o[za("0x11b")].is(za("0x75")))return void s.consumable[za("0x1a")](o[za("0x11b")],n[za("0x1e")]);const r=s[za("0x118")][za("0x125")](o.item);if(!o[za("0x11b")].is(za("0xac"))||!t[za("0xb2")][za("0x7")].isBlock(o[za("0x11b")])||r[za("0xc6")](za("0x106")))return;const{id:i}=this[za("0x3f")](o.markerName);s.writer.addClass([za("0x2e"),za("0x9f")],r),s.writer[za("0xef")](za("0xdd"),i,r),s[za("0x118")][za("0x2")](r,o[za("0xb0")]),e&&(this.activeMarkers[za("0xa8")](o[za("0xb0")])?s.writer[za("0x38")](za("0x2a"),r):s[za("0xa3")][za("0x7e")](za("0x2a"),r));for(const e of t[za("0xb2")][za("0x31")](o[za("0x11b")])[za("0xfc")]())s[za("0x117")][za("0x1a")](e,n[za("0x1e")]);s[za("0x117")].consume(o[za("0x11b")],n[za("0x1e")])};t[za("0x94")][za("0x2f")](za("0x139"))[za("0x52")]((t=>{t.on(za("0xd"),((t,e,o)=>{o[za("0xb")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0xc2")})})),t.conversion[za("0x2f")](za("0x139"))[za("0x6b")]({model:za("0x60"),view:(t,e)=>e[za("0xb")][za("0x46")]?null:{group:za("0x60"),name:t[za("0x10e")](11)}}),t[za("0x94")][za("0x2f")](za("0xcb"))[za("0x113")]({view:{name:za("0x60"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x0")+t[za("0x64")](za("0x85"))+":"+t[za("0x64")]("id");return t[za("0x64")]("marker-count")&&(n+=":"+t[za("0x64")](za("0x97"))),e.createElement(za("0x107"),{"data-name":n})}}),t.conversion[za("0x2f")]("upcast").dataToMarker({view:za("0x60")}),t[za("0x94")][za("0x2f")](za("0x91")).add((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:za("0x34")})})),t[za("0x94")].for(za("0x91"))[za("0x52")]((t=>{t.on(za("0x13"),((t,e,n)=>{const o=n[za("0x118")][za("0xda")](e[za("0xb0")]);if(o)for(const t of o)t[za("0xc6")](za("0x106"))||(n.writer[za("0x7e")]([za("0x2e"),"ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n[za("0xa3")][za("0xaa")](za("0xdd"),t),n[za("0x118")].unbindElementFromMarkerName(t,e[za("0xb0")]))}),{priority:za("0x34")})})),t[za("0xb2")][za("0x6f")][za("0xbe")]((e=>{let n=!1;const o=Array[za("0xf3")](t[za("0xb2")][za("0x6f")][za("0x87")][za("0x19")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x3f")](x);if(za("0x60")!==o)continue;const u=this[za("0xd7")][za("0x77")](l);if(null!=a[za("0x7c")])if(za("0xb8")==c&&(n=n||Xa(a[za("0x7c")],x,e,t.model[za("0x7")])),a[za("0x7c")][za("0x1f")]||"$graveyard"==a[za("0x7c")][za("0xbb")][za("0xa6")]||za("0x119")==c&&!Ja(a.newRange)||"deletion"==c&&(qa(i=a[za("0x7c")])||(r=i)[za("0x110")][za("0x9a")]==r.end[za("0x12a")]&&r[za("0x110")][za("0x74")]))e[za("0x42")](x),n=!0;else{if(!u||!u[za("0x120")])continue;s.add(u)}}var r,i;return s.size>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[za("0xb2")][za("0x6f")][za("0xbe")]((e=>{let n=!1;for(const o of t[za("0xb2")][za("0x6f")][za("0x87")].getChanges()){if(za("0x1d")!=o.type)continue;const s=o[za("0xca")][za("0x127")](o[za("0x3d")]);if(s.isAtEnd)for(const r of this[za("0xd7")][za("0xd4")]()){if(r.isMultiRange||!r[za("0x120")])continue;if(za("0x119")!=r.type)continue;const i=r[za("0xd9")]();if(i[za("0x110")][za("0x9a")]!=i.end[za("0x9a")]&&i[za("0x7a")].isEqual(o[za("0xca")])){const o=t[za("0xb2")][za("0x8f")](i[za("0x110")],s);e[za("0xa9")](r[za("0xf")](),{range:o}),n=!0}}}return n})),t[za("0xb2")].markers.on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[za("0x3f")](e.name),n=this[za("0xd7")].get(t);n&&n[za("0x3a")](e[za("0x1e")])}})),t[za("0xb2")][za("0x6f")].on(za("0x4b"),(()=>{const e=Array[za("0xf3")](t.model.document[za("0x87")][za("0x19")]())[za("0x82")]((t=>za("0x60")===this._splitMarkerName(t[za("0x1e")])[za("0xab")]));if(0===e[za("0x3d")])return;e.sort(((t,e)=>{const n=t.data[za("0xe0")],o=e.data[za("0xe0")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x110")].isBefore(o[za("0x110")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this._splitMarkerName(t);if(null===s[za("0xe0")]){const e=this[za("0x54")](t);o[za("0x52")](e)}else{const t=this[za("0xd7")].get(e);null!==s[za("0x7c")]||t[za("0x120")]?(n[za("0x52")](t[za("0xed")]),o.add(t)):this[za("0x45")](t)}}o[za("0x4c")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0x3e")](za("0xf5"),t)})),t.model.on("applyOperation",((e,n)=>{const o=n[0];if(!this._suggestions.size)return;if(!o.isDocumentOperation)return;if(o.batch[za("0x6e")]||!o[za("0x8b")].isLocal)return;let s,r;switch(o[za("0x78")]){case za("0x1d"):s=t[za("0xb2")][za("0x43")](o[za("0xca")]),r=s[za("0x127")](o[za("0x55")]);break;case za("0x11e"):s=t[za("0xb2")].createPositionAt(o[za("0x44")]),r=t[za("0xb2")][za("0x43")](o.moveTargetPosition);break;case za("0xbf"):s=t[za("0xb2")][za("0x43")](o[za("0x63")]),r=s[za("0x127")](o[za("0x55")]);break;default:return}const i=t[za("0xb2")][za("0x8f")](s,r);t[za("0xb2")][za("0x101")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x95")](i)){if(t[za("0xe4")])continue;if(za("0xb8")==t.type)continue;const n=t[za("0xf6")]&&t[za("0xf6")][za("0xe5")];(za("0x119")!=t[za("0x78")]||za("0x11e")==o.type&&!n)&&(e[za("0x25")]||za("0xcd")==t[za("0x78")]&&e[za("0xb3")]||t[za("0xd9")]()[za("0xe1")](i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:"lowest"}),t.model.on(za("0x10c"),((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this[za("0xb7")])return;if(!this[za("0xfa")].value)return;if(o[za("0x1f")])return;const r=t[za("0xb2")][za("0x7")],{start:i,end:x}=o[za("0xd9")](),a=i[za("0x27")]&&r[za("0x40")](i[za("0x27")])?null:r.getNearestSelectionRange(i,za("0x41")),c=x[za("0x12a")]&&r[za("0x40")](x[za("0x12a")])?null:r[za("0xa2")](x,za("0x9c")),l=t[za("0xb2")].createRange(a?a[za("0x110")]:i,c?c[za("0x7a")]:x);t.model[za("0x101")]((e=>{this[za("0xe8")](l);const n=t.model[za("0x7")][za("0xa2")](l.start);o.is(za("0x7d"))?e.setSelection(n):o[za("0x9d")](n)})),e[za("0x103")]()}),{priority:e.priorities[za("0x8d")]+10}),t.model.on(za("0x5e"),((e,n)=>{const o=n[n[za("0x3d")]-1];o&&o.forceDefaultExecution||this[za("0xb7")]||this[za("0xfa")].value&&(t[za("0xb2")].change((()=>{let o=t[za("0xb2")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x2c")]=o[za("0x13c")]();const s=o[za("0x7a")][za("0x12a")],r=t.model.schema;s&&r[za("0xd5")](s)&&!r[za("0x123")](s)&&(o=t[za("0xb2")][za("0x8f")](o[za("0x110")],t[za("0xb2")][za("0x43")](s,za("0x7a")))),this[za("0x6d")](o)})),e[za("0x103")]())}),{priority:za("0x34")}),this[za("0x24")][za("0x104")][za("0x52")](za("0xb4"),this[za("0xfa")]),this[za("0xb9")](za("0xb4"));const o=new p(t,this[za("0xd7")]);t[za("0x104")].add(za("0x12b"),o),this[za("0xb9")](za("0x12b"));const s=new C(t,this[za("0xd7")]);t[za("0x104")][za("0x52")](za("0xc"),s),this[za("0xb9")](za("0xc")),t[za("0x104")][za("0x52")](za("0x81"),new F(t,o,this[za("0xd7")])),this[za("0xb9")]("acceptAllSuggestions"),t.commands[za("0x52")](za("0xcc"),new F(t,s,this[za("0xd7")])),this[za("0xb9")](za("0xcc")),t[za("0x104")].add(za("0xad"),new U(t,o,this[za("0xd7")])),this[za("0xb9")](za("0xad")),t.commands[za("0x52")](za("0x88"),new U(t,s,this[za("0xd7")])),this[za("0xb9")]("discardSelectedSuggestions");const r=t.plugins[za("0x77")](za("0x6"));this.listenTo(r,"addComment",((t,{threadId:e})=>{const n=this[za("0xd7")][za("0x77")](e);n&&n[za("0x99")]&&1===n[za("0x99")].length&&this[za("0xd1")](e,{hasComments:!0})}),{priority:za("0xb5")}),this.listenTo(r,za("0x21"),((t,{threadId:e})=>{const n=this._suggestions[za("0x77")](e);n&&n[za("0x99")]&&!n[za("0x99")][za("0x3d")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:za("0xb5")})}set[za("0x102")](t){if(this[za("0x10a")])throw new e.CKEditorError(za("0x3b"),this);this[za("0x10a")]=t}get[za("0x102")](){return this[za("0x10a")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0xd7")][za("0xd4")]())t&&!e[za("0x120")]||n[za("0x116")](e);return e?n.map((t=>t[za("0x15")]())):n}[za("0x90")](t){const n=this[za("0xd7")][za("0x77")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[za("0xdc")](t){return this[za("0xd7")].has(t)}[za("0x3c")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x78")][za("0x11e")](":"),i=this[za("0xd7")][za("0x77")](n)||this[za("0x4")](s,r,n,e,o);if(this[za("0x122")](i),this[za("0x71")](i,s,r||null,e),i[za("0x2d")]=t[za("0x2d")],o&&o["@external"]){const t=o["@external"],e=this[za("0x5c")](t[za("0x51")]);i[za("0xe3")]=t[za("0x2d")],i.author=e,i[za("0x11d")]=!0}else i[za("0xe3")]=t.createdAt;switch(t.data&&(i[za("0xf6")]=t[za("0xf6")]),t[za("0x11f")]&&(i[za("0x11f")]=t.attributes),this[za("0x10a")]&&this._adapter.addSuggestion||(i[za("0x17")]=!0),this._suggestionState[za("0x77")](i)){case za("0x6a"):this._suggestionState[za("0x18")](i,za("0xd8"));break;case za("0xc8"):i.isInContent?(this[za("0xdf")][za("0x18")](i,"ready"),this.fire("suggestionLoaded",i)):this[za("0xdf")].set(i,za("0x11c"))}return i}[za("0x12b")](t){this[za("0x9")]((()=>{this.editor.model[za("0x101")]((()=>{for(const e of t[za("0x58")]())e.accept()}))}))}[za("0xc")](t){this[za("0x9")]((()=>{this[za("0x24")][za("0xb2")][za("0x101")]((()=>{for(const e of t[za("0x58")]())e[za("0xa5")]()}))}))}[za("0xb9")](t,n){const o=this[za("0x24")][za("0x104")][za("0x77")](t);if(!o)throw new e.CKEditorError(za("0xae"),this,{commandName:t});this[za("0xd2")].add(o),n&&o.on("execute",((t,e)=>{this[za("0xfa")][za("0xf2")]&&(this[za("0xb7")]||e[za("0x3d")]>0&&e[e[za("0x3d")]-1]&&e[e[za("0x3d")]-1][za("0x9")]||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:za("0x34")})}forceDefaultExecution(t){let n,o;const s=this[za("0xb7")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[za("0xf7")](o,this),n}[za("0x6d")](t,n=null,o={}){if(t[za("0x1f")])return null;const s=this[za("0x24")].plugins[za("0x77")]("Users").me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,za("0xcd")))if(o.isOwn){if(!o[za("0xf1")]){if(!this._mergeNestedSuggestions&&o[za("0x25")])continue;return e}if(n==e[za("0x128")]){const n=e[za("0xd9")]();return n.start[za("0x129")](t.end)?this[za("0xfd")](e,this[za("0x8c")][za("0x8f")](t[za("0x110")],n[za("0x7a")])):this._setSuggestionRange(e,this[za("0x8c")][za("0x8f")](n[za("0x110")],t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x37")+n:za("0xcd"),a=this[za("0x13a")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}markMultiRangeInsertion(t,n=za("0xc3"),o={}){const s=this.editor.plugins[za("0x77")](za("0x105")).me,r=this[za("0x89")][za("0x11")](za("0xcd"),n,za("0x69"));for(const e of this[za("0x5d")]())if(e.author.id==s.id&&za("0xcd")==e.type&&e.subType==n&&(r(e[za("0x72")](),t)||r(t,e.getRanges()))){for(const n of t)e[za("0x2b")](n);return e}if(this[za("0x132")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x95")](e,za("0xcd"))){if(!o[za("0xb3")])continue;let e=!0;for(const o of n.getRanges())for(const n of t)if(!o[za("0xe1")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0x37")+n,c=this[za("0x13a")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x86")](a,i,x,e,Zo.getMultiRangeId());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t[za("0x1f")])return null;if(za("0x32")===this[za("0x48")]){const e=this[za("0x89")][za("0x11")]("formatInline",o,za("0xce"));return this[za("0x9")]((()=>e([t],n,s))),null}const r=this[za("0x24")][za("0x96")][za("0x77")](za("0x105")).me,i=[];if(za("0x30")!==this[za("0x48")])for(const{suggestion:e,meta:n}of this[za("0x95")](t,za("0xcd")))n[za("0xb3")]&&!n.isInsideObject&&i[za("0x116")](...e[za("0x72")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0xff")](o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x3d")];){const o=n[e][za("0x79")](t);n[za("0xc5")](e,1,...o),e+=o[za("0x3d")]}}return n}(t,i);x.length&&this[za("0x8c")][za("0x101")]((()=>{for(const t of x){const e=this[za("0x89")][za("0x11")](za("0xb8"),o,za("0xce"));this[za("0x9")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x110")],a=t[za("0x7a")];for(const{suggestion:e,meta:n}of this[za("0x95")](t,"formatInline")){if(!n[za("0xb3")])continue;if(e[za("0x128")]!=o)continue;const s=e[za("0xd9")]();if(s.containsRange(t,!0))return null;x=x.isBefore(s[za("0x110")])?x:s.start,a=a[za("0xe9")](s[za("0x7a")])?a:s[za("0x7a")],i?s[za("0x110")][za("0x28")](i[za("0xd9")]().start)?(i.removeMarkers(),i=e):e.removeMarkers():i=e}const c=this._model[za("0x8f")](x,a);if(i)this[za("0xfd")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x13a")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x86")](za("0xf8")+o,t,i,c)}}return null}[za("0x14")](t,n,o=[],s=null,r={}){n[za("0x8")]||(n[za("0x8")]=n[za("0xf4")]),n[za("0xe5")]=t.is(za("0x29")),s=s||$a(n);const i=o[za("0xba")]((t=>Qa(t,this._model))),x=t.is("range")?t:Qa(t,this[za("0x8c")]);if("never"===this[za("0x48")]){const t=this[za("0x89")].getSuggestionCallback(za("0x119"),s,"accept");return this[za("0x9")]((()=>t([x],n,r))),null}i[za("0x116")](x);let a=!0;for(const t of i)if(!this[za("0x4a")](t)){a=!1;break}if(a&&za("0x30")!==this[za("0x48")]){const t=this[za("0x89")][za("0x11")](za("0x119"),s,za("0xce"));return this[za("0x9")]((()=>t([x],n,r))),null}let c=null,l=x[za("0x110")],u=x[za("0x7a")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,za("0x119"))){if(!e[za("0xb3")]||e[za("0xf1")]||e.containsRangeInObject||e[za("0x11a")])continue;if(t[za("0xf6")].formatGroupId!=n[za("0x8")])continue;const o=t.getFirstRange();if(t[za("0x128")]==s){if(o.containsRange(x,!0))return null;l=l[za("0x28")](o.start)?l:o.start,u=u[za("0xe9")](o[za("0x7a")])?u:o[za("0x7a")],c?o[za("0x110")].isBefore(c[za("0xd9")]().start)?(c.removeMarkers(),c=t):t[za("0x57")]():c=t}else{const e=x[za("0xff")](o);this[za("0xc1")](t,e)}}const d=this.editor.plugins.get("Users").me,g=(0,e.uid)(),m=d.id;if(c)return this[za("0xfd")](c,this[za("0x8c")][za("0x8f")](l,u)),c;{const t=this[za("0x13a")]({id:g,type:za("0xc9")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x86")]("formatBlock:"+s,g,m,this[za("0x8c")][za("0x8f")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n[za("0x8")]||(n.formatGroupId=n[za("0xf4")]);const i=t[0];n[za("0xe5")]=i.is(za("0x29")),s=s||$a(n);const x=o[za("0xba")]((t=>Qa(t,this[za("0x8c")]))),a=i.is(za("0x29"))?t:t.map((t=>Qa(t,this[za("0x8c")])));if(za("0x32")===this._trackFormatChanges){const t=this[za("0x89")][za("0x11")](za("0x119"),s,za("0xce"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[za("0x4a")](t)){c=!1;break}if(c&&"always"!==this[za("0x48")]){const t=this._suggestionFactory[za("0x11")](za("0x119"),s,za("0xce"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[za("0x24")][za("0x96")][za("0x77")]("Users").me;for(const t of this[za("0x5d")]()){if(t.author.id!=l.id)continue;if(za("0x119")!=t[za("0x78")]||t[za("0xf6")].formatGroupId!=n[za("0x8")])continue;const e=t[za("0x128")]==s;for(let n=0;n<a[za("0x3d")];n++){const o=a[n];for(const s of t[za("0x131")]()){const r=s[za("0xa1")]();if(o[za("0x129")](r)){e?(a.splice(n,1),n--):t[za("0x42")](s[za("0x1e")]);break}}}}if(0==a[za("0x3d")])return null;const u=this[za("0x89")][za("0x11")](za("0x119"),s,za("0x69"));for(const t of this.getSuggestions())if(t[za("0xde")].id==l.id&&"formatBlock"==t[za("0x78")]&&t[za("0xf6")][za("0x8")]==n.formatGroupId&&t[za("0x128")]==s&&(u(t.getRanges(),a)||u(a,t[za("0x72")]()))){for(const e of a)t[za("0x2b")](e);return t}const d=(0,e.uid)(),g=l.id,m=za("0xc9")+s,f=this[za("0x13a")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x86")](m,d,g,t,Zo[za("0xd0")]());return f}markDeletion(t,n=null,o={}){if(t[za("0x1f")])return null;const s=this[za("0x24")][za("0x96")][za("0x77")](za("0x105")).me,r=new i.LiveRange(t.start,t[za("0x7a")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0xcd")))if(e.isOwn&&!e[za("0xf1")])if(t.isMultiRange){const e=t[za("0x72")]()[za("0x82")]((t=>za("0x65")!=t[za("0xbb")].rootName));if(e.every((t=>r.containsRange(t,!0)))&&t[za("0xa5")](),e[za("0x100")]((t=>t.containsRange(r,!0)))){const t=this[za("0x89")].getSuggestionCallback(za("0x62"),n,"accept");return this[za("0x9")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[za("0xd9")]());null!==e&&t[za("0x16")]([e],null,o)}if(r[za("0x93")](),r[za("0x1f")]||"$graveyard"==r[za("0xbb")][za("0xa6")])return null;let x=null,a=r[za("0x110")],c=r[za("0x7a")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0x62")))if(e.isOwn)if(t[za("0xe4")]&&this[za("0x132")]){let e=!0;for(const n of t[za("0x72")]()){if(n[za("0xe1")](r,!0))return t;r[za("0xe1")](n)||(e=!1)}e&&t[za("0xa5")]()}else{const n=t[za("0xd9")]();if(n[za("0xe1")](r,!0)){if(!this._mergeNestedSuggestions&&e[za("0x25")])continue;return t}a=a.isBefore(n[za("0x110")])?a:n[za("0x110")],c=c[za("0xe9")](n[za("0x7a")])?c:n[za("0x7a")],x?n[za("0x110")].isBefore(x[za("0xd9")]()[za("0x110")])?(x[za("0x57")](),x=t):t[za("0x57")]():x=t}if(x)return this[za("0xfd")](x,this[za("0x8c")][za("0x8f")](a,c)),x;{const t=(0,e.uid)(),r=this._model.createRange(a,c),i=s.id,x=n?za("0x5b")+n:za("0x62"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x86")](x,t,i,r),l}}[za("0xbc")](t,n=za("0xc3"),o={}){const s=this[za("0x24")].plugins[za("0x77")](za("0x105")).me,r=t[za("0xba")]((t=>new i.LiveRange(t[za("0x110")],t[za("0x7a")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x95")](t,za("0xcd")))n[za("0xb3")]&&!n.isNextTo&&x.add(e);for(const e of x)if(e[za("0xe4")]){const s=e[za("0x72")]();if((!e.attributes||!e[za("0x11f")].skipNestingCheck)&&s[za("0x10")]((t=>r.some((e=>e.containsRange(t,!0)))))&&e[za("0xa5")](),r[za("0x10")]((t=>s[za("0x100")]((e=>e[za("0xe1")](t,!0)))))){const e=this._suggestionFactory[za("0x11")](za("0x62"),n,"accept");return this[za("0x9")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r.some((e=>e.containsRange(t,!0)))&&e[za("0xa5")](),r[za("0x10")]((e=>t.containsRange(e,!0)))){const t=this[za("0x89")][za("0x11")](za("0x62"),n,za("0xce"));return this[za("0x9")]((()=>t(r,null,o))),null}}const a=this[za("0x89")][za("0x11")](za("0x62"),n,"join");let c=null;for(const t of this[za("0x5d")]())if(t[za("0xde")].id==s.id&&t.isInContent&&za("0x62")==t[za("0x78")]&&t[za("0x128")]==n&&(a(t.getRanges(),r)||a(r,t.getRanges())))if(c){if(t[za("0x99")]&&t[za("0x99")][za("0x3d")])continue;for(const e of t[za("0x72")]())c[za("0xf9")](e)||c[za("0x2b")](e);t.removeMarkers()}else{c=t;for(const e of r)t[za("0xf9")](e)||t[za("0x2b")](e)}if(c)return c;x[za("0xe2")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x95")](t,za("0x62")))n[za("0xb3")]&&x[za("0x52")](e);for(const t of x){const e=t[za("0x72")]();if((!o||!o.skipNestingCheck)&&r[za("0x10")]((t=>e[za("0x100")]((e=>e[za("0xe1")](t,!0))))))return t;(!t[za("0x11f")]||!t[za("0x11f")][za("0x4e")])&&e.every((t=>r[za("0x100")]((e=>e[za("0xe1")](t,!0)))))&&t[za("0xa5")]()}const l=(0,e.uid)(),u=s.id,d="deletion:"+n,g=this[za("0x13a")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[za("0x93")](),t.isCollapsed||za("0x65")==t.root[za("0xa6")]||this[za("0x86")](d,l,u,t,Zo[za("0xd0")]());return g}[za("0xfd")](t,e){const n=t[za("0xf")]();this[za("0x8c")][za("0x101")]((t=>{t[za("0xa9")](n,{range:e})}))}[za("0x122")](t){const e=t.id,n=this.editor[za("0x114")][za("0x77")](za("0x12f"));this[za("0x5a")][za("0x10d")](e)||this[za("0x5a")][za("0x7b")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository.getCommentThread(e);o[za("0x53")](za("0x138")),o.isRemovable=!1,t.commentThread=o}[za("0x71")](t,n,o,s){if(t.type!=n||t[za("0x128")]!=o||t[za("0x39")].id!=s)throw this.editor[za("0x8e")](za("0xa0")),new e.CKEditorError(za("0xa0"),this)}_cutOutSuggestionMarker(t,n){const o=t[za("0xd9")]();if(n[za("0x129")](o))t[za("0x57")]();else if(o.containsRange(n)){const s=this[za("0x8c")][za("0x43")](n.start[za("0x12a")],za("0x7a"));this[za("0xfd")](t,this[za("0x8c")][za("0x8f")](o[za("0x110")],s));const r=(0,e.uid)(),i=t[za("0x39")].id,x=t[za("0x78")]+":"+t[za("0x128")];this[za("0x13a")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[za("0x11f")]});const a=this[za("0x8c")][za("0x43")](n[za("0x7a")][za("0x9a")],za("0x4d")),c=this[za("0x8c")].createRange(a,o[za("0x7a")]);this[za("0x86")](x,r,i,c)}else if(o[za("0x137")](n[za("0x110")])){const e=this[za("0x8c")][za("0x43")](n.start[za("0x12a")],"end");this[za("0xfd")](t,this[za("0x8c")][za("0x8f")](o[za("0x110")],e))}else{const e=this[za("0x8c")].createPositionAt(n.end.parent,"after");this[za("0xfd")](t,this[za("0x8c")][za("0x8f")](e,o[za("0x7a")]))}}[za("0x4a")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0xcd"))){if(!n[za("0xb3")])continue;const o=e[za("0x72")]();for(const e of o)if(!t[za("0x79")](e)[za("0x3d")])return!0}return!1}_getAuthorFromId(t){const n=this[za("0x24")].plugins[za("0x77")](za("0x105"))[za("0x67")](t);if(!n)throw new e.CKEditorError(za("0x133"),this);return n}[za("0x5c")](t){const e=this[za("0x24")][za("0x96")].get(za("0x105")),n=(0,r.hashObject)(za("0xe7")+t);return e[za("0x67")](n)||e[za("0xc0")]({id:n,name:t})}[za("0x4")](t,e,n,o,s){const r=this[za("0x73")](o),i=this._suggestionFactory[za("0xa")](t,e,n,r,s,(t=>this[za("0xd1")](n,{attributes:t})));return this[za("0xec")](i,za("0xce"),(()=>{this[za("0xd1")](n,{state:"accepted"})}),{priority:za("0x34")}),this.listenTo(i,za("0xa5"),(()=>{this._updateSuggestionData(n,{state:za("0xbd")})}),{priority:za("0x34")}),this._suggestions[za("0x18")](n,i),this[za("0xdf")].set(i,za("0x6a")),i}_splitMarkerName(t){const e=t[za("0x11e")](":");return{group:e[0],type:e[1],subType:e[za("0x3d")]>=5?e[2]:null,id:e[za("0x3d")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[za("0x3d")]?e[5]:null}}[za("0xc7")](t,n,o){const s=t.getFirstRange(),r=s[za("0x110")],i=s[za("0x7a")];this[za("0xfd")](t,this[za("0x8c")].createRange(r,n));const x=(0,e.uid)(),a=t[za("0x39")].id,c=t[za("0x78")]+(t[za("0x128")]?":"+t[za("0x128")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x11f")],data:t[za("0xf6")]}),za("0x119")==t[za("0x78")]&&(o=this[za("0x8c")][za("0x13b")](o[za("0x9a")])),this._addSuggestionMarker(c,x,a,this[za("0x8c")].createRange(o,i))}_findSuggestions(t,e=null){const n=[],o=this[za("0x8c")][za("0x7")],s=this[za("0x24")][za("0x96")][za("0x77")]("Users").me;for(const r of this.getSuggestions())if(r[za("0x120")]&&(!e||r[za("0x78")]==e))for(const e of r[za("0x72")]()){const i=t[za("0x110")][za("0x129")](e[za("0x7a")])||t[za("0x7a")].isEqual(e.start);if(i||t[za("0xff")](e)){const x=t.containsRange(e)&&Ka(o,e[za("0x110")],t),a=e[za("0xe1")](t)&&Ka(o,t[za("0x110")],e);n[za("0x116")]({suggestion:r,meta:{isOwn:s==r[za("0xde")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x86")](t,e,n,o,s){this._model[za("0x101")]((r=>{let i=za("0x0")+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x45")](t){const e=t.previous,n=t.next;t[za("0xfb")]=null,null!=e&&(e[za("0x59")]=null),t.next=null,null!=n&&(n[za("0xfb")]=null),za("0x13e")==this[za("0xdf")].get(t)&&(this[za("0xdf")].set(t,za("0x11c")),this[za("0x3e")]("suggestionUnloaded",t,e,n))}_setSuggestionData(t){const n=t.id,o=this[za("0x3c")](t);if(this[za("0x10a")]&&this[za("0x10a")].addSuggestion){const s=this.editor[za("0x96")][za("0x77")](za("0x111")),r=o[za("0x7f")],i=o.subType?o.type+":"+o.subType:o[za("0x78")],x=this[za("0x24")][za("0x13d")],a=s[za("0x52")](Yo(x,za("0x1"))),c={id:n,type:i,hasComments:r,data:t[za("0xf6")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o.attributes};this._adapter.addSuggestion(c)[za("0x22")]((t=>{o[za("0x17")]=!0,s.remove(a),t&&t.createdAt&&(this[za("0xd7")][za("0x77")](n)[za("0x2d")]=t[za("0x2d")])})).catch((t=>{throw(0,e.logWarning)(za("0x84")),this.editor.model[za("0xea")]({isUndoable:!1},(()=>{o[za("0xa5")]()})),o[za("0xeb")](),this[za("0xd7")][za("0xfe")](o.id),this[za("0xdf")][za("0xfe")](o),t}))}return o}[za("0xd1")](t,e){const n=this[za("0x24")].plugins[za("0x77")](za("0x111")),o=this[za("0x90")](t);if(this[za("0x10a")]&&this._adapter[za("0xee")])if(o._saved){const o=n[za("0x52")](Yo(this.editor[za("0x13d")],za("0x1")));this[za("0x10a")][za("0xee")](t,e)[za("0x22")]((()=>{n[za("0x98")](o)}))}else o.on(za("0xa7"),(()=>{this[za("0xd1")](t,e)}))}_getSuggestionData(t){if(!this[za("0x10a")]||!this[za("0x10a")][za("0x90")])throw new e.CKEditorError(za("0x4f"),this);return this[za("0x10a")][za("0x90")](t)}[za("0x54")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0x3f")](t),r=this[za("0xd7")][za("0x77")](e)||this[za("0x4")](n,o,e,s,{});switch(this[za("0x71")](r,n,o,s),this._suggestionState[za("0x77")](r)){case za("0x6a"):this[za("0xd3")](e).then((t=>{let n=Promise[za("0x33")]();t.hasComments&&(n=this._commentsRepository[za("0x8a")]({channelId:this.editor.config.get(za("0x12f")),threadId:e})),n[za("0x22")]((()=>{this[za("0x3c")](t)[za("0x17")]=!0}))})),this._suggestionState[za("0x18")](r,za("0xc8"));break;case za("0x11c"):this[za("0xd1")](e,{state:"open"});case za("0xd8"):this[za("0xdf")][za("0x18")](r,za("0x13e")),this[za("0x3e")](za("0xcf"),r);break;case za("0x13e"):this[za("0x3e")]("suggestionChanged",r)}return r.addMarkerName(t),r}_refreshSuggestionsChain(t){const e=Array[za("0xf3")](t)[za("0x82")]((t=>!t[za("0xe4")])),n=this[za("0x5d")]({skipNotAttached:!0})[za("0x82")]((t=>!t[za("0xe4")])),o=n[za("0x82")]((e=>!t[za("0xb6")](e))),s=new Map(n.map((t=>[t,this._suggestionFactory[za("0x11")](t[za("0x78")],t[za("0x128")],za("0xc4"))]))),r=new Map(n.map((t=>[t,t[za("0xd9")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x3d")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x3d")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x3d")];t++){const n=e[t];!x[za("0xb6")](n)&&n.previous&&(n[za("0xfb")][za("0x59")]===n&&(n[za("0xfb")][za("0x59")]=null),n[za("0xfb")]=null),!i.has(n)&&n[za("0x59")]&&(n[za("0x59")][za("0xfb")]===n&&(n[za("0x59")].previous=null),n[za("0x59")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][za("0x59")]=n[1],n[1][za("0xfb")]=n[0],i.add(n[0]),x[za("0x52")](n[1]))}}function c(t,e){if(t[za("0xde")].id!==e[za("0xde")].id)return null;const n=s[za("0x77")](t)(t,e,r.get(t),r.get(e));return n&&s[za("0x77")](e)(t,e,r[za("0x77")](t),r[za("0x77")](e))?n[1].commentThread&&n[1][za("0x99")][za("0x3d")]?null:n:null}}[za("0x47")](t){const e=Array.from(t),n=this[za("0x5d")]({skipNotAttached:!0}),o=n.filter((e=>!t[za("0xb6")](e))),s=new Map(e[za("0xba")]((t=>[t,this[za("0x89")][za("0x11")](t[za("0x78")],t[za("0x128")],za("0x69"))]))),r=new Map(n[za("0xba")]((t=>[t,t.getRanges()])));for(let t=0;t<e[za("0x3d")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x3d")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0x3d")];i++){const o=n[i];if(o[za("0x78")]!==e[za("0x78")]||o[za("0xde")].id!==e.author.id||o.subType!==e[za("0x128")])continue;const x=s.get(e),a=r[za("0x77")](e),c=r[za("0x77")](o),l=e[za("0x99")]&&e[za("0x99")][za("0x3d")],u=o[za("0x99")]&&o[za("0x99")].length;if(!l&&x(c,a))return t[za("0x83")](o,e),r[za("0xfe")](e),!0;if(!u&&x(a,c))return t[za("0x83")](e,o),r[za("0xfe")](o),!0}return!1}}[za("0x83")](t,e){if(t[za("0xe4")])for(const n of e[za("0x72")]())t.addRange(n);else{const n=e[za("0xd9")]()[za("0x7a")];this[za("0xfd")](t,this[za("0x8c")][za("0x8f")](t[za("0xd9")]().start,n))}e.removeMarkers()}}class Va{constructor(t){this._editor=t,this[za("0x8c")]=t[za("0xb2")],this[za("0x5f")]=new Map,this[za("0x10f")]=new Map,this[za("0x3")]()}[za("0xa")](t,e,n,o,s,r){return new Zo(this[za("0x8c")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,"accept")(...n),onDiscard:(...n)=>this[za("0x11")](t,e,"discard")(...n)})}[za("0x50")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x5f")][za("0x18")](s,o)}[za("0x11")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x5f")].get(o)||this._defaultCallbacks[za("0x77")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t[za("0x66")](((t,e)=>t[za("0x110")][za("0x28")](e[za("0x110")])?1:-1)),this[za("0x8c")][za("0x101")]((e=>{for(const n of t){let t;t=n.end[za("0x74")]&&n[za("0x7a")][za("0x9a")]==n.start[za("0x27")]?e[za("0x136")](n[za("0x110")][za("0x27")],"on"):e[za("0x136")](n),this[za("0x8c")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x8c")].change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t.map((t=>(qa(t)&&(t=this[za("0x8c")][za("0x8f")](t[za("0x7a")])),t))).filter((t=>za("0x65")!==t[za("0xbb")][za("0xa6")]));if(r[za("0x3d")]<1)return;const x=Array[za("0xf3")](this[za("0x8c")][za("0x6f")][za("0x75")][za("0x72")]())[za("0xba")]((t=>i.LiveRange[za("0x12")](t)));n.setSelection(r);for(const t of this[za("0xdb")][za("0x104")][za("0x104")]())t[za("0x121")]();s[za("0x116")]({forceDefaultExecution:!0}),this[za("0xdb")].execute(o,...s);const a=x[za("0x82")]((t=>za("0x65")!=t[za("0xbb")][za("0xa6")]));a.length>0&&n[za("0x112")](a);for(const t of x)t[za("0x93")]()}))},o=(t,e)=>1==t[za("0x3d")]&&1==e[za("0x3d")]&&t[0][za("0x7a")][za("0x129")](e[0][za("0x110")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x8c")])?[t,e]:Za(e,t,o,n,this[za("0x8c")])?[e,t]:null;this[za("0x10f")][za("0x18")](za("0xe"),t),this[za("0x10f")][za("0x18")]("insertion:discard",e),this[za("0x10f")][za("0x18")]("insertion:join",o),this[za("0x10f")][za("0x18")](za("0x126"),s),this[za("0x10f")].set(za("0x135"),e),this[za("0x10f")][za("0x18")](za("0xa4"),t),this[za("0x10f")].set(za("0x10b"),o),this[za("0x10f")].set(za("0x109"),s),this._defaultCallbacks[za("0x18")](za("0x56"),n),this[za("0x10f")][za("0x18")](za("0x9b"),t),this._defaultCallbacks.set(za("0x76"),o),this[za("0x10f")][za("0x18")](za("0x6c"),t),this[za("0x10f")][za("0x18")](za("0x1c"),n),this[za("0x10f")][za("0x18")](za("0x12d"),t),this._defaultCallbacks[za("0x18")](za("0x20"),o),this[za("0x10f")][za("0x18")](za("0x68"),t)}}function Ka(t,e,n){for(const o of e[za("0x9a")][za("0x12e")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n.containsItem(o))return!1;if(t.isObject(o)||t[za("0x40")](o))return!0}return!1}function qa(t){return t[za("0x7a")][za("0x9a")]==t[za("0x110")][za("0x27")]&&t.end.isAtStart}function Xa(t,e,n,o){const s=t=>!t[za("0x11b")].is("$textProxy")&&!o[za("0x123")](t[za("0x11b")]),r=t[za("0x110")][za("0x92")](s),i=t.end[za("0x92")](s,{direction:"backward"});return!(t[za("0x110")].isEqual(r)&&t[za("0x7a")][za("0x129")](i)||(r[za("0x28")](i)?n[za("0xa9")](e,{range:n[za("0x8f")](r,i)}):n[za("0x42")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x110")][za("0x27")];return e&&e.is(za("0xac"))}function Qa(t,e){const n=e[za("0x7")][za("0x123")](t)||e[za("0x7")][za("0x12c")](t);return e[za("0x8f")](e[za("0x43")](t,za("0xd6")),n?e[za("0xb1")](t):e[za("0x43")](t,"end"))}function Za(t,e,n,o,s){if(n[za("0x7a")][za("0x129")](o[za("0x110")]))return!0;if(t[za("0x78")]!=e[za("0x78")])return!1;if(!n[za("0x7a")][za("0x1b")](o[za("0x110")]))return!1;const r=s[za("0x8f")](n[za("0x7a")],o[za("0x110")])[za("0x115")]();for(const t of r)if([za("0x9e"),"elementEnd"][za("0xa8")](t[za("0x78")])&&s[za("0x7")].isLimit(t[za("0x11b")]))return!1;return!0}const Ya=["_pendingAction","change:isDirty","unbind","getRanges","model","acceptSuggestion","isEnabled","canDiscard","_discardCommand","stopListening","remove","bind","PendingActions","destroy","_setPendingAction","add","_acceptCommand","plugins","commentThreadController","canEditAt","view","get","commands","discardSuggestion","_editor","PENDING_ACTION_SUGGESTION","_removePendingAction","execute","locale","canAccept","listenTo"];var tc,ec;tc=Ya,ec=327,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this.model=e,this[nc("0x3")]=n,this[nc("0x1")]=o,this[nc("0x7")]=t,this[nc("0x1e")]=t.commands.get(nc("0x13")),this[nc("0x16")]=t[nc("0x5")][nc("0x4")](nc("0x6")),this[nc("0x3")][nc("0x19")](nc("0x14")).to(this[nc("0x1e")],this._discardCommand,((t,e)=>t||e)),this.view[nc("0x19")](nc("0xc")).to(this._acceptCommand,nc("0x14"),(t=>t&&this[nc("0x7")][nc("0x12")].canEditAt(e[nc("0x11")]()))),this[nc("0x3")][nc("0x19")]("canDiscard").to(this[nc("0x16")],nc("0x14"),(t=>t&&this[nc("0x7")][nc("0x12")][nc("0x2")](e[nc("0x11")]()))),this._pendingAction=null,n.isDirty&&this[nc("0x1c")](),this[nc("0xd")](n,nc("0x13"),(()=>this[nc("0x13")]())),this[nc("0xd")](n,nc("0x6"),(()=>this[nc("0x6")]())),this[nc("0xd")](n,nc("0xf"),(()=>{n.isDirty?this[nc("0x1c")]():this[nc("0x9")]()}))}acceptSuggestion(){this._acceptCommand[nc("0xa")](this[nc("0x12")].id)}[nc("0x6")](){this[nc("0x16")][nc("0xa")](this.model.id)}[nc("0x1b")](){this[nc("0x3")].unbind(nc("0x14")),this[nc("0x3")][nc("0x10")](nc("0xc")),this[nc("0x3")][nc("0x10")](nc("0x15")),this[nc("0x17")](),this[nc("0x1")][nc("0x1b")](),this[nc("0xe")]&&this._removePendingAction()}[nc("0x1c")](){const t=Yo(this[nc("0x7")][nc("0xb")],nc("0x8"));this[nc("0xe")]=this[nc("0x7")].plugins[nc("0x4")](nc("0x1a"))[nc("0x1d")](t)}[nc("0x9")](){null!==this[nc("0xe")]&&this[nc("0x7")][nc("0x0")][nc("0x4")](nc("0x1a"))[nc("0x18")](this[nc("0xe")]),this[nc("0xe")]=null}}const sc=["focus","hasDirtyComment","set","setData","canDiscard","CommentView","_createCommentThreadInputView","editorConfig","disableComments","_localUser","element","fire","showInput","length","bind","isDirty","assign","commentsListView","descriptionParts","removeComment","commentThreadInputView","_model","disabledSubmit","commentThread","authoredAt","_createCommentViews","_config","delegate","isReadOnly","destroy","commentInputView","cancel"];var rc,ic;rc=sc,ic=396,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x5")]=null,this[xc("0x8")]=null,this[xc("0x16")]("isActive",!1),this.set(xc("0xc"),e.authoredAt),this[xc("0x2")]("authoredAt").to(e),this.set(xc("0x6"),[]),this[xc("0x16")](xc("0x3"),!1),this[xc("0x16")]("isEnabled",!1),this[xc("0x16")]("canAccept",!1),this[xc("0x16")](xc("0x18"),!1),this._model=e,this[xc("0x1d")]=n,this[xc("0xe")]=o,o[xc("0x1c")]?this[xc("0x16")]("length",1):this[xc("0xd")]()}[xc("0x14")](){this[xc("0x1e")].focus()}[xc("0x11")](){this.commentsListView&&this[xc("0x5")][xc("0x11")](),this.commentThreadInputView&&this[xc("0x8")][xc("0x11")](),super[xc("0x11")]()}[xc("0xd")](){const{CommentsListView:t}=this._config;this.commentsListView=new t(this.locale,this[xc("0x9")][xc("0xb")],Object[xc("0x4")]({CommentView:this._config[xc("0x19")]},this._config)),this.commentsListView[xc("0xf")](xc("0x7")).to(this),this[xc("0x5")][xc("0xf")]("updateComment").to(this),this.commentsListView.bind("isActive").to(this),this[xc("0x16")](xc("0x1"),this[xc("0x5")].length+1),this[xc("0x2")](xc("0x1")).to(this.commentsListView,"length",(t=>t+1)),this[xc("0x8")]=this._createCommentThreadInputView(),this.on(xc("0x7"),(()=>this.focus())),this[xc("0x2")](xc("0x3")).to(this.commentsListView,xc("0x15"),this.commentThreadInputView[xc("0x12")],"value",((t,e)=>t||!!e))}[xc("0x1a")](){const{CommentThreadInputView:t}=this[xc("0xe")],e=new t(this.locale,this[xc("0x1d")],this._config[xc("0x1b")]),n=e[xc("0x12")];return e[xc("0x2")](xc("0x0")).to(this,"isActive",this[xc("0x9")][xc("0xb")],"isReadOnly",n,"value",((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[xc("0x1f")]("addComment",e),n.editor[xc("0x17")]("")})),n.on(xc("0x13"),(()=>this.focus())),n[xc("0x2")](xc("0xa")).to(this._model[xc("0xb")],xc("0x10")),e}}const cc=["push","querySelector","ck-suggestion-wrapper--active","source","Discard suggestion","element","ck-annotation__info-name","EXTERNAL_AVATAR","ck-suggestion__actions","isExternal","innerHTML","ck-suggestion__info-name","extendTemplate","discardButton","_config","@external",'<span class="ck-suggestion-color" style="background-color: ',"map","ck-suggestion--disabled-comments","creator","_createButton","<p>",'"></span>',"ck-annotation__user","ck-suggestion-wrapper","</span>","attributes","ck-comment__info-time","bind","acceptButton","cancel","set","userView","execute","render","Accept suggestion",".ck-annotation__content-wrapper","isEnabled","children","title","commentThreadInputView","authoredAt","ck-suggestion","getExternalSuggestionNote","commentThread","type","canAccept","descriptionParts","time","EXTERNAL_IMPORT_WORD_SUGGESTION","_model","innerText","ck-annotation__info","disableComments","importWord","name","description","commentsListView","isActive","ck-annotation__info-time","_descriptionElement","ck-suggestion-","ck-suggestion--discard",'" title="',"locale","div","check","ck-suggestion__info","createElement","formatDateTime","ck-annotation__actions","getTemplate","change:description",'<span class="ck-suggestion-type">',"EXTERNAL_SUGGESTION","author","bindTemplate","getUserViewNotificationText","span","setTemplate"];var lc,uc;lc=cc,uc=225,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[dc("0x2e")](dc("0x3c"),""),this[dc("0x2b")]("type").to(this,dc("0x3e"),(t=>t&&t[0]?t[0][dc("0x3c")]:"")),this[dc("0x2b")](dc("0x47")).to(this,dc("0x3e"),this,dc("0x49"),((t,e)=>{let n="";for(const e of t)n+=dc("0x24")+mc(e.content,e.color)+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[dc("0x2c")]=this[dc("0x23")](Yo(e,dc("0x32")),t.icons[dc("0x1")],"ck-suggestion--accept","acceptSuggestion","sw"),this[dc("0x2c")][dc("0x2b")](dc("0x34")).to(this,dc("0x3d")),this[dc("0x1c")]=this[dc("0x23")](Yo(e,dc("0x13")),t.icons[dc("0x2d")],dc("0x4d"),"discardSuggestion","sw"),this[dc("0x1c")][dc("0x2b")](dc("0x34")).to(this,"canDiscard"),this.userView=new r.UserView(e,this[dc("0x41")][dc("0xa")],this[dc("0xc")]()),this[dc("0x2f")][dc("0x1b")]({attributes:{class:["ck-suggestion__user",dc("0x26")]}}),this[dc("0xe")](this[dc("0x6")]())}[dc("0x6")](){const t=this[dc("0xb")],e=[{tag:dc("0x0"),attributes:{class:[dc("0x2"),dc("0x43")]},children:[{tag:dc("0xd"),children:[{text:this[dc("0x2f")][dc("0x46")]}],attributes:{class:[dc("0x1a"),dc("0x15")]}},{tag:dc("0x3f"),attributes:{datetime:t.to(dc("0x38")),class:[dc("0x2a"),dc("0x4a")]},children:[{text:t.to(dc("0x38"),(t=>this[dc("0x1d")][dc("0x4")](t)))}]}]},{tag:dc("0x0"),attributes:{class:[dc("0x17"),dc("0x5")]},children:[this[dc("0x2c")],this[dc("0x1c")]]},{tag:dc("0x0"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[dc("0x41")].isExternal&&e[dc("0xf")]({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this[dc("0x3a")]()}]});const n={tag:dc("0x0"),attributes:{class:[dc("0x27"),t.if(dc("0x49"),dc("0x11")),t.to(dc("0x3c"),(t=>dc("0x4c")+t)),this[dc("0x1d")][dc("0x44")]&&dc("0x21")],"data-suggestion-id":this[dc("0x41")].id,"data-thread-id":this._model[dc("0x3b")].id,"data-author-id":this[dc("0x41")][dc("0xa")].id,tabindex:-1},children:[{tag:dc("0x0"),attributes:{class:[dc("0x39"),"ck-annotation"]},children:[this[dc("0x2f")],{tag:"div",attributes:{class:["ck-suggestion__main","ck-annotation__main"]},children:e}]}]};return this[dc("0x48")]&&this[dc("0x37")]&&n[dc("0x35")][dc("0xf")](this[dc("0x48")],this.commentThreadInputView),n}[dc("0x31")](){super[dc("0x31")](),this[dc("0x4b")]=this[dc("0x14")][dc("0x10")](dc("0x33")),this._descriptionElement[dc("0x19")]=this[dc("0x47")],this.on(dc("0x7"),((t,e,n)=>{this[dc("0x4b")][dc("0x19")]=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this.locale);return i[dc("0x2e")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[dc("0x1b")]({attributes:{class:n}}),i.on(dc("0x30"),(()=>{this.fire(o,this._model.id)})),i}[dc("0x3a")](){return dc("0x45")===this[dc("0x41")][dc("0x29")]["@external"][dc("0x12")]?Yo(this[dc("0x4f")],dc("0x40")):Yo(this.locale,dc("0x9"))}getUserViewNotificationText(){return this[dc("0x41")][dc("0x18")]?dc("0x45")===this._model.attributes[dc("0x1e")][dc("0x12")]?Yo(this[dc("0x4f")],"EXTERNAL_IMPORT_WORD_AVATAR",this[dc("0x41")][dc("0x22")][dc("0x46")]):Yo(this[dc("0x4f")],dc("0x16"),this[dc("0x41")][dc("0x22")][dc("0x46")]):null}}function mc(t,e){let n="";return n+=t.split("*")[dc("0x20")](((t,e)=>e%2!=0?dc("0x8")+fc(t)+dc("0x28"):fc(t))).join(""),e&&(n+=dc("0x1f")+e.value+dc("0x4e")+e[dc("0x36")]+dc("0x25")),n}function fc(t){const e=document[dc("0x3")](dc("0xd"));return e[dc("0x42")]=t,e[dc("0x19")]}const hc=["mainView","_refreshActiveMarkers","from","_disableComments","isInContent","TrackChangesUI","type","push","TrackChangesEditing","execute","toMany","unbind","length","actionView","button","_descriptionFactory","_suggestionToController","EditorAnnotations","suggestion-","previous","Annotations","destroy","_destroyController","Discard all selected suggestions","config","trackChanges.disableComments","init","head","getMarkerNames","bind","focus","buttonView","addComment","CommentsUI","_updateController","comments.maxCommentsWhenCollapsed","source","registerAnnotation","suggestionChanged","getSuggestion","_initializeController","listenTo","isDirty","delete","getAllAdjacentSuggestions","discardSelectedSuggestions","createAnnotation","SuggestionThreadView","comments.editorConfig","remove","separator","map","define","value","values","set","model","commands","_viewToController","lowest","isMultiRange","get","_handleSuggestionControllerDelayed","filter","plugins","descriptionParts","acceptButton","acceptSelectedSuggestions","getByInnerView","reduce","switchbutton","comments.maxCommentCharsWhenCollapsed","CommentsRepository","has","pluginName","isEnabled","locale","add","getDescriptions","Discard all suggestions","getMarkers","_createUIButton","createAnnotationView","_handleControllerBuffer","getFirstRange","_annotationViews","activeMarkers","editing","view","commentThread","createCommentThreadController","comments.maxThreadTotalWeight","clear","commandName","arrowView","size","editor","change:previous","addSourceCollector","refreshSelectedViews","suggestionLoaded","trackChanges","getJoined","trackChanges.SuggestionThreadView"];var pc,bc;pc=hc,bc=358,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get requires(){return[Wa,r.Users,Ec("0x1a"),Ec("0x4e"),"EditorAnnotations"]}static get[Ec("0x1c")](){return Ec("0x3f")}constructor(t){super(t),this._suggestionToController=new Map,this[Ec("0xc")]=new Map,this[Ec("0x27")]=new Map,this[Ec("0x25")]=new Map;const e=this[Ec("0x32")][Ec("0x52")];e.define(Ec("0x39"),gc),e[Ec("0x6")](Ec("0x53"),!1),this._disableComments=e[Ec("0xf")](Ec("0x53"))}[Ec("0x10")](t,e){0===this._handleControllerBuffer[Ec("0x31")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x25")]){const n=this[Ec("0x4a")][Ec("0x1b")](t);n||e?n&&e&&this[Ec("0x50")](t):this[Ec("0x62")](t)}this[Ec("0x32")][Ec("0x12")].get(Ec("0x4b"))[Ec("0x35")](),this[Ec("0x3b")](),this._handleControllerBuffer[Ec("0x2e")]()}),10),this[Ec("0x25")][Ec("0x9")](t,e)}[Ec("0x54")](){const t=this[Ec("0x32")],e=t.plugins[Ec("0xf")](Ec("0x42")),n=t[Ec("0x12")][Ec("0xf")](Ec("0x4e")),o=t.plugins[Ec("0xf")](Ec("0x4b")),s=t[Ec("0x12")][Ec("0xf")](Ec("0x1a"));t.ui.componentFactory[Ec("0x1f")](Ec("0x37"),(t=>this[Ec("0x23")](t))),o[Ec("0x34")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x3c")](this[Ec("0x4a")])){const o=e[Ec("0x66")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0xe")]){s[Ec("0x41")](...t.getRanges());continue}const e=t[Ec("0x26")]();if(s[Ec("0x46")]>0){const t=s[0][Ec("0x38")](e);if(t){s[0]=t;continue}}s[Ec("0x41")](e)}t[Ec("0x41")]([n[Ec("0x2a")],s])}return t})),this[Ec("0x63")](e,Ec("0x36"),((t,e)=>{this[Ec("0x63")](e,Ec("0x33"),((t,n,o,s)=>{e.isInContent&&(null==o?(this[Ec("0x5c")](s.head),this[Ec("0x10")](e,!1)):(this[Ec("0x5c")](o[Ec("0x55")]),this[Ec("0x10")](e,!0)))})),null===e[Ec("0x4d")]?this[Ec("0x10")](e,!1):this[Ec("0x5c")](e[Ec("0x55")])})),this.listenTo(e,"suggestionUnloaded",((t,e,n)=>{this.stopListening(e,Ec("0x33")),this[Ec("0x25")].delete(e);const o=n?n.head:e,s=this[Ec("0x4a")].get(o);null!==n&&this._updateController(o),null===n&&s&&this[Ec("0x50")](e)})),this[Ec("0x63")](e,Ec("0x60"),((t,e)=>{this[Ec("0x5c")](e)})),this[Ec("0x63")](n,"change:activeAnnotations",(()=>{this[Ec("0x3b")]()})),this[Ec("0x63")](s,Ec("0x5a"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[Ec("0x61")](n);this[Ec("0x4a")][Ec("0xf")](s)[Ec("0x2a")][Ec("0x58")]()}),{priority:Ec("0xd")})}[Ec("0x3b")](){const t=this.editor[Ec("0x12")][Ec("0xf")]("Annotations"),e=this[Ec("0x32")].plugins[Ec("0xf")]("TrackChangesEditing"),n=Array[Ec("0x3c")](t.activeAnnotations,(t=>t.innerView))[Ec("0x11")]((t=>this._viewToController[Ec("0x1b")](t))),o=[];for(const t of n){const e=this[Ec("0xc")][Ec("0xf")](t)[Ec("0xa")][Ec("0x66")]();o[Ec("0x41")](...e[Ec("0x17")](((t,e)=>[...t,...e[Ec("0x56")]()]),[]))}e[Ec("0x28")]=o}[Ec("0x23")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x32")][Ec("0xb")].get(Ec("0x37")),r=Yo(t,"Track changes");n[Ec("0x59")].set({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x59")][Ec("0x57")]("isOn").to(o,"value"),n[Ec("0x59")].on(Ec("0x43"),(()=>{o[Ec("0x43")](),this[Ec("0x32")][Ec("0x29")][Ec("0x2a")][Ec("0x58")]()}));const i=new e.Collection,x=[{type:Ec("0x18"),model:{withText:!0,label:r,commandName:Ec("0x37")}},{type:Ec("0x4")},{type:Ec("0x48"),model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:"acceptAllSuggestions"}},{type:Ec("0x48"),model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Ec("0x15")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x21")),commandName:"discardAllSuggestions"}},{type:Ec("0x48"),model:{withText:!0,label:Yo(t,Ec("0x51")),commandName:Ec("0x67")}}];for(const t of x){let e={type:Ec("0x4")};if(t.model){const n=new s.Model(t.model),o=this.editor[Ec("0xb")].get(n[Ec("0x2f")]);n[Ec("0x57")]("isOn",Ec("0x1d")).to(o,Ec("0x7"),Ec("0x1d")),e={type:t.type,model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x11")]((t=>null!=t[Ec("0xa")]))[Ec("0x5")]((t=>this.editor.commands.get(t.model[Ec("0x2f")]))),c=n[Ec("0x59")];return c[Ec("0x47")][Ec("0x45")](Ec("0x1d")),c.arrowView[Ec("0x45")](Ec("0x1d")),c[Ec("0x47")][Ec("0x57")](Ec("0x1d")).to(o,"isEnabled"),c[Ec("0x30")].bind(Ec("0x1d"))[Ec("0x44")](a,"isEnabled",((...t)=>t.some((t=>t)))),n.on(Ec("0x43"),(t=>{this.editor[Ec("0x43")](t[Ec("0x5e")].commandName),this[Ec("0x32")][Ec("0x29")][Ec("0x2a")][Ec("0x58")]()})),n}[Ec("0x62")](t){const e=this[Ec("0x32")],n=e.config,o=e[Ec("0x12")].get(Ec("0x4e")),s=e.plugins[Ec("0xf")]("CommentsRepository"),i=e[Ec("0x12")][Ec("0xf")](Ec("0x4b")),x=e[Ec("0x12")][Ec("0xf")](r.Users).me,a=n[Ec("0xf")](Ec("0x37"))[Ec("0x1")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x12")].get(Ec("0x5b"));let u,d;this[Ec("0x27")][Ec("0x1b")](t.id)?(d=this._annotationViews.get(t.id),u=d[Ec("0x3a")]):(u=new a(e[Ec("0x1e")],t,x,{disableComments:this[Ec("0x3d")],editorConfig:n[Ec("0xf")](Ec("0x2")),maxCommentsWhenCollapsed:n[Ec("0xf")](Ec("0x5d")),maxThreadTotalWeight:n[Ec("0xf")](Ec("0x2d")),maxCommentCharsWhenCollapsed:n[Ec("0xf")](Ec("0x19")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0xf")](Ec("0x1e"))),CommentView:n.get("comments").CommentView,CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x14")].on(Ec("0x43"),(()=>{e.editing[Ec("0x2a")].focus()})),u.discardButton.on(Ec("0x43"),(()=>{e[Ec("0x29")][Ec("0x2a")][Ec("0x58")]()})),d=o[Ec("0x24")](this[Ec("0x32")][Ec("0x1e")],u),d[Ec("0x57")](Ec("0x64")).to(u,Ec("0x64")),d[Ec("0x57")]("length").to(u),d.bind(Ec("0x40")).to(u,Ec("0x40"),(t=>Ec("0x4c")+t)),this[Ec("0x27")][Ec("0x9")](t.id,d));const g=s[Ec("0x2c")](t[Ec("0x2b")],u),m=new oc(e,t,u,g),f=t.getAllAdjacentSuggestions().filter((t=>t[Ec("0x3e")]));u[Ec("0x13")]=e[Ec("0x12")][Ec("0xf")]("TrackChangesEditing")._descriptionFactory[Ec("0x20")](f),this[Ec("0x4a")].set(t,m),this[Ec("0xc")].set(u,m);const h=o[Ec("0x0")]({view:d,target:()=>{const n=[],o=t[Ec("0x66")]()[Ec("0x11")]((t=>t[Ec("0x3e")]));for(const t of o)n.push(...t[Ec("0x22")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x29")],n)},type:()=>Ec("0x4c")+m[Ec("0x2a")][Ec("0x40")]});o[Ec("0x1f")](h),i[Ec("0x5f")](h)}_destroyController(t){const e=this[Ec("0x32")][Ec("0x12")].get(Ec("0x4e")),n=this[Ec("0x4a")][Ec("0xf")](t),o=n[Ec("0x2a")],s=e[Ec("0x16")](o);s&&e[Ec("0x3")](s),this._suggestionToController[Ec("0x65")](t),this[Ec("0xc")][Ec("0x65")](o),n[Ec("0x4f")]()}[Ec("0x5c")](t){if(!t.isInContent||!this[Ec("0x4a")][Ec("0x1b")](t))return;const e=this[Ec("0x32")][Ec("0x12")][Ec("0xf")](Ec("0x42")),n=this[Ec("0x4a")][Ec("0xf")](t),o=t.getAllAdjacentSuggestions();n[Ec("0x2a")][Ec("0x13")]=e[Ec("0x49")][Ec("0x20")](o)}[Ec("0x4f")](){for(const t of this._suggestionToController.keys())this[Ec("0x50")](t);for(const t of this[Ec("0x27")][Ec("0x8")]())t[Ec("0x3a")][Ec("0x4f")]();super.destroy()}}var Tc,Cc,yc=["addSuggestionData","addSuggestion","getSuggestion","TrackChanges","editor","get","getSuggestions","plugins","requires","Comments","adapter","pluginName"];Tc=yc,Cc=374,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x6")](){return[Wa,_c,kc("0x7")]}static get[kc("0x9")](){return kc("0x1")}set[kc("0x8")](t){this.editor[kc("0x5")][kc("0x3")](Wa).adapter=t}get[kc("0x8")](){return this[kc("0x2")][kc("0x5")][kc("0x3")](Wa).adapter}[kc("0xb")](t){return this.editor[kc("0x5")].get(Wa)[kc("0xa")](t)}[kc("0x4")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor.plugins[kc("0x3")](Wa)[kc("0x4")]({skipNotAttached:t,toJSON:e})}[kc("0x0")](t){return this[kc("0x2")][kc("0x5")][kc("0x3")](Wa)[kc("0x0")](t)}}const vc=["model","plugins","Pagination","TrackChangesEditing","useAnonymousUser","trackChangesData","getFullData","_adapter","div","addUser","result","rootsAttributes","getRootsAttributes","function","requires","editor","getRootNames","getSuggestions","data","getUser","execute","set","createElement","createDocumentFragment","Users","config","pluginName","get","editorCreator","acceptAllSuggestions","track-changes-data-invalid-editor-creator","appendChild","addSuggestionData","document","end","reduce","trackChangesData.editorCreator","users","init","create","TrackChangesDataGetter"];var Rc,Sc;Rc=vc,Sc=240,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x8")];class Nc extends t.Plugin{static get[Ic("0x14")](){return[Wa]}static get[Ic("0x20")](){return"TrackChangesData"}[Ic("0x3")](){const t=this[Ic("0x15")];if(t[Ic("0x1f")].define(Ic("0x1"),(e=>{const n=t[Ic("0x6")][Ic("0x27")].getRootNames()[Ic("0x0")](((t,e)=>(t[e]="",t)),{});return t.constructor[Ic("0x4")](n,e)})),Ic("0x13")!=typeof t[Ic("0x1f")][Ic("0x21")](Ic("0xb"))[Ic("0x22")])throw new e.CKEditorError(Ic("0x24"))}getDataWithAcceptedSuggestions(t){return Oc(this.editor,!0,t)}getDataWithDiscardedSuggestions(t){return Oc(this[Ic("0x15")],!1,t)}}class wc extends t.Plugin{static get[Ic("0x20")](){return Ic("0x5")}constructor(t){super(t),this[Ic("0x10")]=Ic("0x28")}[Ic("0x3")](){this[Ic("0x15")][Ic("0x7")][Ic("0x21")]("CommentsRepository")[Ic("0xd")]={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[Ic("0x15")].plugins.get(Ic("0x9"))[Ic("0xd")]=null}}function Mc(t){return void 0!==t[Ic("0x12")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0x7")].push(Wa,wc),o[Ic("0x11")]=Mc(t)?t[Ic("0x12")]():void 0;const s=document[Ic("0x1d")](),i=t[Ic("0x1f")].get(Ic("0xb"))[Ic("0x22")],x=await i(o,(()=>function(t){const e=document[Ic("0x1c")](Ic("0xe"));return t[Ic("0x25")](e),e}(s)));!function(t,e){const n=t[Ic("0x6")][Ic("0x27")][Ic("0x16")]()[Ic("0x0")](((e,n)=>(e[n]=t[Ic("0x18")].get({rootName:n}),e)),{}),o=t[Ic("0x7")][Ic("0x21")](Ic("0x1e"))[Ic("0x2")].map((t=>({id:t.id,name:t.name}))),s=t[Ic("0x7")][Ic("0x21")](Ic("0x9"))[Ic("0x17")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Ic("0x21")](Ic("0x1e")),i=e[Ic("0x7")].get(Ic("0x9"));for(const t of o)r[Ic("0x19")](t.id)||r[Ic("0xf")](t);r.me||r[Ic("0xa")]();for(const t of s)i[Ic("0x26")](t);e[Ic("0x18")][Ic("0x1b")](n)}(t,x),x[Ic("0x1a")](e?Ic("0x23"):"discardAllSuggestions");const a=Mc(x)?x[Ic("0xc")](n):x[Ic("0x18")].get(n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|