@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230705.0 → 0.0.0-nightly-20230707.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:()=>Mc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["clearForceDisabled","value","refresh","TrackChangesCommand","_isEnabledBasedOnSelection","isEnabled","_disableUnsupportedCommands","execute","_enabledCommands","commands","affectsData","editor","_enableCommands","has"];var c,l;c=a,l=417,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this.value=!1,this[d("0x5")](),this[d("0x7")]=!1}[d("0x5")](){this[d("0x8")]=!0}[d("0xa")](){this[d("0x4")]=!this.value,this[d("0x4")]?this[d("0x9")]():this[d("0x1")]()}[d("0x9")](){for(const t of this[d("0x0")][d("0xc")].commands())t[d("0xd")]&&!this[d("0xb")][d("0x2")](t)&&t.forceDisabled(d("0x6"))}_enableCommands(){for(const t of this[d("0x0")][d("0xc")][d("0xc")]())t[d("0xd")]&&!this[d("0xb")].has(t)&&t[d("0x3")]("TrackChangesCommand")}}const g=["getRanges","_isEnabledBasedOnSelection","canEditAt","isEnabled","acceptSuggestion","editor","_suggestions","track-changes-accept-suggestion-not-found","refresh","get","model","TrackChangesEditing"];var m,f;m=g,f=342,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[h("0x2")](),this[h("0x7")]=!1}[h("0x2")](){this[h("0x9")]=!0}execute(t){const n=this[h("0x0")][h("0x3")](t);if(!n)throw new e.CKEditorError(h("0x1"),this);const o=n[h("0x6")]();this[h("0xb")][h("0x4")][h("0x8")](o)&&this[h("0xb")].plugins.get(h("0x5"))[h("0xa")](n)}}const b=["get","execute","discardSuggestion","_isEnabledBasedOnSelection","editor","refresh","_suggestions","model","plugins","getRanges"];var E,_;E=b,_=229,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x6")](),this[T("0x4")]=!1}refresh(){this.isEnabled=!0}[T("0x2")](t){const n=this[T("0x7")][T("0x1")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x0")]();this[T("0x5")][T("0x8")].canEditAt(o)&&this[T("0x5")][T("0x9")].get("TrackChangesEditing")[T("0x3")](n)}}const y=["next","type","map","isMultiRange","length","push","createPositionAfter","getRanges","schema","from","isCollapsed","end","add","isTouching","splice","isObject","deletion","getRange","isInContent","join","color","content","value","sort"];var k,A;k=y,A=154,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0xd")](((t,e)=>v("0x6")==t[v("0xf")]&&v("0x6")!=e[v("0xf")]?-1:v("0x6")!=t[v("0xf")]&&v("0x6")==e[v("0xf")]?1:0))}function I(t,e){let n,o=0;const s=[],r=e[v("0x16")];for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e.createPositionBefore(i)),S(e,i,x)||(s[v("0x13")](e.createRange(n,r[v("0x5")](i)?e[v("0x14")](i):e.createPositionAt(i,v("0x1")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[v("0x14")](e),s=t.createPositionBefore(n);return o.isTouching(s)}function L(t,e,n){for(;n[v("0x12")];){const o=n[v("0x4")](0,100);t.change((()=>{for(const t of o)t.isInContent&&e.execute(t.id)}))}}const N=["_suggestions","canEditAt","isEnabled","some","from","_command","getRanges","editor","refresh","values","execute","model","isInContent"];var M,w;M=N,w=449,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("0xb")]=e,this[O("0x6")]=n,this[O("0x1")](),this._isEnabledBasedOnSelection=!1}[O("0x1")](){const t=Array[O("0xa")](this[O("0x6")][O("0x2")]())[O("0x9")]((t=>t[O("0x5")]));this.isEnabled=this[O("0xb")][O("0x8")]&&t}[O("0x3")](){const t=R(Array.from(this[O("0x6")][O("0x2")]()));for(const e of t){const t=e[O("0xc")]();if(!this[O("0x0")][O("0x4")][O("0x7")](t))return}L(this[O("0x0")][O("0x4")],this[O("0xb")],t)}}const P=["from","isEnabled","_isEnabledBasedOnSelection","getRanges","size","model","_selectedSuggestions","document","_command","selection","refresh","values","editor","_suggestions","execute"];var D,B;D=P,B=323,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x0")]=e,this[j("0x5")]=n,this[j("0xd")]=new Set,this[j("0x2")](),this[j("0x9")]=!1}refresh(){const t=this[j("0x4")][j("0xc")][j("0xe")][j("0x1")],e=Array.from(this[j("0x5")][j("0x3")]());this._selectedSuggestions=function(t,e){const n=Array[v("0x17")](t[v("0x15")]()),o=new Set;for(const s of e)if(s[v("0x8")])for(const e of n)for(const n of s.getMarkers()){const r=n[v("0x7")]();(e.isIntersecting(r)||t[v("0x0")]&&!s[v("0x11")]&&s[v("0xe")]&&r[v("0x1")][v("0x3")](e.start))&&o[v("0x2")](s)}return o}(t,e),this[j("0x8")]=this[j("0x0")][j("0x8")]&&!!this._selectedSuggestions[j("0xb")]}[j("0x6")](){const t=R(Array[j("0x7")](this[j("0xd")]));for(const e of t){const t=e[j("0xa")]();if(!this[j("0x4")][j("0xc")].canEditAt(t))return}L(this.editor.model,this[j("0x0")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const 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 It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Nt=Lt(ot,"Map");const 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 Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const 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 In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const 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]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var 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=In(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 Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const 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=Io;case"[object Set]":var a=1&o;if(x||(x=So),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:In(t),c=x?Po:In(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=["removeAttribute","accept","discard","nodeBefore","getMarkers","decorate","author","clear","map","onDiscard","isMultiRange","onAttributesChange","length","reduce","creator","getItems","set","removeMarker","getContainedElement","data","getFirstMarker","hasComments","add","start","onAccept","isInContent","head","getRanges","addRange","attributes","getMultiRangeId","getFirstRange","getMarkerNames","isIntersecting","nodeAfter","filter","createdAt","_model","get","next","previous","removeMarkers","from","addMarkerName","authoredAt","getRange","_markerNames","push","end","_onDiscard","_onAccept","type","_saved","commentThread","subType","change","size","toJSON","_onAttributesChange","delete"];var $o,Jo;$o=Xo,Jo=266,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x19")]=e[Qo("0x19")],this.subType=e[Qo("0x1c")]||null,this.author=e[Qo("0x28")],this.creator=e[Qo("0x30")]||e[Qo("0x28")],this.isExternal=Boolean(e[Qo("0x3")]&&e[Qo("0x3")]["@external"]),this.data=null,this[Qo("0xb")]=t,this[Qo("0x18")]=e[Qo("0x3a")],this[Qo("0x17")]=e[Qo("0x2b")],this[Qo("0x20")]=e[Qo("0x2d")],this[Qo("0x14")]=new Set,this[Qo("0xa")]=null,this.set(Qo("0x12"),null),this[Qo("0x32")]("attributes",e.attributes||{}),this[Qo("0x32")](Qo("0xe"),null),this[Qo("0x32")](Qo("0xd"),null),this[Qo("0x32")]("commentThread",null),this[Qo("0x32")](Qo("0x1a"),!1),this.decorate(Qo("0x23")),this[Qo("0x27")](Qo("0x24"))}get[Qo("0x0")](){let t=this;for(;t[Qo("0xe")];)t=t[Qo("0xe")];return t}get[Qo("0x37")](){return!!this[Qo("0x1b")]&&this[Qo("0x1b")][Qo("0x2e")]>0}get[Qo("0x2c")](){return 0!=this[Qo("0x14")][Qo("0x1e")]&&6==Array[Qo("0x10")](this[Qo("0x14")])[0].split(":").length}get[Qo("0x3b")](){return null!==this.getFirstMarker()}[Qo("0x11")](t){this[Qo("0x14")][Qo("0x38")](t)}[Qo("0x6")](){return Array[Qo("0x10")](this[Qo("0x14")])}[Qo("0x26")](){return this[Qo("0x6")]()[Qo("0x2a")]((t=>this[Qo("0xb")].markers[Qo("0xc")](t)))[Qo("0x9")]((t=>t))}[Qo("0x36")](){return this[Qo("0x26")]()[0]||null}[Qo("0xf")](){this[Qo("0xb")][Qo("0x1d")]((t=>{for(const e of this[Qo("0x26")]())t.removeMarker(e)})),this[Qo("0x14")][Qo("0x29")]()}[Qo("0x33")](t){this._model[Qo("0x1d")]((e=>{e[Qo("0x33")](t)})),this[Qo("0x14")][Qo("0x21")](t)}[Qo("0x2")](t){const e="suggestion:"+this[Qo("0x19")]+":"+this[Qo("0x1c")]+":"+this.id+":"+this[Qo("0x30")].id+":"+Zo[Qo("0x4")]();this[Qo("0x11")](e),this[Qo("0xb")][Qo("0x1d")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x1")]())if(e[Qo("0x7")](t))return!0;return!1}getRanges(){return this.getMarkers()[Qo("0x2a")]((t=>t[Qo("0x13")]()))}getItems(){return this.getRanges()[Qo("0x2f")](((t,e)=>[...t,...e[Qo("0x31")]()]),[])}[Qo("0x5")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t.getRange())||null}[Qo("0x34")](){const t=this[Qo("0x1")]();if(1!=t[Qo("0x2e")])return null;const e=t[0],n=e[Qo("0x39")][Qo("0x8")],o=e[Qo("0x16")][Qo("0x25")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x23")](){this[Qo("0x18")](this[Qo("0x1")](),this[Qo("0x35")],this[Qo("0x3")]),this[Qo("0xf")]()}[Qo("0x24")](){this[Qo("0x17")](this[Qo("0x1")](),this[Qo("0x35")],this[Qo("0x3")]),this.removeMarkers()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x0")];for(;e;)t[Qo("0x15")](e),e=e.next;return t}setAttribute(t,e){const n=eo(this[Qo("0x3")]);_o(n,t,e),Go(n,this[Qo("0x3")])||(this[Qo("0x3")]=n,this[Qo("0x20")](n))}[Qo("0x22")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0x3")])||(this[Qo("0x3")]=e,this[Qo("0x20")](this[Qo("0x3")]))}[Qo("0x1f")](){return{id:this.id,type:this[Qo("0x1c")]?this[Qo("0x19")]+":"+this[Qo("0x1c")]:this[Qo("0x19")],authorId:this[Qo("0x30")].id,createdAt:this.createdAt,hasComments:this[Qo("0x37")],data:this[Qo("0x35")],attributes:this[Qo("0x3")]}}static[Qo("0x4")](){return(0,e.uid)().substr(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=["checkChild","softBreak","*Remove:* %0","data","indexOf","skip","length","_itemLabels","*Merge:* %0","_customCallbacks","isObject","ELEMENT_SPACE","add","item","_resolveDescriptionItems","$1 $2","registerElementLabel","removeEmptyContainer","$textProxy","EmptyContainer","getItemLabel","set","insertion","quantity","Container","*Split:* %0","push","function","text","*Insert:* %0","label","_locale","$text","remove","end","previousSibling","normal","isInContent","isEmpty","_addDescriptionItems","elementStart","match","isEqual","matchingCallback","getDescriptions","nextSibling","elementEnd","addContainer","getWalker","name","get","removeObject","start","deletion","replace","type","getFirstRange","_itemLabelsCallbacks","_schema","element","Object"];var es,ns;es=ts,ns=261,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("0x35")]=[],this[os("0x33")]=new Map,this[os("0x28")]=[],this[os("0x29")]=t,this[os("0xe")]=e}[os("0x1b")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[os("0x14")])continue;let s=!1;for(const t of this[os("0x35")]){const n=t(o);if(n){os("0x26")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x16")](e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x11")][os("0x19")](s[os("0x27")]()[os("0x23")])){const t=e[e[os("0x32")]-1],n="insertion"==o.type?os("0x38"):"remove";t&&os("0xb")==t[os("0x26")]&&(t[n]+="\n")}}}return this[os("0x3a")](e)}registerDescriptionCallback(t){this[os("0x35")][os("0x9")](t)}[os("0x3c")](t,n,o=e.priorities[os("0x13")]){os("0xa")==typeof t?(0,e.insertToPriorityArray)(this[os("0x28")],{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x4")](t,n)}[os("0x3")](t,e=1){let n;for(const e of this[os("0x28")])if(e[os("0x1a")](t)){n=e[os("0xd")];break}return n||(n=this[os("0x33")][os("0x21")](t.name)),n?n(e):1!==e?e+" "+t.name+"s":""+t.name}[os("0x16")](t,e){const n=e[os("0x27")]()[os("0x1f")](),o="insertion"==e[os("0x26")]?os("0x38"):"remove";for(const e of n){const s=e.item,r=t[t[os("0x32")]-1];if(s.is(os("0x1")))r&&r[os("0x26")][os("0x30")]("Container")>-1&&t.pop(),r&&os("0xb")==r[os("0x26")]?r[o]+=s.data:t.push({type:"text",add:os("0x38")==o?s[os("0x2f")]:"",remove:os("0x10")==o?s[os("0x2f")]:""});else if(this[os("0x29")][os("0x36")](s)){const i=s;if(r&&r.type[os("0x30")]("Container")>-1&&t.pop(),os("0x1d")==e[os("0x26")])continue;r&&r[os("0x26")]==o+os("0x2b")&&r[os("0x2a")][os("0x20")]==i[os("0x20")]?r[os("0x6")]++:t[os("0x9")]({type:o+os("0x2b"),element:i,quantity:1}),n[os("0x31")]((t=>!("elementEnd"==t.type&&t[os("0x39")]==s)))}else if(this._schema[os("0x2c")](s,os("0xf"))||s.is(os("0x2a"),os("0x2d"))){const n=s;if("add"==o&&os("0x17")==e[os("0x26")]||os("0x10")==o&&os("0x1d")==e.type)continue;if(r&&-1==r.type[os("0x30")](os("0x7"))){os("0xb")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x38")==o?n.nextSibling&&!this[os("0x29")].isObject(n.nextSibling)?n[os("0x1c")]:null:n.previousSibling&&!this._schema[os("0x36")](n[os("0x12")])?n[os("0x12")]:null,n.isEmpty||i&&i[os("0x15")]){const e=i&&i[os("0x15")]?i:n;r&&r.type==o+os("0x2")&&r[os("0x2a")][os("0x20")]==e.name?r[os("0x6")]++:t[os("0x9")]({type:o+os("0x2"),element:e,quantity:1})}else t[os("0x9")]({type:o+"Container",element:n})}}}[os("0x3a")](t){const e=this[os("0xe")],n=[];for(const o of t){switch(o[os("0x26")]){case"text":if(o[os("0x38")]=o.add.replace(/(\S)\u000A+(\S)/g,os("0x3b")).replace(/\u000A/g,""),o.remove=o.remove[os("0x25")](/(\S)\u000A+(\S)/g,os("0x3b")).replace(/\u000A/g,""),""!=o.add&&""!=o[os("0x10")]){n[os("0x9")]({type:os("0x25"),content:Yo(e,"REPLACE_TEXT",['"'+o.remove+'"','"'+o.add+'"'])});continue}if(null!=o[os("0x38")].match(/^ +$/)){n[os("0x9")]({type:"insertion",content:Yo(e,os("0xc"),Yo(e,os("0x37"),o[os("0x38")][os("0x32")]))});continue}if(null!=o[os("0x10")][os("0x18")](/^ +$/)){n[os("0x9")]({type:"deletion",content:Yo(e,os("0x2e"),Yo(e,"ELEMENT_SPACE",o[os("0x10")][os("0x32")]))});continue}if(""!=o[os("0x38")]){n[os("0x9")]({type:os("0x5"),content:Yo(e,os("0xc"),'"'+o.add+'"')});continue}n[os("0x9")]({type:os("0x24"),content:Yo(e,os("0x2e"),'"'+o[os("0x10")]+'"')});continue;case"addEmptyContainer":case"addObject":n[os("0x9")]({type:os("0x5"),content:Yo(e,os("0xc"),this.getItemLabel(o[os("0x2a")],o.quantity))});continue;case os("0x0"):case os("0x22"):n.push({type:os("0x24"),content:Yo(e,os("0x2e"),this[os("0x3")](o[os("0x2a")],o.quantity))});continue;case os("0x1e"):n[os("0x9")]({type:os("0x5"),content:Yo(e,os("0x8"),this[os("0x3")](o[os("0x2a")],o.quantity))});continue;case"removeContainer":n.push({type:os("0x24"),content:Yo(e,os("0x34"),this[os("0x3")](o[os("0x2a")],o[os("0x6")]))});continue}n[os("0x9")](o)}return n}}const rs=["center","AlignmentEditing","model","change","FORMAT_ALIGN_TO_CENTER","ltr","justify","value","getAttribute","alignment","commandName","FORMAT_JUSTIFY_TEXT","right","*Format:* %0","selection","left","FORMAT_ALIGN_TO_LEFT","getSelectedBlocks","document","registerDescriptionCallback","afterInit","from","TrackChangesEditing","format","plugins","editor","locale","markBlockFormat"];var is,xs;is=rs,xs=340,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x10")](){const t=this.editor,e=t.locale;if(!t[as("0x14")].has(as("0x19")))return;const n=t[as("0x14")].get(as("0x12"));n.enableCommand("alignment",((e,o={})=>{let s=o[as("0x3")];o[as("0x3")]||(s=as("0x1")===t[as("0x16")].contentLanguageDirection?as("0xb"):as("0x8"));const r=Array[as("0x11")](this[as("0x15")][as("0x1a")][as("0xe")][as("0xa")][as("0xd")]()).filter((t=>function(t,e,n){const o=t[as("0x4")](as("0x5"))||null;return e.checkAttribute(t,as("0x5"))&&n!=o}(t,this[as("0x15")].model.schema,s)));t[as("0x1a")][as("0x1b")]((()=>{for(const t of r)n[as("0x17")](t,{commandName:as("0x5"),commandParams:[{value:s}]})}))})),n._descriptionFactory[as("0xf")]((t=>{const{data:n}=t;if(n&&as("0x5")==n[as("0x6")]){const t=n.commandParams[0][as("0x3")];return{type:as("0x13"),content:Yo(e,as("0x9"),function(t){switch(t){case as("0xb"):return Yo(e,as("0xc"));case"right":return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case as("0x18"):return Yo(e,as("0x0"));case as("0x2"):return Yo(e,as("0x7"))}}(t))}}}))}}const ls=["markerName","bindElementToMarker","listItem","createUIElement","test","activeMarkers","mapper","writer","previousPosition","schema","TrackChangesEditing","nextSibling","addClass","getItems","item","isAtEnd","plugins","hasAttribute","listIndent","ck-suggestion-marker-","start","parent","getAttribute","markerRange","get","includes","type","isLimit","consumable","element","getCustomProperty"];var ds,us;ds=ls,us=148,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("0x14")]())s[gs("0x18")](t)&&o.push(n.createRangeOn(s));return o}function fs(t){const e=[];if(t.is(gs("0x5"),gs("0x9"))){let n=t[gs("0x12")];for(;n&&n.is(gs("0x5"),gs("0x9"))&&n[gs("0x1d")](gs("0x19"))>0;)e.push(n),n=n[gs("0x12")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x17")][gs("0x0")](gs("0x11"));return(s,r,i)=>{if(!i[gs("0x4")][gs("0xb")](r[gs("0x1e")],s.name))return;const x=r.markerRange.getWalker(),a=r[gs("0x1e")][gs("0x1b")],c=t.model[gs("0x10")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x15")];u=u||c.isContent(e);const n=i.mapper.toViewElement(e);if(n&&n[gs("0x6")]("addHighlight"))return;"elementEnd"==t[gs("0x2")]&&c.isBlock(e)&&!c[gs("0x3")](e)&&(e[gs("0x12")]||a[gs("0x16")]?l&&l[gs("0x1c")]==e||(l=e,m(t[gs("0xf")]),g=!0):d=d||t[gs("0xf")])}function m(t){const s=i[gs("0xe")][gs("0xa")]("span",{class:gs("0x1a")+e}),x=i[gs("0xd")].toViewPosition(t);n&&o[gs("0xc")][gs("0x1")](r[gs("0x7")])&&i[gs("0xe")][gs("0x13")]("ck-suggestion-marker--active",s),i.writer.insert(x,s),i[gs("0xd")][gs("0x8")](s,r[gs("0x7")])}u||g||!d||m(d)}}const ps=["document","value","FORMAT_CODE","FORMAT_STRIKETHROUGH","SuperscriptEditing","underline","getRanges","strikethrough","locale","*Remove format:* %0","change","get","italic","plugins","format","UnderlineEditing","commandParams","superscript","BoldEditing","StrikethroughEditing","slice","FORMAT_SUBSCRIPT","ItalicEditing","selection","CodeEditing","FORMAT_ITALIC","markInlineFormat","afterInit","from","toLowerCase","FORMAT_BOLD","forceValue","has","*Format:* %0","SubscriptEditing","commands","commandName","TrackChangesEditing","FORMAT_UNDERLINE","code","model"];var bs,Es;bs=ps,Es=245,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x13"),_s("0x17"),_s("0x10"),_s("0x19"),_s("0x14"),_s("0x23"),_s("0x5")];class Cs extends t.Plugin{[_s("0x1c")](){const t=this.editor,e=t[_s("0x0")],n=t[_s("0xe")][_s("0xc")](_s("0x26")),o=t[_s("0x9")];for(const o of Ts){if(!t[_s("0xe")][_s("0x21")](o))continue;const s=o[_s("0x15")](0,-7)[_s("0x1e")](),r=t[_s("0x24")].get(s);n.enableCommand(s,((t,o={})=>{const i=e[_s("0x1")][_s("0x18")];if(i.isCollapsed)return void t(o);const x=void 0!==o[_s("0x20")]?o[_s("0x20")]:!r[_s("0x2")];e[_s("0xb")]((()=>{const t=Array[_s("0x1d")](i[_s("0x7")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x1b")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory.registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[_s("0x25")]===t)return s[_s("0x11")][0][_s("0x20")]?{type:_s("0xf"),content:Yo(o,_s("0x22"),e)}:{type:_s("0xf"),content:Yo(o,_s("0xa"),e)}}))}s("bold",Yo(o,_s("0x1f"))),s(_s("0xd"),Yo(o,_s("0x1a"))),s(_s("0x6"),Yo(o,_s("0x27"))),s(_s("0x28"),Yo(o,_s("0x3"))),s(_s("0x8"),Yo(o,_s("0x4"))),s("subscript",Yo(o,_s("0x16"))),s(_s("0x12"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const ys=["model","BlockQuoteEditing","get","has","checkChild","afterInit","markBlockFormat","_descriptionFactory","commands","*Format:* %0","parent","$root","ELEMENT_BLOCK_QUOTE","blockQuote","commandName","name","from","change","format","enableCommand","filter","schema","getSelectedBlocks","registerDescriptionCallback","selection","forceValue","editor"];var ks,As;ks=ys,As=269,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("0x0")],e=t.locale;if(!t.plugins[vs("0x4")](vs("0x2")))return;const n=t.plugins[vs("0x3")]("TrackChangesEditing"),o=this.editor[vs("0x9")][vs("0x3")](vs("0xe"));n[vs("0x14")]("blockQuote",((e,s={})=>{const r=this[vs("0x0")].model.document[vs("0x19")],i=s&&void 0!==s[vs("0x1a")]?s[vs("0x1a")]:!o.value;let x=[];if(i){const e=Array[vs("0x11")](r.getSelectedBlocks())[vs("0x15")]((t=>Is(t)||function(t,e){const n=e[vs("0x5")](t[vs("0xb")],vs("0xe")),o=e[vs("0x5")]([vs("0xc"),vs("0xe")],t);return n&&o}(t,this.editor[vs("0x1")][vs("0x16")])));x=I(e,t[vs("0x1")])}else{const e=Array[vs("0x11")](r[vs("0x17")]())[vs("0x15")]((t=>Is(t)));x=I(e,t[vs("0x1")])}t.model[vs("0x12")]((()=>{for(const t of x)n[vs("0x7")](t,{commandName:vs("0xe"),commandParams:[{forceValue:i}]})}))})),n[vs("0x8")][vs("0x18")]((t=>{const{data:n}=t;if(n&&vs("0xe")==n[vs("0xf")]){const t=Yo(e,vs("0xd"));return n.commandParams[0].forceValue?{type:vs("0x13"),content:Yo(e,vs("0xa"),t)}:{type:vs("0x13"),content:Yo(e,"*Remove format:* %0",t)}}}))}}function Is(t){return vs("0xe")==t[vs("0xb")][vs("0x10")]}const Ss=["get","TrackChangesEditing","commands","plugins","ckbox","enableCommand"];var Ls,Ns;Ls=Ss,Ns=342,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{afterInit(){const t=this.editor;t[Ms("0x2")].get(Ms("0x4"))&&t[Ms("0x3")][Ms("0x0")](Ms("0x1"))[Ms("0x5")]("ckbox")}}const Os=["enableCommand","name","afterInit","format","languages","value","document","filter","blockName","forceValue","selection","locale","CodeBlock","get","plugins","commandName","commands","config","outdentCodeBlock","commandParams","ELEMENT_CODE_BLOCK","*Remove format:* %0","from","*Format:* %0","codeBlock","_descriptionFactory","language","formatBlock","parent","schema","indentCodeBlock","model","checkChild","markBlockFormat","getSelectedBlocks","find","editor","registerElementLabel","change"];var Fs,Ps;Fs=Os,Ps=405,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1a")](){const t=this[Ds("0x15")];if(!t.plugins.has(Ds("0x24")))return;const e=t[Ds("0x26")][Ds("0x25")]("TrackChangesEditing"),n=t[Ds("0x23")],o=t[Ds("0x2")][Ds("0x25")]("codeBlock")[Ds("0x1c")],s=t[Ds("0x1")][Ds("0x25")](Ds("0x9"));e[Ds("0x18")](Ds("0xf")),e[Ds("0x18")](Ds("0x3")),e[Ds("0x18")](Ds("0x9"),((n,r={})=>{const i=t[Ds("0x10")],x=t.model[Ds("0x1e")][Ds("0x22")],a=r&&void 0!==r[Ds("0x21")]?r.forceValue:!s[Ds("0x1d")];let c;r.language||(r.language=o[0][Ds("0xb")]),c=a?Array[Ds("0x7")](x[Ds("0x13")]())[Ds("0x1f")]((t=>{return js(t)||(e=t,n=i[Ds("0xe")],!e.is("rootElement")&&!n.isLimit(e)&&n[Ds("0x11")](e[Ds("0xd")],"codeBlock"));var e,n})):Array[Ds("0x7")](x[Ds("0x13")]())[Ds("0x1f")]((t=>js(t)));const l=I(c,i);i[Ds("0x17")]((()=>{for(const t of l)e[Ds("0x12")](t,{commandName:Ds("0x9"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x20")})}))})),e[Ds("0xa")][Ds("0x16")](Ds("0x9"),(t=>Yo(n,Ds("0x5"),t))),e[Ds("0xa")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0xc")==s&&r&&Ds("0x9")==r[Ds("0x0")]){const t=r[Ds("0x4")][0][Ds("0xb")],s=e(o[Ds("0x14")]((e=>e[Ds("0xb")]===t)).label);return r.commandParams[0][Ds("0x21")]?{type:"format",content:Yo(n,Ds("0x8"),Yo(n,Ds("0x5"),1)+" ("+s+")")}:{type:Ds("0x1b"),content:Yo(n,Ds("0x6"),Yo(n,Ds("0x5"),1))}}}))}}function js(t){return Ds("0x9")==t[Ds("0x19")]}const Us=["enableCommand","addCommentThread","editor","CommentsEditing","plugins","has","get","TrackChangesEditing","afterInit"];var Gs,Hs;Gs=Us,Hs=247,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x4")](){const t=this[zs("0x7")];t[zs("0x0")][zs("0x1")](zs("0x8"))&&t[zs("0x0")][zs("0x2")](zs("0x3"))[zs("0x5")](zs("0x6"))}}var Vs=n(181);const Ks=["requires","setSelection","document","removeMarker:suggestion:deletion","data","createRange","enqueueChange","model","end","commands","bind","addMarker:suggestion:deletion","high","isCollapsed","getFirstRange","editor","lock","options","remove","get","start","enableCommand","unlock","deleteForward","root","init","$graveyard","downcastDispatcher","buffer","modifySelection","fromRange","markerNameToElements","forward","mapper","merge"];var qs,Xs;qs=Ks,Xs=308,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("0x7")](){return[Vs.Delete]}[$s("0x20")](){const t=this[$s("0x16")],e=t.plugins[$s("0x1a")]("TrackChangesEditing");e.enableCommand("delete");const n=t[$s("0x10")][$s("0x1a")]($s("0x1e"));e[$s("0x1c")]($s("0x1e"),((e,o={})=>{const s=t[$s("0xe")].createSelection(t[$s("0xe")][$s("0x9")].selection);s[$s("0x14")]&&t[$s("0xe")][$s("0x1")](s,{direction:$s("0x4"),unit:o.unit});const r=s[$s("0x15")](),x=i.LiveRange[$s("0x2")](r);let a;e(o),a=$s("0x21")==x[$s("0x1f")].rootName?t[$s("0xe")][$s("0xc")](r[$s("0x1b")]):t[$s("0xe")][$s("0xc")](x.start,x.end),x.detach(),t[$s("0xe")][$s("0xd")](n[$s("0x0")].batch,(t=>{n[$s("0x0")][$s("0x17")](),t[$s("0x8")](t[$s("0xc")](a[$s("0xf")])),n[$s("0x0")][$s("0x1d")]()}))})),t.editing[$s("0x22")].on($s("0x12"),hs(t,$s("0x6")),{priority:"high"}),t[$s("0xb")][$s("0x22")].on($s("0x12"),((e,n,o)=>{o[$s("0x18")].showSuggestionHighlights&&hs(t,$s("0x6"),{showActiveMarker:!1})[$s("0x11")](this)(e,n,o)}),{priority:"high"}),t.editing[$s("0x22")].on($s("0xa"),((t,e,n)=>{const o=n[$s("0x5")][$s("0x3")](e.markerName);if(o)for(const t of o)t.is("uiElement")&&(n[$s("0x5")].unbindElementFromMarkerName(t,e.markerName),n.writer[$s("0x19")](t))}),{priority:$s("0x13")})}}const Qs=["nextSibling","previousSibling","isFirstBlockOfListItem","getRanges","DocumentListUtils","enableCommand","getAttribute","document","registerDescriptionCallback","isObject","documentList","getFirstRange","map","*Format:* insert into %0","multipleBlocks","nodeAfter","TrackChangesEditing","mergeListItemForward","createRange","splitListItemBefore","_descriptionFactory","*Indent:* %0","registerCustomCallback","ELEMENT_LIST_ITEM","markBlockFormat","markMultiRangeBlockFormat","formatBlock","before","plugins","commands","setSelection","get","commandParams","change","bulletedList","accept","DocumentListEditing","editor","from","listType","format","slice","start","schema","containsItem","after","commandName","numberedList","listItemId","push","outdentList","locale","listIndent","end","refresh","length","createPositionAt","getSelectedBlocks","value","forceValue","*Format:* remove from %0","_LIST","ELEMENT_NUMBERED_LIST","toUpperCase","selection","next","*Outdent:* %0","ELEMENT_BULLETED_LIST","model","fromRange","*Change to:* %0","indentList","splitListItemAfter","execute","has","*Merge:* %0"];var Zs,Ys;Zs=Qs,Ys=447,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{afterInit(){const t=this[tr("0x2e")];if(!t[tr("0x25")][tr("0x7")](tr("0x2d")))return;const e=t[tr("0x3c")],n=t.plugins[tr("0x28")](tr("0x19")),o=t[tr("0x25")].get(tr("0xd"));function s(e){return()=>{const s=t[tr("0x26")][tr("0x28")](e);let r=Array[tr("0x2f")](t.model[tr("0x10")][tr("0x49")][tr("0x42")]());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o[tr("0xb")](e)&&t[tr("0x3a")](e);r=t}t[tr("0x1")][tr("0x2a")]((()=>{n[tr("0x22")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x43")]}],formatGroupId:tr("0x30")},[],tr("0x13"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e.findIndex((t=>!t.hasAttribute(tr("0x39"))));return n>-1&&(e=e[tr("0x32")](0,n)),e}(t[tr("0x1")][tr("0x10")][tr("0x49")][tr("0x42")]()),s=o[o[tr("0x40")]-1],r=t[tr("0x1")][tr("0x34")].isObject(s)?tr("0x36"):tr("0x3e"),i=t[tr("0x1")][tr("0x1b")](t[tr("0x1")][tr("0x41")](o[0],tr("0x24")),t[tr("0x1")].createPositionAt(s,r));t[tr("0x1")][tr("0x2a")]((()=>{n[tr("0x21")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[tr("0x9")];for(;t&&t[tr("0xf")](tr("0x3d"))>n[tr("0xf")]("listIndent");)e.add(t),t=t.nextSibling}return Array[tr("0x2f")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x1")][tr("0x10")].selection[tr("0x42")]()[tr("0x4a")]()[tr("0x43")],s=t[tr("0x1")][tr("0x41")](o,tr("0x24")),r=t[tr("0x1")][tr("0x41")](o,0),i=t[tr("0x1")][tr("0x1b")](s,r);t[tr("0x1")][tr("0x2a")]((()=>{n[tr("0x21")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t.commands[tr("0x28")](tr("0x2b"))[tr("0x43")],o=t[tr("0x26")][tr("0x28")]("numberedList")[tr("0x43")];return tr("0x38")===e?n:o}n.enableCommand("numberedList",s(tr("0x38"))),n[tr("0xe")]("bulletedList",s("bulletedList")),n.enableCommand("indentList",r("indentList")),n[tr("0xe")](tr("0x3b"),r(tr("0x3b"))),n.enableCommand(tr("0x5"),x(tr("0x5"))),n.enableCommand(tr("0x1c"),x("splitListItemBefore")),n[tr("0x1d")].registerElementLabel((function(e){const n=!t[tr("0x1")][tr("0x34")][tr("0x12")](e),o=e[tr("0xa")],s=e.nextSibling,r=e[tr("0xf")]("listItemId"),i=!o||o[tr("0xf")]("listItemId")!==r,x=!s||s.getAttribute(tr("0x39"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x20"),t))),n[tr("0x1d")][tr("0x11")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x37")]){case"bulletedList":r=n[tr("0x29")][0][tr("0x44")],i=a(n[tr("0x37")]),o=tr(r?"0x16":"0x45"),i&&(o="*Change to:* %0"),s={type:"format",content:Yo(e,o,Yo(e,tr("0x0")))};break;case"numberedList":r=n[tr("0x29")][0][tr("0x44")],i=a(n.commandName),o=tr(r?"0x16":"0x45"),i&&(o=tr("0x3")),s={type:tr("0x31"),content:Yo(e,o,Yo(e,tr("0x47")))};break;case tr("0x4"):o=tr("0x1e"),s={type:"format",content:Yo(e,o,Yo(e,tr("0x20")))};break;case tr("0x3b"):o=function(t){const e=t[tr("0x14")]();let n=e[tr("0x33")].nodeAfter;for(;n&&e[tr("0x35")](n);){if(n.getAttribute("listIndent")>0)return!1;n=n[tr("0x9")]}return!0}(t)?Yo(e,tr("0x45"),Yo(e,"ELEMENT_"+t.getFirstRange()[tr("0x33")][tr("0x18")][tr("0xf")]("listType")[tr("0x48")]()+tr("0x46"))):Yo(e,tr("0x4b"),Yo(e,tr("0x20"))),s={type:"format",content:o};break;case"mergeListItemBackward":case tr("0x1a"):!1===n[tr("0x17")]&&(o=tr("0x8"),s={type:"deletion",content:Yo(e,o,Yo(e,tr("0x20")))})}return s})),n._suggestionFactory[tr("0x1f")](tr("0x23"),tr("0x13"),tr("0x2c"),(function(e,n){const o=[];for(let n of e)n[tr("0x33")][tr("0x18")]===n[tr("0x3e")].parent&&(n=t.model[tr("0x1b")](t[tr("0x1")][tr("0x41")](n[tr("0x33")][tr("0x18")],0))),o[tr("0x3a")](n);t[tr("0x1")][tr("0x2a")]((e=>{const s=t[tr("0x1")].document[tr("0x49")],r=Array[tr("0x2f")](s[tr("0xc")]())[tr("0x15")]((t=>i.LiveRange[tr("0x2")](t)));e.setSelection(o),t[tr("0x26")][tr("0x28")](n[tr("0x37")])[tr("0x3f")](),n[tr("0x29")][tr("0x3a")]({forceDefaultExecution:!0}),t[tr("0x6")](n[tr("0x37")],...n[tr("0x29")]),e[tr("0x27")](r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["downcastDispatcher","document","ck-suggestion-marker-split","editing","markerNameToElements","selection","remove","requires","getFirstRange","showSuggestionHighlights","enterBlock","model","setSelection","fire","markerName","afterExecute","nextSibling","addMarker:suggestion:insertion","removeMarker:suggestion:insertion","unbindElementFromMarkerName","end","plugins","get","enableCommand","commands","TrackChangesEditing","markInsertion","mapper","hasClass","enter","high","parent","writer","split","editor","createRange"];var sr,rr;sr=or,rr=499,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0xc")](){return[nr.Enter]}init(){const t=this[ir("0x3")],e=t[ir("0x1a")].get(ir("0x1e")),n=t[ir("0x1d")][ir("0x1b")](ir("0x22"));e[ir("0x1c")](ir("0x22"),(()=>{t[ir("0x10")].change((o=>{const s=t[ir("0x10")][ir("0x6")][ir("0xa")],r=s.getFirstPosition(),x=i.LiveRange.fromRange(s[ir("0xd")]());if(n[ir("0xf")](o)){const n=t[ir("0x10")].createPositionAt(r[ir("0x0")][ir("0x15")],0),s=o[ir("0x4")](r,n);e[ir("0x1f")](s)}else o[ir("0x11")](o.createRange(x[ir("0x19")]));x.detach(),n[ir("0x12")](ir("0x14"),{writer:o})}))})),t[ir("0x8")][ir("0x5")].on(ir("0x16"),hs(t,ir("0x2")),{priority:ir("0x23")}),t[ir("0x8")][ir("0x5")].on(ir("0x17"),((t,e,n)=>{const o=n[ir("0x20")][ir("0x9")](e.markerName);if(o)for(const t of o)t[ir("0x21")](ir("0x7"))&&(n.mapper[ir("0x18")](t,e[ir("0x13")]),n[ir("0x1")][ir("0xb")](t))}),{priority:ir("0x23")}),t.data[ir("0x5")].on(ir("0x16"),((e,n,o)=>{o.options[ir("0xe")]&&hs(t,ir("0x2"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:"high"})}}const ar=["getIntersection","findNext","handleFindCommand","replace","createPositionAt","replaceAll","find","get","string","findByTextCallback","model","getMarkersGroup","createRange","getRange","item","enableCommand","plugins","editor","suggestion:deletion","_isInDeletionRange","filter","has"];var cr,lr;cr=ar,lr=211,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{afterInit(){if(!this[dr("0x4")][dr("0x3")][dr("0x8")]("FindAndReplaceEditing"))return;const t=this.editor[dr("0x3")][dr("0x10")]("TrackChangesEditing");t.enableCommand(dr("0xf"),this[dr("0xb")].bind(this)),t.enableCommand(dr("0xa")),t[dr("0x2")]("findPrevious"),t.enableCommand(dr("0xc")),t[dr("0x2")](dr("0xe"))}[dr("0xb")](t,e,n={}){const o=this.editor.plugins.get("FindAndReplaceUtils");void 0!==n&&t((t=>(dr("0x11")==typeof e?o[dr("0x12")](e,n):e)(t)[dr("0x7")]((e=>!1===this[dr("0x6")](e,t[dr("0x1")])))),n)}[dr("0x6")](t,e){const n=this[dr("0x4")].model[dr("0x15")](this[dr("0x4")][dr("0x13")].createPositionAt(e,t.start),this[dr("0x4")].model[dr("0xd")](e,t.end));for(const t of this[dr("0x4")].model.markers[dr("0x14")](dr("0x5")))if(null!==n[dr("0x9")](t[dr("0x0")]()))return!0;return!1}}const gr=["toLowerCase","fontBackgroundColor.colors","commandName","value","registerDescriptionCallback","selection","*Reset font background color*","title","*Set font color:* %0","FontBackgroundColorEditing","FontFamilyEditing","*Reset font size*","fontColor","TrackChangesEditing","afterInit","model","change","FontSize","*Set font family:* %0","find","*Set font size:* %0","commandParams","has","isCollapsed","format","_enableCommand","plugins","FontSizeEditing","fontSize.options","fontBackgroundColor","config","FontColorEditing","fontSize","label","fontFamily","*Set font background color:* %0","trim","get","editor"];var mr,fr;mr=gr,fr=456,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x0"),commandName:hr("0x5")},{pluginName:hr("0x16"),commandName:hr("0x7")},{pluginName:hr("0x4"),commandName:hr("0x18")},{pluginName:hr("0x15"),commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x1a")](){const t=this[hr("0xb")].locale;for(const{pluginName:t,commandName:e}of pr)this[hr("0xb")][hr("0x26")][hr("0x22")](t)&&this[hr("0x25")](e);this[hr("0xb")].plugins[hr("0xa")]("TrackChangesEditing")._descriptionFactory[hr("0x10")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x5")==o.commandName){const e=o[hr("0x21")][0].value;if(e){const o=n(this[hr("0xb")][hr("0x26")][hr("0xa")](hr("0x1d")).normalizeSizeOptions(this[hr("0xb")][hr("0x3")].get(hr("0x1")))[hr("0x1f")]((t=>t[hr("0x1b")]==e))[hr("0x13")])[hr("0xc")]();return{type:hr("0x24"),content:Yo(t,hr("0x20"),o)}}return{type:hr("0x24"),content:Yo(t,hr("0x17"))}}if("fontFamily"==o[hr("0xe")]){const e=o[hr("0x21")][0].value;return e?{type:"format",content:Yo(t,hr("0x1e"),e)}:{type:hr("0x24"),content:Yo(t,"*Reset font family*")}}if(hr("0x18")==o.commandName){const e=o[hr("0x21")][0][hr("0xf")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0xb")][hr("0x3")].get("fontColor.colors")).find((t=>t[hr("0x1b")]==e));let r=e,i="";return o&&(r=o[hr("0x6")],i=n(r)[hr("0xc")]()),{type:hr("0x24"),content:Yo(t,hr("0x14"),i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0x24"),content:Yo(t,"*Reset font color*")}}if(hr("0x2")==o[hr("0xe")]){const e=o[hr("0x21")][0][hr("0xf")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0xb")][hr("0x3")].get(hr("0xd")))[hr("0x1f")]((t=>t[hr("0x1b")]==e));let r=e,i="";return o&&(r=o[hr("0x6")],i=n(r)[hr("0xc")]()),{type:hr("0x24"),content:Yo(t,hr("0x8"),i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0x24"),content:Yo(t,hr("0x12"))}}}}))}[hr("0x25")](t){const e=this[hr("0xb")];e[hr("0x26")][hr("0xa")](hr("0x19")).enableCommand(t,((n,o={})=>{const s=e.model.document[hr("0x11")],r=o.value;s[hr("0x23")]?n(o):e[hr("0x1b")][hr("0x1c")]((()=>{const n=Array.from(s.getRanges());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x1b")]);for(const o of n)e[hr("0x26")][hr("0xa")](hr("0x19")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["document","boolean","title","selection","locale","afterInit","commands","fontColor","getLastPosition","getRanges","schema","fontSize.options","fontBackgroundColor","length","keys","FontSize","getAttributeProperties","registerDescriptionCallback","*Remove all formatting*","format","isFormatting","commandName","getAttributes","editor","isBlock","getSelectedBlocks","getItems","createSelection","slice","get","from","fontColor.colors","find","model","fontSize","copyFormat","modifySelection","toLowerCase","charAt","*Set format to:* %0","entries","push","forward","TrackChangesEditing","normalizeSizeOptions","word","pasteFormat","enableCommand","_descriptionFactory","backward","isCollapsed","join","plugins","commandParams"];var _r,Tr;_r=Er,Tr=428,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x9")](){const t=this[Cr("0x1b")],n=t[Cr("0x25")],o=n[Cr("0x4")][Cr("0x7")],s=t[Cr("0x2")].get("TrackChangesEditing"),r=t[Cr("0x8")],i=t[Cr("0xa")].get(Cr("0x27")),x=t[Cr("0xa")][Cr("0x21")](Cr("0x32"));i&&x&&(s[Cr("0x33")](Cr("0x32"),((t,r={})=>{const i=r;n.change((()=>{const t=Array[Cr("0x22")](o[Cr("0xd")]()),r=o[Cr("0x0")]?[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("0x1a")]()){const t=e[Cr("0x14")](n);t&&t[Cr("0x18")]&&(yield n)}}(t,n));for(const e of t[Cr("0xd")]())for(const t of e[Cr("0x1e")]())!n[Cr("0x1c")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x1d")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0xe")]))||0!==Object[Cr("0x12")](i)[Cr("0x11")])for(const t of r)s.markInlineFormat(t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Cr("0x34")][Cr("0x15")]((e=>{const{data:n}=e;if(n&&Cr("0x32")===n[Cr("0x19")]){const e=[],o=n[Cr("0x3")][0];for(const[n,s]of Object[Cr("0x2c")](o))e[Cr("0x2d")](Ar(t,n,s));return e[Cr("0x11")]?{type:Cr("0x17"),content:Yo(r,Cr("0x2b"),e[Cr("0x1")](", "))}:{type:"format",content:Yo(r,Cr("0x16"))}}})),t[Cr("0x2")].get(Cr("0x2f"))[Cr("0x33")](Cr("0x27")))}}function kr(t,e){const n=t[Cr("0x1f")](e);t.modifySelection(n,{unit:Cr("0x31"),direction:Cr("0x35")});const o=n.getFirstPosition();t[Cr("0x28")](n,{unit:Cr("0x31"),direction:Cr("0x2e")});const s=n[Cr("0xc")]();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0x8")].t,r=e.split(/(?=[A-Z])/)[Cr("0x1")](" "),i=o(r[Cr("0x2a")](0).toUpperCase()+r[Cr("0x20")](1))[Cr("0x29")]();if(Cr("0x5")==typeof n)return i;if(Cr("0xb")===e||Cr("0x10")===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0x21")](Cr("0x23")))[Cr("0x24")]((t=>t[Cr("0x25")]==n));return i+" ("+(e?o(e.label)[Cr("0x29")]():n)+")"}if(Cr("0x26")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0x21")](Cr("0x13"))[Cr("0x30")](t.config.get(Cr("0xf"))).find((t=>t[Cr("0x25")]==n));return i+" ("+(e?o(e[Cr("0x6")])[Cr("0x29")]():n)+")"}return i+" ("+n+")"}const vr=["HeadingEditing","getSelectedBlocks","heading","config","*Change to:* %0","title","value","find","model","filter","selection","paragraph","markBlockFormat","change","format","commandName","match","plugins","get","blockName","document","registerElementLabel","checkChild","schema","heading.options","TrackChangesEditing","has","_descriptionFactory","editor","ELEMENT_HEADING_CUSTOM","isObject","commandParams","registerDescriptionCallback","afterInit","from","name","ELEMENT_HEADING"];var Rr,Ir;Rr=vr,Ir=372,function(t){for(;--t;)Rr.push(Rr.shift())}(++Ir);const Sr=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Sr("0x1f")](){const t=this[Sr("0x1a")],e=t.locale,n=t[Sr("0x1")][Sr("0x10")](Sr("0x16"));if(!t[Sr("0xf")][Sr("0x18")](Sr("0x23")))return;const o=t[Sr("0xf")][Sr("0x10")](Sr("0x17"));o.enableCommand(Sr("0x0"),((e,n)=>{const s=n.value,r=Array[Sr("0x20")](this[Sr("0x1a")].model[Sr("0x12")][Sr("0x8")][Sr("0x24")]())[Sr("0x7")]((t=>{return e=t,n=s,(o=this[Sr("0x1a")].model[Sr("0x15")])[Sr("0x14")](e.parent,n)&&!o[Sr("0x1c")](e)&&e[Sr("0x21")]!=n;var e,n,o}));t[Sr("0x6")][Sr("0xb")]((()=>{for(const t of r)o[Sr("0xa")](t,{commandName:Sr("0x0"),commandParams:[n],formatGroupId:Sr("0x11")},fs(t))}))}));for(const t of n)Sr("0x9")!=t[Sr("0x6")]&&o._descriptionFactory[Sr("0x13")](t[Sr("0x6")],(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Sr("0x3")])}));function s(t,n){return Yo(e,Sr("0x22"),[t,n])}function r(t,n){return Yo(e,Sr("0x1b"),[t,n])}o[Sr("0x19")][Sr("0x1e")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&Sr("0x0")==i[Sr("0xd")]){const t=i[Sr("0x1d")][0][Sr("0x4")],o=Nr(t);if(null!==o)return{type:Sr("0xc"),content:Yo(e,Sr("0x2"),s(1,o))};const x=n[Sr("0x5")]((e=>e[Sr("0x6")]===t)).title;return{type:Sr("0xc"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t[Sr("0xe")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["format","_descriptionFactory","editor","getRanges","toLowerCase","*Set highlight:* %0","plugins","hasAttribute","afterInit","*Remove highlight*","model","backward","change","getAttribute","highlight.options","get","getFirstPosition","document","markInlineFormat","getLastMatchingPosition","title","find","createRange","selection","enableCommand","value","commandParams","FORMAT_HIGHLIGHT","TrackChangesEditing","highlight","formatInline","color","push","commandName","isCollapsed"];var wr,Or;wr=Mr,Or=447,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x10")](){const t=this[Fr("0xa")];if(!t[Fr("0xe")].has("HighlightEditing"))return;const e=t.plugins[Fr("0x17")](Fr("0x1"));e[Fr("0x20")](Fr("0x2"),((n,o={})=>{const s=t[Fr("0x12")][Fr("0x19")][Fr("0x1f")],r=s.getAttribute("highlight");let i=o[Fr("0x21")],x=[];if(s[Fr("0x7")]){const e=s[Fr("0x18")]();if(!s[Fr("0xf")](Fr("0x2")))return void n(o);{const n=t=>t.item[Fr("0x15")]("highlight")===r,o=e[Fr("0x1b")](n,{direction:Fr("0x13")}),s=e[Fr("0x1b")](n);x=[t[Fr("0x12")][Fr("0x1e")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0xb")]())i?x[Fr("0x5")](e):x[Fr("0x5")](...ms(Fr("0x2"),e,t[Fr("0x12")]));t.model[Fr("0x14")]((()=>{for(const t of x)e[Fr("0x1a")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t.locale;e[Fr("0x9")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if(Fr("0x3")==o&&s&&"highlight"==s[Fr("0x6")]){const e=n.t,o=s[Fr("0x22")][0][Fr("0x21")];if(o){const s=t.config[Fr("0x17")](Fr("0x16"))[Fr("0x1d")]((t=>t.model==o)),r=e(s.title)[Fr("0xc")]();return{type:Fr("0x8"),content:Yo(n,Fr("0xd"),r),color:{value:s[Fr("0x4")],title:s[Fr("0x1c")]}}}return{type:"format",content:Yo(n,Fr("0x11"),Yo(n,Fr("0x0")))}}}))}}const Dr=["conversion","elementToStructure","locale","addClass","createPositionAt","registerElementLabel","dataDowncast","get","createEmptyElement","ELEMENT_HORIZONTAL_LINE","div","_descriptionFactory","plugins","high","createContainerElement","horizontalLine","HorizontalLineEditing","TrackChangesEditing","ck-horizontal-line"];var Br,jr;Br=Dr,jr=320,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins.has(Ur("0x0")))return;t[Ur("0xf")][Ur("0xa")](Ur("0x1")).enableCommand(Ur("0x12"));const e=t[Ur("0xf")][Ur("0xa")](Ur("0x1")),n=t[Ur("0x5")];e[Ur("0xe")][Ur("0x8")](Ur("0x12"),(t=>Yo(n,Ur("0xc"),t))),t[Ur("0x3")].for(Ur("0x9"))[Ur("0x4")]({model:Ur("0x12"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0x11")](Ur("0xd")),s=e[Ur("0xb")]("hr");return e[Ur("0x6")](Ur("0x2"),o),e.insert(e[Ur("0x7")](o,0),s),o},converterPriority:Ur("0x10")})}}const Hr=["editing","getAttribute","value","get","locale","selection","_descriptionFactory","editor","plugins","getCustomProperty","rawHtml","enableCommand","document","ELEMENT_HTML_EMBED","registerDescriptionCallback","HtmlEmbed","element","TrackChangesEditing","getSelectedElement","commandName","*Change %0 content*","htmlEmbed","afterInit"];var zr,Wr;zr=Hr,Wr=416,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x14")](){const t=this[Vr("0x5")];if(!t[Vr("0x6")].has(Vr("0xd")))return;const e=t[Vr("0x6")][Vr("0x1")](Vr("0xf")),n=t[Vr("0x2")],o=t[Vr("0x15")].view[Vr("0xa")][Vr("0x3")];e[Vr("0x4")].registerElementLabel("rawHtml",(t=>Yo(n,Vr("0xb"),t))),t.plugins.get(Vr("0xf"))[Vr("0x9")](Vr("0x13"),((n,s)=>{const r=t.model,i=r[Vr("0xa")].selection;r.change((()=>{const t=function(t){const e=t[Vr("0x10")]();return e&&e.is(Vr("0xe"),Vr("0x8"))?t[Vr("0x10")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x16")](Vr("0x0"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x13"),commandParams:[s]}),o[Vr("0x10")]()[Vr("0x7")]("rawHtmlApi").cancel())}))})),e._descriptionFactory[Vr("0xc")]((t=>{const{data:e}=t;if(e&&Vr("0x13")==e[Vr("0x11")]){const t=Yo(n,Vr("0xb"));return{type:"format",content:Yo(n,Vr("0x12"),t)}}}))}}const qr=["selection","from","toLowerCase","afterInit","title","toPrevious","registerDescriptionCallback","_suggestionFactory","isBlockImage","ImageUtils","isInContent","ELEMENT_INLINE_IMAGE","imageTextAlternative","previous","isCollapsed","width","format","locale","next","side","ImageEditing","imageStylePostApply","refresh","newValue","get","element","start","imageTypeInline","commandName","normalizedStyles","discard","FORMAT_SIDE_IMAGE","getAttribute","_splitMarkerName","shouldConvertImageType","isIntersecting","model","editor","commandParams","detach","insertImage","caption","differ","isOwn","join","getContainedElement","hasAttribute","markBlockFormat","subType","markInsertion","ImageBlockEditing","getNearestSelectionRange","type","getClosestSelectedImageElement","formatBlock","has","ImageTextAlternativeEditing","isEqual","getSuggestions","formatInline","fromPosition","createRangeOn","backward","registerElementLabel","isInlineImage","enableCommand","ELEMENT_CAPTION","uploadImage","markInlineFormat","getCaptionFromImageModelElement","chain","value","head","discardSuggestion","ImageCaptionUtils","TrackChangesEditing","end","filter","createRange","commands","insertion","imageStylePreApply","convertBlockImageToInline","document","registerCustomCallback","forEach","_descriptionFactory","Inline image to block image","convertInlineImageToBlock","*Remove image text alternative*","getSuggestionCallback","schema","accept","forward","plugins","imageTypeBlock","imageStyle","findIndex","toggleImageCaption","suggestion","nodeBefore","isBefore","resizeImage","imageCaption","change","toNext","getSuggestion","alt"];var Xr,$r;Xr=qr,$r=439,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x68")](){const t=this[Jr("0x1e")];if(!t[Jr("0x57")][Jr("0x30")](Jr("0xd")))return;const n=t[Jr("0x57")][Jr("0x11")](Jr("0x44")),o=t[Jr("0x57")][Jr("0x11")](Jr("0x2")),s={},r=t[Jr("0xa")];if(n.enableCommand(Jr("0x21")),n._descriptionFactory[Jr("0x38")]("imageBlock",(t=>Yo(r,"ELEMENT_IMAGE",t))),n[Jr("0x4f")][Jr("0x38")]("imageInline",(t=>Yo(r,Jr("0x4"),t))),n[Jr("0x4f")][Jr("0x38")](Jr("0x22"),(()=>Yo(r,Jr("0x3b")))),t[Jr("0x57")][Jr("0x30")]("ImageUploadEditing")&&n[Jr("0x3a")](Jr("0x3c")),t[Jr("0x57")][Jr("0x30")](Jr("0x2b"))&&t[Jr("0x57")][Jr("0x30")]("ImageInlineEditing")&&(n[Jr("0x3a")](Jr("0x14"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x1d")][Jr("0x4c")][Jr("0x65")]);t[Jr("0x1d")][Jr("0x61")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x14"),commandParams:[s]},[],Jr("0x4b"))}))})),n[Jr("0x3a")]("imageTypeBlock",((e,s)=>{t[Jr("0x1d")].change((r=>{let x=o[Jr("0x2e")](t.model[Jr("0x4c")][Jr("0x65")]),a=r.createRangeOn(x);const c=i.LivePosition[Jr("0x35")](a[Jr("0x13")],Jr("0x6a")),l=i.LivePosition.fromPosition(a[Jr("0x45")],Jr("0x62"));n.forceDefaultExecution((()=>e(s))),x=o[Jr("0x2e")](t[Jr("0x1d")][Jr("0x4c")][Jr("0x65")]),a=r.createRangeOn(x);const d=r[Jr("0x47")](c,l);c[Jr("0x20")](),l.detach(),n[Jr("0x28")](x,{commandName:Jr("0x14"),commandParams:[]},[],Jr("0x51")),d[Jr("0x13")][Jr("0x5e")](a.start)&&n[Jr("0x2a")](r[Jr("0x47")](d[Jr("0x13")],a[Jr("0x13")]),Jr("0x51")),a[Jr("0x45")][Jr("0x5e")](d[Jr("0x45")])&&n[Jr("0x2a")](r[Jr("0x47")](a[Jr("0x45")],d[Jr("0x45")]),Jr("0x51"))}))})),n._suggestionFactory[Jr("0x4d")]("formatBlock",Jr("0x51"),Jr("0x25"),(()=>{})),n[Jr("0x0")].registerCustomCallback(Jr("0x2f"),Jr("0x51"),Jr("0x55"),(()=>{})),n[Jr("0x0")][Jr("0x4d")](Jr("0x2f"),Jr("0x51"),Jr("0x17"),n[Jr("0x0")][Jr("0x53")](Jr("0x2f"),"",Jr("0x55"))),n[Jr("0x0")][Jr("0x4d")]("insertion",Jr("0x51"),Jr("0x25"),(()=>{})),n[Jr("0x0")].registerCustomCallback("insertion","convertInlineImageToBlock",Jr("0x17"),(([e])=>{const o=n._suggestionFactory[Jr("0x53")](Jr("0x49"),"",Jr("0x17"));let s=e.start,r=e[Jr("0x45")];const i=t.model[Jr("0x54")][Jr("0x2c")](s,Jr("0x37")),x=t[Jr("0x1d")][Jr("0x54")][Jr("0x2c")](r,Jr("0x56"));i[Jr("0x7")]&&(s=i.start),x[Jr("0x7")]&&(r=x[Jr("0x45")]),o([t[Jr("0x1d")][Jr("0x47")](s,r)])})),n[Jr("0x0")][Jr("0x4d")](Jr("0x2f"),Jr("0x51"),Jr("0x3f"),c),n[Jr("0x0")][Jr("0x4d")](Jr("0x49"),Jr("0x51"),Jr("0x3f"),c)),t[Jr("0x57")][Jr("0x30")]("ImageCaptionEditing")&&(n.enableCommand(Jr("0x5b"),((e,s)=>{const r=t[Jr("0x57")][Jr("0x11")](Jr("0x43"));let i=o.getClosestSelectedImageElement(t[Jr("0x1d")].document.selection),x=r[Jr("0x3e")](i);t[Jr("0x1d")].change((()=>{if(x)return void n.markDeletion(t[Jr("0x1d")][Jr("0x36")](x));const a=o[Jr("0x1")](i);e(s),i=o[Jr("0x2e")](t[Jr("0x1d")][Jr("0x4c")][Jr("0x65")]),x=r[Jr("0x3e")](i),n[Jr("0x2a")](t[Jr("0x1d")].createRangeOn(x),a?null:Jr("0x60"))}))})),n[Jr("0x0")].registerCustomCallback(Jr("0x49"),Jr("0x60"),"chain",c)),t.plugins[Jr("0x30")]("ImageStyleEditing")){n[Jr("0x3a")](Jr("0x59"),((s,r)=>{const i=t[Jr("0x57")][Jr("0x11")]("Users").me,x=t.commands[Jr("0x11")](Jr("0x59"));let a=o[Jr("0x2e")](t[Jr("0x1d")].document[Jr("0x65")]),c=t[Jr("0x1d")][Jr("0x36")](a),l=x[Jr("0x40")];if(l==r[Jr("0x40")])return;const d={commandName:Jr("0x59"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x1d")].change((()=>{if(n[Jr("0x33")]()[Jr("0x46")]((t=>t.isInContent&&i==t.author&&(Jr("0x2f")==t.type||Jr("0x34")==t[Jr("0x2d")])&&(Jr("0x4a")==t[Jr("0x29")]||Jr("0xe")==t[Jr("0x29")])&&t.getFirstRange()[Jr("0x32")](c)))[Jr("0x4e")]((t=>n[Jr("0x42")](t[Jr("0x41")]))),a=o[Jr("0x2e")](t.model.document[Jr("0x65")]),c=t.model[Jr("0x36")](a),x[Jr("0xf")](),t.commands[Jr("0x11")]("imageTypeInline")[Jr("0xf")](),t[Jr("0x48")][Jr("0x11")](Jr("0x58"))[Jr("0xf")](),l=x[Jr("0x40")],l!=r[Jr("0x40")])return o[Jr("0x39")](a)&&x[Jr("0x1b")](r[Jr("0x40")],a)?(s(r),a=o[Jr("0x2e")](t.model[Jr("0x4c")][Jr("0x65")]),void n[Jr("0x28")](a,{...d,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Jr("0x1")](a)?n.markBlockFormat(a,d,[],"imageStylePostApply"):n[Jr("0x3d")](c,d,Jr("0xe")))}))}));for(const e of t[Jr("0x57")][Jr("0x11")]("ImageStyleEditing")[Jr("0x16")])s[e.name]=e[Jr("0x69")][Jr("0x67")]();n[Jr("0x0")][Jr("0x4d")](Jr("0x2f"),Jr("0x4a"),Jr("0x25"),(()=>{})),n._suggestionFactory[Jr("0x4d")]("formatBlock",Jr("0xe"),"join",(()=>{})),n[Jr("0x0")].registerCustomCallback(Jr("0x34"),Jr("0xe"),Jr("0x25"),(()=>{})),n[Jr("0x0")].registerCustomCallback(Jr("0x2f"),"imageStylePreApply",Jr("0x55"),(()=>{})),n._suggestionFactory[Jr("0x4d")](Jr("0x2f"),Jr("0x4a"),"discard",((t,e)=>{n[Jr("0x0")].getSuggestionCallback(Jr("0x2f"),"",Jr("0x55"))(t,{commandName:e[Jr("0x15")],commandParams:e.commandReversedParams})})),n[Jr("0x0")][Jr("0x4d")](Jr("0x2f"),Jr("0x4a"),"chain",c)}const x=[{type:"formatBlock",subType:Jr("0x4a")},{type:"insertion",subType:"imageCaption"},{type:Jr("0x2f"),subType:Jr("0x51")},{type:"insertion",subType:Jr("0x51")}];function a(t,e){const s=x[Jr("0x5a")]((({type:e,subType:n})=>t[Jr("0x2d")]==e&&t[Jr("0x29")]==n)),r=x[Jr("0x5a")]((({type:t,subType:n})=>e[Jr("0x2d")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e.getFirstRange();if((0==s||1==s)&&2==r&&i[Jr("0x1c")](a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,Jr("0x49"))[Jr("0x46")]((({suggestion:t,meta:e})=>e[Jr("0x24")]&&Jr("0x51")==t[Jr("0x29")]));if(t.length>1&&a[Jr("0x45")].isEqual(i[Jr("0x13")]))return!0;if(1==t.length&&(i.start.isEqual(a[Jr("0x45")])||i.end[Jr("0x32")](a[Jr("0x13")])))return!0}if(3==s&&3==r&&i[Jr("0x13")][Jr("0x5e")](a[Jr("0x13")])){const t=i[Jr("0x45")].nodeAfter,e=a[Jr("0x13")][Jr("0x5d")];return o[Jr("0x1")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x1d")].document.registerPostFixer((()=>{let e=!1;const s=Array[Jr("0x66")](t[Jr("0x1d")][Jr("0x4c")][Jr("0x23")].getChangedMarkers());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x1a")](t);if(Jr("0x5c")==s&&n.hasSuggestion(a)){if("formatBlock"==i&&(Jr("0x4a")==x||Jr("0xe")==x)){const t=n[Jr("0x63")](a);if(r.newRange){const s=t.getFirstRange()[Jr("0x26")]();if(o[Jr("0x1")](s))continue;n[Jr("0x42")](t),e=!0}}if(Jr("0x49")==i&&Jr("0x60")==x&&!r.newRange){const t=n[Jr("0x63")](a);t.next&&t[Jr("0xb")][Jr("0x3")]&&(n.discardSuggestion(t.next),e=!0)}}}return e})),t[Jr("0x57")][Jr("0x30")]("ImageResize")&&n[Jr("0x3a")]("resizeImage",((e,s)=>{const r=o[Jr("0x2e")](t.model[Jr("0x4c")][Jr("0x65")]);r[Jr("0x19")](Jr("0x8"))!=s[Jr("0x8")]&&t[Jr("0x1d")][Jr("0x61")]((()=>{n[Jr("0x28")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t[Jr("0x57")][Jr("0x30")](Jr("0x31"))&&n[Jr("0x3a")](Jr("0x5"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x1d")][Jr("0x4c")].selection);(r[Jr("0x27")]("alt")?r[Jr("0x19")](Jr("0x64")):"")!=s[Jr("0x10")]&&t.model[Jr("0x61")]((()=>{n[Jr("0x28")](r,{commandName:"imageTextAlternative",commandParams:[s]})}))})),n[Jr("0x4f")][Jr("0x6b")]((t=>{if(x.find((({type:e,subType:n})=>t[Jr("0x2d")]==e&&t.subType==n)))return t[Jr("0x6")]?{}:void 0})),n[Jr("0x4f")][Jr("0x6b")]((t=>{if(Jr("0x49")==t[Jr("0x2d")]||"deletion"==t[Jr("0x2d")]){const e=t[Jr("0x26")]();if(e&&e.is(Jr("0x12"),Jr("0x22")))return{type:Jr("0x49")==t[Jr("0x2d")]?"addObject":"removeObject",element:e,quantity:1}}})),n[Jr("0x4f")][Jr("0x6b")]((t=>"formatBlock"==t[Jr("0x2d")]&&Jr("0x51")==t.subType?{type:Jr("0x9"),content:Jr("0x50")}:"formatBlock"==t[Jr("0x2d")]&&Jr("0x4b")==t[Jr("0x29")]?{type:"format",content:"Block image to inline image"}:void 0)),n[Jr("0x4f")][Jr("0x6b")]((t=>{const{data:e}=t;if(e){if(Jr("0x59")==e[Jr("0x15")]){const t=e[Jr("0x1f")][0][Jr("0x40")];return n=Jr("0xc")===t?Yo(r,Jr("0x18")):s[t]||t,{type:Jr("0x9"),content:Yo(r,"*Format:* %0",n)}}if(Jr("0x5")==e[Jr("0x15")]){const t=e[Jr("0x1f")][0][Jr("0x10")];return t?{type:Jr("0x9"),content:Yo(r,"*Set image text alternative:* %0",'"'+t+'"')}:{type:Jr("0x9"),content:Yo(r,Jr("0x52"))}}if(Jr("0x5f")==e[Jr("0x15")]){const t=e[Jr("0x1f")][0][Jr("0x8")];return t?{type:Jr("0x9"),content:Yo(r,"*Set image width:* %0",t)}:{type:Jr("0x9"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["registerCustomCallback","enableCommand","accept","_descriptionFactory","data","has","selection","Users","formatBlock","commandParams","source","*Format:* replace image URL","getSelectedElement","change","discard","format","plugins","src","handleSuggestionDescription","ImageEditing","registerDescriptionCallback","model","document","get","commandName","author","_suggestionFactory","editor","locale","subType","getSuggestions","getAttribute","afterInit","replaceImageSource","getContainedElement","getSuggestionCallback","TrackChangesEditing"];var Yr,ti;Yr=Zr,ti=488,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x19")](){if(!this[ei("0x14")][ei("0x9")][ei("0x23")](ei("0xc")))return;const t=this[ei("0x14")][ei("0x9")].get(ei("0x1d"));t[ei("0x1f")](ei("0x1a"),((t,e)=>this.handleReplaceImageCommand(t,e))),t[ei("0x13")][ei("0x1e")](ei("0x1"),ei("0x1a"),"accept",t._suggestionFactory[ei("0x1c")]("formatBlock",null,ei("0x7"))),t[ei("0x13")][ei("0x1e")]("formatBlock",ei("0x1a"),"discard",t[ei("0x13")].getSuggestionCallback(ei("0x1"),null,ei("0x20"))),t[ei("0x21")][ei("0xd")]((t=>this[ei("0xb")](t)))}handleReplaceImageCommand(t,e){const n=this[ei("0x14")][ei("0x9")].get(ei("0x1d")),o=this[ei("0x14")][ei("0xe")][ei("0xf")][ei("0x24")][ei("0x5")]();this[ei("0x14")][ei("0xe")][ei("0x6")]((()=>{let s=o[ei("0x18")](ei("0xa"));const r=this[ei("0x14")][ei("0x9")][ei("0x10")](ei("0x0")).me;for(const t of n[ei("0x17")]({skipNotAttached:!0})){const e=t[ei("0x1b")]();if(ei("0x1a")===t[ei("0x16")]&&e===o){t[ei("0x12")]!==r&&t[ei("0x7")](),s=t[ei("0x22")][ei("0x2")][0][ei("0x3")];break}}t(e),n.markBlockFormat(o,{commandName:ei("0x1a"),commandParams:[{source:s}]},[],ei("0x1a"))}))}[ei("0xb")](t){const{data:e}=t;if(e&&ei("0x1a")===e[ei("0x11")]){const t=ei("0x4");return{type:ei("0x8"),content:Yo(this[ei("0x14")][ei("0x15")],t)}}}}const oi=["collaboration_features","editor","dataInsert","high","_trackChangesValueDuringImport","enableCommand","_setSuggestionData","trackChanges","importWord","TrackChangesEditing","bind","_handleImportedData","listenTo","execute","plugins","commands","afterInit","get","_trackChangesExecuted","forEach"];var si,ri;si=oi,ri=393,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("0xb")]=!1,this[ii("0x5")]=!1}[ii("0x3")](){const t=this.editor,e=t[ii("0x2")][ii("0x4")](ii("0xf")),n=t.commands[ii("0x4")](ii("0xe"));e&&(e.on(ii("0x0"),((t,[,e])=>{this._trackChangesValueDuringImport=n.value,e[ii("0x7")].track_changes=!this._trackChangesValueDuringImport}),{priority:ii("0xa")}),this[ii("0x13")](e,ii("0x9"),this[ii("0x12")][ii("0x11")](this)),this[ii("0x13")](e,"dataInsert",(()=>{this._trackChangesExecuted&&(n[ii("0x0")](),this._trackChangesExecuted=!1)}),{priority:"lowest"}),t.plugins.get(ii("0x10"))[ii("0xc")](ii("0xf")))}[ii("0x12")](t,e){const{suggestions:n}=e,o=this[ii("0x8")].commands[ii("0x4")]("trackChanges"),s=o.value;this[ii("0xb")]!==s&&(o.execute(),this[ii("0x5")]=!0),n&&n[ii("0x6")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor.plugins[ii("0x4")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this.editor[ii("0x1")].get(ii("0x10"))[ii("0xd")](s)}))}}const ai=["registerDescriptionCallback","locale","enableCommand","TrackChangesEditing","has","outdent","from","_descriptionFactory","*Indent:* %0","get","checkAttribute","format","getItemLabel","commandName","blockIndent","plugins","IndentEditing","filter","indentBlock","schema","markBlockFormat","indent","model","outdentBlock","change","IndentBlock","editor","document"];var ci,li;ci=ai,li=426,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{afterInit(){const t=this.editor,e=t[di("0x9")][di("0x3")](di("0x19"));t.plugins[di("0x1a")](di("0xa"))&&(e.enableCommand(di("0xf")),e.enableCommand(di("0x1b")));const n=t[di("0x17")];if(t[di("0x9")][di("0x1a")](di("0x13"))){for(const n of[di("0xc"),"outdentBlock"])e[di("0x18")](n,(()=>{const o=Array[di("0x0")](this.editor[di("0x10")][di("0x15")].selection.getSelectedBlocks())[di("0xb")]((t=>this[di("0x14")][di("0x10")][di("0xd")][di("0x4")](t,di("0x8"))));t[di("0x10")][di("0x12")]((()=>{for(const t of o)e[di("0xe")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0xc")})}))}));e[di("0x1")][di("0x16")]((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o.commandName&&"outdentBlock"!=o[di("0x7")])return;const s=t.getItems()[0],r=e[di("0x1")][di("0x6")](s);return"indentBlock"==o[di("0x7")]?{type:di("0x5"),content:Yo(n,di("0x2"),r)}:di("0x11")==o[di("0x7")]?{type:di("0x5"),content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var gi,mi,fi=["requires","input","enableCommand","editor"];gi=fi,mi=334,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("0x2")](){return[Vs.Input]}init(){this[hi("0x1")].plugins.get("TrackChangesEditing")[hi("0x0")](hi("0x3"))}}const bi=["LinkEditing","hasAttribute","selection","model","*Remove link*","linkHref","commandParams","isCollapsed","getRanges","link","unlink","locale","editor","markInlineFormat","format","enableCommand","has","plugins","commandName","getFirstPosition","change","getFirstRange","document","getAttribute"];var Ei,_i;Ei=bi,_i=489,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("0x7")](Ti("0xf")))return;const e=t[Ti("0x8")].get("TrackChangesEditing");e[Ti("0x6")](Ti("0x0"),((n,o)=>{const s=t[Ti("0x12")][Ti("0xd")][Ti("0x11")];let r=[];if(s[Ti("0x16")]){if(!s[Ti("0x10")](Ti("0x14")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xa")](),Ti("0x14"),s[Ti("0xe")](Ti("0x14")),t[Ti("0x12")]);r=[e]}}else r=Array.from(s[Ti("0x17")]());t[Ti("0x12")][Ti("0xb")]((()=>{for(const t of r)e[Ti("0x4")](t,{commandName:Ti("0x0"),commandParams:[o]})}))})),e[Ti("0x6")](Ti("0x1"),(()=>{const n=this[Ti("0x3")][Ti("0x12")],o=n[Ti("0xd")][Ti("0x11")];n[Ti("0xb")]((()=>{let n=[];n=o[Ti("0x16")]?[(0,Vs.findAttributeRange)(o[Ti("0xa")](),Ti("0x14"),o[Ti("0xe")]("linkHref"),t[Ti("0x12")])]:ms(Ti("0x14"),o[Ti("0xc")](),t[Ti("0x12")]);for(const t of n)e[Ti("0x4")](t,{commandName:Ti("0x1"),commandParams:[]})}))})),e._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e,o=t[Ti("0x2")];if(n){if(Ti("0x0")==n[Ti("0x9")]){const t=n[Ti("0x15")][0];return{type:Ti("0x5"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return Ti("0x1")==n[Ti("0x9")]?{type:Ti("0x5"),content:Yo(o,Ti("0x13"))}:void 0}}))}}const yi=["filter","ListEditing","markBlockFormat","schema","createRange","ELEMENT_TODO_LIST","before","afterInit","_selectedElements","listIndent","nextSibling","*Uncheck item*","getSelectedBlocks","slice","commands","bulletedList","*Outdent:* %0","enableCommand","blockName","indentList","selection","checkTodoList","todoList","add","ELEMENT_NUMBERED_LIST","todo","checkChild","commandParams","parent","plugins","get","length","editor","push","element","todoListChecked","document","replace","isObject","model","paragraph","locale","ELEMENT_LIST_ITEM","numbered","bulleted","listItem","name","createPositionAt","change","*Change to:* %0","from","execute","format","TrackChangesEditing","outdentList","commandName","has","TodoListEditing","_descriptionFactory","previousSibling","numberedList","value","findIndex","forceValue","getAttribute"];var ki,Ai;ki=yi,Ai=400,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x3e")](){const t=this[vi("0x16")],e=t[vi("0x1f")];if(!t[vi("0x13")][vi("0x2e")](vi("0x38")))return;const n=t[vi("0x13")].get(vi("0x2b")),o=t[vi("0x13")].has(vi("0x2f"));function s(e){return()=>{const o=t.model[vi("0x1a")][vi("0xa")],s=t[vi("0x4")][vi("0x14")](e);if(s[vi("0x33")])return void t[vi("0x29")](vi("0x1e"),{});const r=e[vi("0x3")](0,-4),i=function(t,e,n){let o=Array[vi("0x28")](t)[vi("0x37")]((t=>{return e=t,(o=n)[vi("0x10")](e[vi("0x12")],vi("0x23"))&&!o[vi("0x1c")](e);var e,o}));o=o[vi("0x37")]((t=>!t.is(vi("0x18"),vi("0x23"))||t[vi("0x36")]("listType")!=e));const s=new Set;for(const t of o)t.is("element",vi("0x23"))?s[vi("0xd")](Ii(t)):s[vi("0xd")](t);return Array[vi("0x28")](s)}(o[vi("0x2")](),r,t[vi("0x1d")][vi("0x3a")]);t[vi("0x1d")].change((()=>{for(const t of i)n[vi("0x39")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0x8")},Si(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x28")](t);const n=e[vi("0x34")]((t=>"listItem"!=t[vi("0x24")]));return n>-1&&(e=e[vi("0x3")](0,n)),e}(t.model[vi("0x1a")][vi("0xa")].getSelectedBlocks()),s=t[vi("0x1d")][vi("0x3b")](t[vi("0x1d")][vi("0x25")](o[0],vi("0x3d")),t.model[vi("0x25")](o[o[vi("0x15")]-1],"end"));t[vi("0x1d")][vi("0x26")]((()=>{n[vi("0x39")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x40")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x0")];for(;t&&t.getAttribute("listIndent")>n[vi("0x36")](vi("0x40"));)e.add(t),t=t[vi("0x0")]}return Array.from(e)}(o))}))}}n[vi("0x7")]("numberedList",s(vi("0x32"))),n[vi("0x7")](vi("0x5"),s("bulletedList")),o&&n[vi("0x7")](vi("0xc"),s(vi("0xc"))),n[vi("0x7")](vi("0x9"),r("indentList")),n[vi("0x7")]("outdentList",r(vi("0x2c"))),o&&n.enableCommand(vi("0xb"),(()=>{const e=t[vi("0x4")].get(vi("0xb")),o=Array[vi("0x28")](e[vi("0x3f")]);o[vi("0x37")]((t=>t.getAttribute(vi("0x19"))!=e[vi("0x33")])),t[vi("0x1d")].change((()=>{for(const t of o)n.markBlockFormat(t,{commandName:vi("0xb"),commandParams:[{forceValue:!e[vi("0x33")]}]})}))})),n[vi("0x30")].registerElementLabel("listItem",(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x30")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(vi("0x32")==n[vi("0x2d")]||"bulletedList"==n[vi("0x2d")]||vi("0xc")==n.commandName)switch(n[vi("0x2d")][vi("0x1b")]("List","")){case vi("0x22"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case vi("0x21"):return o(Yo(e,vi("0xe")));case vi("0xf"):return o(Yo(e,vi("0x3c")))}if(vi("0x9")==n[vi("0x2d")])return{type:"format",content:Yo(e,"*Indent:* %0",Yo(e,vi("0x20")))};if(vi("0x2c")==n[vi("0x2d")])return{type:vi("0x2a"),content:Yo(e,vi("0x6"),Yo(e,"ELEMENT_LIST_ITEM"))};if("checkTodoList"==n[vi("0x2d")])return n[vi("0x11")][0][vi("0x35")]?{type:vi("0x2a"),content:Yo(e,"*Check item*")}:{type:vi("0x2a"),content:Yo(e,vi("0x1"))}}function o(t){return{type:"format",content:Yo(e,vi("0x27"),t)}}}))}}function Ii(t){const e=t.getAttribute(vi("0x40"));if(0==e)return t;let n=t;for(;t.previousSibling&&t.previousSibling.is("element",vi("0x23"));){const o=t[vi("0x31")][vi("0x36")](vi("0x40"));if(o==e)n=t[vi("0x31")];else if(o<e)break;t=t[vi("0x31")]}return n}function Si(t){const e=[];if(t.is(vi("0x18"),"listItem")&&t[vi("0x36")](vi("0x40"))>0){let n=t[vi("0x0")];for(;n&&"listItem"==n[vi("0x24")]&&n[vi("0x36")](vi("0x40"))==t[vi("0x36")](vi("0x40"));)e[vi("0x17")](n),n=n[vi("0x0")]}return e}const Li=["from","unshift","handleListStyleCommand","getListTypeFromListStyleType","*Format:* set start index to %0","styles","push","type","*Format:* set order to reversed","markMultiRangeBlockFormat","enableCommand","replace","listStart","backward","listType","flat","_getSuggestionBlocksForListStyle","_getSuggestionBlocks","change","list.properties","listItem","TrackChangesEditing","getSiblingNodes","model","_LIST_","numbered","editor","getAttribute","commandName","ListUtils","createPositionAt","ELEMENT_","listReversed","filter","handleDescriptions","get","forward","getFirstPosition","before","getLastPosition","element","plugins","commandParams","toUpperCase","createRange","format","getSelectedBlocks","has","_getTranslationKeyForListStyle","bind","document","_descriptionFactory","registerDescriptionCallback","selection","map","handleListReversedCommand","parent","ListPropertiesEditing","reversed","startIndex","handleListStartCommand","listStyle","length"];var Ni,Mi;Ni=Li,Mi=219,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{afterInit(){if(!this[wi("0x3b")][wi("0xb")][wi("0x11")](wi("0x1b")))return;const t=this.editor.config[wi("0x5")](wi("0x34")),e=this[wi("0x3b")][wi("0xb")][wi("0x5")](wi("0x36"));t[wi("0x26")]&&e[wi("0x2b")](wi("0x1f"),this[wi("0x23")][wi("0x13")](this)),t.reversed&&e[wi("0x2b")](wi("0x2"),this[wi("0x19")][wi("0x13")](this)),t[wi("0x1d")]&&e[wi("0x2b")](wi("0x2d"),this[wi("0x1e")][wi("0x13")](this)),e[wi("0x15")][wi("0x16")](this[wi("0x4")][wi("0x13")](this))}[wi("0x23")](t,e={}){const n=this[wi("0x3b")][wi("0xb")][wi("0x5")](wi("0x36")),o=this[wi("0x31")]();this[wi("0x3b")][wi("0x38")][wi("0x33")]((()=>{n[wi("0x2a")](o,{commandName:wi("0x1f"),commandParams:[{type:e[wi("0x28")]}],formatGroupId:wi("0x1f")})}))}[wi("0x19")](t,e={}){const n=this[wi("0x3b")].plugins[wi("0x5")]("TrackChangesEditing"),o=this[wi("0x32")]((t=>t.is(wi("0xa"),wi("0x35"))&&wi("0x3a")===t[wi("0x3c")](wi("0x2f"))));if(o.length<1)return;const s=o[wi("0x18")]((t=>this[wi("0x3b")][wi("0x38")].createRange(this[wi("0x3b")][wi("0x38")][wi("0x0")](t,"before"),this.editor[wi("0x38")][wi("0x0")](t,0))));this[wi("0x3b")][wi("0x38")][wi("0x33")]((()=>{n[wi("0x2a")](s,{commandName:wi("0x2"),commandParams:[{reversed:e.reversed}],formatGroupId:wi("0x2")})}))}[wi("0x1e")](t,e={}){const n=this[wi("0x3b")][wi("0xb")].get(wi("0x36")),o=this[wi("0x32")]((t=>t.is(wi("0xa"),wi("0x35"))&&wi("0x3a")===t[wi("0x3c")](wi("0x2f"))));if(o[wi("0x20")]<1)return;const s=o.map((t=>this.editor[wi("0x38")][wi("0xe")](this[wi("0x3b")].model[wi("0x0")](t,wi("0x8")),this.editor[wi("0x38")][wi("0x0")](t,0))));this[wi("0x3b")].model[wi("0x33")]((()=>{n[wi("0x2a")](s,{commandName:wi("0x2d"),commandParams:[{startIndex:e[wi("0x1d")]}],formatGroupId:wi("0x2d")})}))}[wi("0x4")](t){const e=this[wi("0x3b")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x3d")]){case wi("0x1f"):o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this[wi("0x12")](n[wi("0xc")][0].type)))};break;case wi("0x2"):o=n.commandParams[0][wi("0x1c")]?wi("0x29"):"*Format:* set order to regular",s={type:wi("0xf"),content:Yo(e,o)};break;case"listStart":o=wi("0x25"),s={type:wi("0xf"),content:Yo(e,o,n.commandParams[0][wi("0x1d")])}}return s}[wi("0x31")](){var t,e,n,o;const s=this[wi("0x3b")][wi("0xb")][wi("0x5")](wi("0x3e"));let r=Array[wi("0x21")](this[wi("0x3b")][wi("0x38")].document[wi("0x17")][wi("0x10")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0xa"),"listItem"))&&r[wi("0x22")](...s.getSiblingNodes(this[wi("0x3b")].model[wi("0x14")][wi("0x17")][wi("0x7")](),wi("0x2e"))),(null===(e=r[r[wi("0x20")]-1])||void 0===e?void 0:e.is(wi("0xa"),wi("0x35")))&&r[wi("0x27")](...s[wi("0x37")](this[wi("0x3b")][wi("0x38")][wi("0x14")].selection[wi("0x9")](),wi("0x6"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x3b")].model[wi("0x14")][wi("0x17")].getFirstPosition())||void 0===n?void 0:n[wi("0x1a")])||void 0===o?void 0:o.is(wi("0xa"),wi("0x35")))&&(r=r.filter((t=>t.is("element",wi("0x35"))))),r}[wi("0x32")](t){const e=this[wi("0x3b")][wi("0xb")][wi("0x5")](wi("0x3e"));let n=Array.from(this.editor[wi("0x38")][wi("0x14")][wi("0x17")][wi("0x10")]())[wi("0x3")](t)[wi("0x18")]((t=>{const n=this.editor.model.createPositionAt(t,0);return[...e[wi("0x37")](n,wi("0x2e")),...e[wi("0x37")](n,wi("0x6"))]}))[wi("0x30")]();return n=[...new Set(n)],n}[wi("0x12")](t){return wi("0x1")+this[wi("0x3b")][wi("0xb")][wi("0x5")](wi("0x3e"))[wi("0x24")](t)[wi("0xd")]()+wi("0x39")+t[wi("0xd")]()[wi("0x2c")](/-/g,"_")}}const Fi=["media","downcastDispatcher","_descriptionFactory","MediaEmbedEditing","stop","locale","div","plugins","editor","createEmptyElement","TrackChangesEditing","high","enableCommand","has","showSuggestionHighlights","data","conversion","for","ELEMENT_MEDIA","mediaEmbed"];var Pi,Di;Pi=Fi,Di=329,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[Bi("0x13")];if(!t.plugins[Bi("0x4")](Bi("0xe")))return;const e=t[Bi("0x12")].get(Bi("0x1")),n=t[Bi("0x10")];e[Bi("0x3")](Bi("0xa")),e[Bi("0xd")].registerElementLabel(Bi("0xb"),(t=>Yo(n,Bi("0x9"),t))),t[Bi("0x7")][Bi("0x8")]("dataDowncast").elementToElement({model:"media",view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Bi("0x0")](Bi("0x11"))},converterPriority:Bi("0x2")}),t[Bi("0x6")][Bi("0xc")].on("attribute:url:media",((t,e,n)=>{n.options[Bi("0x5")]&&t[Bi("0xf")]()}),{priority:Bi("0x2")})}}const Ui=["afterInit","TrackChangesEditing","get","editor","enableCommand","MentionEditing","has","mention","plugins"];var Gi,Hi;Gi=Ui,Hi=489,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x6")](){const t=this[zi("0x0")];t[zi("0x5")][zi("0x3")](zi("0x2"))&&t[zi("0x5")][zi("0x8")](zi("0x7"))[zi("0x1")](zi("0x4"))}}const Vi=["ELEMENT_PAGE_BREAK","plugins","get","registerElementLabel","PageBreakEditing","has","TrackChangesEditing","pageBreak","enableCommand","locale","editor"];var Ki,qi;Ki=Vi,qi=242,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0xa")];if(!t.plugins[Xi("0x5")](Xi("0x4")))return;t[Xi("0x1")][Xi("0x2")](Xi("0x6"))[Xi("0x8")]("pageBreak");const e=t[Xi("0x1")][Xi("0x2")](Xi("0x6")),n=t[Xi("0x9")];e._descriptionFactory[Xi("0x3")](Xi("0x7"),(t=>Yo(n,Xi("0x0"),t)))}}const Ji=["ck-suggestion-marker--active","commandName","plugins","start","span","locale","_descriptionFactory","options","writer","insert","name","createUIElement","editor","paragraph","addMarker:suggestion:insertion","addClass","editing","data","$text","filter","isTouching","parent","format","selection","schema","TrackChangesEditing","showSuggestionHighlights","from","end","afterInit","markerName","isBlock","registerElementLabel","highest","checkChild","registerDescriptionCallback","consume","getSelectedBlocks","*Insert:* %0","get","model","insertParagraph","markBlockFormat","insertion","ELEMENT_PARAGRAPH","*Change to:* %0","enableCommand","includes","isObject","downcastDispatcher","nodeAfter","isLimit","markerRange","blockName","Paragraph","consumable"];var Qi,Zi;Qi=Ji,Zi=371,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x32")](){const t=this.editor;if(!t.plugins.has(Yi("0x13")))return;const e=t[Yi("0x1a")],n=t[Yi("0x17")][Yi("0x4")]("TrackChangesEditing");n[Yi("0x1b")][Yi("0x35")](Yi("0x22"),(t=>Yo(e,Yi("0x9"),t))),n[Yi("0xb")]("paragraph",((e,o={})=>{const s=t[Yi("0x5")].document,r=o[Yi("0x2c")]||s[Yi("0x2c")],i=Array[Yi("0x30")](r[Yi("0x2")]())[Yi("0x28")]((t=>{return e=t,(n=this[Yi("0x21")][Yi("0x5")][Yi("0x2d")])[Yi("0x37")](e[Yi("0x2a")],Yi("0x22"))&&!n[Yi("0xd")](e)&&"paragraph"!=e[Yi("0x1f")];var e,n}));t[Yi("0x5")].change((()=>{for(const t of i)n[Yi("0x7")](t,{commandName:"paragraph",commandParams:[],formatGroupId:Yi("0x12")},fs(t))}))})),n[Yi("0x1b")][Yi("0x0")]((t=>{const{data:n}=t;if(n&&Yi("0x22")==n[Yi("0x16")])return{type:Yi("0x2b"),content:Yo(e,Yi("0xa"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n.enableCommand(Yi("0x6")),t[Yi("0x25")][Yi("0xe")].on("addMarker:suggestion:insertion",ex(t),{priority:Yi("0x36")}),t[Yi("0x26")].downcastDispatcher.on(Yi("0x23"),((e,n,o)=>{o[Yi("0x1c")][Yi("0x2f")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Yi("0x1b")];o[Yi("0x0")]((n=>{if(Yi("0x8")!==n.type)return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x29")](r)||!s[Yi("0xf")])return;const i=t.model[Yi("0x2d")],x=s[Yi("0xf")];return i[Yi("0x34")](x)&&!i[Yi("0x10")](x)&&i[Yi("0x37")](x,Yi("0x27"))?{type:"insertion",content:Yo(e,Yi("0x3"),o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Yi("0x4")](Yi("0x2e")),i=o.markerRange[Yi("0x18")],x=o[Yi("0x11")][Yi("0x31")],a=t[Yi("0x5")][Yi("0x2d")];if(!i[Yi("0x29")](x)||!i[Yi("0xf")])return;const c=i[Yi("0xf")];if(a.isBlock(c)&&!a.isLimit(c)&&a.checkChild(c,Yi("0x27"))){if(!s[Yi("0x14")][Yi("0x1")](o[Yi("0x11")],n.name))return;const t=s[Yi("0x1d")][Yi("0x20")](Yi("0x19"),{class:"ck-suggestion-marker-split"}),i=s.mapper.toViewPosition(x);e&&r.activeMarkers[Yi("0xc")](o[Yi("0x33")])&&s[Yi("0x1d")][Yi("0x24")](Yi("0x15"),t),s[Yi("0x1d")][Yi("0x1e")](i,t),s.mapper.bindElementToMarker(t,o[Yi("0x33")])}}}const nx=["plugins","isFormatting","schema","change","markInlineFormat","document","_descriptionFactory","getAttributes","has","RemoveFormatEditing","get","commandName","getAttributeProperties","removeFormat","model","afterInit","editor","*Remove all formatting*","isCollapsed","locale"];var ox,sx;ox=nx,sx=449,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x6")](){const t=this[rx("0x7")];if(!t[rx("0xb")][rx("0x13")](rx("0x0")))return;const e=t[rx("0xb")][rx("0x1")]("TrackChangesEditing");e.enableCommand(rx("0x4"),(n=>{const o=t[rx("0x5")][rx("0x10")].selection;o[rx("0x9")]?n():t.model[rx("0xe")]((()=>{const n=Array.from(o.getRanges());for(const o of n)for(const n of o.getItems())xx(n,t[rx("0x5")][rx("0xd")])&&e[rx("0xf")](t[rx("0x5")].createRangeOn(n),{commandName:rx("0x4"),commandParams:[]})}))})),e[rx("0x11")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&rx("0x4")==n[rx("0x2")])return{type:"format",content:Yo(t[rx("0xa")],rx("0x8"))}}))}}function xx(t,e){for(const[n]of t[rx("0x12")]()){const t=e[rx("0x3")](n);if(t&&t[rx("0xc")])return!0}return!1}const ax=["acceptSelectedSuggestions","TrackChangesEditing","discardSelectedSuggestions","get","enableCommand","plugins","RestrictedEditingModeEditing","goToNextRestrictedEditingException","editor","has","goToPreviousRestrictedEditingException","discardAllSuggestions","acceptSuggestion","trackChanges","discardSuggestion"];var cx,lx;cx=ax,lx=251,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("0xc")];if(!t.plugins[dx("0xd")](dx("0xa")))return;const e=t.plugins[dx("0x7")](dx("0x5"));e[dx("0x8")](dx("0xe")),e[dx("0x8")](dx("0xb"));const n=t[dx("0x9")][dx("0x7")](dx("0xa"));n[dx("0x8")](dx("0x2")),n.enableCommand(dx("0x1")),n[dx("0x8")](dx("0x3")),n.enableCommand("acceptAllSuggestions"),n[dx("0x8")](dx("0x0")),n.enableCommand(dx("0x4")),n[dx("0x8")](dx("0x6"))}}const gx=["init","locale","registerElementLabel","softBreak","editing","high","addMarker:suggestion","toViewPosition","plugins","options","downcastDispatcher","addMarker:suggestion:insertion","deletion","markerRange","writer","addMarker:suggestion:deletion","ck-suggestion-marker-","TrackChangesEditing","editor","activeMarkers","requires","name","showSuggestionHighlights","mapper","createPositionBefore","getItems","markerName","bindElementToMarker","span","split","data","enableCommand"];var mx,fx;mx=gx,fx=321,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("0x13")](){return[nr.ShiftEnter]}[hx("0x1f")](){const t=this[hx("0x11")],e=t[hx("0x7")].get(hx("0x10"));e[hx("0x1e")]("shiftEnter"),t[hx("0x3")][hx("0x9")].on(hx("0xa"),bx(t),{priority:hx("0x4")}),t[hx("0x3")].downcastDispatcher.on(hx("0xe"),bx(t),{priority:hx("0x4")}),t[hx("0x1d")][hx("0x9")].on(hx("0x5"),((e,n,o)=>{o[hx("0x8")][hx("0x15")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[hx("0x1")](hx("0x2"),(e=>Yo(t[hx("0x0")],"ELEMENT_LINE_BREAK",e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x7")].get("TrackChangesEditing");if(!s.consumable.test(o[hx("0xc")],n[hx("0x14")]))return;const i=t.model;for(const t of o[hx("0xc")][hx("0x18")]()){if(!t.is("element",hx("0x2")))continue;const n=hx("0xb")==o[hx("0x19")][hx("0x1c")](":")[1]?"merge":hx("0x1c"),x=s[hx("0xd")].createUIElement(hx("0x1b"),{class:hx("0xf")+n}),a=s[hx("0x16")][hx("0x6")](i[hx("0x17")](t));e&&r[hx("0x12")].includes(o[hx("0x19")])&&s[hx("0xd")].addClass("ck-suggestion-marker--active",x),s[hx("0xd")].insert(a,x),s[hx("0x16")][hx("0x1a")](x,o[hx("0x19")])}}}const Ex=["commandParams","selection","getRanges","enableCommand","restrictedEditingException","commandName","has","TrackChangesEditing","forceValue","markInlineFormat","FORMAT_RESTRICTED_DISABLED","change","value","locale","FORMAT_RESTRICTED_ENABLED","get","document","StandardEditingModeEditing","plugins"];var _x,Tx;_x=Ex,Tx=407,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{afterInit(){const t=this.editor,e=t.model,n=t[Cx("0x5")];if(!t[Cx("0xa")][Cx("0x11")](Cx("0x9")))return;const o=t.plugins[Cx("0x7")](Cx("0x12")),s=Cx("0xf"),r=t.commands[Cx("0x7")](s);o[Cx("0xe")](s,((t,n={})=>{const i=e[Cx("0x8")][Cx("0xc")];if(i.isCollapsed)return void t(n);const x=void 0!==n[Cx("0x0")]?n.forceValue:!r[Cx("0x4")];e[Cx("0x3")]((()=>{const t=Array.from(i[Cx("0xd")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x1")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e[Cx("0x10")]==s)return e[Cx("0xb")][0].forceValue?{type:"format",content:Yo(n,Cx("0x6"))}:{type:"format",content:Yo(n,Cx("0x2"))}}))}}const kx=["*Remove format:* %0","plugins","markBlockFormat","commands","element","forceValue","registerDescriptionCallback","includes","classes","DataSchema","commandParams","every","push","isBlock","block","_descriptionFactory","isCollapsed","styleName","find","style.definitions","from","style","getAttribute","name","change","locale","modelElements","*Format:* %0","markInlineFormat","StyleUtils","TrackChangesEditing","model","_getStyleDefinition","get","toLowerCase","document","normalizeConfig","inline","getRanges","has","enabledStyles"];var Ax,vx;Ax=kx,vx=276,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{afterInit(){const t=this.editor;if(!t[Rx("0xc")][Rx("0x9")]("Style"))return;const e=t[Rx("0xe")].get(Rx("0x20")),n=t[Rx("0xc")][Rx("0x3")](Rx("0x0")),o=t[Rx("0x24")],s=t[Rx("0xc")][Rx("0x3")](Rx("0x14")),r=t[Rx("0xc")][Rx("0x3")](Rx("0x28"))[Rx("0x6")](s,t.config[Rx("0x3")](Rx("0x1e")));n.enableCommand(Rx("0x20"),((o,{styleName:i})=>{const x=t[Rx("0x1")][Rx("0x5")].selection,a=this[Rx("0x2")](i,r);if(!a)return;if(!e[Rx("0xa")][Rx("0x12")](i))return;if(x[Rx("0x1b")]&&!a[Rx("0x18")])return void o({styleName:i});const c=!e.value.includes(a[Rx("0x22")]);if(a[Rx("0x18")]){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("0x12")](o[Rx("0x22")])){n.add(o);break}}return n}(x.getSelectedBlocks(),a[Rx("0x25")]);t.model[Rx("0x23")]((()=>{for(const t of e)n[Rx("0xd")](t,{commandName:Rx("0x20"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[Rx("0x1f")](x[Rx("0x8")]());if(!c){const n=Array[Rx("0x1f")](s.getDefinitionsForView(a[Rx("0xf")],!1))[0].model,o=[];for(const s of e){const e=this._getRangesWithClasses(t[Rx("0x1")],s,a[Rx("0x13")],n);o[Rx("0x17")](...e)}e=o}t.model.change((()=>{for(const t of e)n[Rx("0x27")](t,{commandName:Rx("0x20"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x1a")][Rx("0x11")]((t=>{const{data:e}=t;if(e&&Rx("0x20")===e.commandName)return e[Rx("0x15")][0][Rx("0x10")]?{type:"format",content:Yo(o,Rx("0x26"),e[Rx("0x15")][0][Rx("0x1c")][Rx("0x4")]())}:{type:"format",content:Yo(o,Rx("0xb"),e.commandParams[0][Rx("0x1c")][Rx("0x4")]())}}))}[Rx("0x2")](t,e){let n=e[Rx("0x19")].find((e=>e[Rx("0x22")]===t));return n||(n=e[Rx("0x7")][Rx("0x1d")]((e=>e.name===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e.getItems()){const e=r[Rx("0x21")](o);e&&n[Rx("0x16")]((t=>e.classes[Rx("0x12")](t)))&&s.push(t.createRangeOn(r))}return s}}const Sx=["left","getFirstRange","downcastDispatcher","document","ELEMENT_TABLE_WITH_TEXT","_tableSuggestions","max","TableUtils","insert","change","_tablePostFixingSubtypes","ELEMENT_TABLE","selectTableColumn","TrackChangesEditing","suggestion","toViewElement","selection","join","commands","rowspan","hasAttribute","$textProxy","get","forceValue","element","tableCell","item","options","substr","order","isArray","insertTableRowBelow","MAX_SAFE_INTEGER","setSelection","every","insertion","map","data","createRangeOn","low","values","isEqual","tableRow","addClass","getItems","writer","rootName","locale","subType","deletion","insertTableRowAbove","discard","maxRow","getAttribute","registerElementLabel","differ","removeClass","_setupColumnsRowsFixing","execute","type","getRowIndexes","detach","batch","findAncestor","accept","add","MIN_SAFE_INTEGER","startsWith","registerCustomCallback","span","root","addRange","first","tableColumn","table","ELEMENT_TABLE_ROW","enqueueChange","fromRange","$graveyard","start","length","editor","nodeAfter","_getSuggestionCoords","registerPostFixer","maxColumn","getCellLocation","last","*Remove:* %0","removeTableColumn","isTouching","ELEMENT_TABLE_ROW_WITH_TEXT","getSelectionAffectedTableCells","tablePaste","showSuggestionHighlights","getChanges","ELEMENT_TABLE_COLUMN","cell","classes","plugins","TableEditing","nodeBefore","highest","colspan","refresh","name","createTableWalker","_descriptionFactory","getContainedElement","insertTable","_splitMarkerName","ELEMENT_TABLE_COLUMN_WITH_TEXT","createPositionAt","end","includes","markMultiRangeInsertion","toLowerCase","enableCommand","getRanges","getChangedMarkers","position","insertTableColumnLeft","removeTableRow","from","filter","model","_getCoordsForCells","_suggestionFactory","registerDescriptionCallback","markMultiRangeDeletion","some","change:data","*Insert:* %0"];var Lx,Nx;Lx=Sx,Nx=357,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Sx[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x34")]=["tableRow","tableColumn"],this[Mx("0x2f")]=new Set}afterInit(){const t=this[Mx("0x7b")],e=t.model[Mx("0x2d")].selection;if(!t[Mx("0x8")].has(Mx("0x9")))return;const n=t[Mx("0x59")],o=t[Mx("0x8")][Mx("0x40")]("TrackChangesEditing"),s=t[Mx("0x8")][Mx("0x40")](Mx("0x31"));o._descriptionFactory[Mx("0x60")](Mx("0x74"),(t=>Yo(n,Mx("0x35"),t))),this[Mx("0x63")](),o[Mx("0x1a")](Mx("0x12")),o[Mx("0x1a")]("selectTableRow"),o[Mx("0x1a")](Mx("0x36"));for(const n of[Mx("0x5c"),Mx("0x49")]){const r=t.commands.get(n);o[Mx("0x1a")](n,(n=>{t.model.change((t=>{n();const i="above"===r[Mx("0x47")],x=s.getSelectionAffectedTableCells(e),a=s.getRowIndexes(x),c=i?a[Mx("0x72")]-1:a[Mx("0x81")]+1,l=x[0][Mx("0x69")](Mx("0x74")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array[Mx("0x20")](d).map((e=>t[Mx("0x50")](e.cell)));o[Mx("0x18")](u,Mx("0x54"))}))}))}for(const n of[Mx("0x1e"),"insertTableColumnRight"]){const r=t[Mx("0x3c")][Mx("0x40")](n);o[Mx("0x1a")](n,(n=>{t[Mx("0x22")].change((t=>{n();const i=Mx("0x2a")===r[Mx("0x47")],x=s[Mx("0x1")](e),a=s.getColumnIndexes(x),c=i?a[Mx("0x72")]-1:a.last+1,l=x[0][Mx("0x69")](Mx("0x74")),d=s[Mx("0xf")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x20")](d)[Mx("0x4e")]((e=>t[Mx("0x50")](e[Mx("0x6")])));o.markMultiRangeInsertion(u,Mx("0x73"))}))}))}for(const n of["removeTableRow",Mx("0x83")]){const r=n[Mx("0x46")](11),i=r[Mx("0x19")](),x=i[Mx("0x46")](0,3)+Mx("0x6f"),a=Mx("0x74")+r,c="min"+r,l=Mx("0x30")+r;o[Mx("0x1a")](n,(()=>{t[Mx("0x22")].change((t=>{const r=s[Mx("0x1")](e),d=r[0][Mx("0x69")](Mx("0x74"));let u;if(Mx("0x1f")==n){const t=s[Mx("0x66")](r);u={startRow:t[Mx("0x72")],endRow:t.last,includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t.first,endColumn:t[Mx("0x81")],includeAllSlots:!0}}const g=s[Mx("0xf")](d,u),m=Array[Mx("0x20")](g)[Mx("0x4e")]((({cell:t})=>t)),f=Ox(m[Mx("0x21")]((t=>t[Mx("0x3e")](x)))),h=Ox(m[Mx("0x21")]((t=>!t[Mx("0x3e")](x))))[Mx("0x4e")]((e=>t.createRangeOn(e))),p=o[Mx("0x26")](h,a);if(p&&(Mx("0x54")==p[Mx("0x5a")]||Mx("0x73")==p[Mx("0x5a")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t[Mx("0x50")](n),r=s[Mx("0x80")](n),a=n[Mx("0x5f")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Mx("0x71")](o)}}}))}))}function r(n){const o=Array[Mx("0x20")](e[Mx("0x1b")]()).map((t=>i.LiveRange[Mx("0x77")](t)));t[Mx("0x22")][Mx("0x33")]((e=>{const s=e[Mx("0x68")];n=n[Mx("0x21")]((t=>Mx("0x78")!=t[Mx("0x70")][Mx("0x58")])),e.setSelection(n),t[Mx("0x3c")].get(Mx("0x1f"))[Mx("0xd")](),t.execute(Mx("0x1f"),{forceDefaultExecution:!0}),t[Mx("0x22")][Mx("0x76")]((()=>{t[Mx("0x22")].enqueueChange(s,(t=>{const e=o[Mx("0x21")]((t=>Mx("0x78")!=t.root[Mx("0x58")]));e.length>0&&t[Mx("0x4b")](e);for(const t of o)t[Mx("0x67")]()}))}))}))}function a(n){t[Mx("0x22")][Mx("0x33")]((o=>{const s=Array[Mx("0x20")](e.getRanges())[Mx("0x4e")]((t=>i.LiveRange[Mx("0x77")](t))),r=[];for(const t of n)for(const e of t[Mx("0x56")]({shallow:!0}))r.push(e);for(const e of r)Mx("0x78")!=e[Mx("0x70")][Mx("0x58")]&&(o[Mx("0x4b")](o[Mx("0x15")](e,0)),t.commands.get(Mx("0x83")).refresh(),t[Mx("0x64")](Mx("0x83"),{forceDefaultExecution:!0}));const x=s[Mx("0x21")]((t=>Mx("0x78")!=t.root[Mx("0x58")]));x[Mx("0x7a")]>0&&o[Mx("0x4b")](x);for(const t of s)t.detach()}))}function c(t,e){return e[Mx("0x4c")]((e=>t[Mx("0x27")]((t=>t.end[Mx("0x53")](e[Mx("0x79")])||e[Mx("0x16")][Mx("0x53")](t[Mx("0x79")])))))}function l(t,e){return t[Mx("0x27")]((t=>e[Mx("0x27")]((e=>t[Mx("0x16")][Mx("0x84")](e[Mx("0x79")])))))}t.data[Mx("0x2c")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Mx("0x45")][Mx("0x3")])return;const o=e[Mx("0x44")];if(!o)return;const s=n.mapper[Mx("0x39")](o);function r(t){return Array[Mx("0x48")](t)?t:[t]}s&&Mx("0x43")===o.name&&(0,x.setHighlightHandling)(s,n[Mx("0x57")],((t,e,n)=>n[Mx("0x55")](r(e[Mx("0x7")]),t)),((t,e,n)=>n[Mx("0x62")](r(e[Mx("0x7")]),t)))}),{priority:Mx("0xb")}),o[Mx("0x10")][Mx("0x25")]((t=>{if(Mx("0x4d")!=t[Mx("0x65")]&&Mx("0x5b")!=t[Mx("0x65")])return;const e=t[Mx("0x11")]();if(null!=e&&e.is(Mx("0x42"),Mx("0x74"))){if("insertion"==t[Mx("0x65")]){const e=t.getItems()[Mx("0x21")]((t=>t.is("$textProxy"))).map((t=>t[Mx("0x4f")]));if(e[Mx("0x7a")])return{type:Mx("0x4d"),content:Yo(n,Mx("0x29"),Yo(n,Mx("0x2e"),'"'+e.join(" ")+'"'))}}if(Mx("0x5b")==t[Mx("0x65")]){const e=t[Mx("0x56")]()[Mx("0x21")]((t=>t.is(Mx("0x3f"))))[Mx("0x4e")]((t=>t[Mx("0x4f")]));if(e.length)return{type:Mx("0x5b"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x3b")](" ")+'"'))}}}})),o._descriptionFactory.registerDescriptionCallback((t=>{if(Mx("0x54")==t.subType){const e=t[Mx("0x56")]()[Mx("0x21")]((t=>t.is(Mx("0x3f"))))[Mx("0x4e")]((t=>t.data)),o=this[Mx("0x7d")](t),s=o[Mx("0x5e")]-o.minRow+1;if(Mx("0x4d")==t[Mx("0x65")])return e[Mx("0x7a")]?{type:Mx("0x4d"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x0"),[s,'"'+e[Mx("0x3b")](" ")+'"']))}:{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x75"),s))};if(Mx("0x5b")==t.type)return e.length?{type:Mx("0x5b"),content:Yo(n,Mx("0x82"),Yo(n,Mx("0x0"),[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x5b"),content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x75"),s))}}if(Mx("0x73")==t[Mx("0x5a")]){const e=t[Mx("0x56")]()[Mx("0x21")]((t=>t.is(Mx("0x3f"))))[Mx("0x4e")]((t=>t[Mx("0x4f")])),o=this[Mx("0x7d")](t),s=o[Mx("0x7f")]-o.minColumn+1;if(Mx("0x4d")==t[Mx("0x65")])return e[Mx("0x7a")]?{type:Mx("0x4d"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x14"),[s,'"'+e[Mx("0x3b")](" ")+'"']))}:{type:Mx("0x4d"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x5"),s))};if(Mx("0x5b")==t.type)return e[Mx("0x7a")]?{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x14"),[s,'"'+e[Mx("0x3b")](" ")+'"']))}:{type:Mx("0x5b"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o[Mx("0x24")][Mx("0x6e")](Mx("0x4d"),Mx("0x54"),Mx("0x5d"),r),o[Mx("0x24")][Mx("0x6e")](Mx("0x5b"),"tableRow",Mx("0x6a"),r),o[Mx("0x24")].registerCustomCallback(Mx("0x4d"),Mx("0x73"),Mx("0x5d"),a),o[Mx("0x24")].registerCustomCallback(Mx("0x5b"),Mx("0x73"),"accept",a),o[Mx("0x24")].registerCustomCallback(Mx("0x4d"),Mx("0x73"),Mx("0x3b"),c),o._suggestionFactory[Mx("0x6e")](Mx("0x5b"),"tableColumn",Mx("0x3b"),c),o[Mx("0x24")].registerCustomCallback(Mx("0x4d"),Mx("0x54"),Mx("0x3b"),l),o[Mx("0x24")].registerCustomCallback(Mx("0x5b"),Mx("0x54"),Mx("0x3b"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this.editor,e=t[Mx("0x22")][Mx("0x2d")][Mx("0x3a")];return(n,o)=>{t[Mx("0x22")][Mx("0x33")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end[Mx("0xa")];x&&x[0]&&!1===x[0][Mx("0x41")]&&(a=n[0][Mx("0x79")][Mx("0x7c")]);const c=s.createRangeIn(a);if(Mx("0x78")==c[Mx("0x70")][Mx("0x58")])return;const l=Array.from(e[Mx("0x1b")]())[Mx("0x4e")]((t=>i.LiveRange[Mx("0x77")](t)));s[Mx("0x4b")](c),t.commands[Mx("0x40")](r).refresh(),x.push({forceDefaultExecution:!0}),t[Mx("0x64")](r,...x);const d=l.filter((t=>"$graveyard"!=t[Mx("0x70")][Mx("0x58")]));d[Mx("0x7a")]>0&&s[Mx("0x4b")](d);for(const t of l)t[Mx("0x67")]()}))}}[Mx("0x23")](t){const e=this[Mx("0x7b")][Mx("0x8")][Mx("0x40")]("TableUtils");let n=Number[Mx("0x4a")],o=Number.MIN_SAFE_INTEGER,s=Number[Mx("0x4a")],r=Number[Mx("0x6c")];for(const i of t){if(Mx("0x78")==i[Mx("0x70")].rootName)continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Mx("0x3e")](Mx("0x3d"))?i[Mx("0x5f")](Mx("0x3d"))-1:0,c=i[Mx("0x3e")](Mx("0xc"))?i[Mx("0x5f")](Mx("0xc"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this[Mx("0x7b")],e=t[Mx("0x8")][Mx("0x40")](Mx("0x37")),n=t[Mx("0x8")][Mx("0x40")](Mx("0x31"));t[Mx("0x22")].document.on(Mx("0x28"),(()=>{const n=Array.from(t[Mx("0x22")][Mx("0x2d")][Mx("0x61")][Mx("0x1c")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x13")](t);if(Mx("0x38")!=n)continue;if(null!=o.oldRange)continue;const i=e.getSuggestion(s);this[Mx("0x34")][Mx("0x17")](r)&&this._tableSuggestions[Mx("0x6b")](i)}}),{priority:Mx("0x51")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x50")](t),r=t.findAncestor("table"),i=n.getCellLocation(t);for(const e of this[Mx("0x2f")]){const n=e[Mx("0x5a")],x=n[Mx("0x6d")](Mx("0x2")),a=n[Mx("0x46")](x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+Mx("0x6f"),d="min"+a,u=Mx("0x30")+a;if(!e.isInContent)continue;if(r!=e[Mx("0x2b")]()[Mx("0x79")][Mx("0x69")](Mx("0x74")))continue;if(e.isIntersectingWithRange(s))continue;const g=t[Mx("0x3e")](l)?t.getAttribute(l)-1:0,m=this[Mx("0x7d")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x71")](s),o=!0)}return o};t[Mx("0x22")].document[Mx("0x7e")]((e=>{let n=!1;for(const s of t[Mx("0x22")][Mx("0x2d")].differ[Mx("0x4")]())if(Mx("0x32")==s[Mx("0x65")])if("tableRow"==s[Mx("0xe")])for(const t of s[Mx("0x1d")][Mx("0x7c")].getChildren())n=n||o(t,e);else Mx("0x43")==s.name&&(n=n||o(s[Mx("0x1d")][Mx("0x7c")],e));return n}))}[Mx("0x7d")](t){return this[Mx("0x23")](t[Mx("0x1b")]()[Mx("0x4e")]((t=>t.start[Mx("0x7c")])))}}function Ox(t){return Array.from(new Set(t)[Mx("0x52")]())}const Fx=["isEnabled","find","editor","type","formatBlock","$graveyard","_isForcedDefaultExecutionBlock","return","add","_tablePostFixingSubtypes","subType","mergeTableCellDown","TrackChangesEditing","mergeTableCellLeft","selection","getSuggestions","filter","mergeTableCellUp","low","direction","_suggestionFactory","execute","afterInit","fromRange","containsRange","model","isInContent","_acceptFormatSuggestionCallbackFactory","splitTableCellVertically","enableCommand","has","cell","createRangeOn","get","detach","markBlockFormat","registerDescriptionCallback","locale","commandName","_descriptionFactory","format","accept","getSelectionAffectedTableCells","commands","document","push","trackChanges","findAncestor","registerCustomCallback","horizontally","value","getRanges","TableUtils","setSelection","*Split cell:* vertically","mergeTableCells","length","author","*Split cell:* horizontally","stop","getAncestors","change","forceDefaultExecution","splitTableCellHorizontally","_areSelectedCellsMergable","deletion","element","size","mergeTableCellRight","requires","from","createTableWalker","getFirstPosition","_areMergableCells","map","markMultiRangeBlockFormat","highest","plugins","tableCell","rootName"];var Px,Dx;Px=Fx,Dx=407,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("0x3e")](){return[wx]}[Bx("0xf")](){const t=this[Bx("0x4b")],e=t[Bx("0x12")][Bx("0x25")][Bx("0x7")],n=t[Bx("0x1e")];if(!t[Bx("0x46")][Bx("0x17")]("TableEditing"))return;const o=t[Bx("0x46")].get(Bx("0x5")),s=t[Bx("0x46")][Bx("0x1a")](Bx("0x2d")),r=t.plugins[Bx("0x1a")](wx);r[Bx("0x2")][Bx("0x26")]("mergeTableCells"),o[Bx("0x16")](Bx("0x30"),(()=>{const e=s[Bx("0x23")](t[Bx("0x12")][Bx("0x25")][Bx("0x7")]);t[Bx("0x12")].change((()=>{o[Bx("0x44")](e,{commandName:Bx("0x30"),commandParams:[]},[],Bx("0x30"))}))})),t[Bx("0x24")][Bx("0x1a")](Bx("0x30")).on(Bx("0xe"),((e,n)=>{t.commands[Bx("0x1a")](Bx("0x27")).value&&(n[Bx("0x31")]>0&&n[n[Bx("0x31")]-1]&&n[n[Bx("0x31")]-1][Bx("0x37")]||o[Bx("0x4f")]||this[Bx("0x39")]()||e[Bx("0x34")]())}),{priority:Bx("0x45")});for(const e of[Bx("0xa"),Bx("0x3d"),Bx("0x4"),"mergeTableCellLeft"]){const n=t[Bx("0x24")][Bx("0x1a")](e);o[Bx("0x16")](e,(()=>{const e=t.model.document.selection[Bx("0x41")]().getAncestors()[Bx("0x4a")]((t=>t.is(Bx("0x3b"),Bx("0x47")))),s=n[Bx("0x2b")];t[Bx("0x12")][Bx("0x36")]((()=>{o[Bx("0x44")]([e,s],{commandName:Bx("0x30"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[Bx("0x15"),"splitTableCellHorizontally"]){const n=t[Bx("0x24")].get(e);o[Bx("0x16")](e,(()=>{const r=s[Bx("0x23")](t[Bx("0x12")][Bx("0x25")][Bx("0x7")])[0],i=r[Bx("0x28")]("table"),{column:x,row:a}=s.getCellLocation(r);let c=[];if(Bx("0x2a")==n[Bx("0xc")]){const t=s[Bx("0x40")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x3f")](t)[Bx("0x43")]((t=>t.cell))}else{const t=s[Bx("0x40")](i,{column:x,includeAllSlots:!0});c=Array.from(t)[Bx("0x43")]((t=>t[Bx("0x18")]))}t.model.change((t=>{o[Bx("0x1c")](t[Bx("0x19")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x20")][Bx("0x1d")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x1f")]?{type:Bx("0x21"),content:Yo(n,"*Merge cells*")}:void 0})),o[Bx("0x20")][Bx("0x1d")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x1f")]?{type:Bx("0x21"),content:Yo(n,Bx("0x2f"))}:"splitTableCellHorizontally"==e.commandName?{type:"format",content:Yo(n,Bx("0x33"))}:void 0}));const x=r[Bx("0x14")]();for(const t of[Bx("0xa"),Bx("0x3d"),Bx("0x4"),Bx("0x6")])o._suggestionFactory[Bx("0x29")](Bx("0x4d"),t,"accept",x);for(const t of[Bx("0x15"),Bx("0x38")])o[Bx("0xd")].registerCustomCallback(Bx("0x4d"),t,Bx("0x22"),x);o[Bx("0xd")][Bx("0x29")](Bx("0x4d"),"mergeTableCells",Bx("0x22"),(n=>{t[Bx("0x12")].change((o=>{const s=Array[Bx("0x3f")](e[Bx("0x2c")]()).map((t=>i.LiveRange[Bx("0x10")](t)));o[Bx("0x2e")](n),t[Bx("0x24")].get(Bx("0x30")).refresh(),t[Bx("0xe")](Bx("0x30"),{forceDefaultExecution:!0});const r=s[Bx("0x9")]((t=>Bx("0x4e")!=t.root[Bx("0x48")]));r[Bx("0x31")]>0&&o[Bx("0x2e")](r);for(const t of s)t[Bx("0x1b")]()}))}));for(const e of[Bx("0xa"),Bx("0x4"),Bx("0x6"),Bx("0x3d")]){const n=t[Bx("0x24")][Bx("0x1a")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t.model.document.selection[Bx("0x41")]()[Bx("0x35")]().find((t=>t.is(Bx("0x3b"),Bx("0x47"))));this[Bx("0x42")](n[Bx("0x2b")],o)||(e[Bx("0x0")]=!1,e[Bx("0x34")]())}}),{priority:Bx("0xb")})}}[Bx("0x39")](){const t=this.editor[Bx("0x24")][Bx("0x1a")](Bx("0x30")),e=this.editor.plugins[Bx("0x1a")](Bx("0x2d"));if(!t[Bx("0x49")])return!1;const n=e[Bx("0x23")](this[Bx("0x4b")][Bx("0x12")][Bx("0x25")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x42")](t,e))return!1;return!0}[Bx("0x42")](t,e){const n=this[Bx("0x4b")][Bx("0x46")][Bx("0x1a")](Bx("0x5")),o=this[Bx("0x4b")][Bx("0x12")].createRangeOn(t),s=this.editor[Bx("0x12")][Bx("0x19")](e),r=new Set,i=new Set;for(const t of n[Bx("0x8")]())if(("insertion"==t[Bx("0x4c")]||Bx("0x3a")==t.type||Bx("0x30")==t[Bx("0x3")])&&t[Bx("0x13")])for(const e of t[Bx("0x2c")]())e.containsRange(o,!0)&&r[Bx("0x1")](t[Bx("0x4c")]+":"+t[Bx("0x32")].id),e[Bx("0x11")](s,!0)&&i[Bx("0x1")](t[Bx("0x4c")]+":"+t[Bx("0x32")].id);if(r.size!=i[Bx("0x3c")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Ux=["TrackChangesEditing","commandParams","commandName","formatBlock","FORMAT_REGULAR_ROW","createPositionAfter","plugins","toViewElement","markerRange","forceValue","getRowIndexes","downcastDispatcher","value","getSelectionAffectedTableCells","getSuggestion","showSuggestionHighlights","_descriptionFactory","parent","TableEditing","consume","registerCustomCallback","*Format:* %0","accept","end","ck-suggestion-marker--active","commands","setTableRowHeader","markBlockFormat","registerDescriptionCallback","addMarker:suggestion","ck-suggestion-marker-","editor","writer","setAttribute","start","getColumnIndexes","last","table","getChild","editing","setTableColumnHeader","change","consumable","_suggestionFactory","getCellLocation","createRange","isBefore","nodeBefore","headingColumns","includes","stop","markerName","data","childCount","removeClass","name","data-suggestion","highest","locale","FORMAT_HEADER_COLUMN","TableUtils","enableCommand","createTableWalker","selection","bindElementToMarker","cell","item","format","options","getAttribute","createPositionBefore","index","afterInit","findAncestor","model","_acceptFormatSuggestionCallbackFactory","document","unbindElementFromMarkerName","first","mapper","get"];var Gx,Hx;Gx=Ux,Hx=375,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("0x15")](){const t=this[zx("0x3d")];if(!t[zx("0x24")].has(zx("0x30")))return;const e=t[zx("0x7")],n=t[zx("0x24")][zx("0x1d")](zx("0x1e")),o=t.plugins[zx("0x1d")]("TableUtils"),s=t[zx("0x24")][zx("0x1d")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[zx("0x0")]),c=n[zx("0x2c")](a);if(!c[zx("0x1")]||zx("0x46")!=c[zx("0x1")][zx("0x20")])return;if(r[zx("0xf")])return void s[zx("0x50")]();if(!i[zx("0x48")][zx("0x31")](r.markerRange,s[zx("0x4")]))return;const l=r[zx("0x26")][zx("0x40")].nodeAfter,d=r[zx("0x26")][zx("0x35")][zx("0x4d")],u=l[zx("0x2f")][zx("0x2f")],{column:g}=o[zx("0x4a")](l),{column:m}=o.getCellLocation(d);for(let s=g;s<=m;s++){const c=o[zx("0xb")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0xe")],c=i[zx("0x1c")][zx("0x25")](s);i[zx("0x3e")].addClass("ck-suggestion-marker-"+x,c),e&&i[zx("0x3e")][zx("0x3f")](zx("0x5"),a,c),i[zx("0x1c")][zx("0xd")](c,r[zx("0x0")]),t&&(n.activeMarkers[zx("0x4f")](r[zx("0x0")])?i[zx("0x3e")].addClass("ck-suggestion-marker--active",c):i[zx("0x3e")][zx("0x3")](zx("0x36"),c))}}}}n.enableCommand(zx("0x38"),((e,s)=>{const r=o.getSelectionAffectedTableCells(t[zx("0x17")][zx("0x19")].selection),i=o[zx("0x28")](r),x=r[0][zx("0x16")](zx("0x43")),a=x[zx("0x12")]("headingRows")||0,c=s&&null!==s[zx("0x27")]?s[zx("0x27")]:!t[zx("0x37")][zx("0x1d")](zx("0x38"))[zx("0x2a")],l=c?i[zx("0x42")]:i.first,d=x[zx("0x44")](l);let u;if(c){const e=x.getChild(a);if(d[zx("0x14")]<e[zx("0x14")])return;u=t[zx("0x17")][zx("0x4b")](t[zx("0x17")].createPositionBefore(e[zx("0x44")](0)),t.model[zx("0x23")](d[zx("0x44")](d[zx("0x2")]-1)))}else{const e=x[zx("0x44")](a-1);if(!e)return;u=t[zx("0x17")][zx("0x4b")](t[zx("0x17")][zx("0x13")](d[zx("0x44")](0)),t.model.createPositionAfter(e[zx("0x44")](e[zx("0x2")]-1)))}t[zx("0x17")][zx("0x47")]((()=>{n[zx("0x39")](u,{commandName:zx("0x38"),commandParams:[{forceValue:c}]},[],zx("0x38"))}))})),n[zx("0xa")]("setTableColumnHeader",((e,o)=>{const s=t[zx("0x24")][zx("0x1d")](zx("0x9")),r=s[zx("0x2b")](t.model[zx("0x19")][zx("0xc")]),i=s[zx("0x41")](r),x=r[0][zx("0x16")](zx("0x43")),a=x[zx("0x12")](zx("0x4e"))||0,c=o&&null!==o[zx("0x27")]?o[zx("0x27")]:!t[zx("0x37")][zx("0x1d")](zx("0x46"))[zx("0x2a")];let l;const d=x[zx("0x44")](0),u=c?i[zx("0x42")]:i[zx("0x1b")],g=s.createTableWalker(x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][zx("0xe")];if(c){const e=d.getChild(a);if(m[zx("0x4c")](e))return;l=t[zx("0x17")].createRange(t[zx("0x17")][zx("0x13")](e),t[zx("0x17")][zx("0x23")](m))}else{const e=d[zx("0x44")](a-1);if(!e)return;l=t.model[zx("0x4b")](t[zx("0x17")][zx("0x13")](m),t.model[zx("0x23")](e))}t.model.change((()=>{n.markBlockFormat(l,{commandName:zx("0x46"),commandParams:[{forceValue:c}]},[],zx("0x46"))}))})),t.editing[zx("0x29")].on(zx("0x3b"),r(),{priority:zx("0x6")}),t[zx("0x1")][zx("0x29")].on(zx("0x3b"),((t,e,n)=>{n[zx("0x11")][zx("0x2d")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x6")}),t[zx("0x45")][zx("0x29")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[zx("0x0")]),i=n[zx("0x2c")](r);if(!i[zx("0x1")]||zx("0x46")!=i[zx("0x1")][zx("0x20")])return;const x=o[zx("0x1c")].markerNameToElements(e[zx("0x0")]);if(x)for(const t of x)o.writer[zx("0x3")](zx("0x3c")+s,t),o[zx("0x3e")].removeClass(zx("0x36"),t),o[zx("0x3e")].removeAttribute(zx("0x5"),t),o[zx("0x1c")][zx("0x1a")](t,e[zx("0x0")])}),{priority:"highest"}),n[zx("0x2e")][zx("0x3a")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n[zx("0x20")]){const t=n[zx("0x1f")][0].forceValue;return o(Yo(e,t?"FORMAT_HEADER_ROW":zx("0x22")))}if(zx("0x46")==n.commandName){const t=n[zx("0x1f")][0][zx("0x27")];return o(Yo(e,t?zx("0x8"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:zx("0x10"),content:Yo(e,zx("0x33"),t)}}}));const i=s[zx("0x18")]();n[zx("0x49")][zx("0x32")](zx("0x21"),zx("0x38"),zx("0x34"),i),n[zx("0x49")][zx("0x32")](zx("0x21"),zx("0x46"),zx("0x34"),i)}}const Vx=["forceDefaultExecution","findAncestor","markMultiRangeDeletion","dataDowncast","author","getAllAdjacentSuggestions","set","createTableWalker","*Replace table cells*","table","get","insertion","first","containsRange","trackChanges","suggestion","batch","has","from","redo","oldRange","createRange","includes","clipboardOutput","updateMarker","stop","setAttributes","createRangeIn","some","end","afterInit","change","view","model","listenTo","isEmpty","entries","selection","commands","tablePasteChainId","schema","hasSuggestion","tableCellBackgroundColor","high","endColumn","tablePasteColumn","markMultiRangeBlockFormat","getRange","tablePasteCell","join","root","plugins","editingDowncast","tableCellBorderColor","getRowIndexes","getRows","getContainedElement","TableClipboard","length","attributes","_createdBatches","ck-suggestion-marker-insertion","conversion","requires","tableCellSuggestion","document","startsWith","ck-suggestion-marker--active","find","getChildren","markerAttributes","deletion","tableCellHorizontalAlignment","row","tableCell","type","columnInsertionRanges","tablePasteRow","getShiftedBy","showSuggestionHighlights","suggestionUnloaded","$graveyard","deletionRanges","markerName","getAttributes","_getCoordsForCells","filter","discard","isInContent","editor","getChangedMarkers","rowInsertionRanges","_isForcedDefaultExecutionBlock","suggestion-td","endRow","registerCustomCallback","column","getSuggestions","wrap","reduce","suggestionLoaded","ck-suggestion-marker","getRanges","name","move","_suggestionFactory","previous","position","_splitMarkerName","previousSibling","cell","cells","setAttribute","insertionRanges","_tablePostFixingSubtypes","tableCellBorderWidth","getSuggestion","every","accept","content","removeMarkers","add","remove","element","suggestion:formatBlock:tablePasteCell","low","push","getTableIfOnlyTableInContent","getItems","insertContent","value","TrackChangesEditing","subType","columnInsertionIndexes","Users","paragraph","removeMarker","rowInsertionIndexes","newRange","last","registerPostFixer","insert","unwrap","markers","isEqual","insertRows","createRangeOn","formatBlock","markMultiRangeInsertion","map","tablePaste","differ","insertColumns","markerToHighlight","for","getChild","fill","getChanges","getColumns","getMarkers","activeMarkers","editing"];var Kx,qx;Kx=Vx,qx=135,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x8e"),Xx("0x50"),"tableCellBorderStyle",Xx("0x63"),"tableCellVerticalAlignment",Xx("0x45"),"tableCellPadding"],Jx=Object.fromEntries($x[Xx("0xe")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x5a")](){return[wx]}[Xx("0x39")](){const t=this.editor;if(!t[Xx("0x4e")][Xx("0x2c")](Xx("0x54")))return;const n=t[Xx("0x4e")][Xx("0x25")](Xx("0x9e")),o=t[Xx("0x4e")][Xx("0x25")]("TableUtils"),s=t[Xx("0x4e")].get(wx),r=t.plugins[Xx("0x25")]("TableClipboard");s[Xx("0x8d")][Xx("0x99")]("tablePasteRow",Xx("0x48")),t[Xx("0x3c")][Xx("0x43")].register(Xx("0x5b"),{allowIn:Xx("0x65"),allowContentOf:"tableCell",isLimit:!0}),t.conversion.elementToElement({model:Xx("0x5b"),view:"suggestion-td"});let i=null;t[Xx("0x3c")].on("insertContent",((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Xx("0x1b")]||n[Xx("0x77")]||this[Xx("0x74")][Xx("0x41")][Xx("0x25")](Xx("0x29"))[Xx("0x9d")]&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s[Xx("0x9a")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Xx("0x5c")][Xx("0x40")]);if(!i.length)return!1;const x=i[0][Xx("0x1c")](Xx("0x24")),a=o[Xx("0x51")](i),c=o.getColumnIndexes(i),l={startRow:a[Xx("0x27")],endRow:a[Xx("0x4")],startColumn:c[Xx("0x27")],endColumn:c.last};return 1==i[Xx("0x55")]&&(l[Xx("0x79")]+=o[Xx("0x52")](r)-1,l[Xx("0x47")]+=o[Xx("0x17")](r)-1),Yx(x,l,o)}(a,c,t.model,o,r)&&(s[Xx("0x34")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x3c")][Xx("0x3a")]((()=>{t[Xx("0x3c")][Xx("0x9c")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Xx("0x55")]&&n[Xx("0xd")](s,Xx("0x68"),{tablePasteChainId:o}),r.length&&n[Xx("0xd")](r,Xx("0x48"),{tablePasteChainId:o}),a[Xx("0x55")]&&n.markMultiRangeInsertion(a,Xx("0xf"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x55")]&&n[Xx("0x1d")](c,Xx("0xf"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x49")](l[Xx("0xe")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x4b"),{tablePasteChainId:o});if(d){const e=d[Xx("0x18")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x3c")][Xx("0xb")](o),i=e[Xx("0x5f")]((t=>t.getRange()[Xx("0x9")](r)));i&&n[Xx("0x99")]([i.name,s])}n[Xx("0x55")]&&d[Xx("0x8b")](Xx("0x61"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xx("0x46")]+10}),t[Xx("0x4e")].get(Xx("0x54")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[Xx("0x89")],x=o,a=Zx(r),c=Zx(x);t.return=r;let l=null,d=null;if(c||a)if(a&&!c){s[Xx("0x95")](r.getChild(0));for(const t of Array[Xx("0x2d")](x[Xx("0x60")]()))s[Xx("0x6")](t,r,Xx("0x38"));const t=i.rowInsertionIndexes.includes(n[Xx("0x64")]),e=i[Xx("0xa0")][Xx("0x31")](n[Xx("0x7b")]);t||e||(l=s[Xx("0x36")](r))}else c&&!a&&(d=s[Xx("0x36")](r));else{const t=s.createElement("tableCellSuggestion"),e=s.createElement(Xx("0x5b"));s[Xx("0x7d")](s[Xx("0x36")](r),e),s[Xx("0x6")](t,r,0);for(const e of Array[Xx("0x2d")](x[Xx("0x60")]()))s[Xx("0x6")](e,t,Xx("0x38"));l=s.createRangeOn(t),d=s[Xx("0xb")](e)}const u=Array[Xx("0x2d")](x[Xx("0x6f")]())[Xx("0x71")]((([t])=>$x[Xx("0x31")](t)));i[Xx("0x8a")][Xx("0x99")]({element:r,attributes:u.length?Object.fromEntries(u):null}),l&&i[Xx("0x8c")].push(l),d&&i[Xx("0x6d")][Xx("0x99")](d)}),{priority:Xx("0x46")}),o.on(Xx("0x11"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.columns||1;i.columnInsertionIndexes=new Array(a)[Xx("0x15")](x)[Xx("0xe")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x22")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x67")].push(t[Xx("0x3c")][Xx("0xb")](e))}),{priority:Xx("0x98")}),o.on(Xx("0xa"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x2")]=new Array(a)[Xx("0x15")](x)[Xx("0xe")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))i[Xx("0x76")][Xx("0x99")](t[Xx("0x3c")].createRangeOn(e))}),{priority:Xx("0x98")}),n._descriptionFactory.registerDescriptionCallback((e=>{if(e[Xx("0x9f")]&&e.subType.startsWith(Xx("0xf")))return e[Xx("0x85")]?{}:{type:Xx("0x26"),content:Yo(t.locale,Xx("0x23"))}}));const x=()=>{};for(const t of[Xx("0xf"),Xx("0x48"),"tablePasteRow",Xx("0x4b")])n._suggestionFactory.registerCustomCallback(Xx("0x26"),t,"join",x),n[Xx("0x84")].registerCustomCallback("deletion",t,Xx("0x4c"),x);n._suggestionFactory[Xx("0x7a")](Xx("0xc"),Xx("0x4b"),Xx("0x72"),x),n[Xx("0x84")][Xx("0x7a")](Xx("0xc"),Xx("0x4b"),Xx("0x91"),((e,n,o)=>{const s=e.map((t=>t[Xx("0x53")]())).filter((t=>t)),r=new Map(s[Xx("0xe")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i.cells)e&&r[Xx("0x21")](t,e);else if(o&&o[Xx("0x61")])for(const[e,n]of Object[Xx("0x3f")](o[Xx("0x61")])){const o=t[Xx("0x3c")][Xx("0x8")][Xx("0x25")](e),s=o?o[Xx("0x4a")]()[Xx("0x53")]():null;s&&r[Xx("0x21")](s,n)}t[Xx("0x3c")][Xx("0x3a")]((t=>{for(const[e,n]of r)t[Xx("0x35")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x84")][Xx("0x7a")](e,"tablePaste",o,((s,r,i)=>{t.model[Xx("0x3a")]((t=>{const x=[];for(const t of s){const e=t.start.nodeAfter;e.is(Xx("0x96"),Xx("0x5b"))&&x[Xx("0x99")](e)}n._suggestionFactory.getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Xx("0x6c")!=e[Xx("0x4d")].rootName&&t[Xx("0x7")](e)}))}))};a(Xx("0x26"),Xx("0x91")),a(Xx("0x26"),"discard"),a(Xx("0x62"),Xx("0x91")),a(Xx("0x62"),Xx("0x72")),n[Xx("0x84")][Xx("0x7a")]("insertion",Xx("0x68"),"discard",(t=>{const e=t[Xx("0xe")]((t=>t[Xx("0x53")]())),n=e[0][Xx("0x1c")]("table"),{minRow:r,maxRow:i}=s[Xx("0x70")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[Xx("0x84")][Xx("0x7a")]("insertion",Xx("0x48"),Xx("0x72"),(t=>{const e=t[Xx("0xe")]((t=>t.getContainedElement())),n=e[0][Xx("0x1c")](Xx("0x24")),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x9f")]||!e[Xx("0x9f")].startsWith("tablePaste"))return;const o=e.attributes[Xx("0x42")],s=n[Xx("0x7c")]()[Xx("0x71")]((t=>t.isInContent&&t.attributes&&t[Xx("0x56")][Xx("0x42")]==o));s[Xx("0x55")]&&e[Xx("0x20")]()[Xx("0x55")]!=s[Xx("0x55")]&&s[Xx("0x7e")](((t,e)=>(t.next=e,e[Xx("0x85")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x87")](t.markerName),s=[Xx("0x80"),Xx("0x58")],r=n[Xx("0x19")][Xx("0x31")](t[Xx("0x6e")]);return r&&s[Xx("0x99")](Xx("0x5e")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x7f"),c,{priority:Xx("0x46")}),n.on(Xx("0x6b"),c,{priority:Xx("0x46")}),t[Xx("0x3c")][Xx("0x5c")][Xx("0x5")]((()=>{let e=!1;const o=Array[Xx("0x2d")](t[Xx("0x3c")][Xx("0x5c")][Xx("0x10")][Xx("0x75")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x87")](s);if(Xx("0x2a")!=o||Xx("0x62")!=i||r[Xx("0x2f")])continue;if(!n[Xx("0x44")](x))continue;const a=n[Xx("0x8f")](x).getRanges(),c=t[Xx("0x4e")][Xx("0x25")](Xx("0xa1")).me;for(const t of n.getSuggestions())if(t[Xx("0x73")]&&t[Xx("0x1f")]==c&&Xx("0xc")==t[Xx("0x66")]&&"tablePasteCell"==t[Xx("0x9f")]&&t[Xx("0x81")]()[Xx("0x90")]((t=>a[Xx("0x37")]((e=>e[Xx("0x28")](t,!0))))))for(const n of t[Xx("0x20")]())n[Xx("0x73")]&&(n[Xx("0x72")](),e=!0)}return e})),t[Xx("0x3c")].document[Xx("0x5")]((e=>{const o=t[Xx("0x41")][Xx("0x25")](Xx("0x2e"));if(!o||!o[Xx("0x57")][Xx("0x2c")](e[Xx("0x2b")]))return!1;let s=!1;const r=t[Xx("0x4e")][Xx("0x25")](Xx("0xa1")).me,i=t[Xx("0x3c")][Xx("0x5c")][Xx("0x10")][Xx("0x16")](),x=Array[Xx("0x2d")](t[Xx("0x3c")][Xx("0x5c")][Xx("0x10")].getChangedMarkers())[Xx("0x71")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x87")](t);return"suggestion"==o&&"tablePaste"==s&&i==r.id&&!e[Xx("0x2f")]}));for(const t of i){if(Xx("0x6")!=t[Xx("0x66")]||Xx("0x5b")!=t[Xx("0x82")]||1!=t[Xx("0x55")])continue;const n=e[Xx("0x30")](t.position,t[Xx("0x86")][Xx("0x69")](1));if(!x[Xx("0x5f")]((({data:t})=>t[Xx("0x3")][Xx("0x9")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[Xx("0x3")])){e[Xx("0x33")](t,{range:n}),s=!0;break}}return s})),t[Xx("0x3c")][Xx("0x5c")][Xx("0x5")]((e=>{let o=!1;const s=t[Xx("0x4e")].get("Users").me,r=n.getSuggestions()[Xx("0x71")]((t=>t[Xx("0x73")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0xf")==t.subType)for(const e of t.getMarkers()){const n=e[Xx("0x4a")]()[Xx("0x53")]();if(n)if(n.is("element",Xx("0x5b"))&&Zx(n)){t[Xx("0x1")](e[Xx("0x82")]),i.add(n),o=!0;const s=n.nextSibling,r=n[Xx("0x88")],a=s&&s.is(Xx("0x96"),Xx("0x5b")),c=r&&r.is("element",Xx("0x5b"));a&&!i.has(s)&&x[Xx("0x94")](s),c&&!i[Xx("0x2c")](r)&&x[Xx("0x94")](r)}else n.is("element",Xx("0x0"))&&n[Xx("0x3e")]&&(t.removeMarker(e.name),o=!0)}else if(Xx("0x4b")==t[Xx("0x9f")]){if(!t[Xx("0x56")]||!t[Xx("0x56")][Xx("0x42")])continue;const e=t[Xx("0x56")].markerAttributes;if(e&&Object.keys(e)[Xx("0x55")])continue;const n=t[Xx("0x56")][Xx("0x42")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x9f")]&&e[Xx("0x9f")][Xx("0x5d")]("tablePaste")){if(!e.attributes[Xx("0x42")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x56")][Xx("0x42")]==n){s=!1;break}}i&&s&&(t[Xx("0x93")](),o=!0)}for(const t of i)e[Xx("0x95")](t);for(const t of x)e[Xx("0x7")](t);return o})),t[Xx("0x59")][Xx("0x13")](Xx("0x4f"))[Xx("0x12")]({model:Xx("0x97"),view:(t,e)=>l(t),converterPriority:"high"}),t[Xx("0x59")][Xx("0x13")](Xx("0x1e"))[Xx("0x12")]({model:Xx("0x97"),view:(t,e)=>e.options[Xx("0x6a")]?l(t,!1):null,converterPriority:Xx("0x46")});const d=t[Xx("0x1a")][Xx("0x3b")];this[Xx("0x3d")](d[Xx("0x5c")],Xx("0x32"),((t,e)=>{const n=[];for(const t of d[Xx("0x36")](e[Xx("0x92")])[Xx("0x9b")]())t.is(Xx("0x96"),Xx("0x78"))&&n[Xx("0x99")](t);d[Xx("0x3a")]((t=>{for(const e of n)t[Xx("0x83")](t.createRangeIn(e),t.createPositionBefore(e)),t[Xx("0x95")](e)}))}))}}function Zx(t){if(t[Xx("0x3e")])return!0;const e=t[Xx("0x14")](0);return e.is("element",Xx("0x0"))&&e[Xx("0x3e")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x22")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["format","subType","accept","editor","discard","selection","afterInit","registerCustomCallback","formatGroupId","handleResizeTableWidthCommand","plugins","columnWidths","change","registerDescriptionCallback","formatBlock","getTableColumnsWidths","getContainedElement","enableCommand","getSelectedElement","model","*Format:* resize table","resizeTable","get","resizeColumnWidths","TrackChangesEditing","handleSuggestionDescription","bind","has","tableWidth","data","commandParams","getColumnGroupElement","document","resizeTableWidth","TableColumnResizeEditing","_suggestionFactory"];var ea,na;ea=ta,na=208,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0xe")](){if(!this[oa("0xb")][oa("0x12")][oa("0x23")](oa("0x6")))return;const t=this[oa("0xb")][oa("0x12")][oa("0x1e")]("TrackChangesEditing");t[oa("0x19")](oa("0x5"),this[oa("0x11")][oa("0x22")](this)),t[oa("0x19")](oa("0x1f"),this[oa("0x11")][oa("0x22")](this)),t[oa("0x7")][oa("0xf")](oa("0x16"),oa("0x1d"),oa("0xa"),t[oa("0x7")].getSuggestionCallback("formatBlock",null,oa("0xc"))),t[oa("0x7")][oa("0xf")]("formatBlock",oa("0x1d"),oa("0xc"),t[oa("0x7")].getSuggestionCallback(oa("0x16"),null,"accept")),t._descriptionFactory[oa("0x15")](this[oa("0x21")][oa("0x22")](this))}[oa("0x11")](t,e){const n=this[oa("0xb")][oa("0x12")][oa("0x1e")](oa("0x20")),o=this[oa("0xb")].plugins.get(oa("0x6")),s=e.table||this[oa("0xb")][oa("0x1b")][oa("0x4")][oa("0xd")][oa("0x1a")]();this.editor[oa("0x1b")][oa("0x14")]((()=>{const r=o[oa("0x3")](s);let i=r?o[oa("0x17")](r):null,x=s.getAttribute(oa("0x0"))||null;const a=e[oa("0x0")]||x,c=e[oa("0x13")]||i,l=this[oa("0xb")][oa("0x12")][oa("0x1e")]("Users").me;for(const t of n.getSuggestions()){const e=t[oa("0x18")]();if(oa("0x1d")===t[oa("0x9")]&&e===s){t.author!==l&&t[oa("0xc")]();const e=t[oa("0x1")][oa("0x2")];x=e[0][oa("0x0")],i=e[0][oa("0x13")];break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:oa("0x5"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x1d")},[],"resizeTable")}))}[oa("0x21")](t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0x10")]){const t=oa("0x1c");return{type:oa("0x8"),content:Yo(this.editor.locale,t)}}}}const ra=["Template","TrackChangesEditing","editor","plugins","afterInit","has","get","insertTemplate"];var ia,xa;ia=ra,xa=494,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x6")](){const t=this[aa("0x4")];t[aa("0x5")][aa("0x7")](aa("0x2"))&&t[aa("0x5")][aa("0x0")](aa("0x3")).enableCommand(aa("0x1"))}}const la=["tableOfContents","editor","commands","ELEMENT_TABLE_OF_CONTENTS","plugins","get","TrackChangesEditing","insertTableOfContents"];var da,ua;da=la,ua=277,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{afterInit(){const t=this[ga("0x4")];if(!t[ga("0x5")][ga("0x0")](ga("0x2")))return;t[ga("0x7")][ga("0x0")](ga("0x1")).enableCommand(ga("0x2"));const e=t[ga("0x7")][ga("0x0")](ga("0x1")),n=t.locale;e._descriptionFactory.registerElementLabel(ga("0x3"),(t=>Yo(n,ga("0x6"),t)))}}const fa=["isEqual","getNearestSelectionRange","editor","plugins","removeMarker","differ","start","get","updateMarker","has","nodeBefore","newRange","registerElementLabel","end","isTouching","model","schema","Title","TrackChangesEditing","registerPostFixer","_splitMarkerName","document","suggestion","createRange","locale","ELEMENT_TITLE","element"];var ha,pa;ha=fa,pa=463,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this[ba("0x19")];if(!t[ba("0x1a")][ba("0x5")](ba("0xd")))return;const e=t[ba("0x1a")][ba("0x3")](ba("0xe"));e._descriptionFactory[ba("0x8")]("title-content",(()=>Yo(t[ba("0x14")],ba("0x15")))),t[ba("0xb")][ba("0x11")][ba("0xf")]((n=>{let o=!1;const s=Array.from(t[ba("0xb")].document[ba("0x1")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x10")](r);if(ba("0x12")!==s||!i.newRange)continue;const x=i[ba("0x7")],a=x[ba("0x9")][ba("0x6")];if(!a||!a.is(ba("0x16"),"title-content"))continue;if(!x[ba("0x2")][ba("0xa")](x[ba("0x9")]))continue;const c=t[ba("0xb")][ba("0xc")][ba("0x18")](x[ba("0x9")],"forward");if(c&&c.isCollapsed){const t=n[ba("0x13")](x.start,c.start);t[ba("0x17")](x)||(n[ba("0x4")](r,{range:t}),o=!0)}o||(n[ba("0x0")](r),o=!0)}return o}))}}const _a=["enableCommand","get","plugins","editor","has","UndoEditing","redo","TrackChangesEditing"];var Ta,Ca;Ta=_a,Ca=222,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[ya("0x5")],e=t[ya("0x4")][ya("0x3")](ya("0x1"));t.plugins[ya("0x6")](ya("0x7"))&&(e[ya("0x2")]("undo"),e.enableCommand(ya("0x0")))}}const Aa=["TableCaptionEditing","get","toggleTableCaption","TrackChangesEditing","enableCommand","afterInit","requires","plugins","has"];var va,Ra;va=Aa,Ra=226,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{static get[Ia("0x5")](){return[wx]}[Ia("0x4")](){const t=this.editor;t[Ia("0x6")][Ia("0x7")](Ia("0x8"))&&t.plugins[Ia("0x0")](Ia("0x2"))[Ia("0x3")](Ia("0x1"))}}const La=["*Format:* set start index to %0","afterInit","filter","getAttribute","commandName","TrackChangesEditing","listType","change","expandListBlocksToCompleteList","commandParams","_getSuggestionBlocksForListStyle","plugins","replace","*Format:* set order to regular","from","_descriptionFactory","has","listStart","getListTypeFromListStyleType","get","DocumentListUtils","config","toUpperCase","handleListStartCommand","listReversed","_LIST_","handleDescriptions","numbered","ELEMENT_","_getSuggestionBlocks","document","*Change to:* %0","model","enableCommand","editor","listStyle","startIndex","getSelectedBlocks","DocumentListPropertiesUtils","type","push","selection","reversed","bind","markMultiRangeBlockFormat","length","format","handleListStyleCommand","styles","handleListReversedCommand","locale","list.properties","isListItemBlock"];var Na,Ma;Na=La,Ma=218,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x30")](){if(!this.editor.plugins[wa("0xa")]("DocumentListPropertiesEditing"))return;const t=this.editor[wa("0xf")][wa("0xd")](wa("0x2d")),e=this[wa("0x1c")].plugins.get(wa("0x34"));t[wa("0x2a")]&&e[wa("0x1b")](wa("0x1d"),this.handleListStyleCommand.bind(this)),t[wa("0x24")]&&e[wa("0x1b")](wa("0x12"),this[wa("0x2b")][wa("0x25")](this)),t[wa("0x1e")]&&e[wa("0x1b")](wa("0xb"),this.handleListStartCommand.bind(this)),e[wa("0x9")].registerDescriptionCallback(this[wa("0x14")][wa("0x25")](this))}[wa("0x29")](t,e={}){const n=this[wa("0x1c")][wa("0x5")].get(wa("0x34")),o=this[wa("0x4")]();this[wa("0x1c")][wa("0x1a")].change((()=>{n[wa("0x26")](o,{commandName:wa("0x1d"),commandParams:[{type:e[wa("0x21")]}],formatGroupId:"listStyle"})}))}handleListReversedCommand(t,e={}){const n=this[wa("0x1c")][wa("0x5")].get("TrackChangesEditing"),o=this[wa("0x1c")][wa("0x5")][wa("0xd")](wa("0xe")),s=this[wa("0x17")]((t=>o.isListItemBlock(t)&&wa("0x15")===t[wa("0x32")](wa("0x0"))));null!==s&&this[wa("0x1c")].model[wa("0x1")]((()=>{n[wa("0x26")](s,{commandName:wa("0x12"),commandParams:[{reversed:e[wa("0x24")]}],formatGroupId:"listReversed"})}))}[wa("0x11")](t,e={}){const n=this[wa("0x1c")][wa("0x5")].get(wa("0x34")),o=this.editor[wa("0x5")][wa("0xd")](wa("0xe")),s=this[wa("0x17")]((t=>o[wa("0x2e")](t)&&"numbered"===t[wa("0x32")](wa("0x0"))));null!==s&&this[wa("0x1c")][wa("0x1a")][wa("0x1")]((()=>{n[wa("0x26")](s,{commandName:wa("0xb"),commandParams:[{startIndex:e[wa("0x1e")]}],formatGroupId:wa("0xb")})}))}[wa("0x14")](t){const e=this.editor[wa("0x2c")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x33")]){case wa("0x1d"):o=wa("0x19"),s={type:wa("0x28"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[wa("0x3")][0].type)))};break;case wa("0x12"):o=n[wa("0x3")][0][wa("0x24")]?"*Format:* set order to reversed":wa("0x7"),s={type:wa("0x28"),content:Yo(e,o)};break;case wa("0xb"):o=wa("0x2f"),s={type:wa("0x28"),content:Yo(e,o,n[wa("0x3")][0][wa("0x1e")])}}return s}[wa("0x4")](){const t=this[wa("0x1c")][wa("0x5")][wa("0xd")](wa("0xe"));let e=Array[wa("0x8")](this[wa("0x1c")][wa("0x1a")].document.selection[wa("0x1f")]());return e[wa("0x22")](...t[wa("0x2")](e)),e=[...new Set(e)],e}[wa("0x17")](t){const e=this.editor[wa("0x5")][wa("0xd")](wa("0xe"));let n=Array.from(this[wa("0x1c")].model[wa("0x18")][wa("0x23")][wa("0x1f")]())[wa("0x31")](t);if(!n[wa("0x27")])return null;n=e[wa("0x2")](n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[wa("0x22")](t);return o}_getTranslationKeyForListStyle(t){return wa("0x16")+this[wa("0x1c")][wa("0x5")][wa("0xd")](wa("0x20"))[wa("0xc")](t)[wa("0x10")]()+wa("0x13")+t[wa("0x10")]()[wa("0x6")](/-/g,"_")}}const Fa=["pluginName","TrackChangesTableProperties","formatBlock","table","tableCellPadding","getSuggestionCallback","model","start","tableWidth","tableHeight","has","change","setAttribute","accept","TableUtils","tableCellVerticalAlignment","discard","commandParams","TrackChangesEditing","*Format:* change table properties","tableCellProperties","handleDiscardAction","removeAttribute","nodeAfter","getContainedElement","_handlePropertyChange","getAttribute","format","document","tableCellBorderColor","registerCustomCallback","tableCellHeight","tableBorderStyle","tableCellBackgroundColor","tableProperties","getFirstPosition","enqueueChange","_descriptionFactory","_suggestionFactory","tableCellBorderStyle","get","handleSuggestionDescription","tableCellBorderWidth","TablePropertiesEditing","findAncestor","tableCellHorizontalAlignment","subType","*Format:* change table cell properties","locale","editor","tableBorderColor","plugins","selection","tableAlignment","afterInit","registerDescriptionCallback"];var Pa,Da;Pa=Fa,Da=237,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("0x15")]=[Ba("0x25"),Ba("0x13"),"tableBorderWidth",Ba("0x28"),Ba("0x33"),Ba("0x34"),"tableBackgroundColor"],this[Ba("0x7")]=[Ba("0x10"),Ba("0x1a"),Ba("0x1d"),Ba("0x2f"),"tableCellWidth",Ba("0x12"),Ba("0x14"),Ba("0x20"),Ba("0x2")]}static get[Ba("0x2b")](){return Ba("0x2c")}[Ba("0x29")](){const t=this[Ba("0x24")].plugins[Ba("0x1b")](Ba("0x5"));if(this.editor[Ba("0x26")][Ba("0x35")](Ba("0x1e"))){for(const e of this.tableProperties)t.enableCommand(e,((t,n)=>{const o=this[Ba("0x24")][Ba("0x31")].document.selection[Ba("0x16")]()[Ba("0x1f")](Ba("0x2e"));this[Ba("0xc")](e,[o],this[Ba("0x15")],"tableProperties",t,n)}));t[Ba("0x19")][Ba("0x11")](Ba("0x2d"),"tableProperties",Ba("0x0"),t[Ba("0x19")][Ba("0x30")](Ba("0x2d"),null,"discard")),t[Ba("0x19")][Ba("0x11")](Ba("0x2d"),Ba("0x15"),"discard",((t,e)=>this[Ba("0x8")](this[Ba("0x15")],t,e))),t._suggestionFactory[Ba("0x11")](Ba("0x2d"),"tableProperties","join",(()=>!1))}if(this[Ba("0x24")].plugins[Ba("0x35")]("TableCellPropertiesEditing")){for(const e of this[Ba("0x7")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x24")][Ba("0x26")][Ba("0x1b")](Ba("0x1")).getSelectionAffectedTableCells(this[Ba("0x24")][Ba("0x31")][Ba("0xf")][Ba("0x27")]);this[Ba("0xc")](e,o,this[Ba("0x7")],Ba("0x7"),t,n)}));t._suggestionFactory[Ba("0x11")](Ba("0x2d"),"tableCellProperties",Ba("0x0"),t[Ba("0x19")][Ba("0x30")]("formatBlock",null,Ba("0x3"))),t[Ba("0x19")][Ba("0x11")](Ba("0x2d"),Ba("0x7"),Ba("0x3"),((t,e)=>this[Ba("0x8")](this[Ba("0x7")],t,e))),t[Ba("0x19")][Ba("0x11")](Ba("0x2d"),Ba("0x7"),"join",(()=>!1))}t[Ba("0x18")][Ba("0x2a")]((t=>this[Ba("0x1c")](t)))}[Ba("0xc")](t,e,n,o,s,r){const i=this[Ba("0x24")][Ba("0x26")][Ba("0x1b")](Ba("0x5"));this.editor[Ba("0x31")][Ba("0x17")](r.batch,(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0xd")](o);void 0!==n&&(e[o]=n)}s(r),i.markBlockFormat(t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][Ba("0x32")][Ba("0xa")],s=n[Ba("0x4")][0];this.editor[Ba("0x31")][Ba("0x36")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x37")](n,s[n],o):e[Ba("0x9")](n,o)}))}[Ba("0x1c")](t){if(t.data)switch(t[Ba("0x21")]){case"tableProperties":return{type:Ba("0xe"),content:Yo(this[Ba("0x24")][Ba("0x23")],Ba("0x6"))};case Ba("0x7"):return{type:Ba("0xe"),content:Yo(this[Ba("0x24")][Ba("0x23")],Ba("0x22"))}}}_getSuggestion(t,e){const n=this[Ba("0x24")].plugins[Ba("0x1b")]("TrackChangesEditing");for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[Ba("0xb")]();if(o[Ba("0x21")]===e&&n===t)return o}return null}}const Ua=["isInsideObject","isSelectable","createElement","range","_getAuthorFromId","deletion:discard","_handleNewSuggestionMarker","track-changes-adapter-already-set","_findSuggestions","enqueueChange","discard","getRanges","change","isRemovable","batch","before","_createSuggestion","getSuggestion","getFirstMarker","dataToMarker","previous","options","oldRange","add","map","getItems","trackChangesCommand","isNextTo","always","addHighlight","model","getShiftedBy","newRange","includes","targetPosition","some","registerCustomCallback","clear","trackChanges.mergeNestedSuggestions","setSelection","after","insertion:accept","containsRangeInObject","end","formatInline:discard","_joinSuggestions","low","createPositionAfter","setAttribute","removed","type","isLocal","ck-suggestion-marker-","commands","change:_saved","removeAttribute","containsItem","track-changes-suggestion-data-mismatch","isCollapsed","elementEnd","PENDING_ACTION_SUGGESTION","parent","authoredAt","consume","suggestionChanged","formatBlock:accept","insertion:discard","hasComments","suggestionLoaded","default","push","remove","getDifference","isBefore","_isForcedDefaultExecutionBlock","rejected","external:","substr","getChanges","markerToData","next","locale","updateSuggestion","formatBlock:join","join","showSuggestionHighlights","discardSelectedSuggestions","value","_mergeNestedSuggestions","_suggestions","high","rootName","acceptSuggestion","createdAt","addUser","getNearestSelectionRange","detach","discardAllSuggestions","isInContent","_trackFormatChanges","fetchCommentThread","splitPosition","upcast","_removeSuggestion","elementToElement","track-changes-user-not-found","getIntersection","size","removeMarkers","markInlineFormat","fromRange","forward","formatInline:accept","item","multipleBlocks","isAtStart","getMultiRangeId","hasSuggestion","CommentsRepository","resolve","createPositionAt","markMultiRangeBlockFormat","addMarker:suggestion:formatBlock","subType","_saved","isObject","applyOperation","markInsertion","mapper","never","getMarkers","schema","trackChanges.trackFormatChanges","howMany","isAfter","data","accept","reconvertMarker","dataDowncast","unbind","$textProxy","toViewElement","getUser","getRange","length","position","_refreshSuggestionsChain","dataReady","formatBlock","hasCommentThread","getChangedMarkers","isExternal","isDocumentOperation","formatBlock:","config","_getSuggestionData","for","markerReady","multi","_rangeIsInLocalUserInsertion","createRange","enableReadOnlyMode","addMarker","ck-suggestion-marker","clone","_customCallbacks","getAllAdjacentSuggestions","formatBlock:discard","createPositionBefore","formatBlock:chain","_commentsRepository","marker-count","values","deleteContent","createSelection","_updateSuggestionData","normal","containsRange","insert","sort","toJSON","markerName","containsPosition","_joinWithAdjacentSuggestions","every","creator","acceptSelectedSuggestions","@external","nodeBefore","getSuggestionCallback","then","_editor","conversion","author","editingDowncast","setTo","change:activeMarkers","discardSuggestion","editor","skipNestingCheck","collaboration.channelId","elementStart","adapter","buildSuggestion","filter","root","differ","markMultiRangeDeletion","addCommentThread","addComment","suggestion:","split","addRange","forceDefaultExecution","isMultiRange","removeComment","_adapter","commandName","getFirstRange","addMarkerName","formatInline:","stop","isAtEnd","isLimit","_splitMarkerName","_setSuggestionRange","element","addMarker:suggestion","updateMarker","deletion:","isEqual","name","commentThread","widget","createRangeIn","getSuggestions","writer","getWalker","PendingActions","start","_defaultCallbacks","formatInline","getCustomProperty","_addThreadToSuggestion","formatInline:chain","deletion:chain","_cutOutSuggestionMarker","TrackChangesEditing","deletion:accept","attributes","has","isUndo","ck-suggestion-marker--active","_checkSuggestionCorrectness","addClass","isIntersectingWithRange","nodeAfter","_breakSuggestionMarker","init","addSuggestion","_model","markDeletion","isTouching","getAncestors","originalSuggestionId","update:suggestion","catch","get","_suggestionState","addSuggestionData","_addSuggestionMarker","notReady","from","removeMarker","moveTargetPosition","getAttribute","_getExternalAuthor","authorName","markerToHighlight","error-saving-suggestion-data-suggestion-discarded","track-changes-adapter-missing-getsuggestion","stopListening","$marker","_enabledCommands","deletion","suggestion","ck-suggestion-marker-formatBlock","suggestion-type","highest","markers","insertion:","set","ready","bindElementToMarker","selection","splice","insertion","_suggestionFactory","removeClass","define","listenTo","plugins","insertContent","isOwn","Users","backward","activeMarkers","getLastMatchingPosition","fire","_setSuggestionData","formatGroupId","execute","delete","rethrowUnexpectedError","trackChanges","enableCommand","insertion:join","group","document","removeMarker:suggestion:formatBlock","change:data","acceptAllSuggestions","_onDiscard","data-suggestion","$graveyard","track-changes-command-not-found"];var Ga,Ha;Ga=Ua,Ha=120,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get requires(){return[za("0x144"),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,Ix,wx,jx,Wx,Sa,Qx,sa,ma,ja,ca,Ea,ka]}static get pluginName(){return za("0x7f")}constructor(t){function e(t){return t[za("0xe6")]((t=>String.fromCharCode(t)))[za("0x122")]("")}super(t),this[za("0xab")](za("0xba"),[]),this.on(za("0x4c"),((e,n,o,s)=>{this._model[za("0xda")]((()=>{for(const e of[...s,...o])this._model.markers.has(e)&&t.editing[za("0x11")](e)}))})),this._descriptionFactory=new ss(this[za("0x4e")][za("0xec")][za("0xb")],this.editor[za("0x11f")]),this[za("0x60")]=null,this._suggestionFactory=new Va(this[za("0x4e")]),this[za("0x127")]=new Map,this[za("0x32")]=t[za("0xb5")][za("0x93")](za("0x144")),this[za("0xa3")]=new Set,this._model=this[za("0x4e")].model,this[za("0x94")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t.config[za("0xb3")](za("0xc"),za("0x113")),this[za("0x131")]=t.config[za("0x93")]("trackChanges.trackFormatChanges"),t[za("0x22")][za("0xb3")]("trackChanges.mergeNestedSuggestions",!0),this[za("0x126")]=t[za("0x22")].get(za("0xf4")),this[za("0xe8")]=new u(t,this[za("0xa3")]),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,49,48])}[za("0x8a")](){const t=this[za("0x4e")];t[za("0x48")].for(za("0x4a"))[za("0x9e")]({model:za("0xa5"),view:t=>{const{id:e,type:n}=this[za("0x68")](t[za("0x3d")]),o=["ck-suggestion-marker",za("0x102")+n];let s=3e3;return this[za("0xba")][za("0xef")](t.markerName)&&(o[za("0x114")]("ck-suggestion-marker--active"),s=3010),za("0xa4")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion.for(za("0x12")).add((e=>{e.on(za("0x6b"),((e,n,o)=>{if(!o[za("0xe3")][za("0x123")])return;const s=n.item;if(!s)return;const r=o[za("0x8")][za("0x15")](s);t[za("0xec")][za("0xb")][za("0x5")](s)&&r&&!r[za("0x7a")](za("0x71"))&&r.is("containerElement")&&(0,x.toWidget)(r,o[za("0x74")])}),{priority:za("0x128")})})),t.conversion[za("0x24")](za("0x12"))[za("0x9e")]({model:"suggestion",view:(t,e)=>{if(!e[za("0xe3")][za("0x123")])return null;const{type:n}=this[za("0x68")](t[za("0x3d")]);return{classes:[za("0x2b"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x13f")])return;if(o[za("0x13f")].is(za("0xae")))return void s.consumable[za("0x10d")](o[za("0x13f")],n[za("0x6f")]);const r=s[za("0x8")][za("0x15")](o[za("0x13f")]);if(!o.item.is(za("0x6a"))||!t[za("0xec")].schema.isBlock(o[za("0x13f")])||r[za("0x7a")](za("0xeb")))return;const{id:i}=this[za("0x68")](o[za("0x3d")]);s[za("0x74")][za("0x86")]([za("0x2b"),za("0xa6")],r),s[za("0x74")][za("0xfe")](za("0xcb"),i,r),s.mapper[za("0xad")](r,o.markerName),e&&(this[za("0xba")][za("0xef")](o[za("0x3d")])?s[za("0x74")][za("0x86")](za("0x84"),r):s[za("0x74")].removeClass("ck-suggestion-marker--active",r));for(const e of t.model[za("0x72")](o[za("0x13f")])[za("0xe7")]())s.consumable[za("0x10d")](e,n.name);s.consumable[za("0x10d")](o[za("0x13f")],n[za("0x6f")])};t[za("0x48")][za("0x24")]("dataDowncast").add((t=>{t.on(za("0x2"),((t,e,o)=>{o[za("0xe3")][za("0x123")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0xa8")})})),t[za("0x48")][za("0x24")](za("0x12"))[za("0x11d")]({model:za("0xa5"),view:(t,e)=>e[za("0xe3")][za("0x123")]?null:{group:za("0xa5"),name:t[za("0x11b")](11)}}),t[za("0x48")][za("0x24")]("upcast")[za("0x136")]({view:{name:za("0xa5"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x5a")+t.getAttribute(za("0xa7"))+":"+t[za("0x9b")]("id");return t[za("0x9b")]("marker-count")&&(n+=":"+t.getAttribute(za("0x33"))),e[za("0xd0")](za("0xa2"),{"data-name":n})}}),t[za("0x48")][za("0x24")](za("0x134"))[za("0xe1")]({view:za("0xa5")}),t[za("0x48")][za("0x24")](za("0x4a"))[za("0xe5")]((t=>{t.on(za("0x2"),n(),{priority:za("0x128")})})),t[za("0x48")].for(za("0x4a"))[za("0xe5")]((t=>{t.on(za("0xc7"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[za("0x3d")]);if(o)for(const t of o)t[za("0x7a")](za("0xeb"))||(n[za("0x74")][za("0xb2")]([za("0x2b"),za("0xa6"),za("0x84")],t),n[za("0x74")][za("0x105")](za("0xcb"),t),n.mapper.unbindElementFromMarkerName(t,e.markerName))}),{priority:"high"})})),t[za("0xec")][za("0xc6")].registerPostFixer((e=>{let n=!1;const o=Array[za("0x98")](t[za("0xec")][za("0xc6")][za("0x56")][za("0x1e")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0xa5")!==o)continue;const d=this[za("0x127")][za("0x93")](l);if(null!=a.newRange)if(za("0x79")==c&&(n=n||Xa(a[za("0xee")],x,e,t[za("0xec")][za("0xb")])),a[za("0xee")][za("0x108")]||za("0xcc")==a[za("0xee")].root[za("0x129")]||"formatBlock"==c&&!Ja(a.newRange)||za("0xa4")==c&&(qa(i=a[za("0xee")])||(r=i)[za("0x77")][za("0x10b")]==r[za("0xf9")][za("0x44")]&&r[za("0x77")][za("0x66")]))e[za("0x99")](x),n=!0;else{if(!d||!d[za("0x130")])continue;s[za("0xe5")](d)}}var r,i;return s[za("0x139")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t.model[za("0xc6")].registerPostFixer((e=>{let n=!1;for(const o of t.model[za("0xc6")][za("0x56")][za("0x11c")]()){if("insert"!=o.type)continue;const s=o[za("0x19")][za("0xed")](o.length);if(s[za("0x66")])for(const r of this[za("0x127")][za("0x34")]()){if(r[za("0x5e")]||!r[za("0x130")])continue;if(za("0x1c")!=r[za("0x100")])continue;const i=r.getFirstRange();if(i.start[za("0x10b")]!=i.end[za("0x10b")]&&i[za("0xf9")][za("0x6e")](o[za("0x19")])){const o=t.model[za("0x28")](i[za("0x77")],s);e[za("0x6c")](r[za("0xe0")](),{range:o}),n=!0}}}return n})),t[za("0xec")][za("0xa9")].on(za("0x91"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0x68")](e[za("0x6f")]),n=this[za("0x127")][za("0x93")](t);n&&n[za("0x63")](e.name)}})),t[za("0xec")][za("0xc6")].on(za("0xc8"),(()=>{const e=Array[za("0x98")](t.model[za("0xc6")].differ[za("0x1e")]()).filter((t=>"suggestion"===this[za("0x68")](t[za("0x6f")])[za("0xc5")]));if(0===e[za("0x18")])return;e[za("0x3b")](((t,e)=>{const n=t[za("0xf")][za("0xe4")],o=e[za("0xf")][za("0xe4")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[za("0x117")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x68")](t);if(null===s[za("0xe4")]){const e=this[za("0xd4")](t);o.add(e)}else{const t=this[za("0x127")][za("0x93")](e);null!==s[za("0xee")]||t[za("0x130")]?(n.add(t.head),o[za("0xe5")](t)):this[za("0x135")](t)}}o[za("0x139")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0xbc")](za("0x10e"),t)})),t[za("0xec")].on(za("0x6"),((e,n)=>{const o=n[0];if(!this[za("0x127")].size)return;if(!o[za("0x20")])return;if(o[za("0xdc")][za("0x83")]||!o[za("0xdc")][za("0x101")])return;let s,r;switch(o[za("0x100")]){case za("0x3a"):s=t[za("0xec")].createPositionAt(o[za("0x19")]),r=s[za("0xed")](o.howMany);break;case za("0x5b"):s=t[za("0xec")][za("0x0")](o[za("0x133")]),r=t[za("0xec")].createPositionAt(o[za("0x9a")]);break;case"move":s=t.model[za("0x0")](o[za("0xf0")]),r=s.getShiftedBy(o[za("0xd")]);break;default:return}const i=t[za("0xec")][za("0x28")](s,r);t[za("0xec")][za("0xda")]((()=>{for(const{suggestion:t,meta:e}of this[za("0xd6")](i)){if(t.isMultiRange)continue;if(za("0x79")==t[za("0x100")])continue;const n=t[za("0xf")]&&t[za("0xf")].multipleBlocks;(za("0x1c")!=t[za("0x100")]||za("0x5b")==o[za("0x100")]&&!n)&&(e[za("0xf8")]||za("0xb0")==t[za("0x100")]&&e.isOwn||t.getFirstRange()[za("0x39")](i)&&this[za("0x89")](t,s,r))}}))}),{priority:"lowest"}),t.model.on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x5d")])return;if(this[za("0x118")])return;if(!this[za("0xe8")][za("0x125")])return;if(o.isCollapsed)return;const r=t[za("0xec")][za("0xb")],{start:i,end:x}=o[za("0x62")](),a=i[za("0x88")]&&r[za("0x67")](i[za("0x88")])?null:r.getNearestSelectionRange(i,za("0x13d")),c=x[za("0x44")]&&r.isLimit(x[za("0x44")])?null:r[za("0x12d")](x,za("0xb9")),l=t[za("0xec")][za("0x28")](a?a[za("0x77")]:i,c?c[za("0xf9")]:x);t[za("0xec")][za("0xda")]((e=>{this[za("0x8d")](l);const n=t[za("0xec")][za("0xb")].getNearestSelectionRange(l[za("0x77")]);o.is("documentSelection")?e.setSelection(n):o[za("0x4b")](n)})),e[za("0x65")]()}),{priority:e.priorities[za("0x38")]+10}),t[za("0xec")].on(za("0xb6"),((e,n)=>{const o=n[n[za("0x18")]-1];o&&o.forceDefaultExecution||this[za("0x118")]||this[za("0xe8")][za("0x125")]&&(t.model.change((()=>{let o=t.model.insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o[za("0x2c")]();const s=o[za("0xf9")].nodeBefore,r=t[za("0xec")].schema;s&&r.isBlock(s)&&!r[za("0x5")](s)&&(o=t[za("0xec")].createRange(o.start,t.model[za("0x0")](s,za("0xf9")))),this.markInsertion(o)})),e.stop())}),{priority:za("0x128")}),this[za("0x4e")].commands[za("0xe5")](za("0xc2"),this[za("0xe8")]),this[za("0xc3")](za("0xc2"));const o=new p(t,this._suggestions);t[za("0x103")].add(za("0x12a"),o),this[za("0xc3")](za("0x12a"));const s=new C(t,this[za("0x127")]);t[za("0x103")][za("0xe5")](za("0x4d"),s),this[za("0xc3")]("discardSuggestion"),t[za("0x103")].add("acceptAllSuggestions",new F(t,o,this._suggestions)),this.enableCommand(za("0xc9")),t.commands[za("0xe5")](za("0x12f"),new F(t,s,this[za("0x127")])),this[za("0xc3")](za("0x12f")),t.commands[za("0xe5")](za("0x42"),new U(t,o,this[za("0x127")])),this[za("0xc3")](za("0x42")),t[za("0x103")][za("0xe5")](za("0x124"),new U(t,s,this[za("0x127")])),this[za("0xc3")](za("0x124"));const r=t[za("0xb5")][za("0x93")]("CommentsRepository");this[za("0xb4")](r,za("0x59"),((t,{threadId:e})=>{const n=this[za("0x127")].get(e);n&&n[za("0x70")]&&1===n.commentThread[za("0x18")]&&this[za("0x37")](e,{hasComments:!0})}),{priority:za("0xfc")}),this[za("0xb4")](r,za("0x5f"),((t,{threadId:e})=>{const n=this._suggestions[za("0x93")](e);n&&n[za("0x70")]&&!n[za("0x70")].length&&this[za("0x37")](e,{hasComments:!1})}),{priority:"low"})}set[za("0x52")](t){if(this[za("0x60")])throw new e.CKEditorError(za("0xd5"),this);this._adapter=t}get[za("0x52")](){return this[za("0x60")]}[za("0x73")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x127")][za("0x34")]())t&&!e[za("0x130")]||n[za("0x114")](e);return e?n[za("0xe6")]((t=>t[za("0x3c")]())):n}[za("0xdf")](t){const n=this._suggestions.get(t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[za("0x143")](t){return this[za("0x127")].has(t)}[za("0x95")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x100")][za("0x5b")](":"),i=this[za("0x127")][za("0x93")](n)||this._createSuggestion(s,r,n,e,o);if(this[za("0x7b")](i),this._checkSuggestionCorrectness(i,s,r||null,e),i[za("0x12b")]=t.createdAt,o&&o["@external"]){const t=o[za("0x43")],e=this._getExternalAuthor(t[za("0x9d")]);i[za("0x10c")]=t[za("0x12b")],i[za("0x49")]=e,i[za("0x1f")]=!0}else i[za("0x10c")]=t[za("0x12b")];switch(t[za("0xf")]&&(i.data=t[za("0xf")]),t[za("0x81")]&&(i[za("0x81")]=t.attributes),this[za("0x60")]&&this[za("0x60")][za("0x8b")]||(i[za("0x4")]=!0),this[za("0x94")][za("0x93")](i)){case"notReady":this[za("0x94")][za("0xab")](i,za("0x1b"));break;case za("0x25"):i[za("0x130")]?(this[za("0x94")][za("0xab")](i,za("0xac")),this[za("0xbc")](za("0x112"),i)):this[za("0x94")][za("0xab")](i,za("0xff"))}return i}[za("0x12a")](t){this[za("0x5d")]((()=>{this[za("0x4e")][za("0xec")][za("0xda")]((()=>{for(const e of t[za("0x2e")]())e.accept()}))}))}[za("0x4d")](t){this[za("0x5d")]((()=>{this[za("0x4e")][za("0xec")][za("0xda")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[za("0xd8")]()}))}))}[za("0xc3")](t,n){const o=this.editor[za("0x103")][za("0x93")](t);if(!o)throw new e.CKEditorError(za("0xcd"),this,{commandName:t});this[za("0xa3")].add(o),n&&o.on(za("0xbf"),((t,e)=>{this.trackChangesCommand[za("0x125")]&&(this._isForcedDefaultExecutionBlock||e[za("0x18")]>0&&e[e.length-1]&&e[e.length-1][za("0x5d")]||(n(((...t)=>o[za("0xbf")](...t,{forceDefaultExecution:!0})),...e),t[za("0x65")]()))}),{priority:za("0x128")})}forceDefaultExecution(t){let n,o;const s=this[za("0x118")];this[za("0x118")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x118")]=!1),o&&e.CKEditorError[za("0xc1")](o,this),n}[za("0x7")](t,n=null,o={}){if(t[za("0x108")])return null;const s=this[za("0x4e")][za("0xb5")][za("0x93")](za("0xb8")).me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,za("0xb0")))if(o.isOwn){if(!o[za("0xe9")]){if(!this._mergeNestedSuggestions&&o[za("0xf8")])continue;return e}if(n==e[za("0x3")]){const n=e[za("0x62")]();return n.start[za("0x6e")](t.end)?this[za("0x69")](e,this[za("0x8c")][za("0x28")](t[za("0x77")],n[za("0xf9")])):this[za("0x69")](e,this[za("0x8c")][za("0x28")](n[za("0x77")],t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0xaa")+n:za("0xb0"),a=this[za("0xbd")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x96")](x,r,i,t),a}markMultiRangeInsertion(t,n=za("0x26"),o={}){const s=this[za("0x4e")].plugins[za("0x93")](za("0xb8")).me,r=this._suggestionFactory[za("0x45")](za("0xb0"),n,"join");for(const e of this[za("0x73")]())if(e[za("0x49")].id==s.id&&za("0xb0")==e.type&&e.subType==n&&(r(e[za("0xd9")](),t)||r(t,e[za("0xd9")]()))){for(const n of t)e[za("0x5c")](n);return e}if(this._mergeNestedSuggestions)for(const e of t)for(const{suggestion:n,meta:o}of this._findSuggestions(e,za("0xb0"))){if(!o[za("0xb7")])continue;let e=!0;for(const o of n[za("0xd9")]())for(const n of t)if(!o.containsRange(n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0xaa")+n,c=this[za("0xbd")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo[za("0x142")]());return c}[za("0x13b")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0x108")])return null;if(za("0x9")===this[za("0x131")]){const e=this._suggestionFactory[za("0x45")]("formatInline",o,"accept");return this[za("0x5d")]((()=>e([t],n,s))),null}const r=this.editor[za("0xb5")][za("0x93")](za("0xb8")).me,i=[];if(za("0xea")!==this[za("0x131")])for(const{suggestion:e,meta:n}of this[za("0xd6")](t,za("0xb0")))n.isOwn&&!n[za("0xce")]&&i[za("0x114")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x138")](o);e&&n[za("0x114")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e][za("0x116")](t);n[za("0xaf")](e,1,...o),e+=o.length}}return n}(t,i);x[za("0x18")]&&this[za("0x8c")][za("0xda")]((()=>{for(const t of x){const e=this[za("0xb1")][za("0x45")](za("0x79"),o,"accept");this[za("0x5d")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x77")],a=t.end;for(const{suggestion:e,meta:n}of this[za("0xd6")](t,za("0x79"))){if(!n.isOwn)continue;if(e[za("0x3")]!=o)continue;const s=e[za("0x62")]();if(s[za("0x39")](t,!0))return null;x=x[za("0x117")](s[za("0x77")])?x:s[za("0x77")],a=a[za("0xe")](s[za("0xf9")])?a:s.end,i?s[za("0x77")][za("0x117")](i[za("0x62")]()[za("0x77")])?(i[za("0x13a")](),i=e):e[za("0x13a")]():i=e}const c=this._model[za("0x28")](x,a);if(i)this[za("0x69")](i,c);else{const t=(0,e.uid)(),i=r.id;this._setSuggestionData({id:t,type:za("0x64")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x96")]("formatInline:"+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[za("0xbe")]||(n.formatGroupId=n[za("0x61")]),n[za("0x140")]=t.is(za("0xd1")),s=s||$a(n);const i=o[za("0xe6")]((t=>Qa(t,this._model))),x=t.is(za("0xd1"))?t:Qa(t,this._model);if("never"===this[za("0x131")]){const t=this[za("0xb1")][za("0x45")](za("0x1c"),s,za("0x10"));return this[za("0x5d")]((()=>t([x],n,r))),null}i[za("0x114")](x);let a=!0;for(const t of i)if(!this[za("0x27")](t)){a=!1;break}if(a&&za("0xea")!==this[za("0x131")]){const t=this[za("0xb1")][za("0x45")]("formatBlock",s,za("0x10"));return this[za("0x5d")]((()=>t([x],n,r))),null}let c=null,l=x[za("0x77")],d=x.end;for(const{suggestion:t,meta:e}of this[za("0xd6")](x,za("0x1c"))){if(!e.isOwn||e[za("0xe9")]||e.containsRangeInObject||e.isInsideObject)continue;if(t[za("0xf")].formatGroupId!=n[za("0xbe")])continue;const o=t[za("0x62")]();if(t[za("0x3")]==s){if(o[za("0x39")](x,!0))return null;l=l[za("0x117")](o[za("0x77")])?l:o[za("0x77")],d=d[za("0xe")](o[za("0xf9")])?d:o[za("0xf9")],c?o[za("0x77")][za("0x117")](c.getFirstRange()[za("0x77")])?(c[za("0x13a")](),c=t):t[za("0x13a")]():c=t}else{const e=x[za("0x138")](o);this[za("0x7e")](t,e)}}const u=this[za("0x4e")].plugins[za("0x93")]("Users").me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x69")](c,this[za("0x8c")][za("0x28")](l,d)),c;{const t=this[za("0xbd")]({id:g,type:za("0x21")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(za("0x21")+s,g,m,this._model[za("0x28")](l,d)),t}}[za("0x1")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[za("0xbe")]=n.commandName);const i=t[0];n.multipleBlocks=i.is(za("0xd1")),s=s||$a(n);const x=o[za("0xe6")]((t=>Qa(t,this[za("0x8c")]))),a=i.is("range")?t:t[za("0xe6")]((t=>Qa(t,this[za("0x8c")])));if(za("0x9")===this[za("0x131")]){const t=this[za("0xb1")][za("0x45")](za("0x1c"),s,za("0x10"));return this[za("0x5d")]((()=>t(a,n,r))),null}x[za("0x114")](...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&za("0xea")!==this[za("0x131")]){const t=this._suggestionFactory[za("0x45")](za("0x1c"),s,za("0x10"));return this[za("0x5d")]((()=>t(a,n,r))),null}const l=this.editor.plugins[za("0x93")]("Users").me;for(const t of this[za("0x73")]()){if(t.author.id!=l.id)continue;if(za("0x1c")!=t.type||t[za("0xf")][za("0xbe")]!=n[za("0xbe")])continue;const e=t[za("0x3")]==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t[za("0xa")]()){const r=s[za("0x17")]();if(o[za("0x6e")](r)){e?(a[za("0xaf")](n,1),n--):t[za("0x99")](s[za("0x6f")]);break}}}}if(0==a[za("0x18")])return null;const d=this[za("0xb1")].getSuggestionCallback(za("0x1c"),s,za("0x122"));for(const t of this[za("0x73")]())if(t[za("0x49")].id==l.id&&za("0x1c")==t[za("0x100")]&&t.data[za("0xbe")]==n[za("0xbe")]&&t.subType==s&&(d(t[za("0xd9")](),a)||d(a,t[za("0xd9")]()))){for(const e of a)t[za("0x5c")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0x21")+s,f=this[za("0xbd")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x96")](m,u,g,t,Zo[za("0x142")]());return f}[za("0x8d")](t,n=null,o={}){if(t[za("0x108")])return null;const s=this[za("0x4e")][za("0xb5")][za("0x93")]("Users").me,r=new i.LiveRange(t[za("0x77")],t[za("0xf9")]);for(const{suggestion:t,meta:e}of this[za("0xd6")](r,za("0xb0")))if(e[za("0xb7")]&&!e[za("0xe9")])if(t[za("0x5e")]){const e=t[za("0xd9")]()[za("0x54")]((t=>za("0xcc")!=t[za("0x55")][za("0x129")]));if(e.every((t=>r.containsRange(t,!0)))&&t[za("0xd8")](),e[za("0xf1")]((t=>t.containsRange(r,!0)))){const t=this[za("0xb1")][za("0x45")](za("0xa4"),n,za("0x10"));return this[za("0x5d")]((()=>t([r],null,o))),null}}else{const e=r[za("0x138")](t.getFirstRange());null!==e&&t[za("0xca")]([e],null,o)}if(r[za("0x12e")](),r.isCollapsed||za("0xcc")==r.root[za("0x129")])return null;let x=null,a=r[za("0x77")],c=r[za("0xf9")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0xa4")))if(e.isOwn)if(t[za("0x5e")]&&this[za("0x126")]){let e=!0;for(const n of t[za("0xd9")]()){if(n[za("0x39")](r,!0))return t;r[za("0x39")](n)||(e=!1)}e&&t[za("0xd8")]()}else{const n=t[za("0x62")]();if(n[za("0x39")](r,!0)){if(!this[za("0x126")]&&e.containsRangeInObject)continue;return t}a=a[za("0x117")](n[za("0x77")])?a:n.start,c=c[za("0xe")](n[za("0xf9")])?c:n.end,x?n[za("0x77")].isBefore(x.getFirstRange().start)?(x[za("0x13a")](),x=t):t.removeMarkers():x=t}if(x)return this[za("0x69")](x,this[za("0x8c")][za("0x28")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x8c")].createRange(a,c),i=s.id,x=n?za("0x6d")+n:za("0xa4"),l=this[za("0xbd")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x96")](x,t,i,r),l}}[za("0x57")](t,n=za("0x26"),o={}){const s=this[za("0x4e")].plugins[za("0x93")](za("0xb8")).me,r=t[za("0xe6")]((t=>new i.LiveRange(t.start,t.end))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xd6")](t,za("0xb0")))n[za("0xb7")]&&!n[za("0xe9")]&&x[za("0xe5")](e);for(const e of x)if(e[za("0x5e")]){const s=e[za("0xd9")]();if((!e[za("0x81")]||!e[za("0x81")][za("0x4f")])&&s.every((t=>r[za("0xf1")]((e=>e[za("0x39")](t,!0)))))&&e[za("0xd8")](),r[za("0x40")]((t=>s[za("0xf1")]((e=>e[za("0x39")](t,!0)))))){const e=this[za("0xb1")][za("0x45")]("deletion",n,za("0x10"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[za("0x62")]();if(r.some((e=>e[za("0x39")](t,!0)))&&e[za("0xd8")](),r.every((e=>t[za("0x39")](e,!0)))){const t=this._suggestionFactory[za("0x45")]("deletion",n,za("0x10"));return this[za("0x5d")]((()=>t(r,null,o))),null}}const a=this._suggestionFactory[za("0x45")](za("0xa4"),n,"join");let c=null;for(const t of this[za("0x73")]())if(t[za("0x49")].id==s.id&&t[za("0x130")]&&za("0xa4")==t[za("0x100")]&&t[za("0x3")]==n&&(a(t[za("0xd9")](),r)||a(r,t[za("0xd9")]())))if(c){if(t[za("0x70")]&&t[za("0x70")][za("0x18")])continue;for(const e of t.getRanges())c[za("0x87")](e)||c[za("0x5c")](e);t[za("0x13a")]()}else{c=t;for(const e of r)t[za("0x87")](e)||t[za("0x5c")](e)}if(c)return c;x[za("0xf3")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xd6")](t,za("0xa4")))n.isOwn&&x[za("0xe5")](e);for(const t of x){const e=t[za("0xd9")]();if((!o||!o[za("0x4f")])&&r[za("0x40")]((t=>e[za("0xf1")]((e=>e[za("0x39")](t,!0))))))return t;(!t[za("0x81")]||!t[za("0x81")][za("0x4f")])&&e.every((t=>r[za("0xf1")]((e=>e[za("0x39")](t,!0)))))&&t[za("0xd8")]()}const l=(0,e.uid)(),d=s.id,u=za("0x6d")+n,g=this[za("0xbd")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0x12e")](),t.isCollapsed||za("0xcc")==t[za("0x55")][za("0x129")]||this[za("0x96")](u,l,d,t,Zo.getMultiRangeId());return g}[za("0x69")](t,e){const n=t.getFirstMarker();this[za("0x8c")][za("0xda")]((t=>{t[za("0x6c")](n,{range:e})}))}[za("0x7b")](t){const e=t.id,n=this[za("0x4e")][za("0x22")][za("0x93")](za("0x50"));this[za("0x32")][za("0x1d")](e)||this[za("0x32")][za("0x58")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x32")].getCommentThread(e);o[za("0x13")](za("0xdb")),o[za("0xdb")]=!1,t[za("0x70")]=o}[za("0x85")](t,n,o,s){if(t[za("0x100")]!=n||t.subType!=o||t[za("0x41")].id!=s)throw this[za("0x4e")][za("0x29")](za("0x107")),new e.CKEditorError(za("0x107"),this)}[za("0x7e")](t,n){const o=t[za("0x62")]();if(n[za("0x6e")](o))t.removeMarkers();else if(o[za("0x39")](n)){const s=this._model[za("0x0")](n[za("0x77")][za("0x44")],za("0xf9"));this._setSuggestionRange(t,this[za("0x8c")][za("0x28")](o[za("0x77")],s));const r=(0,e.uid)(),i=t[za("0x41")].id,x=t.type+":"+t[za("0x3")];this[za("0xbd")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0xf")],attributes:t[za("0x81")]});const a=this[za("0x8c")][za("0x0")](n[za("0xf9")][za("0x10b")],za("0xf6")),c=this._model[za("0x28")](a,o[za("0xf9")]);this._addSuggestionMarker(x,r,i,c)}else if(o[za("0x3e")](n[za("0x77")])){const e=this[za("0x8c")][za("0x0")](n[za("0x77")].nodeBefore,za("0xf9"));this[za("0x69")](t,this[za("0x8c")][za("0x28")](o[za("0x77")],e))}else{const e=this[za("0x8c")][za("0x0")](n.end.parent,za("0xf6"));this[za("0x69")](t,this[za("0x8c")][za("0x28")](e,o[za("0xf9")]))}}[za("0x27")](t){for(const{suggestion:e,meta:n}of this[za("0xd6")](t,za("0xb0"))){if(!n.isOwn)continue;const o=e[za("0xd9")]();for(const e of o)if(!t[za("0x116")](e)[za("0x18")])return!0}return!1}[za("0xd2")](t){const n=this[za("0x4e")].plugins[za("0x93")](za("0xb8"))[za("0x16")](t);if(!n)throw new e.CKEditorError(za("0x137"),this);return n}[za("0x9c")](t){const e=this.editor[za("0xb5")][za("0x93")](za("0xb8")),n=(0,r.hashObject)(za("0x11a")+t);return e[za("0x16")](n)||e[za("0x12c")]({id:n,name:t})}[za("0xde")](t,e,n,o,s){const r=this[za("0xd2")](o),i=this[za("0xb1")][za("0x53")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(i,za("0x10"),(()=>{this[za("0x37")](n,{state:"accepted"})}),{priority:za("0x128")}),this[za("0xb4")](i,za("0xd8"),(()=>{this._updateSuggestionData(n,{state:za("0x119")})}),{priority:"high"}),this[za("0x127")].set(n,i),this[za("0x94")][za("0xab")](i,"notReady"),i}[za("0x68")](t){const e=t[za("0x5b")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[za("0x18")]<5?e[2]:e[3],authorId:e[za("0x18")]<5?e[3]:e[4],markerCount:6==e[za("0x18")]?e[5]:null}}[za("0x89")](t,n,o){const s=t[za("0x62")](),r=s[za("0x77")],i=s[za("0xf9")];this._setSuggestionRange(t,this._model[za("0x28")](r,n));const x=(0,e.uid)(),a=t[za("0x41")].id,c=t[za("0x100")]+(t.subType?":"+t.subType:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t.data}),za("0x1c")==t.type&&(o=this._model[za("0x30")](o[za("0x10b")])),this[za("0x96")](c,x,a,this[za("0x8c")][za("0x28")](o,i))}[za("0xd6")](t,e=null){const n=[],o=this[za("0x8c")].schema,s=this[za("0x4e")][za("0xb5")][za("0x93")]("Users").me;for(const r of this[za("0x73")]())if(r.isInContent&&(!e||r.type==e))for(const e of r[za("0xd9")]()){const i=t[za("0x77")].isEqual(e[za("0xf9")])||t[za("0xf9")][za("0x6e")](e[za("0x77")]);if(i||t[za("0x138")](e)){const x=t.containsRange(e)&&Ka(o,e[za("0x77")],t),a=e[za("0x39")](t)&&Ka(o,t[za("0x77")],e);n.push({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x96")](t,e,n,o,s){this._model[za("0xda")]((r=>{let i=za("0x5a")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x2a")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x135")](t){const e=t[za("0xe2")],n=t.next;t[za("0xe2")]=null,null!=e&&(e.next=null),t[za("0x11e")]=null,null!=n&&(n.previous=null),za("0xac")==this[za("0x94")][za("0x93")](t)&&(this[za("0x94")][za("0xab")](t,za("0xff")),this[za("0xbc")]("suggestionUnloaded",t,e,n))}[za("0xbd")](t){const n=t.id,o=this[za("0x95")](t);if(this[za("0x60")]&&this[za("0x60")][za("0x8b")]){const s=this[za("0x4e")].plugins[za("0x93")]("PendingActions"),r=o[za("0x111")],i=o[za("0x3")]?o[za("0x100")]+":"+o.subType:o[za("0x100")],x=this[za("0x4e")].locale,a=s[za("0xe5")](Yo(x,za("0x10a"))),c={id:n,type:i,hasComments:r,data:t[za("0xf")]||null,originalSuggestionId:t[za("0x90")]||null,attributes:o[za("0x81")]};this[za("0x60")][za("0x8b")](c).then((t=>{o[za("0x4")]=!0,s.remove(a),t&&t.createdAt&&(this[za("0x127")][za("0x93")](n)[za("0x12b")]=t.createdAt)}))[za("0x92")]((t=>{throw(0,e.logWarning)(za("0x9f")),this.editor[za("0xec")][za("0xd7")]({isUndoable:!1},(()=>{o[za("0xd8")]()})),o[za("0xa1")](),this._suggestions[za("0xc0")](o.id),this[za("0x94")][za("0xc0")](o),t}))}return o}[za("0x37")](t,e){const n=this[za("0x4e")][za("0xb5")].get(za("0x76")),o=this[za("0xdf")](t);if(this[za("0x60")]&&this[za("0x60")][za("0x120")])if(o[za("0x4")]){const o=n[za("0xe5")](Yo(this[za("0x4e")][za("0x11f")],za("0x10a")));this[za("0x60")][za("0x120")](t,e).then((()=>{n[za("0x115")](o)}))}else o.on(za("0x104"),(()=>{this[za("0x37")](t,e)}))}[za("0x23")](t){if(!this._adapter||!this[za("0x60")][za("0xdf")])throw new e.CKEditorError(za("0xa0"),this);return this[za("0x60")][za("0xdf")](t)}[za("0xd4")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0x68")](t),r=this[za("0x127")][za("0x93")](e)||this._createSuggestion(n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this[za("0x94")][za("0x93")](r)){case za("0x97"):this[za("0x23")](e).then((t=>{let n=Promise[za("0x145")]();t[za("0x111")]&&(n=this[za("0x32")][za("0x132")]({channelId:this.editor[za("0x22")][za("0x93")](za("0x50")),threadId:e})),n[za("0x46")]((()=>{this[za("0x95")](t)._saved=!0}))})),this[za("0x94")][za("0xab")](r,"markerReady");break;case za("0xff"):this._updateSuggestionData(e,{state:"open"});case za("0x1b"):this[za("0x94")][za("0xab")](r,"ready"),this[za("0xbc")](za("0x112"),r);break;case za("0xac"):this[za("0xbc")](za("0x10e"),r)}return r.addMarkerName(t),r}[za("0x1a")](t){const e=Array[za("0x98")](t).filter((t=>!t[za("0x5e")])),n=this[za("0x73")]({skipNotAttached:!0})[za("0x54")]((t=>!t[za("0x5e")])),o=n[za("0x54")]((e=>!t[za("0x82")](e))),s=new Map(n[za("0xe6")]((t=>[t,this[za("0xb1")][za("0x45")](t.type,t.subType,"chain")]))),r=new Map(n.map((t=>[t,t[za("0x62")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x18")];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("0x18")];t++){const n=e[t];!x.has(n)&&n[za("0xe2")]&&(n[za("0xe2")][za("0x11e")]===n&&(n[za("0xe2")][za("0x11e")]=null),n[za("0xe2")]=null),!i[za("0x82")](n)&&n.next&&(n[za("0x11e")].previous===n&&(n[za("0x11e")][za("0xe2")]=null),n[za("0x11e")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][za("0x11e")]=n[1],n[1][za("0xe2")]=n[0],i.add(n[0]),x[za("0xe5")](n[1]))}}function c(t,e){if(t.author.id!==e.author.id)return null;const n=s[za("0x93")](t)(t,e,r.get(t),r.get(e));return n&&s[za("0x93")](e)(t,e,r[za("0x93")](t),r[za("0x93")](e))?n[1].commentThread&&n[1][za("0x70")][za("0x18")]?null:n:null}}[za("0x3f")](t){const e=Array[za("0x98")](t),n=this[za("0x73")]({skipNotAttached:!0}),o=n.filter((e=>!t[za("0x82")](e))),s=new Map(e[za("0xe6")]((t=>[t,this[za("0xb1")][za("0x45")](t.type,t[za("0x3")],za("0x122"))]))),r=new Map(n[za("0xe6")]((t=>[t,t[za("0xd9")]()])));for(let t=0;t<e[za("0x18")];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[za("0x49")].id!==e.author.id||o[za("0x3")]!==e[za("0x3")])continue;const x=s[za("0x93")](e),a=r[za("0x93")](e),c=r[za("0x93")](o),l=e[za("0x70")]&&e[za("0x70")][za("0x18")],d=o[za("0x70")]&&o[za("0x70")].length;if(!l&&x(c,a))return t[za("0xfb")](o,e),r[za("0xc0")](e),!0;if(!d&&x(a,c))return t[za("0xfb")](e,o),r[za("0xc0")](o),!0}return!1}}[za("0xfb")](t,e){if(t.isMultiRange)for(const n of e[za("0xd9")]())t[za("0x5c")](n);else{const n=e[za("0x62")]()[za("0xf9")];this[za("0x69")](t,this[za("0x8c")][za("0x28")](t[za("0x62")]()[za("0x77")],n))}e.removeMarkers()}}class Va{constructor(t){this[za("0x47")]=t,this._model=t[za("0xec")],this._customCallbacks=new Map,this[za("0x78")]=new Map,this._registerDefaultCallbacks()}[za("0x53")](t,e,n,o,s,r){return new Zo(this[za("0x8c")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x45")](t,e,za("0x10"))(...n),onDiscard:(...n)=>this[za("0x45")](t,e,za("0xd8"))(...n)})}[za("0xf2")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x2d")][za("0xab")](s,o)}[za("0x45")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x2d")].get(o)||this._defaultCallbacks[za("0x93")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t[za("0x3b")](((t,e)=>t.start[za("0x117")](e[za("0x77")])?1:-1)),this[za("0x8c")][za("0xda")]((e=>{for(const n of t){let t;t=n[za("0xf9")].isAtEnd&&n[za("0xf9")].parent==n.start.nodeAfter?e[za("0x36")](n[za("0x77")][za("0x88")],"on"):e[za("0x36")](n),this[za("0x8c")][za("0x35")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x8c")][za("0xda")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t.map((t=>(qa(t)&&(t=this[za("0x8c")][za("0x28")](t[za("0xf9")])),t)))[za("0x54")]((t=>za("0xcc")!==t.root[za("0x129")]));if(r.length<1)return;const x=Array[za("0x98")](this._model[za("0xc6")][za("0xae")][za("0xd9")]())[za("0xe6")]((t=>i.LiveRange[za("0x13c")](t)));n.setSelection(r);for(const t of this[za("0x47")][za("0x103")][za("0x103")]())t.refresh();s[za("0x114")]({forceDefaultExecution:!0}),this[za("0x47")].execute(o,...s);const a=x[za("0x54")]((t=>za("0xcc")!=t.root[za("0x129")]));a[za("0x18")]>0&&n[za("0xf5")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[za("0x18")]&&1==e[za("0x18")]&&t[0][za("0xf9")][za("0x6e")](e[0][za("0x77")]),s=(t,e,n,o)=>Za(t,e,n,o,this._model)?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[za("0x78")].set(za("0xf7"),t),this[za("0x78")][za("0xab")](za("0x110"),e),this[za("0x78")][za("0xab")](za("0xc4"),o),this[za("0x78")][za("0xab")]("insertion:chain",s),this._defaultCallbacks[za("0xab")](za("0x80"),e),this._defaultCallbacks[za("0xab")](za("0xd3"),t),this._defaultCallbacks[za("0xab")]("deletion:join",o),this._defaultCallbacks[za("0xab")](za("0x7d"),s),this[za("0x78")].set(za("0x13e"),n),this[za("0x78")][za("0xab")](za("0xfa"),t),this[za("0x78")][za("0xab")]("formatInline:join",o),this[za("0x78")][za("0xab")](za("0x7c"),t),this._defaultCallbacks[za("0xab")](za("0x10f"),n),this._defaultCallbacks[za("0xab")](za("0x2f"),t),this[za("0x78")][za("0xab")](za("0x121"),o),this._defaultCallbacks[za("0xab")](za("0x31"),t)}}function Ka(t,e,n){for(const o of e[za("0x10b")][za("0x8f")]({includeSelf:!0,parentFirst:!0})){if(o[za("0x55")]==o)return!1;if(!n[za("0x106")](o))return!1;if(t.isObject(o)||t[za("0x67")](o))return!0}return!1}function qa(t){return t.end[za("0x10b")]==t[za("0x77")][za("0x88")]&&t[za("0xf9")][za("0x141")]}function Xa(t,e,n,o){const s=t=>!t[za("0x13f")].is(za("0x14"))&&!o[za("0x5")](t[za("0x13f")]),r=t[za("0x77")][za("0xbb")](s),i=t[za("0xf9")][za("0xbb")](s,{direction:za("0xb9")});return!(t[za("0x77")][za("0x6e")](r)&&t[za("0xf9")].isEqual(i)||(r[za("0x117")](i)?n[za("0x6c")](e,{range:n.createRange(r,i)}):n.removeMarker(e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x77")][za("0x88")];return e&&e.is(za("0x6a"))}function Qa(t,e){const n=e[za("0xb")][za("0x5")](t)||e.schema[za("0xcf")](t);return e[za("0x28")](e[za("0x0")](t,za("0xdd")),n?e[za("0xfd")](t):e[za("0x0")](t,za("0xf9")))}function Za(t,e,n,o,s){if(n.end[za("0x6e")](o[za("0x77")]))return!0;if(t[za("0x100")]!=e.type)return!1;if(!n[za("0xf9")][za("0x8e")](o[za("0x77")]))return!1;const r=s[za("0x28")](n[za("0xf9")],o[za("0x77")])[za("0x75")]();for(const t of r)if([za("0x51"),za("0x109")][za("0xef")](t[za("0x100")])&&s[za("0xb")][za("0x67")](t[za("0x13f")]))return!1;return!0}const Ya=["acceptSuggestion","_pendingAction","model","commentThreadController","canEditAt","discardSuggestion","remove","_removePendingAction","_discardCommand","getRanges","listenTo","isDirty","change:isDirty","PENDING_ACTION_SUGGESTION","_acceptCommand","commands","_editor","destroy","locale","execute","canDiscard","add","_setPendingAction","unbind","canAccept","get","plugins","bind","view","isEnabled","PendingActions"];var tc,ec;tc=Ya,ec=282,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("0x1e")]=e,this[nc("0x19")]=n,this[nc("0x0")]=o,this._editor=t,this._acceptCommand=t[nc("0xc")][nc("0x16")](nc("0x1c")),this._discardCommand=t[nc("0xc")].get(nc("0x2")),this[nc("0x19")][nc("0x18")]("isEnabled").to(this[nc("0xb")],this[nc("0x5")],((t,e)=>t||e)),this[nc("0x19")].bind("canAccept").to(this[nc("0xb")],"isEnabled",(t=>t&&this._editor[nc("0x1e")][nc("0x1")](e[nc("0x6")]()))),this.view[nc("0x18")](nc("0x11")).to(this[nc("0x5")],"isEnabled",(t=>t&&this._editor[nc("0x1e")][nc("0x1")](e.getRanges()))),this[nc("0x1d")]=null,n[nc("0x8")]&&this._setPendingAction(),this[nc("0x7")](n,nc("0x1c"),(()=>this.acceptSuggestion())),this[nc("0x7")](n,"discardSuggestion",(()=>this[nc("0x2")]())),this.listenTo(n,nc("0x9"),(()=>{n[nc("0x8")]?this[nc("0x13")]():this[nc("0x4")]()}))}[nc("0x1c")](){this[nc("0xb")][nc("0x10")](this.model.id)}discardSuggestion(){this[nc("0x5")][nc("0x10")](this.model.id)}[nc("0xe")](){this[nc("0x19")][nc("0x14")](nc("0x1a")),this[nc("0x19")].unbind(nc("0x15")),this[nc("0x19")][nc("0x14")]("canDiscard"),this.stopListening(),this.commentThreadController[nc("0xe")](),this[nc("0x1d")]&&this[nc("0x4")]()}[nc("0x13")](){const t=Yo(this[nc("0xd")][nc("0xf")],nc("0xa"));this[nc("0x1d")]=this[nc("0xd")][nc("0x17")].get(nc("0x1b"))[nc("0x12")](t)}_removePendingAction(){null!==this[nc("0x1d")]&&this._editor[nc("0x17")][nc("0x16")]("PendingActions")[nc("0x3")](this[nc("0x1d")]),this[nc("0x1d")]=null}}const sc=["_localUser","cancel","_createCommentThreadInputView","setData","commentsListView","destroy","hasDirtyComment","_model","fire","authoredAt","value","_config","commentThread","set","_createCommentViews","bind","submit","CommentView","showInput","removeComment","updateComment","commentThreadInputView","addComment","focus","isDirty","isReadOnly","isEnabled","editorConfig","isActive","canDiscard","length","assign","editor"];var rc,ic;rc=sc,ic=189,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.commentsListView=null,this[xc("0x1e")]=null,this[xc("0x16")](xc("0x4"),!1),this[xc("0x16")](xc("0x12"),e[xc("0x12")]),this[xc("0x18")](xc("0x12")).to(e),this[xc("0x16")]("descriptionParts",[]),this[xc("0x16")](xc("0x0"),!1),this.set(xc("0x2"),!1),this.set("canAccept",!1),this[xc("0x16")](xc("0x5"),!1),this[xc("0x10")]=e,this[xc("0x9")]=n,this._config=o,o.disableComments?this[xc("0x16")](xc("0x6"),1):this[xc("0x17")]()}[xc("0x20")](){this.element[xc("0x20")]()}[xc("0xe")](){this[xc("0xd")]&&this[xc("0xd")].destroy(),this[xc("0x1e")]&&this[xc("0x1e")].destroy(),super.destroy()}[xc("0x17")](){const{CommentsListView:t}=this[xc("0x14")];this.commentsListView=new t(this.locale,this[xc("0x10")][xc("0x15")],Object[xc("0x7")]({CommentView:this._config[xc("0x1a")]},this[xc("0x14")])),this[xc("0xd")].delegate(xc("0x1c")).to(this),this[xc("0xd")].delegate(xc("0x1d")).to(this),this.commentsListView[xc("0x18")]("isActive").to(this),this.set(xc("0x6"),this.commentsListView[xc("0x6")]+1),this[xc("0x18")](xc("0x6")).to(this[xc("0xd")],xc("0x6"),(t=>t+1)),this[xc("0x1e")]=this[xc("0xb")](),this.on(xc("0x1c"),(()=>this[xc("0x20")]())),this[xc("0x18")](xc("0x0")).to(this.commentsListView,xc("0xf"),this[xc("0x1e")].commentInputView,xc("0x13"),((t,e)=>t||!!e))}[xc("0xb")](){const{CommentThreadInputView:t}=this[xc("0x14")],e=new t(this.locale,this[xc("0x9")],this[xc("0x14")][xc("0x3")]),n=e.commentInputView;return e[xc("0x18")](xc("0x1b")).to(this,"isActive",this._model[xc("0x15")],xc("0x1"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(xc("0x19"),((t,e)=>{this[xc("0x11")](xc("0x1f"),e),n[xc("0x8")][xc("0xc")]("")})),n.on(xc("0xa"),(()=>this[xc("0x20")]())),n[xc("0x18")]("disabledSubmit").to(this[xc("0x10")][xc("0x15")],"isReadOnly"),e}}const cc=["acceptSuggestion","getUserViewNotificationText","description","createElement","fire","bind","value","span","title","set",".ck-annotation__content-wrapper","join","check","ck-annotation__actions","setTemplate","acceptButton","ck-annotation__user","ck-suggestion","ck-suggestion__user","getTemplate","color","isExternal","name","ck-suggestion-","extendTemplate","innerHTML","ck-annotation__info-time","attributes","type","commentsListView","discardButton","_descriptionElement","isActive","ck-suggestion--accept","Accept suggestion","render","ck-suggestion--discard","ck-suggestion__actions","ck-comment__external","EXTERNAL_SUGGESTION","_config","source","ck-annotation__info-name","ck-annotation__main","map","canDiscard","discardSuggestion","importWord","ck-suggestion--disabled-comments","disableComments","getExternalSuggestionNote","</span>","commentThreadInputView","push",'"></span>',"isEnabled","@external","_createButton","userView","innerText",'<span class="ck-suggestion-color" style="background-color: ',"ck-comment__info-time","<p>","canAccept","change:description","Discard suggestion","cancel","ck-annotation__content-wrapper","ck-suggestion-wrapper",'<span class="ck-suggestion-type">',"_model","locale","children","ck-suggestion__main","ck-suggestion__info-name","creator","split","ck-annotation","div","querySelector","descriptionParts","author"];var lc,dc;lc=cc,dc=161,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("0xc")]("type",""),this[uc("0x8")](uc("0x1f")).to(this,uc("0x1"),(t=>t&&t[0]?t[0][uc("0x1f")]:"")),this.bind(uc("0x5")).to(this,uc("0x1"),this,uc("0x23"),((t,e)=>{let n="";for(const e of t)n+=uc("0x41")+mc(e.content,e[uc("0x17")])+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x22")]=null,this.acceptButton=this[uc("0x3c")](Yo(e,uc("0x25")),t.icons[uc("0xf")],uc("0x24"),uc("0x3"),"sw"),this[uc("0x12")][uc("0x8")](uc("0x3a")).to(this,uc("0x42")),this[uc("0x21")]=this._createButton(Yo(e,uc("0x44")),t.icons[uc("0x45")],uc("0x27"),uc("0x31"),"sw"),this[uc("0x21")][uc("0x8")](uc("0x3a")).to(this,uc("0x30")),this.userView=new r.UserView(e,this._model[uc("0x2")],this[uc("0x4")]()),this[uc("0x3d")][uc("0x1b")]({attributes:{class:[uc("0x15"),uc("0x13")]}}),this[uc("0x11")](this[uc("0x16")]())}[uc("0x16")](){const t=this.bindTemplate,e=[{tag:"div",attributes:{class:["ck-suggestion__info","ck-annotation__info"]},children:[{tag:uc("0xa"),children:[{text:this[uc("0x3d")][uc("0x19")]}],attributes:{class:[uc("0x4d"),uc("0x2d")]}},{tag:"time",attributes:{datetime:t.to("authoredAt"),class:[uc("0x40"),uc("0x1d")]},children:[{text:t.to("authoredAt",(t=>this[uc("0x2b")].formatDateTime(t)))}]}]},{tag:uc("0x51"),attributes:{class:[uc("0x28"),uc("0x10")]},children:[this[uc("0x12")],this[uc("0x21")]]},{tag:uc("0x51"),attributes:{class:[uc("0x46")]}}];this[uc("0x49")][uc("0x18")]&&e.push({tag:"div",attributes:{class:[uc("0x29")]},children:[{text:this[uc("0x35")]()}]});const n={tag:uc("0x51"),attributes:{class:[uc("0x47"),t.if(uc("0x23"),"ck-suggestion-wrapper--active"),t.to(uc("0x1f"),(t=>uc("0x1a")+t)),this[uc("0x2b")][uc("0x34")]&&uc("0x33")],"data-suggestion-id":this[uc("0x49")].id,"data-thread-id":this[uc("0x49")].commentThread.id,"data-author-id":this[uc("0x49")].author.id,tabindex:-1},children:[{tag:uc("0x51"),attributes:{class:[uc("0x14"),uc("0x50")]},children:[this[uc("0x3d")],{tag:uc("0x51"),attributes:{class:[uc("0x4c"),uc("0x2e")]},children:e}]}]};return this[uc("0x20")]&&this.commentThreadInputView&&n[uc("0x4b")][uc("0x38")](this[uc("0x20")],this[uc("0x37")]),n}[uc("0x26")](){super.render(),this[uc("0x22")]=this.element[uc("0x0")](uc("0xd")),this[uc("0x22")].innerHTML=this[uc("0x5")],this.on(uc("0x43"),((t,e,n)=>{this._descriptionElement[uc("0x1c")]=n}))}[uc("0x3c")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x4a")]);return i[uc("0xc")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x1b")]({attributes:{class:n}}),i.on("execute",(()=>{this[uc("0x7")](o,this._model.id)})),i}[uc("0x35")](){return uc("0x32")===this[uc("0x49")].attributes["@external"][uc("0x2c")]?Yo(this[uc("0x4a")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[uc("0x4a")],uc("0x2a"))}[uc("0x4")](){return this[uc("0x49")][uc("0x18")]?uc("0x32")===this[uc("0x49")][uc("0x1e")][uc("0x3b")][uc("0x2c")]?Yo(this[uc("0x4a")],"EXTERNAL_IMPORT_WORD_AVATAR",this[uc("0x49")][uc("0x4e")][uc("0x19")]):Yo(this[uc("0x4a")],"EXTERNAL_AVATAR",this._model[uc("0x4e")][uc("0x19")]):null}}function mc(t,e){let n="";return n+=t[uc("0x4f")]("*")[uc("0x2f")](((t,e)=>e%2!=0?uc("0x48")+fc(t)+uc("0x36"):fc(t)))[uc("0xe")](""),e&&(n+=uc("0x3f")+e[uc("0x9")]+'" title="'+e[uc("0xb")]+uc("0x39")),n}function fc(t){const e=document[uc("0x6")](uc("0xa"));return e[uc("0x3e")]=t,e.innerHTML}const hc=["getMarkers","stopListening","getMarkerNames","discardAllSuggestions","_updateController","CommentView","change:previous","getFirstRange","trackChanges.SuggestionThreadView","buttonView","filter","delete","mainView","_initializeController","discardButton","_suggestionToController","keys","discardSelectedSuggestions","plugins","Accept all selected suggestions","length","createCommentThreadController","some","arrowView","button","model","Accept all suggestions","add","_descriptionFactory","comments.maxCommentsWhenCollapsed","isDirty","activeAnnotations","pluginName","innerView","actionView","_refreshActiveMarkers","change:activeAnnotations","acceptAllSuggestions","destroy","map","clear","_createUIButton","init","suggestion-","lowest","_viewToController","isEnabled","previous","view","getByInnerView","unbind","config","isOn","_handleControllerBuffer","separator","source","getJoined","from","_disableComments","SuggestionThreadView","_annotationViews","commandName","acceptButton","Track changes","get","comments","value","toMany","TrackChangesUI","suggestionLoaded","getDescriptions","trackChanges","suggestionChanged","editing","head","commentThread","comments.maxThreadTotalWeight","locale","focus","commands","getAllAdjacentSuggestions","suggestionUnloaded","type","bind","_handleSuggestionControllerDelayed","activeMarkers","componentFactory","listenTo","editor","set","isInContent","descriptionParts","Discard all suggestions","remove","EditorAnnotations","push","_destroyController","Annotations","comments.maxCommentCharsWhenCollapsed","has","size","execute","TrackChangesEditing","createAnnotation"];var pc,bc;pc=hc,bc=230,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("0x4b"),Ec("0x48")]}static get[Ec("0xa")](){return Ec("0x2e")}constructor(t){super(t),this[Ec("0x61")]=new Map,this[Ec("0x17")]=new Map,this._annotationViews=new Map,this._handleControllerBuffer=new Map;const e=this[Ec("0x42")][Ec("0x1d")];e.define(Ec("0x5a"),gc),e.define("trackChanges.disableComments",!1),this[Ec("0x24")]=e.get("trackChanges.disableComments")}[Ec("0x3e")](t,e){0===this[Ec("0x1f")][Ec("0x4e")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x1f")]){const n=this[Ec("0x61")][Ec("0x4d")](t);n||e?n&&e&&this._destroyController(t):this[Ec("0x5f")](t)}this[Ec("0x42")][Ec("0x64")][Ec("0x2a")](Ec("0x48")).refreshSelectedViews(),this[Ec("0xd")](),this._handleControllerBuffer[Ec("0x12")]()}),10),this._handleControllerBuffer[Ec("0x43")](t,e)}[Ec("0x14")](){const t=this.editor,e=t[Ec("0x64")].get("TrackChangesEditing"),n=t[Ec("0x64")][Ec("0x2a")](Ec("0x4b")),o=t[Ec("0x64")][Ec("0x2a")](Ec("0x48")),s=t[Ec("0x64")].get("CommentsRepository");t.ui[Ec("0x40")].add(Ec("0x31"),(t=>this[Ec("0x13")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array.from(this[Ec("0x61")])){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t[Ec("0x44")])continue;if(t.isMultiRange){s.push(...t.getRanges());continue}const e=t[Ec("0x59")]();if(s.length>0){const t=s[0][Ec("0x22")](e);if(t){s[0]=t;continue}}s.push(e)}t.push([n[Ec("0x1a")],s])}return t})),this[Ec("0x41")](e,Ec("0x2f"),((t,e)=>{this[Ec("0x41")](e,Ec("0x58"),((t,n,o,s)=>{e[Ec("0x44")]&&(null==o?(this[Ec("0x56")](s[Ec("0x34")]),this[Ec("0x3e")](e,!1)):(this[Ec("0x56")](o[Ec("0x34")]),this[Ec("0x3e")](e,!0)))})),null===e[Ec("0x19")]?this[Ec("0x3e")](e,!1):this[Ec("0x56")](e[Ec("0x34")])})),this[Ec("0x41")](e,Ec("0x3b"),((t,e,n)=>{this[Ec("0x53")](e,"change:previous"),this[Ec("0x1f")][Ec("0x5d")](e);const o=n?n.head:e,s=this._suggestionToController[Ec("0x2a")](o);null!==n&&this[Ec("0x56")](o),null===n&&s&&this[Ec("0x4a")](e)})),this.listenTo(e,Ec("0x32"),((t,e)=>{this[Ec("0x56")](e)})),this[Ec("0x41")](n,Ec("0xe"),(()=>{this[Ec("0xd")]()})),this.listenTo(s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e.getSuggestion(n);this[Ec("0x61")][Ec("0x2a")](s)[Ec("0x1a")][Ec("0x38")]()}),{priority:Ec("0x16")})}[Ec("0xd")](){const t=this[Ec("0x42")].plugins[Ec("0x2a")](Ec("0x4b")),e=this.editor[Ec("0x64")][Ec("0x2a")](Ec("0x50")),n=Array[Ec("0x23")](t[Ec("0x9")],(t=>t[Ec("0xb")]))[Ec("0x5c")]((t=>this._viewToController.has(t))),o=[];for(const t of n){const e=this[Ec("0x17")][Ec("0x2a")](t).model[Ec("0x3a")]();o[Ec("0x49")](...e.reduce(((t,e)=>[...t,...e[Ec("0x54")]()]),[]))}e[Ec("0x3f")]=o}[Ec("0x13")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x42")][Ec("0x39")][Ec("0x2a")](Ec("0x31")),r=Yo(t,Ec("0x29"));n.buttonView[Ec("0x43")]({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("0x5b")].bind(Ec("0x1e")).to(o,Ec("0x2c")),n[Ec("0x5b")].on(Ec("0x4f"),(()=>{o[Ec("0x4f")](),this[Ec("0x42")][Ec("0x33")][Ec("0x1a")][Ec("0x38")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Ec("0x31")}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x4")),commandName:Ec("0xf")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x65")),commandName:"acceptSelectedSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x46")),commandName:Ec("0x55")}},{type:Ec("0x2"),model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:Ec("0x63")}}];for(const t of x){let e={type:Ec("0x20")};if(t.model){const n=new s.Model(t[Ec("0x3")]),o=this[Ec("0x42")][Ec("0x39")].get(n[Ec("0x27")]);n[Ec("0x3d")]("isOn",Ec("0x18")).to(o,Ec("0x2c"),Ec("0x18")),e={type:t[Ec("0x3c")],model:n}}i[Ec("0x5")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x5c")]((t=>null!=t[Ec("0x3")]))[Ec("0x11")]((t=>this[Ec("0x42")][Ec("0x39")][Ec("0x2a")](t[Ec("0x3")][Ec("0x27")]))),c=n[Ec("0x5b")];return c[Ec("0xc")][Ec("0x1c")](Ec("0x18")),c[Ec("0x1")][Ec("0x1c")](Ec("0x18")),c[Ec("0xc")][Ec("0x3d")](Ec("0x18")).to(o,Ec("0x18")),c[Ec("0x1")][Ec("0x3d")](Ec("0x18"))[Ec("0x2d")](a,Ec("0x18"),((...t)=>t[Ec("0x0")]((t=>t)))),n.on(Ec("0x4f"),(t=>{this[Ec("0x42")][Ec("0x4f")](t[Ec("0x21")].commandName),this[Ec("0x42")][Ec("0x33")][Ec("0x1a")][Ec("0x38")]()})),n}_initializeController(t){const e=this[Ec("0x42")],n=e.config,o=e.plugins.get(Ec("0x4b")),s=e[Ec("0x64")].get("CommentsRepository"),i=e[Ec("0x64")][Ec("0x2a")](Ec("0x48")),x=e.plugins[Ec("0x2a")](r.Users).me,a=n[Ec("0x2a")]("trackChanges")[Ec("0x25")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x64")].get("CommentsUI");let d,u;this[Ec("0x26")].has(t.id)?(u=this._annotationViews[Ec("0x2a")](t.id),d=u[Ec("0x5e")]):(d=new a(e[Ec("0x37")],t,x,{disableComments:this[Ec("0x24")],editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n[Ec("0x2a")](Ec("0x7")),maxThreadTotalWeight:n.get(Ec("0x36")),maxCommentCharsWhenCollapsed:n.get(Ec("0x4c")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x2a")](Ec("0x37"))),CommentView:n[Ec("0x2a")](Ec("0x2b"))[Ec("0x57")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x28")].on(Ec("0x4f"),(()=>{e[Ec("0x33")].view[Ec("0x38")]()})),d[Ec("0x60")].on(Ec("0x4f"),(()=>{e[Ec("0x33")][Ec("0x1a")].focus()})),u=o.createAnnotationView(this[Ec("0x42")].locale,d),u[Ec("0x3d")]("isDirty").to(d,Ec("0x8")),u[Ec("0x3d")](Ec("0x66")).to(d),u[Ec("0x3d")]("type").to(d,Ec("0x3c"),(t=>Ec("0x15")+t)),this._annotationViews[Ec("0x43")](t.id,u));const g=s[Ec("0x67")](t[Ec("0x35")],d),m=new oc(e,t,d,g),f=t[Ec("0x3a")]().filter((t=>t[Ec("0x44")]));d[Ec("0x45")]=e.plugins[Ec("0x2a")]("TrackChangesEditing")._descriptionFactory[Ec("0x30")](f),this[Ec("0x61")][Ec("0x43")](t,m),this[Ec("0x17")][Ec("0x43")](d,m);const h=o[Ec("0x51")]({view:u,target:()=>{const n=[],o=t[Ec("0x3a")]()[Ec("0x5c")]((t=>t.isInContent));for(const t of o)n[Ec("0x49")](...t[Ec("0x52")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Ec("0x15")+m.view[Ec("0x3c")]});o[Ec("0x5")](h),i.registerAnnotation(h)}[Ec("0x4a")](t){const e=this[Ec("0x42")][Ec("0x64")][Ec("0x2a")](Ec("0x4b")),n=this[Ec("0x61")][Ec("0x2a")](t),o=n[Ec("0x1a")],s=e[Ec("0x1b")](o);s&&e[Ec("0x47")](s),this._suggestionToController[Ec("0x5d")](t),this._viewToController[Ec("0x5d")](o),n[Ec("0x10")]()}[Ec("0x56")](t){if(!t[Ec("0x44")]||!this._suggestionToController[Ec("0x4d")](t))return;const e=this.editor[Ec("0x64")][Ec("0x2a")](Ec("0x50")),n=this[Ec("0x61")][Ec("0x2a")](t),o=t[Ec("0x3a")]();n[Ec("0x1a")][Ec("0x45")]=e[Ec("0x6")].getDescriptions(o)}[Ec("0x10")](){for(const t of this._suggestionToController[Ec("0x62")]())this[Ec("0x4a")](t);for(const t of this[Ec("0x26")].values())t[Ec("0x5e")][Ec("0x10")]();super[Ec("0x10")]()}}var Tc,Cc,yc=["pluginName","getSuggestion","get","editor","plugins","Comments","requires","addSuggestion","adapter","getSuggestions"];Tc=yc,Cc=392,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("0x4")](){return[Wa,_c,kc("0x3")]}static get[kc("0x8")](){return"TrackChanges"}set[kc("0x6")](t){this[kc("0x1")][kc("0x2")][kc("0x0")](Wa)[kc("0x6")]=t}get[kc("0x6")](){return this.editor.plugins[kc("0x0")](Wa)[kc("0x6")]}[kc("0x5")](t){return this.editor[kc("0x2")][kc("0x0")](Wa).addSuggestionData(t)}[kc("0x7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x1")].plugins[kc("0x0")](Wa).getSuggestions({skipNotAttached:t,toJSON:e})}[kc("0x9")](t){return this.editor[kc("0x2")].get(Wa).getSuggestion(t)}}const vc=["_context","TrackChangesDataGetter","extraPlugins","function","string","CommentsRepository","getRootNames","trackChangesData.editorCreator","includes","destroy","end","TrackChangesData","Users","getUser","tokenUrl","every","has","reduce","context","appendChild","editor","push","toolbar","document","addUser","getDataWithAcceptedSuggestions","init","createDocumentFragment","concat","define","requires","WebSocketGateway","name","set","config","cloudServices","editorCreator","users","get","getSuggestions","div","data","model","constructor","map","execute","track-changes-data-invalid-editor-creator","result","_adapter","createElement","filter","Autosave","find","from","names","useAnonymousUser","TrackChangesEditing","plugins","addSuggestionData","trackChangesData"];var Rc,Ic;Rc=vc,Ic=489,function(t){for(;--t;)Rc.push(Rc.shift())}(++Ic);const Sc=function(t,e){return vc[t-=0]},Lc=["initialData",Sc("0x9"),Sc("0xd")],Nc=[Sc("0x16"),"RevisionTracker",Sc("0x2a"),"WordCount","Pagination","DocumentOutline"];class Mc extends t.Plugin{static get[Sc("0x15")](){return[Wa]}static get pluginName(){return Sc("0x2")}[Sc("0x11")](){const t=this[Sc("0xb")];if(t.config[Sc("0x14")](Sc("0x3a"),(e=>t.constructor.create("",e))),Sc("0x36")!=typeof t[Sc("0x19")][Sc("0x1d")]("trackChangesData")[Sc("0x1b")])throw new e.CKEditorError(Sc("0x25"))}[Sc("0x10")](t){return Oc(this[Sc("0xb")],!0,t)}getDataWithDiscardedSuggestions(t){return Oc(this[Sc("0xb")],!1,t)}}class wc extends t.Plugin{static get pluginName(){return Sc("0x34")}constructor(t){super(t),this[Sc("0x26")]=Sc("0x1")}[Sc("0x11")](){this.editor[Sc("0x30")].get(Sc("0x38"))[Sc("0x27")]={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[Sc("0xb")].plugins[Sc("0x1d")](Sc("0x2f"))[Sc("0x27")]=null}}async function Oc(t,e,n){const o=function(t){const e={};for(const n of t.config[Sc("0x2d")]())Lc[Sc("0x3b")](n)||(e[n]=t[Sc("0x19")][Sc("0x1d")](n));e.cloudServices&&e[Sc("0x1a")][Sc("0x5")]&&delete e[Sc("0x1a")][Sc("0x5")];const n=t[Sc("0x22")].builtinPlugins||[],o=e[Sc("0x35")]||[];delete e[Sc("0x35")];const s=t[Sc("0x33")][Sc("0x19")].get(Sc("0x30"))||[],r=n[Sc("0x13")](e[Sc("0x30")])[Sc("0x13")](o)[Sc("0x13")](s)[Sc("0x23")]((t=>Sc("0x37")==typeof t?n[Sc("0x2b")]((e=>e.pluginName==t)):t)),i=Array[Sc("0x2c")](new Set(r)),x=new Map;return e[Sc("0x30")]=i[Sc("0x29")]((t=>Fc(t,x))),e[Sc("0x30")].push(Wa),e[Sc("0x30")][Sc("0xc")](wc),e}(t),s=document[Sc("0x12")](),r=t.config[Sc("0x1d")](Sc("0x32"))[Sc("0x1b")],i=await r(o,(()=>function(t){const e=document[Sc("0x28")](Sc("0x1f"));return t[Sc("0xa")](e),e}(s)));!function(t,e){const n=t[Sc("0x21")][Sc("0xe")][Sc("0x39")]()[Sc("0x8")](((e,n)=>(e[n]=t[Sc("0x20")][Sc("0x1d")]({rootName:n}),e)),{}),o=t[Sc("0x30")][Sc("0x1d")](Sc("0x3"))[Sc("0x1c")][Sc("0x23")]((t=>({id:t.id,name:t[Sc("0x17")]}))),s=t[Sc("0x30")][Sc("0x1d")](Sc("0x2f"))[Sc("0x1e")]({skipNotAttached:!0,toJSON:!0}),r=e[Sc("0x30")][Sc("0x1d")](Sc("0x3")),i=e[Sc("0x30")][Sc("0x1d")](Sc("0x2f"));for(const t of o)r[Sc("0x4")](t.id)||r[Sc("0xf")](t);r.me||r[Sc("0x2e")]();for(const t of s)i[Sc("0x31")](t);e[Sc("0x20")].set(n)}(t,i),i[Sc("0x24")](e?"acceptAllSuggestions":"discardAllSuggestions");const x=i[Sc("0x20")][Sc("0x1d")](n);return await i[Sc("0x0")](),x}function Fc(t,e){const n=Sc("0x36")==typeof t?t.pluginName||t.name:t;if(e[Sc("0x7")](n))return e[Sc("0x1d")](n);if(e[Sc("0x18")](n,!0),n&&Nc[Sc("0x3b")](n))return e[Sc("0x18")](n,!1),!1;if(!t[Sc("0x15")])return e[Sc("0x18")](n,!0),!0;const o=t.requires[Sc("0x6")]((t=>Fc(t,e)));return e[Sc("0x18")](n,o),o}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Mc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["has","forceDisabled","commands","_enableCommands","isEnabled","editor","clearForceDisabled","_isEnabledBasedOnSelection","_disableUnsupportedCommands","refresh","affectsData","_enabledCommands","TrackChangesCommand","execute","value"];var c,l;c=a,l=167,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0xc")]=!1,this.refresh(),this[u("0x5")]=!1}[u("0x7")](){this[u("0x2")]=!0}[u("0xb")](){this[u("0xc")]=!this[u("0xc")],this.value?this[u("0x6")]():this[u("0x1")]()}[u("0x6")](){for(const t of this.editor[u("0x0")].commands())t[u("0x8")]&&!this[u("0x9")][u("0xd")](t)&&t[u("0xe")]("TrackChangesCommand")}_enableCommands(){for(const t of this[u("0x3")][u("0x0")][u("0x0")]())t[u("0x8")]&&!this._enabledCommands[u("0xd")](t)&&t[u("0x4")](u("0xa"))}}const g=["acceptSuggestion","_suggestions","plugins","get","isEnabled","canEditAt","refresh","track-changes-accept-suggestion-not-found","_isEnabledBasedOnSelection","model","execute","editor"];var m,f;m=g,f=211,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("0x6")]=e,this.refresh(),this[h("0x1")]=!1}[h("0xb")](){this[h("0x9")]=!0}[h("0x3")](t){const n=this[h("0x6")][h("0x8")](t);if(!n)throw new e.CKEditorError(h("0x0"),this);const o=n.getRanges();this.editor[h("0x2")][h("0xa")](o)&&this[h("0x4")][h("0x7")][h("0x8")]("TrackChangesEditing")[h("0x5")](n)}}const b=["TrackChangesEditing","_suggestions","execute","editor","get","plugins","_isEnabledBasedOnSelection","refresh","isEnabled","track-changes-discard-suggestion-not-found","model"];var E,_;E=b,_=128,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("0x5")]=e,this[T("0x0")](),this[T("0xa")]=!1}[T("0x0")](){this[T("0x1")]=!0}[T("0x6")](t){const n=this[T("0x5")][T("0x8")](t);if(!n)throw new e.CKEditorError(T("0x2"),this);const o=n.getRanges();this[T("0x7")][T("0x3")].canEditAt(o)&&this[T("0x7")][T("0x9")][T("0x8")](T("0x4")).discardSuggestion(n)}}const y=["splice","getRanges","content","change","isInContent","isTouching","replace","schema","value","getMarkers","createPositionAfter","next","end","map","isArray","color","add","isIntersecting","createRange","start","isCollapsed","type","join"," [color ","deletion","from","sort","length","createPositionBefore","getRange"];var k,A;k=y,A=212,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x18")](((t,e)=>v("0x16")==t.type&&v("0x16")!=e[v("0x13")]?-1:v("0x16")!=t[v("0x13")]&&"deletion"==e[v("0x13")]?1:0))}function I(t,e){let n,o=0;const s=[],r=e[v("0x5")];for(;o<t[v("0x19")];){const i=t[o],x=t[o+1];n||(n=e[v("0x1a")](i)),S(e,i,x)||(s.push(e[v("0x10")](n,r.isObject(i)?e[v("0x8")](i):e.createPositionAt(i,"end"))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[v("0x8")](e),s=t[v("0x1a")](n);return o.isTouching(s)}function L(t,e,n){for(;n[v("0x19")];){const o=n[v("0x1c")](0,100);t[v("0x1")]((()=>{for(const t of o)t[v("0x2")]&&e.execute(t.id)}))}}const N=["editor","execute","model","some","_suggestions","canEditAt","isInContent","_isEnabledBasedOnSelection","isEnabled","refresh","_command","from","values"];var M,w;M=N,w=326,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("0x9")]=e,this[O("0x3")]=n,this[O("0x8")](),this[O("0x6")]=!1}[O("0x8")](){const t=Array[O("0xa")](this[O("0x3")].values())[O("0x2")]((t=>t[O("0x5")]));this[O("0x7")]=this[O("0x9")].isEnabled&&t}[O("0x0")](){const t=R(Array[O("0xa")](this._suggestions[O("0xb")]()));for(const e of t){const t=e.getRanges();if(!this[O("0xc")][O("0x1")][O("0x4")](t))return}L(this[O("0xc")][O("0x1")],this[O("0x9")],t)}}const P=["model","_selectedSuggestions","editor","from","_isEnabledBasedOnSelection","_command","values","selection","execute","size","_suggestions","isEnabled"];var D,B;D=P,B=258,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("0xb")]=e,this[j("0x4")]=n,this[j("0x7")]=new Set,this.refresh(),this[j("0xa")]=!1}refresh(){const t=this.editor[j("0x6")].document[j("0x1")],e=Array[j("0x9")](this[j("0x4")][j("0x0")]());this[j("0x7")]=function(t,e){const n=Array[v("0x17")](t[v("0x1d")]()),o=new Set;for(const s of e)if(s[v("0x2")])for(const e of n)for(const n of s[v("0x7")]()){const r=n[v("0x1b")]();(e[v("0xf")](r)||t[v("0x12")]&&!s.isMultiRange&&s[v("0x9")]&&r[v("0xa")][v("0x3")](e[v("0x11")]))&&o[v("0xe")](s)}return o}(t,e),this.isEnabled=this[j("0xb")][j("0x5")]&&!!this[j("0x7")][j("0x3")]}[j("0x2")](){const t=R(Array.from(this[j("0x7")]));for(const e of t){const t=e.getRanges();if(!this.editor[j("0x6")].canEditAt(t))return}L(this[j("0x8")][j("0x6")],this[j("0xb")],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 Q=$;const J=function(){this.__data__=new Q,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Nt=Lt(ot,"Map");const 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||Q),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const 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 Qt=$t;const Jt=function(t,e){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new Q(t);this.size=e.size}Zt.prototype.clear=J,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Jt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Qe=$e?$e.allocUnsafe:void 0;const Je=function(t,e){if(e)return t.slice();var n=t.length,o=Qe?Qe(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const 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]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?ke(Xn):qn;var Qn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Yn={};Yn[Qn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Jn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=In(e),g=d==Jn||"[object GeneratorFunction]"==d;if(be(e))return Je(e,a);if(d==Zn||d==Qn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Qt),n}io.Cache=Qt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Qt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const 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=Io;case"[object Set]":var a=1&o;if(x||(x=So),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["_onDiscard","nodeAfter","split","push","discard","getRange","previous","onAccept","start","isInContent","reduce","addMarker","toJSON","get","set","getMarkers","add","length","_onAttributesChange","getItems","change","subType","isMultiRange","getAllAdjacentSuggestions","nodeBefore","data","isIntersecting","authoredAt","@external","substr","_model","next","end","decorate","creator","addMarkerName","attributes","commentThread","accept","clear","getFirstRange","removeMarker","_saved","delete","from","isIntersectingWithRange","createdAt","onAttributesChange","_markerNames","_onAccept","removeMarkers","getFirstMarker","removeAttribute","getRanges","getMarkerNames","onDiscard","head","getMultiRangeId","getContainedElement","addRange","type","author","hasComments","setAttribute"];var $o,Qo;$o=Xo,Qo=205,function(t){for(;--t;)$o.push($o.shift())}(++Qo);const Jo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Jo("0x2f")]=e.type,this.subType=e.subType||null,this[Jo("0x30")]=e[Jo("0x30")],this[Jo("0x15")]=e[Jo("0x15")]||e[Jo("0x30")],this.isExternal=Boolean(e[Jo("0x17")]&&e[Jo("0x17")][Jo("0xf")]),this[Jo("0xc")]=null,this[Jo("0x11")]=t,this[Jo("0x24")]=e[Jo("0x3a")],this[Jo("0x33")]=e[Jo("0x2a")],this[Jo("0x5")]=e[Jo("0x22")],this._markerNames=new Set,this[Jo("0x21")]=null,this.set(Jo("0xe"),null),this[Jo("0x1")](Jo("0x17"),e[Jo("0x17")]||{}),this[Jo("0x1")](Jo("0x39"),null),this[Jo("0x1")](Jo("0x12"),null),this[Jo("0x1")](Jo("0x18"),null),this.set(Jo("0x1d"),!1),this[Jo("0x14")](Jo("0x19")),this[Jo("0x14")](Jo("0x37"))}get[Jo("0x2b")](){let t=this;for(;t.previous;)t=t[Jo("0x39")];return t}get[Jo("0x31")](){return!!this[Jo("0x18")]&&this[Jo("0x18")][Jo("0x4")]>0}get[Jo("0x9")](){return 0!=this._markerNames.size&&6==Array[Jo("0x1f")](this[Jo("0x23")])[0][Jo("0x35")](":")[Jo("0x4")]}get[Jo("0x3c")](){return null!==this.getFirstMarker()}[Jo("0x16")](t){this._markerNames[Jo("0x3")](t)}getMarkerNames(){return Array.from(this[Jo("0x23")])}[Jo("0x2")](){return this[Jo("0x29")]().map((t=>this[Jo("0x11")].markers[Jo("0x0")](t))).filter((t=>t))}getFirstMarker(){return this[Jo("0x2")]()[0]||null}[Jo("0x25")](){this[Jo("0x11")][Jo("0x7")]((t=>{for(const e of this[Jo("0x2")]())t[Jo("0x1c")](e)})),this._markerNames[Jo("0x1a")]()}[Jo("0x1c")](t){this[Jo("0x11")][Jo("0x7")]((e=>{e[Jo("0x1c")](t)})),this[Jo("0x23")][Jo("0x1e")](t)}[Jo("0x2e")](t){const e="suggestion:"+this[Jo("0x2f")]+":"+this.subType+":"+this.id+":"+this[Jo("0x15")].id+":"+Zo[Jo("0x2c")]();this[Jo("0x16")](e),this._model[Jo("0x7")]((n=>{n[Jo("0x3e")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Jo("0x20")](t){for(const e of this[Jo("0x28")]())if(e[Jo("0xd")](t))return!0;return!1}[Jo("0x28")](){return this[Jo("0x2")]().map((t=>t[Jo("0x38")]()))}[Jo("0x6")](){return this[Jo("0x28")]()[Jo("0x3d")](((t,e)=>[...t,...e[Jo("0x6")]()]),[])}[Jo("0x1b")](){var t;return(null===(t=this[Jo("0x26")]())||void 0===t?void 0:t[Jo("0x38")]())||null}[Jo("0x2d")](){const t=this[Jo("0x28")]();if(1!=t.length)return null;const e=t[0],n=e[Jo("0x3b")][Jo("0x34")],o=e[Jo("0x13")][Jo("0xb")];return n instanceof i.Element?n!=o?null:n:null}[Jo("0x19")](){this._onAccept(this.getRanges(),this.data,this[Jo("0x17")]),this[Jo("0x25")]()}[Jo("0x37")](){this[Jo("0x33")](this[Jo("0x28")](),this[Jo("0xc")],this[Jo("0x17")]),this[Jo("0x25")]()}[Jo("0xa")](){const t=[];let e=this[Jo("0x2b")];for(;e;)t[Jo("0x36")](e),e=e[Jo("0x12")];return t}[Jo("0x32")](t,e){const n=eo(this[Jo("0x17")]);_o(n,t,e),Go(n,this[Jo("0x17")])||(this[Jo("0x17")]=n,this[Jo("0x5")](n))}[Jo("0x27")](t){const e=eo(this[Jo("0x17")]);qo(e,t),Go(e,this[Jo("0x17")])||(this.attributes=e,this[Jo("0x5")](this[Jo("0x17")]))}[Jo("0x3f")](){return{id:this.id,type:this[Jo("0x8")]?this[Jo("0x2f")]+":"+this[Jo("0x8")]:this[Jo("0x2f")],authorId:this[Jo("0x15")].id,createdAt:this[Jo("0x21")],hasComments:this.hasComments,data:this[Jo("0xc")],attributes:this[Jo("0x17")]}}static[Jo("0x2c")](){return(0,e.uid)()[Jo("0x10")](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=["addObject","previousSibling","element","length","Object","Container","indexOf","_schema","elementStart","_addDescriptionItems","isEmpty","getItemLabel","addEmptyContainer","isInContent","label","normal","$textProxy","type","removeObject","elementEnd","deletion","*Remove:* %0","*Merge:* %0","remove","item","addContainer","$1 $2","_locale","removeContainer","ELEMENT_SPACE","isObject","text","EmptyContainer","registerElementLabel","_resolveDescriptionItems","_itemLabelsCallbacks","*Insert:* %0","get","push","skip","insertion","quantity","add","removeEmptyContainer","name","replace","getFirstRange","_customCallbacks","REPLACE_TEXT","match","start","nextSibling","data","pop","getDescriptions","checkChild","softBreak","*Split:* %0","_itemLabels"];var es,ns;es=ts,ns=221,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this._customCallbacks=[],this[os("0xe")]=new Map,this._itemLabelsCallbacks=[],this[os("0x16")]=t,this[os("0x2a")]=e}[os("0xa")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[os("0x1c")])continue;let s=!1;for(const t of this[os("0x3")]){const n=t(o);if(n){os("0x20")in n&&e[os("0x35")](n),s=!0;break}}if(!s){this[os("0x18")](e,o);const s=t[n+1];if(s&&!o[os("0x2")]().end.isEqual(s.getFirstRange()[os("0x6")])){const t=e[e[os("0x12")]-1],n=os("0x37")==o[os("0x20")]?"add":os("0x26");t&&os("0x2e")==t.type&&(t[n]+="\n")}}}return this[os("0x31")](e)}registerDescriptionCallback(t){this._customCallbacks[os("0x35")](t)}[os("0x30")](t,n,o=e.priorities[os("0x1e")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[os("0x32")],{matchingCallback:t,label:n,priority:o}):this._itemLabels.set(t,n)}getItemLabel(t,e=1){let n;for(const e of this[os("0x32")])if(e.matchingCallback(t)){n=e[os("0x1d")];break}return n||(n=this[os("0xe")][os("0x34")](t[os("0x0")])),n?n(e):1!==e?e+" "+t.name+"s":""+t.name}_addDescriptionItems(t,e){const n=e[os("0x2")]().getWalker(),o=os("0x37")==e[os("0x20")]?os("0x39"):os("0x26");for(const e of n){const s=e[os("0x27")],r=t[t[os("0x12")]-1];if(s.is(os("0x1f")))r&&r[os("0x20")].indexOf(os("0x14"))>-1&&t[os("0x9")](),r&&os("0x2e")==r[os("0x20")]?r[o]+=s[os("0x8")]:t[os("0x35")]({type:os("0x2e"),add:"add"==o?s[os("0x8")]:"",remove:os("0x26")==o?s.data:""});else if(this[os("0x16")].isObject(s)){const i=s;if(r&&r.type[os("0x15")](os("0x14"))>-1&&t[os("0x9")](),os("0x22")==e[os("0x20")])continue;r&&r[os("0x20")]==o+os("0x13")&&r[os("0x11")][os("0x0")]==i[os("0x0")]?r[os("0x38")]++:t.push({type:o+"Object",element:i,quantity:1}),n[os("0x36")]((t=>!(os("0x22")==t[os("0x20")]&&t[os("0x27")]==s)))}else if(this[os("0x16")][os("0xb")](s,"$text")||s.is(os("0x11"),os("0xc"))){const n=s;if("add"==o&&os("0x17")==e.type||"remove"==o&&os("0x22")==e[os("0x20")])continue;if(r&&-1==r[os("0x20")][os("0x15")](os("0x14"))){os("0x2e")==r[os("0x20")]&&(r[o]+="\n");continue}let i;if(i="add"==o?n.nextSibling&&!this[os("0x16")][os("0x2d")](n[os("0x7")])?n[os("0x7")]:null:n[os("0x10")]&&!this[os("0x16")][os("0x2d")](n[os("0x10")])?n[os("0x10")]:null,n[os("0x19")]||i&&i[os("0x19")]){const e=i&&i[os("0x19")]?i:n;r&&r.type==o+os("0x2f")&&r[os("0x11")][os("0x0")]==e.name?r.quantity++:t[os("0x35")]({type:o+os("0x2f"),element:e,quantity:1})}else t[os("0x35")]({type:o+os("0x14"),element:n})}}}[os("0x31")](t){const e=this[os("0x2a")],n=[];for(const o of t){switch(o.type){case os("0x2e"):if(o[os("0x39")]=o[os("0x39")].replace(/(\S)\u000A+(\S)/g,os("0x29")).replace(/\u000A/g,""),o[os("0x26")]=o[os("0x26")][os("0x1")](/(\S)\u000A+(\S)/g,os("0x29")).replace(/\u000A/g,""),""!=o.add&&""!=o.remove){n.push({type:os("0x1"),content:Yo(e,os("0x4"),['"'+o[os("0x26")]+'"','"'+o.add+'"'])});continue}if(null!=o[os("0x39")][os("0x5")](/^ +$/)){n[os("0x35")]({type:os("0x37"),content:Yo(e,"*Insert:* %0",Yo(e,os("0x2c"),o[os("0x39")].length))});continue}if(null!=o[os("0x26")][os("0x5")](/^ +$/)){n.push({type:os("0x23"),content:Yo(e,os("0x24"),Yo(e,os("0x2c"),o[os("0x26")][os("0x12")]))});continue}if(""!=o[os("0x39")]){n[os("0x35")]({type:"insertion",content:Yo(e,os("0x33"),'"'+o.add+'"')});continue}n[os("0x35")]({type:"deletion",content:Yo(e,os("0x24"),'"'+o[os("0x26")]+'"')});continue;case os("0x1b"):case os("0xf"):n.push({type:os("0x37"),content:Yo(e,os("0x33"),this[os("0x1a")](o[os("0x11")],o[os("0x38")]))});continue;case os("0x3a"):case os("0x21"):n.push({type:"deletion",content:Yo(e,os("0x24"),this[os("0x1a")](o[os("0x11")],o[os("0x38")]))});continue;case os("0x28"):n[os("0x35")]({type:"insertion",content:Yo(e,os("0xd"),this.getItemLabel(o[os("0x11")],o.quantity))});continue;case os("0x2b"):n.push({type:"deletion",content:Yo(e,os("0x25"),this[os("0x1a")](o[os("0x11")],o[os("0x38")]))});continue}n[os("0x35")](o)}return n}}const rs=["FORMAT_ALIGN_TO_CENTER","contentLanguageDirection","locale","ltr","registerDescriptionCallback","AlignmentEditing","has","*Format:* %0","left","enableCommand","editor","get","TrackChangesEditing","model","_descriptionFactory","filter","markBlockFormat","getAttribute","value","plugins","right","alignment","FORMAT_ALIGN_TO_LEFT","justify","schema","document","center","commandName","afterInit","FORMAT_ALIGN_TO_RIGHT"];var is,xs;is=rs,xs=472,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("0x12")],e=t[as("0xa")];if(!t[as("0x1b")][as("0xe")](as("0xd")))return;const n=t[as("0x1b")][as("0x13")](as("0x14"));n[as("0x11")](as("0x1d"),((e,o={})=>{let s=o[as("0x1a")];o[as("0x1a")]||(s=as("0xb")===t[as("0xa")][as("0x9")]?as("0x10"):as("0x1c"));const r=Array.from(this[as("0x12")][as("0x15")][as("0x3")].selection.getSelectedBlocks())[as("0x17")]((t=>function(t,e,n){const o=t[as("0x19")](as("0x1d"))||null;return e.checkAttribute(t,"alignment")&&n!=o}(t,this.editor[as("0x15")][as("0x2")],s)));t[as("0x15")].change((()=>{for(const t of r)n[as("0x18")](t,{commandName:as("0x1d"),commandParams:[{value:s}]})}))})),n[as("0x16")][as("0xc")]((t=>{const{data:n}=t;if(n&&as("0x1d")==n[as("0x5")]){const t=n.commandParams[0][as("0x1a")];return{type:"format",content:Yo(e,as("0xf"),function(t){switch(t){case"left":return Yo(e,as("0x0"));case as("0x1c"):return Yo(e,as("0x7"));case as("0x4"):return Yo(e,as("0x8"));case as("0x1"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["isAtEnd","push","isLimit","parent","getWalker","nextSibling","includes","writer","getCustomProperty","test","markerRange","insert","plugins","mapper","getItems","previousPosition","span","toViewElement","listItem","type","element","get","model","elementEnd","ck-suggestion-marker-","name","markerName","addClass","start","activeMarkers","bindElementToMarker","consumable","getAttribute","ck-suggestion-marker--active","item","isContent"];var us,ds;us=ls,ds=348,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x1a")]())s.hasAttribute(t)&&o[gs("0xd")](n.createRangeOn(s));return o}function fs(t){const e=[];if(t.is(gs("0x20"),gs("0x1e"))){let n=t[gs("0x11")];for(;n&&n.is(gs("0x20"),gs("0x1e"))&&n[gs("0x8")]("listIndent")>0;)e[gs("0xd")](n),n=n[gs("0x11")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x18")][gs("0x21")]("TrackChangesEditing");return(s,r,i)=>{if(!i[gs("0x7")][gs("0x15")](r[gs("0x16")],s[gs("0x1")]))return;const x=r[gs("0x16")][gs("0x10")](),a=r[gs("0x16")][gs("0x4")],c=t[gs("0x22")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gs("0xa")];d=d||c[gs("0xb")](e);const n=i[gs("0x19")][gs("0x1d")](e);if(n&&n[gs("0x14")]("addHighlight"))return;gs("0x23")==t[gs("0x1f")]&&c.isBlock(e)&&!c[gs("0xe")](e)&&(e[gs("0x11")]||a[gs("0xc")]?l&&l[gs("0xf")]==e||(l=e,m(t[gs("0x1b")]),g=!0):u=u||t[gs("0x1b")])}function m(t){const s=i[gs("0x13")].createUIElement(gs("0x1c"),{class:gs("0x0")+e}),x=i.mapper.toViewPosition(t);n&&o[gs("0x5")][gs("0x12")](r[gs("0x2")])&&i.writer[gs("0x3")](gs("0x9"),s),i[gs("0x13")][gs("0x17")](x,s),i[gs("0x19")][gs("0x6")](s,r[gs("0x2")])}d||g||!u||m(u)}}const ps=["format","registerDescriptionCallback","FORMAT_ITALIC","plugins","FORMAT_BOLD","_descriptionFactory","FORMAT_SUPERSCRIPT","FORMAT_STRIKETHROUGH","value","enableCommand","BoldEditing","document","*Remove format:* %0","SuperscriptEditing","FORMAT_CODE","subscript","UnderlineEditing","change","CodeEditing","TrackChangesEditing","toLowerCase","ItalicEditing","has","selection","model","forceValue","editor","superscript","from","isCollapsed","StrikethroughEditing","commandName","commandParams"];var bs,Es;bs=ps,Es=303,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x4"),_s("0xf"),_s("0xa"),_s("0xc"),_s("0x18"),"SubscriptEditing",_s("0x7")];class Cs extends t.Plugin{afterInit(){const t=this[_s("0x14")],e=t[_s("0x12")],n=t[_s("0x1e")].get(_s("0xd")),o=t.locale;for(const o of Ts){if(!t.plugins[_s("0x10")](o))continue;const s=o.slice(0,-7)[_s("0xe")](),r=t.commands.get(s);n[_s("0x3")](s,((t,o={})=>{const i=e[_s("0x5")][_s("0x11")];if(i[_s("0x17")])return void t(o);const x=void 0!==o[_s("0x13")]?o.forceValue:!r[_s("0x2")];e[_s("0xb")]((()=>{const t=Array[_s("0x16")](i.getRanges());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x20")][_s("0x1c")]((n=>{const{data:s}=n;if(s&&s[_s("0x19")]===t)return s[_s("0x1a")][0].forceValue?{type:_s("0x1b"),content:Yo(o,"*Format:* %0",e)}:{type:_s("0x1b"),content:Yo(o,_s("0x6"),e)}}))}s("bold",Yo(o,_s("0x1f"))),s("italic",Yo(o,_s("0x1d"))),s("underline",Yo(o,"FORMAT_UNDERLINE")),s("code",Yo(o,_s("0x8"))),s("strikethrough",Yo(o,_s("0x1"))),s(_s("0x9"),Yo(o,"FORMAT_SUBSCRIPT")),s(_s("0x15"),Yo(o,_s("0x0")))}}const ys=["filter","commandParams","blockQuote","registerDescriptionCallback","getSelectedBlocks","schema","afterInit","change","get","editor","locale","forceValue","commandName","enableCommand","format","parent","*Remove format:* %0","name","ELEMENT_BLOCK_QUOTE","plugins","commands","checkChild","selection","model","BlockQuoteEditing","*Format:* %0","has","document","from","markBlockFormat","$root"];var ks,As;ks=ys,As=263,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x16")](){const t=this.editor,e=t[vs("0x1a")];if(!t[vs("0x4")][vs("0xb")](vs("0x9")))return;const n=t[vs("0x4")][vs("0x18")]("TrackChangesEditing"),o=this[vs("0x19")][vs("0x5")].get(vs("0x12"));n[vs("0x1d")]("blockQuote",((e,s={})=>{const r=this[vs("0x19")].model[vs("0xc")][vs("0x7")],i=s&&void 0!==s[vs("0x1b")]?s[vs("0x1b")]:!o.value;let x=[];if(i){const e=Array[vs("0xd")](r[vs("0x14")]())[vs("0x10")]((t=>Is(t)||function(t,e){const n=e[vs("0x6")](t.parent,vs("0x12")),o=e[vs("0x6")]([vs("0xf"),vs("0x12")],t);return n&&o}(t,this.editor.model[vs("0x15")])));x=I(e,t.model)}else{const e=Array[vs("0xd")](r[vs("0x14")]())[vs("0x10")]((t=>Is(t)));x=I(e,t.model)}t[vs("0x8")][vs("0x17")]((()=>{for(const t of x)n[vs("0xe")](t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0x13")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[vs("0x1c")]){const t=Yo(e,vs("0x3"));return n[vs("0x11")][0].forceValue?{type:vs("0x1e"),content:Yo(e,vs("0xa"),t)}:{type:"format",content:Yo(e,vs("0x1"),t)}}}))}}function Is(t){return vs("0x12")==t[vs("0x0")][vs("0x2")]}const Ss=["afterInit","ckbox","TrackChangesEditing","enableCommand","editor","get"];var Ls,Ns;Ls=Ss,Ns=337,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ms("0x5")](){const t=this[Ms("0x3")];t.commands[Ms("0x4")](Ms("0x0"))&&t.plugins[Ms("0x4")](Ms("0x1"))[Ms("0x2")](Ms("0x0"))}}const Os=["indentCodeBlock","getSelectedBlocks","value","label","*Format:* %0","markBlockFormat","codeBlock","parent","find","CodeBlock","TrackChangesEditing","locale","model","change","afterInit","isLimit","checkChild","format","has","rootElement","language","_descriptionFactory","enableCommand","document","get","blockName","formatBlock","from","plugins","registerElementLabel","name","filter","forceValue","commandParams","schema","ELEMENT_CODE_BLOCK","commands","*Remove format:* %0"];var Fs,Ps;Fs=Os,Ps=349,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x7")](){const t=this.editor;if(!t[Ds("0x15")][Ds("0xb")](Ds("0x2")))return;const e=t[Ds("0x15")][Ds("0x11")](Ds("0x3")),n=t[Ds("0x4")],o=t.config[Ds("0x11")](Ds("0x25")).languages,s=t[Ds("0x1d")][Ds("0x11")](Ds("0x25"));e[Ds("0xf")](Ds("0x1f")),e[Ds("0xf")]("outdentCodeBlock"),e[Ds("0xf")](Ds("0x25"),((n,r={})=>{const i=t[Ds("0x5")],x=t[Ds("0x5")][Ds("0x10")].selection,a=r&&void 0!==r[Ds("0x19")]?r[Ds("0x19")]:!s[Ds("0x21")];let c;r.language||(r[Ds("0xd")]=o[0].language),c=a?Array[Ds("0x14")](x[Ds("0x20")]()).filter((t=>{return js(t)||(e=t,n=i[Ds("0x1b")],!e.is(Ds("0xc"))&&!n[Ds("0x8")](e)&&n[Ds("0x9")](e[Ds("0x0")],Ds("0x25")));var e,n})):Array.from(x.getSelectedBlocks())[Ds("0x18")]((t=>js(t)));const l=I(c,i);i[Ds("0x6")]((()=>{for(const t of l)e[Ds("0x24")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x12")})}))})),e[Ds("0xe")][Ds("0x16")](Ds("0x25"),(t=>Yo(n,Ds("0x1c"),t))),e[Ds("0xe")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x13")==s&&r&&Ds("0x25")==r.commandName){const t=r[Ds("0x1a")][0][Ds("0xd")],s=e(o[Ds("0x1")]((e=>e[Ds("0xd")]===t))[Ds("0x22")]);return r[Ds("0x1a")][0][Ds("0x19")]?{type:Ds("0xa"),content:Yo(n,Ds("0x23"),Yo(n,Ds("0x1c"),1)+" ("+s+")")}:{type:Ds("0xa"),content:Yo(n,Ds("0x1e"),Yo(n,Ds("0x1c"),1))}}}))}}function js(t){return Ds("0x25")==t[Ds("0x17")]}const Us=["enableCommand","addCommentThread","has","TrackChangesEditing","CommentsEditing","get","plugins"];var Gs,Hs;Gs=Us,Hs=160,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{afterInit(){const t=this.editor;t[zs("0x0")][zs("0x3")](zs("0x5"))&&t.plugins[zs("0x6")](zs("0x4"))[zs("0x1")](zs("0x2"))}}var Vs=n(181);const Ks=["removeMarker:suggestion:deletion","getFirstRange","enqueueChange","buffer","start","TrackChangesEditing","end","createRange","mapper","addMarker:suggestion:deletion","root","delete","high","downcastDispatcher","modifySelection","merge","model","options","bind","markerNameToElements","plugins","batch","lock","isCollapsed","data","deleteForward","document","unit","markerName","fromRange","setSelection","remove","unlock","init","editing","showSuggestionHighlights","selection","commands"];var qs,Xs;qs=Ks,Xs=140,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Qs extends t.Plugin{static get requires(){return[Vs.Delete]}[$s("0x7")](){const t=this.editor,e=t[$s("0x20")].get($s("0x11"));e.enableCommand($s("0x17"));const n=t[$s("0xb")].get($s("0x25"));e.enableCommand($s("0x25"),((e,o={})=>{const s=t.model.createSelection(t.model[$s("0x0")][$s("0xa")]);s[$s("0x23")]&&t[$s("0x1c")][$s("0x1a")](s,{direction:"forward",unit:o[$s("0x1")]});const r=s[$s("0xd")](),x=i.LiveRange[$s("0x3")](r);let a;e(o),a="$graveyard"==x[$s("0x16")].rootName?t[$s("0x1c")].createRange(r[$s("0x10")]):t.model.createRange(x[$s("0x10")],x[$s("0x12")]),x.detach(),t[$s("0x1c")][$s("0xe")](n[$s("0xf")][$s("0x21")],(t=>{n[$s("0xf")][$s("0x22")](),t[$s("0x4")](t[$s("0x13")](a[$s("0x12")])),n[$s("0xf")][$s("0x6")]()}))})),t[$s("0x8")].downcastDispatcher.on($s("0x15"),hs(t,$s("0x1b")),{priority:$s("0x18")}),t[$s("0x24")][$s("0x19")].on($s("0x15"),((e,n,o)=>{o[$s("0x1d")][$s("0x9")]&&hs(t,$s("0x1b"),{showActiveMarker:!1})[$s("0x1e")](this)(e,n,o)}),{priority:$s("0x18")}),t[$s("0x8")][$s("0x19")].on($s("0xc"),((t,e,n)=>{const o=n[$s("0x14")][$s("0x1f")](e.markerName);if(o)for(const t of o)t.is("uiElement")&&(n[$s("0x14")].unbindElementFromMarkerName(t,e[$s("0x2")]),n.writer[$s("0x5")](t))}),{priority:$s("0x18")})}}const Js=["commands","ELEMENT_NUMBERED_LIST","length","fromRange","multipleBlocks","getFirstRange","containsItem","commandParams","nodeAfter","isFirstBlockOfListItem","hasAttribute","toUpperCase","setSelection","refresh","format","value","formatBlock","_descriptionFactory","registerCustomCallback","createRange","nextSibling","add","findIndex","*Merge:* %0","indentList","DocumentListEditing","ELEMENT_LIST_ITEM","has","enableCommand","previousSibling","start","markBlockFormat","getAttribute","*Change to:* %0","ELEMENT_","registerElementLabel","bulletedList","splitListItemAfter","listType","listIndent","detach","getRanges","forceValue","execute","getSelectedBlocks","markMultiRangeBlockFormat","editor","*Indent:* %0","*Outdent:* %0","*Format:* remove from %0","get","parent","selection","from","DocumentListUtils","before","mergeListItemForward","createPositionAt","plugins","_suggestionFactory","splitListItemBefore","isObject","commandName","push","outdentList","model","change","end","after","next","expandListBlocksToCompleteList","listItemId","*Format:* insert into %0","afterInit","registerDescriptionCallback","numberedList","document","documentList","_LIST","mergeListItemBackward"];var Zs,Ys;Zs=Js,Ys=260,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Js[t-=0]};class er extends t.Plugin{[tr("0x35")](){const t=this[tr("0x1a")];if(!t[tr("0x26")][tr("0x7")](tr("0x5")))return;const e=t.locale,n=t[tr("0x26")][tr("0x1e")]("TrackChangesEditing"),o=t.plugins[tr("0x1e")](tr("0x22"));function s(e){return()=>{const s=t[tr("0x3c")].get(e);let r=Array[tr("0x21")](t[tr("0x2d")][tr("0x38")][tr("0x20")][tr("0x18")]());if(a(e)){r=o[tr("0x32")](r);const t=[];for(const e of r)o[tr("0x45")](e)&&t.push(e);r=t}t[tr("0x2d")][tr("0x2e")]((()=>{n[tr("0x19")](r,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:"listType"},[],tr("0x39"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x21")](t);const n=e[tr("0x2")]((t=>!t[tr("0x46")](tr("0x33"))));return n>-1&&(e=e.slice(0,n)),e}(t.model[tr("0x38")][tr("0x20")][tr("0x18")]()),s=o[o[tr("0x3e")]-1],r=t[tr("0x2d")].schema.isObject(s)?tr("0x30"):tr("0x2f"),i=t[tr("0x2d")][tr("0x4f")](t[tr("0x2d")][tr("0x25")](o[0],"before"),t[tr("0x2d")][tr("0x25")](s,r));t[tr("0x2d")][tr("0x2e")]((()=>{n[tr("0xb")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x12")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x0")];for(;t&&t[tr("0xc")](tr("0x13"))>n[tr("0xc")](tr("0x13"));)e[tr("0x1")](t),t=t[tr("0x0")]}return Array[tr("0x21")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x2d")][tr("0x38")][tr("0x20")][tr("0x18")]()[tr("0x31")]()[tr("0x4b")],s=t[tr("0x2d")].createPositionAt(o,tr("0x23")),r=t[tr("0x2d")][tr("0x25")](o,0),i=t[tr("0x2d")].createRange(s,r);t[tr("0x2d")][tr("0x2e")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:tr("0x12")})}))}}function a(e){const n=t.commands[tr("0x1e")](tr("0x10")).value,o=t.commands[tr("0x1e")](tr("0x37")).value;return tr("0x37")===e?n:o}n.enableCommand(tr("0x37"),s(tr("0x37"))),n[tr("0x8")](tr("0x10"),s(tr("0x10"))),n[tr("0x8")](tr("0x4"),r(tr("0x4"))),n[tr("0x8")]("outdentList",r(tr("0x2c"))),n.enableCommand(tr("0x11"),x("splitListItemAfter")),n[tr("0x8")](tr("0x28"),x(tr("0x28"))),n[tr("0x4d")][tr("0xf")]((function(e){const n=!t[tr("0x2d")].schema[tr("0x29")](e),o=e[tr("0x9")],s=e[tr("0x0")],r=e[tr("0xc")](tr("0x33")),i=!o||o[tr("0xc")](tr("0x33"))!==r,x=!s||s[tr("0xc")](tr("0x33"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[tr("0x4d")][tr("0x36")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x2a")]){case tr("0x10"):r=n[tr("0x43")][0][tr("0x16")],i=a(n[tr("0x2a")]),o=r?tr("0x34"):"*Format:* remove from %0",i&&(o=tr("0xd")),s={type:tr("0x4a"),content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case tr("0x37"):r=n[tr("0x43")][0][tr("0x16")],i=a(n[tr("0x2a")]),o=tr(r?"0x34":"0x1d"),i&&(o="*Change to:* %0"),s={type:tr("0x4a"),content:Yo(e,o,Yo(e,tr("0x3d")))};break;case tr("0x4"):o=tr("0x1b"),s={type:tr("0x4a"),content:Yo(e,o,Yo(e,tr("0x6")))};break;case"outdentList":o=function(t){const e=t[tr("0x41")]();let n=e[tr("0xa")][tr("0x44")];for(;n&&e[tr("0x42")](n);){if(n[tr("0xc")](tr("0x13"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x1d"),Yo(e,function(t){const e=t[tr("0x41")]()[tr("0xa")][tr("0x44")];return tr("0xe")+e.getAttribute(tr("0x12"))[tr("0x47")]()+tr("0x3a")}(t))):Yo(e,tr("0x1c"),Yo(e,tr("0x6"))),s={type:"format",content:o};break;case tr("0x3b"):case tr("0x24"):!1===n[tr("0x40")]&&(o=tr("0x3"),s={type:"deletion",content:Yo(e,o,Yo(e,tr("0x6")))})}return s})),n[tr("0x27")][tr("0x4e")](tr("0x4c"),tr("0x39"),"accept",(function(e,n){const o=[];for(let n of e)n[tr("0xa")][tr("0x44")]===n.end[tr("0x1f")]&&(n=t[tr("0x2d")][tr("0x4f")](t[tr("0x2d")][tr("0x25")](n[tr("0xa")].nodeAfter,0))),o[tr("0x2b")](n);t[tr("0x2d")].change((e=>{const s=t[tr("0x2d")][tr("0x38")][tr("0x20")],r=Array[tr("0x21")](s[tr("0x15")]()).map((t=>i.LiveRange[tr("0x3f")](t)));e.setSelection(o),t[tr("0x3c")][tr("0x1e")](n[tr("0x2a")])[tr("0x49")](),n.commandParams[tr("0x2b")]({forceDefaultExecution:!0}),t[tr("0x17")](n[tr("0x2a")],...n[tr("0x43")]),e[tr("0x48")](r);for(const t of r)t[tr("0x14")]()}))}))}}var nr=n(331);const or=["data","editing","editor","init","enter","unbindElementFromMarkerName","markerName","afterExecute","ck-suggestion-marker-split","requires","detach","markerNameToElements","end","document","mapper","createRange","addMarker:suggestion:insertion","showSuggestionHighlights","high","enableCommand","parent","setSelection","hasClass","getFirstRange","commands","fromRange","model","change","get","downcastDispatcher","getFirstPosition","split","selection","fire"];var sr,rr;sr=or,rr=245,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x2")](){return[nr.Enter]}[ir("0x1e")](){const t=this[ir("0x1d")],e=t.plugins[ir("0x15")]("TrackChangesEditing"),n=t[ir("0x11")][ir("0x15")](ir("0x1f"));e[ir("0xc")]("enter",(()=>{t[ir("0x13")][ir("0x14")]((o=>{const s=t[ir("0x13")][ir("0x6")][ir("0x19")],r=s[ir("0x17")](),x=i.LiveRange[ir("0x12")](s[ir("0x10")]());if(n.enterBlock(o)){const n=t.model.createPositionAt(r[ir("0xd")].nextSibling,0),s=o.createRange(r,n);e.markInsertion(s)}else o[ir("0xe")](o[ir("0x8")](x[ir("0x5")]));x[ir("0x3")](),n[ir("0x1a")](ir("0x0"),{writer:o})}))})),t[ir("0x1c")][ir("0x16")].on(ir("0x9"),hs(t,ir("0x18")),{priority:ir("0xb")}),t.editing[ir("0x16")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[ir("0x7")][ir("0x4")](e[ir("0x21")]);if(o)for(const t of o)t[ir("0xf")](ir("0x1"))&&(n[ir("0x7")][ir("0x20")](t,e[ir("0x21")]),n.writer.remove(t))}),{priority:ir("0xb")}),t[ir("0x1b")][ir("0x16")].on("addMarker:suggestion:insertion",((e,n,o)=>{o.options[ir("0xa")]&&hs(t,ir("0x18"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:ir("0xb")})}}const ar=["filter","plugins","getMarkersGroup","afterInit","replaceAll","handleFindCommand","start","end","enableCommand","editor","findNext","get","model","findByTextCallback","getRange","TrackChangesEditing","FindAndReplaceUtils","replace","has","bind","_isInDeletionRange","find","findPrevious","markers","string","suggestion:deletion"];var cr,lr;cr=ar,lr=133,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0x0")](){if(!this[ur("0x6")].plugins[ur("0xf")]("FindAndReplaceEditing"))return;const t=this[ur("0x6")][ur("0x18")][ur("0x8")](ur("0xc"));t.enableCommand(ur("0x12"),this.handleFindCommand[ur("0x10")](this)),t.enableCommand(ur("0x7")),t.enableCommand(ur("0x13")),t[ur("0x5")](ur("0xe")),t.enableCommand(ur("0x1"))}[ur("0x2")](t,e,n={}){const o=this[ur("0x6")].plugins[ur("0x8")](ur("0xd"));void 0!==n&&t((t=>(ur("0x15")==typeof e?o[ur("0xa")](e,n):e)(t)[ur("0x17")]((e=>!1===this._isInDeletionRange(e,t.item)))),n)}[ur("0x11")](t,e){const n=this[ur("0x6")][ur("0x9")].createRange(this[ur("0x6")][ur("0x9")].createPositionAt(e,t[ur("0x3")]),this[ur("0x6")][ur("0x9")].createPositionAt(e,t[ur("0x4")]));for(const t of this[ur("0x6")][ur("0x9")][ur("0x14")][ur("0x19")](ur("0x16")))if(null!==n.getIntersection(t[ur("0xb")]()))return!0;return!1}}const gr=["_enableCommand","editor","commandParams","*Set font family:* %0","FontFamilyEditing","trim","label","FontSizeEditing","*Set font size:* %0","markInlineFormat","fontSize.options","find","TrackChangesEditing","FontSize","locale","getRanges","title","registerDescriptionCallback","toLowerCase","has","isCollapsed","fontFamily","*Reset font color*","*Reset font size*","commandName","model","config","*Set font color:* %0","value","fontSize","document","enableCommand","get","fontColor","format","plugins","afterInit"];var mr,fr;mr=gr,fr=226,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x3"),commandName:"fontSize"},{pluginName:hr("0x0"),commandName:hr("0x11")},{pluginName:"FontColorEditing",commandName:hr("0x1d")},{pluginName:"FontBackgroundColorEditing",commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x20")](){const t=this[hr("0x22")][hr("0xa")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x22")][hr("0x1f")][hr("0xf")](t)&&this._enableCommand(e);this[hr("0x22")][hr("0x1f")].get(hr("0x8"))._descriptionFactory[hr("0xd")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x19")==o[hr("0x14")]){const e=o[hr("0x23")][0].value;if(e){const o=n(this[hr("0x22")][hr("0x1f")][hr("0x1c")](hr("0x9")).normalizeSizeOptions(this.editor[hr("0x16")][hr("0x1c")](hr("0x6"))).find((t=>t[hr("0x15")]==e))[hr("0xc")]).toLowerCase();return{type:"format",content:Yo(t,hr("0x4"),o)}}return{type:hr("0x1e"),content:Yo(t,hr("0x13"))}}if(hr("0x11")==o[hr("0x14")]){const e=o[hr("0x23")][0][hr("0x18")];return e?{type:hr("0x1e"),content:Yo(t,hr("0x24"),e)}:{type:hr("0x1e"),content:Yo(t,"*Reset font family*")}}if(hr("0x1d")==o[hr("0x14")]){const e=o[hr("0x23")][0][hr("0x18")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x22")].config[hr("0x1c")]("fontColor.colors"))[hr("0x7")]((t=>t[hr("0x15")]==e));let r=e,i="";return o&&(r=o[hr("0x2")],i=n(r)[hr("0xe")]()),{type:hr("0x1e"),content:Yo(t,hr("0x17"),i)[hr("0x1")](),color:{value:e,title:i||r}}}return{type:hr("0x1e"),content:Yo(t,hr("0x12"))}}if("fontBackgroundColor"==o[hr("0x14")]){const e=o[hr("0x23")][0][hr("0x18")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x22")][hr("0x16")][hr("0x1c")]("fontBackgroundColor.colors"))[hr("0x7")]((t=>t[hr("0x15")]==e));let r=e,i="";return o&&(r=o[hr("0x2")],i=n(r).toLowerCase()),{type:hr("0x1e"),content:Yo(t,"*Set font background color:* %0",i).trim(),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,"*Reset font background color*")}}}}))}[hr("0x21")](t){const e=this[hr("0x22")];e[hr("0x1f")][hr("0x1c")]("TrackChangesEditing")[hr("0x1b")](t,((n,o={})=>{const s=e.model[hr("0x1a")].selection,r=o[hr("0x18")];s[hr("0x10")]?n(o):e[hr("0x15")].change((()=>{const n=Array.from(s[hr("0xb")]());for(const o of n){const n=r?[o]:ms(t,o,e.model);for(const o of n)e[hr("0x1f")][hr("0x1c")]("TrackChangesEditing")[hr("0x5")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["locale","getFirstPosition","copyFormat","fontSize","commands","toUpperCase","get","keys","*Set format to:* %0","push","word","isBlock","isFormatting","markInlineFormat","modifySelection","title","pasteFormat","charAt","forward","slice","join","model","enableCommand","plugins","boolean","document","schema","getSelectedBlocks","isCollapsed","getAttributes","createSelection","*Remove all formatting*","normalizeSizeOptions","_descriptionFactory","backward","toLowerCase","split","editor","getLastPosition","selection","getRanges","format","change","from","fontSize.options","registerDescriptionCallback","FontSize","getAttributeProperties","createRange","commandParams","afterInit","TrackChangesEditing"];var _r,Tr;_r=Er,Tr=314,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x30")](){const t=this[Cr("0x23")],n=t[Cr("0x13")],o=n[Cr("0x17")][Cr("0x25")],s=t[Cr("0x15")][Cr("0x4")](Cr("0x31")),r=t[Cr("0x32")],i=t.commands[Cr("0x4")](Cr("0x0")),x=t[Cr("0x2")].get("pasteFormat");i&&x&&(s[Cr("0x14")](Cr("0xe"),((t,r={})=>{const i=r;n[Cr("0x28")]((()=>{const t=Array[Cr("0x29")](o[Cr("0x26")]()),r=o[Cr("0x1a")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x1b")]()){const t=e[Cr("0x2d")](n);t&&t[Cr("0xa")]&&(yield n)}}(t,n));for(const e of t[Cr("0x26")]())for(const t of e.getItems())!n[Cr("0x9")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x19")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x18")]))||0!==Object[Cr("0x5")](i).length)for(const t of r)s[Cr("0xb")](t,{commandName:Cr("0xe"),commandParams:[i]})}))})),s[Cr("0x1f")][Cr("0x2b")]((e=>{const{data:n}=e;if(n&&Cr("0xe")===n.commandName){const e=[],o=n[Cr("0x2f")][0];for(const[n,s]of Object.entries(o))e[Cr("0x7")](Ar(t,n,s));return e.length?{type:Cr("0x27"),content:Yo(r,Cr("0x6"),e[Cr("0x12")](", "))}:{type:Cr("0x27"),content:Yo(r,Cr("0x1d"))}}})),t[Cr("0x15")][Cr("0x4")](Cr("0x31")).enableCommand(Cr("0x0")))}}function kr(t,e){const n=t[Cr("0x1c")](e);t.modifySelection(n,{unit:Cr("0x8"),direction:Cr("0x20")});const o=n[Cr("0x33")]();t[Cr("0xc")](n,{unit:Cr("0x8"),direction:Cr("0x10")});const s=n[Cr("0x24")]();return t[Cr("0x2e")](o,s)}function Ar(t,e,n){const o=t[Cr("0x32")].t,r=e[Cr("0x22")](/(?=[A-Z])/)[Cr("0x12")](" "),i=o(r[Cr("0xf")](0)[Cr("0x3")]()+r[Cr("0x11")](1))[Cr("0x21")]();if(Cr("0x16")==typeof n)return i;if("fontColor"===e||"fontBackgroundColor"===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0x4")]("fontColor.colors")).find((t=>t[Cr("0x13")]==n));return i+" ("+(e?o(e.label)[Cr("0x21")]():n)+")"}if(Cr("0x1")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x15")][Cr("0x4")](Cr("0x2c"))[Cr("0x1e")](t.config[Cr("0x4")](Cr("0x2a"))).find((t=>t[Cr("0x13")]==n));return i+" ("+(e?o(e[Cr("0xd")])[Cr("0x21")]():n)+")"}return i+" ("+n+")"}const vr=["markBlockFormat","has","find","registerDescriptionCallback","commandName","registerElementLabel","document","parent","afterInit","heading.options","name","getSelectedBlocks","plugins","editor","*Change to:* %0","config","heading","formatBlock","checkChild","model","value","get","_descriptionFactory","selection","isObject","TrackChangesEditing","format","locale","change","title","filter"];var Rr,Ir;Rr=vr,Ir=262,function(t){for(;--t;)Rr.push(Rr.shift())}(++Ir);const Sr=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Sr("0x19")](){const t=this[Sr("0x1e")],e=t[Sr("0xd")],n=t[Sr("0x1")][Sr("0x7")](Sr("0x1a"));if(!t[Sr("0x1d")][Sr("0x12")]("HeadingEditing"))return;const o=t.plugins[Sr("0x7")](Sr("0xb"));o.enableCommand(Sr("0x2"),((e,n)=>{const s=n[Sr("0x6")],r=Array.from(this[Sr("0x1e")][Sr("0x5")][Sr("0x17")][Sr("0x9")][Sr("0x1c")]())[Sr("0x10")]((t=>{return e=t,n=s,(o=this[Sr("0x1e")][Sr("0x5")].schema)[Sr("0x4")](e[Sr("0x18")],n)&&!o[Sr("0xa")](e)&&e[Sr("0x1b")]!=n;var e,n,o}));t[Sr("0x5")][Sr("0xe")]((()=>{for(const t of r)o[Sr("0x11")](t,{commandName:Sr("0x2"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)"paragraph"!=t[Sr("0x5")]&&o._descriptionFactory[Sr("0x16")](t[Sr("0x5")],(e=>{const n=Nr(t[Sr("0x5")]);return null!==n?s(e,n):r(e,t.title)}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Sr("0x8")][Sr("0x14")]((t=>{const{type:o,data:i}=t;if(Sr("0x3")==o&&i&&Sr("0x2")==i[Sr("0x15")]){const t=i.commandParams[0][Sr("0x6")],o=Nr(t);if(null!==o)return{type:Sr("0xc"),content:Yo(e,Sr("0x0"),s(1,o))};const x=n[Sr("0x13")]((e=>e[Sr("0x5")]===t))[Sr("0xf")];return{type:Sr("0xc"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Mr=["registerDescriptionCallback","getLastMatchingPosition","model","highlight","plugins","editor","item","selection","HighlightEditing","value","find","format","push","enableCommand","getFirstPosition","toLowerCase","FORMAT_HIGHLIGHT","afterInit","title","document","backward","get","hasAttribute","getAttribute","color","commandName","commandParams","*Remove highlight*","locale","isCollapsed","formatInline","createRange","markInlineFormat"];var wr,Or;wr=Mr,Or=402,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0xb")](){const t=this[Fr("0x20")];if(!t[Fr("0x1f")].has(Fr("0x2")))return;const e=t[Fr("0x1f")][Fr("0xf")]("TrackChangesEditing");e[Fr("0x7")](Fr("0x1e"),((n,o={})=>{const s=t.model[Fr("0xd")][Fr("0x1")],r=s[Fr("0x11")](Fr("0x1e"));let i=o.value,x=[];if(s[Fr("0x17")]){const e=s[Fr("0x8")]();if(!s[Fr("0x10")](Fr("0x1e")))return void n(o);{const n=t=>t[Fr("0x0")].getAttribute("highlight")===r,o=e[Fr("0x1c")](n,{direction:Fr("0xe")}),s=e.getLastMatchingPosition(n);x=[t[Fr("0x1d")][Fr("0x19")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x[Fr("0x6")](e):x[Fr("0x6")](...ms(Fr("0x1e"),e,t[Fr("0x1d")]));t[Fr("0x1d")].change((()=>{for(const t of x)e[Fr("0x1a")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0x16")];e._descriptionFactory[Fr("0x1b")]((e=>{const{type:o,data:s}=e;if(Fr("0x18")==o&&s&&"highlight"==s[Fr("0x13")]){const e=n.t,o=s[Fr("0x14")][0][Fr("0x3")];if(o){const s=t.config.get("highlight.options")[Fr("0x4")]((t=>t[Fr("0x1d")]==o)),r=e(s[Fr("0xc")])[Fr("0x9")]();return{type:Fr("0x5"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s[Fr("0x12")],title:s[Fr("0xc")]}}}return{type:"format",content:Yo(n,Fr("0x15"),Yo(n,Fr("0xa")))}}}))}}const Dr=["HorizontalLineEditing","_descriptionFactory","conversion","for","high","plugins","horizontalLine","createEmptyElement","registerElementLabel","locale","createPositionAt","afterInit","TrackChangesEditing","editor","ELEMENT_HORIZONTAL_LINE","dataDowncast","elementToStructure"];var Br,jr;Br=Dr,jr=301,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x10")](){const t=this[Ur("0x1")];if(!t[Ur("0xa")].has(Ur("0x5")))return;t[Ur("0xa")].get(Ur("0x0")).enableCommand(Ur("0xb"));const e=t[Ur("0xa")].get(Ur("0x0")),n=t[Ur("0xe")];e[Ur("0x6")][Ur("0xd")](Ur("0xb"),(t=>Yo(n,Ur("0x2"),t))),t[Ur("0x7")][Ur("0x8")](Ur("0x3"))[Ur("0x4")]({model:Ur("0xb"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e.createContainerElement("div"),s=e[Ur("0xc")]("hr");return e.addClass("ck-horizontal-line",o),e.insert(e[Ur("0xf")](o,0),s),o},converterPriority:Ur("0x9")})}}const Hr=["change","selection","markBlockFormat","element","model","registerElementLabel","cancel","*Change %0 content*","format","commandName","get","editing","value","ELEMENT_HTML_EMBED","enableCommand","HtmlEmbed","htmlEmbed","afterInit","TrackChangesEditing","registerDescriptionCallback","view","_descriptionFactory","getAttribute","plugins","getCustomProperty","editor","rawHtml","getSelectedElement"];var zr,Wr;zr=Hr,Wr=188,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x19")](){const t=this[Vr("0x5")];if(!t.plugins.has(Vr("0x17")))return;const e=t[Vr("0x3")][Vr("0x12")](Vr("0x1a")),n=t.locale,o=t[Vr("0x13")][Vr("0x0")].document[Vr("0x9")];e[Vr("0x1")][Vr("0xd")](Vr("0x6"),(t=>Yo(n,Vr("0x15"),t))),t[Vr("0x3")][Vr("0x12")](Vr("0x1a"))[Vr("0x16")](Vr("0x18"),((n,s)=>{const r=t[Vr("0xc")],i=r.document[Vr("0x9")];r[Vr("0x8")]((()=>{const t=function(t){const e=t[Vr("0x7")]();return e&&e.is(Vr("0xb"),Vr("0x6"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t[Vr("0x2")](Vr("0x14"))||"";void 0!==s&&s!==r&&(e[Vr("0xa")](t,{commandName:"htmlEmbed",commandParams:[s]}),o.getSelectedElement()[Vr("0x4")]("rawHtmlApi")[Vr("0xe")]())}))})),e._descriptionFactory[Vr("0x1b")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Vr("0x11")]){const t=Yo(n,Vr("0x15"));return{type:Vr("0x10"),content:Yo(n,Vr("0xf"),t)}}}))}}const qr=["registerPostFixer","ImageTextAlternativeEditing","insertion","getSuggestionCallback","subType","document","format","getSuggestion","formatBlock","*Remove image text alternative*","resizeImage","backward","markInlineFormat","normalizedStyles","_suggestionFactory","imageStylePreApply","getCaptionFromImageModelElement","ELEMENT_INLINE_IMAGE","commands","imageStylePostApply","commandName","FORMAT_SIDE_IMAGE","imageTextAlternative","ImageCaptionEditing","*Reset image width*","registerDescriptionCallback","isOwn","removeObject","imageInline","ImageCaptionUtils","shouldConvertImageType","ImageInlineEditing","isBlockImage","convertInlineImageToBlock","forward","forEach","find","markInsertion","fromPosition","_findSuggestions","ImageUploadEditing","newValue","filter","ImageUtils","_splitMarkerName","caption","get","detach","forceDefaultExecution","*Format:* %0","element","isCollapsed","isEqual","change","ImageBlockEditing","getContainedElement","getAttribute","createRangeOn","join","getNearestSelectionRange","_descriptionFactory","isBefore","imageTypeInline","Users","schema","toLowerCase","accept","getClosestSelectedImageElement","discard","has","markDeletion","convertBlockImageToInline","discardSuggestion","value","differ","refresh","isInContent","registerElementLabel","next","createRange","getSuggestions","Inline image to block image","deletion","commandParams","markBlockFormat","isInlineImage","start","end","from","uploadImage","ImageStyleEditing","plugins","toNext","type","chain","model","findIndex","editor","registerCustomCallback","imageTypeBlock","selection","afterInit","width","imageCaption","ImageResize","alt","enableCommand","title","getFirstRange","name","formatInline","*Set image text alternative:* %0","newRange","imageStyle","hasAttribute","insertImage","side","ELEMENT_IMAGE","getChangedMarkers"];var Xr,$r;Xr=qr,$r=493,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Qr=function(t,e){return qr[t-=0]};class Jr extends t.Plugin{[Qr("0x54")](){const t=this[Qr("0x50")];if(!t[Qr("0x4a")][Qr("0x34")]("ImageEditing"))return;const n=t.plugins[Qr("0x1d")]("TrackChangesEditing"),o=t[Qr("0x4a")][Qr("0x1d")](Qr("0x1a")),s={},r=t.locale;if(n[Qr("0x59")](Qr("0x62")),n[Qr("0x2b")][Qr("0x3c")]("imageBlock",(t=>Yo(r,Qr("0x64"),t))),n[Qr("0x2b")][Qr("0x3c")](Qr("0xb"),(t=>Yo(r,Qr("0x0"),t))),n[Qr("0x2b")][Qr("0x3c")](Qr("0x1c"),(()=>Yo(r,"ELEMENT_CAPTION"))),t[Qr("0x4a")].has(Qr("0x17"))&&n.enableCommand(Qr("0x48")),t.plugins[Qr("0x34")](Qr("0x25"))&&t.plugins[Qr("0x34")](Qr("0xe"))&&(n[Qr("0x59")](Qr("0x2d"),((e,s)=>{const r=o[Qr("0x32")](t.model[Qr("0x6b")][Qr("0x53")]);t.model[Qr("0x24")]((()=>{n.markBlockFormat(r,{commandName:Qr("0x2d"),commandParams:[s]},[],Qr("0x36"))}))})),n[Qr("0x59")](Qr("0x52"),((e,s)=>{t[Qr("0x4e")].change((r=>{let x=o[Qr("0x32")](t[Qr("0x4e")][Qr("0x6b")][Qr("0x53")]),a=r[Qr("0x28")](x);const c=i.LivePosition[Qr("0x15")](a.start,"toPrevious"),l=i.LivePosition[Qr("0x15")](a.end,Qr("0x4b"));n[Qr("0x1f")]((()=>e(s))),x=o[Qr("0x32")](t.model[Qr("0x6b")].selection),a=r[Qr("0x28")](x);const u=r[Qr("0x3e")](c,l);c[Qr("0x1e")](),l.detach(),n[Qr("0x43")](x,{commandName:Qr("0x2d"),commandParams:[]},[],Qr("0x10")),u[Qr("0x45")][Qr("0x2c")](a[Qr("0x45")])&&n.markInsertion(r[Qr("0x3e")](u[Qr("0x45")],a[Qr("0x45")]),Qr("0x10")),a[Qr("0x46")][Qr("0x2c")](u[Qr("0x46")])&&n[Qr("0x14")](r[Qr("0x3e")](a[Qr("0x46")],u[Qr("0x46")]),"convertInlineImageToBlock")}))})),n[Qr("0x74")][Qr("0x51")](Qr("0x6e"),"convertInlineImageToBlock",Qr("0x29"),(()=>{})),n[Qr("0x74")][Qr("0x51")](Qr("0x6e"),Qr("0x10"),Qr("0x31"),(()=>{})),n[Qr("0x74")][Qr("0x51")](Qr("0x6e"),"convertInlineImageToBlock",Qr("0x33"),n._suggestionFactory[Qr("0x69")](Qr("0x6e"),"",Qr("0x31"))),n._suggestionFactory[Qr("0x51")](Qr("0x68"),Qr("0x10"),Qr("0x29"),(()=>{})),n[Qr("0x74")][Qr("0x51")](Qr("0x68"),Qr("0x10"),Qr("0x33"),(([e])=>{const o=n._suggestionFactory[Qr("0x69")](Qr("0x68"),"",Qr("0x33"));let s=e[Qr("0x45")],r=e[Qr("0x46")];const i=t[Qr("0x4e")][Qr("0x2f")][Qr("0x2a")](s,Qr("0x71")),x=t[Qr("0x4e")][Qr("0x2f")][Qr("0x2a")](r,Qr("0x11"));i[Qr("0x22")]&&(s=i[Qr("0x45")]),x[Qr("0x22")]&&(r=x[Qr("0x46")]),o([t[Qr("0x4e")].createRange(s,r)])})),n._suggestionFactory.registerCustomCallback("formatBlock","convertInlineImageToBlock","chain",c),n._suggestionFactory[Qr("0x51")](Qr("0x68"),Qr("0x10"),Qr("0x4d"),c)),t[Qr("0x4a")][Qr("0x34")](Qr("0x6"))&&(n[Qr("0x59")]("toggleImageCaption",((e,s)=>{const r=t.plugins[Qr("0x1d")](Qr("0xc"));let i=o.getClosestSelectedImageElement(t[Qr("0x4e")][Qr("0x6b")][Qr("0x53")]),x=r.getCaptionFromImageModelElement(i);t.model[Qr("0x24")]((()=>{if(x)return void n[Qr("0x35")](t[Qr("0x4e")].createRangeOn(x));const a=o[Qr("0xf")](i);e(s),i=o.getClosestSelectedImageElement(t[Qr("0x4e")][Qr("0x6b")][Qr("0x53")]),x=r[Qr("0x76")](i),n[Qr("0x14")](t.model.createRangeOn(x),a?null:Qr("0x56"))}))})),n[Qr("0x74")].registerCustomCallback("insertion","imageCaption",Qr("0x4d"),c)),t[Qr("0x4a")][Qr("0x34")](Qr("0x49"))){n.enableCommand(Qr("0x60"),((s,r)=>{const i=t[Qr("0x4a")][Qr("0x1d")](Qr("0x2e")).me,x=t[Qr("0x1")][Qr("0x1d")]("imageStyle");let a=o[Qr("0x32")](t[Qr("0x4e")][Qr("0x6b")][Qr("0x53")]),c=t.model[Qr("0x28")](a),l=x[Qr("0x38")];if(l==r[Qr("0x38")])return;const u={commandName:Qr("0x60"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Qr("0x4e")][Qr("0x24")]((()=>{if(n[Qr("0x3f")]().filter((t=>t[Qr("0x3b")]&&i==t.author&&("formatBlock"==t[Qr("0x4c")]||"formatInline"==t[Qr("0x4c")])&&(Qr("0x75")==t.subType||Qr("0x2")==t[Qr("0x6a")])&&t[Qr("0x5b")]()[Qr("0x23")](c)))[Qr("0x12")]((t=>n[Qr("0x37")](t.head))),a=o.getClosestSelectedImageElement(t[Qr("0x4e")][Qr("0x6b")][Qr("0x53")]),c=t[Qr("0x4e")][Qr("0x28")](a),x[Qr("0x3a")](),t[Qr("0x1")][Qr("0x1d")](Qr("0x2d"))[Qr("0x3a")](),t[Qr("0x1")][Qr("0x1d")](Qr("0x52"))[Qr("0x3a")](),l=x[Qr("0x38")],l!=r[Qr("0x38")])return o[Qr("0x44")](a)&&x[Qr("0xd")](r[Qr("0x38")],a)?(s(r),a=o[Qr("0x32")](t[Qr("0x4e")][Qr("0x6b")].selection),void n[Qr("0x43")](a,{...u,commandReversedParams:[{value:l||null}]},[],Qr("0x75"))):void(o[Qr("0xf")](a)?n[Qr("0x43")](a,u,[],Qr("0x2")):n[Qr("0x72")](c,u,Qr("0x2")))}))}));for(const e of t[Qr("0x4a")].get(Qr("0x49"))[Qr("0x73")])s[e[Qr("0x5c")]]=e[Qr("0x5a")][Qr("0x30")]();n[Qr("0x74")][Qr("0x51")](Qr("0x6e"),Qr("0x75"),Qr("0x29"),(()=>{})),n._suggestionFactory[Qr("0x51")]("formatBlock",Qr("0x2"),Qr("0x29"),(()=>{})),n[Qr("0x74")][Qr("0x51")](Qr("0x5d"),Qr("0x2"),Qr("0x29"),(()=>{})),n[Qr("0x74")][Qr("0x51")](Qr("0x6e"),Qr("0x75"),Qr("0x31"),(()=>{})),n[Qr("0x74")].registerCustomCallback(Qr("0x6e"),Qr("0x75"),Qr("0x33"),((t,e)=>{n[Qr("0x74")][Qr("0x69")](Qr("0x6e"),"",Qr("0x31"))(t,{commandName:e[Qr("0x3")],commandParams:e.commandReversedParams})})),n[Qr("0x74")].registerCustomCallback("formatBlock",Qr("0x75"),"chain",c)}const x=[{type:Qr("0x6e"),subType:Qr("0x75")},{type:Qr("0x68"),subType:Qr("0x56")},{type:Qr("0x6e"),subType:"convertInlineImageToBlock"},{type:Qr("0x68"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x[Qr("0x4f")]((({type:e,subType:n})=>t.type==e&&t[Qr("0x6a")]==n)),r=x.findIndex((({type:t,subType:n})=>e.type==t&&e[Qr("0x6a")]==n));if(s<0||r<0)return!1;const i=t[Qr("0x5b")](),a=e.getFirstRange();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Qr("0x16")](i,Qr("0x68"))[Qr("0x19")]((({suggestion:t,meta:e})=>e[Qr("0x9")]&&Qr("0x10")==t[Qr("0x6a")]));if(t.length>1&&a[Qr("0x46")].isEqual(i[Qr("0x45")]))return!0;if(1==t.length&&(i[Qr("0x45")][Qr("0x23")](a[Qr("0x46")])||i[Qr("0x46")][Qr("0x23")](a[Qr("0x45")])))return!0}if(3==s&&3==r&&i[Qr("0x45")][Qr("0x2c")](a[Qr("0x45")])){const t=i[Qr("0x46")].nodeAfter,e=a[Qr("0x45")].nodeBefore;return o[Qr("0xf")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Qr("0x4e")][Qr("0x6b")][Qr("0x66")]((()=>{let e=!1;const s=Array[Qr("0x47")](t[Qr("0x4e")][Qr("0x6b")][Qr("0x39")][Qr("0x65")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Qr("0x1b")](t);if("suggestion"==s&&n.hasSuggestion(a)){if(Qr("0x6e")==i&&(Qr("0x75")==x||"imageStylePostApply"==x)){const t=n[Qr("0x6d")](a);if(r[Qr("0x5f")]){const s=t.getFirstRange()[Qr("0x26")]();if(o.isBlockImage(s))continue;n.discardSuggestion(t),e=!0}}if("insertion"==i&&"imageCaption"==x&&!r.newRange){const t=n[Qr("0x6d")](a);t.next&&t[Qr("0x3d")][Qr("0x3b")]&&(n.discardSuggestion(t[Qr("0x3d")]),e=!0)}}}return e})),t[Qr("0x4a")].has(Qr("0x57"))&&n[Qr("0x59")]("resizeImage",((e,s)=>{const r=o.getClosestSelectedImageElement(t[Qr("0x4e")][Qr("0x6b")].selection);r[Qr("0x27")](Qr("0x55"))!=s[Qr("0x55")]&&t[Qr("0x4e")][Qr("0x24")]((()=>{n.markBlockFormat(r,{commandName:Qr("0x70"),commandParams:[s]})}))})),t.plugins[Qr("0x34")](Qr("0x67"))&&n.enableCommand("imageTextAlternative",((e,s)=>{const r=o.getClosestSelectedImageElement(t.model[Qr("0x6b")][Qr("0x53")]);(r[Qr("0x61")]("alt")?r[Qr("0x27")](Qr("0x58")):"")!=s[Qr("0x18")]&&t[Qr("0x4e")][Qr("0x24")]((()=>{n[Qr("0x43")](r,{commandName:Qr("0x5"),commandParams:[s]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{if(x[Qr("0x13")]((({type:e,subType:n})=>t[Qr("0x4c")]==e&&t.subType==n)))return t.previous?{}:void 0})),n[Qr("0x2b")][Qr("0x8")]((t=>{if(Qr("0x68")==t.type||Qr("0x41")==t[Qr("0x4c")]){const e=t[Qr("0x26")]();if(e&&e.is(Qr("0x21"),Qr("0x1c")))return{type:Qr("0x68")==t[Qr("0x4c")]?"addObject":Qr("0xa"),element:e,quantity:1}}})),n[Qr("0x2b")][Qr("0x8")]((t=>Qr("0x6e")==t.type&&"convertInlineImageToBlock"==t.subType?{type:"format",content:Qr("0x40")}:Qr("0x6e")==t.type&&Qr("0x36")==t[Qr("0x6a")]?{type:Qr("0x6c"),content:"Block image to inline image"}:void 0)),n[Qr("0x2b")][Qr("0x8")]((t=>{const{data:e}=t;if(e){if(Qr("0x60")==e[Qr("0x3")]){const t=e[Qr("0x42")][0][Qr("0x38")];return n=Qr("0x63")===t?Yo(r,Qr("0x4")):s[t]||t,{type:Qr("0x6c"),content:Yo(r,Qr("0x20"),n)}}if(Qr("0x5")==e[Qr("0x3")]){const t=e[Qr("0x42")][0][Qr("0x18")];return t?{type:Qr("0x6c"),content:Yo(r,Qr("0x5e"),'"'+t+'"')}:{type:Qr("0x6c"),content:Yo(r,Qr("0x6f"))}}if(Qr("0x70")==e[Qr("0x3")]){const t=e.commandParams[0][Qr("0x55")];return t?{type:Qr("0x6c"),content:Yo(r,"*Set image width:* %0",t)}:{type:Qr("0x6c"),content:Yo(r,Qr("0x7"))}}}var n}))}}const Zr=["getSuggestionCallback","ImageEditing","handleSuggestionDescription","editor","formatBlock","selection","getSuggestions","author","_suggestionFactory","registerDescriptionCallback","getAttribute","commandName","Users","accept","commandParams","data","discard","has","*Format:* replace image URL","markBlockFormat","plugins","enableCommand","afterInit","change","TrackChangesEditing","document","locale","source","src","replaceImageSource","handleReplaceImageCommand","getSelectedElement","get","model"];var Yr,ti;Yr=Zr,ti=340,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x16")](){if(!this[ei("0x3")][ei("0x14")][ei("0x11")](ei("0x1")))return;const t=this[ei("0x3")][ei("0x14")][ei("0x20")](ei("0x18"));t[ei("0x15")](ei("0x1d"),((t,e)=>this[ei("0x1e")](t,e))),t[ei("0x8")].registerCustomCallback("formatBlock",ei("0x1d"),ei("0xd"),t._suggestionFactory[ei("0x0")](ei("0x4"),null,ei("0x10"))),t._suggestionFactory.registerCustomCallback(ei("0x4"),ei("0x1d"),ei("0x10"),t[ei("0x8")].getSuggestionCallback("formatBlock",null,ei("0xd"))),t._descriptionFactory[ei("0x9")]((t=>this[ei("0x2")](t)))}[ei("0x1e")](t,e){const n=this.editor[ei("0x14")][ei("0x20")](ei("0x18")),o=this[ei("0x3")].model[ei("0x19")][ei("0x5")][ei("0x1f")]();this.editor[ei("0x21")][ei("0x17")]((()=>{let s=o[ei("0xa")](ei("0x1c"));const r=this[ei("0x3")][ei("0x14")][ei("0x20")](ei("0xc")).me;for(const t of n[ei("0x6")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0x1d")===t.subType&&e===o){t[ei("0x7")]!==r&&t[ei("0x10")](),s=t[ei("0xf")][ei("0xe")][0][ei("0x1b")];break}}t(e),n[ei("0x13")](o,{commandName:ei("0x1d"),commandParams:[{source:s}]},[],ei("0x1d"))}))}[ei("0x2")](t){const{data:e}=t;if(e&&ei("0x1d")===e[ei("0xb")]){const t=ei("0x12");return{type:"format",content:Yo(this.editor[ei("0x1a")],t)}}}}const oi=["get","importWord","_handleImportedData","track_changes","high","commands","execute","plugins","trackChanges","editor","afterInit","listenTo","TrackChangesEditing","dataInsert","enableCommand","collaboration_features","_trackChangesValueDuringImport","Users","_trackChangesExecuted"];var si,ri;si=oi,ri=116,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("0xe")]=!1,this[ii("0x10")]=!1}[ii("0x8")](){const t=this.editor,e=t[ii("0x3")][ii("0x11")](ii("0x12")),n=t[ii("0x3")][ii("0x11")](ii("0x6"));e&&(e.on("execute",((t,[,e])=>{this[ii("0xe")]=n.value,e[ii("0xd")][ii("0x1")]=!this[ii("0xe")]}),{priority:ii("0x2")}),this[ii("0x9")](e,"dataInsert",this._handleImportedData.bind(this)),this.listenTo(e,ii("0xb"),(()=>{this[ii("0x10")]&&(n[ii("0x4")](),this._trackChangesExecuted=!1)}),{priority:"lowest"}),t[ii("0x5")].get(ii("0xa"))[ii("0xc")](ii("0x12")))}[ii("0x0")](t,e){const{suggestions:n}=e,o=this[ii("0x7")].commands[ii("0x11")]("trackChanges"),s=o.value;this[ii("0xe")]!==s&&(o[ii("0x4")](),this[ii("0x10")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x7")][ii("0x5")][ii("0x11")](ii("0xf")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x12")}}};this[ii("0x7")].plugins[ii("0x11")](ii("0xa"))._setSuggestionData(s)}))}}const ai=["TrackChangesEditing","from","outdentBlock","format","*Indent:* %0","enableCommand","afterInit","change","*Outdent:* %0","outdent","commandName","model","plugins","has","selection","schema","registerDescriptionCallback","getSelectedBlocks","editor","checkAttribute","locale","getItems","getItemLabel","_descriptionFactory","indent","IndentEditing","markBlockFormat","indentBlock"];var ci,li;ci=ai,li=306,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0x8")](){const t=this[ui("0x14")],e=t.plugins.get(ui("0x2"));t.plugins[ui("0xf")](ui("0x1b"))&&(e.enableCommand(ui("0x1a")),e[ui("0x7")](ui("0xb")));const n=t[ui("0x16")];if(t[ui("0xe")][ui("0xf")]("IndentBlock")){for(const n of[ui("0x1"),"outdentBlock"])e[ui("0x7")](n,(()=>{const o=Array[ui("0x3")](this[ui("0x14")][ui("0xd")].document[ui("0x10")][ui("0x13")]()).filter((t=>this[ui("0x14")][ui("0xd")][ui("0x11")][ui("0x15")](t,"blockIndent")));t[ui("0xd")][ui("0x9")]((()=>{for(const t of o)e[ui("0x0")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0x1")})}))}));e[ui("0x19")][ui("0x12")]((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o[ui("0xc")]&&ui("0x4")!=o[ui("0xc")])return;const s=t[ui("0x17")]()[0],r=e[ui("0x19")][ui("0x18")](s);return"indentBlock"==o[ui("0xc")]?{type:ui("0x5"),content:Yo(n,ui("0x6"),r)}:ui("0x4")==o.commandName?{type:ui("0x5"),content:Yo(n,ui("0xa"),r)}:void 0}))}}}var gi,mi,fi=["editor","input","get","init"];gi=fi,mi=344,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 requires(){return[Vs.Input]}[hi("0x3")](){this[hi("0x0")].plugins[hi("0x2")]("TrackChangesEditing").enableCommand(hi("0x1"))}}const bi=["has","plugins","registerDescriptionCallback","commandName","getFirstPosition","hasAttribute","format","LinkEditing","isCollapsed","*Set link:* %0","getFirstRange","linkHref","document","model","get","markInlineFormat","link","locale","enableCommand","change","unlink","getAttribute","*Remove link*","getRanges","from","afterInit","TrackChangesEditing"];var Ei,_i;Ei=bi,_i=401,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x2")](){const t=this.editor;if(!t.plugins[Ti("0x4")](Ti("0xb")))return;const e=t[Ti("0x5")][Ti("0x12")](Ti("0x3"));e[Ti("0x16")](Ti("0x14"),((n,o)=>{const s=t[Ti("0x11")][Ti("0x10")].selection;let r=[];if(s[Ti("0xc")]){if(!s[Ti("0x9")]("linkHref"))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0x8")](),Ti("0xf"),s[Ti("0x19")](Ti("0xf")),t[Ti("0x11")]);r=[e]}}else r=Array[Ti("0x1")](s[Ti("0x0")]());t[Ti("0x11")][Ti("0x17")]((()=>{for(const t of r)e[Ti("0x13")](t,{commandName:Ti("0x14"),commandParams:[o]})}))})),e[Ti("0x16")]("unlink",(()=>{const n=this.editor[Ti("0x11")],o=n[Ti("0x10")].selection;n.change((()=>{let n=[];n=o[Ti("0xc")]?[(0,Vs.findAttributeRange)(o[Ti("0x8")](),"linkHref",o[Ti("0x19")]("linkHref"),t[Ti("0x11")])]:ms(Ti("0xf"),o[Ti("0xe")](),t[Ti("0x11")]);for(const t of n)e[Ti("0x13")](t,{commandName:Ti("0x18"),commandParams:[]})}))})),e._descriptionFactory[Ti("0x6")]((e=>{const{data:n}=e,o=t[Ti("0x15")];if(n){if(Ti("0x14")==n[Ti("0x7")]){const t=n.commandParams[0];return{type:"format",content:Yo(o,Ti("0xd"),'"'+t+'"')}}return Ti("0x18")==n[Ti("0x7")]?{type:Ti("0xa"),content:Yo(o,Ti("0x1a"))}:void 0}}))}}const yi=["bulletedList","nextSibling","_selectedElements","*Uncheck item*","forceValue","TrackChangesEditing","findIndex","locale","*Change to:* %0","registerElementLabel","element","checkTodoList","ELEMENT_NUMBERED_LIST","*Outdent:* %0","plugins","listItem","getAttribute","numberedList","commandParams","model","createRange","paragraph","*Check item*","format","TodoListEditing","commands","previousSibling","enableCommand","registerDescriptionCallback","add","replace","todoList","createPositionAt","has","editor","push","value","parent","*Indent:* %0","commandName","getSelectedBlocks","ELEMENT_TODO_LIST","get","filter","name","ELEMENT_BULLETED_LIST","indentList","schema","change","listIndent","from","numbered","length","outdentList","afterInit","_descriptionFactory","blockName","selection","slice","bulleted","todo","ELEMENT_LIST_ITEM","markBlockFormat","todoListChecked"];var ki,Ai;ki=yi,Ai=446,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x38")](){const t=this[vi("0x24")],e=t[vi("0x9")];if(!t.plugins[vi("0x23")]("ListEditing"))return;const n=t[vi("0x10")].get(vi("0x7")),o=t.plugins.has(vi("0x1a"));function s(e){return()=>{const o=t[vi("0x15")].document[vi("0x3b")],s=t[vi("0x1b")].get(e);if(s[vi("0x26")])return void t.execute(vi("0x17"),{});const r=e.slice(0,-4),i=function(t,e,n){let o=Array[vi("0x34")](t)[vi("0x2d")]((t=>{return e=t,(o=n).checkChild(e[vi("0x27")],"listItem")&&!o.isObject(e);var e,o}));o=o.filter((t=>!t.is(vi("0xc"),"listItem")||t[vi("0x12")]("listType")!=e));const s=new Set;for(const t of o)t.is("element","listItem")?s[vi("0x1f")](Ii(t)):s.add(t);return Array[vi("0x34")](s)}(o[vi("0x2a")](),r,t.model[vi("0x31")]);t[vi("0x15")][vi("0x32")]((()=>{for(const t of i)n[vi("0x0")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0x3a")},Si(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x34")](t);const n=e[vi("0x8")]((t=>vi("0x11")!=t[vi("0x2e")]));return n>-1&&(e=e[vi("0x3c")](0,n)),e}(t.model.document.selection[vi("0x2a")]()),s=t[vi("0x15")][vi("0x16")](t.model[vi("0x22")](o[0],"before"),t.model[vi("0x22")](o[o[vi("0x36")]-1],"end"));t[vi("0x15")].change((()=>{n[vi("0x0")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x33")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x3")];for(;t&&t[vi("0x12")](vi("0x33"))>n[vi("0x12")](vi("0x33"));)e[vi("0x1f")](t),t=t[vi("0x3")]}return Array[vi("0x34")](e)}(o))}))}}n[vi("0x1d")]("numberedList",s(vi("0x13"))),n[vi("0x1d")](vi("0x2"),s(vi("0x2"))),o&&n[vi("0x1d")](vi("0x21"),s(vi("0x21"))),n.enableCommand(vi("0x30"),r(vi("0x30"))),n.enableCommand(vi("0x37"),r("outdentList")),o&&n.enableCommand(vi("0xd"),(()=>{const e=t[vi("0x1b")][vi("0x2c")]("checkTodoList"),o=Array[vi("0x34")](e[vi("0x4")]);o.filter((t=>t.getAttribute(vi("0x1"))!=e.value)),t[vi("0x15")][vi("0x32")]((()=>{for(const t of o)n[vi("0x0")](t,{commandName:vi("0xd"),commandParams:[{forceValue:!e[vi("0x26")]}]})}))})),n[vi("0x39")][vi("0xb")](vi("0x11"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x39")][vi("0x1e")]((t=>{const{data:n}=t;if(n){if(vi("0x13")==n[vi("0x29")]||vi("0x2")==n[vi("0x29")]||"todoList"==n[vi("0x29")])switch(n[vi("0x29")][vi("0x20")]("List","")){case vi("0x3d"):return o(Yo(e,vi("0x2f")));case vi("0x35"):return o(Yo(e,vi("0xe")));case vi("0x3e"):return o(Yo(e,vi("0x2b")))}if("indentList"==n[vi("0x29")])return{type:vi("0x19"),content:Yo(e,vi("0x28"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x37")==n[vi("0x29")])return{type:"format",content:Yo(e,vi("0xf"),Yo(e,vi("0x3f")))};if(vi("0xd")==n[vi("0x29")])return n[vi("0x14")][0][vi("0x6")]?{type:vi("0x19"),content:Yo(e,vi("0x18"))}:{type:vi("0x19"),content:Yo(e,vi("0x5"))}}function o(t){return{type:vi("0x19"),content:Yo(e,vi("0xa"),t)}}}))}}function Ii(t){const e=t[vi("0x12")](vi("0x33"));if(0==e)return t;let n=t;for(;t[vi("0x1c")]&&t[vi("0x1c")].is(vi("0xc"),vi("0x11"));){const o=t[vi("0x1c")][vi("0x12")](vi("0x33"));if(o==e)n=t[vi("0x1c")];else if(o<e)break;t=t[vi("0x1c")]}return n}function Si(t){const e=[];if(t.is("element",vi("0x11"))&&t[vi("0x12")]("listIndent")>0){let n=t[vi("0x3")];for(;n&&vi("0x11")==n[vi("0x2e")]&&n[vi("0x12")](vi("0x33"))==t[vi("0x12")](vi("0x33"));)e[vi("0x25")](n),n=n[vi("0x3")]}return e}const Li=["TrackChangesEditing","change","before","listItem","document","getAttribute","getSiblingNodes","*Format:* set start index to %0","bind","forward","selection","afterInit","markMultiRangeBlockFormat","toUpperCase","listStart","getFirstPosition","format","reversed","*Format:* set order to reversed","type","locale","enableCommand","map","has","model","listReversed","registerDescriptionCallback","startIndex","ListUtils","listStyle","from","plugins","listType","_getSuggestionBlocksForListStyle","getListTypeFromListStyleType","_getSuggestionBlocks","createRange","commandParams","element","handleDescriptions","parent","filter","get","getSelectedBlocks","numbered","*Change to:* %0","editor","config","handleListStartCommand","length","*Format:* set order to regular","handleListStyleCommand","flat","createPositionAt","getLastPosition","backward","styles","unshift","_getTranslationKeyForListStyle","ELEMENT_"];var Ni,Mi;Ni=Li,Mi=155,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x24")](){if(!this[wi("0xb")][wi("0x38")][wi("0x30")]("ListPropertiesEditing"))return;const t=this[wi("0xb")][wi("0xc")][wi("0x7")]("list.properties"),e=this.editor[wi("0x38")][wi("0x7")](wi("0x19"));t[wi("0x15")]&&e[wi("0x2e")](wi("0x36"),this[wi("0x10")][wi("0x21")](this)),t[wi("0x2a")]&&e[wi("0x2e")](wi("0x32"),this.handleListReversedCommand[wi("0x21")](this)),t[wi("0x34")]&&e[wi("0x2e")](wi("0x27"),this.handleListStartCommand[wi("0x21")](this)),e._descriptionFactory[wi("0x33")](this[wi("0x4")][wi("0x21")](this))}handleListStyleCommand(t,e={}){const n=this.editor[wi("0x38")][wi("0x7")](wi("0x19")),o=this[wi("0x3a")]();this.editor[wi("0x31")][wi("0x1a")]((()=>{n[wi("0x25")](o,{commandName:wi("0x36"),commandParams:[{type:e.type}],formatGroupId:wi("0x36")})}))}handleListReversedCommand(t,e={}){const n=this.editor[wi("0x38")][wi("0x7")](wi("0x19")),o=this[wi("0x0")]((t=>t.is(wi("0x3"),"listItem")&&wi("0x9")===t.getAttribute(wi("0x39"))));if(o[wi("0xe")]<1)return;const s=o[wi("0x2f")]((t=>this.editor[wi("0x31")].createRange(this[wi("0xb")][wi("0x31")][wi("0x12")](t,wi("0x1b")),this[wi("0xb")][wi("0x31")].createPositionAt(t,0))));this.editor[wi("0x31")][wi("0x1a")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listReversed",commandParams:[{reversed:e.reversed}],formatGroupId:wi("0x32")})}))}[wi("0xd")](t,e={}){const n=this.editor[wi("0x38")][wi("0x7")](wi("0x19")),o=this[wi("0x0")]((t=>t.is(wi("0x3"),"listItem")&&wi("0x9")===t[wi("0x1e")](wi("0x39"))));if(o[wi("0xe")]<1)return;const s=o.map((t=>this[wi("0xb")].model[wi("0x1")](this[wi("0xb")].model[wi("0x12")](t,wi("0x1b")),this[wi("0xb")][wi("0x31")][wi("0x12")](t,0))));this[wi("0xb")].model[wi("0x1a")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listStart",commandParams:[{startIndex:e[wi("0x34")]}],formatGroupId:wi("0x27")})}))}[wi("0x4")](t){const e=this[wi("0xb")][wi("0x2d")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wi("0x36"):o=wi("0xa"),s={type:wi("0x29"),content:Yo(e,o,Yo(e,this[wi("0x17")](n[wi("0x2")][0][wi("0x2c")])))};break;case wi("0x32"):o=n[wi("0x2")][0][wi("0x2a")]?wi("0x2b"):wi("0xf"),s={type:wi("0x29"),content:Yo(e,o)};break;case wi("0x27"):o=wi("0x20"),s={type:"format",content:Yo(e,o,n[wi("0x2")][0][wi("0x34")])}}return s}[wi("0x3a")](){var t,e,n,o;const s=this[wi("0xb")].plugins.get(wi("0x35"));let r=Array[wi("0x37")](this[wi("0xb")][wi("0x31")][wi("0x1d")][wi("0x23")][wi("0x8")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x3"),wi("0x1c")))&&r[wi("0x16")](...s[wi("0x1f")](this[wi("0xb")][wi("0x31")][wi("0x1d")][wi("0x23")][wi("0x28")](),wi("0x14"))),(null===(e=r[r.length-1])||void 0===e?void 0:e.is(wi("0x3"),"listItem"))&&r.push(...s[wi("0x1f")](this[wi("0xb")][wi("0x31")][wi("0x1d")].selection[wi("0x13")](),wi("0x22"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0xb")][wi("0x31")].document[wi("0x23")][wi("0x28")]())||void 0===n?void 0:n[wi("0x5")])||void 0===o?void 0:o.is(wi("0x3"),wi("0x1c")))&&(r=r[wi("0x6")]((t=>t.is(wi("0x3"),"listItem")))),r}[wi("0x0")](t){const e=this.editor.plugins.get(wi("0x35"));let n=Array[wi("0x37")](this[wi("0xb")].model[wi("0x1d")].selection[wi("0x8")]())[wi("0x6")](t)[wi("0x2f")]((t=>{const n=this.editor[wi("0x31")][wi("0x12")](t,0);return[...e.getSiblingNodes(n,wi("0x14")),...e.getSiblingNodes(n,wi("0x22"))]}))[wi("0x11")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return wi("0x18")+this[wi("0xb")].plugins[wi("0x7")]("ListUtils")[wi("0x3b")](t)[wi("0x26")]()+"_LIST_"+t[wi("0x26")]().replace(/-/g,"_")}}const Fi=["ELEMENT_MEDIA","editor","downcastDispatcher","high","TrackChangesEditing","elementToElement","registerElementLabel","get","plugins","attribute:url:media","_descriptionFactory","stop","showSuggestionHighlights","for","conversion","locale","options","data","has","mediaEmbed","dataDowncast","media","afterInit"];var Pi,Di;Pi=Fi,Di=435,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x1")](){const t=this[Bi("0x3")];if(!t.plugins[Bi("0x14")]("MediaEmbedEditing"))return;const e=t[Bi("0xa")][Bi("0x9")](Bi("0x6")),n=t[Bi("0x11")];e.enableCommand(Bi("0x15")),e[Bi("0xc")][Bi("0x8")]("media",(t=>Yo(n,Bi("0x2"),t))),t[Bi("0x10")][Bi("0xf")](Bi("0x16"))[Bi("0x7")]({model:Bi("0x0"),view:(t,{writer:e,options:n})=>{if(n[Bi("0xe")])return e.createEmptyElement("div")},converterPriority:Bi("0x5")}),t[Bi("0x13")][Bi("0x4")].on(Bi("0xb"),((t,e,n)=>{n[Bi("0x12")].showSuggestionHighlights&&t[Bi("0xd")]()}),{priority:"high"})}}const Ui=["plugins","TrackChangesEditing","mention","has","get","enableCommand","editor","MentionEditing"];var Gi,Hi;Gi=Ui,Hi=145,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("0x5")];t[zi("0x7")][zi("0x2")](zi("0x6"))&&t[zi("0x7")][zi("0x3")](zi("0x0"))[zi("0x4")](zi("0x1"))}}const Vi=["get","PageBreakEditing","registerElementLabel","TrackChangesEditing","pageBreak","plugins","locale","_descriptionFactory","afterInit","ELEMENT_PAGE_BREAK"];var Ki,qi;Ki=Vi,qi=369,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x9")](){const t=this.editor;if(!t[Xi("0x6")].has(Xi("0x2")))return;t[Xi("0x6")][Xi("0x1")](Xi("0x4")).enableCommand(Xi("0x5"));const e=t[Xi("0x6")][Xi("0x1")](Xi("0x4")),n=t[Xi("0x7")];e[Xi("0x8")][Xi("0x3")](Xi("0x5"),(t=>Yo(n,Xi("0x0"),t)))}}const Qi=["ELEMENT_PARAGRAPH","addClass","start","getItemLabel","isLimit","nodeAfter","paragraph","from","enableCommand","change","locale","data","insert","editing","mapper","get","registerElementLabel","writer","highest","model","toViewPosition","markerRange","ck-suggestion-marker--active","isBlock","schema","checkChild","activeMarkers","isObject","TrackChangesEditing","_descriptionFactory","downcastDispatcher","createUIElement","insertion","name","*Change to:* %0","has","consume","includes","addMarker:suggestion:insertion","parent","span","*Insert:* %0","plugins","ck-suggestion-marker-split","isTouching","getFirstRange","$text","filter","selection","Paragraph","bindElementToMarker","editor","consumable","registerDescriptionCallback","end","markerName","getSelectedBlocks"];var Ji,Zi;Ji=Qi,Zi=193,function(t){for(;--t;)Ji.push(Ji.shift())}(++Zi);const Yi=function(t,e){return Qi[t-=0]};class tx extends t.Plugin{afterInit(){const t=this[Yi("0x1d")];if(!t[Yi("0x14")][Yi("0xd")](Yi("0x1b")))return;const e=t[Yi("0x2d")],n=t[Yi("0x14")][Yi("0x32")](Yi("0x6"));n[Yi("0x7")][Yi("0x33")]("paragraph",(t=>Yo(e,Yi("0x23"),t))),n[Yi("0x2b")](Yi("0x29"),((e,o={})=>{const s=t[Yi("0x36")].document,r=o[Yi("0x1a")]||s.selection,i=Array[Yi("0x2a")](r[Yi("0x22")]())[Yi("0x19")]((t=>{return e=t,(n=this[Yi("0x1d")][Yi("0x36")][Yi("0x2")])[Yi("0x3")](e[Yi("0x11")],Yi("0x29"))&&!n[Yi("0x5")](e)&&Yi("0x29")!=e.name;var e,n}));t[Yi("0x36")][Yi("0x2c")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0x29"),commandParams:[],formatGroupId:"blockName"},fs(t))}))})),n[Yi("0x7")][Yi("0x1f")]((t=>{const{data:n}=t;if(n&&Yi("0x29")==n.commandName)return{type:"format",content:Yo(e,Yi("0xc"),Yo(e,Yi("0x23")))}})),n.enableCommand("insertParagraph"),t[Yi("0x30")].downcastDispatcher.on("addMarker:suggestion:insertion",ex(t),{priority:Yi("0x35")}),t[Yi("0x2e")][Yi("0x8")].on(Yi("0x10"),((e,n,o)=>{o.options.showSuggestionHighlights&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n._descriptionFactory;o.registerDescriptionCallback((n=>{if(Yi("0xa")!==n.type)return;const{start:s,end:r}=n[Yi("0x17")]();if(!s[Yi("0x16")](r)||!s.nodeAfter)return;const i=t[Yi("0x36")][Yi("0x2")],x=s[Yi("0x28")];return i[Yi("0x1")](x)&&!i.isLimit(x)&&i.checkChild(x,"$text")?{type:Yi("0xa"),content:Yo(e,Yi("0x13"),o[Yi("0x26")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins.get("TrackChangesEditing"),i=o[Yi("0x38")][Yi("0x25")],x=o[Yi("0x38")][Yi("0x20")],a=t[Yi("0x36")].schema;if(!i.isTouching(x)||!i[Yi("0x28")])return;const c=i[Yi("0x28")];if(a[Yi("0x1")](c)&&!a[Yi("0x27")](c)&&a[Yi("0x3")](c,Yi("0x18"))){if(!s[Yi("0x1e")][Yi("0xe")](o[Yi("0x38")],n[Yi("0xb")]))return;const t=s.writer[Yi("0x9")](Yi("0x12"),{class:Yi("0x15")}),i=s[Yi("0x31")][Yi("0x37")](x);e&&r[Yi("0x4")][Yi("0xf")](o[Yi("0x21")])&&s[Yi("0x34")][Yi("0x24")](Yi("0x0"),t),s[Yi("0x34")][Yi("0x2f")](i,t),s[Yi("0x31")][Yi("0x1c")](t,o[Yi("0x21")])}}}const nx=["format","createRangeOn","getAttributes","afterInit","getItems","getRanges","_descriptionFactory","from","commandName","isFormatting","*Remove all formatting*","removeFormat","getAttributeProperties","plugins","document","RemoveFormatEditing","registerDescriptionCallback","selection","enableCommand","locale","change","model","schema","TrackChangesEditing","editor","has"];var ox,sx;ox=nx,sx=417,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x2")](){const t=this[rx("0x17")];if(!t[rx("0xc")][rx("0x18")](rx("0xe")))return;const e=t[rx("0xc")].get(rx("0x16"));e[rx("0x11")](rx("0xa"),(n=>{const o=t.model[rx("0xd")][rx("0x10")];o.isCollapsed?n():t[rx("0x14")][rx("0x13")]((()=>{const n=Array[rx("0x6")](o[rx("0x4")]());for(const o of n)for(const n of o[rx("0x3")]())xx(n,t[rx("0x14")][rx("0x15")])&&e.markInlineFormat(t[rx("0x14")][rx("0x0")](n),{commandName:rx("0xa"),commandParams:[]})}))})),e[rx("0x5")][rx("0xf")]((e=>{const{data:n}=e;if(n&&rx("0xa")==n[rx("0x7")])return{type:rx("0x19"),content:Yo(t[rx("0x12")],rx("0x9"))}}))}}function xx(t,e){for(const[n]of t[rx("0x1")]()){const t=e[rx("0xb")](n);if(t&&t[rx("0x8")])return!0}return!1}const ax=["discardAllSuggestions","plugins","enableCommand","acceptSelectedSuggestions","discardSelectedSuggestions","editor","goToPreviousRestrictedEditingException","afterInit","get","has"];var cx,lx;cx=ax,lx=398,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x9")](){const t=this[ux("0x7")];if(!t[ux("0x3")][ux("0x1")]("RestrictedEditingModeEditing"))return;const e=t[ux("0x3")][ux("0x0")]("TrackChangesEditing");e[ux("0x4")](ux("0x8")),e.enableCommand("goToNextRestrictedEditingException");const n=t[ux("0x3")][ux("0x0")]("RestrictedEditingModeEditing");n[ux("0x4")]("trackChanges"),n[ux("0x4")]("acceptSuggestion"),n[ux("0x4")]("discardSuggestion"),n[ux("0x4")]("acceptAllSuggestions"),n[ux("0x4")](ux("0x2")),n[ux("0x4")](ux("0x5")),n[ux("0x4")](ux("0x6"))}}const gx=["requires","toViewPosition","model","addMarker:suggestion:insertion","editing","writer","name","init","mapper","softBreak","options","addMarker:suggestion","enableCommand","insert","test","TrackChangesEditing","high","get","markerRange","locale","addMarker:suggestion:deletion","consumable","addClass","registerElementLabel","split","deletion","markerName","editor","_descriptionFactory","createPositionBefore","plugins","getItems","showSuggestionHighlights","span","shiftEnter","ELEMENT_LINE_BREAK"];var mx,fx;mx=gx,fx=334,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("0x1a")](){return[nr.ShiftEnter]}[hx("0x21")](){const t=this[hx("0x11")],e=t.plugins[hx("0x7")](hx("0x5"));e[hx("0x2")](hx("0x18")),t[hx("0x1e")].downcastDispatcher.on(hx("0x1d"),bx(t),{priority:"high"}),t[hx("0x1e")].downcastDispatcher.on(hx("0xa"),bx(t),{priority:hx("0x6")}),t.data.downcastDispatcher.on(hx("0x1"),((e,n,o)=>{o[hx("0x0")][hx("0x16")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x12")][hx("0xd")](hx("0x23"),(e=>Yo(t[hx("0x9")],hx("0x19"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x14")][hx("0x7")]("TrackChangesEditing");if(!s[hx("0xb")][hx("0x4")](o[hx("0x8")],n[hx("0x20")]))return;const i=t[hx("0x1c")];for(const t of o[hx("0x8")][hx("0x15")]()){if(!t.is("element",hx("0x23")))continue;const n=hx("0xf")==o[hx("0x10")][hx("0xe")](":")[1]?"merge":"split",x=s[hx("0x1f")].createUIElement(hx("0x17"),{class:"ck-suggestion-marker-"+n}),a=s[hx("0x22")][hx("0x1b")](i[hx("0x13")](t));e&&r.activeMarkers.includes(o[hx("0x10")])&&s[hx("0x1f")][hx("0xc")]("ck-suggestion-marker--active",x),s[hx("0x1f")][hx("0x3")](a,x),s[hx("0x22")].bindElementToMarker(x,o[hx("0x10")])}}}const Ex=["from","FORMAT_RESTRICTED_ENABLED","TrackChangesEditing","document","commandName","enableCommand","FORMAT_RESTRICTED_DISABLED","change","selection","forceValue","value","restrictedEditingException","has","locale","get","editor","StandardEditingModeEditing","isCollapsed","registerDescriptionCallback"];var _x,Tx;_x=Ex,Tx=452,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{afterInit(){const t=this[Cx("0x0")],e=t.model,n=t[Cx("0x11")];if(!t.plugins[Cx("0x10")](Cx("0x1")))return;const o=t.plugins[Cx("0x12")](Cx("0x6")),s=Cx("0xf"),r=t.commands[Cx("0x12")](s);o[Cx("0x9")](s,((t,n={})=>{const i=e[Cx("0x7")][Cx("0xc")];if(i[Cx("0x2")])return void t(n);const x=void 0!==n[Cx("0xd")]?n.forceValue:!r[Cx("0xe")];e[Cx("0xb")]((()=>{const t=Array[Cx("0x4")](i.getRanges());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[Cx("0x3")]((t=>{const{data:e}=t;if(e&&e[Cx("0x8")]==s)return e.commandParams[0][Cx("0xd")]?{type:"format",content:Yo(n,Cx("0x5"))}:{type:"format",content:Yo(n,Cx("0xa"))}}))}}const kx=["getItems","classes","every","_descriptionFactory","selection","commandName","name","getAttribute","_getRangesWithClasses","createRangeOn","plugins","get","markInlineFormat","model","getDefinitionsForView","value","change","locale","DataSchema","enabledStyles","toLowerCase","_getStyleDefinition","markBlockFormat","editor","isBlock","add","commands","Style","styleName","*Format:* %0","style","getAncestors","forceValue","find","isCollapsed","includes","format","inline","registerDescriptionCallback","getSelectedBlocks"];var Ax,vx;Ax=kx,vx=479,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{afterInit(){const t=this[Rx("0x18")];if(!t[Rx("0xb")].has(Rx("0x1c")))return;const e=t[Rx("0x1b")][Rx("0xc")](Rx("0x1f")),n=t[Rx("0xb")][Rx("0xc")]("TrackChangesEditing"),o=t[Rx("0x12")],s=t[Rx("0xb")][Rx("0xc")](Rx("0x13")),r=t[Rx("0xb")][Rx("0xc")]("StyleUtils").normalizeConfig(s,t.config[Rx("0xc")]("style.definitions"));n.enableCommand(Rx("0x1f"),((o,{styleName:i})=>{const x=t.model.document[Rx("0x5")],a=this._getStyleDefinition(i,r);if(!a)return;if(!e[Rx("0x14")][Rx("0x24")](i))return;if(x[Rx("0x23")]&&!a[Rx("0x19")])return void o({styleName:i});const c=!e[Rx("0x10")][Rx("0x24")](a[Rx("0x7")]);if(a[Rx("0x19")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x20")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x24")](o[Rx("0x7")])){n[Rx("0x1a")](o);break}}return n}(x[Rx("0x0")](),a.modelElements);t[Rx("0xe")][Rx("0x11")]((()=>{for(const t of e)n[Rx("0x17")](t,{commandName:Rx("0x1f"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array.from(x.getRanges());if(!c){const n=Array.from(s[Rx("0xf")](a.element,!1))[0][Rx("0xe")],o=[];for(const s of e){const e=this[Rx("0x9")](t.model,s,a[Rx("0x2")],n);o.push(...e)}e=o}t.model.change((()=>{for(const t of e)n[Rx("0xd")](t,{commandName:Rx("0x1f"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x4")][Rx("0x27")]((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x6")])return e.commandParams[0][Rx("0x21")]?{type:Rx("0x25"),content:Yo(o,Rx("0x1e"),e.commandParams[0][Rx("0x1d")][Rx("0x15")]())}:{type:Rx("0x25"),content:Yo(o,"*Remove format:* %0",e.commandParams[0].styleName[Rx("0x15")]())}}))}[Rx("0x16")](t,e){let n=e.block[Rx("0x22")]((e=>e[Rx("0x7")]===t));return n||(n=e[Rx("0x26")][Rx("0x22")]((e=>e[Rx("0x7")]===t))),n}[Rx("0x9")](t,e,n,o){const s=[];for(const r of e[Rx("0x1")]()){const e=r[Rx("0x8")](o);e&&n[Rx("0x3")]((t=>e[Rx("0x2")][Rx("0x24")](t)))&&s.push(t[Rx("0xa")](r))}return s}}const Sx=["_tableSuggestions","toLowerCase","start","tablePaste","MAX_SAFE_INTEGER","options","nodeBefore","left","addClass","item","$textProxy","maxRow","highest","classes","editor","minRow","getRanges","span","execute","colspan","ELEMENT_TABLE_ROW","getSelectionAffectedTableCells","get","startsWith","max","ELEMENT_TABLE_COLUMN","TableUtils","removeTableRow","name","has","createPositionAt","data","change","getChildren","document","position","_setupColumnsRowsFixing","enqueueChange","push","suggestion","insertTableRowAbove","type","isEqual","registerElementLabel","tableColumn","fromRange","tableCell","detach","getFirstRange","join","getAttribute","first","_tablePostFixingSubtypes","showSuggestionHighlights","MIN_SAFE_INTEGER","_getCoordsForCells","from","getChangedMarkers","TableEditing","low","discard","every","registerDescriptionCallback","$graveyard","plugins","model","markMultiRangeDeletion","getCellLocation","_acceptFormatSuggestionCallbackFactory","rootName","toViewElement","end","refresh","registerCustomCallback","accept","includes","markMultiRangeInsertion","order","above","_splitMarkerName","filter","getItems","hasAttribute","length","cell","_descriptionFactory","setSelection","nodeAfter","map","createTableWalker","differ","addRange","forceValue","TrackChangesEditing","substr","registerPostFixer","commands","table","isInContent","getRowIndexes","writer","isTouching","getColumnIndexes","root","afterInit","removeClass","_getSuggestionCoords","createRangeIn","*Insert:* %0","getContainedElement","insertion","ELEMENT_TABLE","subType","mapper","change:data","enableCommand","ELEMENT_TABLE_ROW_WITH_TEXT","addMarker:suggestion","_suggestionFactory","*Remove:* %0","some","deletion","selection","insertTable","oldRange","insert","locale","min","findAncestor","tableRow","removeTableColumn","rowspan","batch","ELEMENT_TABLE_COLUMN_WITH_TEXT","add","createRangeOn","ELEMENT_TABLE_WITH_TEXT","last"];var Lx,Nx;Lx=Sx,Nx=461,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Sx[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x5")]=[Mx("0x52"),"tableColumn"],this[Mx("0x5b")]=new Set}[Mx("0x39")](){const t=this.editor,e=t[Mx("0x12")][Mx("0x7d")][Mx("0x4b")];if(!t[Mx("0x11")][Mx("0x78")](Mx("0xb")))return;const n=t[Mx("0x4f")],o=t[Mx("0x11")].get(Mx("0x2e")),s=t[Mx("0x11")].get(Mx("0x75"));o[Mx("0x26")][Mx("0x86")]("table",(t=>Yo(n,Mx("0x40"),t))),this[Mx("0x7f")](),o.enableCommand(Mx("0x4c")),o[Mx("0x44")]("selectTableRow"),o[Mx("0x44")]("selectTableColumn");for(const n of[Mx("0x83"),"insertTableRowBelow"]){const r=t.commands[Mx("0x71")](n);o.enableCommand(n,(n=>{t[Mx("0x12")].change((t=>{n();const i=Mx("0x1f")===r.order,x=s[Mx("0x70")](e),a=s[Mx("0x34")](x),c=i?a.first-1:a[Mx("0x5a")]+1,l=x[0][Mx("0x51")](Mx("0x32")),u=s[Mx("0x2a")](l,{startRow:c,endRow:c}),d=Array.from(u).map((e=>t.createRangeOn(e[Mx("0x25")])));o.markMultiRangeInsertion(d,Mx("0x52"))}))}))}for(const n of["insertTableColumnLeft","insertTableColumnRight"]){const r=t[Mx("0x31")][Mx("0x71")](n);o[Mx("0x44")](n,(n=>{t[Mx("0x12")].change((t=>{n();const i=Mx("0x62")===r[Mx("0x1e")],x=s[Mx("0x70")](e),a=s.getColumnIndexes(x),c=i?a[Mx("0x4")]-1:a.last+1,l=x[0][Mx("0x51")](Mx("0x32")),u=s[Mx("0x2a")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Mx("0x9")](u).map((e=>t[Mx("0x58")](e.cell)));o[Mx("0x1d")](d,Mx("0x87"))}))}))}for(const n of[Mx("0x76"),Mx("0x53")]){const r=n[Mx("0x2f")](11),i=r[Mx("0x5c")](),x=i[Mx("0x2f")](0,3)+"span",a=Mx("0x32")+r,c=Mx("0x50")+r,l=Mx("0x73")+r;o[Mx("0x44")](n,(()=>{t[Mx("0x12")][Mx("0x7b")]((t=>{const r=s[Mx("0x70")](e),u=r[0][Mx("0x51")](Mx("0x32"));let d;if(Mx("0x76")==n){const t=s[Mx("0x34")](r);d={startRow:t.first,endRow:t[Mx("0x5a")],includeAllSlots:!0}}else{const t=s[Mx("0x37")](r);d={startColumn:t[Mx("0x4")],endColumn:t[Mx("0x5a")],includeAllSlots:!0}}const g=s.createTableWalker(u,d),m=Array[Mx("0x9")](g).map((({cell:t})=>t)),f=Ox(m.filter((t=>t.hasAttribute(x)))),h=Ox(m.filter((t=>!t.hasAttribute(x))))[Mx("0x29")]((e=>t[Mx("0x58")](e))),p=o[Mx("0x13")](h,a);if(p&&(Mx("0x52")==p[Mx("0x41")]||Mx("0x87")==p[Mx("0x41")])){const e=this[Mx("0x3b")](p);for(const n of f){const o=t[Mx("0x58")](n),r=s[Mx("0x14")](n),a=n[Mx("0x3")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[Mx("0x2c")](o)}}}))}))}function r(n){const o=Array.from(e[Mx("0x6b")]())[Mx("0x29")]((t=>i.LiveRange[Mx("0x88")](t)));t[Mx("0x12")][Mx("0x7b")]((e=>{const s=e[Mx("0x55")];n=n.filter((t=>"$graveyard"!=t.root.rootName)),e[Mx("0x27")](n),t[Mx("0x31")].get(Mx("0x76")).refresh(),t[Mx("0x6d")](Mx("0x76"),{forceDefaultExecution:!0}),t.model.enqueueChange((()=>{t.model[Mx("0x80")](s,(t=>{const e=o[Mx("0x21")]((t=>Mx("0x10")!=t[Mx("0x38")].rootName));e[Mx("0x24")]>0&&t[Mx("0x27")](e);for(const t of o)t[Mx("0x0")]()}))}))}))}function a(n){t.model[Mx("0x7b")]((o=>{const s=Array.from(e[Mx("0x6b")]())[Mx("0x29")]((t=>i.LiveRange[Mx("0x88")](t))),r=[];for(const t of n)for(const e of t[Mx("0x22")]({shallow:!0}))r[Mx("0x81")](e);for(const e of r)Mx("0x10")!=e[Mx("0x38")].rootName&&(o[Mx("0x27")](o[Mx("0x79")](e,0)),t[Mx("0x31")].get(Mx("0x53")).refresh(),t.execute(Mx("0x53"),{forceDefaultExecution:!0}));const x=s[Mx("0x21")]((t=>Mx("0x10")!=t[Mx("0x38")][Mx("0x16")]));x.length>0&&o[Mx("0x27")](x);for(const t of s)t[Mx("0x0")]()}))}function c(t,e){return e[Mx("0xe")]((e=>t[Mx("0x49")]((t=>t[Mx("0x18")].isEqual(e.start)||e[Mx("0x18")][Mx("0x85")](t[Mx("0x5d")])))))}function l(t,e){return t[Mx("0x49")]((t=>e[Mx("0x49")]((e=>t[Mx("0x18")][Mx("0x36")](e[Mx("0x5d")])))))}t[Mx("0x7a")].downcastDispatcher.on(Mx("0x46"),((t,e,n)=>{if(!n[Mx("0x60")][Mx("0x6")])return;const o=e[Mx("0x64")];if(!o)return;const s=n[Mx("0x42")][Mx("0x17")](o);function r(t){return Array.isArray(t)?t:[t]}s&&Mx("0x89")===o[Mx("0x77")]&&(0,x.setHighlightHandling)(s,n[Mx("0x35")],((t,e,n)=>n[Mx("0x63")](r(e[Mx("0x68")]),t)),((t,e,n)=>n[Mx("0x3a")](r(e[Mx("0x68")]),t)))}),{priority:Mx("0x67")}),o[Mx("0x26")][Mx("0xf")]((t=>{if("insertion"!=t.type&&"deletion"!=t[Mx("0x84")])return;const e=t[Mx("0x3e")]();if(null!=e&&e.is("element",Mx("0x32"))){if(Mx("0x3f")==t[Mx("0x84")]){const e=t.getItems()[Mx("0x21")]((t=>t.is("$textProxy")))[Mx("0x29")]((t=>t.data));if(e.length)return{type:Mx("0x3f"),content:Yo(n,Mx("0x3d"),Yo(n,Mx("0x59"),'"'+e[Mx("0x2")](" ")+'"'))}}if(Mx("0x4a")==t[Mx("0x84")]){const e=t[Mx("0x22")]()[Mx("0x21")]((t=>t.is("$textProxy")))[Mx("0x29")]((t=>t[Mx("0x7a")]));if(e[Mx("0x24")])return{type:Mx("0x4a"),content:Yo(n,Mx("0x48"),Yo(n,Mx("0x59"),'"'+e[Mx("0x2")](" ")+'"'))}}}})),o[Mx("0x26")][Mx("0xf")]((t=>{if(Mx("0x52")==t.subType){const e=t[Mx("0x22")]()[Mx("0x21")]((t=>t.is(Mx("0x65"))))[Mx("0x29")]((t=>t[Mx("0x7a")])),o=this[Mx("0x3b")](t),s=o[Mx("0x66")]-o[Mx("0x6a")]+1;if(Mx("0x3f")==t[Mx("0x84")])return e[Mx("0x24")]?{type:Mx("0x3f"),content:Yo(n,Mx("0x3d"),Yo(n,Mx("0x45"),[s,'"'+e[Mx("0x2")](" ")+'"']))}:{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x6f"),s))};if(Mx("0x4a")==t[Mx("0x84")])return e[Mx("0x24")]?{type:Mx("0x4a"),content:Yo(n,Mx("0x48"),Yo(n,Mx("0x45"),[s,'"'+e[Mx("0x2")](" ")+'"']))}:{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x6f"),s))}}if(Mx("0x87")==t[Mx("0x41")]){const e=t[Mx("0x22")]().filter((t=>t.is(Mx("0x65"))))[Mx("0x29")]((t=>t.data)),o=this[Mx("0x3b")](t),s=o.maxColumn-o.minColumn+1;if(Mx("0x3f")==t[Mx("0x84")])return e[Mx("0x24")]?{type:Mx("0x3f"),content:Yo(n,Mx("0x3d"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x2")](" ")+'"']))}:{type:Mx("0x3f"),content:Yo(n,Mx("0x3d"),Yo(n,Mx("0x74"),s))};if(Mx("0x4a")==t[Mx("0x84")])return e.length?{type:Mx("0x4a"),content:Yo(n,Mx("0x48"),Yo(n,Mx("0x56"),[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x4a"),content:Yo(n,Mx("0x48"),Yo(n,Mx("0x74"),s))}}})),o[Mx("0x47")][Mx("0x1a")](Mx("0x3f"),"tableRow",Mx("0xd"),r),o[Mx("0x47")][Mx("0x1a")](Mx("0x4a"),Mx("0x52"),"accept",r),o[Mx("0x47")][Mx("0x1a")]("insertion",Mx("0x87"),Mx("0xd"),a),o[Mx("0x47")][Mx("0x1a")](Mx("0x4a"),Mx("0x87"),Mx("0x1b"),a),o[Mx("0x47")].registerCustomCallback(Mx("0x3f"),"tableColumn",Mx("0x2"),c),o[Mx("0x47")].registerCustomCallback("deletion",Mx("0x87"),Mx("0x2"),c),o[Mx("0x47")][Mx("0x1a")](Mx("0x3f"),"tableRow",Mx("0x2"),l),o[Mx("0x47")][Mx("0x1a")](Mx("0x4a"),"tableRow",Mx("0x2"),l)}[Mx("0x15")](){const t=this[Mx("0x69")],e=t.model.document.selection;return(n,o)=>{t[Mx("0x12")][Mx("0x7b")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end[Mx("0x61")];x&&x[0]&&!1===x[0][Mx("0x2d")]&&(a=n[0][Mx("0x5d")][Mx("0x28")]);const c=s[Mx("0x3c")](a);if(Mx("0x10")==c[Mx("0x38")].rootName)return;const l=Array[Mx("0x9")](e.getRanges()).map((t=>i.LiveRange[Mx("0x88")](t)));s[Mx("0x27")](c),t.commands[Mx("0x71")](r)[Mx("0x19")](),x[Mx("0x81")]({forceDefaultExecution:!0}),t[Mx("0x6d")](r,...x);const u=l[Mx("0x21")]((t=>Mx("0x10")!=t[Mx("0x38")][Mx("0x16")]));u.length>0&&s.setSelection(u);for(const t of l)t[Mx("0x0")]()}))}}[Mx("0x8")](t){const e=this[Mx("0x69")][Mx("0x11")][Mx("0x71")](Mx("0x75"));let n=Number.MAX_SAFE_INTEGER,o=Number[Mx("0x7")],s=Number[Mx("0x5f")],r=Number[Mx("0x7")];for(const i of t){if(Mx("0x10")==i.root[Mx("0x16")])continue;const{row:t,column:x}=e[Mx("0x14")](i),a=i[Mx("0x23")](Mx("0x54"))?i[Mx("0x3")](Mx("0x54"))-1:0,c=i[Mx("0x23")]("colspan")?i.getAttribute(Mx("0x6e"))-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("0x7f")](){const t=this[Mx("0x69")],e=t.plugins[Mx("0x71")](Mx("0x2e")),n=t.plugins[Mx("0x71")](Mx("0x75"));t[Mx("0x12")][Mx("0x7d")].on(Mx("0x43"),(()=>{const n=Array[Mx("0x9")](t.model.document.differ[Mx("0xa")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x20")](t);if(Mx("0x82")!=n)continue;if(null!=o[Mx("0x4d")])continue;const i=e.getSuggestion(s);this[Mx("0x5")][Mx("0x1c")](r)&&this._tableSuggestions[Mx("0x57")](i)}}),{priority:Mx("0xc")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t.findAncestor(Mx("0x32")),i=n.getCellLocation(t);for(const e of this[Mx("0x5b")]){const n=e[Mx("0x41")],x=n[Mx("0x72")](Mx("0x5e")),a=n[Mx("0x2f")](x?10:5),c=a[Mx("0x5c")](),l=c[Mx("0x2f")](0,3)+Mx("0x6c"),u=Mx("0x50")+a,d=Mx("0x73")+a;if(!e[Mx("0x33")])continue;if(r!=e[Mx("0x1")]()[Mx("0x5d")].findAncestor("table"))continue;if(e.isIntersectingWithRange(s))continue;const g=t[Mx("0x23")](l)?t[Mx("0x3")](l)-1:0,m=this[Mx("0x3b")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x2c")](s),o=!0)}return o};t[Mx("0x12")].document[Mx("0x30")]((e=>{let n=!1;for(const s of t[Mx("0x12")][Mx("0x7d")][Mx("0x2b")].getChanges())if(Mx("0x4e")==s[Mx("0x84")])if(Mx("0x52")==s[Mx("0x77")])for(const t of s[Mx("0x7e")][Mx("0x28")][Mx("0x7c")]())n=n||o(t,e);else Mx("0x89")==s.name&&(n=n||o(s[Mx("0x7e")][Mx("0x28")],e));return n}))}[Mx("0x3b")](t){return this[Mx("0x8")](t.getRanges()[Mx("0x29")]((t=>t.start.nodeAfter)))}}function Ox(t){return Array[Mx("0x9")](new Set(t).values())}const Fx=["enableCommand","highest","mergeTableCellUp","mergeTableCellRight","isEnabled","findAncestor","_areSelectedCellsMergable","document","refresh","commandName","commands","horizontally","createRangeOn","isInContent","format","tableCell","containsRange","forceDefaultExecution","TableEditing","splitTableCellHorizontally","model","$graveyard","deletion","setSelection","markMultiRangeBlockFormat","splitTableCellVertically","_areMergableCells","_descriptionFactory","*Merge cells*","afterInit","execute","getRanges","direction","author","plugins","registerCustomCallback","requires","mergeTableCellDown","mergeTableCellLeft","detach","has","*Split cell:* vertically","registerDescriptionCallback","getFirstPosition","type","get","TableUtils","subType","find","editor","_suggestionFactory","_tablePostFixingSubtypes","trackChanges","table","mergeTableCells","return","root","stop","formatBlock","cell","accept","from","createTableWalker","length","size","value","getAncestors","TrackChangesEditing","selection","element","change","add","map","_isForcedDefaultExecutionBlock","rootName","filter","set:isEnabled","getSelectionAffectedTableCells"];var Px,Dx;Px=Fx,Dx=346,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("0x2")](){return[wx]}[Bx("0x49")](){const t=this[Bx("0xf")],e=t[Bx("0x40")].document[Bx("0x22")],n=t.locale;if(!t[Bx("0x0")][Bx("0x6")](Bx("0x3e")))return;const o=t[Bx("0x0")][Bx("0xb")](Bx("0x21")),s=t[Bx("0x0")].get(Bx("0xc")),r=t.plugins[Bx("0xb")](wx);r[Bx("0x11")].push(Bx("0x14")),o[Bx("0x2c")](Bx("0x14"),(()=>{const e=s[Bx("0x2b")](t[Bx("0x40")].document[Bx("0x22")]);t[Bx("0x40")][Bx("0x24")]((()=>{o[Bx("0x44")](e,{commandName:"mergeTableCells",commandParams:[]},[],Bx("0x14"))}))})),t[Bx("0x36")][Bx("0xb")](Bx("0x14")).on(Bx("0x4a"),((e,n)=>{t[Bx("0x36")][Bx("0xb")](Bx("0x12"))[Bx("0x1f")]&&(n[Bx("0x1d")]>0&&n[n.length-1]&&n[n[Bx("0x1d")]-1][Bx("0x3d")]||o[Bx("0x27")]||this[Bx("0x32")]()||e[Bx("0x17")]())}),{priority:Bx("0x2d")});for(const e of["mergeTableCellUp",Bx("0x2f"),Bx("0x3"),Bx("0x4")]){const n=t[Bx("0x36")][Bx("0xb")](e);o[Bx("0x2c")](e,(()=>{const e=t[Bx("0x40")][Bx("0x33")].selection[Bx("0x9")]().getAncestors()[Bx("0xe")]((t=>t.is(Bx("0x23"),Bx("0x3b")))),s=n[Bx("0x1f")];t[Bx("0x40")].change((()=>{o[Bx("0x44")]([e,s],{commandName:Bx("0x14"),commandParams:[]},[],Bx("0x14"))}))}))}for(const e of[Bx("0x45"),"splitTableCellHorizontally"]){const n=t.commands[Bx("0xb")](e);o[Bx("0x2c")](e,(()=>{const r=s[Bx("0x2b")](t[Bx("0x40")][Bx("0x33")].selection)[0],i=r[Bx("0x31")](Bx("0x13")),{column:x,row:a}=s.getCellLocation(r);let c=[];if(Bx("0x37")==n[Bx("0x4c")]){const t=s[Bx("0x1c")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x1b")](t)[Bx("0x26")]((t=>t[Bx("0x19")]))}else{const t=s[Bx("0x1c")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x1b")](t)[Bx("0x26")]((t=>t.cell))}t[Bx("0x40")][Bx("0x24")]((t=>{o.markBlockFormat(t[Bx("0x38")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x47")][Bx("0x8")]((t=>{const{data:e}=t;if(e)return Bx("0x14")==e.commandName?{type:Bx("0x3a"),content:Yo(n,Bx("0x48"))}:void 0})),o[Bx("0x47")][Bx("0x8")]((t=>{const{data:e}=t;if(e)return Bx("0x45")==e.commandName?{type:"format",content:Yo(n,Bx("0x7"))}:Bx("0x3f")==e[Bx("0x35")]?{type:Bx("0x3a"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of["mergeTableCellUp",Bx("0x2f"),Bx("0x3"),"mergeTableCellLeft"])o._suggestionFactory.registerCustomCallback(Bx("0x18"),t,"accept",x);for(const t of["splitTableCellVertically",Bx("0x3f")])o[Bx("0x10")][Bx("0x1")](Bx("0x18"),t,Bx("0x1a"),x);o._suggestionFactory[Bx("0x1")](Bx("0x18"),Bx("0x14"),Bx("0x1a"),(n=>{t[Bx("0x40")][Bx("0x24")]((o=>{const s=Array.from(e[Bx("0x4b")]())[Bx("0x26")]((t=>i.LiveRange.fromRange(t)));o[Bx("0x43")](n),t.commands[Bx("0xb")](Bx("0x14"))[Bx("0x34")](),t[Bx("0x4a")](Bx("0x14"),{forceDefaultExecution:!0});const r=s[Bx("0x29")]((t=>Bx("0x41")!=t[Bx("0x16")][Bx("0x28")]));r[Bx("0x1d")]>0&&o.setSelection(r);for(const t of s)t[Bx("0x5")]()}))}));for(const e of[Bx("0x2e"),Bx("0x3"),Bx("0x4"),"mergeTableCellRight"]){const n=t[Bx("0x36")].get(e);n.on(Bx("0x2a"),((e,o,s)=>{if(s){const o=t[Bx("0x40")][Bx("0x33")][Bx("0x22")][Bx("0x9")]()[Bx("0x20")]()[Bx("0xe")]((t=>t.is(Bx("0x23"),Bx("0x3b"))));this[Bx("0x46")](n.value,o)||(e[Bx("0x15")]=!1,e.stop())}}),{priority:"low"})}}[Bx("0x32")](){const t=this[Bx("0xf")][Bx("0x36")][Bx("0xb")]("mergeTableCells"),e=this[Bx("0xf")][Bx("0x0")].get(Bx("0xc"));if(!t[Bx("0x30")])return!1;const n=e.getSelectionAffectedTableCells(this[Bx("0xf")][Bx("0x40")][Bx("0x33")][Bx("0x22")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x46")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this.editor.plugins[Bx("0xb")](Bx("0x21")),o=this.editor[Bx("0x40")][Bx("0x38")](t),s=this[Bx("0xf")][Bx("0x40")][Bx("0x38")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if(("insertion"==t[Bx("0xa")]||Bx("0x42")==t[Bx("0xa")]||"mergeTableCells"==t[Bx("0xd")])&&t[Bx("0x39")])for(const e of t.getRanges())e[Bx("0x3c")](o,!0)&&r[Bx("0x25")](t.type+":"+t.author.id),e[Bx("0x3c")](s,!0)&&i[Bx("0x25")](t[Bx("0xa")]+":"+t[Bx("0x4d")].id);if(r[Bx("0x1e")]!=i.size)return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Ux=["model","_descriptionFactory","get","from","downcastDispatcher","value","headingRows","start","data-suggestion","TableEditing","_splitMarkerName","FORMAT_REGULAR_COLUMN","cell","markerRange","removeClass","createPositionAfter","afterInit","unbindElementFromMarkerName","plugins","data","mapper","showSuggestionHighlights","TableUtils","ck-suggestion-marker--active","accept","addMarker:suggestion","getChild","getAttribute","*Format:* %0","forceValue","table","parent","ck-suggestion-marker-","setAttribute","editor","markerNameToElements","registerDescriptionCallback","setTableRowHeader","toViewElement","childCount","document","last","includes","requires","_acceptFormatSuggestionCallbackFactory","setTableColumnHeader","createTableWalker","nodeBefore","activeMarkers","markerName","selection","removeAttribute","markBlockFormat","FORMAT_HEADER_ROW","consume","addClass","removeMarker:suggestion","consumable","index","formatBlock","writer","commandParams","highest","findAncestor","isBefore","change","FORMAT_REGULAR_ROW","first","nodeAfter","commandName","_suggestionFactory","enableCommand","editing","getRowIndexes","getSelectionAffectedTableCells","registerCustomCallback","headingColumns","createPositionBefore","item","createRange","commands"];var Gx,Hx;Gx=Ux,Hx=256,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("0x1e")](){return[wx]}[zx("0x3")](){const t=this[zx("0x15")];if(!t[zx("0x5")].has(zx("0x4d")))return;const e=t.locale,n=t[zx("0x5")][zx("0x46")]("TrackChangesEditing"),o=t[zx("0x5")][zx("0x46")](zx("0x9")),s=t[zx("0x5")][zx("0x46")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x4e")](r.markerName),c=n.getSuggestion(a);if(!c[zx("0x6")]||zx("0x20")!=c[zx("0x6")].commandName)return;if(r[zx("0x41")])return void s.stop();if(!i[zx("0x2c")][zx("0x29")](r[zx("0x0")],s.name))return;const l=r[zx("0x0")][zx("0x4b")][zx("0x37")],u=r.markerRange.end[zx("0x22")],d=l[zx("0x12")][zx("0x12")],{column:g}=o.getCellLocation(l),{column:m}=o.getCellLocation(u);for(let s=g;s<=m;s++){const c=o[zx("0x21")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x50")],c=i[zx("0x7")][zx("0x19")](s);i.writer.addClass(zx("0x13")+x,c),e&&i[zx("0x2f")][zx("0x14")](zx("0x4c"),a,c),i[zx("0x7")].bindElementToMarker(c,r[zx("0x24")]),t&&(n[zx("0x23")][zx("0x1d")](r[zx("0x24")])?i[zx("0x2f")][zx("0x2a")](zx("0xa"),c):i[zx("0x2f")][zx("0x1")]("ck-suggestion-marker--active",c))}}}}n[zx("0x3a")](zx("0x18"),((e,s)=>{const r=o.getSelectionAffectedTableCells(t[zx("0x44")][zx("0x1b")][zx("0x25")]),i=o[zx("0x3c")](r),x=r[0][zx("0x32")](zx("0x11")),a=x[zx("0xe")](zx("0x4a"))||0,c=s&&null!==s[zx("0x10")]?s[zx("0x10")]:!t.commands[zx("0x46")]("setTableRowHeader")[zx("0x49")],l=c?i[zx("0x1c")]:i[zx("0x36")],u=x[zx("0xd")](l);let d;if(c){const e=x.getChild(a);if(u[zx("0x2d")]<e.index)return;d=t[zx("0x44")].createRange(t[zx("0x44")][zx("0x40")](e.getChild(0)),t.model.createPositionAfter(u[zx("0xd")](u[zx("0x1a")]-1)))}else{const e=x[zx("0xd")](a-1);if(!e)return;d=t[zx("0x44")].createRange(t[zx("0x44")].createPositionBefore(u[zx("0xd")](0)),t[zx("0x44")][zx("0x2")](e[zx("0xd")](e[zx("0x1a")]-1)))}t[zx("0x44")].change((()=>{n[zx("0x27")](d,{commandName:zx("0x18"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n.enableCommand(zx("0x20"),((e,o)=>{const s=t[zx("0x5")].get(zx("0x9")),r=s[zx("0x3d")](t[zx("0x44")][zx("0x1b")].selection),i=s.getColumnIndexes(r),x=r[0][zx("0x32")](zx("0x11")),a=x.getAttribute(zx("0x3f"))||0,c=o&&null!==o[zx("0x10")]?o[zx("0x10")]:!t[zx("0x43")].get(zx("0x20"))[zx("0x49")];let l;const u=x[zx("0xd")](0),d=c?i.last:i.first,g=s[zx("0x21")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[zx("0x47")](g)[0].cell;if(c){const e=u[zx("0xd")](a);if(m[zx("0x33")](e))return;l=t[zx("0x44")][zx("0x42")](t[zx("0x44")][zx("0x40")](e),t.model[zx("0x2")](m))}else{const e=u[zx("0xd")](a-1);if(!e)return;l=t[zx("0x44")].createRange(t[zx("0x44")].createPositionBefore(m),t[zx("0x44")].createPositionAfter(e))}t.model[zx("0x34")]((()=>{n[zx("0x27")](l,{commandName:zx("0x20"),commandParams:[{forceValue:c}]},[],zx("0x20"))}))})),t[zx("0x3b")][zx("0x48")].on(zx("0xc"),r(),{priority:zx("0x31")}),t.data[zx("0x48")].on(zx("0xc"),((t,e,n)=>{n.options[zx("0x8")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t[zx("0x3b")][zx("0x48")].on(zx("0x2b"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x4e")](e[zx("0x24")]),i=n.getSuggestion(r);if(!i[zx("0x6")]||zx("0x20")!=i[zx("0x6")].commandName)return;const x=o.mapper[zx("0x16")](e[zx("0x24")]);if(x)for(const t of x)o.writer[zx("0x1")]("ck-suggestion-marker-"+s,t),o[zx("0x2f")][zx("0x1")](zx("0xa"),t),o[zx("0x2f")][zx("0x26")](zx("0x4c"),t),o[zx("0x7")][zx("0x4")](t,e[zx("0x24")])}),{priority:zx("0x31")}),n[zx("0x45")][zx("0x17")]((t=>{const{data:n}=t;if(n){if(zx("0x18")==n[zx("0x38")]){const t=n.commandParams[0][zx("0x10")];return o(Yo(e,zx(t?"0x28":"0x35")))}if(zx("0x20")==n[zx("0x38")]){const t=n[zx("0x30")][0][zx("0x10")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":zx("0x4f")))}}function o(t){return{type:"format",content:Yo(e,zx("0xf"),t)}}}));const i=s[zx("0x1f")]();n[zx("0x39")].registerCustomCallback(zx("0x2e"),zx("0x18"),zx("0xb"),i),n[zx("0x39")][zx("0x3e")](zx("0x2e"),zx("0x20"),zx("0xb"),i)}}const Vx=["ck-suggestion-marker--active","tableCellVerticalAlignment","nodeAfter","tableCellBackgroundColor","add","batch","rowInsertionRanges","editing","markerToHighlight","formatBlock","discard","getChild","getAttributes","createElement","containsRange","getRange","listenTo","markerAttributes","return","push","row","columns","elementToElement","_replaceTableSlotCell","suggestion","columnInsertionRanges","fill","findAncestor","markers","keys","for","_descriptionFactory","insert","trackChanges","rowInsertionIndexes","oldRange","markerName","has","getRows","_splitMarkerName","tableCell","nextSibling","isInContent","subType","move","getColumns","last","tableCellBorderStyle","unwrap","end","ck-suggestion-marker-insertion","createPositionBefore","tablePaste","from","removeMarkers","getShiftedBy","getChangedMarkers","TableClipboard","registerPostFixer","selection","registerCustomCallback","entries","getTableIfOnlyTableInContent","set","createTableWalker","type","redo","plugins","removeMarker","differ","createRange","editingDowncast","deletionRanges","getRowIndexes","getRanges","conversion","createRangeOn","suggestion-td","length","setAttribute","activeMarkers","high","attributes","next","markMultiRangeDeletion","rootName","_suggestionFactory","markMultiRangeBlockFormat","suggestion:formatBlock:tablePasteCell","document","forceDefaultExecution","tableCellHorizontalAlignment","requires","endColumn","remove","suggestionLoaded","Users","reduce","commands","columnInsertionIndexes","editor","getItems","startsWith","first","find","tablePasteColumn","content","locale","setAttributes","cells","getMarkers","position","accept","updateMarker","getChildren","tableCellSuggestion","filter","dataDowncast","insertion","start","join","afterInit","isEmpty","_tablePostFixingSubtypes","ck-suggestion-marker","_getCoordsForCells","includes","fromEntries","options","element","tablePasteRow","clipboardOutput","value","previous","author","low","get","cell","getAllAdjacentSuggestions","map","endRow","isEqual","model","markMultiRangeInsertion","deletion","wrap","getContainedElement","table","insertContent","getChanges","paragraph","showSuggestionHighlights","createRangeIn","change","_isForcedDefaultExecutionBlock","getColumnIndexes","tablePasteChainId","insertColumns","name","tablePasteCell","previousSibling","view","stop","getSuggestions"];var Kx,qx;Kx=Vx,qx=180,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=["tableCellBorderWidth","tableCellBorderColor",Xx("0x1f"),Xx("0x4b"),Xx("0x95"),Xx("0x97"),"tableCellPadding"],Qx=Object[Xx("0x6f")]($x[Xx("0x7b")]((t=>[t,null])));class Jx extends t.Plugin{static get[Xx("0x4c")](){return[wx]}[Xx("0x69")](){const t=this[Xx("0x54")];if(!t[Xx("0x33")][Xx("0x15")](Xx("0x29")))return;const n=t[Xx("0x33")].get("TrackChangesEditing"),o=t.plugins[Xx("0x78")]("TableUtils"),s=t[Xx("0x33")][Xx("0x78")](wx),r=t.plugins[Xx("0x78")](Xx("0x29"));s[Xx("0x6b")][Xx("0x3")](Xx("0x72"),Xx("0x59")),t[Xx("0x7e")].schema.register(Xx("0x63"),{allowIn:Xx("0x18"),allowContentOf:Xx("0x18"),isLimit:!0}),t[Xx("0x3b")][Xx("0x6")]({model:Xx("0x63"),view:"suggestion-td"});let i=null;t[Xx("0x7e")].on(Xx("0x84"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x3e")]-1];l&&l[Xx("0x4a")]||n[Xx("0x8a")]||this.editor[Xx("0x52")][Xx("0x78")](Xx("0x11"))[Xx("0x74")]&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s[Xx("0x2e")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Xx("0x49")][Xx("0x2b")]);if(!i.length)return!1;const x=i[0][Xx("0xb")](Xx("0x83")),a=o[Xx("0x39")](i),c=o[Xx("0x8b")](i),l={startRow:a[Xx("0x57")],endRow:a.last,startColumn:c[Xx("0x57")],endColumn:c[Xx("0x1e")]};return 1==i[Xx("0x3e")]&&(l[Xx("0x7c")]+=o[Xx("0x16")](r)-1,l[Xx("0x4d")]+=o[Xx("0x1d")](r)-1),Yx(x,l,o)}(a,c,t.model,o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x7e")][Xx("0x89")]((()=>{t[Xx("0x7e")][Xx("0x84")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Xx("0x3e")]&&n.markMultiRangeInsertion(s,Xx("0x72"),{tablePasteChainId:o}),r[Xx("0x3e")]&&n[Xx("0x7f")](r,"tablePasteColumn",{tablePasteChainId:o}),a[Xx("0x3e")]&&n[Xx("0x7f")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x3e")]&&n[Xx("0x44")](c,Xx("0x24"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Xx("0x47")](l[Xx("0x7b")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x8f"),{tablePasteChainId:o});if(u){const e=u[Xx("0x5e")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x7e")].createRangeOn(o),i=e[Xx("0x58")]((t=>t[Xx("0xa3")]()[Xx("0x7d")](r)));i&&n.push([i[Xx("0x8e")],s])}n.length&&u[Xx("0x3f")]("markerAttributes",Object[Xx("0x6f")](n))}i=null})))}),{priority:e.priorities[Xx("0x41")]+10}),t[Xx("0x33")][Xx("0x78")]("TableClipboard").on(Xx("0x7"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x92")]();const r=n[Xx("0x79")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x2")]=r;let l=null,u=null;if(c||a)if(a&&!c){s[Xx("0x4e")](r[Xx("0x9f")](0));for(const t of Array[Xx("0x25")](x[Xx("0x62")]()))s[Xx("0x10")](t,r,Xx("0x21"));const t=i[Xx("0x12")][Xx("0x6e")](n[Xx("0x4")]),e=i[Xx("0x53")].includes(n.column);t||e||(l=s[Xx("0x88")](r))}else c&&!a&&(u=s[Xx("0x88")](r));else{const t=s[Xx("0xa1")](Xx("0x63")),e=s[Xx("0xa1")](Xx("0x63"));s[Xx("0x81")](s[Xx("0x88")](r),e),s[Xx("0x10")](t,r,0);for(const e of Array[Xx("0x25")](x[Xx("0x62")]()))s[Xx("0x10")](e,t,Xx("0x21"));l=s[Xx("0x3c")](t),u=s.createRangeOn(e)}const d=Array[Xx("0x25")](x[Xx("0xa0")]())[Xx("0x64")]((([t])=>$x[Xx("0x6e")](t)));i[Xx("0x5d")].push({element:r,attributes:d.length?Object[Xx("0x6f")](d):null}),l&&i.insertionRanges[Xx("0x3")](l),u&&i[Xx("0x38")][Xx("0x3")](u)}),{priority:Xx("0x41")}),o.on(Xx("0x8d"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x5")]||1;i[Xx("0x53")]=new Array(a)[Xx("0xa")](x)[Xx("0x7b")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x30")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x9")][Xx("0x3")](t[Xx("0x7e")].createRangeOn(e))}),{priority:Xx("0x77")}),o.on("insertRows",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x12")]=new Array(a)[Xx("0xa")](x).map(((t,e)=>t+e));for(const{cell:e}of o[Xx("0x30")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x9a")][Xx("0x3")](t[Xx("0x7e")][Xx("0x3c")](e))}),{priority:Xx("0x77")}),n[Xx("0xf")].registerDescriptionCallback((e=>{if(e[Xx("0x1b")]&&e[Xx("0x1b")].startsWith("tablePaste"))return e[Xx("0x75")]?{}:{type:Xx("0x66"),content:Yo(t[Xx("0x5b")],"*Replace table cells*")}}));const x=()=>{};for(const t of[Xx("0x24"),Xx("0x59"),Xx("0x72"),Xx("0x8f")])n[Xx("0x46")][Xx("0x2c")](Xx("0x66"),t,Xx("0x68"),x),n[Xx("0x46")][Xx("0x2c")](Xx("0x80"),t,Xx("0x68"),x);n._suggestionFactory[Xx("0x2c")](Xx("0x9d"),"tablePasteCell",Xx("0x9e"),x),n[Xx("0x46")].registerCustomCallback(Xx("0x9d"),Xx("0x8f"),Xx("0x60"),((e,n,o)=>{const s=e.map((t=>t.getContainedElement()))[Xx("0x64")]((t=>t)),r=new Map(s[Xx("0x7b")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x5d")])e&&r[Xx("0x2f")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[Xx("0x2d")](o.markerAttributes)){const o=t[Xx("0x7e")][Xx("0xc")][Xx("0x78")](e),s=o?o[Xx("0xa3")]()[Xx("0x82")]():null;s&&r[Xx("0x2f")](s,n)}t.model[Xx("0x89")]((t=>{for(const[e,n]of r)t[Xx("0x5c")]({...Qx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x46")][Xx("0x2c")](e,"tablePaste",o,((s,r,i)=>{t[Xx("0x7e")][Xx("0x89")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x67")][Xx("0x96")];e.is("element",Xx("0x63"))&&x.push(e)}n[Xx("0x46")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e.root[Xx("0x45")]&&t[Xx("0x20")](e)}))}))};a(Xx("0x66"),Xx("0x60")),a(Xx("0x66"),"discard"),a(Xx("0x80"),Xx("0x60")),a("deletion","discard"),n[Xx("0x46")][Xx("0x2c")]("insertion","tablePasteRow","discard",(t=>{const e=t[Xx("0x7b")]((t=>t.getContainedElement())),n=e[0][Xx("0xb")](Xx("0x83")),{minRow:r,maxRow:i}=s[Xx("0x6d")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[Xx("0x46")][Xx("0x2c")](Xx("0x66"),Xx("0x59"),"discard",(t=>{const e=t.map((t=>t[Xx("0x82")]())),n=e[0][Xx("0xb")]("table"),{minColumn:r,maxColumn:i}=s[Xx("0x6d")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e[Xx("0x1b")][Xx("0x56")](Xx("0x24")))return;const o=e.attributes[Xx("0x8c")],s=n.getSuggestions()[Xx("0x64")]((t=>t.isInContent&&t[Xx("0x42")]&&t[Xx("0x42")][Xx("0x8c")]==o));s[Xx("0x3e")]&&e[Xx("0x7a")]()[Xx("0x3e")]!=s[Xx("0x3e")]&&s[Xx("0x51")](((t,e)=>(t[Xx("0x43")]=e,e[Xx("0x75")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x17")](t[Xx("0x14")]),s=[Xx("0x6c"),Xx("0x22")],r=n[Xx("0x40")].includes(t.markerName);return r&&s[Xx("0x3")](Xx("0x94")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x4f"),c,{priority:Xx("0x41")}),n.on("suggestionUnloaded",c,{priority:"high"}),t[Xx("0x7e")][Xx("0x49")][Xx("0x2a")]((()=>{let e=!1;const o=Array[Xx("0x25")](t[Xx("0x7e")][Xx("0x49")].differ[Xx("0x28")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x17")](s);if(Xx("0x8")!=o||"deletion"!=i||r[Xx("0x13")])continue;if(!n.hasSuggestion(x))continue;const a=n.getSuggestion(x)[Xx("0x3a")](),c=t.plugins[Xx("0x78")](Xx("0x50")).me;for(const t of n[Xx("0x93")]())if(t[Xx("0x1a")]&&t.author==c&&Xx("0x9d")==t[Xx("0x31")]&&Xx("0x8f")==t[Xx("0x1b")]&&t.getRanges().every((t=>a.some((e=>e[Xx("0xa2")](t,!0))))))for(const n of t[Xx("0x7a")]())n[Xx("0x1a")]&&(n[Xx("0x9e")](),e=!0)}return e})),t.model.document[Xx("0x2a")]((e=>{const o=t.commands[Xx("0x78")](Xx("0x32"));if(!o||!o._createdBatches[Xx("0x15")](e[Xx("0x99")]))return!1;let s=!1;const r=t[Xx("0x33")][Xx("0x78")](Xx("0x50")).me,i=t.model[Xx("0x49")].differ[Xx("0x85")](),x=Array[Xx("0x25")](t.model[Xx("0x49")][Xx("0x35")].getChangedMarkers())[Xx("0x64")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x17")](t);return Xx("0x8")==o&&"tablePaste"==s&&i==r.id&&!e.oldRange}));for(const t of i){if(Xx("0x10")!=t[Xx("0x31")]||Xx("0x63")!=t[Xx("0x8e")]||1!=t.length)continue;const n=e[Xx("0x36")](t[Xx("0x5f")],t[Xx("0x5f")][Xx("0x27")](1));if(!x[Xx("0x58")]((({data:t})=>t.newRange[Xx("0x7d")](n))))for(const{name:t,data:o}of x)if(n[Xx("0xa2")](o.newRange)){e[Xx("0x61")](t,{range:n}),s=!0;break}}return s})),t[Xx("0x7e")][Xx("0x49")][Xx("0x2a")]((e=>{let o=!1;const s=t.plugins[Xx("0x78")](Xx("0x50")).me,r=n.getSuggestions()[Xx("0x64")]((t=>t[Xx("0x1a")]&&t[Xx("0x76")]==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x24")==t[Xx("0x1b")])for(const e of t[Xx("0x5e")]()){const n=e[Xx("0xa3")]()[Xx("0x82")]();if(n)if(n.is(Xx("0x71"),Xx("0x63"))&&Zx(n)){t[Xx("0x34")](e.name),i[Xx("0x98")](n),o=!0;const s=n[Xx("0x19")],r=n[Xx("0x90")],a=s&&s.is(Xx("0x71"),Xx("0x63")),c=r&&r.is(Xx("0x71"),"tableCellSuggestion");a&&!i[Xx("0x15")](s)&&x[Xx("0x98")](s),c&&!i.has(r)&&x[Xx("0x98")](r)}else n.is(Xx("0x71"),Xx("0x86"))&&n.isEmpty&&(t[Xx("0x34")](e[Xx("0x8e")]),o=!0)}else if(Xx("0x8f")==t.subType){if(!t[Xx("0x42")]||!t.attributes[Xx("0x8c")])continue;const e=t.attributes[Xx("0x1")];if(e&&Object[Xx("0xd")](e)[Xx("0x3e")])continue;const n=t[Xx("0x42")][Xx("0x8c")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x1b")]&&e[Xx("0x1b")][Xx("0x56")](Xx("0x24"))){if(!e.attributes[Xx("0x8c")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x42")][Xx("0x8c")]==n){s=!1;break}}i&&s&&(t[Xx("0x26")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Xx("0x20")](t);return o})),t[Xx("0x3b")][Xx("0xe")](Xx("0x37"))[Xx("0x9c")]({model:Xx("0x48"),view:(t,e)=>l(t),converterPriority:Xx("0x41")}),t.conversion[Xx("0xe")](Xx("0x65"))[Xx("0x9c")]({model:Xx("0x48"),view:(t,e)=>e[Xx("0x70")][Xx("0x87")]?l(t,!1):null,converterPriority:"high"});const u=t[Xx("0x9b")][Xx("0x91")];this[Xx("0x0")](u.document,Xx("0x73"),((t,e)=>{const n=[];for(const t of u.createRangeIn(e[Xx("0x5a")])[Xx("0x55")]())t.is(Xx("0x71"),Xx("0x3d"))&&n[Xx("0x3")](t);u[Xx("0x89")]((t=>{for(const e of n)t[Xx("0x1c")](t.createRangeIn(e),t[Xx("0x23")](e)),t.remove(e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x9f")](0);return e.is(Xx("0x71"),Xx("0x86"))&&e[Xx("0x6a")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x30")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["getContainedElement","has","columnWidths","Users","tableWidth","handleResizeTableWidthCommand","subType","getColumnGroupElement","model","formatBlock","table","locale","getTableColumnsWidths","handleSuggestionDescription","resizeTableWidth","registerCustomCallback","author","getSuggestionCallback","_suggestionFactory","TrackChangesEditing","editor","accept","*Format:* resize table","enableCommand","bind","afterInit","change","markBlockFormat","getSuggestions","getSelectedElement","TableColumnResizeEditing","data","document","discard","resizeTable","get","format","selection","commandParams","plugins"];var ea,na;ea=ta,na=110,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x23")](){if(!this[oa("0x1e")].plugins[oa("0xb")](oa("0x0")))return;const t=this.editor[oa("0x9")][oa("0x5")](oa("0x1d"));t[oa("0x21")](oa("0x18"),this[oa("0xf")][oa("0x22")](this)),t.enableCommand("resizeColumnWidths",this[oa("0xf")].bind(this)),t._suggestionFactory[oa("0x19")](oa("0x13"),oa("0x4"),oa("0x1f"),t[oa("0x1c")].getSuggestionCallback(oa("0x13"),null,"discard")),t[oa("0x1c")][oa("0x19")]("formatBlock",oa("0x4"),"discard",t[oa("0x1c")][oa("0x1b")](oa("0x13"),null,"accept")),t._descriptionFactory.registerDescriptionCallback(this[oa("0x17")][oa("0x22")](this))}handleResizeTableWidthCommand(t,e){const n=this[oa("0x1e")][oa("0x9")].get(oa("0x1d")),o=this[oa("0x1e")].plugins.get("TableColumnResizeEditing"),s=e[oa("0x14")]||this[oa("0x1e")][oa("0x12")][oa("0x2")][oa("0x7")][oa("0x27")]();this[oa("0x1e")][oa("0x12")][oa("0x24")]((()=>{const r=o[oa("0x11")](s);let i=r?o[oa("0x16")](r):null,x=s.getAttribute(oa("0xe"))||null;const a=e.tableWidth||x,c=e[oa("0xc")]||i,l=this[oa("0x1e")].plugins[oa("0x5")](oa("0xd")).me;for(const t of n[oa("0x26")]()){const e=t[oa("0xa")]();if(oa("0x4")===t[oa("0x10")]&&e===s){t[oa("0x1a")]!==l&&t[oa("0x3")]();const e=t[oa("0x1")][oa("0x8")];x=e[0].tableWidth,i=e[0][oa("0xc")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x25")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x4")},[],oa("0x4"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&"resizeTable"===e.formatGroupId){const t=oa("0x20");return{type:oa("0x6"),content:Yo(this.editor[oa("0x15")],t)}}}}const ra=["plugins","insertTemplate","TrackChangesEditing","has","Template"];var ia,xa;ia=ra,xa=155,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.editor;t[aa("0x0")][aa("0x3")](aa("0x4"))&&t[aa("0x0")].get(aa("0x2")).enableCommand(aa("0x1"))}}const la=["get","_descriptionFactory","locale","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS","insertTableOfContents","plugins","commands","tableOfContents","TrackChangesEditing","enableCommand","afterInit","editor"];var ua,da;ua=la,da=156,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0xb")](){const t=this[ga("0xc")];if(!t[ga("0x7")][ga("0x0")](ga("0x5")))return;t.plugins[ga("0x0")](ga("0x9"))[ga("0xa")](ga("0x5"));const e=t[ga("0x6")][ga("0x0")](ga("0x9")),n=t[ga("0x2")];e[ga("0x1")][ga("0x3")](ga("0x8"),(t=>Yo(n,ga("0x4"),t)))}}const fa=["afterInit","_splitMarkerName","removeMarker","model","updateMarker","element","editor","schema","start","nodeBefore","_descriptionFactory","document","ELEMENT_TITLE","plugins","newRange","Title","createRange","from","has","locale","registerPostFixer","isEqual","suggestion","title-content","get","forward","differ"];var ha,pa;ha=fa,pa=327,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x18")](){const t=this[ba("0x3")];if(!t[ba("0xa")][ba("0xf")](ba("0xc")))return;const e=t[ba("0xa")][ba("0x15")]("TrackChangesEditing");e[ba("0x7")].registerElementLabel("title-content",(()=>Yo(t[ba("0x10")],ba("0x9")))),t[ba("0x0")][ba("0x8")][ba("0x11")]((n=>{let o=!1;const s=Array[ba("0xe")](t.model[ba("0x8")][ba("0x17")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x19")](r);if(ba("0x13")!==s||!i[ba("0xb")])continue;const x=i.newRange,a=x.end[ba("0x6")];if(!a||!a.is(ba("0x2"),ba("0x14")))continue;if(!x.start.isTouching(x.end))continue;const c=t.model[ba("0x4")].getNearestSelectionRange(x.end,ba("0x16"));if(c&&c.isCollapsed){const t=n[ba("0xd")](x[ba("0x5")],c[ba("0x5")]);t[ba("0x12")](x)||(n[ba("0x1")](r,{range:t}),o=!0)}o||(n[ba("0x1a")](r),o=!0)}return o}))}}const _a=["enableCommand","get","redo","has","undo","plugins","editor"];var Ta,Ca;Ta=_a,Ca=405,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[ya("0x0")],e=t[ya("0x6")][ya("0x2")]("TrackChangesEditing");t[ya("0x6")][ya("0x4")]("UndoEditing")&&(e[ya("0x1")](ya("0x5")),e[ya("0x1")](ya("0x3")))}}const Aa=["get","TableCaptionEditing","requires","enableCommand","plugins","editor","afterInit","has"];var va,Ra;va=Aa,Ra=153,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{static get[Ia("0x1")](){return[wx]}[Ia("0x5")](){const t=this[Ia("0x4")];t[Ia("0x3")][Ia("0x6")](Ia("0x0"))&&t[Ia("0x3")][Ia("0x7")]("TrackChangesEditing")[Ia("0x2")]("toggleTableCaption")}}const La=["push","numbered","expandListBlocksToCompleteList","format","locale","model","reversed","getSelectedBlocks","*Change to:* %0","from","_LIST_","DocumentListPropertiesUtils","DocumentListUtils","bind","filter","toUpperCase","document","listStyle","plugins","handleListReversedCommand","afterInit","commandParams","has","length","handleDescriptions","getAttribute","type","replace","editor","listStart","startIndex","getListTypeFromListStyleType","handleListStyleCommand","_getTranslationKeyForListStyle","listType","get","listReversed","list.properties","selection","change","markMultiRangeBlockFormat","enableCommand","handleListStartCommand","TrackChangesEditing","*Format:* set order to reversed","styles","DocumentListPropertiesEditing"];var Na,Ma;Na=La,Ma=479,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0xb")](){if(!this.editor[wa("0x9")][wa("0xd")](wa("0x25")))return;const t=this[wa("0x13")].config[wa("0x1a")](wa("0x1c")),e=this[wa("0x13")][wa("0x9")][wa("0x1a")](wa("0x22"));t[wa("0x24")]&&e[wa("0x20")]("listStyle",this[wa("0x17")].bind(this)),t[wa("0x2c")]&&e[wa("0x20")](wa("0x1b"),this[wa("0xa")][wa("0x4")](this)),t[wa("0x15")]&&e[wa("0x20")](wa("0x14"),this[wa("0x21")][wa("0x4")](this)),e._descriptionFactory.registerDescriptionCallback(this[wa("0xf")].bind(this))}[wa("0x17")](t,e={}){const n=this[wa("0x13")][wa("0x9")][wa("0x1a")]("TrackChangesEditing"),o=this._getSuggestionBlocksForListStyle();this[wa("0x13")][wa("0x2b")][wa("0x1e")]((()=>{n[wa("0x1f")](o,{commandName:wa("0x8"),commandParams:[{type:e.type}],formatGroupId:wa("0x8")})}))}[wa("0xa")](t,e={}){const n=this[wa("0x13")][wa("0x9")][wa("0x1a")](wa("0x22")),o=this[wa("0x13")][wa("0x9")][wa("0x1a")](wa("0x3")),s=this._getSuggestionBlocks((t=>o.isListItemBlock(t)&&wa("0x27")===t.getAttribute(wa("0x19"))));null!==s&&this[wa("0x13")][wa("0x2b")][wa("0x1e")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listReversed",commandParams:[{reversed:e[wa("0x2c")]}],formatGroupId:wa("0x1b")})}))}[wa("0x21")](t,e={}){const n=this[wa("0x13")].plugins.get("TrackChangesEditing"),o=this.editor[wa("0x9")][wa("0x1a")](wa("0x3")),s=this._getSuggestionBlocks((t=>o.isListItemBlock(t)&&wa("0x27")===t[wa("0x10")]("listType")));null!==s&&this[wa("0x13")][wa("0x2b")][wa("0x1e")]((()=>{n[wa("0x1f")](s,{commandName:wa("0x14"),commandParams:[{startIndex:e[wa("0x15")]}],formatGroupId:wa("0x14")})}))}[wa("0xf")](t){const e=this[wa("0x13")][wa("0x2a")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wa("0x8"):o=wa("0x2e"),s={type:wa("0x29"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[wa("0xc")][0][wa("0x11")])))};break;case"listReversed":o=n.commandParams[0][wa("0x2c")]?wa("0x23"):"*Format:* set order to regular",s={type:wa("0x29"),content:Yo(e,o)};break;case"listStart":o="*Format:* set start index to %0",s={type:wa("0x29"),content:Yo(e,o,n.commandParams[0].startIndex)}}return s}_getSuggestionBlocksForListStyle(){const t=this[wa("0x13")][wa("0x9")][wa("0x1a")](wa("0x3"));let e=Array[wa("0x0")](this[wa("0x13")].model[wa("0x7")][wa("0x1d")].getSelectedBlocks());return e[wa("0x26")](...t[wa("0x28")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[wa("0x13")].plugins[wa("0x1a")]("DocumentListUtils");let n=Array[wa("0x0")](this[wa("0x13")][wa("0x2b")][wa("0x7")].selection[wa("0x2d")]())[wa("0x5")](t);if(!n[wa("0xe")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o.push(t);return o}[wa("0x18")](t){return"ELEMENT_"+this[wa("0x13")][wa("0x9")].get(wa("0x2"))[wa("0x16")](t).toUpperCase()+wa("0x1")+t[wa("0x6")]()[wa("0x12")](/-/g,"_")}}const Fa=["join","tableCellPadding","data","tableCellHorizontalAlignment","_descriptionFactory","registerCustomCallback","handleSuggestionDescription","afterInit","tableCellWidth","has","tableBackgroundColor","getSuggestions","model","plugins","tableProperties","TablePropertiesEditing","tableBorderColor","tableCellBorderStyle","accept","subType","formatBlock","tableAlignment","_getSuggestion","enableCommand","tableCellBorderColor","tableCellBorderWidth","nodeAfter","tableWidth","start","_handlePropertyChange","selection","get","TrackChangesEditing","*Format:* change table cell properties","change","discard","markBlockFormat","getFirstPosition","getSuggestionCallback","batch","editor","tableCellProperties","tableCellHeight","*Format:* change table properties","tableHeight","TableCellPropertiesEditing","_suggestionFactory","handleDiscardAction","TrackChangesTableProperties","getAttribute","tableCellBackgroundColor","registerDescriptionCallback","setAttribute","tableBorderStyle","locale","document","format"];var Pa,Da;Pa=Fa,Da=464,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this.tableProperties=[Ba("0x8"),Ba("0x2d"),"tableBorderWidth",Ba("0xd"),Ba("0x13"),Ba("0x24"),Ba("0x2")],this.tableCellProperties=[Ba("0x10"),Ba("0x9"),Ba("0x11"),Ba("0x32"),Ba("0x0"),Ba("0x22"),Ba("0x2a"),Ba("0x34"),"tableCellVerticalAlignment"]}static get pluginName(){return Ba("0x28")}[Ba("0x38")](){const t=this[Ba("0x20")][Ba("0x5")][Ba("0x17")](Ba("0x18"));if(this.editor[Ba("0x5")][Ba("0x1")](Ba("0x7"))){for(const e of this.tableProperties)t[Ba("0xf")](e,((t,n)=>{const o=this[Ba("0x20")][Ba("0x4")][Ba("0x2f")][Ba("0x16")][Ba("0x1d")]().findAncestor("table");this._handlePropertyChange(e,[o],this[Ba("0x6")],Ba("0x6"),t,n)}));t[Ba("0x26")].registerCustomCallback(Ba("0xc"),Ba("0x6"),Ba("0xa"),t._suggestionFactory[Ba("0x1e")](Ba("0xc"),null,Ba("0x1b"))),t[Ba("0x26")].registerCustomCallback(Ba("0xc"),"tableProperties",Ba("0x1b"),((t,e)=>this[Ba("0x27")](this.tableProperties,t,e))),t[Ba("0x26")][Ba("0x36")](Ba("0xc"),"tableProperties",Ba("0x31"),(()=>!1))}if(this[Ba("0x20")][Ba("0x5")][Ba("0x1")](Ba("0x25"))){for(const e of this[Ba("0x21")])t[Ba("0xf")](e,((t,n)=>{const o=this.editor[Ba("0x5")][Ba("0x17")]("TableUtils").getSelectionAffectedTableCells(this[Ba("0x20")][Ba("0x4")].document.selection);this._handlePropertyChange(e,o,this[Ba("0x21")],Ba("0x21"),t,n)}));t[Ba("0x26")][Ba("0x36")](Ba("0xc"),Ba("0x21"),"accept",t._suggestionFactory.getSuggestionCallback(Ba("0xc"),null,Ba("0x1b"))),t[Ba("0x26")][Ba("0x36")](Ba("0xc"),Ba("0x21"),Ba("0x1b"),((t,e)=>this[Ba("0x27")](this[Ba("0x21")],t,e))),t[Ba("0x26")][Ba("0x36")](Ba("0xc"),Ba("0x21"),Ba("0x31"),(()=>!1))}t[Ba("0x35")][Ba("0x2b")]((t=>this.handleSuggestionDescription(t)))}[Ba("0x15")](t,e,n,o,s,r){const i=this[Ba("0x20")][Ba("0x5")][Ba("0x17")](Ba("0x18"));this.editor.model.enqueueChange(r[Ba("0x1f")],(()=>{for(const t of e)if(this[Ba("0xe")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x29")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x1c")](t,{commandParams:[e]},[],o)}}))}[Ba("0x27")](t,e,n){const o=e[0][Ba("0x14")][Ba("0x12")],s=n.commandParams[0];this[Ba("0x20")].model[Ba("0x1a")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x2c")](n,s[n],o):e.removeAttribute(n,o)}))}[Ba("0x37")](t){if(t[Ba("0x33")])switch(t[Ba("0xb")]){case Ba("0x6"):return{type:Ba("0x30"),content:Yo(this[Ba("0x20")][Ba("0x2e")],Ba("0x23"))};case Ba("0x21"):return{type:Ba("0x30"),content:Yo(this[Ba("0x20")][Ba("0x2e")],Ba("0x19"))}}}[Ba("0xe")](t,e){const n=this.editor[Ba("0x5")][Ba("0x17")](Ba("0x18"));for(const o of n[Ba("0x3")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o[Ba("0xb")]===e&&n===t)return o}return null}}const Ua=["isAfter","batch","remove","addSuggestionData","getAllAdjacentSuggestions","addMarkerName","trackChanges.mergeNestedSuggestions","isInContent","fetchCommentThread","join","formatInline","hasComments","getFirstRange","isNextTo","elementToElement","delete","refresh","getRange","rethrowUnexpectedError","previous","values","formatBlock:","addMarker:suggestion","nodeAfter","commentThread","isDocumentOperation","activeMarkers","fromCharCode","getSuggestionCallback","markerToHighlight","options","default","range","registerPostFixer","acceptSelectedSuggestions","_defaultCallbacks","containerElement","setAttribute","PENDING_ACTION_SUGGESTION","substr","_registerDefaultCallbacks","track-changes-adapter-already-set","root","getMultiRangeId","updateMarker","bindElementToMarker","_getAuthorFromId","removed","isBefore","move","element","deletion","pluginName","accept","ck-suggestion-marker-formatBlock","catch","formatInline:discard","removeClass","item","addRange","_suggestionFactory","requires","isIntersectingWithRange","upcast","_enabledCommands","enableReadOnlyMode","chain","addSuggestion","newRange","acceptSuggestion","set","isEqual","fromRange","isLocal","end","deletion:","_refreshSuggestionsChain","split","addClass","getChangedMarkers","detach","value","Users","_adapter","_mergeNestedSuggestions","insertion:accept","_customCallbacks","createRangeIn","containsRangeInObject","skipNestingCheck","oldRange","CommentsRepository","data","change","position","accepted","_commentsRepository","stop","removeMarker","containsRange","error-saving-suggestion-data-suggestion-discarded","acceptAllSuggestions","attributes","forceDefaultExecution","addHighlight","fire","ready","sort","_rangeIsInLocalUserInsertion","formatInline:","suggestion:","createRange","change:_saved","_checkSuggestionCorrectness","_suggestionState","suggestionUnloaded","formatGroupId","define","name","isAtEnd","consumable","_onDiscard","has","_descriptionFactory","_addSuggestionMarker","getLastMatchingPosition","_isForcedDefaultExecutionBlock","removeComment","_updateSuggestionData","markBlockFormat","track-changes-suggestion-not-found","isRemovable","markerReady","formatBlock:accept","notReady","updateSuggestion","_trackFormatChanges","get","insertion","createSelection","getUser","isTouching","createPositionAfter","getFirstMarker","getRanges","createPositionBefore","getAttribute","formatBlock:join","consume","document","removeMarkers","isExternal","discardAllSuggestions","backward","_editor","from","authorName","model","@external","update:suggestion","suggestionLoaded","deletion:accept","howMany","plugins","never","selection","isCollapsed","markInsertion","differ","_breakSuggestionMarker","some","formatInline:chain","change:activeMarkers","_setSuggestionData","locale","multi","high","getAncestors","$marker","insertContent","getCustomProperty","markDeletion","collaboration.channelId","stopListening","parent","writer","every","dataToMarker","_addThreadToSuggestion","always","ck-suggestion-marker","_cutOutSuggestionMarker","showSuggestionHighlights","deletion:join","dataReady","suggestion-type","originalSuggestionId","_joinSuggestions","_findSuggestions","moveTargetPosition","subType","getMarkers","$graveyard","trackChanges.trackFormatChanges","_setSuggestionRange","isBlock","track-changes-suggestion-data-mismatch","formatInline:join","markMultiRangeBlockFormat","elementEnd","deleteContent","isUndo","isOwn","_createSuggestion","adapter","after","size","insertion:chain","schema","formatBlock","data-suggestion","ck-suggestion-marker-","_handleNewSuggestionMarker","splice","addUser","add","applyOperation","getSuggestion","normal","markerNameToElements","_model","getShiftedBy","registerCustomCallback","author","discardSuggestion","creator","for","group","open","length","insert","_joinWithAdjacentSuggestions","createPositionAt","getDifference","buildSuggestion","getSuggestions","marker-count","setSelection","conversion","mapper","suggestionChanged","discardSelectedSuggestions","addCommentThread","markers","push","filter","return","then","isMultiRange","enableCommand","listenTo","PendingActions","multipleBlocks","_getExternalAuthor","ck-suggestion-marker--active","removeMarker:suggestion:formatBlock","widget","$textProxy","setTo","head","containsItem","low","rootName","toViewElement","getIntersection","isInsideObject","type","commands","isLimit","dataDowncast","addMarker","isObject","hasSuggestion","_saved","authoredAt","trackChanges","map","markerName","nodeBefore","commandName","editingDowncast","_suggestions","createElement","lowest","unbind","config","rejected","insertion:join","documentSelection","_splitMarkerName","getChanges","getNearestSelectionRange","includes","suggestion","start","formatBlock:chain","formatBlock:discard","unbindElementFromMarkerName","forward","discard","editor","trackChangesCommand","next","_removeSuggestion","isAtStart","_getSuggestionData","markMultiRangeDeletion","createdAt"];var Ga,Ha;Ga=Ua,Ha=373,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("0x6")](){return[za("0x24"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Qs,er,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Jr,ni,xi,di,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,dx,px,yx,Ix,wx,jx,Wx,Sa,Jx,sa,ma,ja,ca,Ea,ka]}static get[za("0x13b")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[za("0xe7")]((t=>String[za("0x122")](t)))[za("0x110")]("")}super(t),this[za("0xf")](za("0x121"),[]),this.on(za("0x75"),((e,n,o,s)=>{this[za("0xaf")][za("0x26")]((()=>{for(const e of[...s,...o])this[za("0xaf")][za("0xc6")].has(e)&&t.editing.reconvertMarker(e)}))})),this[za("0x44")]=new ss(this[za("0xff")].model[za("0xa3")],this[za("0xff")][za("0x77")]),this[za("0x1c")]=null,this[za("0x5")]=new Va(this[za("0xff")]),this._suggestions=new Map,this[za("0x29")]=t.plugins.get("CommentsRepository"),this[za("0x9")]=new Set,this[za("0xaf")]=this[za("0xff")][za("0x66")],this._suggestionState=new WeakMap,this[za("0x47")]=!1,t[za("0xf0")].define(za("0x94"),za("0x126")),this._trackFormatChanges=t.config[za("0x52")](za("0x94")),t[za("0xf0")][za("0x3e")](za("0x10d"),!0),this._mergeNestedSuggestions=t[za("0xf0")][za("0x52")](za("0x10d")),this[za("0x100")]=new d(t,this[za("0x9")]),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,49,52])}init(){const t=this[za("0xff")];t[za("0xc1")][za("0xb5")](za("0xeb"))[za("0x124")]({model:za("0xf8"),view:t=>{const{id:e,type:n}=this[za("0xf4")](t[za("0xe8")]),o=[za("0x87"),za("0xa6")+n];let s=3e3;return this[za("0x121")][za("0xf7")](t.markerName)&&(o[za("0xc7")]("ck-suggestion-marker--active"),s=3010),za("0x13a")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0xc1")][za("0xb5")](za("0xe0")).add((e=>{e.on(za("0x11d"),((e,n,o)=>{if(!o[za("0x125")][za("0x89")])return;const s=n[za("0x3")];if(!s)return;const r=o.mapper.toViewElement(s);t[za("0x66")][za("0xa3")][za("0xe2")](s)&&r&&!r.getCustomProperty(za("0xd3"))&&r.is(za("0x12b"))&&(0,x.toWidget)(r,o[za("0x82")])}),{priority:za("0x79")})})),t.conversion[za("0xb5")](za("0xe0"))[za("0x124")]({model:za("0xf8"),view:(t,e)=>{if(!e.options[za("0x89")])return null;const{type:n}=this[za("0xf4")](t[za("0xe8")]);return{classes:[za("0x87"),za("0xa6")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[za("0x3")].is(za("0x6e")))return void s[za("0x41")].consume(o[za("0x3")],n.name);const r=s.mapper[za("0xda")](o[za("0x3")]);if(!o[za("0x3")].is(za("0x139"))||!t[za("0x66")][za("0xa3")][za("0x96")](o.item)||r.getCustomProperty("addHighlight"))return;const{id:i}=this._splitMarkerName(o[za("0xe8")]);s.writer[za("0x17")]([za("0x87"),za("0x13d")],r),s.writer[za("0x12c")]("data-suggestion",i,r),s[za("0xc2")][za("0x134")](r,o.markerName),e&&(this[za("0x121")].includes(o[za("0xe8")])?s[za("0x82")][za("0x17")](za("0xd1"),r):s[za("0x82")][za("0x2")](za("0xd1"),r));for(const e of t[za("0x66")][za("0x20")](o[za("0x3")]).getItems())s.consumable[za("0x5d")](e,n[za("0x3f")]);s[za("0x41")][za("0x5d")](o[za("0x3")],n.name)};t[za("0xc1")][za("0xb5")]("dataDowncast")[za("0xaa")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[za("0x125")][za("0x89")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[za("0xc1")][za("0xb5")](za("0xe0")).markerToData({model:za("0xf8"),view:(t,e)=>e[za("0x125")][za("0x89")]?null:{group:"suggestion",name:t[za("0x12e")](11)}}),t[za("0xc1")].for("upcast")[za("0x115")]({view:{name:za("0xf8"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x37")+t[za("0x5b")](za("0x8c"))+":"+t[za("0x5b")]("id");return t.getAttribute(za("0xbf"))&&(n+=":"+t[za("0x5b")](za("0xbf"))),e[za("0xed")](za("0x7b"),{"data-name":n})}}),t[za("0xc1")][za("0xb5")](za("0x8"))[za("0x84")]({view:za("0xf8")}),t[za("0xc1")][za("0xb5")]("editingDowncast").add((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:za("0x79")})})),t[za("0xc1")][za("0xb5")](za("0xeb"))[za("0xaa")]((t=>{t.on(za("0xd2"),((t,e,n)=>{const o=n[za("0xc2")][za("0xae")](e[za("0xe8")]);if(o)for(const t of o)t[za("0x7d")](za("0x31"))||(n[za("0x82")][za("0x2")]([za("0x87"),za("0x13d"),"ck-suggestion-marker--active"],t),n[za("0x82")].removeAttribute(za("0xa5"),t),n.mapper[za("0xfc")](t,e.markerName))}),{priority:za("0x79")})})),t[za("0x66")].document.registerPostFixer((e=>{let n=!1;const o=Array[za("0x64")](t[za("0x66")][za("0x5e")][za("0x71")][za("0x18")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0xf4")](x);if(za("0xf8")!==o)continue;const u=this[za("0xec")][za("0x52")](l);if(null!=a[za("0xd")])if(za("0x111")==c&&(n=n||Xa(a[za("0xd")],x,e,t.model.schema)),a.newRange.isCollapsed||za("0x93")==a[za("0xd")][za("0x131")][za("0xd9")]||"formatBlock"==c&&!Qa(a.newRange)||za("0x13a")==c&&(qa(i=a[za("0xd")])||(r=i)[za("0xf9")].parent==r[za("0x13")][za("0xe9")]&&r[za("0xf9")].isAtEnd))e[za("0x2b")](x),n=!0;else{if(!u||!u[za("0x10e")])continue;s[za("0xaa")](u)}}var r,i;return s[za("0xa1")]>0&&(n=!!this[za("0xba")](s)||n),n})),t[za("0x66")][za("0x5e")][za("0x128")]((e=>{let n=!1;for(const o of t[za("0x66")][za("0x5e")].differ[za("0xf5")]()){if(za("0xb9")!=o[za("0xdd")])continue;const s=o[za("0x27")][za("0xb0")](o[za("0xb8")]);if(s[za("0x40")])for(const r of this[za("0xec")][za("0x11b")]()){if(r[za("0xcb")]||!r.isInContent)continue;if(za("0xa4")!=r[za("0xdd")])continue;const i=r[za("0x113")]();if(i[za("0xf9")][za("0x81")]!=i[za("0x13")][za("0x81")]&&i.end[za("0x10")](o[za("0x27")])){const o=t.model[za("0x38")](i[za("0xf9")],s);e[za("0x133")](r[za("0x58")](),{range:o}),n=!0}}}return n})),t[za("0x66")][za("0xc6")].on(za("0x68"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0xf4")](e[za("0x3f")]),n=this._suggestions[za("0x52")](t);n&&n.addMarkerName(e[za("0x3f")])}})),t[za("0x66")][za("0x5e")].on("change:data",(()=>{const e=Array[za("0x64")](t[za("0x66")][za("0x5e")][za("0x71")].getChangedMarkers()).filter((t=>za("0xf8")===this[za("0xf4")](t[za("0x3f")])[za("0xb6")]));if(0===e[za("0xb8")])return;e[za("0x34")](((t,e)=>{const n=t[za("0x25")][za("0x23")],o=e[za("0x25")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0xf9")][za("0x137")](o.start)?-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("0x23")]){const e=this[za("0xa7")](t);o.add(e)}else{const t=this[za("0xec")].get(e);null!==s[za("0xd")]||t[za("0x10e")]?(n[za("0xaa")](t[za("0xd6")]),o[za("0xaa")](t)):this[za("0x102")](t)}}o[za("0xa1")]>0&&this[za("0x15")](o);for(const t of n)this.fire(za("0xc3"),t)})),t.model.on(za("0xab"),((e,n)=>{const o=n[0];if(!this[za("0xec")].size)return;if(!o[za("0x120")])return;if(o[za("0x108")][za("0x9c")]||!o[za("0x108")][za("0x12")])return;let s,r;switch(o.type){case za("0xb9"):s=t[za("0x66")][za("0xbb")](o.position),r=s[za("0xb0")](o[za("0x6b")]);break;case za("0x16"):s=t[za("0x66")][za("0xbb")](o.splitPosition),r=t[za("0x66")][za("0xbb")](o[za("0x90")]);break;case za("0x138"):s=t[za("0x66")][za("0xbb")](o.targetPosition),r=s[za("0xb0")](o[za("0x6b")]);break;default:return}const i=t[za("0x66")][za("0x38")](s,r);t[za("0x66")][za("0x26")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x8f")](i)){if(t[za("0xcb")])continue;if(za("0x111")==t[za("0xdd")])continue;const n=t[za("0x25")]&&t[za("0x25")][za("0xcf")];(za("0xa4")!=t.type||za("0x16")==o[za("0xdd")]&&!n)&&(e[za("0x21")]||za("0x53")==t[za("0xdd")]&&e.isOwn||t[za("0x113")]()[za("0x2c")](i)&&this[za("0x72")](t,s,r))}}))}),{priority:za("0xee")}),t[za("0x66")].on(za("0x9b"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x30")])return;if(this[za("0x47")])return;if(!this[za("0x100")][za("0x1a")])return;if(o[za("0x6f")])return;const r=t[za("0x66")][za("0xa3")],{start:i,end:x}=o[za("0x113")](),a=i[za("0x11e")]&&r[za("0xdf")](i[za("0x11e")])?null:r.getNearestSelectionRange(i,za("0xfd")),c=x[za("0xe9")]&&r[za("0xdf")](x[za("0xe9")])?null:r[za("0xf6")](x,za("0x62")),l=t[za("0x66")][za("0x38")](a?a[za("0xf9")]:i,c?c[za("0x13")]:x);t[za("0x66")][za("0x26")]((e=>{this[za("0x7e")](l);const n=t[za("0x66")][za("0xa3")][za("0xf6")](l.start);o.is(za("0xf3"))?e[za("0xc0")](n):o[za("0xd5")](n)})),e.stop()}),{priority:e.priorities[za("0xad")]+10}),t[za("0x66")].on(za("0x7c"),((e,n)=>{const o=n[n[za("0xb8")]-1];o&&o.forceDefaultExecution||this[za("0x47")]||this[za("0x100")].value&&(t[za("0x66")][za("0x26")]((()=>{let o=t[za("0x66")][za("0x7c")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0xc9")]=o.clone();const s=o[za("0x13")][za("0xe9")],r=t[za("0x66")].schema;s&&r[za("0x96")](s)&&!r.isObject(s)&&(o=t[za("0x66")][za("0x38")](o[za("0xf9")],t[za("0x66")].createPositionAt(s,za("0x13")))),this[za("0x70")](o)})),e[za("0x2a")]())}),{priority:"high"}),this[za("0xff")][za("0xde")][za("0xaa")](za("0xe6"),this[za("0x100")]),this[za("0xcc")](za("0xe6"));const o=new p(t,this._suggestions);t[za("0xde")][za("0xaa")]("acceptSuggestion",o),this[za("0xcc")]("acceptSuggestion");const s=new C(t,this[za("0xec")]);t.commands[za("0xaa")](za("0xb3"),s),this[za("0xcc")](za("0xb3")),t.commands.add(za("0x2e"),new F(t,o,this[za("0xec")])),this[za("0xcc")](za("0x2e")),t.commands[za("0xaa")](za("0x61"),new F(t,s,this[za("0xec")])),this[za("0xcc")](za("0x61")),t[za("0xde")][za("0xaa")](za("0x129"),new U(t,o,this[za("0xec")])),this.enableCommand("acceptSelectedSuggestions"),t.commands[za("0xaa")](za("0xc4"),new U(t,s,this._suggestions)),this[za("0xcc")](za("0xc4"));const r=t[za("0x6c")][za("0x52")]("CommentsRepository");this[za("0xcd")](r,"addComment",((t,{threadId:e})=>{const n=this[za("0xec")][za("0x52")](e);n&&n[za("0x11f")]&&1===n.commentThread.length&&this[za("0x49")](e,{hasComments:!0})}),{priority:za("0xd8")}),this.listenTo(r,za("0x48"),((t,{threadId:e})=>{const n=this[za("0xec")][za("0x52")](e);n&&n[za("0x11f")]&&!n[za("0x11f")].length&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:za("0xd8")})}set[za("0x9f")](t){if(this[za("0x1c")])throw new e.CKEditorError(za("0x130"),this);this._adapter=t}get[za("0x9f")](){return this[za("0x1c")]}[za("0xbe")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[za("0x11b")]())t&&!e.isInContent||n[za("0xc7")](e);return e?n[za("0xe7")]((t=>t.toJSON())):n}getSuggestion(t){const n=this[za("0xec")][za("0x52")](t);if(!n)throw new e.CKEditorError(za("0x4b"),this);return n}[za("0xe3")](t){return this[za("0xec")][za("0x43")](t)}[za("0x10a")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t.type[za("0x16")](":"),i=this._suggestions[za("0x52")](n)||this[za("0x9e")](s,r,n,e,o);if(this[za("0x85")](i),this[za("0x3a")](i,s,r||null,e),i.createdAt=t[za("0x106")],o&&o[za("0x67")]){const t=o["@external"],e=this[za("0xd0")](t[za("0x65")]);i[za("0xe5")]=t.createdAt,i[za("0xb2")]=e,i[za("0x60")]=!0}else i[za("0xe5")]=t[za("0x106")];switch(t.data&&(i[za("0x25")]=t.data),t.attributes&&(i[za("0x2f")]=t[za("0x2f")]),this[za("0x1c")]&&this._adapter[za("0xc")]||(i[za("0xe4")]=!0),this[za("0x3b")][za("0x52")](i)){case za("0x4f"):this[za("0x3b")].set(i,za("0x8b"));break;case za("0x4d"):i[za("0x10e")]?(this._suggestionState.set(i,za("0x33")),this[za("0x32")](za("0x69"),i)):this._suggestionState[za("0xf")](i,za("0x136"))}return i}[za("0xe")](t){this[za("0x30")]((()=>{this.editor[za("0x66")][za("0x26")]((()=>{for(const e of t[za("0x10b")]())e.accept()}))}))}[za("0xb3")](t){this.forceDefaultExecution((()=>{this[za("0xff")][za("0x66")][za("0x26")]((()=>{for(const e of t[za("0x10b")]())e.discard()}))}))}enableCommand(t,n){const o=this.editor.commands[za("0x52")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this._enabledCommands[za("0xaa")](o),n&&o.on("execute",((t,e)=>{this[za("0x100")][za("0x1a")]&&(this[za("0x47")]||e.length>0&&e[e.length-1]&&e[e.length-1][za("0x30")]||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[za("0x2a")]()))}),{priority:za("0x79")})}[za("0x30")](t){let n,o;const s=this[za("0x47")];this[za("0x47")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x47")]=!1),o&&e.CKEditorError[za("0x119")](o,this),n}[za("0x70")](t,n=null,o={}){if(t[za("0x6f")])return null;const s=this[za("0xff")][za("0x6c")].get(za("0x1b")).me;for(const{suggestion:e,meta:o}of this[za("0x8f")](t,za("0x53")))if(o[za("0x9d")]){if(!o[za("0x114")]){if(!this._mergeNestedSuggestions&&o[za("0x21")])continue;return e}if(n==e[za("0x91")]){const n=e.getFirstRange();return n.start.isEqual(t[za("0x13")])?this[za("0x95")](e,this[za("0xaf")][za("0x38")](t[za("0xf9")],n[za("0x13")])):this[za("0x95")](e,this[za("0xaf")][za("0x38")](n[za("0xf9")],t[za("0x13")])),e}}const r=(0,e.uid)(),i=s.id,x=n?"insertion:"+n:"insertion",a=this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x45")](x,r,i,t),a}markMultiRangeInsertion(t,n=za("0x78"),o={}){const s=this[za("0xff")][za("0x6c")].get("Users").me,r=this[za("0x5")][za("0x123")](za("0x53"),n,za("0x110"));for(const e of this[za("0xbe")]())if(e[za("0xb2")].id==s.id&&za("0x53")==e[za("0xdd")]&&e[za("0x91")]==n&&(r(e.getRanges(),t)||r(t,e[za("0x59")]()))){for(const n of t)e[za("0x4")](n);return e}if(this[za("0x1d")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x8f")](e,za("0x53"))){if(!o[za("0x9d")])continue;let e=!0;for(const o of n[za("0x59")]())for(const n of t)if(!o[za("0x2c")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a="insertion:"+n,c=this[za("0x76")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x45")](a,i,x,e,Zo[za("0x132")]());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t[za("0x6f")])return null;if(za("0x6d")===this[za("0x51")]){const e=this._suggestionFactory[za("0x123")](za("0x111"),o,za("0x13c"));return this[za("0x30")]((()=>e([t],n,s))),null}const r=this[za("0xff")].plugins[za("0x52")](za("0x1b")).me,i=[];if(za("0x86")!==this[za("0x51")])for(const{suggestion:e,meta:n}of this[za("0x8f")](t,za("0x53")))n[za("0x9d")]&&!n[za("0xdc")]&&i[za("0xc7")](...e[za("0x59")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0xdb")](o);e&&n[za("0xc7")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0xb8")];){const o=n[e][za("0xbc")](t);n[za("0xa8")](e,1,...o),e+=o[za("0xb8")]}}return n}(t,i);x[za("0xb8")]&&this[za("0xaf")][za("0x26")]((()=>{for(const t of x){const e=this._suggestionFactory[za("0x123")](za("0x111"),o,"accept");this[za("0x30")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t[za("0x13")];for(const{suggestion:e,meta:n}of this[za("0x8f")](t,za("0x111"))){if(!n.isOwn)continue;if(e[za("0x91")]!=o)continue;const s=e.getFirstRange();if(s[za("0x2c")](t,!0))return null;x=x[za("0x137")](s[za("0xf9")])?x:s[za("0xf9")],a=a[za("0x107")](s[za("0x13")])?a:s.end,i?s[za("0xf9")][za("0x137")](i[za("0x113")]()[za("0xf9")])?(i[za("0x5f")](),i=e):e[za("0x5f")]():i=e}const c=this[za("0xaf")].createRange(x,a);if(i)this[za("0x95")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x76")]({id:t,type:za("0x36")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x45")]("formatInline:"+o,t,i,c)}}return null}[za("0x4a")](t,n,o=[],s=null,r={}){n[za("0x3d")]||(n[za("0x3d")]=n[za("0xea")]),n[za("0xcf")]=t.is(za("0x127")),s=s||$a(n);const i=o[za("0xe7")]((t=>Ja(t,this[za("0xaf")]))),x=t.is("range")?t:Ja(t,this._model);if(za("0x6d")===this[za("0x51")]){const t=this._suggestionFactory.getSuggestionCallback("formatBlock",s,za("0x13c"));return this[za("0x30")]((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&"always"!==this[za("0x51")]){const t=this._suggestionFactory[za("0x123")]("formatBlock",s,"accept");return this[za("0x30")]((()=>t([x],n,r))),null}let c=null,l=x[za("0xf9")],u=x[za("0x13")];for(const{suggestion:t,meta:e}of this[za("0x8f")](x,za("0xa4"))){if(!e[za("0x9d")]||e.isNextTo||e[za("0x21")]||e[za("0xdc")])continue;if(t[za("0x25")][za("0x3d")]!=n[za("0x3d")])continue;const o=t.getFirstRange();if(t[za("0x91")]==s){if(o[za("0x2c")](x,!0))return null;l=l[za("0x137")](o.start)?l:o[za("0xf9")],u=u[za("0x107")](o.end)?u:o[za("0x13")],c?o[za("0xf9")][za("0x137")](c[za("0x113")]()[za("0xf9")])?(c.removeMarkers(),c=t):t[za("0x5f")]():c=t}else{const e=x[za("0xdb")](o);this[za("0x88")](t,e)}}const d=this[za("0xff")][za("0x6c")][za("0x52")](za("0x1b")).me,g=(0,e.uid)(),m=d.id;if(c)return this._setSuggestionRange(c,this._model[za("0x38")](l,u)),c;{const t=this[za("0x76")]({id:g,type:za("0x11c")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x45")]("formatBlock:"+s,g,m,this._model[za("0x38")](l,u)),t}}[za("0x99")](t,n,o=[],s=null,r={}){n[za("0x3d")]||(n[za("0x3d")]=n[za("0xea")]);const i=t[0];n.multipleBlocks=i.is(za("0x127")),s=s||$a(n);const x=o.map((t=>Ja(t,this[za("0xaf")]))),a=i.is("range")?t:t[za("0xe7")]((t=>Ja(t,this[za("0xaf")])));if(za("0x6d")===this[za("0x51")]){const t=this[za("0x5")][za("0x123")]("formatBlock",s,za("0x13c"));return this[za("0x30")]((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[za("0x35")](t)){c=!1;break}if(c&&"always"!==this[za("0x51")]){const t=this[za("0x5")].getSuggestionCallback(za("0xa4"),s,za("0x13c"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[za("0xff")][za("0x6c")].get(za("0x1b")).me;for(const t of this[za("0xbe")]()){if(t[za("0xb2")].id!=l.id)continue;if(za("0xa4")!=t[za("0xdd")]||t.data.formatGroupId!=n[za("0x3d")])continue;const e=t[za("0x91")]==s;for(let n=0;n<a[za("0xb8")];n++){const o=a[n];for(const s of t[za("0x92")]()){const r=s[za("0x118")]();if(o.isEqual(r)){e?(a[za("0xa8")](n,1),n--):t[za("0x2b")](s[za("0x3f")]);break}}}}if(0==a[za("0xb8")])return null;const u=this[za("0x5")].getSuggestionCallback(za("0xa4"),s,za("0x110"));for(const t of this[za("0xbe")]())if(t[za("0xb2")].id==l.id&&za("0xa4")==t.type&&t.data[za("0x3d")]==n[za("0x3d")]&&t[za("0x91")]==s&&(u(t[za("0x59")](),a)||u(a,t[za("0x59")]()))){for(const e of a)t[za("0x4")](e);return t}const d=(0,e.uid)(),g=l.id,m="formatBlock:"+s,f=this[za("0x76")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x45")](m,d,g,t,Zo.getMultiRangeId());return f}[za("0x7e")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[za("0xff")][za("0x6c")][za("0x52")](za("0x1b")).me,r=new i.LiveRange(t.start,t[za("0x13")]);for(const{suggestion:t,meta:e}of this[za("0x8f")](r,za("0x53")))if(e.isOwn&&!e[za("0x114")])if(t[za("0xcb")]){const e=t.getRanges()[za("0xc8")]((t=>za("0x93")!=t[za("0x131")][za("0xd9")]));if(e[za("0x83")]((t=>r[za("0x2c")](t,!0)))&&t[za("0xfe")](),e.some((t=>t.containsRange(r,!0)))){const t=this[za("0x5")][za("0x123")](za("0x13a"),n,"accept");return this[za("0x30")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[za("0x113")]());null!==e&&t[za("0x42")]([e],null,o)}if(r[za("0x19")](),r[za("0x6f")]||za("0x93")==r[za("0x131")][za("0xd9")])return null;let x=null,a=r[za("0xf9")],c=r.end;for(const{suggestion:t,meta:e}of this[za("0x8f")](r,"deletion"))if(e[za("0x9d")])if(t[za("0xcb")]&&this._mergeNestedSuggestions){let e=!0;for(const n of t[za("0x59")]()){if(n[za("0x2c")](r,!0))return t;r.containsRange(n)||(e=!1)}e&&t[za("0xfe")]()}else{const n=t[za("0x113")]();if(n[za("0x2c")](r,!0)){if(!this[za("0x1d")]&&e.containsRangeInObject)continue;return t}a=a[za("0x137")](n[za("0xf9")])?a:n.start,c=c[za("0x107")](n.end)?c:n[za("0x13")],x?n[za("0xf9")].isBefore(x.getFirstRange()[za("0xf9")])?(x[za("0x5f")](),x=t):t[za("0x5f")]():x=t}if(x)return this._setSuggestionRange(x,this[za("0xaf")][za("0x38")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0xaf")][za("0x38")](a,c),i=s.id,x=n?za("0x14")+n:"deletion",l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x45")](x,t,i,r),l}}[za("0x105")](t,n=za("0x78"),o={}){const s=this[za("0xff")][za("0x6c")].get(za("0x1b")).me,r=t[za("0xe7")]((t=>new i.LiveRange(t[za("0xf9")],t[za("0x13")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion"))n[za("0x9d")]&&!n[za("0x114")]&&x[za("0xaa")](e);for(const e of x)if(e[za("0xcb")]){const s=e[za("0x59")]();if((!e.attributes||!e[za("0x2f")][za("0x22")])&&s.every((t=>r[za("0x73")]((e=>e[za("0x2c")](t,!0)))))&&e[za("0xfe")](),r[za("0x83")]((t=>s[za("0x73")]((e=>e.containsRange(t,!0)))))){const e=this._suggestionFactory[za("0x123")](za("0x13a"),n,"accept");return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[za("0x73")]((e=>e[za("0x2c")](t,!0)))&&e[za("0xfe")](),r[za("0x83")]((e=>t.containsRange(e,!0)))){const t=this._suggestionFactory.getSuggestionCallback("deletion",n,za("0x13c"));return this[za("0x30")]((()=>t(r,null,o))),null}}const a=this._suggestionFactory.getSuggestionCallback(za("0x13a"),n,za("0x110"));let c=null;for(const t of this[za("0xbe")]())if(t.author.id==s.id&&t[za("0x10e")]&&za("0x13a")==t[za("0xdd")]&&t.subType==n&&(a(t[za("0x59")](),r)||a(r,t[za("0x59")]())))if(c){if(t.commentThread&&t.commentThread[za("0xb8")])continue;for(const e of t[za("0x59")]())c[za("0x7")](e)||c.addRange(e);t[za("0x5f")]()}else{c=t;for(const e of r)t[za("0x7")](e)||t.addRange(e)}if(c)return c;x.clear();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x8f")](t,"deletion"))n[za("0x9d")]&&x.add(e);for(const t of x){const e=t[za("0x59")]();if((!o||!o.skipNestingCheck)&&r[za("0x83")]((t=>e[za("0x73")]((e=>e[za("0x2c")](t,!0))))))return t;(!t[za("0x2f")]||!t.attributes[za("0x22")])&&e[za("0x83")]((t=>r.some((e=>e[za("0x2c")](t,!0)))))&&t[za("0xfe")]()}const l=(0,e.uid)(),u=s.id,d=za("0x14")+n,g=this[za("0x76")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[za("0x19")](),t.isCollapsed||za("0x93")==t.root[za("0xd9")]||this[za("0x45")](d,l,u,t,Zo[za("0x132")]());return g}[za("0x95")](t,e){const n=t[za("0x58")]();this[za("0xaf")][za("0x26")]((t=>{t[za("0x133")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[za("0xff")][za("0xf0")].get(za("0x7f"));this[za("0x29")].hasCommentThread(e)||this[za("0x29")][za("0xc5")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x29")].getCommentThread(e);o[za("0xef")](za("0x4c")),o[za("0x4c")]=!1,t[za("0x11f")]=o}[za("0x3a")](t,n,o,s){if(t[za("0xdd")]!=n||t[za("0x91")]!=o||t[za("0xb4")].id!=s)throw this[za("0xff")][za("0xa")](za("0x97")),new e.CKEditorError(za("0x97"),this)}[za("0x88")](t,n){const o=t[za("0x113")]();if(n.isEqual(o))t.removeMarkers();else if(o[za("0x2c")](n)){const s=this[za("0xaf")][za("0xbb")](n[za("0xf9")][za("0xe9")],"end");this[za("0x95")](t,this[za("0xaf")][za("0x38")](o.start,s));const r=(0,e.uid)(),i=t[za("0xb4")].id,x=t[za("0xdd")]+":"+t[za("0x91")];this[za("0x76")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[za("0x2f")]});const a=this[za("0xaf")][za("0xbb")](n[za("0x13")][za("0x81")],za("0xa0")),c=this[za("0xaf")][za("0x38")](a,o[za("0x13")]);this[za("0x45")](x,r,i,c)}else if(o.containsPosition(n[za("0xf9")])){const e=this[za("0xaf")].createPositionAt(n[za("0xf9")].nodeBefore,za("0x13"));this[za("0x95")](t,this[za("0xaf")][za("0x38")](o.start,e))}else{const e=this[za("0xaf")][za("0xbb")](n.end[za("0x81")],za("0xa0"));this[za("0x95")](t,this[za("0xaf")].createRange(e,o[za("0x13")]))}}[za("0x35")](t){for(const{suggestion:e,meta:n}of this[za("0x8f")](t,za("0x53"))){if(!n[za("0x9d")])continue;const o=e.getRanges();for(const e of o)if(!t[za("0xbc")](e)[za("0xb8")])return!0}return!1}[za("0x135")](t){const n=this[za("0xff")][za("0x6c")][za("0x52")](za("0x1b"))[za("0x55")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[za("0xd0")](t){const e=this[za("0xff")][za("0x6c")][za("0x52")](za("0x1b")),n=(0,r.hashObject)("external:"+t);return e[za("0x55")](n)||e[za("0xa9")]({id:n,name:t})}[za("0x9e")](t,e,n,o,s){const r=this._getAuthorFromId(o),i=this._suggestionFactory[za("0xbd")](t,e,n,r,s,(t=>this[za("0x49")](n,{attributes:t})));return this[za("0xcd")](i,za("0x13c"),(()=>{this[za("0x49")](n,{state:za("0x28")})}),{priority:za("0x79")}),this[za("0xcd")](i,za("0xfe"),(()=>{this[za("0x49")](n,{state:za("0xf1")})}),{priority:za("0x79")}),this[za("0xec")][za("0xf")](n,i),this[za("0x3b")].set(i,za("0x4f")),i}[za("0xf4")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[za("0xb8")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[za("0xb8")]<5?e[3]:e[4],markerCount:6==e[za("0xb8")]?e[5]:null}}[za("0x72")](t,n,o){const s=t[za("0x113")](),r=s[za("0xf9")],i=s.end;this[za("0x95")](t,this[za("0xaf")][za("0x38")](r,n));const x=(0,e.uid)(),a=t[za("0xb4")].id,c=t.type+(t.subType?":"+t[za("0x91")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[za("0x25")]}),za("0xa4")==t[za("0xdd")]&&(o=this._model[za("0x5a")](o[za("0x81")])),this[za("0x45")](c,x,a,this[za("0xaf")][za("0x38")](o,i))}[za("0x8f")](t,e=null){const n=[],o=this[za("0xaf")].schema,s=this[za("0xff")][za("0x6c")].get(za("0x1b")).me;for(const r of this.getSuggestions())if(r[za("0x10e")]&&(!e||r[za("0xdd")]==e))for(const e of r.getRanges()){const i=t[za("0xf9")][za("0x10")](e.end)||t[za("0x13")][za("0x10")](e[za("0xf9")]);if(i||t.getIntersection(e)){const x=t[za("0x2c")](e)&&Ka(o,e[za("0xf9")],t),a=e[za("0x2c")](t)&&Ka(o,t[za("0xf9")],e);n[za("0xc7")]({suggestion:r,meta:{isOwn:s==r[za("0xb2")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x45")](t,e,n,o,s){this[za("0xaf")].change((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0xe1")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x102")](t){const e=t[za("0x11a")],n=t.next;t.previous=null,null!=e&&(e[za("0x101")]=null),t.next=null,null!=n&&(n[za("0x11a")]=null),za("0x33")==this[za("0x3b")][za("0x52")](t)&&(this[za("0x3b")][za("0xf")](t,za("0x136")),this.fire(za("0x3c"),t,e,n))}[za("0x76")](t){const n=t.id,o=this.addSuggestionData(t);if(this[za("0x1c")]&&this[za("0x1c")][za("0xc")]){const s=this[za("0xff")][za("0x6c")][za("0x52")](za("0xce")),r=o[za("0x112")],i=o.subType?o.type+":"+o[za("0x91")]:o[za("0xdd")],x=this[za("0xff")].locale,a=s.add(Yo(x,za("0x12d"))),c={id:n,type:i,hasComments:r,data:t.data||null,originalSuggestionId:t[za("0x8d")]||null,attributes:o.attributes};this._adapter[za("0xc")](c)[za("0xca")]((t=>{o[za("0xe4")]=!0,s[za("0x109")](a),t&&t.createdAt&&(this[za("0xec")][za("0x52")](n).createdAt=t[za("0x106")])}))[za("0x0")]((t=>{throw(0,e.logWarning)(za("0x2d")),this[za("0xff")][za("0x66")].enqueueChange({isUndoable:!1},(()=>{o[za("0xfe")]()})),o[za("0x80")](),this[za("0xec")][za("0x116")](o.id),this._suggestionState[za("0x116")](o),t}))}return o}[za("0x49")](t,e){const n=this.editor[za("0x6c")][za("0x52")](za("0xce")),o=this[za("0xac")](t);if(this[za("0x1c")]&&this[za("0x1c")].updateSuggestion)if(o._saved){const o=n[za("0xaa")](Yo(this[za("0xff")].locale,za("0x12d")));this[za("0x1c")][za("0x50")](t,e)[za("0xca")]((()=>{n[za("0x109")](o)}))}else o.on(za("0x39"),(()=>{this[za("0x49")](t,e)}))}[za("0x104")](t){if(!this[za("0x1c")]||!this._adapter[za("0xac")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[za("0x1c")].getSuggestion(t)}[za("0xa7")](t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[za("0xec")][za("0x52")](e)||this[za("0x9e")](n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this[za("0x3b")][za("0x52")](r)){case za("0x4f"):this[za("0x104")](e).then((t=>{let n=Promise.resolve();t[za("0x112")]&&(n=this[za("0x29")][za("0x10f")]({channelId:this[za("0xff")].config[za("0x52")](za("0x7f")),threadId:e})),n.then((()=>{this[za("0x10a")](t)._saved=!0}))})),this[za("0x3b")][za("0xf")](r,za("0x4d"));break;case za("0x136"):this[za("0x49")](e,{state:za("0xb7")});case za("0x8b"):this[za("0x3b")][za("0xf")](r,za("0x33")),this.fire(za("0x69"),r);break;case za("0x33"):this[za("0x32")](za("0xc3"),r)}return r[za("0x10c")](t),r}[za("0x15")](t){const e=Array[za("0x64")](t)[za("0xc8")]((t=>!t[za("0xcb")])),n=this[za("0xbe")]({skipNotAttached:!0})[za("0xc8")]((t=>!t[za("0xcb")])),o=n[za("0xc8")]((e=>!t.has(e))),s=new Map(n[za("0xe7")]((t=>[t,this._suggestionFactory.getSuggestionCallback(t[za("0xdd")],t[za("0x91")],za("0xb"))]))),r=new Map(n[za("0xe7")]((t=>[t,t[za("0x113")]()]))),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("0xb8")];t++){const n=e[t];!x[za("0x43")](n)&&n.previous&&(n[za("0x11a")].next===n&&(n[za("0x11a")][za("0x101")]=null),n[za("0x11a")]=null),!i[za("0x43")](n)&&n[za("0x101")]&&(n[za("0x101")][za("0x11a")]===n&&(n[za("0x101")].previous=null),n[za("0x101")]=null)}function a(t,e,n){for(let o=n;o<e[za("0xb8")];o++){const n=c(t,e[o]);n&&(n[0][za("0x101")]=n[1],n[1].previous=n[0],i[za("0xaa")](n[0]),x[za("0xaa")](n[1]))}}function c(t,e){if(t[za("0xb2")].id!==e[za("0xb2")].id)return null;const n=s[za("0x52")](t)(t,e,r[za("0x52")](t),r[za("0x52")](e));return n&&s[za("0x52")](e)(t,e,r[za("0x52")](t),r[za("0x52")](e))?n[1].commentThread&&n[1][za("0x11f")][za("0xb8")]?null:n:null}}[za("0xba")](t){const e=Array[za("0x64")](t),n=this[za("0xbe")]({skipNotAttached:!0}),o=n[za("0xc8")]((e=>!t[za("0x43")](e))),s=new Map(e[za("0xe7")]((t=>[t,this[za("0x5")][za("0x123")](t.type,t[za("0x91")],za("0x110"))]))),r=new Map(n.map((t=>[t,t[za("0x59")]()])));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("0xb8")];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[za("0xdd")]||o[za("0xb2")].id!==e[za("0xb2")].id||o.subType!==e[za("0x91")])continue;const x=s[za("0x52")](e),a=r[za("0x52")](e),c=r.get(o),l=e[za("0x11f")]&&e[za("0x11f")].length,u=o[za("0x11f")]&&o.commentThread[za("0xb8")];if(!l&&x(c,a))return t[za("0x8e")](o,e),r[za("0x116")](e),!0;if(!u&&x(a,c))return t[za("0x8e")](e,o),r.delete(o),!0}return!1}}_joinSuggestions(t,e){if(t.isMultiRange)for(const n of e[za("0x59")]())t[za("0x4")](n);else{const n=e[za("0x113")]()[za("0x13")];this[za("0x95")](t,this[za("0xaf")].createRange(t[za("0x113")]()[za("0xf9")],n))}e[za("0x5f")]()}}class Va{constructor(t){this[za("0x63")]=t,this._model=t[za("0x66")],this[za("0x1f")]=new Map,this[za("0x12a")]=new Map,this[za("0x12f")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this[za("0xaf")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x123")](t,e,"accept")(...n),onDiscard:(...n)=>this[za("0x123")](t,e,za("0xfe"))(...n)})}[za("0xb1")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x1f")].set(s,o)}[za("0x123")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x1f")][za("0x52")](o)||this[za("0x12a")].get(t+":"+n)}[za("0x12f")](){const t=()=>{},e=t=>{t[za("0x34")](((t,e)=>t.start[za("0x137")](e[za("0xf9")])?1:-1)),this[za("0xaf")][za("0x26")]((e=>{for(const n of t){let t;t=n.end[za("0x40")]&&n.end[za("0x81")]==n[za("0xf9")].nodeAfter?e[za("0x54")](n.start[za("0x11e")],"on"):e[za("0x54")](n),this._model[za("0x9b")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[za("0x26")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0xe7")]((t=>(qa(t)&&(t=this._model[za("0x38")](t[za("0x13")])),t))).filter((t=>za("0x93")!==t[za("0x131")][za("0xd9")]));if(r[za("0xb8")]<1)return;const x=Array.from(this[za("0xaf")][za("0x5e")][za("0x6e")][za("0x59")]())[za("0xe7")]((t=>i.LiveRange[za("0x11")](t)));n[za("0xc0")](r);for(const t of this._editor[za("0xde")][za("0xde")]())t[za("0x117")]();s[za("0xc7")]({forceDefaultExecution:!0}),this[za("0x63")].execute(o,...s);const a=x[za("0xc8")]((t=>"$graveyard"!=t.root[za("0xd9")]));a[za("0xb8")]>0&&n[za("0xc0")](a);for(const t of x)t[za("0x19")]()}))},o=(t,e)=>1==t[za("0xb8")]&&1==e[za("0xb8")]&&t[0].end[za("0x10")](e[0].start),s=(t,e,n,o)=>Za(t,e,n,o,this._model)?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[za("0x12a")][za("0xf")](za("0x1e"),t),this[za("0x12a")][za("0xf")]("insertion:discard",e),this[za("0x12a")][za("0xf")](za("0xf2"),o),this[za("0x12a")][za("0xf")](za("0xa2"),s),this[za("0x12a")][za("0xf")](za("0x6a"),e),this[za("0x12a")][za("0xf")]("deletion:discard",t),this[za("0x12a")][za("0xf")](za("0x8a"),o),this[za("0x12a")][za("0xf")]("deletion:chain",s),this[za("0x12a")][za("0xf")]("formatInline:accept",n),this[za("0x12a")][za("0xf")](za("0x1"),t),this._defaultCallbacks[za("0xf")](za("0x98"),o),this[za("0x12a")].set(za("0x74"),t),this[za("0x12a")][za("0xf")](za("0x4e"),n),this[za("0x12a")][za("0xf")](za("0xfb"),t),this[za("0x12a")][za("0xf")](za("0x5c"),o),this[za("0x12a")][za("0xf")](za("0xfa"),t)}}function Ka(t,e,n){for(const o of e.parent[za("0x7a")]({includeSelf:!0,parentFirst:!0})){if(o[za("0x131")]==o)return!1;if(!n[za("0xd7")](o))return!1;if(t[za("0xe2")](o)||t[za("0xdf")](o))return!0}return!1}function qa(t){return t[za("0x13")][za("0x81")]==t[za("0xf9")][za("0x11e")]&&t.end[za("0x103")]}function Xa(t,e,n,o){const s=t=>!t[za("0x3")].is(za("0xd4"))&&!o[za("0xe2")](t[za("0x3")]),r=t[za("0xf9")][za("0x46")](s),i=t[za("0x13")][za("0x46")](s,{direction:za("0x62")});return!(t[za("0xf9")][za("0x10")](r)&&t[za("0x13")][za("0x10")](i)||(r[za("0x137")](i)?n[za("0x133")](e,{range:n[za("0x38")](r,i)}):n[za("0x2b")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Qa(t){const e=t.start[za("0x11e")];return e&&e.is("element")}function Ja(t,e){const n=e[za("0xa3")][za("0xe2")](t)||e.schema.isSelectable(t);return e[za("0x38")](e[za("0xbb")](t,"before"),n?e[za("0x57")](t):e.createPositionAt(t,za("0x13")))}function Za(t,e,n,o,s){if(n[za("0x13")].isEqual(o[za("0xf9")]))return!0;if(t[za("0xdd")]!=e[za("0xdd")])return!1;if(!n[za("0x13")][za("0x56")](o.start))return!1;const r=s[za("0x38")](n[za("0x13")],o.start).getWalker();for(const t of r)if(["elementStart",za("0x9a")][za("0xf7")](t[za("0xdd")])&&s[za("0xa3")][za("0xdf")](t[za("0x3")]))return!1;return!0}const Ya=["_removePendingAction","canEditAt","canAccept","add","discardSuggestion","view","plugins","isDirty","destroy","_pendingAction","acceptSuggestion","bind","stopListening","commands","isEnabled","unbind","locale","_discardCommand","canDiscard","listenTo","get","_editor","_setPendingAction","PendingActions","commentThreadController","getRanges","_acceptCommand","remove","model"];var tc,ec;tc=Ya,ec=289,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("0x0")]=e,this[nc("0x6")]=n,this[nc("0x19")]=o,this[nc("0x16")]=t,this[nc("0x1b")]=t[nc("0xe")][nc("0x15")](nc("0xb")),this._discardCommand=t.commands[nc("0x15")](nc("0x5")),this.view.bind(nc("0xf")).to(this[nc("0x1b")],this[nc("0x12")],((t,e)=>t||e)),this[nc("0x6")][nc("0xc")](nc("0x3")).to(this[nc("0x1b")],nc("0xf"),(t=>t&&this[nc("0x16")].model[nc("0x2")](e[nc("0x1a")]()))),this[nc("0x6")][nc("0xc")](nc("0x13")).to(this[nc("0x12")],nc("0xf"),(t=>t&&this[nc("0x16")][nc("0x0")][nc("0x2")](e[nc("0x1a")]()))),this[nc("0xa")]=null,n[nc("0x8")]&&this[nc("0x17")](),this[nc("0x14")](n,"acceptSuggestion",(()=>this[nc("0xb")]())),this[nc("0x14")](n,nc("0x5"),(()=>this.discardSuggestion())),this[nc("0x14")](n,"change:isDirty",(()=>{n[nc("0x8")]?this[nc("0x17")]():this[nc("0x1")]()}))}acceptSuggestion(){this[nc("0x1b")].execute(this[nc("0x0")].id)}[nc("0x5")](){this[nc("0x12")].execute(this[nc("0x0")].id)}[nc("0x9")](){this[nc("0x6")][nc("0x10")](nc("0xf")),this.view[nc("0x10")]("canAccept"),this[nc("0x6")][nc("0x10")]("canDiscard"),this[nc("0xd")](),this[nc("0x19")][nc("0x9")](),this[nc("0xa")]&&this[nc("0x1")]()}_setPendingAction(){const t=Yo(this[nc("0x16")][nc("0x11")],"PENDING_ACTION_SUGGESTION");this[nc("0xa")]=this[nc("0x16")][nc("0x7")][nc("0x15")](nc("0x18"))[nc("0x4")](t)}_removePendingAction(){null!==this._pendingAction&&this[nc("0x16")][nc("0x7")][nc("0x15")](nc("0x18"))[nc("0x1c")](this[nc("0xa")]),this[nc("0xa")]=null}}const sc=["fire","commentThread","disabledSubmit","isActive","canDiscard","hasDirtyComment","showInput","locale","authoredAt","commentThreadInputView","_localUser","canAccept","delegate","destroy","commentsListView","setData","_model","isReadOnly","length","focus","value","bind","editor","_createCommentThreadInputView","submit","removeComment","_config","isDirty","set","updateComment","disableComments","CommentView","descriptionParts","_createCommentViews","commentInputView","cancel"];var rc,ic;rc=sc,ic=322,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.commentThreadInputView=null,this[xc("0x1e")](xc("0x5"),!1),this[xc("0x1e")](xc("0xa"),e[xc("0xa")]),this.bind(xc("0xa")).to(e),this.set(xc("0x22"),[]),this[xc("0x1e")](xc("0x1d"),!1),this[xc("0x1e")]("isEnabled",!1),this[xc("0x1e")](xc("0xd"),!1),this[xc("0x1e")](xc("0x6"),!1),this._model=e,this._localUser=n,this[xc("0x1c")]=o,o[xc("0x20")]?this.set(xc("0x14"),1):this[xc("0x23")]()}[xc("0x15")](){this.element.focus()}[xc("0xf")](){this[xc("0x10")]&&this.commentsListView.destroy(),this[xc("0xb")]&&this[xc("0xb")][xc("0xf")](),super[xc("0xf")]()}[xc("0x23")](){const{CommentsListView:t}=this[xc("0x1c")];this[xc("0x10")]=new t(this[xc("0x9")],this[xc("0x12")][xc("0x3")],Object.assign({CommentView:this[xc("0x1c")][xc("0x21")]},this._config)),this[xc("0x10")].delegate(xc("0x1b")).to(this),this[xc("0x10")][xc("0xe")](xc("0x1f")).to(this),this[xc("0x10")][xc("0x17")]("isActive").to(this),this[xc("0x1e")](xc("0x14"),this[xc("0x10")][xc("0x14")]+1),this[xc("0x17")](xc("0x14")).to(this[xc("0x10")],xc("0x14"),(t=>t+1)),this[xc("0xb")]=this[xc("0x19")](),this.on("removeComment",(()=>this[xc("0x15")]())),this.bind(xc("0x1d")).to(this[xc("0x10")],xc("0x7"),this[xc("0xb")][xc("0x0")],xc("0x16"),((t,e)=>t||!!e))}[xc("0x19")](){const{CommentThreadInputView:t}=this._config,e=new t(this[xc("0x9")],this[xc("0xc")],this[xc("0x1c")].editorConfig),n=e[xc("0x0")];return e[xc("0x17")](xc("0x8")).to(this,xc("0x5"),this[xc("0x12")][xc("0x3")],xc("0x13"),n,xc("0x16"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x1a"),((t,e)=>{this[xc("0x2")]("addComment",e),n[xc("0x18")][xc("0x11")]("")})),n.on(xc("0x1"),(()=>this[xc("0x15")]())),n[xc("0x17")](xc("0x4")).to(this[xc("0x12")][xc("0x3")],xc("0x13")),e}}const cc=["set",".ck-annotation__content-wrapper","content","disableComments","check","element","source","div","ck-suggestion--discard","@external","value","time","commentsListView","ck-suggestion-wrapper","ck-suggestion__main","join","innerText","type","ck-annotation__content-wrapper","acceptSuggestion","children","ck-suggestion-","push","name","ck-annotation__info-time","execute","ck-annotation__actions","ck-suggestion__user","author","ck-annotation__info","fire","getTemplate","render","importWord","attributes","ck-comment__external","acceptButton","userView",'" title="',"</p>","description","getExternalSuggestionNote","_model","isActive","span","isExternal","ck-comment__info-time","EXTERNAL_IMPORT_WORD_AVATAR","ck-suggestion__info-name","bindTemplate","isEnabled","innerHTML","locale","Discard suggestion","commentThreadInputView","bind","ck-annotation__main","ck-suggestion--disabled-comments","EXTERNAL_AVATAR","color","_createButton","ck-suggestion__info","getUserViewNotificationText","commentThread","split","discardButton","canDiscard","creator","ck-suggestion","_config","<p>","ck-suggestion--accept","descriptionParts","_descriptionElement","extendTemplate",'<span class="ck-suggestion-color" style="background-color: ',"cancel"];var lc,uc;lc=cc,uc=160,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[dc("0x47")](dc("0xb"),""),this.bind(dc("0xb")).to(this,dc("0x42"),(t=>t&&t[0]?t[0][dc("0xb")]:"")),this[dc("0x31")](dc("0x22")).to(this,"descriptionParts",this,dc("0x25"),((t,e)=>{let n="";for(const e of t)n+=dc("0x40")+mc(e[dc("0x49")],e[dc("0x35")])+dc("0x21");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[dc("0x43")]=null,this[dc("0x1e")]=this[dc("0x36")](Yo(e,"Accept suggestion"),t.icons[dc("0x4b")],dc("0x41"),dc("0xd"),"sw"),this[dc("0x1e")][dc("0x31")](dc("0x2c")).to(this,"canAccept"),this[dc("0x3b")]=this[dc("0x36")](Yo(e,dc("0x2f")),t.icons[dc("0x46")],dc("0x2"),"discardSuggestion","sw"),this[dc("0x3b")][dc("0x31")](dc("0x2c")).to(this,dc("0x3c")),this.userView=new r.UserView(e,this[dc("0x24")].author,this.getUserViewNotificationText()),this[dc("0x1f")][dc("0x44")]({attributes:{class:[dc("0x15"),"ck-annotation__user"]}}),this.setTemplate(this[dc("0x19")]())}[dc("0x19")](){const t=this[dc("0x2b")],e=[{tag:dc("0x1"),attributes:{class:[dc("0x37"),dc("0x17")]},children:[{tag:dc("0x26"),children:[{text:this[dc("0x1f")].name}],attributes:{class:[dc("0x2a"),"ck-annotation__info-name"]}},{tag:dc("0x5"),attributes:{datetime:t.to("authoredAt"),class:[dc("0x28"),dc("0x12")]},children:[{text:t.to("authoredAt",(t=>this[dc("0x3f")].formatDateTime(t)))}]}]},{tag:dc("0x1"),attributes:{class:["ck-suggestion__actions",dc("0x14")]},children:[this[dc("0x1e")],this[dc("0x3b")]]},{tag:"div",attributes:{class:[dc("0xc")]}}];this[dc("0x24")][dc("0x27")]&&e.push({tag:dc("0x1"),attributes:{class:[dc("0x1d")]},children:[{text:this[dc("0x23")]()}]});const n={tag:dc("0x1"),attributes:{class:[dc("0x7"),t.if(dc("0x25"),"ck-suggestion-wrapper--active"),t.to(dc("0xb"),(t=>dc("0xf")+t)),this[dc("0x3f")][dc("0x4a")]&&dc("0x33")],"data-suggestion-id":this[dc("0x24")].id,"data-thread-id":this[dc("0x24")][dc("0x39")].id,"data-author-id":this[dc("0x24")][dc("0x16")].id,tabindex:-1},children:[{tag:dc("0x1"),attributes:{class:[dc("0x3e"),"ck-annotation"]},children:[this[dc("0x1f")],{tag:dc("0x1"),attributes:{class:[dc("0x8"),dc("0x32")]},children:e}]}]};return this[dc("0x6")]&&this.commentThreadInputView&&n[dc("0xe")][dc("0x10")](this.commentsListView,this[dc("0x30")]),n}[dc("0x1a")](){super[dc("0x1a")](),this[dc("0x43")]=this[dc("0x4c")].querySelector(dc("0x48")),this[dc("0x43")][dc("0x2d")]=this[dc("0x22")],this.on("change:description",((t,e,n)=>{this[dc("0x43")][dc("0x2d")]=n}))}[dc("0x36")](t,e,n,o,r){const i=new s.ButtonView(this[dc("0x2e")]);return i[dc("0x47")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[dc("0x44")]({attributes:{class:n}}),i.on(dc("0x13"),(()=>{this[dc("0x18")](o,this[dc("0x24")].id)})),i}[dc("0x23")](){return dc("0x1b")===this._model[dc("0x1c")][dc("0x3")][dc("0x0")]?Yo(this[dc("0x2e")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[dc("0x2e")],"EXTERNAL_SUGGESTION")}[dc("0x38")](){return this._model[dc("0x27")]?dc("0x1b")===this[dc("0x24")][dc("0x1c")][dc("0x3")][dc("0x0")]?Yo(this[dc("0x2e")],dc("0x29"),this._model[dc("0x3d")][dc("0x11")]):Yo(this[dc("0x2e")],dc("0x34"),this[dc("0x24")][dc("0x3d")][dc("0x11")]):null}}function mc(t,e){let n="";return n+=t[dc("0x3a")]("*").map(((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+fc(t)+"</span>":fc(t)))[dc("0x9")](""),e&&(n+=dc("0x45")+e[dc("0x4")]+dc("0x20")+e.title+'"></span>'),n}function fc(t){const e=document.createElement(dc("0x26"));return e[dc("0xa")]=t,e[dc("0x2d")]}const hc=["isDirty","descriptionParts","SuggestionThreadView","map","switchbutton","createCommentThreadController","acceptSelectedSuggestions","requires","comments.maxCommentsWhenCollapsed","getByInnerView","execute","getAllAdjacentSuggestions","Annotations","TrackChangesUI","init","componentFactory","_updateController","discardSelectedSuggestions","change:activeAnnotations","add","mainView","registerAnnotation","TrackChangesEditing","commandName","getDescriptions","get","commands","button","lowest","comments.maxCommentCharsWhenCollapsed","from","commentThread","activeAnnotations","length","push","config","filter","source","trackChanges","_createUIButton","getSuggestion","_disableComments","createAnnotation","_handleControllerBuffer","model","bind","type","isEnabled","separator","unbind","activeMarkers","focus","remove","plugins","CommentsUI","Accept all selected suggestions","_suggestionToController","actionView","listenTo","comments.editorConfig","getMarkerNames","_annotationViews","addComment","getFirstRange","Discard all suggestions","values","locale","editing","CommentsRepository","view","buttonView","define","acceptAllSuggestions","clear","trackChanges.disableComments","arrowView","suggestion-","getJoined","acceptButton","innerView","size","change:previous","_destroyController","isMultiRange","destroy","_refreshActiveMarkers","delete","_descriptionFactory","_initializeController","head","set","isOn","has","discardAllSuggestions","_handleSuggestionControllerDelayed","previous","trackChanges.SuggestionThreadView","Discard all selected suggestions","_viewToController","CommentView","editor","isInContent","value","EditorAnnotations","suggestionLoaded","suggestionChanged"];var pc,bc;pc=hc,bc=147,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,Ec("0x1b"),Ec("0x4d"),Ec("0x3e")]}static get pluginName(){return Ec("0x4e")}constructor(t){super(t),this[Ec("0xf")]=new Map,this[Ec("0x39")]=new Map,this[Ec("0x14")]=new Map,this[Ec("0x2")]=new Map;const e=this[Ec("0x3b")][Ec("0x64")];e[Ec("0x1e")](Ec("0x37"),gc),e.define("trackChanges.disableComments",!1),this._disableComments=e[Ec("0x5a")](Ec("0x21"))}[Ec("0x35")](t,e){0===this._handleControllerBuffer[Ec("0x27")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x2")]){const n=this[Ec("0xf")][Ec("0x33")](t);n||e?n&&e&&this._destroyController(t):this._initializeController(t)}this.editor.plugins.get(Ec("0x3e")).refreshSelectedViews(),this[Ec("0x2c")](),this[Ec("0x2")][Ec("0x20")]()}),10),this[Ec("0x2")].set(t,e)}[Ec("0x4f")](){const t=this[Ec("0x3b")],e=t[Ec("0xc")][Ec("0x5a")](Ec("0x57")),n=t[Ec("0xc")].get("Annotations"),o=t[Ec("0xc")].get(Ec("0x3e")),s=t[Ec("0xc")][Ec("0x5a")](Ec("0x1b"));t.ui[Ec("0x50")][Ec("0x54")]("trackChanges",(t=>this[Ec("0x68")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Ec("0x5f")](this[Ec("0xf")])){const o=e[Ec("0x4c")](),s=[];for(const t of o){if(!t[Ec("0x3c")])continue;if(t[Ec("0x2a")]){s.push(...t.getRanges());continue}const e=t[Ec("0x16")]();if(s[Ec("0x62")]>0){const t=s[0][Ec("0x24")](e);if(t){s[0]=t;continue}}s[Ec("0x63")](e)}t[Ec("0x63")]([n[Ec("0x1c")],s])}return t})),this[Ec("0x11")](e,Ec("0x3f"),((t,e)=>{this.listenTo(e,Ec("0x28"),((t,n,o,s)=>{e.isInContent&&(null==o?(this[Ec("0x51")](s[Ec("0x30")]),this[Ec("0x35")](e,!1)):(this._updateController(o[Ec("0x30")]),this[Ec("0x35")](e,!0)))})),null===e[Ec("0x36")]?this[Ec("0x35")](e,!1):this._updateController(e[Ec("0x30")])})),this[Ec("0x11")](e,"suggestionUnloaded",((t,e,n)=>{this.stopListening(e,Ec("0x28")),this[Ec("0x2")][Ec("0x2d")](e);const o=n?n[Ec("0x30")]:e,s=this[Ec("0xf")][Ec("0x5a")](o);null!==n&&this[Ec("0x51")](o),null===n&&s&&this._destroyController(e)})),this[Ec("0x11")](e,Ec("0x40"),((t,e)=>{this[Ec("0x51")](e)})),this.listenTo(n,Ec("0x53"),(()=>{this[Ec("0x2c")]()})),this[Ec("0x11")](s,Ec("0x15"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[Ec("0x69")](n);this[Ec("0xf")].get(s)[Ec("0x1c")][Ec("0xa")]()}),{priority:Ec("0x5d")})}_refreshActiveMarkers(){const t=this[Ec("0x3b")][Ec("0xc")][Ec("0x5a")](Ec("0x4d")),e=this[Ec("0x3b")][Ec("0xc")][Ec("0x5a")](Ec("0x57")),n=Array[Ec("0x5f")](t[Ec("0x61")],(t=>t[Ec("0x26")])).filter((t=>this._viewToController[Ec("0x33")](t))),o=[];for(const t of n){const e=this[Ec("0x39")][Ec("0x5a")](t)[Ec("0x3")].getAllAdjacentSuggestions();o[Ec("0x63")](...e.reduce(((t,e)=>[...t,...e[Ec("0x13")]()]),[]))}e[Ec("0x9")]=o}[Ec("0x68")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Ec("0x5b")][Ec("0x5a")](Ec("0x67")),r=Yo(t,"Track changes");n[Ec("0x1d")][Ec("0x31")]({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.buttonView.bind(Ec("0x32")).to(o,Ec("0x3d")),n[Ec("0x1d")].on(Ec("0x4b"),(()=>{o.execute(),this[Ec("0x3b")][Ec("0x1a")][Ec("0x1c")][Ec("0xa")]()}));const i=new e.Collection,x=[{type:Ec("0x45"),model:{withText:!0,label:r,commandName:Ec("0x67")}},{type:Ec("0x7")},{type:"button",model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Ec("0x1f")}},{type:Ec("0x5c"),model:{withText:!0,label:Yo(t,Ec("0xe")),commandName:Ec("0x47")}},{type:Ec("0x5c"),model:{withText:!0,label:Yo(t,Ec("0x17")),commandName:Ec("0x34")}},{type:Ec("0x5c"),model:{withText:!0,label:Yo(t,Ec("0x38")),commandName:Ec("0x52")}}];for(const t of x){let e={type:Ec("0x7")};if(t[Ec("0x3")]){const n=new s.Model(t[Ec("0x3")]),o=this[Ec("0x3b")][Ec("0x5b")][Ec("0x5a")](n[Ec("0x58")]);n[Ec("0x4")](Ec("0x32"),Ec("0x6")).to(o,"value",Ec("0x6")),e={type:t[Ec("0x5")],model:n}}i[Ec("0x54")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x65")]((t=>null!=t[Ec("0x3")]))[Ec("0x44")]((t=>this[Ec("0x3b")][Ec("0x5b")][Ec("0x5a")](t[Ec("0x3")].commandName))),c=n.buttonView;return c[Ec("0x10")][Ec("0x8")](Ec("0x6")),c[Ec("0x22")][Ec("0x8")](Ec("0x6")),c[Ec("0x10")][Ec("0x4")](Ec("0x6")).to(o,Ec("0x6")),c[Ec("0x22")][Ec("0x4")]("isEnabled").toMany(a,Ec("0x6"),((...t)=>t.some((t=>t)))),n.on(Ec("0x4b"),(t=>{this[Ec("0x3b")][Ec("0x4b")](t[Ec("0x66")].commandName),this.editor[Ec("0x1a")].view[Ec("0xa")]()})),n}[Ec("0x2f")](t){const e=this[Ec("0x3b")],n=e[Ec("0x64")],o=e.plugins[Ec("0x5a")](Ec("0x4d")),s=e[Ec("0xc")].get(Ec("0x1b")),i=e[Ec("0xc")][Ec("0x5a")](Ec("0x3e")),x=e[Ec("0xc")].get(r.Users).me,a=n[Ec("0x5a")](Ec("0x67"))[Ec("0x43")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0xc")].get(Ec("0xd"));let u,d;this[Ec("0x14")][Ec("0x33")](t.id)?(d=this[Ec("0x14")][Ec("0x5a")](t.id),u=d.mainView):(u=new a(e.locale,t,x,{disableComments:this[Ec("0x0")],editorConfig:n[Ec("0x5a")](Ec("0x12")),maxCommentsWhenCollapsed:n.get(Ec("0x49")),maxThreadTotalWeight:n[Ec("0x5a")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Ec("0x5a")](Ec("0x5e")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x5a")](Ec("0x19"))),CommentView:n[Ec("0x5a")]("comments")[Ec("0x3a")],CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x25")].on("execute",(()=>{e.editing[Ec("0x1c")][Ec("0xa")]()})),u.discardButton.on("execute",(()=>{e[Ec("0x1a")][Ec("0x1c")].focus()})),d=o.createAnnotationView(this[Ec("0x3b")].locale,u),d[Ec("0x4")]("isDirty").to(u,Ec("0x41")),d[Ec("0x4")]("length").to(u),d[Ec("0x4")](Ec("0x5")).to(u,Ec("0x5"),(t=>Ec("0x23")+t)),this[Ec("0x14")][Ec("0x31")](t.id,d));const g=s[Ec("0x46")](t[Ec("0x60")],u),m=new oc(e,t,u,g),f=t[Ec("0x4c")]()[Ec("0x65")]((t=>t[Ec("0x3c")]));u[Ec("0x42")]=e[Ec("0xc")][Ec("0x5a")](Ec("0x57"))[Ec("0x2e")].getDescriptions(f),this[Ec("0xf")].set(t,m),this._viewToController.set(u,m);const h=o[Ec("0x1")]({view:d,target:()=>{const n=[],o=t[Ec("0x4c")]()[Ec("0x65")]((t=>t.isInContent));for(const t of o)n[Ec("0x63")](...t.getMarkers());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Ec("0x23")+m.view[Ec("0x5")]});o[Ec("0x54")](h),i[Ec("0x56")](h)}[Ec("0x29")](t){const e=this[Ec("0x3b")].plugins[Ec("0x5a")](Ec("0x4d")),n=this[Ec("0xf")][Ec("0x5a")](t),o=n[Ec("0x1c")],s=e[Ec("0x4a")](o);s&&e[Ec("0xb")](s),this[Ec("0xf")][Ec("0x2d")](t),this[Ec("0x39")][Ec("0x2d")](o),n.destroy()}[Ec("0x51")](t){if(!t[Ec("0x3c")]||!this._suggestionToController.has(t))return;const e=this[Ec("0x3b")][Ec("0xc")].get(Ec("0x57")),n=this[Ec("0xf")].get(t),o=t.getAllAdjacentSuggestions();n[Ec("0x1c")][Ec("0x42")]=e[Ec("0x2e")][Ec("0x59")](o)}destroy(){for(const t of this._suggestionToController.keys())this[Ec("0x29")](t);for(const t of this[Ec("0x14")][Ec("0x18")]())t[Ec("0x55")].destroy();super[Ec("0x2b")]()}}var Tc,Cc,yc=["adapter","addSuggestionData","getSuggestions","requires","TrackChanges","Comments","addSuggestion","editor","get","getSuggestion","plugins","pluginName"];Tc=yc,Cc=305,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("0xa")](){return[Wa,_c,kc("0x0")]}static get[kc("0x6")](){return kc("0xb")}set[kc("0x7")](t){this[kc("0x2")][kc("0x5")][kc("0x3")](Wa)[kc("0x7")]=t}get[kc("0x7")](){return this[kc("0x2")][kc("0x5")][kc("0x3")](Wa).adapter}[kc("0x1")](t){return this[kc("0x2")][kc("0x5")][kc("0x3")](Wa)[kc("0x8")](t)}[kc("0x9")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[kc("0x5")][kc("0x3")](Wa)[kc("0x9")]({skipNotAttached:t,toJSON:e})}[kc("0x4")](t){return this.editor[kc("0x5")][kc("0x3")](Wa).getSuggestion(t)}}const vc=["config","TrackChangesEditing","result","plugins","create","tokenUrl","track-changes-data-invalid-editor-creator","map","constructor","Autosave","CommentsRepository","acceptAllSuggestions","concat","getSuggestions","reduce","Pagination","end","editor","addUser","init","get","RevisionTracker","string","function","find","editorCreator","appendChild","createElement","execute","name","pluginName","TrackChangesDataGetter","push","trackChangesData","DocumentOutline","model","trackChangesData.editorCreator","discardAllSuggestions","cloudServices","_adapter","Users","getDataWithDiscardedSuggestions","useAnonymousUser","has","every","set","getDataWithAcceptedSuggestions","data","TrackChangesData","filter","getUser","extraPlugins","includes","destroy","getRootNames","createDocumentFragment","initialData","requires","div"];var Rc,Ic;Rc=vc,Ic=184,function(t){for(;--t;)Rc.push(Rc.shift())}(++Ic);const Sc=function(t,e){return vc[t-=0]},Lc=[Sc("0x31"),"context","toolbar"],Nc=["WebSocketGateway",Sc("0xe"),Sc("0x2"),"WordCount",Sc("0x8"),Sc("0x1b")];class Mc extends t.Plugin{static get requires(){return[Wa]}static get[Sc("0x17")](){return Sc("0x29")}init(){const t=this.editor;if(t[Sc("0x34")].define(Sc("0x1d"),(e=>t[Sc("0x1")][Sc("0x38")]("",e))),Sc("0x10")!=typeof t[Sc("0x34")][Sc("0xd")]("trackChangesData").editorCreator)throw new e.CKEditorError(Sc("0x3a"))}[Sc("0x27")](t){return Oc(this[Sc("0xa")],!0,t)}[Sc("0x22")](t){return Oc(this.editor,!1,t)}}class wc extends t.Plugin{static get pluginName(){return Sc("0x18")}constructor(t){super(t),this[Sc("0x36")]=Sc("0x9")}[Sc("0xc")](){this[Sc("0xa")][Sc("0x37")][Sc("0xd")](Sc("0x3"))[Sc("0x20")]={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[Sc("0xa")].plugins[Sc("0xd")]("TrackChangesEditing")[Sc("0x20")]=null}}async function Oc(t,e,n){const o=function(t){const e={};for(const n of t[Sc("0x34")].names())Lc[Sc("0x2d")](n)||(e[n]=t[Sc("0x34")][Sc("0xd")](n));e.cloudServices&&e[Sc("0x1f")][Sc("0x39")]&&delete e[Sc("0x1f")][Sc("0x39")];const n=t[Sc("0x1")].builtinPlugins||[],o=e[Sc("0x2c")]||[];delete e[Sc("0x2c")];const s=t._context[Sc("0x34")][Sc("0xd")](Sc("0x37"))||[],r=n[Sc("0x5")](e[Sc("0x37")]).concat(o)[Sc("0x5")](s)[Sc("0x0")]((t=>Sc("0xf")==typeof t?n[Sc("0x11")]((e=>e[Sc("0x17")]==t)):t)),i=Array.from(new Set(r)),x=new Map;return e[Sc("0x37")]=i[Sc("0x2a")]((t=>Fc(t,x))),e[Sc("0x37")].push(Wa),e[Sc("0x37")][Sc("0x19")](wc),e}(t),s=document[Sc("0x30")](),r=t.config[Sc("0xd")](Sc("0x1a"))[Sc("0x12")],i=await r(o,(()=>function(t){const e=document[Sc("0x14")](Sc("0x33"));return t[Sc("0x13")](e),e}(s)));!function(t,e){const n=t[Sc("0x1c")].document[Sc("0x2f")]()[Sc("0x7")](((e,n)=>(e[n]=t[Sc("0x28")].get({rootName:n}),e)),{}),o=t[Sc("0x37")][Sc("0xd")](Sc("0x21")).users[Sc("0x0")]((t=>({id:t.id,name:t[Sc("0x16")]}))),s=t[Sc("0x37")][Sc("0xd")](Sc("0x35"))[Sc("0x6")]({skipNotAttached:!0,toJSON:!0}),r=e[Sc("0x37")][Sc("0xd")](Sc("0x21")),i=e[Sc("0x37")][Sc("0xd")]("TrackChangesEditing");for(const t of o)r[Sc("0x2b")](t.id)||r[Sc("0xb")](t);r.me||r[Sc("0x23")]();for(const t of s)i.addSuggestionData(t);e[Sc("0x28")][Sc("0x26")](n)}(t,i),i[Sc("0x15")](Sc(e?"0x4":"0x1e"));const x=i[Sc("0x28")][Sc("0xd")](n);return await i[Sc("0x2e")](),x}function Fc(t,e){const n=Sc("0x10")==typeof t?t[Sc("0x17")]||t.name:t;if(e[Sc("0x24")](n))return e[Sc("0xd")](n);if(e[Sc("0x26")](n,!0),n&&Nc.includes(n))return e[Sc("0x26")](n,!1),!1;if(!t[Sc("0x32")])return e[Sc("0x26")](n,!0),!0;const o=t[Sc("0x32")][Sc("0x25")]((t=>Fc(t,e)));return e.set(n,o),o}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|