@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230725.1 → 0.0.0-nightly-20230726.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.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/build/track-changes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>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=["execute","_disableUnsupportedCommands","editor","refresh","has","isEnabled","_enabledCommands","value","forceDisabled","_isEnabledBasedOnSelection","affectsData","commands"];var c,l;c=a,l=308,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0xa")]=e,this[d("0xb")]=!1,this[d("0x7")](),this[d("0x1")]=!1}refresh(){this[d("0x9")]=!0}[d("0x4")](){this[d("0xb")]=!this[d("0xb")],this.value?this[d("0x5")]():this._enableCommands()}[d("0x5")](){for(const t of this.editor[d("0x3")][d("0x3")]())t[d("0x2")]&&!this[d("0xa")][d("0x8")](t)&&t[d("0x0")]("TrackChangesCommand")}_enableCommands(){for(const t of this[d("0x6")][d("0x3")].commands())t[d("0x2")]&&!this._enabledCommands[d("0x8")](t)&&t.clearForceDisabled("TrackChangesCommand")}}const g=["get","_suggestions","execute","track-changes-accept-suggestion-not-found","refresh","acceptSuggestion","TrackChangesEditing","canEditAt","getRanges","plugins","editor"];var m,f;m=g,f=155,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("0x0")]=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[h("0x3")](){this.isEnabled=!0}[h("0x1")](t){const n=this[h("0x0")].get(t);if(!n)throw new e.CKEditorError(h("0x2"),this);const o=n[h("0x7")]();this.editor.model[h("0x6")](o)&&this[h("0x9")][h("0x8")][h("0xa")](h("0x5"))[h("0x4")](n)}}const b=["isEnabled","execute","TrackChangesEditing","discardSuggestion","editor","_suggestions","get","model","canEditAt","_isEnabledBasedOnSelection","getRanges","refresh"];var E,_;E=b,_=187,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("0xa")]=e,this[T("0x4")](),this[T("0x2")]=!1}refresh(){this[T("0x5")]=!0}[T("0x6")](t){const n=this[T("0xa")][T("0xb")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x3")]();this[T("0x9")][T("0x0")][T("0x1")](o)&&this[T("0x9")].plugins[T("0xb")](T("0x7"))[T("0x8")](n)}}const y=["change","isInContent","createPositionAt","createPositionAfter","content","start","schema","isCollapsed","add","join","color","end","deletion","getMarkers","getRange","splice"," [color ","sort","length","isObject","type","isTouching","isMultiRange","value","isIntersecting","push","map","replace","createRange","getRanges","execute"];var k,A;k=y,A=326,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x1")](((t,e)=>v("0x1b")==t.type&&v("0x1b")!=e.type?-1:v("0x1b")!=t[v("0x4")]&&v("0x1b")==e[v("0x4")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x15")];for(;o<t[v("0x2")];){const i=t[o],x=t[o+1];n||(n=e.createPositionBefore(i)),I(e,i,x)||(s[v("0x9")](e[v("0xc")](n,r[v("0x3")](i)?e.createPositionAfter(i):e[v("0x11")](i,v("0x1a")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x12")](e),s=t.createPositionBefore(n);return o[v("0x5")](s)}function L(t,e,n){for(;n[v("0x2")];){const o=n[v("0x1e")](0,100);t[v("0xf")]((()=>{for(const t of o)t[v("0x10")]&&e[v("0xe")](t.id)}))}}const N=["refresh","some","getRanges","values","_isEnabledBasedOnSelection","_command","_suggestions","isEnabled","from","editor","execute","canEditAt","model"];var M,w;M=N,w=131,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._command=e,this[O("0x5")]=n,this[O("0xc")](),this[O("0x3")]=!1}[O("0xc")](){const t=Array[O("0x7")](this._suggestions[O("0x2")]())[O("0x0")]((t=>t.isInContent));this[O("0x6")]=this[O("0x4")].isEnabled&&t}[O("0x9")](){const t=R(Array[O("0x7")](this[O("0x5")][O("0x2")]()));for(const e of t){const t=e[O("0x1")]();if(!this.editor[O("0xb")][O("0xa")](t))return}L(this[O("0x8")][O("0xb")],this[O("0x4")],t)}}const P=["execute","_selectedSuggestions","refresh","_suggestions","from","isEnabled","values","selection","model","editor","_isEnabledBasedOnSelection","size","getRanges","_command"];var D,B;D=P,B=331,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this._command=e,this[j("0x8")]=n,this[j("0x6")]=new Set,this[j("0x7")](),this[j("0x1")]=!1}[j("0x7")](){const t=this[j("0x0")][j("0xd")].document[j("0xc")],e=Array[j("0x9")](this._suggestions[j("0xb")]());this[j("0x6")]=function(t,e){const n=Array.from(t[v("0xd")]()),o=new Set;for(const s of e)if(s[v("0x10")])for(const e of n)for(const n of s[v("0x1c")]()){const r=n[v("0x1d")]();(e[v("0x8")](r)||t[v("0x16")]&&!s[v("0x6")]&&s.next&&r[v("0x1a")][v("0x5")](e[v("0x14")]))&&o[v("0x17")](s)}return o}(t,e),this[j("0xa")]=this[j("0x4")].isEnabled&&!!this[j("0x6")][j("0x2")]}[j("0x5")](){const t=R(Array.from(this._selectedSuggestions));for(const e of t){const t=e[j("0x3")]();if(!this[j("0x0")][j("0xd")].canEditAt(t))return}L(this[j("0x0")][j("0xd")],this[j("0x4")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["addRange","commentThread","_onAttributesChange","push","creator","getMultiRangeId","reduce","attributes","addMarker","_onDiscard","accept","next","getFirstMarker","hasComments","createdAt","map","getMarkers","_saved","change","getFirstRange","getItems","markers","isIntersecting","substr","isMultiRange","onAccept","removeMarkers","authoredAt","delete","decorate","_onAccept","_model","getRanges","isExternal","isInContent","get","from","data","getContainedElement","addMarkerName","removeMarker","head","filter","clear","onAttributesChange","end","split","onDiscard","getAllAdjacentSuggestions","getRange","add","_markerNames","previous","length","set","author","subType","type","discard"];var $o,Jo;$o=Xo,Jo=414,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.type=e[Qo("0x38")],this[Qo("0x37")]=e[Qo("0x37")]||null,this[Qo("0x36")]=e[Qo("0x36")],this[Qo("0x3")]=e.creator||e[Qo("0x36")],this[Qo("0x20")]=Boolean(e[Qo("0x6")]&&e[Qo("0x6")]["@external"]),this[Qo("0x24")]=null,this[Qo("0x1e")]=t,this._onAccept=e[Qo("0x18")],this[Qo("0x8")]=e[Qo("0x2e")],this[Qo("0x1")]=e[Qo("0x2b")],this[Qo("0x32")]=new Set,this[Qo("0xd")]=null,this[Qo("0x35")](Qo("0x1a"),null),this.set(Qo("0x6"),e[Qo("0x6")]||{}),this[Qo("0x35")]("previous",null),this.set(Qo("0xa"),null),this[Qo("0x35")](Qo("0x0"),null),this[Qo("0x35")](Qo("0x10"),!1),this.decorate(Qo("0x9")),this[Qo("0x1c")](Qo("0x39"))}get[Qo("0x28")](){let t=this;for(;t[Qo("0x33")];)t=t[Qo("0x33")];return t}get[Qo("0xc")](){return!!this.commentThread&&this[Qo("0x0")].length>0}get[Qo("0x17")](){return 0!=this._markerNames.size&&6==Array.from(this[Qo("0x32")])[0][Qo("0x2d")](":")[Qo("0x34")]}get[Qo("0x21")](){return null!==this[Qo("0xb")]()}[Qo("0x26")](t){this[Qo("0x32")][Qo("0x31")](t)}getMarkerNames(){return Array[Qo("0x23")](this[Qo("0x32")])}[Qo("0xf")](){return this.getMarkerNames()[Qo("0xe")]((t=>this[Qo("0x1e")][Qo("0x14")][Qo("0x22")](t)))[Qo("0x29")]((t=>t))}[Qo("0xb")](){return this[Qo("0xf")]()[0]||null}[Qo("0x19")](){this[Qo("0x1e")][Qo("0x11")]((t=>{for(const e of this.getMarkers())t[Qo("0x27")](e)})),this._markerNames[Qo("0x2a")]()}[Qo("0x27")](t){this[Qo("0x1e")][Qo("0x11")]((e=>{e.removeMarker(t)})),this[Qo("0x32")][Qo("0x1b")](t)}[Qo("0x3a")](t){const e="suggestion:"+this[Qo("0x38")]+":"+this[Qo("0x37")]+":"+this.id+":"+this[Qo("0x3")].id+":"+Zo[Qo("0x4")]();this[Qo("0x26")](e),this[Qo("0x1e")][Qo("0x11")]((n=>{n[Qo("0x7")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x1f")]())if(e[Qo("0x15")](t))return!0;return!1}[Qo("0x1f")](){return this[Qo("0xf")]()[Qo("0xe")]((t=>t.getRange()))}[Qo("0x13")](){return this[Qo("0x1f")]()[Qo("0x5")](((t,e)=>[...t,...e[Qo("0x13")]()]),[])}[Qo("0x12")](){var t;return(null===(t=this[Qo("0xb")]())||void 0===t?void 0:t[Qo("0x30")]())||null}[Qo("0x25")](){const t=this.getRanges();if(1!=t[Qo("0x34")])return null;const e=t[0],n=e.start.nodeAfter,o=e[Qo("0x2c")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}[Qo("0x9")](){this[Qo("0x1d")](this[Qo("0x1f")](),this[Qo("0x24")],this[Qo("0x6")]),this[Qo("0x19")]()}[Qo("0x39")](){this[Qo("0x8")](this.getRanges(),this.data,this.attributes),this[Qo("0x19")]()}[Qo("0x2f")](){const t=[];let e=this[Qo("0x28")];for(;e;)t[Qo("0x2")](e),e=e.next;return t}setAttribute(t,e){const n=eo(this[Qo("0x6")]);_o(n,t,e),Go(n,this[Qo("0x6")])||(this[Qo("0x6")]=n,this[Qo("0x1")](n))}removeAttribute(t){const e=eo(this[Qo("0x6")]);qo(e,t),Go(e,this[Qo("0x6")])||(this.attributes=e,this._onAttributesChange(this[Qo("0x6")]))}toJSON(){return{id:this.id,type:this[Qo("0x37")]?this[Qo("0x38")]+":"+this[Qo("0x37")]:this[Qo("0x38")],authorId:this.creator.id,createdAt:this[Qo("0xd")],hasComments:this.hasComments,data:this.data,attributes:this[Qo("0x6")]}}static[Qo("0x4")](){return(0,e.uid)()[Qo("0x16")](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=["indexOf","_itemLabels","*Insert:* %0","addContainer","remove","add","Container","_schema","removeObject","_resolveDescriptionItems","registerElementLabel","$textProxy","quantity","deletion","Object","end","type","replace","ELEMENT_SPACE","isInContent","set","REPLACE_TEXT","isObject","text","addEmptyContainer","getItemLabel","label","$text","_itemLabelsCallbacks","element","nextSibling","pop","insertion","_addDescriptionItems","start","length","getFirstRange","isEqual","push","_customCallbacks","registerDescriptionCallback","$1 $2","*Remove:* %0","isEmpty","_locale","getWalker","item","EmptyContainer","elementStart","name","elementEnd","removeEmptyContainer","data","get","previousSibling","match"];var es,ns;es=ts,ns=470,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this._customCallbacks=[],this._itemLabels=new Map,this[os("0x6")]=[],this[os("0x29")]=t,this._locale=e}getDescriptions(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[os("0x35")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x32")in n&&e[os("0x10")](n),s=!0;break}}if(!s){this[os("0xb")](e,o);const s=t[n+1];if(s&&!o[os("0xe")]()[os("0x31")][os("0xf")](s[os("0xe")]()[os("0xc")])){const t=e[e[os("0xd")]-1],n=os("0xa")==o.type?os("0x27"):os("0x26");t&&os("0x1")==t[os("0x32")]&&(t[n]+="\n")}}}return this[os("0x2b")](e)}[os("0x12")](t){this[os("0x11")][os("0x10")](t)}[os("0x2c")](t,n,o=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this[os("0x6")],{matchingCallback:t,label:n,priority:o}):this[os("0x23")][os("0x36")](t,n)}[os("0x3")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[os("0x4")];break}return n||(n=this[os("0x23")][os("0x1f")](t[os("0x1b")])),n?n(e):1!==e?e+" "+t[os("0x1b")]+"s":""+t.name}[os("0xb")](t,e){const n=e.getFirstRange()[os("0x17")](),o=os("0xa")==e[os("0x32")]?os("0x27"):os("0x26");for(const e of n){const s=e[os("0x18")],r=t[t[os("0xd")]-1];if(s.is(os("0x2d")))r&&r.type[os("0x22")]("Container")>-1&&t[os("0x9")](),r&&os("0x1")==r[os("0x32")]?r[o]+=s[os("0x1e")]:t[os("0x10")]({type:os("0x1"),add:"add"==o?s[os("0x1e")]:"",remove:os("0x26")==o?s[os("0x1e")]:""});else if(this[os("0x29")][os("0x0")](s)){const i=s;if(r&&r[os("0x32")][os("0x22")]("Container")>-1&&t[os("0x9")](),os("0x1c")==e.type)continue;r&&r[os("0x32")]==o+os("0x30")&&r[os("0x7")][os("0x1b")]==i.name?r[os("0x2e")]++:t[os("0x10")]({type:o+os("0x30"),element:i,quantity:1}),n.skip((t=>!(os("0x1c")==t.type&&t[os("0x18")]==s)))}else if(this[os("0x29")].checkChild(s,os("0x5"))||s.is(os("0x7"),"softBreak")){const n=s;if(os("0x27")==o&&os("0x1a")==e.type||os("0x26")==o&&os("0x1c")==e[os("0x32")])continue;if(r&&-1==r[os("0x32")][os("0x22")](os("0x28"))){"text"==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x27")==o?n.nextSibling&&!this[os("0x29")][os("0x0")](n.nextSibling)?n[os("0x8")]:null:n[os("0x20")]&&!this[os("0x29")][os("0x0")](n[os("0x20")])?n[os("0x20")]:null,n[os("0x15")]||i&&i[os("0x15")]){const e=i&&i[os("0x15")]?i:n;r&&r[os("0x32")]==o+"EmptyContainer"&&r[os("0x7")][os("0x1b")]==e[os("0x1b")]?r[os("0x2e")]++:t[os("0x10")]({type:o+os("0x19"),element:e,quantity:1})}else t[os("0x10")]({type:o+os("0x28"),element:n})}}}_resolveDescriptionItems(t){const e=this[os("0x16")],n=[];for(const o of t){switch(o[os("0x32")]){case os("0x1"):if(o[os("0x27")]=o.add[os("0x33")](/(\S)\u000A+(\S)/g,os("0x13"))[os("0x33")](/\u000A/g,""),o.remove=o[os("0x26")][os("0x33")](/(\S)\u000A+(\S)/g,os("0x13")).replace(/\u000A/g,""),""!=o.add&&""!=o[os("0x26")]){n.push({type:os("0x33"),content:Yo(e,os("0x37"),['"'+o[os("0x26")]+'"','"'+o[os("0x27")]+'"'])});continue}if(null!=o[os("0x27")][os("0x21")](/^ +$/)){n.push({type:os("0xa"),content:Yo(e,os("0x24"),Yo(e,os("0x34"),o.add[os("0xd")]))});continue}if(null!=o[os("0x26")][os("0x21")](/^ +$/)){n[os("0x10")]({type:"deletion",content:Yo(e,os("0x14"),Yo(e,"ELEMENT_SPACE",o.remove[os("0xd")]))});continue}if(""!=o[os("0x27")]){n.push({type:"insertion",content:Yo(e,os("0x24"),'"'+o[os("0x27")]+'"')});continue}n.push({type:os("0x2f"),content:Yo(e,"*Remove:* %0",'"'+o[os("0x26")]+'"')});continue;case os("0x2"):case"addObject":n[os("0x10")]({type:os("0xa"),content:Yo(e,os("0x24"),this[os("0x3")](o[os("0x7")],o.quantity))});continue;case os("0x1d"):case os("0x2a"):n[os("0x10")]({type:os("0x2f"),content:Yo(e,os("0x14"),this[os("0x3")](o[os("0x7")],o.quantity))});continue;case os("0x25"):n.push({type:os("0xa"),content:Yo(e,"*Split:* %0",this[os("0x3")](o[os("0x7")],o[os("0x2e")]))});continue;case"removeContainer":n[os("0x10")]({type:os("0x2f"),content:Yo(e,"*Merge:* %0",this[os("0x3")](o[os("0x7")],o.quantity))});continue}n.push(o)}return n}}const rs=["registerDescriptionCallback","from","value","format","FORMAT_ALIGN_TO_CENTER","change","schema","FORMAT_JUSTIFY_TEXT","model","getAttribute","_descriptionFactory","enableCommand","editor","selection","get","commandName","AlignmentEditing","commandParams","checkAttribute","contentLanguageDirection","TrackChangesEditing","*Format:* %0","ltr","plugins","document","has","left","alignment","afterInit","FORMAT_ALIGN_TO_LEFT","center","locale","right"];var is,xs;is=rs,xs=418,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x6")](){const t=this[as("0x17")],e=t[as("0x9")];if(!t[as("0x1")][as("0x3")](as("0x1b")))return;const n=t[as("0x1")][as("0x19")](as("0x1f"));n[as("0x16")]("alignment",((e,o={})=>{let s=o[as("0xd")];o[as("0xd")]||(s=as("0x0")===t[as("0x9")][as("0x1e")]?as("0x4"):as("0xa"));const r=Array[as("0xc")](this[as("0x17")].model[as("0x2")][as("0x18")].getSelectedBlocks()).filter((t=>function(t,e,n){const o=t[as("0x14")](as("0x5"))||null;return e[as("0x1d")](t,as("0x5"))&&n!=o}(t,this[as("0x17")][as("0x13")][as("0x11")],s)));t.model[as("0x10")]((()=>{for(const t of r)n.markBlockFormat(t,{commandName:as("0x5"),commandParams:[{value:s}]})}))})),n[as("0x15")][as("0xb")]((t=>{const{data:n}=t;if(n&&as("0x5")==n[as("0x1a")]){const t=n[as("0x1c")][0][as("0xd")];return{type:as("0xe"),content:Yo(e,as("0x20"),function(t){switch(t){case as("0x4"):return Yo(e,as("0x7"));case as("0xa"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case as("0x8"):return Yo(e,as("0xf"));case"justify":return Yo(e,as("0x12"))}}(t))}}}))}}const ls=["consumable","item","isAtEnd","includes","isContent","ck-suggestion-marker--active","mapper","model","getWalker","element","getCustomProperty","type","TrackChangesEditing","createRangeOn","activeMarkers","hasAttribute","previousPosition","createUIElement","span","push","test","schema","toViewPosition","nextSibling","isBlock","parent","ck-suggestion-marker-","listItem","markerRange","get","bindElementToMarker","writer","getItems"];var ds,us;ds=ls,us=254,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x9")]())s[gs("0x19")](t)&&o.push(n[gs("0x17")](s));return o}function fs(t){const e=[];if(t.is(gs("0x13"),gs("0x4"))){let n=t.nextSibling;for(;n&&n.is("element","listItem")&&n.getAttribute("listIndent")>0;)e[gs("0x1d")](n),n=n[gs("0x0")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0x6")](gs("0x16"));return(s,r,i)=>{if(!i[gs("0xa")][gs("0x1e")](r[gs("0x5")],s.name))return;const x=r[gs("0x5")][gs("0x12")](),a=r[gs("0x5")].start,c=t[gs("0x11")][gs("0x1f")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0xb")];u=u||c[gs("0xe")](e);const n=i[gs("0x10")].toViewElement(e);if(n&&n[gs("0x14")]("addHighlight"))return;"elementEnd"==t[gs("0x15")]&&c[gs("0x1")](e)&&!c.isLimit(e)&&(e[gs("0x0")]||a[gs("0xc")]?l&&l[gs("0x2")]==e||(l=e,m(t[gs("0x1a")]),g=!0):d=d||t[gs("0x1a")])}function m(t){const s=i[gs("0x8")][gs("0x1b")](gs("0x1c"),{class:gs("0x3")+e}),x=i[gs("0x10")][gs("0x20")](t);n&&o[gs("0x18")][gs("0xd")](r.markerName)&&i[gs("0x8")].addClass(gs("0xf"),s),i[gs("0x8")].insert(x,s),i[gs("0x10")][gs("0x7")](s,r.markerName)}u||g||!d||m(d)}}const ps=["FORMAT_STRIKETHROUGH","afterInit","getRanges","SubscriptEditing","bold","markInlineFormat","strikethrough","_descriptionFactory","has","selection","italic","underline","SuperscriptEditing","registerDescriptionCallback","TrackChangesEditing","isCollapsed","commandParams","from","commands","FORMAT_UNDERLINE","change","get","CodeEditing","ItalicEditing","FORMAT_SUBSCRIPT","format","StrikethroughEditing","plugins","locale","FORMAT_SUPERSCRIPT","document","*Remove format:* %0","code","FORMAT_ITALIC","slice","forceValue","enableCommand"];var bs,Es;bs=ps,Es=440,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=["BoldEditing",_s("0x1b"),"UnderlineEditing",_s("0x1a"),_s("0x1e"),_s("0x7"),_s("0x10")];class Cs extends t.Plugin{[_s("0x5")](){const t=this.editor,e=t.model,n=t[_s("0x1f")][_s("0x19")](_s("0x12")),o=t[_s("0x20")];for(const o of Ts){if(!t.plugins[_s("0xc")](o))continue;const s=o[_s("0x1")](0,-7).toLowerCase(),r=t[_s("0x16")].get(s);n[_s("0x3")](s,((t,o={})=>{const i=e[_s("0x22")][_s("0xd")];if(i[_s("0x13")])return void t(o);const x=void 0!==o.forceValue?o[_s("0x2")]:!r.value;e[_s("0x18")]((()=>{const t=Array[_s("0x15")](i[_s("0x6")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x9")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0xb")][_s("0x11")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[_s("0x14")][0][_s("0x2")]?{type:_s("0x1d"),content:Yo(o,"*Format:* %0",e)}:{type:_s("0x1d"),content:Yo(o,_s("0x23"),e)}}))}s(_s("0x8"),Yo(o,"FORMAT_BOLD")),s(_s("0xe"),Yo(o,_s("0x0"))),s(_s("0xf"),Yo(o,_s("0x17"))),s(_s("0x24"),Yo(o,"FORMAT_CODE")),s(_s("0xa"),Yo(o,_s("0x4"))),s("subscript",Yo(o,_s("0x1c"))),s("superscript",Yo(o,_s("0x21")))}}const ys=["BlockQuoteEditing","filter","document","plugins","format","parent","ELEMENT_BLOCK_QUOTE","registerDescriptionCallback","blockQuote","*Remove format:* %0","checkChild","_descriptionFactory","afterInit","schema","value","*Format:* %0","has","forceValue","$root","model","get","markBlockFormat","commandName","name","commands","change","from","locale","editor"];var ks,As;ks=ys,As=180,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("0x16")],e=t[vs("0x15")];if(!t[vs("0x1a")][vs("0xa")](vs("0x17")))return;const n=t.plugins[vs("0xe")]("TrackChangesEditing"),o=this.editor[vs("0x12")][vs("0xe")]("blockQuote");n.enableCommand("blockQuote",((e,s={})=>{const r=this[vs("0x16")][vs("0xd")][vs("0x19")].selection,i=s&&void 0!==s[vs("0xb")]?s[vs("0xb")]:!o[vs("0x8")];let x=[];if(i){const e=Array[vs("0x14")](r.getSelectedBlocks())[vs("0x18")]((t=>Ss(t)||function(t,e){const n=e[vs("0x4")](t[vs("0x1c")],vs("0x2")),o=e[vs("0x4")]([vs("0xc"),vs("0x2")],t);return n&&o}(t,this[vs("0x16")][vs("0xd")][vs("0x7")])));x=S(e,t.model)}else{const e=Array[vs("0x14")](r.getSelectedBlocks())[vs("0x18")]((t=>Ss(t)));x=S(e,t[vs("0xd")])}t.model[vs("0x13")]((()=>{for(const t of x)n[vs("0xf")](t,{commandName:vs("0x2"),commandParams:[{forceValue:i}]})}))})),n[vs("0x5")][vs("0x1")]((t=>{const{data:n}=t;if(n&&vs("0x2")==n[vs("0x10")]){const t=Yo(e,vs("0x0"));return n.commandParams[0][vs("0xb")]?{type:vs("0x1b"),content:Yo(e,vs("0x9"),t)}:{type:vs("0x1b"),content:Yo(e,vs("0x3"),t)}}}))}}function Ss(t){return vs("0x2")==t[vs("0x1c")][vs("0x11")]}const Is=["afterInit","plugins","commands","TrackChangesEditing","get","editor","enableCommand"];var Ls,Ns;Ls=Is,Ns=158,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x3")](){const t=this[Ms("0x1")];t[Ms("0x5")][Ms("0x0")]("ckbox")&&t[Ms("0x4")][Ms("0x0")](Ms("0x6"))[Ms("0x2")]("ckbox")}}const Os=["model","name","formatBlock","filter","ELEMENT_CODE_BLOCK","forceValue","languages","enableCommand","commandParams","rootElement","selection","registerDescriptionCallback","TrackChangesEditing","markBlockFormat","blockName","label","indentCodeBlock","from","has","codeBlock","change","_descriptionFactory","plugins","*Format:* %0","format","config","get","language","getSelectedBlocks","outdentCodeBlock","value","CodeBlock","checkChild","afterInit"];var Fs,Ps;Fs=Os,Ps=408,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("0x16")][Ds("0x12")](Ds("0x1f")))return;const e=t.plugins[Ds("0x1a")](Ds("0xc")),n=t.locale,o=t[Ds("0x19")][Ds("0x1a")](Ds("0x13"))[Ds("0x6")],s=t.commands[Ds("0x1a")](Ds("0x13"));e[Ds("0x7")](Ds("0x10")),e[Ds("0x7")](Ds("0x1d")),e.enableCommand(Ds("0x13"),((n,r={})=>{const i=t[Ds("0x0")],x=t[Ds("0x0")].document[Ds("0xa")],a=r&&void 0!==r[Ds("0x5")]?r[Ds("0x5")]:!s[Ds("0x1e")];let c;r[Ds("0x1b")]||(r.language=o[0][Ds("0x1b")]),c=a?Array.from(x[Ds("0x1c")]())[Ds("0x3")]((t=>{return js(t)||(e=t,n=i.schema,!e.is(Ds("0x9"))&&!n.isLimit(e)&&n[Ds("0x20")](e.parent,"codeBlock"));var e,n})):Array[Ds("0x11")](x.getSelectedBlocks()).filter((t=>js(t)));const l=S(c,i);i[Ds("0x14")]((()=>{for(const t of l)e[Ds("0xd")](t,{commandName:Ds("0x13"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0xe")})}))})),e._descriptionFactory.registerElementLabel(Ds("0x13"),(t=>Yo(n,Ds("0x4"),t))),e[Ds("0x15")][Ds("0xb")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x2")==s&&r&&Ds("0x13")==r.commandName){const t=r[Ds("0x8")][0][Ds("0x1b")],s=e(o.find((e=>e.language===t))[Ds("0xf")]);return r.commandParams[0][Ds("0x5")]?{type:Ds("0x18"),content:Yo(n,Ds("0x17"),Yo(n,Ds("0x4"),1)+" ("+s+")")}:{type:"format",content:Yo(n,"*Remove format:* %0",Yo(n,Ds("0x4"),1))}}}))}}function js(t){return Ds("0x13")==t[Ds("0x1")]}const Us=["has","addCommentThread","TrackChangesEditing","plugins","enableCommand","afterInit","get"];var Gs,Hs;Gs=Us,Hs=463,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.editor;t.plugins[zs("0x6")]("CommentsEditing")&&t[zs("0x2")][zs("0x5")](zs("0x1"))[zs("0x3")](zs("0x0"))}}var Vs=n(181);const Ks=["forward","end","remove","root","downcastDispatcher","commands","model","merge","markerName","showSuggestionHighlights","editing","get","delete","uiElement","selection","options","addMarker:suggestion:deletion","$graveyard","unbindElementFromMarkerName","bind","mapper","deleteForward","buffer","plugins","start","enableCommand","requires","enqueueChange","createSelection","writer","createRange","batch","setSelection","lock","isCollapsed","high","TrackChangesEditing","fromRange","data","unlock"];var qs,Xs;qs=Ks,Xs=192,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("0x22")](){return[Vs.Delete]}init(){const t=this.editor,e=t[$s("0x1f")][$s("0x13")]($s("0x4"));e.enableCommand($s("0x14"));const n=t[$s("0xd")][$s("0x13")]($s("0x1d"));e[$s("0x21")]($s("0x1d"),((e,o={})=>{const s=t[$s("0xe")][$s("0x24")](t[$s("0xe")].document[$s("0x16")]);s[$s("0x2")]&&t[$s("0xe")].modifySelection(s,{direction:$s("0x8"),unit:o.unit});const r=s.getFirstRange(),x=i.LiveRange[$s("0x5")](r);let a;e(o),a=$s("0x19")==x[$s("0xb")].rootName?t[$s("0xe")][$s("0x26")](r.start):t.model[$s("0x26")](x[$s("0x20")],x[$s("0x9")]),x.detach(),t[$s("0xe")][$s("0x23")](n[$s("0x1e")][$s("0x27")],(t=>{n.buffer[$s("0x1")](),t[$s("0x0")](t[$s("0x26")](a[$s("0x9")])),n[$s("0x1e")][$s("0x7")]()}))})),t[$s("0x12")].downcastDispatcher.on($s("0x18"),hs(t,$s("0xf")),{priority:$s("0x3")}),t[$s("0x6")][$s("0xc")].on($s("0x18"),((e,n,o)=>{o[$s("0x17")][$s("0x11")]&&hs(t,$s("0xf"),{showActiveMarker:!1})[$s("0x1b")](this)(e,n,o)}),{priority:"high"}),t[$s("0x12")][$s("0xc")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[$s("0x1c")].markerNameToElements(e[$s("0x10")]);if(o)for(const t of o)t.is($s("0x15"))&&(n[$s("0x1c")][$s("0x1a")](t,e[$s("0x10")]),n[$s("0x25")][$s("0xa")](t))}),{priority:$s("0x3")})}}const Qs=["documentList","afterInit","locale","commandParams","isFirstBlockOfListItem","editor","listType","*Change to:* %0","ELEMENT_LIST_ITEM","slice","bulletedList","getAttribute","forceValue","_suggestionFactory","ELEMENT_","createPositionAt","_descriptionFactory","next","containsItem","*Indent:* %0","fromRange","commandName","schema","setSelection","listItemId","splitListItemBefore","mergeListItemBackward","*Format:* remove from %0","multipleBlocks","length","deletion","findIndex","formatBlock","selection","*Outdent:* %0","start","outdentList","after","before","_LIST","accept","detach","createRange","TrackChangesEditing","from","getRanges","registerCustomCallback","model","getFirstRange","value","end","commands","numberedList","ELEMENT_BULLETED_LIST","enableCommand","document","change","refresh","splitListItemAfter","nextSibling","has","parent","isObject","listIndent","push","*Merge:* %0","markMultiRangeBlockFormat","*Format:* insert into %0","plugins","previousSibling","ELEMENT_NUMBERED_LIST","nodeAfter","indentList","format","expandListBlocksToCompleteList","markBlockFormat","get","getSelectedBlocks","hasAttribute"];var Zs,Ys;Zs=Qs,Ys=471,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x4")](){const t=this[tr("0x8")];if(!t[tr("0x47")][tr("0x3f")]("DocumentListEditing"))return;const e=t[tr("0x5")],n=t.plugins.get(tr("0x2e")),o=t.plugins[tr("0x0")]("DocumentListUtils");function s(e){return()=>{const s=t[tr("0x36")][tr("0x0")](e);let r=Array[tr("0x2f")](t[tr("0x32")][tr("0x3a")][tr("0x24")].getSelectedBlocks());if(a(e)){r=o[tr("0x4d")](r);const t=[];for(const e of r)o[tr("0x7")](e)&&t[tr("0x43")](e);r=t}t[tr("0x32")][tr("0x3b")]((()=>{n[tr("0x45")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x34")]}],formatGroupId:tr("0x9")},[],tr("0x3"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x2f")](t);const n=e[tr("0x22")]((t=>!t[tr("0x2")](tr("0x1b"))));return n>-1&&(e=e[tr("0xc")](0,n)),e}(t.model[tr("0x3a")][tr("0x24")][tr("0x1")]()),s=o[o[tr("0x20")]-1],r=t.model[tr("0x19")].isObject(s)?tr("0x28"):tr("0x35"),i=t.model[tr("0x2d")](t[tr("0x32")][tr("0x12")](o[0],tr("0x29")),t[tr("0x32")][tr("0x12")](s,r));t[tr("0x32")][tr("0x3b")]((()=>{n[tr("0x4e")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[tr("0x3e")];for(;t&&t.getAttribute(tr("0x42"))>n[tr("0xe")]("listIndent");)e.add(t),t=t[tr("0x3e")]}return Array[tr("0x2f")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x32")][tr("0x3a")][tr("0x24")][tr("0x1")]()[tr("0x14")]().value,s=t[tr("0x32")][tr("0x12")](o,tr("0x29")),r=t[tr("0x32")][tr("0x12")](o,0),i=t.model[tr("0x2d")](s,r);t.model[tr("0x3b")]((()=>{n[tr("0x4e")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x9")})}))}}function a(e){const n=t.commands[tr("0x0")](tr("0xd")).value,o=t[tr("0x36")][tr("0x0")]("numberedList")[tr("0x34")];return"numberedList"===e?n:o}n.enableCommand("numberedList",s("numberedList")),n.enableCommand(tr("0xd"),s(tr("0xd"))),n[tr("0x39")](tr("0x4b"),r(tr("0x4b"))),n[tr("0x39")](tr("0x27"),r(tr("0x27"))),n[tr("0x39")](tr("0x3d"),x("splitListItemAfter")),n[tr("0x39")](tr("0x1c"),x(tr("0x1c"))),n[tr("0x13")].registerElementLabel((function(e){const n=!t.model[tr("0x19")][tr("0x41")](e),o=e[tr("0x48")],s=e[tr("0x3e")],r=e[tr("0xe")]("listItemId"),i=!o||o[tr("0xe")](tr("0x1b"))!==r,x=!s||s.getAttribute(tr("0x1b"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[tr("0x13")].registerDescriptionCallback((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x18")]){case tr("0xd"):r=n.commandParams[0][tr("0xf")],i=a(n.commandName),o=r?tr("0x46"):"*Format:* remove from %0",i&&(o=tr("0xa")),s={type:tr("0x4c"),content:Yo(e,o,Yo(e,tr("0x38")))};break;case tr("0x37"):r=n.commandParams[0][tr("0xf")],i=a(n[tr("0x18")]),o=r?"*Format:* insert into %0":tr("0x1e"),i&&(o="*Change to:* %0"),s={type:tr("0x4c"),content:Yo(e,o,Yo(e,tr("0x49")))};break;case"indentList":o=tr("0x16"),s={type:tr("0x4c"),content:Yo(e,o,Yo(e,tr("0xb")))};break;case tr("0x27"):o=function(t){const e=t[tr("0x33")]();let n=e[tr("0x26")][tr("0x4a")];for(;n&&e[tr("0x15")](n);){if(n[tr("0xe")](tr("0x42"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[tr("0x33")]()[tr("0x26")][tr("0x4a")];return tr("0x11")+e[tr("0xe")](tr("0x9")).toUpperCase()+tr("0x2a")}(t))):Yo(e,tr("0x25"),Yo(e,"ELEMENT_LIST_ITEM")),s={type:tr("0x4c"),content:o};break;case tr("0x1d"):case"mergeListItemForward":!1===n[tr("0x1f")]&&(o=tr("0x44"),s={type:tr("0x21"),content:Yo(e,o,Yo(e,tr("0xb")))})}return s})),n[tr("0x10")][tr("0x31")](tr("0x23"),"documentList",tr("0x2b"),(function(e,n){const o=[];for(let n of e)n[tr("0x26")][tr("0x4a")]===n[tr("0x35")][tr("0x40")]&&(n=t[tr("0x32")].createRange(t[tr("0x32")].createPositionAt(n.start[tr("0x4a")],0))),o[tr("0x43")](n);t[tr("0x32")][tr("0x3b")]((e=>{const s=t[tr("0x32")].document[tr("0x24")],r=Array[tr("0x2f")](s[tr("0x30")]()).map((t=>i.LiveRange[tr("0x17")](t)));e[tr("0x1a")](o),t.commands[tr("0x0")](n[tr("0x18")])[tr("0x3c")](),n[tr("0x6")][tr("0x43")]({forceDefaultExecution:!0}),t.execute(n.commandName,...n.commandParams),e.setSelection(r);for(const t of r)t[tr("0x2c")]()}))}))}}var nr=n(331);const or=["enableCommand","enter","commands","change","end","split","options","mapper","plugins","getFirstPosition","bind","high","selection","model","markerNameToElements","editing","removeMarker:suggestion:insertion","markInsertion","getFirstRange","nextSibling","unbindElementFromMarkerName","addMarker:suggestion:insertion","hasClass","data","showSuggestionHighlights","remove","downcastDispatcher","init","document","createRange","setSelection","get","markerName","detach"];var sr,rr;sr=or,rr=341,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("0x1a")](){const t=this.editor,e=t[ir("0x7")][ir("0x1e")]("TrackChangesEditing"),n=t[ir("0x1")][ir("0x1e")]("enter");e[ir("0x21")](ir("0x0"),(()=>{t[ir("0xc")][ir("0x2")]((o=>{const s=t[ir("0xc")][ir("0x1b")][ir("0xb")],r=s[ir("0x8")](),x=i.LiveRange.fromRange(s[ir("0x11")]());if(n.enterBlock(o)){const n=t.model.createPositionAt(r.parent[ir("0x12")],0),s=o[ir("0x1c")](r,n);e[ir("0x10")](s)}else o[ir("0x1d")](o[ir("0x1c")](x[ir("0x3")]));x[ir("0x20")](),n.fire("afterExecute",{writer:o})}))})),t.editing[ir("0x19")].on("addMarker:suggestion:insertion",hs(t,"split"),{priority:ir("0xa")}),t[ir("0xe")][ir("0x19")].on(ir("0xf"),((t,e,n)=>{const o=n[ir("0x6")][ir("0xd")](e.markerName);if(o)for(const t of o)t[ir("0x15")]("ck-suggestion-marker-split")&&(n[ir("0x6")][ir("0x13")](t,e[ir("0x1f")]),n.writer[ir("0x18")](t))}),{priority:ir("0xa")}),t[ir("0x16")][ir("0x19")].on(ir("0x14"),((e,n,o)=>{o[ir("0x5")][ir("0x17")]&&hs(t,ir("0x4"),{showActiveMarker:!1})[ir("0x9")](this)(e,n,o)}),{priority:ir("0xa")})}}const ar=["string","createPositionAt","end","model","has","findByTextCallback","afterInit","filter","findPrevious","editor","enableCommand","bind","handleFindCommand","getIntersection","start","TrackChangesEditing","replace","plugins","findNext","getMarkersGroup","item","_isInDeletionRange"];var cr,lr;cr=ar,lr=112,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x4")](){if(!this[dr("0x7")][dr("0xf")][dr("0x2")]("FindAndReplaceEditing"))return;const t=this.editor[dr("0xf")].get(dr("0xd"));t[dr("0x8")]("find",this[dr("0xa")][dr("0x9")](this)),t[dr("0x8")](dr("0x10")),t[dr("0x8")](dr("0x6")),t.enableCommand(dr("0xe")),t[dr("0x8")]("replaceAll")}[dr("0xa")](t,e,n={}){const o=this.editor[dr("0xf")].get("FindAndReplaceUtils");void 0!==n&&t((t=>(dr("0x14")==typeof e?o[dr("0x3")](e,n):e)(t)[dr("0x5")]((e=>!1===this[dr("0x13")](e,t[dr("0x12")])))),n)}[dr("0x13")](t,e){const n=this[dr("0x7")][dr("0x1")].createRange(this[dr("0x7")][dr("0x1")][dr("0x15")](e,t[dr("0xc")]),this[dr("0x7")][dr("0x1")].createPositionAt(e,t[dr("0x0")]));for(const t of this[dr("0x7")][dr("0x1")].markers[dr("0x11")]("suggestion:deletion"))if(null!==n[dr("0xb")](t.getRange()))return!0;return!1}}const gr=["get","fontColor.colors","FontSizeEditing","has","FontColorEditing","trim","selection","value","fontBackgroundColor","format","toLowerCase","*Reset font size*","config","*Set font family:* %0","TrackChangesEditing","editor","_enableCommand","isCollapsed","label","model","*Set font background color:* %0","FontFamilyEditing","getRanges","*Reset font family*","commandParams","fontBackgroundColor.colors","*Reset font color*","FontBackgroundColorEditing","FontSize","from","markInlineFormat","afterInit","commandName","title","document","plugins","fontSize","fontColor","fontFamily","*Set font color:* %0","locale","_descriptionFactory"];var mr,fr;mr=gr,fr=266,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1e"),commandName:hr("0x16")},{pluginName:hr("0x7"),commandName:hr("0x18")},{pluginName:hr("0x20"),commandName:hr("0x17")},{pluginName:hr("0xd"),commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x11")](){const t=this[hr("0x1")][hr("0x1a")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x1")][hr("0x15")][hr("0x1f")](t)&&this[hr("0x2")](e);this.editor[hr("0x15")][hr("0x1c")]("TrackChangesEditing")[hr("0x1b")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x16")==o.commandName){const e=o[hr("0xa")][0][hr("0x23")];if(e){const o=n(this[hr("0x1")][hr("0x15")][hr("0x1c")](hr("0xe")).normalizeSizeOptions(this[hr("0x1")][hr("0x28")].get("fontSize.options")).find((t=>t[hr("0x5")]==e))[hr("0x13")])[hr("0x26")]();return{type:hr("0x25"),content:Yo(t,"*Set font size:* %0",o)}}return{type:hr("0x25"),content:Yo(t,hr("0x27"))}}if(hr("0x18")==o.commandName){const e=o[hr("0xa")][0].value;return e?{type:"format",content:Yo(t,hr("0x29"),e)}:{type:"format",content:Yo(t,hr("0x9"))}}if("fontColor"==o.commandName){const e=o[hr("0xa")][0][hr("0x23")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x1")][hr("0x28")][hr("0x1c")](hr("0x1d"))).find((t=>t[hr("0x5")]==e));let r=e,i="";return o&&(r=o[hr("0x4")],i=n(r)[hr("0x26")]()),{type:"format",content:Yo(t,hr("0x19"),i)[hr("0x21")](),color:{value:e,title:i||r}}}return{type:hr("0x25"),content:Yo(t,hr("0xc"))}}if(hr("0x24")==o[hr("0x12")]){const e=o[hr("0xa")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x1")][hr("0x28")][hr("0x1c")](hr("0xb"))).find((t=>t.model==e));let r=e,i="";return o&&(r=o[hr("0x4")],i=n(r)[hr("0x26")]()),{type:hr("0x25"),content:Yo(t,hr("0x6"),i)[hr("0x21")](),color:{value:e,title:i||r}}}return{type:hr("0x25"),content:Yo(t,"*Reset font background color*")}}}}))}[hr("0x2")](t){const e=this[hr("0x1")];e[hr("0x15")][hr("0x1c")](hr("0x0")).enableCommand(t,((n,o={})=>{const s=e[hr("0x5")][hr("0x14")][hr("0x22")],r=o[hr("0x23")];s[hr("0x3")]?n(o):e.model.change((()=>{const n=Array[hr("0xf")](s[hr("0x8")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x5")]);for(const o of n)e[hr("0x15")][hr("0x1c")]("TrackChangesEditing")[hr("0x10")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["schema","getLastPosition","getAttributeProperties","from","pasteFormat","backward","length","word","createSelection","getFirstPosition","createRange","registerDescriptionCallback","locale","selection","keys","toLowerCase","TrackChangesEditing","enableCommand","entries","editor","_descriptionFactory","slice","getAttributes","commands","*Remove all formatting*","fontColor.colors","change","*Set format to:* %0","plugins","isFormatting","title","isCollapsed","format","push","config","normalizeSizeOptions","fontBackgroundColor","markInlineFormat","getRanges","afterInit","commandName","forward","copyFormat","get","fontSize","document","modifySelection","find"];var _r,Tr;_r=Er,Tr=484,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x23")](){const t=this[Cr("0xf")],n=t.model,o=n[Cr("0x29")][Cr("0x9")],s=t[Cr("0x18")].get(Cr("0xc")),r=t[Cr("0x8")],i=t[Cr("0x13")][Cr("0x27")](Cr("0x26")),x=t[Cr("0x13")][Cr("0x27")](Cr("0x0"));i&&x&&(s[Cr("0xd")]("pasteFormat",((t,r={})=>{const i=r;n[Cr("0x16")]((()=>{const t=Array[Cr("0x2f")](o.getRanges()),r=o[Cr("0x1b")]?[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("0x12")]()){const t=e[Cr("0x2e")](n);t&&t[Cr("0x19")]&&(yield n)}}(t,n));for(const e of t[Cr("0x22")]())for(const t of e.getItems())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x2c")]))||0!==Object[Cr("0xa")](i)[Cr("0x2")])for(const t of r)s[Cr("0x21")](t,{commandName:Cr("0x0"),commandParams:[i]})}))})),s[Cr("0x10")][Cr("0x7")]((e=>{const{data:n}=e;if(n&&Cr("0x0")===n[Cr("0x24")]){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Cr("0xe")](o))e[Cr("0x1d")](Ar(t,n,s));return e[Cr("0x2")]?{type:"format",content:Yo(r,Cr("0x17"),e.join(", "))}:{type:Cr("0x1c"),content:Yo(r,Cr("0x14"))}}})),t[Cr("0x18")].get("TrackChangesEditing")[Cr("0xd")](Cr("0x26")))}}function kr(t,e){const n=t[Cr("0x4")](e);t[Cr("0x2a")](n,{unit:Cr("0x3"),direction:Cr("0x1")});const o=n[Cr("0x5")]();t.modifySelection(n,{unit:Cr("0x3"),direction:Cr("0x25")});const s=n[Cr("0x2d")]();return t[Cr("0x6")](o,s)}function Ar(t,e,n){const o=t[Cr("0x8")].t,r=e.split(/(?=[A-Z])/).join(" "),i=o(r.charAt(0).toUpperCase()+r[Cr("0x11")](1))[Cr("0xb")]();if("boolean"==typeof n)return i;if("fontColor"===e||Cr("0x20")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x1e")][Cr("0x27")](Cr("0x15"))).find((t=>t.model==n));return i+" ("+(e?o(e.label)[Cr("0xb")]():n)+")"}if(Cr("0x28")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x18")].get("FontSize")[Cr("0x1f")](t.config[Cr("0x27")]("fontSize.options"))[Cr("0x2b")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x1a")])[Cr("0xb")]():n)+")"}return i+" ("+n+")"}const vr=["editor","paragraph","HeadingEditing","TrackChangesEditing","afterInit","getSelectedBlocks","plugins","isObject","has","match","ELEMENT_HEADING_CUSTOM","heading","registerDescriptionCallback","checkChild","filter","formatBlock","commandName","format","model","parent","ELEMENT_HEADING","blockName","enableCommand","title","locale","_descriptionFactory","markBlockFormat","from","document","*Change to:* %0","config"];var Rr,Sr;Rr=vr,Sr=199,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x16")](){const t=this.editor,e=t[Ir("0xb")],n=t[Ir("0x11")].get("heading.options");if(!t.plugins[Ir("0x1a")](Ir("0x14")))return;const o=t[Ir("0x18")].get(Ir("0x15"));o[Ir("0x9")](Ir("0x1d"),((e,n)=>{const s=n.value,r=Array[Ir("0xe")](this.editor.model[Ir("0xf")].selection[Ir("0x17")]())[Ir("0x1")]((t=>{return e=t,n=s,(o=this[Ir("0x12")][Ir("0x5")].schema)[Ir("0x0")](e[Ir("0x6")],n)&&!o[Ir("0x19")](e)&&e.name!=n;var e,n,o}));t.model.change((()=>{for(const t of r)o[Ir("0xd")](t,{commandName:"heading",commandParams:[n],formatGroupId:Ir("0x8")},fs(t))}))}));for(const t of n)Ir("0x13")!=t[Ir("0x5")]&&o[Ir("0xc")].registerElementLabel(t[Ir("0x5")],(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0xa")])}));function s(t,n){return Yo(e,Ir("0x7"),[t,n])}function r(t,n){return Yo(e,Ir("0x1c"),[t,n])}o._descriptionFactory[Ir("0x1e")]((t=>{const{type:o,data:i}=t;if(Ir("0x2")==o&&i&&Ir("0x1d")==i[Ir("0x3")]){const t=i.commandParams[0].value,o=Nr(t);if(null!==o)return{type:Ir("0x4"),content:Yo(e,Ir("0x10"),s(1,o))};const x=n.find((e=>e.model===t)).title;return{type:Ir("0x4"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x1b")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["toLowerCase","plugins","registerDescriptionCallback","commandParams","getLastMatchingPosition","HighlightEditing","document","locale","color","getRanges","push","value","highlight.options","highlight","selection","backward","find","isCollapsed","config","FORMAT_HIGHLIGHT","*Set highlight:* %0","hasAttribute","*Remove highlight*","change","model","getFirstPosition","markInlineFormat","get","enableCommand","afterInit","TrackChangesEditing"];var wr,Or;wr=Mr,Or=335,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x4")](){const t=this.editor;if(!t[Fr("0x7")].has(Fr("0xb")))return;const e=t[Fr("0x7")][Fr("0x2")](Fr("0x5"));e[Fr("0x3")]("highlight",((n,o={})=>{const s=t.model[Fr("0xc")][Fr("0x14")],r=s.getAttribute(Fr("0x13"));let i=o.value,x=[];if(s[Fr("0x17")]){const e=s[Fr("0x0")]();if(!s[Fr("0x1b")]("highlight"))return void n(o);{const n=t=>t.item.getAttribute(Fr("0x13"))===r,o=e.getLastMatchingPosition(n,{direction:Fr("0x15")}),s=e[Fr("0xa")](n);x=[t[Fr("0x1e")].createRange(o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0xf")]())i?x[Fr("0x10")](e):x.push(...ms("highlight",e,t[Fr("0x1e")]));t[Fr("0x1e")][Fr("0x1d")]((()=>{for(const t of x)e[Fr("0x1")](t,{commandName:Fr("0x13"),commandParams:[{value:i}]})}))}));const n=t[Fr("0xd")];e._descriptionFactory[Fr("0x8")]((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Fr("0x13")==s.commandName){const e=n.t,o=s[Fr("0x9")][0][Fr("0x11")];if(o){const s=t[Fr("0x18")][Fr("0x2")](Fr("0x12"))[Fr("0x16")]((t=>t.model==o)),r=e(s.title)[Fr("0x6")]();return{type:"format",content:Yo(n,Fr("0x1a"),r),color:{value:s[Fr("0xe")],title:s.title}}}return{type:"format",content:Yo(n,Fr("0x1c"),Yo(n,Fr("0x19")))}}}))}}const Dr=["conversion","createPositionAt","_descriptionFactory","insert","enableCommand","afterInit","HorizontalLineEditing","ELEMENT_HORIZONTAL_LINE","createEmptyElement","elementToStructure","showSuggestionHighlights","addClass","get","plugins","registerElementLabel","horizontalLine","locale","div","ck-horizontal-line","dataDowncast","high"];var Br,jr;Br=Dr,jr=278,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x0")](){const t=this.editor;if(!t[Ur("0x8")].has(Ur("0x1")))return;t[Ur("0x8")][Ur("0x7")]("TrackChangesEditing")[Ur("0x14")](Ur("0xa"));const e=t[Ur("0x8")][Ur("0x7")]("TrackChangesEditing"),n=t[Ur("0xb")];e[Ur("0x12")][Ur("0x9")]("horizontalLine",(t=>Yo(n,Ur("0x2"),t))),t[Ur("0x10")].for(Ur("0xe"))[Ur("0x4")]({model:Ur("0xa"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x5")])return null;const o=e.createContainerElement(Ur("0xc")),s=e[Ur("0x3")]("hr");return e[Ur("0x6")](Ur("0xd"),o),e[Ur("0x13")](e[Ur("0x11")](o,0),s),o},converterPriority:Ur("0xf")})}}const Hr=["format","ELEMENT_HTML_EMBED","locale","*Change %0 content*","registerDescriptionCallback","TrackChangesEditing","rawHtml","commandName","_descriptionFactory","rawHtmlApi","plugins","value","model","editor","document","getSelectedElement","getAttribute","editing","markBlockFormat","enableCommand","view","htmlEmbed","cancel","change","HtmlEmbed"];var zr,Wr;zr=Hr,Wr=469,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this[Vr("0x13")];if(!t[Vr("0x10")].has(Vr("0x5")))return;const e=t[Vr("0x10")].get(Vr("0xb")),n=t[Vr("0x8")],o=t[Vr("0x17")][Vr("0x1")][Vr("0x14")].selection;e._descriptionFactory.registerElementLabel(Vr("0xc"),(t=>Yo(n,Vr("0x7"),t))),t[Vr("0x10")].get(Vr("0xb"))[Vr("0x0")](Vr("0x2"),((n,s)=>{const r=t[Vr("0x12")],i=r[Vr("0x14")].selection;r[Vr("0x4")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is("element",Vr("0xc"))?t[Vr("0x15")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x16")](Vr("0x11"))||"";void 0!==s&&s!==r&&(e[Vr("0x18")](t,{commandName:"htmlEmbed",commandParams:[s]}),o.getSelectedElement().getCustomProperty(Vr("0xf"))[Vr("0x3")]())}))})),e[Vr("0xe")][Vr("0xa")]((t=>{const{data:e}=t;if(e&&Vr("0x2")==e[Vr("0xd")]){const t=Yo(n,Vr("0x7"));return{type:Vr("0x6"),content:Yo(n,Vr("0x9"),t)}}}))}}const qr=["getClosestSelectedImageElement","ImageResize","locale","newRange","markDeletion","refresh","registerElementLabel","_splitMarkerName","getCaptionFromImageModelElement","start","accept","insertion","resizeImage","find","commands","nodeBefore","convertInlineImageToBlock","getAttribute","join","registerCustomCallback","selection","isInlineImage","plugins","toLowerCase","getSuggestions","hasAttribute","imageCaption","insertImage","ImageUploadEditing","imageTextAlternative","ImageEditing","*Format:* %0","imageInline","forceDefaultExecution","forward","createRange","side","ImageCaptionEditing","width","getSuggestionCallback","name","format","ImageBlockEditing","_suggestionFactory","toPrevious","commandName","next","markInlineFormat","registerPostFixer","Users","newValue","toggleImageCaption","has","imageTypeInline","markBlockFormat","model","TrackChangesEditing","getNearestSelectionRange","change","detach","end","createRangeOn","FORMAT_SIDE_IMAGE","*Remove image text alternative*","isIntersecting","document","ELEMENT_IMAGE","isEqual","isOwn","forEach","ImageCaptionUtils","convertBlockImageToInline","_findSuggestions","ELEMENT_CAPTION","author","addObject","imageStylePreApply","normalizedStyles","imageStyle","type","length","isBlockImage","formatInline","ImageStyleEditing","imageBlock","isBefore","chain","registerDescriptionCallback","_descriptionFactory","enableCommand","removeObject","isCollapsed","commandParams","*Set image width:* %0","schema","discard","suggestion","formatBlock","caption","imageStylePostApply","getSuggestion","ImageUtils","alt","fromPosition","subType","isInContent","commandReversedParams","ELEMENT_INLINE_IMAGE","value","discardSuggestion","get","getFirstRange","filter","title","nodeAfter","hasSuggestion","imageTypeBlock","findIndex"];var Xr,$r;Xr=qr,$r=369,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.plugins.has(Jr("0xf")))return;const n=t.plugins[Jr("0x5f")](Jr("0x29")),o=t[Jr("0x7")][Jr("0x5f")](Jr("0x56")),s={},r=t[Jr("0x69")];if(n[Jr("0x4a")](Jr("0xc")),n[Jr("0x49")].registerElementLabel(Jr("0x45"),(t=>Yo(r,Jr("0x33"),t))),n._descriptionFactory[Jr("0x6d")](Jr("0x11"),(t=>Yo(r,Jr("0x5c"),t))),n[Jr("0x49")][Jr("0x6d")]("caption",(()=>Yo(r,Jr("0x3a")))),t.plugins.has(Jr("0xd"))&&n[Jr("0x4a")]("uploadImage"),t[Jr("0x7")].has(Jr("0x1b"))&&t[Jr("0x7")][Jr("0x25")]("ImageInlineEditing")&&(n[Jr("0x4a")]("imageTypeInline",((e,s)=>{const r=o[Jr("0x67")](t[Jr("0x28")][Jr("0x32")][Jr("0x5")]);t.model[Jr("0x2b")]((()=>{n[Jr("0x27")](r,{commandName:"imageTypeInline",commandParams:[s]},[],Jr("0x38"))}))})),n[Jr("0x4a")](Jr("0x65"),((e,s)=>{t.model[Jr("0x2b")]((r=>{let x=o.getClosestSelectedImageElement(t[Jr("0x28")][Jr("0x32")][Jr("0x5")]),a=r.createRangeOn(x);const c=i.LivePosition[Jr("0x58")](a.start,Jr("0x1d")),l=i.LivePosition.fromPosition(a[Jr("0x2d")],"toNext");n[Jr("0x12")]((()=>e(s))),x=o[Jr("0x67")](t[Jr("0x28")].document[Jr("0x5")]),a=r[Jr("0x2e")](x);const d=r[Jr("0x14")](c,l);c[Jr("0x2c")](),l[Jr("0x2c")](),n[Jr("0x27")](x,{commandName:Jr("0x26"),commandParams:[]},[],Jr("0x1")),d.start.isBefore(a[Jr("0x70")])&&n.markInsertion(r[Jr("0x14")](d[Jr("0x70")],a[Jr("0x70")]),Jr("0x1")),a[Jr("0x2d")][Jr("0x46")](d.end)&&n.markInsertion(r[Jr("0x14")](a.end,d[Jr("0x2d")]),Jr("0x1"))}))})),n[Jr("0x1c")][Jr("0x4")]("formatBlock",Jr("0x1"),Jr("0x3"),(()=>{})),n[Jr("0x1c")][Jr("0x4")](Jr("0x52"),Jr("0x1"),Jr("0x71"),(()=>{})),n[Jr("0x1c")][Jr("0x4")]("formatBlock",Jr("0x1"),Jr("0x50"),n._suggestionFactory[Jr("0x18")](Jr("0x52"),"",Jr("0x71"))),n._suggestionFactory[Jr("0x4")](Jr("0x72"),Jr("0x1"),"join",(()=>{})),n[Jr("0x1c")].registerCustomCallback(Jr("0x72"),Jr("0x1"),"discard",(([e])=>{const o=n[Jr("0x1c")].getSuggestionCallback("insertion","",Jr("0x50"));let s=e[Jr("0x70")],r=e[Jr("0x2d")];const i=t[Jr("0x28")][Jr("0x4f")][Jr("0x2a")](s,"backward"),x=t[Jr("0x28")][Jr("0x4f")][Jr("0x2a")](r,Jr("0x13"));i.isCollapsed&&(s=i.start),x[Jr("0x4c")]&&(r=x[Jr("0x2d")]),o([t[Jr("0x28")].createRange(s,r)])})),n[Jr("0x1c")][Jr("0x4")](Jr("0x52"),Jr("0x1"),Jr("0x47"),c),n[Jr("0x1c")][Jr("0x4")](Jr("0x72"),Jr("0x1"),"chain",c)),t[Jr("0x7")].has(Jr("0x16"))&&(n[Jr("0x4a")](Jr("0x24"),((e,s)=>{const r=t.plugins.get(Jr("0x37"));let i=o[Jr("0x67")](t[Jr("0x28")][Jr("0x32")][Jr("0x5")]),x=r[Jr("0x6f")](i);t.model[Jr("0x2b")]((()=>{if(x)return void n[Jr("0x6b")](t[Jr("0x28")][Jr("0x2e")](x));const a=o[Jr("0x42")](i);e(s),i=o[Jr("0x67")](t.model[Jr("0x32")][Jr("0x5")]),x=r[Jr("0x6f")](i),n.markInsertion(t[Jr("0x28")][Jr("0x2e")](x),a?null:"imageCaption")}))})),n[Jr("0x1c")].registerCustomCallback("insertion",Jr("0xb"),Jr("0x47"),c)),t[Jr("0x7")][Jr("0x25")]("ImageStyleEditing")){n[Jr("0x4a")](Jr("0x3f"),((s,r)=>{const i=t.plugins[Jr("0x5f")](Jr("0x22")).me,x=t[Jr("0x75")][Jr("0x5f")]("imageStyle");let a=o[Jr("0x67")](t[Jr("0x28")][Jr("0x32")][Jr("0x5")]),c=t[Jr("0x28")].createRangeOn(a),l=x[Jr("0x5d")];if(l==r[Jr("0x5d")])return;const d={commandName:Jr("0x3f"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x28")][Jr("0x2b")]((()=>{if(n[Jr("0x9")]()[Jr("0x61")]((t=>t[Jr("0x5a")]&&i==t[Jr("0x3b")]&&(Jr("0x52")==t.type||Jr("0x43")==t[Jr("0x40")])&&(Jr("0x3d")==t[Jr("0x59")]||"imageStylePostApply"==t[Jr("0x59")])&&t.getFirstRange()[Jr("0x34")](c)))[Jr("0x36")]((t=>n[Jr("0x5e")](t.head))),a=o[Jr("0x67")](t[Jr("0x28")][Jr("0x32")][Jr("0x5")]),c=t[Jr("0x28")].createRangeOn(a),x[Jr("0x6c")](),t[Jr("0x75")][Jr("0x5f")](Jr("0x26"))[Jr("0x6c")](),t[Jr("0x75")][Jr("0x5f")](Jr("0x65"))[Jr("0x6c")](),l=x[Jr("0x5d")],l!=r[Jr("0x5d")])return o[Jr("0x6")](a)&&x.shouldConvertImageType(r[Jr("0x5d")],a)?(s(r),a=o[Jr("0x67")](t[Jr("0x28")][Jr("0x32")][Jr("0x5")]),void n[Jr("0x27")](a,{...d,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Jr("0x42")](a)?n[Jr("0x27")](a,d,[],Jr("0x54")):n[Jr("0x20")](c,d,Jr("0x54")))}))}));for(const e of t[Jr("0x7")][Jr("0x5f")](Jr("0x44"))[Jr("0x3e")])s[e[Jr("0x19")]]=e[Jr("0x62")][Jr("0x8")]();n[Jr("0x1c")][Jr("0x4")](Jr("0x52"),"imageStylePreApply",Jr("0x3"),(()=>{})),n._suggestionFactory[Jr("0x4")](Jr("0x52"),Jr("0x54"),"join",(()=>{})),n[Jr("0x1c")][Jr("0x4")](Jr("0x43"),Jr("0x54"),Jr("0x3"),(()=>{})),n[Jr("0x1c")].registerCustomCallback("formatBlock","imageStylePreApply",Jr("0x71"),(()=>{})),n._suggestionFactory[Jr("0x4")](Jr("0x52"),Jr("0x3d"),Jr("0x50"),((t,e)=>{n[Jr("0x1c")][Jr("0x18")](Jr("0x52"),"","accept")(t,{commandName:e.commandName,commandParams:e[Jr("0x5b")]})})),n._suggestionFactory[Jr("0x4")](Jr("0x52"),Jr("0x3d"),Jr("0x47"),c)}const x=[{type:Jr("0x52"),subType:Jr("0x3d")},{type:Jr("0x72"),subType:"imageCaption"},{type:Jr("0x52"),subType:"convertInlineImageToBlock"},{type:Jr("0x72"),subType:Jr("0x1")}];function a(t,e){const s=x[Jr("0x66")]((({type:e,subType:n})=>t[Jr("0x40")]==e&&t.subType==n)),r=x[Jr("0x66")]((({type:t,subType:n})=>e.type==t&&e[Jr("0x59")]==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e[Jr("0x60")]();if((0==s||1==s)&&2==r&&i[Jr("0x31")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x39")](i,Jr("0x72"))[Jr("0x61")]((({suggestion:t,meta:e})=>e[Jr("0x35")]&&Jr("0x1")==t[Jr("0x59")]));if(t[Jr("0x41")]>1&&a[Jr("0x2d")][Jr("0x34")](i[Jr("0x70")]))return!0;if(1==t[Jr("0x41")]&&(i[Jr("0x70")][Jr("0x34")](a[Jr("0x2d")])||i[Jr("0x2d")].isEqual(a[Jr("0x70")])))return!0}if(3==s&&3==r&&i.start.isBefore(a[Jr("0x70")])){const t=i[Jr("0x2d")][Jr("0x63")],e=a[Jr("0x70")][Jr("0x0")];return o[Jr("0x42")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x28")].document[Jr("0x21")]((()=>{let e=!1;const s=Array.from(t.model.document.differ.getChangedMarkers());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x6e")](t);if(Jr("0x51")==s&&n[Jr("0x64")](a)){if(Jr("0x52")==i&&(Jr("0x3d")==x||Jr("0x54")==x)){const t=n[Jr("0x55")](a);if(r[Jr("0x6a")]){const s=t.getFirstRange().getContainedElement();if(o[Jr("0x42")](s))continue;n[Jr("0x5e")](t),e=!0}}if(Jr("0x72")==i&&Jr("0xb")==x&&!r.newRange){const t=n[Jr("0x55")](a);t[Jr("0x1f")]&&t[Jr("0x1f")].isInContent&&(n.discardSuggestion(t[Jr("0x1f")]),e=!0)}}}return e})),t.plugins.has(Jr("0x68"))&&n[Jr("0x4a")](Jr("0x73"),((e,s)=>{const r=o[Jr("0x67")](t.model[Jr("0x32")][Jr("0x5")]);r[Jr("0x2")]("width")!=s[Jr("0x17")]&&t[Jr("0x28")].change((()=>{n[Jr("0x27")](r,{commandName:Jr("0x73"),commandParams:[s]})}))})),t[Jr("0x7")][Jr("0x25")]("ImageTextAlternativeEditing")&&n[Jr("0x4a")](Jr("0xe"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x28")][Jr("0x32")][Jr("0x5")]);(r[Jr("0xa")](Jr("0x57"))?r.getAttribute(Jr("0x57")):"")!=s[Jr("0x23")]&&t[Jr("0x28")][Jr("0x2b")]((()=>{n[Jr("0x27")](r,{commandName:Jr("0xe"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x48")]((t=>{if(x[Jr("0x74")]((({type:e,subType:n})=>t.type==e&&t[Jr("0x59")]==n)))return t.previous?{}:void 0})),n[Jr("0x49")].registerDescriptionCallback((t=>{if(Jr("0x72")==t.type||"deletion"==t[Jr("0x40")]){const e=t.getContainedElement();if(e&&e.is("element",Jr("0x53")))return{type:Jr("0x72")==t[Jr("0x40")]?Jr("0x3c"):Jr("0x4b"),element:e,quantity:1}}})),n[Jr("0x49")][Jr("0x48")]((t=>Jr("0x52")==t[Jr("0x40")]&&Jr("0x1")==t.subType?{type:Jr("0x1a"),content:"Inline image to block image"}:Jr("0x52")==t.type&&Jr("0x38")==t[Jr("0x59")]?{type:Jr("0x1a"),content:"Block image to inline image"}:void 0)),n._descriptionFactory[Jr("0x48")]((t=>{const{data:e}=t;if(e){if(Jr("0x3f")==e.commandName){const t=e[Jr("0x4d")][0][Jr("0x5d")];return n=Jr("0x15")===t?Yo(r,Jr("0x2f")):s[t]||t,{type:Jr("0x1a"),content:Yo(r,Jr("0x10"),n)}}if("imageTextAlternative"==e.commandName){const t=e[Jr("0x4d")][0][Jr("0x23")];return t?{type:Jr("0x1a"),content:Yo(r,"*Set image text alternative:* %0",'"'+t+'"')}:{type:Jr("0x1a"),content:Yo(r,Jr("0x30"))}}if("resizeImage"==e[Jr("0x1e")]){const t=e.commandParams[0][Jr("0x17")];return t?{type:Jr("0x1a"),content:Yo(r,Jr("0x4e"),t)}:{type:Jr("0x1a"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["selection","src","enableCommand","handleReplaceImageCommand","replaceImageSource","registerCustomCallback","_descriptionFactory","get","change","afterInit","handleSuggestionDescription","commandParams","Users","_suggestionFactory","*Format:* replace image URL","subType","model","formatBlock","getSuggestions","format","getContainedElement","registerDescriptionCallback","getAttribute","TrackChangesEditing","plugins","getSelectedElement","locale","data","discard","author","getSuggestionCallback","document","editor","accept","has"];var Yr,ti;Yr=Zr,ti=312,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0xc")](){if(!this[ei("0x0")].plugins[ei("0x2")]("ImageEditing"))return;const t=this[ei("0x0")][ei("0x1b")][ei("0xa")](ei("0x1a"));t[ei("0x5")](ei("0x7"),((t,e)=>this[ei("0x6")](t,e))),t[ei("0x10")][ei("0x8")](ei("0x14"),ei("0x7"),ei("0x1"),t[ei("0x10")][ei("0x21")](ei("0x14"),null,ei("0x1f"))),t._suggestionFactory[ei("0x8")]("formatBlock",ei("0x7"),"discard",t[ei("0x10")][ei("0x21")](ei("0x14"),null,ei("0x1"))),t[ei("0x9")][ei("0x18")]((t=>this[ei("0xd")](t)))}[ei("0x6")](t,e){const n=this[ei("0x0")][ei("0x1b")].get(ei("0x1a")),o=this[ei("0x0")][ei("0x13")][ei("0x22")][ei("0x3")][ei("0x1c")]();this[ei("0x0")][ei("0x13")][ei("0xb")]((()=>{let s=o[ei("0x19")](ei("0x4"));const r=this[ei("0x0")][ei("0x1b")][ei("0xa")](ei("0xf")).me;for(const t of n[ei("0x15")]({skipNotAttached:!0})){const e=t[ei("0x17")]();if(ei("0x7")===t[ei("0x12")]&&e===o){t[ei("0x20")]!==r&&t[ei("0x1f")](),s=t[ei("0x1e")][ei("0xe")][0].source;break}}t(e),n.markBlockFormat(o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ei("0x7"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&ei("0x7")===e.commandName){const t=ei("0x11");return{type:ei("0x16"),content:Yo(this[ei("0x0")][ei("0x1d")],t)}}}}const oi=["lowest","trackChanges","enableCommand","_setSuggestionData","_trackChangesExecuted","execute","value","afterInit","bind","importWord","TrackChangesEditing","collaboration_features","dataInsert","track_changes","commands","_trackChangesValueDuringImport","_handleImportedData","forEach","get","plugins","listenTo","editor","high"];var si,ri;si=oi,ri=311,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("0x3")]=!1,this._trackChangesExecuted=!1}[ii("0x12")](){const t=this[ii("0x9")],e=t[ii("0x2")].get(ii("0x14")),n=t[ii("0x2")][ii("0x6")]("trackChanges");e&&(e.on(ii("0x10"),((t,[,e])=>{this[ii("0x3")]=n[ii("0x11")],e[ii("0x16")][ii("0x1")]=!this._trackChangesValueDuringImport}),{priority:ii("0xa")}),this.listenTo(e,ii("0x0"),this[ii("0x4")][ii("0x13")](this)),this[ii("0x8")](e,ii("0x0"),(()=>{this[ii("0xf")]&&(n[ii("0x10")](),this[ii("0xf")]=!1)}),{priority:ii("0xb")}),t.plugins.get("TrackChangesEditing")[ii("0xd")]("importWord"))}[ii("0x4")](t,e){const{suggestions:n}=e,o=this.editor[ii("0x2")][ii("0x6")](ii("0xc")),s=o[ii("0x11")];this._trackChangesValueDuringImport!==s&&(o[ii("0x10")](),this[ii("0xf")]=!0),n&&n[ii("0x5")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x9")].plugins.get("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[ii("0x9")][ii("0x7")].get(ii("0x15"))[ii("0xe")](s)}))}}const ai=["model","commandName","IndentEditing","editor","selection","get","indentBlock","has","*Indent:* %0","outdentBlock","change","schema","filter","checkAttribute","*Outdent:* %0","afterInit","markBlockFormat","format","from","registerDescriptionCallback","_descriptionFactory","IndentBlock","locale","enableCommand","blockIndent","outdent","plugins"];var ci,li;ci=ai,li=347,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x13")](){const t=this[di("0x7")],e=t[di("0x3")][di("0x9")]("TrackChangesEditing");t.plugins[di("0xb")](di("0x6"))&&(e[di("0x0")]("indent"),e[di("0x0")](di("0x2")));const n=t[di("0x1a")];if(t[di("0x3")][di("0xb")](di("0x19"))){for(const n of["indentBlock",di("0xd")])e.enableCommand(n,(()=>{const o=Array[di("0x16")](this.editor[di("0x4")].document[di("0x8")].getSelectedBlocks())[di("0x10")]((t=>this[di("0x7")][di("0x4")][di("0xf")][di("0x11")](t,di("0x1"))));t[di("0x4")][di("0xe")]((()=>{for(const t of o)e[di("0x14")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0xa")})}))}));e._descriptionFactory[di("0x17")]((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o[di("0x5")]&&di("0xd")!=o[di("0x5")])return;const s=t.getItems()[0],r=e[di("0x18")].getItemLabel(s);return di("0xa")==o[di("0x5")]?{type:di("0x15"),content:Yo(n,di("0xc"),r)}:di("0xd")==o.commandName?{type:di("0x15"),content:Yo(n,di("0x12"),r)}:void 0}))}}}var gi,mi,fi=["plugins","enableCommand","get","init","TrackChangesEditing","requires","editor"];gi=fi,mi=307,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("0x6")](){return[Vs.Input]}[hi("0x4")](){this[hi("0x0")][hi("0x1")][hi("0x3")](hi("0x5"))[hi("0x2")]("input")}}const bi=["selection","enableCommand","isCollapsed","commandParams","has","getFirstRange","*Remove link*","editor","change","linkHref","markInlineFormat","unlink","*Set link:* %0","link","commandName","afterInit","document","getFirstPosition","model","plugins","LinkEditing","registerDescriptionCallback","TrackChangesEditing","format"];var Ei,_i;Ei=bi,_i=164,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x13")](){const t=this.editor;if(!t[Ti("0x17")][Ti("0x8")](Ti("0x0")))return;const e=t[Ti("0x17")].get(Ti("0x2"));e[Ti("0x5")](Ti("0x11"),((n,o)=>{const s=t[Ti("0x16")][Ti("0x14")].selection;let r=[];if(s.isCollapsed){if(!s.hasAttribute(Ti("0xd")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0x15")](),"linkHref",s.getAttribute("linkHref"),t[Ti("0x16")]);r=[e]}}else r=Array.from(s.getRanges());t[Ti("0x16")][Ti("0xc")]((()=>{for(const t of r)e.markInlineFormat(t,{commandName:Ti("0x11"),commandParams:[o]})}))})),e[Ti("0x5")](Ti("0xf"),(()=>{const n=this[Ti("0xb")].model,o=n[Ti("0x14")][Ti("0x4")];n[Ti("0xc")]((()=>{let n=[];n=o[Ti("0x6")]?[(0,Vs.findAttributeRange)(o[Ti("0x15")](),Ti("0xd"),o.getAttribute(Ti("0xd")),t[Ti("0x16")])]:ms(Ti("0xd"),o[Ti("0x9")](),t[Ti("0x16")]);for(const t of n)e[Ti("0xe")](t,{commandName:Ti("0xf"),commandParams:[]})}))})),e._descriptionFactory[Ti("0x1")]((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x11")==n[Ti("0x12")]){const t=n[Ti("0x7")][0];return{type:Ti("0x3"),content:Yo(o,Ti("0x10"),'"'+t+'"')}}return Ti("0xf")==n[Ti("0x12")]?{type:Ti("0x3"),content:Yo(o,Ti("0xa"))}:void 0}}))}}const yi=["end","ELEMENT_LIST_ITEM","previousSibling","locale","createPositionAt","name","plugins","getAttribute","parent","TrackChangesEditing","outdentList","numberedList","TodoListEditing","schema","editor","enableCommand","document","execute","_descriptionFactory","ListEditing","blockName","from","checkTodoList","selection","get","commands","bulletedList","*Indent:* %0","replace","ELEMENT_BULLETED_LIST","markBlockFormat","has","push","isObject","model","value","nextSibling","listIndent","length","commandName","bulleted","todoList","_selectedElements","indentList","List","registerDescriptionCallback","format","afterInit","listType","createRange","element","registerElementLabel","ELEMENT_TODO_LIST","filter","checkChild","slice","listItem","getSelectedBlocks","change","add"];var ki,Ai;ki=yi,Ai=272,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0xf")](){const t=this[vi("0x2a")],e=t[vi("0x1f")];if(!t[vi("0x22")].has(vi("0x2f")))return;const n=t[vi("0x22")][vi("0x34")](vi("0x25")),o=t[vi("0x22")][vi("0x3b")](vi("0x28"));function s(e){return()=>{const o=t[vi("0x2")][vi("0x2c")].selection,s=t[vi("0x35")][vi("0x34")](e);if(s.value)return void t[vi("0x2d")]("paragraph",{});const r=e[vi("0x17")](0,-4),i=function(t,e,n){let o=Array[vi("0x31")](t).filter((t=>{return e=t,(o=n)[vi("0x16")](e[vi("0x24")],"listItem")&&!o[vi("0x1")](e);var e,o}));o=o.filter((t=>!t.is(vi("0x12"),vi("0x18"))||t[vi("0x23")](vi("0x10"))!=e));const s=new Set;for(const t of o)t.is("element","listItem")?s.add(Si(t)):s[vi("0x1b")](t);return Array[vi("0x31")](s)}(o[vi("0x19")](),r,t[vi("0x2")][vi("0x29")]);t[vi("0x2")].change((()=>{for(const t of i)n[vi("0x3a")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x3")]}],formatGroupId:vi("0x30")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e.findIndex((t=>vi("0x18")!=t[vi("0x21")]));return n>-1&&(e=e[vi("0x17")](0,n)),e}(t[vi("0x2")].document[vi("0x33")][vi("0x19")]()),s=t[vi("0x2")][vi("0x11")](t.model[vi("0x20")](o[0],"before"),t.model[vi("0x20")](o[o[vi("0x6")]-1],vi("0x1c")));t[vi("0x2")][vi("0x1a")]((()=>{n[vi("0x3a")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x5")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x4")];for(;t&&t[vi("0x23")](vi("0x5"))>n[vi("0x23")](vi("0x5"));)e[vi("0x1b")](t),t=t[vi("0x4")]}return Array.from(e)}(o))}))}}n.enableCommand(vi("0x27"),s("numberedList")),n[vi("0x2b")](vi("0x36"),s(vi("0x36"))),o&&n[vi("0x2b")](vi("0x9"),s("todoList")),n[vi("0x2b")](vi("0xb"),r(vi("0xb"))),n[vi("0x2b")](vi("0x26"),r(vi("0x26"))),o&&n[vi("0x2b")]("checkTodoList",(()=>{const e=t.commands[vi("0x34")]("checkTodoList"),o=Array[vi("0x31")](e[vi("0xa")]);o[vi("0x15")]((t=>t[vi("0x23")]("todoListChecked")!=e[vi("0x3")])),t.model[vi("0x1a")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:vi("0x32"),commandParams:[{forceValue:!e[vi("0x3")]}]})}))})),n[vi("0x2e")][vi("0x13")](vi("0x18"),(t=>Yo(e,vi("0x1d"),t))),n[vi("0x2e")][vi("0xd")]((t=>{const{data:n}=t;if(n){if(vi("0x27")==n[vi("0x7")]||"bulletedList"==n.commandName||"todoList"==n[vi("0x7")])switch(n[vi("0x7")][vi("0x38")](vi("0xc"),"")){case vi("0x8"):return o(Yo(e,vi("0x39")));case"numbered":return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case"todo":return o(Yo(e,vi("0x14")))}if(vi("0xb")==n.commandName)return{type:"format",content:Yo(e,vi("0x37"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x26")==n[vi("0x7")])return{type:vi("0xe"),content:Yo(e,"*Outdent:* %0",Yo(e,vi("0x1d")))};if(vi("0x32")==n[vi("0x7")])return n.commandParams[0].forceValue?{type:vi("0xe"),content:Yo(e,"*Check item*")}:{type:vi("0xe"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:vi("0xe"),content:Yo(e,"*Change to:* %0",t)}}}))}}function Si(t){const e=t.getAttribute(vi("0x5"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x1e")].is(vi("0x12"),"listItem");){const o=t[vi("0x1e")].getAttribute(vi("0x5"));if(o==e)n=t[vi("0x1e")];else if(o<e)break;t=t[vi("0x1e")]}return n}function Ii(t){const e=[];if(t.is("element",vi("0x18"))&&t[vi("0x23")](vi("0x5"))>0){let n=t[vi("0x4")];for(;n&&vi("0x18")==n[vi("0x21")]&&n[vi("0x23")]("listIndent")==t.getAttribute("listIndent");)e[vi("0x0")](n),n=n[vi("0x4")]}return e}const Li=["map","forward","getFirstPosition","filter","toUpperCase","handleListReversedCommand","backward","styles","_getSuggestionBlocks","element","editor","parent","enableCommand","type","list.properties","*Format:* set order to reversed","*Format:* set order to regular","handleListStyleCommand","createPositionAt","commandName","startIndex","*Format:* set start index to %0","registerDescriptionCallback","_LIST_","TrackChangesEditing","ELEMENT_","get","getAttribute","listStyle","push","afterInit","config","length","getSelectedBlocks","change","plugins","replace","commandParams","format","getSiblingNodes","document","listType","reversed","_getTranslationKeyForListStyle","model","listReversed","_descriptionFactory","from","has","handleListStartCommand","bind","handleDescriptions","ListUtils","listItem","_getSuggestionBlocksForListStyle","unshift","numbered","listStart","markMultiRangeBlockFormat","selection"];var Ni,Mi;Ni=Li,Mi=396,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x36")](){if(!this.editor[wi("0x3b")][wi("0xc")]("ListPropertiesEditing"))return;const t=this[wi("0x22")][wi("0x37")][wi("0x32")](wi("0x26")),e=this.editor[wi("0x3b")][wi("0x32")](wi("0x30"));t[wi("0x1f")]&&e[wi("0x24")](wi("0x34"),this[wi("0x29")][wi("0xe")](this)),t[wi("0x6")]&&e[wi("0x24")]("listReversed",this.handleListReversedCommand[wi("0xe")](this)),t[wi("0x2c")]&&e[wi("0x24")]("listStart",this[wi("0xd")][wi("0xe")](this)),e[wi("0xa")][wi("0x2e")](this.handleDescriptions.bind(this))}handleListStyleCommand(t,e={}){const n=this.editor[wi("0x3b")].get("TrackChangesEditing"),o=this[wi("0x12")]();this[wi("0x22")][wi("0x8")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:wi("0x34"),commandParams:[{type:e[wi("0x25")]}],formatGroupId:wi("0x34")})}))}[wi("0x1d")](t,e={}){const n=this.editor[wi("0x3b")].get("TrackChangesEditing"),o=this[wi("0x20")]((t=>t.is(wi("0x21"),"listItem")&&"numbered"===t[wi("0x33")](wi("0x5"))));if(o[wi("0x38")]<1)return;const s=o[wi("0x18")]((t=>this.editor.model.createRange(this[wi("0x22")][wi("0x8")].createPositionAt(t,"before"),this[wi("0x22")][wi("0x8")].createPositionAt(t,0))));this[wi("0x22")][wi("0x8")][wi("0x3a")]((()=>{n[wi("0x16")](s,{commandName:"listReversed",commandParams:[{reversed:e.reversed}],formatGroupId:wi("0x9")})}))}[wi("0xd")](t,e={}){const n=this[wi("0x22")][wi("0x3b")][wi("0x32")](wi("0x30")),o=this[wi("0x20")]((t=>t.is(wi("0x21"),wi("0x11"))&&wi("0x14")===t[wi("0x33")](wi("0x5"))));if(o[wi("0x38")]<1)return;const s=o[wi("0x18")]((t=>this[wi("0x22")].model.createRange(this[wi("0x22")][wi("0x8")][wi("0x2a")](t,"before"),this[wi("0x22")][wi("0x8")][wi("0x2a")](t,0))));this[wi("0x22")][wi("0x8")][wi("0x3a")]((()=>{n[wi("0x16")](s,{commandName:wi("0x15"),commandParams:[{startIndex:e.startIndex}],formatGroupId:wi("0x15")})}))}[wi("0xf")](t){const e=this[wi("0x22")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x2b")]){case wi("0x34"):o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this[wi("0x7")](n.commandParams[0].type)))};break;case wi("0x9"):o=n[wi("0x1")][0][wi("0x6")]?wi("0x27"):wi("0x28"),s={type:wi("0x2"),content:Yo(e,o)};break;case"listStart":o=wi("0x2d"),s={type:wi("0x2"),content:Yo(e,o,n.commandParams[0][wi("0x2c")])}}return s}[wi("0x12")](){var t,e,n,o;const s=this[wi("0x22")][wi("0x3b")][wi("0x32")](wi("0x10"));let r=Array[wi("0xb")](this[wi("0x22")][wi("0x8")][wi("0x4")][wi("0x17")].getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x21"),wi("0x11")))&&r[wi("0x13")](...s[wi("0x3")](this[wi("0x22")][wi("0x8")][wi("0x4")][wi("0x17")][wi("0x1a")](),wi("0x1e"))),(null===(e=r[r.length-1])||void 0===e?void 0:e.is(wi("0x21"),wi("0x11")))&&r[wi("0x35")](...s[wi("0x3")](this[wi("0x22")][wi("0x8")][wi("0x4")][wi("0x17")].getLastPosition(),wi("0x19"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x22")][wi("0x8")][wi("0x4")][wi("0x17")].getFirstPosition())||void 0===n?void 0:n[wi("0x23")])||void 0===o?void 0:o.is(wi("0x21"),"listItem"))&&(r=r.filter((t=>t.is(wi("0x21"),"listItem")))),r}[wi("0x20")](t){const e=this.editor.plugins[wi("0x32")](wi("0x10"));let n=Array.from(this[wi("0x22")][wi("0x8")][wi("0x4")].selection[wi("0x39")]())[wi("0x1b")](t)[wi("0x18")]((t=>{const n=this[wi("0x22")][wi("0x8")][wi("0x2a")](t,0);return[...e[wi("0x3")](n,wi("0x1e")),...e.getSiblingNodes(n,wi("0x19"))]})).flat();return n=[...new Set(n)],n}[wi("0x7")](t){return wi("0x31")+this[wi("0x22")].plugins[wi("0x32")](wi("0x10")).getListTypeFromListStyleType(t)[wi("0x1c")]()+wi("0x2f")+t[wi("0x1c")]()[wi("0x0")](/-/g,"_")}}const Fi=["attribute:url:media","createEmptyElement","downcastDispatcher","stop","showSuggestionHighlights","conversion","mediaEmbed","locale","data","plugins","for","registerElementLabel","ELEMENT_MEDIA","MediaEmbedEditing","_descriptionFactory","afterInit","dataDowncast","enableCommand","TrackChangesEditing","media","high","div","editor"];var Pi,Di;Pi=Fi,Di=258,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xa")](){const t=this[Bi("0x11")];if(!t[Bi("0x4")].has(Bi("0x8")))return;const e=t[Bi("0x4")].get(Bi("0xd")),n=t[Bi("0x2")];e[Bi("0xc")](Bi("0x1")),e[Bi("0x9")][Bi("0x6")]("media",(t=>Yo(n,Bi("0x7"),t))),t[Bi("0x0")][Bi("0x5")](Bi("0xb")).elementToElement({model:Bi("0xe"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x16")])return e[Bi("0x13")](Bi("0x10"))},converterPriority:Bi("0xf")}),t[Bi("0x3")][Bi("0x14")].on(Bi("0x12"),((t,e,n)=>{n.options[Bi("0x16")]&&t[Bi("0x15")]()}),{priority:Bi("0xf")})}}const Ui=["editor","mention","afterInit","has","plugins","get"];var Gi,Hi;Gi=Ui,Hi=265,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x1")](){const t=this[zi("0x5")];t[zi("0x3")][zi("0x2")]("MentionEditing")&&t[zi("0x3")][zi("0x4")]("TrackChangesEditing").enableCommand(zi("0x0"))}}const Vi=["has","_descriptionFactory","editor","pageBreak","registerElementLabel","afterInit","plugins","enableCommand","TrackChangesEditing","get"];var Ki,qi;Ki=Vi,qi=438,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x7")](){const t=this[Xi("0x4")];if(!t.plugins[Xi("0x2")]("PageBreakEditing"))return;t[Xi("0x8")][Xi("0x1")](Xi("0x0"))[Xi("0x9")](Xi("0x5"));const e=t.plugins[Xi("0x1")]("TrackChangesEditing"),n=t.locale;e[Xi("0x3")][Xi("0x6")]("pageBreak",(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const Ji=["isTouching","$text","plugins","addMarker:suggestion:insertion","addClass","name","*Change to:* %0","selection","insert","consumable","document","format","schema","model","filter","showSuggestionHighlights","registerDescriptionCallback","editing","highest","Paragraph","createUIElement","*Insert:* %0","nodeAfter","getItemLabel","ELEMENT_PARAGRAPH","markerName","parent","markerRange","_descriptionFactory","from","end","change","includes","writer","isLimit","toViewPosition","insertion","activeMarkers","span","options","mapper","editor","enableCommand","start","consume","getFirstRange","ck-suggestion-marker-split","paragraph","locale","checkChild","downcastDispatcher","TrackChangesEditing","insertParagraph"];var Qi,Zi;Qi=Ji,Zi=331,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{afterInit(){const t=this.editor;if(!t[Yi("0x2a")].has(Yi("0x6")))return;const e=t[Yi("0x23")],n=t[Yi("0x2a")].get(Yi("0x26"));n[Yi("0xf")].registerElementLabel(Yi("0x22"),(t=>Yo(e,Yi("0xb"),t))),n[Yi("0x1d")]("paragraph",((e,o={})=>{const s=t.model[Yi("0x32")],r=o[Yi("0x2f")]||s[Yi("0x2f")],i=Array[Yi("0x10")](r.getSelectedBlocks())[Yi("0x1")]((t=>{return e=t,(n=this[Yi("0x1c")][Yi("0x0")].schema).checkChild(e[Yi("0xd")],"paragraph")&&!n.isObject(e)&&"paragraph"!=e[Yi("0x2d")];var e,n}));t[Yi("0x0")][Yi("0x12")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0x22"),commandParams:[],formatGroupId:"blockName"},fs(t))}))})),n[Yi("0xf")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Yi("0x22")==n.commandName)return{type:Yi("0x33"),content:Yo(e,Yi("0x2e"),Yo(e,Yi("0xb")))}})),n.enableCommand(Yi("0x27")),t[Yi("0x4")][Yi("0x25")].on(Yi("0x2b"),ex(t),{priority:Yi("0x5")}),t.data[Yi("0x25")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[Yi("0x1a")][Yi("0x2")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x5")});const o=n[Yi("0xf")];o[Yi("0x3")]((n=>{if(Yi("0x17")!==n.type)return;const{start:s,end:r}=n[Yi("0x20")]();if(!s[Yi("0x28")](r)||!s[Yi("0x9")])return;const i=t[Yi("0x0")][Yi("0x34")],x=s.nodeAfter;return i.isBlock(x)&&!i.isLimit(x)&&i.checkChild(x,"$text")?{type:"insertion",content:Yo(e,Yi("0x8"),o[Yi("0xa")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x2a")].get(Yi("0x26")),i=o.markerRange[Yi("0x1e")],x=o[Yi("0xe")][Yi("0x11")],a=t.model.schema;if(!i[Yi("0x28")](x)||!i[Yi("0x9")])return;const c=i[Yi("0x9")];if(a.isBlock(c)&&!a[Yi("0x15")](c)&&a[Yi("0x24")](c,Yi("0x29"))){if(!s[Yi("0x31")][Yi("0x1f")](o[Yi("0xe")],n[Yi("0x2d")]))return;const t=s[Yi("0x14")][Yi("0x7")](Yi("0x19"),{class:Yi("0x21")}),i=s[Yi("0x1b")][Yi("0x16")](x);e&&r[Yi("0x18")][Yi("0x13")](o[Yi("0xc")])&&s[Yi("0x14")][Yi("0x2c")]("ck-suggestion-marker--active",t),s[Yi("0x14")][Yi("0x30")](i,t),s[Yi("0x1b")].bindElementToMarker(t,o.markerName)}}}const nx=["RemoveFormatEditing","removeFormat","TrackChangesEditing","get","getAttributes","commandName","has","from","schema","enableCommand","getItems","isFormatting","isCollapsed","_descriptionFactory","createRangeOn","format","afterInit","registerDescriptionCallback","change","markInlineFormat","model","locale","selection","plugins"];var ox,sx;ox=nx,sx=416,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.editor;if(!t[rx("0xf")][rx("0x16")](rx("0x10")))return;const e=t[rx("0xf")][rx("0x13")](rx("0x12"));e[rx("0x1")](rx("0x11"),(n=>{const o=t.model.document[rx("0xe")];o[rx("0x4")]?n():t[rx("0xc")][rx("0xa")]((()=>{const n=Array[rx("0x17")](o.getRanges());for(const o of n)for(const n of o[rx("0x2")]())xx(n,t.model[rx("0x0")])&&e[rx("0xb")](t[rx("0xc")][rx("0x6")](n),{commandName:"removeFormat",commandParams:[]})}))})),e[rx("0x5")][rx("0x9")]((e=>{const{data:n}=e;if(n&&rx("0x11")==n[rx("0x15")])return{type:rx("0x7"),content:Yo(t[rx("0xd")],"*Remove all formatting*")}}))}}function xx(t,e){for(const[n]of t[rx("0x14")]()){const t=e.getAttributeProperties(n);if(t&&t[rx("0x3")])return!0}return!1}const ax=["RestrictedEditingModeEditing","discardAllSuggestions","discardSelectedSuggestions","enableCommand","trackChanges","plugins","acceptAllSuggestions","editor","goToNextRestrictedEditingException","acceptSelectedSuggestions","TrackChangesEditing"];var cx,lx;cx=ax,lx=305,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{afterInit(){const t=this[dx("0xa")];if(!t.plugins.has(dx("0x3")))return;const e=t[dx("0x8")].get(dx("0x2"));e[dx("0x6")]("goToPreviousRestrictedEditingException"),e[dx("0x6")](dx("0x0"));const n=t[dx("0x8")].get(dx("0x3"));n[dx("0x6")](dx("0x7")),n[dx("0x6")]("acceptSuggestion"),n[dx("0x6")]("discardSuggestion"),n[dx("0x6")](dx("0x9")),n[dx("0x6")](dx("0x4")),n[dx("0x6")](dx("0x1")),n.enableCommand(dx("0x5"))}}const gx=["downcastDispatcher","init","consumable","merge","requires","get","plugins","addMarker:suggestion:insertion","ck-suggestion-marker--active","registerElementLabel","shiftEnter","high","enableCommand","createUIElement","TrackChangesEditing","mapper","ELEMENT_LINE_BREAK","insert","locale","_descriptionFactory","writer","element","createPositionBefore","editor","addClass","markerName","activeMarkers","getItems","softBreak","options","addMarker:suggestion:deletion","deletion","split","markerRange","model","toViewPosition","span","editing"];var mx,fx;mx=gx,fx=452,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("0x8")](){return[nr.ShiftEnter]}[hx("0x5")](){const t=this[hx("0x1b")],e=t[hx("0xa")].get(hx("0x12"));e[hx("0x10")](hx("0xe")),t.editing[hx("0x4")].on(hx("0xb"),bx(t),{priority:hx("0xf")}),t[hx("0x3")][hx("0x4")].on(hx("0x22"),bx(t),{priority:"high"}),t.data.downcastDispatcher.on("addMarker:suggestion",((e,n,o)=>{o[hx("0x21")].showSuggestionHighlights&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x17")][hx("0xd")](hx("0x20"),(e=>Yo(t[hx("0x16")],hx("0x14"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[hx("0x9")](hx("0x12"));if(!s[hx("0x6")].test(o[hx("0x25")],n.name))return;const i=t[hx("0x0")];for(const t of o.markerRange[hx("0x1f")]()){if(!t.is(hx("0x19"),hx("0x20")))continue;const n=hx("0x23")==o[hx("0x1d")][hx("0x24")](":")[1]?hx("0x7"):"split",x=s[hx("0x18")][hx("0x11")](hx("0x2"),{class:"ck-suggestion-marker-"+n}),a=s[hx("0x13")][hx("0x1")](i[hx("0x1a")](t));e&&r[hx("0x1e")].includes(o[hx("0x1d")])&&s[hx("0x18")][hx("0x1c")](hx("0xc"),x),s.writer[hx("0x15")](a,x),s[hx("0x13")].bindElementToMarker(x,o[hx("0x1d")])}}}const Ex=["plugins","editor","FORMAT_RESTRICTED_DISABLED","has","format","get","restrictedEditingException","enableCommand","markInlineFormat","TrackChangesEditing","commandName","FORMAT_RESTRICTED_ENABLED","from","registerDescriptionCallback","change","_descriptionFactory","StandardEditingModeEditing","afterInit","value","forceValue"];var _x,Tx;_x=Ex,Tx=460,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x11")](){const t=this[Cx("0x1")],e=t.model,n=t.locale;if(!t[Cx("0x0")][Cx("0x3")](Cx("0x10")))return;const o=t[Cx("0x0")][Cx("0x5")](Cx("0x9")),s=Cx("0x6"),r=t.commands[Cx("0x5")](s);o[Cx("0x7")](s,((t,n={})=>{const i=e.document.selection;if(i.isCollapsed)return void t(n);const x=void 0!==n.forceValue?n.forceValue:!r[Cx("0x12")];e[Cx("0xe")]((()=>{const t=Array[Cx("0xc")](i.getRanges());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x8")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0xf")][Cx("0xd")]((t=>{const{data:e}=t;if(e&&e[Cx("0xa")]==s)return e.commandParams[0][Cx("0x13")]?{type:Cx("0x4"),content:Yo(n,Cx("0xb"))}:{type:Cx("0x4"),content:Yo(n,Cx("0x2"))}}))}}const kx=["createRangeOn","commandName","element","includes","afterInit","_descriptionFactory","normalizeConfig","toLowerCase","_getRangesWithClasses","block","commandParams","change","every","getSelectedBlocks","selection","markBlockFormat","style","classes","model","markInlineFormat","add","registerDescriptionCallback","getAttribute","find","isCollapsed","has","styleName","getDefinitionsForView","forceValue","document","getItems","enabledStyles","name","*Remove format:* %0","DataSchema","TrackChangesEditing","get","plugins","value","from","commands","*Format:* %0","push","style.definitions","editor","format","_getStyleDefinition","StyleUtils","Style","getAncestors","isBlock","enableCommand","locale"];var Ax,vx;Ax=kx,vx=432,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x31")](){const t=this[Rx("0x24")];if(!t[Rx("0x1d")][Rx("0x11")](Rx("0x28")))return;const e=t[Rx("0x20")].get("style"),n=t[Rx("0x1d")][Rx("0x1c")](Rx("0x1b")),o=t[Rx("0x2c")],s=t.plugins[Rx("0x1c")](Rx("0x1a")),r=t[Rx("0x1d")][Rx("0x1c")](Rx("0x27"))[Rx("0x33")](s,t.config[Rx("0x1c")](Rx("0x23")));n[Rx("0x2b")](Rx("0x8"),((o,{styleName:i})=>{const x=t[Rx("0xa")][Rx("0x15")][Rx("0x6")],a=this[Rx("0x26")](i,r);if(!a)return;if(!e[Rx("0x17")].includes(i))return;if(x[Rx("0x10")]&&!a[Rx("0x2a")])return void o({styleName:i});const c=!e[Rx("0x1e")][Rx("0x30")](a[Rx("0x18")]);if(a[Rx("0x2a")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x29")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[Rx("0x18")])){n[Rx("0xc")](o);break}}return n}(x[Rx("0x5")](),a.modelElements);t[Rx("0xa")].change((()=>{for(const t of e)n[Rx("0x7")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[Rx("0x1f")](x.getRanges());if(!c){const n=Array[Rx("0x1f")](s[Rx("0x13")](a[Rx("0x2f")],!1))[0][Rx("0xa")],o=[];for(const s of e){const e=this._getRangesWithClasses(t[Rx("0xa")],s,a[Rx("0x9")],n);o.push(...e)}e=o}t[Rx("0xa")][Rx("0x3")]((()=>{for(const t of e)n[Rx("0xb")](t,{commandName:Rx("0x8"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x32")][Rx("0xd")]((t=>{const{data:e}=t;if(e&&Rx("0x8")===e[Rx("0x2e")])return e[Rx("0x2")][0][Rx("0x14")]?{type:Rx("0x25"),content:Yo(o,Rx("0x21"),e[Rx("0x2")][0][Rx("0x12")][Rx("0x34")]())}:{type:Rx("0x25"),content:Yo(o,Rx("0x19"),e[Rx("0x2")][0][Rx("0x12")][Rx("0x34")]())}}))}[Rx("0x26")](t,e){let n=e[Rx("0x1")][Rx("0xf")]((e=>e.name===t));return n||(n=e.inline[Rx("0xf")]((e=>e.name===t))),n}[Rx("0x0")](t,e,n,o){const s=[];for(const r of e[Rx("0x16")]()){const e=r[Rx("0xe")](o);e&&n[Rx("0x4")]((t=>e[Rx("0x9")][Rx("0x30")](t)))&&s[Rx("0x22")](t[Rx("0x2d")](r))}return s}}const Ix=["insertTableColumnLeft","change:data","enqueueChange","detach","removeTableColumn","substr","hasAttribute","ELEMENT_TABLE","selection","_descriptionFactory","_setupColumnsRowsFixing","nodeAfter","$graveyard","removeTableRow","*Insert:* %0","isIntersectingWithRange","registerCustomCallback","_tableSuggestions","position","getChanges","getSelectionAffectedTableCells","rootName","insertTableColumnRight","has","type","createRangeOn","registerDescriptionCallback","showSuggestionHighlights","root","maxColumn","getRowIndexes","maxRow","subType","table","join","_acceptFormatSuggestionCallbackFactory","MIN_SAFE_INTEGER","document","name","_splitMarkerName","*Remove:* %0","setSelection","createRangeIn","tableRow","add","execute","isInContent","last","model","markMultiRangeDeletion","suggestion","fromRange","colspan","deletion","TableUtils","insertTableRowAbove","addClass","start","getChildren","downcastDispatcher","batch","MAX_SAFE_INTEGER","isTouching","insert","filter","length","createPositionAt","plugins","findAncestor","differ","tablePaste","getCellLocation","get","end","addRange","markMultiRangeInsertion","cell","left","_getCoordsForCells","above","_tablePostFixingSubtypes","options","selectTableColumn","every","getColumnIndexes","toViewElement","push","min","enableCommand","order","classes","ELEMENT_TABLE_ROW_WITH_TEXT","registerElementLabel","tableCell","writer","max","refresh","ELEMENT_TABLE_WITH_TEXT","rowspan","nodeBefore","minColumn","tableColumn","from","getAttribute","first","$textProxy","afterInit","addMarker:suggestion","oldRange","getRanges","minRow","ELEMENT_TABLE_COLUMN_WITH_TEXT","_getSuggestionCoords","removeClass","getItems","TrackChangesEditing","locale","data","editor","toLowerCase","ELEMENT_TABLE_ROW","insertTable","isEqual","ELEMENT_TABLE_COLUMN","includes","_suggestionFactory","getContainedElement","commands","insertion","span","insertTableRowBelow","discard","createTableWalker","change","values","map","TableEditing","getFirstRange","some"];var Lx,Nx;Lx=Ix,Nx=253,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[Mx("0x69")]=[Mx("0x44"),Mx("0x7e")],this[Mx("0x2a")]=new Set}[Mx("0x83")](){const t=this[Mx("0x4")],e=t[Mx("0x49")][Mx("0x3e")].selection;if(!t[Mx("0x5c")][Mx("0x30")](Mx("0x16")))return;const n=t[Mx("0x2")],o=t[Mx("0x5c")][Mx("0x61")](Mx("0x1")),s=t.plugins[Mx("0x61")](Mx("0x4f"));o[Mx("0x22")][Mx("0x75")](Mx("0x3a"),(t=>Yo(n,Mx("0x20"),t))),this[Mx("0x23")](),o[Mx("0x71")](Mx("0x7")),o[Mx("0x71")]("selectTableRow"),o[Mx("0x71")](Mx("0x6b"));for(const n of[Mx("0x50"),Mx("0x10")]){const r=t[Mx("0xd")][Mx("0x61")](n);o[Mx("0x71")](n,(n=>{t[Mx("0x49")][Mx("0x13")]((t=>{n();const i=Mx("0x68")===r[Mx("0x72")],x=s[Mx("0x2d")](e),a=s[Mx("0x37")](x),c=i?a[Mx("0x81")]-1:a[Mx("0x48")]+1,l=x[0][Mx("0x5d")](Mx("0x3a")),d=s[Mx("0x12")](l,{startRow:c,endRow:c}),u=Array[Mx("0x7f")](d)[Mx("0x15")]((e=>t[Mx("0x32")](e[Mx("0x65")])));o.markMultiRangeInsertion(u,Mx("0x44"))}))}))}for(const n of[Mx("0x19"),Mx("0x2f")]){const r=t.commands.get(n);o[Mx("0x71")](n,(n=>{t[Mx("0x49")][Mx("0x13")]((t=>{n();const i=Mx("0x66")===r[Mx("0x72")],x=s[Mx("0x2d")](e),a=s[Mx("0x6d")](x),c=i?a[Mx("0x81")]-1:a.last+1,l=x[0][Mx("0x5d")](Mx("0x3a")),d=s[Mx("0x12")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x7f")](d)[Mx("0x15")]((e=>t[Mx("0x32")](e[Mx("0x65")])));o[Mx("0x64")](u,Mx("0x7e"))}))}))}for(const n of[Mx("0x26"),Mx("0x1d")]){const r=n.substr(11),i=r[Mx("0x5")](),x=i.substr(0,3)+Mx("0xf"),a="table"+r,c=Mx("0x70")+r,l=Mx("0x78")+r;o[Mx("0x71")](n,(()=>{t[Mx("0x49")][Mx("0x13")]((t=>{const r=s[Mx("0x2d")](e),d=r[0][Mx("0x5d")](Mx("0x3a"));let u;if(Mx("0x26")==n){const t=s[Mx("0x37")](r);u={startRow:t[Mx("0x81")],endRow:t.last,includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t.first,endColumn:t[Mx("0x48")],includeAllSlots:!0}}const g=s[Mx("0x12")](d,u),m=Array.from(g)[Mx("0x15")]((({cell:t})=>t)),f=Ox(m.filter((t=>t.hasAttribute(x)))),h=Ox(m[Mx("0x59")]((t=>!t.hasAttribute(x))))[Mx("0x15")]((e=>t.createRangeOn(e))),p=o[Mx("0x4a")](h,a);if(p&&(Mx("0x44")==p[Mx("0x39")]||"tableColumn"==p[Mx("0x39")])){const e=this[Mx("0x89")](p);for(const n of f){const o=t[Mx("0x32")](n),r=s.getCellLocation(n),a=n[Mx("0x80")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Mx("0x63")](o)}}}))}))}function r(n){const o=Array.from(e[Mx("0x86")]())[Mx("0x15")]((t=>i.LiveRange[Mx("0x4c")](t)));t[Mx("0x49")][Mx("0x13")]((e=>{const s=e[Mx("0x55")];n=n[Mx("0x59")]((t=>Mx("0x25")!=t[Mx("0x35")].rootName)),e[Mx("0x42")](n),t.commands.get("removeTableRow")[Mx("0x79")](),t.execute("removeTableRow",{forceDefaultExecution:!0}),t[Mx("0x49")][Mx("0x1b")]((()=>{t[Mx("0x49")].enqueueChange(s,(t=>{const e=o[Mx("0x59")]((t=>Mx("0x25")!=t[Mx("0x35")][Mx("0x2e")]));e.length>0&&t[Mx("0x42")](e);for(const t of o)t[Mx("0x1c")]()}))}))}))}function a(n){t[Mx("0x49")].change((o=>{const s=Array[Mx("0x7f")](e[Mx("0x86")]()).map((t=>i.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Mx("0x6f")](e);for(const e of r)Mx("0x25")!=e[Mx("0x35")][Mx("0x2e")]&&(o[Mx("0x42")](o[Mx("0x5b")](e,0)),t[Mx("0xd")].get(Mx("0x1d"))[Mx("0x79")](),t[Mx("0x46")](Mx("0x1d"),{forceDefaultExecution:!0}));const x=s[Mx("0x59")]((t=>Mx("0x25")!=t[Mx("0x35")][Mx("0x2e")]));x[Mx("0x5a")]>0&&o[Mx("0x42")](x);for(const t of s)t.detach()}))}function c(t,e){return e[Mx("0x6c")]((e=>t[Mx("0x18")]((t=>t[Mx("0x62")].isEqual(e[Mx("0x52")])||e.end[Mx("0x8")](t[Mx("0x52")])))))}function l(t,e){return t[Mx("0x18")]((t=>e.some((e=>t[Mx("0x62")][Mx("0x57")](e[Mx("0x52")])))))}t[Mx("0x3")][Mx("0x54")].on(Mx("0x84"),((t,e,n)=>{if(!n[Mx("0x6a")][Mx("0x34")])return;const o=e.item;if(!o)return;const s=n.mapper[Mx("0x6e")](o);function r(t){return Array.isArray(t)?t:[t]}s&&Mx("0x76")===o[Mx("0x3f")]&&(0,x.setHighlightHandling)(s,n[Mx("0x77")],((t,e,n)=>n[Mx("0x51")](r(e[Mx("0x73")]),t)),((t,e,n)=>n[Mx("0x8a")](r(e[Mx("0x73")]),t)))}),{priority:"highest"}),o[Mx("0x22")].registerDescriptionCallback((t=>{if(Mx("0xe")!=t[Mx("0x31")]&&Mx("0x4e")!=t[Mx("0x31")])return;const e=t[Mx("0xc")]();if(null!=e&&e.is("element","table")){if(Mx("0xe")==t[Mx("0x31")]){const e=t[Mx("0x0")]().filter((t=>t.is(Mx("0x82"))))[Mx("0x15")]((t=>t[Mx("0x3")]));if(e[Mx("0x5a")])return{type:Mx("0xe"),content:Yo(n,Mx("0x27"),Yo(n,Mx("0x7a"),'"'+e[Mx("0x3b")](" ")+'"'))}}if(Mx("0x4e")==t[Mx("0x31")]){const e=t[Mx("0x0")]()[Mx("0x59")]((t=>t.is("$textProxy")))[Mx("0x15")]((t=>t.data));if(e.length)return{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x3b")](" ")+'"'))}}}})),o._descriptionFactory[Mx("0x33")]((t=>{if("tableRow"==t[Mx("0x39")]){const e=t[Mx("0x0")]().filter((t=>t.is("$textProxy")))[Mx("0x15")]((t=>t[Mx("0x3")])),o=this[Mx("0x89")](t),s=o[Mx("0x38")]-o[Mx("0x87")]+1;if(Mx("0xe")==t[Mx("0x31")])return e[Mx("0x5a")]?{type:Mx("0xe"),content:Yo(n,Mx("0x27"),Yo(n,Mx("0x74"),[s,'"'+e[Mx("0x3b")](" ")+'"']))}:{type:Mx("0xe"),content:Yo(n,Mx("0x27"),Yo(n,Mx("0x6"),s))};if(Mx("0x4e")==t[Mx("0x31")])return e[Mx("0x5a")]?{type:Mx("0x4e"),content:Yo(n,Mx("0x41"),Yo(n,Mx("0x74"),[s,'"'+e.join(" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0x41"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if("tableColumn"==t[Mx("0x39")]){const e=t.getItems().filter((t=>t.is(Mx("0x82")))).map((t=>t[Mx("0x3")])),o=this[Mx("0x89")](t),s=o[Mx("0x36")]-o[Mx("0x7d")]+1;if("insertion"==t[Mx("0x31")])return e.length?{type:Mx("0xe"),content:Yo(n,Mx("0x27"),Yo(n,Mx("0x88"),[s,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x9"),s))};if(Mx("0x4e")==t[Mx("0x31")])return e.length?{type:Mx("0x4e"),content:Yo(n,Mx("0x41"),Yo(n,Mx("0x88"),[s,'"'+e[Mx("0x3b")](" ")+'"']))}:{type:Mx("0x4e"),content:Yo(n,Mx("0x41"),Yo(n,Mx("0x9"),s))}}})),o[Mx("0xb")].registerCustomCallback(Mx("0xe"),Mx("0x44"),Mx("0x11"),r),o[Mx("0xb")][Mx("0x29")]("deletion",Mx("0x44"),"accept",r),o[Mx("0xb")].registerCustomCallback(Mx("0xe"),Mx("0x7e"),"discard",a),o[Mx("0xb")].registerCustomCallback(Mx("0x4e"),"tableColumn","accept",a),o[Mx("0xb")][Mx("0x29")](Mx("0xe"),Mx("0x7e"),Mx("0x3b"),c),o[Mx("0xb")][Mx("0x29")]("deletion",Mx("0x7e"),Mx("0x3b"),c),o[Mx("0xb")][Mx("0x29")](Mx("0xe"),Mx("0x44"),Mx("0x3b"),l),o[Mx("0xb")][Mx("0x29")](Mx("0x4e"),Mx("0x44"),"join",l)}[Mx("0x3c")](){const t=this[Mx("0x4")],e=t[Mx("0x49")][Mx("0x3e")][Mx("0x21")];return(n,o)=>{t[Mx("0x49")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x62")][Mx("0x7c")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Mx("0x52")][Mx("0x24")]);const c=s[Mx("0x43")](a);if("$graveyard"==c[Mx("0x35")][Mx("0x2e")])return;const l=Array[Mx("0x7f")](e[Mx("0x86")]())[Mx("0x15")]((t=>i.LiveRange.fromRange(t)));s[Mx("0x42")](c),t[Mx("0xd")][Mx("0x61")](r)[Mx("0x79")](),x[Mx("0x6f")]({forceDefaultExecution:!0}),t[Mx("0x46")](r,...x);const d=l[Mx("0x59")]((t=>Mx("0x25")!=t[Mx("0x35")][Mx("0x2e")]));d[Mx("0x5a")]>0&&s[Mx("0x42")](d);for(const t of l)t[Mx("0x1c")]()}))}}_getCoordsForCells(t){const e=this[Mx("0x4")][Mx("0x5c")][Mx("0x61")](Mx("0x4f"));let n=Number[Mx("0x56")],o=Number[Mx("0x3d")],s=Number[Mx("0x56")],r=Number[Mx("0x3d")];for(const i of t){if(Mx("0x25")==i.root[Mx("0x2e")])continue;const{row:t,column:x}=e[Mx("0x60")](i),a=i.hasAttribute(Mx("0x7b"))?i[Mx("0x80")](Mx("0x7b"))-1:0,c=i[Mx("0x1f")](Mx("0x4d"))?i.getAttribute(Mx("0x4d"))-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}}[Mx("0x23")](){const t=this.editor,e=t[Mx("0x5c")].get("TrackChangesEditing"),n=t[Mx("0x5c")][Mx("0x61")](Mx("0x4f"));t[Mx("0x49")].document.on(Mx("0x1a"),(()=>{const n=Array[Mx("0x7f")](t[Mx("0x49")][Mx("0x3e")][Mx("0x5e")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x40")](t);if(Mx("0x4b")!=n)continue;if(null!=o[Mx("0x85")])continue;const i=e.getSuggestion(s);this._tablePostFixingSubtypes[Mx("0xa")](r)&&this[Mx("0x2a")][Mx("0x45")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[Mx("0x5d")](Mx("0x3a")),i=n.getCellLocation(t);for(const e of this[Mx("0x2a")]){const n=e[Mx("0x39")],x=n.startsWith(Mx("0x5f")),a=n[Mx("0x1e")](x?10:5),c=a[Mx("0x5")](),l=c[Mx("0x1e")](0,3)+Mx("0xf"),d=Mx("0x70")+a,u=Mx("0x78")+a;if(!e[Mx("0x47")])continue;if(r!=e[Mx("0x17")]()[Mx("0x52")][Mx("0x5d")](Mx("0x3a")))continue;if(e[Mx("0x28")](s))continue;const g=t[Mx("0x1f")](l)?t[Mx("0x80")](l)-1:0,m=this[Mx("0x89")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x63")](s),o=!0)}return o};t[Mx("0x49")].document.registerPostFixer((e=>{let n=!1;for(const s of t.model[Mx("0x3e")][Mx("0x5e")][Mx("0x2c")]())if(Mx("0x58")==s[Mx("0x31")])if(Mx("0x44")==s[Mx("0x3f")])for(const t of s.position[Mx("0x24")][Mx("0x53")]())n=n||o(t,e);else Mx("0x76")==s.name&&(n=n||o(s[Mx("0x2b")][Mx("0x24")],e));return n}))}[Mx("0x89")](t){return this[Mx("0x67")](t.getRanges()[Mx("0x15")]((t=>t.start[Mx("0x24")])))}}function Ox(t){return Array.from(new Set(t)[Mx("0x14")]())}const Fx=["markMultiRangeBlockFormat","isEnabled","_suggestionFactory","splitTableCellHorizontally","stop","document","has","_areSelectedCellsMergable","mergeTableCellRight","setSelection","type","getFirstPosition","add","root","element","_tablePostFixingSubtypes","containsRange","selection","*Split cell:* horizontally","mergeTableCellUp","getCellLocation","trackChanges","enableCommand","createRangeOn","*Split cell:* vertically","TableUtils","_descriptionFactory","getAncestors","size","change","locale","model","markBlockFormat","accept","get","filter","table","_isForcedDefaultExecutionBlock","format","value","map","length","getRanges","insertion","plugins","TableEditing","cell","mergeTableCellDown","mergeTableCellLeft","*Merge cells*","registerDescriptionCallback","refresh","findAncestor","subType","TrackChangesEditing","formatBlock","editor","tableCell","splitTableCellVertically","commandName","set:isEnabled","fromRange","from","commands","createTableWalker","_acceptFormatSuggestionCallbackFactory","mergeTableCells","execute","return","_areMergableCells","getSelectionAffectedTableCells","registerCustomCallback","find","getSuggestions","direction","afterInit","isInContent","low","push"];var Px,Dx;Px=Fx,Dx=134,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 requires(){return[wx]}[Bx("0x14")](){const t=this[Bx("0x1")],e=t[Bx("0x37")][Bx("0x1d")][Bx("0x29")],n=t[Bx("0x36")];if(!t[Bx("0x44")].has(Bx("0x45")))return;const o=t[Bx("0x44")][Bx("0x3a")]("TrackChangesEditing"),s=t[Bx("0x44")][Bx("0x3a")](Bx("0x31")),r=t[Bx("0x44")][Bx("0x3a")](wx);r[Bx("0x27")][Bx("0x17")](Bx("0xb")),o[Bx("0x2e")]("mergeTableCells",(()=>{const e=s[Bx("0xf")](t[Bx("0x37")][Bx("0x1d")][Bx("0x29")]);t[Bx("0x37")][Bx("0x35")]((()=>{o[Bx("0x18")](e,{commandName:Bx("0xb"),commandParams:[]},[],Bx("0xb"))}))})),t[Bx("0x8")].get(Bx("0xb")).on(Bx("0xc"),((e,n)=>{t.commands[Bx("0x3a")](Bx("0x2d"))[Bx("0x3f")]&&(n.length>0&&n[n[Bx("0x41")]-1]&&n[n[Bx("0x41")]-1].forceDefaultExecution||o[Bx("0x3d")]||this._areSelectedCellsMergable()||e[Bx("0x1c")]())}),{priority:"highest"});for(const e of[Bx("0x2b"),"mergeTableCellRight","mergeTableCellDown",Bx("0x48")]){const n=t[Bx("0x8")][Bx("0x3a")](e);o.enableCommand(e,(()=>{const e=t[Bx("0x37")][Bx("0x1d")][Bx("0x29")][Bx("0x23")]().getAncestors()[Bx("0x11")]((t=>t.is(Bx("0x26"),Bx("0x2")))),s=n.value;t.model.change((()=>{o[Bx("0x18")]([e,s],{commandName:Bx("0xb"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[Bx("0x3"),Bx("0x1b")]){const n=t[Bx("0x8")].get(e);o[Bx("0x2e")](e,(()=>{const r=s[Bx("0xf")](t[Bx("0x37")].document[Bx("0x29")])[0],i=r[Bx("0x4c")](Bx("0x3c")),{column:x,row:a}=s[Bx("0x2c")](r);let c=[];if("horizontally"==n[Bx("0x13")]){const t=s[Bx("0x9")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[Bx("0x40")]((t=>t[Bx("0x46")]))}else{const t=s[Bx("0x9")](i,{column:x,includeAllSlots:!0});c=Array.from(t)[Bx("0x40")]((t=>t[Bx("0x46")]))}t[Bx("0x37")][Bx("0x35")]((t=>{o[Bx("0x38")](t[Bx("0x2f")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x32")][Bx("0x4a")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x4")]?{type:Bx("0x3e"),content:Yo(n,Bx("0x49"))}:void 0})),o[Bx("0x32")][Bx("0x4a")]((t=>{const{data:e}=t;if(e)return Bx("0x3")==e[Bx("0x4")]?{type:Bx("0x3e"),content:Yo(n,Bx("0x30"))}:"splitTableCellHorizontally"==e[Bx("0x4")]?{type:Bx("0x3e"),content:Yo(n,Bx("0x2a"))}:void 0}));const x=r[Bx("0xa")]();for(const t of[Bx("0x2b"),Bx("0x20"),Bx("0x47"),Bx("0x48")])o[Bx("0x1a")][Bx("0x10")](Bx("0x0"),t,Bx("0x39"),x);for(const t of[Bx("0x3"),"splitTableCellHorizontally"])o[Bx("0x1a")][Bx("0x10")](Bx("0x0"),t,Bx("0x39"),x);o[Bx("0x1a")][Bx("0x10")](Bx("0x0"),"mergeTableCells",Bx("0x39"),(n=>{t[Bx("0x37")][Bx("0x35")]((o=>{const s=Array[Bx("0x7")](e[Bx("0x42")]())[Bx("0x40")]((t=>i.LiveRange[Bx("0x6")](t)));o[Bx("0x21")](n),t[Bx("0x8")].get(Bx("0xb"))[Bx("0x4b")](),t.execute(Bx("0xb"),{forceDefaultExecution:!0});const r=s[Bx("0x3b")]((t=>"$graveyard"!=t[Bx("0x25")].rootName));r[Bx("0x41")]>0&&o[Bx("0x21")](r);for(const t of s)t.detach()}))}));for(const e of[Bx("0x2b"),Bx("0x47"),Bx("0x48"),"mergeTableCellRight"]){const n=t[Bx("0x8")][Bx("0x3a")](e);n.on(Bx("0x5"),((e,o,s)=>{if(s){const o=t[Bx("0x37")].document[Bx("0x29")][Bx("0x23")]()[Bx("0x33")]()[Bx("0x11")]((t=>t.is(Bx("0x26"),Bx("0x2"))));this[Bx("0xe")](n.value,o)||(e[Bx("0xd")]=!1,e[Bx("0x1c")]())}}),{priority:Bx("0x16")})}}[Bx("0x1f")](){const t=this[Bx("0x1")][Bx("0x8")][Bx("0x3a")](Bx("0xb")),e=this.editor[Bx("0x44")][Bx("0x3a")](Bx("0x31"));if(!t[Bx("0x19")])return!1;const n=e.getSelectionAffectedTableCells(this.editor[Bx("0x37")][Bx("0x1d")][Bx("0x29")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0xe")](t,e))return!1;return!0}[Bx("0xe")](t,e){const n=this.editor[Bx("0x44")][Bx("0x3a")](Bx("0x4e")),o=this[Bx("0x1")][Bx("0x37")][Bx("0x2f")](t),s=this[Bx("0x1")][Bx("0x37")][Bx("0x2f")](e),r=new Set,i=new Set;for(const t of n[Bx("0x12")]())if((Bx("0x43")==t.type||"deletion"==t[Bx("0x22")]||Bx("0xb")==t[Bx("0x4d")])&&t[Bx("0x15")])for(const e of t.getRanges())e.containsRange(o,!0)&&r[Bx("0x24")](t.type+":"+t.author.id),e[Bx("0x28")](s,!0)&&i[Bx("0x24")](t[Bx("0x22")]+":"+t.author.id);if(r[Bx("0x34")]!=i[Bx("0x34")])return!1;for(const t of r)if(!i[Bx("0x1e")](t))return!1;return!0}}const Ux=["accept","activeMarkers","end","index","first","createPositionBefore","markerNameToElements","value","item","ck-suggestion-marker--active","forceValue","FORMAT_HEADER_ROW","consumable","_suggestionFactory","FORMAT_HEADER_COLUMN","editor","*Format:* %0","format","parent","headingColumns","name","markerName","selection","cell","nodeBefore","registerCustomCallback","ck-suggestion-marker-","removeClass","addClass","toViewElement","commands","createPositionAfter","editing","highest","table","_splitMarkerName","removeMarker:suggestion","_acceptFormatSuggestionCallbackFactory","createTableWalker","start","from","last","formatBlock","markerRange","change","FORMAT_REGULAR_COLUMN","TableEditing","data-suggestion","data","model","getCellLocation","headingRows","commandParams","setTableRowHeader","showSuggestionHighlights","findAncestor","plugins","isBefore","getColumnIndexes","getAttribute","unbindElementFromMarkerName","has","TrackChangesEditing","commandName","includes","TableUtils","setAttribute","afterInit","addMarker:suggestion","downcastDispatcher","enableCommand","getSelectionAffectedTableCells","markBlockFormat","mapper","createRange","getChild","setTableColumnHeader","writer","getSuggestion","options","get","removeAttribute"];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 requires(){return[wx]}[zx("0x4e")](){const t=this[zx("0x1a")];if(!t[zx("0x43")][zx("0x48")](zx("0x39")))return;const e=t.locale,n=t.plugins[zx("0x9")](zx("0x49")),o=t.plugins[zx("0x9")](zx("0x4c")),s=t.plugins[zx("0x9")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x2e")](r[zx("0x20")]),c=n.getSuggestion(a);if(!c[zx("0x3b")]||zx("0x5")!=c[zx("0x3b")][zx("0x4a")])return;if(r[zx("0x13")])return void s.stop();if(!i[zx("0x17")].consume(r[zx("0x36")],s[zx("0x1f")]))return;const l=r[zx("0x36")][zx("0x32")].nodeAfter,d=r.markerRange[zx("0xd")][zx("0x23")],u=l.parent[zx("0x1d")],{column:g}=o[zx("0x3d")](l),{column:m}=o[zx("0x3d")](d);for(let s=g;s<=m;s++){const c=o[zx("0x31")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x22")],c=i.mapper[zx("0x28")](s);i[zx("0x6")][zx("0x27")](zx("0x25")+x,c),e&&i[zx("0x6")][zx("0x4d")](zx("0x3a"),a,c),i[zx("0x2")].bindElementToMarker(c,r.markerName),t&&(n[zx("0xc")][zx("0x4b")](r[zx("0x20")])?i.writer[zx("0x27")](zx("0x14"),c):i.writer[zx("0x26")](zx("0x14"),c))}}}}n[zx("0x51")](zx("0x40"),((e,s)=>{const r=o[zx("0x0")](t.model.document[zx("0x21")]),i=o.getRowIndexes(r),x=r[0][zx("0x42")](zx("0x2d")),a=x[zx("0x46")](zx("0x3e"))||0,c=s&&null!==s.forceValue?s.forceValue:!t[zx("0x29")][zx("0x9")](zx("0x40"))[zx("0x12")],l=c?i[zx("0x34")]:i[zx("0xf")],d=x[zx("0x4")](l);let u;if(c){const e=x[zx("0x4")](a);if(d[zx("0xe")]<e[zx("0xe")])return;u=t[zx("0x3c")][zx("0x3")](t[zx("0x3c")][zx("0x10")](e.getChild(0)),t[zx("0x3c")].createPositionAfter(d.getChild(d.childCount-1)))}else{const e=x[zx("0x4")](a-1);if(!e)return;u=t.model[zx("0x3")](t[zx("0x3c")][zx("0x10")](d[zx("0x4")](0)),t[zx("0x3c")][zx("0x2a")](e[zx("0x4")](e.childCount-1)))}t[zx("0x3c")][zx("0x37")]((()=>{n[zx("0x1")](u,{commandName:zx("0x40"),commandParams:[{forceValue:c}]},[],zx("0x40"))}))})),n.enableCommand(zx("0x5"),((e,o)=>{const s=t.plugins[zx("0x9")](zx("0x4c")),r=s[zx("0x0")](t[zx("0x3c")].document[zx("0x21")]),i=s[zx("0x45")](r),x=r[0].findAncestor(zx("0x2d")),a=x[zx("0x46")](zx("0x1e"))||0,c=o&&null!==o[zx("0x15")]?o[zx("0x15")]:!t[zx("0x29")][zx("0x9")]("setTableColumnHeader")[zx("0x12")];let l;const d=x.getChild(0),u=c?i[zx("0x34")]:i[zx("0xf")],g=s[zx("0x31")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x33")](g)[0][zx("0x22")];if(c){const e=d[zx("0x4")](a);if(m[zx("0x44")](e))return;l=t[zx("0x3c")].createRange(t[zx("0x3c")][zx("0x10")](e),t[zx("0x3c")][zx("0x2a")](m))}else{const e=d.getChild(a-1);if(!e)return;l=t[zx("0x3c")][zx("0x3")](t.model.createPositionBefore(m),t[zx("0x3c")].createPositionAfter(e))}t[zx("0x3c")][zx("0x37")]((()=>{n[zx("0x1")](l,{commandName:zx("0x5"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[zx("0x2b")][zx("0x50")].on("addMarker:suggestion",r(),{priority:"highest"}),t.data[zx("0x50")].on(zx("0x4f"),((t,e,n)=>{n[zx("0x8")][zx("0x41")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x2c")}),t[zx("0x2b")][zx("0x50")].on(zx("0x2f"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x2e")](e[zx("0x20")]),i=n[zx("0x7")](r);if(!i[zx("0x3b")]||zx("0x5")!=i[zx("0x3b")].commandName)return;const x=o[zx("0x2")][zx("0x11")](e[zx("0x20")]);if(x)for(const t of x)o.writer[zx("0x26")]("ck-suggestion-marker-"+s,t),o[zx("0x6")].removeClass(zx("0x14"),t),o.writer[zx("0xa")](zx("0x3a"),t),o[zx("0x2")][zx("0x47")](t,e[zx("0x20")])}),{priority:"highest"}),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(zx("0x40")==n.commandName){const t=n[zx("0x3f")][0].forceValue;return o(Yo(e,t?zx("0x16"):"FORMAT_REGULAR_ROW"))}if(zx("0x5")==n.commandName){const t=n[zx("0x3f")][0][zx("0x15")];return o(Yo(e,zx(t?"0x19":"0x38")))}}function o(t){return{type:zx("0x1c"),content:Yo(e,zx("0x1b"),t)}}}));const i=s[zx("0x30")]();n[zx("0x18")].registerCustomCallback(zx("0x35"),zx("0x40"),zx("0xb"),i),n[zx("0x18")][zx("0x24")]("formatBlock",zx("0x5"),zx("0xb"),i)}}const Vx=["register","hasSuggestion","tableCellBorderStyle","previous","locale","cells","createRange","selection","markMultiRangeInsertion","getRanges","getRowIndexes","commands","suggestion-td","reduce","last","insertionRanges","isInContent","filter","includes","editing","insertColumns","getTableIfOnlyTableInContent","createTableWalker","_suggestionFactory","_getCoordsForCells","length","trackChanges","previousSibling","suggestionUnloaded","every","getRange","rows","discard","registerPostFixer","tablePasteCell","listenTo","updateMarker","startsWith","nodeAfter","*Replace table cells*","getMarkers","markerToHighlight","removeMarker","markerName","elementToElement","tableCellBackgroundColor","markers","type","set","registerDescriptionCallback","activeMarkers","fill","getShiftedBy","endColumn","has","_replaceTableSlotCell","_isForcedDefaultExecutionBlock","isEmpty","table","cell","getChildren","deletion","requires","high","tableCellPadding","removeMarkers","setAttribute","tableCellVerticalAlignment","containsRange","getChild","getSuggestion","push","tablePasteColumn","next","getSelectionAffectedTableCells","registerCustomCallback","tableCellSuggestion","low","subType","newRange","element","add","getRows","rowInsertionRanges","view","tableCellBorderWidth","from","_createdBatches","markMultiRangeDeletion","paragraph","oldRange","accept","insertion","editingDowncast","suggestion:formatBlock:tablePasteCell","clipboardOutput","get","plugins","suggestion","return","change","keys","content","position","stop","createElement","name","getColumnIndexes","getSuggestions","columnInsertionRanges","attributes","removeColumns","createRangeIn","setAttributes","createRangeOn","find","tablePasteChainId","showSuggestionHighlights","columnInsertionIndexes","insert","ck-suggestion-marker-insertion","tableCellBorderColor","findAncestor","createPositionBefore","TableClipboard","markerAttributes","getAttributes","afterInit","fromEntries","markMultiRangeBlockFormat","rowInsertionIndexes","value","_splitMarkerName","tablePasteRow","getChangedMarkers","$graveyard","row","differ","insertRows","map","insertContent","suggestionLoaded","end","documentSelection","remove","tablePaste","start","removeRows","move","forceDefaultExecution","editor","formatBlock","TableUtils","root","options","getItems","columns","isEqual","getChanges","getAllAdjacentSuggestions","document","getContainedElement","deletionRanges","conversion","Users","join","entries","tableCellHorizontalAlignment","ck-suggestion-marker--active","model","column","first"];var Kx,qx;Kx=Vx,qx=425,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x4"),Xx("0x28"),Xx("0x5d"),Xx("0x56"),Xx("0x9e"),Xx("0x88"),Xx("0x9b")],Jx=Object[Xx("0x2f")]($x[Xx("0x3a")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x99")](){return[wx]}[Xx("0x2e")](){const t=this[Xx("0x45")];if(!t[Xx("0x10")][Xx("0x91")](Xx("0x2b")))return;const n=t[Xx("0x10")][Xx("0xf")]("TrackChangesEditing"),o=t[Xx("0x10")][Xx("0xf")](Xx("0x47")),s=t[Xx("0x10")].get(wx),r=t[Xx("0x10")].get(Xx("0x2b"));s._tablePostFixingSubtypes[Xx("0xa2")](Xx("0x34"),Xx("0xa3")),t.model.schema[Xx("0x5b")](Xx("0xa7"),{allowIn:"tableCell",allowContentOf:"tableCell",isLimit:!0}),t[Xx("0x52")][Xx("0x87")]({model:Xx("0xa7"),view:Xx("0x67")});let i=null;t[Xx("0x58")].on(Xx("0x3b"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x74")]-1];l&&l[Xx("0x44")]||n[Xx("0x93")]||this[Xx("0x45")][Xx("0x66")][Xx("0xf")](Xx("0x75"))[Xx("0x32")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x3e")))return!1;const r=s[Xx("0x70")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0xa5")](n.document[Xx("0x62")]);if(!i[Xx("0x74")])return!1;const x=i[0][Xx("0x29")](Xx("0x95")),a=o[Xx("0x65")](i),c=o[Xx("0x1a")](i),l={startRow:a[Xx("0x5a")],endRow:a[Xx("0x69")],startColumn:c[Xx("0x5a")],endColumn:c[Xx("0x69")]};return 1==i[Xx("0x74")]&&(l.endRow+=o[Xx("0x1")](r)-1,l[Xx("0x90")]+=o.getColumns(r)-1),Yx(x,l,o)}(a,c,t[Xx("0x58")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model.change((()=>{t[Xx("0x58")][Xx("0x3b")](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("0x63")](s,Xx("0x34"),{tablePasteChainId:o}),r.length&&n[Xx("0x63")](r,Xx("0xa3"),{tablePasteChainId:o}),a[Xx("0x74")]&&n[Xx("0x63")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[Xx("0x7")](c,Xx("0x40"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x30")](l[Xx("0x3a")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x7d"),{tablePasteChainId:o});if(d){const e=d[Xx("0x83")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model.createRangeOn(o),i=e[Xx("0x22")]((t=>t[Xx("0x79")]()[Xx("0x4c")](r)));i&&n[Xx("0xa2")]([i[Xx("0x19")],s])}n.length&&d[Xx("0x9d")](Xx("0x2c"),Object[Xx("0x2f")](n))}i=null})))}),{priority:e.priorities[Xx("0x9a")]+10}),t[Xx("0x10")][Xx("0xf")](Xx("0x2b")).on(Xx("0x92"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x17")]();const r=n[Xx("0x96")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x12")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Xx("0xa0")](0));for(const t of Array[Xx("0x5")](x[Xx("0x97")]()))s[Xx("0x26")](t,r,Xx("0x3d"));const t=i[Xx("0x31")][Xx("0x6d")](n[Xx("0x37")]),e=i[Xx("0x25")].includes(n[Xx("0x59")]);t||e||(l=s[Xx("0x1f")](r))}else c&&!a&&(d=s[Xx("0x1f")](r));else{const t=s.createElement(Xx("0xa7")),e=s[Xx("0x18")](Xx("0xa7"));s.wrap(s[Xx("0x1f")](r),e),s.insert(t,r,0);for(const e of Array[Xx("0x5")](x[Xx("0x97")]()))s[Xx("0x26")](e,t,Xx("0x3d"));l=s[Xx("0x21")](t),d=s[Xx("0x21")](e)}const u=Array[Xx("0x5")](x[Xx("0x2d")]())[Xx("0x6c")]((([t])=>$x[Xx("0x6d")](t)));i[Xx("0x60")][Xx("0xa2")]({element:r,attributes:u[Xx("0x74")]?Object[Xx("0x2f")](u):null}),l&&i[Xx("0x6a")][Xx("0xa2")](l),d&&i[Xx("0x51")][Xx("0xa2")](d)}),{priority:Xx("0x9a")}),o.on(Xx("0x6f"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x4b")]||1;i.columnInsertionIndexes=new Array(a)[Xx("0x8e")](x)[Xx("0x3a")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x71")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x1c")][Xx("0xa2")](t.model[Xx("0x21")](e))}),{priority:Xx("0xa8")}),o.on(Xx("0x39"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x7a")]||1;i.rowInsertionIndexes=new Array(a)[Xx("0x8e")](x)[Xx("0x3a")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x71")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x2")].push(t[Xx("0x58")].createRangeOn(e))}),{priority:"low"}),n._descriptionFactory[Xx("0x8c")]((e=>{if(e.subType&&e.subType[Xx("0x80")](Xx("0x40")))return e[Xx("0x5e")]?{}:{type:Xx("0xb"),content:Yo(t[Xx("0x5f")],Xx("0x82"))}}));const x=()=>{};for(const t of[Xx("0x40"),Xx("0xa3"),"tablePasteRow",Xx("0x7d")])n[Xx("0x72")].registerCustomCallback(Xx("0xb"),t,Xx("0x54"),x),n._suggestionFactory.registerCustomCallback(Xx("0x98"),t,Xx("0x54"),x);n[Xx("0x72")][Xx("0xa6")](Xx("0x46"),Xx("0x7d"),Xx("0x7b"),x),n._suggestionFactory.registerCustomCallback(Xx("0x46"),Xx("0x7d"),Xx("0xa"),((e,n,o)=>{const s=e[Xx("0x3a")]((t=>t.getContainedElement()))[Xx("0x6c")]((t=>t)),r=new Map(s[Xx("0x3a")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x60")])e&&r[Xx("0x8b")](t,e);else if(o&&o[Xx("0x2c")])for(const[e,n]of Object[Xx("0x55")](o.markerAttributes)){const o=t[Xx("0x58")][Xx("0x89")][Xx("0xf")](e),s=o?o[Xx("0x79")]()[Xx("0x50")]():null;s&&r[Xx("0x8b")](s,n)}t[Xx("0x58")].change((t=>{for(const[e,n]of r)t[Xx("0x20")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x72")].registerCustomCallback(e,Xx("0x40"),o,((s,r,i)=>{t[Xx("0x58")].change((t=>{const x=[];for(const t of s){const e=t[Xx("0x41")][Xx("0x81")];e.is(Xx("0xab"),Xx("0xa7"))&&x[Xx("0xa2")](e)}n[Xx("0x72")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Xx("0x36")!=e[Xx("0x48")].rootName&&t.unwrap(e)}))}))};a(Xx("0xb"),"accept"),a(Xx("0xb"),Xx("0x7b")),a(Xx("0x98"),Xx("0xa")),a("deletion",Xx("0x7b")),n._suggestionFactory[Xx("0xa6")](Xx("0xb"),Xx("0x34"),Xx("0x7b"),(t=>{const e=t.map((t=>t[Xx("0x50")]())),n=e[0].findAncestor(Xx("0x95")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Xx("0x42")](n,{at:r,rows:i-r+1})})),n._suggestionFactory[Xx("0xa6")](Xx("0xb"),Xx("0xa3"),Xx("0x7b"),(t=>{const e=t[Xx("0x3a")]((t=>t[Xx("0x50")]())),n=e[0].findAncestor("table"),{minColumn:r,maxColumn:i}=s[Xx("0x73")](e);o[Xx("0x1e")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0xa9")]||!e.subType[Xx("0x80")](Xx("0x40")))return;const o=e[Xx("0x1d")][Xx("0x23")],s=n[Xx("0x1b")]().filter((t=>t[Xx("0x6b")]&&t[Xx("0x1d")]&&t[Xx("0x1d")][Xx("0x23")]==o));s[Xx("0x74")]&&e[Xx("0x4e")]()[Xx("0x74")]!=s[Xx("0x74")]&&s[Xx("0x68")](((t,e)=>(t[Xx("0xa4")]=e,e[Xx("0x5e")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x33")](t.markerName),s=["ck-suggestion-marker",Xx("0x27")],r=n[Xx("0x8d")][Xx("0x6d")](t[Xx("0x86")]);return r&&s[Xx("0xa2")](Xx("0x57")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x3c"),c,{priority:Xx("0x9a")}),n.on(Xx("0x77"),c,{priority:Xx("0x9a")}),t[Xx("0x58")][Xx("0x4f")].registerPostFixer((()=>{let e=!1;const o=Array[Xx("0x5")](t[Xx("0x58")][Xx("0x4f")][Xx("0x38")][Xx("0x35")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x33")](s);if(Xx("0x11")!=o||Xx("0x98")!=i||r[Xx("0x9")])continue;if(!n[Xx("0x5c")](x))continue;const a=n[Xx("0xa1")](x).getRanges(),c=t[Xx("0x10")].get("Users").me;for(const t of n[Xx("0x1b")]())if(t[Xx("0x6b")]&&t.author==c&&Xx("0x46")==t[Xx("0x8a")]&&Xx("0x7d")==t[Xx("0xa9")]&&t[Xx("0x64")]()[Xx("0x78")]((t=>a.some((e=>e[Xx("0x9f")](t,!0))))))for(const n of t[Xx("0x4e")]())n.isInContent&&(n.discard(),e=!0)}return e})),t[Xx("0x58")][Xx("0x4f")].registerPostFixer((e=>{const o=t[Xx("0x66")][Xx("0xf")]("redo");if(!o||!o[Xx("0x6")].has(e.batch))return!1;let s=!1;const r=t[Xx("0x10")][Xx("0xf")](Xx("0x53")).me,i=t[Xx("0x58")][Xx("0x4f")][Xx("0x38")][Xx("0x4d")](),x=Array[Xx("0x5")](t[Xx("0x58")][Xx("0x4f")].differ[Xx("0x35")]()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x33")](t);return Xx("0x11")==o&&Xx("0x40")==s&&i==r.id&&!e[Xx("0x9")]}));for(const t of i){if("insert"!=t[Xx("0x8a")]||Xx("0xa7")!=t[Xx("0x19")]||1!=t[Xx("0x74")])continue;const n=e[Xx("0x61")](t[Xx("0x16")],t[Xx("0x16")][Xx("0x8f")](1));if(!x[Xx("0x22")]((({data:t})=>t[Xx("0xaa")][Xx("0x4c")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x9f")](o[Xx("0xaa")])){e[Xx("0x7f")](t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x4f")][Xx("0x7c")]((e=>{let o=!1;const s=t[Xx("0x10")][Xx("0xf")](Xx("0x53")).me,r=n.getSuggestions().filter((t=>t[Xx("0x6b")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t[Xx("0xa9")])for(const e of t[Xx("0x83")]()){const n=e[Xx("0x79")]()[Xx("0x50")]();if(n)if(n.is(Xx("0xab"),Xx("0xa7"))&&Zx(n)){t[Xx("0x85")](e[Xx("0x19")]),i[Xx("0x0")](n),o=!0;const s=n.nextSibling,r=n[Xx("0x76")],a=s&&s.is(Xx("0xab"),Xx("0xa7")),c=r&&r.is("element",Xx("0xa7"));a&&!i[Xx("0x91")](s)&&x[Xx("0x0")](s),c&&!i[Xx("0x91")](r)&&x[Xx("0x0")](r)}else n.is(Xx("0xab"),Xx("0x8"))&&n[Xx("0x94")]&&(t[Xx("0x85")](e[Xx("0x19")]),o=!0)}else if(Xx("0x7d")==t[Xx("0xa9")]){if(!t.attributes||!t[Xx("0x1d")][Xx("0x23")])continue;const e=t[Xx("0x1d")][Xx("0x2c")];if(e&&Object[Xx("0x14")](e)[Xx("0x74")])continue;const n=t.attributes.tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e.subType&&e[Xx("0xa9")][Xx("0x80")](Xx("0x40"))){if(!e[Xx("0x1d")][Xx("0x23")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x1d")][Xx("0x23")]==n){s=!1;break}}i&&s&&(t[Xx("0x9c")](),o=!0)}for(const t of i)e[Xx("0x3f")](t);for(const t of x)e.unwrap(t);return o})),t[Xx("0x52")].for(Xx("0xc"))[Xx("0x84")]({model:Xx("0xd"),view:(t,e)=>l(t),converterPriority:Xx("0x9a")}),t.conversion.for("dataDowncast")[Xx("0x84")]({model:Xx("0xd"),view:(t,e)=>e[Xx("0x49")][Xx("0x24")]?l(t,!1):null,converterPriority:Xx("0x9a")});const d=t[Xx("0x6e")][Xx("0x3")];this[Xx("0x7e")](d[Xx("0x4f")],Xx("0xe"),((t,e)=>{const n=[];for(const t of d[Xx("0x1f")](e[Xx("0x15")])[Xx("0x4a")]())t.is(Xx("0xab"),Xx("0x67"))&&n[Xx("0xa2")](t);d[Xx("0x13")]((t=>{for(const e of n)t[Xx("0x43")](t[Xx("0x1f")](e),t[Xx("0x2a")](e)),t.remove(e)}))}))}}function Zx(t){if(t[Xx("0x94")])return!0;const e=t[Xx("0xa0")](0);return e.is(Xx("0xab"),Xx("0x8"))&&e.isEmpty}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x71")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["commandParams","getSuggestions","TableColumnResizeEditing","*Format:* resize table","editor","columnWidths","change","formatBlock","model","tableWidth","has","enableCommand","get","_suggestionFactory","document","TrackChangesEditing","bind","discard","markBlockFormat","_descriptionFactory","subType","selection","plugins","table","resizeTableWidth","formatGroupId","author","handleSuggestionDescription","getTableColumnsWidths","afterInit","accept","resizeColumnWidths","getColumnGroupElement","getContainedElement","registerCustomCallback","getSuggestionCallback","format","resizeTable","locale","handleResizeTableWidthCommand","registerDescriptionCallback","getSelectedElement"];var ea,na;ea=ta,na=233,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x6")](){if(!this[oa("0x17")][oa("0x29")][oa("0x1d")](oa("0x15")))return;const t=this.editor.plugins[oa("0x1f")](oa("0x22"));t[oa("0x1e")]("resizeTableWidth",this[oa("0x10")][oa("0x23")](this)),t.enableCommand(oa("0x8"),this[oa("0x10")].bind(this)),t[oa("0x20")].registerCustomCallback(oa("0x1a"),oa("0xe"),oa("0x7"),t[oa("0x20")][oa("0xc")](oa("0x1a"),null,"discard")),t._suggestionFactory[oa("0xb")](oa("0x1a"),"resizeTable",oa("0x24"),t[oa("0x20")].getSuggestionCallback(oa("0x1a"),null,"accept")),t[oa("0x26")][oa("0x11")](this[oa("0x4")].bind(this))}[oa("0x10")](t,e){const n=this[oa("0x17")][oa("0x29")].get(oa("0x22")),o=this.editor[oa("0x29")][oa("0x1f")](oa("0x15")),s=e[oa("0x0")]||this[oa("0x17")][oa("0x1b")][oa("0x21")][oa("0x28")][oa("0x12")]();this.editor[oa("0x1b")][oa("0x19")]((()=>{const r=o[oa("0x9")](s);let i=r?o[oa("0x5")](r):null,x=s.getAttribute("tableWidth")||null;const a=e[oa("0x1c")]||x,c=e.columnWidths||i,l=this[oa("0x17")][oa("0x29")][oa("0x1f")]("Users").me;for(const t of n[oa("0x14")]()){const e=t[oa("0xa")]();if(oa("0xe")===t[oa("0x27")]&&e===s){t[oa("0x3")]!==l&&t[oa("0x24")]();const e=t.data[oa("0x13")];x=e[0][oa("0x1c")],i=e[0][oa("0x18")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x25")](s,{commandName:oa("0x1"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],"resizeTable")}))}[oa("0x4")](t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0x2")]){const t=oa("0x16");return{type:oa("0xd"),content:Yo(this[oa("0x17")][oa("0xf")],t)}}}}const ra=["get","enableCommand","afterInit","insertTemplate","editor","plugins"];var ia,xa;ia=ra,xa=229,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("0x3")];t[aa("0x4")].has("Template")&&t[aa("0x4")][aa("0x5")]("TrackChangesEditing")[aa("0x0")](aa("0x2"))}}const la=["insertTableOfContents","get","afterInit","tableOfContents","TrackChangesEditing","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS","locale","plugins"];var da,ua;da=la,ua=365,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x6")](){const t=this.editor;if(!t.commands.get(ga("0x4")))return;t[ga("0x3")][ga("0x5")](ga("0x8")).enableCommand(ga("0x4"));const e=t[ga("0x3")][ga("0x5")](ga("0x8")),n=t[ga("0x2")];e._descriptionFactory[ga("0x0")](ga("0x7"),(t=>Yo(n,ga("0x1"),t)))}}const fa=["differ","forward","registerElementLabel","afterInit","isCollapsed","element","registerPostFixer","title-content","updateMarker","suggestion","locale","editor","document","isEqual","createRange","end","isTouching","removeMarker","model","has","ELEMENT_TITLE","start","get","newRange","nodeBefore"];var ha,pa;ha=fa,pa=217,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0xb")](){const t=this[ba("0x13")];if(!t.plugins[ba("0x2")]("Title"))return;const e=t.plugins[ba("0x5")]("TrackChangesEditing");e._descriptionFactory[ba("0xa")](ba("0xf"),(()=>Yo(t[ba("0x12")],ba("0x3")))),t[ba("0x1")][ba("0x14")][ba("0xe")]((n=>{let o=!1;const s=Array.from(t[ba("0x1")].document[ba("0x8")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x11")!==s||!i[ba("0x6")])continue;const x=i[ba("0x6")],a=x[ba("0x17")][ba("0x7")];if(!a||!a.is(ba("0xd"),ba("0xf")))continue;if(!x[ba("0x4")][ba("0x18")](x[ba("0x17")]))continue;const c=t[ba("0x1")].schema.getNearestSelectionRange(x[ba("0x17")],ba("0x9"));if(c&&c[ba("0xc")]){const t=n[ba("0x16")](x[ba("0x4")],c[ba("0x4")]);t[ba("0x15")](x)||(n[ba("0x10")](r,{range:t}),o=!0)}o||(n[ba("0x0")](r),o=!0)}return o}))}}const _a=["get","redo","undo","afterInit","enableCommand","has","editor","plugins"];var Ta,Ca;Ta=_a,Ca=225,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x2")](){const t=this[ya("0x5")],e=t[ya("0x6")][ya("0x7")]("TrackChangesEditing");t[ya("0x6")][ya("0x4")]("UndoEditing")&&(e[ya("0x3")](ya("0x1")),e[ya("0x3")](ya("0x0")))}}const Aa=["TableCaptionEditing","afterInit","get","plugins","toggleTableCaption"];var va,Ra;va=Aa,Ra=114,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 requires(){return[wx]}[Sa("0x2")](){const t=this.editor;t[Sa("0x4")].has(Sa("0x1"))&&t[Sa("0x4")][Sa("0x3")]("TrackChangesEditing").enableCommand(Sa("0x0"))}}const La=["editor","type","bind","model","DocumentListUtils","selection","_getTranslationKeyForListStyle","has","*Format:* set start index to %0","plugins","_getSuggestionBlocks","DocumentListPropertiesEditing","getSelectedBlocks","length","document","expandListBlocksToCompleteList","listStyle","commandParams","isFirstBlockOfListItem","listStart","markMultiRangeBlockFormat","getListTypeFromListStyleType","listType","isListItemBlock","handleListReversedCommand","TrackChangesEditing","getAttribute","format","toUpperCase","handleDescriptions","locale","change","handleListStartCommand","listReversed","reversed","*Format:* set order to reversed","registerDescriptionCallback","_getSuggestionBlocksForListStyle","afterInit","enableCommand","numbered","push","replace","startIndex","get","config"];var Na,Ma;Na=La,Ma=335,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x19")](){if(!this[wa("0x21")][wa("0x2a")][wa("0x28")](wa("0x2c")))return;const t=this[wa("0x21")][wa("0x20")].get("list.properties"),e=this[wa("0x21")][wa("0x2a")][wa("0x1f")](wa("0xc"));t.styles&&e.enableCommand(wa("0x3"),this.handleListStyleCommand[wa("0x23")](this)),t[wa("0x15")]&&e[wa("0x1a")](wa("0x14"),this.handleListReversedCommand[wa("0x23")](this)),t.startIndex&&e.enableCommand(wa("0x6"),this.handleListStartCommand[wa("0x23")](this)),e._descriptionFactory[wa("0x17")](this[wa("0x10")].bind(this))}handleListStyleCommand(t,e={}){const n=this[wa("0x21")][wa("0x2a")][wa("0x1f")](wa("0xc")),o=this[wa("0x18")]();this[wa("0x21")][wa("0x24")][wa("0x12")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:wa("0x3"),commandParams:[{type:e.type}],formatGroupId:wa("0x3")})}))}[wa("0xb")](t,e={}){const n=this[wa("0x21")][wa("0x2a")][wa("0x1f")]("TrackChangesEditing"),o=this[wa("0x21")][wa("0x2a")][wa("0x1f")](wa("0x25")),s=this[wa("0x2b")]((t=>o[wa("0xa")](t)&&"numbered"===t[wa("0xd")](wa("0x9"))));null!==s&&this[wa("0x21")].model[wa("0x12")]((()=>{n[wa("0x7")](s,{commandName:wa("0x14"),commandParams:[{reversed:e[wa("0x15")]}],formatGroupId:wa("0x14")})}))}[wa("0x13")](t,e={}){const n=this[wa("0x21")].plugins[wa("0x1f")](wa("0xc")),o=this[wa("0x21")][wa("0x2a")][wa("0x1f")](wa("0x25")),s=this[wa("0x2b")]((t=>o.isListItemBlock(t)&&wa("0x1b")===t[wa("0xd")](wa("0x9"))));null!==s&&this[wa("0x21")][wa("0x24")][wa("0x12")]((()=>{n[wa("0x7")](s,{commandName:wa("0x6"),commandParams:[{startIndex:e[wa("0x1e")]}],formatGroupId:wa("0x6")})}))}[wa("0x10")](t){const e=this[wa("0x21")][wa("0x11")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wa("0x3"):o="*Change to:* %0",s={type:wa("0xe"),content:Yo(e,o,Yo(e,this[wa("0x27")](n[wa("0x4")][0][wa("0x22")])))};break;case wa("0x14"):o=n[wa("0x4")][0][wa("0x15")]?wa("0x16"):"*Format:* set order to regular",s={type:wa("0xe"),content:Yo(e,o)};break;case wa("0x6"):o=wa("0x29"),s={type:"format",content:Yo(e,o,n.commandParams[0][wa("0x1e")])}}return s}_getSuggestionBlocksForListStyle(){const t=this[wa("0x21")][wa("0x2a")][wa("0x1f")](wa("0x25"));let e=Array.from(this.editor[wa("0x24")][wa("0x1")][wa("0x26")][wa("0x2d")]());return e[wa("0x1c")](...t[wa("0x2")](e)),e=[...new Set(e)],e}[wa("0x2b")](t){const e=this.editor[wa("0x2a")].get(wa("0x25"));let n=Array.from(this[wa("0x21")].model[wa("0x1")][wa("0x26")][wa("0x2d")]()).filter(t);if(!n[wa("0x0")])return null;n=e[wa("0x2")](n);const o=[];for(const t of n)e[wa("0x5")](t)&&o[wa("0x1c")](t);return o}[wa("0x27")](t){return"ELEMENT_"+this.editor[wa("0x2a")][wa("0x1f")]("DocumentListPropertiesUtils")[wa("0x8")](t).toUpperCase()+"_LIST_"+t[wa("0xf")]()[wa("0x1d")](/-/g,"_")}}const Fa=["_suggestionFactory","editor","removeAttribute","getSuggestionCallback","TrackChangesTableProperties","commandParams","tableHeight","_descriptionFactory","getAttribute","formatBlock","tableCellBackgroundColor","batch","tableWidth","nodeAfter","get","getFirstPosition","getContainedElement","_handlePropertyChange","TableUtils","getSelectionAffectedTableCells","tableBorderStyle","tableAlignment","data","accept","registerCustomCallback","tableCellBorderColor","model","tableBackgroundColor","plugins","_getSuggestion","*Format:* change table cell properties","tableBorderColor","tableCellBorderStyle","TrackChangesEditing","setAttribute","enqueueChange","enableCommand","table","tableCellProperties","tableCellWidth","locale","discard","change","tableProperties","has","*Format:* change table properties","findAncestor","pluginName","subType","tableCellVerticalAlignment","format","handleDiscardAction","TableCellPropertiesEditing","markBlockFormat","join","handleSuggestionDescription","selection"];var Pa,Da;Pa=Fa,Da=401,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("0x29")]=[Ba("0x1d"),Ba("0x12"),"tableBorderWidth",Ba("0x13"),Ba("0xa"),Ba("0x4"),Ba("0x19")],this.tableCellProperties=[Ba("0x17"),Ba("0x1e"),"tableCellBorderWidth","tableCellPadding",Ba("0x25"),"tableCellHeight",Ba("0x8"),"tableCellHorizontalAlignment",Ba("0x2f")]}static get[Ba("0x2d")](){return Ba("0x2")}afterInit(){const t=this[Ba("0x38")].plugins[Ba("0xc")](Ba("0x1f"));if(this[Ba("0x38")][Ba("0x1a")][Ba("0x2a")]("TablePropertiesEditing")){for(const e of this[Ba("0x29")])t[Ba("0x22")](e,((t,n)=>{const o=this[Ba("0x38")].model.document[Ba("0x36")][Ba("0xd")]()[Ba("0x2c")](Ba("0x23"));this._handlePropertyChange(e,[o],this.tableProperties,"tableProperties",t,n)}));t[Ba("0x37")].registerCustomCallback("formatBlock","tableProperties","accept",t[Ba("0x37")].getSuggestionCallback(Ba("0x7"),null,Ba("0x27"))),t[Ba("0x37")][Ba("0x16")](Ba("0x7"),Ba("0x29"),"discard",((t,e)=>this[Ba("0x31")](this[Ba("0x29")],t,e))),t[Ba("0x37")].registerCustomCallback(Ba("0x7"),Ba("0x29"),Ba("0x34"),(()=>!1))}if(this[Ba("0x38")][Ba("0x1a")][Ba("0x2a")](Ba("0x32"))){for(const e of this[Ba("0x24")])t[Ba("0x22")](e,((t,n)=>{const o=this[Ba("0x38")][Ba("0x1a")].get(Ba("0x10"))[Ba("0x11")](this[Ba("0x38")].model.document[Ba("0x36")]);this[Ba("0xf")](e,o,this[Ba("0x24")],"tableCellProperties",t,n)}));t[Ba("0x37")][Ba("0x16")](Ba("0x7"),Ba("0x24"),Ba("0x15"),t[Ba("0x37")][Ba("0x1")]("formatBlock",null,Ba("0x27"))),t._suggestionFactory[Ba("0x16")](Ba("0x7"),"tableCellProperties",Ba("0x27"),((t,e)=>this[Ba("0x31")](this[Ba("0x24")],t,e))),t[Ba("0x37")].registerCustomCallback(Ba("0x7"),"tableCellProperties",Ba("0x34"),(()=>!1))}t[Ba("0x5")].registerDescriptionCallback((t=>this[Ba("0x35")](t)))}[Ba("0xf")](t,e,n,o,s,r){const i=this[Ba("0x38")].plugins[Ba("0xc")](Ba("0x1f"));this[Ba("0x38")][Ba("0x18")][Ba("0x21")](r[Ba("0x9")],(()=>{for(const t of e)if(this[Ba("0x1b")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x6")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x33")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start[Ba("0xb")],s=n[Ba("0x3")][0];this.editor[Ba("0x18")][Ba("0x28")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x20")](n,s[n],o):e[Ba("0x0")](n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x14")])switch(t[Ba("0x2e")]){case Ba("0x29"):return{type:Ba("0x30"),content:Yo(this[Ba("0x38")][Ba("0x26")],Ba("0x2b"))};case Ba("0x24"):return{type:Ba("0x30"),content:Yo(this[Ba("0x38")][Ba("0x26")],Ba("0x1c"))}}}[Ba("0x1b")](t,e){const n=this[Ba("0x38")][Ba("0x1a")].get(Ba("0x1f"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[Ba("0xe")]();if(o[Ba("0x2e")]===e&&n===t)return o}return null}}const Ua=["addMarker:suggestion:formatBlock","selection","isInsideObject","subType","$textProxy","data-suggestion","addSuggestionData","acceptSuggestion","_addSuggestionMarker","delete","forward","data","length","getShiftedBy","filter","name","getMarkers","values","insertContent","containsPosition","suggestionChanged","plugins","_editor","always","dataToMarker","ck-suggestion-marker-formatBlock","_updateSuggestionData","skipNestingCheck","commandName","deletion","_registerDefaultCallbacks","creator","external:","getSuggestionCallback","_saved","_mergeNestedSuggestions","detach","listenTo","addClass","upcast","change:data","fire","schema","containsItem","define","_defaultCallbacks","hasComments","addSuggestion","$graveyard","isLimit","formatInline:join","_getAuthorFromId","discardSuggestion","conversion","createPositionAfter","removeClass","removeMarker","_customCallbacks","authoredAt","sort","Users","join","multi","enableReadOnlyMode","batch","isObject","commentThread","_suggestionState","markMultiRangeBlockFormat","every","_removeSuggestion","model","suggestion-type","type","deletion:","createdAt","addMarker","config","position","isOwn","_breakSuggestionMarker","writer","insertion:accept","value","_setSuggestionData","isAfter","_checkSuggestionCorrectness","formatBlock:","lowest","oldRange","accepted","addRange","setSelection","suggestion:","originalSuggestionId","addHighlight","accept","fetchCommentThread","ck-suggestion-marker","isRemovable","fromRange","commands","documentSelection","setTo","discardSelectedSuggestions","createRangeIn","newRange","_setSuggestionRange","isMultiRange","_addThreadToSuggestion","markDeletion","dataReady","item","elementEnd","@external","author","_enabledCommands","change:activeMarkers","splice","then","deletion:accept","markerReady","isBlock","_joinWithAdjacentSuggestions","forceDefaultExecution","getItems","toJSON","formatInline:chain","low","discard","differ","deletion:discard","nodeAfter","editingDowncast","insertion:","_createSuggestion","root","getChangedMarkers","_model","markerToHighlight","size","remove","editor","_cutOutSuggestionMarker","ck-suggestion-marker--active","collaboration.channelId","notReady","highest","getNearestSelectionRange","_adapter","formatBlock:join","registerCustomCallback","dataDowncast","markInlineFormat","registerPostFixer","removeMarkers","add","substr","fromCharCode","set","isAtEnd","_findSuggestions","trackChanges.mergeNestedSuggestions","has","createPositionAt","group","PENDING_ACTION_SUGGESTION","isExternal","insert","removed","track-changes-suggestion-not-found","targetPosition","suggestionLoaded","insertion:chain","getDifference","_refreshSuggestionsChain","updateMarker","isNextTo","suggestionUnloaded","getIntersection","moveTargetPosition","isUndo","parent","end","formatBlock:chain","_trackFormatChanges","push","_rangeIsInLocalUserInsertion","getFirstMarker","getChanges","consume","enqueueChange","update:suggestion","from","getSuggestion","refresh","getRanges","addComment","init","isEqual","removeMarker:suggestion:formatBlock","isTouching","mapper","_suggestionFactory","multipleBlocks","backward","addMarkerName","hasSuggestion","formatBlock","formatBlock:accept","consumable","howMany","insertion:discard","after","trackChanges.trackFormatChanges","never","track-changes-command-not-found","_getExternalAuthor","isIntersectingWithRange","isLocal","trackChanges","containerElement","getSuggestions","markers","document","rootName","enableCommand","chain","createSelection","catch","discardAllSuggestions","acceptAllSuggestions","formatInline:","execute","createRange","containsRangeInObject","map","rejected","stop","hasCommentThread","nodeBefore","get","_isForcedDefaultExecutionBlock","trackChangesCommand","range","_getSuggestionData","options","track-changes-suggestion-data-mismatch","_onDiscard","getRange","_splitMarkerName","clear","next","PendingActions","formatInline:discard","containsRange","insertion","return","high","marker-count","getAttribute","getMultiRangeId","change","isBefore","isInContent","_commentsRepository","split","track-changes-adapter-already-set","default","requires","TrackChangesEditing","createElement","start","element","isDocumentOperation","ck-suggestion-marker-","elementStart","getCommentThread","addUser","addMarker:suggestion","previous","CommentsRepository","ready","includes","getAllAdjacentSuggestions","formatInline:accept","getFirstRange","markerName","_suggestions","showSuggestionHighlights","getAncestors","updateSuggestion","attributes","acceptSelectedSuggestions","toViewElement","formatGroupId","isCollapsed","$marker","markMultiRangeInsertion","_joinSuggestions","formatInline","deletion:chain","track-changes-user-not-found","suggestion","some","for","authorName","activeMarkers","locale","getUser","removeAttribute","bindElementToMarker","change:_saved"];var Ga,Ha;Ga=Ua,Ha=174,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[za("0x5f")](){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get pluginName(){return za("0x60")}constructor(t){function e(t){return t[za("0x3e")]((t=>String[za("0x129")](t)))[za("0xc8")]("")}super(t),this[za("0x12a")](za("0x85"),[]),this.on(za("0x100"),((e,n,o,s)=>{this[za("0x115")].change((()=>{for(const e of[...s,...o])this[za("0x115")].markers[za("0x12e")](e)&&t.editing.reconvertMarker(e)}))})),this._descriptionFactory=new ss(this[za("0x119")][za("0xd2")][za("0xb5")],this[za("0x119")].locale),this[za("0x120")]=null,this[za("0x1d")]=new Va(this[za("0x119")]),this[za("0x72")]=new Map,this[za("0x5b")]=t.plugins[za("0x43")]("CommentsRepository"),this[za("0xff")]=new Set,this[za("0x115")]=this[za("0x119")][za("0xd2")],this[za("0xce")]=new WeakMap,this[za("0x44")]=!1,t.config[za("0xb7")](za("0x28"),za("0x5e")),this[za("0xb")]=t.config.get(za("0x28")),t[za("0xd8")][za("0xb7")](za("0x12d"),!0),this._mergeNestedSuggestions=t[za("0xd8")][za("0x43")](za("0x12d")),this[za("0x45")]=new u(t,this[za("0xff")]),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,53,48])}[za("0x18")](){const t=this[za("0x119")];t[za("0xc0")][za("0x83")](za("0x110")).markerToHighlight({model:za("0x81"),view:t=>{const{id:e,type:n}=this[za("0x4c")](t[za("0x71")]),o=["ck-suggestion-marker",za("0x65")+n];let s=3e3;return this.activeMarkers[za("0x6d")](t[za("0x71")])&&(o[za("0xc")](za("0x11b")),s=3010),za("0xa8")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion.for(za("0x123"))[za("0x127")]((e=>{e.on(za("0x69"),((e,n,o)=>{if(!o[za("0x48")].showSuggestionHighlights)return;const s=n.item;if(!s)return;const r=o.mapper[za("0x78")](s);t[za("0xd2")][za("0xb5")][za("0xcc")](s)&&r&&!r.getCustomProperty("widget")&&r.is(za("0x2f"))&&(0,x.toWidget)(r,o[za("0xdc")])}),{priority:za("0x54")})})),t[za("0xc0")][za("0x83")](za("0x123"))[za("0x116")]({model:za("0x81"),view:(t,e)=>{if(!e.options[za("0x73")])return null;const{type:n}=this._splitMarkerName(t[za("0x71")]);return{classes:["ck-suggestion-marker",za("0x65")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[za("0xfb")].is(za("0x8c")))return void s[za("0x24")][za("0x10")](o[za("0xfb")],n[za("0x9a")]);const r=s[za("0x1c")][za("0x78")](o.item);if(!o.item.is(za("0x63"))||!t.model.schema[za("0x105")](o.item)||r.getCustomProperty(za("0xea")))return;const{id:i}=this[za("0x4c")](o[za("0x71")]);s.writer.addClass([za("0xed"),za("0xa4")],r),s[za("0xdc")].setAttribute(za("0x90"),i,r),s[za("0x1c")][za("0x89")](r,o.markerName),e&&(this[za("0x85")][za("0x6d")](o[za("0x71")])?s[za("0xdc")][za("0xb1")](za("0x11b"),r):s[za("0xdc")][za("0xc2")](za("0x11b"),r));for(const e of t.model[za("0xf4")](o[za("0xfb")])[za("0x108")]())s[za("0x24")][za("0x10")](e,n[za("0x9a")]);s[za("0x24")][za("0x10")](o[za("0xfb")],n[za("0x9a")])};t[za("0xc0")].for("dataDowncast")[za("0x127")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o.options[za("0x73")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x11e")})})),t[za("0xc0")][za("0x83")](za("0x123")).markerToData({model:za("0x81"),view:(t,e)=>e[za("0x48")][za("0x73")]?null:{group:za("0x81"),name:t[za("0x128")](11)}}),t[za("0xc0")][za("0x83")](za("0xb2")).elementToElement({view:{name:za("0x81"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0xe8")+t[za("0x56")](za("0xd3"))+":"+t[za("0x56")]("id");return t[za("0x56")](za("0x55"))&&(n+=":"+t.getAttribute(za("0x55"))),e[za("0x61")](za("0x7b"),{"data-name":n})}}),t[za("0xc0")][za("0x83")](za("0xb2"))[za("0xa3")]({view:"suggestion"}),t[za("0xc0")][za("0x83")](za("0x110"))[za("0x127")]((t=>{t.on(za("0x8b"),n(),{priority:"high"})})),t[za("0xc0")].for(za("0x110")).add((t=>{t.on(za("0x1a"),((t,e,n)=>{const o=n[za("0x1c")].markerNameToElements(e[za("0x71")]);if(o)for(const t of o)t.getCustomProperty(za("0xea"))||(n[za("0xdc")][za("0xc2")]([za("0xed"),za("0xa4"),za("0x11b")],t),n[za("0xdc")][za("0x88")](za("0x90"),t),n[za("0x1c")].unbindElementFromMarkerName(t,e[za("0x71")]))}),{priority:za("0x54")})})),t[za("0xd2")][za("0x32")].registerPostFixer((e=>{let n=!1;const o=Array.from(t[za("0xd2")][za("0x32")].differ[za("0x114")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x4c")](x);if(za("0x81")!==o)continue;const d=this._suggestions[za("0x43")](l);if(null!=a[za("0xf5")])if(za("0x7e")==c&&(n=n||Xa(a.newRange,x,e,t[za("0xd2")][za("0xb5")])),a[za("0xf5")][za("0x7a")]||za("0xbb")==a[za("0xf5")].root[za("0x33")]||za("0x22")==c&&!Ja(a[za("0xf5")])||za("0xa8")==c&&(qa(i=a[za("0xf5")])||(r=i)[za("0x62")].parent==r.end[za("0x42")]&&r[za("0x62")][za("0x12b")]))e[za("0xc3")](x),n=!0;else{if(!d||!d[za("0x5a")])continue;s.add(d)}}var r,i;return s.size>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[za("0xd2")][za("0x32")][za("0x125")]((e=>{let n=!1;for(const o of t[za("0xd2")][za("0x32")][za("0x10d")][za("0xf")]()){if(za("0x133")!=o[za("0xd4")])continue;const s=o.position[za("0x98")](o.length);if(s[za("0x12b")])for(const r of this[za("0x72")].values()){if(r.isMultiRange||!r.isInContent)continue;if(za("0x22")!=r[za("0xd4")])continue;const i=r[za("0x70")]();if(i[za("0x62")][za("0x8")]!=i.end[za("0x8")]&&i[za("0x9")][za("0x19")](o.position)){const o=t[za("0xd2")].createRange(i[za("0x62")],s);e[za("0x2")](r[za("0xe")](),{range:o}),n=!0}}}return n})),t[za("0xd2")][za("0x31")].on(za("0x12"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0x4c")](e[za("0x9a")]),n=this._suggestions[za("0x43")](t);n&&n[za("0x20")](e.name)}})),t.model[za("0x32")].on(za("0xb3"),(()=>{const e=Array[za("0x13")](t[za("0xd2")].document[za("0x10d")][za("0x114")]())[za("0x99")]((t=>za("0x81")===this[za("0x4c")](t[za("0x9a")])[za("0x130")]));if(0===e[za("0x97")])return;e[za("0xc6")](((t,e)=>{const n=t[za("0x96")].oldRange,o=e[za("0x96")][za("0xe4")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x62")][za("0x59")](o[za("0x62")])?-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("0xe4")]){const e=this._handleNewSuggestionMarker(t);o[za("0x127")](e)}else{const t=this[za("0x72")][za("0x43")](e);null!==s[za("0xf5")]||t[za("0x5a")]?(n.add(t.head),o[za("0x127")](t)):this[za("0xd1")](t)}}o[za("0x117")]>0&&this[za("0x1")](o);for(const t of n)this[za("0xb4")](za("0x9f"),t)})),t.model.on("applyOperation",((e,n)=>{const o=n[0];if(!this[za("0x72")][za("0x117")])return;if(!o[za("0x64")])return;if(o[za("0xcb")][za("0x7")]||!o[za("0xcb")][za("0x2d")])return;let s,r;switch(o[za("0xd4")]){case za("0x133"):s=t[za("0xd2")].createPositionAt(o[za("0xd9")]),r=s[za("0x98")](o[za("0x25")]);break;case za("0x5c"):s=t[za("0xd2")][za("0x12f")](o.splitPosition),r=t[za("0xd2")].createPositionAt(o[za("0x6")]);break;case"move":s=t.model.createPositionAt(o[za("0x136")]),r=s[za("0x98")](o.howMany);break;default:return}const i=t[za("0xd2")][za("0x3c")](s,r);t[za("0xd2")][za("0x58")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x12c")](i)){if(t[za("0xf7")])continue;if(za("0x7e")==t[za("0xd4")])continue;const n=t[za("0x96")]&&t[za("0x96")][za("0x1e")];(za("0x22")!=t[za("0xd4")]||za("0x5c")==o[za("0xd4")]&&!n)&&(e[za("0x3d")]||za("0x52")==t[za("0xd4")]&&e[za("0xda")]||t[za("0x70")]()[za("0x51")](i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:za("0xe3")}),t[za("0xd2")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x107")])return;if(this[za("0x44")])return;if(!this[za("0x45")].value)return;if(o[za("0x7a")])return;const r=t.model[za("0xb5")],{start:i,end:x}=o[za("0x70")](),a=i[za("0x10f")]&&r[za("0xbc")](i[za("0x10f")])?null:r.getNearestSelectionRange(i,za("0x95")),c=x[za("0x42")]&&r.isLimit(x[za("0x42")])?null:r[za("0x11f")](x,za("0x1f")),l=t.model[za("0x3c")](a?a[za("0x62")]:i,c?c.end:x);t[za("0xd2")][za("0x58")]((e=>{this.markDeletion(l);const n=t[za("0xd2")][za("0xb5")][za("0x11f")](l[za("0x62")]);o.is(za("0xf1"))?e[za("0xe7")](n):o[za("0xf2")](n)})),e[za("0x40")]()}),{priority:e.priorities.normal+10}),t[za("0xd2")].on(za("0x9d"),((e,n)=>{const o=n[n[za("0x97")]-1];o&&o[za("0x107")]||this[za("0x44")]||this[za("0x45")][za("0xde")]&&(t[za("0xd2")][za("0x58")]((()=>{let o=t[za("0xd2")][za("0x9d")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x53")]=o.clone();const s=o[za("0x9")][za("0x42")],r=t[za("0xd2")][za("0xb5")];s&&r[za("0x105")](s)&&!r[za("0xcc")](s)&&(o=t[za("0xd2")].createRange(o[za("0x62")],t[za("0xd2")].createPositionAt(s,za("0x9")))),this.markInsertion(o)})),e[za("0x40")]())}),{priority:"high"}),this[za("0x119")].commands[za("0x127")](za("0x2e"),this[za("0x45")]),this.enableCommand(za("0x2e"));const o=new p(t,this._suggestions);t.commands[za("0x127")](za("0x92"),o),this[za("0x34")](za("0x92"));const s=new C(t,this[za("0x72")]);t[za("0xf0")][za("0x127")](za("0xbf"),s),this[za("0x34")]("discardSuggestion"),t[za("0xf0")][za("0x127")](za("0x39"),new F(t,o,this[za("0x72")])),this.enableCommand(za("0x39")),t.commands[za("0x127")](za("0x38"),new F(t,s,this[za("0x72")])),this[za("0x34")]("discardAllSuggestions"),t[za("0xf0")].add(za("0x77"),new U(t,o,this[za("0x72")])),this[za("0x34")](za("0x77")),t[za("0xf0")].add("discardSelectedSuggestions",new U(t,s,this[za("0x72")])),this.enableCommand(za("0xf3"));const r=t[za("0xa0")][za("0x43")](za("0x6b"));this[za("0xb0")](r,za("0x17"),((t,{threadId:e})=>{const n=this[za("0x72")][za("0x43")](e);n&&n[za("0xcd")]&&1===n[za("0xcd")][za("0x97")]&&this[za("0xa5")](e,{hasComments:!0})}),{priority:za("0x10b")}),this[za("0xb0")](r,"removeComment",((t,{threadId:e})=>{const n=this[za("0x72")][za("0x43")](e);n&&n[za("0xcd")]&&!n[za("0xcd")].length&&this[za("0xa5")](e,{hasComments:!1})}),{priority:za("0x10b")})}set adapter(t){if(this[za("0x120")])throw new e.CKEditorError(za("0x5d"),this);this[za("0x120")]=t}get adapter(){return this._adapter}[za("0x30")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x72")][za("0x9c")]())t&&!e[za("0x5a")]||n[za("0xc")](e);return e?n.map((t=>t[za("0x109")]())):n}[za("0x14")](t){const n=this[za("0x72")].get(t);if(!n)throw new e.CKEditorError(za("0x135"),this);return n}[za("0x21")](t){return this[za("0x72")].has(t)}[za("0x91")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0xd4")][za("0x5c")](":"),i=this._suggestions.get(n)||this[za("0x112")](s,r,n,e,o);if(this[za("0xf8")](i),this[za("0xe1")](i,s,r||null,e),i[za("0xd6")]=t[za("0xd6")],o&&o[za("0xfd")]){const t=o[za("0xfd")],e=this[za("0x2b")](t[za("0x84")]);i[za("0xc5")]=t[za("0xd6")],i[za("0xfe")]=e,i[za("0x132")]=!0}else i[za("0xc5")]=t[za("0xd6")];switch(t[za("0x96")]&&(i.data=t.data),t[za("0x76")]&&(i[za("0x76")]=t[za("0x76")]),this[za("0x120")]&&this[za("0x120")][za("0xba")]||(i[za("0xad")]=!0),this[za("0xce")][za("0x43")](i)){case za("0x11d"):this[za("0xce")][za("0x12a")](i,"dataReady");break;case za("0x104"):i[za("0x5a")]?(this[za("0xce")][za("0x12a")](i,za("0x6c")),this[za("0xb4")]("suggestionLoaded",i)):this._suggestionState.set(i,za("0x134"))}return i}[za("0x92")](t){this[za("0x107")]((()=>{this.editor[za("0xd2")][za("0x58")]((()=>{for(const e of t[za("0x6e")]())e.accept()}))}))}[za("0xbf")](t){this.forceDefaultExecution((()=>{this[za("0x119")][za("0xd2")][za("0x58")]((()=>{for(const e of t[za("0x6e")]())e.discard()}))}))}[za("0x34")](t,n){const o=this.editor[za("0xf0")][za("0x43")](t);if(!o)throw new e.CKEditorError(za("0x2a"),this,{commandName:t});this[za("0xff")].add(o),n&&o.on(za("0x3b"),((t,e)=>{this.trackChangesCommand[za("0xde")]&&(this[za("0x44")]||e.length>0&&e[e[za("0x97")]-1]&&e[e[za("0x97")]-1].forceDefaultExecution||(n(((...t)=>o[za("0x3b")](...t,{forceDefaultExecution:!0})),...e),t[za("0x40")]()))}),{priority:za("0x54")})}[za("0x107")](t){let n,o;const s=this[za("0x44")];this[za("0x44")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}markInsertion(t,n=null,o={}){if(t[za("0x7a")])return null;const s=this[za("0x119")][za("0xa0")][za("0x43")](za("0xc7")).me;for(const{suggestion:e,meta:o}of this[za("0x12c")](t,za("0x52")))if(o[za("0xda")]){if(!o.isNextTo){if(!this[za("0xae")]&&o[za("0x3d")])continue;return e}if(n==e.subType){const n=e[za("0x70")]();return n.start.isEqual(t[za("0x9")])?this._setSuggestionRange(e,this[za("0x115")][za("0x3c")](t[za("0x62")],n[za("0x9")])):this[za("0xf6")](e,this._model[za("0x3c")](n[za("0x62")],t[za("0x9")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x111")+n:"insertion",a=this[za("0xdf")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x93")](x,r,i,t),a}[za("0x7c")](t,n="multi",o={}){const s=this.editor[za("0xa0")][za("0x43")](za("0xc7")).me,r=this._suggestionFactory[za("0xac")](za("0x52"),n,za("0xc8"));for(const e of this[za("0x30")]())if(e[za("0xfe")].id==s.id&&za("0x52")==e[za("0xd4")]&&e[za("0x8e")]==n&&(r(e[za("0x16")](),t)||r(t,e[za("0x16")]()))){for(const n of t)e[za("0xe6")](n);return e}if(this[za("0xae")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x12c")](e,za("0x52"))){if(!o[za("0xda")])continue;let e=!0;for(const o of n[za("0x16")]())for(const n of t)if(!o[za("0x51")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0x111")+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x93")](a,i,x,e,Zo[za("0x57")]());return c}[za("0x124")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0x7a")])return null;if(za("0x29")===this[za("0xb")]){const e=this[za("0x1d")][za("0xac")](za("0x7e"),o,za("0xeb"));return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this[za("0x119")][za("0xa0")][za("0x43")](za("0xc7")).me,i=[];if(za("0xa2")!==this[za("0xb")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x52")))n[za("0xda")]&&!n.isInsideObject&&i[za("0xc")](...e[za("0x16")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[za("0xc")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x97")];){const o=n[e][za("0x0")](t);n[za("0x101")](e,1,...o),e+=o[za("0x97")]}}return n}(t,i);x[za("0x97")]&&this[za("0x115")][za("0x58")]((()=>{for(const t of x){const e=this[za("0x1d")][za("0xac")](za("0x7e"),o,za("0xeb"));this[za("0x107")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t[za("0x9")];for(const{suggestion:e,meta:n}of this[za("0x12c")](t,za("0x7e"))){if(!n[za("0xda")])continue;if(e[za("0x8e")]!=o)continue;const s=e[za("0x70")]();if(s[za("0x51")](t,!0))return null;x=x[za("0x59")](s[za("0x62")])?x:s[za("0x62")],a=a[za("0xe0")](s[za("0x9")])?a:s.end,i?s[za("0x62")].isBefore(i.getFirstRange()[za("0x62")])?(i.removeMarkers(),i=e):e[za("0x126")]():i=e}const c=this[za("0x115")][za("0x3c")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this._setSuggestionData({id:t,type:za("0x3a")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x93")](za("0x3a")+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n.formatGroupId||(n.formatGroupId=n[za("0xa7")]),n[za("0x1e")]=t.is("range"),s=s||$a(n);const i=o[za("0x3e")]((t=>Qa(t,this[za("0x115")]))),x=t.is("range")?t:Qa(t,this[za("0x115")]);if(za("0x29")===this[za("0xb")]){const t=this[za("0x1d")][za("0xac")](za("0x22"),s,"accept");return this[za("0x107")]((()=>t([x],n,r))),null}i[za("0xc")](x);let a=!0;for(const t of i)if(!this[za("0xd")](t)){a=!1;break}if(a&&za("0xa2")!==this[za("0xb")]){const t=this[za("0x1d")][za("0xac")]("formatBlock",s,za("0xeb"));return this[za("0x107")]((()=>t([x],n,r))),null}let c=null,l=x[za("0x62")],d=x[za("0x9")];for(const{suggestion:t,meta:e}of this[za("0x12c")](x,"formatBlock")){if(!e[za("0xda")]||e[za("0x3")]||e[za("0x3d")]||e[za("0x8d")])continue;if(t[za("0x96")][za("0x79")]!=n.formatGroupId)continue;const o=t.getFirstRange();if(t.subType==s){if(o[za("0x51")](x,!0))return null;l=l[za("0x59")](o[za("0x62")])?l:o[za("0x62")],d=d[za("0xe0")](o[za("0x9")])?d:o.end,c?o.start[za("0x59")](c[za("0x70")]()[za("0x62")])?(c[za("0x126")](),c=t):t[za("0x126")]():c=t}else{const e=x.getIntersection(o);this._cutOutSuggestionMarker(t,e)}}const u=this.editor[za("0xa0")][za("0x43")]("Users").me,g=(0,e.uid)(),m=u.id;if(c)return this._setSuggestionRange(c,this[za("0x115")][za("0x3c")](l,d)),c;{const t=this._setSuggestionData({id:g,type:za("0xe2")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(za("0xe2")+s,g,m,this[za("0x115")][za("0x3c")](l,d)),t}}[za("0xcf")](t,n,o=[],s=null,r={}){n[za("0x79")]||(n[za("0x79")]=n[za("0xa7")]);const i=t[0];n.multipleBlocks=i.is(za("0x46")),s=s||$a(n);const x=o[za("0x3e")]((t=>Qa(t,this[za("0x115")]))),a=i.is(za("0x46"))?t:t[za("0x3e")]((t=>Qa(t,this[za("0x115")])));if(za("0x29")===this[za("0xb")]){const t=this._suggestionFactory.getSuggestionCallback(za("0x22"),s,za("0xeb"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x[za("0xc")](...a);let c=!0;for(const t of x)if(!this[za("0xd")](t)){c=!1;break}if(c&&za("0xa2")!==this._trackFormatChanges){const t=this[za("0x1d")][za("0xac")]("formatBlock",s,za("0xeb"));return this[za("0x107")]((()=>t(a,n,r))),null}const l=this.editor.plugins[za("0x43")](za("0xc7")).me;for(const t of this.getSuggestions()){if(t[za("0xfe")].id!=l.id)continue;if("formatBlock"!=t[za("0xd4")]||t[za("0x96")][za("0x79")]!=n[za("0x79")])continue;const e=t[za("0x8e")]==s;for(let n=0;n<a[za("0x97")];n++){const o=a[n];for(const s of t[za("0x9b")]()){const r=s[za("0x4b")]();if(o.isEqual(r)){e?(a.splice(n,1),n--):t.removeMarker(s[za("0x9a")]);break}}}}if(0==a[za("0x97")])return null;const d=this[za("0x1d")][za("0xac")]("formatBlock",s,"join");for(const t of this[za("0x30")]())if(t[za("0xfe")].id==l.id&&za("0x22")==t[za("0xd4")]&&t[za("0x96")][za("0x79")]==n[za("0x79")]&&t[za("0x8e")]==s&&(d(t[za("0x16")](),a)||d(a,t[za("0x16")]()))){for(const e of a)t.addRange(e);return t}const u=(0,e.uid)(),g=l.id,m=za("0xe2")+s,f=this[za("0xdf")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x93")](m,u,g,t,Zo.getMultiRangeId());return f}[za("0xf9")](t,n=null,o={}){if(t[za("0x7a")])return null;const s=this[za("0x119")].plugins[za("0x43")]("Users").me,r=new i.LiveRange(t.start,t[za("0x9")]);for(const{suggestion:t,meta:e}of this[za("0x12c")](r,za("0x52")))if(e[za("0xda")]&&!e[za("0x3")])if(t[za("0xf7")]){const e=t[za("0x16")]()[za("0x99")]((t=>za("0xbb")!=t.root.rootName));if(e[za("0xd0")]((t=>r[za("0x51")](t,!0)))&&t[za("0x10c")](),e[za("0x82")]((t=>t[za("0x51")](r,!0)))){const t=this[za("0x1d")][za("0xac")](za("0xa8"),n,za("0xeb"));return this[za("0x107")]((()=>t([r],null,o))),null}}else{const e=r[za("0x5")](t[za("0x70")]());null!==e&&t[za("0x4a")]([e],null,o)}if(r[za("0xaf")](),r.isCollapsed||"$graveyard"==r[za("0x113")][za("0x33")])return null;let x=null,a=r[za("0x62")],c=r[za("0x9")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0xa8")))if(e[za("0xda")])if(t.isMultiRange&&this[za("0xae")]){let e=!0;for(const n of t.getRanges()){if(n[za("0x51")](r,!0))return t;r.containsRange(n)||(e=!1)}e&&t[za("0x10c")]()}else{const n=t[za("0x70")]();if(n[za("0x51")](r,!0)){if(!this[za("0xae")]&&e[za("0x3d")])continue;return t}a=a[za("0x59")](n[za("0x62")])?a:n[za("0x62")],c=c[za("0xe0")](n[za("0x9")])?c:n.end,x?n[za("0x62")].isBefore(x[za("0x70")]().start)?(x[za("0x126")](),x=t):t.removeMarkers():x=t}if(x)return this._setSuggestionRange(x,this[za("0x115")][za("0x3c")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x115")][za("0x3c")](a,c),i=s.id,x=n?za("0xd5")+n:za("0xa8"),l=this[za("0xdf")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x93")](x,t,i,r),l}}markMultiRangeDeletion(t,n=za("0xc9"),o={}){const s=this[za("0x119")][za("0xa0")][za("0x43")](za("0xc7")).me,r=t[za("0x3e")]((t=>new i.LiveRange(t.start,t[za("0x9")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x12c")](t,za("0x52")))n.isOwn&&!n[za("0x3")]&&x[za("0x127")](e);for(const e of x)if(e[za("0xf7")]){const s=e[za("0x16")]();if((!e[za("0x76")]||!e.attributes.skipNestingCheck)&&s[za("0xd0")]((t=>r.some((e=>e.containsRange(t,!0)))))&&e[za("0x10c")](),r[za("0xd0")]((t=>s.some((e=>e[za("0x51")](t,!0)))))){const e=this._suggestionFactory[za("0xac")](za("0xa8"),n,za("0xeb"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[za("0x70")]();if(r.some((e=>e[za("0x51")](t,!0)))&&e[za("0x10c")](),r[za("0xd0")]((e=>t[za("0x51")](e,!0)))){const t=this[za("0x1d")][za("0xac")](za("0xa8"),n,za("0xeb"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[za("0x1d")][za("0xac")]("deletion",n,"join");let c=null;for(const t of this[za("0x30")]())if(t[za("0xfe")].id==s.id&&t.isInContent&&za("0xa8")==t.type&&t[za("0x8e")]==n&&(a(t.getRanges(),r)||a(r,t[za("0x16")]())))if(c){if(t[za("0xcd")]&&t[za("0xcd")][za("0x97")])continue;for(const e of t[za("0x16")]())c[za("0x2c")](e)||c[za("0xe6")](e);t[za("0x126")]()}else{c=t;for(const e of r)t[za("0x2c")](e)||t[za("0xe6")](e)}if(c)return c;x[za("0x4d")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x12c")](t,za("0xa8")))n[za("0xda")]&&x[za("0x127")](e);for(const t of x){const e=t[za("0x16")]();if((!o||!o[za("0xa6")])&&r[za("0xd0")]((t=>e[za("0x82")]((e=>e[za("0x51")](t,!0))))))return t;(!t[za("0x76")]||!t[za("0x76")].skipNestingCheck)&&e.every((t=>r[za("0x82")]((e=>e[za("0x51")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this[za("0xdf")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0xaf")](),t[za("0x7a")]||"$graveyard"==t[za("0x113")][za("0x33")]||this[za("0x93")](u,l,d,t,Zo[za("0x57")]());return g}[za("0xf6")](t,e){const n=t[za("0xe")]();this[za("0x115")][za("0x58")]((t=>{t[za("0x2")](n,{range:e})}))}[za("0xf8")](t){const e=t.id,n=this[za("0x119")].config[za("0x43")](za("0x11c"));this[za("0x5b")][za("0x41")](e)||this[za("0x5b")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x5b")][za("0x67")](e);o.unbind(za("0xee")),o[za("0xee")]=!1,t[za("0xcd")]=o}[za("0xe1")](t,n,o,s){if(t.type!=n||t[za("0x8e")]!=o||t[za("0xaa")].id!=s)throw this.editor[za("0xca")](za("0x49")),new e.CKEditorError(za("0x49"),this)}[za("0x11a")](t,n){const o=t[za("0x70")]();if(n[za("0x19")](o))t.removeMarkers();else if(o[za("0x51")](n)){const s=this._model[za("0x12f")](n[za("0x62")][za("0x42")],"end");this[za("0xf6")](t,this[za("0x115")].createRange(o.start,s));const r=(0,e.uid)(),i=t[za("0xaa")].id,x=t[za("0xd4")]+":"+t[za("0x8e")];this[za("0xdf")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x96")],attributes:t[za("0x76")]});const a=this[za("0x115")].createPositionAt(n.end[za("0x8")],za("0x27")),c=this[za("0x115")][za("0x3c")](a,o.end);this[za("0x93")](x,r,i,c)}else if(o[za("0x9e")](n[za("0x62")])){const e=this[za("0x115")][za("0x12f")](n[za("0x62")][za("0x42")],"end");this[za("0xf6")](t,this._model.createRange(o[za("0x62")],e))}else{const e=this[za("0x115")].createPositionAt(n.end.parent,za("0x27"));this._setSuggestionRange(t,this[za("0x115")].createRange(e,o[za("0x9")]))}}[za("0xd")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion")){if(!n[za("0xda")])continue;const o=e[za("0x16")]();for(const e of o)if(!t.getDifference(e)[za("0x97")])return!0}return!1}[za("0xbe")](t){const n=this[za("0x119")].plugins.get(za("0xc7"))[za("0x87")](t);if(!n)throw new e.CKEditorError(za("0x80"),this);return n}[za("0x2b")](t){const e=this[za("0x119")][za("0xa0")][za("0x43")](za("0xc7")),n=(0,r.hashObject)(za("0xab")+t);return e[za("0x87")](n)||e[za("0x68")]({id:n,name:t})}[za("0x112")](t,e,n,o,s){const r=this[za("0xbe")](o),i=this[za("0x1d")].buildSuggestion(t,e,n,r,s,(t=>this[za("0xa5")](n,{attributes:t})));return this.listenTo(i,za("0xeb"),(()=>{this._updateSuggestionData(n,{state:za("0xe5")})}),{priority:za("0x54")}),this[za("0xb0")](i,"discard",(()=>{this[za("0xa5")](n,{state:za("0x3f")})}),{priority:za("0x54")}),this[za("0x72")][za("0x12a")](n,i),this._suggestionState.set(i,za("0x11d")),i}[za("0x4c")](t){const e=t[za("0x5c")](":");return{group:e[0],type:e[1],subType:e[za("0x97")]>=5?e[2]:null,id:e[za("0x97")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[za("0x97")]?e[5]:null}}[za("0xdb")](t,n,o){const s=t[za("0x70")](),r=s[za("0x62")],i=s[za("0x9")];this[za("0xf6")](t,this[za("0x115")][za("0x3c")](r,n));const x=(0,e.uid)(),a=t.creator.id,c=t[za("0xd4")]+(t[za("0x8e")]?":"+t.subType:"");this[za("0xdf")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x76")],data:t[za("0x96")]}),za("0x22")==t[za("0xd4")]&&(o=this[za("0x115")].createPositionBefore(o[za("0x8")])),this[za("0x93")](c,x,a,this[za("0x115")][za("0x3c")](o,i))}[za("0x12c")](t,e=null){const n=[],o=this[za("0x115")][za("0xb5")],s=this.editor[za("0xa0")][za("0x43")](za("0xc7")).me;for(const r of this.getSuggestions())if(r.isInContent&&(!e||r[za("0xd4")]==e))for(const e of r[za("0x16")]()){const i=t.start[za("0x19")](e[za("0x9")])||t[za("0x9")].isEqual(e.start);if(i||t[za("0x5")](e)){const x=t[za("0x51")](e)&&Ka(o,e[za("0x62")],t),a=e[za("0x51")](t)&&Ka(o,t.start,e);n[za("0xc")]({suggestion:r,meta:{isOwn:s==r[za("0xfe")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}_addSuggestionMarker(t,e,n,o,s){this._model[za("0x58")]((r=>{let i=za("0xe8")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0xd7")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xd1")](t){const e=t[za("0x6a")],n=t[za("0x4e")];t[za("0x6a")]=null,null!=e&&(e[za("0x4e")]=null),t.next=null,null!=n&&(n[za("0x6a")]=null),"ready"==this[za("0xce")].get(t)&&(this[za("0xce")][za("0x12a")](t,za("0x134")),this[za("0xb4")](za("0x4"),t,e,n))}[za("0xdf")](t){const n=t.id,o=this[za("0x91")](t);if(this._adapter&&this[za("0x120")][za("0xba")]){const s=this[za("0x119")].plugins[za("0x43")](za("0x4f")),r=o.hasComments,i=o[za("0x8e")]?o[za("0xd4")]+":"+o[za("0x8e")]:o.type,x=this[za("0x119")][za("0x86")],a=s[za("0x127")](Yo(x,za("0x131"))),c={id:n,type:i,hasComments:r,data:t[za("0x96")]||null,originalSuggestionId:t[za("0xe9")]||null,attributes:o.attributes};this[za("0x120")][za("0xba")](c).then((t=>{o._saved=!0,s[za("0x118")](a),t&&t[za("0xd6")]&&(this[za("0x72")][za("0x43")](n)[za("0xd6")]=t.createdAt)}))[za("0x37")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[za("0x119")].model[za("0x11")]({isUndoable:!1},(()=>{o.discard()})),o.stopListening(),this[za("0x72")][za("0x94")](o.id),this[za("0xce")][za("0x94")](o),t}))}return o}_updateSuggestionData(t,e){const n=this.editor.plugins.get(za("0x4f")),o=this[za("0x14")](t);if(this[za("0x120")]&&this[za("0x120")][za("0x75")])if(o[za("0xad")]){const o=n[za("0x127")](Yo(this[za("0x119")].locale,za("0x131")));this[za("0x120")].updateSuggestion(t,e)[za("0x102")]((()=>{n[za("0x118")](o)}))}else o.on(za("0x8a"),(()=>{this[za("0xa5")](t,e)}))}[za("0x47")](t){if(!this[za("0x120")]||!this[za("0x120")][za("0x14")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[za("0x120")].getSuggestion(t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[za("0x4c")](t),r=this[za("0x72")][za("0x43")](e)||this[za("0x112")](n,o,e,s,{});switch(this[za("0xe1")](r,n,o,s),this[za("0xce")][za("0x43")](r)){case"notReady":this[za("0x47")](e).then((t=>{let n=Promise.resolve();t[za("0xb9")]&&(n=this[za("0x5b")][za("0xec")]({channelId:this.editor[za("0xd8")][za("0x43")]("collaboration.channelId"),threadId:e})),n.then((()=>{this.addSuggestionData(t)[za("0xad")]=!0}))})),this._suggestionState[za("0x12a")](r,za("0x104"));break;case za("0x134"):this[za("0xa5")](e,{state:"open"});case za("0xfa"):this[za("0xce")][za("0x12a")](r,za("0x6c")),this[za("0xb4")](za("0x137"),r);break;case za("0x6c"):this.fire(za("0x9f"),r)}return r[za("0x20")](t),r}_refreshSuggestionsChain(t){const e=Array[za("0x13")](t)[za("0x99")]((t=>!t[za("0xf7")])),n=this.getSuggestions({skipNotAttached:!0}).filter((t=>!t[za("0xf7")])),o=n[za("0x99")]((e=>!t[za("0x12e")](e))),s=new Map(n[za("0x3e")]((t=>[t,this[za("0x1d")][za("0xac")](t.type,t.subType,za("0x35"))]))),r=new Map(n[za("0x3e")]((t=>[t,t[za("0x70")]()]))),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.length;t++)a(e[t],o,0);for(let t=0;t<e[za("0x97")];t++){const n=e[t];!x.has(n)&&n[za("0x6a")]&&(n[za("0x6a")][za("0x4e")]===n&&(n.previous[za("0x4e")]=null),n.previous=null),!i[za("0x12e")](n)&&n[za("0x4e")]&&(n[za("0x4e")].previous===n&&(n[za("0x4e")][za("0x6a")]=null),n[za("0x4e")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][za("0x4e")]=n[1],n[1].previous=n[0],i[za("0x127")](n[0]),x[za("0x127")](n[1]))}}function c(t,e){if(t[za("0xfe")].id!==e[za("0xfe")].id)return null;const n=s.get(t)(t,e,r.get(t),r[za("0x43")](e));return n&&s[za("0x43")](e)(t,e,r.get(t),r[za("0x43")](e))?n[1][za("0xcd")]&&n[1][za("0xcd")][za("0x97")]?null:n:null}}[za("0x106")](t){const e=Array.from(t),n=this[za("0x30")]({skipNotAttached:!0}),o=n.filter((e=>!t[za("0x12e")](e))),s=new Map(e[za("0x3e")]((t=>[t,this[za("0x1d")].getSuggestionCallback(t[za("0xd4")],t[za("0x8e")],za("0xc8"))]))),r=new Map(n[za("0x3e")]((t=>[t,t[za("0x16")]()])));for(let t=0;t<e.length;t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x97")];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("0x97")];i++){const o=n[i];if(o[za("0xd4")]!==e[za("0xd4")]||o[za("0xfe")].id!==e.author.id||o.subType!==e[za("0x8e")])continue;const x=s.get(e),a=r[za("0x43")](e),c=r.get(o),l=e[za("0xcd")]&&e[za("0xcd")].length,d=o.commentThread&&o[za("0xcd")][za("0x97")];if(!l&&x(c,a))return t[za("0x7d")](o,e),r[za("0x94")](e),!0;if(!d&&x(a,c))return t[za("0x7d")](e,o),r[za("0x94")](o),!0}return!1}}[za("0x7d")](t,e){if(t[za("0xf7")])for(const n of e.getRanges())t.addRange(n);else{const n=e.getFirstRange()[za("0x9")];this[za("0xf6")](t,this._model.createRange(t.getFirstRange().start,n))}e[za("0x126")]()}}class Va{constructor(t){this[za("0xa1")]=t,this._model=t.model,this[za("0xc4")]=new Map,this._defaultCallbacks=new Map,this[za("0xa9")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0xac")](t,e,za("0xeb"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,za("0x10c"))(...n)})}[za("0x122")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0xc4")][za("0x12a")](s,o)}[za("0xac")](t,e,n){const o=t+":"+e+":"+n;return this[za("0xc4")].get(o)||this._defaultCallbacks[za("0x43")](t+":"+n)}[za("0xa9")](){const t=()=>{},e=t=>{t[za("0xc6")](((t,e)=>t[za("0x62")].isBefore(e[za("0x62")])?1:-1)),this[za("0x115")][za("0x58")]((e=>{for(const n of t){let t;t=n[za("0x9")][za("0x12b")]&&n.end[za("0x8")]==n[za("0x62")][za("0x10f")]?e.createSelection(n[za("0x62")][za("0x10f")],"on"):e[za("0x36")](n),this[za("0x115")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model.change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x3e")]((t=>(qa(t)&&(t=this[za("0x115")].createRange(t[za("0x9")])),t)))[za("0x99")]((t=>za("0xbb")!==t[za("0x113")][za("0x33")]));if(r[za("0x97")]<1)return;const x=Array[za("0x13")](this[za("0x115")][za("0x32")][za("0x8c")][za("0x16")]())[za("0x3e")]((t=>i.LiveRange[za("0xef")](t)));n[za("0xe7")](r);for(const t of this[za("0xa1")][za("0xf0")][za("0xf0")]())t[za("0x15")]();s[za("0xc")]({forceDefaultExecution:!0}),this._editor[za("0x3b")](o,...s);const a=x.filter((t=>za("0xbb")!=t[za("0x113")].rootName));a[za("0x97")]>0&&n.setSelection(a);for(const t of x)t[za("0xaf")]()}))},o=(t,e)=>1==t[za("0x97")]&&1==e[za("0x97")]&&t[0][za("0x9")][za("0x19")](e[0][za("0x62")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x115")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this._defaultCallbacks.set(za("0xdd"),t),this[za("0xb8")][za("0x12a")](za("0x26"),e),this[za("0xb8")][za("0x12a")]("insertion:join",o),this[za("0xb8")].set(za("0x138"),s),this._defaultCallbacks.set(za("0x103"),e),this[za("0xb8")][za("0x12a")](za("0x10e"),t),this[za("0xb8")][za("0x12a")]("deletion:join",o),this._defaultCallbacks.set(za("0x7f"),s),this._defaultCallbacks[za("0x12a")](za("0x6f"),n),this[za("0xb8")][za("0x12a")](za("0x50"),t),this[za("0xb8")][za("0x12a")](za("0xbd"),o),this[za("0xb8")][za("0x12a")](za("0x10a"),t),this[za("0xb8")][za("0x12a")](za("0x23"),n),this[za("0xb8")][za("0x12a")]("formatBlock:discard",t),this._defaultCallbacks[za("0x12a")](za("0x121"),o),this[za("0xb8")][za("0x12a")](za("0xa"),t)}}function Ka(t,e,n){for(const o of e.parent[za("0x74")]({includeSelf:!0,parentFirst:!0})){if(o[za("0x113")]==o)return!1;if(!n[za("0xb6")](o))return!1;if(t[za("0xcc")](o)||t.isLimit(o))return!0}return!1}function qa(t){return t[za("0x9")][za("0x8")]==t[za("0x62")][za("0x10f")]&&t[za("0x9")].isAtStart}function Xa(t,e,n,o){const s=t=>!t[za("0xfb")].is(za("0x8f"))&&!o.isObject(t[za("0xfb")]),r=t.start.getLastMatchingPosition(s),i=t.end.getLastMatchingPosition(s,{direction:za("0x1f")});return!(t.start[za("0x19")](r)&&t[za("0x9")][za("0x19")](i)||(r[za("0x59")](i)?n[za("0x2")](e,{range:n[za("0x3c")](r,i)}):n.removeMarker(e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x62")][za("0x10f")];return e&&e.is("element")}function Qa(t,e){const n=e[za("0xb5")][za("0xcc")](t)||e[za("0xb5")].isSelectable(t);return e.createRange(e[za("0x12f")](t,"before"),n?e[za("0xc1")](t):e.createPositionAt(t,za("0x9")))}function Za(t,e,n,o,s){if(n.end[za("0x19")](o[za("0x62")]))return!0;if(t[za("0xd4")]!=e[za("0xd4")])return!1;if(!n[za("0x9")][za("0x1b")](o[za("0x62")]))return!1;const r=s[za("0x3c")](n[za("0x9")],o[za("0x62")]).getWalker();for(const t of r)if([za("0x66"),za("0xfc")][za("0x6d")](t[za("0xd4")])&&s.schema.isLimit(t[za("0xfb")]))return!1;return!0}const Ya=["locale","canDiscard","destroy","_setPendingAction","remove","PendingActions","isDirty","PENDING_ACTION_SUGGESTION","commands","get","change:isDirty","_editor","plugins","add","canEditAt","isEnabled","view","commentThreadController","execute","model","unbind","listenTo","_removePendingAction","bind","_pendingAction","discardSuggestion","getRanges","_discardCommand","canAccept","acceptSuggestion","_acceptCommand"];var tc,ec;tc=Ya,ec=479,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("0x5")]=e,this[nc("0x2")]=n,this[nc("0x3")]=o,this[nc("0x1c")]=t,this._acceptCommand=t[nc("0x19")][nc("0x1a")](nc("0xf")),this[nc("0xd")]=t[nc("0x19")][nc("0x1a")](nc("0xb")),this.view[nc("0x9")](nc("0x1")).to(this._acceptCommand,this[nc("0xd")],((t,e)=>t||e)),this[nc("0x2")][nc("0x9")](nc("0xe")).to(this[nc("0x10")],nc("0x1"),(t=>t&&this[nc("0x1c")][nc("0x5")][nc("0x0")](e[nc("0xc")]()))),this[nc("0x2")][nc("0x9")]("canDiscard").to(this._discardCommand,nc("0x1"),(t=>t&&this._editor.model[nc("0x0")](e.getRanges()))),this[nc("0xa")]=null,n[nc("0x17")]&&this[nc("0x14")](),this[nc("0x7")](n,nc("0xf"),(()=>this[nc("0xf")]())),this[nc("0x7")](n,"discardSuggestion",(()=>this.discardSuggestion())),this.listenTo(n,nc("0x1b"),(()=>{n.isDirty?this[nc("0x14")]():this._removePendingAction()}))}[nc("0xf")](){this[nc("0x10")][nc("0x4")](this.model.id)}[nc("0xb")](){this[nc("0xd")][nc("0x4")](this[nc("0x5")].id)}[nc("0x13")](){this[nc("0x2")][nc("0x6")](nc("0x1")),this.view[nc("0x6")](nc("0xe")),this[nc("0x2")].unbind(nc("0x12")),this.stopListening(),this.commentThreadController[nc("0x13")](),this[nc("0xa")]&&this[nc("0x8")]()}_setPendingAction(){const t=Yo(this[nc("0x1c")][nc("0x11")],nc("0x18"));this._pendingAction=this[nc("0x1c")][nc("0x1d")][nc("0x1a")](nc("0x16"))[nc("0x1e")](t)}_removePendingAction(){null!==this._pendingAction&&this._editor[nc("0x1d")][nc("0x1a")](nc("0x16"))[nc("0x15")](this[nc("0xa")]),this[nc("0xa")]=null}}const sc=["_model","submit","_createCommentViews","CommentView","value","focus","editorConfig","_config","cancel","commentInputView","bind","commentThread","commentThreadInputView","disableComments","disabledSubmit","authoredAt","length","isReadOnly","destroy","updateComment","setData","set","commentsListView","editor","removeComment","_localUser","isEnabled","isActive","hasDirtyComment","_createCommentThreadInputView","isDirty","delegate","locale","addComment","element"];var rc,ic;rc=sc,ic=251,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("0x10")]=null,this[xc("0x6")]=null,this[xc("0xf")](xc("0x15"),!1),this[xc("0xf")](xc("0x9"),e[xc("0x9")]),this.bind(xc("0x9")).to(e),this.set("descriptionParts",[]),this[xc("0xf")](xc("0x18"),!1),this[xc("0xf")](xc("0x14"),!1),this.set("canAccept",!1),this.set("canDiscard",!1),this[xc("0x1d")]=e,this[xc("0x13")]=n,this[xc("0x1")]=o,o[xc("0x7")]?this.set(xc("0xa"),1):this[xc("0x1f")]()}[xc("0x22")](){this[xc("0x1c")][xc("0x22")]()}[xc("0xc")](){this[xc("0x10")]&&this[xc("0x10")].destroy(),this[xc("0x6")]&&this[xc("0x6")][xc("0xc")](),super[xc("0xc")]()}[xc("0x1f")](){const{CommentsListView:t}=this[xc("0x1")];this[xc("0x10")]=new t(this[xc("0x1a")],this[xc("0x1d")].commentThread,Object.assign({CommentView:this[xc("0x1")][xc("0x20")]},this[xc("0x1")])),this.commentsListView[xc("0x19")](xc("0x12")).to(this),this[xc("0x10")][xc("0x19")](xc("0xd")).to(this),this[xc("0x10")][xc("0x4")]("isActive").to(this),this.set(xc("0xa"),this[xc("0x10")].length+1),this[xc("0x4")]("length").to(this[xc("0x10")],"length",(t=>t+1)),this[xc("0x6")]=this[xc("0x17")](),this.on(xc("0x12"),(()=>this[xc("0x22")]())),this[xc("0x4")](xc("0x18")).to(this[xc("0x10")],xc("0x16"),this[xc("0x6")].commentInputView,xc("0x21"),((t,e)=>t||!!e))}[xc("0x17")](){const{CommentThreadInputView:t}=this[xc("0x1")],e=new t(this[xc("0x1a")],this[xc("0x13")],this[xc("0x1")][xc("0x0")]),n=e[xc("0x3")];return e[xc("0x4")]("showInput").to(this,xc("0x15"),this[xc("0x1d")][xc("0x5")],xc("0xb"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(xc("0x1e"),((t,e)=>{this.fire(xc("0x1b"),e),n[xc("0x11")][xc("0xe")]("")})),n.on(xc("0x2"),(()=>this.focus())),n[xc("0x4")](xc("0x8")).to(this._model[xc("0x5")],xc("0xb")),e}}const cc=["acceptSuggestion","innerHTML","EXTERNAL_IMPORT_WORD_AVATAR","set","acceptButton","authoredAt","getExternalSuggestionNote","push","ck-suggestion--accept","importWord","span","name","</span>","ck-suggestion__main","EXTERNAL_AVATAR","ck-annotation__main","split","innerText","_model","locale","ck-suggestion__actions","_config","getTemplate","check","cancel","isActive",'<span class="ck-suggestion-color" style="background-color: ',"color","author","ck-annotation__content-wrapper","creator","ck-comment__external","_createButton","EXTERNAL_IMPORT_WORD_SUGGESTION","getUserViewNotificationText","children","ck-annotation__info","isExternal","</p>",'<span class="ck-suggestion-type">',"canDiscard","ck-annotation__user","time","discardButton","ck-suggestion--discard","type","Discard suggestion","element","ck-suggestion-wrapper",'" title="',"map","commentThreadInputView","ck-suggestion-","ck-annotation__actions","setTemplate","ck-suggestion__info-name",".ck-annotation__content-wrapper","render","ck-annotation__info-time","source","_descriptionElement","description","ck-annotation","join","ck-annotation__info-name","Accept suggestion","commentThread","bind","createElement","fire","querySelector","change:description","value",'"></span>',"ck-comment__info-time","discardSuggestion","<p>","ck-suggestion","commentsListView","title","attributes","bindTemplate","isEnabled","userView","div","canAccept","extendTemplate","ck-suggestion__info"];var lc,dc;lc=cc,dc=331,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[uc("0x18")](uc("0x42"),""),this[uc("0x0")](uc("0x42")).to(this,"descriptionParts",(t=>t&&t[0]?t[0][uc("0x42")]:"")),this[uc("0x0")](uc("0x52")).to(this,"descriptionParts",this,uc("0x2e"),((t,e)=>{let n="";for(const e of t)n+=uc("0x9")+mc(e.content,e[uc("0x30")])+uc("0x3b");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x51")]=null,this[uc("0x19")]=this[uc("0x35")](Yo(e,uc("0x56")),t.icons[uc("0x2c")],uc("0x1d"),uc("0x15"),"sw"),this.acceptButton[uc("0x0")](uc("0xf")).to(this,uc("0x12")),this[uc("0x40")]=this._createButton(Yo(e,uc("0x43")),t.icons[uc("0x2d")],uc("0x41"),uc("0x8"),"sw"),this[uc("0x40")][uc("0x0")](uc("0xf")).to(this,uc("0x3d")),this[uc("0x10")]=new r.UserView(e,this._model[uc("0x31")],this[uc("0x37")]()),this[uc("0x10")][uc("0x13")]({attributes:{class:["ck-suggestion__user",uc("0x3e")]}}),this[uc("0x4b")](this[uc("0x2b")]())}[uc("0x2b")](){const t=this[uc("0xe")],e=[{tag:uc("0x11"),attributes:{class:[uc("0x14"),uc("0x39")]},children:[{tag:uc("0x1f"),children:[{text:this[uc("0x10")][uc("0x20")]}],attributes:{class:[uc("0x4c"),uc("0x55")]}},{tag:uc("0x3f"),attributes:{datetime:t.to(uc("0x1a")),class:[uc("0x7"),uc("0x4f")]},children:[{text:t.to(uc("0x1a"),(t=>this._config.formatDateTime(t)))}]}]},{tag:uc("0x11"),attributes:{class:[uc("0x29"),uc("0x4a")]},children:[this[uc("0x19")],this[uc("0x40")]]},{tag:"div",attributes:{class:[uc("0x32")]}}];this._model.isExternal&&e[uc("0x1c")]({tag:uc("0x11"),attributes:{class:[uc("0x34")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:uc("0x11"),attributes:{class:[uc("0x45"),t.if(uc("0x2e"),"ck-suggestion-wrapper--active"),t.to(uc("0x42"),(t=>uc("0x49")+t)),this[uc("0x2a")].disableComments&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[uc("0x27")].id,"data-thread-id":this[uc("0x27")][uc("0x57")].id,"data-author-id":this[uc("0x27")].author.id,tabindex:-1},children:[{tag:uc("0x11"),attributes:{class:[uc("0xa"),uc("0x53")]},children:[this[uc("0x10")],{tag:uc("0x11"),attributes:{class:[uc("0x22"),uc("0x24")]},children:e}]}]};return this[uc("0xb")]&&this[uc("0x48")]&&n[uc("0x38")][uc("0x1c")](this.commentsListView,this[uc("0x48")]),n}[uc("0x4e")](){super[uc("0x4e")](),this[uc("0x51")]=this[uc("0x44")][uc("0x3")](uc("0x4d")),this._descriptionElement[uc("0x16")]=this.description,this.on(uc("0x4"),((t,e,n)=>{this[uc("0x51")].innerHTML=n}))}[uc("0x35")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x28")]);return i[uc("0x18")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i.extendTemplate({attributes:{class:n}}),i.on("execute",(()=>{this[uc("0x2")](o,this._model.id)})),i}[uc("0x1b")](){return uc("0x1e")===this._model.attributes["@external"][uc("0x50")]?Yo(this[uc("0x28")],uc("0x36")):Yo(this[uc("0x28")],"EXTERNAL_SUGGESTION")}[uc("0x37")](){return this[uc("0x27")][uc("0x3a")]?uc("0x1e")===this[uc("0x27")][uc("0xd")]["@external"].source?Yo(this.locale,uc("0x17"),this[uc("0x27")].creator[uc("0x20")]):Yo(this[uc("0x28")],uc("0x23"),this._model[uc("0x33")][uc("0x20")]):null}}function mc(t,e){let n="";return n+=t[uc("0x25")]("*")[uc("0x47")](((t,e)=>e%2!=0?uc("0x3c")+fc(t)+uc("0x21"):fc(t)))[uc("0x54")](""),e&&(n+=uc("0x2f")+e[uc("0x5")]+uc("0x46")+e[uc("0xc")]+uc("0x6")),n}function fc(t){const e=document[uc("0x1")]("span");return e[uc("0x26")]=t,e[uc("0x16")]}const hc=["value","editor","filter","_destroyController","reduce","_handleControllerBuffer","bind","head","acceptAllSuggestions","Annotations","_viewToController","trackChanges","listenTo","componentFactory","buttonView","focus","discardSelectedSuggestions","TrackChangesUI","suggestionUnloaded","CommentsRepository","Discard all suggestions","suggestionChanged","descriptionParts","createAnnotationView","delete","EditorAnnotations","activeAnnotations","_updateController","set","type","createCommentThreadController","comments.maxCommentsWhenCollapsed","view","destroy","map","clear","discardButton","execute","some","isEnabled","getSuggestion","mainView","isMultiRange","actionView","values","getMarkers","_descriptionFactory","commandName","_initializeController","_refreshActiveMarkers","SuggestionThreadView","commentThread","keys","_suggestionToController","registerAnnotation","getAllAdjacentSuggestions","change:activeAnnotations","push","TrackChangesEditing","button","Track changes","lowest","suggestionLoaded","unbind","source","editing","plugins","getDescriptions","separator","CommentView","define","get","isDirty","pluginName","isInContent","discardAllSuggestions","addSourceCollector","switchbutton","_annotationViews","_handleSuggestionControllerDelayed","comments.editorConfig","length","getRanges","toMany","has","add","config","comments.maxThreadTotalWeight","suggestion-","isOn","acceptButton","CommentsUI","trackChanges.disableComments","commands","Accept all suggestions","innerView","arrowView","previous","change:previous","stopListening","activeMarkers","Discard all selected suggestions","remove","locale","Accept all selected suggestions","model"];var pc,bc;pc=hc,bc=194,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,"CommentsRepository",Ec("0x1b"),Ec("0x2b")]}static get[Ec("0x5b")](){return Ec("0x23")}constructor(t){super(t),this[Ec("0x47")]=new Map,this[Ec("0x1c")]=new Map,this[Ec("0x60")]=new Map,this._handleControllerBuffer=new Map;const e=this[Ec("0x13")][Ec("0x68")];e[Ec("0x58")]("trackChanges.SuggestionThreadView",gc),e[Ec("0x58")](Ec("0x4"),!1),this._disableComments=e[Ec("0x59")](Ec("0x4"))}[Ec("0x61")](t,e){0===this[Ec("0x17")].size&&setTimeout((()=>{for(const[t,e]of this[Ec("0x17")]){const n=this[Ec("0x47")].has(t);n||e?n&&e&&this[Ec("0x15")](t):this[Ec("0x42")](t)}this[Ec("0x13")][Ec("0x54")][Ec("0x59")](Ec("0x2b")).refreshSelectedViews(),this[Ec("0x43")](),this[Ec("0x17")][Ec("0x35")]()}),10),this._handleControllerBuffer[Ec("0x2e")](t,e)}init(){const t=this[Ec("0x13")],e=t[Ec("0x54")][Ec("0x59")](Ec("0x4c")),n=t[Ec("0x54")].get(Ec("0x1b")),o=t.plugins[Ec("0x59")](Ec("0x2b")),s=t[Ec("0x54")][Ec("0x59")]("CommentsRepository");t.ui[Ec("0x1f")][Ec("0x67")](Ec("0x1d"),(t=>this._createUIButton(t))),o[Ec("0x5e")]((()=>{const t=[];for(const[e,n]of Array.from(this._suggestionToController)){const o=e[Ec("0x49")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x3c")]){s[Ec("0x4b")](...t[Ec("0x64")]());continue}const e=t.getFirstRange();if(s[Ec("0x63")]>0){const t=s[0].getJoined(e);if(t){s[0]=t;continue}}s.push(e)}t[Ec("0x4b")]([n[Ec("0x32")],s])}return t})),this[Ec("0x1e")](e,Ec("0x50"),((t,e)=>{this.listenTo(e,Ec("0xa"),((t,n,o,s)=>{e.isInContent&&(null==o?(this[Ec("0x2d")](s.head),this[Ec("0x61")](e,!1)):(this[Ec("0x2d")](o[Ec("0x19")]),this[Ec("0x61")](e,!0)))})),null===e[Ec("0x9")]?this._handleSuggestionControllerDelayed(e,!1):this[Ec("0x2d")](e[Ec("0x19")])})),this[Ec("0x1e")](e,Ec("0x24"),((t,e,n)=>{this[Ec("0xb")](e,Ec("0xa")),this[Ec("0x17")][Ec("0x2a")](e);const o=n?n.head:e,s=this[Ec("0x47")][Ec("0x59")](o);null!==n&&this._updateController(o),null===n&&s&&this[Ec("0x15")](e)})),this[Ec("0x1e")](e,Ec("0x27"),((t,e)=>{this._updateController(e)})),this[Ec("0x1e")](n,Ec("0x4a"),(()=>{this._refreshActiveMarkers()})),this[Ec("0x1e")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[Ec("0x3a")](n);this[Ec("0x47")][Ec("0x59")](s)[Ec("0x32")][Ec("0x21")]()}),{priority:Ec("0x4f")})}[Ec("0x43")](){const t=this[Ec("0x13")][Ec("0x54")][Ec("0x59")](Ec("0x1b")),e=this.editor.plugins[Ec("0x59")](Ec("0x4c")),n=Array.from(t[Ec("0x2c")],(t=>t[Ec("0x7")])).filter((t=>this[Ec("0x1c")][Ec("0x66")](t))),o=[];for(const t of n){const e=this[Ec("0x1c")].get(t)[Ec("0x11")][Ec("0x49")]();o[Ec("0x4b")](...e[Ec("0x16")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Ec("0xc")]=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x13")][Ec("0x5")][Ec("0x59")]("trackChanges"),r=Yo(t,Ec("0x4e"));n[Ec("0x20")][Ec("0x2e")]({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("0x20")][Ec("0x18")](Ec("0x1")).to(o,Ec("0x12")),n[Ec("0x20")].on(Ec("0x37"),(()=>{o[Ec("0x37")](),this[Ec("0x13")][Ec("0x53")].view[Ec("0x21")]()}));const i=new e.Collection,x=[{type:Ec("0x5f"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x6")),commandName:Ec("0x1a")}},{type:Ec("0x4d"),model:{withText:!0,label:Yo(t,Ec("0x10")),commandName:"acceptSelectedSuggestions"}},{type:Ec("0x4d"),model:{withText:!0,label:Yo(t,Ec("0x26")),commandName:Ec("0x5d")}},{type:Ec("0x4d"),model:{withText:!0,label:Yo(t,Ec("0xd")),commandName:Ec("0x22")}}];for(const t of x){let e={type:Ec("0x56")};if(t[Ec("0x11")]){const n=new s.Model(t.model),o=this[Ec("0x13")][Ec("0x5")][Ec("0x59")](n[Ec("0x41")]);n.bind(Ec("0x1"),Ec("0x39")).to(o,Ec("0x12"),Ec("0x39")),e={type:t[Ec("0x2f")],model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x14")]((t=>null!=t.model))[Ec("0x34")]((t=>this[Ec("0x13")].commands.get(t.model[Ec("0x41")]))),c=n[Ec("0x20")];return c[Ec("0x3d")][Ec("0x51")]("isEnabled"),c[Ec("0x8")][Ec("0x51")]("isEnabled"),c[Ec("0x3d")].bind(Ec("0x39")).to(o,Ec("0x39")),c[Ec("0x8")][Ec("0x18")](Ec("0x39"))[Ec("0x65")](a,Ec("0x39"),((...t)=>t[Ec("0x38")]((t=>t)))),n.on(Ec("0x37"),(t=>{this[Ec("0x13")][Ec("0x37")](t[Ec("0x52")][Ec("0x41")]),this[Ec("0x13")][Ec("0x53")][Ec("0x32")].focus()})),n}[Ec("0x42")](t){const e=this[Ec("0x13")],n=e[Ec("0x68")],o=e[Ec("0x54")].get("Annotations"),s=e[Ec("0x54")].get(Ec("0x25")),i=e[Ec("0x54")][Ec("0x59")]("EditorAnnotations"),x=e[Ec("0x54")].get(r.Users).me,a=n[Ec("0x59")](Ec("0x1d"))[Ec("0x44")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Ec("0x59")](Ec("0x3"));let d,u;this[Ec("0x60")][Ec("0x66")](t.id)?(u=this[Ec("0x60")][Ec("0x59")](t.id),d=u[Ec("0x3b")]):(d=new a(e.locale,t,x,{disableComments:this._disableComments,editorConfig:n.get(Ec("0x62")),maxCommentsWhenCollapsed:n[Ec("0x59")](Ec("0x31")),maxThreadTotalWeight:n[Ec("0x59")](Ec("0x69")),maxCommentCharsWhenCollapsed:n[Ec("0x59")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x59")](Ec("0xf"))),CommentView:n[Ec("0x59")]("comments")[Ec("0x57")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x2")].on(Ec("0x37"),(()=>{e.editing[Ec("0x32")][Ec("0x21")]()})),d[Ec("0x36")].on("execute",(()=>{e[Ec("0x53")][Ec("0x32")].focus()})),u=o[Ec("0x29")](this[Ec("0x13")][Ec("0xf")],d),u[Ec("0x18")](Ec("0x5a")).to(d,Ec("0x5a")),u[Ec("0x18")](Ec("0x63")).to(d),u[Ec("0x18")](Ec("0x2f")).to(d,Ec("0x2f"),(t=>Ec("0x0")+t)),this[Ec("0x60")].set(t.id,u));const g=s[Ec("0x30")](t[Ec("0x45")],d),m=new oc(e,t,d,g),f=t[Ec("0x49")]().filter((t=>t[Ec("0x5c")]));d[Ec("0x28")]=e[Ec("0x54")].get(Ec("0x4c"))[Ec("0x40")][Ec("0x55")](f),this[Ec("0x47")][Ec("0x2e")](t,m),this[Ec("0x1c")][Ec("0x2e")](d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t[Ec("0x49")]()[Ec("0x14")]((t=>t.isInContent));for(const t of o)n.push(...t[Ec("0x3f")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Ec("0x0")+m[Ec("0x32")][Ec("0x2f")]});o[Ec("0x67")](h),i[Ec("0x48")](h)}[Ec("0x15")](t){const e=this[Ec("0x13")].plugins[Ec("0x59")](Ec("0x1b")),n=this[Ec("0x47")][Ec("0x59")](t),o=n[Ec("0x32")],s=e.getByInnerView(o);s&&e[Ec("0xe")](s),this._suggestionToController[Ec("0x2a")](t),this[Ec("0x1c")][Ec("0x2a")](o),n[Ec("0x33")]()}[Ec("0x2d")](t){if(!t.isInContent||!this[Ec("0x47")][Ec("0x66")](t))return;const e=this[Ec("0x13")].plugins.get("TrackChangesEditing"),n=this._suggestionToController[Ec("0x59")](t),o=t.getAllAdjacentSuggestions();n[Ec("0x32")][Ec("0x28")]=e[Ec("0x40")][Ec("0x55")](o)}[Ec("0x33")](){for(const t of this[Ec("0x47")][Ec("0x46")]())this._destroyController(t);for(const t of this[Ec("0x60")][Ec("0x3e")]())t[Ec("0x3b")].destroy();super[Ec("0x33")]()}}var Tc,Cc,yc=["Comments","editor","plugins","adapter","addSuggestionData","addSuggestion","getSuggestion","getSuggestions","requires","pluginName","get","TrackChanges"];Tc=yc,Cc=489,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("0xb")](){return[Wa,_c,kc("0x3")]}static get[kc("0x0")](){return kc("0x2")}set[kc("0x6")](t){this.editor[kc("0x5")][kc("0x1")](Wa)[kc("0x6")]=t}get adapter(){return this[kc("0x4")][kc("0x5")][kc("0x1")](Wa)[kc("0x6")]}[kc("0x8")](t){return this.editor[kc("0x5")][kc("0x1")](Wa)[kc("0x7")](t)}[kc("0xa")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x4")].plugins.get(Wa).getSuggestions({skipNotAttached:t,toJSON:e})}[kc("0x9")](t){return this[kc("0x4")].plugins[kc("0x1")](Wa)[kc("0x9")](t)}}const vc=["track-changes-data-invalid-editor-creator","config","Pagination","reduce","get","Users","pluginName","plugins","appendChild","document","trackChangesData","set","rootsAttributes","execute","_adapter","getRootsAttributes","getUser","model","name","getFullData","getRootNames","editor","editorCreator","push","users","TrackChangesDataGetter","destroy","TrackChangesEditing","addSuggestionData","getDataWithAcceptedSuggestions","getSuggestions","data","create","getDataWithDiscardedSuggestions","acceptAllSuggestions","createElement","init","define"];var Rc,Sc;Rc=vc,Sc=446,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0xc")];class Nc extends t.Plugin{static get requires(){return[Wa]}static get[Ic("0x10")](){return"TrackChangesData"}[Ic("0x8")](){const t=this[Ic("0x1f")];if(t[Ic("0xb")][Ic("0x9")]("trackChangesData.editorCreator",(e=>{const n=t.model[Ic("0x13")][Ic("0x1e")]()[Ic("0xd")](((t,e)=>(t[e]="",t)),{});return t.constructor[Ic("0x4")](n,e)})),"function"!=typeof t[Ic("0xb")].get(Ic("0x14")).editorCreator)throw new e.CKEditorError(Ic("0xa"))}[Ic("0x1")](t){return Oc(this[Ic("0x1f")],!0,t)}[Ic("0x5")](t){return Oc(this[Ic("0x1f")],!1,t)}}class Mc extends t.Plugin{static get[Ic("0x10")](){return Ic("0x23")}constructor(t){super(t),this.result="end"}[Ic("0x8")](){this[Ic("0x1f")][Ic("0x11")].get("CommentsRepository")[Ic("0x18")]={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("0x1f")][Ic("0x11")][Ic("0xe")](Ic("0x25"))[Ic("0x18")]=null}}function wc(t){return void 0!==t.getRootsAttributes}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0x11")][Ic("0x21")](Wa,Mc),o[Ic("0x16")]=wc(t)?t[Ic("0x19")]():void 0;const s=document.createDocumentFragment(),i=t.config[Ic("0xe")](Ic("0x14"))[Ic("0x20")],x=await i(o,(()=>function(t){const e=document[Ic("0x7")]("div");return t[Ic("0x12")](e),e}(s)));!function(t,e){const n=t[Ic("0x1b")].document[Ic("0x1e")]()[Ic("0xd")](((e,n)=>(e[n]=t[Ic("0x3")][Ic("0xe")]({rootName:n}),e)),{}),o=t.plugins[Ic("0xe")](Ic("0xf"))[Ic("0x22")].map((t=>({id:t.id,name:t[Ic("0x1c")]}))),s=t[Ic("0x11")][Ic("0xe")](Ic("0x25"))[Ic("0x2")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x11")][Ic("0xe")](Ic("0xf")),i=e[Ic("0x11")][Ic("0xe")](Ic("0x25"));for(const t of o)r[Ic("0x1a")](t.id)||r.addUser(t);r.me||r.useAnonymousUser();for(const t of s)i[Ic("0x0")](t);e[Ic("0x3")][Ic("0x15")](n)}(t,x),x[Ic("0x17")](e?Ic("0x6"):"discardAllSuggestions");const a=wc(x)?x[Ic("0x1d")](n):x.data.get(n);return await x[Ic("0x24")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>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=["editor","refresh","has","commands","forceDisabled","_isEnabledBasedOnSelection","_enabledCommands","execute","value","TrackChangesCommand","affectsData","_enableCommands","_disableUnsupportedCommands"];var c,l;c=a,l=341,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0x3")]=e,this[d("0x5")]=!1,this[d("0xb")](),this[d("0x2")]=!1}[d("0xb")](){this.isEnabled=!0}[d("0x4")](){this[d("0x5")]=!this[d("0x5")],this[d("0x5")]?this[d("0x9")]():this[d("0x8")]()}_disableUnsupportedCommands(){for(const t of this[d("0xa")][d("0x0")][d("0x0")]())t[d("0x7")]&&!this._enabledCommands[d("0xc")](t)&&t[d("0x1")](d("0x6"))}[d("0x8")](){for(const t of this[d("0xa")][d("0x0")][d("0x0")]())t[d("0x7")]&&!this[d("0x3")][d("0xc")](t)&&t.clearForceDisabled("TrackChangesCommand")}}const g=["canEditAt","track-changes-accept-suggestion-not-found","TrackChangesEditing","_suggestions","editor","refresh","isEnabled","plugins","model"];var m,f;m=g,f=306,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("0x3")]=e,this[h("0x5")](),this._isEnabledBasedOnSelection=!1}[h("0x5")](){this[h("0x6")]=!0}execute(t){const n=this[h("0x3")].get(t);if(!n)throw new e.CKEditorError(h("0x1"),this);const o=n.getRanges();this[h("0x4")][h("0x8")][h("0x0")](o)&&this[h("0x4")][h("0x7")].get(h("0x2")).acceptSuggestion(n)}}const b=["_suggestions","TrackChangesEditing","isEnabled","plugins","discardSuggestion","editor","track-changes-discard-suggestion-not-found","get","execute","_isEnabledBasedOnSelection","refresh","getRanges"];var E,_;E=b,_=312,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("0x0")]=e,this[T("0xa")](),this[T("0x9")]=!1}refresh(){this[T("0x2")]=!0}[T("0x8")](t){const n=this[T("0x0")][T("0x7")](t);if(!n)throw new e.CKEditorError(T("0x6"),this);const o=n[T("0xb")]();this[T("0x5")].model.canEditAt(o)&&this[T("0x5")][T("0x3")][T("0x7")](T("0x1"))[T("0x4")](n)}}const y=["color","length","isMultiRange","from","push","end","createPositionAfter","join","sort","getRange","isTouching","next","change","replace","isCollapsed","deletion","splice","type","start","execute","content","createPositionAt","value","getRanges","map","isInContent","isArray","createPositionBefore","isObject","createRange","add"];var k,A;k=y,A=453,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x14")](((t,e)=>v("0x1b")==t[v("0x1d")]&&"deletion"!=e.type?-1:v("0x1b")!=t[v("0x1d")]&&v("0x1b")==e.type?1:0))}function S(t,e){let n,o=0;const s=[],r=e.schema;for(;o<t[v("0xd")];){const i=t[o],x=t[o+1];n||(n=e[v("0x8")](i)),I(e,i,x)||(s[v("0x10")](e[v("0xa")](n,r[v("0x9")](i)?e[v("0x12")](i):e[v("0x2")](i,v("0x11")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x12")](e),s=t[v("0x8")](n);return o[v("0x16")](s)}function L(t,e,n){for(;n[v("0xd")];){const o=n[v("0x1c")](0,100);t[v("0x18")]((()=>{for(const t of o)t[v("0x6")]&&e[v("0x0")](t.id)}))}}const N=["_command","from","isInContent","isEnabled","editor","model","canEditAt","getRanges","values","some","_isEnabledBasedOnSelection","_suggestions","refresh"];var M,w;M=N,w=105,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("0xc")]=e,this[O("0xa")]=n,this[O("0xb")](),this[O("0x9")]=!1}[O("0xb")](){const t=Array[O("0x0")](this[O("0xa")][O("0x7")]())[O("0x8")]((t=>t[O("0x1")]));this[O("0x2")]=this._command[O("0x2")]&&t}execute(){const t=R(Array[O("0x0")](this._suggestions[O("0x7")]()));for(const e of t){const t=e[O("0x6")]();if(!this.editor[O("0x4")][O("0x5")](t))return}L(this[O("0x3")].model,this[O("0xc")],t)}}const P=["_selectedSuggestions","_suggestions","model","isEnabled","getRanges","execute","editor","from","_command","values","canEditAt","selection","refresh"];var D,B;D=P,B=369,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("0x3")]=e,this[j("0x9")]=n,this[j("0x8")]=new Set,this[j("0x7")](),this._isEnabledBasedOnSelection=!1}[j("0x7")](){const t=this[j("0x1")][j("0xa")].document[j("0x6")],e=Array[j("0x2")](this[j("0x9")][j("0x4")]());this[j("0x8")]=function(t,e){const n=Array[v("0xf")](t[v("0x4")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s.getMarkers()){const r=n[v("0x15")]();(e.isIntersecting(r)||t[v("0x1a")]&&!s[v("0xe")]&&s[v("0x17")]&&r.end[v("0x16")](e[v("0x1e")]))&&o[v("0xb")](s)}return o}(t,e),this[j("0xb")]=this._command[j("0xb")]&&!!this[j("0x8")].size}[j("0x0")](){const t=R(Array[j("0x2")](this[j("0x8")]));for(const e of t){const t=e[j("0xc")]();if(!this[j("0x1")][j("0xa")][j("0x5")](t))return}L(this.editor.model,this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var 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 $=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 X(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])}}X.prototype.clear=G,X.prototype.delete=V,X.prototype.get=K,X.prototype.has=q,X.prototype.set=$;const J=X;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const $t=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 Xt(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])}}Xt.prototype.clear=Ht,Xt.prototype.delete=Vt,Xt.prototype.get=Kt,Xt.prototype.has=qt,Xt.prototype.set=$t;const Jt=Xt;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,$e=qe&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=$e&&$e.exports===qe?ot.Buffer:void 0,Je=Xe?Xe.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var $n=Se&&Se.isSet;const Xn=$n?ke($n):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),Xn(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},$o=["previous","markers","end","removeAttribute","_model","getContainedElement","onAccept","_onAccept","change","onDiscard","addMarker","authoredAt","hasComments","addRange","delete","type","getFirstRange","_saved","onAttributesChange","push","createdAt","set","map","decorate","start","from","commentThread","subType","_markerNames","getMarkerNames","_onAttributesChange","getMultiRangeId","isInContent","data","head","addMarkerName","nodeBefore","author","attributes","discard","_onDiscard","substr","split","next","removeMarkers","getRange","getRanges","isExternal","getAllAdjacentSuggestions","isMultiRange","removeMarker","creator","accept","add","getMarkers","length","getItems","getFirstMarker","nodeAfter","isIntersecting","setAttribute","toJSON","reduce","get"];var Xo,Jo;Xo=$o,Jo=497,function(t){for(;--t;)Xo.push(Xo.shift())}(++Jo);const Qo=function(t,e){return $o[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x1e")]=e.type,this[Qo("0x2a")]=e[Qo("0x2a")]||null,this[Qo("0x34")]=e[Qo("0x34")],this[Qo("0x2")]=e[Qo("0x2")]||e.author,this[Qo("0x3e")]=Boolean(e[Qo("0x35")]&&e[Qo("0x35")]["@external"]),this.data=null,this[Qo("0x13")]=t,this[Qo("0x16")]=e[Qo("0x15")],this[Qo("0x37")]=e[Qo("0x18")],this[Qo("0x2d")]=e[Qo("0x21")],this[Qo("0x2b")]=new Set,this[Qo("0x23")]=null,this[Qo("0x24")](Qo("0x1a"),null),this[Qo("0x24")](Qo("0x35"),e.attributes||{}),this[Qo("0x24")]("previous",null),this.set(Qo("0x3a"),null),this[Qo("0x24")](Qo("0x29"),null),this.set(Qo("0x20"),!1),this[Qo("0x26")](Qo("0x3")),this[Qo("0x26")]("discard")}get[Qo("0x31")](){let t=this;for(;t.previous;)t=t[Qo("0xf")];return t}get[Qo("0x1b")](){return!!this[Qo("0x29")]&&this[Qo("0x29")][Qo("0x6")]>0}get[Qo("0x0")](){return 0!=this._markerNames.size&&6==Array.from(this[Qo("0x2b")])[0][Qo("0x39")](":")[Qo("0x6")]}get[Qo("0x2f")](){return null!==this[Qo("0x8")]()}addMarkerName(t){this[Qo("0x2b")][Qo("0x4")](t)}[Qo("0x2c")](){return Array[Qo("0x28")](this[Qo("0x2b")])}getMarkers(){return this[Qo("0x2c")]()[Qo("0x25")]((t=>this[Qo("0x13")][Qo("0x10")][Qo("0xe")](t))).filter((t=>t))}[Qo("0x8")](){return this[Qo("0x5")]()[0]||null}[Qo("0x3b")](){this[Qo("0x13")][Qo("0x17")]((t=>{for(const e of this[Qo("0x5")]())t.removeMarker(e)})),this[Qo("0x2b")].clear()}[Qo("0x1")](t){this[Qo("0x13")][Qo("0x17")]((e=>{e[Qo("0x1")](t)})),this[Qo("0x2b")][Qo("0x1d")](t)}[Qo("0x1c")](t){const e="suggestion:"+this[Qo("0x1e")]+":"+this[Qo("0x2a")]+":"+this.id+":"+this[Qo("0x2")].id+":"+Zo[Qo("0x2e")]();this[Qo("0x32")](e),this._model[Qo("0x17")]((n=>{n[Qo("0x19")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x3d")]())if(e[Qo("0xa")](t))return!0;return!1}[Qo("0x3d")](){return this.getMarkers()[Qo("0x25")]((t=>t[Qo("0x3c")]()))}[Qo("0x7")](){return this[Qo("0x3d")]()[Qo("0xd")](((t,e)=>[...t,...e[Qo("0x7")]()]),[])}[Qo("0x1f")](){var t;return(null===(t=this[Qo("0x8")]())||void 0===t?void 0:t[Qo("0x3c")]())||null}[Qo("0x14")](){const t=this.getRanges();if(1!=t[Qo("0x6")])return null;const e=t[0],n=e[Qo("0x27")][Qo("0x9")],o=e[Qo("0x11")][Qo("0x33")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x3")](){this[Qo("0x16")](this[Qo("0x3d")](),this.data,this.attributes),this.removeMarkers()}[Qo("0x36")](){this[Qo("0x37")](this[Qo("0x3d")](),this[Qo("0x30")],this[Qo("0x35")]),this[Qo("0x3b")]()}[Qo("0x3f")](){const t=[];let e=this[Qo("0x31")];for(;e;)t[Qo("0x22")](e),e=e[Qo("0x3a")];return t}[Qo("0xb")](t,e){const n=eo(this[Qo("0x35")]);_o(n,t,e),Go(n,this[Qo("0x35")])||(this.attributes=n,this._onAttributesChange(n))}[Qo("0x12")](t){const e=eo(this[Qo("0x35")]);qo(e,t),Go(e,this[Qo("0x35")])||(this[Qo("0x35")]=e,this._onAttributesChange(this[Qo("0x35")]))}[Qo("0xc")](){return{id:this.id,type:this[Qo("0x2a")]?this[Qo("0x1e")]+":"+this[Qo("0x2a")]:this[Qo("0x1e")],authorId:this[Qo("0x2")].id,createdAt:this[Qo("0x23")],hasComments:this[Qo("0x1b")],data:this[Qo("0x30")],attributes:this.attributes}}static[Qo("0x2e")](){return(0,e.uid)()[Qo("0x38")](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=["*Remove:* %0","*Insert:* %0","getItemLabel","skip","_itemLabels","set","removeObject","nextSibling","name","checkChild","indexOf","normal","elementStart","_customCallbacks","_itemLabelsCallbacks","registerDescriptionCallback","insertion","text","addEmptyContainer","isInContent","push","*Split:* %0","removeEmptyContainer","getWalker","length","end","softBreak","isObject","$1 $2","get","function","remove","getFirstRange","Container","getDescriptions","registerElementLabel","add","match","pop","matchingCallback","_schema","elementEnd","data","$textProxy","deletion","_addDescriptionItems","_resolveDescriptionItems","addObject","start","previousSibling","type","isEmpty","isEqual","quantity","EmptyContainer","replace","removeContainer","Object","element","addContainer","item","ELEMENT_SPACE"];var es,ns;es=ts,ns=302,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("0x15")]=[],this[os("0xc")]=new Map,this[os("0x16")]=[],this[os("0x30")]=t,this._locale=e}[os("0x2a")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[os("0x1b")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x3a")in n&&e.push(n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x28")]()[os("0x21")][os("0x3c")](s[os("0x28")]()[os("0x38")])){const t=e[e[os("0x20")]-1],n="insertion"==o.type?"add":"remove";t&&os("0x19")==t[os("0x3a")]&&(t[n]+="\n")}}}return this[os("0x36")](e)}[os("0x17")](t){this[os("0x15")].push(t)}[os("0x2b")](t,n,o=e.priorities[os("0x13")]){os("0x26")==typeof t?(0,e.insertToPriorityArray)(this[os("0x16")],{matchingCallback:t,label:n,priority:o}):this[os("0xc")][os("0xd")](t,n)}[os("0xa")](t,e=1){let n;for(const e of this[os("0x16")])if(e[os("0x2f")](t)){n=e.label;break}return n||(n=this[os("0xc")][os("0x25")](t[os("0x10")])),n?n(e):1!==e?e+" "+t[os("0x10")]+"s":""+t[os("0x10")]}[os("0x35")](t,e){const n=e[os("0x28")]()[os("0x1f")](),o=os("0x18")==e[os("0x3a")]?os("0x2c"):"remove";for(const e of n){const s=e[os("0x6")],r=t[t.length-1];if(s.is(os("0x33")))r&&r[os("0x3a")][os("0x12")](os("0x29"))>-1&&t[os("0x2e")](),r&&os("0x19")==r[os("0x3a")]?r[o]+=s[os("0x32")]:t.push({type:os("0x19"),add:os("0x2c")==o?s.data:"",remove:os("0x27")==o?s[os("0x32")]:""});else if(this[os("0x30")][os("0x23")](s)){const i=s;if(r&&r[os("0x3a")][os("0x12")](os("0x29"))>-1&&t[os("0x2e")](),os("0x31")==e[os("0x3a")])continue;r&&r.type==o+os("0x3")&&r[os("0x4")].name==i[os("0x10")]?r[os("0x3d")]++:t[os("0x1c")]({type:o+os("0x3"),element:i,quantity:1}),n[os("0xb")]((t=>!(os("0x31")==t[os("0x3a")]&&t[os("0x6")]==s)))}else if(this[os("0x30")][os("0x11")](s,"$text")||s.is("element",os("0x22"))){const n=s;if(os("0x2c")==o&&os("0x14")==e[os("0x3a")]||"remove"==o&&"elementEnd"==e[os("0x3a")])continue;if(r&&-1==r[os("0x3a")][os("0x12")](os("0x29"))){os("0x19")==r[os("0x3a")]&&(r[o]+="\n");continue}let i;if(i=os("0x2c")==o?n[os("0xf")]&&!this[os("0x30")][os("0x23")](n[os("0xf")])?n[os("0xf")]:null:n[os("0x39")]&&!this[os("0x30")][os("0x23")](n[os("0x39")])?n[os("0x39")]:null,n[os("0x3b")]||i&&i[os("0x3b")]){const e=i&&i[os("0x3b")]?i:n;r&&r[os("0x3a")]==o+os("0x0")&&r[os("0x4")][os("0x10")]==e.name?r.quantity++:t[os("0x1c")]({type:o+os("0x0"),element:e,quantity:1})}else t[os("0x1c")]({type:o+os("0x29"),element:n})}}}_resolveDescriptionItems(t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x3a")]){case os("0x19"):if(o[os("0x2c")]=o[os("0x2c")].replace(/(\S)\u000A+(\S)/g,"$1 $2")[os("0x1")](/\u000A/g,""),o[os("0x27")]=o[os("0x27")].replace(/(\S)\u000A+(\S)/g,os("0x24"))[os("0x1")](/\u000A/g,""),""!=o.add&&""!=o[os("0x27")]){n.push({type:os("0x1"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x27")]+'"','"'+o[os("0x2c")]+'"'])});continue}if(null!=o.add[os("0x2d")](/^ +$/)){n[os("0x1c")]({type:"insertion",content:Yo(e,"*Insert:* %0",Yo(e,os("0x7"),o[os("0x2c")][os("0x20")]))});continue}if(null!=o[os("0x27")].match(/^ +$/)){n[os("0x1c")]({type:os("0x34"),content:Yo(e,os("0x8"),Yo(e,"ELEMENT_SPACE",o.remove.length))});continue}if(""!=o[os("0x2c")]){n[os("0x1c")]({type:"insertion",content:Yo(e,os("0x9"),'"'+o.add+'"')});continue}n.push({type:"deletion",content:Yo(e,"*Remove:* %0",'"'+o[os("0x27")]+'"')});continue;case os("0x1a"):case os("0x37"):n[os("0x1c")]({type:"insertion",content:Yo(e,os("0x9"),this[os("0xa")](o[os("0x4")],o.quantity))});continue;case os("0x1e"):case os("0xe"):n[os("0x1c")]({type:os("0x34"),content:Yo(e,"*Remove:* %0",this.getItemLabel(o.element,o[os("0x3d")]))});continue;case os("0x5"):n[os("0x1c")]({type:os("0x18"),content:Yo(e,os("0x1d"),this[os("0xa")](o[os("0x4")],o[os("0x3d")]))});continue;case os("0x2"):n[os("0x1c")]({type:os("0x34"),content:Yo(e,"*Merge:* %0",this[os("0xa")](o[os("0x4")],o[os("0x3d")]))});continue}n[os("0x1c")](o)}return n}}const rs=["getSelectedBlocks","contentLanguageDirection","AlignmentEditing","left","change","has","document","FORMAT_ALIGN_TO_CENTER","markBlockFormat","ltr","model","locale","schema","commandName","alignment","FORMAT_ALIGN_TO_LEFT","center","checkAttribute","right","getAttribute","commandParams","enableCommand","get","editor","FORMAT_JUSTIFY_TEXT","value","*Format:* %0","format","_descriptionFactory"];var is,xs;is=rs,xs=110,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this[as("0x0")],e=t[as("0x11")];if(!t.plugins[as("0xb")](as("0x8")))return;const n=t.plugins[as("0x1c")]("TrackChangesEditing");n[as("0x1b")](as("0x14"),((e,o={})=>{let s=o[as("0x2")];o[as("0x2")]||(s=as("0xf")===t[as("0x11")][as("0x7")]?as("0x9"):as("0x18"));const r=Array.from(this.editor[as("0x10")][as("0xc")].selection[as("0x6")]()).filter((t=>function(t,e,n){const o=t[as("0x19")](as("0x14"))||null;return e[as("0x17")](t,"alignment")&&n!=o}(t,this.editor[as("0x10")][as("0x12")],s)));t[as("0x10")][as("0xa")]((()=>{for(const t of r)n[as("0xe")](t,{commandName:as("0x14"),commandParams:[{value:s}]})}))})),n[as("0x5")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0x14")==n[as("0x13")]){const t=n[as("0x1a")][0][as("0x2")];return{type:as("0x4"),content:Yo(e,as("0x3"),function(t){switch(t){case"left":return Yo(e,as("0x15"));case as("0x18"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case as("0x16"):return Yo(e,as("0xd"));case"justify":return Yo(e,as("0x1"))}}(t))}}}))}}const ls=["isBlock","elementEnd","listItem","isContent","plugins","insert","includes","markerName","addClass","span","createRangeOn","model","toViewPosition","markerRange","get","name","nextSibling","addHighlight","TrackChangesEditing","schema","mapper","consumable","bindElementToMarker","previousPosition","hasAttribute","isAtEnd","getCustomProperty","item","type","ck-suggestion-marker-","writer","parent","getItems","push"];var ds,us;ds=ls,us=500,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x8")]())s[gs("0x0")](t)&&o.push(n[gs("0x14")](s));return o}function fs(t){const e=[];if(t.is("element",gs("0xc"))){let n=t[gs("0x1a")];for(;n&&n.is("element",gs("0xc"))&&n.getAttribute("listIndent")>0;)e[gs("0x9")](n),n=n[gs("0x1a")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0xe")][gs("0x18")](gs("0x1c"));return(s,r,i)=>{if(!i[gs("0x1f")].test(r[gs("0x17")],s[gs("0x19")]))return;const x=r.markerRange.getWalker(),a=r[gs("0x17")].start,c=t[gs("0x15")][gs("0x1d")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x3")];u=u||c[gs("0xd")](e);const n=i[gs("0x1e")].toViewElement(e);if(n&&n[gs("0x2")](gs("0x1b")))return;gs("0xb")==t[gs("0x4")]&&c[gs("0xa")](e)&&!c.isLimit(e)&&(e[gs("0x1a")]||a[gs("0x1")]?l&&l[gs("0x7")]==e||(l=e,m(t[gs("0x21")]),g=!0):d=d||t[gs("0x21")])}function m(t){const s=i[gs("0x6")].createUIElement(gs("0x13"),{class:gs("0x5")+e}),x=i.mapper[gs("0x16")](t);n&&o.activeMarkers[gs("0x10")](r[gs("0x11")])&&i[gs("0x6")][gs("0x12")]("ck-suggestion-marker--active",s),i[gs("0x6")][gs("0xf")](x,s),i[gs("0x1e")][gs("0x20")](s,r[gs("0x11")])}u||g||!d||m(d)}}const ps=["subscript","commandName","*Remove format:* %0","superscript","format","underline","getRanges","FORMAT_BOLD","code","document","plugins","commandParams","slice","afterInit","forceValue","editor","markInlineFormat","FORMAT_CODE","enableCommand","FORMAT_SUBSCRIPT","italic","SuperscriptEditing","isCollapsed","ItalicEditing","value","FORMAT_ITALIC","BoldEditing","strikethrough","bold","model","change","UnderlineEditing","get","toLowerCase","TrackChangesEditing","FORMAT_STRIKETHROUGH","has","_descriptionFactory","selection","SubscriptEditing","from"];var bs,Es;bs=ps,Es=469,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x8"),_s("0x5"),_s("0xd"),"CodeEditing","StrikethroughEditing",_s("0x15"),_s("0x3")];class Cs extends t.Plugin{[_s("0x24")](){const t=this[_s("0x26")],e=t[_s("0xb")],n=t[_s("0x21")][_s("0xe")](_s("0x10")),o=t.locale;for(const o of Ts){if(!t[_s("0x21")][_s("0x12")](o))continue;const s=o[_s("0x23")](0,-7)[_s("0xf")](),r=t.commands[_s("0xe")](s);n[_s("0x0")](s,((t,o={})=>{const i=e[_s("0x20")][_s("0x14")];if(i[_s("0x4")])return void t(o);const x=void 0!==o.forceValue?o[_s("0x25")]:!r[_s("0x6")];e[_s("0xc")]((()=>{const t=Array[_s("0x16")](i[_s("0x1d")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x27")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x13")].registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[_s("0x18")]===t)return s[_s("0x22")][0][_s("0x25")]?{type:_s("0x1b"),content:Yo(o,"*Format:* %0",e)}:{type:_s("0x1b"),content:Yo(o,_s("0x19"),e)}}))}s(_s("0xa"),Yo(o,_s("0x1e"))),s(_s("0x2"),Yo(o,_s("0x7"))),s(_s("0x1c"),Yo(o,"FORMAT_UNDERLINE")),s(_s("0x1f"),Yo(o,_s("0x28"))),s(_s("0x9"),Yo(o,_s("0x11"))),s(_s("0x17"),Yo(o,_s("0x1"))),s(_s("0x1a"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const ys=["registerDescriptionCallback","parent","schema","$root","commands","plugins","change","name","commandName","editor","*Remove format:* %0","has","enableCommand","get","getSelectedBlocks","afterInit","*Format:* %0","markBlockFormat","model","blockQuote","ELEMENT_BLOCK_QUOTE","checkChild","commandParams","format","forceValue","from","filter"];var ks,As;ks=ys,As=272,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0xd")](){const t=this.editor,e=t.locale;if(!t[vs("0x3")][vs("0x9")]("BlockQuoteEditing"))return;const n=t.plugins[vs("0xb")]("TrackChangesEditing"),o=this[vs("0x7")][vs("0x2")].get(vs("0x11"));n[vs("0xa")](vs("0x11"),((e,s={})=>{const r=this[vs("0x7")][vs("0x10")].document.selection,i=s&&void 0!==s[vs("0x16")]?s.forceValue:!o.value;let x=[];if(i){const e=Array.from(r.getSelectedBlocks()).filter((t=>Ss(t)||function(t,e){const n=e[vs("0x13")](t.parent,vs("0x11")),o=e.checkChild([vs("0x1"),vs("0x11")],t);return n&&o}(t,this[vs("0x7")][vs("0x10")][vs("0x0")])));x=S(e,t.model)}else{const e=Array[vs("0x17")](r[vs("0xc")]())[vs("0x18")]((t=>Ss(t)));x=S(e,t[vs("0x10")])}t[vs("0x10")][vs("0x4")]((()=>{for(const t of x)n[vs("0xf")](t,{commandName:vs("0x11"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0x19")]((t=>{const{data:n}=t;if(n&&vs("0x11")==n[vs("0x6")]){const t=Yo(e,vs("0x12"));return n[vs("0x14")][0][vs("0x16")]?{type:vs("0x15"),content:Yo(e,vs("0xe"),t)}:{type:vs("0x15"),content:Yo(e,vs("0x8"),t)}}}))}}function Ss(t){return"blockQuote"==t[vs("0x1a")][vs("0x5")]}const Is=["TrackChangesEditing","ckbox","plugins","commands","enableCommand"];var Ls,Ns;Ls=Is,Ns=225,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{afterInit(){const t=this.editor;t[Ms("0x3")].get(Ms("0x1"))&&t[Ms("0x2")].get(Ms("0x0"))[Ms("0x4")]("ckbox")}}const Os=["filter","*Format:* %0","value","format","selection","indentCodeBlock","_descriptionFactory","language","codeBlock","get","editor","forceValue","enableCommand","blockName","document","plugins","parent","registerElementLabel","registerDescriptionCallback","afterInit","formatBlock","commandParams","name","TrackChangesEditing","ELEMENT_CODE_BLOCK","commandName","commands","from","change","has","config","isLimit","model","locale","getSelectedBlocks"];var Fs,Ps;Fs=Os,Ps=194,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x0")](){const t=this[Ds("0x1a")];if(!t[Ds("0x1f")][Ds("0xa")]("CodeBlock"))return;const e=t[Ds("0x1f")][Ds("0x19")](Ds("0x4")),n=t[Ds("0xe")],o=t[Ds("0xb")].get("codeBlock").languages,s=t[Ds("0x7")].get("codeBlock");e[Ds("0x1c")](Ds("0x15")),e[Ds("0x1c")]("outdentCodeBlock"),e.enableCommand("codeBlock",((n,r={})=>{const i=t[Ds("0xd")],x=t[Ds("0xd")][Ds("0x1e")][Ds("0x14")],a=r&&void 0!==r[Ds("0x1b")]?r[Ds("0x1b")]:!s[Ds("0x12")];let c;r[Ds("0x17")]||(r[Ds("0x17")]=o[0].language),c=a?Array[Ds("0x8")](x[Ds("0xf")]())[Ds("0x10")]((t=>{return js(t)||(e=t,n=i.schema,!e.is("rootElement")&&!n[Ds("0xc")](e)&&n.checkChild(e[Ds("0x20")],Ds("0x18")));var e,n})):Array.from(x[Ds("0xf")]()).filter((t=>js(t)));const l=S(c,i);i[Ds("0x9")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Ds("0x18"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x1d")})}))})),e._descriptionFactory[Ds("0x21")]("codeBlock",(t=>Yo(n,Ds("0x5"),t))),e[Ds("0x16")][Ds("0x22")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x1")==s&&r&&Ds("0x18")==r[Ds("0x6")]){const t=r.commandParams[0].language,s=e(o.find((e=>e[Ds("0x17")]===t)).label);return r[Ds("0x2")][0][Ds("0x1b")]?{type:"format",content:Yo(n,Ds("0x11"),Yo(n,Ds("0x5"),1)+" ("+s+")")}:{type:Ds("0x13"),content:Yo(n,"*Remove format:* %0",Yo(n,Ds("0x5"),1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x3")]}const Us=["TrackChangesEditing","afterInit","CommentsEditing","plugins","has","editor","get"];var Gs,Hs;Gs=Us,Hs=274,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x0")](){const t=this[zs("0x4")];t[zs("0x2")][zs("0x3")](zs("0x1"))&&t[zs("0x2")][zs("0x5")](zs("0x6")).enableCommand("addCommentThread")}}var Vs=n(181);const Ks=["get","unit","enableCommand","commands","model","delete","requires","deleteForward","downcastDispatcher","mapper","isCollapsed","lock","high","TrackChangesEditing","start","merge","detach","rootName","buffer","forward","bind","setSelection","plugins","removeMarker:suggestion:deletion","end","enqueueChange","markerName","writer","data","$graveyard","init","options","getFirstRange","createRange","uiElement","unbindElementFromMarkerName","editing","addMarker:suggestion:deletion"];var qs,$s;qs=Ks,$s=482,function(t){for(;--t;)qs.push(qs.shift())}(++$s);const Xs=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[Xs("0x12")](){return[Vs.Delete]}[Xs("0x4")](){const t=this.editor,e=t[Xs("0x22")][Xs("0xc")](Xs("0x19"));e[Xs("0xe")](Xs("0x11"));const n=t[Xs("0xf")][Xs("0xc")](Xs("0x13"));e.enableCommand(Xs("0x13"),((e,o={})=>{const s=t[Xs("0x10")].createSelection(t[Xs("0x10")].document.selection);s[Xs("0x16")]&&t[Xs("0x10")].modifySelection(s,{direction:Xs("0x1f"),unit:o[Xs("0xd")]});const r=s[Xs("0x6")](),x=i.LiveRange.fromRange(r);let a;e(o),a=Xs("0x3")==x.root[Xs("0x1d")]?t[Xs("0x10")].createRange(r[Xs("0x1a")]):t[Xs("0x10")][Xs("0x7")](x.start,x[Xs("0x24")]),x[Xs("0x1c")](),t[Xs("0x10")][Xs("0x25")](n.buffer.batch,(t=>{n[Xs("0x1e")][Xs("0x17")](),t[Xs("0x21")](t[Xs("0x7")](a[Xs("0x24")])),n[Xs("0x1e")].unlock()}))})),t[Xs("0xa")][Xs("0x14")].on(Xs("0xb"),hs(t,"merge"),{priority:"high"}),t[Xs("0x2")][Xs("0x14")].on(Xs("0xb"),((e,n,o)=>{o[Xs("0x5")].showSuggestionHighlights&&hs(t,Xs("0x1b"),{showActiveMarker:!1})[Xs("0x20")](this)(e,n,o)}),{priority:Xs("0x18")}),t[Xs("0xa")][Xs("0x14")].on(Xs("0x23"),((t,e,n)=>{const o=n[Xs("0x15")].markerNameToElements(e[Xs("0x0")]);if(o)for(const t of o)t.is(Xs("0x8"))&&(n.mapper[Xs("0x9")](t,e[Xs("0x0")]),n[Xs("0x1")].remove(t))}),{priority:"high"})}}const Qs=["next","refresh","editor","get","parent","getFirstRange","listType","fromRange","*Outdent:* %0","document","has","*Format:* insert into %0","enableCommand","ELEMENT_","ELEMENT_NUMBERED_LIST","deletion","formatBlock","documentList","_LIST","splitListItemBefore","value","end","isObject","plugins","afterInit","isFirstBlockOfListItem","add","*Change to:* %0","ELEMENT_LIST_ITEM","DocumentListUtils","listIndent","bulletedList","push","from","mergeListItemForward","markBlockFormat","expandListBlocksToCompleteList","*Merge:* %0","format","nextSibling","detach","map","locale","_suggestionFactory","createPositionAt","forceValue","selection","registerElementLabel","listItemId","nodeAfter","registerDescriptionCallback","hasAttribute","outdentList","registerCustomCallback","getAttribute","slice","start","length","_descriptionFactory","markMultiRangeBlockFormat","createRange","after","change","previousSibling","schema","getSelectedBlocks","model","commandParams","toUpperCase","setSelection","execute","*Indent:* %0","findIndex","commandName","commands","indentList","ELEMENT_BULLETED_LIST","numberedList","containsItem"];var Zs,Ys;Zs=Qs,Ys=469,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x1d")](){const t=this[tr("0x7")];if(!t[tr("0x1c")][tr("0xf")]("DocumentListEditing"))return;const e=t[tr("0x2f")],n=t[tr("0x1c")][tr("0x8")]("TrackChangesEditing"),o=t[tr("0x1c")][tr("0x8")](tr("0x22"));function s(e){return()=>{const s=t[tr("0x0")].get(e);let r=Array[tr("0x26")](t[tr("0x47")][tr("0xe")][tr("0x33")][tr("0x46")]());if(a(e)){r=o[tr("0x29")](r);const t=[];for(const e of r)o[tr("0x1e")](e)&&t.push(e);r=t}t[tr("0x47")][tr("0x43")]((()=>{n[tr("0x40")](r,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:tr("0xb")},[],tr("0x16"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x26")](t);const n=e[tr("0x4d")]((t=>!t[tr("0x38")](tr("0x35"))));return n>-1&&(e=e[tr("0x3c")](0,n)),e}(t.model[tr("0xe")][tr("0x33")][tr("0x46")]()),s=o[o[tr("0x3e")]-1],r=t[tr("0x47")][tr("0x45")][tr("0x1b")](s)?tr("0x42"):tr("0x1a"),i=t[tr("0x47")].createRange(t[tr("0x47")][tr("0x31")](o[0],"before"),t.model.createPositionAt(s,r));t.model[tr("0x43")]((()=>{n[tr("0x28")](i,{commandName:e,commandParams:[],formatGroupId:tr("0xb")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x2c")];for(;t&&t[tr("0x3b")](tr("0x23"))>n[tr("0x3b")](tr("0x23"));)e[tr("0x1f")](t),t=t[tr("0x2c")]}return Array[tr("0x26")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x47")][tr("0xe")][tr("0x33")][tr("0x46")]()[tr("0x5")]()[tr("0x19")],s=t[tr("0x47")].createPositionAt(o,"before"),r=t.model[tr("0x31")](o,0),i=t.model[tr("0x41")](s,r);t[tr("0x47")][tr("0x43")]((()=>{n[tr("0x28")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[tr("0x0")][tr("0x8")](tr("0x24"))[tr("0x19")],o=t[tr("0x0")].get(tr("0x3")).value;return tr("0x3")===e?n:o}n[tr("0x11")]("numberedList",s("numberedList")),n[tr("0x11")]("bulletedList",s(tr("0x24"))),n[tr("0x11")]("indentList",r(tr("0x1"))),n[tr("0x11")](tr("0x39"),r(tr("0x39"))),n[tr("0x11")]("splitListItemAfter",x("splitListItemAfter")),n[tr("0x11")](tr("0x18"),x(tr("0x18"))),n._descriptionFactory[tr("0x34")]((function(e){const n=!t[tr("0x47")].schema[tr("0x1b")](e),o=e[tr("0x44")],s=e.nextSibling,r=e[tr("0x3b")](tr("0x35")),i=!o||o[tr("0x3b")]("listItemId")!==r,x=!s||s[tr("0x3b")](tr("0x35"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x21"),t))),n[tr("0x3f")][tr("0x37")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n.commandName){case tr("0x24"):r=n.commandParams[0][tr("0x32")],i=a(n[tr("0x4e")]),o=r?tr("0x10"):"*Format:* remove from %0",i&&(o="*Change to:* %0"),s={type:tr("0x2b"),content:Yo(e,o,Yo(e,tr("0x2")))};break;case tr("0x3"):r=n.commandParams[0][tr("0x32")],i=a(n[tr("0x4e")]),o=r?tr("0x10"):"*Format:* remove from %0",i&&(o=tr("0x20")),s={type:tr("0x2b"),content:Yo(e,o,Yo(e,tr("0x13")))};break;case tr("0x1"):o=tr("0x4c"),s={type:tr("0x2b"),content:Yo(e,o,Yo(e,tr("0x21")))};break;case tr("0x39"):o=function(t){const e=t[tr("0xa")]();let n=e[tr("0x3d")].nodeAfter;for(;n&&e[tr("0x4")](n);){if(n[tr("0x3b")](tr("0x23"))>0)return!1;n=n[tr("0x2c")]}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[tr("0xa")]()[tr("0x3d")].nodeAfter;return tr("0x12")+e[tr("0x3b")]("listType")[tr("0x49")]()+tr("0x17")}(t))):Yo(e,tr("0xd"),Yo(e,tr("0x21"))),s={type:"format",content:o};break;case"mergeListItemBackward":case tr("0x27"):!1===n.multipleBlocks&&(o=tr("0x2a"),s={type:tr("0x14"),content:Yo(e,o,Yo(e,tr("0x21")))})}return s})),n[tr("0x30")][tr("0x3a")](tr("0x15"),"documentList","accept",(function(e,n){const o=[];for(let n of e)n.start[tr("0x36")]===n[tr("0x1a")][tr("0x9")]&&(n=t[tr("0x47")][tr("0x41")](t[tr("0x47")].createPositionAt(n.start[tr("0x36")],0))),o[tr("0x25")](n);t.model[tr("0x43")]((e=>{const s=t[tr("0x47")][tr("0xe")][tr("0x33")],r=Array.from(s.getRanges())[tr("0x2e")]((t=>i.LiveRange[tr("0xc")](t)));e[tr("0x4a")](o),t[tr("0x0")][tr("0x8")](n[tr("0x4e")])[tr("0x6")](),n[tr("0x48")].push({forceDefaultExecution:!0}),t[tr("0x4b")](n[tr("0x4e")],...n[tr("0x48")]),e[tr("0x4a")](r);for(const t of r)t[tr("0x2d")]()}))}))}}var nr=n(331);const or=["end","enterBlock","afterExecute","getFirstPosition","get","split","detach","setSelection","change","remove","high","model","ck-suggestion-marker-split","createRange","plugins","document","parent","enableCommand","data","mapper","downcastDispatcher","showSuggestionHighlights","hasClass","createPositionAt","markerName","bind","selection","commands","fromRange","init","getFirstRange","editing","enter","markerNameToElements","unbindElementFromMarkerName"];var sr,rr;sr=or,rr=434,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("0xf")](){const t=this.editor,e=t[ir("0x0")].get("TrackChangesEditing"),n=t[ir("0xd")][ir("0x19")](ir("0x12"));e[ir("0x3")]("enter",(()=>{t.model[ir("0x1d")]((o=>{const s=t[ir("0x20")][ir("0x1")][ir("0xc")],r=s[ir("0x18")](),x=i.LiveRange[ir("0xe")](s[ir("0x10")]());if(n[ir("0x16")](o)){const n=t.model[ir("0x9")](r[ir("0x2")].nextSibling,0),s=o[ir("0x22")](r,n);e.markInsertion(s)}else o[ir("0x1c")](o[ir("0x22")](x[ir("0x15")]));x[ir("0x1b")](),n.fire(ir("0x17"),{writer:o})}))})),t[ir("0x11")][ir("0x6")].on("addMarker:suggestion:insertion",hs(t,"split"),{priority:ir("0x1f")}),t[ir("0x11")][ir("0x6")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[ir("0x5")][ir("0x13")](e[ir("0xa")]);if(o)for(const t of o)t[ir("0x8")](ir("0x21"))&&(n[ir("0x5")][ir("0x14")](t,e[ir("0xa")]),n.writer[ir("0x1e")](t))}),{priority:ir("0x1f")}),t[ir("0x4")][ir("0x6")].on("addMarker:suggestion:insertion",((e,n,o)=>{o.options[ir("0x7")]&&hs(t,ir("0x1a"),{showActiveMarker:!1})[ir("0xb")](this)(e,n,o)}),{priority:ir("0x1f")})}}const ar=["FindAndReplaceUtils","afterInit","createPositionAt","plugins","findNext","findByTextCallback","createRange","bind","editor","markers","handleFindCommand","find","getRange","start","get","item","replaceAll","model","string","filter","getIntersection","suggestion:deletion","has","findPrevious","enableCommand","FindAndReplaceEditing"];var cr,lr;cr=ar,lr=476,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x13")](){if(!this[dr("0x0")][dr("0x15")][dr("0xe")](dr("0x11")))return;const t=this[dr("0x0")][dr("0x15")].get("TrackChangesEditing");t[dr("0x10")](dr("0x3"),this[dr("0x2")][dr("0x19")](this)),t.enableCommand(dr("0x16")),t[dr("0x10")](dr("0xf")),t[dr("0x10")]("replace"),t[dr("0x10")](dr("0x8"))}[dr("0x2")](t,e,n={}){const o=this[dr("0x0")][dr("0x15")][dr("0x6")](dr("0x12"));void 0!==n&&t((t=>(dr("0xa")==typeof e?o[dr("0x17")](e,n):e)(t)[dr("0xb")]((e=>!1===this._isInDeletionRange(e,t[dr("0x7")])))),n)}_isInDeletionRange(t,e){const n=this[dr("0x0")][dr("0x9")][dr("0x18")](this.editor[dr("0x9")][dr("0x14")](e,t[dr("0x5")]),this[dr("0x0")][dr("0x9")][dr("0x14")](e,t.end));for(const t of this[dr("0x0")][dr("0x9")][dr("0x1")].getMarkersGroup(dr("0xd")))if(null!==n[dr("0xc")](t[dr("0x4")]()))return!0;return!1}}const gr=["FontColorEditing","change","selection","afterInit","*Set font color:* %0","from","TrackChangesEditing","document","config","editor","commandParams","*Reset font size*","normalizeSizeOptions","FontFamilyEditing","value","*Reset font background color*","registerDescriptionCallback","FontBackgroundColorEditing","plugins","FontSizeEditing","get","label","fontSize","fontFamily","commandName","model","*Set font family:* %0","_descriptionFactory","toLowerCase","title","fontColor","*Reset font family*","getRanges","fontSize.options","format","markInlineFormat","find","*Reset font color*","FontSize"];var mr,fr;mr=gr,fr=363,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x7"),commandName:"fontSize"},{pluginName:hr("0x1"),commandName:"fontFamily"},{pluginName:hr("0x1b"),commandName:hr("0x12")},{pluginName:hr("0x5"),commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x1e")](){const t=this[hr("0x24")].locale;for(const{pluginName:t,commandName:e}of pr)this[hr("0x24")][hr("0x6")].has(t)&&this._enableCommand(e);this[hr("0x24")][hr("0x6")][hr("0x8")](hr("0x21"))[hr("0xf")][hr("0x4")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0xa")==o.commandName){const e=o[hr("0x25")][0].value;if(e){const o=n(this[hr("0x24")][hr("0x6")][hr("0x8")](hr("0x1a"))[hr("0x0")](this[hr("0x24")][hr("0x23")].get(hr("0x15")))[hr("0x18")]((t=>t[hr("0xd")]==e))[hr("0x11")])[hr("0x10")]();return{type:"format",content:Yo(t,"*Set font size:* %0",o)}}return{type:hr("0x16"),content:Yo(t,hr("0x26"))}}if(hr("0xb")==o[hr("0xc")]){const e=o.commandParams[0][hr("0x2")];return e?{type:hr("0x16"),content:Yo(t,hr("0xe"),e)}:{type:"format",content:Yo(t,hr("0x13"))}}if("fontColor"==o[hr("0xc")]){const e=o.commandParams[0][hr("0x2")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x23")][hr("0x8")]("fontColor.colors"))[hr("0x18")]((t=>t[hr("0xd")]==e));let r=e,i="";return o&&(r=o[hr("0x9")],i=n(r)[hr("0x10")]()),{type:hr("0x16"),content:Yo(t,hr("0x1f"),i).trim(),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x19"))}}if("fontBackgroundColor"==o.commandName){const e=o[hr("0x25")][0][hr("0x2")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x24")][hr("0x23")][hr("0x8")]("fontBackgroundColor.colors"))[hr("0x18")]((t=>t[hr("0xd")]==e));let r=e,i="";return o&&(r=o[hr("0x9")],i=n(r)[hr("0x10")]()),{type:hr("0x16"),content:Yo(t,"*Set font background color:* %0",i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x16"),content:Yo(t,hr("0x3"))}}}}))}_enableCommand(t){const e=this[hr("0x24")];e[hr("0x6")][hr("0x8")](hr("0x21")).enableCommand(t,((n,o={})=>{const s=e[hr("0xd")][hr("0x22")][hr("0x1d")],r=o[hr("0x2")];s.isCollapsed?n(o):e.model[hr("0x1c")]((()=>{const n=Array[hr("0x20")](s[hr("0x14")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0xd")]);for(const o of n)e.plugins[hr("0x8")]("TrackChangesEditing")[hr("0x17")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["word","get","editor","locale","copyFormat","markInlineFormat","afterInit","toLowerCase","forward","_descriptionFactory","keys","plugins","getRanges","getSelectedBlocks","getFirstPosition","isFormatting","registerDescriptionCallback","createRange","format","length","join","fontColor","isBlock","find","title","slice","backward","config","getItems","*Set format to:* %0","charAt","getLastPosition","boolean","fontBackgroundColor","entries","pasteFormat","change","getAttributes","isCollapsed","label","schema","TrackChangesEditing","FontSize","model","push","modifySelection","from"];var _r,Tr;_r=Er,Tr=192,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x2")](){const t=this[Cr("0x2d")],n=t[Cr("0x27")],o=n.document.selection,s=t[Cr("0x7")].get(Cr("0x25")),r=t[Cr("0x2e")],i=t.commands[Cr("0x2c")]("copyFormat"),x=t.commands[Cr("0x2c")](Cr("0x1f"));i&&x&&(s.enableCommand(Cr("0x1f"),((t,r={})=>{const i=r;n[Cr("0x20")]((()=>{const t=Array[Cr("0x2a")](o[Cr("0x8")]()),r=o[Cr("0x22")]?[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("0x21")]()){const t=e.getAttributeProperties(n);t&&t[Cr("0xb")]&&(yield n)}}(t,n));for(const e of t[Cr("0x8")]())for(const t of e[Cr("0x18")]())!n[Cr("0x12")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x9")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x24")]))||0!==Object[Cr("0x6")](i)[Cr("0xf")])for(const t of r)s[Cr("0x1")](t,{commandName:Cr("0x1f"),commandParams:[i]})}))})),s[Cr("0x5")][Cr("0xc")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n.commandName){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Cr("0x1e")](o))e[Cr("0x28")](Ar(t,n,s));return e[Cr("0xf")]?{type:Cr("0xe"),content:Yo(r,Cr("0x19"),e[Cr("0x10")](", "))}:{type:Cr("0xe"),content:Yo(r,"*Remove all formatting*")}}})),t.plugins[Cr("0x2c")]("TrackChangesEditing").enableCommand(Cr("0x0")))}}function kr(t,e){const n=t.createSelection(e);t[Cr("0x29")](n,{unit:"word",direction:Cr("0x16")});const o=n[Cr("0xa")]();t[Cr("0x29")](n,{unit:Cr("0x2b"),direction:Cr("0x4")});const s=n[Cr("0x1b")]();return t[Cr("0xd")](o,s)}function Ar(t,e,n){const o=t[Cr("0x2e")].t,r=e.split(/(?=[A-Z])/)[Cr("0x10")](" "),i=o(r[Cr("0x1a")](0).toUpperCase()+r[Cr("0x15")](1))[Cr("0x3")]();if(Cr("0x1c")==typeof n)return i;if(Cr("0x11")===e||Cr("0x1d")===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0x2c")]("fontColor.colors"))[Cr("0x13")]((t=>t[Cr("0x27")]==n));return i+" ("+(e?o(e[Cr("0x23")]).toLowerCase():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0x2c")](Cr("0x26")).normalizeSizeOptions(t[Cr("0x17")][Cr("0x2c")]("fontSize.options"))[Cr("0x13")]((t=>t[Cr("0x27")]==n));return i+" ("+(e?o(e[Cr("0x14")]).toLowerCase():n)+")"}return i+" ("+n+")"}const vr=["commandParams","registerElementLabel","value","get","from","has","heading.options","formatBlock","paragraph","title","document","HeadingEditing","*Change to:* %0","TrackChangesEditing","change","selection","checkChild","enableCommand","registerDescriptionCallback","filter","format","editor","heading","config","getSelectedBlocks","schema","_descriptionFactory","plugins","locale","afterInit","model","match","ELEMENT_HEADING_CUSTOM","blockName","find","isObject"];var Rr,Sr;Rr=vr,Sr=137,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x0")](){const t=this[Ir("0x1c")],e=t[Ir("0x23")],n=t[Ir("0x1e")][Ir("0xa")](Ir("0xd"));if(!t[Ir("0x22")][Ir("0xc")](Ir("0x12")))return;const o=t[Ir("0x22")][Ir("0xa")](Ir("0x14"));o[Ir("0x18")]("heading",((e,n)=>{const s=n.value,r=Array[Ir("0xb")](this[Ir("0x1c")][Ir("0x1")][Ir("0x11")][Ir("0x16")][Ir("0x1f")]())[Ir("0x1a")]((t=>{return e=t,n=s,(o=this.editor.model[Ir("0x20")])[Ir("0x17")](e.parent,n)&&!o[Ir("0x6")](e)&&e.name!=n;var e,n,o}));t[Ir("0x1")][Ir("0x15")]((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Ir("0x1d"),commandParams:[n],formatGroupId:Ir("0x4")},fs(t))}))}));for(const t of n)Ir("0xf")!=t.model&&o[Ir("0x21")][Ir("0x8")](t[Ir("0x1")],(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0x10")])}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,Ir("0x3"),[t,n])}o._descriptionFactory[Ir("0x19")]((t=>{const{type:o,data:i}=t;if(Ir("0xe")==o&&i&&"heading"==i.commandName){const t=i[Ir("0x7")][0][Ir("0x9")],o=Nr(t);if(null!==o)return{type:Ir("0x1b"),content:Yo(e,Ir("0x13"),s(1,o))};const x=n[Ir("0x5")]((e=>e[Ir("0x1")]===t))[Ir("0x10")];return{type:Ir("0x1b"),content:Yo(e,Ir("0x13"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x2")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["getAttribute","commandParams","createRange","has","model","highlight","color","getRanges","enableCommand","get","getFirstPosition","value","commandName","document","plugins","editor","push","title","hasAttribute","_descriptionFactory","TrackChangesEditing","locale","item","format","HighlightEditing","find"];var wr,Or;wr=Mr,Or=288,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{afterInit(){const t=this[Fr("0xd")];if(!t[Fr("0xc")][Fr("0x1")](Fr("0x16")))return;const e=t.plugins[Fr("0x7")](Fr("0x12"));e[Fr("0x6")](Fr("0x3"),((n,o={})=>{const s=t[Fr("0x2")][Fr("0xb")].selection,r=s[Fr("0x18")](Fr("0x3"));let i=o[Fr("0x9")],x=[];if(s.isCollapsed){const e=s[Fr("0x8")]();if(!s[Fr("0x10")](Fr("0x3")))return void n(o);{const n=t=>t[Fr("0x14")][Fr("0x18")](Fr("0x3"))===r,o=e.getLastMatchingPosition(n,{direction:"backward"}),s=e.getLastMatchingPosition(n);x=[t[Fr("0x2")][Fr("0x0")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x5")]())i?x[Fr("0xe")](e):x[Fr("0xe")](...ms(Fr("0x3"),e,t[Fr("0x2")]));t[Fr("0x2")].change((()=>{for(const t of x)e.markInlineFormat(t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0x13")];e[Fr("0x11")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Fr("0x3")==s[Fr("0xa")]){const e=n.t,o=s[Fr("0x19")][0][Fr("0x9")];if(o){const s=t.config.get("highlight.options")[Fr("0x17")]((t=>t[Fr("0x2")]==o)),r=e(s[Fr("0xf")]).toLowerCase();return{type:Fr("0x15"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s[Fr("0x4")],title:s.title}}}return{type:Fr("0x15"),content:Yo(n,"*Remove highlight*",Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["horizontalLine","enableCommand","addClass","createContainerElement","div","has","showSuggestionHighlights","high","editor","createPositionAt","ELEMENT_HORIZONTAL_LINE","HorizontalLineEditing","plugins","createEmptyElement","for","registerElementLabel","elementToStructure","TrackChangesEditing","get","afterInit"];var Br,jr;Br=Dr,jr=306,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0xd")](){const t=this[Ur("0x2")];if(!t[Ur("0x6")][Ur("0x13")](Ur("0x5")))return;t[Ur("0x6")][Ur("0xc")](Ur("0xb"))[Ur("0xf")](Ur("0xe"));const e=t.plugins[Ur("0xc")]("TrackChangesEditing"),n=t.locale;e._descriptionFactory[Ur("0x9")](Ur("0xe"),(t=>Yo(n,Ur("0x4"),t))),t.conversion[Ur("0x8")]("dataDowncast")[Ur("0xa")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Ur("0x0")])return null;const o=e[Ur("0x11")](Ur("0x12")),s=e[Ur("0x7")]("hr");return e[Ur("0x10")]("ck-horizontal-line",o),e.insert(e[Ur("0x3")](o,0),s),o},converterPriority:Ur("0x1")})}}const Hr=["HtmlEmbed","getCustomProperty","cancel","document","get","TrackChangesEditing","editing","htmlEmbed","plugins","registerElementLabel","editor","afterInit","markBlockFormat","enableCommand","element","rawHtml","_descriptionFactory","view","getAttribute","change","has","commandName","getSelectedElement","format","ELEMENT_HTML_EMBED"];var zr,Wr;zr=Hr,Wr=234,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x2")](){const t=this[Vr("0x1")];if(!t[Vr("0x18")][Vr("0xb")](Vr("0x10")))return;const e=t[Vr("0x18")][Vr("0x14")]("TrackChangesEditing"),n=t.locale,o=t[Vr("0x16")][Vr("0x8")][Vr("0x13")].selection;e[Vr("0x7")][Vr("0x0")](Vr("0x6"),(t=>Yo(n,Vr("0xf"),t))),t[Vr("0x18")][Vr("0x14")](Vr("0x15"))[Vr("0x4")](Vr("0x17"),((n,s)=>{const r=t.model,i=r[Vr("0x13")].selection;r[Vr("0xa")]((()=>{const t=function(t){const e=t[Vr("0xd")]();return e&&e.is(Vr("0x5"),Vr("0x6"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t[Vr("0x9")]("value")||"";void 0!==s&&s!==r&&(e[Vr("0x3")](t,{commandName:"htmlEmbed",commandParams:[s]}),o[Vr("0xd")]()[Vr("0x11")]("rawHtmlApi")[Vr("0x12")]())}))})),e[Vr("0x7")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Vr("0x17")==e[Vr("0xc")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0xe"),content:Yo(n,"*Change %0 content*",t)}}}))}}const qr=["getContainedElement","getNearestSelectionRange","insertion","imageTextAlternative","createRangeOn","type","_splitMarkerName","schema","has","getFirstRange","refresh","isBefore","imageStylePreApply","newRange","model","end","join","getSuggestionCallback","detach","formatInline","ImageUploadEditing","isEqual","isCollapsed","forceDefaultExecution","_descriptionFactory","ImageUtils","uploadImage","FORMAT_SIDE_IMAGE","plugins","getClosestSelectedImageElement","isBlockImage","*Reset image width*","getChangedMarkers","hasSuggestion","ELEMENT_CAPTION","imageCaption","isInContent","length","author","_suggestionFactory","start","markBlockFormat","addObject","commandParams","value","ImageStyleEditing","accept","alt","shouldConvertImageType","fromPosition","convertBlockImageToInline","imageTypeInline","isInlineImage","previous","name","resizeImage","markInsertion","ELEMENT_INLINE_IMAGE","forEach","removeObject","get","convertInlineImageToBlock","change","ImageEditing","imageStylePostApply","TrackChangesEditing","toggleImageCaption","side","newValue","ImageBlockEditing","title","isOwn","toLowerCase","ImageResize","findIndex","suggestion","document","getAttribute","registerPostFixer","from","formatBlock","deletion","ImageCaptionUtils","selection","*Set image width:* %0","enableCommand","Block image to inline image","commandName","element","discardSuggestion","registerDescriptionCallback","*Set image text alternative:* %0","locale","filter","registerCustomCallback","width","subType","format","ImageInlineEditing","imageStyle","*Format:* %0","ImageTextAlternativeEditing","_findSuggestions","head","toPrevious","createRange","afterInit","chain","next","find","ImageCaptionEditing","differ","getCaptionFromImageModelElement","discard","registerElementLabel","commands","getSuggestion","Users","nodeBefore"];var $r,Xr;$r=qr,Xr=500,function(t){for(;--t;)$r.push($r.shift())}(++Xr);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x52")](){const t=this.editor;if(!t[Jr("0x4")][Jr("0x67")](Jr("0x27")))return;const n=t[Jr("0x4")][Jr("0x24")](Jr("0x29")),o=t.plugins.get(Jr("0x1")),s={},r=t[Jr("0x44")];if(n.enableCommand("insertImage"),n[Jr("0x0")][Jr("0x5a")]("imageBlock",(t=>Yo(r,"ELEMENT_IMAGE",t))),n[Jr("0x0")][Jr("0x5a")]("imageInline",(t=>Yo(r,Jr("0x21"),t))),n[Jr("0x0")][Jr("0x5a")]("caption",(()=>Yo(r,Jr("0xa")))),t.plugins[Jr("0x67")](Jr("0x73"))&&n[Jr("0x3d")](Jr("0x2")),t.plugins[Jr("0x67")](Jr("0x2d"))&&t.plugins[Jr("0x67")](Jr("0x4a"))&&(n[Jr("0x3d")]("imageTypeInline",((e,s)=>{const r=o[Jr("0x5")](t[Jr("0x6d")].document[Jr("0x3b")]);t[Jr("0x6d")].change((()=>{n[Jr("0x11")](r,{commandName:"imageTypeInline",commandParams:[s]},[],Jr("0x1a"))}))})),n[Jr("0x3d")]("imageTypeBlock",((e,s)=>{t.model[Jr("0x26")]((r=>{let x=o[Jr("0x5")](t.model[Jr("0x34")].selection),a=r[Jr("0x63")](x);const c=i.LivePosition[Jr("0x19")](a[Jr("0x10")],Jr("0x50")),l=i.LivePosition[Jr("0x19")](a.end,"toNext");n[Jr("0x76")]((()=>e(s))),x=o[Jr("0x5")](t[Jr("0x6d")][Jr("0x34")][Jr("0x3b")]),a=r[Jr("0x63")](x);const d=r[Jr("0x51")](c,l);c.detach(),l[Jr("0x71")](),n.markBlockFormat(x,{commandName:Jr("0x1b"),commandParams:[]},[],Jr("0x25")),d[Jr("0x10")][Jr("0x6a")](a[Jr("0x10")])&&n.markInsertion(r.createRange(d.start,a[Jr("0x10")]),"convertInlineImageToBlock"),a.end[Jr("0x6a")](d.end)&&n[Jr("0x20")](r.createRange(a[Jr("0x6e")],d[Jr("0x6e")]),Jr("0x25"))}))})),n[Jr("0xf")][Jr("0x46")]("formatBlock",Jr("0x25"),Jr("0x6f"),(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0x38"),"convertInlineImageToBlock",Jr("0x16"),(()=>{})),n[Jr("0xf")][Jr("0x46")](Jr("0x38"),Jr("0x25"),Jr("0x59"),n._suggestionFactory[Jr("0x70")](Jr("0x38"),"",Jr("0x16"))),n._suggestionFactory[Jr("0x46")](Jr("0x61"),Jr("0x25"),Jr("0x6f"),(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0x61"),Jr("0x25"),"discard",(([e])=>{const o=n[Jr("0xf")].getSuggestionCallback("insertion","",Jr("0x59"));let s=e[Jr("0x10")],r=e.end;const i=t[Jr("0x6d")][Jr("0x66")][Jr("0x60")](s,"backward"),x=t[Jr("0x6d")][Jr("0x66")][Jr("0x60")](r,"forward");i[Jr("0x75")]&&(s=i[Jr("0x10")]),x[Jr("0x75")]&&(r=x[Jr("0x6e")]),o([t[Jr("0x6d")][Jr("0x51")](s,r)])})),n[Jr("0xf")][Jr("0x46")](Jr("0x38"),Jr("0x25"),Jr("0x53"),c),n[Jr("0xf")].registerCustomCallback(Jr("0x61"),Jr("0x25"),Jr("0x53"),c)),t[Jr("0x4")][Jr("0x67")](Jr("0x56"))&&(n[Jr("0x3d")](Jr("0x2a"),((e,s)=>{const r=t.plugins.get(Jr("0x3a"));let i=o[Jr("0x5")](t.model[Jr("0x34")][Jr("0x3b")]),x=r.getCaptionFromImageModelElement(i);t.model[Jr("0x26")]((()=>{if(x)return void n.markDeletion(t[Jr("0x6d")][Jr("0x63")](x));const a=o[Jr("0x6")](i);e(s),i=o.getClosestSelectedImageElement(t[Jr("0x6d")][Jr("0x34")][Jr("0x3b")]),x=r[Jr("0x58")](i),n[Jr("0x20")](t[Jr("0x6d")][Jr("0x63")](x),a?null:"imageCaption")}))})),n[Jr("0xf")][Jr("0x46")](Jr("0x61"),Jr("0xb"),Jr("0x53"),c)),t[Jr("0x4")][Jr("0x67")](Jr("0x15"))){n.enableCommand(Jr("0x4b"),((s,r)=>{const i=t.plugins[Jr("0x24")](Jr("0x5d")).me,x=t[Jr("0x5b")][Jr("0x24")](Jr("0x4b"));let a=o[Jr("0x5")](t[Jr("0x6d")][Jr("0x34")][Jr("0x3b")]),c=t.model[Jr("0x63")](a),l=x[Jr("0x14")];if(l==r.value)return;const d={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t.model[Jr("0x26")]((()=>{if(n.getSuggestions()[Jr("0x45")]((t=>t[Jr("0xc")]&&i==t[Jr("0xe")]&&(Jr("0x38")==t.type||Jr("0x72")==t[Jr("0x64")])&&(Jr("0x6b")==t[Jr("0x48")]||Jr("0x28")==t[Jr("0x48")])&&t[Jr("0x68")]()[Jr("0x74")](c)))[Jr("0x22")]((t=>n.discardSuggestion(t[Jr("0x4f")]))),a=o[Jr("0x5")](t[Jr("0x6d")][Jr("0x34")][Jr("0x3b")]),c=t[Jr("0x6d")][Jr("0x63")](a),x.refresh(),t[Jr("0x5b")].get(Jr("0x1b"))[Jr("0x69")](),t[Jr("0x5b")][Jr("0x24")]("imageTypeBlock").refresh(),l=x[Jr("0x14")],l!=r[Jr("0x14")])return o[Jr("0x1c")](a)&&x[Jr("0x18")](r.value,a)?(s(r),a=o[Jr("0x5")](t[Jr("0x6d")][Jr("0x34")].selection),void n[Jr("0x11")](a,{...d,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Jr("0x6")](a)?n[Jr("0x11")](a,d,[],"imageStylePostApply"):n.markInlineFormat(c,d,Jr("0x28")))}))}));for(const e of t[Jr("0x4")].get(Jr("0x15")).normalizedStyles)s[e[Jr("0x1e")]]=e[Jr("0x2e")][Jr("0x30")]();n[Jr("0xf")].registerCustomCallback(Jr("0x38"),Jr("0x6b"),Jr("0x6f"),(()=>{})),n._suggestionFactory[Jr("0x46")](Jr("0x38"),Jr("0x28"),Jr("0x6f"),(()=>{})),n[Jr("0xf")].registerCustomCallback(Jr("0x72"),Jr("0x28"),"join",(()=>{})),n[Jr("0xf")][Jr("0x46")](Jr("0x38"),Jr("0x6b"),"accept",(()=>{})),n[Jr("0xf")][Jr("0x46")](Jr("0x38"),"imageStylePreApply",Jr("0x59"),((t,e)=>{n._suggestionFactory[Jr("0x70")](Jr("0x38"),"",Jr("0x16"))(t,{commandName:e[Jr("0x3f")],commandParams:e.commandReversedParams})})),n[Jr("0xf")].registerCustomCallback(Jr("0x38"),"imageStylePreApply",Jr("0x53"),c)}const x=[{type:Jr("0x38"),subType:Jr("0x6b")},{type:"insertion",subType:Jr("0xb")},{type:Jr("0x38"),subType:"convertInlineImageToBlock"},{type:Jr("0x61"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x[Jr("0x32")]((({type:e,subType:n})=>t[Jr("0x64")]==e&&t[Jr("0x48")]==n)),r=x[Jr("0x32")]((({type:t,subType:n})=>e[Jr("0x64")]==t&&e[Jr("0x48")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x68")](),a=e.getFirstRange();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Jr("0x4e")](i,"insertion").filter((({suggestion:t,meta:e})=>e[Jr("0x2f")]&&Jr("0x25")==t[Jr("0x48")]));if(t[Jr("0xd")]>1&&a.end[Jr("0x74")](i[Jr("0x10")]))return!0;if(1==t[Jr("0xd")]&&(i[Jr("0x10")].isEqual(a[Jr("0x6e")])||i.end[Jr("0x74")](a.start)))return!0}if(3==s&&3==r&&i[Jr("0x10")].isBefore(a.start)){const t=i.end.nodeAfter,e=a[Jr("0x10")][Jr("0x5e")];return o[Jr("0x6")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x6d")][Jr("0x34")][Jr("0x36")]((()=>{let e=!1;const s=Array[Jr("0x37")](t[Jr("0x6d")][Jr("0x34")][Jr("0x57")][Jr("0x8")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x65")](t);if(Jr("0x33")==s&&n[Jr("0x9")](a)){if(Jr("0x38")==i&&(Jr("0x6b")==x||Jr("0x28")==x)){const t=n[Jr("0x5c")](a);if(r[Jr("0x6c")]){const s=t.getFirstRange()[Jr("0x5f")]();if(o.isBlockImage(s))continue;n[Jr("0x41")](t),e=!0}}if(Jr("0x61")==i&&Jr("0xb")==x&&!r.newRange){const t=n[Jr("0x5c")](a);t[Jr("0x54")]&&t[Jr("0x54")][Jr("0xc")]&&(n[Jr("0x41")](t.next),e=!0)}}}return e})),t[Jr("0x4")][Jr("0x67")](Jr("0x31"))&&n[Jr("0x3d")](Jr("0x1f"),((e,s)=>{const r=o[Jr("0x5")](t[Jr("0x6d")][Jr("0x34")][Jr("0x3b")]);r.getAttribute(Jr("0x47"))!=s[Jr("0x47")]&&t[Jr("0x6d")][Jr("0x26")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x1f"),commandParams:[s]})}))})),t.plugins[Jr("0x67")](Jr("0x4d"))&&n[Jr("0x3d")](Jr("0x62"),((e,s)=>{const r=o[Jr("0x5")](t[Jr("0x6d")].document.selection);(r.hasAttribute(Jr("0x17"))?r[Jr("0x35")](Jr("0x17")):"")!=s[Jr("0x2c")]&&t[Jr("0x6d")][Jr("0x26")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x62"),commandParams:[s]})}))})),n[Jr("0x0")][Jr("0x42")]((t=>{if(x[Jr("0x55")]((({type:e,subType:n})=>t[Jr("0x64")]==e&&t[Jr("0x48")]==n)))return t[Jr("0x1d")]?{}:void 0})),n[Jr("0x0")].registerDescriptionCallback((t=>{if(Jr("0x61")==t.type||Jr("0x39")==t[Jr("0x64")]){const e=t[Jr("0x5f")]();if(e&&e.is(Jr("0x40"),"caption"))return{type:"insertion"==t[Jr("0x64")]?Jr("0x12"):Jr("0x23"),element:e,quantity:1}}})),n[Jr("0x0")][Jr("0x42")]((t=>Jr("0x38")==t.type&&Jr("0x25")==t.subType?{type:"format",content:"Inline image to block image"}:"formatBlock"==t[Jr("0x64")]&&Jr("0x1a")==t[Jr("0x48")]?{type:"format",content:Jr("0x3e")}:void 0)),n[Jr("0x0")][Jr("0x42")]((t=>{const{data:e}=t;if(e){if(Jr("0x4b")==e.commandName){const t=e.commandParams[0][Jr("0x14")];return n=Jr("0x2b")===t?Yo(r,Jr("0x3")):s[t]||t,{type:Jr("0x49"),content:Yo(r,Jr("0x4c"),n)}}if("imageTextAlternative"==e[Jr("0x3f")]){const t=e[Jr("0x13")][0][Jr("0x2c")];return t?{type:Jr("0x49"),content:Yo(r,Jr("0x43"),'"'+t+'"')}:{type:Jr("0x49"),content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x1f")==e[Jr("0x3f")]){const t=e[Jr("0x13")][0].width;return t?{type:"format",content:Yo(r,Jr("0x3c"),t)}:{type:Jr("0x49"),content:Yo(r,Jr("0x7"))}}}var n}))}}const Zr=["plugins","locale","format","ImageEditing","model","getAttribute","discard","accept","registerCustomCallback","editor","getContainedElement","formatBlock","get","commandParams","src","handleReplaceImageCommand","document","author","change","registerDescriptionCallback","has","*Format:* replace image URL","Users","data","getSuggestions","_suggestionFactory","source","getSuggestionCallback","afterInit","handleSuggestionDescription","markBlockFormat","replaceImageSource"];var Yr,ti;Yr=Zr,ti=485,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[ei("0x4")][ei("0x1b")][ei("0xf")](ei("0x1e")))return;const t=this.editor.plugins.get("TrackChangesEditing");t.enableCommand("replaceImageSource",((t,e)=>this[ei("0xa")](t,e))),t[ei("0x14")][ei("0x3")](ei("0x6"),ei("0x1a"),"accept",t[ei("0x14")][ei("0x16")]("formatBlock",null,ei("0x1"))),t[ei("0x14")][ei("0x3")](ei("0x6"),ei("0x1a"),ei("0x1"),t[ei("0x14")][ei("0x16")](ei("0x6"),null,ei("0x2"))),t._descriptionFactory[ei("0xe")]((t=>this.handleSuggestionDescription(t)))}handleReplaceImageCommand(t,e){const n=this[ei("0x4")][ei("0x1b")][ei("0x7")]("TrackChangesEditing"),o=this[ei("0x4")][ei("0x1f")][ei("0xb")].selection.getSelectedElement();this[ei("0x4")][ei("0x1f")][ei("0xd")]((()=>{let s=o[ei("0x0")](ei("0x9"));const r=this.editor.plugins[ei("0x7")](ei("0x11")).me;for(const t of n[ei("0x13")]({skipNotAttached:!0})){const e=t[ei("0x5")]();if(ei("0x1a")===t.subType&&e===o){t[ei("0xc")]!==r&&t.discard(),s=t[ei("0x12")][ei("0x8")][0][ei("0x15")];break}}t(e),n[ei("0x19")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ei("0x1a"))}))}[ei("0x18")](t){const{data:e}=t;if(e&&"replaceImageSource"===e.commandName){const t=ei("0x10");return{type:ei("0x1d"),content:Yo(this[ei("0x4")][ei("0x1c")],t)}}}}const oi=["forEach","listenTo","trackChanges","get","high","bind","dataInsert","lowest","enableCommand","importWord","Users","commands","_trackChangesValueDuringImport","value","editor","plugins","_trackChangesExecuted","execute","_handleImportedData","TrackChangesEditing"];var si,ri;si=oi,ri=389,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._trackChangesExecuted=!1}afterInit(){const t=this.editor,e=t[ii("0x2")].get("importWord"),n=t[ii("0x2")][ii("0xe")](ii("0xd"));e&&(e.on(ii("0x8"),((t,[,e])=>{this[ii("0x3")]=n.value,e.collaboration_features.track_changes=!this[ii("0x3")]}),{priority:ii("0xf")}),this[ii("0xc")](e,ii("0x11"),this[ii("0x9")][ii("0x10")](this)),this[ii("0xc")](e,ii("0x11"),(()=>{this[ii("0x7")]&&(n[ii("0x8")](),this[ii("0x7")]=!1)}),{priority:ii("0x12")}),t[ii("0x6")][ii("0xe")]("TrackChangesEditing")[ii("0x13")](ii("0x0")))}[ii("0x9")](t,e){const{suggestions:n}=e,o=this.editor[ii("0x2")].get(ii("0xd")),s=o[ii("0x4")];this[ii("0x3")]!==s&&(o.execute(),this[ii("0x7")]=!0),n&&n[ii("0xb")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[ii("0x6")].get(ii("0x1")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x0")}}};this[ii("0x5")][ii("0x6")][ii("0xe")](ii("0xa"))._setSuggestionData(s)}))}}const ai=["blockIndent","getItems","get","has","checkAttribute","afterInit","locale","commandName","markBlockFormat","*Indent:* %0","IndentBlock","enableCommand","outdentBlock","IndentEditing","plugins","indent","getItemLabel","schema","from","*Outdent:* %0","model","indentBlock","TrackChangesEditing","format","document","registerDescriptionCallback","_descriptionFactory","editor"];var ci,li;ci=ai,li=102,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0xf")](){const t=this.editor,e=t[di("0x18")][di("0xc")](di("0x4"));t[di("0x18")].has(di("0x17"))&&(e[di("0x15")](di("0x19")),e[di("0x15")]("outdent"));const n=t[di("0x10")];if(t.plugins[di("0xd")](di("0x14"))){for(const n of[di("0x3"),"outdentBlock"])e[di("0x15")](n,(()=>{const o=Array[di("0x0")](this.editor[di("0x2")][di("0x6")].selection.getSelectedBlocks()).filter((t=>this[di("0x9")][di("0x2")][di("0x1b")][di("0xe")](t,di("0xa"))));t.model.change((()=>{for(const t of o)e[di("0x12")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x3")})}))}));e[di("0x8")][di("0x7")]((t=>{const{data:o}=t;if(!o)return;if(di("0x3")!=o[di("0x11")]&&"outdentBlock"!=o.commandName)return;const s=t[di("0xb")]()[0],r=e._descriptionFactory[di("0x1a")](s);return"indentBlock"==o[di("0x11")]?{type:di("0x5"),content:Yo(n,di("0x13"),r)}:di("0x16")==o[di("0x11")]?{type:"format",content:Yo(n,di("0x1"),r)}:void 0}))}}}var gi,mi,fi=["requires","plugins","init","TrackChangesEditing","enableCommand"];gi=fi,mi=287,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("0x3")](){return[Vs.Input]}[hi("0x0")](){this.editor[hi("0x4")].get(hi("0x1"))[hi("0x2")]("input")}}const bi=["LinkEditing","has","commandName","isCollapsed","getAttribute","*Remove link*","getFirstRange","hasAttribute","linkHref","get","link","change","unlink","commandParams","selection","registerDescriptionCallback","enableCommand","format","getFirstPosition","markInlineFormat","TrackChangesEditing","model","document"];var Ei,_i;Ei=bi,_i=157,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.plugins[Ti("0x5")](Ti("0x4")))return;const e=t.plugins[Ti("0xd")](Ti("0x1"));e.enableCommand(Ti("0xe"),((n,o)=>{const s=t[Ti("0x2")][Ti("0x3")][Ti("0x12")];let r=[];if(s[Ti("0x7")]){if(!s[Ti("0xb")](Ti("0xc")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0x16")](),Ti("0xc"),s[Ti("0x8")]("linkHref"),t[Ti("0x2")]);r=[e]}}else r=Array.from(s.getRanges());t[Ti("0x2")][Ti("0xf")]((()=>{for(const t of r)e[Ti("0x0")](t,{commandName:Ti("0xe"),commandParams:[o]})}))})),e[Ti("0x14")](Ti("0x10"),(()=>{const n=this.editor.model,o=n.document[Ti("0x12")];n[Ti("0xf")]((()=>{let n=[];n=o[Ti("0x7")]?[(0,Vs.findAttributeRange)(o[Ti("0x16")](),Ti("0xc"),o[Ti("0x8")](Ti("0xc")),t.model)]:ms(Ti("0xc"),o[Ti("0xa")](),t[Ti("0x2")]);for(const t of n)e.markInlineFormat(t,{commandName:Ti("0x10"),commandParams:[]})}))})),e._descriptionFactory[Ti("0x13")]((e=>{const{data:n}=e,o=t.locale;if(n){if("link"==n[Ti("0x6")]){return{type:"format",content:Yo(o,"*Set link:* %0",'"'+n[Ti("0x11")][0]+'"')}}return Ti("0x10")==n[Ti("0x6")]?{type:Ti("0x15"),content:Yo(o,Ti("0x9"))}:void 0}}))}}const yi=["model","execute","value","blockName","slice","afterInit","from","todo","schema","enableCommand","name","ELEMENT_TODO_LIST","listItem","ELEMENT_BULLETED_LIST","format","commandParams","locale","ListEditing","isObject","registerDescriptionCallback","createPositionAt","*Change to:* %0","ELEMENT_NUMBERED_LIST","has","get","getAttribute","bulleted","element","before","replace","paragraph","add","createRange","registerElementLabel","bulletedList","listIndent","change","*Indent:* %0","push","commandName","findIndex","document","outdentList","*Check item*","*Uncheck item*","getSelectedBlocks","listType","ELEMENT_LIST_ITEM","todoList","previousSibling","_descriptionFactory","plugins","TodoListEditing","List","numberedList","selection","checkTodoList","markBlockFormat","indentList","filter","nextSibling","length"];var ki,Ai;ki=yi,Ai=244,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x9")](){const t=this.editor,e=t[vi("0x14")];if(!t.plugins[vi("0x1b")](vi("0x15")))return;const n=t.plugins[vi("0x1c")]("TrackChangesEditing"),o=t[vi("0x37")][vi("0x1b")](vi("0x38"));function s(e){return()=>{const o=t[vi("0x4")][vi("0x2d")][vi("0x3b")],s=t.commands[vi("0x1c")](e);if(s[vi("0x6")])return void t[vi("0x5")](vi("0x22"),{});const r=e[vi("0x8")](0,-4),i=function(t,e,n){let o=Array[vi("0xa")](t)[vi("0x1")]((t=>{return e=t,(o=n).checkChild(e.parent,vi("0x10"))&&!o[vi("0x16")](e);var e,o}));o=o[vi("0x1")]((t=>!t.is("element","listItem")||t[vi("0x1d")](vi("0x32"))!=e));const s=new Set;for(const t of o)t.is(vi("0x1f"),vi("0x10"))?s[vi("0x23")](Si(t)):s.add(t);return Array[vi("0xa")](s)}(o.getSelectedBlocks(),r,t.model[vi("0xc")]);t[vi("0x4")][vi("0x28")]((()=>{for(const t of i)n[vi("0x3d")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x6")]}],formatGroupId:vi("0x7")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0xa")](t);const n=e[vi("0x2c")]((t=>vi("0x10")!=t.name));return n>-1&&(e=e[vi("0x8")](0,n)),e}(t[vi("0x4")][vi("0x2d")][vi("0x3b")][vi("0x31")]()),s=t[vi("0x4")][vi("0x24")](t.model[vi("0x18")](o[0],vi("0x20")),t[vi("0x4")][vi("0x18")](o[o[vi("0x3")]-1],"end"));t.model[vi("0x28")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:vi("0x27")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x2")];for(;t&&t[vi("0x1d")](vi("0x27"))>n[vi("0x1d")]("listIndent");)e.add(t),t=t[vi("0x2")]}return Array[vi("0xa")](e)}(o))}))}}n.enableCommand(vi("0x3a"),s(vi("0x3a"))),n.enableCommand(vi("0x26"),s(vi("0x26"))),o&&n[vi("0xd")](vi("0x34"),s("todoList")),n.enableCommand("indentList",r("indentList")),n[vi("0xd")](vi("0x2e"),r("outdentList")),o&&n[vi("0xd")]("checkTodoList",(()=>{const e=t.commands[vi("0x1c")](vi("0x3c")),o=Array[vi("0xa")](e._selectedElements);o[vi("0x1")]((t=>t[vi("0x1d")]("todoListChecked")!=e[vi("0x6")])),t[vi("0x4")].change((()=>{for(const t of o)n[vi("0x3d")](t,{commandName:vi("0x3c"),commandParams:[{forceValue:!e.value}]})}))})),n[vi("0x36")][vi("0x25")](vi("0x10"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x36")][vi("0x17")]((t=>{const{data:n}=t;if(n){if(vi("0x3a")==n[vi("0x2b")]||vi("0x26")==n[vi("0x2b")]||vi("0x34")==n[vi("0x2b")])switch(n[vi("0x2b")][vi("0x21")](vi("0x39"),"")){case vi("0x1e"):return o(Yo(e,vi("0x11")));case"numbered":return o(Yo(e,vi("0x1a")));case vi("0xb"):return o(Yo(e,vi("0xf")))}if(vi("0x0")==n[vi("0x2b")])return{type:vi("0x12"),content:Yo(e,vi("0x29"),Yo(e,vi("0x33")))};if(vi("0x2e")==n[vi("0x2b")])return{type:vi("0x12"),content:Yo(e,"*Outdent:* %0",Yo(e,vi("0x33")))};if(vi("0x3c")==n[vi("0x2b")])return n[vi("0x13")][0].forceValue?{type:"format",content:Yo(e,vi("0x2f"))}:{type:vi("0x12"),content:Yo(e,vi("0x30"))}}function o(t){return{type:vi("0x12"),content:Yo(e,vi("0x19"),t)}}}))}}function Si(t){const e=t.getAttribute(vi("0x27"));if(0==e)return t;let n=t;for(;t[vi("0x35")]&&t[vi("0x35")].is(vi("0x1f"),vi("0x10"));){const o=t[vi("0x35")].getAttribute("listIndent");if(o==e)n=t[vi("0x35")];else if(o<e)break;t=t[vi("0x35")]}return n}function Ii(t){const e=[];if(t.is(vi("0x1f"),"listItem")&&t[vi("0x1d")]("listIndent")>0){let n=t.nextSibling;for(;n&&vi("0x10")==n[vi("0xe")]&&n.getAttribute("listIndent")==t[vi("0x1d")](vi("0x27"));)e[vi("0x2a")](n),n=n[vi("0x2")]}return e}const Li=["get","getListTypeFromListStyleType","_getTranslationKeyForListStyle","enableCommand","from","*Format:* set start index to %0","listStyle","startIndex","document","_getSuggestionBlocksForListStyle","handleListStyleCommand","registerDescriptionCallback","flat","numbered","forward","unshift","_getSuggestionBlocks","afterInit","filter","getAttribute","element","TrackChangesEditing","ListPropertiesEditing","listReversed","getSiblingNodes","styles","commandName","toUpperCase","config","getSelectedBlocks","*Change to:* %0","listItem","bind","createRange","getFirstPosition","listType","handleListStartCommand","backward","before","format","replace","change","markMultiRangeBlockFormat","reversed","ListUtils","model","ELEMENT_","selection","commandParams","createPositionAt","length","_descriptionFactory","handleDescriptions","editor","handleListReversedCommand","*Format:* set order to regular","map","push","listStart","type","plugins"];var Ni,Mi;Ni=Li,Mi=118,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x15")](){if(!this[wi("0x39")][wi("0x3")].has(wi("0x1a")))return;const t=this[wi("0x39")][wi("0x20")][wi("0x4")]("list.properties"),e=this.editor[wi("0x3")][wi("0x4")](wi("0x19"));t[wi("0x1d")]&&e.enableCommand(wi("0xa"),this.handleListStyleCommand[wi("0x24")](this)),t[wi("0x2f")]&&e[wi("0x7")](wi("0x1b"),this[wi("0x3a")][wi("0x24")](this)),t[wi("0xb")]&&e[wi("0x7")](wi("0x1"),this[wi("0x28")][wi("0x24")](this)),e[wi("0x37")][wi("0xf")](this.handleDescriptions[wi("0x24")](this))}[wi("0xe")](t,e={}){const n=this.editor[wi("0x3")].get(wi("0x19")),o=this[wi("0xd")]();this[wi("0x39")].model.change((()=>{n[wi("0x2e")](o,{commandName:"listStyle",commandParams:[{type:e[wi("0x2")]}],formatGroupId:wi("0xa")})}))}[wi("0x3a")](t,e={}){const n=this.editor[wi("0x3")][wi("0x4")](wi("0x19")),o=this._getSuggestionBlocks((t=>t.is(wi("0x18"),wi("0x23"))&&wi("0x11")===t[wi("0x17")](wi("0x27"))));if(o.length<1)return;const s=o[wi("0x3c")]((t=>this.editor[wi("0x31")][wi("0x25")](this.editor[wi("0x31")].createPositionAt(t,"before"),this[wi("0x39")][wi("0x31")][wi("0x35")](t,0))));this[wi("0x39")][wi("0x31")][wi("0x2d")]((()=>{n[wi("0x2e")](s,{commandName:wi("0x1b"),commandParams:[{reversed:e[wi("0x2f")]}],formatGroupId:wi("0x1b")})}))}[wi("0x28")](t,e={}){const n=this[wi("0x39")][wi("0x3")][wi("0x4")](wi("0x19")),o=this[wi("0x14")]((t=>t.is(wi("0x18"),wi("0x23"))&&wi("0x11")===t[wi("0x17")](wi("0x27"))));if(o[wi("0x36")]<1)return;const s=o[wi("0x3c")]((t=>this.editor[wi("0x31")].createRange(this.editor.model.createPositionAt(t,wi("0x2a")),this[wi("0x39")][wi("0x31")][wi("0x35")](t,0))));this[wi("0x39")][wi("0x31")][wi("0x2d")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wi("0x1"),commandParams:[{startIndex:e[wi("0xb")]}],formatGroupId:wi("0x1")})}))}[wi("0x38")](t){const e=this.editor.locale,{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x1e")]){case wi("0xa"):o=wi("0x22"),s={type:"format",content:Yo(e,o,Yo(e,this[wi("0x6")](n[wi("0x34")][0].type)))};break;case wi("0x1b"):o=n[wi("0x34")][0][wi("0x2f")]?"*Format:* set order to reversed":wi("0x3b"),s={type:"format",content:Yo(e,o)};break;case"listStart":o=wi("0x9"),s={type:wi("0x2b"),content:Yo(e,o,n[wi("0x34")][0][wi("0xb")])}}return s}[wi("0xd")](){var t,e,n,o;const s=this.editor[wi("0x3")][wi("0x4")](wi("0x30"));let r=Array[wi("0x8")](this[wi("0x39")][wi("0x31")][wi("0xc")][wi("0x33")][wi("0x21")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x18"),wi("0x23")))&&r[wi("0x13")](...s[wi("0x1c")](this[wi("0x39")][wi("0x31")].document[wi("0x33")].getFirstPosition(),wi("0x29"))),(null===(e=r[r[wi("0x36")]-1])||void 0===e?void 0:e.is(wi("0x18"),wi("0x23")))&&r[wi("0x0")](...s[wi("0x1c")](this[wi("0x39")][wi("0x31")][wi("0xc")][wi("0x33")].getLastPosition(),"forward")),r=[...new Set(r)],(null===(o=null===(n=this.editor[wi("0x31")][wi("0xc")][wi("0x33")][wi("0x26")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is("element",wi("0x23")))&&(r=r[wi("0x16")]((t=>t.is(wi("0x18"),wi("0x23"))))),r}[wi("0x14")](t){const e=this[wi("0x39")].plugins[wi("0x4")](wi("0x30"));let n=Array[wi("0x8")](this[wi("0x39")].model.document[wi("0x33")].getSelectedBlocks())[wi("0x16")](t)[wi("0x3c")]((t=>{const n=this[wi("0x39")][wi("0x31")][wi("0x35")](t,0);return[...e[wi("0x1c")](n,wi("0x29")),...e.getSiblingNodes(n,wi("0x12"))]}))[wi("0x10")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return wi("0x32")+this.editor[wi("0x3")][wi("0x4")]("ListUtils")[wi("0x5")](t)[wi("0x1f")]()+"_LIST_"+t.toUpperCase()[wi("0x2c")](/-/g,"_")}}const Fi=["registerElementLabel","has","locale","media","plugins","downcastDispatcher","get","conversion","attribute:url:media","elementToElement","dataDowncast","MediaEmbedEditing","ELEMENT_MEDIA","mediaEmbed","TrackChangesEditing","data","high","_descriptionFactory","showSuggestionHighlights"];var Pi,Di;Pi=Fi,Di=104,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[Bi("0xb")](Bi("0x2")))return;const e=t[Bi("0xe")][Bi("0x10")](Bi("0x5")),n=t[Bi("0xc")];e.enableCommand(Bi("0x4")),e[Bi("0x8")][Bi("0xa")](Bi("0xd"),(t=>Yo(n,Bi("0x3"),t))),t[Bi("0x11")].for(Bi("0x1"))[Bi("0x0")]({model:Bi("0xd"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x9")])return e.createEmptyElement("div")},converterPriority:Bi("0x7")}),t[Bi("0x6")][Bi("0xf")].on(Bi("0x12"),((t,e,n)=>{n.options[Bi("0x9")]&&t.stop()}),{priority:Bi("0x7")})}}const Ui=["plugins","get","MentionEditing","TrackChangesEditing","has","editor","mention"];var Gi,Hi;Gi=Ui,Hi=359,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{afterInit(){const t=this[zi("0x3")];t[zi("0x5")][zi("0x2")](zi("0x0"))&&t[zi("0x5")][zi("0x6")](zi("0x1")).enableCommand(zi("0x4"))}}const Vi=["pageBreak","locale","afterInit","enableCommand","has","get","registerElementLabel","PageBreakEditing","TrackChangesEditing","plugins","_descriptionFactory","editor"];var Ki,qi;Ki=Vi,qi=367,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const $i=function(t,e){return Vi[t-=0]};class Xi extends t.Plugin{[$i("0x7")](){const t=this[$i("0x4")];if(!t[$i("0x2")][$i("0x9")]($i("0x0")))return;t.plugins.get("TrackChangesEditing")[$i("0x8")]($i("0x5"));const e=t[$i("0x2")][$i("0xa")]($i("0x1")),n=t[$i("0x6")];e[$i("0x3")][$i("0xb")]($i("0x5"),(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const Ji=["plugins","editing","model","paragraph","*Insert:* %0","TrackChangesEditing","type","addClass","insertion","createUIElement","get","isTouching","options","data","checkChild","name","locale","markerRange","insert","addMarker:suggestion:insertion","commandName","Paragraph","end","highest","afterInit","parent","getItemLabel","schema","format","getFirstRange","toViewPosition","filter","downcastDispatcher","mapper","start","markerName","activeMarkers","*Change to:* %0","blockName","editor","consume","_descriptionFactory","registerDescriptionCallback","selection","change","isLimit","enableCommand","ck-suggestion-marker-split","from","isBlock","nodeAfter","markBlockFormat","document","consumable","showSuggestionHighlights","writer","insertParagraph"];var Qi,Zi;Qi=Ji,Zi=329,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x25")](){const t=this[Yi("0x34")];if(!t[Yi("0xd")].has(Yi("0x22")))return;const e=t[Yi("0x1d")],n=t.plugins.get(Yi("0x12"));n._descriptionFactory.registerElementLabel(Yi("0x10"),(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n.enableCommand(Yi("0x10"),((e,o={})=>{const s=t[Yi("0xf")][Yi("0x8")],r=o[Yi("0x38")]||s[Yi("0x38")],i=Array[Yi("0x4")](r.getSelectedBlocks())[Yi("0x2c")]((t=>{return e=t,(n=this.editor.model[Yi("0x28")])[Yi("0x1b")](e[Yi("0x26")],Yi("0x10"))&&!n.isObject(e)&&Yi("0x10")!=e[Yi("0x1c")];var e,n}));t[Yi("0xf")][Yi("0x0")]((()=>{for(const t of i)n[Yi("0x7")](t,{commandName:Yi("0x10"),commandParams:[],formatGroupId:Yi("0x33")},fs(t))}))})),n[Yi("0x36")][Yi("0x37")]((t=>{const{data:n}=t;if(n&&Yi("0x10")==n[Yi("0x21")])return{type:Yi("0x29"),content:Yo(e,Yi("0x32"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n[Yi("0x2")](Yi("0xc")),t[Yi("0xe")].downcastDispatcher.on(Yi("0x20"),ex(t),{priority:Yi("0x24")}),t[Yi("0x1a")][Yi("0x2d")].on(Yi("0x20"),((e,n,o)=>{o[Yi("0x19")][Yi("0xa")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x24")});const o=n[Yi("0x36")];o[Yi("0x37")]((n=>{if(Yi("0x15")!==n[Yi("0x13")])return;const{start:s,end:r}=n[Yi("0x2a")]();if(!s[Yi("0x18")](r)||!s.nodeAfter)return;const i=t[Yi("0xf")][Yi("0x28")],x=s[Yi("0x6")];return i[Yi("0x5")](x)&&!i[Yi("0x1")](x)&&i[Yi("0x1b")](x,"$text")?{type:Yi("0x15"),content:Yo(e,Yi("0x11"),o[Yi("0x27")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0xd")][Yi("0x17")](Yi("0x12")),i=o[Yi("0x1e")][Yi("0x2f")],x=o[Yi("0x1e")][Yi("0x23")],a=t[Yi("0xf")][Yi("0x28")];if(!i[Yi("0x18")](x)||!i[Yi("0x6")])return;const c=i[Yi("0x6")];if(a.isBlock(c)&&!a[Yi("0x1")](c)&&a[Yi("0x1b")](c,"$text")){if(!s[Yi("0x9")][Yi("0x35")](o.markerRange,n[Yi("0x1c")]))return;const t=s.writer[Yi("0x16")]("span",{class:Yi("0x3")}),i=s.mapper[Yi("0x2b")](x);e&&r[Yi("0x31")].includes(o[Yi("0x30")])&&s[Yi("0xb")][Yi("0x14")]("ck-suggestion-marker--active",t),s[Yi("0xb")][Yi("0x1f")](i,t),s[Yi("0x2e")].bindElementToMarker(t,o[Yi("0x30")])}}}const nx=["getItems","has","change","isCollapsed","createRangeOn","commandName","getAttributes","RemoveFormatEditing","editor","selection","TrackChangesEditing","enableCommand","get","getRanges","format","plugins","from","removeFormat","locale","registerDescriptionCallback","afterInit","getAttributeProperties","model","markInlineFormat","_descriptionFactory","*Remove all formatting*"];var ox,sx;ox=nx,sx=105,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x13")](){const t=this[rx("0x7")];if(!t[rx("0xe")][rx("0x0")](rx("0x6")))return;const e=t[rx("0xe")][rx("0xb")](rx("0x9"));e[rx("0xa")]("removeFormat",(n=>{const o=t[rx("0x15")].document[rx("0x8")];o[rx("0x2")]?n():t[rx("0x15")][rx("0x1")]((()=>{const n=Array[rx("0xf")](o[rx("0xc")]());for(const o of n)for(const n of o[rx("0x19")]())xx(n,t[rx("0x15")].schema)&&e[rx("0x16")](t.model[rx("0x3")](n),{commandName:rx("0x10"),commandParams:[]})}))})),e[rx("0x17")][rx("0x12")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[rx("0x4")])return{type:rx("0xd"),content:Yo(t[rx("0x11")],rx("0x18"))}}))}}function xx(t,e){for(const[n]of t[rx("0x5")]()){const t=e[rx("0x14")](n);if(t&&t.isFormatting)return!0}return!1}const ax=["enableCommand","TrackChangesEditing","editor","discardSelectedSuggestions","RestrictedEditingModeEditing","discardSuggestion","acceptAllSuggestions","afterInit","acceptSelectedSuggestions","trackChanges","get","discardAllSuggestions","goToNextRestrictedEditingException","plugins","goToPreviousRestrictedEditingException"];var cx,lx;cx=ax,lx=222,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0xa")](){const t=this[dx("0x5")];if(!t[dx("0x1")].has(dx("0x7")))return;const e=t[dx("0x1")][dx("0xd")](dx("0x4"));e[dx("0x3")](dx("0x2")),e[dx("0x3")](dx("0x0"));const n=t.plugins[dx("0xd")]("RestrictedEditingModeEditing");n.enableCommand(dx("0xc")),n[dx("0x3")]("acceptSuggestion"),n[dx("0x3")](dx("0x8")),n[dx("0x3")](dx("0x9")),n[dx("0x3")](dx("0xe")),n[dx("0x3")](dx("0xb")),n[dx("0x3")](dx("0x6"))}}const gx=["markerName","downcastDispatcher","high","bindElementToMarker","showSuggestionHighlights","span","plugins","addClass","_descriptionFactory","addMarker:suggestion","split","mapper","ck-suggestion-marker-","addMarker:suggestion:deletion","ck-suggestion-marker--active","includes","model","init","writer","ELEMENT_LINE_BREAK","softBreak","shiftEnter","insert","get","merge","enableCommand","data","options","activeMarkers","consumable","test","locale","editing","element","name","createPositionBefore","markerRange","deletion","requires"];var mx,fx;mx=gx,fx=313,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("0x25")](){return[nr.ShiftEnter]}[hx("0x10")](){const t=this.editor,e=t[hx("0x5")][hx("0x16")]("TrackChangesEditing");e[hx("0x18")](hx("0x14")),t.editing[hx("0x0")].on("addMarker:suggestion:insertion",bx(t),{priority:hx("0x1")}),t[hx("0x1f")].downcastDispatcher.on(hx("0xc"),bx(t),{priority:hx("0x1")}),t[hx("0x19")].downcastDispatcher.on(hx("0x8"),((e,n,o)=>{o[hx("0x1a")][hx("0x3")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x7")].registerElementLabel(hx("0x13"),(e=>Yo(t[hx("0x1e")],hx("0x12"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x5")][hx("0x16")]("TrackChangesEditing");if(!s[hx("0x1c")][hx("0x1d")](o.markerRange,n[hx("0x21")]))return;const i=t[hx("0xf")];for(const t of o[hx("0x23")].getItems()){if(!t.is(hx("0x20"),hx("0x13")))continue;const n=hx("0x24")==o[hx("0x26")][hx("0x9")](":")[1]?hx("0x17"):"split",x=s[hx("0x11")].createUIElement(hx("0x4"),{class:hx("0xb")+n}),a=s[hx("0xa")].toViewPosition(i[hx("0x22")](t));e&&r[hx("0x1b")][hx("0xe")](o[hx("0x26")])&&s[hx("0x11")][hx("0x6")](hx("0xd"),x),s[hx("0x11")][hx("0x15")](a,x),s[hx("0xa")][hx("0x2")](x,o[hx("0x26")])}}}const Ex=["has","markInlineFormat","selection","document","commandParams","commandName","commands","forceValue","locale","from","get","change","StandardEditingModeEditing","model","TrackChangesEditing","registerDescriptionCallback","afterInit","FORMAT_RESTRICTED_DISABLED","enableCommand","value","editor","_descriptionFactory","plugins"];var _x,Tx;_x=Ex,Tx=472,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x4")](){const t=this[Cx("0x8")],e=t[Cx("0x1")],n=t[Cx("0x13")];if(!t.plugins[Cx("0xb")](Cx("0x0")))return;const o=t[Cx("0xa")][Cx("0x15")](Cx("0x2")),s="restrictedEditingException",r=t[Cx("0x11")].get(s);o[Cx("0x6")](s,((t,n={})=>{const i=e[Cx("0xe")][Cx("0xd")];if(i.isCollapsed)return void t(n);const x=void 0!==n.forceValue?n[Cx("0x12")]:!r[Cx("0x7")];e[Cx("0x16")]((()=>{const t=Array[Cx("0x14")](i.getRanges());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0xc")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x9")][Cx("0x3")]((t=>{const{data:e}=t;if(e&&e[Cx("0x10")]==s)return e[Cx("0xf")][0].forceValue?{type:"format",content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:"format",content:Yo(n,Cx("0x5"))}}))}}const kx=["format","isBlock","getItems","style","style.definitions","*Remove format:* %0","enableCommand","inline","TrackChangesEditing","model","from","_getStyleDefinition","get","push","commands","plugins","getRanges","style:","every","Style","DataSchema","change","toLowerCase","add","_getRangesWithClasses","name","commandName","document","element","config","enabledStyles","registerDescriptionCallback","find","StyleUtils","normalizeConfig","createRangeOn","forceValue","styleName","block","isCollapsed","has","includes","commandParams"];var Ax,vx;Ax=kx,vx=280,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{afterInit(){const t=this.editor;if(!t[Rx("0x24")][Rx("0x12")](Rx("0x28")))return;const e=t[Rx("0x23")].get(Rx("0x18")),n=t[Rx("0x24")][Rx("0x21")](Rx("0x1d")),o=t.locale,s=t.plugins.get(Rx("0x29")),r=t[Rx("0x24")][Rx("0x21")](Rx("0xb"))[Rx("0xc")](s,t[Rx("0x7")][Rx("0x21")](Rx("0x19")));n[Rx("0x1b")](Rx("0x18"),((o,{styleName:i})=>{const x=t.model[Rx("0x5")].selection,a=this._getStyleDefinition(i,r);if(!a)return;if(!e[Rx("0x8")][Rx("0x13")](i))return;if(x[Rx("0x11")]&&!a[Rx("0x16")])return void o({styleName:i});const c=!e.value[Rx("0x13")](a[Rx("0x3")]);if(a[Rx("0x16")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x13")](o[Rx("0x3")])){n[Rx("0x1")](o);break}}return n}(x.getSelectedBlocks(),a.modelElements);t[Rx("0x1e")].change((()=>{for(const t of e)n.markBlockFormat(t,{commandName:Rx("0x18"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x26")+i})}))}else{let e=Array[Rx("0x1f")](x[Rx("0x25")]());if(!c){const n=Array[Rx("0x1f")](s.getDefinitionsForView(a[Rx("0x6")],!1))[0].model,o=[];for(const s of e){const e=this[Rx("0x2")](t[Rx("0x1e")],s,a.classes,n);o[Rx("0x22")](...e)}e=o}t[Rx("0x1e")][Rx("0x2a")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:Rx("0x18"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory[Rx("0x9")]((t=>{const{data:e}=t;if(e&&Rx("0x18")===e[Rx("0x4")])return e[Rx("0x14")][0][Rx("0xe")]?{type:Rx("0x15"),content:Yo(o,"*Format:* %0",e[Rx("0x14")][0][Rx("0xf")][Rx("0x0")]())}:{type:Rx("0x15"),content:Yo(o,Rx("0x1a"),e[Rx("0x14")][0][Rx("0xf")][Rx("0x0")]())}}))}[Rx("0x20")](t,e){let n=e[Rx("0x10")][Rx("0xa")]((e=>e[Rx("0x3")]===t));return n||(n=e[Rx("0x1c")][Rx("0xa")]((e=>e.name===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Rx("0x17")]()){const e=r.getAttribute(o);e&&n[Rx("0x27")]((t=>e.classes[Rx("0x13")](t)))&&s[Rx("0x22")](t[Rx("0xd")](r))}return s}}const Ix=["MIN_SAFE_INTEGER","getSuggestion","above","includes","ELEMENT_TABLE_ROW_WITH_TEXT","maxColumn","add","commands","refresh","end","ELEMENT_TABLE_COLUMN","insert","type","nodeBefore","MAX_SAFE_INTEGER","removeTableRow","substr","isTouching","batch","from","enableCommand","getItems","start","table","rowspan","_getSuggestionCoords","$textProxy","suggestion","push","deletion","min","_tableSuggestions","fromRange","isArray","data","addRange","removeTableColumn","maxRow","createRangeOn","findAncestor","ELEMENT_TABLE_COLUMN_WITH_TEXT","insertTableRowAbove","insertTableColumnRight","getCellLocation","change","isInContent","markMultiRangeInsertion","_suggestionFactory","ELEMENT_TABLE_ROW","_acceptFormatSuggestionCallbackFactory","colspan","position","span","ELEMENT_TABLE","getRowIndexes","detach","model","registerCustomCallback","writer","insertTable","plugins","rootName","some","options","tableRow","_descriptionFactory","toLowerCase","highest","max","discard","getSelectionAffectedTableCells","removeClass","get","first","length","low","tablePaste","getRanges","registerDescriptionCallback","getAttribute","selectTableColumn","registerElementLabel","join","left","nodeAfter","_splitMarkerName","accept","createTableWalker","insertTableColumnLeft","showSuggestionHighlights","insertion","addMarker:suggestion","locale","execute","every","enqueueChange","TrackChangesEditing","insertTableRowBelow","differ","hasAttribute","filter","selectTableRow","*Insert:* %0","document","setSelection","editor","root","minColumn","markMultiRangeDeletion","last","*Remove:* %0","change:data","isIntersectingWithRange","getChangedMarkers","getContainedElement","oldRange","getColumnIndexes","order","_setupColumnsRowsFixing","downcastDispatcher","ELEMENT_TABLE_WITH_TEXT","has","tableColumn","selection","classes","$graveyard","values","_getCoordsForCells","getFirstRange","TableUtils","element","tableCell","_tablePostFixingSubtypes","startsWith","subType","cell","map","name","item"];var Lx,Nx;Lx=Ix,Nx=172,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[Mx("0x63")]=["tableRow",Mx("0x59")],this[Mx("0x89")]=new Set}afterInit(){const t=this.editor,e=t.model[Mx("0x46")][Mx("0x5a")];if(!t.plugins[Mx("0x58")]("TableEditing"))return;const n=t[Mx("0x3b")],o=t[Mx("0x1b")][Mx("0x27")](Mx("0x3f")),s=t[Mx("0x1b")][Mx("0x27")]("TableUtils");o[Mx("0x20")][Mx("0x30")](Mx("0x81"),(t=>Yo(n,Mx("0x14"),t))),this._setupColumnsRowsFixing(),o[Mx("0x7e")](Mx("0x1a")),o[Mx("0x7e")](Mx("0x44")),o.enableCommand(Mx("0x2f"));for(const n of[Mx("0x8"),Mx("0x40")]){const r=t[Mx("0x71")][Mx("0x27")](n);o[Mx("0x7e")](n,(n=>{t.model[Mx("0xb")]((t=>{n();const i=Mx("0x6c")===r[Mx("0x54")],x=s[Mx("0x25")](e),a=s[Mx("0x15")](x),c=i?a[Mx("0x28")]-1:a[Mx("0x4c")]+1,l=x[0][Mx("0x6")](Mx("0x81")),d=s[Mx("0x36")](l,{startRow:c,endRow:c}),u=Array.from(d)[Mx("0x67")]((e=>t.createRangeOn(e[Mx("0x66")])));o[Mx("0xd")](u,Mx("0x1f"))}))}))}for(const n of[Mx("0x37"),Mx("0x9")]){const r=t[Mx("0x71")][Mx("0x27")](n);o[Mx("0x7e")](n,(n=>{t.model[Mx("0xb")]((t=>{n();const i=Mx("0x32")===r[Mx("0x54")],x=s.getSelectionAffectedTableCells(e),a=s[Mx("0x53")](x),c=i?a[Mx("0x28")]-1:a[Mx("0x4c")]+1,l=x[0][Mx("0x6")]("table"),d=s[Mx("0x36")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x7d")](d)[Mx("0x67")]((e=>t[Mx("0x5")](e[Mx("0x66")])));o[Mx("0xd")](u,Mx("0x59"))}))}))}for(const n of[Mx("0x79"),"removeTableColumn"]){const r=n[Mx("0x7a")](11),i=r[Mx("0x21")](),x=i[Mx("0x7a")](0,3)+Mx("0x13"),a=Mx("0x81")+r,c=Mx("0x88")+r,l="max"+r;o[Mx("0x7e")](n,(()=>{t.model[Mx("0xb")]((t=>{const r=s[Mx("0x25")](e),d=r[0].findAncestor(Mx("0x81"));let u;if(Mx("0x79")==n){const t=s[Mx("0x15")](r);u={startRow:t.first,endRow:t[Mx("0x4c")],includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t[Mx("0x28")],endColumn:t.last,includeAllSlots:!0}}const g=s[Mx("0x36")](d,u),m=Array[Mx("0x7d")](g)[Mx("0x67")]((({cell:t})=>t)),f=Ox(m[Mx("0x43")]((t=>t[Mx("0x42")](x)))),h=Ox(m[Mx("0x43")]((t=>!t[Mx("0x42")](x))))[Mx("0x67")]((e=>t[Mx("0x5")](e))),p=o[Mx("0x4b")](h,a);if(p&&(Mx("0x1f")==p[Mx("0x65")]||Mx("0x59")==p[Mx("0x65")])){const e=this[Mx("0x83")](p);for(const n of f){const o=t[Mx("0x5")](n),r=s[Mx("0xa")](n),a=n[Mx("0x2e")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array[Mx("0x7d")](e[Mx("0x2c")]())[Mx("0x67")]((t=>i.LiveRange.fromRange(t)));t[Mx("0x17")][Mx("0xb")]((e=>{const s=e[Mx("0x7c")];n=n[Mx("0x43")]((t=>Mx("0x5c")!=t[Mx("0x49")][Mx("0x1c")])),e[Mx("0x47")](n),t[Mx("0x71")][Mx("0x27")](Mx("0x79")).refresh(),t.execute("removeTableRow",{forceDefaultExecution:!0}),t[Mx("0x17")][Mx("0x3e")]((()=>{t[Mx("0x17")][Mx("0x3e")](s,(t=>{const e=o[Mx("0x43")]((t=>Mx("0x5c")!=t.root[Mx("0x1c")]));e[Mx("0x29")]>0&&t[Mx("0x47")](e);for(const t of o)t[Mx("0x16")]()}))}))}))}function a(n){t[Mx("0x17")].change((o=>{const s=Array[Mx("0x7d")](e.getRanges())[Mx("0x67")]((t=>i.LiveRange[Mx("0x8a")](t))),r=[];for(const t of n)for(const e of t[Mx("0x7f")]({shallow:!0}))r[Mx("0x86")](e);for(const e of r)"$graveyard"!=e[Mx("0x49")][Mx("0x1c")]&&(o[Mx("0x47")](o.createPositionAt(e,0)),t[Mx("0x71")][Mx("0x27")](Mx("0x3"))[Mx("0x72")](),t[Mx("0x3c")](Mx("0x3"),{forceDefaultExecution:!0}));const x=s[Mx("0x43")]((t=>Mx("0x5c")!=t[Mx("0x49")].rootName));x[Mx("0x29")]>0&&o.setSelection(x);for(const t of s)t[Mx("0x16")]()}))}function c(t,e){return e[Mx("0x3d")]((e=>t.some((t=>t.end.isEqual(e[Mx("0x80")])||e[Mx("0x73")].isEqual(t[Mx("0x80")])))))}function l(t,e){return t[Mx("0x1d")]((t=>e[Mx("0x1d")]((e=>t[Mx("0x73")][Mx("0x7b")](e[Mx("0x80")])))))}t.data[Mx("0x56")].on(Mx("0x3a"),((t,e,n)=>{if(!n[Mx("0x1e")][Mx("0x38")])return;const o=e[Mx("0x69")];if(!o)return;const s=n.mapper.toViewElement(o);function r(t){return Array[Mx("0x0")](t)?t:[t]}s&&Mx("0x62")===o[Mx("0x68")]&&(0,x.setHighlightHandling)(s,n[Mx("0x19")],((t,e,n)=>n.addClass(r(e[Mx("0x5b")]),t)),((t,e,n)=>n[Mx("0x26")](r(e.classes),t)))}),{priority:Mx("0x22")}),o[Mx("0x20")].registerDescriptionCallback((t=>{if(Mx("0x39")!=t[Mx("0x76")]&&Mx("0x87")!=t[Mx("0x76")])return;const e=t[Mx("0x51")]();if(null!=e&&e.is(Mx("0x61"),Mx("0x81"))){if(Mx("0x39")==t[Mx("0x76")]){const e=t[Mx("0x7f")]()[Mx("0x43")]((t=>t.is(Mx("0x84"))))[Mx("0x67")]((t=>t.data));if(e[Mx("0x29")])return{type:Mx("0x39"),content:Yo(n,Mx("0x45"),Yo(n,Mx("0x57"),'"'+e[Mx("0x31")](" ")+'"'))}}if(Mx("0x87")==t[Mx("0x76")]){const e=t[Mx("0x7f")]()[Mx("0x43")]((t=>t.is(Mx("0x84"))))[Mx("0x67")]((t=>t[Mx("0x1")]));if(e[Mx("0x29")])return{type:Mx("0x87"),content:Yo(n,Mx("0x4d"),Yo(n,Mx("0x57"),'"'+e[Mx("0x31")](" ")+'"'))}}}})),o[Mx("0x20")][Mx("0x2d")]((t=>{if("tableRow"==t[Mx("0x65")]){const e=t.getItems()[Mx("0x43")]((t=>t.is(Mx("0x84")))).map((t=>t.data)),o=this[Mx("0x83")](t),s=o[Mx("0x4")]-o.minRow+1;if(Mx("0x39")==t[Mx("0x76")])return e[Mx("0x29")]?{type:Mx("0x39"),content:Yo(n,Mx("0x45"),Yo(n,Mx("0x6e"),[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x39"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_ROW",s))};if(Mx("0x87")==t[Mx("0x76")])return e[Mx("0x29")]?{type:"deletion",content:Yo(n,Mx("0x4d"),Yo(n,Mx("0x6e"),[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x87"),content:Yo(n,Mx("0x4d"),Yo(n,Mx("0xf"),s))}}if(Mx("0x59")==t[Mx("0x65")]){const e=t.getItems()[Mx("0x43")]((t=>t.is("$textProxy")))[Mx("0x67")]((t=>t[Mx("0x1")])),o=this[Mx("0x83")](t),s=o[Mx("0x6f")]-o[Mx("0x4a")]+1;if(Mx("0x39")==t[Mx("0x76")])return e[Mx("0x29")]?{type:Mx("0x39"),content:Yo(n,Mx("0x45"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x39"),content:Yo(n,Mx("0x45"),Yo(n,Mx("0x74"),s))};if(Mx("0x87")==t[Mx("0x76")])return e.length?{type:Mx("0x87"),content:Yo(n,Mx("0x4d"),Yo(n,Mx("0x7"),[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x74"),s))}}})),o[Mx("0xe")][Mx("0x18")](Mx("0x39"),Mx("0x1f"),"discard",r),o._suggestionFactory.registerCustomCallback(Mx("0x87"),Mx("0x1f"),Mx("0x35"),r),o[Mx("0xe")][Mx("0x18")]("insertion",Mx("0x59"),Mx("0x24"),a),o[Mx("0xe")].registerCustomCallback(Mx("0x87"),"tableColumn","accept",a),o[Mx("0xe")][Mx("0x18")](Mx("0x39"),Mx("0x59"),"join",c),o[Mx("0xe")][Mx("0x18")](Mx("0x87"),Mx("0x59"),Mx("0x31"),c),o[Mx("0xe")][Mx("0x18")](Mx("0x39"),Mx("0x1f"),Mx("0x31"),l),o[Mx("0xe")][Mx("0x18")](Mx("0x87"),"tableRow",Mx("0x31"),l)}[Mx("0x10")](){const t=this[Mx("0x48")],e=t[Mx("0x17")].document.selection;return(n,o)=>{t[Mx("0x17")][Mx("0xb")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x73")][Mx("0x77")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Mx("0x80")].nodeAfter);const c=s.createRangeIn(a);if(Mx("0x5c")==c[Mx("0x49")][Mx("0x1c")])return;const l=Array[Mx("0x7d")](e[Mx("0x2c")]())[Mx("0x67")]((t=>i.LiveRange.fromRange(t)));s.setSelection(c),t.commands[Mx("0x27")](r).refresh(),x[Mx("0x86")]({forceDefaultExecution:!0}),t.execute(r,...x);const d=l[Mx("0x43")]((t=>Mx("0x5c")!=t[Mx("0x49")].rootName));d[Mx("0x29")]>0&&s[Mx("0x47")](d);for(const t of l)t[Mx("0x16")]()}))}}[Mx("0x5e")](t){const e=this[Mx("0x48")].plugins[Mx("0x27")](Mx("0x60"));let n=Number[Mx("0x78")],o=Number[Mx("0x6a")],s=Number[Mx("0x78")],r=Number[Mx("0x6a")];for(const i of t){if("$graveyard"==i[Mx("0x49")].rootName)continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Mx("0x42")](Mx("0x82"))?i[Mx("0x2e")](Mx("0x82"))-1:0,c=i[Mx("0x42")](Mx("0x11"))?i.getAttribute(Mx("0x11"))-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}}[Mx("0x55")](){const t=this[Mx("0x48")],e=t[Mx("0x1b")][Mx("0x27")](Mx("0x3f")),n=t[Mx("0x1b")][Mx("0x27")](Mx("0x60"));t.model[Mx("0x46")].on(Mx("0x4e"),(()=>{const n=Array[Mx("0x7d")](t[Mx("0x17")][Mx("0x46")][Mx("0x41")][Mx("0x50")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x34")](t);if(Mx("0x85")!=n)continue;if(null!=o[Mx("0x52")])continue;const i=e[Mx("0x6b")](s);this._tablePostFixingSubtypes[Mx("0x6d")](r)&&this[Mx("0x89")][Mx("0x70")](i)}}),{priority:Mx("0x2a")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x5")](t),r=t.findAncestor(Mx("0x81")),i=n[Mx("0xa")](t);for(const e of this._tableSuggestions){const n=e[Mx("0x65")],x=n[Mx("0x64")](Mx("0x2b")),a=n.substr(x?10:5),c=a[Mx("0x21")](),l=c[Mx("0x7a")](0,3)+"span",d=Mx("0x88")+a,u=Mx("0x23")+a;if(!e[Mx("0xc")])continue;if(r!=e[Mx("0x5f")]()[Mx("0x80")][Mx("0x6")](Mx("0x81")))continue;if(e[Mx("0x4f")](s))continue;const g=t[Mx("0x42")](l)?t[Mx("0x2e")](l)-1:0,m=this[Mx("0x83")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x2")](s),o=!0)}return o};t[Mx("0x17")].document.registerPostFixer((e=>{let n=!1;for(const s of t[Mx("0x17")].document[Mx("0x41")].getChanges())if(Mx("0x75")==s[Mx("0x76")])if(Mx("0x1f")==s[Mx("0x68")])for(const t of s[Mx("0x12")][Mx("0x33")].getChildren())n=n||o(t,e);else Mx("0x62")==s.name&&(n=n||o(s[Mx("0x12")][Mx("0x33")],e));return n}))}[Mx("0x83")](t){return this[Mx("0x5e")](t[Mx("0x2c")]().map((t=>t[Mx("0x80")][Mx("0x33")])))}}function Ox(t){return Array[Mx("0x7d")](new Set(t)[Mx("0x5d")]())}const Fx=["element","from","createTableWalker","getAncestors","afterInit","type","requires","findAncestor","_acceptFormatSuggestionCallbackFactory","isInContent","root","mergeTableCells","map","insertion","*Split cell:* horizontally","execute","enableCommand","editor","forceDefaultExecution","author","$graveyard","setSelection","mergeTableCellUp","mergeTableCellRight","markBlockFormat","commands","model","cell","mergeTableCellLeft","isEnabled","refresh","format","add","_tablePostFixingSubtypes","*Merge cells*","_suggestionFactory","_areSelectedCellsMergable","registerCustomCallback","low","_isForcedDefaultExecutionBlock","value","highest","commandName","getRanges","length","selection","_areMergableCells","*Split cell:* vertically","deletion","plugins","detach","mergeTableCellDown","accept","TableEditing","set:isEnabled","markMultiRangeBlockFormat","subType","_descriptionFactory","rootName","formatBlock","getSelectionAffectedTableCells","has","change","splitTableCellVertically","filter","get","trackChanges","stop","find","containsRange","splitTableCellHorizontally","size","registerDescriptionCallback","direction","horizontally","getFirstPosition","tableCell","document","TrackChangesEditing","createRangeOn"];var Px,Dx;Px=Fx,Dx=178,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("0x44")](){return[wx]}[Bx("0x42")](){const t=this.editor,e=t.model[Bx("0x3b")][Bx("0x1b")],n=t.locale;if(!t.plugins[Bx("0x2b")](Bx("0x23")))return;const o=t.plugins[Bx("0x2f")](Bx("0x3c")),s=t.plugins.get("TableUtils"),r=t[Bx("0x1f")].get(wx);r[Bx("0xf")].push(Bx("0x49")),o[Bx("0x4e")](Bx("0x49"),(()=>{const e=s[Bx("0x2a")](t.model[Bx("0x3b")][Bx("0x1b")]);t[Bx("0x8")].change((()=>{o[Bx("0x25")](e,{commandName:Bx("0x49"),commandParams:[]},[],Bx("0x49"))}))})),t[Bx("0x7")][Bx("0x2f")](Bx("0x49")).on(Bx("0x4d"),((e,n)=>{t[Bx("0x7")][Bx("0x2f")](Bx("0x30"))[Bx("0x16")]&&(n[Bx("0x1a")]>0&&n[n[Bx("0x1a")]-1]&&n[n.length-1][Bx("0x0")]||o[Bx("0x15")]||this[Bx("0x12")]()||e[Bx("0x31")]())}),{priority:Bx("0x17")});for(const e of[Bx("0x4"),Bx("0x5"),Bx("0x21"),Bx("0xa")]){const n=t[Bx("0x7")].get(e);o.enableCommand(e,(()=>{const e=t[Bx("0x8")].document[Bx("0x1b")][Bx("0x39")]()[Bx("0x41")]()[Bx("0x32")]((t=>t.is(Bx("0x3e"),Bx("0x3a")))),s=n[Bx("0x16")];t.model[Bx("0x2c")]((()=>{o[Bx("0x25")]([e,s],{commandName:Bx("0x49"),commandParams:[]},[],Bx("0x49"))}))}))}for(const e of[Bx("0x2d"),Bx("0x34")]){const n=t.commands[Bx("0x2f")](e);o[Bx("0x4e")](e,(()=>{const r=s[Bx("0x2a")](t[Bx("0x8")][Bx("0x3b")][Bx("0x1b")])[0],i=r[Bx("0x45")]("table"),{column:x,row:a}=s.getCellLocation(r);let c=[];if(Bx("0x38")==n[Bx("0x37")]){const t=s[Bx("0x40")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x3f")](t).map((t=>t[Bx("0x9")]))}else{const t=s[Bx("0x40")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x3f")](t)[Bx("0x4a")]((t=>t[Bx("0x9")]))}t[Bx("0x8")][Bx("0x2c")]((t=>{o[Bx("0x6")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x27")][Bx("0x36")]((t=>{const{data:e}=t;if(e)return Bx("0x49")==e[Bx("0x18")]?{type:Bx("0xd"),content:Yo(n,Bx("0x10"))}:void 0})),o[Bx("0x27")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x2d")==e[Bx("0x18")]?{type:Bx("0xd"),content:Yo(n,Bx("0x1d"))}:Bx("0x34")==e[Bx("0x18")]?{type:"format",content:Yo(n,Bx("0x4c"))}:void 0}));const x=r[Bx("0x46")]();for(const t of[Bx("0x4"),Bx("0x5"),"mergeTableCellDown",Bx("0xa")])o[Bx("0x11")][Bx("0x13")](Bx("0x29"),t,Bx("0x22"),x);for(const t of[Bx("0x2d"),Bx("0x34")])o[Bx("0x11")][Bx("0x13")]("formatBlock",t,Bx("0x22"),x);o[Bx("0x11")].registerCustomCallback(Bx("0x29"),Bx("0x49"),"accept",(n=>{t[Bx("0x8")][Bx("0x2c")]((o=>{const s=Array[Bx("0x3f")](e[Bx("0x19")]())[Bx("0x4a")]((t=>i.LiveRange.fromRange(t)));o[Bx("0x3")](n),t.commands[Bx("0x2f")](Bx("0x49"))[Bx("0xc")](),t[Bx("0x4d")](Bx("0x49"),{forceDefaultExecution:!0});const r=s[Bx("0x2e")]((t=>Bx("0x2")!=t[Bx("0x48")][Bx("0x28")]));r[Bx("0x1a")]>0&&o[Bx("0x3")](r);for(const t of s)t[Bx("0x20")]()}))}));for(const e of[Bx("0x4"),"mergeTableCellDown",Bx("0xa"),Bx("0x5")]){const n=t[Bx("0x7")][Bx("0x2f")](e);n.on(Bx("0x24"),((e,o,s)=>{if(s){const o=t[Bx("0x8")][Bx("0x3b")].selection[Bx("0x39")]()[Bx("0x41")]()[Bx("0x32")]((t=>t.is("element",Bx("0x3a"))));this[Bx("0x1c")](n.value,o)||(e.return=!1,e[Bx("0x31")]())}}),{priority:Bx("0x14")})}}_areSelectedCellsMergable(){const t=this[Bx("0x4f")][Bx("0x7")][Bx("0x2f")](Bx("0x49")),e=this[Bx("0x4f")][Bx("0x1f")].get("TableUtils");if(!t[Bx("0xb")])return!1;const n=e.getSelectionAffectedTableCells(this[Bx("0x4f")][Bx("0x8")][Bx("0x3b")][Bx("0x1b")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Bx("0x1c")](t,e){const n=this[Bx("0x4f")].plugins.get(Bx("0x3c")),o=this[Bx("0x4f")][Bx("0x8")][Bx("0x3d")](t),s=this.editor[Bx("0x8")][Bx("0x3d")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if((Bx("0x4b")==t[Bx("0x43")]||Bx("0x1e")==t[Bx("0x43")]||Bx("0x49")==t[Bx("0x26")])&&t[Bx("0x47")])for(const e of t[Bx("0x19")]())e[Bx("0x33")](o,!0)&&r[Bx("0xe")](t.type+":"+t.author.id),e[Bx("0x33")](s,!0)&&i[Bx("0xe")](t[Bx("0x43")]+":"+t[Bx("0x1")].id);if(r[Bx("0x35")]!=i.size)return!1;for(const t of r)if(!i[Bx("0x2b")](t))return!1;return!0}}const Ux=["document","getAttribute","accept","_suggestionFactory","removeAttribute","findAncestor","markBlockFormat","markerName","addMarker:suggestion","writer","editing","setTableRowHeader","parent","last","getChild","start","forceValue","FORMAT_HEADER_COLUMN","markerNameToElements","mapper","plugins","consume","get","nodeAfter","options","ck-suggestion-marker--active","value","downcastDispatcher","createPositionAfter","removeClass","*Format:* %0","markerRange","cell","locale","end","unbindElementFromMarkerName","createRange","_splitMarkerName","model","afterInit","selection","_descriptionFactory","childCount","index","headingRows","activeMarkers","getColumnIndexes","formatBlock","has","setAttribute","getCellLocation","format","addClass","data","headingColumns","ck-suggestion-marker-","createTableWalker","TrackChangesEditing","first","TableEditing","bindElementToMarker","isBefore","commandName","requires","includes","registerCustomCallback","highest","FORMAT_HEADER_ROW","table","FORMAT_REGULAR_COLUMN","getSelectionAffectedTableCells","change","_acceptFormatSuggestionCallbackFactory","consumable","setTableColumnHeader","nodeBefore","toViewElement","getRowIndexes","commandParams","createPositionBefore","enableCommand","TableUtils"];var Gx,Hx;Gx=Ux,Hx=205,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("0x16")](){return[wx]}[zx("0x50")](){const t=this.editor;if(!t[zx("0x3d")][zx("0x7")](zx("0x12")))return;const e=t[zx("0x4a")],n=t.plugins[zx("0x3f")](zx("0x10")),o=t[zx("0x3d")].get("TableUtils"),s=t[zx("0x3d")][zx("0x3f")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x4e")](r[zx("0x30")]),c=n.getSuggestion(a);if(!c[zx("0xc")]||"setTableColumnHeader"!=c.data[zx("0x15")])return;if(r.item)return void s.stop();if(!i[zx("0x20")][zx("0x3e")](r[zx("0x48")],s.name))return;const l=r.markerRange[zx("0x38")][zx("0x40")],d=r[zx("0x48")][zx("0x4b")][zx("0x22")],u=l[zx("0x35")][zx("0x35")],{column:g}=o.getCellLocation(l),{column:m}=o[zx("0x9")](d);for(let s=g;s<=m;s++){const c=o[zx("0xf")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x49")],c=i[zx("0x3c")][zx("0x23")](s);i.writer[zx("0xb")](zx("0xe")+x,c),e&&i[zx("0x32")][zx("0x8")]("data-suggestion",a,c),i[zx("0x3c")][zx("0x13")](c,r[zx("0x30")]),t&&(n[zx("0x4")][zx("0x17")](r[zx("0x30")])?i[zx("0x32")][zx("0xb")](zx("0x42"),c):i[zx("0x32")].removeClass(zx("0x42"),c))}}}}n[zx("0x27")](zx("0x34"),((e,s)=>{const r=o[zx("0x1d")](t[zx("0x4f")][zx("0x29")][zx("0x51")]),i=o[zx("0x24")](r),x=r[0][zx("0x2e")](zx("0x1b")),a=x[zx("0x2a")](zx("0x3"))||0,c=s&&null!==s[zx("0x39")]?s[zx("0x39")]:!t.commands[zx("0x3f")](zx("0x34"))[zx("0x43")],l=c?i[zx("0x36")]:i[zx("0x11")],d=x[zx("0x37")](l);let u;if(c){const e=x[zx("0x37")](a);if(d[zx("0x2")]<e[zx("0x2")])return;u=t[zx("0x4f")][zx("0x4d")](t[zx("0x4f")].createPositionBefore(e[zx("0x37")](0)),t[zx("0x4f")][zx("0x45")](d[zx("0x37")](d.childCount-1)))}else{const e=x[zx("0x37")](a-1);if(!e)return;u=t[zx("0x4f")][zx("0x4d")](t.model[zx("0x26")](d[zx("0x37")](0)),t[zx("0x4f")].createPositionAfter(e[zx("0x37")](e[zx("0x1")]-1)))}t[zx("0x4f")].change((()=>{n[zx("0x2f")](u,{commandName:zx("0x34"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[zx("0x27")](zx("0x21"),((e,o)=>{const s=t.plugins[zx("0x3f")](zx("0x28")),r=s.getSelectionAffectedTableCells(t[zx("0x4f")][zx("0x29")][zx("0x51")]),i=s[zx("0x5")](r),x=r[0].findAncestor(zx("0x1b")),a=x[zx("0x2a")](zx("0xd"))||0,c=o&&null!==o[zx("0x39")]?o[zx("0x39")]:!t.commands[zx("0x3f")](zx("0x21")).value;let l;const d=x[zx("0x37")](0),u=c?i[zx("0x36")]:i[zx("0x11")],g=s[zx("0xf")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][zx("0x49")];if(c){const e=d[zx("0x37")](a);if(m[zx("0x14")](e))return;l=t[zx("0x4f")].createRange(t.model[zx("0x26")](e),t[zx("0x4f")].createPositionAfter(m))}else{const e=d.getChild(a-1);if(!e)return;l=t.model[zx("0x4d")](t[zx("0x4f")][zx("0x26")](m),t[zx("0x4f")][zx("0x45")](e))}t[zx("0x4f")][zx("0x1e")]((()=>{n.markBlockFormat(l,{commandName:zx("0x21"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[zx("0x33")][zx("0x44")].on("addMarker:suggestion",r(),{priority:zx("0x19")}),t[zx("0xc")][zx("0x44")].on(zx("0x31"),((t,e,n)=>{n[zx("0x41")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x19")}),t[zx("0x33")][zx("0x44")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n[zx("0x4e")](e[zx("0x30")]),i=n.getSuggestion(r);if(!i[zx("0xc")]||"setTableColumnHeader"!=i.data.commandName)return;const x=o[zx("0x3c")][zx("0x3b")](e[zx("0x30")]);if(x)for(const t of x)o[zx("0x32")].removeClass(zx("0xe")+s,t),o.writer[zx("0x46")](zx("0x42"),t),o[zx("0x32")][zx("0x2d")]("data-suggestion",t),o[zx("0x3c")][zx("0x4c")](t,e[zx("0x30")])}),{priority:zx("0x19")}),n[zx("0x0")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(zx("0x34")==n[zx("0x15")]){const t=n[zx("0x25")][0][zx("0x39")];return o(Yo(e,t?zx("0x1a"):"FORMAT_REGULAR_ROW"))}if("setTableColumnHeader"==n[zx("0x15")]){const t=n[zx("0x25")][0][zx("0x39")];return o(Yo(e,zx(t?"0x3a":"0x1c")))}}function o(t){return{type:zx("0xa"),content:Yo(e,zx("0x47"),t)}}}));const i=s[zx("0x1f")]();n[zx("0x2c")][zx("0x18")](zx("0x6"),zx("0x34"),zx("0x2b"),i),n[zx("0x2c")][zx("0x18")]("formatBlock",zx("0x21"),"accept",i)}}const Vx=["cells","isEmpty","getChildren","remove","row","high","reduce","selection","insertContent","setAttribute","markMultiRangeInsertion","_getCoordsForCells","every","suggestion:formatBlock:tablePasteCell","document","$graveyard","tableCellBorderWidth","_descriptionFactory","getShiftedBy","isInContent","end","previous","length","push","getChanges","hasSuggestion","columnInsertionRanges","options","rows","startsWith","tablePaste","columnInsertionIndexes","commands","getRows","attributes","change","low","columns","clipboardOutput","tableCellBorderStyle","table","includes","getRanges","oldRange","markerAttributes","formatBlock","_replaceTableSlotCell","map","locale","Users","editor","from","cell","tablePasteColumn","_tablePostFixingSubtypes","endRow","entries","differ","rowInsertionRanges","_splitMarkerName","removeMarkers","containsRange","TableUtils","endColumn","nodeAfter","tableCellBorderColor","_suggestionFactory","markerName","getSuggestions","insertRows","position","next","tableCellHorizontalAlignment","join","createRangeIn","stop","getTableIfOnlyTableInContent","tableCellSuggestion","tableCell","subType","fromEntries","createPositionBefore","markerToHighlight","rootName","removeMarker","suggestion-td","insertion","findAncestor","registerCustomCallback","plugins","getAllAdjacentSuggestions","getAttributes","requires","discard","TableClipboard","documentSelection","return","isEqual","getSuggestion","rowInsertionIndexes","has","first","ck-suggestion-marker-insertion","insert","filter","view","find","createRangeOn","model","markMultiRangeBlockFormat","listenTo","conversion","element","markers","getMarkers","root","insertColumns","last","wrap","type","move","redo","fill","unwrap","dataDowncast","trackChanges","registerPostFixer","batch","set","getChangedMarkers","getColumns","deletion","getContainedElement","previousSibling","tablePasteRow","createTableWalker","getRange","nextSibling","add","paragraph","some","getColumnIndexes","createElement","tablePasteCell","editing","tableCellVerticalAlignment","setAttributes","suggestion","getChild","accept","author","TrackChangesEditing","_isForcedDefaultExecutionBlock","name","getSuggestionCallback","get","getSelectionAffectedTableCells","ck-suggestion-marker--active","newRange","keys","tablePasteChainId","column"];var Kx,qx;Kx=Vx,qx=466,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const $x=function(t,e){return Vx[t-=0]},Xx=[$x("0x24"),$x("0x55"),$x("0x3b"),$x("0x5c"),$x("0x3"),"tableCellBackgroundColor","tableCellPadding"],Jx=Object[$x("0x64")](Xx.map((t=>[t,null])));class Qx extends t.Plugin{static get[$x("0x70")](){return[wx]}afterInit(){const t=this[$x("0x46")];if(!t[$x("0x6d")].has("TableClipboard"))return;const n=t[$x("0x6d")][$x("0xd")]($x("0x9")),o=t[$x("0x6d")].get($x("0x52")),s=t[$x("0x6d")][$x("0xd")](wx),r=t[$x("0x6d")].get($x("0x72"));s[$x("0x4a")][$x("0x2b")]($x("0x9a"),$x("0x49")),t[$x("0x80")].schema.register("tableCellSuggestion",{allowIn:$x("0x62"),allowContentOf:$x("0x62"),isLimit:!0}),t[$x("0x83")].elementToElement({model:$x("0x61"),view:$x("0x69")});let i=null;t[$x("0x80")].on($x("0x1c"),((s,x)=>{const[a,c]=x,l=x[x[$x("0x2a")]-1];l&&l.forceDefaultExecution||n[$x("0xa")]||this[$x("0x46")][$x("0x34")].get($x("0x91")).value&&function(t,e,n,o,s){if(e&&!e.is($x("0x73")))return!1;const r=s[$x("0x60")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[$x("0xe")](n[$x("0x22")][$x("0x1b")]);if(!i[$x("0x2a")])return!1;const x=i[0][$x("0x6b")]($x("0x3c")),a=o.getRowIndexes(i),c=o[$x("0xa1")](i),l={startRow:a[$x("0x79")],endRow:a[$x("0x89")],startColumn:c[$x("0x79")],endColumn:c[$x("0x89")]};return 1==i[$x("0x2a")]&&(l[$x("0x4b")]+=o[$x("0x35")](r)-1,l[$x("0x53")]+=o[$x("0x96")](r)-1),Yx(x,l,o)}(a,c,t[$x("0x80")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[$x("0x80")][$x("0x37")]((()=>{t[$x("0x80")][$x("0x1c")](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[$x("0x2a")]&&n[$x("0x1e")](s,$x("0x9a"),{tablePasteChainId:o}),r[$x("0x2a")]&&n[$x("0x1e")](r,"tablePasteColumn",{tablePasteChainId:o}),a.length&&n[$x("0x1e")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[$x("0x2a")]&&n.markMultiRangeDeletion(c,$x("0x32"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[$x("0x81")](l[$x("0x43")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(d){const e=d[$x("0x86")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[$x("0x80")][$x("0x7f")](o),i=e[$x("0x7e")]((t=>t[$x("0x9c")]()[$x("0x75")](r)));i&&n[$x("0x2b")]([i[$x("0xb")],s])}n[$x("0x2a")]&&d[$x("0x1d")]($x("0x40"),Object[$x("0x64")](n))}i=null})))}),{priority:e.priorities[$x("0x19")]+10}),t[$x("0x6d")][$x("0xd")]($x("0x72")).on($x("0x42"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[$x("0x5f")]();const r=n[$x("0x48")],x=o,a=Zx(r),c=Zx(x);t[$x("0x74")]=r;let l=null,d=null;if(c||a)if(a&&!c){s[$x("0x17")](r[$x("0x6")](0));for(const t of Array[$x("0x47")](x[$x("0x16")]()))s[$x("0x7b")](t,r,$x("0x28"));const t=i[$x("0x77")].includes(n[$x("0x18")]),e=i[$x("0x33")][$x("0x3d")](n[$x("0x13")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(d=s[$x("0x5e")](r));else{const t=s[$x("0x0")]($x("0x61")),e=s.createElement("tableCellSuggestion");s[$x("0x8a")](s[$x("0x5e")](r),e),s[$x("0x7b")](t,r,0);for(const e of Array[$x("0x47")](x[$x("0x16")]()))s[$x("0x7b")](e,t,$x("0x28"));l=s.createRangeOn(t),d=s[$x("0x7f")](e)}const u=Array[$x("0x47")](x[$x("0x6f")]())[$x("0x7c")]((([t])=>Xx[$x("0x3d")](t)));i[$x("0x14")][$x("0x2b")]({element:r,attributes:u.length?Object[$x("0x64")](u):null}),l&&i.insertionRanges.push(l),d&&i.deletionRanges[$x("0x2b")](d)}),{priority:$x("0x19")}),o.on($x("0x88"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[$x("0x39")]||1;i[$x("0x33")]=new Array(a)[$x("0x8e")](x)[$x("0x43")](((t,e)=>t+e));for(const{cell:e}of o[$x("0x9b")](s,{startColumn:x,endColumn:x+a-1}))i[$x("0x2e")][$x("0x2b")](t[$x("0x80")].createRangeOn(e))}),{priority:"low"}),o.on($x("0x59"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[$x("0x30")]||1;i[$x("0x77")]=new Array(a)[$x("0x8e")](x)[$x("0x43")](((t,e)=>t+e));for(const{cell:e}of o[$x("0x9b")](s,{startRow:x,endRow:x+a-1}))i[$x("0x4e")][$x("0x2b")](t[$x("0x80")][$x("0x7f")](e))}),{priority:$x("0x38")}),n[$x("0x25")].registerDescriptionCallback((e=>{if(e[$x("0x63")]&&e.subType.startsWith($x("0x32")))return e[$x("0x29")]?{}:{type:$x("0x6a"),content:Yo(t[$x("0x44")],"*Replace table cells*")}}));const x=()=>{};for(const t of[$x("0x32"),"tablePasteColumn",$x("0x9a"),$x("0x1")])n[$x("0x56")].registerCustomCallback("insertion",t,$x("0x5d"),x),n[$x("0x56")].registerCustomCallback($x("0x97"),t,$x("0x5d"),x);n[$x("0x56")][$x("0x6c")]($x("0x41"),$x("0x1"),"discard",x),n[$x("0x56")][$x("0x6c")]($x("0x41"),$x("0x1"),$x("0x7"),((e,n,o)=>{const s=e.map((t=>t[$x("0x98")]()))[$x("0x7c")]((t=>t)),r=new Map(s[$x("0x43")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[$x("0x14")])e&&r[$x("0x94")](t,e);else if(o&&o[$x("0x40")])for(const[e,n]of Object[$x("0x4c")](o[$x("0x40")])){const o=t[$x("0x80")][$x("0x85")][$x("0xd")](e),s=o?o.getRange().getContainedElement():null;s&&r.set(s,n)}t[$x("0x80")].change((t=>{for(const[e,n]of r)t[$x("0x4")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[$x("0x56")][$x("0x6c")](e,"tablePaste",o,((s,r,i)=>{t[$x("0x80")][$x("0x37")]((t=>{const x=[];for(const t of s){const e=t.start[$x("0x54")];e.is($x("0x84"),$x("0x61"))&&x[$x("0x2b")](e)}n[$x("0x56")][$x("0xc")](e,null,o)(s,r,i);for(const e of x)$x("0x23")!=e[$x("0x87")][$x("0x67")]&&t[$x("0x8f")](e)}))}))};a($x("0x6a"),$x("0x7")),a($x("0x6a"),$x("0x71")),a("deletion",$x("0x7")),a($x("0x97"),$x("0x71")),n[$x("0x56")][$x("0x6c")]($x("0x6a"),$x("0x9a"),$x("0x71"),(t=>{const e=t.map((t=>t[$x("0x98")]())),n=e[0].findAncestor("table"),{minRow:r,maxRow:i}=s[$x("0x1f")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[$x("0x56")][$x("0x6c")]($x("0x6a"),"tablePasteColumn","discard",(t=>{const e=t.map((t=>t[$x("0x98")]())),n=e[0][$x("0x6b")]($x("0x3c")),{minColumn:r,maxColumn:i}=s[$x("0x1f")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[$x("0x63")]||!e[$x("0x63")][$x("0x31")]($x("0x32")))return;const o=e[$x("0x36")][$x("0x12")],s=n[$x("0x58")]()[$x("0x7c")]((t=>t[$x("0x27")]&&t[$x("0x36")]&&t[$x("0x36")].tablePasteChainId==o));s.length&&e[$x("0x6e")]()[$x("0x2a")]!=s.length&&s[$x("0x1a")](((t,e)=>(t[$x("0x5b")]=e,e[$x("0x29")]=t,e)))};function l(t,e=!0){const{id:o}=n[$x("0x4f")](t.markerName),s=["ck-suggestion-marker",$x("0x7a")],r=n.activeMarkers[$x("0x3d")](t[$x("0x57")]);return r&&s[$x("0x2b")]($x("0xf")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:$x("0x19")}),n.on("suggestionUnloaded",c,{priority:$x("0x19")}),t.model[$x("0x22")][$x("0x92")]((()=>{let e=!1;const o=Array[$x("0x47")](t[$x("0x80")].document[$x("0x4d")][$x("0x95")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[$x("0x4f")](s);if($x("0x5")!=o||$x("0x97")!=i||r[$x("0x3f")])continue;if(!n[$x("0x2d")](x))continue;const a=n[$x("0x76")](x)[$x("0x3e")](),c=t[$x("0x6d")].get($x("0x45")).me;for(const t of n[$x("0x58")]())if(t.isInContent&&t[$x("0x8")]==c&&$x("0x41")==t.type&&"tablePasteCell"==t[$x("0x63")]&&t.getRanges()[$x("0x20")]((t=>a[$x("0xa0")]((e=>e[$x("0x51")](t,!0))))))for(const n of t[$x("0x6e")]())n[$x("0x27")]&&(n[$x("0x71")](),e=!0)}return e})),t[$x("0x80")][$x("0x22")][$x("0x92")]((e=>{const o=t[$x("0x34")][$x("0xd")]($x("0x8d"));if(!o||!o._createdBatches[$x("0x78")](e[$x("0x93")]))return!1;let s=!1;const r=t[$x("0x6d")].get($x("0x45")).me,i=t[$x("0x80")][$x("0x22")][$x("0x4d")][$x("0x2c")](),x=Array[$x("0x47")](t[$x("0x80")][$x("0x22")][$x("0x4d")].getChangedMarkers())[$x("0x7c")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[$x("0x4f")](t);return $x("0x5")==o&&$x("0x32")==s&&i==r.id&&!e.oldRange}));for(const t of i){if($x("0x7b")!=t[$x("0x8b")]||$x("0x61")!=t[$x("0xb")]||1!=t[$x("0x2a")])continue;const n=e.createRange(t[$x("0x5a")],t[$x("0x5a")][$x("0x26")](1));if(!x.find((({data:t})=>t[$x("0x10")][$x("0x75")](n))))for(const{name:t,data:o}of x)if(n[$x("0x51")](o.newRange)){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[$x("0x80")][$x("0x22")][$x("0x92")]((e=>{let o=!1;const s=t[$x("0x6d")][$x("0xd")]($x("0x45")).me,r=n[$x("0x58")]().filter((t=>t[$x("0x27")]&&t[$x("0x8")]==s)),i=new Set,x=new Set;for(const t of r)if($x("0x32")==t[$x("0x63")])for(const e of t.getMarkers()){const n=e[$x("0x9c")]().getContainedElement();if(n)if(n.is("element","tableCellSuggestion")&&Zx(n)){t[$x("0x68")](e[$x("0xb")]),i.add(n),o=!0;const s=n[$x("0x9d")],r=n[$x("0x99")],a=s&&s.is($x("0x84"),$x("0x61")),c=r&&r.is($x("0x84"),$x("0x61"));a&&!i[$x("0x78")](s)&&x[$x("0x9e")](s),c&&!i[$x("0x78")](r)&&x[$x("0x9e")](r)}else n.is($x("0x84"),"paragraph")&&n.isEmpty&&(t[$x("0x68")](e[$x("0xb")]),o=!0)}else if($x("0x1")==t[$x("0x63")]){if(!t.attributes||!t[$x("0x36")][$x("0x12")])continue;const e=t[$x("0x36")].markerAttributes;if(e&&Object[$x("0x11")](e)[$x("0x2a")])continue;const n=t[$x("0x36")][$x("0x12")];let s=!0,i=!0;for(const e of r)if(e.subType&&e[$x("0x63")][$x("0x31")]($x("0x32"))){if(!e[$x("0x36")][$x("0x12")]){i=!1;break}if(e.id!=t.id&&e[$x("0x36")][$x("0x12")]==n){s=!1;break}}i&&s&&(t[$x("0x50")](),o=!0)}for(const t of i)e[$x("0x17")](t);for(const t of x)e[$x("0x8f")](t);return o})),t[$x("0x83")].for("editingDowncast")[$x("0x66")]({model:$x("0x21"),view:(t,e)=>l(t),converterPriority:$x("0x19")}),t[$x("0x83")].for($x("0x90"))[$x("0x66")]({model:$x("0x21"),view:(t,e)=>e[$x("0x2f")].showSuggestionHighlights?l(t,!1):null,converterPriority:$x("0x19")});const d=t[$x("0x2")][$x("0x7d")];this[$x("0x82")](d[$x("0x22")],$x("0x3a"),((t,e)=>{const n=[];for(const t of d.createRangeIn(e.content).getItems())t.is("element",$x("0x69"))&&n[$x("0x2b")](t);d.change((t=>{for(const e of n)t[$x("0x8c")](t.createRangeIn(e),t[$x("0x65")](e)),t[$x("0x17")](e)}))}))}}function Zx(t){if(t[$x("0x15")])return!0;const e=t[$x("0x6")](0);return e.is($x("0x84"),$x("0x9f"))&&e[$x("0x15")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["plugins","getColumnGroupElement","handleSuggestionDescription","columnWidths","getAttribute","formatGroupId","handleResizeTableWidthCommand","tableWidth","enableCommand","TableColumnResizeEditing","resizeTable","registerDescriptionCallback","accept","model","*Format:* resize table","afterInit","editor","getSelectedElement","bind","_suggestionFactory","_descriptionFactory","selection","Users","markBlockFormat","document","formatBlock","getSuggestions","getSuggestionCallback","change","get","discard","getContainedElement","resizeTableWidth","registerCustomCallback","subType","getTableColumnsWidths","table"];var ea,na;ea=ta,na=397,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x19")](){if(!this[oa("0x1a")][oa("0xa")].has(oa("0x13")))return;const t=this.editor[oa("0xa")][oa("0x2")]("TrackChangesEditing");t[oa("0x12")](oa("0x5"),this[oa("0x10")][oa("0x1c")](this)),t[oa("0x12")]("resizeColumnWidths",this[oa("0x10")].bind(this)),t[oa("0x1d")][oa("0x6")](oa("0x23"),"resizeTable","accept",t[oa("0x1d")].getSuggestionCallback("formatBlock",null,oa("0x3"))),t[oa("0x1d")][oa("0x6")]("formatBlock",oa("0x14"),"discard",t[oa("0x1d")][oa("0x0")](oa("0x23"),null,oa("0x16"))),t[oa("0x1e")][oa("0x15")](this.handleSuggestionDescription.bind(this))}[oa("0x10")](t,e){const n=this[oa("0x1a")].plugins[oa("0x2")]("TrackChangesEditing"),o=this.editor.plugins[oa("0x2")](oa("0x13")),s=e[oa("0x9")]||this.editor[oa("0x17")][oa("0x22")][oa("0x1f")][oa("0x1b")]();this.editor[oa("0x17")][oa("0x1")]((()=>{const r=o[oa("0xb")](s);let i=r?o[oa("0x8")](r):null,x=s[oa("0xe")](oa("0x11"))||null;const a=e[oa("0x11")]||x,c=e[oa("0xd")]||i,l=this[oa("0x1a")][oa("0xa")][oa("0x2")](oa("0x20")).me;for(const t of n[oa("0x24")]()){const e=t[oa("0x4")]();if("resizeTable"===t[oa("0x7")]&&e===s){t.author!==l&&t[oa("0x3")]();const e=t.data.commandParams;x=e[0][oa("0x11")],i=e[0][oa("0xd")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x21")](s,{commandName:oa("0x5"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x14")},[],oa("0x14"))}))}[oa("0xc")](t){const{data:e}=t;if(e&&oa("0x14")===e[oa("0xf")]){const t=oa("0x18");return{type:"format",content:Yo(this[oa("0x1a")].locale,t)}}}}const ra=["TrackChangesEditing","enableCommand","editor","insertTemplate","get"];var ia,xa;ia=ra,xa=289,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){const t=this[aa("0x3")];t.plugins.has("Template")&&t.plugins[aa("0x0")](aa("0x1"))[aa("0x2")](aa("0x4"))}}const la=["locale","tableOfContents","insertTableOfContents","ELEMENT_TABLE_OF_CONTENTS","enableCommand","commands","get"];var da,ua;da=la,ua=229,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{afterInit(){const t=this.editor;if(!t[ga("0x0")][ga("0x1")]("insertTableOfContents"))return;t.plugins[ga("0x1")]("TrackChangesEditing")[ga("0x6")](ga("0x4"));const e=t.plugins[ga("0x1")]("TrackChangesEditing"),n=t[ga("0x2")];e._descriptionFactory.registerElementLabel(ga("0x3"),(t=>Yo(n,ga("0x5"),t)))}}const fa=["document","get","getChangedMarkers","_descriptionFactory","end","registerElementLabel","isEqual","newRange","updateMarker","suggestion","forward","locale","isCollapsed","model","title-content","Title","getNearestSelectionRange","start","schema","afterInit","registerPostFixer","nodeBefore","removeMarker","isTouching","plugins","editor"];var ha,pa;ha=fa,pa=165,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0xa")](){const t=this[ba("0x10")];if(!t[ba("0xf")].has(ba("0x6")))return;const e=t[ba("0xf")][ba("0x12")]("TrackChangesEditing");e[ba("0x14")][ba("0x16")](ba("0x5"),(()=>Yo(t[ba("0x2")],"ELEMENT_TITLE"))),t[ba("0x4")][ba("0x11")][ba("0xb")]((n=>{let o=!1;const s=Array.from(t[ba("0x4")][ba("0x11")].differ[ba("0x13")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x0")!==s||!i[ba("0x18")])continue;const x=i[ba("0x18")],a=x[ba("0x15")][ba("0xc")];if(!a||!a.is("element",ba("0x5")))continue;if(!x[ba("0x8")][ba("0xe")](x.end))continue;const c=t[ba("0x4")][ba("0x9")][ba("0x7")](x[ba("0x15")],ba("0x1"));if(c&&c[ba("0x3")]){const t=n.createRange(x[ba("0x8")],c.start);t[ba("0x17")](x)||(n[ba("0x19")](r,{range:t}),o=!0)}o||(n[ba("0xd")](r),o=!0)}return o}))}}const _a=["enableCommand","has","undo","UndoEditing","plugins","editor","afterInit","get"];var Ta,Ca;Ta=_a,Ca=157,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x1")](){const t=this[ya("0x0")],e=t[ya("0x7")][ya("0x2")]("TrackChangesEditing");t[ya("0x7")][ya("0x4")](ya("0x6"))&&(e[ya("0x3")](ya("0x5")),e[ya("0x3")]("redo"))}}const Aa=["get","plugins","enableCommand","editor","has","TableCaptionEditing"];var va,Ra;va=Aa,Ra=138,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 requires(){return[wx]}afterInit(){const t=this[Sa("0x3")];t.plugins[Sa("0x4")](Sa("0x5"))&&t[Sa("0x1")][Sa("0x0")]("TrackChangesEditing")[Sa("0x2")]("toggleTableCaption")}}const La=["styles","document","editor","TrackChangesEditing","DocumentListUtils","*Format:* set start index to %0","commandParams","expandListBlocksToCompleteList","bind","getListTypeFromListStyleType","handleDescriptions","length","_getSuggestionBlocks","listType","*Change to:* %0","toUpperCase","handleListStartCommand","push","listStyle","_getTranslationKeyForListStyle","commandName","DocumentListPropertiesEditing","afterInit","isListItemBlock","list.properties","get","listStart","plugins","startIndex","type","listReversed","ELEMENT_","reversed","enableCommand","_getSuggestionBlocksForListStyle","filter","has","locale","_LIST_","change","selection","*Format:* set order to reversed","model","format","handleListReversedCommand","DocumentListPropertiesUtils","handleListStyleCommand","getAttribute","markMultiRangeBlockFormat","from","numbered","registerDescriptionCallback","replace"];var Na,Ma;Na=La,Ma=183,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x33")](){if(!this[wa("0x1f")][wa("0x3")][wa("0xc")](wa("0x32")))return;const t=this[wa("0x1f")].config[wa("0x1")](wa("0x0")),e=this[wa("0x1f")][wa("0x3")][wa("0x1")](wa("0x20"));t[wa("0x1d")]&&e[wa("0x9")](wa("0x2f"),this[wa("0x16")][wa("0x25")](this)),t[wa("0x8")]&&e[wa("0x9")](wa("0x6"),this[wa("0x14")][wa("0x25")](this)),t[wa("0x4")]&&e.enableCommand(wa("0x2"),this[wa("0x2d")][wa("0x25")](this)),e._descriptionFactory[wa("0x1b")](this.handleDescriptions[wa("0x25")](this))}[wa("0x16")](t,e={}){const n=this.editor.plugins.get(wa("0x20")),o=this[wa("0xa")]();this[wa("0x1f")][wa("0x12")][wa("0xf")]((()=>{n[wa("0x18")](o,{commandName:wa("0x2f"),commandParams:[{type:e[wa("0x5")]}],formatGroupId:wa("0x2f")})}))}[wa("0x14")](t,e={}){const n=this[wa("0x1f")][wa("0x3")].get(wa("0x20")),o=this.editor[wa("0x3")][wa("0x1")](wa("0x21")),s=this[wa("0x29")]((t=>o[wa("0x34")](t)&&wa("0x1a")===t[wa("0x17")](wa("0x2a"))));null!==s&&this[wa("0x1f")][wa("0x12")][wa("0xf")]((()=>{n[wa("0x18")](s,{commandName:"listReversed",commandParams:[{reversed:e[wa("0x8")]}],formatGroupId:wa("0x6")})}))}[wa("0x2d")](t,e={}){const n=this.editor[wa("0x3")][wa("0x1")](wa("0x20")),o=this[wa("0x1f")].plugins[wa("0x1")](wa("0x21")),s=this[wa("0x29")]((t=>o[wa("0x34")](t)&&wa("0x1a")===t.getAttribute(wa("0x2a"))));null!==s&&this.editor.model[wa("0xf")]((()=>{n[wa("0x18")](s,{commandName:wa("0x2"),commandParams:[{startIndex:e[wa("0x4")]}],formatGroupId:wa("0x2")})}))}[wa("0x27")](t){const e=this[wa("0x1f")][wa("0xd")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x31")]){case wa("0x2f"):o=wa("0x2b"),s={type:wa("0x13"),content:Yo(e,o,Yo(e,this[wa("0x30")](n.commandParams[0][wa("0x5")])))};break;case wa("0x6"):o=n[wa("0x23")][0][wa("0x8")]?wa("0x11"):"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case wa("0x2"):o=wa("0x22"),s={type:wa("0x13"),content:Yo(e,o,n.commandParams[0][wa("0x4")])}}return s}_getSuggestionBlocksForListStyle(){const t=this.editor[wa("0x3")][wa("0x1")](wa("0x21"));let e=Array.from(this[wa("0x1f")][wa("0x12")][wa("0x1e")].selection.getSelectedBlocks());return e[wa("0x2e")](...t[wa("0x24")](e)),e=[...new Set(e)],e}[wa("0x29")](t){const e=this.editor[wa("0x3")].get("DocumentListUtils");let n=Array[wa("0x19")](this[wa("0x1f")].model[wa("0x1e")][wa("0x10")].getSelectedBlocks())[wa("0xb")](t);if(!n[wa("0x28")])return null;n=e[wa("0x24")](n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[wa("0x2e")](t);return o}[wa("0x30")](t){return wa("0x7")+this[wa("0x1f")].plugins[wa("0x1")](wa("0x15"))[wa("0x26")](t)[wa("0x2c")]()+wa("0xe")+t.toUpperCase()[wa("0x1c")](/-/g,"_")}}const Fa=["plugins","_descriptionFactory","tableAlignment","tableHeight","handleSuggestionDescription","setAttribute","join","model","removeAttribute","getSuggestionCallback","pluginName","*Format:* change table properties","findAncestor","TablePropertiesEditing","has","registerCustomCallback","TableUtils","tableCellBorderWidth","afterInit","enableCommand","subType","data","tableCellProperties","table","editor","enqueueChange","commandParams","document","accept","tableProperties","getFirstPosition","getAttribute","discard","markBlockFormat","locale","selection","format","_getSuggestion","get","tableCellPadding","_suggestionFactory","tableBorderStyle","*Format:* change table cell properties","handleDiscardAction","formatBlock","tableCellHeight","tableBorderWidth","TrackChangesEditing","getSelectionAffectedTableCells","_handlePropertyChange","tableBorderColor","registerDescriptionCallback","tableWidth","change","TrackChangesTableProperties","tableCellBorderColor","tableBackgroundColor","tableCellWidth"];var Pa,Da;Pa=Fa,Da=170,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("0x21")]=[Ba("0x36"),Ba("0x2d"),Ba("0x32"),Ba("0x6"),Ba("0x38"),Ba("0x7"),Ba("0x2")],this.tableCellProperties=[Ba("0x1"),"tableCellBorderStyle",Ba("0x15"),Ba("0x2b"),Ba("0x3"),Ba("0x31"),"tableCellBackgroundColor","tableCellHorizontalAlignment","tableCellVerticalAlignment"]}static get[Ba("0xe")](){return Ba("0x0")}[Ba("0x16")](){const t=this.editor[Ba("0x4")].get(Ba("0x33"));if(this[Ba("0x1c")].plugins[Ba("0x12")](Ba("0x11"))){for(const e of this[Ba("0x21")])t[Ba("0x17")](e,((t,n)=>{const o=this[Ba("0x1c")][Ba("0xb")][Ba("0x1f")][Ba("0x27")][Ba("0x22")]()[Ba("0x10")](Ba("0x1b"));this[Ba("0x35")](e,[o],this[Ba("0x21")],Ba("0x21"),t,n)}));t[Ba("0x2c")][Ba("0x13")](Ba("0x30"),"tableProperties","accept",t[Ba("0x2c")].getSuggestionCallback(Ba("0x30"),null,Ba("0x24"))),t[Ba("0x2c")][Ba("0x13")]("formatBlock",Ba("0x21"),Ba("0x24"),((t,e)=>this[Ba("0x2f")](this[Ba("0x21")],t,e))),t[Ba("0x2c")][Ba("0x13")](Ba("0x30"),Ba("0x21"),"join",(()=>!1))}if(this[Ba("0x1c")][Ba("0x4")][Ba("0x12")]("TableCellPropertiesEditing")){for(const e of this.tableCellProperties)t[Ba("0x17")](e,((t,n)=>{const o=this.editor[Ba("0x4")][Ba("0x2a")](Ba("0x14"))[Ba("0x34")](this[Ba("0x1c")][Ba("0xb")][Ba("0x1f")][Ba("0x27")]);this._handlePropertyChange(e,o,this[Ba("0x1a")],"tableCellProperties",t,n)}));t._suggestionFactory[Ba("0x13")](Ba("0x30"),"tableCellProperties",Ba("0x20"),t[Ba("0x2c")][Ba("0xd")](Ba("0x30"),null,"discard")),t[Ba("0x2c")][Ba("0x13")]("formatBlock","tableCellProperties",Ba("0x24"),((t,e)=>this[Ba("0x2f")](this[Ba("0x1a")],t,e))),t._suggestionFactory[Ba("0x13")](Ba("0x30"),Ba("0x1a"),Ba("0xa"),(()=>!1))}t[Ba("0x5")][Ba("0x37")]((t=>this[Ba("0x8")](t)))}[Ba("0x35")](t,e,n,o,s,r){const i=this.editor[Ba("0x4")][Ba("0x2a")]("TrackChangesEditing");this[Ba("0x1c")].model[Ba("0x1d")](r.batch,(()=>{for(const t of e)if(this[Ba("0x29")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x23")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x25")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start.nodeAfter,s=n[Ba("0x1e")][0];this[Ba("0x1c")][Ba("0xb")][Ba("0x39")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x9")](n,s[n],o):e[Ba("0xc")](n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x19")])switch(t[Ba("0x18")]){case Ba("0x21"):return{type:Ba("0x28"),content:Yo(this[Ba("0x1c")][Ba("0x26")],Ba("0xf"))};case Ba("0x1a"):return{type:"format",content:Yo(this[Ba("0x1c")][Ba("0x26")],Ba("0x2e"))}}}[Ba("0x29")](t,e){const n=this.editor.plugins[Ba("0x2a")](Ba("0x33"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o.getContainedElement();if(o[Ba("0x18")]===e&&n===t)return o}return null}}const Ua=["moveTargetPosition","_addSuggestionMarker","low","plugins","_saved","@external","markerToData","notReady","next","activeMarkers","_createSuggestion","formatInline:accept","conversion","root","enableCommand","return","forceDefaultExecution","get","getAllAdjacentSuggestions","addClass","ck-suggestion-marker-formatBlock","createRange","trackChanges.trackFormatChanges","from","markers","_setSuggestionRange","init","elementStart","createRangeIn","discardSelectedSuggestions","options","_editor","unbindElementFromMarkerName","differ","insertion:join","getWalker","value","previous","nodeAfter","_setSuggestionData","dataToMarker","_suggestionFactory","CommentsRepository","pluginName","consume","dataReady","discardAllSuggestions","getMarkers","formatBlock:chain","isRemovable","type","define","insert","getLastMatchingPosition","open","ck-suggestion-marker--active","model","splitPosition","targetPosition","creator","removeMarker","change:data","forward","insertion","_refreshSuggestionsChain","_enabledCommands","rootName","split","getNearestSelectionRange","clone","suggestion","getRanges","stopListening","Users","values","includes","track-changes-command-not-found","formatGroupId","after","some","isInContent","requires","mapper","acceptSuggestion","suggestionLoaded","editing","formatInline","_descriptionFactory","join","addSuggestion","createSelection","insertion:","discard","elementToElement","commentThread","markDeletion","subType","lowest","getSuggestionCallback","containerElement","high","isMultiRange","elementEnd","howMany","trackChangesCommand","move","getSuggestion","isSelectable","head","rejected","isLimit","formatBlock:discard","$graveyard","change","normal","isLocal","hasComments","removeMarkers","editingDowncast","isInsideObject","documentSelection","isCollapsed","getCustomProperty","deletion:chain","accept","commands","track-changes-suggestion-data-mismatch","isAtStart","name","markerToHighlight","showSuggestionHighlights","element","addMarker:suggestion:formatBlock","insertContent","markMultiRangeInsertion","isBefore","editor","newRange","deletion:join","parent","isTouching","markMultiRangeDeletion","isAfter","error-saving-suggestion-data-suggestion-discarded","change:activeMarkers","updateMarker","track-changes-suggestion-not-found","_adapter","update:suggestion","backward","attributes","bindElementToMarker","commandName","getFirstRange","deleteContent","markBlockFormat","writer","filter","_handleNewSuggestionMarker","stop","getAncestors","getAttribute","_model","length","markInlineFormat","hasCommentThread","fromRange","trackChanges","getSuggestions","insertion:discard","originalSuggestionId","execute","applyOperation","end","_removeSuggestion","_splitMarkerName","nodeBefore","_joinWithAdjacentSuggestions","suggestionChanged","formatInline:","_customCallbacks","setSelection","multipleBlocks","_rangeIsInLocalUserInsertion","isEqual","set","acceptAllSuggestions","unbind","resolve","then","listenTo","before","deletion:accept","createdAt","isNextTo","_trackFormatChanges","data-suggestion","updateSuggestion","registerCustomCallback","add","marker-count","getChangedMarkers","range","getDifference","ck-suggestion-marker","formatBlock:","ck-suggestion-marker-","_checkSuggestionCorrectness","suggestionUnloaded","_getAuthorFromId","change:_saved","_suggestions","push","authorName","ready","hasSuggestion","getMultiRangeId","markMultiRangeBlockFormat","_registerDefaultCallbacks","suggestion:","getUser","containsItem","isDocumentOperation","createPositionAfter","_getExternalAuthor","createPositionAt","collaboration.channelId","data","config","default","getCommentThread","getRange","setAttribute","PENDING_ACTION_SUGGESTION","removeMarker:suggestion:formatBlock","_joinSuggestions","authoredAt","_addThreadToSuggestion","remove","addRange","for","fire","schema","highest","discardSuggestion","substr","suggestion-type","rethrowUnexpectedError","skipNestingCheck","addMarker:suggestion","chain","addHighlight","PendingActions","_commentsRepository","document","getChanges","selection","addSuggestionData","map","isIntersectingWithRange","$textProxy","formatInline:chain","isOwn","isUndo","batch","deletion:","getShiftedBy","acceptSelectedSuggestions","trackChanges.mergeNestedSuggestions","isAtEnd","reconvertMarker","registerPostFixer","_mergeNestedSuggestions","never","accepted","_defaultCallbacks","every","multi","fetchCommentThread","deletion:discard","createElement","removeComment","formatBlock:join","_breakSuggestionMarker","_updateSuggestionData","addMarkerName","delete","always","item","_findSuggestions","position","_cutOutSuggestionMarker","oldRange","upcast","markerReady","markerName","getFirstMarker","removed","track-changes-adapter-missing-getsuggestion","size","isBlock","author","adapter","formatBlock","_isForcedDefaultExecutionBlock","isExternal","setTo","_suggestionState","locale","clear","createPositionBefore","containsRangeInObject","catch","consumable","enqueueChange","detach","start","containsRange","getItems","deletion","getIntersection","has","formatInline:join","dataDowncast","toViewElement","isObject","removeAttribute","removeClass"];var Ga,Ha;Ga=Ua,Ha=131,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[za("0x116")](){return[za("0xef"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,Xi,tx,ix,ux,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0xf0")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[za("0x7f")]((t=>String.fromCharCode(t))).join("")}super(t),this.set(za("0xce"),[]),this.on(za("0xd"),((e,n,o,s)=>{this._model.change((()=>{for(const e of[...s,...o])this[za("0x1f")][za("0xdd")][za("0xbe")](e)&&t[za("0x11a")][za("0x8b")](e)}))})),this[za("0x11c")]=new ss(this[za("0x5")][za("0xfd")].schema,this[za("0x5")][za("0xb1")]),this[za("0x10")]=null,this[za("0xee")]=new Va(this[za("0x5")]),this[za("0x50")]=new Map,this[za("0x7a")]=t[za("0xc8")][za("0xd6")]("CommentsRepository"),this._enabledCommands=new Set,this[za("0x1f")]=this[za("0x5")][za("0xfd")],this[za("0xb0")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t.config[za("0xf8")](za("0xdb"),za("0x62")),this[za("0x40")]=t.config.get(za("0xdb")),t.config.define(za("0x89"),!0),this._mergeNestedSuggestions=t[za("0x61")][za("0xd6")]("trackChanges.mergeNestedSuggestions"),this.trackChangesCommand=new u(t,this[za("0x106")]),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,53,50])}[za("0xdf")](){const t=this[za("0x5")];t[za("0xd1")].for(za("0x13b"))[za("0x146")]({model:za("0x10b"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[za("0xa4")]),o=["ck-suggestion-marker","ck-suggestion-marker-"+n];let s=3e3;return this[za("0xce")][za("0x110")](t[za("0xa4")])&&(o[za("0x51")](za("0xfc")),s=3010),za("0xbc")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0xd1")][za("0x6d")]("dataDowncast")[za("0x44")]((e=>{e.on(za("0x76"),((e,n,o)=>{if(!o.options[za("0x147")])return;const s=n[za("0x9d")];if(!s)return;const r=o.mapper[za("0xc1")](s);t[za("0xfd")][za("0x6f")][za("0xc2")](s)&&r&&!r[za("0x13f")]("widget")&&r.is(za("0x128"))&&(0,x.toWidget)(r,o[za("0x19")])}),{priority:za("0x129")})})),t.conversion[za("0x6d")]("dataDowncast").markerToHighlight({model:"suggestion",view:(t,e)=>{if(!e[za("0xe3")][za("0x147")])return null;const{type:n}=this[za("0x2c")](t[za("0xa4")]);return{classes:["ck-suggestion-marker",za("0x4b")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[za("0x9d")].is(za("0x7d")))return void s[za("0xb6")][za("0xf1")](o[za("0x9d")],n[za("0x145")]);const r=s[za("0x117")][za("0xc1")](o.item);if(!o[za("0x9d")].is(za("0x0"))||!t.model[za("0x6f")][za("0xa9")](o[za("0x9d")])||r.getCustomProperty(za("0x78")))return;const{id:i}=this[za("0x2c")](o[za("0xa4")]);s[za("0x19")][za("0xd8")]([za("0x49"),za("0xd9")],r),s[za("0x19")][za("0x65")](za("0x41"),i,r),s[za("0x117")][za("0x14")](r,o[za("0xa4")]),e&&(this[za("0xce")].includes(o[za("0xa4")])?s[za("0x19")][za("0xd8")](za("0xfc"),r):s[za("0x19")][za("0xc4")](za("0xfc"),r));for(const e of t[za("0xfd")][za("0xe1")](o.item)[za("0xbb")]())s[za("0xb6")][za("0xf1")](e,n[za("0x145")]);s[za("0xb6")][za("0xf1")](o.item,n.name)};t[za("0xd1")][za("0x6d")](za("0xc0")).add((t=>{t.on(za("0x1"),((t,e,o)=>{o[za("0xe3")][za("0x147")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x70")})})),t[za("0xd1")][za("0x6d")](za("0xc0"))[za("0xcb")]({model:za("0x10b"),view:(t,e)=>e[za("0xe3")][za("0x147")]?null:{group:za("0x10b"),name:t[za("0x72")](11)}}),t.conversion.for(za("0xa2"))[za("0x122")]({view:{name:za("0x10b"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x58")+t[za("0x1e")](za("0x73"))+":"+t[za("0x1e")]("id");return t[za("0x1e")](za("0x45"))&&(n+=":"+t[za("0x1e")](za("0x45"))),e[za("0x95")]("$marker",{"data-name":n})}}),t[za("0xd1")][za("0x6d")](za("0xa2"))[za("0xed")]({view:za("0x10b")}),t[za("0xd1")][za("0x6d")]("editingDowncast")[za("0x44")]((t=>{t.on(za("0x1"),n(),{priority:za("0x129")})})),t[za("0xd1")][za("0x6d")](za("0x13b"))[za("0x44")]((t=>{t.on(za("0x67"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[za("0xa4")]);if(o)for(const t of o)t.getCustomProperty("addHighlight")||(n[za("0x19")].removeClass([za("0x49"),za("0xd9"),za("0xfc")],t),n[za("0x19")][za("0xc3")](za("0x41"),t),n[za("0x117")][za("0xe5")](t,e.markerName))}),{priority:za("0x129")})})),t.model.document.registerPostFixer((e=>{let n=!1;const o=Array.from(t[za("0xfd")][za("0x7b")][za("0xe6")][za("0x46")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x2c")](x);if("suggestion"!==o)continue;const d=this[za("0x50")][za("0xd6")](l);if(null!=a.newRange)if(za("0x11b")==c&&(n=n||$a(a.newRange,x,e,t[za("0xfd")][za("0x6f")])),a[za("0x6")][za("0x13e")]||"$graveyard"==a[za("0x6")][za("0xd2")][za("0x107")]||za("0xac")==c&&!Ja(a[za("0x6")])||za("0xbc")==c&&(qa(i=a[za("0x6")])||(r=i)[za("0xb9")][za("0x8")]==r[za("0x2a")][za("0x2d")]&&r[za("0xb9")][za("0x8a")]))e[za("0x101")](x),n=!0;else{if(!d||!d.isInContent)continue;s[za("0x44")](d)}}var r,i;return s[za("0xa8")]>0&&(n=!!this[za("0x2e")](s)||n),n})),t.model[za("0x7b")][za("0x8c")]((e=>{let n=!1;for(const o of t.model[za("0x7b")].differ[za("0x7c")]()){if(za("0xf9")!=o[za("0xf7")])continue;const s=o[za("0x9f")][za("0x87")](o[za("0x20")]);if(s.isAtEnd)for(const r of this[za("0x50")].values()){if(r.isMultiRange||!r[za("0x115")])continue;if(za("0xac")!=r[za("0xf7")])continue;const i=r.getFirstRange();if(i[za("0xb9")].parent!=i[za("0x2a")][za("0x8")]&&i[za("0x2a")][za("0x35")](o.position)){const o=t.model.createRange(i[za("0xb9")],s);e[za("0xe")](r[za("0xa5")](),{range:o}),n=!0}}}return n})),t[za("0xfd")].markers.on(za("0x11"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0x2c")](e[za("0x145")]),n=this[za("0x50")][za("0xd6")](t);n&&n.addMarkerName(e.name)}})),t.model[za("0x7b")].on(za("0x102"),(()=>{const e=Array[za("0xdc")](t[za("0xfd")][za("0x7b")][za("0xe6")][za("0x46")]())[za("0x1a")]((t=>"suggestion"===this._splitMarkerName(t.name).group));if(0===e[za("0x20")])return;e.sort(((t,e)=>{const n=t[za("0x60")][za("0xa1")],o=e[za("0x60")][za("0xa1")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[za("0x4")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x2c")](t);if(null===s.oldRange){const e=this[za("0x1b")](t);o[za("0x44")](e)}else{const t=this._suggestions[za("0xd6")](e);null!==s.newRange||t.isInContent?(n[za("0x44")](t[za("0x131")]),o.add(t)):this[za("0x2b")](t)}}o[za("0xa8")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0x6e")]("suggestionChanged",t)})),t.model.on(za("0x29"),((e,n)=>{const o=n[0];if(!this[za("0x50")][za("0xa8")])return;if(!o[za("0x5b")])return;if(o[za("0x85")][za("0x84")]||!o.batch[za("0x138")])return;let s,r;switch(o[za("0xf7")]){case"insert":s=t[za("0xfd")][za("0x5e")](o[za("0x9f")]),r=s.getShiftedBy(o[za("0x12c")]);break;case za("0x108"):s=t[za("0xfd")][za("0x5e")](o[za("0xfe")]),r=t.model.createPositionAt(o[za("0xc5")]);break;case za("0x12e"):s=t[za("0xfd")].createPositionAt(o[za("0xff")]),r=s[za("0x87")](o[za("0x12c")]);break;default:return}const i=t[za("0xfd")][za("0xda")](s,r);t[za("0xfd")][za("0x136")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t[za("0x12a")])continue;if("formatInline"==t[za("0xf7")])continue;const n=t[za("0x60")]&&t[za("0x60")][za("0x33")];(za("0xac")!=t[za("0xf7")]||za("0x108")==o[za("0xf7")]&&!n)&&(e[za("0xb4")]||za("0x104")==t.type&&e[za("0x83")]||t[za("0x16")]()[za("0xba")](i)&&this[za("0x98")](t,s,r))}}))}),{priority:za("0x126")}),t[za("0xfd")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0xd5")])return;if(this[za("0xad")])return;if(!this[za("0x12d")][za("0xe9")])return;if(o[za("0x13e")])return;const r=t.model.schema,{start:i,end:x}=o[za("0x16")](),a=i[za("0xeb")]&&r.isLimit(i[za("0xeb")])?null:r[za("0x109")](i,za("0x103")),c=x[za("0x2d")]&&r[za("0x133")](x[za("0x2d")])?null:r.getNearestSelectionRange(x,za("0x12")),l=t[za("0xfd")][za("0xda")](a?a[za("0xb9")]:i,c?c.end:x);t[za("0xfd")][za("0x136")]((e=>{this[za("0x124")](l);const n=t.model[za("0x6f")].getNearestSelectionRange(l[za("0xb9")]);o.is(za("0x13d"))?e[za("0x32")](n):o[za("0xaf")](n)})),e[za("0x1c")]()}),{priority:e.priorities[za("0x137")]+10}),t[za("0xfd")].on(za("0x2"),((e,n)=>{const o=n[n.length-1];o&&o[za("0xd5")]||this[za("0xad")]||this[za("0x12d")][za("0xe9")]&&(t[za("0xfd")][za("0x136")]((()=>{let o=t.model[za("0x2")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0xd4")]=o[za("0x10a")]();const s=o.end.nodeBefore,r=t.model[za("0x6f")];s&&r[za("0xa9")](s)&&!r[za("0xc2")](s)&&(o=t.model[za("0xda")](o[za("0xb9")],t[za("0xfd")].createPositionAt(s,za("0x2a")))),this.markInsertion(o)})),e[za("0x1c")]())}),{priority:za("0x129")}),this.editor[za("0x142")].add(za("0x24"),this[za("0x12d")]),this.enableCommand("trackChanges");const o=new p(t,this[za("0x50")]);t[za("0x142")][za("0x44")](za("0x118"),o),this[za("0xd3")](za("0x118"));const s=new C(t,this[za("0x50")]);t[za("0x142")][za("0x44")](za("0x71"),s),this.enableCommand(za("0x71")),t[za("0x142")].add(za("0x37"),new F(t,o,this[za("0x50")])),this.enableCommand(za("0x37")),t[za("0x142")].add(za("0xf3"),new F(t,s,this[za("0x50")])),this[za("0xd3")](za("0xf3")),t[za("0x142")][za("0x44")](za("0x88"),new U(t,o,this[za("0x50")])),this[za("0xd3")](za("0x88")),t[za("0x142")][za("0x44")](za("0xe2"),new U(t,s,this[za("0x50")])),this[za("0xd3")]("discardSelectedSuggestions");const r=t[za("0xc8")].get(za("0xef"));this[za("0x3b")](r,"addComment",((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n[za("0x123")]&&1===n.commentThread.length&&this[za("0x99")](e,{hasComments:!0})}),{priority:za("0xc7")}),this[za("0x3b")](r,za("0x96"),((t,{threadId:e})=>{const n=this[za("0x50")][za("0xd6")](e);n&&n[za("0x123")]&&!n[za("0x123")][za("0x20")]&&this[za("0x99")](e,{hasComments:!1})}),{priority:za("0xc7")})}set[za("0xab")](t){if(this[za("0x10")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[za("0x10")]=t}get adapter(){return this[za("0x10")]}[za("0x25")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x50")][za("0x10f")]())t&&!e.isInContent||n[za("0x51")](e);return e?n.map((t=>t.toJSON())):n}getSuggestion(t){const n=this._suggestions.get(t);if(!n)throw new e.CKEditorError(za("0xf"),this);return n}[za("0x54")](t){return this._suggestions[za("0xbe")](t)}[za("0x7e")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0xf7")][za("0x108")](":"),i=this[za("0x50")][za("0xd6")](n)||this[za("0xcf")](s,r,n,e,o);if(this[za("0x6a")](i),this._checkSuggestionCorrectness(i,s,r||null,e),i[za("0x3e")]=t[za("0x3e")],o&&o[za("0xca")]){const t=o[za("0xca")],e=this[za("0x5d")](t[za("0x52")]);i[za("0x69")]=t[za("0x3e")],i.author=e,i[za("0xae")]=!0}else i.authoredAt=t[za("0x3e")];switch(t[za("0x60")]&&(i[za("0x60")]=t.data),t[za("0x13")]&&(i[za("0x13")]=t[za("0x13")]),this[za("0x10")]&&this._adapter[za("0x11e")]||(i._saved=!0),this[za("0xb0")][za("0xd6")](i)){case za("0xcc"):this[za("0xb0")][za("0x36")](i,za("0xf2"));break;case za("0xa3"):i[za("0x115")]?(this[za("0xb0")].set(i,za("0x53")),this[za("0x6e")](za("0x119"),i)):this[za("0xb0")][za("0x36")](i,za("0xa6"))}return i}[za("0x118")](t){this[za("0xd5")]((()=>{this.editor.model.change((()=>{for(const e of t[za("0xd7")]())e[za("0x141")]()}))}))}discardSuggestion(t){this[za("0xd5")]((()=>{this.editor.model[za("0x136")]((()=>{for(const e of t[za("0xd7")]())e[za("0x121")]()}))}))}[za("0xd3")](t,n){const o=this[za("0x5")][za("0x142")][za("0xd6")](t);if(!o)throw new e.CKEditorError(za("0x111"),this,{commandName:t});this[za("0x106")].add(o),n&&o.on(za("0x28"),((t,e)=>{this.trackChangesCommand[za("0xe9")]&&(this[za("0xad")]||e[za("0x20")]>0&&e[e.length-1]&&e[e[za("0x20")]-1][za("0xd5")]||(n(((...t)=>o[za("0x28")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:za("0x129")})}[za("0xd5")](t){let n,o;const s=this[za("0xad")];this[za("0xad")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[za("0x74")](o,this),n}markInsertion(t,n=null,o={}){if(t[za("0x13e")])return null;const s=this[za("0x5")].plugins[za("0xd6")](za("0x10e")).me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,za("0x104")))if(o[za("0x83")]){if(!o[za("0x3f")]){if(!this[za("0x8d")]&&o[za("0xb4")])continue;return e}if(n==e[za("0x125")]){const n=e[za("0x16")]();return n[za("0xb9")][za("0x35")](t[za("0x2a")])?this[za("0xde")](e,this[za("0x1f")][za("0xda")](t[za("0xb9")],n[za("0x2a")])):this._setSuggestionRange(e,this[za("0x1f")][za("0xda")](n[za("0xb9")],t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x120")+n:"insertion",a=this[za("0xec")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xc6")](x,r,i,t),a}[za("0x3")](t,n="multi",o={}){const s=this[za("0x5")][za("0xc8")][za("0xd6")]("Users").me,r=this[za("0xee")].getSuggestionCallback("insertion",n,za("0x11d"));for(const e of this.getSuggestions())if(e[za("0xaa")].id==s.id&&za("0x104")==e[za("0xf7")]&&e[za("0x125")]==n&&(r(e[za("0x10c")](),t)||r(t,e[za("0x10c")]()))){for(const n of t)e[za("0x6c")](n);return e}if(this[za("0x8d")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x9e")](e,za("0x104"))){if(!o[za("0x83")])continue;let e=!0;for(const o of n[za("0x10c")]())for(const n of t)if(!o[za("0xba")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0x120")+n,c=this._setSuggestionData({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}[za("0x21")](t,n,o=null,s={}){if(o=o||Xa(n),t.isCollapsed)return null;if(za("0x8e")===this[za("0x40")]){const e=this._suggestionFactory.getSuggestionCallback("formatInline",o,za("0x141"));return this[za("0xd5")]((()=>e([t],n,s))),null}const r=this[za("0x5")][za("0xc8")].get(za("0x10e")).me,i=[];if("always"!==this[za("0x40")])for(const{suggestion:e,meta:n}of this[za("0x9e")](t,za("0x104")))n[za("0x83")]&&!n[za("0x13c")]&&i[za("0x51")](...e[za("0x10c")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[za("0x51")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x20")];){const o=n[e].getDifference(t);n.splice(e,1,...o),e+=o[za("0x20")]}}return n}(t,i);x[za("0x20")]&&this._model[za("0x136")]((()=>{for(const t of x){const e=this._suggestionFactory[za("0x127")]("formatInline",o,za("0x141"));this[za("0xd5")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0xb9")],a=t[za("0x2a")];for(const{suggestion:e,meta:n}of this[za("0x9e")](t,za("0x11b"))){if(!n[za("0x83")])continue;if(e[za("0x125")]!=o)continue;const s=e[za("0x16")]();if(s[za("0xba")](t,!0))return null;x=x[za("0x4")](s[za("0xb9")])?x:s[za("0xb9")],a=a[za("0xb")](s.end)?a:s.end,i?s[za("0xb9")][za("0x4")](i[za("0x16")]()[za("0xb9")])?(i[za("0x13a")](),i=e):e.removeMarkers():i=e}const c=this[za("0x1f")].createRange(x,a);if(i)this[za("0xde")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0xec")]({id:t,type:za("0x30")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0xc6")](za("0x30")+o,t,i,c)}}return null}[za("0x18")](t,n,o=[],s=null,r={}){n[za("0x112")]||(n.formatGroupId=n.commandName),n[za("0x33")]=t.is("range"),s=s||Xa(n);const i=o[za("0x7f")]((t=>Qa(t,this[za("0x1f")]))),x=t.is(za("0x47"))?t:Qa(t,this[za("0x1f")]);if(za("0x8e")===this._trackFormatChanges){const t=this[za("0xee")][za("0x127")](za("0xac"),s,za("0x141"));return this.forceDefaultExecution((()=>t([x],n,r))),null}i[za("0x51")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&za("0x9c")!==this._trackFormatChanges){const t=this._suggestionFactory[za("0x127")]("formatBlock",s,za("0x141"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x.start,d=x[za("0x2a")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,za("0xac"))){if(!e[za("0x83")]||e[za("0x3f")]||e[za("0xb4")]||e[za("0x13c")])continue;if(t.data[za("0x112")]!=n.formatGroupId)continue;const o=t.getFirstRange();if(t[za("0x125")]==s){if(o.containsRange(x,!0))return null;l=l[za("0x4")](o[za("0xb9")])?l:o[za("0xb9")],d=d[za("0xb")](o.end)?d:o[za("0x2a")],c?o[za("0xb9")][za("0x4")](c.getFirstRange()[za("0xb9")])?(c[za("0x13a")](),c=t):t[za("0x13a")]():c=t}else{const e=x[za("0xbd")](o);this[za("0xa0")](t,e)}}const u=this[za("0x5")][za("0xc8")][za("0xd6")](za("0x10e")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0xde")](c,this[za("0x1f")][za("0xda")](l,d)),c;{const t=this[za("0xec")]({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0xc6")](za("0x4a")+s,g,m,this[za("0x1f")][za("0xda")](l,d)),t}}[za("0x56")](t,n,o=[],s=null,r={}){n[za("0x112")]||(n[za("0x112")]=n[za("0x15")]);const i=t[0];n[za("0x33")]=i.is("range"),s=s||Xa(n);const x=o.map((t=>Qa(t,this[za("0x1f")]))),a=i.is(za("0x47"))?t:t[za("0x7f")]((t=>Qa(t,this._model)));if("never"===this[za("0x40")]){const t=this[za("0xee")][za("0x127")](za("0xac"),s,za("0x141"));return this[za("0xd5")]((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[za("0x34")](t)){c=!1;break}if(c&&za("0x9c")!==this[za("0x40")]){const t=this[za("0xee")].getSuggestionCallback(za("0xac"),s,za("0x141"));return this[za("0xd5")]((()=>t(a,n,r))),null}const l=this[za("0x5")][za("0xc8")][za("0xd6")](za("0x10e")).me;for(const t of this[za("0x25")]()){if(t.author.id!=l.id)continue;if("formatBlock"!=t[za("0xf7")]||t.data[za("0x112")]!=n[za("0x112")])continue;const e=t.subType==s;for(let n=0;n<a[za("0x20")];n++){const o=a[n];for(const s of t[za("0xf4")]()){const r=s[za("0x64")]();if(o[za("0x35")](r)){e?(a.splice(n,1),n--):t[za("0x101")](s.name);break}}}}if(0==a[za("0x20")])return null;const d=this[za("0xee")][za("0x127")](za("0xac"),s,za("0x11d"));for(const t of this[za("0x25")]())if(t[za("0xaa")].id==l.id&&za("0xac")==t[za("0xf7")]&&t[za("0x60")][za("0x112")]==n[za("0x112")]&&t[za("0x125")]==s&&(d(t[za("0x10c")](),a)||d(a,t[za("0x10c")]()))){for(const e of a)t[za("0x6c")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0x4a")+s,f=this[za("0xec")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0xc6")](m,u,g,t,Zo[za("0x55")]());return f}markDeletion(t,n=null,o={}){if(t[za("0x13e")])return null;const s=this.editor[za("0xc8")][za("0xd6")]("Users").me,r=new i.LiveRange(t.start,t[za("0x2a")]);for(const{suggestion:t,meta:e}of this[za("0x9e")](r,za("0x104")))if(e[za("0x83")]&&!e[za("0x3f")])if(t[za("0x12a")]){const e=t[za("0x10c")]()[za("0x1a")]((t=>"$graveyard"!=t[za("0xd2")][za("0x107")]));if(e[za("0x91")]((t=>r[za("0xba")](t,!0)))&&t[za("0x121")](),e.some((t=>t[za("0xba")](r,!0)))){const t=this[za("0xee")][za("0x127")]("deletion",n,za("0x141"));return this[za("0xd5")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t.getFirstRange());null!==e&&t._onDiscard([e],null,o)}if(r[za("0xb8")](),r[za("0x13e")]||"$graveyard"==r[za("0xd2")].rootName)return null;let x=null,a=r[za("0xb9")],c=r[za("0x2a")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0xbc")))if(e[za("0x83")])if(t.isMultiRange&&this[za("0x8d")]){let e=!0;for(const n of t[za("0x10c")]()){if(n[za("0xba")](r,!0))return t;r[za("0xba")](n)||(e=!1)}e&&t.discard()}else{const n=t[za("0x16")]();if(n[za("0xba")](r,!0)){if(!this[za("0x8d")]&&e.containsRangeInObject)continue;return t}a=a[za("0x4")](n[za("0xb9")])?a:n[za("0xb9")],c=c[za("0xb")](n[za("0x2a")])?c:n[za("0x2a")],x?n[za("0xb9")][za("0x4")](x[za("0x16")]()[za("0xb9")])?(x[za("0x13a")](),x=t):t[za("0x13a")]():x=t}if(x)return this[za("0xde")](x,this[za("0x1f")][za("0xda")](a,c)),x;{const t=(0,e.uid)(),r=this._model[za("0xda")](a,c),i=s.id,x=n?za("0x86")+n:za("0xbc"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xc6")](x,t,i,r),l}}[za("0xa")](t,n=za("0x92"),o={}){const s=this[za("0x5")][za("0xc8")][za("0xd6")](za("0x10e")).me,r=t[za("0x7f")]((t=>new i.LiveRange(t[za("0xb9")],t.end))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion"))n.isOwn&&!n.isNextTo&&x[za("0x44")](e);for(const e of x)if(e[za("0x12a")]){const s=e[za("0x10c")]();if((!e[za("0x13")]||!e[za("0x13")].skipNestingCheck)&&s[za("0x91")]((t=>r[za("0x114")]((e=>e.containsRange(t,!0)))))&&e.discard(),r[za("0x91")]((t=>s[za("0x114")]((e=>e.containsRange(t,!0)))))){const e=this[za("0xee")][za("0x127")]("deletion",n,za("0x141"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[za("0x114")]((e=>e[za("0xba")](t,!0)))&&e[za("0x121")](),r[za("0x91")]((e=>t[za("0xba")](e,!0)))){const t=this[za("0xee")][za("0x127")](za("0xbc"),n,"accept");return this[za("0xd5")]((()=>t(r,null,o))),null}}const a=this[za("0xee")].getSuggestionCallback("deletion",n,"join");let c=null;for(const t of this.getSuggestions())if(t[za("0xaa")].id==s.id&&t.isInContent&&za("0xbc")==t.type&&t[za("0x125")]==n&&(a(t[za("0x10c")](),r)||a(r,t.getRanges())))if(c){if(t[za("0x123")]&&t[za("0x123")][za("0x20")])continue;for(const e of t[za("0x10c")]())c.isIntersectingWithRange(e)||c.addRange(e);t[za("0x13a")]()}else{c=t;for(const e of r)t[za("0x80")](e)||t[za("0x6c")](e)}if(c)return c;x[za("0xb2")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x9e")](t,za("0xbc")))n[za("0x83")]&&x[za("0x44")](e);for(const t of x){const e=t[za("0x10c")]();if((!o||!o.skipNestingCheck)&&r[za("0x91")]((t=>e[za("0x114")]((e=>e[za("0xba")](t,!0))))))return t;(!t[za("0x13")]||!t[za("0x13")][za("0x75")])&&e[za("0x91")]((t=>r[za("0x114")]((e=>e[za("0xba")](t,!0)))))&&t[za("0x121")]()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t.detach(),t.isCollapsed||za("0x135")==t[za("0xd2")][za("0x107")]||this[za("0xc6")](u,l,d,t,Zo[za("0x55")]());return g}[za("0xde")](t,e){const n=t[za("0xa5")]();this._model[za("0x136")]((t=>{t[za("0xe")](n,{range:e})}))}[za("0x6a")](t){const e=t.id,n=this.editor.config.get("collaboration.channelId");this[za("0x7a")][za("0x22")](e)||this[za("0x7a")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x7a")][za("0x63")](e);o[za("0x38")](za("0xf6")),o[za("0xf6")]=!1,t[za("0x123")]=o}[za("0x4c")](t,n,o,s){if(t[za("0xf7")]!=n||t[za("0x125")]!=o||t.creator.id!=s)throw this[za("0x5")].enableReadOnlyMode(za("0x143")),new e.CKEditorError(za("0x143"),this)}[za("0xa0")](t,n){const o=t[za("0x16")]();if(n[za("0x35")](o))t.removeMarkers();else if(o.containsRange(n)){const s=this[za("0x1f")][za("0x5e")](n[za("0xb9")][za("0x2d")],za("0x2a"));this[za("0xde")](t,this._model[za("0xda")](o[za("0xb9")],s));const r=(0,e.uid)(),i=t[za("0x100")].id,x=t[za("0xf7")]+":"+t[za("0x125")];this[za("0xec")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x60")],attributes:t[za("0x13")]});const a=this[za("0x1f")][za("0x5e")](n[za("0x2a")][za("0x8")],za("0x113")),c=this[za("0x1f")][za("0xda")](a,o[za("0x2a")]);this[za("0xc6")](x,r,i,c)}else if(o.containsPosition(n[za("0xb9")])){const e=this[za("0x1f")][za("0x5e")](n.start.nodeBefore,za("0x2a"));this._setSuggestionRange(t,this[za("0x1f")].createRange(o.start,e))}else{const e=this[za("0x1f")][za("0x5e")](n[za("0x2a")][za("0x8")],"after");this[za("0xde")](t,this[za("0x1f")][za("0xda")](e,o.end))}}[za("0x34")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x104"))){if(!n[za("0x83")])continue;const o=e[za("0x10c")]();for(const e of o)if(!t[za("0x48")](e)[za("0x20")])return!0}return!1}_getAuthorFromId(t){const n=this[za("0x5")].plugins[za("0xd6")](za("0x10e")).getUser(t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[za("0x5d")](t){const e=this[za("0x5")].plugins[za("0xd6")](za("0x10e")),n=(0,r.hashObject)("external:"+t);return e[za("0x59")](n)||e.addUser({id:n,name:t})}[za("0xcf")](t,e,n,o,s){const r=this[za("0x4e")](o),i=this[za("0xee")].buildSuggestion(t,e,n,r,s,(t=>this[za("0x99")](n,{attributes:t})));return this[za("0x3b")](i,"accept",(()=>{this._updateSuggestionData(n,{state:za("0x8f")})}),{priority:za("0x129")}),this.listenTo(i,za("0x121"),(()=>{this._updateSuggestionData(n,{state:za("0x132")})}),{priority:za("0x129")}),this._suggestions[za("0x36")](n,i),this._suggestionState[za("0x36")](i,za("0xcc")),i}_splitMarkerName(t){const e=t[za("0x108")](":");return{group:e[0],type:e[1],subType:e[za("0x20")]>=5?e[2]:null,id:e[za("0x20")]<5?e[2]:e[3],authorId:e[za("0x20")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t.getFirstRange(),r=s[za("0xb9")],i=s[za("0x2a")];this._setSuggestionRange(t,this[za("0x1f")][za("0xda")](r,n));const x=(0,e.uid)(),a=t[za("0x100")].id,c=t[za("0xf7")]+(t[za("0x125")]?":"+t[za("0x125")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[za("0x60")]}),za("0xac")==t[za("0xf7")]&&(o=this._model[za("0xb3")](o[za("0x8")])),this[za("0xc6")](c,x,a,this[za("0x1f")][za("0xda")](o,i))}_findSuggestions(t,e=null){const n=[],o=this._model[za("0x6f")],s=this.editor[za("0xc8")][za("0xd6")](za("0x10e")).me;for(const r of this[za("0x25")]())if(r[za("0x115")]&&(!e||r[za("0xf7")]==e))for(const e of r[za("0x10c")]()){const i=t[za("0xb9")][za("0x35")](e.end)||t[za("0x2a")][za("0x35")](e[za("0xb9")]);if(i||t[za("0xbd")](e)){const x=t.containsRange(e)&&Ka(o,e[za("0xb9")],t),a=e[za("0xba")](t)&&Ka(o,t.start,e);n.push({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}_addSuggestionMarker(t,e,n,o,s){this[za("0x1f")][za("0x136")]((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x2b")](t){const e=t[za("0xea")],n=t.next;t.previous=null,null!=e&&(e[za("0xcd")]=null),t[za("0xcd")]=null,null!=n&&(n[za("0xea")]=null),za("0x53")==this._suggestionState[za("0xd6")](t)&&(this[za("0xb0")][za("0x36")](t,za("0xa6")),this[za("0x6e")](za("0x4d"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this[za("0x7e")](t);if(this._adapter&&this[za("0x10")].addSuggestion){const s=this[za("0x5")][za("0xc8")][za("0xd6")](za("0x79")),r=o[za("0x139")],i=o[za("0x125")]?o[za("0xf7")]+":"+o[za("0x125")]:o.type,x=this.editor.locale,a=s.add(Yo(x,za("0x66"))),c={id:n,type:i,hasComments:r,data:t[za("0x60")]||null,originalSuggestionId:t[za("0x27")]||null,attributes:o.attributes};this[za("0x10")].addSuggestion(c).then((t=>{o[za("0xc9")]=!0,s[za("0x6b")](a),t&&t[za("0x3e")]&&(this[za("0x50")][za("0xd6")](n)[za("0x3e")]=t.createdAt)}))[za("0xb5")]((t=>{throw(0,e.logWarning)(za("0xc")),this[za("0x5")][za("0xfd")][za("0xb7")]({isUndoable:!1},(()=>{o[za("0x121")]()})),o[za("0x10d")](),this[za("0x50")][za("0x9b")](o.id),this[za("0xb0")][za("0x9b")](o),t}))}return o}_updateSuggestionData(t,e){const n=this[za("0x5")][za("0xc8")].get(za("0x79")),o=this[za("0x12f")](t);if(this._adapter&&this[za("0x10")].updateSuggestion)if(o[za("0xc9")]){const o=n.add(Yo(this[za("0x5")].locale,"PENDING_ACTION_SUGGESTION"));this._adapter[za("0x42")](t,e)[za("0x3a")]((()=>{n.remove(o)}))}else o.on(za("0x4f"),(()=>{this._updateSuggestionData(t,e)}))}_getSuggestionData(t){if(!this[za("0x10")]||!this[za("0x10")].getSuggestion)throw new e.CKEditorError(za("0xa7"),this);return this._adapter.getSuggestion(t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[za("0x2c")](t),r=this[za("0x50")][za("0xd6")](e)||this._createSuggestion(n,o,e,s,{});switch(this[za("0x4c")](r,n,o,s),this[za("0xb0")][za("0xd6")](r)){case"notReady":this._getSuggestionData(e)[za("0x3a")]((t=>{let n=Promise[za("0x39")]();t[za("0x139")]&&(n=this[za("0x7a")][za("0x93")]({channelId:this.editor[za("0x61")][za("0xd6")](za("0x5f")),threadId:e})),n[za("0x3a")]((()=>{this[za("0x7e")](t)[za("0xc9")]=!0}))})),this[za("0xb0")][za("0x36")](r,za("0xa3"));break;case za("0xa6"):this[za("0x99")](e,{state:za("0xfb")});case za("0xf2"):this._suggestionState[za("0x36")](r,za("0x53")),this[za("0x6e")](za("0x119"),r);break;case za("0x53"):this[za("0x6e")](za("0x2f"),r)}return r[za("0x9a")](t),r}[za("0x105")](t){const e=Array[za("0xdc")](t)[za("0x1a")]((t=>!t.isMultiRange)),n=this[za("0x25")]({skipNotAttached:!0})[za("0x1a")]((t=>!t[za("0x12a")])),o=n[za("0x1a")]((e=>!t[za("0xbe")](e))),s=new Map(n.map((t=>[t,this[za("0xee")][za("0x127")](t[za("0xf7")],t[za("0x125")],za("0x77"))]))),r=new Map(n[za("0x7f")]((t=>[t,t[za("0x16")]()]))),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("0x20")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[za("0xbe")](n)&&n[za("0xea")]&&(n[za("0xea")][za("0xcd")]===n&&(n[za("0xea")].next=null),n[za("0xea")]=null),!i[za("0xbe")](n)&&n[za("0xcd")]&&(n[za("0xcd")][za("0xea")]===n&&(n[za("0xcd")][za("0xea")]=null),n[za("0xcd")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][za("0xcd")]=n[1],n[1][za("0xea")]=n[0],i[za("0x44")](n[0]),x[za("0x44")](n[1]))}}function c(t,e){if(t.author.id!==e[za("0xaa")].id)return null;const n=s[za("0xd6")](t)(t,e,r[za("0xd6")](t),r[za("0xd6")](e));return n&&s.get(e)(t,e,r.get(t),r[za("0xd6")](e))?n[1][za("0x123")]&&n[1][za("0x123")][za("0x20")]?null:n:null}}[za("0x2e")](t){const e=Array[za("0xdc")](t),n=this[za("0x25")]({skipNotAttached:!0}),o=n[za("0x1a")]((e=>!t[za("0xbe")](e))),s=new Map(e[za("0x7f")]((t=>[t,this[za("0xee")][za("0x127")](t[za("0xf7")],t[za("0x125")],za("0x11d"))]))),r=new Map(n[za("0x7f")]((t=>[t,t[za("0x10c")]()])));for(let t=0;t<e[za("0x20")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o.type!==e.type||o.author.id!==e.author.id||o[za("0x125")]!==e[za("0x125")])continue;const x=s[za("0xd6")](e),a=r[za("0xd6")](e),c=r[za("0xd6")](o),l=e[za("0x123")]&&e[za("0x123")][za("0x20")],d=o.commentThread&&o[za("0x123")].length;if(!l&&x(c,a))return t[za("0x68")](o,e),r[za("0x9b")](e),!0;if(!d&&x(a,c))return t[za("0x68")](e,o),r[za("0x9b")](o),!0}return!1}}[za("0x68")](t,e){if(t[za("0x12a")])for(const n of e.getRanges())t[za("0x6c")](n);else{const n=e[za("0x16")]()[za("0x2a")];this[za("0xde")](t,this._model.createRange(t[za("0x16")]()[za("0xb9")],n))}e[za("0x13a")]()}}class Va{constructor(t){this[za("0xe4")]=t,this._model=t[za("0xfd")],this[za("0x31")]=new Map,this[za("0x90")]=new Map,this[za("0x57")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this[za("0x1f")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x127")](t,e,za("0x141"))(...n),onDiscard:(...n)=>this[za("0x127")](t,e,"discard")(...n)})}[za("0x43")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x31")].set(s,o)}[za("0x127")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x31")][za("0xd6")](o)||this._defaultCallbacks[za("0xd6")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t.sort(((t,e)=>t.start.isBefore(e[za("0xb9")])?1:-1)),this._model[za("0x136")]((e=>{for(const n of t){let t;t=n[za("0x2a")].isAtEnd&&n[za("0x2a")][za("0x8")]==n[za("0xb9")].nodeAfter?e[za("0x11f")](n[za("0xb9")][za("0xeb")],"on"):e[za("0x11f")](n),this[za("0x1f")][za("0x17")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x1f")].change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x7f")]((t=>(qa(t)&&(t=this[za("0x1f")][za("0xda")](t[za("0x2a")])),t)))[za("0x1a")]((t=>za("0x135")!==t[za("0xd2")].rootName));if(r[za("0x20")]<1)return;const x=Array[za("0xdc")](this[za("0x1f")].document[za("0x7d")].getRanges())[za("0x7f")]((t=>i.LiveRange[za("0x23")](t)));n[za("0x32")](r);for(const t of this[za("0xe4")].commands[za("0x142")]())t.refresh();s[za("0x51")]({forceDefaultExecution:!0}),this[za("0xe4")].execute(o,...s);const a=x[za("0x1a")]((t=>za("0x135")!=t[za("0xd2")].rootName));a.length>0&&n[za("0x32")](a);for(const t of x)t[za("0xb8")]()}))},o=(t,e)=>1==t[za("0x20")]&&1==e.length&&t[0][za("0x2a")][za("0x35")](e[0][za("0xb9")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x1f")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[za("0x90")].set("insertion:accept",t),this[za("0x90")].set(za("0x26"),e),this[za("0x90")][za("0x36")](za("0xe7"),o),this[za("0x90")][za("0x36")]("insertion:chain",s),this._defaultCallbacks[za("0x36")](za("0x3d"),e),this[za("0x90")][za("0x36")](za("0x94"),t),this[za("0x90")][za("0x36")](za("0x7"),o),this[za("0x90")].set(za("0x140"),s),this[za("0x90")].set(za("0xd0"),n),this[za("0x90")][za("0x36")]("formatInline:discard",t),this._defaultCallbacks[za("0x36")](za("0xbf"),o),this[za("0x90")][za("0x36")](za("0x82"),t),this._defaultCallbacks[za("0x36")]("formatBlock:accept",n),this[za("0x90")][za("0x36")](za("0x134"),t),this[za("0x90")].set(za("0x97"),o),this[za("0x90")].set(za("0xf5"),t)}}function Ka(t,e,n){for(const o of e.parent[za("0x1d")]({includeSelf:!0,parentFirst:!0})){if(o[za("0xd2")]==o)return!1;if(!n[za("0x5a")](o))return!1;if(t[za("0xc2")](o)||t[za("0x133")](o))return!0}return!1}function qa(t){return t.end[za("0x8")]==t[za("0xb9")][za("0xeb")]&&t.end[za("0x144")]}function $a(t,e,n,o){const s=t=>!t.item.is(za("0x81"))&&!o[za("0xc2")](t.item),r=t[za("0xb9")][za("0xfa")](s),i=t.end[za("0xfa")](s,{direction:za("0x12")});return!(t[za("0xb9")][za("0x35")](r)&&t[za("0x2a")][za("0x35")](i)||(r[za("0x4")](i)?n[za("0xe")](e,{range:n[za("0xda")](r,i)}):n[za("0x101")](e),0))}function Xa(t){return(0,r.hashObject)(t)}function Ja(t){const e=t.start.nodeAfter;return e&&e.is("element")}function Qa(t,e){const n=e.schema[za("0xc2")](t)||e.schema[za("0x130")](t);return e[za("0xda")](e[za("0x5e")](t,za("0x3c")),n?e[za("0x5c")](t):e[za("0x5e")](t,za("0x2a")))}function Za(t,e,n,o,s){if(n[za("0x2a")][za("0x35")](o[za("0xb9")]))return!0;if(t[za("0xf7")]!=e[za("0xf7")])return!1;if(!n.end[za("0x9")](o[za("0xb9")]))return!1;const r=s.createRange(n[za("0x2a")],o[za("0xb9")])[za("0xe8")]();for(const t of r)if([za("0xe0"),za("0x12b")][za("0x110")](t[za("0xf7")])&&s[za("0x6f")][za("0x133")](t[za("0x9d")]))return!1;return!0}const Ya=["execute","model","_discardCommand","PendingActions","discardSuggestion","canDiscard","destroy","commentThreadController","_acceptCommand","plugins","remove","_pendingAction","canEditAt","_setPendingAction","isEnabled","stopListening","locale","PENDING_ACTION_SUGGESTION","commands","acceptSuggestion","_editor","isDirty","view","_removePendingAction","listenTo","unbind","add","getRanges","get","bind"];var tc,ec;tc=Ya,ec=411,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("0xa")]=e,this[nc("0x1")]=n,this[nc("0x10")]=o,this._editor=t,this[nc("0x11")]=t[nc("0x1b")][nc("0x7")]("acceptSuggestion"),this[nc("0xb")]=t.commands[nc("0x7")]("discardSuggestion"),this.view[nc("0x8")](nc("0x17")).to(this[nc("0x11")],this[nc("0xb")],((t,e)=>t||e)),this[nc("0x1")][nc("0x8")]("canAccept").to(this[nc("0x11")],nc("0x17"),(t=>t&&this._editor[nc("0xa")][nc("0x15")](e[nc("0x6")]()))),this[nc("0x1")][nc("0x8")](nc("0xe")).to(this[nc("0xb")],nc("0x17"),(t=>t&&this[nc("0x1d")].model[nc("0x15")](e[nc("0x6")]()))),this[nc("0x14")]=null,n[nc("0x0")]&&this[nc("0x16")](),this[nc("0x3")](n,nc("0x1c"),(()=>this[nc("0x1c")]())),this[nc("0x3")](n,nc("0xd"),(()=>this[nc("0xd")]())),this[nc("0x3")](n,"change:isDirty",(()=>{n[nc("0x0")]?this[nc("0x16")]():this[nc("0x2")]()}))}[nc("0x1c")](){this._acceptCommand[nc("0x9")](this[nc("0xa")].id)}[nc("0xd")](){this[nc("0xb")].execute(this[nc("0xa")].id)}[nc("0xf")](){this.view.unbind(nc("0x17")),this[nc("0x1")][nc("0x4")]("canAccept"),this.view[nc("0x4")](nc("0xe")),this[nc("0x18")](),this[nc("0x10")][nc("0xf")](),this._pendingAction&&this[nc("0x2")]()}[nc("0x16")](){const t=Yo(this[nc("0x1d")][nc("0x19")],nc("0x1a"));this[nc("0x14")]=this[nc("0x1d")].plugins[nc("0x7")](nc("0xc"))[nc("0x5")](t)}_removePendingAction(){null!==this._pendingAction&&this._editor[nc("0x12")][nc("0x7")](nc("0xc"))[nc("0x13")](this._pendingAction),this[nc("0x14")]=null}}const sc=["hasDirtyComment","disabledSubmit","_localUser","value","delegate","_createCommentViews","removeComment","_config","addComment","isDirty","commentInputView","editor","_createCommentThreadInputView","isReadOnly","assign","bind","updateComment","fire","set","CommentView","element","focus","submit","commentThread","commentThreadInputView","_model","authoredAt","isEnabled","length","canDiscard","commentsListView","isActive","canAccept","locale","destroy"];var rc,ic;rc=sc,ic=186,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("0x13")]=null,this.commentThreadInputView=null,this[xc("0x7")](xc("0x14"),!1),this.set(xc("0xf"),e[xc("0xf")]),this.bind(xc("0xf")).to(e),this[xc("0x7")]("descriptionParts",[]),this[xc("0x7")](xc("0x21"),!1),this[xc("0x7")](xc("0x10"),!1),this.set(xc("0x15"),!1),this[xc("0x7")](xc("0x12"),!1),this[xc("0xe")]=e,this[xc("0x1a")]=n,this[xc("0x1f")]=o,o.disableComments?this[xc("0x7")](xc("0x11"),1):this[xc("0x1d")]()}focus(){this[xc("0x9")].focus()}[xc("0x17")](){this[xc("0x13")]&&this[xc("0x13")][xc("0x17")](),this[xc("0xd")]&&this.commentThreadInputView[xc("0x17")](),super[xc("0x17")]()}[xc("0x1d")](){const{CommentsListView:t}=this._config;this.commentsListView=new t(this[xc("0x16")],this._model[xc("0xc")],Object[xc("0x3")]({CommentView:this._config[xc("0x8")]},this._config)),this[xc("0x13")][xc("0x1c")]("removeComment").to(this),this[xc("0x13")].delegate(xc("0x5")).to(this),this[xc("0x13")][xc("0x4")]("isActive").to(this),this[xc("0x7")](xc("0x11"),this[xc("0x13")].length+1),this.bind(xc("0x11")).to(this.commentsListView,xc("0x11"),(t=>t+1)),this[xc("0xd")]=this[xc("0x1")](),this.on(xc("0x1e"),(()=>this[xc("0xa")]())),this[xc("0x4")]("isDirty").to(this.commentsListView,xc("0x18"),this[xc("0xd")].commentInputView,xc("0x1b"),((t,e)=>t||!!e))}[xc("0x1")](){const{CommentThreadInputView:t}=this[xc("0x1f")],e=new t(this[xc("0x16")],this[xc("0x1a")],this._config.editorConfig),n=e[xc("0x22")];return e.bind("showInput").to(this,xc("0x14"),this[xc("0xe")][xc("0xc")],xc("0x2"),n,xc("0x1b"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0xb"),((t,e)=>{this[xc("0x6")](xc("0x20"),e),n[xc("0x0")].setData("")})),n.on("cancel",(()=>this[xc("0xa")]())),n[xc("0x4")](xc("0x19")).to(this[xc("0xe")][xc("0xc")],"isReadOnly"),e}}const cc=["_config","ck-annotation__info-time",'"></span>',"querySelector","formatDateTime","Discard suggestion","ck-suggestion__info","map","ck-annotation__content-wrapper","ck-suggestion--discard","ck-annotation__info","name","locale","check","<p>","span","title","extendTemplate","disableComments","descriptionParts","source","_model","getExternalSuggestionNote","ck-suggestion--disabled-comments","</span>","ck-suggestion__actions","canDiscard","EXTERNAL_IMPORT_WORD_SUGGESTION","getUserViewNotificationText","canAccept","isEnabled",'" title="','<span class="ck-suggestion-color" style="background-color: ',"innerText","ck-suggestion-wrapper","cancel","bind","attributes","EXTERNAL_SUGGESTION","push","change:description","children","getTemplate","discardSuggestion","set",'<span class="ck-suggestion-type">',"ck-suggestion__user","bindTemplate","importWord",".ck-annotation__content-wrapper","discardButton","createElement","ck-suggestion","_createButton","_descriptionElement","isExternal","EXTERNAL_AVATAR","type","@external","execute","innerHTML","isActive","commentThreadInputView","ck-suggestion__info-name","acceptSuggestion","time","EXTERNAL_IMPORT_WORD_AVATAR","acceptButton","userView","creator","content","join","div","fire","value","ck-suggestion-wrapper--active","commentsListView","description","author","render","authoredAt"];var lc,dc;lc=cc,dc=425,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[uc("0x18")](uc("0x25"),""),this.bind("type").to(this,"descriptionParts",(t=>t&&t[0]?t[0].type:"")),this[uc("0x10")](uc("0x39")).to(this,uc("0x50"),this,uc("0x29"),((t,e)=>{let n="";for(const e of t)n+=uc("0x4b")+mc(e[uc("0x32")],e.color)+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[uc("0x2f")]=this._createButton(Yo(e,"Accept suggestion"),t.icons[uc("0x4a")],"ck-suggestion--accept",uc("0x2c"),"sw"),this.acceptButton[uc("0x10")](uc("0xa")).to(this,uc("0x9")),this[uc("0x1e")]=this[uc("0x21")](Yo(e,uc("0x42")),t.icons[uc("0xf")],uc("0x46"),uc("0x17"),"sw"),this[uc("0x1e")].bind(uc("0xa")).to(this,uc("0x6")),this[uc("0x30")]=new r.UserView(e,this._model.author,this[uc("0x8")]()),this[uc("0x30")][uc("0x4e")]({attributes:{class:[uc("0x1a"),"ck-annotation__user"]}}),this.setTemplate(this.getTemplate())}[uc("0x16")](){const t=this[uc("0x1b")],e=[{tag:uc("0x34"),attributes:{class:[uc("0x43"),uc("0x47")]},children:[{tag:uc("0x4c"),children:[{text:this.userView[uc("0x48")]}],attributes:{class:[uc("0x2b"),"ck-annotation__info-name"]}},{tag:uc("0x2d"),attributes:{datetime:t.to(uc("0x3c")),class:["ck-comment__info-time",uc("0x3e")]},children:[{text:t.to(uc("0x3c"),(t=>this[uc("0x3d")][uc("0x41")](t)))}]}]},{tag:"div",attributes:{class:[uc("0x5"),"ck-annotation__actions"]},children:[this[uc("0x2f")],this[uc("0x1e")]]},{tag:uc("0x34"),attributes:{class:[uc("0x45")]}}];this[uc("0x1")].isExternal&&e[uc("0x13")]({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:uc("0x34"),attributes:{class:[uc("0xe"),t.if(uc("0x29"),uc("0x37")),t.to(uc("0x25"),(t=>"ck-suggestion-"+t)),this._config[uc("0x4f")]&&uc("0x3")],"data-suggestion-id":this[uc("0x1")].id,"data-thread-id":this[uc("0x1")].commentThread.id,"data-author-id":this[uc("0x1")][uc("0x3a")].id,tabindex:-1},children:[{tag:uc("0x34"),attributes:{class:[uc("0x20"),"ck-annotation"]},children:[this[uc("0x30")],{tag:"div",attributes:{class:["ck-suggestion__main","ck-annotation__main"]},children:e}]}]};return this[uc("0x38")]&&this[uc("0x2a")]&&n[uc("0x15")].push(this[uc("0x38")],this[uc("0x2a")]),n}[uc("0x3b")](){super[uc("0x3b")](),this._descriptionElement=this.element[uc("0x40")](uc("0x1d")),this[uc("0x22")][uc("0x28")]=this[uc("0x39")],this.on(uc("0x14"),((t,e,n)=>{this[uc("0x22")][uc("0x28")]=n}))}[uc("0x21")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x49")]);return i[uc("0x18")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x4e")]({attributes:{class:n}}),i.on(uc("0x27"),(()=>{this[uc("0x35")](o,this[uc("0x1")].id)})),i}[uc("0x2")](){return uc("0x1c")===this._model[uc("0x11")][uc("0x26")].source?Yo(this[uc("0x49")],uc("0x7")):Yo(this[uc("0x49")],uc("0x12"))}[uc("0x8")](){return this[uc("0x1")][uc("0x23")]?uc("0x1c")===this[uc("0x1")][uc("0x11")][uc("0x26")][uc("0x0")]?Yo(this[uc("0x49")],uc("0x2e"),this[uc("0x1")][uc("0x31")][uc("0x48")]):Yo(this[uc("0x49")],uc("0x24"),this._model[uc("0x31")][uc("0x48")]):null}}function mc(t,e){let n="";return n+=t.split("*")[uc("0x44")](((t,e)=>e%2!=0?uc("0x19")+fc(t)+uc("0x4"):fc(t)))[uc("0x33")](""),e&&(n+=uc("0xc")+e[uc("0x36")]+uc("0xb")+e[uc("0x4d")]+uc("0x3f")),n}function fc(t){const e=document[uc("0x1f")](uc("0x4c"));return e[uc("0xd")]=t,e[uc("0x28")]}const hc=["Accept all suggestions","addSourceCollector","focus","config","createAnnotation","CommentsRepository","keys","pluginName","button","stopListening","_destroyController","type","switchbutton","delete","_suggestionToController","filter","comments.editorConfig","unbind","registerAnnotation","isEnabled","remove","acceptButton","execute","acceptAllSuggestions","hasSuggestion","getMarkers","suggestionLoaded","Annotations","has","change:activeAnnotations","SuggestionThreadView","activeAnnotations","add","map","Track changes","_initializeController","getFirstRange","head","trackChanges.SuggestionThreadView","_disableComments","set","Discard all selected suggestions","getJoined","value","buttonView","comments.maxCommentsWhenCollapsed","isInContent","comments.maxCommentCharsWhenCollapsed","_annotationViews","size","requires","isMultiRange","getAllAdjacentSuggestions","commandName","editing","change:previous","editor","listenTo","arrowView","CommentView","bind","actionView","trackChanges","_handleSuggestionControllerDelayed","plugins","clear","getRanges","createCommentThreadController","previous","source","get","createAnnotationView","mainView","Accept all selected suggestions","_createUIButton","view","push","values","discardAllSuggestions","CommentsUI","_descriptionFactory","Discard all suggestions","descriptionParts","length","model","suggestion-","getMarkerNames","isOn","discardSelectedSuggestions","suggestionChanged","componentFactory","getDescriptions","activeMarkers","locale","comments.maxThreadTotalWeight","destroy","TrackChangesUI","getSuggestion","commands","from","innerView","toMany","_handleControllerBuffer","_viewToController","isDirty","lowest","commentThread","refreshSelectedViews","TrackChangesEditing","suggestionUnloaded","define","getByInnerView","separator","_updateController","_refreshActiveMarkers","trackChanges.disableComments","EditorAnnotations"];var pc,bc;pc=hc,bc=446,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("0x48")](){return[Wa,r.Users,"CommentsRepository",Ec("0x31"),"EditorAnnotations"]}static get[Ec("0x1d")](){return Ec("0x1")}constructor(t){super(t),this._suggestionToController=new Map,this[Ec("0x8")]=new Map,this[Ec("0x46")]=new Map,this[Ec("0x7")]=new Map;const e=this[Ec("0x4e")][Ec("0x19")];e[Ec("0xf")](Ec("0x3c"),gc),e[Ec("0xf")](Ec("0x14"),!1),this[Ec("0x3d")]=e[Ec("0x5c")](Ec("0x14"))}[Ec("0x55")](t,e){0===this._handleControllerBuffer[Ec("0x47")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x7")]){const n=this[Ec("0x24")].has(t);n||e?n&&e&&this._destroyController(t):this[Ec("0x39")](t)}this[Ec("0x4e")][Ec("0x56")].get("EditorAnnotations")[Ec("0xc")](),this[Ec("0x13")](),this[Ec("0x7")][Ec("0x57")]()}),10),this[Ec("0x7")].set(t,e)}init(){const t=this.editor,e=t.plugins[Ec("0x5c")](Ec("0xd")),n=t[Ec("0x56")][Ec("0x5c")](Ec("0x31")),o=t[Ec("0x56")].get(Ec("0x15")),s=t.plugins[Ec("0x5c")](Ec("0x1b"));t.ui[Ec("0x70")].add("trackChanges",(t=>this[Ec("0x60")](t))),o[Ec("0x17")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x4")](this[Ec("0x24")])){const o=e[Ec("0x4a")](),s=[];for(const t of o){if(!t[Ec("0x44")])continue;if(t[Ec("0x49")]){s[Ec("0x62")](...t[Ec("0x58")]());continue}const e=t[Ec("0x3a")]();if(s[Ec("0x69")]>0){const t=s[0][Ec("0x40")](e);if(t){s[0]=t;continue}}s[Ec("0x62")](e)}t[Ec("0x62")]([n.view,s])}return t})),this[Ec("0x4f")](e,Ec("0x30"),((t,e)=>{this.listenTo(e,Ec("0x4d"),((t,n,o,s)=>{e[Ec("0x44")]&&(null==o?(this[Ec("0x12")](s[Ec("0x3b")]),this[Ec("0x55")](e,!1)):(this._updateController(o[Ec("0x3b")]),this[Ec("0x55")](e,!0)))})),null===e[Ec("0x5a")]?this._handleSuggestionControllerDelayed(e,!1):this._updateController(e[Ec("0x3b")])})),this[Ec("0x4f")](e,Ec("0xe"),((t,e,n)=>{this[Ec("0x1f")](e,Ec("0x4d")),this[Ec("0x7")][Ec("0x23")](e);const o=n?n[Ec("0x3b")]:e,s=this[Ec("0x24")][Ec("0x5c")](o);null!==n&&this._updateController(o),null===n&&s&&this[Ec("0x20")](e)})),this[Ec("0x4f")](e,Ec("0x6f"),((t,e)=>{this[Ec("0x12")](e)})),this[Ec("0x4f")](n,Ec("0x33"),(()=>{this._refreshActiveMarkers()})),this[Ec("0x4f")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x2e")](n))return;const s=e[Ec("0x2")](n);this._suggestionToController[Ec("0x5c")](s)[Ec("0x61")][Ec("0x18")]()}),{priority:Ec("0xa")})}[Ec("0x13")](){const t=this[Ec("0x4e")].plugins[Ec("0x5c")](Ec("0x31")),e=this.editor[Ec("0x56")][Ec("0x5c")]("TrackChangesEditing"),n=Array[Ec("0x4")](t[Ec("0x35")],(t=>t[Ec("0x5")]))[Ec("0x25")]((t=>this[Ec("0x8")].has(t))),o=[];for(const t of n){const e=this[Ec("0x8")][Ec("0x5c")](t)[Ec("0x6a")][Ec("0x4a")]();o[Ec("0x62")](...e.reduce(((t,e)=>[...t,...e[Ec("0x6c")]()]),[]))}e[Ec("0x72")]=o}[Ec("0x60")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Ec("0x3")][Ec("0x5c")]("trackChanges"),r=Yo(t,Ec("0x38"));n.buttonView[Ec("0x3e")]({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("0x42")][Ec("0x52")](Ec("0x6d")).to(o,Ec("0x41")),n.buttonView.on(Ec("0x2c"),(()=>{o[Ec("0x2c")](),this[Ec("0x4e")][Ec("0x4c")][Ec("0x61")].focus()}));const i=new e.Collection,x=[{type:Ec("0x22"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:Ec("0x11")},{type:Ec("0x1e"),model:{withText:!0,label:Yo(t,Ec("0x16")),commandName:Ec("0x2d")}},{type:Ec("0x1e"),model:{withText:!0,label:Yo(t,Ec("0x5f")),commandName:"acceptSelectedSuggestions"}},{type:Ec("0x1e"),model:{withText:!0,label:Yo(t,Ec("0x67")),commandName:Ec("0x64")}},{type:Ec("0x1e"),model:{withText:!0,label:Yo(t,Ec("0x3f")),commandName:Ec("0x6e")}}];for(const t of x){let e={type:"separator"};if(t[Ec("0x6a")]){const n=new s.Model(t[Ec("0x6a")]),o=this.editor[Ec("0x3")].get(n[Ec("0x4b")]);n[Ec("0x52")](Ec("0x6d"),"isEnabled").to(o,Ec("0x41"),"isEnabled"),e={type:t[Ec("0x21")],model:n}}i[Ec("0x36")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x25")]((t=>null!=t[Ec("0x6a")]))[Ec("0x37")]((t=>this[Ec("0x4e")][Ec("0x3")].get(t[Ec("0x6a")][Ec("0x4b")]))),c=n[Ec("0x42")];return c[Ec("0x53")][Ec("0x27")](Ec("0x29")),c[Ec("0x50")][Ec("0x27")](Ec("0x29")),c.actionView[Ec("0x52")](Ec("0x29")).to(o,"isEnabled"),c[Ec("0x50")].bind(Ec("0x29"))[Ec("0x6")](a,Ec("0x29"),((...t)=>t.some((t=>t)))),n.on(Ec("0x2c"),(t=>{this[Ec("0x4e")][Ec("0x2c")](t[Ec("0x5b")][Ec("0x4b")]),this.editor[Ec("0x4c")][Ec("0x61")][Ec("0x18")]()})),n}[Ec("0x39")](t){const e=this[Ec("0x4e")],n=e[Ec("0x19")],o=e[Ec("0x56")][Ec("0x5c")](Ec("0x31")),s=e.plugins[Ec("0x5c")](Ec("0x1b")),i=e[Ec("0x56")][Ec("0x5c")](Ec("0x15")),x=e.plugins.get(r.Users).me,a=n[Ec("0x5c")](Ec("0x54"))[Ec("0x34")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x56")][Ec("0x5c")](Ec("0x65"));let d,u;this[Ec("0x46")][Ec("0x32")](t.id)?(u=this[Ec("0x46")][Ec("0x5c")](t.id),d=u.mainView):(d=new a(e.locale,t,x,{disableComments:this[Ec("0x3d")],editorConfig:n[Ec("0x5c")](Ec("0x26")),maxCommentsWhenCollapsed:n[Ec("0x5c")](Ec("0x43")),maxThreadTotalWeight:n.get(Ec("0x74")),maxCommentCharsWhenCollapsed:n[Ec("0x5c")](Ec("0x45")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x5c")](Ec("0x73"))),CommentView:n[Ec("0x5c")]("comments")[Ec("0x51")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x2b")].on("execute",(()=>{e.editing[Ec("0x61")].focus()})),d.discardButton.on(Ec("0x2c"),(()=>{e[Ec("0x4c")].view.focus()})),u=o[Ec("0x5d")](this.editor[Ec("0x73")],d),u[Ec("0x52")](Ec("0x9")).to(d,"isDirty"),u[Ec("0x52")](Ec("0x69")).to(d),u[Ec("0x52")](Ec("0x21")).to(d,Ec("0x21"),(t=>Ec("0x6b")+t)),this._annotationViews[Ec("0x3e")](t.id,u));const g=s[Ec("0x59")](t[Ec("0xb")],d),m=new oc(e,t,d,g),f=t.getAllAdjacentSuggestions().filter((t=>t.isInContent));d.descriptionParts=e.plugins.get("TrackChangesEditing")[Ec("0x66")].getDescriptions(f),this[Ec("0x24")][Ec("0x3e")](t,m),this._viewToController.set(d,m);const h=o[Ec("0x1a")]({view:u,target:()=>{const n=[],o=t.getAllAdjacentSuggestions()[Ec("0x25")]((t=>t.isInContent));for(const t of o)n[Ec("0x62")](...t[Ec("0x2f")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x4c")],n)},type:()=>Ec("0x6b")+m[Ec("0x61")].type});o[Ec("0x36")](h),i[Ec("0x28")](h)}_destroyController(t){const e=this[Ec("0x4e")][Ec("0x56")][Ec("0x5c")]("Annotations"),n=this._suggestionToController[Ec("0x5c")](t),o=n.view,s=e[Ec("0x10")](o);s&&e[Ec("0x2a")](s),this[Ec("0x24")][Ec("0x23")](t),this[Ec("0x8")][Ec("0x23")](o),n[Ec("0x0")]()}[Ec("0x12")](t){if(!t[Ec("0x44")]||!this[Ec("0x24")][Ec("0x32")](t))return;const e=this[Ec("0x4e")][Ec("0x56")][Ec("0x5c")](Ec("0xd")),n=this._suggestionToController[Ec("0x5c")](t),o=t[Ec("0x4a")]();n[Ec("0x61")][Ec("0x68")]=e[Ec("0x66")][Ec("0x71")](o)}destroy(){for(const t of this[Ec("0x24")][Ec("0x1c")]())this[Ec("0x20")](t);for(const t of this._annotationViews[Ec("0x63")]())t[Ec("0x5e")][Ec("0x0")]();super[Ec("0x0")]()}}var Tc,Cc,yc=["addSuggestionData","plugins","get","getSuggestion","TrackChanges","pluginName","editor","getSuggestions","adapter"];Tc=yc,Cc=266,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,"Comments"]}static get[kc("0x0")](){return kc("0x8")}set[kc("0x3")](t){this[kc("0x1")][kc("0x5")][kc("0x6")](Wa)[kc("0x3")]=t}get[kc("0x3")](){return this[kc("0x1")][kc("0x5")][kc("0x6")](Wa).adapter}addSuggestion(t){return this[kc("0x1")][kc("0x5")][kc("0x6")](Wa)[kc("0x4")](t)}[kc("0x2")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x1")][kc("0x5")][kc("0x6")](Wa)[kc("0x2")]({skipNotAttached:t,toJSON:e})}[kc("0x7")](t){return this[kc("0x1")][kc("0x5")][kc("0x6")](Wa)[kc("0x7")](t)}}const vc=["function","trackChangesData","getUser","getRootNames","push","getDataWithDiscardedSuggestions","CommentsRepository","_adapter","define","constructor","getFullData","name","users","destroy","TrackChangesDataGetter","init","reduce","pluginName","data","document","editor","createElement","div","Pagination","addUser","createDocumentFragment","model","editorCreator","result","set","config","Users","map","get","plugins","execute","getSuggestions","discardAllSuggestions","TrackChangesEditing"];var Rc,Sc;Rc=vc,Sc=105,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x23")];class Nc extends t.Plugin{static get requires(){return[Wa]}static get[Ic("0x1d")](){return"TrackChangesData"}[Ic("0x1b")](){const t=this.editor;if(t[Ic("0x3")][Ic("0x14")]("trackChangesData.editorCreator",(e=>{const n=t[Ic("0x26")][Ic("0x1f")][Ic("0xf")]()[Ic("0x1c")](((t,e)=>(t[e]="",t)),{});return t[Ic("0x15")].create(n,e)})),Ic("0xc")!=typeof t[Ic("0x3")][Ic("0x6")](Ic("0xd"))[Ic("0x0")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}getDataWithAcceptedSuggestions(t){return Oc(this[Ic("0x20")],!0,t)}[Ic("0x11")](t){return Oc(this[Ic("0x20")],!1,t)}}class Mc extends t.Plugin{static get pluginName(){return Ic("0x1a")}constructor(t){super(t),this[Ic("0x1")]="end"}[Ic("0x1b")](){this[Ic("0x20")].plugins[Ic("0x6")](Ic("0x12"))[Ic("0x13")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[Ic("0x7")][Ic("0x6")](Ic("0xb"))[Ic("0x13")]=null}}function wc(t){return void 0!==t.getRootsAttributes}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o.plugins[Ic("0x10")](Wa,Mc),o.rootsAttributes=wc(t)?t.getRootsAttributes():void 0;const s=document[Ic("0x25")](),i=t[Ic("0x3")][Ic("0x6")]("trackChangesData")[Ic("0x0")],x=await i(o,(()=>function(t){const e=document[Ic("0x21")](Ic("0x22"));return t.appendChild(e),e}(s)));!function(t,e){const n=t.model[Ic("0x1f")].getRootNames()[Ic("0x1c")](((e,n)=>(e[n]=t[Ic("0x1e")].get({rootName:n}),e)),{}),o=t[Ic("0x7")].get("Users")[Ic("0x18")][Ic("0x5")]((t=>({id:t.id,name:t[Ic("0x17")]}))),s=t.plugins[Ic("0x6")](Ic("0xb"))[Ic("0x9")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x7")][Ic("0x6")](Ic("0x4")),i=e[Ic("0x7")][Ic("0x6")]("TrackChangesEditing");for(const t of o)r[Ic("0xe")](t.id)||r[Ic("0x24")](t);r.me||r.useAnonymousUser();for(const t of s)i.addSuggestionData(t);e[Ic("0x1e")][Ic("0x2")](n)}(t,x),x[Ic("0x8")](e?"acceptAllSuggestions":Ic("0xa"));const a=wc(x)?x[Ic("0x16")](n):x.data[Ic("0x6")](n);return await x[Ic("0x19")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|